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e,GACpE,QAAQ,YAAc,YACtB,MAAM,eAAkB,GAAgB,mBAAmB,iBAAkB,GAC7E,QAAQ,eAAiB,eACzB,MAAM,WAAc,GAAa,mBAAmB,aAAc,GAClE,QAAQ,WAAa,WACrB,MAAM,iBAAoB,GAAmB,mBAAmB,mBAAoB,GACpF,QAAQ,iBAAmB,iBAC3B,MAAM,oBAAuB,GAAa,mBAAmB,sBAAuB,GACpF,QAAQ,oBAAsB,oBAC9B,MAAM,kBAAqB,GAAW,mBAAmB,oBAAqB,GAC9E,QAAQ,kBAAoB","file":"/npm/@intercom/messenger-js-sdk@0.0.19/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@intercom/messenger-js-sdk@0.0.19/dist/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\";\nvar __rest = (this && this.__rest) || function (s, e) {\n    var t = {};\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n        t[p] = s[p];\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                t[p[i]] = s[p[i]];\n        }\n    return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hideNotifications = exports.onUserEmailSupplied = exports.showConversation = exports.showTicket = exports.startChecklist = exports.startSurvey = exports.showNews = exports.showArticle = exports.startTour = exports.whoami = exports.getVisitorId = exports.trackEvent = exports.onUnreadCountChange = exports.onShow = exports.onHide = exports.showNewMessage = exports.showMessages = exports.showSpace = exports.show = exports.hide = exports.update = exports.shutdown = exports.boot = exports.Intercom = void 0;\nconst constants_1 = require(\"./constants\");\nconst instance_manager_1 = require(\"./instance-manager\");\nconst callIntercomMethod = (method, ...args) => {\n    // window is undefined on server-side and this breaks our widget\n    if (typeof window !== undefined && window.Intercom) {\n        return window.Intercom(method, ...args);\n    }\n    else {\n        console.warn(\"Please ensure Intercom is setup and running on client-side!\");\n    }\n};\nconst Intercom = (props) => {\n    if (typeof props !== \"object\") {\n        console.warn(\"Intercom initialiser called with invalid parameters.\");\n        return;\n    }\n    const { region = \"us\", widgetUrl } = props, args = __rest(props, [\"region\", \"widgetUrl\"]);\n    if (typeof window !== \"undefined\" && !instance_manager_1.ref) {\n        window.intercomSettings = Object.assign(Object.assign({}, args), { api_base: constants_1.regionAPIs.get(region) });\n        (0, instance_manager_1.init)({ widgetUrl });\n    }\n};\nexports.Intercom = Intercom;\n// Public functions that can be called from outside the module\nexports.default = exports.Intercom;\nconst boot = (arg) => callIntercomMethod(\"boot\", arg);\nexports.boot = boot;\nconst shutdown = () => callIntercomMethod(\"shutdown\");\nexports.shutdown = shutdown;\nconst update = (arg) => callIntercomMethod(\"update\", arg);\nexports.update = update;\nconst hide = () => callIntercomMethod(\"hide\");\nexports.hide = hide;\nconst show = () => callIntercomMethod(\"show\");\nexports.show = show;\nconst showSpace = (spaceName) => callIntercomMethod(\"showSpace\", spaceName);\nexports.showSpace = showSpace;\nconst showMessages = () => callIntercomMethod(\"showMessages\");\nexports.showMessages = showMessages;\nconst showNewMessage = (prePopulatedContent) => callIntercomMethod(\"showNewMessage\", prePopulatedContent);\nexports.showNewMessage = showNewMessage;\nconst onHide = (callback) => callIntercomMethod(\"onHide\", callback);\nexports.onHide = onHide;\nconst onShow = (callback) => callIntercomMethod(\"onShow\", callback);\nexports.onShow = onShow;\nconst onUnreadCountChange = (callback) => callIntercomMethod(\"onUnreadCountChange\", callback);\nexports.onUnreadCountChange = onUnreadCountChange;\nconst trackEvent = (...args) => callIntercomMethod(\"trackEvent\", ...args);\nexports.trackEvent = trackEvent;\nconst getVisitorId = () => callIntercomMethod(\"getVisitorId\");\nexports.getVisitorId = getVisitorId;\nconst whoami = () => callIntercomMethod(\"whoami\");\nexports.whoami = whoami;\nconst startTour = (tourId) => callIntercomMethod(\"startTour\", tourId);\nexports.startTour = startTour;\nconst showArticle = (articleId) => callIntercomMethod(\"showArticle\", articleId);\nexports.showArticle = showArticle;\nconst showNews = (newsItemId) => callIntercomMethod(\"showNews\", newsItemId);\nexports.showNews = showNews;\nconst startSurvey = (surveyId) => callIntercomMethod(\"startSurvey\", surveyId);\nexports.startSurvey = startSurvey;\nconst startChecklist = (checklistId) => callIntercomMethod(\"startChecklist\", checklistId);\nexports.startChecklist = startChecklist;\nconst showTicket = (ticketId) => callIntercomMethod(\"showTicket\", ticketId);\nexports.showTicket = showTicket;\nconst showConversation = (conversationId) => callIntercomMethod(\"showConversation\", conversationId);\nexports.showConversation = showConversation;\nconst onUserEmailSupplied = (callback) => callIntercomMethod(\"onUserEmailSupplied\", callback);\nexports.onUserEmailSupplied = onUserEmailSupplied;\nconst hideNotifications = (hidden) => callIntercomMethod(\"hideNotifications\", hidden);\nexports.hideNotifications = hideNotifications;\n"]}