@expofp/floorplan 3.7.3 → 3.7.5
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-C2KZSXb2.js +204 -0
- package/dist/browser/{CookieConsent-B9r34uCC.js → CookieConsent-Cq4qcueB.js} +8 -8
- package/dist/browser/{Debug-DunksSNj.js → Debug-D1JNigN7.js} +10 -9
- package/dist/browser/{Demo-891f5t9l.js → Demo-XVDEqvrA.js} +12 -11
- package/dist/browser/{Free-DVER8MHL.js → Free-C3wcDnvz.js} +13 -12
- package/dist/browser/{Gallery-CyRq9QY2.js → Gallery-CGxt4BEQ.js} +10 -10
- package/dist/browser/{GpsLoader-9_3XrM1S.js → GpsLoader-BL9r9aBb.js} +27 -26
- package/dist/browser/{KioskStore-BOSyfMyO.js → KioskStore-CEjAu1fS.js} +71 -72
- package/dist/browser/{MaplibreAdapter-C9a80Y5u.js → MaplibreAdapter-CFCATr0R.js} +312 -311
- package/dist/browser/{Modal-DcLxiT8t.js → Modal-DwvgaUJ4.js} +10 -10
- package/dist/browser/{PermissionNotice-DWddxvUt.js → PermissionNotice-Bfmg473m.js} +7 -7
- package/dist/browser/{SetKioskMode-CgzKiK3y.js → SetKioskMode-DgZnzdyw.js} +18 -17
- package/dist/browser/ShowKiosk-Ddu65pot.js +27 -0
- package/dist/browser/{TouchHand-B6PlZY3K.js → TouchHand-CW3feM7g.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-B46Uw94g.js → ViewerMenuPanel-DTLGFJdO.js} +18 -17
- package/dist/browser/{add-debug-secret-listener-DprGe6C-.js → add-debug-secret-listener-DLq_05Ya.js} +1 -1
- package/dist/browser/{boolean-editor-CdhFegqG.js → boolean-editor-CPZmUe0k.js} +9 -9
- package/dist/browser/{bootIntercom-C2w8EmqK.js → bootIntercom-OQUPpNv5.js} +3 -3
- package/dist/browser/{browser-D4L-gjqm.js → browser-CuHRVR45.js} +2 -2
- package/dist/browser/bundle.json +61 -58
- package/dist/browser/{classnames-CDxP0X2-.js → classnames-Bua-vCkl.js} +2 -2
- package/dist/browser/{client-BUGY3NJ-.js → client-BtBjpMA2.js} +4 -4
- package/dist/browser/{components-C9eYt8L8.js → components-Bk-VYz6V.js} +1585 -1584
- package/dist/browser/{createWayfinding-B9PG8HXm.js → createWayfinding-BcyMyZfV.js} +323 -323
- package/dist/browser/{debug-overlay-DHL2Ipq8.js → debug-overlay-Bee-ID_e.js} +10 -10
- package/dist/browser/{debug-ui-BE-7wgWb.js → debug-ui-C6Mu7jmE.js} +6 -6
- package/dist/browser/{dist-BY2VkOah.js → dist-C3qJPKIL.js} +5 -5
- package/dist/browser/{dist-DPH_nXx1.js → dist-C6Bwrbur.js} +3 -3
- package/dist/browser/{dist-C6qlzHIi.js → dist-Ypj0lz96.js} +6 -6
- package/dist/browser/{efp-debug-init-YS7dfyN-.js → efp-debug-init-BmXxwF3h.js} +2 -2
- package/dist/browser/{enum-editor-D_zEjkiJ.js → enum-editor-BtytGwbn.js} +11 -11
- package/dist/browser/{event-not-found-FYtE_1nu.js → event-not-found-DtnrzyTS.js} +1 -1
- package/dist/browser/{exports-Cjz1yZKk.js → exports-DwNV9Fce.js} +1 -1
- package/dist/browser/{favicon-DrjHpzP4.js → favicon-Bg82OSpr.js} +1 -1
- package/dist/browser/{fetch-retry.umd-Cid9TH8f.js → fetch-retry.umd-C5JqTz5u.js} +2 -2
- package/dist/browser/{flex-DeqbUH21.js → flex-BoTx9ho3.js} +5 -5
- package/dist/browser/{floorplan.loader-Bj-l8uDr.js → floorplan.loader-CJNw0Cge.js} +670 -707
- package/dist/browser/{floorplan.ready-ISdK-pOq.js → floorplan.ready-DOhcGKtR.js} +283 -244
- package/dist/browser/{fuse-DuhtQS_C.js → fuse-DJzKEeDA.js} +2 -2
- package/dist/browser/{i18n-topUIylF.js → i18n-Cir_gINd.js} +3 -3
- package/dist/browser/index.js +11 -11
- package/dist/browser/{storage-DQBS2cde.js → is-debug-0pBDODSU.js} +7 -24
- package/dist/browser/{jsx-runtime-BqvudT0U.js → jsx-runtime-DCZPOiVu.js} +2 -2
- package/dist/browser/{lib-Cs6Jo7Wv.js → lib-DQt-k78K.js} +4 -4
- package/dist/browser/{main-BEqsYQfj.js → main-CIgf7ksx.js} +1 -1
- package/dist/browser/{mobx-C5AHTMbx.js → mobx-pMkzJ1bN.js} +4 -4
- package/dist/browser/{particles.min-COvnIi42.js → particles.min-Q2r1icQ9.js} +2 -2
- package/dist/browser/{prop-types-H1ekLSgm.js → prop-types-GavRCOPR.js} +2 -2
- package/dist/browser/{react-CDj0nSIt.js → react-BlsmLtRd.js} +2 -2
- package/dist/browser/{react-dom-F1fx5UfT.js → react-dom-DgLQ5tL0.js} +3 -3
- package/dist/browser/{reset-all-settings-Dj1Hc9SL.js → reset-all-settings-CxUO3y2o.js} +7 -7
- package/dist/browser/{rolldown-runtime-CJ4NSGHF.js → rolldown-runtime-C9CB_XOZ.js} +1 -1
- package/dist/browser/{settings-bv5D0Jdx.js → settings-O5svYOVy.js} +2 -2
- package/dist/browser/{settings-item-BBkCXqTe.js → settings-item-354rDOkM.js} +6 -6
- package/dist/browser/{store-CG3Lvb_Y.js → store-CVf_IY9i.js} +6166 -6328
- package/dist/browser/{string-editor-DWJwFIbn.js → string-editor-C1jvvzZY.js} +7 -7
- package/dist/browser/{theme-Bn3nZG-N.js → theme-BewQdo5w.js} +8 -8
- package/dist/browser/{ui-B_JKKY6c.js → ui-DeHsnIKK.js} +8 -8
- package/dist/browser/{useRenderTarget-cPhKH67H.js → useRenderTarget-Cpug5PXZ.js} +5 -5
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/store/index.js +1 -1
- package/package.json +4 -4
- package/dist/browser/ShowKiosk-DRR5jjXM.js +0 -26
|
@@ -1,31 +1,31 @@
|
|
|
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.7.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.7.5" };
|
|
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] = "6a61b840-b653-45da-9db8-096ad35c1f69", e._sentryDebugIdIdentifier = "sentry-dbid-6a61b840-b653-45da-9db8-096ad35c1f69");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { t as r } from "./browser-
|
|
13
|
-
import { G as i, J as a,
|
|
14
|
-
import { a as
|
|
15
|
-
import { C as te, E as ne, S as
|
|
16
|
-
import { t as
|
|
17
|
-
import { C as
|
|
18
|
-
import { t as
|
|
9
|
+
import { r as e } from "./rolldown-runtime-C9CB_XOZ.js";
|
|
10
|
+
import { t } from "./react-BlsmLtRd.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-DCZPOiVu.js";
|
|
12
|
+
import { t as r } from "./browser-CuHRVR45.js";
|
|
13
|
+
import { G as i, J as a, U as o, W as s, _ as c, c as l, n as u, r as d } from "./i18n-Cir_gINd.js";
|
|
14
|
+
import { a as f, i as p, n as m, r as h, t as ee } from "./floorplan.loader-CJNw0Cge.js";
|
|
15
|
+
import { C as te, E as ne, S as re, Z as ie, i as ae, n as oe, pt as g } from "./exports-DwNV9Fce.js";
|
|
16
|
+
import { t as se } from "./client-BtBjpMA2.js";
|
|
17
|
+
import { C as ce, D as _, O as v, S as le, _ as y, at as b, b as ue, dn as x, h as de, it as fe, k as pe, o as S, p as me, st as C, tn as he, tt as ge, ut as _e, v as ve, vt as ye, x as be, yt as xe } from "./store-CVf_IY9i.js";
|
|
18
|
+
import { t as Se } from "./components-Bk-VYz6V.js";
|
|
19
19
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.57.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
20
20
|
function w(e = {}) {
|
|
21
|
-
let t =
|
|
21
|
+
let t = h.document, n = (t == null ? void 0 : t.head) || (t == null ? void 0 : t.body);
|
|
22
22
|
if (!n) {
|
|
23
|
-
|
|
23
|
+
m && g.error("[showReportDialog] Global document not defined");
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
let r = te(), i =
|
|
26
|
+
let r = te(), i = re(), a = i == null ? void 0 : i.getDsn();
|
|
27
27
|
if (!a) {
|
|
28
|
-
|
|
28
|
+
m && g.error("[showReportDialog] DSN not configured");
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
let o = {
|
|
@@ -34,30 +34,30 @@ function w(e = {}) {
|
|
|
34
34
|
...r.getUser(),
|
|
35
35
|
...e.user
|
|
36
36
|
},
|
|
37
|
-
eventId: e.eventId ||
|
|
38
|
-
}, s =
|
|
39
|
-
s.async = !0, s.crossOrigin = "anonymous", s.src =
|
|
37
|
+
eventId: e.eventId || ae()
|
|
38
|
+
}, s = h.document.createElement("script");
|
|
39
|
+
s.async = !0, s.crossOrigin = "anonymous", s.src = p(a, o);
|
|
40
40
|
let { onLoad: c, onClose: l } = o;
|
|
41
41
|
if (c && (s.onload = c), l) {
|
|
42
42
|
let e = (t) => {
|
|
43
43
|
if (t.data === "__sentry_reportdialog_closed__") try {
|
|
44
44
|
l();
|
|
45
45
|
} finally {
|
|
46
|
-
|
|
46
|
+
h.removeEventListener("message", e);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
h.addEventListener("message", e);
|
|
50
50
|
}
|
|
51
51
|
n.appendChild(s);
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region ../../node_modules/.pnpm/@sentry+react@10.57.0_react@19.2.7/node_modules/@sentry/react/build/esm/error.js
|
|
55
55
|
var T = /* @__PURE__ */ e(t());
|
|
56
|
-
function
|
|
56
|
+
function Ce(e) {
|
|
57
57
|
let t = e.match(/^([^.]+)/);
|
|
58
58
|
return t !== null && parseInt(t[0]) >= 17;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function we(e, t) {
|
|
61
61
|
let n = /* @__PURE__ */ new WeakSet();
|
|
62
62
|
function r(e, t) {
|
|
63
63
|
if (!n.has(e)) {
|
|
@@ -67,23 +67,23 @@ function xe(e, t) {
|
|
|
67
67
|
}
|
|
68
68
|
r(e, t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
70
|
+
function Te(e, { componentStack: t }, n) {
|
|
71
|
+
if (Ce(T.version) && ie(e) && t) {
|
|
72
72
|
let n = Error(e.message);
|
|
73
|
-
n.name = `React ErrorBoundary ${e.name}`, n.stack = t,
|
|
73
|
+
n.name = `React ErrorBoundary ${e.name}`, n.stack = t, we(e, n);
|
|
74
74
|
}
|
|
75
|
-
return
|
|
75
|
+
return oe(e, n);
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region ../../node_modules/.pnpm/@sentry+react@10.57.0_react@19.2.7/node_modules/@sentry/react/build/esm/debug-build.js
|
|
79
|
-
var
|
|
79
|
+
var Ee = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
|
|
80
80
|
componentStack: null,
|
|
81
81
|
error: null,
|
|
82
82
|
eventId: null
|
|
83
|
-
},
|
|
83
|
+
}, De = class extends T.Component {
|
|
84
84
|
constructor(e) {
|
|
85
85
|
super(e), this.state = E, this._openFallbackReportDialog = !0;
|
|
86
|
-
let t =
|
|
86
|
+
let t = re();
|
|
87
87
|
t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
|
|
88
88
|
!t.type && this._lastEventId && t.event_id === this._lastEventId && w({
|
|
89
89
|
...e.dialogOptions,
|
|
@@ -95,7 +95,7 @@ var Ce = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
|
|
|
95
95
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
96
96
|
ne((s) => {
|
|
97
97
|
r && r(s, e, n);
|
|
98
|
-
let c =
|
|
98
|
+
let c = Te(e, t, { mechanism: {
|
|
99
99
|
handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
|
|
100
100
|
type: "auto.function.react.error_boundary"
|
|
101
101
|
} });
|
|
@@ -130,17 +130,17 @@ var Ce = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
|
|
|
130
130
|
resetError: () => this.resetErrorBoundary(),
|
|
131
131
|
eventId: n.eventId
|
|
132
132
|
}) : e;
|
|
133
|
-
return T.isValidElement(r) ? r : (e &&
|
|
133
|
+
return T.isValidElement(r) ? r : (e && Ee && g.warn("fallback did not produce a valid ReactElement"), null);
|
|
134
134
|
}
|
|
135
|
-
},
|
|
136
|
-
function
|
|
135
|
+
}, Oe = se(), ke = xe();
|
|
136
|
+
function Ae() {
|
|
137
137
|
D("floorplan"), D("__data"), D("__dataUrlBase"), D("__searchi"), D("__wfData"), D("__mobxGlobals"), D("__store"), D("__mobxInstanceCount");
|
|
138
138
|
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && D(e);
|
|
139
139
|
}
|
|
140
140
|
function D(e) {
|
|
141
|
-
|
|
141
|
+
je(e) ? delete window[e] : window[e] = void 0;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function je(e) {
|
|
144
144
|
let t = Object.getOwnPropertyDescriptor(window, e);
|
|
145
145
|
return t && t.configurable;
|
|
146
146
|
}
|
|
@@ -193,7 +193,7 @@ function O(e) {
|
|
|
193
193
|
entity: e.entity,
|
|
194
194
|
isEnded: e.isEnded
|
|
195
195
|
};
|
|
196
|
-
case
|
|
196
|
+
case s: return {
|
|
197
197
|
id: e.id,
|
|
198
198
|
name: A(e.name),
|
|
199
199
|
entity: e.entity
|
|
@@ -260,10 +260,10 @@ function P(e) {
|
|
|
260
260
|
}
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js
|
|
263
|
-
function
|
|
263
|
+
function Me(e, t) {
|
|
264
264
|
return typeof t == "bigint" ? t.toString() : t;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Ne(e) {
|
|
267
267
|
return { get value() {
|
|
268
268
|
{
|
|
269
269
|
let t = e();
|
|
@@ -272,7 +272,7 @@ function Ae(e) {
|
|
|
272
272
|
throw Error("cached value already set");
|
|
273
273
|
} };
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Pe(e) {
|
|
276
276
|
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
277
277
|
return e.slice(t, n);
|
|
278
278
|
}
|
|
@@ -290,10 +290,10 @@ function I(e, t, n) {
|
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
var L = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
293
|
-
function
|
|
293
|
+
function Fe(e) {
|
|
294
294
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Ie(e, t, n) {
|
|
297
297
|
let r = new e._zod.constr(t == null ? e._zod.def : t);
|
|
298
298
|
return (!t || n != null && n.parent) && (r._zod.parent = e), r;
|
|
299
299
|
}
|
|
@@ -310,7 +310,7 @@ function R(e) {
|
|
|
310
310
|
error: () => t.error
|
|
311
311
|
} : t;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Le(e) {
|
|
314
314
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
315
315
|
}
|
|
316
316
|
-Number.MAX_VALUE, Number.MAX_VALUE;
|
|
@@ -322,16 +322,16 @@ function z(e, t = 0) {
|
|
|
322
322
|
}
|
|
323
323
|
return !1;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Re(e, t) {
|
|
326
326
|
return t.map((t) => {
|
|
327
327
|
var n;
|
|
328
328
|
return (n = t).path != null || (n.path = []), t.path.unshift(e), t;
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function B(e) {
|
|
332
332
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function V(e, t, n) {
|
|
335
335
|
var r;
|
|
336
336
|
let i = {
|
|
337
337
|
...e,
|
|
@@ -339,11 +339,11 @@ function H(e, t, n) {
|
|
|
339
339
|
};
|
|
340
340
|
if (!e.message) {
|
|
341
341
|
var a, o, s, c, l, u, d, f, p;
|
|
342
|
-
i.message = (a = (o = (s = (c =
|
|
342
|
+
i.message = (a = (o = (s = (c = B((l = e.inst) == null || (l = l._zod.def) == null || (u = l.error) == null ? void 0 : u.call(l, e))) == null ? B(t == null || (d = t.error) == null ? void 0 : d.call(t, e)) : c) == null ? B((f = n.customError) == null ? void 0 : f.call(n, e)) : s) == null ? B((p = n.localeError) == null ? void 0 : p.call(n, e)) : o) == null ? "Invalid input" : a;
|
|
343
343
|
}
|
|
344
344
|
return delete i.inst, delete i.continue, t != null && t.reportInput || delete i.input, i;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function ze(...e) {
|
|
347
347
|
let [t, n, r] = e;
|
|
348
348
|
return typeof t == "string" ? {
|
|
349
349
|
message: t,
|
|
@@ -354,18 +354,18 @@ function Fe(...e) {
|
|
|
354
354
|
}
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js
|
|
357
|
-
var
|
|
357
|
+
var Be = (e, t) => {
|
|
358
358
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
359
359
|
value: e._zod,
|
|
360
360
|
enumerable: !1
|
|
361
361
|
}), Object.defineProperty(e, "issues", {
|
|
362
362
|
value: t,
|
|
363
363
|
enumerable: !1
|
|
364
|
-
}), e.message = JSON.stringify(t,
|
|
364
|
+
}), e.message = JSON.stringify(t, Me, 2), Object.defineProperty(e, "toString", {
|
|
365
365
|
value: () => e.message,
|
|
366
366
|
enumerable: !1
|
|
367
367
|
});
|
|
368
|
-
},
|
|
368
|
+
}, Ve = j("$ZodError", Be), H = j("$ZodError", Be, { Parent: Error }), He = /* @__PURE__*/ ((e) => (t, n, r, i) => {
|
|
369
369
|
let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
|
|
370
370
|
value: n,
|
|
371
371
|
issues: []
|
|
@@ -373,22 +373,22 @@ var Ie = (e, t) => {
|
|
|
373
373
|
if (o instanceof Promise) throw new M();
|
|
374
374
|
if (o.issues.length) {
|
|
375
375
|
var s;
|
|
376
|
-
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) =>
|
|
376
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => V(e, a, P())));
|
|
377
377
|
throw L(t, i == null ? void 0 : i.callee), t;
|
|
378
378
|
}
|
|
379
379
|
return o.value;
|
|
380
|
-
})(
|
|
380
|
+
})(H), Ue = /* @__PURE__*/ ((e) => async (t, n, r, i) => {
|
|
381
381
|
let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
|
|
382
382
|
value: n,
|
|
383
383
|
issues: []
|
|
384
384
|
}, a);
|
|
385
385
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
386
386
|
var s;
|
|
387
|
-
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) =>
|
|
387
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => V(e, a, P())));
|
|
388
388
|
throw L(t, i == null ? void 0 : i.callee), t;
|
|
389
389
|
}
|
|
390
390
|
return o.value;
|
|
391
|
-
})(
|
|
391
|
+
})(H), We = /* @__PURE__*/ ((e) => (t, n, r) => {
|
|
392
392
|
let i = r ? {
|
|
393
393
|
...r,
|
|
394
394
|
async: !1
|
|
@@ -399,37 +399,37 @@ var Ie = (e, t) => {
|
|
|
399
399
|
if (a instanceof Promise) throw new M();
|
|
400
400
|
return a.issues.length ? {
|
|
401
401
|
success: !1,
|
|
402
|
-
error: new (e == null ?
|
|
402
|
+
error: new (e == null ? Ve : e)(a.issues.map((e) => V(e, i, P())))
|
|
403
403
|
} : {
|
|
404
404
|
success: !0,
|
|
405
405
|
data: a.value
|
|
406
406
|
};
|
|
407
|
-
})(
|
|
407
|
+
})(H), Ge = /* @__PURE__*/ ((e) => async (t, n, r) => {
|
|
408
408
|
let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
|
|
409
409
|
value: n,
|
|
410
410
|
issues: []
|
|
411
411
|
}, i);
|
|
412
412
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
413
413
|
success: !1,
|
|
414
|
-
error: new e(a.issues.map((e) =>
|
|
414
|
+
error: new e(a.issues.map((e) => V(e, i, P())))
|
|
415
415
|
} : {
|
|
416
416
|
success: !0,
|
|
417
417
|
data: a.value
|
|
418
418
|
};
|
|
419
|
-
})(
|
|
419
|
+
})(H), Ke = (e) => {
|
|
420
420
|
var t, n;
|
|
421
421
|
let r = e ? `[\\s\\S]{${(t = e == null ? void 0 : e.minimum) == null ? 0 : t},${(n = e == null ? void 0 : e.maximum) == null ? "" : n}}` : "[\\s\\S]*";
|
|
422
422
|
return RegExp(`^${r}$`);
|
|
423
|
-
},
|
|
423
|
+
}, qe = /^-?\d+(?:\.\d+)?$/, Je = /*@__PURE__*/ j("$ZodCheck", (e, t) => {
|
|
424
424
|
var n;
|
|
425
425
|
e._zod != null || (e._zod = {}), e._zod.def = t, (n = e._zod).onattach != null || (n.onattach = []);
|
|
426
|
-
}),
|
|
426
|
+
}), Ye = {
|
|
427
427
|
major: 4,
|
|
428
428
|
minor: 3,
|
|
429
429
|
patch: 5
|
|
430
|
-
},
|
|
430
|
+
}, U = /*@__PURE__*/ j("$ZodType", (e, t) => {
|
|
431
431
|
var n, r;
|
|
432
|
-
e != null || (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
432
|
+
e != null || (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ye;
|
|
433
433
|
let i = [...(n = e._zod.def.checks) == null ? [] : n];
|
|
434
434
|
e._zod.traits.has("$ZodCheck") && i.unshift(e);
|
|
435
435
|
for (let t of i) for (let n of t._zod.onattach) n(e);
|
|
@@ -491,10 +491,10 @@ var Ie = (e, t) => {
|
|
|
491
491
|
validate: (t) => {
|
|
492
492
|
try {
|
|
493
493
|
var n;
|
|
494
|
-
let r =
|
|
494
|
+
let r = We(e, t);
|
|
495
495
|
return r.success ? { value: r.data } : { issues: (n = r.error) == null ? void 0 : n.issues };
|
|
496
496
|
} catch {
|
|
497
|
-
return
|
|
497
|
+
return Ge(e, t).then((e) => {
|
|
498
498
|
var t;
|
|
499
499
|
return e.success ? { value: e.data } : { issues: (t = e.error) == null ? void 0 : t.issues };
|
|
500
500
|
});
|
|
@@ -503,9 +503,9 @@ var Ie = (e, t) => {
|
|
|
503
503
|
vendor: "zod",
|
|
504
504
|
version: 1
|
|
505
505
|
}));
|
|
506
|
-
}),
|
|
506
|
+
}), Xe = /*@__PURE__*/ j("$ZodString", (e, t) => {
|
|
507
507
|
var n, r, i;
|
|
508
|
-
|
|
508
|
+
U.init(e, t), e._zod.pattern = (n = [...(r = e == null || (i = e._zod.bag) == null ? void 0 : i.patterns) == null ? [] : r].pop()) == null ? Ke(e._zod.bag) : n, e._zod.parse = (n, r) => {
|
|
509
509
|
if (t.coerce) try {
|
|
510
510
|
n.value = String(n.value);
|
|
511
511
|
} catch {}
|
|
@@ -516,9 +516,9 @@ var Ie = (e, t) => {
|
|
|
516
516
|
inst: e
|
|
517
517
|
}), n;
|
|
518
518
|
};
|
|
519
|
-
}),
|
|
519
|
+
}), Ze = /*@__PURE__*/ j("$ZodNumber", (e, t) => {
|
|
520
520
|
var n;
|
|
521
|
-
|
|
521
|
+
U.init(e, t), e._zod.pattern = (n = e._zod.bag.pattern) == null ? qe : n, e._zod.parse = (n, r) => {
|
|
522
522
|
if (t.coerce) try {
|
|
523
523
|
n.value = Number(n.value);
|
|
524
524
|
} catch {}
|
|
@@ -533,19 +533,19 @@ var Ie = (e, t) => {
|
|
|
533
533
|
...a ? { received: a } : {}
|
|
534
534
|
}), n;
|
|
535
535
|
};
|
|
536
|
-
}),
|
|
537
|
-
|
|
536
|
+
}), Qe = /*@__PURE__*/ j("$ZodNever", (e, t) => {
|
|
537
|
+
U.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
538
538
|
expected: "never",
|
|
539
539
|
code: "invalid_type",
|
|
540
540
|
input: t.value,
|
|
541
541
|
inst: e
|
|
542
542
|
}), t);
|
|
543
543
|
});
|
|
544
|
-
function
|
|
545
|
-
e.issues.length && t.issues.push(...
|
|
544
|
+
function $e(e, t, n) {
|
|
545
|
+
e.issues.length && t.issues.push(...Re(n, e.issues)), t.value[n] = e.value;
|
|
546
546
|
}
|
|
547
|
-
var
|
|
548
|
-
|
|
547
|
+
var et = /*@__PURE__*/ j("$ZodArray", (e, t) => {
|
|
548
|
+
U.init(e, t), e._zod.parse = (n, r) => {
|
|
549
549
|
let i = n.value;
|
|
550
550
|
if (!Array.isArray(i)) return n.issues.push({
|
|
551
551
|
expected: "array",
|
|
@@ -560,25 +560,25 @@ var Xe = /*@__PURE__*/ j("$ZodArray", (e, t) => {
|
|
|
560
560
|
value: o,
|
|
561
561
|
issues: []
|
|
562
562
|
}, r);
|
|
563
|
-
s instanceof Promise ? a.push(s.then((t) =>
|
|
563
|
+
s instanceof Promise ? a.push(s.then((t) => $e(t, n, e))) : $e(s, n, e);
|
|
564
564
|
}
|
|
565
565
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
566
566
|
};
|
|
567
567
|
});
|
|
568
|
-
function
|
|
568
|
+
function W(e, t, n, r, i) {
|
|
569
569
|
if (e.issues.length) {
|
|
570
570
|
if (i && !(n in r)) return;
|
|
571
|
-
t.issues.push(...
|
|
571
|
+
t.issues.push(...Re(n, e.issues));
|
|
572
572
|
}
|
|
573
573
|
e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function tt(e) {
|
|
576
576
|
let t = Object.keys(e.shape);
|
|
577
577
|
for (let r of t) {
|
|
578
578
|
var n;
|
|
579
579
|
if (!(!((n = e.shape) == null || (n = n[r]) == null || (n = n._zod) == null || (n = n.traits) == null) && n.has("$ZodType"))) throw Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
580
580
|
}
|
|
581
|
-
let r =
|
|
581
|
+
let r = Le(e.shape);
|
|
582
582
|
return {
|
|
583
583
|
...e,
|
|
584
584
|
keys: t,
|
|
@@ -587,7 +587,7 @@ function Ze(e) {
|
|
|
587
587
|
optionalKeys: new Set(r)
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function nt(e, t, n, r, i, a) {
|
|
591
591
|
let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
|
|
592
592
|
for (let i in t) {
|
|
593
593
|
if (s.has(i)) continue;
|
|
@@ -599,7 +599,7 @@ function Qe(e, t, n, r, i, a) {
|
|
|
599
599
|
value: t[i],
|
|
600
600
|
issues: []
|
|
601
601
|
}, r);
|
|
602
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
602
|
+
a instanceof Promise ? e.push(a.then((e) => W(e, n, i, t, u))) : W(a, n, i, t, u);
|
|
603
603
|
}
|
|
604
604
|
return o.length && n.issues.push({
|
|
605
605
|
code: "unrecognized_keys",
|
|
@@ -608,8 +608,8 @@ function Qe(e, t, n, r, i, a) {
|
|
|
608
608
|
inst: a
|
|
609
609
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
|
|
611
|
+
var rt = /*@__PURE__*/ j("$ZodObject", (e, t) => {
|
|
612
|
+
U.init(e, t);
|
|
613
613
|
let n = Object.getOwnPropertyDescriptor(t, "shape");
|
|
614
614
|
if (!(n != null && n.get)) {
|
|
615
615
|
let e = t.shape;
|
|
@@ -618,7 +618,7 @@ var $e = /*@__PURE__*/ j("$ZodObject", (e, t) => {
|
|
|
618
618
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
619
619
|
} });
|
|
620
620
|
}
|
|
621
|
-
let r =
|
|
621
|
+
let r = Ne(() => tt(t));
|
|
622
622
|
I(e._zod, "propValues", () => {
|
|
623
623
|
let e = t.shape, n = {};
|
|
624
624
|
for (let t in e) {
|
|
@@ -630,7 +630,7 @@ var $e = /*@__PURE__*/ j("$ZodObject", (e, t) => {
|
|
|
630
630
|
}
|
|
631
631
|
return n;
|
|
632
632
|
});
|
|
633
|
-
let i =
|
|
633
|
+
let i = Fe, a = t.catchall, o;
|
|
634
634
|
e._zod.parse = (t, n) => {
|
|
635
635
|
o != null || (o = r.value);
|
|
636
636
|
let s = t.value;
|
|
@@ -647,36 +647,36 @@ var $e = /*@__PURE__*/ j("$ZodObject", (e, t) => {
|
|
|
647
647
|
value: s[e],
|
|
648
648
|
issues: []
|
|
649
649
|
}, n);
|
|
650
|
-
a instanceof Promise ? c.push(a.then((n) =>
|
|
650
|
+
a instanceof Promise ? c.push(a.then((n) => W(n, t, e, s, i))) : W(a, t, e, s, i);
|
|
651
651
|
}
|
|
652
|
-
return a ?
|
|
652
|
+
return a ? nt(c, s, t, n, r.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
653
653
|
};
|
|
654
654
|
});
|
|
655
|
-
function
|
|
655
|
+
function it(e, t) {
|
|
656
656
|
return e.issues.length && t === void 0 ? {
|
|
657
657
|
issues: [],
|
|
658
658
|
value: void 0
|
|
659
659
|
} : e;
|
|
660
660
|
}
|
|
661
|
-
var
|
|
662
|
-
|
|
661
|
+
var at = /*@__PURE__*/ j("$ZodOptional", (e, t) => {
|
|
662
|
+
U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", I(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), I(e._zod, "pattern", () => {
|
|
663
663
|
let e = t.innerType._zod.pattern;
|
|
664
|
-
return e ? RegExp(`^(${
|
|
664
|
+
return e ? RegExp(`^(${Pe(e.source)})?$`) : void 0;
|
|
665
665
|
}), e._zod.parse = (e, n) => {
|
|
666
666
|
if (t.innerType._zod.optin === "optional") {
|
|
667
667
|
let r = t.innerType._zod.run(e, n);
|
|
668
|
-
return r instanceof Promise ? r.then((t) =>
|
|
668
|
+
return r instanceof Promise ? r.then((t) => it(t, e.value)) : it(r, e.value);
|
|
669
669
|
}
|
|
670
670
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
671
671
|
};
|
|
672
|
-
}),
|
|
673
|
-
|
|
672
|
+
}), ot = /*@__PURE__*/ j("$ZodCustom", (e, t) => {
|
|
673
|
+
Je.init(e, t), U.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
674
674
|
let r = n.value, i = t.fn(r);
|
|
675
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
676
|
-
|
|
675
|
+
if (i instanceof Promise) return i.then((t) => st(t, n, r, e));
|
|
676
|
+
st(i, n, r, e);
|
|
677
677
|
};
|
|
678
678
|
});
|
|
679
|
-
function
|
|
679
|
+
function st(e, t, n, r) {
|
|
680
680
|
if (!e) {
|
|
681
681
|
var i;
|
|
682
682
|
let e = {
|
|
@@ -686,20 +686,20 @@ function rt(e, t, n, r) {
|
|
|
686
686
|
path: [...(i = r._zod.def.path) == null ? [] : i],
|
|
687
687
|
continue: !r._zod.def.abort
|
|
688
688
|
};
|
|
689
|
-
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(
|
|
689
|
+
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(ze(e));
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
//#endregion
|
|
693
693
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js
|
|
694
694
|
// @__NO_SIDE_EFFECTS__
|
|
695
|
-
function
|
|
695
|
+
function ct(e, t) {
|
|
696
696
|
return new e({
|
|
697
697
|
type: "string",
|
|
698
698
|
...R(t)
|
|
699
699
|
});
|
|
700
700
|
}
|
|
701
701
|
// @__NO_SIDE_EFFECTS__
|
|
702
|
-
function
|
|
702
|
+
function lt(e, t) {
|
|
703
703
|
return new e({
|
|
704
704
|
type: "number",
|
|
705
705
|
checks: [],
|
|
@@ -707,14 +707,14 @@ function at(e, t) {
|
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
709
|
// @__NO_SIDE_EFFECTS__
|
|
710
|
-
function
|
|
710
|
+
function ut(e, t) {
|
|
711
711
|
return new e({
|
|
712
712
|
type: "never",
|
|
713
713
|
...R(t)
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
// @__NO_SIDE_EFFECTS__
|
|
717
|
-
function
|
|
717
|
+
function dt(e, t, n) {
|
|
718
718
|
return new e({
|
|
719
719
|
type: "custom",
|
|
720
720
|
check: "custom",
|
|
@@ -724,9 +724,9 @@ function st(e, t, n) {
|
|
|
724
724
|
}
|
|
725
725
|
//#endregion
|
|
726
726
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js
|
|
727
|
-
var
|
|
727
|
+
var G = /*@__PURE__*/ j("ZodMiniType", (e, t) => {
|
|
728
728
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
729
|
-
|
|
729
|
+
U.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => He(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => We(e, t, n), e.parseAsync = async (t, n) => Ue(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ge(e, t, n), e.check = (...n) => {
|
|
730
730
|
var r;
|
|
731
731
|
return e.clone({
|
|
732
732
|
...t,
|
|
@@ -736,110 +736,149 @@ var K = /*@__PURE__*/ j("ZodMiniType", (e, t) => {
|
|
|
736
736
|
onattach: []
|
|
737
737
|
} } : e)]
|
|
738
738
|
}, { parent: !0 });
|
|
739
|
-
}, e.with = e.check, e.clone = (t, n) =>
|
|
740
|
-
}),
|
|
741
|
-
|
|
739
|
+
}, 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);
|
|
740
|
+
}), ft = /*@__PURE__*/ j("ZodMiniString", (e, t) => {
|
|
741
|
+
Xe.init(e, t), G.init(e, t);
|
|
742
742
|
});
|
|
743
743
|
// @__NO_SIDE_EFFECTS__
|
|
744
|
-
function
|
|
745
|
-
return /* @__PURE__ */
|
|
744
|
+
function pt(e) {
|
|
745
|
+
return /* @__PURE__ */ ct(ft, e);
|
|
746
746
|
}
|
|
747
|
-
var
|
|
748
|
-
|
|
747
|
+
var mt = /*@__PURE__*/ j("ZodMiniNumber", (e, t) => {
|
|
748
|
+
Ze.init(e, t), G.init(e, t);
|
|
749
749
|
});
|
|
750
750
|
// @__NO_SIDE_EFFECTS__
|
|
751
|
-
function
|
|
752
|
-
return /* @__PURE__ */
|
|
751
|
+
function K(e) {
|
|
752
|
+
return /* @__PURE__ */ lt(mt, e);
|
|
753
753
|
}
|
|
754
|
-
var
|
|
755
|
-
|
|
754
|
+
var ht = /*@__PURE__*/ j("ZodMiniNever", (e, t) => {
|
|
755
|
+
Qe.init(e, t), G.init(e, t);
|
|
756
756
|
});
|
|
757
757
|
// @__NO_SIDE_EFFECTS__
|
|
758
|
-
function
|
|
759
|
-
return /* @__PURE__ */
|
|
758
|
+
function gt(e) {
|
|
759
|
+
return /* @__PURE__ */ ut(ht, e);
|
|
760
760
|
}
|
|
761
|
-
var
|
|
762
|
-
|
|
761
|
+
var _t = /*@__PURE__*/ j("ZodMiniArray", (e, t) => {
|
|
762
|
+
et.init(e, t), G.init(e, t);
|
|
763
763
|
});
|
|
764
764
|
// @__NO_SIDE_EFFECTS__
|
|
765
|
-
function
|
|
766
|
-
return new
|
|
765
|
+
function vt(e, t) {
|
|
766
|
+
return new _t({
|
|
767
767
|
type: "array",
|
|
768
768
|
element: e,
|
|
769
769
|
...R(t)
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
|
-
var
|
|
773
|
-
|
|
772
|
+
var yt = /*@__PURE__*/ j("ZodMiniObject", (e, t) => {
|
|
773
|
+
rt.init(e, t), G.init(e, t), I(e, "shape", () => t.shape);
|
|
774
774
|
});
|
|
775
775
|
// @__NO_SIDE_EFFECTS__
|
|
776
|
-
function
|
|
777
|
-
return new
|
|
776
|
+
function q(e, t) {
|
|
777
|
+
return new yt({
|
|
778
778
|
type: "object",
|
|
779
779
|
shape: e,
|
|
780
|
-
catchall: /* @__PURE__ */
|
|
780
|
+
catchall: /* @__PURE__ */ gt(),
|
|
781
781
|
...R(t)
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
|
-
var
|
|
785
|
-
|
|
784
|
+
var bt = /*@__PURE__*/ j("ZodMiniOptional", (e, t) => {
|
|
785
|
+
at.init(e, t), G.init(e, t);
|
|
786
786
|
});
|
|
787
787
|
// @__NO_SIDE_EFFECTS__
|
|
788
|
-
function
|
|
789
|
-
return new
|
|
788
|
+
function J(e) {
|
|
789
|
+
return new bt({
|
|
790
790
|
type: "optional",
|
|
791
791
|
innerType: e
|
|
792
792
|
});
|
|
793
793
|
}
|
|
794
|
-
var
|
|
795
|
-
|
|
794
|
+
var xt = /*@__PURE__*/ j("ZodMiniCustom", (e, t) => {
|
|
795
|
+
ot.init(e, t), G.init(e, t);
|
|
796
796
|
});
|
|
797
797
|
// @__NO_SIDE_EFFECTS__
|
|
798
|
-
function
|
|
799
|
-
return /* @__PURE__ */
|
|
798
|
+
function St(e, t = {}) {
|
|
799
|
+
return /* @__PURE__ */ dt(xt, e, t);
|
|
800
800
|
}
|
|
801
801
|
//#endregion
|
|
802
802
|
//#region src/schemas/sdk.schemas.ts
|
|
803
|
-
var
|
|
804
|
-
x: /* @__PURE__ */
|
|
805
|
-
y: /* @__PURE__ */
|
|
806
|
-
}),
|
|
807
|
-
leftTop:
|
|
808
|
-
rightBottom:
|
|
809
|
-
}),
|
|
810
|
-
name: /* @__PURE__ */
|
|
811
|
-
externalId: /* @__PURE__ */
|
|
812
|
-
})).check(/* @__PURE__ */
|
|
813
|
-
booths: /* @__PURE__ */
|
|
814
|
-
exhibitors: /* @__PURE__ */
|
|
815
|
-
})).check(/* @__PURE__ */
|
|
803
|
+
var Y = /* @__PURE__ */ q({
|
|
804
|
+
x: /* @__PURE__ */ K(),
|
|
805
|
+
y: /* @__PURE__ */ K()
|
|
806
|
+
}), Ct = /* @__PURE__ */ q({
|
|
807
|
+
leftTop: Y,
|
|
808
|
+
rightBottom: Y
|
|
809
|
+
}), wt = (/* @__PURE__ */ q({
|
|
810
|
+
name: /* @__PURE__ */ J(/* @__PURE__ */ pt()),
|
|
811
|
+
externalId: /* @__PURE__ */ J(/* @__PURE__ */ pt())
|
|
812
|
+
})).check(/* @__PURE__ */ St((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Tt = (/* @__PURE__ */ q({
|
|
813
|
+
booths: /* @__PURE__ */ J(/* @__PURE__ */ vt(wt)),
|
|
814
|
+
exhibitors: /* @__PURE__ */ J(/* @__PURE__ */ vt(wt))
|
|
815
|
+
})).check(/* @__PURE__ */ St((e) => {
|
|
816
816
|
var t, n;
|
|
817
817
|
return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
|
|
818
|
-
}, "Selector must contain booths or exhibitors")),
|
|
819
|
-
|
|
820
|
-
|
|
818
|
+
}, "Selector must contain booths or exhibitors")), Et = /* @__PURE__ */ J(/* @__PURE__ */ q({ padding: /* @__PURE__ */ J(/* @__PURE__ */ K()) })), Dt = /* @__PURE__ */ e(r(), 1);
|
|
819
|
+
function Ot() {
|
|
820
|
+
let e = new URLSearchParams(window.location.search).get(o), t = l ? window.localStorage.getItem(o) : null, n = e == null ? t : e;
|
|
821
|
+
return n == null ? l && _e() != null : n === "1";
|
|
822
|
+
}
|
|
823
|
+
function kt() {
|
|
824
|
+
let e = window.location.hostname.split(".");
|
|
825
|
+
return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
|
|
826
|
+
}
|
|
827
|
+
function At() {
|
|
828
|
+
return kt() ? window.location.hostname.split(".")[0] : "main";
|
|
829
|
+
}
|
|
830
|
+
function jt(e) {
|
|
831
|
+
if ((e == null ? void 0 : e.free) === !0) return "Free";
|
|
832
|
+
let t = e == null ? void 0 : e.trialExpiresAt;
|
|
833
|
+
if (t) {
|
|
834
|
+
let e = new Date(t).getTime();
|
|
835
|
+
if (!Number.isNaN(e)) return Date.now() < e ? "Trial Active" : "Trial Expired";
|
|
836
|
+
}
|
|
837
|
+
return "Active";
|
|
838
|
+
}
|
|
839
|
+
function Mt() {
|
|
840
|
+
return !1;
|
|
841
|
+
}
|
|
842
|
+
function Nt(e) {
|
|
843
|
+
return e;
|
|
844
|
+
}
|
|
845
|
+
function Pt(e) {
|
|
846
|
+
if (Mt() || !kt() || Ot() || !window.navigator.onLine) return null;
|
|
847
|
+
let t = Nt({
|
|
848
|
+
subDomain: At(),
|
|
849
|
+
subscriptionStatus: jt(e)
|
|
850
|
+
});
|
|
851
|
+
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
852
|
+
}
|
|
853
|
+
//#endregion
|
|
854
|
+
//#region src/floorplan.ready.tsx
|
|
855
|
+
var X = n(), Z = (0, Dt.default)("efp:api");
|
|
856
|
+
(0, ke.install)();
|
|
857
|
+
var Ft = class extends ee {
|
|
821
858
|
constructor(...e) {
|
|
822
859
|
super(...e), this.root = void 0;
|
|
823
860
|
}
|
|
824
861
|
init() {
|
|
825
|
-
this.ignoreQuery ||
|
|
862
|
+
this.ignoreQuery || ce(this.offHistory), ue("load"), S.fp = this, ve(this.allowConsent), y(me.Load, ""), this.root = (0, Oe.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(De, { children: /* @__PURE__ */ (0, X.jsx)(Se, {
|
|
826
863
|
offHistory: this.offHistory,
|
|
827
864
|
allowConsent: this.allowConsent
|
|
828
|
-
}) })),
|
|
829
|
-
if (this.resolveReady(), !
|
|
865
|
+
}) })), y(me.Rendered, ""), c(() => S.layerStore.layersLoaded, () => {
|
|
866
|
+
if (this.resolveReady(), !S.initialized) {
|
|
830
867
|
var e;
|
|
831
868
|
(e = this.onInit) == null || e.call(this, this);
|
|
832
869
|
}
|
|
833
|
-
|
|
870
|
+
S.initialized = !0;
|
|
834
871
|
});
|
|
872
|
+
let e = Pt(window.__data);
|
|
873
|
+
e && import("./bootIntercom-OQUPpNv5.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
835
874
|
}
|
|
836
875
|
selectBooth(e) {
|
|
837
876
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
838
877
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
839
878
|
return;
|
|
840
879
|
}
|
|
841
|
-
let t =
|
|
842
|
-
|
|
880
|
+
let t = S.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
881
|
+
S.selectBooth(t);
|
|
843
882
|
}
|
|
844
883
|
selectExhibitor(e) {
|
|
845
884
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -847,13 +886,13 @@ var Tt = class extends ee {
|
|
|
847
886
|
return;
|
|
848
887
|
}
|
|
849
888
|
if (!(e != null && e.length)) {
|
|
850
|
-
|
|
889
|
+
S.uiState.menu = !1, S.searchStore.resetSearchBox(), S.uiState.details = null;
|
|
851
890
|
return;
|
|
852
891
|
}
|
|
853
|
-
let t =
|
|
892
|
+
let t = S.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
854
893
|
if (!(t != null && t.length)) return;
|
|
855
894
|
if (typeof e == "string") {
|
|
856
|
-
|
|
895
|
+
S.selectExhibitor(t[0]), S.moveToList([t[0]]);
|
|
857
896
|
return;
|
|
858
897
|
}
|
|
859
898
|
let n = t.flatMap((e) => e.booths.map((e) => e.layer)), { description: r } = n.reduce((e, t) => (e.freq[t.description] = (e.freq[t.description] || 0) + 1, e.freq[t.description] > e.maxCount && (e.maxCount = e.freq[t.description], e.mostFrequent = t), e), {
|
|
@@ -861,25 +900,25 @@ var Tt = class extends ee {
|
|
|
861
900
|
mostFrequent: n[0],
|
|
862
901
|
maxCount: 0
|
|
863
902
|
}).mostFrequent;
|
|
864
|
-
|
|
903
|
+
S.layerStore.updateVisibility(r, !0), S.uiState.menu = !1, S.searchStore.resetSearchBox(), S.uiState.details = null, S.uiState.list = {
|
|
865
904
|
type: "filter",
|
|
866
905
|
items: t,
|
|
867
906
|
query: {
|
|
868
907
|
key: "exhibitors",
|
|
869
908
|
value: t.map((e) => e.externalId).join(",")
|
|
870
909
|
}
|
|
871
|
-
},
|
|
910
|
+
}, S.moveToList();
|
|
872
911
|
}
|
|
873
912
|
highlightExhibitors(e) {
|
|
874
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
913
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), S.boothStore.highlightedByExternalIds = [], S.exhibitorStore.highlightedByExternalIds = [...e];
|
|
875
914
|
}
|
|
876
915
|
highlightBooths(e) {
|
|
877
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
916
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), S.exhibitorStore.highlightedByExternalIds = [], S.boothStore.highlightedByExternalIds = [...e];
|
|
878
917
|
}
|
|
879
918
|
highlightEntities(e) {
|
|
880
919
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
881
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
882
|
-
|
|
920
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = pe(e);
|
|
921
|
+
S.boothStore.highlightedByExternalIds = [...t], S.exhibitorStore.highlightedByExternalIds = [...n];
|
|
883
922
|
}
|
|
884
923
|
selectRoute(e, t) {
|
|
885
924
|
if (Array.isArray(e)) {
|
|
@@ -889,10 +928,10 @@ var Tt = class extends ee {
|
|
|
889
928
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
890
929
|
return;
|
|
891
930
|
}
|
|
892
|
-
|
|
931
|
+
S.routeStore.selectRoute(new _(Q(n), Q(r), t.map(Q)));
|
|
893
932
|
return;
|
|
894
933
|
}
|
|
895
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
934
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), S.routeStore.selectRoute(new _(Q(e), Q(t)));
|
|
896
935
|
}
|
|
897
936
|
getOptimizedRoutes(e) {
|
|
898
937
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -912,12 +951,12 @@ var Tt = class extends ee {
|
|
|
912
951
|
}
|
|
913
952
|
selectCurrentPosition(e, t, n) {
|
|
914
953
|
var r;
|
|
915
|
-
let i =
|
|
916
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
954
|
+
let i = b(e.x) && b(e.y), a = b(e.lng) && b(e.lat);
|
|
955
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), S.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
917
956
|
}
|
|
918
957
|
setBookmarks(e) {
|
|
919
958
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
920
|
-
let t =
|
|
959
|
+
let t = S.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
921
960
|
t && (t.bookmarked = e.bookmarked);
|
|
922
961
|
});
|
|
923
962
|
}
|
|
@@ -936,29 +975,29 @@ var Tt = class extends ee {
|
|
|
936
975
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
937
976
|
return;
|
|
938
977
|
}
|
|
939
|
-
let r =
|
|
978
|
+
let r = he("bookmarked"), i = {
|
|
940
979
|
exhibitor: {
|
|
941
980
|
existingIds: new Set(r.exhibitors || []),
|
|
942
|
-
finder: (e) =>
|
|
943
|
-
replacer: (e) =>
|
|
981
|
+
finder: (e) => S.exhibitorStore.findExhibitor(e),
|
|
982
|
+
replacer: (e) => S.exhibitorStore.replaceBookmarked(e)
|
|
944
983
|
},
|
|
945
984
|
event: {
|
|
946
985
|
existingIds: new Set(r.events || []),
|
|
947
|
-
finder: (e) =>
|
|
948
|
-
replacer: (e) =>
|
|
986
|
+
finder: (e) => S.eventStore.findByNameOrSlug(e),
|
|
987
|
+
replacer: (e) => S.eventStore.replaceBookmarked(e)
|
|
949
988
|
},
|
|
950
989
|
speaker: {
|
|
951
990
|
existingIds: new Set(r.speakers || []),
|
|
952
|
-
finder: (e) =>
|
|
953
|
-
replacer: (e) =>
|
|
991
|
+
finder: (e) => S.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
992
|
+
replacer: (e) => S.speakerStore.replaceBookmarked(e)
|
|
954
993
|
},
|
|
955
994
|
booth: {
|
|
956
995
|
existingIds: new Set(r.booths || []),
|
|
957
996
|
finder: (e) => {
|
|
958
|
-
let t =
|
|
997
|
+
let t = S.boothStore.findBooth(e);
|
|
959
998
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
960
999
|
},
|
|
961
|
-
replacer: (e) =>
|
|
1000
|
+
replacer: (e) => S.boothStore.replaceBookmarked(e)
|
|
962
1001
|
}
|
|
963
1002
|
};
|
|
964
1003
|
e.forEach((e) => {
|
|
@@ -978,16 +1017,16 @@ var Tt = class extends ee {
|
|
|
978
1017
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
979
1018
|
return;
|
|
980
1019
|
}
|
|
981
|
-
let r =
|
|
1020
|
+
let r = he("visited"), i = {
|
|
982
1021
|
exhibitor: {
|
|
983
1022
|
existingIds: new Set(r.exhibitors || []),
|
|
984
|
-
finder: (e) =>
|
|
985
|
-
replacer: (e) =>
|
|
1023
|
+
finder: (e) => S.exhibitorStore.findExhibitor(e),
|
|
1024
|
+
replacer: (e) => S.exhibitorStore.replaceVisited(e)
|
|
986
1025
|
},
|
|
987
1026
|
event: {
|
|
988
1027
|
existingIds: new Set(r.events || []),
|
|
989
|
-
finder: (e) =>
|
|
990
|
-
replacer: (e) =>
|
|
1028
|
+
finder: (e) => S.eventStore.findByNameOrSlug(e),
|
|
1029
|
+
replacer: (e) => S.eventStore.replaceVisited(e)
|
|
991
1030
|
}
|
|
992
1031
|
};
|
|
993
1032
|
e.forEach((e) => {
|
|
@@ -1002,73 +1041,73 @@ var Tt = class extends ee {
|
|
|
1002
1041
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
1003
1042
|
return;
|
|
1004
1043
|
}
|
|
1005
|
-
|
|
1044
|
+
S.routeStore.setMarkers(e);
|
|
1006
1045
|
}
|
|
1007
1046
|
selectMarker(e, t = !0) {
|
|
1008
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
1047
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), S.routeStore.selectMarker(e, t);
|
|
1009
1048
|
}
|
|
1010
1049
|
drawCircles(e) {
|
|
1011
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
1050
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), S.uiState.debugCircles = e;
|
|
1012
1051
|
}
|
|
1013
1052
|
checkRoutes() {
|
|
1014
|
-
|
|
1053
|
+
S.routeStore.checkRoutes();
|
|
1015
1054
|
}
|
|
1016
1055
|
updateLayerVisibility(e, t) {
|
|
1017
|
-
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"),
|
|
1056
|
+
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"), S.layerStore.updateVisibility(e, t);
|
|
1018
1057
|
}
|
|
1019
1058
|
getCenterCoordinates() {
|
|
1020
|
-
return
|
|
1059
|
+
return S.fp.getCenterCoordinates();
|
|
1021
1060
|
}
|
|
1022
1061
|
exhibitorsList() {
|
|
1023
|
-
return
|
|
1062
|
+
return S.exhibitorStore.exhibitors.map((e) => O(e));
|
|
1024
1063
|
}
|
|
1025
1064
|
boothsList() {
|
|
1026
|
-
return
|
|
1065
|
+
return S.boothStore.booths.map((e) => O(e));
|
|
1027
1066
|
}
|
|
1028
1067
|
categoriesList() {
|
|
1029
|
-
return
|
|
1068
|
+
return S.categoryStore.categories.map((e) => O(e));
|
|
1030
1069
|
}
|
|
1031
1070
|
selectCategory(e) {
|
|
1032
1071
|
if (e == null || typeof e != "string") {
|
|
1033
|
-
|
|
1072
|
+
S.searchStore.selectSearch();
|
|
1034
1073
|
return;
|
|
1035
1074
|
}
|
|
1036
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
1075
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = S.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
1037
1076
|
if (!n) {
|
|
1038
1077
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
1039
1078
|
return;
|
|
1040
1079
|
}
|
|
1041
|
-
|
|
1080
|
+
S.selectCategory(n);
|
|
1042
1081
|
}
|
|
1043
1082
|
applyParameters(e) {
|
|
1044
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
1083
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), be(e);
|
|
1045
1084
|
}
|
|
1046
1085
|
getVisibility() {
|
|
1047
|
-
return
|
|
1086
|
+
return S.uiState.visibility;
|
|
1048
1087
|
}
|
|
1049
1088
|
setVisibility(e) {
|
|
1050
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
1089
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), S.uiState.setVisibility(e);
|
|
1051
1090
|
}
|
|
1052
1091
|
findLocation() {
|
|
1053
|
-
|
|
1092
|
+
S.routeStore.findLocation();
|
|
1054
1093
|
}
|
|
1055
1094
|
zoomIn() {
|
|
1056
|
-
|
|
1095
|
+
S.uiState.zoomIn();
|
|
1057
1096
|
}
|
|
1058
1097
|
zoomOut() {
|
|
1059
|
-
|
|
1098
|
+
S.uiState.zoomOut();
|
|
1060
1099
|
}
|
|
1061
1100
|
switchView() {
|
|
1062
|
-
|
|
1101
|
+
S.maplibreStore.activateMaplibre();
|
|
1063
1102
|
}
|
|
1064
1103
|
zoomTo(e, t) {
|
|
1065
1104
|
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
1066
|
-
let n =
|
|
1105
|
+
let n = Tt.safeParse(e);
|
|
1067
1106
|
if (!n.success) {
|
|
1068
1107
|
$("zoomTo", n.error.message, "EFP001600");
|
|
1069
1108
|
return;
|
|
1070
1109
|
}
|
|
1071
|
-
let r =
|
|
1110
|
+
let r = Et.safeParse(t);
|
|
1072
1111
|
if (!r.success) {
|
|
1073
1112
|
$("zoomTo", r.error.message, "EFP001601");
|
|
1074
1113
|
return;
|
|
@@ -1079,7 +1118,7 @@ var Tt = class extends ee {
|
|
|
1079
1118
|
getBounds(e) {
|
|
1080
1119
|
var t, n;
|
|
1081
1120
|
Z("getBounds called with selectors=%O", e);
|
|
1082
|
-
let r =
|
|
1121
|
+
let r = Tt.safeParse(e);
|
|
1083
1122
|
if (!r.success) {
|
|
1084
1123
|
$("getBounds", r.error.message, "EFP001400");
|
|
1085
1124
|
return;
|
|
@@ -1087,15 +1126,15 @@ var Tt = class extends ee {
|
|
|
1087
1126
|
let i = [];
|
|
1088
1127
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1089
1128
|
let t;
|
|
1090
|
-
e.externalId ? t =
|
|
1129
|
+
e.externalId ? t = S.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = S.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1091
1130
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1092
1131
|
var t;
|
|
1093
1132
|
let n;
|
|
1094
|
-
e.externalId ? n =
|
|
1133
|
+
e.externalId ? n = S.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = S.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1095
1134
|
e.rect && i.push(e.rect);
|
|
1096
1135
|
});
|
|
1097
1136
|
}), i.length === 0) return;
|
|
1098
|
-
let a =
|
|
1137
|
+
let a = x.fromMultiple(i);
|
|
1099
1138
|
return {
|
|
1100
1139
|
leftTop: {
|
|
1101
1140
|
x: a.x1,
|
|
@@ -1109,15 +1148,15 @@ var Tt = class extends ee {
|
|
|
1109
1148
|
}
|
|
1110
1149
|
fitBounds(e, t) {
|
|
1111
1150
|
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1112
|
-
|
|
1151
|
+
S.uiState.fitBounds();
|
|
1113
1152
|
return;
|
|
1114
1153
|
}
|
|
1115
|
-
let n =
|
|
1154
|
+
let n = Ct.safeParse(e);
|
|
1116
1155
|
if (!n.success) {
|
|
1117
1156
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1118
1157
|
return;
|
|
1119
1158
|
}
|
|
1120
|
-
let r =
|
|
1159
|
+
let r = Et.safeParse(t);
|
|
1121
1160
|
if (!r.success) {
|
|
1122
1161
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1123
1162
|
return;
|
|
@@ -1125,13 +1164,13 @@ var Tt = class extends ee {
|
|
|
1125
1164
|
let i;
|
|
1126
1165
|
if (t != null && t.padding) {
|
|
1127
1166
|
let n = t.padding;
|
|
1128
|
-
i =
|
|
1129
|
-
} else i =
|
|
1130
|
-
|
|
1167
|
+
i = x.fromX1y1x2y2(e.leftTop.x - n, e.leftTop.y - n, e.rightBottom.x + n, e.rightBottom.y + n);
|
|
1168
|
+
} else i = x.fromX1y1x2y2(e.leftTop.x, e.leftTop.y, e.rightBottom.x, e.rightBottom.y);
|
|
1169
|
+
S.uiState.moveToRect = i;
|
|
1131
1170
|
}
|
|
1132
1171
|
getBoothRect(e) {
|
|
1133
1172
|
var t;
|
|
1134
|
-
return typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00"), (t =
|
|
1173
|
+
return typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00"), (t = v(e)) == null ? void 0 : t.rect;
|
|
1135
1174
|
}
|
|
1136
1175
|
convertToGeo(e, t) {
|
|
1137
1176
|
var n;
|
|
@@ -1143,7 +1182,7 @@ var Tt = class extends ee {
|
|
|
1143
1182
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1144
1183
|
return;
|
|
1145
1184
|
}
|
|
1146
|
-
return
|
|
1185
|
+
return fe(e, t, C.properties.config);
|
|
1147
1186
|
}
|
|
1148
1187
|
getGeoConfig() {
|
|
1149
1188
|
var e, t;
|
|
@@ -1157,16 +1196,16 @@ var Tt = class extends ee {
|
|
|
1157
1196
|
}
|
|
1158
1197
|
unstable_destroy() {
|
|
1159
1198
|
let e = window.__efpElement.firstChild;
|
|
1160
|
-
|
|
1199
|
+
Ae(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", f), S.maplibreStore.dispose(), le(), ye(), de(), [...document.getElementsByTagName("script")].filter((e) => e.src.indexOf("/fp.svg") > -1 || e.src.indexOf("/wf.data.js") > -1 || e.src.indexOf("/data.js") > -1).forEach((e) => e.remove()), this.root.unmount(), e.remove();
|
|
1161
1200
|
}
|
|
1162
1201
|
search(e) {
|
|
1163
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1202
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), S.fuzzySearchEngineStore.loadEngine().then(() => (S.searchStore.selectSearch(e), S.uiState.fuzzySearchItems.map((e) => ({
|
|
1164
1203
|
item: O(e.item),
|
|
1165
1204
|
score: e.score
|
|
1166
1205
|
}))));
|
|
1167
1206
|
}
|
|
1168
1207
|
getFloors() {
|
|
1169
|
-
return
|
|
1208
|
+
return S.layerStore.floors.map((e) => ({
|
|
1170
1209
|
name: e.name,
|
|
1171
1210
|
shortName: e.shortName,
|
|
1172
1211
|
description: e.description,
|
|
@@ -1205,66 +1244,66 @@ var Tt = class extends ee {
|
|
|
1205
1244
|
showPathway(e, t) {
|
|
1206
1245
|
let n = new URLSearchParams();
|
|
1207
1246
|
if (n.set(a, e), t != null && t.length) {
|
|
1208
|
-
let { boothExternalIds: e, exhibitorExternalIds: r } =
|
|
1247
|
+
let { boothExternalIds: e, exhibitorExternalIds: r } = pe(t);
|
|
1209
1248
|
e.length > 0 && n.set("booths", e.join(",")), r.length > 0 && n.set("exhibitors", r.join(","));
|
|
1210
1249
|
}
|
|
1211
1250
|
this.applyParameters(n.toString());
|
|
1212
1251
|
}
|
|
1213
1252
|
showPathwayOnly(e, t) {
|
|
1214
|
-
this.activateFloor({ name: t }),
|
|
1215
|
-
let n =
|
|
1253
|
+
this.activateFloor({ name: t }), S.layerStore.showPathWay(e), S.uiState.setPathwayOnlyMode(!0);
|
|
1254
|
+
let n = S.layerStore.findLayer(e), r = S.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1216
1255
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1217
1256
|
var a;
|
|
1218
1257
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1219
|
-
|
|
1258
|
+
S.uiState.moveToRect = x.fromX1y1x2y2(e.x1, e.y1, e.x2, e.y2);
|
|
1220
1259
|
}
|
|
1221
1260
|
}
|
|
1222
1261
|
hidePathways() {
|
|
1223
|
-
this.highlightBooths([]),
|
|
1262
|
+
this.highlightBooths([]), S.layerStore.hidePathways(), S.uiState.setPathwayOnlyMode(!1);
|
|
1224
1263
|
}
|
|
1225
1264
|
showSearch() {
|
|
1226
|
-
|
|
1265
|
+
S.selectSearch("");
|
|
1227
1266
|
}
|
|
1228
1267
|
changeLanguage(e) {
|
|
1229
1268
|
var t;
|
|
1230
1269
|
let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1231
|
-
if (!
|
|
1232
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1270
|
+
if (!d(n)) {
|
|
1271
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${u().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1233
1272
|
return;
|
|
1234
1273
|
}
|
|
1235
1274
|
let r = new URLSearchParams();
|
|
1236
1275
|
r.set(i, n), this.applyParameters(r.toString());
|
|
1237
1276
|
}
|
|
1238
1277
|
isGpsTrackingEnabled() {
|
|
1239
|
-
return
|
|
1278
|
+
return S.routeStore.gpsEnabled;
|
|
1240
1279
|
}
|
|
1241
1280
|
setGpsTrackingEnabled(e) {
|
|
1242
|
-
|
|
1281
|
+
S.routeStore.setGpsTrackingEnabled(e);
|
|
1243
1282
|
}
|
|
1244
1283
|
deselectCurrentPosition() {
|
|
1245
|
-
|
|
1284
|
+
S.routeStore.selectCurrentPosition(null, !1);
|
|
1246
1285
|
}
|
|
1247
1286
|
deselectRoute() {
|
|
1248
|
-
|
|
1287
|
+
S.routeStore.selectRoute(null), S.routeStore.setOnlyAccessible(!1);
|
|
1249
1288
|
}
|
|
1250
1289
|
reset() {
|
|
1251
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1290
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), S.uiState.kioskData && S.resetCameraFn) {
|
|
1252
1291
|
var e;
|
|
1253
|
-
(e =
|
|
1292
|
+
(e = S.resetCameraFn) == null || e.call(S);
|
|
1254
1293
|
} else this.fitBounds();
|
|
1255
1294
|
}
|
|
1256
1295
|
selectAccessibleRoute(e) {
|
|
1257
|
-
|
|
1296
|
+
S.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1258
1297
|
}
|
|
1259
1298
|
};
|
|
1260
1299
|
function Q(e) {
|
|
1261
|
-
return typeof e == "string" ?
|
|
1300
|
+
return typeof e == "string" ? v(e) : S.routeStore.getNearestBooth(e);
|
|
1262
1301
|
}
|
|
1263
|
-
var
|
|
1302
|
+
var It = 0;
|
|
1264
1303
|
function $(e, t, n) {
|
|
1265
1304
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1266
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1267
|
-
|
|
1305
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), S.fp.disableRuntimeAlerts) return;
|
|
1306
|
+
S.uiState.setGlobalErrorMessage({
|
|
1268
1307
|
title: r,
|
|
1269
1308
|
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1270
1309
|
i,
|
|
@@ -1276,14 +1315,14 @@ function $(e, t, n) {
|
|
|
1276
1315
|
children: a
|
|
1277
1316
|
})
|
|
1278
1317
|
] })
|
|
1279
|
-
}), clearTimeout(
|
|
1318
|
+
}), clearTimeout(It);
|
|
1280
1319
|
let o = 8e3;
|
|
1281
|
-
|
|
1320
|
+
It = window.setTimeout(() => {
|
|
1282
1321
|
let e = async () => {
|
|
1283
|
-
|
|
1322
|
+
S.uiState.globalErrorMessages.length > 0 && (S.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1284
1323
|
};
|
|
1285
1324
|
e();
|
|
1286
1325
|
}, o);
|
|
1287
1326
|
}
|
|
1288
1327
|
//#endregion
|
|
1289
|
-
export {
|
|
1328
|
+
export { Ft as default };
|