@expofp/floorplan 3.11.7 → 3.11.9
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-Be5Mv9VE.js → Button-DXaS8C6g.js} +5 -5
- package/dist/browser/{CookieConsent-B3ogrveq.js → CookieConsent-DS0COXN8.js} +7 -7
- package/dist/browser/{Debug-CCS0ulsY.js → Debug-C-u-EwLk.js} +7 -7
- package/dist/browser/{Demo-BGST5xTU.js → Demo-CFFpZYVv.js} +9 -9
- package/dist/browser/{Free-D-apFzdF.js → Free-BKjT9dnE.js} +9 -9
- package/dist/browser/{Gallery-DOBVNHw1.js → Gallery-DeevIsFt.js} +9 -9
- package/dist/browser/{GpsLoader-Bp864kgJ.js → GpsLoader-YKPZZKyc.js} +17 -17
- package/dist/browser/{KioskStore-CqoCVWLW.js → KioskStore-BbomwdV9.js} +27 -27
- package/dist/browser/{MaplibreAdapter-D94jfof9.js → MaplibreAdapter-C2v9GGep.js} +102 -102
- package/dist/browser/{ModalContainer-CCw-NMGr.js → ModalContainer-sKLWO7cb.js} +10 -10
- package/dist/browser/{PermissionNotice-DnQryDIa.js → PermissionNotice-BWvDycGh.js} +6 -6
- package/dist/browser/{SetKioskMode-Cwb7CIbm.js → SetKioskMode-BDG4AJ6C.js} +11 -11
- package/dist/browser/{ShowKiosk-B9R4we1G.js → ShowKiosk-DYDkODY_.js} +11 -11
- package/dist/browser/{TouchHand-DTMMhYNq.js → TouchHand-C66ch9Jy.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-DM0etDq_.js → ViewerMenuPanel-BLZQA0oY.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-hu9F4Atb.js → add-debug-secret-listener-Cb6srK1K.js} +1 -1
- package/dist/browser/{boolean-editor-D6Ml7Yg9.js → boolean-editor-uJkv0bdF.js} +9 -9
- package/dist/browser/{bootIntercom-CHnxDKid.js → bootIntercom-CnsI7TCY.js} +2 -2
- package/dist/browser/{booth-by-xy-Dm6e4U-I.js → booth-by-xy-DOTlGYzr.js} +256 -256
- package/dist/browser/{browser-Dz6u2Sga.js → browser-5XkJDoev.js} +2 -2
- package/dist/browser/bundle.json +61 -61
- package/dist/browser/{classnames-DMFbd4Gq.js → classnames-7BACf_72.js} +2 -2
- package/dist/browser/{client-2kzqjV26.js → client-BqqHFaWG.js} +4 -4
- package/dist/browser/{components-eW1xWD1_.js → components-DJx6jn09.js} +594 -594
- package/dist/browser/{debug-overlay-BlSHGsh9.js → debug-overlay-DjzcvGsv.js} +10 -10
- package/dist/browser/{debug-ui-CDQKWGra.js → debug-ui-D5q1dNwx.js} +6 -6
- package/dist/browser/{dist-Cfptg-Zs.js → dist-BCzfHe4M.js} +6 -6
- package/dist/browser/{dist-DNy4FU5M.js → dist-Gf1_O_JK.js} +3 -3
- package/dist/browser/{dist-DRI4b9ZL.js → dist-ufgGl_Q3.js} +5 -5
- package/dist/browser/{efp-debug-init-B6OkkcC4.js → efp-debug-init-Bq6luPzK.js} +2 -2
- package/dist/browser/{enum-editor-Djwd4MtY.js → enum-editor-DdcByF63.js} +11 -11
- package/dist/browser/{es5-BPgLcbjB.js → es5-FjYaeuo8.js} +2 -2
- package/dist/browser/{event-not-found-C5KUCljr.js → event-not-found-BgOtWmkd.js} +1 -1
- package/dist/browser/{exports-C0eeuYzr.js → exports-B2q1BIFL.js} +1 -1
- package/dist/browser/{favicon-DgO0Njpr.js → favicon-Cdq6z6Ga.js} +1 -1
- package/dist/browser/{fetch-retry.umd-DWAG7lmb.js → fetch-retry.umd-DdnCyANl.js} +2 -2
- package/dist/browser/{flex-Dyvx-r0t.js → flex-wgAlajDX.js} +5 -5
- package/dist/browser/{floorplan.loader-DXwFKMbo.js → floorplan.loader-DCbj-CqN.js} +11 -11
- package/dist/browser/{floorplan.ready-Bvrrviar.js → floorplan.ready-B_F4zlej.js} +223 -223
- package/dist/browser/{fuse-NMRtrNxj.js → fuse-CyI90qCC.js} +2 -2
- package/dist/browser/{i18n-B0O3ywA7.js → i18n-BCVOonXy.js} +4 -4
- package/dist/browser/index.js +12 -12
- package/dist/browser/{index.module-D1DJ0vkk.js → index.module-Cqfevm7x.js} +4 -4
- package/dist/browser/{is-webview-DDUeAPBv.js → is-webview-BcfENkh6.js} +1 -1
- package/dist/browser/{jsx-runtime-Cm69fPl1.js → jsx-runtime-BeS2ZpDl.js} +2 -2
- package/dist/browser/{lib-CNBCdu8a.js → lib-VQ7LQLBi.js} +4 -4
- package/dist/browser/{loadImage-B508S_kX.js → loadImage-CgC-D7Pn.js} +4 -4
- package/dist/browser/{logDeviceInfo-CMcJoORG.js → logDeviceInfo-CKeptNDu.js} +9 -9
- package/dist/browser/{main-DZNOffcA.js → main-Bht03DpB.js} +1 -1
- package/dist/browser/{mobx-CNoXeV8x.js → mobx-BsecfnD2.js} +4 -4
- package/dist/browser/{particles.min-IJ8pdwnU.js → particles.min-DyNIkRGB.js} +2 -2
- package/dist/browser/{prop-types-pGIP6I39.js → prop-types-CsGW6Aog.js} +2 -2
- package/dist/browser/{react-CyybZJxu.js → react-EyDmPnWP.js} +2 -2
- package/dist/browser/{react-dom-CbWysmN_.js → react-dom-EZS3LL-t.js} +3 -3
- package/dist/browser/{reset-all-settings-BQH6hDGI.js → reset-all-settings-Cp3DorZs.js} +7 -7
- package/dist/browser/{rolldown-runtime-BJnkUi3J.js → rolldown-runtime-DGatbznM.js} +1 -1
- package/dist/browser/{settings-g8CkvkNx.js → settings-Dg23InLQ.js} +2 -2
- package/dist/browser/{settings-item-BnHueA1T.js → settings-item-CZyF5H0l.js} +6 -6
- package/dist/browser/{store-jehszmn0.js → store-Bc0PJjXV.js} +386 -372
- package/dist/browser/{string-editor-5gIqlJg9.js → string-editor-AcbIqvWd.js} +7 -7
- package/dist/browser/{theme-BdNZrxtp.js → theme-B5tFIPE4.js} +8 -8
- package/dist/browser/{ui-D3aW1Yi5.js → ui-DexqWnWb.js} +8 -8
- package/dist/browser/{useRenderTarget-R3IvXF5T.js → useRenderTarget-BHYQ9OVe.js} +4 -4
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/Ws.js +1 -1
- package/dist/esm/floorplan.loader.d.ts +1 -1
- package/dist/esm/tools/gtag.d.ts +21 -1
- package/dist/esm/tools/gtag.js +1 -1
- package/dist/esm/tools/track-event.d.ts +1 -1
- package/dist/esm/types.d.ts +1 -1
- package/package.json +4 -4
|
@@ -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.11.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.11.9" };
|
|
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] = "ebdb2dfd-8ecb-4594-8912-7df810f0ba40", e._sentryDebugIdIdentifier = "sentry-dbid-ebdb2dfd-8ecb-4594-8912-7df810f0ba40");
|
|
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, K as a, W as o, Y as s, l as c, n as l, r as u, v as d } from "./i18n-
|
|
14
|
-
import { a as f, i as p, n as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DGatbznM.js";
|
|
10
|
+
import { t } from "./react-EyDmPnWP.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-BeS2ZpDl.js";
|
|
12
|
+
import { t as r } from "./browser-5XkJDoev.js";
|
|
13
|
+
import { G as i, K as a, W as o, Y as s, l as c, n as l, r as u, v as d } from "./i18n-BCVOonXy.js";
|
|
14
|
+
import { a as f, i as p, n as ee, r as m, t as te } from "./floorplan.loader-DCbj-CqN.js";
|
|
15
|
+
import { _ as h, et as ne, i as re, mt as g, n as ie, v as ae, x as oe } from "./exports-B2q1BIFL.js";
|
|
16
|
+
import { t as se } from "./client-BqqHFaWG.js";
|
|
17
|
+
import { A as ce, C as le, D as ue, F as de, H as fe, K as pe, N as me, O as he, P as ge, Z as _, cn as _e, ct as ve, k as ye, lt as be, q as v, s as y, tn as xe, tt as Se, w as Ce, x as we, y as b } from "./store-Bc0PJjXV.js";
|
|
18
|
+
import { t as Te } from "./components-DJx6jn09.js";
|
|
19
19
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.62.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
20
|
-
function
|
|
21
|
-
let t =
|
|
20
|
+
function Ee(e = {}) {
|
|
21
|
+
let t = m.document, n = (t == null ? void 0 : t.head) || (t == null ? void 0 : t.body);
|
|
22
22
|
if (!n) {
|
|
23
|
-
|
|
23
|
+
ee && g.error("[showReportDialog] Global document not defined");
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
let r =
|
|
26
|
+
let r = ae(), i = h(), a = i == null ? void 0 : i.getDsn();
|
|
27
27
|
if (!a) {
|
|
28
|
-
|
|
28
|
+
ee && g.error("[showReportDialog] DSN not configured");
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
let o = {
|
|
@@ -34,8 +34,8 @@ function C(e = {}) {
|
|
|
34
34
|
...r.getUser(),
|
|
35
35
|
...e.user
|
|
36
36
|
},
|
|
37
|
-
eventId: e.eventId ||
|
|
38
|
-
}, s =
|
|
37
|
+
eventId: e.eventId || re()
|
|
38
|
+
}, s = m.document.createElement("script");
|
|
39
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) {
|
|
@@ -43,21 +43,21 @@ function C(e = {}) {
|
|
|
43
43
|
if (t.data === "__sentry_reportdialog_closed__") try {
|
|
44
44
|
l();
|
|
45
45
|
} finally {
|
|
46
|
-
|
|
46
|
+
m.removeEventListener("message", e);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
m.addEventListener("message", e);
|
|
50
50
|
}
|
|
51
51
|
n.appendChild(s);
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region ../../node_modules/.pnpm/@sentry+react@10.62.0_react@19.2.7/node_modules/@sentry/react/build/esm/debug-build.js
|
|
55
|
-
var
|
|
56
|
-
function
|
|
55
|
+
var De = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, x = /* @__PURE__ */ e(t());
|
|
56
|
+
function Oe(e) {
|
|
57
57
|
let t = e.match(/^([^.]+)/);
|
|
58
58
|
return t !== null && parseInt(t[0]) >= 17;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ke(e, t) {
|
|
61
61
|
let n = /* @__PURE__ */ new WeakSet();
|
|
62
62
|
function r(e, t) {
|
|
63
63
|
if (!n.has(e)) {
|
|
@@ -67,25 +67,25 @@ function Ee(e, t) {
|
|
|
67
67
|
}
|
|
68
68
|
r(e, t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
70
|
+
function Ae(e, { componentStack: t }, n) {
|
|
71
|
+
if (Oe(x.version) && ne(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, ke(e, n);
|
|
74
74
|
}
|
|
75
|
-
return
|
|
75
|
+
return ie(e, n);
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region ../../node_modules/.pnpm/@sentry+react@10.62.0_react@19.2.7/node_modules/@sentry/react/build/esm/errorboundary.js
|
|
79
|
-
var
|
|
79
|
+
var S = {
|
|
80
80
|
componentStack: null,
|
|
81
81
|
error: null,
|
|
82
82
|
eventId: null
|
|
83
|
-
},
|
|
83
|
+
}, je = class extends x.Component {
|
|
84
84
|
constructor(e) {
|
|
85
|
-
super(e), this.state =
|
|
86
|
-
let t =
|
|
85
|
+
super(e), this.state = S, this._openFallbackReportDialog = !0;
|
|
86
|
+
let t = h();
|
|
87
87
|
t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
|
|
88
|
-
!t.type && this._lastEventId && t.event_id === this._lastEventId &&
|
|
88
|
+
!t.type && this._lastEventId && t.event_id === this._lastEventId && Ee({
|
|
89
89
|
...e.dialogOptions,
|
|
90
90
|
eventId: this._lastEventId
|
|
91
91
|
});
|
|
@@ -93,13 +93,13 @@ var T = {
|
|
|
93
93
|
}
|
|
94
94
|
componentDidCatch(e, t) {
|
|
95
95
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
96
|
-
|
|
96
|
+
oe((s) => {
|
|
97
97
|
r && r(s, e, n);
|
|
98
|
-
let c =
|
|
98
|
+
let c = Ae(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
|
} });
|
|
102
|
-
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog &&
|
|
102
|
+
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && Ee({
|
|
103
103
|
...o,
|
|
104
104
|
eventId: c
|
|
105
105
|
})), this.setState({
|
|
@@ -115,36 +115,36 @@ var T = {
|
|
|
115
115
|
}
|
|
116
116
|
componentWillUnmount() {
|
|
117
117
|
let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
|
|
118
|
-
r && (this.state ===
|
|
118
|
+
r && (this.state === S ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
|
|
119
119
|
}
|
|
120
120
|
resetErrorBoundary() {
|
|
121
121
|
let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
|
|
122
|
-
e && e(t, n, r), this.setState(
|
|
122
|
+
e && e(t, n, r), this.setState(S);
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
125
|
let { fallback: e, children: t } = this.props, n = this.state;
|
|
126
126
|
if (n.componentStack === null) return typeof t == "function" ? t() : t;
|
|
127
|
-
let r = typeof e == "function" ?
|
|
127
|
+
let r = typeof e == "function" ? x.createElement(e, {
|
|
128
128
|
error: n.error,
|
|
129
129
|
componentStack: n.componentStack,
|
|
130
130
|
resetError: () => this.resetErrorBoundary(),
|
|
131
131
|
eventId: n.eventId
|
|
132
132
|
}) : e;
|
|
133
|
-
return
|
|
133
|
+
return x.isValidElement(r) ? r : (e && De && g.warn("fallback did not produce a valid ReactElement"), null);
|
|
134
134
|
}
|
|
135
|
-
},
|
|
136
|
-
function
|
|
135
|
+
}, Me = /* @__PURE__ */ e(r(), 1), Ne = se(), Pe = be();
|
|
136
|
+
function Fe() {
|
|
137
137
|
let e = new URLSearchParams(window.location.search).get(o), t = c ? window.localStorage.getItem(o) : null, n = e == null ? t : e;
|
|
138
|
-
return n == null ? c &&
|
|
138
|
+
return n == null ? c && Se() != null : n === "1";
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function C() {
|
|
141
141
|
let e = window.location.hostname.split(".");
|
|
142
142
|
return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
144
|
+
function Ie() {
|
|
145
|
+
return C() ? window.location.hostname.split(".")[0] : "main";
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Le(e) {
|
|
148
148
|
if ((e == null ? void 0 : e.free) === !0) return "Free";
|
|
149
149
|
let t = e == null ? void 0 : e.trialExpiresAt;
|
|
150
150
|
if (t) {
|
|
@@ -153,22 +153,22 @@ function Pe(e) {
|
|
|
153
153
|
}
|
|
154
154
|
return "Active";
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Re() {
|
|
157
157
|
return !1;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function ze(e) {
|
|
160
160
|
return e;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
if (
|
|
164
|
-
let t =
|
|
165
|
-
subDomain:
|
|
166
|
-
subscriptionStatus:
|
|
162
|
+
function Be(e) {
|
|
163
|
+
if (Re() || !C() || Fe() || !window.navigator.onLine) return null;
|
|
164
|
+
let t = ze({
|
|
165
|
+
subDomain: Ie(),
|
|
166
|
+
subscriptionStatus: Le(e)
|
|
167
167
|
});
|
|
168
168
|
return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
|
|
169
169
|
}
|
|
170
170
|
Object.freeze({ status: "aborted" });
|
|
171
|
-
function
|
|
171
|
+
function w(e, t, n) {
|
|
172
172
|
var r;
|
|
173
173
|
function i(n, r) {
|
|
174
174
|
if (n._zod || Object.defineProperty(n, "_zod", {
|
|
@@ -201,20 +201,20 @@ function D(e, t, n) {
|
|
|
201
201
|
return n != null && n.Parent && t instanceof n.Parent ? !0 : t == null || (r = t._zod) == null || (r = r.traits) == null ? void 0 : r.has(e);
|
|
202
202
|
} }), Object.defineProperty(s, "name", { value: e }), s;
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var T = class extends Error {
|
|
205
205
|
constructor() {
|
|
206
206
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
207
207
|
}
|
|
208
|
-
},
|
|
209
|
-
function
|
|
210
|
-
return e && Object.assign(
|
|
208
|
+
}, E = {};
|
|
209
|
+
function D(e) {
|
|
210
|
+
return e && Object.assign(E, e), E;
|
|
211
211
|
}
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js
|
|
214
|
-
function
|
|
214
|
+
function Ve(e, t) {
|
|
215
215
|
return typeof t == "bigint" ? t.toString() : t;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function He(e) {
|
|
218
218
|
return { get value() {
|
|
219
219
|
{
|
|
220
220
|
let t = e();
|
|
@@ -223,16 +223,16 @@ function ze(e) {
|
|
|
223
223
|
throw Error("cached value already set");
|
|
224
224
|
} };
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Ue(e) {
|
|
227
227
|
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
228
228
|
return e.slice(t, n);
|
|
229
229
|
}
|
|
230
|
-
var
|
|
231
|
-
function
|
|
230
|
+
var O = Symbol("evaluating");
|
|
231
|
+
function k(e, t, n) {
|
|
232
232
|
let r;
|
|
233
233
|
Object.defineProperty(e, t, {
|
|
234
234
|
get() {
|
|
235
|
-
if (r !==
|
|
235
|
+
if (r !== O) return r === void 0 && (r = O, r = n()), r;
|
|
236
236
|
},
|
|
237
237
|
set(n) {
|
|
238
238
|
Object.defineProperty(e, t, { value: n });
|
|
@@ -240,15 +240,15 @@ function M(e, t, n) {
|
|
|
240
240
|
configurable: !0
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
var
|
|
244
|
-
function
|
|
243
|
+
var A = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
244
|
+
function We(e) {
|
|
245
245
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Ge(e, t, n) {
|
|
248
248
|
let r = new e._zod.constr(t == null ? e._zod.def : t);
|
|
249
249
|
return (!t || n != null && n.parent) && (r._zod.parent = e), r;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function j(e) {
|
|
252
252
|
let t = e;
|
|
253
253
|
if (!t) return {};
|
|
254
254
|
if (typeof t == "string") return { error: () => t };
|
|
@@ -261,11 +261,11 @@ function P(e) {
|
|
|
261
261
|
error: () => t.error
|
|
262
262
|
} : t;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Ke(e) {
|
|
265
265
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
266
266
|
}
|
|
267
267
|
-Number.MAX_VALUE, Number.MAX_VALUE;
|
|
268
|
-
function
|
|
268
|
+
function M(e, t = 0) {
|
|
269
269
|
if (e.aborted === !0) return !0;
|
|
270
270
|
for (let r = t; r < e.issues.length; r++) {
|
|
271
271
|
var n;
|
|
@@ -273,16 +273,16 @@ function F(e, t = 0) {
|
|
|
273
273
|
}
|
|
274
274
|
return !1;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function N(e, t) {
|
|
277
277
|
return t.map((t) => {
|
|
278
278
|
var n;
|
|
279
279
|
return (n = t).path != null || (n.path = []), t.path.unshift(e), t;
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function P(e) {
|
|
283
283
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function F(e, t, n) {
|
|
286
286
|
var r;
|
|
287
287
|
let i = {
|
|
288
288
|
...e,
|
|
@@ -290,11 +290,11 @@ function L(e, t, n) {
|
|
|
290
290
|
};
|
|
291
291
|
if (!e.message) {
|
|
292
292
|
var a, o, s, c, l, u, d, f, p;
|
|
293
|
-
i.message = (a = (o = (s = (c =
|
|
293
|
+
i.message = (a = (o = (s = (c = P((l = e.inst) == null || (l = l._zod.def) == null || (u = l.error) == null ? void 0 : u.call(l, e))) == null ? P(t == null || (d = t.error) == null ? void 0 : d.call(t, e)) : c) == null ? P((f = n.customError) == null ? void 0 : f.call(n, e)) : s) == null ? P((p = n.localeError) == null ? void 0 : p.call(n, e)) : o) == null ? "Invalid input" : a;
|
|
294
294
|
}
|
|
295
295
|
return delete i.inst, delete i.continue, t != null && t.reportInput || delete i.input, i;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function qe(...e) {
|
|
298
298
|
let [t, n, r] = e;
|
|
299
299
|
return typeof t == "string" ? {
|
|
300
300
|
message: t,
|
|
@@ -305,41 +305,41 @@ function Ge(...e) {
|
|
|
305
305
|
}
|
|
306
306
|
//#endregion
|
|
307
307
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js
|
|
308
|
-
var
|
|
308
|
+
var I = (e, t) => {
|
|
309
309
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
310
310
|
value: e._zod,
|
|
311
311
|
enumerable: !1
|
|
312
312
|
}), Object.defineProperty(e, "issues", {
|
|
313
313
|
value: t,
|
|
314
314
|
enumerable: !1
|
|
315
|
-
}), e.message = JSON.stringify(t,
|
|
315
|
+
}), e.message = JSON.stringify(t, Ve, 2), Object.defineProperty(e, "toString", {
|
|
316
316
|
value: () => e.message,
|
|
317
317
|
enumerable: !1
|
|
318
318
|
});
|
|
319
|
-
},
|
|
319
|
+
}, Je = w("$ZodError", I), L = w("$ZodError", I, { Parent: Error }), Ye = /* @__PURE__*/ ((e) => (t, n, r, i) => {
|
|
320
320
|
let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
|
|
321
321
|
value: n,
|
|
322
322
|
issues: []
|
|
323
323
|
}, a);
|
|
324
|
-
if (o instanceof Promise) throw new
|
|
324
|
+
if (o instanceof Promise) throw new T();
|
|
325
325
|
if (o.issues.length) {
|
|
326
326
|
var s;
|
|
327
|
-
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) =>
|
|
328
|
-
throw
|
|
327
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => F(e, a, D())));
|
|
328
|
+
throw A(t, i == null ? void 0 : i.callee), t;
|
|
329
329
|
}
|
|
330
330
|
return o.value;
|
|
331
|
-
})(
|
|
331
|
+
})(L), Xe = /* @__PURE__*/ ((e) => async (t, n, r, i) => {
|
|
332
332
|
let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
|
|
333
333
|
value: n,
|
|
334
334
|
issues: []
|
|
335
335
|
}, a);
|
|
336
336
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
337
337
|
var s;
|
|
338
|
-
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) =>
|
|
339
|
-
throw
|
|
338
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => F(e, a, D())));
|
|
339
|
+
throw A(t, i == null ? void 0 : i.callee), t;
|
|
340
340
|
}
|
|
341
341
|
return o.value;
|
|
342
|
-
})(
|
|
342
|
+
})(L), R = /* @__PURE__*/ ((e) => (t, n, r) => {
|
|
343
343
|
let i = r ? {
|
|
344
344
|
...r,
|
|
345
345
|
async: !1
|
|
@@ -347,38 +347,38 @@ var Ke = (e, t) => {
|
|
|
347
347
|
value: n,
|
|
348
348
|
issues: []
|
|
349
349
|
}, i);
|
|
350
|
-
if (a instanceof Promise) throw new
|
|
350
|
+
if (a instanceof Promise) throw new T();
|
|
351
351
|
return a.issues.length ? {
|
|
352
352
|
success: !1,
|
|
353
|
-
error: new (e == null ?
|
|
353
|
+
error: new (e == null ? Je : e)(a.issues.map((e) => F(e, i, D())))
|
|
354
354
|
} : {
|
|
355
355
|
success: !0,
|
|
356
356
|
data: a.value
|
|
357
357
|
};
|
|
358
|
-
})(
|
|
358
|
+
})(L), Ze = /* @__PURE__*/ ((e) => async (t, n, r) => {
|
|
359
359
|
let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
|
|
360
360
|
value: n,
|
|
361
361
|
issues: []
|
|
362
362
|
}, i);
|
|
363
363
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
364
364
|
success: !1,
|
|
365
|
-
error: new e(a.issues.map((e) =>
|
|
365
|
+
error: new e(a.issues.map((e) => F(e, i, D())))
|
|
366
366
|
} : {
|
|
367
367
|
success: !0,
|
|
368
368
|
data: a.value
|
|
369
369
|
};
|
|
370
|
-
})(
|
|
370
|
+
})(L), Qe = (e) => {
|
|
371
371
|
var t, n;
|
|
372
372
|
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]*";
|
|
373
373
|
return RegExp(`^${r}$`);
|
|
374
|
-
}, $e = /^-?\d+(?:\.\d+)?$/, et = /*@__PURE__*/
|
|
374
|
+
}, $e = /^-?\d+(?:\.\d+)?$/, et = /*@__PURE__*/ w("$ZodCheck", (e, t) => {
|
|
375
375
|
var n;
|
|
376
376
|
e._zod != null || (e._zod = {}), e._zod.def = t, (n = e._zod).onattach != null || (n.onattach = []);
|
|
377
377
|
}), tt = {
|
|
378
378
|
major: 4,
|
|
379
379
|
minor: 3,
|
|
380
380
|
patch: 5
|
|
381
|
-
}, z = /*@__PURE__*/
|
|
381
|
+
}, z = /*@__PURE__*/ w("$ZodType", (e, t) => {
|
|
382
382
|
var n, r;
|
|
383
383
|
e != null || (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = tt;
|
|
384
384
|
let i = [...(n = e._zod.def.checks) == null ? [] : n];
|
|
@@ -391,29 +391,29 @@ var Ke = (e, t) => {
|
|
|
391
391
|
});
|
|
392
392
|
} else {
|
|
393
393
|
let t = (e, t, n) => {
|
|
394
|
-
let r =
|
|
394
|
+
let r = M(e), i;
|
|
395
395
|
for (let o of t) {
|
|
396
396
|
if (o._zod.def.when) {
|
|
397
397
|
if (!o._zod.def.when(e)) continue;
|
|
398
398
|
} else if (r) continue;
|
|
399
399
|
let t = e.issues.length, s = o._zod.check(e);
|
|
400
|
-
if (s instanceof Promise && (n == null ? void 0 : n.async) === !1) throw new
|
|
400
|
+
if (s instanceof Promise && (n == null ? void 0 : n.async) === !1) throw new T();
|
|
401
401
|
if (i || s instanceof Promise) {
|
|
402
402
|
var a;
|
|
403
403
|
i = ((a = i) == null ? Promise.resolve() : a).then(async () => {
|
|
404
|
-
await s, e.issues.length !== t && (r || (r =
|
|
404
|
+
await s, e.issues.length !== t && (r || (r = M(e, t)));
|
|
405
405
|
});
|
|
406
406
|
} else {
|
|
407
407
|
if (e.issues.length === t) continue;
|
|
408
|
-
r || (r =
|
|
408
|
+
r || (r = M(e, t));
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
return i ? i.then(() => e) : e;
|
|
412
412
|
}, n = (n, r, a) => {
|
|
413
|
-
if (
|
|
413
|
+
if (M(n)) return n.aborted = !0, n;
|
|
414
414
|
let o = t(r, i, a);
|
|
415
415
|
if (o instanceof Promise) {
|
|
416
|
-
if (a.async === !1) throw new
|
|
416
|
+
if (a.async === !1) throw new T();
|
|
417
417
|
return o.then((t) => e._zod.parse(t, a));
|
|
418
418
|
}
|
|
419
419
|
return e._zod.parse(o, a);
|
|
@@ -432,17 +432,17 @@ var Ke = (e, t) => {
|
|
|
432
432
|
}
|
|
433
433
|
let o = e._zod.parse(r, a);
|
|
434
434
|
if (o instanceof Promise) {
|
|
435
|
-
if (a.async === !1) throw new
|
|
435
|
+
if (a.async === !1) throw new T();
|
|
436
436
|
return o.then((e) => t(e, i, a));
|
|
437
437
|
}
|
|
438
438
|
return t(o, i, a);
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
|
-
|
|
441
|
+
k(e, "~standard", () => ({
|
|
442
442
|
validate: (t) => {
|
|
443
443
|
try {
|
|
444
444
|
var n;
|
|
445
|
-
let r =
|
|
445
|
+
let r = R(e, t);
|
|
446
446
|
return r.success ? { value: r.data } : { issues: (n = r.error) == null ? void 0 : n.issues };
|
|
447
447
|
} catch {
|
|
448
448
|
return Ze(e, t).then((e) => {
|
|
@@ -454,7 +454,7 @@ var Ke = (e, t) => {
|
|
|
454
454
|
vendor: "zod",
|
|
455
455
|
version: 1
|
|
456
456
|
}));
|
|
457
|
-
}), nt = /*@__PURE__*/
|
|
457
|
+
}), nt = /*@__PURE__*/ w("$ZodString", (e, t) => {
|
|
458
458
|
var n, r, i;
|
|
459
459
|
z.init(e, t), e._zod.pattern = (n = [...(r = e == null || (i = e._zod.bag) == null ? void 0 : i.patterns) == null ? [] : r].pop()) == null ? Qe(e._zod.bag) : n, e._zod.parse = (n, r) => {
|
|
460
460
|
if (t.coerce) try {
|
|
@@ -467,7 +467,7 @@ var Ke = (e, t) => {
|
|
|
467
467
|
inst: e
|
|
468
468
|
}), n;
|
|
469
469
|
};
|
|
470
|
-
}), rt = /*@__PURE__*/
|
|
470
|
+
}), rt = /*@__PURE__*/ w("$ZodNumber", (e, t) => {
|
|
471
471
|
var n;
|
|
472
472
|
z.init(e, t), e._zod.pattern = (n = e._zod.bag.pattern) == null ? $e : n, e._zod.parse = (n, r) => {
|
|
473
473
|
if (t.coerce) try {
|
|
@@ -484,7 +484,7 @@ var Ke = (e, t) => {
|
|
|
484
484
|
...a ? { received: a } : {}
|
|
485
485
|
}), n;
|
|
486
486
|
};
|
|
487
|
-
}), it = /*@__PURE__*/
|
|
487
|
+
}), it = /*@__PURE__*/ w("$ZodNever", (e, t) => {
|
|
488
488
|
z.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
489
489
|
expected: "never",
|
|
490
490
|
code: "invalid_type",
|
|
@@ -493,9 +493,9 @@ var Ke = (e, t) => {
|
|
|
493
493
|
}), t);
|
|
494
494
|
});
|
|
495
495
|
function at(e, t, n) {
|
|
496
|
-
e.issues.length && t.issues.push(...
|
|
496
|
+
e.issues.length && t.issues.push(...N(n, e.issues)), t.value[n] = e.value;
|
|
497
497
|
}
|
|
498
|
-
var ot = /*@__PURE__*/
|
|
498
|
+
var ot = /*@__PURE__*/ w("$ZodArray", (e, t) => {
|
|
499
499
|
z.init(e, t), e._zod.parse = (n, r) => {
|
|
500
500
|
let i = n.value;
|
|
501
501
|
if (!Array.isArray(i)) return n.issues.push({
|
|
@@ -519,7 +519,7 @@ var ot = /*@__PURE__*/ D("$ZodArray", (e, t) => {
|
|
|
519
519
|
function B(e, t, n, r, i) {
|
|
520
520
|
if (e.issues.length) {
|
|
521
521
|
if (i && !(n in r)) return;
|
|
522
|
-
t.issues.push(...
|
|
522
|
+
t.issues.push(...N(n, e.issues));
|
|
523
523
|
}
|
|
524
524
|
e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
525
525
|
}
|
|
@@ -529,7 +529,7 @@ function st(e) {
|
|
|
529
529
|
var n;
|
|
530
530
|
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`);
|
|
531
531
|
}
|
|
532
|
-
let r =
|
|
532
|
+
let r = Ke(e.shape);
|
|
533
533
|
return {
|
|
534
534
|
...e,
|
|
535
535
|
keys: t,
|
|
@@ -559,7 +559,7 @@ function ct(e, t, n, r, i, a) {
|
|
|
559
559
|
inst: a
|
|
560
560
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
561
561
|
}
|
|
562
|
-
var lt = /*@__PURE__*/
|
|
562
|
+
var lt = /*@__PURE__*/ w("$ZodObject", (e, t) => {
|
|
563
563
|
z.init(e, t);
|
|
564
564
|
let n = Object.getOwnPropertyDescriptor(t, "shape");
|
|
565
565
|
if (!(n != null && n.get)) {
|
|
@@ -569,8 +569,8 @@ var lt = /*@__PURE__*/ D("$ZodObject", (e, t) => {
|
|
|
569
569
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
570
570
|
} });
|
|
571
571
|
}
|
|
572
|
-
let r =
|
|
573
|
-
|
|
572
|
+
let r = He(() => st(t));
|
|
573
|
+
k(e._zod, "propValues", () => {
|
|
574
574
|
let e = t.shape, n = {};
|
|
575
575
|
for (let t in e) {
|
|
576
576
|
let r = e[t]._zod;
|
|
@@ -581,7 +581,7 @@ var lt = /*@__PURE__*/ D("$ZodObject", (e, t) => {
|
|
|
581
581
|
}
|
|
582
582
|
return n;
|
|
583
583
|
});
|
|
584
|
-
let i =
|
|
584
|
+
let i = We, a = t.catchall, o;
|
|
585
585
|
e._zod.parse = (t, n) => {
|
|
586
586
|
o != null || (o = r.value);
|
|
587
587
|
let s = t.value;
|
|
@@ -609,10 +609,10 @@ function ut(e, t) {
|
|
|
609
609
|
value: void 0
|
|
610
610
|
} : e;
|
|
611
611
|
}
|
|
612
|
-
var dt = /*@__PURE__*/
|
|
613
|
-
z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional",
|
|
612
|
+
var dt = /*@__PURE__*/ w("$ZodOptional", (e, t) => {
|
|
613
|
+
z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", k(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), k(e._zod, "pattern", () => {
|
|
614
614
|
let e = t.innerType._zod.pattern;
|
|
615
|
-
return e ? RegExp(`^(${
|
|
615
|
+
return e ? RegExp(`^(${Ue(e.source)})?$`) : void 0;
|
|
616
616
|
}), e._zod.parse = (e, n) => {
|
|
617
617
|
if (t.innerType._zod.optin === "optional") {
|
|
618
618
|
let r = t.innerType._zod.run(e, n);
|
|
@@ -620,7 +620,7 @@ var dt = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
|
|
|
620
620
|
}
|
|
621
621
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
622
622
|
};
|
|
623
|
-
}), ft = /*@__PURE__*/
|
|
623
|
+
}), ft = /*@__PURE__*/ w("$ZodCustom", (e, t) => {
|
|
624
624
|
et.init(e, t), z.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
625
625
|
let r = n.value, i = t.fn(r);
|
|
626
626
|
if (i instanceof Promise) return i.then((t) => pt(t, n, r, e));
|
|
@@ -637,7 +637,7 @@ function pt(e, t, n, r) {
|
|
|
637
637
|
path: [...(i = r._zod.def.path) == null ? [] : i],
|
|
638
638
|
continue: !r._zod.def.abort
|
|
639
639
|
};
|
|
640
|
-
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(
|
|
640
|
+
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(qe(e));
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
//#endregion
|
|
@@ -646,7 +646,7 @@ function pt(e, t, n, r) {
|
|
|
646
646
|
function mt(e, t) {
|
|
647
647
|
return new e({
|
|
648
648
|
type: "string",
|
|
649
|
-
...
|
|
649
|
+
...j(t)
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -654,14 +654,14 @@ function ht(e, t) {
|
|
|
654
654
|
return new e({
|
|
655
655
|
type: "number",
|
|
656
656
|
checks: [],
|
|
657
|
-
...
|
|
657
|
+
...j(t)
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
660
|
// @__NO_SIDE_EFFECTS__
|
|
661
661
|
function gt(e, t) {
|
|
662
662
|
return new e({
|
|
663
663
|
type: "never",
|
|
664
|
-
...
|
|
664
|
+
...j(t)
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
667
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -670,14 +670,14 @@ function _t(e, t, n) {
|
|
|
670
670
|
type: "custom",
|
|
671
671
|
check: "custom",
|
|
672
672
|
fn: t,
|
|
673
|
-
...
|
|
673
|
+
...j(n)
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
676
|
//#endregion
|
|
677
677
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js
|
|
678
|
-
var V = /*@__PURE__*/
|
|
678
|
+
var V = /*@__PURE__*/ w("ZodMiniType", (e, t) => {
|
|
679
679
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
680
|
-
z.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) =>
|
|
680
|
+
z.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => Ye(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => R(e, t, n), e.parseAsync = async (t, n) => Xe(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ze(e, t, n), e.check = (...n) => {
|
|
681
681
|
var r;
|
|
682
682
|
return e.clone({
|
|
683
683
|
...t,
|
|
@@ -687,29 +687,29 @@ var V = /*@__PURE__*/ D("ZodMiniType", (e, t) => {
|
|
|
687
687
|
onattach: []
|
|
688
688
|
} } : e)]
|
|
689
689
|
}, { parent: !0 });
|
|
690
|
-
}, e.with = e.check, e.clone = (t, n) =>
|
|
691
|
-
}), vt = /*@__PURE__*/
|
|
690
|
+
}, e.with = e.check, e.clone = (t, n) => Ge(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
691
|
+
}), vt = /*@__PURE__*/ w("ZodMiniString", (e, t) => {
|
|
692
692
|
nt.init(e, t), V.init(e, t);
|
|
693
693
|
});
|
|
694
694
|
// @__NO_SIDE_EFFECTS__
|
|
695
695
|
function yt(e) {
|
|
696
696
|
return /* @__PURE__ */ mt(vt, e);
|
|
697
697
|
}
|
|
698
|
-
var bt = /*@__PURE__*/
|
|
698
|
+
var bt = /*@__PURE__*/ w("ZodMiniNumber", (e, t) => {
|
|
699
699
|
rt.init(e, t), V.init(e, t);
|
|
700
700
|
});
|
|
701
701
|
// @__NO_SIDE_EFFECTS__
|
|
702
702
|
function H(e) {
|
|
703
703
|
return /* @__PURE__ */ ht(bt, e);
|
|
704
704
|
}
|
|
705
|
-
var xt = /*@__PURE__*/
|
|
705
|
+
var xt = /*@__PURE__*/ w("ZodMiniNever", (e, t) => {
|
|
706
706
|
it.init(e, t), V.init(e, t);
|
|
707
707
|
});
|
|
708
708
|
// @__NO_SIDE_EFFECTS__
|
|
709
709
|
function St(e) {
|
|
710
710
|
return /* @__PURE__ */ gt(xt, e);
|
|
711
711
|
}
|
|
712
|
-
var Ct = /*@__PURE__*/
|
|
712
|
+
var Ct = /*@__PURE__*/ w("ZodMiniArray", (e, t) => {
|
|
713
713
|
ot.init(e, t), V.init(e, t);
|
|
714
714
|
});
|
|
715
715
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -717,11 +717,11 @@ function wt(e, t) {
|
|
|
717
717
|
return new Ct({
|
|
718
718
|
type: "array",
|
|
719
719
|
element: e,
|
|
720
|
-
...
|
|
720
|
+
...j(t)
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
|
-
var Tt = /*@__PURE__*/
|
|
724
|
-
lt.init(e, t), V.init(e, t),
|
|
723
|
+
var Tt = /*@__PURE__*/ w("ZodMiniObject", (e, t) => {
|
|
724
|
+
lt.init(e, t), V.init(e, t), k(e, "shape", () => t.shape);
|
|
725
725
|
});
|
|
726
726
|
// @__NO_SIDE_EFFECTS__
|
|
727
727
|
function U(e, t) {
|
|
@@ -729,10 +729,10 @@ function U(e, t) {
|
|
|
729
729
|
type: "object",
|
|
730
730
|
shape: e,
|
|
731
731
|
catchall: /* @__PURE__ */ St(),
|
|
732
|
-
...
|
|
732
|
+
...j(t)
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
|
-
var Et = /*@__PURE__*/
|
|
735
|
+
var Et = /*@__PURE__*/ w("ZodMiniOptional", (e, t) => {
|
|
736
736
|
dt.init(e, t), V.init(e, t);
|
|
737
737
|
});
|
|
738
738
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -742,7 +742,7 @@ function W(e) {
|
|
|
742
742
|
innerType: e
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
|
-
var Dt = /*@__PURE__*/
|
|
745
|
+
var Dt = /*@__PURE__*/ w("ZodMiniCustom", (e, t) => {
|
|
746
746
|
ft.init(e, t), V.init(e, t);
|
|
747
747
|
});
|
|
748
748
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -854,33 +854,33 @@ function J(e) {
|
|
|
854
854
|
}
|
|
855
855
|
//#endregion
|
|
856
856
|
//#region src/floorplan.ready.tsx
|
|
857
|
-
var Y = n(), X = (0,
|
|
858
|
-
(0,
|
|
859
|
-
var It = class extends
|
|
857
|
+
var Y = n(), X = (0, Me.default)("efp:api");
|
|
858
|
+
(0, Pe.install)();
|
|
859
|
+
var It = class extends te {
|
|
860
860
|
constructor(...e) {
|
|
861
861
|
super(...e), this.root = void 0;
|
|
862
862
|
}
|
|
863
863
|
init() {
|
|
864
|
-
this.ignoreQuery ||
|
|
864
|
+
this.ignoreQuery || ce(this.offHistory), ue("load"), y.fp = this, Ce(this.allowConsent), le(b.Load, ""), this.root = (0, Ne.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, Y.jsx)(je, { children: /* @__PURE__ */ (0, Y.jsx)(Te, {
|
|
865
865
|
offHistory: this.offHistory,
|
|
866
866
|
allowConsent: this.allowConsent
|
|
867
|
-
}) })),
|
|
868
|
-
if (this.resolveReady(), !
|
|
867
|
+
}) })), le(b.Rendered, ""), d(() => y.layerStore.layersLoaded, () => {
|
|
868
|
+
if (this.resolveReady(), !y.initialized) {
|
|
869
869
|
var e;
|
|
870
870
|
(e = this.onInit) == null || e.call(this, this);
|
|
871
871
|
}
|
|
872
|
-
|
|
872
|
+
y.initialized = !0;
|
|
873
873
|
});
|
|
874
|
-
let e =
|
|
875
|
-
e && import("./bootIntercom-
|
|
874
|
+
let e = Be(window.__data);
|
|
875
|
+
e && import("./bootIntercom-CnsI7TCY.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
|
|
876
876
|
}
|
|
877
877
|
selectBooth(e) {
|
|
878
878
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
879
879
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
880
880
|
return;
|
|
881
881
|
}
|
|
882
|
-
let t =
|
|
883
|
-
|
|
882
|
+
let t = y.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
883
|
+
y.selectBooth(t);
|
|
884
884
|
}
|
|
885
885
|
selectExhibitor(e) {
|
|
886
886
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -888,13 +888,13 @@ var It = class extends ee {
|
|
|
888
888
|
return;
|
|
889
889
|
}
|
|
890
890
|
if (!(e != null && e.length)) {
|
|
891
|
-
|
|
891
|
+
y.uiState.menu = !1, y.searchStore.resetSearchBox(), y.uiState.details = null;
|
|
892
892
|
return;
|
|
893
893
|
}
|
|
894
|
-
let t =
|
|
894
|
+
let t = y.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
895
895
|
if (!(t != null && t.length)) return;
|
|
896
896
|
if (typeof e == "string") {
|
|
897
|
-
|
|
897
|
+
y.selectExhibitor(t[0]), y.moveToList([t[0]]);
|
|
898
898
|
return;
|
|
899
899
|
}
|
|
900
900
|
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), {
|
|
@@ -902,25 +902,25 @@ var It = class extends ee {
|
|
|
902
902
|
mostFrequent: n[0],
|
|
903
903
|
maxCount: 0
|
|
904
904
|
}).mostFrequent;
|
|
905
|
-
|
|
905
|
+
y.layerStore.updateVisibility(r, !0), y.uiState.menu = !1, y.searchStore.resetSearchBox(), y.uiState.details = null, y.uiState.list = {
|
|
906
906
|
type: "filter",
|
|
907
907
|
items: t,
|
|
908
908
|
query: {
|
|
909
909
|
key: "exhibitors",
|
|
910
910
|
value: t.map((e) => e.externalId).join(",")
|
|
911
911
|
}
|
|
912
|
-
},
|
|
912
|
+
}, y.moveToList();
|
|
913
913
|
}
|
|
914
914
|
highlightExhibitors(e) {
|
|
915
|
-
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"),
|
|
915
|
+
Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), y.boothStore.highlightedByExternalIds = [], y.exhibitorStore.highlightedByExternalIds = [...e];
|
|
916
916
|
}
|
|
917
917
|
highlightBooths(e) {
|
|
918
|
-
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"),
|
|
918
|
+
Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), y.exhibitorStore.highlightedByExternalIds = [], y.boothStore.highlightedByExternalIds = [...e];
|
|
919
919
|
}
|
|
920
920
|
highlightEntities(e) {
|
|
921
921
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
922
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
923
|
-
|
|
922
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = de(e);
|
|
923
|
+
y.boothStore.highlightedByExternalIds = [...t], y.exhibitorStore.highlightedByExternalIds = [...n];
|
|
924
924
|
}
|
|
925
925
|
selectRoute(e, t) {
|
|
926
926
|
if (Array.isArray(e)) {
|
|
@@ -930,10 +930,10 @@ var It = class extends ee {
|
|
|
930
930
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
931
931
|
return;
|
|
932
932
|
}
|
|
933
|
-
|
|
933
|
+
y.routeStore.selectRoute(new me(Z(n), Z(r), t.map(Z)));
|
|
934
934
|
return;
|
|
935
935
|
}
|
|
936
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"),
|
|
936
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), y.routeStore.selectRoute(new me(Z(e), Z(t)));
|
|
937
937
|
}
|
|
938
938
|
getOptimizedRoutes(e) {
|
|
939
939
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
@@ -946,7 +946,7 @@ var It = class extends ee {
|
|
|
946
946
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
947
947
|
a ? a.push(e) : n.set(t, [e]);
|
|
948
948
|
}
|
|
949
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
949
|
+
return Array.from(n.values()).map((e) => ({ waypoints: fe(e.map((e) => [e.name, {
|
|
950
950
|
cx: e.rect.center.x,
|
|
951
951
|
cy: e.rect.center.y
|
|
952
952
|
}])) }));
|
|
@@ -954,11 +954,11 @@ var It = class extends ee {
|
|
|
954
954
|
selectCurrentPosition(e, t, n) {
|
|
955
955
|
var r;
|
|
956
956
|
let i = v(e.x) && v(e.y), a = v(e.lng) && v(e.lat);
|
|
957
|
-
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"),
|
|
957
|
+
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), y.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
958
958
|
}
|
|
959
959
|
setBookmarks(e) {
|
|
960
960
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
961
|
-
let t =
|
|
961
|
+
let t = y.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
962
962
|
t && (t.bookmarked = e.bookmarked);
|
|
963
963
|
});
|
|
964
964
|
}
|
|
@@ -977,29 +977,29 @@ var It = class extends ee {
|
|
|
977
977
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
|
-
let r =
|
|
980
|
+
let r = _e("bookmarked"), i = {
|
|
981
981
|
exhibitor: {
|
|
982
982
|
existingIds: new Set(r.exhibitors || []),
|
|
983
|
-
finder: (e) =>
|
|
984
|
-
replacer: (e) =>
|
|
983
|
+
finder: (e) => y.exhibitorStore.findExhibitor(e),
|
|
984
|
+
replacer: (e) => y.exhibitorStore.replaceBookmarked(e)
|
|
985
985
|
},
|
|
986
986
|
event: {
|
|
987
987
|
existingIds: new Set(r.events || []),
|
|
988
|
-
finder: (e) =>
|
|
989
|
-
replacer: (e) =>
|
|
988
|
+
finder: (e) => y.eventStore.findByNameOrSlug(e),
|
|
989
|
+
replacer: (e) => y.eventStore.replaceBookmarked(e)
|
|
990
990
|
},
|
|
991
991
|
speaker: {
|
|
992
992
|
existingIds: new Set(r.speakers || []),
|
|
993
|
-
finder: (e) =>
|
|
994
|
-
replacer: (e) =>
|
|
993
|
+
finder: (e) => y.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
994
|
+
replacer: (e) => y.speakerStore.replaceBookmarked(e)
|
|
995
995
|
},
|
|
996
996
|
booth: {
|
|
997
997
|
existingIds: new Set(r.booths || []),
|
|
998
998
|
finder: (e) => {
|
|
999
|
-
let t =
|
|
999
|
+
let t = y.boothStore.findBooth(e);
|
|
1000
1000
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
1001
1001
|
},
|
|
1002
|
-
replacer: (e) =>
|
|
1002
|
+
replacer: (e) => y.boothStore.replaceBookmarked(e)
|
|
1003
1003
|
}
|
|
1004
1004
|
};
|
|
1005
1005
|
e.forEach((e) => {
|
|
@@ -1019,16 +1019,16 @@ var It = class extends ee {
|
|
|
1019
1019
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
1020
1020
|
return;
|
|
1021
1021
|
}
|
|
1022
|
-
let r =
|
|
1022
|
+
let r = _e("visited"), i = {
|
|
1023
1023
|
exhibitor: {
|
|
1024
1024
|
existingIds: new Set(r.exhibitors || []),
|
|
1025
|
-
finder: (e) =>
|
|
1026
|
-
replacer: (e) =>
|
|
1025
|
+
finder: (e) => y.exhibitorStore.findExhibitor(e),
|
|
1026
|
+
replacer: (e) => y.exhibitorStore.replaceVisited(e)
|
|
1027
1027
|
},
|
|
1028
1028
|
event: {
|
|
1029
1029
|
existingIds: new Set(r.events || []),
|
|
1030
|
-
finder: (e) =>
|
|
1031
|
-
replacer: (e) =>
|
|
1030
|
+
finder: (e) => y.eventStore.findByNameOrSlug(e),
|
|
1031
|
+
replacer: (e) => y.eventStore.replaceVisited(e)
|
|
1032
1032
|
}
|
|
1033
1033
|
};
|
|
1034
1034
|
e.forEach((e) => {
|
|
@@ -1043,64 +1043,64 @@ var It = class extends ee {
|
|
|
1043
1043
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
1044
1044
|
return;
|
|
1045
1045
|
}
|
|
1046
|
-
|
|
1046
|
+
y.routeStore.setMarkers(e);
|
|
1047
1047
|
}
|
|
1048
1048
|
selectMarker(e, t = !0) {
|
|
1049
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
1049
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), y.routeStore.selectMarker(e, t);
|
|
1050
1050
|
}
|
|
1051
1051
|
drawCircles(e) {
|
|
1052
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
1052
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), y.uiState.debugCircles = e;
|
|
1053
1053
|
}
|
|
1054
1054
|
checkRoutes() {
|
|
1055
|
-
|
|
1055
|
+
y.routeStore.checkRoutes();
|
|
1056
1056
|
}
|
|
1057
1057
|
updateLayerVisibility(e, t) {
|
|
1058
|
-
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"),
|
|
1058
|
+
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"), y.layerStore.updateVisibility(e, t);
|
|
1059
1059
|
}
|
|
1060
1060
|
getCenterCoordinates() {
|
|
1061
|
-
return
|
|
1061
|
+
return y.fp.getCenterCoordinates();
|
|
1062
1062
|
}
|
|
1063
1063
|
exhibitorsList() {
|
|
1064
|
-
return
|
|
1064
|
+
return y.exhibitorStore.exhibitors.map((e) => K(e));
|
|
1065
1065
|
}
|
|
1066
1066
|
boothsList() {
|
|
1067
|
-
return
|
|
1067
|
+
return y.boothStore.booths.map((e) => K(e));
|
|
1068
1068
|
}
|
|
1069
1069
|
categoriesList() {
|
|
1070
|
-
return
|
|
1070
|
+
return y.categoryStore.categories.map((e) => K(e));
|
|
1071
1071
|
}
|
|
1072
1072
|
selectCategory(e) {
|
|
1073
1073
|
if (e == null || typeof e != "string") {
|
|
1074
|
-
|
|
1074
|
+
y.searchStore.selectSearch();
|
|
1075
1075
|
return;
|
|
1076
1076
|
}
|
|
1077
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
1077
|
+
let t = e == null ? void 0 : e.toLowerCase(), n = y.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
|
|
1078
1078
|
if (!n) {
|
|
1079
1079
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
1080
1080
|
return;
|
|
1081
1081
|
}
|
|
1082
|
-
|
|
1082
|
+
y.selectCategory(n);
|
|
1083
1083
|
}
|
|
1084
1084
|
applyParameters(e) {
|
|
1085
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
1085
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), he(e);
|
|
1086
1086
|
}
|
|
1087
1087
|
getVisibility() {
|
|
1088
|
-
return
|
|
1088
|
+
return y.uiState.visibility;
|
|
1089
1089
|
}
|
|
1090
1090
|
setVisibility(e) {
|
|
1091
|
-
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"),
|
|
1091
|
+
(typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), y.uiState.setVisibility(e);
|
|
1092
1092
|
}
|
|
1093
1093
|
findLocation() {
|
|
1094
|
-
|
|
1094
|
+
y.routeStore.findLocation();
|
|
1095
1095
|
}
|
|
1096
1096
|
zoomIn() {
|
|
1097
|
-
|
|
1097
|
+
y.uiState.zoomIn();
|
|
1098
1098
|
}
|
|
1099
1099
|
zoomOut() {
|
|
1100
|
-
|
|
1100
|
+
y.uiState.zoomOut();
|
|
1101
1101
|
}
|
|
1102
1102
|
switchView() {
|
|
1103
|
-
|
|
1103
|
+
y.maplibreStore.activateMaplibre();
|
|
1104
1104
|
}
|
|
1105
1105
|
zoomTo(e, t) {
|
|
1106
1106
|
X("zoomTo called with selectors=%O options=%O", e, t);
|
|
@@ -1128,15 +1128,15 @@ var It = class extends ee {
|
|
|
1128
1128
|
let i = [];
|
|
1129
1129
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1130
1130
|
let t;
|
|
1131
|
-
e.externalId ? t =
|
|
1131
|
+
e.externalId ? t = y.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = y.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
|
|
1132
1132
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1133
1133
|
var t;
|
|
1134
1134
|
let n;
|
|
1135
|
-
e.externalId ? n =
|
|
1135
|
+
e.externalId ? n = y.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = y.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
|
|
1136
1136
|
e.rect && i.push(e.rect);
|
|
1137
1137
|
});
|
|
1138
1138
|
}), i.length === 0) return;
|
|
1139
|
-
let a =
|
|
1139
|
+
let a = xe.fromUnion(...i);
|
|
1140
1140
|
return {
|
|
1141
1141
|
leftTop: {
|
|
1142
1142
|
x: a.min.x,
|
|
@@ -1150,7 +1150,7 @@ var It = class extends ee {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
fitBounds(e, t) {
|
|
1152
1152
|
if (X("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1153
|
-
|
|
1153
|
+
y.uiState.fitBounds();
|
|
1154
1154
|
return;
|
|
1155
1155
|
}
|
|
1156
1156
|
let n = At.safeParse(e);
|
|
@@ -1163,24 +1163,24 @@ var It = class extends ee {
|
|
|
1163
1163
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1164
1164
|
return;
|
|
1165
1165
|
}
|
|
1166
|
-
let i =
|
|
1166
|
+
let i = xe.fromMinMax({
|
|
1167
1167
|
x: e.leftTop.x,
|
|
1168
1168
|
y: e.leftTop.y
|
|
1169
1169
|
}, {
|
|
1170
1170
|
x: e.rightBottom.x,
|
|
1171
1171
|
y: e.rightBottom.y
|
|
1172
1172
|
});
|
|
1173
|
-
|
|
1173
|
+
y.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
|
|
1174
1174
|
}
|
|
1175
1175
|
getBoothRect(e) {
|
|
1176
1176
|
var t;
|
|
1177
1177
|
typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
|
|
1178
|
-
let n = (t =
|
|
1178
|
+
let n = (t = ge(e)) == null ? void 0 : t.rect;
|
|
1179
1179
|
return n ? Lt.fromBox(n) : void 0;
|
|
1180
1180
|
}
|
|
1181
1181
|
convertToGeo(e, t) {
|
|
1182
1182
|
var n;
|
|
1183
|
-
if (!(!(
|
|
1183
|
+
if (!(!(_ == null || (n = _.properties) == null) && n.config)) {
|
|
1184
1184
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1185
1185
|
return;
|
|
1186
1186
|
}
|
|
@@ -1188,11 +1188,11 @@ var It = class extends ee {
|
|
|
1188
1188
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1189
1189
|
return;
|
|
1190
1190
|
}
|
|
1191
|
-
return
|
|
1191
|
+
return pe(e, t, _.properties.config);
|
|
1192
1192
|
}
|
|
1193
1193
|
getGeoConfig() {
|
|
1194
1194
|
var e, t;
|
|
1195
|
-
let n =
|
|
1195
|
+
let n = _ == null || (e = _.properties) == null ? void 0 : e.config;
|
|
1196
1196
|
return n ? {
|
|
1197
1197
|
bearing: (t = n.bearing) == null ? 0 : t,
|
|
1198
1198
|
p0: n.p0,
|
|
@@ -1202,16 +1202,16 @@ var It = class extends ee {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
unstable_destroy() {
|
|
1204
1204
|
let e = window.__efpElement.firstChild;
|
|
1205
|
-
Pt(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", f),
|
|
1205
|
+
Pt(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", f), y.maplibreStore.dispose(), ye(), ve(), we(), [...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();
|
|
1206
1206
|
}
|
|
1207
1207
|
search(e) {
|
|
1208
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1208
|
+
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), y.fuzzySearchEngineStore.loadEngine().then(() => (y.searchStore.selectSearch(e), y.uiState.fuzzySearchItems.map((e) => ({
|
|
1209
1209
|
item: K(e.item),
|
|
1210
1210
|
score: e.score
|
|
1211
1211
|
}))));
|
|
1212
1212
|
}
|
|
1213
1213
|
getFloors() {
|
|
1214
|
-
return
|
|
1214
|
+
return y.layerStore.floors.map((e) => ({
|
|
1215
1215
|
name: e.name,
|
|
1216
1216
|
shortName: e.shortName,
|
|
1217
1217
|
description: e.description,
|
|
@@ -1250,25 +1250,25 @@ var It = class extends ee {
|
|
|
1250
1250
|
showPathway(e, t) {
|
|
1251
1251
|
let n = new URLSearchParams();
|
|
1252
1252
|
if (n.set(s, e), t != null && t.length) {
|
|
1253
|
-
let { boothExternalIds: e, exhibitorExternalIds: r } =
|
|
1253
|
+
let { boothExternalIds: e, exhibitorExternalIds: r } = de(t);
|
|
1254
1254
|
e.length > 0 && n.set("booths", e.join(",")), r.length > 0 && n.set("exhibitors", r.join(","));
|
|
1255
1255
|
}
|
|
1256
1256
|
this.applyParameters(n.toString());
|
|
1257
1257
|
}
|
|
1258
1258
|
showPathwayOnly(e, t) {
|
|
1259
|
-
this.activateFloor({ name: t }),
|
|
1260
|
-
let n =
|
|
1259
|
+
this.activateFloor({ name: t }), y.layerStore.showPathWay(e), y.uiState.setPathwayOnlyMode(!0);
|
|
1260
|
+
let n = y.layerStore.findLayer(e), r = y.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1261
1261
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1262
1262
|
var a;
|
|
1263
1263
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1264
|
-
|
|
1264
|
+
y.uiState.moveToRect = e.clone();
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
hidePathways() {
|
|
1268
|
-
this.highlightBooths([]),
|
|
1268
|
+
this.highlightBooths([]), y.layerStore.hidePathways(), y.uiState.setPathwayOnlyMode(!1);
|
|
1269
1269
|
}
|
|
1270
1270
|
showSearch() {
|
|
1271
|
-
|
|
1271
|
+
y.selectSearch("");
|
|
1272
1272
|
}
|
|
1273
1273
|
changeLanguage(e) {
|
|
1274
1274
|
var t;
|
|
@@ -1281,35 +1281,35 @@ var It = class extends ee {
|
|
|
1281
1281
|
r.set(a, n), this.applyParameters(r.toString());
|
|
1282
1282
|
}
|
|
1283
1283
|
isGpsTrackingEnabled() {
|
|
1284
|
-
return
|
|
1284
|
+
return y.routeStore.gpsEnabled;
|
|
1285
1285
|
}
|
|
1286
1286
|
setGpsTrackingEnabled(e) {
|
|
1287
|
-
|
|
1287
|
+
y.routeStore.setGpsTrackingEnabled(e);
|
|
1288
1288
|
}
|
|
1289
1289
|
deselectCurrentPosition() {
|
|
1290
|
-
|
|
1290
|
+
y.routeStore.selectCurrentPosition(null, !1);
|
|
1291
1291
|
}
|
|
1292
1292
|
deselectRoute() {
|
|
1293
|
-
|
|
1293
|
+
y.routeStore.selectRoute(null), y.routeStore.setOnlyAccessible(!1);
|
|
1294
1294
|
}
|
|
1295
1295
|
reset() {
|
|
1296
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1296
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), y.uiState.kioskData && y.resetCameraFn) {
|
|
1297
1297
|
var e;
|
|
1298
|
-
(e =
|
|
1298
|
+
(e = y.resetCameraFn) == null || e.call(y);
|
|
1299
1299
|
} else this.fitBounds();
|
|
1300
1300
|
}
|
|
1301
1301
|
selectAccessibleRoute(e) {
|
|
1302
|
-
|
|
1302
|
+
y.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
function Z(e) {
|
|
1306
|
-
return typeof e == "string" ?
|
|
1306
|
+
return typeof e == "string" ? ge(e) : y.routeStore.getNearestBooth(e);
|
|
1307
1307
|
}
|
|
1308
1308
|
var Q = 0;
|
|
1309
1309
|
function $(e, t, n) {
|
|
1310
1310
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
|
|
1311
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1312
|
-
|
|
1311
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), y.fp.disableRuntimeAlerts) return;
|
|
1312
|
+
y.uiState.setGlobalErrorMessage({
|
|
1313
1313
|
title: r,
|
|
1314
1314
|
body: /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
|
|
1315
1315
|
i,
|
|
@@ -1325,7 +1325,7 @@ function $(e, t, n) {
|
|
|
1325
1325
|
let o = 8e3;
|
|
1326
1326
|
Q = window.setTimeout(() => {
|
|
1327
1327
|
let e = async () => {
|
|
1328
|
-
|
|
1328
|
+
y.uiState.globalErrorMessages.length > 0 && (y.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1329
1329
|
};
|
|
1330
1330
|
e();
|
|
1331
1331
|
}, o);
|