@expofp/floorplan 3.10.2 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-Bj5GinNb.js → Button-w3em_lzh.js} +5 -5
- package/dist/browser/{CookieConsent-vekYv-WL.js → CookieConsent-DGuzCkb_.js} +7 -7
- package/dist/browser/{Debug-B8Z6UAk7.js → Debug-C0bAbDfy.js} +7 -7
- package/dist/browser/{Demo-DxKBQPXs.js → Demo-Bjaxry3H.js} +9 -9
- package/dist/browser/{Free-xJ581Tn5.js → Free-DYRe3qzH.js} +9 -9
- package/dist/browser/{Gallery-BCLvsYMq.js → Gallery-Mh_fak51.js} +9 -9
- package/dist/browser/{GpsLoader-D8b4YGWa.js → GpsLoader-BUFe8XAp.js} +9 -9
- package/dist/browser/{KioskStore-iac7BFkc.js → KioskStore-CG4obHqM.js} +3 -3
- package/dist/browser/{MaplibreAdapter-hBzzKWxy.js → MaplibreAdapter-_7g233g0.js} +12 -12
- package/dist/browser/{ModalContainer-CNFkEgVO.js → ModalContainer-q8ktZG4M.js} +10 -10
- package/dist/browser/{PermissionNotice-BjNUzq-I.js → PermissionNotice-CZPYZBEq.js} +6 -6
- package/dist/browser/{SetKioskMode-rZPgTzX2.js → SetKioskMode-Bstomyjg.js} +8 -8
- package/dist/browser/{ShowKiosk-C0-HDdLS.js → ShowKiosk-CSSaeauJ.js} +10 -10
- package/dist/browser/{TouchHand-BpAIvJuD.js → TouchHand-DKlAqQxo.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-B8HWceZY.js → ViewerMenuPanel-CDZU9m-C.js} +9 -9
- package/dist/browser/{add-debug-secret-listener-DrG0zrQz.js → add-debug-secret-listener-CpUZyE-i.js} +1 -1
- package/dist/browser/{boolean-editor-CksHtQqy.js → boolean-editor-BXtJr0-a.js} +9 -9
- package/dist/browser/{bootIntercom-DIY2vGKD.js → bootIntercom-BdpTIgRq.js} +2 -2
- package/dist/browser/{booth-by-xy-CB4TcAKe.js → booth-by-xy-Cvr_M6ay.js} +121 -108
- package/dist/browser/{browser-BJI7T84p.js → browser-D0zb6N8t.js} +2 -2
- package/dist/browser/bundle.json +61 -61
- package/dist/browser/{classnames-DY5QZHM2.js → classnames-njarKVkv.js} +2 -2
- package/dist/browser/{client-BKj8O-3N.js → client-DO32NX2U.js} +4 -4
- package/dist/browser/{components-C9T4gWSC.js → components-Ag3tOxoq.js} +38 -38
- package/dist/browser/{debug-overlay-oxl07sGQ.js → debug-overlay-BDntWcO3.js} +10 -10
- package/dist/browser/{debug-ui-vcgITEra.js → debug-ui-eQiNXjgN.js} +6 -6
- package/dist/browser/{dist-DQ-MzacE.js → dist-B-HOjLa3.js} +3 -3
- package/dist/browser/{dist-B6a_6LWa.js → dist-BPabiv1-.js} +6 -6
- package/dist/browser/{dist-BD71uIJa.js → dist-CICgVS_K.js} +5 -5
- package/dist/browser/{efp-debug-init-DeppnUIb.js → efp-debug-init-DJV2mEAv.js} +2 -2
- package/dist/browser/{enum-editor-CeBF-egH.js → enum-editor-CR96q1IA.js} +11 -11
- package/dist/browser/{es5-DyEOE9h8.js → es5-DKJycZ_9.js} +2 -2
- package/dist/browser/{event-not-found--rNrnsfb.js → event-not-found-qCBr__j7.js} +1 -1
- package/dist/browser/{exports-CQRMT27z.js → exports-DEfrHp-m.js} +1 -1
- package/dist/browser/{favicon-Y_DfJIgc.js → favicon-Ds8_0IKZ.js} +1 -1
- package/dist/browser/{fetch-retry.umd-mDEk7YNi.js → fetch-retry.umd-DA_h-YbX.js} +2 -2
- package/dist/browser/{flex-gMXInosq.js → flex-De82Cl1E.js} +5 -5
- package/dist/browser/{floorplan.loader-CKHHfoqW.js → floorplan.loader-B5OmVKte.js} +11 -11
- package/dist/browser/{floorplan.ready-Dk5rTB4-.js → floorplan.ready-DR3pBgxB.js} +12 -12
- package/dist/browser/{fuse-C0XgkQam.js → fuse-dk3wBn-g.js} +2 -2
- package/dist/browser/{i18n-DDp2WKLS.js → i18n-CmTA9oOx.js} +4 -4
- package/dist/browser/index.js +12 -12
- package/dist/browser/{index.module-DJ1o-lSs.js → index.module-QD1fDWFR.js} +4 -4
- package/dist/browser/{is-webview-DSeLj16c.js → is-webview-CoF8JIKV.js} +1 -1
- package/dist/browser/{jsx-runtime-4SB5tKoZ.js → jsx-runtime-BerzwYzE.js} +2 -2
- package/dist/browser/{lib-CNsibyKE.js → lib-Q551A5uv.js} +4 -4
- package/dist/browser/{loadImage-m5qxmKm8.js → loadImage-DMj35sJO.js} +4 -4
- package/dist/browser/{logDeviceInfo-DJbQFFfl.js → logDeviceInfo-DRvCCtTx.js} +9 -9
- package/dist/browser/{main-Ci70zd7U.js → main-BizUl9-0.js} +1 -1
- package/dist/browser/{mobx-85FEI3nE.js → mobx-TeCP8VzM.js} +4 -4
- package/dist/browser/{particles.min-Cjclve40.js → particles.min-DG9oSZrY.js} +2 -2
- package/dist/browser/{prop-types-O5uO9swn.js → prop-types-vg_ebZbt.js} +2 -2
- package/dist/browser/{react-938H1sny.js → react-Du8DS_tM.js} +2 -2
- package/dist/browser/{react-dom-BB5-5CwA.js → react-dom-B7g3b-V3.js} +3 -3
- package/dist/browser/{reset-all-settings-C3UGYA7h.js → reset-all-settings-Cd_BUK-W.js} +7 -7
- package/dist/browser/{rolldown-runtime-D_bOcK0P.js → rolldown-runtime-DvCIlsWE.js} +1 -1
- package/dist/browser/{settings-CuvIoKLw.js → settings-DInlzLHA.js} +2 -2
- package/dist/browser/{settings-item-jhTAtSrk.js → settings-item-Nqsx-eMu.js} +6 -6
- package/dist/browser/{store-g-LcmXc-.js → store-Bp8hCuMJ.js} +12 -12
- package/dist/browser/{string-editor-CjVQpF6U.js → string-editor-BwD_WLY1.js} +7 -7
- package/dist/browser/{theme-DxKuEQUA.js → theme-D0j6GDvn.js} +8 -8
- package/dist/browser/{ui-BMAImlSF.js → ui-Ci4hN3Oq.js} +8 -8
- package/dist/browser/{useRenderTarget-DL0u3FKy.js → useRenderTarget-w66c2Pzm.js} +4 -4
- package/dist/esm/components/Map/booth-by-xy.d.ts +2 -2
- package/dist/esm/components/Map/booth-by-xy.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.d.ts +28 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.js +1 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
- package/dist/esm/components/Maplibre/useRendererEvents.js +1 -1
- package/dist/esm/data/Flags.d.ts +4 -0
- package/dist/esm/store/RootStore.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,56 +1,62 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.11.1" };
|
|
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] = "199da5e5-2ecb-4940-83cc-79a63435badf", e._sentryDebugIdIdentifier = "sentry-dbid-199da5e5-2ecb-4940-83cc-79a63435badf");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./loadImage-
|
|
12
|
-
import { M as r, lt as i, v as a } from "./i18n-
|
|
13
|
-
import { $t as o, At as s, Ct as c, Dt as l, Et as u, F as d, I as f, It as p, Kt as m, L as h, Lt as g, Nt as _, R as v, Tt as y, Ut as b, Xt as x, Yt as S, Zt as C, an as w, bt as T, dt as E, en as D, g as O, i as k, in as ee, jt as A, kt as j, lt as M, mt as te, nn as N, o as P, pt as ne, rn as re, s as ie, sn as ae, t as F, tn as oe, wt as se, xt as I, z as ce } from "./store-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DvCIlsWE.js";
|
|
10
|
+
import { t } from "./react-Du8DS_tM.js";
|
|
11
|
+
import { t as n } from "./loadImage-DMj35sJO.js";
|
|
12
|
+
import { M as r, lt as i, v as a } from "./i18n-CmTA9oOx.js";
|
|
13
|
+
import { $t as o, At as s, Ct as c, Dt as l, Et as u, F as d, I as f, It as p, Kt as m, L as h, Lt as g, Nt as _, R as v, Tt as y, Ut as b, Xt as x, Yt as S, Zt as C, an as w, bt as T, dt as E, en as D, g as O, i as k, in as ee, jt as A, kt as j, lt as M, mt as te, nn as N, o as P, pt as ne, rn as re, s as ie, sn as ae, t as F, tn as oe, wt as se, xt as I, z as ce } from "./store-Bp8hCuMJ.js";
|
|
14
14
|
//#region src/components/Map/traffic/trafficLayers.ts
|
|
15
|
-
var le = "traffic_route", ue = "traffic_route_stop",
|
|
16
|
-
function
|
|
15
|
+
var le = "traffic_route", ue = "traffic_route_stop", L = "traffic_vehicles", de = "build_route_lines", fe = "build_route_dots", pe = 5;
|
|
16
|
+
function me() {
|
|
17
17
|
let e = [];
|
|
18
|
-
for (let t = 0; t <
|
|
19
|
-
name:
|
|
18
|
+
for (let t = 0; t < pe; t++) e.push({
|
|
19
|
+
name: he(t),
|
|
20
20
|
children: []
|
|
21
21
|
}), e.push({
|
|
22
|
-
name:
|
|
22
|
+
name: ge(t),
|
|
23
23
|
children: [],
|
|
24
24
|
interactive: !0
|
|
25
25
|
});
|
|
26
26
|
return e.push({
|
|
27
|
-
name:
|
|
27
|
+
name: L,
|
|
28
28
|
children: [],
|
|
29
29
|
interactive: !0
|
|
30
30
|
}), e.push({
|
|
31
|
-
name:
|
|
31
|
+
name: de,
|
|
32
32
|
children: []
|
|
33
33
|
}), e.push({
|
|
34
|
-
name:
|
|
34
|
+
name: fe,
|
|
35
35
|
children: [],
|
|
36
36
|
interactive: !0
|
|
37
37
|
}), e;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function he(e) {
|
|
40
40
|
return `${le}_${e + 1}`;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ge(e) {
|
|
43
43
|
return `${ue}_${e + 1}`;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function _e() {
|
|
46
46
|
return RegExp(`^${le}_\\d+$`);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function ve() {
|
|
49
49
|
return RegExp(`^${ue}_\\d+$`);
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
|
+
//#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
|
|
53
|
+
var ye = /* @__PURE__ */ e(x(), 1);
|
|
54
|
+
function be(e) {
|
|
55
|
+
return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
52
58
|
//#region src/components/Map/drawing/config/config-booth-badge.ts
|
|
53
|
-
var
|
|
59
|
+
var xe = .5, Se = .3, Ce = 15, we = 24, Te = 30, Ee = 12, De = .8, Oe = document.createElement("canvas").getContext("2d");
|
|
54
60
|
function ke(e) {
|
|
55
61
|
return e.length <= Ce ? e : e.slice(0, Ce - 1) + "…";
|
|
56
62
|
}
|
|
@@ -89,18 +95,18 @@ function Me(e) {
|
|
|
89
95
|
}
|
|
90
96
|
return new N(t, n);
|
|
91
97
|
}
|
|
92
|
-
function
|
|
98
|
+
function R(e, t, n) {
|
|
93
99
|
return n.containsPoint({
|
|
94
100
|
x: e,
|
|
95
101
|
y: t
|
|
96
102
|
});
|
|
97
103
|
}
|
|
98
104
|
function Ne(e, t, n, r, i, a, o) {
|
|
99
|
-
if (!e.length || !
|
|
105
|
+
if (!e.length || !R(n, r, t)) return o;
|
|
100
106
|
let s = 0, c = o;
|
|
101
107
|
for (let e = 0; e < 10; e++) {
|
|
102
108
|
let e = (s + c) / 2, o = i * e, l = a * e;
|
|
103
|
-
|
|
109
|
+
R(n + o, r, t) && R(n, r + l, t) && R(n + o, r + l, t) ? s = e : c = e;
|
|
104
110
|
}
|
|
105
111
|
return s;
|
|
106
112
|
}
|
|
@@ -117,7 +123,7 @@ function Fe(e, t, n, r, i) {
|
|
|
117
123
|
if (e.has(s)) continue;
|
|
118
124
|
e.add(s);
|
|
119
125
|
let c = t[0] + r, l = t[1] + r;
|
|
120
|
-
if (
|
|
126
|
+
if (R(c, l, n)) {
|
|
121
127
|
let e = c - a.min.x + (l - a.min.y);
|
|
122
128
|
e < o && (o = e, i = {
|
|
123
129
|
x: c,
|
|
@@ -136,17 +142,17 @@ function Fe(e, t, n, r, i) {
|
|
|
136
142
|
y: s
|
|
137
143
|
};
|
|
138
144
|
}
|
|
139
|
-
function
|
|
145
|
+
function z(e) {
|
|
140
146
|
return e && e !== "none" ? e : void 0;
|
|
141
147
|
}
|
|
142
148
|
function Ie(e) {
|
|
143
149
|
var t;
|
|
144
|
-
let n =
|
|
145
|
-
return ((t = e.paths) == null ? void 0 : t.length) > 1 &&
|
|
150
|
+
let n = z(e.borderColor) || z(ae.boothBorderColor) || ae.colors.booths.default;
|
|
151
|
+
return ((t = e.paths) == null ? void 0 : t.length) > 1 && z(e.paths[e.paths.length - 1].color) || n;
|
|
146
152
|
}
|
|
147
153
|
function Le(e, t) {
|
|
148
154
|
var n;
|
|
149
|
-
let r = ke(t.title || t.name), i = Ie(t), o = O((0,
|
|
155
|
+
let r = ke(t.title || t.name), i = Ie(t), o = O((0, ye.default)(i).hex()), s = window.devicePixelRatio || 1, l = ne();
|
|
150
156
|
Oe.font = g(Te, l);
|
|
151
157
|
let u = Oe.measureText(r).width, d = Math.ceil(u + Ee * 2), f = (t.borderWidth || F.borderWidth) / 2, p = d * De, m = 54 * De, h = (n = t.rotate) == null ? 0 : n, _ = t.rect.size.width, v = t.rect.size.height, b = Math.min(_ > 0 ? _ * xe / p : Infinity, v > 0 ? v * Se / m : Infinity), x = Ae(t), S = Me(x), { x: C, y: w } = Fe(t, x, S, f, h), T = Ne(x, S, C, w, p, m, b), E = (e, t) => {
|
|
152
158
|
let n = e / 2, r = t / 2;
|
|
@@ -187,11 +193,20 @@ function Le(e, t) {
|
|
|
187
193
|
};
|
|
188
194
|
}
|
|
189
195
|
function Re(e, t, n) {
|
|
190
|
-
if (S.hideExhibitorBoothNumber) return null;
|
|
191
196
|
let r = [], i = [];
|
|
192
|
-
for (let t of n)
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
for (let t of n) {
|
|
198
|
+
var a;
|
|
199
|
+
if (t instanceof b && be({
|
|
200
|
+
hideExhibitorBoothNumber: S.hideExhibitorBoothNumber,
|
|
201
|
+
hideBoothBadges: (a = S.flags) == null ? void 0 : a.hideBoothBadges,
|
|
202
|
+
hideLogoInBooth: ie.hideLogoInBooth,
|
|
203
|
+
noLabels: t.noLabels,
|
|
204
|
+
hasExhibitors: t.exhibitors.length > 0,
|
|
205
|
+
hasLogoInBooth: t.exhibitors.some((e) => e.logoInBooth && e.logo)
|
|
206
|
+
})) {
|
|
207
|
+
let { bg: n, text: a } = Le(e, t);
|
|
208
|
+
r.push(n), i.push(a);
|
|
209
|
+
}
|
|
195
210
|
}
|
|
196
211
|
return r.length ? {
|
|
197
212
|
name: `${t}:badges`,
|
|
@@ -362,7 +377,7 @@ function We(e) {
|
|
|
362
377
|
...c,
|
|
363
378
|
...u ? [u] : [],
|
|
364
379
|
...l,
|
|
365
|
-
...
|
|
380
|
+
...me(),
|
|
366
381
|
i,
|
|
367
382
|
a,
|
|
368
383
|
r,
|
|
@@ -374,7 +389,7 @@ function We(e) {
|
|
|
374
389
|
}
|
|
375
390
|
//#endregion
|
|
376
391
|
//#region src/components/Map/traffic/UpdateQueue.ts
|
|
377
|
-
var
|
|
392
|
+
var B = /* @__PURE__ */ e(t(), 1), Ge = class {
|
|
378
393
|
constructor() {
|
|
379
394
|
this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
|
|
380
395
|
}
|
|
@@ -416,7 +431,7 @@ var z = /* @__PURE__ */ e(t(), 1), Ge = class {
|
|
|
416
431
|
destroy() {
|
|
417
432
|
this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
|
|
418
433
|
}
|
|
419
|
-
},
|
|
434
|
+
}, V = 49, Ke = `hsl(257, 76%, ${V}%)`, qe = `hsl(339.903, 82%, ${V}%)`, Je = `hsl(257, 76%, ${Math.round(V * 1.82)}%)`, H = 4, Ye = H, Xe = "U", Ze = "R", Qe = "S", $e = "P", et = class {
|
|
420
435
|
constructor() {
|
|
421
436
|
this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
|
|
422
437
|
}
|
|
@@ -559,14 +574,14 @@ Enable/Disable Preview: Press ${$e}.
|
|
|
559
574
|
}
|
|
560
575
|
};
|
|
561
576
|
function tt({ enabled: e, rendererService: t }) {
|
|
562
|
-
let n = (0,
|
|
577
|
+
let n = (0, B.useRef)(!1), r = (0, B.useRef)(), i = (0, B.useMemo)(() => s(H, Ke), []), a = (0, B.useMemo)(() => s(H, qe), []), o = (0, B.useMemo)(() => new et(), []), c = (0, B.useRef)(new Ge()), d = (0, B.useMemo)(() => {
|
|
563
578
|
if (!t.scene) return {};
|
|
564
579
|
let e = t.scene.rootLayer.children;
|
|
565
580
|
return {
|
|
566
|
-
linesLayer: e.find((e) => e.name ===
|
|
567
|
-
pointsLayer: e.find((e) => e.name ===
|
|
581
|
+
linesLayer: e.find((e) => e.name === de),
|
|
582
|
+
pointsLayer: e.find((e) => e.name === fe)
|
|
568
583
|
};
|
|
569
|
-
}, [t.scene]), f = (0,
|
|
584
|
+
}, [t.scene]), f = (0, B.useCallback)(() => {
|
|
570
585
|
if (!(t != null && t.renderer) || !d || !i || !a) return;
|
|
571
586
|
let { linesLayer: e, pointsLayer: s } = d;
|
|
572
587
|
if (!e || !s) return;
|
|
@@ -594,7 +609,7 @@ function tt({ enabled: e, rendererService: t }) {
|
|
|
594
609
|
d,
|
|
595
610
|
i,
|
|
596
611
|
a
|
|
597
|
-
]), p = (0,
|
|
612
|
+
]), p = (0, B.useCallback)((e) => {
|
|
598
613
|
let t = e.key.toUpperCase();
|
|
599
614
|
o.execute(() => {
|
|
600
615
|
switch (t) {
|
|
@@ -612,7 +627,7 @@ function tt({ enabled: e, rendererService: t }) {
|
|
|
612
627
|
break;
|
|
613
628
|
}
|
|
614
629
|
});
|
|
615
|
-
}, [o, f]), m = (0,
|
|
630
|
+
}, [o, f]), m = (0, B.useCallback)(({ ptScale: e, sceneId: n }) => {
|
|
616
631
|
if (!u(n) || !(t != null && t.renderer) || !d) return;
|
|
617
632
|
let { pointsLayer: i } = d;
|
|
618
633
|
i && (r.current = e, o.execute(() => {
|
|
@@ -624,7 +639,7 @@ function tt({ enabled: e, rendererService: t }) {
|
|
|
624
639
|
t,
|
|
625
640
|
d,
|
|
626
641
|
o
|
|
627
|
-
]), h = (0,
|
|
642
|
+
]), h = (0, B.useCallback)(({ data: e }) => {
|
|
628
643
|
o.execute(() => {
|
|
629
644
|
let { point: t } = l(e);
|
|
630
645
|
o.add({
|
|
@@ -633,7 +648,7 @@ function tt({ enabled: e, rendererService: t }) {
|
|
|
633
648
|
}), o.select(o.points.length - 1), f();
|
|
634
649
|
});
|
|
635
650
|
}, [o, f]);
|
|
636
|
-
(0,
|
|
651
|
+
(0, B.useEffect)(() => {
|
|
637
652
|
let n = t.renderer;
|
|
638
653
|
if (!(!e || !n)) return r.current = t.scale, o.execute(() => {
|
|
639
654
|
o.restore(), f();
|
|
@@ -652,10 +667,10 @@ function tt({ enabled: e, rendererService: t }) {
|
|
|
652
667
|
}
|
|
653
668
|
//#endregion
|
|
654
669
|
//#region src/components/Map/traffic/useManageTraffic.ts
|
|
655
|
-
var
|
|
670
|
+
var U = 2, nt = U * 3.5, W = U * 12, rt = W * .7, it = 8, at = "transport_locations", ot = 150, G = "#a4aab6", st = 1e3, ct = 2e4, lt = 500;
|
|
656
671
|
function ut({ permission: e, rendererService: t, dataJsonUrl: i, websocketUrl: a }) {
|
|
657
|
-
let o = (0,
|
|
658
|
-
(0,
|
|
672
|
+
let o = (0, B.useRef)(window.devicePixelRatio), s = (0, B.useRef)(/* @__PURE__ */ new Map()), c = (0, B.useRef)(/* @__PURE__ */ new Map()), l = (0, B.useRef)(), d = (0, B.useRef)(), f = (0, B.useRef)(performance.now()), m = (0, B.useRef)(1), h = (0, B.useRef)(new Ge()), g = (0, B.useRef)(/* @__PURE__ */ new Map()), _ = (0, B.useRef)(), v = (0, B.useRef)(st), y = (0, B.useRef)(/* @__PURE__ */ new Map()), b = (0, B.useRef)();
|
|
673
|
+
(0, B.useEffect)(() => {
|
|
659
674
|
let x;
|
|
660
675
|
async function S() {
|
|
661
676
|
if (!(!e || !t.scene)) try {
|
|
@@ -680,19 +695,19 @@ function ut({ permission: e, rendererService: t, dataJsonUrl: i, websocketUrl: a
|
|
|
680
695
|
scale: window.devicePixelRatio
|
|
681
696
|
}));
|
|
682
697
|
});
|
|
683
|
-
let b =
|
|
698
|
+
let b = _e(), S = l.filter((e) => b.test(e.name)), w = ve(), E = l.filter((e) => w.test(e.name));
|
|
684
699
|
e.routes.slice(0, S.length).forEach(({ id: e, color: n, path: r, stops: i, hiddenPoints: a }, s) => {
|
|
685
700
|
g.current.set(e, r);
|
|
686
701
|
let c = S[s];
|
|
687
702
|
if (c) {
|
|
688
703
|
var l;
|
|
689
|
-
let e = new Map((l = a == null ? void 0 : a.map((e) => [
|
|
704
|
+
let e = new Map((l = a == null ? void 0 : a.map((e) => [Y(e), e])) == null ? [] : l);
|
|
690
705
|
for (let t = 1; t < r.length; t++) {
|
|
691
706
|
let i = r[t - 1], a = r[t];
|
|
692
|
-
e.has(
|
|
707
|
+
e.has(Y(i)) || e.has(Y(a)) || c.children.push({
|
|
693
708
|
points: [i, a],
|
|
694
709
|
color: n,
|
|
695
|
-
width:
|
|
710
|
+
width: U
|
|
696
711
|
});
|
|
697
712
|
}
|
|
698
713
|
c.children.length && h.current.add(() => t.update(c));
|
|
@@ -708,7 +723,7 @@ function ut({ permission: e, rendererService: t, dataJsonUrl: i, websocketUrl: a
|
|
|
708
723
|
}), u.children.length && h.current.add(() => t.update(u));
|
|
709
724
|
}
|
|
710
725
|
});
|
|
711
|
-
let D = l.find((e) => e.name ===
|
|
726
|
+
let D = l.find((e) => e.name === L), O = /* @__PURE__ */ new Map();
|
|
712
727
|
_.current = (e) => {
|
|
713
728
|
try {
|
|
714
729
|
let { ptScale: n, sceneId: r } = ft(e);
|
|
@@ -731,16 +746,16 @@ function ut({ permission: e, rendererService: t, dataJsonUrl: i, websocketUrl: a
|
|
|
731
746
|
}), a.forEach((e, t) => {
|
|
732
747
|
O.set(t, ht({
|
|
733
748
|
id: t,
|
|
734
|
-
width:
|
|
735
|
-
height:
|
|
749
|
+
width: W,
|
|
750
|
+
height: W,
|
|
736
751
|
color: e,
|
|
737
752
|
scale: window.devicePixelRatio
|
|
738
753
|
}));
|
|
739
|
-
}), O.set(
|
|
754
|
+
}), O.set(G, ht({
|
|
740
755
|
id: "orphan",
|
|
741
|
-
width:
|
|
742
|
-
height:
|
|
743
|
-
color:
|
|
756
|
+
width: W,
|
|
757
|
+
height: W,
|
|
758
|
+
color: G,
|
|
744
759
|
scale: window.devicePixelRatio
|
|
745
760
|
}));
|
|
746
761
|
let k = null;
|
|
@@ -762,21 +777,21 @@ function ut({ permission: e, rendererService: t, dataJsonUrl: i, websocketUrl: a
|
|
|
762
777
|
var c;
|
|
763
778
|
(c = l.get(e)) == null || c(), l.delete(e);
|
|
764
779
|
}
|
|
765
|
-
if (s && u.has(e) && u.has(
|
|
780
|
+
if (s && u.has(e) && u.has(q(e))) {
|
|
766
781
|
let n = u.get(e);
|
|
767
782
|
n.hidden = !0;
|
|
768
|
-
let r = u.get(
|
|
783
|
+
let r = u.get(q(e));
|
|
769
784
|
r.hidden = !0, p.add(() => t.update(n, r));
|
|
770
785
|
return;
|
|
771
786
|
}
|
|
772
787
|
if (y.current.set(e, performance.now()), !u.has(e)) {
|
|
773
|
-
let t = O.get(i) || O.get(
|
|
788
|
+
let t = O.get(i) || O.get(G), a = {
|
|
774
789
|
id: e,
|
|
775
790
|
source: t,
|
|
776
791
|
bounds: j(A(n, r, t.width, t.height, o.current, 0))
|
|
777
792
|
};
|
|
778
793
|
if (u.set(e, a), k) {
|
|
779
|
-
let t =
|
|
794
|
+
let t = q(e), i = {
|
|
780
795
|
id: t,
|
|
781
796
|
source: k,
|
|
782
797
|
bounds: j(A(n, r, k.width, k.height, o.current, 0))
|
|
@@ -786,11 +801,11 @@ function ut({ permission: e, rendererService: t, dataJsonUrl: i, websocketUrl: a
|
|
|
786
801
|
_ = !0;
|
|
787
802
|
return;
|
|
788
803
|
}
|
|
789
|
-
let f = u.get(e), m = u.get(
|
|
804
|
+
let f = u.get(e), m = u.get(q(e)), h = f.bounds.center, v = yt(h, {
|
|
790
805
|
x: n,
|
|
791
806
|
y: r
|
|
792
807
|
}, g.current.get(i));
|
|
793
|
-
if (v.reduce((e, t, n) => n === 0 ? e : e +
|
|
808
|
+
if (v.reduce((e, t, n) => n === 0 ? e : e + K(v[n - 1], t), 0) >= ot || document.hidden) gt({
|
|
794
809
|
rendererService: t,
|
|
795
810
|
updateQueue: p,
|
|
796
811
|
vehicle: f,
|
|
@@ -847,7 +862,7 @@ function ut({ permission: e, rendererService: t, dataJsonUrl: i, websocketUrl: a
|
|
|
847
862
|
if (n - t < e) return;
|
|
848
863
|
let o = s.current.get(a);
|
|
849
864
|
o && (o.hidden = !0, i.push(o), r.push(a));
|
|
850
|
-
let c =
|
|
865
|
+
let c = q(a), l = s.current.get(c);
|
|
851
866
|
l && (l.hidden = !0, i.push(l), r.push(c));
|
|
852
867
|
}), i.length && h.current.add(() => t.update(...i)), r.forEach((e) => y.current.delete(e));
|
|
853
868
|
}, e);
|
|
@@ -885,16 +900,16 @@ function ht({ id: e, width: t, height: n, color: r, scale: i }) {
|
|
|
885
900
|
let v = g, y = _ - u / 2 + o, b = y + l;
|
|
886
901
|
return h.shadowColor = "rgba(16, 24, 40, 0.2)", h.shadowBlur = d / 2, h.beginPath(), h.arc(v, y, o, Math.PI, 0, !1), h.bezierCurveTo(v + o, y + s * .3, v + c * o, b, v, b), h.bezierCurveTo(v - c * o, b, v - o, y + s * .3, v - o, y), h.closePath(), h.fillStyle = r, h.fill(), h.strokeStyle = "#FFFFFF", h.lineWidth = a, h.stroke(), h.restore(), m;
|
|
887
902
|
}
|
|
888
|
-
function
|
|
903
|
+
function K(e, t) {
|
|
889
904
|
return re(e, t);
|
|
890
905
|
}
|
|
891
|
-
function
|
|
906
|
+
function q(e) {
|
|
892
907
|
return `${e}_finery`;
|
|
893
908
|
}
|
|
894
909
|
function gt({ rendererService: e, updateQueue: t, vehicle: n, vehicleFinery: r, x: i, y: a, scale: o, angle: s }) {
|
|
895
910
|
n.bounds = j(A(i, a, n.source.width, n.source.height, o, s)), n.hidden = !1, r ? (r.bounds = j(A(i, a, r.source.width, r.source.height, o, w(e.angle))), r.hidden = !1, t.add(() => e.update(r, n))) : t.add(() => e.update(n));
|
|
896
911
|
}
|
|
897
|
-
function
|
|
912
|
+
function J(e, t, n) {
|
|
898
913
|
return {
|
|
899
914
|
x: e.x + (t.x - e.x) * n,
|
|
900
915
|
y: e.y + (t.y - e.y) * n
|
|
@@ -906,7 +921,7 @@ function _t(e, t) {
|
|
|
906
921
|
t: 0
|
|
907
922
|
};
|
|
908
923
|
for (let i = 0; i < t.length - 1; i++) {
|
|
909
|
-
let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f =
|
|
924
|
+
let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f = K(e, J(a, o, d));
|
|
910
925
|
f < n && (n = f, r = {
|
|
911
926
|
index: i,
|
|
912
927
|
t: d
|
|
@@ -915,9 +930,9 @@ function _t(e, t) {
|
|
|
915
930
|
return r;
|
|
916
931
|
}
|
|
917
932
|
function vt(e, t, n) {
|
|
918
|
-
let r =
|
|
933
|
+
let r = K(e, t), i = Math.max(2, Math.ceil(r / n) + 1), a = [];
|
|
919
934
|
for (let n = 0; n < i; n++) {
|
|
920
|
-
let r =
|
|
935
|
+
let r = J(e, t, n / (i - 1));
|
|
921
936
|
a.push(r);
|
|
922
937
|
}
|
|
923
938
|
return a;
|
|
@@ -925,9 +940,9 @@ function vt(e, t, n) {
|
|
|
925
940
|
function yt(e, t, n) {
|
|
926
941
|
if (!n || !n.length) return vt(e, t, 10);
|
|
927
942
|
let r = _t(e, n), i = _t(t, n), a = [], o = (e) => a.push(e);
|
|
928
|
-
r.index + 1 < n.length ? o(
|
|
943
|
+
r.index + 1 < n.length ? o(J(n[r.index], n[r.index + 1], r.t)) : o(n[r.index]);
|
|
929
944
|
for (let e = r.index + 1; e <= i.index && e < n.length; e++) o(n[e]);
|
|
930
|
-
return i.index + 1 < n.length ? o(
|
|
945
|
+
return i.index + 1 < n.length ? o(J(n[i.index], n[i.index + 1], i.t)) : o(n[i.index]), a;
|
|
931
946
|
}
|
|
932
947
|
function bt(e, t, n, r) {
|
|
933
948
|
if (e.length < 2) return () => {};
|
|
@@ -952,7 +967,7 @@ function bt(e, t, n, r) {
|
|
|
952
967
|
a && cancelAnimationFrame(a);
|
|
953
968
|
};
|
|
954
969
|
}
|
|
955
|
-
function
|
|
970
|
+
function Y(e) {
|
|
956
971
|
return `${e.x},${e.y}`;
|
|
957
972
|
}
|
|
958
973
|
//#endregion
|
|
@@ -1007,61 +1022,59 @@ function Et(e) {
|
|
|
1007
1022
|
}
|
|
1008
1023
|
//#endregion
|
|
1009
1024
|
//#region src/components/Map/booth-by-xy.ts
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
return new o(t - i / 2, n - r / 2, i, r);
|
|
1013
|
-
}
|
|
1014
|
-
var Y = /* @__PURE__ */ new Map(), X = [], Ot = [], Z = [], Q = /* @__PURE__ */ new Map(), $;
|
|
1015
|
-
function kt() {
|
|
1025
|
+
var X = [], Z = /* @__PURE__ */ new Map(), Q = null, $ = [];
|
|
1026
|
+
function Dt() {
|
|
1016
1027
|
let e = F.booths.filter((e) => e.visible && e.rect && e.rect.size.width > 0 && e.rect.size.height > 0);
|
|
1017
|
-
if (
|
|
1018
|
-
|
|
1019
|
-
let
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1028
|
+
if (X = [], Q = null, Z = /* @__PURE__ */ new Map(), $ = e.filter((e) => e.paths), !e.length) return;
|
|
1029
|
+
let t = [], n = Infinity, r = Infinity, a = -Infinity, s = -Infinity;
|
|
1030
|
+
for (let i of e) {
|
|
1031
|
+
let e = i.rotate ? new oe(i.rect.center, i.rect.size, i.rotate) : null, o = e ? e.bounds : i.rect;
|
|
1032
|
+
t.push({
|
|
1033
|
+
booth: i,
|
|
1034
|
+
shape: e == null ? i.rect : e,
|
|
1035
|
+
bounds: o
|
|
1036
|
+
}), o.min.x < n && (n = o.min.x), o.min.y < r && (r = o.min.y), o.max.x > a && (a = o.max.x), o.max.y > s && (s = o.max.y);
|
|
1023
1037
|
}
|
|
1024
|
-
let
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1038
|
+
let c = o.fromMinMax({
|
|
1039
|
+
x: n,
|
|
1040
|
+
y: r
|
|
1041
|
+
}, {
|
|
1042
|
+
x: a,
|
|
1043
|
+
y: s
|
|
1044
|
+
}), l = Math.ceil(c.size.width / 2), u = Math.ceil(c.size.height / 2);
|
|
1045
|
+
for (let e = 0; e < 2; e++) for (let n = 0; n < 2; n++) {
|
|
1046
|
+
let r = new o(c.min.x + e * l, c.min.y + n * u, l, u);
|
|
1047
|
+
X.push(r), Z.set(r, t.filter((e) => r.intersects(e.bounds)));
|
|
1030
1048
|
}
|
|
1031
|
-
i.log("hover
|
|
1049
|
+
i.log("hover segmentToHitAreas", Z);
|
|
1032
1050
|
}
|
|
1033
1051
|
a(() => [
|
|
1034
1052
|
F.booths,
|
|
1035
1053
|
k.loaded,
|
|
1036
1054
|
k.visible
|
|
1037
|
-
], () =>
|
|
1038
|
-
function
|
|
1055
|
+
], () => Dt());
|
|
1056
|
+
function Ot(e, t) {
|
|
1039
1057
|
let n = {
|
|
1040
1058
|
x: e,
|
|
1041
1059
|
y: t
|
|
1042
1060
|
}, r;
|
|
1043
|
-
r =
|
|
1044
|
-
let i =
|
|
1061
|
+
r = Q && Q.containsPoint(n) ? Q : X.find((e) => e.containsPoint(n)), r && (Q = r);
|
|
1062
|
+
let i = r ? Z.get(r) : void 0;
|
|
1045
1063
|
if (i) {
|
|
1046
|
-
let e = i.filter((e) => e.containsPoint(n));
|
|
1047
|
-
if (e.length)
|
|
1048
|
-
let t;
|
|
1049
|
-
t = e.length > 1 ? e.sort((e, t) => e.size.width - t.size.width)[0] : e[0];
|
|
1050
|
-
let n = Y.get(t);
|
|
1051
|
-
return n.visible ? n : null;
|
|
1052
|
-
}
|
|
1064
|
+
let e = i.filter((e) => e.booth.visible && e.shape.containsPoint(n));
|
|
1065
|
+
if (e.length) return (e.length > 1 ? e.sort((e, t) => e.booth.rect.area - t.booth.rect.area)[0] : e[0]).booth;
|
|
1053
1066
|
}
|
|
1054
|
-
for (let e of
|
|
1067
|
+
for (let e of $) if (e.visible) for (let t of e.paths) for (let r of m(t.index, k.mode === M.Default ? "" : e.layer.name)) {
|
|
1055
1068
|
let t = r.map((e) => ({
|
|
1056
1069
|
x: e[0],
|
|
1057
1070
|
y: e[1]
|
|
1058
1071
|
}));
|
|
1059
|
-
if (N.fromConvexRing(t).containsPoint(n)) return e
|
|
1072
|
+
if (N.fromConvexRing(t).containsPoint(n)) return e;
|
|
1060
1073
|
}
|
|
1061
1074
|
return null;
|
|
1062
1075
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return
|
|
1076
|
+
function kt(e, t) {
|
|
1077
|
+
return Ot(e, t);
|
|
1065
1078
|
}
|
|
1066
1079
|
//#endregion
|
|
1067
|
-
export { ut as a, Ve as c, wt as i, He as l, xt as n, tt as o, Ct as r, We as s,
|
|
1080
|
+
export { ut as a, Ve as c, wt as i, He as l, xt as n, tt as o, Ct as r, We as s, kt as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.11.1" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "65883f75-ab87-499b-a19c-5446ccdfc4a4", e._sentryDebugIdIdentifier = "sentry-dbid-65883f75-ab87-499b-a19c-5446ccdfc4a4");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { t as e } from "./rolldown-runtime-
|
|
9
|
+
import { t as e } from "./rolldown-runtime-DvCIlsWE.js";
|
|
10
10
|
//#region ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
|
|
11
11
|
var t = /* @__PURE__ */ e(((e, t) => {
|
|
12
12
|
var n = 1e3, r = n * 60, i = r * 60, a = i * 24, o = a * 7, s = a * 365.25;
|