@expofp/floorplan 0.0.0-experimental.2632d13 → 0.0.0-experimental.6f27bb7
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/{GpsLoader-DwNSQv4V.js → GpsLoader-BrvSPc8H.js} +3 -3
- package/dist/browser/{KioskStore-DgP9k2lT.js → KioskStore-BJ4bqapB.js} +3 -3
- package/dist/browser/{LayerStore-DCwl80sb.js → LayerStore-C4GTDPHD.js} +1 -1
- package/dist/browser/{MaplibreAdapter-B-c-uOJf.js → MaplibreAdapter-LT3aYdKq.js} +55 -56
- package/dist/browser/{RouteStore-CuslHjhJ.js → RouteStore-BdR5neK3.js} +1548 -740
- package/dist/browser/{SetKioskMode-CVD7sZLr.js → SetKioskMode-DAr5HygV.js} +2 -2
- package/dist/browser/{ShowKiosk-DuOS8tTO.js → ShowKiosk-D69MzGn1.js} +2 -2
- package/dist/browser/{ViewerMenuPanel-Xj-8aVzf.js → ViewerMenuPanel-YKHGRQD6.js} +2 -2
- package/dist/browser/bundle.json +22 -25
- package/dist/browser/{components-D8dv3ezN.js → components-CKKQ_xN7.js} +714 -714
- package/dist/browser/{create-live-plan-Ff4MkKcG.js → create-live-plan-RDVxhQNb.js} +385 -724
- package/dist/browser/{floorplan.loader-fOvLfGGf.js → floorplan.loader-BpPAaf2G.js} +3 -3
- package/dist/browser/{floorplan.ready-Bvj8hVzH.js → floorplan.ready-ewj3L_Nf.js} +48 -48
- package/dist/browser/index.js +5 -5
- package/dist/browser/{venue-public-CH7uq9Xn.js → init-ui-J0bwWoYp.js} +5 -15
- package/dist/browser/{integrateKiosk-DhdxcN-Y.js → integrateKiosk-C3Y0PTW1.js} +1 -1
- package/dist/browser/{journey-plan-cw-9rqLk.js → journey-plan-CXmXiYcU.js} +14 -14
- package/dist/browser/{kiosk-mode-Bqv2L5PO.js → kiosk-mode-DaPbSm7O.js} +1 -1
- package/dist/browser/{kioskUrlParam-dw9tDQ6e.js → kioskUrlParam-BvyzbPxz.js} +1 -1
- package/dist/browser/{logDeviceInfo-D2Anqc6y.js → logDeviceInfo-BVFtT7aX.js} +3 -3
- package/dist/browser/{debounce-B4PlcNh4.js → venue-selection-BaGA9szA.js} +6 -16
- package/dist/browser/{viewport-juWifKNy.js → viewport-DVZ47XEo.js} +1 -1
- package/dist/esm/store/RouteStore.d.ts +10 -0
- package/dist/esm/store/RouteStore.js +39 -15
- package/dist/esm/store/VenueStore.d.ts +7 -0
- package/dist/esm/store/VenueStore.js +9 -0
- package/package.json +10 -10
- package/dist/browser/venues-Yq0wU18A.js +0 -447
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
4
|
e.SENTRY_RELEASE = { id: "3.45.6" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "028a3696-20d7-46da-9317-3caf4db770d9", e._sentryDebugIdIdentifier = "sentry-dbid-028a3696-20d7-46da-9317-3caf4db770d9");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
9
|
import { r as e } from "./rolldown-runtime-DUb2xvRc.js";
|
|
@@ -11,12 +11,12 @@ import { M as t, s as n } from "./i18n-DRDvImjG.js";
|
|
|
11
11
|
import { t as r } from "./react-DqPP-mkq.js";
|
|
12
12
|
import { t as i } from "./jsx-runtime-DQgnuS-I.js";
|
|
13
13
|
import { m as a } from "./is-debug-6YYr83sg.js";
|
|
14
|
-
import { E as o } from "./LayerStore-
|
|
14
|
+
import { E as o } from "./LayerStore-C4GTDPHD.js";
|
|
15
15
|
import { t as s } from "./PermissionNotice-DaqnuHln.js";
|
|
16
16
|
import { t as c } from "./index.module-kJmnWg5B.js";
|
|
17
17
|
import { l } from "./store-q_CTsixH.js";
|
|
18
18
|
import { i as u } from "./mobx-C-kcS0zI.js";
|
|
19
|
-
import {
|
|
19
|
+
import { J as d, t as f } from "./RouteStore-BdR5neK3.js";
|
|
20
20
|
//#region src/components/gps/GpsPermissionRequest.tsx
|
|
21
21
|
var p = /* @__PURE__ */ e(r(), 1), m = i(), h = c(function({ isOpen: e, onAllow: t, onCancel: r }) {
|
|
22
22
|
return e ? /* @__PURE__ */ (0, m.jsx)(s, {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
})();
|
|
9
9
|
import { At as e, D as t, l as n, s as r } from "./i18n-DRDvImjG.js";
|
|
10
10
|
import { a as i, c as a, f as o, h as s, n as c } from "./mobx.module-BOCLFB5I.js";
|
|
11
|
-
import { Bt as l, Ht as u, Qt as d, en as f, nn as p, tn as m } from "./LayerStore-
|
|
11
|
+
import { Bt as l, Ht as u, Qt as d, en as f, nn as p, tn as m } from "./LayerStore-C4GTDPHD.js";
|
|
12
12
|
import { l as h } from "./store-q_CTsixH.js";
|
|
13
|
-
import { r as g } from "./viewport-
|
|
14
|
-
import { i as _ } from "./kiosk-mode-
|
|
13
|
+
import { r as g } from "./viewport-DVZ47XEo.js";
|
|
14
|
+
import { i as _ } from "./kiosk-mode-DaPbSm7O.js";
|
|
15
15
|
import { n as v, t as y } from "./kiosk-record-JAEq8SV6.js";
|
|
16
16
|
//#region src/components/Kiosk/KioskStore.ts
|
|
17
17
|
var b, x, S, C, w;
|
|
@@ -4,7 +4,7 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
|
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
5
|
e.SENTRY_RELEASE = { id: "3.45.6" };
|
|
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] = "c921da51-bfbe-4b73-b0ae-f2896b63193a", e._sentryDebugIdIdentifier = "sentry-dbid-c921da51-bfbe-4b73-b0ae-f2896b63193a");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
10
|
import { r as e, t } from "./rolldown-runtime-DUb2xvRc.js";
|
|
@@ -4,7 +4,7 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
|
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
5
|
e.SENTRY_RELEASE = { id: "3.45.6" };
|
|
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] = "c0a77da4-f007-4cdb-a3eb-bede167df73c", e._sentryDebugIdIdentifier = "sentry-dbid-c0a77da4-f007-4cdb-a3eb-bede167df73c");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
10
|
import { r as e, t } from "./rolldown-runtime-DUb2xvRc.js";
|
|
@@ -14,17 +14,16 @@ import { t as c } from "./jsx-runtime-DQgnuS-I.js";
|
|
|
14
14
|
import { f as l, t as u } from "./is-debug-6YYr83sg.js";
|
|
15
15
|
import { t as d } from "./loadImage-CenmkrfL.js";
|
|
16
16
|
import { i as f, l as p, u as m } from "./mobx.module-BOCLFB5I.js";
|
|
17
|
-
import { C as h, Gt as g, Kt as _, Rt as v, Sn as y, Ut as b, Xt as x, Yt as S, _n as C, c as w, ct as T, ht as E, l as D, mt as O, o as k, pt as A, q as j, qt as M, s as N, st as ee, u as te, un as ne, v as re, vt as ie, w as ae, yn as oe } from "./LayerStore-
|
|
17
|
+
import { C as h, Gt as g, Kt as _, Rt as v, Sn as y, Ut as b, Xt as x, Yt as S, _n as C, c as w, ct as T, ht as E, l as D, mt as O, o as k, pt as A, q as j, qt as M, s as N, st as ee, u as te, un as ne, v as re, vt as ie, w as ae, yn as oe } from "./LayerStore-C4GTDPHD.js";
|
|
18
18
|
import { t as se } from "./index.module-kJmnWg5B.js";
|
|
19
19
|
import { l as P, u as F } from "./store-q_CTsixH.js";
|
|
20
20
|
import { i as ce } from "./mobx-C-kcS0zI.js";
|
|
21
21
|
import { n as le, t as ue } from "./expofpUrl-jBUlvkwz.js";
|
|
22
|
-
import {
|
|
23
|
-
import { c as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { _ as
|
|
27
|
-
import { n as ze, t as Be } from "./venues-Yq0wU18A.js";
|
|
22
|
+
import { E as de, G as fe, J as pe, S as me, T as he, Y as ge, f as _e, m as ve, p as ye, q as be, w as xe } from "./RouteStore-BdR5neK3.js";
|
|
23
|
+
import { c as Se, i as Ce, l as we, s as Te, u as Ee } from "./kioskUrlParam-BvyzbPxz.js";
|
|
24
|
+
import { t as De } from "./camera-events-DSCuSH25.js";
|
|
25
|
+
import { t as Oe } from "./viewport-DVZ47XEo.js";
|
|
26
|
+
import { _ as ke, b as Ae, d as je, f as Me, g as Ne, h as Pe, l as Fe, m as Ie, p as Le, r as I, u as Re, v as ze, y as Be } from "./journey-plan-CXmXiYcU.js";
|
|
28
27
|
//#region src/components/Maplibre/maplibre-recovery.ts
|
|
29
28
|
var R = /* @__PURE__ */ e(s(), 1), Ve = /* @__PURE__ */ e(ie(), 1);
|
|
30
29
|
function He(e, t) {
|
|
@@ -34867,20 +34866,20 @@ function Mn(e, t, n) {
|
|
|
34867
34866
|
}
|
|
34868
34867
|
function Nn(e, t) {
|
|
34869
34868
|
let n = [
|
|
34870
|
-
|
|
34871
|
-
|
|
34872
|
-
|
|
34873
|
-
|
|
34869
|
+
me(e.min.x, e.min.y, t),
|
|
34870
|
+
me(e.max.x, e.min.y, t),
|
|
34871
|
+
me(e.max.x, e.max.y, t),
|
|
34872
|
+
me(e.min.x, e.max.y, t)
|
|
34874
34873
|
], r = n.map(([e]) => e), i = n.map(([, e]) => e);
|
|
34875
34874
|
return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
|
|
34876
34875
|
}
|
|
34877
34876
|
var Pn = 512;
|
|
34878
34877
|
function Fn(e, t, n, r, i, a) {
|
|
34879
34878
|
let o = [
|
|
34880
|
-
|
|
34881
|
-
|
|
34882
|
-
|
|
34883
|
-
|
|
34879
|
+
me(e.min.x, e.min.y, t),
|
|
34880
|
+
me(e.max.x, e.min.y, t),
|
|
34881
|
+
me(e.max.x, e.max.y, t),
|
|
34882
|
+
me(e.min.x, e.max.y, t)
|
|
34884
34883
|
].map(([e, t]) => Ue.MercatorCoordinate.fromLngLat({
|
|
34885
34884
|
lng: e,
|
|
34886
34885
|
lat: t
|
|
@@ -34918,9 +34917,9 @@ function Ln(e, t, n) {
|
|
|
34918
34917
|
}
|
|
34919
34918
|
function Rn() {
|
|
34920
34919
|
var e, t;
|
|
34921
|
-
let r = (e =
|
|
34920
|
+
let r = (e = fe()) == null || (e = e.properties) == null ? void 0 : e.config;
|
|
34922
34921
|
if (!r) return null;
|
|
34923
|
-
let i = (r.p0.lng + r.p2.lng) / 2, a = (r.p0.lat + r.p2.lat) / 2, o =
|
|
34922
|
+
let i = (r.p0.lng + r.p2.lng) / 2, a = (r.p0.lat + r.p2.lat) / 2, o = he(r.p0, r.p2), s = Number.isFinite(o) ? o : (t = r.bearing) == null ? 0 : t, c = n().enableExperimentalNorthUp === !0;
|
|
34924
34923
|
return {
|
|
34925
34924
|
center: [i, a],
|
|
34926
34925
|
bearing: c ? 0 : s,
|
|
@@ -34936,7 +34935,7 @@ function zn(e, t) {
|
|
|
34936
34935
|
function Bn(e, t, n, r = {}) {
|
|
34937
34936
|
var i, a, o, s, c, l;
|
|
34938
34937
|
if (!e || !t || !n || t.size.height === Infinity || t.size.width === Infinity || t.size.height <= 0 || t.size.width <= 0) return;
|
|
34939
|
-
let u = (i = r.bearing) == null ? n.bearing : i, d = Nn(t, n.gpsConfig), f = e.getCanvas(), p = In((a = r.padding) == null ? 50 : a,
|
|
34938
|
+
let u = (i = r.bearing) == null ? n.bearing : i, d = Nn(t, n.gpsConfig), f = e.getCanvas(), p = In((a = r.padding) == null ? 50 : a, je()), m = Fn(t, n.gpsConfig, u, {
|
|
34940
34939
|
width: f.clientWidth,
|
|
34941
34940
|
height: f.clientHeight
|
|
34942
34941
|
}, p);
|
|
@@ -35047,7 +35046,7 @@ function $n(e, t) {
|
|
|
35047
35046
|
try {
|
|
35048
35047
|
return {
|
|
35049
35048
|
minSizeMeters: Math.min(n, r) * i,
|
|
35050
|
-
centroidLatitude:
|
|
35049
|
+
centroidLatitude: ge(e.center, ...de(t)).lat
|
|
35051
35050
|
};
|
|
35052
35051
|
} catch {
|
|
35053
35052
|
return null;
|
|
@@ -35073,7 +35072,7 @@ function nr(e, t, n, r = $n(n.bounds, t.gpsConfig)) {
|
|
|
35073
35072
|
return a ? er(r, a.zoom) : null;
|
|
35074
35073
|
}
|
|
35075
35074
|
function rr(e, t, n, r = $n(n.bounds, t.gpsConfig)) {
|
|
35076
|
-
return Gn(Hn(n.detailMinSizePx), nr(e, t, n, r),
|
|
35075
|
+
return Gn(Hn(n.detailMinSizePx), nr(e, t, n, r), ye(Un(n.markerMaxSizePx)));
|
|
35077
35076
|
}
|
|
35078
35077
|
//#endregion
|
|
35079
35078
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
@@ -35086,7 +35085,7 @@ function sr(e, t, n) {
|
|
|
35086
35085
|
let s = Fn(n.rect, t.gpsConfig, i, {
|
|
35087
35086
|
width: o.clientWidth,
|
|
35088
35087
|
height: o.clientHeight
|
|
35089
|
-
}, In(50,
|
|
35088
|
+
}, In(50, je()));
|
|
35090
35089
|
if (a && s) {
|
|
35091
35090
|
let n = Jn({
|
|
35092
35091
|
currentZoom: e.getZoom(),
|
|
@@ -35106,7 +35105,7 @@ function sr(e, t, n) {
|
|
|
35106
35105
|
}
|
|
35107
35106
|
var cr = 20;
|
|
35108
35107
|
function lr(e) {
|
|
35109
|
-
return
|
|
35108
|
+
return Te(e, we(e, M())).expand(cr);
|
|
35110
35109
|
}
|
|
35111
35110
|
function ur(e, t, n) {
|
|
35112
35111
|
let r = new Set(n.map((e) => P.venueStore.venueOfLayer(e.layer))), [i] = r;
|
|
@@ -35134,7 +35133,7 @@ function pr(e, t, n) {
|
|
|
35134
35133
|
if (n.length !== 1) return !1;
|
|
35135
35134
|
let i = (r = n[0]) == null ? void 0 : r.id, a = P.poiMarkerStore.markers.find((e) => e.boothId === i);
|
|
35136
35135
|
if (!a) return !1;
|
|
35137
|
-
let o =
|
|
35136
|
+
let o = me(a.center.x, a.center.y, t.gpsConfig);
|
|
35138
35137
|
return Ln(e, o, In(or)) || e.easeTo({
|
|
35139
35138
|
center: o,
|
|
35140
35139
|
zoom: An(e, ar),
|
|
@@ -35165,8 +35164,8 @@ function mr(e, t, n) {
|
|
|
35165
35164
|
var r;
|
|
35166
35165
|
let i = e.current;
|
|
35167
35166
|
if (!n || !i || !t) return;
|
|
35168
|
-
let { width: a, height: o } = n.size, s = a > 0 && o > 0 ?
|
|
35169
|
-
Bn(i,
|
|
35167
|
+
let { width: a, height: o } = n.size, s = a > 0 && o > 0 ? Re(n) : n, c = (r = ir.moveToRectPaddingPercent) == null ? we(n, M()) : r;
|
|
35168
|
+
Bn(i, Te(s, c / (1 - 2 * c)), t, { padding: 0 }), ir.moveToRect = null, ir.moveToRectPaddingPercent = null;
|
|
35170
35169
|
}), ce(() => ir.zoomBy, (t) => {
|
|
35171
35170
|
let n = e.current;
|
|
35172
35171
|
!t || !n || (P.venueStore.releaseDestinationOverride(), n.flyTo({
|
|
@@ -35193,7 +35192,7 @@ function mr(e, t, n) {
|
|
|
35193
35192
|
if (c) l = [o, s];
|
|
35194
35193
|
else {
|
|
35195
35194
|
if (!t) return;
|
|
35196
|
-
l =
|
|
35195
|
+
l = me(a.x, a.y, t.gpsConfig);
|
|
35197
35196
|
}
|
|
35198
35197
|
let u = P.venueStore.venueAt(a), d = u && t && u === P.venueStore.venueOfLayer(String((r = a.z) == null ? "" : r)) ? fr(i, t, u) : void 0;
|
|
35199
35198
|
i.flyTo({
|
|
@@ -35206,7 +35205,7 @@ function mr(e, t, n) {
|
|
|
35206
35205
|
let i = e.current;
|
|
35207
35206
|
if (!(!r || !i || !t)) {
|
|
35208
35207
|
if (!(F.list.type === "search" && !F.list.text)) {
|
|
35209
|
-
let { rect: e } =
|
|
35208
|
+
let { rect: e } = Ee({
|
|
35210
35209
|
layerViewbox: P.layerStore.viewboxRectangle,
|
|
35211
35210
|
explicitArea: S() ? M() : null,
|
|
35212
35211
|
layerRectangle: P.layerStore.rectangle,
|
|
@@ -35404,7 +35403,7 @@ function zr() {
|
|
|
35404
35403
|
} : r != null && r.styleUrl ? {
|
|
35405
35404
|
style: r.styleUrl,
|
|
35406
35405
|
offline: r.offline
|
|
35407
|
-
} : Nr((n =
|
|
35406
|
+
} : Nr((n = fe()) == null || (n = n.properties) == null || (n = n.config) == null ? void 0 : n.style, b.backgroundColor) === "dark" ? Fr : Pr;
|
|
35408
35407
|
}
|
|
35409
35408
|
//#endregion
|
|
35410
35409
|
//#region src/components/Maplibre/useDimming.ts
|
|
@@ -35418,11 +35417,11 @@ function Vr(e, t) {
|
|
|
35418
35417
|
(t = n.current) == null || t.setTarget(a, e), (i = r.current) == null || i.setTarget(a, e);
|
|
35419
35418
|
}, []);
|
|
35420
35419
|
return (0, R.useEffect)(() => {
|
|
35421
|
-
let i =
|
|
35422
|
-
Ir(e.current, t *
|
|
35423
|
-
}), a =
|
|
35420
|
+
let i = Be((t) => {
|
|
35421
|
+
Ir(e.current, t * ke);
|
|
35422
|
+
}), a = Be((e) => {
|
|
35424
35423
|
let n = t.current;
|
|
35425
|
-
n &&
|
|
35424
|
+
n && ze(n, e * 1) && A(n.rootLayer);
|
|
35426
35425
|
});
|
|
35427
35426
|
return n.current = i, r.current = a, () => {
|
|
35428
35427
|
i.stop(), a.stop(), n.current = null, r.current = null;
|
|
@@ -35433,7 +35432,7 @@ function Vr(e, t) {
|
|
|
35433
35432
|
applyDimmingTarget: i,
|
|
35434
35433
|
handleMapDimLayerReady: (0, R.useCallback)((e) => {
|
|
35435
35434
|
var t, r;
|
|
35436
|
-
Ir(e, ((t = (r = n.current) == null ? void 0 : r.getValue()) == null ? +!!Br() : t) *
|
|
35435
|
+
Ir(e, ((t = (r = n.current) == null ? void 0 : r.getValue()) == null ? +!!Br() : t) * ke);
|
|
35437
35436
|
}, [])
|
|
35438
35437
|
};
|
|
35439
35438
|
}
|
|
@@ -35465,7 +35464,7 @@ var Ur = "expofp-journey-connector", Wr = "expofp-journey-connector-casing", Gr
|
|
|
35465
35464
|
};
|
|
35466
35465
|
function ri(e, t) {
|
|
35467
35466
|
var n;
|
|
35468
|
-
let r =
|
|
35467
|
+
let r = be(e.from, e.to, $r), i = (n = r[Math.floor(r.length / 2)]) == null ? e.from : n;
|
|
35469
35468
|
return {
|
|
35470
35469
|
type: "FeatureCollection",
|
|
35471
35470
|
features: [{
|
|
@@ -35481,7 +35480,7 @@ function ri(e, t) {
|
|
|
35481
35480
|
type: "Point",
|
|
35482
35481
|
coordinates: ei(i)
|
|
35483
35482
|
},
|
|
35484
|
-
properties: { distance:
|
|
35483
|
+
properties: { distance: Fe(e.distanceMeters, t) }
|
|
35485
35484
|
}]
|
|
35486
35485
|
};
|
|
35487
35486
|
}
|
|
@@ -35564,7 +35563,7 @@ function ii(e, t) {
|
|
|
35564
35563
|
a(), (t = r.getSource(Ur)) == null || t.setData(ri(e, i));
|
|
35565
35564
|
}, c = () => {
|
|
35566
35565
|
var e, t;
|
|
35567
|
-
return (e = (t = ti(
|
|
35566
|
+
return (e = (t = ti(I())) == null ? void 0 : t.connector) == null ? null : e;
|
|
35568
35567
|
}, l = () => s(c());
|
|
35569
35568
|
r.on("style.load", l), s(c());
|
|
35570
35569
|
let u = p(c, s, { equals: f.structural });
|
|
@@ -35587,7 +35586,7 @@ function ai(e, t) {
|
|
|
35587
35586
|
e.originalEvent && (r = !0, (t = (n = window).__resett) == null || t.call(n));
|
|
35588
35587
|
}, a = () => {
|
|
35589
35588
|
var e, t;
|
|
35590
|
-
|
|
35589
|
+
De(), r && (r = !1, (e = (t = window).__resett) == null || e.call(t));
|
|
35591
35590
|
};
|
|
35592
35591
|
return n.on("movestart", i), n.on("moveend", a), () => {
|
|
35593
35592
|
n.off("movestart", i), n.off("moveend", a);
|
|
@@ -35664,7 +35663,7 @@ function xi(e, t, n) {
|
|
|
35664
35663
|
if (!v()) return;
|
|
35665
35664
|
let o = t.current;
|
|
35666
35665
|
if (!e || !o || !n) return;
|
|
35667
|
-
let { gpsConfig: s } = n, c = /* @__PURE__ */ new Set(), l = window.devicePixelRatio || 1, u = k(40, l, ((a = b.colors) == null || (a = a.booths) == null ? void 0 : a.selected) || "#3b6ef5"), d = D(N, 40, l).tipOffset, f = D(w, 40, l).tipOffset, m = Math.ceil(40 * l), h = new ImageData(m, m), g = (e) =>
|
|
35666
|
+
let { gpsConfig: s } = n, c = /* @__PURE__ */ new Set(), l = window.devicePixelRatio || 1, u = k(40, l, ((a = b.colors) == null || (a = a.booths) == null ? void 0 : a.selected) || "#3b6ef5"), d = D(N, 40, l).tipOffset, f = D(w, 40, l).tipOffset, m = Math.ceil(40 * l), h = new ImageData(m, m), g = (e) => me(e.center.x, e.center.y, s), _ = (e, t) => {
|
|
35668
35667
|
o.hasImage(e) && o.removeImage(e), o.addImage(e, t, { pixelRatio: l }), c.add(e);
|
|
35669
35668
|
}, y = (e) => {
|
|
35670
35669
|
let t = P.poiMarkerStore.markers, n = new Set(t.map((e) => bi(e.boothId)));
|
|
@@ -35774,7 +35773,7 @@ function xi(e, t, n) {
|
|
|
35774
35773
|
});
|
|
35775
35774
|
}, E = () => {
|
|
35776
35775
|
if (!o.getLayer(fi)) return;
|
|
35777
|
-
let e = Br() ? 1 -
|
|
35776
|
+
let e = Br() ? 1 - ke : 1;
|
|
35778
35777
|
o.setPaintProperty(fi, "circle-opacity", e), o.setPaintProperty(fi, "circle-stroke-opacity", e), o.setPaintProperty(pi, "text-opacity", e), o.setPaintProperty(mi, "icon-opacity", e), o.setPaintProperty(hi, "icon-opacity", e);
|
|
35779
35778
|
}, O = (e = !1) => {
|
|
35780
35779
|
var t;
|
|
@@ -35851,12 +35850,12 @@ function Si(e, t) {
|
|
|
35851
35850
|
[r, i],
|
|
35852
35851
|
[0, i]
|
|
35853
35852
|
]) {
|
|
35854
|
-
let r =
|
|
35853
|
+
let r = xe(e.unproject([n, o]), t);
|
|
35855
35854
|
if (!r) break;
|
|
35856
35855
|
a.push(r);
|
|
35857
35856
|
}
|
|
35858
35857
|
if (a.length === 4) return ne.fromPoints(a);
|
|
35859
|
-
let o =
|
|
35858
|
+
let o = xe(e.getCenter(), t);
|
|
35860
35859
|
return o ? new ne(o.x, o.y) : null;
|
|
35861
35860
|
}
|
|
35862
35861
|
//#endregion
|
|
@@ -36145,11 +36144,11 @@ function Ca(e, t, n) {
|
|
|
36145
36144
|
return s.has(e.id) ? (t = o.get(e.id)) == null ? void 0 : t.layer : void 0;
|
|
36146
36145
|
}, u = new Map(a.map((e) => {
|
|
36147
36146
|
let t = X(e, o.get(e.id));
|
|
36148
|
-
return [e.id,
|
|
36147
|
+
return [e.id, me(t.x, t.y, i)];
|
|
36149
36148
|
})), d = {
|
|
36150
36149
|
type: "FeatureCollection",
|
|
36151
36150
|
features: a.map((e) => {
|
|
36152
|
-
let t = e.contour.map((e) =>
|
|
36151
|
+
let t = e.contour.map((e) => me(e.x, e.y, i));
|
|
36153
36152
|
return t.length > 0 && t.push(t[0]), {
|
|
36154
36153
|
type: "Feature",
|
|
36155
36154
|
geometry: {
|
|
@@ -36163,7 +36162,7 @@ function Ca(e, t, n) {
|
|
|
36163
36162
|
};
|
|
36164
36163
|
})
|
|
36165
36164
|
}, f = () => {
|
|
36166
|
-
let e = P.venueStore.focusedVenueId, t = new Map([...a].sort((t, n) => Number(t.id !== e) - Number(n.id !== e) || t.order - n.order ||
|
|
36165
|
+
let e = P.venueStore.focusedVenueId, t = new Map([...a].sort((t, n) => Number(t.id !== e) - Number(n.id !== e) || t.order - n.order || _e(t.id, n.id)).map((e, t) => [e.id, t]));
|
|
36167
36166
|
return {
|
|
36168
36167
|
type: "FeatureCollection",
|
|
36169
36168
|
features: a.map((e) => {
|
|
@@ -36400,7 +36399,7 @@ function Ca(e, t, n) {
|
|
|
36400
36399
|
}));
|
|
36401
36400
|
};
|
|
36402
36401
|
r.on("click", N), r.on("mousemove", ne), h.set((e, t) => {
|
|
36403
|
-
let n = r.project(
|
|
36402
|
+
let n = r.project(me(e, t, i));
|
|
36404
36403
|
return !!M(n.x, n.y);
|
|
36405
36404
|
}), j();
|
|
36406
36405
|
let re = p(() => P.venueStore.venues.map((e) => `${e.id}:${k(O(e))}`).join(","), j), ie = p(() => P.venueStore.focusedVenueId, () => {
|
|
@@ -36424,11 +36423,11 @@ function Ca(e, t, n) {
|
|
|
36424
36423
|
function wa(e, t) {
|
|
36425
36424
|
(0, R.useEffect)(() => {
|
|
36426
36425
|
if (!e) return;
|
|
36427
|
-
let n =
|
|
36426
|
+
let n = ve({
|
|
36428
36427
|
scene: e,
|
|
36429
36428
|
store: P,
|
|
36430
36429
|
canvas: t
|
|
36431
|
-
}), r =
|
|
36430
|
+
}), r = Ae({ scene: e });
|
|
36432
36431
|
return () => {
|
|
36433
36432
|
n(), r();
|
|
36434
36433
|
};
|
|
@@ -36620,7 +36619,7 @@ function Ka() {
|
|
|
36620
36619
|
}
|
|
36621
36620
|
var Z = () => F.overlayPosition === "bottom", Q = se(function({ viewMode: e }) {
|
|
36622
36621
|
var t;
|
|
36623
|
-
let [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null), d = (0, R.useRef)(null), m = (0, R.useMemo)(() => Rn(), []), h = (0, R.useMemo)(() =>
|
|
36622
|
+
let [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null), d = (0, R.useRef)(null), m = (0, R.useMemo)(() => Rn(), []), h = (0, R.useMemo)(() => Ee({
|
|
36624
36623
|
layerViewbox: P.layerStore.viewboxRectangle,
|
|
36625
36624
|
explicitArea: S() ? M() : null,
|
|
36626
36625
|
layerRectangle: P.layerStore.rectangle,
|
|
@@ -36628,7 +36627,7 @@ var Z = () => F.overlayPosition === "bottom", Q = se(function({ viewMode: e }) {
|
|
|
36628
36627
|
svgArea: M()
|
|
36629
36628
|
}), [n]), g = P.venueStore.campusBounds, v = P.venueStore.campusBoundsAuthored, y = g == null ? h.rect : g, C = (0, R.useMemo)(() => {
|
|
36630
36629
|
if (!m) return null;
|
|
36631
|
-
let e = g ||
|
|
36630
|
+
let e = g || Se(h.source) ? 0 : we(y, M()), t = In(g ? Cn(v) : 0);
|
|
36632
36631
|
e && F.screenSize && (t.left += F.screenSize.width * e, t.right += F.screenSize.width * e, t.top += F.screenSize.height * e, t.bottom += F.screenSize.height * e);
|
|
36633
36632
|
let n = F.screenSize ? Fn(y, m.gpsConfig, m.bearing, {
|
|
36634
36633
|
width: F.screenSize.width,
|
|
@@ -36682,13 +36681,13 @@ var Z = () => F.overlayPosition === "bottom", Q = se(function({ viewMode: e }) {
|
|
|
36682
36681
|
(0, R.useEffect)(() => {
|
|
36683
36682
|
ee.current = N;
|
|
36684
36683
|
}, [N]), (0, R.useEffect)(() => {
|
|
36685
|
-
if (N) return
|
|
36684
|
+
if (N) return Ce(N), () => Ce(void 0);
|
|
36686
36685
|
}, [N]);
|
|
36687
36686
|
let { mapDimAnimatorRef: ne, venueDimAnimatorRef: ie, applyDimmingTarget: ae, handleMapDimLayerReady: oe } = Vr(o, ee);
|
|
36688
36687
|
(0, R.useEffect)(() => {
|
|
36689
36688
|
if (!m) return;
|
|
36690
36689
|
let e = !1;
|
|
36691
|
-
Ka(),
|
|
36690
|
+
Ka(), Ne().then(({ layers: t, cleanup: n }) => {
|
|
36692
36691
|
if (e) {
|
|
36693
36692
|
n();
|
|
36694
36693
|
return;
|
|
@@ -36727,19 +36726,19 @@ var Z = () => F.overlayPosition === "bottom", Q = se(function({ viewMode: e }) {
|
|
|
36727
36726
|
var e;
|
|
36728
36727
|
return (e = k.current.pitch) == null ? 0 : e;
|
|
36729
36728
|
});
|
|
36730
|
-
d.current = i, P.maplibreStore.setCameraPort(i), P.fp.getCenterCoordinates = () =>
|
|
36729
|
+
d.current = i, P.maplibreStore.setCameraPort(i), P.fp.getCenterCoordinates = () => Oe(s.current), ae({ immediate: !0 }), te(), P.layerStore.layersLoaded = !0, P.fp.onFpConfigured && P.fp.onFpConfigured(), F.sceneDefReady = !0, t();
|
|
36731
36730
|
}, [ae, m]);
|
|
36732
36731
|
(0, R.useEffect)(() => {
|
|
36733
36732
|
k.current = O, Rr(o.current, O);
|
|
36734
36733
|
}, [O]), (0, R.useEffect)(() => {
|
|
36735
36734
|
let e = P.venueStore.cameraRequest;
|
|
36736
36735
|
i && m && o.current && e && sr(o.current, m, e);
|
|
36737
|
-
}, [m, i]), ai(i, o), wa(N, s), Ca(i, o, m), xi(i, o, m), ii(i, o), si(N, o, m), mr(o, m, N), Vi(o, m, i),
|
|
36736
|
+
}, [m, i]), ai(i, o), wa(N, s), Ca(i, o, m), xi(i, o, m), ii(i, o), si(N, o, m), mr(o, m, N), Vi(o, m, i), Le({
|
|
36738
36737
|
enabled: P.layerStore.layersLoaded && F.buildRoute,
|
|
36739
36738
|
scene: N == null ? void 0 : N
|
|
36740
36739
|
});
|
|
36741
36740
|
let ce = (t = x.busRoutes) != null && t;
|
|
36742
|
-
|
|
36741
|
+
Me({
|
|
36743
36742
|
permission: P.layerStore.layersLoaded && ce,
|
|
36744
36743
|
scene: N == null ? void 0 : N,
|
|
36745
36744
|
dataJsonUrl: `https://${Ua}/v1/routes?expo=${b.EXPO}`,
|
|
@@ -36760,7 +36759,7 @@ var Z = () => F.overlayPosition === "bottom", Q = se(function({ viewMode: e }) {
|
|
|
36760
36759
|
onMapDimLayerReady: oe,
|
|
36761
36760
|
onMapLoadError: le,
|
|
36762
36761
|
onPointerMissed: re,
|
|
36763
|
-
children: [/* @__PURE__ */ (0, K.jsx)(
|
|
36762
|
+
children: [/* @__PURE__ */ (0, K.jsx)(Ie, {}), u && /* @__PURE__ */ (0, K.jsx)(Pe, { canvas: s })]
|
|
36764
36763
|
}, ue);
|
|
36765
36764
|
});
|
|
36766
36765
|
//#endregion
|