@expofp/floorplan 3.2.4 → 3.2.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/{CookieConsent-DxjnilXa.js → CookieConsent-Dg2oD8sN.js} +775 -775
- package/dist/browser/{Debug-CYfYlmQR.js → Debug-CbQznba_.js} +6 -6
- package/dist/browser/{Demo-OpFQUqfW.js → Demo-BdNX6_TP.js} +8 -8
- package/dist/browser/{Free-81sEARRq.js → Free-BwoR5utw.js} +8 -8
- package/dist/browser/{Gallery-DSoNvSm7.js → Gallery-CXfebPUO.js} +10 -10
- package/dist/browser/{GpsLoader-C9x6eoAW.js → GpsLoader-Br89Qdn5.js} +29 -29
- package/dist/browser/{KioskStore-CpB7cXhl.js → KioskStore-B2-ZAICw.js} +15 -15
- package/dist/browser/{Mapbox-BBrRfWTk.js → Mapbox-B5PiDpk1.js} +8 -8
- package/dist/browser/{SetKioskMode-oHoXiSt9.js → SetKioskMode-CeBuv4Qc.js} +19 -19
- package/dist/browser/{ShowKiosk-ClNZHBo0.js → ShowKiosk-CfxC8v7B.js} +11 -11
- package/dist/browser/{ThreeComponent-Cz5TFtaJ.js → ThreeComponent-yHjpVIkt.js} +9 -9
- package/dist/browser/{TouchHand-DKHjKLvy.js → TouchHand-BEAsV_dg.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-D8vz2kYo.js → ViewerMenuPanel-Db8sxCQM.js} +21 -21
- package/dist/browser/{add-debug-secret-listener-C8puBVkG.js → add-debug-secret-listener-BLEkj_Uk.js} +1 -1
- package/dist/browser/{boolean-editor-CTx04IQD.js → boolean-editor-COimNwU3.js} +12 -12
- package/dist/browser/{bootIntercom-CPsCj7Ip.js → bootIntercom-DjZFUOTC.js} +1 -1
- package/dist/browser/{box-BTnS_rH1.js → box-BQZT5OqH.js} +16 -16
- package/dist/browser/{browser-Br9eNuwH.js → browser-8dPZoUbt.js} +2 -2
- package/dist/browser/bundle.json +53 -53
- package/dist/browser/{classnames-DHNSfHSb.js → classnames-BCwn2LMt.js} +2 -2
- package/dist/browser/{client-2OiIi5Xp.js → client-Db8--ZUb.js} +9 -9
- package/dist/browser/{data-DJdE1Pr_.js → data-DmyuOKjY.js} +50 -50
- package/dist/browser/{debug-overlay-ccDwkn4h.js → debug-overlay-B4Z5LEoG.js} +27 -27
- package/dist/browser/{debug-ui-J99PpgZ1.js → debug-ui-CvJwtvIB.js} +6 -6
- package/dist/browser/{dist-B2h2xaao.js → dist-BG3wb6v1.js} +5 -5
- package/dist/browser/{dist-DKUGEtHU.js → dist-C97JwCm0.js} +11 -11
- package/dist/browser/{dist-VsPxUywg.js → dist-Dci3wfOd.js} +7 -7
- package/dist/browser/{efp-debug-init-BGZbxySb.js → efp-debug-init-p9zcimBs.js} +2 -2
- package/dist/browser/{enum-editor-CF4ldw_T.js → enum-editor-o306HPmN.js} +14 -14
- package/dist/browser/{exports-CtobKgXM.js → exports-CStWW5-w.js} +38 -37
- package/dist/browser/{favicon-DrMjQnYk.js → favicon-BA1CtVMn.js} +1 -1
- package/dist/browser/{fetch-retry.umd-NPdYgYHJ.js → fetch-retry.umd-Baj5gCtY.js} +2 -2
- package/dist/browser/{flex-B9BzRTPi.js → flex-Bk7NLAwd.js} +8 -8
- package/dist/browser/{flex.props-B7vEGitw.js → flex.props-DYJg7oQW.js} +4 -4
- package/dist/browser/{floorplan.loader-B6D2IjCA.js → floorplan.loader-DSLFX3Z1.js} +716 -684
- package/dist/browser/{floorplan.ready-DCHrZ_3Z.js → floorplan.ready-D1C9tWKU.js} +267 -267
- package/dist/browser/{fuse-XIKzHPwA.js → fuse-DHUSTGYM.js} +2 -2
- package/dist/browser/index.js +12 -12
- package/dist/browser/{is-debug-BO7GCDVj.js → is-debug-Hdaykk22.js} +4 -4
- package/dist/browser/{jsx-runtime-DvLE2ntA.js → jsx-runtime-BudMXsuy.js} +4 -4
- package/dist/browser/{lib-D1fy_0DC.js → lib-Dl-Q0kBv.js} +5 -5
- package/dist/browser/{main-vqUee6Co.js → main-C74Uu09R.js} +1 -1
- package/dist/browser/{mobx-Q0iv6xO-.js → mobx-CqnQOCE3.js} +4 -4
- package/dist/browser/{particles.min-C7xHJ13B.js → particles.min-By5wV8f0.js} +2 -2
- package/dist/browser/{prop-types-DCAZXDlE.js → prop-types-PFP3f1FZ.js} +2 -2
- package/dist/browser/{react-Bllx8O4C.js → react-COj6SqvB.js} +5 -5
- package/dist/browser/{react-dom-B_RTCRNw.js → react-dom-BdCxtmki.js} +6 -6
- package/dist/browser/{reset-all-settings-BK_jTF-p.js → reset-all-settings-BQEz2q9w.js} +7 -7
- package/dist/browser/{rolldown-runtime-hpSZkt-6.js → rolldown-runtime-msuxsciZ.js} +1 -1
- package/dist/browser/{settings-CZ9_Jwxo.js → settings-C0lWPVRL.js} +2 -2
- package/dist/browser/{settings-item-Dui_Fze-.js → settings-item-Y4RmHiJ4.js} +8 -8
- package/dist/browser/{store-BbHNyIVK.js → store-5PES-APA.js} +711 -695
- package/dist/browser/{string-editor-DxoTu7Zc.js → string-editor-CDEAe6WK.js} +10 -10
- package/dist/browser/{theme-yhP2DiJq.js → theme-yitmRjt6.js} +29 -29
- package/dist/browser/{ui-CCPtrCDp.js → ui--XBIRzrF.js} +8 -8
- package/dist/esm/components/LevelSelector.js +1 -1
- package/dist/esm/store/BoothStore.js +1 -1
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/ToursStore.js +1 -1
- package/dist/esm/store/UIState.js +1 -1
- package/package.json +9 -9
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.2.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.2.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] = "8b7405f8-9a92-4d5d-b4c6-d9d9131e6493", e._sentryDebugIdIdentifier = "sentry-dbid-8b7405f8-9a92-4d5d-b4c6-d9d9131e6493");
|
|
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 { a as i, ct as a, ft as o, lt as s, o as c, y as l } from "./is-debug-
|
|
14
|
-
import { a as u, i as d, n as f, r as p, t as ee } from "./floorplan.loader-
|
|
15
|
-
import { C as m, D as te, Q as ne, i as re, mt as h, n as ie, w as ae } from "./exports-
|
|
16
|
-
import { t as oe } from "./client-
|
|
17
|
-
import {
|
|
18
|
-
import { i as
|
|
19
|
-
//#region ../../node_modules/.pnpm/@sentry+browser@10.
|
|
20
|
-
function
|
|
9
|
+
import { r as e } from "./rolldown-runtime-msuxsciZ.js";
|
|
10
|
+
import { t } from "./react-COj6SqvB.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-BudMXsuy.js";
|
|
12
|
+
import { t as r } from "./browser-8dPZoUbt.js";
|
|
13
|
+
import { a as i, ct as a, ft as o, lt as s, o as c, y as l } from "./is-debug-Hdaykk22.js";
|
|
14
|
+
import { a as u, i as d, n as f, r as p, t as ee } from "./floorplan.loader-DSLFX3Z1.js";
|
|
15
|
+
import { C as m, D as te, Q as ne, i as re, mt as h, n as ie, w as ae } from "./exports-CStWW5-w.js";
|
|
16
|
+
import { t as oe } from "./client-Db8--ZUb.js";
|
|
17
|
+
import { In as se, Jn as g, M as _, N as ce, P as v, Q as le, S as ue, _ as de, a as y, at as fe, b as pe, et as b, f as me, g as x, m as he, ot as ge, tt as S, x as _e, y as ve } from "./store-5PES-APA.js";
|
|
18
|
+
import { i as ye } from "./CookieConsent-Dg2oD8sN.js";
|
|
19
|
+
//#region ../../node_modules/.pnpm/@sentry+browser@10.52.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
20
|
+
function C(e = {}) {
|
|
21
21
|
let t = p.document, n = (t == null ? void 0 : t.head) || (t == null ? void 0 : t.body);
|
|
22
22
|
if (!n) {
|
|
23
23
|
f && h.error("[showReportDialog] Global document not defined");
|
|
@@ -51,13 +51,13 @@ function w(e = {}) {
|
|
|
51
51
|
n.appendChild(s);
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region ../../node_modules/.pnpm/@sentry+react@10.
|
|
55
|
-
var
|
|
56
|
-
function
|
|
54
|
+
//#region ../../node_modules/.pnpm/@sentry+react@10.52.0_react@19.2.6/node_modules/@sentry/react/build/esm/error.js
|
|
55
|
+
var w = /* @__PURE__ */ e(t());
|
|
56
|
+
function be(e) {
|
|
57
57
|
let t = e.match(/^([^.]+)/);
|
|
58
58
|
return t !== null && parseInt(t[0]) >= 17;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function xe(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 be(e, t) {
|
|
|
67
67
|
}
|
|
68
68
|
r(e, t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
70
|
+
function Se(e, { componentStack: t }, n) {
|
|
71
|
+
if (be(w.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, xe(e, n);
|
|
74
74
|
}
|
|
75
75
|
return te((r) => (r.setContext("react", { componentStack: t }), ie(e, n)));
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
|
-
//#region ../../node_modules/.pnpm/@sentry+react@10.
|
|
79
|
-
var
|
|
78
|
+
//#region ../../node_modules/.pnpm/@sentry+react@10.52.0_react@19.2.6/node_modules/@sentry/react/build/esm/debug-build.js
|
|
79
|
+
var Ce = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, T = {
|
|
80
80
|
componentStack: null,
|
|
81
81
|
error: null,
|
|
82
82
|
eventId: null
|
|
83
|
-
},
|
|
83
|
+
}, we = class extends w.Component {
|
|
84
84
|
constructor(e) {
|
|
85
|
-
super(e), this.state =
|
|
85
|
+
super(e), this.state = T, this._openFallbackReportDialog = !0;
|
|
86
86
|
let t = m();
|
|
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 && C({
|
|
89
89
|
...e.dialogOptions,
|
|
90
90
|
eventId: this._lastEventId
|
|
91
91
|
});
|
|
@@ -95,11 +95,11 @@ var Se = 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
|
te((s) => {
|
|
97
97
|
r && r(s, e, n);
|
|
98
|
-
let c =
|
|
98
|
+
let c = Se(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 && C({
|
|
103
103
|
...o,
|
|
104
104
|
eventId: c
|
|
105
105
|
})), this.setState({
|
|
@@ -115,92 +115,92 @@ var Se = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
|
|
|
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 === T ? 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(T);
|
|
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" ? w.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 w.isValidElement(r) ? r : (e && Ce && h.warn("fallback did not produce a valid ReactElement"), null);
|
|
134
134
|
}
|
|
135
|
-
},
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) &&
|
|
135
|
+
}, Te = oe(), Ee = ge();
|
|
136
|
+
function De() {
|
|
137
|
+
E("floorplan"), E("__data"), E("__dataUrlBase"), E("__searchi"), E("__wfData"), E("__mobxGlobals"), E("__store"), E("__mobxInstanceCount");
|
|
138
|
+
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && E(e);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
function E(e) {
|
|
141
|
+
Oe(e) ? delete window[e] : window[e] = void 0;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Oe(e) {
|
|
144
144
|
let t = Object.getOwnPropertyDescriptor(window, e);
|
|
145
145
|
return t && t.configurable;
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region src/utils/mapEntity.ts
|
|
149
|
-
function
|
|
149
|
+
function D(e) {
|
|
150
150
|
switch (e.entity.type) {
|
|
151
151
|
case "booth":
|
|
152
152
|
var t, n;
|
|
153
153
|
return {
|
|
154
154
|
id: e.id,
|
|
155
|
-
name:
|
|
156
|
-
externalId:
|
|
155
|
+
name: k(e.name),
|
|
156
|
+
externalId: k(e.externalId),
|
|
157
157
|
isSpecial: e.entity.variant === "special",
|
|
158
|
-
exhibitors:
|
|
158
|
+
exhibitors: O(e.exhibitors),
|
|
159
159
|
layer: {
|
|
160
|
-
name:
|
|
161
|
-
description:
|
|
160
|
+
name: k((t = e.layer) == null ? void 0 : t.name),
|
|
161
|
+
description: k((n = e.layer) == null ? void 0 : n.description)
|
|
162
162
|
},
|
|
163
163
|
meta: e.meta,
|
|
164
|
-
description:
|
|
164
|
+
description: k(e.description),
|
|
165
165
|
entity: e.entity,
|
|
166
|
-
title:
|
|
166
|
+
title: k(e.title)
|
|
167
167
|
};
|
|
168
168
|
case "category": return {
|
|
169
169
|
id: e.id,
|
|
170
|
-
name:
|
|
171
|
-
exhibitors:
|
|
170
|
+
name: k(e.name),
|
|
171
|
+
exhibitors: O(e.exhibitors),
|
|
172
172
|
entity: e.entity,
|
|
173
|
-
slug:
|
|
173
|
+
slug: k(e.slug)
|
|
174
174
|
};
|
|
175
175
|
case "exhibitor": return {
|
|
176
176
|
id: e.id,
|
|
177
|
-
name:
|
|
178
|
-
externalId:
|
|
179
|
-
booths:
|
|
177
|
+
name: k(e.name),
|
|
178
|
+
externalId: k(e.externalId),
|
|
179
|
+
booths: O(e.booths),
|
|
180
180
|
entity: e.entity,
|
|
181
|
-
slug:
|
|
181
|
+
slug: k(e.slug)
|
|
182
182
|
};
|
|
183
183
|
case "schedule": return {
|
|
184
184
|
id: e.id,
|
|
185
|
-
externalId:
|
|
185
|
+
externalId: k(e.externalId),
|
|
186
186
|
boothId: e.boothId,
|
|
187
187
|
exhibitorId: e.exhibitorId,
|
|
188
|
-
name:
|
|
189
|
-
description:
|
|
190
|
-
startDate:
|
|
191
|
-
endDate:
|
|
192
|
-
link:
|
|
188
|
+
name: k(e.name),
|
|
189
|
+
description: k(e.description),
|
|
190
|
+
startDate: k(e.startDate),
|
|
191
|
+
endDate: k(e.endDate),
|
|
192
|
+
link: k(e.link),
|
|
193
193
|
entity: e.entity,
|
|
194
194
|
isEnded: e.isEnded
|
|
195
195
|
};
|
|
196
196
|
case a: return {
|
|
197
197
|
id: e.id,
|
|
198
|
-
name:
|
|
198
|
+
name: k(e.name),
|
|
199
199
|
entity: e.entity
|
|
200
200
|
};
|
|
201
201
|
case "heatmap-yah": return {
|
|
202
|
-
id:
|
|
203
|
-
name:
|
|
202
|
+
id: k(e.id),
|
|
203
|
+
name: k(e.name),
|
|
204
204
|
viewCount: e.viewCount || 0,
|
|
205
205
|
x: e.x || 0,
|
|
206
206
|
y: e.y || 0,
|
|
@@ -210,14 +210,14 @@ function O(e) {
|
|
|
210
210
|
default: return e;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function O(e) {
|
|
214
214
|
return Array.isArray(e) ? e.filter(Boolean).map((e) => e.id).filter(Boolean) : [];
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function k(e) {
|
|
217
217
|
return typeof e == "string" ? e : "";
|
|
218
218
|
}
|
|
219
219
|
Object.freeze({ status: "aborted" });
|
|
220
|
-
function
|
|
220
|
+
function A(e, t, n) {
|
|
221
221
|
var r;
|
|
222
222
|
function i(n, r) {
|
|
223
223
|
if (n._zod || Object.defineProperty(n, "_zod", {
|
|
@@ -250,20 +250,20 @@ function j(e, t, n) {
|
|
|
250
250
|
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);
|
|
251
251
|
} }), Object.defineProperty(s, "name", { value: e }), s;
|
|
252
252
|
}
|
|
253
|
-
var
|
|
253
|
+
var j = class extends Error {
|
|
254
254
|
constructor() {
|
|
255
255
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
256
256
|
}
|
|
257
|
-
},
|
|
258
|
-
function
|
|
259
|
-
return e && Object.assign(
|
|
257
|
+
}, ke = {};
|
|
258
|
+
function M(e) {
|
|
259
|
+
return e && Object.assign(ke, e), ke;
|
|
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 Ae(e, t) {
|
|
264
264
|
return typeof t == "bigint" ? t.toString() : t;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function je(e) {
|
|
267
267
|
return { get value() {
|
|
268
268
|
{
|
|
269
269
|
let t = e();
|
|
@@ -272,16 +272,16 @@ function Ae(e) {
|
|
|
272
272
|
throw Error("cached value already set");
|
|
273
273
|
} };
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Me(e) {
|
|
276
276
|
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
277
277
|
return e.slice(t, n);
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
function
|
|
279
|
+
var Ne = Symbol("evaluating");
|
|
280
|
+
function N(e, t, n) {
|
|
281
281
|
let r;
|
|
282
282
|
Object.defineProperty(e, t, {
|
|
283
283
|
get() {
|
|
284
|
-
if (r !==
|
|
284
|
+
if (r !== Ne) return r === void 0 && (r = Ne, r = n()), r;
|
|
285
285
|
},
|
|
286
286
|
set(n) {
|
|
287
287
|
Object.defineProperty(e, t, { value: n });
|
|
@@ -289,15 +289,15 @@ function P(e, t, n) {
|
|
|
289
289
|
configurable: !0
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
var
|
|
293
|
-
function
|
|
292
|
+
var Pe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
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
|
}
|
|
300
|
-
function
|
|
300
|
+
function P(e) {
|
|
301
301
|
let t = e;
|
|
302
302
|
if (!t) return {};
|
|
303
303
|
if (typeof t == "string") return { error: () => t };
|
|
@@ -310,11 +310,11 @@ function F(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;
|
|
317
|
-
function
|
|
317
|
+
function F(e, t = 0) {
|
|
318
318
|
if (e.aborted === !0) return !0;
|
|
319
319
|
for (let r = t; r < e.issues.length; r++) {
|
|
320
320
|
var n;
|
|
@@ -322,16 +322,16 @@ function I(e, t = 0) {
|
|
|
322
322
|
}
|
|
323
323
|
return !1;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function I(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 L(e) {
|
|
332
332
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function R(e, t, n) {
|
|
335
335
|
var r;
|
|
336
336
|
let i = {
|
|
337
337
|
...e,
|
|
@@ -339,11 +339,11 @@ function z(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 = L((l = e.inst) == null || (l = l._zod.def) == null || (u = l.error) == null ? void 0 : u.call(l, e))) == null ? L(t == null || (d = t.error) == null ? void 0 : d.call(t, e)) : c) == null ? L((f = n.customError) == null ? void 0 : f.call(n, e)) : s) == null ? L((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 Re(...e) {
|
|
347
347
|
let [t, n, r] = e;
|
|
348
348
|
return typeof t == "string" ? {
|
|
349
349
|
message: t,
|
|
@@ -354,41 +354,41 @@ function Le(...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 z = (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, Ae, 2), Object.defineProperty(e, "toString", {
|
|
365
365
|
value: () => e.message,
|
|
366
366
|
enumerable: !1
|
|
367
367
|
});
|
|
368
|
-
},
|
|
368
|
+
}, ze = A("$ZodError", z), B = A("$ZodError", z, { Parent: Error }), Be = /* @__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: []
|
|
372
372
|
}, a);
|
|
373
|
-
if (o instanceof Promise) throw new
|
|
373
|
+
if (o instanceof Promise) throw new j();
|
|
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) =>
|
|
377
|
-
throw
|
|
376
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => R(e, a, M())));
|
|
377
|
+
throw Pe(t, i == null ? void 0 : i.callee), t;
|
|
378
378
|
}
|
|
379
379
|
return o.value;
|
|
380
|
-
})(
|
|
380
|
+
})(B), Ve = /* @__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) =>
|
|
388
|
-
throw
|
|
387
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => R(e, a, M())));
|
|
388
|
+
throw Pe(t, i == null ? void 0 : i.callee), t;
|
|
389
389
|
}
|
|
390
390
|
return o.value;
|
|
391
|
-
})(
|
|
391
|
+
})(B), V = /* @__PURE__ */ ((e) => (t, n, r) => {
|
|
392
392
|
let i = r ? {
|
|
393
393
|
...r,
|
|
394
394
|
async: !1
|
|
@@ -396,38 +396,38 @@ var B = (e, t) => {
|
|
|
396
396
|
value: n,
|
|
397
397
|
issues: []
|
|
398
398
|
}, i);
|
|
399
|
-
if (a instanceof Promise) throw new
|
|
399
|
+
if (a instanceof Promise) throw new j();
|
|
400
400
|
return a.issues.length ? {
|
|
401
401
|
success: !1,
|
|
402
|
-
error: new (e == null ?
|
|
402
|
+
error: new (e == null ? ze : e)(a.issues.map((e) => R(e, i, M())))
|
|
403
403
|
} : {
|
|
404
404
|
success: !0,
|
|
405
405
|
data: a.value
|
|
406
406
|
};
|
|
407
|
-
})(
|
|
407
|
+
})(B), H = /* @__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) => R(e, i, M())))
|
|
415
415
|
} : {
|
|
416
416
|
success: !0,
|
|
417
417
|
data: a.value
|
|
418
418
|
};
|
|
419
|
-
})(
|
|
419
|
+
})(B), He = (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
|
-
}, Ue = /^-?\d+(?:\.\d+)?$/, We = /* @__PURE__ */
|
|
423
|
+
}, Ue = /^-?\d+(?:\.\d+)?$/, We = /* @__PURE__ */ A("$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
|
}), Ge = {
|
|
427
427
|
major: 4,
|
|
428
428
|
minor: 3,
|
|
429
429
|
patch: 5
|
|
430
|
-
}, U = /* @__PURE__ */
|
|
430
|
+
}, U = /* @__PURE__ */ A("$ZodType", (e, t) => {
|
|
431
431
|
var n, r;
|
|
432
432
|
e != null || (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ge;
|
|
433
433
|
let i = [...(n = e._zod.def.checks) == null ? [] : n];
|
|
@@ -440,29 +440,29 @@ var B = (e, t) => {
|
|
|
440
440
|
});
|
|
441
441
|
} else {
|
|
442
442
|
let t = (e, t, n) => {
|
|
443
|
-
let r =
|
|
443
|
+
let r = F(e), i;
|
|
444
444
|
for (let o of t) {
|
|
445
445
|
if (o._zod.def.when) {
|
|
446
446
|
if (!o._zod.def.when(e)) continue;
|
|
447
447
|
} else if (r) continue;
|
|
448
448
|
let t = e.issues.length, s = o._zod.check(e);
|
|
449
|
-
if (s instanceof Promise && (n == null ? void 0 : n.async) === !1) throw new
|
|
449
|
+
if (s instanceof Promise && (n == null ? void 0 : n.async) === !1) throw new j();
|
|
450
450
|
if (i || s instanceof Promise) {
|
|
451
451
|
var a;
|
|
452
452
|
i = ((a = i) == null ? Promise.resolve() : a).then(async () => {
|
|
453
|
-
await s, e.issues.length !== t && (r || (r =
|
|
453
|
+
await s, e.issues.length !== t && (r || (r = F(e, t)));
|
|
454
454
|
});
|
|
455
455
|
} else {
|
|
456
456
|
if (e.issues.length === t) continue;
|
|
457
|
-
r || (r =
|
|
457
|
+
r || (r = F(e, t));
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
return i ? i.then(() => e) : e;
|
|
461
461
|
}, n = (n, r, a) => {
|
|
462
|
-
if (
|
|
462
|
+
if (F(n)) return n.aborted = !0, n;
|
|
463
463
|
let o = t(r, i, a);
|
|
464
464
|
if (o instanceof Promise) {
|
|
465
|
-
if (a.async === !1) throw new
|
|
465
|
+
if (a.async === !1) throw new j();
|
|
466
466
|
return o.then((t) => e._zod.parse(t, a));
|
|
467
467
|
}
|
|
468
468
|
return e._zod.parse(o, a);
|
|
@@ -481,20 +481,20 @@ var B = (e, t) => {
|
|
|
481
481
|
}
|
|
482
482
|
let o = e._zod.parse(r, a);
|
|
483
483
|
if (o instanceof Promise) {
|
|
484
|
-
if (a.async === !1) throw new
|
|
484
|
+
if (a.async === !1) throw new j();
|
|
485
485
|
return o.then((e) => t(e, i, a));
|
|
486
486
|
}
|
|
487
487
|
return t(o, i, a);
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
|
|
490
|
+
N(e, "~standard", () => ({
|
|
491
491
|
validate: (t) => {
|
|
492
492
|
try {
|
|
493
493
|
var n;
|
|
494
|
-
let r =
|
|
494
|
+
let r = V(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 H(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,7 +503,7 @@ var B = (e, t) => {
|
|
|
503
503
|
vendor: "zod",
|
|
504
504
|
version: 1
|
|
505
505
|
}));
|
|
506
|
-
}), Ke = /* @__PURE__ */
|
|
506
|
+
}), Ke = /* @__PURE__ */ A("$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 ? He(e._zod.bag) : n, e._zod.parse = (n, r) => {
|
|
509
509
|
if (t.coerce) try {
|
|
@@ -516,7 +516,7 @@ var B = (e, t) => {
|
|
|
516
516
|
inst: e
|
|
517
517
|
}), n;
|
|
518
518
|
};
|
|
519
|
-
}), qe = /* @__PURE__ */
|
|
519
|
+
}), qe = /* @__PURE__ */ A("$ZodNumber", (e, t) => {
|
|
520
520
|
var n;
|
|
521
521
|
U.init(e, t), e._zod.pattern = (n = e._zod.bag.pattern) == null ? Ue : n, e._zod.parse = (n, r) => {
|
|
522
522
|
if (t.coerce) try {
|
|
@@ -533,7 +533,7 @@ var B = (e, t) => {
|
|
|
533
533
|
...a ? { received: a } : {}
|
|
534
534
|
}), n;
|
|
535
535
|
};
|
|
536
|
-
}), Je = /* @__PURE__ */
|
|
536
|
+
}), Je = /* @__PURE__ */ A("$ZodNever", (e, t) => {
|
|
537
537
|
U.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
538
538
|
expected: "never",
|
|
539
539
|
code: "invalid_type",
|
|
@@ -542,9 +542,9 @@ var B = (e, t) => {
|
|
|
542
542
|
}), t);
|
|
543
543
|
});
|
|
544
544
|
function Ye(e, t, n) {
|
|
545
|
-
e.issues.length && t.issues.push(...
|
|
545
|
+
e.issues.length && t.issues.push(...I(n, e.issues)), t.value[n] = e.value;
|
|
546
546
|
}
|
|
547
|
-
var Xe = /* @__PURE__ */
|
|
547
|
+
var Xe = /* @__PURE__ */ A("$ZodArray", (e, t) => {
|
|
548
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({
|
|
@@ -568,7 +568,7 @@ var Xe = /* @__PURE__ */ j("$ZodArray", (e, t) => {
|
|
|
568
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(...I(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
|
}
|
|
@@ -578,7 +578,7 @@ function Ze(e) {
|
|
|
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,
|
|
@@ -608,7 +608,7 @@ 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 $e = /* @__PURE__ */
|
|
611
|
+
var $e = /* @__PURE__ */ A("$ZodObject", (e, t) => {
|
|
612
612
|
U.init(e, t);
|
|
613
613
|
let n = Object.getOwnPropertyDescriptor(t, "shape");
|
|
614
614
|
if (!(n != null && n.get)) {
|
|
@@ -618,8 +618,8 @@ var $e = /* @__PURE__ */ j("$ZodObject", (e, t) => {
|
|
|
618
618
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
619
619
|
} });
|
|
620
620
|
}
|
|
621
|
-
let r =
|
|
622
|
-
|
|
621
|
+
let r = je(() => Ze(t));
|
|
622
|
+
N(e._zod, "propValues", () => {
|
|
623
623
|
let e = t.shape, n = {};
|
|
624
624
|
for (let t in e) {
|
|
625
625
|
let r = e[t]._zod;
|
|
@@ -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;
|
|
@@ -658,10 +658,10 @@ function et(e, t) {
|
|
|
658
658
|
value: void 0
|
|
659
659
|
} : e;
|
|
660
660
|
}
|
|
661
|
-
var tt = /* @__PURE__ */
|
|
662
|
-
U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional",
|
|
661
|
+
var tt = /* @__PURE__ */ A("$ZodOptional", (e, t) => {
|
|
662
|
+
U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", N(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), N(e._zod, "pattern", () => {
|
|
663
663
|
let e = t.innerType._zod.pattern;
|
|
664
|
-
return e ? RegExp(`^(${
|
|
664
|
+
return e ? RegExp(`^(${Me(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);
|
|
@@ -669,7 +669,7 @@ var tt = /* @__PURE__ */ j("$ZodOptional", (e, t) => {
|
|
|
669
669
|
}
|
|
670
670
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
671
671
|
};
|
|
672
|
-
}), nt = /* @__PURE__ */
|
|
672
|
+
}), nt = /* @__PURE__ */ A("$ZodCustom", (e, t) => {
|
|
673
673
|
We.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
675
|
if (i instanceof Promise) return i.then((t) => rt(t, n, r, e));
|
|
@@ -686,7 +686,7 @@ 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(Re(e));
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
//#endregion
|
|
@@ -695,7 +695,7 @@ function rt(e, t, n, r) {
|
|
|
695
695
|
function it(e, t) {
|
|
696
696
|
return new e({
|
|
697
697
|
type: "string",
|
|
698
|
-
...
|
|
698
|
+
...P(t)
|
|
699
699
|
});
|
|
700
700
|
}
|
|
701
701
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -703,14 +703,14 @@ function at(e, t) {
|
|
|
703
703
|
return new e({
|
|
704
704
|
type: "number",
|
|
705
705
|
checks: [],
|
|
706
|
-
...
|
|
706
|
+
...P(t)
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
709
|
/* @__NO_SIDE_EFFECTS__ */
|
|
710
710
|
function ot(e, t) {
|
|
711
711
|
return new e({
|
|
712
712
|
type: "never",
|
|
713
|
-
...
|
|
713
|
+
...P(t)
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -719,14 +719,14 @@ function st(e, t, n) {
|
|
|
719
719
|
type: "custom",
|
|
720
720
|
check: "custom",
|
|
721
721
|
fn: t,
|
|
722
|
-
...
|
|
722
|
+
...P(n)
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
725
|
//#endregion
|
|
726
726
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js
|
|
727
|
-
var G = /* @__PURE__ */
|
|
727
|
+
var G = /* @__PURE__ */ A("ZodMiniType", (e, t) => {
|
|
728
728
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
729
|
-
U.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) =>
|
|
729
|
+
U.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => Be(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => V(e, t, n), e.parseAsync = async (t, n) => Ve(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => H(e, t, n), e.check = (...n) => {
|
|
730
730
|
var r;
|
|
731
731
|
return e.clone({
|
|
732
732
|
...t,
|
|
@@ -736,29 +736,29 @@ var G = /* @__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
|
-
}), ct = /* @__PURE__ */
|
|
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
|
+
}), ct = /* @__PURE__ */ A("ZodMiniString", (e, t) => {
|
|
741
741
|
Ke.init(e, t), G.init(e, t);
|
|
742
742
|
});
|
|
743
743
|
/* @__NO_SIDE_EFFECTS__ */
|
|
744
744
|
function lt(e) {
|
|
745
745
|
return /* @__PURE__ */ it(ct, e);
|
|
746
746
|
}
|
|
747
|
-
var ut = /* @__PURE__ */
|
|
747
|
+
var ut = /* @__PURE__ */ A("ZodMiniNumber", (e, t) => {
|
|
748
748
|
qe.init(e, t), G.init(e, t);
|
|
749
749
|
});
|
|
750
750
|
/* @__NO_SIDE_EFFECTS__ */
|
|
751
751
|
function K(e) {
|
|
752
752
|
return /* @__PURE__ */ at(ut, e);
|
|
753
753
|
}
|
|
754
|
-
var dt = /* @__PURE__ */
|
|
754
|
+
var dt = /* @__PURE__ */ A("ZodMiniNever", (e, t) => {
|
|
755
755
|
Je.init(e, t), G.init(e, t);
|
|
756
756
|
});
|
|
757
757
|
/* @__NO_SIDE_EFFECTS__ */
|
|
758
758
|
function ft(e) {
|
|
759
759
|
return /* @__PURE__ */ ot(dt, e);
|
|
760
760
|
}
|
|
761
|
-
var pt = /* @__PURE__ */
|
|
761
|
+
var pt = /* @__PURE__ */ A("ZodMiniArray", (e, t) => {
|
|
762
762
|
Xe.init(e, t), G.init(e, t);
|
|
763
763
|
});
|
|
764
764
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -766,11 +766,11 @@ function mt(e, t) {
|
|
|
766
766
|
return new pt({
|
|
767
767
|
type: "array",
|
|
768
768
|
element: e,
|
|
769
|
-
...
|
|
769
|
+
...P(t)
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
|
-
var ht = /* @__PURE__ */
|
|
773
|
-
$e.init(e, t), G.init(e, t),
|
|
772
|
+
var ht = /* @__PURE__ */ A("ZodMiniObject", (e, t) => {
|
|
773
|
+
$e.init(e, t), G.init(e, t), N(e, "shape", () => t.shape);
|
|
774
774
|
});
|
|
775
775
|
/* @__NO_SIDE_EFFECTS__ */
|
|
776
776
|
function q(e, t) {
|
|
@@ -778,10 +778,10 @@ function q(e, t) {
|
|
|
778
778
|
type: "object",
|
|
779
779
|
shape: e,
|
|
780
780
|
catchall: /* @__PURE__ */ ft(),
|
|
781
|
-
...
|
|
781
|
+
...P(t)
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
|
-
var gt = /* @__PURE__ */
|
|
784
|
+
var gt = /* @__PURE__ */ A("ZodMiniOptional", (e, t) => {
|
|
785
785
|
tt.init(e, t), G.init(e, t);
|
|
786
786
|
});
|
|
787
787
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -791,7 +791,7 @@ function J(e) {
|
|
|
791
791
|
innerType: e
|
|
792
792
|
});
|
|
793
793
|
}
|
|
794
|
-
var _t = /* @__PURE__ */
|
|
794
|
+
var _t = /* @__PURE__ */ A("ZodMiniCustom", (e, t) => {
|
|
795
795
|
nt.init(e, t), G.init(e, t);
|
|
796
796
|
});
|
|
797
797
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -800,29 +800,29 @@ function vt(e, t = {}) {
|
|
|
800
800
|
}
|
|
801
801
|
//#endregion
|
|
802
802
|
//#region src/schemas/sdk.schemas.ts
|
|
803
|
-
var
|
|
803
|
+
var Y = /* @__PURE__ */ q({
|
|
804
804
|
x: /* @__PURE__ */ K(),
|
|
805
805
|
y: /* @__PURE__ */ K()
|
|
806
|
-
}),
|
|
807
|
-
leftTop:
|
|
808
|
-
rightBottom:
|
|
809
|
-
}),
|
|
806
|
+
}), yt = /* @__PURE__ */ q({
|
|
807
|
+
leftTop: Y,
|
|
808
|
+
rightBottom: Y
|
|
809
|
+
}), bt = (/* @__PURE__ */ q({
|
|
810
810
|
name: /* @__PURE__ */ J(/* @__PURE__ */ lt()),
|
|
811
811
|
externalId: /* @__PURE__ */ J(/* @__PURE__ */ lt())
|
|
812
|
-
})).check(/* @__PURE__ */ vt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")),
|
|
813
|
-
booths: /* @__PURE__ */ J(/* @__PURE__ */ mt(
|
|
814
|
-
exhibitors: /* @__PURE__ */ J(/* @__PURE__ */ mt(
|
|
812
|
+
})).check(/* @__PURE__ */ vt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), xt = (/* @__PURE__ */ q({
|
|
813
|
+
booths: /* @__PURE__ */ J(/* @__PURE__ */ mt(bt)),
|
|
814
|
+
exhibitors: /* @__PURE__ */ J(/* @__PURE__ */ mt(bt))
|
|
815
815
|
})).check(/* @__PURE__ */ vt((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
|
-
function
|
|
818
|
+
}, "Selector must contain booths or exhibitors")), St = /* @__PURE__ */ J(/* @__PURE__ */ q({ padding: /* @__PURE__ */ J(/* @__PURE__ */ K()) })), Ct = /* @__PURE__ */ e(r(), 1), wt = 100, Tt = -.01;
|
|
819
|
+
function Et(e) {
|
|
820
820
|
let t = new Map(e), n = Array.from(t.keys());
|
|
821
821
|
if (n.length <= 2) return n;
|
|
822
|
-
let r =
|
|
823
|
-
return r.length < 4 ? r :
|
|
822
|
+
let r = Dt(n, t);
|
|
823
|
+
return r.length < 4 ? r : Ot(r, t);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Dt(e, t) {
|
|
826
826
|
let n = [e[0]], r = new Set(e);
|
|
827
827
|
r.delete(e[0]);
|
|
828
828
|
let i = e[0];
|
|
@@ -837,13 +837,13 @@ function Ot(e, t) {
|
|
|
837
837
|
}
|
|
838
838
|
return n;
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function Ot(e, t) {
|
|
841
841
|
let n = [...e], r = !0;
|
|
842
|
-
for (let e = 0; r && e <
|
|
842
|
+
for (let e = 0; r && e < wt; e++) {
|
|
843
843
|
r = !1;
|
|
844
844
|
scan: for (let e = 1; e < n.length - 2; e++) for (let i = e + 1; i < n.length - 1; i++) {
|
|
845
845
|
let a = t.get(n[e - 1]), o = t.get(n[e]), s = t.get(n[i]), c = t.get(n[i + 1]);
|
|
846
|
-
if (Math.abs(a.cx - s.cx) + Math.abs(a.cy - s.cy) + Math.abs(o.cx - c.cx) + Math.abs(o.cy - c.cy) - (Math.abs(a.cx - o.cx) + Math.abs(a.cy - o.cy)) - (Math.abs(s.cx - c.cx) + Math.abs(s.cy - c.cy)) <
|
|
846
|
+
if (Math.abs(a.cx - s.cx) + Math.abs(a.cy - s.cy) + Math.abs(o.cx - c.cx) + Math.abs(o.cy - c.cy) - (Math.abs(a.cx - o.cx) + Math.abs(a.cy - o.cy)) - (Math.abs(s.cx - c.cx) + Math.abs(s.cy - c.cy)) < Tt) {
|
|
847
847
|
for (let t = e, r = i; t < r; t++, r--) [n[t], n[r]] = [n[r], n[t]];
|
|
848
848
|
r = !0;
|
|
849
849
|
break scan;
|
|
@@ -854,22 +854,22 @@ function kt(e, t) {
|
|
|
854
854
|
}
|
|
855
855
|
//#endregion
|
|
856
856
|
//#region src/floorplan.ready.tsx
|
|
857
|
-
var
|
|
858
|
-
(0,
|
|
859
|
-
var
|
|
857
|
+
var X = n(), Z = (0, Ct.default)("efp:api");
|
|
858
|
+
(0, Ee.install)();
|
|
859
|
+
var kt = class extends ee {
|
|
860
860
|
constructor(...e) {
|
|
861
861
|
super(...e), this.root = void 0;
|
|
862
862
|
}
|
|
863
863
|
init() {
|
|
864
|
-
this.ignoreQuery ||
|
|
864
|
+
this.ignoreQuery || ue(this.offHistory), ve("load"), y.fp = this, de(this.allowConsent), x(me.Load, ""), this.root = (0, Te.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(we, { children: /* @__PURE__ */ (0, X.jsx)(ye, {
|
|
865
865
|
offHistory: this.offHistory,
|
|
866
866
|
allowConsent: this.allowConsent
|
|
867
|
-
}) })),
|
|
868
|
-
if (this.resolveReady(), !
|
|
867
|
+
}) })), x(me.Rendered, ""), l(() => 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
874
|
}
|
|
875
875
|
selectBooth(e) {
|
|
@@ -877,8 +877,8 @@ var At = class extends ee {
|
|
|
877
877
|
$("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
|
-
let t =
|
|
881
|
-
|
|
880
|
+
let t = y.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
881
|
+
y.selectBooth(t);
|
|
882
882
|
}
|
|
883
883
|
selectExhibitor(e) {
|
|
884
884
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
@@ -886,13 +886,13 @@ var At = class extends ee {
|
|
|
886
886
|
return;
|
|
887
887
|
}
|
|
888
888
|
if (!(e != null && e.length)) {
|
|
889
|
-
|
|
889
|
+
y.uiState.menu = !1, y.searchStore.resetSearchBox(), y.uiState.details = null;
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
|
-
let t =
|
|
892
|
+
let t = y.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
|
|
893
893
|
if (!(t != null && t.length)) return;
|
|
894
894
|
if (typeof e == "string") {
|
|
895
|
-
|
|
895
|
+
y.selectExhibitor(t[0]), y.moveToList([t[0]]);
|
|
896
896
|
return;
|
|
897
897
|
}
|
|
898
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), {
|
|
@@ -900,25 +900,25 @@ var At = class extends ee {
|
|
|
900
900
|
mostFrequent: n[0],
|
|
901
901
|
maxCount: 0
|
|
902
902
|
}).mostFrequent;
|
|
903
|
-
|
|
903
|
+
y.layerStore.updateVisibility(r, !0), y.uiState.menu = !1, y.searchStore.resetSearchBox(), y.uiState.details = null, y.uiState.list = {
|
|
904
904
|
type: "filter",
|
|
905
905
|
items: t,
|
|
906
906
|
query: {
|
|
907
907
|
key: "exhibitors",
|
|
908
908
|
value: t.map((e) => e.externalId).join(",")
|
|
909
909
|
}
|
|
910
|
-
},
|
|
910
|
+
}, y.moveToList();
|
|
911
911
|
}
|
|
912
912
|
highlightExhibitors(e) {
|
|
913
|
-
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"), y.boothStore.highlightedByExternalIds = [], y.exhibitorStore.highlightedByExternalIds = [...e];
|
|
914
914
|
}
|
|
915
915
|
highlightBooths(e) {
|
|
916
|
-
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"), y.exhibitorStore.highlightedByExternalIds = [], y.boothStore.highlightedByExternalIds = [...e];
|
|
917
917
|
}
|
|
918
918
|
highlightEntities(e) {
|
|
919
919
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
920
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
921
|
-
|
|
920
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = v(e);
|
|
921
|
+
y.boothStore.highlightedByExternalIds = [...t], y.exhibitorStore.highlightedByExternalIds = [...n];
|
|
922
922
|
}
|
|
923
923
|
selectRoute(e, t) {
|
|
924
924
|
if (Array.isArray(e)) {
|
|
@@ -928,15 +928,15 @@ var At = class extends ee {
|
|
|
928
928
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
929
929
|
return;
|
|
930
930
|
}
|
|
931
|
-
|
|
931
|
+
y.routeStore.selectRoute(new _(Q(n), Q(r), t.map(Q)));
|
|
932
932
|
return;
|
|
933
933
|
}
|
|
934
|
-
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"), y.routeStore.selectRoute(new _(Q(e), Q(t)));
|
|
935
935
|
}
|
|
936
936
|
getOptimizedRoutes(e) {
|
|
937
937
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
938
938
|
if (e.length > 8) throw Error("The maximum number of waypoints is 8.");
|
|
939
|
-
let t = e.map(
|
|
939
|
+
let t = e.map(Q).filter((e) => !!e);
|
|
940
940
|
if (!t.length) throw Error("No booths found for the provided waypoints.");
|
|
941
941
|
let n = /* @__PURE__ */ new Map();
|
|
942
942
|
for (let e of t) {
|
|
@@ -944,19 +944,19 @@ var At = class extends ee {
|
|
|
944
944
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
945
945
|
a ? a.push(e) : n.set(t, [e]);
|
|
946
946
|
}
|
|
947
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
947
|
+
return Array.from(n.values()).map((e) => ({ waypoints: Et(e.map((e) => [e.name, {
|
|
948
948
|
cx: e.rect.cx,
|
|
949
949
|
cy: e.rect.cy
|
|
950
950
|
}])) }));
|
|
951
951
|
}
|
|
952
952
|
selectCurrentPosition(e, t, n) {
|
|
953
953
|
var r;
|
|
954
|
-
let i =
|
|
955
|
-
!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"), y.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
956
956
|
}
|
|
957
957
|
setBookmarks(e) {
|
|
958
958
|
(!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
|
|
959
|
-
let t =
|
|
959
|
+
let t = y.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
|
|
960
960
|
t && (t.bookmarked = e.bookmarked);
|
|
961
961
|
});
|
|
962
962
|
}
|
|
@@ -975,29 +975,29 @@ var At = class extends ee {
|
|
|
975
975
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
976
976
|
return;
|
|
977
977
|
}
|
|
978
|
-
let r =
|
|
978
|
+
let r = se("bookmarked"), i = {
|
|
979
979
|
exhibitor: {
|
|
980
980
|
existingIds: new Set(r.exhibitors || []),
|
|
981
|
-
finder: (e) =>
|
|
982
|
-
replacer: (e) =>
|
|
981
|
+
finder: (e) => y.exhibitorStore.findExhibitor(e),
|
|
982
|
+
replacer: (e) => y.exhibitorStore.replaceBookmarked(e)
|
|
983
983
|
},
|
|
984
984
|
event: {
|
|
985
985
|
existingIds: new Set(r.events || []),
|
|
986
|
-
finder: (e) =>
|
|
987
|
-
replacer: (e) =>
|
|
986
|
+
finder: (e) => y.eventStore.findByNameOrSlug(e),
|
|
987
|
+
replacer: (e) => y.eventStore.replaceBookmarked(e)
|
|
988
988
|
},
|
|
989
989
|
speaker: {
|
|
990
990
|
existingIds: new Set(r.speakers || []),
|
|
991
|
-
finder: (e) =>
|
|
992
|
-
replacer: (e) =>
|
|
991
|
+
finder: (e) => y.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
|
|
992
|
+
replacer: (e) => y.speakerStore.replaceBookmarked(e)
|
|
993
993
|
},
|
|
994
994
|
booth: {
|
|
995
995
|
existingIds: new Set(r.booths || []),
|
|
996
996
|
finder: (e) => {
|
|
997
|
-
let t =
|
|
997
|
+
let t = y.boothStore.findBooth(e);
|
|
998
998
|
return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
|
|
999
999
|
},
|
|
1000
|
-
replacer: (e) =>
|
|
1000
|
+
replacer: (e) => y.boothStore.replaceBookmarked(e)
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
e.forEach((e) => {
|
|
@@ -1017,16 +1017,16 @@ var At = class extends ee {
|
|
|
1017
1017
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
1018
1018
|
return;
|
|
1019
1019
|
}
|
|
1020
|
-
let r =
|
|
1020
|
+
let r = se("visited"), i = {
|
|
1021
1021
|
exhibitor: {
|
|
1022
1022
|
existingIds: new Set(r.exhibitors || []),
|
|
1023
|
-
finder: (e) =>
|
|
1024
|
-
replacer: (e) =>
|
|
1023
|
+
finder: (e) => y.exhibitorStore.findExhibitor(e),
|
|
1024
|
+
replacer: (e) => y.exhibitorStore.replaceVisited(e)
|
|
1025
1025
|
},
|
|
1026
1026
|
event: {
|
|
1027
1027
|
existingIds: new Set(r.events || []),
|
|
1028
|
-
finder: (e) =>
|
|
1029
|
-
replacer: (e) =>
|
|
1028
|
+
finder: (e) => y.eventStore.findByNameOrSlug(e),
|
|
1029
|
+
replacer: (e) => y.eventStore.replaceVisited(e)
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
1032
|
e.forEach((e) => {
|
|
@@ -1041,73 +1041,73 @@ var At = class extends ee {
|
|
|
1041
1041
|
$("setMarkers", "Invalid input.", "EFP000800");
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
|
-
|
|
1044
|
+
y.routeStore.setMarkers(e);
|
|
1045
1045
|
}
|
|
1046
1046
|
selectMarker(e, t = !0) {
|
|
1047
|
-
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"),
|
|
1047
|
+
return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), y.routeStore.selectMarker(e, t);
|
|
1048
1048
|
}
|
|
1049
1049
|
drawCircles(e) {
|
|
1050
|
-
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"),
|
|
1050
|
+
Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), y.uiState.debugCircles = e;
|
|
1051
1051
|
}
|
|
1052
1052
|
checkRoutes() {
|
|
1053
|
-
|
|
1053
|
+
y.routeStore.checkRoutes();
|
|
1054
1054
|
}
|
|
1055
1055
|
updateLayerVisibility(e, t) {
|
|
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"),
|
|
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"), y.layerStore.updateVisibility(e, t);
|
|
1057
1057
|
}
|
|
1058
1058
|
getCenterCoordinates() {
|
|
1059
|
-
return
|
|
1059
|
+
return y.fp.getCenterCoordinates();
|
|
1060
1060
|
}
|
|
1061
1061
|
exhibitorsList() {
|
|
1062
|
-
return
|
|
1062
|
+
return y.exhibitorStore.exhibitors.map((e) => D(e));
|
|
1063
1063
|
}
|
|
1064
1064
|
boothsList() {
|
|
1065
|
-
return
|
|
1065
|
+
return y.boothStore.booths.map((e) => D(e));
|
|
1066
1066
|
}
|
|
1067
1067
|
categoriesList() {
|
|
1068
|
-
return
|
|
1068
|
+
return y.categoryStore.categories.map((e) => D(e));
|
|
1069
1069
|
}
|
|
1070
1070
|
selectCategory(e) {
|
|
1071
1071
|
if (e == null || typeof e != "string") {
|
|
1072
|
-
|
|
1072
|
+
y.searchStore.selectSearch();
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
|
-
let t = e == null ? void 0 : e.toLowerCase(), n =
|
|
1075
|
+
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);
|
|
1076
1076
|
if (!n) {
|
|
1077
1077
|
$("selectCategory", `Category ${e} not found.`, "EFP000C01");
|
|
1078
1078
|
return;
|
|
1079
1079
|
}
|
|
1080
|
-
|
|
1080
|
+
y.selectCategory(n);
|
|
1081
1081
|
}
|
|
1082
1082
|
applyParameters(e) {
|
|
1083
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
1083
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), pe(e);
|
|
1084
1084
|
}
|
|
1085
1085
|
getVisibility() {
|
|
1086
|
-
return
|
|
1086
|
+
return y.uiState.visibility;
|
|
1087
1087
|
}
|
|
1088
1088
|
setVisibility(e) {
|
|
1089
|
-
(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"), y.uiState.setVisibility(e);
|
|
1090
1090
|
}
|
|
1091
1091
|
findLocation() {
|
|
1092
|
-
|
|
1092
|
+
y.routeStore.findLocation();
|
|
1093
1093
|
}
|
|
1094
1094
|
zoomIn() {
|
|
1095
|
-
|
|
1095
|
+
y.uiState.zoomIn();
|
|
1096
1096
|
}
|
|
1097
1097
|
zoomOut() {
|
|
1098
|
-
|
|
1098
|
+
y.uiState.zoomOut();
|
|
1099
1099
|
}
|
|
1100
1100
|
switchView() {
|
|
1101
|
-
|
|
1101
|
+
y.mapboxStore.activateMapbox();
|
|
1102
1102
|
}
|
|
1103
1103
|
zoomTo(e, t) {
|
|
1104
|
-
|
|
1105
|
-
let n =
|
|
1104
|
+
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
1105
|
+
let n = xt.safeParse(e);
|
|
1106
1106
|
if (!n.success) {
|
|
1107
1107
|
$("zoomTo", n.error.message, "EFP001600");
|
|
1108
1108
|
return;
|
|
1109
1109
|
}
|
|
1110
|
-
let r =
|
|
1110
|
+
let r = St.safeParse(t);
|
|
1111
1111
|
if (!r.success) {
|
|
1112
1112
|
$("zoomTo", r.error.message, "EFP001601");
|
|
1113
1113
|
return;
|
|
@@ -1117,8 +1117,8 @@ var At = class extends ee {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
getBounds(e) {
|
|
1119
1119
|
var t, n;
|
|
1120
|
-
|
|
1121
|
-
let r =
|
|
1120
|
+
Z("getBounds called with selectors=%O", e);
|
|
1121
|
+
let r = xt.safeParse(e);
|
|
1122
1122
|
if (!r.success) {
|
|
1123
1123
|
$("getBounds", r.error.message, "EFP001400");
|
|
1124
1124
|
return;
|
|
@@ -1126,15 +1126,15 @@ var At = class extends ee {
|
|
|
1126
1126
|
let i = [];
|
|
1127
1127
|
if ((t = e.booths) == null || t.forEach((e) => {
|
|
1128
1128
|
let t;
|
|
1129
|
-
e.externalId ? t =
|
|
1129
|
+
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);
|
|
1130
1130
|
}), (n = e.exhibitors) == null || n.forEach((e) => {
|
|
1131
1131
|
var t;
|
|
1132
1132
|
let n;
|
|
1133
|
-
e.externalId ? n =
|
|
1133
|
+
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) => {
|
|
1134
1134
|
e.rect && i.push(e.rect);
|
|
1135
1135
|
});
|
|
1136
1136
|
}), i.length === 0) return;
|
|
1137
|
-
let a =
|
|
1137
|
+
let a = g.fromMultiple(i);
|
|
1138
1138
|
return {
|
|
1139
1139
|
leftTop: {
|
|
1140
1140
|
x: a.x1,
|
|
@@ -1147,16 +1147,16 @@ var At = class extends ee {
|
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
1149
1149
|
fitBounds(e, t) {
|
|
1150
|
-
if (
|
|
1151
|
-
|
|
1150
|
+
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1151
|
+
y.uiState.fitBounds();
|
|
1152
1152
|
return;
|
|
1153
1153
|
}
|
|
1154
|
-
let n =
|
|
1154
|
+
let n = yt.safeParse(e);
|
|
1155
1155
|
if (!n.success) {
|
|
1156
1156
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1157
1157
|
return;
|
|
1158
1158
|
}
|
|
1159
|
-
let r =
|
|
1159
|
+
let r = St.safeParse(t);
|
|
1160
1160
|
if (!r.success) {
|
|
1161
1161
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1162
1162
|
return;
|
|
@@ -1164,17 +1164,17 @@ var At = class extends ee {
|
|
|
1164
1164
|
let i;
|
|
1165
1165
|
if (t != null && t.padding) {
|
|
1166
1166
|
let n = t.padding;
|
|
1167
|
-
i =
|
|
1168
|
-
} else i =
|
|
1169
|
-
|
|
1167
|
+
i = g.fromX1y1x2y2(e.leftTop.x - n, e.leftTop.y - n, e.rightBottom.x + n, e.rightBottom.y + n);
|
|
1168
|
+
} else i = g.fromX1y1x2y2(e.leftTop.x, e.leftTop.y, e.rightBottom.x, e.rightBottom.y);
|
|
1169
|
+
y.uiState.moveToRect = i;
|
|
1170
1170
|
}
|
|
1171
1171
|
getBoothRect(e) {
|
|
1172
1172
|
var t;
|
|
1173
|
-
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 = ce(e)) == null ? void 0 : t.rect;
|
|
1174
1174
|
}
|
|
1175
1175
|
convertToGeo(e, t) {
|
|
1176
1176
|
var n;
|
|
1177
|
-
if (!(!(
|
|
1177
|
+
if (!(!(S == null || (n = S.properties) == null) && n.config)) {
|
|
1178
1178
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1179
1179
|
return;
|
|
1180
1180
|
}
|
|
@@ -1182,20 +1182,20 @@ var At = class extends ee {
|
|
|
1182
1182
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1183
1183
|
return;
|
|
1184
1184
|
}
|
|
1185
|
-
return
|
|
1185
|
+
return le(e, t, S.properties.config);
|
|
1186
1186
|
}
|
|
1187
1187
|
unstable_destroy() {
|
|
1188
1188
|
let e = window.__efpElement.firstChild;
|
|
1189
|
-
|
|
1189
|
+
De(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", u), _e(), fe(), he(), [...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();
|
|
1190
1190
|
}
|
|
1191
1191
|
search(e) {
|
|
1192
|
-
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"),
|
|
1193
|
-
item:
|
|
1192
|
+
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) => ({
|
|
1193
|
+
item: D(e.item),
|
|
1194
1194
|
score: e.score
|
|
1195
1195
|
}))));
|
|
1196
1196
|
}
|
|
1197
1197
|
getFloors() {
|
|
1198
|
-
return
|
|
1198
|
+
return y.layerStore.floors.map((e) => ({
|
|
1199
1199
|
name: e.name,
|
|
1200
1200
|
shortName: e.shortName,
|
|
1201
1201
|
description: e.description,
|
|
@@ -1234,25 +1234,25 @@ var At = class extends ee {
|
|
|
1234
1234
|
showPathway(e, t) {
|
|
1235
1235
|
let n = new URLSearchParams();
|
|
1236
1236
|
if (n.set(o, e), t != null && t.length) {
|
|
1237
|
-
let { boothExternalIds: e, exhibitorExternalIds: r } =
|
|
1237
|
+
let { boothExternalIds: e, exhibitorExternalIds: r } = v(t);
|
|
1238
1238
|
e.length > 0 && n.set("booths", e.join(",")), r.length > 0 && n.set("exhibitors", r.join(","));
|
|
1239
1239
|
}
|
|
1240
1240
|
this.applyParameters(n.toString());
|
|
1241
1241
|
}
|
|
1242
1242
|
showPathwayOnly(e, t) {
|
|
1243
|
-
this.activateFloor({ name: t }),
|
|
1244
|
-
let n =
|
|
1243
|
+
this.activateFloor({ name: t }), y.layerStore.showPathWay(e), y.uiState.setPathwayOnlyMode(!0);
|
|
1244
|
+
let n = y.layerStore.findLayer(e), r = y.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
|
|
1245
1245
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1246
1246
|
var a;
|
|
1247
1247
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1248
|
-
|
|
1248
|
+
y.uiState.moveToRect = g.fromX1y1x2y2(e.x1, e.y1, e.x2, e.y2);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
hidePathways() {
|
|
1252
|
-
this.highlightBooths([]),
|
|
1252
|
+
this.highlightBooths([]), y.layerStore.hidePathways(), y.uiState.setPathwayOnlyMode(!1);
|
|
1253
1253
|
}
|
|
1254
1254
|
showSearch() {
|
|
1255
|
-
|
|
1255
|
+
y.selectSearch("");
|
|
1256
1256
|
}
|
|
1257
1257
|
changeLanguage(e) {
|
|
1258
1258
|
var t;
|
|
@@ -1265,54 +1265,54 @@ var At = class extends ee {
|
|
|
1265
1265
|
r.set(s, n), this.applyParameters(r.toString());
|
|
1266
1266
|
}
|
|
1267
1267
|
isGpsTrackingEnabled() {
|
|
1268
|
-
return
|
|
1268
|
+
return y.routeStore.gpsEnabled;
|
|
1269
1269
|
}
|
|
1270
1270
|
setGpsTrackingEnabled(e) {
|
|
1271
|
-
|
|
1271
|
+
y.routeStore.setGpsTrackingEnabled(e);
|
|
1272
1272
|
}
|
|
1273
1273
|
deselectCurrentPosition() {
|
|
1274
|
-
|
|
1274
|
+
y.routeStore.selectCurrentPosition(null, !1);
|
|
1275
1275
|
}
|
|
1276
1276
|
deselectRoute() {
|
|
1277
|
-
|
|
1277
|
+
y.routeStore.selectRoute(null), y.routeStore.setOnlyAccessible(!1);
|
|
1278
1278
|
}
|
|
1279
1279
|
reset() {
|
|
1280
|
-
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]),
|
|
1280
|
+
if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), y.uiState.kioskData && y.resetCameraFn) {
|
|
1281
1281
|
var e;
|
|
1282
|
-
(e =
|
|
1282
|
+
(e = y.resetCameraFn) == null || e.call(y);
|
|
1283
1283
|
} else this.fitBounds();
|
|
1284
1284
|
}
|
|
1285
1285
|
selectAccessibleRoute(e) {
|
|
1286
|
-
|
|
1286
|
+
y.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
|
-
function
|
|
1290
|
-
return typeof e == "string" ?
|
|
1289
|
+
function Q(e) {
|
|
1290
|
+
return typeof e == "string" ? ce(e) : y.routeStore.getNearestBooth(e);
|
|
1291
1291
|
}
|
|
1292
|
-
var
|
|
1292
|
+
var At = 0;
|
|
1293
1293
|
function $(e, t, n) {
|
|
1294
1294
|
let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://developer.expofp.com/guide/java-script-api-reference";
|
|
1295
|
-
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`),
|
|
1296
|
-
|
|
1295
|
+
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), y.fp.disableRuntimeAlerts) return;
|
|
1296
|
+
y.uiState.setGlobalErrorMessage({
|
|
1297
1297
|
title: r,
|
|
1298
|
-
body: /* @__PURE__ */ (0,
|
|
1298
|
+
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1299
1299
|
i,
|
|
1300
1300
|
" ",
|
|
1301
|
-
/* @__PURE__ */ (0,
|
|
1301
|
+
/* @__PURE__ */ (0, X.jsx)("a", {
|
|
1302
1302
|
href: a,
|
|
1303
1303
|
target: "_blank",
|
|
1304
1304
|
rel: "noreferrer",
|
|
1305
1305
|
children: a
|
|
1306
1306
|
})
|
|
1307
1307
|
] })
|
|
1308
|
-
}), clearTimeout(
|
|
1308
|
+
}), clearTimeout(At);
|
|
1309
1309
|
let o = 8e3;
|
|
1310
|
-
|
|
1310
|
+
At = window.setTimeout(() => {
|
|
1311
1311
|
let e = async () => {
|
|
1312
|
-
|
|
1312
|
+
y.uiState.globalErrorMessages.length > 0 && (y.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1313
1313
|
};
|
|
1314
1314
|
e();
|
|
1315
1315
|
}, o);
|
|
1316
1316
|
}
|
|
1317
1317
|
//#endregion
|
|
1318
|
-
export {
|
|
1318
|
+
export { kt as default };
|