@expofp/floorplan
Version:
Interactive floor plan library for expos and events
38 lines (37 loc) • 1.37 kB
JavaScript
(function() {
try {
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
e.SENTRY_RELEASE = { id: "3.7.8" };
var t = new e.Error().stack;
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8fa16548-2ff9-4f03-a2a9-c96fa379b3a2", e._sentryDebugIdIdentifier = "sentry-dbid-8fa16548-2ff9-4f03-a2a9-c96fa379b3a2");
} catch {}
})();
import { r as e } from "./store-DTwRqruF.js";
//#region src/intercom/bootIntercom.ts
var t = "k5f7wyx2", n = !1;
function r(r) {
if (n) return;
n = !0;
let { subDomain: i, subscriptionStatus: a } = r, o = window;
o.intercomSettings = {
api_base: "https://api-iam.intercom.io",
app_id: t,
alignment: "right",
hide_default_launcher: !0,
expofp_subdomain: i,
expofp_subscription_status: a
};
let s = function() {
s.c(arguments);
};
s.q = [], s.c = function(e) {
s.q.push(e);
}, o.Intercom = s, s("onUnreadCountChange", (t) => e.setUnreadCount(t));
let c = () => {
let n = document.createElement("script");
n.type = "text/javascript", n.async = !0, n.src = `https://widget.intercom.io/widget/${t}`, n.onload = () => e.setEnabled(!0), document.head.appendChild(n);
};
document.readyState === "complete" ? c() : window.addEventListener("load", c, !1);
}
//#endregion
export { r as bootIntercom };