@expofp/floorplan 3.23.0 → 3.23.2
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-Cdcme0dW.js → Button-DBTihmKU.js} +5 -5
- package/dist/browser/{CookieConsent-B7cDBqp6.js → CookieConsent-DlDte0lk.js} +8 -8
- package/dist/browser/{Debug-C1YnJvnk.js → Debug-BtvsTOMr.js} +10 -10
- package/dist/browser/{Demo-BIM3wFq3.js → Demo-_YQZ9fif.js} +10 -10
- package/dist/browser/{Free-D7U5AEcf.js → Free-D6J6-cXi.js} +12 -12
- package/dist/browser/{Gallery-BXlz1tz4.js → GalleryContainer-BnUt1PNs.js} +714 -589
- package/dist/browser/{GpsLoader-BdUzK_Wq.js → GpsLoader-OUCQ7ZMm.js} +31 -31
- package/dist/browser/{KioskStore-t38ARgcW.js → KioskStore-dFbTmzRX.js} +34 -34
- package/dist/browser/{MaplibreAdapter-CSAShUgd.js → MaplibreAdapter-Dm0ssNYr.js} +847 -838
- package/dist/browser/{ModalContainer-B33HKAAU.js → ModalContainer-dPz6CJEz.js} +59 -54
- package/dist/browser/{PermissionNotice-F6g9pz0M.js → PermissionNotice-CkPfMzyD.js} +6 -6
- package/dist/browser/{SetKioskMode-CJoi2gHM.js → SetKioskMode-B-vMQm34.js} +15 -15
- package/dist/browser/{ShowKiosk-H4rnBUGh.js → ShowKiosk-jHz_HhEH.js} +11 -11
- package/dist/browser/{ViewerMenuPanel-BmJhh8Ln.js → ViewerMenuPanel-6QP-3jhe.js} +18 -18
- package/dist/browser/{add-debug-secret-listener-BNoe6VU3.js → add-debug-secret-listener-CKkrKZtV.js} +1 -1
- package/dist/browser/{adopt-global-settings-DIweHmmO.js → adopt-global-settings-DDOfuPoA.js} +9 -9
- package/dist/browser/{boolean-editor-C9fqoeTB.js → boolean-editor-DbE8wBID.js} +9 -9
- package/dist/browser/{bootIntercom-BB5HdKln.js → bootIntercom-W2WvsUkQ.js} +2 -2
- package/dist/browser/{booth-by-xy-BP9IYJhy.js → booth-by-xy-Bl9WXuO-.js} +287 -287
- package/dist/browser/bundle.json +65 -65
- package/dist/browser/{classnames-Dmeqek3o.js → classnames-Bg5rLqNN.js} +2 -2
- package/dist/browser/{client-CBb2454O.js → client-DeQq5mQU.js} +4 -4
- package/dist/browser/{components-DyDFRZBC.js → components-on0LMU5X.js} +2032 -2034
- package/dist/browser/{debug-overlay-DXOrtUeJ.js → debug-overlay-DxDWBv6z.js} +10 -10
- package/dist/browser/{debug-ui-tNUnR4wz.js → debug-ui-EkvTnZPW.js} +6 -6
- package/dist/browser/{dist-BIFUFe-T.js → dist-BSIFCb0t.js} +5 -5
- package/dist/browser/{dist-DcOtrqGG.js → dist-UfmPsoUY.js} +3 -3
- package/dist/browser/{dist-DZfEO0RJ.js → dist-iqnveclN.js} +6 -6
- package/dist/browser/{efp-debug-init-B4ddpmiL.js → efp-debug-init-C0OHRZNn.js} +3 -3
- package/dist/browser/{enum-editor-CJB3E-Vh.js → enum-editor-Beyz9Cw7.js} +4 -4
- package/dist/browser/{es5-DeTUpXm2.js → es5-BLugQzbi.js} +2 -2
- package/dist/browser/{event-not-found-WRXwMJms.js → event-not-found-BVuVRHWg.js} +1 -1
- package/dist/browser/{exports-C5uYtLxL.js → exports-DbyVbUOC.js} +1 -1
- package/dist/browser/{favicon-5gTCZLy9.js → favicon-DpMbk9tx.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BoyaQteS.js → fetch-retry.umd-BkW3rJuZ.js} +2 -2
- package/dist/browser/{flex-DjFgAKFt.js → flex-DPKB0RuC.js} +5 -5
- package/dist/browser/{floorplan.loader-Ck3XnezM.js → floorplan.loader-Bt4oybgX.js} +10 -10
- package/dist/browser/{floorplan.ready-CzTR8qqL.js → floorplan.ready-CwF4F1tf.js} +269 -269
- package/dist/browser/{fuse-BR27GheK.js → fuse-DDDXbqE_.js} +2 -2
- package/dist/browser/{i18n-DNH3sP4D.js → i18n-D_PeYM0A.js} +5 -5
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-DzGptmYn.js → index.module-DPKx9U0o.js} +4 -4
- package/dist/browser/{integrateKiosk-DN5HgMdz.js → integrateKiosk-BQaVMEWM.js} +5 -5
- package/dist/browser/{is-webview-CEqtlsy5.js → is-webview-BvcAtwvK.js} +1 -1
- package/dist/browser/{jsx-runtime-BRUHXGcL.js → jsx-runtime-CiltolM1.js} +2 -2
- package/dist/browser/{kiosk-record-C6KsyYH0.js → kiosk-record-CDOXD0YR.js} +1 -1
- package/dist/browser/{lib-BoYL1Y22.js → lib-CLR-Jqc_.js} +3 -3
- package/dist/browser/{loadImage-2JV_4hsV.js → loadImage-Bv8NDM3i.js} +4 -4
- package/dist/browser/{logDeviceInfo-Bga4LjdT.js → logDeviceInfo-IqDo_h8W.js} +9 -9
- package/dist/browser/{main-BUSluy8y.js → main-BfGxlpV2.js} +1 -1
- package/dist/browser/{mobx-Cp-RXiD6.js → mobx-DqXBQLr3.js} +4 -4
- package/dist/browser/{optional-boolean-editor-biZOa4EF.js → optional-boolean-editor-C2OpCDdc.js} +3 -3
- package/dist/browser/{optional-enum-editor-BuzYWVhL.js → optional-enum-editor-Bn_IuNy7.js} +4 -4
- package/dist/browser/{optional-string-editor-1Gxph7oU.js → optional-string-editor-BAnOpEsC.js} +4 -4
- package/dist/browser/{particles.min-Cq5SYO7P.js → particles.min-BizTykKa.js} +2 -2
- package/dist/browser/{react-BCiZTNvQ.js → react-1v6olhrH.js} +2 -2
- package/dist/browser/{react-dom-Gayzbfmi.js → react-dom-CXdU7G-n.js} +3 -3
- package/dist/browser/{rolldown-runtime-C4CgTizo.js → rolldown-runtime-MTWZj7PQ.js} +1 -1
- package/dist/browser/{select-BEAG7sfR.js → select-BMOhi0jB.js} +10 -10
- package/dist/browser/{settings-BJrS0XMO.js → settings-C2XBSodv.js} +2 -2
- package/dist/browser/{settings-item-C-rqGE6m.js → settings-item-DCdMf74g.js} +6 -6
- package/dist/browser/{store-DH91iUcL.js → store-W6DIPr1q.js} +5349 -5301
- package/dist/browser/{string-editor-fs3xB248.js → string-editor-BKRgpXC1.js} +4 -4
- package/dist/browser/{text-field-CN-pynRC.js → text-field-7VmhUoTM.js} +5 -5
- package/dist/browser/{theme-78GgHmsO.js → theme-B3dhDzGI.js} +8 -8
- package/dist/browser/{ui-BFQlKtKk.js → ui-Cj76n3w6.js} +8 -8
- package/dist/browser/useRenderTarget-DfvYoh2A.js +57 -0
- package/dist/esm/components/EntityList.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/GalleryContainer.d.ts +6 -0
- package/dist/esm/components/GalleryContainer.js +1 -0
- package/dist/esm/components/Maplibre/useCameraReactions.js +1 -1
- package/dist/esm/components/OverlayContainer.d.ts +1 -2
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/index.d.ts +1 -3
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/store/OverlayStore.d.ts +19 -0
- package/dist/esm/store/OverlayStore.js +1 -0
- package/dist/esm/store/RootStore.d.ts +2 -0
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/RouteStore.d.ts +13 -0
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +0 -1
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/index.d.ts +1 -0
- package/dist/esm/store/index.js +1 -1
- package/dist/esm/store/reveal-layer.d.ts +29 -0
- package/dist/esm/store/reveal-layer.js +1 -0
- package/package.json +9 -11
- package/dist/browser/useRenderTarget-CtWSXh71.js +0 -48
- package/dist/esm/components/Gallery/Gallery.d.ts +0 -13
- package/dist/esm/components/Gallery/Gallery.js +0 -1
- package/dist/esm/components/Gallery/GalleryBadges/GalleryBadges.d.ts +0 -8
- package/dist/esm/components/Gallery/GalleryBadges/GalleryBadges.js +0 -1
- package/dist/esm/components/Gallery/GalleryControls/GalleryControls.d.ts +0 -9
- package/dist/esm/components/Gallery/GalleryControls/GalleryControls.js +0 -1
- package/dist/esm/components/Gallery/GalleryImg/GalleryImg.d.ts +0 -14
- package/dist/esm/components/Gallery/GalleryImg/GalleryImg.js +0 -1
- package/dist/esm/components/Gallery/GalleryItem/GalleryItem.d.ts +0 -13
- package/dist/esm/components/Gallery/GalleryItem/GalleryItem.js +0 -1
- package/dist/esm/components/Gallery/GalleryModal/GalleryModal.d.ts +0 -12
- package/dist/esm/components/Gallery/GalleryModal/GalleryModal.js +0 -1
- package/dist/esm/components/Gallery/GalleryPreLoader.d.ts +0 -7
- package/dist/esm/components/Gallery/GalleryPreLoader.js +0 -1
- package/dist/esm/components/Gallery/TransformImg/TransformImg.d.ts +0 -10
- package/dist/esm/components/Gallery/TransformImg/TransformImg.js +0 -1
- package/dist/esm/components/Overlay.d.ts +0 -23
- package/dist/esm/components/Overlay.js +0 -1
- package/dist/esm/components/Toast/ToastContainer.d.ts +0 -12
- package/dist/esm/components/Toast/ToastContainer.js +0 -1
- package/dist/esm/components/Toast/ToastContext.d.ts +0 -2
- package/dist/esm/components/Toast/ToastContext.js +0 -1
- package/dist/esm/components/Toast/ToastProvider.d.ts +0 -6
- package/dist/esm/components/Toast/ToastProvider.js +0 -1
- package/dist/esm/components/Toast/index.d.ts +0 -2
- package/dist/esm/components/Toast/index.js +0 -1
- package/dist/esm/hooks/useDragGesture.d.ts +0 -19
- package/dist/esm/hooks/useDragGesture.js +0 -1
- package/dist/esm/hooks/useWindowSize.d.ts +0 -5
- package/dist/esm/hooks/useWindowSize.js +0 -1
- package/dist/esm/utils/useTimeout.d.ts +0 -2
- package/dist/esm/utils/useTimeout.js +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
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.23.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.23.2" };
|
|
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] = "f0adc689-fcb8-4840-8681-7e0ef070a6d1", e._sentryDebugIdIdentifier = "sentry-dbid-f0adc689-fcb8-4840-8681-7e0ef070a6d1");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./floorplan.loader-
|
|
11
|
-
import { $ as c, At as l, C as u, Ct as d, Dt as f, Et as ee, Ft as te, G as ne, H as re, It as ie, Lt as
|
|
12
|
-
import { s as Ne } from "./efp-debug-init-
|
|
13
|
-
import { t as Pe } from "./react-
|
|
14
|
-
import { t as Fe } from "./jsx-runtime-
|
|
15
|
-
import { r as v } from "./loadImage-
|
|
16
|
-
import { C as y, D as Ie, Q as Le, ht as b, i as Re, n as ze, w as Be } from "./exports-
|
|
17
|
-
import { t as Ve } from "./client-
|
|
18
|
-
import { i as He, n as Ue, r as x, t as We } from "./components-
|
|
19
|
-
import { $t as
|
|
20
|
-
import { n as dt, t as ft } from "./integrateKiosk-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-MTWZj7PQ.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-Bt4oybgX.js";
|
|
11
|
+
import { $ as c, At as l, C as u, Ct as d, Dt as f, Et as ee, Ft as te, G as ne, H as re, It as ie, Lt as p, Mt as ae, Nt as oe, Ot as se, Pt as ce, Rt as m, St as le, Tt as ue, U as de, V as fe, _t as pe, bt as me, ct as he, dt as h, f as ge, ft as _e, gt as ve, jt as ye, kt as be, l as g, lt as xe, mt as Se, n as Ce, nt as we, o as Te, pt as Ee, r as De, v as Oe, wt as ke, xt as Ae, y as je, yt as Me, zt as _ } from "./i18n-D_PeYM0A.js";
|
|
12
|
+
import { s as Ne } from "./efp-debug-init-C0OHRZNn.js";
|
|
13
|
+
import { t as Pe } from "./react-1v6olhrH.js";
|
|
14
|
+
import { t as Fe } from "./jsx-runtime-CiltolM1.js";
|
|
15
|
+
import { r as v } from "./loadImage-Bv8NDM3i.js";
|
|
16
|
+
import { C as y, D as Ie, Q as Le, ht as b, i as Re, n as ze, w as Be } from "./exports-DbyVbUOC.js";
|
|
17
|
+
import { t as Ve } from "./client-DeQq5mQU.js";
|
|
18
|
+
import { i as He, n as Ue, r as x, t as We } from "./components-on0LMU5X.js";
|
|
19
|
+
import { $t as S, C as Ge, G as Ke, H as qe, I as Je, J as C, L as w, P as Ye, Q as Xe, S as T, T as E, U as Ze, V as D, Xt as Qe, Z as $e, at as et, c as O, ct as k, dt as tt, en as nt, it as rt, l as A, mn as j, ot as it, q as at, rt as M, st as ot, un as N, ut as st, v as ct, w as P, x as lt, xn as ut } from "./store-W6DIPr1q.js";
|
|
20
|
+
import { n as dt, t as ft } from "./integrateKiosk-BQaVMEWM.js";
|
|
21
21
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
22
22
|
function pt(e = {}) {
|
|
23
23
|
let r = n.document, i = (r == null ? void 0 : r.head) || (r == null ? void 0 : r.body);
|
|
@@ -134,20 +134,20 @@ var _t = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, I = {
|
|
|
134
134
|
}) : e;
|
|
135
135
|
return F.isValidElement(r) ? r : (e && _t && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
136
|
}
|
|
137
|
-
}, yt = /* @__PURE__ */ e(Ne(), 1), bt = Ve(), xt =
|
|
137
|
+
}, yt = /* @__PURE__ */ e(Ne(), 1), bt = Ve(), xt = ut();
|
|
138
138
|
function St(e) {
|
|
139
139
|
var t;
|
|
140
|
-
let n = new URLSearchParams(window.location.search).get(
|
|
141
|
-
return i == null ? g &&
|
|
140
|
+
let n = new URLSearchParams(window.location.search).get(fe), r = g ? window.localStorage.getItem(fe) : null, i = n == null ? r : n;
|
|
141
|
+
return i == null ? g && Xe() != null || Object.keys((t = e.kiosk) == null ? {} : t).length > 0 : i === "1";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ct() {
|
|
144
144
|
let e = window.location.hostname.split(".");
|
|
145
145
|
return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
return
|
|
147
|
+
function wt() {
|
|
148
|
+
return Ct() ? window.location.hostname.split(".")[0] : "main";
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Tt(e) {
|
|
151
151
|
if ((e == null ? void 0 : e.free) === !0) return "Free";
|
|
152
152
|
let t = e == null ? void 0 : e.trialExpiresAt;
|
|
153
153
|
if (t) {
|
|
@@ -156,25 +156,25 @@ function wt(e) {
|
|
|
156
156
|
}
|
|
157
157
|
return "Active";
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Et() {
|
|
160
160
|
return !1;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Dt(e) {
|
|
163
163
|
return e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
let t =
|
|
168
|
-
subDomain:
|
|
169
|
-
subscriptionStatus:
|
|
165
|
+
function Ot(e) {
|
|
166
|
+
if (Et() || !Ct() || St(e) || !window.navigator.onLine) return null;
|
|
167
|
+
let t = Dt({
|
|
168
|
+
subDomain: wt(),
|
|
169
|
+
subscriptionStatus: Tt(e)
|
|
170
170
|
});
|
|
171
171
|
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
175
|
-
var
|
|
175
|
+
var L = /*@__PURE__*/ m("ZodMiniType", (e, t) => {
|
|
176
176
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
177
|
-
l.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => ye(e, t, n, { callee: e.parse }), e.safeParse = (t, n) =>
|
|
177
|
+
l.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => ye(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => oe(e, t, n), e.parseAsync = async (t, n) => ae(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ce(e, t, n), e.check = (...n) => {
|
|
178
178
|
var r;
|
|
179
179
|
return e.clone({
|
|
180
180
|
...t,
|
|
@@ -185,94 +185,94 @@ var R = /*@__PURE__*/ p("ZodMiniType", (e, t) => {
|
|
|
185
185
|
} } : e)]
|
|
186
186
|
}, { parent: !0 });
|
|
187
187
|
}, e.with = e.check, e.clone = (t, n) => te(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
188
|
-
}),
|
|
189
|
-
be.init(e, t),
|
|
188
|
+
}), kt = /*@__PURE__*/ m("ZodMiniString", (e, t) => {
|
|
189
|
+
be.init(e, t), L.init(e, t);
|
|
190
190
|
});
|
|
191
191
|
// @__NO_SIDE_EFFECTS__
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function At(e) {
|
|
193
|
+
return le(kt, e);
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
ee.init(e, t),
|
|
195
|
+
var jt = /*@__PURE__*/ m("ZodMiniNumber", (e, t) => {
|
|
196
|
+
ee.init(e, t), L.init(e, t);
|
|
197
197
|
});
|
|
198
198
|
// @__NO_SIDE_EFFECTS__
|
|
199
|
-
function
|
|
200
|
-
return
|
|
199
|
+
function R(e) {
|
|
200
|
+
return me(jt, e);
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
|
|
202
|
+
var Mt = /*@__PURE__*/ m("ZodMiniNever", (e, t) => {
|
|
203
|
+
ue.init(e, t), L.init(e, t);
|
|
204
204
|
});
|
|
205
205
|
// @__NO_SIDE_EFFECTS__
|
|
206
|
-
function
|
|
207
|
-
return Me(
|
|
206
|
+
function Nt(e) {
|
|
207
|
+
return Me(Mt, e);
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
d.init(e, t),
|
|
209
|
+
var Pt = /*@__PURE__*/ m("ZodMiniArray", (e, t) => {
|
|
210
|
+
d.init(e, t), L.init(e, t);
|
|
211
211
|
});
|
|
212
212
|
// @__NO_SIDE_EFFECTS__
|
|
213
|
-
function
|
|
214
|
-
return new
|
|
213
|
+
function Ft(e, t) {
|
|
214
|
+
return new Pt({
|
|
215
215
|
type: "array",
|
|
216
216
|
element: e,
|
|
217
|
-
...
|
|
217
|
+
...p(t)
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
f.init(e, t),
|
|
220
|
+
var It = /*@__PURE__*/ m("ZodMiniObject", (e, t) => {
|
|
221
|
+
f.init(e, t), L.init(e, t), ie(e, "shape", () => t.shape);
|
|
222
222
|
});
|
|
223
223
|
// @__NO_SIDE_EFFECTS__
|
|
224
|
-
function
|
|
225
|
-
return new
|
|
224
|
+
function z(e, t) {
|
|
225
|
+
return new It({
|
|
226
226
|
type: "object",
|
|
227
227
|
shape: e,
|
|
228
|
-
catchall: /* @__PURE__ */
|
|
229
|
-
...
|
|
228
|
+
catchall: /* @__PURE__ */ Nt(),
|
|
229
|
+
...p(t)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var Lt = /*@__PURE__*/ m("ZodMiniOptional", (e, t) => {
|
|
233
|
+
se.init(e, t), L.init(e, t);
|
|
234
234
|
});
|
|
235
235
|
// @__NO_SIDE_EFFECTS__
|
|
236
|
-
function
|
|
237
|
-
return new
|
|
236
|
+
function B(e) {
|
|
237
|
+
return new Lt({
|
|
238
238
|
type: "optional",
|
|
239
239
|
innerType: e
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
var
|
|
243
|
-
ke.init(e, t),
|
|
242
|
+
var Rt = /*@__PURE__*/ m("ZodMiniCustom", (e, t) => {
|
|
243
|
+
ke.init(e, t), L.init(e, t);
|
|
244
244
|
});
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
247
|
-
return Ae(
|
|
246
|
+
function zt(e, t = {}) {
|
|
247
|
+
return Ae(Rt, e, t);
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region src/schemas/sdk.schemas.ts
|
|
251
|
-
var
|
|
252
|
-
x: /* @__PURE__ */
|
|
253
|
-
y: /* @__PURE__ */
|
|
254
|
-
}),
|
|
255
|
-
leftTop:
|
|
256
|
-
rightBottom:
|
|
257
|
-
}),
|
|
258
|
-
name: /* @__PURE__ */
|
|
259
|
-
externalId: /* @__PURE__ */
|
|
260
|
-
})).check(/* @__PURE__ */
|
|
261
|
-
booths: /* @__PURE__ */
|
|
262
|
-
exhibitors: /* @__PURE__ */
|
|
263
|
-
})).check(/* @__PURE__ */
|
|
251
|
+
var Bt = /* @__PURE__ */ z({
|
|
252
|
+
x: /* @__PURE__ */ R(),
|
|
253
|
+
y: /* @__PURE__ */ R()
|
|
254
|
+
}), Vt = /* @__PURE__ */ z({
|
|
255
|
+
leftTop: Bt,
|
|
256
|
+
rightBottom: Bt
|
|
257
|
+
}), Ht = (/* @__PURE__ */ z({
|
|
258
|
+
name: /* @__PURE__ */ B(/* @__PURE__ */ At()),
|
|
259
|
+
externalId: /* @__PURE__ */ B(/* @__PURE__ */ At())
|
|
260
|
+
})).check(/* @__PURE__ */ zt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Ut = (/* @__PURE__ */ z({
|
|
261
|
+
booths: /* @__PURE__ */ B(/* @__PURE__ */ Ft(Ht)),
|
|
262
|
+
exhibitors: /* @__PURE__ */ B(/* @__PURE__ */ Ft(Ht))
|
|
263
|
+
})).check(/* @__PURE__ */ zt((e) => {
|
|
264
264
|
var t, n;
|
|
265
265
|
return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
|
|
266
|
-
}, "Selector must contain booths or exhibitors")),
|
|
266
|
+
}, "Selector must contain booths or exhibitors")), Wt = /* @__PURE__ */ B(/* @__PURE__ */ z({ padding: /* @__PURE__ */ B(/* @__PURE__ */ R()) }));
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
|
-
function
|
|
270
|
-
let t =
|
|
269
|
+
function Gt(e) {
|
|
270
|
+
let t = ct(e);
|
|
271
271
|
Object.values(t).length && (ft(t, !1), dt(t));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region src/utils/getMostFrequent.ts
|
|
275
|
-
function
|
|
275
|
+
function Kt(e) {
|
|
276
276
|
let t = {}, n = 0, r;
|
|
277
277
|
return e.forEach((e) => {
|
|
278
278
|
t[e] = (t[e] || 0) + 1, t[e] > n && (n = t[e], r = e);
|
|
@@ -280,66 +280,66 @@ function Gt(e) {
|
|
|
280
280
|
}
|
|
281
281
|
//#endregion
|
|
282
282
|
//#region src/services/multi-slug.ts
|
|
283
|
-
function
|
|
283
|
+
function qt(e, t) {
|
|
284
284
|
if (!e.includes("&") && !e.includes("%26")) return null;
|
|
285
|
-
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !
|
|
285
|
+
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !h(e).includes("=");
|
|
286
286
|
return i.filter(a).length < 2 ? null : "?" + i.map((e) => a(e) && t(e) || e).join("&");
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region src/services/url-dispatch.ts
|
|
290
|
-
var
|
|
291
|
-
function
|
|
292
|
-
G(_()), u(() =>
|
|
290
|
+
var V = !1;
|
|
291
|
+
function Jt() {
|
|
292
|
+
G(_()), u(() => O.layerStore.layersLoaded, () => {
|
|
293
293
|
let e = _().camera;
|
|
294
294
|
Object.keys(e).length && dn(x(e));
|
|
295
295
|
let t = _().visibility;
|
|
296
|
-
Object.keys(t).length &&
|
|
296
|
+
Object.keys(t).length && A.setVisibility(t);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
299
|
+
function Yt(e) {
|
|
300
|
+
it({
|
|
301
301
|
offHistory: e,
|
|
302
|
-
onNavigate:
|
|
303
|
-
}),
|
|
304
|
-
|
|
302
|
+
onNavigate: U
|
|
303
|
+
}), en(), H(), u(() => O.layerStore.layersLoaded, () => {
|
|
304
|
+
O.urlFilterManager && !O.urlFilterManager.isInitialized && O.urlFilterManager.initialize(), U(), ge(un), ge(cn), A.viewerMode && (A.menu = !0);
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
|
|
307
|
+
function Xt(e = "") {
|
|
308
|
+
k("?" + h(e.toString())), O.layerStore.layersLoaded ? Zt(e) : (H(), u(() => O.layerStore.layersLoaded, () => Zt(e)));
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Zt(e) {
|
|
311
311
|
var t, n;
|
|
312
|
-
let r = "?" +
|
|
312
|
+
let r = "?" + h(e), i = rn(r), a = [...(t = i.intents) == null ? [] : t, ...Ee(r).intents], { intents: s = [], ...c } = _e(r, {
|
|
313
313
|
visibility: i.visibility,
|
|
314
314
|
consent: i.consent,
|
|
315
315
|
intents: a
|
|
316
316
|
});
|
|
317
317
|
G(i), G(c);
|
|
318
318
|
let l = (n = i.consent) == null ? c.consent : n;
|
|
319
|
-
l &&
|
|
319
|
+
l && C(l), i.camera && Object.keys(i.camera).length && dn(x(i.camera)), i.visibility && Object.keys(i.visibility).length && A.setVisibility(i.visibility), en(), U();
|
|
320
320
|
let u = [...a, ...s];
|
|
321
|
-
u.length && o(
|
|
321
|
+
u.length && o(O.fp, u);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
let e =
|
|
325
|
-
return Ue(e.length > 1 ?
|
|
323
|
+
function H() {
|
|
324
|
+
let e = M();
|
|
325
|
+
return Ue(e.length > 1 ? h(e.substring(1)) : "");
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
|
|
327
|
+
function U() {
|
|
328
|
+
V = !0;
|
|
329
329
|
try {
|
|
330
|
-
|
|
331
|
-
let { primary: e } =
|
|
332
|
-
!
|
|
330
|
+
Gt(new URLSearchParams(h(window.location.search)));
|
|
331
|
+
let { primary: e } = he(M()), t = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (A.heatmap || A.heatmapYah);
|
|
332
|
+
!H() && !t && Qt(e);
|
|
333
333
|
} finally {
|
|
334
|
-
|
|
334
|
+
V = !1;
|
|
335
335
|
}
|
|
336
336
|
cn(), un();
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
let t =
|
|
338
|
+
function Qt(e) {
|
|
339
|
+
let t = O.fp;
|
|
340
340
|
switch (e.type) {
|
|
341
341
|
case "kiosk":
|
|
342
|
-
e.enabled !== null &&
|
|
342
|
+
e.enabled !== null && tt(A, e.enabled);
|
|
343
343
|
return;
|
|
344
344
|
case "list":
|
|
345
345
|
t.showList(e.list);
|
|
@@ -356,7 +356,7 @@ function Zt(e) {
|
|
|
356
356
|
return;
|
|
357
357
|
case "route":
|
|
358
358
|
var n, r;
|
|
359
|
-
|
|
359
|
+
O.routeStore.setOnlyAccessible(e.accessible), O.routeStore.selectRoute(Ge((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), O.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && O.uiState.setRouteTitle(e.title);
|
|
360
360
|
return;
|
|
361
361
|
case "selectExhibitors":
|
|
362
362
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
@@ -370,88 +370,88 @@ function Zt(e) {
|
|
|
370
370
|
return;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i =
|
|
375
|
-
if (
|
|
376
|
-
let e =
|
|
377
|
-
e &&
|
|
378
|
-
}
|
|
379
|
-
(n.length > 0 || r.length > 0) &&
|
|
380
|
-
|
|
373
|
+
function $t(e) {
|
|
374
|
+
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i = O.boothStore.booths.filter((e) => n.includes(e.externalId)), a = O.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), o = [...i, ...a];
|
|
375
|
+
if (nt()) {
|
|
376
|
+
let e = Kt(o.map((e) => e.layer.name));
|
|
377
|
+
e && O.fp.activateFloor({ name: e });
|
|
378
|
+
}
|
|
379
|
+
(n.length > 0 || r.length > 0) && O.fp.highlightEntities([...n, ...r]), O.layerStore.showPathWay(t), o.length > 0 && je(() => {
|
|
380
|
+
O.uiState.moveToRect = j.fromUnion(...o.map((e) => e.rect).filter(Boolean)), O.uiState.rollReset = !0;
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
let { oneShots: e } =
|
|
385
|
-
for (let t of e)
|
|
386
|
-
let t =
|
|
387
|
-
t !== null &&
|
|
383
|
+
function en() {
|
|
384
|
+
let { oneShots: e } = he(M());
|
|
385
|
+
for (let t of e) tn(t);
|
|
386
|
+
let t = qe(M());
|
|
387
|
+
t !== null && k("?" + t), A.previewExhibitor && k("?" + A.previewExhibitor.slug), nn();
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function tn(e) {
|
|
390
390
|
switch (e.type) {
|
|
391
391
|
case "heatmap":
|
|
392
|
-
|
|
392
|
+
W(e.yah);
|
|
393
393
|
return;
|
|
394
394
|
case "blueDot": {
|
|
395
395
|
var t, n;
|
|
396
|
-
let r = new
|
|
397
|
-
u(() =>
|
|
396
|
+
let r = new lt(e.x, e.y, (t = O.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
397
|
+
u(() => O.layerStore.layersLoaded, () => O.routeStore.selectCurrentPosition(r, !0, 1));
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
400
|
case "viewerMode":
|
|
401
401
|
g && (e.enabled ? localStorage.setItem(we, "true") : (localStorage.removeItem(we), localStorage.removeItem(ne)));
|
|
402
402
|
return;
|
|
403
403
|
case "previewMode":
|
|
404
|
-
g && (e.enabled ? localStorage.setItem(c, "true") : (localStorage.removeItem(c), localStorage.removeItem(
|
|
404
|
+
g && (e.enabled ? localStorage.setItem(c, "true") : (localStorage.removeItem(c), localStorage.removeItem(de)));
|
|
405
405
|
return;
|
|
406
406
|
case "uiScale":
|
|
407
|
-
e.scale === null ? v.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) :
|
|
407
|
+
e.scale === null ? v.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : O.uiState.setUIScale(e.scale, !0);
|
|
408
408
|
return;
|
|
409
409
|
case "resetUiScale":
|
|
410
|
-
|
|
410
|
+
O.uiState.resetUIScale();
|
|
411
411
|
return;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
|
|
414
|
+
function W(e) {
|
|
415
|
+
et(), e ? (A.heatmapYah = !0, A.monochrome = !0, A.hideLogoInBooth = !0, A.hideHeaderLogo = !0, A.disableBookmarked = !0) : A.heatmap = !0;
|
|
416
416
|
}
|
|
417
417
|
function nn() {
|
|
418
|
-
let e =
|
|
419
|
-
let t =
|
|
418
|
+
let e = qt(M(), (e) => {
|
|
419
|
+
let t = O.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
420
420
|
return t == null ? void 0 : t.name;
|
|
421
421
|
});
|
|
422
|
-
e !== null &&
|
|
422
|
+
e !== null && k(e);
|
|
423
423
|
}
|
|
424
424
|
function G(e) {
|
|
425
|
-
e.noOverlay !== void 0 && (
|
|
425
|
+
e.noOverlay !== void 0 && (A.hideOverlay = e.noOverlay), e.monochrome && (A.monochrome = !0), e.hideHeaderLogo && (A.hideHeaderLogo = !0), e.hideLogoInBooth && (A.hideLogoInBooth = !0), e.disableFeatured && O.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (A.disableBookmarked = !0), e.disableGps && O.routeStore.setGpsTrackingEnabled(!1), e.heatmap && r(e.heatmap) && W(e.heatmap.variant === "yah");
|
|
426
426
|
}
|
|
427
427
|
function rn(e) {
|
|
428
428
|
return Se(ve, e).value;
|
|
429
429
|
}
|
|
430
430
|
var an = null, on = null, sn = null;
|
|
431
431
|
function cn() {
|
|
432
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } = ln(), i =
|
|
433
|
-
if (
|
|
432
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = ln(), i = O.urlFilterManager.filterSearch();
|
|
433
|
+
if (V) return;
|
|
434
434
|
let a = xe(e) || i;
|
|
435
|
-
|
|
435
|
+
M() !== a && (t !== an || n !== on || r !== sn ? ot(a) : k(a), an = t, on = n, sn = r);
|
|
436
436
|
}
|
|
437
437
|
function ln() {
|
|
438
|
-
let e =
|
|
438
|
+
let e = A.selectedExhibitor, t = A.selectedBooth, n = A.selectedEventItem, r = A.selectedRoute, i = A.selectedSpeaker, a = A.setKioskModeEnabled, o = A.list, s;
|
|
439
439
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
440
440
|
var c;
|
|
441
|
-
let e =
|
|
441
|
+
let e = O.routePlannerStore;
|
|
442
442
|
s = {
|
|
443
443
|
type: "planner",
|
|
444
444
|
fromBookmarks: e.source === "bookmarks",
|
|
445
445
|
items: e.items.map((e) => e.entity.slug).filter(Boolean),
|
|
446
446
|
from: ((c = e.startPoint) == null ? void 0 : c.slug) || void 0
|
|
447
447
|
};
|
|
448
|
-
} else if (r && !
|
|
448
|
+
} else if (r && !A.isMultiPointRoute) {
|
|
449
449
|
var l;
|
|
450
450
|
s = {
|
|
451
451
|
type: "route",
|
|
452
|
-
to: r.to instanceof
|
|
453
|
-
from: r.from instanceof
|
|
454
|
-
accessible:
|
|
452
|
+
to: r.to instanceof Qe ? r.to.slug : void 0,
|
|
453
|
+
from: r.from instanceof Qe ? r.from.slug : void 0,
|
|
454
|
+
accessible: O.routeStore.onlyAccessible,
|
|
455
455
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
456
456
|
};
|
|
457
457
|
} else if (e) s = {
|
|
@@ -488,7 +488,7 @@ function ln() {
|
|
|
488
488
|
var u, d;
|
|
489
489
|
s = {
|
|
490
490
|
type: "slug",
|
|
491
|
-
slug: (u = (d =
|
|
491
|
+
slug: (u = (d = A.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
492
492
|
};
|
|
493
493
|
break;
|
|
494
494
|
case "search":
|
|
@@ -520,14 +520,14 @@ function ln() {
|
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
function un() {
|
|
523
|
-
let e =
|
|
524
|
-
e ? r = e.name : t ? r = t.name : n ? r = n.name :
|
|
523
|
+
let e = A.selectedExhibitor, t = A.selectedEventItem, n = A.selectedSpeaker, r = "";
|
|
524
|
+
e ? r = e.name : t ? r = t.name : n ? r = n.name : A.list.type === "search" && A.list.text ? r = "`" + (A.list.text || "") + "`" : A.list.type === "multi-point-tour" && A.tourTitle && (r = A.tourTitle), r.length && (r += " – "), r += N.title, N.subtitle && (r += " – " + N.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
|
|
525
525
|
}
|
|
526
526
|
function dn(e) {
|
|
527
527
|
try {
|
|
528
|
-
if (
|
|
529
|
-
let t =
|
|
530
|
-
t &&
|
|
528
|
+
if (A.setMapSettings(e), e.z) {
|
|
529
|
+
let t = O.layerStore.layers.find((t) => t.name === e.z);
|
|
530
|
+
t && O.layerStore.updateVisibility(t, !0);
|
|
531
531
|
}
|
|
532
532
|
} catch (e) {
|
|
533
533
|
console.error("Failed to process map settings.", e);
|
|
@@ -627,26 +627,26 @@ var mn = class extends s {
|
|
|
627
627
|
super(...e), this.root = void 0;
|
|
628
628
|
}
|
|
629
629
|
init() {
|
|
630
|
-
|
|
630
|
+
Jt(), this.ignoreQuery || Yt(this.offHistory), $e("load"), O.fp = this, C(this.consent), at(Ze.Load, ""), this.root = (0, bt.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(vt, { children: /* @__PURE__ */ (0, X.jsx)(We, {
|
|
631
631
|
offHistory: this.offHistory,
|
|
632
632
|
consent: this.consent
|
|
633
|
-
}) })),
|
|
634
|
-
if (this.resolveReady(), !
|
|
633
|
+
}) })), at(Ze.Rendered, ""), Oe(() => O.layerStore.layersLoaded, () => {
|
|
634
|
+
if (this.resolveReady(), !O.initialized) {
|
|
635
635
|
var e;
|
|
636
636
|
(e = this.onInit) == null || e.call(this, this);
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
O.initialized = !0;
|
|
639
639
|
});
|
|
640
|
-
let e =
|
|
641
|
-
e && import("./bootIntercom-
|
|
640
|
+
let e = Ot(N);
|
|
641
|
+
e && import("./bootIntercom-W2WvsUkQ.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
642
642
|
}
|
|
643
643
|
selectBooth(e) {
|
|
644
644
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
645
645
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
646
646
|
return;
|
|
647
647
|
}
|
|
648
|
-
let t =
|
|
649
|
-
|
|
648
|
+
let t = O.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
649
|
+
O.selectBooth(t);
|
|
650
650
|
}
|
|
651
651
|
selectExhibitor(e) {
|
|
652
652
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -654,35 +654,35 @@ var mn = class extends s {
|
|
|
654
654
|
return;
|
|
655
655
|
}
|
|
656
656
|
if (!(e != null && e.length)) {
|
|
657
|
-
|
|
657
|
+
O.uiState.menu = !1, O.searchStore.resetSearchBox(), O.uiState.details = null;
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
|
-
let t =
|
|
660
|
+
let t = O.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
661
661
|
if (!(t != null && t.length)) return;
|
|
662
662
|
if (typeof e == "string") {
|
|
663
|
-
|
|
663
|
+
O.selectExhibitor(t[0]), O.moveToList([t[0]]);
|
|
664
664
|
return;
|
|
665
665
|
}
|
|
666
|
-
let n =
|
|
667
|
-
n &&
|
|
666
|
+
let n = Kt(t.flatMap((e) => e.booths.map((e) => e.layer)).map((e) => e.description));
|
|
667
|
+
n && O.layerStore.updateVisibility(n, !0), O.uiState.menu = !1, O.searchStore.resetSearchBox(), O.uiState.details = null, O.uiState.list = {
|
|
668
668
|
type: "filter",
|
|
669
669
|
items: t,
|
|
670
670
|
query: {
|
|
671
671
|
key: "exhibitors",
|
|
672
672
|
value: t.map((e) => e.name).join(",")
|
|
673
673
|
}
|
|
674
|
-
},
|
|
674
|
+
}, O.moveToList();
|
|
675
675
|
}
|
|
676
676
|
highlightExhibitors(e) {
|
|
677
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
677
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), O.boothStore.highlightedByExternalIds = [], O.exhibitorStore.highlightedByExternalIds = [...e];
|
|
678
678
|
}
|
|
679
679
|
highlightBooths(e) {
|
|
680
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
680
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), O.exhibitorStore.highlightedByExternalIds = [], O.boothStore.highlightedByExternalIds = [...e];
|
|
681
681
|
}
|
|
682
682
|
highlightEntities(e) {
|
|
683
683
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
684
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
685
|
-
|
|
684
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = E(e);
|
|
685
|
+
O.boothStore.highlightedByExternalIds = [...t], O.exhibitorStore.highlightedByExternalIds = [...n];
|
|
686
686
|
}
|
|
687
687
|
selectRoute(e, t) {
|
|
688
688
|
if (Array.isArray(e)) {
|
|
@@ -692,10 +692,10 @@ var mn = class extends s {
|
|
|
692
692
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
|
-
|
|
695
|
+
O.routeStore.selectRoute(new T(Q(n), Q(r), t.map(Q)));
|
|
696
696
|
return;
|
|
697
697
|
}
|
|
698
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
698
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), O.routeStore.selectRoute(new T(Q(e), Q(t)));
|
|
699
699
|
}
|
|
700
700
|
getOptimizedRoutes(e) {
|
|
701
701
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -708,19 +708,19 @@ var mn = class extends s {
|
|
|
708
708
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
709
709
|
a ? a.push(e) : n.set(t, [e]);
|
|
710
710
|
}
|
|
711
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
711
|
+
return Array.from(n.values()).map((e) => ({ waypoints: Ye(e.map((e) => [e.name, {
|
|
712
712
|
x: e.rect.center.x,
|
|
713
713
|
y: e.rect.center.y
|
|
714
714
|
}])) }));
|
|
715
715
|
}
|
|
716
716
|
selectCurrentPosition(e, t, n) {
|
|
717
717
|
var r;
|
|
718
|
-
let i =
|
|
719
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
718
|
+
let i = w(e.x) && w(e.y), a = w(e.lng) && w(e.lat);
|
|
719
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), O.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
720
720
|
}
|
|
721
721
|
setBookmarks(e) {
|
|
722
722
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
723
|
-
let t =
|
|
723
|
+
let t = O.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
724
724
|
t && (t.bookmarked = e.bookmarked);
|
|
725
725
|
});
|
|
726
726
|
}
|
|
@@ -739,29 +739,29 @@ var mn = class extends s {
|
|
|
739
739
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
740
740
|
return;
|
|
741
741
|
}
|
|
742
|
-
let r =
|
|
742
|
+
let r = S("bookmarked"), i = {
|
|
743
743
|
exhibitor: {
|
|
744
744
|
existingIds: new Set(r.exhibitors || []),
|
|
745
|
-
finder: (e) =>
|
|
746
|
-
replacer: (e) =>
|
|
745
|
+
finder: (e) => O.exhibitorStore.findExhibitor(e),
|
|
746
|
+
replacer: (e) => O.exhibitorStore.replaceBookmarked(e)
|
|
747
747
|
},
|
|
748
748
|
event: {
|
|
749
749
|
existingIds: new Set(r.events || []),
|
|
750
|
-
finder: (e) =>
|
|
751
|
-
replacer: (e) =>
|
|
750
|
+
finder: (e) => O.eventStore.findByNameOrSlug(e),
|
|
751
|
+
replacer: (e) => O.eventStore.replaceBookmarked(e)
|
|
752
752
|
},
|
|
753
753
|
speaker: {
|
|
754
754
|
existingIds: new Set(r.speakers || []),
|
|
755
|
-
finder: (e) =>
|
|
756
|
-
replacer: (e) =>
|
|
755
|
+
finder: (e) => O.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
756
|
+
replacer: (e) => O.speakerStore.replaceBookmarked(e)
|
|
757
757
|
},
|
|
758
758
|
booth: {
|
|
759
759
|
existingIds: new Set(r.booths || []),
|
|
760
760
|
finder: (e) => {
|
|
761
|
-
let t =
|
|
761
|
+
let t = O.boothStore.findBooth(e);
|
|
762
762
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
763
763
|
},
|
|
764
|
-
replacer: (e) =>
|
|
764
|
+
replacer: (e) => O.boothStore.replaceBookmarked(e)
|
|
765
765
|
}
|
|
766
766
|
};
|
|
767
767
|
e.forEach((e) => {
|
|
@@ -781,16 +781,16 @@ var mn = class extends s {
|
|
|
781
781
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
782
782
|
return;
|
|
783
783
|
}
|
|
784
|
-
let r =
|
|
784
|
+
let r = S("visited"), i = {
|
|
785
785
|
exhibitor: {
|
|
786
786
|
existingIds: new Set(r.exhibitors || []),
|
|
787
|
-
finder: (e) =>
|
|
788
|
-
replacer: (e) =>
|
|
787
|
+
finder: (e) => O.exhibitorStore.findExhibitor(e),
|
|
788
|
+
replacer: (e) => O.exhibitorStore.replaceVisited(e)
|
|
789
789
|
},
|
|
790
790
|
event: {
|
|
791
791
|
existingIds: new Set(r.events || []),
|
|
792
|
-
finder: (e) =>
|
|
793
|
-
replacer: (e) =>
|
|
792
|
+
finder: (e) => O.eventStore.findByNameOrSlug(e),
|
|
793
|
+
replacer: (e) => O.eventStore.replaceVisited(e)
|
|
794
794
|
}
|
|
795
795
|
};
|
|
796
796
|
e.forEach((e) => {
|
|
@@ -805,94 +805,94 @@ var mn = class extends s {
|
|
|
805
805
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
806
806
|
return;
|
|
807
807
|
}
|
|
808
|
-
|
|
808
|
+
O.routeStore.setMarkers(e);
|
|
809
809
|
}
|
|
810
810
|
selectMarker(e, t = !0) {
|
|
811
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
811
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), O.routeStore.selectMarker(e, t);
|
|
812
812
|
}
|
|
813
813
|
drawCircles(e) {
|
|
814
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
814
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), O.uiState.debugCircles = e;
|
|
815
815
|
}
|
|
816
816
|
checkRoutes() {
|
|
817
|
-
|
|
817
|
+
O.routeStore.checkRoutes();
|
|
818
818
|
}
|
|
819
819
|
updateLayerVisibility(e, t) {
|
|
820
|
-
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"),
|
|
820
|
+
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"), O.layerStore.updateVisibility(e, t);
|
|
821
821
|
}
|
|
822
822
|
getCenterCoordinates() {
|
|
823
|
-
return
|
|
823
|
+
return O.fp.getCenterCoordinates();
|
|
824
824
|
}
|
|
825
825
|
exhibitorsList() {
|
|
826
|
-
return
|
|
826
|
+
return O.exhibitorStore.exhibitors.map((e) => q(e));
|
|
827
827
|
}
|
|
828
828
|
boothsList() {
|
|
829
|
-
return
|
|
829
|
+
return O.boothStore.booths.map((e) => q(e));
|
|
830
830
|
}
|
|
831
831
|
categoriesList() {
|
|
832
|
-
return
|
|
832
|
+
return O.categoryStore.categories.map((e) => q(e));
|
|
833
833
|
}
|
|
834
834
|
selectCategory(e) {
|
|
835
835
|
if (e == null || typeof e != "string") {
|
|
836
|
-
|
|
836
|
+
O.searchStore.selectSearch();
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
839
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = O.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
840
840
|
if (!n) {
|
|
841
841
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
842
842
|
return;
|
|
843
843
|
}
|
|
844
|
-
|
|
844
|
+
O.selectCategory(n);
|
|
845
845
|
}
|
|
846
846
|
select(e) {
|
|
847
847
|
if (typeof e != "string") {
|
|
848
848
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
851
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = O.boothStore.booths.find((e) => {
|
|
852
852
|
var t, r, i;
|
|
853
853
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n || ((i = e.externalId) == null || (i = i.toLowerCase()) == null ? void 0 : i.replace(/\s+/g, "")) === n;
|
|
854
854
|
});
|
|
855
855
|
if (r) {
|
|
856
|
-
setTimeout(() =>
|
|
856
|
+
setTimeout(() => O.selectBooth(r), 250);
|
|
857
857
|
return;
|
|
858
858
|
}
|
|
859
|
-
let i =
|
|
859
|
+
let i = O.eventStore.eventItems.find((e) => {
|
|
860
860
|
var t, r;
|
|
861
861
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
862
862
|
});
|
|
863
863
|
if (i) {
|
|
864
|
-
|
|
864
|
+
O.selectEventItem(i, !0);
|
|
865
865
|
return;
|
|
866
866
|
}
|
|
867
|
-
let a =
|
|
867
|
+
let a = O.exhibitorStore.exhibitors.find((e) => {
|
|
868
868
|
var t, r;
|
|
869
869
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
870
870
|
});
|
|
871
871
|
if (a) {
|
|
872
|
-
setTimeout(() =>
|
|
872
|
+
setTimeout(() => O.clickExhibitor(a), 250);
|
|
873
873
|
return;
|
|
874
874
|
}
|
|
875
|
-
let o =
|
|
875
|
+
let o = O.categoryStore.categories.find((e) => e.slug === t);
|
|
876
876
|
if (o) {
|
|
877
|
-
|
|
877
|
+
O.selectCategory(o);
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
|
-
let s =
|
|
880
|
+
let s = O.speakerStore.findBySlug(t);
|
|
881
881
|
if (s) {
|
|
882
|
-
|
|
882
|
+
O.selectSpeaker(s, !0);
|
|
883
883
|
return;
|
|
884
884
|
}
|
|
885
|
-
t.includes("heatmap=true") ||
|
|
885
|
+
t.includes("heatmap=true") || O.searchStore.selectSearch(t);
|
|
886
886
|
}
|
|
887
887
|
showList(e) {
|
|
888
888
|
let t = {
|
|
889
|
-
bookmarks: () =>
|
|
890
|
-
visited: () =>
|
|
891
|
-
sessions: () =>
|
|
892
|
-
exhibitors: () =>
|
|
893
|
-
speakers: () =>
|
|
894
|
-
tours: () =>
|
|
895
|
-
language: () =>
|
|
889
|
+
bookmarks: () => O.selectBookmarks(),
|
|
890
|
+
visited: () => O.selectVisited(),
|
|
891
|
+
sessions: () => O.selectSessions(),
|
|
892
|
+
exhibitors: () => O.selectExhibitors(),
|
|
893
|
+
speakers: () => O.selectSpeakers(),
|
|
894
|
+
tours: () => O.selectTours(),
|
|
895
|
+
language: () => O.selectLanguage()
|
|
896
896
|
}, n = t[e];
|
|
897
897
|
if (!n) {
|
|
898
898
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -905,65 +905,65 @@ var mn = class extends s {
|
|
|
905
905
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
906
906
|
return;
|
|
907
907
|
}
|
|
908
|
-
let t =
|
|
909
|
-
t ?
|
|
908
|
+
let t = O.toursStore.getTourById(e);
|
|
909
|
+
t ? O.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), O.selectTours());
|
|
910
910
|
}
|
|
911
911
|
openPlanner(e = {}) {
|
|
912
912
|
if (typeof e != "object" || !e) {
|
|
913
913
|
$("openPlanner", "An options object must be passed.", "EFP001A00");
|
|
914
914
|
return;
|
|
915
915
|
}
|
|
916
|
-
let t = e.from ?
|
|
917
|
-
if (e.fromBookmarks)
|
|
916
|
+
let t = e.from ? P(e.from) : null;
|
|
917
|
+
if (e.fromBookmarks) O.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
918
918
|
else {
|
|
919
919
|
var n;
|
|
920
|
-
|
|
920
|
+
O.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
startBuildRoute() {
|
|
924
|
-
|
|
924
|
+
O.uiState.startBuildRoute();
|
|
925
925
|
}
|
|
926
926
|
applyParameters(e) {
|
|
927
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
927
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), Xt(e);
|
|
928
928
|
}
|
|
929
929
|
getVisibility() {
|
|
930
|
-
return
|
|
930
|
+
return O.uiState.visibility;
|
|
931
931
|
}
|
|
932
932
|
setVisibility(e) {
|
|
933
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
933
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), O.uiState.setVisibility(e);
|
|
934
934
|
}
|
|
935
935
|
findLocation() {
|
|
936
|
-
|
|
936
|
+
O.routeStore.findLocation();
|
|
937
937
|
}
|
|
938
938
|
zoomIn() {
|
|
939
|
-
|
|
939
|
+
O.uiState.zoomIn();
|
|
940
940
|
}
|
|
941
941
|
zoomOut() {
|
|
942
|
-
|
|
942
|
+
O.uiState.zoomOut();
|
|
943
943
|
}
|
|
944
944
|
switchView() {
|
|
945
|
-
|
|
945
|
+
O.maplibreStore.activateMaplibre();
|
|
946
946
|
}
|
|
947
947
|
setCamera(e) {
|
|
948
948
|
Z("setCamera called with camera=%O", e);
|
|
949
|
-
let t =
|
|
949
|
+
let t = pe.safeParse(e);
|
|
950
950
|
if (!t.success) {
|
|
951
951
|
$("setCamera", t.error.message, "EFP001B00");
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
|
-
|
|
954
|
+
O.uiState.setMapSettings(x(t.data));
|
|
955
955
|
}
|
|
956
956
|
getCamera() {
|
|
957
|
-
return He(
|
|
957
|
+
return He(O.uiState.mapSettings);
|
|
958
958
|
}
|
|
959
959
|
zoomTo(e, t) {
|
|
960
960
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
961
|
-
let n =
|
|
961
|
+
let n = Ut.safeParse(e);
|
|
962
962
|
if (!n.success) {
|
|
963
963
|
$("zoomTo", n.error.message, "EFP001600");
|
|
964
964
|
return;
|
|
965
965
|
}
|
|
966
|
-
let r =
|
|
966
|
+
let r = Wt.safeParse(t);
|
|
967
967
|
if (!r.success) {
|
|
968
968
|
$("zoomTo", r.error.message, "EFP001601");
|
|
969
969
|
return;
|
|
@@ -974,7 +974,7 @@ var mn = class extends s {
|
|
|
974
974
|
getBounds(e) {
|
|
975
975
|
var t, n;
|
|
976
976
|
Z("getBounds called with selectors=%O", e);
|
|
977
|
-
let r =
|
|
977
|
+
let r = Ut.safeParse(e);
|
|
978
978
|
if (!r.success) {
|
|
979
979
|
$("getBounds", r.error.message, "EFP001400");
|
|
980
980
|
return;
|
|
@@ -982,15 +982,15 @@ var mn = class extends s {
|
|
|
982
982
|
let i = [];
|
|
983
983
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
984
984
|
let t;
|
|
985
|
-
e.externalId ? t =
|
|
985
|
+
e.externalId ? t = O.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = O.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
986
986
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
987
987
|
var t;
|
|
988
988
|
let n;
|
|
989
|
-
e.externalId ? n =
|
|
989
|
+
e.externalId ? n = O.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = O.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
990
990
|
e.rect && i.push(e.rect);
|
|
991
991
|
});
|
|
992
992
|
}), i.length === 0) return;
|
|
993
|
-
let a =
|
|
993
|
+
let a = j.fromUnion(...i);
|
|
994
994
|
return {
|
|
995
995
|
leftTop: {
|
|
996
996
|
x: a.min.x,
|
|
@@ -1004,37 +1004,37 @@ var mn = class extends s {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
fitBounds(e, t) {
|
|
1006
1006
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1007
|
-
|
|
1007
|
+
O.uiState.fitBounds();
|
|
1008
1008
|
return;
|
|
1009
1009
|
}
|
|
1010
|
-
let n =
|
|
1010
|
+
let n = Vt.safeParse(e);
|
|
1011
1011
|
if (!n.success) {
|
|
1012
1012
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1013
1013
|
return;
|
|
1014
1014
|
}
|
|
1015
|
-
let r =
|
|
1015
|
+
let r = Wt.safeParse(t);
|
|
1016
1016
|
if (!r.success) {
|
|
1017
1017
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1018
1018
|
return;
|
|
1019
1019
|
}
|
|
1020
|
-
let i =
|
|
1020
|
+
let i = j.fromMinMax({
|
|
1021
1021
|
x: e.leftTop.x,
|
|
1022
1022
|
y: e.leftTop.y
|
|
1023
1023
|
}, {
|
|
1024
1024
|
x: e.rightBottom.x,
|
|
1025
1025
|
y: e.rightBottom.y
|
|
1026
1026
|
});
|
|
1027
|
-
|
|
1027
|
+
O.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1028
1028
|
}
|
|
1029
1029
|
getBoothRect(e) {
|
|
1030
1030
|
var t;
|
|
1031
1031
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1032
|
-
let n = (t =
|
|
1032
|
+
let n = (t = P(e)) == null ? void 0 : t.rect;
|
|
1033
1033
|
return n ? gn.fromBox(n) : void 0;
|
|
1034
1034
|
}
|
|
1035
1035
|
convertToGeo(e, t) {
|
|
1036
1036
|
var n;
|
|
1037
|
-
if (!(!(
|
|
1037
|
+
if (!(!(D == null || (n = D.properties) == null) && n.config)) {
|
|
1038
1038
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
@@ -1042,11 +1042,11 @@ var mn = class extends s {
|
|
|
1042
1042
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1043
1043
|
return;
|
|
1044
1044
|
}
|
|
1045
|
-
return
|
|
1045
|
+
return Je(e, t, D.properties.config);
|
|
1046
1046
|
}
|
|
1047
1047
|
getGeoConfig() {
|
|
1048
1048
|
var e, t;
|
|
1049
|
-
let n =
|
|
1049
|
+
let n = D == null || (e = D.properties) == null ? void 0 : e.config;
|
|
1050
1050
|
return n ? {
|
|
1051
1051
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1052
1052
|
p0: n.p0,
|
|
@@ -1056,16 +1056,16 @@ var mn = class extends s {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
unstable_destroy() {
|
|
1058
1058
|
let e = window.__efpElement.firstChild;
|
|
1059
|
-
fn(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", i),
|
|
1059
|
+
fn(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", i), O.maplibreStore.dispose(), rt(), st(), Ke(), this.root.unmount(), e.remove();
|
|
1060
1060
|
}
|
|
1061
1061
|
search(e) {
|
|
1062
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1062
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), O.fuzzySearchEngineStore.loadEngine().then(() => (O.searchStore.selectSearch(e), O.uiState.fuzzySearchItems.map((e) => ({
|
|
1063
1063
|
item: q(e.item),
|
|
1064
1064
|
score: e.score
|
|
1065
1065
|
}))));
|
|
1066
1066
|
}
|
|
1067
1067
|
getFloors() {
|
|
1068
|
-
return
|
|
1068
|
+
return O.layerStore.floors.map((e) => ({
|
|
1069
1069
|
name: e.name,
|
|
1070
1070
|
shortName: e.shortName,
|
|
1071
1071
|
description: e.description,
|
|
@@ -1102,30 +1102,30 @@ var mn = class extends s {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
showPathway(e, t) {
|
|
1105
|
-
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ?
|
|
1105
|
+
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? E(t) : {
|
|
1106
1106
|
boothExternalIds: [],
|
|
1107
1107
|
exhibitorExternalIds: []
|
|
1108
1108
|
};
|
|
1109
|
-
|
|
1109
|
+
$t({
|
|
1110
1110
|
pathwayId: e,
|
|
1111
1111
|
boothIds: n,
|
|
1112
1112
|
exhibitorIds: r
|
|
1113
1113
|
});
|
|
1114
1114
|
}
|
|
1115
1115
|
showPathwayOnly(e, t) {
|
|
1116
|
-
this.activateFloor({ name: t }),
|
|
1117
|
-
let n =
|
|
1116
|
+
this.activateFloor({ name: t }), O.layerStore.showPathWay(e), O.uiState.setPathwayOnlyMode(!0);
|
|
1117
|
+
let n = O.layerStore.findLayer(e), r = O.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1118
1118
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1119
1119
|
var a;
|
|
1120
1120
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1121
|
-
|
|
1121
|
+
O.uiState.moveToRect = e.clone();
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
hidePathways() {
|
|
1125
|
-
this.highlightBooths([]),
|
|
1125
|
+
this.highlightBooths([]), O.layerStore.hidePathways(), O.uiState.setPathwayOnlyMode(!1);
|
|
1126
1126
|
}
|
|
1127
1127
|
showSearch() {
|
|
1128
|
-
|
|
1128
|
+
O.selectSearch("");
|
|
1129
1129
|
}
|
|
1130
1130
|
changeLanguage(e) {
|
|
1131
1131
|
var t;
|
|
@@ -1137,35 +1137,35 @@ var mn = class extends s {
|
|
|
1137
1137
|
Te(n);
|
|
1138
1138
|
}
|
|
1139
1139
|
isGpsTrackingEnabled() {
|
|
1140
|
-
return
|
|
1140
|
+
return O.routeStore.gpsEnabled;
|
|
1141
1141
|
}
|
|
1142
1142
|
setGpsTrackingEnabled(e) {
|
|
1143
|
-
|
|
1143
|
+
O.routeStore.setGpsTrackingEnabled(e);
|
|
1144
1144
|
}
|
|
1145
1145
|
deselectCurrentPosition() {
|
|
1146
|
-
|
|
1146
|
+
O.routeStore.selectCurrentPosition(null, !1);
|
|
1147
1147
|
}
|
|
1148
1148
|
deselectRoute() {
|
|
1149
|
-
|
|
1149
|
+
O.routeStore.selectRoute(null), O.routeStore.setOnlyAccessible(!1);
|
|
1150
1150
|
}
|
|
1151
1151
|
reset() {
|
|
1152
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1152
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), O.uiState.kioskData && O.resetCameraFn) {
|
|
1153
1153
|
var e;
|
|
1154
|
-
(e =
|
|
1154
|
+
(e = O.resetCameraFn) == null || e.call(O);
|
|
1155
1155
|
} else this.fitBounds();
|
|
1156
1156
|
}
|
|
1157
1157
|
selectAccessibleRoute(e) {
|
|
1158
|
-
|
|
1158
|
+
O.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1159
1159
|
}
|
|
1160
1160
|
};
|
|
1161
1161
|
function Q(e) {
|
|
1162
|
-
return typeof e == "string" ?
|
|
1162
|
+
return typeof e == "string" ? P(e) : O.routeStore.getNearestBooth(e);
|
|
1163
1163
|
}
|
|
1164
1164
|
var hn = 0;
|
|
1165
1165
|
function $(e, t, n) {
|
|
1166
1166
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1167
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1168
|
-
|
|
1167
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), O.fp.disableRuntimeAlerts) return;
|
|
1168
|
+
O.uiState.setGlobalErrorMessage({
|
|
1169
1169
|
title: r,
|
|
1170
1170
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1171
1171
|
i,
|
|
@@ -1181,7 +1181,7 @@ function $(e, t, n) {
|
|
|
1181
1181
|
let o = 8e3;
|
|
1182
1182
|
hn = window.setTimeout(() => {
|
|
1183
1183
|
let e = async () => {
|
|
1184
|
-
|
|
1184
|
+
O.uiState.globalErrorMessages.length > 0 && (O.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1185
1185
|
};
|
|
1186
1186
|
e();
|
|
1187
1187
|
}, o);
|