@expofp/floorplan 3.24.2 → 3.25.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-CT9Bti9C.js → Button-_J1eNxua.js} +5 -5
- package/dist/browser/{CookieConsent-BUaaCjVv.js → CookieConsent-j0awTNGB.js} +7 -7
- package/dist/browser/{Debug-CuT7wVcD.js → Debug-BAPQwOXG.js} +7 -7
- package/dist/browser/{Demo-CypZUOYb.js → Demo-B0TxEACn.js} +9 -9
- package/dist/browser/{Free-Cpbw3FP6.js → Free-81RG6a4l.js} +9 -9
- package/dist/browser/{GalleryContainer-DX9JoE1-.js → GalleryContainer-CVplb5Pc.js} +10 -10
- package/dist/browser/{GpsLoader-BMBhGhOH.js → GpsLoader-oni76hrd.js} +10 -10
- package/dist/browser/{KioskStore-BKn-AB-4.js → KioskStore-Cdb5PpF9.js} +4 -4
- package/dist/browser/{MaplibreAdapter-C7PhujTO.js → MaplibreAdapter-BfpIMgGx.js} +292 -245
- package/dist/browser/{ModalContainer-Bwo9p8q9.js → ModalContainer-pEV9ZmkZ.js} +10 -10
- package/dist/browser/{PermissionNotice-Dyrq3hyS.js → PermissionNotice-CoXJjFWX.js} +6 -6
- package/dist/browser/{SetKioskMode-CcoLQ3g5.js → SetKioskMode-BUFIP2qd.js} +8 -8
- package/dist/browser/{ShowKiosk-1PcWb3Yn.js → ShowKiosk-BHGX8mhm.js} +10 -10
- package/dist/browser/{ViewerMenuPanel-CF8_jUkV.js → ViewerMenuPanel-Cr826oJ6.js} +9 -9
- package/dist/browser/{add-debug-secret-listener-DtSLeszR.js → add-debug-secret-listener-C0cY_TFM.js} +1 -1
- package/dist/browser/{adopt-global-settings-jN08Mvz2.js → adopt-global-settings-Dq8ryk31.js} +9 -9
- package/dist/browser/{boolean-editor-BbQkdkV8.js → boolean-editor-CRK3sDV3.js} +9 -9
- package/dist/browser/{bootIntercom-tmWxI34Q.js → bootIntercom-CHy1kgnP.js} +2 -2
- package/dist/browser/{booth-by-xy-Bn7vAiW7.js → booth-by-xy-BQVcyNx8.js} +6 -6
- package/dist/browser/bundle.json +65 -65
- package/dist/browser/{classnames-z85nK_ce.js → classnames-_GyL4GDv.js} +2 -2
- package/dist/browser/{client-BzyumV4c.js → client-B5zwzSQP.js} +4 -4
- package/dist/browser/{components-tvzV2Bmo.js → components-CBQYRwuC.js} +36 -36
- package/dist/browser/{debug-overlay-C3yeye6L.js → debug-overlay-DiLNtKlz.js} +10 -10
- package/dist/browser/{debug-ui-CVhF-KaS.js → debug-ui-gigsjIuv.js} +6 -6
- package/dist/browser/{dist-BvldLH3X.js → dist-B0X-IEcM.js} +5 -5
- package/dist/browser/{dist-DhmiIFdt.js → dist-jT3iIwH-.js} +6 -6
- package/dist/browser/{dist-4gxnxibz.js → dist-yT7nNd5R.js} +3 -3
- package/dist/browser/{efp-debug-init-XDZpnwBR.js → efp-debug-init-B5YMdXnN.js} +3 -3
- package/dist/browser/{enum-editor-CO0TOOg_.js → enum-editor-DvCO-CYQ.js} +4 -4
- package/dist/browser/{es5-BONrcV9Q.js → es5-BmsIRBXA.js} +2 -2
- package/dist/browser/{event-not-found-BNlgAobh.js → event-not-found-fcpAoExJ.js} +1 -1
- package/dist/browser/{exports-CahN8vwa.js → exports-CnuKa6hu.js} +1 -1
- package/dist/browser/{favicon-BEwJyQw4.js → favicon-CZw845Nj.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BvmmPMO4.js → fetch-retry.umd-CBMEcoUE.js} +2 -2
- package/dist/browser/{flex-Bhy5-dRM.js → flex-DixRjO_F.js} +5 -5
- package/dist/browser/{floorplan.loader-Bm0C_zg8.js → floorplan.loader-CsKKZnNp.js} +683 -662
- package/dist/browser/{floorplan.ready-DHOYde8O.js → floorplan.ready-Bf3GEi21.js} +325 -339
- package/dist/browser/{fuse-BjPDB9cu.js → fuse-DFd9yKfL.js} +2 -2
- package/dist/browser/{i18n-Bsa4AB8X.js → i18n-BexA6ZBP.js} +5 -5
- package/dist/browser/index.js +16 -16
- package/dist/browser/{index.module-DkCBvLVi.js → index.module-hIW18pWv.js} +4 -4
- package/dist/browser/{integrateKiosk-BCZ-cnik.js → integrateKiosk-CHM4p0lX.js} +4 -4
- package/dist/browser/{is-webview-BAAplPh1.js → is-webview-8nXIDYh1.js} +1 -1
- package/dist/browser/{jsx-runtime-DkDpaV-S.js → jsx-runtime-D38XzQ2p.js} +2 -2
- package/dist/browser/{kiosk-record-x3W__3xS.js → kiosk-record-De-vXYCY.js} +1 -1
- package/dist/browser/{lib-BpicJGKy.js → lib-D8TLRwKe.js} +3 -3
- package/dist/browser/{loadImage-4_-hyOhx.js → loadImage-COkvpk1U.js} +4 -4
- package/dist/browser/{logDeviceInfo-ChUkf64r.js → logDeviceInfo-CfoVdcPV.js} +9 -9
- package/dist/browser/{main-CD7xHGU2.js → main-DOWrZS6x.js} +1 -1
- package/dist/browser/{mobx-BKpyIsVh.js → mobx-CCEGS5Bv.js} +4 -4
- package/dist/browser/{optional-boolean-editor-B4R2CbJ8.js → optional-boolean-editor-DNZEf74O.js} +3 -3
- package/dist/browser/{optional-enum-editor-ChNfPhsB.js → optional-enum-editor-CGnDO1mh.js} +4 -4
- package/dist/browser/{optional-string-editor-D8tXuwta.js → optional-string-editor-C4uY45q3.js} +4 -4
- package/dist/browser/{particles.min-FpEw6-hB.js → particles.min-orMOzlvG.js} +2 -2
- package/dist/browser/{react-Q3vwxMD4.js → react-D4oi2zZ_.js} +2 -2
- package/dist/browser/{react-dom-CwvsoFuP.js → react-dom-CLXWzmt1.js} +3 -3
- package/dist/browser/{rolldown-runtime-D85GpSbU.js → rolldown-runtime-C1NynmuH.js} +1 -1
- package/dist/browser/{select-IG7dubaJ.js → select-D6Y0QY_4.js} +10 -10
- package/dist/browser/{settings-DmxMI46b.js → settings-CI7KY77P.js} +2 -2
- package/dist/browser/{settings-item-yCIWkzxL.js → settings-item-CSNxKqBD.js} +6 -6
- package/dist/browser/{store-lvPK1tXK.js → store-CVqBbCq4.js} +11 -11
- package/dist/browser/{string-editor-HCbCYvjk.js → string-editor-AyKbVKjB.js} +4 -4
- package/dist/browser/{text-field-ZCkMcWLU.js → text-field-DKJXuGm9.js} +5 -5
- package/dist/browser/{theme-BwOMq2a4.js → theme-yzBklex5.js} +8 -8
- package/dist/browser/{ui-CxwXSxPR.js → ui-Dq3Q-Rqt.js} +8 -8
- package/dist/browser/{useRenderTarget-D3FPy6Mq.js → useRenderTarget-BYqw3tDW.js} +4 -4
- package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +6 -0
- package/dist/esm/components/Maplibre/MaplibreWrapper.js +1 -1
- package/dist/esm/components/Maplibre/utils/map-helpers.js +1 -1
- package/dist/esm/components/Maplibre/utils/pmtiles-range-fallback.d.ts +53 -0
- package/dist/esm/components/Maplibre/utils/pmtiles-range-fallback.js +1 -0
- package/dist/esm/components/Maplibre/utils/resolve-map-style.d.ts +1 -1
- package/dist/esm/components/Maplibre/utils/resolve-map-style.js +1 -1
- package/dist/esm/floorplan.loader.d.ts +30 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.d.ts +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/load.js +2 -2
- package/dist/esm/types.d.ts +29 -0
- package/package.json +9 -9
|
@@ -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.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.25.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] = "02bff2e5-59fe-407e-854a-bb0adcb6413e", e._sentryDebugIdIdentifier = "sentry-dbid-02bff2e5-59fe-407e-854a-bb0adcb6413e");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./floorplan.loader-
|
|
11
|
-
import { $ as c, At as l, C as u, Ct as d, Dt as f, Et as ee, Ft as te, G as ne, H as re, It as ie, Lt as
|
|
12
|
-
import { s as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
16
|
-
import { C as
|
|
17
|
-
import { t as
|
|
18
|
-
import { i as
|
|
19
|
-
import { C as
|
|
20
|
-
import { n as
|
|
9
|
+
import { r as e } from "./rolldown-runtime-C1NynmuH.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-CsKKZnNp.js";
|
|
11
|
+
import { $ as c, At as l, C as u, Ct as d, Dt as f, Et as ee, Ft as te, G as ne, H as re, It as ie, Lt as p, Mt as ae, Nt as oe, Ot as se, Pt as ce, Rt as m, St as le, Tt as ue, U as de, V as fe, _t as pe, bt as me, ct as he, dt as h, f as ge, ft as _e, gt as ve, jt as ye, kt as be, l as g, lt as xe, mt as Se, n as Ce, nt as we, o as Te, pt as Ee, r as De, v as Oe, wt as ke, xt as Ae, y as je, yt as Me, zt as _ } from "./i18n-BexA6ZBP.js";
|
|
12
|
+
import { s as Ne } from "./efp-debug-init-B5YMdXnN.js";
|
|
13
|
+
import { t as Pe } from "./react-D4oi2zZ_.js";
|
|
14
|
+
import { t as Fe } from "./jsx-runtime-D38XzQ2p.js";
|
|
15
|
+
import { r as v } from "./loadImage-COkvpk1U.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-CnuKa6hu.js";
|
|
17
|
+
import { t as Ve } from "./client-B5zwzSQP.js";
|
|
18
|
+
import { i as He, n as Ue, r as x, t as We } from "./components-CBQYRwuC.js";
|
|
19
|
+
import { C as Ge, G as Ke, H as qe, I as Je, J as S, L as C, P as Ye, Q as Xe, S as w, Sn as Ze, T, U as E, V as D, Z as Qe, Zt as O, at as $e, c as k, ct as A, dn as j, dt as et, en as tt, ft as nt, hn as M, it as rt, l as N, ot as it, q as at, rt as P, st as ot, tn as st, ut as ct, v as lt, w as F, x as ut } from "./store-CVqBbCq4.js";
|
|
20
|
+
import { n as dt, t as ft } from "./integrateKiosk-CHM4p0lX.js";
|
|
21
21
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
22
|
-
function
|
|
22
|
+
function pt(e = {}) {
|
|
23
23
|
let r = n.document, i = (r == null ? void 0 : r.head) || (r == null ? void 0 : r.body);
|
|
24
24
|
if (!i) {
|
|
25
|
-
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 yt(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 yt(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 mt(e) {
|
|
59
59
|
let t = e.match(/^([^.]+)/);
|
|
60
60
|
return t !== null && parseInt(t[0]) >= 17;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ht(e, t) {
|
|
63
63
|
let n = /* @__PURE__ */ new WeakSet();
|
|
64
64
|
function r(e, t) {
|
|
65
65
|
if (!n.has(e)) {
|
|
@@ -69,25 +69,25 @@ function xt(e, t) {
|
|
|
69
69
|
}
|
|
70
70
|
r(e, t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
72
|
+
function gt(e, { componentStack: t }, n) {
|
|
73
|
+
if (mt(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, ht(e, n);
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return ze(e, n);
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/debug-build.js
|
|
81
|
-
var
|
|
81
|
+
var _t = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = {
|
|
82
82
|
componentStack: null,
|
|
83
83
|
error: null,
|
|
84
84
|
eventId: null
|
|
85
|
-
},
|
|
85
|
+
}, vt = 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 && pt({
|
|
91
91
|
...e.dialogOptions,
|
|
92
92
|
eventId: this._lastEventId
|
|
93
93
|
});
|
|
@@ -95,13 +95,13 @@ var Ct = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, j = {
|
|
|
95
95
|
}
|
|
96
96
|
componentDidCatch(e, t) {
|
|
97
97
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
98
|
-
|
|
98
|
+
Ie((s) => {
|
|
99
99
|
r && r(s, e, n);
|
|
100
|
-
let c =
|
|
100
|
+
let c = gt(e, t, { mechanism: {
|
|
101
101
|
handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
|
|
102
102
|
type: "auto.function.react.error_boundary"
|
|
103
103
|
} });
|
|
104
|
-
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog &&
|
|
104
|
+
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && pt({
|
|
105
105
|
...o,
|
|
106
106
|
eventId: c
|
|
107
107
|
})), this.setState({
|
|
@@ -117,37 +117,37 @@ var Ct = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, j = {
|
|
|
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 && _t && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
138
|
-
function
|
|
137
|
+
}, yt = /* @__PURE__ */ e(Ne(), 1), bt = Ve(), xt = Ze();
|
|
138
|
+
function St(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(fe), r = g ? window.localStorage.getItem(fe) : null, i = n == null ? r : n;
|
|
141
|
+
return i == null ? g && Xe() != null || Object.keys((t = e.kiosk) == null ? {} : t).length > 0 : i === "1";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ct() {
|
|
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 wt() {
|
|
148
|
+
return Ct() ? window.location.hostname.split(".")[0] : "main";
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Tt(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 jt(e) {
|
|
|
156
156
|
}
|
|
157
157
|
return "Active";
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Et() {
|
|
160
160
|
return !1;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Dt(e) {
|
|
163
163
|
return e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
let t =
|
|
168
|
-
subDomain:
|
|
169
|
-
subscriptionStatus:
|
|
165
|
+
function Ot(e) {
|
|
166
|
+
if (Et() || !Ct() || St(e) || !window.navigator.onLine) return null;
|
|
167
|
+
let t = Dt({
|
|
168
|
+
subDomain: wt(),
|
|
169
|
+
subscriptionStatus: Tt(e)
|
|
170
170
|
});
|
|
171
171
|
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
175
|
-
var
|
|
175
|
+
var R = /*@__PURE__*/ m("ZodMiniType", (e, t) => {
|
|
176
176
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
177
|
-
l.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) =>
|
|
177
|
+
l.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => ye(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => oe(e, t, n), e.parseAsync = async (t, n) => ae(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ce(e, t, n), e.check = (...n) => {
|
|
178
178
|
var r;
|
|
179
179
|
return e.clone({
|
|
180
180
|
...t,
|
|
@@ -185,94 +185,94 @@ var M = /*@__PURE__*/ p("ZodMiniType", (e, t) => {
|
|
|
185
185
|
} } : e)]
|
|
186
186
|
}, { parent: !0 });
|
|
187
187
|
}, e.with = e.check, e.clone = (t, n) => te(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
188
|
-
}),
|
|
189
|
-
|
|
188
|
+
}), kt = /*@__PURE__*/ m("ZodMiniString", (e, t) => {
|
|
189
|
+
be.init(e, t), R.init(e, t);
|
|
190
190
|
});
|
|
191
191
|
// @__NO_SIDE_EFFECTS__
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function At(e) {
|
|
193
|
+
return le(kt, e);
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
ee.init(e, t),
|
|
195
|
+
var jt = /*@__PURE__*/ m("ZodMiniNumber", (e, t) => {
|
|
196
|
+
ee.init(e, t), R.init(e, t);
|
|
197
197
|
});
|
|
198
198
|
// @__NO_SIDE_EFFECTS__
|
|
199
|
-
function
|
|
200
|
-
return
|
|
199
|
+
function z(e) {
|
|
200
|
+
return me(jt, e);
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
|
|
202
|
+
var Mt = /*@__PURE__*/ m("ZodMiniNever", (e, t) => {
|
|
203
|
+
ue.init(e, t), R.init(e, t);
|
|
204
204
|
});
|
|
205
205
|
// @__NO_SIDE_EFFECTS__
|
|
206
|
-
function
|
|
207
|
-
return
|
|
206
|
+
function Nt(e) {
|
|
207
|
+
return Me(Mt, e);
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
d.init(e, t),
|
|
209
|
+
var Pt = /*@__PURE__*/ m("ZodMiniArray", (e, t) => {
|
|
210
|
+
d.init(e, t), R.init(e, t);
|
|
211
211
|
});
|
|
212
212
|
// @__NO_SIDE_EFFECTS__
|
|
213
|
-
function
|
|
214
|
-
return new
|
|
213
|
+
function Ft(e, t) {
|
|
214
|
+
return new Pt({
|
|
215
215
|
type: "array",
|
|
216
216
|
element: e,
|
|
217
|
-
...
|
|
217
|
+
...p(t)
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
f.init(e, t),
|
|
220
|
+
var It = /*@__PURE__*/ m("ZodMiniObject", (e, t) => {
|
|
221
|
+
f.init(e, t), R.init(e, t), ie(e, "shape", () => t.shape);
|
|
222
222
|
});
|
|
223
223
|
// @__NO_SIDE_EFFECTS__
|
|
224
|
-
function
|
|
225
|
-
return new
|
|
224
|
+
function B(e, t) {
|
|
225
|
+
return new It({
|
|
226
226
|
type: "object",
|
|
227
227
|
shape: e,
|
|
228
|
-
catchall: /* @__PURE__ */
|
|
229
|
-
...
|
|
228
|
+
catchall: /* @__PURE__ */ Nt(),
|
|
229
|
+
...p(t)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var Lt = /*@__PURE__*/ m("ZodMiniOptional", (e, t) => {
|
|
233
|
+
se.init(e, t), R.init(e, t);
|
|
234
234
|
});
|
|
235
235
|
// @__NO_SIDE_EFFECTS__
|
|
236
|
-
function
|
|
237
|
-
return new
|
|
236
|
+
function V(e) {
|
|
237
|
+
return new Lt({
|
|
238
238
|
type: "optional",
|
|
239
239
|
innerType: e
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
var
|
|
243
|
-
|
|
242
|
+
var Rt = /*@__PURE__*/ m("ZodMiniCustom", (e, t) => {
|
|
243
|
+
ke.init(e, t), R.init(e, t);
|
|
244
244
|
});
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
247
|
-
return
|
|
246
|
+
function zt(e, t = {}) {
|
|
247
|
+
return Ae(Rt, 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 Bt = /* @__PURE__ */ B({
|
|
252
|
+
x: /* @__PURE__ */ z(),
|
|
253
|
+
y: /* @__PURE__ */ z()
|
|
254
|
+
}), Vt = /* @__PURE__ */ B({
|
|
255
|
+
leftTop: Bt,
|
|
256
|
+
rightBottom: Bt
|
|
257
|
+
}), Ht = (/* @__PURE__ */ B({
|
|
258
|
+
name: /* @__PURE__ */ V(/* @__PURE__ */ At()),
|
|
259
|
+
externalId: /* @__PURE__ */ V(/* @__PURE__ */ At())
|
|
260
|
+
})).check(/* @__PURE__ */ zt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Ut = (/* @__PURE__ */ B({
|
|
261
|
+
booths: /* @__PURE__ */ V(/* @__PURE__ */ Ft(Ht)),
|
|
262
|
+
exhibitors: /* @__PURE__ */ V(/* @__PURE__ */ Ft(Ht))
|
|
263
|
+
})).check(/* @__PURE__ */ zt((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")), Wt = /* @__PURE__ */ V(/* @__PURE__ */ B({ padding: /* @__PURE__ */ V(/* @__PURE__ */ z()) }));
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
|
-
function
|
|
270
|
-
let t =
|
|
271
|
-
Object.values(t).length && (
|
|
269
|
+
function Gt(e) {
|
|
270
|
+
let t = lt(e);
|
|
271
|
+
Object.values(t).length && (ft(t, !1), dt(t));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region src/utils/getMostFrequent.ts
|
|
275
|
-
function
|
|
275
|
+
function Kt(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 qt(e) {
|
|
|
280
280
|
}
|
|
281
281
|
//#endregion
|
|
282
282
|
//#region src/services/multi-slug.ts
|
|
283
|
-
function
|
|
283
|
+
function qt(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 && !h(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 &&
|
|
295
|
-
let t =
|
|
296
|
-
Object.keys(t).length &&
|
|
290
|
+
var H = !1;
|
|
291
|
+
function Jt() {
|
|
292
|
+
G(_()), u(() => k.layerStore.layersLoaded, () => {
|
|
293
|
+
let e = _().camera;
|
|
294
|
+
Object.keys(e).length && dn(x(e));
|
|
295
|
+
let t = _().visibility;
|
|
296
|
+
Object.keys(t).length && N.setVisibility(t);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
299
|
+
function Yt(e) {
|
|
300
|
+
it({
|
|
301
301
|
offHistory: e,
|
|
302
|
-
onNavigate:
|
|
303
|
-
}),
|
|
304
|
-
|
|
302
|
+
onNavigate: W
|
|
303
|
+
}), en(), U(), u(() => k.layerStore.layersLoaded, () => {
|
|
304
|
+
k.urlFilterManager && !k.urlFilterManager.isInitialized && k.urlFilterManager.initialize(), W(), ge(un), ge(K), N.viewerMode && (N.menu = !0);
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
|
|
307
|
+
function Xt(e = "") {
|
|
308
|
+
A("?" + h(e.toString())), k.layerStore.layersLoaded ? Zt(e) : (U(), u(() => k.layerStore.layersLoaded, () => Zt(e)));
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Zt(e) {
|
|
311
311
|
var t, n;
|
|
312
|
-
let r = "?" +
|
|
312
|
+
let r = "?" + h(e), i = an(r), a = [...(t = i.intents) == null ? [] : t, ...Ee(r).intents], { intents: s = [], ...c } = _e(r, {
|
|
313
313
|
visibility: i.visibility,
|
|
314
314
|
consent: i.consent,
|
|
315
315
|
intents: a
|
|
316
316
|
});
|
|
317
|
-
|
|
317
|
+
G(i), G(c);
|
|
318
318
|
let l = (n = i.consent) == null ? c.consent : n;
|
|
319
|
-
l &&
|
|
319
|
+
l && S(l), i.camera && Object.keys(i.camera).length && dn(x(i.camera)), i.visibility && Object.keys(i.visibility).length && N.setVisibility(i.visibility), en(), W();
|
|
320
320
|
let u = [...a, ...s];
|
|
321
|
-
u.length && o(
|
|
322
|
-
}
|
|
323
|
-
function H() {
|
|
324
|
-
let e = O();
|
|
325
|
-
return Ke(e.length > 1 ? m(e.substring(1)) : "");
|
|
321
|
+
u.length && o(k.fp, u);
|
|
326
322
|
}
|
|
327
323
|
function U() {
|
|
328
|
-
|
|
324
|
+
let e = P();
|
|
325
|
+
return Ue(e.length > 1 ? h(e.substring(1)) : "");
|
|
326
|
+
}
|
|
327
|
+
function W() {
|
|
328
|
+
H = !0;
|
|
329
329
|
try {
|
|
330
|
-
|
|
331
|
-
let { primary: e } =
|
|
332
|
-
!
|
|
330
|
+
Gt(new URLSearchParams(h(window.location.search)));
|
|
331
|
+
let { primary: e } = he(P()), t = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (N.heatmap || N.heatmapYah);
|
|
332
|
+
!U() && !t && Qt(e);
|
|
333
333
|
} finally {
|
|
334
|
-
|
|
334
|
+
H = !1;
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
K(), un();
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
let t =
|
|
338
|
+
function Qt(e) {
|
|
339
|
+
let t = k.fp;
|
|
340
340
|
switch (e.type) {
|
|
341
341
|
case "kiosk":
|
|
342
|
-
e.enabled !== null &&
|
|
342
|
+
e.enabled !== null && nt(N, e.enabled);
|
|
343
343
|
return;
|
|
344
344
|
case "list":
|
|
345
345
|
t.showList(e.list);
|
|
@@ -356,13 +356,13 @@ function $t(e) {
|
|
|
356
356
|
return;
|
|
357
357
|
case "route":
|
|
358
358
|
var n, r;
|
|
359
|
-
|
|
359
|
+
k.routeStore.setOnlyAccessible(e.accessible), k.routeStore.selectRoute(Ge((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);
|
|
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 $t(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 $t(e) {
|
|
374
|
+
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];
|
|
375
|
+
if (st()) {
|
|
376
|
+
let e = Kt(o.map((e) => e.layer.name));
|
|
377
|
+
e && k.fp.activateFloor({ name: e });
|
|
378
|
+
}
|
|
379
|
+
(n.length > 0 || r.length > 0) && k.fp.highlightEntities([...n, ...r]), k.layerStore.showPathWay(t), o.length > 0 && je(() => {
|
|
380
|
+
k.uiState.moveToRect = M.fromUnion(...o.map((e) => e.rect).filter(Boolean)), k.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 en() {
|
|
384
|
+
let { oneShots: e } = he(P());
|
|
385
|
+
for (let t of e) tn(t);
|
|
386
|
+
let t = qe(P());
|
|
387
|
+
t !== null && A("?" + t), N.previewExhibitor && A("?" + N.previewExhibitor.slug), rn();
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function tn(e) {
|
|
390
390
|
switch (e.type) {
|
|
391
391
|
case "heatmap":
|
|
392
|
-
|
|
392
|
+
nn(e.yah);
|
|
393
393
|
return;
|
|
394
394
|
case "blueDot": {
|
|
395
395
|
var t, n;
|
|
396
|
-
let r = new
|
|
397
|
-
u(() =>
|
|
396
|
+
let r = new ut(e.x, e.y, (t = k.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
397
|
+
u(() => k.layerStore.layersLoaded, () => k.routeStore.selectCurrentPosition(r, !0, 1));
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
400
|
case "viewerMode":
|
|
401
|
-
|
|
401
|
+
g && (e.enabled ? localStorage.setItem(we, "true") : (localStorage.removeItem(we), localStorage.removeItem(ne)));
|
|
402
402
|
return;
|
|
403
403
|
case "previewMode":
|
|
404
|
-
|
|
404
|
+
g && (e.enabled ? localStorage.setItem(c, "true") : (localStorage.removeItem(c), localStorage.removeItem(de)));
|
|
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.`) : k.uiState.setUIScale(e.scale, !0);
|
|
408
408
|
return;
|
|
409
409
|
case "resetUiScale":
|
|
410
|
-
|
|
410
|
+
k.uiState.resetUIScale();
|
|
411
411
|
return;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
|
|
414
|
+
function nn(e) {
|
|
415
|
+
$e(), e ? (N.heatmapYah = !0, N.monochrome = !0, N.hideLogoInBooth = !0, N.hideHeaderLogo = !0, N.disableBookmarked = !0) : N.heatmap = !0;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
let e =
|
|
419
|
-
let t =
|
|
417
|
+
function rn() {
|
|
418
|
+
let e = qt(P(), (e) => {
|
|
419
|
+
let t = k.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 && A(e);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
e.noOverlay !== void 0 && (
|
|
424
|
+
function G(e) {
|
|
425
|
+
e.noOverlay !== void 0 && (N.hideOverlay = e.noOverlay), e.monochrome && (N.monochrome = !0), e.hideHeaderLogo && (N.hideHeaderLogo = !0), e.hideLogoInBooth && (N.hideLogoInBooth = !0), e.disableFeatured && k.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (N.disableBookmarked = !0), e.disableGps && k.routeStore.setGpsTrackingEnabled(!1), e.heatmap && r(e.heatmap) && nn(e.heatmap.variant === "yah");
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function an(e) {
|
|
428
|
+
return Se(ve, 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 on = null, sn = null, cn = null;
|
|
431
|
+
function K() {
|
|
432
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = ln(), i = k.urlFilterManager.filterSearch();
|
|
433
|
+
if (H) return;
|
|
434
|
+
let a = xe(e) || i;
|
|
435
|
+
P() !== a && (t !== on || n !== sn || r !== cn ? ot(a) : A(a), on = t, sn = n, cn = r);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
let e =
|
|
437
|
+
function ln() {
|
|
438
|
+
let e = N.selectedExhibitor, t = N.selectedBooth, n = N.selectedEventItem, r = N.selectedRoute, i = N.selectedSpeaker, a = N.setKioskModeEnabled, o = N.list, s;
|
|
439
439
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
440
440
|
var c;
|
|
441
|
-
let e =
|
|
441
|
+
let e = k.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 && !N.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 O ? r.to.slug : void 0,
|
|
453
|
+
from: r.from instanceof O ? r.from.slug : void 0,
|
|
454
|
+
accessible: k.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 un() {
|
|
|
488
488
|
var u, d;
|
|
489
489
|
s = {
|
|
490
490
|
type: "slug",
|
|
491
|
-
slug: (u = (d =
|
|
491
|
+
slug: (u = (d = N.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
492
492
|
};
|
|
493
493
|
break;
|
|
494
494
|
case "search":
|
|
@@ -519,34 +519,21 @@ function un() {
|
|
|
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 un() {
|
|
523
|
+
let e = N.selectedExhibitor, t = N.selectedEventItem, n = N.selectedSpeaker, r = "";
|
|
524
|
+
e ? r = e.name : t ? r = t.name : n ? r = n.name : N.list.type === "search" && N.list.text ? r = "`" + (N.list.text || "") + "`" : N.list.type === "multi-point-tour" && N.tourTitle && (r = N.tourTitle), r.length && (r += " – "), r += j.title, j.subtitle && (r += " – " + j.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function dn(e) {
|
|
527
527
|
try {
|
|
528
|
-
if (
|
|
529
|
-
let t =
|
|
530
|
-
t &&
|
|
528
|
+
if (N.setMapSettings(e), e.z) {
|
|
529
|
+
let t = k.layerStore.layers.find((t) => t.name === e.z);
|
|
530
|
+
t && k.layerStore.updateVisibility(t, !0);
|
|
531
531
|
}
|
|
532
532
|
} catch (e) {
|
|
533
533
|
console.error("Failed to process map settings.", e);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
//#endregion
|
|
537
|
-
//#region src/tools/reset.ts
|
|
538
|
-
function pn() {
|
|
539
|
-
K("floorplan"), K("__searchi"), K("__mobxGlobals"), K("__store"), K("__mobxInstanceCount");
|
|
540
|
-
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && K(e);
|
|
541
|
-
}
|
|
542
|
-
function K(e) {
|
|
543
|
-
mn(e) ? delete window[e] : window[e] = void 0;
|
|
544
|
-
}
|
|
545
|
-
function mn(e) {
|
|
546
|
-
let t = Object.getOwnPropertyDescriptor(window, e);
|
|
547
|
-
return t && t.configurable;
|
|
548
|
-
}
|
|
549
|
-
//#endregion
|
|
550
537
|
//#region src/utils/mapEntity.ts
|
|
551
538
|
function q(e) {
|
|
552
539
|
switch (e.entity.type) {
|
|
@@ -620,33 +607,33 @@ function Y(e) {
|
|
|
620
607
|
}
|
|
621
608
|
//#endregion
|
|
622
609
|
//#region src/floorplan.ready.tsx
|
|
623
|
-
var X =
|
|
624
|
-
(0,
|
|
625
|
-
var
|
|
610
|
+
var X = Fe(), Z = (0, yt.default)("efp:api");
|
|
611
|
+
(0, xt.install)();
|
|
612
|
+
var fn = class extends s {
|
|
626
613
|
constructor(...e) {
|
|
627
614
|
super(...e), this.root = void 0;
|
|
628
615
|
}
|
|
629
616
|
init() {
|
|
630
|
-
|
|
617
|
+
Jt(), this.ignoreQuery || Yt(this.offHistory), Qe("load"), ct(k), k.fp = this, S(this.consent), at(E.Load, ""), this.root = (0, bt.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(vt, { children: /* @__PURE__ */ (0, X.jsx)(We, {
|
|
631
618
|
offHistory: this.offHistory,
|
|
632
619
|
consent: this.consent
|
|
633
|
-
}) })),
|
|
634
|
-
if (this.resolveReady(), !
|
|
620
|
+
}) })), at(E.Rendered, ""), Oe(() => k.layerStore.layersLoaded, () => {
|
|
621
|
+
if (this.resolveReady(), !k.initialized) {
|
|
635
622
|
var e;
|
|
636
623
|
(e = this.onInit) == null || e.call(this, this);
|
|
637
624
|
}
|
|
638
|
-
|
|
625
|
+
k.initialized = !0;
|
|
639
626
|
});
|
|
640
|
-
let e =
|
|
641
|
-
e && import("./bootIntercom-
|
|
627
|
+
let e = Ot(j);
|
|
628
|
+
e && import("./bootIntercom-CHy1kgnP.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
642
629
|
}
|
|
643
630
|
selectBooth(e) {
|
|
644
631
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
645
632
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
646
633
|
return;
|
|
647
634
|
}
|
|
648
|
-
let t =
|
|
649
|
-
|
|
635
|
+
let t = k.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
636
|
+
k.selectBooth(t);
|
|
650
637
|
}
|
|
651
638
|
selectExhibitor(e) {
|
|
652
639
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -654,35 +641,35 @@ var hn = class extends s {
|
|
|
654
641
|
return;
|
|
655
642
|
}
|
|
656
643
|
if (!(e != null && e.length)) {
|
|
657
|
-
|
|
644
|
+
k.uiState.menu = !1, k.searchStore.resetSearchBox(), k.uiState.details = null;
|
|
658
645
|
return;
|
|
659
646
|
}
|
|
660
|
-
let t =
|
|
647
|
+
let t = k.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
661
648
|
if (!(t != null && t.length)) return;
|
|
662
649
|
if (typeof e == "string") {
|
|
663
|
-
|
|
650
|
+
k.selectExhibitor(t[0]), k.moveToList([t[0]]);
|
|
664
651
|
return;
|
|
665
652
|
}
|
|
666
|
-
let n =
|
|
667
|
-
n &&
|
|
653
|
+
let n = Kt(t.flatMap((e) => e.booths.map((e) => e.layer)).map((e) => e.description));
|
|
654
|
+
n && k.layerStore.updateVisibility(n, !0), k.uiState.menu = !1, k.searchStore.resetSearchBox(), k.uiState.details = null, k.uiState.list = {
|
|
668
655
|
type: "filter",
|
|
669
656
|
items: t,
|
|
670
657
|
query: {
|
|
671
658
|
key: "exhibitors",
|
|
672
659
|
value: t.map((e) => e.name).join(",")
|
|
673
660
|
}
|
|
674
|
-
},
|
|
661
|
+
}, k.moveToList();
|
|
675
662
|
}
|
|
676
663
|
highlightExhibitors(e) {
|
|
677
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
664
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), k.boothStore.highlightedByExternalIds = [], k.exhibitorStore.highlightedByExternalIds = [...e];
|
|
678
665
|
}
|
|
679
666
|
highlightBooths(e) {
|
|
680
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
667
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), k.exhibitorStore.highlightedByExternalIds = [], k.boothStore.highlightedByExternalIds = [...e];
|
|
681
668
|
}
|
|
682
669
|
highlightEntities(e) {
|
|
683
670
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
684
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
685
|
-
|
|
671
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = T(e);
|
|
672
|
+
k.boothStore.highlightedByExternalIds = [...t], k.exhibitorStore.highlightedByExternalIds = [...n];
|
|
686
673
|
}
|
|
687
674
|
selectRoute(e, t) {
|
|
688
675
|
if (Array.isArray(e)) {
|
|
@@ -692,10 +679,10 @@ var hn = class extends s {
|
|
|
692
679
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
693
680
|
return;
|
|
694
681
|
}
|
|
695
|
-
|
|
682
|
+
k.routeStore.selectRoute(new w(Q(n), Q(r), t.map(Q)));
|
|
696
683
|
return;
|
|
697
684
|
}
|
|
698
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
685
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), k.routeStore.selectRoute(new w(Q(e), Q(t)));
|
|
699
686
|
}
|
|
700
687
|
getOptimizedRoutes(e) {
|
|
701
688
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -708,19 +695,19 @@ var hn = class extends s {
|
|
|
708
695
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
709
696
|
a ? a.push(e) : n.set(t, [e]);
|
|
710
697
|
}
|
|
711
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
698
|
+
return Array.from(n.values()).map((e) => ({ waypoints: Ye(e.map((e) => [e.name, {
|
|
712
699
|
x: e.rect.center.x,
|
|
713
700
|
y: e.rect.center.y
|
|
714
701
|
}])) }));
|
|
715
702
|
}
|
|
716
703
|
selectCurrentPosition(e, t, n) {
|
|
717
704
|
var r;
|
|
718
|
-
let i =
|
|
719
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
705
|
+
let i = C(e.x) && C(e.y), a = C(e.lng) && C(e.lat);
|
|
706
|
+
!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);
|
|
720
707
|
}
|
|
721
708
|
setBookmarks(e) {
|
|
722
709
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
723
|
-
let t =
|
|
710
|
+
let t = k.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
724
711
|
t && (t.bookmarked = e.bookmarked);
|
|
725
712
|
});
|
|
726
713
|
}
|
|
@@ -739,29 +726,29 @@ var hn = class extends s {
|
|
|
739
726
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
740
727
|
return;
|
|
741
728
|
}
|
|
742
|
-
let r =
|
|
729
|
+
let r = tt("bookmarked"), i = {
|
|
743
730
|
exhibitor: {
|
|
744
731
|
existingIds: new Set(r.exhibitors || []),
|
|
745
|
-
finder: (e) =>
|
|
746
|
-
replacer: (e) =>
|
|
732
|
+
finder: (e) => k.exhibitorStore.findExhibitor(e),
|
|
733
|
+
replacer: (e) => k.exhibitorStore.replaceBookmarked(e)
|
|
747
734
|
},
|
|
748
735
|
event: {
|
|
749
736
|
existingIds: new Set(r.events || []),
|
|
750
|
-
finder: (e) =>
|
|
751
|
-
replacer: (e) =>
|
|
737
|
+
finder: (e) => k.eventStore.findByNameOrSlug(e),
|
|
738
|
+
replacer: (e) => k.eventStore.replaceBookmarked(e)
|
|
752
739
|
},
|
|
753
740
|
speaker: {
|
|
754
741
|
existingIds: new Set(r.speakers || []),
|
|
755
|
-
finder: (e) =>
|
|
756
|
-
replacer: (e) =>
|
|
742
|
+
finder: (e) => k.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
743
|
+
replacer: (e) => k.speakerStore.replaceBookmarked(e)
|
|
757
744
|
},
|
|
758
745
|
booth: {
|
|
759
746
|
existingIds: new Set(r.booths || []),
|
|
760
747
|
finder: (e) => {
|
|
761
|
-
let t =
|
|
748
|
+
let t = k.boothStore.findBooth(e);
|
|
762
749
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
763
750
|
},
|
|
764
|
-
replacer: (e) =>
|
|
751
|
+
replacer: (e) => k.boothStore.replaceBookmarked(e)
|
|
765
752
|
}
|
|
766
753
|
};
|
|
767
754
|
e.forEach((e) => {
|
|
@@ -781,16 +768,16 @@ var hn = class extends s {
|
|
|
781
768
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
782
769
|
return;
|
|
783
770
|
}
|
|
784
|
-
let r =
|
|
771
|
+
let r = tt("visited"), i = {
|
|
785
772
|
exhibitor: {
|
|
786
773
|
existingIds: new Set(r.exhibitors || []),
|
|
787
|
-
finder: (e) =>
|
|
788
|
-
replacer: (e) =>
|
|
774
|
+
finder: (e) => k.exhibitorStore.findExhibitor(e),
|
|
775
|
+
replacer: (e) => k.exhibitorStore.replaceVisited(e)
|
|
789
776
|
},
|
|
790
777
|
event: {
|
|
791
778
|
existingIds: new Set(r.events || []),
|
|
792
|
-
finder: (e) =>
|
|
793
|
-
replacer: (e) =>
|
|
779
|
+
finder: (e) => k.eventStore.findByNameOrSlug(e),
|
|
780
|
+
replacer: (e) => k.eventStore.replaceVisited(e)
|
|
794
781
|
}
|
|
795
782
|
};
|
|
796
783
|
e.forEach((e) => {
|
|
@@ -805,94 +792,94 @@ var hn = class extends s {
|
|
|
805
792
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
806
793
|
return;
|
|
807
794
|
}
|
|
808
|
-
|
|
795
|
+
k.routeStore.setMarkers(e);
|
|
809
796
|
}
|
|
810
797
|
selectMarker(e, t = !0) {
|
|
811
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
798
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), k.routeStore.selectMarker(e, t);
|
|
812
799
|
}
|
|
813
800
|
drawCircles(e) {
|
|
814
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
801
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), k.uiState.debugCircles = e;
|
|
815
802
|
}
|
|
816
803
|
checkRoutes() {
|
|
817
|
-
|
|
804
|
+
k.routeStore.checkRoutes();
|
|
818
805
|
}
|
|
819
806
|
updateLayerVisibility(e, t) {
|
|
820
|
-
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"),
|
|
807
|
+
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);
|
|
821
808
|
}
|
|
822
809
|
getCenterCoordinates() {
|
|
823
|
-
return
|
|
810
|
+
return k.fp.getCenterCoordinates();
|
|
824
811
|
}
|
|
825
812
|
exhibitorsList() {
|
|
826
|
-
return
|
|
813
|
+
return k.exhibitorStore.exhibitors.map((e) => q(e));
|
|
827
814
|
}
|
|
828
815
|
boothsList() {
|
|
829
|
-
return
|
|
816
|
+
return k.boothStore.booths.map((e) => q(e));
|
|
830
817
|
}
|
|
831
818
|
categoriesList() {
|
|
832
|
-
return
|
|
819
|
+
return k.categoryStore.categories.map((e) => q(e));
|
|
833
820
|
}
|
|
834
821
|
selectCategory(e) {
|
|
835
822
|
if (e == null || typeof e != "string") {
|
|
836
|
-
|
|
823
|
+
k.searchStore.selectSearch();
|
|
837
824
|
return;
|
|
838
825
|
}
|
|
839
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
826
|
+
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);
|
|
840
827
|
if (!n) {
|
|
841
828
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
842
829
|
return;
|
|
843
830
|
}
|
|
844
|
-
|
|
831
|
+
k.selectCategory(n);
|
|
845
832
|
}
|
|
846
833
|
select(e) {
|
|
847
834
|
if (typeof e != "string") {
|
|
848
835
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
849
836
|
return;
|
|
850
837
|
}
|
|
851
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
838
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = k.boothStore.booths.find((e) => {
|
|
852
839
|
var t, r, i;
|
|
853
840
|
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;
|
|
854
841
|
});
|
|
855
842
|
if (r) {
|
|
856
|
-
setTimeout(() =>
|
|
843
|
+
setTimeout(() => k.selectBooth(r), 250);
|
|
857
844
|
return;
|
|
858
845
|
}
|
|
859
|
-
let i =
|
|
846
|
+
let i = k.eventStore.eventItems.find((e) => {
|
|
860
847
|
var t, r;
|
|
861
848
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
862
849
|
});
|
|
863
850
|
if (i) {
|
|
864
|
-
|
|
851
|
+
k.selectEventItem(i, !0);
|
|
865
852
|
return;
|
|
866
853
|
}
|
|
867
|
-
let a =
|
|
854
|
+
let a = k.exhibitorStore.exhibitors.find((e) => {
|
|
868
855
|
var t, r;
|
|
869
856
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
870
857
|
});
|
|
871
858
|
if (a) {
|
|
872
|
-
setTimeout(() =>
|
|
859
|
+
setTimeout(() => k.clickExhibitor(a), 250);
|
|
873
860
|
return;
|
|
874
861
|
}
|
|
875
|
-
let o =
|
|
862
|
+
let o = k.categoryStore.categories.find((e) => e.slug === t);
|
|
876
863
|
if (o) {
|
|
877
|
-
|
|
864
|
+
k.selectCategory(o);
|
|
878
865
|
return;
|
|
879
866
|
}
|
|
880
|
-
let s =
|
|
867
|
+
let s = k.speakerStore.findBySlug(t);
|
|
881
868
|
if (s) {
|
|
882
|
-
|
|
869
|
+
k.selectSpeaker(s, !0);
|
|
883
870
|
return;
|
|
884
871
|
}
|
|
885
|
-
t.includes("heatmap=true") ||
|
|
872
|
+
t.includes("heatmap=true") || k.searchStore.selectSearch(t);
|
|
886
873
|
}
|
|
887
874
|
showList(e) {
|
|
888
875
|
let t = {
|
|
889
|
-
bookmarks: () =>
|
|
890
|
-
visited: () =>
|
|
891
|
-
sessions: () =>
|
|
892
|
-
exhibitors: () =>
|
|
893
|
-
speakers: () =>
|
|
894
|
-
tours: () =>
|
|
895
|
-
language: () =>
|
|
876
|
+
bookmarks: () => k.selectBookmarks(),
|
|
877
|
+
visited: () => k.selectVisited(),
|
|
878
|
+
sessions: () => k.selectSessions(),
|
|
879
|
+
exhibitors: () => k.selectExhibitors(),
|
|
880
|
+
speakers: () => k.selectSpeakers(),
|
|
881
|
+
tours: () => k.selectTours(),
|
|
882
|
+
language: () => k.selectLanguage()
|
|
896
883
|
}, n = t[e];
|
|
897
884
|
if (!n) {
|
|
898
885
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -905,65 +892,65 @@ var hn = class extends s {
|
|
|
905
892
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
906
893
|
return;
|
|
907
894
|
}
|
|
908
|
-
let t =
|
|
909
|
-
t ?
|
|
895
|
+
let t = k.toursStore.getTourById(e);
|
|
896
|
+
t ? k.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), k.selectTours());
|
|
910
897
|
}
|
|
911
898
|
openPlanner(e = {}) {
|
|
912
899
|
if (typeof e != "object" || !e) {
|
|
913
900
|
$("openPlanner", "An options object must be passed.", "EFP001A00");
|
|
914
901
|
return;
|
|
915
902
|
}
|
|
916
|
-
let t = e.from ?
|
|
917
|
-
if (e.fromBookmarks)
|
|
903
|
+
let t = e.from ? F(e.from) : null;
|
|
904
|
+
if (e.fromBookmarks) k.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
918
905
|
else {
|
|
919
906
|
var n;
|
|
920
|
-
|
|
907
|
+
k.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
921
908
|
}
|
|
922
909
|
}
|
|
923
910
|
startBuildRoute() {
|
|
924
|
-
|
|
911
|
+
k.uiState.startBuildRoute();
|
|
925
912
|
}
|
|
926
913
|
applyParameters(e) {
|
|
927
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
914
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), Xt(e);
|
|
928
915
|
}
|
|
929
916
|
getVisibility() {
|
|
930
|
-
return
|
|
917
|
+
return k.uiState.visibility;
|
|
931
918
|
}
|
|
932
919
|
setVisibility(e) {
|
|
933
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
920
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), k.uiState.setVisibility(e);
|
|
934
921
|
}
|
|
935
922
|
findLocation() {
|
|
936
|
-
|
|
923
|
+
k.routeStore.findLocation();
|
|
937
924
|
}
|
|
938
925
|
zoomIn() {
|
|
939
|
-
|
|
926
|
+
k.uiState.zoomIn();
|
|
940
927
|
}
|
|
941
928
|
zoomOut() {
|
|
942
|
-
|
|
929
|
+
k.uiState.zoomOut();
|
|
943
930
|
}
|
|
944
931
|
switchView() {
|
|
945
|
-
|
|
932
|
+
k.maplibreStore.activateMaplibre();
|
|
946
933
|
}
|
|
947
934
|
setCamera(e) {
|
|
948
935
|
Z("setCamera called with camera=%O", e);
|
|
949
|
-
let t =
|
|
936
|
+
let t = pe.safeParse(e);
|
|
950
937
|
if (!t.success) {
|
|
951
938
|
$("setCamera", t.error.message, "EFP001B00");
|
|
952
939
|
return;
|
|
953
940
|
}
|
|
954
|
-
|
|
941
|
+
k.uiState.setMapSettings(x(t.data));
|
|
955
942
|
}
|
|
956
943
|
getCamera() {
|
|
957
|
-
return
|
|
944
|
+
return He(k.uiState.mapSettings);
|
|
958
945
|
}
|
|
959
946
|
zoomTo(e, t) {
|
|
960
947
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
961
|
-
let n =
|
|
948
|
+
let n = Ut.safeParse(e);
|
|
962
949
|
if (!n.success) {
|
|
963
950
|
$("zoomTo", n.error.message, "EFP001600");
|
|
964
951
|
return;
|
|
965
952
|
}
|
|
966
|
-
let r =
|
|
953
|
+
let r = Wt.safeParse(t);
|
|
967
954
|
if (!r.success) {
|
|
968
955
|
$("zoomTo", r.error.message, "EFP001601");
|
|
969
956
|
return;
|
|
@@ -974,7 +961,7 @@ var hn = class extends s {
|
|
|
974
961
|
getBounds(e) {
|
|
975
962
|
var t, n;
|
|
976
963
|
Z("getBounds called with selectors=%O", e);
|
|
977
|
-
let r =
|
|
964
|
+
let r = Ut.safeParse(e);
|
|
978
965
|
if (!r.success) {
|
|
979
966
|
$("getBounds", r.error.message, "EFP001400");
|
|
980
967
|
return;
|
|
@@ -982,15 +969,15 @@ var hn = class extends s {
|
|
|
982
969
|
let i = [];
|
|
983
970
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
984
971
|
let t;
|
|
985
|
-
e.externalId ? t =
|
|
972
|
+
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);
|
|
986
973
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
987
974
|
var t;
|
|
988
975
|
let n;
|
|
989
|
-
e.externalId ? n =
|
|
976
|
+
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) => {
|
|
990
977
|
e.rect && i.push(e.rect);
|
|
991
978
|
});
|
|
992
979
|
}), i.length === 0) return;
|
|
993
|
-
let a =
|
|
980
|
+
let a = M.fromUnion(...i);
|
|
994
981
|
return {
|
|
995
982
|
leftTop: {
|
|
996
983
|
x: a.min.x,
|
|
@@ -1004,37 +991,37 @@ var hn = class extends s {
|
|
|
1004
991
|
}
|
|
1005
992
|
fitBounds(e, t) {
|
|
1006
993
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1007
|
-
|
|
994
|
+
k.uiState.fitBounds();
|
|
1008
995
|
return;
|
|
1009
996
|
}
|
|
1010
|
-
let n =
|
|
997
|
+
let n = Vt.safeParse(e);
|
|
1011
998
|
if (!n.success) {
|
|
1012
999
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1013
1000
|
return;
|
|
1014
1001
|
}
|
|
1015
|
-
let r =
|
|
1002
|
+
let r = Wt.safeParse(t);
|
|
1016
1003
|
if (!r.success) {
|
|
1017
1004
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1018
1005
|
return;
|
|
1019
1006
|
}
|
|
1020
|
-
let i =
|
|
1007
|
+
let i = M.fromMinMax({
|
|
1021
1008
|
x: e.leftTop.x,
|
|
1022
1009
|
y: e.leftTop.y
|
|
1023
1010
|
}, {
|
|
1024
1011
|
x: e.rightBottom.x,
|
|
1025
1012
|
y: e.rightBottom.y
|
|
1026
1013
|
});
|
|
1027
|
-
|
|
1014
|
+
k.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1028
1015
|
}
|
|
1029
1016
|
getBoothRect(e) {
|
|
1030
1017
|
var t;
|
|
1031
1018
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1032
|
-
let n = (t =
|
|
1033
|
-
return n ?
|
|
1019
|
+
let n = (t = F(e)) == null ? void 0 : t.rect;
|
|
1020
|
+
return n ? mn.fromBox(n) : void 0;
|
|
1034
1021
|
}
|
|
1035
1022
|
convertToGeo(e, t) {
|
|
1036
1023
|
var n;
|
|
1037
|
-
if (!(!(
|
|
1024
|
+
if (!(!(D == null || (n = D.properties) == null) && n.config)) {
|
|
1038
1025
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1039
1026
|
return;
|
|
1040
1027
|
}
|
|
@@ -1042,11 +1029,11 @@ var hn = class extends s {
|
|
|
1042
1029
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1043
1030
|
return;
|
|
1044
1031
|
}
|
|
1045
|
-
return
|
|
1032
|
+
return Je(e, t, D.properties.config);
|
|
1046
1033
|
}
|
|
1047
1034
|
getGeoConfig() {
|
|
1048
1035
|
var e, t;
|
|
1049
|
-
let n =
|
|
1036
|
+
let n = D == null || (e = D.properties) == null ? void 0 : e.config;
|
|
1050
1037
|
return n ? {
|
|
1051
1038
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1052
1039
|
p0: n.p0,
|
|
@@ -1054,18 +1041,17 @@ var hn = class extends s {
|
|
|
1054
1041
|
p2: n.p2
|
|
1055
1042
|
} : null;
|
|
1056
1043
|
}
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
pn(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", i), S.maplibreStore.dispose(), lt(), st(), Ye(), this.root.unmount(), e.remove();
|
|
1044
|
+
releaseResources() {
|
|
1045
|
+
window.removeEventListener("error", i), k.maplibreStore.dispose(), rt(), et(), Ke(), this.root.unmount(), super.releaseResources();
|
|
1060
1046
|
}
|
|
1061
1047
|
search(e) {
|
|
1062
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1048
|
+
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) => ({
|
|
1063
1049
|
item: q(e.item),
|
|
1064
1050
|
score: e.score
|
|
1065
1051
|
}))));
|
|
1066
1052
|
}
|
|
1067
1053
|
getFloors() {
|
|
1068
|
-
return
|
|
1054
|
+
return k.layerStore.floors.map((e) => ({
|
|
1069
1055
|
name: e.name,
|
|
1070
1056
|
shortName: e.shortName,
|
|
1071
1057
|
description: e.description,
|
|
@@ -1102,70 +1088,70 @@ var hn = class extends s {
|
|
|
1102
1088
|
}
|
|
1103
1089
|
}
|
|
1104
1090
|
showPathway(e, t) {
|
|
1105
|
-
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ?
|
|
1091
|
+
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? T(t) : {
|
|
1106
1092
|
boothExternalIds: [],
|
|
1107
1093
|
exhibitorExternalIds: []
|
|
1108
1094
|
};
|
|
1109
|
-
|
|
1095
|
+
$t({
|
|
1110
1096
|
pathwayId: e,
|
|
1111
1097
|
boothIds: n,
|
|
1112
1098
|
exhibitorIds: r
|
|
1113
1099
|
});
|
|
1114
1100
|
}
|
|
1115
1101
|
showPathwayOnly(e, t) {
|
|
1116
|
-
this.activateFloor({ name: t }),
|
|
1117
|
-
let n =
|
|
1102
|
+
this.activateFloor({ name: t }), k.layerStore.showPathWay(e), k.uiState.setPathwayOnlyMode(!0);
|
|
1103
|
+
let n = k.layerStore.findLayer(e), r = k.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1118
1104
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1119
1105
|
var a;
|
|
1120
1106
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1121
|
-
|
|
1107
|
+
k.uiState.moveToRect = e.clone();
|
|
1122
1108
|
}
|
|
1123
1109
|
}
|
|
1124
1110
|
hidePathways() {
|
|
1125
|
-
this.highlightBooths([]),
|
|
1111
|
+
this.highlightBooths([]), k.layerStore.hidePathways(), k.uiState.setPathwayOnlyMode(!1);
|
|
1126
1112
|
}
|
|
1127
1113
|
showSearch() {
|
|
1128
|
-
|
|
1114
|
+
k.selectSearch("");
|
|
1129
1115
|
}
|
|
1130
1116
|
changeLanguage(e) {
|
|
1131
1117
|
var t;
|
|
1132
1118
|
let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1133
|
-
if (!
|
|
1134
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1119
|
+
if (!De(n)) {
|
|
1120
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${Ce().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1135
1121
|
return;
|
|
1136
1122
|
}
|
|
1137
|
-
|
|
1123
|
+
Te(n);
|
|
1138
1124
|
}
|
|
1139
1125
|
isGpsTrackingEnabled() {
|
|
1140
|
-
return
|
|
1126
|
+
return k.routeStore.gpsEnabled;
|
|
1141
1127
|
}
|
|
1142
1128
|
setGpsTrackingEnabled(e) {
|
|
1143
|
-
|
|
1129
|
+
k.routeStore.setGpsTrackingEnabled(e);
|
|
1144
1130
|
}
|
|
1145
1131
|
deselectCurrentPosition() {
|
|
1146
|
-
|
|
1132
|
+
k.routeStore.selectCurrentPosition(null, !1);
|
|
1147
1133
|
}
|
|
1148
1134
|
deselectRoute() {
|
|
1149
|
-
|
|
1135
|
+
k.routeStore.selectRoute(null), k.routeStore.setOnlyAccessible(!1);
|
|
1150
1136
|
}
|
|
1151
1137
|
reset() {
|
|
1152
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1138
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), k.uiState.kioskData && k.resetCameraFn) {
|
|
1153
1139
|
var e;
|
|
1154
|
-
(e =
|
|
1140
|
+
(e = k.resetCameraFn) == null || e.call(k);
|
|
1155
1141
|
} else this.fitBounds();
|
|
1156
1142
|
}
|
|
1157
1143
|
selectAccessibleRoute(e) {
|
|
1158
|
-
|
|
1144
|
+
k.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1159
1145
|
}
|
|
1160
1146
|
};
|
|
1161
1147
|
function Q(e) {
|
|
1162
|
-
return typeof e == "string" ?
|
|
1148
|
+
return typeof e == "string" ? F(e) : k.routeStore.getNearestBooth(e);
|
|
1163
1149
|
}
|
|
1164
|
-
var
|
|
1150
|
+
var pn = 0;
|
|
1165
1151
|
function $(e, t, n) {
|
|
1166
1152
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1167
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1168
|
-
|
|
1153
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), k.fp.disableRuntimeAlerts) return;
|
|
1154
|
+
k.uiState.setGlobalErrorMessage({
|
|
1169
1155
|
title: r,
|
|
1170
1156
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1171
1157
|
i,
|
|
@@ -1177,16 +1163,16 @@ function $(e, t, n) {
|
|
|
1177
1163
|
children: a
|
|
1178
1164
|
})
|
|
1179
1165
|
] })
|
|
1180
|
-
}), clearTimeout(
|
|
1166
|
+
}), clearTimeout(pn);
|
|
1181
1167
|
let o = 8e3;
|
|
1182
|
-
|
|
1168
|
+
pn = window.setTimeout(() => {
|
|
1183
1169
|
let e = async () => {
|
|
1184
|
-
|
|
1170
|
+
k.uiState.globalErrorMessages.length > 0 && (k.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1185
1171
|
};
|
|
1186
1172
|
e();
|
|
1187
1173
|
}, o);
|
|
1188
1174
|
}
|
|
1189
|
-
var
|
|
1175
|
+
var mn = class e {
|
|
1190
1176
|
get h() {
|
|
1191
1177
|
return Math.abs(this.y2 - this.y1);
|
|
1192
1178
|
}
|
|
@@ -1259,4 +1245,4 @@ var _n = class e {
|
|
|
1259
1245
|
}
|
|
1260
1246
|
};
|
|
1261
1247
|
//#endregion
|
|
1262
|
-
export {
|
|
1248
|
+
export { fn as default };
|