@expofp/floorplan 3.0.3 → 3.1.0
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-CqkxkIwX.js → CookieConsent-Dmv0fV6C.js} +1608 -1604
- package/dist/browser/{Debug-Dks0egsG.js → Debug-Bcinws3Z.js} +11 -10
- package/dist/browser/{Demo-DBNmcPwz.js → Demo-DS47GBXP.js} +14 -13
- package/dist/browser/Free-rMJSKekB.js +63 -0
- package/dist/browser/{Gallery-D9sKC8mp.js → Gallery-DfAH39db.js} +28 -27
- package/dist/browser/{GpsLoader-Dfum4xB9.js → GpsLoader-g5ZbaNN8.js} +40 -39
- package/dist/browser/{KioskStore-DnhZo-Ov.js → KioskStore-BkI0W5G_.js} +44 -44
- package/dist/browser/{Mapbox-BWK98Zf_.js → Mapbox-U0Xp-dJy.js} +18 -18
- package/dist/browser/{SetKioskMode-DPOCqSzq.js → SetKioskMode-Mtfet5Gv.js} +19 -19
- package/dist/browser/ShowKiosk-S_x_8I5m.js +26 -0
- package/dist/browser/{ThreeComponent-COgPMNab.js → ThreeComponent-Cn-bMeXV.js} +282 -281
- package/dist/browser/{TouchHand-Ky80pfba.js → TouchHand-CkxqOSSr.js} +5 -5
- package/dist/browser/{ViewerMenuPanel-DJ6pZIMD.js → ViewerMenuPanel-1IlAn-bB.js} +27 -26
- package/dist/browser/{add-debug-secret-listener-CXd4jWZG.js → add-debug-secret-listener-DRPQKt-Q.js} +1 -1
- package/dist/browser/{boolean-editor-SHR1RkFd.js → boolean-editor-B4geQ7PH.js} +7 -7
- package/dist/browser/bundle.json +51 -39
- package/dist/browser/{chunk-DFRW9JAK.js → chunk-BRl5Kkpd.js} +1 -1
- package/dist/browser/{classnames-D5RYoiaD.js → classnames-CCxYAYKJ.js} +2 -2
- package/dist/browser/{client-B-AFqibD.js → client-B7XtGJWm.js} +5 -5
- package/dist/browser/{data-BPNnd1Ub.js → data-C-4ggWJI.js} +565 -565
- package/dist/browser/{debug-overlay-Dm7tnN3s.js → debug-overlay-BygOMeRE.js} +9 -9
- package/dist/browser/{debug-ui-T7mEy9PT.js → debug-ui-CMv0d865.js} +7 -7
- package/dist/browser/{dist-Bxi6YEB1.js → dist-waqn7yPH.js} +6 -6
- package/dist/browser/exports-DNYbSw5O.js +1495 -0
- package/dist/browser/{favicon-CDOxAL2U.js → favicon-DzIGribB.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BBS0NAgY.js → fetch-retry.umd-BU4QgqQf.js} +5 -5
- package/dist/browser/{flex-CjUXae7J.js → flex-DV5_d5uA.js} +7 -7
- package/dist/browser/floorplan.loader-C6blBYy5.js +2885 -0
- package/dist/browser/{floorplan.ready-Vi6d8S_t.js → floorplan.ready-m2MeP7t6.js} +148 -145
- package/dist/browser/{fuse-B9KABHXb.js → fuse-eB0NJP2Y.js} +2 -2
- package/dist/browser/index.js +61 -10535
- package/dist/browser/is-debug-DNx7lu9r.js +5901 -0
- package/dist/browser/{jsx-runtime-EyUcoQPo.js → jsx-runtime-Dx6Zx-sv.js} +2 -2
- package/dist/browser/{lib-DCBNlykb.js → lib-BqFjGC1G.js} +5 -5
- package/dist/browser/{main-DoISipn5.js → main-6qqL0RDN.js} +1 -1
- package/dist/browser/mobx-DSw3E2kR.js +24 -0
- package/dist/browser/{particles.min-CBF3r8H5.js → particles.min-Ba1191wA.js} +2 -2
- package/dist/browser/{prop-types-bwVnWQ95.js → prop-types-Cq4o6XvT.js} +2 -2
- package/dist/browser/react-DgeLxkYu.js +301 -0
- package/dist/browser/{react-dom-DNErX4mG.js → react-dom-Beeufw5z.js} +4 -4
- package/dist/browser/{reset-all-settings-BP45RcR6.js → reset-all-settings-D5a3_fuL.js} +1 -1
- package/dist/browser/{settings-Dbk4UG1-.js → settings-R89Rs7v3.js} +7 -7
- package/dist/browser/{src-C46xGkrC.js → src-Cq6JROJE.js} +5 -5
- package/dist/browser/{store-COH1sU9Z.js → store-Csjg3ohh.js} +3047 -3017
- package/dist/browser/{ui-CmIShfKe.js → ui-DZGXCYdz.js} +7 -7
- package/dist/esm/components/Controls.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/Free.js +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/PermissionNotice/PermissionNotice.d.ts +1 -0
- package/dist/esm/components/PermissionNotice/PermissionNotice.js +1 -1
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/store/UIState.d.ts +1 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/tools/expofpUrl.d.ts +7 -0
- package/dist/esm/tools/expofpUrl.js +1 -0
- package/dist/esm/tools/freeBanner.d.ts +5 -0
- package/dist/esm/tools/freeBanner.js +1 -0
- package/dist/esm/tools/intercom.d.ts +12 -0
- package/dist/esm/tools/intercom.js +19 -0
- package/package.json +3 -3
- package/dist/browser/Free-BnsFOhog.js +0 -65
- package/dist/browser/ShowKiosk-CWHtQFiJ.js +0 -25
- package/dist/browser/mobx-DezH6kY5.js +0 -23
|
@@ -1,54 +1,57 @@
|
|
|
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.0
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.1.0" };
|
|
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] = "b567df44-5ef9-4b97-b8ec-6828974fbf8f", e._sentryDebugIdIdentifier = "sentry-dbid-b567df44-5ef9-4b97-b8ec-6828974fbf8f");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
9
|
+
import { r as e } from "./chunk-BRl5Kkpd.js";
|
|
10
|
+
import { Et as t, a as n, ct as r, dt as i, o as a, st as o, y as s } from "./is-debug-DNx7lu9r.js";
|
|
11
|
+
import { a as c, i as l, n as u, r as d, t as f } from "./floorplan.loader-C6blBYy5.js";
|
|
12
|
+
import { S as p, T as m, X as ee, ft as h, i as te, n as ne, x as re } from "./exports-DNYbSw5O.js";
|
|
13
|
+
import { t as ie } from "./react-DgeLxkYu.js";
|
|
14
|
+
import { t as ae } from "./client-B7XtGJWm.js";
|
|
15
|
+
import { t as oe } from "./jsx-runtime-Dx6Zx-sv.js";
|
|
16
|
+
import { $ as se, C as ce, F as g, Gn as _, N as le, Nn as v, P as y, S as ue, _ as de, 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-Csjg3ohh.js";
|
|
17
|
+
import { i as ve } from "./CookieConsent-Dmv0fV6C.js";
|
|
15
18
|
//#region ../../node_modules/.pnpm/@sentry+browser@10.34.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
|
|
16
|
-
function
|
|
17
|
-
let t =
|
|
19
|
+
function w(e = {}) {
|
|
20
|
+
let t = d.document, n = (t == null ? void 0 : t.head) || (t == null ? void 0 : t.body);
|
|
18
21
|
if (!n) {
|
|
19
|
-
|
|
22
|
+
u && h.error("[showReportDialog] Global document not defined");
|
|
20
23
|
return;
|
|
21
24
|
}
|
|
22
|
-
let r =
|
|
25
|
+
let r = p(), i = re(), a = i == null ? void 0 : i.getDsn();
|
|
23
26
|
if (!a) {
|
|
24
|
-
|
|
27
|
+
u && h.error("[showReportDialog] DSN not configured");
|
|
25
28
|
return;
|
|
26
29
|
}
|
|
27
|
-
let
|
|
30
|
+
let o = {
|
|
28
31
|
...e,
|
|
29
32
|
user: {
|
|
30
33
|
...r.getUser(),
|
|
31
34
|
...e.user
|
|
32
35
|
},
|
|
33
36
|
eventId: e.eventId || te()
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
let { onLoad:
|
|
37
|
-
if (
|
|
37
|
+
}, s = d.document.createElement("script");
|
|
38
|
+
s.async = !0, s.crossOrigin = "anonymous", s.src = l(a, o);
|
|
39
|
+
let { onLoad: c, onClose: f } = o;
|
|
40
|
+
if (c && (s.onload = c), f) {
|
|
38
41
|
let e = (t) => {
|
|
39
42
|
if (t.data === "__sentry_reportdialog_closed__") try {
|
|
40
|
-
|
|
43
|
+
f();
|
|
41
44
|
} finally {
|
|
42
|
-
|
|
45
|
+
d.removeEventListener("message", e);
|
|
43
46
|
}
|
|
44
47
|
};
|
|
45
|
-
|
|
48
|
+
d.addEventListener("message", e);
|
|
46
49
|
}
|
|
47
|
-
n.appendChild(
|
|
50
|
+
n.appendChild(s);
|
|
48
51
|
}
|
|
49
52
|
//#endregion
|
|
50
53
|
//#region ../../node_modules/.pnpm/@sentry+react@10.34.0_react@19.2.4/node_modules/@sentry/react/build/esm/error.js
|
|
51
|
-
var T = /* @__PURE__ */ e(
|
|
54
|
+
var T = /* @__PURE__ */ e(ie());
|
|
52
55
|
function ye(e) {
|
|
53
56
|
let t = e.match(/^([^.]+)/);
|
|
54
57
|
return t !== null && parseInt(t[0]) >= 17;
|
|
@@ -64,11 +67,11 @@ function be(e, t) {
|
|
|
64
67
|
r(e, t);
|
|
65
68
|
}
|
|
66
69
|
function xe(e, { componentStack: t }, n) {
|
|
67
|
-
if (ye(T.version) &&
|
|
70
|
+
if (ye(T.version) && ee(e) && t) {
|
|
68
71
|
let n = Error(e.message);
|
|
69
72
|
n.name = `React ErrorBoundary ${e.name}`, n.stack = t, be(e, n);
|
|
70
73
|
}
|
|
71
|
-
return
|
|
74
|
+
return m((r) => (r.setContext("react", { componentStack: t }), ne(e, n)));
|
|
72
75
|
}
|
|
73
76
|
//#endregion
|
|
74
77
|
//#region ../../node_modules/.pnpm/@sentry+react@10.34.0_react@19.2.4/node_modules/@sentry/react/build/esm/debug-build.js
|
|
@@ -79,9 +82,9 @@ var Se = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
|
|
|
79
82
|
}, Ce = class extends T.Component {
|
|
80
83
|
constructor(e) {
|
|
81
84
|
super(e), this.state = E, this._openFallbackReportDialog = !0;
|
|
82
|
-
let t =
|
|
85
|
+
let t = re();
|
|
83
86
|
t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
|
|
84
|
-
!t.type && this._lastEventId && t.event_id === this._lastEventId &&
|
|
87
|
+
!t.type && this._lastEventId && t.event_id === this._lastEventId && w({
|
|
85
88
|
...e.dialogOptions,
|
|
86
89
|
eventId: this._lastEventId
|
|
87
90
|
});
|
|
@@ -89,13 +92,13 @@ var Se = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
|
|
|
89
92
|
}
|
|
90
93
|
componentDidCatch(e, t) {
|
|
91
94
|
let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
|
|
92
|
-
|
|
95
|
+
m((s) => {
|
|
93
96
|
r && r(s, e, n);
|
|
94
97
|
let c = xe(e, t, { mechanism: {
|
|
95
98
|
handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
|
|
96
99
|
type: "auto.function.react.error_boundary"
|
|
97
100
|
} });
|
|
98
|
-
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog &&
|
|
101
|
+
i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && w({
|
|
99
102
|
...o,
|
|
100
103
|
eventId: c
|
|
101
104
|
})), this.setState({
|
|
@@ -126,9 +129,9 @@ var Se = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
|
|
|
126
129
|
resetError: () => this.resetErrorBoundary(),
|
|
127
130
|
eventId: n.eventId
|
|
128
131
|
}) : e;
|
|
129
|
-
return T.isValidElement(r) ? r : (e && Se &&
|
|
132
|
+
return T.isValidElement(r) ? r : (e && Se && h.warn("fallback did not produce a valid ReactElement"), null);
|
|
130
133
|
}
|
|
131
|
-
}, we = ae(), Te =
|
|
134
|
+
}, we = ae(), Te = he();
|
|
132
135
|
function Ee() {
|
|
133
136
|
D("floorplan"), D("__data"), D("__dataUrlBase"), D("__searchi"), D("__wfData"), D("__mobxGlobals"), D("__store"), D("__mobxInstanceCount");
|
|
134
137
|
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && D(e);
|
|
@@ -189,7 +192,7 @@ function O(e) {
|
|
|
189
192
|
entity: e.entity,
|
|
190
193
|
isEnded: e.isEnded
|
|
191
194
|
};
|
|
192
|
-
case
|
|
195
|
+
case o: return {
|
|
193
196
|
id: e.id,
|
|
194
197
|
name: A(e.name),
|
|
195
198
|
entity: e.entity
|
|
@@ -250,16 +253,16 @@ var M = class extends Error {
|
|
|
250
253
|
constructor() {
|
|
251
254
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
252
255
|
}
|
|
253
|
-
},
|
|
254
|
-
function
|
|
255
|
-
return e && Object.assign(
|
|
256
|
+
}, Oe = {};
|
|
257
|
+
function N(e) {
|
|
258
|
+
return e && Object.assign(Oe, e), Oe;
|
|
256
259
|
}
|
|
257
260
|
//#endregion
|
|
258
261
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js
|
|
259
|
-
function
|
|
262
|
+
function ke(e, t) {
|
|
260
263
|
return typeof t == "bigint" ? t.toString() : t;
|
|
261
264
|
}
|
|
262
|
-
function
|
|
265
|
+
function Ae(e) {
|
|
263
266
|
return { get value() {
|
|
264
267
|
{
|
|
265
268
|
let t = e();
|
|
@@ -268,16 +271,16 @@ function ke(e) {
|
|
|
268
271
|
throw Error("cached value already set");
|
|
269
272
|
} };
|
|
270
273
|
}
|
|
271
|
-
function
|
|
274
|
+
function je(e) {
|
|
272
275
|
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
273
276
|
return e.slice(t, n);
|
|
274
277
|
}
|
|
275
|
-
var
|
|
276
|
-
function
|
|
278
|
+
var Me = Symbol("evaluating");
|
|
279
|
+
function P(e, t, n) {
|
|
277
280
|
let r;
|
|
278
281
|
Object.defineProperty(e, t, {
|
|
279
282
|
get() {
|
|
280
|
-
if (r !==
|
|
283
|
+
if (r !== Me) return r === void 0 && (r = Me, r = n()), r;
|
|
281
284
|
},
|
|
282
285
|
set(n) {
|
|
283
286
|
Object.defineProperty(e, t, { value: n });
|
|
@@ -285,15 +288,15 @@ function I(e, t, n) {
|
|
|
285
288
|
configurable: !0
|
|
286
289
|
});
|
|
287
290
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
291
|
+
var F = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
292
|
+
function Ne(e) {
|
|
290
293
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
291
294
|
}
|
|
292
|
-
function
|
|
295
|
+
function Pe(e, t, n) {
|
|
293
296
|
let r = new e._zod.constr(t == null ? e._zod.def : t);
|
|
294
297
|
return (!t || n != null && n.parent) && (r._zod.parent = e), r;
|
|
295
298
|
}
|
|
296
|
-
function
|
|
299
|
+
function I(e) {
|
|
297
300
|
let t = e;
|
|
298
301
|
if (!t) return {};
|
|
299
302
|
if (typeof t == "string") return { error: () => t };
|
|
@@ -306,11 +309,11 @@ function R(e) {
|
|
|
306
309
|
error: () => t.error
|
|
307
310
|
} : t;
|
|
308
311
|
}
|
|
309
|
-
function
|
|
312
|
+
function Fe(e) {
|
|
310
313
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
311
314
|
}
|
|
312
315
|
-Number.MAX_VALUE, Number.MAX_VALUE;
|
|
313
|
-
function
|
|
316
|
+
function L(e, t = 0) {
|
|
314
317
|
if (e.aborted === !0) return !0;
|
|
315
318
|
for (let r = t; r < e.issues.length; r++) {
|
|
316
319
|
var n;
|
|
@@ -318,16 +321,16 @@ function z(e, t = 0) {
|
|
|
318
321
|
}
|
|
319
322
|
return !1;
|
|
320
323
|
}
|
|
321
|
-
function
|
|
324
|
+
function R(e, t) {
|
|
322
325
|
return t.map((t) => {
|
|
323
326
|
var n;
|
|
324
327
|
return (n = t).path != null || (n.path = []), t.path.unshift(e), t;
|
|
325
328
|
});
|
|
326
329
|
}
|
|
327
|
-
function
|
|
330
|
+
function z(e) {
|
|
328
331
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
329
332
|
}
|
|
330
|
-
function
|
|
333
|
+
function B(e, t, n) {
|
|
331
334
|
var r;
|
|
332
335
|
let i = {
|
|
333
336
|
...e,
|
|
@@ -335,11 +338,11 @@ function V(e, t, n) {
|
|
|
335
338
|
};
|
|
336
339
|
if (!e.message) {
|
|
337
340
|
var a, o, s, c, l, u, d, f, p;
|
|
338
|
-
i.message = (a = (o = (s = (c =
|
|
341
|
+
i.message = (a = (o = (s = (c = z((l = e.inst) == null || (l = l._zod.def) == null || (u = l.error) == null ? void 0 : u.call(l, e))) == null ? z(t == null || (d = t.error) == null ? void 0 : d.call(t, e)) : c) == null ? z((f = n.customError) == null ? void 0 : f.call(n, e)) : s) == null ? z((p = n.localeError) == null ? void 0 : p.call(n, e)) : o) == null ? "Invalid input" : a;
|
|
339
342
|
}
|
|
340
343
|
return delete i.inst, delete i.continue, t != null && t.reportInput || delete i.input, i;
|
|
341
344
|
}
|
|
342
|
-
function
|
|
345
|
+
function Ie(...e) {
|
|
343
346
|
let [t, n, r] = e;
|
|
344
347
|
return typeof t == "string" ? {
|
|
345
348
|
message: t,
|
|
@@ -350,18 +353,18 @@ function Fe(...e) {
|
|
|
350
353
|
}
|
|
351
354
|
//#endregion
|
|
352
355
|
//#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js
|
|
353
|
-
var
|
|
356
|
+
var V = (e, t) => {
|
|
354
357
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
355
358
|
value: e._zod,
|
|
356
359
|
enumerable: !1
|
|
357
360
|
}), Object.defineProperty(e, "issues", {
|
|
358
361
|
value: t,
|
|
359
362
|
enumerable: !1
|
|
360
|
-
}), e.message = JSON.stringify(t,
|
|
363
|
+
}), e.message = JSON.stringify(t, ke, 2), Object.defineProperty(e, "toString", {
|
|
361
364
|
value: () => e.message,
|
|
362
365
|
enumerable: !1
|
|
363
366
|
});
|
|
364
|
-
}, Le = j("$ZodError",
|
|
367
|
+
}, Le = j("$ZodError", V), H = j("$ZodError", V, { Parent: Error }), Re = /* @__PURE__ */ ((e) => (t, n, r, i) => {
|
|
365
368
|
let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
|
|
366
369
|
value: n,
|
|
367
370
|
issues: []
|
|
@@ -369,8 +372,8 @@ var Ie = (e, t) => {
|
|
|
369
372
|
if (o instanceof Promise) throw new M();
|
|
370
373
|
if (o.issues.length) {
|
|
371
374
|
var s;
|
|
372
|
-
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) =>
|
|
373
|
-
throw
|
|
375
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => B(e, a, N())));
|
|
376
|
+
throw F(t, i == null ? void 0 : i.callee), t;
|
|
374
377
|
}
|
|
375
378
|
return o.value;
|
|
376
379
|
})(H), ze = /* @__PURE__ */ ((e) => async (t, n, r, i) => {
|
|
@@ -380,8 +383,8 @@ var Ie = (e, t) => {
|
|
|
380
383
|
}, a);
|
|
381
384
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
382
385
|
var s;
|
|
383
|
-
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) =>
|
|
384
|
-
throw
|
|
386
|
+
let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => B(e, a, N())));
|
|
387
|
+
throw F(t, i == null ? void 0 : i.callee), t;
|
|
385
388
|
}
|
|
386
389
|
return o.value;
|
|
387
390
|
})(H), Be = /* @__PURE__ */ ((e) => (t, n, r) => {
|
|
@@ -395,7 +398,7 @@ var Ie = (e, t) => {
|
|
|
395
398
|
if (a instanceof Promise) throw new M();
|
|
396
399
|
return a.issues.length ? {
|
|
397
400
|
success: !1,
|
|
398
|
-
error: new (e == null ? Le : e)(a.issues.map((e) =>
|
|
401
|
+
error: new (e == null ? Le : e)(a.issues.map((e) => B(e, i, N())))
|
|
399
402
|
} : {
|
|
400
403
|
success: !0,
|
|
401
404
|
data: a.value
|
|
@@ -407,7 +410,7 @@ var Ie = (e, t) => {
|
|
|
407
410
|
}, i);
|
|
408
411
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
409
412
|
success: !1,
|
|
410
|
-
error: new e(a.issues.map((e) =>
|
|
413
|
+
error: new e(a.issues.map((e) => B(e, i, N())))
|
|
411
414
|
} : {
|
|
412
415
|
success: !0,
|
|
413
416
|
data: a.value
|
|
@@ -436,7 +439,7 @@ var Ie = (e, t) => {
|
|
|
436
439
|
});
|
|
437
440
|
} else {
|
|
438
441
|
let t = (e, t, n) => {
|
|
439
|
-
let r =
|
|
442
|
+
let r = L(e), i;
|
|
440
443
|
for (let o of t) {
|
|
441
444
|
if (o._zod.def.when) {
|
|
442
445
|
if (!o._zod.def.when(e)) continue;
|
|
@@ -446,16 +449,16 @@ var Ie = (e, t) => {
|
|
|
446
449
|
if (i || s instanceof Promise) {
|
|
447
450
|
var a;
|
|
448
451
|
i = ((a = i) == null ? Promise.resolve() : a).then(async () => {
|
|
449
|
-
await s, e.issues.length !== t && (r || (r =
|
|
452
|
+
await s, e.issues.length !== t && (r || (r = L(e, t)));
|
|
450
453
|
});
|
|
451
454
|
} else {
|
|
452
455
|
if (e.issues.length === t) continue;
|
|
453
|
-
r || (r =
|
|
456
|
+
r || (r = L(e, t));
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
459
|
return i ? i.then(() => e) : e;
|
|
457
460
|
}, n = (n, r, a) => {
|
|
458
|
-
if (
|
|
461
|
+
if (L(n)) return n.aborted = !0, n;
|
|
459
462
|
let o = t(r, i, a);
|
|
460
463
|
if (o instanceof Promise) {
|
|
461
464
|
if (a.async === !1) throw new M();
|
|
@@ -483,7 +486,7 @@ var Ie = (e, t) => {
|
|
|
483
486
|
return t(o, i, a);
|
|
484
487
|
};
|
|
485
488
|
}
|
|
486
|
-
|
|
489
|
+
P(e, "~standard", () => ({
|
|
487
490
|
validate: (t) => {
|
|
488
491
|
try {
|
|
489
492
|
var n;
|
|
@@ -538,7 +541,7 @@ var Ie = (e, t) => {
|
|
|
538
541
|
}), t);
|
|
539
542
|
});
|
|
540
543
|
function Ye(e, t, n) {
|
|
541
|
-
e.issues.length && t.issues.push(...
|
|
544
|
+
e.issues.length && t.issues.push(...R(n, e.issues)), t.value[n] = e.value;
|
|
542
545
|
}
|
|
543
546
|
var Xe = /* @__PURE__ */ j("$ZodArray", (e, t) => {
|
|
544
547
|
U.init(e, t), e._zod.parse = (n, r) => {
|
|
@@ -564,7 +567,7 @@ var Xe = /* @__PURE__ */ j("$ZodArray", (e, t) => {
|
|
|
564
567
|
function W(e, t, n, r, i) {
|
|
565
568
|
if (e.issues.length) {
|
|
566
569
|
if (i && !(n in r)) return;
|
|
567
|
-
t.issues.push(...
|
|
570
|
+
t.issues.push(...R(n, e.issues));
|
|
568
571
|
}
|
|
569
572
|
e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
570
573
|
}
|
|
@@ -574,7 +577,7 @@ function Ze(e) {
|
|
|
574
577
|
var n;
|
|
575
578
|
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`);
|
|
576
579
|
}
|
|
577
|
-
let r =
|
|
580
|
+
let r = Fe(e.shape);
|
|
578
581
|
return {
|
|
579
582
|
...e,
|
|
580
583
|
keys: t,
|
|
@@ -614,8 +617,8 @@ var $e = /* @__PURE__ */ j("$ZodObject", (e, t) => {
|
|
|
614
617
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
615
618
|
} });
|
|
616
619
|
}
|
|
617
|
-
let r =
|
|
618
|
-
|
|
620
|
+
let r = Ae(() => Ze(t));
|
|
621
|
+
P(e._zod, "propValues", () => {
|
|
619
622
|
let e = t.shape, n = {};
|
|
620
623
|
for (let t in e) {
|
|
621
624
|
let r = e[t]._zod;
|
|
@@ -626,7 +629,7 @@ var $e = /* @__PURE__ */ j("$ZodObject", (e, t) => {
|
|
|
626
629
|
}
|
|
627
630
|
return n;
|
|
628
631
|
});
|
|
629
|
-
let i =
|
|
632
|
+
let i = Ne, a = t.catchall, o;
|
|
630
633
|
e._zod.parse = (t, n) => {
|
|
631
634
|
o != null || (o = r.value);
|
|
632
635
|
let s = t.value;
|
|
@@ -655,9 +658,9 @@ function et(e, t) {
|
|
|
655
658
|
} : e;
|
|
656
659
|
}
|
|
657
660
|
var tt = /* @__PURE__ */ j("$ZodOptional", (e, t) => {
|
|
658
|
-
U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional",
|
|
661
|
+
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", () => {
|
|
659
662
|
let e = t.innerType._zod.pattern;
|
|
660
|
-
return e ? RegExp(`^(${
|
|
663
|
+
return e ? RegExp(`^(${je(e.source)})?$`) : void 0;
|
|
661
664
|
}), e._zod.parse = (e, n) => {
|
|
662
665
|
if (t.innerType._zod.optin === "optional") {
|
|
663
666
|
let r = t.innerType._zod.run(e, n);
|
|
@@ -682,7 +685,7 @@ function rt(e, t, n, r) {
|
|
|
682
685
|
path: [...(i = r._zod.def.path) == null ? [] : i],
|
|
683
686
|
continue: !r._zod.def.abort
|
|
684
687
|
};
|
|
685
|
-
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(
|
|
688
|
+
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(Ie(e));
|
|
686
689
|
}
|
|
687
690
|
}
|
|
688
691
|
//#endregion
|
|
@@ -691,7 +694,7 @@ function rt(e, t, n, r) {
|
|
|
691
694
|
function it(e, t) {
|
|
692
695
|
return new e({
|
|
693
696
|
type: "string",
|
|
694
|
-
...
|
|
697
|
+
...I(t)
|
|
695
698
|
});
|
|
696
699
|
}
|
|
697
700
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -699,14 +702,14 @@ function at(e, t) {
|
|
|
699
702
|
return new e({
|
|
700
703
|
type: "number",
|
|
701
704
|
checks: [],
|
|
702
|
-
...
|
|
705
|
+
...I(t)
|
|
703
706
|
});
|
|
704
707
|
}
|
|
705
708
|
/* @__NO_SIDE_EFFECTS__ */
|
|
706
709
|
function ot(e, t) {
|
|
707
710
|
return new e({
|
|
708
711
|
type: "never",
|
|
709
|
-
...
|
|
712
|
+
...I(t)
|
|
710
713
|
});
|
|
711
714
|
}
|
|
712
715
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -715,7 +718,7 @@ function st(e, t, n) {
|
|
|
715
718
|
type: "custom",
|
|
716
719
|
check: "custom",
|
|
717
720
|
fn: t,
|
|
718
|
-
...
|
|
721
|
+
...I(n)
|
|
719
722
|
});
|
|
720
723
|
}
|
|
721
724
|
//#endregion
|
|
@@ -732,7 +735,7 @@ var G = /* @__PURE__ */ j("ZodMiniType", (e, t) => {
|
|
|
732
735
|
onattach: []
|
|
733
736
|
} } : e)]
|
|
734
737
|
}, { parent: !0 });
|
|
735
|
-
}, e.with = e.check, e.clone = (t, n) =>
|
|
738
|
+
}, e.with = e.check, e.clone = (t, n) => Pe(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
|
|
736
739
|
}), ct = /* @__PURE__ */ j("ZodMiniString", (e, t) => {
|
|
737
740
|
Ke.init(e, t), G.init(e, t);
|
|
738
741
|
});
|
|
@@ -762,11 +765,11 @@ function mt(e, t) {
|
|
|
762
765
|
return new pt({
|
|
763
766
|
type: "array",
|
|
764
767
|
element: e,
|
|
765
|
-
...
|
|
768
|
+
...I(t)
|
|
766
769
|
});
|
|
767
770
|
}
|
|
768
771
|
var ht = /* @__PURE__ */ j("ZodMiniObject", (e, t) => {
|
|
769
|
-
$e.init(e, t), G.init(e, t),
|
|
772
|
+
$e.init(e, t), G.init(e, t), P(e, "shape", () => t.shape);
|
|
770
773
|
});
|
|
771
774
|
/* @__NO_SIDE_EFFECTS__ */
|
|
772
775
|
function q(e, t) {
|
|
@@ -774,7 +777,7 @@ function q(e, t) {
|
|
|
774
777
|
type: "object",
|
|
775
778
|
shape: e,
|
|
776
779
|
catchall: /* @__PURE__ */ ft(),
|
|
777
|
-
...
|
|
780
|
+
...I(t)
|
|
778
781
|
});
|
|
779
782
|
}
|
|
780
783
|
var gt = /* @__PURE__ */ j("ZodMiniOptional", (e, t) => {
|
|
@@ -791,34 +794,34 @@ var _t = /* @__PURE__ */ j("ZodMiniCustom", (e, t) => {
|
|
|
791
794
|
nt.init(e, t), G.init(e, t);
|
|
792
795
|
});
|
|
793
796
|
/* @__NO_SIDE_EFFECTS__ */
|
|
794
|
-
function
|
|
797
|
+
function Y(e, t = {}) {
|
|
795
798
|
return /* @__PURE__ */ st(_t, e, t);
|
|
796
799
|
}
|
|
797
800
|
//#endregion
|
|
798
801
|
//#region src/schemas/sdk.schemas.ts
|
|
799
|
-
var
|
|
802
|
+
var vt = /* @__PURE__ */ q({
|
|
800
803
|
x: /* @__PURE__ */ K(),
|
|
801
804
|
y: /* @__PURE__ */ K()
|
|
802
|
-
}),
|
|
803
|
-
leftTop:
|
|
804
|
-
rightBottom:
|
|
805
|
-
}),
|
|
805
|
+
}), yt = /* @__PURE__ */ q({
|
|
806
|
+
leftTop: vt,
|
|
807
|
+
rightBottom: vt
|
|
808
|
+
}), bt = (/* @__PURE__ */ q({
|
|
806
809
|
name: /* @__PURE__ */ J(/* @__PURE__ */ lt()),
|
|
807
810
|
externalId: /* @__PURE__ */ J(/* @__PURE__ */ lt())
|
|
808
|
-
})).check(/* @__PURE__ */
|
|
809
|
-
booths: /* @__PURE__ */ J(/* @__PURE__ */ mt(
|
|
810
|
-
exhibitors: /* @__PURE__ */ J(/* @__PURE__ */ mt(
|
|
811
|
-
})).check(/* @__PURE__ */
|
|
811
|
+
})).check(/* @__PURE__ */ Y((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), xt = (/* @__PURE__ */ q({
|
|
812
|
+
booths: /* @__PURE__ */ J(/* @__PURE__ */ mt(bt)),
|
|
813
|
+
exhibitors: /* @__PURE__ */ J(/* @__PURE__ */ mt(bt))
|
|
814
|
+
})).check(/* @__PURE__ */ Y((e) => {
|
|
812
815
|
var t, n;
|
|
813
816
|
return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
|
|
814
|
-
}, "Selector must contain booths or exhibitors")),
|
|
815
|
-
function
|
|
817
|
+
}, "Selector must contain booths or exhibitors")), St = /* @__PURE__ */ J(/* @__PURE__ */ q({ padding: /* @__PURE__ */ J(/* @__PURE__ */ K()) })), Ct = /* @__PURE__ */ e(t(), 1), wt = 100, Tt = -.01;
|
|
818
|
+
function Et(e) {
|
|
816
819
|
let t = new Map(e), n = Array.from(t.keys());
|
|
817
820
|
if (n.length <= 2) return n;
|
|
818
|
-
let r =
|
|
819
|
-
return r.length < 4 ? r :
|
|
821
|
+
let r = Dt(n, t);
|
|
822
|
+
return r.length < 4 ? r : Ot(r, t);
|
|
820
823
|
}
|
|
821
|
-
function
|
|
824
|
+
function Dt(e, t) {
|
|
822
825
|
let n = [e[0]], r = new Set(e);
|
|
823
826
|
r.delete(e[0]);
|
|
824
827
|
let i = e[0];
|
|
@@ -833,13 +836,13 @@ function Ot(e, t) {
|
|
|
833
836
|
}
|
|
834
837
|
return n;
|
|
835
838
|
}
|
|
836
|
-
function
|
|
839
|
+
function Ot(e, t) {
|
|
837
840
|
let n = [...e], r = !0;
|
|
838
|
-
for (let e = 0; r && e <
|
|
841
|
+
for (let e = 0; r && e < wt; e++) {
|
|
839
842
|
r = !1;
|
|
840
843
|
scan: for (let e = 1; e < n.length - 2; e++) for (let i = e + 1; i < n.length - 1; i++) {
|
|
841
844
|
let a = t.get(n[e - 1]), o = t.get(n[e]), s = t.get(n[i]), c = t.get(n[i + 1]);
|
|
842
|
-
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)) <
|
|
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)) < Tt) {
|
|
843
846
|
for (let t = e, r = i; t < r; t++, r--) [n[t], n[r]] = [n[r], n[t]];
|
|
844
847
|
r = !0;
|
|
845
848
|
break scan;
|
|
@@ -850,17 +853,17 @@ function kt(e, t) {
|
|
|
850
853
|
}
|
|
851
854
|
//#endregion
|
|
852
855
|
//#region src/floorplan.ready.tsx
|
|
853
|
-
var
|
|
856
|
+
var X = oe(), Z = (0, Ct.default)("efp:api");
|
|
854
857
|
(0, Te.install)();
|
|
855
|
-
var
|
|
858
|
+
var kt = class extends f {
|
|
856
859
|
constructor(...e) {
|
|
857
860
|
super(...e), this.root = void 0;
|
|
858
861
|
}
|
|
859
862
|
init() {
|
|
860
|
-
this.ignoreQuery ||
|
|
863
|
+
this.ignoreQuery || ce(this.offHistory), pe("load"), b.fp = this, ge(this.allowConsent), de(S.Load, ""), this.root = (0, we.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(Ce, { children: /* @__PURE__ */ (0, X.jsx)(ve, {
|
|
861
864
|
offHistory: this.offHistory,
|
|
862
865
|
allowConsent: this.allowConsent
|
|
863
|
-
}) })),
|
|
866
|
+
}) })), de(S.Rendered, ""), s(() => b.layerStore.layersLoaded, () => {
|
|
864
867
|
if (this.resolveReady(), !b.initialized) {
|
|
865
868
|
var e;
|
|
866
869
|
(e = this.onInit) == null || e.call(this, this);
|
|
@@ -913,7 +916,7 @@ var At = class extends ne {
|
|
|
913
916
|
}
|
|
914
917
|
highlightEntities(e) {
|
|
915
918
|
Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
|
|
916
|
-
let { boothExternalIds: t, exhibitorExternalIds: n } =
|
|
919
|
+
let { boothExternalIds: t, exhibitorExternalIds: n } = g(e);
|
|
917
920
|
b.boothStore.highlightedByExternalIds = [...t], b.exhibitorStore.highlightedByExternalIds = [...n];
|
|
918
921
|
}
|
|
919
922
|
selectRoute(e, t) {
|
|
@@ -924,15 +927,15 @@ var At = class extends ne {
|
|
|
924
927
|
$("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
|
|
925
928
|
return;
|
|
926
929
|
}
|
|
927
|
-
b.routeStore.selectRoute(new
|
|
930
|
+
b.routeStore.selectRoute(new le(Q(n), Q(r), t.map(Q)));
|
|
928
931
|
return;
|
|
929
932
|
}
|
|
930
|
-
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), b.routeStore.selectRoute(new
|
|
933
|
+
e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), b.routeStore.selectRoute(new le(Q(e), Q(t)));
|
|
931
934
|
}
|
|
932
935
|
getOptimizedRoutes(e) {
|
|
933
936
|
if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
|
|
934
937
|
if (e.length > 8) throw Error("The maximum number of waypoints is 8.");
|
|
935
|
-
let t = e.map(
|
|
938
|
+
let t = e.map(Q).filter((e) => !!e);
|
|
936
939
|
if (!t.length) throw Error("No booths found for the provided waypoints.");
|
|
937
940
|
let n = /* @__PURE__ */ new Map();
|
|
938
941
|
for (let e of t) {
|
|
@@ -940,14 +943,14 @@ var At = class extends ne {
|
|
|
940
943
|
let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
|
|
941
944
|
a ? a.push(e) : n.set(t, [e]);
|
|
942
945
|
}
|
|
943
|
-
return Array.from(n.values()).map((e) => ({ waypoints:
|
|
946
|
+
return Array.from(n.values()).map((e) => ({ waypoints: Et(e.map((e) => [e.name, {
|
|
944
947
|
cx: e.rect.cx,
|
|
945
948
|
cy: e.rect.cy
|
|
946
949
|
}])) }));
|
|
947
950
|
}
|
|
948
951
|
selectCurrentPosition(e, t, n) {
|
|
949
952
|
var r;
|
|
950
|
-
let i =
|
|
953
|
+
let i = C(e.x) && C(e.y), a = C(e.lng) && C(e.lat);
|
|
951
954
|
!i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), b.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
|
|
952
955
|
}
|
|
953
956
|
setBookmarks(e) {
|
|
@@ -971,7 +974,7 @@ var At = class extends ne {
|
|
|
971
974
|
$("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
|
|
972
975
|
return;
|
|
973
976
|
}
|
|
974
|
-
let r =
|
|
977
|
+
let r = v("bookmarked"), i = {
|
|
975
978
|
exhibitor: {
|
|
976
979
|
existingIds: new Set(r.exhibitors || []),
|
|
977
980
|
finder: (e) => b.exhibitorStore.findExhibitor(e),
|
|
@@ -1013,7 +1016,7 @@ var At = class extends ne {
|
|
|
1013
1016
|
$("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
|
|
1014
1017
|
return;
|
|
1015
1018
|
}
|
|
1016
|
-
let r =
|
|
1019
|
+
let r = v("visited"), i = {
|
|
1017
1020
|
exhibitor: {
|
|
1018
1021
|
existingIds: new Set(r.exhibitors || []),
|
|
1019
1022
|
finder: (e) => b.exhibitorStore.findExhibitor(e),
|
|
@@ -1076,7 +1079,7 @@ var At = class extends ne {
|
|
|
1076
1079
|
b.selectCategory(n);
|
|
1077
1080
|
}
|
|
1078
1081
|
applyParameters(e) {
|
|
1079
|
-
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"),
|
|
1082
|
+
typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), _e(e);
|
|
1080
1083
|
}
|
|
1081
1084
|
getVisibility() {
|
|
1082
1085
|
return b.uiState.visibility;
|
|
@@ -1097,13 +1100,13 @@ var At = class extends ne {
|
|
|
1097
1100
|
b.mapboxStore.activateMapbox();
|
|
1098
1101
|
}
|
|
1099
1102
|
zoomTo(e, t) {
|
|
1100
|
-
|
|
1101
|
-
let n =
|
|
1103
|
+
Z("zoomTo called with selectors=%O options=%O", e, t);
|
|
1104
|
+
let n = xt.safeParse(e);
|
|
1102
1105
|
if (!n.success) {
|
|
1103
1106
|
$("zoomTo", n.error.message, "EFP001600");
|
|
1104
1107
|
return;
|
|
1105
1108
|
}
|
|
1106
|
-
let r =
|
|
1109
|
+
let r = St.safeParse(t);
|
|
1107
1110
|
if (!r.success) {
|
|
1108
1111
|
$("zoomTo", r.error.message, "EFP001601");
|
|
1109
1112
|
return;
|
|
@@ -1113,8 +1116,8 @@ var At = class extends ne {
|
|
|
1113
1116
|
}
|
|
1114
1117
|
getBounds(e) {
|
|
1115
1118
|
var t, n;
|
|
1116
|
-
|
|
1117
|
-
let r =
|
|
1119
|
+
Z("getBounds called with selectors=%O", e);
|
|
1120
|
+
let r = xt.safeParse(e);
|
|
1118
1121
|
if (!r.success) {
|
|
1119
1122
|
$("getBounds", r.error.message, "EFP001400");
|
|
1120
1123
|
return;
|
|
@@ -1130,7 +1133,7 @@ var At = class extends ne {
|
|
|
1130
1133
|
e.rect && i.push(e.rect);
|
|
1131
1134
|
});
|
|
1132
1135
|
}), i.length === 0) return;
|
|
1133
|
-
let a =
|
|
1136
|
+
let a = _.fromMultiple(i);
|
|
1134
1137
|
return {
|
|
1135
1138
|
leftTop: {
|
|
1136
1139
|
x: a.x1,
|
|
@@ -1143,16 +1146,16 @@ var At = class extends ne {
|
|
|
1143
1146
|
};
|
|
1144
1147
|
}
|
|
1145
1148
|
fitBounds(e, t) {
|
|
1146
|
-
if (
|
|
1149
|
+
if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
|
|
1147
1150
|
b.uiState.fitBounds();
|
|
1148
1151
|
return;
|
|
1149
1152
|
}
|
|
1150
|
-
let n =
|
|
1153
|
+
let n = yt.safeParse(e);
|
|
1151
1154
|
if (!n.success) {
|
|
1152
1155
|
$("fitBounds", n.error.message, "EFP001500");
|
|
1153
1156
|
return;
|
|
1154
1157
|
}
|
|
1155
|
-
let r =
|
|
1158
|
+
let r = St.safeParse(t);
|
|
1156
1159
|
if (!r.success) {
|
|
1157
1160
|
$("fitBounds", r.error.message, "EFP001501");
|
|
1158
1161
|
return;
|
|
@@ -1160,17 +1163,17 @@ var At = class extends ne {
|
|
|
1160
1163
|
let i;
|
|
1161
1164
|
if (t != null && t.padding) {
|
|
1162
1165
|
let n = t.padding;
|
|
1163
|
-
i =
|
|
1164
|
-
} else i =
|
|
1166
|
+
i = _.fromX1y1x2y2(e.leftTop.x - n, e.leftTop.y - n, e.rightBottom.x + n, e.rightBottom.y + n);
|
|
1167
|
+
} else i = _.fromX1y1x2y2(e.leftTop.x, e.leftTop.y, e.rightBottom.x, e.rightBottom.y);
|
|
1165
1168
|
b.uiState.moveToRect = i;
|
|
1166
1169
|
}
|
|
1167
1170
|
getBoothRect(e) {
|
|
1168
1171
|
var t;
|
|
1169
|
-
return typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00"), (t =
|
|
1172
|
+
return typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00"), (t = y(e)) == null ? void 0 : t.rect;
|
|
1170
1173
|
}
|
|
1171
1174
|
convertToGeo(e, t) {
|
|
1172
1175
|
var n;
|
|
1173
|
-
if (!(!(
|
|
1176
|
+
if (!(!(x == null || (n = x.properties) == null) && n.config)) {
|
|
1174
1177
|
$("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
|
|
1175
1178
|
return;
|
|
1176
1179
|
}
|
|
@@ -1178,11 +1181,11 @@ var At = class extends ne {
|
|
|
1178
1181
|
$("convertToGeo", "Both coordinates must be passed.", "EFP001001");
|
|
1179
1182
|
return;
|
|
1180
1183
|
}
|
|
1181
|
-
return se(e, t,
|
|
1184
|
+
return se(e, t, x.properties.config);
|
|
1182
1185
|
}
|
|
1183
1186
|
unstable_destroy() {
|
|
1184
1187
|
let e = window.__efpElement.firstChild;
|
|
1185
|
-
Ee(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error",
|
|
1188
|
+
Ee(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", c), ue(), 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();
|
|
1186
1189
|
}
|
|
1187
1190
|
search(e) {
|
|
1188
1191
|
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) => ({
|
|
@@ -1229,8 +1232,8 @@ var At = class extends ne {
|
|
|
1229
1232
|
}
|
|
1230
1233
|
showPathway(e, t) {
|
|
1231
1234
|
let n = new URLSearchParams();
|
|
1232
|
-
if (n.set(
|
|
1233
|
-
let { boothExternalIds: e, exhibitorExternalIds: r } =
|
|
1235
|
+
if (n.set(i, e), t != null && t.length) {
|
|
1236
|
+
let { boothExternalIds: e, exhibitorExternalIds: r } = g(t);
|
|
1234
1237
|
e.length > 0 && n.set("booths", e.join(",")), r.length > 0 && n.set("exhibitors", r.join(","));
|
|
1235
1238
|
}
|
|
1236
1239
|
this.applyParameters(n.toString());
|
|
@@ -1241,7 +1244,7 @@ var At = class extends ne {
|
|
|
1241
1244
|
if (i != null && i.rect || i != null && i.viewbox) {
|
|
1242
1245
|
var a;
|
|
1243
1246
|
let e = (a = i.viewbox) == null ? i.rect : a;
|
|
1244
|
-
b.uiState.moveToRect =
|
|
1247
|
+
b.uiState.moveToRect = _.fromX1y1x2y2(e.x1, e.y1, e.x2, e.y2);
|
|
1245
1248
|
}
|
|
1246
1249
|
}
|
|
1247
1250
|
hidePathways() {
|
|
@@ -1252,13 +1255,13 @@ var At = class extends ne {
|
|
|
1252
1255
|
}
|
|
1253
1256
|
changeLanguage(e) {
|
|
1254
1257
|
var t;
|
|
1255
|
-
let
|
|
1256
|
-
if (!
|
|
1257
|
-
$("changeLanguage", `Language "${e}" was not found. Available languages: ${
|
|
1258
|
+
let i = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
|
|
1259
|
+
if (!a(i)) {
|
|
1260
|
+
$("changeLanguage", `Language "${e}" was not found. Available languages: ${n().map((e) => e.id).join(",")}`, "EFP001300");
|
|
1258
1261
|
return;
|
|
1259
1262
|
}
|
|
1260
|
-
let
|
|
1261
|
-
|
|
1263
|
+
let o = new URLSearchParams();
|
|
1264
|
+
o.set(r, i), this.applyParameters(o.toString());
|
|
1262
1265
|
}
|
|
1263
1266
|
isGpsTrackingEnabled() {
|
|
1264
1267
|
return b.routeStore.gpsEnabled;
|
|
@@ -1279,27 +1282,27 @@ var At = class extends ne {
|
|
|
1279
1282
|
} else this.fitBounds();
|
|
1280
1283
|
}
|
|
1281
1284
|
};
|
|
1282
|
-
function
|
|
1283
|
-
return typeof e == "string" ?
|
|
1285
|
+
function Q(e) {
|
|
1286
|
+
return typeof e == "string" ? y(e) : b.routeStore.getNearestBooth(e);
|
|
1284
1287
|
}
|
|
1285
|
-
var
|
|
1288
|
+
var At = 0;
|
|
1286
1289
|
function $(e, t, n) {
|
|
1287
1290
|
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";
|
|
1288
1291
|
if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), b.fp.disableRuntimeAlerts) return;
|
|
1289
1292
|
b.uiState.setGlobalErrorMessage({
|
|
1290
1293
|
title: r,
|
|
1291
|
-
body: /* @__PURE__ */ (0,
|
|
1294
|
+
body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
|
|
1292
1295
|
i,
|
|
1293
1296
|
" ",
|
|
1294
|
-
/* @__PURE__ */ (0,
|
|
1297
|
+
/* @__PURE__ */ (0, X.jsx)("a", {
|
|
1295
1298
|
href: a,
|
|
1296
1299
|
target: "_blank",
|
|
1297
1300
|
children: a
|
|
1298
1301
|
})
|
|
1299
1302
|
] })
|
|
1300
|
-
}), clearTimeout(
|
|
1303
|
+
}), clearTimeout(At);
|
|
1301
1304
|
let o = 8e3;
|
|
1302
|
-
|
|
1305
|
+
At = window.setTimeout(() => {
|
|
1303
1306
|
let e = async () => {
|
|
1304
1307
|
b.uiState.globalErrorMessages.length > 0 && (b.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
|
|
1305
1308
|
};
|
|
@@ -1307,4 +1310,4 @@ function $(e, t, n) {
|
|
|
1307
1310
|
}, o);
|
|
1308
1311
|
}
|
|
1309
1312
|
//#endregion
|
|
1310
|
-
export {
|
|
1313
|
+
export { kt as default };
|