@expofp/floorplan 3.1.8 → 3.1.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/{CookieConsent-BWIz5A9p.js → CookieConsent-C4eKGuNJ.js} +353 -353
- package/dist/browser/{Debug-Dc-CpIuW.js → Debug-BK0h3ENt.js} +13 -13
- package/dist/browser/{Demo-C-gDoJHz.js → Demo-DKWnVx5b.js} +13 -13
- package/dist/browser/{Free-B_Nc0lBV.js → Free-CJhiGdSU.js} +15 -15
- package/dist/browser/{Gallery-NW3tpm3U.js → Gallery-DMfpZoE0.js} +59 -59
- package/dist/browser/{GpsLoader-BgtxLTgL.js → GpsLoader-DS9DXlBR.js} +35 -35
- package/dist/browser/{KioskStore-O9lcbMgO.js → KioskStore-CiEM9CMf.js} +4 -4
- package/dist/browser/{Mapbox-n8XdO_JZ.js → Mapbox-BBw_6HBr.js} +9 -9
- package/dist/browser/{SetKioskMode-BSrhzr-T.js → SetKioskMode-DgygnfNq.js} +8 -8
- package/dist/browser/{ShowKiosk-ChdkT29W.js → ShowKiosk-BclMWRLG.js} +10 -10
- package/dist/browser/{ThreeComponent-C9NgJy3L.js → ThreeComponent-CTQ2sWc-.js} +16 -16
- package/dist/browser/{TouchHand-j9wM9VIW.js → TouchHand-lZlKGKGH.js} +5 -5
- package/dist/browser/{ViewerMenuPanel-B-eQvgxu.js → ViewerMenuPanel-fZCPm9TA.js} +19 -19
- package/dist/browser/{add-debug-secret-listener-hyBkCStK.js → add-debug-secret-listener-jHGzZuWM.js} +1 -1
- package/dist/browser/boolean-editor-DNFYN4Sx.js +158 -0
- package/dist/browser/{bootIntercom-CWJHIFsy.js → bootIntercom-DWQX7Nxl.js} +1 -1
- package/dist/browser/browser-Dpy-Cy8d.js +198 -0
- package/dist/browser/bundle.json +62 -44
- package/dist/browser/{chunk-CmzsSKsP.js → chunk-BfzSeyLK.js} +1 -1
- package/dist/browser/{classnames-CV7GydgO.js → classnames-BW7mCZyh.js} +2 -2
- package/dist/browser/{client-CW46IlZK.js → client-Cn3Z9ang.js} +5 -5
- package/dist/browser/{data-BFFP23Yx.js → data-7hb4vDd3.js} +4 -4
- package/dist/browser/debug-namespaces-editor-CmUqG69-.js +119 -0
- package/dist/browser/{debug-overlay-DK1IpDkH.js → debug-overlay-B-e5Pbxg.js} +1468 -1264
- package/dist/browser/{debug-ui-Bk_cgOg0.js → debug-ui-DxiU8oSt.js} +7 -7
- package/dist/browser/{dist-msXGDyJE.js → dist-DD4WWKtK.js} +7 -7
- package/dist/browser/{exports-CWJfbRRi.js → exports-lQhByCca.js} +1 -1
- package/dist/browser/{favicon-Dx5hE2TC.js → favicon-VUxEiZxq.js} +1 -1
- package/dist/browser/{fetch-retry.umd--f_V0nbP.js → fetch-retry.umd-BDjT0rTs.js} +2 -2
- package/dist/browser/flex-SvJc8Gd0.js +217 -0
- package/dist/browser/{flex-DayQlZNC.js → flex.props-DnHjeP6T.js} +165 -368
- package/dist/browser/{floorplan.loader-ChwMFO3K.js → floorplan.loader-D1izAjdW.js} +643 -643
- package/dist/browser/{floorplan.ready-DH6TL_BA.js → floorplan.ready-DqeRjOqu.js} +214 -213
- package/dist/browser/{fuse-Cx2xVr92.js → fuse-ESGGgZWs.js} +2 -2
- package/dist/browser/index.js +70 -53
- package/dist/browser/{is-debug-DeMC2fj6.js → is-debug-C64aYlrH.js} +654 -838
- package/dist/browser/{jsx-runtime-CeW-_L98.js → jsx-runtime-v8j39o0i.js} +2 -2
- package/dist/browser/{lib-ouUEfatK.js → lib-DW2iYgnU.js} +5 -5
- package/dist/browser/log-store-l_zfzIvt.js +26 -0
- package/dist/browser/{main-C8DYHeS3.js → main-_sD237P5.js} +1 -1
- package/dist/browser/mobx-BWJGyD6x.js +24 -0
- package/dist/browser/{particles.min-CuOEuyDw.js → particles.min-9AV6GYes.js} +2 -2
- package/dist/browser/{prop-types-CkH4l5ny.js → prop-types-CJoAWh1g.js} +2 -2
- package/dist/browser/{react-_GkslNER.js → react-DBhCWCTi.js} +2 -2
- package/dist/browser/{react-dom-Cq9do5W9.js → react-dom-DRChqii1.js} +4 -4
- package/dist/browser/register-debug-namespaces-setting-Kg13ON9A.js +27 -0
- package/dist/browser/reset-all-settings-NSxrFuY5.js +15 -0
- package/dist/browser/{reset-all-settings-hgrZphbe.js → setting-registry-xuc0QrRD.js} +3 -8
- package/dist/browser/{settings-BIMaTEyo.js → settings-DLHiz1Aj.js} +15 -14
- package/dist/browser/settings-item-BT3bl2Bv.js +67 -0
- package/dist/browser/{store-B0ML_owv.js → store-BspVk_2u.js} +5290 -5289
- package/dist/browser/ui-fwuZcurI.js +36 -0
- package/dist/esm/_misc_to_move/logBuildInfo.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/load.js +1 -1
- package/package.json +3 -3
- package/dist/browser/boolean-editor-CtepaQAf.js +0 -206
- package/dist/browser/mobx-BTzRLiLH.js +0 -24
- package/dist/browser/src-BGoCtwZn.js +0 -19
- package/dist/browser/ui-vdOqnu50.js +0 -33
- package/dist/esm/_misc_to_move/logBuildInfoImpl.d.ts +0 -2
- package/dist/esm/_misc_to_move/logBuildInfoImpl.js +0 -1
|
@@ -1,30 +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.1.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.1.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] = "af665646-d400-42d8-9ab7-3b628a11a738", e._sentryDebugIdIdentifier = "sentry-dbid-af665646-d400-42d8-9ab7-3b628a11a738");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
9
|
+
import { r as e } from "./chunk-BfzSeyLK.js";
|
|
10
|
+
import { t } from "./react-DBhCWCTi.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-v8j39o0i.js";
|
|
12
|
+
import { t as r } from "./browser-Dpy-Cy8d.js";
|
|
13
|
+
import { a as i, ct as a, dt as o, o as s, st as c, y as l } from "./is-debug-C64aYlrH.js";
|
|
14
|
+
import { a as u, i as d, n as f, r as p, t as ee } from "./floorplan.loader-D1izAjdW.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-lQhByCca.js";
|
|
16
|
+
import { t as oe } from "./client-Cn3Z9ang.js";
|
|
17
|
+
import { $ as se, C as ce, F as g, In as le, Jn as _, N as ue, P as v, S as de, _ as y, a as b, at as fe, b as pe, h as me, nt as x, ot as he, p as S, tt as C, v as ge, x as _e } from "./store-BspVk_2u.js";
|
|
18
|
+
import { i as ve } from "./CookieConsent-C4eKGuNJ.js";
|
|
18
19
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.51.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
19
|
-
function
|
|
20
|
-
let t =
|
|
20
|
+
function w(e = {}) {
|
|
21
|
+
let t = p.document, n = (t == null ? void 0 : t.head) || (t == null ? void 0 : t.body);
|
|
21
22
|
if (!n) {
|
|
22
|
-
|
|
23
|
+
f && h.error("[showReportDialog] Global document not defined");
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
let r =
|
|
26
|
+
let r = ae(), i = m(), a = i == null ? void 0 : i.getDsn();
|
|
26
27
|
if (!a) {
|
|
27
|
-
|
|
28
|
+
f && h.error("[showReportDialog] DSN not configured");
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
31
|
let o = {
|
|
@@ -33,30 +34,30 @@ function ye(e = {}) {
|
|
|
33
34
|
...r.getUser(),
|
|
34
35
|
...e.user
|
|
35
36
|
},
|
|
36
|
-
eventId: e.eventId ||
|
|
37
|
-
}, s =
|
|
38
|
-
s.async = !0, s.crossOrigin = "anonymous", s.src =
|
|
39
|
-
let { onLoad: c, onClose:
|
|
40
|
-
if (c && (s.onload = c),
|
|
37
|
+
eventId: e.eventId || re()
|
|
38
|
+
}, s = p.document.createElement("script");
|
|
39
|
+
s.async = !0, s.crossOrigin = "anonymous", s.src = d(a, o);
|
|
40
|
+
let { onLoad: c, onClose: l } = o;
|
|
41
|
+
if (c && (s.onload = c), l) {
|
|
41
42
|
let e = (t) => {
|
|
42
43
|
if (t.data === "__sentry_reportdialog_closed__") try {
|
|
43
|
-
|
|
44
|
+
l();
|
|
44
45
|
} finally {
|
|
45
|
-
|
|
46
|
+
p.removeEventListener("message", e);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
|
-
|
|
49
|
+
p.addEventListener("message", e);
|
|
49
50
|
}
|
|
50
51
|
n.appendChild(s);
|
|
51
52
|
}
|
|
52
53
|
//#endregion
|
|
53
54
|
//#region ../../node_modules/.pnpm/@sentry+react@10.51.0_react@19.2.5/node_modules/@sentry/react/build/esm/error.js
|
|
54
|
-
var
|
|
55
|
-
function
|
|
55
|
+
var T = /* @__PURE__ */ e(t());
|
|
56
|
+
function ye(e) {
|
|
56
57
|
let t = e.match(/^([^.]+)/);
|
|
57
58
|
return t !== null && parseInt(t[0]) >= 17;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function be(e, t) {
|
|
60
61
|
let n = /* @__PURE__ */ new WeakSet();
|
|
61
62
|
function r(e, t) {
|
|
62
63
|
if (!n.has(e)) {
|
|
@@ -66,25 +67,25 @@ function xe(e, t) {
|
|
|
66
67
|
}
|
|
67
68
|
r(e, t);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
70
|
+
function xe(e, { componentStack: t }, n) {
|
|
71
|
+
if (ye(T.version) && ne(e) && t) {
|
|
71
72
|
let n = Error(e.message);
|
|
72
|
-
n.name = `React ErrorBoundary ${e.name}`, n.stack = t,
|
|
73
|
+
n.name = `React ErrorBoundary ${e.name}`, n.stack = t, be(e, n);
|
|
73
74
|
}
|
|
74
|
-
return
|
|
75
|
+
return te((r) => (r.setContext("react", { componentStack: t }), ie(e, n)));
|
|
75
76
|
}
|
|
76
77
|
//#endregion
|
|
77
78
|
//#region ../../node_modules/.pnpm/@sentry+react@10.51.0_react@19.2.5/node_modules/@sentry/react/build/esm/debug-build.js
|
|
78
|
-
var
|
|
79
|
+
var Se = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
|
|
79
80
|
componentStack: null,
|
|
80
81
|
error: null,
|
|
81
82
|
eventId: null
|
|
82
|
-
},
|
|
83
|
+
}, Ce = class extends T.Component {
|
|
83
84
|
constructor(e) {
|
|
84
|
-
super(e), this.state =
|
|
85
|
-
let t =
|
|
85
|
+
super(e), this.state = E, this._openFallbackReportDialog = !0;
|
|
86
|
+
let t = m();
|
|
86
87
|
t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
|
|
87
|
-
!t.type && this._lastEventId && t.event_id === this._lastEventId &&
|
|
88
|
+
!t.type && this._lastEventId && t.event_id === this._lastEventId && w({
|
|
88
89
|
...e.dialogOptions,
|
|
89
90
|
eventId: this._lastEventId
|
|
90
91
|
});
|
|
@@ -92,13 +93,13 @@ var Ce = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, T = {
|
|
|
92
93
|
}
|
|
93
94
|
componentDidCatch(e, t) {
|
|
94
95
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
95
|
-
|
|
96
|
+
te((s) => {
|
|
96
97
|
r && r(s, e, n);
|
|
97
|
-
let c =
|
|
98
|
+
let c = xe(e, t, { mechanism: {
|
|
98
99
|
handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
|
|
99
100
|
type: "auto.function.react.error_boundary"
|
|
100
101
|
} });
|
|
101
|
-
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog &&
|
|
102
|
+
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && w({
|
|
102
103
|
...o,
|
|
103
104
|
eventId: c
|
|
104
105
|
})), this.setState({
|
|
@@ -114,92 +115,92 @@ var Ce = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, T = {
|
|
|
114
115
|
}
|
|
115
116
|
componentWillUnmount() {
|
|
116
117
|
let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
|
|
117
|
-
r && (this.state ===
|
|
118
|
+
r && (this.state === E ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
|
|
118
119
|
}
|
|
119
120
|
resetErrorBoundary() {
|
|
120
121
|
let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
|
|
121
|
-
e && e(t, n, r), this.setState(
|
|
122
|
+
e && e(t, n, r), this.setState(E);
|
|
122
123
|
}
|
|
123
124
|
render() {
|
|
124
125
|
let { fallback: e, children: t } = this.props, n = this.state;
|
|
125
126
|
if (n.componentStack === null) return typeof t == "function" ? t() : t;
|
|
126
|
-
let r = typeof e == "function" ?
|
|
127
|
+
let r = typeof e == "function" ? T.createElement(e, {
|
|
127
128
|
error: n.error,
|
|
128
129
|
componentStack: n.componentStack,
|
|
129
130
|
resetError: () => this.resetErrorBoundary(),
|
|
130
131
|
eventId: n.eventId
|
|
131
132
|
}) : e;
|
|
132
|
-
return
|
|
133
|
+
return T.isValidElement(r) ? r : (e && Se && h.warn("fallback did not produce a valid ReactElement"), null);
|
|
133
134
|
}
|
|
134
|
-
},
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) &&
|
|
135
|
+
}, we = oe(), Te = he();
|
|
136
|
+
function Ee() {
|
|
137
|
+
D("floorplan"), D("__data"), D("__dataUrlBase"), D("__searchi"), D("__wfData"), D("__mobxGlobals"), D("__store"), D("__mobxInstanceCount");
|
|
138
|
+
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && D(e);
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
140
|
+
function D(e) {
|
|
141
|
+
De(e) ? delete window[e] : window[e] = void 0;
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
+
function De(e) {
|
|
143
144
|
let t = Object.getOwnPropertyDescriptor(window, e);
|
|
144
145
|
return t && t.configurable;
|
|
145
146
|
}
|
|
146
147
|
//#endregion
|
|
147
148
|
//#region src/utils/mapEntity.ts
|
|
148
|
-
function
|
|
149
|
+
function O(e) {
|
|
149
150
|
switch (e.entity.type) {
|
|
150
151
|
case "booth":
|
|
151
152
|
var t, n;
|
|
152
153
|
return {
|
|
153
154
|
id: e.id,
|
|
154
|
-
name:
|
|
155
|
-
externalId:
|
|
155
|
+
name: A(e.name),
|
|
156
|
+
externalId: A(e.externalId),
|
|
156
157
|
isSpecial: e.entity.variant === "special",
|
|
157
|
-
exhibitors:
|
|
158
|
+
exhibitors: k(e.exhibitors),
|
|
158
159
|
layer: {
|
|
159
|
-
name:
|
|
160
|
-
description:
|
|
160
|
+
name: A((t = e.layer) == null ? void 0 : t.name),
|
|
161
|
+
description: A((n = e.layer) == null ? void 0 : n.description)
|
|
161
162
|
},
|
|
162
163
|
meta: e.meta,
|
|
163
|
-
description:
|
|
164
|
+
description: A(e.description),
|
|
164
165
|
entity: e.entity,
|
|
165
|
-
title:
|
|
166
|
+
title: A(e.title)
|
|
166
167
|
};
|
|
167
168
|
case "category": return {
|
|
168
169
|
id: e.id,
|
|
169
|
-
name:
|
|
170
|
-
exhibitors:
|
|
170
|
+
name: A(e.name),
|
|
171
|
+
exhibitors: k(e.exhibitors),
|
|
171
172
|
entity: e.entity,
|
|
172
|
-
slug:
|
|
173
|
+
slug: A(e.slug)
|
|
173
174
|
};
|
|
174
175
|
case "exhibitor": return {
|
|
175
176
|
id: e.id,
|
|
176
|
-
name:
|
|
177
|
-
externalId:
|
|
178
|
-
booths:
|
|
177
|
+
name: A(e.name),
|
|
178
|
+
externalId: A(e.externalId),
|
|
179
|
+
booths: k(e.booths),
|
|
179
180
|
entity: e.entity,
|
|
180
|
-
slug:
|
|
181
|
+
slug: A(e.slug)
|
|
181
182
|
};
|
|
182
183
|
case "schedule": return {
|
|
183
184
|
id: e.id,
|
|
184
|
-
externalId:
|
|
185
|
+
externalId: A(e.externalId),
|
|
185
186
|
boothId: e.boothId,
|
|
186
187
|
exhibitorId: e.exhibitorId,
|
|
187
|
-
name:
|
|
188
|
-
description:
|
|
189
|
-
startDate:
|
|
190
|
-
endDate:
|
|
191
|
-
link:
|
|
188
|
+
name: A(e.name),
|
|
189
|
+
description: A(e.description),
|
|
190
|
+
startDate: A(e.startDate),
|
|
191
|
+
endDate: A(e.endDate),
|
|
192
|
+
link: A(e.link),
|
|
192
193
|
entity: e.entity,
|
|
193
194
|
isEnded: e.isEnded
|
|
194
195
|
};
|
|
195
|
-
case
|
|
196
|
+
case c: return {
|
|
196
197
|
id: e.id,
|
|
197
|
-
name:
|
|
198
|
+
name: A(e.name),
|
|
198
199
|
entity: e.entity
|
|
199
200
|
};
|
|
200
201
|
case "heatmap-yah": return {
|
|
201
|
-
id:
|
|
202
|
-
name:
|
|
202
|
+
id: A(e.id),
|
|
203
|
+
name: A(e.name),
|
|
203
204
|
viewCount: e.viewCount || 0,
|
|
204
205
|
x: e.x || 0,
|
|
205
206
|
y: e.y || 0,
|
|
@@ -209,14 +210,14 @@ function D(e) {
|
|
|
209
210
|
default: return e;
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
+
function k(e) {
|
|
213
214
|
return Array.isArray(e) ? e.filter(Boolean).map((e) => e.id).filter(Boolean) : [];
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
+
function A(e) {
|
|
216
217
|
return typeof e == "string" ? e : "";
|
|
217
218
|
}
|
|
218
219
|
Object.freeze({ status: "aborted" });
|
|
219
|
-
function
|
|
220
|
+
function j(e, t, n) {
|
|
220
221
|
var r;
|
|
221
222
|
function i(n, r) {
|
|
222
223
|
if (n._zod || Object.defineProperty(n, "_zod", {
|
|
@@ -249,20 +250,20 @@ function A(e, t, n) {
|
|
|
249
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);
|
|
250
251
|
} }), Object.defineProperty(s, "name", { value: e }), s;
|
|
251
252
|
}
|
|
252
|
-
var
|
|
253
|
+
var M = class extends Error {
|
|
253
254
|
constructor() {
|
|
254
255
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
255
256
|
}
|
|
256
|
-
},
|
|
257
|
-
function
|
|
258
|
-
return e && Object.assign(
|
|
257
|
+
}, Oe = {};
|
|
258
|
+
function N(e) {
|
|
259
|
+
return e && Object.assign(Oe, e), Oe;
|
|
259
260
|
}
|
|
260
261
|
//#endregion
|
|
261
262
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js
|
|
262
|
-
function
|
|
263
|
+
function ke(e, t) {
|
|
263
264
|
return typeof t == "bigint" ? t.toString() : t;
|
|
264
265
|
}
|
|
265
|
-
function
|
|
266
|
+
function Ae(e) {
|
|
266
267
|
return { get value() {
|
|
267
268
|
{
|
|
268
269
|
let t = e();
|
|
@@ -271,16 +272,16 @@ function je(e) {
|
|
|
271
272
|
throw Error("cached value already set");
|
|
272
273
|
} };
|
|
273
274
|
}
|
|
274
|
-
function
|
|
275
|
+
function je(e) {
|
|
275
276
|
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
276
277
|
return e.slice(t, n);
|
|
277
278
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
279
|
+
var Me = Symbol("evaluating");
|
|
280
|
+
function P(e, t, n) {
|
|
280
281
|
let r;
|
|
281
282
|
Object.defineProperty(e, t, {
|
|
282
283
|
get() {
|
|
283
|
-
if (r !==
|
|
284
|
+
if (r !== Me) return r === void 0 && (r = Me, r = n()), r;
|
|
284
285
|
},
|
|
285
286
|
set(n) {
|
|
286
287
|
Object.defineProperty(e, t, { value: n });
|
|
@@ -288,7 +289,7 @@ function N(e, t, n) {
|
|
|
288
289
|
configurable: !0
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
|
-
var
|
|
292
|
+
var Ne = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
292
293
|
function Pe(e) {
|
|
293
294
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
294
295
|
}
|
|
@@ -360,20 +361,20 @@ var B = (e, t) => {
|
|
|
360
361
|
}), Object.defineProperty(e, "issues", {
|
|
361
362
|
value: t,
|
|
362
363
|
enumerable: !1
|
|
363
|
-
}), e.message = JSON.stringify(t,
|
|
364
|
+
}), e.message = JSON.stringify(t, ke, 2), Object.defineProperty(e, "toString", {
|
|
364
365
|
value: () => e.message,
|
|
365
366
|
enumerable: !1
|
|
366
367
|
});
|
|
367
|
-
}, Re =
|
|
368
|
+
}, Re = j("$ZodError", B), V = j("$ZodError", B, { Parent: Error }), ze = /* @__PURE__ */ ((e) => (t, n, r, i) => {
|
|
368
369
|
let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
|
|
369
370
|
value: n,
|
|
370
371
|
issues: []
|
|
371
372
|
}, a);
|
|
372
|
-
if (o instanceof Promise) throw new
|
|
373
|
+
if (o instanceof Promise) throw new M();
|
|
373
374
|
if (o.issues.length) {
|
|
374
375
|
var s;
|
|
375
|
-
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => z(e, a,
|
|
376
|
-
throw
|
|
376
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => z(e, a, N())));
|
|
377
|
+
throw Ne(t, i == null ? void 0 : i.callee), t;
|
|
377
378
|
}
|
|
378
379
|
return o.value;
|
|
379
380
|
})(V), Be = /* @__PURE__ */ ((e) => async (t, n, r, i) => {
|
|
@@ -383,8 +384,8 @@ var B = (e, t) => {
|
|
|
383
384
|
}, a);
|
|
384
385
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
385
386
|
var s;
|
|
386
|
-
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => z(e, a,
|
|
387
|
-
throw
|
|
387
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => z(e, a, N())));
|
|
388
|
+
throw Ne(t, i == null ? void 0 : i.callee), t;
|
|
388
389
|
}
|
|
389
390
|
return o.value;
|
|
390
391
|
})(V), H = /* @__PURE__ */ ((e) => (t, n, r) => {
|
|
@@ -395,10 +396,10 @@ var B = (e, t) => {
|
|
|
395
396
|
value: n,
|
|
396
397
|
issues: []
|
|
397
398
|
}, i);
|
|
398
|
-
if (a instanceof Promise) throw new
|
|
399
|
+
if (a instanceof Promise) throw new M();
|
|
399
400
|
return a.issues.length ? {
|
|
400
401
|
success: !1,
|
|
401
|
-
error: new (e == null ? Re : e)(a.issues.map((e) => z(e, i,
|
|
402
|
+
error: new (e == null ? Re : e)(a.issues.map((e) => z(e, i, N())))
|
|
402
403
|
} : {
|
|
403
404
|
success: !0,
|
|
404
405
|
data: a.value
|
|
@@ -410,7 +411,7 @@ var B = (e, t) => {
|
|
|
410
411
|
}, i);
|
|
411
412
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
412
413
|
success: !1,
|
|
413
|
-
error: new e(a.issues.map((e) => z(e, i,
|
|
414
|
+
error: new e(a.issues.map((e) => z(e, i, N())))
|
|
414
415
|
} : {
|
|
415
416
|
success: !0,
|
|
416
417
|
data: a.value
|
|
@@ -419,14 +420,14 @@ var B = (e, t) => {
|
|
|
419
420
|
var t, n;
|
|
420
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]*";
|
|
421
422
|
return RegExp(`^${r}$`);
|
|
422
|
-
}, Ue = /^-?\d+(?:\.\d+)?$/, We = /* @__PURE__ */
|
|
423
|
+
}, Ue = /^-?\d+(?:\.\d+)?$/, We = /* @__PURE__ */ j("$ZodCheck", (e, t) => {
|
|
423
424
|
var n;
|
|
424
425
|
e._zod != null || (e._zod = {}), e._zod.def = t, (n = e._zod).onattach != null || (n.onattach = []);
|
|
425
426
|
}), Ge = {
|
|
426
427
|
major: 4,
|
|
427
428
|
minor: 3,
|
|
428
429
|
patch: 5
|
|
429
|
-
}, U = /* @__PURE__ */
|
|
430
|
+
}, U = /* @__PURE__ */ j("$ZodType", (e, t) => {
|
|
430
431
|
var n, r;
|
|
431
432
|
e != null || (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ge;
|
|
432
433
|
let i = [...(n = e._zod.def.checks) == null ? [] : n];
|
|
@@ -445,7 +446,7 @@ var B = (e, t) => {
|
|
|
445
446
|
if (!o._zod.def.when(e)) continue;
|
|
446
447
|
} else if (r) continue;
|
|
447
448
|
let t = e.issues.length, s = o._zod.check(e);
|
|
448
|
-
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 M();
|
|
449
450
|
if (i || s instanceof Promise) {
|
|
450
451
|
var a;
|
|
451
452
|
i = ((a = i) == null ? Promise.resolve() : a).then(async () => {
|
|
@@ -461,7 +462,7 @@ var B = (e, t) => {
|
|
|
461
462
|
if (I(n)) return n.aborted = !0, n;
|
|
462
463
|
let o = t(r, i, a);
|
|
463
464
|
if (o instanceof Promise) {
|
|
464
|
-
if (a.async === !1) throw new
|
|
465
|
+
if (a.async === !1) throw new M();
|
|
465
466
|
return o.then((t) => e._zod.parse(t, a));
|
|
466
467
|
}
|
|
467
468
|
return e._zod.parse(o, a);
|
|
@@ -480,13 +481,13 @@ var B = (e, t) => {
|
|
|
480
481
|
}
|
|
481
482
|
let o = e._zod.parse(r, a);
|
|
482
483
|
if (o instanceof Promise) {
|
|
483
|
-
if (a.async === !1) throw new
|
|
484
|
+
if (a.async === !1) throw new M();
|
|
484
485
|
return o.then((e) => t(e, i, a));
|
|
485
486
|
}
|
|
486
487
|
return t(o, i, a);
|
|
487
488
|
};
|
|
488
489
|
}
|
|
489
|
-
|
|
490
|
+
P(e, "~standard", () => ({
|
|
490
491
|
validate: (t) => {
|
|
491
492
|
try {
|
|
492
493
|
var n;
|
|
@@ -502,7 +503,7 @@ var B = (e, t) => {
|
|
|
502
503
|
vendor: "zod",
|
|
503
504
|
version: 1
|
|
504
505
|
}));
|
|
505
|
-
}), Ke = /* @__PURE__ */
|
|
506
|
+
}), Ke = /* @__PURE__ */ j("$ZodString", (e, t) => {
|
|
506
507
|
var n, r, i;
|
|
507
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) => {
|
|
508
509
|
if (t.coerce) try {
|
|
@@ -515,7 +516,7 @@ var B = (e, t) => {
|
|
|
515
516
|
inst: e
|
|
516
517
|
}), n;
|
|
517
518
|
};
|
|
518
|
-
}), qe = /* @__PURE__ */
|
|
519
|
+
}), qe = /* @__PURE__ */ j("$ZodNumber", (e, t) => {
|
|
519
520
|
var n;
|
|
520
521
|
U.init(e, t), e._zod.pattern = (n = e._zod.bag.pattern) == null ? Ue : n, e._zod.parse = (n, r) => {
|
|
521
522
|
if (t.coerce) try {
|
|
@@ -532,7 +533,7 @@ var B = (e, t) => {
|
|
|
532
533
|
...a ? { received: a } : {}
|
|
533
534
|
}), n;
|
|
534
535
|
};
|
|
535
|
-
}), Je = /* @__PURE__ */
|
|
536
|
+
}), Je = /* @__PURE__ */ j("$ZodNever", (e, t) => {
|
|
536
537
|
U.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
537
538
|
expected: "never",
|
|
538
539
|
code: "invalid_type",
|
|
@@ -543,7 +544,7 @@ var B = (e, t) => {
|
|
|
543
544
|
function Ye(e, t, n) {
|
|
544
545
|
e.issues.length && t.issues.push(...L(n, e.issues)), t.value[n] = e.value;
|
|
545
546
|
}
|
|
546
|
-
var Xe = /* @__PURE__ */
|
|
547
|
+
var Xe = /* @__PURE__ */ j("$ZodArray", (e, t) => {
|
|
547
548
|
U.init(e, t), e._zod.parse = (n, r) => {
|
|
548
549
|
let i = n.value;
|
|
549
550
|
if (!Array.isArray(i)) return n.issues.push({
|
|
@@ -607,7 +608,7 @@ function Qe(e, t, n, r, i, a) {
|
|
|
607
608
|
inst: a
|
|
608
609
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
609
610
|
}
|
|
610
|
-
var $e = /* @__PURE__ */
|
|
611
|
+
var $e = /* @__PURE__ */ j("$ZodObject", (e, t) => {
|
|
611
612
|
U.init(e, t);
|
|
612
613
|
let n = Object.getOwnPropertyDescriptor(t, "shape");
|
|
613
614
|
if (!(n != null && n.get)) {
|
|
@@ -617,8 +618,8 @@ var $e = /* @__PURE__ */ A("$ZodObject", (e, t) => {
|
|
|
617
618
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
618
619
|
} });
|
|
619
620
|
}
|
|
620
|
-
let r =
|
|
621
|
-
|
|
621
|
+
let r = Ae(() => Ze(t));
|
|
622
|
+
P(e._zod, "propValues", () => {
|
|
622
623
|
let e = t.shape, n = {};
|
|
623
624
|
for (let t in e) {
|
|
624
625
|
let r = e[t]._zod;
|
|
@@ -651,31 +652,31 @@ var $e = /* @__PURE__ */ A("$ZodObject", (e, t) => {
|
|
|
651
652
|
return a ? Qe(c, s, t, n, r.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
652
653
|
};
|
|
653
654
|
});
|
|
654
|
-
function
|
|
655
|
+
function et(e, t) {
|
|
655
656
|
return e.issues.length && t === void 0 ? {
|
|
656
657
|
issues: [],
|
|
657
658
|
value: void 0
|
|
658
659
|
} : e;
|
|
659
660
|
}
|
|
660
|
-
var
|
|
661
|
-
U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional",
|
|
661
|
+
var tt = /* @__PURE__ */ j("$ZodOptional", (e, t) => {
|
|
662
|
+
U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", P(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), P(e._zod, "pattern", () => {
|
|
662
663
|
let e = t.innerType._zod.pattern;
|
|
663
|
-
return e ? RegExp(`^(${
|
|
664
|
+
return e ? RegExp(`^(${je(e.source)})?$`) : void 0;
|
|
664
665
|
}), e._zod.parse = (e, n) => {
|
|
665
666
|
if (t.innerType._zod.optin === "optional") {
|
|
666
667
|
let r = t.innerType._zod.run(e, n);
|
|
667
|
-
return r instanceof Promise ? r.then((t) =>
|
|
668
|
+
return r instanceof Promise ? r.then((t) => et(t, e.value)) : et(r, e.value);
|
|
668
669
|
}
|
|
669
670
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
670
671
|
};
|
|
671
|
-
}),
|
|
672
|
+
}), nt = /* @__PURE__ */ j("$ZodCustom", (e, t) => {
|
|
672
673
|
We.init(e, t), U.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
673
674
|
let r = n.value, i = t.fn(r);
|
|
674
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
675
|
-
|
|
675
|
+
if (i instanceof Promise) return i.then((t) => rt(t, n, r, e));
|
|
676
|
+
rt(i, n, r, e);
|
|
676
677
|
};
|
|
677
678
|
});
|
|
678
|
-
function
|
|
679
|
+
function rt(e, t, n, r) {
|
|
679
680
|
if (!e) {
|
|
680
681
|
var i;
|
|
681
682
|
let e = {
|
|
@@ -691,14 +692,14 @@ function nt(e, t, n, r) {
|
|
|
691
692
|
//#endregion
|
|
692
693
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js
|
|
693
694
|
/* @__NO_SIDE_EFFECTS__ */
|
|
694
|
-
function
|
|
695
|
+
function it(e, t) {
|
|
695
696
|
return new e({
|
|
696
697
|
type: "string",
|
|
697
698
|
...F(t)
|
|
698
699
|
});
|
|
699
700
|
}
|
|
700
701
|
/* @__NO_SIDE_EFFECTS__ */
|
|
701
|
-
function
|
|
702
|
+
function at(e, t) {
|
|
702
703
|
return new e({
|
|
703
704
|
type: "number",
|
|
704
705
|
checks: [],
|
|
@@ -706,14 +707,14 @@ function it(e, t) {
|
|
|
706
707
|
});
|
|
707
708
|
}
|
|
708
709
|
/* @__NO_SIDE_EFFECTS__ */
|
|
709
|
-
function
|
|
710
|
+
function ot(e, t) {
|
|
710
711
|
return new e({
|
|
711
712
|
type: "never",
|
|
712
713
|
...F(t)
|
|
713
714
|
});
|
|
714
715
|
}
|
|
715
716
|
/* @__NO_SIDE_EFFECTS__ */
|
|
716
|
-
function
|
|
717
|
+
function st(e, t, n) {
|
|
717
718
|
return new e({
|
|
718
719
|
type: "custom",
|
|
719
720
|
check: "custom",
|
|
@@ -723,7 +724,7 @@ function ot(e, t, n) {
|
|
|
723
724
|
}
|
|
724
725
|
//#endregion
|
|
725
726
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js
|
|
726
|
-
var
|
|
727
|
+
var G = /* @__PURE__ */ j("ZodMiniType", (e, t) => {
|
|
727
728
|
if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
|
|
728
729
|
U.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => ze(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => H(e, t, n), e.parseAsync = async (t, n) => Be(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ve(e, t, n), e.check = (...n) => {
|
|
729
730
|
var r;
|
|
@@ -736,92 +737,92 @@ var K = /* @__PURE__ */ A("ZodMiniType", (e, t) => {
|
|
|
736
737
|
} } : e)]
|
|
737
738
|
}, { parent: !0 });
|
|
738
739
|
}, e.with = e.check, e.clone = (t, n) => Fe(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
739
|
-
}),
|
|
740
|
-
Ke.init(e, t),
|
|
740
|
+
}), ct = /* @__PURE__ */ j("ZodMiniString", (e, t) => {
|
|
741
|
+
Ke.init(e, t), G.init(e, t);
|
|
741
742
|
});
|
|
742
743
|
/* @__NO_SIDE_EFFECTS__ */
|
|
743
|
-
function
|
|
744
|
-
return /* @__PURE__ */
|
|
744
|
+
function lt(e) {
|
|
745
|
+
return /* @__PURE__ */ it(ct, e);
|
|
745
746
|
}
|
|
746
|
-
var
|
|
747
|
-
qe.init(e, t),
|
|
747
|
+
var ut = /* @__PURE__ */ j("ZodMiniNumber", (e, t) => {
|
|
748
|
+
qe.init(e, t), G.init(e, t);
|
|
748
749
|
});
|
|
749
750
|
/* @__NO_SIDE_EFFECTS__ */
|
|
750
|
-
function
|
|
751
|
-
return /* @__PURE__ */
|
|
751
|
+
function K(e) {
|
|
752
|
+
return /* @__PURE__ */ at(ut, e);
|
|
752
753
|
}
|
|
753
|
-
var
|
|
754
|
-
Je.init(e, t),
|
|
754
|
+
var dt = /* @__PURE__ */ j("ZodMiniNever", (e, t) => {
|
|
755
|
+
Je.init(e, t), G.init(e, t);
|
|
755
756
|
});
|
|
756
757
|
/* @__NO_SIDE_EFFECTS__ */
|
|
757
|
-
function
|
|
758
|
-
return /* @__PURE__ */
|
|
758
|
+
function ft(e) {
|
|
759
|
+
return /* @__PURE__ */ ot(dt, e);
|
|
759
760
|
}
|
|
760
|
-
var
|
|
761
|
-
Xe.init(e, t),
|
|
761
|
+
var pt = /* @__PURE__ */ j("ZodMiniArray", (e, t) => {
|
|
762
|
+
Xe.init(e, t), G.init(e, t);
|
|
762
763
|
});
|
|
763
764
|
/* @__NO_SIDE_EFFECTS__ */
|
|
764
|
-
function
|
|
765
|
-
return new
|
|
765
|
+
function mt(e, t) {
|
|
766
|
+
return new pt({
|
|
766
767
|
type: "array",
|
|
767
768
|
element: e,
|
|
768
769
|
...F(t)
|
|
769
770
|
});
|
|
770
771
|
}
|
|
771
|
-
var
|
|
772
|
-
$e.init(e, t),
|
|
772
|
+
var ht = /* @__PURE__ */ j("ZodMiniObject", (e, t) => {
|
|
773
|
+
$e.init(e, t), G.init(e, t), P(e, "shape", () => t.shape);
|
|
773
774
|
});
|
|
774
775
|
/* @__NO_SIDE_EFFECTS__ */
|
|
775
|
-
function
|
|
776
|
-
return new
|
|
776
|
+
function q(e, t) {
|
|
777
|
+
return new ht({
|
|
777
778
|
type: "object",
|
|
778
779
|
shape: e,
|
|
779
|
-
catchall: /* @__PURE__ */
|
|
780
|
+
catchall: /* @__PURE__ */ ft(),
|
|
780
781
|
...F(t)
|
|
781
782
|
});
|
|
782
783
|
}
|
|
783
|
-
var
|
|
784
|
-
|
|
784
|
+
var gt = /* @__PURE__ */ j("ZodMiniOptional", (e, t) => {
|
|
785
|
+
tt.init(e, t), G.init(e, t);
|
|
785
786
|
});
|
|
786
787
|
/* @__NO_SIDE_EFFECTS__ */
|
|
787
|
-
function
|
|
788
|
-
return new
|
|
788
|
+
function J(e) {
|
|
789
|
+
return new gt({
|
|
789
790
|
type: "optional",
|
|
790
791
|
innerType: e
|
|
791
792
|
});
|
|
792
793
|
}
|
|
793
|
-
var
|
|
794
|
-
|
|
794
|
+
var _t = /* @__PURE__ */ j("ZodMiniCustom", (e, t) => {
|
|
795
|
+
nt.init(e, t), G.init(e, t);
|
|
795
796
|
});
|
|
796
797
|
/* @__NO_SIDE_EFFECTS__ */
|
|
797
|
-
function
|
|
798
|
-
return /* @__PURE__ */
|
|
798
|
+
function vt(e, t = {}) {
|
|
799
|
+
return /* @__PURE__ */ st(_t, e, t);
|
|
799
800
|
}
|
|
800
801
|
//#endregion
|
|
801
802
|
//#region src/schemas/sdk.schemas.ts
|
|
802
|
-
var
|
|
803
|
-
x: /* @__PURE__ */
|
|
804
|
-
y: /* @__PURE__ */
|
|
805
|
-
}),
|
|
806
|
-
leftTop:
|
|
807
|
-
rightBottom:
|
|
808
|
-
}),
|
|
809
|
-
name: /* @__PURE__ */
|
|
810
|
-
externalId: /* @__PURE__ */
|
|
811
|
-
})).check(/* @__PURE__ */
|
|
812
|
-
booths: /* @__PURE__ */
|
|
813
|
-
exhibitors: /* @__PURE__ */
|
|
814
|
-
})).check(/* @__PURE__ */
|
|
803
|
+
var yt = /* @__PURE__ */ q({
|
|
804
|
+
x: /* @__PURE__ */ K(),
|
|
805
|
+
y: /* @__PURE__ */ K()
|
|
806
|
+
}), bt = /* @__PURE__ */ q({
|
|
807
|
+
leftTop: yt,
|
|
808
|
+
rightBottom: yt
|
|
809
|
+
}), xt = (/* @__PURE__ */ q({
|
|
810
|
+
name: /* @__PURE__ */ J(/* @__PURE__ */ lt()),
|
|
811
|
+
externalId: /* @__PURE__ */ J(/* @__PURE__ */ lt())
|
|
812
|
+
})).check(/* @__PURE__ */ vt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), St = (/* @__PURE__ */ q({
|
|
813
|
+
booths: /* @__PURE__ */ J(/* @__PURE__ */ mt(xt)),
|
|
814
|
+
exhibitors: /* @__PURE__ */ J(/* @__PURE__ */ mt(xt))
|
|
815
|
+
})).check(/* @__PURE__ */ vt((e) => {
|
|
815
816
|
var t, n;
|
|
816
817
|
return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
|
|
817
|
-
}, "Selector must contain booths or exhibitors")),
|
|
818
|
-
function
|
|
818
|
+
}, "Selector must contain booths or exhibitors")), Ct = /* @__PURE__ */ J(/* @__PURE__ */ q({ padding: /* @__PURE__ */ J(/* @__PURE__ */ K()) })), wt = /* @__PURE__ */ e(r(), 1), Tt = 100, Et = -.01;
|
|
819
|
+
function Dt(e) {
|
|
819
820
|
let t = new Map(e), n = Array.from(t.keys());
|
|
820
821
|
if (n.length <= 2) return n;
|
|
821
|
-
let r =
|
|
822
|
-
return r.length < 4 ? r :
|
|
822
|
+
let r = Ot(n, t);
|
|
823
|
+
return r.length < 4 ? r : kt(r, t);
|
|
823
824
|
}
|
|
824
|
-
function
|
|
825
|
+
function Ot(e, t) {
|
|
825
826
|
let n = [e[0]], r = new Set(e);
|
|
826
827
|
r.delete(e[0]);
|
|
827
828
|
let i = e[0];
|
|
@@ -836,13 +837,13 @@ function Dt(e, t) {
|
|
|
836
837
|
}
|
|
837
838
|
return n;
|
|
838
839
|
}
|
|
839
|
-
function
|
|
840
|
+
function kt(e, t) {
|
|
840
841
|
let n = [...e], r = !0;
|
|
841
|
-
for (let e = 0; r && e <
|
|
842
|
+
for (let e = 0; r && e < Tt; e++) {
|
|
842
843
|
r = !1;
|
|
843
844
|
scan: for (let e = 1; e < n.length - 2; e++) for (let i = e + 1; i < n.length - 1; i++) {
|
|
844
845
|
let a = t.get(n[e - 1]), o = t.get(n[e]), s = t.get(n[i]), c = t.get(n[i + 1]);
|
|
845
|
-
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)) < Et) {
|
|
846
847
|
for (let t = e, r = i; t < r; t++, r--) [n[t], n[r]] = [n[r], n[t]];
|
|
847
848
|
r = !0;
|
|
848
849
|
break scan;
|
|
@@ -853,17 +854,17 @@ function Ot(e, t) {
|
|
|
853
854
|
}
|
|
854
855
|
//#endregion
|
|
855
856
|
//#region src/floorplan.ready.tsx
|
|
856
|
-
var
|
|
857
|
-
(0,
|
|
858
|
-
var
|
|
857
|
+
var Y = n(), X = (0, wt.default)("efp:api");
|
|
858
|
+
(0, Te.install)();
|
|
859
|
+
var At = class extends ee {
|
|
859
860
|
constructor(...e) {
|
|
860
861
|
super(...e), this.root = void 0;
|
|
861
862
|
}
|
|
862
863
|
init() {
|
|
863
|
-
this.ignoreQuery || ce(this.offHistory), pe("load"), b.fp = this, ge(this.allowConsent),
|
|
864
|
+
this.ignoreQuery || ce(this.offHistory), pe("load"), b.fp = this, ge(this.allowConsent), y(S.Load, ""), this.root = (0, we.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, Y.jsx)(Ce, { children: /* @__PURE__ */ (0, Y.jsx)(ve, {
|
|
864
865
|
offHistory: this.offHistory,
|
|
865
866
|
allowConsent: this.allowConsent
|
|
866
|
-
}) })),
|
|
867
|
+
}) })), y(S.Rendered, ""), l(() => b.layerStore.layersLoaded, () => {
|
|
867
868
|
if (this.resolveReady(), !b.initialized) {
|
|
868
869
|
var e;
|
|
869
870
|
(e = this.onInit) == null || e.call(this, this);
|
|
@@ -927,15 +928,15 @@ var kt = class extends f {
|
|
|
927
928
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
928
929
|
return;
|
|
929
930
|
}
|
|
930
|
-
b.routeStore.selectRoute(new
|
|
931
|
+
b.routeStore.selectRoute(new ue(Z(n), Z(r), t.map(Z)));
|
|
931
932
|
return;
|
|
932
933
|
}
|
|
933
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), b.routeStore.selectRoute(new
|
|
934
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), b.routeStore.selectRoute(new ue(Z(e), Z(t)));
|
|
934
935
|
}
|
|
935
936
|
getOptimizedRoutes(e) {
|
|
936
937
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
937
938
|
if (e.length > 8) throw Error("The maximum number of waypoints is 8.");
|
|
938
|
-
let t = e.map(
|
|
939
|
+
let t = e.map(Z).filter((e) => !!e);
|
|
939
940
|
if (!t.length) throw Error("No booths found for the provided waypoints.");
|
|
940
941
|
let n = /* @__PURE__ */ new Map();
|
|
941
942
|
for (let e of t) {
|
|
@@ -943,7 +944,7 @@ var kt = class extends f {
|
|
|
943
944
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
944
945
|
a ? a.push(e) : n.set(t, [e]);
|
|
945
946
|
}
|
|
946
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
947
|
+
return Array.from(n.values()).map((e) => ({ waypoints: Dt(e.map((e) => [e.name, {
|
|
947
948
|
cx: e.rect.cx,
|
|
948
949
|
cy: e.rect.cy
|
|
949
950
|
}])) }));
|
|
@@ -1058,13 +1059,13 @@ var kt = class extends f {
|
|
|
1058
1059
|
return b.fp.getCenterCoordinates();
|
|
1059
1060
|
}
|
|
1060
1061
|
exhibitorsList() {
|
|
1061
|
-
return b.exhibitorStore.exhibitors.map((e) =>
|
|
1062
|
+
return b.exhibitorStore.exhibitors.map((e) => O(e));
|
|
1062
1063
|
}
|
|
1063
1064
|
boothsList() {
|
|
1064
|
-
return b.boothStore.booths.map((e) =>
|
|
1065
|
+
return b.boothStore.booths.map((e) => O(e));
|
|
1065
1066
|
}
|
|
1066
1067
|
categoriesList() {
|
|
1067
|
-
return b.categoryStore.categories.map((e) =>
|
|
1068
|
+
return b.categoryStore.categories.map((e) => O(e));
|
|
1068
1069
|
}
|
|
1069
1070
|
selectCategory(e) {
|
|
1070
1071
|
if (e == null || typeof e != "string") {
|
|
@@ -1100,13 +1101,13 @@ var kt = class extends f {
|
|
|
1100
1101
|
b.mapboxStore.activateMapbox();
|
|
1101
1102
|
}
|
|
1102
1103
|
zoomTo(e, t) {
|
|
1103
|
-
|
|
1104
|
-
let n =
|
|
1104
|
+
X("zoomTo called with selectors=%O options=%O", e, t);
|
|
1105
|
+
let n = St.safeParse(e);
|
|
1105
1106
|
if (!n.success) {
|
|
1106
1107
|
$("zoomTo", n.error.message, "EFP001600");
|
|
1107
1108
|
return;
|
|
1108
1109
|
}
|
|
1109
|
-
let r =
|
|
1110
|
+
let r = Ct.safeParse(t);
|
|
1110
1111
|
if (!r.success) {
|
|
1111
1112
|
$("zoomTo", r.error.message, "EFP001601");
|
|
1112
1113
|
return;
|
|
@@ -1116,8 +1117,8 @@ var kt = class extends f {
|
|
|
1116
1117
|
}
|
|
1117
1118
|
getBounds(e) {
|
|
1118
1119
|
var t, n;
|
|
1119
|
-
|
|
1120
|
-
let r =
|
|
1120
|
+
X("getBounds called with selectors=%O", e);
|
|
1121
|
+
let r = St.safeParse(e);
|
|
1121
1122
|
if (!r.success) {
|
|
1122
1123
|
$("getBounds", r.error.message, "EFP001400");
|
|
1123
1124
|
return;
|
|
@@ -1146,16 +1147,16 @@ var kt = class extends f {
|
|
|
1146
1147
|
};
|
|
1147
1148
|
}
|
|
1148
1149
|
fitBounds(e, t) {
|
|
1149
|
-
if (
|
|
1150
|
+
if (X("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1150
1151
|
b.uiState.fitBounds();
|
|
1151
1152
|
return;
|
|
1152
1153
|
}
|
|
1153
|
-
let n =
|
|
1154
|
+
let n = bt.safeParse(e);
|
|
1154
1155
|
if (!n.success) {
|
|
1155
1156
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1156
1157
|
return;
|
|
1157
1158
|
}
|
|
1158
|
-
let r =
|
|
1159
|
+
let r = Ct.safeParse(t);
|
|
1159
1160
|
if (!r.success) {
|
|
1160
1161
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1161
1162
|
return;
|
|
@@ -1169,7 +1170,7 @@ var kt = class extends f {
|
|
|
1169
1170
|
}
|
|
1170
1171
|
getBoothRect(e) {
|
|
1171
1172
|
var t;
|
|
1172
|
-
return typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00"), (t =
|
|
1173
|
+
return typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00"), (t = v(e)) == null ? void 0 : t.rect;
|
|
1173
1174
|
}
|
|
1174
1175
|
convertToGeo(e, t) {
|
|
1175
1176
|
var n;
|
|
@@ -1185,11 +1186,11 @@ var kt = class extends f {
|
|
|
1185
1186
|
}
|
|
1186
1187
|
unstable_destroy() {
|
|
1187
1188
|
let e = window.__efpElement.firstChild;
|
|
1188
|
-
|
|
1189
|
+
Ee(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", u), de(), fe(), me(), [...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();
|
|
1189
1190
|
}
|
|
1190
1191
|
search(e) {
|
|
1191
1192
|
return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), b.fuzzySearchEngineStore.loadEngine().then(() => (b.searchStore.selectSearch(e), b.uiState.fuzzySearchItems.map((e) => ({
|
|
1192
|
-
item:
|
|
1193
|
+
item: O(e.item),
|
|
1193
1194
|
score: e.score
|
|
1194
1195
|
}))));
|
|
1195
1196
|
}
|
|
@@ -1232,7 +1233,7 @@ var kt = class extends f {
|
|
|
1232
1233
|
}
|
|
1233
1234
|
showPathway(e, t) {
|
|
1234
1235
|
let n = new URLSearchParams();
|
|
1235
|
-
if (n.set(
|
|
1236
|
+
if (n.set(o, e), t != null && t.length) {
|
|
1236
1237
|
let { boothExternalIds: e, exhibitorExternalIds: r } = g(t);
|
|
1237
1238
|
e.length > 0 && n.set("booths", e.join(",")), r.length > 0 && n.set("exhibitors", r.join(","));
|
|
1238
1239
|
}
|
|
@@ -1255,13 +1256,13 @@ var kt = class extends f {
|
|
|
1255
1256
|
}
|
|
1256
1257
|
changeLanguage(e) {
|
|
1257
1258
|
var t;
|
|
1258
|
-
let
|
|
1259
|
-
if (!
|
|
1260
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1259
|
+
let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1260
|
+
if (!s(n)) {
|
|
1261
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${i().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1261
1262
|
return;
|
|
1262
1263
|
}
|
|
1263
|
-
let
|
|
1264
|
-
|
|
1264
|
+
let r = new URLSearchParams();
|
|
1265
|
+
r.set(a, n), this.applyParameters(r.toString());
|
|
1265
1266
|
}
|
|
1266
1267
|
isGpsTrackingEnabled() {
|
|
1267
1268
|
return b.routeStore.gpsEnabled;
|
|
@@ -1282,28 +1283,28 @@ var kt = class extends f {
|
|
|
1282
1283
|
} else this.fitBounds();
|
|
1283
1284
|
}
|
|
1284
1285
|
};
|
|
1285
|
-
function
|
|
1286
|
-
return typeof e == "string" ?
|
|
1286
|
+
function Z(e) {
|
|
1287
|
+
return typeof e == "string" ? v(e) : b.routeStore.getNearestBooth(e);
|
|
1287
1288
|
}
|
|
1288
|
-
var
|
|
1289
|
+
var Q = 0;
|
|
1289
1290
|
function $(e, t, n) {
|
|
1290
1291
|
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";
|
|
1291
1292
|
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), b.fp.disableRuntimeAlerts) return;
|
|
1292
1293
|
b.uiState.setGlobalErrorMessage({
|
|
1293
1294
|
title: r,
|
|
1294
|
-
body: /* @__PURE__ */ (0,
|
|
1295
|
+
body: /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
|
|
1295
1296
|
i,
|
|
1296
1297
|
" ",
|
|
1297
|
-
/* @__PURE__ */ (0,
|
|
1298
|
+
/* @__PURE__ */ (0, Y.jsx)("a", {
|
|
1298
1299
|
href: a,
|
|
1299
1300
|
target: "_blank",
|
|
1300
1301
|
rel: "noreferrer",
|
|
1301
1302
|
children: a
|
|
1302
1303
|
})
|
|
1303
1304
|
] })
|
|
1304
|
-
}), clearTimeout(
|
|
1305
|
+
}), clearTimeout(Q);
|
|
1305
1306
|
let o = 8e3;
|
|
1306
|
-
|
|
1307
|
+
Q = window.setTimeout(() => {
|
|
1307
1308
|
let e = async () => {
|
|
1308
1309
|
b.uiState.globalErrorMessages.length > 0 && (b.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1309
1310
|
};
|
|
@@ -1311,4 +1312,4 @@ function $(e, t, n) {
|
|
|
1311
1312
|
}, o);
|
|
1312
1313
|
}
|
|
1313
1314
|
//#endregion
|
|
1314
|
-
export {
|
|
1315
|
+
export { At as default };
|