@iqworksai/common-components 0.1.12 → 0.1.13
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/components/MultiSelect/index.d.ts +1 -0
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/{index-Dpws0L2j.cjs → index-CLUVaHt2.cjs} +1 -1
- package/dist/{index-CKlEKqvr.js → index-D4wkN13T.js} +1 -1
- package/dist/{index-uBZ3zM9X.cjs → index-KBGLYbBm.cjs} +22 -22
- package/dist/{index-Bx4bXmLd.js → index-LY3iyTN3.js} +1058 -1054
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{jquery-B8TEbdTo.js → jquery-BfiVt2p1.js} +1 -1
- package/dist/{jquery-BWWB6h9-.cjs → jquery-DRxuJzI-.cjs} +1 -1
- package/dist/{jstree-6VFTuuKM.js → jstree-DV0-zhD2.js} +1 -1
- package/dist/{jstree-DlqPqqAo.cjs → jstree-NA1bzyjw.cjs} +1 -1
- package/package.json +1 -1
|
@@ -412,19 +412,19 @@ const du = {
|
|
|
412
412
|
const h = d.current.getBoundingClientRect(), g = f.current;
|
|
413
413
|
if (!g) return;
|
|
414
414
|
const p = g.getBoundingClientRect(), m = window.innerWidth, b = window.innerHeight;
|
|
415
|
-
let v = n, C = 0, S = 0, y = 0,
|
|
415
|
+
let v = n, C = 0, S = 0, y = 0, _ = 0;
|
|
416
416
|
switch (n === "top" && h.top - p.height < 10 ? v = "bottom" : n === "bottom" && h.bottom + p.height > b - 10 ? v = "top" : n === "left" && h.left - p.width < 10 ? v = "right" : n === "right" && h.right + p.width > m - 10 && (v = "left"), v) {
|
|
417
417
|
case "top":
|
|
418
|
-
C = h.top - p.height - 8, S = h.left + h.width / 2 - p.width / 2, y = p.height - 4,
|
|
418
|
+
C = h.top - p.height - 8, S = h.left + h.width / 2 - p.width / 2, y = p.height - 4, _ = p.width / 2 - 5;
|
|
419
419
|
break;
|
|
420
420
|
case "bottom":
|
|
421
|
-
C = h.bottom + 8, S = h.left + h.width / 2 - p.width / 2, y = -5,
|
|
421
|
+
C = h.bottom + 8, S = h.left + h.width / 2 - p.width / 2, y = -5, _ = p.width / 2 - 5;
|
|
422
422
|
break;
|
|
423
423
|
case "left":
|
|
424
|
-
C = h.top + h.height / 2 - p.height / 2, S = h.left - p.width - 8, y = p.height / 2 - 5,
|
|
424
|
+
C = h.top + h.height / 2 - p.height / 2, S = h.left - p.width - 8, y = p.height / 2 - 5, _ = p.width - 4;
|
|
425
425
|
break;
|
|
426
426
|
case "right":
|
|
427
|
-
C = h.top + h.height / 2 - p.height / 2, S = h.right + 8, y = p.height / 2 - 5,
|
|
427
|
+
C = h.top + h.height / 2 - p.height / 2, S = h.right + 8, y = p.height / 2 - 5, _ = -5;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
l({
|
|
@@ -434,7 +434,7 @@ const du = {
|
|
|
434
434
|
visibility: "visible"
|
|
435
435
|
}), u({
|
|
436
436
|
top: `${y}px`,
|
|
437
|
-
left: `${
|
|
437
|
+
left: `${_}px`,
|
|
438
438
|
transform: "rotate(45deg)"
|
|
439
439
|
});
|
|
440
440
|
}, [r, o, n]), /* @__PURE__ */ N(
|
|
@@ -1625,15 +1625,15 @@ function E9() {
|
|
|
1625
1625
|
function m(y) {
|
|
1626
1626
|
if (!b) {
|
|
1627
1627
|
if (b = !0, v = y, y = d(y), f !== void 0 && g.hasValue) {
|
|
1628
|
-
var
|
|
1629
|
-
if (f(
|
|
1630
|
-
return C =
|
|
1628
|
+
var _ = g.value;
|
|
1629
|
+
if (f(_, y))
|
|
1630
|
+
return C = _;
|
|
1631
1631
|
}
|
|
1632
1632
|
return C = y;
|
|
1633
1633
|
}
|
|
1634
|
-
if (
|
|
1634
|
+
if (_ = C, n(v, y)) return _;
|
|
1635
1635
|
var A = d(y);
|
|
1636
|
-
return f !== void 0 && f(
|
|
1636
|
+
return f !== void 0 && f(_, A) ? (v = y, _) : (v = y, C = A);
|
|
1637
1637
|
}
|
|
1638
1638
|
var b = !1, v, C, S = u === void 0 ? null : u;
|
|
1639
1639
|
return [
|
|
@@ -1685,16 +1685,16 @@ function R9() {
|
|
|
1685
1685
|
function m(y) {
|
|
1686
1686
|
if (!b) {
|
|
1687
1687
|
if (b = !0, v = y, y = d(y), f !== void 0 && g.hasValue) {
|
|
1688
|
-
var
|
|
1689
|
-
if (f(
|
|
1690
|
-
return C =
|
|
1688
|
+
var _ = g.value;
|
|
1689
|
+
if (f(_, y))
|
|
1690
|
+
return C = _;
|
|
1691
1691
|
}
|
|
1692
1692
|
return C = y;
|
|
1693
1693
|
}
|
|
1694
|
-
if (
|
|
1695
|
-
return
|
|
1694
|
+
if (_ = C, n(v, y))
|
|
1695
|
+
return _;
|
|
1696
1696
|
var A = d(y);
|
|
1697
|
-
return f !== void 0 && f(
|
|
1697
|
+
return f !== void 0 && f(_, A) ? (v = y, _) : (v = y, C = A);
|
|
1698
1698
|
}
|
|
1699
1699
|
var b = !1, v, C, S = u === void 0 ? null : u;
|
|
1700
1700
|
return [
|
|
@@ -2578,8 +2578,8 @@ const D8 = function(e) {
|
|
|
2578
2578
|
} = Tr(e, t);
|
|
2579
2579
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
2580
2580
|
return {};
|
|
2581
|
-
const b = mi(r), v = jn(a), C = mi(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), y = f || (C || !p ? [_s(a)] : E8(a)),
|
|
2582
|
-
!f &&
|
|
2581
|
+
const b = mi(r), v = jn(a), C = mi(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), y = f || (C || !p ? [_s(a)] : E8(a)), _ = g !== "none";
|
|
2582
|
+
!f && _ && y.push(...L8(a, p, g, S));
|
|
2583
2583
|
const A = [a, ...y], w = await va(t, m), I = [];
|
|
2584
2584
|
let M = ((i = o.flip) == null ? void 0 : i.overflows) || [];
|
|
2585
2585
|
if (u && I.push(w[b]), d) {
|
|
@@ -2591,33 +2591,33 @@ const D8 = function(e) {
|
|
|
2591
2591
|
overflows: I
|
|
2592
2592
|
}], !I.every((D) => D <= 0)) {
|
|
2593
2593
|
var k, O;
|
|
2594
|
-
const D = (((k = o.flip) == null ? void 0 : k.index) || 0) + 1,
|
|
2595
|
-
if (
|
|
2594
|
+
const D = (((k = o.flip) == null ? void 0 : k.index) || 0) + 1, E = A[D];
|
|
2595
|
+
if (E && (!(d === "alignment" ? v !== jn(E) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2596
2596
|
// overflows the main axis.
|
|
2597
|
-
M.every((
|
|
2597
|
+
M.every((P) => jn(P.placement) === v ? P.overflows[0] > 0 : !0)))
|
|
2598
2598
|
return {
|
|
2599
2599
|
data: {
|
|
2600
2600
|
index: D,
|
|
2601
2601
|
overflows: M
|
|
2602
2602
|
},
|
|
2603
2603
|
reset: {
|
|
2604
|
-
placement:
|
|
2604
|
+
placement: E
|
|
2605
2605
|
}
|
|
2606
2606
|
};
|
|
2607
|
-
let L = (O = M.filter((F) => F.overflows[0] <= 0).sort((F,
|
|
2607
|
+
let L = (O = M.filter((F) => F.overflows[0] <= 0).sort((F, P) => F.overflows[1] - P.overflows[1])[0]) == null ? void 0 : O.placement;
|
|
2608
2608
|
if (!L)
|
|
2609
2609
|
switch (h) {
|
|
2610
2610
|
case "bestFit": {
|
|
2611
2611
|
var H;
|
|
2612
|
-
const F = (H = M.filter((
|
|
2613
|
-
if (
|
|
2614
|
-
const
|
|
2615
|
-
return
|
|
2612
|
+
const F = (H = M.filter((P) => {
|
|
2613
|
+
if (_) {
|
|
2614
|
+
const R = jn(P.placement);
|
|
2615
|
+
return R === v || // Create a bias to the `y` side axis due to horizontal
|
|
2616
2616
|
// reading directions favoring greater width.
|
|
2617
|
-
|
|
2617
|
+
R === "y";
|
|
2618
2618
|
}
|
|
2619
2619
|
return !0;
|
|
2620
|
-
}).map((
|
|
2620
|
+
}).map((P) => [P.placement, P.overflows.filter((R) => R > 0).reduce((R, T) => R + T, 0)]).sort((P, R) => P[1] - R[1])[0]) == null ? void 0 : H[0];
|
|
2621
2621
|
F && (L = F);
|
|
2622
2622
|
break;
|
|
2623
2623
|
}
|
|
@@ -2762,9 +2762,9 @@ const B8 = function(e) {
|
|
|
2762
2762
|
} = o.floating;
|
|
2763
2763
|
let m, b;
|
|
2764
2764
|
d === "top" || d === "bottom" ? (m = d, b = f === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (b = d, m = f === "end" ? "top" : "bottom");
|
|
2765
|
-
const v = p - u.top - u.bottom, C = g - u.left - u.right, S = Ji(p - u[m], v), y = Ji(g - u[b], C),
|
|
2765
|
+
const v = p - u.top - u.bottom, C = g - u.left - u.right, S = Ji(p - u[m], v), y = Ji(g - u[b], C), _ = !t.middlewareData.shift;
|
|
2766
2766
|
let A = S, w = y;
|
|
2767
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = C), (i = t.middlewareData.shift) != null && i.enabled.y && (A = v),
|
|
2767
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = C), (i = t.middlewareData.shift) != null && i.enabled.y && (A = v), _ && !f) {
|
|
2768
2768
|
const M = Dt(u.left, 0), k = Dt(u.right, 0), O = Dt(u.top, 0), H = Dt(u.bottom, 0);
|
|
2769
2769
|
h ? w = g - 2 * (M !== 0 || k !== 0 ? M + k : Dt(u.left, u.right)) : A = p - 2 * (O !== 0 || H !== 0 ? O + H : Dt(u.top, u.bottom));
|
|
2770
2770
|
}
|
|
@@ -3095,8 +3095,8 @@ function i7(e, t) {
|
|
|
3095
3095
|
threshold: Dt(0, Ji(1, l)) || 1
|
|
3096
3096
|
};
|
|
3097
3097
|
let S = !0;
|
|
3098
|
-
function y(
|
|
3099
|
-
const A =
|
|
3098
|
+
function y(_) {
|
|
3099
|
+
const A = _[0].intersectionRatio;
|
|
3100
3100
|
if (A !== l) {
|
|
3101
3101
|
if (!S)
|
|
3102
3102
|
return s();
|
|
@@ -3236,35 +3236,35 @@ function d7(e) {
|
|
|
3236
3236
|
isPositioned: !1
|
|
3237
3237
|
}), [f, h] = j.useState(i);
|
|
3238
3238
|
Es(f, i) || h(i);
|
|
3239
|
-
const [g, p] = j.useState(null), [m, b] = j.useState(null), v = j.useCallback((
|
|
3240
|
-
|
|
3241
|
-
}, []), C = j.useCallback((
|
|
3242
|
-
|
|
3243
|
-
}, []), S = o || g, y = s || m,
|
|
3244
|
-
if (!
|
|
3239
|
+
const [g, p] = j.useState(null), [m, b] = j.useState(null), v = j.useCallback((P) => {
|
|
3240
|
+
P !== _.current && (_.current = P, p(P));
|
|
3241
|
+
}, []), C = j.useCallback((P) => {
|
|
3242
|
+
P !== A.current && (A.current = P, b(P));
|
|
3243
|
+
}, []), S = o || g, y = s || m, _ = j.useRef(null), A = j.useRef(null), w = j.useRef(u), I = l != null, M = Ya(l), k = Ya(r), O = Ya(c), H = j.useCallback(() => {
|
|
3244
|
+
if (!_.current || !A.current)
|
|
3245
3245
|
return;
|
|
3246
|
-
const
|
|
3246
|
+
const P = {
|
|
3247
3247
|
placement: t,
|
|
3248
3248
|
strategy: n,
|
|
3249
3249
|
middleware: f
|
|
3250
3250
|
};
|
|
3251
|
-
k.current && (
|
|
3252
|
-
const
|
|
3253
|
-
...
|
|
3251
|
+
k.current && (P.platform = k.current), l7(_.current, A.current, P).then((R) => {
|
|
3252
|
+
const T = {
|
|
3253
|
+
...R,
|
|
3254
3254
|
// The floating element's position may be recomputed while it's closed
|
|
3255
3255
|
// but still mounted (such as when transitioning out). To ensure
|
|
3256
3256
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
3257
3257
|
// setting it to `true` when `open === false` (must be specified).
|
|
3258
3258
|
isPositioned: O.current !== !1
|
|
3259
3259
|
};
|
|
3260
|
-
D.current && !Es(w.current,
|
|
3261
|
-
d(
|
|
3260
|
+
D.current && !Es(w.current, T) && (w.current = T, Cs.flushSync(() => {
|
|
3261
|
+
d(T);
|
|
3262
3262
|
}));
|
|
3263
3263
|
});
|
|
3264
3264
|
}, [f, t, n, k, O]);
|
|
3265
3265
|
is(() => {
|
|
3266
|
-
c === !1 && w.current.isPositioned && (w.current.isPositioned = !1, d((
|
|
3267
|
-
...
|
|
3266
|
+
c === !1 && w.current.isPositioned && (w.current.isPositioned = !1, d((P) => ({
|
|
3267
|
+
...P,
|
|
3268
3268
|
isPositioned: !1
|
|
3269
3269
|
})));
|
|
3270
3270
|
}, [c]);
|
|
@@ -3272,14 +3272,14 @@ function d7(e) {
|
|
|
3272
3272
|
is(() => (D.current = !0, () => {
|
|
3273
3273
|
D.current = !1;
|
|
3274
3274
|
}), []), is(() => {
|
|
3275
|
-
if (S && (
|
|
3275
|
+
if (S && (_.current = S), y && (A.current = y), S && y) {
|
|
3276
3276
|
if (M.current)
|
|
3277
3277
|
return M.current(S, y, H);
|
|
3278
3278
|
H();
|
|
3279
3279
|
}
|
|
3280
3280
|
}, [S, y, H, M, I]);
|
|
3281
|
-
const
|
|
3282
|
-
reference:
|
|
3281
|
+
const E = j.useMemo(() => ({
|
|
3282
|
+
reference: _,
|
|
3283
3283
|
floating: A,
|
|
3284
3284
|
setReference: v,
|
|
3285
3285
|
setFloating: C
|
|
@@ -3287,33 +3287,33 @@ function d7(e) {
|
|
|
3287
3287
|
reference: S,
|
|
3288
3288
|
floating: y
|
|
3289
3289
|
}), [S, y]), F = j.useMemo(() => {
|
|
3290
|
-
const
|
|
3290
|
+
const P = {
|
|
3291
3291
|
position: n,
|
|
3292
3292
|
left: 0,
|
|
3293
3293
|
top: 0
|
|
3294
3294
|
};
|
|
3295
3295
|
if (!L.floating)
|
|
3296
|
-
return
|
|
3297
|
-
const
|
|
3296
|
+
return P;
|
|
3297
|
+
const R = $u(L.floating, u.x), T = $u(L.floating, u.y);
|
|
3298
3298
|
return a ? {
|
|
3299
|
-
...
|
|
3300
|
-
transform: "translate(" +
|
|
3299
|
+
...P,
|
|
3300
|
+
transform: "translate(" + R + "px, " + T + "px)",
|
|
3301
3301
|
...Jf(L.floating) >= 1.5 && {
|
|
3302
3302
|
willChange: "transform"
|
|
3303
3303
|
}
|
|
3304
3304
|
} : {
|
|
3305
3305
|
position: n,
|
|
3306
|
-
left:
|
|
3307
|
-
top:
|
|
3306
|
+
left: R,
|
|
3307
|
+
top: T
|
|
3308
3308
|
};
|
|
3309
3309
|
}, [n, a, L.floating, u.x, u.y]);
|
|
3310
3310
|
return j.useMemo(() => ({
|
|
3311
3311
|
...u,
|
|
3312
3312
|
update: H,
|
|
3313
|
-
refs:
|
|
3313
|
+
refs: E,
|
|
3314
3314
|
elements: L,
|
|
3315
3315
|
floatingStyles: F
|
|
3316
|
-
}), [u, H,
|
|
3316
|
+
}), [u, H, E, L, F]);
|
|
3317
3317
|
}
|
|
3318
3318
|
const Uf = (e, t) => ({
|
|
3319
3319
|
...r7(e),
|
|
@@ -3592,8 +3592,8 @@ const L7 = (e) => ({
|
|
|
3592
3592
|
}, S = await Xa(ju(C, g.scrollHeight + p + f.clientTop), u), y = await Xa(C, {
|
|
3593
3593
|
...u,
|
|
3594
3594
|
elementContext: "reference"
|
|
3595
|
-
}),
|
|
3596
|
-
if (g.style.maxHeight = M + "px", g.scrollTop =
|
|
3595
|
+
}), _ = Dt(0, S.top), A = C.y + _, M = (g.scrollHeight > g.clientHeight ? (k) => k : No)(Dt(0, g.scrollHeight + (m && v || b ? p * 2 : 0) - _ - Dt(0, S.bottom)));
|
|
3596
|
+
if (g.style.maxHeight = M + "px", g.scrollTop = _, r) {
|
|
3597
3597
|
const k = g.offsetHeight < h.offsetHeight * Ji(a, n.current.length) - 1 || y.top >= -l || y.bottom >= -l;
|
|
3598
3598
|
Cs.flushSync(() => r(k));
|
|
3599
3599
|
}
|
|
@@ -3622,7 +3622,7 @@ function F7(e, t) {
|
|
|
3622
3622
|
return;
|
|
3623
3623
|
const m = p.deltaY, b = o.current.top >= -0.5, v = o.current.bottom >= -0.5, C = g.scrollHeight - g.clientHeight, S = m < 0 ? -1 : 1, y = m < 0 ? "max" : "min";
|
|
3624
3624
|
g.scrollHeight <= g.clientHeight || (!b && m > 0 || !v && m < 0 ? (p.preventDefault(), Cs.flushSync(() => {
|
|
3625
|
-
l((
|
|
3625
|
+
l((_) => _ + Math[y](m, C * S));
|
|
3626
3626
|
})) : /firefox/i.test(S8()) && (g.scrollTop += m));
|
|
3627
3627
|
}
|
|
3628
3628
|
const g = (s == null ? void 0 : s.current) || i.floating;
|
|
@@ -3706,27 +3706,27 @@ function B7({ children: e, enabled: t = !0 }) {
|
|
|
3706
3706
|
if (!k) return;
|
|
3707
3707
|
let D = C.elements.floating;
|
|
3708
3708
|
if (!D) return;
|
|
3709
|
-
let
|
|
3710
|
-
for (let
|
|
3711
|
-
let
|
|
3712
|
-
if (
|
|
3709
|
+
let E = parseFloat(getComputedStyle(D).scrollPaddingBottom) || 0, L = Math.min(Xu, D.childElementCount), F = 0, P = 0;
|
|
3710
|
+
for (let R of (H = (O = C.elements.floating) == null ? void 0 : O.childNodes) != null ? H : []) if (ii(R)) {
|
|
3711
|
+
let T = R.offsetTop, $ = T + R.clientHeight + E, z = D.scrollTop, G = z + D.clientHeight;
|
|
3712
|
+
if (T >= z && $ <= G) L--;
|
|
3713
3713
|
else {
|
|
3714
|
-
|
|
3714
|
+
P = Math.max(0, Math.min($, G) - Math.max(T, z)), F = R.clientHeight;
|
|
3715
3715
|
break;
|
|
3716
3716
|
}
|
|
3717
3717
|
}
|
|
3718
|
-
L >= 1 && o((
|
|
3719
|
-
let
|
|
3720
|
-
return
|
|
3718
|
+
L >= 1 && o((R) => {
|
|
3719
|
+
let T = F * L - P + E;
|
|
3720
|
+
return R >= T ? R : T;
|
|
3721
3721
|
});
|
|
3722
3722
|
} }) : null, g7({ padding: h, apply({ availableWidth: k, availableHeight: O, elements: H }) {
|
|
3723
3723
|
Object.assign(H.floating.style, { overflow: "auto", maxWidth: `${k}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${O}px)` });
|
|
3724
3724
|
} })].filter(Boolean), whileElementsMounted: Yf }), [S = p, y = m] = C.placement.split("-");
|
|
3725
3725
|
p === "selection" && (S = "selection");
|
|
3726
|
-
let
|
|
3726
|
+
let _ = Fe(() => ({ anchor: [S, y].filter(Boolean).join(" ") }), [S, y]), A = F7(C, { overflowRef: s, onChange: o }), { getReferenceProps: w, getFloatingProps: I } = P7([A]), M = et((k) => {
|
|
3727
3727
|
l(k), b.setFloating(k);
|
|
3728
3728
|
});
|
|
3729
|
-
return j.createElement(sc.Provider, { value: i }, j.createElement(Vr.Provider, { value: { setFloating: M, setReference: b.setReference, styles: v, getReferenceProps: w, getFloatingProps: I, slot:
|
|
3729
|
+
return j.createElement(sc.Provider, { value: i }, j.createElement(Vr.Provider, { value: { setFloating: M, setReference: b.setReference, styles: v, getReferenceProps: w, getFloatingProps: I, slot: _ } }, e));
|
|
3730
3730
|
}
|
|
3731
3731
|
function H7(e) {
|
|
3732
3732
|
Rt(() => {
|
|
@@ -4108,73 +4108,73 @@ function dp(e, t) {
|
|
|
4108
4108
|
let b = x9((M) => {
|
|
4109
4109
|
var k;
|
|
4110
4110
|
o || (h === Ot.Open ? (D0(() => n.send({ type: rt.CloseMenu })), (k = l.current) == null || k.focus({ preventScroll: !0 })) : (M.preventDefault(), n.send({ type: rt.OpenMenu, focus: { focus: Ct.Nothing }, trigger: Rs.Pointer })));
|
|
4111
|
-
}), { isFocusVisible: v, focusProps: C } = Gg({ autoFocus: s }), { isHovered: S, hoverProps: y } = $g({ isDisabled: o }), { pressed:
|
|
4111
|
+
}), { isFocusVisible: v, focusProps: C } = Gg({ autoFocus: s }), { isHovered: S, hoverProps: y } = $g({ isDisabled: o }), { pressed: _, pressProps: A } = Jg({ disabled: o }), w = Or({ open: h === Ot.Open, active: _ || h === Ot.Open, disabled: o, hover: S, focus: v, autofocus: s }), I = Cf(c(), { ref: u, id: r, type: U9(e, l.current), "aria-haspopup": "menu", "aria-controls": p == null ? void 0 : p.id, "aria-expanded": h === Ot.Open, disabled: o || void 0, autoFocus: s, onKeyDown: d, onKeyUp: f }, b, C, y, A);
|
|
4112
4112
|
return un()({ ourProps: I, theirProps: a, slot: w, defaultTag: up, name: "Menu.Button" });
|
|
4113
4113
|
}
|
|
4114
4114
|
let fp = "div", hp = z0.RenderStrategy | z0.Static;
|
|
4115
4115
|
function gp(e, t) {
|
|
4116
|
-
let n = wi(), { id: i = `headlessui-menu-items-${n}`, anchor: r, portal: o = !1, modal: s = !0, transition: a = !1, ...l } = e, c = O7(r), u = cc("Menu.Items"), [d, f] = V7(c), h = T7(), [g, p] = W(null), m = ri(t, c ? d : null, et((
|
|
4116
|
+
let n = wi(), { id: i = `headlessui-menu-items-${n}`, anchor: r, portal: o = !1, modal: s = !0, transition: a = !1, ...l } = e, c = O7(r), u = cc("Menu.Items"), [d, f] = V7(c), h = T7(), [g, p] = W(null), m = ri(t, c ? d : null, et((P) => u.send({ type: rt.SetItemsElement, element: P })), p), [b, v] = gn(u, (P) => [P.menuState, P.buttonElement]), C = Y0(v), S = Y0(g);
|
|
4117
4117
|
c && (o = !0);
|
|
4118
|
-
let y = G7(), [
|
|
4119
|
-
F9(
|
|
4118
|
+
let y = G7(), [_, A] = l8(a, g, y !== null ? (y & To.Open) === To.Open : b === Ot.Open);
|
|
4119
|
+
F9(_, v, () => {
|
|
4120
4120
|
u.send({ type: rt.CloseMenu });
|
|
4121
4121
|
});
|
|
4122
|
-
let w = gn(u, (
|
|
4122
|
+
let w = gn(u, (P) => P.__demoMode), I = w ? !1 : s && b === Ot.Open;
|
|
4123
4123
|
i8(I, S);
|
|
4124
4124
|
let M = w ? !1 : s && b === Ot.Open;
|
|
4125
4125
|
L9(M, { allowed: Ae(() => [v, g], [v, g]) });
|
|
4126
|
-
let k = gn(u, u.selectors.didButtonMove) ? !1 :
|
|
4126
|
+
let k = gn(u, u.selectors.didButtonMove) ? !1 : _;
|
|
4127
4127
|
fe(() => {
|
|
4128
|
-
let
|
|
4129
|
-
|
|
4130
|
-
}, [b, g]), h8(b === Ot.Open, { container: g, accept(
|
|
4131
|
-
return
|
|
4132
|
-
}, walk(
|
|
4133
|
-
|
|
4128
|
+
let P = g;
|
|
4129
|
+
P && b === Ot.Open && (jg(P) || P.focus({ preventScroll: !0 }));
|
|
4130
|
+
}, [b, g]), h8(b === Ot.Open, { container: g, accept(P) {
|
|
4131
|
+
return P.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : P.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
4132
|
+
}, walk(P) {
|
|
4133
|
+
P.setAttribute("role", "none");
|
|
4134
4134
|
} });
|
|
4135
|
-
let O = e2(), H = et((
|
|
4136
|
-
var
|
|
4137
|
-
switch (O.dispose(),
|
|
4135
|
+
let O = e2(), H = et((P) => {
|
|
4136
|
+
var R, T, $;
|
|
4137
|
+
switch (O.dispose(), P.key) {
|
|
4138
4138
|
case At.Space:
|
|
4139
|
-
if (u.state.searchQuery !== "") return
|
|
4139
|
+
if (u.state.searchQuery !== "") return P.preventDefault(), P.stopPropagation(), u.send({ type: rt.Search, value: P.key });
|
|
4140
4140
|
case At.Enter:
|
|
4141
|
-
if (
|
|
4142
|
-
let { dataRef:
|
|
4143
|
-
(
|
|
4141
|
+
if (P.preventDefault(), P.stopPropagation(), u.state.activeItemIndex !== null) {
|
|
4142
|
+
let { dataRef: z } = u.state.items[u.state.activeItemIndex];
|
|
4143
|
+
(T = (R = z.current) == null ? void 0 : R.domRef.current) == null || T.click();
|
|
4144
4144
|
}
|
|
4145
4145
|
u.send({ type: rt.CloseMenu }), Of(u.state.buttonElement);
|
|
4146
4146
|
break;
|
|
4147
4147
|
case At.ArrowDown:
|
|
4148
|
-
return
|
|
4148
|
+
return P.preventDefault(), P.stopPropagation(), u.send({ type: rt.GoToItem, focus: Ct.Next });
|
|
4149
4149
|
case At.ArrowUp:
|
|
4150
|
-
return
|
|
4150
|
+
return P.preventDefault(), P.stopPropagation(), u.send({ type: rt.GoToItem, focus: Ct.Previous });
|
|
4151
4151
|
case At.Home:
|
|
4152
4152
|
case At.PageUp:
|
|
4153
|
-
return
|
|
4153
|
+
return P.preventDefault(), P.stopPropagation(), u.send({ type: rt.GoToItem, focus: Ct.First });
|
|
4154
4154
|
case At.End:
|
|
4155
4155
|
case At.PageDown:
|
|
4156
|
-
return
|
|
4156
|
+
return P.preventDefault(), P.stopPropagation(), u.send({ type: rt.GoToItem, focus: Ct.Last });
|
|
4157
4157
|
case At.Escape:
|
|
4158
|
-
|
|
4158
|
+
P.preventDefault(), P.stopPropagation(), D0(() => u.send({ type: rt.CloseMenu })), ($ = u.state.buttonElement) == null || $.focus({ preventScroll: !0 });
|
|
4159
4159
|
break;
|
|
4160
4160
|
case At.Tab:
|
|
4161
|
-
|
|
4161
|
+
P.preventDefault(), P.stopPropagation(), D0(() => u.send({ type: rt.CloseMenu })), G9(u.state.buttonElement, P.shiftKey ? X0.Previous : X0.Next);
|
|
4162
4162
|
break;
|
|
4163
4163
|
default:
|
|
4164
|
-
|
|
4164
|
+
P.key.length === 1 && (u.send({ type: rt.Search, value: P.key }), O.setTimeout(() => u.send({ type: rt.ClearSearch }), 350));
|
|
4165
4165
|
break;
|
|
4166
4166
|
}
|
|
4167
|
-
}), D = et((
|
|
4168
|
-
switch (
|
|
4167
|
+
}), D = et((P) => {
|
|
4168
|
+
switch (P.key) {
|
|
4169
4169
|
case At.Space:
|
|
4170
|
-
|
|
4170
|
+
P.preventDefault();
|
|
4171
4171
|
break;
|
|
4172
4172
|
}
|
|
4173
|
-
}),
|
|
4174
|
-
var
|
|
4175
|
-
return (
|
|
4176
|
-
}), id: i, onKeyDown: H, onKeyUp: D, role: "menu", tabIndex: b === Ot.Open ? 0 : void 0, ref: m, style: { ...l.style, ...f, "--button-width": v9(
|
|
4177
|
-
return it.createElement(tp, { enabled: o ? e.static ||
|
|
4173
|
+
}), E = Or({ open: b === Ot.Open }), L = Cf(c ? h() : {}, { "aria-activedescendant": gn(u, u.selectors.activeDescendantId), "aria-labelledby": gn(u, (P) => {
|
|
4174
|
+
var R;
|
|
4175
|
+
return (R = P.buttonElement) == null ? void 0 : R.id;
|
|
4176
|
+
}), id: i, onKeyDown: H, onKeyUp: D, role: "menu", tabIndex: b === Ot.Open ? 0 : void 0, ref: m, style: { ...l.style, ...f, "--button-width": v9(_, v, !0).width }, ...a8(A) }), F = un();
|
|
4177
|
+
return it.createElement(tp, { enabled: o ? e.static || _ : !1, ownerDocument: C }, F({ ourProps: L, theirProps: l, slot: E, defaultTag: fp, features: hp, visible: k, name: "Menu.Items" }));
|
|
4178
4178
|
}
|
|
4179
4179
|
let pp = gi;
|
|
4180
4180
|
function mp(e, t) {
|
|
@@ -4203,7 +4203,7 @@ function mp(e, t) {
|
|
|
4203
4203
|
m.wasMoved(k) && (r || a || s.send({ type: rt.GoToItem, focus: Ct.Specific, id: i, trigger: Rs.Pointer }));
|
|
4204
4204
|
}), C = et((k) => {
|
|
4205
4205
|
m.wasMoved(k) && (r || a && s.state.activationTrigger === Rs.Pointer && s.send({ type: rt.GoToItem, focus: Ct.Nothing }));
|
|
4206
|
-
}), [S, y] = If(), [
|
|
4206
|
+
}), [S, y] = If(), [_, A] = d9(), w = Or({ active: a, focus: a, disabled: r, close: h }), I = { id: i, ref: c, role: "menuitem", tabIndex: r === !0 ? void 0 : -1, "aria-disabled": r === !0 ? !0 : void 0, "aria-labelledby": S, "aria-describedby": _, disabled: void 0, onClick: g, onFocus: p, onPointerEnter: b, onMouseEnter: b, onPointerMove: v, onMouseMove: v, onPointerLeave: C, onMouseLeave: C }, M = un();
|
|
4207
4207
|
return it.createElement(y, null, it.createElement(A, null, M({ ourProps: I, theirProps: o, slot: w, defaultTag: pp, name: "Menu.Item" })));
|
|
4208
4208
|
}
|
|
4209
4209
|
let bp = "div";
|
|
@@ -4391,18 +4391,18 @@ function Tn(e, t) {
|
|
|
4391
4391
|
}
|
|
4392
4392
|
var Fp = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
4393
4393
|
function d4(e) {
|
|
4394
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, s = o === void 0 ? null : o, a = e.inputValue, l = e.menuIsOpen, c = e.onChange, u = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, h = e.value, g = Tn(e, Fp), p = W(a !== void 0 ? a : n), m = qn(p, 2), b = m[0], v = m[1], C = W(l !== void 0 ? l : r), S = qn(C, 2), y = S[0],
|
|
4395
|
-
typeof c == "function" && c(
|
|
4396
|
-
}, [c]), O = Ae(function(
|
|
4397
|
-
var
|
|
4398
|
-
typeof u == "function" && (
|
|
4394
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, o = e.defaultValue, s = o === void 0 ? null : o, a = e.inputValue, l = e.menuIsOpen, c = e.onChange, u = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, h = e.value, g = Tn(e, Fp), p = W(a !== void 0 ? a : n), m = qn(p, 2), b = m[0], v = m[1], C = W(l !== void 0 ? l : r), S = qn(C, 2), y = S[0], _ = S[1], A = W(h !== void 0 ? h : s), w = qn(A, 2), I = w[0], M = w[1], k = Ae(function(P, R) {
|
|
4395
|
+
typeof c == "function" && c(P, R), M(P);
|
|
4396
|
+
}, [c]), O = Ae(function(P, R) {
|
|
4397
|
+
var T;
|
|
4398
|
+
typeof u == "function" && (T = u(P, R)), v(T !== void 0 ? T : P);
|
|
4399
4399
|
}, [u]), H = Ae(function() {
|
|
4400
|
-
typeof f == "function" && f(),
|
|
4400
|
+
typeof f == "function" && f(), _(!0);
|
|
4401
4401
|
}, [f]), D = Ae(function() {
|
|
4402
|
-
typeof d == "function" && d(),
|
|
4403
|
-
}, [d]),
|
|
4402
|
+
typeof d == "function" && d(), _(!1);
|
|
4403
|
+
}, [d]), E = a !== void 0 ? a : b, L = l !== void 0 ? l : y, F = h !== void 0 ? h : I;
|
|
4404
4404
|
return ye(ye({}, g), {}, {
|
|
4405
|
-
inputValue:
|
|
4405
|
+
inputValue: E,
|
|
4406
4406
|
menuIsOpen: L,
|
|
4407
4407
|
onChange: k,
|
|
4408
4408
|
onInputChange: O,
|
|
@@ -4682,7 +4682,7 @@ function om(e) {
|
|
|
4682
4682
|
return C4(as("", null, null, null, [""], e = b4(e), 0, [0], e));
|
|
4683
4683
|
}
|
|
4684
4684
|
function as(e, t, n, i, r, o, s, a, l) {
|
|
4685
|
-
for (var c = 0, u = 0, d = s, f = 0, h = 0, g = 0, p = 1, m = 1, b = 1, v = 0, C = "", S = r, y = o,
|
|
4685
|
+
for (var c = 0, u = 0, d = s, f = 0, h = 0, g = 0, p = 1, m = 1, b = 1, v = 0, C = "", S = r, y = o, _ = i, A = C; m; )
|
|
4686
4686
|
switch (g = v, v = Qt()) {
|
|
4687
4687
|
case 40:
|
|
4688
4688
|
if (g != 108 && Et(A, d - 1) == 58) {
|
|
@@ -4728,19 +4728,19 @@ function as(e, t, n, i, r, o, s, a, l) {
|
|
|
4728
4728
|
case 59:
|
|
4729
4729
|
A += ";";
|
|
4730
4730
|
default:
|
|
4731
|
-
if (w2(
|
|
4731
|
+
if (w2(_ = td(A, t, n, c, u, r, a, C, S = [], y = [], d), o), v === 123)
|
|
4732
4732
|
if (u === 0)
|
|
4733
|
-
as(A, t,
|
|
4733
|
+
as(A, t, _, _, S, o, d, a, y);
|
|
4734
4734
|
else
|
|
4735
4735
|
switch (f === 99 && Et(A, 3) === 110 ? 100 : f) {
|
|
4736
4736
|
case 100:
|
|
4737
4737
|
case 108:
|
|
4738
4738
|
case 109:
|
|
4739
4739
|
case 115:
|
|
4740
|
-
as(e,
|
|
4740
|
+
as(e, _, _, i && w2(td(e, _, _, 0, 0, r, a, C, r, S = [], d), y), r, y, d, a, i ? S : y);
|
|
4741
4741
|
break;
|
|
4742
4742
|
default:
|
|
4743
|
-
as(A,
|
|
4743
|
+
as(A, _, _, _, [""], y, 0, a, y);
|
|
4744
4744
|
}
|
|
4745
4745
|
}
|
|
4746
4746
|
c = u = h = 0, p = b = 1, C = A = "", d = s;
|
|
@@ -5072,8 +5072,8 @@ function vm() {
|
|
|
5072
5072
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
5073
5073
|
function C(y) {
|
|
5074
5074
|
if (typeof y == "object" && y !== null) {
|
|
5075
|
-
var
|
|
5076
|
-
switch (
|
|
5075
|
+
var _ = y.$$typeof;
|
|
5076
|
+
switch (_) {
|
|
5077
5077
|
case t:
|
|
5078
5078
|
switch (y = y.type, y) {
|
|
5079
5079
|
case l:
|
|
@@ -5092,11 +5092,11 @@ function vm() {
|
|
|
5092
5092
|
case s:
|
|
5093
5093
|
return y;
|
|
5094
5094
|
default:
|
|
5095
|
-
return
|
|
5095
|
+
return _;
|
|
5096
5096
|
}
|
|
5097
5097
|
}
|
|
5098
5098
|
case n:
|
|
5099
|
-
return
|
|
5099
|
+
return _;
|
|
5100
5100
|
}
|
|
5101
5101
|
}
|
|
5102
5102
|
}
|
|
@@ -5180,20 +5180,20 @@ function xm() {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
}
|
|
5182
5182
|
}
|
|
5183
|
-
var y = l,
|
|
5184
|
-
function
|
|
5185
|
-
return
|
|
5183
|
+
var y = l, _ = c, A = a, w = s, I = t, M = u, k = i, O = g, H = h, D = n, E = o, L = r, F = d, P = !1;
|
|
5184
|
+
function R(Z) {
|
|
5185
|
+
return P || (P = !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.")), T(Z) || S(Z) === l;
|
|
5186
5186
|
}
|
|
5187
|
-
function
|
|
5187
|
+
function T(Z) {
|
|
5188
5188
|
return S(Z) === c;
|
|
5189
5189
|
}
|
|
5190
|
-
function
|
|
5190
|
+
function $(Z) {
|
|
5191
5191
|
return S(Z) === a;
|
|
5192
5192
|
}
|
|
5193
|
-
function
|
|
5193
|
+
function z(Z) {
|
|
5194
5194
|
return S(Z) === s;
|
|
5195
5195
|
}
|
|
5196
|
-
function
|
|
5196
|
+
function G(Z) {
|
|
5197
5197
|
return typeof Z == "object" && Z !== null && Z.$$typeof === t;
|
|
5198
5198
|
}
|
|
5199
5199
|
function U(Z) {
|
|
@@ -5220,7 +5220,7 @@ function xm() {
|
|
|
5220
5220
|
function ue(Z) {
|
|
5221
5221
|
return S(Z) === d;
|
|
5222
5222
|
}
|
|
5223
|
-
Ke.AsyncMode = y, Ke.ConcurrentMode =
|
|
5223
|
+
Ke.AsyncMode = y, Ke.ConcurrentMode = _, Ke.ContextConsumer = A, Ke.ContextProvider = w, Ke.Element = I, Ke.ForwardRef = M, Ke.Fragment = k, Ke.Lazy = O, Ke.Memo = H, Ke.Portal = D, Ke.Profiler = E, Ke.StrictMode = L, Ke.Suspense = F, Ke.isAsyncMode = R, Ke.isConcurrentMode = T, Ke.isContextConsumer = $, Ke.isContextProvider = z, Ke.isElement = G, Ke.isForwardRef = U, Ke.isFragment = ce, Ke.isLazy = pe, Ke.isMemo = Be, Ke.isPortal = ge, Ke.isProfiler = me, Ke.isStrictMode = Me, Ke.isSuspense = ue, Ke.isValidElementType = C, Ke.typeOf = S;
|
|
5224
5224
|
}()), Ke;
|
|
5225
5225
|
}
|
|
5226
5226
|
process.env.NODE_ENV === "production" ? nl.exports = vm() : nl.exports = xm();
|
|
@@ -5669,7 +5669,7 @@ function rb(e) {
|
|
|
5669
5669
|
maxHeight: t
|
|
5670
5670
|
};
|
|
5671
5671
|
if (!n || !n.offsetParent) return c;
|
|
5672
|
-
var u = l.getBoundingClientRect(), d = u.height, f = n.getBoundingClientRect(), h = f.bottom, g = f.height, p = f.top, m = n.offsetParent.getBoundingClientRect(), b = m.top, v = s ? window.innerHeight : jm(l), C = A4(l), S = parseInt(getComputedStyle(n).marginBottom, 10), y = parseInt(getComputedStyle(n).marginTop, 10),
|
|
5672
|
+
var u = l.getBoundingClientRect(), d = u.height, f = n.getBoundingClientRect(), h = f.bottom, g = f.height, p = f.top, m = n.offsetParent.getBoundingClientRect(), b = m.top, v = s ? window.innerHeight : jm(l), C = A4(l), S = parseInt(getComputedStyle(n).marginBottom, 10), y = parseInt(getComputedStyle(n).marginTop, 10), _ = b - y, A = v - p, w = _ + C, I = d - C - p, M = h - v + C + S, k = C + p - y, O = 160;
|
|
5673
5673
|
switch (r) {
|
|
5674
5674
|
case "auto":
|
|
5675
5675
|
case "bottom":
|
|
@@ -5692,8 +5692,8 @@ function rb(e) {
|
|
|
5692
5692
|
};
|
|
5693
5693
|
}
|
|
5694
5694
|
if (r === "auto" || s) {
|
|
5695
|
-
var D = t,
|
|
5696
|
-
return
|
|
5695
|
+
var D = t, E = s ? _ : w;
|
|
5696
|
+
return E >= i && (D = Math.min(E - S - a, t)), {
|
|
5697
5697
|
placement: "top",
|
|
5698
5698
|
maxHeight: D
|
|
5699
5699
|
};
|
|
@@ -5705,7 +5705,7 @@ function rb(e) {
|
|
|
5705
5705
|
};
|
|
5706
5706
|
break;
|
|
5707
5707
|
case "top":
|
|
5708
|
-
if (
|
|
5708
|
+
if (_ >= g)
|
|
5709
5709
|
return {
|
|
5710
5710
|
placement: "top",
|
|
5711
5711
|
maxHeight: t
|
|
@@ -5715,9 +5715,9 @@ function rb(e) {
|
|
|
5715
5715
|
placement: "top",
|
|
5716
5716
|
maxHeight: t
|
|
5717
5717
|
};
|
|
5718
|
-
if (!s && w >= i || s &&
|
|
5718
|
+
if (!s && w >= i || s && _ >= i) {
|
|
5719
5719
|
var L = t;
|
|
5720
|
-
return (!s && w >= i || s &&
|
|
5720
|
+
return (!s && w >= i || s && _ >= i) && (L = s ? _ - y : w - y), o && S2(l, k, O), {
|
|
5721
5721
|
placement: "top",
|
|
5722
5722
|
maxHeight: L
|
|
5723
5723
|
};
|
|
@@ -5756,13 +5756,13 @@ var R4 = function(t) {
|
|
|
5756
5756
|
return rl(function() {
|
|
5757
5757
|
var y = d.current;
|
|
5758
5758
|
if (y) {
|
|
5759
|
-
var
|
|
5759
|
+
var _ = s === "fixed", A = a && !_, w = rb({
|
|
5760
5760
|
maxHeight: r,
|
|
5761
5761
|
menuEl: y,
|
|
5762
5762
|
minHeight: i,
|
|
5763
5763
|
placement: o,
|
|
5764
5764
|
shouldScroll: A,
|
|
5765
|
-
isFixedPosition:
|
|
5765
|
+
isFixedPosition: _,
|
|
5766
5766
|
controlHeight: S
|
|
5767
5767
|
});
|
|
5768
5768
|
p(w.maxHeight), C(w.placement), u == null || u(w.placement);
|
|
@@ -5865,7 +5865,7 @@ var R4 = function(t) {
|
|
|
5865
5865
|
l.current = A, S();
|
|
5866
5866
|
}, [S]);
|
|
5867
5867
|
if (!n && a !== "fixed" || !b) return null;
|
|
5868
|
-
var
|
|
5868
|
+
var _ = xe("div", Ie({
|
|
5869
5869
|
ref: y
|
|
5870
5870
|
}, mt(ye(ye({}, t), {}, {
|
|
5871
5871
|
offset: b.offset,
|
|
@@ -5876,7 +5876,7 @@ var R4 = function(t) {
|
|
|
5876
5876
|
}), o), i);
|
|
5877
5877
|
return xe(k4.Provider, {
|
|
5878
5878
|
value: g
|
|
5879
|
-
}, n ? /* @__PURE__ */ fa(
|
|
5879
|
+
}, n ? /* @__PURE__ */ fa(_, n) : _);
|
|
5880
5880
|
}, Cb = function(t) {
|
|
5881
5881
|
var n = t.isDisabled, i = t.isRtl;
|
|
5882
5882
|
return {
|
|
@@ -6443,27 +6443,27 @@ var xC = process.env.NODE_ENV === "production" ? {
|
|
|
6443
6443
|
return "".concat(i).concat(n ? " for search term " + n : "", ".");
|
|
6444
6444
|
}
|
|
6445
6445
|
}, SC = function(t) {
|
|
6446
|
-
var n = t.ariaSelection, i = t.focusedOption, r = t.focusedValue, o = t.focusableOptions, s = t.isFocused, a = t.selectValue, l = t.selectProps, c = t.id, u = t.isAppleDevice, d = l.ariaLiveMessages, f = l.getOptionLabel, h = l.inputValue, g = l.isMulti, p = l.isOptionDisabled, m = l.isSearchable, b = l.menuIsOpen, v = l.options, C = l.screenReaderStatus, S = l.tabSelectsValue, y = l.isLoading,
|
|
6446
|
+
var n = t.ariaSelection, i = t.focusedOption, r = t.focusedValue, o = t.focusableOptions, s = t.isFocused, a = t.selectValue, l = t.selectProps, c = t.id, u = t.isAppleDevice, d = l.ariaLiveMessages, f = l.getOptionLabel, h = l.inputValue, g = l.isMulti, p = l.isOptionDisabled, m = l.isSearchable, b = l.menuIsOpen, v = l.options, C = l.screenReaderStatus, S = l.tabSelectsValue, y = l.isLoading, _ = l["aria-label"], A = l["aria-live"], w = Fe(function() {
|
|
6447
6447
|
return ye(ye({}, wC), d || {});
|
|
6448
6448
|
}, [d]), I = Fe(function() {
|
|
6449
|
-
var
|
|
6449
|
+
var E = "";
|
|
6450
6450
|
if (n && w.onChange) {
|
|
6451
|
-
var L = n.option, F = n.options,
|
|
6451
|
+
var L = n.option, F = n.options, P = n.removedValue, R = n.removedValues, T = n.value, $ = function(ge) {
|
|
6452
6452
|
return Array.isArray(ge) ? null : ge;
|
|
6453
|
-
},
|
|
6453
|
+
}, z = P || L || $(T), G = z ? f(z) : "", U = F || R || void 0, ce = U ? U.map(f) : [], pe = ye({
|
|
6454
6454
|
// multiSelected items are usually items that have already been selected
|
|
6455
6455
|
// or set by the user as a default value so we assume they are not disabled
|
|
6456
|
-
isDisabled:
|
|
6457
|
-
label:
|
|
6456
|
+
isDisabled: z && p(z, a),
|
|
6457
|
+
label: G,
|
|
6458
6458
|
labels: ce
|
|
6459
6459
|
}, n);
|
|
6460
|
-
|
|
6460
|
+
E = w.onChange(pe);
|
|
6461
6461
|
}
|
|
6462
|
-
return
|
|
6462
|
+
return E;
|
|
6463
6463
|
}, [n, w, p, a, f]), M = Fe(function() {
|
|
6464
|
-
var
|
|
6464
|
+
var E = "", L = i || r, F = !!(i && a && a.includes(i));
|
|
6465
6465
|
if (L && w.onFocus) {
|
|
6466
|
-
var
|
|
6466
|
+
var P = {
|
|
6467
6467
|
focused: L,
|
|
6468
6468
|
label: f(L),
|
|
6469
6469
|
isDisabled: p(L, a),
|
|
@@ -6473,27 +6473,27 @@ var xC = process.env.NODE_ENV === "production" ? {
|
|
|
6473
6473
|
selectValue: a,
|
|
6474
6474
|
isAppleDevice: u
|
|
6475
6475
|
};
|
|
6476
|
-
|
|
6476
|
+
E = w.onFocus(P);
|
|
6477
6477
|
}
|
|
6478
|
-
return
|
|
6478
|
+
return E;
|
|
6479
6479
|
}, [i, r, f, p, w, o, a, u]), k = Fe(function() {
|
|
6480
|
-
var
|
|
6480
|
+
var E = "";
|
|
6481
6481
|
if (b && v.length && !y && w.onFilter) {
|
|
6482
6482
|
var L = C({
|
|
6483
6483
|
count: o.length
|
|
6484
6484
|
});
|
|
6485
|
-
|
|
6485
|
+
E = w.onFilter({
|
|
6486
6486
|
inputValue: h,
|
|
6487
6487
|
resultsMessage: L
|
|
6488
6488
|
});
|
|
6489
6489
|
}
|
|
6490
|
-
return
|
|
6490
|
+
return E;
|
|
6491
6491
|
}, [o, h, b, w, v, C, y]), O = (n == null ? void 0 : n.action) === "initial-input-focus", H = Fe(function() {
|
|
6492
|
-
var
|
|
6492
|
+
var E = "";
|
|
6493
6493
|
if (w.guidance) {
|
|
6494
6494
|
var L = r ? "value" : b ? "menu" : "input";
|
|
6495
|
-
|
|
6496
|
-
"aria-label":
|
|
6495
|
+
E = w.guidance({
|
|
6496
|
+
"aria-label": _,
|
|
6497
6497
|
context: L,
|
|
6498
6498
|
isDisabled: i && p(i, a),
|
|
6499
6499
|
isMulti: g,
|
|
@@ -6502,8 +6502,8 @@ var xC = process.env.NODE_ENV === "production" ? {
|
|
|
6502
6502
|
isInitialFocus: O
|
|
6503
6503
|
});
|
|
6504
6504
|
}
|
|
6505
|
-
return
|
|
6506
|
-
}, [
|
|
6505
|
+
return E;
|
|
6506
|
+
}, [_, i, r, g, p, m, b, w, a, S, O]), D = xe(gi, null, xe("span", {
|
|
6507
6507
|
id: "aria-selection"
|
|
6508
6508
|
}, I), xe("span", {
|
|
6509
6509
|
id: "aria-focused"
|
|
@@ -6833,8 +6833,8 @@ var PC = function(t) {
|
|
|
6833
6833
|
function LC(e) {
|
|
6834
6834
|
var t = e.isEnabled, n = e.onBottomArrive, i = e.onBottomLeave, r = e.onTopArrive, o = e.onTopLeave, s = be(!1), a = be(!1), l = be(0), c = be(null), u = Ae(function(m, b) {
|
|
6835
6835
|
if (c.current !== null) {
|
|
6836
|
-
var v = c.current, C = v.scrollTop, S = v.scrollHeight, y = v.clientHeight,
|
|
6837
|
-
w > b && s.current && (i && i(m), s.current = !1), A && a.current && (o && o(m), a.current = !1), A && b > w ? (n && !s.current && n(m),
|
|
6836
|
+
var v = c.current, C = v.scrollTop, S = v.scrollHeight, y = v.clientHeight, _ = c.current, A = b > 0, w = S - y - C, I = !1;
|
|
6837
|
+
w > b && s.current && (i && i(m), s.current = !1), A && a.current && (o && o(m), a.current = !1), A && b > w ? (n && !s.current && n(m), _.scrollTop = S, I = !0, s.current = !0) : !A && -b > C && (r && !a.current && r(m), _.scrollTop = 0, I = !0, a.current = !0), I && PC(m);
|
|
6838
6838
|
}
|
|
6839
6839
|
}, [n, i, r, o]), d = Ae(function(m) {
|
|
6840
6840
|
u(m, m.deltaY);
|
|
@@ -7415,7 +7415,7 @@ var Y4 = function(t) {
|
|
|
7415
7415
|
}, r.onValueInputFocus = function(l) {
|
|
7416
7416
|
l.preventDefault(), l.stopPropagation(), r.focus();
|
|
7417
7417
|
}, r.onKeyDown = function(l) {
|
|
7418
|
-
var c = r.props, u = c.isMulti, d = c.backspaceRemovesValue, f = c.escapeClearsValue, h = c.inputValue, g = c.isClearable, p = c.isDisabled, m = c.menuIsOpen, b = c.onKeyDown, v = c.tabSelectsValue, C = c.openMenuOnFocus, S = r.state, y = S.focusedOption,
|
|
7418
|
+
var c = r.props, u = c.isMulti, d = c.backspaceRemovesValue, f = c.escapeClearsValue, h = c.inputValue, g = c.isClearable, p = c.isDisabled, m = c.menuIsOpen, b = c.onKeyDown, v = c.tabSelectsValue, C = c.openMenuOnFocus, S = r.state, y = S.focusedOption, _ = S.focusedValue, A = S.selectValue;
|
|
7419
7419
|
if (!p && !(typeof b == "function" && (b(l), l.defaultPrevented))) {
|
|
7420
7420
|
switch (r.blockOptionHover = !0, l.key) {
|
|
7421
7421
|
case "ArrowLeft":
|
|
@@ -7429,8 +7429,8 @@ var Y4 = function(t) {
|
|
|
7429
7429
|
case "Delete":
|
|
7430
7430
|
case "Backspace":
|
|
7431
7431
|
if (h) return;
|
|
7432
|
-
if (
|
|
7433
|
-
r.removeValue(
|
|
7432
|
+
if (_)
|
|
7433
|
+
r.removeValue(_);
|
|
7434
7434
|
else {
|
|
7435
7435
|
if (!d) return;
|
|
7436
7436
|
u ? r.popValue() : g && r.clearValue();
|
|
@@ -7792,12 +7792,12 @@ var Y4 = function(t) {
|
|
|
7792
7792
|
}, {
|
|
7793
7793
|
key: "renderPlaceholderOrValue",
|
|
7794
7794
|
value: function() {
|
|
7795
|
-
var r = this, o = this.getComponents(), s = o.MultiValue, a = o.MultiValueContainer, l = o.MultiValueLabel, c = o.MultiValueRemove, u = o.SingleValue, d = o.Placeholder, f = this.commonProps, h = this.props, g = h.controlShouldRenderValue, p = h.isDisabled, m = h.isMulti, b = h.inputValue, v = h.placeholder, C = this.state, S = C.selectValue, y = C.focusedValue,
|
|
7795
|
+
var r = this, o = this.getComponents(), s = o.MultiValue, a = o.MultiValueContainer, l = o.MultiValueLabel, c = o.MultiValueRemove, u = o.SingleValue, d = o.Placeholder, f = this.commonProps, h = this.props, g = h.controlShouldRenderValue, p = h.isDisabled, m = h.isMulti, b = h.inputValue, v = h.placeholder, C = this.state, S = C.selectValue, y = C.focusedValue, _ = C.isFocused;
|
|
7796
7796
|
if (!this.hasValue() || !g)
|
|
7797
7797
|
return b ? null : /* @__PURE__ */ j.createElement(d, Ie({}, f, {
|
|
7798
7798
|
key: "placeholder",
|
|
7799
7799
|
isDisabled: p,
|
|
7800
|
-
isFocused:
|
|
7800
|
+
isFocused: _,
|
|
7801
7801
|
innerProps: {
|
|
7802
7802
|
id: this.getElementId("placeholder")
|
|
7803
7803
|
}
|
|
@@ -7897,10 +7897,10 @@ var Y4 = function(t) {
|
|
|
7897
7897
|
}, {
|
|
7898
7898
|
key: "renderMenu",
|
|
7899
7899
|
value: function() {
|
|
7900
|
-
var r = this, o = this.getComponents(), s = o.Group, a = o.GroupHeading, l = o.Menu, c = o.MenuList, u = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, h = o.Option, g = this.commonProps, p = this.state.focusedOption, m = this.props, b = m.captureMenuScroll, v = m.inputValue, C = m.isLoading, S = m.loadingMessage, y = m.minMenuHeight,
|
|
7900
|
+
var r = this, o = this.getComponents(), s = o.Group, a = o.GroupHeading, l = o.Menu, c = o.MenuList, u = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, h = o.Option, g = this.commonProps, p = this.state.focusedOption, m = this.props, b = m.captureMenuScroll, v = m.inputValue, C = m.isLoading, S = m.loadingMessage, y = m.minMenuHeight, _ = m.maxMenuHeight, A = m.menuIsOpen, w = m.menuPlacement, I = m.menuPosition, M = m.menuPortalTarget, k = m.menuShouldBlockScroll, O = m.menuShouldScrollIntoView, H = m.noOptionsMessage, D = m.onMenuScrollToTop, E = m.onMenuScrollToBottom;
|
|
7901
7901
|
if (!A) return null;
|
|
7902
|
-
var L = function(
|
|
7903
|
-
var ce =
|
|
7902
|
+
var L = function(G, U) {
|
|
7903
|
+
var ce = G.type, pe = G.data, Be = G.isDisabled, ge = G.isSelected, me = G.label, Me = G.value, ue = p === pe, Z = Be ? void 0 : function() {
|
|
7904
7904
|
return r.onOptionHover(pe);
|
|
7905
7905
|
}, He = Be ? void 0 : function() {
|
|
7906
7906
|
return r.selectOption(pe);
|
|
@@ -7925,51 +7925,51 @@ var Y4 = function(t) {
|
|
|
7925
7925
|
value: Me,
|
|
7926
7926
|
isFocused: ue,
|
|
7927
7927
|
innerRef: ue ? r.getFocusedOptionRef : void 0
|
|
7928
|
-
}), r.formatOptionLabel(
|
|
7928
|
+
}), r.formatOptionLabel(G.data, "menu"));
|
|
7929
7929
|
}, F;
|
|
7930
7930
|
if (this.hasOptions())
|
|
7931
|
-
F = this.getCategorizedOptions().map(function(
|
|
7932
|
-
if (
|
|
7933
|
-
var
|
|
7931
|
+
F = this.getCategorizedOptions().map(function(z) {
|
|
7932
|
+
if (z.type === "group") {
|
|
7933
|
+
var G = z.data, U = z.options, ce = z.index, pe = "".concat(r.getElementId("group"), "-").concat(ce), Be = "".concat(pe, "-heading");
|
|
7934
7934
|
return /* @__PURE__ */ j.createElement(s, Ie({}, g, {
|
|
7935
7935
|
key: pe,
|
|
7936
|
-
data:
|
|
7936
|
+
data: G,
|
|
7937
7937
|
options: U,
|
|
7938
7938
|
Heading: a,
|
|
7939
7939
|
headingProps: {
|
|
7940
7940
|
id: Be,
|
|
7941
|
-
data:
|
|
7941
|
+
data: z.data
|
|
7942
7942
|
},
|
|
7943
|
-
label: r.formatGroupLabel(
|
|
7944
|
-
}),
|
|
7943
|
+
label: r.formatGroupLabel(z.data)
|
|
7944
|
+
}), z.options.map(function(ge) {
|
|
7945
7945
|
return L(ge, "".concat(ce, "-").concat(ge.index));
|
|
7946
7946
|
}));
|
|
7947
|
-
} else if (
|
|
7948
|
-
return L(
|
|
7947
|
+
} else if (z.type === "option")
|
|
7948
|
+
return L(z, "".concat(z.index));
|
|
7949
7949
|
});
|
|
7950
7950
|
else if (C) {
|
|
7951
|
-
var
|
|
7951
|
+
var P = S({
|
|
7952
7952
|
inputValue: v
|
|
7953
7953
|
});
|
|
7954
|
-
if (
|
|
7955
|
-
F = /* @__PURE__ */ j.createElement(d, g,
|
|
7954
|
+
if (P === null) return null;
|
|
7955
|
+
F = /* @__PURE__ */ j.createElement(d, g, P);
|
|
7956
7956
|
} else {
|
|
7957
|
-
var
|
|
7957
|
+
var R = H({
|
|
7958
7958
|
inputValue: v
|
|
7959
7959
|
});
|
|
7960
|
-
if (
|
|
7961
|
-
F = /* @__PURE__ */ j.createElement(f, g,
|
|
7960
|
+
if (R === null) return null;
|
|
7961
|
+
F = /* @__PURE__ */ j.createElement(f, g, R);
|
|
7962
7962
|
}
|
|
7963
|
-
var
|
|
7963
|
+
var T = {
|
|
7964
7964
|
minMenuHeight: y,
|
|
7965
|
-
maxMenuHeight:
|
|
7965
|
+
maxMenuHeight: _,
|
|
7966
7966
|
menuPlacement: w,
|
|
7967
7967
|
menuPosition: I,
|
|
7968
7968
|
menuShouldScrollIntoView: O
|
|
7969
|
-
},
|
|
7970
|
-
var
|
|
7971
|
-
return /* @__PURE__ */ j.createElement(l, Ie({}, g,
|
|
7972
|
-
innerRef:
|
|
7969
|
+
}, $ = /* @__PURE__ */ j.createElement(ab, Ie({}, g, T), function(z) {
|
|
7970
|
+
var G = z.ref, U = z.placerProps, ce = U.placement, pe = U.maxHeight;
|
|
7971
|
+
return /* @__PURE__ */ j.createElement(l, Ie({}, g, T, {
|
|
7972
|
+
innerRef: G,
|
|
7973
7973
|
innerProps: {
|
|
7974
7974
|
onMouseDown: r.onMenuMouseDown,
|
|
7975
7975
|
onMouseMove: r.onMenuMouseMove
|
|
@@ -7979,7 +7979,7 @@ var Y4 = function(t) {
|
|
|
7979
7979
|
}), /* @__PURE__ */ j.createElement(TC, {
|
|
7980
7980
|
captureEnabled: b,
|
|
7981
7981
|
onTopArrive: D,
|
|
7982
|
-
onBottomArrive:
|
|
7982
|
+
onBottomArrive: E,
|
|
7983
7983
|
lockEnabled: k
|
|
7984
7984
|
}, function(Be) {
|
|
7985
7985
|
return /* @__PURE__ */ j.createElement(c, Ie({}, g, {
|
|
@@ -8002,7 +8002,7 @@ var Y4 = function(t) {
|
|
|
8002
8002
|
controlElement: this.controlRef,
|
|
8003
8003
|
menuPlacement: w,
|
|
8004
8004
|
menuPosition: I
|
|
8005
|
-
}),
|
|
8005
|
+
}), $) : $;
|
|
8006
8006
|
}
|
|
8007
8007
|
}, {
|
|
8008
8008
|
key: "renderFormField",
|
|
@@ -8095,13 +8095,13 @@ var Y4 = function(t) {
|
|
|
8095
8095
|
value: function(r, o) {
|
|
8096
8096
|
var s = o.prevProps, a = o.clearFocusValueOnUpdate, l = o.inputIsHiddenAfterUpdate, c = o.ariaSelection, u = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, h = r.options, g = r.value, p = r.menuIsOpen, m = r.inputValue, b = r.isMulti, v = Fs(g), C = {};
|
|
8097
8097
|
if (s && (g !== s.value || h !== s.options || p !== s.menuIsOpen || m !== s.inputValue)) {
|
|
8098
|
-
var S = p ? tv(r, v) : [], y = p ? Sd(ls(r, v), "".concat(f, "-option")) : [],
|
|
8098
|
+
var S = p ? tv(r, v) : [], y = p ? Sd(ls(r, v), "".concat(f, "-option")) : [], _ = a ? nv(o, v) : null, A = iv(o, S), w = i0(y, A);
|
|
8099
8099
|
C = {
|
|
8100
8100
|
selectValue: v,
|
|
8101
8101
|
focusedOption: A,
|
|
8102
8102
|
focusedOptionId: w,
|
|
8103
8103
|
focusableOptionsWithIds: y,
|
|
8104
|
-
focusedValue:
|
|
8104
|
+
focusedValue: _,
|
|
8105
8105
|
clearFocusValueOnUpdate: !1
|
|
8106
8106
|
};
|
|
8107
8107
|
}
|
|
@@ -8150,7 +8150,7 @@ var ov = /* @__PURE__ */ Fr(function(e, t) {
|
|
|
8150
8150
|
}
|
|
8151
8151
|
};
|
|
8152
8152
|
function av(e) {
|
|
8153
|
-
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, i = e.createOptionPosition, r = i === void 0 ? "last" : i, o = e.formatCreateLabel, s = o === void 0 ? r0.formatCreateLabel : o, a = e.isValidNewOption, l = a === void 0 ? r0.isValidNewOption : a, c = e.getNewOptionData, u = c === void 0 ? r0.getNewOptionData : c, d = e.onCreateOption, f = e.options, h = f === void 0 ? [] : f, g = e.onChange, p = Tn(e, sv), m = p.getOptionValue, b = m === void 0 ? $4 : m, v = p.getOptionLabel, C = v === void 0 ? H4 : v, S = p.inputValue, y = p.isLoading,
|
|
8153
|
+
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, i = e.createOptionPosition, r = i === void 0 ? "last" : i, o = e.formatCreateLabel, s = o === void 0 ? r0.formatCreateLabel : o, a = e.isValidNewOption, l = a === void 0 ? r0.isValidNewOption : a, c = e.getNewOptionData, u = c === void 0 ? r0.getNewOptionData : c, d = e.onCreateOption, f = e.options, h = f === void 0 ? [] : f, g = e.onChange, p = Tn(e, sv), m = p.getOptionValue, b = m === void 0 ? $4 : m, v = p.getOptionLabel, C = v === void 0 ? H4 : v, S = p.inputValue, y = p.isLoading, _ = p.isMulti, A = p.value, w = p.name, I = Fe(function() {
|
|
8154
8154
|
return l(S, Fs(A), h, {
|
|
8155
8155
|
getOptionValue: b,
|
|
8156
8156
|
getOptionLabel: C
|
|
@@ -8164,17 +8164,17 @@ function av(e) {
|
|
|
8164
8164
|
if (D[D.length - 1] === I) {
|
|
8165
8165
|
if (d) d(S);
|
|
8166
8166
|
else {
|
|
8167
|
-
var
|
|
8167
|
+
var E = u(S, S), L = {
|
|
8168
8168
|
action: "create-option",
|
|
8169
8169
|
name: w,
|
|
8170
|
-
option:
|
|
8170
|
+
option: E
|
|
8171
8171
|
};
|
|
8172
|
-
g(io(
|
|
8172
|
+
g(io(_, [].concat(Cr(Fs(A)), [E]), E), L);
|
|
8173
8173
|
}
|
|
8174
8174
|
return;
|
|
8175
8175
|
}
|
|
8176
8176
|
g(O, H);
|
|
8177
|
-
}, [u, S,
|
|
8177
|
+
}, [u, S, _, w, I, d, g, A]);
|
|
8178
8178
|
return ye(ye({}, p), {}, {
|
|
8179
8179
|
options: M,
|
|
8180
8180
|
onChange: k
|
|
@@ -8194,67 +8194,68 @@ const Ds = ({
|
|
|
8194
8194
|
handleChange: r,
|
|
8195
8195
|
className: o = "",
|
|
8196
8196
|
creatable: s = !1,
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8197
|
+
creatableLabel: a,
|
|
8198
|
+
disabled: l,
|
|
8199
|
+
isMulti: c = !0,
|
|
8200
|
+
customStyles: u,
|
|
8201
|
+
menuPosition: d = "fixed",
|
|
8202
|
+
alwaysShowPlaceholder: f = !1,
|
|
8203
|
+
isClearable: h = !1,
|
|
8204
|
+
selectInputClassname: g = "",
|
|
8205
|
+
closeMenuOnSelect: p = !0,
|
|
8206
|
+
customOptionRenderer: m,
|
|
8207
|
+
menuPortalTarget: b,
|
|
8208
|
+
onInputChange: v,
|
|
8209
|
+
isLoading: C = !1,
|
|
8210
|
+
noOptionsMessage: S,
|
|
8211
|
+
includeApply: y,
|
|
8212
|
+
onApply: _
|
|
8212
8213
|
}) => {
|
|
8213
|
-
const
|
|
8214
|
+
const A = s ? cv : J4, [w, I] = W(!1), M = be(null);
|
|
8214
8215
|
fe(() => {
|
|
8215
|
-
if (
|
|
8216
|
-
const
|
|
8217
|
-
var
|
|
8218
|
-
(
|
|
8216
|
+
if (p) return;
|
|
8217
|
+
const R = (T) => {
|
|
8218
|
+
var $;
|
|
8219
|
+
($ = M.current) != null && $.contains(T.target) ? I((z) => !z) : I(!1);
|
|
8219
8220
|
};
|
|
8220
|
-
return document.addEventListener("mousedown",
|
|
8221
|
-
}, [
|
|
8222
|
-
const
|
|
8223
|
-
!
|
|
8224
|
-
|
|
8225
|
-
] }),
|
|
8226
|
-
const { data:
|
|
8227
|
-
if (
|
|
8228
|
-
const z =
|
|
8229
|
-
return /* @__PURE__ */ x(hn.Option, { ...
|
|
8230
|
-
}
|
|
8231
|
-
return
|
|
8232
|
-
/* @__PURE__ */ x("input", { type: "checkbox", checked:
|
|
8233
|
-
|
|
8234
|
-
/* @__PURE__ */ x("span", { children:
|
|
8235
|
-
] }) }) : /* @__PURE__ */ x(hn.Option, { ...
|
|
8236
|
-
|
|
8237
|
-
/* @__PURE__ */ x("span", { children:
|
|
8221
|
+
return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
|
|
8222
|
+
}, [p]);
|
|
8223
|
+
const k = [...i, ...n.filter((R) => !i.some((T) => T.value === R.value))], O = (R) => /* @__PURE__ */ N(hn.Control, { ...R, children: [
|
|
8224
|
+
!R.getValue().length && /* @__PURE__ */ x(hn.Placeholder, { ...R, children: R.selectProps.placeholder }),
|
|
8225
|
+
R.children
|
|
8226
|
+
] }), H = (R) => {
|
|
8227
|
+
const { data: T, isSelected: $ } = R;
|
|
8228
|
+
if (m) {
|
|
8229
|
+
const z = m;
|
|
8230
|
+
return /* @__PURE__ */ x(hn.Option, { ...R, children: /* @__PURE__ */ x(z, { data: T, isSelected: $ }) });
|
|
8231
|
+
}
|
|
8232
|
+
return y ? /* @__PURE__ */ x(hn.Option, { ...R, children: /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
|
|
8233
|
+
/* @__PURE__ */ x("input", { type: "checkbox", checked: $, readOnly: !0, style: { accentColor: "var(--brand-orange)", marginRight: 8 } }),
|
|
8234
|
+
T.icon && /* @__PURE__ */ x("span", { className: "", children: T.icon }),
|
|
8235
|
+
/* @__PURE__ */ x("span", { children: T.label })
|
|
8236
|
+
] }) }) : /* @__PURE__ */ x(hn.Option, { ...R, children: /* @__PURE__ */ N("div", { className: "flex items-center flex-1 gap-2", children: [
|
|
8237
|
+
T.icon && /* @__PURE__ */ x("span", { className: "option-icon", children: T.icon }),
|
|
8238
|
+
/* @__PURE__ */ x("span", { children: T.label })
|
|
8238
8239
|
] }) });
|
|
8239
|
-
},
|
|
8240
|
-
const { data:
|
|
8241
|
-
if (
|
|
8242
|
-
const
|
|
8243
|
-
return /* @__PURE__ */ x(hn.SingleValue, { ...
|
|
8244
|
-
}
|
|
8245
|
-
return /* @__PURE__ */ x(hn.SingleValue, { ...
|
|
8246
|
-
},
|
|
8247
|
-
const { data:
|
|
8248
|
-
return /* @__PURE__ */ x(hn.MultiValue, { ...
|
|
8249
|
-
},
|
|
8250
|
-
const { children:
|
|
8251
|
-
return /* @__PURE__ */ N(hn.Menu, { ...
|
|
8252
|
-
|
|
8253
|
-
|
|
8240
|
+
}, D = (R) => {
|
|
8241
|
+
const { data: T } = R;
|
|
8242
|
+
if (m) {
|
|
8243
|
+
const $ = m;
|
|
8244
|
+
return /* @__PURE__ */ x(hn.SingleValue, { ...R, children: /* @__PURE__ */ x($, { data: T }) });
|
|
8245
|
+
}
|
|
8246
|
+
return /* @__PURE__ */ x(hn.SingleValue, { ...R, children: /* @__PURE__ */ x("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ x("span", { children: T.label }) }) });
|
|
8247
|
+
}, E = (R) => {
|
|
8248
|
+
const { data: T } = R;
|
|
8249
|
+
return /* @__PURE__ */ x(hn.MultiValue, { ...R, children: /* @__PURE__ */ x("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ x("span", { children: T.label }) }) });
|
|
8250
|
+
}, L = (R) => {
|
|
8251
|
+
const { children: T } = R;
|
|
8252
|
+
return /* @__PURE__ */ N(hn.Menu, { ...R, children: [
|
|
8253
|
+
T,
|
|
8254
|
+
y && /* @__PURE__ */ x("div", { style: { padding: "8px" }, children: /* @__PURE__ */ x(
|
|
8254
8255
|
"button",
|
|
8255
8256
|
{
|
|
8256
|
-
onClick: (
|
|
8257
|
-
|
|
8257
|
+
onClick: ($) => {
|
|
8258
|
+
$.stopPropagation(), _ == null || _(), I(!1);
|
|
8258
8259
|
},
|
|
8259
8260
|
style: {
|
|
8260
8261
|
width: "100%",
|
|
@@ -8265,81 +8266,81 @@ const Ds = ({
|
|
|
8265
8266
|
cursor: "pointer",
|
|
8266
8267
|
borderRadius: "4px"
|
|
8267
8268
|
},
|
|
8268
|
-
onMouseEnter: (
|
|
8269
|
-
onMouseLeave: (
|
|
8269
|
+
onMouseEnter: ($) => $.currentTarget.style.opacity = "0.9",
|
|
8270
|
+
onMouseLeave: ($) => $.currentTarget.style.opacity = "1",
|
|
8270
8271
|
children: "Apply"
|
|
8271
8272
|
}
|
|
8272
8273
|
) })
|
|
8273
8274
|
] });
|
|
8274
|
-
},
|
|
8275
|
-
Control:
|
|
8276
|
-
SingleValue: (
|
|
8277
|
-
Option:
|
|
8278
|
-
MultiValue:
|
|
8279
|
-
DropdownIndicator:
|
|
8280
|
-
Menu:
|
|
8275
|
+
}, F = (R) => /* @__PURE__ */ x(hn.DropdownIndicator, { ...R }), P = () => f ? {
|
|
8276
|
+
Control: O,
|
|
8277
|
+
SingleValue: (R) => R.selectProps.menuIsOpen ? /* @__PURE__ */ x(D, { ...R }) : /* @__PURE__ */ x("div", { style: { position: "absolute", left: "10px" }, children: t }),
|
|
8278
|
+
Option: H,
|
|
8279
|
+
MultiValue: E,
|
|
8280
|
+
DropdownIndicator: F,
|
|
8281
|
+
Menu: L
|
|
8281
8282
|
} : {
|
|
8282
|
-
Option:
|
|
8283
|
-
SingleValue:
|
|
8284
|
-
MultiValue:
|
|
8285
|
-
DropdownIndicator:
|
|
8286
|
-
Menu:
|
|
8283
|
+
Option: H,
|
|
8284
|
+
SingleValue: D,
|
|
8285
|
+
MultiValue: E,
|
|
8286
|
+
DropdownIndicator: F,
|
|
8287
|
+
Menu: L
|
|
8287
8288
|
};
|
|
8288
|
-
return /* @__PURE__ */ N("div", { ref:
|
|
8289
|
+
return /* @__PURE__ */ N("div", { ref: M, className: `${o} flex flex-col gap-1`, children: [
|
|
8289
8290
|
e && /* @__PURE__ */ x("label", { className: "block text-sm font-medium", style: { color: "var(--text-color)" }, children: e }),
|
|
8290
8291
|
/* @__PURE__ */ x(
|
|
8291
|
-
|
|
8292
|
+
A,
|
|
8292
8293
|
{
|
|
8293
|
-
isMulti:
|
|
8294
|
-
isClearable:
|
|
8294
|
+
isMulti: c,
|
|
8295
|
+
isClearable: h,
|
|
8295
8296
|
value: i,
|
|
8296
8297
|
onChange: r,
|
|
8297
|
-
options:
|
|
8298
|
+
options: k,
|
|
8298
8299
|
placeholder: t,
|
|
8299
|
-
isDisabled:
|
|
8300
|
-
className: `${
|
|
8300
|
+
isDisabled: l,
|
|
8301
|
+
className: `${g} react-select-container w-full text-sm`,
|
|
8301
8302
|
classNamePrefix: "react-select",
|
|
8302
|
-
menuPosition:
|
|
8303
|
-
menuPortalTarget:
|
|
8304
|
-
components:
|
|
8305
|
-
...!
|
|
8306
|
-
onInputChange:
|
|
8307
|
-
isLoading:
|
|
8308
|
-
noOptionsMessage:
|
|
8303
|
+
menuPosition: d,
|
|
8304
|
+
menuPortalTarget: b,
|
|
8305
|
+
components: P(),
|
|
8306
|
+
...!p && { menuIsOpen: w },
|
|
8307
|
+
onInputChange: v,
|
|
8308
|
+
isLoading: C,
|
|
8309
|
+
noOptionsMessage: S,
|
|
8309
8310
|
styles: {
|
|
8310
|
-
control: (
|
|
8311
|
-
...
|
|
8312
|
-
borderColor:
|
|
8311
|
+
control: (R, T) => ({
|
|
8312
|
+
...R,
|
|
8313
|
+
borderColor: T.isFocused ? "var(--brand-orange)" : "var(--border-color)",
|
|
8313
8314
|
borderRadius: "0.25rem",
|
|
8314
8315
|
cursor: "pointer",
|
|
8315
8316
|
backgroundColor: "var(--bg-color)",
|
|
8316
8317
|
color: "var(--text-color)",
|
|
8317
|
-
boxShadow:
|
|
8318
|
+
boxShadow: T.isFocused ? "0 0 0 1px var(--brand-orange)" : "none",
|
|
8318
8319
|
":hover": {
|
|
8319
8320
|
borderColor: "var(--brand-orange)"
|
|
8320
8321
|
}
|
|
8321
8322
|
}),
|
|
8322
|
-
input: (
|
|
8323
|
-
...
|
|
8323
|
+
input: (R) => ({
|
|
8324
|
+
...R,
|
|
8324
8325
|
color: "var(--text-color)",
|
|
8325
8326
|
boxShadow: "none",
|
|
8326
8327
|
border: "none"
|
|
8327
8328
|
}),
|
|
8328
|
-
singleValue: (
|
|
8329
|
-
...
|
|
8329
|
+
singleValue: (R) => ({
|
|
8330
|
+
...R,
|
|
8330
8331
|
color: "var(--text-color)"
|
|
8331
8332
|
}),
|
|
8332
|
-
multiValue: (
|
|
8333
|
-
...
|
|
8333
|
+
multiValue: (R) => ({
|
|
8334
|
+
...R,
|
|
8334
8335
|
backgroundColor: "var(--brand-light)",
|
|
8335
8336
|
borderRadius: "0.25rem"
|
|
8336
8337
|
}),
|
|
8337
|
-
multiValueLabel: (
|
|
8338
|
-
...
|
|
8338
|
+
multiValueLabel: (R) => ({
|
|
8339
|
+
...R,
|
|
8339
8340
|
color: "var(--brand-dark)"
|
|
8340
8341
|
}),
|
|
8341
|
-
multiValueRemove: (
|
|
8342
|
-
...
|
|
8342
|
+
multiValueRemove: (R) => ({
|
|
8343
|
+
...R,
|
|
8343
8344
|
color: "var(--brand-dark)",
|
|
8344
8345
|
cursor: "pointer",
|
|
8345
8346
|
":hover": {
|
|
@@ -8347,52 +8348,55 @@ const Ds = ({
|
|
|
8347
8348
|
color: "white"
|
|
8348
8349
|
}
|
|
8349
8350
|
}),
|
|
8350
|
-
placeholder: (
|
|
8351
|
-
...
|
|
8351
|
+
placeholder: (R) => ({
|
|
8352
|
+
...R,
|
|
8352
8353
|
color: "var(--secondary-text-color)"
|
|
8353
8354
|
}),
|
|
8354
|
-
option: (
|
|
8355
|
-
...
|
|
8356
|
-
backgroundColor:
|
|
8357
|
-
color:
|
|
8355
|
+
option: (R, T) => ({
|
|
8356
|
+
...R,
|
|
8357
|
+
backgroundColor: T.isSelected ? "var(--brand-orange)" : T.isFocused ? "var(--hover-bg-color)" : "var(--bg-color)",
|
|
8358
|
+
color: T.isSelected ? "white" : "var(--text-color)",
|
|
8358
8359
|
cursor: "pointer",
|
|
8359
8360
|
":active": {
|
|
8360
8361
|
backgroundColor: "var(--brand-orange)"
|
|
8361
8362
|
}
|
|
8362
8363
|
}),
|
|
8363
|
-
menu: (
|
|
8364
|
-
...
|
|
8364
|
+
menu: (R) => ({
|
|
8365
|
+
...R,
|
|
8365
8366
|
backgroundColor: "var(--bg-color)",
|
|
8366
8367
|
color: "var(--text-color)",
|
|
8367
8368
|
border: "1px solid var(--border-color)",
|
|
8368
8369
|
zIndex: 9999
|
|
8369
8370
|
}),
|
|
8370
|
-
dropdownIndicator: (
|
|
8371
|
-
...
|
|
8371
|
+
dropdownIndicator: (R) => ({
|
|
8372
|
+
...R,
|
|
8372
8373
|
cursor: "pointer",
|
|
8373
8374
|
color: "var(--secondary-text-color)",
|
|
8374
8375
|
":hover": {
|
|
8375
8376
|
color: "var(--brand-orange)"
|
|
8376
8377
|
}
|
|
8377
8378
|
}),
|
|
8378
|
-
clearIndicator: (
|
|
8379
|
-
...
|
|
8379
|
+
clearIndicator: (R) => ({
|
|
8380
|
+
...R,
|
|
8380
8381
|
cursor: "pointer",
|
|
8381
8382
|
color: "var(--secondary-text-color)",
|
|
8382
8383
|
":hover": {
|
|
8383
8384
|
color: "var(--brand-orange)"
|
|
8384
8385
|
}
|
|
8385
8386
|
}),
|
|
8386
|
-
indicatorSeparator: (
|
|
8387
|
-
...
|
|
8387
|
+
indicatorSeparator: (R) => ({
|
|
8388
|
+
...R,
|
|
8388
8389
|
backgroundColor: "var(--border-color)"
|
|
8389
8390
|
}),
|
|
8390
|
-
...
|
|
8391
|
+
...u
|
|
8391
8392
|
},
|
|
8392
8393
|
...s && {
|
|
8393
|
-
formatCreateLabel: (
|
|
8394
|
-
isValidNewOption: (
|
|
8395
|
-
noOptionsMessage: () =>
|
|
8394
|
+
formatCreateLabel: (R) => R.trim() ? `Create "${R}"` : null,
|
|
8395
|
+
isValidNewOption: (R) => R.trim().length > 0,
|
|
8396
|
+
noOptionsMessage: () => {
|
|
8397
|
+
var R;
|
|
8398
|
+
return `Type to create a new ${(R = a || e) == null ? void 0 : R.toLowerCase()}`;
|
|
8399
|
+
}
|
|
8396
8400
|
}
|
|
8397
8401
|
}
|
|
8398
8402
|
)
|
|
@@ -8617,7 +8621,7 @@ function M2(e, t, n, i) {
|
|
|
8617
8621
|
const y = _d(n, C, {
|
|
8618
8622
|
id: [i, h, C.id, m == null ? void 0 : m.id].filter(Boolean).join("_"),
|
|
8619
8623
|
isPlaceholder: S,
|
|
8620
|
-
placeholderId: S ? `${p.filter((
|
|
8624
|
+
placeholderId: S ? `${p.filter((_) => _.column === C).length}` : void 0,
|
|
8621
8625
|
depth: h,
|
|
8622
8626
|
index: p.length
|
|
8623
8627
|
});
|
|
@@ -9150,7 +9154,7 @@ const _2 = {
|
|
|
9150
9154
|
const s = e.getSize(), a = e ? e.getLeafHeaders().map((b) => [b.column.id, b.column.getSize()]) : [[i.id, i.getSize()]], l = l0(o) ? Math.round(o.touches[0].clientX) : o.clientX, c = {}, u = (b, v) => {
|
|
9151
9155
|
typeof v == "number" && (t.setColumnSizingInfo((C) => {
|
|
9152
9156
|
var S, y;
|
|
9153
|
-
const
|
|
9157
|
+
const _ = t.options.columnResizeDirection === "rtl" ? -1 : 1, A = (v - ((S = C == null ? void 0 : C.startOffset) != null ? S : 0)) * _, w = Math.max(A / ((y = C == null ? void 0 : C.startSize) != null ? y : 0), -0.999999);
|
|
9154
9158
|
return C.columnSizingStart.forEach((I) => {
|
|
9155
9159
|
let [M, k] = I;
|
|
9156
9160
|
c[M] = Math.round(Math.max(k + k * w, 0) * 100) / 100;
|
|
@@ -10281,7 +10285,7 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10281
10285
|
scanDetails: C,
|
|
10282
10286
|
isDeletedItemsList: S = !1,
|
|
10283
10287
|
onViewDeletedItemsClick: y,
|
|
10284
|
-
showViewDeleteButton:
|
|
10288
|
+
showViewDeleteButton: _ = !1,
|
|
10285
10289
|
refreshData: A,
|
|
10286
10290
|
setRefreshData: w,
|
|
10287
10291
|
tableWrapperClass: I,
|
|
@@ -10291,7 +10295,7 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10291
10295
|
ConnectorSummaryAccordion: H
|
|
10292
10296
|
}) => {
|
|
10293
10297
|
var Wr, X, q, de, Le;
|
|
10294
|
-
const D = Sx(),
|
|
10298
|
+
const D = Sx(), E = Mx(), L = Ix((V) => !E || !(V != null && V.tableData) ? null : V.tableData[e] || null), [F, P] = W(""), [R, T] = W(() => (L == null ? void 0 : L.sorting) ?? []), [$, z] = W(/* @__PURE__ */ new Set()), [G, U] = W(), [ce, pe] = W(!0), [Be, ge] = W(!1), [me, Me] = W(0), { filters: ue } = Ax(), [Z, He] = W({}), [re, oe] = W(() => L != null && L.pagination ? { ...L.pagination } : { pageIndex: h0, pageSize: f0 }), { showToast: B } = l5(), { showLoader: se, hideLoader: J } = Sc(), [ie, ne] = W(), te = be(null), ae = be(""), Ce = be(""), le = be(!1), ee = nx({
|
|
10295
10299
|
data: i,
|
|
10296
10300
|
columns: n,
|
|
10297
10301
|
state: {
|
|
@@ -10299,12 +10303,12 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10299
10303
|
actions: ce
|
|
10300
10304
|
},
|
|
10301
10305
|
globalFilter: F,
|
|
10302
|
-
sorting:
|
|
10306
|
+
sorting: R,
|
|
10303
10307
|
pagination: re
|
|
10304
10308
|
},
|
|
10305
10309
|
onColumnVisibilityChange: () => pe(!ce),
|
|
10306
|
-
onGlobalFilterChange:
|
|
10307
|
-
onSortingChange:
|
|
10310
|
+
onGlobalFilterChange: P,
|
|
10311
|
+
onSortingChange: T,
|
|
10308
10312
|
getCoreRowModel: Uv(),
|
|
10309
10313
|
manualPagination: !0,
|
|
10310
10314
|
manualSorting: !0,
|
|
@@ -10316,30 +10320,30 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10316
10320
|
fe(() => {
|
|
10317
10321
|
A && (ar(), w && w(!1));
|
|
10318
10322
|
}, [A]), fe(() => {
|
|
10319
|
-
if (e &&
|
|
10323
|
+
if (e && E && D)
|
|
10320
10324
|
try {
|
|
10321
|
-
const { setPagination:
|
|
10322
|
-
D(
|
|
10325
|
+
const { setPagination: V } = require("../../redux/slices/tableDataSlice");
|
|
10326
|
+
D(V({ tableType: e, pagination: re }));
|
|
10323
10327
|
} catch {
|
|
10324
10328
|
}
|
|
10325
10329
|
}, [re.pageIndex, re.pageSize, e]), fe(() => {
|
|
10326
10330
|
je(Se);
|
|
10327
10331
|
}, [Se]), fe(() => {
|
|
10328
|
-
if (
|
|
10332
|
+
if (E && D)
|
|
10329
10333
|
try {
|
|
10330
|
-
const { setGlobalSorting:
|
|
10331
|
-
D(
|
|
10334
|
+
const { setGlobalSorting: V } = require("../../redux/slices/tableDataSlice");
|
|
10335
|
+
D(V({ tableType: e, sorting: R }));
|
|
10332
10336
|
} catch {
|
|
10333
10337
|
}
|
|
10334
|
-
}, [(X =
|
|
10338
|
+
}, [(X = R[0]) == null ? void 0 : X.desc, (q = R[0]) == null ? void 0 : q.id]);
|
|
10335
10339
|
const ht = Fe(() => {
|
|
10336
10340
|
var ve, De, dt;
|
|
10337
|
-
const
|
|
10341
|
+
const V = {
|
|
10338
10342
|
pageNumber: ee.getState().pagination.pageIndex,
|
|
10339
10343
|
pageSize: ee.getState().pagination.pageSize
|
|
10340
10344
|
}, he = {
|
|
10341
|
-
sortBy:
|
|
10342
|
-
order:
|
|
10345
|
+
sortBy: R.length && (ve = R[0]) != null && ve.id ? (De = R[0]) == null ? void 0 : De.id : void 0,
|
|
10346
|
+
order: R.length && (dt = R[0]) != null && dt.desc ? "desc" : "asc"
|
|
10343
10347
|
}, Y = {
|
|
10344
10348
|
searchTerm: F,
|
|
10345
10349
|
searchColumns: M.length > 0 ? M : void 0
|
|
@@ -10348,34 +10352,34 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10348
10352
|
options: t,
|
|
10349
10353
|
filters: Object.keys(ue).length > 0 ? ue : Z,
|
|
10350
10354
|
...Y,
|
|
10351
|
-
...
|
|
10355
|
+
...V,
|
|
10352
10356
|
...he,
|
|
10353
10357
|
fetchDeleted: S
|
|
10354
10358
|
};
|
|
10355
10359
|
}, [
|
|
10356
10360
|
F,
|
|
10357
10361
|
ue,
|
|
10358
|
-
|
|
10362
|
+
R,
|
|
10359
10363
|
ee.getState().pagination.pageIndex,
|
|
10360
10364
|
ee.getState().pagination.pageSize,
|
|
10361
|
-
(de =
|
|
10362
|
-
(Le =
|
|
10365
|
+
(de = R[0]) == null ? void 0 : de.id,
|
|
10366
|
+
(Le = R[0]) == null ? void 0 : Le.desc,
|
|
10363
10367
|
S,
|
|
10364
10368
|
K,
|
|
10365
10369
|
t == null ? void 0 : t.arg,
|
|
10366
10370
|
M
|
|
10367
|
-
]), xn = (
|
|
10368
|
-
if (
|
|
10371
|
+
]), xn = (V) => {
|
|
10372
|
+
if (V) {
|
|
10369
10373
|
const he = i.filter((Y) => !Y.isDisabled).map((Y) => Y.id);
|
|
10370
|
-
|
|
10374
|
+
z(new Set(he));
|
|
10371
10375
|
} else
|
|
10372
|
-
|
|
10376
|
+
z(/* @__PURE__ */ new Set());
|
|
10373
10377
|
};
|
|
10374
10378
|
fe(() => () => {
|
|
10375
|
-
var
|
|
10376
|
-
ie && ((
|
|
10379
|
+
var V;
|
|
10380
|
+
ie && ((V = window.api) != null && V.deleteExportedFile) && window.api.deleteExportedFile((ie ?? "").replace("download:\\", ""));
|
|
10377
10381
|
}, [ie]), fe(() => {
|
|
10378
|
-
const
|
|
10382
|
+
const V = async () => {
|
|
10379
10383
|
if (r) {
|
|
10380
10384
|
le.current = !0;
|
|
10381
10385
|
try {
|
|
@@ -10417,7 +10421,7 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10417
10421
|
const ve = JSON.stringify({
|
|
10418
10422
|
pagination: re,
|
|
10419
10423
|
searchApplied: Oe,
|
|
10420
|
-
sorting:
|
|
10424
|
+
sorting: R,
|
|
10421
10425
|
isDeletedItemsList: S
|
|
10422
10426
|
});
|
|
10423
10427
|
ve !== ae.current && (ae.current = ve, ar()), J();
|
|
@@ -10428,53 +10432,53 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10428
10432
|
filters: ue,
|
|
10429
10433
|
searchTerm: F,
|
|
10430
10434
|
searchColumns: M,
|
|
10431
|
-
sorting:
|
|
10435
|
+
sorting: R,
|
|
10432
10436
|
isDeletedItemsList: S,
|
|
10433
10437
|
pageSize: re.pageSize
|
|
10434
10438
|
});
|
|
10435
|
-
he !== Ce.current && (
|
|
10436
|
-
}, [t, ue, F, e,
|
|
10437
|
-
const c2 = (
|
|
10439
|
+
he !== Ce.current && (V(), Ce.current = he);
|
|
10440
|
+
}, [t, ue, F, e, R, S, re.pageSize, M]);
|
|
10441
|
+
const c2 = (V) => {
|
|
10438
10442
|
var he;
|
|
10439
|
-
|
|
10440
|
-
}, Ta = (
|
|
10441
|
-
|
|
10443
|
+
V.key === "Enter" && ((he = te.current) == null || he.click());
|
|
10444
|
+
}, Ta = (V, he) => {
|
|
10445
|
+
z((Y) => {
|
|
10442
10446
|
const ve = new Set(Y);
|
|
10443
|
-
return he ? ve.add(
|
|
10447
|
+
return he ? ve.add(V) : ve.delete(V), ve;
|
|
10444
10448
|
});
|
|
10445
10449
|
}, Va = async () => {
|
|
10446
10450
|
var he;
|
|
10447
10451
|
if (!e) return;
|
|
10448
|
-
let
|
|
10452
|
+
let V = "";
|
|
10449
10453
|
try {
|
|
10450
10454
|
if (se(), k)
|
|
10451
|
-
|
|
10455
|
+
V = await k(e, Z, t, S);
|
|
10452
10456
|
else if ((he = window.api) != null && he.exportTable)
|
|
10453
|
-
|
|
10457
|
+
V = t ? await window.api.exportTable(e, Z, t, S) : await window.api.exportTable(e, Z, {}, S);
|
|
10454
10458
|
else {
|
|
10455
|
-
|
|
10459
|
+
B(wt.ERROR, "Export functionality is not available. Please provide an onExport handler.");
|
|
10456
10460
|
return;
|
|
10457
10461
|
}
|
|
10458
|
-
ne(
|
|
10462
|
+
ne(V);
|
|
10459
10463
|
const Y = document.createElement("a");
|
|
10460
|
-
Y.href =
|
|
10464
|
+
Y.href = V, Y.download = `export-${e}.csv`, document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), B(wt.SUCCESS, "Export initiated successfully");
|
|
10461
10465
|
} catch (Y) {
|
|
10462
|
-
console.error("Export error", Y),
|
|
10466
|
+
console.error("Export error", Y), B(wt.ERROR, "Export failed");
|
|
10463
10467
|
} finally {
|
|
10464
|
-
J(),
|
|
10468
|
+
J(), V && V.startsWith("blob:") && URL.revokeObjectURL(V);
|
|
10465
10469
|
}
|
|
10466
10470
|
}, u2 = () => {
|
|
10467
|
-
let
|
|
10471
|
+
let V = 0;
|
|
10468
10472
|
return i.forEach((he) => {
|
|
10469
|
-
he.isDisabled ||
|
|
10470
|
-
}),
|
|
10473
|
+
he.isDisabled || V++;
|
|
10474
|
+
}), V;
|
|
10471
10475
|
}, d2 = async () => {
|
|
10472
10476
|
if (!(!r || !l)) {
|
|
10473
|
-
se(), oe((
|
|
10477
|
+
se(), oe((V) => ({ ...V, pageIndex: 0 }));
|
|
10474
10478
|
try {
|
|
10475
10479
|
Ze(F !== ""), await ar();
|
|
10476
|
-
} catch (
|
|
10477
|
-
console.error("Search error:",
|
|
10480
|
+
} catch (V) {
|
|
10481
|
+
console.error("Search error:", V), B(wt.ERROR, "Search operation failed.");
|
|
10478
10482
|
} finally {
|
|
10479
10483
|
J();
|
|
10480
10484
|
}
|
|
@@ -10483,41 +10487,41 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10483
10487
|
if (!(!r || !l)) {
|
|
10484
10488
|
se();
|
|
10485
10489
|
try {
|
|
10486
|
-
const
|
|
10490
|
+
const V = await r({
|
|
10487
10491
|
...ht,
|
|
10488
10492
|
...t != null && t.usePermanentCache ? { usePermanentCache: t.usePermanentCache } : {}
|
|
10489
|
-
}), he =
|
|
10490
|
-
if (Me(he), l(
|
|
10493
|
+
}), he = V.totalRecords;
|
|
10494
|
+
if (Me(he), l(V.data), E && D)
|
|
10491
10495
|
try {
|
|
10492
10496
|
const { setTotalCount: Y, setTableData: ve } = require("../../redux/slices/tableDataSlice");
|
|
10493
|
-
D(Y({ tableType: e, totalCount: he })), D(ve({ tableType: e, data:
|
|
10497
|
+
D(Y({ tableType: e, totalCount: he })), D(ve({ tableType: e, data: V.data }));
|
|
10494
10498
|
} catch {
|
|
10495
10499
|
}
|
|
10496
|
-
} catch (
|
|
10497
|
-
console.error("Failed to fetch data",
|
|
10500
|
+
} catch (V) {
|
|
10501
|
+
console.error("Failed to fetch data", V), B(wt.ERROR, "Failed to fetch data!");
|
|
10498
10502
|
} finally {
|
|
10499
10503
|
J();
|
|
10500
10504
|
}
|
|
10501
10505
|
}
|
|
10502
10506
|
};
|
|
10503
10507
|
fe(() => {
|
|
10504
|
-
const
|
|
10508
|
+
const V = JSON.stringify({
|
|
10505
10509
|
pagination: re,
|
|
10506
10510
|
searchApplied: Oe,
|
|
10507
|
-
sorting:
|
|
10511
|
+
sorting: R,
|
|
10508
10512
|
isDeletedItemsList: S
|
|
10509
10513
|
});
|
|
10510
|
-
|
|
10511
|
-
}, [re.pageIndex, re.pageSize, Oe,
|
|
10512
|
-
const _i = Object.entries(f).map(([
|
|
10513
|
-
value:
|
|
10514
|
+
V !== ae.current && !le.current && (ae.current = V, ar());
|
|
10515
|
+
}, [re.pageIndex, re.pageSize, Oe, R, S]);
|
|
10516
|
+
const _i = Object.entries(f).map(([V, he]) => ({
|
|
10517
|
+
value: V,
|
|
10514
10518
|
label: he
|
|
10515
|
-
})), Ba = () =>
|
|
10519
|
+
})), Ba = () => z(/* @__PURE__ */ new Set()), zr = () => U(""), Ai = Fe(() => !!h, [h]), f2 = $.size > 0, h2 = (V) => {
|
|
10516
10520
|
let he = 0, Y = !1;
|
|
10517
10521
|
return Ai && (he += 57), ee.getHeaderGroups().forEach((ve) => {
|
|
10518
10522
|
ve.headers.forEach((De) => {
|
|
10519
10523
|
if (!Y && De.column.columnDef.fixedColumn) {
|
|
10520
|
-
if (De.id ===
|
|
10524
|
+
if (De.id === V) {
|
|
10521
10525
|
Y = !0;
|
|
10522
10526
|
return;
|
|
10523
10527
|
}
|
|
@@ -10556,15 +10560,15 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10556
10560
|
{
|
|
10557
10561
|
placeholder: "Bulk Actions",
|
|
10558
10562
|
className: "w-[10rem] bulk-actions-select",
|
|
10559
|
-
value: _i.find((
|
|
10563
|
+
value: _i.find((V) => V.value === G) || null,
|
|
10560
10564
|
options: _i,
|
|
10561
|
-
onChange: (
|
|
10562
|
-
|
|
10565
|
+
onChange: (V) => {
|
|
10566
|
+
V && (U(V.value), h && (h(V.value, $, Ba, zr), U("")));
|
|
10563
10567
|
},
|
|
10564
10568
|
isClearable: !0,
|
|
10565
10569
|
styles: {
|
|
10566
|
-
control: (
|
|
10567
|
-
...
|
|
10570
|
+
control: (V, he) => ({
|
|
10571
|
+
...V,
|
|
10568
10572
|
borderColor: he.isFocused ? "var(--brand-orange)" : "var(--border-color)",
|
|
10569
10573
|
borderRadius: "0.25rem",
|
|
10570
10574
|
cursor: "pointer",
|
|
@@ -10575,20 +10579,20 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10575
10579
|
borderColor: "var(--brand-orange)"
|
|
10576
10580
|
}
|
|
10577
10581
|
}),
|
|
10578
|
-
input: (
|
|
10579
|
-
...
|
|
10582
|
+
input: (V) => ({
|
|
10583
|
+
...V,
|
|
10580
10584
|
color: "var(--text-color)"
|
|
10581
10585
|
}),
|
|
10582
|
-
singleValue: (
|
|
10583
|
-
...
|
|
10586
|
+
singleValue: (V) => ({
|
|
10587
|
+
...V,
|
|
10584
10588
|
color: "var(--text-color)"
|
|
10585
10589
|
}),
|
|
10586
|
-
placeholder: (
|
|
10587
|
-
...
|
|
10590
|
+
placeholder: (V) => ({
|
|
10591
|
+
...V,
|
|
10588
10592
|
color: "var(--secondary-text-color)"
|
|
10589
10593
|
}),
|
|
10590
|
-
option: (
|
|
10591
|
-
...
|
|
10594
|
+
option: (V, he) => ({
|
|
10595
|
+
...V,
|
|
10592
10596
|
backgroundColor: he.isSelected ? "var(--brand-orange)" : he.isFocused ? "var(--hover-bg-color)" : "var(--bg-color)",
|
|
10593
10597
|
color: he.isSelected ? "white" : "var(--text-color)",
|
|
10594
10598
|
cursor: "pointer",
|
|
@@ -10596,31 +10600,31 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10596
10600
|
backgroundColor: "var(--brand-orange)"
|
|
10597
10601
|
}
|
|
10598
10602
|
}),
|
|
10599
|
-
menu: (
|
|
10600
|
-
...
|
|
10603
|
+
menu: (V) => ({
|
|
10604
|
+
...V,
|
|
10601
10605
|
backgroundColor: "var(--bg-color)",
|
|
10602
10606
|
color: "var(--text-color)",
|
|
10603
10607
|
border: "1px solid var(--border-color)",
|
|
10604
10608
|
zIndex: 9999
|
|
10605
10609
|
}),
|
|
10606
|
-
dropdownIndicator: (
|
|
10607
|
-
...
|
|
10610
|
+
dropdownIndicator: (V) => ({
|
|
10611
|
+
...V,
|
|
10608
10612
|
cursor: "pointer",
|
|
10609
10613
|
color: "var(--secondary-text-color)",
|
|
10610
10614
|
":hover": {
|
|
10611
10615
|
color: "var(--brand-orange)"
|
|
10612
10616
|
}
|
|
10613
10617
|
}),
|
|
10614
|
-
clearIndicator: (
|
|
10615
|
-
...
|
|
10618
|
+
clearIndicator: (V) => ({
|
|
10619
|
+
...V,
|
|
10616
10620
|
cursor: "pointer",
|
|
10617
10621
|
color: "var(--secondary-text-color)",
|
|
10618
10622
|
":hover": {
|
|
10619
10623
|
color: "var(--brand-orange)"
|
|
10620
10624
|
}
|
|
10621
10625
|
}),
|
|
10622
|
-
indicatorSeparator: (
|
|
10623
|
-
...
|
|
10626
|
+
indicatorSeparator: (V) => ({
|
|
10627
|
+
...V,
|
|
10624
10628
|
backgroundColor: "var(--border-color)"
|
|
10625
10629
|
})
|
|
10626
10630
|
}
|
|
@@ -10640,7 +10644,7 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10640
10644
|
placeholder: "Search...",
|
|
10641
10645
|
value: F,
|
|
10642
10646
|
onKeyDown: c2,
|
|
10643
|
-
onChange: (
|
|
10647
|
+
onChange: (V) => P(V.target.value),
|
|
10644
10648
|
className: "flex-grow px-4 py-2 text-sm placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",
|
|
10645
10649
|
style: {
|
|
10646
10650
|
backgroundColor: "var(--bg-color)",
|
|
@@ -10658,8 +10662,8 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10658
10662
|
backgroundColor: "var(--brand-light)",
|
|
10659
10663
|
color: "var(--brand-dark)"
|
|
10660
10664
|
},
|
|
10661
|
-
onMouseEnter: (
|
|
10662
|
-
onMouseLeave: (
|
|
10665
|
+
onMouseEnter: (V) => V.currentTarget.style.backgroundColor = "var(--hover-bg-color)",
|
|
10666
|
+
onMouseLeave: (V) => V.currentTarget.style.backgroundColor = "var(--brand-light)",
|
|
10663
10667
|
onClick: d2,
|
|
10664
10668
|
children: /* @__PURE__ */ x(s5, { size: 22 })
|
|
10665
10669
|
}
|
|
@@ -10682,19 +10686,19 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10682
10686
|
className: `overflow-auto${I ? ` ${I}` : ""}`,
|
|
10683
10687
|
style: I ? {} : { maxHeight: "calc(100vh - 21rem)" },
|
|
10684
10688
|
children: /* @__PURE__ */ N("table", { className: "table-auto w-full text-left border-collapse border dark:border-gray-700 main-table", children: [
|
|
10685
|
-
/* @__PURE__ */ x("thead", { className: "sticky -top-1 z-20 bg-brand-surface-subtle dark:bg-gray-800", children: ee.getHeaderGroups().map((
|
|
10689
|
+
/* @__PURE__ */ x("thead", { className: "sticky -top-1 z-20 bg-brand-surface-subtle dark:bg-gray-800", children: ee.getHeaderGroups().map((V, he) => /* @__PURE__ */ N("tr", { children: [
|
|
10686
10690
|
Ai && /* @__PURE__ */ x("th", { className: "sticky -left-1 z-20 table-header checkbox font-bold cursor-pointer", style: { width: "40px" }, children: /* @__PURE__ */ x(
|
|
10687
10691
|
"input",
|
|
10688
10692
|
{
|
|
10689
10693
|
type: "checkbox",
|
|
10690
10694
|
className: `${Ld} dark:border-gray-600`,
|
|
10691
|
-
checked: ee.getRowModel().rows.length > 0 &&
|
|
10695
|
+
checked: ee.getRowModel().rows.length > 0 && $.size === u2() && u2() > 0,
|
|
10692
10696
|
onChange: (Y) => {
|
|
10693
10697
|
Y.stopPropagation(), xn(Y.target.checked);
|
|
10694
10698
|
}
|
|
10695
10699
|
}
|
|
10696
10700
|
) }),
|
|
10697
|
-
|
|
10701
|
+
V.headers.map((Y, ve) => {
|
|
10698
10702
|
var fn, en;
|
|
10699
10703
|
let De = "";
|
|
10700
10704
|
const dt = ["actions"].includes((fn = Y == null ? void 0 : Y.column) == null ? void 0 : fn.id);
|
|
@@ -10722,7 +10726,7 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10722
10726
|
`${Y.id}_${ve}`
|
|
10723
10727
|
);
|
|
10724
10728
|
})
|
|
10725
|
-
] }, `${
|
|
10729
|
+
] }, `${V.id}_${he}`)) }),
|
|
10726
10730
|
/* @__PURE__ */ x("tbody", { children: ee.getRowModel().rows.length === 0 ? /* @__PURE__ */ x("tr", { children: /* @__PURE__ */ x(
|
|
10727
10731
|
"td",
|
|
10728
10732
|
{
|
|
@@ -10730,12 +10734,12 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10730
10734
|
className: "text-center text-sm py-4 text-gray-600 dark:text-gray-400",
|
|
10731
10735
|
children: "No data available"
|
|
10732
10736
|
}
|
|
10733
|
-
) }) : ee.getRowModel().rows.map((
|
|
10737
|
+
) }) : ee.getRowModel().rows.map((V, he) => /* @__PURE__ */ N(
|
|
10734
10738
|
"tr",
|
|
10735
10739
|
{
|
|
10736
10740
|
className: `table-data${g ? " cursor-pointer" : ""}`,
|
|
10737
10741
|
onClick: (Y) => {
|
|
10738
|
-
g && !Y.target.closest('input[type="checkbox"]') && g(
|
|
10742
|
+
g && !Y.target.closest('input[type="checkbox"]') && g(V.original);
|
|
10739
10743
|
},
|
|
10740
10744
|
children: [
|
|
10741
10745
|
Ai && /* @__PURE__ */ x(
|
|
@@ -10752,18 +10756,18 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10752
10756
|
"input",
|
|
10753
10757
|
{
|
|
10754
10758
|
type: "checkbox",
|
|
10755
|
-
disabled:
|
|
10759
|
+
disabled: V.original.isDisabled,
|
|
10756
10760
|
className: `${Ld} dark:border-gray-600`,
|
|
10757
|
-
checked:
|
|
10761
|
+
checked: $.has(V.original.id) && !V.original.isDisabled,
|
|
10758
10762
|
onChange: (Y) => {
|
|
10759
|
-
|
|
10763
|
+
V.original.isDisabled || Ta(V.original.id, Y.target.checked);
|
|
10760
10764
|
},
|
|
10761
10765
|
onClick: (Y) => Y.stopPropagation()
|
|
10762
10766
|
}
|
|
10763
10767
|
)
|
|
10764
10768
|
}
|
|
10765
10769
|
),
|
|
10766
|
-
|
|
10770
|
+
V.getVisibleCells().map((Y, ve) => {
|
|
10767
10771
|
var fn;
|
|
10768
10772
|
let De = "";
|
|
10769
10773
|
const dt = [
|
|
@@ -10798,7 +10802,7 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10798
10802
|
})
|
|
10799
10803
|
]
|
|
10800
10804
|
},
|
|
10801
|
-
`${
|
|
10805
|
+
`${V.id}_${he}`
|
|
10802
10806
|
)) })
|
|
10803
10807
|
] })
|
|
10804
10808
|
}
|
|
@@ -10812,8 +10816,8 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10812
10816
|
disabled: re.pageIndex === 0,
|
|
10813
10817
|
className: "disabled:opacity-50 transition-colors",
|
|
10814
10818
|
style: { color: "var(--secondary-text-color)" },
|
|
10815
|
-
onMouseEnter: (
|
|
10816
|
-
onMouseLeave: (
|
|
10819
|
+
onMouseEnter: (V) => !V.currentTarget.disabled && (V.currentTarget.style.color = "var(--brand-orange)"),
|
|
10820
|
+
onMouseLeave: (V) => V.currentTarget.style.color = "var(--secondary-text-color)",
|
|
10817
10821
|
children: /* @__PURE__ */ x(ox, { size: 20 })
|
|
10818
10822
|
}
|
|
10819
10823
|
),
|
|
@@ -10824,8 +10828,8 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10824
10828
|
disabled: re.pageIndex === 0,
|
|
10825
10829
|
className: "disabled:opacity-50 transition-colors",
|
|
10826
10830
|
style: { color: "var(--secondary-text-color)" },
|
|
10827
|
-
onMouseEnter: (
|
|
10828
|
-
onMouseLeave: (
|
|
10831
|
+
onMouseEnter: (V) => !V.currentTarget.disabled && (V.currentTarget.style.color = "var(--brand-orange)"),
|
|
10832
|
+
onMouseLeave: (V) => V.currentTarget.style.color = "var(--secondary-text-color)",
|
|
10829
10833
|
children: /* @__PURE__ */ x(lx, { size: 20 })
|
|
10830
10834
|
}
|
|
10831
10835
|
),
|
|
@@ -10836,16 +10840,16 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10836
10840
|
{
|
|
10837
10841
|
type: "number",
|
|
10838
10842
|
value: ft,
|
|
10839
|
-
onChange: (
|
|
10840
|
-
const he =
|
|
10843
|
+
onChange: (V) => {
|
|
10844
|
+
const he = V.target.value.replace(/^0+/, "");
|
|
10841
10845
|
je(he === "" ? "" : Number(he));
|
|
10842
10846
|
},
|
|
10843
10847
|
onBlur: () => {
|
|
10844
|
-
const
|
|
10845
|
-
je(
|
|
10848
|
+
const V = Math.min(Math.max(Number(ft), 1), st);
|
|
10849
|
+
je(V), ee.setPageIndex(V - 1);
|
|
10846
10850
|
},
|
|
10847
|
-
onKeyDown: (
|
|
10848
|
-
if (
|
|
10851
|
+
onKeyDown: (V) => {
|
|
10852
|
+
if (V.key === "Enter") {
|
|
10849
10853
|
const he = Math.min(Math.max(Number(ft), 1), st);
|
|
10850
10854
|
je(he), ee.setPageIndex(he - 1);
|
|
10851
10855
|
}
|
|
@@ -10869,8 +10873,8 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10869
10873
|
disabled: re.pageIndex + 1 === st,
|
|
10870
10874
|
className: "disabled:opacity-50 transition-colors",
|
|
10871
10875
|
style: { color: "var(--secondary-text-color)" },
|
|
10872
|
-
onMouseEnter: (
|
|
10873
|
-
onMouseLeave: (
|
|
10876
|
+
onMouseEnter: (V) => !V.currentTarget.disabled && (V.currentTarget.style.color = "var(--brand-orange)"),
|
|
10877
|
+
onMouseLeave: (V) => V.currentTarget.style.color = "var(--secondary-text-color)",
|
|
10874
10878
|
children: /* @__PURE__ */ x(cx, { size: 20 })
|
|
10875
10879
|
}
|
|
10876
10880
|
),
|
|
@@ -10881,21 +10885,21 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10881
10885
|
disabled: re.pageIndex + 1 === st,
|
|
10882
10886
|
className: "disabled:opacity-50 transition-colors",
|
|
10883
10887
|
style: { color: "var(--secondary-text-color)" },
|
|
10884
|
-
onMouseEnter: (
|
|
10885
|
-
onMouseLeave: (
|
|
10888
|
+
onMouseEnter: (V) => !V.currentTarget.disabled && (V.currentTarget.style.color = "var(--brand-orange)"),
|
|
10889
|
+
onMouseLeave: (V) => V.currentTarget.style.color = "var(--secondary-text-color)",
|
|
10886
10890
|
children: /* @__PURE__ */ x(rx, { size: 20 })
|
|
10887
10891
|
}
|
|
10888
10892
|
)
|
|
10889
10893
|
] }),
|
|
10890
|
-
|
|
10894
|
+
_ && /* @__PURE__ */ x(
|
|
10891
10895
|
"button",
|
|
10892
10896
|
{
|
|
10893
10897
|
"data-testid": S ? "view-active-items-button" : "view-deleted-items-button",
|
|
10894
10898
|
onClick: () => {
|
|
10895
|
-
if (
|
|
10899
|
+
if (z(/* @__PURE__ */ new Set()), re.pageIndex = h0, re.pageSize = f0, E && D)
|
|
10896
10900
|
try {
|
|
10897
|
-
const { setPagination:
|
|
10898
|
-
D(
|
|
10901
|
+
const { setPagination: V } = require("../../redux/slices/tableDataSlice");
|
|
10902
|
+
D(V({
|
|
10899
10903
|
tableType: e,
|
|
10900
10904
|
pagination: { pageIndex: h0, pageSize: f0 }
|
|
10901
10905
|
}));
|
|
@@ -10918,23 +10922,23 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10918
10922
|
Ds,
|
|
10919
10923
|
{
|
|
10920
10924
|
placeholder: "",
|
|
10921
|
-
options: [10, 25, 50, 100].map((
|
|
10925
|
+
options: [10, 25, 50, 100].map((V) => ({ label: V.toString(), value: V.toString() })),
|
|
10922
10926
|
selectedOptions: [{ label: re.pageSize.toString(), value: re.pageSize.toString() }],
|
|
10923
|
-
handleChange: (
|
|
10924
|
-
|
|
10927
|
+
handleChange: (V) => {
|
|
10928
|
+
V && oe((he) => ({ ...he, pageSize: +V.value }));
|
|
10925
10929
|
},
|
|
10926
10930
|
isMulti: !1,
|
|
10927
10931
|
closeMenuOnSelect: !0,
|
|
10928
10932
|
isClearable: !1,
|
|
10929
10933
|
menuPosition: "fixed",
|
|
10930
10934
|
customStyles: {
|
|
10931
|
-
control: (
|
|
10932
|
-
...
|
|
10935
|
+
control: (V, he) => ({
|
|
10936
|
+
...V,
|
|
10933
10937
|
minHeight: "34px",
|
|
10934
10938
|
height: "34px",
|
|
10935
10939
|
backgroundColor: "var(--bg-color)",
|
|
10936
10940
|
borderColor: he.isFocused ? "var(--brand-orange)" : "var(--border-color)",
|
|
10937
|
-
boxShadow: he.isFocused ? "0 0 0 1px var(--brand-orange)" :
|
|
10941
|
+
boxShadow: he.isFocused ? "0 0 0 1px var(--brand-orange)" : V.boxShadow
|
|
10938
10942
|
})
|
|
10939
10943
|
}
|
|
10940
10944
|
}
|
|
@@ -10946,7 +10950,7 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10946
10950
|
{
|
|
10947
10951
|
type: e,
|
|
10948
10952
|
fields: a,
|
|
10949
|
-
inlineRowFields: a == null ? void 0 : a.filter((
|
|
10953
|
+
inlineRowFields: a == null ? void 0 : a.filter((V) => V.inline === !0),
|
|
10950
10954
|
visible: Be,
|
|
10951
10955
|
onClose: () => ge(!1),
|
|
10952
10956
|
title: "Filters",
|
|
@@ -10962,8 +10966,8 @@ const Sx = () => (wc(), Vs ? Vs() : (console.warn("[useAppDispatch] Redux is not
|
|
|
10962
10966
|
setTotalRowCount: Me,
|
|
10963
10967
|
setPagination: oe,
|
|
10964
10968
|
options: t,
|
|
10965
|
-
sorting:
|
|
10966
|
-
setSorting:
|
|
10969
|
+
sorting: R,
|
|
10970
|
+
setSorting: T,
|
|
10967
10971
|
showDeletedItems: S,
|
|
10968
10972
|
setExportFilters: He,
|
|
10969
10973
|
searchTerm: F
|
|
@@ -11067,156 +11071,156 @@ var u5 = { exports: {} };
|
|
|
11067
11071
|
e.exports = i();
|
|
11068
11072
|
})(ql, function() {
|
|
11069
11073
|
var n = 1e3, i = 6e4, r = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", c = "day", u = "week", d = "month", f = "quarter", h = "year", g = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
|
|
11070
|
-
var
|
|
11071
|
-
return "[" + D + (
|
|
11072
|
-
} }, C = function(D,
|
|
11074
|
+
var E = ["th", "st", "nd", "rd"], L = D % 100;
|
|
11075
|
+
return "[" + D + (E[(L - 20) % 10] || E[L] || E[0]) + "]";
|
|
11076
|
+
} }, C = function(D, E, L) {
|
|
11073
11077
|
var F = String(D);
|
|
11074
|
-
return !F || F.length >=
|
|
11078
|
+
return !F || F.length >= E ? D : "" + Array(E + 1 - F.length).join(L) + D;
|
|
11075
11079
|
}, S = { s: C, z: function(D) {
|
|
11076
|
-
var
|
|
11077
|
-
return (
|
|
11078
|
-
}, m: function D(
|
|
11079
|
-
if (
|
|
11080
|
-
var F = 12 * (L.year() -
|
|
11081
|
-
return +(-(F + (L -
|
|
11080
|
+
var E = -D.utcOffset(), L = Math.abs(E), F = Math.floor(L / 60), P = L % 60;
|
|
11081
|
+
return (E <= 0 ? "+" : "-") + C(F, 2, "0") + ":" + C(P, 2, "0");
|
|
11082
|
+
}, m: function D(E, L) {
|
|
11083
|
+
if (E.date() < L.date()) return -D(L, E);
|
|
11084
|
+
var F = 12 * (L.year() - E.year()) + (L.month() - E.month()), P = E.clone().add(F, d), R = L - P < 0, T = E.clone().add(F + (R ? -1 : 1), d);
|
|
11085
|
+
return +(-(F + (L - P) / (R ? P - T : T - P)) || 0);
|
|
11082
11086
|
}, a: function(D) {
|
|
11083
11087
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
11084
11088
|
}, p: function(D) {
|
|
11085
11089
|
return { M: d, y: h, w: u, d: c, D: g, h: l, m: a, s, ms: o, Q: f }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
|
11086
11090
|
}, u: function(D) {
|
|
11087
11091
|
return D === void 0;
|
|
11088
|
-
} }, y = "en",
|
|
11089
|
-
|
|
11092
|
+
} }, y = "en", _ = {};
|
|
11093
|
+
_[y] = v;
|
|
11090
11094
|
var A = "$isDayjsObject", w = function(D) {
|
|
11091
11095
|
return D instanceof O || !(!D || !D[A]);
|
|
11092
|
-
}, I = function D(
|
|
11093
|
-
var
|
|
11094
|
-
if (!
|
|
11095
|
-
if (typeof
|
|
11096
|
-
var
|
|
11097
|
-
|
|
11098
|
-
var
|
|
11099
|
-
if (!
|
|
11096
|
+
}, I = function D(E, L, F) {
|
|
11097
|
+
var P;
|
|
11098
|
+
if (!E) return y;
|
|
11099
|
+
if (typeof E == "string") {
|
|
11100
|
+
var R = E.toLowerCase();
|
|
11101
|
+
_[R] && (P = R), L && (_[R] = L, P = R);
|
|
11102
|
+
var T = E.split("-");
|
|
11103
|
+
if (!P && T.length > 1) return D(T[0]);
|
|
11100
11104
|
} else {
|
|
11101
|
-
var
|
|
11102
|
-
|
|
11105
|
+
var $ = E.name;
|
|
11106
|
+
_[$] = E, P = $;
|
|
11103
11107
|
}
|
|
11104
|
-
return !F &&
|
|
11105
|
-
}, M = function(D,
|
|
11108
|
+
return !F && P && (y = P), P || !F && y;
|
|
11109
|
+
}, M = function(D, E) {
|
|
11106
11110
|
if (w(D)) return D.clone();
|
|
11107
|
-
var L = typeof
|
|
11111
|
+
var L = typeof E == "object" ? E : {};
|
|
11108
11112
|
return L.date = D, L.args = arguments, new O(L);
|
|
11109
11113
|
}, k = S;
|
|
11110
|
-
k.l = I, k.i = w, k.w = function(D,
|
|
11111
|
-
return M(D, { locale:
|
|
11114
|
+
k.l = I, k.i = w, k.w = function(D, E) {
|
|
11115
|
+
return M(D, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
11112
11116
|
};
|
|
11113
11117
|
var O = function() {
|
|
11114
11118
|
function D(L) {
|
|
11115
11119
|
this.$L = I(L.locale, null, !0), this.parse(L), this.$x = this.$x || L.x || {}, this[A] = !0;
|
|
11116
11120
|
}
|
|
11117
|
-
var
|
|
11118
|
-
return
|
|
11121
|
+
var E = D.prototype;
|
|
11122
|
+
return E.parse = function(L) {
|
|
11119
11123
|
this.$d = function(F) {
|
|
11120
|
-
var
|
|
11121
|
-
if (
|
|
11122
|
-
if (k.u(
|
|
11123
|
-
if (
|
|
11124
|
-
if (typeof
|
|
11125
|
-
var
|
|
11126
|
-
if (
|
|
11127
|
-
var
|
|
11128
|
-
return
|
|
11124
|
+
var P = F.date, R = F.utc;
|
|
11125
|
+
if (P === null) return /* @__PURE__ */ new Date(NaN);
|
|
11126
|
+
if (k.u(P)) return /* @__PURE__ */ new Date();
|
|
11127
|
+
if (P instanceof Date) return new Date(P);
|
|
11128
|
+
if (typeof P == "string" && !/Z$/i.test(P)) {
|
|
11129
|
+
var T = P.match(m);
|
|
11130
|
+
if (T) {
|
|
11131
|
+
var $ = T[2] - 1 || 0, z = (T[7] || "0").substring(0, 3);
|
|
11132
|
+
return R ? new Date(Date.UTC(T[1], $, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, z)) : new Date(T[1], $, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, z);
|
|
11129
11133
|
}
|
|
11130
11134
|
}
|
|
11131
|
-
return new Date(
|
|
11135
|
+
return new Date(P);
|
|
11132
11136
|
}(L), this.init();
|
|
11133
|
-
},
|
|
11137
|
+
}, E.init = function() {
|
|
11134
11138
|
var L = this.$d;
|
|
11135
11139
|
this.$y = L.getFullYear(), this.$M = L.getMonth(), this.$D = L.getDate(), this.$W = L.getDay(), this.$H = L.getHours(), this.$m = L.getMinutes(), this.$s = L.getSeconds(), this.$ms = L.getMilliseconds();
|
|
11136
|
-
},
|
|
11140
|
+
}, E.$utils = function() {
|
|
11137
11141
|
return k;
|
|
11138
|
-
},
|
|
11142
|
+
}, E.isValid = function() {
|
|
11139
11143
|
return this.$d.toString() !== p;
|
|
11140
|
-
},
|
|
11141
|
-
var
|
|
11142
|
-
return this.startOf(F) <=
|
|
11143
|
-
},
|
|
11144
|
+
}, E.isSame = function(L, F) {
|
|
11145
|
+
var P = M(L);
|
|
11146
|
+
return this.startOf(F) <= P && P <= this.endOf(F);
|
|
11147
|
+
}, E.isAfter = function(L, F) {
|
|
11144
11148
|
return M(L) < this.startOf(F);
|
|
11145
|
-
},
|
|
11149
|
+
}, E.isBefore = function(L, F) {
|
|
11146
11150
|
return this.endOf(F) < M(L);
|
|
11147
|
-
},
|
|
11148
|
-
return k.u(L) ? this[F] : this.set(
|
|
11149
|
-
},
|
|
11151
|
+
}, E.$g = function(L, F, P) {
|
|
11152
|
+
return k.u(L) ? this[F] : this.set(P, L);
|
|
11153
|
+
}, E.unix = function() {
|
|
11150
11154
|
return Math.floor(this.valueOf() / 1e3);
|
|
11151
|
-
},
|
|
11155
|
+
}, E.valueOf = function() {
|
|
11152
11156
|
return this.$d.getTime();
|
|
11153
|
-
},
|
|
11154
|
-
var
|
|
11155
|
-
var ue = k.w(
|
|
11156
|
-
return
|
|
11157
|
-
},
|
|
11158
|
-
return k.w(
|
|
11159
|
-
},
|
|
11160
|
-
switch (
|
|
11157
|
+
}, E.startOf = function(L, F) {
|
|
11158
|
+
var P = this, R = !!k.u(F) || F, T = k.p(L), $ = function(me, Me) {
|
|
11159
|
+
var ue = k.w(P.$u ? Date.UTC(P.$y, Me, me) : new Date(P.$y, Me, me), P);
|
|
11160
|
+
return R ? ue : ue.endOf(c);
|
|
11161
|
+
}, z = function(me, Me) {
|
|
11162
|
+
return k.w(P.toDate()[me].apply(P.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Me)), P);
|
|
11163
|
+
}, G = this.$W, U = this.$M, ce = this.$D, pe = "set" + (this.$u ? "UTC" : "");
|
|
11164
|
+
switch (T) {
|
|
11161
11165
|
case h:
|
|
11162
|
-
return
|
|
11166
|
+
return R ? $(1, 0) : $(31, 11);
|
|
11163
11167
|
case d:
|
|
11164
|
-
return
|
|
11168
|
+
return R ? $(1, U) : $(0, U + 1);
|
|
11165
11169
|
case u:
|
|
11166
|
-
var Be = this.$locale().weekStart || 0, ge = (
|
|
11167
|
-
return
|
|
11170
|
+
var Be = this.$locale().weekStart || 0, ge = (G < Be ? G + 7 : G) - Be;
|
|
11171
|
+
return $(R ? ce - ge : ce + (6 - ge), U);
|
|
11168
11172
|
case c:
|
|
11169
11173
|
case g:
|
|
11170
|
-
return
|
|
11174
|
+
return z(pe + "Hours", 0);
|
|
11171
11175
|
case l:
|
|
11172
|
-
return
|
|
11176
|
+
return z(pe + "Minutes", 1);
|
|
11173
11177
|
case a:
|
|
11174
|
-
return
|
|
11178
|
+
return z(pe + "Seconds", 2);
|
|
11175
11179
|
case s:
|
|
11176
|
-
return
|
|
11180
|
+
return z(pe + "Milliseconds", 3);
|
|
11177
11181
|
default:
|
|
11178
11182
|
return this.clone();
|
|
11179
11183
|
}
|
|
11180
|
-
},
|
|
11184
|
+
}, E.endOf = function(L) {
|
|
11181
11185
|
return this.startOf(L, !1);
|
|
11182
|
-
},
|
|
11183
|
-
var
|
|
11184
|
-
if (
|
|
11185
|
-
var
|
|
11186
|
-
|
|
11187
|
-
} else
|
|
11186
|
+
}, E.$set = function(L, F) {
|
|
11187
|
+
var P, R = k.p(L), T = "set" + (this.$u ? "UTC" : ""), $ = (P = {}, P[c] = T + "Date", P[g] = T + "Date", P[d] = T + "Month", P[h] = T + "FullYear", P[l] = T + "Hours", P[a] = T + "Minutes", P[s] = T + "Seconds", P[o] = T + "Milliseconds", P)[R], z = R === c ? this.$D + (F - this.$W) : F;
|
|
11188
|
+
if (R === d || R === h) {
|
|
11189
|
+
var G = this.clone().set(g, 1);
|
|
11190
|
+
G.$d[$](z), G.init(), this.$d = G.set(g, Math.min(this.$D, G.daysInMonth())).$d;
|
|
11191
|
+
} else $ && this.$d[$](z);
|
|
11188
11192
|
return this.init(), this;
|
|
11189
|
-
},
|
|
11193
|
+
}, E.set = function(L, F) {
|
|
11190
11194
|
return this.clone().$set(L, F);
|
|
11191
|
-
},
|
|
11195
|
+
}, E.get = function(L) {
|
|
11192
11196
|
return this[k.p(L)]();
|
|
11193
|
-
},
|
|
11194
|
-
var
|
|
11197
|
+
}, E.add = function(L, F) {
|
|
11198
|
+
var P, R = this;
|
|
11195
11199
|
L = Number(L);
|
|
11196
|
-
var
|
|
11197
|
-
var ce = M(
|
|
11198
|
-
return k.w(ce.date(ce.date() + Math.round(U * L)),
|
|
11200
|
+
var T = k.p(F), $ = function(U) {
|
|
11201
|
+
var ce = M(R);
|
|
11202
|
+
return k.w(ce.date(ce.date() + Math.round(U * L)), R);
|
|
11199
11203
|
};
|
|
11200
|
-
if (
|
|
11201
|
-
if (
|
|
11202
|
-
if (
|
|
11203
|
-
if (
|
|
11204
|
-
var
|
|
11205
|
-
return k.w(
|
|
11206
|
-
},
|
|
11204
|
+
if (T === d) return this.set(d, this.$M + L);
|
|
11205
|
+
if (T === h) return this.set(h, this.$y + L);
|
|
11206
|
+
if (T === c) return $(1);
|
|
11207
|
+
if (T === u) return $(7);
|
|
11208
|
+
var z = (P = {}, P[a] = i, P[l] = r, P[s] = n, P)[T] || 1, G = this.$d.getTime() + L * z;
|
|
11209
|
+
return k.w(G, this);
|
|
11210
|
+
}, E.subtract = function(L, F) {
|
|
11207
11211
|
return this.add(-1 * L, F);
|
|
11208
|
-
},
|
|
11209
|
-
var F = this,
|
|
11210
|
-
if (!this.isValid()) return
|
|
11211
|
-
var
|
|
11212
|
-
return Me && (Me[ue] || Me(F,
|
|
11212
|
+
}, E.format = function(L) {
|
|
11213
|
+
var F = this, P = this.$locale();
|
|
11214
|
+
if (!this.isValid()) return P.invalidDate || p;
|
|
11215
|
+
var R = L || "YYYY-MM-DDTHH:mm:ssZ", T = k.z(this), $ = this.$H, z = this.$m, G = this.$M, U = P.weekdays, ce = P.months, pe = P.meridiem, Be = function(Me, ue, Z, He) {
|
|
11216
|
+
return Me && (Me[ue] || Me(F, R)) || Z[ue].slice(0, He);
|
|
11213
11217
|
}, ge = function(Me) {
|
|
11214
|
-
return k.s(
|
|
11218
|
+
return k.s($ % 12 || 12, Me, "0");
|
|
11215
11219
|
}, me = pe || function(Me, ue, Z) {
|
|
11216
11220
|
var He = Me < 12 ? "AM" : "PM";
|
|
11217
11221
|
return Z ? He.toLowerCase() : He;
|
|
11218
11222
|
};
|
|
11219
|
-
return
|
|
11223
|
+
return R.replace(b, function(Me, ue) {
|
|
11220
11224
|
return ue || function(Z) {
|
|
11221
11225
|
switch (Z) {
|
|
11222
11226
|
case "YY":
|
|
@@ -11224,13 +11228,13 @@ var u5 = { exports: {} };
|
|
|
11224
11228
|
case "YYYY":
|
|
11225
11229
|
return k.s(F.$y, 4, "0");
|
|
11226
11230
|
case "M":
|
|
11227
|
-
return
|
|
11231
|
+
return G + 1;
|
|
11228
11232
|
case "MM":
|
|
11229
|
-
return k.s(
|
|
11233
|
+
return k.s(G + 1, 2, "0");
|
|
11230
11234
|
case "MMM":
|
|
11231
|
-
return Be(
|
|
11235
|
+
return Be(P.monthsShort, G, ce, 3);
|
|
11232
11236
|
case "MMMM":
|
|
11233
|
-
return Be(ce,
|
|
11237
|
+
return Be(ce, G);
|
|
11234
11238
|
case "D":
|
|
11235
11239
|
return F.$D;
|
|
11236
11240
|
case "DD":
|
|
@@ -11238,27 +11242,27 @@ var u5 = { exports: {} };
|
|
|
11238
11242
|
case "d":
|
|
11239
11243
|
return String(F.$W);
|
|
11240
11244
|
case "dd":
|
|
11241
|
-
return Be(
|
|
11245
|
+
return Be(P.weekdaysMin, F.$W, U, 2);
|
|
11242
11246
|
case "ddd":
|
|
11243
|
-
return Be(
|
|
11247
|
+
return Be(P.weekdaysShort, F.$W, U, 3);
|
|
11244
11248
|
case "dddd":
|
|
11245
11249
|
return U[F.$W];
|
|
11246
11250
|
case "H":
|
|
11247
|
-
return String(
|
|
11251
|
+
return String($);
|
|
11248
11252
|
case "HH":
|
|
11249
|
-
return k.s(
|
|
11253
|
+
return k.s($, 2, "0");
|
|
11250
11254
|
case "h":
|
|
11251
11255
|
return ge(1);
|
|
11252
11256
|
case "hh":
|
|
11253
11257
|
return ge(2);
|
|
11254
11258
|
case "a":
|
|
11255
|
-
return me(z,
|
|
11259
|
+
return me($, z, !0);
|
|
11256
11260
|
case "A":
|
|
11257
|
-
return me(z,
|
|
11261
|
+
return me($, z, !1);
|
|
11258
11262
|
case "m":
|
|
11259
|
-
return String(
|
|
11263
|
+
return String(z);
|
|
11260
11264
|
case "mm":
|
|
11261
|
-
return k.s(
|
|
11265
|
+
return k.s(z, 2, "0");
|
|
11262
11266
|
case "s":
|
|
11263
11267
|
return String(F.$s);
|
|
11264
11268
|
case "ss":
|
|
@@ -11266,75 +11270,75 @@ var u5 = { exports: {} };
|
|
|
11266
11270
|
case "SSS":
|
|
11267
11271
|
return k.s(F.$ms, 3, "0");
|
|
11268
11272
|
case "Z":
|
|
11269
|
-
return
|
|
11273
|
+
return T;
|
|
11270
11274
|
}
|
|
11271
11275
|
return null;
|
|
11272
|
-
}(Me) ||
|
|
11276
|
+
}(Me) || T.replace(":", "");
|
|
11273
11277
|
});
|
|
11274
|
-
},
|
|
11278
|
+
}, E.utcOffset = function() {
|
|
11275
11279
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
11276
|
-
},
|
|
11277
|
-
var
|
|
11278
|
-
return k.m(
|
|
11280
|
+
}, E.diff = function(L, F, P) {
|
|
11281
|
+
var R, T = this, $ = k.p(F), z = M(L), G = (z.utcOffset() - this.utcOffset()) * i, U = this - z, ce = function() {
|
|
11282
|
+
return k.m(T, z);
|
|
11279
11283
|
};
|
|
11280
|
-
switch (
|
|
11284
|
+
switch ($) {
|
|
11281
11285
|
case h:
|
|
11282
|
-
|
|
11286
|
+
R = ce() / 12;
|
|
11283
11287
|
break;
|
|
11284
11288
|
case d:
|
|
11285
|
-
|
|
11289
|
+
R = ce();
|
|
11286
11290
|
break;
|
|
11287
11291
|
case f:
|
|
11288
|
-
|
|
11292
|
+
R = ce() / 3;
|
|
11289
11293
|
break;
|
|
11290
11294
|
case u:
|
|
11291
|
-
|
|
11295
|
+
R = (U - G) / 6048e5;
|
|
11292
11296
|
break;
|
|
11293
11297
|
case c:
|
|
11294
|
-
|
|
11298
|
+
R = (U - G) / 864e5;
|
|
11295
11299
|
break;
|
|
11296
11300
|
case l:
|
|
11297
|
-
|
|
11301
|
+
R = U / r;
|
|
11298
11302
|
break;
|
|
11299
11303
|
case a:
|
|
11300
|
-
|
|
11304
|
+
R = U / i;
|
|
11301
11305
|
break;
|
|
11302
11306
|
case s:
|
|
11303
|
-
|
|
11307
|
+
R = U / n;
|
|
11304
11308
|
break;
|
|
11305
11309
|
default:
|
|
11306
|
-
|
|
11310
|
+
R = U;
|
|
11307
11311
|
}
|
|
11308
|
-
return
|
|
11309
|
-
},
|
|
11312
|
+
return P ? R : k.a(R);
|
|
11313
|
+
}, E.daysInMonth = function() {
|
|
11310
11314
|
return this.endOf(d).$D;
|
|
11311
|
-
},
|
|
11312
|
-
return
|
|
11313
|
-
},
|
|
11315
|
+
}, E.$locale = function() {
|
|
11316
|
+
return _[this.$L];
|
|
11317
|
+
}, E.locale = function(L, F) {
|
|
11314
11318
|
if (!L) return this.$L;
|
|
11315
|
-
var
|
|
11316
|
-
return
|
|
11317
|
-
},
|
|
11319
|
+
var P = this.clone(), R = I(L, F, !0);
|
|
11320
|
+
return R && (P.$L = R), P;
|
|
11321
|
+
}, E.clone = function() {
|
|
11318
11322
|
return k.w(this.$d, this);
|
|
11319
|
-
},
|
|
11323
|
+
}, E.toDate = function() {
|
|
11320
11324
|
return new Date(this.valueOf());
|
|
11321
|
-
},
|
|
11325
|
+
}, E.toJSON = function() {
|
|
11322
11326
|
return this.isValid() ? this.toISOString() : null;
|
|
11323
|
-
},
|
|
11327
|
+
}, E.toISOString = function() {
|
|
11324
11328
|
return this.$d.toISOString();
|
|
11325
|
-
},
|
|
11329
|
+
}, E.toString = function() {
|
|
11326
11330
|
return this.$d.toUTCString();
|
|
11327
11331
|
}, D;
|
|
11328
11332
|
}(), H = O.prototype;
|
|
11329
11333
|
return M.prototype = H, [["$ms", o], ["$s", s], ["$m", a], ["$H", l], ["$W", c], ["$M", d], ["$y", h], ["$D", g]].forEach(function(D) {
|
|
11330
|
-
H[D[1]] = function(
|
|
11331
|
-
return this.$g(
|
|
11334
|
+
H[D[1]] = function(E) {
|
|
11335
|
+
return this.$g(E, D[0], D[1]);
|
|
11332
11336
|
};
|
|
11333
|
-
}), M.extend = function(D,
|
|
11334
|
-
return D.$i || (D(
|
|
11337
|
+
}), M.extend = function(D, E) {
|
|
11338
|
+
return D.$i || (D(E, O, M), D.$i = !0), M;
|
|
11335
11339
|
}, M.locale = I, M.isDayjs = w, M.unix = function(D) {
|
|
11336
11340
|
return M(1e3 * D);
|
|
11337
|
-
}, M.en =
|
|
11341
|
+
}, M.en = _[y], M.Ls = _, M.p = {}, M;
|
|
11338
11342
|
});
|
|
11339
11343
|
})(u5);
|
|
11340
11344
|
var Ex = u5.exports;
|
|
@@ -11373,9 +11377,9 @@ var d5 = { exports: {} };
|
|
|
11373
11377
|
if (b(p)) return this.$u ? 0 : b(this.$offset) ? d.call(this) : this.$offset;
|
|
11374
11378
|
if (typeof p == "string" && (p = function(y) {
|
|
11375
11379
|
y === void 0 && (y = "");
|
|
11376
|
-
var
|
|
11377
|
-
if (!
|
|
11378
|
-
var A = ("" +
|
|
11380
|
+
var _ = y.match(i);
|
|
11381
|
+
if (!_) return null;
|
|
11382
|
+
var A = ("" + _[0]).match(r) || ["-", 0, 0], w = A[0], I = 60 * +A[1] + +A[2];
|
|
11379
11383
|
return I === 0 ? 0 : w === "+" ? I : -I;
|
|
11380
11384
|
}(p), p === null)) return this;
|
|
11381
11385
|
var v = Math.abs(p) <= 16 ? 60 * p : p;
|
|
@@ -12040,24 +12044,24 @@ const lk = ({ used: e, max: t, resourceName: n, warningThreshold: i = 5, classNa
|
|
|
12040
12044
|
const p = c.current.getBoundingClientRect(), m = u.current;
|
|
12041
12045
|
if (!m) return;
|
|
12042
12046
|
const b = m.getBoundingClientRect(), v = window.innerWidth, C = window.innerHeight;
|
|
12043
|
-
let S = n, y = 0,
|
|
12047
|
+
let S = n, y = 0, _ = 0, A = 0, w = 0;
|
|
12044
12048
|
switch (n === "top" && p.top - b.height < 10 ? S = "bottom" : n === "bottom" && p.bottom + b.height > C - 10 ? S = "top" : n === "left" && p.left - b.width < 10 ? S = "right" : n === "right" && p.right + b.width > v - 10 && (S = "left"), S) {
|
|
12045
12049
|
case "top":
|
|
12046
|
-
y = p.top - b.height - 8,
|
|
12050
|
+
y = p.top - b.height - 8, _ = p.left + p.width / 2 - b.width / 2, A = b.height - 4, w = b.width / 2 - 5;
|
|
12047
12051
|
break;
|
|
12048
12052
|
case "bottom":
|
|
12049
|
-
y = p.bottom + 8,
|
|
12053
|
+
y = p.bottom + 8, _ = p.left + p.width / 2 - b.width / 2, A = -5, w = b.width / 2 - 5;
|
|
12050
12054
|
break;
|
|
12051
12055
|
case "left":
|
|
12052
|
-
y = p.top + p.height / 2 - b.height / 2,
|
|
12056
|
+
y = p.top + p.height / 2 - b.height / 2, _ = p.left - b.width - 8, A = b.height / 2 - 5, w = b.width - 4;
|
|
12053
12057
|
break;
|
|
12054
12058
|
case "right":
|
|
12055
|
-
y = p.top + p.height / 2 - b.height / 2,
|
|
12059
|
+
y = p.top + p.height / 2 - b.height / 2, _ = p.right + 8, A = b.height / 2 - 5, w = -5;
|
|
12056
12060
|
break;
|
|
12057
12061
|
}
|
|
12058
12062
|
s({
|
|
12059
12063
|
top: `${y}px`,
|
|
12060
|
-
left: `${
|
|
12064
|
+
left: `${_}px`,
|
|
12061
12065
|
opacity: 1,
|
|
12062
12066
|
visibility: "visible"
|
|
12063
12067
|
}), l({
|
|
@@ -12270,7 +12274,7 @@ License: MIT
|
|
|
12270
12274
|
}, this._readChunk = function() {
|
|
12271
12275
|
if (this._finished) this._chunkLoaded();
|
|
12272
12276
|
else {
|
|
12273
|
-
if (I = new XMLHttpRequest(), this._config.withCredentials && (I.withCredentials = this._config.withCredentials), o || (I.onload =
|
|
12277
|
+
if (I = new XMLHttpRequest(), this._config.withCredentials && (I.withCredentials = this._config.withCredentials), o || (I.onload = _(this._chunkLoaded, this), I.onerror = _(this._chunkError, this)), I.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !o), this._config.downloadRequestHeaders) {
|
|
12274
12278
|
var M, k = this._config.downloadRequestHeaders;
|
|
12275
12279
|
for (M in k) I.setRequestHeader(M, k[M]);
|
|
12276
12280
|
}
|
|
@@ -12293,7 +12297,7 @@ License: MIT
|
|
|
12293
12297
|
(w = w || {}).chunkSize || (w.chunkSize = c.LocalChunkSize), u.call(this, w);
|
|
12294
12298
|
var I, M, k = typeof FileReader < "u";
|
|
12295
12299
|
this.stream = function(O) {
|
|
12296
|
-
this._input = O, M = O.slice || O.webkitSlice || O.mozSlice, k ? ((I = new FileReader()).onload =
|
|
12300
|
+
this._input = O, M = O.slice || O.webkitSlice || O.mozSlice, k ? ((I = new FileReader()).onload = _(this._chunkLoaded, this), I.onerror = _(this._chunkError, this)) : I = new FileReaderSync(), this._nextChunk();
|
|
12297
12301
|
}, this._nextChunk = function() {
|
|
12298
12302
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
12299
12303
|
}, this._readChunk = function() {
|
|
@@ -12327,79 +12331,79 @@ License: MIT
|
|
|
12327
12331
|
k && I.length === 1 && (this._finished = !0);
|
|
12328
12332
|
}, this._nextChunk = function() {
|
|
12329
12333
|
this._checkIsFinished(), I.length ? this.parseChunk(I.shift()) : M = !0;
|
|
12330
|
-
}, this._streamData =
|
|
12334
|
+
}, this._streamData = _(function(O) {
|
|
12331
12335
|
try {
|
|
12332
12336
|
I.push(typeof O == "string" ? O : O.toString(this._config.encoding)), M && (M = !1, this._checkIsFinished(), this.parseChunk(I.shift()));
|
|
12333
12337
|
} catch (H) {
|
|
12334
12338
|
this._streamError(H);
|
|
12335
12339
|
}
|
|
12336
|
-
}, this), this._streamError =
|
|
12340
|
+
}, this), this._streamError = _(function(O) {
|
|
12337
12341
|
this._streamCleanUp(), this._sendError(O);
|
|
12338
|
-
}, this), this._streamEnd =
|
|
12342
|
+
}, this), this._streamEnd = _(function() {
|
|
12339
12343
|
this._streamCleanUp(), k = !0, this._streamData("");
|
|
12340
|
-
}, this), this._streamCleanUp =
|
|
12344
|
+
}, this), this._streamCleanUp = _(function() {
|
|
12341
12345
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
12342
12346
|
}, this);
|
|
12343
12347
|
}
|
|
12344
12348
|
function p(w) {
|
|
12345
|
-
var I, M, k, O, H = Math.pow(2, 53), D = -H,
|
|
12349
|
+
var I, M, k, O, H = Math.pow(2, 53), D = -H, E = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, L = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, F = this, P = 0, R = 0, T = !1, $ = !1, z = [], G = { data: [], errors: [], meta: {} };
|
|
12346
12350
|
function U(ge) {
|
|
12347
12351
|
return w.skipEmptyLines === "greedy" ? ge.join("").trim() === "" : ge.length === 1 && ge[0].length === 0;
|
|
12348
12352
|
}
|
|
12349
12353
|
function ce() {
|
|
12350
|
-
if (
|
|
12354
|
+
if (G && k && (Be("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + c.DefaultDelimiter + "'"), k = !1), w.skipEmptyLines && (G.data = G.data.filter(function(ue) {
|
|
12351
12355
|
return !U(ue);
|
|
12352
12356
|
})), pe()) {
|
|
12353
12357
|
let ue = function(Z, He) {
|
|
12354
|
-
A(w.transformHeader) && (Z = w.transformHeader(Z, He)),
|
|
12358
|
+
A(w.transformHeader) && (Z = w.transformHeader(Z, He)), z.push(Z);
|
|
12355
12359
|
};
|
|
12356
|
-
if (
|
|
12357
|
-
for (var ge = 0; pe() && ge <
|
|
12358
|
-
|
|
12359
|
-
} else
|
|
12360
|
+
if (G) if (Array.isArray(G.data[0])) {
|
|
12361
|
+
for (var ge = 0; pe() && ge < G.data.length; ge++) G.data[ge].forEach(ue);
|
|
12362
|
+
G.data.splice(0, 1);
|
|
12363
|
+
} else G.data.forEach(ue);
|
|
12360
12364
|
}
|
|
12361
12365
|
function me(ue, Z) {
|
|
12362
12366
|
for (var He = w.header ? {} : [], re = 0; re < ue.length; re++) {
|
|
12363
|
-
var oe = re,
|
|
12364
|
-
if (
|
|
12367
|
+
var oe = re, B = ue[re], B = ((se, J) => ((ie) => (w.dynamicTypingFunction && w.dynamicTyping[ie] === void 0 && (w.dynamicTyping[ie] = w.dynamicTypingFunction(ie)), (w.dynamicTyping[ie] || w.dynamicTyping) === !0))(se) ? J === "true" || J === "TRUE" || J !== "false" && J !== "FALSE" && (((ie) => {
|
|
12368
|
+
if (E.test(ie) && (ie = parseFloat(ie), D < ie && ie < H))
|
|
12365
12369
|
return 1;
|
|
12366
|
-
})(J) ? parseFloat(J) : L.test(J) ? new Date(J) : J === "" ? null : J) : J)(oe = w.header ? re >=
|
|
12367
|
-
oe === "__parsed_extra" ? (He[oe] = He[oe] || [], He[oe].push(
|
|
12370
|
+
})(J) ? parseFloat(J) : L.test(J) ? new Date(J) : J === "" ? null : J) : J)(oe = w.header ? re >= z.length ? "__parsed_extra" : z[re] : oe, B = w.transform ? w.transform(B, oe) : B);
|
|
12371
|
+
oe === "__parsed_extra" ? (He[oe] = He[oe] || [], He[oe].push(B)) : He[oe] = B;
|
|
12368
12372
|
}
|
|
12369
|
-
return w.header && (re >
|
|
12373
|
+
return w.header && (re > z.length ? Be("FieldMismatch", "TooManyFields", "Too many fields: expected " + z.length + " fields but parsed " + re, R + Z) : re < z.length && Be("FieldMismatch", "TooFewFields", "Too few fields: expected " + z.length + " fields but parsed " + re, R + Z)), He;
|
|
12370
12374
|
}
|
|
12371
12375
|
var Me;
|
|
12372
|
-
|
|
12376
|
+
G && (w.header || w.dynamicTyping || w.transform) && (Me = 1, !G.data.length || Array.isArray(G.data[0]) ? (G.data = G.data.map(me), Me = G.data.length) : G.data = me(G.data, 0), w.header && G.meta && (G.meta.fields = z), R += Me);
|
|
12373
12377
|
}
|
|
12374
12378
|
function pe() {
|
|
12375
|
-
return w.header &&
|
|
12379
|
+
return w.header && z.length === 0;
|
|
12376
12380
|
}
|
|
12377
12381
|
function Be(ge, me, Me, ue) {
|
|
12378
|
-
ge = { type: ge, code: me, message: Me }, ue !== void 0 && (ge.row = ue),
|
|
12382
|
+
ge = { type: ge, code: me, message: Me }, ue !== void 0 && (ge.row = ue), G.errors.push(ge);
|
|
12379
12383
|
}
|
|
12380
12384
|
A(w.step) && (O = w.step, w.step = function(ge) {
|
|
12381
|
-
|
|
12385
|
+
G = ge, pe() ? ce() : (ce(), G.data.length !== 0 && (P += ge.data.length, w.preview && P > w.preview ? M.abort() : (G.data = G.data[0], O(G, F))));
|
|
12382
12386
|
}), this.parse = function(ge, me, Me) {
|
|
12383
|
-
var ue = w.quoteChar || '"', ue = (w.newline || (w.newline = this.guessLineEndings(ge, ue)), k = !1, w.delimiter ? A(w.delimiter) && (w.delimiter = w.delimiter(ge),
|
|
12387
|
+
var ue = w.quoteChar || '"', ue = (w.newline || (w.newline = this.guessLineEndings(ge, ue)), k = !1, w.delimiter ? A(w.delimiter) && (w.delimiter = w.delimiter(ge), G.meta.delimiter = w.delimiter) : ((ue = ((Z, He, re, oe, B) => {
|
|
12384
12388
|
var se, J, ie, ne;
|
|
12385
|
-
|
|
12386
|
-
for (var te = 0; te <
|
|
12387
|
-
for (var ae, Ce =
|
|
12389
|
+
B = B || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
12390
|
+
for (var te = 0; te < B.length; te++) {
|
|
12391
|
+
for (var ae, Ce = B[te], le = 0, ee = 0, Se = 0, K = (ie = void 0, new b({ comments: oe, delimiter: Ce, newline: He, preview: 10 }).parse(Z)), we = 0; we < K.data.length; we++) re && U(K.data[we]) ? Se++ : (ae = K.data[we].length, ee += ae, ie === void 0 ? ie = ae : 0 < ae && (le += Math.abs(ae - ie), ie = ae));
|
|
12388
12392
|
0 < K.data.length && (ee /= K.data.length - Se), (J === void 0 || le <= J) && (ne === void 0 || ne < ee) && 1.99 < ee && (J = le, se = Ce, ne = ee);
|
|
12389
12393
|
}
|
|
12390
12394
|
return { successful: !!(w.delimiter = se), bestDelimiter: se };
|
|
12391
|
-
})(ge, w.newline, w.skipEmptyLines, w.comments, w.delimitersToGuess)).successful ? w.delimiter = ue.bestDelimiter : (k = !0, w.delimiter = c.DefaultDelimiter),
|
|
12392
|
-
return w.preview && w.header && ue.preview++, I = ge, M = new b(ue),
|
|
12395
|
+
})(ge, w.newline, w.skipEmptyLines, w.comments, w.delimitersToGuess)).successful ? w.delimiter = ue.bestDelimiter : (k = !0, w.delimiter = c.DefaultDelimiter), G.meta.delimiter = w.delimiter), y(w));
|
|
12396
|
+
return w.preview && w.header && ue.preview++, I = ge, M = new b(ue), G = M.parse(I, me, Me), ce(), T ? { meta: { paused: !0 } } : G || { meta: { paused: !1 } };
|
|
12393
12397
|
}, this.paused = function() {
|
|
12394
|
-
return
|
|
12398
|
+
return T;
|
|
12395
12399
|
}, this.pause = function() {
|
|
12396
|
-
|
|
12400
|
+
T = !0, M.abort(), I = A(w.chunk) ? "" : I.substring(M.getCharIndex());
|
|
12397
12401
|
}, this.resume = function() {
|
|
12398
|
-
F.streamer._halted ? (
|
|
12402
|
+
F.streamer._halted ? (T = !1, F.streamer.parseChunk(I, !0)) : setTimeout(F.resume, 3);
|
|
12399
12403
|
}, this.aborted = function() {
|
|
12400
|
-
return
|
|
12404
|
+
return $;
|
|
12401
12405
|
}, this.abort = function() {
|
|
12402
|
-
|
|
12406
|
+
$ = !0, M.abort(), G.meta.aborted = !0, A(w.complete) && w.complete(G), I = "";
|
|
12403
12407
|
}, this.guessLineEndings = function(Z, ue) {
|
|
12404
12408
|
Z = Z.substring(0, 1048576);
|
|
12405
12409
|
var ue = new RegExp(m(ue) + "([^]*?)" + m(ue), "gm"), Me = (Z = Z.replace(ue, "")).split("\r"), ue = Z.split(`
|
|
@@ -12416,74 +12420,74 @@ License: MIT
|
|
|
12416
12420
|
return w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
12417
12421
|
}
|
|
12418
12422
|
function b(w) {
|
|
12419
|
-
var I = (w = w || {}).delimiter, M = w.newline, k = w.comments, O = w.step, H = w.preview, D = w.fastMode,
|
|
12420
|
-
if (w.escapeChar !== void 0 && (
|
|
12423
|
+
var I = (w = w || {}).delimiter, M = w.newline, k = w.comments, O = w.step, H = w.preview, D = w.fastMode, E = null, L = !1, F = w.quoteChar == null ? '"' : w.quoteChar, P = F;
|
|
12424
|
+
if (w.escapeChar !== void 0 && (P = w.escapeChar), (typeof I != "string" || -1 < c.BAD_DELIMITERS.indexOf(I)) && (I = ","), k === I) throw new Error("Comment character same as delimiter");
|
|
12421
12425
|
k === !0 ? k = "#" : (typeof k != "string" || -1 < c.BAD_DELIMITERS.indexOf(k)) && (k = !1), M !== `
|
|
12422
12426
|
` && M !== "\r" && M !== `\r
|
|
12423
12427
|
` && (M = `
|
|
12424
12428
|
`);
|
|
12425
|
-
var
|
|
12426
|
-
this.parse = function(z, G
|
|
12427
|
-
if (typeof
|
|
12428
|
-
var U =
|
|
12429
|
-
if (
|
|
12430
|
-
if (D || D !== !1 &&
|
|
12431
|
-
for (var He =
|
|
12432
|
-
if (ue = He[re],
|
|
12433
|
-
else if (
|
|
12429
|
+
var R = 0, T = !1;
|
|
12430
|
+
this.parse = function($, z, G) {
|
|
12431
|
+
if (typeof $ != "string") throw new Error("Input must be a string");
|
|
12432
|
+
var U = $.length, ce = I.length, pe = M.length, Be = k.length, ge = A(O), me = [], Me = [], ue = [], Z = R = 0;
|
|
12433
|
+
if (!$) return le();
|
|
12434
|
+
if (D || D !== !1 && $.indexOf(F) === -1) {
|
|
12435
|
+
for (var He = $.split(M), re = 0; re < He.length; re++) {
|
|
12436
|
+
if (ue = He[re], R += ue.length, re !== He.length - 1) R += M.length;
|
|
12437
|
+
else if (G) return le();
|
|
12434
12438
|
if (!k || ue.substring(0, Be) !== k) {
|
|
12435
12439
|
if (ge) {
|
|
12436
|
-
if (me = [], ne(ue.split(I)), ee(),
|
|
12440
|
+
if (me = [], ne(ue.split(I)), ee(), T) return le();
|
|
12437
12441
|
} else ne(ue.split(I));
|
|
12438
12442
|
if (H && H <= re) return me = me.slice(0, H), le(!0);
|
|
12439
12443
|
}
|
|
12440
12444
|
}
|
|
12441
12445
|
return le();
|
|
12442
12446
|
}
|
|
12443
|
-
for (var oe =
|
|
12444
|
-
if ((J =
|
|
12445
|
-
if (J === U - 1) return ae(
|
|
12446
|
-
if (F ===
|
|
12447
|
-
else if (F ===
|
|
12448
|
-
oe !== -1 && oe < J + 1 && (oe =
|
|
12449
|
-
var ie = te((
|
|
12450
|
-
if (
|
|
12451
|
-
ue.push(
|
|
12447
|
+
for (var oe = $.indexOf(I, R), B = $.indexOf(M, R), se = new RegExp(m(P) + m(F), "g"), J = $.indexOf(F, R); ; ) if ($[R] === F) for (J = R, R++; ; ) {
|
|
12448
|
+
if ((J = $.indexOf(F, J + 1)) === -1) return G || Me.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: me.length, index: R }), ae();
|
|
12449
|
+
if (J === U - 1) return ae($.substring(R, J).replace(se, F));
|
|
12450
|
+
if (F === P && $[J + 1] === P) J++;
|
|
12451
|
+
else if (F === P || J === 0 || $[J - 1] !== P) {
|
|
12452
|
+
oe !== -1 && oe < J + 1 && (oe = $.indexOf(I, J + 1));
|
|
12453
|
+
var ie = te((B = B !== -1 && B < J + 1 ? $.indexOf(M, J + 1) : B) === -1 ? oe : Math.min(oe, B));
|
|
12454
|
+
if ($.substr(J + 1 + ie, ce) === I) {
|
|
12455
|
+
ue.push($.substring(R, J).replace(se, F)), $[R = J + 1 + ie + ce] !== F && (J = $.indexOf(F, R)), oe = $.indexOf(I, R), B = $.indexOf(M, R);
|
|
12452
12456
|
break;
|
|
12453
12457
|
}
|
|
12454
|
-
if (ie = te(
|
|
12455
|
-
if (ue.push(
|
|
12458
|
+
if (ie = te(B), $.substring(J + 1 + ie, J + 1 + ie + pe) === M) {
|
|
12459
|
+
if (ue.push($.substring(R, J).replace(se, F)), Ce(J + 1 + ie + pe), oe = $.indexOf(I, R), J = $.indexOf(F, R), ge && (ee(), T)) return le();
|
|
12456
12460
|
if (H && me.length >= H) return le(!0);
|
|
12457
12461
|
break;
|
|
12458
12462
|
}
|
|
12459
|
-
Me.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: me.length, index:
|
|
12463
|
+
Me.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: me.length, index: R }), J++;
|
|
12460
12464
|
}
|
|
12461
12465
|
}
|
|
12462
|
-
else if (k && ue.length === 0 &&
|
|
12463
|
-
if (
|
|
12464
|
-
|
|
12465
|
-
} else if (oe !== -1 && (oe <
|
|
12466
|
+
else if (k && ue.length === 0 && $.substring(R, R + Be) === k) {
|
|
12467
|
+
if (B === -1) return le();
|
|
12468
|
+
R = B + pe, B = $.indexOf(M, R), oe = $.indexOf(I, R);
|
|
12469
|
+
} else if (oe !== -1 && (oe < B || B === -1)) ue.push($.substring(R, oe)), R = oe + ce, oe = $.indexOf(I, R);
|
|
12466
12470
|
else {
|
|
12467
|
-
if (
|
|
12468
|
-
if (ue.push(
|
|
12471
|
+
if (B === -1) break;
|
|
12472
|
+
if (ue.push($.substring(R, B)), Ce(B + pe), ge && (ee(), T)) return le();
|
|
12469
12473
|
if (H && me.length >= H) return le(!0);
|
|
12470
12474
|
}
|
|
12471
12475
|
return ae();
|
|
12472
12476
|
function ne(Se) {
|
|
12473
|
-
me.push(Se), Z =
|
|
12477
|
+
me.push(Se), Z = R;
|
|
12474
12478
|
}
|
|
12475
12479
|
function te(Se) {
|
|
12476
12480
|
var K = 0;
|
|
12477
|
-
return K = Se !== -1 && (Se =
|
|
12481
|
+
return K = Se !== -1 && (Se = $.substring(J + 1, Se)) && Se.trim() === "" ? Se.length : K;
|
|
12478
12482
|
}
|
|
12479
12483
|
function ae(Se) {
|
|
12480
|
-
return
|
|
12484
|
+
return G || (Se === void 0 && (Se = $.substring(R)), ue.push(Se), R = U, ne(ue), ge && ee()), le();
|
|
12481
12485
|
}
|
|
12482
12486
|
function Ce(Se) {
|
|
12483
|
-
|
|
12487
|
+
R = Se, ne(ue), ue = [], B = $.indexOf(M, R);
|
|
12484
12488
|
}
|
|
12485
12489
|
function le(Se) {
|
|
12486
|
-
if (w.header && !
|
|
12490
|
+
if (w.header && !z && me.length && !L) {
|
|
12487
12491
|
var K = me[0], we = /* @__PURE__ */ Object.create(null), Oe = new Set(K);
|
|
12488
12492
|
let Ze = !1;
|
|
12489
12493
|
for (let ft = 0; ft < K.length; ft++) {
|
|
@@ -12491,21 +12495,21 @@ License: MIT
|
|
|
12491
12495
|
if (we[je = A(w.transformHeader) ? w.transformHeader(je, ft) : je]) {
|
|
12492
12496
|
let st, ht = we[je];
|
|
12493
12497
|
for (; st = je + "_" + ht, ht++, Oe.has(st); ) ;
|
|
12494
|
-
Oe.add(st), K[ft] = st, we[je]++, Ze = !0, (
|
|
12498
|
+
Oe.add(st), K[ft] = st, we[je]++, Ze = !0, (E = E === null ? {} : E)[st] = je;
|
|
12495
12499
|
} else we[je] = 1, K[ft] = je;
|
|
12496
12500
|
Oe.add(je);
|
|
12497
12501
|
}
|
|
12498
12502
|
Ze && console.warn("Duplicate headers found and renamed."), L = !0;
|
|
12499
12503
|
}
|
|
12500
|
-
return { data: me, errors: Me, meta: { delimiter: I, linebreak: M, aborted:
|
|
12504
|
+
return { data: me, errors: Me, meta: { delimiter: I, linebreak: M, aborted: T, truncated: !!Se, cursor: Z + (z || 0), renamedHeaders: E } };
|
|
12501
12505
|
}
|
|
12502
12506
|
function ee() {
|
|
12503
12507
|
O(le()), me = [], Me = [];
|
|
12504
12508
|
}
|
|
12505
12509
|
}, this.abort = function() {
|
|
12506
|
-
|
|
12510
|
+
T = !0;
|
|
12507
12511
|
}, this.getCharIndex = function() {
|
|
12508
|
-
return
|
|
12512
|
+
return R;
|
|
12509
12513
|
};
|
|
12510
12514
|
}
|
|
12511
12515
|
function v(w) {
|
|
@@ -12535,7 +12539,7 @@ License: MIT
|
|
|
12535
12539
|
for (I in w) M[I] = y(w[I]);
|
|
12536
12540
|
return M;
|
|
12537
12541
|
}
|
|
12538
|
-
function
|
|
12542
|
+
function _(w, I) {
|
|
12539
12543
|
return function() {
|
|
12540
12544
|
w.apply(I, arguments);
|
|
12541
12545
|
};
|
|
@@ -12555,51 +12559,51 @@ License: MIT
|
|
|
12555
12559
|
})()).userStep = I.step, M.userChunk = I.chunk, M.userComplete = I.complete, M.userError = I.error, I.step = A(I.step), I.chunk = A(I.chunk), I.complete = A(I.complete), I.error = A(I.error), delete I.worker, M.postMessage({ input: w, config: I, workerId: M.id });
|
|
12556
12560
|
}, c.unparse = function(w, I) {
|
|
12557
12561
|
var M = !1, k = !0, O = ",", H = `\r
|
|
12558
|
-
`, D = '"',
|
|
12562
|
+
`, D = '"', E = D + D, L = !1, F = null, P = !1, R = ((() => {
|
|
12559
12563
|
if (typeof I == "object") {
|
|
12560
|
-
if (typeof I.delimiter != "string" || c.BAD_DELIMITERS.filter(function(
|
|
12561
|
-
return I.delimiter.indexOf(
|
|
12564
|
+
if (typeof I.delimiter != "string" || c.BAD_DELIMITERS.filter(function(z) {
|
|
12565
|
+
return I.delimiter.indexOf(z) !== -1;
|
|
12562
12566
|
}).length || (O = I.delimiter), typeof I.quotes != "boolean" && typeof I.quotes != "function" && !Array.isArray(I.quotes) || (M = I.quotes), typeof I.skipEmptyLines != "boolean" && typeof I.skipEmptyLines != "string" || (L = I.skipEmptyLines), typeof I.newline == "string" && (H = I.newline), typeof I.quoteChar == "string" && (D = I.quoteChar), typeof I.header == "boolean" && (k = I.header), Array.isArray(I.columns)) {
|
|
12563
12567
|
if (I.columns.length === 0) throw new Error("Option columns is empty");
|
|
12564
12568
|
F = I.columns;
|
|
12565
12569
|
}
|
|
12566
|
-
I.escapeChar !== void 0 && (
|
|
12570
|
+
I.escapeChar !== void 0 && (E = I.escapeChar + D), I.escapeFormulae instanceof RegExp ? P = I.escapeFormulae : typeof I.escapeFormulae == "boolean" && I.escapeFormulae && (P = /^[=+\-@\t\r].*$/);
|
|
12567
12571
|
}
|
|
12568
12572
|
})(), new RegExp(m(D), "g"));
|
|
12569
12573
|
if (typeof w == "string" && (w = JSON.parse(w)), Array.isArray(w)) {
|
|
12570
|
-
if (!w.length || Array.isArray(w[0])) return
|
|
12571
|
-
if (typeof w[0] == "object") return
|
|
12572
|
-
} else if (typeof w == "object") return typeof w.data == "string" && (w.data = JSON.parse(w.data)), Array.isArray(w.data) && (w.fields || (w.fields = w.meta && w.meta.fields || F), w.fields || (w.fields = Array.isArray(w.data[0]) ? w.fields : typeof w.data[0] == "object" ? Object.keys(w.data[0]) : []), Array.isArray(w.data[0]) || typeof w.data[0] == "object" || (w.data = [w.data])),
|
|
12574
|
+
if (!w.length || Array.isArray(w[0])) return T(null, w, L);
|
|
12575
|
+
if (typeof w[0] == "object") return T(F || Object.keys(w[0]), w, L);
|
|
12576
|
+
} else if (typeof w == "object") return typeof w.data == "string" && (w.data = JSON.parse(w.data)), Array.isArray(w.data) && (w.fields || (w.fields = w.meta && w.meta.fields || F), w.fields || (w.fields = Array.isArray(w.data[0]) ? w.fields : typeof w.data[0] == "object" ? Object.keys(w.data[0]) : []), Array.isArray(w.data[0]) || typeof w.data[0] == "object" || (w.data = [w.data])), T(w.fields || [], w.data || [], L);
|
|
12573
12577
|
throw new Error("Unable to serialize unrecognized input");
|
|
12574
|
-
function
|
|
12575
|
-
var ce = "", pe = (typeof
|
|
12578
|
+
function T(z, G, U) {
|
|
12579
|
+
var ce = "", pe = (typeof z == "string" && (z = JSON.parse(z)), typeof G == "string" && (G = JSON.parse(G)), Array.isArray(z) && 0 < z.length), Be = !Array.isArray(G[0]);
|
|
12576
12580
|
if (pe && k) {
|
|
12577
|
-
for (var ge = 0; ge <
|
|
12578
|
-
0 <
|
|
12581
|
+
for (var ge = 0; ge < z.length; ge++) 0 < ge && (ce += O), ce += $(z[ge], ge);
|
|
12582
|
+
0 < G.length && (ce += H);
|
|
12579
12583
|
}
|
|
12580
|
-
for (var me = 0; me <
|
|
12581
|
-
var Me = (pe ?
|
|
12582
|
-
if (U && !pe && (ue = U === "greedy" ?
|
|
12584
|
+
for (var me = 0; me < G.length; me++) {
|
|
12585
|
+
var Me = (pe ? z : G[me]).length, ue = !1, Z = pe ? Object.keys(G[me]).length === 0 : G[me].length === 0;
|
|
12586
|
+
if (U && !pe && (ue = U === "greedy" ? G[me].join("").trim() === "" : G[me].length === 1 && G[me][0].length === 0), U === "greedy" && pe) {
|
|
12583
12587
|
for (var He = [], re = 0; re < Me; re++) {
|
|
12584
|
-
var oe = Be ?
|
|
12585
|
-
He.push(
|
|
12588
|
+
var oe = Be ? z[re] : re;
|
|
12589
|
+
He.push(G[me][oe]);
|
|
12586
12590
|
}
|
|
12587
12591
|
ue = He.join("").trim() === "";
|
|
12588
12592
|
}
|
|
12589
12593
|
if (!ue) {
|
|
12590
|
-
for (var
|
|
12591
|
-
0 <
|
|
12592
|
-
var se = pe && Be ?
|
|
12593
|
-
ce +=
|
|
12594
|
+
for (var B = 0; B < Me; B++) {
|
|
12595
|
+
0 < B && !Z && (ce += O);
|
|
12596
|
+
var se = pe && Be ? z[B] : B;
|
|
12597
|
+
ce += $(G[me][se], B);
|
|
12594
12598
|
}
|
|
12595
|
-
me <
|
|
12599
|
+
me < G.length - 1 && (!U || 0 < Me && !Z) && (ce += H);
|
|
12596
12600
|
}
|
|
12597
12601
|
}
|
|
12598
12602
|
return ce;
|
|
12599
12603
|
}
|
|
12600
|
-
function z
|
|
12604
|
+
function $(z, G) {
|
|
12601
12605
|
var U, ce;
|
|
12602
|
-
return
|
|
12606
|
+
return z == null ? "" : z.constructor === Date ? JSON.stringify(z).slice(1, 25) : (ce = !1, P && typeof z == "string" && P.test(z) && (z = "'" + z, ce = !0), U = z.toString().replace(R, E), (ce = ce || M === !0 || typeof M == "function" && M(z, G) || Array.isArray(M) && M[G] || ((pe, Be) => {
|
|
12603
12607
|
for (var ge = 0; ge < Be.length; ge++) if (-1 < pe.indexOf(Be[ge])) return !0;
|
|
12604
12608
|
return !1;
|
|
12605
12609
|
})(U, c.BAD_DELIMITERS) || -1 < U.indexOf(O) || U.charAt(0) === " " || U.charAt(U.length - 1) === " ") ? D + U + D : U);
|
|
@@ -12614,18 +12618,18 @@ License: MIT
|
|
|
12614
12618
|
function k() {
|
|
12615
12619
|
if (M.length === 0) A(w.complete) && w.complete();
|
|
12616
12620
|
else {
|
|
12617
|
-
var H, D,
|
|
12621
|
+
var H, D, E, L, F = M[0];
|
|
12618
12622
|
if (A(w.before)) {
|
|
12619
|
-
var
|
|
12620
|
-
if (typeof
|
|
12621
|
-
if (
|
|
12622
|
-
if (
|
|
12623
|
-
typeof
|
|
12624
|
-
} else if (
|
|
12623
|
+
var P = w.before(F.file, F.inputElem);
|
|
12624
|
+
if (typeof P == "object") {
|
|
12625
|
+
if (P.action === "abort") return H = "AbortError", D = F.file, E = F.inputElem, L = P.reason, void (A(w.error) && w.error({ name: H }, D, E, L));
|
|
12626
|
+
if (P.action === "skip") return void O();
|
|
12627
|
+
typeof P.config == "object" && (F.instanceConfig = r.extend(F.instanceConfig, P.config));
|
|
12628
|
+
} else if (P === "skip") return void O();
|
|
12625
12629
|
}
|
|
12626
|
-
var
|
|
12627
|
-
F.instanceConfig.complete = function(
|
|
12628
|
-
A(
|
|
12630
|
+
var R = F.instanceConfig.complete;
|
|
12631
|
+
F.instanceConfig.complete = function(T) {
|
|
12632
|
+
A(R) && R(T, F.file, F.inputElem), O();
|
|
12629
12633
|
}, c.parse(F.file, F.instanceConfig);
|
|
12630
12634
|
}
|
|
12631
12635
|
}
|
|
@@ -14833,9 +14837,9 @@ function $5(e, t, n) {
|
|
|
14833
14837
|
];
|
|
14834
14838
|
const { property: i, start: r, end: o } = n, s = t.length, { compare: a, between: l, normalize: c } = H5(i), { start: u, end: d, loop: f, style: h } = Sw(e, t, n), g = [];
|
|
14835
14839
|
let p = !1, m = null, b, v, C;
|
|
14836
|
-
const S = () => l(r, C, b) && a(r, C) !== 0, y = () => a(o, b) === 0 || l(o, C, b),
|
|
14840
|
+
const S = () => l(r, C, b) && a(r, C) !== 0, y = () => a(o, b) === 0 || l(o, C, b), _ = () => p || S(), A = () => !p || y();
|
|
14837
14841
|
for (let w = u, I = u; w <= d; ++w)
|
|
14838
|
-
v = t[w % s], !v.skip && (b = c(v[i]), b !== C && (p = l(b, r, o), m === null &&
|
|
14842
|
+
v = t[w % s], !v.skip && (b = c(v[i]), b !== C && (p = l(b, r, o), m === null && _() && (m = a(b, r) === 0 ? w : I), m !== null && A() && (g.push(qd({
|
|
14839
14843
|
start: m,
|
|
14840
14844
|
end: w,
|
|
14841
14845
|
loop: f,
|
|
@@ -16336,13 +16340,13 @@ class us extends an {
|
|
|
16336
16340
|
const o = r === "reset", { iScale: s, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(n, r), f = s.axis, h = a.axis, { spanGaps: g, segment: p } = this.options, m = Mr(g) ? g : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || r === "none", v = n + i, C = t.length;
|
|
16337
16341
|
let S = n > 0 && this.getParsed(n - 1);
|
|
16338
16342
|
for (let y = 0; y < C; ++y) {
|
|
16339
|
-
const
|
|
16343
|
+
const _ = t[y], A = b ? _ : {};
|
|
16340
16344
|
if (y < n || y >= v) {
|
|
16341
16345
|
A.skip = !0;
|
|
16342
16346
|
continue;
|
|
16343
16347
|
}
|
|
16344
16348
|
const w = this.getParsed(y), I = Ve(w[h]), M = A[f] = s.getPixelForValue(w[f], y), k = A[h] = o || I ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, w, l) : w[h], y);
|
|
16345
|
-
A.skip = isNaN(M) || isNaN(k) || I, A.stop = y > 0 && Math.abs(w[f] - S[f]) > m, p && (A.parsed = w, A.raw = c.data[y]), d && (A.options = u || this.resolveDataElementOptions(y,
|
|
16349
|
+
A.skip = isNaN(M) || isNaN(k) || I, A.stop = y > 0 && Math.abs(w[f] - S[f]) > m, p && (A.parsed = w, A.raw = c.data[y]), d && (A.options = u || this.resolveDataElementOptions(y, _.active ? "active" : r)), b || this.updateElement(_, y, A, r), S = w;
|
|
16346
16350
|
}
|
|
16347
16351
|
}
|
|
16348
16352
|
getMaxOverflow() {
|
|
@@ -16602,8 +16606,8 @@ class fs extends an {
|
|
|
16602
16606
|
const o = r === "reset", { iScale: s, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(n, r), d = this.getSharedOptions(u), f = this.includeOptions(r, d), h = s.axis, g = a.axis, { spanGaps: p, segment: m } = this.options, b = Mr(p) ? p : Number.POSITIVE_INFINITY, v = this.chart._animationsDisabled || o || r === "none";
|
|
16603
16607
|
let C = n > 0 && this.getParsed(n - 1);
|
|
16604
16608
|
for (let S = n; S < n + i; ++S) {
|
|
16605
|
-
const y = t[S],
|
|
16606
|
-
A.skip = isNaN(I) || isNaN(M) || w, A.stop = S > 0 && Math.abs(
|
|
16609
|
+
const y = t[S], _ = this.getParsed(S), A = v ? y : {}, w = Ve(_[g]), I = A[h] = s.getPixelForValue(_[h], S), M = A[g] = o || w ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, _, l) : _[g], S);
|
|
16610
|
+
A.skip = isNaN(I) || isNaN(M) || w, A.stop = S > 0 && Math.abs(_[h] - C[h]) > b, m && (A.parsed = _, A.raw = c.data[S]), f && (A.options = d || this.resolveDataElementOptions(S, y.active ? "active" : r)), v || this.updateElement(y, S, A, r), C = _;
|
|
16607
16611
|
}
|
|
16608
16612
|
this.updateSharedOptions(d, r, u);
|
|
16609
16613
|
}
|
|
@@ -17700,14 +17704,14 @@ class Mi extends Vn {
|
|
|
17700
17704
|
s.push(C), a.push(S), c = Math.max(C, c), u = Math.max(S, u);
|
|
17701
17705
|
}
|
|
17702
17706
|
TS(o, n);
|
|
17703
|
-
const
|
|
17707
|
+
const _ = s.indexOf(c), A = a.indexOf(u), w = (I) => ({
|
|
17704
17708
|
width: s[I] || 0,
|
|
17705
17709
|
height: a[I] || 0
|
|
17706
17710
|
});
|
|
17707
17711
|
return {
|
|
17708
17712
|
first: w(0),
|
|
17709
17713
|
last: w(n - 1),
|
|
17710
|
-
widest: w(
|
|
17714
|
+
widest: w(_),
|
|
17711
17715
|
highest: w(A),
|
|
17712
17716
|
widths: s,
|
|
17713
17717
|
heights: a
|
|
@@ -17761,15 +17765,15 @@ class Mi extends Vn {
|
|
|
17761
17765
|
const n = this.axis, i = this.chart, r = this.options, { grid: o, position: s, border: a } = r, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), f = Qr(o), h = [], g = a.setContext(this.getContext()), p = g.display ? g.width : 0, m = p / 2, b = function(L) {
|
|
17762
17766
|
return Ri(i, L, p);
|
|
17763
17767
|
};
|
|
17764
|
-
let v, C, S, y,
|
|
17768
|
+
let v, C, S, y, _, A, w, I, M, k, O, H;
|
|
17765
17769
|
if (s === "top")
|
|
17766
17770
|
v = b(this.bottom), A = this.bottom - f, I = v - m, k = b(t.top) + m, H = t.bottom;
|
|
17767
17771
|
else if (s === "bottom")
|
|
17768
17772
|
v = b(this.top), k = t.top, H = b(t.bottom) - m, A = v + m, I = this.top + f;
|
|
17769
17773
|
else if (s === "left")
|
|
17770
|
-
v = b(this.right),
|
|
17774
|
+
v = b(this.right), _ = this.right - f, w = v - m, M = b(t.left) + m, O = t.right;
|
|
17771
17775
|
else if (s === "right")
|
|
17772
|
-
v = b(this.left), M = t.left, O = b(t.right) - m,
|
|
17776
|
+
v = b(this.left), M = t.left, O = b(t.right) - m, _ = v + m, w = this.left + f;
|
|
17773
17777
|
else if (n === "x") {
|
|
17774
17778
|
if (s === "center")
|
|
17775
17779
|
v = b((t.top + t.bottom) / 2 + 0.5);
|
|
@@ -17785,13 +17789,13 @@ class Mi extends Vn {
|
|
|
17785
17789
|
const L = Object.keys(s)[0], F = s[L];
|
|
17786
17790
|
v = b(this.chart.scales[L].getPixelForValue(F));
|
|
17787
17791
|
}
|
|
17788
|
-
|
|
17792
|
+
_ = v - m, w = _ - f, M = t.left, O = t.right;
|
|
17789
17793
|
}
|
|
17790
|
-
const D = Pe(r.ticks.maxTicksLimit, d),
|
|
17791
|
-
for (C = 0; C < d; C +=
|
|
17792
|
-
const L = this.getContext(C), F = o.setContext(L),
|
|
17793
|
-
S = DS(this, C, l), S !== void 0 && (y = Ri(i, S,
|
|
17794
|
-
tx1:
|
|
17794
|
+
const D = Pe(r.ticks.maxTicksLimit, d), E = Math.max(1, Math.ceil(d / D));
|
|
17795
|
+
for (C = 0; C < d; C += E) {
|
|
17796
|
+
const L = this.getContext(C), F = o.setContext(L), P = a.setContext(L), R = F.lineWidth, T = F.color, $ = P.dash || [], z = P.dashOffset, G = F.tickWidth, U = F.tickColor, ce = F.tickBorderDash || [], pe = F.tickBorderDashOffset;
|
|
17797
|
+
S = DS(this, C, l), S !== void 0 && (y = Ri(i, S, R), c ? _ = w = M = O = y : A = I = k = H = y, h.push({
|
|
17798
|
+
tx1: _,
|
|
17795
17799
|
ty1: A,
|
|
17796
17800
|
tx2: w,
|
|
17797
17801
|
ty2: I,
|
|
@@ -17799,11 +17803,11 @@ class Mi extends Vn {
|
|
|
17799
17803
|
y1: k,
|
|
17800
17804
|
x2: O,
|
|
17801
17805
|
y2: H,
|
|
17802
|
-
width:
|
|
17803
|
-
color:
|
|
17804
|
-
borderDash:
|
|
17805
|
-
borderDashOffset:
|
|
17806
|
-
tickWidth:
|
|
17806
|
+
width: R,
|
|
17807
|
+
color: T,
|
|
17808
|
+
borderDash: $,
|
|
17809
|
+
borderDashOffset: z,
|
|
17810
|
+
tickWidth: G,
|
|
17807
17811
|
tickColor: U,
|
|
17808
17812
|
tickBorderDash: ce,
|
|
17809
17813
|
tickBorderDashOffset: pe
|
|
@@ -17813,31 +17817,31 @@ class Mi extends Vn {
|
|
|
17813
17817
|
}
|
|
17814
17818
|
_computeLabelItems(t) {
|
|
17815
17819
|
const n = this.axis, i = this.options, { position: r, ticks: o } = i, s = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = o, f = Qr(i.grid), h = f + u, g = d ? -u : h, p = -mn(this.labelRotation), m = [];
|
|
17816
|
-
let b, v, C, S, y,
|
|
17820
|
+
let b, v, C, S, y, _, A, w, I, M, k, O, H = "middle";
|
|
17817
17821
|
if (r === "top")
|
|
17818
|
-
|
|
17822
|
+
_ = this.bottom - g, A = this._getXAxisLabelAlignment();
|
|
17819
17823
|
else if (r === "bottom")
|
|
17820
|
-
|
|
17824
|
+
_ = this.top + g, A = this._getXAxisLabelAlignment();
|
|
17821
17825
|
else if (r === "left") {
|
|
17822
|
-
const
|
|
17823
|
-
A =
|
|
17826
|
+
const E = this._getYAxisLabelAlignment(f);
|
|
17827
|
+
A = E.textAlign, y = E.x;
|
|
17824
17828
|
} else if (r === "right") {
|
|
17825
|
-
const
|
|
17826
|
-
A =
|
|
17829
|
+
const E = this._getYAxisLabelAlignment(f);
|
|
17830
|
+
A = E.textAlign, y = E.x;
|
|
17827
17831
|
} else if (n === "x") {
|
|
17828
17832
|
if (r === "center")
|
|
17829
|
-
|
|
17833
|
+
_ = (t.top + t.bottom) / 2 + h;
|
|
17830
17834
|
else if (Ge(r)) {
|
|
17831
|
-
const
|
|
17832
|
-
|
|
17835
|
+
const E = Object.keys(r)[0], L = r[E];
|
|
17836
|
+
_ = this.chart.scales[E].getPixelForValue(L) + h;
|
|
17833
17837
|
}
|
|
17834
17838
|
A = this._getXAxisLabelAlignment();
|
|
17835
17839
|
} else if (n === "y") {
|
|
17836
17840
|
if (r === "center")
|
|
17837
17841
|
y = (t.left + t.right) / 2 - h;
|
|
17838
17842
|
else if (Ge(r)) {
|
|
17839
|
-
const
|
|
17840
|
-
y = this.chart.scales[
|
|
17843
|
+
const E = Object.keys(r)[0], L = r[E];
|
|
17844
|
+
y = this.chart.scales[E].getPixelForValue(L);
|
|
17841
17845
|
}
|
|
17842
17846
|
A = this._getYAxisLabelAlignment(f).textAlign;
|
|
17843
17847
|
}
|
|
@@ -17845,21 +17849,21 @@ class Mi extends Vn {
|
|
|
17845
17849
|
const D = this._getLabelSizes();
|
|
17846
17850
|
for (b = 0, v = a.length; b < v; ++b) {
|
|
17847
17851
|
C = a[b], S = C.label;
|
|
17848
|
-
const
|
|
17852
|
+
const E = o.setContext(this.getContext(b));
|
|
17849
17853
|
w = this.getPixelForTick(b) + o.labelOffset, I = this._resolveTickFontOptions(b), M = I.lineHeight, k = lt(S) ? S.length : 1;
|
|
17850
|
-
const L = k / 2, F =
|
|
17851
|
-
let
|
|
17852
|
-
s ? (y = w, A === "inner" && (b === v - 1 ?
|
|
17853
|
-
let
|
|
17854
|
-
if (
|
|
17855
|
-
const
|
|
17856
|
-
let ce = O -
|
|
17854
|
+
const L = k / 2, F = E.color, P = E.textStrokeColor, R = E.textStrokeWidth;
|
|
17855
|
+
let T = A;
|
|
17856
|
+
s ? (y = w, A === "inner" && (b === v - 1 ? T = this.options.reverse ? "left" : "right" : b === 0 ? T = this.options.reverse ? "right" : "left" : T = "center"), r === "top" ? c === "near" || p !== 0 ? O = -k * M + M / 2 : c === "center" ? O = -D.highest.height / 2 - L * M + M : O = -D.highest.height + M / 2 : c === "near" || p !== 0 ? O = M / 2 : c === "center" ? O = D.highest.height / 2 - L * M : O = D.highest.height - k * M, d && (O *= -1), p !== 0 && !E.showLabelBackdrop && (y += M / 2 * Math.sin(p))) : (_ = w, O = (1 - k) * M / 2);
|
|
17857
|
+
let $;
|
|
17858
|
+
if (E.showLabelBackdrop) {
|
|
17859
|
+
const z = kt(E.backdropPadding), G = D.heights[b], U = D.widths[b];
|
|
17860
|
+
let ce = O - z.top, pe = 0 - z.left;
|
|
17857
17861
|
switch (H) {
|
|
17858
17862
|
case "middle":
|
|
17859
|
-
ce -=
|
|
17863
|
+
ce -= G / 2;
|
|
17860
17864
|
break;
|
|
17861
17865
|
case "bottom":
|
|
17862
|
-
ce -=
|
|
17866
|
+
ce -= G;
|
|
17863
17867
|
break;
|
|
17864
17868
|
}
|
|
17865
17869
|
switch (A) {
|
|
@@ -17873,12 +17877,12 @@ class Mi extends Vn {
|
|
|
17873
17877
|
b === v - 1 ? pe -= U : b > 0 && (pe -= U / 2);
|
|
17874
17878
|
break;
|
|
17875
17879
|
}
|
|
17876
|
-
|
|
17880
|
+
$ = {
|
|
17877
17881
|
left: pe,
|
|
17878
17882
|
top: ce,
|
|
17879
|
-
width: U +
|
|
17880
|
-
height:
|
|
17881
|
-
color:
|
|
17883
|
+
width: U + z.width,
|
|
17884
|
+
height: G + z.height,
|
|
17885
|
+
color: E.backdropColor
|
|
17882
17886
|
};
|
|
17883
17887
|
}
|
|
17884
17888
|
m.push({
|
|
@@ -17888,15 +17892,15 @@ class Mi extends Vn {
|
|
|
17888
17892
|
options: {
|
|
17889
17893
|
rotation: p,
|
|
17890
17894
|
color: F,
|
|
17891
|
-
strokeColor:
|
|
17892
|
-
strokeWidth:
|
|
17893
|
-
textAlign:
|
|
17895
|
+
strokeColor: P,
|
|
17896
|
+
strokeWidth: R,
|
|
17897
|
+
textAlign: T,
|
|
17894
17898
|
textBaseline: H,
|
|
17895
17899
|
translation: [
|
|
17896
17900
|
y,
|
|
17897
|
-
|
|
17901
|
+
_
|
|
17898
17902
|
],
|
|
17899
|
-
backdrop:
|
|
17903
|
+
backdrop: $
|
|
17900
17904
|
}
|
|
17901
17905
|
});
|
|
17902
17906
|
}
|
|
@@ -19101,37 +19105,37 @@ function Js(e, t, n, i, r, o) {
|
|
|
19101
19105
|
let h = 0;
|
|
19102
19106
|
const g = r - l;
|
|
19103
19107
|
if (i) {
|
|
19104
|
-
const
|
|
19105
|
-
h = (g -
|
|
19108
|
+
const E = u > 0 ? u - i : 0, L = d > 0 ? d - i : 0, F = (E + L) / 2, P = F !== 0 ? g * F / (F + i) : g;
|
|
19109
|
+
h = (g - P) / 2;
|
|
19106
19110
|
}
|
|
19107
|
-
const p = Math.max(1e-3, g * d - n / We) / d, m = (g - p) / 2, b = l + m + h, v = r - m - h, { outerStart: C, outerEnd: S, innerStart: y, innerEnd:
|
|
19111
|
+
const p = Math.max(1e-3, g * d - n / We) / d, m = (g - p) / 2, b = l + m + h, v = r - m - h, { outerStart: C, outerEnd: S, innerStart: y, innerEnd: _ } = gI(t, f, d, v - b), A = d - C, w = d - S, I = b + C / A, M = v - S / w, k = f + y, O = f + _, H = b + y / k, D = v - _ / O;
|
|
19108
19112
|
if (e.beginPath(), o) {
|
|
19109
|
-
const
|
|
19110
|
-
if (e.arc(s, a, d, I,
|
|
19111
|
-
const
|
|
19112
|
-
e.arc(
|
|
19113
|
+
const E = (I + M) / 2;
|
|
19114
|
+
if (e.arc(s, a, d, I, E), e.arc(s, a, d, E, M), S > 0) {
|
|
19115
|
+
const R = dr(w, M, s, a);
|
|
19116
|
+
e.arc(R.x, R.y, S, M, v + bt);
|
|
19113
19117
|
}
|
|
19114
19118
|
const L = dr(O, v, s, a);
|
|
19115
|
-
if (e.lineTo(L.x, L.y),
|
|
19116
|
-
const
|
|
19117
|
-
e.arc(
|
|
19119
|
+
if (e.lineTo(L.x, L.y), _ > 0) {
|
|
19120
|
+
const R = dr(O, D, s, a);
|
|
19121
|
+
e.arc(R.x, R.y, _, v + bt, D + Math.PI);
|
|
19118
19122
|
}
|
|
19119
|
-
const F = (v -
|
|
19120
|
-
if (e.arc(s, a, f, v -
|
|
19121
|
-
const
|
|
19122
|
-
e.arc(
|
|
19123
|
+
const F = (v - _ / f + (b + y / f)) / 2;
|
|
19124
|
+
if (e.arc(s, a, f, v - _ / f, F, !0), e.arc(s, a, f, F, b + y / f, !0), y > 0) {
|
|
19125
|
+
const R = dr(k, H, s, a);
|
|
19126
|
+
e.arc(R.x, R.y, y, H + Math.PI, b - bt);
|
|
19123
19127
|
}
|
|
19124
|
-
const
|
|
19125
|
-
if (e.lineTo(
|
|
19126
|
-
const
|
|
19127
|
-
e.arc(
|
|
19128
|
+
const P = dr(A, b, s, a);
|
|
19129
|
+
if (e.lineTo(P.x, P.y), C > 0) {
|
|
19130
|
+
const R = dr(A, I, s, a);
|
|
19131
|
+
e.arc(R.x, R.y, C, b - bt, I);
|
|
19128
19132
|
}
|
|
19129
19133
|
} else {
|
|
19130
19134
|
e.moveTo(s, a);
|
|
19131
|
-
const
|
|
19132
|
-
e.lineTo(
|
|
19133
|
-
const F = Math.cos(M) * d + s,
|
|
19134
|
-
e.lineTo(F,
|
|
19135
|
+
const E = Math.cos(I) * d + s, L = Math.sin(I) * d + a;
|
|
19136
|
+
e.lineTo(E, L);
|
|
19137
|
+
const F = Math.cos(M) * d + s, P = Math.sin(M) * d + a;
|
|
19138
|
+
e.lineTo(F, P);
|
|
19135
19139
|
}
|
|
19136
19140
|
e.closePath();
|
|
19137
19141
|
}
|
|
@@ -19269,8 +19273,8 @@ function xI(e, t, n, i) {
|
|
|
19269
19273
|
for (l && (h = r[v(0)], e.moveTo(h.x, h.y)), f = 0; f <= a; ++f) {
|
|
19270
19274
|
if (h = r[v(f)], h.skip)
|
|
19271
19275
|
continue;
|
|
19272
|
-
const S = h.x, y = h.y,
|
|
19273
|
-
|
|
19276
|
+
const S = h.x, y = h.y, _ = S | 0;
|
|
19277
|
+
_ === g ? (y < p ? p = y : y > m && (m = y), u = (d * u + S) / ++d) : (C(), e.lineTo(S, y), g = _, d = 0, p = m = y), b = y;
|
|
19274
19278
|
}
|
|
19275
19279
|
C();
|
|
19276
19280
|
}
|
|
@@ -19663,8 +19667,8 @@ function BI(e, t, n, i, r) {
|
|
|
19663
19667
|
for (v = C; v < S; v++)
|
|
19664
19668
|
m += e[v].x, b += e[v].y;
|
|
19665
19669
|
m /= y, b /= y;
|
|
19666
|
-
const
|
|
19667
|
-
for (h = g = -1, v =
|
|
19670
|
+
const _ = Math.floor(d * a) + 1 + t, A = Math.min(Math.floor((d + 1) * a) + 1, n) + t, { x: w, y: I } = e[u];
|
|
19671
|
+
for (h = g = -1, v = _; v < A; v++)
|
|
19668
19672
|
g = 0.5 * Math.abs((w - m) * (e[v].y - I) - (w - e[v].x) * (b - I)), g > h && (h = g, f = e[v], p = v);
|
|
19669
19673
|
s[l++] = f, u = p;
|
|
19670
19674
|
}
|
|
@@ -19679,18 +19683,18 @@ function HI(e, t, n, i) {
|
|
|
19679
19683
|
if (y === u)
|
|
19680
19684
|
c < g ? (g = c, d = s) : c > p && (p = c, f = s), r = (o * r + a.x) / ++o;
|
|
19681
19685
|
else {
|
|
19682
|
-
const
|
|
19686
|
+
const _ = s - 1;
|
|
19683
19687
|
if (!Ve(d) && !Ve(f)) {
|
|
19684
19688
|
const A = Math.min(d, f), w = Math.max(d, f);
|
|
19685
|
-
A !== h && A !==
|
|
19689
|
+
A !== h && A !== _ && m.push({
|
|
19686
19690
|
...e[A],
|
|
19687
19691
|
x: r
|
|
19688
|
-
}), w !== h && w !==
|
|
19692
|
+
}), w !== h && w !== _ && m.push({
|
|
19689
19693
|
...e[w],
|
|
19690
19694
|
x: r
|
|
19691
19695
|
});
|
|
19692
19696
|
}
|
|
19693
|
-
s > 0 &&
|
|
19697
|
+
s > 0 && _ !== h && m.push(e[_]), m.push(a), u = y, o = 0, g = p = c, d = f = h = s;
|
|
19694
19698
|
}
|
|
19695
19699
|
}
|
|
19696
19700
|
return m;
|
|
@@ -20269,7 +20273,7 @@ class H1 extends Vn {
|
|
|
20269
20273
|
const { options: t, columnSizes: n, lineWidths: i, ctx: r } = this, { align: o, labels: s } = t, a = ut.color, l = xr(t.rtl, this.left, this.width), c = xt(s.font), { padding: u } = s, d = c.size, f = d / 2;
|
|
20270
20274
|
let h;
|
|
20271
20275
|
this.drawTitle(), r.textAlign = l.textAlign("left"), r.textBaseline = "middle", r.lineWidth = 0.5, r.font = c.string;
|
|
20272
|
-
const { boxWidth: g, boxHeight: p, itemHeight: m } = B1(s, d), b = function(
|
|
20276
|
+
const { boxWidth: g, boxHeight: p, itemHeight: m } = B1(s, d), b = function(_, A, w) {
|
|
20273
20277
|
if (isNaN(g) || g <= 0 || isNaN(p) || p < 0)
|
|
20274
20278
|
return;
|
|
20275
20279
|
r.save();
|
|
@@ -20280,10 +20284,10 @@ class H1 extends Vn {
|
|
|
20280
20284
|
pointStyle: w.pointStyle,
|
|
20281
20285
|
rotation: w.rotation,
|
|
20282
20286
|
borderWidth: I
|
|
20283
|
-
}, k = l.xPlus(
|
|
20287
|
+
}, k = l.xPlus(_, g / 2), O = A + f;
|
|
20284
20288
|
k5(r, M, k, O, s.pointStyleWidth && g);
|
|
20285
20289
|
} else {
|
|
20286
|
-
const M = A + Math.max((d - p) / 2, 0), k = l.leftForLtr(
|
|
20290
|
+
const M = A + Math.max((d - p) / 2, 0), k = l.leftForLtr(_, g), O = zi(w.borderRadius);
|
|
20287
20291
|
r.beginPath(), Object.values(O).some((H) => H !== 0) ? zo(r, {
|
|
20288
20292
|
x: k,
|
|
20289
20293
|
y: M,
|
|
@@ -20293,8 +20297,8 @@ class H1 extends Vn {
|
|
|
20293
20297
|
}) : r.rect(k, M, g, p), r.fill(), I !== 0 && r.stroke();
|
|
20294
20298
|
}
|
|
20295
20299
|
r.restore();
|
|
20296
|
-
}, v = function(
|
|
20297
|
-
qi(r, w.text,
|
|
20300
|
+
}, v = function(_, A, w) {
|
|
20301
|
+
qi(r, w.text, _, A + m / 2, c, {
|
|
20298
20302
|
strikethrough: w.hidden,
|
|
20299
20303
|
textAlign: l.textAlign(w.textAlign)
|
|
20300
20304
|
});
|
|
@@ -20309,17 +20313,17 @@ class H1 extends Vn {
|
|
|
20309
20313
|
line: 0
|
|
20310
20314
|
}, V5(this.ctx, t.textDirection);
|
|
20311
20315
|
const y = m + u;
|
|
20312
|
-
this.legendItems.forEach((
|
|
20313
|
-
r.strokeStyle =
|
|
20314
|
-
const w = r.measureText(
|
|
20316
|
+
this.legendItems.forEach((_, A) => {
|
|
20317
|
+
r.strokeStyle = _.fontColor, r.fillStyle = _.fontColor;
|
|
20318
|
+
const w = r.measureText(_.text).width, I = l.textAlign(_.textAlign || (_.textAlign = s.textAlign)), M = g + f + w;
|
|
20315
20319
|
let k = h.x, O = h.y;
|
|
20316
20320
|
l.setWidth(this.width), C ? A > 0 && k + M + u > this.right && (O = h.y += y, h.line++, k = h.x = Ft(o, this.left + u, this.right - i[h.line])) : A > 0 && O + y > this.bottom && (k = h.x = k + n[h.line].width + u, h.line++, O = h.y = Ft(o, this.top + S + u, this.bottom - n[h.line].height));
|
|
20317
20321
|
const H = l.x(k);
|
|
20318
|
-
if (b(H, O,
|
|
20322
|
+
if (b(H, O, _), k = Ry(I, k + g + f, C ? k + M : this.right, t.rtl), v(l.x(k), O, _), C)
|
|
20319
20323
|
h.x += M + u;
|
|
20320
|
-
else if (typeof
|
|
20324
|
+
else if (typeof _.text != "string") {
|
|
20321
20325
|
const D = c.lineHeight;
|
|
20322
|
-
h.y += uh(
|
|
20326
|
+
h.y += uh(_, D) + u;
|
|
20323
20327
|
} else
|
|
20324
20328
|
h.y += y;
|
|
20325
20329
|
}), B5(this.ctx, t.textDirection);
|
|
@@ -20943,8 +20947,8 @@ class xl extends Vn {
|
|
|
20943
20947
|
const g = xr(i.rtl, this.x, this.width), p = function(w) {
|
|
20944
20948
|
n.fillText(w, g.x(t.x + h), t.y + f / 2), t.y += f + o;
|
|
20945
20949
|
}, m = g.textAlign(s);
|
|
20946
|
-
let b, v, C, S, y,
|
|
20947
|
-
for (n.textAlign = s, n.textBaseline = "middle", n.font = d.string, t.x = B2(this, m, i), n.fillStyle = i.bodyColor, qe(this.beforeBody, p), h = a && m !== "right" ? s === "center" ? c / 2 + u : c + 2 + u : 0, S = 0,
|
|
20950
|
+
let b, v, C, S, y, _, A;
|
|
20951
|
+
for (n.textAlign = s, n.textBaseline = "middle", n.font = d.string, t.x = B2(this, m, i), n.fillStyle = i.bodyColor, qe(this.beforeBody, p), h = a && m !== "right" ? s === "center" ? c / 2 + u : c + 2 + u : 0, S = 0, _ = r.length; S < _; ++S) {
|
|
20948
20952
|
for (b = r[S], v = this.labelTextColors[S], n.fillStyle = v, qe(b.before, p), C = b.lines, a && C.length && (this._drawColorBox(n, t, S, g, i), f = Math.max(d.lineHeight, l)), y = 0, A = C.length; y < A; ++y)
|
|
20949
20953
|
p(C[y]), f = d.lineHeight;
|
|
20950
20954
|
qe(b.after, p);
|
|
@@ -21238,7 +21242,7 @@ Q(Er, "id", "category"), Q(Er, "defaults", {
|
|
|
21238
21242
|
});
|
|
21239
21243
|
function AM(e, t) {
|
|
21240
21244
|
const n = [], { bounds: r, step: o, min: s, max: a, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: f } = e, h = o || 1, g = u - 1, { min: p, max: m } = t, b = !Ve(s), v = !Ve(a), C = !Ve(c), S = (m - p) / (d + 1);
|
|
21241
|
-
let y = $d((m - p) / g / h) * h,
|
|
21245
|
+
let y = $d((m - p) / g / h) * h, _, A, w, I;
|
|
21242
21246
|
if (y < 1e-14 && !b && !v)
|
|
21243
21247
|
return [
|
|
21244
21248
|
{
|
|
@@ -21248,14 +21252,14 @@ function AM(e, t) {
|
|
|
21248
21252
|
value: m
|
|
21249
21253
|
}
|
|
21250
21254
|
];
|
|
21251
|
-
I = Math.ceil(m / y) - Math.floor(p / y), I > g && (y = $d(I * y / g / h) * h), Ve(l) || (
|
|
21255
|
+
I = Math.ceil(m / y) - Math.floor(p / y), I > g && (y = $d(I * y / g / h) * h), Ve(l) || (_ = Math.pow(10, l), y = Math.ceil(y * _) / _), r === "ticks" ? (A = Math.floor(p / y) * y, w = Math.ceil(m / y) * y) : (A = p, w = m), b && v && o && wy((a - s) / o, y / 1e3) ? (I = Math.round(Math.min((a - s) / y, u)), y = (a - s) / I, A = s, w = a) : C ? (A = b ? s : A, w = v ? a : w, I = c - 1, y = (w - A) / I) : (I = (w - A) / y, vo(I, Math.round(I), y / 1e3) ? I = Math.round(I) : I = Math.ceil(I));
|
|
21252
21256
|
const M = Math.max(Gd(y), Gd(A));
|
|
21253
|
-
|
|
21257
|
+
_ = Math.pow(10, Ve(l) ? M : l), A = Math.round(A * _) / _, w = Math.round(w * _) / _;
|
|
21254
21258
|
let k = 0;
|
|
21255
21259
|
for (b && (f && A !== s ? (n.push({
|
|
21256
21260
|
value: s
|
|
21257
|
-
}), A < s && k++, vo(Math.round((A + k * y) *
|
|
21258
|
-
const O = Math.round((A + k * y) *
|
|
21261
|
+
}), A < s && k++, vo(Math.round((A + k * y) * _) / _, s, X1(s, S, e)) && k++) : A < s && k++); k < I; ++k) {
|
|
21262
|
+
const O = Math.round((A + k * y) * _) / _;
|
|
21259
21263
|
if (v && O > a)
|
|
21260
21264
|
break;
|
|
21261
21265
|
n.push({
|
|
@@ -23133,8 +23137,8 @@ const Sk = ({ labels: e, dataValues: t, colors: n, title: i = "", tableHeader: r
|
|
|
23133
23137
|
anchor: "center",
|
|
23134
23138
|
align: "center",
|
|
23135
23139
|
formatter: (m, b) => {
|
|
23136
|
-
const v = b.chart.data.datasets[0].data.reduce((y,
|
|
23137
|
-
const A = Number(
|
|
23140
|
+
const v = b.chart.data.datasets[0].data.reduce((y, _) => {
|
|
23141
|
+
const A = Number(_);
|
|
23138
23142
|
return isNaN(A) ? y : y + A;
|
|
23139
23143
|
}, 0);
|
|
23140
23144
|
return `${Math.round(m / v * 100) + "%"}`;
|
|
@@ -23555,15 +23559,15 @@ const w_ = (e) => `
|
|
|
23555
23559
|
formatSliderLabel: d = (h) => `${h.toFixed(1)}Y`,
|
|
23556
23560
|
hasData: f = !0
|
|
23557
23561
|
}) => {
|
|
23558
|
-
const [h, g] = W(0), p = be(null), [m, b] = W(i), [v, C] = W(r), S = t, y = n > 0 ? S / n * 100 : 0,
|
|
23562
|
+
const [h, g] = W(0), p = be(null), [m, b] = W(i), [v, C] = W(r), S = t, y = n > 0 ? S / n * 100 : 0, _ = 25;
|
|
23559
23563
|
fe(() => {
|
|
23560
|
-
const
|
|
23564
|
+
const R = () => {
|
|
23561
23565
|
if (p.current) {
|
|
23562
|
-
const
|
|
23563
|
-
g((
|
|
23566
|
+
const T = p.current.offsetWidth;
|
|
23567
|
+
g(($) => $ !== T ? T : $);
|
|
23564
23568
|
}
|
|
23565
23569
|
};
|
|
23566
|
-
return window.addEventListener("resize",
|
|
23570
|
+
return window.addEventListener("resize", R), R(), () => window.removeEventListener("resize", R);
|
|
23567
23571
|
}, []), fe(() => {
|
|
23568
23572
|
b(i);
|
|
23569
23573
|
}, [i]), fe(() => {
|
|
@@ -23614,28 +23618,28 @@ const w_ = (e) => `
|
|
|
23614
23618
|
}),
|
|
23615
23619
|
[y, f]
|
|
23616
23620
|
), I = Ae(
|
|
23617
|
-
(
|
|
23618
|
-
const
|
|
23619
|
-
b(
|
|
23621
|
+
(R) => {
|
|
23622
|
+
const T = parseFloat(R.target.value);
|
|
23623
|
+
b(T);
|
|
23620
23624
|
},
|
|
23621
23625
|
[]
|
|
23622
23626
|
), M = Ae(
|
|
23623
|
-
(
|
|
23624
|
-
const
|
|
23625
|
-
C(
|
|
23627
|
+
(R) => {
|
|
23628
|
+
const T = parseFloat(R.target.value);
|
|
23629
|
+
C(T);
|
|
23626
23630
|
},
|
|
23627
23631
|
[]
|
|
23628
23632
|
), k = Ae(() => {
|
|
23629
23633
|
o == null || o(m);
|
|
23630
23634
|
}, [m, o]), O = Ae(() => {
|
|
23631
23635
|
s == null || s(v);
|
|
23632
|
-
}, [v, s]), H = c - l, D = H > 0 ? (m - l) / H * 100 : 0,
|
|
23633
|
-
const
|
|
23636
|
+
}, [v, s]), H = c - l, D = H > 0 ? (m - l) / H * 100 : 0, E = H > 0 ? (v - l) / H * 100 : 0, L = `${D}%`, F = `${E}%`, P = Fe(() => {
|
|
23637
|
+
const R = getComputedStyle(document.documentElement).getPropertyValue("--brand-light").trim() || "#dae0e8", T = getComputedStyle(document.documentElement).getPropertyValue("--brand-orange").trim() || "#ff6503";
|
|
23634
23638
|
return {
|
|
23635
|
-
background: `linear-gradient(to right, ${
|
|
23636
|
-
${
|
|
23639
|
+
background: `linear-gradient(to right, ${R} 0%, ${R} ${D}%,
|
|
23640
|
+
${T} ${D}%, ${T} ${E}%, ${R} ${E}%, ${R} 100%)`
|
|
23637
23641
|
};
|
|
23638
|
-
}, [D,
|
|
23642
|
+
}, [D, E]);
|
|
23639
23643
|
return /* @__PURE__ */ N("div", { className: "retention flex flex-col items-center rounded-xl select-none p-3", children: [
|
|
23640
23644
|
/* @__PURE__ */ x("div", { className: "w-full flex flex-col items-center justify-center p-2 mb-4", children: /* @__PURE__ */ N("div", { className: "relative w-11/12 h-64 flex items-center justify-center", children: [
|
|
23641
23645
|
/* @__PURE__ */ x(mh, { data: w, options: A }),
|
|
@@ -23648,8 +23652,8 @@ const w_ = (e) => `
|
|
|
23648
23652
|
] }) })
|
|
23649
23653
|
] }) }),
|
|
23650
23654
|
a && /* @__PURE__ */ x("div", { className: "w-full px-6", children: /* @__PURE__ */ N("div", { className: "relative w-full", ref: p, children: [
|
|
23651
|
-
/* @__PURE__ */ x("style", { children: w_(
|
|
23652
|
-
/* @__PURE__ */ x("div", { className: "absolute top-0 w-full h-1 rounded-full", style:
|
|
23655
|
+
/* @__PURE__ */ x("style", { children: w_(_) }),
|
|
23656
|
+
/* @__PURE__ */ x("div", { className: "absolute top-0 w-full h-1 rounded-full", style: P }),
|
|
23653
23657
|
/* @__PURE__ */ x(
|
|
23654
23658
|
"input",
|
|
23655
23659
|
{
|
|
@@ -23973,15 +23977,15 @@ function Oh(e, t) {
|
|
|
23973
23977
|
r === 1 ? i = gt + _e : r === -1 && (i = -gt - _e);
|
|
23974
23978
|
for (var c = 0, u = e.length; c < u; ++c)
|
|
23975
23979
|
if (f = (d = e[c]).length)
|
|
23976
|
-
for (var d, f, h = d[f - 1], g = P0(h), p = h[1] / 2 + o3, m = Ne(p), b = Te(p), v = 0; v < f; ++v, g = S, m =
|
|
23977
|
-
var C = d[v], S = P0(C), y = C[1] / 2 + o3,
|
|
23980
|
+
for (var d, f, h = d[f - 1], g = P0(h), p = h[1] / 2 + o3, m = Ne(p), b = Te(p), v = 0; v < f; ++v, g = S, m = _, b = A, h = C) {
|
|
23981
|
+
var C = d[v], S = P0(C), y = C[1] / 2 + o3, _ = Ne(y), A = Te(y), w = S - g, I = w >= 0 ? 1 : -1, M = I * w, k = M > $e, O = m * _;
|
|
23978
23982
|
if (l.add(On(O * I * Ne(M), b * A + O * Te(M))), s += k ? w + I * qt : w, k ^ g >= n ^ S >= n) {
|
|
23979
23983
|
var H = qs(Rr(h), Rr(C));
|
|
23980
23984
|
_l(H);
|
|
23981
23985
|
var D = qs(o, H);
|
|
23982
23986
|
_l(D);
|
|
23983
|
-
var
|
|
23984
|
-
(i >
|
|
23987
|
+
var E = (k ^ w >= 0 ? -1 : 1) * cn(D[2]);
|
|
23988
|
+
(i > E || i === E && (H[0] || H[1])) && (a += k ^ w >= 0 ? 1 : -1);
|
|
23985
23989
|
}
|
|
23986
23990
|
}
|
|
23987
23991
|
return (s < -_e || s < _e && l < -zc) ^ a & 1;
|
|
@@ -24024,11 +24028,11 @@ function Nh(e, t, n, i) {
|
|
|
24024
24028
|
}
|
|
24025
24029
|
function C() {
|
|
24026
24030
|
b(d[0][0], d[0][1]), a.lineEnd();
|
|
24027
|
-
var S = a.clean(), y = s.result(),
|
|
24031
|
+
var S = a.clean(), y = s.result(), _, A = y.length, w, I, M;
|
|
24028
24032
|
if (d.pop(), c.push(d), d = null, !!A) {
|
|
24029
24033
|
if (S & 1) {
|
|
24030
24034
|
if (I = y[0], (w = I.length - 1) > 0) {
|
|
24031
|
-
for (l || (r.polygonStart(), l = !0), r.lineStart(),
|
|
24035
|
+
for (l || (r.polygonStart(), l = !0), r.lineStart(), _ = 0; _ < w; ++_) r.point((M = I[_])[0], M[1]);
|
|
24032
24036
|
r.lineEnd();
|
|
24033
24037
|
}
|
|
24034
24038
|
return;
|
|
@@ -24104,8 +24108,8 @@ function P_(e) {
|
|
|
24104
24108
|
if (!d && (g = h = S) && u.lineStart(), S !== h && (C = l(d, v), (!C || ps(d, C) || ps(v, C)) && (v[2] = 1)), S !== h)
|
|
24105
24109
|
p = 0, S ? (u.lineStart(), C = l(v, d), u.point(C[0], C[1])) : (C = l(d, v), u.point(C[0], C[1], 2), u.lineEnd()), d = C;
|
|
24106
24110
|
else if (r && d && i ^ S) {
|
|
24107
|
-
var
|
|
24108
|
-
!(y & f) && (
|
|
24111
|
+
var _;
|
|
24112
|
+
!(y & f) && (_ = l(v, d, !0)) && (p = 0, i ? (u.lineStart(), u.point(_[0][0], _[0][1]), u.point(_[1][0], _[1][1]), u.lineEnd()) : (u.point(_[1][0], _[1][1]), u.lineEnd(), u.lineStart(), u.point(_[0][0], _[0][1], 3)));
|
|
24109
24113
|
}
|
|
24110
24114
|
S && (!d || !ps(d, v)) && u.point(v[0], v[1]), d = v, h = S, f = y;
|
|
24111
24115
|
},
|
|
@@ -24122,18 +24126,18 @@ function P_(e) {
|
|
|
24122
24126
|
function l(u, d, f) {
|
|
24123
24127
|
var h = Rr(u), g = Rr(d), p = [1, 0, 0], m = qs(h, g), b = j2(m, m), v = m[0], C = b - v * v;
|
|
24124
24128
|
if (!C) return !f && u;
|
|
24125
|
-
var S = t * b / C, y = -t * v / C,
|
|
24129
|
+
var S = t * b / C, y = -t * v / C, _ = qs(p, m), A = X2(p, S), w = X2(m, y);
|
|
24126
24130
|
k0(A, w);
|
|
24127
|
-
var I =
|
|
24131
|
+
var I = _, M = j2(A, I), k = j2(I, I), O = M * M - k * (j2(A, A) - 1);
|
|
24128
24132
|
if (!(O < 0)) {
|
|
24129
24133
|
var H = Gt(O), D = X2(I, (-M - H) / k);
|
|
24130
24134
|
if (k0(D, A), D = Ml(D), !f) return D;
|
|
24131
|
-
var
|
|
24132
|
-
L <
|
|
24133
|
-
var
|
|
24134
|
-
if (
|
|
24135
|
-
var
|
|
24136
|
-
return k0(
|
|
24135
|
+
var E = u[0], L = d[0], F = u[1], P = d[1], R;
|
|
24136
|
+
L < E && (R = E, E = L, L = R);
|
|
24137
|
+
var T = L - E, $ = ze(T - $e) < _e, z = $ || T < _e;
|
|
24138
|
+
if (!$ && P < F && (R = F, F = P, P = R), z ? $ ? F + P > 0 ^ D[1] < (ze(D[0] - E) < _e ? F : P) : F <= D[1] && D[1] <= P : T > $e ^ (E <= D[0] && D[0] <= L)) {
|
|
24139
|
+
var G = X2(I, (-M + H) / k);
|
|
24140
|
+
return k0(G, A), [D, Ml(G)];
|
|
24137
24141
|
}
|
|
24138
24142
|
}
|
|
24139
24143
|
}
|
|
@@ -24208,28 +24212,28 @@ function F_(e, t, n, i) {
|
|
|
24208
24212
|
return d !== f ? d - f : d === 0 ? u[1] - c[1] : d === 1 ? c[0] - u[0] : d === 2 ? c[1] - u[1] : u[0] - c[0];
|
|
24209
24213
|
}
|
|
24210
24214
|
return function(c) {
|
|
24211
|
-
var u = c, d = Lh(), f, h, g, p, m, b, v, C, S, y,
|
|
24215
|
+
var u = c, d = Lh(), f, h, g, p, m, b, v, C, S, y, _, A = {
|
|
24212
24216
|
point: w,
|
|
24213
24217
|
lineStart: O,
|
|
24214
24218
|
lineEnd: H,
|
|
24215
24219
|
polygonStart: M,
|
|
24216
24220
|
polygonEnd: k
|
|
24217
24221
|
};
|
|
24218
|
-
function w(
|
|
24219
|
-
r(
|
|
24222
|
+
function w(E, L) {
|
|
24223
|
+
r(E, L) && u.point(E, L);
|
|
24220
24224
|
}
|
|
24221
24225
|
function I() {
|
|
24222
|
-
for (var
|
|
24223
|
-
for (var
|
|
24224
|
-
|
|
24225
|
-
return
|
|
24226
|
+
for (var E = 0, L = 0, F = h.length; L < F; ++L)
|
|
24227
|
+
for (var P = h[L], R = 1, T = P.length, $ = P[0], z, G, U = $[0], ce = $[1]; R < T; ++R)
|
|
24228
|
+
z = U, G = ce, $ = P[R], U = $[0], ce = $[1], G <= i ? ce > i && (U - z) * (i - G) > (ce - G) * (e - z) && ++E : ce <= i && (U - z) * (i - G) < (ce - G) * (e - z) && --E;
|
|
24229
|
+
return E;
|
|
24226
24230
|
}
|
|
24227
24231
|
function M() {
|
|
24228
|
-
u = d, f = [], h = [],
|
|
24232
|
+
u = d, f = [], h = [], _ = !0;
|
|
24229
24233
|
}
|
|
24230
24234
|
function k() {
|
|
24231
|
-
var
|
|
24232
|
-
(L || F) && (c.polygonStart(), L && (c.lineStart(), o(null, null, 1, c), c.lineEnd()), F && Fh(f, a,
|
|
24235
|
+
var E = I(), L = _ && E, F = (f = Eh(f)).length;
|
|
24236
|
+
(L || F) && (c.polygonStart(), L && (c.lineStart(), o(null, null, 1, c), c.lineEnd()), F && Fh(f, a, E, o, c), c.polygonEnd()), u = c, f = h = g = null;
|
|
24233
24237
|
}
|
|
24234
24238
|
function O() {
|
|
24235
24239
|
A.point = D, h && h.push(g = []), y = !0, S = !1, v = C = NaN;
|
|
@@ -24237,16 +24241,16 @@ function F_(e, t, n, i) {
|
|
|
24237
24241
|
function H() {
|
|
24238
24242
|
f && (D(p, m), b && S && d.rejoin(), f.push(d.result())), A.point = w, S && u.lineEnd();
|
|
24239
24243
|
}
|
|
24240
|
-
function D(
|
|
24241
|
-
var F = r(
|
|
24242
|
-
if (h && g.push([
|
|
24243
|
-
p =
|
|
24244
|
-
else if (F && S) u.point(
|
|
24244
|
+
function D(E, L) {
|
|
24245
|
+
var F = r(E, L);
|
|
24246
|
+
if (h && g.push([E, L]), y)
|
|
24247
|
+
p = E, m = L, b = F, y = !1, F && (u.lineStart(), u.point(E, L));
|
|
24248
|
+
else if (F && S) u.point(E, L);
|
|
24245
24249
|
else {
|
|
24246
|
-
var
|
|
24247
|
-
L_(
|
|
24250
|
+
var P = [v = Math.max(J2, Math.min(lo, v)), C = Math.max(J2, Math.min(lo, C))], R = [E = Math.max(J2, Math.min(lo, E)), L = Math.max(J2, Math.min(lo, L))];
|
|
24251
|
+
L_(P, R, e, t, n, i) ? (S || (u.lineStart(), u.point(P[0], P[1])), u.point(R[0], R[1]), F || u.lineEnd(), _ = !1) : F && (u.lineStart(), u.point(E, L), _ = !1);
|
|
24248
24252
|
}
|
|
24249
|
-
v =
|
|
24253
|
+
v = E, C = L, S = F;
|
|
24250
24254
|
}
|
|
24251
24255
|
return A;
|
|
24252
24256
|
};
|
|
@@ -24721,8 +24725,8 @@ function nA(e, t) {
|
|
|
24721
24725
|
function n(i, r, o, s, a, l, c, u, d, f, h, g, p, m) {
|
|
24722
24726
|
var b = c - i, v = u - r, C = b * b + v * v;
|
|
24723
24727
|
if (C > 4 * t && p--) {
|
|
24724
|
-
var S = s + f, y = a + h,
|
|
24725
|
-
(
|
|
24728
|
+
var S = s + f, y = a + h, _ = l + g, A = Gt(S * S + y * y + _ * _), w = cn(_ /= A), I = ze(ze(_) - 1) < _e || ze(o - d) < _e ? (o + d) / 2 : On(y, S), M = e(I, w), k = M[0], O = M[1], H = k - i, D = O - r, E = v * H - b * D;
|
|
24729
|
+
(E * E / C > t || ze((b * H + v * D) / C - 0.5) > 0.3 || s * f + a * h + l * g < eA) && (n(i, r, o, s, a, l, k, O, I, S /= A, y /= A, _, p, m), m.point(k, O), n(k, O, I, S, y, _, c, u, d, f, h, g, p, m));
|
|
24726
24730
|
}
|
|
24727
24731
|
}
|
|
24728
24732
|
return function(i) {
|
|
@@ -24751,9 +24755,9 @@ function nA(e, t) {
|
|
|
24751
24755
|
m.point = b, i.lineEnd();
|
|
24752
24756
|
}
|
|
24753
24757
|
function y() {
|
|
24754
|
-
v(), m.point =
|
|
24758
|
+
v(), m.point = _, m.lineEnd = A;
|
|
24755
24759
|
}
|
|
24756
|
-
function
|
|
24760
|
+
function _(w, I) {
|
|
24757
24761
|
C(r = w, I), o = d, s = f, a = h, l = g, c = p, m.point = C;
|
|
24758
24762
|
}
|
|
24759
24763
|
function A() {
|
|
@@ -24799,51 +24803,51 @@ function oi(e) {
|
|
|
24799
24803
|
})();
|
|
24800
24804
|
}
|
|
24801
24805
|
function Kh(e) {
|
|
24802
|
-
var t, n = 150, i = 480, r = 250, o = 0, s = 0, a = 0, l = 0, c = 0, u, d = 0, f = 1, h = 1, g = null, p = g3, m = null, b, v, C, S = Fl, y = 0.5,
|
|
24803
|
-
function k(
|
|
24804
|
-
return w(
|
|
24805
|
-
}
|
|
24806
|
-
function O(
|
|
24807
|
-
return
|
|
24808
|
-
}
|
|
24809
|
-
k.stream = function(
|
|
24810
|
-
return I && M ===
|
|
24811
|
-
}, k.preclip = function(
|
|
24812
|
-
return arguments.length ? (p =
|
|
24813
|
-
}, k.postclip = function(
|
|
24814
|
-
return arguments.length ? (S =
|
|
24815
|
-
}, k.clipAngle = function(
|
|
24816
|
-
return arguments.length ? (p = +
|
|
24817
|
-
}, k.clipExtent = function(
|
|
24818
|
-
return arguments.length ? (S =
|
|
24819
|
-
}, k.scale = function(
|
|
24820
|
-
return arguments.length ? (n = +
|
|
24821
|
-
}, k.translate = function(
|
|
24822
|
-
return arguments.length ? (i = +
|
|
24823
|
-
}, k.center = function(
|
|
24824
|
-
return arguments.length ? (o =
|
|
24825
|
-
}, k.rotate = function(
|
|
24826
|
-
return arguments.length ? (a =
|
|
24827
|
-
}, k.angle = function(
|
|
24828
|
-
return arguments.length ? (d =
|
|
24829
|
-
}, k.reflectX = function(
|
|
24830
|
-
return arguments.length ? (f =
|
|
24831
|
-
}, k.reflectY = function(
|
|
24832
|
-
return arguments.length ? (h =
|
|
24833
|
-
}, k.precision = function(
|
|
24834
|
-
return arguments.length ? (
|
|
24835
|
-
}, k.fitExtent = function(
|
|
24836
|
-
return Xc(k,
|
|
24837
|
-
}, k.fitSize = function(
|
|
24838
|
-
return Jh(k,
|
|
24839
|
-
}, k.fitWidth = function(
|
|
24840
|
-
return Uh(k,
|
|
24841
|
-
}, k.fitHeight = function(
|
|
24842
|
-
return Qh(k,
|
|
24806
|
+
var t, n = 150, i = 480, r = 250, o = 0, s = 0, a = 0, l = 0, c = 0, u, d = 0, f = 1, h = 1, g = null, p = g3, m = null, b, v, C, S = Fl, y = 0.5, _, A, w, I, M;
|
|
24807
|
+
function k(E) {
|
|
24808
|
+
return w(E[0] * nt, E[1] * nt);
|
|
24809
|
+
}
|
|
24810
|
+
function O(E) {
|
|
24811
|
+
return E = w.invert(E[0], E[1]), E && [E[0] * Ht, E[1] * Ht];
|
|
24812
|
+
}
|
|
24813
|
+
k.stream = function(E) {
|
|
24814
|
+
return I && M === E ? I : I = iA(rA(u)(p(_(S(M = E)))));
|
|
24815
|
+
}, k.preclip = function(E) {
|
|
24816
|
+
return arguments.length ? (p = E, g = void 0, D()) : p;
|
|
24817
|
+
}, k.postclip = function(E) {
|
|
24818
|
+
return arguments.length ? (S = E, m = b = v = C = null, D()) : S;
|
|
24819
|
+
}, k.clipAngle = function(E) {
|
|
24820
|
+
return arguments.length ? (p = +E ? P_(g = E * nt) : (g = null, g3), D()) : g * Ht;
|
|
24821
|
+
}, k.clipExtent = function(E) {
|
|
24822
|
+
return arguments.length ? (S = E == null ? (m = b = v = C = null, Fl) : F_(m = +E[0][0], b = +E[0][1], v = +E[1][0], C = +E[1][1]), D()) : m == null ? null : [[m, b], [v, C]];
|
|
24823
|
+
}, k.scale = function(E) {
|
|
24824
|
+
return arguments.length ? (n = +E, H()) : n;
|
|
24825
|
+
}, k.translate = function(E) {
|
|
24826
|
+
return arguments.length ? (i = +E[0], r = +E[1], H()) : [i, r];
|
|
24827
|
+
}, k.center = function(E) {
|
|
24828
|
+
return arguments.length ? (o = E[0] % 360 * nt, s = E[1] % 360 * nt, H()) : [o * Ht, s * Ht];
|
|
24829
|
+
}, k.rotate = function(E) {
|
|
24830
|
+
return arguments.length ? (a = E[0] % 360 * nt, l = E[1] % 360 * nt, c = E.length > 2 ? E[2] % 360 * nt : 0, H()) : [a * Ht, l * Ht, c * Ht];
|
|
24831
|
+
}, k.angle = function(E) {
|
|
24832
|
+
return arguments.length ? (d = E % 360 * nt, H()) : d * Ht;
|
|
24833
|
+
}, k.reflectX = function(E) {
|
|
24834
|
+
return arguments.length ? (f = E ? -1 : 1, H()) : f < 0;
|
|
24835
|
+
}, k.reflectY = function(E) {
|
|
24836
|
+
return arguments.length ? (h = E ? -1 : 1, H()) : h < 0;
|
|
24837
|
+
}, k.precision = function(E) {
|
|
24838
|
+
return arguments.length ? (_ = k3(A, y = E * E), D()) : Gt(y);
|
|
24839
|
+
}, k.fitExtent = function(E, L) {
|
|
24840
|
+
return Xc(k, E, L);
|
|
24841
|
+
}, k.fitSize = function(E, L) {
|
|
24842
|
+
return Jh(k, E, L);
|
|
24843
|
+
}, k.fitWidth = function(E, L) {
|
|
24844
|
+
return Uh(k, E, L);
|
|
24845
|
+
}, k.fitHeight = function(E, L) {
|
|
24846
|
+
return Qh(k, E, L);
|
|
24843
24847
|
};
|
|
24844
24848
|
function H() {
|
|
24845
|
-
var
|
|
24846
|
-
return u = Ph(a, l, c), A = Al(t, L), w = Al(u, A),
|
|
24849
|
+
var E = P3(n, 0, 0, f, h, d).apply(null, t(o, s)), L = P3(n, i - E[0], r - E[1], f, h, d);
|
|
24850
|
+
return u = Ph(a, l, c), A = Al(t, L), w = Al(u, A), _ = k3(A, y), D();
|
|
24847
24851
|
}
|
|
24848
24852
|
function D() {
|
|
24849
24853
|
return I = M = null, k;
|
|
@@ -26802,37 +26806,37 @@ const j3 = 50, gR = "-", nu = {
|
|
|
26802
26806
|
fileSearch: a = "",
|
|
26803
26807
|
scanDetails: l
|
|
26804
26808
|
}) => {
|
|
26805
|
-
const c = be(null), { showLoader: u, hideLoader: d } = Sc(), f = hR(a, 500), [h, g] = W([]), [p, m] = W(!1), [b, v] = W(null), [C, S] = W([]), [y,
|
|
26806
|
-
let
|
|
26807
|
-
const
|
|
26809
|
+
const c = be(null), { showLoader: u, hideLoader: d } = Sc(), f = hR(a, 500), [h, g] = W([]), [p, m] = W(!1), [b, v] = W(null), [C, S] = W([]), [y, _] = W(), [A, w] = W([]), [I, M] = W(""), [k, O] = W(/* @__PURE__ */ new Set()), [H, D] = W([]), [E, L] = W(!1), [F, P] = W(!1), R = be(null), T = be(!1), $ = be(!1);
|
|
26810
|
+
let z = /* @__PURE__ */ new Set();
|
|
26811
|
+
const G = /* @__PURE__ */ new Map();
|
|
26808
26812
|
fe(() => {
|
|
26809
26813
|
if (typeof window > "u") return;
|
|
26810
26814
|
(async () => {
|
|
26811
26815
|
try {
|
|
26812
|
-
const se = await import("./jquery-
|
|
26813
|
-
|
|
26816
|
+
const se = await import("./jquery-BfiVt2p1.js").then((J) => J.j);
|
|
26817
|
+
R.current = se.default, L(!0), await import("./jstree-DV0-zhD2.js").then((J) => J.j), P(!0);
|
|
26814
26818
|
} catch (se) {
|
|
26815
26819
|
console.error("Failed to load jQuery or jstree:", se);
|
|
26816
26820
|
}
|
|
26817
26821
|
})();
|
|
26818
26822
|
}, []);
|
|
26819
|
-
const U = (
|
|
26823
|
+
const U = (B) => typeof window > "u" || !R.current ? null : R.current(B), ce = (B) => Object.keys(B).map((J) => ({
|
|
26820
26824
|
value: J,
|
|
26821
|
-
label:
|
|
26822
|
-
})), pe = (
|
|
26823
|
-
|
|
26824
|
-
|
|
26825
|
+
label: B[J]
|
|
26826
|
+
})), pe = (B) => {
|
|
26827
|
+
_((B == null ? void 0 : B.value) || ""), B != null && B.value && i && i(
|
|
26828
|
+
B.value,
|
|
26825
26829
|
C,
|
|
26826
26830
|
() => {
|
|
26827
26831
|
S([]);
|
|
26828
26832
|
},
|
|
26829
26833
|
() => {
|
|
26830
|
-
|
|
26834
|
+
_("");
|
|
26831
26835
|
}
|
|
26832
26836
|
);
|
|
26833
|
-
}, Be = (
|
|
26837
|
+
}, Be = (B, se = "", J = !1) => {
|
|
26834
26838
|
const ie = [];
|
|
26835
|
-
if (
|
|
26839
|
+
if (B.filter((te) => {
|
|
26836
26840
|
const ae = te.fullPath || te.absolute_path, Ce = te.name || te.object_name;
|
|
26837
26841
|
return ae && Ce && Ce.trim() !== "";
|
|
26838
26842
|
}).forEach((te, ae) => {
|
|
@@ -26920,25 +26924,25 @@ const j3 = 50, gR = "-", nu = {
|
|
|
26920
26924
|
ie.push(te);
|
|
26921
26925
|
}
|
|
26922
26926
|
return ie;
|
|
26923
|
-
}, ge = async (
|
|
26927
|
+
}, ge = async (B, se = 0, J = !1) => {
|
|
26924
26928
|
var ae;
|
|
26925
|
-
if (typeof window > "u" || !
|
|
26929
|
+
if (typeof window > "u" || !E || !F)
|
|
26926
26930
|
return;
|
|
26927
|
-
if (
|
|
26931
|
+
if (B && !B.includes("/") && !B.includes("\\") && c.current) {
|
|
26928
26932
|
const Ce = U(c.current);
|
|
26929
26933
|
if (Ce) {
|
|
26930
|
-
const ee = Ce.jstree(!0).get_json("#", { flat: !0 }).find((Se) => Se.id ===
|
|
26931
|
-
ee && ((ae = ee.original) != null && ae.full_path) && (
|
|
26934
|
+
const ee = Ce.jstree(!0).get_json("#", { flat: !0 }).find((Se) => Se.id === B || Se.text === B);
|
|
26935
|
+
ee && ((ae = ee.original) != null && ae.full_path) && (B = ee.original.full_path);
|
|
26932
26936
|
}
|
|
26933
26937
|
}
|
|
26934
|
-
const ie = `${
|
|
26935
|
-
if (k.has(
|
|
26938
|
+
const ie = `${B}_${o}_${s}_${f}`, ne = G.get(ie);
|
|
26939
|
+
if (k.has(B) || ne != null && ne.loading || se === 0 && z.has(B) && !J || $.current)
|
|
26936
26940
|
return;
|
|
26937
|
-
O((Ce) => new Set(Ce).add(
|
|
26941
|
+
O((Ce) => new Set(Ce).add(B)), ne ? G.set(ie, {
|
|
26938
26942
|
page: se,
|
|
26939
26943
|
hasMore: ne.hasMore ?? !1,
|
|
26940
26944
|
loading: !0
|
|
26941
|
-
}) :
|
|
26945
|
+
}) : G.set(ie, {
|
|
26942
26946
|
page: 0,
|
|
26943
26947
|
hasMore: !1,
|
|
26944
26948
|
loading: !0
|
|
@@ -26947,7 +26951,7 @@ const j3 = 50, gR = "-", nu = {
|
|
|
26947
26951
|
try {
|
|
26948
26952
|
const Ce = await t.readIndexScanObjectsForPath(
|
|
26949
26953
|
e,
|
|
26950
|
-
|
|
26954
|
+
B,
|
|
26951
26955
|
o,
|
|
26952
26956
|
s,
|
|
26953
26957
|
f,
|
|
@@ -26956,20 +26960,20 @@ const j3 = 50, gR = "-", nu = {
|
|
|
26956
26960
|
te
|
|
26957
26961
|
);
|
|
26958
26962
|
if (Ce != null && Ce.data) {
|
|
26959
|
-
|
|
26963
|
+
G.set(ie, {
|
|
26960
26964
|
page: se,
|
|
26961
26965
|
hasMore: Ce.hasMore ?? !1,
|
|
26962
26966
|
loading: !1
|
|
26963
26967
|
});
|
|
26964
26968
|
const le = Ce.data.map((ee) => Z3(ee));
|
|
26965
|
-
J && se > 0 ? Me(
|
|
26969
|
+
J && se > 0 ? Me(B, le, Ce.hasMore ?? !1) : (z.add(B), me(B, le, Ce.hasMore ?? !1)), G.set(ie, {
|
|
26966
26970
|
page: se,
|
|
26967
26971
|
hasMore: Ce.hasMore ?? !1,
|
|
26968
26972
|
loading: !1
|
|
26969
26973
|
});
|
|
26970
26974
|
}
|
|
26971
26975
|
} catch (Ce) {
|
|
26972
|
-
console.error("Error loading children for path:", Ce),
|
|
26976
|
+
console.error("Error loading children for path:", Ce), G.set(ie, {
|
|
26973
26977
|
page: se,
|
|
26974
26978
|
hasMore: !1,
|
|
26975
26979
|
loading: !1
|
|
@@ -26977,25 +26981,25 @@ const j3 = 50, gR = "-", nu = {
|
|
|
26977
26981
|
} finally {
|
|
26978
26982
|
d(), O((Ce) => {
|
|
26979
26983
|
const le = new Set(Ce);
|
|
26980
|
-
return le.delete(
|
|
26984
|
+
return le.delete(B), le;
|
|
26981
26985
|
});
|
|
26982
26986
|
}
|
|
26983
|
-
}, me = (
|
|
26987
|
+
}, me = (B, se, J = !1) => {
|
|
26984
26988
|
var ie;
|
|
26985
|
-
if (!(!c.current ||
|
|
26986
|
-
|
|
26989
|
+
if (!(!c.current || $.current) && !(typeof window > "u" || !E || !F)) {
|
|
26990
|
+
$.current = !0;
|
|
26987
26991
|
try {
|
|
26988
26992
|
const ne = U(c.current);
|
|
26989
26993
|
if (!ne) {
|
|
26990
|
-
|
|
26994
|
+
$.current = !1;
|
|
26991
26995
|
return;
|
|
26992
26996
|
}
|
|
26993
26997
|
const ae = ne.jstree(!0).get_json("#", { flat: !0 }).find((Oe) => {
|
|
26994
26998
|
var Ze;
|
|
26995
|
-
return Oe.text ===
|
|
26999
|
+
return Oe.text === B || ((Ze = Oe.a_attr) == null ? void 0 : Ze.title) === B;
|
|
26996
27000
|
});
|
|
26997
27001
|
if (!ae) {
|
|
26998
|
-
console.error("Parent node not found for path:",
|
|
27002
|
+
console.error("Parent node not found for path:", B);
|
|
26999
27003
|
return;
|
|
27000
27004
|
}
|
|
27001
27005
|
const Ce = (ie = ae.state) == null ? void 0 : ie.opened;
|
|
@@ -27006,7 +27010,7 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27006
27010
|
le && le.length && U(le).each((Oe, Ze) => {
|
|
27007
27011
|
const ft = U(Ze).attr("id");
|
|
27008
27012
|
ft && (ft.includes("_loading") || ft.includes("_placeholder")) && ne.jstree("delete_node", ft);
|
|
27009
|
-
}), Be(se,
|
|
27013
|
+
}), Be(se, B, J).map((Oe) => Oe.type === "folder" ? {
|
|
27010
27014
|
...Oe,
|
|
27011
27015
|
children: Oe.children && Oe.children.length > 0 ? Oe.children : [
|
|
27012
27016
|
{
|
|
@@ -27036,42 +27040,42 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27036
27040
|
} : Oe).forEach((Oe) => {
|
|
27037
27041
|
ne.jstree("create_node", ae.id, Oe, "last");
|
|
27038
27042
|
});
|
|
27039
|
-
const K = `${
|
|
27040
|
-
|
|
27043
|
+
const K = `${B}_${o}_${s}_${f}`;
|
|
27044
|
+
G.get(K) || G.set(K, {
|
|
27041
27045
|
page: 0,
|
|
27042
27046
|
hasMore: J,
|
|
27043
27047
|
loading: !1
|
|
27044
27048
|
}), Ce && ne.jstree("open_node", ae.id), setTimeout(() => {
|
|
27045
|
-
|
|
27049
|
+
$.current = !1;
|
|
27046
27050
|
}, 100);
|
|
27047
27051
|
} catch (ne) {
|
|
27048
|
-
console.error("Error in updateTreeWithChildren:", ne),
|
|
27052
|
+
console.error("Error in updateTreeWithChildren:", ne), $.current = !1;
|
|
27049
27053
|
}
|
|
27050
27054
|
}
|
|
27051
|
-
}, Me = (
|
|
27055
|
+
}, Me = (B, se, J = !1) => {
|
|
27052
27056
|
var Se;
|
|
27053
|
-
if (!c.current || typeof window > "u" || !
|
|
27057
|
+
if (!c.current || typeof window > "u" || !E || !F) return;
|
|
27054
27058
|
const ie = U(c.current);
|
|
27055
27059
|
if (!ie) return;
|
|
27056
27060
|
let ne, te;
|
|
27057
|
-
if (
|
|
27061
|
+
if (B === "")
|
|
27058
27062
|
te = "#", ne = { id: "#", text: "root", type: "root" };
|
|
27059
27063
|
else if (ne = ie.jstree(!0).get_json("#", { flat: !0 }).find((we) => {
|
|
27060
27064
|
var Oe;
|
|
27061
|
-
return we.text ===
|
|
27065
|
+
return we.text === B || ((Oe = we.a_attr) == null ? void 0 : Oe.title) === B;
|
|
27062
27066
|
}), te = ne == null ? void 0 : ne.id, !ne) {
|
|
27063
|
-
console.error("Parent node not found for path:",
|
|
27067
|
+
console.error("Parent node not found for path:", B);
|
|
27064
27068
|
return;
|
|
27065
27069
|
}
|
|
27066
|
-
const ae = `load_more_${
|
|
27067
|
-
if (Ce && ie.jstree("delete_node", Ce),
|
|
27070
|
+
const ae = `load_more_${B}`, Ce = ie.jstree("get_node", ae);
|
|
27071
|
+
if (Ce && ie.jstree("delete_node", Ce), B !== "" && ne) {
|
|
27068
27072
|
const K = ie.jstree("get_children_dom", ne.id);
|
|
27069
27073
|
K && K.length && U(K).each((we, Oe) => {
|
|
27070
27074
|
const Ze = U(Oe).attr("id");
|
|
27071
27075
|
Ze && (Ze.includes("_loading") || Ze.includes("_placeholder")) && ie.jstree("delete_node", Ze);
|
|
27072
27076
|
});
|
|
27073
27077
|
}
|
|
27074
|
-
Be(se,
|
|
27078
|
+
Be(se, B, J).map((K) => K.type === "folder" ? {
|
|
27075
27079
|
...K,
|
|
27076
27080
|
children: K.children && K.children.length > 0 ? K.children : [
|
|
27077
27081
|
{
|
|
@@ -27104,12 +27108,12 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27104
27108
|
} catch (Oe) {
|
|
27105
27109
|
console.error(`appendChildrenToPath - Error creating child ${we}:`, Oe);
|
|
27106
27110
|
}
|
|
27107
|
-
}),
|
|
27111
|
+
}), B !== "" && ne && ((Se = ne.state) != null && Se.opened) && ie.jstree("open_node", ne.id);
|
|
27108
27112
|
}, ue = async () => {
|
|
27109
|
-
if (!
|
|
27113
|
+
if (!T.current)
|
|
27110
27114
|
try {
|
|
27111
|
-
|
|
27112
|
-
const
|
|
27115
|
+
T.current = !0, m(!1), u(), z = /* @__PURE__ */ new Set(), D([]), v(null);
|
|
27116
|
+
const B = !!(l != null && l.end_time && l.end_time.length > 0), se = await t.readIndexScanObjectsForPath(
|
|
27113
27117
|
e,
|
|
27114
27118
|
"",
|
|
27115
27119
|
// Empty path for root level
|
|
@@ -27118,7 +27122,7 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27118
27122
|
f,
|
|
27119
27123
|
0,
|
|
27120
27124
|
j3,
|
|
27121
|
-
|
|
27125
|
+
B
|
|
27122
27126
|
);
|
|
27123
27127
|
if (se != null && se.data) {
|
|
27124
27128
|
const J = se.data.map((ae) => Z3(ae));
|
|
@@ -27151,26 +27155,26 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27151
27155
|
selected: !1
|
|
27152
27156
|
}
|
|
27153
27157
|
} : ae);
|
|
27154
|
-
D(te),
|
|
27158
|
+
D(te), z.add(""), G.set(ie, {
|
|
27155
27159
|
page: 0,
|
|
27156
27160
|
hasMore: se.hasMore ?? !1,
|
|
27157
27161
|
loading: !1
|
|
27158
27162
|
});
|
|
27159
27163
|
} else
|
|
27160
27164
|
g([]), D([]);
|
|
27161
|
-
} catch (
|
|
27162
|
-
console.error("[FileBrowser] Error fetching root level data:",
|
|
27165
|
+
} catch (B) {
|
|
27166
|
+
console.error("[FileBrowser] Error fetching root level data:", B), g([]), D([]);
|
|
27163
27167
|
} finally {
|
|
27164
|
-
|
|
27168
|
+
T.current = !1, d(), m(!0);
|
|
27165
27169
|
}
|
|
27166
27170
|
};
|
|
27167
27171
|
fe(() => {
|
|
27168
27172
|
e ? ue() : m(!0);
|
|
27169
27173
|
}, [e, o, s, f]), fe(() => {
|
|
27170
|
-
if (p && c.current &&
|
|
27171
|
-
const
|
|
27172
|
-
if (!
|
|
27173
|
-
|
|
27174
|
+
if (p && c.current && E && F && typeof window < "u") {
|
|
27175
|
+
const B = U(c.current);
|
|
27176
|
+
if (!B) return;
|
|
27177
|
+
B.jstree(!0) && B.jstree("destroy");
|
|
27174
27178
|
const se = {
|
|
27175
27179
|
plugins: ["types", "state"],
|
|
27176
27180
|
types: {
|
|
@@ -27191,7 +27195,7 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27191
27195
|
whole_node: !1,
|
|
27192
27196
|
// Click only on checkboxes, not entire nodes
|
|
27193
27197
|
tie_selection: !1
|
|
27194
|
-
}),
|
|
27198
|
+
}), B.jstree({
|
|
27195
27199
|
core: {
|
|
27196
27200
|
data: H,
|
|
27197
27201
|
themes: {
|
|
@@ -27201,11 +27205,11 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27201
27205
|
check_callback: !0
|
|
27202
27206
|
},
|
|
27203
27207
|
...se
|
|
27204
|
-
}),
|
|
27208
|
+
}), B.on("open_node.jstree", (J, ie) => {
|
|
27205
27209
|
var ae, Ce, le;
|
|
27206
27210
|
const ne = ie.node;
|
|
27207
27211
|
let te = ((ae = ne.original) == null ? void 0 : ae.full_path) || ne.full_path || ne.id;
|
|
27208
|
-
if (te && !te.includes("/") && !te.includes("\\") && c.current &&
|
|
27212
|
+
if (te && !te.includes("/") && !te.includes("\\") && c.current && E && F) {
|
|
27209
27213
|
const ee = U(c.current);
|
|
27210
27214
|
if (ee) {
|
|
27211
27215
|
const K = ee.jstree(!0).get_json("#", { flat: !0 }).find((we) => we.id === ne.id);
|
|
@@ -27219,18 +27223,18 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27219
27223
|
K && ((le = K.original) != null && le.full_path) && (te = `${K.original.full_path}/${ne.text}`);
|
|
27220
27224
|
}
|
|
27221
27225
|
}
|
|
27222
|
-
ne.type === "folder" && /^[A-Z]:$/.test(ne.text) && (te = ne.text), ne.type === "folder" && te && (
|
|
27223
|
-
}),
|
|
27226
|
+
ne.type === "folder" && /^[A-Z]:$/.test(ne.text) && (te = ne.text), ne.type === "folder" && te && (z.has(te) || ge(te));
|
|
27227
|
+
}), B.on("click.jstree", (J) => {
|
|
27224
27228
|
var te;
|
|
27225
27229
|
const ie = U(J.target);
|
|
27226
27230
|
if (!ie) return !0;
|
|
27227
27231
|
const ne = ie.closest("li").attr("id");
|
|
27228
27232
|
if (ne && ne.startsWith("load_more_")) {
|
|
27229
|
-
const ae =
|
|
27233
|
+
const ae = B.jstree("get_node", ne), Ce = ((te = ae == null ? void 0 : ae.original) == null ? void 0 : te.full_path) || (ae == null ? void 0 : ae.full_path) || ne.replace("load_more_", ""), le = Ce === "" ? `_${o}_${s}_${f}` : `${Ce}_${o}_${s}_${f}`, ee = G.get(le);
|
|
27230
27234
|
if (ee && ee.hasMore && !ee.loading) {
|
|
27231
27235
|
const Se = ee.page + 1;
|
|
27232
27236
|
ge(Ce, Se, !0);
|
|
27233
|
-
} else ee || (
|
|
27237
|
+
} else ee || (G.set(le, {
|
|
27234
27238
|
page: 0,
|
|
27235
27239
|
hasMore: !0,
|
|
27236
27240
|
// Assume there might be more until we know otherwise
|
|
@@ -27239,25 +27243,25 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27239
27243
|
return J.preventDefault(), J.stopPropagation(), !1;
|
|
27240
27244
|
}
|
|
27241
27245
|
return !0;
|
|
27242
|
-
}),
|
|
27246
|
+
}), B.on("select_node.jstree", (J, ie) => {
|
|
27243
27247
|
var te;
|
|
27244
27248
|
const ne = ie.node;
|
|
27245
27249
|
if (ne.type === "load_more" && ((te = ne.original) != null && te.full_path)) {
|
|
27246
|
-
const ae = ne.original.full_path, Ce = `${ae}_${o}_${s}_${f}`, le =
|
|
27250
|
+
const ae = ne.original.full_path, Ce = `${ae}_${o}_${s}_${f}`, le = G.get(Ce);
|
|
27247
27251
|
le && le.hasMore && !le.loading && ge(ae, le.page + 1, !0);
|
|
27248
27252
|
return;
|
|
27249
27253
|
}
|
|
27250
27254
|
ne.data ? v(ne.data) : v(null);
|
|
27251
|
-
}),
|
|
27255
|
+
}), B.on("check_node.jstree uncheck_node.jstree", function(J, ie) {
|
|
27252
27256
|
const ne = ie.node, te = ne.original.full_path;
|
|
27253
27257
|
ne.state.checked ? S((ae) => {
|
|
27254
27258
|
const Ce = ae.filter((ee) => ee !== te && !W3(te, ee));
|
|
27255
27259
|
let le = ne;
|
|
27256
27260
|
for (; le.parent !== "#"; ) {
|
|
27257
|
-
const ee =
|
|
27261
|
+
const ee = B.jstree("get_node", le.parent);
|
|
27258
27262
|
if (ee) {
|
|
27259
27263
|
if (ee.children.every((K) => {
|
|
27260
|
-
const we =
|
|
27264
|
+
const we = B.jstree("get_node", K);
|
|
27261
27265
|
return we == null ? void 0 : we.state.checked;
|
|
27262
27266
|
}))
|
|
27263
27267
|
return Ce.filter((K) => !K.startsWith(ee.original.full_path)).concat(ee.original.full_path);
|
|
@@ -27269,17 +27273,17 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27269
27273
|
const Ce = ae.filter((ee) => ee !== te && !W3(te, ee));
|
|
27270
27274
|
let le = ne;
|
|
27271
27275
|
for (; le.parent !== "#"; ) {
|
|
27272
|
-
const ee =
|
|
27276
|
+
const ee = B.jstree("get_node", le.parent);
|
|
27273
27277
|
if (ee) {
|
|
27274
27278
|
if (ee.children.some((K) => {
|
|
27275
|
-
const we =
|
|
27279
|
+
const we = B.jstree("get_node", K);
|
|
27276
27280
|
return we == null ? void 0 : we.state.checked;
|
|
27277
27281
|
})) {
|
|
27278
27282
|
const K = ee.children.filter((we) => {
|
|
27279
|
-
const Oe =
|
|
27283
|
+
const Oe = B.jstree("get_node", we);
|
|
27280
27284
|
return Oe == null ? void 0 : Oe.state.checked;
|
|
27281
27285
|
}).map((we) => {
|
|
27282
|
-
const Oe =
|
|
27286
|
+
const Oe = B.jstree("get_node", we);
|
|
27283
27287
|
return Oe == null ? void 0 : Oe.original.full_path;
|
|
27284
27288
|
});
|
|
27285
27289
|
return Ce.filter((we) => !we.startsWith(ee.original.full_path)).concat(K);
|
|
@@ -27292,25 +27296,25 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27292
27296
|
});
|
|
27293
27297
|
}
|
|
27294
27298
|
return () => {
|
|
27295
|
-
if (c.current &&
|
|
27296
|
-
const
|
|
27297
|
-
|
|
27299
|
+
if (c.current && E && F && typeof window < "u") {
|
|
27300
|
+
const B = U(c.current);
|
|
27301
|
+
B && B.jstree("destroy").empty();
|
|
27298
27302
|
}
|
|
27299
27303
|
};
|
|
27300
|
-
}, [H, p,
|
|
27304
|
+
}, [H, p, E, F]);
|
|
27301
27305
|
const Z = [
|
|
27302
27306
|
{ header: "Key", accessorKey: "key", minSize: 180, maxSize: 180 },
|
|
27303
27307
|
{
|
|
27304
27308
|
header: "Value",
|
|
27305
27309
|
accessorKey: "value",
|
|
27306
|
-
cell: ({ row: { original:
|
|
27310
|
+
cell: ({ row: { original: B } }) => /* @__PURE__ */ x("p", { className: "break-words", title: B.value, children: B.value.length > 30 ? B.value.substring(0, 30) + "..." : B.value })
|
|
27307
27311
|
}
|
|
27308
|
-
], He = (
|
|
27309
|
-
if (typeof se == "boolean" ||
|
|
27312
|
+
], He = (B, se) => {
|
|
27313
|
+
if (typeof se == "boolean" || B.startsWith("is_"))
|
|
27310
27314
|
return se === !0 || se === 1 || se === "1" ? "Yes" : "No";
|
|
27311
|
-
if (
|
|
27315
|
+
if (B === "file_size")
|
|
27312
27316
|
return Ah(+se);
|
|
27313
|
-
if (["last_modified", "creation_time", "last_accessed", "created_at", "updated_at"].includes(
|
|
27317
|
+
if (["last_modified", "creation_time", "last_accessed", "created_at", "updated_at"].includes(B))
|
|
27314
27318
|
try {
|
|
27315
27319
|
return Hs(se).format("ddd, DD MMM YYYY hh:mm:ss A");
|
|
27316
27320
|
} catch {
|
|
@@ -27320,7 +27324,7 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27320
27324
|
};
|
|
27321
27325
|
fe(() => {
|
|
27322
27326
|
if (b) {
|
|
27323
|
-
const
|
|
27327
|
+
const B = b.type === "Email" || b.type === "Attachment" || b.object_type === "Email" || b.object_type === "Attachment", se = Object.entries(b).filter(
|
|
27324
27328
|
([J, ie]) => ![
|
|
27325
27329
|
"id",
|
|
27326
27330
|
"scan_id",
|
|
@@ -27330,11 +27334,11 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27330
27334
|
"file_system_type",
|
|
27331
27335
|
"file_system_flags",
|
|
27332
27336
|
// For Outlook data, also filter out absolute_path
|
|
27333
|
-
...
|
|
27337
|
+
...B ? ["absolute_path"] : []
|
|
27334
27338
|
].includes(J) && ie !== null
|
|
27335
27339
|
).map(([J, ie]) => {
|
|
27336
27340
|
let ne = He(J, ie);
|
|
27337
|
-
if (
|
|
27341
|
+
if (B && J === "name" && typeof ie == "string") {
|
|
27338
27342
|
const te = ie.lastIndexOf("/");
|
|
27339
27343
|
te !== -1 && (ne = ie.substring(te + 1));
|
|
27340
27344
|
}
|
|
@@ -27349,14 +27353,14 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27349
27353
|
w([]);
|
|
27350
27354
|
}, [b]);
|
|
27351
27355
|
const re = I && A ? A.filter(
|
|
27352
|
-
(
|
|
27356
|
+
(B) => B.key.toLowerCase().includes(I.toLowerCase()) || String(B.value).toLowerCase().includes(I.toLowerCase())
|
|
27353
27357
|
) : A, oe = () => {
|
|
27354
|
-
if (c.current &&
|
|
27355
|
-
const
|
|
27356
|
-
|
|
27358
|
+
if (c.current && E && F && typeof window < "u") {
|
|
27359
|
+
const B = U(c.current);
|
|
27360
|
+
B && B.jstree("close_all");
|
|
27357
27361
|
}
|
|
27358
27362
|
};
|
|
27359
|
-
return typeof window > "u" || !
|
|
27363
|
+
return typeof window > "u" || !E || !F ? /* @__PURE__ */ N(
|
|
27360
27364
|
"div",
|
|
27361
27365
|
{
|
|
27362
27366
|
className: "flex items-center gap-2 p-6 mt-2 text-lg font-semibold rounded-lg shadow-sm",
|
|
@@ -27392,11 +27396,11 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27392
27396
|
onClick: oe,
|
|
27393
27397
|
className: "px-3 py-1 text-sm text-white rounded-md transition-colors",
|
|
27394
27398
|
style: { backgroundColor: "var(--brand-orange)" },
|
|
27395
|
-
onMouseEnter: (
|
|
27396
|
-
|
|
27399
|
+
onMouseEnter: (B) => {
|
|
27400
|
+
B.currentTarget.style.backgroundColor = "#e65a03";
|
|
27397
27401
|
},
|
|
27398
|
-
onMouseLeave: (
|
|
27399
|
-
|
|
27402
|
+
onMouseLeave: (B) => {
|
|
27403
|
+
B.currentTarget.style.backgroundColor = "var(--brand-orange)";
|
|
27400
27404
|
},
|
|
27401
27405
|
children: "Collapse All"
|
|
27402
27406
|
}
|
|
@@ -27411,7 +27415,7 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27411
27415
|
{
|
|
27412
27416
|
placeholder: "Bulk Action",
|
|
27413
27417
|
options: ce(n),
|
|
27414
|
-
selectedOptions: y ? ce(n).filter((
|
|
27418
|
+
selectedOptions: y ? ce(n).filter((B) => B.value === y) : [],
|
|
27415
27419
|
handleChange: pe,
|
|
27416
27420
|
isMulti: !1,
|
|
27417
27421
|
isClearable: !0
|
|
@@ -27422,7 +27426,7 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27422
27426
|
{
|
|
27423
27427
|
type: ws.FILE,
|
|
27424
27428
|
columns: [{ header: "Folders", accessorKey: "folder" }],
|
|
27425
|
-
data: C.map((
|
|
27429
|
+
data: C.map((B) => ({ id: B, folder: B })) || [],
|
|
27426
27430
|
paginationEnabled: !1,
|
|
27427
27431
|
exportEnabled: !1
|
|
27428
27432
|
}
|
|
@@ -27438,7 +27442,7 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27438
27442
|
type: "text",
|
|
27439
27443
|
placeholder: "Search Metadata",
|
|
27440
27444
|
value: I,
|
|
27441
|
-
onChange: (
|
|
27445
|
+
onChange: (B) => M(B.target.value),
|
|
27442
27446
|
className: "flex-grow px-4 py-2 text-sm focus:outline-none w-full",
|
|
27443
27447
|
style: {
|
|
27444
27448
|
backgroundColor: "var(--bg-color)",
|
|
@@ -27454,8 +27458,8 @@ const j3 = 50, gR = "-", nu = {
|
|
|
27454
27458
|
backgroundColor: "var(--brand-light)",
|
|
27455
27459
|
color: "var(--brand-dark)"
|
|
27456
27460
|
},
|
|
27457
|
-
onMouseEnter: (
|
|
27458
|
-
onMouseLeave: (
|
|
27461
|
+
onMouseEnter: (B) => B.currentTarget.style.backgroundColor = "var(--hover-bg-color)",
|
|
27462
|
+
onMouseLeave: (B) => B.currentTarget.style.backgroundColor = "var(--brand-light)",
|
|
27459
27463
|
tabIndex: -1,
|
|
27460
27464
|
type: "button",
|
|
27461
27465
|
"aria-label": "Search",
|
|
@@ -27507,8 +27511,8 @@ function CR(e, t, n = !1, i = "") {
|
|
|
27507
27511
|
};
|
|
27508
27512
|
let v = null, C = null;
|
|
27509
27513
|
for (const y of d || []) {
|
|
27510
|
-
const { metadata_key:
|
|
27511
|
-
switch (
|
|
27514
|
+
const { metadata_key: _, metadata_value: A } = y;
|
|
27515
|
+
switch (_) {
|
|
27512
27516
|
case "total_values":
|
|
27513
27517
|
b.total_rows = A;
|
|
27514
27518
|
break;
|
|
@@ -27522,7 +27526,7 @@ function CR(e, t, n = !1, i = "") {
|
|
|
27522
27526
|
C = A;
|
|
27523
27527
|
break;
|
|
27524
27528
|
default:
|
|
27525
|
-
b[
|
|
27529
|
+
b[_] = A;
|
|
27526
27530
|
break;
|
|
27527
27531
|
}
|
|
27528
27532
|
}
|
|
@@ -27568,7 +27572,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27568
27572
|
is_primary_key: C,
|
|
27569
27573
|
is_unique_key: S,
|
|
27570
27574
|
foreign_key: y,
|
|
27571
|
-
total_rows:
|
|
27575
|
+
total_rows: _,
|
|
27572
27576
|
empty_rows: A,
|
|
27573
27577
|
encryption_type: w,
|
|
27574
27578
|
attribute_mapping: I
|
|
@@ -27578,7 +27582,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27578
27582
|
primaryKey: [],
|
|
27579
27583
|
uniqueKey: [],
|
|
27580
27584
|
foreignKeys: [],
|
|
27581
|
-
metadata: { total_rows:
|
|
27585
|
+
metadata: { total_rows: _, empty_rows: A }
|
|
27582
27586
|
}), r[p][m].columns.push({
|
|
27583
27587
|
id: `${p}-${m}-${b}`,
|
|
27584
27588
|
title: b,
|
|
@@ -27615,12 +27619,12 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27615
27619
|
const b = `table-${g}-${p}`;
|
|
27616
27620
|
m.foreignKeys.forEach((v) => {
|
|
27617
27621
|
if (v.reference && v.reference.includes(".")) {
|
|
27618
|
-
const [C, S] = v.reference.split("."), y = r[g][C],
|
|
27622
|
+
const [C, S] = v.reference.split("."), y = r[g][C], _ = m.columns.find((w) => w.title === v.column), A = y == null ? void 0 : y.columns.find((w) => w.title === S);
|
|
27619
27623
|
if (y && A) {
|
|
27620
27624
|
const w = {
|
|
27621
27625
|
id: `fk-edge-${b}-${v.column}`,
|
|
27622
27626
|
source: b,
|
|
27623
|
-
sourceHandle:
|
|
27627
|
+
sourceHandle: _ == null ? void 0 : _.id,
|
|
27624
27628
|
target: `table-${g}-${C}`,
|
|
27625
27629
|
targetHandle: A == null ? void 0 : A.id,
|
|
27626
27630
|
style: { strokeWidth: 2, stroke: "lightblue" },
|
|
@@ -27658,13 +27662,13 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27658
27662
|
activeReport: g
|
|
27659
27663
|
}) => {
|
|
27660
27664
|
var Wr;
|
|
27661
|
-
const { showLoader: p, hideLoader: m } = Sc(), { showToast: b } = l5(), [v, C] = W(!1), [S, y] = W([]), [
|
|
27665
|
+
const { showLoader: p, hideLoader: m } = Sc(), { showToast: b } = l5(), [v, C] = W(!1), [S, y] = W([]), [_, A] = W([]), [w, I] = W({}), [M, k] = W(""), [O, H] = W([]), [D, E] = W(!1), [L, F] = W(!1), [P, R] = W(!1), [T, $] = W(null), [z, G] = W(), [U, ce] = W(!1), [pe, Be] = W(!1), ge = be(null), me = be(null), [Me, ue] = W({ x: 0, y: 0, zoom: 1 }), Z = be(!1), [He, re] = W(!1), [oe, B] = W(null), [se, J] = W([]), [ie, ne] = W([]), te = wR();
|
|
27662
27666
|
fe(() => {
|
|
27663
27667
|
if (typeof window > "u") return;
|
|
27664
27668
|
(async () => {
|
|
27665
27669
|
try {
|
|
27666
|
-
const q = await import("./index-
|
|
27667
|
-
|
|
27670
|
+
const q = await import("./index-D4wkN13T.js");
|
|
27671
|
+
B({
|
|
27668
27672
|
ReactFlow: q.default,
|
|
27669
27673
|
MiniMap: q.MiniMap,
|
|
27670
27674
|
Background: q.Background,
|
|
@@ -27682,7 +27686,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27682
27686
|
}, []);
|
|
27683
27687
|
const { nodes: ae, edges: Ce } = Fe(
|
|
27684
27688
|
() => yR(w[M] || [], oe == null ? void 0 : oe.MarkerType),
|
|
27685
|
-
[M, w,
|
|
27689
|
+
[M, w, _, oe]
|
|
27686
27690
|
), [le, ee, Se] = oe != null && oe.useNodesState ? oe.useNodesState(ae) : [se.length > 0 ? se : ae, J, () => {
|
|
27687
27691
|
}], [K, we, Oe] = oe != null && oe.useEdgesState ? oe.useEdgesState(Ce) : [ie.length > 0 ? ie : Ce, ne, () => {
|
|
27688
27692
|
}];
|
|
@@ -27730,7 +27734,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27730
27734
|
onlyActive: !0
|
|
27731
27735
|
});
|
|
27732
27736
|
y(Le.data ?? []);
|
|
27733
|
-
const
|
|
27737
|
+
const V = (q = de == null ? void 0 : de.filter((Y) => Y.object_type === "table")) == null ? void 0 : q.map((Y) => {
|
|
27734
27738
|
const { result: ve, skipDbName: De } = CR(
|
|
27735
27739
|
Y,
|
|
27736
27740
|
ht,
|
|
@@ -27739,8 +27743,8 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27739
27743
|
);
|
|
27740
27744
|
return De && !L && F(!0), ve;
|
|
27741
27745
|
});
|
|
27742
|
-
A(
|
|
27743
|
-
const he =
|
|
27746
|
+
A(V);
|
|
27747
|
+
const he = V.reduce((Y, ve) => {
|
|
27744
27748
|
const De = ve.db_name;
|
|
27745
27749
|
return Y[De] || (Y[De] = []), Y[De].push(ve), Y;
|
|
27746
27750
|
}, {});
|
|
@@ -27754,10 +27758,10 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27754
27758
|
}, [n, r, ht, i]);
|
|
27755
27759
|
const c2 = (X, q) => {
|
|
27756
27760
|
const de = X.schema.filter((Le) => Le !== q);
|
|
27757
|
-
|
|
27761
|
+
$({
|
|
27758
27762
|
...X,
|
|
27759
27763
|
schema: [{ ...q }, ...de]
|
|
27760
|
-
}),
|
|
27764
|
+
}), G(q.attribute_mapping), R(!0);
|
|
27761
27765
|
}, Ta = Fe(() => {
|
|
27762
27766
|
if (!oe || !He)
|
|
27763
27767
|
return {};
|
|
@@ -27794,7 +27798,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27794
27798
|
] })
|
|
27795
27799
|
] }),
|
|
27796
27800
|
/* @__PURE__ */ x("table", { className: "border-spacing-10 overflow-visible w-full", children: /* @__PURE__ */ x("tbody", { children: de.schema.map((Le) => {
|
|
27797
|
-
var
|
|
27801
|
+
var V, he, Y, ve, De, dt, fn, en, iu, ru;
|
|
27798
27802
|
return /* @__PURE__ */ N("tr", { className: "relative text-xs py-1 px-2 h-7", style: { borderBottom: "1px solid var(--border-color)" }, children: [
|
|
27799
27803
|
/* @__PURE__ */ N("td", { className: "pr-6 font-light pl-2", style: { verticalAlign: "middle", color: "var(--text-color)" }, children: [
|
|
27800
27804
|
/* @__PURE__ */ x(X, { type: "target", position: q.Left, id: Le.id }),
|
|
@@ -27810,7 +27814,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27810
27814
|
/* @__PURE__ */ x(X, { type: "source", position: q.Right, id: Le.id })
|
|
27811
27815
|
] }),
|
|
27812
27816
|
/* @__PURE__ */ N("td", { className: "text-right font-thin pr-2 pl-4", style: { verticalAlign: "middle" }, children: [
|
|
27813
|
-
/* @__PURE__ */ x("div", { className: "flex items-center justify-end gap-2", children: ((he = (
|
|
27817
|
+
/* @__PURE__ */ x("div", { className: "flex items-center justify-end gap-2", children: ((he = (V = xn[de.label]) == null ? void 0 : V[Le.title]) == null ? void 0 : he.confidence_score) !== void 0 ? /* @__PURE__ */ x(Tx, { confidenceData: ((Y = xn[de.label]) == null ? void 0 : Y[Le.title]) || {}, position: "top", children: /* @__PURE__ */ N(
|
|
27814
27818
|
"span",
|
|
27815
27819
|
{
|
|
27816
27820
|
className: `text-xs rounded p-1 text-white ${xR(((De = (ve = xn[de.label]) == null ? void 0 : ve[Le.title]) == null ? void 0 : De.confidence_score) || 0)}`,
|
|
@@ -27869,10 +27873,10 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27869
27873
|
))
|
|
27870
27874
|
};
|
|
27871
27875
|
}, [oe, He, c2, xn]), Va = () => {
|
|
27872
|
-
if (
|
|
27873
|
-
const X = `${
|
|
27874
|
-
Le[X] || (Le[X] = {}), Le[X][q] =
|
|
27875
|
-
|
|
27876
|
+
if (z && T) {
|
|
27877
|
+
const X = `${T.db_name}.${T.label}`, q = T.schema[0].title, Le = { ...X3(r ?? []) };
|
|
27878
|
+
Le[X] || (Le[X] = {}), Le[X][q] = z, o(Le, () => {
|
|
27879
|
+
R(!1), G(void 0), $(null);
|
|
27876
27880
|
});
|
|
27877
27881
|
}
|
|
27878
27882
|
}, u2 = async () => {
|
|
@@ -27889,38 +27893,38 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27889
27893
|
var X, q, de, Le;
|
|
27890
27894
|
try {
|
|
27891
27895
|
Be(!0);
|
|
27892
|
-
let
|
|
27893
|
-
if (!
|
|
27896
|
+
let V = h == null ? void 0 : h.connector_id;
|
|
27897
|
+
if (!V && ((q = (X = g == null ? void 0 : g.scan) == null ? void 0 : X.connectors) != null && q.length)) {
|
|
27894
27898
|
const ve = g.scan.connectors.find((De) => De.uuid === n);
|
|
27895
|
-
ve != null && ve.connector_id && (
|
|
27899
|
+
ve != null && ve.connector_id && (V = ve.connector_id);
|
|
27896
27900
|
}
|
|
27897
|
-
if (!
|
|
27901
|
+
if (!V && n)
|
|
27898
27902
|
try {
|
|
27899
27903
|
const ve = await i.readScanReportDetails({
|
|
27900
27904
|
arg: n
|
|
27901
27905
|
});
|
|
27902
27906
|
if ((Le = (de = ve == null ? void 0 : ve.scan) == null ? void 0 : de.connectors) != null && Le.length) {
|
|
27903
27907
|
const De = ve.scan.connectors.find((dt) => dt.uuid === n);
|
|
27904
|
-
De != null && De.connector_id && (
|
|
27908
|
+
De != null && De.connector_id && (V = De.connector_id);
|
|
27905
27909
|
}
|
|
27906
27910
|
} catch (ve) {
|
|
27907
27911
|
console.error("Error getting scan details for fallback:", ve);
|
|
27908
27912
|
}
|
|
27909
|
-
if (!
|
|
27913
|
+
if (!V) {
|
|
27910
27914
|
b(wt.WARNING, "Unable to find connector ID for this scan.");
|
|
27911
27915
|
return;
|
|
27912
27916
|
}
|
|
27913
27917
|
const he = O.map((ve) => `${ve.db_name}.${ve.table}`), Y = await i.startSelectedTableScan({
|
|
27914
27918
|
connectionType: l || "",
|
|
27915
27919
|
indexScan: !1,
|
|
27916
|
-
connectorIDs:
|
|
27920
|
+
connectorIDs: V,
|
|
27917
27921
|
selectedTables: he
|
|
27918
27922
|
});
|
|
27919
27923
|
Y && !Y.startsWith("Error:") ? (b(wt.SUCCESS, "Selected table scan started successfully!"), ce(!1), H([]), d && d("reports"), f && f(), setTimeout(() => {
|
|
27920
27924
|
c && c(), u && u();
|
|
27921
27925
|
}, 1e3)) : b(wt.ERROR, `Failed to start scan: ${Y}`);
|
|
27922
|
-
} catch (
|
|
27923
|
-
console.error("Error starting selected table scan:",
|
|
27926
|
+
} catch (V) {
|
|
27927
|
+
console.error("Error starting selected table scan:", V), b(wt.ERROR, "Failed to start selected table scan. Please try again.");
|
|
27924
27928
|
} finally {
|
|
27925
27929
|
Be(!1);
|
|
27926
27930
|
}
|
|
@@ -27937,7 +27941,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27937
27941
|
value: X,
|
|
27938
27942
|
label: `${X} (${q.size})`
|
|
27939
27943
|
};
|
|
27940
|
-
}), [w,
|
|
27944
|
+
}), [w, _]), zr = Fe(() => S != null && S.length ? S.map((X) => ({
|
|
27941
27945
|
value: X.uuid,
|
|
27942
27946
|
label: X.name,
|
|
27943
27947
|
// Store country data for badge display
|
|
@@ -27993,7 +27997,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
27993
27997
|
] }), [O, _i, pe, S.length]), g2 = ({ data: X, isSelected: q }) => {
|
|
27994
27998
|
let de = null;
|
|
27995
27999
|
if (X.countries && X.countries.length > 0) {
|
|
27996
|
-
const
|
|
28000
|
+
const V = X.countries.slice(0, 3), he = X.countries.length > 3, Y = he ? X.countries.map((De) => De.country).join(", ") : "", ve = V.map((De, dt) => /* @__PURE__ */ N(
|
|
27997
28001
|
"span",
|
|
27998
28002
|
{
|
|
27999
28003
|
className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs border-[1px] flex-shrink-0",
|
|
@@ -28029,8 +28033,8 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
28029
28033
|
de
|
|
28030
28034
|
] });
|
|
28031
28035
|
}, p2 = Fe(() => {
|
|
28032
|
-
const X =
|
|
28033
|
-
value: (
|
|
28036
|
+
const X = z ? zr.find((de) => de.value === z.value) : null, q = {
|
|
28037
|
+
value: (z == null ? void 0 : z.value) || "undefined",
|
|
28034
28038
|
label: (X == null ? void 0 : X.label) ?? N0,
|
|
28035
28039
|
// Include countries for the selected attribute
|
|
28036
28040
|
countries: (X == null ? void 0 : X.countries) || []
|
|
@@ -28043,7 +28047,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
28043
28047
|
placeholder: "Select an attribute",
|
|
28044
28048
|
options: [{ label: N0, value: "undefined" }, ...zr],
|
|
28045
28049
|
handleChange: (de) => {
|
|
28046
|
-
|
|
28050
|
+
G(de ?? void 0);
|
|
28047
28051
|
},
|
|
28048
28052
|
selectedOptions: [q],
|
|
28049
28053
|
isMulti: !1,
|
|
@@ -28071,8 +28075,8 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
28071
28075
|
}
|
|
28072
28076
|
}
|
|
28073
28077
|
);
|
|
28074
|
-
}, [zr,
|
|
28075
|
-
return !
|
|
28078
|
+
}, [zr, z]);
|
|
28079
|
+
return !_ || _.length === 0 || !v ? /* @__PURE__ */ x(
|
|
28076
28080
|
"div",
|
|
28077
28081
|
{
|
|
28078
28082
|
className: "flex items-center gap-2 p-6 mt-2 text-lg font-semibold rounded-lg shadow-sm",
|
|
@@ -28108,7 +28112,7 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
28108
28112
|
"button",
|
|
28109
28113
|
{
|
|
28110
28114
|
onClick: () => {
|
|
28111
|
-
|
|
28115
|
+
E(!0);
|
|
28112
28116
|
},
|
|
28113
28117
|
className: "bg-brand-primary text-white px-4 py-2 rounded transition-colors duration-150 shadow-sm font-medium footer-button mr-2",
|
|
28114
28118
|
style: { minWidth: 140 },
|
|
@@ -28174,12 +28178,12 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
28174
28178
|
(de) => de.filter((Le) => !(Le.db_name === M && Le.table === q.data.label))
|
|
28175
28179
|
) : H((de) => [...de, { db_name: M, table: q.data.label }]), ee(
|
|
28176
28180
|
(de) => de.map((Le) => {
|
|
28177
|
-
var
|
|
28181
|
+
var V;
|
|
28178
28182
|
return Le.id === q.id ? {
|
|
28179
28183
|
...Le,
|
|
28180
28184
|
data: {
|
|
28181
28185
|
...Le.data,
|
|
28182
|
-
selected: !((
|
|
28186
|
+
selected: !((V = Le.data) != null && V.selected)
|
|
28183
28187
|
}
|
|
28184
28188
|
} : Le;
|
|
28185
28189
|
})
|
|
@@ -28212,34 +28216,34 @@ const xR = (e) => e >= 0.8 ? "bg-green-600" : e >= 0.4 ? "bg-yellow-600" : "bg-r
|
|
|
28212
28216
|
"button",
|
|
28213
28217
|
{
|
|
28214
28218
|
onClick: () => {
|
|
28215
|
-
|
|
28219
|
+
E(!1);
|
|
28216
28220
|
},
|
|
28217
28221
|
className: "bg-gray-100 text-gray-700 px-4 py-2 rounded hover:bg-gray-300 border border-gray-300 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-white dark:border-gray-400 footer-button",
|
|
28218
28222
|
children: "Close"
|
|
28219
28223
|
}
|
|
28220
28224
|
) }),
|
|
28221
28225
|
onClose: () => {
|
|
28222
|
-
|
|
28226
|
+
E(!1);
|
|
28223
28227
|
},
|
|
28224
28228
|
body: f2,
|
|
28225
28229
|
cancelButtonText: "Cancel"
|
|
28226
28230
|
}
|
|
28227
28231
|
),
|
|
28228
|
-
|
|
28232
|
+
P && T && /* @__PURE__ */ x(
|
|
28229
28233
|
go,
|
|
28230
28234
|
{
|
|
28231
|
-
onClose: () =>
|
|
28232
|
-
title: `${
|
|
28233
|
-
isOpen:
|
|
28235
|
+
onClose: () => R(!1),
|
|
28236
|
+
title: `${T.db_name}.${T.label}`,
|
|
28237
|
+
isOpen: P,
|
|
28234
28238
|
isUuidSubtitle: !1,
|
|
28235
28239
|
subtitle: /* @__PURE__ */ N("div", { className: "flex flex-col gap-1", children: [
|
|
28236
28240
|
/* @__PURE__ */ N("div", { className: "flex gap-1 items-center", children: [
|
|
28237
28241
|
/* @__PURE__ */ x("b", { className: "text-black dark:text-gray-200", children: "Column Name:" }),
|
|
28238
|
-
/* @__PURE__ */ x("span", { className: "dark:text-gray-300", children:
|
|
28242
|
+
/* @__PURE__ */ x("span", { className: "dark:text-gray-300", children: T.schema[0].title })
|
|
28239
28243
|
] }),
|
|
28240
28244
|
/* @__PURE__ */ N("div", { className: "flex gap-1 items-center", children: [
|
|
28241
28245
|
/* @__PURE__ */ x("b", { className: "text-black dark:text-gray-200", children: "Current Mapping:" }),
|
|
28242
|
-
/* @__PURE__ */ x("span", { className: "dark:text-gray-300", children: ((Wr =
|
|
28246
|
+
/* @__PURE__ */ x("span", { className: "dark:text-gray-300", children: ((Wr = T.schema[0].attribute_mapping) == null ? void 0 : Wr.label) ?? "-" })
|
|
28243
28247
|
] })
|
|
28244
28248
|
] }),
|
|
28245
28249
|
body: p2,
|