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+B,GAC7B,IAAI,EAAsB,CAAC,EAG3B,OAFA,EAAoB,KAAO,YAAY,aACvC,EAAoB,GAAK,EAClB,CACT","file":"/npm/@intercom/intercom-react-native@9.5.0/lib/commonjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@intercom/intercom-react-native@9.5.0/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.default = exports.Visibility = exports.ThemeMode = exports.Space = exports.LogLevel = exports.IntercomEvents = exports.IntercomContent = exports.ContentType = void 0;\nvar _reactNative = require(\"react-native\");\nvar _nativeModules = require(\"./nativeModules.js\");\nlet Visibility = exports.Visibility = /*#__PURE__*/function (Visibility) {\n  Visibility[\"GONE\"] = \"GONE\";\n  Visibility[\"VISIBLE\"] = \"VISIBLE\";\n  return Visibility;\n}({});\nlet LogLevel = exports.LogLevel = /*#__PURE__*/function (LogLevel) {\n  LogLevel[\"ASSERT\"] = \"ASSERT\";\n  LogLevel[\"DEBUG\"] = \"DEBUG\";\n  LogLevel[\"DISABLED\"] = \"DISABLED\";\n  LogLevel[\"ERROR\"] = \"ERROR\";\n  LogLevel[\"INFO\"] = \"INFO\";\n  LogLevel[\"VERBOSE\"] = \"VERBOSE\";\n  LogLevel[\"WARN\"] = \"WARN\";\n  return LogLevel;\n}({});\nlet ThemeMode = exports.ThemeMode = /*#__PURE__*/function (ThemeMode) {\n  ThemeMode[\"LIGHT\"] = \"LIGHT\";\n  ThemeMode[\"DARK\"] = \"DARK\";\n  ThemeMode[\"SYSTEM\"] = \"SYSTEM\";\n  return ThemeMode;\n}({});\nconst IntercomEvents = exports.IntercomEvents = {\n  IntercomUnreadCountDidChange: _nativeModules.IntercomEventEmitter.UNREAD_COUNT_CHANGE_NOTIFICATION,\n  IntercomWindowDidHide: _nativeModules.IntercomEventEmitter.WINDOW_DID_HIDE_NOTIFICATION,\n  IntercomWindowDidShow: _nativeModules.IntercomEventEmitter.WINDOW_DID_SHOW_NOTIFICATION,\n  IntercomHelpCenterWindowDidShow: _nativeModules.IntercomEventEmitter.WINDOW_DID_SHOW_NOTIFICATION,\n  IntercomHelpCenterWindowDidHide: _nativeModules.IntercomEventEmitter.WINDOW_DID_HIDE_NOTIFICATION\n};\nlet Space = exports.Space = /*#__PURE__*/function (Space) {\n  Space[\"home\"] = \"HOME\";\n  Space[\"helpCenter\"] = \"HELP_CENTER\";\n  Space[\"messages\"] = \"MESSAGES\";\n  Space[\"tickets\"] = \"TICKETS\";\n  return Space;\n}({});\nconst Intercom = {\n  initialize: (apiKey, appId) => {\n    if (!apiKey || typeof apiKey !== 'string' || apiKey.trim() === '') {\n      return Promise.reject(new Error('Intercom: apiKey is required and must be a string'));\n    }\n    if (!appId || typeof appId !== 'string' || appId.trim() === '') {\n      return Promise.reject(new Error('Intercom: appId is required and must be a string'));\n    }\n    const platform = _reactNative.Platform.OS;\n    const platformRules = {\n      ios: {\n        prefix: 'ios_sdk-',\n        minLength: 48\n      },\n      android: {\n        prefix: 'android_sdk-',\n        minLength: 52\n      }\n    };\n    const rules = platformRules[platform];\n    if (!rules) {\n      return Promise.reject(new Error(`Intercom: Platform \"${platform}\" is not supported. Only iOS and Android are supported.`));\n    }\n    if (!apiKey.startsWith(rules.prefix)) {\n      return Promise.reject(new Error(`Intercom: ${platform} API key must start with \"${rules.prefix}\"`));\n    }\n    if (apiKey.length < rules.minLength) {\n      return Promise.reject(new Error(`Intercom: ${platform} API key must be at least ${rules.minLength} characters long`));\n    }\n    return _nativeModules.IntercomModule.initialize(apiKey, appId);\n  },\n  loginUnidentifiedUser: () => _nativeModules.IntercomModule.loginUnidentifiedUser(),\n  loginUserWithUserAttributes: userAttributes => _nativeModules.IntercomModule.loginUserWithUserAttributes(userAttributes),\n  logout: () => _nativeModules.IntercomModule.logout(),\n  setUserHash: hash => _nativeModules.IntercomModule.setUserHash(hash),\n  updateUser: userAttributes => _nativeModules.IntercomModule.updateUser(userAttributes),\n  isUserLoggedIn: () => _nativeModules.IntercomModule.isUserLoggedIn(),\n  fetchLoggedInUserAttributes: () => _nativeModules.IntercomModule.fetchLoggedInUserAttributes(),\n  logEvent: (eventName, metaData = undefined) => _nativeModules.IntercomModule.logEvent(eventName, metaData),\n  fetchHelpCenterCollections: () => _nativeModules.IntercomModule.fetchHelpCenterCollections(),\n  fetchHelpCenterCollection: (id = '') => _nativeModules.IntercomModule.fetchHelpCenterCollection(id),\n  searchHelpCenter: (term = '') => _nativeModules.IntercomModule.searchHelpCenter(term),\n  present: () => _nativeModules.IntercomModule.presentIntercom(),\n  presentSpace: space => _nativeModules.IntercomModule.presentIntercomSpace(space),\n  presentContent: content => _nativeModules.IntercomModule.presentContent(content),\n  presentMessageComposer: (initialMessage = undefined) => _nativeModules.IntercomModule.presentMessageComposer(initialMessage),\n  getUnreadConversationCount: () => _nativeModules.IntercomModule.getUnreadConversationCount(),\n  hideIntercom: () => _nativeModules.IntercomModule.hideIntercom(),\n  setBottomPadding: paddingBottom => _nativeModules.IntercomModule.setBottomPadding(paddingBottom),\n  setInAppMessageVisibility: visibility => _nativeModules.IntercomModule.setInAppMessageVisibility(visibility),\n  setLauncherVisibility: visibility => _nativeModules.IntercomModule.setLauncherVisibility(visibility),\n  setNeedsStatusBarAppearanceUpdate: _reactNative.Platform.select({\n    ios: _nativeModules.IntercomModule.setNeedsStatusBarAppearanceUpdate,\n    default: async () => true\n  }),\n  handlePushMessage: _reactNative.Platform.select({\n    android: _nativeModules.IntercomModule.handlePushMessage,\n    default: async () => true\n  }),\n  sendTokenToIntercom: token => _nativeModules.IntercomModule.sendTokenToIntercom(token),\n  setLogLevel: logLevel => _nativeModules.IntercomModule.setLogLevel(logLevel),\n  setThemeMode: themeMode => _nativeModules.IntercomModule.setThemeMode(themeMode),\n  setUserJwt: jwt => _nativeModules.IntercomModule.setUserJwt(jwt),\n  setAuthTokens: authTokens => _nativeModules.IntercomModule.setAuthTokens(authTokens),\n  bootstrapEventListeners: () => {\n    if (_reactNative.Platform.OS === 'android' && _nativeModules.IntercomEventEmitter?.startEventListener) {\n      _nativeModules.IntercomEventEmitter.startEventListener();\n    }\n    return () => {\n      if (_reactNative.Platform.OS === 'android' && _nativeModules.IntercomEventEmitter?.removeEventListener) {\n        _nativeModules.IntercomEventEmitter.removeEventListener();\n      }\n    };\n  }\n};\nvar _default = exports.default = Intercom;\nlet ContentType = exports.ContentType = /*#__PURE__*/function (ContentType) {\n  ContentType[\"Article\"] = \"ARTICLE\";\n  ContentType[\"Carousel\"] = \"CAROUSEL\";\n  ContentType[\"Survey\"] = \"SURVEY\";\n  ContentType[\"HelpCenterCollections\"] = \"HELP_CENTER_COLLECTIONS\";\n  ContentType[\"Conversation\"] = \"CONVERSATION\";\n  return ContentType;\n}({});\nconst IntercomContent = exports.IntercomContent = {\n  articleWithArticleId(articleId) {\n    let articleContent = {};\n    articleContent.type = ContentType.Article;\n    articleContent.id = articleId;\n    return articleContent;\n  },\n  carouselWithCarouselId(carouselId) {\n    let carouselContent = {};\n    carouselContent.type = ContentType.Carousel;\n    carouselContent.id = carouselId;\n    return carouselContent;\n  },\n  surveyWithSurveyId(surveyId) {\n    let surveyContent = {};\n    surveyContent.type = ContentType.Survey;\n    surveyContent.id = surveyId;\n    return surveyContent;\n  },\n  helpCenterCollectionsWithIds(collectionIds) {\n    let helpCenterCollectionsContent = {};\n    helpCenterCollectionsContent.type = ContentType.HelpCenterCollections;\n    helpCenterCollectionsContent.ids = collectionIds;\n    return helpCenterCollectionsContent;\n  },\n  conversationWithConversationId(conversationId) {\n    let conversationContent = {};\n    conversationContent.type = ContentType.Conversation;\n    conversationContent.id = conversationId;\n    return conversationContent;\n  }\n};\n"]}