@eyeon/threejs-map 1.1.13 → 1.1.14
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 +11 -11
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +358 -356
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -83,27 +83,27 @@ class v6 extends X7 {
|
|
|
83
83
|
break;
|
|
84
84
|
case "use":
|
|
85
85
|
C = x(z, C);
|
|
86
|
-
const
|
|
87
|
-
T ? o(T, C) : console.warn("SVGLoader: 'use node' references non-existent node id: " +
|
|
86
|
+
const K = (z.getAttributeNS("http://www.w3.org/1999/xlink", "href") || "").substring(1), T = z.viewportElement.getElementById(K);
|
|
87
|
+
T ? o(T, C) : console.warn("SVGLoader: 'use node' references non-existent node id: " + K);
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
90
|
S && (C.fill !== void 0 && C.fill !== "none" && S.color.setStyle(C.fill, ue), I(S, N), W.push(S), S.userData = { node: z, style: C });
|
|
91
|
-
const
|
|
92
|
-
for (let F = 0; F <
|
|
93
|
-
const
|
|
94
|
-
p &&
|
|
91
|
+
const X = z.childNodes;
|
|
92
|
+
for (let F = 0; F < X.length; F++) {
|
|
93
|
+
const K = X[F];
|
|
94
|
+
p && K.nodeName !== "style" && K.nodeName !== "defs" || o(K, C);
|
|
95
95
|
}
|
|
96
96
|
_ && ($.pop(), $.length > 0 ? N.copy($[$.length - 1]) : N.identity());
|
|
97
97
|
}
|
|
98
98
|
function n(z) {
|
|
99
99
|
const C = new I4(), _ = new w1(), p = new w1(), S = new w1();
|
|
100
|
-
let
|
|
101
|
-
const
|
|
102
|
-
if (
|
|
103
|
-
const T =
|
|
100
|
+
let X = !0, F = !1;
|
|
101
|
+
const K = z.getAttribute("d");
|
|
102
|
+
if (K === "" || K === "none") return null;
|
|
103
|
+
const T = K.match(/[a-df-z][^a-df-z]*/ig);
|
|
104
104
|
for (let t1 = 0, U = T.length; t1 < U; t1++) {
|
|
105
105
|
const J = T[t1], M = J.charAt(0), V = J.slice(1).trim();
|
|
106
|
-
|
|
106
|
+
X === !0 && (F = !0, X = !1);
|
|
107
107
|
let O;
|
|
108
108
|
switch (M) {
|
|
109
109
|
case "M":
|
|
@@ -274,7 +274,7 @@ class v6 extends X7 {
|
|
|
274
274
|
break;
|
|
275
275
|
case "Z":
|
|
276
276
|
case "z":
|
|
277
|
-
C.currentPath.autoClose = !0, C.currentPath.curves.length > 0 && (_.copy(S), C.currentPath.currentPoint.copy(_),
|
|
277
|
+
C.currentPath.autoClose = !0, C.currentPath.curves.length > 0 && (_.copy(S), C.currentPath.currentPoint.copy(_), X = !0);
|
|
278
278
|
break;
|
|
279
279
|
default:
|
|
280
280
|
console.warn(J);
|
|
@@ -290,23 +290,23 @@ class v6 extends X7 {
|
|
|
290
290
|
if (_.type !== 1) continue;
|
|
291
291
|
const p = _.selectorText.split(/,/gm).filter(Boolean).map((S) => S.trim());
|
|
292
292
|
for (let S = 0; S < p.length; S++) {
|
|
293
|
-
const
|
|
293
|
+
const X = Object.fromEntries(
|
|
294
294
|
Object.entries(_.style).filter(([, F]) => F !== "")
|
|
295
295
|
);
|
|
296
296
|
l1[p[S]] = Object.assign(
|
|
297
297
|
l1[p[S]] || {},
|
|
298
|
-
|
|
298
|
+
X
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
function q(z, C, _, p, S,
|
|
303
|
+
function q(z, C, _, p, S, X, F, K) {
|
|
304
304
|
if (C == 0 || _ == 0) {
|
|
305
|
-
z.lineTo(
|
|
305
|
+
z.lineTo(K.x, K.y);
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
p = p * Math.PI / 180, C = Math.abs(C), _ = Math.abs(_);
|
|
309
|
-
const T = (F.x -
|
|
309
|
+
const T = (F.x - K.x) / 2, t1 = (F.y - K.y) / 2, U = Math.cos(p) * T + Math.sin(p) * t1, J = -Math.sin(p) * T + Math.cos(p) * t1;
|
|
310
310
|
let M = C * C, V = _ * _;
|
|
311
311
|
const O = U * U, y = J * J, n1 = O / M + y / V;
|
|
312
312
|
if (n1 > 1) {
|
|
@@ -315,43 +315,43 @@ class v6 extends X7 {
|
|
|
315
315
|
}
|
|
316
316
|
const s1 = M * y + V * O, I1 = (M * V - s1) / s1;
|
|
317
317
|
let y1 = Math.sqrt(Math.max(0, I1));
|
|
318
|
-
S ===
|
|
319
|
-
const T1 = y1 * C * J / _, W1 = -y1 * _ * U / C, b1 = Math.cos(p) * T1 - Math.sin(p) * W1 + (F.x +
|
|
320
|
-
z.currentPath.absellipse(b1, j1, C, _, e4, e4 + P4,
|
|
318
|
+
S === X && (y1 = -y1);
|
|
319
|
+
const T1 = y1 * C * J / _, W1 = -y1 * _ * U / C, b1 = Math.cos(p) * T1 - Math.sin(p) * W1 + (F.x + K.x) / 2, j1 = Math.sin(p) * T1 + Math.cos(p) * W1 + (F.y + K.y) / 2, e4 = c(1, 0, (U - T1) / C, (J - W1) / _), P4 = c((U - T1) / C, (J - W1) / _, (-U - T1) / C, (-J - W1) / _) % (Math.PI * 2);
|
|
320
|
+
z.currentPath.absellipse(b1, j1, C, _, e4, e4 + P4, X === 0, p);
|
|
321
321
|
}
|
|
322
322
|
function c(z, C, _, p) {
|
|
323
|
-
const S = z * _ + C * p,
|
|
324
|
-
let F = Math.acos(Math.max(-1, Math.min(1, S /
|
|
323
|
+
const S = z * _ + C * p, X = Math.sqrt(z * z + C * C) * Math.sqrt(_ * _ + p * p);
|
|
324
|
+
let F = Math.acos(Math.max(-1, Math.min(1, S / X)));
|
|
325
325
|
return z * p - C * _ < 0 && (F = -F), F;
|
|
326
326
|
}
|
|
327
327
|
function i(z) {
|
|
328
|
-
const C = g(z.getAttribute("x") || 0), _ = g(z.getAttribute("y") || 0), p = g(z.getAttribute("rx") || z.getAttribute("ry") || 0), S = g(z.getAttribute("ry") || z.getAttribute("rx") || 0),
|
|
329
|
-
return T.moveTo(C + p, _), T.lineTo(C +
|
|
330
|
-
C +
|
|
328
|
+
const C = g(z.getAttribute("x") || 0), _ = g(z.getAttribute("y") || 0), p = g(z.getAttribute("rx") || z.getAttribute("ry") || 0), S = g(z.getAttribute("ry") || z.getAttribute("rx") || 0), X = g(z.getAttribute("width")), F = g(z.getAttribute("height")), K = 1 - 0.551915024494, T = new I4();
|
|
329
|
+
return T.moveTo(C + p, _), T.lineTo(C + X - p, _), (p !== 0 || S !== 0) && T.bezierCurveTo(
|
|
330
|
+
C + X - p * K,
|
|
331
331
|
_,
|
|
332
|
-
C +
|
|
333
|
-
_ + S *
|
|
334
|
-
C +
|
|
332
|
+
C + X,
|
|
333
|
+
_ + S * K,
|
|
334
|
+
C + X,
|
|
335
335
|
_ + S
|
|
336
|
-
), T.lineTo(C +
|
|
337
|
-
C +
|
|
338
|
-
_ + F - S *
|
|
339
|
-
C +
|
|
336
|
+
), T.lineTo(C + X, _ + F - S), (p !== 0 || S !== 0) && T.bezierCurveTo(
|
|
337
|
+
C + X,
|
|
338
|
+
_ + F - S * K,
|
|
339
|
+
C + X - p * K,
|
|
340
340
|
_ + F,
|
|
341
|
-
C +
|
|
341
|
+
C + X - p,
|
|
342
342
|
_ + F
|
|
343
343
|
), T.lineTo(C + p, _ + F), (p !== 0 || S !== 0) && T.bezierCurveTo(
|
|
344
|
-
C + p *
|
|
344
|
+
C + p * K,
|
|
345
345
|
_ + F,
|
|
346
346
|
C,
|
|
347
|
-
_ + F - S *
|
|
347
|
+
_ + F - S * K,
|
|
348
348
|
C,
|
|
349
349
|
_ + F - S
|
|
350
|
-
), T.lineTo(C, _ + S), (p !== 0 || S !== 0) && T.bezierCurveTo(C, _ + S *
|
|
350
|
+
), T.lineTo(C, _ + S), (p !== 0 || S !== 0) && T.bezierCurveTo(C, _ + S * K, C + p * K, _, C + p, _), T;
|
|
351
351
|
}
|
|
352
352
|
function a(z) {
|
|
353
|
-
function C(
|
|
354
|
-
const T = g(F), t1 = g(
|
|
353
|
+
function C(X, F, K) {
|
|
354
|
+
const T = g(F), t1 = g(K);
|
|
355
355
|
S === 0 ? p.moveTo(T, t1) : p.lineTo(T, t1), S++;
|
|
356
356
|
}
|
|
357
357
|
const _ = /([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g, p = new I4();
|
|
@@ -359,8 +359,8 @@ class v6 extends X7 {
|
|
|
359
359
|
return z.getAttribute("points").replace(_, C), p.currentPath.autoClose = !0, p;
|
|
360
360
|
}
|
|
361
361
|
function s(z) {
|
|
362
|
-
function C(
|
|
363
|
-
const T = g(F), t1 = g(
|
|
362
|
+
function C(X, F, K) {
|
|
363
|
+
const T = g(F), t1 = g(K);
|
|
364
364
|
S === 0 ? p.moveTo(T, t1) : p.lineTo(T, t1), S++;
|
|
365
365
|
}
|
|
366
366
|
const _ = /([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g, p = new I4();
|
|
@@ -370,40 +370,40 @@ class v6 extends X7 {
|
|
|
370
370
|
function m(z) {
|
|
371
371
|
const C = g(z.getAttribute("cx") || 0), _ = g(z.getAttribute("cy") || 0), p = g(z.getAttribute("r") || 0), S = new g3();
|
|
372
372
|
S.absarc(C, _, p, 0, Math.PI * 2);
|
|
373
|
-
const
|
|
374
|
-
return
|
|
373
|
+
const X = new I4();
|
|
374
|
+
return X.subPaths.push(S), X;
|
|
375
375
|
}
|
|
376
376
|
function v(z) {
|
|
377
|
-
const C = g(z.getAttribute("cx") || 0), _ = g(z.getAttribute("cy") || 0), p = g(z.getAttribute("rx") || 0), S = g(z.getAttribute("ry") || 0),
|
|
378
|
-
|
|
377
|
+
const C = g(z.getAttribute("cx") || 0), _ = g(z.getAttribute("cy") || 0), p = g(z.getAttribute("rx") || 0), S = g(z.getAttribute("ry") || 0), X = new g3();
|
|
378
|
+
X.absellipse(C, _, p, S, 0, Math.PI * 2);
|
|
379
379
|
const F = new I4();
|
|
380
|
-
return F.subPaths.push(
|
|
380
|
+
return F.subPaths.push(X), F;
|
|
381
381
|
}
|
|
382
382
|
function R(z) {
|
|
383
|
-
const C = g(z.getAttribute("x1") || 0), _ = g(z.getAttribute("y1") || 0), p = g(z.getAttribute("x2") || 0), S = g(z.getAttribute("y2") || 0),
|
|
384
|
-
return
|
|
383
|
+
const C = g(z.getAttribute("x1") || 0), _ = g(z.getAttribute("y1") || 0), p = g(z.getAttribute("x2") || 0), S = g(z.getAttribute("y2") || 0), X = new I4();
|
|
384
|
+
return X.moveTo(C, _), X.lineTo(p, S), X.currentPath.autoClose = !1, X;
|
|
385
385
|
}
|
|
386
386
|
function x(z, C) {
|
|
387
387
|
C = Object.assign({}, C);
|
|
388
388
|
let _ = {};
|
|
389
389
|
if (z.hasAttribute("class")) {
|
|
390
|
-
const F = z.getAttribute("class").split(/\s/).filter(Boolean).map((
|
|
391
|
-
for (let
|
|
392
|
-
_ = Object.assign(_, l1["." + F[
|
|
390
|
+
const F = z.getAttribute("class").split(/\s/).filter(Boolean).map((K) => K.trim());
|
|
391
|
+
for (let K = 0; K < F.length; K++)
|
|
392
|
+
_ = Object.assign(_, l1["." + F[K]]);
|
|
393
393
|
}
|
|
394
394
|
z.hasAttribute("id") && (_ = Object.assign(_, l1["#" + z.getAttribute("id")]));
|
|
395
|
-
function p(F,
|
|
395
|
+
function p(F, K, T) {
|
|
396
396
|
T === void 0 && (T = function(U) {
|
|
397
397
|
return U.startsWith("url") && console.warn("SVGLoader: url access in attributes is not implemented."), U;
|
|
398
|
-
}), z.hasAttribute(F) && (C[
|
|
398
|
+
}), z.hasAttribute(F) && (C[K] = T(z.getAttribute(F))), _[F] && (C[K] = T(_[F])), z.style && z.style[F] !== "" && (C[K] = T(z.style[F]));
|
|
399
399
|
}
|
|
400
400
|
function S(F) {
|
|
401
401
|
return Math.max(0, Math.min(1, g(F)));
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function X(F) {
|
|
404
404
|
return Math.max(0, g(F));
|
|
405
405
|
}
|
|
406
|
-
return p("fill", "fill"), p("fill-opacity", "fillOpacity", S), p("fill-rule", "fillRule"), p("opacity", "opacity", S), p("stroke", "stroke"), p("stroke-opacity", "strokeOpacity", S), p("stroke-width", "strokeWidth",
|
|
406
|
+
return p("fill", "fill"), p("fill-opacity", "fillOpacity", S), p("fill-rule", "fillRule"), p("opacity", "opacity", S), p("stroke", "stroke"), p("stroke-opacity", "strokeOpacity", S), p("stroke-width", "strokeWidth", X), p("stroke-linejoin", "strokeLineJoin"), p("stroke-linecap", "strokeLineCap"), p("stroke-miterlimit", "strokeMiterLimit", X), p("visibility", "visibility"), C;
|
|
407
407
|
}
|
|
408
408
|
function f(z, C) {
|
|
409
409
|
return z - (C - z);
|
|
@@ -419,7 +419,7 @@ class v6 extends X7 {
|
|
|
419
419
|
COMMA: /,/,
|
|
420
420
|
EXP: /e/i,
|
|
421
421
|
FLAGS: /[01]/
|
|
422
|
-
}, S = 0,
|
|
422
|
+
}, S = 0, X = 1, F = 2, K = 3;
|
|
423
423
|
let T = S, t1 = !0, U = "", J = "";
|
|
424
424
|
const M = [];
|
|
425
425
|
function V(s1, I1, y1) {
|
|
@@ -433,14 +433,14 @@ class v6 extends X7 {
|
|
|
433
433
|
const n1 = z.length;
|
|
434
434
|
for (let s1 = 0; s1 < n1; s1++) {
|
|
435
435
|
if (y = z[s1], Array.isArray(C) && C.includes(M.length % _) && p.FLAGS.test(y)) {
|
|
436
|
-
T =
|
|
436
|
+
T = X, U = y, O();
|
|
437
437
|
continue;
|
|
438
438
|
}
|
|
439
439
|
if (T === S) {
|
|
440
440
|
if (p.WHITESPACE.test(y))
|
|
441
441
|
continue;
|
|
442
442
|
if (p.DIGIT.test(y) || p.SIGN.test(y)) {
|
|
443
|
-
T =
|
|
443
|
+
T = X, U = y;
|
|
444
444
|
continue;
|
|
445
445
|
}
|
|
446
446
|
if (p.POINT.test(y)) {
|
|
@@ -449,7 +449,7 @@ class v6 extends X7 {
|
|
|
449
449
|
}
|
|
450
450
|
p.COMMA.test(y) && (t1 && V(y, s1, M), t1 = !0);
|
|
451
451
|
}
|
|
452
|
-
if (T ===
|
|
452
|
+
if (T === X) {
|
|
453
453
|
if (p.DIGIT.test(y)) {
|
|
454
454
|
U += y;
|
|
455
455
|
continue;
|
|
@@ -459,7 +459,7 @@ class v6 extends X7 {
|
|
|
459
459
|
continue;
|
|
460
460
|
}
|
|
461
461
|
if (p.EXP.test(y)) {
|
|
462
|
-
T =
|
|
462
|
+
T = K;
|
|
463
463
|
continue;
|
|
464
464
|
}
|
|
465
465
|
p.SIGN.test(y) && U.length === 1 && p.SIGN.test(U[0]) && V(y, s1, M);
|
|
@@ -470,12 +470,12 @@ class v6 extends X7 {
|
|
|
470
470
|
continue;
|
|
471
471
|
}
|
|
472
472
|
if (p.EXP.test(y)) {
|
|
473
|
-
T =
|
|
473
|
+
T = K;
|
|
474
474
|
continue;
|
|
475
475
|
}
|
|
476
476
|
p.POINT.test(y) && U[U.length - 1] === "." && V(y, s1, M);
|
|
477
477
|
}
|
|
478
|
-
if (T ===
|
|
478
|
+
if (T === K) {
|
|
479
479
|
if (p.DIGIT.test(y)) {
|
|
480
480
|
J += y;
|
|
481
481
|
continue;
|
|
@@ -488,7 +488,7 @@ class v6 extends X7 {
|
|
|
488
488
|
J.length === 1 && p.SIGN.test(J) && V(y, s1, M);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
p.WHITESPACE.test(y) ? (O(), T = S, t1 = !1) : p.COMMA.test(y) ? (O(), T = S, t1 = !0) : p.SIGN.test(y) ? (O(), T =
|
|
491
|
+
p.WHITESPACE.test(y) ? (O(), T = S, t1 = !1) : p.COMMA.test(y) ? (O(), T = S, t1 = !0) : p.SIGN.test(y) ? (O(), T = X, U = y) : p.POINT.test(y) ? (O(), T = F, U = y) : V(y, s1, M);
|
|
492
492
|
}
|
|
493
493
|
return O(), M;
|
|
494
494
|
}
|
|
@@ -541,9 +541,9 @@ class v6 extends X7 {
|
|
|
541
541
|
let C = "px";
|
|
542
542
|
if (typeof z == "string" || z instanceof String)
|
|
543
543
|
for (let p = 0, S = b.length; p < S; p++) {
|
|
544
|
-
const
|
|
545
|
-
if (z.endsWith(
|
|
546
|
-
C =
|
|
544
|
+
const X = b[p];
|
|
545
|
+
if (z.endsWith(X)) {
|
|
546
|
+
C = X, z = z.substring(0, z.length - X.length);
|
|
547
547
|
break;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -565,11 +565,11 @@ class v6 extends X7 {
|
|
|
565
565
|
if (z.hasAttribute("transform")) {
|
|
566
566
|
const p = z.getAttribute("transform").split(")");
|
|
567
567
|
for (let S = p.length - 1; S >= 0; S--) {
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
570
|
-
const F =
|
|
571
|
-
if (F > 0 && F <
|
|
572
|
-
const T =
|
|
568
|
+
const X = p[S].trim();
|
|
569
|
+
if (X === "") continue;
|
|
570
|
+
const F = X.indexOf("("), K = X.length;
|
|
571
|
+
if (F > 0 && F < K) {
|
|
572
|
+
const T = X.slice(0, F), t1 = d(X.slice(F + 1));
|
|
573
573
|
switch (_.identity(), T) {
|
|
574
574
|
case "translate":
|
|
575
575
|
if (t1.length >= 1) {
|
|
@@ -581,7 +581,7 @@ class v6 extends X7 {
|
|
|
581
581
|
case "rotate":
|
|
582
582
|
if (t1.length >= 1) {
|
|
583
583
|
let U = 0, J = 0, M = 0;
|
|
584
|
-
U = t1[0] * Math.PI / 180, t1.length >= 3 && (J = t1[1], M = t1[2]),
|
|
584
|
+
U = t1[0] * Math.PI / 180, t1.length >= 3 && (J = t1[1], M = t1[2]), j.makeTranslation(-J, -M), Y.makeRotation(U), L.multiplyMatrices(Y, j), j.makeTranslation(J, M), _.multiplyMatrices(j, L);
|
|
585
585
|
}
|
|
586
586
|
break;
|
|
587
587
|
case "scale":
|
|
@@ -642,7 +642,7 @@ class v6 extends X7 {
|
|
|
642
642
|
G.set(F.x, F.y, 1).applyMatrix3(C), F.set(G.x, G.y);
|
|
643
643
|
}
|
|
644
644
|
function p(F) {
|
|
645
|
-
const
|
|
645
|
+
const K = F.xRadius, T = F.yRadius, t1 = Math.cos(F.aRotation), U = Math.sin(F.aRotation), J = new N1(K * t1, K * U, 0), M = new N1(-T * U, T * t1, 0), V = J.applyMatrix3(C), O = M.applyMatrix3(C), y = Q.set(
|
|
646
646
|
V.x,
|
|
647
647
|
O.x,
|
|
648
648
|
0,
|
|
@@ -652,9 +652,9 @@ class v6 extends X7 {
|
|
|
652
652
|
0,
|
|
653
653
|
0,
|
|
654
654
|
1
|
|
655
|
-
), n1 =
|
|
655
|
+
), n1 = j.copy(y).invert(), y1 = Y.copy(n1).transpose().multiply(n1).elements, T1 = e1(y1[0], y1[1], y1[4]), W1 = Math.sqrt(T1.rt1), b1 = Math.sqrt(T1.rt2);
|
|
656
656
|
if (F.xRadius = 1 / W1, F.yRadius = 1 / b1, F.aRotation = Math.atan2(T1.sn, T1.cs), !((F.aEndAngle - F.aStartAngle) % (2 * Math.PI) < Number.EPSILON)) {
|
|
657
|
-
const e4 =
|
|
657
|
+
const e4 = j.set(
|
|
658
658
|
W1,
|
|
659
659
|
0,
|
|
660
660
|
0,
|
|
@@ -682,14 +682,14 @@ class v6 extends X7 {
|
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
function S(F) {
|
|
685
|
-
const
|
|
686
|
-
F.xRadius *=
|
|
687
|
-
const t1 =
|
|
685
|
+
const K = P(C), T = D(C);
|
|
686
|
+
F.xRadius *= K, F.yRadius *= T;
|
|
687
|
+
const t1 = K > Number.EPSILON ? Math.atan2(C.elements[1], C.elements[0]) : Math.atan2(-C.elements[3], C.elements[4]);
|
|
688
688
|
F.aRotation += t1, E(C) && (F.aStartAngle *= -1, F.aEndAngle *= -1, F.aClockwise = !F.aClockwise);
|
|
689
689
|
}
|
|
690
|
-
const
|
|
691
|
-
for (let F = 0,
|
|
692
|
-
const t1 =
|
|
690
|
+
const X = z.subPaths;
|
|
691
|
+
for (let F = 0, K = X.length; F < K; F++) {
|
|
692
|
+
const t1 = X[F].curves;
|
|
693
693
|
for (let U = 0; U < t1.length; U++) {
|
|
694
694
|
const J = t1[U];
|
|
695
695
|
J.isLineCurve ? (_(J.v1), _(J.v2)) : J.isCubicBezierCurve ? (_(J.v0), _(J.v1), _(J.v2), _(J.v3)) : J.isQuadraticBezierCurve ? (_(J.v0), _(J.v1), _(J.v2)) : J.isEllipseCurve && (q1.set(J.aX, J.aY), _(q1), J.aX = q1.x, J.aY = q1.y, w(C) ? p(J) : S(J));
|
|
@@ -714,12 +714,12 @@ class v6 extends X7 {
|
|
|
714
714
|
const C = z.elements;
|
|
715
715
|
return Math.sqrt(C[3] * C[3] + C[4] * C[4]);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
let p, S,
|
|
717
|
+
function e1(z, C, _) {
|
|
718
|
+
let p, S, X, F, K;
|
|
719
719
|
const T = z + _, t1 = z - _, U = Math.sqrt(t1 * t1 + 4 * C * C);
|
|
720
|
-
return T > 0 ? (p = 0.5 * (T + U),
|
|
720
|
+
return T > 0 ? (p = 0.5 * (T + U), K = 1 / p, S = z * K * _ - C * K * C) : T < 0 ? S = 0.5 * (T - U) : (p = 0.5 * U, S = -0.5 * U), t1 > 0 ? X = t1 + U : X = t1 - U, Math.abs(X) > 2 * Math.abs(C) ? (K = -2 * C / X, F = 1 / Math.sqrt(1 + K * K), X = K * F) : Math.abs(C) === 0 ? (X = 1, F = 0) : (K = -0.5 * X / C, X = 1 / Math.sqrt(1 + K * K), F = K * X), t1 > 0 && (K = X, X = -F, F = K), { rt1: p, rt2: S, cs: X, sn: F };
|
|
721
721
|
}
|
|
722
|
-
const W = [], l1 = {}, $ = [], Q = new k4(),
|
|
722
|
+
const W = [], l1 = {}, $ = [], Q = new k4(), j = new k4(), Y = new k4(), L = new k4(), q1 = new w1(), G = new N1(), N = new k4(), B = new DOMParser().parseFromString(l, "image/svg+xml");
|
|
723
723
|
return o(B.documentElement, {
|
|
724
724
|
fill: "#000",
|
|
725
725
|
fillOpacity: 1,
|
|
@@ -750,13 +750,13 @@ class v6 extends X7 {
|
|
|
750
750
|
t: 0
|
|
751
751
|
};
|
|
752
752
|
function r(f, d, b, A) {
|
|
753
|
-
const g = f.x, u = d.x, h = b.x, I = A.x, E = f.y, w = d.y, P = b.y, D = A.y,
|
|
754
|
-
if (l1 === 0 &&
|
|
753
|
+
const g = f.x, u = d.x, h = b.x, I = A.x, E = f.y, w = d.y, P = b.y, D = A.y, e1 = (I - h) * (E - P) - (D - P) * (g - h), W = (u - g) * (E - P) - (w - E) * (g - h), l1 = (D - P) * (u - g) - (I - h) * (w - E), $ = e1 / l1, Q = W / l1;
|
|
754
|
+
if (l1 === 0 && e1 !== 0 || $ <= 0 || $ >= 1 || Q < 0 || Q > 1)
|
|
755
755
|
return null;
|
|
756
|
-
if (
|
|
757
|
-
for (let
|
|
758
|
-
if (q(
|
|
759
|
-
const Y =
|
|
756
|
+
if (e1 === 0 && l1 === 0) {
|
|
757
|
+
for (let j = 0; j < 2; j++)
|
|
758
|
+
if (q(j === 0 ? b : A, f, d), n.loc == o.ORIGIN) {
|
|
759
|
+
const Y = j === 0 ? b : A;
|
|
760
760
|
return { x: Y.x, y: Y.y, t: n.t };
|
|
761
761
|
} else if (n.loc == o.BETWEEN) {
|
|
762
762
|
const Y = +(g + n.t * (u - g)).toPrecision(10), L = +(E + n.t * (w - E)).toPrecision(10);
|
|
@@ -769,8 +769,8 @@ class v6 extends X7 {
|
|
|
769
769
|
const q1 = L === 0 ? b : A;
|
|
770
770
|
return { x: q1.x, y: q1.y, t: n.t };
|
|
771
771
|
}
|
|
772
|
-
const
|
|
773
|
-
return { x:
|
|
772
|
+
const j = +(g + $ * (u - g)).toPrecision(10), Y = +(E + $ * (w - E)).toPrecision(10);
|
|
773
|
+
return { x: j, y: Y, t: $ };
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
function q(f, d, b) {
|
|
@@ -834,17 +834,17 @@ class v6 extends X7 {
|
|
|
834
834
|
W.identifier === f.identifier ? E.push(W) : w.push(W);
|
|
835
835
|
});
|
|
836
836
|
const P = E[0].point.x, D = [];
|
|
837
|
-
let
|
|
838
|
-
for (;
|
|
839
|
-
D.length > 0 && D[D.length - 1] === w[
|
|
837
|
+
let e1 = 0;
|
|
838
|
+
for (; e1 < w.length && w[e1].point.x < P; )
|
|
839
|
+
D.length > 0 && D[D.length - 1] === w[e1].identifier ? D.pop() : D.push(w[e1].identifier), e1++;
|
|
840
840
|
if (D.push(f.identifier), g === "evenodd") {
|
|
841
841
|
const W = D.length % 2 === 0, l1 = D[D.length - 2];
|
|
842
842
|
return { identifier: f.identifier, isHole: W, for: l1 };
|
|
843
843
|
} else if (g === "nonzero") {
|
|
844
844
|
let W = !0, l1 = null, $ = null;
|
|
845
845
|
for (let Q = 0; Q < D.length; Q++) {
|
|
846
|
-
const
|
|
847
|
-
W ? ($ = d[
|
|
846
|
+
const j = D[Q];
|
|
847
|
+
W ? ($ = d[j].isCW, W = !1, l1 = j) : $ !== d[j].isCW && ($ = d[j].isCW, W = !0);
|
|
848
848
|
}
|
|
849
849
|
return { identifier: f.identifier, isHole: W, for: l1 };
|
|
850
850
|
} else
|
|
@@ -927,15 +927,15 @@ class v6 extends X7 {
|
|
|
927
927
|
o = o !== void 0 ? o : 12, n = n !== void 0 ? n : 1e-3, i = i !== void 0 ? i : 0, l = t1(l);
|
|
928
928
|
const D = l.length;
|
|
929
929
|
if (D < 2) return 0;
|
|
930
|
-
const
|
|
930
|
+
const e1 = l[0].equals(l[D - 1]);
|
|
931
931
|
let W, l1 = l[0], $;
|
|
932
|
-
const Q = t.strokeWidth / 2,
|
|
932
|
+
const Q = t.strokeWidth / 2, j = 1 / (D - 1);
|
|
933
933
|
let Y = 0, L, q1, G, N, B = !1, Z = 0, z = i * 3, C = i * 2;
|
|
934
934
|
_(l[0], l[1], a).multiplyScalar(Q), d.copy(l[0]).sub(a), b.copy(l[0]).add(a), A.copy(d), g.copy(b);
|
|
935
935
|
for (let U = 1; U < D; U++) {
|
|
936
|
-
W = l[U], U === D - 1 ?
|
|
936
|
+
W = l[U], U === D - 1 ? e1 ? $ = l[1] : $ = void 0 : $ = l[U + 1];
|
|
937
937
|
const J = a;
|
|
938
|
-
if (_(l1, W, J), m.copy(J).multiplyScalar(Q), u.copy(W).sub(m), h.copy(W).add(m), L = Y +
|
|
938
|
+
if (_(l1, W, J), m.copy(J).multiplyScalar(Q), u.copy(W).sub(m), h.copy(W).add(m), L = Y + j, q1 = !1, $ !== void 0) {
|
|
939
939
|
_(W, $, s), m.copy(s).multiplyScalar(Q), I.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
940
|
const M = Math.abs(J.dot(m));
|
|
941
941
|
if (M > Number.EPSILON) {
|
|
@@ -944,12 +944,12 @@ class v6 extends X7 {
|
|
|
944
944
|
const O = R.length(), y = v.length();
|
|
945
945
|
v.divideScalar(y), x.subVectors($, W);
|
|
946
946
|
const n1 = x.length();
|
|
947
|
-
switch (x.divideScalar(n1), v.dot(w) < y && x.dot(w) < n1 && (q1 = !0), P.copy(R).add(W), w.add(W), N = !1, q1 ? G ? (E.copy(w), h.copy(w)) : (I.copy(w), u.copy(w)) :
|
|
947
|
+
switch (x.divideScalar(n1), v.dot(w) < y && x.dot(w) < n1 && (q1 = !0), P.copy(R).add(W), w.add(W), N = !1, q1 ? G ? (E.copy(w), h.copy(w)) : (I.copy(w), u.copy(w)) : X(), t.strokeLineJoin) {
|
|
948
948
|
case "bevel":
|
|
949
949
|
F(G, q1, L);
|
|
950
950
|
break;
|
|
951
951
|
case "round":
|
|
952
|
-
|
|
952
|
+
K(G, q1), G ? S(W, u, I, L, 0) : S(W, E, h, L, 1);
|
|
953
953
|
break;
|
|
954
954
|
case "miter":
|
|
955
955
|
case "miter-clip":
|
|
@@ -960,18 +960,18 @@ class v6 extends X7 {
|
|
|
960
960
|
F(G, q1, L);
|
|
961
961
|
break;
|
|
962
962
|
} else
|
|
963
|
-
|
|
963
|
+
K(G, q1), G ? (x.subVectors(P, u).multiplyScalar(s1).add(u), f.subVectors(P, I).multiplyScalar(s1).add(I), p(u, L, 0), p(x, L, 0), p(W, L, 0.5), p(W, L, 0.5), p(x, L, 0), p(f, L, 0), p(W, L, 0.5), p(f, L, 0), p(I, L, 0)) : (x.subVectors(P, h).multiplyScalar(s1).add(h), f.subVectors(P, E).multiplyScalar(s1).add(E), p(h, L, 1), p(x, L, 1), p(W, L, 0.5), p(W, L, 0.5), p(x, L, 1), p(f, L, 1), p(W, L, 0.5), p(f, L, 1), p(E, L, 1));
|
|
964
964
|
else
|
|
965
965
|
q1 ? (G ? (p(b, Y, 1), p(d, Y, 0), p(P, L, 0), p(b, Y, 1), p(P, L, 0), p(w, L, 1)) : (p(b, Y, 1), p(d, Y, 0), p(P, L, 1), p(d, Y, 0), p(w, L, 0), p(P, L, 1)), G ? I.copy(P) : E.copy(P)) : G ? (p(u, L, 0), p(P, L, 0), p(W, L, 0.5), p(W, L, 0.5), p(P, L, 0), p(I, L, 0)) : (p(h, L, 1), p(P, L, 1), p(W, L, 0.5), p(W, L, 0.5), p(P, L, 1), p(E, L, 1)), N = !0;
|
|
966
966
|
break;
|
|
967
967
|
}
|
|
968
968
|
} else
|
|
969
|
-
|
|
969
|
+
X();
|
|
970
970
|
} else
|
|
971
|
-
|
|
972
|
-
!
|
|
971
|
+
X();
|
|
972
|
+
!e1 && U === D - 1 && T(l[0], A, g, G, !0, Y), Y = L, l1 = W, d.copy(I), b.copy(E);
|
|
973
973
|
}
|
|
974
|
-
if (!
|
|
974
|
+
if (!e1)
|
|
975
975
|
T(W, u, h, G, !1, L);
|
|
976
976
|
else if (q1 && r) {
|
|
977
977
|
let U = P, J = w;
|
|
@@ -993,13 +993,13 @@ class v6 extends X7 {
|
|
|
993
993
|
v.copy(m).rotateAround(U, y), p(m, V, O), p(v, V, O), p(U, V, 0.5), m.copy(v);
|
|
994
994
|
p(v, V, O), p(M, V, O), p(U, V, 0.5);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function X() {
|
|
997
997
|
p(b, Y, 1), p(d, Y, 0), p(u, L, 0), p(b, Y, 1), p(u, L, 0), p(h, L, 1);
|
|
998
998
|
}
|
|
999
999
|
function F(U, J, M) {
|
|
1000
1000
|
J ? U ? (p(b, Y, 1), p(d, Y, 0), p(u, L, 0), p(b, Y, 1), p(u, L, 0), p(w, L, 1), p(u, M, 0), p(I, M, 0), p(w, M, 0.5)) : (p(b, Y, 1), p(d, Y, 0), p(h, L, 1), p(d, Y, 0), p(w, L, 0), p(h, L, 1), p(h, M, 1), p(w, M, 0), p(E, M, 1)) : U ? (p(u, M, 0), p(I, M, 0), p(W, M, 0.5)) : (p(h, M, 1), p(E, M, 0), p(W, M, 0.5));
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function K(U, J) {
|
|
1003
1003
|
J && (U ? (p(b, Y, 1), p(d, Y, 0), p(u, L, 0), p(b, Y, 1), p(u, L, 0), p(w, L, 1), p(u, Y, 0), p(W, L, 0.5), p(w, L, 1), p(W, L, 0.5), p(I, Y, 0), p(w, L, 1)) : (p(b, Y, 1), p(d, Y, 0), p(h, L, 1), p(d, Y, 0), p(w, L, 0), p(h, L, 1), p(h, Y, 1), p(w, L, 0), p(W, L, 0.5), p(W, L, 0.5), p(w, L, 0), p(E, Y, 1)));
|
|
1004
1004
|
}
|
|
1005
1005
|
function T(U, J, M, V, O, y) {
|
|
@@ -7225,7 +7225,7 @@ is considered to be not a multigraph by default (each edge is unique).`
|
|
|
7225
7225
|
*
|
|
7226
7226
|
* @returns link if there is one; undefined otherwise.
|
|
7227
7227
|
*/
|
|
7228
|
-
getLinkById:
|
|
7228
|
+
getLinkById: e1
|
|
7229
7229
|
};
|
|
7230
7230
|
return Ce(m), v(), m;
|
|
7231
7231
|
function v() {
|
|
@@ -7306,7 +7306,7 @@ is considered to be not a multigraph by default (each edge is unique).`
|
|
|
7306
7306
|
if (!(N === void 0 || B === void 0))
|
|
7307
7307
|
return t.get(g2(N, B));
|
|
7308
7308
|
}
|
|
7309
|
-
function
|
|
7309
|
+
function e1(N) {
|
|
7310
7310
|
if (N !== void 0)
|
|
7311
7311
|
return t.get(N);
|
|
7312
7312
|
}
|
|
@@ -7326,7 +7326,7 @@ is considered to be not a multigraph by default (each edge is unique).`
|
|
|
7326
7326
|
function $(N, B, Z) {
|
|
7327
7327
|
var z = d(N);
|
|
7328
7328
|
if (z && z.links && typeof B == "function")
|
|
7329
|
-
return Z ?
|
|
7329
|
+
return Z ? j(z.links, N, B) : Q(z.links, N, B);
|
|
7330
7330
|
}
|
|
7331
7331
|
function Q(N, B, Z) {
|
|
7332
7332
|
for (var z, C = N.values(), _ = C.next(); !_.done; ) {
|
|
@@ -7336,7 +7336,7 @@ is considered to be not a multigraph by default (each edge is unique).`
|
|
|
7336
7336
|
_ = C.next();
|
|
7337
7337
|
}
|
|
7338
7338
|
}
|
|
7339
|
-
function
|
|
7339
|
+
function j(N, B, Z) {
|
|
7340
7340
|
for (var z, C = N.values(), _ = C.next(); !_.done; ) {
|
|
7341
7341
|
var p = _.value;
|
|
7342
7342
|
if (p.fromId === B && (z = Z(l.get(p.toId), p), z))
|
|
@@ -7577,7 +7577,7 @@ function E6(e, l) {
|
|
|
7577
7577
|
x.length < f.length ? (I = K4, h = x) : (I = _3, h = f);
|
|
7578
7578
|
var E = h.pop();
|
|
7579
7579
|
if (E.closed = !0, !(E.distanceToSource > A) && (e.forEachLinkedNode(E.node.id, v), g && u))
|
|
7580
|
-
return
|
|
7580
|
+
return e1(g, u);
|
|
7581
7581
|
}
|
|
7582
7582
|
return je;
|
|
7583
7583
|
function w(l1, $) {
|
|
@@ -7593,25 +7593,25 @@ function E6(e, l) {
|
|
|
7593
7593
|
var $ = l1.open;
|
|
7594
7594
|
return !!($ && $ !== I);
|
|
7595
7595
|
}
|
|
7596
|
-
function
|
|
7597
|
-
for (var Q = [],
|
|
7598
|
-
Q.push(
|
|
7596
|
+
function e1(l1, $) {
|
|
7597
|
+
for (var Q = [], j = l1; j; )
|
|
7598
|
+
Q.push(j.node), j = j.parent;
|
|
7599
7599
|
for (var Y = $; Y; )
|
|
7600
7600
|
Q.unshift(Y.node), Y = Y.parent;
|
|
7601
7601
|
return Q;
|
|
7602
7602
|
}
|
|
7603
7603
|
function W(l1, $, Q) {
|
|
7604
|
-
var
|
|
7605
|
-
if (
|
|
7606
|
-
if (D(
|
|
7607
|
-
var Y =
|
|
7608
|
-
Y < A && (g =
|
|
7604
|
+
var j = R.get(l1.id);
|
|
7605
|
+
if (j || (j = q.createNewState(l1), R.set(l1.id, j)), !j.closed && !o(j.node, Q.node, $)) {
|
|
7606
|
+
if (D(j)) {
|
|
7607
|
+
var Y = j.distanceToSource + Q.distanceToSource;
|
|
7608
|
+
Y < A && (g = j, u = Q, A = Y);
|
|
7609
7609
|
return;
|
|
7610
7610
|
}
|
|
7611
|
-
var L = Q.distanceToSource + r(
|
|
7612
|
-
if (!(L >=
|
|
7613
|
-
var q1 = I === K4 ? m : s, G = L + n(
|
|
7614
|
-
G >= A || (
|
|
7611
|
+
var L = Q.distanceToSource + r(j.node, Q.node, $);
|
|
7612
|
+
if (!(L >= j.distanceToSource)) {
|
|
7613
|
+
var q1 = I === K4 ? m : s, G = L + n(j.node, q1);
|
|
7614
|
+
G >= A || (j.fScore = G, j.open === 0 && (h.push(j), h.updateItem(j.heapIndex), j.open = I), j.parent = Q, j.distanceToSource = L);
|
|
7615
7615
|
}
|
|
7616
7616
|
}
|
|
7617
7617
|
}
|
|
@@ -7680,39 +7680,39 @@ function A6(e, l) {
|
|
|
7680
7680
|
f.set(s, I), I.g2 = 0;
|
|
7681
7681
|
var E = h;
|
|
7682
7682
|
I.f2 = E, b.push(I);
|
|
7683
|
-
for (var w; b.length && d.length && (d.length < b.length ? D() :
|
|
7683
|
+
for (var w; b.length && d.length && (d.length < b.length ? D() : e1(), !(o && A)); )
|
|
7684
7684
|
;
|
|
7685
7685
|
var P = Ye(A);
|
|
7686
7686
|
return P;
|
|
7687
7687
|
function D() {
|
|
7688
7688
|
w = d.pop(), !w.closed && (w.closed = !0, w.f1 < g && w.g1 + E - r(m, w.node) < g && e.forEachLinkedNode(w.node.id, R), d.length > 0 && (h = d.peek().f1));
|
|
7689
7689
|
}
|
|
7690
|
-
function
|
|
7690
|
+
function e1() {
|
|
7691
7691
|
w = b.pop(), !w.closed && (w.closed = !0, w.f2 < g && w.g2 + h - r(w.node, v) < g && e.forEachLinkedNode(w.node.id, x), b.length > 0 && (E = b.peek().f2));
|
|
7692
7692
|
}
|
|
7693
|
-
function W(
|
|
7694
|
-
var L = f.get(
|
|
7695
|
-
if (L || (L = c.createNewState(
|
|
7696
|
-
var q1 = w.g1 + q(w.node,
|
|
7693
|
+
function W(j, Y) {
|
|
7694
|
+
var L = f.get(j.id);
|
|
7695
|
+
if (L || (L = c.createNewState(j), f.set(j.id, L)), !L.closed && !n(w.node, j, Y)) {
|
|
7696
|
+
var q1 = w.g1 + q(w.node, j, Y);
|
|
7697
7697
|
q1 < L.g1 && (L.g1 = q1, L.f1 = q1 + r(L.node, v), L.p1 = w, L.h1 < 0 ? d.push(L) : d.updateItem(L.h1));
|
|
7698
7698
|
var G = L.g1 + L.g2;
|
|
7699
7699
|
G < g && (g = G, A = L);
|
|
7700
7700
|
}
|
|
7701
7701
|
}
|
|
7702
|
-
function l1(
|
|
7703
|
-
var L = f.get(
|
|
7704
|
-
if (L || (L = c.createNewState(
|
|
7705
|
-
var q1 = w.g2 + q(w.node,
|
|
7702
|
+
function l1(j, Y) {
|
|
7703
|
+
var L = f.get(j.id);
|
|
7704
|
+
if (L || (L = c.createNewState(j), f.set(j.id, L)), !L.closed && !n(w.node, j, Y)) {
|
|
7705
|
+
var q1 = w.g2 + q(w.node, j, Y);
|
|
7706
7706
|
q1 < L.g2 && (L.g2 = q1, L.f2 = q1 + r(m, L.node), L.p2 = w, L.h2 < 0 ? b.push(L) : b.updateItem(L.h2));
|
|
7707
7707
|
var G = L.g1 + L.g2;
|
|
7708
7708
|
G < g && (g = G, A = L);
|
|
7709
7709
|
}
|
|
7710
7710
|
}
|
|
7711
|
-
function $(
|
|
7712
|
-
if (Y.toId === w.node.id) return l1(
|
|
7711
|
+
function $(j, Y) {
|
|
7712
|
+
if (Y.toId === w.node.id) return l1(j, Y);
|
|
7713
7713
|
}
|
|
7714
|
-
function Q(
|
|
7715
|
-
if (Y.fromId === w.node.id) return W(
|
|
7714
|
+
function Q(j, Y) {
|
|
7715
|
+
if (Y.fromId === w.node.id) return W(j, Y);
|
|
7716
7716
|
}
|
|
7717
7717
|
}
|
|
7718
7718
|
}
|
|
@@ -9052,7 +9052,7 @@ const n5 = (e) => {
|
|
|
9052
9052
|
headers: w,
|
|
9053
9053
|
withCredentials: P = "same-origin",
|
|
9054
9054
|
fetchOptions: D
|
|
9055
|
-
} = n5(x),
|
|
9055
|
+
} = n5(x), e1 = l || fetch;
|
|
9056
9056
|
E = E ? (E + "").toLowerCase() : "text";
|
|
9057
9057
|
let W = xl(
|
|
9058
9058
|
[A, g && g.toAbortSignal()],
|
|
@@ -9078,17 +9078,17 @@ const n5 = (e) => {
|
|
|
9078
9078
|
}
|
|
9079
9079
|
}
|
|
9080
9080
|
H.isString(P) || (P = P ? "include" : "omit");
|
|
9081
|
-
const
|
|
9081
|
+
const j = r && "credentials" in t.prototype, Y = {
|
|
9082
9082
|
...D,
|
|
9083
9083
|
signal: W,
|
|
9084
9084
|
method: d.toUpperCase(),
|
|
9085
9085
|
headers: w.normalize().toJSON(),
|
|
9086
9086
|
body: b,
|
|
9087
9087
|
duplex: "half",
|
|
9088
|
-
credentials:
|
|
9088
|
+
credentials: j ? P : void 0
|
|
9089
9089
|
};
|
|
9090
9090
|
l1 = r && new t(f, Y);
|
|
9091
|
-
let L = await (r ?
|
|
9091
|
+
let L = await (r ? e1(l1, D) : e1(f, Y));
|
|
9092
9092
|
const q1 = s && (E === "stream" || E === "response");
|
|
9093
9093
|
if (s && (h || q1 && $)) {
|
|
9094
9094
|
const N = {};
|
|
@@ -9121,19 +9121,19 @@ const n5 = (e) => {
|
|
|
9121
9121
|
request: l1
|
|
9122
9122
|
});
|
|
9123
9123
|
});
|
|
9124
|
-
} catch (
|
|
9125
|
-
throw $ && $(),
|
|
9124
|
+
} catch (j) {
|
|
9125
|
+
throw $ && $(), j && j.name === "TypeError" && /Load failed|fetch/i.test(j.message) ? Object.assign(
|
|
9126
9126
|
new g1(
|
|
9127
9127
|
"Network Error",
|
|
9128
9128
|
g1.ERR_NETWORK,
|
|
9129
9129
|
x,
|
|
9130
9130
|
l1,
|
|
9131
|
-
|
|
9131
|
+
j && j.response
|
|
9132
9132
|
),
|
|
9133
9133
|
{
|
|
9134
|
-
cause:
|
|
9134
|
+
cause: j.cause || j
|
|
9135
9135
|
}
|
|
9136
|
-
) : g1.from(
|
|
9136
|
+
) : g1.from(j, j && j.code, x, l1, j && j.response);
|
|
9137
9137
|
}
|
|
9138
9138
|
};
|
|
9139
9139
|
}, vl = /* @__PURE__ */ new Map(), o5 = (e) => {
|
|
@@ -9794,7 +9794,7 @@ const {
|
|
|
9794
9794
|
t && (t.current = s), p1(() => {
|
|
9795
9795
|
o && m(o);
|
|
9796
9796
|
}, [o]);
|
|
9797
|
-
const [v, R] = c1(/* @__PURE__ */ new Map()), [x, f] = c1([]), [d, b] = c1({}), [A, g] = c1({}), [u, h] = c1({}), [I, E] = c1([]), [w, P] = c1({}), [D,
|
|
9797
|
+
const [v, R] = c1(/* @__PURE__ */ new Map()), [x, f] = c1([]), [d, b] = c1({}), [A, g] = c1({}), [u, h] = c1({}), [I, E] = c1([]), [w, P] = c1({}), [D, e1] = c1(Re()), [W, l1] = c1(Je), [$, Q] = c1(null), [j, Y] = c1(), L = V1(() => Ol(r, i), [r, i.CENTER_ID]);
|
|
9798
9798
|
p1(() => {
|
|
9799
9799
|
a((N) => ({ ...N, ...l.config }));
|
|
9800
9800
|
}, [l.config, l.config.CENTER_ID]);
|
|
@@ -9814,8 +9814,9 @@ const {
|
|
|
9814
9814
|
_,
|
|
9815
9815
|
p
|
|
9816
9816
|
]) => {
|
|
9817
|
-
const S = Z.map((
|
|
9818
|
-
Z = Z.filter((
|
|
9817
|
+
const S = Z.map((F) => F.map_obj_name);
|
|
9818
|
+
Z = Z.filter((F, K) => S.indexOf(F.map_obj_name) === K);
|
|
9819
|
+
const X = {
|
|
9819
9820
|
retailers: N,
|
|
9820
9821
|
globalRetailerIds: B,
|
|
9821
9822
|
map_objs: Z,
|
|
@@ -9823,13 +9824,14 @@ const {
|
|
|
9823
9824
|
kiosks: C,
|
|
9824
9825
|
mapSettings: _,
|
|
9825
9826
|
responsiveSettings: p
|
|
9826
|
-
}
|
|
9827
|
+
};
|
|
9828
|
+
m(X), n && n(X);
|
|
9827
9829
|
}).catch((N) => {
|
|
9828
9830
|
console.error("Error: MapBoxContextProvider fetching api data:", N), c(!0);
|
|
9829
9831
|
});
|
|
9830
9832
|
}, [L, i.CENTER_ID]);
|
|
9831
9833
|
p1(() => {
|
|
9832
|
-
|
|
9834
|
+
a((N) => ({
|
|
9833
9835
|
...N,
|
|
9834
9836
|
...s.mapSettings.responseConfig,
|
|
9835
9837
|
CAMERA_CONTROLS_STATES: s.responsiveSettings,
|
|
@@ -9892,12 +9894,12 @@ const {
|
|
|
9892
9894
|
allNodesFloor: w,
|
|
9893
9895
|
setAllNodesFloor: P,
|
|
9894
9896
|
pathFinderGraph: D,
|
|
9895
|
-
setPathFinderGraph:
|
|
9897
|
+
setPathFinderGraph: e1,
|
|
9896
9898
|
ngraphPath: W,
|
|
9897
9899
|
setNgraphPath: l1,
|
|
9898
9900
|
meshObject: $,
|
|
9899
9901
|
setMeshObject: Q,
|
|
9900
|
-
cameraLength:
|
|
9902
|
+
cameraLength: j,
|
|
9901
9903
|
setCameraLength: Y
|
|
9902
9904
|
};
|
|
9903
9905
|
return q ? I.length <= 0 ? /* @__PURE__ */ k("div", { className: "messageStyle", children: "Map doesn't have any floors" }) : /* @__PURE__ */ k(s5.Provider, { value: G, children: e }) : /* @__PURE__ */ k("div", { className: "messageStyle", children: "Map loading, please wait..." });
|
|
@@ -10313,8 +10315,8 @@ const K1 = {
|
|
|
10313
10315
|
}, []), s = r1((b, A, g, u = "2D") => {
|
|
10314
10316
|
var D;
|
|
10315
10317
|
let h = 0, I = new K7();
|
|
10316
|
-
for (let
|
|
10317
|
-
let W = new N1(b[
|
|
10318
|
+
for (let e1 = 1; e1 < b.length; e1++) {
|
|
10319
|
+
let W = new N1(b[e1 - 1].data.x, b[e1 - 1].data.y, 0), l1 = new N1(b[e1].data.x, b[e1].data.y, 0);
|
|
10318
10320
|
I.add(new ee(W, l1)), h += W.distanceTo(l1);
|
|
10319
10321
|
}
|
|
10320
10322
|
var E = new le(I, 400, 6, 8);
|
|
@@ -10332,13 +10334,13 @@ const K1 = {
|
|
|
10332
10334
|
var N, B, Z, z, C, _;
|
|
10333
10335
|
const D = [];
|
|
10334
10336
|
c(I);
|
|
10335
|
-
let
|
|
10337
|
+
let e1 = g.getObjectByProperty("object_id", b), W = g.getObjectByProperty("object_id", A), l1 = e1.route_node_id, $ = W.route_node_id;
|
|
10336
10338
|
if (l1 || console.error(E3 + 'Route Anchor point missing for "%s"', b), $ || console.error(E3 + 'Route Anchor point missing for "%s"', A), !l1 || !$) return D;
|
|
10337
|
-
const Q =
|
|
10339
|
+
const Q = e1.floor_index, j = W.floor_index, Y = t.nba(E, {
|
|
10338
10340
|
distance: q,
|
|
10339
10341
|
oriented: !0,
|
|
10340
|
-
blocked(p, S,
|
|
10341
|
-
return
|
|
10342
|
+
blocked(p, S, X) {
|
|
10343
|
+
return X.data.blocked;
|
|
10342
10344
|
},
|
|
10343
10345
|
//@ts-ignore
|
|
10344
10346
|
debug: !0
|
|
@@ -10354,29 +10356,29 @@ const K1 = {
|
|
|
10354
10356
|
for (let p = 0; p < q1.length; p++) {
|
|
10355
10357
|
const S = q1[p];
|
|
10356
10358
|
if (u[q1[0].id] !== u[q1[q1.length - 1].id] && h.includes(S.id)) {
|
|
10357
|
-
const
|
|
10359
|
+
const X = Object.keys(I[u[S.id]].escalatorsNodes).find((T) => {
|
|
10358
10360
|
var t1, U;
|
|
10359
10361
|
return ((U = (t1 = I[u[S.id]]) == null ? void 0 : t1.escalatorsNodes) == null ? void 0 : U[T]) === S.id;
|
|
10360
|
-
}), F = g.getObjectByProperty("escalator_id", u[S.id] + "-" +
|
|
10361
|
-
let
|
|
10362
|
-
if (u[S.id] !== u[q1[p + 1].id] && h.includes(q1[p + 1].id) && (
|
|
10362
|
+
}), F = g.getObjectByProperty("escalator_id", u[S.id] + "-" + X);
|
|
10363
|
+
let K = null;
|
|
10364
|
+
if (u[S.id] !== u[q1[p + 1].id] && h.includes(q1[p + 1].id) && (K = {
|
|
10363
10365
|
index: u[q1[p + 1].id],
|
|
10364
10366
|
direction: "To"
|
|
10365
|
-
}), u[S.id] !== u[q1[p - 1].id] && h.includes(q1[p - 1].id) && (
|
|
10367
|
+
}), u[S.id] !== u[q1[p - 1].id] && h.includes(q1[p - 1].id) && (K = {
|
|
10366
10368
|
index: u[q1[p - 1].id],
|
|
10367
10369
|
direction: "From"
|
|
10368
|
-
}),
|
|
10369
|
-
F.goToFloor =
|
|
10370
|
+
}), K && F) {
|
|
10371
|
+
F.goToFloor = K;
|
|
10370
10372
|
const T = F.clone();
|
|
10371
|
-
T.goToFloor =
|
|
10373
|
+
T.goToFloor = K, T.object_id = X, (B = (N = I[u[S.id]]) == null ? void 0 : N.escalatorMeshes) == null || B.push(T);
|
|
10372
10374
|
}
|
|
10373
10375
|
}
|
|
10374
10376
|
}
|
|
10375
10377
|
for (let p = 0; p < G.length; p++) {
|
|
10376
10378
|
const S = G[p];
|
|
10377
10379
|
if (S && S.length > 1) {
|
|
10378
|
-
const
|
|
10379
|
-
D[p] =
|
|
10380
|
+
const X = s(S, p, I, w);
|
|
10381
|
+
D[p] = X, I[p].route_active = !0, I[p].routeMeshes = [X], p === Q && ((z = (Z = I[p]) == null ? void 0 : Z.routeMeshes) == null || z.push(e1)), p === j && ((_ = (C = I[p]) == null ? void 0 : C.routeMeshes) == null || _.push(W));
|
|
10380
10382
|
}
|
|
10381
10383
|
}
|
|
10382
10384
|
return D;
|
|
@@ -10407,14 +10409,14 @@ const K1 = {
|
|
|
10407
10409
|
for (let g = 0; g < e.length; g++)
|
|
10408
10410
|
A[g] = [], e[g].escalatorsNodes && (b[g] = Object.fromEntries(
|
|
10409
10411
|
Object.entries(e[g].escalatorsNodes).map(([u, h]) => {
|
|
10410
|
-
const I = u.split("-"), E = I.slice(0, 2).join("-"), w = I.includes("end"), P = I.includes("start"), D = I.includes("up"),
|
|
10412
|
+
const I = u.split("-"), E = I.slice(0, 2).join("-"), w = I.includes("end"), P = I.includes("start"), D = I.includes("up"), e1 = I.includes("down"), W = D ? "up" : e1 ? "down" : "both";
|
|
10411
10413
|
return A[g].push(E), [E, {
|
|
10412
10414
|
node: h,
|
|
10413
10415
|
escalatorId: E,
|
|
10414
10416
|
isExitOnly: w,
|
|
10415
10417
|
isEntranceOnly: P,
|
|
10416
10418
|
upOnly: D,
|
|
10417
|
-
downOnly:
|
|
10419
|
+
downOnly: e1,
|
|
10418
10420
|
direction: W,
|
|
10419
10421
|
floorsTo: []
|
|
10420
10422
|
}];
|
|
@@ -10444,12 +10446,12 @@ const K1 = {
|
|
|
10444
10446
|
let I = g.getObjectByProperty("object_id", b), E = I ? I.route_node_id : "";
|
|
10445
10447
|
var w = null, P = 9999;
|
|
10446
10448
|
const D = [];
|
|
10447
|
-
for (let
|
|
10448
|
-
const W = n[
|
|
10449
|
-
W.layer_type === "amenity" && W.obj_type === "special" && W.value === A && D.push(
|
|
10449
|
+
for (let e1 in n) {
|
|
10450
|
+
const W = n[e1];
|
|
10451
|
+
W.layer_type === "amenity" && W.obj_type === "special" && W.value === A && D.push(e1);
|
|
10450
10452
|
}
|
|
10451
|
-
return D.forEach((
|
|
10452
|
-
let W = g.getObjectByProperty("object_id",
|
|
10453
|
+
return D.forEach((e1) => {
|
|
10454
|
+
let W = g.getObjectByProperty("object_id", e1);
|
|
10453
10455
|
const l1 = t.aStar(o, {
|
|
10454
10456
|
distance: q,
|
|
10455
10457
|
//@ts-ignore
|
|
@@ -10459,9 +10461,9 @@ const K1 = {
|
|
|
10459
10461
|
var $ = W.route_node_id;
|
|
10460
10462
|
try {
|
|
10461
10463
|
var Q = R(E || "", $ || "", l1, o);
|
|
10462
|
-
Q && Q < P && (P = Q, w =
|
|
10463
|
-
} catch (
|
|
10464
|
-
console.warn(`Amenity Path: ${
|
|
10464
|
+
Q && Q < P && (P = Q, w = e1);
|
|
10465
|
+
} catch (j) {
|
|
10466
|
+
console.warn(`Amenity Path: ${j.message}`);
|
|
10465
10467
|
}
|
|
10466
10468
|
}
|
|
10467
10469
|
!E && W && (w = $);
|
|
@@ -10521,8 +10523,8 @@ const Pl = () => {
|
|
|
10521
10523
|
return g !== void 0 ? g.startsWith("boundary") ? (s = "boundary", m = e.BOUNDARY_COLOR, b = e.BOUNDARY_THICKNESS, e.STYLE === "3D" && (v = 9)) : g.startsWith("wall") ? (s = "wall", m = e.WALL_COLOR, e.STYLE === "3D" && (v = 8.5)) : g.startsWith("outer-wall") ? (s = "outer-wall", m = e.WALL_COLOR, e.STYLE === "3D" && (f = !1)) : g.startsWith("base") ? (s = "base", m = e.BASE_COLOR) : g.startsWith("store") ? (s = "store", m = e.STORE_DEFAULT_COLOR, e.STYLE === "3D" && (v = e.STORE_HEIGHT), g.startsWith("store-underlay") && (A = !1)) : g.startsWith("route-path") ? (s = "route-path", f = !1, r.subPaths.forEach((I) => {
|
|
10522
10524
|
I.curves.length === 0 && console.warn(a + 'Route-path standalone anchor point exists, layer_name: "%s"', g), I.curves.forEach((E) => {
|
|
10523
10525
|
var $, Q;
|
|
10524
|
-
const w = E.v1, P = E.v2, [D,
|
|
10525
|
-
|
|
10526
|
+
const w = E.v1, P = E.v2, [D, e1] = A8(w, c, l, i);
|
|
10527
|
+
e1 || (($ = l[c].route_points) == null || $.push({
|
|
10526
10528
|
name: D,
|
|
10527
10529
|
node: new N1(w.x, w.y, 1)
|
|
10528
10530
|
}), t[D] = c);
|
|
@@ -10565,12 +10567,12 @@ const Bl = (e) => {
|
|
|
10565
10567
|
layer_color: w,
|
|
10566
10568
|
extrude: P,
|
|
10567
10569
|
z_index: D,
|
|
10568
|
-
mesh_visible:
|
|
10570
|
+
mesh_visible: e1,
|
|
10569
10571
|
mesh_draw: W,
|
|
10570
10572
|
mesh_transparent: l1,
|
|
10571
10573
|
line_thickness: $,
|
|
10572
10574
|
path: Q,
|
|
10573
|
-
layer_name:
|
|
10575
|
+
layer_name: j
|
|
10574
10576
|
} = r(
|
|
10575
10577
|
g[I],
|
|
10576
10578
|
g,
|
|
@@ -10580,17 +10582,17 @@ const Bl = (e) => {
|
|
|
10580
10582
|
if (W) {
|
|
10581
10583
|
const Y = n(
|
|
10582
10584
|
E,
|
|
10583
|
-
|
|
10585
|
+
j,
|
|
10584
10586
|
w,
|
|
10585
10587
|
l1,
|
|
10586
|
-
|
|
10588
|
+
e1,
|
|
10587
10589
|
D,
|
|
10588
10590
|
P,
|
|
10589
10591
|
$,
|
|
10590
10592
|
f,
|
|
10591
10593
|
Q
|
|
10592
10594
|
);
|
|
10593
|
-
|
|
10595
|
+
j.startsWith("kiosk-") && l.ROLE, v[f] || (v[f] = []), v[f].push(Y);
|
|
10594
10596
|
}
|
|
10595
10597
|
}
|
|
10596
10598
|
const u = new te(), h = q(
|
|
@@ -10656,8 +10658,8 @@ const Bl = (e) => {
|
|
|
10656
10658
|
E.querySelectorAll("[fill]").forEach((W) => {
|
|
10657
10659
|
W.setAttribute("fill", "#" + u);
|
|
10658
10660
|
});
|
|
10659
|
-
const P = new XMLSerializer().serializeToString(E), D = new Blob([P], { type: "image/svg+xml" }),
|
|
10660
|
-
d(
|
|
10661
|
+
const P = new XMLSerializer().serializeToString(E), D = new Blob([P], { type: "image/svg+xml" }), e1 = URL.createObjectURL(D);
|
|
10662
|
+
d(e1);
|
|
10661
10663
|
} else
|
|
10662
10664
|
console.error("svg_element not found", g), d("");
|
|
10663
10665
|
} else
|
|
@@ -10692,8 +10694,8 @@ const Bl = (e) => {
|
|
|
10692
10694
|
s(d, f[d.retailer_id]).then((w) => {
|
|
10693
10695
|
w && m(w, d, (P, D) => {
|
|
10694
10696
|
var l1;
|
|
10695
|
-
const
|
|
10696
|
-
i(A, u, h,
|
|
10697
|
+
const e1 = new G2(P, D), W = b.floor_index;
|
|
10698
|
+
i(A, u, h, e1, x), e1.object_id = g, e1.floor_index = W, e1.renderOrder = n("layer-image"), (l1 = I[W]) == null || l1.objsGroup.add(e1), E({ storeLogo: e1 });
|
|
10697
10699
|
});
|
|
10698
10700
|
});
|
|
10699
10701
|
}, [n]), R = r1((x, f, d, b, A, g) => {
|
|
@@ -10709,10 +10711,10 @@ const Bl = (e) => {
|
|
|
10709
10711
|
if (["retail_name", "retail_text", "custom_text"].includes(P.layer_type)) {
|
|
10710
10712
|
let D = "";
|
|
10711
10713
|
P.layer_type === "retail_name" && P.retailer_id && e[P.retailer_id] ? D = e[P.retailer_id].retail_name : ["retail_text", "custom_text"].includes(P.layer_type) ? D = P.custom_text : D = "";
|
|
10712
|
-
let
|
|
10713
|
-
P.text_color && (
|
|
10714
|
+
let e1 = o.STORE_TEXT_COLOR;
|
|
10715
|
+
P.text_color && (e1 = B1(P.text_color));
|
|
10714
10716
|
const W = {
|
|
10715
|
-
color:
|
|
10717
|
+
color: e1,
|
|
10716
10718
|
transparent: !1,
|
|
10717
10719
|
side: r2,
|
|
10718
10720
|
depthWrite: !1,
|
|
@@ -10745,19 +10747,19 @@ let A3 = [];
|
|
|
10745
10747
|
const Gl = () => {
|
|
10746
10748
|
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([]), [R, x] = c1([]), [f, d] = c1([]);
|
|
10747
10749
|
let b = W7(v6, i.floors.map((D) => B9(D.svgUrl, e)));
|
|
10748
|
-
const { GeometriesAndMaterials: A, graph: g, escalator_nodes: u, allSvgObjectIds: h } = Bl(b), { get_store_name_logo_geometry: I } = m5(), E = L9(P9), w = r1((D) => (
|
|
10749
|
-
x((W) => (W[D] ? W[D].push({ ...
|
|
10750
|
+
const { GeometriesAndMaterials: A, graph: g, escalator_nodes: u, allSvgObjectIds: h } = Bl(b), { get_store_name_logo_geometry: I } = m5(), E = L9(P9), w = r1((D) => (e1) => {
|
|
10751
|
+
x((W) => (W[D] ? W[D].push({ ...e1 }) : W[D] = [{ ...e1 }], [...W]));
|
|
10750
10752
|
}, []), P = r1(() => {
|
|
10751
|
-
s((D) => (D && D.forEach((
|
|
10752
|
-
|
|
10753
|
+
s((D) => (D && D.forEach((e1) => {
|
|
10754
|
+
e1 && e1.forEach((W) => {
|
|
10753
10755
|
W.mesh.removeFromParent();
|
|
10754
10756
|
});
|
|
10755
|
-
}), [])), v((D) => (D && D.forEach((
|
|
10756
|
-
|
|
10757
|
+
}), [])), v((D) => (D && D.forEach((e1) => {
|
|
10758
|
+
e1 && e1.forEach((W) => {
|
|
10757
10759
|
W.textMesh.removeFromParent();
|
|
10758
10760
|
});
|
|
10759
|
-
}), [])), x((D) => (D && D.forEach((
|
|
10760
|
-
|
|
10761
|
+
}), [])), x((D) => (D && D.forEach((e1) => {
|
|
10762
|
+
e1 && e1.forEach((W) => {
|
|
10761
10763
|
W.storeLogo.removeFromParent();
|
|
10762
10764
|
});
|
|
10763
10765
|
}), []));
|
|
@@ -10775,7 +10777,7 @@ const Gl = () => {
|
|
|
10775
10777
|
const D = [];
|
|
10776
10778
|
if (A3.forEach((l1) => {
|
|
10777
10779
|
let $;
|
|
10778
|
-
for (let
|
|
10780
|
+
for (let j = 0; j < A.length && ($ = A[j].find((Y) => Y.object_id === l1.map_obj_name), $ === void 0); j++)
|
|
10779
10781
|
;
|
|
10780
10782
|
if (!$) return null;
|
|
10781
10783
|
const Q = I($.geometry, l1.map_obj_name, $.floor_index, k2, E, w($.floor_index));
|
|
@@ -10787,7 +10789,7 @@ const Gl = () => {
|
|
|
10787
10789
|
}), A.forEach(($) => {
|
|
10788
10790
|
$.forEach((Q) => {
|
|
10789
10791
|
if (!l1.has(Q.object_id)) {
|
|
10790
|
-
const
|
|
10792
|
+
const j = I(
|
|
10791
10793
|
Q.geometry,
|
|
10792
10794
|
Q.object_id,
|
|
10793
10795
|
Q.floor_index,
|
|
@@ -10795,7 +10797,7 @@ const Gl = () => {
|
|
|
10795
10797
|
E,
|
|
10796
10798
|
w(Q.floor_index)
|
|
10797
10799
|
);
|
|
10798
|
-
|
|
10800
|
+
j && (D[Q.floor_index] || (D[Q.floor_index] = []), D[Q.floor_index].push(j));
|
|
10799
10801
|
}
|
|
10800
10802
|
});
|
|
10801
10803
|
});
|
|
@@ -10920,8 +10922,8 @@ const Wl = "_escalator_elems_1kqb9_1", jl = "_element_1kqb9_4", Xl = "_svgIcon_1
|
|
|
10920
10922
|
const w = c && E.mesh.visible && x.interactiveObjs && x.interactiveObjs.includes(E.mesh), P = q && E.mesh.object_id === q, D = r && E.mesh.object_id === r;
|
|
10921
10923
|
if (w)
|
|
10922
10924
|
if ((D || P) && (E.mesh.material instanceof w9 || E.mesh.material instanceof qe)) {
|
|
10923
|
-
const
|
|
10924
|
-
E.mesh.material.color = P ? Jl(
|
|
10925
|
+
const e1 = D ? a.ACCENT_COLOR : E.mesh.material.colorDefault;
|
|
10926
|
+
E.mesh.material.color = P ? Jl(e1) : e1;
|
|
10925
10927
|
} else
|
|
10926
10928
|
E.mesh.material.color = E.mesh.material.colorDefault;
|
|
10927
10929
|
return /* @__PURE__ */ k("group", { ...w ? { onPointerOver: d, onPointerMove: f, onPointerOut: b, onClick: A } : {}, children: /* @__PURE__ */ k("primitive", { object: E.mesh }) }, E.mesh.uuid);
|
|
@@ -10936,8 +10938,8 @@ const Wl = "_escalator_elems_1kqb9_1", jl = "_element_1kqb9_4", Xl = "_svgIcon_1
|
|
|
10936
10938
|
className: `escalator_elems ${_2.escalator_elems}`,
|
|
10937
10939
|
style: { display: c ? "block" : "none" },
|
|
10938
10940
|
onClick: (D) => {
|
|
10939
|
-
var
|
|
10940
|
-
return D.stopPropagation(), i(((
|
|
10941
|
+
var e1;
|
|
10942
|
+
return D.stopPropagation(), i(((e1 = E.goToFloor) == null ? void 0 : e1.index) || 0), !1;
|
|
10941
10943
|
},
|
|
10942
10944
|
onPointerMove: (D) => D.stopPropagation(),
|
|
10943
10945
|
children: /* @__PURE__ */ f1("div", { className: `element ${_2.element}`, id: E.object_id, children: [
|
|
@@ -10984,13 +10986,13 @@ const Ql = L4((e, l) => {
|
|
|
10984
10986
|
handleCameraLength: w,
|
|
10985
10987
|
handleCameraAndControlsChange: P,
|
|
10986
10988
|
activeObjectId: D,
|
|
10987
|
-
isSelectedRetailerSlug:
|
|
10989
|
+
isSelectedRetailerSlug: e1,
|
|
10988
10990
|
setIsCameraInit: W,
|
|
10989
10991
|
handleObjectClick: l1,
|
|
10990
10992
|
triggerClick: $,
|
|
10991
10993
|
cameraControlsPosition: Q,
|
|
10992
|
-
deviceType:
|
|
10993
|
-
} = e, [Y, L] = c1({ min: t.CAMERA.minDistance, max: t.CAMERA.maxDistance, initialDistance: 0, needsUpdate: !0 }), q1 = v1(null), [G, N] = c1([]), B = v1(null), { camera: Z, scene: z } = p6(), C = v1(null), _ = t.STYLE, p = t.ACCENT_COLOR, S = d ? d.object_id : g || void 0,
|
|
10994
|
+
deviceType: j
|
|
10995
|
+
} = e, [Y, L] = c1({ min: t.CAMERA.minDistance, max: t.CAMERA.maxDistance, initialDistance: 0, needsUpdate: !0 }), q1 = v1(null), [G, N] = c1([]), B = v1(null), { camera: Z, scene: z } = p6(), C = v1(null), _ = t.STYLE, p = t.ACCENT_COLOR, S = d ? d.object_id : g || void 0, X = t.ROLE === "PORTAL" && A, F = r1((V = !1) => {
|
|
10994
10996
|
if (!(Z instanceof z2)) {
|
|
10995
10997
|
console.error("Camera is not a PerspectiveCamera");
|
|
10996
10998
|
return;
|
|
@@ -11028,12 +11030,12 @@ const Ql = L4((e, l) => {
|
|
|
11028
11030
|
min: t.CAMERA.minDistance < 0.1 ? 0.1 : t.CAMERA.minDistance,
|
|
11029
11031
|
max: t.CAMERA.maxDistance
|
|
11030
11032
|
}));
|
|
11031
|
-
}, [Z, Y.needsUpdate, t.CAMERA.animSpeed, t.CAMERA.maxDistance, t.CAMERA.minDistance, Q, t.ROLE, b, x.meshParams, _]),
|
|
11033
|
+
}, [Z, Y.needsUpdate, t.CAMERA.animSpeed, t.CAMERA.maxDistance, t.CAMERA.minDistance, Q, t.ROLE, b, x.meshParams, _]), K = C.current ? C.current.position.distanceTo(C.current.target) : 0;
|
|
11032
11034
|
p1(() => {
|
|
11033
11035
|
Q && F();
|
|
11034
11036
|
}, [Q, F]), p1(() => {
|
|
11035
|
-
|
|
11036
|
-
}, [
|
|
11037
|
+
K > 0 && Y.needsUpdate && (L({ min: t.CAMERA.minDistance < 0.1 ? 0.1 : t.CAMERA.minDistance, max: t.CAMERA.maxDistance, initialDistance: K, needsUpdate: !1 }), W(!0));
|
|
11038
|
+
}, [K, Y.needsUpdate, t.CAMERA, W]), p1(() => {
|
|
11037
11039
|
L((V) => ({ ...V, needsUpdate: !0 }));
|
|
11038
11040
|
}, [t.CAMERA]), p1(() => {
|
|
11039
11041
|
x.meshParams.length > 0 && F();
|
|
@@ -11083,15 +11085,15 @@ const Ql = L4((e, l) => {
|
|
|
11083
11085
|
let O = [];
|
|
11084
11086
|
if (G[f] && (V != null && V.length))
|
|
11085
11087
|
O = [...V];
|
|
11086
|
-
else if (D && (t.ROLE === "PORTAL" ||
|
|
11088
|
+
else if (D && (t.ROLE === "PORTAL" || e1)) {
|
|
11087
11089
|
const I1 = A && t1.find((y1) => y1.mesh.object_id === A);
|
|
11088
11090
|
I1 && (O = [I1.mesh]);
|
|
11089
11091
|
}
|
|
11090
11092
|
O.length || (O = t1.map((I1) => I1.mesh));
|
|
11091
11093
|
const y = O8(O, Z.fov, Z.aspect, t.ROLE === "PORTAL" || t.ROLE === "WP_SITE" ? "2D" : _), n1 = Math.min(
|
|
11092
|
-
|
|
11094
|
+
X ? t.CAMERA.maxDistance : Y.max,
|
|
11093
11095
|
Math.max(
|
|
11094
|
-
|
|
11096
|
+
X ? t.CAMERA.minDistance : Y.min,
|
|
11095
11097
|
y.position.distanceTo(y.target)
|
|
11096
11098
|
)
|
|
11097
11099
|
);
|
|
@@ -11103,7 +11105,7 @@ const Ql = L4((e, l) => {
|
|
|
11103
11105
|
duration: t.CAMERA.animSpeed
|
|
11104
11106
|
// how long it takes to move camera to get to new position
|
|
11105
11107
|
};
|
|
11106
|
-
}, [G, t1, f, _, Z, A, t.ROLE, t.CAMERA.maxDistance, t.CAMERA.minDistance, t.CAMERA.animSpeed, a, D, u,
|
|
11108
|
+
}, [G, t1, f, _, Z, A, t.ROLE, t.CAMERA.maxDistance, t.CAMERA.minDistance, t.CAMERA.animSpeed, a, D, u, e1, X, Y.max, Y.min]), p1(() => {
|
|
11107
11109
|
if (E != null && E.direction && B.current) {
|
|
11108
11110
|
if (!(Z instanceof z2)) {
|
|
11109
11111
|
console.error("Camera is not a PerspectiveCamera");
|
|
@@ -11184,9 +11186,9 @@ const Ql = L4((e, l) => {
|
|
|
11184
11186
|
onChange: J,
|
|
11185
11187
|
ref: B,
|
|
11186
11188
|
maxPolarAngle: Math.PI / 2,
|
|
11187
|
-
minDistance:
|
|
11188
|
-
maxDistance:
|
|
11189
|
-
enableZoom: t.ROLE === "PORTAL" || t.ROLE === "DISPLAY_APP" || t.ROLE === "WP_SITE" && ["mobile", "tablet"].includes(
|
|
11189
|
+
minDistance: X ? y4.CAMERA.minDistance : Y.min,
|
|
11190
|
+
maxDistance: X ? y4.CAMERA.maxDistance : Y.max,
|
|
11191
|
+
enableZoom: t.ROLE === "PORTAL" || t.ROLE === "DISPLAY_APP" || t.ROLE === "WP_SITE" && ["mobile", "tablet"].includes(j),
|
|
11190
11192
|
enableRotate: t.ROLE !== "WP_SITE" && t.ROLE !== "PORTAL_RESPONSIVE" && t.ROLE !== "DISPLAY_APP",
|
|
11191
11193
|
dampingFactor: 0.3
|
|
11192
11194
|
}
|
|
@@ -11516,7 +11518,7 @@ function Ot() {
|
|
|
11516
11518
|
}
|
|
11517
11519
|
}
|
|
11518
11520
|
}
|
|
11519
|
-
var h = i, I = a, E = c, w = q, P = l, D = s,
|
|
11521
|
+
var h = i, I = a, E = c, w = q, P = l, D = s, e1 = o, W = x, l1 = R, $ = t, Q = r, j = n, Y = m, L = !1;
|
|
11520
11522
|
function q1(T) {
|
|
11521
11523
|
return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(T) || u(T) === i;
|
|
11522
11524
|
}
|
|
@@ -11547,16 +11549,16 @@ function Ot() {
|
|
|
11547
11549
|
function S(T) {
|
|
11548
11550
|
return u(T) === t;
|
|
11549
11551
|
}
|
|
11550
|
-
function
|
|
11552
|
+
function X(T) {
|
|
11551
11553
|
return u(T) === r;
|
|
11552
11554
|
}
|
|
11553
11555
|
function F(T) {
|
|
11554
11556
|
return u(T) === n;
|
|
11555
11557
|
}
|
|
11556
|
-
function
|
|
11558
|
+
function K(T) {
|
|
11557
11559
|
return u(T) === m;
|
|
11558
11560
|
}
|
|
11559
|
-
R1.AsyncMode = h, R1.ConcurrentMode = I, R1.ContextConsumer = E, R1.ContextProvider = w, R1.Element = P, R1.ForwardRef = D, R1.Fragment =
|
|
11561
|
+
R1.AsyncMode = h, R1.ConcurrentMode = I, R1.ContextConsumer = E, R1.ContextProvider = w, R1.Element = P, R1.ForwardRef = D, R1.Fragment = e1, R1.Lazy = W, R1.Memo = l1, R1.Portal = $, R1.Profiler = Q, R1.StrictMode = j, R1.Suspense = Y, R1.isAsyncMode = q1, R1.isConcurrentMode = G, R1.isContextConsumer = N, R1.isContextProvider = B, R1.isElement = Z, R1.isForwardRef = z, R1.isFragment = C, R1.isLazy = _, R1.isMemo = p, R1.isPortal = S, R1.isProfiler = X, R1.isStrictMode = F, R1.isSuspense = K, R1.isValidElementType = g, R1.typeOf = u;
|
|
11560
11562
|
}()), R1;
|
|
11561
11563
|
}
|
|
11562
11564
|
var N8;
|
|
@@ -11729,8 +11731,8 @@ function Nt() {
|
|
|
11729
11731
|
function d(G) {
|
|
11730
11732
|
if (process.env.NODE_ENV !== "production")
|
|
11731
11733
|
var N = {}, B = 0;
|
|
11732
|
-
function Z(C, _, p, S,
|
|
11733
|
-
if (S = S || v, F = F || p,
|
|
11734
|
+
function Z(C, _, p, S, X, F, K) {
|
|
11735
|
+
if (S = S || v, F = F || p, K !== t) {
|
|
11734
11736
|
if (i) {
|
|
11735
11737
|
var T = new Error(
|
|
11736
11738
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -11744,15 +11746,15 @@ function Nt() {
|
|
|
11744
11746
|
), N[t1] = !0, B++);
|
|
11745
11747
|
}
|
|
11746
11748
|
}
|
|
11747
|
-
return _[p] == null ? C ? _[p] === null ? new f("The " +
|
|
11749
|
+
return _[p] == null ? C ? _[p] === null ? new f("The " + X + " `" + F + "` is marked as required " + ("in `" + S + "`, but its value is `null`.")) : new f("The " + X + " `" + F + "` is marked as required in " + ("`" + S + "`, but its value is `undefined`.")) : null : G(_, p, S, X, F);
|
|
11748
11750
|
}
|
|
11749
11751
|
var z = Z.bind(null, !1);
|
|
11750
11752
|
return z.isRequired = Z.bind(null, !0), z;
|
|
11751
11753
|
}
|
|
11752
11754
|
function b(G) {
|
|
11753
11755
|
function N(B, Z, z, C, _, p) {
|
|
11754
|
-
var S = B[Z],
|
|
11755
|
-
if (
|
|
11756
|
+
var S = B[Z], X = j(S);
|
|
11757
|
+
if (X !== G) {
|
|
11756
11758
|
var F = Y(S);
|
|
11757
11759
|
return new f(
|
|
11758
11760
|
"Invalid " + C + " `" + _ + "` of type " + ("`" + F + "` supplied to `" + z + "`, expected ") + ("`" + G + "`."),
|
|
@@ -11772,11 +11774,11 @@ function Nt() {
|
|
|
11772
11774
|
return new f("Property `" + _ + "` of component `" + z + "` has invalid PropType notation inside arrayOf.");
|
|
11773
11775
|
var p = B[Z];
|
|
11774
11776
|
if (!Array.isArray(p)) {
|
|
11775
|
-
var S =
|
|
11777
|
+
var S = j(p);
|
|
11776
11778
|
return new f("Invalid " + C + " `" + _ + "` of type " + ("`" + S + "` supplied to `" + z + "`, expected an array."));
|
|
11777
11779
|
}
|
|
11778
|
-
for (var
|
|
11779
|
-
var F = G(p,
|
|
11780
|
+
for (var X = 0; X < p.length; X++) {
|
|
11781
|
+
var F = G(p, X, z, C, _ + "[" + X + "]", t);
|
|
11780
11782
|
if (F instanceof Error)
|
|
11781
11783
|
return F;
|
|
11782
11784
|
}
|
|
@@ -11788,7 +11790,7 @@ function Nt() {
|
|
|
11788
11790
|
function G(N, B, Z, z, C) {
|
|
11789
11791
|
var _ = N[B];
|
|
11790
11792
|
if (!c(_)) {
|
|
11791
|
-
var p =
|
|
11793
|
+
var p = j(_);
|
|
11792
11794
|
return new f("Invalid " + z + " `" + C + "` of type " + ("`" + p + "` supplied to `" + Z + "`, expected a single ReactElement."));
|
|
11793
11795
|
}
|
|
11794
11796
|
return null;
|
|
@@ -11799,7 +11801,7 @@ function Nt() {
|
|
|
11799
11801
|
function G(N, B, Z, z, C) {
|
|
11800
11802
|
var _ = N[B];
|
|
11801
11803
|
if (!e.isValidElementType(_)) {
|
|
11802
|
-
var p =
|
|
11804
|
+
var p = j(_);
|
|
11803
11805
|
return new f("Invalid " + z + " `" + C + "` of type " + ("`" + p + "` supplied to `" + Z + "`, expected a single ReactElement type."));
|
|
11804
11806
|
}
|
|
11805
11807
|
return null;
|
|
@@ -11825,11 +11827,11 @@ function Nt() {
|
|
|
11825
11827
|
for (var p = B[Z], S = 0; S < G.length; S++)
|
|
11826
11828
|
if (x(p, G[S]))
|
|
11827
11829
|
return null;
|
|
11828
|
-
var
|
|
11830
|
+
var X = JSON.stringify(G, function(K, T) {
|
|
11829
11831
|
var t1 = Y(T);
|
|
11830
11832
|
return t1 === "symbol" ? String(T) : T;
|
|
11831
11833
|
});
|
|
11832
|
-
return new f("Invalid " + C + " `" + _ + "` of value `" + String(p) + "` " + ("supplied to `" + z + "`, expected one of " +
|
|
11834
|
+
return new f("Invalid " + C + " `" + _ + "` of value `" + String(p) + "` " + ("supplied to `" + z + "`, expected one of " + X + "."));
|
|
11833
11835
|
}
|
|
11834
11836
|
return d(N);
|
|
11835
11837
|
}
|
|
@@ -11837,12 +11839,12 @@ function Nt() {
|
|
|
11837
11839
|
function N(B, Z, z, C, _) {
|
|
11838
11840
|
if (typeof G != "function")
|
|
11839
11841
|
return new f("Property `" + _ + "` of component `" + z + "` has invalid PropType notation inside objectOf.");
|
|
11840
|
-
var p = B[Z], S =
|
|
11842
|
+
var p = B[Z], S = j(p);
|
|
11841
11843
|
if (S !== "object")
|
|
11842
11844
|
return new f("Invalid " + C + " `" + _ + "` of type " + ("`" + S + "` supplied to `" + z + "`, expected an object."));
|
|
11843
|
-
for (var
|
|
11844
|
-
if (o(p,
|
|
11845
|
-
var F = G(p,
|
|
11845
|
+
for (var X in p)
|
|
11846
|
+
if (o(p, X)) {
|
|
11847
|
+
var F = G(p, X, z, C, _ + "." + X, t);
|
|
11846
11848
|
if (F instanceof Error)
|
|
11847
11849
|
return F;
|
|
11848
11850
|
}
|
|
@@ -11861,13 +11863,13 @@ function Nt() {
|
|
|
11861
11863
|
), q;
|
|
11862
11864
|
}
|
|
11863
11865
|
function Z(z, C, _, p, S) {
|
|
11864
|
-
for (var
|
|
11865
|
-
var
|
|
11866
|
+
for (var X = [], F = 0; F < G.length; F++) {
|
|
11867
|
+
var K = G[F], T = K(z, C, _, p, S, t);
|
|
11866
11868
|
if (T == null)
|
|
11867
11869
|
return null;
|
|
11868
|
-
T.data && o(T.data, "expectedType") &&
|
|
11870
|
+
T.data && o(T.data, "expectedType") && X.push(T.data.expectedType);
|
|
11869
11871
|
}
|
|
11870
|
-
var t1 =
|
|
11872
|
+
var t1 = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
11871
11873
|
return new f("Invalid " + p + " `" + S + "` supplied to " + ("`" + _ + "`" + t1 + "."));
|
|
11872
11874
|
}
|
|
11873
11875
|
return d(Z);
|
|
@@ -11878,23 +11880,23 @@ function Nt() {
|
|
|
11878
11880
|
}
|
|
11879
11881
|
return d(G);
|
|
11880
11882
|
}
|
|
11881
|
-
function
|
|
11883
|
+
function e1(G, N, B, Z, z) {
|
|
11882
11884
|
return new f(
|
|
11883
11885
|
(G || "React class") + ": " + N + " type `" + B + "." + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + z + "`."
|
|
11884
11886
|
);
|
|
11885
11887
|
}
|
|
11886
11888
|
function W(G) {
|
|
11887
11889
|
function N(B, Z, z, C, _) {
|
|
11888
|
-
var p = B[Z], S =
|
|
11890
|
+
var p = B[Z], S = j(p);
|
|
11889
11891
|
if (S !== "object")
|
|
11890
11892
|
return new f("Invalid " + C + " `" + _ + "` of type `" + S + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
11891
|
-
for (var
|
|
11892
|
-
var F = G[
|
|
11893
|
+
for (var X in G) {
|
|
11894
|
+
var F = G[X];
|
|
11893
11895
|
if (typeof F != "function")
|
|
11894
|
-
return
|
|
11895
|
-
var
|
|
11896
|
-
if (
|
|
11897
|
-
return
|
|
11896
|
+
return e1(z, C, _, X, Y(F));
|
|
11897
|
+
var K = F(p, X, z, C, _ + "." + X, t);
|
|
11898
|
+
if (K)
|
|
11899
|
+
return K;
|
|
11898
11900
|
}
|
|
11899
11901
|
return null;
|
|
11900
11902
|
}
|
|
@@ -11902,20 +11904,20 @@ function Nt() {
|
|
|
11902
11904
|
}
|
|
11903
11905
|
function l1(G) {
|
|
11904
11906
|
function N(B, Z, z, C, _) {
|
|
11905
|
-
var p = B[Z], S =
|
|
11907
|
+
var p = B[Z], S = j(p);
|
|
11906
11908
|
if (S !== "object")
|
|
11907
11909
|
return new f("Invalid " + C + " `" + _ + "` of type `" + S + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
11908
|
-
var
|
|
11909
|
-
for (var F in
|
|
11910
|
-
var
|
|
11911
|
-
if (o(G, F) && typeof
|
|
11912
|
-
return
|
|
11913
|
-
if (!
|
|
11910
|
+
var X = l({}, B[Z], G);
|
|
11911
|
+
for (var F in X) {
|
|
11912
|
+
var K = G[F];
|
|
11913
|
+
if (o(G, F) && typeof K != "function")
|
|
11914
|
+
return e1(z, C, _, F, Y(K));
|
|
11915
|
+
if (!K)
|
|
11914
11916
|
return new f(
|
|
11915
11917
|
"Invalid " + C + " `" + _ + "` key `" + F + "` supplied to `" + z + "`.\nBad object: " + JSON.stringify(B[Z], null, " ") + `
|
|
11916
11918
|
Valid keys: ` + JSON.stringify(Object.keys(G), null, " ")
|
|
11917
11919
|
);
|
|
11918
|
-
var T =
|
|
11920
|
+
var T = K(p, F, z, C, _ + "." + F, t);
|
|
11919
11921
|
if (T)
|
|
11920
11922
|
return T;
|
|
11921
11923
|
}
|
|
@@ -11959,14 +11961,14 @@ Valid keys: ` + JSON.stringify(Object.keys(G), null, " ")
|
|
|
11959
11961
|
function Q(G, N) {
|
|
11960
11962
|
return G === "symbol" ? !0 : N ? N["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && N instanceof Symbol : !1;
|
|
11961
11963
|
}
|
|
11962
|
-
function
|
|
11964
|
+
function j(G) {
|
|
11963
11965
|
var N = typeof G;
|
|
11964
11966
|
return Array.isArray(G) ? "array" : G instanceof RegExp ? "object" : Q(N, G) ? "symbol" : N;
|
|
11965
11967
|
}
|
|
11966
11968
|
function Y(G) {
|
|
11967
11969
|
if (typeof G > "u" || G === null)
|
|
11968
11970
|
return "" + G;
|
|
11969
|
-
var N =
|
|
11971
|
+
var N = j(G);
|
|
11970
11972
|
if (N === "object") {
|
|
11971
11973
|
if (G instanceof Date)
|
|
11972
11974
|
return "date";
|
|
@@ -13391,15 +13393,15 @@ const L5 = /* @__PURE__ */ L4((e, l) => {
|
|
|
13391
13393
|
},
|
|
13392
13394
|
onExit: P,
|
|
13393
13395
|
onExited: D,
|
|
13394
|
-
onExiting:
|
|
13396
|
+
onExiting: e1,
|
|
13395
13397
|
onEnter: W,
|
|
13396
13398
|
onEntering: l1,
|
|
13397
13399
|
onEntered: $
|
|
13398
13400
|
} = e, Q = Pn(e, Ln);
|
|
13399
|
-
const
|
|
13400
|
-
x6(l, () => L, [L]), $4 && !G && t && (Z.current = M3(
|
|
13401
|
+
const j = P6(), Y = En(I), L = Bn(h), q1 = Qt(), G = Kt(t), [N, B] = c1(!t), Z = v1(null);
|
|
13402
|
+
x6(l, () => L, [L]), $4 && !G && t && (Z.current = M3(j == null ? void 0 : j.document)), t && N && B(!1);
|
|
13401
13403
|
const z = R4(() => {
|
|
13402
|
-
if (L.add(), F.current = W2(document, "keydown", S),
|
|
13404
|
+
if (L.add(), F.current = W2(document, "keydown", S), X.current = W2(
|
|
13403
13405
|
document,
|
|
13404
13406
|
"focus",
|
|
13405
13407
|
// the timeout is necessary b/c this will run before the new modal is mounted
|
|
@@ -13408,11 +13410,11 @@ const L5 = /* @__PURE__ */ L4((e, l) => {
|
|
|
13408
13410
|
!0
|
|
13409
13411
|
), E && E(), f) {
|
|
13410
13412
|
var J, M;
|
|
13411
|
-
const V = M3((J = (M = L.dialog) == null ? void 0 : M.ownerDocument) != null ? J :
|
|
13413
|
+
const V = M3((J = (M = L.dialog) == null ? void 0 : M.ownerDocument) != null ? J : j == null ? void 0 : j.document);
|
|
13412
13414
|
L.dialog && V && !j8(L.dialog, V) && (Z.current = V, L.dialog.focus());
|
|
13413
13415
|
}
|
|
13414
13416
|
}), C = R4(() => {
|
|
13415
|
-
if (L.remove(), F.current == null || F.current(),
|
|
13417
|
+
if (L.remove(), F.current == null || F.current(), X.current == null || X.current(), b) {
|
|
13416
13418
|
var J;
|
|
13417
13419
|
(J = Z.current) == null || J.focus == null || J.focus(A), Z.current = null;
|
|
13418
13420
|
}
|
|
@@ -13432,13 +13434,13 @@ const L5 = /* @__PURE__ */ L4((e, l) => {
|
|
|
13432
13434
|
const _ = R4(() => {
|
|
13433
13435
|
if (!d || !q1() || !L.isTopModal())
|
|
13434
13436
|
return;
|
|
13435
|
-
const J = M3(
|
|
13437
|
+
const J = M3(j == null ? void 0 : j.document);
|
|
13436
13438
|
L.dialog && J && !j8(L.dialog, J) && L.dialog.focus();
|
|
13437
13439
|
}), p = R4((J) => {
|
|
13438
13440
|
J.target === J.currentTarget && (a == null || a(J), c === !0 && w());
|
|
13439
13441
|
}), S = R4((J) => {
|
|
13440
13442
|
i && kt(J) && L.isTopModal() && (s == null || s(J), J.defaultPrevented || w());
|
|
13441
|
-
}),
|
|
13443
|
+
}), X = v1(), F = v1(), K = (...J) => {
|
|
13442
13444
|
B(!0), D == null || D(...J);
|
|
13443
13445
|
};
|
|
13444
13446
|
if (!Y)
|
|
@@ -13464,8 +13466,8 @@ const L5 = /* @__PURE__ */ L4((e, l) => {
|
|
|
13464
13466
|
appear: !0,
|
|
13465
13467
|
in: !!t,
|
|
13466
13468
|
onExit: P,
|
|
13467
|
-
onExiting:
|
|
13468
|
-
onExited:
|
|
13469
|
+
onExiting: e1,
|
|
13470
|
+
onExited: K,
|
|
13469
13471
|
onEnter: W,
|
|
13470
13472
|
onEntering: l1,
|
|
13471
13473
|
onEntered: $,
|
|
@@ -13677,15 +13679,15 @@ const V5 = /* @__PURE__ */ a1.forwardRef(({
|
|
|
13677
13679
|
onExit: w,
|
|
13678
13680
|
onExiting: P,
|
|
13679
13681
|
onEnter: D,
|
|
13680
|
-
onEntering:
|
|
13682
|
+
onEntering: e1,
|
|
13681
13683
|
onExited: W,
|
|
13682
13684
|
backdropClassName: l1,
|
|
13683
13685
|
manager: $,
|
|
13684
13686
|
...Q
|
|
13685
|
-
},
|
|
13686
|
-
const [Y, L] = c1({}), [q1, G] = c1(!1), N = v1(!1), B = v1(!1), Z = v1(null), [z, C] = vn(), _ = _5(
|
|
13687
|
+
}, j) => {
|
|
13688
|
+
const [Y, L] = c1({}), [q1, G] = c1(!1), N = v1(!1), B = v1(!1), Z = v1(null), [z, C] = vn(), _ = _5(j, C), p = n6(b), S = vt();
|
|
13687
13689
|
e = X1(e, "modal");
|
|
13688
|
-
const
|
|
13690
|
+
const X = V1(() => ({
|
|
13689
13691
|
onHide: p
|
|
13690
13692
|
}), [p]);
|
|
13691
13693
|
function F() {
|
|
@@ -13693,7 +13695,7 @@ const V5 = /* @__PURE__ */ a1.forwardRef(({
|
|
|
13693
13695
|
isRTL: S
|
|
13694
13696
|
});
|
|
13695
13697
|
}
|
|
13696
|
-
function
|
|
13698
|
+
function K(b1) {
|
|
13697
13699
|
if (!$4) return;
|
|
13698
13700
|
const j1 = F().getScrollbarWidth() > 0, e4 = b1.scrollHeight > i3(b1).documentElement.clientHeight;
|
|
13699
13701
|
L({
|
|
@@ -13702,7 +13704,7 @@ const V5 = /* @__PURE__ */ a1.forwardRef(({
|
|
|
13702
13704
|
});
|
|
13703
13705
|
}
|
|
13704
13706
|
const T = n6(() => {
|
|
13705
|
-
z &&
|
|
13707
|
+
z && K(z.dialog);
|
|
13706
13708
|
});
|
|
13707
13709
|
rn(() => {
|
|
13708
13710
|
t6(window, "resize", T), Z.current == null || Z.current();
|
|
@@ -13730,11 +13732,11 @@ const V5 = /* @__PURE__ */ a1.forwardRef(({
|
|
|
13730
13732
|
}, O = (b1) => {
|
|
13731
13733
|
x ? f == null || f(b1) : (b1.preventDefault(), R === "static" && J());
|
|
13732
13734
|
}, y = (b1, j1) => {
|
|
13733
|
-
b1 &&
|
|
13735
|
+
b1 && K(b1), D == null || D(b1, j1);
|
|
13734
13736
|
}, n1 = (b1) => {
|
|
13735
13737
|
Z.current == null || Z.current(), w == null || w(b1);
|
|
13736
13738
|
}, s1 = (b1, j1) => {
|
|
13737
|
-
|
|
13739
|
+
e1 == null || e1(b1, j1), g5(window, "resize", T);
|
|
13738
13740
|
}, I1 = (b1) => {
|
|
13739
13741
|
b1 && (b1.style.display = ""), W == null || W(b1), t6(window, "resize", T);
|
|
13740
13742
|
}, y1 = r1((b1) => /* @__PURE__ */ k("div", {
|
|
@@ -13765,7 +13767,7 @@ const V5 = /* @__PURE__ */ a1.forwardRef(({
|
|
|
13765
13767
|
})
|
|
13766
13768
|
});
|
|
13767
13769
|
return /* @__PURE__ */ k(F5.Provider, {
|
|
13768
|
-
value:
|
|
13770
|
+
value: X,
|
|
13769
13771
|
children: /* @__PURE__ */ k(Gn, {
|
|
13770
13772
|
show: m,
|
|
13771
13773
|
ref: _,
|
|
@@ -13983,7 +13985,7 @@ function b4(e, l) {
|
|
|
13983
13985
|
}
|
|
13984
13986
|
var mo = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
13985
13987
|
function fo(e) {
|
|
13986
|
-
var l = e.defaultInputValue, t = l === void 0 ? "" : l, o = e.defaultMenuIsOpen, n = o === void 0 ? !1 : o, r = e.defaultValue, q = r === void 0 ? null : r, c = e.inputValue, i = e.menuIsOpen, a = e.onChange, s = e.onInputChange, m = e.onMenuClose, v = e.onMenuOpen, R = e.value, x = b4(e, mo), f = c1(c !== void 0 ? c : t), d = x4(f, 2), b = d[0], A = d[1], g = c1(i !== void 0 ? i : n), u = x4(g, 2), h = u[0], I = u[1], E = c1(R !== void 0 ? R : q), w = x4(E, 2), P = w[0], D = w[1],
|
|
13988
|
+
var l = e.defaultInputValue, t = l === void 0 ? "" : l, o = e.defaultMenuIsOpen, n = o === void 0 ? !1 : o, r = e.defaultValue, q = r === void 0 ? null : r, c = e.inputValue, i = e.menuIsOpen, a = e.onChange, s = e.onInputChange, m = e.onMenuClose, v = e.onMenuOpen, R = e.value, x = b4(e, mo), f = c1(c !== void 0 ? c : t), d = x4(f, 2), b = d[0], A = d[1], g = c1(i !== void 0 ? i : n), u = x4(g, 2), h = u[0], I = u[1], E = c1(R !== void 0 ? R : q), w = x4(E, 2), P = w[0], D = w[1], e1 = r1(function(L, q1) {
|
|
13987
13989
|
typeof a == "function" && a(L, q1), D(L);
|
|
13988
13990
|
}, [a]), W = r1(function(L, q1) {
|
|
13989
13991
|
var G;
|
|
@@ -13992,11 +13994,11 @@ function fo(e) {
|
|
|
13992
13994
|
typeof v == "function" && v(), I(!0);
|
|
13993
13995
|
}, [v]), $ = r1(function() {
|
|
13994
13996
|
typeof m == "function" && m(), I(!1);
|
|
13995
|
-
}, [m]), Q = c !== void 0 ? c : b,
|
|
13997
|
+
}, [m]), Q = c !== void 0 ? c : b, j = i !== void 0 ? i : h, Y = R !== void 0 ? R : P;
|
|
13996
13998
|
return x1(x1({}, x), {}, {
|
|
13997
13999
|
inputValue: Q,
|
|
13998
|
-
menuIsOpen:
|
|
13999
|
-
onChange:
|
|
14000
|
+
menuIsOpen: j,
|
|
14001
|
+
onChange: e1,
|
|
14000
14002
|
onInputChange: W,
|
|
14001
14003
|
onMenuClose: $,
|
|
14002
14004
|
onMenuOpen: l1,
|
|
@@ -14758,7 +14760,7 @@ function lr() {
|
|
|
14758
14760
|
}
|
|
14759
14761
|
}
|
|
14760
14762
|
}
|
|
14761
|
-
var h = i, I = a, E = c, w = q, P = l, D = s,
|
|
14763
|
+
var h = i, I = a, E = c, w = q, P = l, D = s, e1 = o, W = x, l1 = R, $ = t, Q = r, j = n, Y = m, L = !1;
|
|
14762
14764
|
function q1(T) {
|
|
14763
14765
|
return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(T) || u(T) === i;
|
|
14764
14766
|
}
|
|
@@ -14789,16 +14791,16 @@ function lr() {
|
|
|
14789
14791
|
function S(T) {
|
|
14790
14792
|
return u(T) === t;
|
|
14791
14793
|
}
|
|
14792
|
-
function
|
|
14794
|
+
function X(T) {
|
|
14793
14795
|
return u(T) === r;
|
|
14794
14796
|
}
|
|
14795
14797
|
function F(T) {
|
|
14796
14798
|
return u(T) === n;
|
|
14797
14799
|
}
|
|
14798
|
-
function
|
|
14800
|
+
function K(T) {
|
|
14799
14801
|
return u(T) === m;
|
|
14800
14802
|
}
|
|
14801
|
-
z1.AsyncMode = h, z1.ConcurrentMode = I, z1.ContextConsumer = E, z1.ContextProvider = w, z1.Element = P, z1.ForwardRef = D, z1.Fragment =
|
|
14803
|
+
z1.AsyncMode = h, z1.ConcurrentMode = I, z1.ContextConsumer = E, z1.ContextProvider = w, z1.Element = P, z1.ForwardRef = D, z1.Fragment = e1, z1.Lazy = W, z1.Memo = l1, z1.Portal = $, z1.Profiler = Q, z1.StrictMode = j, z1.Suspense = Y, z1.isAsyncMode = q1, z1.isConcurrentMode = G, z1.isContextConsumer = N, z1.isContextProvider = B, z1.isElement = Z, z1.isForwardRef = z, z1.isFragment = C, z1.isLazy = _, z1.isMemo = p, z1.isPortal = S, z1.isProfiler = X, z1.isStrictMode = F, z1.isSuspense = K, z1.isValidElementType = g, z1.typeOf = u;
|
|
14802
14804
|
}()), z1;
|
|
14803
14805
|
}
|
|
14804
14806
|
process.env.NODE_ENV === "production" ? a6.exports = er() : a6.exports = lr();
|
|
@@ -15489,7 +15491,7 @@ function Qr(e) {
|
|
|
15489
15491
|
maxHeight: l
|
|
15490
15492
|
};
|
|
15491
15493
|
if (!t || !t.offsetParent) return a;
|
|
15492
|
-
var s = i.getBoundingClientRect(), m = s.height, v = t.getBoundingClientRect(), R = v.bottom, x = v.height, f = v.top, d = t.offsetParent.getBoundingClientRect(), b = d.top, A = q ? window.innerHeight : kr(i), g = m7(i), u = parseInt(getComputedStyle(t).marginBottom, 10), h = parseInt(getComputedStyle(t).marginTop, 10), I = b - h, E = A - f, w = I + g, P = m - g - f, D = R - A + g + u,
|
|
15494
|
+
var s = i.getBoundingClientRect(), m = s.height, v = t.getBoundingClientRect(), R = v.bottom, x = v.height, f = v.top, d = t.offsetParent.getBoundingClientRect(), b = d.top, A = q ? window.innerHeight : kr(i), g = m7(i), u = parseInt(getComputedStyle(t).marginBottom, 10), h = parseInt(getComputedStyle(t).marginTop, 10), I = b - h, E = A - f, w = I + g, P = m - g - f, D = R - A + g + u, e1 = g + f - h, W = 160;
|
|
15493
15495
|
switch (n) {
|
|
15494
15496
|
case "auto":
|
|
15495
15497
|
case "bottom":
|
|
@@ -15531,15 +15533,15 @@ function Qr(e) {
|
|
|
15531
15533
|
maxHeight: l
|
|
15532
15534
|
};
|
|
15533
15535
|
if (w >= x && !q)
|
|
15534
|
-
return r && A2(i,
|
|
15536
|
+
return r && A2(i, e1, W), {
|
|
15535
15537
|
placement: "top",
|
|
15536
15538
|
maxHeight: l
|
|
15537
15539
|
};
|
|
15538
15540
|
if (!q && w >= o || q && I >= o) {
|
|
15539
|
-
var
|
|
15540
|
-
return (!q && w >= o || q && I >= o) && (
|
|
15541
|
+
var j = l;
|
|
15542
|
+
return (!q && w >= o || q && I >= o) && (j = q ? I - h : w - h), r && A2(i, e1, W), {
|
|
15541
15543
|
placement: "top",
|
|
15542
|
-
maxHeight:
|
|
15544
|
+
maxHeight: j
|
|
15543
15545
|
};
|
|
15544
15546
|
}
|
|
15545
15547
|
return {
|
|
@@ -16268,9 +16270,9 @@ var xi = process.env.NODE_ENV === "production" ? {
|
|
|
16268
16270
|
}, [m]), P = V1(function() {
|
|
16269
16271
|
var Q = "";
|
|
16270
16272
|
if (t && w.onChange) {
|
|
16271
|
-
var
|
|
16273
|
+
var j = t.option, Y = t.options, L = t.removedValue, q1 = t.removedValues, G = t.value, N = function(S) {
|
|
16272
16274
|
return Array.isArray(S) ? null : S;
|
|
16273
|
-
}, B = L ||
|
|
16275
|
+
}, B = L || j || N(G), Z = B ? v(B) : "", z = Y || q1 || void 0, C = z ? z.map(v) : [], _ = x1({
|
|
16274
16276
|
// multiSelected items are usually items that have already been selected
|
|
16275
16277
|
// or set by the user as a default value so we assume they are not disabled
|
|
16276
16278
|
isDisabled: B && f(B, c),
|
|
@@ -16281,40 +16283,40 @@ var xi = process.env.NODE_ENV === "production" ? {
|
|
|
16281
16283
|
}
|
|
16282
16284
|
return Q;
|
|
16283
16285
|
}, [t, w, f, c, v]), D = V1(function() {
|
|
16284
|
-
var Q = "",
|
|
16285
|
-
if (
|
|
16286
|
+
var Q = "", j = o || n, Y = !!(o && c && c.includes(o));
|
|
16287
|
+
if (j && w.onFocus) {
|
|
16286
16288
|
var L = {
|
|
16287
|
-
focused:
|
|
16288
|
-
label: v(
|
|
16289
|
-
isDisabled: f(
|
|
16289
|
+
focused: j,
|
|
16290
|
+
label: v(j),
|
|
16291
|
+
isDisabled: f(j, c),
|
|
16290
16292
|
isSelected: Y,
|
|
16291
16293
|
options: r,
|
|
16292
|
-
context:
|
|
16294
|
+
context: j === o ? "menu" : "value",
|
|
16293
16295
|
selectValue: c,
|
|
16294
16296
|
isAppleDevice: s
|
|
16295
16297
|
};
|
|
16296
16298
|
Q = w.onFocus(L);
|
|
16297
16299
|
}
|
|
16298
16300
|
return Q;
|
|
16299
|
-
}, [o, n, v, f, w, r, c, s]),
|
|
16301
|
+
}, [o, n, v, f, w, r, c, s]), e1 = V1(function() {
|
|
16300
16302
|
var Q = "";
|
|
16301
16303
|
if (b && A.length && !h && w.onFilter) {
|
|
16302
|
-
var
|
|
16304
|
+
var j = g({
|
|
16303
16305
|
count: r.length
|
|
16304
16306
|
});
|
|
16305
16307
|
Q = w.onFilter({
|
|
16306
16308
|
inputValue: R,
|
|
16307
|
-
resultsMessage:
|
|
16309
|
+
resultsMessage: j
|
|
16308
16310
|
});
|
|
16309
16311
|
}
|
|
16310
16312
|
return Q;
|
|
16311
16313
|
}, [r, R, b, w, A, g, h]), W = (t == null ? void 0 : t.action) === "initial-input-focus", l1 = V1(function() {
|
|
16312
16314
|
var Q = "";
|
|
16313
16315
|
if (w.guidance) {
|
|
16314
|
-
var
|
|
16316
|
+
var j = n ? "value" : b ? "menu" : "input";
|
|
16315
16317
|
Q = w.guidance({
|
|
16316
16318
|
"aria-label": I,
|
|
16317
|
-
context:
|
|
16319
|
+
context: j,
|
|
16318
16320
|
isDisabled: o && f(o, c),
|
|
16319
16321
|
isMulti: x,
|
|
16320
16322
|
isSearchable: d,
|
|
@@ -16329,7 +16331,7 @@ var xi = process.env.NODE_ENV === "production" ? {
|
|
|
16329
16331
|
id: "aria-focused"
|
|
16330
16332
|
}, D), d1("span", {
|
|
16331
16333
|
id: "aria-results"
|
|
16332
|
-
},
|
|
16334
|
+
}, e1), d1("span", {
|
|
16333
16335
|
id: "aria-guidance"
|
|
16334
16336
|
}, l1));
|
|
16335
16337
|
return d1(H3, null, d1(x9, {
|
|
@@ -17624,7 +17626,7 @@ var T7 = function(l) {
|
|
|
17624
17626
|
}), A);
|
|
17625
17627
|
if (d)
|
|
17626
17628
|
return u.map(function(w, P) {
|
|
17627
|
-
var D = w === h,
|
|
17629
|
+
var D = w === h, e1 = "".concat(n.getOptionLabel(w), "-").concat(n.getOptionValue(w));
|
|
17628
17630
|
return /* @__PURE__ */ a1.createElement(q, h1({}, v, {
|
|
17629
17631
|
components: {
|
|
17630
17632
|
Container: c,
|
|
@@ -17633,7 +17635,7 @@ var T7 = function(l) {
|
|
|
17633
17635
|
},
|
|
17634
17636
|
isFocused: D,
|
|
17635
17637
|
isDisabled: f,
|
|
17636
|
-
key:
|
|
17638
|
+
key: e1,
|
|
17637
17639
|
index: P,
|
|
17638
17640
|
removeProps: {
|
|
17639
17641
|
onClick: function() {
|
|
@@ -17717,10 +17719,10 @@ var T7 = function(l) {
|
|
|
17717
17719
|
}, {
|
|
17718
17720
|
key: "renderMenu",
|
|
17719
17721
|
value: function() {
|
|
17720
|
-
var n = this, r = this.getComponents(), q = r.Group, c = r.GroupHeading, i = r.Menu, a = r.MenuList, s = r.MenuPortal, m = r.LoadingMessage, v = r.NoOptionsMessage, R = r.Option, x = this.commonProps, f = this.state.focusedOption, d = this.props, b = d.captureMenuScroll, A = d.inputValue, g = d.isLoading, u = d.loadingMessage, h = d.minMenuHeight, I = d.maxMenuHeight, E = d.menuIsOpen, w = d.menuPlacement, P = d.menuPosition, D = d.menuPortalTarget,
|
|
17722
|
+
var n = this, r = this.getComponents(), q = r.Group, c = r.GroupHeading, i = r.Menu, a = r.MenuList, s = r.MenuPortal, m = r.LoadingMessage, v = r.NoOptionsMessage, R = r.Option, x = this.commonProps, f = this.state.focusedOption, d = this.props, b = d.captureMenuScroll, A = d.inputValue, g = d.isLoading, u = d.loadingMessage, h = d.minMenuHeight, I = d.maxMenuHeight, E = d.menuIsOpen, w = d.menuPlacement, P = d.menuPosition, D = d.menuPortalTarget, e1 = d.menuShouldBlockScroll, W = d.menuShouldScrollIntoView, l1 = d.noOptionsMessage, $ = d.onMenuScrollToTop, Q = d.onMenuScrollToBottom;
|
|
17721
17723
|
if (!E) return null;
|
|
17722
|
-
var
|
|
17723
|
-
var C = Z.type, _ = Z.data, p = Z.isDisabled, S = Z.isSelected,
|
|
17724
|
+
var j = function(Z, z) {
|
|
17725
|
+
var C = Z.type, _ = Z.data, p = Z.isDisabled, S = Z.isSelected, X = Z.label, F = Z.value, K = f === _, T = p ? void 0 : function() {
|
|
17724
17726
|
return n.onOptionHover(_);
|
|
17725
17727
|
}, t1 = p ? void 0 : function() {
|
|
17726
17728
|
return n.selectOption(_);
|
|
@@ -17740,11 +17742,11 @@ var T7 = function(l) {
|
|
|
17740
17742
|
isDisabled: p,
|
|
17741
17743
|
isSelected: S,
|
|
17742
17744
|
key: U,
|
|
17743
|
-
label:
|
|
17745
|
+
label: X,
|
|
17744
17746
|
type: C,
|
|
17745
17747
|
value: F,
|
|
17746
|
-
isFocused:
|
|
17747
|
-
innerRef:
|
|
17748
|
+
isFocused: K,
|
|
17749
|
+
innerRef: K ? n.getFocusedOptionRef : void 0
|
|
17748
17750
|
}), n.formatOptionLabel(Z.data, "menu"));
|
|
17749
17751
|
}, Y;
|
|
17750
17752
|
if (this.hasOptions())
|
|
@@ -17762,10 +17764,10 @@ var T7 = function(l) {
|
|
|
17762
17764
|
},
|
|
17763
17765
|
label: n.formatGroupLabel(B.data)
|
|
17764
17766
|
}), B.options.map(function(S) {
|
|
17765
|
-
return
|
|
17767
|
+
return j(S, "".concat(C, "-").concat(S.index));
|
|
17766
17768
|
}));
|
|
17767
17769
|
} else if (B.type === "option")
|
|
17768
|
-
return
|
|
17770
|
+
return j(B, "".concat(B.index));
|
|
17769
17771
|
});
|
|
17770
17772
|
else if (g) {
|
|
17771
17773
|
var L = u({
|
|
@@ -17800,11 +17802,11 @@ var T7 = function(l) {
|
|
|
17800
17802
|
captureEnabled: b,
|
|
17801
17803
|
onTopArrive: $,
|
|
17802
17804
|
onBottomArrive: Q,
|
|
17803
|
-
lockEnabled:
|
|
17805
|
+
lockEnabled: e1
|
|
17804
17806
|
}, function(p) {
|
|
17805
17807
|
return /* @__PURE__ */ a1.createElement(a, h1({}, x, {
|
|
17806
|
-
innerRef: function(
|
|
17807
|
-
n.getMenuListRef(
|
|
17808
|
+
innerRef: function(X) {
|
|
17809
|
+
n.getMenuListRef(X), p(X);
|
|
17808
17810
|
},
|
|
17809
17811
|
innerProps: {
|
|
17810
17812
|
role: "listbox",
|
|
@@ -17928,15 +17930,15 @@ var T7 = function(l) {
|
|
|
17928
17930
|
var P = i != null && n !== q ? {
|
|
17929
17931
|
inputIsHidden: i,
|
|
17930
17932
|
inputIsHiddenAfterUpdate: void 0
|
|
17931
|
-
} : {}, D = a,
|
|
17932
|
-
return s && !
|
|
17933
|
+
} : {}, D = a, e1 = s && m;
|
|
17934
|
+
return s && !e1 && (D = {
|
|
17933
17935
|
value: S2(b, A, A[0] || null),
|
|
17934
17936
|
options: A,
|
|
17935
17937
|
action: "initial-input-focus"
|
|
17936
|
-
},
|
|
17938
|
+
}, e1 = !m), (a == null ? void 0 : a.action) === "initial-input-focus" && (D = null), x1(x1(x1({}, g), P), {}, {
|
|
17937
17939
|
prevProps: n,
|
|
17938
17940
|
ariaSelection: D,
|
|
17939
|
-
prevWasFocused:
|
|
17941
|
+
prevWasFocused: e1
|
|
17940
17942
|
});
|
|
17941
17943
|
}
|
|
17942
17944
|
}]), t;
|
|
@@ -18122,10 +18124,10 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18122
18124
|
textareaField: Ra,
|
|
18123
18125
|
textField: Sa
|
|
18124
18126
|
}, za = (e) => {
|
|
18125
|
-
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: R } = m5(), { getMaterial: x } = q3(), f = L9(P9), [d, b] = c1("retailer"), [A, g] = c1("retail_name"), [u, h] = c1(O2), [I, E] = c1(null), [, w] = z9(), P = v1({}), [D,
|
|
18127
|
+
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: R } = m5(), { getMaterial: x } = q3(), f = L9(P9), [d, b] = c1("retailer"), [A, g] = c1("retail_name"), [u, h] = c1(O2), [I, E] = c1(null), [, w] = z9(), P = v1({}), [D, e1] = c1([]), W = r1((M) => {
|
|
18126
18128
|
if (M) {
|
|
18127
18129
|
const V = M.reduce((O, y) => y.kiosk_id !== null ? [...O, y.kiosk_id] : O, []);
|
|
18128
|
-
|
|
18130
|
+
e1([...V]);
|
|
18129
18131
|
}
|
|
18130
18132
|
}, []);
|
|
18131
18133
|
p1(() => {
|
|
@@ -18163,7 +18165,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18163
18165
|
e.meshFloors.meshParams.flat().filter((O) => O !== void 0).forEach((O) => {
|
|
18164
18166
|
O.mesh.object_id === V && (O.mesh.userData.storeName = M);
|
|
18165
18167
|
});
|
|
18166
|
-
}, [e.meshFloors.meshParams]),
|
|
18168
|
+
}, [e.meshFloors.meshParams]), j = r1((M, V, O) => {
|
|
18167
18169
|
if (!M || I !== (u == null ? void 0 : u.map_obj_name)) return;
|
|
18168
18170
|
let y = new c5(V, {
|
|
18169
18171
|
font: M.userData && M.userData.font ? M.userData.font : f,
|
|
@@ -18185,7 +18187,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18185
18187
|
}, q1 = (M) => {
|
|
18186
18188
|
if (b(M), u.obj_type = M, L(), M === "retailer" && (["retail_name", "retail_logo", "retail_text"].includes(A) || G("retail_name"), u.kiosk_id = null), M === "special" && (["kiosk", "amenity"].includes(A) || G("kiosk"), u.retailer_id = null, a)) {
|
|
18187
18189
|
const V = a.textImageMeshObject;
|
|
18188
|
-
|
|
18190
|
+
j(V, "", u.size);
|
|
18189
18191
|
}
|
|
18190
18192
|
M === "custom" && (["custom_text", "custom_image"].includes(A) || 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), h({ ...u }), Y({ ...u });
|
|
18191
18193
|
}, G = (M) => {
|
|
@@ -18204,7 +18206,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18204
18206
|
const s1 = a.textImageMeshObject, I1 = new N1(), y1 = a.svgShapeMeshObject.geometry.boundingBox;
|
|
18205
18207
|
switch (y1 && y1.getCenter(I1), M) {
|
|
18206
18208
|
case "custom_text":
|
|
18207
|
-
u.custom_text = V, ["retail_text", "custom_text"].includes(u.layer_type) &&
|
|
18209
|
+
u.custom_text = V, ["retail_text", "custom_text"].includes(u.layer_type) && j(s1, u.custom_text, u.size);
|
|
18208
18210
|
break;
|
|
18209
18211
|
case "custom_image":
|
|
18210
18212
|
u.custom_image = V, $(u, s1), Y({ ...u }, !0);
|
|
@@ -18218,7 +18220,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18218
18220
|
})) : u.kiosk_id && u.layer_type === "kiosk" && (l1(s1, u, o), c());
|
|
18219
18221
|
else {
|
|
18220
18222
|
let T1 = "";
|
|
18221
|
-
u.layer_type === "retail_name" && ((O = s[u.retailer_id || 0]) != null && O.retail_name) ? T1 = (y = s[u.retailer_id || 0]) == null ? void 0 : y.retail_name : ["retail_text", "custom_text"].includes(u.layer_type) && (T1 = u.custom_text),
|
|
18223
|
+
u.layer_type === "retail_name" && ((O = s[u.retailer_id || 0]) != null && O.retail_name) ? T1 = (y = s[u.retailer_id || 0]) == null ? void 0 : y.retail_name : ["retail_text", "custom_text"].includes(u.layer_type) && (T1 = u.custom_text), j(s1, T1 || "", u.size);
|
|
18222
18224
|
}
|
|
18223
18225
|
break;
|
|
18224
18226
|
case "lock_size":
|
|
@@ -18263,7 +18265,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18263
18265
|
h({ ...u }), Y({ ...u }, !0);
|
|
18264
18266
|
});
|
|
18265
18267
|
}
|
|
18266
|
-
}, [o, u, x, $,
|
|
18268
|
+
}, [o, u, x, $, j, i.retailers, a, c, Y]), _ = r1((M) => {
|
|
18267
18269
|
const V = M.target;
|
|
18268
18270
|
C(V.name, V.value);
|
|
18269
18271
|
}, [C]);
|
|
@@ -18287,7 +18289,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18287
18289
|
u && Object.hasOwn(u, M) && C(M, (u[M] - 1).toString());
|
|
18288
18290
|
}, S = (M) => {
|
|
18289
18291
|
u && Object.hasOwn(u, M) && C(M, (u[M] + 1).toString());
|
|
18290
|
-
},
|
|
18292
|
+
}, X = (M, V = 45) => {
|
|
18291
18293
|
if (u && Object.hasOwn(u, M)) {
|
|
18292
18294
|
let O = u[M];
|
|
18293
18295
|
const y = O % V;
|
|
@@ -18298,7 +18300,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18298
18300
|
p(M);
|
|
18299
18301
|
}, 200);
|
|
18300
18302
|
P.current[M] = V;
|
|
18301
|
-
},
|
|
18303
|
+
}, K = (M) => {
|
|
18302
18304
|
const V = window.setInterval(() => {
|
|
18303
18305
|
S(M);
|
|
18304
18306
|
}, 200);
|
|
@@ -18441,7 +18443,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18441
18443
|
{
|
|
18442
18444
|
className: `${i1.button} ${i1.increment}`,
|
|
18443
18445
|
onClick: () => S("size"),
|
|
18444
|
-
onMouseDown: () =>
|
|
18446
|
+
onMouseDown: () => K("size"),
|
|
18445
18447
|
onMouseUp: () => T("size"),
|
|
18446
18448
|
onMouseLeave: () => T("size"),
|
|
18447
18449
|
children: "+"
|
|
@@ -18478,7 +18480,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18478
18480
|
{
|
|
18479
18481
|
className: `${i1.button} ${i1.increment}`,
|
|
18480
18482
|
onClick: () => S("rotate"),
|
|
18481
|
-
onMouseDown: () =>
|
|
18483
|
+
onMouseDown: () => K("rotate"),
|
|
18482
18484
|
onMouseUp: () => T("rotate"),
|
|
18483
18485
|
onMouseLeave: () => T("rotate"),
|
|
18484
18486
|
children: "+"
|
|
@@ -18489,7 +18491,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18489
18491
|
"button",
|
|
18490
18492
|
{
|
|
18491
18493
|
className: i1.rotateButton,
|
|
18492
|
-
onClick: () =>
|
|
18494
|
+
onClick: () => X("rotate"),
|
|
18493
18495
|
children: /* @__PURE__ */ k(N7, { size: 24 })
|
|
18494
18496
|
}
|
|
18495
18497
|
)
|
|
@@ -18523,7 +18525,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18523
18525
|
{
|
|
18524
18526
|
className: `${i1.button} ${i1.increment}`,
|
|
18525
18527
|
onClick: () => S("offset_x"),
|
|
18526
|
-
onMouseDown: () =>
|
|
18528
|
+
onMouseDown: () => K("offset_x"),
|
|
18527
18529
|
onMouseUp: () => T("offset_x"),
|
|
18528
18530
|
onMouseLeave: () => T("offset_x"),
|
|
18529
18531
|
children: "+"
|
|
@@ -18559,7 +18561,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18559
18561
|
{
|
|
18560
18562
|
className: `${i1.button} ${i1.increment}`,
|
|
18561
18563
|
onClick: () => S("offset_y"),
|
|
18562
|
-
onMouseDown: () =>
|
|
18564
|
+
onMouseDown: () => K("offset_y"),
|
|
18563
18565
|
onMouseUp: () => T("offset_y"),
|
|
18564
18566
|
onMouseLeave: () => T("offset_y"),
|
|
18565
18567
|
children: "+"
|
|
@@ -18622,11 +18624,11 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18622
18624
|
] })
|
|
18623
18625
|
] }) }) : null;
|
|
18624
18626
|
}, Oa = L4((e, l) => {
|
|
18625
|
-
const { selectedActiveObjectId: t, setSelectedActiveObjectId: o, onMapDataUpdate: n, onChangeCameraControlPosition: r, handleClickOnRetailer: q } = e, [c, i] = c1(!1), [a, s] = c1(""), [m, v] = c1(!1), [R, x] = c1(-1), [f, d] = c1([]), [b, A] = c1(f4), [g, u] = c1(0), [h, I] = c1("desktop"), [E, w] = c1(!1), [P, D] = c1(!1), [,
|
|
18627
|
+
const { selectedActiveObjectId: t, setSelectedActiveObjectId: o, onMapDataUpdate: n, onChangeCameraControlPosition: r, handleClickOnRetailer: q } = e, [c, i] = c1(!1), [a, s] = c1(""), [m, v] = c1(!1), [R, x] = c1(-1), [f, d] = c1([]), [b, A] = c1(f4), [g, u] = c1(0), [h, I] = c1("desktop"), [E, w] = c1(!1), [P, D] = c1(!1), [, e1] = z9(), [W, l1] = c1(0), [$, Q] = c1(""), [j, Y] = c1(""), [L, q1] = c1(null), [, G] = c1(0), N = v1(null), B = v1(null);
|
|
18626
18628
|
B.current = g;
|
|
18627
18629
|
const Z = v1(null), z = r1((o1) => {
|
|
18628
18630
|
G(o1);
|
|
18629
|
-
}, []), { setMapConfig: C, refetchMapData: _, mapApiResponse: p, mapConfig: S, floorsData:
|
|
18631
|
+
}, []), { setMapConfig: C, refetchMapData: _, mapApiResponse: p, mapConfig: S, floorsData: X, setMeshObject: F, indexedKiosks: K, initialFloorsDataIsLoaded: T } = r4(), t1 = r1((o1) => {
|
|
18630
18632
|
x(o1);
|
|
18631
18633
|
}, [x]), U = Gl(), { meshParams: J, storeLogos: M, textParams: V, allSvgObjectIds: O } = U, y = v1(null), [n1, s1] = c1(null), [, I1] = c1(0), y1 = r1(() => {
|
|
18632
18634
|
I1((o1) => o1 + 1);
|
|
@@ -18662,25 +18664,25 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18662
18664
|
}
|
|
18663
18665
|
}, [N.current, P, b1]);
|
|
18664
18666
|
const [j1, e4, P4] = V1(() => {
|
|
18665
|
-
let o1 = "", u1 = null, _1 =
|
|
18666
|
-
if (
|
|
18667
|
-
const O1 =
|
|
18667
|
+
let o1 = "", u1 = null, _1 = X.length ? X.length - 1 : 0;
|
|
18668
|
+
if (K[S.KIOSK_ID]) {
|
|
18669
|
+
const O1 = K[S.KIOSK_ID].map_obj_name, M1 = J == null ? void 0 : J.flat().find((J1) => J1.object_id === O1);
|
|
18668
18670
|
M1 && (u1 = M1.mesh, _1 = M1.floor_index);
|
|
18669
18671
|
} else
|
|
18670
18672
|
S.ROLE === "DEMO" && console.error("Kiosk not found in config");
|
|
18671
18673
|
return [u1, _1, o1];
|
|
18672
|
-
}, [S, J,
|
|
18674
|
+
}, [S, J, X, K]), H1 = R > -1 && R < X.length ? R : e4;
|
|
18673
18675
|
p1(() => {
|
|
18674
18676
|
var _1;
|
|
18675
18677
|
let o1;
|
|
18676
|
-
const u1 = ((_1 =
|
|
18678
|
+
const u1 = ((_1 = X[H1]) == null ? void 0 : _1.id) || null;
|
|
18677
18679
|
u1 && S.CAMERA_CONTROLS_STATES.perFloor && S.CAMERA_CONTROLS_STATES.perFloor[u1] ? o1 = S.CAMERA_CONTROLS_STATES.perFloor[u1] : o1 = S.CAMERA_CONTROLS_STATES, S.ROLE === "DISPLAY_APP" ? A(JSON.parse(JSON.stringify(o1.display_app))) : S.ROLE === "WP_SITE" ? A(JSON.parse(JSON.stringify(h === "desktop" ? o1.desktop : h === "tablet" ? o1.tablet : o1.mobile))) : S.ROLE === "PORTAL_RESPONSIVE" && (S.DEVICE === "desktop" ? A(JSON.parse(JSON.stringify(o1.desktop))) : S.DEVICE === "display_app" ? A(JSON.parse(JSON.stringify(o1.display_app))) : S.DEVICE === "mobile" ? A(JSON.parse(JSON.stringify(o1.mobile))) : S.DEVICE === "tablet" && A(JSON.parse(JSON.stringify(o1.tablet))));
|
|
18678
|
-
}, [h, S, H1,
|
|
18680
|
+
}, [h, S, H1, X]);
|
|
18679
18681
|
const h2 = r1((o1) => {
|
|
18680
18682
|
var _1;
|
|
18681
|
-
const u1 = ((_1 =
|
|
18683
|
+
const u1 = ((_1 = X[H1]) == null ? void 0 : _1.id) || null;
|
|
18682
18684
|
r && r(S.CAMERA_CONTROLS_STATES, o1, u1);
|
|
18683
|
-
}, [r, H1,
|
|
18685
|
+
}, [r, H1, X, S.CAMERA_CONTROLS_STATES]);
|
|
18684
18686
|
let F4 = "", B4 = S.DEFAULT_SELECTED_STORE ?? "";
|
|
18685
18687
|
t ? (B4 = t, F4 = a) : $ && (B4 = "", F4 = a);
|
|
18686
18688
|
const x3 = r1((o1, u1) => {
|
|
@@ -18772,7 +18774,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18772
18774
|
}
|
|
18773
18775
|
return !1;
|
|
18774
18776
|
}
|
|
18775
|
-
S.ROLE === "DISPLAY_APP" && j1 && t1(e4),
|
|
18777
|
+
S.ROLE === "DISPLAY_APP" && j1 && t1(e4), e1(() => {
|
|
18776
18778
|
G4(o1), o(u1 ?? ""), i((M1) => !M1), l1(0), Q(""), s("");
|
|
18777
18779
|
});
|
|
18778
18780
|
}, [e4, j1, q, t1, G4, p.map_objs, p.retailers, S.ROLE, o]), L7 = r1((o1) => {
|
|
@@ -18885,7 +18887,7 @@ const ia = "_sidebarComp_1b6ud_1", aa = "_sidebarFields_1b6ud_2", sa = "_tabOpti
|
|
|
18885
18887
|
show: T1,
|
|
18886
18888
|
onHide: () => W1(!1),
|
|
18887
18889
|
amenity: $,
|
|
18888
|
-
selectedAmenityMapObjName:
|
|
18890
|
+
selectedAmenityMapObjName: j,
|
|
18889
18891
|
mapObjectName: t,
|
|
18890
18892
|
onClickMapObj: G7,
|
|
18891
18893
|
allSvgObjectIds: O
|