@expofp/floorplan 3.34.2 → 3.35.0
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-CNMjOvi_.js → Button-DfC_vCEY.js} +5 -5
- package/dist/browser/{CookieConsent-D41GkvnH.js → CookieConsent-zsJlyuvm.js} +7 -7
- package/dist/browser/{Debug-CmW7YX8I.js → Debug-DlxKJH4h.js} +7 -7
- package/dist/browser/{DebugTools-BiVg-I_r.js → DebugTools-DlmzS_VG.js} +45 -42
- package/dist/browser/{Demo-B4Cvydeo.js → Demo-Dvn0OVoH.js} +9 -9
- package/dist/browser/{Free-CjQjLOqF.js → Free-BlSArgWI.js} +9 -9
- package/dist/browser/{GalleryContainer-mw16bKBB.js → GalleryContainer-hIf9VfU3.js} +10 -10
- package/dist/browser/{GpsLoader-pVmQS4Cm.js → GpsLoader-BCwThbCM.js} +33 -33
- package/dist/browser/{KioskStore-sSfegCgB.js → KioskStore-CsXOhSMP.js} +9 -9
- package/dist/browser/{MaplibreAdapter-CdpX44KB.js → MaplibreAdapter-DWcvE2Ec.js} +921 -917
- package/dist/browser/{ModalContainer--UWO5EJt.js → ModalContainer-DxeKREfc.js} +10 -10
- package/dist/browser/{PermissionNotice-Dw32M81v.js → PermissionNotice-BxEbDltF.js} +6 -6
- package/dist/browser/{SetKioskMode-EltbU-EF.js → SetKioskMode-D3UABJpZ.js} +10 -10
- package/dist/browser/{ShowKiosk-BvGaVpGa.js → ShowKiosk-6mFmNpFm.js} +29 -29
- package/dist/browser/{ViewerMenuPanel-BEcomGU5.js → ViewerMenuPanel-BO_-7Y_i.js} +18 -18
- package/dist/browser/{add-debug-secret-listener-DzuQqBnc.js → add-debug-secret-listener-veloxngO.js} +1 -1
- package/dist/browser/{adopt-global-settings-BZ0kVMK5.js → adopt-global-settings-d5uyY5A6.js} +9 -9
- package/dist/browser/{boolean-editor-CEIoLj51.js → boolean-editor-gFxeiKz4.js} +9 -9
- package/dist/browser/{bootIntercom-Db9lsRTD.js → bootIntercom-C3QDF5oB.js} +2 -2
- package/dist/browser/bundle.json +69 -69
- package/dist/browser/{camera-events-02zSeTQ-.js → camera-events-C6Dmf2wR.js} +1 -1
- package/dist/browser/{classnames-CpaGYtKG.js → classnames-BS1IM9A-.js} +2 -2
- package/dist/browser/{client-hdZ-mqt7.js → client-ezZAHjfj.js} +5 -5
- package/dist/browser/{components-DwpPpajK.js → components-PA3hCLCa.js} +1814 -1818
- package/dist/browser/{debug-context-DB0NIlH9.js → debug-context-DiTR6Py6.js} +7 -7
- package/dist/browser/{debug-overlay-B4MTiAeZ.js → debug-overlay-DD5gUmO6.js} +10 -10
- package/dist/browser/{debug-ui-D4mq0ugA.js → debug-ui-CWBuocQN.js} +6 -6
- package/dist/browser/{dimming-BvAGMHKX.js → dimming-Ds9fAjfB.js} +311 -311
- package/dist/browser/{dist-GGfaJ3R1.js → dist-CQxqEb-6.js} +6 -6
- package/dist/browser/{dist-BjN1ZtXO.js → dist-D-q_r1-V.js} +5 -5
- package/dist/browser/{dist-DA_O1Tq9.js → dist-DBuzYqpa.js} +3 -3
- package/dist/browser/{efp-debug-init-DCZ0v67W.js → efp-debug-init-Co9uXMuX.js} +3 -3
- package/dist/browser/{enum-editor-D1zVwP8a.js → enum-editor-LWVu-JIK.js} +4 -4
- package/dist/browser/{es5-483Ipz8U.js → es5-DGb5TwpZ.js} +2 -2
- package/dist/browser/{event-not-found-DIS2DLhg.js → event-not-found-zFibfbER.js} +1 -1
- package/dist/browser/{exports-CNZZj_Q8.js → exports-B-6KjI9h.js} +1 -1
- package/dist/browser/{favicon-Bg6LMWEn.js → favicon-CWCPCNM-.js} +1 -1
- package/dist/browser/{fetch-retry.umd-DEbZQzJ3.js → fetch-retry.umd-kGON8ji6.js} +2 -2
- package/dist/browser/{flex-B9PF9U8h.js → flex-DqcWgHRa.js} +5 -5
- package/dist/browser/{floorplan.loader-G3m0klqz.js → floorplan.loader-BRvRi40U.js} +10 -10
- package/dist/browser/{floorplan.ready-CcBm3z9I.js → floorplan.ready-B9-MIw8B.js} +181 -181
- package/dist/browser/{fuse-Be1ke9wH.js → fuse-BXW5RuhW.js} +2 -2
- package/dist/browser/{i18n-892OGllH.js → i18n-D80X6LMz.js} +9 -7
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-DBPl3snb.js → index.module-DNr0maw3.js} +4 -4
- package/dist/browser/{integrateKiosk-Dau_WEaC.js → integrateKiosk-BL84U1ZL.js} +4 -4
- package/dist/browser/{is-webview-ElzsMr4s.js → is-webview-CA6ivKK_.js} +1 -1
- package/dist/browser/{jsx-runtime-BsOtCifA.js → jsx-runtime-BT50TP7_.js} +2 -2
- package/dist/browser/{kiosk-record-BTQRhXdb.js → kiosk-record-QoK8Mq08.js} +1 -1
- package/dist/browser/{lib-CurNQ8fT.js → lib-Dn401ByH.js} +3 -3
- package/dist/browser/{loadImage-wPuY8HVi.js → loadImage-BaHKwI_N.js} +4 -4
- package/dist/browser/{logDeviceInfo-bDJ_gaMR.js → logDeviceInfo-Btc7mU_S.js} +9 -9
- package/dist/browser/{mobx-CoCB6VaY.js → mobx-c2h1ijB_.js} +4 -4
- package/dist/browser/{optional-boolean-editor-WRwLbFlO.js → optional-boolean-editor-DkXbwHPW.js} +3 -3
- package/dist/browser/{optional-enum-editor-C1ENUhhf.js → optional-enum-editor-D6J8s67w.js} +4 -4
- package/dist/browser/{optional-string-editor-CNEl6U5Q.js → optional-string-editor-DvlDx9cr.js} +4 -4
- package/dist/browser/{particles.min-BRguaqtu.js → particles.min-BlF_1zig.js} +2 -2
- package/dist/browser/{react-BQN6EStf.js → react-CTNuj5uG.js} +2 -2
- package/dist/browser/{react-dom-C7Pf2opy.js → react-dom-Dd-QC57h.js} +3 -3
- package/dist/browser/{rolldown-runtime-DBeIQt3E.js → rolldown-runtime-BkVgj4VA.js} +1 -1
- package/dist/browser/{scheduler-cQidETRd.js → scheduler-BGogpU6B.js} +2 -2
- package/dist/browser/{select-CIJMgtRk.js → select-CNUhWDWs.js} +10 -10
- package/dist/browser/{settings-tf2xCh7a.js → settings-DNaOj9LN.js} +2 -2
- package/dist/browser/{settings-item-Dhd_mZVD.js → settings-item-Bb1ifzkN.js} +6 -6
- package/dist/browser/{store-DX_d1X7a.js → store-CpViG4ds.js} +6347 -5720
- package/dist/browser/{string-editor-CwZhPArg.js → string-editor-BwfOcpmc.js} +4 -4
- package/dist/browser/{text-field-DbPC6Ytx.js → text-field-BS3w11vk.js} +5 -5
- package/dist/browser/{theme-EiHUjgfX.js → theme-jH8ml6K6.js} +8 -8
- package/dist/browser/{ui-BCJ-P-pD.js → ui-Bbl-WJZx.js} +8 -8
- package/dist/browser/{useRenderTarget-DkMzI2QA.js → useRenderTarget-BX8tGScr.js} +4 -4
- package/dist/browser/{viewport-BldgkO7x.js → viewport-COvScbd2.js} +3 -3
- package/dist/esm/components/Kiosk/ShowKiosk.d.ts +1 -2
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/Kiosk/kiosk-mode.d.ts +26 -0
- package/dist/esm/components/Kiosk/kiosk-mode.js +1 -1
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Map/MapCamera.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreAdapter.d.ts +2 -2
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +17 -7
- package/dist/esm/components/Maplibre/MaplibreWrapper.js +1 -1
- package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +14 -3
- package/dist/esm/components/Maplibre/utils/map-helpers.js +1 -1
- package/dist/esm/store/MaplibreStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +49 -3
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/init-ui.js +1 -1
- package/dist/esm/store/types.d.ts +12 -0
- package/dist/esm/utils/camera-map-settings.js +1 -1
- package/package.json +10 -10
|
@@ -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.35.0" };
|
|
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] = "93874f11-16d6-4181-9ecc-1003236eed3e", e._sentryDebugIdIdentifier = "sentry-dbid-93874f11-16d6-4181-9ecc-1003236eed3e");
|
|
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, Bt as l, Ct as u, Dt as d, Et as f, Ft as ee, H as te, It as ne, K as re, Lt as ie, Mt as ae, Nt as oe, Ot as se, Pt as ce, Rt as le, St as ue, Tt as de, U as fe, W as pe, _t as me, bt as he, et as ge, f as _e, ft as p, ht as ve, jt as ye, kt as be, l as m, lt as h, mt as xe, n as Se, o as Ce, pt as we, r as Te, rt as Ee, ut as De, v as Oe, vt as ke, w as g, wt as Ae, xt as je, y as Me, zt as _ } from "./i18n-
|
|
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 { $ as Ge, C as S, E as C, G as Ke, H as qe, J as
|
|
20
|
-
import { n as gt, t as _t } from "./integrateKiosk-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-BkVgj4VA.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-BRvRi40U.js";
|
|
11
|
+
import { At as c, Bt as l, Ct as u, Dt as d, Et as f, Ft as ee, H as te, It as ne, K as re, Lt as ie, Mt as ae, Nt as oe, Ot as se, Pt as ce, Rt as le, St as ue, Tt as de, U as fe, W as pe, _t as me, bt as he, et as ge, f as _e, ft as p, ht as ve, jt as ye, kt as be, l as m, lt as h, mt as xe, n as Se, o as Ce, pt as we, r as Te, rt as Ee, ut as De, v as Oe, vt as ke, w as g, wt as Ae, xt as je, y as Me, zt as _ } from "./i18n-D80X6LMz.js";
|
|
12
|
+
import { s as Ne } from "./efp-debug-init-Co9uXMuX.js";
|
|
13
|
+
import { t as Pe } from "./react-CTNuj5uG.js";
|
|
14
|
+
import { t as Fe } from "./jsx-runtime-BT50TP7_.js";
|
|
15
|
+
import { r as v } from "./loadImage-BaHKwI_N.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-B-6KjI9h.js";
|
|
17
|
+
import { t as Ve } from "./client-ezZAHjfj.js";
|
|
18
|
+
import { i as He, n as Ue, r as x, t as We } from "./components-PA3hCLCa.js";
|
|
19
|
+
import { $ as Ge, C as S, E as C, En as w, G as Ke, H as qe, J as T, N as Je, P as E, Pn as Ye, Q as Xe, Rt as Ze, S as Qe, Sn as D, T as O, U as k, V as A, Z as $e, at as et, bn as tt, c as j, cn as M, ct as nt, dn as rt, dt as it, fn as at, ft as ot, it as N, j as st, l as P, lt as F, ot as ct, pt as lt, q as ut, rn as dt, sn as ft, st as pt, w as mt, y as ht } from "./store-CpViG4ds.js";
|
|
20
|
+
import { n as gt, t as _t } from "./integrateKiosk-BL84U1ZL.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 vt(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 St = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = {
|
|
|
134
134
|
}) : e;
|
|
135
135
|
return I.isValidElement(r) ? r : (e && St && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
136
|
}
|
|
137
|
-
}, wt = /* @__PURE__ */ e(Ne(), 1), Tt = Ve(), Et =
|
|
137
|
+
}, wt = /* @__PURE__ */ e(Ne(), 1), Tt = Ve(), Et = Ye();
|
|
138
138
|
function Dt(e) {
|
|
139
139
|
var t;
|
|
140
140
|
let n = new URLSearchParams(window.location.search).get(te), r = m ? window.localStorage.getItem(te) : null, i = n == null ? r : n;
|
|
@@ -267,7 +267,7 @@ var Wt = /* @__PURE__ */ V({
|
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
269
|
function Yt(e) {
|
|
270
|
-
let t =
|
|
270
|
+
let t = ht(e);
|
|
271
271
|
Object.values(t).length && (_t(t, !1), gt(t));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
@@ -289,23 +289,23 @@ function Zt(e, t) {
|
|
|
289
289
|
//#region src/services/url-dispatch.ts
|
|
290
290
|
var U = !1;
|
|
291
291
|
function Qt() {
|
|
292
|
-
K(l()), g(() =>
|
|
292
|
+
K(l()), g(() => j.layerStore.layersLoaded, () => {
|
|
293
293
|
let e = l().camera;
|
|
294
294
|
Object.keys(e).length && gn(x(e));
|
|
295
295
|
let t = l().visibility;
|
|
296
|
-
Object.keys(t).length &&
|
|
296
|
+
Object.keys(t).length && P.setVisibility(t);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
function $t(e) {
|
|
300
|
-
|
|
300
|
+
pt({
|
|
301
301
|
offHistory: e,
|
|
302
302
|
onNavigate: G
|
|
303
|
-
}), an(), W(), g(() =>
|
|
304
|
-
|
|
303
|
+
}), an(), W(), g(() => j.layerStore.layersLoaded, () => {
|
|
304
|
+
j.urlFilterManager && !j.urlFilterManager.isInitialized && j.urlFilterManager.initialize(), G(), _e(hn), _e(pn), P.viewerMode && (P.menu = !0);
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
function en(e = "") {
|
|
308
|
-
|
|
308
|
+
F("?" + p(e.toString())), j.layerStore.layersLoaded ? tn(e) : (W(), g(() => j.layerStore.layersLoaded, () => tn(e)));
|
|
309
309
|
}
|
|
310
310
|
function tn(e) {
|
|
311
311
|
var t, n;
|
|
@@ -316,19 +316,19 @@ function tn(e) {
|
|
|
316
316
|
});
|
|
317
317
|
K(i), K(c);
|
|
318
318
|
let l = (n = i.consent) == null ? c.consent : n;
|
|
319
|
-
l &&
|
|
319
|
+
l && T(l), i.camera && Object.keys(i.camera).length && gn(x(i.camera)), i.visibility && Object.keys(i.visibility).length && P.setVisibility(i.visibility), an(), G();
|
|
320
320
|
let u = [...a, ...s];
|
|
321
|
-
u.length && o(
|
|
321
|
+
u.length && o(j.fp, u);
|
|
322
322
|
}
|
|
323
323
|
function W() {
|
|
324
|
-
let e =
|
|
324
|
+
let e = N();
|
|
325
325
|
return Ue(e.length > 1 ? p(e.substring(1)) : "");
|
|
326
326
|
}
|
|
327
327
|
function G() {
|
|
328
328
|
U = !0;
|
|
329
329
|
try {
|
|
330
330
|
Yt(new URLSearchParams(p(window.location.search)));
|
|
331
|
-
let { primary: e } = h(
|
|
331
|
+
let { primary: e } = h(N()), t = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (P.heatmap || P.heatmapYah);
|
|
332
332
|
!W() && !t && nn(e);
|
|
333
333
|
} finally {
|
|
334
334
|
U = !1;
|
|
@@ -336,10 +336,10 @@ function G() {
|
|
|
336
336
|
pn(), hn();
|
|
337
337
|
}
|
|
338
338
|
function nn(e) {
|
|
339
|
-
let t =
|
|
339
|
+
let t = j.fp;
|
|
340
340
|
switch (e.type) {
|
|
341
341
|
case "kiosk":
|
|
342
|
-
e.enabled !== null && lt(
|
|
342
|
+
e.enabled !== null && lt(P, e.enabled);
|
|
343
343
|
return;
|
|
344
344
|
case "list":
|
|
345
345
|
t.showList(e.list);
|
|
@@ -356,7 +356,7 @@ function nn(e) {
|
|
|
356
356
|
return;
|
|
357
357
|
case "route":
|
|
358
358
|
var n, r;
|
|
359
|
-
|
|
359
|
+
j.routeStore.setOnlyAccessible(e.accessible), j.routeStore.selectRoute(mt((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);
|
|
360
360
|
return;
|
|
361
361
|
case "selectExhibitors":
|
|
362
362
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
@@ -371,20 +371,20 @@ function nn(e) {
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
function rn(e) {
|
|
374
|
-
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i =
|
|
375
|
-
if (
|
|
374
|
+
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i = j.boothStore.booths.filter((e) => n.includes(e.externalId)), a = j.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), o = [...i, ...a];
|
|
375
|
+
if (at()) {
|
|
376
376
|
let e = Xt(o.map((e) => e.layer.name));
|
|
377
|
-
e &&
|
|
377
|
+
e && j.fp.activateFloor({ name: e });
|
|
378
378
|
}
|
|
379
|
-
(n.length > 0 || r.length > 0) &&
|
|
380
|
-
|
|
379
|
+
(n.length > 0 || r.length > 0) && j.fp.highlightEntities([...n, ...r]), j.layerStore.showPathWay(t), o.length > 0 && Me(() => {
|
|
380
|
+
j.uiState.moveToRect = w.fromUnion(...o.map((e) => e.rect).filter(Boolean)), j.uiState.rollReset = !0;
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
function an() {
|
|
384
|
-
let { oneShots: e } = h(
|
|
384
|
+
let { oneShots: e } = h(N());
|
|
385
385
|
for (let t of e) on(t);
|
|
386
|
-
let t = qe(
|
|
387
|
-
t !== null &&
|
|
386
|
+
let t = qe(N());
|
|
387
|
+
t !== null && F("?" + t), P.previewExhibitor && F("?" + P.previewExhibitor.slug), cn();
|
|
388
388
|
}
|
|
389
389
|
function on(e) {
|
|
390
390
|
switch (e.type) {
|
|
@@ -393,8 +393,8 @@ function on(e) {
|
|
|
393
393
|
return;
|
|
394
394
|
case "blueDot": {
|
|
395
395
|
var t, n;
|
|
396
|
-
let r = new Qe(e.x, e.y, (t =
|
|
397
|
-
g(() =>
|
|
396
|
+
let r = new Qe(e.x, e.y, (t = j.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
397
|
+
g(() => j.layerStore.layersLoaded, () => j.routeStore.selectCurrentPosition(r, !0, 1));
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
400
|
case "viewerMode":
|
|
@@ -404,54 +404,54 @@ function on(e) {
|
|
|
404
404
|
m && (e.enabled ? localStorage.setItem(ge, "true") : (localStorage.removeItem(ge), localStorage.removeItem(pe)));
|
|
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.`) : j.uiState.setUIScale(e.scale, !0);
|
|
408
408
|
return;
|
|
409
409
|
case "resetUiScale":
|
|
410
|
-
|
|
410
|
+
j.uiState.resetUIScale();
|
|
411
411
|
return;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
function sn(e) {
|
|
415
|
-
ct(), e ? (
|
|
415
|
+
ct(), e ? (P.heatmapYah = !0, P.monochrome = !0, P.hideLogoInBooth = !0, P.hideHeaderLogo = !0, P.disableBookmarked = !0) : P.heatmap = !0;
|
|
416
416
|
}
|
|
417
417
|
function cn() {
|
|
418
|
-
let e = Zt(
|
|
419
|
-
let t =
|
|
418
|
+
let e = Zt(N(), (e) => {
|
|
419
|
+
let t = j.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 && F(e);
|
|
423
423
|
}
|
|
424
424
|
function K(e) {
|
|
425
|
-
e.noOverlay !== void 0 && (
|
|
425
|
+
e.noOverlay !== void 0 && (P.hideOverlay = e.noOverlay), e.monochrome && (P.monochrome = !0), e.hideHeaderLogo && (P.hideHeaderLogo = !0), e.hideLogoInBooth && (P.hideLogoInBooth = !0), e.disableFeatured && j.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (P.disableBookmarked = !0), e.disableGps && j.routeStore.setGpsTrackingEnabled(!1), e.heatmap && r(e.heatmap) && sn(e.heatmap.variant === "yah");
|
|
426
426
|
}
|
|
427
427
|
function ln(e) {
|
|
428
428
|
return ve(me, e).value;
|
|
429
429
|
}
|
|
430
430
|
var un = null, dn = null, fn = null;
|
|
431
431
|
function pn() {
|
|
432
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } = mn(), i =
|
|
432
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = mn(), i = j.urlFilterManager.filterSearch();
|
|
433
433
|
if (U) return;
|
|
434
434
|
let a = De(e) || i;
|
|
435
|
-
|
|
435
|
+
N() !== a && (t !== un || n !== dn || r !== fn ? nt(a) : F(a), un = t, dn = n, fn = r);
|
|
436
436
|
}
|
|
437
437
|
function mn() {
|
|
438
|
-
let e =
|
|
438
|
+
let e = P.selectedExhibitor, t = P.selectedBooth, n = P.selectedEventItem, r = P.selectedRoute, i = P.selectedSpeaker, a = P.setKioskModeEnabled, o = P.list, s;
|
|
439
439
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
440
440
|
var c;
|
|
441
|
-
let e =
|
|
441
|
+
let e = j.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 && !P.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 M ? r.to.slug : void 0,
|
|
453
|
+
from: r.from instanceof M ? r.from.slug : void 0,
|
|
454
|
+
accessible: j.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 mn() {
|
|
|
488
488
|
var u, d;
|
|
489
489
|
s = {
|
|
490
490
|
type: "slug",
|
|
491
|
-
slug: (u = (d =
|
|
491
|
+
slug: (u = (d = P.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
492
492
|
};
|
|
493
493
|
break;
|
|
494
494
|
case "search":
|
|
@@ -520,14 +520,14 @@ function mn() {
|
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
function hn() {
|
|
523
|
-
let e =
|
|
524
|
-
e ? r = e.name : t ? r = t.name : n ? r = n.name :
|
|
523
|
+
let e = P.selectedExhibitor, t = P.selectedEventItem, n = P.selectedSpeaker, r = "";
|
|
524
|
+
e ? r = e.name : t ? r = t.name : n ? r = n.name : P.list.type === "search" && P.list.text ? r = "`" + (P.list.text || "") + "`" : P.list.type === "multi-point-tour" && P.tourTitle && (r = P.tourTitle), r.length && (r += " – "), r += D.title, D.subtitle && (r += " – " + D.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
|
|
525
525
|
}
|
|
526
526
|
function gn(e) {
|
|
527
527
|
try {
|
|
528
|
-
if (
|
|
529
|
-
let t =
|
|
530
|
-
t &&
|
|
528
|
+
if (P.setMapSettings(e), e.z) {
|
|
529
|
+
let t = j.layerStore.layers.find((t) => t.name === e.z);
|
|
530
|
+
t && j.layerStore.updateVisibility(t, !0);
|
|
531
531
|
}
|
|
532
532
|
} catch (e) {
|
|
533
533
|
console.error("Failed to process map settings.", e);
|
|
@@ -536,25 +536,25 @@ function gn(e) {
|
|
|
536
536
|
//#endregion
|
|
537
537
|
//#region src/store/details-events.ts
|
|
538
538
|
function _n() {
|
|
539
|
-
return Oe(() =>
|
|
539
|
+
return Oe(() => P.details, () => {
|
|
540
540
|
var e;
|
|
541
|
-
if (!
|
|
542
|
-
if (!
|
|
543
|
-
|
|
541
|
+
if (!P.onDetails) return;
|
|
542
|
+
if (!P.details) {
|
|
543
|
+
P.onDetails(null);
|
|
544
544
|
return;
|
|
545
545
|
}
|
|
546
|
-
let t =
|
|
547
|
-
if (
|
|
546
|
+
let t = P.details;
|
|
547
|
+
if (tt.EXPO === "wineparis" && (t instanceof dt && (t = t.booths[0]), !t)) return;
|
|
548
548
|
let n = null, r = [];
|
|
549
|
-
if (t instanceof
|
|
549
|
+
if (t instanceof dt) n = "exhibitor", r = t.booths.map((e) => e.name).sort((e, t) => {
|
|
550
550
|
var n, r;
|
|
551
|
-
return e == ((n =
|
|
551
|
+
return e == ((n = j.routeStore.tempToBooth) == null ? void 0 : n.name) ? -1 : +(t == ((r = j.routeStore.tempToBooth) == null ? void 0 : r.name));
|
|
552
552
|
});
|
|
553
|
-
else if (t instanceof
|
|
553
|
+
else if (t instanceof M) n = "booth", r = [t.name];
|
|
554
554
|
else if (t instanceof S) {
|
|
555
555
|
var i, a;
|
|
556
556
|
n = "route", r = [(i = t.from) == null ? void 0 : i.name, (a = t.to) == null ? void 0 : a.name].filter((e) => !!e);
|
|
557
|
-
} else t instanceof
|
|
557
|
+
} else t instanceof ft && (n = "category", r = t.exhibitors.map((e) => e.booths.map((e) => e.name)).flat());
|
|
558
558
|
let o = t, s = {
|
|
559
559
|
type: n,
|
|
560
560
|
name: o == null ? void 0 : o.name,
|
|
@@ -562,9 +562,9 @@ function _n() {
|
|
|
562
562
|
externalId: o == null ? void 0 : o.externalId,
|
|
563
563
|
boothsNames: r
|
|
564
564
|
};
|
|
565
|
-
|
|
565
|
+
P.onDetails({
|
|
566
566
|
...s,
|
|
567
|
-
...n === "route" ? { routeInfo: (e =
|
|
567
|
+
...n === "route" ? { routeInfo: (e = j.routeStore.routeInfo) == null ? void 0 : e } : {}
|
|
568
568
|
});
|
|
569
569
|
});
|
|
570
570
|
}
|
|
@@ -649,28 +649,28 @@ var vn = class extends s {
|
|
|
649
649
|
super(...e), this.root = void 0, this.disposeDetailsEvents = void 0, this.disposeBoothHitTest = void 0;
|
|
650
650
|
}
|
|
651
651
|
init() {
|
|
652
|
-
Qt(), this.ignoreQuery || $t(this.offHistory),
|
|
652
|
+
Qt(), this.ignoreQuery || $t(this.offHistory), Xe("load"), it(j), j.fp = this, this.disposeDetailsEvents = _n(), this.disposeBoothHitTest = Ze(), T(this.consent), ut(k.Load, ""), this.root = (0, Tt.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(Ct, { children: /* @__PURE__ */ (0, X.jsx)(We, {
|
|
653
653
|
offHistory: this.offHistory,
|
|
654
654
|
consent: this.consent
|
|
655
|
-
}) })), ut(
|
|
655
|
+
}) })), ut(k.Rendered, ""), Oe(() => j.layerStore.layersLoaded, () => {
|
|
656
656
|
let e = this.renderTarget.getRootNode(), t = e instanceof ShadowRoot ? e.host : this.renderTarget.parentElement;
|
|
657
657
|
for (document.querySelectorAll(".expofp-floorplan-loader").forEach((e) => e.remove()); t && this.element.firstChild && this.element.firstChild !== t;) this.element.removeChild(this.element.firstChild);
|
|
658
|
-
if (this.resolveReady(), !
|
|
658
|
+
if (this.resolveReady(), !j.initialized) {
|
|
659
659
|
var n;
|
|
660
660
|
(n = this.onInit) == null || n.call(this, this);
|
|
661
661
|
}
|
|
662
|
-
|
|
662
|
+
j.initialized = !0;
|
|
663
663
|
});
|
|
664
|
-
let e = Mt(
|
|
665
|
-
e && import("./bootIntercom-
|
|
664
|
+
let e = Mt(D);
|
|
665
|
+
e && import("./bootIntercom-C3QDF5oB.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
666
666
|
}
|
|
667
667
|
selectBooth(e) {
|
|
668
668
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
669
669
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
670
670
|
return;
|
|
671
671
|
}
|
|
672
|
-
let t =
|
|
673
|
-
|
|
672
|
+
let t = j.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
673
|
+
j.selectBooth(t);
|
|
674
674
|
}
|
|
675
675
|
selectExhibitor(e) {
|
|
676
676
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -678,35 +678,35 @@ var vn = class extends s {
|
|
|
678
678
|
return;
|
|
679
679
|
}
|
|
680
680
|
if (!(e != null && e.length)) {
|
|
681
|
-
|
|
681
|
+
j.uiState.menu = !1, j.searchStore.resetSearchBox(), j.uiState.details = null;
|
|
682
682
|
return;
|
|
683
683
|
}
|
|
684
|
-
let t =
|
|
684
|
+
let t = j.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
685
685
|
if (!(t != null && t.length)) return;
|
|
686
686
|
if (typeof e == "string") {
|
|
687
|
-
|
|
687
|
+
j.selectExhibitor(t[0]), j.moveToList([t[0]]);
|
|
688
688
|
return;
|
|
689
689
|
}
|
|
690
690
|
let n = Xt(t.flatMap((e) => e.booths.map((e) => e.layer)).map((e) => e.description));
|
|
691
|
-
n &&
|
|
691
|
+
n && j.layerStore.updateVisibility(n, !0), j.uiState.menu = !1, j.searchStore.resetSearchBox(), j.uiState.details = null, j.uiState.list = {
|
|
692
692
|
type: "filter",
|
|
693
693
|
items: t,
|
|
694
694
|
query: {
|
|
695
695
|
key: "exhibitors",
|
|
696
696
|
value: t.map((e) => e.name).join(",")
|
|
697
697
|
}
|
|
698
|
-
},
|
|
698
|
+
}, j.moveToList();
|
|
699
699
|
}
|
|
700
700
|
highlightExhibitors(e) {
|
|
701
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
701
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), j.boothStore.highlightedByExternalIds = [], j.exhibitorStore.highlightedByExternalIds = [...e];
|
|
702
702
|
}
|
|
703
703
|
highlightBooths(e) {
|
|
704
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
704
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), j.exhibitorStore.highlightedByExternalIds = [], j.boothStore.highlightedByExternalIds = [...e];
|
|
705
705
|
}
|
|
706
706
|
highlightEntities(e) {
|
|
707
707
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
708
708
|
let { boothExternalIds: t, exhibitorExternalIds: n } = C(e);
|
|
709
|
-
|
|
709
|
+
j.boothStore.highlightedByExternalIds = [...t], j.exhibitorStore.highlightedByExternalIds = [...n];
|
|
710
710
|
}
|
|
711
711
|
selectRoute(e, t) {
|
|
712
712
|
if (Array.isArray(e)) {
|
|
@@ -716,10 +716,10 @@ var vn = class extends s {
|
|
|
716
716
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
717
717
|
return;
|
|
718
718
|
}
|
|
719
|
-
|
|
719
|
+
j.routeStore.selectRoute(new S(Q(n), Q(r), t.map(Q)));
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
722
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), j.routeStore.selectRoute(new S(Q(e), Q(t)));
|
|
723
723
|
}
|
|
724
724
|
getOptimizedRoutes(e) {
|
|
725
725
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -732,19 +732,19 @@ var vn = class extends s {
|
|
|
732
732
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
733
733
|
a ? a.push(e) : n.set(t, [e]);
|
|
734
734
|
}
|
|
735
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
735
|
+
return Array.from(n.values()).map((e) => ({ waypoints: st(e.map((e) => [e.name, {
|
|
736
736
|
x: e.rect.center.x,
|
|
737
737
|
y: e.rect.center.y
|
|
738
738
|
}])) }));
|
|
739
739
|
}
|
|
740
740
|
selectCurrentPosition(e, t, n) {
|
|
741
741
|
var r;
|
|
742
|
-
let i =
|
|
743
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
742
|
+
let i = E(e.x) && E(e.y), a = E(e.lng) && E(e.lat);
|
|
743
|
+
!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);
|
|
744
744
|
}
|
|
745
745
|
setBookmarks(e) {
|
|
746
746
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
747
|
-
let t =
|
|
747
|
+
let t = j.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
748
748
|
t && (t.bookmarked = e.bookmarked);
|
|
749
749
|
});
|
|
750
750
|
}
|
|
@@ -763,29 +763,29 @@ var vn = class extends s {
|
|
|
763
763
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
764
764
|
return;
|
|
765
765
|
}
|
|
766
|
-
let r =
|
|
766
|
+
let r = rt("bookmarked"), i = {
|
|
767
767
|
exhibitor: {
|
|
768
768
|
existingIds: new Set(r.exhibitors || []),
|
|
769
|
-
finder: (e) =>
|
|
770
|
-
replacer: (e) =>
|
|
769
|
+
finder: (e) => j.exhibitorStore.findExhibitor(e),
|
|
770
|
+
replacer: (e) => j.exhibitorStore.replaceBookmarked(e)
|
|
771
771
|
},
|
|
772
772
|
event: {
|
|
773
773
|
existingIds: new Set(r.events || []),
|
|
774
|
-
finder: (e) =>
|
|
775
|
-
replacer: (e) =>
|
|
774
|
+
finder: (e) => j.eventStore.findByNameOrSlug(e),
|
|
775
|
+
replacer: (e) => j.eventStore.replaceBookmarked(e)
|
|
776
776
|
},
|
|
777
777
|
speaker: {
|
|
778
778
|
existingIds: new Set(r.speakers || []),
|
|
779
|
-
finder: (e) =>
|
|
780
|
-
replacer: (e) =>
|
|
779
|
+
finder: (e) => j.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
780
|
+
replacer: (e) => j.speakerStore.replaceBookmarked(e)
|
|
781
781
|
},
|
|
782
782
|
booth: {
|
|
783
783
|
existingIds: new Set(r.booths || []),
|
|
784
784
|
finder: (e) => {
|
|
785
|
-
let t =
|
|
785
|
+
let t = j.boothStore.findBooth(e);
|
|
786
786
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
787
787
|
},
|
|
788
|
-
replacer: (e) =>
|
|
788
|
+
replacer: (e) => j.boothStore.replaceBookmarked(e)
|
|
789
789
|
}
|
|
790
790
|
};
|
|
791
791
|
e.forEach((e) => {
|
|
@@ -805,16 +805,16 @@ var vn = class extends s {
|
|
|
805
805
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
806
806
|
return;
|
|
807
807
|
}
|
|
808
|
-
let r =
|
|
808
|
+
let r = rt("visited"), i = {
|
|
809
809
|
exhibitor: {
|
|
810
810
|
existingIds: new Set(r.exhibitors || []),
|
|
811
|
-
finder: (e) =>
|
|
812
|
-
replacer: (e) =>
|
|
811
|
+
finder: (e) => j.exhibitorStore.findExhibitor(e),
|
|
812
|
+
replacer: (e) => j.exhibitorStore.replaceVisited(e)
|
|
813
813
|
},
|
|
814
814
|
event: {
|
|
815
815
|
existingIds: new Set(r.events || []),
|
|
816
|
-
finder: (e) =>
|
|
817
|
-
replacer: (e) =>
|
|
816
|
+
finder: (e) => j.eventStore.findByNameOrSlug(e),
|
|
817
|
+
replacer: (e) => j.eventStore.replaceVisited(e)
|
|
818
818
|
}
|
|
819
819
|
};
|
|
820
820
|
e.forEach((e) => {
|
|
@@ -829,94 +829,94 @@ var vn = class extends s {
|
|
|
829
829
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
j.routeStore.setMarkers(e);
|
|
833
833
|
}
|
|
834
834
|
selectMarker(e, t = !0) {
|
|
835
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
835
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), j.routeStore.selectMarker(e, t);
|
|
836
836
|
}
|
|
837
837
|
drawCircles(e) {
|
|
838
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
838
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), j.uiState.debugCircles = e;
|
|
839
839
|
}
|
|
840
840
|
checkRoutes() {
|
|
841
|
-
|
|
841
|
+
j.routeStore.checkRoutes();
|
|
842
842
|
}
|
|
843
843
|
updateLayerVisibility(e, t) {
|
|
844
|
-
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"),
|
|
844
|
+
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);
|
|
845
845
|
}
|
|
846
846
|
getCenterCoordinates() {
|
|
847
|
-
return
|
|
847
|
+
return j.fp.getCenterCoordinates();
|
|
848
848
|
}
|
|
849
849
|
exhibitorsList() {
|
|
850
|
-
return
|
|
850
|
+
return j.exhibitorStore.exhibitors.map((e) => q(e));
|
|
851
851
|
}
|
|
852
852
|
boothsList() {
|
|
853
|
-
return
|
|
853
|
+
return j.boothStore.booths.map((e) => q(e));
|
|
854
854
|
}
|
|
855
855
|
categoriesList() {
|
|
856
|
-
return
|
|
856
|
+
return j.categoryStore.categories.map((e) => q(e));
|
|
857
857
|
}
|
|
858
858
|
selectCategory(e) {
|
|
859
859
|
if (e == null || typeof e != "string") {
|
|
860
|
-
|
|
860
|
+
j.searchStore.selectSearch();
|
|
861
861
|
return;
|
|
862
862
|
}
|
|
863
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
863
|
+
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);
|
|
864
864
|
if (!n) {
|
|
865
865
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
866
866
|
return;
|
|
867
867
|
}
|
|
868
|
-
|
|
868
|
+
j.selectCategory(n);
|
|
869
869
|
}
|
|
870
870
|
select(e) {
|
|
871
871
|
if (typeof e != "string") {
|
|
872
872
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
873
873
|
return;
|
|
874
874
|
}
|
|
875
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
875
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = j.boothStore.booths.find((e) => {
|
|
876
876
|
var t, r, i;
|
|
877
877
|
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;
|
|
878
878
|
});
|
|
879
879
|
if (r) {
|
|
880
|
-
setTimeout(() =>
|
|
880
|
+
setTimeout(() => j.selectBooth(r), 250);
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
|
-
let i =
|
|
883
|
+
let i = j.eventStore.eventItems.find((e) => {
|
|
884
884
|
var t, r;
|
|
885
885
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
886
886
|
});
|
|
887
887
|
if (i) {
|
|
888
|
-
|
|
888
|
+
j.selectEventItem(i, !0);
|
|
889
889
|
return;
|
|
890
890
|
}
|
|
891
|
-
let a =
|
|
891
|
+
let a = j.exhibitorStore.exhibitors.find((e) => {
|
|
892
892
|
var t, r;
|
|
893
893
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
894
894
|
});
|
|
895
895
|
if (a) {
|
|
896
|
-
setTimeout(() =>
|
|
896
|
+
setTimeout(() => j.clickExhibitor(a), 250);
|
|
897
897
|
return;
|
|
898
898
|
}
|
|
899
|
-
let o =
|
|
899
|
+
let o = j.categoryStore.categories.find((e) => e.slug === t);
|
|
900
900
|
if (o) {
|
|
901
|
-
|
|
901
|
+
j.selectCategory(o);
|
|
902
902
|
return;
|
|
903
903
|
}
|
|
904
|
-
let s =
|
|
904
|
+
let s = j.speakerStore.findBySlug(t);
|
|
905
905
|
if (s) {
|
|
906
|
-
|
|
906
|
+
j.selectSpeaker(s, !0);
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
|
-
t.includes("heatmap=true") ||
|
|
909
|
+
t.includes("heatmap=true") || j.searchStore.selectSearch(t);
|
|
910
910
|
}
|
|
911
911
|
showList(e) {
|
|
912
912
|
let t = {
|
|
913
|
-
bookmarks: () =>
|
|
914
|
-
visited: () =>
|
|
915
|
-
sessions: () =>
|
|
916
|
-
exhibitors: () =>
|
|
917
|
-
speakers: () =>
|
|
918
|
-
tours: () =>
|
|
919
|
-
language: () =>
|
|
913
|
+
bookmarks: () => j.selectBookmarks(),
|
|
914
|
+
visited: () => j.selectVisited(),
|
|
915
|
+
sessions: () => j.selectSessions(),
|
|
916
|
+
exhibitors: () => j.selectExhibitors(),
|
|
917
|
+
speakers: () => j.selectSpeakers(),
|
|
918
|
+
tours: () => j.selectTours(),
|
|
919
|
+
language: () => j.selectLanguage()
|
|
920
920
|
}, n = t[e];
|
|
921
921
|
if (!n) {
|
|
922
922
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -929,44 +929,44 @@ var vn = class extends s {
|
|
|
929
929
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
930
930
|
return;
|
|
931
931
|
}
|
|
932
|
-
let t =
|
|
933
|
-
t ?
|
|
932
|
+
let t = j.toursStore.getTourById(e);
|
|
933
|
+
t ? j.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), j.selectTours());
|
|
934
934
|
}
|
|
935
935
|
openPlanner(e = {}) {
|
|
936
936
|
if (typeof e != "object" || !e) {
|
|
937
937
|
$("openPlanner", "An options object must be passed.", "EFP001A00");
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
|
-
let t = e.from ?
|
|
941
|
-
if (e.fromBookmarks)
|
|
940
|
+
let t = e.from ? O(e.from) : null;
|
|
941
|
+
if (e.fromBookmarks) j.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
942
942
|
else {
|
|
943
943
|
var n;
|
|
944
|
-
|
|
944
|
+
j.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
startBuildRoute() {
|
|
948
|
-
|
|
948
|
+
j.uiState.startBuildRoute();
|
|
949
949
|
}
|
|
950
950
|
applyParameters(e) {
|
|
951
951
|
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), en(e);
|
|
952
952
|
}
|
|
953
953
|
getVisibility() {
|
|
954
|
-
return
|
|
954
|
+
return j.uiState.visibility;
|
|
955
955
|
}
|
|
956
956
|
setVisibility(e) {
|
|
957
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
957
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), j.uiState.setVisibility(e);
|
|
958
958
|
}
|
|
959
959
|
findLocation() {
|
|
960
|
-
|
|
960
|
+
j.routeStore.findLocation();
|
|
961
961
|
}
|
|
962
962
|
zoomIn() {
|
|
963
|
-
|
|
963
|
+
j.uiState.zoomIn();
|
|
964
964
|
}
|
|
965
965
|
zoomOut() {
|
|
966
|
-
|
|
966
|
+
j.uiState.zoomOut();
|
|
967
967
|
}
|
|
968
968
|
switchView() {
|
|
969
|
-
|
|
969
|
+
j.maplibreStore.activateMaplibre();
|
|
970
970
|
}
|
|
971
971
|
setCamera(e) {
|
|
972
972
|
Z("setCamera called with camera=%O", e);
|
|
@@ -975,10 +975,10 @@ var vn = class extends s {
|
|
|
975
975
|
$("setCamera", t.error.message, "EFP001B00");
|
|
976
976
|
return;
|
|
977
977
|
}
|
|
978
|
-
|
|
978
|
+
j.uiState.setMapSettings(x(t.data));
|
|
979
979
|
}
|
|
980
980
|
getCamera() {
|
|
981
|
-
return He(
|
|
981
|
+
return He(j.uiState.mapSettings);
|
|
982
982
|
}
|
|
983
983
|
zoomTo(e, t) {
|
|
984
984
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
@@ -1006,15 +1006,15 @@ var vn = class extends s {
|
|
|
1006
1006
|
let i = [];
|
|
1007
1007
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1008
1008
|
let t;
|
|
1009
|
-
e.externalId ? t =
|
|
1009
|
+
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);
|
|
1010
1010
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1011
1011
|
var t;
|
|
1012
1012
|
let n;
|
|
1013
|
-
e.externalId ? n =
|
|
1013
|
+
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) => {
|
|
1014
1014
|
e.rect && i.push(e.rect);
|
|
1015
1015
|
});
|
|
1016
1016
|
}), i.length === 0) return;
|
|
1017
|
-
let a =
|
|
1017
|
+
let a = w.fromUnion(...i);
|
|
1018
1018
|
return {
|
|
1019
1019
|
leftTop: {
|
|
1020
1020
|
x: a.min.x,
|
|
@@ -1028,7 +1028,7 @@ var vn = class extends s {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
fitBounds(e, t) {
|
|
1030
1030
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1031
|
-
|
|
1031
|
+
j.uiState.fitBounds();
|
|
1032
1032
|
return;
|
|
1033
1033
|
}
|
|
1034
1034
|
let n = Gt.safeParse(e);
|
|
@@ -1041,24 +1041,24 @@ var vn = class extends s {
|
|
|
1041
1041
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
|
-
let i =
|
|
1044
|
+
let i = w.fromMinMax({
|
|
1045
1045
|
x: e.leftTop.x,
|
|
1046
1046
|
y: e.leftTop.y
|
|
1047
1047
|
}, {
|
|
1048
1048
|
x: e.rightBottom.x,
|
|
1049
1049
|
y: e.rightBottom.y
|
|
1050
1050
|
});
|
|
1051
|
-
|
|
1051
|
+
j.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1052
1052
|
}
|
|
1053
1053
|
getBoothRect(e) {
|
|
1054
1054
|
var t;
|
|
1055
1055
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1056
|
-
let n = (t =
|
|
1056
|
+
let n = (t = O(e)) == null ? void 0 : t.rect;
|
|
1057
1057
|
return n ? bn.fromBox(n) : void 0;
|
|
1058
1058
|
}
|
|
1059
1059
|
convertToGeo(e, t) {
|
|
1060
1060
|
var n;
|
|
1061
|
-
if (!(!(
|
|
1061
|
+
if (!(!(A == null || (n = A.properties) == null) && n.config)) {
|
|
1062
1062
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1063
1063
|
return;
|
|
1064
1064
|
}
|
|
@@ -1066,11 +1066,11 @@ var vn = class extends s {
|
|
|
1066
1066
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
|
-
return
|
|
1069
|
+
return Je(e, t, A.properties.config);
|
|
1070
1070
|
}
|
|
1071
1071
|
getGeoConfig() {
|
|
1072
1072
|
var e, t;
|
|
1073
|
-
let n =
|
|
1073
|
+
let n = A == null || (e = A.properties) == null ? void 0 : e.config;
|
|
1074
1074
|
return n ? {
|
|
1075
1075
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1076
1076
|
p0: n.p0,
|
|
@@ -1080,16 +1080,16 @@ var vn = class extends s {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
releaseResources() {
|
|
1082
1082
|
var e, t;
|
|
1083
|
-
window.removeEventListener("error", i), (e = this.disposeDetailsEvents) == null || e.call(this), this.disposeDetailsEvents = void 0, (t = this.disposeBoothHitTest) == null || t.call(this), this.disposeBoothHitTest = void 0,
|
|
1083
|
+
window.removeEventListener("error", i), (e = this.disposeDetailsEvents) == null || e.call(this), this.disposeDetailsEvents = void 0, (t = this.disposeBoothHitTest) == null || t.call(this), this.disposeBoothHitTest = void 0, j.maplibreStore.dispose(), et(), ot(), Ke(), $e(), this.root.unmount(), super.releaseResources();
|
|
1084
1084
|
}
|
|
1085
1085
|
search(e) {
|
|
1086
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1086
|
+
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) => ({
|
|
1087
1087
|
item: q(e.item),
|
|
1088
1088
|
score: e.score
|
|
1089
1089
|
}))));
|
|
1090
1090
|
}
|
|
1091
1091
|
getFloors() {
|
|
1092
|
-
return
|
|
1092
|
+
return j.layerStore.floors.map((e) => ({
|
|
1093
1093
|
name: e.name,
|
|
1094
1094
|
shortName: e.shortName,
|
|
1095
1095
|
description: e.description,
|
|
@@ -1137,19 +1137,19 @@ var vn = class extends s {
|
|
|
1137
1137
|
});
|
|
1138
1138
|
}
|
|
1139
1139
|
showPathwayOnly(e, t) {
|
|
1140
|
-
this.activateFloor({ name: t }),
|
|
1141
|
-
let n =
|
|
1140
|
+
this.activateFloor({ name: t }), j.layerStore.showPathWay(e), j.uiState.setPathwayOnlyMode(!0);
|
|
1141
|
+
let n = j.layerStore.findLayer(e), r = j.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1142
1142
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1143
1143
|
var a;
|
|
1144
1144
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1145
|
-
|
|
1145
|
+
j.uiState.moveToRect = e.clone();
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
hidePathways() {
|
|
1149
|
-
this.highlightBooths([]),
|
|
1149
|
+
this.highlightBooths([]), j.layerStore.hidePathways(), j.uiState.setPathwayOnlyMode(!1);
|
|
1150
1150
|
}
|
|
1151
1151
|
showSearch() {
|
|
1152
|
-
|
|
1152
|
+
j.selectSearch("");
|
|
1153
1153
|
}
|
|
1154
1154
|
changeLanguage(e) {
|
|
1155
1155
|
var t;
|
|
@@ -1161,35 +1161,35 @@ var vn = class extends s {
|
|
|
1161
1161
|
Ce(n);
|
|
1162
1162
|
}
|
|
1163
1163
|
isGpsTrackingEnabled() {
|
|
1164
|
-
return
|
|
1164
|
+
return j.routeStore.gpsEnabled;
|
|
1165
1165
|
}
|
|
1166
1166
|
setGpsTrackingEnabled(e) {
|
|
1167
|
-
|
|
1167
|
+
j.routeStore.setGpsTrackingEnabled(e);
|
|
1168
1168
|
}
|
|
1169
1169
|
deselectCurrentPosition() {
|
|
1170
|
-
|
|
1170
|
+
j.routeStore.selectCurrentPosition(null, !1);
|
|
1171
1171
|
}
|
|
1172
1172
|
deselectRoute() {
|
|
1173
|
-
|
|
1173
|
+
j.routeStore.selectRoute(null), j.routeStore.setOnlyAccessible(!1);
|
|
1174
1174
|
}
|
|
1175
1175
|
reset() {
|
|
1176
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1176
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), j.uiState.kioskData && j.resetCameraFn) {
|
|
1177
1177
|
var e;
|
|
1178
|
-
(e =
|
|
1178
|
+
(e = j.resetCameraFn) == null || e.call(j);
|
|
1179
1179
|
} else this.fitBounds();
|
|
1180
1180
|
}
|
|
1181
1181
|
selectAccessibleRoute(e) {
|
|
1182
|
-
|
|
1182
|
+
j.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
1185
|
function Q(e) {
|
|
1186
|
-
return typeof e == "string" ?
|
|
1186
|
+
return typeof e == "string" ? O(e) : j.routeStore.getNearestBooth(e);
|
|
1187
1187
|
}
|
|
1188
1188
|
var yn = 0;
|
|
1189
1189
|
function $(e, t, n) {
|
|
1190
1190
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1191
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1192
|
-
|
|
1191
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), j.fp.disableRuntimeAlerts) return;
|
|
1192
|
+
j.uiState.setGlobalErrorMessage({
|
|
1193
1193
|
title: r,
|
|
1194
1194
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1195
1195
|
i,
|
|
@@ -1205,7 +1205,7 @@ function $(e, t, n) {
|
|
|
1205
1205
|
let o = 8e3;
|
|
1206
1206
|
yn = window.setTimeout(() => {
|
|
1207
1207
|
let e = async () => {
|
|
1208
|
-
|
|
1208
|
+
j.uiState.globalErrorMessages.length > 0 && (j.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1209
1209
|
};
|
|
1210
1210
|
e();
|
|
1211
1211
|
}, o);
|