@eyeon/threejs-map 1.1.7 → 1.1.8
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +420 -420
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -87,13 +87,13 @@ class b6 extends W7 {
|
|
|
87
87
|
T ? o(T, C) : console.warn("SVGLoader: 'use node' references non-existent node id: " + e1);
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
|
-
R && (C.fill !== void 0 && C.fill !== "none" && R.color.setStyle(C.fill, se), A(R,
|
|
90
|
+
R && (C.fill !== void 0 && C.fill !== "none" && R.color.setStyle(C.fill, se), A(R, M), W.push(R), R.userData = { node: z, style: C });
|
|
91
91
|
const j = z.childNodes;
|
|
92
92
|
for (let F = 0; F < j.length; F++) {
|
|
93
93
|
const e1 = j[F];
|
|
94
94
|
h && e1.nodeName !== "style" && e1.nodeName !== "defs" || o(e1, C);
|
|
95
95
|
}
|
|
96
|
-
b && ($.pop(), $.length > 0 ?
|
|
96
|
+
b && ($.pop(), $.length > 0 ? M.copy($[$.length - 1]) : M.identity());
|
|
97
97
|
}
|
|
98
98
|
function n(z) {
|
|
99
99
|
const C = new I4(), b = new T1(), h = new T1(), R = new T1();
|
|
@@ -102,10 +102,10 @@ class b6 extends W7 {
|
|
|
102
102
|
if (e1 === "" || e1 === "none") return null;
|
|
103
103
|
const T = e1.match(/[a-df-z][^a-df-z]*/ig);
|
|
104
104
|
for (let t1 = 0, U = T.length; t1 < U; t1++) {
|
|
105
|
-
const J = T[t1],
|
|
105
|
+
const J = T[t1], N = J.charAt(0), V = J.slice(1).trim();
|
|
106
106
|
j === !0 && (F = !0, j = !1);
|
|
107
107
|
let O;
|
|
108
|
-
switch (
|
|
108
|
+
switch (N) {
|
|
109
109
|
case "M":
|
|
110
110
|
O = x(V);
|
|
111
111
|
for (let y = 0, n1 = O.length; y < n1; y += 2)
|
|
@@ -307,16 +307,16 @@ class b6 extends W7 {
|
|
|
307
307
|
}
|
|
308
308
|
h = h * Math.PI / 180, C = Math.abs(C), b = Math.abs(b);
|
|
309
309
|
const T = (F.x - e1.x) / 2, t1 = (F.y - e1.y) / 2, U = Math.cos(h) * T + Math.sin(h) * t1, J = -Math.sin(h) * T + Math.cos(h) * t1;
|
|
310
|
-
let
|
|
311
|
-
const O = U * U, y = J * J, n1 = O /
|
|
310
|
+
let N = C * C, V = b * b;
|
|
311
|
+
const O = U * U, y = J * J, n1 = O / N + y / V;
|
|
312
312
|
if (n1 > 1) {
|
|
313
313
|
const H1 = Math.sqrt(n1);
|
|
314
|
-
C = H1 * C, b = H1 * b,
|
|
314
|
+
C = H1 * C, b = H1 * b, N = C * C, V = b * b;
|
|
315
315
|
}
|
|
316
|
-
const a1 =
|
|
316
|
+
const a1 = N * y + V * O, I1 = (N * V - a1) / a1;
|
|
317
317
|
let y1 = Math.sqrt(Math.max(0, I1));
|
|
318
318
|
R === j && (y1 = -y1);
|
|
319
|
-
const
|
|
319
|
+
const M1 = y1 * C * J / b, P1 = -y1 * b * U / C, b1 = Math.cos(h) * M1 - Math.sin(h) * P1 + (F.x + e1.x) / 2, j1 = Math.sin(h) * M1 + Math.cos(h) * P1 + (F.y + e1.y) / 2, e4 = c(1, 0, (U - M1) / C, (J - P1) / b), P4 = c((U - M1) / C, (J - P1) / b, (-U - M1) / C, (-J - P1) / b) % (Math.PI * 2);
|
|
320
320
|
z.currentPath.absellipse(b1, j1, C, b, e4, e4 + P4, j === 0, h);
|
|
321
321
|
}
|
|
322
322
|
function c(z, C, b, h) {
|
|
@@ -421,18 +421,18 @@ class b6 extends W7 {
|
|
|
421
421
|
FLAGS: /[01]/
|
|
422
422
|
}, R = 0, j = 1, F = 2, e1 = 3;
|
|
423
423
|
let T = R, t1 = !0, U = "", J = "";
|
|
424
|
-
const
|
|
424
|
+
const N = [];
|
|
425
425
|
function V(a1, I1, y1) {
|
|
426
|
-
const
|
|
427
|
-
throw
|
|
426
|
+
const M1 = new SyntaxError('Unexpected character "' + a1 + '" at index ' + I1 + ".");
|
|
427
|
+
throw M1.partial = y1, M1;
|
|
428
428
|
}
|
|
429
429
|
function O() {
|
|
430
|
-
U !== "" && (J === "" ?
|
|
430
|
+
U !== "" && (J === "" ? N.push(Number(U)) : N.push(Number(U) * Math.pow(10, Number(J)))), U = "", J = "";
|
|
431
431
|
}
|
|
432
432
|
let y;
|
|
433
433
|
const n1 = z.length;
|
|
434
434
|
for (let a1 = 0; a1 < n1; a1++) {
|
|
435
|
-
if (y = z[a1], Array.isArray(C) && C.includes(
|
|
435
|
+
if (y = z[a1], Array.isArray(C) && C.includes(N.length % b) && h.FLAGS.test(y)) {
|
|
436
436
|
T = j, U = y, O();
|
|
437
437
|
continue;
|
|
438
438
|
}
|
|
@@ -447,7 +447,7 @@ class b6 extends W7 {
|
|
|
447
447
|
T = F, U = y;
|
|
448
448
|
continue;
|
|
449
449
|
}
|
|
450
|
-
h.COMMA.test(y) && (t1 && V(y, a1,
|
|
450
|
+
h.COMMA.test(y) && (t1 && V(y, a1, N), t1 = !0);
|
|
451
451
|
}
|
|
452
452
|
if (T === j) {
|
|
453
453
|
if (h.DIGIT.test(y)) {
|
|
@@ -462,7 +462,7 @@ class b6 extends W7 {
|
|
|
462
462
|
T = e1;
|
|
463
463
|
continue;
|
|
464
464
|
}
|
|
465
|
-
h.SIGN.test(y) && U.length === 1 && h.SIGN.test(U[0]) && V(y, a1,
|
|
465
|
+
h.SIGN.test(y) && U.length === 1 && h.SIGN.test(U[0]) && V(y, a1, N);
|
|
466
466
|
}
|
|
467
467
|
if (T === F) {
|
|
468
468
|
if (h.DIGIT.test(y)) {
|
|
@@ -473,7 +473,7 @@ class b6 extends W7 {
|
|
|
473
473
|
T = e1;
|
|
474
474
|
continue;
|
|
475
475
|
}
|
|
476
|
-
h.POINT.test(y) && U[U.length - 1] === "." && V(y, a1,
|
|
476
|
+
h.POINT.test(y) && U[U.length - 1] === "." && V(y, a1, N);
|
|
477
477
|
}
|
|
478
478
|
if (T === e1) {
|
|
479
479
|
if (h.DIGIT.test(y)) {
|
|
@@ -485,12 +485,12 @@ class b6 extends W7 {
|
|
|
485
485
|
J += y;
|
|
486
486
|
continue;
|
|
487
487
|
}
|
|
488
|
-
J.length === 1 && h.SIGN.test(J) && V(y, a1,
|
|
488
|
+
J.length === 1 && h.SIGN.test(J) && V(y, a1, N);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
h.WHITESPACE.test(y) ? (O(), T = R, t1 = !1) : h.COMMA.test(y) ? (O(), T = R, t1 = !0) : h.SIGN.test(y) ? (O(), T = j, U = y) : h.POINT.test(y) ? (O(), T = F, U = y) : V(y, a1,
|
|
491
|
+
h.WHITESPACE.test(y) ? (O(), T = R, t1 = !1) : h.COMMA.test(y) ? (O(), T = R, t1 = !0) : h.SIGN.test(y) ? (O(), T = j, U = y) : h.POINT.test(y) ? (O(), T = F, U = y) : V(y, a1, N);
|
|
492
492
|
}
|
|
493
|
-
return O(),
|
|
493
|
+
return O(), N;
|
|
494
494
|
}
|
|
495
495
|
const _ = ["mm", "cm", "in", "pt", "pc", "px"], S = {
|
|
496
496
|
mm: {
|
|
@@ -554,7 +554,7 @@ class b6 extends W7 {
|
|
|
554
554
|
if (!(z.hasAttribute("transform") || z.nodeName === "use" && (z.hasAttribute("x") || z.hasAttribute("y"))))
|
|
555
555
|
return null;
|
|
556
556
|
const C = d(z);
|
|
557
|
-
return $.length > 0 && C.premultiply($[$.length - 1]),
|
|
557
|
+
return $.length > 0 && C.premultiply($[$.length - 1]), M.copy(C), $.push(C), C;
|
|
558
558
|
}
|
|
559
559
|
function d(z) {
|
|
560
560
|
const C = new k4(), b = Q;
|
|
@@ -580,8 +580,8 @@ class b6 extends W7 {
|
|
|
580
580
|
break;
|
|
581
581
|
case "rotate":
|
|
582
582
|
if (t1.length >= 1) {
|
|
583
|
-
let U = 0, J = 0,
|
|
584
|
-
U = t1[0] * Math.PI / 180, t1.length >= 3 && (J = t1[1],
|
|
583
|
+
let U = 0, J = 0, N = 0;
|
|
584
|
+
U = t1[0] * Math.PI / 180, t1.length >= 3 && (J = t1[1], N = t1[2]), Z.makeTranslation(-J, -N), Y.makeRotation(U), L.multiplyMatrices(Y, Z), Z.makeTranslation(J, N), b.multiplyMatrices(Z, L);
|
|
585
585
|
}
|
|
586
586
|
break;
|
|
587
587
|
case "scale":
|
|
@@ -642,7 +642,7 @@ class b6 extends W7 {
|
|
|
642
642
|
G.set(F.x, F.y, 1).applyMatrix3(C), F.set(G.x, G.y);
|
|
643
643
|
}
|
|
644
644
|
function h(F) {
|
|
645
|
-
const e1 = F.xRadius, T = F.yRadius, t1 = Math.cos(F.aRotation), U = Math.sin(F.aRotation), J = new w1(e1 * t1, e1 * U, 0),
|
|
645
|
+
const e1 = F.xRadius, T = F.yRadius, t1 = Math.cos(F.aRotation), U = Math.sin(F.aRotation), J = new w1(e1 * t1, e1 * U, 0), N = new w1(-T * U, T * t1, 0), V = J.applyMatrix3(C), O = N.applyMatrix3(C), y = Q.set(
|
|
646
646
|
V.x,
|
|
647
647
|
O.x,
|
|
648
648
|
0,
|
|
@@ -652,8 +652,8 @@ class b6 extends W7 {
|
|
|
652
652
|
0,
|
|
653
653
|
0,
|
|
654
654
|
1
|
|
655
|
-
), n1 = Z.copy(y).invert(), y1 = Y.copy(n1).transpose().multiply(n1).elements,
|
|
656
|
-
if (F.xRadius = 1 / P1, F.yRadius = 1 / b1, F.aRotation = Math.atan2(
|
|
655
|
+
), n1 = Z.copy(y).invert(), y1 = Y.copy(n1).transpose().multiply(n1).elements, M1 = K(y1[0], y1[1], y1[4]), P1 = Math.sqrt(M1.rt1), b1 = Math.sqrt(M1.rt2);
|
|
656
|
+
if (F.xRadius = 1 / P1, F.yRadius = 1 / b1, F.aRotation = Math.atan2(M1.sn, M1.cs), !((F.aEndAngle - F.aStartAngle) % (2 * Math.PI) < Number.EPSILON)) {
|
|
657
657
|
const e4 = Z.set(
|
|
658
658
|
P1,
|
|
659
659
|
0,
|
|
@@ -665,11 +665,11 @@ class b6 extends W7 {
|
|
|
665
665
|
0,
|
|
666
666
|
1
|
|
667
667
|
), P4 = Y.set(
|
|
668
|
-
|
|
669
|
-
|
|
668
|
+
M1.cs,
|
|
669
|
+
M1.sn,
|
|
670
670
|
0,
|
|
671
|
-
-
|
|
672
|
-
|
|
671
|
+
-M1.sn,
|
|
672
|
+
M1.cs,
|
|
673
673
|
0,
|
|
674
674
|
0,
|
|
675
675
|
0,
|
|
@@ -719,7 +719,7 @@ class b6 extends W7 {
|
|
|
719
719
|
const T = z + b, t1 = z - b, U = Math.sqrt(t1 * t1 + 4 * C * C);
|
|
720
720
|
return T > 0 ? (h = 0.5 * (T + U), e1 = 1 / h, R = z * e1 * b - C * e1 * C) : T < 0 ? R = 0.5 * (T - U) : (h = 0.5 * U, R = -0.5 * U), t1 > 0 ? j = t1 + U : j = t1 - U, Math.abs(j) > 2 * Math.abs(C) ? (e1 = -2 * C / j, F = 1 / Math.sqrt(1 + e1 * e1), j = e1 * F) : Math.abs(C) === 0 ? (j = 1, F = 0) : (e1 = -0.5 * j / C, j = 1 / Math.sqrt(1 + e1 * e1), F = e1 * j), t1 > 0 && (e1 = j, j = -F, F = e1), { rt1: h, rt2: R, cs: j, sn: F };
|
|
721
721
|
}
|
|
722
|
-
const W = [], l1 = {}, $ = [], Q = new k4(), Z = new k4(), Y = new k4(), L = new k4(), q1 = new T1(), G = new w1(),
|
|
722
|
+
const W = [], l1 = {}, $ = [], Q = new k4(), Z = new k4(), Y = new k4(), L = new k4(), q1 = new T1(), G = new w1(), M = new k4(), B = new DOMParser().parseFromString(l, "image/svg+xml");
|
|
723
723
|
return o(B.documentElement, {
|
|
724
724
|
fill: "#000",
|
|
725
725
|
fillOpacity: 1,
|
|
@@ -930,21 +930,21 @@ class b6 extends W7 {
|
|
|
930
930
|
const K = l[0].equals(l[D - 1]);
|
|
931
931
|
let W, l1 = l[0], $;
|
|
932
932
|
const Q = t.strokeWidth / 2, Z = 1 / (D - 1);
|
|
933
|
-
let Y = 0, L, q1, G,
|
|
933
|
+
let Y = 0, L, q1, G, M, B = !1, H = 0, z = i * 3, C = i * 2;
|
|
934
934
|
b(l[0], l[1], a).multiplyScalar(Q), x.copy(l[0]).sub(a), _.copy(l[0]).add(a), S.copy(x), g.copy(_);
|
|
935
935
|
for (let U = 1; U < D; U++) {
|
|
936
936
|
W = l[U], U === D - 1 ? K ? $ = l[1] : $ = void 0 : $ = l[U + 1];
|
|
937
937
|
const J = a;
|
|
938
938
|
if (b(l1, W, J), m.copy(J).multiplyScalar(Q), u.copy(W).sub(m), d.copy(W).add(m), L = Y + Z, q1 = !1, $ !== void 0) {
|
|
939
939
|
b(W, $, s), m.copy(s).multiplyScalar(Q), A.copy(W).sub(m), E.copy(W).add(m), G = !0, m.subVectors($, l1), J.dot(m) < 0 && (G = !1), U === 1 && (B = G), m.subVectors($, W), m.normalize();
|
|
940
|
-
const
|
|
941
|
-
if (
|
|
942
|
-
const V = Q /
|
|
940
|
+
const N = Math.abs(J.dot(m));
|
|
941
|
+
if (N > Number.EPSILON) {
|
|
942
|
+
const V = Q / N;
|
|
943
943
|
m.multiplyScalar(-V), v.subVectors(W, l1), I.copy(v).setLength(V).add(m), w.copy(I).negate();
|
|
944
944
|
const O = I.length(), y = v.length();
|
|
945
945
|
v.divideScalar(y), f.subVectors($, W);
|
|
946
946
|
const n1 = f.length();
|
|
947
|
-
switch (f.divideScalar(n1), v.dot(w) < y && f.dot(w) < n1 && (q1 = !0), P.copy(I).add(W), w.add(W),
|
|
947
|
+
switch (f.divideScalar(n1), v.dot(w) < y && f.dot(w) < n1 && (q1 = !0), P.copy(I).add(W), w.add(W), M = !1, q1 ? G ? (E.copy(w), d.copy(w)) : (A.copy(w), u.copy(w)) : j(), t.strokeLineJoin) {
|
|
948
948
|
case "bevel":
|
|
949
949
|
F(G, q1, L);
|
|
950
950
|
break;
|
|
@@ -962,7 +962,7 @@ class b6 extends W7 {
|
|
|
962
962
|
} else
|
|
963
963
|
e1(G, q1), G ? (f.subVectors(P, u).multiplyScalar(a1).add(u), p.subVectors(P, A).multiplyScalar(a1).add(A), h(u, L, 0), h(f, L, 0), h(W, L, 0.5), h(W, L, 0.5), h(f, L, 0), h(p, L, 0), h(W, L, 0.5), h(p, L, 0), h(A, L, 0)) : (f.subVectors(P, d).multiplyScalar(a1).add(d), p.subVectors(P, E).multiplyScalar(a1).add(E), h(d, L, 1), h(f, L, 1), h(W, L, 0.5), h(W, L, 0.5), h(f, L, 1), h(p, L, 1), h(W, L, 0.5), h(p, L, 1), h(E, L, 1));
|
|
964
964
|
else
|
|
965
|
-
q1 ? (G ? (h(_, Y, 1), h(x, Y, 0), h(P, L, 0), h(_, Y, 1), h(P, L, 0), h(w, L, 1)) : (h(_, Y, 1), h(x, Y, 0), h(P, L, 1), h(x, Y, 0), h(w, L, 0), h(P, L, 1)), G ? A.copy(P) : E.copy(P)) : G ? (h(u, L, 0), h(P, L, 0), h(W, L, 0.5), h(W, L, 0.5), h(P, L, 0), h(A, L, 0)) : (h(d, L, 1), h(P, L, 1), h(W, L, 0.5), h(W, L, 0.5), h(P, L, 1), h(E, L, 1)),
|
|
965
|
+
q1 ? (G ? (h(_, Y, 1), h(x, Y, 0), h(P, L, 0), h(_, Y, 1), h(P, L, 0), h(w, L, 1)) : (h(_, Y, 1), h(x, Y, 0), h(P, L, 1), h(x, Y, 0), h(w, L, 0), h(P, L, 1)), G ? A.copy(P) : E.copy(P)) : G ? (h(u, L, 0), h(P, L, 0), h(W, L, 0.5), h(W, L, 0.5), h(P, L, 0), h(A, L, 0)) : (h(d, L, 1), h(P, L, 1), h(W, L, 0.5), h(W, L, 0.5), h(P, L, 1), h(E, L, 1)), M = !0;
|
|
966
966
|
break;
|
|
967
967
|
}
|
|
968
968
|
} else
|
|
@@ -975,43 +975,43 @@ class b6 extends W7 {
|
|
|
975
975
|
T(W, u, d, G, !1, L);
|
|
976
976
|
else if (q1 && r) {
|
|
977
977
|
let U = P, J = w;
|
|
978
|
-
B !== G && (U = w, J = P), G ? (
|
|
978
|
+
B !== G && (U = w, J = P), G ? (M || B) && (J.toArray(r, 0 * 3), J.toArray(r, 3 * 3), M && U.toArray(r, 1 * 3)) : (M || !B) && (J.toArray(r, 1 * 3), J.toArray(r, 3 * 3), M && U.toArray(r, 0 * 3));
|
|
979
979
|
}
|
|
980
980
|
return H;
|
|
981
|
-
function b(U, J,
|
|
982
|
-
return
|
|
981
|
+
function b(U, J, N) {
|
|
982
|
+
return N.subVectors(J, U), N.set(-N.y, N.x).normalize();
|
|
983
983
|
}
|
|
984
|
-
function h(U, J,
|
|
985
|
-
r && (r[z] = U.x, r[z + 1] = U.y, r[z + 2] = 0, q && (q[z] = 0, q[z + 1] = 0, q[z + 2] = 1), z += 3, c && (c[C] = J, c[C + 1] =
|
|
984
|
+
function h(U, J, N) {
|
|
985
|
+
r && (r[z] = U.x, r[z + 1] = U.y, r[z + 2] = 0, q && (q[z] = 0, q[z + 1] = 0, q[z + 2] = 1), z += 3, c && (c[C] = J, c[C + 1] = N, C += 2)), H += 3;
|
|
986
986
|
}
|
|
987
|
-
function R(U, J,
|
|
988
|
-
a.copy(J).sub(U).normalize(), s.copy(
|
|
987
|
+
function R(U, J, N, V, O) {
|
|
988
|
+
a.copy(J).sub(U).normalize(), s.copy(N).sub(U).normalize();
|
|
989
989
|
let y = Math.PI;
|
|
990
990
|
const n1 = a.dot(s);
|
|
991
991
|
Math.abs(n1) < 1 && (y = Math.abs(Math.acos(n1))), y /= o, m.copy(J);
|
|
992
992
|
for (let a1 = 0, I1 = o - 1; a1 < I1; a1++)
|
|
993
993
|
v.copy(m).rotateAround(U, y), h(m, V, O), h(v, V, O), h(U, V, 0.5), m.copy(v);
|
|
994
|
-
h(v, V, O), h(
|
|
994
|
+
h(v, V, O), h(N, V, O), h(U, V, 0.5);
|
|
995
995
|
}
|
|
996
996
|
function j() {
|
|
997
997
|
h(_, Y, 1), h(x, Y, 0), h(u, L, 0), h(_, Y, 1), h(u, L, 0), h(d, L, 1);
|
|
998
998
|
}
|
|
999
|
-
function F(U, J,
|
|
1000
|
-
J ? U ? (h(_, Y, 1), h(x, Y, 0), h(u, L, 0), h(_, Y, 1), h(u, L, 0), h(w, L, 1), h(u,
|
|
999
|
+
function F(U, J, N) {
|
|
1000
|
+
J ? U ? (h(_, Y, 1), h(x, Y, 0), h(u, L, 0), h(_, Y, 1), h(u, L, 0), h(w, L, 1), h(u, N, 0), h(A, N, 0), h(w, N, 0.5)) : (h(_, Y, 1), h(x, Y, 0), h(d, L, 1), h(x, Y, 0), h(w, L, 0), h(d, L, 1), h(d, N, 1), h(w, N, 0), h(E, N, 1)) : U ? (h(u, N, 0), h(A, N, 0), h(W, N, 0.5)) : (h(d, N, 1), h(E, N, 0), h(W, N, 0.5));
|
|
1001
1001
|
}
|
|
1002
1002
|
function e1(U, J) {
|
|
1003
1003
|
J && (U ? (h(_, Y, 1), h(x, Y, 0), h(u, L, 0), h(_, Y, 1), h(u, L, 0), h(w, L, 1), h(u, Y, 0), h(W, L, 0.5), h(w, L, 1), h(W, L, 0.5), h(A, Y, 0), h(w, L, 1)) : (h(_, Y, 1), h(x, Y, 0), h(d, L, 1), h(x, Y, 0), h(w, L, 0), h(d, L, 1), h(d, Y, 1), h(w, L, 0), h(W, L, 0.5), h(W, L, 0.5), h(w, L, 0), h(E, Y, 1)));
|
|
1004
1004
|
}
|
|
1005
|
-
function T(U, J,
|
|
1005
|
+
function T(U, J, N, V, O, y) {
|
|
1006
1006
|
switch (t.strokeLineCap) {
|
|
1007
1007
|
case "round":
|
|
1008
|
-
O ? R(U,
|
|
1008
|
+
O ? R(U, N, J, y, 0.5) : R(U, J, N, y, 0.5);
|
|
1009
1009
|
break;
|
|
1010
1010
|
case "square":
|
|
1011
1011
|
if (O)
|
|
1012
1012
|
a.subVectors(J, U), s.set(a.y, -a.x), m.addVectors(a, s).add(U), v.subVectors(s, a).add(U), V ? (m.toArray(r, 1 * 3), v.toArray(r, 0 * 3), v.toArray(r, 3 * 3)) : (m.toArray(r, 1 * 3), c[3 * 2 + 1] === 1 ? v.toArray(r, 3 * 3) : m.toArray(r, 3 * 3), v.toArray(r, 0 * 3));
|
|
1013
1013
|
else {
|
|
1014
|
-
a.subVectors(
|
|
1014
|
+
a.subVectors(N, U), s.set(a.y, -a.x), m.addVectors(a, s).add(U), v.subVectors(s, a).add(U);
|
|
1015
1015
|
const n1 = r.length;
|
|
1016
1016
|
V ? (m.toArray(r, n1 - 1 * 3), v.toArray(r, n1 - 2 * 3), v.toArray(r, n1 - 4 * 3)) : (v.toArray(r, n1 - 2 * 3), m.toArray(r, n1 - 1 * 3), v.toArray(r, n1 - 4 * 3));
|
|
1017
1017
|
}
|
|
@@ -1026,11 +1026,11 @@ class b6 extends W7 {
|
|
|
1026
1026
|
break;
|
|
1027
1027
|
}
|
|
1028
1028
|
if (!J) return U;
|
|
1029
|
-
const
|
|
1030
|
-
|
|
1029
|
+
const N = [];
|
|
1030
|
+
N.push(U[0]);
|
|
1031
1031
|
for (let V = 1, O = U.length - 1; V < O; V++)
|
|
1032
|
-
U[V].distanceTo(U[V + 1]) >= n &&
|
|
1033
|
-
return
|
|
1032
|
+
U[V].distanceTo(U[V + 1]) >= n && N.push(U[V]);
|
|
1033
|
+
return N.push(U[U.length - 1]), N;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
@@ -6906,7 +6906,7 @@ const ce = {
|
|
|
6906
6906
|
}, k1 = (e) => {
|
|
6907
6907
|
const l = e.replace("#", "");
|
|
6908
6908
|
return new p6(l.length === 6 ? parseInt("0x" + l, 16) : l);
|
|
6909
|
-
},
|
|
6909
|
+
}, M9 = (e) => {
|
|
6910
6910
|
let l;
|
|
6911
6911
|
const t = document.getElementById(`map-special-svg-${e}`);
|
|
6912
6912
|
if (t) {
|
|
@@ -6919,7 +6919,7 @@ const ce = {
|
|
|
6919
6919
|
}
|
|
6920
6920
|
}
|
|
6921
6921
|
return l;
|
|
6922
|
-
}, ve = (e) => (e = e.slice(-10), e.length === 10 ? `${e.slice(0, 3)}.${e.slice(3, 6)}.${e.slice(-4)}` : e),
|
|
6922
|
+
}, ve = (e) => (e = e.slice(-10), e.length === 10 ? `${e.slice(0, 3)}.${e.slice(3, 6)}.${e.slice(-4)}` : e), N9 = (e, l) => l.IMAGE_PROXY_URL ? l.IMAGE_PROXY_URL + encodeURIComponent(e) : e, e8 = { x: 0, y: 0, z: 0 }, f4 = {
|
|
6923
6923
|
camera: e8,
|
|
6924
6924
|
controls: e8
|
|
6925
6925
|
}, V1 = {
|
|
@@ -7229,59 +7229,59 @@ is considered to be not a multigraph by default (each edge is unique).`
|
|
|
7229
7229
|
};
|
|
7230
7230
|
return ye(m), v(), m;
|
|
7231
7231
|
function v() {
|
|
7232
|
-
var
|
|
7232
|
+
var M = m.on;
|
|
7233
7233
|
m.on = B;
|
|
7234
7234
|
function B() {
|
|
7235
|
-
return m.beginUpdate = a = L, m.endUpdate = s = q1, c = I, i = f, m.on =
|
|
7235
|
+
return m.beginUpdate = a = L, m.endUpdate = s = q1, c = I, i = f, m.on = M, M.apply(m, arguments);
|
|
7236
7236
|
}
|
|
7237
7237
|
}
|
|
7238
|
-
function I(
|
|
7238
|
+
function I(M, B) {
|
|
7239
7239
|
q.push({
|
|
7240
|
-
link:
|
|
7240
|
+
link: M,
|
|
7241
7241
|
changeType: B
|
|
7242
7242
|
});
|
|
7243
7243
|
}
|
|
7244
|
-
function f(
|
|
7244
|
+
function f(M, B) {
|
|
7245
7245
|
q.push({
|
|
7246
|
-
node:
|
|
7246
|
+
node: M,
|
|
7247
7247
|
changeType: B
|
|
7248
7248
|
});
|
|
7249
7249
|
}
|
|
7250
|
-
function p(
|
|
7251
|
-
if (
|
|
7250
|
+
function p(M, B) {
|
|
7251
|
+
if (M === void 0)
|
|
7252
7252
|
throw new Error("Invalid node identifier");
|
|
7253
7253
|
a();
|
|
7254
|
-
var H = x(
|
|
7255
|
-
return H ? (H.data = B, i(H, "update")) : (H = new Ae(
|
|
7254
|
+
var H = x(M);
|
|
7255
|
+
return H ? (H.data = B, i(H, "update")) : (H = new Ae(M, B), i(H, "add")), l.set(M, H), s(), H;
|
|
7256
7256
|
}
|
|
7257
|
-
function x(
|
|
7258
|
-
return l.get(
|
|
7257
|
+
function x(M) {
|
|
7258
|
+
return l.get(M);
|
|
7259
7259
|
}
|
|
7260
|
-
function _(
|
|
7261
|
-
var B = x(
|
|
7260
|
+
function _(M) {
|
|
7261
|
+
var B = x(M);
|
|
7262
7262
|
if (!B)
|
|
7263
7263
|
return !1;
|
|
7264
7264
|
a();
|
|
7265
7265
|
var H = B.links;
|
|
7266
|
-
return H && (H.forEach(P), B.links = null), l.delete(
|
|
7266
|
+
return H && (H.forEach(P), B.links = null), l.delete(M), i(B, "remove"), s(), !0;
|
|
7267
7267
|
}
|
|
7268
|
-
function S(
|
|
7268
|
+
function S(M, B, H) {
|
|
7269
7269
|
a();
|
|
7270
|
-
var z = x(
|
|
7271
|
-
return t.set(b.id, b), t8(z, b),
|
|
7270
|
+
var z = x(M) || p(M), C = x(B) || p(B), b = r(M, B, H), h = t.has(b.id);
|
|
7271
|
+
return t.set(b.id, b), t8(z, b), M !== B && t8(C, b), c(b, h ? "update" : "add"), s(), b;
|
|
7272
7272
|
}
|
|
7273
|
-
function g(
|
|
7274
|
-
var z = g2(
|
|
7275
|
-
return C ? (C.data = H, C) : new n8(
|
|
7273
|
+
function g(M, B, H) {
|
|
7274
|
+
var z = g2(M, B), C = t.get(z);
|
|
7275
|
+
return C ? (C.data = H, C) : new n8(M, B, H, z);
|
|
7276
7276
|
}
|
|
7277
|
-
function u(
|
|
7278
|
-
var z = g2(
|
|
7279
|
-
if (C || D(
|
|
7277
|
+
function u(M, B, H) {
|
|
7278
|
+
var z = g2(M, B), C = o.hasOwnProperty(z);
|
|
7279
|
+
if (C || D(M, B)) {
|
|
7280
7280
|
C || (o[z] = 0);
|
|
7281
7281
|
var b = "@" + ++o[z];
|
|
7282
|
-
z = g2(
|
|
7282
|
+
z = g2(M + b, B + b);
|
|
7283
7283
|
}
|
|
7284
|
-
return new n8(
|
|
7284
|
+
return new n8(M, B, H, z);
|
|
7285
7285
|
}
|
|
7286
7286
|
function d() {
|
|
7287
7287
|
return l.size;
|
|
@@ -7289,55 +7289,55 @@ is considered to be not a multigraph by default (each edge is unique).`
|
|
|
7289
7289
|
function A() {
|
|
7290
7290
|
return t.size;
|
|
7291
7291
|
}
|
|
7292
|
-
function E(
|
|
7293
|
-
var B = x(
|
|
7292
|
+
function E(M) {
|
|
7293
|
+
var B = x(M);
|
|
7294
7294
|
return B ? B.links : null;
|
|
7295
7295
|
}
|
|
7296
|
-
function w(
|
|
7297
|
-
return B !== void 0 && (
|
|
7296
|
+
function w(M, B) {
|
|
7297
|
+
return B !== void 0 && (M = D(M, B)), P(M);
|
|
7298
7298
|
}
|
|
7299
|
-
function P(
|
|
7300
|
-
if (!
|
|
7301
|
-
a(), t.delete(
|
|
7302
|
-
var B = x(
|
|
7303
|
-
return B && B.links.delete(
|
|
7299
|
+
function P(M) {
|
|
7300
|
+
if (!M || !t.get(M.id)) return !1;
|
|
7301
|
+
a(), t.delete(M.id);
|
|
7302
|
+
var B = x(M.fromId), H = x(M.toId);
|
|
7303
|
+
return B && B.links.delete(M), H && H.links.delete(M), c(M, "remove"), s(), !0;
|
|
7304
7304
|
}
|
|
7305
|
-
function D(
|
|
7306
|
-
if (!(
|
|
7307
|
-
return t.get(g2(
|
|
7305
|
+
function D(M, B) {
|
|
7306
|
+
if (!(M === void 0 || B === void 0))
|
|
7307
|
+
return t.get(g2(M, B));
|
|
7308
7308
|
}
|
|
7309
|
-
function K(
|
|
7310
|
-
if (
|
|
7311
|
-
return t.get(
|
|
7309
|
+
function K(M) {
|
|
7310
|
+
if (M !== void 0)
|
|
7311
|
+
return t.get(M);
|
|
7312
7312
|
}
|
|
7313
7313
|
function W() {
|
|
7314
|
-
a(), G(function(
|
|
7315
|
-
_(
|
|
7314
|
+
a(), G(function(M) {
|
|
7315
|
+
_(M.id);
|
|
7316
7316
|
}), s();
|
|
7317
7317
|
}
|
|
7318
|
-
function l1(
|
|
7319
|
-
if (typeof
|
|
7318
|
+
function l1(M) {
|
|
7319
|
+
if (typeof M == "function")
|
|
7320
7320
|
for (var B = t.values(), H = B.next(); !H.done; ) {
|
|
7321
|
-
if (
|
|
7321
|
+
if (M(H.value))
|
|
7322
7322
|
return !0;
|
|
7323
7323
|
H = B.next();
|
|
7324
7324
|
}
|
|
7325
7325
|
}
|
|
7326
|
-
function $(
|
|
7327
|
-
var z = x(
|
|
7326
|
+
function $(M, B, H) {
|
|
7327
|
+
var z = x(M);
|
|
7328
7328
|
if (z && z.links && typeof B == "function")
|
|
7329
|
-
return H ? Z(z.links,
|
|
7329
|
+
return H ? Z(z.links, M, B) : Q(z.links, M, B);
|
|
7330
7330
|
}
|
|
7331
|
-
function Q(
|
|
7332
|
-
for (var z, C =
|
|
7331
|
+
function Q(M, B, H) {
|
|
7332
|
+
for (var z, C = M.values(), b = C.next(); !b.done; ) {
|
|
7333
7333
|
var h = b.value, R = h.fromId === B ? h.toId : h.fromId;
|
|
7334
7334
|
if (z = H(l.get(R), h), z)
|
|
7335
7335
|
return !0;
|
|
7336
7336
|
b = C.next();
|
|
7337
7337
|
}
|
|
7338
7338
|
}
|
|
7339
|
-
function Z(
|
|
7340
|
-
for (var z, C =
|
|
7339
|
+
function Z(M, B, H) {
|
|
7340
|
+
for (var z, C = M.values(), b = C.next(); !b.done; ) {
|
|
7341
7341
|
var h = b.value;
|
|
7342
7342
|
if (h.fromId === B && (z = H(l.get(h.toId), h), z))
|
|
7343
7343
|
return !0;
|
|
@@ -7352,11 +7352,11 @@ is considered to be not a multigraph by default (each edge is unique).`
|
|
|
7352
7352
|
function q1() {
|
|
7353
7353
|
n -= 1, n === 0 && q.length > 0 && (m.fire("changed", q), q.length = 0);
|
|
7354
7354
|
}
|
|
7355
|
-
function G(
|
|
7356
|
-
if (typeof
|
|
7357
|
-
throw new Error("Function is expected to iterate over graph nodes. You passed " +
|
|
7355
|
+
function G(M) {
|
|
7356
|
+
if (typeof M != "function")
|
|
7357
|
+
throw new Error("Function is expected to iterate over graph nodes. You passed " + M);
|
|
7358
7358
|
for (var B = l.values(), H = B.next(); !H.done; ) {
|
|
7359
|
-
if (
|
|
7359
|
+
if (M(H.value))
|
|
7360
7360
|
return !0;
|
|
7361
7361
|
H = B.next();
|
|
7362
7362
|
}
|
|
@@ -7452,10 +7452,10 @@ const F1 = {
|
|
|
7452
7452
|
heuristic: Oe,
|
|
7453
7453
|
distance: Te,
|
|
7454
7454
|
blocked: we,
|
|
7455
|
-
compareFScore:
|
|
7455
|
+
compareFScore: Me,
|
|
7456
7456
|
NO_PATH: P9,
|
|
7457
7457
|
// heap settings
|
|
7458
|
-
setHeapIndex:
|
|
7458
|
+
setHeapIndex: Ne,
|
|
7459
7459
|
// nba:
|
|
7460
7460
|
setH1: Fe,
|
|
7461
7461
|
setH2: Be,
|
|
@@ -7471,11 +7471,11 @@ function Te() {
|
|
|
7471
7471
|
function we() {
|
|
7472
7472
|
return !1;
|
|
7473
7473
|
}
|
|
7474
|
-
function
|
|
7474
|
+
function Me(e, l) {
|
|
7475
7475
|
var t = e.fScore - l.fScore;
|
|
7476
7476
|
return t;
|
|
7477
7477
|
}
|
|
7478
|
-
function
|
|
7478
|
+
function Ne(e, l) {
|
|
7479
7479
|
e.heapIndex = l;
|
|
7480
7480
|
}
|
|
7481
7481
|
function Le(e, l) {
|
|
@@ -8021,7 +8021,7 @@ g1.from = (e, l, t, o, n, r) => {
|
|
|
8021
8021
|
const c = e && e.message ? e.message : "Error", i = l == null && e ? e.code : l;
|
|
8022
8022
|
return g1.call(q, c, i, t, o, n), e && q.cause == null && Object.defineProperty(q, "cause", { value: e, configurable: !0 }), q.name = e && e.name || "Error", r && Object.assign(q, r), q;
|
|
8023
8023
|
};
|
|
8024
|
-
const
|
|
8024
|
+
const M0 = null;
|
|
8025
8025
|
function Z3(e) {
|
|
8026
8026
|
return X.isPlainObject(e) || X.isArray(e);
|
|
8027
8027
|
}
|
|
@@ -8033,7 +8033,7 @@ function r8(e, l, t) {
|
|
|
8033
8033
|
return n = Z9(n), !t && r ? "[" + n + "]" : n;
|
|
8034
8034
|
}).join(t ? "." : "") : l;
|
|
8035
8035
|
}
|
|
8036
|
-
function
|
|
8036
|
+
function N0(e) {
|
|
8037
8037
|
return X.isArray(e) && !e.some(Z3);
|
|
8038
8038
|
}
|
|
8039
8039
|
const L0 = X.toFlatObject(X, {}, null, function(l) {
|
|
@@ -8067,7 +8067,7 @@ function n3(e, l, t) {
|
|
|
8067
8067
|
if (f && !x && typeof f == "object") {
|
|
8068
8068
|
if (X.endsWith(p, "{}"))
|
|
8069
8069
|
p = o ? p : p.slice(0, -2), f = JSON.stringify(f);
|
|
8070
|
-
else if (X.isArray(f) &&
|
|
8070
|
+
else if (X.isArray(f) && N0(f) || (X.isFileList(f) || X.endsWith(p, "[]")) && (_ = X.toArray(f)))
|
|
8071
8071
|
return p = Z9(p), _.forEach(function(g, u) {
|
|
8072
8072
|
!(X.isUndefined(g) || g === null) && l.append(
|
|
8073
8073
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -8669,7 +8669,7 @@ function e5(e, l, t) {
|
|
|
8669
8669
|
return e && (o || t == !1) ? il(e, l) : l;
|
|
8670
8670
|
}
|
|
8671
8671
|
const u8 = (e) => e instanceof n4 ? { ...e } : e;
|
|
8672
|
-
function
|
|
8672
|
+
function M4(e, l) {
|
|
8673
8673
|
l = l || {};
|
|
8674
8674
|
const t = {};
|
|
8675
8675
|
function o(a, s, m, v) {
|
|
@@ -8734,7 +8734,7 @@ function N4(e, l) {
|
|
|
8734
8734
|
}), t;
|
|
8735
8735
|
}
|
|
8736
8736
|
const l5 = (e) => {
|
|
8737
|
-
const l =
|
|
8737
|
+
const l = M4({}, e);
|
|
8738
8738
|
let { data: t, withXSRFToken: o, xsrfHeaderName: n, xsrfCookieName: r, headers: q, auth: c } = l;
|
|
8739
8739
|
if (l.headers = q = n4.from(q), l.url = J9(e5(l.baseURL, l.url, l.allowAbsoluteUrls), e.params, e.paramsSerializer), c && q.set(
|
|
8740
8740
|
"Authorization",
|
|
@@ -8973,17 +8973,17 @@ const l5 = (e) => {
|
|
|
8973
8973
|
let Q;
|
|
8974
8974
|
try {
|
|
8975
8975
|
if (A && a && x !== "get" && x !== "head" && (Q = await I(w, _)) !== 0) {
|
|
8976
|
-
let
|
|
8976
|
+
let M = new t(p, {
|
|
8977
8977
|
method: "POST",
|
|
8978
8978
|
body: _,
|
|
8979
8979
|
duplex: "half"
|
|
8980
8980
|
}), B;
|
|
8981
|
-
if (X.isFormData(_) && (B =
|
|
8981
|
+
if (X.isFormData(_) && (B = M.headers.get("content-type")) && w.setContentType(B), M.body) {
|
|
8982
8982
|
const [H, z] = s8(
|
|
8983
8983
|
Q,
|
|
8984
8984
|
D2(c8(A))
|
|
8985
8985
|
);
|
|
8986
|
-
_ = m8(
|
|
8986
|
+
_ = m8(M.body, d8, H, z);
|
|
8987
8987
|
}
|
|
8988
8988
|
}
|
|
8989
8989
|
X.isString(P) || (P = P ? "include" : "omit");
|
|
@@ -9000,9 +9000,9 @@ const l5 = (e) => {
|
|
|
9000
9000
|
let L = await (r ? K(l1, D) : K(p, Y));
|
|
9001
9001
|
const q1 = s && (E === "stream" || E === "response");
|
|
9002
9002
|
if (s && (d || q1 && $)) {
|
|
9003
|
-
const
|
|
9003
|
+
const M = {};
|
|
9004
9004
|
["status", "statusText", "headers"].forEach((C) => {
|
|
9005
|
-
|
|
9005
|
+
M[C] = L[C];
|
|
9006
9006
|
});
|
|
9007
9007
|
const B = X.toFiniteNumber(L.headers.get("content-length")), [H, z] = d && s8(
|
|
9008
9008
|
B,
|
|
@@ -9012,13 +9012,13 @@ const l5 = (e) => {
|
|
|
9012
9012
|
m8(L.body, d8, H, () => {
|
|
9013
9013
|
z && z(), $ && $();
|
|
9014
9014
|
}),
|
|
9015
|
-
|
|
9015
|
+
M
|
|
9016
9016
|
);
|
|
9017
9017
|
}
|
|
9018
9018
|
E = E || "text";
|
|
9019
9019
|
let G = await m[X.findKey(m, E) || "text"](L, f);
|
|
9020
|
-
return !q1 && $ && $(), await new Promise((
|
|
9021
|
-
K9(
|
|
9020
|
+
return !q1 && $ && $(), await new Promise((M, B) => {
|
|
9021
|
+
K9(M, B, {
|
|
9022
9022
|
data: G,
|
|
9023
9023
|
headers: n4.from(L.headers),
|
|
9024
9024
|
status: L.status,
|
|
@@ -9050,7 +9050,7 @@ const l5 = (e) => {
|
|
|
9050
9050
|
};
|
|
9051
9051
|
t5();
|
|
9052
9052
|
const R6 = {
|
|
9053
|
-
http:
|
|
9053
|
+
http: M0,
|
|
9054
9054
|
xhr: sl,
|
|
9055
9055
|
fetch: {
|
|
9056
9056
|
get: t5
|
|
@@ -9173,10 +9173,10 @@ function bl(e, l, t) {
|
|
|
9173
9173
|
throw new g1("Unknown option " + r, g1.ERR_BAD_OPTION);
|
|
9174
9174
|
}
|
|
9175
9175
|
}
|
|
9176
|
-
const
|
|
9176
|
+
const M2 = {
|
|
9177
9177
|
assertOptions: bl,
|
|
9178
9178
|
validators: o3
|
|
9179
|
-
}, c4 =
|
|
9179
|
+
}, c4 = M2.validators;
|
|
9180
9180
|
let O4 = class {
|
|
9181
9181
|
constructor(l) {
|
|
9182
9182
|
this.defaults = l || {}, this.interceptors = {
|
|
@@ -9210,18 +9210,18 @@ let O4 = class {
|
|
|
9210
9210
|
}
|
|
9211
9211
|
}
|
|
9212
9212
|
_request(l, t) {
|
|
9213
|
-
typeof l == "string" ? (t = t || {}, t.url = l) : t = l || {}, t =
|
|
9213
|
+
typeof l == "string" ? (t = t || {}, t.url = l) : t = l || {}, t = M4(this.defaults, t);
|
|
9214
9214
|
const { transitional: o, paramsSerializer: n, headers: r } = t;
|
|
9215
|
-
o !== void 0 &&
|
|
9215
|
+
o !== void 0 && M2.assertOptions(o, {
|
|
9216
9216
|
silentJSONParsing: c4.transitional(c4.boolean),
|
|
9217
9217
|
forcedJSONParsing: c4.transitional(c4.boolean),
|
|
9218
9218
|
clarifyTimeoutError: c4.transitional(c4.boolean)
|
|
9219
9219
|
}, !1), n != null && (X.isFunction(n) ? t.paramsSerializer = {
|
|
9220
9220
|
serialize: n
|
|
9221
|
-
} :
|
|
9221
|
+
} : M2.assertOptions(n, {
|
|
9222
9222
|
encode: c4.function,
|
|
9223
9223
|
serialize: c4.function
|
|
9224
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0),
|
|
9224
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), M2.assertOptions(t, {
|
|
9225
9225
|
baseUrl: c4.spelling("baseURL"),
|
|
9226
9226
|
withXsrfToken: c4.spelling("withXSRFToken")
|
|
9227
9227
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -9272,14 +9272,14 @@ let O4 = class {
|
|
|
9272
9272
|
return s;
|
|
9273
9273
|
}
|
|
9274
9274
|
getUri(l) {
|
|
9275
|
-
l =
|
|
9275
|
+
l = M4(this.defaults, l);
|
|
9276
9276
|
const t = e5(l.baseURL, l.url, l.allowAbsoluteUrls);
|
|
9277
9277
|
return J9(t, l.params, l.paramsSerializer);
|
|
9278
9278
|
}
|
|
9279
9279
|
};
|
|
9280
9280
|
X.forEach(["delete", "get", "head", "options"], function(l) {
|
|
9281
9281
|
O4.prototype[l] = function(t, o) {
|
|
9282
|
-
return this.request(
|
|
9282
|
+
return this.request(M4(o || {}, {
|
|
9283
9283
|
method: l,
|
|
9284
9284
|
url: t,
|
|
9285
9285
|
data: (o || {}).data
|
|
@@ -9289,7 +9289,7 @@ X.forEach(["delete", "get", "head", "options"], function(l) {
|
|
|
9289
9289
|
X.forEach(["post", "put", "patch"], function(l) {
|
|
9290
9290
|
function t(o) {
|
|
9291
9291
|
return function(r, q, c) {
|
|
9292
|
-
return this.request(
|
|
9292
|
+
return this.request(M4(c || {}, {
|
|
9293
9293
|
method: l,
|
|
9294
9294
|
headers: o ? {
|
|
9295
9295
|
"Content-Type": "multipart/form-data"
|
|
@@ -9459,7 +9459,7 @@ Object.entries(J3).forEach(([e, l]) => {
|
|
|
9459
9459
|
function q5(e) {
|
|
9460
9460
|
const l = new O4(e), t = F9(O4.prototype.request, l);
|
|
9461
9461
|
return X.extend(t, O4.prototype, l, { allOwnKeys: !0 }), X.extend(t, l, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
9462
|
-
return q5(
|
|
9462
|
+
return q5(M4(e, n));
|
|
9463
9463
|
}, t;
|
|
9464
9464
|
}
|
|
9465
9465
|
const G1 = q5(d2);
|
|
@@ -9476,7 +9476,7 @@ G1.all = function(l) {
|
|
|
9476
9476
|
};
|
|
9477
9477
|
G1.spread = vl;
|
|
9478
9478
|
G1.isAxiosError = yl;
|
|
9479
|
-
G1.mergeConfig =
|
|
9479
|
+
G1.mergeConfig = M4;
|
|
9480
9480
|
G1.AxiosHeaders = n4;
|
|
9481
9481
|
G1.formToJSON = (e) => $9(X.isHTMLForm(e) ? new FormData(e) : e);
|
|
9482
9482
|
G1.getAdapter = n5.getAdapter;
|
|
@@ -9698,7 +9698,7 @@ const {
|
|
|
9698
9698
|
}, [o]);
|
|
9699
9699
|
const [v, I] = c1(/* @__PURE__ */ new Map()), [f, p] = c1([]), [x, _] = c1({}), [S, g] = c1({}), [u, d] = c1({}), [A, E] = c1([]), [w, P] = c1({}), [D, K] = c1(Ee()), [W, l1] = c1(Ze), [$, Q] = c1(null), [Z, Y] = c1(), L = W1(() => El(r, i), [r, i.CENTER_ID]);
|
|
9700
9700
|
p1(() => {
|
|
9701
|
-
a((
|
|
9701
|
+
a((M) => ({ ...M, ...l.config }));
|
|
9702
9702
|
}, [l.config, l.config.CENTER_ID]);
|
|
9703
9703
|
const q1 = r1(() => {
|
|
9704
9704
|
Promise.all([
|
|
@@ -9709,7 +9709,7 @@ const {
|
|
|
9709
9709
|
L.mapApiService.getMapSettings(),
|
|
9710
9710
|
L.mapApiService.getMapResponsiveSettings()
|
|
9711
9711
|
]).then(([
|
|
9712
|
-
{ retailers:
|
|
9712
|
+
{ retailers: M, globalRetailerIds: B },
|
|
9713
9713
|
H,
|
|
9714
9714
|
z,
|
|
9715
9715
|
C,
|
|
@@ -9718,7 +9718,7 @@ const {
|
|
|
9718
9718
|
]) => {
|
|
9719
9719
|
const R = H.map((j) => j.map_obj_name);
|
|
9720
9720
|
H = H.filter((j, F) => R.indexOf(j.map_obj_name) === F), m({
|
|
9721
|
-
retailers:
|
|
9721
|
+
retailers: M,
|
|
9722
9722
|
globalRetailerIds: B,
|
|
9723
9723
|
map_objs: H,
|
|
9724
9724
|
floors: z,
|
|
@@ -9726,35 +9726,35 @@ const {
|
|
|
9726
9726
|
mapSettings: b.apiResponse,
|
|
9727
9727
|
responsiveSettings: h
|
|
9728
9728
|
});
|
|
9729
|
-
}).catch((
|
|
9730
|
-
console.error("Error: MapBoxContextProvider fetching api data:",
|
|
9729
|
+
}).catch((M) => {
|
|
9730
|
+
console.error("Error: MapBoxContextProvider fetching api data:", M), c(!0);
|
|
9731
9731
|
});
|
|
9732
9732
|
}, [L]);
|
|
9733
9733
|
p1(() => {
|
|
9734
|
-
n && n(s), a((
|
|
9735
|
-
...
|
|
9734
|
+
n && n(s), a((M) => ({
|
|
9735
|
+
...M,
|
|
9736
9736
|
...s.mapSettings.responseConfig,
|
|
9737
9737
|
CAMERA_CONTROLS_STATES: s.responsiveSettings,
|
|
9738
|
-
CENTER_ID: l.config.CENTER_ID ||
|
|
9739
|
-
KIOSK_ID: l.config.KIOSK_ID ||
|
|
9740
|
-
SELECTED_RETAILER_ID: l.config.SELECTED_RETAILER_ID ||
|
|
9738
|
+
CENTER_ID: l.config.CENTER_ID || M.CENTER_ID,
|
|
9739
|
+
KIOSK_ID: l.config.KIOSK_ID || M.KIOSK_ID,
|
|
9740
|
+
SELECTED_RETAILER_ID: l.config.SELECTED_RETAILER_ID || M.SELECTED_RETAILER_ID
|
|
9741
9741
|
})), g(s.retailers.reduce(
|
|
9742
|
-
(
|
|
9742
|
+
(M, B) => (M[B.id] = B, M),
|
|
9743
9743
|
{}
|
|
9744
9744
|
)), d(s.kiosks.reduce(
|
|
9745
|
-
(
|
|
9746
|
-
|
|
9745
|
+
(M, B) => {
|
|
9746
|
+
M[B.id] = B;
|
|
9747
9747
|
const H = s.map_objs.find((z) => z.kiosk_id === B.id);
|
|
9748
|
-
return H && (
|
|
9748
|
+
return H && (M[B.id].map_obj_name = H.map_obj_name), M;
|
|
9749
9749
|
},
|
|
9750
9750
|
{}
|
|
9751
9751
|
)), _(s.map_objs.reduce(
|
|
9752
|
-
(
|
|
9752
|
+
(M, B) => (M[B.map_obj_name] = { ...O2, ...B }, M),
|
|
9753
9753
|
{}
|
|
9754
|
-
)), E(s.floors.map((
|
|
9754
|
+
)), E(s.floors.map((M) => {
|
|
9755
9755
|
const B = new Y7();
|
|
9756
9756
|
return B.scale.y *= -1, B.lookAt(0, 1, 0), {
|
|
9757
|
-
...
|
|
9757
|
+
...M,
|
|
9758
9758
|
objsGroup: B,
|
|
9759
9759
|
interactiveObjs: [],
|
|
9760
9760
|
escalatorsObjs: [],
|
|
@@ -10231,7 +10231,7 @@ const K1 = {
|
|
|
10231
10231
|
let P = new G2(E, w);
|
|
10232
10232
|
return u === "2D" && (P.position.z = -10, P.scale.z = 0.1), P.position.z = 0, P.renderOrder = r("route-tube"), P.mesh_type = "route-tube", P.geometry.index !== null ? P.geometry.setDrawRange(0, P.geometry.index.count) : console.warn("route_tube.geometry.index is null"), g[S].route_tube = P, (D = g[S].objsGroup) == null || D.add(P), P;
|
|
10233
10233
|
}, [r, a]), m = r1((_, S, g, u, d, A, E, w, P = null) => {
|
|
10234
|
-
var
|
|
10234
|
+
var M, B, H, z, C, b;
|
|
10235
10235
|
const D = [];
|
|
10236
10236
|
c(A);
|
|
10237
10237
|
let K = g.getObjectByProperty("object_id", _), W = g.getObjectByProperty("object_id", S), l1 = K.route_node_id, $ = W.route_node_id;
|
|
@@ -10270,7 +10270,7 @@ const K1 = {
|
|
|
10270
10270
|
}), e1 && F) {
|
|
10271
10271
|
F.goToFloor = e1;
|
|
10272
10272
|
const T = F.clone();
|
|
10273
|
-
T.goToFloor = e1, T.object_id = j, (B = (
|
|
10273
|
+
T.goToFloor = e1, T.object_id = j, (B = (M = A[u[R.id]]) == null ? void 0 : M.escalatorMeshes) == null || B.push(T);
|
|
10274
10274
|
}
|
|
10275
10275
|
}
|
|
10276
10276
|
}
|
|
@@ -10451,7 +10451,7 @@ const Tl = () => {
|
|
|
10451
10451
|
};
|
|
10452
10452
|
};
|
|
10453
10453
|
let wl = 0;
|
|
10454
|
-
const
|
|
10454
|
+
const Ml = (e) => {
|
|
10455
10455
|
const { mapConfig: l, pathFinderGraph: t } = r4(), { getMaterialAndGeometry: o } = q3(), { getMeshParams: n } = Tl(), { assign_route_nodes_to_stores: r, linkFloorEscalators: q } = s5(), [c, i, a] = W1(() => {
|
|
10456
10456
|
const s = /* @__PURE__ */ new Set(), m = [], v = [];
|
|
10457
10457
|
e.forEach((I, f) => {
|
|
@@ -10531,7 +10531,7 @@ const Nl = (e) => {
|
|
|
10531
10531
|
p.z = -x.z, _.rotateZ(((g == null ? void 0 : g.rotate) || 0) * Math.PI / 180), _.scale.y *= -1, p.x += (g == null ? void 0 : g.offset_x) || 0, p.y += (g == null ? void 0 : g.offset_y) || 0, _.position.set(p.x, p.y, p.z + 1);
|
|
10532
10532
|
}, a = async (f) => {
|
|
10533
10533
|
try {
|
|
10534
|
-
const p =
|
|
10534
|
+
const p = N9(f, o), x = await fetch(p);
|
|
10535
10535
|
if (!x.ok)
|
|
10536
10536
|
throw new Error(`Failed to fetch image: ${x.statusText}`);
|
|
10537
10537
|
const _ = await x.blob();
|
|
@@ -10644,10 +10644,10 @@ const Nl = (e) => {
|
|
|
10644
10644
|
};
|
|
10645
10645
|
};
|
|
10646
10646
|
let E3 = [];
|
|
10647
|
-
const
|
|
10647
|
+
const Nl = () => {
|
|
10648
10648
|
const { mapConfig: e, initialFloorsDataIsLoaded: l, allIndexedMapObjects: t, allIndexedRetailers: o, allMapObjects: n, allNodesFloor: r, pathFinderGraph: q, setPathFinderGraph: c, mapApiResponse: i } = r4(), [a, s] = c1([]), [m, v] = c1([]), [I, f] = c1([]), [p, x] = c1([]);
|
|
10649
|
-
let _ = D7(b6, i.floors.map((D) =>
|
|
10650
|
-
const { GeometriesAndMaterials: S, graph: g, escalator_nodes: u, allSvgObjectIds: d } =
|
|
10649
|
+
let _ = D7(b6, i.floors.map((D) => N9(D.svgUrl, e)));
|
|
10650
|
+
const { GeometriesAndMaterials: S, graph: g, escalator_nodes: u, allSvgObjectIds: d } = Ml(_), { get_store_name_logo_geometry: A } = c5(), E = T9(w9), w = r1((D) => (K) => {
|
|
10651
10651
|
f((W) => (W[D] ? W[D].push({ ...K }) : W[D] = [{ ...K }], [...W]));
|
|
10652
10652
|
}, []), P = r1(() => {
|
|
10653
10653
|
s((D) => (D && D.forEach((K) => {
|
|
@@ -10843,7 +10843,7 @@ const Bl = "_escalator_elems_1kqb9_1", Gl = "_element_1kqb9_4", kl = "_svgIcon_1
|
|
|
10843
10843
|
},
|
|
10844
10844
|
onPointerMove: (D) => D.stopPropagation(),
|
|
10845
10845
|
children: /* @__PURE__ */ f1("div", { className: `element ${_2.element}`, id: E.object_id, children: [
|
|
10846
|
-
/* @__PURE__ */ k("div", { className: `svgIcon ${_2.svgIcon}`, dangerouslySetInnerHTML: { __html:
|
|
10846
|
+
/* @__PURE__ */ k("div", { className: `svgIcon ${_2.svgIcon}`, dangerouslySetInnerHTML: { __html: M9("escalator") } }),
|
|
10847
10847
|
/* @__PURE__ */ f1("div", { className: `label ${_2.label}`, children: [
|
|
10848
10848
|
(P = E.goToFloor) == null ? void 0 : P.direction,
|
|
10849
10849
|
": ",
|
|
@@ -10892,7 +10892,7 @@ const Zl = L4((e, l) => {
|
|
|
10892
10892
|
triggerClick: $,
|
|
10893
10893
|
cameraControlsPosition: Q,
|
|
10894
10894
|
deviceType: Z
|
|
10895
|
-
} = e, [Y, L] = c1({ min: t.CAMERA.minDistance, max: t.CAMERA.maxDistance, initialDistance: 0, needsUpdate: !0 }), q1 = v1(null), [G,
|
|
10895
|
+
} = e, [Y, L] = c1({ min: t.CAMERA.minDistance, max: t.CAMERA.maxDistance, initialDistance: 0, needsUpdate: !0 }), q1 = v1(null), [G, M] = c1([]), B = v1(null), { camera: H, scene: z } = x6(), C = v1(null), b = t.STYLE, h = t.ACCENT_COLOR, R = x ? x.object_id : g || void 0, j = t.ROLE === "PORTAL" && S, F = r1((V = !1) => {
|
|
10896
10896
|
if (!(H instanceof z2)) {
|
|
10897
10897
|
console.error("Camera is not a PerspectiveCamera");
|
|
10898
10898
|
return;
|
|
@@ -10941,11 +10941,11 @@ const Zl = L4((e, l) => {
|
|
|
10941
10941
|
f.meshParams.length > 0 && F();
|
|
10942
10942
|
}, [f.meshParams.length, F]), p1(() => {
|
|
10943
10943
|
if (!u || t.ROLE === "PORTAL") {
|
|
10944
|
-
|
|
10944
|
+
M([]);
|
|
10945
10945
|
return;
|
|
10946
10946
|
}
|
|
10947
10947
|
const { routePaths: V, fromFloor: O } = s(R ?? "", u, z, A, b);
|
|
10948
|
-
|
|
10948
|
+
M(V), O !== void 0 && d(O), x && t.ROLE === "DISPLAY_APP" && d(_);
|
|
10949
10949
|
}, [u, z, c, a, A, b, R, t.ROLE, r, n, s, x, d, _]);
|
|
10950
10950
|
const T = r1(() => {
|
|
10951
10951
|
a.flat().forEach((V) => V.escalatorMeshes = []);
|
|
@@ -10955,17 +10955,17 @@ const Zl = L4((e, l) => {
|
|
|
10955
10955
|
if (t.ROLE === "PORTAL")
|
|
10956
10956
|
if (S) {
|
|
10957
10957
|
const y = z.getObjectByProperty("object_id", S);
|
|
10958
|
-
y &&
|
|
10958
|
+
y && M([y]);
|
|
10959
10959
|
} else
|
|
10960
|
-
T(),
|
|
10961
|
-
else u || (T(),
|
|
10960
|
+
T(), M([]);
|
|
10961
|
+
else u || (T(), M([]));
|
|
10962
10962
|
return;
|
|
10963
10963
|
}
|
|
10964
10964
|
u || a.forEach((y) => {
|
|
10965
10965
|
y.escalatorMeshes = [];
|
|
10966
10966
|
});
|
|
10967
10967
|
const { routePaths: V, fromFloor: O } = m(r, R, S, z, a, f.escalator_nodes, c, b);
|
|
10968
|
-
|
|
10968
|
+
M(V), O !== void 0 && d(O);
|
|
10969
10969
|
}, [R, S, z, H, a, h, c, b, f.escalator_nodes, u, t.ROLE, r, $, m, T, d]);
|
|
10970
10970
|
const t1 = f.meshParams[p];
|
|
10971
10971
|
p1(() => {
|
|
@@ -11060,7 +11060,7 @@ const Zl = L4((e, l) => {
|
|
|
11060
11060
|
B.current.object.position.lerpVectors(y.fromPosition, y.position, a1), B.current.target.lerpVectors(y == null ? void 0 : y.fromTarget, y.target, a1), B.current.object.updateProjectionMatrix(), a1 >= 1 && (C.current = null);
|
|
11061
11061
|
}
|
|
11062
11062
|
});
|
|
11063
|
-
const
|
|
11063
|
+
const N = r1((V) => {
|
|
11064
11064
|
if (V > 0) {
|
|
11065
11065
|
const O = q.retailers.find((y) => y.id === V);
|
|
11066
11066
|
if (O) {
|
|
@@ -11076,7 +11076,7 @@ const Zl = L4((e, l) => {
|
|
|
11076
11076
|
}, [l1, q, z]);
|
|
11077
11077
|
return d6(l, () => ({
|
|
11078
11078
|
resetCamera: F,
|
|
11079
|
-
createRouteToStore:
|
|
11079
|
+
createRouteToStore: N,
|
|
11080
11080
|
getInitialDistance: U
|
|
11081
11081
|
})), /* @__PURE__ */ f1("group", { rotation: [Math.PI / 2, 0, 0], ref: q1, children: [
|
|
11082
11082
|
/* @__PURE__ */ k(
|
|
@@ -11141,14 +11141,14 @@ const Zl = L4((e, l) => {
|
|
|
11141
11141
|
] })
|
|
11142
11142
|
] })
|
|
11143
11143
|
] }) }),
|
|
11144
|
-
/* @__PURE__ */ k("div", { className: "loading_map
|
|
11144
|
+
/* @__PURE__ */ k("div", { className: "loading_map", children: "Map loading, please wait..." }),
|
|
11145
11145
|
!["PORTAL", "DISPLAY_APP"].includes(a.ROLE) && /* @__PURE__ */ k("div", { className: `amenities ${_4.amenities}`, style: { display: "block" }, children: o.map((p, x) => f.includes(p.type) ? /* @__PURE__ */ k(
|
|
11146
11146
|
"div",
|
|
11147
11147
|
{
|
|
11148
11148
|
className: `amenity ${_4.amenity}`,
|
|
11149
11149
|
onClick: () => c(p.type),
|
|
11150
11150
|
children: /* @__PURE__ */ f1("div", { className: `content ${_4.content}`, children: [
|
|
11151
|
-
/* @__PURE__ */ k("div", { className: `icon ${_4.icon}`, dangerouslySetInnerHTML: { __html:
|
|
11151
|
+
/* @__PURE__ */ k("div", { className: `icon ${_4.icon}`, dangerouslySetInnerHTML: { __html: M9(p.type) } }),
|
|
11152
11152
|
/* @__PURE__ */ k("div", { className: `name ${_4.name}`, children: p.name })
|
|
11153
11153
|
] })
|
|
11154
11154
|
},
|
|
@@ -11425,7 +11425,7 @@ function Et() {
|
|
|
11425
11425
|
function G(T) {
|
|
11426
11426
|
return u(T) === a;
|
|
11427
11427
|
}
|
|
11428
|
-
function
|
|
11428
|
+
function M(T) {
|
|
11429
11429
|
return u(T) === c;
|
|
11430
11430
|
}
|
|
11431
11431
|
function B(T) {
|
|
@@ -11458,7 +11458,7 @@ function Et() {
|
|
|
11458
11458
|
function e1(T) {
|
|
11459
11459
|
return u(T) === m;
|
|
11460
11460
|
}
|
|
11461
|
-
S1.AsyncMode = d, S1.ConcurrentMode = A, S1.ContextConsumer = E, S1.ContextProvider = w, S1.Element = P, S1.ForwardRef = D, S1.Fragment = K, S1.Lazy = W, S1.Memo = l1, S1.Portal = $, S1.Profiler = Q, S1.StrictMode = Z, S1.Suspense = Y, S1.isAsyncMode = q1, S1.isConcurrentMode = G, S1.isContextConsumer =
|
|
11461
|
+
S1.AsyncMode = d, S1.ConcurrentMode = A, S1.ContextConsumer = E, S1.ContextProvider = w, S1.Element = P, S1.ForwardRef = D, S1.Fragment = K, S1.Lazy = W, S1.Memo = l1, S1.Portal = $, S1.Profiler = Q, S1.StrictMode = Z, S1.Suspense = Y, S1.isAsyncMode = q1, S1.isConcurrentMode = G, S1.isContextConsumer = M, S1.isContextProvider = B, S1.isElement = H, S1.isForwardRef = z, S1.isFragment = C, S1.isLazy = b, S1.isMemo = h, S1.isPortal = R, S1.isProfiler = j, S1.isStrictMode = F, S1.isSuspense = e1, S1.isValidElementType = g, S1.typeOf = u;
|
|
11462
11462
|
}()), S1;
|
|
11463
11463
|
}
|
|
11464
11464
|
var z8;
|
|
@@ -11527,10 +11527,10 @@ var R3, w8;
|
|
|
11527
11527
|
function f5() {
|
|
11528
11528
|
return w8 || (w8 = 1, R3 = Function.call.bind(Object.prototype.hasOwnProperty)), R3;
|
|
11529
11529
|
}
|
|
11530
|
-
var z3,
|
|
11530
|
+
var z3, M8;
|
|
11531
11531
|
function St() {
|
|
11532
|
-
if (
|
|
11533
|
-
|
|
11532
|
+
if (M8) return z3;
|
|
11533
|
+
M8 = 1;
|
|
11534
11534
|
var e = function() {
|
|
11535
11535
|
};
|
|
11536
11536
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -11576,10 +11576,10 @@ function St() {
|
|
|
11576
11576
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
11577
11577
|
}, z3 = n, z3;
|
|
11578
11578
|
}
|
|
11579
|
-
var O3,
|
|
11579
|
+
var O3, N8;
|
|
11580
11580
|
function Rt() {
|
|
11581
|
-
if (
|
|
11582
|
-
|
|
11581
|
+
if (N8) return O3;
|
|
11582
|
+
N8 = 1;
|
|
11583
11583
|
var e = d5(), l = At(), t = O6(), o = f5(), n = St(), r = function() {
|
|
11584
11584
|
};
|
|
11585
11585
|
process.env.NODE_ENV !== "production" && (r = function(c) {
|
|
@@ -11596,9 +11596,9 @@ function Rt() {
|
|
|
11596
11596
|
return O3 = function(c, i) {
|
|
11597
11597
|
var a = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
|
|
11598
11598
|
function m(G) {
|
|
11599
|
-
var
|
|
11600
|
-
if (typeof
|
|
11601
|
-
return
|
|
11599
|
+
var M = G && (a && G[a] || G[s]);
|
|
11600
|
+
if (typeof M == "function")
|
|
11601
|
+
return M;
|
|
11602
11602
|
}
|
|
11603
11603
|
var v = "<<anonymous>>", I = {
|
|
11604
11604
|
array: _("array"),
|
|
@@ -11621,16 +11621,16 @@ function Rt() {
|
|
|
11621
11621
|
shape: W,
|
|
11622
11622
|
exact: l1
|
|
11623
11623
|
};
|
|
11624
|
-
function f(G,
|
|
11625
|
-
return G ===
|
|
11624
|
+
function f(G, M) {
|
|
11625
|
+
return G === M ? G !== 0 || 1 / G === 1 / M : G !== G && M !== M;
|
|
11626
11626
|
}
|
|
11627
|
-
function p(G,
|
|
11628
|
-
this.message = G, this.data =
|
|
11627
|
+
function p(G, M) {
|
|
11628
|
+
this.message = G, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
|
|
11629
11629
|
}
|
|
11630
11630
|
p.prototype = Error.prototype;
|
|
11631
11631
|
function x(G) {
|
|
11632
11632
|
if (process.env.NODE_ENV !== "production")
|
|
11633
|
-
var
|
|
11633
|
+
var M = {}, B = 0;
|
|
11634
11634
|
function H(C, b, h, R, j, F, e1) {
|
|
11635
11635
|
if (R = R || v, F = F || h, e1 !== t) {
|
|
11636
11636
|
if (i) {
|
|
@@ -11640,10 +11640,10 @@ function Rt() {
|
|
|
11640
11640
|
throw T.name = "Invariant Violation", T;
|
|
11641
11641
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
11642
11642
|
var t1 = R + ":" + h;
|
|
11643
|
-
!
|
|
11643
|
+
!M[t1] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
11644
11644
|
B < 3 && (r(
|
|
11645
11645
|
"You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + R + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
11646
|
-
),
|
|
11646
|
+
), M[t1] = !0, B++);
|
|
11647
11647
|
}
|
|
11648
11648
|
}
|
|
11649
11649
|
return b[h] == null ? C ? b[h] === null ? new p("The " + j + " `" + F + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new p("The " + j + " `" + F + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : G(b, h, R, j, F);
|
|
@@ -11652,7 +11652,7 @@ function Rt() {
|
|
|
11652
11652
|
return z.isRequired = H.bind(null, !0), z;
|
|
11653
11653
|
}
|
|
11654
11654
|
function _(G) {
|
|
11655
|
-
function
|
|
11655
|
+
function M(B, H, z, C, b, h) {
|
|
11656
11656
|
var R = B[H], j = Z(R);
|
|
11657
11657
|
if (j !== G) {
|
|
11658
11658
|
var F = Y(R);
|
|
@@ -11663,13 +11663,13 @@ function Rt() {
|
|
|
11663
11663
|
}
|
|
11664
11664
|
return null;
|
|
11665
11665
|
}
|
|
11666
|
-
return x(
|
|
11666
|
+
return x(M);
|
|
11667
11667
|
}
|
|
11668
11668
|
function S() {
|
|
11669
11669
|
return x(q);
|
|
11670
11670
|
}
|
|
11671
11671
|
function g(G) {
|
|
11672
|
-
function
|
|
11672
|
+
function M(B, H, z, C, b) {
|
|
11673
11673
|
if (typeof G != "function")
|
|
11674
11674
|
return new p("Property `" + b + "` of component `" + z + "` has invalid PropType notation inside arrayOf.");
|
|
11675
11675
|
var h = B[H];
|
|
@@ -11684,11 +11684,11 @@ function Rt() {
|
|
|
11684
11684
|
}
|
|
11685
11685
|
return null;
|
|
11686
11686
|
}
|
|
11687
|
-
return x(
|
|
11687
|
+
return x(M);
|
|
11688
11688
|
}
|
|
11689
11689
|
function u() {
|
|
11690
|
-
function G(
|
|
11691
|
-
var b =
|
|
11690
|
+
function G(M, B, H, z, C) {
|
|
11691
|
+
var b = M[B];
|
|
11692
11692
|
if (!c(b)) {
|
|
11693
11693
|
var h = Z(b);
|
|
11694
11694
|
return new p("Invalid " + z + " `" + C + "` of type " + ("`" + h + "` supplied to `" + H + "`, expected a single ReactElement."));
|
|
@@ -11698,8 +11698,8 @@ function Rt() {
|
|
|
11698
11698
|
return x(G);
|
|
11699
11699
|
}
|
|
11700
11700
|
function d() {
|
|
11701
|
-
function G(
|
|
11702
|
-
var b =
|
|
11701
|
+
function G(M, B, H, z, C) {
|
|
11702
|
+
var b = M[B];
|
|
11703
11703
|
if (!e.isValidElementType(b)) {
|
|
11704
11704
|
var h = Z(b);
|
|
11705
11705
|
return new p("Invalid " + z + " `" + C + "` of type " + ("`" + h + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
|
@@ -11709,21 +11709,21 @@ function Rt() {
|
|
|
11709
11709
|
return x(G);
|
|
11710
11710
|
}
|
|
11711
11711
|
function A(G) {
|
|
11712
|
-
function
|
|
11712
|
+
function M(B, H, z, C, b) {
|
|
11713
11713
|
if (!(B[H] instanceof G)) {
|
|
11714
11714
|
var h = G.name || v, R = q1(B[H]);
|
|
11715
11715
|
return new p("Invalid " + C + " `" + b + "` of type " + ("`" + R + "` supplied to `" + z + "`, expected ") + ("instance of `" + h + "`."));
|
|
11716
11716
|
}
|
|
11717
11717
|
return null;
|
|
11718
11718
|
}
|
|
11719
|
-
return x(
|
|
11719
|
+
return x(M);
|
|
11720
11720
|
}
|
|
11721
11721
|
function E(G) {
|
|
11722
11722
|
if (!Array.isArray(G))
|
|
11723
11723
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
11724
11724
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
11725
11725
|
) : r("Invalid argument supplied to oneOf, expected an array.")), q;
|
|
11726
|
-
function
|
|
11726
|
+
function M(B, H, z, C, b) {
|
|
11727
11727
|
for (var h = B[H], R = 0; R < G.length; R++)
|
|
11728
11728
|
if (f(h, G[R]))
|
|
11729
11729
|
return null;
|
|
@@ -11733,10 +11733,10 @@ function Rt() {
|
|
|
11733
11733
|
});
|
|
11734
11734
|
return new p("Invalid " + C + " `" + b + "` of value `" + String(h) + "` " + ("supplied to `" + z + "`, expected one of " + j + "."));
|
|
11735
11735
|
}
|
|
11736
|
-
return x(
|
|
11736
|
+
return x(M);
|
|
11737
11737
|
}
|
|
11738
11738
|
function w(G) {
|
|
11739
|
-
function
|
|
11739
|
+
function M(B, H, z, C, b) {
|
|
11740
11740
|
if (typeof G != "function")
|
|
11741
11741
|
return new p("Property `" + b + "` of component `" + z + "` has invalid PropType notation inside objectOf.");
|
|
11742
11742
|
var h = B[H], R = Z(h);
|
|
@@ -11750,16 +11750,16 @@ function Rt() {
|
|
|
11750
11750
|
}
|
|
11751
11751
|
return null;
|
|
11752
11752
|
}
|
|
11753
|
-
return x(
|
|
11753
|
+
return x(M);
|
|
11754
11754
|
}
|
|
11755
11755
|
function P(G) {
|
|
11756
11756
|
if (!Array.isArray(G))
|
|
11757
11757
|
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), q;
|
|
11758
|
-
for (var
|
|
11759
|
-
var B = G[
|
|
11758
|
+
for (var M = 0; M < G.length; M++) {
|
|
11759
|
+
var B = G[M];
|
|
11760
11760
|
if (typeof B != "function")
|
|
11761
11761
|
return r(
|
|
11762
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(B) + " at index " +
|
|
11762
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(B) + " at index " + M + "."
|
|
11763
11763
|
), q;
|
|
11764
11764
|
}
|
|
11765
11765
|
function H(z, C, b, h, R) {
|
|
@@ -11775,18 +11775,18 @@ function Rt() {
|
|
|
11775
11775
|
return x(H);
|
|
11776
11776
|
}
|
|
11777
11777
|
function D() {
|
|
11778
|
-
function G(
|
|
11779
|
-
return $(
|
|
11778
|
+
function G(M, B, H, z, C) {
|
|
11779
|
+
return $(M[B]) ? null : new p("Invalid " + z + " `" + C + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
|
|
11780
11780
|
}
|
|
11781
11781
|
return x(G);
|
|
11782
11782
|
}
|
|
11783
|
-
function K(G,
|
|
11783
|
+
function K(G, M, B, H, z) {
|
|
11784
11784
|
return new p(
|
|
11785
|
-
(G || "React class") + ": " +
|
|
11785
|
+
(G || "React class") + ": " + M + " type `" + B + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + z + "`."
|
|
11786
11786
|
);
|
|
11787
11787
|
}
|
|
11788
11788
|
function W(G) {
|
|
11789
|
-
function
|
|
11789
|
+
function M(B, H, z, C, b) {
|
|
11790
11790
|
var h = B[H], R = Z(h);
|
|
11791
11791
|
if (R !== "object")
|
|
11792
11792
|
return new p("Invalid " + C + " `" + b + "` of type `" + R + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
@@ -11800,10 +11800,10 @@ function Rt() {
|
|
|
11800
11800
|
}
|
|
11801
11801
|
return null;
|
|
11802
11802
|
}
|
|
11803
|
-
return x(
|
|
11803
|
+
return x(M);
|
|
11804
11804
|
}
|
|
11805
11805
|
function l1(G) {
|
|
11806
|
-
function
|
|
11806
|
+
function M(B, H, z, C, b) {
|
|
11807
11807
|
var h = B[H], R = Z(h);
|
|
11808
11808
|
if (R !== "object")
|
|
11809
11809
|
return new p("Invalid " + C + " `" + b + "` of type `" + R + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
@@ -11823,7 +11823,7 @@ Valid keys: ` + JSON.stringify(Object.keys(G), null, " ")
|
|
|
11823
11823
|
}
|
|
11824
11824
|
return null;
|
|
11825
11825
|
}
|
|
11826
|
-
return x(
|
|
11826
|
+
return x(M);
|
|
11827
11827
|
}
|
|
11828
11828
|
function $(G) {
|
|
11829
11829
|
switch (typeof G) {
|
|
@@ -11838,10 +11838,10 @@ Valid keys: ` + JSON.stringify(Object.keys(G), null, " ")
|
|
|
11838
11838
|
return G.every($);
|
|
11839
11839
|
if (G === null || c(G))
|
|
11840
11840
|
return !0;
|
|
11841
|
-
var
|
|
11842
|
-
if (
|
|
11843
|
-
var B =
|
|
11844
|
-
if (
|
|
11841
|
+
var M = m(G);
|
|
11842
|
+
if (M) {
|
|
11843
|
+
var B = M.call(G), H;
|
|
11844
|
+
if (M !== G.entries) {
|
|
11845
11845
|
for (; !(H = B.next()).done; )
|
|
11846
11846
|
if (!$(H.value))
|
|
11847
11847
|
return !1;
|
|
@@ -11858,37 +11858,37 @@ Valid keys: ` + JSON.stringify(Object.keys(G), null, " ")
|
|
|
11858
11858
|
return !1;
|
|
11859
11859
|
}
|
|
11860
11860
|
}
|
|
11861
|
-
function Q(G,
|
|
11862
|
-
return G === "symbol" ? !0 :
|
|
11861
|
+
function Q(G, M) {
|
|
11862
|
+
return G === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
|
|
11863
11863
|
}
|
|
11864
11864
|
function Z(G) {
|
|
11865
|
-
var
|
|
11866
|
-
return Array.isArray(G) ? "array" : G instanceof RegExp ? "object" : Q(
|
|
11865
|
+
var M = typeof G;
|
|
11866
|
+
return Array.isArray(G) ? "array" : G instanceof RegExp ? "object" : Q(M, G) ? "symbol" : M;
|
|
11867
11867
|
}
|
|
11868
11868
|
function Y(G) {
|
|
11869
11869
|
if (typeof G > "u" || G === null)
|
|
11870
11870
|
return "" + G;
|
|
11871
|
-
var
|
|
11872
|
-
if (
|
|
11871
|
+
var M = Z(G);
|
|
11872
|
+
if (M === "object") {
|
|
11873
11873
|
if (G instanceof Date)
|
|
11874
11874
|
return "date";
|
|
11875
11875
|
if (G instanceof RegExp)
|
|
11876
11876
|
return "regexp";
|
|
11877
11877
|
}
|
|
11878
|
-
return
|
|
11878
|
+
return M;
|
|
11879
11879
|
}
|
|
11880
11880
|
function L(G) {
|
|
11881
|
-
var
|
|
11882
|
-
switch (
|
|
11881
|
+
var M = Y(G);
|
|
11882
|
+
switch (M) {
|
|
11883
11883
|
case "array":
|
|
11884
11884
|
case "object":
|
|
11885
|
-
return "an " +
|
|
11885
|
+
return "an " + M;
|
|
11886
11886
|
case "boolean":
|
|
11887
11887
|
case "date":
|
|
11888
11888
|
case "regexp":
|
|
11889
|
-
return "a " +
|
|
11889
|
+
return "a " + M;
|
|
11890
11890
|
default:
|
|
11891
|
-
return
|
|
11891
|
+
return M;
|
|
11892
11892
|
}
|
|
11893
11893
|
}
|
|
11894
11894
|
function q1(G) {
|
|
@@ -11954,7 +11954,7 @@ var wt = U3.exports;
|
|
|
11954
11954
|
const m1 = /* @__PURE__ */ z6(wt), P8 = {
|
|
11955
11955
|
disabled: !1
|
|
11956
11956
|
};
|
|
11957
|
-
var
|
|
11957
|
+
var Mt = process.env.NODE_ENV !== "production" ? m1.oneOfType([m1.number, m1.shape({
|
|
11958
11958
|
enter: m1.number,
|
|
11959
11959
|
exit: m1.number,
|
|
11960
11960
|
appear: m1.number
|
|
@@ -11972,7 +11972,7 @@ process.env.NODE_ENV !== "production" && m1.oneOfType([m1.string, m1.shape({
|
|
|
11972
11972
|
exitActive: m1.string
|
|
11973
11973
|
})]);
|
|
11974
11974
|
const x5 = Y1.createContext(null);
|
|
11975
|
-
var
|
|
11975
|
+
var Nt = function(l) {
|
|
11976
11976
|
return l.scrollTop;
|
|
11977
11977
|
}, o2 = "unmounted", E4 = "exited", v4 = "entering", A4 = "entered", $3 = "exiting", g4 = /* @__PURE__ */ function(e) {
|
|
11978
11978
|
ut(l, e);
|
|
@@ -12014,7 +12014,7 @@ var Mt = function(l) {
|
|
|
12014
12014
|
if (this.cancelNextCallback(), r === v4) {
|
|
12015
12015
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
12016
12016
|
var q = this.props.nodeRef ? this.props.nodeRef.current : X4.findDOMNode(this);
|
|
12017
|
-
q &&
|
|
12017
|
+
q && Nt(q);
|
|
12018
12018
|
}
|
|
12019
12019
|
this.performEnter(n);
|
|
12020
12020
|
} else
|
|
@@ -12199,7 +12199,7 @@ g4.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
12199
12199
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
12200
12200
|
*/
|
|
12201
12201
|
timeout: function(l) {
|
|
12202
|
-
var t =
|
|
12202
|
+
var t = Mt;
|
|
12203
12203
|
l.addEndListener || (t = t.isRequired);
|
|
12204
12204
|
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++)
|
|
12205
12205
|
n[r - 1] = arguments[r];
|
|
@@ -12647,7 +12647,7 @@ function sn(e) {
|
|
|
12647
12647
|
}
|
|
12648
12648
|
const I5 = /* @__PURE__ */ m6(Q4 ? window : void 0);
|
|
12649
12649
|
I5.Provider;
|
|
12650
|
-
function
|
|
12650
|
+
function M6() {
|
|
12651
12651
|
return Q1(I5);
|
|
12652
12652
|
}
|
|
12653
12653
|
const cn = {
|
|
@@ -12676,7 +12676,7 @@ const cn = {
|
|
|
12676
12676
|
);
|
|
12677
12677
|
s3.displayName = "Feedback";
|
|
12678
12678
|
s3.propTypes = cn;
|
|
12679
|
-
const h4 = /* @__PURE__ */ s1.createContext({}),
|
|
12679
|
+
const h4 = /* @__PURE__ */ s1.createContext({}), N6 = /* @__PURE__ */ s1.forwardRef(({
|
|
12680
12680
|
id: e,
|
|
12681
12681
|
bsPrefix: l,
|
|
12682
12682
|
className: t,
|
|
@@ -12698,7 +12698,7 @@ const h4 = /* @__PURE__ */ s1.createContext({}), M6 = /* @__PURE__ */ s1.forward
|
|
|
12698
12698
|
className: L1(t, l, n && "is-valid", r && "is-invalid")
|
|
12699
12699
|
});
|
|
12700
12700
|
});
|
|
12701
|
-
|
|
12701
|
+
N6.displayName = "FormCheckInput";
|
|
12702
12702
|
const j2 = /* @__PURE__ */ s1.forwardRef(({
|
|
12703
12703
|
bsPrefix: e,
|
|
12704
12704
|
className: l,
|
|
@@ -12743,7 +12743,7 @@ const C5 = /* @__PURE__ */ s1.forwardRef(({
|
|
|
12743
12743
|
controlId: u
|
|
12744
12744
|
} = Q1(h4), d = W1(() => ({
|
|
12745
12745
|
controlId: e || u
|
|
12746
|
-
}), [u, e]), A = !x && p != null && p !== !1 || ln(x, j2), E = /* @__PURE__ */ k(
|
|
12746
|
+
}), [u, e]), A = !x && p != null && p !== !1 || ln(x, j2), E = /* @__PURE__ */ k(N6, {
|
|
12747
12747
|
...S,
|
|
12748
12748
|
type: f === "switch" ? "checkbox" : f,
|
|
12749
12749
|
ref: g,
|
|
@@ -12772,7 +12772,7 @@ const C5 = /* @__PURE__ */ s1.forwardRef(({
|
|
|
12772
12772
|
});
|
|
12773
12773
|
C5.displayName = "FormCheck";
|
|
12774
12774
|
const X2 = Object.assign(C5, {
|
|
12775
|
-
Input:
|
|
12775
|
+
Input: N6,
|
|
12776
12776
|
Label: j2
|
|
12777
12777
|
}), E5 = /* @__PURE__ */ s1.forwardRef(({
|
|
12778
12778
|
bsPrefix: e,
|
|
@@ -13010,7 +13010,7 @@ function V8(e) {
|
|
|
13010
13010
|
function hn() {
|
|
13011
13011
|
return c1(null);
|
|
13012
13012
|
}
|
|
13013
|
-
function
|
|
13013
|
+
function M3(e) {
|
|
13014
13014
|
e === void 0 && (e = i3());
|
|
13015
13015
|
try {
|
|
13016
13016
|
var l = e.activeElement;
|
|
@@ -13081,16 +13081,16 @@ class B6 {
|
|
|
13081
13081
|
return !!this.modals.length && this.modals[this.modals.length - 1] === l;
|
|
13082
13082
|
}
|
|
13083
13083
|
}
|
|
13084
|
-
const
|
|
13084
|
+
const N3 = (e, l) => Q4 ? e == null ? (l || i3()).body : (typeof e == "function" && (e = e()), e && "current" in e && (e = e.current), e && ("nodeType" in e || e.getBoundingClientRect) ? e : null) : null;
|
|
13085
13085
|
function _n(e, l) {
|
|
13086
|
-
const t =
|
|
13086
|
+
const t = M6(), [o, n] = c1(() => N3(e, t == null ? void 0 : t.document));
|
|
13087
13087
|
if (!o) {
|
|
13088
|
-
const r =
|
|
13088
|
+
const r = N3(e);
|
|
13089
13089
|
r && n(r);
|
|
13090
13090
|
}
|
|
13091
13091
|
return p1(() => {
|
|
13092
13092
|
}, [l, o]), p1(() => {
|
|
13093
|
-
const r =
|
|
13093
|
+
const r = N3(e);
|
|
13094
13094
|
r !== o && n(r);
|
|
13095
13095
|
}, [e, o]), o;
|
|
13096
13096
|
}
|
|
@@ -13248,8 +13248,8 @@ function wn(e) {
|
|
|
13248
13248
|
ownerDocument: e == null ? void 0 : e.document
|
|
13249
13249
|
})), L3;
|
|
13250
13250
|
}
|
|
13251
|
-
function
|
|
13252
|
-
const l =
|
|
13251
|
+
function Mn(e) {
|
|
13252
|
+
const l = M6(), t = e || wn(l), o = v1({
|
|
13253
13253
|
dialog: null,
|
|
13254
13254
|
backdrop: null
|
|
13255
13255
|
});
|
|
@@ -13265,7 +13265,7 @@ function Nn(e) {
|
|
|
13265
13265
|
}, [])
|
|
13266
13266
|
});
|
|
13267
13267
|
}
|
|
13268
|
-
const
|
|
13268
|
+
const M5 = /* @__PURE__ */ L4((e, l) => {
|
|
13269
13269
|
let {
|
|
13270
13270
|
show: t = !1,
|
|
13271
13271
|
role: o = "dialog",
|
|
@@ -13298,8 +13298,8 @@ const N5 = /* @__PURE__ */ L4((e, l) => {
|
|
|
13298
13298
|
onEntering: l1,
|
|
13299
13299
|
onEntered: $
|
|
13300
13300
|
} = e, Q = Tn(e, On);
|
|
13301
|
-
const Z =
|
|
13302
|
-
d6(l, () => L, [L]), Q4 && !G && t && (H.current =
|
|
13301
|
+
const Z = M6(), Y = _n(A), L = Mn(d), q1 = Zt(), G = Yt(t), [M, B] = c1(!t), H = v1(null);
|
|
13302
|
+
d6(l, () => L, [L]), Q4 && !G && t && (H.current = M3(Z == null ? void 0 : Z.document)), t && M && B(!1);
|
|
13303
13303
|
const z = S4(() => {
|
|
13304
13304
|
if (L.add(), F.current = W2(document, "keydown", R), j.current = W2(
|
|
13305
13305
|
document,
|
|
@@ -13309,8 +13309,8 @@ const N5 = /* @__PURE__ */ L4((e, l) => {
|
|
|
13309
13309
|
() => setTimeout(b),
|
|
13310
13310
|
!0
|
|
13311
13311
|
), E && E(), p) {
|
|
13312
|
-
var J,
|
|
13313
|
-
const V =
|
|
13312
|
+
var J, N;
|
|
13313
|
+
const V = M3((J = (N = L.dialog) == null ? void 0 : N.ownerDocument) != null ? J : Z == null ? void 0 : Z.document);
|
|
13314
13314
|
L.dialog && V && !k8(L.dialog, V) && (H.current = V, L.dialog.focus());
|
|
13315
13315
|
}
|
|
13316
13316
|
}), C = S4(() => {
|
|
@@ -13327,14 +13327,14 @@ const N5 = /* @__PURE__ */ L4((e, l) => {
|
|
|
13327
13327
|
/* should never change: */
|
|
13328
13328
|
z
|
|
13329
13329
|
]), p1(() => {
|
|
13330
|
-
|
|
13331
|
-
}, [
|
|
13330
|
+
M && C();
|
|
13331
|
+
}, [M, C]), gn(() => {
|
|
13332
13332
|
C();
|
|
13333
13333
|
});
|
|
13334
13334
|
const b = S4(() => {
|
|
13335
13335
|
if (!x || !q1() || !L.isTopModal())
|
|
13336
13336
|
return;
|
|
13337
|
-
const J =
|
|
13337
|
+
const J = M3(Z == null ? void 0 : Z.document);
|
|
13338
13338
|
L.dialog && J && !k8(L.dialog, J) && L.dialog.focus();
|
|
13339
13339
|
}), h = S4((J) => {
|
|
13340
13340
|
J.target === J.currentTarget && (a == null || a(J), c === !0 && w());
|
|
@@ -13389,8 +13389,8 @@ const N5 = /* @__PURE__ */ L4((e, l) => {
|
|
|
13389
13389
|
}), Y)
|
|
13390
13390
|
});
|
|
13391
13391
|
});
|
|
13392
|
-
|
|
13393
|
-
const
|
|
13392
|
+
M5.displayName = "Modal";
|
|
13393
|
+
const Nn = Object.assign(M5, {
|
|
13394
13394
|
Manager: B6
|
|
13395
13395
|
});
|
|
13396
13396
|
function Ln(e, l) {
|
|
@@ -13442,7 +13442,7 @@ let P3;
|
|
|
13442
13442
|
function Gn(e) {
|
|
13443
13443
|
return P3 || (P3 = new Bn(e)), P3;
|
|
13444
13444
|
}
|
|
13445
|
-
const
|
|
13445
|
+
const N5 = /* @__PURE__ */ s1.forwardRef(({
|
|
13446
13446
|
className: e,
|
|
13447
13447
|
bsPrefix: l,
|
|
13448
13448
|
as: t = "div",
|
|
@@ -13452,7 +13452,7 @@ const M5 = /* @__PURE__ */ s1.forwardRef(({
|
|
|
13452
13452
|
className: L1(e, l),
|
|
13453
13453
|
...o
|
|
13454
13454
|
})));
|
|
13455
|
-
|
|
13455
|
+
N5.displayName = "ModalBody";
|
|
13456
13456
|
const L5 = /* @__PURE__ */ s1.createContext({
|
|
13457
13457
|
onHide() {
|
|
13458
13458
|
}
|
|
@@ -13585,7 +13585,7 @@ const k5 = /* @__PURE__ */ s1.forwardRef(({
|
|
|
13585
13585
|
manager: $,
|
|
13586
13586
|
...Q
|
|
13587
13587
|
}, Z) => {
|
|
13588
|
-
const [Y, L] = c1({}), [q1, G] = c1(!1),
|
|
13588
|
+
const [Y, L] = c1({}), [q1, G] = c1(!1), M = v1(!1), B = v1(!1), H = v1(null), [z, C] = hn(), b = g5(Z, C), h = l6(_), R = ht();
|
|
13589
13589
|
e = X1(e, "modal");
|
|
13590
13590
|
const j = W1(() => ({
|
|
13591
13591
|
onHide: h
|
|
@@ -13610,18 +13610,18 @@ const k5 = /* @__PURE__ */ s1.forwardRef(({
|
|
|
13610
13610
|
e6(window, "resize", T), H.current == null || H.current();
|
|
13611
13611
|
});
|
|
13612
13612
|
const t1 = () => {
|
|
13613
|
-
|
|
13613
|
+
M.current = !0;
|
|
13614
13614
|
}, U = (b1) => {
|
|
13615
|
-
|
|
13615
|
+
M.current && z && b1.target === z.dialog && (B.current = !0), M.current = !1;
|
|
13616
13616
|
}, J = () => {
|
|
13617
13617
|
G(!0), H.current = p5(z.dialog, () => {
|
|
13618
13618
|
G(!1);
|
|
13619
13619
|
});
|
|
13620
|
-
},
|
|
13620
|
+
}, N = (b1) => {
|
|
13621
13621
|
b1.target === b1.currentTarget && J();
|
|
13622
13622
|
}, V = (b1) => {
|
|
13623
13623
|
if (I === "static") {
|
|
13624
|
-
|
|
13624
|
+
N(b1);
|
|
13625
13625
|
return;
|
|
13626
13626
|
}
|
|
13627
13627
|
if (B.current || b1.target !== b1.currentTarget) {
|
|
@@ -13642,15 +13642,15 @@ const k5 = /* @__PURE__ */ s1.forwardRef(({
|
|
|
13642
13642
|
}, y1 = r1((b1) => /* @__PURE__ */ k("div", {
|
|
13643
13643
|
...b1,
|
|
13644
13644
|
className: L1(`${e}-backdrop`, l1, !v && "show")
|
|
13645
|
-
}), [v, l1, e]),
|
|
13645
|
+
}), [v, l1, e]), M1 = {
|
|
13646
13646
|
...t,
|
|
13647
13647
|
...Y
|
|
13648
13648
|
};
|
|
13649
|
-
|
|
13649
|
+
M1.display = "block";
|
|
13650
13650
|
const P1 = (b1) => /* @__PURE__ */ k("div", {
|
|
13651
13651
|
role: "dialog",
|
|
13652
13652
|
...b1,
|
|
13653
|
-
style:
|
|
13653
|
+
style: M1,
|
|
13654
13654
|
className: L1(l, e, q1 && `${e}-static`, !v && "show"),
|
|
13655
13655
|
onClick: I ? V : void 0,
|
|
13656
13656
|
onMouseUp: U,
|
|
@@ -13668,7 +13668,7 @@ const k5 = /* @__PURE__ */ s1.forwardRef(({
|
|
|
13668
13668
|
});
|
|
13669
13669
|
return /* @__PURE__ */ k(L5.Provider, {
|
|
13670
13670
|
value: j,
|
|
13671
|
-
children: /* @__PURE__ */ k(
|
|
13671
|
+
children: /* @__PURE__ */ k(Nn, {
|
|
13672
13672
|
show: m,
|
|
13673
13673
|
ref: b,
|
|
13674
13674
|
backdrop: I,
|
|
@@ -13697,7 +13697,7 @@ const k5 = /* @__PURE__ */ s1.forwardRef(({
|
|
|
13697
13697
|
});
|
|
13698
13698
|
k5.displayName = "Modal";
|
|
13699
13699
|
const H8 = Object.assign(k5, {
|
|
13700
|
-
Body:
|
|
13700
|
+
Body: N5,
|
|
13701
13701
|
Header: B5,
|
|
13702
13702
|
Title: G5,
|
|
13703
13703
|
Footer: P5,
|
|
@@ -13780,27 +13780,27 @@ const Xn = "_retailerInfoModal_da5av_1", Hn = "_retailerInfoCloseBtn_da5av_11",
|
|
|
13780
13780
|
retailerDropdown: lo,
|
|
13781
13781
|
btn: to
|
|
13782
13782
|
};
|
|
13783
|
-
function
|
|
13783
|
+
function N4(e) {
|
|
13784
13784
|
"@babel/helpers - typeof";
|
|
13785
|
-
return
|
|
13785
|
+
return N4 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) {
|
|
13786
13786
|
return typeof l;
|
|
13787
13787
|
} : function(l) {
|
|
13788
13788
|
return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
|
|
13789
|
-
},
|
|
13789
|
+
}, N4(e);
|
|
13790
13790
|
}
|
|
13791
13791
|
function no(e, l) {
|
|
13792
|
-
if (
|
|
13792
|
+
if (N4(e) != "object" || !e) return e;
|
|
13793
13793
|
var t = e[Symbol.toPrimitive];
|
|
13794
13794
|
if (t !== void 0) {
|
|
13795
13795
|
var o = t.call(e, l);
|
|
13796
|
-
if (
|
|
13796
|
+
if (N4(o) != "object") return o;
|
|
13797
13797
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
13798
13798
|
}
|
|
13799
13799
|
return (l === "string" ? String : Number)(e);
|
|
13800
13800
|
}
|
|
13801
13801
|
function D5(e) {
|
|
13802
13802
|
var l = no(e, "string");
|
|
13803
|
-
return
|
|
13803
|
+
return N4(l) == "symbol" ? l : l + "";
|
|
13804
13804
|
}
|
|
13805
13805
|
function r2(e, l, t) {
|
|
13806
13806
|
return (l = D5(l)) in e ? Object.defineProperty(e, l, {
|
|
@@ -13951,7 +13951,7 @@ function mo(e) {
|
|
|
13951
13951
|
return e;
|
|
13952
13952
|
}
|
|
13953
13953
|
function fo(e, l) {
|
|
13954
|
-
if (l && (
|
|
13954
|
+
if (l && (N4(l) == "object" || typeof l == "function")) return l;
|
|
13955
13955
|
if (l !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
13956
13956
|
return mo(e);
|
|
13957
13957
|
}
|
|
@@ -14072,7 +14072,7 @@ function i4() {
|
|
|
14072
14072
|
function d4() {
|
|
14073
14073
|
return Z1(K4, o4);
|
|
14074
14074
|
}
|
|
14075
|
-
function
|
|
14075
|
+
function N2() {
|
|
14076
14076
|
return o4;
|
|
14077
14077
|
}
|
|
14078
14078
|
function x2(e, l) {
|
|
@@ -14127,7 +14127,7 @@ function To(e) {
|
|
|
14127
14127
|
function wo(e, l) {
|
|
14128
14128
|
for (; --l && i4() && !(D1 < 48 || D1 > 102 || D1 > 57 && D1 < 65 || D1 > 70 && D1 < 97); )
|
|
14129
14129
|
;
|
|
14130
|
-
return x2(e,
|
|
14130
|
+
return x2(e, N2() + (l < 6 && d4() == 32 && i4() == 32));
|
|
14131
14131
|
}
|
|
14132
14132
|
function r6(e) {
|
|
14133
14133
|
for (; i4(); )
|
|
@@ -14147,13 +14147,13 @@ function r6(e) {
|
|
|
14147
14147
|
}
|
|
14148
14148
|
return o4;
|
|
14149
14149
|
}
|
|
14150
|
-
function
|
|
14150
|
+
function Mo(e, l) {
|
|
14151
14151
|
for (; i4() && e + D1 !== 57; )
|
|
14152
14152
|
if (e + D1 === 84 && d4() === 47)
|
|
14153
14153
|
break;
|
|
14154
14154
|
return "/*" + x2(l, o4 - 1) + "*" + c3(e === 47 ? e : i4());
|
|
14155
14155
|
}
|
|
14156
|
-
function
|
|
14156
|
+
function No(e) {
|
|
14157
14157
|
for (; !a2(d4()); )
|
|
14158
14158
|
i4();
|
|
14159
14159
|
return x2(e, o4);
|
|
@@ -14181,13 +14181,13 @@ function P2(e, l, t, o, n, r, q, c, i) {
|
|
|
14181
14181
|
E += To(f);
|
|
14182
14182
|
break;
|
|
14183
14183
|
case 92:
|
|
14184
|
-
E += wo(
|
|
14184
|
+
E += wo(N2() - 1, 7);
|
|
14185
14185
|
continue;
|
|
14186
14186
|
case 47:
|
|
14187
14187
|
switch (d4()) {
|
|
14188
14188
|
case 42:
|
|
14189
14189
|
case 47:
|
|
14190
|
-
C2(Po(
|
|
14190
|
+
C2(Po(Mo(i4(), N2()), l, t), i);
|
|
14191
14191
|
break;
|
|
14192
14192
|
default:
|
|
14193
14193
|
E += "/";
|
|
@@ -14242,7 +14242,7 @@ function P2(e, l, t, o, n, r, q, c, i) {
|
|
|
14242
14242
|
c[a++] = (u4(E) - 1) * _, _ = 1;
|
|
14243
14243
|
break;
|
|
14244
14244
|
case 64:
|
|
14245
|
-
d4() === 45 && (E += L2(i4())), v = d4(), s = m = u4(g = E +=
|
|
14245
|
+
d4() === 45 && (E += L2(i4())), v = d4(), s = m = u4(g = E += No(N2())), S++;
|
|
14246
14246
|
break;
|
|
14247
14247
|
case 45:
|
|
14248
14248
|
f === 45 && u4(E) == 2 && (p = 0);
|
|
@@ -14667,7 +14667,7 @@ function Uo() {
|
|
|
14667
14667
|
function G(T) {
|
|
14668
14668
|
return u(T) === a;
|
|
14669
14669
|
}
|
|
14670
|
-
function
|
|
14670
|
+
function M(T) {
|
|
14671
14671
|
return u(T) === c;
|
|
14672
14672
|
}
|
|
14673
14673
|
function B(T) {
|
|
@@ -14700,7 +14700,7 @@ function Uo() {
|
|
|
14700
14700
|
function e1(T) {
|
|
14701
14701
|
return u(T) === m;
|
|
14702
14702
|
}
|
|
14703
|
-
z1.AsyncMode = d, z1.ConcurrentMode = A, z1.ContextConsumer = E, z1.ContextProvider = w, z1.Element = P, z1.ForwardRef = D, z1.Fragment = K, z1.Lazy = W, z1.Memo = l1, z1.Portal = $, z1.Profiler = Q, z1.StrictMode = Z, z1.Suspense = Y, z1.isAsyncMode = q1, z1.isConcurrentMode = G, z1.isContextConsumer =
|
|
14703
|
+
z1.AsyncMode = d, z1.ConcurrentMode = A, z1.ContextConsumer = E, z1.ContextProvider = w, z1.Element = P, z1.ForwardRef = D, z1.Fragment = K, z1.Lazy = W, z1.Memo = l1, z1.Portal = $, z1.Profiler = Q, z1.StrictMode = Z, z1.Suspense = Y, z1.isAsyncMode = q1, z1.isConcurrentMode = G, z1.isContextConsumer = M, z1.isContextProvider = B, z1.isElement = H, z1.isForwardRef = z, z1.isFragment = C, z1.isLazy = b, z1.isMemo = h, z1.isPortal = R, z1.isProfiler = j, z1.isStrictMode = F, z1.isSuspense = e1, z1.isValidElementType = g, z1.typeOf = u;
|
|
14704
14704
|
}()), z1;
|
|
14705
14705
|
}
|
|
14706
14706
|
process.env.NODE_ENV === "production" ? q6.exports = Jo() : q6.exports = Uo();
|
|
@@ -15226,7 +15226,7 @@ function wr(e, l) {
|
|
|
15226
15226
|
}
|
|
15227
15227
|
return q(!0), r;
|
|
15228
15228
|
}
|
|
15229
|
-
function
|
|
15229
|
+
function Mr(e, l, t, o) {
|
|
15230
15230
|
o === void 0 && (o = {});
|
|
15231
15231
|
const {
|
|
15232
15232
|
ancestorScroll: n = !0,
|
|
@@ -15262,7 +15262,7 @@ function Nr(e, l, t, o) {
|
|
|
15262
15262
|
}), m == null || m(), (_ = I) == null || _.disconnect(), I = null, i && cancelAnimationFrame(f);
|
|
15263
15263
|
};
|
|
15264
15264
|
}
|
|
15265
|
-
var s6 = C9,
|
|
15265
|
+
var s6 = C9, Nr = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], $2 = function() {
|
|
15266
15266
|
};
|
|
15267
15267
|
function Lr(e, l) {
|
|
15268
15268
|
return l ? l[0] === "-" ? e + l : e + "__" + l : e;
|
|
@@ -15281,10 +15281,10 @@ function Pr(e, l) {
|
|
|
15281
15281
|
}).join(" ");
|
|
15282
15282
|
}
|
|
15283
15283
|
var q9 = function(l) {
|
|
15284
|
-
return Xr(l) ? l.filter(Boolean) :
|
|
15284
|
+
return Xr(l) ? l.filter(Boolean) : N4(l) === "object" && l !== null ? [l] : [];
|
|
15285
15285
|
}, s7 = function(l) {
|
|
15286
15286
|
l.className, l.clearValue, l.cx, l.getStyles, l.getClassNames, l.getValue, l.hasValue, l.isMulti, l.isRtl, l.options, l.selectOption, l.selectProps, l.setValue, l.theme;
|
|
15287
|
-
var t = b4(l,
|
|
15287
|
+
var t = b4(l, Nr);
|
|
15288
15288
|
return x1({}, t);
|
|
15289
15289
|
}, B1 = function(l, t, o) {
|
|
15290
15290
|
var n = l.cx, r = l.getStyles, q = l.getClassNames, c = l.className;
|
|
@@ -15577,7 +15577,7 @@ var m7 = function(l) {
|
|
|
15577
15577
|
g();
|
|
15578
15578
|
}, [g]);
|
|
15579
15579
|
var u = r1(function() {
|
|
15580
|
-
typeof a.current == "function" && (a.current(), a.current = null), n && i.current && (a.current =
|
|
15580
|
+
typeof a.current == "function" && (a.current(), a.current = null), n && i.current && (a.current = Mr(n, i.current, g, {
|
|
15581
15581
|
elementResize: "ResizeObserver" in window
|
|
15582
15582
|
}));
|
|
15583
15583
|
}, [n, g]);
|
|
@@ -15816,7 +15816,7 @@ var gq = process.env.NODE_ENV === "production" ? {
|
|
|
15816
15816
|
paddingBottom: o.baseUnit * 2,
|
|
15817
15817
|
paddingTop: o.baseUnit * 2
|
|
15818
15818
|
};
|
|
15819
|
-
},
|
|
15819
|
+
}, Mq = function(l) {
|
|
15820
15820
|
var t = l.children, o = l.cx, n = l.getStyles, r = l.getClassNames, q = l.Heading, c = l.headingProps, i = l.innerProps, a = l.label, s = l.theme, m = l.selectProps;
|
|
15821
15821
|
return d1("div", h1({}, B1(l, "group", {
|
|
15822
15822
|
group: !0
|
|
@@ -15827,7 +15827,7 @@ var gq = process.env.NODE_ENV === "production" ? {
|
|
|
15827
15827
|
getClassNames: r,
|
|
15828
15828
|
cx: o
|
|
15829
15829
|
}), a), d1("div", null, t));
|
|
15830
|
-
},
|
|
15830
|
+
}, Nq = function(l, t) {
|
|
15831
15831
|
var o = l.theme, n = o.colors, r = o.spacing;
|
|
15832
15832
|
return x1({
|
|
15833
15833
|
label: "group",
|
|
@@ -15849,7 +15849,7 @@ var gq = process.env.NODE_ENV === "production" ? {
|
|
|
15849
15849
|
return d1("div", h1({}, B1(l, "groupHeading", {
|
|
15850
15850
|
"group-heading": !0
|
|
15851
15851
|
}), o));
|
|
15852
|
-
}, Pq =
|
|
15852
|
+
}, Pq = Mq, Fq = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Bq = function(l, t) {
|
|
15853
15853
|
var o = l.isDisabled, n = l.value, r = l.theme, q = r.spacing, c = r.colors;
|
|
15854
15854
|
return x1(x1({
|
|
15855
15855
|
visibility: o ? "hidden" : "visible",
|
|
@@ -16171,9 +16171,9 @@ var mi = process.env.NODE_ENV === "production" ? {
|
|
|
16171
16171
|
}, [m]), P = W1(function() {
|
|
16172
16172
|
var Q = "";
|
|
16173
16173
|
if (t && w.onChange) {
|
|
16174
|
-
var Z = t.option, Y = t.options, L = t.removedValue, q1 = t.removedValues, G = t.value,
|
|
16174
|
+
var Z = t.option, Y = t.options, L = t.removedValue, q1 = t.removedValues, G = t.value, M = function(R) {
|
|
16175
16175
|
return Array.isArray(R) ? null : R;
|
|
16176
|
-
}, B = L || Z ||
|
|
16176
|
+
}, B = L || Z || M(G), H = B ? v(B) : "", z = Y || q1 || void 0, C = z ? z.map(v) : [], b = x1({
|
|
16177
16177
|
// multiSelected items are usually items that have already been selected
|
|
16178
16178
|
// or set by the user as a default value so we assume they are not disabled
|
|
16179
16179
|
isDisabled: B && p(B, c),
|
|
@@ -16703,12 +16703,12 @@ var Ti = process.env.NODE_ENV === "production" ? {
|
|
|
16703
16703
|
onChange: function() {
|
|
16704
16704
|
}
|
|
16705
16705
|
});
|
|
16706
|
-
},
|
|
16706
|
+
}, Mi = wi;
|
|
16707
16707
|
function $6(e) {
|
|
16708
16708
|
var l;
|
|
16709
16709
|
return typeof window < "u" && window.navigator != null ? e.test(((l = window.navigator.userAgentData) === null || l === void 0 ? void 0 : l.platform) || window.navigator.platform) : !1;
|
|
16710
16710
|
}
|
|
16711
|
-
function
|
|
16711
|
+
function Ni() {
|
|
16712
16712
|
return $6(/^iPhone/i);
|
|
16713
16713
|
}
|
|
16714
16714
|
function y7() {
|
|
@@ -16719,7 +16719,7 @@ function Li() {
|
|
|
16719
16719
|
y7() && navigator.maxTouchPoints > 1;
|
|
16720
16720
|
}
|
|
16721
16721
|
function Pi() {
|
|
16722
|
-
return
|
|
16722
|
+
return Ni() || Li();
|
|
16723
16723
|
}
|
|
16724
16724
|
function Fi() {
|
|
16725
16725
|
return y7() || Pi();
|
|
@@ -16738,7 +16738,7 @@ var Bi = function(l) {
|
|
|
16738
16738
|
control: Rq,
|
|
16739
16739
|
dropdownIndicator: bq,
|
|
16740
16740
|
group: wq,
|
|
16741
|
-
groupHeading:
|
|
16741
|
+
groupHeading: Nq,
|
|
16742
16742
|
indicatorsContainer: dq,
|
|
16743
16743
|
indicatorSeparator: Iq,
|
|
16744
16744
|
input: Bq,
|
|
@@ -17689,7 +17689,7 @@ var z7 = function(l) {
|
|
|
17689
17689
|
menuPlacement: w,
|
|
17690
17690
|
menuPosition: P,
|
|
17691
17691
|
menuShouldScrollIntoView: W
|
|
17692
|
-
},
|
|
17692
|
+
}, M = /* @__PURE__ */ s1.createElement(Qr, h1({}, f, G), function(B) {
|
|
17693
17693
|
var H = B.ref, z = B.placerProps, C = z.placement, b = z.maxHeight;
|
|
17694
17694
|
return /* @__PURE__ */ s1.createElement(i, h1({}, f, G, {
|
|
17695
17695
|
innerRef: H,
|
|
@@ -17725,14 +17725,14 @@ var z7 = function(l) {
|
|
|
17725
17725
|
controlElement: this.controlRef,
|
|
17726
17726
|
menuPlacement: w,
|
|
17727
17727
|
menuPosition: P
|
|
17728
|
-
}),
|
|
17728
|
+
}), M) : M;
|
|
17729
17729
|
}
|
|
17730
17730
|
}, {
|
|
17731
17731
|
key: "renderFormField",
|
|
17732
17732
|
value: function() {
|
|
17733
17733
|
var n = this, r = this.props, q = r.delimiter, c = r.isDisabled, i = r.isMulti, a = r.name, s = r.required, m = this.state.selectValue;
|
|
17734
17734
|
if (s && !this.hasValue() && !c)
|
|
17735
|
-
return /* @__PURE__ */ s1.createElement(
|
|
17735
|
+
return /* @__PURE__ */ s1.createElement(Mi, {
|
|
17736
17736
|
name: a,
|
|
17737
17737
|
onFocus: this.onValueInputFocus
|
|
17738
17738
|
});
|
|
@@ -18025,87 +18025,87 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18025
18025
|
textareaField: Ca,
|
|
18026
18026
|
textField: Ea
|
|
18027
18027
|
}, Aa = (e) => {
|
|
18028
|
-
const { setData: l, selectedId: t, floorIndex: o, onObjectResetData: n, onObjectChangeData: r, onObjectNewData: q, triggerSceneUpdate: c } = e, { mapApiResponse: i, meshObject: a, allIndexedRetailers: s } = r4(), { getImage: m, processImage: v, layer_text_logo_position_by_id: I } = c5(), { getMaterial: f } = q3(), p = T9(w9), [x, _] = c1("retailer"), [S, g] = c1("retail_name"), [u, d] = c1(O2), [A, E] = c1(null), [, w] = E9(), P = v1({}), [D, K] = c1([]), W = r1((
|
|
18029
|
-
if (
|
|
18030
|
-
const V =
|
|
18028
|
+
const { setData: l, selectedId: t, floorIndex: o, onObjectResetData: n, onObjectChangeData: r, onObjectNewData: q, triggerSceneUpdate: c } = e, { mapApiResponse: i, meshObject: a, allIndexedRetailers: s } = r4(), { getImage: m, processImage: v, layer_text_logo_position_by_id: I } = c5(), { getMaterial: f } = q3(), p = T9(w9), [x, _] = c1("retailer"), [S, g] = c1("retail_name"), [u, d] = c1(O2), [A, E] = c1(null), [, w] = E9(), P = v1({}), [D, K] = c1([]), W = r1((N) => {
|
|
18029
|
+
if (N) {
|
|
18030
|
+
const V = N.reduce((O, y) => y.kiosk_id !== null ? [...O, y.kiosk_id] : O, []);
|
|
18031
18031
|
K([...V]);
|
|
18032
18032
|
}
|
|
18033
18033
|
}, []);
|
|
18034
18034
|
p1(() => {
|
|
18035
18035
|
W(i.map_objs);
|
|
18036
18036
|
}, [i, W]);
|
|
18037
|
-
const l1 = (
|
|
18038
|
-
const y =
|
|
18039
|
-
y ? (
|
|
18037
|
+
const l1 = (N, V, O) => {
|
|
18038
|
+
const y = N.userData.kioskConfig;
|
|
18039
|
+
y ? (N.userData.distanceFactor = V != null && V.lock_size ? 1500 : void 0, N.userData.kioskConfig = {
|
|
18040
18040
|
...y,
|
|
18041
18041
|
lockSize: V.lock_size,
|
|
18042
18042
|
blink: y.blink,
|
|
18043
18043
|
size: Number(V.size),
|
|
18044
18044
|
floorIndex: O,
|
|
18045
18045
|
text_color: V.text_color
|
|
18046
|
-
}) :
|
|
18046
|
+
}) : N.userData.kioskConfig = {
|
|
18047
18047
|
lockSize: V.lock_size,
|
|
18048
18048
|
blink: !1,
|
|
18049
18049
|
size: Number(V.size),
|
|
18050
18050
|
floorIndex: O,
|
|
18051
18051
|
text_color: V.text_color
|
|
18052
18052
|
};
|
|
18053
|
-
}, $ = r1(async (
|
|
18054
|
-
if (A !== (
|
|
18053
|
+
}, $ = r1(async (N, V) => {
|
|
18054
|
+
if (A !== (N == null ? void 0 : N.map_obj_name)) return;
|
|
18055
18055
|
let O = "";
|
|
18056
|
-
|
|
18056
|
+
N.layer_type === "retail_logo" ? O = await m(N, s[N.retailer_id || 0]) : O = await m(N), O && v(O, N, (y, n1) => {
|
|
18057
18057
|
V.geometry = y, V.material = n1;
|
|
18058
18058
|
const a1 = y.boundingBox, I1 = new w1();
|
|
18059
18059
|
if (a1) {
|
|
18060
18060
|
a1.getCenter(I1);
|
|
18061
18061
|
const y1 = new w1();
|
|
18062
|
-
a1.getSize(y1), V.object_id && I(V.object_id, I1, y1, V, { [V.object_id]: { ...
|
|
18062
|
+
a1.getSize(y1), V.object_id && I(V.object_id, I1, y1, V, { [V.object_id]: { ...N } });
|
|
18063
18063
|
}
|
|
18064
18064
|
});
|
|
18065
|
-
}, [m, I, A, v, s]), Q = r1((
|
|
18065
|
+
}, [m, I, A, v, s]), Q = r1((N, V) => {
|
|
18066
18066
|
e.meshFloors.meshParams.flat().filter((O) => O !== void 0).forEach((O) => {
|
|
18067
|
-
O.mesh.object_id === V && (O.mesh.userData.storeName =
|
|
18067
|
+
O.mesh.object_id === V && (O.mesh.userData.storeName = N);
|
|
18068
18068
|
});
|
|
18069
|
-
}, [e.meshFloors.meshParams]), Z = r1((
|
|
18070
|
-
if (!
|
|
18069
|
+
}, [e.meshFloors.meshParams]), Z = r1((N, V, O) => {
|
|
18070
|
+
if (!N || A !== (u == null ? void 0 : u.map_obj_name)) return;
|
|
18071
18071
|
let y = new a5(V, {
|
|
18072
|
-
font:
|
|
18072
|
+
font: N.userData && N.userData.font ? N.userData.font : p,
|
|
18073
18073
|
size: O,
|
|
18074
18074
|
height: 0.01,
|
|
18075
18075
|
curveSegments: 4
|
|
18076
18076
|
});
|
|
18077
|
-
y.center(),
|
|
18078
|
-
}, [u == null ? void 0 : u.map_obj_name, p, A, Q]), Y = r1((
|
|
18079
|
-
const O = i.map_objs.findIndex((y) => y.map_obj_name ===
|
|
18080
|
-
O !== -1 ? (
|
|
18077
|
+
y.center(), N.geometry && N.geometry.dispose(), N.geometry = y, Q(V, u.map_obj_name);
|
|
18078
|
+
}, [u == null ? void 0 : u.map_obj_name, p, A, Q]), Y = r1((N, V = !1) => {
|
|
18079
|
+
const O = i.map_objs.findIndex((y) => y.map_obj_name === N.map_obj_name);
|
|
18080
|
+
O !== -1 ? (N.id = i.map_objs[O].id, i.map_objs[O] = { ...N }, l(O, { ...N }), W(i.map_objs), V && (r == null || r(N))) : V && (q == null || q(N));
|
|
18081
18081
|
}, [i, l, W, q, r]), L = () => {
|
|
18082
18082
|
if (a) {
|
|
18083
|
-
const
|
|
18084
|
-
|
|
18085
|
-
V.storeLogo.object_id ===
|
|
18083
|
+
const N = a.textImageMeshObject;
|
|
18084
|
+
N && N.userData && N.userData.kioskConfig && (N.userData.kioskConfig = null, e.meshFloors.storeLogos.flat().filter((V) => V !== void 0).forEach((V) => {
|
|
18085
|
+
V.storeLogo.object_id === N.object_id && V.storeLogo.userData.kioskConfig !== void 0 && (V.storeLogo.userData.kioskConfig = null);
|
|
18086
18086
|
}));
|
|
18087
18087
|
}
|
|
18088
|
-
}, q1 = (
|
|
18089
|
-
if (_(
|
|
18088
|
+
}, q1 = (N) => {
|
|
18089
|
+
if (_(N), u.obj_type = N, L(), N === "retailer" && (["retail_name", "retail_logo", "retail_text"].includes(S) || G("retail_name"), u.kiosk_id = null), N === "special" && (["kiosk", "amenity"].includes(S) || G("kiosk"), u.retailer_id = null, a)) {
|
|
18090
18090
|
const V = a.textImageMeshObject;
|
|
18091
18091
|
Z(V, "", u.size);
|
|
18092
18092
|
}
|
|
18093
|
-
|
|
18094
|
-
}, G = (
|
|
18095
|
-
u && (g(
|
|
18096
|
-
},
|
|
18093
|
+
N === "custom" && (["custom_text", "custom_image"].includes(S) || G("custom_text"), u.retailer_id = null, u.kiosk_id = null), C("size", u.size.toString()), C("text_color", u.text_color || i.mapSettings.apiResponse.STORE_TEXT_COLOR), d({ ...u }), Y({ ...u });
|
|
18094
|
+
}, G = (N) => {
|
|
18095
|
+
u && (g(N), u.layer_type = N, L(), N === "retail_name" || N === "retail_logo" || N === "retail_text" || (N === "kiosk" ? (u.value = "", a && $(u, a.textImageMeshObject)) : N === "amenity" && (u.kiosk_id = null)), C("size", u.size.toString()), d({ ...u }), Y({ ...u }));
|
|
18096
|
+
}, M = () => {
|
|
18097
18097
|
u && (Object.assign(u, O2, { id: u.id, map_obj_name: u.map_obj_name }), q1("retailer"), G("retail_name"), Q("", u.map_obj_name), n && n({ ...u }));
|
|
18098
|
-
}, B = (
|
|
18099
|
-
|
|
18100
|
-
}, H = (
|
|
18101
|
-
|
|
18102
|
-
}, z = (
|
|
18103
|
-
|
|
18104
|
-
}, C = r1((
|
|
18098
|
+
}, B = (N, V) => {
|
|
18099
|
+
N && u && (u.retailer_id = N.value, G(u.layer_type), d({ ...u }), Y({ ...u }, !0));
|
|
18100
|
+
}, H = (N, V) => {
|
|
18101
|
+
N && u && (u.kiosk_id = N.value, d({ ...u }), Y({ ...u }, !0), a && (l1(a.textImageMeshObject, u, o), c()));
|
|
18102
|
+
}, z = (N, V) => {
|
|
18103
|
+
N && u && (u.value = N.value, d({ ...u }), Y({ ...u }, !0), a && $(u, a.textImageMeshObject));
|
|
18104
|
+
}, C = r1((N, V) => {
|
|
18105
18105
|
var O, y, n1;
|
|
18106
18106
|
if (u && a) {
|
|
18107
18107
|
const a1 = a.textImageMeshObject, I1 = new w1(), y1 = a.svgShapeMeshObject.geometry.boundingBox;
|
|
18108
|
-
switch (y1 && y1.getCenter(I1),
|
|
18108
|
+
switch (y1 && y1.getCenter(I1), N) {
|
|
18109
18109
|
case "custom_text":
|
|
18110
18110
|
u.custom_text = V, ["retail_text", "custom_text"].includes(u.layer_type) && Z(a1, u.custom_text, u.size);
|
|
18111
18111
|
break;
|
|
@@ -18160,9 +18160,9 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18160
18160
|
break;
|
|
18161
18161
|
case "bg_color":
|
|
18162
18162
|
u.bg_color = V;
|
|
18163
|
-
let
|
|
18164
|
-
(n1 = a1.object_id) != null && n1.startsWith("big-store") && (
|
|
18165
|
-
|
|
18163
|
+
let M1 = "store";
|
|
18164
|
+
(n1 = a1.object_id) != null && n1.startsWith("big-store") && (M1 = "big-store"), a1.material = f(
|
|
18165
|
+
M1,
|
|
18166
18166
|
u.map_obj_name,
|
|
18167
18167
|
u.bg_color,
|
|
18168
18168
|
u.transparent
|
|
@@ -18173,15 +18173,15 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18173
18173
|
d({ ...u }), Y({ ...u }, !0);
|
|
18174
18174
|
});
|
|
18175
18175
|
}
|
|
18176
|
-
}, [o, u, f, $, Z, i.retailers, a, c, Y]), b = r1((
|
|
18177
|
-
const V =
|
|
18176
|
+
}, [o, u, f, $, Z, i.retailers, a, c, Y]), b = r1((N) => {
|
|
18177
|
+
const V = N.target;
|
|
18178
18178
|
C(V.name, V.value);
|
|
18179
18179
|
}, [C]);
|
|
18180
18180
|
p1(() => {
|
|
18181
18181
|
if (t) {
|
|
18182
|
-
const
|
|
18183
|
-
if (
|
|
18184
|
-
const V = { ...i.map_objs[
|
|
18182
|
+
const N = i.map_objs.findIndex((V) => V.map_obj_name === t);
|
|
18183
|
+
if (N !== -1) {
|
|
18184
|
+
const V = { ...i.map_objs[N] };
|
|
18185
18185
|
d(V), _(V.obj_type), g(V.layer_type);
|
|
18186
18186
|
} else
|
|
18187
18187
|
d({
|
|
@@ -18193,38 +18193,38 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18193
18193
|
}, [i, t]), p1(() => {
|
|
18194
18194
|
u && E(u.map_obj_name);
|
|
18195
18195
|
}, [u]);
|
|
18196
|
-
const h = (
|
|
18197
|
-
u && Object.hasOwn(u,
|
|
18198
|
-
}, R = (
|
|
18199
|
-
u && Object.hasOwn(u,
|
|
18200
|
-
}, j = (
|
|
18201
|
-
if (u && Object.hasOwn(u,
|
|
18202
|
-
let O = u[
|
|
18196
|
+
const h = (N) => {
|
|
18197
|
+
u && Object.hasOwn(u, N) && C(N, (u[N] - 1).toString());
|
|
18198
|
+
}, R = (N) => {
|
|
18199
|
+
u && Object.hasOwn(u, N) && C(N, (u[N] + 1).toString());
|
|
18200
|
+
}, j = (N, V = 45) => {
|
|
18201
|
+
if (u && Object.hasOwn(u, N)) {
|
|
18202
|
+
let O = u[N];
|
|
18203
18203
|
const y = O % V;
|
|
18204
|
-
y !== 0 && (O -= y), O += V, O > 360 ? O = V : O === 360 && (O = 0), C(
|
|
18204
|
+
y !== 0 && (O -= y), O += V, O > 360 ? O = V : O === 360 && (O = 0), C(N, O.toString());
|
|
18205
18205
|
}
|
|
18206
|
-
}, F = (
|
|
18206
|
+
}, F = (N) => {
|
|
18207
18207
|
const V = window.setInterval(() => {
|
|
18208
|
-
h(
|
|
18208
|
+
h(N);
|
|
18209
18209
|
}, 200);
|
|
18210
|
-
P.current[
|
|
18211
|
-
}, e1 = (
|
|
18210
|
+
P.current[N] = V;
|
|
18211
|
+
}, e1 = (N) => {
|
|
18212
18212
|
const V = window.setInterval(() => {
|
|
18213
|
-
R(
|
|
18213
|
+
R(N);
|
|
18214
18214
|
}, 200);
|
|
18215
|
-
P.current[
|
|
18216
|
-
}, T = (
|
|
18217
|
-
P.current[
|
|
18218
|
-
}, t1 = (i == null ? void 0 : i.retailers.map((
|
|
18219
|
-
value:
|
|
18220
|
-
label: (i == null ? void 0 : i.globalRetailerIds.filter((V) => V ===
|
|
18221
|
-
}))) || [], U = (i == null ? void 0 : i.kiosks.map((
|
|
18222
|
-
value:
|
|
18223
|
-
label:
|
|
18224
|
-
isDisabled: D.includes(
|
|
18225
|
-
}))) || [], J = r3.map((
|
|
18226
|
-
value:
|
|
18227
|
-
label:
|
|
18215
|
+
P.current[N] = V;
|
|
18216
|
+
}, T = (N) => {
|
|
18217
|
+
P.current[N] && (clearInterval(P.current[N]), P.current[N] = null);
|
|
18218
|
+
}, t1 = (i == null ? void 0 : i.retailers.map((N) => ({
|
|
18219
|
+
value: N.id,
|
|
18220
|
+
label: (i == null ? void 0 : i.globalRetailerIds.filter((V) => V === N.global_retailer_id).length) > 1 ? `${N.retail_name} (${N.location})` : N.retail_name
|
|
18221
|
+
}))) || [], U = (i == null ? void 0 : i.kiosks.map((N) => ({
|
|
18222
|
+
value: N.id,
|
|
18223
|
+
label: N.name,
|
|
18224
|
+
isDisabled: D.includes(N.id)
|
|
18225
|
+
}))) || [], J = r3.map((N) => ({
|
|
18226
|
+
value: N.type,
|
|
18227
|
+
label: N.name
|
|
18228
18228
|
})) || [];
|
|
18229
18229
|
return u ? /* @__PURE__ */ k("div", { className: `sidebarComp ${i1.sidebarComp}`, children: /* @__PURE__ */ f1("div", { className: i1.sidebarFields, children: [
|
|
18230
18230
|
/* @__PURE__ */ f1("div", { className: i1.tabOptions, children: [
|
|
@@ -18234,7 +18234,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18234
18234
|
/* @__PURE__ */ k("button", { onClick: () => q1("special"), className: x === "special" ? i1.active : "", children: "Special" }),
|
|
18235
18235
|
/* @__PURE__ */ k("button", { onClick: () => q1("custom"), className: x === "custom" ? i1.active : "", children: "Custom" })
|
|
18236
18236
|
] }),
|
|
18237
|
-
/* @__PURE__ */ k("button", { className: i1.deleteBtn, onClick:
|
|
18237
|
+
/* @__PURE__ */ k("button", { className: i1.deleteBtn, onClick: M, children: "Delete" })
|
|
18238
18238
|
] }),
|
|
18239
18239
|
x === "retailer" && /* @__PURE__ */ f1(z4, { children: [
|
|
18240
18240
|
/* @__PURE__ */ k(
|
|
@@ -18248,7 +18248,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18248
18248
|
isLoading: !1,
|
|
18249
18249
|
noOptionsMessage: () => "Retailers not found",
|
|
18250
18250
|
placeholder: "Choose a Retailer...",
|
|
18251
|
-
value: t1.find((
|
|
18251
|
+
value: t1.find((N) => N.value === u.retailer_id) || null,
|
|
18252
18252
|
onChange: B
|
|
18253
18253
|
}
|
|
18254
18254
|
),
|
|
@@ -18272,7 +18272,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18272
18272
|
options: U,
|
|
18273
18273
|
noOptionsMessage: () => "Kiosks not found",
|
|
18274
18274
|
placeholder: "Choose a Kiosk...",
|
|
18275
|
-
value: U.find((
|
|
18275
|
+
value: U.find((N) => N.value === u.kiosk_id) || null,
|
|
18276
18276
|
onChange: H
|
|
18277
18277
|
}
|
|
18278
18278
|
),
|
|
@@ -18285,7 +18285,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18285
18285
|
options: J,
|
|
18286
18286
|
noOptionsMessage: () => "Amenity not found",
|
|
18287
18287
|
placeholder: "Choose Amenity...",
|
|
18288
|
-
value: J.find((
|
|
18288
|
+
value: J.find((N) => N.value === u.value) || null,
|
|
18289
18289
|
onChange: z
|
|
18290
18290
|
}
|
|
18291
18291
|
)
|
|
@@ -18342,7 +18342,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18342
18342
|
{
|
|
18343
18343
|
type: "number",
|
|
18344
18344
|
value: u.size,
|
|
18345
|
-
onChange: (
|
|
18345
|
+
onChange: (N) => C("size", N.target.value),
|
|
18346
18346
|
className: i1.input
|
|
18347
18347
|
}
|
|
18348
18348
|
),
|
|
@@ -18379,7 +18379,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18379
18379
|
{
|
|
18380
18380
|
type: "number",
|
|
18381
18381
|
value: u.rotate,
|
|
18382
|
-
onChange: (
|
|
18382
|
+
onChange: (N) => C("rotate", N.target.value),
|
|
18383
18383
|
className: i1.input
|
|
18384
18384
|
}
|
|
18385
18385
|
),
|
|
@@ -18424,7 +18424,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18424
18424
|
{
|
|
18425
18425
|
type: "number",
|
|
18426
18426
|
value: u.offset_x,
|
|
18427
|
-
onChange: (
|
|
18427
|
+
onChange: (N) => C("offset_x", N.target.value),
|
|
18428
18428
|
className: i1.input
|
|
18429
18429
|
}
|
|
18430
18430
|
),
|
|
@@ -18460,7 +18460,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18460
18460
|
{
|
|
18461
18461
|
type: "number",
|
|
18462
18462
|
value: u.offset_y,
|
|
18463
|
-
onChange: (
|
|
18463
|
+
onChange: (N) => C("offset_y", N.target.value),
|
|
18464
18464
|
className: i1.input
|
|
18465
18465
|
}
|
|
18466
18466
|
),
|
|
@@ -18532,15 +18532,15 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18532
18532
|
] })
|
|
18533
18533
|
] }) }) : null;
|
|
18534
18534
|
}, Sa = L4((e, l) => {
|
|
18535
|
-
const { selectedActiveObjectId: t, setSelectedActiveObjectId: o, onMapDataUpdate: n, onChangeCameraControlPosition: r, handleClickOnRetailer: q } = e, [c, i] = c1(!1), [a, s] = c1(""), [m, v] = c1(!1), [I, f] = c1(-1), [p, x] = c1([]), [_, S] = c1(f4), [g, u] = c1(0), [d, A] = c1("desktop"), [E, w] = c1(!1), [P, D] = c1(!1), [, K] = E9(), [W, l1] = c1(0), [$, Q] = c1(""), [Z, Y] = c1(""), [L, q1] = c1(null), [, G] = c1(0),
|
|
18535
|
+
const { selectedActiveObjectId: t, setSelectedActiveObjectId: o, onMapDataUpdate: n, onChangeCameraControlPosition: r, handleClickOnRetailer: q } = e, [c, i] = c1(!1), [a, s] = c1(""), [m, v] = c1(!1), [I, f] = c1(-1), [p, x] = c1([]), [_, S] = c1(f4), [g, u] = c1(0), [d, A] = c1("desktop"), [E, w] = c1(!1), [P, D] = c1(!1), [, K] = E9(), [W, l1] = c1(0), [$, Q] = c1(""), [Z, Y] = c1(""), [L, q1] = c1(null), [, G] = c1(0), M = v1(null), B = v1(null);
|
|
18536
18536
|
B.current = g;
|
|
18537
18537
|
const H = v1(null), z = r1((o1) => {
|
|
18538
18538
|
G(o1);
|
|
18539
18539
|
}, []), { setMapConfig: C, refetchMapData: b, mapApiResponse: h, mapConfig: R, floorsData: j, setMeshObject: F, indexedKiosks: e1, initialFloorsDataIsLoaded: T } = r4(), t1 = r1((o1) => {
|
|
18540
18540
|
f(o1);
|
|
18541
|
-
}, [f]), U =
|
|
18541
|
+
}, [f]), U = Nl(), { meshParams: J, storeLogos: N, textParams: V, allSvgObjectIds: O } = U, y = v1(null), [n1, a1] = c1(null), [, I1] = c1(0), y1 = r1(() => {
|
|
18542
18542
|
I1((o1) => o1 + 1);
|
|
18543
|
-
}, []), [
|
|
18543
|
+
}, []), [M1, P1] = c1(!1);
|
|
18544
18544
|
d6(l, () => {
|
|
18545
18545
|
var o1, u1;
|
|
18546
18546
|
return {
|
|
@@ -18557,12 +18557,12 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18557
18557
|
R.ROLE === "DISPLAY_APP" ? A("display_app") : R.ROLE === "PORTAL_RESPONSIVE" ? A(R.DEVICE) : o1 > 1024 ? A("desktop") : o1 > 767 ? A("tablet") : A("mobile");
|
|
18558
18558
|
}, [R]);
|
|
18559
18559
|
p1(() => {
|
|
18560
|
-
if (
|
|
18561
|
-
const o1 =
|
|
18560
|
+
if (M.current) {
|
|
18561
|
+
const o1 = M.current.offsetWidth;
|
|
18562
18562
|
u(o1), b1(o1);
|
|
18563
18563
|
const u1 = () => {
|
|
18564
|
-
if (
|
|
18565
|
-
const _1 =
|
|
18564
|
+
if (M.current) {
|
|
18565
|
+
const _1 = M.current.offsetWidth;
|
|
18566
18566
|
u(_1), b1(_1);
|
|
18567
18567
|
}
|
|
18568
18568
|
};
|
|
@@ -18570,12 +18570,12 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18570
18570
|
window.removeEventListener("resize", u1);
|
|
18571
18571
|
};
|
|
18572
18572
|
}
|
|
18573
|
-
}, [
|
|
18573
|
+
}, [M.current, P, b1]);
|
|
18574
18574
|
const [j1, e4, P4] = W1(() => {
|
|
18575
18575
|
let o1 = "", u1 = null, _1 = j.length ? j.length - 1 : 0;
|
|
18576
18576
|
if (e1[R.KIOSK_ID]) {
|
|
18577
|
-
const O1 = e1[R.KIOSK_ID].map_obj_name,
|
|
18578
|
-
|
|
18577
|
+
const O1 = e1[R.KIOSK_ID].map_obj_name, N1 = J == null ? void 0 : J.flat().find((J1) => J1.object_id === O1);
|
|
18578
|
+
N1 && (u1 = N1.mesh, _1 = N1.floor_index);
|
|
18579
18579
|
} else
|
|
18580
18580
|
R.ROLE === "DEMO" && console.error("Kiosk not found in config");
|
|
18581
18581
|
return [u1, _1, o1];
|
|
@@ -18595,7 +18595,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18595
18595
|
t ? (B4 = t, F4 = a) : $ && (B4 = "", F4 = a);
|
|
18596
18596
|
const x3 = r1((o1, u1) => {
|
|
18597
18597
|
x((_1) => {
|
|
18598
|
-
const O1 = _1.findIndex((
|
|
18598
|
+
const O1 = _1.findIndex((N1) => N1.data.map_obj_name === u1.map_obj_name);
|
|
18599
18599
|
return O1 !== -1 ? _1[O1] = { index: o1, data: { ...u1 } } : _1.push({ index: o1, data: { ...u1 } }), [..._1];
|
|
18600
18600
|
});
|
|
18601
18601
|
}, []), w7 = r1((o1) => {
|
|
@@ -18611,27 +18611,27 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18611
18611
|
p1(() => {
|
|
18612
18612
|
const o1 = [];
|
|
18613
18613
|
J.forEach((O1) => {
|
|
18614
|
-
O1.forEach((
|
|
18615
|
-
(
|
|
18614
|
+
O1.forEach((N1) => {
|
|
18615
|
+
(N1 == null ? void 0 : N1.mesh_type) === "kiosk" && o1.push(N1);
|
|
18616
18616
|
});
|
|
18617
18617
|
});
|
|
18618
18618
|
const u1 = /* @__PURE__ */ new Map();
|
|
18619
|
-
|
|
18620
|
-
O1.forEach((
|
|
18621
|
-
u1.set(
|
|
18619
|
+
N.filter((O1) => O1 !== void 0).forEach((O1) => {
|
|
18620
|
+
O1.forEach((N1) => {
|
|
18621
|
+
u1.set(N1.storeLogo.object_id, N1.storeLogo);
|
|
18622
18622
|
});
|
|
18623
18623
|
});
|
|
18624
18624
|
const _1 = j1 == null ? void 0 : j1.object_id;
|
|
18625
18625
|
o1.forEach((O1) => {
|
|
18626
|
-
const
|
|
18627
|
-
|
|
18626
|
+
const N1 = O1.mesh, J1 = u1.get("custom-layer-" + O1.object_id), l4 = h.map_objs.find((G7) => G7.map_obj_name === N1.object_id);
|
|
18627
|
+
N1 && J1 && J1.userData.kioskConfig !== null && (J1.userData.kioskConfig = {
|
|
18628
18628
|
lockSize: l4 == null ? void 0 : l4.lock_size,
|
|
18629
18629
|
blink: O1.object_id === _1,
|
|
18630
18630
|
size: l4 ? l4.size : R.KIOSK_SIZE,
|
|
18631
|
-
floorIndex:
|
|
18631
|
+
floorIndex: N1.floor_index
|
|
18632
18632
|
}, J1.userData.distanceFactor = l4 != null && l4.lock_size ? 1500 : void 0, J1.visible = !0);
|
|
18633
18633
|
});
|
|
18634
|
-
}, [
|
|
18634
|
+
}, [N, J, j1, R, h.map_objs]), p1(() => {
|
|
18635
18635
|
if (n) {
|
|
18636
18636
|
const o1 = [];
|
|
18637
18637
|
p.forEach((u1) => {
|
|
@@ -18652,8 +18652,8 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18652
18652
|
}
|
|
18653
18653
|
}, [R, o, W, J, h.map_objs, h.retailers]);
|
|
18654
18654
|
const G4 = r1((o1) => {
|
|
18655
|
-
var
|
|
18656
|
-
const u1 = (
|
|
18655
|
+
var N1, J1;
|
|
18656
|
+
const u1 = (N1 = V[H1]) == null ? void 0 : N1.find((l4) => l4.textMesh.object_id === `${k2}${o1.object_id}`), _1 = (J1 = N[H1]) == null ? void 0 : J1.find((l4) => l4.storeLogo.object_id === `${k2}${o1.object_id}`);
|
|
18657
18657
|
let O1 = null;
|
|
18658
18658
|
u1 && (O1 = {
|
|
18659
18659
|
svgShapeMeshObject: o1,
|
|
@@ -18662,7 +18662,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18662
18662
|
svgShapeMeshObject: o1,
|
|
18663
18663
|
textImageMeshObject: _1.storeLogo
|
|
18664
18664
|
}), F(O1);
|
|
18665
|
-
}, [
|
|
18665
|
+
}, [N, V, F, H1]);
|
|
18666
18666
|
p1(() => {
|
|
18667
18667
|
var o1, u1;
|
|
18668
18668
|
if (J && J.length && t) {
|
|
@@ -18675,22 +18675,22 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18675
18675
|
}, [R.ROLE, o]), h3 = r1((o1, u1, _1) => {
|
|
18676
18676
|
var O1;
|
|
18677
18677
|
if (!_1 && R.ROLE === "DISPLAY_APP" && q && ((O1 = o1.mesh_type) != null && O1.startsWith("store"))) {
|
|
18678
|
-
const
|
|
18679
|
-
if (
|
|
18680
|
-
const J1 = h.retailers.find((l4) => l4.id ===
|
|
18678
|
+
const N1 = h.map_objs.find((J1) => J1.map_obj_name === o1.object_id && J1.obj_type === "retailer");
|
|
18679
|
+
if (N1) {
|
|
18680
|
+
const J1 = h.retailers.find((l4) => l4.id === N1.retailer_id);
|
|
18681
18681
|
J1 && q(J1.id);
|
|
18682
18682
|
}
|
|
18683
18683
|
return !1;
|
|
18684
18684
|
}
|
|
18685
18685
|
R.ROLE === "DISPLAY_APP" && j1 && t1(e4), K(() => {
|
|
18686
|
-
G4(o1), o(u1 ?? ""), i((
|
|
18686
|
+
G4(o1), o(u1 ?? ""), i((N1) => !N1), l1(0), Q(""), s("");
|
|
18687
18687
|
});
|
|
18688
|
-
}, [e4, j1, q, t1, G4, h.map_objs, h.retailers, R.ROLE, o]),
|
|
18688
|
+
}, [e4, j1, q, t1, G4, h.map_objs, h.retailers, R.ROLE, o]), M7 = r1((o1) => {
|
|
18689
18689
|
if (o1.stopPropagation(), o1.delta > 15)
|
|
18690
18690
|
return;
|
|
18691
18691
|
const u1 = o1.object.object_id, _1 = h.map_objs.find((O1) => O1.map_obj_name === u1);
|
|
18692
18692
|
_1 && _1.layer_type === "amenity" ? (p2(_1.value, u1), R.ROLE === "PORTAL" && (G4(o1.object), o(u1 ?? ""))) : (h3(o1.object, u1 ?? ""), R.ROLE !== "PORTAL" && !R.KIOSK_ID && (_1 != null && _1.retailer_id) && P1(!0));
|
|
18693
|
-
}, [R, p2, o, G4, h3, h.map_objs]),
|
|
18693
|
+
}, [R, p2, o, G4, h3, h.map_objs]), N7 = r1((o1) => {
|
|
18694
18694
|
o1.stopPropagation(), v(!0), o1.object.userData.storeName !== "" && a1(o1.object);
|
|
18695
18695
|
}, []), L7 = r1((o1) => {
|
|
18696
18696
|
o1.stopPropagation(), a1(null), v(!1), y && y.current && (y.current.style.display = "none");
|
|
@@ -18726,7 +18726,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18726
18726
|
triggerSceneUpdate: y1
|
|
18727
18727
|
}
|
|
18728
18728
|
) : null }) }) }),
|
|
18729
|
-
/* @__PURE__ */ f1("div", { ref:
|
|
18729
|
+
/* @__PURE__ */ f1("div", { ref: M, className: `mapBox ${C4.mapBox}`, children: [
|
|
18730
18730
|
/* @__PURE__ */ k(
|
|
18731
18731
|
tt,
|
|
18732
18732
|
{
|
|
@@ -18759,10 +18759,10 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18759
18759
|
routeTargetId: B4,
|
|
18760
18760
|
routeTargetFromId: F4,
|
|
18761
18761
|
currentFloorIndex: H1,
|
|
18762
|
-
onPointerEnter:
|
|
18762
|
+
onPointerEnter: N7,
|
|
18763
18763
|
onPointerLeave: L7,
|
|
18764
18764
|
onPointerMove: P7,
|
|
18765
|
-
onClick:
|
|
18765
|
+
onClick: M7,
|
|
18766
18766
|
handleChangeFloor: t1,
|
|
18767
18767
|
selectedAmenityType: $,
|
|
18768
18768
|
escalatorNodes: U.escalator_nodes,
|
|
@@ -18792,7 +18792,7 @@ const oa = "_sidebarComp_1b6ud_1", ra = "_sidebarFields_1b6ud_2", qa = "_tabOpti
|
|
|
18792
18792
|
R.ROLE === "WP_SITE" && /* @__PURE__ */ k(
|
|
18793
18793
|
ea,
|
|
18794
18794
|
{
|
|
18795
|
-
show:
|
|
18795
|
+
show: M1,
|
|
18796
18796
|
onHide: () => P1(!1),
|
|
18797
18797
|
amenity: $,
|
|
18798
18798
|
selectedAmenityMapObjName: Z,
|