@expofp/floorplan 3.22.0 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-PkkC8fYi.js → Button-Cdcme0dW.js} +5 -5
- package/dist/browser/{CookieConsent-COPAytjc.js → CookieConsent-B7cDBqp6.js} +7 -7
- package/dist/browser/{Debug-CWVwWCU0.js → Debug-C1YnJvnk.js} +7 -7
- package/dist/browser/{Demo-yP6tHJE2.js → Demo-BIM3wFq3.js} +9 -9
- package/dist/browser/{Free-rILAyXya.js → Free-D7U5AEcf.js} +12 -12
- package/dist/browser/{Gallery-DbQ6bxpv.js → Gallery-BXlz1tz4.js} +9 -9
- package/dist/browser/{GpsLoader-U0qUOF4J.js → GpsLoader-BdUzK_Wq.js} +29 -29
- package/dist/browser/{KioskStore-D25GX7Yv.js → KioskStore-t38ARgcW.js} +33 -33
- package/dist/browser/{MaplibreAdapter-CMX6Q9zs.js → MaplibreAdapter-CSAShUgd.js} +2098 -2047
- package/dist/browser/{ModalContainer-TVi_WpAy.js → ModalContainer-B33HKAAU.js} +10 -10
- package/dist/browser/{PermissionNotice-SMHSj2qI.js → PermissionNotice-F6g9pz0M.js} +6 -6
- package/dist/browser/{SetKioskMode-BwSFzzos.js → SetKioskMode-CJoi2gHM.js} +11 -11
- package/dist/browser/{ShowKiosk-D0lj2wzz.js → ShowKiosk-H4rnBUGh.js} +11 -11
- package/dist/browser/{ViewerMenuPanel-9A84e6XT.js → ViewerMenuPanel-BmJhh8Ln.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-CyjybhbR.js → add-debug-secret-listener-BNoe6VU3.js} +1 -1
- package/dist/browser/{adopt-global-settings-BhJX0B0D.js → adopt-global-settings-DIweHmmO.js} +9 -9
- package/dist/browser/{boolean-editor-3IdccOj-.js → boolean-editor-C9fqoeTB.js} +9 -9
- package/dist/browser/{bootIntercom-CkHVzOj8.js → bootIntercom-BB5HdKln.js} +2 -2
- package/dist/browser/{booth-by-xy-CQvcHK_A.js → booth-by-xy-BP9IYJhy.js} +254 -254
- package/dist/browser/bundle.json +65 -65
- package/dist/browser/{classnames-6bU7zOpA.js → classnames-Dmeqek3o.js} +2 -2
- package/dist/browser/{client-BkHWS5lm.js → client-CBb2454O.js} +4 -4
- package/dist/browser/{components-Btgwx55F.js → components-DyDFRZBC.js} +787 -738
- package/dist/browser/{debug-overlay-D9Gq5tnJ.js → debug-overlay-DXOrtUeJ.js} +10 -10
- package/dist/browser/{debug-ui-CclRARRM.js → debug-ui-tNUnR4wz.js} +6 -6
- package/dist/browser/{dist-nmYmVc14.js → dist-BIFUFe-T.js} +5 -5
- package/dist/browser/{dist-YXQi1KHp.js → dist-DZfEO0RJ.js} +6 -6
- package/dist/browser/{dist-D4vUke_M.js → dist-DcOtrqGG.js} +3 -3
- package/dist/browser/{efp-debug-init-BNS4_yDX.js → efp-debug-init-B4ddpmiL.js} +3 -3
- package/dist/browser/{enum-editor-YeDXZjkr.js → enum-editor-CJB3E-Vh.js} +4 -4
- package/dist/browser/{es5-CNjSlyOY.js → es5-DeTUpXm2.js} +2 -2
- package/dist/browser/{event-not-found-BQMzvSOp.js → event-not-found-WRXwMJms.js} +1 -1
- package/dist/browser/{exports-BPkLTIY6.js → exports-C5uYtLxL.js} +1 -1
- package/dist/browser/{favicon-D09E0ggy.js → favicon-5gTCZLy9.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CyeSNjOO.js → fetch-retry.umd-BoyaQteS.js} +2 -2
- package/dist/browser/{flex-DFe-lnRY.js → flex-DjFgAKFt.js} +5 -5
- package/dist/browser/{floorplan.loader-CtqFPg5v.js → floorplan.loader-Ck3XnezM.js} +20 -20
- package/dist/browser/{floorplan.ready-mvJLjOT8.js → floorplan.ready-CzTR8qqL.js} +315 -353
- package/dist/browser/{fuse-CH8SDiG4.js → fuse-BR27GheK.js} +2 -2
- package/dist/browser/{i18n-pREdf4o-.js → i18n-DNH3sP4D.js} +2528 -2559
- package/dist/browser/index.js +35 -35
- package/dist/browser/{index.module-4MYJQyVQ.js → index.module-DzGptmYn.js} +4 -4
- package/dist/browser/{integrateKiosk-BuctRtHM.js → integrateKiosk-DN5HgMdz.js} +9 -8
- package/dist/browser/{is-webview-Dk7i6iyE.js → is-webview-CEqtlsy5.js} +1 -1
- package/dist/browser/{jsx-runtime-BXQ7PX-y.js → jsx-runtime-BRUHXGcL.js} +2 -2
- package/dist/browser/{kiosk-record-Dz3E7PjP.js → kiosk-record-C6KsyYH0.js} +1 -1
- package/dist/browser/{lib-BfXVjQQV.js → lib-BoYL1Y22.js} +3 -3
- package/dist/browser/{loadImage-CUg38cMx.js → loadImage-2JV_4hsV.js} +4 -4
- package/dist/browser/{logDeviceInfo-CgIqRuAY.js → logDeviceInfo-Bga4LjdT.js} +9 -9
- package/dist/browser/{main-BzXd5H0A.js → main-BUSluy8y.js} +1 -1
- package/dist/browser/{mobx-BEFSh5R7.js → mobx-Cp-RXiD6.js} +4 -4
- package/dist/browser/{optional-boolean-editor-DH0Yj5mx.js → optional-boolean-editor-biZOa4EF.js} +3 -3
- package/dist/browser/{optional-enum-editor-DdsG6-RD.js → optional-enum-editor-BuzYWVhL.js} +4 -4
- package/dist/browser/{optional-string-editor-DdFnggla.js → optional-string-editor-1Gxph7oU.js} +4 -4
- package/dist/browser/{particles.min-C6YCIw7u.js → particles.min-Cq5SYO7P.js} +2 -2
- package/dist/browser/{react-Cq6vsgZS.js → react-BCiZTNvQ.js} +2 -2
- package/dist/browser/{react-dom-CioKdINL.js → react-dom-Gayzbfmi.js} +3 -3
- package/dist/browser/{rolldown-runtime-CEmdmqfC.js → rolldown-runtime-C4CgTizo.js} +1 -1
- package/dist/browser/{select-BREAzzuP.js → select-BEAG7sfR.js} +10 -10
- package/dist/browser/{settings-C17jPyNg.js → settings-BJrS0XMO.js} +2 -2
- package/dist/browser/{settings-item-BYt2Yu8n.js → settings-item-C-rqGE6m.js} +6 -6
- package/dist/browser/{store-BzaR1IVp.js → store-DH91iUcL.js} +7014 -7107
- package/dist/browser/{string-editor-XaVb33Ez.js → string-editor-fs3xB248.js} +4 -4
- package/dist/browser/{text-field-D70wZ5kg.js → text-field-CN-pynRC.js} +5 -5
- package/dist/browser/{theme-BLZVltm4.js → theme-78GgHmsO.js} +8 -8
- package/dist/browser/{ui-DyGGq9Ts.js → ui-BFQlKtKk.js} +8 -8
- package/dist/browser/{useRenderTarget-CMhjhwNe.js → useRenderTarget-CtWSXh71.js} +4 -4
- package/dist/esm/components/Bookmarks.js +1 -1
- package/dist/esm/components/Kiosk/integrateKiosk.d.ts +8 -2
- package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
- package/dist/esm/components/Kiosk/kiosk-mode.d.ts +8 -0
- package/dist/esm/components/Kiosk/kiosk-mode.js +1 -0
- package/dist/esm/components/Kiosk/kiosk-record.d.ts +5 -1
- package/dist/esm/components/Kiosk/kioskUrlParam.d.ts +7 -3
- package/dist/esm/components/Kiosk/kioskUrlParam.js +1 -1
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
- package/dist/esm/components/Maplibre/useCameraReactions.js +1 -1
- package/dist/esm/components/Maplibre/utils/geo-config.d.ts +32 -0
- package/dist/esm/components/Maplibre/utils/geo-config.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/services/multi-slug.d.ts +3 -3
- package/dist/esm/services/url-dispatch.d.ts +3 -5
- package/dist/esm/services/url-dispatch.js +1 -1
- package/dist/esm/store/BookmarksStore.d.ts +1 -4
- package/dist/esm/store/BookmarksStore.js +1 -2
- package/dist/esm/store/UIState.d.ts +8 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/index.js +1 -1
- package/dist/esm/store/init/init-booths.d.ts +3 -3
- package/dist/esm/store/init/init-booths.js +1 -1
- package/dist/esm/store/init/init-ui.js +1 -1
- package/dist/esm/utils/customCommands.js +1 -1
- package/dist/esm/utils/scene-bounds.d.ts +7 -0
- package/dist/esm/utils/scene-bounds.js +1 -1
- package/package.json +10 -9
- package/dist/esm/store/init/init-bookmarks.d.ts +0 -9
- package/dist/esm/store/init/init-bookmarks.js +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.23.0" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "44679cdd-b052-44a8-9d1a-ba17d346f9ea", e._sentryDebugIdIdentifier = "sentry-dbid-44679cdd-b052-44a8-9d1a-ba17d346f9ea");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./floorplan.loader-
|
|
11
|
-
import { $ as c, At as l, C as u, Ct as d, Dt as f, Et as ee, Ft as te, G as ne, H as re, It as
|
|
12
|
-
import { s as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
16
|
-
import { C as
|
|
17
|
-
import { t as
|
|
18
|
-
import { i as
|
|
19
|
-
import { B as
|
|
20
|
-
import { n as
|
|
9
|
+
import { r as e } from "./rolldown-runtime-C4CgTizo.js";
|
|
10
|
+
import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./floorplan.loader-Ck3XnezM.js";
|
|
11
|
+
import { $ as c, At as l, C as u, Ct as d, Dt as f, Et as ee, Ft as te, G as ne, H as re, It as ie, Lt as ae, Mt as oe, Nt as se, Ot as ce, Pt as le, Rt as p, St as ue, Tt as de, U as fe, V as pe, _t as me, bt as he, ct as ge, dt as m, f as h, ft as _e, gt as ve, jt as ye, kt as be, l as g, lt as xe, mt as Se, n as Ce, nt as we, o as Te, pt as Ee, r as De, v as Oe, wt as ke, xt as Ae, y as je, yt as Me, zt as _ } from "./i18n-DNH3sP4D.js";
|
|
12
|
+
import { s as Ne } from "./efp-debug-init-B4ddpmiL.js";
|
|
13
|
+
import { t as Pe } from "./react-BCiZTNvQ.js";
|
|
14
|
+
import { t as Fe } from "./jsx-runtime-BRUHXGcL.js";
|
|
15
|
+
import { r as v } from "./loadImage-2JV_4hsV.js";
|
|
16
|
+
import { C as y, D as Ie, Q as Le, ht as b, i as Re, n as ze, w as Be } from "./exports-C5uYtLxL.js";
|
|
17
|
+
import { t as Ve } from "./client-CBb2454O.js";
|
|
18
|
+
import { i as He, n as Ue, r as x, t as We } from "./components-DyDFRZBC.js";
|
|
19
|
+
import { $t as Ge, B as S, C, F as Ke, H as w, I as T, K as E, N as qe, Qt as D, S as Je, V as Ye, W as Xe, X as Ze, Yt as O, Z as Qe, _ as $e, at as et, b as tt, bn as nt, c as k, it as rt, ln as A, lt as it, nt as j, ot as at, pn as M, q as ot, rt as st, s as N, st as P, ut as ct, w as lt, x as ut } from "./store-DH91iUcL.js";
|
|
20
|
+
import { n as dt, t as ft } from "./integrateKiosk-DN5HgMdz.js";
|
|
21
21
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
22
|
-
function
|
|
22
|
+
function pt(e = {}) {
|
|
23
23
|
let r = n.document, i = (r == null ? void 0 : r.head) || (r == null ? void 0 : r.body);
|
|
24
24
|
if (!i) {
|
|
25
25
|
a && b.error("[showReportDialog] Global document not defined");
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
let o =
|
|
28
|
+
let o = Be(), s = y(), c = s == null ? void 0 : s.getDsn();
|
|
29
29
|
if (!c) {
|
|
30
30
|
a && b.error("[showReportDialog] DSN not configured");
|
|
31
31
|
return;
|
|
@@ -36,7 +36,7 @@ function dt(e = {}) {
|
|
|
36
36
|
...o.getUser(),
|
|
37
37
|
...e.user
|
|
38
38
|
},
|
|
39
|
-
eventId: e.eventId ||
|
|
39
|
+
eventId: e.eventId || Re()
|
|
40
40
|
}, u = n.document.createElement("script");
|
|
41
41
|
u.async = !0, u.crossOrigin = "anonymous", u.src = t(c, l);
|
|
42
42
|
let { onLoad: d, onClose: f } = l;
|
|
@@ -54,12 +54,12 @@ function dt(e = {}) {
|
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/error.js
|
|
57
|
-
var F = /* @__PURE__ */ e(
|
|
58
|
-
function
|
|
57
|
+
var F = /* @__PURE__ */ e(Pe());
|
|
58
|
+
function mt(e) {
|
|
59
59
|
let t = e.match(/^([^.]+)/);
|
|
60
60
|
return t !== null && parseInt(t[0]) >= 17;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ht(e, t) {
|
|
63
63
|
let n = /* @__PURE__ */ new WeakSet();
|
|
64
64
|
function r(e, t) {
|
|
65
65
|
if (!n.has(e)) {
|
|
@@ -69,25 +69,25 @@ function pt(e, t) {
|
|
|
69
69
|
}
|
|
70
70
|
r(e, t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
72
|
+
function gt(e, { componentStack: t }, n) {
|
|
73
|
+
if (mt(F.version) && Le(e) && t) {
|
|
74
74
|
let n = Error(e.message);
|
|
75
|
-
n.name = `React ErrorBoundary ${e.name}`, n.stack = t,
|
|
75
|
+
n.name = `React ErrorBoundary ${e.name}`, n.stack = t, ht(e, n);
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return ze(e, n);
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/debug-build.js
|
|
81
|
-
var
|
|
81
|
+
var _t = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, I = {
|
|
82
82
|
componentStack: null,
|
|
83
83
|
error: null,
|
|
84
84
|
eventId: null
|
|
85
|
-
},
|
|
85
|
+
}, vt = class extends F.Component {
|
|
86
86
|
constructor(e) {
|
|
87
87
|
super(e), this.state = I, this._openFallbackReportDialog = !0;
|
|
88
|
-
let t =
|
|
88
|
+
let t = y();
|
|
89
89
|
t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
|
|
90
|
-
!t.type && this._lastEventId && t.event_id === this._lastEventId &&
|
|
90
|
+
!t.type && this._lastEventId && t.event_id === this._lastEventId && pt({
|
|
91
91
|
...e.dialogOptions,
|
|
92
92
|
eventId: this._lastEventId
|
|
93
93
|
});
|
|
@@ -95,13 +95,13 @@ var ht = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, I = {
|
|
|
95
95
|
}
|
|
96
96
|
componentDidCatch(e, t) {
|
|
97
97
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
98
|
-
|
|
98
|
+
Ie((s) => {
|
|
99
99
|
r && r(s, e, n);
|
|
100
|
-
let c =
|
|
100
|
+
let c = gt(e, t, { mechanism: {
|
|
101
101
|
handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
|
|
102
102
|
type: "auto.function.react.error_boundary"
|
|
103
103
|
} });
|
|
104
|
-
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog &&
|
|
104
|
+
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && pt({
|
|
105
105
|
...o,
|
|
106
106
|
eventId: c
|
|
107
107
|
})), this.setState({
|
|
@@ -132,22 +132,22 @@ var ht = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, I = {
|
|
|
132
132
|
resetError: () => this.resetErrorBoundary(),
|
|
133
133
|
eventId: n.eventId
|
|
134
134
|
}) : e;
|
|
135
|
-
return F.isValidElement(r) ? r : (e &&
|
|
135
|
+
return F.isValidElement(r) ? r : (e && _t && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
138
|
-
function
|
|
137
|
+
}, yt = /* @__PURE__ */ e(Ne(), 1), bt = Ve(), xt = nt();
|
|
138
|
+
function St(e) {
|
|
139
139
|
var t;
|
|
140
|
-
let n = new URLSearchParams(window.location.search).get(
|
|
141
|
-
return i == null ? g &&
|
|
140
|
+
let n = new URLSearchParams(window.location.search).get(pe), r = g ? window.localStorage.getItem(pe) : null, i = n == null ? r : n;
|
|
141
|
+
return i == null ? g && Qe() != null || Object.keys((t = e.kiosk) == null ? {} : t).length > 0 : i === "1";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function L() {
|
|
144
144
|
let e = window.location.hostname.split(".");
|
|
145
145
|
return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
return
|
|
147
|
+
function Ct() {
|
|
148
|
+
return L() ? window.location.hostname.split(".")[0] : "main";
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function wt(e) {
|
|
151
151
|
if ((e == null ? void 0 : e.free) === !0) return "Free";
|
|
152
152
|
let t = e == null ? void 0 : e.trialExpiresAt;
|
|
153
153
|
if (t) {
|
|
@@ -156,25 +156,25 @@ function Ct(e) {
|
|
|
156
156
|
}
|
|
157
157
|
return "Active";
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Tt() {
|
|
160
160
|
return !1;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Et(e) {
|
|
163
163
|
return e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
let t =
|
|
168
|
-
subDomain:
|
|
169
|
-
subscriptionStatus:
|
|
165
|
+
function Dt(e) {
|
|
166
|
+
if (Tt() || !L() || St(e) || !window.navigator.onLine) return null;
|
|
167
|
+
let t = Et({
|
|
168
|
+
subDomain: Ct(),
|
|
169
|
+
subscriptionStatus: wt(e)
|
|
170
170
|
});
|
|
171
171
|
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
175
|
-
var
|
|
175
|
+
var R = /*@__PURE__*/ p("ZodMiniType", (e, t) => {
|
|
176
176
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
177
|
-
|
|
177
|
+
l.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => ye(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => se(e, t, n), e.parseAsync = async (t, n) => oe(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => le(e, t, n), e.check = (...n) => {
|
|
178
178
|
var r;
|
|
179
179
|
return e.clone({
|
|
180
180
|
...t,
|
|
@@ -184,95 +184,95 @@ var L = /*@__PURE__*/ m("ZodMiniType", (e, t) => {
|
|
|
184
184
|
onattach: []
|
|
185
185
|
} } : e)]
|
|
186
186
|
}, { parent: !0 });
|
|
187
|
-
}, e.with = e.check, e.clone = (t, n) =>
|
|
188
|
-
}),
|
|
189
|
-
|
|
187
|
+
}, e.with = e.check, e.clone = (t, n) => te(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
188
|
+
}), Ot = /*@__PURE__*/ p("ZodMiniString", (e, t) => {
|
|
189
|
+
be.init(e, t), R.init(e, t);
|
|
190
190
|
});
|
|
191
191
|
// @__NO_SIDE_EFFECTS__
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function kt(e) {
|
|
193
|
+
return ue(Ot, e);
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
|
|
195
|
+
var At = /*@__PURE__*/ p("ZodMiniNumber", (e, t) => {
|
|
196
|
+
ee.init(e, t), R.init(e, t);
|
|
197
197
|
});
|
|
198
198
|
// @__NO_SIDE_EFFECTS__
|
|
199
199
|
function z(e) {
|
|
200
|
-
return
|
|
200
|
+
return he(At, e);
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
|
|
202
|
+
var jt = /*@__PURE__*/ p("ZodMiniNever", (e, t) => {
|
|
203
|
+
de.init(e, t), R.init(e, t);
|
|
204
204
|
});
|
|
205
205
|
// @__NO_SIDE_EFFECTS__
|
|
206
|
-
function
|
|
207
|
-
return
|
|
206
|
+
function Mt(e) {
|
|
207
|
+
return Me(jt, e);
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
|
|
209
|
+
var Nt = /*@__PURE__*/ p("ZodMiniArray", (e, t) => {
|
|
210
|
+
d.init(e, t), R.init(e, t);
|
|
211
211
|
});
|
|
212
212
|
// @__NO_SIDE_EFFECTS__
|
|
213
|
-
function
|
|
214
|
-
return new
|
|
213
|
+
function Pt(e, t) {
|
|
214
|
+
return new Nt({
|
|
215
215
|
type: "array",
|
|
216
216
|
element: e,
|
|
217
|
-
...
|
|
217
|
+
...ae(t)
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
|
|
220
|
+
var Ft = /*@__PURE__*/ p("ZodMiniObject", (e, t) => {
|
|
221
|
+
f.init(e, t), R.init(e, t), ie(e, "shape", () => t.shape);
|
|
222
222
|
});
|
|
223
223
|
// @__NO_SIDE_EFFECTS__
|
|
224
224
|
function B(e, t) {
|
|
225
|
-
return new
|
|
225
|
+
return new Ft({
|
|
226
226
|
type: "object",
|
|
227
227
|
shape: e,
|
|
228
|
-
catchall: /* @__PURE__ */
|
|
229
|
-
...
|
|
228
|
+
catchall: /* @__PURE__ */ Mt(),
|
|
229
|
+
...ae(t)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var It = /*@__PURE__*/ p("ZodMiniOptional", (e, t) => {
|
|
233
|
+
ce.init(e, t), R.init(e, t);
|
|
234
234
|
});
|
|
235
235
|
// @__NO_SIDE_EFFECTS__
|
|
236
236
|
function V(e) {
|
|
237
|
-
return new
|
|
237
|
+
return new It({
|
|
238
238
|
type: "optional",
|
|
239
239
|
innerType: e
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
var
|
|
243
|
-
|
|
242
|
+
var Lt = /*@__PURE__*/ p("ZodMiniCustom", (e, t) => {
|
|
243
|
+
ke.init(e, t), R.init(e, t);
|
|
244
244
|
});
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
247
|
-
return
|
|
246
|
+
function Rt(e, t = {}) {
|
|
247
|
+
return Ae(Lt, e, t);
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region src/schemas/sdk.schemas.ts
|
|
251
|
-
var
|
|
251
|
+
var zt = /* @__PURE__ */ B({
|
|
252
252
|
x: /* @__PURE__ */ z(),
|
|
253
253
|
y: /* @__PURE__ */ z()
|
|
254
|
-
}),
|
|
255
|
-
leftTop:
|
|
256
|
-
rightBottom:
|
|
257
|
-
}),
|
|
258
|
-
name: /* @__PURE__ */ V(/* @__PURE__ */
|
|
259
|
-
externalId: /* @__PURE__ */ V(/* @__PURE__ */
|
|
260
|
-
})).check(/* @__PURE__ */
|
|
261
|
-
booths: /* @__PURE__ */ V(/* @__PURE__ */
|
|
262
|
-
exhibitors: /* @__PURE__ */ V(/* @__PURE__ */
|
|
263
|
-
})).check(/* @__PURE__ */
|
|
254
|
+
}), Bt = /* @__PURE__ */ B({
|
|
255
|
+
leftTop: zt,
|
|
256
|
+
rightBottom: zt
|
|
257
|
+
}), Vt = (/* @__PURE__ */ B({
|
|
258
|
+
name: /* @__PURE__ */ V(/* @__PURE__ */ kt()),
|
|
259
|
+
externalId: /* @__PURE__ */ V(/* @__PURE__ */ kt())
|
|
260
|
+
})).check(/* @__PURE__ */ Rt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Ht = (/* @__PURE__ */ B({
|
|
261
|
+
booths: /* @__PURE__ */ V(/* @__PURE__ */ Pt(Vt)),
|
|
262
|
+
exhibitors: /* @__PURE__ */ V(/* @__PURE__ */ Pt(Vt))
|
|
263
|
+
})).check(/* @__PURE__ */ Rt((e) => {
|
|
264
264
|
var t, n;
|
|
265
265
|
return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
|
|
266
|
-
}, "Selector must contain booths or exhibitors")),
|
|
266
|
+
}, "Selector must contain booths or exhibitors")), Ut = /* @__PURE__ */ V(/* @__PURE__ */ B({ padding: /* @__PURE__ */ V(/* @__PURE__ */ z()) }));
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
|
-
function
|
|
270
|
-
let t =
|
|
271
|
-
Object.values(t).length && (
|
|
269
|
+
function Wt(e) {
|
|
270
|
+
let t = $e(e);
|
|
271
|
+
Object.values(t).length && (ft(t, !1), dt(t));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region src/utils/getMostFrequent.ts
|
|
275
|
-
function
|
|
275
|
+
function Gt(e) {
|
|
276
276
|
let t = {}, n = 0, r;
|
|
277
277
|
return e.forEach((e) => {
|
|
278
278
|
t[e] = (t[e] || 0) + 1, t[e] > n && (n = t[e], r = e);
|
|
@@ -280,68 +280,66 @@ function Ut(e) {
|
|
|
280
280
|
}
|
|
281
281
|
//#endregion
|
|
282
282
|
//#region src/services/multi-slug.ts
|
|
283
|
-
function
|
|
283
|
+
function Kt(e, t) {
|
|
284
284
|
if (!e.includes("&") && !e.includes("%26")) return null;
|
|
285
|
-
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !
|
|
285
|
+
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !m(e).includes("=");
|
|
286
286
|
return i.filter(a).length < 2 ? null : "?" + i.map((e) => a(e) && t(e) || e).join("&");
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region src/services/url-dispatch.ts
|
|
290
290
|
var H = !1;
|
|
291
|
-
function
|
|
292
|
-
|
|
293
|
-
let e =
|
|
294
|
-
Object.keys(e).length &&
|
|
295
|
-
let t =
|
|
296
|
-
Object.keys(t).length &&
|
|
291
|
+
function qt() {
|
|
292
|
+
G(_()), u(() => N.layerStore.layersLoaded, () => {
|
|
293
|
+
let e = _().camera;
|
|
294
|
+
Object.keys(e).length && dn(x(e));
|
|
295
|
+
let t = _().visibility;
|
|
296
|
+
Object.keys(t).length && k.setVisibility(t);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
299
|
+
function Jt(e) {
|
|
300
|
+
et({
|
|
301
301
|
offHistory: e,
|
|
302
302
|
onNavigate: W
|
|
303
|
-
}),
|
|
304
|
-
|
|
303
|
+
}), $t(), U(), u(() => N.layerStore.layersLoaded, () => {
|
|
304
|
+
N.urlFilterManager && !N.urlFilterManager.isInitialized && N.urlFilterManager.initialize(), W(), h(un), h(cn), k.viewerMode && (k.menu = !0);
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
|
|
307
|
+
function Yt(e = "") {
|
|
308
|
+
P("?" + m(e.toString())), N.layerStore.layersLoaded ? Xt(e) : (U(), u(() => N.layerStore.layersLoaded, () => Xt(e)));
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
var t;
|
|
312
|
-
let
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
310
|
+
function Xt(e) {
|
|
311
|
+
var t, n;
|
|
312
|
+
let r = "?" + m(e), i = rn(r), a = [...(t = i.intents) == null ? [] : t, ...Ee(r).intents], { intents: s = [], ...c } = _e(r, {
|
|
313
|
+
visibility: i.visibility,
|
|
314
|
+
consent: i.consent,
|
|
315
|
+
intents: a
|
|
316
|
+
});
|
|
317
|
+
G(i), G(c);
|
|
318
|
+
let l = (n = i.consent) == null ? c.consent : n;
|
|
319
|
+
l && ot(l), i.camera && Object.keys(i.camera).length && dn(x(i.camera)), i.visibility && Object.keys(i.visibility).length && k.setVisibility(i.visibility), $t(), W();
|
|
320
|
+
let u = [...a, ...s];
|
|
321
|
+
u.length && o(N.fp, u);
|
|
316
322
|
}
|
|
317
323
|
function U() {
|
|
318
|
-
let e =
|
|
319
|
-
return
|
|
324
|
+
let e = j();
|
|
325
|
+
return Ue(e.length > 1 ? m(e.substring(1)) : "");
|
|
320
326
|
}
|
|
321
327
|
function W() {
|
|
322
328
|
H = !0;
|
|
323
329
|
try {
|
|
324
|
-
|
|
325
|
-
let { primary: e
|
|
326
|
-
|
|
327
|
-
let e = n.roll;
|
|
328
|
-
G({
|
|
329
|
-
...x(n.camera),
|
|
330
|
-
roll: e
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
let r = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (E.heatmap || E.heatmapYah);
|
|
334
|
-
!U() && !r && Yt(e);
|
|
330
|
+
Wt(new URLSearchParams(m(window.location.search)));
|
|
331
|
+
let { primary: e } = ge(j()), t = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (k.heatmap || k.heatmapYah);
|
|
332
|
+
!U() && !t && Zt(e);
|
|
335
333
|
} finally {
|
|
336
334
|
H = !1;
|
|
337
335
|
}
|
|
338
|
-
|
|
336
|
+
cn(), un();
|
|
339
337
|
}
|
|
340
|
-
function
|
|
341
|
-
let t =
|
|
338
|
+
function Zt(e) {
|
|
339
|
+
let t = N.fp;
|
|
342
340
|
switch (e.type) {
|
|
343
341
|
case "kiosk":
|
|
344
|
-
e.enabled
|
|
342
|
+
e.enabled !== null && ct(k, e.enabled);
|
|
345
343
|
return;
|
|
346
344
|
case "list":
|
|
347
345
|
t.showList(e.list);
|
|
@@ -358,31 +356,13 @@ function Yt(e) {
|
|
|
358
356
|
return;
|
|
359
357
|
case "route":
|
|
360
358
|
var n, r;
|
|
361
|
-
|
|
362
|
-
return;
|
|
363
|
-
case "language":
|
|
364
|
-
we(e.langId) && Se(e.langId);
|
|
365
|
-
return;
|
|
366
|
-
case "printPdf":
|
|
367
|
-
M.uiState.printingPdf = !0;
|
|
368
|
-
return;
|
|
369
|
-
case "visibility":
|
|
370
|
-
M.uiState.setVisibility(e.hidden.reduce((e, t) => ({
|
|
371
|
-
...e,
|
|
372
|
-
[t]: !1
|
|
373
|
-
}), {}));
|
|
374
|
-
return;
|
|
375
|
-
case "buildRoute":
|
|
376
|
-
t.startBuildRoute();
|
|
377
|
-
return;
|
|
378
|
-
case "pathway":
|
|
379
|
-
Xt(e);
|
|
359
|
+
N.routeStore.setOnlyAccessible(e.accessible), N.routeStore.selectRoute(Je((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), N.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && N.uiState.setRouteTitle(e.title);
|
|
380
360
|
return;
|
|
381
361
|
case "selectExhibitors":
|
|
382
362
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
383
363
|
return;
|
|
384
364
|
case "ownedByFilters":
|
|
385
|
-
|
|
365
|
+
v.log("Skipping filter parameters in dispatchFromUrl (owned by URLFilterManager)");
|
|
386
366
|
return;
|
|
387
367
|
case "ownedByConfig": return;
|
|
388
368
|
case "select":
|
|
@@ -390,102 +370,88 @@ function Yt(e) {
|
|
|
390
370
|
return;
|
|
391
371
|
}
|
|
392
372
|
}
|
|
393
|
-
function
|
|
394
|
-
let { pathwayId: t, boothIds: n, exhibitorIds: r,
|
|
395
|
-
if (
|
|
396
|
-
let e =
|
|
397
|
-
e &&
|
|
398
|
-
var t;
|
|
399
|
-
M.uiState.setTourTitle(e.name), M.uiState.setTourDescription((t = e.description) == null ? "" : t), M.uiState.setIsMultiPointTour(!0), M.uiState.setMultiPointTourList(e.id);
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
let a = M.boothStore.booths.filter((e) => n.includes(e.externalId)), o = M.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), s = [...a, ...o];
|
|
403
|
-
if (Qe()) {
|
|
404
|
-
let e = Ut(s.map((e) => e.layer.name));
|
|
405
|
-
e && M.fp.activateFloor({ name: e });
|
|
373
|
+
function Qt(e) {
|
|
374
|
+
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i = N.boothStore.booths.filter((e) => n.includes(e.externalId)), a = N.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), o = [...i, ...a];
|
|
375
|
+
if (Ge()) {
|
|
376
|
+
let e = Gt(o.map((e) => e.layer.name));
|
|
377
|
+
e && N.fp.activateFloor({ name: e });
|
|
406
378
|
}
|
|
407
|
-
(n.length > 0 || r.length > 0) &&
|
|
408
|
-
|
|
379
|
+
(n.length > 0 || r.length > 0) && N.fp.highlightEntities([...n, ...r]), N.layerStore.showPathWay(t), o.length > 0 && je(() => {
|
|
380
|
+
N.uiState.moveToRect = M.fromUnion(...o.map((e) => e.rect).filter(Boolean)), N.uiState.rollReset = !0;
|
|
409
381
|
});
|
|
410
382
|
}
|
|
411
|
-
function
|
|
412
|
-
let
|
|
413
|
-
for (let
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
n !== null && A("?" + n), E.previewExhibitor && A("?" + E.previewExhibitor.slug), en();
|
|
383
|
+
function $t() {
|
|
384
|
+
let { oneShots: e } = ge(j());
|
|
385
|
+
for (let t of e) en(t);
|
|
386
|
+
let t = Ye(j());
|
|
387
|
+
t !== null && P("?" + t), k.previewExhibitor && P("?" + k.previewExhibitor.slug), nn();
|
|
417
388
|
}
|
|
418
|
-
function
|
|
389
|
+
function en(e) {
|
|
419
390
|
switch (e.type) {
|
|
420
391
|
case "heatmap":
|
|
421
|
-
|
|
392
|
+
tn(e.yah);
|
|
422
393
|
return;
|
|
423
394
|
case "blueDot": {
|
|
424
395
|
var t, n;
|
|
425
|
-
let r = new
|
|
426
|
-
u(() =>
|
|
396
|
+
let r = new tt(e.x, e.y, (t = N.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
397
|
+
u(() => N.layerStore.layersLoaded, () => N.routeStore.selectCurrentPosition(r, !0, 1));
|
|
427
398
|
return;
|
|
428
399
|
}
|
|
429
400
|
case "viewerMode":
|
|
430
|
-
g && (e.enabled ? localStorage.setItem(
|
|
401
|
+
g && (e.enabled ? localStorage.setItem(we, "true") : (localStorage.removeItem(we), localStorage.removeItem(ne)));
|
|
431
402
|
return;
|
|
432
403
|
case "previewMode":
|
|
433
|
-
g && (e.enabled ? localStorage.setItem(c, "true") : (localStorage.removeItem(c), localStorage.removeItem(
|
|
404
|
+
g && (e.enabled ? localStorage.setItem(c, "true") : (localStorage.removeItem(c), localStorage.removeItem(fe)));
|
|
434
405
|
return;
|
|
435
406
|
case "uiScale":
|
|
436
|
-
e.scale === null ?
|
|
407
|
+
e.scale === null ? v.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : N.uiState.setUIScale(e.scale, !0);
|
|
437
408
|
return;
|
|
438
409
|
case "resetUiScale":
|
|
439
|
-
|
|
440
|
-
return;
|
|
441
|
-
case "legacyBookmarks": {
|
|
442
|
-
let t = e.appendExhibitorId === null ? void 0 : M.exhibitorStore.exhibitorById.get(e.appendExhibitorId);
|
|
443
|
-
A(t ? "?" + t.slug : "?bookmarks");
|
|
410
|
+
N.uiState.resetUIScale();
|
|
444
411
|
return;
|
|
445
|
-
}
|
|
446
412
|
}
|
|
447
413
|
}
|
|
448
|
-
function
|
|
449
|
-
|
|
414
|
+
function tn(e) {
|
|
415
|
+
rt(), e ? (k.heatmapYah = !0, k.monochrome = !0, k.hideLogoInBooth = !0, k.hideHeaderLogo = !0, k.disableBookmarked = !0) : k.heatmap = !0;
|
|
450
416
|
}
|
|
451
|
-
function
|
|
452
|
-
let e =
|
|
453
|
-
let t =
|
|
417
|
+
function nn() {
|
|
418
|
+
let e = Kt(j(), (e) => {
|
|
419
|
+
let t = N.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
454
420
|
return t == null ? void 0 : t.name;
|
|
455
421
|
});
|
|
456
|
-
e !== null &&
|
|
422
|
+
e !== null && P(e);
|
|
457
423
|
}
|
|
458
|
-
function
|
|
459
|
-
e.noOverlay !== void 0 && (
|
|
424
|
+
function G(e) {
|
|
425
|
+
e.noOverlay !== void 0 && (k.hideOverlay = e.noOverlay), e.monochrome && (k.monochrome = !0), e.hideHeaderLogo && (k.hideHeaderLogo = !0), e.hideLogoInBooth && (k.hideLogoInBooth = !0), e.disableFeatured && N.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (k.disableBookmarked = !0), e.disableGps && N.routeStore.setGpsTrackingEnabled(!1), e.heatmap && r(e.heatmap) && tn(e.heatmap.variant === "yah");
|
|
460
426
|
}
|
|
461
|
-
function
|
|
462
|
-
return
|
|
427
|
+
function rn(e) {
|
|
428
|
+
return Se(ve, e).value;
|
|
463
429
|
}
|
|
464
|
-
var
|
|
465
|
-
function
|
|
466
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } =
|
|
430
|
+
var an = null, on = null, sn = null;
|
|
431
|
+
function cn() {
|
|
432
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = ln(), i = N.urlFilterManager.filterSearch();
|
|
467
433
|
if (H) return;
|
|
468
|
-
let a =
|
|
469
|
-
|
|
434
|
+
let a = xe(e) || i;
|
|
435
|
+
j() !== a && (t !== an || n !== on || r !== sn ? at(a) : P(a), an = t, on = n, sn = r);
|
|
470
436
|
}
|
|
471
|
-
function
|
|
472
|
-
let e =
|
|
437
|
+
function ln() {
|
|
438
|
+
let e = k.selectedExhibitor, t = k.selectedBooth, n = k.selectedEventItem, r = k.selectedRoute, i = k.selectedSpeaker, a = k.setKioskModeEnabled, o = k.list, s;
|
|
473
439
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
474
440
|
var c;
|
|
475
|
-
let e =
|
|
441
|
+
let e = N.routePlannerStore;
|
|
476
442
|
s = {
|
|
477
443
|
type: "planner",
|
|
478
444
|
fromBookmarks: e.source === "bookmarks",
|
|
479
445
|
items: e.items.map((e) => e.entity.slug).filter(Boolean),
|
|
480
446
|
from: ((c = e.startPoint) == null ? void 0 : c.slug) || void 0
|
|
481
447
|
};
|
|
482
|
-
} else if (r && !
|
|
448
|
+
} else if (r && !k.isMultiPointRoute) {
|
|
483
449
|
var l;
|
|
484
450
|
s = {
|
|
485
451
|
type: "route",
|
|
486
|
-
to: r.to instanceof
|
|
487
|
-
from: r.from instanceof
|
|
488
|
-
accessible:
|
|
452
|
+
to: r.to instanceof O ? r.to.slug : void 0,
|
|
453
|
+
from: r.from instanceof O ? r.from.slug : void 0,
|
|
454
|
+
accessible: N.routeStore.onlyAccessible,
|
|
489
455
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
490
456
|
};
|
|
491
457
|
} else if (e) s = {
|
|
@@ -522,7 +488,7 @@ function cn() {
|
|
|
522
488
|
var u, d;
|
|
523
489
|
s = {
|
|
524
490
|
type: "slug",
|
|
525
|
-
slug: (u = (d =
|
|
491
|
+
slug: (u = (d = k.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
526
492
|
};
|
|
527
493
|
break;
|
|
528
494
|
case "search":
|
|
@@ -553,15 +519,15 @@ function cn() {
|
|
|
553
519
|
eventItem: n
|
|
554
520
|
};
|
|
555
521
|
}
|
|
556
|
-
function
|
|
557
|
-
let e =
|
|
558
|
-
e ? r = e.name : t ? r = t.name : n ? r = n.name :
|
|
522
|
+
function un() {
|
|
523
|
+
let e = k.selectedExhibitor, t = k.selectedEventItem, n = k.selectedSpeaker, r = "";
|
|
524
|
+
e ? r = e.name : t ? r = t.name : n ? r = n.name : k.list.type === "search" && k.list.text ? r = "`" + (k.list.text || "") + "`" : k.list.type === "multi-point-tour" && k.tourTitle && (r = k.tourTitle), r.length && (r += " – "), r += A.title, A.subtitle && (r += " – " + A.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
|
|
559
525
|
}
|
|
560
|
-
function
|
|
526
|
+
function dn(e) {
|
|
561
527
|
try {
|
|
562
|
-
if (
|
|
563
|
-
let t =
|
|
564
|
-
t &&
|
|
528
|
+
if (k.setMapSettings(e), e.z) {
|
|
529
|
+
let t = N.layerStore.layers.find((t) => t.name === e.z);
|
|
530
|
+
t && N.layerStore.updateVisibility(t, !0);
|
|
565
531
|
}
|
|
566
532
|
} catch (e) {
|
|
567
533
|
console.error("Failed to process map settings.", e);
|
|
@@ -569,14 +535,14 @@ function G(e) {
|
|
|
569
535
|
}
|
|
570
536
|
//#endregion
|
|
571
537
|
//#region src/tools/reset.ts
|
|
572
|
-
function
|
|
538
|
+
function fn() {
|
|
573
539
|
K("floorplan"), K("__searchi"), K("__mobxGlobals"), K("__store"), K("__mobxInstanceCount");
|
|
574
540
|
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && K(e);
|
|
575
541
|
}
|
|
576
542
|
function K(e) {
|
|
577
|
-
|
|
543
|
+
pn(e) ? delete window[e] : window[e] = void 0;
|
|
578
544
|
}
|
|
579
|
-
function
|
|
545
|
+
function pn(e) {
|
|
580
546
|
let t = Object.getOwnPropertyDescriptor(window, e);
|
|
581
547
|
return t && t.configurable;
|
|
582
548
|
}
|
|
@@ -654,33 +620,33 @@ function Y(e) {
|
|
|
654
620
|
}
|
|
655
621
|
//#endregion
|
|
656
622
|
//#region src/floorplan.ready.tsx
|
|
657
|
-
var X =
|
|
658
|
-
(0,
|
|
659
|
-
var
|
|
623
|
+
var X = Fe(), Z = (0, yt.default)("efp:api");
|
|
624
|
+
(0, xt.install)();
|
|
625
|
+
var mn = class extends s {
|
|
660
626
|
constructor(...e) {
|
|
661
627
|
super(...e), this.root = void 0;
|
|
662
628
|
}
|
|
663
629
|
init() {
|
|
664
|
-
|
|
630
|
+
qt(), this.ignoreQuery || Jt(this.offHistory), Ze("load"), N.fp = this, ot(this.consent), E(w.Load, ""), this.root = (0, bt.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(vt, { children: /* @__PURE__ */ (0, X.jsx)(We, {
|
|
665
631
|
offHistory: this.offHistory,
|
|
666
632
|
consent: this.consent
|
|
667
|
-
}) })),
|
|
668
|
-
if (this.resolveReady(), !
|
|
633
|
+
}) })), E(w.Rendered, ""), Oe(() => N.layerStore.layersLoaded, () => {
|
|
634
|
+
if (this.resolveReady(), !N.initialized) {
|
|
669
635
|
var e;
|
|
670
636
|
(e = this.onInit) == null || e.call(this, this);
|
|
671
637
|
}
|
|
672
|
-
|
|
638
|
+
N.initialized = !0;
|
|
673
639
|
});
|
|
674
|
-
let e =
|
|
675
|
-
e && import("./bootIntercom-
|
|
640
|
+
let e = Dt(A);
|
|
641
|
+
e && import("./bootIntercom-BB5HdKln.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
676
642
|
}
|
|
677
643
|
selectBooth(e) {
|
|
678
644
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
679
645
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
680
646
|
return;
|
|
681
647
|
}
|
|
682
|
-
let t =
|
|
683
|
-
|
|
648
|
+
let t = N.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
649
|
+
N.selectBooth(t);
|
|
684
650
|
}
|
|
685
651
|
selectExhibitor(e) {
|
|
686
652
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -688,39 +654,35 @@ var fn = class extends s {
|
|
|
688
654
|
return;
|
|
689
655
|
}
|
|
690
656
|
if (!(e != null && e.length)) {
|
|
691
|
-
|
|
657
|
+
N.uiState.menu = !1, N.searchStore.resetSearchBox(), N.uiState.details = null;
|
|
692
658
|
return;
|
|
693
659
|
}
|
|
694
|
-
let t =
|
|
660
|
+
let t = N.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
695
661
|
if (!(t != null && t.length)) return;
|
|
696
662
|
if (typeof e == "string") {
|
|
697
|
-
|
|
663
|
+
N.selectExhibitor(t[0]), N.moveToList([t[0]]);
|
|
698
664
|
return;
|
|
699
665
|
}
|
|
700
|
-
let n = t.flatMap((e) => e.booths.map((e) => e.layer))
|
|
701
|
-
|
|
702
|
-
mostFrequent: n[0],
|
|
703
|
-
maxCount: 0
|
|
704
|
-
}).mostFrequent;
|
|
705
|
-
M.layerStore.updateVisibility(r, !0), M.uiState.menu = !1, M.searchStore.resetSearchBox(), M.uiState.details = null, M.uiState.list = {
|
|
666
|
+
let n = Gt(t.flatMap((e) => e.booths.map((e) => e.layer)).map((e) => e.description));
|
|
667
|
+
n && N.layerStore.updateVisibility(n, !0), N.uiState.menu = !1, N.searchStore.resetSearchBox(), N.uiState.details = null, N.uiState.list = {
|
|
706
668
|
type: "filter",
|
|
707
669
|
items: t,
|
|
708
670
|
query: {
|
|
709
671
|
key: "exhibitors",
|
|
710
|
-
value: t.map((e) => e.
|
|
672
|
+
value: t.map((e) => e.name).join(",")
|
|
711
673
|
}
|
|
712
|
-
},
|
|
674
|
+
}, N.moveToList();
|
|
713
675
|
}
|
|
714
676
|
highlightExhibitors(e) {
|
|
715
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
677
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), N.boothStore.highlightedByExternalIds = [], N.exhibitorStore.highlightedByExternalIds = [...e];
|
|
716
678
|
}
|
|
717
679
|
highlightBooths(e) {
|
|
718
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
680
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), N.exhibitorStore.highlightedByExternalIds = [], N.boothStore.highlightedByExternalIds = [...e];
|
|
719
681
|
}
|
|
720
682
|
highlightEntities(e) {
|
|
721
683
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
722
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
723
|
-
|
|
684
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = lt(e);
|
|
685
|
+
N.boothStore.highlightedByExternalIds = [...t], N.exhibitorStore.highlightedByExternalIds = [...n];
|
|
724
686
|
}
|
|
725
687
|
selectRoute(e, t) {
|
|
726
688
|
if (Array.isArray(e)) {
|
|
@@ -730,10 +692,10 @@ var fn = class extends s {
|
|
|
730
692
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
731
693
|
return;
|
|
732
694
|
}
|
|
733
|
-
|
|
695
|
+
N.routeStore.selectRoute(new ut(Q(n), Q(r), t.map(Q)));
|
|
734
696
|
return;
|
|
735
697
|
}
|
|
736
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
698
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), N.routeStore.selectRoute(new ut(Q(e), Q(t)));
|
|
737
699
|
}
|
|
738
700
|
getOptimizedRoutes(e) {
|
|
739
701
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -746,19 +708,19 @@ var fn = class extends s {
|
|
|
746
708
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
747
709
|
a ? a.push(e) : n.set(t, [e]);
|
|
748
710
|
}
|
|
749
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
711
|
+
return Array.from(n.values()).map((e) => ({ waypoints: qe(e.map((e) => [e.name, {
|
|
750
712
|
x: e.rect.center.x,
|
|
751
713
|
y: e.rect.center.y
|
|
752
714
|
}])) }));
|
|
753
715
|
}
|
|
754
716
|
selectCurrentPosition(e, t, n) {
|
|
755
717
|
var r;
|
|
756
|
-
let i =
|
|
757
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
718
|
+
let i = T(e.x) && T(e.y), a = T(e.lng) && T(e.lat);
|
|
719
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), N.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
758
720
|
}
|
|
759
721
|
setBookmarks(e) {
|
|
760
722
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
761
|
-
let t =
|
|
723
|
+
let t = N.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
762
724
|
t && (t.bookmarked = e.bookmarked);
|
|
763
725
|
});
|
|
764
726
|
}
|
|
@@ -777,29 +739,29 @@ var fn = class extends s {
|
|
|
777
739
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
778
740
|
return;
|
|
779
741
|
}
|
|
780
|
-
let r =
|
|
742
|
+
let r = D("bookmarked"), i = {
|
|
781
743
|
exhibitor: {
|
|
782
744
|
existingIds: new Set(r.exhibitors || []),
|
|
783
|
-
finder: (e) =>
|
|
784
|
-
replacer: (e) =>
|
|
745
|
+
finder: (e) => N.exhibitorStore.findExhibitor(e),
|
|
746
|
+
replacer: (e) => N.exhibitorStore.replaceBookmarked(e)
|
|
785
747
|
},
|
|
786
748
|
event: {
|
|
787
749
|
existingIds: new Set(r.events || []),
|
|
788
|
-
finder: (e) =>
|
|
789
|
-
replacer: (e) =>
|
|
750
|
+
finder: (e) => N.eventStore.findByNameOrSlug(e),
|
|
751
|
+
replacer: (e) => N.eventStore.replaceBookmarked(e)
|
|
790
752
|
},
|
|
791
753
|
speaker: {
|
|
792
754
|
existingIds: new Set(r.speakers || []),
|
|
793
|
-
finder: (e) =>
|
|
794
|
-
replacer: (e) =>
|
|
755
|
+
finder: (e) => N.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
756
|
+
replacer: (e) => N.speakerStore.replaceBookmarked(e)
|
|
795
757
|
},
|
|
796
758
|
booth: {
|
|
797
759
|
existingIds: new Set(r.booths || []),
|
|
798
760
|
finder: (e) => {
|
|
799
|
-
let t =
|
|
761
|
+
let t = N.boothStore.findBooth(e);
|
|
800
762
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
801
763
|
},
|
|
802
|
-
replacer: (e) =>
|
|
764
|
+
replacer: (e) => N.boothStore.replaceBookmarked(e)
|
|
803
765
|
}
|
|
804
766
|
};
|
|
805
767
|
e.forEach((e) => {
|
|
@@ -819,16 +781,16 @@ var fn = class extends s {
|
|
|
819
781
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
820
782
|
return;
|
|
821
783
|
}
|
|
822
|
-
let r =
|
|
784
|
+
let r = D("visited"), i = {
|
|
823
785
|
exhibitor: {
|
|
824
786
|
existingIds: new Set(r.exhibitors || []),
|
|
825
|
-
finder: (e) =>
|
|
826
|
-
replacer: (e) =>
|
|
787
|
+
finder: (e) => N.exhibitorStore.findExhibitor(e),
|
|
788
|
+
replacer: (e) => N.exhibitorStore.replaceVisited(e)
|
|
827
789
|
},
|
|
828
790
|
event: {
|
|
829
791
|
existingIds: new Set(r.events || []),
|
|
830
|
-
finder: (e) =>
|
|
831
|
-
replacer: (e) =>
|
|
792
|
+
finder: (e) => N.eventStore.findByNameOrSlug(e),
|
|
793
|
+
replacer: (e) => N.eventStore.replaceVisited(e)
|
|
832
794
|
}
|
|
833
795
|
};
|
|
834
796
|
e.forEach((e) => {
|
|
@@ -843,94 +805,94 @@ var fn = class extends s {
|
|
|
843
805
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
844
806
|
return;
|
|
845
807
|
}
|
|
846
|
-
|
|
808
|
+
N.routeStore.setMarkers(e);
|
|
847
809
|
}
|
|
848
810
|
selectMarker(e, t = !0) {
|
|
849
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
811
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), N.routeStore.selectMarker(e, t);
|
|
850
812
|
}
|
|
851
813
|
drawCircles(e) {
|
|
852
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
814
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), N.uiState.debugCircles = e;
|
|
853
815
|
}
|
|
854
816
|
checkRoutes() {
|
|
855
|
-
|
|
817
|
+
N.routeStore.checkRoutes();
|
|
856
818
|
}
|
|
857
819
|
updateLayerVisibility(e, t) {
|
|
858
|
-
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"),
|
|
820
|
+
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"), N.layerStore.updateVisibility(e, t);
|
|
859
821
|
}
|
|
860
822
|
getCenterCoordinates() {
|
|
861
|
-
return
|
|
823
|
+
return N.fp.getCenterCoordinates();
|
|
862
824
|
}
|
|
863
825
|
exhibitorsList() {
|
|
864
|
-
return
|
|
826
|
+
return N.exhibitorStore.exhibitors.map((e) => q(e));
|
|
865
827
|
}
|
|
866
828
|
boothsList() {
|
|
867
|
-
return
|
|
829
|
+
return N.boothStore.booths.map((e) => q(e));
|
|
868
830
|
}
|
|
869
831
|
categoriesList() {
|
|
870
|
-
return
|
|
832
|
+
return N.categoryStore.categories.map((e) => q(e));
|
|
871
833
|
}
|
|
872
834
|
selectCategory(e) {
|
|
873
835
|
if (e == null || typeof e != "string") {
|
|
874
|
-
|
|
836
|
+
N.searchStore.selectSearch();
|
|
875
837
|
return;
|
|
876
838
|
}
|
|
877
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
839
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = N.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
878
840
|
if (!n) {
|
|
879
841
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
880
842
|
return;
|
|
881
843
|
}
|
|
882
|
-
|
|
844
|
+
N.selectCategory(n);
|
|
883
845
|
}
|
|
884
846
|
select(e) {
|
|
885
847
|
if (typeof e != "string") {
|
|
886
848
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
887
849
|
return;
|
|
888
850
|
}
|
|
889
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
851
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = N.boothStore.booths.find((e) => {
|
|
890
852
|
var t, r, i;
|
|
891
853
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n || ((i = e.externalId) == null || (i = i.toLowerCase()) == null ? void 0 : i.replace(/\s+/g, "")) === n;
|
|
892
854
|
});
|
|
893
855
|
if (r) {
|
|
894
|
-
setTimeout(() =>
|
|
856
|
+
setTimeout(() => N.selectBooth(r), 250);
|
|
895
857
|
return;
|
|
896
858
|
}
|
|
897
|
-
let i =
|
|
859
|
+
let i = N.eventStore.eventItems.find((e) => {
|
|
898
860
|
var t, r;
|
|
899
861
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
900
862
|
});
|
|
901
863
|
if (i) {
|
|
902
|
-
|
|
864
|
+
N.selectEventItem(i, !0);
|
|
903
865
|
return;
|
|
904
866
|
}
|
|
905
|
-
let a =
|
|
867
|
+
let a = N.exhibitorStore.exhibitors.find((e) => {
|
|
906
868
|
var t, r;
|
|
907
869
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
908
870
|
});
|
|
909
871
|
if (a) {
|
|
910
|
-
setTimeout(() =>
|
|
872
|
+
setTimeout(() => N.clickExhibitor(a), 250);
|
|
911
873
|
return;
|
|
912
874
|
}
|
|
913
|
-
let o =
|
|
875
|
+
let o = N.categoryStore.categories.find((e) => e.slug === t);
|
|
914
876
|
if (o) {
|
|
915
|
-
|
|
877
|
+
N.selectCategory(o);
|
|
916
878
|
return;
|
|
917
879
|
}
|
|
918
|
-
let s =
|
|
880
|
+
let s = N.speakerStore.findBySlug(t);
|
|
919
881
|
if (s) {
|
|
920
|
-
|
|
882
|
+
N.selectSpeaker(s, !0);
|
|
921
883
|
return;
|
|
922
884
|
}
|
|
923
|
-
t.includes("heatmap=true") ||
|
|
885
|
+
t.includes("heatmap=true") || N.searchStore.selectSearch(t);
|
|
924
886
|
}
|
|
925
887
|
showList(e) {
|
|
926
888
|
let t = {
|
|
927
|
-
bookmarks: () =>
|
|
928
|
-
visited: () =>
|
|
929
|
-
sessions: () =>
|
|
930
|
-
exhibitors: () =>
|
|
931
|
-
speakers: () =>
|
|
932
|
-
tours: () =>
|
|
933
|
-
language: () =>
|
|
889
|
+
bookmarks: () => N.selectBookmarks(),
|
|
890
|
+
visited: () => N.selectVisited(),
|
|
891
|
+
sessions: () => N.selectSessions(),
|
|
892
|
+
exhibitors: () => N.selectExhibitors(),
|
|
893
|
+
speakers: () => N.selectSpeakers(),
|
|
894
|
+
tours: () => N.selectTours(),
|
|
895
|
+
language: () => N.selectLanguage()
|
|
934
896
|
}, n = t[e];
|
|
935
897
|
if (!n) {
|
|
936
898
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -943,8 +905,8 @@ var fn = class extends s {
|
|
|
943
905
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
944
906
|
return;
|
|
945
907
|
}
|
|
946
|
-
let t =
|
|
947
|
-
t ?
|
|
908
|
+
let t = N.toursStore.getTourById(e);
|
|
909
|
+
t ? N.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), N.selectTours());
|
|
948
910
|
}
|
|
949
911
|
openPlanner(e = {}) {
|
|
950
912
|
if (typeof e != "object" || !e) {
|
|
@@ -952,56 +914,56 @@ var fn = class extends s {
|
|
|
952
914
|
return;
|
|
953
915
|
}
|
|
954
916
|
let t = e.from ? C(e.from) : null;
|
|
955
|
-
if (e.fromBookmarks)
|
|
917
|
+
if (e.fromBookmarks) N.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
956
918
|
else {
|
|
957
919
|
var n;
|
|
958
|
-
|
|
920
|
+
N.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
959
921
|
}
|
|
960
922
|
}
|
|
961
923
|
startBuildRoute() {
|
|
962
|
-
|
|
924
|
+
N.uiState.startBuildRoute();
|
|
963
925
|
}
|
|
964
926
|
applyParameters(e) {
|
|
965
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
927
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), Yt(e);
|
|
966
928
|
}
|
|
967
929
|
getVisibility() {
|
|
968
|
-
return
|
|
930
|
+
return N.uiState.visibility;
|
|
969
931
|
}
|
|
970
932
|
setVisibility(e) {
|
|
971
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
933
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), N.uiState.setVisibility(e);
|
|
972
934
|
}
|
|
973
935
|
findLocation() {
|
|
974
|
-
|
|
936
|
+
N.routeStore.findLocation();
|
|
975
937
|
}
|
|
976
938
|
zoomIn() {
|
|
977
|
-
|
|
939
|
+
N.uiState.zoomIn();
|
|
978
940
|
}
|
|
979
941
|
zoomOut() {
|
|
980
|
-
|
|
942
|
+
N.uiState.zoomOut();
|
|
981
943
|
}
|
|
982
944
|
switchView() {
|
|
983
|
-
|
|
945
|
+
N.maplibreStore.activateMaplibre();
|
|
984
946
|
}
|
|
985
947
|
setCamera(e) {
|
|
986
948
|
Z("setCamera called with camera=%O", e);
|
|
987
|
-
let t =
|
|
949
|
+
let t = me.safeParse(e);
|
|
988
950
|
if (!t.success) {
|
|
989
951
|
$("setCamera", t.error.message, "EFP001B00");
|
|
990
952
|
return;
|
|
991
953
|
}
|
|
992
|
-
|
|
954
|
+
N.uiState.setMapSettings(x(t.data));
|
|
993
955
|
}
|
|
994
956
|
getCamera() {
|
|
995
|
-
return
|
|
957
|
+
return He(N.uiState.mapSettings);
|
|
996
958
|
}
|
|
997
959
|
zoomTo(e, t) {
|
|
998
960
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
999
|
-
let n =
|
|
961
|
+
let n = Ht.safeParse(e);
|
|
1000
962
|
if (!n.success) {
|
|
1001
963
|
$("zoomTo", n.error.message, "EFP001600");
|
|
1002
964
|
return;
|
|
1003
965
|
}
|
|
1004
|
-
let r =
|
|
966
|
+
let r = Ut.safeParse(t);
|
|
1005
967
|
if (!r.success) {
|
|
1006
968
|
$("zoomTo", r.error.message, "EFP001601");
|
|
1007
969
|
return;
|
|
@@ -1012,7 +974,7 @@ var fn = class extends s {
|
|
|
1012
974
|
getBounds(e) {
|
|
1013
975
|
var t, n;
|
|
1014
976
|
Z("getBounds called with selectors=%O", e);
|
|
1015
|
-
let r =
|
|
977
|
+
let r = Ht.safeParse(e);
|
|
1016
978
|
if (!r.success) {
|
|
1017
979
|
$("getBounds", r.error.message, "EFP001400");
|
|
1018
980
|
return;
|
|
@@ -1020,15 +982,15 @@ var fn = class extends s {
|
|
|
1020
982
|
let i = [];
|
|
1021
983
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1022
984
|
let t;
|
|
1023
|
-
e.externalId ? t =
|
|
985
|
+
e.externalId ? t = N.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = N.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1024
986
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1025
987
|
var t;
|
|
1026
988
|
let n;
|
|
1027
|
-
e.externalId ? n =
|
|
989
|
+
e.externalId ? n = N.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = N.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1028
990
|
e.rect && i.push(e.rect);
|
|
1029
991
|
});
|
|
1030
992
|
}), i.length === 0) return;
|
|
1031
|
-
let a =
|
|
993
|
+
let a = M.fromUnion(...i);
|
|
1032
994
|
return {
|
|
1033
995
|
leftTop: {
|
|
1034
996
|
x: a.min.x,
|
|
@@ -1042,37 +1004,37 @@ var fn = class extends s {
|
|
|
1042
1004
|
}
|
|
1043
1005
|
fitBounds(e, t) {
|
|
1044
1006
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1045
|
-
|
|
1007
|
+
N.uiState.fitBounds();
|
|
1046
1008
|
return;
|
|
1047
1009
|
}
|
|
1048
|
-
let n =
|
|
1010
|
+
let n = Bt.safeParse(e);
|
|
1049
1011
|
if (!n.success) {
|
|
1050
1012
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1051
1013
|
return;
|
|
1052
1014
|
}
|
|
1053
|
-
let r =
|
|
1015
|
+
let r = Ut.safeParse(t);
|
|
1054
1016
|
if (!r.success) {
|
|
1055
1017
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1056
1018
|
return;
|
|
1057
1019
|
}
|
|
1058
|
-
let i =
|
|
1020
|
+
let i = M.fromMinMax({
|
|
1059
1021
|
x: e.leftTop.x,
|
|
1060
1022
|
y: e.leftTop.y
|
|
1061
1023
|
}, {
|
|
1062
1024
|
x: e.rightBottom.x,
|
|
1063
1025
|
y: e.rightBottom.y
|
|
1064
1026
|
});
|
|
1065
|
-
|
|
1027
|
+
N.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1066
1028
|
}
|
|
1067
1029
|
getBoothRect(e) {
|
|
1068
1030
|
var t;
|
|
1069
1031
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1070
1032
|
let n = (t = C(e)) == null ? void 0 : t.rect;
|
|
1071
|
-
return n ?
|
|
1033
|
+
return n ? gn.fromBox(n) : void 0;
|
|
1072
1034
|
}
|
|
1073
1035
|
convertToGeo(e, t) {
|
|
1074
1036
|
var n;
|
|
1075
|
-
if (!(!(
|
|
1037
|
+
if (!(!(S == null || (n = S.properties) == null) && n.config)) {
|
|
1076
1038
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1077
1039
|
return;
|
|
1078
1040
|
}
|
|
@@ -1080,11 +1042,11 @@ var fn = class extends s {
|
|
|
1080
1042
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1081
1043
|
return;
|
|
1082
1044
|
}
|
|
1083
|
-
return
|
|
1045
|
+
return Ke(e, t, S.properties.config);
|
|
1084
1046
|
}
|
|
1085
1047
|
getGeoConfig() {
|
|
1086
1048
|
var e, t;
|
|
1087
|
-
let n =
|
|
1049
|
+
let n = S == null || (e = S.properties) == null ? void 0 : e.config;
|
|
1088
1050
|
return n ? {
|
|
1089
1051
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1090
1052
|
p0: n.p0,
|
|
@@ -1094,16 +1056,16 @@ var fn = class extends s {
|
|
|
1094
1056
|
}
|
|
1095
1057
|
unstable_destroy() {
|
|
1096
1058
|
let e = window.__efpElement.firstChild;
|
|
1097
|
-
|
|
1059
|
+
fn(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", i), N.maplibreStore.dispose(), st(), it(), Xe(), this.root.unmount(), e.remove();
|
|
1098
1060
|
}
|
|
1099
1061
|
search(e) {
|
|
1100
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1062
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), N.fuzzySearchEngineStore.loadEngine().then(() => (N.searchStore.selectSearch(e), N.uiState.fuzzySearchItems.map((e) => ({
|
|
1101
1063
|
item: q(e.item),
|
|
1102
1064
|
score: e.score
|
|
1103
1065
|
}))));
|
|
1104
1066
|
}
|
|
1105
1067
|
getFloors() {
|
|
1106
|
-
return
|
|
1068
|
+
return N.layerStore.floors.map((e) => ({
|
|
1107
1069
|
name: e.name,
|
|
1108
1070
|
shortName: e.shortName,
|
|
1109
1071
|
description: e.description,
|
|
@@ -1140,70 +1102,70 @@ var fn = class extends s {
|
|
|
1140
1102
|
}
|
|
1141
1103
|
}
|
|
1142
1104
|
showPathway(e, t) {
|
|
1143
|
-
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ?
|
|
1105
|
+
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? lt(t) : {
|
|
1144
1106
|
boothExternalIds: [],
|
|
1145
1107
|
exhibitorExternalIds: []
|
|
1146
1108
|
};
|
|
1147
|
-
|
|
1109
|
+
Qt({
|
|
1148
1110
|
pathwayId: e,
|
|
1149
1111
|
boothIds: n,
|
|
1150
1112
|
exhibitorIds: r
|
|
1151
1113
|
});
|
|
1152
1114
|
}
|
|
1153
1115
|
showPathwayOnly(e, t) {
|
|
1154
|
-
this.activateFloor({ name: t }),
|
|
1155
|
-
let n =
|
|
1116
|
+
this.activateFloor({ name: t }), N.layerStore.showPathWay(e), N.uiState.setPathwayOnlyMode(!0);
|
|
1117
|
+
let n = N.layerStore.findLayer(e), r = N.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1156
1118
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1157
1119
|
var a;
|
|
1158
1120
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1159
|
-
|
|
1121
|
+
N.uiState.moveToRect = e.clone();
|
|
1160
1122
|
}
|
|
1161
1123
|
}
|
|
1162
1124
|
hidePathways() {
|
|
1163
|
-
this.highlightBooths([]),
|
|
1125
|
+
this.highlightBooths([]), N.layerStore.hidePathways(), N.uiState.setPathwayOnlyMode(!1);
|
|
1164
1126
|
}
|
|
1165
1127
|
showSearch() {
|
|
1166
|
-
|
|
1128
|
+
N.selectSearch("");
|
|
1167
1129
|
}
|
|
1168
1130
|
changeLanguage(e) {
|
|
1169
1131
|
var t;
|
|
1170
1132
|
let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1171
|
-
if (!
|
|
1172
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1133
|
+
if (!De(n)) {
|
|
1134
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${Ce().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1173
1135
|
return;
|
|
1174
1136
|
}
|
|
1175
|
-
|
|
1137
|
+
Te(n);
|
|
1176
1138
|
}
|
|
1177
1139
|
isGpsTrackingEnabled() {
|
|
1178
|
-
return
|
|
1140
|
+
return N.routeStore.gpsEnabled;
|
|
1179
1141
|
}
|
|
1180
1142
|
setGpsTrackingEnabled(e) {
|
|
1181
|
-
|
|
1143
|
+
N.routeStore.setGpsTrackingEnabled(e);
|
|
1182
1144
|
}
|
|
1183
1145
|
deselectCurrentPosition() {
|
|
1184
|
-
|
|
1146
|
+
N.routeStore.selectCurrentPosition(null, !1);
|
|
1185
1147
|
}
|
|
1186
1148
|
deselectRoute() {
|
|
1187
|
-
|
|
1149
|
+
N.routeStore.selectRoute(null), N.routeStore.setOnlyAccessible(!1);
|
|
1188
1150
|
}
|
|
1189
1151
|
reset() {
|
|
1190
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1152
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), N.uiState.kioskData && N.resetCameraFn) {
|
|
1191
1153
|
var e;
|
|
1192
|
-
(e =
|
|
1154
|
+
(e = N.resetCameraFn) == null || e.call(N);
|
|
1193
1155
|
} else this.fitBounds();
|
|
1194
1156
|
}
|
|
1195
1157
|
selectAccessibleRoute(e) {
|
|
1196
|
-
|
|
1158
|
+
N.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1197
1159
|
}
|
|
1198
1160
|
};
|
|
1199
1161
|
function Q(e) {
|
|
1200
|
-
return typeof e == "string" ? C(e) :
|
|
1162
|
+
return typeof e == "string" ? C(e) : N.routeStore.getNearestBooth(e);
|
|
1201
1163
|
}
|
|
1202
|
-
var
|
|
1164
|
+
var hn = 0;
|
|
1203
1165
|
function $(e, t, n) {
|
|
1204
1166
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1205
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1206
|
-
|
|
1167
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), N.fp.disableRuntimeAlerts) return;
|
|
1168
|
+
N.uiState.setGlobalErrorMessage({
|
|
1207
1169
|
title: r,
|
|
1208
1170
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1209
1171
|
i,
|
|
@@ -1215,16 +1177,16 @@ function $(e, t, n) {
|
|
|
1215
1177
|
children: a
|
|
1216
1178
|
})
|
|
1217
1179
|
] })
|
|
1218
|
-
}), clearTimeout(
|
|
1180
|
+
}), clearTimeout(hn);
|
|
1219
1181
|
let o = 8e3;
|
|
1220
|
-
|
|
1182
|
+
hn = window.setTimeout(() => {
|
|
1221
1183
|
let e = async () => {
|
|
1222
|
-
|
|
1184
|
+
N.uiState.globalErrorMessages.length > 0 && (N.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1223
1185
|
};
|
|
1224
1186
|
e();
|
|
1225
1187
|
}, o);
|
|
1226
1188
|
}
|
|
1227
|
-
var
|
|
1189
|
+
var gn = class e {
|
|
1228
1190
|
get h() {
|
|
1229
1191
|
return Math.abs(this.y2 - this.y1);
|
|
1230
1192
|
}
|
|
@@ -1297,4 +1259,4 @@ var mn = class e {
|
|
|
1297
1259
|
}
|
|
1298
1260
|
};
|
|
1299
1261
|
//#endregion
|
|
1300
|
-
export {
|
|
1262
|
+
export { mn as default };
|