{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-messaging-zendesk@0.1.5/lib/commonjs/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,OAAO,eAAe,QAAS,aAAc,CAC3C,OAAO,IAET,QAAQ,QAAU,QAClB,QAAQ,UAAY,UACpB,QAAQ,WAAa,WACrB,QAAQ,cAAgB,cACxB,QAAQ,UAAY,UACpB,QAAQ,YAAc,YACtB,IAAI,aAAe,QAAQ,gBAC3B,MAAM,cAAgB,0FAA4F,aAAa,SAAS,OAAO,CAC7I,IAAK,iCACL,QAAS,KAFW,oFAIhB,iBAAmB,aAAa,cAAc,iBAAmB,aAAa,cAAc,iBAAmB,IAAI,MAAM,CAAC,EAAG,CACjI,GAAA,GACE,MAAM,IAAI,MAAM,cAClB,IAEI,aAAe,IAAI,aAAa,mBAAmB,kBACzD,SAAS,UAAU,EAAW,GAC5B,IACE,iBAAiB,UAAU,GAC3B,aAAa,YAAY,GAAW,IAClC,EAAQ,EAAM,GAElB,CAAE,MAAO,GAAI,CACf,CACA,SAAS,YAAY,GACnB,IACE,iBAAiB,YAAY,GAC7B,aAAa,mBAAmB,EAClC,CAAE,MAAO,GAAI,CACf,CACA,SAAS,QAAQ,GACf,OAAO,iBAAiB,QAAQ,aAAa,SAAS,OAAO,GAC/D,CACA,SAAS,gBACP,OAAO,iBAAiB,eAC1B,CACA,SAAS,UAAU,GACjB,OAAO,iBAAiB,UAAU,EACpC,CACA,SAAS,aACP,OAAO,iBAAiB,YAC1B","file":"/npm/react-native-messaging-zendesk@0.1.5/lib/commonjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.19.2.\n * Original file: /npm/react-native-messaging-zendesk@0.1.5/lib/commonjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.initSdk = initSdk;\nexports.loginUser = loginUser;\nexports.logoutUser = logoutUser;\nexports.showMessaging = showMessaging;\nexports.subscribe = subscribe;\nexports.unsubscribe = unsubscribe;\nvar _reactNative = require(\"react-native\");\nconst LINKING_ERROR = `The package 'react-native-messaging-zendesk' doesn't seem to be linked. Make sure: \\n\\n` + _reactNative.Platform.select({\n  ios: \"- You have run 'pod install'\\n\",\n  default: ''\n}) + '- You rebuilt the app after installing the package\\n' + '- You are not using Expo Go\\n';\nconst MessagingZendesk = _reactNative.NativeModules.MessagingZendesk ? _reactNative.NativeModules.MessagingZendesk : new Proxy({}, {\n  get() {\n    throw new Error(LINKING_ERROR);\n  }\n});\nconst eventEmitter = new _reactNative.NativeEventEmitter(MessagingZendesk);\nfunction subscribe(eventName, onEvent) {\n  try {\n    MessagingZendesk.subscribe(eventName);\n    eventEmitter.addListener(eventName, event => {\n      onEvent(event);\n    });\n  } catch (e) {}\n}\nfunction unsubscribe(eventName) {\n  try {\n    MessagingZendesk.unsubscribe(eventName);\n    eventEmitter.removeAllListeners(eventName);\n  } catch (e) {}\n}\nfunction initSdk(channels) {\n  return MessagingZendesk.initSdk(_reactNative.Platform.select(channels));\n}\nfunction showMessaging() {\n  return MessagingZendesk.showMessaging();\n}\nfunction loginUser(jwt) {\n  return MessagingZendesk.loginUser(jwt);\n}\nfunction logoutUser() {\n  return MessagingZendesk.logoutUser();\n}\n"]}