@expofp/floorplan 3.40.1 → 3.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-9o9f45t9.js → Button-K9L6U_YW.js} +5 -5
- package/dist/browser/{CookieConsent-CWeOH8NT.js → CookieConsent-aG4WVcPf.js} +7 -7
- package/dist/browser/{Debug-gmbYciZv.js → Debug-DHNsq_k3.js} +7 -7
- package/dist/browser/{DebugTools-oruKS8k7.js → DebugTools-CSBtUWTk.js} +6 -6
- package/dist/browser/{Demo-CpyvYo3V.js → Demo-WXKC1qDV.js} +9 -9
- package/dist/browser/{Free-IKJ3oLzl.js → Free-CedmbSy7.js} +13 -13
- package/dist/browser/{GalleryContainer-15Ou0a0n.js → GalleryContainer-D868yMxl.js} +10 -10
- package/dist/browser/{GpsLoader--3nhCK-c.js → GpsLoader-C_VRRtlH.js} +34 -34
- package/dist/browser/{KioskStore-BbCAJ4oG.js → KioskStore-BO6F_rdS.js} +25 -25
- package/dist/browser/{MaplibreAdapter-BeGiGIW8.js → MaplibreAdapter-D4X8l71T.js} +158 -158
- package/dist/browser/{ModalContainer-BemUU2sd.js → ModalContainer-DPJNLBW5.js} +10 -10
- package/dist/browser/{PermissionNotice-CJG0w297.js → PermissionNotice-Dh8Su-MO.js} +6 -6
- package/dist/browser/{SetKioskMode-Bxrmnuiq.js → SetKioskMode-CxKai3ap.js} +16 -16
- package/dist/browser/{ShowKiosk-DwJOQt_w.js → ShowKiosk-uwExArQg.js} +11 -11
- package/dist/browser/{ViewerMenuPanel-C47nSpsy.js → ViewerMenuPanel-Bk2spmZU.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-BWJ8vtA3.js → add-debug-secret-listener-eKo78Ruz.js} +1 -1
- package/dist/browser/{adopt-global-settings-Bj-xlzbp.js → adopt-global-settings-zQG9zbVX.js} +9 -9
- package/dist/browser/{boolean-editor-DYTOuXsX.js → boolean-editor-DNnfBEvN.js} +9 -9
- package/dist/browser/{bootIntercom-WmpQrWiy.js → bootIntercom-BuwPFeWn.js} +2 -2
- package/dist/browser/bundle.json +71 -71
- package/dist/browser/{camera-events-CRGoe0k2.js → camera-events-DMRkWwAT.js} +1 -1
- package/dist/browser/{classnames-C-qmEtCK.js → classnames-fpVQFx2H.js} +2 -2
- package/dist/browser/{client-CTJK5_Oh.js → client-BqUboGBa.js} +5 -5
- package/dist/browser/{components-DIKCSR5i.js → components-BsPJdFtL.js} +1222 -1221
- package/dist/browser/{debug-context-Ch7_Qk1K.js → debug-context-DLVjeviW.js} +5 -5
- package/dist/browser/{debug-overlay-B0idj84Z.js → debug-overlay-IH41bxrg.js} +10 -10
- package/dist/browser/{debug-ui-tNFSVAdI.js → debug-ui-B0G8eOn_.js} +6 -6
- package/dist/browser/{dimming-DYB1b3Zt.js → dimming-DHrRSsrL.js} +210 -210
- package/dist/browser/{dist-C5yzkFe8.js → dist-DmbZFcZq.js} +3 -3
- package/dist/browser/{dist-CXAT6jgb.js → dist-DnevmpEu.js} +6 -6
- package/dist/browser/{dist-DCP6ZWPy.js → dist-touQhXFP.js} +5 -5
- package/dist/browser/{efp-debug-init-CE5Ljc9U.js → efp-debug-init-p8CA0913.js} +3 -3
- package/dist/browser/{enum-editor-BE0z7t9f.js → enum-editor-DrXhpl-j.js} +4 -4
- package/dist/browser/{es5-C5XZa-z4.js → es5-D1_ZW7ue.js} +2 -2
- package/dist/browser/{event-head-BhuoCM_k.js → event-head-DJVe00oD.js} +1 -1
- package/dist/browser/{event-not-found-aWj_d32e.js → event-not-found-BKhAStEZ.js} +3 -3
- package/dist/browser/{exports-crwskzmj.js → exports-Q3fzDLLq.js} +1 -1
- package/dist/browser/{favicon-C2OW2nO0.js → favicon-CaBmDR3-.js} +1 -1
- package/dist/browser/{fetch-retry.umd-Chejd5BI.js → fetch-retry.umd-2CqDnpHe.js} +2 -2
- package/dist/browser/{flex-DoBxei71.js → flex-CQRA8z2c.js} +5 -5
- package/dist/browser/{floorplan.loader-CBKn9FtO.js → floorplan.loader-BWCO8dkF.js} +10 -10
- package/dist/browser/{floorplan.ready-D3PzsyES.js → floorplan.ready-DdYTcZ58.js} +312 -312
- package/dist/browser/{fuse-BxDHutUP.js → fuse-BTImEfZQ.js} +2 -2
- package/dist/browser/{i18n-Bjh_3zkB.js → i18n-DgOvRShn.js} +5 -5
- package/dist/browser/index.js +16 -16
- package/dist/browser/{index.module-97oRLysD.js → index.module-CQh0vpct.js} +4 -4
- package/dist/browser/{integrateKiosk-BCcSKCn0.js → integrateKiosk-Ce4vspJD.js} +4 -4
- package/dist/browser/{is-own-domain-Dk1KFJZC.js → is-own-domain-CIPwBGvm.js} +1 -1
- package/dist/browser/{is-webview-CdC6bAd0.js → is-webview-Bv0d76Tl.js} +1 -1
- package/dist/browser/{jsx-runtime-CDbvTGLK.js → jsx-runtime-DwH6FSqr.js} +2 -2
- package/dist/browser/{kiosk-record-iLz5eObY.js → kiosk-record-DZyT7VVy.js} +1 -1
- package/dist/browser/{lib-CZlXFhVm.js → lib-CFNVmPJ0.js} +3 -3
- package/dist/browser/{loadImage-DEVcEoNP.js → loadImage-Dj7yrGrq.js} +4 -4
- package/dist/browser/{logDeviceInfo-Y4WA-GYD.js → logDeviceInfo-eVwa3ex5.js} +9 -9
- package/dist/browser/{mobx-CQjKXs42.js → mobx-CEWiDKqV.js} +4 -4
- package/dist/browser/{optional-boolean-editor-DpM8KyHp.js → optional-boolean-editor-D3FAuTWA.js} +3 -3
- package/dist/browser/{optional-enum-editor-BeIZM-sT.js → optional-enum-editor-BREZDEcH.js} +4 -4
- package/dist/browser/{optional-string-editor-3XfPu2T1.js → optional-string-editor-eYjLcFv3.js} +4 -4
- package/dist/browser/{particles.min-wAEMpm2u.js → particles.min-Cy_hVZou.js} +2 -2
- package/dist/browser/{react-BFTM_i4k.js → react-C5VW7EYy.js} +2 -2
- package/dist/browser/{react-dom-mrVLzrsv.js → react-dom-pbGdFQ3w.js} +3 -3
- package/dist/browser/{rolldown-runtime-CYi1BYyj.js → rolldown-runtime-goUnb6t5.js} +1 -1
- package/dist/browser/{scheduler-CYiUDKKK.js → scheduler-HpGLW39a.js} +2 -2
- package/dist/browser/{select-CEy_pitw.js → select-tYeM6WvT.js} +10 -10
- package/dist/browser/{settings-Bxg4mFZl.js → settings-BcG1IUj2.js} +2 -2
- package/dist/browser/{settings-item-C7E6otg7.js → settings-item-Ct12OEqw.js} +6 -6
- package/dist/browser/{store-CLk5ZuUi.js → store-prn6mdME.js} +4001 -3828
- package/dist/browser/{string-editor-BtZPFPoP.js → string-editor-EJg2kQfO.js} +4 -4
- package/dist/browser/{text-field-phVYadrq.js → text-field-FXGzpkZC.js} +5 -5
- package/dist/browser/{theme-B5pjM96M.js → theme-9bKPRQHa.js} +8 -8
- package/dist/browser/{ui-B1AmK_Cl.js → ui-eYxU40vM.js} +8 -8
- package/dist/browser/{useRenderTarget-lCNTfxu9.js → useRenderTarget-BMqoDify.js} +4 -4
- package/dist/browser/{viewport-ClQ7t1br.js → viewport-CjpGqDaX.js} +3 -3
- package/dist/esm/components/LogoOverlay.d.ts +1 -2
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/store/UIState.d.ts +4 -0
- package/dist/esm/store/UIState.js +1 -1
- 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.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.41.0" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
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-
|
|
11
|
-
import { X as n, Z as r, v as i, y as a } from "./i18n-
|
|
12
|
-
import { t as o } from "./react-
|
|
13
|
-
import { t as s } from "./jsx-runtime-
|
|
14
|
-
import { n as c } from "./loadImage-
|
|
15
|
-
import {
|
|
16
|
-
import { t as re } from "./index.module-
|
|
17
|
-
import { i as ie } from "./mobx-
|
|
18
|
-
import { t as ae } from "./camera-events-
|
|
19
|
-
import { t as oe } from "./viewport-
|
|
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-
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-goUnb6t5.js";
|
|
11
|
+
import { X as n, Z as r, v as i, y as a } from "./i18n-DgOvRShn.js";
|
|
12
|
+
import { t as o } from "./react-C5VW7EYy.js";
|
|
13
|
+
import { t as s } from "./jsx-runtime-DwH6FSqr.js";
|
|
14
|
+
import { n as c } from "./loadImage-Dj7yrGrq.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-prn6mdME.js";
|
|
16
|
+
import { t as re } from "./index.module-CQh0vpct.js";
|
|
17
|
+
import { i as ie } from "./mobx-CEWiDKqV.js";
|
|
18
|
+
import { t as ae } from "./camera-events-DMRkWwAT.js";
|
|
19
|
+
import { t as oe } from "./viewport-CjpGqDaX.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-DHrRSsrL.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(
|
|
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:
|
|
34714
|
-
touchPitch:
|
|
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 ?
|
|
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)(
|
|
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
|
-
|
|
34814
|
-
|
|
34815
|
-
|
|
34816
|
-
|
|
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
|
-
|
|
34824
|
-
|
|
34825
|
-
|
|
34826
|
-
|
|
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:
|
|
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: [
|
|
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 =
|
|
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 (!(!(
|
|
34873
|
-
let n =
|
|
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 =
|
|
34934
|
+
var cn = A, J = 15, ln = 24, un = 20;
|
|
34935
34935
|
function dn(e) {
|
|
34936
|
-
return
|
|
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 =
|
|
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 =
|
|
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(
|
|
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
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
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 =
|
|
34983
|
+
let r = e.current, i = E.routeStore.currentPosition;
|
|
34984
34984
|
if (!i) {
|
|
34985
|
-
|
|
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
|
-
|
|
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 =
|
|
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(() =>
|
|
35002
|
+
}), ie(() => A.centerMap, (r) => {
|
|
35003
35003
|
let i = e.current;
|
|
35004
35004
|
if (!(!r || !i || !t)) {
|
|
35005
|
-
if (!(
|
|
35006
|
-
let { rect: e } =
|
|
35007
|
-
layerViewbox:
|
|
35008
|
-
explicitArea:
|
|
35009
|
-
layerRectangle:
|
|
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:
|
|
35011
|
+
svgArea: l
|
|
35012
35012
|
});
|
|
35013
35013
|
q(i, e, t);
|
|
35014
35014
|
}
|
|
35015
|
-
|
|
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 =
|
|
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:
|
|
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 =
|
|
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(
|
|
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
|
|
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) &&
|
|
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)
|
|
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(() =>
|
|
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
|
|
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 &&
|
|
35147
|
-
let l =
|
|
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 (!
|
|
35169
|
+
if (!S()) return;
|
|
35170
35170
|
let s = t.current;
|
|
35171
35171
|
if (!e || !s || !a) return;
|
|
35172
|
-
let { gpsConfig: c } = a,
|
|
35173
|
-
s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio:
|
|
35174
|
-
},
|
|
35175
|
-
let t =
|
|
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 [...
|
|
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 || !
|
|
35180
|
+
(e || !l.has(t)) && p(t, n.icon);
|
|
35181
35181
|
}
|
|
35182
|
-
|
|
35183
|
-
},
|
|
35184
|
-
let e =
|
|
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:
|
|
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,
|
|
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 &&
|
|
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
|
-
},
|
|
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
|
-
},
|
|
35296
|
+
}, T = (e = !1) => {
|
|
35297
35297
|
var t;
|
|
35298
|
-
|
|
35299
|
-
let { cluster: n, data: r } =
|
|
35300
|
-
x(r, n), (t = s.getSource(An)) == null || t.setData(r),
|
|
35301
|
-
},
|
|
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,
|
|
35305
|
-
let n = tn(
|
|
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
|
-
},
|
|
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 =
|
|
35321
|
-
r &&
|
|
35322
|
-
},
|
|
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,
|
|
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(
|
|
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
|
|
35342
|
-
|
|
35341
|
+
let j = () => {
|
|
35342
|
+
l.clear(), T(!0);
|
|
35343
35343
|
};
|
|
35344
|
-
s.on("style.load",
|
|
35345
|
-
let
|
|
35346
|
-
|
|
35347
|
-
}),
|
|
35348
|
-
return
|
|
35349
|
-
|
|
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
|
-
|
|
35352
|
-
for (let e of
|
|
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 =
|
|
35366
|
+
let n = v({
|
|
35367
35367
|
scene: e,
|
|
35368
|
-
store:
|
|
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
|
-
|
|
35555
|
-
|
|
35554
|
+
E.poiMarkerStore.clear(), a(() => {
|
|
35555
|
+
E.layerStore.layers.forEach((e) => {
|
|
35556
35556
|
e.configured = !1, e.children = [], e.loaded = !1;
|
|
35557
|
-
}),
|
|
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),
|
|
35563
|
-
layerViewbox:
|
|
35564
|
-
explicitArea:
|
|
35565
|
-
layerRectangle:
|
|
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:
|
|
35567
|
+
svgArea: l
|
|
35568
35568
|
}), [n]), y = v.rect, b = (0, F.useMemo)(() => {
|
|
35569
|
-
if (!
|
|
35570
|
-
let e =
|
|
35571
|
-
e &&
|
|
35572
|
-
let n =
|
|
35573
|
-
width:
|
|
35574
|
-
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:
|
|
35578
|
+
bearing: _.bearing,
|
|
35579
35579
|
zoom: n.zoom
|
|
35580
35580
|
} : {
|
|
35581
|
-
center:
|
|
35582
|
-
bearing:
|
|
35583
|
-
zoom:
|
|
35584
|
-
bounds: tn(y,
|
|
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
|
-
|
|
35589
|
+
_,
|
|
35590
35590
|
v,
|
|
35591
35591
|
y
|
|
35592
|
-
]),
|
|
35592
|
+
]), x = (0, F.useMemo)(() => {
|
|
35593
35593
|
var e;
|
|
35594
|
-
return
|
|
35595
|
-
}, [
|
|
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 :
|
|
35599
|
-
maxPitch: t ? 0 :
|
|
35598
|
+
pitch: t ? 0 : S,
|
|
35599
|
+
maxPitch: t ? 0 : w,
|
|
35600
35600
|
minZoom: 12
|
|
35601
35601
|
};
|
|
35602
35602
|
}, [
|
|
35603
35603
|
e,
|
|
35604
|
-
|
|
35605
|
-
|
|
35606
|
-
]),
|
|
35607
|
-
if (!n || !
|
|
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:
|
|
35616
|
+
staticTransform: x
|
|
35617
35617
|
};
|
|
35618
|
-
}, [n,
|
|
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
|
|
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 (!
|
|
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
|
-
|
|
35634
|
-
let i = (0, ge.default)(
|
|
35635
|
-
r(
|
|
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 =
|
|
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
|
-
|
|
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(),
|
|
35652
|
-
let r = sr(e, (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 =
|
|
35654
|
+
return (e = k.current.pitch) == null ? 0 : e;
|
|
35655
35655
|
});
|
|
35656
|
-
|
|
35657
|
-
}, [ue,
|
|
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
|
-
|
|
35660
|
-
}, [
|
|
35661
|
-
enabled:
|
|
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 =
|
|
35664
|
+
let he = (t = d.busRoutes) != null && t;
|
|
35665
35665
|
le({
|
|
35666
|
-
permission:
|
|
35666
|
+
permission: E.layerStore.layersLoaded && he,
|
|
35667
35667
|
scene: P == null ? void 0 : P,
|
|
35668
|
-
dataJsonUrl: `https://${ar}/v1/routes?expo=${
|
|
35669
|
-
websocketUrl: `wss://${ar}/locations?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),
|
|
35672
|
+
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), E.maplibreStore.deactivateMaplibre();
|
|
35673
35673
|
}, []);
|
|
35674
|
-
if (!
|
|
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:
|
|
35680
|
-
mapOptions:
|
|
35679
|
+
tileSource: M,
|
|
35680
|
+
mapOptions: D,
|
|
35681
35681
|
debug: c,
|
|
35682
35682
|
onMapReady: pe,
|
|
35683
35683
|
onMapDimLayerReady: de,
|
|
35684
35684
|
onMapLoadError: _e,
|
|
35685
|
-
onPointerMissed:
|
|
35685
|
+
onPointerMissed: f,
|
|
35686
35686
|
children: [/* @__PURE__ */ (0, Nt.jsx)(fe, {}), c && /* @__PURE__ */ (0, Nt.jsx)(me, { canvas: s })]
|
|
35687
35687
|
}, ve);
|
|
35688
35688
|
});
|