@expofp/floorplan 3.19.0 → 3.20.1
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-CSjGwCw8.js → Button-CIZNx2Hf.js} +5 -5
- package/dist/browser/{CookieConsent-DoKq6i8L.js → CookieConsent--EI50p11.js} +7 -7
- package/dist/browser/{Debug-5zEiNUyg.js → Debug-DtMm5o9u.js} +7 -7
- package/dist/browser/{Demo-gYGSSAX-.js → Demo-BMSC5fdk.js} +9 -9
- package/dist/browser/{Free-3I9CaGED.js → Free-Do_QMejO.js} +9 -9
- package/dist/browser/{Gallery-DvczhcFU.js → Gallery-BHLCmnEc.js} +9 -9
- package/dist/browser/{GpsLoader-CkmCme_P.js → GpsLoader-BLsWZXdW.js} +10 -10
- package/dist/browser/{KioskStore-Dkc03BJk.js → KioskStore-jS1TwgN_.js} +4 -4
- package/dist/browser/{MaplibreAdapter-DRlvaZ7C.js → MaplibreAdapter-DL2Eccgl.js} +9 -9
- package/dist/browser/{ModalContainer-h3TovgWF.js → ModalContainer-BH3_FY8L.js} +10 -10
- package/dist/browser/{PermissionNotice-B8j8TR_D.js → PermissionNotice-DogwVOoE.js} +6 -6
- package/dist/browser/{SetKioskMode-C4NKwotU.js → SetKioskMode-DwMcZijX.js} +8 -8
- package/dist/browser/{ShowKiosk-BBmrToaF.js → ShowKiosk-BycLuCIL.js} +12 -12
- package/dist/browser/{TouchHand-DRif3YH_.js → TouchHand-Doeqs0E3.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-YpBiORHt.js → ViewerMenuPanel-BnWeuS-8.js} +9 -9
- package/dist/browser/{add-debug-secret-listener-CFqwaslU.js → add-debug-secret-listener-D3GtCWlI.js} +1 -1
- package/dist/browser/{adopt-global-settings-B0JmlKXZ.js → adopt-global-settings-CDO6Yd7V.js} +9 -9
- package/dist/browser/{boolean-editor-XhzKDQsF.js → boolean-editor--PMvGWEn.js} +9 -9
- package/dist/browser/{bootIntercom-CL4Wwt09.js → bootIntercom-DxfIF_sW.js} +2 -2
- package/dist/browser/{booth-by-xy-CNodwywv.js → booth-by-xy--9mTRkTY.js} +6 -6
- package/dist/browser/bundle.json +66 -66
- package/dist/browser/{classnames-D7bHkaTv.js → classnames-Duuo2rUI.js} +2 -2
- package/dist/browser/{client-FmZunq3E.js → client-BX7F8QOZ.js} +4 -4
- package/dist/browser/{components-BxYu3VSQ.js → components-DIKAAFoZ.js} +599 -571
- package/dist/browser/{debug-overlay-Col3kun-.js → debug-overlay-B166CKCv.js} +10 -10
- package/dist/browser/{debug-ui-DP-m_PQY.js → debug-ui-CrsuXGk4.js} +6 -6
- package/dist/browser/{dist--UfxHNpB.js → dist-BjiRCtsQ.js} +6 -6
- package/dist/browser/{dist-j_Dvhg_B.js → dist-CAR5poKe.js} +3 -3
- package/dist/browser/{dist-DKuVdnM1.js → dist-CgBtJWGC.js} +5 -5
- package/dist/browser/{efp-debug-init-DLVidU_L.js → efp-debug-init-BMGbxMsu.js} +3 -3
- package/dist/browser/{enum-editor-Cl34zB7v.js → enum-editor-DD9JifW9.js} +4 -4
- package/dist/browser/{es5-vcEukkmw.js → es5-CCTpVkpP.js} +2 -2
- package/dist/browser/{event-not-found-ChZDmcvK.js → event-not-found-DtlT5Hh-.js} +1 -1
- package/dist/browser/{exports-BXJy6Kmw.js → exports-hPDvqzk3.js} +1 -1
- package/dist/browser/{favicon-_NCvfFvc.js → favicon--j8SyHo_.js} +1 -1
- package/dist/browser/{fetch-retry.umd-3LUIAd6l.js → fetch-retry.umd-CZC1W2Gf.js} +2 -2
- package/dist/browser/{flex-DzUPTjql.js → flex-DaxUvwbX.js} +5 -5
- package/dist/browser/{floorplan.loader-Cq6lnFlH.js → floorplan.loader-Cen3hDqa.js} +19 -19
- package/dist/browser/{floorplan.ready-CVvdDLK9.js → floorplan.ready-Maien7uA.js} +297 -314
- package/dist/browser/{fuse-DFMgyIxf.js → fuse-C37D7Zj6.js} +2 -2
- package/dist/browser/{i18n-DWMPMvpq.js → i18n-C5VNVGQf.js} +2422 -2371
- package/dist/browser/index.js +36 -36
- package/dist/browser/{index.module-CwWKL3qT.js → index.module-CEA0H5Wh.js} +4 -4
- package/dist/browser/{integrateKiosk-DDctkdW5.js → integrateKiosk-BE9ZijAG.js} +4 -4
- package/dist/browser/{is-webview-Dh3BOm5s.js → is-webview-BUh67H5d.js} +1 -1
- package/dist/browser/{jsx-runtime-BT-4UVZK.js → jsx-runtime-C946KOms.js} +2 -2
- package/dist/browser/{kiosk-record-DAkjgI5d.js → kiosk-record-BEg-XaFq.js} +1 -1
- package/dist/browser/{lib-DSN5rncL.js → lib-BJ1Uu6yE.js} +3 -3
- package/dist/browser/{loadImage-6MtT3dR2.js → loadImage-Lr7CwFPh.js} +4 -4
- package/dist/browser/{logDeviceInfo-C9v2HsL2.js → logDeviceInfo-BJWoZ99e.js} +9 -9
- package/dist/browser/{main-CGLB-evp.js → main-DY7IWVq5.js} +1 -1
- package/dist/browser/{mobx-Dykg-ki-.js → mobx-CAg5WZgv.js} +4 -4
- package/dist/browser/{optional-boolean-editor-Ds90tVAe.js → optional-boolean-editor-BeZFATCA.js} +3 -3
- package/dist/browser/{optional-enum-editor-DwpbJFlC.js → optional-enum-editor-BiAxn1K1.js} +4 -4
- package/dist/browser/{optional-string-editor-C_MgikTV.js → optional-string-editor-B58lWztJ.js} +4 -4
- package/dist/browser/{particles.min-BrRwE_cB.js → particles.min-BO14VwHE.js} +2 -2
- package/dist/browser/{react-D3BZ05ZR.js → react-Br12TYQz.js} +2 -2
- package/dist/browser/{react-dom-hZlmCSGa.js → react-dom-kVWZ1ldt.js} +3 -3
- package/dist/browser/{rolldown-runtime-BA6mgZXd.js → rolldown-runtime-Bs00Jj73.js} +1 -1
- package/dist/browser/{select-D23T81nr.js → select-CWOn05Ap.js} +10 -10
- package/dist/browser/{settings-Br2xGZpf.js → settings-B5J5hSk2.js} +2 -2
- package/dist/browser/{settings-item-uLGrYZVO.js → settings-item-CdrDg3ew.js} +6 -6
- package/dist/browser/{store-F1P0xfXS.js → store-aK-vSfy0.js} +3874 -3872
- package/dist/browser/{string-editor-Cco_LbQO.js → string-editor-D8Zlo9Fd.js} +4 -4
- package/dist/browser/{text-field-rxoXlZbL.js → text-field-Ds1ozOk9.js} +5 -5
- package/dist/browser/{theme-teEFcmm4.js → theme-BQn7lM2P.js} +8 -8
- package/dist/browser/{ui-D6A9bSSx.js → ui-CBMxjdUy.js} +8 -8
- package/dist/browser/{useRenderTarget-CqdzcoGw.js → useRenderTarget-CZMpeOh9.js} +4 -4
- package/dist/esm/components/Map/Map.d.ts +1 -2
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/services/url-sync.d.ts +1 -1
- package/dist/esm/services/url-sync.js +1 -1
- package/dist/esm/store/UIState.d.ts +4 -4
- package/dist/esm/utils/camera-map-settings.d.ts +6 -0
- package/dist/esm/utils/camera-map-settings.js +1 -1
- package/dist/esm/utils/gps.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.20.1" };
|
|
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] = "cfa4fd1a-8897-4967-8769-03eac912efab", e._sentryDebugIdIdentifier = "sentry-dbid-cfa4fd1a-8897-4967-8769-03eac912efab");
|
|
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
|
|
12
|
-
import { s as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
16
|
-
import { C as
|
|
17
|
-
import { t as Be } from "./client-
|
|
18
|
-
import { C as
|
|
19
|
-
import { n as ot, t as st } from "./integrateKiosk-
|
|
20
|
-
import {
|
|
9
|
+
import { r as e } from "./rolldown-runtime-Bs00Jj73.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-Cen3hDqa.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 p, Lt as m, Mt as ie, Nt as ae, Ot as oe, Pt as se, Rt as h, St as ce, Tt as le, U as ue, V as de, at as fe, bt as pe, dt as me, f as he, gt as ge, ht as _e, jt as ve, kt as ye, l as g, n as be, nt as xe, o as Se, ot as Ce, pt as _, r as we, ut as v, v as Te, vt as Ee, wt as De, xt as Oe, y, yt as ke } from "./i18n-C5VNVGQf.js";
|
|
12
|
+
import { s as Ae } from "./efp-debug-init-BMGbxMsu.js";
|
|
13
|
+
import { t as je } from "./react-Br12TYQz.js";
|
|
14
|
+
import { t as Me } from "./jsx-runtime-C946KOms.js";
|
|
15
|
+
import { r as Ne } from "./loadImage-Lr7CwFPh.js";
|
|
16
|
+
import { C as Pe, D as Fe, Q as Ie, ht as b, i as Le, n as Re, w as ze } from "./exports-hPDvqzk3.js";
|
|
17
|
+
import { t as Be } from "./client-BX7F8QOZ.js";
|
|
18
|
+
import { C as Ve, F as x, H as He, K as Ue, M as We, P as Ge, S, V as Ke, W as qe, X as Je, Z as Ye, Zt as C, at as Xe, b as w, c as T, cn as E, ct as Ze, dt as Qe, en as $e, fn as D, ft as et, g as tt, it as O, lt as k, ot as nt, q as A, s as j, st as rt, x as it, y as at, yn as M, z as N } from "./store-aK-vSfy0.js";
|
|
19
|
+
import { n as ot, t as st } from "./integrateKiosk-BE9ZijAG.js";
|
|
20
|
+
import { i as ct, n as lt, r as P, t as ut } from "./components-DIKAAFoZ.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 dt(e = {}) {
|
|
23
23
|
let r = n.document, i = (r == null ? void 0 : r.head) || (r == null ? void 0 : r.body);
|
|
24
24
|
if (!i) {
|
|
25
25
|
a && b.error("[showReportDialog] Global document not defined");
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
let o = ze(), s =
|
|
28
|
+
let o = ze(), s = Pe(), c = s == null ? void 0 : s.getDsn();
|
|
29
29
|
if (!c) {
|
|
30
30
|
a && b.error("[showReportDialog] DSN not configured");
|
|
31
31
|
return;
|
|
@@ -54,12 +54,12 @@ function ut(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 F = /* @__PURE__ */ e(je());
|
|
58
|
+
function ft(e) {
|
|
59
59
|
let t = e.match(/^([^.]+)/);
|
|
60
60
|
return t !== null && parseInt(t[0]) >= 17;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function pt(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 ft(e, t) {
|
|
|
69
69
|
}
|
|
70
70
|
r(e, t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
72
|
+
function mt(e, { componentStack: t }, n) {
|
|
73
|
+
if (ft(F.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, pt(e, n);
|
|
76
76
|
}
|
|
77
77
|
return Re(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 ht = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, I = {
|
|
82
82
|
componentStack: null,
|
|
83
83
|
error: null,
|
|
84
84
|
eventId: null
|
|
85
|
-
},
|
|
85
|
+
}, gt = class extends F.Component {
|
|
86
86
|
constructor(e) {
|
|
87
|
-
super(e), this.state =
|
|
88
|
-
let t =
|
|
87
|
+
super(e), this.state = I, this._openFallbackReportDialog = !0;
|
|
88
|
+
let t = Pe();
|
|
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 && dt({
|
|
91
91
|
...e.dialogOptions,
|
|
92
92
|
eventId: this._lastEventId
|
|
93
93
|
});
|
|
@@ -97,11 +97,11 @@ var mt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, F = {
|
|
|
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 = mt(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 && dt({
|
|
105
105
|
...o,
|
|
106
106
|
eventId: c
|
|
107
107
|
})), this.setState({
|
|
@@ -117,37 +117,37 @@ var mt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, F = {
|
|
|
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 === I ? 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(I);
|
|
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" ? F.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 F.isValidElement(r) ? r : (e && ht && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
138
|
-
function
|
|
137
|
+
}, _t = /* @__PURE__ */ e(Ae(), 1), vt = Be(), yt = et();
|
|
138
|
+
function bt(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(de), r = g ? window.localStorage.getItem(de) : null, i = n == null ? r : n;
|
|
141
|
+
return i == null ? g && Ye() != null || Object.keys((t = e.kiosk) == null ? {} : t).length > 0 : i === "1";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function xt() {
|
|
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 St() {
|
|
148
|
+
return xt() ? window.location.hostname.split(".")[0] : "main";
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ct(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 St(e) {
|
|
|
156
156
|
}
|
|
157
157
|
return "Active";
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function wt() {
|
|
160
160
|
return !1;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Tt(e) {
|
|
163
163
|
return e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
let t =
|
|
168
|
-
subDomain:
|
|
169
|
-
subscriptionStatus:
|
|
165
|
+
function Et(e) {
|
|
166
|
+
if (wt() || !xt() || bt(e) || !window.navigator.onLine) return null;
|
|
167
|
+
let t = Tt({
|
|
168
|
+
subDomain: St(),
|
|
169
|
+
subscriptionStatus: Ct(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 L = /*@__PURE__*/ m("ZodMiniType", (e, t) => {
|
|
176
176
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
177
|
-
|
|
177
|
+
ye.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => l(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => ie(e, t, n), e.parseAsync = async (t, n) => ve(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ae(e, t, n), e.check = (...n) => {
|
|
178
178
|
var r;
|
|
179
179
|
return e.clone({
|
|
180
180
|
...t,
|
|
@@ -184,30 +184,30 @@ var I = /*@__PURE__*/ m("ZodMiniType", (e, t) => {
|
|
|
184
184
|
onattach: []
|
|
185
185
|
} } : e)]
|
|
186
186
|
}, { parent: !0 });
|
|
187
|
-
}, e.with = e.check, e.clone = (t, n) =>
|
|
188
|
-
}),
|
|
189
|
-
|
|
187
|
+
}, e.with = e.check, e.clone = (t, n) => se(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
188
|
+
}), Dt = /*@__PURE__*/ m("ZodMiniString", (e, t) => {
|
|
189
|
+
oe.init(e, t), L.init(e, t);
|
|
190
190
|
});
|
|
191
191
|
// @__NO_SIDE_EFFECTS__
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function R(e) {
|
|
193
|
+
return Oe(Dt, e);
|
|
194
194
|
}
|
|
195
195
|
var Ot = /*@__PURE__*/ m("ZodMiniNumber", (e, t) => {
|
|
196
|
-
|
|
196
|
+
le.init(e, t), L.init(e, t);
|
|
197
197
|
});
|
|
198
198
|
// @__NO_SIDE_EFFECTS__
|
|
199
|
-
function
|
|
200
|
-
return
|
|
199
|
+
function z(e) {
|
|
200
|
+
return ke(Ot, e);
|
|
201
201
|
}
|
|
202
202
|
var kt = /*@__PURE__*/ m("ZodMiniNever", (e, t) => {
|
|
203
|
-
|
|
203
|
+
De.init(e, t), L.init(e, t);
|
|
204
204
|
});
|
|
205
205
|
// @__NO_SIDE_EFFECTS__
|
|
206
206
|
function At(e) {
|
|
207
|
-
return
|
|
207
|
+
return Ee(kt, e);
|
|
208
208
|
}
|
|
209
209
|
var jt = /*@__PURE__*/ m("ZodMiniArray", (e, t) => {
|
|
210
|
-
|
|
210
|
+
ce.init(e, t), L.init(e, t);
|
|
211
211
|
});
|
|
212
212
|
// @__NO_SIDE_EFFECTS__
|
|
213
213
|
function Mt(e, t) {
|
|
@@ -218,10 +218,10 @@ function Mt(e, t) {
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
var Nt = /*@__PURE__*/ m("ZodMiniObject", (e, t) => {
|
|
221
|
-
|
|
221
|
+
ee.init(e, t), L.init(e, t), te(e, "shape", () => t.shape);
|
|
222
222
|
});
|
|
223
223
|
// @__NO_SIDE_EFFECTS__
|
|
224
|
-
function
|
|
224
|
+
function B(e, t) {
|
|
225
225
|
return new Nt({
|
|
226
226
|
type: "object",
|
|
227
227
|
shape: e,
|
|
@@ -230,66 +230,49 @@ function R(e, t) {
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
var Pt = /*@__PURE__*/ m("ZodMiniOptional", (e, t) => {
|
|
233
|
-
|
|
233
|
+
f.init(e, t), L.init(e, t);
|
|
234
234
|
});
|
|
235
235
|
// @__NO_SIDE_EFFECTS__
|
|
236
|
-
function
|
|
236
|
+
function V(e) {
|
|
237
237
|
return new Pt({
|
|
238
238
|
type: "optional",
|
|
239
239
|
innerType: e
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
var Ft = /*@__PURE__*/ m("ZodMiniCustom", (e, t) => {
|
|
243
|
-
|
|
243
|
+
d.init(e, t), L.init(e, t);
|
|
244
244
|
});
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
246
|
function It(e, t = {}) {
|
|
247
|
-
return
|
|
247
|
+
return pe(Ft, e, t);
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region src/schemas/sdk.schemas.ts
|
|
251
|
-
var Lt = /* @__PURE__ */
|
|
252
|
-
x: /* @__PURE__ */
|
|
253
|
-
y: /* @__PURE__ */
|
|
254
|
-
}), Rt = /* @__PURE__ */
|
|
251
|
+
var Lt = /* @__PURE__ */ B({
|
|
252
|
+
x: /* @__PURE__ */ z(),
|
|
253
|
+
y: /* @__PURE__ */ z()
|
|
254
|
+
}), Rt = /* @__PURE__ */ B({
|
|
255
255
|
leftTop: Lt,
|
|
256
256
|
rightBottom: Lt
|
|
257
|
-
}), zt = (/* @__PURE__ */
|
|
258
|
-
name: /* @__PURE__ */
|
|
259
|
-
externalId: /* @__PURE__ */
|
|
260
|
-
})).check(/* @__PURE__ */ It((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Bt = (/* @__PURE__ */
|
|
261
|
-
booths: /* @__PURE__ */
|
|
262
|
-
exhibitors: /* @__PURE__ */
|
|
257
|
+
}), zt = (/* @__PURE__ */ B({
|
|
258
|
+
name: /* @__PURE__ */ V(/* @__PURE__ */ R()),
|
|
259
|
+
externalId: /* @__PURE__ */ V(/* @__PURE__ */ R())
|
|
260
|
+
})).check(/* @__PURE__ */ It((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Bt = (/* @__PURE__ */ B({
|
|
261
|
+
booths: /* @__PURE__ */ V(/* @__PURE__ */ Mt(zt)),
|
|
262
|
+
exhibitors: /* @__PURE__ */ V(/* @__PURE__ */ Mt(zt))
|
|
263
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__ */ V(/* @__PURE__ */ B({ padding: /* @__PURE__ */ V(/* @__PURE__ */ z()) }));
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
269
|
function Ht(e) {
|
|
270
|
-
let t =
|
|
270
|
+
let t = tt(e);
|
|
271
271
|
Object.values(t).length && (st(t, !1), ot(t));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
|
-
//#region src/utils/camera-map-settings.ts
|
|
275
|
-
function B(e) {
|
|
276
|
-
let t = {};
|
|
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
|
-
}
|
|
279
|
-
function Ut(e) {
|
|
280
|
-
let t = {}, n = Wt(e.centerxy);
|
|
281
|
-
n && ([t.x, t.y] = n);
|
|
282
|
-
let r = Wt(e.center);
|
|
283
|
-
return r && ([t.lat, t.lng] = r), e.z !== void 0 && (t.floor = e.z), e.bearing !== void 0 && (t.bearing = e.bearing), e.zoomtime !== void 0 && (t.zoomTime = e.zoomtime), t;
|
|
284
|
-
}
|
|
285
|
-
function Wt(e) {
|
|
286
|
-
if (!e) return;
|
|
287
|
-
let t = e.split(",").map(Number);
|
|
288
|
-
if (!(t.length !== 2 || !t.every(Number.isFinite))) return [t[0], t[1]];
|
|
289
|
-
}
|
|
290
|
-
//#endregion
|
|
291
274
|
//#region src/utils/getMostFrequent.ts
|
|
292
|
-
function
|
|
275
|
+
function Ut(e) {
|
|
293
276
|
let t = {}, n = 0, r;
|
|
294
277
|
return e.forEach((e) => {
|
|
295
278
|
t[e] = (t[e] || 0) + 1, t[e] > n && (n = t[e], r = e);
|
|
@@ -297,68 +280,68 @@ function Gt(e) {
|
|
|
297
280
|
}
|
|
298
281
|
//#endregion
|
|
299
282
|
//#region src/services/multi-slug.ts
|
|
300
|
-
function
|
|
283
|
+
function Wt(e, t) {
|
|
301
284
|
if (!e.includes("&") && !e.includes("%26")) return null;
|
|
302
|
-
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 && !_(e).includes("=");
|
|
303
286
|
return i.filter(a).length < 2 ? null : "?" + i.map((e) => a(e) && t(e) || e).join("&");
|
|
304
287
|
}
|
|
305
288
|
//#endregion
|
|
306
289
|
//#region src/services/url-dispatch.ts
|
|
307
|
-
var
|
|
308
|
-
function
|
|
309
|
-
|
|
290
|
+
var H = !1;
|
|
291
|
+
function Gt() {
|
|
292
|
+
tn(h()), u(() => j.layerStore.layersLoaded, () => {
|
|
310
293
|
let e = h().camera;
|
|
311
|
-
Object.keys(e).length && G(
|
|
294
|
+
Object.keys(e).length && G(P(e));
|
|
312
295
|
let t = h().visibility;
|
|
313
|
-
Object.keys(t).length &&
|
|
296
|
+
Object.keys(t).length && T.setVisibility(t);
|
|
314
297
|
});
|
|
315
298
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
299
|
+
function Kt(e) {
|
|
300
|
+
rt({
|
|
318
301
|
offHistory: e,
|
|
319
|
-
onNavigate:
|
|
320
|
-
}),
|
|
321
|
-
|
|
302
|
+
onNavigate: W
|
|
303
|
+
}), Zt(), U(), u(() => j.layerStore.layersLoaded, () => {
|
|
304
|
+
j.urlFilterManager && !j.urlFilterManager.isInitialized && j.urlFilterManager.initialize(), W(), he(ln), he(sn), T.viewerMode && (T.menu = !0);
|
|
322
305
|
});
|
|
323
306
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
307
|
+
function qt(e = "") {
|
|
308
|
+
k("?" + _(e.toString())), j.layerStore.layersLoaded ? Jt(e) : (U(), u(() => j.layerStore.layersLoaded, () => Jt(e)));
|
|
326
309
|
}
|
|
327
|
-
function
|
|
310
|
+
function Jt(e) {
|
|
328
311
|
var t;
|
|
329
|
-
let n = "?" +
|
|
330
|
-
|
|
312
|
+
let n = "?" + _(e), r = nn(n);
|
|
313
|
+
tn(r), r.consent && A(r.consent), r.camera && Object.keys(r.camera).length && G(P(r.camera)), r.visibility && Object.keys(r.visibility).length && T.setVisibility(r.visibility), Zt(), W();
|
|
331
314
|
let i = [...(t = r.intents) == null ? [] : t, ...fe(n).intents];
|
|
332
|
-
i.length && o(
|
|
333
|
-
}
|
|
334
|
-
function H() {
|
|
335
|
-
let e = A();
|
|
336
|
-
return ct(e.length > 1 ? g(e.substring(1)) : "");
|
|
315
|
+
i.length && o(j.fp, i);
|
|
337
316
|
}
|
|
338
317
|
function U() {
|
|
339
|
-
|
|
318
|
+
let e = O();
|
|
319
|
+
return lt(e.length > 1 ? _(e.substring(1)) : "");
|
|
320
|
+
}
|
|
321
|
+
function W() {
|
|
322
|
+
H = !0;
|
|
340
323
|
try {
|
|
341
|
-
Ht(new URLSearchParams(
|
|
342
|
-
let { primary: e, oneShots: t } =
|
|
324
|
+
Ht(new URLSearchParams(_(window.location.search)));
|
|
325
|
+
let { primary: e, oneShots: t } = v(O()), n = t.find((e) => e.type === "camera");
|
|
343
326
|
if (n) {
|
|
344
327
|
let e = n.roll;
|
|
345
328
|
G({
|
|
346
|
-
...
|
|
329
|
+
...P(n.camera),
|
|
347
330
|
roll: e
|
|
348
331
|
});
|
|
349
332
|
}
|
|
350
|
-
let r = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (
|
|
351
|
-
!
|
|
333
|
+
let r = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (T.heatmap || T.heatmapYah);
|
|
334
|
+
!U() && !r && Yt(e);
|
|
352
335
|
} finally {
|
|
353
|
-
|
|
336
|
+
H = !1;
|
|
354
337
|
}
|
|
355
|
-
|
|
338
|
+
sn(), ln();
|
|
356
339
|
}
|
|
357
|
-
function
|
|
358
|
-
let t =
|
|
340
|
+
function Yt(e) {
|
|
341
|
+
let t = j.fp;
|
|
359
342
|
switch (e.type) {
|
|
360
343
|
case "kiosk":
|
|
361
|
-
e.enabled === !0 ?
|
|
344
|
+
e.enabled === !0 ? T.kiosk = !0 : e.enabled === !1 && (T.kiosk = !1, T.resetUIScale());
|
|
362
345
|
return;
|
|
363
346
|
case "list":
|
|
364
347
|
t.showList(e.list);
|
|
@@ -375,16 +358,16 @@ function Zt(e) {
|
|
|
375
358
|
return;
|
|
376
359
|
case "route":
|
|
377
360
|
var n, r;
|
|
378
|
-
|
|
361
|
+
j.routeStore.setOnlyAccessible(e.accessible), j.routeStore.selectRoute(it((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), j.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && j.uiState.setRouteTitle(e.title);
|
|
379
362
|
return;
|
|
380
363
|
case "language":
|
|
381
364
|
we(e.langId) && Se(e.langId);
|
|
382
365
|
return;
|
|
383
366
|
case "printPdf":
|
|
384
|
-
|
|
367
|
+
j.uiState.printingPdf = !0;
|
|
385
368
|
return;
|
|
386
369
|
case "visibility":
|
|
387
|
-
|
|
370
|
+
j.uiState.setVisibility(e.hidden.reduce((e, t) => ({
|
|
388
371
|
...e,
|
|
389
372
|
[t]: !1
|
|
390
373
|
}), {}));
|
|
@@ -393,13 +376,13 @@ function Zt(e) {
|
|
|
393
376
|
t.startBuildRoute();
|
|
394
377
|
return;
|
|
395
378
|
case "pathway":
|
|
396
|
-
|
|
379
|
+
Xt(e);
|
|
397
380
|
return;
|
|
398
381
|
case "selectExhibitors":
|
|
399
382
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
400
383
|
return;
|
|
401
384
|
case "ownedByFilters":
|
|
402
|
-
|
|
385
|
+
Ne.log("Skipping filter parameters in dispatchFromUrl (owned by URLFilterManager)");
|
|
403
386
|
return;
|
|
404
387
|
case "ownedByConfig": return;
|
|
405
388
|
case "select":
|
|
@@ -407,102 +390,102 @@ function Zt(e) {
|
|
|
407
390
|
return;
|
|
408
391
|
}
|
|
409
392
|
}
|
|
410
|
-
function
|
|
393
|
+
function Xt(e) {
|
|
411
394
|
let { pathwayId: t, boothIds: n, exhibitorIds: r, tourId: i } = e;
|
|
412
395
|
if (i) {
|
|
413
|
-
let e =
|
|
414
|
-
e &&
|
|
396
|
+
let e = j.toursStore.getTourById(i);
|
|
397
|
+
e && y(() => {
|
|
415
398
|
var t;
|
|
416
|
-
|
|
399
|
+
j.uiState.setTourTitle(e.name), j.uiState.setTourDescription((t = e.description) == null ? "" : t), j.uiState.setIsMultiPointTour(!0), j.uiState.setMultiPointTourList(e.id);
|
|
417
400
|
});
|
|
418
401
|
}
|
|
419
|
-
let a =
|
|
420
|
-
if (
|
|
421
|
-
let e =
|
|
422
|
-
e &&
|
|
402
|
+
let a = j.boothStore.booths.filter((e) => n.includes(e.externalId)), o = j.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), s = [...a, ...o];
|
|
403
|
+
if ($e()) {
|
|
404
|
+
let e = Ut(s.map((e) => e.layer.name));
|
|
405
|
+
e && j.fp.activateFloor({ name: e });
|
|
423
406
|
}
|
|
424
|
-
(n.length > 0 || r.length > 0) &&
|
|
425
|
-
|
|
407
|
+
(n.length > 0 || r.length > 0) && j.fp.highlightEntities([...n, ...r]), j.layerStore.showPathWay(t), s.length > 0 && y(() => {
|
|
408
|
+
j.uiState.moveToRect = D.fromUnion(...s.map((e) => e.rect).filter(Boolean)), j.uiState.rollReset = !0;
|
|
426
409
|
});
|
|
427
410
|
}
|
|
428
|
-
function
|
|
429
|
-
let e =
|
|
430
|
-
for (let e of t)
|
|
431
|
-
e.startsWith("?preview=") &&
|
|
432
|
-
let n =
|
|
433
|
-
n !== null &&
|
|
411
|
+
function Zt() {
|
|
412
|
+
let e = O(), { oneShots: t } = v(e);
|
|
413
|
+
for (let e of t) Qt(e);
|
|
414
|
+
e.startsWith("?preview=") && k("?"), O().includes("copy_exh") && k("?");
|
|
415
|
+
let n = Ke(O());
|
|
416
|
+
n !== null && k("?" + n), T.previewExhibitor && k("?" + T.previewExhibitor.slug), en();
|
|
434
417
|
}
|
|
435
|
-
function
|
|
418
|
+
function Qt(e) {
|
|
436
419
|
switch (e.type) {
|
|
437
420
|
case "heatmap":
|
|
438
|
-
|
|
421
|
+
$t(e.yah);
|
|
439
422
|
return;
|
|
440
423
|
case "blueDot": {
|
|
441
424
|
var t, n;
|
|
442
|
-
let r = new
|
|
443
|
-
u(() =>
|
|
425
|
+
let r = new at(e.x, e.y, (t = j.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
426
|
+
u(() => j.layerStore.layersLoaded, () => j.routeStore.selectCurrentPosition(r, !0, 1));
|
|
444
427
|
return;
|
|
445
428
|
}
|
|
446
429
|
case "viewerMode":
|
|
447
|
-
|
|
430
|
+
g && (e.enabled ? localStorage.setItem(xe, "true") : (localStorage.removeItem(xe), localStorage.removeItem(ne)));
|
|
448
431
|
return;
|
|
449
432
|
case "previewMode":
|
|
450
|
-
|
|
433
|
+
g && (e.enabled ? localStorage.setItem(c, "true") : (localStorage.removeItem(c), localStorage.removeItem(ue)));
|
|
451
434
|
return;
|
|
452
435
|
case "uiScale":
|
|
453
|
-
e.scale === null ?
|
|
436
|
+
e.scale === null ? Ne.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : j.uiState.setUIScale(e.scale, !0);
|
|
454
437
|
return;
|
|
455
438
|
case "resetUiScale":
|
|
456
|
-
|
|
439
|
+
j.uiState.resetUIScale();
|
|
457
440
|
return;
|
|
458
441
|
case "legacyBookmarks": {
|
|
459
|
-
let t = e.appendExhibitorId === null ? void 0 :
|
|
460
|
-
|
|
442
|
+
let t = e.appendExhibitorId === null ? void 0 : j.exhibitorStore.exhibitorById.get(e.appendExhibitorId);
|
|
443
|
+
k(t ? "?" + t.slug : "?bookmarks");
|
|
461
444
|
return;
|
|
462
445
|
}
|
|
463
446
|
}
|
|
464
447
|
}
|
|
465
|
-
function
|
|
466
|
-
|
|
448
|
+
function $t(e) {
|
|
449
|
+
nt(), e ? (T.heatmapYah = !0, T.monochrome = !0, T.hideLogoInBooth = !0, T.hideHeaderLogo = !0, T.disableBookmarked = !0) : T.heatmap = !0;
|
|
467
450
|
}
|
|
468
|
-
function
|
|
469
|
-
let e =
|
|
470
|
-
let t =
|
|
451
|
+
function en() {
|
|
452
|
+
let e = Wt(O(), (e) => {
|
|
453
|
+
let t = j.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
471
454
|
return t == null ? void 0 : t.name;
|
|
472
455
|
});
|
|
473
|
-
e !== null &&
|
|
456
|
+
e !== null && k(e);
|
|
474
457
|
}
|
|
475
|
-
function
|
|
476
|
-
e.noOverlay !== void 0 && (
|
|
458
|
+
function tn(e) {
|
|
459
|
+
e.noOverlay !== void 0 && (T.hideOverlay = e.noOverlay), e.monochrome && (T.monochrome = !0), e.hideHeaderLogo && (T.hideHeaderLogo = !0), e.hideLogoInBooth && (T.hideLogoInBooth = !0), e.disableFeatured && j.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (T.disableBookmarked = !0), e.disableGps && j.routeStore.setGpsTrackingEnabled(!1), e.heatmap && r(e.heatmap) && $t(e.heatmap.variant === "yah");
|
|
477
460
|
}
|
|
478
|
-
function
|
|
479
|
-
return Ce(
|
|
461
|
+
function nn(e) {
|
|
462
|
+
return Ce(_e, e).value;
|
|
480
463
|
}
|
|
481
|
-
var
|
|
482
|
-
function
|
|
483
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } =
|
|
484
|
-
if (
|
|
464
|
+
var rn = null, an = null, on = null;
|
|
465
|
+
function sn() {
|
|
466
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = cn(), i = j.urlFilterManager.filterSearch();
|
|
467
|
+
if (H) return;
|
|
485
468
|
let a = me(e) || i;
|
|
486
|
-
|
|
469
|
+
O() !== a && (t !== rn || n !== an || r !== on ? Ze(a) : k(a), rn = t, an = n, on = r);
|
|
487
470
|
}
|
|
488
|
-
function
|
|
489
|
-
let e =
|
|
471
|
+
function cn() {
|
|
472
|
+
let e = T.selectedExhibitor, t = T.selectedBooth, n = T.selectedEventItem, r = T.selectedRoute, i = T.selectedSpeaker, a = T.setKioskModeEnabled, o = T.list, s;
|
|
490
473
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
491
474
|
var c;
|
|
492
|
-
let e =
|
|
475
|
+
let e = j.routePlannerStore;
|
|
493
476
|
s = {
|
|
494
477
|
type: "planner",
|
|
495
478
|
fromBookmarks: e.source === "bookmarks",
|
|
496
479
|
items: e.items.map((e) => e.entity.slug).filter(Boolean),
|
|
497
480
|
from: ((c = e.startPoint) == null ? void 0 : c.slug) || void 0
|
|
498
481
|
};
|
|
499
|
-
} else if (r && !
|
|
482
|
+
} else if (r && !T.isMultiPointRoute) {
|
|
500
483
|
var l;
|
|
501
484
|
s = {
|
|
502
485
|
type: "route",
|
|
503
|
-
to: r.to instanceof
|
|
504
|
-
from: r.from instanceof
|
|
505
|
-
accessible:
|
|
486
|
+
to: r.to instanceof C ? r.to.slug : void 0,
|
|
487
|
+
from: r.from instanceof C ? r.from.slug : void 0,
|
|
488
|
+
accessible: j.routeStore.onlyAccessible,
|
|
506
489
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
507
490
|
};
|
|
508
491
|
} else if (e) s = {
|
|
@@ -539,7 +522,7 @@ function un() {
|
|
|
539
522
|
var u, d;
|
|
540
523
|
s = {
|
|
541
524
|
type: "slug",
|
|
542
|
-
slug: (u = (d =
|
|
525
|
+
slug: (u = (d = T.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
543
526
|
};
|
|
544
527
|
break;
|
|
545
528
|
case "search":
|
|
@@ -570,15 +553,15 @@ function un() {
|
|
|
570
553
|
eventItem: n
|
|
571
554
|
};
|
|
572
555
|
}
|
|
573
|
-
function
|
|
574
|
-
let e =
|
|
575
|
-
e ? r = e.name : t ? r = t.name : n ? r = n.name :
|
|
556
|
+
function ln() {
|
|
557
|
+
let e = T.selectedExhibitor, t = T.selectedEventItem, n = T.selectedSpeaker, r = "";
|
|
558
|
+
e ? r = e.name : t ? r = t.name : n ? r = n.name : T.list.type === "search" && T.list.text ? r = "`" + (T.list.text || "") + "`" : T.list.type === "multi-point-tour" && T.tourTitle && (r = T.tourTitle), r.length && (r += " – "), r += E.title, E.subtitle && (r += " – " + E.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
|
|
576
559
|
}
|
|
577
560
|
function G(e) {
|
|
578
561
|
try {
|
|
579
|
-
if (
|
|
580
|
-
let t =
|
|
581
|
-
t &&
|
|
562
|
+
if (T.setMapSettings(e), e.z) {
|
|
563
|
+
let t = j.layerStore.layers.find((t) => t.name === e.z);
|
|
564
|
+
t && j.layerStore.updateVisibility(t, !0);
|
|
582
565
|
}
|
|
583
566
|
} catch (e) {
|
|
584
567
|
console.error("Failed to process map settings.", e);
|
|
@@ -586,14 +569,14 @@ function G(e) {
|
|
|
586
569
|
}
|
|
587
570
|
//#endregion
|
|
588
571
|
//#region src/tools/reset.ts
|
|
589
|
-
function
|
|
572
|
+
function un() {
|
|
590
573
|
K("floorplan"), K("__searchi"), K("__mobxGlobals"), K("__store"), K("__mobxInstanceCount");
|
|
591
574
|
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && K(e);
|
|
592
575
|
}
|
|
593
576
|
function K(e) {
|
|
594
|
-
|
|
577
|
+
dn(e) ? delete window[e] : window[e] = void 0;
|
|
595
578
|
}
|
|
596
|
-
function
|
|
579
|
+
function dn(e) {
|
|
597
580
|
let t = Object.getOwnPropertyDescriptor(window, e);
|
|
598
581
|
return t && t.configurable;
|
|
599
582
|
}
|
|
@@ -646,7 +629,7 @@ function q(e) {
|
|
|
646
629
|
entity: e.entity,
|
|
647
630
|
isEnded: e.isEnded
|
|
648
631
|
};
|
|
649
|
-
case
|
|
632
|
+
case re: return {
|
|
650
633
|
id: e.id,
|
|
651
634
|
name: Y(e.name),
|
|
652
635
|
entity: e.entity
|
|
@@ -671,33 +654,33 @@ function Y(e) {
|
|
|
671
654
|
}
|
|
672
655
|
//#endregion
|
|
673
656
|
//#region src/floorplan.ready.tsx
|
|
674
|
-
var X =
|
|
675
|
-
(0,
|
|
676
|
-
var
|
|
657
|
+
var X = Me(), Z = (0, _t.default)("efp:api");
|
|
658
|
+
(0, yt.install)();
|
|
659
|
+
var fn = class extends s {
|
|
677
660
|
constructor(...e) {
|
|
678
661
|
super(...e), this.root = void 0;
|
|
679
662
|
}
|
|
680
663
|
init() {
|
|
681
|
-
|
|
664
|
+
Gt(), this.ignoreQuery || Kt(this.offHistory), Je("load"), j.fp = this, A(this.consent), Ue(He.Load, ""), this.root = (0, vt.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(gt, { children: /* @__PURE__ */ (0, X.jsx)(ut, {
|
|
682
665
|
offHistory: this.offHistory,
|
|
683
666
|
consent: this.consent
|
|
684
|
-
}) })),
|
|
685
|
-
if (this.resolveReady(), !
|
|
667
|
+
}) })), Ue(He.Rendered, ""), Te(() => j.layerStore.layersLoaded, () => {
|
|
668
|
+
if (this.resolveReady(), !j.initialized) {
|
|
686
669
|
var e;
|
|
687
670
|
(e = this.onInit) == null || e.call(this, this);
|
|
688
671
|
}
|
|
689
|
-
|
|
672
|
+
j.initialized = !0;
|
|
690
673
|
});
|
|
691
|
-
let e =
|
|
692
|
-
e && import("./bootIntercom-
|
|
674
|
+
let e = Et(E);
|
|
675
|
+
e && import("./bootIntercom-DxfIF_sW.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
693
676
|
}
|
|
694
677
|
selectBooth(e) {
|
|
695
678
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
696
679
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
697
680
|
return;
|
|
698
681
|
}
|
|
699
|
-
let t =
|
|
700
|
-
|
|
682
|
+
let t = j.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
683
|
+
j.selectBooth(t);
|
|
701
684
|
}
|
|
702
685
|
selectExhibitor(e) {
|
|
703
686
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -705,13 +688,13 @@ var pn = class extends s {
|
|
|
705
688
|
return;
|
|
706
689
|
}
|
|
707
690
|
if (!(e != null && e.length)) {
|
|
708
|
-
|
|
691
|
+
j.uiState.menu = !1, j.searchStore.resetSearchBox(), j.uiState.details = null;
|
|
709
692
|
return;
|
|
710
693
|
}
|
|
711
|
-
let t =
|
|
694
|
+
let t = j.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
712
695
|
if (!(t != null && t.length)) return;
|
|
713
696
|
if (typeof e == "string") {
|
|
714
|
-
|
|
697
|
+
j.selectExhibitor(t[0]), j.moveToList([t[0]]);
|
|
715
698
|
return;
|
|
716
699
|
}
|
|
717
700
|
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), {
|
|
@@ -719,25 +702,25 @@ var pn = class extends s {
|
|
|
719
702
|
mostFrequent: n[0],
|
|
720
703
|
maxCount: 0
|
|
721
704
|
}).mostFrequent;
|
|
722
|
-
|
|
705
|
+
j.layerStore.updateVisibility(r, !0), j.uiState.menu = !1, j.searchStore.resetSearchBox(), j.uiState.details = null, j.uiState.list = {
|
|
723
706
|
type: "filter",
|
|
724
707
|
items: t,
|
|
725
708
|
query: {
|
|
726
709
|
key: "exhibitors",
|
|
727
710
|
value: t.map((e) => e.externalId).join(",")
|
|
728
711
|
}
|
|
729
|
-
},
|
|
712
|
+
}, j.moveToList();
|
|
730
713
|
}
|
|
731
714
|
highlightExhibitors(e) {
|
|
732
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
715
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), j.boothStore.highlightedByExternalIds = [], j.exhibitorStore.highlightedByExternalIds = [...e];
|
|
733
716
|
}
|
|
734
717
|
highlightBooths(e) {
|
|
735
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
718
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), j.exhibitorStore.highlightedByExternalIds = [], j.boothStore.highlightedByExternalIds = [...e];
|
|
736
719
|
}
|
|
737
720
|
highlightEntities(e) {
|
|
738
721
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
739
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
740
|
-
|
|
722
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = Ve(e);
|
|
723
|
+
j.boothStore.highlightedByExternalIds = [...t], j.exhibitorStore.highlightedByExternalIds = [...n];
|
|
741
724
|
}
|
|
742
725
|
selectRoute(e, t) {
|
|
743
726
|
if (Array.isArray(e)) {
|
|
@@ -747,10 +730,10 @@ var pn = class extends s {
|
|
|
747
730
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
748
731
|
return;
|
|
749
732
|
}
|
|
750
|
-
|
|
733
|
+
j.routeStore.selectRoute(new w(Q(n), Q(r), t.map(Q)));
|
|
751
734
|
return;
|
|
752
735
|
}
|
|
753
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
736
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), j.routeStore.selectRoute(new w(Q(e), Q(t)));
|
|
754
737
|
}
|
|
755
738
|
getOptimizedRoutes(e) {
|
|
756
739
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -763,19 +746,19 @@ var pn = class extends s {
|
|
|
763
746
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
764
747
|
a ? a.push(e) : n.set(t, [e]);
|
|
765
748
|
}
|
|
766
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
749
|
+
return Array.from(n.values()).map((e) => ({ waypoints: We(e.map((e) => [e.name, {
|
|
767
750
|
x: e.rect.center.x,
|
|
768
751
|
y: e.rect.center.y
|
|
769
752
|
}])) }));
|
|
770
753
|
}
|
|
771
754
|
selectCurrentPosition(e, t, n) {
|
|
772
755
|
var r;
|
|
773
|
-
let i =
|
|
774
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
756
|
+
let i = x(e.x) && x(e.y), a = x(e.lng) && x(e.lat);
|
|
757
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), j.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
775
758
|
}
|
|
776
759
|
setBookmarks(e) {
|
|
777
760
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
778
|
-
let t =
|
|
761
|
+
let t = j.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
779
762
|
t && (t.bookmarked = e.bookmarked);
|
|
780
763
|
});
|
|
781
764
|
}
|
|
@@ -794,29 +777,29 @@ var pn = class extends s {
|
|
|
794
777
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
795
778
|
return;
|
|
796
779
|
}
|
|
797
|
-
let r =
|
|
780
|
+
let r = M("bookmarked"), i = {
|
|
798
781
|
exhibitor: {
|
|
799
782
|
existingIds: new Set(r.exhibitors || []),
|
|
800
|
-
finder: (e) =>
|
|
801
|
-
replacer: (e) =>
|
|
783
|
+
finder: (e) => j.exhibitorStore.findExhibitor(e),
|
|
784
|
+
replacer: (e) => j.exhibitorStore.replaceBookmarked(e)
|
|
802
785
|
},
|
|
803
786
|
event: {
|
|
804
787
|
existingIds: new Set(r.events || []),
|
|
805
|
-
finder: (e) =>
|
|
806
|
-
replacer: (e) =>
|
|
788
|
+
finder: (e) => j.eventStore.findByNameOrSlug(e),
|
|
789
|
+
replacer: (e) => j.eventStore.replaceBookmarked(e)
|
|
807
790
|
},
|
|
808
791
|
speaker: {
|
|
809
792
|
existingIds: new Set(r.speakers || []),
|
|
810
|
-
finder: (e) =>
|
|
811
|
-
replacer: (e) =>
|
|
793
|
+
finder: (e) => j.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
794
|
+
replacer: (e) => j.speakerStore.replaceBookmarked(e)
|
|
812
795
|
},
|
|
813
796
|
booth: {
|
|
814
797
|
existingIds: new Set(r.booths || []),
|
|
815
798
|
finder: (e) => {
|
|
816
|
-
let t =
|
|
799
|
+
let t = j.boothStore.findBooth(e);
|
|
817
800
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
818
801
|
},
|
|
819
|
-
replacer: (e) =>
|
|
802
|
+
replacer: (e) => j.boothStore.replaceBookmarked(e)
|
|
820
803
|
}
|
|
821
804
|
};
|
|
822
805
|
e.forEach((e) => {
|
|
@@ -836,16 +819,16 @@ var pn = class extends s {
|
|
|
836
819
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
837
820
|
return;
|
|
838
821
|
}
|
|
839
|
-
let r =
|
|
822
|
+
let r = M("visited"), i = {
|
|
840
823
|
exhibitor: {
|
|
841
824
|
existingIds: new Set(r.exhibitors || []),
|
|
842
|
-
finder: (e) =>
|
|
843
|
-
replacer: (e) =>
|
|
825
|
+
finder: (e) => j.exhibitorStore.findExhibitor(e),
|
|
826
|
+
replacer: (e) => j.exhibitorStore.replaceVisited(e)
|
|
844
827
|
},
|
|
845
828
|
event: {
|
|
846
829
|
existingIds: new Set(r.events || []),
|
|
847
|
-
finder: (e) =>
|
|
848
|
-
replacer: (e) =>
|
|
830
|
+
finder: (e) => j.eventStore.findByNameOrSlug(e),
|
|
831
|
+
replacer: (e) => j.eventStore.replaceVisited(e)
|
|
849
832
|
}
|
|
850
833
|
};
|
|
851
834
|
e.forEach((e) => {
|
|
@@ -860,94 +843,94 @@ var pn = class extends s {
|
|
|
860
843
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
861
844
|
return;
|
|
862
845
|
}
|
|
863
|
-
|
|
846
|
+
j.routeStore.setMarkers(e);
|
|
864
847
|
}
|
|
865
848
|
selectMarker(e, t = !0) {
|
|
866
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
849
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), j.routeStore.selectMarker(e, t);
|
|
867
850
|
}
|
|
868
851
|
drawCircles(e) {
|
|
869
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
852
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), j.uiState.debugCircles = e;
|
|
870
853
|
}
|
|
871
854
|
checkRoutes() {
|
|
872
|
-
|
|
855
|
+
j.routeStore.checkRoutes();
|
|
873
856
|
}
|
|
874
857
|
updateLayerVisibility(e, t) {
|
|
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"),
|
|
858
|
+
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"), j.layerStore.updateVisibility(e, t);
|
|
876
859
|
}
|
|
877
860
|
getCenterCoordinates() {
|
|
878
|
-
return
|
|
861
|
+
return j.fp.getCenterCoordinates();
|
|
879
862
|
}
|
|
880
863
|
exhibitorsList() {
|
|
881
|
-
return
|
|
864
|
+
return j.exhibitorStore.exhibitors.map((e) => q(e));
|
|
882
865
|
}
|
|
883
866
|
boothsList() {
|
|
884
|
-
return
|
|
867
|
+
return j.boothStore.booths.map((e) => q(e));
|
|
885
868
|
}
|
|
886
869
|
categoriesList() {
|
|
887
|
-
return
|
|
870
|
+
return j.categoryStore.categories.map((e) => q(e));
|
|
888
871
|
}
|
|
889
872
|
selectCategory(e) {
|
|
890
873
|
if (e == null || typeof e != "string") {
|
|
891
|
-
|
|
874
|
+
j.searchStore.selectSearch();
|
|
892
875
|
return;
|
|
893
876
|
}
|
|
894
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
877
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = j.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
895
878
|
if (!n) {
|
|
896
879
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
897
880
|
return;
|
|
898
881
|
}
|
|
899
|
-
|
|
882
|
+
j.selectCategory(n);
|
|
900
883
|
}
|
|
901
884
|
select(e) {
|
|
902
885
|
if (typeof e != "string") {
|
|
903
886
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
904
887
|
return;
|
|
905
888
|
}
|
|
906
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
889
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = j.boothStore.booths.find((e) => {
|
|
907
890
|
var t, r, i;
|
|
908
891
|
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;
|
|
909
892
|
});
|
|
910
893
|
if (r) {
|
|
911
|
-
setTimeout(() =>
|
|
894
|
+
setTimeout(() => j.selectBooth(r), 250);
|
|
912
895
|
return;
|
|
913
896
|
}
|
|
914
|
-
let i =
|
|
897
|
+
let i = j.eventStore.eventItems.find((e) => {
|
|
915
898
|
var t, r;
|
|
916
899
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
917
900
|
});
|
|
918
901
|
if (i) {
|
|
919
|
-
|
|
902
|
+
j.selectEventItem(i, !0);
|
|
920
903
|
return;
|
|
921
904
|
}
|
|
922
|
-
let a =
|
|
905
|
+
let a = j.exhibitorStore.exhibitors.find((e) => {
|
|
923
906
|
var t, r;
|
|
924
907
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
925
908
|
});
|
|
926
909
|
if (a) {
|
|
927
|
-
setTimeout(() =>
|
|
910
|
+
setTimeout(() => j.clickExhibitor(a), 250);
|
|
928
911
|
return;
|
|
929
912
|
}
|
|
930
|
-
let o =
|
|
913
|
+
let o = j.categoryStore.categories.find((e) => e.slug === t);
|
|
931
914
|
if (o) {
|
|
932
|
-
|
|
915
|
+
j.selectCategory(o);
|
|
933
916
|
return;
|
|
934
917
|
}
|
|
935
|
-
let s =
|
|
918
|
+
let s = j.speakerStore.findBySlug(t);
|
|
936
919
|
if (s) {
|
|
937
|
-
|
|
920
|
+
j.selectSpeaker(s, !0);
|
|
938
921
|
return;
|
|
939
922
|
}
|
|
940
|
-
t.includes("heatmap=true") ||
|
|
923
|
+
t.includes("heatmap=true") || j.searchStore.selectSearch(t);
|
|
941
924
|
}
|
|
942
925
|
showList(e) {
|
|
943
926
|
let t = {
|
|
944
|
-
bookmarks: () =>
|
|
945
|
-
visited: () =>
|
|
946
|
-
sessions: () =>
|
|
947
|
-
exhibitors: () =>
|
|
948
|
-
speakers: () =>
|
|
949
|
-
tours: () =>
|
|
950
|
-
language: () =>
|
|
927
|
+
bookmarks: () => j.selectBookmarks(),
|
|
928
|
+
visited: () => j.selectVisited(),
|
|
929
|
+
sessions: () => j.selectSessions(),
|
|
930
|
+
exhibitors: () => j.selectExhibitors(),
|
|
931
|
+
speakers: () => j.selectSpeakers(),
|
|
932
|
+
tours: () => j.selectTours(),
|
|
933
|
+
language: () => j.selectLanguage()
|
|
951
934
|
}, n = t[e];
|
|
952
935
|
if (!n) {
|
|
953
936
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -960,44 +943,44 @@ var pn = class extends s {
|
|
|
960
943
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
961
944
|
return;
|
|
962
945
|
}
|
|
963
|
-
let t =
|
|
964
|
-
t ?
|
|
946
|
+
let t = j.toursStore.getTourById(e);
|
|
947
|
+
t ? j.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), j.selectTours());
|
|
965
948
|
}
|
|
966
949
|
openPlanner(e = {}) {
|
|
967
950
|
if (typeof e != "object" || !e) {
|
|
968
951
|
$("openPlanner", "An options object must be passed.", "EFP001A00");
|
|
969
952
|
return;
|
|
970
953
|
}
|
|
971
|
-
let t = e.from ?
|
|
972
|
-
if (e.fromBookmarks)
|
|
954
|
+
let t = e.from ? S(e.from) : null;
|
|
955
|
+
if (e.fromBookmarks) j.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
973
956
|
else {
|
|
974
957
|
var n;
|
|
975
|
-
|
|
958
|
+
j.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
976
959
|
}
|
|
977
960
|
}
|
|
978
961
|
startBuildRoute() {
|
|
979
|
-
|
|
962
|
+
j.uiState.startBuildRoute();
|
|
980
963
|
}
|
|
981
964
|
applyParameters(e) {
|
|
982
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
965
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), qt(e);
|
|
983
966
|
}
|
|
984
967
|
getVisibility() {
|
|
985
|
-
return
|
|
968
|
+
return j.uiState.visibility;
|
|
986
969
|
}
|
|
987
970
|
setVisibility(e) {
|
|
988
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
971
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), j.uiState.setVisibility(e);
|
|
989
972
|
}
|
|
990
973
|
findLocation() {
|
|
991
|
-
|
|
974
|
+
j.routeStore.findLocation();
|
|
992
975
|
}
|
|
993
976
|
zoomIn() {
|
|
994
|
-
|
|
977
|
+
j.uiState.zoomIn();
|
|
995
978
|
}
|
|
996
979
|
zoomOut() {
|
|
997
|
-
|
|
980
|
+
j.uiState.zoomOut();
|
|
998
981
|
}
|
|
999
982
|
switchView() {
|
|
1000
|
-
|
|
983
|
+
j.maplibreStore.activateMaplibre();
|
|
1001
984
|
}
|
|
1002
985
|
setCamera(e) {
|
|
1003
986
|
Z("setCamera called with camera=%O", e);
|
|
@@ -1006,10 +989,10 @@ var pn = class extends s {
|
|
|
1006
989
|
$("setCamera", t.error.message, "EFP001B00");
|
|
1007
990
|
return;
|
|
1008
991
|
}
|
|
1009
|
-
|
|
992
|
+
j.uiState.setMapSettings(P(t.data));
|
|
1010
993
|
}
|
|
1011
994
|
getCamera() {
|
|
1012
|
-
return
|
|
995
|
+
return ct(j.uiState.mapSettings);
|
|
1013
996
|
}
|
|
1014
997
|
zoomTo(e, t) {
|
|
1015
998
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
@@ -1037,15 +1020,15 @@ var pn = class extends s {
|
|
|
1037
1020
|
let i = [];
|
|
1038
1021
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1039
1022
|
let t;
|
|
1040
|
-
e.externalId ? t =
|
|
1023
|
+
e.externalId ? t = j.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = j.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1041
1024
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1042
1025
|
var t;
|
|
1043
1026
|
let n;
|
|
1044
|
-
e.externalId ? n =
|
|
1027
|
+
e.externalId ? n = j.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = j.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1045
1028
|
e.rect && i.push(e.rect);
|
|
1046
1029
|
});
|
|
1047
1030
|
}), i.length === 0) return;
|
|
1048
|
-
let a =
|
|
1031
|
+
let a = D.fromUnion(...i);
|
|
1049
1032
|
return {
|
|
1050
1033
|
leftTop: {
|
|
1051
1034
|
x: a.min.x,
|
|
@@ -1059,7 +1042,7 @@ var pn = class extends s {
|
|
|
1059
1042
|
}
|
|
1060
1043
|
fitBounds(e, t) {
|
|
1061
1044
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1062
|
-
|
|
1045
|
+
j.uiState.fitBounds();
|
|
1063
1046
|
return;
|
|
1064
1047
|
}
|
|
1065
1048
|
let n = Rt.safeParse(e);
|
|
@@ -1072,20 +1055,20 @@ var pn = class extends s {
|
|
|
1072
1055
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1073
1056
|
return;
|
|
1074
1057
|
}
|
|
1075
|
-
let i =
|
|
1058
|
+
let i = D.fromMinMax({
|
|
1076
1059
|
x: e.leftTop.x,
|
|
1077
1060
|
y: e.leftTop.y
|
|
1078
1061
|
}, {
|
|
1079
1062
|
x: e.rightBottom.x,
|
|
1080
1063
|
y: e.rightBottom.y
|
|
1081
1064
|
});
|
|
1082
|
-
|
|
1065
|
+
j.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1083
1066
|
}
|
|
1084
1067
|
getBoothRect(e) {
|
|
1085
1068
|
var t;
|
|
1086
1069
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1087
|
-
let n = (t =
|
|
1088
|
-
return n ?
|
|
1070
|
+
let n = (t = S(e)) == null ? void 0 : t.rect;
|
|
1071
|
+
return n ? mn.fromBox(n) : void 0;
|
|
1089
1072
|
}
|
|
1090
1073
|
convertToGeo(e, t) {
|
|
1091
1074
|
var n;
|
|
@@ -1097,7 +1080,7 @@ var pn = class extends s {
|
|
|
1097
1080
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1098
1081
|
return;
|
|
1099
1082
|
}
|
|
1100
|
-
return
|
|
1083
|
+
return Ge(e, t, N.properties.config);
|
|
1101
1084
|
}
|
|
1102
1085
|
getGeoConfig() {
|
|
1103
1086
|
var e, t;
|
|
@@ -1111,16 +1094,16 @@ var pn = class extends s {
|
|
|
1111
1094
|
}
|
|
1112
1095
|
unstable_destroy() {
|
|
1113
1096
|
let e = window.__efpElement.firstChild;
|
|
1114
|
-
|
|
1097
|
+
un(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", i), j.maplibreStore.dispose(), Xe(), Qe(), qe(), this.root.unmount(), e.remove();
|
|
1115
1098
|
}
|
|
1116
1099
|
search(e) {
|
|
1117
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1100
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), j.fuzzySearchEngineStore.loadEngine().then(() => (j.searchStore.selectSearch(e), j.uiState.fuzzySearchItems.map((e) => ({
|
|
1118
1101
|
item: q(e.item),
|
|
1119
1102
|
score: e.score
|
|
1120
1103
|
}))));
|
|
1121
1104
|
}
|
|
1122
1105
|
getFloors() {
|
|
1123
|
-
return
|
|
1106
|
+
return j.layerStore.floors.map((e) => ({
|
|
1124
1107
|
name: e.name,
|
|
1125
1108
|
shortName: e.shortName,
|
|
1126
1109
|
description: e.description,
|
|
@@ -1157,30 +1140,30 @@ var pn = class extends s {
|
|
|
1157
1140
|
}
|
|
1158
1141
|
}
|
|
1159
1142
|
showPathway(e, t) {
|
|
1160
|
-
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ?
|
|
1143
|
+
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? Ve(t) : {
|
|
1161
1144
|
boothExternalIds: [],
|
|
1162
1145
|
exhibitorExternalIds: []
|
|
1163
1146
|
};
|
|
1164
|
-
|
|
1147
|
+
Xt({
|
|
1165
1148
|
pathwayId: e,
|
|
1166
1149
|
boothIds: n,
|
|
1167
1150
|
exhibitorIds: r
|
|
1168
1151
|
});
|
|
1169
1152
|
}
|
|
1170
1153
|
showPathwayOnly(e, t) {
|
|
1171
|
-
this.activateFloor({ name: t }),
|
|
1172
|
-
let n =
|
|
1154
|
+
this.activateFloor({ name: t }), j.layerStore.showPathWay(e), j.uiState.setPathwayOnlyMode(!0);
|
|
1155
|
+
let n = j.layerStore.findLayer(e), r = j.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1173
1156
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1174
1157
|
var a;
|
|
1175
1158
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1176
|
-
|
|
1159
|
+
j.uiState.moveToRect = e.clone();
|
|
1177
1160
|
}
|
|
1178
1161
|
}
|
|
1179
1162
|
hidePathways() {
|
|
1180
|
-
this.highlightBooths([]),
|
|
1163
|
+
this.highlightBooths([]), j.layerStore.hidePathways(), j.uiState.setPathwayOnlyMode(!1);
|
|
1181
1164
|
}
|
|
1182
1165
|
showSearch() {
|
|
1183
|
-
|
|
1166
|
+
j.selectSearch("");
|
|
1184
1167
|
}
|
|
1185
1168
|
changeLanguage(e) {
|
|
1186
1169
|
var t;
|
|
@@ -1192,35 +1175,35 @@ var pn = class extends s {
|
|
|
1192
1175
|
Se(n);
|
|
1193
1176
|
}
|
|
1194
1177
|
isGpsTrackingEnabled() {
|
|
1195
|
-
return
|
|
1178
|
+
return j.routeStore.gpsEnabled;
|
|
1196
1179
|
}
|
|
1197
1180
|
setGpsTrackingEnabled(e) {
|
|
1198
|
-
|
|
1181
|
+
j.routeStore.setGpsTrackingEnabled(e);
|
|
1199
1182
|
}
|
|
1200
1183
|
deselectCurrentPosition() {
|
|
1201
|
-
|
|
1184
|
+
j.routeStore.selectCurrentPosition(null, !1);
|
|
1202
1185
|
}
|
|
1203
1186
|
deselectRoute() {
|
|
1204
|
-
|
|
1187
|
+
j.routeStore.selectRoute(null), j.routeStore.setOnlyAccessible(!1);
|
|
1205
1188
|
}
|
|
1206
1189
|
reset() {
|
|
1207
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1190
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), j.uiState.kioskData && j.resetCameraFn) {
|
|
1208
1191
|
var e;
|
|
1209
|
-
(e =
|
|
1192
|
+
(e = j.resetCameraFn) == null || e.call(j);
|
|
1210
1193
|
} else this.fitBounds();
|
|
1211
1194
|
}
|
|
1212
1195
|
selectAccessibleRoute(e) {
|
|
1213
|
-
|
|
1196
|
+
j.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1214
1197
|
}
|
|
1215
1198
|
};
|
|
1216
1199
|
function Q(e) {
|
|
1217
|
-
return typeof e == "string" ?
|
|
1200
|
+
return typeof e == "string" ? S(e) : j.routeStore.getNearestBooth(e);
|
|
1218
1201
|
}
|
|
1219
|
-
var
|
|
1202
|
+
var pn = 0;
|
|
1220
1203
|
function $(e, t, n) {
|
|
1221
1204
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1222
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1223
|
-
|
|
1205
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), j.fp.disableRuntimeAlerts) return;
|
|
1206
|
+
j.uiState.setGlobalErrorMessage({
|
|
1224
1207
|
title: r,
|
|
1225
1208
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1226
1209
|
i,
|
|
@@ -1232,16 +1215,16 @@ function $(e, t, n) {
|
|
|
1232
1215
|
children: a
|
|
1233
1216
|
})
|
|
1234
1217
|
] })
|
|
1235
|
-
}), clearTimeout(
|
|
1218
|
+
}), clearTimeout(pn);
|
|
1236
1219
|
let o = 8e3;
|
|
1237
|
-
|
|
1220
|
+
pn = window.setTimeout(() => {
|
|
1238
1221
|
let e = async () => {
|
|
1239
|
-
|
|
1222
|
+
j.uiState.globalErrorMessages.length > 0 && (j.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1240
1223
|
};
|
|
1241
1224
|
e();
|
|
1242
1225
|
}, o);
|
|
1243
1226
|
}
|
|
1244
|
-
var
|
|
1227
|
+
var mn = class e {
|
|
1245
1228
|
get h() {
|
|
1246
1229
|
return Math.abs(this.y2 - this.y1);
|
|
1247
1230
|
}
|
|
@@ -1314,4 +1297,4 @@ var hn = class e {
|
|
|
1314
1297
|
}
|
|
1315
1298
|
};
|
|
1316
1299
|
//#endregion
|
|
1317
|
-
export {
|
|
1300
|
+
export { fn as default };
|