@expofp/floorplan 3.0.1 → 3.0.2

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.
Files changed (74) hide show
  1. package/dist/browser/CookieConsent-CXdWbmhr.js +7810 -0
  2. package/dist/browser/Debug-DoJ9mct3.js +51 -0
  3. package/dist/browser/Demo-BEQponkS.js +65 -0
  4. package/dist/browser/Free-UAsV9h8C.js +65 -0
  5. package/dist/browser/Gallery-BgXxqVXz.js +3257 -0
  6. package/dist/browser/GpsLoader-CgbTy8Hz.js +152 -0
  7. package/dist/browser/KioskStore-YLbphfOD.js +212 -0
  8. package/dist/browser/Mapbox-DpLJ3tpl.js +120 -0
  9. package/dist/browser/SetKioskMode-CN5fJClI.js +49 -0
  10. package/dist/browser/ShowKiosk-vj5-CuR5.js +25 -0
  11. package/dist/browser/ThreeComponent-jLYP_yNl.js +1493 -0
  12. package/dist/browser/TouchHand-BbwYQQhu.js +66 -0
  13. package/dist/browser/ViewerMenuPanel-4kghKIxV.js +106 -0
  14. package/dist/browser/add-debug-secret-listener-DM6KcZ0J.js +26 -0
  15. package/dist/browser/boolean-editor-BrtABJXb.js +206 -0
  16. package/dist/browser/bundle.json +70 -40
  17. package/dist/browser/chunk-CG6jx9YN.js +28 -0
  18. package/dist/browser/classnames-DeFT1CBt.js +39 -0
  19. package/dist/browser/client-B6hKytWh.js +7601 -0
  20. package/dist/browser/data-BsqGAaoU.js +27969 -0
  21. package/dist/browser/debug-overlay-Cb6jZH1M.js +3995 -0
  22. package/dist/browser/debug-ui-XBqahA1W.js +86 -0
  23. package/dist/browser/dist-BcuX1Cs2.js +2581 -0
  24. package/dist/browser/favicon-Caa4UHOv.js +12 -0
  25. package/dist/browser/fetch-retry.umd-D6o13_3S.js +78 -0
  26. package/dist/browser/flex-glIwYu7S.js +1045 -0
  27. package/dist/browser/floorplan.ready-Dkfm7Nqq.js +1310 -0
  28. package/dist/browser/fuse-CrFUY0W8.js +887 -0
  29. package/dist/browser/index.js +10628 -12440
  30. package/dist/browser/jsx-runtime-P5gPgaNY.js +30 -0
  31. package/dist/browser/lib-BGCrbI0c.js +1859 -0
  32. package/dist/browser/main-B7nu_ayH.js +289 -0
  33. package/dist/browser/mobx-BwL1_Ioa.js +23 -0
  34. package/dist/browser/particles.min-r4ucWEQe.js +133 -0
  35. package/dist/browser/prop-types-_4KGi_BP.js +57 -0
  36. package/dist/browser/react-dom-BeKu02fc.js +139 -0
  37. package/dist/browser/reset-all-settings-CH3gzkuQ.js +17 -0
  38. package/dist/browser/settings-D1gM4Wtx.js +69 -0
  39. package/dist/browser/src--OC9EQnB.js +19 -0
  40. package/dist/browser/store-BpwlrbtP.js +36100 -0
  41. package/dist/browser/ui-Cy6VKwPB.js +33 -0
  42. package/dist/esm/components/Map/traffic/useBuildRoute.js +2 -2
  43. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  44. package/dist/esm/store/RootStore.js +1 -1
  45. package/package.json +4 -4
  46. package/dist/browser/Debug-b2YI2Uxo.js +0 -40
  47. package/dist/browser/Demo-aEKqZbJJ.js +0 -47
  48. package/dist/browser/Free-BGr4o53R.js +0 -51
  49. package/dist/browser/Gallery-C9n64fhu.js +0 -71
  50. package/dist/browser/GpsLoader-ChxBR2EI.js +0 -140
  51. package/dist/browser/KioskStore-DkCSeq5I.js +0 -225
  52. package/dist/browser/Mapbox-Cl0Wxz2h.js +0 -118
  53. package/dist/browser/SetKioskMode-D3EJeF9c.js +0 -249
  54. package/dist/browser/ShowKiosk-Bs5q-1RZ.js +0 -35
  55. package/dist/browser/ThreeComponent-CSsqNYDu.js +0 -1595
  56. package/dist/browser/ViewerMenuPanel-BMmB1p03.js +0 -77
  57. package/dist/browser/boolean-editor-DpnmndKH.js +0 -157
  58. package/dist/browser/client-CN_I7kK8.js +0 -10011
  59. package/dist/browser/data-CIAMSGsv.js +0 -22125
  60. package/dist/browser/debug-overlay-DjmA0D2r.js +0 -3675
  61. package/dist/browser/debug-ui-D1QGTN8V.js +0 -67
  62. package/dist/browser/favicon-BpTKNfwa.js +0 -13
  63. package/dist/browser/fetch-retry.umd-B8hV1FNr.js +0 -123
  64. package/dist/browser/flex-09atkOGP.js +0 -400
  65. package/dist/browser/floorplan.ready-BQetaqdP.js +0 -57653
  66. package/dist/browser/index-Bw6xZlSd.js +0 -161
  67. package/dist/browser/index-C71k7nSe.js +0 -3244
  68. package/dist/browser/index-CWLY6XdC.js +0 -92
  69. package/dist/browser/index-D9pdVw-U.js +0 -882
  70. package/dist/browser/index-DPSQIIUy.js +0 -57
  71. package/dist/browser/index-jp-Zhdyp.js +0 -54
  72. package/dist/browser/jsx-runtime-CoKhM3tL.js +0 -40
  73. package/dist/browser/main-DxaHLbma.js +0 -359
  74. package/dist/browser/particles.min-CsHbc6cO.js +0 -143
@@ -0,0 +1,1310 @@
1
+ (function() {
2
+ try {
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.2" };
5
+ var t = new e.Error().stack;
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "025f37f3-6d7e-4319-86c9-9ff72c9b6d5a", e._sentryDebugIdIdentifier = "sentry-dbid-025f37f3-6d7e-4319-86c9-9ff72c9b6d5a");
7
+ } catch {}
8
+ })();
9
+ import { r as e } from "./chunk-CG6jx9YN.js";
10
+ import { A as t, At as n, Mt as r, _ as i, _t as a, a as o, c as s, d as c, f as l, i as u, l as d, mt as f, n as p, o as m, pt as ee, r as h, s as te, t as ne, u as re, v as ie } from "./index.js";
11
+ import { t as ae } from "./client-B6hKytWh.js";
12
+ import { t as oe } from "./jsx-runtime-P5gPgaNY.js";
13
+ import { A as g, Q as _, Vn as v, Y as se, Z as y, _ as ce, a as b, d as le, g as ue, j as x, k as S, kn as C, l as w, m as de, nt as fe, p as pe, tt as me, v as he, y as ge } from "./store-BpwlrbtP.js";
14
+ import { i as _e } from "./CookieConsent-CXdWbmhr.js";
15
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.34.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
16
+ function ve(e = {}) {
17
+ let t = u.document, n = (t == null ? void 0 : t.head) || (t == null ? void 0 : t.body);
18
+ if (!n) {
19
+ h && l.error("[showReportDialog] Global document not defined");
20
+ return;
21
+ }
22
+ let r = d(), i = s(), a = i == null ? void 0 : i.getDsn();
23
+ if (!a) {
24
+ h && l.error("[showReportDialog] DSN not configured");
25
+ return;
26
+ }
27
+ let c = {
28
+ ...e,
29
+ user: {
30
+ ...r.getUser(),
31
+ ...e.user
32
+ },
33
+ eventId: e.eventId || te()
34
+ }, f = u.document.createElement("script");
35
+ f.async = !0, f.crossOrigin = "anonymous", f.src = o(a, c);
36
+ let { onLoad: p, onClose: m } = c;
37
+ if (p && (f.onload = p), m) {
38
+ let e = (t) => {
39
+ if (t.data === "__sentry_reportdialog_closed__") try {
40
+ m();
41
+ } finally {
42
+ u.removeEventListener("message", e);
43
+ }
44
+ };
45
+ u.addEventListener("message", e);
46
+ }
47
+ n.appendChild(f);
48
+ }
49
+ //#endregion
50
+ //#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(p());
52
+ function ye(e) {
53
+ let t = e.match(/^([^.]+)/);
54
+ return t !== null && parseInt(t[0]) >= 17;
55
+ }
56
+ function be(e, t) {
57
+ let n = /* @__PURE__ */ new WeakSet();
58
+ function r(e, t) {
59
+ if (!n.has(e)) {
60
+ if (e.cause) return n.add(e), r(e.cause, t);
61
+ e.cause = t;
62
+ }
63
+ }
64
+ r(e, t);
65
+ }
66
+ function xe(e, { componentStack: t }, n) {
67
+ if (ye(T.version) && c(e) && t) {
68
+ let n = Error(e.message);
69
+ n.name = `React ErrorBoundary ${e.name}`, n.stack = t, be(e, n);
70
+ }
71
+ return re((r) => (r.setContext("react", { componentStack: t }), m(e, n)));
72
+ }
73
+ //#endregion
74
+ //#region ../../node_modules/.pnpm/@sentry+react@10.34.0_react@19.2.4/node_modules/@sentry/react/build/esm/debug-build.js
75
+ var Se = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = {
76
+ componentStack: null,
77
+ error: null,
78
+ eventId: null
79
+ }, Ce = class extends T.Component {
80
+ constructor(e) {
81
+ super(e), this.state = E, this._openFallbackReportDialog = !0;
82
+ let t = s();
83
+ t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
84
+ !t.type && this._lastEventId && t.event_id === this._lastEventId && ve({
85
+ ...e.dialogOptions,
86
+ eventId: this._lastEventId
87
+ });
88
+ }));
89
+ }
90
+ componentDidCatch(e, t) {
91
+ let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
92
+ re((s) => {
93
+ r && r(s, e, n);
94
+ let c = xe(e, t, { mechanism: {
95
+ handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
96
+ type: "auto.function.react.error_boundary"
97
+ } });
98
+ i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && ve({
99
+ ...o,
100
+ eventId: c
101
+ })), this.setState({
102
+ error: e,
103
+ componentStack: n,
104
+ eventId: c
105
+ });
106
+ });
107
+ }
108
+ componentDidMount() {
109
+ let { onMount: e } = this.props;
110
+ e && e();
111
+ }
112
+ componentWillUnmount() {
113
+ let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
114
+ r && (this.state === E ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
115
+ }
116
+ resetErrorBoundary() {
117
+ let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
118
+ e && e(t, n, r), this.setState(E);
119
+ }
120
+ render() {
121
+ let { fallback: e, children: t } = this.props, n = this.state;
122
+ if (n.componentStack === null) return typeof t == "function" ? t() : t;
123
+ let r = typeof e == "function" ? T.createElement(e, {
124
+ error: n.error,
125
+ componentStack: n.componentStack,
126
+ resetError: () => this.resetErrorBoundary(),
127
+ eventId: n.eventId
128
+ }) : e;
129
+ return T.isValidElement(r) ? r : (e && Se && l.warn("fallback did not produce a valid ReactElement"), null);
130
+ }
131
+ }, we = ae(), Te = fe();
132
+ function Ee() {
133
+ D("floorplan"), D("__data"), D("__dataUrlBase"), D("__searchi"), D("__wfData"), D("__mobxGlobals"), D("__store"), D("__mobxInstanceCount");
134
+ for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && D(e);
135
+ }
136
+ function D(e) {
137
+ De(e) ? delete window[e] : window[e] = void 0;
138
+ }
139
+ function De(e) {
140
+ let t = Object.getOwnPropertyDescriptor(window, e);
141
+ return t && t.configurable;
142
+ }
143
+ //#endregion
144
+ //#region src/utils/mapEntity.ts
145
+ function O(e) {
146
+ switch (e.entity.type) {
147
+ case "booth":
148
+ var t, n;
149
+ return {
150
+ id: e.id,
151
+ name: A(e.name),
152
+ externalId: A(e.externalId),
153
+ isSpecial: e.entity.variant === "special",
154
+ exhibitors: k(e.exhibitors),
155
+ layer: {
156
+ name: A((t = e.layer) == null ? void 0 : t.name),
157
+ description: A((n = e.layer) == null ? void 0 : n.description)
158
+ },
159
+ meta: e.meta,
160
+ description: A(e.description),
161
+ entity: e.entity,
162
+ title: A(e.title)
163
+ };
164
+ case "category": return {
165
+ id: e.id,
166
+ name: A(e.name),
167
+ exhibitors: k(e.exhibitors),
168
+ entity: e.entity,
169
+ slug: A(e.slug)
170
+ };
171
+ case "exhibitor": return {
172
+ id: e.id,
173
+ name: A(e.name),
174
+ externalId: A(e.externalId),
175
+ booths: k(e.booths),
176
+ entity: e.entity,
177
+ slug: A(e.slug)
178
+ };
179
+ case "schedule": return {
180
+ id: e.id,
181
+ externalId: A(e.externalId),
182
+ boothId: e.boothId,
183
+ exhibitorId: e.exhibitorId,
184
+ name: A(e.name),
185
+ description: A(e.description),
186
+ startDate: A(e.startDate),
187
+ endDate: A(e.endDate),
188
+ link: A(e.link),
189
+ entity: e.entity,
190
+ isEnded: e.isEnded
191
+ };
192
+ case ee: return {
193
+ id: e.id,
194
+ name: A(e.name),
195
+ entity: e.entity
196
+ };
197
+ case "heatmap-yah": return {
198
+ id: A(e.id),
199
+ name: A(e.name),
200
+ viewCount: e.viewCount || 0,
201
+ x: e.x || 0,
202
+ y: e.y || 0,
203
+ z: e.z,
204
+ entity: e.entity
205
+ };
206
+ default: return e;
207
+ }
208
+ }
209
+ function k(e) {
210
+ return Array.isArray(e) ? e.filter(Boolean).map((e) => e.id).filter(Boolean) : [];
211
+ }
212
+ function A(e) {
213
+ return typeof e == "string" ? e : "";
214
+ }
215
+ Object.freeze({ status: "aborted" });
216
+ function j(e, t, n) {
217
+ var r;
218
+ function i(n, r) {
219
+ if (n._zod || Object.defineProperty(n, "_zod", {
220
+ value: {
221
+ def: r,
222
+ constr: s,
223
+ traits: /* @__PURE__ */ new Set()
224
+ },
225
+ enumerable: !1
226
+ }), n._zod.traits.has(e)) return;
227
+ n._zod.traits.add(e), t(n, r);
228
+ let i = s.prototype, a = Object.keys(i);
229
+ for (let e = 0; e < a.length; e++) {
230
+ let t = a[e];
231
+ t in n || (n[t] = i[t].bind(n));
232
+ }
233
+ }
234
+ let a = (r = n == null ? void 0 : n.Parent) == null ? Object : r;
235
+ class o extends a {}
236
+ Object.defineProperty(o, "name", { value: e });
237
+ function s(e) {
238
+ var t;
239
+ let r = n != null && n.Parent ? new o() : this;
240
+ i(r, e), (t = r._zod).deferred != null || (t.deferred = []);
241
+ for (let e of r._zod.deferred) e();
242
+ return r;
243
+ }
244
+ return Object.defineProperty(s, "init", { value: i }), Object.defineProperty(s, Symbol.hasInstance, { value: (t) => {
245
+ var r;
246
+ 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);
247
+ } }), Object.defineProperty(s, "name", { value: e }), s;
248
+ }
249
+ var M = class extends Error {
250
+ constructor() {
251
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
252
+ }
253
+ }, N = {};
254
+ function P(e) {
255
+ return e && Object.assign(N, e), N;
256
+ }
257
+ //#endregion
258
+ //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js
259
+ function Oe(e, t) {
260
+ return typeof t == "bigint" ? t.toString() : t;
261
+ }
262
+ function ke(e) {
263
+ return { get value() {
264
+ {
265
+ let t = e();
266
+ return Object.defineProperty(this, "value", { value: t }), t;
267
+ }
268
+ throw Error("cached value already set");
269
+ } };
270
+ }
271
+ function Ae(e) {
272
+ let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
273
+ return e.slice(t, n);
274
+ }
275
+ var F = Symbol("evaluating");
276
+ function I(e, t, n) {
277
+ let r;
278
+ Object.defineProperty(e, t, {
279
+ get() {
280
+ if (r !== F) return r === void 0 && (r = F, r = n()), r;
281
+ },
282
+ set(n) {
283
+ Object.defineProperty(e, t, { value: n });
284
+ },
285
+ configurable: !0
286
+ });
287
+ }
288
+ var L = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
289
+ function je(e) {
290
+ return typeof e == "object" && !!e && !Array.isArray(e);
291
+ }
292
+ function Me(e, t, n) {
293
+ let r = new e._zod.constr(t == null ? e._zod.def : t);
294
+ return (!t || n != null && n.parent) && (r._zod.parent = e), r;
295
+ }
296
+ function R(e) {
297
+ let t = e;
298
+ if (!t) return {};
299
+ if (typeof t == "string") return { error: () => t };
300
+ if ((t == null ? void 0 : t.message) !== void 0) {
301
+ if ((t == null ? void 0 : t.error) !== void 0) throw Error("Cannot specify both `message` and `error` params");
302
+ t.error = t.message;
303
+ }
304
+ return delete t.message, typeof t.error == "string" ? {
305
+ ...t,
306
+ error: () => t.error
307
+ } : t;
308
+ }
309
+ function Ne(e) {
310
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
311
+ }
312
+ -Number.MAX_VALUE, Number.MAX_VALUE;
313
+ function z(e, t = 0) {
314
+ if (e.aborted === !0) return !0;
315
+ for (let r = t; r < e.issues.length; r++) {
316
+ var n;
317
+ if (((n = e.issues[r]) == null ? void 0 : n.continue) !== !0) return !0;
318
+ }
319
+ return !1;
320
+ }
321
+ function Pe(e, t) {
322
+ return t.map((t) => {
323
+ var n;
324
+ return (n = t).path != null || (n.path = []), t.path.unshift(e), t;
325
+ });
326
+ }
327
+ function B(e) {
328
+ return typeof e == "string" ? e : e == null ? void 0 : e.message;
329
+ }
330
+ function V(e, t, n) {
331
+ var r;
332
+ let i = {
333
+ ...e,
334
+ path: (r = e.path) == null ? [] : r
335
+ };
336
+ if (!e.message) {
337
+ var a, o, s, c, l, u, d, f, p;
338
+ i.message = (a = (o = (s = (c = B((l = e.inst) == null || (l = l._zod.def) == null || (u = l.error) == null ? void 0 : u.call(l, e))) == null ? B(t == null || (d = t.error) == null ? void 0 : d.call(t, e)) : c) == null ? B((f = n.customError) == null ? void 0 : f.call(n, e)) : s) == null ? B((p = n.localeError) == null ? void 0 : p.call(n, e)) : o) == null ? "Invalid input" : a;
339
+ }
340
+ return delete i.inst, delete i.continue, t != null && t.reportInput || delete i.input, i;
341
+ }
342
+ function Fe(...e) {
343
+ let [t, n, r] = e;
344
+ return typeof t == "string" ? {
345
+ message: t,
346
+ code: "custom",
347
+ input: n,
348
+ inst: r
349
+ } : { ...t };
350
+ }
351
+ //#endregion
352
+ //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js
353
+ var Ie = (e, t) => {
354
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
355
+ value: e._zod,
356
+ enumerable: !1
357
+ }), Object.defineProperty(e, "issues", {
358
+ value: t,
359
+ enumerable: !1
360
+ }), e.message = JSON.stringify(t, Oe, 2), Object.defineProperty(e, "toString", {
361
+ value: () => e.message,
362
+ enumerable: !1
363
+ });
364
+ }, Le = j("$ZodError", Ie), H = j("$ZodError", Ie, { Parent: Error }), Re = /* @__PURE__ */ ((e) => (t, n, r, i) => {
365
+ let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
366
+ value: n,
367
+ issues: []
368
+ }, a);
369
+ if (o instanceof Promise) throw new M();
370
+ if (o.issues.length) {
371
+ var s;
372
+ let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => V(e, a, P())));
373
+ throw L(t, i == null ? void 0 : i.callee), t;
374
+ }
375
+ return o.value;
376
+ })(H), ze = /* @__PURE__ */ ((e) => async (t, n, r, i) => {
377
+ let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
378
+ value: n,
379
+ issues: []
380
+ }, a);
381
+ if (o instanceof Promise && (o = await o), o.issues.length) {
382
+ var s;
383
+ let t = new ((s = i == null ? void 0 : i.Err) == null ? e : s)(o.issues.map((e) => V(e, a, P())));
384
+ throw L(t, i == null ? void 0 : i.callee), t;
385
+ }
386
+ return o.value;
387
+ })(H), Be = /* @__PURE__ */ ((e) => (t, n, r) => {
388
+ let i = r ? {
389
+ ...r,
390
+ async: !1
391
+ } : { async: !1 }, a = t._zod.run({
392
+ value: n,
393
+ issues: []
394
+ }, i);
395
+ if (a instanceof Promise) throw new M();
396
+ return a.issues.length ? {
397
+ success: !1,
398
+ error: new (e == null ? Le : e)(a.issues.map((e) => V(e, i, P())))
399
+ } : {
400
+ success: !0,
401
+ data: a.value
402
+ };
403
+ })(H), Ve = /* @__PURE__ */ ((e) => async (t, n, r) => {
404
+ let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
405
+ value: n,
406
+ issues: []
407
+ }, i);
408
+ return a instanceof Promise && (a = await a), a.issues.length ? {
409
+ success: !1,
410
+ error: new e(a.issues.map((e) => V(e, i, P())))
411
+ } : {
412
+ success: !0,
413
+ data: a.value
414
+ };
415
+ })(H), He = (e) => {
416
+ var t, n;
417
+ 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]*";
418
+ return RegExp(`^${r}$`);
419
+ }, Ue = /^-?\d+(?:\.\d+)?$/, We = /* @__PURE__ */ j("$ZodCheck", (e, t) => {
420
+ var n;
421
+ e._zod != null || (e._zod = {}), e._zod.def = t, (n = e._zod).onattach != null || (n.onattach = []);
422
+ }), Ge = {
423
+ major: 4,
424
+ minor: 3,
425
+ patch: 5
426
+ }, U = /* @__PURE__ */ j("$ZodType", (e, t) => {
427
+ var n, r;
428
+ e != null || (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ge;
429
+ let i = [...(n = e._zod.def.checks) == null ? [] : n];
430
+ e._zod.traits.has("$ZodCheck") && i.unshift(e);
431
+ for (let t of i) for (let n of t._zod.onattach) n(e);
432
+ if (i.length === 0) {
433
+ var a;
434
+ (r = e._zod).deferred != null || (r.deferred = []), (a = e._zod.deferred) == null || a.push(() => {
435
+ e._zod.run = e._zod.parse;
436
+ });
437
+ } else {
438
+ let t = (e, t, n) => {
439
+ let r = z(e), i;
440
+ for (let o of t) {
441
+ if (o._zod.def.when) {
442
+ if (!o._zod.def.when(e)) continue;
443
+ } else if (r) continue;
444
+ let t = e.issues.length, s = o._zod.check(e);
445
+ if (s instanceof Promise && (n == null ? void 0 : n.async) === !1) throw new M();
446
+ if (i || s instanceof Promise) {
447
+ var a;
448
+ i = ((a = i) == null ? Promise.resolve() : a).then(async () => {
449
+ await s, e.issues.length !== t && (r || (r = z(e, t)));
450
+ });
451
+ } else {
452
+ if (e.issues.length === t) continue;
453
+ r || (r = z(e, t));
454
+ }
455
+ }
456
+ return i ? i.then(() => e) : e;
457
+ }, n = (n, r, a) => {
458
+ if (z(n)) return n.aborted = !0, n;
459
+ let o = t(r, i, a);
460
+ if (o instanceof Promise) {
461
+ if (a.async === !1) throw new M();
462
+ return o.then((t) => e._zod.parse(t, a));
463
+ }
464
+ return e._zod.parse(o, a);
465
+ };
466
+ e._zod.run = (r, a) => {
467
+ if (a.skipChecks) return e._zod.parse(r, a);
468
+ if (a.direction === "backward") {
469
+ let t = e._zod.parse({
470
+ value: r.value,
471
+ issues: []
472
+ }, {
473
+ ...a,
474
+ skipChecks: !0
475
+ });
476
+ return t instanceof Promise ? t.then((e) => n(e, r, a)) : n(t, r, a);
477
+ }
478
+ let o = e._zod.parse(r, a);
479
+ if (o instanceof Promise) {
480
+ if (a.async === !1) throw new M();
481
+ return o.then((e) => t(e, i, a));
482
+ }
483
+ return t(o, i, a);
484
+ };
485
+ }
486
+ I(e, "~standard", () => ({
487
+ validate: (t) => {
488
+ try {
489
+ var n;
490
+ let r = Be(e, t);
491
+ return r.success ? { value: r.data } : { issues: (n = r.error) == null ? void 0 : n.issues };
492
+ } catch {
493
+ return Ve(e, t).then((e) => {
494
+ var t;
495
+ return e.success ? { value: e.data } : { issues: (t = e.error) == null ? void 0 : t.issues };
496
+ });
497
+ }
498
+ },
499
+ vendor: "zod",
500
+ version: 1
501
+ }));
502
+ }), Ke = /* @__PURE__ */ j("$ZodString", (e, t) => {
503
+ var n, r, i;
504
+ 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) => {
505
+ if (t.coerce) try {
506
+ n.value = String(n.value);
507
+ } catch {}
508
+ return typeof n.value == "string" || n.issues.push({
509
+ expected: "string",
510
+ code: "invalid_type",
511
+ input: n.value,
512
+ inst: e
513
+ }), n;
514
+ };
515
+ }), qe = /* @__PURE__ */ j("$ZodNumber", (e, t) => {
516
+ var n;
517
+ U.init(e, t), e._zod.pattern = (n = e._zod.bag.pattern) == null ? Ue : n, e._zod.parse = (n, r) => {
518
+ if (t.coerce) try {
519
+ n.value = Number(n.value);
520
+ } catch {}
521
+ let i = n.value;
522
+ if (typeof i == "number" && !Number.isNaN(i) && Number.isFinite(i)) return n;
523
+ let a = typeof i == "number" ? Number.isNaN(i) ? "NaN" : Number.isFinite(i) ? void 0 : "Infinity" : void 0;
524
+ return n.issues.push({
525
+ expected: "number",
526
+ code: "invalid_type",
527
+ input: i,
528
+ inst: e,
529
+ ...a ? { received: a } : {}
530
+ }), n;
531
+ };
532
+ }), Je = /* @__PURE__ */ j("$ZodNever", (e, t) => {
533
+ U.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
534
+ expected: "never",
535
+ code: "invalid_type",
536
+ input: t.value,
537
+ inst: e
538
+ }), t);
539
+ });
540
+ function Ye(e, t, n) {
541
+ e.issues.length && t.issues.push(...Pe(n, e.issues)), t.value[n] = e.value;
542
+ }
543
+ var Xe = /* @__PURE__ */ j("$ZodArray", (e, t) => {
544
+ U.init(e, t), e._zod.parse = (n, r) => {
545
+ let i = n.value;
546
+ if (!Array.isArray(i)) return n.issues.push({
547
+ expected: "array",
548
+ code: "invalid_type",
549
+ input: i,
550
+ inst: e
551
+ }), n;
552
+ n.value = Array(i.length);
553
+ let a = [];
554
+ for (let e = 0; e < i.length; e++) {
555
+ let o = i[e], s = t.element._zod.run({
556
+ value: o,
557
+ issues: []
558
+ }, r);
559
+ s instanceof Promise ? a.push(s.then((t) => Ye(t, n, e))) : Ye(s, n, e);
560
+ }
561
+ return a.length ? Promise.all(a).then(() => n) : n;
562
+ };
563
+ });
564
+ function W(e, t, n, r, i) {
565
+ if (e.issues.length) {
566
+ if (i && !(n in r)) return;
567
+ t.issues.push(...Pe(n, e.issues));
568
+ }
569
+ e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
570
+ }
571
+ function Ze(e) {
572
+ let t = Object.keys(e.shape);
573
+ for (let r of t) {
574
+ var n;
575
+ 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
+ }
577
+ let r = Ne(e.shape);
578
+ return {
579
+ ...e,
580
+ keys: t,
581
+ keySet: new Set(t),
582
+ numKeys: t.length,
583
+ optionalKeys: new Set(r)
584
+ };
585
+ }
586
+ function Qe(e, t, n, r, i, a) {
587
+ let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
588
+ for (let i in t) {
589
+ if (s.has(i)) continue;
590
+ if (l === "never") {
591
+ o.push(i);
592
+ continue;
593
+ }
594
+ let a = c.run({
595
+ value: t[i],
596
+ issues: []
597
+ }, r);
598
+ a instanceof Promise ? e.push(a.then((e) => W(e, n, i, t, u))) : W(a, n, i, t, u);
599
+ }
600
+ return o.length && n.issues.push({
601
+ code: "unrecognized_keys",
602
+ keys: o,
603
+ input: t,
604
+ inst: a
605
+ }), e.length ? Promise.all(e).then(() => n) : n;
606
+ }
607
+ var $e = /* @__PURE__ */ j("$ZodObject", (e, t) => {
608
+ U.init(e, t);
609
+ let n = Object.getOwnPropertyDescriptor(t, "shape");
610
+ if (!(n != null && n.get)) {
611
+ let e = t.shape;
612
+ Object.defineProperty(t, "shape", { get: () => {
613
+ let n = { ...e };
614
+ return Object.defineProperty(t, "shape", { value: n }), n;
615
+ } });
616
+ }
617
+ let r = ke(() => Ze(t));
618
+ I(e._zod, "propValues", () => {
619
+ let e = t.shape, n = {};
620
+ for (let t in e) {
621
+ let r = e[t]._zod;
622
+ if (r.values) {
623
+ n[t] != null || (n[t] = /* @__PURE__ */ new Set());
624
+ for (let e of r.values) n[t].add(e);
625
+ }
626
+ }
627
+ return n;
628
+ });
629
+ let i = je, a = t.catchall, o;
630
+ e._zod.parse = (t, n) => {
631
+ o != null || (o = r.value);
632
+ let s = t.value;
633
+ if (!i(s)) return t.issues.push({
634
+ expected: "object",
635
+ code: "invalid_type",
636
+ input: s,
637
+ inst: e
638
+ }), t;
639
+ t.value = {};
640
+ let c = [], l = o.shape;
641
+ for (let e of o.keys) {
642
+ let r = l[e], i = r._zod.optout === "optional", a = r._zod.run({
643
+ value: s[e],
644
+ issues: []
645
+ }, n);
646
+ a instanceof Promise ? c.push(a.then((n) => W(n, t, e, s, i))) : W(a, t, e, s, i);
647
+ }
648
+ return a ? Qe(c, s, t, n, r.value, e) : c.length ? Promise.all(c).then(() => t) : t;
649
+ };
650
+ });
651
+ function et(e, t) {
652
+ return e.issues.length && t === void 0 ? {
653
+ issues: [],
654
+ value: void 0
655
+ } : e;
656
+ }
657
+ var tt = /* @__PURE__ */ j("$ZodOptional", (e, t) => {
658
+ U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", I(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), I(e._zod, "pattern", () => {
659
+ let e = t.innerType._zod.pattern;
660
+ return e ? RegExp(`^(${Ae(e.source)})?$`) : void 0;
661
+ }), e._zod.parse = (e, n) => {
662
+ if (t.innerType._zod.optin === "optional") {
663
+ let r = t.innerType._zod.run(e, n);
664
+ return r instanceof Promise ? r.then((t) => et(t, e.value)) : et(r, e.value);
665
+ }
666
+ return e.value === void 0 ? e : t.innerType._zod.run(e, n);
667
+ };
668
+ }), nt = /* @__PURE__ */ j("$ZodCustom", (e, t) => {
669
+ We.init(e, t), U.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
670
+ let r = n.value, i = t.fn(r);
671
+ if (i instanceof Promise) return i.then((t) => rt(t, n, r, e));
672
+ rt(i, n, r, e);
673
+ };
674
+ });
675
+ function rt(e, t, n, r) {
676
+ if (!e) {
677
+ var i;
678
+ let e = {
679
+ code: "custom",
680
+ input: n,
681
+ inst: r,
682
+ path: [...(i = r._zod.def.path) == null ? [] : i],
683
+ continue: !r._zod.def.abort
684
+ };
685
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(Fe(e));
686
+ }
687
+ }
688
+ //#endregion
689
+ //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js
690
+ /* @__NO_SIDE_EFFECTS__ */
691
+ function it(e, t) {
692
+ return new e({
693
+ type: "string",
694
+ ...R(t)
695
+ });
696
+ }
697
+ /* @__NO_SIDE_EFFECTS__ */
698
+ function at(e, t) {
699
+ return new e({
700
+ type: "number",
701
+ checks: [],
702
+ ...R(t)
703
+ });
704
+ }
705
+ /* @__NO_SIDE_EFFECTS__ */
706
+ function ot(e, t) {
707
+ return new e({
708
+ type: "never",
709
+ ...R(t)
710
+ });
711
+ }
712
+ /* @__NO_SIDE_EFFECTS__ */
713
+ function st(e, t, n) {
714
+ return new e({
715
+ type: "custom",
716
+ check: "custom",
717
+ fn: t,
718
+ ...R(n)
719
+ });
720
+ }
721
+ //#endregion
722
+ //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js
723
+ var G = /* @__PURE__ */ j("ZodMiniType", (e, t) => {
724
+ if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
725
+ U.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => Re(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Be(e, t, n), e.parseAsync = async (t, n) => ze(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ve(e, t, n), e.check = (...n) => {
726
+ var r;
727
+ return e.clone({
728
+ ...t,
729
+ checks: [...(r = t.checks) == null ? [] : r, ...n.map((e) => typeof e == "function" ? { _zod: {
730
+ check: e,
731
+ def: { check: "custom" },
732
+ onattach: []
733
+ } } : e)]
734
+ }, { parent: !0 });
735
+ }, e.with = e.check, e.clone = (t, n) => Me(e, t, n), e.brand = () => e, e.register = (t, n) => (t.add(e, n), e), e.apply = (t) => t(e);
736
+ }), ct = /* @__PURE__ */ j("ZodMiniString", (e, t) => {
737
+ Ke.init(e, t), G.init(e, t);
738
+ });
739
+ /* @__NO_SIDE_EFFECTS__ */
740
+ function lt(e) {
741
+ return /* @__PURE__ */ it(ct, e);
742
+ }
743
+ var ut = /* @__PURE__ */ j("ZodMiniNumber", (e, t) => {
744
+ qe.init(e, t), G.init(e, t);
745
+ });
746
+ /* @__NO_SIDE_EFFECTS__ */
747
+ function K(e) {
748
+ return /* @__PURE__ */ at(ut, e);
749
+ }
750
+ var dt = /* @__PURE__ */ j("ZodMiniNever", (e, t) => {
751
+ Je.init(e, t), G.init(e, t);
752
+ });
753
+ /* @__NO_SIDE_EFFECTS__ */
754
+ function ft(e) {
755
+ return /* @__PURE__ */ ot(dt, e);
756
+ }
757
+ var pt = /* @__PURE__ */ j("ZodMiniArray", (e, t) => {
758
+ Xe.init(e, t), G.init(e, t);
759
+ });
760
+ /* @__NO_SIDE_EFFECTS__ */
761
+ function mt(e, t) {
762
+ return new pt({
763
+ type: "array",
764
+ element: e,
765
+ ...R(t)
766
+ });
767
+ }
768
+ var ht = /* @__PURE__ */ j("ZodMiniObject", (e, t) => {
769
+ $e.init(e, t), G.init(e, t), I(e, "shape", () => t.shape);
770
+ });
771
+ /* @__NO_SIDE_EFFECTS__ */
772
+ function q(e, t) {
773
+ return new ht({
774
+ type: "object",
775
+ shape: e,
776
+ catchall: /* @__PURE__ */ ft(),
777
+ ...R(t)
778
+ });
779
+ }
780
+ var gt = /* @__PURE__ */ j("ZodMiniOptional", (e, t) => {
781
+ tt.init(e, t), G.init(e, t);
782
+ });
783
+ /* @__NO_SIDE_EFFECTS__ */
784
+ function J(e) {
785
+ return new gt({
786
+ type: "optional",
787
+ innerType: e
788
+ });
789
+ }
790
+ var _t = /* @__PURE__ */ j("ZodMiniCustom", (e, t) => {
791
+ nt.init(e, t), G.init(e, t);
792
+ });
793
+ /* @__NO_SIDE_EFFECTS__ */
794
+ function vt(e, t = {}) {
795
+ return /* @__PURE__ */ st(_t, e, t);
796
+ }
797
+ //#endregion
798
+ //#region src/schemas/sdk.schemas.ts
799
+ var yt = /* @__PURE__ */ q({
800
+ x: /* @__PURE__ */ K(),
801
+ y: /* @__PURE__ */ K()
802
+ }), bt = /* @__PURE__ */ q({
803
+ leftTop: yt,
804
+ rightBottom: yt
805
+ }), xt = (/* @__PURE__ */ q({
806
+ name: /* @__PURE__ */ J(/* @__PURE__ */ lt()),
807
+ externalId: /* @__PURE__ */ J(/* @__PURE__ */ lt())
808
+ })).check(/* @__PURE__ */ vt((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), St = (/* @__PURE__ */ q({
809
+ booths: /* @__PURE__ */ J(/* @__PURE__ */ mt(xt)),
810
+ exhibitors: /* @__PURE__ */ J(/* @__PURE__ */ mt(xt))
811
+ })).check(/* @__PURE__ */ vt((e) => {
812
+ var t, n;
813
+ return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
814
+ }, "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;
815
+ function Dt(e) {
816
+ let t = new Map(e), n = Array.from(t.keys());
817
+ if (n.length <= 2) return n;
818
+ let r = Ot(n, t);
819
+ return r.length < 4 ? r : kt(r, t);
820
+ }
821
+ function Ot(e, t) {
822
+ let n = [e[0]], r = new Set(e);
823
+ r.delete(e[0]);
824
+ let i = e[0];
825
+ for (; r.size > 0;) {
826
+ let e = t.get(i), a = "", o = Infinity;
827
+ for (let n of r) {
828
+ let r = t.get(n), i = Math.abs(e.cx - r.cx) + Math.abs(e.cy - r.cy);
829
+ i < o && (o = i, a = n);
830
+ }
831
+ if (!a) break;
832
+ n.push(a), r.delete(a), i = a;
833
+ }
834
+ return n;
835
+ }
836
+ function kt(e, t) {
837
+ let n = [...e], r = !0;
838
+ for (let e = 0; r && e < Tt; e++) {
839
+ r = !1;
840
+ scan: for (let e = 1; e < n.length - 2; e++) for (let i = e + 1; i < n.length - 1; i++) {
841
+ 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)) < Et) {
843
+ for (let t = e, r = i; t < r; t++, r--) [n[t], n[r]] = [n[r], n[t]];
844
+ r = !0;
845
+ break scan;
846
+ }
847
+ }
848
+ }
849
+ return n;
850
+ }
851
+ //#endregion
852
+ //#region src/floorplan.ready.tsx
853
+ var Y = oe(), X = (0, wt.default)("efp:api");
854
+ (0, Te.install)();
855
+ var At = class extends ne {
856
+ constructor(...e) {
857
+ super(...e), this.root = void 0;
858
+ }
859
+ init() {
860
+ this.ignoreQuery || ge(this.offHistory), ue("load"), b.fp = this, de(this.allowConsent), pe(w.Load, ""), this.root = (0, we.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, Y.jsx)(Ce, { children: /* @__PURE__ */ (0, Y.jsx)(_e, {
861
+ offHistory: this.offHistory,
862
+ allowConsent: this.allowConsent
863
+ }) })), pe(w.Rendered, ""), t(() => b.layerStore.layersLoaded, () => {
864
+ if (this.resolveReady(), !b.initialized) {
865
+ var e;
866
+ (e = this.onInit) == null || e.call(this, this);
867
+ }
868
+ b.initialized = !0;
869
+ });
870
+ }
871
+ selectBooth(e) {
872
+ if (typeof e != "string" && !Array.isArray(e)) {
873
+ $("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
874
+ return;
875
+ }
876
+ let t = b.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
877
+ b.selectBooth(t);
878
+ }
879
+ selectExhibitor(e) {
880
+ if (typeof e != "string" && !Array.isArray(e)) {
881
+ $("selectExhibitor", "Parameter must be a string or an array of strings.", "EFP000100");
882
+ return;
883
+ }
884
+ if (!(e != null && e.length)) {
885
+ b.uiState.menu = !1, b.searchStore.resetSearchBox(), b.uiState.details = null;
886
+ return;
887
+ }
888
+ let t = b.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
889
+ if (!(t != null && t.length)) return;
890
+ if (typeof e == "string") {
891
+ b.selectExhibitor(t[0]), b.moveToList([t[0]]);
892
+ return;
893
+ }
894
+ 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), {
895
+ freq: {},
896
+ mostFrequent: n[0],
897
+ maxCount: 0
898
+ }).mostFrequent;
899
+ b.layerStore.updateVisibility(r, !0), b.uiState.menu = !1, b.searchStore.resetSearchBox(), b.uiState.details = null, b.uiState.list = {
900
+ type: "filter",
901
+ items: t,
902
+ query: {
903
+ key: "exhibitors",
904
+ value: t.map((e) => e.externalId).join(",")
905
+ }
906
+ }, b.moveToList();
907
+ }
908
+ highlightExhibitors(e) {
909
+ Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), b.boothStore.highlightedByExternalIds = [], b.exhibitorStore.highlightedByExternalIds = [...e];
910
+ }
911
+ highlightBooths(e) {
912
+ Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), b.exhibitorStore.highlightedByExternalIds = [], b.boothStore.highlightedByExternalIds = [...e];
913
+ }
914
+ highlightEntities(e) {
915
+ Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
916
+ let { boothExternalIds: t, exhibitorExternalIds: n } = x(e);
917
+ b.boothStore.highlightedByExternalIds = [...t], b.exhibitorStore.highlightedByExternalIds = [...n];
918
+ }
919
+ selectRoute(e, t) {
920
+ if (Array.isArray(e)) {
921
+ let t = [...e], n = t.shift(), r = t.pop();
922
+ if (t.length > 8) throw Error("The maximum number of waypoints is 8.");
923
+ if (!n || !r) {
924
+ $("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
925
+ return;
926
+ }
927
+ b.routeStore.selectRoute(new S(Z(n), Z(r), t.map(Z)));
928
+ return;
929
+ }
930
+ e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), b.routeStore.selectRoute(new S(Z(e), Z(t)));
931
+ }
932
+ getOptimizedRoutes(e) {
933
+ if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
934
+ if (e.length > 8) throw Error("The maximum number of waypoints is 8.");
935
+ let t = e.map(Z).filter((e) => !!e);
936
+ if (!t.length) throw Error("No booths found for the provided waypoints.");
937
+ let n = /* @__PURE__ */ new Map();
938
+ for (let e of t) {
939
+ var r, i;
940
+ let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
941
+ a ? a.push(e) : n.set(t, [e]);
942
+ }
943
+ return Array.from(n.values()).map((e) => ({ waypoints: Dt(e.map((e) => [e.name, {
944
+ cx: e.rect.cx,
945
+ cy: e.rect.cy
946
+ }])) }));
947
+ }
948
+ selectCurrentPosition(e, t, n) {
949
+ var r;
950
+ let i = y(e.x) && y(e.y), a = y(e.lng) && y(e.lat);
951
+ !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
+ }
953
+ setBookmarks(e) {
954
+ (!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
955
+ let t = b.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
956
+ t && (t.bookmarked = e.bookmarked);
957
+ });
958
+ }
959
+ setEntitiesBookmarks(e) {
960
+ if (!Array.isArray(e) || !e.length) {
961
+ $("setEntitiesBookmarks", "Parameter must be an array.", "EFP000701");
962
+ return;
963
+ }
964
+ let t = [
965
+ "exhibitor",
966
+ "event",
967
+ "speaker",
968
+ "booth"
969
+ ], n = e.find((e) => !e.type || !t.includes(e.type));
970
+ if (n) {
971
+ $("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
972
+ return;
973
+ }
974
+ let r = C("bookmarked"), i = {
975
+ exhibitor: {
976
+ existingIds: new Set(r.exhibitors || []),
977
+ finder: (e) => b.exhibitorStore.findExhibitor(e),
978
+ replacer: (e) => b.exhibitorStore.replaceBookmarked(e)
979
+ },
980
+ event: {
981
+ existingIds: new Set(r.events || []),
982
+ finder: (e) => b.eventStore.findByNameOrSlug(e),
983
+ replacer: (e) => b.eventStore.replaceBookmarked(e)
984
+ },
985
+ speaker: {
986
+ existingIds: new Set(r.speakers || []),
987
+ finder: (e) => b.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
988
+ replacer: (e) => b.speakerStore.replaceBookmarked(e)
989
+ },
990
+ booth: {
991
+ existingIds: new Set(r.booths || []),
992
+ finder: (e) => {
993
+ let t = b.boothStore.findBooth(e);
994
+ return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
995
+ },
996
+ replacer: (e) => b.boothStore.replaceBookmarked(e)
997
+ }
998
+ };
999
+ e.forEach((e) => {
1000
+ let t = i[e.type], n = e.name || e.externalId || "", r = t.finder(n);
1001
+ r ? e.bookmarked ? t.existingIds.add(r.id) : t.existingIds.delete(r.id) : console.warn(`Entity not found: ${e.type} with query "${n}"`);
1002
+ }), Object.values(i).forEach((e) => {
1003
+ e.replacer(Array.from(e.existingIds));
1004
+ });
1005
+ }
1006
+ setEntitiesVisited(e) {
1007
+ if (!Array.isArray(e) || !e.length) {
1008
+ $("setEntitiesVisited", "Parameter must be an array.", "EFP000703");
1009
+ return;
1010
+ }
1011
+ let t = ["exhibitor", "event"], n = e.find((e) => !e.type || !t.includes(e.type));
1012
+ if (n) {
1013
+ $("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
1014
+ return;
1015
+ }
1016
+ let r = C("visited"), i = {
1017
+ exhibitor: {
1018
+ existingIds: new Set(r.exhibitors || []),
1019
+ finder: (e) => b.exhibitorStore.findExhibitor(e),
1020
+ replacer: (e) => b.exhibitorStore.replaceVisited(e)
1021
+ },
1022
+ event: {
1023
+ existingIds: new Set(r.events || []),
1024
+ finder: (e) => b.eventStore.findByNameOrSlug(e),
1025
+ replacer: (e) => b.eventStore.replaceVisited(e)
1026
+ }
1027
+ };
1028
+ e.forEach((e) => {
1029
+ let t = i[e.type], n = e.name || e.externalId || "", r = t.finder(n);
1030
+ r ? e.visited ? t.existingIds.add(r.id) : t.existingIds.delete(r.id) : console.warn(`Entity not found: ${e.type} with query "${n}"`);
1031
+ }), Object.values(i).forEach((e) => {
1032
+ e.replacer(Array.from(e.existingIds));
1033
+ });
1034
+ }
1035
+ setMarkers(e) {
1036
+ if (!e || !Array.isArray(e.icons) || !Array.isArray(e.markers)) {
1037
+ $("setMarkers", "Invalid input.", "EFP000800");
1038
+ return;
1039
+ }
1040
+ b.routeStore.setMarkers(e);
1041
+ }
1042
+ selectMarker(e, t = !0) {
1043
+ return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), b.routeStore.selectMarker(e, t);
1044
+ }
1045
+ drawCircles(e) {
1046
+ Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), b.uiState.debugCircles = e;
1047
+ }
1048
+ checkRoutes() {
1049
+ b.routeStore.checkRoutes();
1050
+ }
1051
+ updateLayerVisibility(e, t) {
1052
+ 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"), b.layerStore.updateVisibility(e, t);
1053
+ }
1054
+ getCenterCoordinates() {
1055
+ return b.fp.getCenterCoordinates();
1056
+ }
1057
+ exhibitorsList() {
1058
+ return b.exhibitorStore.exhibitors.map((e) => O(e));
1059
+ }
1060
+ boothsList() {
1061
+ return b.boothStore.booths.map((e) => O(e));
1062
+ }
1063
+ categoriesList() {
1064
+ return b.categoryStore.categories.map((e) => O(e));
1065
+ }
1066
+ selectCategory(e) {
1067
+ if (e == null || typeof e != "string") {
1068
+ b.searchStore.selectSearch();
1069
+ return;
1070
+ }
1071
+ let t = e == null ? void 0 : e.toLowerCase(), n = b.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
1072
+ if (!n) {
1073
+ $("selectCategory", `Category ${e} not found.`, "EFP000C01");
1074
+ return;
1075
+ }
1076
+ b.selectCategory(n);
1077
+ }
1078
+ applyParameters(e) {
1079
+ typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), ce(e);
1080
+ }
1081
+ getVisibility() {
1082
+ return b.uiState.visibility;
1083
+ }
1084
+ setVisibility(e) {
1085
+ (typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), b.uiState.setVisibility(e);
1086
+ }
1087
+ findLocation() {
1088
+ b.routeStore.findLocation();
1089
+ }
1090
+ zoomIn() {
1091
+ b.uiState.zoomIn();
1092
+ }
1093
+ zoomOut() {
1094
+ b.uiState.zoomOut();
1095
+ }
1096
+ switchView() {
1097
+ b.mapboxStore.activateMapbox();
1098
+ }
1099
+ zoomTo(e, t) {
1100
+ X("zoomTo called with selectors=%O options=%O", e, t);
1101
+ let n = St.safeParse(e);
1102
+ if (!n.success) {
1103
+ $("zoomTo", n.error.message, "EFP001600");
1104
+ return;
1105
+ }
1106
+ let r = Ct.safeParse(t);
1107
+ if (!r.success) {
1108
+ $("zoomTo", r.error.message, "EFP001601");
1109
+ return;
1110
+ }
1111
+ let i = this.getBounds(e);
1112
+ i && this.fitBounds(i, t);
1113
+ }
1114
+ getBounds(e) {
1115
+ var t, n;
1116
+ X("getBounds called with selectors=%O", e);
1117
+ let r = St.safeParse(e);
1118
+ if (!r.success) {
1119
+ $("getBounds", r.error.message, "EFP001400");
1120
+ return;
1121
+ }
1122
+ let i = [];
1123
+ if ((t = e.booths) == null || t.forEach((e) => {
1124
+ let t;
1125
+ e.externalId ? t = b.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = b.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
1126
+ }), (n = e.exhibitors) == null || n.forEach((e) => {
1127
+ var t;
1128
+ let n;
1129
+ e.externalId ? n = b.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = b.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
1130
+ e.rect && i.push(e.rect);
1131
+ });
1132
+ }), i.length === 0) return;
1133
+ let a = v.fromMultiple(i);
1134
+ return {
1135
+ leftTop: {
1136
+ x: a.x1,
1137
+ y: a.y1
1138
+ },
1139
+ rightBottom: {
1140
+ x: a.x2,
1141
+ y: a.y2
1142
+ }
1143
+ };
1144
+ }
1145
+ fitBounds(e, t) {
1146
+ if (X("fitBounds called with bounds=%O options=%O", e, t), !e) {
1147
+ b.uiState.fitBounds();
1148
+ return;
1149
+ }
1150
+ let n = bt.safeParse(e);
1151
+ if (!n.success) {
1152
+ $("fitBounds", n.error.message, "EFP001500");
1153
+ return;
1154
+ }
1155
+ let r = Ct.safeParse(t);
1156
+ if (!r.success) {
1157
+ $("fitBounds", r.error.message, "EFP001501");
1158
+ return;
1159
+ }
1160
+ let i;
1161
+ if (t != null && t.padding) {
1162
+ let n = t.padding;
1163
+ i = v.fromX1y1x2y2(e.leftTop.x - n, e.leftTop.y - n, e.rightBottom.x + n, e.rightBottom.y + n);
1164
+ } else i = v.fromX1y1x2y2(e.leftTop.x, e.leftTop.y, e.rightBottom.x, e.rightBottom.y);
1165
+ b.uiState.moveToRect = i;
1166
+ }
1167
+ getBoothRect(e) {
1168
+ var t;
1169
+ return typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00"), (t = g(e)) == null ? void 0 : t.rect;
1170
+ }
1171
+ convertToGeo(e, t) {
1172
+ var n;
1173
+ if (!(!(_ == null || (n = _.properties) == null) && n.config)) {
1174
+ $("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
1175
+ return;
1176
+ }
1177
+ if (!e || !t) {
1178
+ $("convertToGeo", "Both coordinates must be passed.", "EFP001001");
1179
+ return;
1180
+ }
1181
+ return se(e, t, _.properties.config);
1182
+ }
1183
+ unstable_destroy() {
1184
+ let e = window.__efpElement.firstChild;
1185
+ Ee(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", n), he(), me(), le(), [...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
+ }
1187
+ search(e) {
1188
+ 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) => ({
1189
+ item: O(e.item),
1190
+ score: e.score
1191
+ }))));
1192
+ }
1193
+ getFloors() {
1194
+ return b.layerStore.floors.map((e) => ({
1195
+ name: e.name,
1196
+ shortName: e.shortName,
1197
+ description: e.description,
1198
+ active: e.active,
1199
+ disabled: e.disabled,
1200
+ index: e.index
1201
+ }));
1202
+ }
1203
+ activateFloor(e) {
1204
+ if (!(e != null && e.name) && (e == null ? void 0 : e.index) == null) {
1205
+ $("activateFloor", "Invalid floorId. It must contain either a name or an index.", "EFP001200");
1206
+ return;
1207
+ }
1208
+ let t = this.getFloors();
1209
+ if (e.name) {
1210
+ let n = t.find((t) => t.name === e.name || t.shortName === e.name);
1211
+ if (!n) {
1212
+ $("activateFloor", `Floor with name "${e.name}" not found.`, "EFP001201");
1213
+ return;
1214
+ }
1215
+ if (n.active) return;
1216
+ this.updateLayerVisibility(n.name, !0);
1217
+ return;
1218
+ }
1219
+ if (e.index !== null) {
1220
+ let n = t.find((t) => t.index === e.index), r = n == null ? void 0 : n.name;
1221
+ if (!r) {
1222
+ $("activateFloor", `Floor at index ${e.index} does not exist.`, "EFP001203");
1223
+ return;
1224
+ }
1225
+ if (n.active) return;
1226
+ this.updateLayerVisibility(r, !0);
1227
+ return;
1228
+ }
1229
+ }
1230
+ showPathway(e, t) {
1231
+ let n = new URLSearchParams();
1232
+ if (n.set(a, e), t != null && t.length) {
1233
+ let { boothExternalIds: e, exhibitorExternalIds: r } = x(t);
1234
+ e.length > 0 && n.set("booths", e.join(",")), r.length > 0 && n.set("exhibitors", r.join(","));
1235
+ }
1236
+ this.applyParameters(n.toString());
1237
+ }
1238
+ showPathwayOnly(e, t) {
1239
+ this.activateFloor({ name: t }), b.layerStore.showPathWay(e), b.uiState.setPathwayOnlyMode(!0);
1240
+ let n = b.layerStore.findLayer(e), r = b.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
1241
+ if (i != null && i.rect || i != null && i.viewbox) {
1242
+ var a;
1243
+ let e = (a = i.viewbox) == null ? i.rect : a;
1244
+ b.uiState.moveToRect = v.fromX1y1x2y2(e.x1, e.y1, e.x2, e.y2);
1245
+ }
1246
+ }
1247
+ hidePathways() {
1248
+ this.highlightBooths([]), b.layerStore.hidePathways(), b.uiState.setPathwayOnlyMode(!1);
1249
+ }
1250
+ showSearch() {
1251
+ b.selectSearch("");
1252
+ }
1253
+ changeLanguage(e) {
1254
+ var t;
1255
+ let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
1256
+ if (!ie(n)) {
1257
+ $("changeLanguage", `Language "${e}" was not found. Available languages: ${i().map((e) => e.id).join(",")}`, "EFP001300");
1258
+ return;
1259
+ }
1260
+ let r = new URLSearchParams();
1261
+ r.set(f, n), this.applyParameters(r.toString());
1262
+ }
1263
+ isGpsTrackingEnabled() {
1264
+ return b.routeStore.gpsEnabled;
1265
+ }
1266
+ setGpsTrackingEnabled(e) {
1267
+ b.routeStore.setGpsTrackingEnabled(e);
1268
+ }
1269
+ deselectCurrentPosition() {
1270
+ b.routeStore.selectCurrentPosition(null, !1);
1271
+ }
1272
+ deselectRoute() {
1273
+ b.routeStore.selectRoute(null);
1274
+ }
1275
+ reset() {
1276
+ if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), b.uiState.kioskData && b.resetCameraFn) {
1277
+ var e;
1278
+ (e = b.resetCameraFn) == null || e.call(b);
1279
+ } else this.fitBounds();
1280
+ }
1281
+ };
1282
+ function Z(e) {
1283
+ return typeof e == "string" ? g(e) : b.routeStore.getNearestBooth(e);
1284
+ }
1285
+ var Q = 0;
1286
+ function $(e, t, n) {
1287
+ 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
+ if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), b.fp.disableRuntimeAlerts) return;
1289
+ b.uiState.setGlobalErrorMessage({
1290
+ title: r,
1291
+ body: /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
1292
+ i,
1293
+ " ",
1294
+ /* @__PURE__ */ (0, Y.jsx)("a", {
1295
+ href: a,
1296
+ target: "_blank",
1297
+ children: a
1298
+ })
1299
+ ] })
1300
+ }), clearTimeout(Q);
1301
+ let o = 8e3;
1302
+ Q = window.setTimeout(() => {
1303
+ let e = async () => {
1304
+ b.uiState.globalErrorMessages.length > 0 && (b.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
1305
+ };
1306
+ e();
1307
+ }, o);
1308
+ }
1309
+ //#endregion
1310
+ export { At as default };