@expofp/floorplan 3.40.2 → 3.41.1

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 (79) hide show
  1. package/dist/browser/{Button-Dl3K4FxR.js → Button-DQ1VgK7P.js} +5 -5
  2. package/dist/browser/{CookieConsent-CluEwzBl.js → CookieConsent-OxSpNRSR.js} +7 -7
  3. package/dist/browser/{Debug-j4CCi0O5.js → Debug-DJL7qze8.js} +7 -7
  4. package/dist/browser/{DebugTools-1tSg1zfy.js → DebugTools-CEpcZpSV.js} +6 -6
  5. package/dist/browser/{Demo-DbRNegr3.js → Demo-tbwenDts.js} +9 -9
  6. package/dist/browser/{Free-B0Qaa_x6.js → Free-DAPEnAot.js} +13 -13
  7. package/dist/browser/{GalleryContainer-B2c_Ob3n.js → GalleryContainer-BT5J8pQd.js} +10 -10
  8. package/dist/browser/{GpsLoader-Cm-VP0Ih.js → GpsLoader-Defkuwku.js} +34 -34
  9. package/dist/browser/{KioskStore-BXlVG9J4.js → KioskStore-VYUmb42r.js} +25 -25
  10. package/dist/browser/{MaplibreAdapter-BtZwv2RM.js → MaplibreAdapter-wd5sDnnR.js} +158 -158
  11. package/dist/browser/{ModalContainer-CD3uo7m-.js → ModalContainer-D8iFNUXv.js} +10 -10
  12. package/dist/browser/{PermissionNotice-BCNDTLsb.js → PermissionNotice-67z8D3bL.js} +6 -6
  13. package/dist/browser/{SetKioskMode-pZ4kyeE6.js → SetKioskMode-BF2QJgBh.js} +16 -16
  14. package/dist/browser/{ShowKiosk-JxgBPX9H.js → ShowKiosk-BvuupdPb.js} +11 -11
  15. package/dist/browser/{ViewerMenuPanel-DfeHqCox.js → ViewerMenuPanel-DGRNcltq.js} +10 -10
  16. package/dist/browser/{add-debug-secret-listener-C0uvuBV9.js → add-debug-secret-listener-DE2AY4BU.js} +1 -1
  17. package/dist/browser/{adopt-global-settings-BEqSCPFu.js → adopt-global-settings-C59x8fLH.js} +9 -9
  18. package/dist/browser/{boolean-editor-D7QYyNbK.js → boolean-editor-DJ3q3L4o.js} +9 -9
  19. package/dist/browser/{bootIntercom-aZdJ2jlp.js → bootIntercom-Rn_KvUDt.js} +2 -2
  20. package/dist/browser/bundle.json +71 -71
  21. package/dist/browser/{camera-events-Du5PkjAm.js → camera-events-BQl1apsg.js} +1 -1
  22. package/dist/browser/{classnames-DFXd9Nzv.js → classnames-CsjXYNRT.js} +2 -2
  23. package/dist/browser/{client-CoE7dhxI.js → client-DsrI9o3t.js} +5 -5
  24. package/dist/browser/{components-DNNKY8zt.js → components-C6alQQlT.js} +1199 -1198
  25. package/dist/browser/{debug-context-Bh2tH1Ti.js → debug-context-zwRfx7_G.js} +5 -5
  26. package/dist/browser/{debug-overlay-i0AHC8HQ.js → debug-overlay-pGCmfAeE.js} +10 -10
  27. package/dist/browser/{debug-ui-2CIonpdp.js → debug-ui-8d8bh4Ei.js} +6 -6
  28. package/dist/browser/{dimming-C1M4fMTq.js → dimming-BYtOaQLl.js} +210 -210
  29. package/dist/browser/{dist-KQXTjF0b.js → dist--yX45is8.js} +6 -6
  30. package/dist/browser/{dist-CHWDmiUg.js → dist-B7U2yJwD.js} +5 -5
  31. package/dist/browser/{dist-DYLVUrDW.js → dist-DBUxXyH-.js} +3 -3
  32. package/dist/browser/{efp-debug-init-CHGnPNcF.js → efp-debug-init-CmjjGCqx.js} +3 -3
  33. package/dist/browser/{enum-editor-Cf4RJ2Yj.js → enum-editor-gzA_rV_6.js} +4 -4
  34. package/dist/browser/{es5-CI29Led5.js → es5-1E3bW8NN.js} +2 -2
  35. package/dist/browser/{event-head-BfnsHmSi.js → event-head-DNeODWGG.js} +1 -1
  36. package/dist/browser/{event-not-found-DA_ZZj5G.js → event-not-found-FILBU3Js.js} +3 -3
  37. package/dist/browser/{exports-CbCXll5y.js → exports-V2bKAasf.js} +1 -1
  38. package/dist/browser/{favicon-Dsl_HMeH.js → favicon-DH-H-EsL.js} +1 -1
  39. package/dist/browser/{fetch-retry.umd-I3PMISHy.js → fetch-retry.umd-DsTx-NiD.js} +2 -2
  40. package/dist/browser/{flex-uJGM-5HO.js → flex-CVe-CvaW.js} +5 -5
  41. package/dist/browser/{floorplan.loader-UEt_bXNh.js → floorplan.loader-Yb1PHzM8.js} +10 -10
  42. package/dist/browser/{floorplan.ready-BOjuitfZ.js → floorplan.ready-5iJDPqsj.js} +312 -312
  43. package/dist/browser/{fuse-zWMfLK6L.js → fuse-D2KVxf7r.js} +2 -2
  44. package/dist/browser/{i18n-i7YP-IOh.js → i18n-D6W0ugWI.js} +5 -5
  45. package/dist/browser/index.js +16 -16
  46. package/dist/browser/{index.module-DN_76VFm.js → index.module-BdRgUz3I.js} +4 -4
  47. package/dist/browser/{integrateKiosk-qKsSXfff.js → integrateKiosk-B9UU_EuA.js} +4 -4
  48. package/dist/browser/{is-own-domain-BtFo1Crc.js → is-own-domain-BzS4ijJu.js} +1 -1
  49. package/dist/browser/{is-webview-BNkzzffw.js → is-webview-DskJpzq7.js} +1 -1
  50. package/dist/browser/{jsx-runtime-DyThPKRk.js → jsx-runtime-Canx27FQ.js} +2 -2
  51. package/dist/browser/{kiosk-record-Ppyzn0w0.js → kiosk-record-Boxg-feP.js} +1 -1
  52. package/dist/browser/{lib-N8tTonez.js → lib-CTsFgWK2.js} +3 -3
  53. package/dist/browser/{loadImage-Bot6Vn0t.js → loadImage-Du_UaUMH.js} +4 -4
  54. package/dist/browser/{logDeviceInfo-CKJu50c-.js → logDeviceInfo-DxFKS31n.js} +9 -9
  55. package/dist/browser/{mobx-BwxeviHO.js → mobx-CZbK9NLJ.js} +4 -4
  56. package/dist/browser/{optional-boolean-editor-Dn6kfd_9.js → optional-boolean-editor-DUMYi2FA.js} +3 -3
  57. package/dist/browser/{optional-enum-editor-RBacq770.js → optional-enum-editor-vZD36QdW.js} +4 -4
  58. package/dist/browser/{optional-string-editor-BF661eve.js → optional-string-editor-J2K7EapI.js} +4 -4
  59. package/dist/browser/{particles.min-C_te_-iS.js → particles.min-Cu6vwDTO.js} +2 -2
  60. package/dist/browser/{react-CiryCp2B.js → react-BeuB34_H.js} +2 -2
  61. package/dist/browser/{react-dom-BAXfewx9.js → react-dom-CgnO8dtw.js} +3 -3
  62. package/dist/browser/{rolldown-runtime-DfT_KF1d.js → rolldown-runtime-BG1hI41C.js} +1 -1
  63. package/dist/browser/{scheduler-0dkhSGfa.js → scheduler-olrX8Rso.js} +2 -2
  64. package/dist/browser/{select-BvAHNMEr.js → select-DF9RLlZo.js} +10 -10
  65. package/dist/browser/{settings-cVdmOMMJ.js → settings-QTBAixhj.js} +2 -2
  66. package/dist/browser/{settings-item-C4gYOWWR.js → settings-item-MLTjpNt1.js} +6 -6
  67. package/dist/browser/{store-BSwroh2x.js → store-xco7LmUF.js} +4001 -3828
  68. package/dist/browser/{string-editor-DUVQYZsT.js → string-editor-DiYh6s-0.js} +4 -4
  69. package/dist/browser/{text-field-Cbo5wm0u.js → text-field-_J6jCWAB.js} +5 -5
  70. package/dist/browser/{theme-DOSbtv4l.js → theme-Da74djmA.js} +8 -8
  71. package/dist/browser/{ui-lll8ACbE.js → ui-CpOsJFje.js} +8 -8
  72. package/dist/browser/{useRenderTarget-OBDPXsyr.js → useRenderTarget-BTXK_51U.js} +4 -4
  73. package/dist/browser/{viewport-DjEIJxeQ.js → viewport-pzx361u5.js} +3 -3
  74. package/dist/esm/components/Map/Map.js +1 -1
  75. package/dist/esm/components/Map/pointer.d.ts +4 -0
  76. package/dist/esm/components/Map/pointer.js +1 -1
  77. package/dist/esm/store/UIState.d.ts +4 -0
  78. package/dist/esm/store/UIState.js +1 -1
  79. package/package.json +10 -10
@@ -2,24 +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.40.2" };
5
+ e.SENTRY_RELEASE = { id: "3.41.1" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5212d0bf-1608-4265-a87f-ae9d054b8eca", e._sentryDebugIdIdentifier = "sentry-dbid-5212d0bf-1608-4265-a87f-ae9d054b8eca");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0d219a5a-750e-44d3-b621-a0c1dc8305fb", e._sentryDebugIdIdentifier = "sentry-dbid-0d219a5a-750e-44d3-b621-a0c1dc8305fb");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-DfT_KF1d.js";
11
- import { X as n, Z as r, v as i, y as a } from "./i18n-i7YP-IOh.js";
12
- import { t as o } from "./react-CiryCp2B.js";
13
- import { t as s } from "./jsx-runtime-DyThPKRk.js";
14
- import { n as c } from "./loadImage-Bot6Vn0t.js";
15
- import { An as l, Cn as u, D as d, Dn as f, En as p, Et as m, F as h, Gt as g, Jt as _, Lt as v, N as y, Rt as b, Sn as x, St as S, Ut as C, V as w, Wt as T, an as E, bn as D, c as O, d as k, f as A, jt as j, l as M, p as N, u as ee, v as te, wn as ne, xt as P } from "./store-BSwroh2x.js";
16
- import { t as re } from "./index.module-DN_76VFm.js";
17
- import { i as ie } from "./mobx-BwxeviHO.js";
18
- import { t as ae } from "./camera-events-Du5PkjAm.js";
19
- import { t as oe } from "./viewport-DjEIJxeQ.js";
20
- import { a as se, c as ce, i as le, l as ue, n as de, o as fe, r as pe, s as me, t as he } from "./dimming-C1M4fMTq.js";
10
+ import { r as e, t } from "./rolldown-runtime-BG1hI41C.js";
11
+ import { X as n, Z as r, v as i, y as a } from "./i18n-D6W0ugWI.js";
12
+ import { t as o } from "./react-BeuB34_H.js";
13
+ import { t as s } from "./jsx-runtime-Canx27FQ.js";
14
+ import { n as c } from "./loadImage-Du_UaUMH.js";
15
+ import { Cn as l, Ct as u, Dn as d, Dt as f, Gt as p, H as m, I as h, Kt as g, Mt as _, O as v, On as y, P as b, Rt as x, St as S, Tn as C, Wt as w, Yt as T, c as E, d as D, f as O, jn as k, l as A, m as j, on as M, p as N, wn as ee, xn as te, y as ne, zt as P } from "./store-xco7LmUF.js";
16
+ import { t as re } from "./index.module-BdRgUz3I.js";
17
+ import { i as ie } from "./mobx-CZbK9NLJ.js";
18
+ import { t as ae } from "./camera-events-BQl1apsg.js";
19
+ import { t as oe } from "./viewport-pzx361u5.js";
20
+ import { a as se, c as ce, i as le, l as ue, n as de, o as fe, r as pe, s as me, t as he } from "./dimming-BYtOaQLl.js";
21
21
  //#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
22
- var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(f(), 1), _e = (/* @__PURE__ */ t(((e, t) => {
22
+ var F = /* @__PURE__ */ e(o(), 1), ge = /* @__PURE__ */ e(y(), 1), _e = (/* @__PURE__ */ t(((e, t) => {
23
23
  (function(n, r) {
24
24
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.maplibregl = r());
25
25
  })(e, (function() {
@@ -34710,8 +34710,8 @@ function Gt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34710
34710
  },
34711
34711
  bearingSnap: 0,
34712
34712
  aroundCenter: !1,
34713
- pitchWithRotate: M.pitchEnabled,
34714
- touchPitch: M.pitchEnabled,
34713
+ pitchWithRotate: A.pitchEnabled,
34714
+ touchPitch: A.pitchEnabled,
34715
34715
  canvasContextAttributes: { antialias: !0 }
34716
34716
  });
34717
34717
  t.zoomAdjustment && u.jumpTo({ zoom: u.getZoom() + t.zoomAdjustment }), u.once("error", (e) => {
@@ -34768,7 +34768,7 @@ function Gt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34768
34768
  u.off("style.load", y), u.off("styleimagemissing", d), u.remove();
34769
34769
  };
34770
34770
  };
34771
- return i ? b().then(() => {
34771
+ return i ? P().then(() => {
34772
34772
  a || s();
34773
34773
  }) : s(), () => {
34774
34774
  a = !0, o == null || o(), f(void 0);
@@ -34782,7 +34782,7 @@ function Gt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34782
34782
  width: "100%",
34783
34783
  height: "100%"
34784
34784
  },
34785
- children: d && /* @__PURE__ */ (0, Nt.jsx)(v, {
34785
+ children: d && /* @__PURE__ */ (0, Nt.jsx)(x, {
34786
34786
  ...d,
34787
34787
  scene: e,
34788
34788
  debug: i,
@@ -34810,20 +34810,20 @@ function en(e, t, n) {
34810
34810
  }
34811
34811
  function tn(e, t) {
34812
34812
  let n = [
34813
- y(e.min.x, e.min.y, t),
34814
- y(e.max.x, e.min.y, t),
34815
- y(e.max.x, e.max.y, t),
34816
- y(e.min.x, e.max.y, t)
34813
+ b(e.min.x, e.min.y, t),
34814
+ b(e.max.x, e.min.y, t),
34815
+ b(e.max.x, e.max.y, t),
34816
+ b(e.min.x, e.max.y, t)
34817
34817
  ], r = n.map(([e]) => e), i = n.map(([, e]) => e);
34818
34818
  return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
34819
34819
  }
34820
34820
  var nn = 512;
34821
34821
  function rn(e, t, n, r, i) {
34822
34822
  let a = [
34823
- y(e.min.x, e.min.y, t),
34824
- y(e.max.x, e.min.y, t),
34825
- y(e.max.x, e.max.y, t),
34826
- y(e.min.x, e.max.y, t)
34823
+ b(e.min.x, e.min.y, t),
34824
+ b(e.max.x, e.min.y, t),
34825
+ b(e.max.x, e.max.y, t),
34826
+ b(e.min.x, e.max.y, t)
34827
34827
  ].map(([e, t]) => _e.MercatorCoordinate.fromLngLat({
34828
34828
  lng: e,
34829
34829
  lat: t
@@ -34835,9 +34835,9 @@ function rn(e, t, n, r, i) {
34835
34835
  if (p <= 0 || m <= 0) return null;
34836
34836
  let h = Math.min(p / (d * nn), m / (f * nn));
34837
34837
  if (!(h > 0)) return null;
34838
- let g = nn * h, _ = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / g, v = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / g, { lng: b, lat: x } = new _e.MercatorCoordinate(_ * s + v * c, -_ * c + v * s).toLngLat();
34838
+ let g = nn * h, _ = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / g, v = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / g, { lng: y, lat: x } = new _e.MercatorCoordinate(_ * s + v * c, -_ * c + v * s).toLngLat();
34839
34839
  return {
34840
- center: [b, x],
34840
+ center: [y, x],
34841
34841
  zoom: Math.log2(h)
34842
34842
  };
34843
34843
  }
@@ -34850,7 +34850,7 @@ function an(e, t) {
34850
34850
  };
34851
34851
  }
34852
34852
  function on(e = 0) {
34853
- let t = M.canvasVisibleRectPx, n = M.screenSize;
34853
+ let t = A.canvasVisibleRectPx, n = A.screenSize;
34854
34854
  return t ? {
34855
34855
  top: Math.max(0, t.min.y) + e,
34856
34856
  bottom: Math.max(0, n.height - t.max.y) + e,
@@ -34869,8 +34869,8 @@ function sn(e, t, n) {
34869
34869
  }
34870
34870
  function K() {
34871
34871
  var e, t;
34872
- if (!(!(w == null || (e = w.properties) == null) && e.config)) return null;
34873
- let n = w.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = h(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
34872
+ if (!(!(m == null || (e = m.properties) == null) && e.config)) return null;
34873
+ let n = m.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = h(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
34874
34874
  return {
34875
34875
  center: [r, i],
34876
34876
  bearing: o,
@@ -34931,9 +34931,9 @@ function q(e, t, n, r = {}) {
34931
34931
  }
34932
34932
  //#endregion
34933
34933
  //#region src/components/Maplibre/useCameraReactions.ts
34934
- var cn = M, J = 15, ln = 24, un = 20;
34934
+ var cn = A, J = 15, ln = 24, un = 20;
34935
34935
  function dn(e) {
34936
- return ee(e, A(e, x)).expand(un);
34936
+ return D(e, N(e, l)).expand(un);
34937
34937
  }
34938
34938
  function fn(e, t) {
34939
34939
  return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
@@ -34941,9 +34941,9 @@ function fn(e, t) {
34941
34941
  function pn(e, t, n) {
34942
34942
  var r;
34943
34943
  if (n.length !== 1) return !1;
34944
- let i = (r = n[0]) == null ? void 0 : r.id, a = O.poiMarkerStore.markers.find((e) => e.boothId === i);
34944
+ let i = (r = n[0]) == null ? void 0 : r.id, a = E.poiMarkerStore.markers.find((e) => e.boothId === i);
34945
34945
  if (!a) return !1;
34946
- let o = y(a.center.x, a.center.y, t.gpsConfig);
34946
+ let o = b(a.center.x, a.center.y, t.gpsConfig);
34947
34947
  return sn(e, o, on(ln)) || e.easeTo({
34948
34948
  center: o,
34949
34949
  zoom: fn(e, J),
@@ -34962,7 +34962,7 @@ function mn(e, t, n) {
34962
34962
  cn.moveToBooths = null;
34963
34963
  return;
34964
34964
  }
34965
- q(r, dn(l.fromUnion(...i.map((e) => e.rect))), t), cn.moveToBooths = null;
34965
+ q(r, dn(k.fromUnion(...i.map((e) => e.rect))), t), cn.moveToBooths = null;
34966
34966
  }
34967
34967
  }), ie(() => cn.moveToRect, (n) => {
34968
34968
  let r = e.current;
@@ -34975,44 +34975,44 @@ function mn(e, t, n) {
34975
34975
  duration: 500
34976
34976
  }), cn.zoomBy = null);
34977
34977
  }), ie(() => [
34978
- M.moveToLocation,
34979
- O.maplibreStore.cameraPort,
34980
- O.routeStore.currentPosition
34978
+ A.moveToLocation,
34979
+ E.maplibreStore.cameraPort,
34980
+ E.routeStore.currentPosition
34981
34981
  ], ([n]) => {
34982
34982
  if (!n) return;
34983
- let r = e.current, i = O.routeStore.currentPosition;
34983
+ let r = e.current, i = E.routeStore.currentPosition;
34984
34984
  if (!i) {
34985
- M.moveToLocation = !1;
34985
+ A.moveToLocation = !1;
34986
34986
  return;
34987
34987
  }
34988
34988
  if (!r) return;
34989
34989
  let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o);
34990
- M.moveToLocation = !1;
34990
+ A.moveToLocation = !1;
34991
34991
  let c;
34992
34992
  if (s) c = [a, o];
34993
34993
  else {
34994
34994
  if (!t) return;
34995
- c = y(i.x, i.y, t.gpsConfig);
34995
+ c = b(i.x, i.y, t.gpsConfig);
34996
34996
  }
34997
34997
  r.flyTo({
34998
34998
  center: c,
34999
34999
  animate: !0,
35000
35000
  duration: 1e3
35001
35001
  });
35002
- }), ie(() => M.centerMap, (r) => {
35002
+ }), ie(() => A.centerMap, (r) => {
35003
35003
  let i = e.current;
35004
35004
  if (!(!r || !i || !t)) {
35005
- if (!(M.list.type === "search" && !M.list.text)) {
35006
- let { rect: e } = N({
35007
- layerViewbox: O.layerStore.viewboxRectangle,
35008
- explicitArea: u ? x : null,
35009
- layerRectangle: O.layerStore.rectangle,
35005
+ if (!(A.list.type === "search" && !A.list.text)) {
35006
+ let { rect: e } = j({
35007
+ layerViewbox: E.layerStore.viewboxRectangle,
35008
+ explicitArea: ee ? l : null,
35009
+ layerRectangle: E.layerStore.rectangle,
35010
35010
  sceneDef: n,
35011
- svgArea: x
35011
+ svgArea: l
35012
35012
  });
35013
35013
  q(i, e, t);
35014
35014
  }
35015
- M.centerMap = !1;
35015
+ A.centerMap = !1;
35016
35016
  }
35017
35017
  });
35018
35018
  }
@@ -35046,27 +35046,27 @@ function Cn(e, t) {
35046
35046
  var n, r, i;
35047
35047
  if (!e) return;
35048
35048
  e.setMinZoom((n = t.minZoom) == null ? null : n), e.setMaxZoom((r = t.maxZoom) == null ? null : r), e.setMaxBounds((i = t.maxBounds) == null ? null : i);
35049
- let { pitch: a, maxPitch: o } = t, s = M.animatePitch, c = e.getPitch(), l = !!(s && a != null && o != null && o < c);
35049
+ let { pitch: a, maxPitch: o } = t, s = A.animatePitch, c = e.getPitch(), l = !!(s && a != null && o != null && o < c);
35050
35050
  l || e.setMaxPitch(o == null ? null : o), !(a == null || c === a) && (s ? (e.easeTo({
35051
35051
  pitch: a,
35052
- duration: M.mapSettings.pitchtime
35052
+ duration: A.mapSettings.pitchtime
35053
35053
  }), l && e.once("moveend", () => e.setMaxPitch(o))) : e.jumpTo({ pitch: a }));
35054
35054
  }
35055
35055
  function wn() {
35056
35056
  var e, t, n;
35057
- let r = (e = (t = O.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
35057
+ let r = (e = (t = E.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
35058
35058
  return r != null && r.style ? {
35059
35059
  style: r.style,
35060
35060
  offline: r.offline
35061
35061
  } : r != null && r.styleUrl ? {
35062
35062
  style: r.styleUrl,
35063
35063
  offline: r.offline
35064
- } : vn(w == null || (n = w.properties) == null || (n = n.config) == null ? void 0 : n.style, ne.backgroundColor) === "dark" ? bn : yn;
35064
+ } : vn(m == null || (n = m.properties) == null || (n = n.config) == null ? void 0 : n.style, C.backgroundColor) === "dark" ? bn : yn;
35065
35065
  }
35066
35066
  //#endregion
35067
35067
  //#region src/components/Maplibre/useDimming.ts
35068
35068
  function Tn() {
35069
- return M.dimmed && !O.poiMarkerStore.dimSuppressed;
35069
+ return A.dimmed && !E.poiMarkerStore.dimSuppressed;
35070
35070
  }
35071
35071
  function En(e, t) {
35072
35072
  let n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useCallback)((e) => {
@@ -35079,7 +35079,7 @@ function En(e, t) {
35079
35079
  xn(e.current, t * he);
35080
35080
  }), a = pe((e) => {
35081
35081
  let n = t.current;
35082
- n && de(n, e * 1) && C(n.rootLayer);
35082
+ n && de(n, e * 1) && w(n.rootLayer);
35083
35083
  });
35084
35084
  return n.current = i, r.current = a, () => {
35085
35085
  i.stop(), a.stop(), n.current = null, r.current = null;
@@ -35121,14 +35121,14 @@ function On(e, t = /* @__PURE__ */ new Map()) {
35121
35121
  let n = (r = t.get(e.name)) == null ? [] : r;
35122
35122
  n.push(e), t.set(e.name, n);
35123
35123
  }
35124
- for (let r of (n = e.children) == null ? [] : n) T(r) && On(r, t);
35124
+ for (let r of (n = e.children) == null ? [] : n) p(r) && On(r, t);
35125
35125
  return t;
35126
35126
  }
35127
35127
  //#endregion
35128
35128
  //#region src/components/Maplibre/useLayerVisibilitySync.ts
35129
35129
  function kn(e, t, n) {
35130
35130
  let r = (0, F.useRef)(null), i = (0, F.useRef)(null);
35131
- ie(() => O.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
35131
+ ie(() => E.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
35132
35132
  var a, o;
35133
35133
  if (!e) return;
35134
35134
  ((a = r.current) == null ? void 0 : a.rootLayer) !== e.rootLayer && (r.current = {
@@ -35136,15 +35136,15 @@ function kn(e, t, n) {
35136
35136
  defsByName: On(e.rootLayer)
35137
35137
  });
35138
35138
  let s = r.current.defsByName, c = [];
35139
- for (let e of O.layerStore.layers) {
35139
+ for (let e of E.layerStore.layers) {
35140
35140
  let t = s.get(e.name);
35141
35141
  if (t != null && t.length) for (let n of t) {
35142
35142
  let t = !e.visible;
35143
35143
  n.hidden !== t && (n.hidden = t, c.push(n));
35144
35144
  }
35145
35145
  }
35146
- c.length && C(...c);
35147
- let l = O.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
35146
+ c.length && w(...c);
35147
+ let l = E.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
35148
35148
  if (!l || i.current === l.name) return;
35149
35149
  i.current = l.name;
35150
35150
  let u = (o = l.viewbox) == null ? l.rect : o;
@@ -35166,22 +35166,22 @@ var An = "expofp-poi", jn = "expofp-poi-clusters", Mn = "expofp-poi-cluster-coun
35166
35166
  function zn(e, t, a) {
35167
35167
  (0, F.useEffect)(() => {
35168
35168
  var o;
35169
- if (!P()) return;
35169
+ if (!S()) return;
35170
35170
  let s = t.current;
35171
35171
  if (!e || !s || !a) return;
35172
- let { gpsConfig: c } = a, u = /* @__PURE__ */ new Set(), d = window.devicePixelRatio || 1, f = E(36, d, ((o = ne.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), p = (e) => y(e.center.x, e.center.y, c), m = (e, t) => {
35173
- s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: d }), u.add(e);
35174
- }, h = (e) => {
35175
- let t = O.poiMarkerStore.markers, n = new Set(t.map((e) => Rn(e.boothId)));
35172
+ let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), u = window.devicePixelRatio || 1, d = M(36, u, ((o = C.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), f = (e) => b(e.center.x, e.center.y, c), p = (e, t) => {
35173
+ s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: u }), l.add(e);
35174
+ }, m = (e) => {
35175
+ let t = E.poiMarkerStore.markers, n = new Set(t.map((e) => Rn(e.boothId)));
35176
35176
  n.add(Fn);
35177
- for (let e of [...u]) n.has(e) || (s.hasImage(e) && s.removeImage(e), u.delete(e));
35177
+ for (let e of [...l]) n.has(e) || (s.hasImage(e) && s.removeImage(e), l.delete(e));
35178
35178
  for (let n of t) {
35179
35179
  let t = Rn(n.boothId);
35180
- (e || !u.has(t)) && m(t, n.icon);
35180
+ (e || !l.has(t)) && p(t, n.icon);
35181
35181
  }
35182
- u.has(Fn) || m(Fn, f);
35183
- }, g = () => {
35184
- let e = O.poiMarkerStore.selectedMarkerId, t = O.poiMarkerStore.outdoorFilter, n = !t.active, r = O.poiMarkerStore.markers;
35182
+ l.has(Fn) || p(Fn, d);
35183
+ }, h = () => {
35184
+ let e = E.poiMarkerStore.selectedMarkerId, t = E.poiMarkerStore.outdoorFilter, n = !t.active, r = E.poiMarkerStore.markers;
35185
35185
  return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
35186
35186
  cluster: n,
35187
35187
  data: {
@@ -35190,7 +35190,7 @@ function zn(e, t, a) {
35190
35190
  type: "Feature",
35191
35191
  geometry: {
35192
35192
  type: "Point",
35193
- coordinates: p(t)
35193
+ coordinates: f(t)
35194
35194
  },
35195
35195
  properties: {
35196
35196
  boothId: t.boothId,
@@ -35200,7 +35200,7 @@ function zn(e, t, a) {
35200
35200
  }))
35201
35201
  }
35202
35202
  };
35203
- }, _ = () => {
35203
+ }, g = () => {
35204
35204
  var e, t, n;
35205
35205
  let r = null;
35206
35206
  for (let n of (e = (t = s.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
@@ -35213,11 +35213,11 @@ function zn(e, t, a) {
35213
35213
  }
35214
35214
  }
35215
35215
  return (n = r) == null ? ["Noto Sans Regular"] : n;
35216
- }, v = null, b = () => {
35216
+ }, v = null, y = () => {
35217
35217
  for (let e of In) s.getLayer(e) && s.removeLayer(e);
35218
35218
  s.getSource(An) && s.removeSource(An), v = null;
35219
35219
  }, x = (e, t) => {
35220
- if (v !== null && v !== t && b(), s.getSource(An) || (s.addSource(An, {
35220
+ if (v !== null && v !== t && y(), s.getSource(An) || (s.addSource(An, {
35221
35221
  type: "geojson",
35222
35222
  data: e,
35223
35223
  cluster: t,
@@ -35252,7 +35252,7 @@ function zn(e, t, a) {
35252
35252
  filter: ["has", "point_count"],
35253
35253
  layout: {
35254
35254
  "text-field": ["get", "point_count_abbreviated"],
35255
- "text-font": _(),
35255
+ "text-font": g(),
35256
35256
  "text-size": 14,
35257
35257
  "text-allow-overlap": !0,
35258
35258
  "text-ignore-placement": !0
@@ -35289,20 +35289,20 @@ function zn(e, t, a) {
35289
35289
  "icon-ignore-placement": !0
35290
35290
  }
35291
35291
  });
35292
- }, S = () => {
35292
+ }, w = () => {
35293
35293
  if (!s.getLayer(jn)) return;
35294
35294
  let e = Tn() ? 1 - he : 1;
35295
35295
  s.setPaintProperty(jn, "circle-opacity", e), s.setPaintProperty(jn, "circle-stroke-opacity", e), s.setPaintProperty(Mn, "text-opacity", e), s.setPaintProperty(Nn, "icon-opacity", e), s.setPaintProperty(Pn, "icon-opacity", e);
35296
- }, C = (e = !1) => {
35296
+ }, T = (e = !1) => {
35297
35297
  var t;
35298
- h(e);
35299
- let { cluster: n, data: r } = g();
35300
- x(r, n), (t = s.getSource(An)) == null || t.setData(r), S();
35301
- }, w = (e) => {
35298
+ m(e);
35299
+ let { cluster: n, data: r } = h();
35300
+ x(r, n), (t = s.getSource(An)) == null || t.setData(r), w();
35301
+ }, D = (e) => {
35302
35302
  if (!e.length) return;
35303
35303
  let t = on(50);
35304
- if (e.every((e) => sn(s, p(e), t))) return;
35305
- let n = tn(l.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
35304
+ if (e.every((e) => sn(s, f(e), t))) return;
35305
+ let n = tn(k.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
35306
35306
  padding: t,
35307
35307
  bearing: a.bearing
35308
35308
  });
@@ -35313,13 +35313,13 @@ function zn(e, t, a) {
35313
35313
  duration: 500,
35314
35314
  essential: !0
35315
35315
  });
35316
- }, T = (e) => {
35316
+ }, O = (e) => {
35317
35317
  var t;
35318
35318
  let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
35319
35319
  if (typeof n != "number") return;
35320
- let r = O.boothStore.boothById.get(n);
35321
- r && O.clickBooth(r);
35322
- }, D = (e) => {
35320
+ let r = E.boothStore.boothById.get(n);
35321
+ r && E.clickBooth(r);
35322
+ }, A = (e) => {
35323
35323
  var t, n, r;
35324
35324
  let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, o = s.getSource(An);
35325
35325
  if (typeof a != "number" || !o || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
@@ -35332,24 +35332,24 @@ function zn(e, t, a) {
35332
35332
  });
35333
35333
  });
35334
35334
  };
35335
- s.on("click", Nn, T), s.on("click", Pn, T), s.on("click", jn, D), j.set((e, t) => {
35335
+ s.on("click", Nn, O), s.on("click", Pn, O), s.on("click", jn, A), _.set((e, t) => {
35336
35336
  let n = Ln.filter((e) => !!s.getLayer(e));
35337
35337
  if (!n.length) return !1;
35338
- let r = s.project(y(e, t, c));
35338
+ let r = s.project(b(e, t, c));
35339
35339
  return s.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
35340
35340
  });
35341
- let k = () => {
35342
- u.clear(), C(!0);
35341
+ let j = () => {
35342
+ l.clear(), T(!0);
35343
35343
  };
35344
- s.on("style.load", k);
35345
- let A = i(() => O.poiMarkerStore.markers, () => C(!0)), M = i(() => O.poiMarkerStore.selectedMarkerId, () => C()), N = i(() => O.poiMarkerStore.outdoorFilter.key, () => {
35346
- C(), w(O.poiMarkerStore.outdoorFilter.matchingMarkers);
35347
- }), ee = i(() => Tn(), () => S());
35348
- return C(!0), () => {
35349
- A(), M(), N(), ee(), j.set(null), s.off("style.load", k), s.off("click", Nn, T), s.off("click", Pn, T), s.off("click", jn, D);
35344
+ s.on("style.load", j);
35345
+ let N = i(() => E.poiMarkerStore.markers, () => T(!0)), ee = i(() => E.poiMarkerStore.selectedMarkerId, () => T()), te = i(() => E.poiMarkerStore.outdoorFilter.key, () => {
35346
+ T(), D(E.poiMarkerStore.outdoorFilter.matchingMarkers);
35347
+ }), ne = i(() => Tn(), () => w());
35348
+ return T(!0), () => {
35349
+ N(), ee(), te(), ne(), _.set(null), s.off("style.load", j), s.off("click", Nn, O), s.off("click", Pn, O), s.off("click", jn, A);
35350
35350
  try {
35351
- b();
35352
- for (let e of u) s.hasImage(e) && s.removeImage(e);
35351
+ y();
35352
+ for (let e of l) s.hasImage(e) && s.removeImage(e);
35353
35353
  } catch {}
35354
35354
  };
35355
35355
  }, [
@@ -35363,9 +35363,9 @@ function zn(e, t, a) {
35363
35363
  function Bn(e, t) {
35364
35364
  (0, F.useEffect)(() => {
35365
35365
  if (!e) return;
35366
- let n = d({
35366
+ let n = v({
35367
35367
  scene: e,
35368
- store: O,
35368
+ store: E,
35369
35369
  canvas: t
35370
35370
  }), r = ue({ scene: e });
35371
35371
  return () => {
@@ -35551,60 +35551,60 @@ function sr(e, t, n) {
35551
35551
  };
35552
35552
  }
35553
35553
  function cr() {
35554
- O.poiMarkerStore.clear(), a(() => {
35555
- O.layerStore.layers.forEach((e) => {
35554
+ E.poiMarkerStore.clear(), a(() => {
35555
+ E.layerStore.layers.forEach((e) => {
35556
35556
  e.configured = !1, e.children = [], e.loaded = !1;
35557
- }), O.layerStore.layersLoaded = !1;
35557
+ }), E.layerStore.layersLoaded = !1;
35558
35558
  });
35559
35559
  }
35560
35560
  var lr = re(function({ viewMode: e }) {
35561
35561
  var t;
35562
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null), s = (0, F.useRef)(null), l = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), h = (0, F.useMemo)(() => K(), []), v = (0, F.useMemo)(() => N({
35563
- layerViewbox: O.layerStore.viewboxRectangle,
35564
- explicitArea: u ? x : null,
35565
- layerRectangle: O.layerStore.rectangle,
35562
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null), s = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), _ = (0, F.useMemo)(() => K(), []), v = (0, F.useMemo)(() => j({
35563
+ layerViewbox: E.layerStore.viewboxRectangle,
35564
+ explicitArea: ee ? l : null,
35565
+ layerRectangle: E.layerStore.rectangle,
35566
35566
  sceneDef: n,
35567
- svgArea: x
35567
+ svgArea: l
35568
35568
  }), [n]), y = v.rect, b = (0, F.useMemo)(() => {
35569
- if (!h) return null;
35570
- let e = k(v.source) ? 0 : A(y, x), t = on(0);
35571
- e && M.screenSize && (t.left += M.screenSize.width * e, t.right += M.screenSize.width * e, t.top += M.screenSize.height * e, t.bottom += M.screenSize.height * e);
35572
- let n = M.screenSize ? rn(y, h.gpsConfig, h.bearing, {
35573
- width: M.screenSize.width,
35574
- height: M.screenSize.height
35569
+ if (!_) return null;
35570
+ let e = O(v.source) ? 0 : N(y, l), t = on(0);
35571
+ e && A.screenSize && (t.left += A.screenSize.width * e, t.right += A.screenSize.width * e, t.top += A.screenSize.height * e, t.bottom += A.screenSize.height * e);
35572
+ let n = A.screenSize ? rn(y, _.gpsConfig, _.bearing, {
35573
+ width: A.screenSize.width,
35574
+ height: A.screenSize.height
35575
35575
  }, t) : null;
35576
35576
  return n ? {
35577
35577
  center: n.center,
35578
- bearing: h.bearing,
35578
+ bearing: _.bearing,
35579
35579
  zoom: n.zoom
35580
35580
  } : {
35581
- center: h.center,
35582
- bearing: h.bearing,
35583
- zoom: h.zoom,
35584
- bounds: tn(y, h.gpsConfig),
35581
+ center: _.center,
35582
+ bearing: _.bearing,
35583
+ zoom: _.zoom,
35584
+ bounds: tn(y, _.gpsConfig),
35585
35585
  fitPadding: t,
35586
35586
  zoomAdjustment: Kt
35587
35587
  };
35588
35588
  }, [
35589
- h,
35589
+ _,
35590
35590
  v,
35591
35591
  y
35592
- ]), C = (0, F.useMemo)(() => {
35592
+ ]), x = (0, F.useMemo)(() => {
35593
35593
  var e;
35594
- return h ? Kn(h.gpsConfig, (e = D()) == null ? void 0 : e.getAttribute("units")) : null;
35595
- }, [h]), w = M.mapSettings.pitchdegrees, T = M.maxPitch, E = (0, F.useMemo)(() => {
35594
+ return _ ? Kn(_.gpsConfig, (e = te()) == null ? void 0 : e.getAttribute("units")) : null;
35595
+ }, [_]), S = A.mapSettings.pitchdegrees, w = A.maxPitch, D = (0, F.useMemo)(() => {
35596
35596
  let t = e === "map2d";
35597
35597
  return {
35598
- pitch: t ? 0 : w,
35599
- maxPitch: t ? 0 : T,
35598
+ pitch: t ? 0 : S,
35599
+ maxPitch: t ? 0 : w,
35600
35600
  minZoom: 12
35601
35601
  };
35602
35602
  }, [
35603
35603
  e,
35604
- w,
35605
- T
35606
- ]), j = (0, F.useRef)(E), ee = (0, F.useMemo)(() => wn(), []), P = (0, F.useMemo)(() => {
35607
- if (!n || !C) return null;
35604
+ S,
35605
+ w
35606
+ ]), k = (0, F.useRef)(D), M = (0, F.useMemo)(() => wn(), []), P = (0, F.useMemo)(() => {
35607
+ if (!n || !x) return null;
35608
35608
  let e = n.rootLayer.children, t = g(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
35609
35609
  return {
35610
35610
  ...n,
@@ -35613,76 +35613,76 @@ var lr = re(function({ viewMode: e }) {
35613
35613
  children: t
35614
35614
  },
35615
35615
  background: void 0,
35616
- staticTransform: C
35616
+ staticTransform: x
35617
35617
  };
35618
- }, [n, C]), re = (0, F.useRef)(null);
35618
+ }, [n, x]), re = (0, F.useRef)(null);
35619
35619
  (0, F.useEffect)(() => {
35620
35620
  re.current = P;
35621
35621
  }, [P]), (0, F.useEffect)(() => {
35622
- if (P) return te(P), () => te(void 0);
35622
+ if (P) return ne(P), () => ne(void 0);
35623
35623
  }, [P]);
35624
35624
  let { mapDimAnimatorRef: ie, venueDimAnimatorRef: ae, applyDimmingTarget: ue, handleMapDimLayerReady: de } = En(o, re);
35625
35625
  (0, F.useEffect)(() => {
35626
- if (!h) return;
35626
+ if (!_) return;
35627
35627
  let e = !1;
35628
35628
  cr(), ce().then(({ layers: t, cleanup: n }) => {
35629
35629
  if (e) {
35630
35630
  n();
35631
35631
  return;
35632
35632
  }
35633
- l.current = n;
35634
- let i = (0, ge.default)(ne.backgroundColor === "none" ? "#ebebeb" : ne.backgroundColor).string();
35635
- r(_(t, x, i));
35633
+ p.current = n;
35634
+ let i = (0, ge.default)(C.backgroundColor === "none" ? "#ebebeb" : C.backgroundColor).string();
35635
+ r(T(t, l, i));
35636
35636
  }).catch((t) => {
35637
35637
  e || console.warn("Maplibre scene configuration failed.", t);
35638
35638
  });
35639
35639
  let t = ie.current, n = ae.current;
35640
35640
  return () => {
35641
35641
  var r;
35642
- e = !0, cr(), (r = l.current) == null || r.call(l), l.current = null, f.current && (O.maplibreStore.clearCameraPortIfCurrent(f.current), f.current = null), o.current = null, s.current = null, d.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), M.sceneDefReady = !1;
35642
+ e = !0, cr(), (r = p.current) == null || r.call(p), p.current = null, h.current && (E.maplibreStore.clearCameraPortIfCurrent(h.current), h.current = null), o.current = null, s.current = null, m.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), A.sceneDefReady = !1;
35643
35643
  };
35644
35644
  }, [
35645
- h,
35645
+ _,
35646
35646
  ie,
35647
35647
  ae
35648
35648
  ]);
35649
35649
  let pe = (0, F.useCallback)((e, t) => {
35650
35650
  var n;
35651
- o.current = e, s.current = e.getCanvas(), d.current = t, a(!0), e.once("idle", () => Cn(e, j.current));
35652
- let r = sr(e, (n = h == null ? void 0 : h.bearing) == null ? e.getBearing() : n, () => {
35651
+ o.current = e, s.current = e.getCanvas(), m.current = t, a(!0), e.once("idle", () => Cn(e, k.current));
35652
+ let r = sr(e, (n = _ == null ? void 0 : _.bearing) == null ? e.getBearing() : n, () => {
35653
35653
  var e;
35654
- return (e = j.current.pitch) == null ? 0 : e;
35654
+ return (e = k.current.pitch) == null ? 0 : e;
35655
35655
  });
35656
- f.current = r, O.maplibreStore.setCameraPort(r), O.fp.getCenterCoordinates = () => oe(s.current), ue({ immediate: !0 }), S(), O.layerStore.layersLoaded = !0, O.fp.onFpConfigured && O.fp.onFpConfigured(), M.sceneDefReady = !0, t();
35657
- }, [ue, h]);
35656
+ h.current = r, E.maplibreStore.setCameraPort(r), E.fp.getCenterCoordinates = () => oe(s.current), ue({ immediate: !0 }), u(), E.layerStore.layersLoaded = !0, E.fp.onFpConfigured && E.fp.onFpConfigured(), A.sceneDefReady = !0, t();
35657
+ }, [ue, _]);
35658
35658
  (0, F.useEffect)(() => {
35659
- j.current = E, Cn(o.current, E);
35660
- }, [E]), Dn(i, o), Bn(P, s), zn(i, o, h), kn(P, o, h), mn(o, h, P), se({
35661
- enabled: O.layerStore.layersLoaded && M.buildRoute,
35659
+ k.current = D, Cn(o.current, D);
35660
+ }, [D]), Dn(i, o), Bn(P, s), zn(i, o, _), kn(P, o, _), mn(o, _, P), se({
35661
+ enabled: E.layerStore.layersLoaded && A.buildRoute,
35662
35662
  scene: P == null ? void 0 : P
35663
35663
  });
35664
- let he = (t = p.busRoutes) != null && t;
35664
+ let he = (t = d.busRoutes) != null && t;
35665
35665
  le({
35666
- permission: O.layerStore.layersLoaded && he,
35666
+ permission: E.layerStore.layersLoaded && he,
35667
35667
  scene: P == null ? void 0 : P,
35668
- dataJsonUrl: `https://${ar}/v1/routes?expo=${ne.EXPO}`,
35669
- websocketUrl: `wss://${ar}/locations?expo=${ne.EXPO}`
35668
+ dataJsonUrl: `https://${ar}/v1/routes?expo=${C.EXPO}`,
35669
+ websocketUrl: `wss://${ar}/locations?expo=${C.EXPO}`
35670
35670
  });
35671
35671
  let _e = (0, F.useCallback)((e) => {
35672
- console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), O.maplibreStore.deactivateMaplibre();
35672
+ console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), E.maplibreStore.deactivateMaplibre();
35673
35673
  }, []);
35674
- if (!h || !b || !C || !P) return null;
35674
+ if (!_ || !b || !x || !P) return null;
35675
35675
  let ve = `${b.center.join(",")}:${b.bearing}:${b.zoom}`;
35676
35676
  return /* @__PURE__ */ (0, Nt.jsxs)(Gt, {
35677
35677
  sceneDef: P,
35678
35678
  geoConfig: b,
35679
- tileSource: ee,
35680
- mapOptions: E,
35679
+ tileSource: M,
35680
+ mapOptions: D,
35681
35681
  debug: c,
35682
35682
  onMapReady: pe,
35683
35683
  onMapDimLayerReady: de,
35684
35684
  onMapLoadError: _e,
35685
- onPointerMissed: m,
35685
+ onPointerMissed: f,
35686
35686
  children: [/* @__PURE__ */ (0, Nt.jsx)(fe, {}), c && /* @__PURE__ */ (0, Nt.jsx)(me, { canvas: s })]
35687
35687
  }, ve);
35688
35688
  });