@expofp/floorplan 0.0.0-experimental.2d6c681 → 0.0.0-experimental.6f27bb7
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/{CookieConsent-BIsWzAiP.js → CookieConsent-DYjf8elV.js} +1 -1
- package/dist/browser/{Debug-B5mmo0ZX.js → Debug-CK-BLY-v.js} +1 -1
- package/dist/browser/{Demo-B2klxORi.js → Demo-B677YULI.js} +1 -1
- package/dist/browser/{Free-suULW-LU.js → Free-B_nU7Krr.js} +1 -1
- package/dist/browser/{GalleryContainer-BGBNGRKU.js → GalleryContainer-DcZrZnJz.js} +2 -2
- package/dist/browser/{GpsLoader-Idv0kq5D.js → GpsLoader-BrvSPc8H.js} +5 -5
- package/dist/browser/{KioskStore-Dg9jaX5d.js → KioskStore-BJ4bqapB.js} +4 -4
- package/dist/browser/{LayerStore-CK6wLW56.js → LayerStore-C4GTDPHD.js} +4 -4
- package/dist/browser/{MaplibreAdapter-uZUhZfFW.js → MaplibreAdapter-LT3aYdKq.js} +58 -59
- package/dist/browser/{ModalContainer-DWm8vEaI.js → ModalContainer-DnZxo0qA.js} +1 -1
- package/dist/browser/{RouteStore-NE2I9tiF.js → RouteStore-BdR5neK3.js} +1552 -740
- package/dist/browser/{SetKioskMode-Dwlf5w7q.js → SetKioskMode-DAr5HygV.js} +2 -2
- package/dist/browser/{ShowKiosk-Cr-QmIUT.js → ShowKiosk-D69MzGn1.js} +3 -3
- package/dist/browser/{ViewerMenuPanel-CTAjGsq2.js → ViewerMenuPanel-YKHGRQD6.js} +3 -3
- package/dist/browser/bundle.json +31 -34
- package/dist/browser/{components-BjEhhgf2.js → components-CKKQ_xN7.js} +727 -727
- package/dist/browser/{create-live-plan-BaEGBhGA.js → create-live-plan-RDVxhQNb.js} +386 -725
- package/dist/browser/{floorplan.loader-CGzIMplb.js → floorplan.loader-BpPAaf2G.js} +6 -6
- package/dist/browser/{floorplan.ready-r96zV9bP.js → floorplan.ready-ewj3L_Nf.js} +470 -378
- package/dist/browser/{i18n-BgFBhYOU.js → i18n-DRDvImjG.js} +7 -2
- package/dist/browser/index.js +8 -8
- package/dist/browser/{venue-public-BA3x-n4N.js → init-ui-J0bwWoYp.js} +8 -18
- package/dist/browser/{integrateKiosk-D45vYRsm.js → integrateKiosk-C3Y0PTW1.js} +1 -1
- package/dist/browser/{is-debug-BRHdrnKr.js → is-debug-6YYr83sg.js} +2 -2
- package/dist/browser/{journey-plan-DtL28HMP.js → journey-plan-CXmXiYcU.js} +16 -16
- package/dist/browser/{kiosk-mode-DfkGlDkT.js → kiosk-mode-DaPbSm7O.js} +2 -2
- package/dist/browser/{kioskUrlParam-CnYhnC_7.js → kioskUrlParam-BvyzbPxz.js} +1 -1
- package/dist/browser/{loadImage-DzSnRAxX.js → loadImage-CenmkrfL.js} +1 -1
- package/dist/browser/{logDeviceInfo-BTqyv9Xe.js → logDeviceInfo-BVFtT7aX.js} +4 -4
- package/dist/browser/{debounce-raMZ2DqK.js → venue-selection-BaGA9szA.js} +8 -18
- package/dist/browser/{viewport-B7plho3P.js → viewport-DVZ47XEo.js} +1 -1
- package/dist/esm/floorplan.ready.js +10 -0
- package/dist/esm/store/RouteStore.d.ts +10 -0
- package/dist/esm/store/RouteStore.js +45 -16
- package/dist/esm/store/VenueStore.d.ts +7 -0
- package/dist/esm/store/VenueStore.js +9 -0
- package/dist/esm/tools/sdk-telemetry.d.ts +10 -0
- package/dist/esm/tools/sdk-telemetry.js +122 -0
- package/package.json +10 -10
- package/dist/browser/venues-DKpIy-87.js +0 -447
|
@@ -3,41 +3,41 @@
|
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
4
|
e.SENTRY_RELEASE = { id: "3.45.6" };
|
|
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] = "3be1ce04-753c-4646-b79c-a22b2afe97f2", e._sentryDebugIdIdentifier = "sentry-dbid-3be1ce04-753c-4646-b79c-a22b2afe97f2");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
9
|
import { r as e } from "./rolldown-runtime-DUb2xvRc.js";
|
|
10
|
-
import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./floorplan.loader-
|
|
11
|
-
import { $ as l, At as u, Ct as d, Dt as f, Et as ee, O as te, Ot as
|
|
12
|
-
import { s as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { a as
|
|
16
|
-
import { n as
|
|
17
|
-
import { r as
|
|
18
|
-
import { C as
|
|
19
|
-
import { l as
|
|
20
|
-
import { t as
|
|
21
|
-
import { i as
|
|
22
|
-
import {
|
|
23
|
-
import { $ as
|
|
24
|
-
import { l as
|
|
25
|
-
import {
|
|
26
|
-
import { t as
|
|
27
|
-
import { r as
|
|
28
|
-
import { n as
|
|
29
|
-
import { c as
|
|
30
|
-
import {
|
|
10
|
+
import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./floorplan.loader-BpPAaf2G.js";
|
|
11
|
+
import { $ as l, At as u, Ct as d, Dt as f, Et as ee, O as te, Ot as ne, Q as p, St as re, Tt as ie, U as ae, X as oe, Y as se, _t as ce, at as le, bt as ue, ct as de, dt as fe, et as pe, ft as me, gt as he, ht as ge, j as _e, jt as ve, k as ye, kt as m, l as be, mt as xe, n as Se, nt as Ce, o as we, pt as Te, r as Ee, st as De, tt as Oe, ut as ke, vt as Ae, wt as je, xt as Me, yt as Ne, z as Pe } from "./i18n-DRDvImjG.js";
|
|
12
|
+
import { s as Fe } from "./efp-debug-init-CozbueIl.js";
|
|
13
|
+
import { t as Ie } from "./react-DqPP-mkq.js";
|
|
14
|
+
import { t as Le } from "./jsx-runtime-DQgnuS-I.js";
|
|
15
|
+
import { a as h, m as g } from "./is-debug-6YYr83sg.js";
|
|
16
|
+
import { n as Re, t as ze } from "./is-own-domain-DNvxb9Ph.js";
|
|
17
|
+
import { r as Be } from "./loadImage-CenmkrfL.js";
|
|
18
|
+
import { C as Ve, D as He, Q as Ue, ht as _, i as We, n as Ge, w as Ke } from "./exports-CvUYw1h6.js";
|
|
19
|
+
import { l as qe, u as Je } from "./mobx.module-BOCLFB5I.js";
|
|
20
|
+
import { t as Ye } from "./client-BcPpS_Gj.js";
|
|
21
|
+
import { i as Xe, n as Ze, r as v, t as Qe } from "./components-CKKQ_xN7.js";
|
|
22
|
+
import { c as $e, g as et, t as tt, v as nt } from "./venue-selection-BaGA9szA.js";
|
|
23
|
+
import { $ as y, A as rt, Bt as it, M as b, N as at, S as ot, Ut as x, Xt as S, m as st, un as C } from "./LayerStore-C4GTDPHD.js";
|
|
24
|
+
import { l as w, u as T } from "./store-q_CTsixH.js";
|
|
25
|
+
import { C as E, G as ct, H as lt, L as ut, M as dt, N as ft, P as pt, R as D, S as mt, U as O, V as ht, a as k, b as gt, c as _t, i as vt, k as yt, n as A, t as bt, u as xt, z as St } from "./RouteStore-BdR5neK3.js";
|
|
26
|
+
import { t as Ct } from "./kioskUrlParam-BvyzbPxz.js";
|
|
27
|
+
import { r as wt, t as Tt } from "./kiosk-mode-DaPbSm7O.js";
|
|
28
|
+
import { n as Et, t as Dt } from "./integrateKiosk-C3Y0PTW1.js";
|
|
29
|
+
import { c as Ot, n as kt } from "./journey-plan-CXmXiYcU.js";
|
|
30
|
+
import { t as At } from "./init-ui-J0bwWoYp.js";
|
|
31
31
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
32
|
-
function
|
|
32
|
+
function jt(e = {}) {
|
|
33
33
|
let n = r.document, i = (n == null ? void 0 : n.head) || (n == null ? void 0 : n.body);
|
|
34
34
|
if (!i) {
|
|
35
|
-
o &&
|
|
35
|
+
o && _.error("[showReportDialog] Global document not defined");
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
let a =
|
|
38
|
+
let a = Ke(), s = Ve(), c = s == null ? void 0 : s.getDsn();
|
|
39
39
|
if (!c) {
|
|
40
|
-
o &&
|
|
40
|
+
o && _.error("[showReportDialog] DSN not configured");
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
43
|
let l = {
|
|
@@ -46,7 +46,7 @@ function kt(e = {}) {
|
|
|
46
46
|
...a.getUser(),
|
|
47
47
|
...e.user
|
|
48
48
|
},
|
|
49
|
-
eventId: e.eventId ||
|
|
49
|
+
eventId: e.eventId || We()
|
|
50
50
|
}, u = r.document.createElement("script");
|
|
51
51
|
u.async = !0, u.crossOrigin = "anonymous", u.src = t(c, l);
|
|
52
52
|
let { onLoad: d, onClose: f } = l;
|
|
@@ -64,12 +64,12 @@ function kt(e = {}) {
|
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/error.js
|
|
67
|
-
var
|
|
68
|
-
function
|
|
67
|
+
var j = /* @__PURE__ */ e(Ie());
|
|
68
|
+
function Mt(e) {
|
|
69
69
|
let t = e.match(/^([^.]+)/);
|
|
70
70
|
return t !== null && parseInt(t[0]) >= 17;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Nt(e, t) {
|
|
73
73
|
let n = /* @__PURE__ */ new WeakSet();
|
|
74
74
|
function r(e, t) {
|
|
75
75
|
if (!n.has(e)) {
|
|
@@ -79,25 +79,25 @@ function jt(e, t) {
|
|
|
79
79
|
}
|
|
80
80
|
r(e, t);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
if (
|
|
82
|
+
function Pt(e, { componentStack: t }, n) {
|
|
83
|
+
if (Mt(j.version) && Ue(e) && t) {
|
|
84
84
|
let n = Error(e.message);
|
|
85
|
-
n.name = `React ErrorBoundary ${e.name}`, n.stack = t,
|
|
85
|
+
n.name = `React ErrorBoundary ${e.name}`, n.stack = t, Nt(e, n);
|
|
86
86
|
}
|
|
87
|
-
return
|
|
87
|
+
return Ge(e, n);
|
|
88
88
|
}
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/debug-build.js
|
|
91
|
-
var
|
|
91
|
+
var Ft = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, M = {
|
|
92
92
|
componentStack: null,
|
|
93
93
|
error: null,
|
|
94
94
|
eventId: null
|
|
95
|
-
},
|
|
95
|
+
}, It = class extends j.Component {
|
|
96
96
|
constructor(e) {
|
|
97
|
-
super(e), this.state =
|
|
98
|
-
let t =
|
|
97
|
+
super(e), this.state = M, this._openFallbackReportDialog = !0;
|
|
98
|
+
let t = Ve();
|
|
99
99
|
t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
|
|
100
|
-
!t.type && this._lastEventId && t.event_id === this._lastEventId &&
|
|
100
|
+
!t.type && this._lastEventId && t.event_id === this._lastEventId && jt({
|
|
101
101
|
...e.dialogOptions,
|
|
102
102
|
eventId: this._lastEventId
|
|
103
103
|
});
|
|
@@ -105,13 +105,13 @@ var Nt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, N = {
|
|
|
105
105
|
}
|
|
106
106
|
componentDidCatch(e, t) {
|
|
107
107
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
108
|
-
|
|
108
|
+
He((s) => {
|
|
109
109
|
r && r(s, e, n);
|
|
110
|
-
let c =
|
|
110
|
+
let c = Pt(e, t, { mechanism: {
|
|
111
111
|
handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
|
|
112
112
|
type: "auto.function.react.error_boundary"
|
|
113
113
|
} });
|
|
114
|
-
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog &&
|
|
114
|
+
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && jt({
|
|
115
115
|
...o,
|
|
116
116
|
eventId: c
|
|
117
117
|
})), this.setState({
|
|
@@ -127,32 +127,32 @@ var Nt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, N = {
|
|
|
127
127
|
}
|
|
128
128
|
componentWillUnmount() {
|
|
129
129
|
let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
|
|
130
|
-
r && (this.state ===
|
|
130
|
+
r && (this.state === M ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
|
|
131
131
|
}
|
|
132
132
|
resetErrorBoundary() {
|
|
133
133
|
let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
|
|
134
|
-
e && e(t, n, r), this.setState(
|
|
134
|
+
e && e(t, n, r), this.setState(M);
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
let { fallback: e, children: t } = this.props, n = this.state;
|
|
138
138
|
if (n.componentStack === null) return typeof t == "function" ? t() : t;
|
|
139
|
-
let r = typeof e == "function" ?
|
|
139
|
+
let r = typeof e == "function" ? j.createElement(e, {
|
|
140
140
|
error: n.error,
|
|
141
141
|
componentStack: n.componentStack,
|
|
142
142
|
resetError: () => this.resetErrorBoundary(),
|
|
143
143
|
eventId: n.eventId
|
|
144
144
|
}) : e;
|
|
145
|
-
return
|
|
145
|
+
return j.isValidElement(r) ? r : (e && Ft && _.warn("fallback did not produce a valid ReactElement"), null);
|
|
146
146
|
}
|
|
147
|
-
},
|
|
148
|
-
function
|
|
147
|
+
}, Lt = /* @__PURE__ */ e(Fe(), 1), Rt = Ye(), zt = nt();
|
|
148
|
+
function Bt() {
|
|
149
149
|
let e = window.location.hostname.split(".");
|
|
150
150
|
return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return
|
|
152
|
+
function Vt() {
|
|
153
|
+
return Bt() ? window.location.hostname.split(".")[0] : "main";
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ht(e) {
|
|
156
156
|
if ((e == null ? void 0 : e.free) === !0) return "Free";
|
|
157
157
|
let t = e == null ? void 0 : e.trialExpiresAt;
|
|
158
158
|
if (t) {
|
|
@@ -161,25 +161,25 @@ function zt(e) {
|
|
|
161
161
|
}
|
|
162
162
|
return "Active";
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ut() {
|
|
165
165
|
return !1;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Wt(e) {
|
|
168
168
|
return e;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
if (
|
|
172
|
-
let t =
|
|
173
|
-
subDomain:
|
|
174
|
-
subscriptionStatus:
|
|
170
|
+
function Gt(e) {
|
|
171
|
+
if (Ut() || !Bt() || wt(e) || !window.navigator.onLine) return null;
|
|
172
|
+
let t = Wt({
|
|
173
|
+
subDomain: Vt(),
|
|
174
|
+
subscriptionStatus: Ht(e)
|
|
175
175
|
});
|
|
176
176
|
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
180
|
-
var
|
|
180
|
+
var N = /*@__PURE__*/ m("ZodMiniType", (e, t) => {
|
|
181
181
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
182
|
-
|
|
182
|
+
Me.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => re(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => je(e, t, n), e.parseAsync = async (t, n) => d(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ie(e, t, n), e.check = (...n) => {
|
|
183
183
|
var r;
|
|
184
184
|
return e.clone({
|
|
185
185
|
...t,
|
|
@@ -190,94 +190,94 @@ var F = /*@__PURE__*/ h("ZodMiniType", (e, t) => {
|
|
|
190
190
|
} } : e)]
|
|
191
191
|
}, { parent: !0 });
|
|
192
192
|
}, e.with = e.check, e.clone = (t, n) => ee(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
193
|
-
}),
|
|
194
|
-
|
|
193
|
+
}), Kt = /*@__PURE__*/ m("ZodMiniString", (e, t) => {
|
|
194
|
+
ue.init(e, t), N.init(e, t);
|
|
195
195
|
});
|
|
196
196
|
// @__NO_SIDE_EFFECTS__
|
|
197
|
-
function
|
|
198
|
-
return
|
|
197
|
+
function qt(e) {
|
|
198
|
+
return Te(Kt, e);
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
|
|
200
|
+
var Jt = /*@__PURE__*/ m("ZodMiniNumber", (e, t) => {
|
|
201
|
+
ce.init(e, t), N.init(e, t);
|
|
202
202
|
});
|
|
203
203
|
// @__NO_SIDE_EFFECTS__
|
|
204
|
-
function
|
|
205
|
-
return
|
|
204
|
+
function P(e) {
|
|
205
|
+
return fe(Jt, e);
|
|
206
206
|
}
|
|
207
|
-
var
|
|
208
|
-
|
|
207
|
+
var Yt = /*@__PURE__*/ m("ZodMiniNever", (e, t) => {
|
|
208
|
+
he.init(e, t), N.init(e, t);
|
|
209
209
|
});
|
|
210
210
|
// @__NO_SIDE_EFFECTS__
|
|
211
|
-
function
|
|
212
|
-
return
|
|
211
|
+
function Xt(e) {
|
|
212
|
+
return ke(Yt, e);
|
|
213
213
|
}
|
|
214
|
-
var
|
|
215
|
-
|
|
214
|
+
var Zt = /*@__PURE__*/ m("ZodMiniArray", (e, t) => {
|
|
215
|
+
xe.init(e, t), N.init(e, t);
|
|
216
216
|
});
|
|
217
217
|
// @__NO_SIDE_EFFECTS__
|
|
218
|
-
function
|
|
219
|
-
return new
|
|
218
|
+
function Qt(e, t) {
|
|
219
|
+
return new Zt({
|
|
220
220
|
type: "array",
|
|
221
221
|
element: e,
|
|
222
|
-
...
|
|
222
|
+
...ne(t)
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var $t = /*@__PURE__*/ m("ZodMiniObject", (e, t) => {
|
|
226
|
+
Ae.init(e, t), N.init(e, t), f(e, "shape", () => t.shape);
|
|
227
227
|
});
|
|
228
228
|
// @__NO_SIDE_EFFECTS__
|
|
229
|
-
function
|
|
230
|
-
return new
|
|
229
|
+
function F(e, t) {
|
|
230
|
+
return new $t({
|
|
231
231
|
type: "object",
|
|
232
232
|
shape: e,
|
|
233
|
-
catchall: /* @__PURE__ */
|
|
234
|
-
...
|
|
233
|
+
catchall: /* @__PURE__ */ Xt(),
|
|
234
|
+
...ne(t)
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
|
-
var
|
|
238
|
-
|
|
237
|
+
var en = /*@__PURE__*/ m("ZodMiniOptional", (e, t) => {
|
|
238
|
+
Ne.init(e, t), N.init(e, t);
|
|
239
239
|
});
|
|
240
240
|
// @__NO_SIDE_EFFECTS__
|
|
241
|
-
function
|
|
242
|
-
return new
|
|
241
|
+
function I(e) {
|
|
242
|
+
return new en({
|
|
243
243
|
type: "optional",
|
|
244
244
|
innerType: e
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
var
|
|
248
|
-
|
|
247
|
+
var tn = /*@__PURE__*/ m("ZodMiniCustom", (e, t) => {
|
|
248
|
+
ge.init(e, t), N.init(e, t);
|
|
249
249
|
});
|
|
250
250
|
// @__NO_SIDE_EFFECTS__
|
|
251
|
-
function
|
|
252
|
-
return
|
|
251
|
+
function nn(e, t = {}) {
|
|
252
|
+
return me(tn, e, t);
|
|
253
253
|
}
|
|
254
254
|
//#endregion
|
|
255
255
|
//#region src/schemas/sdk.schemas.ts
|
|
256
|
-
var
|
|
257
|
-
x: /* @__PURE__ */
|
|
258
|
-
y: /* @__PURE__ */
|
|
259
|
-
}),
|
|
260
|
-
leftTop:
|
|
261
|
-
rightBottom:
|
|
262
|
-
}),
|
|
263
|
-
name: /* @__PURE__ */
|
|
264
|
-
externalId: /* @__PURE__ */
|
|
265
|
-
})).check(/* @__PURE__ */
|
|
266
|
-
booths: /* @__PURE__ */
|
|
267
|
-
exhibitors: /* @__PURE__ */
|
|
268
|
-
})).check(/* @__PURE__ */
|
|
256
|
+
var rn = /* @__PURE__ */ F({
|
|
257
|
+
x: /* @__PURE__ */ P(),
|
|
258
|
+
y: /* @__PURE__ */ P()
|
|
259
|
+
}), an = /* @__PURE__ */ F({
|
|
260
|
+
leftTop: rn,
|
|
261
|
+
rightBottom: rn
|
|
262
|
+
}), on = (/* @__PURE__ */ F({
|
|
263
|
+
name: /* @__PURE__ */ I(/* @__PURE__ */ qt()),
|
|
264
|
+
externalId: /* @__PURE__ */ I(/* @__PURE__ */ qt())
|
|
265
|
+
})).check(/* @__PURE__ */ nn((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), sn = (/* @__PURE__ */ F({
|
|
266
|
+
booths: /* @__PURE__ */ I(/* @__PURE__ */ Qt(on)),
|
|
267
|
+
exhibitors: /* @__PURE__ */ I(/* @__PURE__ */ Qt(on))
|
|
268
|
+
})).check(/* @__PURE__ */ nn((e) => {
|
|
269
269
|
var t, n;
|
|
270
270
|
return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
|
|
271
|
-
}, "Selector must contain booths or exhibitors")),
|
|
271
|
+
}, "Selector must contain booths or exhibitors")), cn = /* @__PURE__ */ I(/* @__PURE__ */ F({ padding: /* @__PURE__ */ I(/* @__PURE__ */ P()) }));
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
274
|
-
function
|
|
275
|
-
let t =
|
|
276
|
-
Object.values(t).length && (
|
|
274
|
+
function ln(e) {
|
|
275
|
+
let t = Ct(e);
|
|
276
|
+
Object.values(t).length && (Dt(t, !1), Et(t));
|
|
277
277
|
}
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region src/utils/getMostFrequent.ts
|
|
280
|
-
function
|
|
280
|
+
function un(e) {
|
|
281
281
|
let t = {}, n = 0, r;
|
|
282
282
|
return e.forEach((e) => {
|
|
283
283
|
t[e] = (t[e] || 0) + 1, t[e] > n && (n = t[e], r = e);
|
|
@@ -285,85 +285,85 @@ function an(e) {
|
|
|
285
285
|
}
|
|
286
286
|
//#endregion
|
|
287
287
|
//#region src/services/multi-slug.ts
|
|
288
|
-
function
|
|
288
|
+
function dn(e, t) {
|
|
289
289
|
if (!e.includes("&") && !e.includes("%26")) return null;
|
|
290
|
-
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !
|
|
290
|
+
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !p(e).includes("=");
|
|
291
291
|
return i.filter(a).length < 2 ? null : "?" + i.map((e) => a(e) && t(e) || e).join("&");
|
|
292
292
|
}
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region src/services/url-dispatch.ts
|
|
295
|
-
var
|
|
296
|
-
function
|
|
297
|
-
|
|
295
|
+
var L = !1, R = !1;
|
|
296
|
+
function fn() {
|
|
297
|
+
V(u()), b(() => w.layerStore.layersLoaded, () => {
|
|
298
298
|
let e = u().camera;
|
|
299
|
-
Object.keys(e).length &&
|
|
299
|
+
Object.keys(e).length && jn(v(e));
|
|
300
300
|
let t = u().visibility;
|
|
301
|
-
Object.keys(t).length &&
|
|
301
|
+
Object.keys(t).length && T.setVisibility(t);
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
|
|
304
|
+
function pn(e) {
|
|
305
|
+
ht({
|
|
306
306
|
offHistory: e,
|
|
307
|
-
onNavigate: () =>
|
|
308
|
-
}),
|
|
309
|
-
|
|
307
|
+
onNavigate: () => B({ backForward: !0 })
|
|
308
|
+
}), bn(), z(), b(() => w.layerStore.layersLoaded, () => {
|
|
309
|
+
w.urlFilterManager && !w.urlFilterManager.isInitialized && w.urlFilterManager.initialize(), R = !0;
|
|
310
310
|
try {
|
|
311
|
-
|
|
311
|
+
B();
|
|
312
312
|
} finally {
|
|
313
|
-
|
|
313
|
+
R = !1;
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
rt(An), rt(En), T.viewerMode && (T.menu = !0);
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
O("?" +
|
|
318
|
+
function mn(e = "") {
|
|
319
|
+
O("?" + p(e.toString())), w.layerStore.layersLoaded ? hn(e) : (z(), b(() => w.layerStore.layersLoaded, () => hn(e)));
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function hn(e) {
|
|
322
322
|
var t, r;
|
|
323
|
-
let i = "?" +
|
|
323
|
+
let i = "?" + p(e), a = wn(i), o = [...(t = a.intents) == null ? [] : t, ...pe(i).intents], { intents: s = [], ...c } = l(i, {
|
|
324
324
|
visibility: a.visibility,
|
|
325
325
|
consent: a.consent,
|
|
326
326
|
intents: o
|
|
327
327
|
});
|
|
328
|
-
|
|
328
|
+
V(a), V(c);
|
|
329
329
|
let u = (r = a.consent) == null ? c.consent : r;
|
|
330
|
-
u &&
|
|
330
|
+
u && pt(u), a.camera && Object.keys(a.camera).length && jn(v(a.camera)), a.visibility && Object.keys(a.visibility).length && T.setVisibility(a.visibility), bn(), B();
|
|
331
331
|
let d = [...o, ...s];
|
|
332
|
-
d.length && n(
|
|
332
|
+
d.length && n(w.fp, d);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function z() {
|
|
335
335
|
let e = D();
|
|
336
|
-
return
|
|
336
|
+
return Ze(e.length > 1 ? p(e.substring(1)) : "");
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
|
|
338
|
+
function B(e = {}) {
|
|
339
|
+
L = !0;
|
|
340
340
|
try {
|
|
341
|
-
|
|
342
|
-
let { primary: t } =
|
|
343
|
-
!
|
|
341
|
+
ln(new URLSearchParams(p(window.location.search)));
|
|
342
|
+
let { primary: t } = se(D()), n = t.type === "select" && (!t.slug || /^t=[^&]*$/.test(t.slug)) && (T.heatmap || T.heatmapYah);
|
|
343
|
+
!z() && !n && (e.backForward ? _n(t) : vn(t)), gn();
|
|
344
344
|
} finally {
|
|
345
|
-
|
|
345
|
+
L = !1;
|
|
346
346
|
}
|
|
347
347
|
if (e.backForward) {
|
|
348
|
-
let { exhibitor: e, booth: t, eventItem: n } =
|
|
348
|
+
let { exhibitor: e, booth: t, eventItem: n } = kn(), r = Tn();
|
|
349
349
|
r.exhibitor = e, r.booth = t, r.eventItem = n;
|
|
350
350
|
}
|
|
351
|
-
|
|
351
|
+
En(), An();
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
let e =
|
|
355
|
-
e &&
|
|
353
|
+
function gn() {
|
|
354
|
+
let e = Ot(D(), { selectRoute: (e, t) => w.routeStore.selectRoute(vt(e, t, [])) });
|
|
355
|
+
e && g.log("Journey deep link", e);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
e.type === "list" && e.list === "sessions" ?
|
|
359
|
-
let { intents: t } =
|
|
360
|
-
n(
|
|
357
|
+
function _n(e) {
|
|
358
|
+
e.type === "list" && e.list === "sessions" ? w.fp.showSessions() : vn(e);
|
|
359
|
+
let { intents: t } = pe(D());
|
|
360
|
+
n(w.fp, t.filter((e) => e.name === "showSessions"));
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
let t =
|
|
362
|
+
function vn(e) {
|
|
363
|
+
let t = w.fp;
|
|
364
364
|
switch (e.type) {
|
|
365
365
|
case "kiosk":
|
|
366
|
-
e.enabled !== null &&
|
|
366
|
+
e.enabled !== null && Tt(T, e.enabled);
|
|
367
367
|
return;
|
|
368
368
|
case "list":
|
|
369
369
|
t.showList(e.list);
|
|
@@ -372,7 +372,7 @@ function pn(e) {
|
|
|
372
372
|
t.selectTour(e.tourId);
|
|
373
373
|
return;
|
|
374
374
|
case "planner":
|
|
375
|
-
|
|
375
|
+
R && w.searchButtonsStore.keepFiltersOnNextNavigation(), t.openPlanner({
|
|
376
376
|
items: e.items,
|
|
377
377
|
from: e.from,
|
|
378
378
|
fromBookmarks: e.fromBookmarks
|
|
@@ -380,16 +380,16 @@ function pn(e) {
|
|
|
380
380
|
return;
|
|
381
381
|
case "route": {
|
|
382
382
|
var n, r;
|
|
383
|
-
|
|
384
|
-
let t =
|
|
385
|
-
|
|
383
|
+
w.routeStore.setOnlyAccessible(e.accessible);
|
|
384
|
+
let t = vt((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints);
|
|
385
|
+
R && !(t.from && t.from === t.to) && w.searchButtonsStore.keepFiltersOnNextNavigation(), w.routeStore.selectRoute(t), w.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && w.uiState.setRouteTitle(e.title);
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
388
|
case "selectExhibitors":
|
|
389
389
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
390
390
|
return;
|
|
391
391
|
case "ownedByFilters":
|
|
392
|
-
|
|
392
|
+
g.log("Skipping filter parameters in dispatchFromUrl (owned by URLFilterManager)");
|
|
393
393
|
return;
|
|
394
394
|
case "ownedByConfig": return;
|
|
395
395
|
case "select":
|
|
@@ -397,105 +397,105 @@ function pn(e) {
|
|
|
397
397
|
return;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i =
|
|
402
|
-
if (
|
|
403
|
-
let e =
|
|
404
|
-
e &&
|
|
405
|
-
}
|
|
406
|
-
(n.length > 0 || r.length > 0) &&
|
|
407
|
-
|
|
400
|
+
function yn(e) {
|
|
401
|
+
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i = w.boothStore.booths.filter((e) => n.includes(e.externalId)), a = w.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), o = [...i, ...a];
|
|
402
|
+
if (it()) {
|
|
403
|
+
let e = un(o.map((e) => e.layer.name));
|
|
404
|
+
e && w.fp.activateFloor({ name: e });
|
|
405
|
+
}
|
|
406
|
+
(n.length > 0 || r.length > 0) && w.fp.highlightEntities([...n, ...r]), w.layerStore.showPathWay(t), o.length > 0 && Je(() => {
|
|
407
|
+
w.uiState.moveToRect = C.fromUnion(...o.map((e) => e.rect).filter(Boolean)), w.uiState.rollReset = !0;
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let { oneShots: e } =
|
|
412
|
-
for (let t of e)
|
|
413
|
-
let t =
|
|
414
|
-
t !== null && O("?" + t),
|
|
410
|
+
function bn() {
|
|
411
|
+
let { oneShots: e } = se(D());
|
|
412
|
+
for (let t of e) xn(t);
|
|
413
|
+
let t = $e(D());
|
|
414
|
+
t !== null && O("?" + t), T.previewExhibitor && O("?" + T.previewExhibitor.slug), Cn();
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function xn(e) {
|
|
417
417
|
switch (e.type) {
|
|
418
418
|
case "heatmap":
|
|
419
|
-
|
|
419
|
+
Sn(e.yah);
|
|
420
420
|
return;
|
|
421
421
|
case "blueDot": {
|
|
422
422
|
var t, n;
|
|
423
|
-
let r = new
|
|
424
|
-
|
|
423
|
+
let r = new bt(e.x, e.y, (t = w.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
424
|
+
b(() => w.layerStore.layersLoaded, () => w.routeStore.selectCurrentPosition(r, !0, 1));
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
427
|
case "viewerMode":
|
|
428
|
-
|
|
428
|
+
be && (e.enabled ? localStorage.setItem(ae, "true") : (localStorage.removeItem(ae), localStorage.removeItem(_e)));
|
|
429
429
|
return;
|
|
430
430
|
case "previewMode":
|
|
431
|
-
|
|
431
|
+
be && (e.enabled ? localStorage.setItem(Pe, "true") : (localStorage.removeItem(Pe), localStorage.removeItem(ye)));
|
|
432
432
|
return;
|
|
433
433
|
case "uiScale":
|
|
434
|
-
e.scale === null ?
|
|
434
|
+
e.scale === null ? g.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : w.uiState.setUIScale(e.scale, !0);
|
|
435
435
|
return;
|
|
436
436
|
case "resetUiScale":
|
|
437
|
-
|
|
437
|
+
w.uiState.resetUIScale();
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
|
|
441
|
+
function Sn(e) {
|
|
442
|
+
St(), e ? (T.heatmapYah = !0, T.monochrome = !0, T.hideLogoInBooth = !0, T.hideHeaderLogo = !0, T.disableBookmarked = !0) : T.heatmap = !0;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
445
|
-
let e =
|
|
446
|
-
let t =
|
|
444
|
+
function Cn() {
|
|
445
|
+
let e = dn(D(), (e) => {
|
|
446
|
+
let t = w.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
447
447
|
return t == null ? void 0 : t.name;
|
|
448
448
|
});
|
|
449
449
|
e !== null && O(e);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
e.noOverlay !== void 0 && (
|
|
451
|
+
function V(e) {
|
|
452
|
+
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 && w.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (T.disableBookmarked = !0), e.disableGps && w.routeStore.setGpsTrackingEnabled(!1), e.heatmap && i(e.heatmap) && Sn(e.heatmap.variant === "yah");
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
return
|
|
454
|
+
function wn(e) {
|
|
455
|
+
return Ce(le, e).value;
|
|
456
456
|
}
|
|
457
|
-
var
|
|
457
|
+
var Tn = Be(() => ({
|
|
458
458
|
exhibitor: null,
|
|
459
459
|
booth: null,
|
|
460
460
|
eventItem: null
|
|
461
461
|
}));
|
|
462
|
-
function
|
|
463
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } =
|
|
464
|
-
if (
|
|
465
|
-
let o = a ||
|
|
462
|
+
function En() {
|
|
463
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = kn(), i = w.urlFilterManager.filterSearch(), a = Dn(e);
|
|
464
|
+
if (L) return;
|
|
465
|
+
let o = a || oe(e) || i;
|
|
466
466
|
if (D() === o) return;
|
|
467
|
-
let s =
|
|
467
|
+
let s = Tn();
|
|
468
468
|
t !== s.exhibitor || n !== s.booth || r !== s.eventItem ? lt(o) : O(o), s.exhibitor = t, s.booth = n, s.eventItem = r;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Dn(e) {
|
|
471
471
|
if (e.type !== "list" || e.list !== "sessions") return "";
|
|
472
|
-
let { selectedTracks: t, selectedVenues: n, date: r, timeOfDay: i, showBookmarksOnly: a, showLiveOnly: o } =
|
|
473
|
-
return t.value.length && (s.tracks =
|
|
472
|
+
let { selectedTracks: t, selectedVenues: n, date: r, timeOfDay: i, showBookmarksOnly: a, showLiveOnly: o } = w.sessionsFilterStore.state.filters, s = {};
|
|
473
|
+
return t.value.length && (s.tracks = On(t.value)), n.value.length && (s.venues = On(n.value)), r.value !== "all" && (s.date = r.value), r.value === "today" && i.value !== "all" && (s.time = i.value), a.value && (s.bookmarked = !0), o.value && (s.live = !0), Object.keys(s).length ? "?" + Oe({
|
|
474
474
|
name: "showSessions",
|
|
475
475
|
args: [s]
|
|
476
476
|
}) : "";
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function On(e) {
|
|
479
479
|
return [...e].sort((e, t) => e - t).map(String);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
let e =
|
|
481
|
+
function kn() {
|
|
482
|
+
let e = T.selectedExhibitor, t = T.selectedBooth, n = T.selectedEventItem, r = T.selectedRoute, i = T.selectedSpeaker, a = T.setKioskModeEnabled, o = T.list, s;
|
|
483
483
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
484
484
|
var c;
|
|
485
|
-
let e =
|
|
485
|
+
let e = w.routePlannerStore;
|
|
486
486
|
s = {
|
|
487
487
|
type: "planner",
|
|
488
488
|
fromBookmarks: e.source === "bookmarks",
|
|
489
489
|
items: e.items.map((e) => e.entity.slug).filter(Boolean),
|
|
490
490
|
from: ((c = e.startPoint) == null ? void 0 : c.slug) || void 0
|
|
491
491
|
};
|
|
492
|
-
} else if (r && !
|
|
492
|
+
} else if (r && !T.isMultiPointRoute) {
|
|
493
493
|
var l;
|
|
494
494
|
s = {
|
|
495
495
|
type: "route",
|
|
496
|
-
to: r.to instanceof
|
|
497
|
-
from: r.from instanceof
|
|
498
|
-
accessible:
|
|
496
|
+
to: r.to instanceof y ? r.to.slug : void 0,
|
|
497
|
+
from: r.from instanceof y ? r.from.slug : void 0,
|
|
498
|
+
accessible: w.routeStore.onlyAccessible,
|
|
499
499
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
500
500
|
};
|
|
501
501
|
} else if (e) s = {
|
|
@@ -532,7 +532,7 @@ function wn() {
|
|
|
532
532
|
var u, d;
|
|
533
533
|
s = {
|
|
534
534
|
type: "slug",
|
|
535
|
-
slug: (u = (d =
|
|
535
|
+
slug: (u = (d = T.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
536
536
|
};
|
|
537
537
|
break;
|
|
538
538
|
case "search":
|
|
@@ -563,18 +563,18 @@ function wn() {
|
|
|
563
563
|
eventItem: n
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function An() {
|
|
567
567
|
var e;
|
|
568
|
-
if (!
|
|
569
|
-
let t =
|
|
570
|
-
t ? i = t.name : n ? i = n.name : r ? i = r.name :
|
|
568
|
+
if (!ze) return;
|
|
569
|
+
let t = T.selectedExhibitor, n = T.selectedEventItem, r = T.selectedSpeaker, i = "";
|
|
570
|
+
t ? i = t.name : n ? i = n.name : r ? i = r.name : T.list.type === "search" && T.list.text ? i = "`" + (T.list.text || "") + "`" : T.list.type === "multi-point-tour" && T.tourTitle && (i = T.tourTitle), i.length && (i += " – "), i += (e = a(S, Re)) == null ? s(window.location.hostname, Re) : e, document.title = i;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function jn(e) {
|
|
573
573
|
try {
|
|
574
|
-
if (
|
|
574
|
+
if (T.setMapSettings(e), tt(w.venueStore, e.venue, e.z)) return;
|
|
575
575
|
if (e.z) {
|
|
576
|
-
let t =
|
|
577
|
-
t &&
|
|
576
|
+
let t = w.layerStore.layers.find((t) => t.name === e.z);
|
|
577
|
+
t && w.layerStore.updateVisibility(t, !0);
|
|
578
578
|
}
|
|
579
579
|
} catch (e) {
|
|
580
580
|
console.error("Failed to process map settings.", e);
|
|
@@ -582,26 +582,26 @@ function En(e) {
|
|
|
582
582
|
}
|
|
583
583
|
//#endregion
|
|
584
584
|
//#region src/store/details-events.ts
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function Mn() {
|
|
586
|
+
return qe(() => T.details, () => {
|
|
587
587
|
var e;
|
|
588
|
-
if (!
|
|
589
|
-
if (!
|
|
590
|
-
|
|
588
|
+
if (!T.onDetails) return;
|
|
589
|
+
if (!T.details) {
|
|
590
|
+
T.onDetails(null);
|
|
591
591
|
return;
|
|
592
592
|
}
|
|
593
|
-
let t =
|
|
594
|
-
if (
|
|
593
|
+
let t = T.details;
|
|
594
|
+
if (x.EXPO === "wineparis" && (t instanceof st && (t = t.booths[0]), !t)) return;
|
|
595
595
|
let n = null, r = [];
|
|
596
|
-
if (t instanceof
|
|
596
|
+
if (t instanceof st) n = "exhibitor", r = t.booths.map((e) => e.name).sort((e, t) => {
|
|
597
597
|
var n, r;
|
|
598
|
-
return e == ((n =
|
|
598
|
+
return e == ((n = w.routeStore.tempToBooth) == null ? void 0 : n.name) ? -1 : +(t == ((r = w.routeStore.tempToBooth) == null ? void 0 : r.name));
|
|
599
599
|
});
|
|
600
|
-
else if (t instanceof
|
|
600
|
+
else if (t instanceof y) n = "booth", r = [t.name];
|
|
601
601
|
else if (t instanceof A) {
|
|
602
602
|
var i, a;
|
|
603
603
|
n = "route", r = [(i = t.from) == null ? void 0 : i.name, (a = t.to) == null ? void 0 : a.name].filter((e) => !!e);
|
|
604
|
-
} else t instanceof
|
|
604
|
+
} else t instanceof et && (n = "category", r = t.exhibitors.map((e) => e.booths.map((e) => e.name)).flat());
|
|
605
605
|
let o = t, s = {
|
|
606
606
|
type: n,
|
|
607
607
|
name: o == null ? void 0 : o.name,
|
|
@@ -609,15 +609,96 @@ function Dn() {
|
|
|
609
609
|
externalId: o == null ? void 0 : o.externalId,
|
|
610
610
|
boothsNames: r
|
|
611
611
|
};
|
|
612
|
-
|
|
612
|
+
T.onDetails({
|
|
613
613
|
...s,
|
|
614
|
-
...n === "route" ? { routeInfo: (e =
|
|
614
|
+
...n === "route" ? { routeInfo: (e = w.routeStore.routeInfo) == null ? void 0 : e } : {}
|
|
615
615
|
});
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
//#endregion
|
|
619
|
+
//#region src/tools/sdk-telemetry.ts
|
|
620
|
+
var H = (0, Lt.default)("efp:sdk-telemetry"), Nn = "https://sdk-telemetry.expofp.com/sdk-data/floorplan-sdk-web", Pn = "KaptzDWTgJ_GXhb5Jg7ByTW0KK_poitr21X_-IcJeE4", Fn = "efp-sdk-telemetry-positions:", In = 1e3, Ln = 6e4, U = !1, Rn = -Infinity, W = 0;
|
|
621
|
+
function zn(e) {
|
|
622
|
+
let t = Wn();
|
|
623
|
+
t && Un(t.expo, { event: e });
|
|
624
|
+
}
|
|
625
|
+
function Bn(e) {
|
|
626
|
+
let t = Wn();
|
|
627
|
+
if (!t) return;
|
|
628
|
+
let n = Fn + t.expo;
|
|
629
|
+
K(n, [...G(n), {
|
|
630
|
+
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
631
|
+
...e
|
|
632
|
+
}]), Vn();
|
|
633
|
+
}
|
|
634
|
+
function Vn() {
|
|
635
|
+
if (U) return;
|
|
636
|
+
U = !0;
|
|
637
|
+
let e = Math.min(In * 2 ** W, Ln), t = Math.max(0, Rn + e - performance.now());
|
|
638
|
+
setTimeout(() => void Hn(), t);
|
|
639
|
+
}
|
|
640
|
+
async function Hn() {
|
|
641
|
+
var e;
|
|
642
|
+
let t = Wn(), n = Fn + ((e = t == null ? void 0 : t.expo) == null ? "" : e), r = G(n);
|
|
643
|
+
if (!t || r.length === 0 || navigator.onLine === !1) {
|
|
644
|
+
U = !1;
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
K(n, []), Rn = performance.now();
|
|
648
|
+
let i = await Un(t.expo, {
|
|
649
|
+
event: "selectCurrentPosition",
|
|
650
|
+
items: r
|
|
651
|
+
});
|
|
652
|
+
i === void 0 && K(n, [...r, ...G(n)]), W = i === 200 ? 0 : W + 1, U = !1, G(n).length > 0 && Vn();
|
|
653
|
+
}
|
|
654
|
+
async function Un(e, t) {
|
|
655
|
+
try {
|
|
656
|
+
let n = await fetch(Nn, {
|
|
657
|
+
method: "POST",
|
|
658
|
+
headers: {
|
|
659
|
+
Authorization: `Bearer ${Pn}`,
|
|
660
|
+
"Content-Type": "application/json"
|
|
661
|
+
},
|
|
662
|
+
body: JSON.stringify({
|
|
663
|
+
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
664
|
+
version: {
|
|
665
|
+
version: "3.45.6",
|
|
666
|
+
commit: "6f27bb7",
|
|
667
|
+
branch: "feat/ignore-current-position-z",
|
|
668
|
+
built: "2026-11-10T09:37:02.259Z"
|
|
669
|
+
}.version,
|
|
670
|
+
expo: e,
|
|
671
|
+
...t
|
|
672
|
+
})
|
|
673
|
+
});
|
|
674
|
+
return n.status !== 200 && H("event refused", n.status, await n.text().catch(() => "")), n.status;
|
|
675
|
+
} catch (e) {
|
|
676
|
+
H("event not sent", e);
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
function G(e) {
|
|
681
|
+
try {
|
|
682
|
+
var t;
|
|
683
|
+
return JSON.parse((t = localStorage.getItem(e)) == null ? "[]" : t);
|
|
684
|
+
} catch {
|
|
685
|
+
return [];
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
function K(e, t) {
|
|
689
|
+
try {
|
|
690
|
+
t.length === 0 ? localStorage.removeItem(e) : localStorage.setItem(e, JSON.stringify(t.slice(-3e3)));
|
|
691
|
+
} catch (e) {
|
|
692
|
+
H("position queue not stored", e);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
function Wn() {
|
|
696
|
+
let e = ve();
|
|
697
|
+
return (e == null ? void 0 : e.sdkTelemetry) === !0 ? e : void 0;
|
|
698
|
+
}
|
|
699
|
+
//#endregion
|
|
619
700
|
//#region src/utils/mapEntity.ts
|
|
620
|
-
function
|
|
701
|
+
function q(e) {
|
|
621
702
|
switch (e.entity.type) {
|
|
622
703
|
case "booth":
|
|
623
704
|
var t, n;
|
|
@@ -626,7 +707,7 @@ function K(e) {
|
|
|
626
707
|
name: J(e.name),
|
|
627
708
|
externalId: J(e.externalId),
|
|
628
709
|
isSpecial: e.entity.variant === "special",
|
|
629
|
-
exhibitors:
|
|
710
|
+
exhibitors: Gn(e.exhibitors),
|
|
630
711
|
layer: {
|
|
631
712
|
name: J((t = e.layer) == null ? void 0 : t.name),
|
|
632
713
|
description: J((n = e.layer) == null ? void 0 : n.description)
|
|
@@ -639,7 +720,7 @@ function K(e) {
|
|
|
639
720
|
case "category": return {
|
|
640
721
|
id: e.id,
|
|
641
722
|
name: J(e.name),
|
|
642
|
-
exhibitors:
|
|
723
|
+
exhibitors: Gn(e.exhibitors),
|
|
643
724
|
entity: e.entity,
|
|
644
725
|
slug: J(e.slug)
|
|
645
726
|
};
|
|
@@ -647,7 +728,7 @@ function K(e) {
|
|
|
647
728
|
id: e.id,
|
|
648
729
|
name: J(e.name),
|
|
649
730
|
externalId: J(e.externalId),
|
|
650
|
-
booths:
|
|
731
|
+
booths: Gn(e.booths),
|
|
651
732
|
entity: e.entity,
|
|
652
733
|
slug: J(e.slug)
|
|
653
734
|
};
|
|
@@ -681,7 +762,7 @@ function K(e) {
|
|
|
681
762
|
default: return e;
|
|
682
763
|
}
|
|
683
764
|
}
|
|
684
|
-
function
|
|
765
|
+
function Gn(e) {
|
|
685
766
|
return Array.isArray(e) ? e.filter(Boolean).map((e) => e.id).filter(Boolean) : [];
|
|
686
767
|
}
|
|
687
768
|
function J(e) {
|
|
@@ -689,26 +770,26 @@ function J(e) {
|
|
|
689
770
|
}
|
|
690
771
|
//#endregion
|
|
691
772
|
//#region src/floorplan.ready.tsx
|
|
692
|
-
var Y =
|
|
693
|
-
(0,
|
|
694
|
-
var
|
|
773
|
+
var Y = Le(), X = (0, Lt.default)("efp:api");
|
|
774
|
+
(0, zt.install)();
|
|
775
|
+
var Kn = class extends c {
|
|
695
776
|
constructor(...e) {
|
|
696
777
|
super(...e), this.root = void 0;
|
|
697
778
|
}
|
|
698
779
|
init() {
|
|
699
|
-
|
|
780
|
+
dt(), fn(), this.ignoreQuery || pn(this.offHistory), ut("load"), zn("load"), At(w), w.fp = this, h(Mn()), ot(), pt(this.consent), ft(yt.Load, ""), this.root = (0, Rt.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, Y.jsx)(It, { children: /* @__PURE__ */ (0, Y.jsx)(Qe, {
|
|
700
781
|
offHistory: this.offHistory,
|
|
701
782
|
consent: this.consent
|
|
702
|
-
}) })),
|
|
783
|
+
}) })), ft(yt.Rendered, ""), h(qe(() => w.layerStore.layersLoaded, () => {
|
|
703
784
|
let e = this.renderTarget.getRootNode(), t = e instanceof ShadowRoot ? e.host : this.renderTarget.parentElement;
|
|
704
785
|
for (document.querySelectorAll(".expofp-floorplan-loader").forEach((e) => e.remove()); t && this.element.firstChild && this.element.firstChild !== t;) this.element.removeChild(this.element.firstChild);
|
|
705
|
-
if (this.resolveReady(), !
|
|
786
|
+
if (this.resolveReady(), !w.initialized) {
|
|
706
787
|
var n;
|
|
707
788
|
(n = this.onInit) == null || n.call(this, this);
|
|
708
789
|
}
|
|
709
|
-
|
|
710
|
-
})),
|
|
711
|
-
let e =
|
|
790
|
+
w.initialized = !0;
|
|
791
|
+
})), h(() => clearTimeout(Q)), h(kt());
|
|
792
|
+
let e = Gt(S);
|
|
712
793
|
e && import("./bootIntercom-BqQsnxII.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
713
794
|
}
|
|
714
795
|
selectBooth(e) {
|
|
@@ -716,8 +797,8 @@ var On = class extends c {
|
|
|
716
797
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
717
798
|
return;
|
|
718
799
|
}
|
|
719
|
-
let t =
|
|
720
|
-
|
|
800
|
+
let t = w.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
801
|
+
w.selectBooth(t);
|
|
721
802
|
}
|
|
722
803
|
selectExhibitor(e) {
|
|
723
804
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -725,35 +806,35 @@ var On = class extends c {
|
|
|
725
806
|
return;
|
|
726
807
|
}
|
|
727
808
|
if (!(e != null && e.length)) {
|
|
728
|
-
|
|
809
|
+
w.uiState.menu = !1, w.searchStore.resetSearchBox(), w.uiState.details = null;
|
|
729
810
|
return;
|
|
730
811
|
}
|
|
731
|
-
let t =
|
|
812
|
+
let t = w.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
732
813
|
if (!(t != null && t.length)) return;
|
|
733
814
|
if (typeof e == "string") {
|
|
734
|
-
|
|
815
|
+
w.selectExhibitor(t[0]), w.moveToList([t[0]]);
|
|
735
816
|
return;
|
|
736
817
|
}
|
|
737
|
-
let n =
|
|
738
|
-
n &&
|
|
818
|
+
let n = un(t.flatMap((e) => e.booths.map((e) => e.layer)).map((e) => e.description));
|
|
819
|
+
n && w.layerStore.updateVisibility(n, !0), w.uiState.menu = !1, w.searchStore.resetSearchBox(), w.uiState.details = null, w.uiState.list = {
|
|
739
820
|
type: "filter",
|
|
740
821
|
items: t,
|
|
741
822
|
query: {
|
|
742
823
|
key: "exhibitors",
|
|
743
824
|
value: t.map((e) => e.name).join(",")
|
|
744
825
|
}
|
|
745
|
-
},
|
|
826
|
+
}, w.moveToList();
|
|
746
827
|
}
|
|
747
828
|
highlightExhibitors(e) {
|
|
748
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
829
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), w.boothStore.highlightedByExternalIds = [], w.exhibitorStore.highlightedByExternalIds = [...e];
|
|
749
830
|
}
|
|
750
831
|
highlightBooths(e) {
|
|
751
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
832
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), w.exhibitorStore.highlightedByExternalIds = [], w.boothStore.highlightedByExternalIds = [...e];
|
|
752
833
|
}
|
|
753
834
|
highlightEntities(e) {
|
|
754
835
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
755
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
756
|
-
|
|
836
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = _t(e);
|
|
837
|
+
w.boothStore.highlightedByExternalIds = [...t], w.exhibitorStore.highlightedByExternalIds = [...n];
|
|
757
838
|
}
|
|
758
839
|
selectRoute(e, t) {
|
|
759
840
|
if (Array.isArray(e)) {
|
|
@@ -764,10 +845,10 @@ var On = class extends c {
|
|
|
764
845
|
return;
|
|
765
846
|
}
|
|
766
847
|
let i = t.map(Z).filter((e) => e !== null);
|
|
767
|
-
|
|
848
|
+
w.routeStore.selectRoute(new A(Z(n), Z(r), i));
|
|
768
849
|
return;
|
|
769
850
|
}
|
|
770
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
851
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), w.routeStore.selectRoute(new A(Z(e), t ? Z(t) : null));
|
|
771
852
|
}
|
|
772
853
|
getOptimizedRoutes(e) {
|
|
773
854
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -780,19 +861,30 @@ var On = class extends c {
|
|
|
780
861
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
781
862
|
a ? a.push(e) : n.set(t, [e]);
|
|
782
863
|
}
|
|
783
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
864
|
+
return Array.from(n.values()).map((e) => ({ waypoints: gt(e.map((e) => [e.name, {
|
|
784
865
|
x: e.rect.center.x,
|
|
785
866
|
y: e.rect.center.y
|
|
786
867
|
}])) }));
|
|
787
868
|
}
|
|
788
869
|
selectCurrentPosition(e, t, n) {
|
|
789
|
-
var r;
|
|
790
|
-
let
|
|
791
|
-
!
|
|
870
|
+
var r, i, a, o, s;
|
|
871
|
+
let c = E(e.x) && E(e.y), l = E(e.lng) && E(e.lat);
|
|
872
|
+
!c && !l && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600");
|
|
873
|
+
let u = {
|
|
874
|
+
point: { ...e },
|
|
875
|
+
focus: t,
|
|
876
|
+
icon: n
|
|
877
|
+
};
|
|
878
|
+
w.routeStore.selectCurrentPosition(e, t, n), Bn({
|
|
879
|
+
...u,
|
|
880
|
+
floor: (r = (i = w.routeStore.currentPosition) == null ? void 0 : i.z) == null ? null : r,
|
|
881
|
+
routeFloor: (a = (o = w.routeStore.currentRouteLayer) == null ? void 0 : o.name) == null ? null : a,
|
|
882
|
+
placed: !!w.routeStore.currentPosition
|
|
883
|
+
}), (s = this.onCurrentPositionChanged) == null || s.call(this, e);
|
|
792
884
|
}
|
|
793
885
|
setBookmarks(e) {
|
|
794
886
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
795
|
-
let t =
|
|
887
|
+
let t = w.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
796
888
|
t && (t.bookmarked = e.bookmarked);
|
|
797
889
|
});
|
|
798
890
|
}
|
|
@@ -811,29 +903,29 @@ var On = class extends c {
|
|
|
811
903
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
812
904
|
return;
|
|
813
905
|
}
|
|
814
|
-
let r =
|
|
906
|
+
let r = at("bookmarked"), i = {
|
|
815
907
|
exhibitor: {
|
|
816
908
|
existingIds: new Set(r.exhibitors || []),
|
|
817
|
-
finder: (e) =>
|
|
818
|
-
replacer: (e) =>
|
|
909
|
+
finder: (e) => w.exhibitorStore.findExhibitor(e),
|
|
910
|
+
replacer: (e) => w.exhibitorStore.replaceBookmarked(e)
|
|
819
911
|
},
|
|
820
912
|
event: {
|
|
821
913
|
existingIds: new Set(r.events || []),
|
|
822
|
-
finder: (e) =>
|
|
823
|
-
replacer: (e) =>
|
|
914
|
+
finder: (e) => w.eventStore.findByNameOrSlug(e),
|
|
915
|
+
replacer: (e) => w.eventStore.replaceBookmarked(e)
|
|
824
916
|
},
|
|
825
917
|
speaker: {
|
|
826
918
|
existingIds: new Set(r.speakers || []),
|
|
827
|
-
finder: (e) =>
|
|
828
|
-
replacer: (e) =>
|
|
919
|
+
finder: (e) => w.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
920
|
+
replacer: (e) => w.speakerStore.replaceBookmarked(e)
|
|
829
921
|
},
|
|
830
922
|
booth: {
|
|
831
923
|
existingIds: new Set(r.booths || []),
|
|
832
924
|
finder: (e) => {
|
|
833
|
-
let t =
|
|
925
|
+
let t = w.boothStore.findBooth(e);
|
|
834
926
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
835
927
|
},
|
|
836
|
-
replacer: (e) =>
|
|
928
|
+
replacer: (e) => w.boothStore.replaceBookmarked(e)
|
|
837
929
|
}
|
|
838
930
|
};
|
|
839
931
|
e.forEach((e) => {
|
|
@@ -853,16 +945,16 @@ var On = class extends c {
|
|
|
853
945
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
854
946
|
return;
|
|
855
947
|
}
|
|
856
|
-
let r =
|
|
948
|
+
let r = at("visited"), i = {
|
|
857
949
|
exhibitor: {
|
|
858
950
|
existingIds: new Set(r.exhibitors || []),
|
|
859
|
-
finder: (e) =>
|
|
860
|
-
replacer: (e) =>
|
|
951
|
+
finder: (e) => w.exhibitorStore.findExhibitor(e),
|
|
952
|
+
replacer: (e) => w.exhibitorStore.replaceVisited(e)
|
|
861
953
|
},
|
|
862
954
|
event: {
|
|
863
955
|
existingIds: new Set(r.events || []),
|
|
864
|
-
finder: (e) =>
|
|
865
|
-
replacer: (e) =>
|
|
956
|
+
finder: (e) => w.eventStore.findByNameOrSlug(e),
|
|
957
|
+
replacer: (e) => w.eventStore.replaceVisited(e)
|
|
866
958
|
}
|
|
867
959
|
};
|
|
868
960
|
e.forEach((e) => {
|
|
@@ -877,94 +969,94 @@ var On = class extends c {
|
|
|
877
969
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
878
970
|
return;
|
|
879
971
|
}
|
|
880
|
-
|
|
972
|
+
w.routeStore.setMarkers(e);
|
|
881
973
|
}
|
|
882
974
|
selectMarker(e, t = !0) {
|
|
883
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
975
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), w.routeStore.selectMarker(e, t);
|
|
884
976
|
}
|
|
885
977
|
drawCircles(e) {
|
|
886
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
978
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), w.uiState.debugCircles = e;
|
|
887
979
|
}
|
|
888
980
|
checkRoutes() {
|
|
889
|
-
|
|
981
|
+
w.routeStore.checkRoutes();
|
|
890
982
|
}
|
|
891
983
|
updateLayerVisibility(e, t) {
|
|
892
|
-
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"),
|
|
984
|
+
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"), w.layerStore.updateVisibility(e, t);
|
|
893
985
|
}
|
|
894
986
|
getCenterCoordinates() {
|
|
895
|
-
return
|
|
987
|
+
return w.fp.getCenterCoordinates();
|
|
896
988
|
}
|
|
897
989
|
exhibitorsList() {
|
|
898
|
-
return
|
|
990
|
+
return w.exhibitorStore.exhibitors.map((e) => q(e));
|
|
899
991
|
}
|
|
900
992
|
boothsList() {
|
|
901
|
-
return
|
|
993
|
+
return w.boothStore.booths.map((e) => q(e));
|
|
902
994
|
}
|
|
903
995
|
categoriesList() {
|
|
904
|
-
return
|
|
996
|
+
return w.categoryStore.categories.map((e) => q(e));
|
|
905
997
|
}
|
|
906
998
|
selectCategory(e) {
|
|
907
999
|
if (e == null || typeof e != "string") {
|
|
908
|
-
|
|
1000
|
+
w.searchStore.selectSearch();
|
|
909
1001
|
return;
|
|
910
1002
|
}
|
|
911
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
1003
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = w.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
912
1004
|
if (!n) {
|
|
913
1005
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
914
1006
|
return;
|
|
915
1007
|
}
|
|
916
|
-
|
|
1008
|
+
w.selectCategory(n);
|
|
917
1009
|
}
|
|
918
1010
|
select(e) {
|
|
919
1011
|
if (typeof e != "string") {
|
|
920
1012
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
921
1013
|
return;
|
|
922
1014
|
}
|
|
923
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
1015
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = w.boothStore.booths.find((e) => {
|
|
924
1016
|
var t, r, i;
|
|
925
1017
|
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;
|
|
926
1018
|
});
|
|
927
1019
|
if (r) {
|
|
928
|
-
setTimeout(() =>
|
|
1020
|
+
setTimeout(() => w.selectBooth(r), 250);
|
|
929
1021
|
return;
|
|
930
1022
|
}
|
|
931
|
-
let i =
|
|
1023
|
+
let i = w.eventStore.eventItems.find((e) => {
|
|
932
1024
|
var t, r;
|
|
933
1025
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
934
1026
|
});
|
|
935
1027
|
if (i) {
|
|
936
|
-
|
|
1028
|
+
w.selectEventItem(i, !0);
|
|
937
1029
|
return;
|
|
938
1030
|
}
|
|
939
|
-
let a =
|
|
1031
|
+
let a = w.exhibitorStore.exhibitors.find((e) => {
|
|
940
1032
|
var t, r;
|
|
941
1033
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
942
1034
|
});
|
|
943
1035
|
if (a) {
|
|
944
|
-
setTimeout(() =>
|
|
1036
|
+
setTimeout(() => w.clickExhibitor(a), 250);
|
|
945
1037
|
return;
|
|
946
1038
|
}
|
|
947
|
-
let o =
|
|
1039
|
+
let o = w.categoryStore.categories.find((e) => e.slug === t);
|
|
948
1040
|
if (o) {
|
|
949
|
-
|
|
1041
|
+
w.selectCategory(o);
|
|
950
1042
|
return;
|
|
951
1043
|
}
|
|
952
|
-
let s =
|
|
1044
|
+
let s = w.speakerStore.findBySlug(t);
|
|
953
1045
|
if (s) {
|
|
954
|
-
|
|
1046
|
+
w.selectSpeaker(s, !0);
|
|
955
1047
|
return;
|
|
956
1048
|
}
|
|
957
|
-
t.includes("heatmap=true") ||
|
|
1049
|
+
t.includes("heatmap=true") || w.searchStore.selectSearch(t);
|
|
958
1050
|
}
|
|
959
1051
|
showList(e) {
|
|
960
1052
|
let t = {
|
|
961
|
-
bookmarks: () =>
|
|
962
|
-
visited: () =>
|
|
963
|
-
sessions: () =>
|
|
964
|
-
exhibitors: () =>
|
|
965
|
-
speakers: () =>
|
|
966
|
-
tours: () =>
|
|
967
|
-
language: () =>
|
|
1053
|
+
bookmarks: () => w.selectBookmarks(),
|
|
1054
|
+
visited: () => w.selectVisited(),
|
|
1055
|
+
sessions: () => w.selectSessions(),
|
|
1056
|
+
exhibitors: () => w.selectExhibitors(),
|
|
1057
|
+
speakers: () => w.selectSpeakers(),
|
|
1058
|
+
tours: () => w.selectTours(),
|
|
1059
|
+
language: () => w.selectLanguage()
|
|
968
1060
|
}, n = t[e];
|
|
969
1061
|
if (!n) {
|
|
970
1062
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -974,15 +1066,15 @@ var On = class extends c {
|
|
|
974
1066
|
}
|
|
975
1067
|
showSessions(e = {}) {
|
|
976
1068
|
X("showSessions called with filters=%O", e);
|
|
977
|
-
let t =
|
|
1069
|
+
let t = De.safeParse(e);
|
|
978
1070
|
if (!t.success) {
|
|
979
1071
|
$("showSessions", t.error.message, "EFP001C00");
|
|
980
1072
|
return;
|
|
981
1073
|
}
|
|
982
|
-
let n = t.data, { eventStore: r, sessionsFilterStore: i } =
|
|
983
|
-
|
|
1074
|
+
let n = t.data, { eventStore: r, sessionsFilterStore: i } = w;
|
|
1075
|
+
Je(() => {
|
|
984
1076
|
var e, t, a, o;
|
|
985
|
-
|
|
1077
|
+
T.details = null, w.selectSessions(), i.closeFilter(), i.setPending("selectedTracks", qn(n.tracks, r.tracks, "track")), i.setPending("selectedVenues", qn(n.venues, r.venues, "venue")), i.setPending("date", (e = n.date) == null ? "all" : e), i.setPending("timeOfDay", (t = n.time) == null ? "all" : t), i.setPending("showBookmarksOnly", (a = n.bookmarked) != null && a), i.setPending("showLiveOnly", (o = n.live) != null && o), i.commitFilters();
|
|
986
1078
|
});
|
|
987
1079
|
}
|
|
988
1080
|
selectTour(e) {
|
|
@@ -990,8 +1082,8 @@ var On = class extends c {
|
|
|
990
1082
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
991
1083
|
return;
|
|
992
1084
|
}
|
|
993
|
-
let t =
|
|
994
|
-
t ?
|
|
1085
|
+
let t = w.toursStore.getTourById(e);
|
|
1086
|
+
t ? w.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), w.selectTours());
|
|
995
1087
|
}
|
|
996
1088
|
openPlanner(e = {}) {
|
|
997
1089
|
if (typeof e != "object" || !e) {
|
|
@@ -999,56 +1091,56 @@ var On = class extends c {
|
|
|
999
1091
|
return;
|
|
1000
1092
|
}
|
|
1001
1093
|
let t = e.from ? k(e.from) : null;
|
|
1002
|
-
if (e.fromBookmarks)
|
|
1094
|
+
if (e.fromBookmarks) w.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
1003
1095
|
else {
|
|
1004
1096
|
var n;
|
|
1005
|
-
|
|
1097
|
+
w.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
1006
1098
|
}
|
|
1007
1099
|
}
|
|
1008
1100
|
startBuildRoute() {
|
|
1009
|
-
|
|
1101
|
+
w.uiState.startBuildRoute();
|
|
1010
1102
|
}
|
|
1011
1103
|
applyParameters(e) {
|
|
1012
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
1104
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), mn(e);
|
|
1013
1105
|
}
|
|
1014
1106
|
getVisibility() {
|
|
1015
|
-
return
|
|
1107
|
+
return w.uiState.visibility;
|
|
1016
1108
|
}
|
|
1017
1109
|
setVisibility(e) {
|
|
1018
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
1110
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), w.uiState.setVisibility(e);
|
|
1019
1111
|
}
|
|
1020
1112
|
findLocation() {
|
|
1021
|
-
|
|
1113
|
+
w.routeStore.findLocation();
|
|
1022
1114
|
}
|
|
1023
1115
|
zoomIn() {
|
|
1024
|
-
|
|
1116
|
+
w.uiState.zoomIn();
|
|
1025
1117
|
}
|
|
1026
1118
|
zoomOut() {
|
|
1027
|
-
|
|
1119
|
+
w.uiState.zoomOut();
|
|
1028
1120
|
}
|
|
1029
1121
|
switchView() {
|
|
1030
|
-
|
|
1122
|
+
w.maplibreStore.activateMaplibre();
|
|
1031
1123
|
}
|
|
1032
1124
|
setCamera(e) {
|
|
1033
1125
|
X("setCamera called with camera=%O", e);
|
|
1034
|
-
let t =
|
|
1126
|
+
let t = de.safeParse(e);
|
|
1035
1127
|
if (!t.success) {
|
|
1036
1128
|
$("setCamera", t.error.message, "EFP001B00");
|
|
1037
1129
|
return;
|
|
1038
1130
|
}
|
|
1039
|
-
|
|
1131
|
+
w.uiState.setMapSettings(v(t.data));
|
|
1040
1132
|
}
|
|
1041
1133
|
getCamera() {
|
|
1042
|
-
return
|
|
1134
|
+
return Xe(w.uiState.mapSettings);
|
|
1043
1135
|
}
|
|
1044
1136
|
zoomTo(e, t) {
|
|
1045
1137
|
X("zoomTo called with selectors=%O options=%O", e, t);
|
|
1046
|
-
let n =
|
|
1138
|
+
let n = sn.safeParse(e);
|
|
1047
1139
|
if (!n.success) {
|
|
1048
1140
|
$("zoomTo", n.error.message, "EFP001600");
|
|
1049
1141
|
return;
|
|
1050
1142
|
}
|
|
1051
|
-
let r =
|
|
1143
|
+
let r = cn.safeParse(t);
|
|
1052
1144
|
if (!r.success) {
|
|
1053
1145
|
$("zoomTo", r.error.message, "EFP001601");
|
|
1054
1146
|
return;
|
|
@@ -1059,7 +1151,7 @@ var On = class extends c {
|
|
|
1059
1151
|
getBounds(e) {
|
|
1060
1152
|
var t, n;
|
|
1061
1153
|
X("getBounds called with selectors=%O", e);
|
|
1062
|
-
let r =
|
|
1154
|
+
let r = sn.safeParse(e);
|
|
1063
1155
|
if (!r.success) {
|
|
1064
1156
|
$("getBounds", r.error.message, "EFP001400");
|
|
1065
1157
|
return;
|
|
@@ -1067,15 +1159,15 @@ var On = class extends c {
|
|
|
1067
1159
|
let i = [];
|
|
1068
1160
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1069
1161
|
let t;
|
|
1070
|
-
e.externalId ? t =
|
|
1162
|
+
e.externalId ? t = w.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = w.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1071
1163
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1072
1164
|
var t;
|
|
1073
1165
|
let n;
|
|
1074
|
-
e.externalId ? n =
|
|
1166
|
+
e.externalId ? n = w.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = w.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1075
1167
|
e.rect && i.push(e.rect);
|
|
1076
1168
|
});
|
|
1077
1169
|
}), i.length === 0) return;
|
|
1078
|
-
let a =
|
|
1170
|
+
let a = C.fromUnion(...i);
|
|
1079
1171
|
return {
|
|
1080
1172
|
leftTop: {
|
|
1081
1173
|
x: a.min.x,
|
|
@@ -1089,37 +1181,37 @@ var On = class extends c {
|
|
|
1089
1181
|
}
|
|
1090
1182
|
fitBounds(e, t) {
|
|
1091
1183
|
if (X("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1092
|
-
|
|
1184
|
+
w.uiState.fitBounds();
|
|
1093
1185
|
return;
|
|
1094
1186
|
}
|
|
1095
|
-
let n =
|
|
1187
|
+
let n = an.safeParse(e);
|
|
1096
1188
|
if (!n.success) {
|
|
1097
1189
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1098
1190
|
return;
|
|
1099
1191
|
}
|
|
1100
|
-
let r =
|
|
1192
|
+
let r = cn.safeParse(t);
|
|
1101
1193
|
if (!r.success) {
|
|
1102
1194
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1103
1195
|
return;
|
|
1104
1196
|
}
|
|
1105
|
-
let i =
|
|
1197
|
+
let i = C.fromMinMax({
|
|
1106
1198
|
x: e.leftTop.x,
|
|
1107
1199
|
y: e.leftTop.y
|
|
1108
1200
|
}, {
|
|
1109
1201
|
x: e.rightBottom.x,
|
|
1110
1202
|
y: e.rightBottom.y
|
|
1111
1203
|
});
|
|
1112
|
-
|
|
1204
|
+
w.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1113
1205
|
}
|
|
1114
1206
|
getBoothRect(e) {
|
|
1115
1207
|
var t;
|
|
1116
1208
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1117
1209
|
let n = (t = k(e)) == null ? void 0 : t.rect;
|
|
1118
|
-
return n ?
|
|
1210
|
+
return n ? Xn.fromBox(n) : void 0;
|
|
1119
1211
|
}
|
|
1120
1212
|
convertToGeo(e, t) {
|
|
1121
1213
|
var n;
|
|
1122
|
-
let r = (n =
|
|
1214
|
+
let r = (n = ct()) == null || (n = n.properties) == null ? void 0 : n.config;
|
|
1123
1215
|
if (!r) {
|
|
1124
1216
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1125
1217
|
return;
|
|
@@ -1128,11 +1220,11 @@ var On = class extends c {
|
|
|
1128
1220
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1129
1221
|
return;
|
|
1130
1222
|
}
|
|
1131
|
-
return
|
|
1223
|
+
return mt(e, t, r);
|
|
1132
1224
|
}
|
|
1133
1225
|
getGeoConfig() {
|
|
1134
1226
|
var e, t;
|
|
1135
|
-
let n = (e =
|
|
1227
|
+
let n = (e = ct()) == null || (e = e.properties) == null ? void 0 : e.config;
|
|
1136
1228
|
return n ? {
|
|
1137
1229
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1138
1230
|
p0: n.p0,
|
|
@@ -1142,16 +1234,16 @@ var On = class extends c {
|
|
|
1142
1234
|
}
|
|
1143
1235
|
releaseResources() {
|
|
1144
1236
|
var e;
|
|
1145
|
-
|
|
1237
|
+
w.maplibreStore.dispose(), (e = this.root) == null || e.unmount(), super.releaseResources();
|
|
1146
1238
|
}
|
|
1147
1239
|
search(e) {
|
|
1148
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1149
|
-
item:
|
|
1240
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), w.fuzzySearchEngineStore.loadEngine().then(() => (w.searchStore.selectSearch(e), w.uiState.fuzzySearchItems.map((e) => ({
|
|
1241
|
+
item: q(e.item),
|
|
1150
1242
|
score: e.score
|
|
1151
1243
|
}))));
|
|
1152
1244
|
}
|
|
1153
1245
|
getFloors() {
|
|
1154
|
-
let e =
|
|
1246
|
+
let e = w.venueStore;
|
|
1155
1247
|
if (e.hasVenueModel) {
|
|
1156
1248
|
let t = e.activeVenue;
|
|
1157
1249
|
return t ? t.levels.map((e) => {
|
|
@@ -1169,7 +1261,7 @@ var On = class extends c {
|
|
|
1169
1261
|
};
|
|
1170
1262
|
}) : [];
|
|
1171
1263
|
}
|
|
1172
|
-
return
|
|
1264
|
+
return w.layerStore.floors.map((e) => ({
|
|
1173
1265
|
name: e.name,
|
|
1174
1266
|
shortName: e.shortName,
|
|
1175
1267
|
description: e.description,
|
|
@@ -1179,22 +1271,22 @@ var On = class extends c {
|
|
|
1179
1271
|
}));
|
|
1180
1272
|
}
|
|
1181
1273
|
getVenues() {
|
|
1182
|
-
let e =
|
|
1183
|
-
if (e.venues.length === 0) return [
|
|
1274
|
+
let e = w.venueStore;
|
|
1275
|
+
if (e.venues.length === 0) return [Jn()];
|
|
1184
1276
|
let t = e.activeVenue;
|
|
1185
|
-
return e.orderedVenues.map((e) =>
|
|
1277
|
+
return e.orderedVenues.map((e) => xt(e, e === t));
|
|
1186
1278
|
}
|
|
1187
1279
|
getVenueDiagnostics() {
|
|
1188
|
-
return
|
|
1280
|
+
return w.venueStore.diagnostics.map((e) => ({ ...e }));
|
|
1189
1281
|
}
|
|
1190
1282
|
activateVenue(e) {
|
|
1191
1283
|
if (!(e != null && e.id)) {
|
|
1192
1284
|
$("activateVenue", "Invalid venueId. It must contain an id.", "EFP001210");
|
|
1193
1285
|
return;
|
|
1194
1286
|
}
|
|
1195
|
-
let t =
|
|
1287
|
+
let t = w.venueStore;
|
|
1196
1288
|
if (t.venues.length === 0) {
|
|
1197
|
-
if (
|
|
1289
|
+
if (Yn(e.id)) return;
|
|
1198
1290
|
} else {
|
|
1199
1291
|
let n = t.findVenue(e.id);
|
|
1200
1292
|
if (n) {
|
|
@@ -1209,7 +1301,7 @@ var On = class extends c {
|
|
|
1209
1301
|
$("activateFloor", "Invalid floorId. It must contain either a name or an index.", "EFP001200");
|
|
1210
1302
|
return;
|
|
1211
1303
|
}
|
|
1212
|
-
let t =
|
|
1304
|
+
let t = w.venueStore;
|
|
1213
1305
|
if (t.hasVenueModel) {
|
|
1214
1306
|
let n;
|
|
1215
1307
|
if (e.name) {
|
|
@@ -1264,11 +1356,11 @@ var On = class extends c {
|
|
|
1264
1356
|
}
|
|
1265
1357
|
}
|
|
1266
1358
|
showPathway(e, t) {
|
|
1267
|
-
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ?
|
|
1359
|
+
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? _t(t) : {
|
|
1268
1360
|
boothExternalIds: [],
|
|
1269
1361
|
exhibitorExternalIds: []
|
|
1270
1362
|
};
|
|
1271
|
-
|
|
1363
|
+
yn({
|
|
1272
1364
|
pathwayId: e,
|
|
1273
1365
|
boothIds: n,
|
|
1274
1366
|
exhibitorIds: r
|
|
@@ -1276,48 +1368,48 @@ var On = class extends c {
|
|
|
1276
1368
|
}
|
|
1277
1369
|
showPathwayOnly(e, t) {
|
|
1278
1370
|
var n;
|
|
1279
|
-
this.activateFloor({ name: t }),
|
|
1280
|
-
let r =
|
|
1281
|
-
o && (
|
|
1371
|
+
this.activateFloor({ name: t }), w.layerStore.showPathWay(e), w.uiState.setPathwayOnlyMode(!0);
|
|
1372
|
+
let r = w.layerStore.findLayer(e), i = w.layerStore.findLayer(t), a = r != null && r.rect || r != null && r.viewbox ? r : i, o = (n = a == null ? void 0 : a.viewbox) == null ? a == null ? void 0 : a.rect : n;
|
|
1373
|
+
o && (w.uiState.moveToRect = o.clone());
|
|
1282
1374
|
}
|
|
1283
1375
|
hidePathways() {
|
|
1284
|
-
this.highlightBooths([]),
|
|
1376
|
+
this.highlightBooths([]), w.layerStore.hidePathways(), w.uiState.setPathwayOnlyMode(!1);
|
|
1285
1377
|
}
|
|
1286
1378
|
showSearch() {
|
|
1287
|
-
|
|
1379
|
+
w.selectSearch("");
|
|
1288
1380
|
}
|
|
1289
1381
|
changeLanguage(e) {
|
|
1290
1382
|
var t;
|
|
1291
1383
|
let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1292
|
-
if (!
|
|
1293
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1384
|
+
if (!Ee(n)) {
|
|
1385
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${Se().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1294
1386
|
return;
|
|
1295
1387
|
}
|
|
1296
|
-
|
|
1388
|
+
we(n);
|
|
1297
1389
|
}
|
|
1298
1390
|
isGpsTrackingEnabled() {
|
|
1299
|
-
return
|
|
1391
|
+
return w.routeStore.gpsEnabled;
|
|
1300
1392
|
}
|
|
1301
1393
|
setGpsTrackingEnabled(e) {
|
|
1302
|
-
|
|
1394
|
+
w.routeStore.setGpsTrackingEnabled(e);
|
|
1303
1395
|
}
|
|
1304
1396
|
deselectCurrentPosition() {
|
|
1305
|
-
|
|
1397
|
+
w.routeStore.selectCurrentPosition(null, !1);
|
|
1306
1398
|
}
|
|
1307
1399
|
deselectRoute() {
|
|
1308
|
-
|
|
1400
|
+
w.routeStore.selectRoute(null), w.routeStore.setOnlyAccessible(!1);
|
|
1309
1401
|
}
|
|
1310
1402
|
reset() {
|
|
1311
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1403
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), w.uiState.kioskData && w.resetCameraFn) {
|
|
1312
1404
|
var e;
|
|
1313
|
-
(e =
|
|
1314
|
-
} else
|
|
1405
|
+
(e = w.resetCameraFn) == null || e.call(w);
|
|
1406
|
+
} else w.venueStore.isCampusMode ? w.venueStore.viewAllVenues() : this.fitBounds();
|
|
1315
1407
|
}
|
|
1316
1408
|
selectAccessibleRoute(e) {
|
|
1317
|
-
|
|
1409
|
+
w.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1318
1410
|
}
|
|
1319
1411
|
};
|
|
1320
|
-
function
|
|
1412
|
+
function qn(e = [], t, n) {
|
|
1321
1413
|
let r = /* @__PURE__ */ new Set();
|
|
1322
1414
|
for (let o of e) {
|
|
1323
1415
|
var i, a;
|
|
@@ -1333,25 +1425,25 @@ function kn(e = [], t, n) {
|
|
|
1333
1425
|
return [...r];
|
|
1334
1426
|
}
|
|
1335
1427
|
function Z(e) {
|
|
1336
|
-
let t = typeof e == "string" ? k(e) :
|
|
1428
|
+
let t = typeof e == "string" ? k(e) : w.routeStore.getNearestBooth(e);
|
|
1337
1429
|
return t == null ? null : t;
|
|
1338
1430
|
}
|
|
1339
|
-
function
|
|
1431
|
+
function Jn() {
|
|
1340
1432
|
return {
|
|
1341
|
-
id:
|
|
1342
|
-
name:
|
|
1433
|
+
id: x.EXPO,
|
|
1434
|
+
name: S.title || x.EXPO,
|
|
1343
1435
|
order: 0,
|
|
1344
1436
|
active: !0
|
|
1345
1437
|
};
|
|
1346
1438
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return e.toLowerCase() ===
|
|
1439
|
+
function Yn(e) {
|
|
1440
|
+
return e.toLowerCase() === Jn().id.toLowerCase();
|
|
1349
1441
|
}
|
|
1350
1442
|
var Q = 0;
|
|
1351
1443
|
function $(e, t, n) {
|
|
1352
1444
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1353
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1354
|
-
|
|
1445
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), w.fp.disableRuntimeAlerts) return;
|
|
1446
|
+
w.uiState.setGlobalErrorMessage({
|
|
1355
1447
|
title: r,
|
|
1356
1448
|
body: /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
|
|
1357
1449
|
i,
|
|
@@ -1367,12 +1459,12 @@ function $(e, t, n) {
|
|
|
1367
1459
|
let o = 8e3;
|
|
1368
1460
|
Q = window.setTimeout(() => {
|
|
1369
1461
|
let e = async () => {
|
|
1370
|
-
|
|
1462
|
+
w.uiState.globalErrorMessages.length > 0 && (w.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1371
1463
|
};
|
|
1372
1464
|
e();
|
|
1373
1465
|
}, o);
|
|
1374
1466
|
}
|
|
1375
|
-
var
|
|
1467
|
+
var Xn = class e {
|
|
1376
1468
|
get h() {
|
|
1377
1469
|
return Math.abs(this.y2 - this.y1);
|
|
1378
1470
|
}
|
|
@@ -1445,4 +1537,4 @@ var Mn = class e {
|
|
|
1445
1537
|
}
|
|
1446
1538
|
};
|
|
1447
1539
|
//#endregion
|
|
1448
|
-
export {
|
|
1540
|
+
export { Kn as default };
|