@expofp/floorplan 3.30.0 → 3.31.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.
Files changed (82) hide show
  1. package/dist/browser/{Button-CtLPpS0B.js → Button-CQwO9tIg.js} +5 -5
  2. package/dist/browser/{CookieConsent-qcNbV6oo.js → CookieConsent-C-b_gQuN.js} +7 -7
  3. package/dist/browser/{Debug-7pyi5lC7.js → Debug-fQQyYJXu.js} +8 -8
  4. package/dist/browser/{DebugTools-D6MakMFa.js → DebugTools-BCE8StGX.js} +6 -6
  5. package/dist/browser/{Demo-BHQ6BWuD.js → Demo-Cl9GA9tB.js} +10 -10
  6. package/dist/browser/{Free--d5egC62.js → Free-DI9bpsX5.js} +10 -10
  7. package/dist/browser/{GalleryContainer-nbQ6RNk7.js → GalleryContainer-DKLp4FU4.js} +10 -10
  8. package/dist/browser/{GpsLoader-BJZZnDGE.js → GpsLoader-CiDmup5t.js} +11 -11
  9. package/dist/browser/{KioskStore-C-Ha84_n.js → KioskStore-BVpFrfzX.js} +6 -6
  10. package/dist/browser/{MaplibreAdapter-Bo0rF52J.js → MaplibreAdapter-BJxJxnzx.js} +824 -824
  11. package/dist/browser/{ModalContainer-CP1hP4TP.js → ModalContainer-NXKmni8w.js} +11 -11
  12. package/dist/browser/{PermissionNotice-CogpdrIp.js → PermissionNotice-BkAvCmPD.js} +7 -7
  13. package/dist/browser/{SetKioskMode-CLPHEIxv.js → SetKioskMode-CsV-ckXR.js} +10 -10
  14. package/dist/browser/{ShowKiosk-D_q8C4Nr.js → ShowKiosk-CqhWjqxE.js} +11 -11
  15. package/dist/browser/{ViewerMenuPanel-CymDinXs.js → ViewerMenuPanel-CCca0xxk.js} +22 -22
  16. package/dist/browser/{add-debug-secret-listener-BgrIpqdV.js → add-debug-secret-listener-CxE72n53.js} +1 -1
  17. package/dist/browser/{adopt-global-settings-DNoeRJtC.js → adopt-global-settings-nxeDDXp1.js} +9 -9
  18. package/dist/browser/{boolean-editor-DcFZCtfq.js → boolean-editor-DPMQ0YU3.js} +9 -9
  19. package/dist/browser/{bootIntercom-DGm0-qrx.js → bootIntercom-DBS2-Ra7.js} +3 -3
  20. package/dist/browser/bundle.json +69 -69
  21. package/dist/browser/{camera-events-CcewxKY5.js → camera-events-rGM_y-1M.js} +1 -1
  22. package/dist/browser/{classnames-CtSXz0js.js → classnames-CkjzoXiH.js} +2 -2
  23. package/dist/browser/{client-DlH0b6aw.js → client-DiPQk1ur.js} +5 -5
  24. package/dist/browser/{components-Dx6cpab4.js → components-CAI7tVu_.js} +1170 -983
  25. package/dist/browser/{debug-context-Cjmnzg3u.js → debug-context-Cx6l3A8H.js} +5 -5
  26. package/dist/browser/{debug-overlay-DonwvLwe.js → debug-overlay-BlCwf63z.js} +10 -10
  27. package/dist/browser/{debug-ui-PgwhPHHP.js → debug-ui-CL9NYiBY.js} +6 -6
  28. package/dist/browser/{dimming-TYIWyLrc.js → dimming-BrddBap-.js} +8 -8
  29. package/dist/browser/{dist-DtjjLmZ0.js → dist-Bdec-Nxs.js} +6 -6
  30. package/dist/browser/{dist-C7ShhntP.js → dist-DbtaUrV6.js} +5 -5
  31. package/dist/browser/{dist-D1D62gaR.js → dist-JdkIiWfj.js} +3 -3
  32. package/dist/browser/{efp-debug-init-DKE8cNyV.js → efp-debug-init-DDFZgkyx.js} +3 -3
  33. package/dist/browser/{enum-editor-CSc_yWg7.js → enum-editor-BBt11YmB.js} +4 -4
  34. package/dist/browser/{es5-CbsscoEF.js → es5-DVB0QLwS.js} +2 -2
  35. package/dist/browser/{event-not-found-DC-MB7az.js → event-not-found-hzkyr5mJ.js} +1 -1
  36. package/dist/browser/{exports-CqMLi1pn.js → exports-DRumaK8s.js} +1 -1
  37. package/dist/browser/{favicon-BH5XnDv9.js → favicon-ByjB1rX0.js} +1 -1
  38. package/dist/browser/{fetch-retry.umd-DWl09AgW.js → fetch-retry.umd-CEIMoenq.js} +2 -2
  39. package/dist/browser/{flex-CC4jmZ-J.js → flex-CrHBC47v.js} +5 -5
  40. package/dist/browser/{floorplan.loader-BG5RQBob.js → floorplan.loader-UtQ5sLSE.js} +10 -10
  41. package/dist/browser/{floorplan.ready-QlSmZMAj.js → floorplan.ready-BBRE91D6.js} +18 -18
  42. package/dist/browser/{fuse-By5SED55.js → fuse-D9Fc86Mp.js} +2 -2
  43. package/dist/browser/{i18n-BCIfmbUi.js → i18n-C3pmOHfm.js} +5 -5
  44. package/dist/browser/index.js +14 -14
  45. package/dist/browser/{index.module-B6LUx2-2.js → index.module-ScroRsV4.js} +4 -4
  46. package/dist/browser/{integrateKiosk-CREO-tu9.js → integrateKiosk-Bp4Usv7I.js} +5 -5
  47. package/dist/browser/{is-webview-DaA-z3m1.js → is-webview-B0VkhBwH.js} +1 -1
  48. package/dist/browser/{jsx-runtime-2z2znmc1.js → jsx-runtime-BV6RRH6M.js} +2 -2
  49. package/dist/browser/{kiosk-record-BPfOT1ip.js → kiosk-record-NHohuRZk.js} +1 -1
  50. package/dist/browser/{lib-CACFAagC.js → lib-D4o7UxhZ.js} +3 -3
  51. package/dist/browser/{loadImage-D8vy0Mv-.js → loadImage-CmTxbx4i.js} +4 -4
  52. package/dist/browser/{logDeviceInfo-DfnLjBvH.js → logDeviceInfo-BJEg8M4e.js} +9 -9
  53. package/dist/browser/{mobx-DHMEvdyY.js → mobx-LsEeQkKC.js} +4 -4
  54. package/dist/browser/{optional-boolean-editor-DXhkgcnx.js → optional-boolean-editor-DuCfWYyQ.js} +3 -3
  55. package/dist/browser/{optional-enum-editor-CLz8Tl9q.js → optional-enum-editor-Q-snbPWN.js} +4 -4
  56. package/dist/browser/{optional-string-editor-BOfh7J4B.js → optional-string-editor-Bd-V93ee.js} +4 -4
  57. package/dist/browser/{particles.min-B5vL2pb7.js → particles.min-BXxEUmtZ.js} +2 -2
  58. package/dist/browser/{react-dom-CnC72DLX.js → react-dom-BpJ-AdUf.js} +3 -3
  59. package/dist/browser/{react-BgBw9jbh.js → react-yYxHcXya.js} +2 -2
  60. package/dist/browser/{rolldown-runtime-DtkWy_tj.js → rolldown-runtime-DB1nSOXr.js} +1 -1
  61. package/dist/browser/{scheduler--CR00YC_.js → scheduler-DgvhfFMA.js} +2 -2
  62. package/dist/browser/{select-CZrP-h2-.js → select-DC3zsJbM.js} +10 -10
  63. package/dist/browser/{settings-lkI4iHuB.js → settings-CmbIseSw.js} +2 -2
  64. package/dist/browser/{settings-item-DLBfNwUk.js → settings-item-Dp6uSDI5.js} +6 -6
  65. package/dist/browser/{store-CqbDYCfW.js → store-BQJFbecZ.js} +103 -99
  66. package/dist/browser/{string-editor-pESFWbET.js → string-editor-DKRik8qD.js} +4 -4
  67. package/dist/browser/{text-field-C5iLAXHr.js → text-field-D3Rb6XM1.js} +5 -5
  68. package/dist/browser/{theme-CY6T-QhX.js → theme-B-lC93LF.js} +8 -8
  69. package/dist/browser/{ui-BN6XW7ip.js → ui-D9c3dK9d.js} +8 -8
  70. package/dist/browser/{useRenderTarget-CyJc23ib.js → useRenderTarget-Cn4JNaNq.js} +5 -5
  71. package/dist/browser/{viewport-Bcui6W6f.js → viewport-B7y5otP7.js} +3 -3
  72. package/dist/esm/components/AutocompleteContainer.d.ts +1 -1
  73. package/dist/esm/components/AutocompleteContainer.js +1 -1
  74. package/dist/esm/components/Maplibre/useCameraReactions.js +1 -1
  75. package/dist/esm/components/OverlayContainer.js +1 -1
  76. package/dist/esm/components/SearchBox.js +1 -1
  77. package/dist/esm/store/RouteStore.js +1 -1
  78. package/dist/esm/store/UIState.d.ts +2 -0
  79. package/dist/esm/store/UIState.js +1 -1
  80. package/dist/esm/test/store-harness.d.ts +19 -0
  81. package/dist/esm/test/store-harness.js +1 -0
  82. package/package.json +10 -10
@@ -2,91 +2,24 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.30.0" };
5
+ e.SENTRY_RELEASE = { id: "3.31.0" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f10341ea-890c-4900-99cf-bba07183f2ac", e._sentryDebugIdIdentifier = "sentry-dbid-f10341ea-890c-4900-99cf-bba07183f2ac");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8f2af3fb-ec5c-4e5a-8349-8e1e3e4227ad", e._sentryDebugIdIdentifier = "sentry-dbid-8f2af3fb-ec5c-4e5a-8349-8e1e3e4227ad");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-DtkWy_tj.js";
11
- import { A as n, B as r, C as i, F as a, G as o, H as s, I as c, J as l, L as u, U as d, V as f, W as p, Z as m, _ as h, a as g, at as _, c as v, d as y, dt as b, f as x, h as S, j as C, k as w, l as T, m as E, n as D, ot as O, p as k, q as ee, rt as te, s as A, st as ne, t as re, tt as ie, ut as ae, v as j, y as oe, z as se, zt as ce } from "./i18n-BCIfmbUi.js";
12
- import { s as le } from "./efp-debug-init-DKE8cNyV.js";
13
- import { t as ue } from "./react-BgBw9jbh.js";
14
- import { t as de } from "./jsx-runtime-2z2znmc1.js";
15
- import { n as fe, r as M, t as pe } from "./loadImage-D8vy0Mv-.js";
16
- import { t as me } from "./is-webview-DaA-z3m1.js";
17
- import { t as he } from "./scheduler--CR00YC_.js";
18
- import { $ as ge, $t as _e, A as ve, At as ye, B as be, Bt as xe, C as Se, Ct as Ce, D as we, Dt as Te, E as Ee, Et as De, F as Oe, Ft as ke, G as Ae, Gt as je, H as Me, Ht as Ne, I as Pe, It as Fe, J as Ie, Jt as Le, K as Re, Kt as ze, L as Be, Lt as Ve, M as He, Mt as Ue, N as We, Nt as Ge, O as Ke, Ot as qe, P as Je, Pt as Ye, Q as Xe, Qt as N, R as Ze, Rt as Qe, S as $e, St as et, T as tt, Tt as nt, U as rt, Ut as it, V as at, Vt as ot, W as st, Wt as ct, X as lt, Xt as ut, Y as dt, Yt as ft, Z as pt, Zt as mt, _ as ht, _t as gt, a as _t, an as vt, at as yt, b as bt, bt as xt, cn as St, ct as Ct, d as wt, dn as Tt, dt as Et, en as Dt, et as Ot, f as kt, fn as At, ft as jt, g as Mt, gt as Nt, h as Pt, ht as Ft, i as It, in as Lt, it as Rt, j as zt, jt as Bt, k as Vt, kt as Ht, l as Ut, ln as Wt, lt as Gt, m as Kt, mn as qt, mt as Jt, nn as Yt, nt as Xt, o as Zt, on as Qt, ot as $t, p as en, pn as tn, pt as nn, q as rn, qt as an, r as on, rn as sn, rt as cn, s as ln, sn as un, st as dn, tn as fn, tt as pn, u as mn, un as P, ut as hn, v as gn, vt as _n, w as vn, wt as yn, x as bn, xt as xn, y as Sn, yt as Cn, z as wn, zt as Tn } from "./debug-context-Cjmnzg3u.js";
19
- import { t as En } from "./classnames-CtSXz0js.js";
20
- import { t as Dn } from "./Button-CtLPpS0B.js";
21
- //#region ../ui/src/shared/interactive.ts
22
- var F = /* @__PURE__ */ e(ue(), 1), On = "button, input, select, textarea, a, [contenteditable=\"true\"], [draggable=\"false\"]";
23
- function kn(e) {
24
- return !!(e != null && e.closest(On));
25
- }
26
- //#endregion
27
- //#region ../ui/src/components/Draggable/Draggable.tsx
28
- var I = de(), An = ({ children: e, className: t, style: n }) => {
29
- let [r, i] = (0, F.useState)({
30
- x: 0,
31
- y: 0
32
- }), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)({
33
- x: 0,
34
- y: 0
35
- }), l = (0, F.useRef)(null), u = (e) => {
36
- kn(e.target) || (o(!0), c({
37
- x: e.clientX - r.x,
38
- y: e.clientY - r.y
39
- }), e.preventDefault());
40
- }, d = (e) => {
41
- if (!a) return;
42
- let t = e.clientX - s.x, n = e.clientY - s.y;
43
- i({
44
- x: t,
45
- y: n
46
- });
47
- }, f = () => {
48
- g();
49
- }, p = (e) => {
50
- if (kn(e.target)) return;
51
- let t = e.touches[0];
52
- o(!0), c({
53
- x: t.clientX - r.x,
54
- y: t.clientY - r.y
55
- });
56
- }, m = (e) => {
57
- if (!a) return;
58
- let t = e.touches[0], n = t.clientX - s.x, r = t.clientY - s.y;
59
- i({
60
- x: n,
61
- y: r
62
- });
63
- }, h = () => {
64
- g();
65
- }, g = () => {
66
- if (!l.current) return;
67
- let e = l.current.getBoundingClientRect(), t = window.innerWidth, n = window.innerHeight, r = e.width / 4, a = e.height / 4, s = Math.max(0, 0 - e.left), c = Math.max(0, e.right - t), u = Math.max(0, 0 - e.top), d = Math.max(0, e.bottom - n);
68
- (s > r || c > r || u > a || d > a) && i({
69
- x: 0,
70
- y: 0
71
- }), o(!1);
72
- };
73
- return (0, F.useEffect)(() => {
74
- if (a) return document.addEventListener("mousemove", d), document.addEventListener("mouseup", f), document.addEventListener("touchmove", m, { passive: !1 }), document.addEventListener("touchend", h), () => {
75
- document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", f), document.removeEventListener("touchmove", m), document.removeEventListener("touchend", h);
76
- };
77
- }, [a, s]), /* @__PURE__ */ (0, I.jsx)("div", {
78
- ref: l,
79
- className: t,
80
- style: {
81
- ...n,
82
- transform: `translate(${r.x}px, ${r.y}px)`,
83
- cursor: a ? "grabbing" : "grab"
84
- },
85
- onMouseDown: u,
86
- onTouchStart: p,
87
- children: e
88
- });
89
- }, jn = /* @__PURE__ */ t(((e) => {
10
+ import { r as e, t } from "./rolldown-runtime-DB1nSOXr.js";
11
+ import { A as n, B as r, C as i, F as a, G as o, H as s, I as c, J as l, L as u, U as d, V as f, W as p, Z as m, _ as h, a as g, at as _, c as v, d as y, dt as b, f as x, h as S, j as C, k as w, l as T, m as E, n as D, ot as O, p as k, q as ee, rt as te, s as A, st as ne, t as re, tt as ie, ut as ae, v as j, y as oe, z as se, zt as ce } from "./i18n-C3pmOHfm.js";
12
+ import { s as le } from "./efp-debug-init-DDFZgkyx.js";
13
+ import { t as ue } from "./react-yYxHcXya.js";
14
+ import { t as de } from "./jsx-runtime-BV6RRH6M.js";
15
+ import { n as fe, r as M, t as pe } from "./loadImage-CmTxbx4i.js";
16
+ import { t as me } from "./is-webview-B0VkhBwH.js";
17
+ import { t as he } from "./scheduler-DgvhfFMA.js";
18
+ import { $ as ge, $t as _e, A as ve, At as ye, B as be, Bt as xe, C as Se, Ct as Ce, D as we, Dt as Te, E as Ee, Et as De, F as Oe, Ft as ke, G as Ae, Gt as je, H as Me, Ht as Ne, I as Pe, It as Fe, J as Ie, Jt as Le, K as Re, Kt as ze, L as Be, Lt as Ve, M as He, Mt as Ue, N as We, Nt as Ge, O as Ke, Ot as qe, P as Je, Pt as Ye, Q as Xe, Qt as N, R as Ze, Rt as Qe, S as $e, St as et, T as tt, Tt as nt, U as rt, Ut as it, V as at, Vt as ot, W as st, Wt as ct, X as lt, Xt as ut, Y as dt, Yt as ft, Z as pt, Zt as mt, _ as ht, _t as gt, a as _t, an as vt, at as yt, b as bt, bt as xt, cn as St, ct as Ct, d as wt, dn as Tt, dt as Et, en as Dt, et as Ot, f as kt, fn as At, ft as jt, g as Mt, gt as Nt, h as Pt, ht as Ft, i as It, in as Lt, it as Rt, j as zt, jt as Bt, k as Vt, kt as Ht, l as Ut, ln as Wt, lt as Gt, m as Kt, mn as qt, mt as Jt, nn as Yt, nt as Xt, o as Zt, on as Qt, ot as $t, p as en, pn as tn, pt as nn, q as rn, qt as an, r as on, rn as sn, rt as cn, s as ln, sn as un, st as dn, tn as fn, tt as pn, u as mn, un as P, ut as hn, v as gn, vt as _n, w as vn, wt as yn, x as bn, xt as xn, y as Sn, yt as Cn, z as wn, zt as Tn } from "./debug-context-Cx6l3A8H.js";
19
+ import { t as En } from "./classnames-CkjzoXiH.js";
20
+ import { t as Dn } from "./Button-CQwO9tIg.js";
21
+ //#region ../../node_modules/.pnpm/resize-observer@1.0.4/node_modules/resize-observer/lib/ContentRect.js
22
+ var On = /* @__PURE__ */ t(((e) => {
90
23
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ContentRect = function(e) {
91
24
  if ("getBBox" in e) {
92
25
  var t = e.getBBox();
@@ -106,9 +39,9 @@ var I = de(), An = ({ children: e, className: t, style: n }) => {
106
39
  });
107
40
  }
108
41
  };
109
- })), Mn = /* @__PURE__ */ t(((e) => {
42
+ })), kn = /* @__PURE__ */ t(((e) => {
110
43
  Object.defineProperty(e, "__esModule", { value: !0 });
111
- var t = jn();
44
+ var t = On();
112
45
  e.ResizeObservation = function() {
113
46
  function e(e) {
114
47
  this.target = e, this.$$broadcastWidth = this.$$broadcastHeight = 0;
@@ -130,18 +63,18 @@ var I = de(), An = ({ children: e, className: t, style: n }) => {
130
63
  return !!e && (e.width !== this.broadcastWidth || e.height !== this.broadcastHeight);
131
64
  }, e;
132
65
  }();
133
- })), Nn = /* @__PURE__ */ t(((e) => {
66
+ })), An = /* @__PURE__ */ t(((e) => {
134
67
  Object.defineProperty(e, "__esModule", { value: !0 });
135
- var t = jn();
68
+ var t = On();
136
69
  e.ResizeObserverEntry = function() {
137
70
  function e(e) {
138
71
  this.target = e, this.contentRect = t.ContentRect(e);
139
72
  }
140
73
  return e;
141
74
  }();
142
- })), Pn = /* @__PURE__ */ t(((e) => {
75
+ })), jn = /* @__PURE__ */ t(((e) => {
143
76
  Object.defineProperty(e, "__esModule", { value: !0 });
144
- var t = Mn(), n = Nn(), r = [], i = function() {
77
+ var t = kn(), n = An(), r = [], i = function() {
145
78
  function e(e) {
146
79
  this.$$observationTargets = [], this.$$activeTargets = [], this.$$skippedTargets = [];
147
80
  var t = s(e);
@@ -232,7 +165,74 @@ var I = de(), An = ({ children: e, className: t, style: n }) => {
232
165
  e.install = function() {
233
166
  return window.ResizeObserver = i;
234
167
  };
235
- }));
168
+ })), F = /* @__PURE__ */ e(ue(), 1), Mn = "button, input, select, textarea, a, [contenteditable=\"true\"], [draggable=\"false\"]";
169
+ function Nn(e) {
170
+ return !!(e != null && e.closest(Mn));
171
+ }
172
+ //#endregion
173
+ //#region ../ui/src/components/Draggable/Draggable.tsx
174
+ var I = de(), Pn = ({ children: e, className: t, style: n }) => {
175
+ let [r, i] = (0, F.useState)({
176
+ x: 0,
177
+ y: 0
178
+ }), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)({
179
+ x: 0,
180
+ y: 0
181
+ }), l = (0, F.useRef)(null), u = (e) => {
182
+ Nn(e.target) || (o(!0), c({
183
+ x: e.clientX - r.x,
184
+ y: e.clientY - r.y
185
+ }), e.preventDefault());
186
+ }, d = (e) => {
187
+ if (!a) return;
188
+ let t = e.clientX - s.x, n = e.clientY - s.y;
189
+ i({
190
+ x: t,
191
+ y: n
192
+ });
193
+ }, f = () => {
194
+ g();
195
+ }, p = (e) => {
196
+ if (Nn(e.target)) return;
197
+ let t = e.touches[0];
198
+ o(!0), c({
199
+ x: t.clientX - r.x,
200
+ y: t.clientY - r.y
201
+ });
202
+ }, m = (e) => {
203
+ if (!a) return;
204
+ let t = e.touches[0], n = t.clientX - s.x, r = t.clientY - s.y;
205
+ i({
206
+ x: n,
207
+ y: r
208
+ });
209
+ }, h = () => {
210
+ g();
211
+ }, g = () => {
212
+ if (!l.current) return;
213
+ let e = l.current.getBoundingClientRect(), t = window.innerWidth, n = window.innerHeight, r = e.width / 4, a = e.height / 4, s = Math.max(0, 0 - e.left), c = Math.max(0, e.right - t), u = Math.max(0, 0 - e.top), d = Math.max(0, e.bottom - n);
214
+ (s > r || c > r || u > a || d > a) && i({
215
+ x: 0,
216
+ y: 0
217
+ }), o(!1);
218
+ };
219
+ return (0, F.useEffect)(() => {
220
+ if (a) return document.addEventListener("mousemove", d), document.addEventListener("mouseup", f), document.addEventListener("touchmove", m, { passive: !1 }), document.addEventListener("touchend", h), () => {
221
+ document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", f), document.removeEventListener("touchmove", m), document.removeEventListener("touchend", h);
222
+ };
223
+ }, [a, s]), /* @__PURE__ */ (0, I.jsx)("div", {
224
+ ref: l,
225
+ className: t,
226
+ style: {
227
+ ...n,
228
+ transform: `translate(${r.x}px, ${r.y}px)`,
229
+ cursor: a ? "grabbing" : "grab"
230
+ },
231
+ onMouseDown: u,
232
+ onTouchStart: p,
233
+ children: e
234
+ });
235
+ };
236
236
  //#endregion
237
237
  //#region ../geometry/src/lib/angles.ts
238
238
  function Fn(e) {
@@ -10173,12 +10173,12 @@ function Iv(e) {
10173
10173
  }
10174
10174
  var Lv = !1, Rv;
10175
10175
  function zv() {
10176
- return Rv != null || (Rv = import("./DebugTools-D6MakMFa.js")), Rv;
10176
+ return Rv != null || (Rv = import("./DebugTools-BCE8StGX.js")), Rv;
10177
10177
  }
10178
10178
  async function Bv() {
10179
10179
  await zv();
10180
10180
  }
10181
- var Vv = (0, F.lazy)(() => import("./DebugTools-D6MakMFa.js").then((e) => ({ default: e.DebugTools })));
10181
+ var Vv = (0, F.lazy)(() => import("./DebugTools-BCE8StGX.js").then((e) => ({ default: e.DebugTools })));
10182
10182
  function Hv(e) {
10183
10183
  let t = (0, H.c)(7), n, r, i;
10184
10184
  t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({debugEnabled: i, children: r, ...n} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i), i && (0, F.use)(zv());
@@ -22202,7 +22202,7 @@ async function PM(e = NM) {
22202
22202
  }
22203
22203
  //#endregion
22204
22204
  //#region src/store/init/init-ui.ts
22205
- var FM = Pn(), IM = null;
22205
+ var FM = jn(), IM = null;
22206
22206
  function LM(e) {
22207
22207
  let t = window.__efpElement;
22208
22208
  if (!t) return;
@@ -23054,7 +23054,7 @@ function tP({ isSaveDisabled: e, isDeleteDisabled: t, areControlsDisabled: r, co
23054
23054
  let [_, v] = (0, F.useState)(null);
23055
23055
  return /* @__PURE__ */ (0, I.jsx)("div", {
23056
23056
  className: "efp-set-kiosk-mode-anchor",
23057
- children: /* @__PURE__ */ (0, I.jsxs)(An, {
23057
+ children: /* @__PURE__ */ (0, I.jsxs)(Pn, {
23058
23058
  className: "efp-set-kiosk-mode",
23059
23059
  children: [
23060
23060
  /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -23716,7 +23716,7 @@ var cF = (iF = class {
23716
23716
  }
23717
23717
  async buildEngine() {
23718
23718
  try {
23719
- let { default: e } = await import("./fuse-By5SED55.js").then((e) => e.n);
23719
+ let { default: e } = await import("./fuse-D9Fc86Mp.js").then((e) => e.n);
23720
23720
  oe(() => {
23721
23721
  this.engine = new e([], {
23722
23722
  keys: this.keys,
@@ -26154,8 +26154,8 @@ var Tz = (nz = E({ keepAlive: !0 }), rz = E({ keepAlive: !0 }), iz = E({ keepAli
26154
26154
  e != null && e.from && e != null && e.to && window.setTimeout(() => {
26155
26155
  this.rootStore.showMap();
26156
26156
  }, navigator.userAgent.toLowerCase().indexOf("android") > -1 ? 400 : 50), (e == null ? void 0 : e.from) instanceof ys && e.from.visible && r.push(e.from), (e == null ? void 0 : e.to) instanceof ys && e.to.visible && (this.tempToBooth = null, r.push(e.to)), !e && Q.fp.onDirection && Q.fp.onDirection(null);
26157
- let i = () => {
26158
- if (this.rootStore.moveToList(r), $.details = e, e && (!e.from || !e.to) && Q.showOverlay(), e != null && e.to && e != null && e.from) {
26157
+ let i = y(() => {
26158
+ if (this.rootStore.moveToList(r), $.details = e, e && (!e.from || !e.to) && $.overlayBottom && ($.desiredOverlaySize = "medium"), e != null && e.to && e != null && e.from) {
26159
26159
  let t = Ez(e.from);
26160
26160
  t && this.rootStore.layerStore.updateVisibility(t, !0);
26161
26161
  }
@@ -26164,7 +26164,7 @@ var Tz = (nz = E({ keepAlive: !0 }), rz = E({ keepAlive: !0 }), iz = E({ keepAli
26164
26164
  t ? this.currentRouteLayer = t : n && (this.currentRouteLayer = n);
26165
26165
  }
26166
26166
  t && e != null && e.from && e != null && e.to && IP(AP.ClickDirections, `${e != null && e.from ? "From " + e.from.name : ""} ${e != null && e.to ? "To " + e.to.name : ""}`);
26167
- };
26167
+ });
26168
26168
  n ? i() : setTimeout(i, 200);
26169
26169
  }
26170
26170
  rebuildRouteFromPosition(e) {
@@ -30313,6 +30313,10 @@ var KU = ["dimensions25"], qU = (cH = h.struct, lH = h.ref, uH = h.ref, dH = h.r
30313
30313
  for (let e of this.interfaceMetadata) if (e.isActive()) return e;
30314
30314
  return null;
30315
30315
  }
30316
+ get activeInterfaceId() {
30317
+ var e;
30318
+ return (e = this.activeInterfaceData) == null ? void 0 : e.id;
30319
+ }
30316
30320
  get searchBoxConfig() {
30317
30321
  let e = this.activeInterfaceData;
30318
30322
  return !e || !e.searchBoxConfig ? {
@@ -30862,7 +30866,7 @@ var KU = ["dimensions25"], qU = (cH = h.struct, lH = h.ref, uH = h.ref, dH = h.r
30862
30866
  initializer: function() {
30863
30867
  return { ...this.defaultMapSettings };
30864
30868
  }
30865
- }), X(J.prototype, "setMapSettings", [y], Object.getOwnPropertyDescriptor(J.prototype, "setMapSettings"), J.prototype), X(J.prototype, "resetMapSettings", [y], Object.getOwnPropertyDescriptor(J.prototype, "resetMapSettings"), J.prototype), X(J.prototype, "baseQRCodeUrl", [E], Object.getOwnPropertyDescriptor(J.prototype, "baseQRCodeUrl"), J.prototype), X(J.prototype, "viewMapOnPhoneQRCodeUrl", [E], Object.getOwnPropertyDescriptor(J.prototype, "viewMapOnPhoneQRCodeUrl"), J.prototype), X(J.prototype, "routeQRCodeUrl", [E], Object.getOwnPropertyDescriptor(J.prototype, "routeQRCodeUrl"), J.prototype), X(J.prototype, "isFeaturedExhibitorActive", [E], Object.getOwnPropertyDescriptor(J.prototype, "isFeaturedExhibitorActive"), J.prototype), X(J.prototype, "activeInterfaceData", [E], Object.getOwnPropertyDescriptor(J.prototype, "activeInterfaceData"), J.prototype), X(J.prototype, "searchBoxConfig", [E], Object.getOwnPropertyDescriptor(J.prototype, "searchBoxConfig"), J.prototype), X(J.prototype, "searchBoxActions", [E], Object.getOwnPropertyDescriptor(J.prototype, "searchBoxActions"), J.prototype), X(J.prototype, "overlayInterfaceClasses", [E], Object.getOwnPropertyDescriptor(J.prototype, "overlayInterfaceClasses"), J.prototype), X(J.prototype, "isOverlayOpen", [E], Object.getOwnPropertyDescriptor(J.prototype, "isOverlayOpen"), J.prototype), X(J.prototype, "setOverlayScrolled", [y], Object.getOwnPropertyDescriptor(J.prototype, "setOverlayScrolled"), J.prototype), X(J.prototype, "setListScrollTop", [y], Object.getOwnPropertyDescriptor(J.prototype, "setListScrollTop"), J.prototype), X(J.prototype, "setListScrollItemId", [y], Object.getOwnPropertyDescriptor(J.prototype, "setListScrollItemId"), J.prototype), X(J.prototype, "getListScrollTop", [y], Object.getOwnPropertyDescriptor(J.prototype, "getListScrollTop"), J.prototype), X(J.prototype, "getListScrollItemId", [y], Object.getOwnPropertyDescriptor(J.prototype, "getListScrollItemId"), J.prototype), X(J.prototype, "clearListScroll", [y], Object.getOwnPropertyDescriptor(J.prototype, "clearListScroll"), J.prototype), X(J.prototype, "bannerType", [E], Object.getOwnPropertyDescriptor(J.prototype, "bannerType"), J.prototype), X(J.prototype, "isBannerVisible", [E], Object.getOwnPropertyDescriptor(J.prototype, "isBannerVisible"), J.prototype), X(J.prototype, "setCurrentBanner", [y], Object.getOwnPropertyDescriptor(J.prototype, "setCurrentBanner"), J.prototype), VU = X(J.prototype, "forceShowDetails", [h], {
30869
+ }), X(J.prototype, "setMapSettings", [y], Object.getOwnPropertyDescriptor(J.prototype, "setMapSettings"), J.prototype), X(J.prototype, "resetMapSettings", [y], Object.getOwnPropertyDescriptor(J.prototype, "resetMapSettings"), J.prototype), X(J.prototype, "baseQRCodeUrl", [E], Object.getOwnPropertyDescriptor(J.prototype, "baseQRCodeUrl"), J.prototype), X(J.prototype, "viewMapOnPhoneQRCodeUrl", [E], Object.getOwnPropertyDescriptor(J.prototype, "viewMapOnPhoneQRCodeUrl"), J.prototype), X(J.prototype, "routeQRCodeUrl", [E], Object.getOwnPropertyDescriptor(J.prototype, "routeQRCodeUrl"), J.prototype), X(J.prototype, "isFeaturedExhibitorActive", [E], Object.getOwnPropertyDescriptor(J.prototype, "isFeaturedExhibitorActive"), J.prototype), X(J.prototype, "activeInterfaceData", [E], Object.getOwnPropertyDescriptor(J.prototype, "activeInterfaceData"), J.prototype), X(J.prototype, "activeInterfaceId", [E], Object.getOwnPropertyDescriptor(J.prototype, "activeInterfaceId"), J.prototype), X(J.prototype, "searchBoxConfig", [E], Object.getOwnPropertyDescriptor(J.prototype, "searchBoxConfig"), J.prototype), X(J.prototype, "searchBoxActions", [E], Object.getOwnPropertyDescriptor(J.prototype, "searchBoxActions"), J.prototype), X(J.prototype, "overlayInterfaceClasses", [E], Object.getOwnPropertyDescriptor(J.prototype, "overlayInterfaceClasses"), J.prototype), X(J.prototype, "isOverlayOpen", [E], Object.getOwnPropertyDescriptor(J.prototype, "isOverlayOpen"), J.prototype), X(J.prototype, "setOverlayScrolled", [y], Object.getOwnPropertyDescriptor(J.prototype, "setOverlayScrolled"), J.prototype), X(J.prototype, "setListScrollTop", [y], Object.getOwnPropertyDescriptor(J.prototype, "setListScrollTop"), J.prototype), X(J.prototype, "setListScrollItemId", [y], Object.getOwnPropertyDescriptor(J.prototype, "setListScrollItemId"), J.prototype), X(J.prototype, "getListScrollTop", [y], Object.getOwnPropertyDescriptor(J.prototype, "getListScrollTop"), J.prototype), X(J.prototype, "getListScrollItemId", [y], Object.getOwnPropertyDescriptor(J.prototype, "getListScrollItemId"), J.prototype), X(J.prototype, "clearListScroll", [y], Object.getOwnPropertyDescriptor(J.prototype, "clearListScroll"), J.prototype), X(J.prototype, "bannerType", [E], Object.getOwnPropertyDescriptor(J.prototype, "bannerType"), J.prototype), X(J.prototype, "isBannerVisible", [E], Object.getOwnPropertyDescriptor(J.prototype, "isBannerVisible"), J.prototype), X(J.prototype, "setCurrentBanner", [y], Object.getOwnPropertyDescriptor(J.prototype, "setCurrentBanner"), J.prototype), VU = X(J.prototype, "forceShowDetails", [h], {
30866
30870
  configurable: !0,
30867
30871
  enumerable: !0,
30868
30872
  writable: !0,
@@ -31203,7 +31207,7 @@ Q.toursStore;
31203
31207
  var sW = Q.intercomStore;
31204
31208
  window.__store = Q;
31205
31209
  //#endregion
31206
- export { NP as $, of as $t, VR as A, hr as An, Bv as At, LF as B, zf as Bt, Pz as C, uo as Cn, gj as Ct, JR as D, Rr as Dn, wA as Dt, Mz as E, Qr as En, GA as Et, VI as F, Fn, Xg as Ft, hF as G, pf as Gt, AF as H, Af as Ht, HF as I, Pn as In, Zg as It, jP as J, ff as Jt, WP as K, _f as Kt, UF as L, kn as Ln, Kf as Lt, BR as M, nr as Mn, uv as Mt, sR as N, Hn as Nn, cv as Nt, UR as O, jr as On, gA as Ot, BL as P, Kn as Pn, Q_ as Pt, FP as Q, nf as Qt, VF as R, Yf as Rt, Iz as S, xo as Sn, Hj as St, Az as T, L as Tn, XA as Tt, MF as U, Of as Ut, IF as V, If as Vt, jF as W, Cf as Wt, MP as X, hf as Xt, VP as Y, mf as Yt, IP as Z, lf as Zt, KV as _, Ro as _n, MM as _t, iW as a, Bc as an, aP as at, TV as b, Co as bn, rM as bt, Q as c, tc as cn, TN as ct, oH as d, ys as dn, kN as dt, ef as en, RP as et, rH as f, bs as fn, EN as ft, GV as g, Ho as gn, zM as gt, YV as h, Wo as hn, LM as ht, sW as i, zc as in, oP as it, zR as j, sr as jn, jv as jt, HR as k, yr as kn, hA as kt, $ as l, Hs as ln, AN as lt, XV as m, Xo as mn, GM as mt, nW as n, Vc as nn, SP as nt, tW as o, Cc as on, tP as ot, sH as p, xs as pn, DN as pt, AP as q, vf as qt, aW as r, Dc as rn, sP as rt, oW as s, xc as sn, JN as st, rW as t, Kc as tn, EP as tt, iH as u, Ns as un, ON as ut, VV as v, Uo as vn, SM as vt, Nz as w, $a as wn, fj as wt, NB as x, bo as xn, Zj as xt, RV as y, To as yn, xM as yt, zF as z, Bf as zt };
31210
+ export { NP as $, of as $t, VR as A, hr as An, Bv as At, LF as B, zf as Bt, Pz as C, uo as Cn, gj as Ct, JR as D, Rr as Dn, wA as Dt, Mz as E, Qr as En, GA as Et, VI as F, Fn, Xg as Ft, hF as G, pf as Gt, AF as H, Af as Ht, HF as I, Nn as In, Zg as It, jP as J, ff as Jt, WP as K, _f as Kt, UF as L, jn as Ln, Kf as Lt, BR as M, nr as Mn, uv as Mt, sR as N, Hn as Nn, cv as Nt, UR as O, jr as On, gA as Ot, BL as P, Kn as Pn, Q_ as Pt, FP as Q, nf as Qt, VF as R, Yf as Rt, Iz as S, xo as Sn, Hj as St, Az as T, L as Tn, XA as Tt, MF as U, Of as Ut, IF as V, If as Vt, jF as W, Cf as Wt, MP as X, hf as Xt, VP as Y, mf as Yt, IP as Z, lf as Zt, KV as _, Ro as _n, MM as _t, iW as a, Bc as an, aP as at, TV as b, Co as bn, rM as bt, Q as c, tc as cn, TN as ct, oH as d, ys as dn, kN as dt, ef as en, RP as et, rH as f, bs as fn, EN as ft, GV as g, Ho as gn, zM as gt, YV as h, Wo as hn, LM as ht, sW as i, zc as in, oP as it, zR as j, sr as jn, jv as jt, HR as k, yr as kn, hA as kt, $ as l, Hs as ln, AN as lt, XV as m, Xo as mn, GM as mt, nW as n, Vc as nn, SP as nt, tW as o, Cc as on, tP as ot, sH as p, xs as pn, DN as pt, AP as q, vf as qt, aW as r, Dc as rn, sP as rt, oW as s, xc as sn, JN as st, rW as t, Kc as tn, EP as tt, iH as u, Ns as un, ON as ut, VV as v, Uo as vn, SM as vt, Nz as w, $a as wn, fj as wt, NB as x, bo as xn, Zj as xt, RV as y, To as yn, xM as yt, zF as z, Bf as zt };
31207
31211
 
31208
31212
  ;/* vite-per-chunk-css */
31209
31213
  __vite_inject_css__(".efp-set-kiosk-mode-anchor{bottom:calc(1.25rem * var(--ui-scale));z-index:9999;pointer-events:none;position:fixed;left:50%;transform:translate(-50%)}.efp-set-kiosk-mode{width:calc(23.75rem * var(--ui-scale));background:var(--color-primary);border-radius:var(--border-radius-xl);box-shadow:var(--shadow-md);pointer-events:auto;line-height:1;display:grid}.efp-set-kiosk-mode__header{padding:calc(.625rem * var(--ui-scale)) calc(1rem * var(--ui-scale));font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);color:var(--color-white);text-align:center;grid-template-columns:auto 1fr auto;place-items:center;display:grid}.efp-set-kiosk-mode__header i{font-size:var(--icon-size-xl)}.efp-set-kiosk-mode__header img{width:var(--icon-size-xl);height:var(--icon-size-xl)}.efp-set-kiosk-mode__close{box-shadow:none;cursor:pointer;background:0 0;border:0;margin:0;padding:0}.efp-confirm-dialog{background:var(--color-white);box-shadow:var(--shadow-md);border-radius:var(--border-radius-xl);padding:calc(1rem * var(--ui-scale)) calc(1.125rem * var(--ui-scale));gap:calc(1rem * var(--ui-scale));display:grid;position:relative}.efp-confirm-dialog__content{font-size:var(--font-size-xl);font-weight:var(--font-weight-normal)}.efp-confirm-dialog__content strong{font-weight:var(--font-weight-medium)}.efp-confirm-dialog__controls{gap:calc(.625rem * var(--ui-scale));grid-template-columns:1fr 1fr;display:grid}.efp-info-message{border-radius:var(--border-radius-xl);padding:calc(1rem * var(--ui-scale)) calc(1.125rem * var(--ui-scale));background:var(--color-white);gap:calc(.5rem * var(--ui-scale));display:grid;position:relative}.efp-info-message__item{gap:calc(.625rem * var(--ui-scale));font-size:var(--font-size-xl);font-weight:var(--font-weight-normal);grid-auto-flow:column;place-content:flex-start;place-items:center;line-height:1;display:grid}.efp-info-message__item strong{font-weight:var(--font-weight-bold)}.efp-info-message__img{width:calc(1.875rem * var(--ui-scale));height:calc(1.875rem * var(--ui-scale))}.efp-set-kiosk-form{border-radius:var(--border-radius-xl);background:var(--color-white);padding:calc(1rem * var(--ui-scale)) calc(1.125rem * var(--ui-scale));display:grid;position:relative}.efp-set-kiosk-form__content{gap:calc(1rem * var(--ui-scale));display:grid}.efp-set-kiosk-form__inputs{gap:calc(.625rem * var(--ui-scale));display:grid}.efp-set-kiosk-form__controls{gap:calc(.625rem * var(--ui-scale));grid-template-columns:1fr 2fr;display:grid}.efp-range-input{gap:calc(.3125rem * var(--ui-scale));width:100%;font-size:var(--font-size-lg);display:grid}.efp-range-input__header{text-align:center;color:var(--color-black);font-size:var(--font-size-lg);font-weight:var(--font-weight-normal);grid-template-columns:auto 1fr auto;place-items:center;display:grid}.efp-range-input__header strong{font-weight:var(--font-weight-medium)}.efp-range-input__control{width:calc(1.25rem * var(--ui-scale));height:calc(1.25rem * var(--ui-scale));box-shadow:none;cursor:pointer;border:0;outline:none;place-content:center;place-items:center;margin:0;padding:0;display:grid}.efp-range-input__control i{font-size:var(--icon-size-xxs)}.efp-range-input__input-block{width:100%;height:calc(1.375rem * var(--ui-scale));place-items:center;display:grid;position:relative}.efp-range-input__input{opacity:0;z-index:2;width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.efp-range-input__custom-input{height:calc(.375rem * var(--ui-scale));background:var(--color-gray-400);border-radius:calc(.1875rem * var(--ui-scale));pointer-events:none;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.efp-range-input__progress{background:var(--color-primary);border-radius:inherit;height:100%;position:absolute;top:0}.efp-range-input__progress:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.efp-range-input__progress:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.efp-range-input__progress:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.efp-range-input__progress:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.efp-range-input__thumb{width:calc(1.375rem * var(--ui-scale));height:calc(1.375rem * var(--ui-scale));background:var(--color-white);border:calc(.1875rem * var(--ui-scale)) solid var(--color-primary-dark);pointer-events:none;box-shadow:var(--shadow-sm);border-radius:50%;position:absolute;top:50%}.efp-range-input__thumb:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.efp-range-input__thumb:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){left:0}.efp-range-input__thumb:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.efp-range-input__thumb:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:0}.efp-status-messages{height:calc(calc(2.75rem * var(--ui-scale)) + var(--border-radius-2xl));border-radius:var(--border-radius-xl);grid-template-rows:1fr;display:grid;position:absolute;top:0;left:0;right:0;overflow:hidden}.efp-status-messages__message{gap:calc(.375rem * var(--ui-scale));color:var(--color-white);font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);padding-bottom:var(--border-radius-2xl);grid-auto-flow:column;place-content:center;place-items:center;display:grid}.efp-status-messages__message i{font-size:var(--icon-size-md)}.efp-status-messages__message--success{background:var(--color-green)}.efp-status-messages__message--error{background:var(--color-red)}\n/*$vite$:1*/", "store.css", true);
@@ -1,14 +1,14 @@
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.30.0" };
4
+ e.SENTRY_RELEASE = { id: "3.31.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "edf52ee9-f3a6-424f-a5ff-f0c8342333ab", e._sentryDebugIdIdentifier = "sentry-dbid-edf52ee9-f3a6-424f-a5ff-f0c8342333ab");
7
7
  } catch {}
8
8
  })();
9
- import { t as e } from "./jsx-runtime-2z2znmc1.js";
10
- import { t } from "./settings-item-DLBfNwUk.js";
11
- import { t as n } from "./text-field-C5iLAXHr.js";
9
+ import { t as e } from "./jsx-runtime-BV6RRH6M.js";
10
+ import { t } from "./settings-item-Dp6uSDI5.js";
11
+ import { t as n } from "./text-field-D3Rb6XM1.js";
12
12
  //#region ../debug/src/lib/ui/string-editor.tsx
13
13
  var r = e(), i = (e) => {
14
14
  var i;
@@ -1,15 +1,15 @@
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.30.0" };
4
+ e.SENTRY_RELEASE = { id: "3.31.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b57a1337-f6ba-488a-8e6f-60f9358b45a2", e._sentryDebugIdIdentifier = "sentry-dbid-b57a1337-f6ba-488a-8e6f-60f9358b45a2");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DtkWy_tj.js";
10
- import { t } from "./react-BgBw9jbh.js";
11
- import { D as n, i as r, l as i, n as a, s as o, u as s, y as c } from "./flex-CC4jmZ-J.js";
12
- import { t as l } from "./classnames-CtSXz0js.js";
9
+ import { r as e } from "./rolldown-runtime-DB1nSOXr.js";
10
+ import { t } from "./react-yYxHcXya.js";
11
+ import { D as n, i as r, l as i, n as a, s as o, u as s, y as c } from "./flex-CrHBC47v.js";
12
+ import { t as l } from "./classnames-CkjzoXiH.js";
13
13
  //#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.17__@types+react@19.2._5ea800d4e947acedb1fa1275f1697b17/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
14
14
  var u = /* @__PURE__ */ e(t()), d = /* @__PURE__ */ e(l()), f = {
15
15
  size: {
@@ -1,18 +1,18 @@
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.30.0" };
4
+ e.SENTRY_RELEASE = { id: "3.31.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f5429b84-6f5b-4b20-898f-e5345902ef44", e._sentryDebugIdIdentifier = "sentry-dbid-f5429b84-6f5b-4b20-898f-e5345902ef44");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DtkWy_tj.js";
10
- import { t } from "./react-BgBw9jbh.js";
11
- import { t as n } from "./jsx-runtime-2z2znmc1.js";
12
- import { t as r } from "./react-dom-CnC72DLX.js";
13
- import { C as i, E as a, O as o, T as s, _ as c, o as l, v as u, w as d } from "./flex-CC4jmZ-J.js";
14
- import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-DtjjLmZ0.js";
15
- import { t as y } from "./classnames-CtSXz0js.js";
9
+ import { r as e } from "./rolldown-runtime-DB1nSOXr.js";
10
+ import { t } from "./react-yYxHcXya.js";
11
+ import { t as n } from "./jsx-runtime-BV6RRH6M.js";
12
+ import { t as r } from "./react-dom-BpJ-AdUf.js";
13
+ import { C as i, E as a, O as o, T as s, _ as c, o as l, v as u, w as d } from "./flex-CrHBC47v.js";
14
+ import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-Bdec-Nxs.js";
15
+ import { t as y } from "./classnames-CkjzoXiH.js";
16
16
  //#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.17__@ty_cffccd7838985066e8e1d993b5cb6017/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
17
17
  var b = /* @__PURE__ */ e(r(), 1), x = /* @__PURE__ */ e(t(), 1), S = n(), C = Object.freeze({
18
18
  position: "absolute",
@@ -1,17 +1,17 @@
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.30.0" };
4
+ e.SENTRY_RELEASE = { id: "3.31.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cbb5c555-77ff-4375-8420-80c8ae476dcf", e._sentryDebugIdIdentifier = "sentry-dbid-cbb5c555-77ff-4375-8420-80c8ae476dcf");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DtkWy_tj.js";
10
- import { a as t, i as n, s as r } from "./efp-debug-init-DKE8cNyV.js";
11
- import { a as i, i as a } from "./adopt-global-settings-DNoeRJtC.js";
12
- import { t as o } from "./jsx-runtime-2z2znmc1.js";
13
- import "./settings-lkI4iHuB.js";
14
- import { t as s } from "./add-debug-secret-listener-BgrIpqdV.js";
9
+ import { r as e } from "./rolldown-runtime-DB1nSOXr.js";
10
+ import { a as t, i as n, s as r } from "./efp-debug-init-DDFZgkyx.js";
11
+ import { a as i, i as a } from "./adopt-global-settings-nxeDDXp1.js";
12
+ import { t as o } from "./jsx-runtime-BV6RRH6M.js";
13
+ import "./settings-CmbIseSw.js";
14
+ import { t as s } from "./add-debug-secret-listener-CxE72n53.js";
15
15
  //#region ../debug/src/lib/ui/render-debug-ui.tsx
16
16
  var c = /* @__PURE__ */ e(r(), 1), l = o(), u = !1;
17
17
  function d() {
@@ -26,7 +26,7 @@ function d() {
26
26
  }
27
27
  });
28
28
  let o = async (t) => {
29
- let { DebugUi: n } = await import("./debug-ui-PgwhPHHP.js"), { createRoot: i } = await import("./client-DlH0b6aw.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
29
+ let { DebugUi: n } = await import("./debug-ui-CL9NYiBY.js"), { createRoot: i } = await import("./client-DiPQk1ur.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
30
30
  document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, l.jsx)(n, {
31
31
  useDebugButtonState: r.useState,
32
32
  open: t
@@ -1,14 +1,14 @@
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.30.0" };
4
+ e.SENTRY_RELEASE = { id: "3.31.0" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "39485aff-c926-4ecb-9ba3-8a127a388075", e._sentryDebugIdIdentifier = "sentry-dbid-39485aff-c926-4ecb-9ba3-8a127a388075");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7407e64e-4c4e-4bfb-b2ef-80063ad22998", e._sentryDebugIdIdentifier = "sentry-dbid-7407e64e-4c4e-4bfb-b2ef-80063ad22998");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DtkWy_tj.js";
10
- import { t } from "./react-BgBw9jbh.js";
11
- import { l as n } from "./store-CqbDYCfW.js";
9
+ import { r as e } from "./rolldown-runtime-DB1nSOXr.js";
10
+ import { t } from "./react-yYxHcXya.js";
11
+ import { l as n } from "./store-BQJFbecZ.js";
12
12
  //#region ../ui/src/shared/activeElement.ts
13
13
  var r = (e) => !!e && "activeElement" in e;
14
14
  function i(e) {
@@ -1,12 +1,12 @@
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.30.0" };
4
+ e.SENTRY_RELEASE = { id: "3.31.0" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "df793f8e-2c61-4fcc-bf8c-e603b2d7b174", e._sentryDebugIdIdentifier = "sentry-dbid-df793f8e-2c61-4fcc-bf8c-e603b2d7b174");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "30d5a1aa-2d79-4710-91d1-937109f43b1a", e._sentryDebugIdIdentifier = "sentry-dbid-30d5a1aa-2d79-4710-91d1-937109f43b1a");
7
7
  } catch {}
8
8
  })();
9
- import { c as e, vt as t } from "./store-CqbDYCfW.js";
9
+ import { c as e, vt as t } from "./store-BQJFbecZ.js";
10
10
  //#region src/components/Map/viewport.ts
11
11
  function n(e) {
12
12
  return {
@@ -1,4 +1,4 @@
1
1
  import { type AutocompleteProps } from '@expofp/ui';
2
- declare const AutocompleteContainer: import("react").FunctionComponent<Omit<AutocompleteProps<import("@expofp/ui").AutocompleteOptionObject>, "ariaLabel" | "clearLabel" | "noOptionsLabel" | "renderTarget">>;
2
+ declare const AutocompleteContainer: import("react").FunctionComponent<Omit<AutocompleteProps<import("@expofp/ui").AutocompleteOptionObject>, "ariaLabel" | "clearLabel" | "inline" | "noOptionsLabel" | "renderTarget">>;
3
3
  export default AutocompleteContainer;
4
4
  //# sourceMappingURL=AutocompleteContainer.d.ts.map
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{Autocomplete as a}from"@expofp/ui";import{observer as m}from"mobx-react-lite";import{t as r}from"../utils/i18n";import{useRenderTarget as n}from"../utils/useRenderTarget";const p=m(e=>{const o=n();return t(a,{...e,renderTarget:o,noOptionsLabel:r("No options"),ariaLabel:r("Search options"),clearLabel:r("Clear")})});export default p;
1
+ import{jsx as t}from"react/jsx-runtime";import{Autocomplete as a}from"@expofp/ui";import{observer as m}from"mobx-react-lite";import i from"../store";import{t as o}from"../utils/i18n";import{useRenderTarget as n}from"../utils/useRenderTarget";const p=m(r=>{const e=n();return t(a,{...r,renderTarget:e,inline:i.uiState.overlayBottom,noOptionsLabel:o("No options"),ariaLabel:o("Search options"),clearLabel:o("Clear")})});export default p;
@@ -1 +1 @@
1
- import{Box as h}from"@expofp/geometry";import{svgArea as p,svgAreaExplicit as y}from"../../data/svg";import u,{uiState as s}from"../../store";import{convertLocalToGps as P}from"../../utils/gps";import{useReaction as l}from"../../utils/mobx";import{expandRectByPercent as b,getVenueFitMarginPercent as v,resolveVenueFitRect as x}from"../../utils/scene-bounds";import{fitMapToLocalRect as d,getVisibleRectFitPadding as M,isLngLatInVisibleViewport as S}from"./utils/geo-config";const a=s,O=15,g=24;function L(e){return b(e,v(e,p))}function R(e,r){return Math.min(Math.max(r,e.getMinZoom()),e.getMaxZoom())}function B(e,r,m){if(m.length!==1)return!1;const o=m[0]?.id,t=u.poiMarkerStore.markers.find(c=>c.boothId===o);if(!t)return!1;const n=P(t.center.x,t.center.y,r.gpsConfig),i=M(g);return S(e,n,i)||e.easeTo({center:n,zoom:R(e,O),bearing:r.bearing,duration:500,essential:!0}),!0}export function useCameraReactions(e,r,m){l(()=>a.moveToBooths,o=>{const t=e.current;if(!o||!t||!r)return;const n=o.filter(c=>c.rect);if(n.length===0)return;if(B(t,r,n)){a.moveToBooths=null;return}const i=h.fromUnion(...n.map(c=>c.rect));d(t,L(i),r),a.moveToBooths=null}),l(()=>a.moveToRect,o=>{const t=e.current;!o||!t||!r||(d(t,o,r,{paddingPercent:a.moveToRectPaddingPercent}),a.moveToRect=null,a.moveToRectPaddingPercent=null)}),l(()=>a.zoomBy,o=>{const t=e.current;!o||!t||(t.flyTo({zoom:t.getZoom()+(o>1?.5:-.5),animate:!0,duration:500}),a.zoomBy=null)}),l(()=>[s.moveToLocation,u.maplibreStore.cameraPort,u.routeStore.currentPosition],([o])=>{if(!o)return;const t=e.current,n=u.routeStore.currentPosition;if(!n){s.moveToLocation=!1;return}if(!t)return;const{lng:i,lat:c}=n,T=typeof i=="number"&&Number.isFinite(i)&&typeof c=="number"&&Number.isFinite(c);s.moveToLocation=!1;let f;if(T)f=[i,c];else{if(!r)return;f=P(n.x,n.y,r.gpsConfig)}t.flyTo({center:f,animate:!0,duration:1e3})}),l(()=>s.centerMap,o=>{const t=e.current;if(!o||!t||!r)return;if(!(s.list.type==="search"&&!s.list.text)){const{rect:i}=x({layerViewbox:u.layerStore.viewboxRectangle,explicitArea:y?p:null,layerRectangle:u.layerStore.rectangle,sceneDef:m,svgArea:p});d(t,i,r)}s.centerMap=!1})}
1
+ import{Box as h}from"@expofp/geometry";import{svgArea as f,svgAreaExplicit as y}from"../../data/svg";import u,{uiState as s}from"../../store";import{convertLocalToGps as T}from"../../utils/gps";import{useReaction as l}from"../../utils/mobx";import{expandRectByPercent as b,getVenueFitMarginPercent as v,resolveVenueFitRect as x}from"../../utils/scene-bounds";import{fitMapToLocalRect as d,getVisibleRectFitPadding as O,isLngLatInVisibleViewport as M}from"./utils/geo-config";const a=s,S=15,g=24,L=20;function R(e){return b(e,v(e,f)).expand(L)}function B(e,r){return Math.min(Math.max(r,e.getMinZoom()),e.getMaxZoom())}function I(e,r,m){if(m.length!==1)return!1;const o=m[0]?.id,t=u.poiMarkerStore.markers.find(c=>c.boothId===o);if(!t)return!1;const n=T(t.center.x,t.center.y,r.gpsConfig),i=O(g);return M(e,n,i)||e.easeTo({center:n,zoom:B(e,S),bearing:r.bearing,duration:500,essential:!0}),!0}export function useCameraReactions(e,r,m){l(()=>a.moveToBooths,o=>{const t=e.current;if(!o||!t||!r)return;const n=o.filter(c=>c.rect);if(n.length===0)return;if(I(t,r,n)){a.moveToBooths=null;return}const i=h.fromUnion(...n.map(c=>c.rect));d(t,R(i),r),a.moveToBooths=null}),l(()=>a.moveToRect,o=>{const t=e.current;!o||!t||!r||(d(t,o,r,{paddingPercent:a.moveToRectPaddingPercent}),a.moveToRect=null,a.moveToRectPaddingPercent=null)}),l(()=>a.zoomBy,o=>{const t=e.current;!o||!t||(t.flyTo({zoom:t.getZoom()+(o>1?.5:-.5),animate:!0,duration:500}),a.zoomBy=null)}),l(()=>[s.moveToLocation,u.maplibreStore.cameraPort,u.routeStore.currentPosition],([o])=>{if(!o)return;const t=e.current,n=u.routeStore.currentPosition;if(!n){s.moveToLocation=!1;return}if(!t)return;const{lng:i,lat:c}=n,P=typeof i=="number"&&Number.isFinite(i)&&typeof c=="number"&&Number.isFinite(c);s.moveToLocation=!1;let p;if(P)p=[i,c];else{if(!r)return;p=T(n.x,n.y,r.gpsConfig)}t.flyTo({center:p,animate:!0,duration:1e3})}),l(()=>s.centerMap,o=>{const t=e.current;if(!o||!t||!r)return;if(!(s.list.type==="search"&&!s.list.text)){const{rect:i}=x({layerViewbox:u.layerStore.viewboxRectangle,explicitArea:y?f:null,layerRectangle:u.layerStore.rectangle,sceneDef:m,svgArea:f});d(t,i,r)}s.centerMap=!1})}
@@ -1 +1 @@
1
- import{jsx as o,jsxs as v}from"react/jsx-runtime";import{Overlay as y}from"@expofp/ui";import S from"classnames";import{observer as h}from"mobx-react-lite";import{useCallback as s,useMemo as a}from"react";import{overlayStore as m,uiState as e}from"../store";import{t as k}from"../utils/i18n";import z from"./Bookmarks";import C from"./Booth/Booth";import g from"./Category";import b from"./Event";import O from"./Exhibitor";import x from"./Filter";import M from"./Language";import P from"./Menu";import A from"./OverlayParticles";import w from"./RoutePlanner/RoutePlanner";import E from"./Search";import _ from"./Sessions";import j from"./Speaker";import F from"./Speakers";import R from"./TourPoints";import B from"./Tours";import I from"./Visited";import K from"./Wayfinding";const L={full:"full",medium:"medium",small:"medium"},N=t=>L[t],T=h(({isGDPR:t,consent:n})=>{const c=s(r=>{e.desiredOverlaySize=r},[]),d=s(r=>{e.setOverlayScrolled(r)},[]),p=e.overlaySize&&N(e.overlaySize),f=a(()=>[e.list.type,e.details],[e.list.type,e.details]),u=a(()=>{const r={"-backdrop":e.canvasStarted&&e.shouldUseBackdrop&&!e.dimmed&&!e.galleryActive,"-no-transition":e.dimmed,"-gallery-active":e.galleryActive,collapsed:e.overlayCollapsed,kiosk:e.kiosk,start:e.overlayPosition==="left",bottom:e.overlayPosition!=="left",...e.overlaySize&&{[e.overlaySize]:!0}},i=S(r),l=e.overlayInterfaceClasses.join(" ");return l?`${i} ${l}`:i},[e.canvasStarted,e.shouldUseBackdrop,e.dimmed,e.galleryActive,e.overlayCollapsed,e.kiosk,e.inIdle,e.setKioskModeEnabled,e.overlayPosition,e.overlaySize,e.overlayInterfaceClasses]);return v(y,{open:e.isOverlayOpen,size:p,particles:e.isFeaturedExhibitorActive?o(A,{}):null,className:u,mediumSizeMultiplier:m.mediumSizeMultiplier,fullSizeOffset:m.fullSizeOffset,disableDrag:e.viewerMode&&e.menu,forceFull:e.viewerMode&&e.menu,scrollResetKey:f,noContentLabel:k("No content"),onChangeSize:c,onScrollStateChange:d,onScrollActivity:()=>window.__resett?.(),children:[o(P,{isGDPR:t,consent:n}),o(E,{}),o(O,{}),o(C,{}),o(z,{}),o(I,{}),o(M,{}),o(g,{}),o(K,{}),o(x,{}),o(_,{showFilters:!0}),o(F,{showFilters:!0}),o(B,{}),o(R,{}),o(w,{}),o(b,{}),o(j,{})]})});export default T;
1
+ import{jsx as o,jsxs as y}from"react/jsx-runtime";import{Overlay as u}from"@expofp/ui";import S from"classnames";import{observer as h}from"mobx-react-lite";import{useCallback as s,useMemo as l}from"react";import{overlayStore as a,uiState as e}from"../store";import{t as k}from"../utils/i18n";import C from"./Bookmarks";import g from"./Booth/Booth";import z from"./Category";import b from"./Event";import O from"./Exhibitor";import x from"./Filter";import M from"./Language";import P from"./Menu";import w from"./OverlayParticles";import j from"./RoutePlanner/RoutePlanner";import A from"./Search";import F from"./Sessions";import B from"./Speaker";import E from"./Speakers";import R from"./TourPoints";import _ from"./Tours";import I from"./Visited";import K from"./Wayfinding";const N=h(({isGDPR:m,consent:n})=>{const c=s(r=>{e.desiredOverlaySize=r},[]),p=s(r=>{e.setOverlayScrolled(r)},[]),d=e.overlaySize,f=l(()=>[e.list.type,e.details],[e.list.type,e.details]),v=l(()=>{const r={"-backdrop":e.canvasStarted&&e.shouldUseBackdrop&&!e.dimmed&&!e.galleryActive,"-no-transition":e.dimmed,"-gallery-active":e.galleryActive,collapsed:e.overlayCollapsed,kiosk:e.kiosk,start:e.overlayPosition==="left",bottom:e.overlayPosition!=="left",...e.overlaySize&&{[e.overlaySize]:!0}},t=S(r),i=e.overlayInterfaceClasses.join(" ");return i?`${t} ${i}`:t},[e.canvasStarted,e.shouldUseBackdrop,e.dimmed,e.galleryActive,e.overlayCollapsed,e.kiosk,e.inIdle,e.setKioskModeEnabled,e.overlayPosition,e.overlaySize,e.overlayInterfaceClasses]);return y(u,{open:e.isOverlayOpen,size:d,particles:e.isFeaturedExhibitorActive?o(w,{}):null,className:v,mediumSizeMultiplier:a.mediumSizeMultiplier,fullSizeOffset:a.fullSizeOffset,disableDrag:e.viewerMode&&e.menu,forceFull:e.viewerMode&&e.menu,scrollResetKey:f,noContentLabel:k("No content"),onChangeSize:c,onScrollStateChange:p,onScrollActivity:()=>window.__resett?.(),children:[o(P,{isGDPR:m,consent:n}),o(A,{}),o(O,{}),o(g,{}),o(C,{}),o(I,{}),o(M,{}),o(z,{}),o(K,{}),o(x,{}),o(F,{showFilters:!0}),o(E,{showFilters:!0}),o(_,{}),o(R,{}),o(j,{}),o(b,{}),o(B,{})]})});export default N;
@@ -1 +1 @@
1
- import{jsx as a,jsxs as b}from"react/jsx-runtime";import"./SearchBox.scss";import f from"classnames";import{useObserver as D}from"mobx-react-lite";import k,{useCallback as T,useEffect as v,useRef as C}from"react";import o,{searchStore as e}from"../store";import z from"../tools/debounce";import{GaEventActions as j,sendEventToGa as K}from"../tools/gtag";import{handleCustomCommand as L}from"../utils/customCommands";import{t as i}from"../utils/i18n";import{useAutorun as l}from"../utils/mobx";import{Badge as P}from"./";const G=1e3;function R({className:g}){const w=C(),p=C(null);function B(t){let s=0;switch(t.key){case"Down":case"ArrowDown":s=1;break;case"Up":case"ArrowUp":s=-1;break;case"Enter":t.preventDefault(),o.openActiveListItem();const n=c();n&&L(n.value);return;case"Escape":t.preventDefault(),e.closeSearch();return}s&&(t.preventDefault(),o.changeActiveListIndex(s))}function c(){return p.current}const[I,u]=k.useState(""),[h,E]=k.useState(!1);l(()=>{E(o.uiState.kiosk&&o.uiState.inIdle)}),v(()=>{if(!h){u("");return}const t=[i("Find Companies..."),i("Find Categories..."),i("Find Sessions..."),i("Search...")];let s=0,n=0,r=!1,S;const _=()=>{const d=t[s];r?(u(d.substring(0,n-1)),n--):(u(d.substring(0,n+1)),n++);let m=r?50:100;!r&&n===d.length?(r=!0,m=2e3):r&&n===0&&(r=!1,s=(s+1)%t.length,m=500),S=setTimeout(_,m)};return _(),()=>clearTimeout(S)},[h]),l(()=>{const t=document.activeElement;o.uiState.overlaySize!=="full"&&t===c()&&!e.isFocused&&c()?.blur()}),l(()=>{o.uiState.menu&&o.uiState.kiosk&&e.setFocused(!1)}),l(()=>{const t=c(),s=document.activeElement;t&&e.isFocused&&s!==t&&!e.skipInputFocus&&t.focus()}),v(()=>{o.fuzzySearchEngineStore.loadEngine()},[]);const N=T(z(()=>{e.searchText&&K(j.Search,e.searchText),window.__resett?.()},G),[]);function M(){e.setSearchText(c()?.value||""),N()}function y(){e.setFocused(!0),window.__resett?.()}function A(){e.isFocused||(e.handleSearchAction(),setTimeout(()=>{c()?.focus()},100))}function F(){e.handleBackAction()}function x(){e.closeSearch()}return D(()=>b("div",{className:f("search-box",g,e.searchBoxClass,{"efp-semi-transparent":o.uiState.setKioskModeEnabled}),ref:w,children:[a("button",{className:f("search-box__button","search-box__button--back",{"is-mobile-details":e.isMobileDetailsMode,"search-box__button--home":e.backMode!=="back"&&o.uiState.viewerMode}),onClick:F,type:"button","aria-label":e.backMode==="back"?i("Go back"):i("Main menu"),children:a("i",{className:e.backMode==="back"?"icon-chevron-left":o.uiState.viewerMode?"icon-home-solid":"icon-menu"})}),a("div",{className:"search-box__input-wrapper",children:e.shouldShowSearchInput?a("input",{ref:p,type:"search",className:"search-box__input",placeholder:h?I:e.placeholder,"aria-label":"Search",value:e.searchText,onChange:M,onKeyDown:B,onFocus:y,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",disabled:o.uiState.setKioskModeEnabled}):b("div",{className:"search-box__title",children:[e.searchBoxIcon&&a("i",{className:f("search-box__title-icon",e.searchBoxIcon)}),b("div",{className:"search-box__title-content",children:[a("strong",{className:"search-box__title-text",children:e.searchBoxTitle}),e.searchBoxSubtitle&&a("span",{className:"search-box__title-subtitle",children:e.searchBoxSubtitle})]}),e.searchBoxBadge?a(P,{variant:"lightgray",size:"md",rounded:!0,noMargins:!0,children:e.searchBoxBadge}):null]})}),!e.shouldShowSearchInput&&e.searchBoxActions.map(t=>a("button",{className:"search-box__button search-box__button--ui-action",onClick:t.handler,type:"button","aria-label":t.label,title:t.label,children:a("i",{className:t.icon})},t.id)),a("button",{className:"search-box__button search-box__button--action",onClick:e.shouldShowSearchInput?e.shouldShowCloseButton?x:A:x,type:"button","aria-label":e.ariaLabel,children:a("i",{className:e.actionButtonIcon})})]}))}export default R;
1
+ import{jsx as o,jsxs as b}from"react/jsx-runtime";import"./SearchBox.scss";import f from"classnames";import{useObserver as D}from"mobx-react-lite";import k,{useCallback as T,useEffect as v,useRef as C}from"react";import a,{searchStore as e}from"../store";import z from"../tools/debounce";import{GaEventActions as j,sendEventToGa as K}from"../tools/gtag";import{handleCustomCommand as L}from"../utils/customCommands";import{t as i}from"../utils/i18n";import{useAutorun as l}from"../utils/mobx";import{Badge as P}from"./";const G=1e3;function R({className:g}){const I=C(),p=C(null);function w(t){let s=0;switch(t.key){case"Down":case"ArrowDown":s=1;break;case"Up":case"ArrowUp":s=-1;break;case"Enter":t.preventDefault(),a.openActiveListItem();const n=c();n&&L(n.value);return;case"Escape":t.preventDefault(),e.closeSearch();return}s&&(t.preventDefault(),a.changeActiveListIndex(s))}function c(){return p.current}const[B,u]=k.useState(""),[h,E]=k.useState(!1);l(()=>{E(a.uiState.kiosk&&a.uiState.inIdle)}),v(()=>{if(!h){u("");return}const t=[i("Find Companies..."),i("Find Categories..."),i("Find Sessions..."),i("Search...")];let s=0,n=0,r=!1,S;const _=()=>{const d=t[s];r?(u(d.substring(0,n-1)),n--):(u(d.substring(0,n+1)),n++);let m=r?50:100;!r&&n===d.length?(r=!0,m=2e3):r&&n===0&&(r=!1,s=(s+1)%t.length,m=500),S=setTimeout(_,m)};return _(),()=>clearTimeout(S)},[h]),l(()=>{const t=document.activeElement;a.uiState.overlaySize!=="full"&&t===c()&&!e.isFocused&&c()?.blur()}),l(()=>{a.uiState.menu&&a.uiState.kiosk&&e.setFocused(!1)}),l(()=>{const t=c(),s=document.activeElement;t&&e.isFocused&&s!==t&&!e.skipInputFocus&&t.focus()}),v(()=>{a.fuzzySearchEngineStore.loadEngine()},[]);const N=T(z(()=>{e.searchText&&K(j.Search,e.searchText),window.__resett?.()},G),[]);function M(){e.setSearchText(c()?.value||""),N()}function y(){e.setFocused(!0),window.__resett?.()}function A(){e.isFocused||(e.handleSearchAction(),setTimeout(()=>{c()?.focus()},100))}function F(){e.handleBackAction()}function x(){e.closeSearch()}return D(()=>b("div",{className:f("search-box",g,e.searchBoxClass,{"efp-semi-transparent":a.uiState.setKioskModeEnabled}),"data-interface":a.uiState.activeInterfaceId,ref:I,children:[o("button",{className:f("search-box__button","search-box__button--back",{"is-mobile-details":e.isMobileDetailsMode,"search-box__button--home":e.backMode!=="back"&&a.uiState.viewerMode}),onClick:F,type:"button","aria-label":e.backMode==="back"?i("Go back"):i("Main menu"),children:o("i",{className:e.backMode==="back"?"icon-chevron-left":a.uiState.viewerMode?"icon-home-solid":"icon-menu"})}),o("div",{className:"search-box__input-wrapper",children:e.shouldShowSearchInput?o("input",{ref:p,type:"search",className:"search-box__input",placeholder:h?B:e.placeholder,"aria-label":"Search",value:e.searchText,onChange:M,onKeyDown:w,onFocus:y,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",disabled:a.uiState.setKioskModeEnabled}):b("div",{className:"search-box__title",children:[e.searchBoxIcon&&o("i",{className:f("search-box__title-icon",e.searchBoxIcon)}),b("div",{className:"search-box__title-content",children:[o("strong",{className:"search-box__title-text",children:e.searchBoxTitle}),e.searchBoxSubtitle&&o("span",{className:"search-box__title-subtitle",children:e.searchBoxSubtitle})]}),e.searchBoxBadge?o(P,{variant:"lightgray",size:"md",rounded:!0,noMargins:!0,children:e.searchBoxBadge}):null]})}),!e.shouldShowSearchInput&&e.searchBoxActions.map(t=>o("button",{className:"search-box__button search-box__button--ui-action",onClick:t.handler,type:"button","aria-label":t.label,title:t.label,children:o("i",{className:t.icon})},t.id)),o("button",{className:"search-box__button search-box__button--action",onClick:e.shouldShowSearchInput?e.shouldShowCloseButton?x:A:x,type:"button","aria-label":e.ariaLabel,children:o("i",{className:e.actionButtonIcon})})]}))}export default R;
@@ -1 +1 @@
1
- import{__decorate as n}from"tslib";import{Box as x,boxContainsPoint as G,pointDistance as L}from"@expofp/geometry";import{action as f,computed as g,observable as u}from"mobx";import{getName as B}from"../components/Kiosk/SetKiosk";import{mapCamera as T}from"../components/Map/camera";import{DEFAULT_UNITS as E,ORIENTATION_GRANTED_KEY as U}from"../constants";import P from"../data";import{fpGeo as w}from"../data/fpGeo";import{getLayerSvg as $,svgArea as m}from"../data/svg";import{GaEventActions as V,sendEventToGa as K}from"../tools/gtag";import D from"../tools/logger";import{areLayersEnabled as W}from"../utils/areLayersEnabled";import{calcSpeed as A}from"../utils/calcSpeed";import{calcTravelTime as I}from"../utils/calcTravelTime";import{calculateRelativeBearing as Z,convertGpsToLocal as C,isValidPointCoords as b}from"../utils/gps";import{boothToEndpoint as M,buildRoute as q,CURRENT_LOCATION_NAME as j,CURRENT_POSITION_POINT_ID as X,isWayfindingReady as Y,KIOSK_ANCHOR_POINT_ID as H,toArbitraryPoint as N}from"../wayfinding";import c,{layersStore as R,uiState as p}from".";import{BoothBase as y}from"./BoothStore";import{LayersMode as J}from"./LayerStore";import{revealLayer as O}from"./reveal-layer.js";function d(o){return typeof o=="string"?Number(o.replace(",",".")):o}export default class i{constructor(t){this.routeLines=[],this.routeDistance=null,this.currentPosition=null,this.requestCompass=!1,this.iconType=0,this.tempToBooth=null,this.focusEnabled=!0,this.prevZ=null,this.markersData={icons:[],markers:[]},this.prevMarkers=[],this.pendingReveal=null,this.showAccessible=!1,this.onlyAccessible=!1,this.currentRouteLayer=null,this.currentRouteExhibitor=null,this.routeUnits=E,this.isGpsTrackingEnabled=!0,this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!p.kioskData||!!this.currentPosition}selectRoute(t,e=!0,r=!1){if(e&&(p.list={type:"search",text:"",focused:!1}),t&&!t.from&&t.to){const s=this.resolveFallbackFrom();s&&(t=new Route(s,t.to,t.waypoints))}t?.from&&t?.to&&t.from===t.to&&(t=null);const l=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from instanceof y&&t.from.visible&&l.push(t.from),t?.to instanceof y&&t.to.visible&&(this.tempToBooth=null,l.push(t.to)),!t&&c.fp.onDirection&&c.fp.onDirection(null);const a=()=>{if(this.rootStore.moveToList(l),p.details=t,t&&(!t.from||!t.to)&&c.showOverlay(),t?.to&&t?.from){const s=Q(t.from);s&&this.rootStore.layerStore.updateVisibility(s,!0)}if(!this.currentRouteLayer){const s=_(this.rootStore.layerStore,t?.from),h=_(this.rootStore.layerStore,t?.to);s?this.currentRouteLayer=s:h&&(this.currentRouteLayer=h)}e&&t?.from&&t?.to&&K(V.ClickDirections,`${t?.from?"From "+t.from.name:""} ${t?.to?"To "+t.to.name:""}`)};r?a():setTimeout(a,200)}rebuildRouteFromPosition(t){const e=p.selectedRoute;e?.to&&this.selectRoute(new Route(t,e.to,e.waypoints),!1,!0)}resolveFallbackFrom(){if(this.currentPosition)return N(this.currentPosition,j,X);const t=p.kioskData;return t?N({x:t.x,y:t.y,z:t.z??void 0},B(),H):null}setStartPoint(t){const e=p.selectedRoute;if(e?.to&&!e?.from&&t){const r=new Route(t,e.to,e.waypoints);this.selectRoute(r)}}get pathLayers(){return c.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,r)=>r.indexOf(t)===e).map((t,e)=>({id:e+1,layer:c.layerStore.findLayer(t)}))}getNearestBooth(t){if(!t)return null;const e=this.rootStore.layerStore.findLayer(t.z),r=w?.properties.config,l=!!(t.lat&&t.lng),a=r&&l?C(t,r):t;return!a||!b(a.x)||!b(a.y)?null:this.rootStore.boothStore.booths.filter(s=>R.mode===J.Default||!e?s.visible&&s.rect:s.rect&&(typeof t.z!="number"&&!t.z&&s.visible||e.name===s.layer?.name)).sort((s,h)=>L(a,s.rect.center)-L(a,h.rect.center))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(tt),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const r=this.markersData.markers.find(a=>a.id===t);this.markersData.markers.forEach(a=>a.active=!1),r&&(r.active=!0);const l=c.layerStore.findLayer(r?.z);if(e&&r){l&&!l?.visible&&R.updateVisibility(l,!0);const a=T();return a?a.api.panTo({x:r.x,y:r.y}):(D.warn("Map camera is not mounted. Cannot pan to marker."),Promise.resolve())}return Promise.resolve()}get selectedMarkers(){return this.markersData.markers.filter(t=>t.active)}get layers(){const t=[];return c.routeStore.routeLines?.map(e=>e.p0.layer).forEach(e=>{t.indexOf(e)===-1&&t.push(e)}),t.map(e=>c.layerStore.layers.find(r=>r.name===e)).filter(e=>!!e)}clickRoute(t,e){window.__resett&&window.__resett(),this.rootStore.uiState.menu=!1,p.list.type==="route-planner"&&(p.list={type:"search",text:"",focused:!1}),this.selectRoute(new Route(t,e))}selectCurrentPosition(t,e=!0,r){clearTimeout(this.cpTimeout),t&&(t.x=d(t.x),t.y=d(t.y),t.lat!==void 0&&(t.lat=d(t.lat)),t.lng!==void 0&&(t.lng=d(t.lng)),W()||(t.z=void 0));const l=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),a=e&&!l&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString()??null,this.iconType=r?1:0;const s=t?et(t):null;if(!t||!s){this.currentPosition=null;return}const h=c.layerStore.findLayer(t.z),k=new CurrentPosition(s.x,s.y,h?.name||this.currentRouteLayer?.name,Z(s),t.lat,t.lng);let v=!this.routeLines?.length;h&&this.routeLines?.length&&(v=!!this.routeLines.find(S=>S.p0.layer===h.name||S.p1.layer===h.name));const F=a&&v;this.currentPosition=k,F&&this.focusOnPosition(k,h),this.gpsEnabled||(this.cpTimeout=setTimeout(()=>{this.currentPosition&&this.selectCurrentPosition(null,!1)},30*1e3))}findLocation(){if(!this.canFindLocation)return;const t=this.currentPosition??p.kioskData;t&&(this.currentPosition&&localStorage.getItem(U)==="false"&&(c.routeStore.requestCompass=!0),this.pendingReveal?.(),this.pendingReveal=O({layer:c.layerStore.findLayer(t.z),show:e=>R.updateVisibility(e,!0),then:()=>{p.moveToRect=this.findLocationRect(t)}}))}findLocationRect(t){const e=x.fromCenter(t,{x:100,y:100});if(e.intersects(m))return e;const r=Math.max(m.min.x,Math.min(t.x,m.max.x)),l=Math.max(m.min.y,Math.min(t.y,m.max.y)),a=Math.min(m.size.width,m.size.height)*.3,s=x.fromCenter({x:r,y:l},{x:a,y:a}).intersection(m);return s?x.fromUnion(e,s):e}focusOnPosition(t,e){this.pendingReveal?.(),this.pendingReveal=O({layer:e,show:r=>R.updateVisibility(r,!0),then:()=>{if(c.maplibreStore.showMaplibre){p.moveToLocation=!0;return}const r=T();if(r){r.api.panTo({x:t.x,y:t.y});return}D.warn("Map camera is not mounted. Cannot pan to current position.")}})}get routeInfo(){const t=this.routeDistance,e=this.routeUnits;return t?{distance:`${t}${e}`,units:e,time:I(t,A(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=$(),r=(e.getAttribute("units")||E).toLowerCase?.().trim(),l=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(l?1:10)),this.routeUnits=r,this.updateRoutePoints()}updateRoutePoints(){const t=p.selectedRoute,e=this.routeDistance,r=this.routeUnits;c.fp.onDirection&&setTimeout(()=>{c.fp.onDirection({from:z(t?.from??null),to:z(t?.to??null),lines:this.routeLines,distance:e==null?"":`${e}${r}`,units:r,time:I(e??0,A(r))})},200)}checkRoutes(){if(!Y()){console.warn("checkRoutes: wayfinding is not initialized \u2014 call createWayfinding() first. Skipping route check.");return}const t=c.boothStore.booths;console.info(`Route check started ${t.length}.... `);for(let e=0;e<t.length;e++){const r=t[e];for(let l=e+1;l<t.length;l++){const a=t[l];q(M(r),M(a)).lines.length||console.warn(`No route found from ${r.name} to ${a.name}`)}}console.info("Route check done....")}setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return P.autoTrackingGps&&this.isGpsTrackingEnabled&&!P.enableIPS}setOnlyAccessible(t){this.onlyAccessible=t}}n([u],i.prototype,"routeLines",void 0),n([u],i.prototype,"routeDistance",void 0),n([u],i.prototype,"currentPosition",void 0),n([u],i.prototype,"requestCompass",void 0),n([u],i.prototype,"iconType",void 0),n([u],i.prototype,"tempToBooth",void 0),n([u],i.prototype,"focusEnabled",void 0),n([u],i.prototype,"prevZ",void 0),n([u],i.prototype,"markersData",void 0),n([u],i.prototype,"prevMarkers",void 0),n([u],i.prototype,"showAccessible",void 0),n([u],i.prototype,"onlyAccessible",void 0),n([u],i.prototype,"currentRouteLayer",void 0),n([u],i.prototype,"currentRouteExhibitor",void 0),n([g],i.prototype,"canFindLocation",null),n([f],i.prototype,"selectRoute",null),n([f],i.prototype,"rebuildRouteFromPosition",null),n([f],i.prototype,"setStartPoint",null),n([g({keepAlive:!0})],i.prototype,"pathLayers",null),n([f],i.prototype,"setMarkers",null),n([f],i.prototype,"selectMarker",null),n([g({keepAlive:!0})],i.prototype,"selectedMarkers",null),n([g({keepAlive:!0})],i.prototype,"layers",null),n([f],i.prototype,"clickRoute",null),n([f],i.prototype,"selectCurrentPosition",null),n([f],i.prototype,"findLocation",null),n([u],i.prototype,"routeUnits",void 0),n([g],i.prototype,"routeInfo",null),n([f],i.prototype,"updateRoute",null),n([f],i.prototype,"updateRouteDistance",null),n([f],i.prototype,"updateRoutePoints",null),n([f],i.prototype,"checkRoutes",null),n([u],i.prototype,"isGpsTrackingEnabled",void 0),n([f],i.prototype,"setGpsTrackingEnabled",null),n([g({keepAlive:!0})],i.prototype,"gpsEnabled",null),n([f],i.prototype,"setOnlyAccessible",null);function Q(o){if(o)return o instanceof y?o.layer?.name:o.layer}function _(o,t){return t?t instanceof y?t.layer??null:o.findLayer(t.layer):null}function tt(o){return{...o,x:d(o.x),y:d(o.y),lat:o.lat===void 0?void 0:d(o.lat),lng:o.lng===void 0?void 0:d(o.lng)}}function et(o){const t=w?.properties.config??null;let e=null;return t&&G({min:t.p0,max:t.p2},o)?e={...o}:t&&b(o.lat)&&b(o.lng)?e=C(o,t):t||(e=o),e||null}export function findBooth(o){return c.boothStore.findBooth(o)||c.exhibitorStore.findExhibitor(o)?.booths[0]}export function findEntityByExternalId(o){const t=c.boothStore.boothByExternalId.get(o);if(t)return{type:"booth",entity:t};const e=c.exhibitorStore.exhibitorByExternalId.get(o);if(e)return{type:"exhibitor",entity:e}}export function separateExternalIds(o){const t=[],e=[];for(const r of o){const l=findEntityByExternalId(r);l&&(l.type==="booth"?t.push(r):e.push(r))}return{boothExternalIds:t,exhibitorExternalIds:e}}export function extractRoute(o,t,e){return new Route(findBooth(o)??null,findBooth(t)??null,e?.map(r=>findBooth(r)).filter(r=>!!r))}export class Route{constructor(t,e,r){this.from=t,this.to=e,this.waypoints=r;const l=t instanceof y?t.id:void 0,a=e instanceof y?e.id:void 0;this.waypoints=r?.filter(s=>s&&s.id!==l&&s.id!==a)}}function z(o){return o?o instanceof y?{id:o.id,name:o.name,externalId:o.externalId,layer:{name:o.layer?.name,description:o.layer?.description}}:{id:Number.MAX_SAFE_INTEGER,name:o.name,externalId:void 0,layer:{name:o.layer,description:void 0}}:null}export class CurrentPosition{constructor(t,e,r,l,a,s){this.x=t,this.y=e,this.z=r,this.angle=l,this.lat=a,this.lng=s}}
1
+ import{__decorate as n}from"tslib";import{Box as x,boxContainsPoint as G,pointDistance as L}from"@expofp/geometry";import{action as f,computed as g,observable as u}from"mobx";import{getName as B}from"../components/Kiosk/SetKiosk";import{mapCamera as T}from"../components/Map/camera";import{DEFAULT_UNITS as E,ORIENTATION_GRANTED_KEY as U}from"../constants";import P from"../data";import{fpGeo as w}from"../data/fpGeo";import{getLayerSvg as $,svgArea as h}from"../data/svg";import{GaEventActions as V,sendEventToGa as K}from"../tools/gtag";import D from"../tools/logger";import{areLayersEnabled as W}from"../utils/areLayersEnabled";import{calcSpeed as A}from"../utils/calcSpeed";import{calcTravelTime as I}from"../utils/calcTravelTime";import{calculateRelativeBearing as Z,convertGpsToLocal as C,isValidPointCoords as b}from"../utils/gps";import{boothToEndpoint as M,buildRoute as q,CURRENT_LOCATION_NAME as j,CURRENT_POSITION_POINT_ID as X,isWayfindingReady as Y,KIOSK_ANCHOR_POINT_ID as H,toArbitraryPoint as N}from"../wayfinding";import c,{layersStore as R,uiState as p}from".";import{BoothBase as y}from"./BoothStore";import{LayersMode as J}from"./LayerStore";import{revealLayer as O}from"./reveal-layer.js";function d(o){return typeof o=="string"?Number(o.replace(",",".")):o}export default class i{constructor(t){this.routeLines=[],this.routeDistance=null,this.currentPosition=null,this.requestCompass=!1,this.iconType=0,this.tempToBooth=null,this.focusEnabled=!0,this.prevZ=null,this.markersData={icons:[],markers:[]},this.prevMarkers=[],this.pendingReveal=null,this.showAccessible=!1,this.onlyAccessible=!1,this.currentRouteLayer=null,this.currentRouteExhibitor=null,this.routeUnits=E,this.isGpsTrackingEnabled=!0,this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!p.kioskData||!!this.currentPosition}selectRoute(t,e=!0,r=!1){if(e&&(p.list={type:"search",text:"",focused:!1}),t&&!t.from&&t.to){const s=this.resolveFallbackFrom();s&&(t=new Route(s,t.to,t.waypoints))}t?.from&&t?.to&&t.from===t.to&&(t=null);const l=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from instanceof y&&t.from.visible&&l.push(t.from),t?.to instanceof y&&t.to.visible&&(this.tempToBooth=null,l.push(t.to)),!t&&c.fp.onDirection&&c.fp.onDirection(null);const a=f(()=>{if(this.rootStore.moveToList(l),p.details=t,t&&(!t.from||!t.to)&&p.overlayBottom&&(p.desiredOverlaySize="medium"),t?.to&&t?.from){const s=Q(t.from);s&&this.rootStore.layerStore.updateVisibility(s,!0)}if(!this.currentRouteLayer){const s=_(this.rootStore.layerStore,t?.from),m=_(this.rootStore.layerStore,t?.to);s?this.currentRouteLayer=s:m&&(this.currentRouteLayer=m)}e&&t?.from&&t?.to&&K(V.ClickDirections,`${t?.from?"From "+t.from.name:""} ${t?.to?"To "+t.to.name:""}`)});r?a():setTimeout(a,200)}rebuildRouteFromPosition(t){const e=p.selectedRoute;e?.to&&this.selectRoute(new Route(t,e.to,e.waypoints),!1,!0)}resolveFallbackFrom(){if(this.currentPosition)return N(this.currentPosition,j,X);const t=p.kioskData;return t?N({x:t.x,y:t.y,z:t.z??void 0},B(),H):null}setStartPoint(t){const e=p.selectedRoute;if(e?.to&&!e?.from&&t){const r=new Route(t,e.to,e.waypoints);this.selectRoute(r)}}get pathLayers(){return c.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,r)=>r.indexOf(t)===e).map((t,e)=>({id:e+1,layer:c.layerStore.findLayer(t)}))}getNearestBooth(t){if(!t)return null;const e=this.rootStore.layerStore.findLayer(t.z),r=w?.properties.config,l=!!(t.lat&&t.lng),a=r&&l?C(t,r):t;return!a||!b(a.x)||!b(a.y)?null:this.rootStore.boothStore.booths.filter(s=>R.mode===J.Default||!e?s.visible&&s.rect:s.rect&&(typeof t.z!="number"&&!t.z&&s.visible||e.name===s.layer?.name)).sort((s,m)=>L(a,s.rect.center)-L(a,m.rect.center))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(tt),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const r=this.markersData.markers.find(a=>a.id===t);this.markersData.markers.forEach(a=>a.active=!1),r&&(r.active=!0);const l=c.layerStore.findLayer(r?.z);if(e&&r){l&&!l?.visible&&R.updateVisibility(l,!0);const a=T();return a?a.api.panTo({x:r.x,y:r.y}):(D.warn("Map camera is not mounted. Cannot pan to marker."),Promise.resolve())}return Promise.resolve()}get selectedMarkers(){return this.markersData.markers.filter(t=>t.active)}get layers(){const t=[];return c.routeStore.routeLines?.map(e=>e.p0.layer).forEach(e=>{t.indexOf(e)===-1&&t.push(e)}),t.map(e=>c.layerStore.layers.find(r=>r.name===e)).filter(e=>!!e)}clickRoute(t,e){window.__resett&&window.__resett(),this.rootStore.uiState.menu=!1,p.list.type==="route-planner"&&(p.list={type:"search",text:"",focused:!1}),this.selectRoute(new Route(t,e))}selectCurrentPosition(t,e=!0,r){clearTimeout(this.cpTimeout),t&&(t.x=d(t.x),t.y=d(t.y),t.lat!==void 0&&(t.lat=d(t.lat)),t.lng!==void 0&&(t.lng=d(t.lng)),W()||(t.z=void 0));const l=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),a=e&&!l&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString()??null,this.iconType=r?1:0;const s=t?et(t):null;if(!t||!s){this.currentPosition=null;return}const m=c.layerStore.findLayer(t.z),k=new CurrentPosition(s.x,s.y,m?.name||this.currentRouteLayer?.name,Z(s),t.lat,t.lng);let v=!this.routeLines?.length;m&&this.routeLines?.length&&(v=!!this.routeLines.find(S=>S.p0.layer===m.name||S.p1.layer===m.name));const F=a&&v;this.currentPosition=k,F&&this.focusOnPosition(k,m),this.gpsEnabled||(this.cpTimeout=setTimeout(()=>{this.currentPosition&&this.selectCurrentPosition(null,!1)},30*1e3))}findLocation(){if(!this.canFindLocation)return;const t=this.currentPosition??p.kioskData;t&&(this.currentPosition&&localStorage.getItem(U)==="false"&&(c.routeStore.requestCompass=!0),this.pendingReveal?.(),this.pendingReveal=O({layer:c.layerStore.findLayer(t.z),show:e=>R.updateVisibility(e,!0),then:()=>{p.moveToRect=this.findLocationRect(t)}}))}findLocationRect(t){const e=x.fromCenter(t,{x:100,y:100});if(e.intersects(h))return e;const r=Math.max(h.min.x,Math.min(t.x,h.max.x)),l=Math.max(h.min.y,Math.min(t.y,h.max.y)),a=Math.min(h.size.width,h.size.height)*.3,s=x.fromCenter({x:r,y:l},{x:a,y:a}).intersection(h);return s?x.fromUnion(e,s):e}focusOnPosition(t,e){this.pendingReveal?.(),this.pendingReveal=O({layer:e,show:r=>R.updateVisibility(r,!0),then:()=>{if(c.maplibreStore.showMaplibre){p.moveToLocation=!0;return}const r=T();if(r){r.api.panTo({x:t.x,y:t.y});return}D.warn("Map camera is not mounted. Cannot pan to current position.")}})}get routeInfo(){const t=this.routeDistance,e=this.routeUnits;return t?{distance:`${t}${e}`,units:e,time:I(t,A(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=$(),r=(e.getAttribute("units")||E).toLowerCase?.().trim(),l=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(l?1:10)),this.routeUnits=r,this.updateRoutePoints()}updateRoutePoints(){const t=p.selectedRoute,e=this.routeDistance,r=this.routeUnits;c.fp.onDirection&&setTimeout(()=>{c.fp.onDirection({from:z(t?.from??null),to:z(t?.to??null),lines:this.routeLines,distance:e==null?"":`${e}${r}`,units:r,time:I(e??0,A(r))})},200)}checkRoutes(){if(!Y()){console.warn("checkRoutes: wayfinding is not initialized \u2014 call createWayfinding() first. Skipping route check.");return}const t=c.boothStore.booths;console.info(`Route check started ${t.length}.... `);for(let e=0;e<t.length;e++){const r=t[e];for(let l=e+1;l<t.length;l++){const a=t[l];q(M(r),M(a)).lines.length||console.warn(`No route found from ${r.name} to ${a.name}`)}}console.info("Route check done....")}setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return P.autoTrackingGps&&this.isGpsTrackingEnabled&&!P.enableIPS}setOnlyAccessible(t){this.onlyAccessible=t}}n([u],i.prototype,"routeLines",void 0),n([u],i.prototype,"routeDistance",void 0),n([u],i.prototype,"currentPosition",void 0),n([u],i.prototype,"requestCompass",void 0),n([u],i.prototype,"iconType",void 0),n([u],i.prototype,"tempToBooth",void 0),n([u],i.prototype,"focusEnabled",void 0),n([u],i.prototype,"prevZ",void 0),n([u],i.prototype,"markersData",void 0),n([u],i.prototype,"prevMarkers",void 0),n([u],i.prototype,"showAccessible",void 0),n([u],i.prototype,"onlyAccessible",void 0),n([u],i.prototype,"currentRouteLayer",void 0),n([u],i.prototype,"currentRouteExhibitor",void 0),n([g],i.prototype,"canFindLocation",null),n([f],i.prototype,"selectRoute",null),n([f],i.prototype,"rebuildRouteFromPosition",null),n([f],i.prototype,"setStartPoint",null),n([g({keepAlive:!0})],i.prototype,"pathLayers",null),n([f],i.prototype,"setMarkers",null),n([f],i.prototype,"selectMarker",null),n([g({keepAlive:!0})],i.prototype,"selectedMarkers",null),n([g({keepAlive:!0})],i.prototype,"layers",null),n([f],i.prototype,"clickRoute",null),n([f],i.prototype,"selectCurrentPosition",null),n([f],i.prototype,"findLocation",null),n([u],i.prototype,"routeUnits",void 0),n([g],i.prototype,"routeInfo",null),n([f],i.prototype,"updateRoute",null),n([f],i.prototype,"updateRouteDistance",null),n([f],i.prototype,"updateRoutePoints",null),n([f],i.prototype,"checkRoutes",null),n([u],i.prototype,"isGpsTrackingEnabled",void 0),n([f],i.prototype,"setGpsTrackingEnabled",null),n([g({keepAlive:!0})],i.prototype,"gpsEnabled",null),n([f],i.prototype,"setOnlyAccessible",null);function Q(o){if(o)return o instanceof y?o.layer?.name:o.layer}function _(o,t){return t?t instanceof y?t.layer??null:o.findLayer(t.layer):null}function tt(o){return{...o,x:d(o.x),y:d(o.y),lat:o.lat===void 0?void 0:d(o.lat),lng:o.lng===void 0?void 0:d(o.lng)}}function et(o){const t=w?.properties.config??null;let e=null;return t&&G({min:t.p0,max:t.p2},o)?e={...o}:t&&b(o.lat)&&b(o.lng)?e=C(o,t):t||(e=o),e||null}export function findBooth(o){return c.boothStore.findBooth(o)||c.exhibitorStore.findExhibitor(o)?.booths[0]}export function findEntityByExternalId(o){const t=c.boothStore.boothByExternalId.get(o);if(t)return{type:"booth",entity:t};const e=c.exhibitorStore.exhibitorByExternalId.get(o);if(e)return{type:"exhibitor",entity:e}}export function separateExternalIds(o){const t=[],e=[];for(const r of o){const l=findEntityByExternalId(r);l&&(l.type==="booth"?t.push(r):e.push(r))}return{boothExternalIds:t,exhibitorExternalIds:e}}export function extractRoute(o,t,e){return new Route(findBooth(o)??null,findBooth(t)??null,e?.map(r=>findBooth(r)).filter(r=>!!r))}export class Route{constructor(t,e,r){this.from=t,this.to=e,this.waypoints=r;const l=t instanceof y?t.id:void 0,a=e instanceof y?e.id:void 0;this.waypoints=r?.filter(s=>s&&s.id!==l&&s.id!==a)}}function z(o){return o?o instanceof y?{id:o.id,name:o.name,externalId:o.externalId,layer:{name:o.layer?.name,description:o.layer?.description}}:{id:Number.MAX_SAFE_INTEGER,name:o.name,externalId:void 0,layer:{name:o.layer,description:void 0}}:null}export class CurrentPosition{constructor(t,e,r,l,a,s){this.x=t,this.y=e,this.z=r,this.angle=l,this.lat=a,this.lng=s}}