UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

38 lines (37 loc) 1.37 kB
(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.20.0" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e7f005e9-0755-4201-b8c6-cabd2a157820", e._sentryDebugIdIdentifier = "sentry-dbid-e7f005e9-0755-4201-b8c6-cabd2a157820"); } catch {} })(); import { i as e } from "./store-Dh-bVjb-.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 };