@expofp/floorplan 3.17.0 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-BvHs209k.js → Button-D24xOa4I.js} +5 -5
- package/dist/browser/{CookieConsent-uGe-orOE.js → CookieConsent-BTzsoyoV.js} +7 -7
- package/dist/browser/{Debug-DM3Cnzjy.js → Debug-CqKhUi06.js} +7 -7
- package/dist/browser/{Demo-DIExdSw5.js → Demo-B3EOY0Xq.js} +9 -9
- package/dist/browser/{Free-C90eDy1u.js → Free-pY7M8m4h.js} +9 -9
- package/dist/browser/{Gallery-DseC1DGK.js → Gallery-A8cqqrTJ.js} +9 -9
- package/dist/browser/{GpsLoader-uaVrSMAP.js → GpsLoader-DpJhUdzw.js} +22 -22
- package/dist/browser/KioskStore-DICU_c9W.js +288 -0
- package/dist/browser/{MaplibreAdapter-CCIJmi3w.js → MaplibreAdapter-DDSPODNR.js} +2127 -2070
- package/dist/browser/{ModalContainer-DJALRumx.js → ModalContainer-DnwGQgDt.js} +10 -10
- package/dist/browser/{PermissionNotice-Ck0m5tkz.js → PermissionNotice-Gw1lUPnc.js} +6 -6
- package/dist/browser/{SetKioskMode-BAlK8FJQ.js → SetKioskMode-mh3piul9.js} +11 -11
- package/dist/browser/{ShowKiosk-D1qMukNo.js → ShowKiosk-zkF-CXr8.js} +12 -12
- package/dist/browser/{TouchHand-DJKOFZCg.js → TouchHand-DWec6Hd2.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-DfKgKmA-.js → ViewerMenuPanel-C_wp1AsD.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-G4LjvH4q.js → add-debug-secret-listener-DVLr6HP8.js} +1 -1
- package/dist/browser/{adopt-global-settings-BmgJScKv.js → adopt-global-settings-Btj0VnLn.js} +9 -9
- package/dist/browser/{boolean-editor-P87LiphM.js → boolean-editor-BpIQdba3.js} +9 -9
- package/dist/browser/{bootIntercom-DtSpojcT.js → bootIntercom-DSg-Cxkq.js} +2 -2
- package/dist/browser/{booth-by-xy-DgltL0jn.js → booth-by-xy-BvNNTs6Q.js} +429 -376
- package/dist/browser/bundle.json +68 -65
- package/dist/browser/{classnames-D-Qg-3tl.js → classnames-CFZOol_A.js} +2 -2
- package/dist/browser/{client-Bzcq41f0.js → client-BSrj7kzz.js} +4 -4
- package/dist/browser/{components-Bv7sEfN0.js → components-6Db-nRo5.js} +1544 -1540
- package/dist/browser/{debug-overlay-B6eWMym4.js → debug-overlay-Bt6DNp-8.js} +10 -10
- package/dist/browser/{debug-ui-CmcCYtr0.js → debug-ui-X9kyhrgx.js} +6 -6
- package/dist/browser/{dist-BbIPnlzY.js → dist-CSjEqv2k.js} +3 -3
- package/dist/browser/{dist-BsMb6HPT.js → dist-H1U2_uEE.js} +5 -5
- package/dist/browser/{dist-BX0nA41K.js → dist-HS_i2V3o.js} +6 -6
- package/dist/browser/{efp-debug-init-BRktPQXJ.js → efp-debug-init-D0_xHeMm.js} +3 -3
- package/dist/browser/{enum-editor-BHa21MHI.js → enum-editor-Y3eY0GZN.js} +4 -4
- package/dist/browser/{es5-C4TOotvl.js → es5-Bnh-FuEf.js} +2 -2
- package/dist/browser/{event-not-found-5FiUS2L1.js → event-not-found-DaBAYGFy.js} +1 -1
- package/dist/browser/{exports-DE-f0obs.js → exports-pRH9fRPj.js} +1 -1
- package/dist/browser/{favicon-B1qr1OYc.js → favicon-eVAPrhqR.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CdOGnxGU.js → fetch-retry.umd-CU86oApr.js} +2 -2
- package/dist/browser/{flex-OjTlgVl3.js → flex-CBHNyrZ4.js} +5 -5
- package/dist/browser/{floorplan.loader-DZfgXzTQ.js → floorplan.loader-C2Uhu9rp.js} +10 -10
- package/dist/browser/{floorplan.ready-D4YwQEXj.js → floorplan.ready-D1uAmP_v.js} +161 -161
- package/dist/browser/{fuse-C28vZbTE.js → fuse-N8kU4K-S.js} +2 -2
- package/dist/browser/{i18n-BsYXLDK5.js → i18n-BtP9mFz3.js} +13 -8
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-DqUrH37c.js → index.module-BsJ6W9of.js} +4 -4
- package/dist/browser/integrateKiosk-3pSiw3dQ.js +33 -0
- package/dist/browser/{is-webview-CZP7j8cz.js → is-webview-Cta8T4n3.js} +1 -1
- package/dist/browser/{jsx-runtime--6my_WCj.js → jsx-runtime-BEbKJk0I.js} +2 -2
- package/dist/browser/kiosk-record-CqwMLWxV.js +18 -0
- package/dist/browser/{lib-YBUjKSJT.js → lib-I9l3N_qn.js} +3 -3
- package/dist/browser/{loadImage-jxJkKG3w.js → loadImage-Dss1EbV-.js} +4 -4
- package/dist/browser/{logDeviceInfo-COuAthf5.js → logDeviceInfo-C71JR2gm.js} +9 -9
- package/dist/browser/{main-ffAOHstq.js → main-CfBwT8A1.js} +1 -1
- package/dist/browser/{mobx-BaMKXcrS.js → mobx-BczBqzzL.js} +4 -4
- package/dist/browser/{optional-boolean-editor-B60pTwsX.js → optional-boolean-editor-DzQfvreW.js} +3 -3
- package/dist/browser/{optional-enum-editor-iqX384jX.js → optional-enum-editor-CLMliNto.js} +4 -4
- package/dist/browser/{optional-string-editor-CyROCUHO.js → optional-string-editor-_KGdUVEY.js} +4 -4
- package/dist/browser/{particles.min-DVNuNdIF.js → particles.min-B1MXziWd.js} +2 -2
- package/dist/browser/{react-BCe3bV8J.js → react-DGnrgmGu.js} +2 -2
- package/dist/browser/{react-dom-CN00JDn_.js → react-dom-Cw00D2pA.js} +3 -3
- package/dist/browser/{rolldown-runtime-k6cAZhal.js → rolldown-runtime-BwZ60izJ.js} +1 -1
- package/dist/browser/{select-BGQoI7LX.js → select-D1YJPbva.js} +10 -10
- package/dist/browser/{settings-BJy-4Ynk.js → settings-Bi32JyQ7.js} +2 -2
- package/dist/browser/{settings-item-OZTob0if.js → settings-item-SFeXQJg_.js} +6 -6
- package/dist/browser/{store--s4Hqnvn.js → store-D3AM4bNd.js} +24 -15
- package/dist/browser/{string-editor-PZ1g-Xj9.js → string-editor-CDi_Yy04.js} +4 -4
- package/dist/browser/{text-field-BnEH_wLE.js → text-field-BtEculxh.js} +5 -5
- package/dist/browser/{theme-HBJ7wWWR.js → theme-DDvtl3pp.js} +8 -8
- package/dist/browser/{ui-3KmVe3Bv.js → ui-xJEwvFPJ.js} +8 -8
- package/dist/browser/{useRenderTarget-DJqfltMZ.js → useRenderTarget-Cswo9eRB.js} +4 -4
- package/dist/esm/components/Kiosk/KioskStore.d.ts +9 -0
- package/dist/esm/components/Kiosk/KioskStore.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +18 -14
- package/dist/esm/components/Kiosk/integrateKiosk.d.ts +1 -1
- package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
- package/dist/esm/components/Kiosk/kiosk-record.d.ts +19 -0
- package/dist/esm/components/Kiosk/kiosk-record.js +1 -0
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-all.d.ts +6 -3
- package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +8 -4
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
- package/dist/esm/components/Maplibre/useKioskIdleEvents.d.ts +18 -0
- package/dist/esm/components/Maplibre/useKioskIdleEvents.js +1 -0
- package/dist/esm/store/MaplibreStore.d.ts +47 -0
- package/dist/esm/store/MaplibreStore.js +1 -1
- package/package.json +8 -8
- package/dist/browser/KioskStore-BG94IdLy.js +0 -241
- package/dist/browser/integrateKiosk-BEXKHkvI.js +0 -28
|
@@ -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.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.18.1" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e89a7440-3722-4b5c-bfbe-49aa46ad6184", e._sentryDebugIdIdentifier = "sentry-dbid-e89a7440-3722-4b5c-bfbe-49aa46ad6184");
|
|
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 { At as c, C as l, Ct as u, Dt as d, Et as f, G as ee, H as te, Mt as p, Nt as m, Ot as ne, Q as h, St as re, Tt as ie, U as ae, V as oe, Y as se, _t as ce, bt as le, ct as g, dt as ue, f as de, gt as fe, ht as pe, jt as me, kt as he, l as _, mt as ge, n as _e, nt as ve, o as ye, ot as be, pt as xe, r as Se, st as Ce, tt as we, ut as Te, v as Ee, vt as De, wt as Oe, xt as ke, y as Ae, yt as je } from "./i18n-
|
|
12
|
-
import { s as Me } from "./efp-debug-init-
|
|
13
|
-
import { t as Ne } from "./react-
|
|
14
|
-
import { t as Pe } from "./jsx-runtime
|
|
15
|
-
import { r as v } from "./loadImage-
|
|
16
|
-
import { C as y, D as Fe, Q as Ie, ht as b, i as Le, n as Re, w as ze } from "./exports-
|
|
17
|
-
import { t as Be } from "./client-
|
|
18
|
-
import { C as x, F as S, H as C, K as w, M as Ve, P as He, S as T, V as
|
|
19
|
-
import { n as ot, t as st } from "./integrateKiosk-
|
|
20
|
-
import { n as ct, t as lt } from "./components-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-BwZ60izJ.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-C2Uhu9rp.js";
|
|
11
|
+
import { At as c, C as l, Ct as u, Dt as d, Et as f, G as ee, H as te, Mt as p, Nt as m, Ot as ne, Q as h, St as re, Tt as ie, U as ae, V as oe, Y as se, _t as ce, bt as le, ct as g, dt as ue, f as de, gt as fe, ht as pe, jt as me, kt as he, l as _, mt as ge, n as _e, nt as ve, o as ye, ot as be, pt as xe, r as Se, st as Ce, tt as we, ut as Te, v as Ee, vt as De, wt as Oe, xt as ke, y as Ae, yt as je } from "./i18n-BtP9mFz3.js";
|
|
12
|
+
import { s as Me } from "./efp-debug-init-D0_xHeMm.js";
|
|
13
|
+
import { t as Ne } from "./react-DGnrgmGu.js";
|
|
14
|
+
import { t as Pe } from "./jsx-runtime-BEbKJk0I.js";
|
|
15
|
+
import { r as v } from "./loadImage-Dss1EbV-.js";
|
|
16
|
+
import { C as y, D as Fe, Q as Ie, ht as b, i as Le, n as Re, w as ze } from "./exports-pRH9fRPj.js";
|
|
17
|
+
import { t as Be } from "./client-BSrj7kzz.js";
|
|
18
|
+
import { C as x, F as S, H as C, K as w, M as Ve, P as He, Qt as Ue, S as T, V as We, W as Ge, X as Ke, Yt as E, Z as qe, _n as Je, at as Ye, b as Xe, c as D, ct as Ze, dt as Qe, ft as $e, g as et, it as O, lt as k, on as A, ot as tt, q as nt, s as j, st as rt, un as M, x as it, y as at, z as N } from "./store-D3AM4bNd.js";
|
|
19
|
+
import { n as ot, t as st } from "./integrateKiosk-3pSiw3dQ.js";
|
|
20
|
+
import { n as ct, t as lt } from "./components-6Db-nRo5.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 ut(e = {}) {
|
|
23
23
|
let r = n.document, i = (r == null ? void 0 : r.head) || (r == null ? void 0 : r.body);
|
|
@@ -134,7 +134,7 @@ var mt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, F = {
|
|
|
134
134
|
}) : e;
|
|
135
135
|
return P.isValidElement(r) ? r : (e && mt && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
136
|
}
|
|
137
|
-
}, gt = /* @__PURE__ */ e(Me(), 1), _t = Be(), vt =
|
|
137
|
+
}, gt = /* @__PURE__ */ e(Me(), 1), _t = Be(), vt = $e();
|
|
138
138
|
function yt(e) {
|
|
139
139
|
var t;
|
|
140
140
|
let n = new URLSearchParams(window.location.search).get(oe), r = _ ? window.localStorage.getItem(oe) : null, i = n == null ? r : n;
|
|
@@ -267,7 +267,7 @@ var Lt = /* @__PURE__ */ R({
|
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
269
|
function Ht(e) {
|
|
270
|
-
let t =
|
|
270
|
+
let t = et(e);
|
|
271
271
|
Object.values(t).length && (st(t, !1), ot(t));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
@@ -306,7 +306,7 @@ function Kt(e, t) {
|
|
|
306
306
|
//#region src/services/url-dispatch.ts
|
|
307
307
|
var V = !1;
|
|
308
308
|
function qt() {
|
|
309
|
-
rn(m()), l(() =>
|
|
309
|
+
rn(m()), l(() => j.layerStore.layersLoaded, () => {
|
|
310
310
|
let e = m().camera;
|
|
311
311
|
Object.keys(e).length && G(B(e));
|
|
312
312
|
let t = m().visibility;
|
|
@@ -317,29 +317,29 @@ function Jt(e) {
|
|
|
317
317
|
rt({
|
|
318
318
|
offHistory: e,
|
|
319
319
|
onNavigate: U
|
|
320
|
-
}), $t(), H(), l(() =>
|
|
321
|
-
|
|
320
|
+
}), $t(), H(), l(() => j.layerStore.layersLoaded, () => {
|
|
321
|
+
j.urlFilterManager && !j.urlFilterManager.isInitialized && j.urlFilterManager.initialize(), U(), de(W), de(ln), D.viewerMode && (D.menu = !0);
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
function Yt(e = "") {
|
|
325
|
-
|
|
325
|
+
k("?" + g(e.toString())), j.layerStore.layersLoaded ? Xt(e) : (H(), l(() => j.layerStore.layersLoaded, () => Xt(e)));
|
|
326
326
|
}
|
|
327
327
|
function Xt(e) {
|
|
328
328
|
var t;
|
|
329
329
|
let n = "?" + g(e), r = an(n);
|
|
330
|
-
rn(r), r.consent &&
|
|
330
|
+
rn(r), r.consent && nt(r.consent), r.camera && Object.keys(r.camera).length && G(B(r.camera)), r.visibility && Object.keys(r.visibility).length && D.setVisibility(r.visibility), $t(), U();
|
|
331
331
|
let i = [...(t = r.intents) == null ? [] : t, ...we(n).intents];
|
|
332
|
-
i.length && o(
|
|
332
|
+
i.length && o(j.fp, i);
|
|
333
333
|
}
|
|
334
334
|
function H() {
|
|
335
|
-
let e =
|
|
335
|
+
let e = O();
|
|
336
336
|
return ct(e.length > 1 ? g(e.substring(1)) : "");
|
|
337
337
|
}
|
|
338
338
|
function U() {
|
|
339
339
|
V = !0;
|
|
340
340
|
try {
|
|
341
341
|
Ht(new URLSearchParams(g(window.location.search)));
|
|
342
|
-
let { primary: e, oneShots: t } = be(
|
|
342
|
+
let { primary: e, oneShots: t } = be(O()), n = t.find((e) => e.type === "camera");
|
|
343
343
|
if (n) {
|
|
344
344
|
let e = n.roll;
|
|
345
345
|
G({
|
|
@@ -355,7 +355,7 @@ function U() {
|
|
|
355
355
|
ln(), W();
|
|
356
356
|
}
|
|
357
357
|
function Zt(e) {
|
|
358
|
-
let t =
|
|
358
|
+
let t = j.fp;
|
|
359
359
|
switch (e.type) {
|
|
360
360
|
case "kiosk":
|
|
361
361
|
e.enabled === !0 ? D.kiosk = !0 : e.enabled === !1 && (D.kiosk = !1, D.resetUIScale());
|
|
@@ -375,16 +375,16 @@ function Zt(e) {
|
|
|
375
375
|
return;
|
|
376
376
|
case "route":
|
|
377
377
|
var n, r;
|
|
378
|
-
|
|
378
|
+
j.routeStore.setOnlyAccessible(e.accessible), j.routeStore.selectRoute(it((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), j.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && j.uiState.setRouteTitle(e.title);
|
|
379
379
|
return;
|
|
380
380
|
case "language":
|
|
381
381
|
Se(e.langId) && ye(e.langId);
|
|
382
382
|
return;
|
|
383
383
|
case "printPdf":
|
|
384
|
-
|
|
384
|
+
j.uiState.printingPdf = !0;
|
|
385
385
|
return;
|
|
386
386
|
case "visibility":
|
|
387
|
-
|
|
387
|
+
j.uiState.setVisibility(e.hidden.reduce((e, t) => ({
|
|
388
388
|
...e,
|
|
389
389
|
[t]: !1
|
|
390
390
|
}), {}));
|
|
@@ -410,27 +410,27 @@ function Zt(e) {
|
|
|
410
410
|
function Qt(e) {
|
|
411
411
|
let { pathwayId: t, boothIds: n, exhibitorIds: r, tourId: i } = e;
|
|
412
412
|
if (i) {
|
|
413
|
-
let e =
|
|
413
|
+
let e = j.toursStore.getTourById(i);
|
|
414
414
|
e && Ae(() => {
|
|
415
415
|
var t;
|
|
416
|
-
|
|
416
|
+
j.uiState.setTourTitle(e.name), j.uiState.setTourDescription((t = e.description) == null ? "" : t), j.uiState.setIsMultiPointTour(!0), j.uiState.setMultiPointTourList(e.id);
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
|
-
let a =
|
|
420
|
-
if (
|
|
419
|
+
let a = j.boothStore.booths.filter((e) => n.includes(e.externalId)), o = j.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), s = [...a, ...o];
|
|
420
|
+
if (Ue()) {
|
|
421
421
|
let e = Gt(s.map((e) => e.layer.name));
|
|
422
|
-
e &&
|
|
422
|
+
e && j.fp.activateFloor({ name: e });
|
|
423
423
|
}
|
|
424
|
-
(n.length > 0 || r.length > 0) &&
|
|
425
|
-
|
|
424
|
+
(n.length > 0 || r.length > 0) && j.fp.highlightEntities([...n, ...r]), j.layerStore.showPathWay(t), s.length > 0 && Ae(() => {
|
|
425
|
+
j.uiState.moveToRect = M.fromUnion(...s.map((e) => e.rect).filter(Boolean)), j.uiState.rollReset = !0;
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
function $t() {
|
|
429
|
-
let e =
|
|
429
|
+
let e = O(), { oneShots: t } = be(e);
|
|
430
430
|
for (let e of t) en(e);
|
|
431
|
-
e.startsWith("?preview=") &&
|
|
432
|
-
let n =
|
|
433
|
-
n !== null &&
|
|
431
|
+
e.startsWith("?preview=") && k("?"), O().includes("copy_exh") && k("?");
|
|
432
|
+
let n = We(O());
|
|
433
|
+
n !== null && k("?" + n), D.previewExhibitor && k("?" + D.previewExhibitor.slug), nn();
|
|
434
434
|
}
|
|
435
435
|
function en(e) {
|
|
436
436
|
switch (e.type) {
|
|
@@ -439,8 +439,8 @@ function en(e) {
|
|
|
439
439
|
return;
|
|
440
440
|
case "blueDot": {
|
|
441
441
|
var t, n;
|
|
442
|
-
let r = new at(e.x, e.y, (t =
|
|
443
|
-
l(() =>
|
|
442
|
+
let r = new at(e.x, e.y, (t = j.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
443
|
+
l(() => j.layerStore.layersLoaded, () => j.routeStore.selectCurrentPosition(r, !0, 1));
|
|
444
444
|
return;
|
|
445
445
|
}
|
|
446
446
|
case "viewerMode":
|
|
@@ -450,46 +450,46 @@ function en(e) {
|
|
|
450
450
|
_ && (e.enabled ? localStorage.setItem(se, "true") : (localStorage.removeItem(se), localStorage.removeItem(ae)));
|
|
451
451
|
return;
|
|
452
452
|
case "uiScale":
|
|
453
|
-
e.scale === null ? v.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) :
|
|
453
|
+
e.scale === null ? v.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : j.uiState.setUIScale(e.scale, !0);
|
|
454
454
|
return;
|
|
455
455
|
case "resetUiScale":
|
|
456
|
-
|
|
456
|
+
j.uiState.resetUIScale();
|
|
457
457
|
return;
|
|
458
458
|
case "legacyBookmarks": {
|
|
459
|
-
let t = e.appendExhibitorId === null ? void 0 :
|
|
460
|
-
|
|
459
|
+
let t = e.appendExhibitorId === null ? void 0 : j.exhibitorStore.exhibitorById.get(e.appendExhibitorId);
|
|
460
|
+
k(t ? "?" + t.slug : "?bookmarks");
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
function tn(e) {
|
|
466
|
-
|
|
466
|
+
tt(), e ? (D.heatmapYah = !0, D.monochrome = !0, D.hideLogoInBooth = !0, D.hideHeaderLogo = !0, D.disableBookmarked = !0) : D.heatmap = !0;
|
|
467
467
|
}
|
|
468
468
|
function nn() {
|
|
469
|
-
let e = Kt(
|
|
470
|
-
let t =
|
|
469
|
+
let e = Kt(O(), (e) => {
|
|
470
|
+
let t = j.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
471
471
|
return t == null ? void 0 : t.name;
|
|
472
472
|
});
|
|
473
|
-
e !== null &&
|
|
473
|
+
e !== null && k(e);
|
|
474
474
|
}
|
|
475
475
|
function rn(e) {
|
|
476
|
-
e.noOverlay !== void 0 && (D.hideOverlay = e.noOverlay), e.monochrome && (D.monochrome = !0), e.hideHeaderLogo && (D.hideHeaderLogo = !0), e.hideLogoInBooth && (D.hideLogoInBooth = !0), e.disableFeatured &&
|
|
476
|
+
e.noOverlay !== void 0 && (D.hideOverlay = e.noOverlay), e.monochrome && (D.monochrome = !0), e.hideHeaderLogo && (D.hideHeaderLogo = !0), e.hideLogoInBooth && (D.hideLogoInBooth = !0), e.disableFeatured && j.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (D.disableBookmarked = !0), e.disableGps && j.routeStore.setGpsTrackingEnabled(!1), e.heatmap && r(e.heatmap) && tn(e.heatmap.variant === "yah");
|
|
477
477
|
}
|
|
478
478
|
function an(e) {
|
|
479
479
|
return ve(Te, e).value;
|
|
480
480
|
}
|
|
481
481
|
var on = null, sn = null, cn = null;
|
|
482
482
|
function ln() {
|
|
483
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } = un(), i =
|
|
483
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = un(), i = j.urlFilterManager.filterSearch();
|
|
484
484
|
if (V) return;
|
|
485
485
|
let a = Ce(e) || i;
|
|
486
|
-
|
|
486
|
+
O() !== a && (t !== on || n !== sn || r !== cn ? Ze(a) : k(a), on = t, sn = n, cn = r);
|
|
487
487
|
}
|
|
488
488
|
function un() {
|
|
489
489
|
let e = D.selectedExhibitor, t = D.selectedBooth, n = D.selectedEventItem, r = D.selectedRoute, i = D.selectedSpeaker, a = D.setKioskModeEnabled, o = D.list, s;
|
|
490
490
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
491
491
|
var c;
|
|
492
|
-
let e =
|
|
492
|
+
let e = j.routePlannerStore;
|
|
493
493
|
s = {
|
|
494
494
|
type: "planner",
|
|
495
495
|
fromBookmarks: e.source === "bookmarks",
|
|
@@ -500,9 +500,9 @@ function un() {
|
|
|
500
500
|
var l;
|
|
501
501
|
s = {
|
|
502
502
|
type: "route",
|
|
503
|
-
to: r.to instanceof
|
|
504
|
-
from: r.from instanceof
|
|
505
|
-
accessible:
|
|
503
|
+
to: r.to instanceof E ? r.to.slug : void 0,
|
|
504
|
+
from: r.from instanceof E ? r.from.slug : void 0,
|
|
505
|
+
accessible: j.routeStore.onlyAccessible,
|
|
506
506
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
507
507
|
};
|
|
508
508
|
} else if (e) s = {
|
|
@@ -572,13 +572,13 @@ function un() {
|
|
|
572
572
|
}
|
|
573
573
|
function W() {
|
|
574
574
|
let e = D.selectedExhibitor, t = D.selectedEventItem, n = D.selectedSpeaker, r = "";
|
|
575
|
-
e ? r = e.name : t ? r = t.name : n ? r = n.name : D.list.type === "search" && D.list.text ? r = "`" + (D.list.text || "") + "`" : D.list.type === "multi-point-tour" && D.tourTitle && (r = D.tourTitle), r.length && (r += " – "), r +=
|
|
575
|
+
e ? r = e.name : t ? r = t.name : n ? r = n.name : D.list.type === "search" && D.list.text ? r = "`" + (D.list.text || "") + "`" : D.list.type === "multi-point-tour" && D.tourTitle && (r = D.tourTitle), r.length && (r += " – "), r += A.title, A.subtitle && (r += " – " + A.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
|
|
576
576
|
}
|
|
577
577
|
function G(e) {
|
|
578
578
|
try {
|
|
579
579
|
if (D.setMapSettings(e), e.z) {
|
|
580
|
-
let t =
|
|
581
|
-
t &&
|
|
580
|
+
let t = j.layerStore.layers.find((t) => t.name === e.z);
|
|
581
|
+
t && j.layerStore.updateVisibility(t, !0);
|
|
582
582
|
}
|
|
583
583
|
} catch (e) {
|
|
584
584
|
console.error("Failed to process map settings.", e);
|
|
@@ -678,26 +678,26 @@ var pn = class extends s {
|
|
|
678
678
|
super(...e), this.root = void 0;
|
|
679
679
|
}
|
|
680
680
|
init() {
|
|
681
|
-
qt(), this.ignoreQuery || Jt(this.offHistory),
|
|
681
|
+
qt(), this.ignoreQuery || Jt(this.offHistory), Ke("load"), j.fp = this, nt(this.consent), w(C.Load, ""), this.root = (0, _t.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(ht, { children: /* @__PURE__ */ (0, X.jsx)(lt, {
|
|
682
682
|
offHistory: this.offHistory,
|
|
683
683
|
consent: this.consent
|
|
684
|
-
}) })), w(C.Rendered, ""), Ee(() =>
|
|
685
|
-
if (this.resolveReady(), !
|
|
684
|
+
}) })), w(C.Rendered, ""), Ee(() => j.layerStore.layersLoaded, () => {
|
|
685
|
+
if (this.resolveReady(), !j.initialized) {
|
|
686
686
|
var e;
|
|
687
687
|
(e = this.onInit) == null || e.call(this, this);
|
|
688
688
|
}
|
|
689
|
-
|
|
689
|
+
j.initialized = !0;
|
|
690
690
|
});
|
|
691
|
-
let e = Tt(
|
|
692
|
-
e && import("./bootIntercom-
|
|
691
|
+
let e = Tt(A);
|
|
692
|
+
e && import("./bootIntercom-DSg-Cxkq.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
693
693
|
}
|
|
694
694
|
selectBooth(e) {
|
|
695
695
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
696
696
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
|
-
let t =
|
|
700
|
-
|
|
699
|
+
let t = j.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
700
|
+
j.selectBooth(t);
|
|
701
701
|
}
|
|
702
702
|
selectExhibitor(e) {
|
|
703
703
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -705,13 +705,13 @@ var pn = class extends s {
|
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
707
|
if (!(e != null && e.length)) {
|
|
708
|
-
|
|
708
|
+
j.uiState.menu = !1, j.searchStore.resetSearchBox(), j.uiState.details = null;
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
711
|
-
let t =
|
|
711
|
+
let t = j.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
712
712
|
if (!(t != null && t.length)) return;
|
|
713
713
|
if (typeof e == "string") {
|
|
714
|
-
|
|
714
|
+
j.selectExhibitor(t[0]), j.moveToList([t[0]]);
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
717
|
let n = t.flatMap((e) => e.booths.map((e) => e.layer)), { description: r } = n.reduce((e, t) => (e.freq[t.description] = (e.freq[t.description] || 0) + 1, e.freq[t.description] > e.maxCount && (e.maxCount = e.freq[t.description], e.mostFrequent = t), e), {
|
|
@@ -719,25 +719,25 @@ var pn = class extends s {
|
|
|
719
719
|
mostFrequent: n[0],
|
|
720
720
|
maxCount: 0
|
|
721
721
|
}).mostFrequent;
|
|
722
|
-
|
|
722
|
+
j.layerStore.updateVisibility(r, !0), j.uiState.menu = !1, j.searchStore.resetSearchBox(), j.uiState.details = null, j.uiState.list = {
|
|
723
723
|
type: "filter",
|
|
724
724
|
items: t,
|
|
725
725
|
query: {
|
|
726
726
|
key: "exhibitors",
|
|
727
727
|
value: t.map((e) => e.externalId).join(",")
|
|
728
728
|
}
|
|
729
|
-
},
|
|
729
|
+
}, j.moveToList();
|
|
730
730
|
}
|
|
731
731
|
highlightExhibitors(e) {
|
|
732
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
732
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), j.boothStore.highlightedByExternalIds = [], j.exhibitorStore.highlightedByExternalIds = [...e];
|
|
733
733
|
}
|
|
734
734
|
highlightBooths(e) {
|
|
735
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
735
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), j.exhibitorStore.highlightedByExternalIds = [], j.boothStore.highlightedByExternalIds = [...e];
|
|
736
736
|
}
|
|
737
737
|
highlightEntities(e) {
|
|
738
738
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
739
739
|
let { boothExternalIds: t, exhibitorExternalIds: n } = x(e);
|
|
740
|
-
|
|
740
|
+
j.boothStore.highlightedByExternalIds = [...t], j.exhibitorStore.highlightedByExternalIds = [...n];
|
|
741
741
|
}
|
|
742
742
|
selectRoute(e, t) {
|
|
743
743
|
if (Array.isArray(e)) {
|
|
@@ -747,10 +747,10 @@ var pn = class extends s {
|
|
|
747
747
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
|
-
|
|
750
|
+
j.routeStore.selectRoute(new Xe(Q(n), Q(r), t.map(Q)));
|
|
751
751
|
return;
|
|
752
752
|
}
|
|
753
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
753
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), j.routeStore.selectRoute(new Xe(Q(e), Q(t)));
|
|
754
754
|
}
|
|
755
755
|
getOptimizedRoutes(e) {
|
|
756
756
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -771,11 +771,11 @@ var pn = class extends s {
|
|
|
771
771
|
selectCurrentPosition(e, t, n) {
|
|
772
772
|
var r;
|
|
773
773
|
let i = S(e.x) && S(e.y), a = S(e.lng) && S(e.lat);
|
|
774
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
774
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), j.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
775
775
|
}
|
|
776
776
|
setBookmarks(e) {
|
|
777
777
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
778
|
-
let t =
|
|
778
|
+
let t = j.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
779
779
|
t && (t.bookmarked = e.bookmarked);
|
|
780
780
|
});
|
|
781
781
|
}
|
|
@@ -794,29 +794,29 @@ var pn = class extends s {
|
|
|
794
794
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
795
795
|
return;
|
|
796
796
|
}
|
|
797
|
-
let r =
|
|
797
|
+
let r = Je("bookmarked"), i = {
|
|
798
798
|
exhibitor: {
|
|
799
799
|
existingIds: new Set(r.exhibitors || []),
|
|
800
|
-
finder: (e) =>
|
|
801
|
-
replacer: (e) =>
|
|
800
|
+
finder: (e) => j.exhibitorStore.findExhibitor(e),
|
|
801
|
+
replacer: (e) => j.exhibitorStore.replaceBookmarked(e)
|
|
802
802
|
},
|
|
803
803
|
event: {
|
|
804
804
|
existingIds: new Set(r.events || []),
|
|
805
|
-
finder: (e) =>
|
|
806
|
-
replacer: (e) =>
|
|
805
|
+
finder: (e) => j.eventStore.findByNameOrSlug(e),
|
|
806
|
+
replacer: (e) => j.eventStore.replaceBookmarked(e)
|
|
807
807
|
},
|
|
808
808
|
speaker: {
|
|
809
809
|
existingIds: new Set(r.speakers || []),
|
|
810
|
-
finder: (e) =>
|
|
811
|
-
replacer: (e) =>
|
|
810
|
+
finder: (e) => j.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
811
|
+
replacer: (e) => j.speakerStore.replaceBookmarked(e)
|
|
812
812
|
},
|
|
813
813
|
booth: {
|
|
814
814
|
existingIds: new Set(r.booths || []),
|
|
815
815
|
finder: (e) => {
|
|
816
|
-
let t =
|
|
816
|
+
let t = j.boothStore.findBooth(e);
|
|
817
817
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
818
818
|
},
|
|
819
|
-
replacer: (e) =>
|
|
819
|
+
replacer: (e) => j.boothStore.replaceBookmarked(e)
|
|
820
820
|
}
|
|
821
821
|
};
|
|
822
822
|
e.forEach((e) => {
|
|
@@ -836,16 +836,16 @@ var pn = class extends s {
|
|
|
836
836
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
|
-
let r =
|
|
839
|
+
let r = Je("visited"), i = {
|
|
840
840
|
exhibitor: {
|
|
841
841
|
existingIds: new Set(r.exhibitors || []),
|
|
842
|
-
finder: (e) =>
|
|
843
|
-
replacer: (e) =>
|
|
842
|
+
finder: (e) => j.exhibitorStore.findExhibitor(e),
|
|
843
|
+
replacer: (e) => j.exhibitorStore.replaceVisited(e)
|
|
844
844
|
},
|
|
845
845
|
event: {
|
|
846
846
|
existingIds: new Set(r.events || []),
|
|
847
|
-
finder: (e) =>
|
|
848
|
-
replacer: (e) =>
|
|
847
|
+
finder: (e) => j.eventStore.findByNameOrSlug(e),
|
|
848
|
+
replacer: (e) => j.eventStore.replaceVisited(e)
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
851
|
e.forEach((e) => {
|
|
@@ -860,94 +860,94 @@ var pn = class extends s {
|
|
|
860
860
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
861
861
|
return;
|
|
862
862
|
}
|
|
863
|
-
|
|
863
|
+
j.routeStore.setMarkers(e);
|
|
864
864
|
}
|
|
865
865
|
selectMarker(e, t = !0) {
|
|
866
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
866
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), j.routeStore.selectMarker(e, t);
|
|
867
867
|
}
|
|
868
868
|
drawCircles(e) {
|
|
869
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
869
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), j.uiState.debugCircles = e;
|
|
870
870
|
}
|
|
871
871
|
checkRoutes() {
|
|
872
|
-
|
|
872
|
+
j.routeStore.checkRoutes();
|
|
873
873
|
}
|
|
874
874
|
updateLayerVisibility(e, t) {
|
|
875
|
-
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"),
|
|
875
|
+
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"), j.layerStore.updateVisibility(e, t);
|
|
876
876
|
}
|
|
877
877
|
getCenterCoordinates() {
|
|
878
|
-
return
|
|
878
|
+
return j.fp.getCenterCoordinates();
|
|
879
879
|
}
|
|
880
880
|
exhibitorsList() {
|
|
881
|
-
return
|
|
881
|
+
return j.exhibitorStore.exhibitors.map((e) => q(e));
|
|
882
882
|
}
|
|
883
883
|
boothsList() {
|
|
884
|
-
return
|
|
884
|
+
return j.boothStore.booths.map((e) => q(e));
|
|
885
885
|
}
|
|
886
886
|
categoriesList() {
|
|
887
|
-
return
|
|
887
|
+
return j.categoryStore.categories.map((e) => q(e));
|
|
888
888
|
}
|
|
889
889
|
selectCategory(e) {
|
|
890
890
|
if (e == null || typeof e != "string") {
|
|
891
|
-
|
|
891
|
+
j.searchStore.selectSearch();
|
|
892
892
|
return;
|
|
893
893
|
}
|
|
894
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
894
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = j.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
895
895
|
if (!n) {
|
|
896
896
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
897
897
|
return;
|
|
898
898
|
}
|
|
899
|
-
|
|
899
|
+
j.selectCategory(n);
|
|
900
900
|
}
|
|
901
901
|
select(e) {
|
|
902
902
|
if (typeof e != "string") {
|
|
903
903
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
904
904
|
return;
|
|
905
905
|
}
|
|
906
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
906
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = j.boothStore.booths.find((e) => {
|
|
907
907
|
var t, r, i;
|
|
908
908
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n || ((i = e.externalId) == null || (i = i.toLowerCase()) == null ? void 0 : i.replace(/\s+/g, "")) === n;
|
|
909
909
|
});
|
|
910
910
|
if (r) {
|
|
911
|
-
setTimeout(() =>
|
|
911
|
+
setTimeout(() => j.selectBooth(r), 250);
|
|
912
912
|
return;
|
|
913
913
|
}
|
|
914
|
-
let i =
|
|
914
|
+
let i = j.eventStore.eventItems.find((e) => {
|
|
915
915
|
var t, r;
|
|
916
916
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
917
917
|
});
|
|
918
918
|
if (i) {
|
|
919
|
-
|
|
919
|
+
j.selectEventItem(i, !0);
|
|
920
920
|
return;
|
|
921
921
|
}
|
|
922
|
-
let a =
|
|
922
|
+
let a = j.exhibitorStore.exhibitors.find((e) => {
|
|
923
923
|
var t, r;
|
|
924
924
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
925
925
|
});
|
|
926
926
|
if (a) {
|
|
927
|
-
setTimeout(() =>
|
|
927
|
+
setTimeout(() => j.clickExhibitor(a), 250);
|
|
928
928
|
return;
|
|
929
929
|
}
|
|
930
|
-
let o =
|
|
930
|
+
let o = j.categoryStore.categories.find((e) => e.slug === t);
|
|
931
931
|
if (o) {
|
|
932
|
-
|
|
932
|
+
j.selectCategory(o);
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
935
|
-
let s =
|
|
935
|
+
let s = j.speakerStore.findBySlug(t);
|
|
936
936
|
if (s) {
|
|
937
|
-
|
|
937
|
+
j.selectSpeaker(s, !0);
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
|
-
t.includes("heatmap=true") ||
|
|
940
|
+
t.includes("heatmap=true") || j.searchStore.selectSearch(t);
|
|
941
941
|
}
|
|
942
942
|
showList(e) {
|
|
943
943
|
let t = {
|
|
944
|
-
bookmarks: () =>
|
|
945
|
-
visited: () =>
|
|
946
|
-
sessions: () =>
|
|
947
|
-
exhibitors: () =>
|
|
948
|
-
speakers: () =>
|
|
949
|
-
tours: () =>
|
|
950
|
-
language: () =>
|
|
944
|
+
bookmarks: () => j.selectBookmarks(),
|
|
945
|
+
visited: () => j.selectVisited(),
|
|
946
|
+
sessions: () => j.selectSessions(),
|
|
947
|
+
exhibitors: () => j.selectExhibitors(),
|
|
948
|
+
speakers: () => j.selectSpeakers(),
|
|
949
|
+
tours: () => j.selectTours(),
|
|
950
|
+
language: () => j.selectLanguage()
|
|
951
951
|
}, n = t[e];
|
|
952
952
|
if (!n) {
|
|
953
953
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -960,8 +960,8 @@ var pn = class extends s {
|
|
|
960
960
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
961
961
|
return;
|
|
962
962
|
}
|
|
963
|
-
let t =
|
|
964
|
-
t ?
|
|
963
|
+
let t = j.toursStore.getTourById(e);
|
|
964
|
+
t ? j.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), j.selectTours());
|
|
965
965
|
}
|
|
966
966
|
openPlanner(e = {}) {
|
|
967
967
|
if (typeof e != "object" || !e) {
|
|
@@ -969,35 +969,35 @@ var pn = class extends s {
|
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
971
|
let t = e.from ? T(e.from) : null;
|
|
972
|
-
if (e.fromBookmarks)
|
|
972
|
+
if (e.fromBookmarks) j.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
973
973
|
else {
|
|
974
974
|
var n;
|
|
975
|
-
|
|
975
|
+
j.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
startBuildRoute() {
|
|
979
|
-
|
|
979
|
+
j.uiState.startBuildRoute();
|
|
980
980
|
}
|
|
981
981
|
applyParameters(e) {
|
|
982
982
|
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), Yt(e);
|
|
983
983
|
}
|
|
984
984
|
getVisibility() {
|
|
985
|
-
return
|
|
985
|
+
return j.uiState.visibility;
|
|
986
986
|
}
|
|
987
987
|
setVisibility(e) {
|
|
988
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
988
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), j.uiState.setVisibility(e);
|
|
989
989
|
}
|
|
990
990
|
findLocation() {
|
|
991
|
-
|
|
991
|
+
j.routeStore.findLocation();
|
|
992
992
|
}
|
|
993
993
|
zoomIn() {
|
|
994
|
-
|
|
994
|
+
j.uiState.zoomIn();
|
|
995
995
|
}
|
|
996
996
|
zoomOut() {
|
|
997
|
-
|
|
997
|
+
j.uiState.zoomOut();
|
|
998
998
|
}
|
|
999
999
|
switchView() {
|
|
1000
|
-
|
|
1000
|
+
j.maplibreStore.activateMaplibre();
|
|
1001
1001
|
}
|
|
1002
1002
|
setCamera(e) {
|
|
1003
1003
|
Z("setCamera called with camera=%O", e);
|
|
@@ -1006,10 +1006,10 @@ var pn = class extends s {
|
|
|
1006
1006
|
$("setCamera", t.error.message, "EFP001B00");
|
|
1007
1007
|
return;
|
|
1008
1008
|
}
|
|
1009
|
-
|
|
1009
|
+
j.uiState.setMapSettings(B(t.data));
|
|
1010
1010
|
}
|
|
1011
1011
|
getCamera() {
|
|
1012
|
-
return Ut(
|
|
1012
|
+
return Ut(j.uiState.mapSettings);
|
|
1013
1013
|
}
|
|
1014
1014
|
zoomTo(e, t) {
|
|
1015
1015
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
@@ -1037,15 +1037,15 @@ var pn = class extends s {
|
|
|
1037
1037
|
let i = [];
|
|
1038
1038
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1039
1039
|
let t;
|
|
1040
|
-
e.externalId ? t =
|
|
1040
|
+
e.externalId ? t = j.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = j.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1041
1041
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1042
1042
|
var t;
|
|
1043
1043
|
let n;
|
|
1044
|
-
e.externalId ? n =
|
|
1044
|
+
e.externalId ? n = j.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = j.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1045
1045
|
e.rect && i.push(e.rect);
|
|
1046
1046
|
});
|
|
1047
1047
|
}), i.length === 0) return;
|
|
1048
|
-
let a =
|
|
1048
|
+
let a = M.fromUnion(...i);
|
|
1049
1049
|
return {
|
|
1050
1050
|
leftTop: {
|
|
1051
1051
|
x: a.min.x,
|
|
@@ -1059,7 +1059,7 @@ var pn = class extends s {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
fitBounds(e, t) {
|
|
1061
1061
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1062
|
-
|
|
1062
|
+
j.uiState.fitBounds();
|
|
1063
1063
|
return;
|
|
1064
1064
|
}
|
|
1065
1065
|
let n = Rt.safeParse(e);
|
|
@@ -1072,14 +1072,14 @@ var pn = class extends s {
|
|
|
1072
1072
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
|
-
let i =
|
|
1075
|
+
let i = M.fromMinMax({
|
|
1076
1076
|
x: e.leftTop.x,
|
|
1077
1077
|
y: e.leftTop.y
|
|
1078
1078
|
}, {
|
|
1079
1079
|
x: e.rightBottom.x,
|
|
1080
1080
|
y: e.rightBottom.y
|
|
1081
1081
|
});
|
|
1082
|
-
|
|
1082
|
+
j.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1083
1083
|
}
|
|
1084
1084
|
getBoothRect(e) {
|
|
1085
1085
|
var t;
|
|
@@ -1111,16 +1111,16 @@ var pn = class extends s {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
unstable_destroy() {
|
|
1113
1113
|
let e = window.__efpElement.firstChild;
|
|
1114
|
-
dn(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", i),
|
|
1114
|
+
dn(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", i), j.maplibreStore.dispose(), Ye(), Qe(), Ge(), this.root.unmount(), e.remove();
|
|
1115
1115
|
}
|
|
1116
1116
|
search(e) {
|
|
1117
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1117
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), j.fuzzySearchEngineStore.loadEngine().then(() => (j.searchStore.selectSearch(e), j.uiState.fuzzySearchItems.map((e) => ({
|
|
1118
1118
|
item: q(e.item),
|
|
1119
1119
|
score: e.score
|
|
1120
1120
|
}))));
|
|
1121
1121
|
}
|
|
1122
1122
|
getFloors() {
|
|
1123
|
-
return
|
|
1123
|
+
return j.layerStore.floors.map((e) => ({
|
|
1124
1124
|
name: e.name,
|
|
1125
1125
|
shortName: e.shortName,
|
|
1126
1126
|
description: e.description,
|
|
@@ -1168,19 +1168,19 @@ var pn = class extends s {
|
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
1170
1170
|
showPathwayOnly(e, t) {
|
|
1171
|
-
this.activateFloor({ name: t }),
|
|
1172
|
-
let n =
|
|
1171
|
+
this.activateFloor({ name: t }), j.layerStore.showPathWay(e), j.uiState.setPathwayOnlyMode(!0);
|
|
1172
|
+
let n = j.layerStore.findLayer(e), r = j.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1173
1173
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1174
1174
|
var a;
|
|
1175
1175
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1176
|
-
|
|
1176
|
+
j.uiState.moveToRect = e.clone();
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
1179
|
hidePathways() {
|
|
1180
|
-
this.highlightBooths([]),
|
|
1180
|
+
this.highlightBooths([]), j.layerStore.hidePathways(), j.uiState.setPathwayOnlyMode(!1);
|
|
1181
1181
|
}
|
|
1182
1182
|
showSearch() {
|
|
1183
|
-
|
|
1183
|
+
j.selectSearch("");
|
|
1184
1184
|
}
|
|
1185
1185
|
changeLanguage(e) {
|
|
1186
1186
|
var t;
|
|
@@ -1192,35 +1192,35 @@ var pn = class extends s {
|
|
|
1192
1192
|
ye(n);
|
|
1193
1193
|
}
|
|
1194
1194
|
isGpsTrackingEnabled() {
|
|
1195
|
-
return
|
|
1195
|
+
return j.routeStore.gpsEnabled;
|
|
1196
1196
|
}
|
|
1197
1197
|
setGpsTrackingEnabled(e) {
|
|
1198
|
-
|
|
1198
|
+
j.routeStore.setGpsTrackingEnabled(e);
|
|
1199
1199
|
}
|
|
1200
1200
|
deselectCurrentPosition() {
|
|
1201
|
-
|
|
1201
|
+
j.routeStore.selectCurrentPosition(null, !1);
|
|
1202
1202
|
}
|
|
1203
1203
|
deselectRoute() {
|
|
1204
|
-
|
|
1204
|
+
j.routeStore.selectRoute(null), j.routeStore.setOnlyAccessible(!1);
|
|
1205
1205
|
}
|
|
1206
1206
|
reset() {
|
|
1207
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1207
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), j.uiState.kioskData && j.resetCameraFn) {
|
|
1208
1208
|
var e;
|
|
1209
|
-
(e =
|
|
1209
|
+
(e = j.resetCameraFn) == null || e.call(j);
|
|
1210
1210
|
} else this.fitBounds();
|
|
1211
1211
|
}
|
|
1212
1212
|
selectAccessibleRoute(e) {
|
|
1213
|
-
|
|
1213
|
+
j.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1214
1214
|
}
|
|
1215
1215
|
};
|
|
1216
1216
|
function Q(e) {
|
|
1217
|
-
return typeof e == "string" ? T(e) :
|
|
1217
|
+
return typeof e == "string" ? T(e) : j.routeStore.getNearestBooth(e);
|
|
1218
1218
|
}
|
|
1219
1219
|
var mn = 0;
|
|
1220
1220
|
function $(e, t, n) {
|
|
1221
1221
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1222
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1223
|
-
|
|
1222
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), j.fp.disableRuntimeAlerts) return;
|
|
1223
|
+
j.uiState.setGlobalErrorMessage({
|
|
1224
1224
|
title: r,
|
|
1225
1225
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1226
1226
|
i,
|
|
@@ -1236,7 +1236,7 @@ function $(e, t, n) {
|
|
|
1236
1236
|
let o = 8e3;
|
|
1237
1237
|
mn = window.setTimeout(() => {
|
|
1238
1238
|
let e = async () => {
|
|
1239
|
-
|
|
1239
|
+
j.uiState.globalErrorMessages.length > 0 && (j.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1240
1240
|
};
|
|
1241
1241
|
e();
|
|
1242
1242
|
}, o);
|