/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/react-native-hubspot-chat@1.0.2/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{NativeModules,Platform}from"react-native";const{HubspotModule:HubspotModule}=NativeModules;function setProperties(e){if("ios"===Platform.OS){if(!Array.isArray(e))throw new Error("iOS requires an array of {name, value} objects");return HubspotModule.setChatProperties(e)}if(Array.isArray(e)){const t={};return e.forEach((({name:e,value:o})=>{t[e]=o})),HubspotModule.setChatProperties(t)}return HubspotModule.setChatProperties(e)}export default{init:()=>HubspotModule.initSDK(),open:e=>HubspotModule.openChat(e),identify:(e,t)=>HubspotModule.identifyVisitor(e,t),setProperties:setProperties,endSession:()=>HubspotModule.endSession()};
//# sourceMappingURL=/sm/4e9236f9f209dc7d623e74e25da83224ac068f3c424a2943d9fe4608f4bf2485.map