@expofp/floorplan 3.35.0 → 3.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-DfC_vCEY.js → Button-BPQnJjoN.js} +6 -6
- package/dist/browser/{CookieConsent-zsJlyuvm.js → CookieConsent-CYpwXrw0.js} +8 -8
- package/dist/browser/{Debug-DlxKJH4h.js → Debug-DJ02jJ5Q.js} +8 -8
- package/dist/browser/{DebugTools-DlmzS_VG.js → DebugTools-BCx6s2Fc.js} +7 -7
- package/dist/browser/{Demo-Dvn0OVoH.js → Demo-EWDcqW4X.js} +10 -10
- package/dist/browser/{Free-BlSArgWI.js → Free-DKMv19Hs.js} +10 -10
- package/dist/browser/{GalleryContainer-hIf9VfU3.js → GalleryContainer-CvjywJze.js} +11 -11
- package/dist/browser/{GpsLoader-BCwThbCM.js → GpsLoader-DnZOaiOj.js} +11 -11
- package/dist/browser/{KioskStore-CsXOhSMP.js → KioskStore-B_QD5WD2.js} +6 -6
- package/dist/browser/{MaplibreAdapter-DWcvE2Ec.js → MaplibreAdapter-DfUBzoCo.js} +12 -12
- package/dist/browser/{ModalContainer-DxeKREfc.js → ModalContainer-iUxlX_EW.js} +11 -11
- package/dist/browser/{PermissionNotice-BxEbDltF.js → PermissionNotice-4GkEdwAt.js} +7 -7
- package/dist/browser/{SetKioskMode-D3UABJpZ.js → SetKioskMode-r4WLFRA0.js} +10 -10
- package/dist/browser/{ShowKiosk-6mFmNpFm.js → ShowKiosk-DmmyfPH3.js} +11 -11
- package/dist/browser/{ViewerMenuPanel-BO_-7Y_i.js → ViewerMenuPanel-G5WeOVxy.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-veloxngO.js → add-debug-secret-listener-cqT9ixCW.js} +1 -1
- package/dist/browser/{adopt-global-settings-d5uyY5A6.js → adopt-global-settings-TiK3bdw8.js} +10 -10
- package/dist/browser/{boolean-editor-gFxeiKz4.js → boolean-editor-gv5KgSFC.js} +10 -10
- package/dist/browser/{bootIntercom-C3QDF5oB.js → bootIntercom-DSN5Oxb8.js} +3 -3
- package/dist/browser/bundle.json +75 -69
- package/dist/browser/{camera-events-C6Dmf2wR.js → camera-events-BzzhQV7p.js} +1 -1
- package/dist/browser/{classnames-BS1IM9A-.js → classnames-DaTJg5Ke.js} +2 -2
- package/dist/browser/{client-ezZAHjfj.js → client-DXynaRJh.js} +6 -6
- package/dist/browser/{components-PA3hCLCa.js → components-BJkZsl-J.js} +169 -170
- package/dist/browser/{debug-context-DiTR6Py6.js → debug-context-DafSJe6V.js} +6 -6
- package/dist/browser/{debug-overlay-DD5gUmO6.js → debug-overlay-Cnht9M1f.js} +11 -11
- package/dist/browser/{debug-ui-CWBuocQN.js → debug-ui-CfgbL90e.js} +7 -7
- package/dist/browser/{dimming-Ds9fAjfB.js → dimming-BTSxZdFU.js} +9 -9
- package/dist/browser/{dist-DBuzYqpa.js → dist-C5PCsTLB.js} +3 -3
- package/dist/browser/{dist-CQxqEb-6.js → dist-CyuhMWuJ.js} +7 -7
- package/dist/browser/{dist-D-q_r1-V.js → dist-TUAZaqFf.js} +6 -6
- package/dist/browser/{efp-debug-init-Co9uXMuX.js → efp-debug-init-Dmuf0OD9.js} +4 -4
- package/dist/browser/{enum-editor-LWVu-JIK.js → enum-editor-DhSd_imG.js} +5 -5
- package/dist/browser/{es5-DGb5TwpZ.js → es5-DjAesjxT.js} +2 -2
- package/dist/browser/event-head-CQJFTgLp.js +56 -0
- package/dist/browser/event-not-found-BD8VwBEd.js +31 -0
- package/dist/browser/{exports-B-6KjI9h.js → exports-BWxS7e8x.js} +1 -1
- package/dist/browser/{favicon-CWCPCNM-.js → favicon-knUtM628.js} +1 -1
- package/dist/browser/{fetch-retry.umd-kGON8ji6.js → fetch-retry.umd-DW0ekhe-.js} +2 -2
- package/dist/browser/{flex-DqcWgHRa.js → flex-Di6JEi7f.js} +6 -6
- package/dist/browser/{floorplan.loader-BRvRi40U.js → floorplan.loader-yNOwUjHQ.js} +602 -592
- package/dist/browser/{floorplan.ready-B9-MIw8B.js → floorplan.ready-C1R3whps.js} +338 -335
- package/dist/browser/{fuse-BXW5RuhW.js → fuse-CklOJAb0.js} +2 -2
- package/dist/browser/{i18n-D80X6LMz.js → i18n-DOTxhE5G.js} +6 -6
- package/dist/browser/index.js +54 -49
- package/dist/browser/{index.module-DNr0maw3.js → index.module-mXl8MtT3.js} +4 -4
- package/dist/browser/{integrateKiosk-BL84U1ZL.js → integrateKiosk-b2AMRK5l.js} +5 -5
- package/dist/browser/is-own-domain-BZ3_6LnT.js +26 -0
- package/dist/browser/{is-webview-CA6ivKK_.js → is-webview-BwUFYV3U.js} +1 -1
- package/dist/browser/{jsx-runtime-BT50TP7_.js → jsx-runtime-BUFDOCAr.js} +2 -2
- package/dist/browser/{kiosk-record-QoK8Mq08.js → kiosk-record-Dx28-RL0.js} +1 -1
- package/dist/browser/{lib-Dn401ByH.js → lib-BSoYmy6y.js} +3 -3
- package/dist/browser/{loadImage-BaHKwI_N.js → loadImage-CT_B_63i.js} +4 -4
- package/dist/browser/{logDeviceInfo-Btc7mU_S.js → logDeviceInfo-D5aYLPIp.js} +9 -9
- package/dist/browser/{mobx-c2h1ijB_.js → mobx-DmvJdfvB.js} +4 -4
- package/dist/browser/{optional-boolean-editor-DkXbwHPW.js → optional-boolean-editor-DQP8ScA6.js} +4 -4
- package/dist/browser/{optional-enum-editor-D6J8s67w.js → optional-enum-editor-CK8QdwSw.js} +5 -5
- package/dist/browser/{optional-string-editor-DvlDx9cr.js → optional-string-editor-DXnEx_OV.js} +5 -5
- package/dist/browser/{particles.min-BlF_1zig.js → particles.min-DTfxDQ63.js} +2 -2
- package/dist/browser/{react-CTNuj5uG.js → react-BYD9sU4s.js} +2 -2
- package/dist/browser/{react-dom-Dd-QC57h.js → react-dom-DcdoI_pK.js} +3 -3
- package/dist/browser/{rolldown-runtime-BkVgj4VA.js → rolldown-runtime-D02yMjJw.js} +1 -1
- package/dist/browser/{scheduler-BGogpU6B.js → scheduler-CHcj0Ili.js} +2 -2
- package/dist/browser/{select-CNUhWDWs.js → select-CVLafnyq.js} +11 -11
- package/dist/browser/{settings-DNaOj9LN.js → settings-DTliQPIF.js} +2 -2
- package/dist/browser/{settings-item-Bb1ifzkN.js → settings-item-CSulAbWO.js} +7 -7
- package/dist/browser/{store-CpViG4ds.js → store-hAR4IdGb.js} +36 -43
- package/dist/browser/{string-editor-BwfOcpmc.js → string-editor-Bjapa7B7.js} +5 -5
- package/dist/browser/{text-field-BS3w11vk.js → text-field-dygdoVbb.js} +6 -6
- package/dist/browser/{theme-jH8ml6K6.js → theme-mpY9s4gk.js} +9 -9
- package/dist/browser/{ui-Bbl-WJZx.js → ui-B7DDzAAp.js} +9 -9
- package/dist/browser/{useRenderTarget-BX8tGScr.js → useRenderTarget-M5MRh8Ft.js} +5 -5
- package/dist/browser/{viewport-COvScbd2.js → viewport-DOv49fSW.js} +3 -3
- package/dist/esm/_misc_to_move/initHtmlHead.js +1 -1
- package/dist/esm/components/SearchBox.d.ts +1 -2
- package/dist/esm/components/SearchBox.js +1 -1
- package/dist/esm/load.js +11 -11
- package/dist/esm/services/url-dispatch.js +1 -1
- package/dist/esm/tools/event-not-found.js +1 -1
- package/dist/esm/utils/brand.d.ts +18 -0
- package/dist/esm/utils/brand.js +1 -0
- package/dist/esm/utils/event-head.d.ts +38 -0
- package/dist/esm/utils/event-head.js +1 -0
- package/dist/esm/utils/event-title.d.ts +19 -0
- package/dist/esm/utils/event-title.js +1 -0
- package/dist/esm/utils/is-own-domain.d.ts +12 -0
- package/dist/esm/utils/is-own-domain.js +1 -0
- package/package.json +10 -10
- package/dist/browser/event-not-found-zFibfbER.js +0 -29
|
@@ -1,43 +1,44 @@
|
|
|
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.35.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.35.2" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "29145e35-6870-406f-85aa-39cbd17e465b", e._sentryDebugIdIdentifier = "sentry-dbid-29145e35-6870-406f-85aa-39cbd17e465b");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t,
|
|
11
|
-
import { At as
|
|
12
|
-
import { s as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
9
|
+
import { r as e } from "./rolldown-runtime-D02yMjJw.js";
|
|
10
|
+
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l } from "./floorplan.loader-yNOwUjHQ.js";
|
|
11
|
+
import { At as u, Bt as d, Ct as f, Dt as ee, Et as te, Ft as ne, H as re, It as ie, K as ae, Lt as oe, Mt as se, Nt as ce, Ot as le, Pt as ue, Rt as p, St as de, Tt as fe, U as pe, W as me, _t as he, bt as ge, et as _e, f as ve, ft as m, ht as ye, jt as be, kt as xe, l as h, lt as Se, mt as Ce, n as we, o as Te, pt as Ee, r as De, rt as g, ut as Oe, v as ke, vt as Ae, w as _, wt as je, xt as Me, y as Ne, zt as v } from "./i18n-DOTxhE5G.js";
|
|
12
|
+
import { s as Pe } from "./efp-debug-init-Dmuf0OD9.js";
|
|
13
|
+
import { t as Fe } from "./react-BYD9sU4s.js";
|
|
14
|
+
import { t as Ie } from "./jsx-runtime-BUFDOCAr.js";
|
|
15
|
+
import { r as Le } from "./loadImage-CT_B_63i.js";
|
|
16
|
+
import { n as Re, t as ze } from "./is-own-domain-BZ3_6LnT.js";
|
|
17
|
+
import { C as y, D as Be, Q as Ve, ht as b, i as He, n as Ue, w as We } from "./exports-BWxS7e8x.js";
|
|
18
|
+
import { t as Ge } from "./client-DXynaRJh.js";
|
|
19
|
+
import { i as Ke, n as qe, r as x, t as Je } from "./components-BJkZsl-J.js";
|
|
20
|
+
import { $ as Ye, C as S, E as Xe, En as C, G as Ze, H as Qe, J as $e, N as et, P as w, Pn as tt, Q as nt, Rt as rt, S as it, Sn as at, T, U as E, V as D, Z as ot, at as st, bn as ct, c as O, cn as k, ct as lt, dn as A, dt as ut, fn as dt, ft, it as j, j as pt, l as M, lt as N, ot as mt, pt as ht, q as P, rn as F, sn as gt, st as _t, w as vt, y as yt } from "./store-hAR4IdGb.js";
|
|
21
|
+
import { n as bt, t as xt } from "./integrateKiosk-b2AMRK5l.js";
|
|
21
22
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
22
|
-
function
|
|
23
|
-
let
|
|
23
|
+
function I(e = {}) {
|
|
24
|
+
let n = r.document, i = (n == null ? void 0 : n.head) || (n == null ? void 0 : n.body);
|
|
24
25
|
if (!i) {
|
|
25
|
-
|
|
26
|
+
s && b.error("[showReportDialog] Global document not defined");
|
|
26
27
|
return;
|
|
27
28
|
}
|
|
28
|
-
let
|
|
29
|
+
let a = We(), o = y(), c = o == null ? void 0 : o.getDsn();
|
|
29
30
|
if (!c) {
|
|
30
|
-
|
|
31
|
+
s && b.error("[showReportDialog] DSN not configured");
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
34
|
let l = {
|
|
34
35
|
...e,
|
|
35
36
|
user: {
|
|
36
|
-
...
|
|
37
|
+
...a.getUser(),
|
|
37
38
|
...e.user
|
|
38
39
|
},
|
|
39
|
-
eventId: e.eventId ||
|
|
40
|
-
}, u =
|
|
40
|
+
eventId: e.eventId || He()
|
|
41
|
+
}, u = r.document.createElement("script");
|
|
41
42
|
u.async = !0, u.crossOrigin = "anonymous", u.src = t(c, l);
|
|
42
43
|
let { onLoad: d, onClose: f } = l;
|
|
43
44
|
if (d && (u.onload = d), f) {
|
|
@@ -45,21 +46,21 @@ function vt(e = {}) {
|
|
|
45
46
|
if (t.data === "__sentry_reportdialog_closed__") try {
|
|
46
47
|
f();
|
|
47
48
|
} finally {
|
|
48
|
-
|
|
49
|
+
r.removeEventListener("message", e);
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
|
-
|
|
52
|
+
r.addEventListener("message", e);
|
|
52
53
|
}
|
|
53
54
|
i.appendChild(u);
|
|
54
55
|
}
|
|
55
56
|
//#endregion
|
|
56
57
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/error.js
|
|
57
|
-
var
|
|
58
|
-
function
|
|
58
|
+
var L = /* @__PURE__ */ e(Fe());
|
|
59
|
+
function St(e) {
|
|
59
60
|
let t = e.match(/^([^.]+)/);
|
|
60
61
|
return t !== null && parseInt(t[0]) >= 17;
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function Ct(e, t) {
|
|
63
64
|
let n = /* @__PURE__ */ new WeakSet();
|
|
64
65
|
function r(e, t) {
|
|
65
66
|
if (!n.has(e)) {
|
|
@@ -69,25 +70,25 @@ function bt(e, t) {
|
|
|
69
70
|
}
|
|
70
71
|
r(e, t);
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
73
|
+
function wt(e, { componentStack: t }, n) {
|
|
74
|
+
if (St(L.version) && Ve(e) && t) {
|
|
74
75
|
let n = Error(e.message);
|
|
75
|
-
n.name = `React ErrorBoundary ${e.name}`, n.stack = t,
|
|
76
|
+
n.name = `React ErrorBoundary ${e.name}`, n.stack = t, Ct(e, n);
|
|
76
77
|
}
|
|
77
|
-
return
|
|
78
|
+
return Ue(e, n);
|
|
78
79
|
}
|
|
79
80
|
//#endregion
|
|
80
81
|
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/debug-build.js
|
|
81
|
-
var
|
|
82
|
+
var Tt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, R = {
|
|
82
83
|
componentStack: null,
|
|
83
84
|
error: null,
|
|
84
85
|
eventId: null
|
|
85
|
-
},
|
|
86
|
+
}, Et = class extends L.Component {
|
|
86
87
|
constructor(e) {
|
|
87
|
-
super(e), this.state =
|
|
88
|
+
super(e), this.state = R, this._openFallbackReportDialog = !0;
|
|
88
89
|
let t = y();
|
|
89
90
|
t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
|
|
90
|
-
!t.type && this._lastEventId && t.event_id === this._lastEventId &&
|
|
91
|
+
!t.type && this._lastEventId && t.event_id === this._lastEventId && I({
|
|
91
92
|
...e.dialogOptions,
|
|
92
93
|
eventId: this._lastEventId
|
|
93
94
|
});
|
|
@@ -95,13 +96,13 @@ var St = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = {
|
|
|
95
96
|
}
|
|
96
97
|
componentDidCatch(e, t) {
|
|
97
98
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
98
|
-
|
|
99
|
+
Be((s) => {
|
|
99
100
|
r && r(s, e, n);
|
|
100
|
-
let c =
|
|
101
|
+
let c = wt(e, t, { mechanism: {
|
|
101
102
|
handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
|
|
102
103
|
type: "auto.function.react.error_boundary"
|
|
103
104
|
} });
|
|
104
|
-
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog &&
|
|
105
|
+
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && I({
|
|
105
106
|
...o,
|
|
106
107
|
eventId: c
|
|
107
108
|
})), this.setState({
|
|
@@ -117,37 +118,37 @@ var St = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = {
|
|
|
117
118
|
}
|
|
118
119
|
componentWillUnmount() {
|
|
119
120
|
let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
|
|
120
|
-
r && (this.state ===
|
|
121
|
+
r && (this.state === R ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
|
|
121
122
|
}
|
|
122
123
|
resetErrorBoundary() {
|
|
123
124
|
let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
|
|
124
|
-
e && e(t, n, r), this.setState(
|
|
125
|
+
e && e(t, n, r), this.setState(R);
|
|
125
126
|
}
|
|
126
127
|
render() {
|
|
127
128
|
let { fallback: e, children: t } = this.props, n = this.state;
|
|
128
129
|
if (n.componentStack === null) return typeof t == "function" ? t() : t;
|
|
129
|
-
let r = typeof e == "function" ?
|
|
130
|
+
let r = typeof e == "function" ? L.createElement(e, {
|
|
130
131
|
error: n.error,
|
|
131
132
|
componentStack: n.componentStack,
|
|
132
133
|
resetError: () => this.resetErrorBoundary(),
|
|
133
134
|
eventId: n.eventId
|
|
134
135
|
}) : e;
|
|
135
|
-
return
|
|
136
|
+
return L.isValidElement(r) ? r : (e && Tt && b.warn("fallback did not produce a valid ReactElement"), null);
|
|
136
137
|
}
|
|
137
|
-
},
|
|
138
|
-
function
|
|
138
|
+
}, Dt = /* @__PURE__ */ e(Pe(), 1), Ot = Ge(), kt = tt();
|
|
139
|
+
function At(e) {
|
|
139
140
|
var t;
|
|
140
|
-
let n = new URLSearchParams(window.location.search).get(
|
|
141
|
-
return i == null ?
|
|
141
|
+
let n = new URLSearchParams(window.location.search).get(re), r = h ? window.localStorage.getItem(re) : null, i = n == null ? r : n;
|
|
142
|
+
return i == null ? h && Ye() != null || Object.keys((t = e.kiosk) == null ? {} : t).length > 0 : i === "1";
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function jt() {
|
|
144
145
|
let e = window.location.hostname.split(".");
|
|
145
146
|
return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
|
|
146
147
|
}
|
|
147
|
-
function
|
|
148
|
-
return
|
|
148
|
+
function Mt() {
|
|
149
|
+
return jt() ? window.location.hostname.split(".")[0] : "main";
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
+
function Nt(e) {
|
|
151
152
|
if ((e == null ? void 0 : e.free) === !0) return "Free";
|
|
152
153
|
let t = e == null ? void 0 : e.trialExpiresAt;
|
|
153
154
|
if (t) {
|
|
@@ -156,25 +157,25 @@ function kt(e) {
|
|
|
156
157
|
}
|
|
157
158
|
return "Active";
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
+
function Pt() {
|
|
160
161
|
return !1;
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
+
function Ft(e) {
|
|
163
164
|
return e;
|
|
164
165
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
let t =
|
|
168
|
-
subDomain:
|
|
169
|
-
subscriptionStatus:
|
|
166
|
+
function It(e) {
|
|
167
|
+
if (Pt() || !jt() || At(e) || !window.navigator.onLine) return null;
|
|
168
|
+
let t = Ft({
|
|
169
|
+
subDomain: Mt(),
|
|
170
|
+
subscriptionStatus: Nt(e)
|
|
170
171
|
});
|
|
171
172
|
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
172
173
|
}
|
|
173
174
|
//#endregion
|
|
174
175
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
175
|
-
var z = /*@__PURE__*/
|
|
176
|
+
var z = /*@__PURE__*/ v("ZodMiniType", (e, t) => {
|
|
176
177
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
177
|
-
|
|
178
|
+
be.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => se(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => ue(e, t, n), e.parseAsync = async (t, n) => ce(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ne(e, t, n), e.check = (...n) => {
|
|
178
179
|
var r;
|
|
179
180
|
return e.clone({
|
|
180
181
|
...t,
|
|
@@ -184,95 +185,95 @@ var z = /*@__PURE__*/ _("ZodMiniType", (e, t) => {
|
|
|
184
185
|
onattach: []
|
|
185
186
|
} } : e)]
|
|
186
187
|
}, { parent: !0 });
|
|
187
|
-
}, e.with = e.check, e.clone = (t, n) =>
|
|
188
|
-
}),
|
|
189
|
-
|
|
188
|
+
}, e.with = e.check, e.clone = (t, n) => ie(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
189
|
+
}), Lt = /*@__PURE__*/ v("ZodMiniString", (e, t) => {
|
|
190
|
+
u.init(e, t), z.init(e, t);
|
|
190
191
|
});
|
|
191
192
|
// @__NO_SIDE_EFFECTS__
|
|
192
|
-
function
|
|
193
|
-
return
|
|
193
|
+
function Rt(e) {
|
|
194
|
+
return f(Lt, e);
|
|
194
195
|
}
|
|
195
|
-
var
|
|
196
|
-
|
|
196
|
+
var zt = /*@__PURE__*/ v("ZodMiniNumber", (e, t) => {
|
|
197
|
+
ee.init(e, t), z.init(e, t);
|
|
197
198
|
});
|
|
198
199
|
// @__NO_SIDE_EFFECTS__
|
|
199
200
|
function B(e) {
|
|
200
|
-
return
|
|
201
|
+
return Me(zt, e);
|
|
201
202
|
}
|
|
202
|
-
var
|
|
203
|
-
|
|
203
|
+
var Bt = /*@__PURE__*/ v("ZodMiniNever", (e, t) => {
|
|
204
|
+
te.init(e, t), z.init(e, t);
|
|
204
205
|
});
|
|
205
206
|
// @__NO_SIDE_EFFECTS__
|
|
206
|
-
function
|
|
207
|
-
return
|
|
207
|
+
function Vt(e) {
|
|
208
|
+
return ge(Bt, e);
|
|
208
209
|
}
|
|
209
|
-
var
|
|
210
|
-
|
|
210
|
+
var Ht = /*@__PURE__*/ v("ZodMiniArray", (e, t) => {
|
|
211
|
+
je.init(e, t), z.init(e, t);
|
|
211
212
|
});
|
|
212
213
|
// @__NO_SIDE_EFFECTS__
|
|
213
|
-
function
|
|
214
|
-
return new
|
|
214
|
+
function Ut(e, t) {
|
|
215
|
+
return new Ht({
|
|
215
216
|
type: "array",
|
|
216
217
|
element: e,
|
|
217
|
-
...
|
|
218
|
+
...p(t)
|
|
218
219
|
});
|
|
219
220
|
}
|
|
220
|
-
var
|
|
221
|
-
|
|
221
|
+
var Wt = /*@__PURE__*/ v("ZodMiniObject", (e, t) => {
|
|
222
|
+
le.init(e, t), z.init(e, t), oe(e, "shape", () => t.shape);
|
|
222
223
|
});
|
|
223
224
|
// @__NO_SIDE_EFFECTS__
|
|
224
225
|
function V(e, t) {
|
|
225
|
-
return new
|
|
226
|
+
return new Wt({
|
|
226
227
|
type: "object",
|
|
227
228
|
shape: e,
|
|
228
|
-
catchall: /* @__PURE__ */
|
|
229
|
-
...
|
|
229
|
+
catchall: /* @__PURE__ */ Vt(),
|
|
230
|
+
...p(t)
|
|
230
231
|
});
|
|
231
232
|
}
|
|
232
|
-
var
|
|
233
|
-
|
|
233
|
+
var Gt = /*@__PURE__*/ v("ZodMiniOptional", (e, t) => {
|
|
234
|
+
xe.init(e, t), z.init(e, t);
|
|
234
235
|
});
|
|
235
236
|
// @__NO_SIDE_EFFECTS__
|
|
236
237
|
function H(e) {
|
|
237
|
-
return new
|
|
238
|
+
return new Gt({
|
|
238
239
|
type: "optional",
|
|
239
240
|
innerType: e
|
|
240
241
|
});
|
|
241
242
|
}
|
|
242
|
-
var
|
|
243
|
-
|
|
243
|
+
var Kt = /*@__PURE__*/ v("ZodMiniCustom", (e, t) => {
|
|
244
|
+
fe.init(e, t), z.init(e, t);
|
|
244
245
|
});
|
|
245
246
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
247
|
-
return
|
|
247
|
+
function qt(e, t = {}) {
|
|
248
|
+
return de(Kt, e, t);
|
|
248
249
|
}
|
|
249
250
|
//#endregion
|
|
250
251
|
//#region src/schemas/sdk.schemas.ts
|
|
251
|
-
var
|
|
252
|
+
var Jt = /* @__PURE__ */ V({
|
|
252
253
|
x: /* @__PURE__ */ B(),
|
|
253
254
|
y: /* @__PURE__ */ B()
|
|
254
|
-
}),
|
|
255
|
-
leftTop:
|
|
256
|
-
rightBottom:
|
|
257
|
-
}),
|
|
258
|
-
name: /* @__PURE__ */ H(/* @__PURE__ */
|
|
259
|
-
externalId: /* @__PURE__ */ H(/* @__PURE__ */
|
|
260
|
-
})).check(/* @__PURE__ */
|
|
261
|
-
booths: /* @__PURE__ */ H(/* @__PURE__ */
|
|
262
|
-
exhibitors: /* @__PURE__ */ H(/* @__PURE__ */
|
|
263
|
-
})).check(/* @__PURE__ */
|
|
255
|
+
}), Yt = /* @__PURE__ */ V({
|
|
256
|
+
leftTop: Jt,
|
|
257
|
+
rightBottom: Jt
|
|
258
|
+
}), Xt = (/* @__PURE__ */ V({
|
|
259
|
+
name: /* @__PURE__ */ H(/* @__PURE__ */ Rt()),
|
|
260
|
+
externalId: /* @__PURE__ */ H(/* @__PURE__ */ Rt())
|
|
261
|
+
})).check(/* @__PURE__ */ qt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Zt = (/* @__PURE__ */ V({
|
|
262
|
+
booths: /* @__PURE__ */ H(/* @__PURE__ */ Ut(Xt)),
|
|
263
|
+
exhibitors: /* @__PURE__ */ H(/* @__PURE__ */ Ut(Xt))
|
|
264
|
+
})).check(/* @__PURE__ */ qt((e) => {
|
|
264
265
|
var t, n;
|
|
265
266
|
return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
|
|
266
|
-
}, "Selector must contain booths or exhibitors")),
|
|
267
|
+
}, "Selector must contain booths or exhibitors")), Qt = /* @__PURE__ */ H(/* @__PURE__ */ V({ padding: /* @__PURE__ */ H(/* @__PURE__ */ B()) }));
|
|
267
268
|
//#endregion
|
|
268
269
|
//#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
|
|
269
|
-
function
|
|
270
|
-
let t =
|
|
271
|
-
Object.values(t).length && (
|
|
270
|
+
function $t(e) {
|
|
271
|
+
let t = yt(e);
|
|
272
|
+
Object.values(t).length && (xt(t, !1), bt(t));
|
|
272
273
|
}
|
|
273
274
|
//#endregion
|
|
274
275
|
//#region src/utils/getMostFrequent.ts
|
|
275
|
-
function
|
|
276
|
+
function en(e) {
|
|
276
277
|
let t = {}, n = 0, r;
|
|
277
278
|
return e.forEach((e) => {
|
|
278
279
|
t[e] = (t[e] || 0) + 1, t[e] > n && (n = t[e], r = e);
|
|
@@ -280,66 +281,66 @@ function Xt(e) {
|
|
|
280
281
|
}
|
|
281
282
|
//#endregion
|
|
282
283
|
//#region src/services/multi-slug.ts
|
|
283
|
-
function
|
|
284
|
+
function tn(e, t) {
|
|
284
285
|
if (!e.includes("&") && !e.includes("%26")) return null;
|
|
285
|
-
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !
|
|
286
|
+
let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !m(e).includes("=");
|
|
286
287
|
return i.filter(a).length < 2 ? null : "?" + i.map((e) => a(e) && t(e) || e).join("&");
|
|
287
288
|
}
|
|
288
289
|
//#endregion
|
|
289
290
|
//#region src/services/url-dispatch.ts
|
|
290
291
|
var U = !1;
|
|
291
|
-
function
|
|
292
|
-
K(
|
|
293
|
-
let e =
|
|
294
|
-
Object.keys(e).length &&
|
|
295
|
-
let t =
|
|
296
|
-
Object.keys(t).length &&
|
|
292
|
+
function nn() {
|
|
293
|
+
K(d()), _(() => O.layerStore.layersLoaded, () => {
|
|
294
|
+
let e = d().camera;
|
|
295
|
+
Object.keys(e).length && bn(x(e));
|
|
296
|
+
let t = d().visibility;
|
|
297
|
+
Object.keys(t).length && M.setVisibility(t);
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
300
|
+
function rn(e) {
|
|
301
|
+
_t({
|
|
301
302
|
offHistory: e,
|
|
302
303
|
onNavigate: G
|
|
303
|
-
}),
|
|
304
|
-
|
|
304
|
+
}), ln(), W(), _(() => O.layerStore.layersLoaded, () => {
|
|
305
|
+
O.urlFilterManager && !O.urlFilterManager.isInitialized && O.urlFilterManager.initialize(), G(), ve(yn), ve(_n), M.viewerMode && (M.menu = !0);
|
|
305
306
|
});
|
|
306
307
|
}
|
|
307
|
-
function
|
|
308
|
-
|
|
308
|
+
function an(e = "") {
|
|
309
|
+
N("?" + m(e.toString())), O.layerStore.layersLoaded ? on(e) : (W(), _(() => O.layerStore.layersLoaded, () => on(e)));
|
|
309
310
|
}
|
|
310
|
-
function
|
|
311
|
+
function on(e) {
|
|
311
312
|
var t, n;
|
|
312
|
-
let r = "?" +
|
|
313
|
-
visibility:
|
|
314
|
-
consent:
|
|
315
|
-
intents:
|
|
313
|
+
let r = "?" + m(e), a = pn(r), o = [...(t = a.intents) == null ? [] : t, ...Ce(r).intents], { intents: s = [], ...c } = Ee(r, {
|
|
314
|
+
visibility: a.visibility,
|
|
315
|
+
consent: a.consent,
|
|
316
|
+
intents: o
|
|
316
317
|
});
|
|
317
|
-
K(
|
|
318
|
-
let l = (n =
|
|
319
|
-
l &&
|
|
320
|
-
let u = [...
|
|
321
|
-
u.length &&
|
|
318
|
+
K(a), K(c);
|
|
319
|
+
let l = (n = a.consent) == null ? c.consent : n;
|
|
320
|
+
l && $e(l), a.camera && Object.keys(a.camera).length && bn(x(a.camera)), a.visibility && Object.keys(a.visibility).length && M.setVisibility(a.visibility), ln(), G();
|
|
321
|
+
let u = [...o, ...s];
|
|
322
|
+
u.length && i(O.fp, u);
|
|
322
323
|
}
|
|
323
324
|
function W() {
|
|
324
|
-
let e =
|
|
325
|
-
return
|
|
325
|
+
let e = j();
|
|
326
|
+
return qe(e.length > 1 ? m(e.substring(1)) : "");
|
|
326
327
|
}
|
|
327
328
|
function G() {
|
|
328
329
|
U = !0;
|
|
329
330
|
try {
|
|
330
|
-
|
|
331
|
-
let { primary: e } =
|
|
332
|
-
!W() && !t &&
|
|
331
|
+
$t(new URLSearchParams(m(window.location.search)));
|
|
332
|
+
let { primary: e } = Se(j()), t = e.type === "select" && (!e.slug || /^t=[^&]*$/.test(e.slug)) && (M.heatmap || M.heatmapYah);
|
|
333
|
+
!W() && !t && sn(e);
|
|
333
334
|
} finally {
|
|
334
335
|
U = !1;
|
|
335
336
|
}
|
|
336
|
-
|
|
337
|
+
_n(), yn();
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
-
let t =
|
|
339
|
+
function sn(e) {
|
|
340
|
+
let t = O.fp;
|
|
340
341
|
switch (e.type) {
|
|
341
342
|
case "kiosk":
|
|
342
|
-
e.enabled !== null &&
|
|
343
|
+
e.enabled !== null && ht(M, e.enabled);
|
|
343
344
|
return;
|
|
344
345
|
case "list":
|
|
345
346
|
t.showList(e.list);
|
|
@@ -356,13 +357,13 @@ function nn(e) {
|
|
|
356
357
|
return;
|
|
357
358
|
case "route":
|
|
358
359
|
var n, r;
|
|
359
|
-
|
|
360
|
+
O.routeStore.setOnlyAccessible(e.accessible), O.routeStore.selectRoute(vt((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), O.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && O.uiState.setRouteTitle(e.title);
|
|
360
361
|
return;
|
|
361
362
|
case "selectExhibitors":
|
|
362
363
|
setTimeout(() => t.selectExhibitor(e.values), 250);
|
|
363
364
|
return;
|
|
364
365
|
case "ownedByFilters":
|
|
365
|
-
|
|
366
|
+
Le.log("Skipping filter parameters in dispatchFromUrl (owned by URLFilterManager)");
|
|
366
367
|
return;
|
|
367
368
|
case "ownedByConfig": return;
|
|
368
369
|
case "select":
|
|
@@ -370,88 +371,88 @@ function nn(e) {
|
|
|
370
371
|
return;
|
|
371
372
|
}
|
|
372
373
|
}
|
|
373
|
-
function
|
|
374
|
-
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i =
|
|
375
|
-
if (
|
|
376
|
-
let e =
|
|
377
|
-
e &&
|
|
378
|
-
}
|
|
379
|
-
(n.length > 0 || r.length > 0) &&
|
|
380
|
-
|
|
374
|
+
function cn(e) {
|
|
375
|
+
let { pathwayId: t, boothIds: n, exhibitorIds: r } = e, i = O.boothStore.booths.filter((e) => n.includes(e.externalId)), a = O.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), o = [...i, ...a];
|
|
376
|
+
if (dt()) {
|
|
377
|
+
let e = en(o.map((e) => e.layer.name));
|
|
378
|
+
e && O.fp.activateFloor({ name: e });
|
|
379
|
+
}
|
|
380
|
+
(n.length > 0 || r.length > 0) && O.fp.highlightEntities([...n, ...r]), O.layerStore.showPathWay(t), o.length > 0 && Ne(() => {
|
|
381
|
+
O.uiState.moveToRect = C.fromUnion(...o.map((e) => e.rect).filter(Boolean)), O.uiState.rollReset = !0;
|
|
381
382
|
});
|
|
382
383
|
}
|
|
383
|
-
function
|
|
384
|
-
let { oneShots: e } =
|
|
385
|
-
for (let t of e)
|
|
386
|
-
let t =
|
|
387
|
-
t !== null &&
|
|
384
|
+
function ln() {
|
|
385
|
+
let { oneShots: e } = Se(j());
|
|
386
|
+
for (let t of e) un(t);
|
|
387
|
+
let t = Qe(j());
|
|
388
|
+
t !== null && N("?" + t), M.previewExhibitor && N("?" + M.previewExhibitor.slug), fn();
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
+
function un(e) {
|
|
390
391
|
switch (e.type) {
|
|
391
392
|
case "heatmap":
|
|
392
|
-
|
|
393
|
+
dn(e.yah);
|
|
393
394
|
return;
|
|
394
395
|
case "blueDot": {
|
|
395
396
|
var t, n;
|
|
396
|
-
let r = new
|
|
397
|
-
|
|
397
|
+
let r = new it(e.x, e.y, (t = O.layerStore.findLayer((n = e.layer) == null ? "" : n)) == null ? void 0 : t.name, void 0, e.lat, e.lng);
|
|
398
|
+
_(() => O.layerStore.layersLoaded, () => O.routeStore.selectCurrentPosition(r, !0, 1));
|
|
398
399
|
return;
|
|
399
400
|
}
|
|
400
401
|
case "viewerMode":
|
|
401
|
-
|
|
402
|
+
h && (e.enabled ? localStorage.setItem(g, "true") : (localStorage.removeItem(g), localStorage.removeItem(ae)));
|
|
402
403
|
return;
|
|
403
404
|
case "previewMode":
|
|
404
|
-
|
|
405
|
+
h && (e.enabled ? localStorage.setItem(_e, "true") : (localStorage.removeItem(_e), localStorage.removeItem(me)));
|
|
405
406
|
return;
|
|
406
407
|
case "uiScale":
|
|
407
|
-
e.scale === null ?
|
|
408
|
+
e.scale === null ? Le.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : O.uiState.setUIScale(e.scale, !0);
|
|
408
409
|
return;
|
|
409
410
|
case "resetUiScale":
|
|
410
|
-
|
|
411
|
+
O.uiState.resetUIScale();
|
|
411
412
|
return;
|
|
412
413
|
}
|
|
413
414
|
}
|
|
414
|
-
function
|
|
415
|
-
|
|
415
|
+
function dn(e) {
|
|
416
|
+
mt(), e ? (M.heatmapYah = !0, M.monochrome = !0, M.hideLogoInBooth = !0, M.hideHeaderLogo = !0, M.disableBookmarked = !0) : M.heatmap = !0;
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
-
let e =
|
|
419
|
-
let t =
|
|
418
|
+
function fn() {
|
|
419
|
+
let e = tn(j(), (e) => {
|
|
420
|
+
let t = O.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
|
|
420
421
|
return t == null ? void 0 : t.name;
|
|
421
422
|
});
|
|
422
|
-
e !== null &&
|
|
423
|
+
e !== null && N(e);
|
|
423
424
|
}
|
|
424
425
|
function K(e) {
|
|
425
|
-
e.noOverlay !== void 0 && (
|
|
426
|
+
e.noOverlay !== void 0 && (M.hideOverlay = e.noOverlay), e.monochrome && (M.monochrome = !0), e.hideHeaderLogo && (M.hideHeaderLogo = !0), e.hideLogoInBooth && (M.hideLogoInBooth = !0), e.disableFeatured && O.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (M.disableBookmarked = !0), e.disableGps && O.routeStore.setGpsTrackingEnabled(!1), e.heatmap && a(e.heatmap) && dn(e.heatmap.variant === "yah");
|
|
426
427
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
428
|
+
function pn(e) {
|
|
429
|
+
return ye(he, e).value;
|
|
429
430
|
}
|
|
430
|
-
var
|
|
431
|
-
function
|
|
432
|
-
let { selection: e, exhibitor: t, booth: n, eventItem: r } =
|
|
431
|
+
var mn = null, hn = null, gn = null;
|
|
432
|
+
function _n() {
|
|
433
|
+
let { selection: e, exhibitor: t, booth: n, eventItem: r } = vn(), i = O.urlFilterManager.filterSearch();
|
|
433
434
|
if (U) return;
|
|
434
|
-
let a =
|
|
435
|
-
|
|
435
|
+
let a = Oe(e) || i;
|
|
436
|
+
j() !== a && (t !== mn || n !== hn || r !== gn ? lt(a) : N(a), mn = t, hn = n, gn = r);
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
-
let e =
|
|
438
|
+
function vn() {
|
|
439
|
+
let e = M.selectedExhibitor, t = M.selectedBooth, n = M.selectedEventItem, r = M.selectedRoute, i = M.selectedSpeaker, a = M.setKioskModeEnabled, o = M.list, s;
|
|
439
440
|
if (o.type === "route-planner" && !e && !t && !n) {
|
|
440
441
|
var c;
|
|
441
|
-
let e =
|
|
442
|
+
let e = O.routePlannerStore;
|
|
442
443
|
s = {
|
|
443
444
|
type: "planner",
|
|
444
445
|
fromBookmarks: e.source === "bookmarks",
|
|
445
446
|
items: e.items.map((e) => e.entity.slug).filter(Boolean),
|
|
446
447
|
from: ((c = e.startPoint) == null ? void 0 : c.slug) || void 0
|
|
447
448
|
};
|
|
448
|
-
} else if (r && !
|
|
449
|
+
} else if (r && !M.isMultiPointRoute) {
|
|
449
450
|
var l;
|
|
450
451
|
s = {
|
|
451
452
|
type: "route",
|
|
452
|
-
to: r.to instanceof
|
|
453
|
-
from: r.from instanceof
|
|
454
|
-
accessible:
|
|
453
|
+
to: r.to instanceof k ? r.to.slug : void 0,
|
|
454
|
+
from: r.from instanceof k ? r.from.slug : void 0,
|
|
455
|
+
accessible: O.routeStore.onlyAccessible,
|
|
455
456
|
waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
|
|
456
457
|
};
|
|
457
458
|
} else if (e) s = {
|
|
@@ -488,7 +489,7 @@ function mn() {
|
|
|
488
489
|
var u, d;
|
|
489
490
|
s = {
|
|
490
491
|
type: "slug",
|
|
491
|
-
slug: (u = (d =
|
|
492
|
+
slug: (u = (d = M.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
|
|
492
493
|
};
|
|
493
494
|
break;
|
|
494
495
|
case "search":
|
|
@@ -519,15 +520,17 @@ function mn() {
|
|
|
519
520
|
eventItem: n
|
|
520
521
|
};
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
-
|
|
524
|
-
|
|
523
|
+
function yn() {
|
|
524
|
+
var e;
|
|
525
|
+
if (!ze) return;
|
|
526
|
+
let t = M.selectedExhibitor, n = M.selectedEventItem, r = M.selectedSpeaker, i = "";
|
|
527
|
+
t ? i = t.name : n ? i = n.name : r ? i = r.name : M.list.type === "search" && M.list.text ? i = "`" + (M.list.text || "") + "`" : M.list.type === "multi-point-tour" && M.tourTitle && (i = M.tourTitle), i.length && (i += " – "), i += (e = o(at, Re)) == null ? c(window.location.hostname, Re) : e, document.title = i;
|
|
525
528
|
}
|
|
526
|
-
function
|
|
529
|
+
function bn(e) {
|
|
527
530
|
try {
|
|
528
|
-
if (
|
|
529
|
-
let t =
|
|
530
|
-
t &&
|
|
531
|
+
if (M.setMapSettings(e), e.z) {
|
|
532
|
+
let t = O.layerStore.layers.find((t) => t.name === e.z);
|
|
533
|
+
t && O.layerStore.updateVisibility(t, !0);
|
|
531
534
|
}
|
|
532
535
|
} catch (e) {
|
|
533
536
|
console.error("Failed to process map settings.", e);
|
|
@@ -535,26 +538,26 @@ function gn(e) {
|
|
|
535
538
|
}
|
|
536
539
|
//#endregion
|
|
537
540
|
//#region src/store/details-events.ts
|
|
538
|
-
function
|
|
539
|
-
return
|
|
541
|
+
function xn() {
|
|
542
|
+
return ke(() => M.details, () => {
|
|
540
543
|
var e;
|
|
541
|
-
if (!
|
|
542
|
-
if (!
|
|
543
|
-
|
|
544
|
+
if (!M.onDetails) return;
|
|
545
|
+
if (!M.details) {
|
|
546
|
+
M.onDetails(null);
|
|
544
547
|
return;
|
|
545
548
|
}
|
|
546
|
-
let t =
|
|
547
|
-
if (
|
|
549
|
+
let t = M.details;
|
|
550
|
+
if (ct.EXPO === "wineparis" && (t instanceof F && (t = t.booths[0]), !t)) return;
|
|
548
551
|
let n = null, r = [];
|
|
549
|
-
if (t instanceof
|
|
552
|
+
if (t instanceof F) n = "exhibitor", r = t.booths.map((e) => e.name).sort((e, t) => {
|
|
550
553
|
var n, r;
|
|
551
|
-
return e == ((n =
|
|
554
|
+
return e == ((n = O.routeStore.tempToBooth) == null ? void 0 : n.name) ? -1 : +(t == ((r = O.routeStore.tempToBooth) == null ? void 0 : r.name));
|
|
552
555
|
});
|
|
553
|
-
else if (t instanceof
|
|
556
|
+
else if (t instanceof k) n = "booth", r = [t.name];
|
|
554
557
|
else if (t instanceof S) {
|
|
555
558
|
var i, a;
|
|
556
559
|
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
|
|
560
|
+
} else t instanceof gt && (n = "category", r = t.exhibitors.map((e) => e.booths.map((e) => e.name)).flat());
|
|
558
561
|
let o = t, s = {
|
|
559
562
|
type: n,
|
|
560
563
|
name: o == null ? void 0 : o.name,
|
|
@@ -562,9 +565,9 @@ function _n() {
|
|
|
562
565
|
externalId: o == null ? void 0 : o.externalId,
|
|
563
566
|
boothsNames: r
|
|
564
567
|
};
|
|
565
|
-
|
|
568
|
+
M.onDetails({
|
|
566
569
|
...s,
|
|
567
|
-
...n === "route" ? { routeInfo: (e =
|
|
570
|
+
...n === "route" ? { routeInfo: (e = O.routeStore.routeInfo) == null ? void 0 : e } : {}
|
|
568
571
|
});
|
|
569
572
|
});
|
|
570
573
|
}
|
|
@@ -617,7 +620,7 @@ function q(e) {
|
|
|
617
620
|
entity: e.entity,
|
|
618
621
|
isEnded: e.isEnded
|
|
619
622
|
};
|
|
620
|
-
case
|
|
623
|
+
case pe: return {
|
|
621
624
|
id: e.id,
|
|
622
625
|
name: Y(e.name),
|
|
623
626
|
entity: e.entity
|
|
@@ -642,35 +645,35 @@ function Y(e) {
|
|
|
642
645
|
}
|
|
643
646
|
//#endregion
|
|
644
647
|
//#region src/floorplan.ready.tsx
|
|
645
|
-
var X =
|
|
646
|
-
(0,
|
|
647
|
-
var
|
|
648
|
+
var X = Ie(), Z = (0, Dt.default)("efp:api");
|
|
649
|
+
(0, kt.install)();
|
|
650
|
+
var Sn = class extends l {
|
|
648
651
|
constructor(...e) {
|
|
649
652
|
super(...e), this.root = void 0, this.disposeDetailsEvents = void 0, this.disposeBoothHitTest = void 0;
|
|
650
653
|
}
|
|
651
654
|
init() {
|
|
652
|
-
|
|
655
|
+
nn(), this.ignoreQuery || rn(this.offHistory), nt("load"), ut(O), O.fp = this, this.disposeDetailsEvents = xn(), this.disposeBoothHitTest = rt(), $e(this.consent), P(E.Load, ""), this.root = (0, Ot.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(Et, { children: /* @__PURE__ */ (0, X.jsx)(Je, {
|
|
653
656
|
offHistory: this.offHistory,
|
|
654
657
|
consent: this.consent
|
|
655
|
-
}) })),
|
|
658
|
+
}) })), P(E.Rendered, ""), ke(() => O.layerStore.layersLoaded, () => {
|
|
656
659
|
let e = this.renderTarget.getRootNode(), t = e instanceof ShadowRoot ? e.host : this.renderTarget.parentElement;
|
|
657
660
|
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(), !
|
|
661
|
+
if (this.resolveReady(), !O.initialized) {
|
|
659
662
|
var n;
|
|
660
663
|
(n = this.onInit) == null || n.call(this, this);
|
|
661
664
|
}
|
|
662
|
-
|
|
665
|
+
O.initialized = !0;
|
|
663
666
|
});
|
|
664
|
-
let e =
|
|
665
|
-
e && import("./bootIntercom-
|
|
667
|
+
let e = It(at);
|
|
668
|
+
e && import("./bootIntercom-DSN5Oxb8.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
666
669
|
}
|
|
667
670
|
selectBooth(e) {
|
|
668
671
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
669
672
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
670
673
|
return;
|
|
671
674
|
}
|
|
672
|
-
let t =
|
|
673
|
-
|
|
675
|
+
let t = O.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
676
|
+
O.selectBooth(t);
|
|
674
677
|
}
|
|
675
678
|
selectExhibitor(e) {
|
|
676
679
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -678,35 +681,35 @@ var vn = class extends s {
|
|
|
678
681
|
return;
|
|
679
682
|
}
|
|
680
683
|
if (!(e != null && e.length)) {
|
|
681
|
-
|
|
684
|
+
O.uiState.menu = !1, O.searchStore.resetSearchBox(), O.uiState.details = null;
|
|
682
685
|
return;
|
|
683
686
|
}
|
|
684
|
-
let t =
|
|
687
|
+
let t = O.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
685
688
|
if (!(t != null && t.length)) return;
|
|
686
689
|
if (typeof e == "string") {
|
|
687
|
-
|
|
690
|
+
O.selectExhibitor(t[0]), O.moveToList([t[0]]);
|
|
688
691
|
return;
|
|
689
692
|
}
|
|
690
|
-
let n =
|
|
691
|
-
n &&
|
|
693
|
+
let n = en(t.flatMap((e) => e.booths.map((e) => e.layer)).map((e) => e.description));
|
|
694
|
+
n && O.layerStore.updateVisibility(n, !0), O.uiState.menu = !1, O.searchStore.resetSearchBox(), O.uiState.details = null, O.uiState.list = {
|
|
692
695
|
type: "filter",
|
|
693
696
|
items: t,
|
|
694
697
|
query: {
|
|
695
698
|
key: "exhibitors",
|
|
696
699
|
value: t.map((e) => e.name).join(",")
|
|
697
700
|
}
|
|
698
|
-
},
|
|
701
|
+
}, O.moveToList();
|
|
699
702
|
}
|
|
700
703
|
highlightExhibitors(e) {
|
|
701
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
704
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), O.boothStore.highlightedByExternalIds = [], O.exhibitorStore.highlightedByExternalIds = [...e];
|
|
702
705
|
}
|
|
703
706
|
highlightBooths(e) {
|
|
704
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
707
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), O.exhibitorStore.highlightedByExternalIds = [], O.boothStore.highlightedByExternalIds = [...e];
|
|
705
708
|
}
|
|
706
709
|
highlightEntities(e) {
|
|
707
710
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
708
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
709
|
-
|
|
711
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = Xe(e);
|
|
712
|
+
O.boothStore.highlightedByExternalIds = [...t], O.exhibitorStore.highlightedByExternalIds = [...n];
|
|
710
713
|
}
|
|
711
714
|
selectRoute(e, t) {
|
|
712
715
|
if (Array.isArray(e)) {
|
|
@@ -716,10 +719,10 @@ var vn = class extends s {
|
|
|
716
719
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
717
720
|
return;
|
|
718
721
|
}
|
|
719
|
-
|
|
722
|
+
O.routeStore.selectRoute(new S(Q(n), Q(r), t.map(Q)));
|
|
720
723
|
return;
|
|
721
724
|
}
|
|
722
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
725
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), O.routeStore.selectRoute(new S(Q(e), Q(t)));
|
|
723
726
|
}
|
|
724
727
|
getOptimizedRoutes(e) {
|
|
725
728
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -732,19 +735,19 @@ var vn = class extends s {
|
|
|
732
735
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
733
736
|
a ? a.push(e) : n.set(t, [e]);
|
|
734
737
|
}
|
|
735
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
738
|
+
return Array.from(n.values()).map((e) => ({ waypoints: pt(e.map((e) => [e.name, {
|
|
736
739
|
x: e.rect.center.x,
|
|
737
740
|
y: e.rect.center.y
|
|
738
741
|
}])) }));
|
|
739
742
|
}
|
|
740
743
|
selectCurrentPosition(e, t, n) {
|
|
741
744
|
var r;
|
|
742
|
-
let i =
|
|
743
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
745
|
+
let i = w(e.x) && w(e.y), a = w(e.lng) && w(e.lat);
|
|
746
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), O.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
744
747
|
}
|
|
745
748
|
setBookmarks(e) {
|
|
746
749
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
747
|
-
let t =
|
|
750
|
+
let t = O.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
748
751
|
t && (t.bookmarked = e.bookmarked);
|
|
749
752
|
});
|
|
750
753
|
}
|
|
@@ -763,29 +766,29 @@ var vn = class extends s {
|
|
|
763
766
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
764
767
|
return;
|
|
765
768
|
}
|
|
766
|
-
let r =
|
|
769
|
+
let r = A("bookmarked"), i = {
|
|
767
770
|
exhibitor: {
|
|
768
771
|
existingIds: new Set(r.exhibitors || []),
|
|
769
|
-
finder: (e) =>
|
|
770
|
-
replacer: (e) =>
|
|
772
|
+
finder: (e) => O.exhibitorStore.findExhibitor(e),
|
|
773
|
+
replacer: (e) => O.exhibitorStore.replaceBookmarked(e)
|
|
771
774
|
},
|
|
772
775
|
event: {
|
|
773
776
|
existingIds: new Set(r.events || []),
|
|
774
|
-
finder: (e) =>
|
|
775
|
-
replacer: (e) =>
|
|
777
|
+
finder: (e) => O.eventStore.findByNameOrSlug(e),
|
|
778
|
+
replacer: (e) => O.eventStore.replaceBookmarked(e)
|
|
776
779
|
},
|
|
777
780
|
speaker: {
|
|
778
781
|
existingIds: new Set(r.speakers || []),
|
|
779
|
-
finder: (e) =>
|
|
780
|
-
replacer: (e) =>
|
|
782
|
+
finder: (e) => O.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
783
|
+
replacer: (e) => O.speakerStore.replaceBookmarked(e)
|
|
781
784
|
},
|
|
782
785
|
booth: {
|
|
783
786
|
existingIds: new Set(r.booths || []),
|
|
784
787
|
finder: (e) => {
|
|
785
|
-
let t =
|
|
788
|
+
let t = O.boothStore.findBooth(e);
|
|
786
789
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
787
790
|
},
|
|
788
|
-
replacer: (e) =>
|
|
791
|
+
replacer: (e) => O.boothStore.replaceBookmarked(e)
|
|
789
792
|
}
|
|
790
793
|
};
|
|
791
794
|
e.forEach((e) => {
|
|
@@ -805,16 +808,16 @@ var vn = class extends s {
|
|
|
805
808
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
806
809
|
return;
|
|
807
810
|
}
|
|
808
|
-
let r =
|
|
811
|
+
let r = A("visited"), i = {
|
|
809
812
|
exhibitor: {
|
|
810
813
|
existingIds: new Set(r.exhibitors || []),
|
|
811
|
-
finder: (e) =>
|
|
812
|
-
replacer: (e) =>
|
|
814
|
+
finder: (e) => O.exhibitorStore.findExhibitor(e),
|
|
815
|
+
replacer: (e) => O.exhibitorStore.replaceVisited(e)
|
|
813
816
|
},
|
|
814
817
|
event: {
|
|
815
818
|
existingIds: new Set(r.events || []),
|
|
816
|
-
finder: (e) =>
|
|
817
|
-
replacer: (e) =>
|
|
819
|
+
finder: (e) => O.eventStore.findByNameOrSlug(e),
|
|
820
|
+
replacer: (e) => O.eventStore.replaceVisited(e)
|
|
818
821
|
}
|
|
819
822
|
};
|
|
820
823
|
e.forEach((e) => {
|
|
@@ -829,94 +832,94 @@ var vn = class extends s {
|
|
|
829
832
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
830
833
|
return;
|
|
831
834
|
}
|
|
832
|
-
|
|
835
|
+
O.routeStore.setMarkers(e);
|
|
833
836
|
}
|
|
834
837
|
selectMarker(e, t = !0) {
|
|
835
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
838
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), O.routeStore.selectMarker(e, t);
|
|
836
839
|
}
|
|
837
840
|
drawCircles(e) {
|
|
838
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
841
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), O.uiState.debugCircles = e;
|
|
839
842
|
}
|
|
840
843
|
checkRoutes() {
|
|
841
|
-
|
|
844
|
+
O.routeStore.checkRoutes();
|
|
842
845
|
}
|
|
843
846
|
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"),
|
|
847
|
+
typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"), O.layerStore.updateVisibility(e, t);
|
|
845
848
|
}
|
|
846
849
|
getCenterCoordinates() {
|
|
847
|
-
return
|
|
850
|
+
return O.fp.getCenterCoordinates();
|
|
848
851
|
}
|
|
849
852
|
exhibitorsList() {
|
|
850
|
-
return
|
|
853
|
+
return O.exhibitorStore.exhibitors.map((e) => q(e));
|
|
851
854
|
}
|
|
852
855
|
boothsList() {
|
|
853
|
-
return
|
|
856
|
+
return O.boothStore.booths.map((e) => q(e));
|
|
854
857
|
}
|
|
855
858
|
categoriesList() {
|
|
856
|
-
return
|
|
859
|
+
return O.categoryStore.categories.map((e) => q(e));
|
|
857
860
|
}
|
|
858
861
|
selectCategory(e) {
|
|
859
862
|
if (e == null || typeof e != "string") {
|
|
860
|
-
|
|
863
|
+
O.searchStore.selectSearch();
|
|
861
864
|
return;
|
|
862
865
|
}
|
|
863
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
866
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = O.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
864
867
|
if (!n) {
|
|
865
868
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
866
869
|
return;
|
|
867
870
|
}
|
|
868
|
-
|
|
871
|
+
O.selectCategory(n);
|
|
869
872
|
}
|
|
870
873
|
select(e) {
|
|
871
874
|
if (typeof e != "string") {
|
|
872
875
|
$("select", "Parameter must be a string.", "EFP001700");
|
|
873
876
|
return;
|
|
874
877
|
}
|
|
875
|
-
let t = e, n = t == null ? void 0 : t.toLowerCase(), r =
|
|
878
|
+
let t = e, n = t == null ? void 0 : t.toLowerCase(), r = O.boothStore.booths.find((e) => {
|
|
876
879
|
var t, r, i;
|
|
877
880
|
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
881
|
});
|
|
879
882
|
if (r) {
|
|
880
|
-
setTimeout(() =>
|
|
883
|
+
setTimeout(() => O.selectBooth(r), 250);
|
|
881
884
|
return;
|
|
882
885
|
}
|
|
883
|
-
let i =
|
|
886
|
+
let i = O.eventStore.eventItems.find((e) => {
|
|
884
887
|
var t, r;
|
|
885
888
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
886
889
|
});
|
|
887
890
|
if (i) {
|
|
888
|
-
|
|
891
|
+
O.selectEventItem(i, !0);
|
|
889
892
|
return;
|
|
890
893
|
}
|
|
891
|
-
let a =
|
|
894
|
+
let a = O.exhibitorStore.exhibitors.find((e) => {
|
|
892
895
|
var t, r;
|
|
893
896
|
return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
|
|
894
897
|
});
|
|
895
898
|
if (a) {
|
|
896
|
-
setTimeout(() =>
|
|
899
|
+
setTimeout(() => O.clickExhibitor(a), 250);
|
|
897
900
|
return;
|
|
898
901
|
}
|
|
899
|
-
let o =
|
|
902
|
+
let o = O.categoryStore.categories.find((e) => e.slug === t);
|
|
900
903
|
if (o) {
|
|
901
|
-
|
|
904
|
+
O.selectCategory(o);
|
|
902
905
|
return;
|
|
903
906
|
}
|
|
904
|
-
let s =
|
|
907
|
+
let s = O.speakerStore.findBySlug(t);
|
|
905
908
|
if (s) {
|
|
906
|
-
|
|
909
|
+
O.selectSpeaker(s, !0);
|
|
907
910
|
return;
|
|
908
911
|
}
|
|
909
|
-
t.includes("heatmap=true") ||
|
|
912
|
+
t.includes("heatmap=true") || O.searchStore.selectSearch(t);
|
|
910
913
|
}
|
|
911
914
|
showList(e) {
|
|
912
915
|
let t = {
|
|
913
|
-
bookmarks: () =>
|
|
914
|
-
visited: () =>
|
|
915
|
-
sessions: () =>
|
|
916
|
-
exhibitors: () =>
|
|
917
|
-
speakers: () =>
|
|
918
|
-
tours: () =>
|
|
919
|
-
language: () =>
|
|
916
|
+
bookmarks: () => O.selectBookmarks(),
|
|
917
|
+
visited: () => O.selectVisited(),
|
|
918
|
+
sessions: () => O.selectSessions(),
|
|
919
|
+
exhibitors: () => O.selectExhibitors(),
|
|
920
|
+
speakers: () => O.selectSpeakers(),
|
|
921
|
+
tours: () => O.selectTours(),
|
|
922
|
+
language: () => O.selectLanguage()
|
|
920
923
|
}, n = t[e];
|
|
921
924
|
if (!n) {
|
|
922
925
|
$("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
|
|
@@ -929,65 +932,65 @@ var vn = class extends s {
|
|
|
929
932
|
$("selectTour", "A tour id must be passed.", "EFP001900");
|
|
930
933
|
return;
|
|
931
934
|
}
|
|
932
|
-
let t =
|
|
933
|
-
t ?
|
|
935
|
+
let t = O.toursStore.getTourById(e);
|
|
936
|
+
t ? O.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), O.selectTours());
|
|
934
937
|
}
|
|
935
938
|
openPlanner(e = {}) {
|
|
936
939
|
if (typeof e != "object" || !e) {
|
|
937
940
|
$("openPlanner", "An options object must be passed.", "EFP001A00");
|
|
938
941
|
return;
|
|
939
942
|
}
|
|
940
|
-
let t = e.from ?
|
|
941
|
-
if (e.fromBookmarks)
|
|
943
|
+
let t = e.from ? T(e.from) : null;
|
|
944
|
+
if (e.fromBookmarks) O.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
|
|
942
945
|
else {
|
|
943
946
|
var n;
|
|
944
|
-
|
|
947
|
+
O.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
|
|
945
948
|
}
|
|
946
949
|
}
|
|
947
950
|
startBuildRoute() {
|
|
948
|
-
|
|
951
|
+
O.uiState.startBuildRoute();
|
|
949
952
|
}
|
|
950
953
|
applyParameters(e) {
|
|
951
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
954
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), an(e);
|
|
952
955
|
}
|
|
953
956
|
getVisibility() {
|
|
954
|
-
return
|
|
957
|
+
return O.uiState.visibility;
|
|
955
958
|
}
|
|
956
959
|
setVisibility(e) {
|
|
957
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
960
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), O.uiState.setVisibility(e);
|
|
958
961
|
}
|
|
959
962
|
findLocation() {
|
|
960
|
-
|
|
963
|
+
O.routeStore.findLocation();
|
|
961
964
|
}
|
|
962
965
|
zoomIn() {
|
|
963
|
-
|
|
966
|
+
O.uiState.zoomIn();
|
|
964
967
|
}
|
|
965
968
|
zoomOut() {
|
|
966
|
-
|
|
969
|
+
O.uiState.zoomOut();
|
|
967
970
|
}
|
|
968
971
|
switchView() {
|
|
969
|
-
|
|
972
|
+
O.maplibreStore.activateMaplibre();
|
|
970
973
|
}
|
|
971
974
|
setCamera(e) {
|
|
972
975
|
Z("setCamera called with camera=%O", e);
|
|
973
|
-
let t =
|
|
976
|
+
let t = Ae.safeParse(e);
|
|
974
977
|
if (!t.success) {
|
|
975
978
|
$("setCamera", t.error.message, "EFP001B00");
|
|
976
979
|
return;
|
|
977
980
|
}
|
|
978
|
-
|
|
981
|
+
O.uiState.setMapSettings(x(t.data));
|
|
979
982
|
}
|
|
980
983
|
getCamera() {
|
|
981
|
-
return
|
|
984
|
+
return Ke(O.uiState.mapSettings);
|
|
982
985
|
}
|
|
983
986
|
zoomTo(e, t) {
|
|
984
987
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
985
|
-
let n =
|
|
988
|
+
let n = Zt.safeParse(e);
|
|
986
989
|
if (!n.success) {
|
|
987
990
|
$("zoomTo", n.error.message, "EFP001600");
|
|
988
991
|
return;
|
|
989
992
|
}
|
|
990
|
-
let r =
|
|
993
|
+
let r = Qt.safeParse(t);
|
|
991
994
|
if (!r.success) {
|
|
992
995
|
$("zoomTo", r.error.message, "EFP001601");
|
|
993
996
|
return;
|
|
@@ -998,7 +1001,7 @@ var vn = class extends s {
|
|
|
998
1001
|
getBounds(e) {
|
|
999
1002
|
var t, n;
|
|
1000
1003
|
Z("getBounds called with selectors=%O", e);
|
|
1001
|
-
let r =
|
|
1004
|
+
let r = Zt.safeParse(e);
|
|
1002
1005
|
if (!r.success) {
|
|
1003
1006
|
$("getBounds", r.error.message, "EFP001400");
|
|
1004
1007
|
return;
|
|
@@ -1006,15 +1009,15 @@ var vn = class extends s {
|
|
|
1006
1009
|
let i = [];
|
|
1007
1010
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1008
1011
|
let t;
|
|
1009
|
-
e.externalId ? t =
|
|
1012
|
+
e.externalId ? t = O.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = O.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1010
1013
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1011
1014
|
var t;
|
|
1012
1015
|
let n;
|
|
1013
|
-
e.externalId ? n =
|
|
1016
|
+
e.externalId ? n = O.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = O.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1014
1017
|
e.rect && i.push(e.rect);
|
|
1015
1018
|
});
|
|
1016
1019
|
}), i.length === 0) return;
|
|
1017
|
-
let a =
|
|
1020
|
+
let a = C.fromUnion(...i);
|
|
1018
1021
|
return {
|
|
1019
1022
|
leftTop: {
|
|
1020
1023
|
x: a.min.x,
|
|
@@ -1028,37 +1031,37 @@ var vn = class extends s {
|
|
|
1028
1031
|
}
|
|
1029
1032
|
fitBounds(e, t) {
|
|
1030
1033
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1031
|
-
|
|
1034
|
+
O.uiState.fitBounds();
|
|
1032
1035
|
return;
|
|
1033
1036
|
}
|
|
1034
|
-
let n =
|
|
1037
|
+
let n = Yt.safeParse(e);
|
|
1035
1038
|
if (!n.success) {
|
|
1036
1039
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1037
1040
|
return;
|
|
1038
1041
|
}
|
|
1039
|
-
let r =
|
|
1042
|
+
let r = Qt.safeParse(t);
|
|
1040
1043
|
if (!r.success) {
|
|
1041
1044
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1042
1045
|
return;
|
|
1043
1046
|
}
|
|
1044
|
-
let i =
|
|
1047
|
+
let i = C.fromMinMax({
|
|
1045
1048
|
x: e.leftTop.x,
|
|
1046
1049
|
y: e.leftTop.y
|
|
1047
1050
|
}, {
|
|
1048
1051
|
x: e.rightBottom.x,
|
|
1049
1052
|
y: e.rightBottom.y
|
|
1050
1053
|
});
|
|
1051
|
-
|
|
1054
|
+
O.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1052
1055
|
}
|
|
1053
1056
|
getBoothRect(e) {
|
|
1054
1057
|
var t;
|
|
1055
1058
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1056
|
-
let n = (t =
|
|
1057
|
-
return n ?
|
|
1059
|
+
let n = (t = T(e)) == null ? void 0 : t.rect;
|
|
1060
|
+
return n ? wn.fromBox(n) : void 0;
|
|
1058
1061
|
}
|
|
1059
1062
|
convertToGeo(e, t) {
|
|
1060
1063
|
var n;
|
|
1061
|
-
if (!(!(
|
|
1064
|
+
if (!(!(D == null || (n = D.properties) == null) && n.config)) {
|
|
1062
1065
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1063
1066
|
return;
|
|
1064
1067
|
}
|
|
@@ -1066,11 +1069,11 @@ var vn = class extends s {
|
|
|
1066
1069
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1067
1070
|
return;
|
|
1068
1071
|
}
|
|
1069
|
-
return
|
|
1072
|
+
return et(e, t, D.properties.config);
|
|
1070
1073
|
}
|
|
1071
1074
|
getGeoConfig() {
|
|
1072
1075
|
var e, t;
|
|
1073
|
-
let n =
|
|
1076
|
+
let n = D == null || (e = D.properties) == null ? void 0 : e.config;
|
|
1074
1077
|
return n ? {
|
|
1075
1078
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1076
1079
|
p0: n.p0,
|
|
@@ -1080,16 +1083,16 @@ var vn = class extends s {
|
|
|
1080
1083
|
}
|
|
1081
1084
|
releaseResources() {
|
|
1082
1085
|
var e, t;
|
|
1083
|
-
window.removeEventListener("error",
|
|
1086
|
+
window.removeEventListener("error", n), (e = this.disposeDetailsEvents) == null || e.call(this), this.disposeDetailsEvents = void 0, (t = this.disposeBoothHitTest) == null || t.call(this), this.disposeBoothHitTest = void 0, O.maplibreStore.dispose(), st(), ft(), Ze(), ot(), this.root.unmount(), super.releaseResources();
|
|
1084
1087
|
}
|
|
1085
1088
|
search(e) {
|
|
1086
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1089
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), O.fuzzySearchEngineStore.loadEngine().then(() => (O.searchStore.selectSearch(e), O.uiState.fuzzySearchItems.map((e) => ({
|
|
1087
1090
|
item: q(e.item),
|
|
1088
1091
|
score: e.score
|
|
1089
1092
|
}))));
|
|
1090
1093
|
}
|
|
1091
1094
|
getFloors() {
|
|
1092
|
-
return
|
|
1095
|
+
return O.layerStore.floors.map((e) => ({
|
|
1093
1096
|
name: e.name,
|
|
1094
1097
|
shortName: e.shortName,
|
|
1095
1098
|
description: e.description,
|
|
@@ -1126,70 +1129,70 @@ var vn = class extends s {
|
|
|
1126
1129
|
}
|
|
1127
1130
|
}
|
|
1128
1131
|
showPathway(e, t) {
|
|
1129
|
-
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ?
|
|
1132
|
+
let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? Xe(t) : {
|
|
1130
1133
|
boothExternalIds: [],
|
|
1131
1134
|
exhibitorExternalIds: []
|
|
1132
1135
|
};
|
|
1133
|
-
|
|
1136
|
+
cn({
|
|
1134
1137
|
pathwayId: e,
|
|
1135
1138
|
boothIds: n,
|
|
1136
1139
|
exhibitorIds: r
|
|
1137
1140
|
});
|
|
1138
1141
|
}
|
|
1139
1142
|
showPathwayOnly(e, t) {
|
|
1140
|
-
this.activateFloor({ name: t }),
|
|
1141
|
-
let n =
|
|
1143
|
+
this.activateFloor({ name: t }), O.layerStore.showPathWay(e), O.uiState.setPathwayOnlyMode(!0);
|
|
1144
|
+
let n = O.layerStore.findLayer(e), r = O.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1142
1145
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1143
1146
|
var a;
|
|
1144
1147
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1145
|
-
|
|
1148
|
+
O.uiState.moveToRect = e.clone();
|
|
1146
1149
|
}
|
|
1147
1150
|
}
|
|
1148
1151
|
hidePathways() {
|
|
1149
|
-
this.highlightBooths([]),
|
|
1152
|
+
this.highlightBooths([]), O.layerStore.hidePathways(), O.uiState.setPathwayOnlyMode(!1);
|
|
1150
1153
|
}
|
|
1151
1154
|
showSearch() {
|
|
1152
|
-
|
|
1155
|
+
O.selectSearch("");
|
|
1153
1156
|
}
|
|
1154
1157
|
changeLanguage(e) {
|
|
1155
1158
|
var t;
|
|
1156
1159
|
let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1157
|
-
if (!
|
|
1158
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1160
|
+
if (!De(n)) {
|
|
1161
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${we().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1159
1162
|
return;
|
|
1160
1163
|
}
|
|
1161
|
-
|
|
1164
|
+
Te(n);
|
|
1162
1165
|
}
|
|
1163
1166
|
isGpsTrackingEnabled() {
|
|
1164
|
-
return
|
|
1167
|
+
return O.routeStore.gpsEnabled;
|
|
1165
1168
|
}
|
|
1166
1169
|
setGpsTrackingEnabled(e) {
|
|
1167
|
-
|
|
1170
|
+
O.routeStore.setGpsTrackingEnabled(e);
|
|
1168
1171
|
}
|
|
1169
1172
|
deselectCurrentPosition() {
|
|
1170
|
-
|
|
1173
|
+
O.routeStore.selectCurrentPosition(null, !1);
|
|
1171
1174
|
}
|
|
1172
1175
|
deselectRoute() {
|
|
1173
|
-
|
|
1176
|
+
O.routeStore.selectRoute(null), O.routeStore.setOnlyAccessible(!1);
|
|
1174
1177
|
}
|
|
1175
1178
|
reset() {
|
|
1176
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1179
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), O.uiState.kioskData && O.resetCameraFn) {
|
|
1177
1180
|
var e;
|
|
1178
|
-
(e =
|
|
1181
|
+
(e = O.resetCameraFn) == null || e.call(O);
|
|
1179
1182
|
} else this.fitBounds();
|
|
1180
1183
|
}
|
|
1181
1184
|
selectAccessibleRoute(e) {
|
|
1182
|
-
|
|
1185
|
+
O.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1183
1186
|
}
|
|
1184
1187
|
};
|
|
1185
1188
|
function Q(e) {
|
|
1186
|
-
return typeof e == "string" ?
|
|
1189
|
+
return typeof e == "string" ? T(e) : O.routeStore.getNearestBooth(e);
|
|
1187
1190
|
}
|
|
1188
|
-
var
|
|
1191
|
+
var Cn = 0;
|
|
1189
1192
|
function $(e, t, n) {
|
|
1190
1193
|
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
|
-
|
|
1194
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), O.fp.disableRuntimeAlerts) return;
|
|
1195
|
+
O.uiState.setGlobalErrorMessage({
|
|
1193
1196
|
title: r,
|
|
1194
1197
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1195
1198
|
i,
|
|
@@ -1201,16 +1204,16 @@ function $(e, t, n) {
|
|
|
1201
1204
|
children: a
|
|
1202
1205
|
})
|
|
1203
1206
|
] })
|
|
1204
|
-
}), clearTimeout(
|
|
1207
|
+
}), clearTimeout(Cn);
|
|
1205
1208
|
let o = 8e3;
|
|
1206
|
-
|
|
1209
|
+
Cn = window.setTimeout(() => {
|
|
1207
1210
|
let e = async () => {
|
|
1208
|
-
|
|
1211
|
+
O.uiState.globalErrorMessages.length > 0 && (O.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1209
1212
|
};
|
|
1210
1213
|
e();
|
|
1211
1214
|
}, o);
|
|
1212
1215
|
}
|
|
1213
|
-
var
|
|
1216
|
+
var wn = class e {
|
|
1214
1217
|
get h() {
|
|
1215
1218
|
return Math.abs(this.y2 - this.y1);
|
|
1216
1219
|
}
|
|
@@ -1283,4 +1286,4 @@ var bn = class e {
|
|
|
1283
1286
|
}
|
|
1284
1287
|
};
|
|
1285
1288
|
//#endregion
|
|
1286
|
-
export {
|
|
1289
|
+
export { Sn as default };
|