@expofp/floorplan 3.45.7 → 3.45.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/browser/{Button-DoMPpOME.js → Button-DDjqSSog.js} +5 -5
  2. package/dist/browser/{CookieConsent-VAXXLOXb.js → CookieConsent-BDoM0jAE.js} +7 -7
  3. package/dist/browser/{Debug-C63GlheY.js → Debug-DuQmiICt.js} +7 -7
  4. package/dist/browser/{DebugTools-mVrHvXI6.js → DebugTools-CHGp8QuV.js} +6 -6
  5. package/dist/browser/{Demo-BXkOcSI0.js → Demo-CtMm5IBD.js} +9 -9
  6. package/dist/browser/{Free-DNAFCM7J.js → Free-CE3zi8UY.js} +10 -10
  7. package/dist/browser/{GalleryContainer-D1NE6sjd.js → GalleryContainer-BCZY59OP.js} +11 -11
  8. package/dist/browser/{GpsLoader-CBglwIpW.js → GpsLoader-Cosg8zRh.js} +13 -13
  9. package/dist/browser/{KioskStore-CidgY5gq.js → KioskStore-C5SJGUQF.js} +9 -9
  10. package/dist/browser/{LayerStore-CkHJl9fw.js → LayerStore-Dj_DMMbR.js} +2248 -2223
  11. package/dist/browser/{MaplibreAdapter-BpgtcRzj.js → MaplibreAdapter-CVUQGim3.js} +17 -17
  12. package/dist/browser/{ModalContainer-Dx1hKEHL.js → ModalContainer-BcXMoDHF.js} +10 -10
  13. package/dist/browser/{PermissionNotice-BC2Hh6Dc.js → PermissionNotice-BJAUSziU.js} +6 -6
  14. package/dist/browser/{RouteStore-B8swHpbx.js → RouteStore-rNIGDnz3.js} +19 -12
  15. package/dist/browser/{SetKioskMode-CPljhWHO.js → SetKioskMode-CKsKMLX9.js} +11 -11
  16. package/dist/browser/{ShowKiosk-Cp4-kIC0.js → ShowKiosk-D6FiHxP-.js} +10 -10
  17. package/dist/browser/{UIState-Bktc1gqT.js → UIState-C7EWHaaI.js} +12 -12
  18. package/dist/browser/{ViewerMenuPanel-6RZTF4uE.js → ViewerMenuPanel-2uMwOCi9.js} +10 -10
  19. package/dist/browser/{add-debug-secret-listener-Btw74X-A.js → add-debug-secret-listener-CV-e-tGb.js} +1 -1
  20. package/dist/browser/{adopt-global-settings-BhlZMnJR.js → adopt-global-settings-DG5gXaSf.js} +9 -9
  21. package/dist/browser/{boolean-editor-Blw57l8P.js → boolean-editor-D_DZGwu2.js} +9 -9
  22. package/dist/browser/{bootIntercom-VJKzVHv-.js → bootIntercom-DsLmVb65.js} +2 -2
  23. package/dist/browser/bundle.json +85 -85
  24. package/dist/browser/{camera-events-CGeSIpoO.js → camera-events-B9lpRbgQ.js} +1 -1
  25. package/dist/browser/{classnames-CdJLGw--.js → classnames-BA9_aitn.js} +2 -2
  26. package/dist/browser/{client-Ddk4_hPo.js → client-D4anIUxO.js} +5 -5
  27. package/dist/browser/{components-B_JMadcX.js → components-BeEMn_wn.js} +48 -48
  28. package/dist/browser/{create-live-plan-BlgtYarw.js → create-live-plan-C_Fb8d_0.js} +13 -13
  29. package/dist/browser/{debug-context-D121AhHU.js → debug-context-DmJRXxHI.js} +5 -5
  30. package/dist/browser/{debug-overlay-eFHSKKar.js → debug-overlay-BhjhReFZ.js} +10 -10
  31. package/dist/browser/{debug-ui-Bi1TdGKQ.js → debug-ui-D9nopA9X.js} +6 -6
  32. package/dist/browser/{dist-B6lWm0ju.js → dist-2cM5wCfv.js} +6 -6
  33. package/dist/browser/{dist-D2cpArj8.js → dist-Ci8Ywtev.js} +5 -5
  34. package/dist/browser/{dist-tCut6z8G.js → dist-kT1_X_Nl.js} +3 -3
  35. package/dist/browser/{efp-debug-init-O1oP_JJm.js → efp-debug-init-BUKL-1B6.js} +3 -3
  36. package/dist/browser/{enum-editor-BSbFq29p.js → enum-editor-CBA9-irq.js} +4 -4
  37. package/dist/browser/{es5-C1EkARsD.js → es5-DcsQBVS1.js} +2 -2
  38. package/dist/browser/{event-head-dbKPx63k.js → event-head-7CzCqr9e.js} +1 -1
  39. package/dist/browser/{event-not-found-CZ8t4Uu6.js → event-not-found-DFUh6dUs.js} +3 -3
  40. package/dist/browser/{event-scoped-cache-D_QACc1s.js → event-scoped-cache-DEHF1pY0.js} +2 -2
  41. package/dist/browser/{expofpUrl-CwYzXtEI.js → expofpUrl-BTSNvY-w.js} +1 -1
  42. package/dist/browser/{exports-BYakE1aQ.js → exports-BIP8QGmb.js} +1 -1
  43. package/dist/browser/{favicon-BHofuIQZ.js → favicon-CXDF_Zhf.js} +1 -1
  44. package/dist/browser/{fetch-retry.umd-BAbHkBot.js → fetch-retry.umd-D2_e8qQx.js} +2 -2
  45. package/dist/browser/{flex-B5JUG09k.js → flex-CUfPUItN.js} +5 -5
  46. package/dist/browser/{floorplan.loader-KTUSzO4z.js → floorplan.loader-jL-HVBnM.js} +12 -12
  47. package/dist/browser/{floorplan.ready-Dl6KhHdq.js → floorplan.ready-DjjgnX-2.js} +23 -23
  48. package/dist/browser/{framing-rect-BQQmc5De.js → framing-rect-DftdF5rf.js} +12 -12
  49. package/dist/browser/{freeBanner-BmPRrM12.js → freeBanner-Co3_MUWy.js} +2 -2
  50. package/dist/browser/{fuse-WFAQ7YoQ.js → fuse-Bd68j3jO.js} +2 -2
  51. package/dist/browser/{i18n-Bh9SQDL_.js → i18n-BXGesSXQ.js} +6 -6
  52. package/dist/browser/index.js +17 -17
  53. package/dist/browser/{index.module-DCw3tKgG.js → index.module-DAU_8dZB.js} +4 -4
  54. package/dist/browser/{init-ui-OB1XaCfO.js → init-ui-uWLzJ7Jo.js} +9 -9
  55. package/dist/browser/{integrateKiosk-MOEJieFt.js → integrateKiosk-Bp2HbwRQ.js} +5 -5
  56. package/dist/browser/{is-debug-BF3z8m5S.js → is-debug-nub62u05.js} +4 -4
  57. package/dist/browser/{is-own-domain-JIM5K3kS.js → is-own-domain-DnPpIC8T.js} +1 -1
  58. package/dist/browser/{is-webview-CmVvfduU.js → is-webview-DWmelsrv.js} +1 -1
  59. package/dist/browser/{jsx-runtime-EdxeYdYp.js → jsx-runtime-DDgnL5LW.js} +2 -2
  60. package/dist/browser/{kiosk-mode-ph5mhoKS.js → kiosk-mode-Cjv68lr3.js} +3 -3
  61. package/dist/browser/{kiosk-record-CECrtPT6.js → kiosk-record-BTliFc1b.js} +1 -1
  62. package/dist/browser/{kioskApi-CnYlViWt.js → kioskApi-BLBWoRNq.js} +7 -7
  63. package/dist/browser/{lib-DG_Vp0rr.js → lib-BwAIWJ4J.js} +3 -3
  64. package/dist/browser/{loadImage-Ck1tWCp8.js → loadImage-D3TyEYHA.js} +1 -1
  65. package/dist/browser/{logDeviceInfo-BdzHHyxc.js → logDeviceInfo-CV9nTEpM.js} +9 -9
  66. package/dist/browser/{mobx-Dyev0T49.js → mobx-DsOYhKHd.js} +4 -4
  67. package/dist/browser/{mobx.module-CkUy2egS.js → mobx.module-DvIIl0lT.js} +1 -1
  68. package/dist/browser/{optional-boolean-editor-CZR8wMg8.js → optional-boolean-editor-oMQTuJ9b.js} +3 -3
  69. package/dist/browser/{optional-enum-editor-CpvWFVd_.js → optional-enum-editor-eSTFRbmQ.js} +4 -4
  70. package/dist/browser/{optional-string-editor-BnxMkNl0.js → optional-string-editor-DQRBv4PL.js} +4 -4
  71. package/dist/browser/{particles.min-fy-7841X.js → particles.min-BeglQWAO.js} +2 -2
  72. package/dist/browser/{react-p4ksjiTO.js → react-Dm3GcCJw.js} +2 -2
  73. package/dist/browser/{react-dom-DP4W4hYa.js → react-dom-C_BdtBnY.js} +3 -3
  74. package/dist/browser/{rolldown-runtime-DpurJPpD.js → rolldown-runtime-CoH-OhSu.js} +1 -1
  75. package/dist/browser/{scene-Bw4Wosnm.js → scene-Cv_UXfCm.js} +3 -3
  76. package/dist/browser/{scheduler-DG833nPN.js → scheduler-B7Ua26ce.js} +2 -2
  77. package/dist/browser/{select-Bs8l_LXK.js → select-B9tK4_BT.js} +10 -10
  78. package/dist/browser/{settings-C16fMCOb.js → settings-_jq9iHSH.js} +2 -2
  79. package/dist/browser/{settings-item-BNbUy2G4.js → settings-item-CYXRYk0_.js} +6 -6
  80. package/dist/browser/{store-Dzf_E3lq.js → store-Bl15ssHJ.js} +2 -2
  81. package/dist/browser/{string-editor-HK0_YL0_.js → string-editor-8DZFBP1H.js} +4 -4
  82. package/dist/browser/{text-field-BSQdGeXC.js → text-field-BOeWfEgI.js} +5 -5
  83. package/dist/browser/{theme-J3Xyr2LB.js → theme-cT13G2rJ.js} +8 -8
  84. package/dist/browser/{ui-DqehmZc3.js → ui-CAEPUxmy.js} +8 -8
  85. package/dist/browser/{useRenderTarget-DY4Qqe94.js → useRenderTarget-D0iY2YyZ.js} +4 -4
  86. package/dist/browser/{viewport-DOMzAI6a.js → viewport-BR3UoMZV.js} +3 -3
  87. package/dist/browser/{wayfinding-BUxcbe0S.js → wayfinding-Ci_nn_9v.js} +5 -5
  88. package/dist/esm/store/RouteStore.d.ts +8 -1
  89. package/dist/esm/store/RouteStore.js +1 -1
  90. package/package.json +10 -10
@@ -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.45.7" };
4
+ e.SENTRY_RELEASE = { id: "3.45.9" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7cff17ce-12f6-438a-9ef4-00cf6a0b1475", e._sentryDebugIdIdentifier = "sentry-dbid-7cff17ce-12f6-438a-9ef4-00cf6a0b1475");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DpurJPpD.js";
10
- import { t } from "./react-p4ksjiTO.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-B5JUG09k.js";
12
- import { t as l } from "./classnames-CdJLGw--.js";
9
+ import { r as e } from "./rolldown-runtime-CoH-OhSu.js";
10
+ import { t } from "./react-Dm3GcCJw.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-CUfPUItN.js";
12
+ import { t as l } from "./classnames-BA9_aitn.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.45.7" };
4
+ e.SENTRY_RELEASE = { id: "3.45.9" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "507523b1-aa12-4507-b680-c254edab8300", e._sentryDebugIdIdentifier = "sentry-dbid-507523b1-aa12-4507-b680-c254edab8300");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DpurJPpD.js";
10
- import { t } from "./react-p4ksjiTO.js";
11
- import { t as n } from "./jsx-runtime-EdxeYdYp.js";
12
- import { t as r } from "./react-dom-DP4W4hYa.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-B5JUG09k.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-B6lWm0ju.js";
15
- import { t as y } from "./classnames-CdJLGw--.js";
9
+ import { r as e } from "./rolldown-runtime-CoH-OhSu.js";
10
+ import { t } from "./react-Dm3GcCJw.js";
11
+ import { t as n } from "./jsx-runtime-DDgnL5LW.js";
12
+ import { t as r } from "./react-dom-C_BdtBnY.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-CUfPUItN.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-2cM5wCfv.js";
15
+ import { t as y } from "./classnames-BA9_aitn.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.45.7" };
4
+ e.SENTRY_RELEASE = { id: "3.45.9" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "81863b16-dfcf-4b3e-9293-bdc5f05a30a1", e._sentryDebugIdIdentifier = "sentry-dbid-81863b16-dfcf-4b3e-9293-bdc5f05a30a1");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DpurJPpD.js";
10
- import { a as t, i as n, s as r } from "./efp-debug-init-O1oP_JJm.js";
11
- import { a as i, i as a } from "./adopt-global-settings-BhlZMnJR.js";
12
- import { t as o } from "./jsx-runtime-EdxeYdYp.js";
13
- import "./settings-C16fMCOb.js";
14
- import { t as s } from "./add-debug-secret-listener-Btw74X-A.js";
9
+ import { r as e } from "./rolldown-runtime-CoH-OhSu.js";
10
+ import { a as t, i as n, s as r } from "./efp-debug-init-BUKL-1B6.js";
11
+ import { a as i, i as a } from "./adopt-global-settings-DG5gXaSf.js";
12
+ import { t as o } from "./jsx-runtime-DDgnL5LW.js";
13
+ import "./settings-_jq9iHSH.js";
14
+ import { t as s } from "./add-debug-secret-listener-CV-e-tGb.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() {
@@ -29,7 +29,7 @@ function d() {
29
29
  }
30
30
  });
31
31
  let o = async (t) => {
32
- let { DebugUi: n } = await import("./debug-ui-Bi1TdGKQ.js"), { createRoot: i } = await import("./client-Ddk4_hPo.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
32
+ let { DebugUi: n } = await import("./debug-ui-D9nopA9X.js"), { createRoot: i } = await import("./client-D4anIUxO.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
33
33
  document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, l.jsx)(n, {
34
34
  useDebugButtonState: r.useState,
35
35
  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.45.7" };
4
+ e.SENTRY_RELEASE = { id: "3.45.9" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1e89fc3a-fa3d-42bb-94d8-f0f786d433ec", e._sentryDebugIdIdentifier = "sentry-dbid-1e89fc3a-fa3d-42bb-94d8-f0f786d433ec");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DpurJPpD.js";
10
- import { t } from "./react-p4ksjiTO.js";
11
- import { u as n } from "./store-Dzf_E3lq.js";
9
+ import { r as e } from "./rolldown-runtime-CoH-OhSu.js";
10
+ import { t } from "./react-Dm3GcCJw.js";
11
+ import { u as n } from "./store-Bl15ssHJ.js";
12
12
  //#region ../ui/src/shared/activeElement.ts
13
13
  var r = (e) => !!e && "activeElement" in e;
14
14
  function i(e) {
@@ -1,13 +1,13 @@
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.45.7" };
4
+ e.SENTRY_RELEASE = { id: "3.45.9" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cd544147-31ec-4446-b8a2-8021e027057b", e._sentryDebugIdIdentifier = "sentry-dbid-cd544147-31ec-4446-b8a2-8021e027057b");
7
7
  } catch {}
8
8
  })();
9
- import { l as e } from "./store-Dzf_E3lq.js";
10
- import { t } from "./LayerStore-CkHJl9fw.js";
9
+ import { l as e } from "./store-Bl15ssHJ.js";
10
+ import { t } from "./LayerStore-Dj_DMMbR.js";
11
11
  //#region src/components/Map/viewport.ts
12
12
  function n(e) {
13
13
  return {
@@ -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.45.7" };
4
+ e.SENTRY_RELEASE = { id: "3.45.9" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ee464435-718a-4ca3-8b33-3debeef492af", e._sentryDebugIdIdentifier = "sentry-dbid-ee464435-718a-4ca3-8b33-3debeef492af");
7
7
  } catch {}
8
8
  })();
9
- import { r as e, t } from "./rolldown-runtime-DpurJPpD.js";
10
- import { o as n } from "./is-debug-BF3z8m5S.js";
11
- import { i as r, l as i } from "./mobx.module-CkUy2egS.js";
12
- import { $t as a, Ct as o, Dt as s, Et as c, Ot as l, Ut as u, Wt as d, Xt as f, _t as p, an as m, cn as h, ft as g, nn as _, nt as v, on as y, rn as b, sn as x, tn as S, vt as C, wt as w, xt as T, yt as E } from "./LayerStore-CkHJl9fw.js";
9
+ import { r as e, t } from "./rolldown-runtime-CoH-OhSu.js";
10
+ import { o as n } from "./is-debug-nub62u05.js";
11
+ import { i as r, l as i } from "./mobx.module-DvIIl0lT.js";
12
+ import { $t as a, Ct as o, Dt as s, Et as c, Ot as l, Ut as u, Wt as d, Xt as f, _t as p, an as m, cn as h, ft as g, nn as _, nt as v, on as y, rn as b, sn as x, tn as S, vt as C, wt as w, xt as T, yt as E } from "./LayerStore-Dj_DMMbR.js";
13
13
  //#region ../geometry/src/lib/geo.ts
14
14
  var D = 6371e3;
15
15
  function O(e, t) {
@@ -11,7 +11,8 @@ export default class RouteStore {
11
11
  currentPosition: CurrentPosition | null;
12
12
  requestCompass: boolean;
13
13
  iconType: number;
14
- tempToBooth: Booth | null;
14
+ /** The booth last tapped on the map; read through `tempToBooth`. */
15
+ private tappedBooth;
15
16
  focusEnabled: boolean;
16
17
  prevZ: string | null;
17
18
  markersData: MarkersData;
@@ -23,6 +24,12 @@ export default class RouteStore {
23
24
  currentRouteLayer: Layer | null;
24
25
  currentRouteExhibitor: Exhibitor | null;
25
26
  constructor(rootStore: RootStore);
27
+ /**
28
+ * The tapped booth, but only while one of its exhibitors is the open card — otherwise a card
29
+ * opened from search or a list would route to the previously tapped exhibitor (#1760).
30
+ */
31
+ get tempToBooth(): Booth | null;
32
+ set tempToBooth(booth: Booth | null);
26
33
  get canFindLocation(): boolean;
27
34
  selectRoute(route: Route | null, resetList?: boolean, immediate?: boolean): void;
28
35
  /** Rebuilds the current route with the live position as FROM, applied immediately (no 200ms defer) */
@@ -1 +1 @@
1
- import{__decorate as n}from"tslib";import{Box as R,boxContainsPoint as F,pointDistance as S}from"@expofp/geometry";import{action as f,computed as y,observable as u}from"mobx";import{getName as G}from"../components/Kiosk/SetKiosk";import{mapCamera as L}from"../components/Map/camera";import{DEFAULT_UNITS as T,ORIENTATION_GRANTED_KEY as B}from"../constants";import E from"../data";import{getFpGeo as P}from"../data/fpGeo.js";import{getLayerSvg as U,getSvgArea as $}from"../data/svg.js";import{GaEventActions as V,sendEventToGa as K}from"../tools/gtag";import w from"../tools/logger";import{areLayersEnabled as W}from"../utils/areLayersEnabled";import{calcSpeed as D}from"../utils/calcSpeed";import{calcTravelTime as A}from"../utils/calcTravelTime";import{calculateRelativeBearing as Z,convertGpsToLocal as I,isValidPointCoords as g}from"../utils/gps";import{boothToEndpoint as C,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 M}from"../wayfinding";import c,{layersStore as b,uiState as p}from".";import{BoothBase as d}from"./BoothStore";import{LayersMode as J}from"./LayerStore";import{revealLayer as N}from"./reveal-layer.js";function h(r){return typeof r=="string"?Number(r.replace(",",".")):r}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=T,this.isGpsTrackingEnabled=!0,this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!p.kioskData||!!this.currentPosition}selectRoute(t,e=!0,o=!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 a=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from instanceof d&&t.from.visible&&a.push(t.from),t?.to instanceof d&&t.to.visible&&(this.tempToBooth=null,a.push(t.to)),!t&&c.fp.onDirection&&c.fp.onDirection(null);const l=f(()=>{if(this.rootStore.moveToList(a),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=O(this.rootStore.layerStore,t?.from),m=O(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:""}`)});o?l():setTimeout(l,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 M(this.currentPosition,j,X);const t=p.kioskData;return t?M({x:t.x,y:t.y,z:t.z??void 0},G(),H):null}setStartPoint(t){const e=p.selectedRoute;if(e?.to&&!e?.from&&t){const o=new Route(t,e.to,e.waypoints);this.selectRoute(o)}}get pathLayers(){return c.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,o)=>o.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),o=P()?.properties.config,a=!!(t.lat&&t.lng),l=o&&a?I(t,o):t;return!l||!g(l.x)||!g(l.y)?null:this.rootStore.boothStore.booths.filter(s=>b.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)=>S(l,s.rect.center)-S(l,m.rect.center))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(tt),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const o=this.markersData.markers.find(l=>l.id===t);this.markersData.markers.forEach(l=>l.active=!1),o&&(o.active=!0);const a=c.layerStore.findLayer(o?.z);if(e&&o){a&&!a?.visible&&b.updateVisibility(a,!0);const l=L();return l?l.api.panTo({x:o.x,y:o.y}):(w.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(o=>o.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,o){clearTimeout(this.cpTimeout),t&&(t.x=h(t.x),t.y=h(t.y),t.lat!==void 0&&(t.lat=h(t.lat)),t.lng!==void 0&&(t.lng=h(t.lng)),W()||(t.z=void 0));const a=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),l=e&&!a&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString()??null,this.iconType=o?1:0;const s=t?et(t):null;if(!t||!s){this.currentPosition=null;return}const m=c.layerStore.findLayer(t.z),x=new CurrentPosition(s.x,s.y,m?.name||this.currentRouteLayer?.name,Z(s),t.lat,t.lng);let k=!this.routeLines?.length;m&&this.routeLines?.length&&(k=!!this.routeLines.find(v=>v.p0.layer===m.name||v.p1.layer===m.name));const z=l&&k;this.currentPosition=x,z&&this.focusOnPosition(x,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(B)==="false"&&(c.routeStore.requestCompass=!0),this.pendingReveal?.(),this.pendingReveal=N({layer:c.layerStore.findLayer(t.z),show:e=>b.updateVisibility(e,!0),then:()=>{p.moveToRect=this.findLocationRect(t)}}))}findLocationRect(t){const e=R.fromCenter(t,{x:100,y:100}),o=$();if(e.intersects(o))return e;const a=Math.max(o.min.x,Math.min(t.x,o.max.x)),l=Math.max(o.min.y,Math.min(t.y,o.max.y)),s=Math.min(o.size.width,o.size.height)*.3,m=R.fromCenter({x:a,y:l},{x:s,y:s}).intersection(o);return m?R.fromUnion(e,m):e}focusOnPosition(t,e){this.pendingReveal?.(),this.pendingReveal=N({layer:e,show:o=>b.updateVisibility(o,!0),then:()=>{if(c.maplibreStore.showMaplibre){p.moveToLocation=!0;return}const o=L();if(o){o.api.panTo({x:t.x,y:t.y});return}w.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:A(t,D(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=U(),o=(e.getAttribute("units")||T).toLowerCase?.().trim(),a=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(a?1:10)),this.routeUnits=o,this.updateRoutePoints()}updateRoutePoints(){const t=p.selectedRoute,e=this.routeDistance,o=this.routeUnits;c.fp.onDirection&&setTimeout(()=>{c.fp.onDirection({from:_(t?.from??null),to:_(t?.to??null),lines:this.routeLines,distance:e==null?"":`${e}${o}`,units:o,time:A(e??0,D(o))})},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 o=t[e];for(let a=e+1;a<t.length;a++){const l=t[a];q(C(o),C(l)).lines.length||console.warn(`No route found from ${o.name} to ${l.name}`)}}console.info("Route check done....")}setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return E.autoTrackingGps&&this.isGpsTrackingEnabled&&!E.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([y],i.prototype,"canFindLocation",null),n([f],i.prototype,"selectRoute",null),n([f],i.prototype,"rebuildRouteFromPosition",null),n([f],i.prototype,"setStartPoint",null),n([y({keepAlive:!0})],i.prototype,"pathLayers",null),n([f],i.prototype,"setMarkers",null),n([f],i.prototype,"selectMarker",null),n([y({keepAlive:!0})],i.prototype,"selectedMarkers",null),n([y({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([y],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([y({keepAlive:!0})],i.prototype,"gpsEnabled",null),n([f],i.prototype,"setOnlyAccessible",null);function Q(r){if(r)return r instanceof d?r.layer?.name:r.layer}function O(r,t){return t?t instanceof d?t.layer??null:r.findLayer(t.layer):null}function tt(r){return{...r,x:h(r.x),y:h(r.y),lat:r.lat===void 0?void 0:h(r.lat),lng:r.lng===void 0?void 0:h(r.lng)}}function et(r){const t=P()?.properties.config??null;let e=null;return t&&F({min:t.p0,max:t.p2},r)?e={...r}:t&&g(r.lat)&&g(r.lng)?e=I(r,t):t||(e=r),e||null}export function findBooth(r){return c.boothStore.findBooth(r)||c.exhibitorStore.findExhibitor(r)?.booths[0]}export function findEntityByExternalId(r){const t=c.boothStore.boothByExternalId.get(r);if(t)return{type:"booth",entity:t};const e=c.exhibitorStore.exhibitorByExternalId.get(r);if(e)return{type:"exhibitor",entity:e}}export function separateExternalIds(r){const t=[],e=[];for(const o of r){const a=findEntityByExternalId(o);a&&(a.type==="booth"?t.push(o):e.push(o))}return{boothExternalIds:t,exhibitorExternalIds:e}}export function extractRoute(r,t,e){return new Route(findBooth(r)??null,findBooth(t)??null,e?.map(o=>findBooth(o)).filter(o=>!!o))}export class Route{constructor(t,e,o){this.from=t,this.to=e,this.waypoints=o;const a=t instanceof d?t.id:void 0,l=e instanceof d?e.id:void 0;this.waypoints=o?.filter(s=>s&&s.id!==a&&s.id!==l)}}function _(r){return r?r instanceof d?{id:r.id,name:r.name,externalId:r.externalId,layer:{name:r.layer?.name,description:r.layer?.description}}:{id:Number.MAX_SAFE_INTEGER,name:r.name,externalId:void 0,layer:{name:r.layer,description:void 0}}:null}export class CurrentPosition{constructor(t,e,o,a,l,s){this.x=t,this.y=e,this.z=o,this.angle=a,this.lat=l,this.lng=s}}
1
+ import{__decorate as n}from"tslib";import{Box as x,boxContainsPoint as z,pointDistance as S}from"@expofp/geometry";import{action as f,computed as y,observable as u}from"mobx";import{getName as F}from"../components/Kiosk/SetKiosk";import{mapCamera as L}from"../components/Map/camera";import{DEFAULT_UNITS as T,ORIENTATION_GRANTED_KEY as G}from"../constants";import E from"../data";import{getFpGeo as P}from"../data/fpGeo.js";import{getLayerSvg as U,getSvgArea as $}from"../data/svg.js";import{GaEventActions as V,sendEventToGa as K}from"../tools/gtag";import w from"../tools/logger";import{areLayersEnabled as W}from"../utils/areLayersEnabled";import{calcSpeed as D}from"../utils/calcSpeed";import{calcTravelTime as A}from"../utils/calcTravelTime";import{calculateRelativeBearing as Z,convertGpsToLocal as I,isValidPointCoords as g}from"../utils/gps";import{boothToEndpoint as C,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 M}from"../wayfinding";import c,{layersStore as b,uiState as p}from".";import{BoothBase as m}from"./BoothStore";import{LayersMode as J}from"./LayerStore";import{revealLayer as N}from"./reveal-layer.js";function d(r){return typeof r=="string"?Number(r.replace(",",".")):r}export default class i{constructor(t){this.routeLines=[],this.routeDistance=null,this.currentPosition=null,this.requestCompass=!1,this.iconType=0,this.tappedBooth=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=T,this.isGpsTrackingEnabled=!0,this.rootStore=t,this.focusEnabled=!window.location.search}get tempToBooth(){const t=this.tappedBooth;return t?.exhibitors.some(e=>e===p.details)?t:null}set tempToBooth(t){this.tappedBooth=t}get canFindLocation(){return!!p.kioskData||!!this.currentPosition}selectRoute(t,e=!0,o=!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 a=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from instanceof m&&t.from.visible&&a.push(t.from),t?.to instanceof m&&t.to.visible&&(this.tempToBooth=null,a.push(t.to)),!t&&c.fp.onDirection&&c.fp.onDirection(null);const l=f(()=>{if(this.rootStore.moveToList(a),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=O(this.rootStore.layerStore,t?.from),h=O(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:""}`)});o?l():setTimeout(l,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 M(this.currentPosition,j,X);const t=p.kioskData;return t?M({x:t.x,y:t.y,z:t.z??void 0},F(),H):null}setStartPoint(t){const e=p.selectedRoute;if(e?.to&&!e?.from&&t){const o=new Route(t,e.to,e.waypoints);this.selectRoute(o)}}get pathLayers(){return c.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,o)=>o.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),o=P()?.properties.config,a=!!(t.lat&&t.lng),l=o&&a?I(t,o):t;return!l||!g(l.x)||!g(l.y)?null:this.rootStore.boothStore.booths.filter(s=>b.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)=>S(l,s.rect.center)-S(l,h.rect.center))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(tt),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const o=this.markersData.markers.find(l=>l.id===t);this.markersData.markers.forEach(l=>l.active=!1),o&&(o.active=!0);const a=c.layerStore.findLayer(o?.z);if(e&&o){a&&!a?.visible&&b.updateVisibility(a,!0);const l=L();return l?l.api.panTo({x:o.x,y:o.y}):(w.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(o=>o.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,o){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 a=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),l=e&&!a&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString()??null,this.iconType=o?1:0;const s=t?et(t):null;if(!t||!s){this.currentPosition=null;return}const h=c.layerStore.findLayer(t.z),R=new CurrentPosition(s.x,s.y,h?.name||this.currentRouteLayer?.name,Z(s),t.lat,t.lng);let k=!this.routeLines?.length;h&&this.routeLines?.length&&(k=!!this.routeLines.find(v=>v.p0.layer===h.name||v.p1.layer===h.name));const _=l&&k;this.currentPosition=R,_&&this.focusOnPosition(R,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(G)==="false"&&(c.routeStore.requestCompass=!0),this.pendingReveal?.(),this.pendingReveal=N({layer:c.layerStore.findLayer(t.z),show:e=>b.updateVisibility(e,!0),then:()=>{p.moveToRect=this.findLocationRect(t)}}))}findLocationRect(t){const e=x.fromCenter(t,{x:100,y:100}),o=$();if(e.intersects(o))return e;const a=Math.max(o.min.x,Math.min(t.x,o.max.x)),l=Math.max(o.min.y,Math.min(t.y,o.max.y)),s=Math.min(o.size.width,o.size.height)*.3,h=x.fromCenter({x:a,y:l},{x:s,y:s}).intersection(o);return h?x.fromUnion(e,h):e}focusOnPosition(t,e){this.pendingReveal?.(),this.pendingReveal=N({layer:e,show:o=>b.updateVisibility(o,!0),then:()=>{if(c.maplibreStore.showMaplibre){p.moveToLocation=!0;return}const o=L();if(o){o.api.panTo({x:t.x,y:t.y});return}w.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:A(t,D(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=U(),o=(e.getAttribute("units")||T).toLowerCase?.().trim(),a=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(a?1:10)),this.routeUnits=o,this.updateRoutePoints()}updateRoutePoints(){const t=p.selectedRoute,e=this.routeDistance,o=this.routeUnits;c.fp.onDirection&&setTimeout(()=>{c.fp.onDirection({from:B(t?.from??null),to:B(t?.to??null),lines:this.routeLines,distance:e==null?"":`${e}${o}`,units:o,time:A(e??0,D(o))})},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 o=t[e];for(let a=e+1;a<t.length;a++){const l=t[a];q(C(o),C(l)).lines.length||console.warn(`No route found from ${o.name} to ${l.name}`)}}console.info("Route check done....")}setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return E.autoTrackingGps&&this.isGpsTrackingEnabled&&!E.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,"tappedBooth",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([y],i.prototype,"canFindLocation",null),n([f],i.prototype,"selectRoute",null),n([f],i.prototype,"rebuildRouteFromPosition",null),n([f],i.prototype,"setStartPoint",null),n([y({keepAlive:!0})],i.prototype,"pathLayers",null),n([f],i.prototype,"setMarkers",null),n([f],i.prototype,"selectMarker",null),n([y({keepAlive:!0})],i.prototype,"selectedMarkers",null),n([y({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([y],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([y({keepAlive:!0})],i.prototype,"gpsEnabled",null),n([f],i.prototype,"setOnlyAccessible",null);function Q(r){if(r)return r instanceof m?r.layer?.name:r.layer}function O(r,t){return t?t instanceof m?t.layer??null:r.findLayer(t.layer):null}function tt(r){return{...r,x:d(r.x),y:d(r.y),lat:r.lat===void 0?void 0:d(r.lat),lng:r.lng===void 0?void 0:d(r.lng)}}function et(r){const t=P()?.properties.config??null;let e=null;return t&&z({min:t.p0,max:t.p2},r)?e={...r}:t&&g(r.lat)&&g(r.lng)?e=I(r,t):t||(e=r),e||null}export function findBooth(r){return c.boothStore.findBooth(r)||c.exhibitorStore.findExhibitor(r)?.booths[0]}export function findEntityByExternalId(r){const t=c.boothStore.boothByExternalId.get(r);if(t)return{type:"booth",entity:t};const e=c.exhibitorStore.exhibitorByExternalId.get(r);if(e)return{type:"exhibitor",entity:e}}export function separateExternalIds(r){const t=[],e=[];for(const o of r){const a=findEntityByExternalId(o);a&&(a.type==="booth"?t.push(o):e.push(o))}return{boothExternalIds:t,exhibitorExternalIds:e}}export function extractRoute(r,t,e){return new Route(findBooth(r)??null,findBooth(t)??null,e?.map(o=>findBooth(o)).filter(o=>!!o))}export class Route{constructor(t,e,o){this.from=t,this.to=e,this.waypoints=o;const a=t instanceof m?t.id:void 0,l=e instanceof m?e.id:void 0;this.waypoints=o?.filter(s=>s&&s.id!==a&&s.id!==l)}}function B(r){return r?r instanceof m?{id:r.id,name:r.name,externalId:r.externalId,layer:{name:r.layer?.name,description:r.layer?.description}}:{id:Number.MAX_SAFE_INTEGER,name:r.name,externalId:void 0,layer:{name:r.layer,description:void 0}}:null}export class CurrentPosition{constructor(t,e,o,a,l,s){this.x=t,this.y=e,this.z=o,this.angle=a,this.lat=l,this.lng=s}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/floorplan",
3
- "version": "3.45.7",
3
+ "version": "3.45.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/expofp/efp-app.git",
@@ -69,15 +69,15 @@
69
69
  "tslib": "^2.3.0",
70
70
  "uuid": "^9.0.1",
71
71
  "zod": "4.4.3",
72
- "@expofp/config": "3.45.7",
73
- "@expofp/debug": "3.45.7",
74
- "@expofp/geometry": "3.45.7",
75
- "@expofp/renderer": "3.45.7",
76
- "@expofp/resolve": "3.45.7",
77
- "@expofp/schema": "3.45.7",
78
- "@expofp/ui": "3.45.7",
79
- "@expofp/utils": "3.45.7",
80
- "@expofp/wayfinding": "3.45.7"
72
+ "@expofp/config": "3.45.9",
73
+ "@expofp/debug": "3.45.9",
74
+ "@expofp/geometry": "3.45.9",
75
+ "@expofp/renderer": "3.45.9",
76
+ "@expofp/resolve": "3.45.9",
77
+ "@expofp/ui": "3.45.9",
78
+ "@expofp/schema": "3.45.9",
79
+ "@expofp/utils": "3.45.9",
80
+ "@expofp/wayfinding": "3.45.9"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@babel/plugin-proposal-decorators": "^8.0.2",