@expofp/floorplan 3.13.2 → 3.13.4
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-C5DLguTW.js → Button-Di2ct8As.js} +5 -5
- package/dist/browser/{CookieConsent-CPXxoJkz.js → CookieConsent-CzE7xqru.js} +7 -7
- package/dist/browser/{Debug-bxMz-HDF.js → Debug-BsFpCwAP.js} +7 -7
- package/dist/browser/{Demo-CGCZqU_8.js → Demo-CUBUALkV.js} +9 -9
- package/dist/browser/{Free-I-EGiu3o.js → Free-CeVCkK7q.js} +9 -9
- package/dist/browser/{Gallery-Bce2fubu.js → Gallery-BseorZVt.js} +9 -9
- package/dist/browser/{GpsLoader-CnPH3rxE.js → GpsLoader-CEqhVKuQ.js} +22 -22
- package/dist/browser/{KioskStore-K0Ps7wq6.js → KioskStore-CkjO0Hfm.js} +6 -6
- package/dist/browser/{MaplibreAdapter-DKa1N9-7.js → MaplibreAdapter-Cv3TA80a.js} +90 -90
- package/dist/browser/{ModalContainer-BxCJTxBS.js → ModalContainer-DBzlfN-T.js} +10 -10
- package/dist/browser/{PermissionNotice-BS53dDaS.js → PermissionNotice-B07dAoJS.js} +6 -6
- package/dist/browser/{SetKioskMode-P2g_TnCr.js → SetKioskMode-Bx1kz1kp.js} +8 -8
- package/dist/browser/{ShowKiosk-Bz-7t-PL.js → ShowKiosk-B7-iTNeI.js} +12 -12
- package/dist/browser/{TouchHand-Dm3c6gpk.js → TouchHand-Bnn5MVhC.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-COyljU8V.js → ViewerMenuPanel-CXUBz4Wo.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-DQjjtobD.js → add-debug-secret-listener-BNYotAb-.js} +1 -1
- package/dist/browser/{adopt-global-settings-DIJsf94E.js → adopt-global-settings-4U11MsDW.js} +9 -9
- package/dist/browser/{boolean-editor-D4Y66mgk.js → boolean-editor-CHApWCH1.js} +9 -9
- package/dist/browser/{bootIntercom-DUPbX22l.js → bootIntercom-DxJQ9eFU.js} +2 -2
- package/dist/browser/{booth-by-xy-DKyMJwg9.js → booth-by-xy-BLVVwNtj.js} +206 -206
- package/dist/browser/bundle.json +65 -65
- package/dist/browser/{classnames-CTiheKEO.js → classnames-DyPh2wWH.js} +2 -2
- package/dist/browser/{client-B0g0Q0fu.js → client-VtpPft-k.js} +4 -4
- package/dist/browser/{components-DUbHmBQ6.js → components-pEqQBzpb.js} +581 -581
- package/dist/browser/{debug-overlay-CKXL3Z9z.js → debug-overlay-BIIG939X.js} +10 -10
- package/dist/browser/{debug-ui-D2GPuJSX.js → debug-ui-Dd-aHSgD.js} +6 -6
- package/dist/browser/{dist-CZH-D_bo.js → dist-B--b6-sL.js} +6 -6
- package/dist/browser/{dist-CFY_dc-C.js → dist-B-7AJaNA.js} +3 -3
- package/dist/browser/{dist-BFVoy_zB.js → dist-qa-F0eMk.js} +5 -5
- package/dist/browser/{efp-debug-init-pd2smy4A.js → efp-debug-init-Bzf4T8Xx.js} +3 -3
- package/dist/browser/{enum-editor-a07SOXXi.js → enum-editor-DC0RIYSE.js} +4 -4
- package/dist/browser/{es5-jDwWZhmf.js → es5-DQ8JOeDN.js} +2 -2
- package/dist/browser/{event-not-found-CPqO_ew-.js → event-not-found-BKJBsZXi.js} +1 -1
- package/dist/browser/{exports-8JcxTO7_.js → exports-6X24q5_8.js} +1 -1
- package/dist/browser/{favicon-BhTDecsz.js → favicon-DxFo6cG6.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BuEcG130.js → fetch-retry.umd-DbPKc93r.js} +2 -2
- package/dist/browser/{flex-FVc6l8VM.js → flex-D7Rgw10G.js} +5 -5
- package/dist/browser/{floorplan.loader-DM3BoMUa.js → floorplan.loader-DWmxY4b8.js} +19 -19
- package/dist/browser/{floorplan.ready-DQAk0-bE.js → floorplan.ready-BBeRJMyN.js} +312 -321
- package/dist/browser/{fuse-hiNWVTid.js → fuse-CMjVlF0N.js} +2 -2
- package/dist/browser/{i18n-DmUQ2csh.js → i18n-xqAQbHAE.js} +2885 -2510
- package/dist/browser/index.js +25 -25
- package/dist/browser/{index.module-Ce5K5GHH.js → index.module-Cow3RO4I.js} +4 -4
- package/dist/browser/{integrateKiosk-DLY98yHT.js → integrateKiosk-GhnQowhu.js} +3 -3
- package/dist/browser/{is-webview-DYW7jMPo.js → is-webview-BL3sbVlT.js} +1 -1
- package/dist/browser/{jsx-runtime-Cn7VZCRr.js → jsx-runtime-1kuNv2jo.js} +2 -2
- package/dist/browser/{lib-DKxIjoGs.js → lib-KmlWWpxs.js} +3 -3
- package/dist/browser/{loadImage-CFRF6nKm.js → loadImage-OQCwDcXc.js} +4 -4
- package/dist/browser/{logDeviceInfo-B2xD643p.js → logDeviceInfo-C4CqLCSB.js} +9 -9
- package/dist/browser/{main-BE7HSdfx.js → main-lSz23rgB.js} +1 -1
- package/dist/browser/{mobx-Dss6V0uv.js → mobx-Juv7YSNw.js} +4 -4
- package/dist/browser/{optional-boolean-editor-BDWvD6R3.js → optional-boolean-editor-Bzfn3FDz.js} +3 -3
- package/dist/browser/{optional-enum-editor-DzJSD274.js → optional-enum-editor-C46BK0zF.js} +4 -4
- package/dist/browser/{optional-string-editor-DvQrsAvN.js → optional-string-editor-77_tZQLr.js} +4 -4
- package/dist/browser/{particles.min-0GINFlmD.js → particles.min-vy3ld3Rh.js} +2 -2
- package/dist/browser/{react-CQIXbbli.js → react-DTFJ9F0z.js} +2 -2
- package/dist/browser/{react-dom-DB3HP1L3.js → react-dom--ZXNmyjd.js} +3 -3
- package/dist/browser/{rolldown-runtime-CBbNE2KV.js → rolldown-runtime-DKhEBWux.js} +1 -1
- package/dist/browser/{select-DkvD6Ont.js → select-BSCoOOKF.js} +10 -10
- package/dist/browser/{settings-3RnELfMa.js → settings-COo-V6uV.js} +2 -2
- package/dist/browser/{settings-item-wgFS4pwq.js → settings-item-twkhiQs1.js} +6 -6
- package/dist/browser/{store-Bh1UUDBZ.js → store-7Bfkwa8d.js} +2694 -2694
- package/dist/browser/{string-editor-DIG3V4Iv.js → string-editor-D3_ZBuje.js} +4 -4
- package/dist/browser/{text-field-Ce1nLpTL.js → text-field-BlFx76b3.js} +5 -5
- package/dist/browser/{theme-DE94e68B.js → theme-Cdr_JTu6.js} +8 -8
- package/dist/browser/{ui-DKrc1LYz.js → ui-DsnmvJHp.js} +8 -8
- package/dist/browser/{useRenderTarget-DwEjrRiD.js → useRenderTarget-CqTbZKLS.js} +4 -4
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-bg.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
- package/dist/esm/components/Overlay.d.ts +1 -1
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/constants.d.ts +0 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/data/svg.js +1 -1
- package/dist/esm/load-dev.d.ts +1 -1
- package/dist/esm/services/url-dispatch.js +1 -1
- package/dist/esm/store/BoothStore.d.ts +1 -1
- package/dist/esm/store/HeatmapStore.js +1 -1
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +0 -1
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/init-booths.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/store/types.d.ts +6 -6
- package/dist/esm/tools/settings.js +1 -1
- package/dist/esm/utils/camera-map-settings.d.ts +2 -2
- package/package.json +14 -14
|
@@ -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.13.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.13.4" };
|
|
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] = "2c9fa1ab-d727-49fe-8ff8-2292c74e0b31", e._sentryDebugIdIdentifier = "sentry-dbid-2c9fa1ab-d727-49fe-8ff8-2292c74e0b31");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./floorplan.loader-
|
|
11
|
-
import {
|
|
12
|
-
import { s as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
16
|
-
import { C as
|
|
17
|
-
import { t as
|
|
18
|
-
import { C as
|
|
19
|
-
import { n as
|
|
20
|
-
import { n as
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DKhEBWux.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-DWmxY4b8.js";
|
|
11
|
+
import { At as c, C as l, Ct as u, Dt as d, Et as f, G as ee, H as te, Mt as p, Nt as m, Ot as ne, Q as h, St as re, Tt as ie, U as ae, V as oe, Y as se, _t as ce, bt as le, ct as g, dt as ue, f as de, gt as fe, ht as pe, jt as me, kt as he, l as _, mt as ge, n as _e, nt as ve, o as ye, ot as be, pt as xe, r as Se, st as Ce, tt as we, ut as Te, v as Ee, vt as De, wt as Oe, xt as ke, y as Ae, yt as je } from "./i18n-xqAQbHAE.js";
|
|
12
|
+
import { s as Me } from "./efp-debug-init-Bzf4T8Xx.js";
|
|
13
|
+
import { t as Ne } from "./react-DTFJ9F0z.js";
|
|
14
|
+
import { t as Pe } from "./jsx-runtime-1kuNv2jo.js";
|
|
15
|
+
import { r as v } from "./loadImage-OQCwDcXc.js";
|
|
16
|
+
import { C as y, D as Fe, Q as Ie, ht as b, i as Le, n as Re, w as ze } from "./exports-6X24q5_8.js";
|
|
17
|
+
import { t as Be } from "./client-VtpPft-k.js";
|
|
18
|
+
import { C as x, F as S, H as C, K as w, M as Ve, P as He, S as T, V as Ue, W as We, X as Ge, Xt as Ke, Z as qe, at as Je, b as E, c as D, cn as O, ct as Ye, dt as Xe, ft as Ze, g as Qe, hn as $e, in as k, it as A, lt as j, ot as et, q as tt, qt as nt, s as M, st as rt, x as it, y as at, z as N } from "./store-7Bfkwa8d.js";
|
|
19
|
+
import { n as ot, t as st } from "./integrateKiosk-GhnQowhu.js";
|
|
20
|
+
import { n as ct, t as lt } from "./components-pEqQBzpb.js";
|
|
21
21
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.68.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
22
|
-
function
|
|
22
|
+
function ut(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 = ze(), 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 ht(e = {}) {
|
|
|
36
36
|
...o.getUser(),
|
|
37
37
|
...e.user
|
|
38
38
|
},
|
|
39
|
-
eventId: e.eventId ||
|
|
39
|
+
eventId: e.eventId || Le()
|
|
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 ht(e = {}) {
|
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region ../../node_modules/.pnpm/@sentry+react@10.68.0_react@19.2.8/node_modules/@sentry/react/build/esm/error.js
|
|
57
|
-
var
|
|
58
|
-
function
|
|
57
|
+
var P = /* @__PURE__ */ e(Ne());
|
|
58
|
+
function dt(e) {
|
|
59
59
|
let t = e.match(/^([^.]+)/);
|
|
60
60
|
return t !== null && parseInt(t[0]) >= 17;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ft(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 _t(e, t) {
|
|
|
69
69
|
}
|
|
70
70
|
r(e, t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
72
|
+
function pt(e, { componentStack: t }, n) {
|
|
73
|
+
if (dt(P.version) && Ie(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, ft(e, n);
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return Re(e, n);
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region ../../node_modules/.pnpm/@sentry+react@10.68.0_react@19.2.8/node_modules/@sentry/react/build/esm/debug-build.js
|
|
81
|
-
var
|
|
81
|
+
var mt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, F = {
|
|
82
82
|
componentStack: null,
|
|
83
83
|
error: null,
|
|
84
84
|
eventId: null
|
|
85
|
-
},
|
|
85
|
+
}, ht = class extends P.Component {
|
|
86
86
|
constructor(e) {
|
|
87
|
-
super(e), this.state =
|
|
88
|
-
let t =
|
|
87
|
+
super(e), this.state = F, 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 && ut({
|
|
91
91
|
...e.dialogOptions,
|
|
92
92
|
eventId: this._lastEventId
|
|
93
93
|
});
|
|
@@ -95,13 +95,13 @@ var yt = 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
|
+
Fe((s) => {
|
|
99
99
|
r && r(s, e, n);
|
|
100
|
-
let c =
|
|
100
|
+
let c = pt(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 && ut({
|
|
105
105
|
...o,
|
|
106
106
|
eventId: c
|
|
107
107
|
})), this.setState({
|
|
@@ -117,37 +117,37 @@ var yt = 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 === F ? 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(F);
|
|
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" ? P.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 P.isValidElement(r) ? r : (e && mt && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
138
|
-
function
|
|
137
|
+
}, gt = /* @__PURE__ */ e(Me(), 1), _t = Be(), vt = Ze();
|
|
138
|
+
function yt(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(oe), r = _ ? window.localStorage.getItem(oe) : null, i = n == null ? r : n;
|
|
141
|
+
return i == null ? _ && qe() != null || Object.keys((t = e.kiosk) == null ? {} : t).length > 0 : i === "1";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function bt() {
|
|
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 xt() {
|
|
148
|
+
return bt() ? window.location.hostname.split(".")[0] : "main";
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function St(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 Dt(e) {
|
|
|
156
156
|
}
|
|
157
157
|
return "Active";
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Ct() {
|
|
160
160
|
return !1;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function wt(e) {
|
|
163
163
|
return e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
let t =
|
|
168
|
-
subDomain:
|
|
169
|
-
subscriptionStatus:
|
|
165
|
+
function Tt(e) {
|
|
166
|
+
if (Ct() || !bt() || yt(e) || !window.navigator.onLine) return null;
|
|
167
|
+
let t = wt({
|
|
168
|
+
subDomain: xt(),
|
|
169
|
+
subscriptionStatus: St(e)
|
|
170
170
|
});
|
|
171
171
|
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
175
|
-
var
|
|
174
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
175
|
+
var I = /*@__PURE__*/ p("ZodMiniType", (e, t) => {
|
|
176
176
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
177
|
-
|
|
177
|
+
Oe.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => ie(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => d(e, t, n), e.parseAsync = async (t, n) => f(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ne(e, t, n), e.check = (...n) => {
|
|
178
178
|
var r;
|
|
179
179
|
return e.clone({
|
|
180
180
|
...t,
|
|
@@ -184,95 +184,95 @@ var M = /*@__PURE__*/ p("ZodMiniType", (e, t) => {
|
|
|
184
184
|
onattach: []
|
|
185
185
|
} } : e)]
|
|
186
186
|
}, { parent: !0 });
|
|
187
|
-
}, e.with = e.check, e.clone = (t, n) =>
|
|
188
|
-
}),
|
|
189
|
-
|
|
187
|
+
}, e.with = e.check, e.clone = (t, n) => he(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
188
|
+
}), Et = /*@__PURE__*/ p("ZodMiniString", (e, t) => {
|
|
189
|
+
u.init(e, t), I.init(e, t);
|
|
190
190
|
});
|
|
191
191
|
// @__NO_SIDE_EFFECTS__
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function Dt(e) {
|
|
193
|
+
return fe(Et, e);
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
|
|
195
|
+
var Ot = /*@__PURE__*/ p("ZodMiniNumber", (e, t) => {
|
|
196
|
+
le.init(e, t), I.init(e, t);
|
|
197
197
|
});
|
|
198
198
|
// @__NO_SIDE_EFFECTS__
|
|
199
|
-
function
|
|
200
|
-
return
|
|
199
|
+
function L(e) {
|
|
200
|
+
return ge(Ot, e);
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
|
|
202
|
+
var kt = /*@__PURE__*/ p("ZodMiniNever", (e, t) => {
|
|
203
|
+
je.init(e, t), I.init(e, t);
|
|
204
204
|
});
|
|
205
205
|
// @__NO_SIDE_EFFECTS__
|
|
206
|
-
function
|
|
207
|
-
return xe(
|
|
206
|
+
function At(e) {
|
|
207
|
+
return xe(kt, e);
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
|
|
209
|
+
var jt = /*@__PURE__*/ p("ZodMiniArray", (e, t) => {
|
|
210
|
+
ce.init(e, t), I.init(e, t);
|
|
211
211
|
});
|
|
212
212
|
// @__NO_SIDE_EFFECTS__
|
|
213
|
-
function
|
|
214
|
-
return new
|
|
213
|
+
function Mt(e, t) {
|
|
214
|
+
return new jt({
|
|
215
215
|
type: "array",
|
|
216
216
|
element: e,
|
|
217
|
-
...
|
|
217
|
+
...me(t)
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
|
|
220
|
+
var Nt = /*@__PURE__*/ p("ZodMiniObject", (e, t) => {
|
|
221
|
+
ke.init(e, t), I.init(e, t), c(e, "shape", () => t.shape);
|
|
222
222
|
});
|
|
223
223
|
// @__NO_SIDE_EFFECTS__
|
|
224
|
-
function
|
|
225
|
-
return new
|
|
224
|
+
function R(e, t) {
|
|
225
|
+
return new Nt({
|
|
226
226
|
type: "object",
|
|
227
227
|
shape: e,
|
|
228
|
-
catchall: /* @__PURE__ */
|
|
229
|
-
...
|
|
228
|
+
catchall: /* @__PURE__ */ At(),
|
|
229
|
+
...me(t)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var Pt = /*@__PURE__*/ p("ZodMiniOptional", (e, t) => {
|
|
233
|
+
re.init(e, t), I.init(e, t);
|
|
234
234
|
});
|
|
235
235
|
// @__NO_SIDE_EFFECTS__
|
|
236
|
-
function
|
|
237
|
-
return new
|
|
236
|
+
function z(e) {
|
|
237
|
+
return new Pt({
|
|
238
238
|
type: "optional",
|
|
239
239
|
innerType: e
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
var
|
|
243
|
-
|
|
242
|
+
var Ft = /*@__PURE__*/ p("ZodMiniCustom", (e, t) => {
|
|
243
|
+
De.init(e, t), I.init(e, t);
|
|
244
244
|
});
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
247
|
-
return
|
|
246
|
+
function It(e, t = {}) {
|
|
247
|
+
return pe(Ft, 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 Lt = /* @__PURE__ */ R({
|
|
252
|
+
x: /* @__PURE__ */ L(),
|
|
253
|
+
y: /* @__PURE__ */ L()
|
|
254
|
+
}), Rt = /* @__PURE__ */ R({
|
|
255
|
+
leftTop: Lt,
|
|
256
|
+
rightBottom: Lt
|
|
257
|
+
}), zt = (/* @__PURE__ */ R({
|
|
258
|
+
name: /* @__PURE__ */ z(/* @__PURE__ */ Dt()),
|
|
259
|
+
externalId: /* @__PURE__ */ z(/* @__PURE__ */ Dt())
|
|
260
|
+
})).check(/* @__PURE__ */ It((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Bt = (/* @__PURE__ */ R({
|
|
261
|
+
booths: /* @__PURE__ */ z(/* @__PURE__ */ Mt(zt)),
|
|
262
|
+
exhibitors: /* @__PURE__ */ z(/* @__PURE__ */ Mt(zt))
|
|
263
|
+
})).check(/* @__PURE__ */ It((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")), Vt = /* @__PURE__ */
|
|
266
|
+
}, "Selector must contain booths or exhibitors")), Vt = /* @__PURE__ */ z(/* @__PURE__ */ R({ padding: /* @__PURE__ */ z(/* @__PURE__ */ L()) }));
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
269
|
function Ht(e) {
|
|
270
|
-
let t =
|
|
271
|
-
Object.values(t).length && (
|
|
270
|
+
let t = Qe(e);
|
|
271
|
+
Object.values(t).length && (st(t, !1), ot(t));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region src/utils/camera-map-settings.ts
|
|
275
|
-
function
|
|
275
|
+
function B(e) {
|
|
276
276
|
let t = {};
|
|
277
277
|
return e.x !== void 0 && e.y !== void 0 && (t.centerxy = `${e.x},${e.y}`), e.lat !== void 0 && e.lng !== void 0 && (t.center = `${e.lat},${e.lng}`), e.floor !== void 0 && (t.z = e.floor), e.bearing !== void 0 && (t.bearing = e.bearing), e.zoomTime !== void 0 && (t.zoomtime = e.zoomTime), t;
|
|
278
278
|
}
|
|
@@ -304,62 +304,61 @@ function Kt(e, t) {
|
|
|
304
304
|
}
|
|
305
305
|
//#endregion
|
|
306
306
|
//#region src/services/url-dispatch.ts
|
|
307
|
-
var
|
|
307
|
+
var V = !1;
|
|
308
308
|
function qt() {
|
|
309
|
-
rn(m()),
|
|
309
|
+
rn(m()), l(() => M.layerStore.layersLoaded, () => {
|
|
310
310
|
let e = m().camera;
|
|
311
|
-
Object.keys(e).length && G(
|
|
311
|
+
Object.keys(e).length && G(B(e));
|
|
312
312
|
let t = m().visibility;
|
|
313
|
-
Object.keys(t).length &&
|
|
313
|
+
Object.keys(t).length && D.setVisibility(t);
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
function Jt(e) {
|
|
317
|
-
|
|
317
|
+
rt({
|
|
318
318
|
offHistory: e,
|
|
319
|
-
onNavigate:
|
|
320
|
-
}), $t(),
|
|
321
|
-
|
|
319
|
+
onNavigate: U
|
|
320
|
+
}), $t(), H(), l(() => M.layerStore.layersLoaded, () => {
|
|
321
|
+
M.urlFilterManager && !M.urlFilterManager.isInitialized && M.urlFilterManager.initialize(), U(), de(W), de(ln), D.viewerMode && (D.menu = !0);
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
function Yt(e = "") {
|
|
325
|
-
|
|
325
|
+
j("?" + g(e.toString())), M.layerStore.layersLoaded ? Xt(e) : (H(), l(() => M.layerStore.layersLoaded, () => Xt(e)));
|
|
326
326
|
}
|
|
327
327
|
function Xt(e) {
|
|
328
328
|
var t;
|
|
329
329
|
let n = "?" + g(e), r = an(n);
|
|
330
|
-
rn(r), r.consent &&
|
|
331
|
-
let i = [...(t = r.intents) == null ? [] : t, ...
|
|
332
|
-
i.length && o(
|
|
330
|
+
rn(r), r.consent && tt(r.consent), r.camera && Object.keys(r.camera).length && G(B(r.camera)), r.visibility && Object.keys(r.visibility).length && D.setVisibility(r.visibility), $t(), U();
|
|
331
|
+
let i = [...(t = r.intents) == null ? [] : t, ...we(n).intents];
|
|
332
|
+
i.length && o(M.fp, i);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
let e =
|
|
336
|
-
return
|
|
334
|
+
function H() {
|
|
335
|
+
let e = A();
|
|
336
|
+
return ct(e.length > 1 ? g(e.substring(1)) : "");
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
|
|
338
|
+
function U() {
|
|
339
|
+
V = !0;
|
|
340
340
|
try {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
let e = r.roll;
|
|
341
|
+
Ht(new URLSearchParams(g(window.location.search)));
|
|
342
|
+
let { primary: e, oneShots: t } = be(A()), n = t.find((e) => e.type === "camera");
|
|
343
|
+
if (n) {
|
|
344
|
+
let e = n.roll;
|
|
346
345
|
G({
|
|
347
|
-
...
|
|
346
|
+
...B(n.camera),
|
|
348
347
|
roll: e
|
|
349
348
|
});
|
|
350
|
-
}
|
|
351
|
-
let
|
|
352
|
-
!
|
|
349
|
+
}
|
|
350
|
+
let r = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (D.heatmap || D.heatmapYah);
|
|
351
|
+
!H() && !r && Zt(e);
|
|
353
352
|
} finally {
|
|
354
|
-
|
|
353
|
+
V = !1;
|
|
355
354
|
}
|
|
356
|
-
ln(),
|
|
355
|
+
ln(), W();
|
|
357
356
|
}
|
|
358
357
|
function Zt(e) {
|
|
359
|
-
let t =
|
|
358
|
+
let t = M.fp;
|
|
360
359
|
switch (e.type) {
|
|
361
360
|
case "kiosk":
|
|
362
|
-
e.enabled === !0 ?
|
|
361
|
+
e.enabled === !0 ? D.kiosk = !0 : e.enabled === !1 && (D.kiosk = !1, D.resetUIScale());
|
|
363
362
|
return;
|
|
364
363
|
case "list":
|
|
365
364
|
t.showList(e.list);
|
|
@@ -376,16 +375,16 @@ function Zt(e) {
|
|
|
376
375
|
return;
|
|
377
376
|
case "route":
|
|
378
377
|
var n, r;
|
|
379
|
-
|
|
378
|
+
M.routeStore.setOnlyAccessible(e.accessible), M.routeStore.selectRoute(it((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), M.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && M.uiState.setRouteTitle(e.title);
|
|
380
379
|
return;
|
|
381
380
|
case "language":
|
|
382
|
-
|
|
381
|
+
Se(e.langId) && ye(e.langId);
|
|
383
382
|
return;
|
|
384
383
|
case "printPdf":
|
|
385
|
-
|
|
384
|
+
M.uiState.printingPdf = !0;
|
|
386
385
|
return;
|
|
387
386
|
case "visibility":
|
|
388
|
-
|
|
387
|
+
M.uiState.setVisibility(e.hidden.reduce((e, t) => ({
|
|
389
388
|
...e,
|
|
390
389
|
[t]: !1
|
|
391
390
|
}), {}));
|
|
@@ -400,7 +399,7 @@ function Zt(e) {
|
|
|
400
399
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
401
400
|
return;
|
|
402
401
|
case "ownedByFilters":
|
|
403
|
-
|
|
402
|
+
v.log("Skipping filter parameters in dispatchFromUrl (owned by URLFilterManager)");
|
|
404
403
|
return;
|
|
405
404
|
case "ownedByConfig": return;
|
|
406
405
|
case "select":
|
|
@@ -411,27 +410,27 @@ function Zt(e) {
|
|
|
411
410
|
function Qt(e) {
|
|
412
411
|
let { pathwayId: t, boothIds: n, exhibitorIds: r, tourId: i } = e;
|
|
413
412
|
if (i) {
|
|
414
|
-
let e =
|
|
415
|
-
e &&
|
|
413
|
+
let e = M.toursStore.getTourById(i);
|
|
414
|
+
e && Ae(() => {
|
|
416
415
|
var t;
|
|
417
|
-
|
|
416
|
+
M.uiState.setTourTitle(e.name), M.uiState.setTourDescription((t = e.description) == null ? "" : t), M.uiState.setIsMultiPointTour(!0), M.uiState.setMultiPointTourList(e.id);
|
|
418
417
|
});
|
|
419
418
|
}
|
|
420
|
-
let a =
|
|
421
|
-
if (
|
|
419
|
+
let a = M.boothStore.booths.filter((e) => n.includes(e.externalId)), o = M.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), s = [...a, ...o];
|
|
420
|
+
if (Ke()) {
|
|
422
421
|
let e = Gt(s.map((e) => e.layer.name));
|
|
423
|
-
e &&
|
|
422
|
+
e && M.fp.activateFloor({ name: e });
|
|
424
423
|
}
|
|
425
|
-
(n.length > 0 || r.length > 0) &&
|
|
426
|
-
|
|
424
|
+
(n.length > 0 || r.length > 0) && M.fp.highlightEntities([...n, ...r]), M.layerStore.showPathWay(t), s.length > 0 && Ae(() => {
|
|
425
|
+
M.uiState.moveToRect = O.fromUnion(...s.map((e) => e.rect).filter(Boolean)), M.uiState.rollReset = !0;
|
|
427
426
|
});
|
|
428
427
|
}
|
|
429
428
|
function $t() {
|
|
430
|
-
let e =
|
|
429
|
+
let e = A(), { oneShots: t } = be(e);
|
|
431
430
|
for (let e of t) en(e);
|
|
432
|
-
e.startsWith("?preview=") &&
|
|
433
|
-
let n =
|
|
434
|
-
n !== null &&
|
|
431
|
+
e.startsWith("?preview=") && j("?"), A().includes("copy_exh") && j("?");
|
|
432
|
+
let n = Ue(A());
|
|
433
|
+
n !== null && j("?" + n), D.previewExhibitor && j("?" + D.previewExhibitor.slug), nn();
|
|
435
434
|
}
|
|
436
435
|
function en(e) {
|
|
437
436
|
switch (e.type) {
|
|
@@ -440,70 +439,70 @@ function en(e) {
|
|
|
440
439
|
return;
|
|
441
440
|
case "blueDot": {
|
|
442
441
|
var t, n;
|
|
443
|
-
let r = new
|
|
444
|
-
|
|
442
|
+
let r = new at(e.x, e.y, (t = M.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
443
|
+
l(() => M.layerStore.layersLoaded, () => M.routeStore.selectCurrentPosition(r, !0, 1));
|
|
445
444
|
return;
|
|
446
445
|
}
|
|
447
446
|
case "viewerMode":
|
|
448
|
-
|
|
447
|
+
_ && (e.enabled ? localStorage.setItem(h, "true") : (localStorage.removeItem(h), localStorage.removeItem(ee)));
|
|
449
448
|
return;
|
|
450
449
|
case "previewMode":
|
|
451
|
-
|
|
450
|
+
_ && (e.enabled ? localStorage.setItem(se, "true") : (localStorage.removeItem(se), localStorage.removeItem(ae)));
|
|
452
451
|
return;
|
|
453
452
|
case "uiScale":
|
|
454
|
-
e.scale === null ?
|
|
453
|
+
e.scale === null ? v.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : M.uiState.setUIScale(e.scale, !0);
|
|
455
454
|
return;
|
|
456
455
|
case "resetUiScale":
|
|
457
|
-
|
|
456
|
+
M.uiState.resetUIScale();
|
|
458
457
|
return;
|
|
459
458
|
case "legacyBookmarks": {
|
|
460
|
-
let t = e.appendExhibitorId === null ? void 0 :
|
|
461
|
-
|
|
459
|
+
let t = e.appendExhibitorId === null ? void 0 : M.exhibitorStore.exhibitorById.get(e.appendExhibitorId);
|
|
460
|
+
j(t ? "?" + t.slug : "?bookmarks");
|
|
462
461
|
return;
|
|
463
462
|
}
|
|
464
463
|
}
|
|
465
464
|
}
|
|
466
465
|
function tn(e) {
|
|
467
|
-
|
|
466
|
+
et(), e ? (D.heatmapYah = !0, D.monochrome = !0, D.hideLogoInBooth = !0, D.hideHeaderLogo = !0, D.disableBookmarked = !0) : D.heatmap = !0;
|
|
468
467
|
}
|
|
469
468
|
function nn() {
|
|
470
|
-
let e = Kt(
|
|
471
|
-
let t =
|
|
469
|
+
let e = Kt(A(), (e) => {
|
|
470
|
+
let t = M.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
472
471
|
return t == null ? void 0 : t.name;
|
|
473
472
|
});
|
|
474
|
-
e !== null &&
|
|
473
|
+
e !== null && j(e);
|
|
475
474
|
}
|
|
476
475
|
function rn(e) {
|
|
477
|
-
e.noOverlay !== void 0 && (
|
|
476
|
+
e.noOverlay !== void 0 && (D.hideOverlay = e.noOverlay), e.monochrome && (D.monochrome = !0), e.hideHeaderLogo && (D.hideHeaderLogo = !0), e.hideLogoInBooth && (D.hideLogoInBooth = !0), e.disableFeatured && M.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (D.disableBookmarked = !0), e.disableGps && M.routeStore.setGpsTrackingEnabled(!1), e.heatmap && r(e.heatmap) && tn(e.heatmap.variant === "yah");
|
|
478
477
|
}
|
|
479
478
|
function an(e) {
|
|
480
|
-
return
|
|
479
|
+
return ve(Te, e).value;
|
|
481
480
|
}
|
|
482
481
|
var on = null, sn = null, cn = null;
|
|
483
482
|
function ln() {
|
|
484
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } = un(), i =
|
|
485
|
-
if (
|
|
486
|
-
let a =
|
|
487
|
-
|
|
483
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = un(), i = M.urlFilterManager.filterSearch();
|
|
484
|
+
if (V) return;
|
|
485
|
+
let a = Ce(e) || i;
|
|
486
|
+
A() !== a && (t !== on || n !== sn || r !== cn ? Ye(a) : j(a), on = t, sn = n, cn = r);
|
|
488
487
|
}
|
|
489
488
|
function un() {
|
|
490
|
-
let e =
|
|
489
|
+
let e = D.selectedExhibitor, t = D.selectedBooth, n = D.selectedEventItem, r = D.selectedRoute, i = D.selectedSpeaker, a = D.setKioskModeEnabled, o = D.list, s;
|
|
491
490
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
492
491
|
var c;
|
|
493
|
-
let e =
|
|
492
|
+
let e = M.routePlannerStore;
|
|
494
493
|
s = {
|
|
495
494
|
type: "planner",
|
|
496
495
|
fromBookmarks: e.source === "bookmarks",
|
|
497
496
|
items: e.items.map((e) => e.entity.slug).filter(Boolean),
|
|
498
497
|
from: ((c = e.startPoint) == null ? void 0 : c.slug) || void 0
|
|
499
498
|
};
|
|
500
|
-
} else if (r && !
|
|
499
|
+
} else if (r && !D.isMultiPointRoute) {
|
|
501
500
|
var l;
|
|
502
501
|
s = {
|
|
503
502
|
type: "route",
|
|
504
|
-
to: r.to instanceof
|
|
505
|
-
from: r.from instanceof
|
|
506
|
-
accessible:
|
|
503
|
+
to: r.to instanceof nt ? r.to.slug : void 0,
|
|
504
|
+
from: r.from instanceof nt ? r.from.slug : void 0,
|
|
505
|
+
accessible: M.routeStore.onlyAccessible,
|
|
507
506
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
508
507
|
};
|
|
509
508
|
} else if (e) s = {
|
|
@@ -540,7 +539,7 @@ function un() {
|
|
|
540
539
|
var u, d;
|
|
541
540
|
s = {
|
|
542
541
|
type: "slug",
|
|
543
|
-
slug: (u = (d =
|
|
542
|
+
slug: (u = (d = D.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
544
543
|
};
|
|
545
544
|
break;
|
|
546
545
|
case "search":
|
|
@@ -571,38 +570,30 @@ function un() {
|
|
|
571
570
|
eventItem: n
|
|
572
571
|
};
|
|
573
572
|
}
|
|
574
|
-
function
|
|
575
|
-
let e =
|
|
576
|
-
e ? r = e.name : t ? r = t.name : n ? r = n.name :
|
|
573
|
+
function W() {
|
|
574
|
+
let e = D.selectedExhibitor, t = D.selectedEventItem, n = D.selectedSpeaker, r = "";
|
|
575
|
+
e ? r = e.name : t ? r = t.name : n ? r = n.name : D.list.type === "search" && D.list.text ? r = "`" + (D.list.text || "") + "`" : D.list.type === "multi-point-tour" && D.tourTitle && (r = D.tourTitle), r.length && (r += " – "), r += k.title, k.subtitle && (r += " – " + k.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
|
|
577
576
|
}
|
|
578
577
|
function G(e) {
|
|
579
578
|
try {
|
|
580
|
-
if (
|
|
581
|
-
let t =
|
|
582
|
-
t &&
|
|
579
|
+
if (D.setMapSettings(e), e.z) {
|
|
580
|
+
let t = M.layerStore.layers.find((t) => t.name === e.z);
|
|
581
|
+
t && M.layerStore.updateVisibility(t, !0);
|
|
583
582
|
}
|
|
584
583
|
} catch (e) {
|
|
585
|
-
console.error("Failed to process
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
function fn() {
|
|
589
|
-
try {
|
|
590
|
-
let e = sessionStorage.getItem(re);
|
|
591
|
-
e && G(JSON.parse(e));
|
|
592
|
-
} catch (e) {
|
|
593
|
-
console.error("Failed to process or save map settings.", e);
|
|
584
|
+
console.error("Failed to process map settings.", e);
|
|
594
585
|
}
|
|
595
586
|
}
|
|
596
587
|
//#endregion
|
|
597
588
|
//#region src/tools/reset.ts
|
|
598
|
-
function
|
|
589
|
+
function dn() {
|
|
599
590
|
K("floorplan"), K("__searchi"), K("__mobxGlobals"), K("__store"), K("__mobxInstanceCount");
|
|
600
591
|
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && K(e);
|
|
601
592
|
}
|
|
602
593
|
function K(e) {
|
|
603
|
-
|
|
594
|
+
fn(e) ? delete window[e] : window[e] = void 0;
|
|
604
595
|
}
|
|
605
|
-
function
|
|
596
|
+
function fn(e) {
|
|
606
597
|
let t = Object.getOwnPropertyDescriptor(window, e);
|
|
607
598
|
return t && t.configurable;
|
|
608
599
|
}
|
|
@@ -655,7 +646,7 @@ function q(e) {
|
|
|
655
646
|
entity: e.entity,
|
|
656
647
|
isEnded: e.isEnded
|
|
657
648
|
};
|
|
658
|
-
case
|
|
649
|
+
case te: return {
|
|
659
650
|
id: e.id,
|
|
660
651
|
name: Y(e.name),
|
|
661
652
|
entity: e.entity
|
|
@@ -680,33 +671,33 @@ function Y(e) {
|
|
|
680
671
|
}
|
|
681
672
|
//#endregion
|
|
682
673
|
//#region src/floorplan.ready.tsx
|
|
683
|
-
var X =
|
|
684
|
-
(0,
|
|
685
|
-
var
|
|
674
|
+
var X = Pe(), Z = (0, gt.default)("efp:api");
|
|
675
|
+
(0, vt.install)();
|
|
676
|
+
var pn = class extends s {
|
|
686
677
|
constructor(...e) {
|
|
687
678
|
super(...e), this.root = void 0;
|
|
688
679
|
}
|
|
689
680
|
init() {
|
|
690
|
-
qt(), this.ignoreQuery || Jt(this.offHistory),
|
|
681
|
+
qt(), this.ignoreQuery || Jt(this.offHistory), Ge("load"), M.fp = this, tt(this.consent), w(C.Load, ""), this.root = (0, _t.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(ht, { children: /* @__PURE__ */ (0, X.jsx)(lt, {
|
|
691
682
|
offHistory: this.offHistory,
|
|
692
683
|
consent: this.consent
|
|
693
|
-
}) })),
|
|
694
|
-
if (this.resolveReady(), !
|
|
684
|
+
}) })), w(C.Rendered, ""), Ee(() => M.layerStore.layersLoaded, () => {
|
|
685
|
+
if (this.resolveReady(), !M.initialized) {
|
|
695
686
|
var e;
|
|
696
687
|
(e = this.onInit) == null || e.call(this, this);
|
|
697
688
|
}
|
|
698
|
-
|
|
689
|
+
M.initialized = !0;
|
|
699
690
|
});
|
|
700
|
-
let e =
|
|
701
|
-
e && import("./bootIntercom-
|
|
691
|
+
let e = Tt(k);
|
|
692
|
+
e && import("./bootIntercom-DxJQ9eFU.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
702
693
|
}
|
|
703
694
|
selectBooth(e) {
|
|
704
695
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
705
696
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
706
697
|
return;
|
|
707
698
|
}
|
|
708
|
-
let t =
|
|
709
|
-
|
|
699
|
+
let t = M.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
700
|
+
M.selectBooth(t);
|
|
710
701
|
}
|
|
711
702
|
selectExhibitor(e) {
|
|
712
703
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -714,13 +705,13 @@ var hn = class extends s {
|
|
|
714
705
|
return;
|
|
715
706
|
}
|
|
716
707
|
if (!(e != null && e.length)) {
|
|
717
|
-
|
|
708
|
+
M.uiState.menu = !1, M.searchStore.resetSearchBox(), M.uiState.details = null;
|
|
718
709
|
return;
|
|
719
710
|
}
|
|
720
|
-
let t =
|
|
711
|
+
let t = M.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
721
712
|
if (!(t != null && t.length)) return;
|
|
722
713
|
if (typeof e == "string") {
|
|
723
|
-
|
|
714
|
+
M.selectExhibitor(t[0]), M.moveToList([t[0]]);
|
|
724
715
|
return;
|
|
725
716
|
}
|
|
726
717
|
let n = t.flatMap((e) => e.booths.map((e) => e.layer)), { description: r } = n.reduce((e, t) => (e.freq[t.description] = (e.freq[t.description] || 0) + 1, e.freq[t.description] > e.maxCount && (e.maxCount = e.freq[t.description], e.mostFrequent = t), e), {
|
|
@@ -728,25 +719,25 @@ var hn = class extends s {
|
|
|
728
719
|
mostFrequent: n[0],
|
|
729
720
|
maxCount: 0
|
|
730
721
|
}).mostFrequent;
|
|
731
|
-
|
|
722
|
+
M.layerStore.updateVisibility(r, !0), M.uiState.menu = !1, M.searchStore.resetSearchBox(), M.uiState.details = null, M.uiState.list = {
|
|
732
723
|
type: "filter",
|
|
733
724
|
items: t,
|
|
734
725
|
query: {
|
|
735
726
|
key: "exhibitors",
|
|
736
727
|
value: t.map((e) => e.externalId).join(",")
|
|
737
728
|
}
|
|
738
|
-
},
|
|
729
|
+
}, M.moveToList();
|
|
739
730
|
}
|
|
740
731
|
highlightExhibitors(e) {
|
|
741
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
732
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), M.boothStore.highlightedByExternalIds = [], M.exhibitorStore.highlightedByExternalIds = [...e];
|
|
742
733
|
}
|
|
743
734
|
highlightBooths(e) {
|
|
744
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
735
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), M.exhibitorStore.highlightedByExternalIds = [], M.boothStore.highlightedByExternalIds = [...e];
|
|
745
736
|
}
|
|
746
737
|
highlightEntities(e) {
|
|
747
738
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
748
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
749
|
-
|
|
739
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = x(e);
|
|
740
|
+
M.boothStore.highlightedByExternalIds = [...t], M.exhibitorStore.highlightedByExternalIds = [...n];
|
|
750
741
|
}
|
|
751
742
|
selectRoute(e, t) {
|
|
752
743
|
if (Array.isArray(e)) {
|
|
@@ -756,10 +747,10 @@ var hn = class extends s {
|
|
|
756
747
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
757
748
|
return;
|
|
758
749
|
}
|
|
759
|
-
|
|
750
|
+
M.routeStore.selectRoute(new E(Q(n), Q(r), t.map(Q)));
|
|
760
751
|
return;
|
|
761
752
|
}
|
|
762
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
753
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), M.routeStore.selectRoute(new E(Q(e), Q(t)));
|
|
763
754
|
}
|
|
764
755
|
getOptimizedRoutes(e) {
|
|
765
756
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -772,19 +763,19 @@ var hn = class extends s {
|
|
|
772
763
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
773
764
|
a ? a.push(e) : n.set(t, [e]);
|
|
774
765
|
}
|
|
775
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
766
|
+
return Array.from(n.values()).map((e) => ({ waypoints: Ve(e.map((e) => [e.name, {
|
|
776
767
|
x: e.rect.center.x,
|
|
777
768
|
y: e.rect.center.y
|
|
778
769
|
}])) }));
|
|
779
770
|
}
|
|
780
771
|
selectCurrentPosition(e, t, n) {
|
|
781
772
|
var r;
|
|
782
|
-
let i =
|
|
783
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
773
|
+
let i = S(e.x) && S(e.y), a = S(e.lng) && S(e.lat);
|
|
774
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), M.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
784
775
|
}
|
|
785
776
|
setBookmarks(e) {
|
|
786
777
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
787
|
-
let t =
|
|
778
|
+
let t = M.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
788
779
|
t && (t.bookmarked = e.bookmarked);
|
|
789
780
|
});
|
|
790
781
|
}
|
|
@@ -803,29 +794,29 @@ var hn = class extends s {
|
|
|
803
794
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
804
795
|
return;
|
|
805
796
|
}
|
|
806
|
-
let r =
|
|
797
|
+
let r = $e("bookmarked"), i = {
|
|
807
798
|
exhibitor: {
|
|
808
799
|
existingIds: new Set(r.exhibitors || []),
|
|
809
|
-
finder: (e) =>
|
|
810
|
-
replacer: (e) =>
|
|
800
|
+
finder: (e) => M.exhibitorStore.findExhibitor(e),
|
|
801
|
+
replacer: (e) => M.exhibitorStore.replaceBookmarked(e)
|
|
811
802
|
},
|
|
812
803
|
event: {
|
|
813
804
|
existingIds: new Set(r.events || []),
|
|
814
|
-
finder: (e) =>
|
|
815
|
-
replacer: (e) =>
|
|
805
|
+
finder: (e) => M.eventStore.findByNameOrSlug(e),
|
|
806
|
+
replacer: (e) => M.eventStore.replaceBookmarked(e)
|
|
816
807
|
},
|
|
817
808
|
speaker: {
|
|
818
809
|
existingIds: new Set(r.speakers || []),
|
|
819
|
-
finder: (e) =>
|
|
820
|
-
replacer: (e) =>
|
|
810
|
+
finder: (e) => M.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
811
|
+
replacer: (e) => M.speakerStore.replaceBookmarked(e)
|
|
821
812
|
},
|
|
822
813
|
booth: {
|
|
823
814
|
existingIds: new Set(r.booths || []),
|
|
824
815
|
finder: (e) => {
|
|
825
|
-
let t =
|
|
816
|
+
let t = M.boothStore.findBooth(e);
|
|
826
817
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
827
818
|
},
|
|
828
|
-
replacer: (e) =>
|
|
819
|
+
replacer: (e) => M.boothStore.replaceBookmarked(e)
|
|
829
820
|
}
|
|
830
821
|
};
|
|
831
822
|
e.forEach((e) => {
|
|
@@ -845,16 +836,16 @@ var hn = class extends s {
|
|
|
845
836
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
846
837
|
return;
|
|
847
838
|
}
|
|
848
|
-
let r =
|
|
839
|
+
let r = $e("visited"), i = {
|
|
849
840
|
exhibitor: {
|
|
850
841
|
existingIds: new Set(r.exhibitors || []),
|
|
851
|
-
finder: (e) =>
|
|
852
|
-
replacer: (e) =>
|
|
842
|
+
finder: (e) => M.exhibitorStore.findExhibitor(e),
|
|
843
|
+
replacer: (e) => M.exhibitorStore.replaceVisited(e)
|
|
853
844
|
},
|
|
854
845
|
event: {
|
|
855
846
|
existingIds: new Set(r.events || []),
|
|
856
|
-
finder: (e) =>
|
|
857
|
-
replacer: (e) =>
|
|
847
|
+
finder: (e) => M.eventStore.findByNameOrSlug(e),
|
|
848
|
+
replacer: (e) => M.eventStore.replaceVisited(e)
|
|
858
849
|
}
|
|
859
850
|
};
|
|
860
851
|
e.forEach((e) => {
|
|
@@ -869,94 +860,94 @@ var hn = class extends s {
|
|
|
869
860
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
870
861
|
return;
|
|
871
862
|
}
|
|
872
|
-
|
|
863
|
+
M.routeStore.setMarkers(e);
|
|
873
864
|
}
|
|
874
865
|
selectMarker(e, t = !0) {
|
|
875
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
866
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), M.routeStore.selectMarker(e, t);
|
|
876
867
|
}
|
|
877
868
|
drawCircles(e) {
|
|
878
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
869
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), M.uiState.debugCircles = e;
|
|
879
870
|
}
|
|
880
871
|
checkRoutes() {
|
|
881
|
-
|
|
872
|
+
M.routeStore.checkRoutes();
|
|
882
873
|
}
|
|
883
874
|
updateLayerVisibility(e, t) {
|
|
884
|
-
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"),
|
|
875
|
+
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"), M.layerStore.updateVisibility(e, t);
|
|
885
876
|
}
|
|
886
877
|
getCenterCoordinates() {
|
|
887
|
-
return
|
|
878
|
+
return M.fp.getCenterCoordinates();
|
|
888
879
|
}
|
|
889
880
|
exhibitorsList() {
|
|
890
|
-
return
|
|
881
|
+
return M.exhibitorStore.exhibitors.map((e) => q(e));
|
|
891
882
|
}
|
|
892
883
|
boothsList() {
|
|
893
|
-
return
|
|
884
|
+
return M.boothStore.booths.map((e) => q(e));
|
|
894
885
|
}
|
|
895
886
|
categoriesList() {
|
|
896
|
-
return
|
|
887
|
+
return M.categoryStore.categories.map((e) => q(e));
|
|
897
888
|
}
|
|
898
889
|
selectCategory(e) {
|
|
899
890
|
if (e == null || typeof e != "string") {
|
|
900
|
-
|
|
891
|
+
M.searchStore.selectSearch();
|
|
901
892
|
return;
|
|
902
893
|
}
|
|
903
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
894
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = M.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
904
895
|
if (!n) {
|
|
905
896
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
906
897
|
return;
|
|
907
898
|
}
|
|
908
|
-
|
|
899
|
+
M.selectCategory(n);
|
|
909
900
|
}
|
|
910
901
|
select(e) {
|
|
911
902
|
if (typeof e != "string") {
|
|
912
903
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
913
904
|
return;
|
|
914
905
|
}
|
|
915
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
906
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = M.boothStore.booths.find((e) => {
|
|
916
907
|
var t, r, i;
|
|
917
908
|
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;
|
|
918
909
|
});
|
|
919
910
|
if (r) {
|
|
920
|
-
setTimeout(() =>
|
|
911
|
+
setTimeout(() => M.selectBooth(r), 250);
|
|
921
912
|
return;
|
|
922
913
|
}
|
|
923
|
-
let i =
|
|
914
|
+
let i = M.eventStore.eventItems.find((e) => {
|
|
924
915
|
var t, r;
|
|
925
916
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
926
917
|
});
|
|
927
918
|
if (i) {
|
|
928
|
-
|
|
919
|
+
M.selectEventItem(i, !0);
|
|
929
920
|
return;
|
|
930
921
|
}
|
|
931
|
-
let a =
|
|
922
|
+
let a = M.exhibitorStore.exhibitors.find((e) => {
|
|
932
923
|
var t, r;
|
|
933
924
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
934
925
|
});
|
|
935
926
|
if (a) {
|
|
936
|
-
setTimeout(() =>
|
|
927
|
+
setTimeout(() => M.clickExhibitor(a), 250);
|
|
937
928
|
return;
|
|
938
929
|
}
|
|
939
|
-
let o =
|
|
930
|
+
let o = M.categoryStore.categories.find((e) => e.slug === t);
|
|
940
931
|
if (o) {
|
|
941
|
-
|
|
932
|
+
M.selectCategory(o);
|
|
942
933
|
return;
|
|
943
934
|
}
|
|
944
|
-
let s =
|
|
935
|
+
let s = M.speakerStore.findBySlug(t);
|
|
945
936
|
if (s) {
|
|
946
|
-
|
|
937
|
+
M.selectSpeaker(s, !0);
|
|
947
938
|
return;
|
|
948
939
|
}
|
|
949
|
-
t.includes("heatmap=true") ||
|
|
940
|
+
t.includes("heatmap=true") || M.searchStore.selectSearch(t);
|
|
950
941
|
}
|
|
951
942
|
showList(e) {
|
|
952
943
|
let t = {
|
|
953
|
-
bookmarks: () =>
|
|
954
|
-
visited: () =>
|
|
955
|
-
sessions: () =>
|
|
956
|
-
exhibitors: () =>
|
|
957
|
-
speakers: () =>
|
|
958
|
-
tours: () =>
|
|
959
|
-
language: () =>
|
|
944
|
+
bookmarks: () => M.selectBookmarks(),
|
|
945
|
+
visited: () => M.selectVisited(),
|
|
946
|
+
sessions: () => M.selectSessions(),
|
|
947
|
+
exhibitors: () => M.selectExhibitors(),
|
|
948
|
+
speakers: () => M.selectSpeakers(),
|
|
949
|
+
tours: () => M.selectTours(),
|
|
950
|
+
language: () => M.selectLanguage()
|
|
960
951
|
}, n = t[e];
|
|
961
952
|
if (!n) {
|
|
962
953
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -969,60 +960,60 @@ var hn = class extends s {
|
|
|
969
960
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
970
961
|
return;
|
|
971
962
|
}
|
|
972
|
-
let t =
|
|
973
|
-
t ?
|
|
963
|
+
let t = M.toursStore.getTourById(e);
|
|
964
|
+
t ? M.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), M.selectTours());
|
|
974
965
|
}
|
|
975
966
|
openPlanner(e = {}) {
|
|
976
967
|
if (typeof e != "object" || !e) {
|
|
977
968
|
$("openPlanner", "An options object must be passed.", "EFP001A00");
|
|
978
969
|
return;
|
|
979
970
|
}
|
|
980
|
-
let t = e.from ?
|
|
981
|
-
if (e.fromBookmarks)
|
|
971
|
+
let t = e.from ? T(e.from) : null;
|
|
972
|
+
if (e.fromBookmarks) M.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
982
973
|
else {
|
|
983
974
|
var n;
|
|
984
|
-
|
|
975
|
+
M.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
985
976
|
}
|
|
986
977
|
}
|
|
987
978
|
startBuildRoute() {
|
|
988
|
-
|
|
979
|
+
M.uiState.startBuildRoute();
|
|
989
980
|
}
|
|
990
981
|
applyParameters(e) {
|
|
991
982
|
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), Yt(e);
|
|
992
983
|
}
|
|
993
984
|
getVisibility() {
|
|
994
|
-
return
|
|
985
|
+
return M.uiState.visibility;
|
|
995
986
|
}
|
|
996
987
|
setVisibility(e) {
|
|
997
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
988
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), M.uiState.setVisibility(e);
|
|
998
989
|
}
|
|
999
990
|
findLocation() {
|
|
1000
|
-
|
|
991
|
+
M.routeStore.findLocation();
|
|
1001
992
|
}
|
|
1002
993
|
zoomIn() {
|
|
1003
|
-
|
|
994
|
+
M.uiState.zoomIn();
|
|
1004
995
|
}
|
|
1005
996
|
zoomOut() {
|
|
1006
|
-
|
|
997
|
+
M.uiState.zoomOut();
|
|
1007
998
|
}
|
|
1008
999
|
switchView() {
|
|
1009
|
-
|
|
1000
|
+
M.maplibreStore.activateMaplibre();
|
|
1010
1001
|
}
|
|
1011
1002
|
setCamera(e) {
|
|
1012
1003
|
Z("setCamera called with camera=%O", e);
|
|
1013
|
-
let t =
|
|
1004
|
+
let t = ue.safeParse(e);
|
|
1014
1005
|
if (!t.success) {
|
|
1015
1006
|
$("setCamera", t.error.message, "EFP001B00");
|
|
1016
1007
|
return;
|
|
1017
1008
|
}
|
|
1018
|
-
|
|
1009
|
+
M.uiState.setMapSettings(B(t.data));
|
|
1019
1010
|
}
|
|
1020
1011
|
getCamera() {
|
|
1021
|
-
return Ut(
|
|
1012
|
+
return Ut(M.uiState.mapSettings);
|
|
1022
1013
|
}
|
|
1023
1014
|
zoomTo(e, t) {
|
|
1024
1015
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
1025
|
-
let n =
|
|
1016
|
+
let n = Bt.safeParse(e);
|
|
1026
1017
|
if (!n.success) {
|
|
1027
1018
|
$("zoomTo", n.error.message, "EFP001600");
|
|
1028
1019
|
return;
|
|
@@ -1038,7 +1029,7 @@ var hn = class extends s {
|
|
|
1038
1029
|
getBounds(e) {
|
|
1039
1030
|
var t, n;
|
|
1040
1031
|
Z("getBounds called with selectors=%O", e);
|
|
1041
|
-
let r =
|
|
1032
|
+
let r = Bt.safeParse(e);
|
|
1042
1033
|
if (!r.success) {
|
|
1043
1034
|
$("getBounds", r.error.message, "EFP001400");
|
|
1044
1035
|
return;
|
|
@@ -1046,11 +1037,11 @@ var hn = class extends s {
|
|
|
1046
1037
|
let i = [];
|
|
1047
1038
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1048
1039
|
let t;
|
|
1049
|
-
e.externalId ? t =
|
|
1040
|
+
e.externalId ? t = M.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = M.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1050
1041
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1051
1042
|
var t;
|
|
1052
1043
|
let n;
|
|
1053
|
-
e.externalId ? n =
|
|
1044
|
+
e.externalId ? n = M.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = M.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1054
1045
|
e.rect && i.push(e.rect);
|
|
1055
1046
|
});
|
|
1056
1047
|
}), i.length === 0) return;
|
|
@@ -1068,10 +1059,10 @@ var hn = class extends s {
|
|
|
1068
1059
|
}
|
|
1069
1060
|
fitBounds(e, t) {
|
|
1070
1061
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1071
|
-
|
|
1062
|
+
M.uiState.fitBounds();
|
|
1072
1063
|
return;
|
|
1073
1064
|
}
|
|
1074
|
-
let n =
|
|
1065
|
+
let n = Rt.safeParse(e);
|
|
1075
1066
|
if (!n.success) {
|
|
1076
1067
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1077
1068
|
return;
|
|
@@ -1088,17 +1079,17 @@ var hn = class extends s {
|
|
|
1088
1079
|
x: e.rightBottom.x,
|
|
1089
1080
|
y: e.rightBottom.y
|
|
1090
1081
|
});
|
|
1091
|
-
|
|
1082
|
+
M.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1092
1083
|
}
|
|
1093
1084
|
getBoothRect(e) {
|
|
1094
1085
|
var t;
|
|
1095
1086
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1096
|
-
let n = (t =
|
|
1097
|
-
return n ?
|
|
1087
|
+
let n = (t = T(e)) == null ? void 0 : t.rect;
|
|
1088
|
+
return n ? hn.fromBox(n) : void 0;
|
|
1098
1089
|
}
|
|
1099
1090
|
convertToGeo(e, t) {
|
|
1100
1091
|
var n;
|
|
1101
|
-
if (!(!(
|
|
1092
|
+
if (!(!(N == null || (n = N.properties) == null) && n.config)) {
|
|
1102
1093
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1103
1094
|
return;
|
|
1104
1095
|
}
|
|
@@ -1106,11 +1097,11 @@ var hn = class extends s {
|
|
|
1106
1097
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1107
1098
|
return;
|
|
1108
1099
|
}
|
|
1109
|
-
return
|
|
1100
|
+
return He(e, t, N.properties.config);
|
|
1110
1101
|
}
|
|
1111
1102
|
getGeoConfig() {
|
|
1112
1103
|
var e, t;
|
|
1113
|
-
let n =
|
|
1104
|
+
let n = N == null || (e = N.properties) == null ? void 0 : e.config;
|
|
1114
1105
|
return n ? {
|
|
1115
1106
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1116
1107
|
p0: n.p0,
|
|
@@ -1120,16 +1111,16 @@ var hn = class extends s {
|
|
|
1120
1111
|
}
|
|
1121
1112
|
unstable_destroy() {
|
|
1122
1113
|
let e = window.__efpElement.firstChild;
|
|
1123
|
-
|
|
1114
|
+
dn(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", i), M.maplibreStore.dispose(), Je(), Xe(), We(), this.root.unmount(), e.remove();
|
|
1124
1115
|
}
|
|
1125
1116
|
search(e) {
|
|
1126
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1117
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), M.fuzzySearchEngineStore.loadEngine().then(() => (M.searchStore.selectSearch(e), M.uiState.fuzzySearchItems.map((e) => ({
|
|
1127
1118
|
item: q(e.item),
|
|
1128
1119
|
score: e.score
|
|
1129
1120
|
}))));
|
|
1130
1121
|
}
|
|
1131
1122
|
getFloors() {
|
|
1132
|
-
return
|
|
1123
|
+
return M.layerStore.floors.map((e) => ({
|
|
1133
1124
|
name: e.name,
|
|
1134
1125
|
shortName: e.shortName,
|
|
1135
1126
|
description: e.description,
|
|
@@ -1166,7 +1157,7 @@ var hn = class extends s {
|
|
|
1166
1157
|
}
|
|
1167
1158
|
}
|
|
1168
1159
|
showPathway(e, t) {
|
|
1169
|
-
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ?
|
|
1160
|
+
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? x(t) : {
|
|
1170
1161
|
boothExternalIds: [],
|
|
1171
1162
|
exhibitorExternalIds: []
|
|
1172
1163
|
};
|
|
@@ -1177,59 +1168,59 @@ var hn = class extends s {
|
|
|
1177
1168
|
});
|
|
1178
1169
|
}
|
|
1179
1170
|
showPathwayOnly(e, t) {
|
|
1180
|
-
this.activateFloor({ name: t }),
|
|
1181
|
-
let n =
|
|
1171
|
+
this.activateFloor({ name: t }), M.layerStore.showPathWay(e), M.uiState.setPathwayOnlyMode(!0);
|
|
1172
|
+
let n = M.layerStore.findLayer(e), r = M.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1182
1173
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1183
1174
|
var a;
|
|
1184
1175
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1185
|
-
|
|
1176
|
+
M.uiState.moveToRect = e.clone();
|
|
1186
1177
|
}
|
|
1187
1178
|
}
|
|
1188
1179
|
hidePathways() {
|
|
1189
|
-
this.highlightBooths([]),
|
|
1180
|
+
this.highlightBooths([]), M.layerStore.hidePathways(), M.uiState.setPathwayOnlyMode(!1);
|
|
1190
1181
|
}
|
|
1191
1182
|
showSearch() {
|
|
1192
|
-
|
|
1183
|
+
M.selectSearch("");
|
|
1193
1184
|
}
|
|
1194
1185
|
changeLanguage(e) {
|
|
1195
1186
|
var t;
|
|
1196
1187
|
let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1197
|
-
if (!
|
|
1198
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1188
|
+
if (!Se(n)) {
|
|
1189
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${_e().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1199
1190
|
return;
|
|
1200
1191
|
}
|
|
1201
|
-
|
|
1192
|
+
ye(n);
|
|
1202
1193
|
}
|
|
1203
1194
|
isGpsTrackingEnabled() {
|
|
1204
|
-
return
|
|
1195
|
+
return M.routeStore.gpsEnabled;
|
|
1205
1196
|
}
|
|
1206
1197
|
setGpsTrackingEnabled(e) {
|
|
1207
|
-
|
|
1198
|
+
M.routeStore.setGpsTrackingEnabled(e);
|
|
1208
1199
|
}
|
|
1209
1200
|
deselectCurrentPosition() {
|
|
1210
|
-
|
|
1201
|
+
M.routeStore.selectCurrentPosition(null, !1);
|
|
1211
1202
|
}
|
|
1212
1203
|
deselectRoute() {
|
|
1213
|
-
|
|
1204
|
+
M.routeStore.selectRoute(null), M.routeStore.setOnlyAccessible(!1);
|
|
1214
1205
|
}
|
|
1215
1206
|
reset() {
|
|
1216
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1207
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), M.uiState.kioskData && M.resetCameraFn) {
|
|
1217
1208
|
var e;
|
|
1218
|
-
(e =
|
|
1209
|
+
(e = M.resetCameraFn) == null || e.call(M);
|
|
1219
1210
|
} else this.fitBounds();
|
|
1220
1211
|
}
|
|
1221
1212
|
selectAccessibleRoute(e) {
|
|
1222
|
-
|
|
1213
|
+
M.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1223
1214
|
}
|
|
1224
1215
|
};
|
|
1225
1216
|
function Q(e) {
|
|
1226
|
-
return typeof e == "string" ?
|
|
1217
|
+
return typeof e == "string" ? T(e) : M.routeStore.getNearestBooth(e);
|
|
1227
1218
|
}
|
|
1228
|
-
var
|
|
1219
|
+
var mn = 0;
|
|
1229
1220
|
function $(e, t, n) {
|
|
1230
1221
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1231
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1232
|
-
|
|
1222
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), M.fp.disableRuntimeAlerts) return;
|
|
1223
|
+
M.uiState.setGlobalErrorMessage({
|
|
1233
1224
|
title: r,
|
|
1234
1225
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1235
1226
|
i,
|
|
@@ -1241,16 +1232,16 @@ function $(e, t, n) {
|
|
|
1241
1232
|
children: a
|
|
1242
1233
|
})
|
|
1243
1234
|
] })
|
|
1244
|
-
}), clearTimeout(
|
|
1235
|
+
}), clearTimeout(mn);
|
|
1245
1236
|
let o = 8e3;
|
|
1246
|
-
|
|
1237
|
+
mn = window.setTimeout(() => {
|
|
1247
1238
|
let e = async () => {
|
|
1248
|
-
|
|
1239
|
+
M.uiState.globalErrorMessages.length > 0 && (M.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1249
1240
|
};
|
|
1250
1241
|
e();
|
|
1251
1242
|
}, o);
|
|
1252
1243
|
}
|
|
1253
|
-
var
|
|
1244
|
+
var hn = class e {
|
|
1254
1245
|
get h() {
|
|
1255
1246
|
return Math.abs(this.y2 - this.y1);
|
|
1256
1247
|
}
|
|
@@ -1323,4 +1314,4 @@ var _n = class e {
|
|
|
1323
1314
|
}
|
|
1324
1315
|
};
|
|
1325
1316
|
//#endregion
|
|
1326
|
-
export {
|
|
1317
|
+
export { pn as default };
|