@expofp/floorplan 3.40.2 → 3.41.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-Dl3K4FxR.js → Button-K9L6U_YW.js} +5 -5
- package/dist/browser/{CookieConsent-CluEwzBl.js → CookieConsent-aG4WVcPf.js} +7 -7
- package/dist/browser/{Debug-j4CCi0O5.js → Debug-DHNsq_k3.js} +7 -7
- package/dist/browser/{DebugTools-1tSg1zfy.js → DebugTools-CSBtUWTk.js} +6 -6
- package/dist/browser/{Demo-DbRNegr3.js → Demo-WXKC1qDV.js} +9 -9
- package/dist/browser/{Free-B0Qaa_x6.js → Free-CedmbSy7.js} +13 -13
- package/dist/browser/{GalleryContainer-B2c_Ob3n.js → GalleryContainer-D868yMxl.js} +10 -10
- package/dist/browser/{GpsLoader-Cm-VP0Ih.js → GpsLoader-C_VRRtlH.js} +34 -34
- package/dist/browser/{KioskStore-BXlVG9J4.js → KioskStore-BO6F_rdS.js} +25 -25
- package/dist/browser/{MaplibreAdapter-BtZwv2RM.js → MaplibreAdapter-D4X8l71T.js} +158 -158
- package/dist/browser/{ModalContainer-CD3uo7m-.js → ModalContainer-DPJNLBW5.js} +10 -10
- package/dist/browser/{PermissionNotice-BCNDTLsb.js → PermissionNotice-Dh8Su-MO.js} +6 -6
- package/dist/browser/{SetKioskMode-pZ4kyeE6.js → SetKioskMode-CxKai3ap.js} +16 -16
- package/dist/browser/{ShowKiosk-JxgBPX9H.js → ShowKiosk-uwExArQg.js} +11 -11
- package/dist/browser/{ViewerMenuPanel-DfeHqCox.js → ViewerMenuPanel-Bk2spmZU.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-C0uvuBV9.js → add-debug-secret-listener-eKo78Ruz.js} +1 -1
- package/dist/browser/{adopt-global-settings-BEqSCPFu.js → adopt-global-settings-zQG9zbVX.js} +9 -9
- package/dist/browser/{boolean-editor-D7QYyNbK.js → boolean-editor-DNnfBEvN.js} +9 -9
- package/dist/browser/{bootIntercom-aZdJ2jlp.js → bootIntercom-BuwPFeWn.js} +2 -2
- package/dist/browser/bundle.json +71 -71
- package/dist/browser/{camera-events-Du5PkjAm.js → camera-events-DMRkWwAT.js} +1 -1
- package/dist/browser/{classnames-DFXd9Nzv.js → classnames-fpVQFx2H.js} +2 -2
- package/dist/browser/{client-CoE7dhxI.js → client-BqUboGBa.js} +5 -5
- package/dist/browser/{components-DNNKY8zt.js → components-BsPJdFtL.js} +1199 -1198
- package/dist/browser/{debug-context-Bh2tH1Ti.js → debug-context-DLVjeviW.js} +5 -5
- package/dist/browser/{debug-overlay-i0AHC8HQ.js → debug-overlay-IH41bxrg.js} +10 -10
- package/dist/browser/{debug-ui-2CIonpdp.js → debug-ui-B0G8eOn_.js} +6 -6
- package/dist/browser/{dimming-C1M4fMTq.js → dimming-DHrRSsrL.js} +210 -210
- package/dist/browser/{dist-DYLVUrDW.js → dist-DmbZFcZq.js} +3 -3
- package/dist/browser/{dist-KQXTjF0b.js → dist-DnevmpEu.js} +6 -6
- package/dist/browser/{dist-CHWDmiUg.js → dist-touQhXFP.js} +5 -5
- package/dist/browser/{efp-debug-init-CHGnPNcF.js → efp-debug-init-p8CA0913.js} +3 -3
- package/dist/browser/{enum-editor-Cf4RJ2Yj.js → enum-editor-DrXhpl-j.js} +4 -4
- package/dist/browser/{es5-CI29Led5.js → es5-D1_ZW7ue.js} +2 -2
- package/dist/browser/{event-head-BfnsHmSi.js → event-head-DJVe00oD.js} +1 -1
- package/dist/browser/{event-not-found-DA_ZZj5G.js → event-not-found-BKhAStEZ.js} +3 -3
- package/dist/browser/{exports-CbCXll5y.js → exports-Q3fzDLLq.js} +1 -1
- package/dist/browser/{favicon-Dsl_HMeH.js → favicon-CaBmDR3-.js} +1 -1
- package/dist/browser/{fetch-retry.umd-I3PMISHy.js → fetch-retry.umd-2CqDnpHe.js} +2 -2
- package/dist/browser/{flex-uJGM-5HO.js → flex-CQRA8z2c.js} +5 -5
- package/dist/browser/{floorplan.loader-UEt_bXNh.js → floorplan.loader-BWCO8dkF.js} +10 -10
- package/dist/browser/{floorplan.ready-BOjuitfZ.js → floorplan.ready-DdYTcZ58.js} +312 -312
- package/dist/browser/{fuse-zWMfLK6L.js → fuse-BTImEfZQ.js} +2 -2
- package/dist/browser/{i18n-i7YP-IOh.js → i18n-DgOvRShn.js} +5 -5
- package/dist/browser/index.js +16 -16
- package/dist/browser/{index.module-DN_76VFm.js → index.module-CQh0vpct.js} +4 -4
- package/dist/browser/{integrateKiosk-qKsSXfff.js → integrateKiosk-Ce4vspJD.js} +4 -4
- package/dist/browser/{is-own-domain-BtFo1Crc.js → is-own-domain-CIPwBGvm.js} +1 -1
- package/dist/browser/{is-webview-BNkzzffw.js → is-webview-Bv0d76Tl.js} +1 -1
- package/dist/browser/{jsx-runtime-DyThPKRk.js → jsx-runtime-DwH6FSqr.js} +2 -2
- package/dist/browser/{kiosk-record-Ppyzn0w0.js → kiosk-record-DZyT7VVy.js} +1 -1
- package/dist/browser/{lib-N8tTonez.js → lib-CFNVmPJ0.js} +3 -3
- package/dist/browser/{loadImage-Bot6Vn0t.js → loadImage-Dj7yrGrq.js} +4 -4
- package/dist/browser/{logDeviceInfo-CKJu50c-.js → logDeviceInfo-eVwa3ex5.js} +9 -9
- package/dist/browser/{mobx-BwxeviHO.js → mobx-CEWiDKqV.js} +4 -4
- package/dist/browser/{optional-boolean-editor-Dn6kfd_9.js → optional-boolean-editor-D3FAuTWA.js} +3 -3
- package/dist/browser/{optional-enum-editor-RBacq770.js → optional-enum-editor-BREZDEcH.js} +4 -4
- package/dist/browser/{optional-string-editor-BF661eve.js → optional-string-editor-eYjLcFv3.js} +4 -4
- package/dist/browser/{particles.min-C_te_-iS.js → particles.min-Cy_hVZou.js} +2 -2
- package/dist/browser/{react-CiryCp2B.js → react-C5VW7EYy.js} +2 -2
- package/dist/browser/{react-dom-BAXfewx9.js → react-dom-pbGdFQ3w.js} +3 -3
- package/dist/browser/{rolldown-runtime-DfT_KF1d.js → rolldown-runtime-goUnb6t5.js} +1 -1
- package/dist/browser/{scheduler-0dkhSGfa.js → scheduler-HpGLW39a.js} +2 -2
- package/dist/browser/{select-BvAHNMEr.js → select-tYeM6WvT.js} +10 -10
- package/dist/browser/{settings-cVdmOMMJ.js → settings-BcG1IUj2.js} +2 -2
- package/dist/browser/{settings-item-C4gYOWWR.js → settings-item-Ct12OEqw.js} +6 -6
- package/dist/browser/{store-BSwroh2x.js → store-prn6mdME.js} +4001 -3828
- package/dist/browser/{string-editor-DUVQYZsT.js → string-editor-EJg2kQfO.js} +4 -4
- package/dist/browser/{text-field-Cbo5wm0u.js → text-field-FXGzpkZC.js} +5 -5
- package/dist/browser/{theme-DOSbtv4l.js → theme-9bKPRQHa.js} +8 -8
- package/dist/browser/{ui-lll8ACbE.js → ui-eYxU40vM.js} +8 -8
- package/dist/browser/{useRenderTarget-OBDPXsyr.js → useRenderTarget-BMqoDify.js} +4 -4
- package/dist/browser/{viewport-DjEIJxeQ.js → viewport-CjpGqDaX.js} +3 -3
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/store/UIState.d.ts +4 -0
- package/dist/esm/store/UIState.js +1 -1
- package/package.json +10 -10
|
@@ -1,34 +1,34 @@
|
|
|
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.41.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] = "51cc7886-f6dc-475c-9268-882bde4525b1", e._sentryDebugIdIdentifier = "sentry-dbid-51cc7886-f6dc-475c-9268-882bde4525b1");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./floorplan.loader-
|
|
11
|
-
import { At as u, Bt as d, Ct as f, Dt as ee, Et as te, Ft as ne, It as re, K as ie, Lt as ae, Mt as oe, Nt as se, Ot as ce, Pt as le, Rt as
|
|
12
|
-
import { s as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
16
|
-
import { n as
|
|
17
|
-
import { C as
|
|
18
|
-
import { t as
|
|
19
|
-
import { i as
|
|
20
|
-
import {
|
|
21
|
-
import { n as yt, t as bt } from "./integrateKiosk-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-goUnb6t5.js";
|
|
10
|
+
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./floorplan.loader-BWCO8dkF.js";
|
|
11
|
+
import { At as u, Bt as d, Ct as f, Dt as ee, Et as te, Ft as ne, It as re, K as ie, Lt as ae, Mt as oe, Nt as se, Ot as ce, Pt as le, Rt as ue, St as de, Tt as fe, U as pe, W as me, _t as he, bt as ge, et as _e, f as ve, ft as p, ht as ye, jt as be, kt as xe, l as Se, lt as Ce, mt as we, n as Te, o as Ee, pt as De, r as Oe, rt as ke, ut as Ae, v as je, vt as Me, w as m, wt as Ne, xt as Pe, y as Fe, zt as h } from "./i18n-DgOvRShn.js";
|
|
12
|
+
import { s as Ie } from "./efp-debug-init-p8CA0913.js";
|
|
13
|
+
import { t as Le } from "./react-C5VW7EYy.js";
|
|
14
|
+
import { t as Re } from "./jsx-runtime-DwH6FSqr.js";
|
|
15
|
+
import { r as g } from "./loadImage-Dj7yrGrq.js";
|
|
16
|
+
import { n as _, t as ze } from "./is-own-domain-CIPwBGvm.js";
|
|
17
|
+
import { C as v, D as Be, Q as Ve, ht as y, i as He, n as Ue, w as We } from "./exports-Q3fzDLLq.js";
|
|
18
|
+
import { t as Ge } from "./client-BqUboGBa.js";
|
|
19
|
+
import { i as Ke, n as qe, r as b, t as Je } from "./components-BsPJdFtL.js";
|
|
20
|
+
import { $ as Ye, C as Xe, D as x, Dn as S, E as C, F as w, H as T, J as E, K as Ze, M as Qe, P as $e, Q as et, T as tt, Tn as nt, U as rt, W as D, Y as O, _n as it, at, b as ot, c as k, cn as st, dt as ct, fn as lt, ft as ut, gn as dt, it as ft, jn as A, jt as pt, l as j, lt as mt, nt as M, ot as ht, pn as N, rt as gt, st as P, ut as _t, w as F, zn as vt } from "./store-prn6mdME.js";
|
|
21
|
+
import { n as yt, t as bt } from "./integrateKiosk-Ce4vspJD.js";
|
|
22
22
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
23
|
-
function
|
|
23
|
+
function xt(e = {}) {
|
|
24
24
|
let n = r.document, i = (n == null ? void 0 : n.head) || (n == null ? void 0 : n.body);
|
|
25
25
|
if (!i) {
|
|
26
|
-
s &&
|
|
26
|
+
s && y.error("[showReportDialog] Global document not defined");
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
let a =
|
|
29
|
+
let a = We(), o = v(), c = o == null ? void 0 : o.getDsn();
|
|
30
30
|
if (!c) {
|
|
31
|
-
s &&
|
|
31
|
+
s && y.error("[showReportDialog] DSN not configured");
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
let l = {
|
|
@@ -37,7 +37,7 @@ function I(e = {}) {
|
|
|
37
37
|
...a.getUser(),
|
|
38
38
|
...e.user
|
|
39
39
|
},
|
|
40
|
-
eventId: e.eventId ||
|
|
40
|
+
eventId: e.eventId || He()
|
|
41
41
|
}, u = r.document.createElement("script");
|
|
42
42
|
u.async = !0, u.crossOrigin = "anonymous", u.src = t(c, l);
|
|
43
43
|
let { onLoad: d, onClose: f } = l;
|
|
@@ -55,12 +55,12 @@ function I(e = {}) {
|
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/error.js
|
|
58
|
-
var
|
|
59
|
-
function
|
|
58
|
+
var I = /* @__PURE__ */ e(Le());
|
|
59
|
+
function St(e) {
|
|
60
60
|
let t = e.match(/^([^.]+)/);
|
|
61
61
|
return t !== null && parseInt(t[0]) >= 17;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ct(e, t) {
|
|
64
64
|
let n = /* @__PURE__ */ new WeakSet();
|
|
65
65
|
function r(e, t) {
|
|
66
66
|
if (!n.has(e)) {
|
|
@@ -70,25 +70,25 @@ function St(e, t) {
|
|
|
70
70
|
}
|
|
71
71
|
r(e, t);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
if (
|
|
73
|
+
function wt(e, { componentStack: t }, n) {
|
|
74
|
+
if (St(I.version) && Ve(e) && t) {
|
|
75
75
|
let n = Error(e.message);
|
|
76
|
-
n.name = `React ErrorBoundary ${e.name}`, n.stack = t,
|
|
76
|
+
n.name = `React ErrorBoundary ${e.name}`, n.stack = t, Ct(e, n);
|
|
77
77
|
}
|
|
78
|
-
return
|
|
78
|
+
return Ue(e, n);
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/debug-build.js
|
|
82
|
-
var
|
|
82
|
+
var Tt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = {
|
|
83
83
|
componentStack: null,
|
|
84
84
|
error: null,
|
|
85
85
|
eventId: null
|
|
86
|
-
},
|
|
86
|
+
}, Et = class extends I.Component {
|
|
87
87
|
constructor(e) {
|
|
88
|
-
super(e), this.state =
|
|
89
|
-
let t =
|
|
88
|
+
super(e), this.state = L, this._openFallbackReportDialog = !0;
|
|
89
|
+
let t = v();
|
|
90
90
|
t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
|
|
91
|
-
!t.type && this._lastEventId && t.event_id === this._lastEventId &&
|
|
91
|
+
!t.type && this._lastEventId && t.event_id === this._lastEventId && xt({
|
|
92
92
|
...e.dialogOptions,
|
|
93
93
|
eventId: this._lastEventId
|
|
94
94
|
});
|
|
@@ -96,13 +96,13 @@ var wt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, R = {
|
|
|
96
96
|
}
|
|
97
97
|
componentDidCatch(e, t) {
|
|
98
98
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
99
|
-
|
|
99
|
+
Be((s) => {
|
|
100
100
|
r && r(s, e, n);
|
|
101
|
-
let c =
|
|
101
|
+
let c = wt(e, t, { mechanism: {
|
|
102
102
|
handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
|
|
103
103
|
type: "auto.function.react.error_boundary"
|
|
104
104
|
} });
|
|
105
|
-
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog &&
|
|
105
|
+
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && xt({
|
|
106
106
|
...o,
|
|
107
107
|
eventId: c
|
|
108
108
|
})), this.setState({
|
|
@@ -118,32 +118,32 @@ var wt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, R = {
|
|
|
118
118
|
}
|
|
119
119
|
componentWillUnmount() {
|
|
120
120
|
let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
|
|
121
|
-
r && (this.state ===
|
|
121
|
+
r && (this.state === L ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
|
|
122
122
|
}
|
|
123
123
|
resetErrorBoundary() {
|
|
124
124
|
let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
|
|
125
|
-
e && e(t, n, r), this.setState(
|
|
125
|
+
e && e(t, n, r), this.setState(L);
|
|
126
126
|
}
|
|
127
127
|
render() {
|
|
128
128
|
let { fallback: e, children: t } = this.props, n = this.state;
|
|
129
129
|
if (n.componentStack === null) return typeof t == "function" ? t() : t;
|
|
130
|
-
let r = typeof e == "function" ?
|
|
130
|
+
let r = typeof e == "function" ? I.createElement(e, {
|
|
131
131
|
error: n.error,
|
|
132
132
|
componentStack: n.componentStack,
|
|
133
133
|
resetError: () => this.resetErrorBoundary(),
|
|
134
134
|
eventId: n.eventId
|
|
135
135
|
}) : e;
|
|
136
|
-
return
|
|
136
|
+
return I.isValidElement(r) ? r : (e && Tt && y.warn("fallback did not produce a valid ReactElement"), null);
|
|
137
137
|
}
|
|
138
|
-
},
|
|
139
|
-
function
|
|
138
|
+
}, Dt = /* @__PURE__ */ e(Ie(), 1), Ot = Ge(), kt = vt();
|
|
139
|
+
function At() {
|
|
140
140
|
let e = window.location.hostname.split(".");
|
|
141
141
|
return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
return
|
|
143
|
+
function jt() {
|
|
144
|
+
return At() ? window.location.hostname.split(".")[0] : "main";
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Mt(e) {
|
|
147
147
|
if ((e == null ? void 0 : e.free) === !0) return "Free";
|
|
148
148
|
let t = e == null ? void 0 : e.trialExpiresAt;
|
|
149
149
|
if (t) {
|
|
@@ -152,25 +152,25 @@ function jt(e) {
|
|
|
152
152
|
}
|
|
153
153
|
return "Active";
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Nt() {
|
|
156
156
|
return !1;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Pt(e) {
|
|
159
159
|
return e;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
if (
|
|
163
|
-
let t =
|
|
164
|
-
subDomain:
|
|
165
|
-
subscriptionStatus:
|
|
161
|
+
function Ft(e) {
|
|
162
|
+
if (Nt() || !At() || ut(e) || !window.navigator.onLine) return null;
|
|
163
|
+
let t = Pt({
|
|
164
|
+
subDomain: jt(),
|
|
165
|
+
subscriptionStatus: Mt(e)
|
|
166
166
|
});
|
|
167
167
|
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
168
168
|
}
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
171
|
-
var
|
|
171
|
+
var R = /*@__PURE__*/ h("ZodMiniType", (e, t) => {
|
|
172
172
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
173
|
-
|
|
173
|
+
be.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => oe(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => le(e, t, n), e.parseAsync = async (t, n) => se(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ne(e, t, n), e.check = (...n) => {
|
|
174
174
|
var r;
|
|
175
175
|
return e.clone({
|
|
176
176
|
...t,
|
|
@@ -181,94 +181,94 @@ var z = /*@__PURE__*/ _("ZodMiniType", (e, t) => {
|
|
|
181
181
|
} } : e)]
|
|
182
182
|
}, { parent: !0 });
|
|
183
183
|
}, e.with = e.check, e.clone = (t, n) => re(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
184
|
-
}),
|
|
185
|
-
u.init(e, t),
|
|
184
|
+
}), It = /*@__PURE__*/ h("ZodMiniString", (e, t) => {
|
|
185
|
+
u.init(e, t), R.init(e, t);
|
|
186
186
|
});
|
|
187
187
|
// @__NO_SIDE_EFFECTS__
|
|
188
|
-
function
|
|
189
|
-
return f(
|
|
188
|
+
function Lt(e) {
|
|
189
|
+
return f(It, e);
|
|
190
190
|
}
|
|
191
|
-
var
|
|
192
|
-
ee.init(e, t),
|
|
191
|
+
var Rt = /*@__PURE__*/ h("ZodMiniNumber", (e, t) => {
|
|
192
|
+
ee.init(e, t), R.init(e, t);
|
|
193
193
|
});
|
|
194
194
|
// @__NO_SIDE_EFFECTS__
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function z(e) {
|
|
196
|
+
return Pe(Rt, e);
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
te.init(e, t),
|
|
198
|
+
var zt = /*@__PURE__*/ h("ZodMiniNever", (e, t) => {
|
|
199
|
+
te.init(e, t), R.init(e, t);
|
|
200
200
|
});
|
|
201
201
|
// @__NO_SIDE_EFFECTS__
|
|
202
|
-
function
|
|
203
|
-
return
|
|
202
|
+
function Bt(e) {
|
|
203
|
+
return ge(zt, e);
|
|
204
204
|
}
|
|
205
|
-
var
|
|
206
|
-
|
|
205
|
+
var Vt = /*@__PURE__*/ h("ZodMiniArray", (e, t) => {
|
|
206
|
+
Ne.init(e, t), R.init(e, t);
|
|
207
207
|
});
|
|
208
208
|
// @__NO_SIDE_EFFECTS__
|
|
209
|
-
function
|
|
210
|
-
return new
|
|
209
|
+
function Ht(e, t) {
|
|
210
|
+
return new Vt({
|
|
211
211
|
type: "array",
|
|
212
212
|
element: e,
|
|
213
|
-
...
|
|
213
|
+
...ue(t)
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
ce.init(e, t),
|
|
216
|
+
var Ut = /*@__PURE__*/ h("ZodMiniObject", (e, t) => {
|
|
217
|
+
ce.init(e, t), R.init(e, t), ae(e, "shape", () => t.shape);
|
|
218
218
|
});
|
|
219
219
|
// @__NO_SIDE_EFFECTS__
|
|
220
|
-
function
|
|
221
|
-
return new
|
|
220
|
+
function B(e, t) {
|
|
221
|
+
return new Ut({
|
|
222
222
|
type: "object",
|
|
223
223
|
shape: e,
|
|
224
|
-
catchall: /* @__PURE__ */
|
|
225
|
-
...
|
|
224
|
+
catchall: /* @__PURE__ */ Bt(),
|
|
225
|
+
...ue(t)
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var Wt = /*@__PURE__*/ h("ZodMiniOptional", (e, t) => {
|
|
229
|
+
xe.init(e, t), R.init(e, t);
|
|
230
230
|
});
|
|
231
231
|
// @__NO_SIDE_EFFECTS__
|
|
232
|
-
function
|
|
233
|
-
return new
|
|
232
|
+
function V(e) {
|
|
233
|
+
return new Wt({
|
|
234
234
|
type: "optional",
|
|
235
235
|
innerType: e
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
var
|
|
239
|
-
|
|
238
|
+
var Gt = /*@__PURE__*/ h("ZodMiniCustom", (e, t) => {
|
|
239
|
+
fe.init(e, t), R.init(e, t);
|
|
240
240
|
});
|
|
241
241
|
// @__NO_SIDE_EFFECTS__
|
|
242
|
-
function
|
|
243
|
-
return
|
|
242
|
+
function Kt(e, t = {}) {
|
|
243
|
+
return de(Gt, e, t);
|
|
244
244
|
}
|
|
245
245
|
//#endregion
|
|
246
246
|
//#region src/schemas/sdk.schemas.ts
|
|
247
|
-
var
|
|
248
|
-
x: /* @__PURE__ */
|
|
249
|
-
y: /* @__PURE__ */
|
|
250
|
-
}),
|
|
251
|
-
leftTop:
|
|
252
|
-
rightBottom:
|
|
253
|
-
}),
|
|
254
|
-
name: /* @__PURE__ */
|
|
255
|
-
externalId: /* @__PURE__ */
|
|
256
|
-
})).check(/* @__PURE__ */
|
|
257
|
-
booths: /* @__PURE__ */
|
|
258
|
-
exhibitors: /* @__PURE__ */
|
|
259
|
-
})).check(/* @__PURE__ */
|
|
247
|
+
var qt = /* @__PURE__ */ B({
|
|
248
|
+
x: /* @__PURE__ */ z(),
|
|
249
|
+
y: /* @__PURE__ */ z()
|
|
250
|
+
}), Jt = /* @__PURE__ */ B({
|
|
251
|
+
leftTop: qt,
|
|
252
|
+
rightBottom: qt
|
|
253
|
+
}), Yt = (/* @__PURE__ */ B({
|
|
254
|
+
name: /* @__PURE__ */ V(/* @__PURE__ */ Lt()),
|
|
255
|
+
externalId: /* @__PURE__ */ V(/* @__PURE__ */ Lt())
|
|
256
|
+
})).check(/* @__PURE__ */ Kt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Xt = (/* @__PURE__ */ B({
|
|
257
|
+
booths: /* @__PURE__ */ V(/* @__PURE__ */ Ht(Yt)),
|
|
258
|
+
exhibitors: /* @__PURE__ */ V(/* @__PURE__ */ Ht(Yt))
|
|
259
|
+
})).check(/* @__PURE__ */ Kt((e) => {
|
|
260
260
|
var t, n;
|
|
261
261
|
return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
|
|
262
|
-
}, "Selector must contain booths or exhibitors")),
|
|
262
|
+
}, "Selector must contain booths or exhibitors")), Zt = /* @__PURE__ */ V(/* @__PURE__ */ B({ padding: /* @__PURE__ */ V(/* @__PURE__ */ z()) }));
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
265
|
-
function
|
|
266
|
-
let t =
|
|
265
|
+
function Qt(e) {
|
|
266
|
+
let t = ot(e);
|
|
267
267
|
Object.values(t).length && (bt(t, !1), yt(t));
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
270
|
//#region src/utils/getMostFrequent.ts
|
|
271
|
-
function
|
|
271
|
+
function $t(e) {
|
|
272
272
|
let t = {}, n = 0, r;
|
|
273
273
|
return e.forEach((e) => {
|
|
274
274
|
t[e] = (t[e] || 0) + 1, t[e] > n && (n = t[e], r = e);
|
|
@@ -276,66 +276,66 @@ function Qt(e) {
|
|
|
276
276
|
}
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region src/services/multi-slug.ts
|
|
279
|
-
function
|
|
279
|
+
function en(e, t) {
|
|
280
280
|
if (!e.includes("&") && !e.includes("%26")) return null;
|
|
281
|
-
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !
|
|
281
|
+
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !p(e).includes("=");
|
|
282
282
|
return i.filter(a).length < 2 ? null : "?" + i.map((e) => a(e) && t(e) || e).join("&");
|
|
283
283
|
}
|
|
284
284
|
//#endregion
|
|
285
285
|
//#region src/services/url-dispatch.ts
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
-
|
|
286
|
+
var H = !1;
|
|
287
|
+
function tn() {
|
|
288
|
+
G(d()), m(() => k.layerStore.layersLoaded, () => {
|
|
289
289
|
let e = d().camera;
|
|
290
|
-
Object.keys(e).length && vn(
|
|
290
|
+
Object.keys(e).length && vn(b(e));
|
|
291
291
|
let t = d().visibility;
|
|
292
292
|
Object.keys(t).length && j.setVisibility(t);
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
295
|
+
function nn(e) {
|
|
296
|
+
at({
|
|
297
297
|
offHistory: e,
|
|
298
|
-
onNavigate:
|
|
299
|
-
}),
|
|
300
|
-
|
|
298
|
+
onNavigate: W
|
|
299
|
+
}), cn(), U(), m(() => k.layerStore.layersLoaded, () => {
|
|
300
|
+
k.urlFilterManager && !k.urlFilterManager.isInitialized && k.urlFilterManager.initialize(), W(), ve(_n), ve(K), j.viewerMode && (j.menu = !0);
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
function
|
|
304
|
-
|
|
303
|
+
function rn(e = "") {
|
|
304
|
+
P("?" + p(e.toString())), k.layerStore.layersLoaded ? an(e) : (U(), m(() => k.layerStore.layersLoaded, () => an(e)));
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function an(e) {
|
|
307
307
|
var t, n;
|
|
308
|
-
let r = "?" +
|
|
308
|
+
let r = "?" + p(e), a = fn(r), o = [...(t = a.intents) == null ? [] : t, ...we(r).intents], { intents: s = [], ...c } = De(r, {
|
|
309
309
|
visibility: a.visibility,
|
|
310
310
|
consent: a.consent,
|
|
311
311
|
intents: o
|
|
312
312
|
});
|
|
313
|
-
|
|
313
|
+
G(a), G(c);
|
|
314
314
|
let l = (n = a.consent) == null ? c.consent : n;
|
|
315
|
-
l &&
|
|
315
|
+
l && O(l), a.camera && Object.keys(a.camera).length && vn(b(a.camera)), a.visibility && Object.keys(a.visibility).length && j.setVisibility(a.visibility), cn(), W();
|
|
316
316
|
let u = [...o, ...s];
|
|
317
|
-
u.length && i(
|
|
317
|
+
u.length && i(k.fp, u);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
let e =
|
|
321
|
-
return
|
|
319
|
+
function U() {
|
|
320
|
+
let e = M();
|
|
321
|
+
return qe(e.length > 1 ? p(e.substring(1)) : "");
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
|
|
323
|
+
function W() {
|
|
324
|
+
H = !0;
|
|
325
325
|
try {
|
|
326
|
-
|
|
327
|
-
let { primary: e } =
|
|
328
|
-
!
|
|
326
|
+
Qt(new URLSearchParams(p(window.location.search)));
|
|
327
|
+
let { primary: e } = Ce(M()), t = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (j.heatmap || j.heatmapYah);
|
|
328
|
+
!U() && !t && on(e);
|
|
329
329
|
} finally {
|
|
330
|
-
|
|
330
|
+
H = !1;
|
|
331
331
|
}
|
|
332
|
-
|
|
332
|
+
K(), _n();
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
let t =
|
|
334
|
+
function on(e) {
|
|
335
|
+
let t = k.fp;
|
|
336
336
|
switch (e.type) {
|
|
337
337
|
case "kiosk":
|
|
338
|
-
e.enabled !== null &&
|
|
338
|
+
e.enabled !== null && ct(j, e.enabled);
|
|
339
339
|
return;
|
|
340
340
|
case "list":
|
|
341
341
|
t.showList(e.list);
|
|
@@ -352,13 +352,13 @@ function an(e) {
|
|
|
352
352
|
return;
|
|
353
353
|
case "route":
|
|
354
354
|
var n, r;
|
|
355
|
-
|
|
355
|
+
k.routeStore.setOnlyAccessible(e.accessible), k.routeStore.selectRoute(tt((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), k.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && k.uiState.setRouteTitle(e.title);
|
|
356
356
|
return;
|
|
357
357
|
case "selectExhibitors":
|
|
358
358
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
359
359
|
return;
|
|
360
360
|
case "ownedByFilters":
|
|
361
|
-
|
|
361
|
+
g.log("Skipping filter parameters in dispatchFromUrl (owned by URLFilterManager)");
|
|
362
362
|
return;
|
|
363
363
|
case "ownedByConfig": return;
|
|
364
364
|
case "select":
|
|
@@ -366,75 +366,75 @@ function an(e) {
|
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i =
|
|
371
|
-
if (
|
|
372
|
-
let e =
|
|
373
|
-
e &&
|
|
374
|
-
}
|
|
375
|
-
(n.length > 0 || r.length > 0) &&
|
|
376
|
-
|
|
369
|
+
function sn(e) {
|
|
370
|
+
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i = k.boothStore.booths.filter((e) => n.includes(e.externalId)), a = k.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), o = [...i, ...a];
|
|
371
|
+
if (it()) {
|
|
372
|
+
let e = $t(o.map((e) => e.layer.name));
|
|
373
|
+
e && k.fp.activateFloor({ name: e });
|
|
374
|
+
}
|
|
375
|
+
(n.length > 0 || r.length > 0) && k.fp.highlightEntities([...n, ...r]), k.layerStore.showPathWay(t), o.length > 0 && Fe(() => {
|
|
376
|
+
k.uiState.moveToRect = A.fromUnion(...o.map((e) => e.rect).filter(Boolean)), k.uiState.rollReset = !0;
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
let { oneShots: e } =
|
|
381
|
-
for (let t of e)
|
|
382
|
-
let t =
|
|
383
|
-
t !== null &&
|
|
379
|
+
function cn() {
|
|
380
|
+
let { oneShots: e } = Ce(M());
|
|
381
|
+
for (let t of e) ln(t);
|
|
382
|
+
let t = rt(M());
|
|
383
|
+
t !== null && P("?" + t), j.previewExhibitor && P("?" + j.previewExhibitor.slug), dn();
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function ln(e) {
|
|
386
386
|
switch (e.type) {
|
|
387
387
|
case "heatmap":
|
|
388
|
-
|
|
388
|
+
un(e.yah);
|
|
389
389
|
return;
|
|
390
390
|
case "blueDot": {
|
|
391
391
|
var t, n;
|
|
392
|
-
let r = new
|
|
393
|
-
|
|
392
|
+
let r = new Xe(e.x, e.y, (t = k.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
393
|
+
m(() => k.layerStore.layersLoaded, () => k.routeStore.selectCurrentPosition(r, !0, 1));
|
|
394
394
|
return;
|
|
395
395
|
}
|
|
396
396
|
case "viewerMode":
|
|
397
|
-
|
|
397
|
+
Se && (e.enabled ? localStorage.setItem(ke, "true") : (localStorage.removeItem(ke), localStorage.removeItem(ie)));
|
|
398
398
|
return;
|
|
399
399
|
case "previewMode":
|
|
400
|
-
|
|
400
|
+
Se && (e.enabled ? localStorage.setItem(_e, "true") : (localStorage.removeItem(_e), localStorage.removeItem(me)));
|
|
401
401
|
return;
|
|
402
402
|
case "uiScale":
|
|
403
|
-
e.scale === null ?
|
|
403
|
+
e.scale === null ? g.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : k.uiState.setUIScale(e.scale, !0);
|
|
404
404
|
return;
|
|
405
405
|
case "resetUiScale":
|
|
406
|
-
|
|
406
|
+
k.uiState.resetUIScale();
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
410
|
+
function un(e) {
|
|
411
|
+
ft(), e ? (j.heatmapYah = !0, j.monochrome = !0, j.hideLogoInBooth = !0, j.hideHeaderLogo = !0, j.disableBookmarked = !0) : j.heatmap = !0;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
let e =
|
|
415
|
-
let t =
|
|
413
|
+
function dn() {
|
|
414
|
+
let e = en(M(), (e) => {
|
|
415
|
+
let t = k.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
416
416
|
return t == null ? void 0 : t.name;
|
|
417
417
|
});
|
|
418
|
-
e !== null &&
|
|
418
|
+
e !== null && P(e);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
e.noOverlay !== void 0 && (j.hideOverlay = e.noOverlay), e.monochrome && (j.monochrome = !0), e.hideHeaderLogo && (j.hideHeaderLogo = !0), e.hideLogoInBooth && (j.hideLogoInBooth = !0), e.disableFeatured &&
|
|
420
|
+
function G(e) {
|
|
421
|
+
e.noOverlay !== void 0 && (j.hideOverlay = e.noOverlay), e.monochrome && (j.monochrome = !0), e.hideHeaderLogo && (j.hideHeaderLogo = !0), e.hideLogoInBooth && (j.hideLogoInBooth = !0), e.disableFeatured && k.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (j.disableBookmarked = !0), e.disableGps && k.routeStore.setGpsTrackingEnabled(!1), e.heatmap && a(e.heatmap) && un(e.heatmap.variant === "yah");
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
return
|
|
423
|
+
function fn(e) {
|
|
424
|
+
return ye(he, e).value;
|
|
425
425
|
}
|
|
426
|
-
var
|
|
427
|
-
function
|
|
428
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } = gn(), i =
|
|
429
|
-
if (
|
|
430
|
-
let a =
|
|
431
|
-
|
|
426
|
+
var pn = null, mn = null, hn = null;
|
|
427
|
+
function K() {
|
|
428
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = gn(), i = k.urlFilterManager.filterSearch();
|
|
429
|
+
if (H) return;
|
|
430
|
+
let a = Ae(e) || i;
|
|
431
|
+
M() !== a && (t !== pn || n !== mn || r !== hn ? ht(a) : P(a), pn = t, mn = n, hn = r);
|
|
432
432
|
}
|
|
433
433
|
function gn() {
|
|
434
434
|
let e = j.selectedExhibitor, t = j.selectedBooth, n = j.selectedEventItem, r = j.selectedRoute, i = j.selectedSpeaker, a = j.setKioskModeEnabled, o = j.list, s;
|
|
435
435
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
436
436
|
var c;
|
|
437
|
-
let e =
|
|
437
|
+
let e = k.routePlannerStore;
|
|
438
438
|
s = {
|
|
439
439
|
type: "planner",
|
|
440
440
|
fromBookmarks: e.source === "bookmarks",
|
|
@@ -445,9 +445,9 @@ function gn() {
|
|
|
445
445
|
var l;
|
|
446
446
|
s = {
|
|
447
447
|
type: "route",
|
|
448
|
-
to: r.to instanceof
|
|
449
|
-
from: r.from instanceof
|
|
450
|
-
accessible:
|
|
448
|
+
to: r.to instanceof N ? r.to.slug : void 0,
|
|
449
|
+
from: r.from instanceof N ? r.from.slug : void 0,
|
|
450
|
+
accessible: k.routeStore.onlyAccessible,
|
|
451
451
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
452
452
|
};
|
|
453
453
|
} else if (e) s = {
|
|
@@ -517,15 +517,15 @@ function gn() {
|
|
|
517
517
|
}
|
|
518
518
|
function _n() {
|
|
519
519
|
var e;
|
|
520
|
-
if (!
|
|
520
|
+
if (!ze) return;
|
|
521
521
|
let t = j.selectedExhibitor, n = j.selectedEventItem, r = j.selectedSpeaker, i = "";
|
|
522
|
-
t ? i = t.name : n ? i = n.name : r ? i = r.name : j.list.type === "search" && j.list.text ? i = "`" + (j.list.text || "") + "`" : j.list.type === "multi-point-tour" && j.tourTitle && (i = j.tourTitle), i.length && (i += " – "), i += (e = o(
|
|
522
|
+
t ? i = t.name : n ? i = n.name : r ? i = r.name : j.list.type === "search" && j.list.text ? i = "`" + (j.list.text || "") + "`" : j.list.type === "multi-point-tour" && j.tourTitle && (i = j.tourTitle), i.length && (i += " – "), i += (e = o(S, _)) == null ? c(window.location.hostname, _) : e, document.title = i;
|
|
523
523
|
}
|
|
524
524
|
function vn(e) {
|
|
525
525
|
try {
|
|
526
526
|
if (j.setMapSettings(e), e.z) {
|
|
527
|
-
let t =
|
|
528
|
-
t &&
|
|
527
|
+
let t = k.layerStore.layers.find((t) => t.name === e.z);
|
|
528
|
+
t && k.layerStore.updateVisibility(t, !0);
|
|
529
529
|
}
|
|
530
530
|
} catch (e) {
|
|
531
531
|
console.error("Failed to process map settings.", e);
|
|
@@ -534,7 +534,7 @@ function vn(e) {
|
|
|
534
534
|
//#endregion
|
|
535
535
|
//#region src/store/details-events.ts
|
|
536
536
|
function yn() {
|
|
537
|
-
return
|
|
537
|
+
return je(() => j.details, () => {
|
|
538
538
|
var e;
|
|
539
539
|
if (!j.onDetails) return;
|
|
540
540
|
if (!j.details) {
|
|
@@ -542,17 +542,17 @@ function yn() {
|
|
|
542
542
|
return;
|
|
543
543
|
}
|
|
544
544
|
let t = j.details;
|
|
545
|
-
if (
|
|
545
|
+
if (nt.EXPO === "wineparis" && (t instanceof st && (t = t.booths[0]), !t)) return;
|
|
546
546
|
let n = null, r = [];
|
|
547
|
-
if (t instanceof
|
|
547
|
+
if (t instanceof st) n = "exhibitor", r = t.booths.map((e) => e.name).sort((e, t) => {
|
|
548
548
|
var n, r;
|
|
549
|
-
return e == ((n =
|
|
549
|
+
return e == ((n = k.routeStore.tempToBooth) == null ? void 0 : n.name) ? -1 : +(t == ((r = k.routeStore.tempToBooth) == null ? void 0 : r.name));
|
|
550
550
|
});
|
|
551
|
-
else if (t instanceof
|
|
552
|
-
else if (t instanceof
|
|
551
|
+
else if (t instanceof N) n = "booth", r = [t.name];
|
|
552
|
+
else if (t instanceof F) {
|
|
553
553
|
var i, a;
|
|
554
554
|
n = "route", r = [(i = t.from) == null ? void 0 : i.name, (a = t.to) == null ? void 0 : a.name].filter((e) => !!e);
|
|
555
|
-
} else t instanceof
|
|
555
|
+
} else t instanceof lt && (n = "category", r = t.exhibitors.map((e) => e.booths.map((e) => e.name)).flat());
|
|
556
556
|
let o = t, s = {
|
|
557
557
|
type: n,
|
|
558
558
|
name: o == null ? void 0 : o.name,
|
|
@@ -562,7 +562,7 @@ function yn() {
|
|
|
562
562
|
};
|
|
563
563
|
j.onDetails({
|
|
564
564
|
...s,
|
|
565
|
-
...n === "route" ? { routeInfo: (e =
|
|
565
|
+
...n === "route" ? { routeInfo: (e = k.routeStore.routeInfo) == null ? void 0 : e } : {}
|
|
566
566
|
});
|
|
567
567
|
});
|
|
568
568
|
}
|
|
@@ -615,7 +615,7 @@ function q(e) {
|
|
|
615
615
|
entity: e.entity,
|
|
616
616
|
isEnded: e.isEnded
|
|
617
617
|
};
|
|
618
|
-
case
|
|
618
|
+
case pe: return {
|
|
619
619
|
id: e.id,
|
|
620
620
|
name: Y(e.name),
|
|
621
621
|
entity: e.entity
|
|
@@ -640,35 +640,35 @@ function Y(e) {
|
|
|
640
640
|
}
|
|
641
641
|
//#endregion
|
|
642
642
|
//#region src/floorplan.ready.tsx
|
|
643
|
-
var X =
|
|
644
|
-
(0,
|
|
643
|
+
var X = Re(), Z = (0, Dt.default)("efp:api");
|
|
644
|
+
(0, kt.install)();
|
|
645
645
|
var bn = class extends l {
|
|
646
646
|
constructor(...e) {
|
|
647
647
|
super(...e), this.root = void 0, this.disposeDetailsEvents = void 0, this.disposeBoothHitTest = void 0;
|
|
648
648
|
}
|
|
649
649
|
init() {
|
|
650
|
-
|
|
650
|
+
tn(), this.ignoreQuery || nn(this.offHistory), Ye("load"), mt(k), k.fp = this, this.disposeDetailsEvents = yn(), this.disposeBoothHitTest = pt(), O(this.consent), E(D.Load, ""), this.root = (0, Ot.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(Et, { children: /* @__PURE__ */ (0, X.jsx)(Je, {
|
|
651
651
|
offHistory: this.offHistory,
|
|
652
652
|
consent: this.consent
|
|
653
|
-
}) })),
|
|
653
|
+
}) })), E(D.Rendered, ""), je(() => k.layerStore.layersLoaded, () => {
|
|
654
654
|
let e = this.renderTarget.getRootNode(), t = e instanceof ShadowRoot ? e.host : this.renderTarget.parentElement;
|
|
655
655
|
for (document.querySelectorAll(".expofp-floorplan-loader").forEach((e) => e.remove()); t && this.element.firstChild && this.element.firstChild !== t;) this.element.removeChild(this.element.firstChild);
|
|
656
|
-
if (this.resolveReady(), !
|
|
656
|
+
if (this.resolveReady(), !k.initialized) {
|
|
657
657
|
var n;
|
|
658
658
|
(n = this.onInit) == null || n.call(this, this);
|
|
659
659
|
}
|
|
660
|
-
|
|
660
|
+
k.initialized = !0;
|
|
661
661
|
});
|
|
662
|
-
let e =
|
|
663
|
-
e && import("./bootIntercom-
|
|
662
|
+
let e = Ft(S);
|
|
663
|
+
e && import("./bootIntercom-BuwPFeWn.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 = k.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
671
|
+
k.selectBooth(t);
|
|
672
672
|
}
|
|
673
673
|
selectExhibitor(e) {
|
|
674
674
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -676,35 +676,35 @@ var bn = class extends l {
|
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
678
|
if (!(e != null && e.length)) {
|
|
679
|
-
|
|
679
|
+
k.uiState.menu = !1, k.searchStore.resetSearchBox(), k.uiState.details = null;
|
|
680
680
|
return;
|
|
681
681
|
}
|
|
682
|
-
let t =
|
|
682
|
+
let t = k.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
|
+
k.selectExhibitor(t[0]), k.moveToList([t[0]]);
|
|
686
686
|
return;
|
|
687
687
|
}
|
|
688
|
-
let n =
|
|
689
|
-
n &&
|
|
688
|
+
let n = $t(t.flatMap((e) => e.booths.map((e) => e.layer)).map((e) => e.description));
|
|
689
|
+
n && k.layerStore.updateVisibility(n, !0), k.uiState.menu = !1, k.searchStore.resetSearchBox(), k.uiState.details = null, k.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
|
+
}, k.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"), k.boothStore.highlightedByExternalIds = [], k.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"), k.exhibitorStore.highlightedByExternalIds = [], k.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 } = x(e);
|
|
707
|
+
k.boothStore.highlightedByExternalIds = [...t], k.exhibitorStore.highlightedByExternalIds = [...n];
|
|
708
708
|
}
|
|
709
709
|
selectRoute(e, t) {
|
|
710
710
|
if (Array.isArray(e)) {
|
|
@@ -714,10 +714,10 @@ var bn = class extends l {
|
|
|
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
|
+
k.routeStore.selectRoute(new F(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"), k.routeStore.selectRoute(new F(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,7 +730,7 @@ var bn = class extends l {
|
|
|
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: Qe(e.map((e) => [e.name, {
|
|
734
734
|
x: e.rect.center.x,
|
|
735
735
|
y: e.rect.center.y
|
|
736
736
|
}])) }));
|
|
@@ -738,11 +738,11 @@ var bn = class extends l {
|
|
|
738
738
|
selectCurrentPosition(e, t, n) {
|
|
739
739
|
var r;
|
|
740
740
|
let i = w(e.x) && w(e.y), a = w(e.lng) && w(e.lat);
|
|
741
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
741
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), k.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 = k.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 bn = class extends l {
|
|
|
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 = dt("bookmarked"), i = {
|
|
765
765
|
exhibitor: {
|
|
766
766
|
existingIds: new Set(r.exhibitors || []),
|
|
767
|
-
finder: (e) =>
|
|
768
|
-
replacer: (e) =>
|
|
767
|
+
finder: (e) => k.exhibitorStore.findExhibitor(e),
|
|
768
|
+
replacer: (e) => k.exhibitorStore.replaceBookmarked(e)
|
|
769
769
|
},
|
|
770
770
|
event: {
|
|
771
771
|
existingIds: new Set(r.events || []),
|
|
772
|
-
finder: (e) =>
|
|
773
|
-
replacer: (e) =>
|
|
772
|
+
finder: (e) => k.eventStore.findByNameOrSlug(e),
|
|
773
|
+
replacer: (e) => k.eventStore.replaceBookmarked(e)
|
|
774
774
|
},
|
|
775
775
|
speaker: {
|
|
776
776
|
existingIds: new Set(r.speakers || []),
|
|
777
|
-
finder: (e) =>
|
|
778
|
-
replacer: (e) =>
|
|
777
|
+
finder: (e) => k.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
778
|
+
replacer: (e) => k.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 = k.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) => k.boothStore.replaceBookmarked(e)
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
789
|
e.forEach((e) => {
|
|
@@ -803,16 +803,16 @@ var bn = class extends l {
|
|
|
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 = dt("visited"), i = {
|
|
807
807
|
exhibitor: {
|
|
808
808
|
existingIds: new Set(r.exhibitors || []),
|
|
809
|
-
finder: (e) =>
|
|
810
|
-
replacer: (e) =>
|
|
809
|
+
finder: (e) => k.exhibitorStore.findExhibitor(e),
|
|
810
|
+
replacer: (e) => k.exhibitorStore.replaceVisited(e)
|
|
811
811
|
},
|
|
812
812
|
event: {
|
|
813
813
|
existingIds: new Set(r.events || []),
|
|
814
|
-
finder: (e) =>
|
|
815
|
-
replacer: (e) =>
|
|
814
|
+
finder: (e) => k.eventStore.findByNameOrSlug(e),
|
|
815
|
+
replacer: (e) => k.eventStore.replaceVisited(e)
|
|
816
816
|
}
|
|
817
817
|
};
|
|
818
818
|
e.forEach((e) => {
|
|
@@ -827,94 +827,94 @@ var bn = class extends l {
|
|
|
827
827
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
828
828
|
return;
|
|
829
829
|
}
|
|
830
|
-
|
|
830
|
+
k.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"), k.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"), k.uiState.debugCircles = e;
|
|
837
837
|
}
|
|
838
838
|
checkRoutes() {
|
|
839
|
-
|
|
839
|
+
k.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"), k.layerStore.updateVisibility(e, t);
|
|
843
843
|
}
|
|
844
844
|
getCenterCoordinates() {
|
|
845
|
-
return
|
|
845
|
+
return k.fp.getCenterCoordinates();
|
|
846
846
|
}
|
|
847
847
|
exhibitorsList() {
|
|
848
|
-
return
|
|
848
|
+
return k.exhibitorStore.exhibitors.map((e) => q(e));
|
|
849
849
|
}
|
|
850
850
|
boothsList() {
|
|
851
|
-
return
|
|
851
|
+
return k.boothStore.booths.map((e) => q(e));
|
|
852
852
|
}
|
|
853
853
|
categoriesList() {
|
|
854
|
-
return
|
|
854
|
+
return k.categoryStore.categories.map((e) => q(e));
|
|
855
855
|
}
|
|
856
856
|
selectCategory(e) {
|
|
857
857
|
if (e == null || typeof e != "string") {
|
|
858
|
-
|
|
858
|
+
k.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 = k.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
|
+
k.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 = k.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(() => k.selectBooth(r), 250);
|
|
879
879
|
return;
|
|
880
880
|
}
|
|
881
|
-
let i =
|
|
881
|
+
let i = k.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
|
+
k.selectEventItem(i, !0);
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
|
-
let a =
|
|
889
|
+
let a = k.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(() => k.clickExhibitor(a), 250);
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
897
|
-
let o =
|
|
897
|
+
let o = k.categoryStore.categories.find((e) => e.slug === t);
|
|
898
898
|
if (o) {
|
|
899
|
-
|
|
899
|
+
k.selectCategory(o);
|
|
900
900
|
return;
|
|
901
901
|
}
|
|
902
|
-
let s =
|
|
902
|
+
let s = k.speakerStore.findBySlug(t);
|
|
903
903
|
if (s) {
|
|
904
|
-
|
|
904
|
+
k.selectSpeaker(s, !0);
|
|
905
905
|
return;
|
|
906
906
|
}
|
|
907
|
-
t.includes("heatmap=true") ||
|
|
907
|
+
t.includes("heatmap=true") || k.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: () => k.selectBookmarks(),
|
|
912
|
+
visited: () => k.selectVisited(),
|
|
913
|
+
sessions: () => k.selectSessions(),
|
|
914
|
+
exhibitors: () => k.selectExhibitors(),
|
|
915
|
+
speakers: () => k.selectSpeakers(),
|
|
916
|
+
tours: () => k.selectTours(),
|
|
917
|
+
language: () => k.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 bn = class extends l {
|
|
|
927
927
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
928
928
|
return;
|
|
929
929
|
}
|
|
930
|
-
let t =
|
|
931
|
-
t ?
|
|
930
|
+
let t = k.toursStore.getTourById(e);
|
|
931
|
+
t ? k.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), k.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 ? C(e.from) : null;
|
|
939
|
+
if (e.fromBookmarks) k.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
940
940
|
else {
|
|
941
941
|
var n;
|
|
942
|
-
|
|
942
|
+
k.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
startBuildRoute() {
|
|
946
|
-
|
|
946
|
+
k.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"), rn(e);
|
|
950
950
|
}
|
|
951
951
|
getVisibility() {
|
|
952
|
-
return
|
|
952
|
+
return k.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"), k.uiState.setVisibility(e);
|
|
956
956
|
}
|
|
957
957
|
findLocation() {
|
|
958
|
-
|
|
958
|
+
k.routeStore.findLocation();
|
|
959
959
|
}
|
|
960
960
|
zoomIn() {
|
|
961
|
-
|
|
961
|
+
k.uiState.zoomIn();
|
|
962
962
|
}
|
|
963
963
|
zoomOut() {
|
|
964
|
-
|
|
964
|
+
k.uiState.zoomOut();
|
|
965
965
|
}
|
|
966
966
|
switchView() {
|
|
967
|
-
|
|
967
|
+
k.maplibreStore.activateMaplibre();
|
|
968
968
|
}
|
|
969
969
|
setCamera(e) {
|
|
970
970
|
Z("setCamera called with camera=%O", e);
|
|
971
|
-
let t =
|
|
971
|
+
let t = Me.safeParse(e);
|
|
972
972
|
if (!t.success) {
|
|
973
973
|
$("setCamera", t.error.message, "EFP001B00");
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
|
-
|
|
976
|
+
k.uiState.setMapSettings(b(t.data));
|
|
977
977
|
}
|
|
978
978
|
getCamera() {
|
|
979
|
-
return
|
|
979
|
+
return Ke(k.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 = Xt.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 = Zt.safeParse(t);
|
|
989
989
|
if (!r.success) {
|
|
990
990
|
$("zoomTo", r.error.message, "EFP001601");
|
|
991
991
|
return;
|
|
@@ -996,7 +996,7 @@ var bn = class extends l {
|
|
|
996
996
|
getBounds(e) {
|
|
997
997
|
var t, n;
|
|
998
998
|
Z("getBounds called with selectors=%O", e);
|
|
999
|
-
let r =
|
|
999
|
+
let r = Xt.safeParse(e);
|
|
1000
1000
|
if (!r.success) {
|
|
1001
1001
|
$("getBounds", r.error.message, "EFP001400");
|
|
1002
1002
|
return;
|
|
@@ -1004,15 +1004,15 @@ var bn = class extends l {
|
|
|
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 = k.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = k.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 = k.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = k.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 = A.fromUnion(...i);
|
|
1016
1016
|
return {
|
|
1017
1017
|
leftTop: {
|
|
1018
1018
|
x: a.min.x,
|
|
@@ -1026,37 +1026,37 @@ var bn = class extends l {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
fitBounds(e, t) {
|
|
1028
1028
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1029
|
-
|
|
1029
|
+
k.uiState.fitBounds();
|
|
1030
1030
|
return;
|
|
1031
1031
|
}
|
|
1032
|
-
let n =
|
|
1032
|
+
let n = Jt.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 = Zt.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 = A.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
|
+
k.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 = C(e)) == null ? void 0 : t.rect;
|
|
1055
1055
|
return n ? Sn.fromBox(n) : void 0;
|
|
1056
1056
|
}
|
|
1057
1057
|
convertToGeo(e, t) {
|
|
1058
1058
|
var n;
|
|
1059
|
-
if (!(!(
|
|
1059
|
+
if (!(!(T == null || (n = T.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 bn = class extends l {
|
|
|
1064
1064
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1065
1065
|
return;
|
|
1066
1066
|
}
|
|
1067
|
-
return
|
|
1067
|
+
return $e(e, t, T.properties.config);
|
|
1068
1068
|
}
|
|
1069
1069
|
getGeoConfig() {
|
|
1070
1070
|
var e, t;
|
|
1071
|
-
let n =
|
|
1071
|
+
let n = T == null || (e = T.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 bn = class extends l {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
releaseResources() {
|
|
1080
1080
|
var e, t;
|
|
1081
|
-
window.removeEventListener("error", n), (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", n), (e = this.disposeDetailsEvents) == null || e.call(this), this.disposeDetailsEvents = void 0, (t = this.disposeBoothHitTest) == null || t.call(this), this.disposeBoothHitTest = void 0, k.maplibreStore.dispose(), gt(), _t(), Ze(), et(), 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"), k.fuzzySearchEngineStore.loadEngine().then(() => (k.searchStore.selectSearch(e), k.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 k.layerStore.floors.map((e) => ({
|
|
1091
1091
|
name: e.name,
|
|
1092
1092
|
shortName: e.shortName,
|
|
1093
1093
|
description: e.description,
|
|
@@ -1124,70 +1124,70 @@ var bn = class extends l {
|
|
|
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 ? x(t) : {
|
|
1128
1128
|
boothExternalIds: [],
|
|
1129
1129
|
exhibitorExternalIds: []
|
|
1130
1130
|
};
|
|
1131
|
-
|
|
1131
|
+
sn({
|
|
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 }), k.layerStore.showPathWay(e), k.uiState.setPathwayOnlyMode(!0);
|
|
1139
|
+
let n = k.layerStore.findLayer(e), r = k.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
|
+
k.uiState.moveToRect = e.clone();
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
1146
|
hidePathways() {
|
|
1147
|
-
this.highlightBooths([]),
|
|
1147
|
+
this.highlightBooths([]), k.layerStore.hidePathways(), k.uiState.setPathwayOnlyMode(!1);
|
|
1148
1148
|
}
|
|
1149
1149
|
showSearch() {
|
|
1150
|
-
|
|
1150
|
+
k.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 (!Oe(n)) {
|
|
1156
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${Te().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1157
1157
|
return;
|
|
1158
1158
|
}
|
|
1159
|
-
|
|
1159
|
+
Ee(n);
|
|
1160
1160
|
}
|
|
1161
1161
|
isGpsTrackingEnabled() {
|
|
1162
|
-
return
|
|
1162
|
+
return k.routeStore.gpsEnabled;
|
|
1163
1163
|
}
|
|
1164
1164
|
setGpsTrackingEnabled(e) {
|
|
1165
|
-
|
|
1165
|
+
k.routeStore.setGpsTrackingEnabled(e);
|
|
1166
1166
|
}
|
|
1167
1167
|
deselectCurrentPosition() {
|
|
1168
|
-
|
|
1168
|
+
k.routeStore.selectCurrentPosition(null, !1);
|
|
1169
1169
|
}
|
|
1170
1170
|
deselectRoute() {
|
|
1171
|
-
|
|
1171
|
+
k.routeStore.selectRoute(null), k.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([]), k.uiState.kioskData && k.resetCameraFn) {
|
|
1175
1175
|
var e;
|
|
1176
|
-
(e =
|
|
1176
|
+
(e = k.resetCameraFn) == null || e.call(k);
|
|
1177
1177
|
} else this.fitBounds();
|
|
1178
1178
|
}
|
|
1179
1179
|
selectAccessibleRoute(e) {
|
|
1180
|
-
|
|
1180
|
+
k.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" ? C(e) : k.routeStore.getNearestBooth(e);
|
|
1185
1185
|
}
|
|
1186
1186
|
var xn = 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}`), k.fp.disableRuntimeAlerts) return;
|
|
1190
|
+
k.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
|
xn = window.setTimeout(() => {
|
|
1205
1205
|
let e = async () => {
|
|
1206
|
-
|
|
1206
|
+
k.uiState.globalErrorMessages.length > 0 && (k.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1207
1207
|
};
|
|
1208
1208
|
e();
|
|
1209
1209
|
}, o);
|