@expofp/floorplan 3.31.0 → 3.31.2
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-CQwO9tIg.js → Button-Qm5P6a8B.js} +5 -5
- package/dist/browser/{CookieConsent-C-b_gQuN.js → CookieConsent-BQgXOHAD.js} +7 -7
- package/dist/browser/{Debug-fQQyYJXu.js → Debug-_OyHOD_n.js} +7 -7
- package/dist/browser/{DebugTools-BCE8StGX.js → DebugTools-COsUbkqm.js} +6 -6
- package/dist/browser/{Demo-Cl9GA9tB.js → Demo-5w-XfzMg.js} +9 -9
- package/dist/browser/{Free-DI9bpsX5.js → Free-CzygQkMe.js} +9 -9
- package/dist/browser/{GalleryContainer-DKLp4FU4.js → GalleryContainer-DPr6Uoag.js} +10 -10
- package/dist/browser/{GpsLoader-CiDmup5t.js → GpsLoader-CKcgWjoc.js} +11 -11
- package/dist/browser/{KioskStore-BVpFrfzX.js → KioskStore-Bts_Q15s.js} +22 -22
- package/dist/browser/{MaplibreAdapter-BJxJxnzx.js → MaplibreAdapter-CJSQAzL9.js} +14 -14
- package/dist/browser/{ModalContainer-NXKmni8w.js → ModalContainer-BoCV5wDn.js} +10 -10
- package/dist/browser/{PermissionNotice-BkAvCmPD.js → PermissionNotice-BwJotFlI.js} +6 -6
- package/dist/browser/{SetKioskMode-CsV-ckXR.js → SetKioskMode-CZt7zsDM.js} +9 -9
- package/dist/browser/{ShowKiosk-CqhWjqxE.js → ShowKiosk-CEj4swM7.js} +11 -11
- package/dist/browser/{ViewerMenuPanel-CCca0xxk.js → ViewerMenuPanel-CNK1_k0v.js} +9 -9
- package/dist/browser/{add-debug-secret-listener-CxE72n53.js → add-debug-secret-listener-Bxqy2klS.js} +1 -1
- package/dist/browser/{adopt-global-settings-nxeDDXp1.js → adopt-global-settings-Ad-DbHmA.js} +9 -9
- package/dist/browser/{boolean-editor-DPMQ0YU3.js → boolean-editor-D-e8d_tV.js} +9 -9
- package/dist/browser/{bootIntercom-DBS2-Ra7.js → bootIntercom-CaU_rORK.js} +2 -2
- package/dist/browser/bundle.json +69 -69
- package/dist/browser/{camera-events-rGM_y-1M.js → camera-events-CO4VvNb6.js} +1 -1
- package/dist/browser/{classnames-CkjzoXiH.js → classnames-BC0VTHvp.js} +2 -2
- package/dist/browser/{client-DiPQk1ur.js → client-C1-foycu.js} +5 -5
- package/dist/browser/{components-CAI7tVu_.js → components-Bc57XDcm.js} +818 -818
- package/dist/browser/{debug-context-Cx6l3A8H.js → debug-context-DCG3rjfQ.js} +5 -5
- package/dist/browser/{debug-overlay-BlCwf63z.js → debug-overlay-izq4leLY.js} +10 -10
- package/dist/browser/{debug-ui-CL9NYiBY.js → debug-ui-9Swl8RVB.js} +6 -6
- package/dist/browser/{dimming-BrddBap-.js → dimming-CuIuLXfY.js} +236 -234
- package/dist/browser/{dist-DbtaUrV6.js → dist-B-HF27mM.js} +5 -5
- package/dist/browser/{dist-Bdec-Nxs.js → dist-CqLx2IB7.js} +6 -6
- package/dist/browser/{dist-JdkIiWfj.js → dist-LEZIV9LY.js} +3 -3
- package/dist/browser/{efp-debug-init-DDFZgkyx.js → efp-debug-init-BbQM0wWf.js} +3 -3
- package/dist/browser/{enum-editor-BBt11YmB.js → enum-editor-B_c3dXaZ.js} +4 -4
- package/dist/browser/{es5-DVB0QLwS.js → es5-BOJ4b1wR.js} +2 -2
- package/dist/browser/{event-not-found-hzkyr5mJ.js → event-not-found-BblGd3M4.js} +1 -1
- package/dist/browser/{exports-DRumaK8s.js → exports-4LmWfHsz.js} +1 -1
- package/dist/browser/{favicon-ByjB1rX0.js → favicon-N0zSgMmJ.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CEIMoenq.js → fetch-retry.umd-BWMxV19k.js} +2 -2
- package/dist/browser/{flex-CrHBC47v.js → flex-8G6bcMjN.js} +5 -5
- package/dist/browser/{floorplan.loader-UtQ5sLSE.js → floorplan.loader-DYkL0M7t.js} +39 -39
- package/dist/browser/{floorplan.ready-BBRE91D6.js → floorplan.ready-BOrGaN2O.js} +331 -331
- package/dist/browser/{fuse-D9Fc86Mp.js → fuse-BGs9iODw.js} +2 -2
- package/dist/browser/{i18n-C3pmOHfm.js → i18n-mT-LTlNt.js} +7 -7
- package/dist/browser/index.js +26 -26
- package/dist/browser/{index.module-ScroRsV4.js → index.module-BuG-E0rL.js} +4 -4
- package/dist/browser/{integrateKiosk-Bp4Usv7I.js → integrateKiosk-VQpGPjET.js} +5 -5
- package/dist/browser/{is-webview-B0VkhBwH.js → is-webview-CUtLVmk5.js} +1 -1
- package/dist/browser/{jsx-runtime-BV6RRH6M.js → jsx-runtime-B-AyhF86.js} +2 -2
- package/dist/browser/{kiosk-record-NHohuRZk.js → kiosk-record-DDbM9sTc.js} +1 -1
- package/dist/browser/{lib-D4o7UxhZ.js → lib-C_aiA-wC.js} +3 -3
- package/dist/browser/{loadImage-CmTxbx4i.js → loadImage-C-vruA2F.js} +5 -5
- package/dist/browser/{logDeviceInfo-BJEg8M4e.js → logDeviceInfo-CnvdcMVO.js} +9 -9
- package/dist/browser/mobx-Cd_tthXm.js +43 -0
- package/dist/browser/{optional-boolean-editor-DuCfWYyQ.js → optional-boolean-editor-Z2FcQDhV.js} +3 -3
- package/dist/browser/{optional-enum-editor-Q-snbPWN.js → optional-enum-editor-BAOKOvG4.js} +4 -4
- package/dist/browser/{optional-string-editor-Bd-V93ee.js → optional-string-editor-Dn0b3_8O.js} +4 -4
- package/dist/browser/{particles.min-BXxEUmtZ.js → particles.min-BrsBfq49.js} +2 -2
- package/dist/browser/{react-yYxHcXya.js → react-C3f8vk_l.js} +2 -2
- package/dist/browser/{react-dom-BpJ-AdUf.js → react-dom-CDGcztfz.js} +3 -3
- package/dist/browser/{rolldown-runtime-DB1nSOXr.js → rolldown-runtime-CMBxMkJ4.js} +1 -1
- package/dist/browser/{scheduler-DgvhfFMA.js → scheduler-BhTLs4jB.js} +2 -2
- package/dist/browser/{select-DC3zsJbM.js → select-BTXH5pP8.js} +10 -10
- package/dist/browser/{settings-CmbIseSw.js → settings-Djyr8mIQ.js} +2 -2
- package/dist/browser/{settings-item-Dp6uSDI5.js → settings-item-CWoIdxX5.js} +6 -6
- package/dist/browser/{store-BQJFbecZ.js → store-Bmqv7C8v.js} +2811 -2811
- package/dist/browser/{string-editor-DKRik8qD.js → string-editor-BemPBm-5.js} +4 -4
- package/dist/browser/{text-field-D3Rb6XM1.js → text-field-D-3HDOH7.js} +5 -5
- package/dist/browser/{theme-B-lC93LF.js → theme-CBuB2Qm7.js} +8 -8
- package/dist/browser/{ui-D9c3dK9d.js → ui-BnQTapnd.js} +8 -8
- package/dist/browser/{useRenderTarget-Cn4JNaNq.js → useRenderTarget-D-TZ6FHU.js} +4 -4
- package/dist/browser/{viewport-B7y5otP7.js → viewport-DokNaqbx.js} +2 -2
- package/dist/esm/components/Map/MapCamera.js +1 -1
- package/dist/esm/components/Map/traffic/useManageTraffic.d.ts +1 -1
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/utils/mobx.d.ts +29 -0
- package/dist/esm/utils/mobx.js +1 -1
- package/package.json +10 -10
- package/dist/browser/mobx-LsEeQkKC.js +0 -24
|
@@ -1,33 +1,33 @@
|
|
|
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.31.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.31.2" };
|
|
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] = "04411d0f-bb80-4d21-bbf0-299f8941884b", e._sentryDebugIdIdentifier = "sentry-dbid-04411d0f-bb80-4d21-bbf0-299f8941884b");
|
|
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 {
|
|
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 { C as
|
|
20
|
-
import { n as
|
|
9
|
+
import { r as e } from "./rolldown-runtime-CMBxMkJ4.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-DYkL0M7t.js";
|
|
11
|
+
import { At as c, Bt as l, Ct as u, Dt as d, Et as f, Ft as ee, H as te, It as ne, K as re, Lt as ie, Mt as ae, Nt as oe, Ot as se, Pt as ce, Rt as le, St as ue, Tt as de, U as fe, W as pe, _t as me, bt as he, et as ge, f as _e, ft as p, ht as ve, jt as ye, kt as be, l as m, lt as h, mt as xe, n as Se, o as Ce, pt as we, r as Te, rt as Ee, ut as De, v as Oe, vt as ke, w as g, wt as Ae, xt as je, y as Me, zt as _ } from "./i18n-mT-LTlNt.js";
|
|
12
|
+
import { s as Ne } from "./efp-debug-init-BbQM0wWf.js";
|
|
13
|
+
import { t as Pe } from "./react-C3f8vk_l.js";
|
|
14
|
+
import { t as Fe } from "./jsx-runtime-B-AyhF86.js";
|
|
15
|
+
import { r as v } from "./loadImage-C-vruA2F.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-4LmWfHsz.js";
|
|
17
|
+
import { t as Ve } from "./client-C1-foycu.js";
|
|
18
|
+
import { i as He, n as Ue, r as x, t as We } from "./components-Bc57XDcm.js";
|
|
19
|
+
import { C as S, Cn as Ge, E as C, F as Ke, G as w, K as qe, L as Je, Ln as Ye, Q as T, R as E, S as Xe, T as D, Tn as O, Vt as Ze, Y as Qe, Z as k, _t as $e, c as A, ct as j, dn as M, dt as et, ft as tt, gt as nt, hn as rt, ht as it, kn as N, l as P, lt as at, mn as ot, nt as st, on as ct, pt as F, q as lt, rt as ut, tt as dt, un as ft, ut as pt, w as mt, y as ht } from "./store-Bmqv7C8v.js";
|
|
20
|
+
import { n as gt, t as _t } from "./integrateKiosk-VQpGPjET.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 vt(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
|
-
a &&
|
|
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
|
-
a &&
|
|
30
|
+
a && b.error("[showReportDialog] DSN not configured");
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
let l = {
|
|
@@ -36,7 +36,7 @@ function P(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 P(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
|
|
58
|
-
function
|
|
57
|
+
var I = /* @__PURE__ */ e(Pe());
|
|
58
|
+
function yt(e) {
|
|
59
59
|
let t = e.match(/^([^.]+)/);
|
|
60
60
|
return t !== null && parseInt(t[0]) >= 17;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function bt(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 xt(e, t) {
|
|
|
69
69
|
}
|
|
70
70
|
r(e, t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
72
|
+
function xt(e, { componentStack: t }, n) {
|
|
73
|
+
if (yt(I.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, bt(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 St = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = {
|
|
82
82
|
componentStack: null,
|
|
83
83
|
error: null,
|
|
84
84
|
eventId: null
|
|
85
|
-
},
|
|
85
|
+
}, Ct = class extends I.Component {
|
|
86
86
|
constructor(e) {
|
|
87
|
-
super(e), this.state =
|
|
88
|
-
let t =
|
|
87
|
+
super(e), this.state = L, this._openFallbackReportDialog = !0;
|
|
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 && vt({
|
|
91
91
|
...e.dialogOptions,
|
|
92
92
|
eventId: this._lastEventId
|
|
93
93
|
});
|
|
@@ -95,13 +95,13 @@ var Ct = 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 = xt(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 && vt({
|
|
105
105
|
...o,
|
|
106
106
|
eventId: c
|
|
107
107
|
})), this.setState({
|
|
@@ -117,37 +117,37 @@ var Ct = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, I = {
|
|
|
117
117
|
}
|
|
118
118
|
componentWillUnmount() {
|
|
119
119
|
let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
|
|
120
|
-
r && (this.state ===
|
|
120
|
+
r && (this.state === L ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
|
|
121
121
|
}
|
|
122
122
|
resetErrorBoundary() {
|
|
123
123
|
let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
|
|
124
|
-
e && e(t, n, r), this.setState(
|
|
124
|
+
e && e(t, n, r), this.setState(L);
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
127
|
let { fallback: e, children: t } = this.props, n = this.state;
|
|
128
128
|
if (n.componentStack === null) return typeof t == "function" ? t() : t;
|
|
129
|
-
let r = typeof e == "function" ?
|
|
129
|
+
let r = typeof e == "function" ? I.createElement(e, {
|
|
130
130
|
error: n.error,
|
|
131
131
|
componentStack: n.componentStack,
|
|
132
132
|
resetError: () => this.resetErrorBoundary(),
|
|
133
133
|
eventId: n.eventId
|
|
134
134
|
}) : e;
|
|
135
|
-
return
|
|
135
|
+
return I.isValidElement(r) ? r : (e && St && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
138
|
-
function
|
|
137
|
+
}, wt = /* @__PURE__ */ e(Ne(), 1), Tt = Ve(), Et = Ye();
|
|
138
|
+
function Dt(e) {
|
|
139
139
|
var t;
|
|
140
|
-
let n = new URLSearchParams(window.location.search).get(
|
|
141
|
-
return i == null ?
|
|
140
|
+
let n = new URLSearchParams(window.location.search).get(te), r = m ? window.localStorage.getItem(te) : null, i = n == null ? r : n;
|
|
141
|
+
return i == null ? m && ut() != null || Object.keys((t = e.kiosk) == null ? {} : t).length > 0 : i === "1";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function R() {
|
|
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 Ot() {
|
|
148
|
+
return R() ? window.location.hostname.split(".")[0] : "main";
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function kt(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 At(e) {
|
|
|
156
156
|
}
|
|
157
157
|
return "Active";
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function At() {
|
|
160
160
|
return !1;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function jt(e) {
|
|
163
163
|
return e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
let t =
|
|
168
|
-
subDomain:
|
|
169
|
-
subscriptionStatus:
|
|
165
|
+
function Mt(e) {
|
|
166
|
+
if (At() || !R() || Dt(e) || !window.navigator.onLine) return null;
|
|
167
|
+
let t = jt({
|
|
168
|
+
subDomain: Ot(),
|
|
169
|
+
subscriptionStatus: kt(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 z = /*@__PURE__*/ _("ZodMiniType", (e, t) => {
|
|
176
176
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
177
|
-
|
|
177
|
+
ye.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => ae(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => ce(e, t, n), e.parseAsync = async (t, n) => oe(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ee(e, t, n), e.check = (...n) => {
|
|
178
178
|
var r;
|
|
179
179
|
return e.clone({
|
|
180
180
|
...t,
|
|
@@ -184,95 +184,95 @@ var R = /*@__PURE__*/ p("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) => ne(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
188
|
+
}), Nt = /*@__PURE__*/ _("ZodMiniString", (e, t) => {
|
|
189
|
+
c.init(e, t), z.init(e, t);
|
|
190
190
|
});
|
|
191
191
|
// @__NO_SIDE_EFFECTS__
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function Pt(e) {
|
|
193
|
+
return u(Nt, e);
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
|
|
195
|
+
var Ft = /*@__PURE__*/ _("ZodMiniNumber", (e, t) => {
|
|
196
|
+
d.init(e, t), z.init(e, t);
|
|
197
197
|
});
|
|
198
198
|
// @__NO_SIDE_EFFECTS__
|
|
199
|
-
function
|
|
200
|
-
return
|
|
199
|
+
function B(e) {
|
|
200
|
+
return je(Ft, e);
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
|
|
202
|
+
var It = /*@__PURE__*/ _("ZodMiniNever", (e, t) => {
|
|
203
|
+
f.init(e, t), z.init(e, t);
|
|
204
204
|
});
|
|
205
205
|
// @__NO_SIDE_EFFECTS__
|
|
206
|
-
function
|
|
207
|
-
return
|
|
206
|
+
function Lt(e) {
|
|
207
|
+
return he(It, e);
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
|
|
209
|
+
var Rt = /*@__PURE__*/ _("ZodMiniArray", (e, t) => {
|
|
210
|
+
Ae.init(e, t), z.init(e, t);
|
|
211
211
|
});
|
|
212
212
|
// @__NO_SIDE_EFFECTS__
|
|
213
|
-
function
|
|
214
|
-
return new
|
|
213
|
+
function zt(e, t) {
|
|
214
|
+
return new Rt({
|
|
215
215
|
type: "array",
|
|
216
216
|
element: e,
|
|
217
|
-
...
|
|
217
|
+
...le(t)
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
|
|
220
|
+
var Bt = /*@__PURE__*/ _("ZodMiniObject", (e, t) => {
|
|
221
|
+
se.init(e, t), z.init(e, t), ie(e, "shape", () => t.shape);
|
|
222
222
|
});
|
|
223
223
|
// @__NO_SIDE_EFFECTS__
|
|
224
|
-
function
|
|
225
|
-
return new
|
|
224
|
+
function V(e, t) {
|
|
225
|
+
return new Bt({
|
|
226
226
|
type: "object",
|
|
227
227
|
shape: e,
|
|
228
|
-
catchall: /* @__PURE__ */
|
|
229
|
-
...
|
|
228
|
+
catchall: /* @__PURE__ */ Lt(),
|
|
229
|
+
...le(t)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var Vt = /*@__PURE__*/ _("ZodMiniOptional", (e, t) => {
|
|
233
|
+
be.init(e, t), z.init(e, t);
|
|
234
234
|
});
|
|
235
235
|
// @__NO_SIDE_EFFECTS__
|
|
236
|
-
function
|
|
237
|
-
return new
|
|
236
|
+
function H(e) {
|
|
237
|
+
return new Vt({
|
|
238
238
|
type: "optional",
|
|
239
239
|
innerType: e
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
var
|
|
243
|
-
|
|
242
|
+
var Ht = /*@__PURE__*/ _("ZodMiniCustom", (e, t) => {
|
|
243
|
+
de.init(e, t), z.init(e, t);
|
|
244
244
|
});
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
247
|
-
return
|
|
246
|
+
function Ut(e, t = {}) {
|
|
247
|
+
return ue(Ht, e, t);
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region src/schemas/sdk.schemas.ts
|
|
251
|
-
var
|
|
252
|
-
x: /* @__PURE__ */
|
|
253
|
-
y: /* @__PURE__ */
|
|
254
|
-
}),
|
|
255
|
-
leftTop:
|
|
256
|
-
rightBottom:
|
|
257
|
-
}),
|
|
258
|
-
name: /* @__PURE__ */
|
|
259
|
-
externalId: /* @__PURE__ */
|
|
260
|
-
})).check(/* @__PURE__ */
|
|
261
|
-
booths: /* @__PURE__ */
|
|
262
|
-
exhibitors: /* @__PURE__ */
|
|
263
|
-
})).check(/* @__PURE__ */
|
|
251
|
+
var Wt = /* @__PURE__ */ V({
|
|
252
|
+
x: /* @__PURE__ */ B(),
|
|
253
|
+
y: /* @__PURE__ */ B()
|
|
254
|
+
}), Gt = /* @__PURE__ */ V({
|
|
255
|
+
leftTop: Wt,
|
|
256
|
+
rightBottom: Wt
|
|
257
|
+
}), Kt = (/* @__PURE__ */ V({
|
|
258
|
+
name: /* @__PURE__ */ H(/* @__PURE__ */ Pt()),
|
|
259
|
+
externalId: /* @__PURE__ */ H(/* @__PURE__ */ Pt())
|
|
260
|
+
})).check(/* @__PURE__ */ Ut((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), qt = (/* @__PURE__ */ V({
|
|
261
|
+
booths: /* @__PURE__ */ H(/* @__PURE__ */ zt(Kt)),
|
|
262
|
+
exhibitors: /* @__PURE__ */ H(/* @__PURE__ */ zt(Kt))
|
|
263
|
+
})).check(/* @__PURE__ */ Ut((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")), Jt = /* @__PURE__ */ H(/* @__PURE__ */ V({ padding: /* @__PURE__ */ H(/* @__PURE__ */ B()) }));
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
|
-
function
|
|
270
|
-
let t =
|
|
271
|
-
Object.values(t).length && (
|
|
269
|
+
function Yt(e) {
|
|
270
|
+
let t = ht(e);
|
|
271
|
+
Object.values(t).length && (_t(t, !1), gt(t));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region src/utils/getMostFrequent.ts
|
|
275
|
-
function
|
|
275
|
+
function Xt(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,66 +280,66 @@ function Zt(e) {
|
|
|
280
280
|
}
|
|
281
281
|
//#endregion
|
|
282
282
|
//#region src/services/multi-slug.ts
|
|
283
|
-
function
|
|
283
|
+
function Zt(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 && !p(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
|
-
var
|
|
291
|
-
function
|
|
292
|
-
|
|
293
|
-
let e =
|
|
294
|
-
Object.keys(e).length && gn(
|
|
295
|
-
let t =
|
|
296
|
-
Object.keys(t).length &&
|
|
290
|
+
var U = !1;
|
|
291
|
+
function Qt() {
|
|
292
|
+
K(l()), g(() => A.layerStore.layersLoaded, () => {
|
|
293
|
+
let e = l().camera;
|
|
294
|
+
Object.keys(e).length && gn(x(e));
|
|
295
|
+
let t = l().visibility;
|
|
296
|
+
Object.keys(t).length && P.setVisibility(t);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
299
|
+
function $t(e) {
|
|
300
|
+
et({
|
|
301
301
|
offHistory: e,
|
|
302
|
-
onNavigate:
|
|
303
|
-
}),
|
|
304
|
-
|
|
302
|
+
onNavigate: G
|
|
303
|
+
}), an(), W(), g(() => A.layerStore.layersLoaded, () => {
|
|
304
|
+
A.urlFilterManager && !A.urlFilterManager.isInitialized && A.urlFilterManager.initialize(), G(), _e(hn), _e(pn), P.viewerMode && (P.menu = !0);
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
|
|
307
|
+
function en(e = "") {
|
|
308
|
+
F("?" + p(e.toString())), A.layerStore.layersLoaded ? tn(e) : (W(), g(() => A.layerStore.layersLoaded, () => tn(e)));
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function tn(e) {
|
|
311
311
|
var t, n;
|
|
312
|
-
let r = "?" +
|
|
312
|
+
let r = "?" + p(e), i = ln(r), a = [...(t = i.intents) == null ? [] : t, ...xe(r).intents], { intents: s = [], ...c } = we(r, {
|
|
313
313
|
visibility: i.visibility,
|
|
314
314
|
consent: i.consent,
|
|
315
315
|
intents: a
|
|
316
316
|
});
|
|
317
|
-
|
|
317
|
+
K(i), K(c);
|
|
318
318
|
let l = (n = i.consent) == null ? c.consent : n;
|
|
319
|
-
l &&
|
|
319
|
+
l && T(l), i.camera && Object.keys(i.camera).length && gn(x(i.camera)), i.visibility && Object.keys(i.visibility).length && P.setVisibility(i.visibility), an(), G();
|
|
320
320
|
let u = [...a, ...s];
|
|
321
|
-
u.length && o(
|
|
322
|
-
}
|
|
323
|
-
function U() {
|
|
324
|
-
let e = E();
|
|
325
|
-
return Ke(e.length > 1 ? m(e.substring(1)) : "");
|
|
321
|
+
u.length && o(A.fp, u);
|
|
326
322
|
}
|
|
327
323
|
function W() {
|
|
328
|
-
|
|
324
|
+
let e = j();
|
|
325
|
+
return Ue(e.length > 1 ? p(e.substring(1)) : "");
|
|
326
|
+
}
|
|
327
|
+
function G() {
|
|
328
|
+
U = !0;
|
|
329
329
|
try {
|
|
330
|
-
|
|
331
|
-
let { primary: e } =
|
|
332
|
-
!
|
|
330
|
+
Yt(new URLSearchParams(p(window.location.search)));
|
|
331
|
+
let { primary: e } = h(j()), t = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (P.heatmap || P.heatmapYah);
|
|
332
|
+
!W() && !t && nn(e);
|
|
333
333
|
} finally {
|
|
334
|
-
|
|
334
|
+
U = !1;
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
pn(), hn();
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
let t =
|
|
338
|
+
function nn(e) {
|
|
339
|
+
let t = A.fp;
|
|
340
340
|
switch (e.type) {
|
|
341
341
|
case "kiosk":
|
|
342
|
-
e.enabled !== null &&
|
|
342
|
+
e.enabled !== null && $e(P, e.enabled);
|
|
343
343
|
return;
|
|
344
344
|
case "list":
|
|
345
345
|
t.showList(e.list);
|
|
@@ -356,13 +356,13 @@ function rn(e) {
|
|
|
356
356
|
return;
|
|
357
357
|
case "route":
|
|
358
358
|
var n, r;
|
|
359
|
-
|
|
359
|
+
A.routeStore.setOnlyAccessible(e.accessible), A.routeStore.selectRoute(mt((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), A.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && A.uiState.setRouteTitle(e.title);
|
|
360
360
|
return;
|
|
361
361
|
case "selectExhibitors":
|
|
362
362
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
363
363
|
return;
|
|
364
364
|
case "ownedByFilters":
|
|
365
|
-
|
|
365
|
+
v.log("Skipping filter parameters in dispatchFromUrl (owned by URLFilterManager)");
|
|
366
366
|
return;
|
|
367
367
|
case "ownedByConfig": return;
|
|
368
368
|
case "select":
|
|
@@ -370,88 +370,88 @@ function rn(e) {
|
|
|
370
370
|
return;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i =
|
|
375
|
-
if (
|
|
376
|
-
let e =
|
|
377
|
-
e &&
|
|
378
|
-
}
|
|
379
|
-
(n.length > 0 || r.length > 0) &&
|
|
380
|
-
|
|
373
|
+
function rn(e) {
|
|
374
|
+
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i = A.boothStore.booths.filter((e) => n.includes(e.externalId)), a = A.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), o = [...i, ...a];
|
|
375
|
+
if (rt()) {
|
|
376
|
+
let e = Xt(o.map((e) => e.layer.name));
|
|
377
|
+
e && A.fp.activateFloor({ name: e });
|
|
378
|
+
}
|
|
379
|
+
(n.length > 0 || r.length > 0) && A.fp.highlightEntities([...n, ...r]), A.layerStore.showPathWay(t), o.length > 0 && Me(() => {
|
|
380
|
+
A.uiState.moveToRect = N.fromUnion(...o.map((e) => e.rect).filter(Boolean)), A.uiState.rollReset = !0;
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
let { oneShots: e } =
|
|
385
|
-
for (let t of e)
|
|
386
|
-
let t =
|
|
387
|
-
t !== null &&
|
|
383
|
+
function an() {
|
|
384
|
+
let { oneShots: e } = h(j());
|
|
385
|
+
for (let t of e) on(t);
|
|
386
|
+
let t = qe(j());
|
|
387
|
+
t !== null && F("?" + t), P.previewExhibitor && F("?" + P.previewExhibitor.slug), cn();
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function on(e) {
|
|
390
390
|
switch (e.type) {
|
|
391
391
|
case "heatmap":
|
|
392
|
-
|
|
392
|
+
sn(e.yah);
|
|
393
393
|
return;
|
|
394
394
|
case "blueDot": {
|
|
395
395
|
var t, n;
|
|
396
|
-
let r = new
|
|
397
|
-
|
|
396
|
+
let r = new Xe(e.x, e.y, (t = A.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
397
|
+
g(() => A.layerStore.layersLoaded, () => A.routeStore.selectCurrentPosition(r, !0, 1));
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
400
|
case "viewerMode":
|
|
401
|
-
|
|
401
|
+
m && (e.enabled ? localStorage.setItem(Ee, "true") : (localStorage.removeItem(Ee), localStorage.removeItem(re)));
|
|
402
402
|
return;
|
|
403
403
|
case "previewMode":
|
|
404
|
-
|
|
404
|
+
m && (e.enabled ? localStorage.setItem(ge, "true") : (localStorage.removeItem(ge), localStorage.removeItem(pe)));
|
|
405
405
|
return;
|
|
406
406
|
case "uiScale":
|
|
407
|
-
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.`) : A.uiState.setUIScale(e.scale, !0);
|
|
408
408
|
return;
|
|
409
409
|
case "resetUiScale":
|
|
410
|
-
|
|
410
|
+
A.uiState.resetUIScale();
|
|
411
411
|
return;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
|
|
414
|
+
function sn(e) {
|
|
415
|
+
pt(), e ? (P.heatmapYah = !0, P.monochrome = !0, P.hideLogoInBooth = !0, P.hideHeaderLogo = !0, P.disableBookmarked = !0) : P.heatmap = !0;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
let e =
|
|
419
|
-
let t =
|
|
417
|
+
function cn() {
|
|
418
|
+
let e = Zt(j(), (e) => {
|
|
419
|
+
let t = A.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
420
420
|
return t == null ? void 0 : t.name;
|
|
421
421
|
});
|
|
422
|
-
e !== null &&
|
|
422
|
+
e !== null && F(e);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
e.noOverlay !== void 0 && (
|
|
424
|
+
function K(e) {
|
|
425
|
+
e.noOverlay !== void 0 && (P.hideOverlay = e.noOverlay), e.monochrome && (P.monochrome = !0), e.hideHeaderLogo && (P.hideHeaderLogo = !0), e.hideLogoInBooth && (P.hideLogoInBooth = !0), e.disableFeatured && A.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (P.disableBookmarked = !0), e.disableGps && A.routeStore.setGpsTrackingEnabled(!1), e.heatmap && r(e.heatmap) && sn(e.heatmap.variant === "yah");
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function ln(e) {
|
|
428
|
+
return ve(me, e).value;
|
|
429
429
|
}
|
|
430
|
-
var
|
|
431
|
-
function
|
|
432
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } =
|
|
433
|
-
if (
|
|
434
|
-
let a =
|
|
435
|
-
|
|
430
|
+
var un = null, dn = null, fn = null;
|
|
431
|
+
function pn() {
|
|
432
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = mn(), i = A.urlFilterManager.filterSearch();
|
|
433
|
+
if (U) return;
|
|
434
|
+
let a = De(e) || i;
|
|
435
|
+
j() !== a && (t !== un || n !== dn || r !== fn ? tt(a) : F(a), un = t, dn = n, fn = r);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
let e =
|
|
437
|
+
function mn() {
|
|
438
|
+
let e = P.selectedExhibitor, t = P.selectedBooth, n = P.selectedEventItem, r = P.selectedRoute, i = P.selectedSpeaker, a = P.setKioskModeEnabled, o = P.list, s;
|
|
439
439
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
440
440
|
var c;
|
|
441
|
-
let e =
|
|
441
|
+
let e = A.routePlannerStore;
|
|
442
442
|
s = {
|
|
443
443
|
type: "planner",
|
|
444
444
|
fromBookmarks: e.source === "bookmarks",
|
|
445
445
|
items: e.items.map((e) => e.entity.slug).filter(Boolean),
|
|
446
446
|
from: ((c = e.startPoint) == null ? void 0 : c.slug) || void 0
|
|
447
447
|
};
|
|
448
|
-
} else if (r && !
|
|
448
|
+
} else if (r && !P.isMultiPointRoute) {
|
|
449
449
|
var l;
|
|
450
450
|
s = {
|
|
451
451
|
type: "route",
|
|
452
|
-
to: r.to instanceof
|
|
453
|
-
from: r.from instanceof
|
|
454
|
-
accessible:
|
|
452
|
+
to: r.to instanceof M ? r.to.slug : void 0,
|
|
453
|
+
from: r.from instanceof M ? r.from.slug : void 0,
|
|
454
|
+
accessible: A.routeStore.onlyAccessible,
|
|
455
455
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
456
456
|
};
|
|
457
457
|
} else if (e) s = {
|
|
@@ -488,7 +488,7 @@ function hn() {
|
|
|
488
488
|
var u, d;
|
|
489
489
|
s = {
|
|
490
490
|
type: "slug",
|
|
491
|
-
slug: (u = (d =
|
|
491
|
+
slug: (u = (d = P.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
492
492
|
};
|
|
493
493
|
break;
|
|
494
494
|
case "search":
|
|
@@ -519,15 +519,15 @@ function hn() {
|
|
|
519
519
|
eventItem: n
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
let e =
|
|
524
|
-
e ? r = e.name : t ? r = t.name : n ? r = n.name :
|
|
522
|
+
function hn() {
|
|
523
|
+
let e = P.selectedExhibitor, t = P.selectedEventItem, n = P.selectedSpeaker, r = "";
|
|
524
|
+
e ? r = e.name : t ? r = t.name : n ? r = n.name : P.list.type === "search" && P.list.text ? r = "`" + (P.list.text || "") + "`" : P.list.type === "multi-point-tour" && P.tourTitle && (r = P.tourTitle), r.length && (r += " – "), r += O.title, O.subtitle && (r += " – " + O.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
|
|
525
525
|
}
|
|
526
526
|
function gn(e) {
|
|
527
527
|
try {
|
|
528
|
-
if (
|
|
529
|
-
let t =
|
|
530
|
-
t &&
|
|
528
|
+
if (P.setMapSettings(e), e.z) {
|
|
529
|
+
let t = A.layerStore.layers.find((t) => t.name === e.z);
|
|
530
|
+
t && A.layerStore.updateVisibility(t, !0);
|
|
531
531
|
}
|
|
532
532
|
} catch (e) {
|
|
533
533
|
console.error("Failed to process map settings.", e);
|
|
@@ -536,25 +536,25 @@ function gn(e) {
|
|
|
536
536
|
//#endregion
|
|
537
537
|
//#region src/store/details-events.ts
|
|
538
538
|
function _n() {
|
|
539
|
-
return
|
|
539
|
+
return Oe(() => P.details, () => {
|
|
540
540
|
var e;
|
|
541
|
-
if (!
|
|
542
|
-
if (!
|
|
543
|
-
|
|
541
|
+
if (!P.onDetails) return;
|
|
542
|
+
if (!P.details) {
|
|
543
|
+
P.onDetails(null);
|
|
544
544
|
return;
|
|
545
545
|
}
|
|
546
|
-
let t =
|
|
547
|
-
if (
|
|
546
|
+
let t = P.details;
|
|
547
|
+
if (Ge.EXPO === "wineparis" && (t instanceof ct && (t = t.booths[0]), !t)) return;
|
|
548
548
|
let n = null, r = [];
|
|
549
|
-
if (t instanceof
|
|
549
|
+
if (t instanceof ct) n = "exhibitor", r = t.booths.map((e) => e.name).sort((e, t) => {
|
|
550
550
|
var n, r;
|
|
551
|
-
return e == ((n =
|
|
551
|
+
return e == ((n = A.routeStore.tempToBooth) == null ? void 0 : n.name) ? -1 : +(t == ((r = A.routeStore.tempToBooth) == null ? void 0 : r.name));
|
|
552
552
|
});
|
|
553
|
-
else if (t instanceof
|
|
554
|
-
else if (t instanceof
|
|
553
|
+
else if (t instanceof M) n = "booth", r = [t.name];
|
|
554
|
+
else if (t instanceof S) {
|
|
555
555
|
var i, a;
|
|
556
556
|
n = "route", r = [(i = t.from) == null ? void 0 : i.name, (a = t.to) == null ? void 0 : a.name].filter((e) => !!e);
|
|
557
|
-
} else t instanceof
|
|
557
|
+
} else t instanceof ft && (n = "category", r = t.exhibitors.map((e) => e.booths.map((e) => e.name)).flat());
|
|
558
558
|
let o = t, s = {
|
|
559
559
|
type: n,
|
|
560
560
|
name: o == null ? void 0 : o.name,
|
|
@@ -562,9 +562,9 @@ function _n() {
|
|
|
562
562
|
externalId: o == null ? void 0 : o.externalId,
|
|
563
563
|
boothsNames: r
|
|
564
564
|
};
|
|
565
|
-
|
|
565
|
+
P.onDetails({
|
|
566
566
|
...s,
|
|
567
|
-
...n === "route" ? { routeInfo: (e =
|
|
567
|
+
...n === "route" ? { routeInfo: (e = A.routeStore.routeInfo) == null ? void 0 : e } : {}
|
|
568
568
|
});
|
|
569
569
|
});
|
|
570
570
|
}
|
|
@@ -617,7 +617,7 @@ function q(e) {
|
|
|
617
617
|
entity: e.entity,
|
|
618
618
|
isEnded: e.isEnded
|
|
619
619
|
};
|
|
620
|
-
case
|
|
620
|
+
case fe: return {
|
|
621
621
|
id: e.id,
|
|
622
622
|
name: Y(e.name),
|
|
623
623
|
entity: e.entity
|
|
@@ -642,33 +642,33 @@ function Y(e) {
|
|
|
642
642
|
}
|
|
643
643
|
//#endregion
|
|
644
644
|
//#region src/floorplan.ready.tsx
|
|
645
|
-
var X =
|
|
646
|
-
(0,
|
|
645
|
+
var X = Fe(), Z = (0, wt.default)("efp:api");
|
|
646
|
+
(0, Et.install)();
|
|
647
647
|
var vn = class extends s {
|
|
648
648
|
constructor(...e) {
|
|
649
649
|
super(...e), this.root = void 0, this.disposeDetailsEvents = void 0, this.disposeBoothHitTest = void 0;
|
|
650
650
|
}
|
|
651
651
|
init() {
|
|
652
|
-
|
|
652
|
+
Qt(), this.ignoreQuery || $t(this.offHistory), st("load"), it(A), A.fp = this, this.disposeDetailsEvents = _n(), this.disposeBoothHitTest = Ze(), T(this.consent), k(lt.Load, ""), this.root = (0, Tt.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(Ct, { children: /* @__PURE__ */ (0, X.jsx)(We, {
|
|
653
653
|
offHistory: this.offHistory,
|
|
654
654
|
consent: this.consent
|
|
655
|
-
}) })),
|
|
656
|
-
if (this.resolveReady(), !
|
|
655
|
+
}) })), k(lt.Rendered, ""), Oe(() => A.layerStore.layersLoaded, () => {
|
|
656
|
+
if (this.resolveReady(), !A.initialized) {
|
|
657
657
|
var e;
|
|
658
658
|
(e = this.onInit) == null || e.call(this, this);
|
|
659
659
|
}
|
|
660
|
-
|
|
660
|
+
A.initialized = !0;
|
|
661
661
|
});
|
|
662
|
-
let e =
|
|
663
|
-
e && import("./bootIntercom-
|
|
662
|
+
let e = Mt(O);
|
|
663
|
+
e && import("./bootIntercom-CaU_rORK.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
664
664
|
}
|
|
665
665
|
selectBooth(e) {
|
|
666
666
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
667
667
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
668
668
|
return;
|
|
669
669
|
}
|
|
670
|
-
let t =
|
|
671
|
-
|
|
670
|
+
let t = A.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
671
|
+
A.selectBooth(t);
|
|
672
672
|
}
|
|
673
673
|
selectExhibitor(e) {
|
|
674
674
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -676,35 +676,35 @@ var vn = class extends s {
|
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
678
|
if (!(e != null && e.length)) {
|
|
679
|
-
|
|
679
|
+
A.uiState.menu = !1, A.searchStore.resetSearchBox(), A.uiState.details = null;
|
|
680
680
|
return;
|
|
681
681
|
}
|
|
682
|
-
let t =
|
|
682
|
+
let t = A.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
683
683
|
if (!(t != null && t.length)) return;
|
|
684
684
|
if (typeof e == "string") {
|
|
685
|
-
|
|
685
|
+
A.selectExhibitor(t[0]), A.moveToList([t[0]]);
|
|
686
686
|
return;
|
|
687
687
|
}
|
|
688
|
-
let n =
|
|
689
|
-
n &&
|
|
688
|
+
let n = Xt(t.flatMap((e) => e.booths.map((e) => e.layer)).map((e) => e.description));
|
|
689
|
+
n && A.layerStore.updateVisibility(n, !0), A.uiState.menu = !1, A.searchStore.resetSearchBox(), A.uiState.details = null, A.uiState.list = {
|
|
690
690
|
type: "filter",
|
|
691
691
|
items: t,
|
|
692
692
|
query: {
|
|
693
693
|
key: "exhibitors",
|
|
694
694
|
value: t.map((e) => e.name).join(",")
|
|
695
695
|
}
|
|
696
|
-
},
|
|
696
|
+
}, A.moveToList();
|
|
697
697
|
}
|
|
698
698
|
highlightExhibitors(e) {
|
|
699
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
699
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), A.boothStore.highlightedByExternalIds = [], A.exhibitorStore.highlightedByExternalIds = [...e];
|
|
700
700
|
}
|
|
701
701
|
highlightBooths(e) {
|
|
702
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
702
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), A.exhibitorStore.highlightedByExternalIds = [], A.boothStore.highlightedByExternalIds = [...e];
|
|
703
703
|
}
|
|
704
704
|
highlightEntities(e) {
|
|
705
705
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
706
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
707
|
-
|
|
706
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = C(e);
|
|
707
|
+
A.boothStore.highlightedByExternalIds = [...t], A.exhibitorStore.highlightedByExternalIds = [...n];
|
|
708
708
|
}
|
|
709
709
|
selectRoute(e, t) {
|
|
710
710
|
if (Array.isArray(e)) {
|
|
@@ -714,10 +714,10 @@ var vn = class extends s {
|
|
|
714
714
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
A.routeStore.selectRoute(new S(Q(n), Q(r), t.map(Q)));
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
720
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), A.routeStore.selectRoute(new S(Q(e), Q(t)));
|
|
721
721
|
}
|
|
722
722
|
getOptimizedRoutes(e) {
|
|
723
723
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -730,19 +730,19 @@ var vn = class extends s {
|
|
|
730
730
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
731
731
|
a ? a.push(e) : n.set(t, [e]);
|
|
732
732
|
}
|
|
733
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
733
|
+
return Array.from(n.values()).map((e) => ({ waypoints: Ke(e.map((e) => [e.name, {
|
|
734
734
|
x: e.rect.center.x,
|
|
735
735
|
y: e.rect.center.y
|
|
736
736
|
}])) }));
|
|
737
737
|
}
|
|
738
738
|
selectCurrentPosition(e, t, n) {
|
|
739
739
|
var r;
|
|
740
|
-
let i =
|
|
741
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
740
|
+
let i = E(e.x) && E(e.y), a = E(e.lng) && E(e.lat);
|
|
741
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), A.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
742
742
|
}
|
|
743
743
|
setBookmarks(e) {
|
|
744
744
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
745
|
-
let t =
|
|
745
|
+
let t = A.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
746
746
|
t && (t.bookmarked = e.bookmarked);
|
|
747
747
|
});
|
|
748
748
|
}
|
|
@@ -761,29 +761,29 @@ var vn = class extends s {
|
|
|
761
761
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
764
|
-
let r =
|
|
764
|
+
let r = ot("bookmarked"), i = {
|
|
765
765
|
exhibitor: {
|
|
766
766
|
existingIds: new Set(r.exhibitors || []),
|
|
767
|
-
finder: (e) =>
|
|
768
|
-
replacer: (e) =>
|
|
767
|
+
finder: (e) => A.exhibitorStore.findExhibitor(e),
|
|
768
|
+
replacer: (e) => A.exhibitorStore.replaceBookmarked(e)
|
|
769
769
|
},
|
|
770
770
|
event: {
|
|
771
771
|
existingIds: new Set(r.events || []),
|
|
772
|
-
finder: (e) =>
|
|
773
|
-
replacer: (e) =>
|
|
772
|
+
finder: (e) => A.eventStore.findByNameOrSlug(e),
|
|
773
|
+
replacer: (e) => A.eventStore.replaceBookmarked(e)
|
|
774
774
|
},
|
|
775
775
|
speaker: {
|
|
776
776
|
existingIds: new Set(r.speakers || []),
|
|
777
|
-
finder: (e) =>
|
|
778
|
-
replacer: (e) =>
|
|
777
|
+
finder: (e) => A.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
778
|
+
replacer: (e) => A.speakerStore.replaceBookmarked(e)
|
|
779
779
|
},
|
|
780
780
|
booth: {
|
|
781
781
|
existingIds: new Set(r.booths || []),
|
|
782
782
|
finder: (e) => {
|
|
783
|
-
let t =
|
|
783
|
+
let t = A.boothStore.findBooth(e);
|
|
784
784
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
785
785
|
},
|
|
786
|
-
replacer: (e) =>
|
|
786
|
+
replacer: (e) => A.boothStore.replaceBookmarked(e)
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
789
|
e.forEach((e) => {
|
|
@@ -803,16 +803,16 @@ var vn = class extends s {
|
|
|
803
803
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
804
804
|
return;
|
|
805
805
|
}
|
|
806
|
-
let r =
|
|
806
|
+
let r = ot("visited"), i = {
|
|
807
807
|
exhibitor: {
|
|
808
808
|
existingIds: new Set(r.exhibitors || []),
|
|
809
|
-
finder: (e) =>
|
|
810
|
-
replacer: (e) =>
|
|
809
|
+
finder: (e) => A.exhibitorStore.findExhibitor(e),
|
|
810
|
+
replacer: (e) => A.exhibitorStore.replaceVisited(e)
|
|
811
811
|
},
|
|
812
812
|
event: {
|
|
813
813
|
existingIds: new Set(r.events || []),
|
|
814
|
-
finder: (e) =>
|
|
815
|
-
replacer: (e) =>
|
|
814
|
+
finder: (e) => A.eventStore.findByNameOrSlug(e),
|
|
815
|
+
replacer: (e) => A.eventStore.replaceVisited(e)
|
|
816
816
|
}
|
|
817
817
|
};
|
|
818
818
|
e.forEach((e) => {
|
|
@@ -827,94 +827,94 @@ var vn = class extends s {
|
|
|
827
827
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
828
828
|
return;
|
|
829
829
|
}
|
|
830
|
-
|
|
830
|
+
A.routeStore.setMarkers(e);
|
|
831
831
|
}
|
|
832
832
|
selectMarker(e, t = !0) {
|
|
833
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
833
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), A.routeStore.selectMarker(e, t);
|
|
834
834
|
}
|
|
835
835
|
drawCircles(e) {
|
|
836
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
836
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), A.uiState.debugCircles = e;
|
|
837
837
|
}
|
|
838
838
|
checkRoutes() {
|
|
839
|
-
|
|
839
|
+
A.routeStore.checkRoutes();
|
|
840
840
|
}
|
|
841
841
|
updateLayerVisibility(e, t) {
|
|
842
|
-
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"),
|
|
842
|
+
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"), A.layerStore.updateVisibility(e, t);
|
|
843
843
|
}
|
|
844
844
|
getCenterCoordinates() {
|
|
845
|
-
return
|
|
845
|
+
return A.fp.getCenterCoordinates();
|
|
846
846
|
}
|
|
847
847
|
exhibitorsList() {
|
|
848
|
-
return
|
|
848
|
+
return A.exhibitorStore.exhibitors.map((e) => q(e));
|
|
849
849
|
}
|
|
850
850
|
boothsList() {
|
|
851
|
-
return
|
|
851
|
+
return A.boothStore.booths.map((e) => q(e));
|
|
852
852
|
}
|
|
853
853
|
categoriesList() {
|
|
854
|
-
return
|
|
854
|
+
return A.categoryStore.categories.map((e) => q(e));
|
|
855
855
|
}
|
|
856
856
|
selectCategory(e) {
|
|
857
857
|
if (e == null || typeof e != "string") {
|
|
858
|
-
|
|
858
|
+
A.searchStore.selectSearch();
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
861
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = A.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
862
862
|
if (!n) {
|
|
863
863
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
864
864
|
return;
|
|
865
865
|
}
|
|
866
|
-
|
|
866
|
+
A.selectCategory(n);
|
|
867
867
|
}
|
|
868
868
|
select(e) {
|
|
869
869
|
if (typeof e != "string") {
|
|
870
870
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
873
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
873
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = A.boothStore.booths.find((e) => {
|
|
874
874
|
var t, r, i;
|
|
875
875
|
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;
|
|
876
876
|
});
|
|
877
877
|
if (r) {
|
|
878
|
-
setTimeout(() =>
|
|
878
|
+
setTimeout(() => A.selectBooth(r), 250);
|
|
879
879
|
return;
|
|
880
880
|
}
|
|
881
|
-
let i =
|
|
881
|
+
let i = A.eventStore.eventItems.find((e) => {
|
|
882
882
|
var t, r;
|
|
883
883
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
884
884
|
});
|
|
885
885
|
if (i) {
|
|
886
|
-
|
|
886
|
+
A.selectEventItem(i, !0);
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
|
-
let a =
|
|
889
|
+
let a = A.exhibitorStore.exhibitors.find((e) => {
|
|
890
890
|
var t, r;
|
|
891
891
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
892
892
|
});
|
|
893
893
|
if (a) {
|
|
894
|
-
setTimeout(() =>
|
|
894
|
+
setTimeout(() => A.clickExhibitor(a), 250);
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
897
|
-
let o =
|
|
897
|
+
let o = A.categoryStore.categories.find((e) => e.slug === t);
|
|
898
898
|
if (o) {
|
|
899
|
-
|
|
899
|
+
A.selectCategory(o);
|
|
900
900
|
return;
|
|
901
901
|
}
|
|
902
|
-
let s =
|
|
902
|
+
let s = A.speakerStore.findBySlug(t);
|
|
903
903
|
if (s) {
|
|
904
|
-
|
|
904
|
+
A.selectSpeaker(s, !0);
|
|
905
905
|
return;
|
|
906
906
|
}
|
|
907
|
-
t.includes("heatmap=true") ||
|
|
907
|
+
t.includes("heatmap=true") || A.searchStore.selectSearch(t);
|
|
908
908
|
}
|
|
909
909
|
showList(e) {
|
|
910
910
|
let t = {
|
|
911
|
-
bookmarks: () =>
|
|
912
|
-
visited: () =>
|
|
913
|
-
sessions: () =>
|
|
914
|
-
exhibitors: () =>
|
|
915
|
-
speakers: () =>
|
|
916
|
-
tours: () =>
|
|
917
|
-
language: () =>
|
|
911
|
+
bookmarks: () => A.selectBookmarks(),
|
|
912
|
+
visited: () => A.selectVisited(),
|
|
913
|
+
sessions: () => A.selectSessions(),
|
|
914
|
+
exhibitors: () => A.selectExhibitors(),
|
|
915
|
+
speakers: () => A.selectSpeakers(),
|
|
916
|
+
tours: () => A.selectTours(),
|
|
917
|
+
language: () => A.selectLanguage()
|
|
918
918
|
}, n = t[e];
|
|
919
919
|
if (!n) {
|
|
920
920
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -927,65 +927,65 @@ var vn = class extends s {
|
|
|
927
927
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
928
928
|
return;
|
|
929
929
|
}
|
|
930
|
-
let t =
|
|
931
|
-
t ?
|
|
930
|
+
let t = A.toursStore.getTourById(e);
|
|
931
|
+
t ? A.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), A.selectTours());
|
|
932
932
|
}
|
|
933
933
|
openPlanner(e = {}) {
|
|
934
934
|
if (typeof e != "object" || !e) {
|
|
935
935
|
$("openPlanner", "An options object must be passed.", "EFP001A00");
|
|
936
936
|
return;
|
|
937
937
|
}
|
|
938
|
-
let t = e.from ?
|
|
939
|
-
if (e.fromBookmarks)
|
|
938
|
+
let t = e.from ? D(e.from) : null;
|
|
939
|
+
if (e.fromBookmarks) A.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
940
940
|
else {
|
|
941
941
|
var n;
|
|
942
|
-
|
|
942
|
+
A.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
startBuildRoute() {
|
|
946
|
-
|
|
946
|
+
A.uiState.startBuildRoute();
|
|
947
947
|
}
|
|
948
948
|
applyParameters(e) {
|
|
949
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
949
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), en(e);
|
|
950
950
|
}
|
|
951
951
|
getVisibility() {
|
|
952
|
-
return
|
|
952
|
+
return A.uiState.visibility;
|
|
953
953
|
}
|
|
954
954
|
setVisibility(e) {
|
|
955
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
955
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), A.uiState.setVisibility(e);
|
|
956
956
|
}
|
|
957
957
|
findLocation() {
|
|
958
|
-
|
|
958
|
+
A.routeStore.findLocation();
|
|
959
959
|
}
|
|
960
960
|
zoomIn() {
|
|
961
|
-
|
|
961
|
+
A.uiState.zoomIn();
|
|
962
962
|
}
|
|
963
963
|
zoomOut() {
|
|
964
|
-
|
|
964
|
+
A.uiState.zoomOut();
|
|
965
965
|
}
|
|
966
966
|
switchView() {
|
|
967
|
-
|
|
967
|
+
A.maplibreStore.activateMaplibre();
|
|
968
968
|
}
|
|
969
969
|
setCamera(e) {
|
|
970
970
|
Z("setCamera called with camera=%O", e);
|
|
971
|
-
let t =
|
|
971
|
+
let t = ke.safeParse(e);
|
|
972
972
|
if (!t.success) {
|
|
973
973
|
$("setCamera", t.error.message, "EFP001B00");
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
|
-
|
|
976
|
+
A.uiState.setMapSettings(x(t.data));
|
|
977
977
|
}
|
|
978
978
|
getCamera() {
|
|
979
|
-
return
|
|
979
|
+
return He(A.uiState.mapSettings);
|
|
980
980
|
}
|
|
981
981
|
zoomTo(e, t) {
|
|
982
982
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
983
|
-
let n =
|
|
983
|
+
let n = qt.safeParse(e);
|
|
984
984
|
if (!n.success) {
|
|
985
985
|
$("zoomTo", n.error.message, "EFP001600");
|
|
986
986
|
return;
|
|
987
987
|
}
|
|
988
|
-
let r =
|
|
988
|
+
let r = Jt.safeParse(t);
|
|
989
989
|
if (!r.success) {
|
|
990
990
|
$("zoomTo", r.error.message, "EFP001601");
|
|
991
991
|
return;
|
|
@@ -996,7 +996,7 @@ var vn = class extends s {
|
|
|
996
996
|
getBounds(e) {
|
|
997
997
|
var t, n;
|
|
998
998
|
Z("getBounds called with selectors=%O", e);
|
|
999
|
-
let r =
|
|
999
|
+
let r = qt.safeParse(e);
|
|
1000
1000
|
if (!r.success) {
|
|
1001
1001
|
$("getBounds", r.error.message, "EFP001400");
|
|
1002
1002
|
return;
|
|
@@ -1004,15 +1004,15 @@ var vn = class extends s {
|
|
|
1004
1004
|
let i = [];
|
|
1005
1005
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1006
1006
|
let t;
|
|
1007
|
-
e.externalId ? t =
|
|
1007
|
+
e.externalId ? t = A.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = A.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1008
1008
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1009
1009
|
var t;
|
|
1010
1010
|
let n;
|
|
1011
|
-
e.externalId ? n =
|
|
1011
|
+
e.externalId ? n = A.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = A.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1012
1012
|
e.rect && i.push(e.rect);
|
|
1013
1013
|
});
|
|
1014
1014
|
}), i.length === 0) return;
|
|
1015
|
-
let a =
|
|
1015
|
+
let a = N.fromUnion(...i);
|
|
1016
1016
|
return {
|
|
1017
1017
|
leftTop: {
|
|
1018
1018
|
x: a.min.x,
|
|
@@ -1026,37 +1026,37 @@ var vn = class extends s {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
fitBounds(e, t) {
|
|
1028
1028
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1029
|
-
|
|
1029
|
+
A.uiState.fitBounds();
|
|
1030
1030
|
return;
|
|
1031
1031
|
}
|
|
1032
|
-
let n =
|
|
1032
|
+
let n = Gt.safeParse(e);
|
|
1033
1033
|
if (!n.success) {
|
|
1034
1034
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1035
1035
|
return;
|
|
1036
1036
|
}
|
|
1037
|
-
let r =
|
|
1037
|
+
let r = Jt.safeParse(t);
|
|
1038
1038
|
if (!r.success) {
|
|
1039
1039
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1040
1040
|
return;
|
|
1041
1041
|
}
|
|
1042
|
-
let i =
|
|
1042
|
+
let i = N.fromMinMax({
|
|
1043
1043
|
x: e.leftTop.x,
|
|
1044
1044
|
y: e.leftTop.y
|
|
1045
1045
|
}, {
|
|
1046
1046
|
x: e.rightBottom.x,
|
|
1047
1047
|
y: e.rightBottom.y
|
|
1048
1048
|
});
|
|
1049
|
-
|
|
1049
|
+
A.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1050
1050
|
}
|
|
1051
1051
|
getBoothRect(e) {
|
|
1052
1052
|
var t;
|
|
1053
1053
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1054
|
-
let n = (t =
|
|
1054
|
+
let n = (t = D(e)) == null ? void 0 : t.rect;
|
|
1055
1055
|
return n ? bn.fromBox(n) : void 0;
|
|
1056
1056
|
}
|
|
1057
1057
|
convertToGeo(e, t) {
|
|
1058
1058
|
var n;
|
|
1059
|
-
if (!(!(
|
|
1059
|
+
if (!(!(w == null || (n = w.properties) == null) && n.config)) {
|
|
1060
1060
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1061
1061
|
return;
|
|
1062
1062
|
}
|
|
@@ -1064,11 +1064,11 @@ var vn = class extends s {
|
|
|
1064
1064
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1065
1065
|
return;
|
|
1066
1066
|
}
|
|
1067
|
-
return
|
|
1067
|
+
return Je(e, t, w.properties.config);
|
|
1068
1068
|
}
|
|
1069
1069
|
getGeoConfig() {
|
|
1070
1070
|
var e, t;
|
|
1071
|
-
let n =
|
|
1071
|
+
let n = w == null || (e = w.properties) == null ? void 0 : e.config;
|
|
1072
1072
|
return n ? {
|
|
1073
1073
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1074
1074
|
p0: n.p0,
|
|
@@ -1078,16 +1078,16 @@ var vn = class extends s {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
releaseResources() {
|
|
1080
1080
|
var e, t;
|
|
1081
|
-
window.removeEventListener("error", i), (e = this.disposeDetailsEvents) == null || e.call(this), this.disposeDetailsEvents = void 0, (t = this.disposeBoothHitTest) == null || t.call(this), this.disposeBoothHitTest = void 0,
|
|
1081
|
+
window.removeEventListener("error", i), (e = this.disposeDetailsEvents) == null || e.call(this), this.disposeDetailsEvents = void 0, (t = this.disposeBoothHitTest) == null || t.call(this), this.disposeBoothHitTest = void 0, A.maplibreStore.dispose(), at(), nt(), Qe(), dt(), this.root.unmount(), super.releaseResources();
|
|
1082
1082
|
}
|
|
1083
1083
|
search(e) {
|
|
1084
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1084
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), A.fuzzySearchEngineStore.loadEngine().then(() => (A.searchStore.selectSearch(e), A.uiState.fuzzySearchItems.map((e) => ({
|
|
1085
1085
|
item: q(e.item),
|
|
1086
1086
|
score: e.score
|
|
1087
1087
|
}))));
|
|
1088
1088
|
}
|
|
1089
1089
|
getFloors() {
|
|
1090
|
-
return
|
|
1090
|
+
return A.layerStore.floors.map((e) => ({
|
|
1091
1091
|
name: e.name,
|
|
1092
1092
|
shortName: e.shortName,
|
|
1093
1093
|
description: e.description,
|
|
@@ -1124,70 +1124,70 @@ var vn = class extends s {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
showPathway(e, t) {
|
|
1127
|
-
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ?
|
|
1127
|
+
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? C(t) : {
|
|
1128
1128
|
boothExternalIds: [],
|
|
1129
1129
|
exhibitorExternalIds: []
|
|
1130
1130
|
};
|
|
1131
|
-
|
|
1131
|
+
rn({
|
|
1132
1132
|
pathwayId: e,
|
|
1133
1133
|
boothIds: n,
|
|
1134
1134
|
exhibitorIds: r
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
1137
|
showPathwayOnly(e, t) {
|
|
1138
|
-
this.activateFloor({ name: t }),
|
|
1139
|
-
let n =
|
|
1138
|
+
this.activateFloor({ name: t }), A.layerStore.showPathWay(e), A.uiState.setPathwayOnlyMode(!0);
|
|
1139
|
+
let n = A.layerStore.findLayer(e), r = A.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1140
1140
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1141
1141
|
var a;
|
|
1142
1142
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1143
|
-
|
|
1143
|
+
A.uiState.moveToRect = e.clone();
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
1146
|
hidePathways() {
|
|
1147
|
-
this.highlightBooths([]),
|
|
1147
|
+
this.highlightBooths([]), A.layerStore.hidePathways(), A.uiState.setPathwayOnlyMode(!1);
|
|
1148
1148
|
}
|
|
1149
1149
|
showSearch() {
|
|
1150
|
-
|
|
1150
|
+
A.selectSearch("");
|
|
1151
1151
|
}
|
|
1152
1152
|
changeLanguage(e) {
|
|
1153
1153
|
var t;
|
|
1154
1154
|
let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1155
|
-
if (!
|
|
1156
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1155
|
+
if (!Te(n)) {
|
|
1156
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${Se().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1157
1157
|
return;
|
|
1158
1158
|
}
|
|
1159
|
-
|
|
1159
|
+
Ce(n);
|
|
1160
1160
|
}
|
|
1161
1161
|
isGpsTrackingEnabled() {
|
|
1162
|
-
return
|
|
1162
|
+
return A.routeStore.gpsEnabled;
|
|
1163
1163
|
}
|
|
1164
1164
|
setGpsTrackingEnabled(e) {
|
|
1165
|
-
|
|
1165
|
+
A.routeStore.setGpsTrackingEnabled(e);
|
|
1166
1166
|
}
|
|
1167
1167
|
deselectCurrentPosition() {
|
|
1168
|
-
|
|
1168
|
+
A.routeStore.selectCurrentPosition(null, !1);
|
|
1169
1169
|
}
|
|
1170
1170
|
deselectRoute() {
|
|
1171
|
-
|
|
1171
|
+
A.routeStore.selectRoute(null), A.routeStore.setOnlyAccessible(!1);
|
|
1172
1172
|
}
|
|
1173
1173
|
reset() {
|
|
1174
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1174
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), A.uiState.kioskData && A.resetCameraFn) {
|
|
1175
1175
|
var e;
|
|
1176
|
-
(e =
|
|
1176
|
+
(e = A.resetCameraFn) == null || e.call(A);
|
|
1177
1177
|
} else this.fitBounds();
|
|
1178
1178
|
}
|
|
1179
1179
|
selectAccessibleRoute(e) {
|
|
1180
|
-
|
|
1180
|
+
A.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1181
1181
|
}
|
|
1182
1182
|
};
|
|
1183
1183
|
function Q(e) {
|
|
1184
|
-
return typeof e == "string" ?
|
|
1184
|
+
return typeof e == "string" ? D(e) : A.routeStore.getNearestBooth(e);
|
|
1185
1185
|
}
|
|
1186
1186
|
var yn = 0;
|
|
1187
1187
|
function $(e, t, n) {
|
|
1188
1188
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1189
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1190
|
-
|
|
1189
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), A.fp.disableRuntimeAlerts) return;
|
|
1190
|
+
A.uiState.setGlobalErrorMessage({
|
|
1191
1191
|
title: r,
|
|
1192
1192
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1193
1193
|
i,
|
|
@@ -1203,7 +1203,7 @@ function $(e, t, n) {
|
|
|
1203
1203
|
let o = 8e3;
|
|
1204
1204
|
yn = window.setTimeout(() => {
|
|
1205
1205
|
let e = async () => {
|
|
1206
|
-
|
|
1206
|
+
A.uiState.globalErrorMessages.length > 0 && (A.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1207
1207
|
};
|
|
1208
1208
|
e();
|
|
1209
1209
|
}, o);
|