@expofp/floorplan 3.23.3 → 3.23.4
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-DphA9T0C.js → Button-CMjW-Wfe.js} +5 -5
- package/dist/browser/{CookieConsent-CYOOb4MI.js → CookieConsent-CW284IES.js} +7 -7
- package/dist/browser/{Debug-BuFen3u4.js → Debug-CnCFIYN7.js} +7 -7
- package/dist/browser/{Demo-rRws_XVz.js → Demo-CYyNMvhs.js} +9 -9
- package/dist/browser/{Free-ltZWNzYB.js → Free-facWfhIR.js} +9 -9
- package/dist/browser/{GalleryContainer-Dv0dO1Vy.js → GalleryContainer-CN_T22CR.js} +10 -10
- package/dist/browser/{GpsLoader-BVPXwirw.js → GpsLoader-CbUgoSPS.js} +35 -35
- package/dist/browser/{KioskStore-C-WuNdfs.js → KioskStore-ISJXu8M3.js} +7 -7
- package/dist/browser/{MaplibreAdapter-CkxsIQmV.js → MaplibreAdapter-HozQALVd.js} +159 -159
- package/dist/browser/{ModalContainer-V1-dOftF.js → ModalContainer-TFMi7yPb.js} +10 -10
- package/dist/browser/{PermissionNotice-N12rSqcN.js → PermissionNotice-D8AsL3Rf.js} +6 -6
- package/dist/browser/{SetKioskMode-fDc-O4Le.js → SetKioskMode-CMYbngGo.js} +9 -9
- package/dist/browser/{ShowKiosk-q792mt6t.js → ShowKiosk-Dz5ClbzP.js} +10 -10
- package/dist/browser/{ViewerMenuPanel-6KMEZS87.js → ViewerMenuPanel-DYWI-sVx.js} +14 -14
- package/dist/browser/{add-debug-secret-listener-8-_Ppayq.js → add-debug-secret-listener-BqoA69bT.js} +1 -1
- package/dist/browser/{adopt-global-settings-BJlg46-r.js → adopt-global-settings-gawg1AYH.js} +9 -9
- package/dist/browser/{boolean-editor-CzIi7_OU.js → boolean-editor-D1Nenbcb.js} +9 -9
- package/dist/browser/{bootIntercom-CvQ3HC_W.js → bootIntercom-D8Ovpvsf.js} +2 -2
- package/dist/browser/{booth-by-xy-BG9PxifM.js → booth-by-xy-CDILVq68.js} +266 -266
- package/dist/browser/bundle.json +65 -65
- package/dist/browser/{classnames-TGWSIxj9.js → classnames-AfOVHR26.js} +2 -2
- package/dist/browser/{client-CI_o2Xvi.js → client-ssZKxczh.js} +4 -4
- package/dist/browser/{components-Hhp3TuZo.js → components-Dm6-yZm9.js} +1852 -1852
- package/dist/browser/{debug-overlay-Bm4jbphv.js → debug-overlay-DAGK3p4l.js} +10 -10
- package/dist/browser/{debug-ui-Be_gXiCI.js → debug-ui-C8LFrZdI.js} +6 -6
- package/dist/browser/{dist-4KgeMEqm.js → dist-CiboCeGu.js} +3 -3
- package/dist/browser/{dist-aolaQ4jq.js → dist-DJvRIVfK.js} +6 -6
- package/dist/browser/{dist-BElHdG8w.js → dist-YLJ6P_kD.js} +5 -5
- package/dist/browser/{efp-debug-init-CfCkw1eG.js → efp-debug-init-CMVs44Ef.js} +3 -3
- package/dist/browser/{enum-editor-bbV2J4xR.js → enum-editor-DjmY5QZ2.js} +4 -4
- package/dist/browser/{es5-BhauPiuE.js → es5-C-OnPKvg.js} +2 -2
- package/dist/browser/{event-not-found-9jDLvDo3.js → event-not-found-AA1zgSI7.js} +1 -1
- package/dist/browser/{exports-DKfDniYl.js → exports-DXos-KW5.js} +1 -1
- package/dist/browser/{favicon--bOLXAnM.js → favicon-D6BF75VK.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CLAxmO3V.js → fetch-retry.umd-BXpR-AMS.js} +2 -2
- package/dist/browser/{flex-Cguef9vk.js → flex-CHBAsz6k.js} +5 -5
- package/dist/browser/{floorplan.loader-B91MUpZB.js → floorplan.loader-CtjpCpCn.js} +10 -10
- package/dist/browser/{floorplan.ready-ChvzYlI4.js → floorplan.ready-BKDEkDPs.js} +320 -320
- package/dist/browser/{fuse-Ct0U9AvB.js → fuse-joM66oL4.js} +2 -2
- package/dist/browser/{i18n-CkJeM36t.js → i18n-B2PKgaRM.js} +5 -5
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-B6dUR2Kk.js → index.module-DyN0SG5D.js} +4 -4
- package/dist/browser/{integrateKiosk-BcIA2hxJ.js → integrateKiosk-D-dpWpO-.js} +4 -4
- package/dist/browser/{is-webview-CDtTma1I.js → is-webview-D2trLq6x.js} +1 -1
- package/dist/browser/{jsx-runtime-Dm__wAdC.js → jsx-runtime-DCjpnPcf.js} +2 -2
- package/dist/browser/{kiosk-record-B6HDQu2a.js → kiosk-record-CWYTS2rI.js} +1 -1
- package/dist/browser/{lib-1dFWBMXD.js → lib-C13YwwrK.js} +3 -3
- package/dist/browser/{loadImage-BAWWj-IY.js → loadImage-C7nbLFSF.js} +4 -4
- package/dist/browser/{logDeviceInfo-CtkjcYJ4.js → logDeviceInfo-Caz-vsUM.js} +9 -9
- package/dist/browser/{main-gY41DHQA.js → main-DDHimzO8.js} +1 -1
- package/dist/browser/{mobx-VFmJt0vO.js → mobx-CSyFeOkR.js} +4 -4
- package/dist/browser/{optional-boolean-editor-CmjFII7L.js → optional-boolean-editor-BRyOWGK-.js} +3 -3
- package/dist/browser/{optional-enum-editor-Bh2TFCEo.js → optional-enum-editor-C3IeVDSt.js} +4 -4
- package/dist/browser/{optional-string-editor-C5BFOuRC.js → optional-string-editor-BvQqzBEY.js} +4 -4
- package/dist/browser/{particles.min-DZVEwsiv.js → particles.min-C_QMjnLe.js} +2 -2
- package/dist/browser/{react-CUv7KQR_.js → react-Ax95PQb6.js} +2 -2
- package/dist/browser/{react-dom-D4NbkPH-.js → react-dom-CzzHhy_E.js} +3 -3
- package/dist/browser/{rolldown-runtime-CZrj27T0.js → rolldown-runtime-DLlrs9dD.js} +1 -1
- package/dist/browser/{select-BQnlSKoO.js → select-DWSfj7cW.js} +10 -10
- package/dist/browser/{settings-item-BnE6X22h.js → settings-item-D2stfzwD.js} +6 -6
- package/dist/browser/{settings-CUnnGHou.js → settings-prb_Xydk.js} +2 -2
- package/dist/browser/{store-YQ5qSOS0.js → store-Cm_lCLUY.js} +1099 -1094
- package/dist/browser/{string-editor-BEDZabVW.js → string-editor-D-vFKE-L.js} +4 -4
- package/dist/browser/{text-field-BqFAzKKT.js → text-field-hXSRrbCO.js} +5 -5
- package/dist/browser/{theme-BBIVBrGe.js → theme-1MLT_N2G.js} +8 -8
- package/dist/browser/{ui-Dn5i6Fz3.js → ui-_mJ4KCW6.js} +8 -8
- package/dist/browser/{useRenderTarget--JWR8iNN.js → useRenderTarget-mdzSfUSx.js} +4 -4
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/store/init/init-ui.d.ts +11 -0
- package/dist/esm/store/init/init-ui.js +1 -1
- package/package.json +9 -9
|
@@ -2,21 +2,21 @@ 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.23.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.23.4" };
|
|
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] = "c8d3b6fb-51aa-4332-967b-d3acbb994bce", e._sentryDebugIdIdentifier = "sentry-dbid-c8d3b6fb-51aa-4332-967b-d3acbb994bce");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import { X as n, Y 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 { E as c, I as l,
|
|
15
|
-
import { t as te } from "./index.module-
|
|
16
|
-
import { r as N } from "./mobx-
|
|
17
|
-
import { a as ne, c as re, i as ie, l as ae, n as oe, o as se, r as ce, s as le, t as ue } from "./booth-by-xy-
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-DLlrs9dD.js";
|
|
11
|
+
import { X as n, Y as r, v as i, y as a } from "./i18n-B2PKgaRM.js";
|
|
12
|
+
import { t as o } from "./react-Ax95PQb6.js";
|
|
13
|
+
import { t as s } from "./jsx-runtime-DCjpnPcf.js";
|
|
14
|
+
import { E as c, I as l, Pt as u, R as d, V as f, Wt as p, _t as m, an as h, c as g, cn as _, d as v, dn as y, f as b, fn as x, gt as S, hn as C, kt as w, l as T, ln as E, p as D, pt as O, sn as k, t as A, u as j, xn as M, zt as ee } from "./store-Cm_lCLUY.js";
|
|
15
|
+
import { t as te } from "./index.module-DyN0SG5D.js";
|
|
16
|
+
import { r as N } from "./mobx-CSyFeOkR.js";
|
|
17
|
+
import { a as ne, c as re, i as ie, l as ae, n as oe, o as se, r as ce, s as le, t as ue } from "./booth-by-xy-CDILVq68.js";
|
|
18
18
|
//#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
19
|
-
var P = /* @__PURE__ */ e(o(), 1), de = /* @__PURE__ */ e(
|
|
19
|
+
var P = /* @__PURE__ */ e(o(), 1), de = /* @__PURE__ */ e(x(), 1), fe = (/* @__PURE__ */ t(((e, t) => {
|
|
20
20
|
(function(n, r) {
|
|
21
21
|
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());
|
|
22
22
|
})(e, (function() {
|
|
@@ -34631,7 +34631,7 @@ function Pt() {
|
|
|
34631
34631
|
}
|
|
34632
34632
|
}
|
|
34633
34633
|
function Ft({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOptions: i, onRendererReady: a, onMapDimLayerReady: o, onMapLoadError: s }) {
|
|
34634
|
-
let c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(a), f = (0, P.useRef)(o),
|
|
34634
|
+
let c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(a), f = (0, P.useRef)(o), p = (0, P.useRef)(s), m = (0, P.useRef)({
|
|
34635
34635
|
sceneDef: e,
|
|
34636
34636
|
geoConfig: t,
|
|
34637
34637
|
staticTransform: n,
|
|
@@ -34639,18 +34639,18 @@ function Ft({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34639
34639
|
mapOptions: i
|
|
34640
34640
|
});
|
|
34641
34641
|
return (0, P.useEffect)(() => {
|
|
34642
|
-
d.current = a, f.current = o,
|
|
34642
|
+
d.current = a, f.current = o, p.current = s;
|
|
34643
34643
|
}), (0, P.useEffect)(() => {
|
|
34644
34644
|
var e, t;
|
|
34645
34645
|
if (!c.current) return;
|
|
34646
|
-
let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } =
|
|
34647
|
-
|
|
34648
|
-
let
|
|
34649
|
-
|
|
34646
|
+
let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } = m.current, s = !1, h = { ...n };
|
|
34647
|
+
h.rootLayer = { ...n.rootLayer };
|
|
34648
|
+
let g = n.rootLayer.children;
|
|
34649
|
+
h.rootLayer.children = g.filter((e) => {
|
|
34650
34650
|
var t;
|
|
34651
34651
|
return (e == null || (t = e.name) == null ? void 0 : t.toString().toLowerCase()) !== "areamap";
|
|
34652
|
-
}),
|
|
34653
|
-
let
|
|
34652
|
+
}), h.background = void 0, h.staticTransform = i, Pt();
|
|
34653
|
+
let _ = r.bounds ? {
|
|
34654
34654
|
bounds: r.bounds,
|
|
34655
34655
|
fitBoundsOptions: {
|
|
34656
34656
|
padding: r.fitPadding,
|
|
@@ -34659,9 +34659,9 @@ function Ft({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34659
34659
|
} : {
|
|
34660
34660
|
center: r.center,
|
|
34661
34661
|
zoom: r.zoom
|
|
34662
|
-
},
|
|
34662
|
+
}, v = xt(a.style), y = new fe.Map({
|
|
34663
34663
|
container: c.current,
|
|
34664
|
-
...
|
|
34664
|
+
..._,
|
|
34665
34665
|
bearing: r.bearing,
|
|
34666
34666
|
pitch: (e = o == null ? void 0 : o.pitch) == null ? 30 : e,
|
|
34667
34667
|
maxPitch: (t = o == null ? void 0 : o.maxPitch) == null ? 70 : t,
|
|
@@ -34671,47 +34671,47 @@ function Ft({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34671
34671
|
bearingSnap: 0,
|
|
34672
34672
|
canvasContextAttributes: { antialias: !0 }
|
|
34673
34673
|
});
|
|
34674
|
-
r.zoomAdjustment &&
|
|
34674
|
+
r.zoomAdjustment && y.jumpTo({ zoom: y.getZoom() + r.zoomAdjustment }), l.current = y, y.once("error", (e) => {
|
|
34675
34675
|
var t, n;
|
|
34676
|
-
|
|
34676
|
+
y.isStyleLoaded() || (t = p.current) == null || t.call(p, (n = e == null ? void 0 : e.error) == null ? e : n);
|
|
34677
34677
|
});
|
|
34678
|
-
let
|
|
34678
|
+
let b = (e) => {
|
|
34679
34679
|
let t = e == null ? void 0 : e.id;
|
|
34680
|
-
!t ||
|
|
34680
|
+
!t || y.hasImage(t) || y.addImage(t, {
|
|
34681
34681
|
width: 1,
|
|
34682
34682
|
height: 1,
|
|
34683
34683
|
data: /* @__PURE__ */ new Uint8Array(4)
|
|
34684
34684
|
});
|
|
34685
34685
|
};
|
|
34686
|
-
|
|
34687
|
-
let
|
|
34686
|
+
y.on("styleimagemissing", b);
|
|
34687
|
+
let x = {
|
|
34688
34688
|
id: Tt,
|
|
34689
34689
|
type: "custom",
|
|
34690
34690
|
renderingMode: "3d",
|
|
34691
34691
|
onAdd(e, t) {
|
|
34692
34692
|
var n;
|
|
34693
34693
|
if (s) return;
|
|
34694
|
-
let r = new
|
|
34695
|
-
canvas:
|
|
34694
|
+
let r = new ee({
|
|
34695
|
+
canvas: y.getCanvas(),
|
|
34696
34696
|
gl: t
|
|
34697
34697
|
});
|
|
34698
34698
|
if (s) {
|
|
34699
34699
|
r.dispose();
|
|
34700
34700
|
return;
|
|
34701
34701
|
}
|
|
34702
|
-
r.init(
|
|
34702
|
+
r.init(h), u.current = r, (n = d.current) == null || n.call(d, r, y, h, () => y.triggerRepaint());
|
|
34703
34703
|
},
|
|
34704
34704
|
render(e, t) {
|
|
34705
34705
|
if (!u.current || u.current.isDisposed) return;
|
|
34706
34706
|
let n = At(t == null ? e : t);
|
|
34707
34707
|
n && u.current.render(n);
|
|
34708
34708
|
}
|
|
34709
|
-
},
|
|
34709
|
+
}, S = () => {
|
|
34710
34710
|
var e;
|
|
34711
|
-
Nt(
|
|
34711
|
+
Nt(y), y.getSource(wt) || y.addSource(wt, {
|
|
34712
34712
|
type: "geojson",
|
|
34713
34713
|
data: Ot
|
|
34714
|
-
}),
|
|
34714
|
+
}), y.getLayer("expofp-map-dim") || y.addLayer({
|
|
34715
34715
|
id: Ct,
|
|
34716
34716
|
type: "fill",
|
|
34717
34717
|
source: wt,
|
|
@@ -34723,11 +34723,11 @@ function Ft({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
|
|
|
34723
34723
|
delay: 0
|
|
34724
34724
|
}
|
|
34725
34725
|
}
|
|
34726
|
-
}), (e = f.current) == null || e.call(f,
|
|
34726
|
+
}), (e = f.current) == null || e.call(f, y), y.addLayer(x);
|
|
34727
34727
|
};
|
|
34728
|
-
return
|
|
34728
|
+
return y.on("style.load", S), y.setStyle(a.style, v ? { transformStyle: v } : void 0), () => {
|
|
34729
34729
|
var e;
|
|
34730
|
-
s = !0,
|
|
34730
|
+
s = !0, y.off("style.load", S), y.off("styleimagemissing", b), (e = u.current) == null || e.dispose(), u.current = null, y.remove(), l.current = null;
|
|
34731
34731
|
};
|
|
34732
34732
|
}, []), /* @__PURE__ */ (0, St.jsx)("div", {
|
|
34733
34733
|
ref: c,
|
|
@@ -34799,7 +34799,7 @@ function Kt(e, t) {
|
|
|
34799
34799
|
};
|
|
34800
34800
|
}
|
|
34801
34801
|
function qt(e = 0) {
|
|
34802
|
-
let t =
|
|
34802
|
+
let t = T.canvasVisibleRectPx, n = T.screenSize;
|
|
34803
34803
|
return !t || !n ? {
|
|
34804
34804
|
top: e,
|
|
34805
34805
|
bottom: e,
|
|
@@ -34818,8 +34818,8 @@ function Jt(e, t, n) {
|
|
|
34818
34818
|
}
|
|
34819
34819
|
function Yt() {
|
|
34820
34820
|
var e, t;
|
|
34821
|
-
if (!(!(
|
|
34822
|
-
let n =
|
|
34821
|
+
if (!(!(f == null || (e = f.properties) == null) && e.config)) return null;
|
|
34822
|
+
let n = f.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = d(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
|
|
34823
34823
|
return {
|
|
34824
34824
|
center: [r, i],
|
|
34825
34825
|
bearing: o,
|
|
@@ -34880,9 +34880,9 @@ function Xt(e, t, n, r = {}) {
|
|
|
34880
34880
|
}
|
|
34881
34881
|
//#endregion
|
|
34882
34882
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
34883
|
-
var Zt =
|
|
34883
|
+
var Zt = T, Qt = 15, $t = 24;
|
|
34884
34884
|
function en(e) {
|
|
34885
|
-
return
|
|
34885
|
+
return j(e, b(e, k));
|
|
34886
34886
|
}
|
|
34887
34887
|
function tn(e, t) {
|
|
34888
34888
|
return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
|
|
@@ -34890,7 +34890,7 @@ function tn(e, t) {
|
|
|
34890
34890
|
function nn(e, t, n) {
|
|
34891
34891
|
var r;
|
|
34892
34892
|
if (n.length !== 1) return !1;
|
|
34893
|
-
let i = (r = n[0]) == null ? void 0 : r.id, a =
|
|
34893
|
+
let i = (r = n[0]) == null ? void 0 : r.id, a = g.poiMarkerStore.markers.find((e) => e.boothId === i);
|
|
34894
34894
|
if (!a) return !1;
|
|
34895
34895
|
let o = l(a.center.x, a.center.y, t.gpsConfig);
|
|
34896
34896
|
return Jt(e, o, qt($t)) || e.easeTo({
|
|
@@ -34911,7 +34911,7 @@ function rn(e, t, n) {
|
|
|
34911
34911
|
Zt.moveToBooths = null;
|
|
34912
34912
|
return;
|
|
34913
34913
|
}
|
|
34914
|
-
Xt(r, en(
|
|
34914
|
+
Xt(r, en(C.fromUnion(...i.map((e) => e.rect))), t), Zt.moveToBooths = null;
|
|
34915
34915
|
}
|
|
34916
34916
|
}), N(() => Zt.moveToRect, (n) => {
|
|
34917
34917
|
let r = e.current;
|
|
@@ -34924,19 +34924,19 @@ function rn(e, t, n) {
|
|
|
34924
34924
|
duration: 500
|
|
34925
34925
|
}), Zt.zoomBy = null);
|
|
34926
34926
|
}), N(() => [
|
|
34927
|
-
|
|
34928
|
-
|
|
34929
|
-
|
|
34927
|
+
T.moveToLocation,
|
|
34928
|
+
g.maplibreStore.cameraPort,
|
|
34929
|
+
g.routeStore.currentPosition
|
|
34930
34930
|
], ([n]) => {
|
|
34931
34931
|
if (!n) return;
|
|
34932
|
-
let r = e.current, i =
|
|
34932
|
+
let r = e.current, i = g.routeStore.currentPosition;
|
|
34933
34933
|
if (!i) {
|
|
34934
|
-
|
|
34934
|
+
T.moveToLocation = !1;
|
|
34935
34935
|
return;
|
|
34936
34936
|
}
|
|
34937
34937
|
if (!r) return;
|
|
34938
34938
|
let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o);
|
|
34939
|
-
|
|
34939
|
+
T.moveToLocation = !1;
|
|
34940
34940
|
let c;
|
|
34941
34941
|
if (s) c = [a, o];
|
|
34942
34942
|
else {
|
|
@@ -34948,20 +34948,20 @@ function rn(e, t, n) {
|
|
|
34948
34948
|
animate: !0,
|
|
34949
34949
|
duration: 1e3
|
|
34950
34950
|
});
|
|
34951
|
-
}), N(() =>
|
|
34951
|
+
}), N(() => T.centerMap, (r) => {
|
|
34952
34952
|
let i = e.current;
|
|
34953
34953
|
if (!(!r || !i || !t)) {
|
|
34954
|
-
if (!(
|
|
34955
|
-
let { rect: e } =
|
|
34956
|
-
layerViewbox:
|
|
34957
|
-
explicitArea:
|
|
34958
|
-
layerRectangle:
|
|
34954
|
+
if (!(T.list.type === "search" && !T.list.text)) {
|
|
34955
|
+
let { rect: e } = D({
|
|
34956
|
+
layerViewbox: g.layerStore.viewboxRectangle,
|
|
34957
|
+
explicitArea: _ ? k : null,
|
|
34958
|
+
layerRectangle: g.layerStore.rectangle,
|
|
34959
34959
|
sceneDef: n,
|
|
34960
|
-
svgArea:
|
|
34960
|
+
svgArea: k
|
|
34961
34961
|
});
|
|
34962
34962
|
Xt(i, e, t);
|
|
34963
34963
|
}
|
|
34964
|
-
|
|
34964
|
+
T.centerMap = !1;
|
|
34965
34965
|
}
|
|
34966
34966
|
});
|
|
34967
34967
|
}
|
|
@@ -35011,13 +35011,13 @@ function pn(e, t, n = !1) {
|
|
|
35011
35011
|
}
|
|
35012
35012
|
function mn() {
|
|
35013
35013
|
var e, t, n;
|
|
35014
|
-
let r = (e = (t =
|
|
35015
|
-
return r != null && r.style ? { style: r.style } : r != null && r.styleUrl ? { style: r.styleUrl } : K(
|
|
35014
|
+
let r = (e = (t = g.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
|
|
35015
|
+
return r != null && r.style ? { style: r.style } : r != null && r.styleUrl ? { style: r.styleUrl } : K(f == null || (n = f.properties) == null || (n = n.config) == null ? void 0 : n.style, E.backgroundColor) === "dark" ? cn : q;
|
|
35016
35016
|
}
|
|
35017
35017
|
//#endregion
|
|
35018
35018
|
//#region src/components/Maplibre/useDimming.ts
|
|
35019
35019
|
function hn() {
|
|
35020
|
-
return
|
|
35020
|
+
return T.dimmed && !g.poiMarkerStore.dimSuppressed;
|
|
35021
35021
|
}
|
|
35022
35022
|
function gn(e, t) {
|
|
35023
35023
|
let n = (0, P.useRef)(t);
|
|
@@ -35079,7 +35079,7 @@ function vn(e, t = /* @__PURE__ */ new Map()) {
|
|
|
35079
35079
|
return t;
|
|
35080
35080
|
}
|
|
35081
35081
|
function yn(e) {
|
|
35082
|
-
return e != null && e.shape ?
|
|
35082
|
+
return e != null && e.shape ? A.booths.find((t) => {
|
|
35083
35083
|
var n;
|
|
35084
35084
|
return (n = t.shapes) == null ? void 0 : n.some((t) => t.shape === e.shape);
|
|
35085
35085
|
}) : null;
|
|
@@ -35088,7 +35088,7 @@ function yn(e) {
|
|
|
35088
35088
|
//#region src/components/Maplibre/useLayerVisibilitySync.ts
|
|
35089
35089
|
function bn(e, t, n) {
|
|
35090
35090
|
let r = (0, P.useRef)(null), i = (0, P.useRef)(null);
|
|
35091
|
-
N(() =>
|
|
35091
|
+
N(() => g.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
|
|
35092
35092
|
var a, o;
|
|
35093
35093
|
let s = e.scene;
|
|
35094
35094
|
if (!s) return;
|
|
@@ -35097,7 +35097,7 @@ function bn(e, t, n) {
|
|
|
35097
35097
|
defsByName: vn(s.rootLayer)
|
|
35098
35098
|
});
|
|
35099
35099
|
let c = r.current.defsByName, l = [];
|
|
35100
|
-
for (let e of
|
|
35100
|
+
for (let e of g.layerStore.layers) {
|
|
35101
35101
|
let t = c.get(e.name);
|
|
35102
35102
|
if (t != null && t.length) for (let n of t) {
|
|
35103
35103
|
let t = !e.visible;
|
|
@@ -35105,7 +35105,7 @@ function bn(e, t, n) {
|
|
|
35105
35105
|
}
|
|
35106
35106
|
}
|
|
35107
35107
|
l.length && e.update(...l);
|
|
35108
|
-
let u =
|
|
35108
|
+
let u = g.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
|
|
35109
35109
|
if (!u || i.current === u.name) return;
|
|
35110
35110
|
i.current = u.name;
|
|
35111
35111
|
let d = (o = u.viewbox) == null ? u.rect : o;
|
|
@@ -35130,13 +35130,13 @@ var xn = null, Sn = {
|
|
|
35130
35130
|
function Mn(e, t, a) {
|
|
35131
35131
|
(0, P.useEffect)(() => {
|
|
35132
35132
|
var o;
|
|
35133
|
-
if (!
|
|
35133
|
+
if (!S()) return;
|
|
35134
35134
|
let s = t.current;
|
|
35135
35135
|
if (!e || !s || !a) return;
|
|
35136
|
-
let { gpsConfig: c } = a, u = /* @__PURE__ */ new Set(), d = window.devicePixelRatio || 1, f =
|
|
35136
|
+
let { gpsConfig: c } = a, u = /* @__PURE__ */ new Set(), d = window.devicePixelRatio || 1, f = p(36, d, ((o = E.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), m = (e) => l(e.center.x, e.center.y, c), h = (e, t) => {
|
|
35137
35137
|
s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: d }), u.add(e);
|
|
35138
|
-
},
|
|
35139
|
-
let t =
|
|
35138
|
+
}, _ = (e) => {
|
|
35139
|
+
let t = g.poiMarkerStore.markers, n = new Set(t.map((e) => jn(e.boothId)));
|
|
35140
35140
|
n.add(On);
|
|
35141
35141
|
for (let e of [...u]) n.has(e) || (s.hasImage(e) && s.removeImage(e), u.delete(e));
|
|
35142
35142
|
for (let n of t) {
|
|
@@ -35144,8 +35144,8 @@ function Mn(e, t, a) {
|
|
|
35144
35144
|
(e || !u.has(t)) && h(t, n.icon);
|
|
35145
35145
|
}
|
|
35146
35146
|
u.has(On) || h(On, f);
|
|
35147
|
-
},
|
|
35148
|
-
let e =
|
|
35147
|
+
}, v = () => {
|
|
35148
|
+
let e = g.poiMarkerStore.selectedMarkerId, t = g.poiMarkerStore.outdoorFilter, n = !t.active, r = g.poiMarkerStore.markers;
|
|
35149
35149
|
return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
|
|
35150
35150
|
cluster: n,
|
|
35151
35151
|
data: {
|
|
@@ -35154,7 +35154,7 @@ function Mn(e, t, a) {
|
|
|
35154
35154
|
type: "Feature",
|
|
35155
35155
|
geometry: {
|
|
35156
35156
|
type: "Point",
|
|
35157
|
-
coordinates:
|
|
35157
|
+
coordinates: m(t)
|
|
35158
35158
|
},
|
|
35159
35159
|
properties: {
|
|
35160
35160
|
boothId: t.boothId,
|
|
@@ -35164,7 +35164,7 @@ function Mn(e, t, a) {
|
|
|
35164
35164
|
}))
|
|
35165
35165
|
}
|
|
35166
35166
|
};
|
|
35167
|
-
},
|
|
35167
|
+
}, y = () => {
|
|
35168
35168
|
var e, t, n;
|
|
35169
35169
|
let r = null;
|
|
35170
35170
|
for (let n of (e = (t = s.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
|
|
@@ -35177,17 +35177,17 @@ function Mn(e, t, a) {
|
|
|
35177
35177
|
}
|
|
35178
35178
|
}
|
|
35179
35179
|
return (n = r) == null ? ["Noto Sans Regular"] : n;
|
|
35180
|
-
},
|
|
35180
|
+
}, b = null, x = () => {
|
|
35181
35181
|
for (let e of kn) s.getLayer(e) && s.removeLayer(e);
|
|
35182
|
-
s.getSource(Cn) && s.removeSource(Cn),
|
|
35183
|
-
},
|
|
35184
|
-
if (
|
|
35182
|
+
s.getSource(Cn) && s.removeSource(Cn), b = null;
|
|
35183
|
+
}, w = (e, t) => {
|
|
35184
|
+
if (b !== null && b !== t && x(), s.getSource(Cn) || (s.addSource(Cn, {
|
|
35185
35185
|
type: "geojson",
|
|
35186
35186
|
data: e,
|
|
35187
35187
|
cluster: t,
|
|
35188
35188
|
clusterRadius: 50,
|
|
35189
35189
|
clusterMinPoints: 3
|
|
35190
|
-
}),
|
|
35190
|
+
}), b = t), s.getLayer(wn)) return;
|
|
35191
35191
|
let i = ["!", ["has", "point_count"]], a = [
|
|
35192
35192
|
"==",
|
|
35193
35193
|
[
|
|
@@ -35216,7 +35216,7 @@ function Mn(e, t, a) {
|
|
|
35216
35216
|
filter: ["has", "point_count"],
|
|
35217
35217
|
layout: {
|
|
35218
35218
|
"text-field": ["get", "point_count_abbreviated"],
|
|
35219
|
-
"text-font":
|
|
35219
|
+
"text-font": y(),
|
|
35220
35220
|
"text-size": 14,
|
|
35221
35221
|
"text-allow-overlap": !0,
|
|
35222
35222
|
"text-ignore-placement": !0
|
|
@@ -35257,16 +35257,16 @@ function Mn(e, t, a) {
|
|
|
35257
35257
|
if (!s.getLayer(wn)) return;
|
|
35258
35258
|
let e = hn() ? 1 - oe : 1;
|
|
35259
35259
|
s.setPaintProperty(wn, "circle-opacity", e), s.setPaintProperty(wn, "circle-stroke-opacity", e), s.setPaintProperty(Tn, "text-opacity", e), s.setPaintProperty(En, "icon-opacity", e), s.setPaintProperty(Dn, "icon-opacity", e);
|
|
35260
|
-
},
|
|
35260
|
+
}, D = (e = !1) => {
|
|
35261
35261
|
var t;
|
|
35262
|
-
|
|
35263
|
-
let { cluster: n, data: r } =
|
|
35264
|
-
|
|
35262
|
+
_(e);
|
|
35263
|
+
let { cluster: n, data: r } = v();
|
|
35264
|
+
w(r, n), (t = s.getSource(Cn)) == null || t.setData(r), T();
|
|
35265
35265
|
}, O = (e) => {
|
|
35266
35266
|
if (!e.length) return;
|
|
35267
35267
|
let t = qt(50);
|
|
35268
|
-
if (e.every((e) => Jt(s,
|
|
35269
|
-
let n = Ut(
|
|
35268
|
+
if (e.every((e) => Jt(s, m(e), t))) return;
|
|
35269
|
+
let n = Ut(C.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
|
|
35270
35270
|
padding: t,
|
|
35271
35271
|
bearing: a.bearing
|
|
35272
35272
|
});
|
|
@@ -35281,8 +35281,8 @@ function Mn(e, t, a) {
|
|
|
35281
35281
|
var t;
|
|
35282
35282
|
let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
|
|
35283
35283
|
if (typeof n != "number") return;
|
|
35284
|
-
let r =
|
|
35285
|
-
r &&
|
|
35284
|
+
let r = g.boothStore.boothById.get(n);
|
|
35285
|
+
r && g.clickBooth(r);
|
|
35286
35286
|
}, A = (e) => {
|
|
35287
35287
|
var t, n, r;
|
|
35288
35288
|
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(Cn);
|
|
@@ -35303,16 +35303,16 @@ function Mn(e, t, a) {
|
|
|
35303
35303
|
return s.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
|
|
35304
35304
|
});
|
|
35305
35305
|
let j = () => {
|
|
35306
|
-
u.clear(),
|
|
35306
|
+
u.clear(), D(!0);
|
|
35307
35307
|
};
|
|
35308
35308
|
s.on("style.load", j);
|
|
35309
|
-
let M = i(() =>
|
|
35310
|
-
|
|
35309
|
+
let M = i(() => g.poiMarkerStore.markers, () => D(!0)), ee = i(() => g.poiMarkerStore.selectedMarkerId, () => D()), te = i(() => g.poiMarkerStore.outdoorFilter.key, () => {
|
|
35310
|
+
D(), O(g.poiMarkerStore.outdoorFilter.matchingMarkers);
|
|
35311
35311
|
}), N = i(() => hn(), () => T());
|
|
35312
|
-
return
|
|
35312
|
+
return D(!0), () => {
|
|
35313
35313
|
M(), ee(), te(), N(), Sn.set(null), s.off("style.load", j), s.off("click", En, k), s.off("click", Dn, k), s.off("click", wn, A);
|
|
35314
35314
|
try {
|
|
35315
|
-
|
|
35315
|
+
x();
|
|
35316
35316
|
for (let e of u) s.hasImage(e) && s.removeImage(e);
|
|
35317
35317
|
} catch {}
|
|
35318
35318
|
};
|
|
@@ -35324,36 +35324,36 @@ function Mn(e, t, a) {
|
|
|
35324
35324
|
}
|
|
35325
35325
|
//#endregion
|
|
35326
35326
|
//#region src/components/Maplibre/useRendererEvents.ts
|
|
35327
|
-
var Nn =
|
|
35327
|
+
var Nn = T;
|
|
35328
35328
|
function Pn(e, t) {
|
|
35329
35329
|
(0, P.useEffect)(() => {
|
|
35330
35330
|
if (!e) return;
|
|
35331
35331
|
let n = ({ data: e }) => {
|
|
35332
|
-
if (
|
|
35332
|
+
if (T.setKioskModeEnabled) return;
|
|
35333
35333
|
let { point: t, defs: n } = u(e), r = ue(t.x, t.y), i = yn(n[0]);
|
|
35334
35334
|
Nn.hoveredBooth = r || i || null;
|
|
35335
35335
|
}, r = () => {
|
|
35336
|
-
|
|
35336
|
+
T.setKioskModeEnabled || (Nn.hoveredBooth = null);
|
|
35337
35337
|
}, i = ({ data: e }) => {
|
|
35338
35338
|
var n, r;
|
|
35339
|
-
if (!(
|
|
35340
|
-
(n = (r = window).__resett) == null || n.call(r),
|
|
35339
|
+
if (!(T != null && T.rootElement)) return;
|
|
35340
|
+
(n = (r = window).__resett) == null || n.call(r), T.overlayPosition === "bottom" && T.overlaySize === "full" && g.showMap();
|
|
35341
35341
|
let { point: i, defs: a } = u(e), { x: o, y: s } = i;
|
|
35342
|
-
if (
|
|
35343
|
-
let e =
|
|
35344
|
-
|
|
35342
|
+
if (T.onGetCoordsClick) {
|
|
35343
|
+
let e = g.layerStore.layers.find((e) => e.visible && (e.mode === O.TurnedOn || e.mode === O.TurnedOff));
|
|
35344
|
+
T.onGetCoordsClick({
|
|
35345
35345
|
x: o,
|
|
35346
35346
|
y: s,
|
|
35347
35347
|
z: (e == null ? void 0 : e.name) || null
|
|
35348
35348
|
});
|
|
35349
35349
|
}
|
|
35350
|
-
if (
|
|
35350
|
+
if (T.setKioskModeEnabled || Sn.test(o, s)) return;
|
|
35351
35351
|
let c = ue(i.x, i.y) || yn(a[0]);
|
|
35352
|
-
if (
|
|
35352
|
+
if (T.onMarkerClick) {
|
|
35353
35353
|
let e = ae(o, s, t.scale);
|
|
35354
|
-
|
|
35354
|
+
T.onMarkerClick(e);
|
|
35355
35355
|
}
|
|
35356
|
-
|
|
35356
|
+
g.clickBooth(c || null);
|
|
35357
35357
|
}, a = () => {
|
|
35358
35358
|
var e, t;
|
|
35359
35359
|
return (e = (t = window).__resett) == null ? void 0 : e.call(t);
|
|
@@ -35368,7 +35368,7 @@ function Pn(e, t) {
|
|
|
35368
35368
|
function Fn(e, t) {
|
|
35369
35369
|
(0, P.useEffect)(() => {
|
|
35370
35370
|
if (!e) return;
|
|
35371
|
-
let n = c(t,
|
|
35371
|
+
let n = c(t, g), r = re(t);
|
|
35372
35372
|
return () => {
|
|
35373
35373
|
n == null || n(), r == null || r();
|
|
35374
35374
|
};
|
|
@@ -35552,10 +35552,10 @@ function nr(e, t, n) {
|
|
|
35552
35552
|
};
|
|
35553
35553
|
}
|
|
35554
35554
|
function rr() {
|
|
35555
|
-
|
|
35556
|
-
|
|
35555
|
+
g.poiMarkerStore.clear(), a(() => {
|
|
35556
|
+
g.layerStore.layers.forEach((e) => {
|
|
35557
35557
|
e.configured = !1, e.children = [], e.loaded = !1;
|
|
35558
|
-
}),
|
|
35558
|
+
}), g.layerStore.layersLoaded = !1;
|
|
35559
35559
|
});
|
|
35560
35560
|
}
|
|
35561
35561
|
function ir(e, t) {
|
|
@@ -35570,42 +35570,42 @@ function ar(e) {
|
|
|
35570
35570
|
}
|
|
35571
35571
|
var or = te(function({ viewMode: e }) {
|
|
35572
35572
|
var t;
|
|
35573
|
-
let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o =
|
|
35574
|
-
layerViewbox:
|
|
35575
|
-
explicitArea:
|
|
35576
|
-
layerRectangle:
|
|
35573
|
+
let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o = g.rendererService, s = (0, P.useRef)(null), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useMemo)(() => Yt(), []), x = (0, P.useMemo)(() => D({
|
|
35574
|
+
layerViewbox: g.layerStore.viewboxRectangle,
|
|
35575
|
+
explicitArea: _ ? k : null,
|
|
35576
|
+
layerRectangle: g.layerStore.rectangle,
|
|
35577
35577
|
sceneDef: n,
|
|
35578
|
-
svgArea:
|
|
35579
|
-
}), [n]),
|
|
35580
|
-
if (!
|
|
35581
|
-
let e =
|
|
35582
|
-
e &&
|
|
35583
|
-
let n =
|
|
35584
|
-
width:
|
|
35585
|
-
height:
|
|
35578
|
+
svgArea: k
|
|
35579
|
+
}), [n]), S = x.rect, C = (0, P.useMemo)(() => {
|
|
35580
|
+
if (!p) return null;
|
|
35581
|
+
let e = v(x.source) ? 0 : b(S, k), t = qt(0);
|
|
35582
|
+
e && T.screenSize && (t.left += T.screenSize.width * e, t.right += T.screenSize.width * e, t.top += T.screenSize.height * e, t.bottom += T.screenSize.height * e);
|
|
35583
|
+
let n = T.screenSize ? Gt(S, p.gpsConfig, p.bearing, {
|
|
35584
|
+
width: T.screenSize.width,
|
|
35585
|
+
height: T.screenSize.height
|
|
35586
35586
|
}, t) : null;
|
|
35587
35587
|
return n ? {
|
|
35588
35588
|
center: n.center,
|
|
35589
|
-
bearing:
|
|
35589
|
+
bearing: p.bearing,
|
|
35590
35590
|
zoom: n.zoom
|
|
35591
35591
|
} : {
|
|
35592
|
-
center:
|
|
35593
|
-
bearing:
|
|
35594
|
-
zoom:
|
|
35595
|
-
bounds: Ut(
|
|
35592
|
+
center: p.center,
|
|
35593
|
+
bearing: p.bearing,
|
|
35594
|
+
zoom: p.zoom,
|
|
35595
|
+
bounds: Ut(S, p.gpsConfig),
|
|
35596
35596
|
fitPadding: t,
|
|
35597
35597
|
zoomAdjustment: It
|
|
35598
35598
|
};
|
|
35599
35599
|
}, [
|
|
35600
|
-
|
|
35601
|
-
|
|
35602
|
-
|
|
35603
|
-
]),
|
|
35600
|
+
p,
|
|
35601
|
+
x,
|
|
35602
|
+
S
|
|
35603
|
+
]), O = (0, P.useMemo)(() => {
|
|
35604
35604
|
var e;
|
|
35605
|
-
return
|
|
35606
|
-
}, [
|
|
35605
|
+
return p ? Vn(p.gpsConfig, (e = h()) == null ? void 0 : e.getAttribute("units")) : null;
|
|
35606
|
+
}, [p]), A = (0, P.useMemo)(() => ({ ...e === "map2d" ? un : ln }), [e]), j = (0, P.useRef)(A), ee = (0, P.useMemo)(() => mn(), []), { mapDimAnimatorRef: te, venueDimAnimatorRef: N, applyDimmingTarget: re, handleMapDimLayerReady: ie } = gn(c, o);
|
|
35607
35607
|
(0, P.useEffect)(() => {
|
|
35608
|
-
if (!
|
|
35608
|
+
if (!p) return;
|
|
35609
35609
|
let e = !1;
|
|
35610
35610
|
rr();
|
|
35611
35611
|
let t = le(o).then(({ layers: t, cleanup: n }) => {
|
|
@@ -35614,71 +35614,71 @@ var or = te(function({ viewMode: e }) {
|
|
|
35614
35614
|
return;
|
|
35615
35615
|
}
|
|
35616
35616
|
u.current = n;
|
|
35617
|
-
let i =
|
|
35617
|
+
let i = w(t, k, (0, de.default)(E.backgroundColor === "none" ? "#ebebeb" : E.backgroundColor).string());
|
|
35618
35618
|
r(i);
|
|
35619
35619
|
}).catch((t) => {
|
|
35620
35620
|
e || console.warn("Maplibre scene configuration failed.", t);
|
|
35621
35621
|
}), n = te.current, i = N.current;
|
|
35622
35622
|
return () => {
|
|
35623
|
-
var r,
|
|
35623
|
+
var r, p;
|
|
35624
35624
|
e = !0, rr();
|
|
35625
35625
|
let m = s.current;
|
|
35626
|
-
t.finally(() => o.disposeIfCurrent(m)), (r = l.current) == null || r.call(l), l.current = null, (
|
|
35626
|
+
t.finally(() => o.disposeIfCurrent(m)), (r = l.current) == null || r.call(l), l.current = null, (p = u.current) == null || p.call(u), u.current = null, f.current && (g.maplibreStore.clearCameraPortIfCurrent(f.current), f.current = null), s.current = null, c.current = null, d.current = null, a(null), n == null || n.stop(), i == null || i.stop(), T.sceneDefReady = !1;
|
|
35627
35627
|
};
|
|
35628
35628
|
}, [
|
|
35629
|
-
|
|
35629
|
+
p,
|
|
35630
35630
|
te,
|
|
35631
35631
|
o,
|
|
35632
35632
|
N
|
|
35633
35633
|
]);
|
|
35634
35634
|
let ae = (0, P.useCallback)((e, t, n, r) => {
|
|
35635
|
-
var i, u,
|
|
35636
|
-
s.current = e, c.current = t,
|
|
35637
|
-
let
|
|
35635
|
+
var i, u, h;
|
|
35636
|
+
s.current = e, c.current = t, d.current = r, a(e), o.attach(e, n, r, O ? ar(O) : 1), pn(t, j.current);
|
|
35637
|
+
let _ = nr(t, (i = p == null ? void 0 : p.bearing) == null ? t.getBearing() : i, () => {
|
|
35638
35638
|
var e;
|
|
35639
35639
|
return (e = j.current.pitch) == null ? 0 : e;
|
|
35640
35640
|
});
|
|
35641
|
-
|
|
35641
|
+
f.current = _, g.maplibreStore.setCameraPort(_), re({ immediate: !0 }), (u = l.current) == null || u.call(l);
|
|
35642
35642
|
let v = () => {
|
|
35643
35643
|
var e;
|
|
35644
|
-
let n = t.getBearing() - ((e =
|
|
35645
|
-
ir(o,
|
|
35644
|
+
let n = t.getBearing() - ((e = p == null ? void 0 : p.bearing) == null ? 0 : e);
|
|
35645
|
+
ir(o, M(n));
|
|
35646
35646
|
};
|
|
35647
35647
|
t.on("rotate", v), t.on("rotateend", v), l.current = () => {
|
|
35648
35648
|
t.off("rotate", v), t.off("rotateend", v);
|
|
35649
|
-
},
|
|
35649
|
+
}, m(o);
|
|
35650
35650
|
let y = o.ptScaleRegistry.invoke(o.scale || 1);
|
|
35651
|
-
y.length && o.update(...y), ir(o,
|
|
35651
|
+
y.length && o.update(...y), ir(o, M(t.getBearing() - ((h = p == null ? void 0 : p.bearing) == null ? 0 : h))), g.layerStore.layersLoaded = !0, g.fp.onFpConfigured && g.fp.onFpConfigured(), T.sceneDefReady = !0, r();
|
|
35652
35652
|
}, [
|
|
35653
35653
|
o,
|
|
35654
35654
|
re,
|
|
35655
|
-
|
|
35656
|
-
|
|
35655
|
+
O,
|
|
35656
|
+
p
|
|
35657
35657
|
]);
|
|
35658
35658
|
(0, P.useEffect)(() => {
|
|
35659
|
-
j.current =
|
|
35660
|
-
}, [
|
|
35661
|
-
enabled:
|
|
35659
|
+
j.current = A, pn(c.current, A, !0);
|
|
35660
|
+
}, [A]), Pn(i, o), _n(i, c), Fn(i, o), Mn(i, c, p), bn(o, c, p), rn(c, p, n), se({
|
|
35661
|
+
enabled: g.layerStore.layersLoaded && T.buildRoute,
|
|
35662
35662
|
rendererService: o
|
|
35663
35663
|
});
|
|
35664
|
-
let oe = (t =
|
|
35664
|
+
let oe = (t = y.busRoutes) != null && t;
|
|
35665
35665
|
ne({
|
|
35666
|
-
permission:
|
|
35666
|
+
permission: g.layerStore.layersLoaded && oe,
|
|
35667
35667
|
rendererService: o,
|
|
35668
|
-
dataJsonUrl: `https://${er}/v1/routes?expo=${
|
|
35669
|
-
websocketUrl: `wss://${er}/locations?expo=${
|
|
35668
|
+
dataJsonUrl: `https://${er}/v1/routes?expo=${E.EXPO}`,
|
|
35669
|
+
websocketUrl: `wss://${er}/locations?expo=${E.EXPO}`
|
|
35670
35670
|
});
|
|
35671
35671
|
let ce = (0, P.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), g.maplibreStore.deactivateMaplibre();
|
|
35673
35673
|
}, []);
|
|
35674
|
-
if (!
|
|
35675
|
-
let ue = `${
|
|
35674
|
+
if (!p || !C || !O || !n) return null;
|
|
35675
|
+
let ue = `${C.center.join(",")}:${C.bearing}:${C.zoom}`;
|
|
35676
35676
|
return /* @__PURE__ */ (0, St.jsx)(Ft, {
|
|
35677
35677
|
sceneDef: n,
|
|
35678
|
-
geoConfig:
|
|
35679
|
-
staticTransform:
|
|
35680
|
-
tileSource:
|
|
35681
|
-
mapOptions:
|
|
35678
|
+
geoConfig: C,
|
|
35679
|
+
staticTransform: O,
|
|
35680
|
+
tileSource: ee,
|
|
35681
|
+
mapOptions: A,
|
|
35682
35682
|
onRendererReady: ae,
|
|
35683
35683
|
onMapDimLayerReady: ie,
|
|
35684
35684
|
onMapLoadError: ce
|