@tesouro/embedded-components-react 0.7.68 → 0.7.72
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/README.md +14 -11
- package/dist/index.css +15 -6
- package/dist/index.d.ts +64 -2
- package/dist/lib/LinkedAccountsWidget.d.ts +9 -0
- package/dist/lib/TransfersWidget.d.ts +55 -2
- package/dist/lib/WidgetSuite.d.ts +63 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +199 -182
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +99 -108
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +135 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +140 -153
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +111 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +181 -126
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/TransfersSection.js +16 -8
- package/dist/packages/shared-ui-shadcn/dist/index.js +328 -327
- package/package.json +1 -1
|
@@ -13,10 +13,10 @@ var T = Object.defineProperty, E = (e, t) => {
|
|
|
13
13
|
enumerable: !0
|
|
14
14
|
});
|
|
15
15
|
return t || T(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
16
|
-
},
|
|
17
|
-
let t =
|
|
16
|
+
}, D = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), O = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ee = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), k = (e) => {
|
|
17
|
+
let t = ee(e);
|
|
18
18
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
19
|
-
},
|
|
19
|
+
}, A = {
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
width: 24,
|
|
22
22
|
height: 24,
|
|
@@ -26,30 +26,30 @@ var T = Object.defineProperty, E = (e, t) => {
|
|
|
26
26
|
strokeWidth: 2,
|
|
27
27
|
strokeLinecap: "round",
|
|
28
28
|
strokeLinejoin: "round"
|
|
29
|
-
},
|
|
29
|
+
}, j = (e) => {
|
|
30
30
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
31
31
|
return !1;
|
|
32
|
-
},
|
|
33
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
32
|
+
}, M = r({}), N = () => s(M), te = a(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: a = "", children: o, iconNode: s, ...c }, l) => {
|
|
33
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = N() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
34
34
|
return i("svg", {
|
|
35
35
|
ref: l,
|
|
36
|
-
...
|
|
37
|
-
width: t ?? u ??
|
|
38
|
-
height: t ?? u ??
|
|
36
|
+
...A,
|
|
37
|
+
width: t ?? u ?? A.width,
|
|
38
|
+
height: t ?? u ?? A.height,
|
|
39
39
|
stroke: e ?? p,
|
|
40
40
|
strokeWidth: h,
|
|
41
|
-
className:
|
|
42
|
-
...!o && !
|
|
41
|
+
className: D("lucide", m, a),
|
|
42
|
+
...!o && !j(c) && { "aria-hidden": "true" },
|
|
43
43
|
...c
|
|
44
44
|
}, [...s.map(([e, t]) => i(e, t)), ...Array.isArray(o) ? o : [o]]);
|
|
45
45
|
}), P = (e, t) => {
|
|
46
|
-
let n = a(({ className: n, ...r }, a) => i(
|
|
46
|
+
let n = a(({ className: n, ...r }, a) => i(te, {
|
|
47
47
|
ref: a,
|
|
48
48
|
iconNode: t,
|
|
49
|
-
className:
|
|
49
|
+
className: D(`lucide-${O(k(e))}`, `lucide-${e}`, n),
|
|
50
50
|
...r
|
|
51
51
|
}));
|
|
52
|
-
return n.displayName =
|
|
52
|
+
return n.displayName = k(e), n;
|
|
53
53
|
}, F = P("arrow-down", [["path", {
|
|
54
54
|
d: "M12 5v14",
|
|
55
55
|
key: "s699le"
|
|
@@ -1388,15 +1388,15 @@ var qn = Object.defineProperty, Jn = (e, t) => qn(e, "name", {
|
|
|
1388
1388
|
if (i && w.current) return;
|
|
1389
1389
|
let t = e.target;
|
|
1390
1390
|
[...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
1391
|
-
}, m),
|
|
1391
|
+
}, m), D = f ? x === v.length - 1 : !1, O = Kn((e) => {
|
|
1392
1392
|
e.key === "Escape" && (a?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
|
|
1393
1393
|
});
|
|
1394
1394
|
return e.useEffect(() => {
|
|
1395
|
-
if (
|
|
1395
|
+
if (D) return m.addEventListener("keydown", O, { capture: !0 }), () => m.removeEventListener("keydown", O, { capture: !0 });
|
|
1396
1396
|
}, [
|
|
1397
1397
|
m,
|
|
1398
|
-
|
|
1399
|
-
|
|
1398
|
+
D,
|
|
1399
|
+
O
|
|
1400
1400
|
]), e.useEffect(() => {
|
|
1401
1401
|
if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Qn = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), ar(), () => {
|
|
1402
1402
|
r && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (m.body.style.pointerEvents = Qn));
|
|
@@ -2939,15 +2939,15 @@ var os = 50, ss = async (e, t, n) => {
|
|
|
2939
2939
|
y: r
|
|
2940
2940
|
}, p = Wo(i), m = Ho(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
2941
2941
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
2942
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Po(d[_], T),
|
|
2942
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Po(d[_], T), D = Po(d[v], T), O = E, ee = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = Lo(O, k, ee), j = !c.arrow && Bo(i) != null && k !== A && a.reference[m] / 2 - (k < O ? E : D) - h[m] / 2 < 0, M = j ? k < O ? k - O : k - ee : 0;
|
|
2943
2943
|
return {
|
|
2944
|
-
[p]: f[p] +
|
|
2944
|
+
[p]: f[p] + M,
|
|
2945
2945
|
data: {
|
|
2946
|
-
[p]:
|
|
2947
|
-
centerOffset:
|
|
2948
|
-
...
|
|
2946
|
+
[p]: A,
|
|
2947
|
+
centerOffset: k - A - M,
|
|
2948
|
+
...j && { alignmentOffset: M }
|
|
2949
2949
|
},
|
|
2950
|
-
reset:
|
|
2950
|
+
reset: j
|
|
2951
2951
|
};
|
|
2952
2952
|
}
|
|
2953
2953
|
}), ls = function(e) {
|
|
@@ -3640,19 +3640,19 @@ function Rc(t) {
|
|
|
3640
3640
|
e !== w.current && (w.current = e, _(e));
|
|
3641
3641
|
}, []), x = e.useCallback((e) => {
|
|
3642
3642
|
e !== T.current && (T.current = e, y(e));
|
|
3643
|
-
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d),
|
|
3643
|
+
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = Lc(l), ee = Lc(a), k = Lc(u), A = e.useCallback(() => {
|
|
3644
3644
|
if (!w.current || !T.current) return;
|
|
3645
3645
|
let e = {
|
|
3646
3646
|
placement: n,
|
|
3647
3647
|
strategy: r,
|
|
3648
3648
|
middleware: m
|
|
3649
3649
|
};
|
|
3650
|
-
|
|
3650
|
+
ee.current && (e.platform = ee.current), Mc(w.current, T.current, e).then((e) => {
|
|
3651
3651
|
let t = {
|
|
3652
3652
|
...e,
|
|
3653
|
-
isPositioned:
|
|
3653
|
+
isPositioned: k.current !== !1
|
|
3654
3654
|
};
|
|
3655
|
-
|
|
3655
|
+
j.current && !Pc(E.current, t) && (E.current = t, p.flushSync(() => {
|
|
3656
3656
|
f(t);
|
|
3657
3657
|
}));
|
|
3658
3658
|
});
|
|
@@ -3660,8 +3660,8 @@ function Rc(t) {
|
|
|
3660
3660
|
m,
|
|
3661
3661
|
n,
|
|
3662
3662
|
r,
|
|
3663
|
-
|
|
3664
|
-
|
|
3663
|
+
ee,
|
|
3664
|
+
k
|
|
3665
3665
|
]);
|
|
3666
3666
|
Nc(() => {
|
|
3667
3667
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
|
|
@@ -3669,41 +3669,41 @@ function Rc(t) {
|
|
|
3669
3669
|
isPositioned: !1
|
|
3670
3670
|
})));
|
|
3671
3671
|
}, [u]);
|
|
3672
|
-
let
|
|
3673
|
-
Nc(() => (
|
|
3674
|
-
|
|
3672
|
+
let j = e.useRef(!1);
|
|
3673
|
+
Nc(() => (j.current = !0, () => {
|
|
3674
|
+
j.current = !1;
|
|
3675
3675
|
}), []), Nc(() => {
|
|
3676
3676
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
3677
|
-
if (
|
|
3678
|
-
|
|
3677
|
+
if (O.current) return O.current(S, C, A);
|
|
3678
|
+
A();
|
|
3679
3679
|
}
|
|
3680
3680
|
}, [
|
|
3681
3681
|
S,
|
|
3682
3682
|
C,
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3683
|
+
A,
|
|
3684
|
+
O,
|
|
3685
|
+
D
|
|
3686
3686
|
]);
|
|
3687
|
-
let
|
|
3687
|
+
let M = e.useMemo(() => ({
|
|
3688
3688
|
reference: w,
|
|
3689
3689
|
floating: T,
|
|
3690
3690
|
setReference: b,
|
|
3691
3691
|
setFloating: x
|
|
3692
|
-
}), [b, x]),
|
|
3692
|
+
}), [b, x]), N = e.useMemo(() => ({
|
|
3693
3693
|
reference: S,
|
|
3694
3694
|
floating: C
|
|
3695
|
-
}), [S, C]),
|
|
3695
|
+
}), [S, C]), te = e.useMemo(() => {
|
|
3696
3696
|
let e = {
|
|
3697
3697
|
position: r,
|
|
3698
3698
|
left: 0,
|
|
3699
3699
|
top: 0
|
|
3700
3700
|
};
|
|
3701
|
-
if (!
|
|
3702
|
-
let t = Ic(
|
|
3701
|
+
if (!N.floating) return e;
|
|
3702
|
+
let t = Ic(N.floating, d.x), n = Ic(N.floating, d.y);
|
|
3703
3703
|
return c ? {
|
|
3704
3704
|
...e,
|
|
3705
3705
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
3706
|
-
...Fc(
|
|
3706
|
+
...Fc(N.floating) >= 1.5 && { willChange: "transform" }
|
|
3707
3707
|
} : {
|
|
3708
3708
|
position: r,
|
|
3709
3709
|
left: t,
|
|
@@ -3712,22 +3712,22 @@ function Rc(t) {
|
|
|
3712
3712
|
}, [
|
|
3713
3713
|
r,
|
|
3714
3714
|
c,
|
|
3715
|
-
|
|
3715
|
+
N.floating,
|
|
3716
3716
|
d.x,
|
|
3717
3717
|
d.y
|
|
3718
3718
|
]);
|
|
3719
3719
|
return e.useMemo(() => ({
|
|
3720
3720
|
...d,
|
|
3721
|
-
update:
|
|
3722
|
-
refs:
|
|
3723
|
-
elements:
|
|
3724
|
-
floatingStyles:
|
|
3721
|
+
update: A,
|
|
3722
|
+
refs: M,
|
|
3723
|
+
elements: N,
|
|
3724
|
+
floatingStyles: te
|
|
3725
3725
|
}), [
|
|
3726
3726
|
d,
|
|
3727
|
-
|
|
3728
|
-
j,
|
|
3727
|
+
A,
|
|
3729
3728
|
M,
|
|
3730
|
-
N
|
|
3729
|
+
N,
|
|
3730
|
+
te
|
|
3731
3731
|
]);
|
|
3732
3732
|
}
|
|
3733
3733
|
var zc = (e) => {
|
|
@@ -3837,19 +3837,19 @@ var zc = (e) => {
|
|
|
3837
3837
|
ref: l
|
|
3838
3838
|
});
|
|
3839
3839
|
}, "PopperAnchor")), al = "PopperContent", [ol, sl] = Qc(al), cl = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ Xc(function(t, n) {
|
|
3840
|
-
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ...g } = t, v = tl(al, r), [y, b] = e.useState(null), x = B(n, b), [S, C] = e.useState(null), w = mo(S), T = w?.width ?? 0, E = w?.height ?? 0,
|
|
3840
|
+
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ...g } = t, v = tl(al, r), [y, b] = e.useState(null), x = B(n, b), [S, C] = e.useState(null), w = mo(S), T = w?.width ?? 0, E = w?.height ?? 0, D = i + (o === "center" ? "" : "-" + o), O = typeof d == "number" ? d : {
|
|
3841
3841
|
top: 0,
|
|
3842
3842
|
right: 0,
|
|
3843
3843
|
bottom: 0,
|
|
3844
3844
|
left: 0,
|
|
3845
3845
|
...d
|
|
3846
|
-
},
|
|
3847
|
-
padding:
|
|
3848
|
-
boundary:
|
|
3849
|
-
altBoundary:
|
|
3850
|
-
}, { refs:
|
|
3846
|
+
}, ee = Array.isArray(u) ? u : [u], k = ee.length > 0, A = {
|
|
3847
|
+
padding: O,
|
|
3848
|
+
boundary: ee.filter(fl),
|
|
3849
|
+
altBoundary: k
|
|
3850
|
+
}, { refs: j, floatingStyles: M, placement: N, isPositioned: te, middlewareData: P } = Rc({
|
|
3851
3851
|
strategy: "fixed",
|
|
3852
|
-
placement:
|
|
3852
|
+
placement: D,
|
|
3853
3853
|
whileElementsMounted: /* @__PURE__ */ Xc((...e) => wc(...e, { animationFrame: m === "always" }), "whileElementsMounted"),
|
|
3854
3854
|
elements: { reference: v.anchor },
|
|
3855
3855
|
middleware: [
|
|
@@ -3861,11 +3861,11 @@ var zc = (e) => {
|
|
|
3861
3861
|
mainAxis: !0,
|
|
3862
3862
|
crossAxis: !1,
|
|
3863
3863
|
limiter: f === "partial" ? Hc() : void 0,
|
|
3864
|
-
...
|
|
3864
|
+
...A
|
|
3865
3865
|
}),
|
|
3866
|
-
l && Uc({ ...
|
|
3866
|
+
l && Uc({ ...A }),
|
|
3867
3867
|
Wc({
|
|
3868
|
-
...
|
|
3868
|
+
...A,
|
|
3869
3869
|
apply: /* @__PURE__ */ Xc(({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
3870
3870
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
3871
3871
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
@@ -3881,27 +3881,27 @@ var zc = (e) => {
|
|
|
3881
3881
|
}),
|
|
3882
3882
|
p && Gc({
|
|
3883
3883
|
strategy: "referenceHidden",
|
|
3884
|
-
...
|
|
3885
|
-
boundary:
|
|
3884
|
+
...A,
|
|
3885
|
+
boundary: k ? A.boundary : void 0
|
|
3886
3886
|
})
|
|
3887
3887
|
]
|
|
3888
3888
|
}), F = v.setPlacementState;
|
|
3889
|
-
ft(() => (F(
|
|
3889
|
+
ft(() => (F(N), () => {
|
|
3890
3890
|
F(void 0);
|
|
3891
|
-
}), [
|
|
3892
|
-
let [ne, re] = ml(
|
|
3891
|
+
}), [N, F]);
|
|
3892
|
+
let [ne, re] = ml(N), I = Kn(h);
|
|
3893
3893
|
ft(() => {
|
|
3894
|
-
|
|
3895
|
-
}, [
|
|
3894
|
+
te && I?.();
|
|
3895
|
+
}, [te, I]);
|
|
3896
3896
|
let L = P.arrow?.x, R = P.arrow?.y, ie = P.arrow?.centerOffset !== 0, [ae, z] = e.useState();
|
|
3897
3897
|
return ft(() => {
|
|
3898
3898
|
y && z(window.getComputedStyle(y).zIndex);
|
|
3899
3899
|
}, [y]), /* @__PURE__ */ _("div", {
|
|
3900
|
-
ref:
|
|
3900
|
+
ref: j.setFloating,
|
|
3901
3901
|
"data-radix-popper-content-wrapper": "",
|
|
3902
3902
|
style: {
|
|
3903
|
-
...
|
|
3904
|
-
transform:
|
|
3903
|
+
...M,
|
|
3904
|
+
transform: te ? M.transform : "translate(0, -200%)",
|
|
3905
3905
|
minWidth: "max-content",
|
|
3906
3906
|
zIndex: ae,
|
|
3907
3907
|
"--radix-popper-transform-origin": [P.transformOrigin?.x, P.transformOrigin?.y].join(" "),
|
|
@@ -3926,7 +3926,7 @@ var zc = (e) => {
|
|
|
3926
3926
|
ref: x,
|
|
3927
3927
|
style: {
|
|
3928
3928
|
...g.style,
|
|
3929
|
-
animation:
|
|
3929
|
+
animation: te ? g.style?.animation : "none"
|
|
3930
3930
|
}
|
|
3931
3931
|
})
|
|
3932
3932
|
})
|
|
@@ -4282,20 +4282,20 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
|
|
|
4282
4282
|
onDismiss: () => n.onOpenChange(!1)
|
|
4283
4283
|
});
|
|
4284
4284
|
}, "MenuRootContentNonModal")), Tu = /* @__PURE__ */ ye("MenuContent.ScrollLock"), Eu = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ U(function(t, n) {
|
|
4285
|
-
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = t, v = uu(yu, r), y = fu(yu, r), b = su(r), x = cu(r), S = ru(r), [C, w] = e.useState(null), T = e.useRef(null), E = B(n, T, v.onContentChange),
|
|
4285
|
+
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = t, v = uu(yu, r), y = fu(yu, r), b = su(r), x = cu(r), S = ru(r), [C, w] = e.useState(null), T = e.useRef(null), E = B(n, T, v.onContentChange), D = e.useRef(0), O = e.useRef(""), ee = e.useRef(0), k = e.useRef(null), A = e.useRef("right"), j = e.useRef(0), M = h ? Bi : e.Fragment, N = h ? {
|
|
4286
4286
|
as: Tu,
|
|
4287
4287
|
allowPinchZoom: !0
|
|
4288
|
-
} : void 0,
|
|
4289
|
-
let t =
|
|
4288
|
+
} : void 0, te = /* @__PURE__ */ U((e) => {
|
|
4289
|
+
let t = O.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Ju(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
4290
4290
|
(/* @__PURE__ */ U((function e(t) {
|
|
4291
|
-
|
|
4291
|
+
O.current = t, window.clearTimeout(D.current), t !== "" && (D.current = window.setTimeout(() => e(""), 1e3));
|
|
4292
4292
|
}), "updateSearch"))(t), o && setTimeout(() => o.focus());
|
|
4293
4293
|
}, "handleTypeaheadSearch");
|
|
4294
|
-
e.useEffect(() => () => window.clearTimeout(
|
|
4295
|
-
let P = e.useCallback((e) =>
|
|
4294
|
+
e.useEffect(() => () => window.clearTimeout(D.current), []), jr();
|
|
4295
|
+
let P = e.useCallback((e) => A.current === k.current?.side && Xu(e, k.current?.area), []);
|
|
4296
4296
|
return /* @__PURE__ */ _(bu, {
|
|
4297
4297
|
scope: r,
|
|
4298
|
-
searchRef:
|
|
4298
|
+
searchRef: O,
|
|
4299
4299
|
onItemEnter: e.useCallback((e) => {
|
|
4300
4300
|
P(e) && e.preventDefault();
|
|
4301
4301
|
}, [P]),
|
|
@@ -4305,12 +4305,12 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
|
|
|
4305
4305
|
onTriggerLeave: e.useCallback((e) => {
|
|
4306
4306
|
P(e) && e.preventDefault();
|
|
4307
4307
|
}, [P]),
|
|
4308
|
-
pointerGraceTimerRef:
|
|
4308
|
+
pointerGraceTimerRef: ee,
|
|
4309
4309
|
onPointerGraceIntentChange: e.useCallback((e) => {
|
|
4310
|
-
|
|
4310
|
+
k.current = e;
|
|
4311
4311
|
}, []),
|
|
4312
|
-
children: /* @__PURE__ */ _(
|
|
4313
|
-
...
|
|
4312
|
+
children: /* @__PURE__ */ _(M, {
|
|
4313
|
+
...N,
|
|
4314
4314
|
children: /* @__PURE__ */ _(fr, {
|
|
4315
4315
|
asChild: !0,
|
|
4316
4316
|
trapped: a,
|
|
@@ -4353,7 +4353,7 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
|
|
|
4353
4353
|
},
|
|
4354
4354
|
onKeyDown: H(g.onKeyDown, (e) => {
|
|
4355
4355
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
4356
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r &&
|
|
4356
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && te(e.key));
|
|
4357
4357
|
let i = T.current;
|
|
4358
4358
|
if (e.target !== i || !eu.includes(e.key)) return;
|
|
4359
4359
|
e.preventDefault();
|
|
@@ -4361,13 +4361,13 @@ var tu = "Menu", [nu, ru, iu] = /* @__PURE__ */ Je(tu), [au, ou] = /* @__PURE__
|
|
|
4361
4361
|
$l.includes(e.key) && a.reverse(), Ku(a);
|
|
4362
4362
|
}),
|
|
4363
4363
|
onBlur: H(t.onBlur, (e) => {
|
|
4364
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(
|
|
4364
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(D.current), O.current = "");
|
|
4365
4365
|
}),
|
|
4366
4366
|
onPointerMove: H(t.onPointerMove, Zu((e) => {
|
|
4367
|
-
let t = e.target, n =
|
|
4367
|
+
let t = e.target, n = j.current !== e.clientX;
|
|
4368
4368
|
if (e.currentTarget.contains(t) && n) {
|
|
4369
|
-
let t = e.clientX >
|
|
4370
|
-
|
|
4369
|
+
let t = e.clientX > j.current ? "right" : "left";
|
|
4370
|
+
A.current = t, j.current = e.clientX;
|
|
4371
4371
|
}
|
|
4372
4372
|
}))
|
|
4373
4373
|
})
|
|
@@ -5242,32 +5242,32 @@ var Hp = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ hp(function(t, n) {
|
|
|
5242
5242
|
"ArrowDown"
|
|
5243
5243
|
], Jp = [" ", "Enter"], Yp = "Select", [Xp, Zp, Qp] = /* @__PURE__ */ Je(Yp), [$p, em] = /* @__PURE__ */ We(Yp, [Qp, $c]), tm = $c(), [nm, rm] = $p(Yp), [im, am] = $p(Yp);
|
|
5244
5244
|
function om(t) {
|
|
5245
|
-
let { __scopeSelect: n, children: r, open: i, defaultOpen: a, onOpenChange: o, value: s, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: h, internal_do_not_use_render: g } = t, v = tm(n), [y, b] = e.useState(null), [x, S] = e.useState(null), [C, w] = e.useState(!1), T = sn(u), [E,
|
|
5245
|
+
let { __scopeSelect: n, children: r, open: i, defaultOpen: a, onOpenChange: o, value: s, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: h, internal_do_not_use_render: g } = t, v = tm(n), [y, b] = e.useState(null), [x, S] = e.useState(null), [C, w] = e.useState(!1), T = sn(u), [E, D] = xt({
|
|
5246
5246
|
prop: i,
|
|
5247
5247
|
defaultProp: a ?? !1,
|
|
5248
5248
|
onChange: o,
|
|
5249
5249
|
caller: Yp
|
|
5250
|
-
}), [
|
|
5250
|
+
}), [O, ee] = xt({
|
|
5251
5251
|
prop: s,
|
|
5252
5252
|
defaultProp: c,
|
|
5253
5253
|
onChange: l,
|
|
5254
5254
|
caller: Yp
|
|
5255
|
-
}),
|
|
5255
|
+
}), k = e.useRef(null), A = e.useRef(O);
|
|
5256
5256
|
e.useEffect(() => {
|
|
5257
5257
|
let e = h ? y?.ownerDocument.getElementById(h) : y?.form;
|
|
5258
5258
|
if (e instanceof HTMLFormElement) {
|
|
5259
|
-
let t = /* @__PURE__ */ W(() =>
|
|
5259
|
+
let t = /* @__PURE__ */ W(() => ee(A.current), "reset");
|
|
5260
5260
|
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
5261
5261
|
}
|
|
5262
5262
|
}, [
|
|
5263
5263
|
h,
|
|
5264
5264
|
y,
|
|
5265
|
-
|
|
5265
|
+
ee
|
|
5266
5266
|
]);
|
|
5267
|
-
let
|
|
5268
|
-
|
|
5267
|
+
let j = !y || !!h || !!y.closest("form"), [M, N] = e.useState(/* @__PURE__ */ new Set()), te = zt(), P = Array.from(M).map((e) => e.props.value).join(";"), F = e.useCallback((e) => {
|
|
5268
|
+
N((t) => new Set(t).add(e));
|
|
5269
5269
|
}, []), ne = e.useCallback((e) => {
|
|
5270
|
-
|
|
5270
|
+
N((t) => {
|
|
5271
5271
|
let n = new Set(t);
|
|
5272
5272
|
return n.delete(e), n;
|
|
5273
5273
|
});
|
|
@@ -5279,20 +5279,20 @@ function om(t) {
|
|
|
5279
5279
|
onValueNodeChange: S,
|
|
5280
5280
|
valueNodeHasChildren: C,
|
|
5281
5281
|
onValueNodeHasChildrenChange: w,
|
|
5282
|
-
contentId:
|
|
5283
|
-
value:
|
|
5284
|
-
onValueChange:
|
|
5282
|
+
contentId: te,
|
|
5283
|
+
value: O,
|
|
5284
|
+
onValueChange: ee,
|
|
5285
5285
|
open: E,
|
|
5286
|
-
onOpenChange:
|
|
5286
|
+
onOpenChange: D,
|
|
5287
5287
|
dir: T,
|
|
5288
|
-
triggerPointerDownPosRef:
|
|
5288
|
+
triggerPointerDownPosRef: k,
|
|
5289
5289
|
disabled: p,
|
|
5290
5290
|
name: d,
|
|
5291
5291
|
autoComplete: f,
|
|
5292
5292
|
form: h,
|
|
5293
|
-
nativeOptions:
|
|
5293
|
+
nativeOptions: M,
|
|
5294
5294
|
nativeSelectKey: P,
|
|
5295
|
-
isFormControl:
|
|
5295
|
+
isFormControl: j
|
|
5296
5296
|
};
|
|
5297
5297
|
return /* @__PURE__ */ _(hl, {
|
|
5298
5298
|
...v,
|
|
@@ -5418,21 +5418,21 @@ var sm = /* @__PURE__ */ W((e) => {
|
|
|
5418
5418
|
})
|
|
5419
5419
|
}), i) : null;
|
|
5420
5420
|
}, "SelectContentFragment")), ym = 10, [bm, xm] = $p(gm), Sm = /* @__PURE__ */ ye("SelectContent.RemoveScroll"), Cm = /* @__PURE__ */ e.forwardRef(/* @__PURE__ */ W(function(t, n) {
|
|
5421
|
-
let { __scopeSelect: r } = t, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: v, ...y } = t, b = rm(gm, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = B(n, S), [E,
|
|
5421
|
+
let { __scopeSelect: r } = t, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: v, ...y } = t, b = rm(gm, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = B(n, S), [E, D] = e.useState(null), [O, ee] = e.useState(null), k = Zp(r), [A, j] = e.useState(!1), M = e.useRef(!1);
|
|
5422
5422
|
e.useEffect(() => {
|
|
5423
5423
|
if (x) return Yi(x);
|
|
5424
5424
|
}, [x]), jr();
|
|
5425
|
-
let
|
|
5426
|
-
let [t, ...n] =
|
|
5425
|
+
let N = e.useCallback((e) => {
|
|
5426
|
+
let [t, ...n] = k().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
|
|
5427
5427
|
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && C && (C.scrollTop = 0), n === r && C && (C.scrollTop = C.scrollHeight), n?.focus(), document.activeElement !== i)) return;
|
|
5428
|
-
}, [
|
|
5429
|
-
|
|
5428
|
+
}, [k, C]), te = e.useCallback(() => N([E, x]), [
|
|
5429
|
+
N,
|
|
5430
5430
|
E,
|
|
5431
5431
|
x
|
|
5432
5432
|
]);
|
|
5433
5433
|
e.useEffect(() => {
|
|
5434
|
-
|
|
5435
|
-
}, [
|
|
5434
|
+
A && te();
|
|
5435
|
+
}, [A, te]);
|
|
5436
5436
|
let { onOpenChange: P, triggerPointerDownPosRef: F } = b;
|
|
5437
5437
|
e.useEffect(() => {
|
|
5438
5438
|
if (x) {
|
|
@@ -5465,14 +5465,14 @@ var sm = /* @__PURE__ */ W((e) => {
|
|
|
5465
5465
|
};
|
|
5466
5466
|
}, [P]);
|
|
5467
5467
|
let [ne, re] = $m((e) => {
|
|
5468
|
-
let t =
|
|
5468
|
+
let t = k().filter((e) => !e.disabled), n = eh(t, e, t.find((e) => e.ref.current === document.activeElement));
|
|
5469
5469
|
n && setTimeout(() => n.ref.current?.focus());
|
|
5470
5470
|
}), I = e.useCallback((e, t, n) => {
|
|
5471
|
-
let r = !
|
|
5472
|
-
(b.value !== void 0 && b.value === t || r) && (
|
|
5471
|
+
let r = !M.current && !n;
|
|
5472
|
+
(b.value !== void 0 && b.value === t || r) && (D(e), r && (M.current = !0));
|
|
5473
5473
|
}, [b.value]), L = e.useCallback(() => x?.focus(), [x]), R = e.useCallback((e, t, n) => {
|
|
5474
|
-
let r = !
|
|
5475
|
-
(b.value !== void 0 && b.value === t || r) &&
|
|
5474
|
+
let r = !M.current && !n;
|
|
5475
|
+
(b.value !== void 0 && b.value === t || r) && ee(e);
|
|
5476
5476
|
}, [b.value]), ie = i === "popper" ? Tm : wm, ae = ie === Tm ? {
|
|
5477
5477
|
side: c,
|
|
5478
5478
|
sideOffset: l,
|
|
@@ -5494,10 +5494,10 @@ var sm = /* @__PURE__ */ W((e) => {
|
|
|
5494
5494
|
selectedItem: E,
|
|
5495
5495
|
onItemLeave: L,
|
|
5496
5496
|
itemTextRefCallback: R,
|
|
5497
|
-
focusSelectedItem:
|
|
5498
|
-
selectedItemText:
|
|
5497
|
+
focusSelectedItem: te,
|
|
5498
|
+
selectedItemText: O,
|
|
5499
5499
|
position: i,
|
|
5500
|
-
isPositioned:
|
|
5500
|
+
isPositioned: A,
|
|
5501
5501
|
searchRef: ne,
|
|
5502
5502
|
children: /* @__PURE__ */ _(Bi, {
|
|
5503
5503
|
as: Sm,
|
|
@@ -5526,7 +5526,7 @@ var sm = /* @__PURE__ */ W((e) => {
|
|
|
5526
5526
|
onContextMenu: (e) => e.preventDefault(),
|
|
5527
5527
|
...y,
|
|
5528
5528
|
...ae,
|
|
5529
|
-
onPlaced: () =>
|
|
5529
|
+
onPlaced: () => j(!0),
|
|
5530
5530
|
ref: T,
|
|
5531
5531
|
style: {
|
|
5532
5532
|
display: "flex",
|
|
@@ -5542,12 +5542,12 @@ var sm = /* @__PURE__ */ W((e) => {
|
|
|
5542
5542
|
"Home",
|
|
5543
5543
|
"End"
|
|
5544
5544
|
].includes(e.key)) {
|
|
5545
|
-
let t =
|
|
5545
|
+
let t = k().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
5546
5546
|
if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
5547
5547
|
let n = e.target, r = t.indexOf(n);
|
|
5548
5548
|
t = t.slice(r + 1);
|
|
5549
5549
|
}
|
|
5550
|
-
setTimeout(() =>
|
|
5550
|
+
setTimeout(() => N(t)), e.preventDefault();
|
|
5551
5551
|
}
|
|
5552
5552
|
})
|
|
5553
5553
|
})
|
|
@@ -5566,17 +5566,17 @@ var sm = /* @__PURE__ */ W((e) => {
|
|
|
5566
5566
|
let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - ym, d = Rf(a, [ym, Math.max(ym, u - l)]);
|
|
5567
5567
|
c.style.minWidth = s + "px", c.style.right = d + "px";
|
|
5568
5568
|
}
|
|
5569
|
-
let a = p(), s = window.innerHeight - ym * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), _ = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + _, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - ym,
|
|
5570
|
-
if (
|
|
5569
|
+
let a = p(), s = window.innerHeight - ym * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), _ = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + _, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - ym, D = s - E, O = v.offsetHeight / 2, ee = v.offsetTop + O, k = f + h + ee, A = x - k;
|
|
5570
|
+
if (k <= E) {
|
|
5571
5571
|
let e = a.length > 0 && v === a[a.length - 1].ref.current;
|
|
5572
5572
|
c.style.bottom = "0px";
|
|
5573
|
-
let t = u.clientHeight - g.offsetTop - g.offsetHeight, n =
|
|
5573
|
+
let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = k + Math.max(D, O + (e ? T : 0) + t + _);
|
|
5574
5574
|
c.style.height = n + "px";
|
|
5575
5575
|
} else {
|
|
5576
5576
|
let e = a.length > 0 && v === a[0].ref.current;
|
|
5577
5577
|
c.style.top = "0px";
|
|
5578
|
-
let t = Math.max(E, f + g.offsetTop + (e ? w : 0) +
|
|
5579
|
-
c.style.height = t + "px", g.scrollTop =
|
|
5578
|
+
let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + O) + A;
|
|
5579
|
+
c.style.height = t + "px", g.scrollTop = k - E + g.offsetTop;
|
|
5580
5580
|
}
|
|
5581
5581
|
c.style.margin = `${ym}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => m.current = !0);
|
|
5582
5582
|
}
|
|
@@ -6219,12 +6219,12 @@ var Uh = Ph, Wh = Ih, Gh = Rh, Kh = Bh, qh = Object.defineProperty, Jh = (e, t)
|
|
|
6219
6219
|
e.useEffect(() => () => {
|
|
6220
6220
|
g.current &&= (window.clearTimeout(g.current), 0);
|
|
6221
6221
|
}, []);
|
|
6222
|
-
let
|
|
6222
|
+
let D = p ?? h;
|
|
6223
6223
|
return /* @__PURE__ */ _(hl, {
|
|
6224
6224
|
...u,
|
|
6225
6225
|
children: /* @__PURE__ */ _(ag, {
|
|
6226
6226
|
scope: n,
|
|
6227
|
-
contentId:
|
|
6227
|
+
contentId: D,
|
|
6228
6228
|
setContentId: m,
|
|
6229
6229
|
open: x,
|
|
6230
6230
|
stateAttribute: C,
|
|
@@ -6811,7 +6811,7 @@ var Pg = (e, t) => {
|
|
|
6811
6811
|
"subgrid",
|
|
6812
6812
|
q,
|
|
6813
6813
|
K
|
|
6814
|
-
],
|
|
6814
|
+
], D = () => [
|
|
6815
6815
|
"auto",
|
|
6816
6816
|
{ span: [
|
|
6817
6817
|
"full",
|
|
@@ -6822,19 +6822,19 @@ var Pg = (e, t) => {
|
|
|
6822
6822
|
C_,
|
|
6823
6823
|
q,
|
|
6824
6824
|
K
|
|
6825
|
-
],
|
|
6825
|
+
], O = () => [
|
|
6826
6826
|
C_,
|
|
6827
6827
|
"auto",
|
|
6828
6828
|
q,
|
|
6829
6829
|
K
|
|
6830
|
-
],
|
|
6830
|
+
], ee = () => [
|
|
6831
6831
|
"auto",
|
|
6832
6832
|
"min",
|
|
6833
6833
|
"max",
|
|
6834
6834
|
"fr",
|
|
6835
6835
|
q,
|
|
6836
6836
|
K
|
|
6837
|
-
],
|
|
6837
|
+
], k = () => [
|
|
6838
6838
|
"start",
|
|
6839
6839
|
"end",
|
|
6840
6840
|
"center",
|
|
@@ -6845,14 +6845,14 @@ var Pg = (e, t) => {
|
|
|
6845
6845
|
"baseline",
|
|
6846
6846
|
"center-safe",
|
|
6847
6847
|
"end-safe"
|
|
6848
|
-
],
|
|
6848
|
+
], A = () => [
|
|
6849
6849
|
"start",
|
|
6850
6850
|
"end",
|
|
6851
6851
|
"center",
|
|
6852
6852
|
"stretch",
|
|
6853
6853
|
"center-safe",
|
|
6854
6854
|
"end-safe"
|
|
6855
|
-
],
|
|
6855
|
+
], j = () => ["auto", ...w()], M = () => [
|
|
6856
6856
|
S_,
|
|
6857
6857
|
"auto",
|
|
6858
6858
|
"full",
|
|
@@ -6866,7 +6866,7 @@ var Pg = (e, t) => {
|
|
|
6866
6866
|
"max",
|
|
6867
6867
|
"fit",
|
|
6868
6868
|
...w()
|
|
6869
|
-
],
|
|
6869
|
+
], N = () => [
|
|
6870
6870
|
s,
|
|
6871
6871
|
S_,
|
|
6872
6872
|
"screen",
|
|
@@ -6878,7 +6878,7 @@ var Pg = (e, t) => {
|
|
|
6878
6878
|
"max",
|
|
6879
6879
|
"fit",
|
|
6880
6880
|
...w()
|
|
6881
|
-
],
|
|
6881
|
+
], te = () => [
|
|
6882
6882
|
S_,
|
|
6883
6883
|
"screen",
|
|
6884
6884
|
"full",
|
|
@@ -7214,13 +7214,13 @@ var Pg = (e, t) => {
|
|
|
7214
7214
|
K
|
|
7215
7215
|
] }],
|
|
7216
7216
|
"grid-cols": [{ "grid-cols": E() }],
|
|
7217
|
-
"col-start-end": [{ col:
|
|
7218
|
-
"col-start": [{ "col-start":
|
|
7219
|
-
"col-end": [{ "col-end":
|
|
7217
|
+
"col-start-end": [{ col: D() }],
|
|
7218
|
+
"col-start": [{ "col-start": O() }],
|
|
7219
|
+
"col-end": [{ "col-end": O() }],
|
|
7220
7220
|
"grid-rows": [{ "grid-rows": E() }],
|
|
7221
|
-
"row-start-end": [{ row:
|
|
7222
|
-
"row-start": [{ "row-start":
|
|
7223
|
-
"row-end": [{ "row-end":
|
|
7221
|
+
"row-start-end": [{ row: D() }],
|
|
7222
|
+
"row-start": [{ "row-start": O() }],
|
|
7223
|
+
"row-end": [{ "row-end": O() }],
|
|
7224
7224
|
"grid-flow": [{ "grid-flow": [
|
|
7225
7225
|
"row",
|
|
7226
7226
|
"col",
|
|
@@ -7228,24 +7228,24 @@ var Pg = (e, t) => {
|
|
|
7228
7228
|
"row-dense",
|
|
7229
7229
|
"col-dense"
|
|
7230
7230
|
] }],
|
|
7231
|
-
"auto-cols": [{ "auto-cols":
|
|
7232
|
-
"auto-rows": [{ "auto-rows":
|
|
7231
|
+
"auto-cols": [{ "auto-cols": ee() }],
|
|
7232
|
+
"auto-rows": [{ "auto-rows": ee() }],
|
|
7233
7233
|
gap: [{ gap: w() }],
|
|
7234
7234
|
"gap-x": [{ "gap-x": w() }],
|
|
7235
7235
|
"gap-y": [{ "gap-y": w() }],
|
|
7236
|
-
"justify-content": [{ justify: [...
|
|
7237
|
-
"justify-items": [{ "justify-items": [...
|
|
7238
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
7239
|
-
"align-content": [{ content: ["normal", ...
|
|
7240
|
-
"align-items": [{ items: [...
|
|
7236
|
+
"justify-content": [{ justify: [...k(), "normal"] }],
|
|
7237
|
+
"justify-items": [{ "justify-items": [...A(), "normal"] }],
|
|
7238
|
+
"justify-self": [{ "justify-self": ["auto", ...A()] }],
|
|
7239
|
+
"align-content": [{ content: ["normal", ...k()] }],
|
|
7240
|
+
"align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
|
|
7241
7241
|
"align-self": [{ self: [
|
|
7242
7242
|
"auto",
|
|
7243
|
-
...
|
|
7243
|
+
...A(),
|
|
7244
7244
|
{ baseline: ["", "last"] }
|
|
7245
7245
|
] }],
|
|
7246
|
-
"place-content": [{ "place-content":
|
|
7247
|
-
"place-items": [{ "place-items": [...
|
|
7248
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
7246
|
+
"place-content": [{ "place-content": k() }],
|
|
7247
|
+
"place-items": [{ "place-items": [...A(), "baseline"] }],
|
|
7248
|
+
"place-self": [{ "place-self": ["auto", ...A()] }],
|
|
7249
7249
|
p: [{ p: w() }],
|
|
7250
7250
|
px: [{ px: w() }],
|
|
7251
7251
|
py: [{ py: w() }],
|
|
@@ -7257,38 +7257,38 @@ var Pg = (e, t) => {
|
|
|
7257
7257
|
pr: [{ pr: w() }],
|
|
7258
7258
|
pb: [{ pb: w() }],
|
|
7259
7259
|
pl: [{ pl: w() }],
|
|
7260
|
-
m: [{ m:
|
|
7261
|
-
mx: [{ mx:
|
|
7262
|
-
my: [{ my:
|
|
7263
|
-
ms: [{ ms:
|
|
7264
|
-
me: [{ me:
|
|
7265
|
-
mbs: [{ mbs:
|
|
7266
|
-
mbe: [{ mbe:
|
|
7267
|
-
mt: [{ mt:
|
|
7268
|
-
mr: [{ mr:
|
|
7269
|
-
mb: [{ mb:
|
|
7270
|
-
ml: [{ ml:
|
|
7260
|
+
m: [{ m: j() }],
|
|
7261
|
+
mx: [{ mx: j() }],
|
|
7262
|
+
my: [{ my: j() }],
|
|
7263
|
+
ms: [{ ms: j() }],
|
|
7264
|
+
me: [{ me: j() }],
|
|
7265
|
+
mbs: [{ mbs: j() }],
|
|
7266
|
+
mbe: [{ mbe: j() }],
|
|
7267
|
+
mt: [{ mt: j() }],
|
|
7268
|
+
mr: [{ mr: j() }],
|
|
7269
|
+
mb: [{ mb: j() }],
|
|
7270
|
+
ml: [{ ml: j() }],
|
|
7271
7271
|
"space-x": [{ "space-x": w() }],
|
|
7272
7272
|
"space-x-reverse": ["space-x-reverse"],
|
|
7273
7273
|
"space-y": [{ "space-y": w() }],
|
|
7274
7274
|
"space-y-reverse": ["space-y-reverse"],
|
|
7275
|
-
size: [{ size:
|
|
7276
|
-
"inline-size": [{ inline: ["auto", ...
|
|
7277
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
7278
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
7279
|
-
"block-size": [{ block: ["auto", ...
|
|
7280
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
7281
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
7275
|
+
size: [{ size: M() }],
|
|
7276
|
+
"inline-size": [{ inline: ["auto", ...N()] }],
|
|
7277
|
+
"min-inline-size": [{ "min-inline": ["auto", ...N()] }],
|
|
7278
|
+
"max-inline-size": [{ "max-inline": ["none", ...N()] }],
|
|
7279
|
+
"block-size": [{ block: ["auto", ...te()] }],
|
|
7280
|
+
"min-block-size": [{ "min-block": ["auto", ...te()] }],
|
|
7281
|
+
"max-block-size": [{ "max-block": ["none", ...te()] }],
|
|
7282
7282
|
w: [{ w: [
|
|
7283
7283
|
s,
|
|
7284
7284
|
"screen",
|
|
7285
|
-
...
|
|
7285
|
+
...M()
|
|
7286
7286
|
] }],
|
|
7287
7287
|
"min-w": [{ "min-w": [
|
|
7288
7288
|
s,
|
|
7289
7289
|
"screen",
|
|
7290
7290
|
"none",
|
|
7291
|
-
...
|
|
7291
|
+
...M()
|
|
7292
7292
|
] }],
|
|
7293
7293
|
"max-w": [{ "max-w": [
|
|
7294
7294
|
s,
|
|
@@ -7296,24 +7296,24 @@ var Pg = (e, t) => {
|
|
|
7296
7296
|
"none",
|
|
7297
7297
|
"prose",
|
|
7298
7298
|
{ screen: [o] },
|
|
7299
|
-
...
|
|
7299
|
+
...M()
|
|
7300
7300
|
] }],
|
|
7301
7301
|
h: [{ h: [
|
|
7302
7302
|
"screen",
|
|
7303
7303
|
"lh",
|
|
7304
|
-
...
|
|
7304
|
+
...M()
|
|
7305
7305
|
] }],
|
|
7306
7306
|
"min-h": [{ "min-h": [
|
|
7307
7307
|
"screen",
|
|
7308
7308
|
"lh",
|
|
7309
7309
|
"none",
|
|
7310
|
-
...
|
|
7310
|
+
...M()
|
|
7311
7311
|
] }],
|
|
7312
7312
|
"max-h": [{ "max-h": [
|
|
7313
7313
|
"screen",
|
|
7314
7314
|
"lh",
|
|
7315
7315
|
"none",
|
|
7316
|
-
...
|
|
7316
|
+
...M()
|
|
7317
7317
|
] }],
|
|
7318
7318
|
"font-size": [{ text: [
|
|
7319
7319
|
"base",
|
|
@@ -8753,13 +8753,13 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8753
8753
|
let x = {
|
|
8754
8754
|
...cy,
|
|
8755
8755
|
...g
|
|
8756
|
-
}, S = e.useRef(null), C = e.useRef(null), w = e.useRef(null), [T, E] = e.useState(!1), [
|
|
8756
|
+
}, S = e.useRef(null), C = e.useRef(null), w = e.useRef(null), [T, E] = e.useState(!1), [D, O] = e.useState(""), [ee, k] = e.useState(0), A = e.useRef(m);
|
|
8757
8757
|
e.useEffect(() => {
|
|
8758
|
-
|
|
8758
|
+
A.current = m;
|
|
8759
8759
|
});
|
|
8760
|
-
let
|
|
8761
|
-
|
|
8762
|
-
}, []),
|
|
8760
|
+
let j = e.useCallback((e) => {
|
|
8761
|
+
O(e), A.current?.(e);
|
|
8762
|
+
}, []), M = e.useRef(null), N = Ov(), [te, P] = e.useState(null);
|
|
8763
8763
|
e.useEffect(() => {
|
|
8764
8764
|
if (!T) {
|
|
8765
8765
|
P(null);
|
|
@@ -8785,13 +8785,13 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8785
8785
|
e.set(uy(t), dy(t));
|
|
8786
8786
|
}), e;
|
|
8787
8787
|
}, [t]), re = !c && F[0] ? ne.get(F[0]) ?? F[0] : "", I = e.useMemo(() => {
|
|
8788
|
-
let e =
|
|
8788
|
+
let e = D.trim().toLowerCase();
|
|
8789
8789
|
return e ? t.filter((t) => `${dy(t)} ${uy(t)}`.toLowerCase().includes(e)) : [...t];
|
|
8790
|
-
}, [t,
|
|
8790
|
+
}, [t, D]);
|
|
8791
8791
|
e.useEffect(() => {
|
|
8792
|
-
|
|
8792
|
+
k(I.length > 0 ? 0 : -1);
|
|
8793
8793
|
}, [I]), e.useEffect(() => {
|
|
8794
|
-
if (!T || !
|
|
8794
|
+
if (!T || !te) return;
|
|
8795
8795
|
let e = w.current;
|
|
8796
8796
|
if (!e) return;
|
|
8797
8797
|
let t = (t) => {
|
|
@@ -8801,11 +8801,11 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8801
8801
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
8802
8802
|
e.removeEventListener("wheel", t);
|
|
8803
8803
|
};
|
|
8804
|
-
}, [T,
|
|
8804
|
+
}, [T, te]), e.useEffect(() => {
|
|
8805
8805
|
let e = (e) => {
|
|
8806
8806
|
if (!S.current) return;
|
|
8807
8807
|
let t = e.target;
|
|
8808
|
-
t instanceof Node && !S.current.contains(t) && !
|
|
8808
|
+
t instanceof Node && !S.current.contains(t) && !M.current?.contains(t) && (E(!1), j(""));
|
|
8809
8809
|
};
|
|
8810
8810
|
return document.addEventListener("mousedown", e), () => {
|
|
8811
8811
|
document.removeEventListener("mousedown", e);
|
|
@@ -8814,10 +8814,10 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8814
8814
|
let R = (e) => {
|
|
8815
8815
|
if (!l) {
|
|
8816
8816
|
if (c) {
|
|
8817
|
-
F.includes(e) ? r(F.filter((t) => t !== e)) : r([...F, e]),
|
|
8817
|
+
F.includes(e) ? r(F.filter((t) => t !== e)) : r([...F, e]), j(""), C.current?.focus();
|
|
8818
8818
|
return;
|
|
8819
8819
|
}
|
|
8820
|
-
r(e),
|
|
8820
|
+
r(e), j(""), E(!1);
|
|
8821
8821
|
}
|
|
8822
8822
|
}, ie = (e) => {
|
|
8823
8823
|
if (!l) {
|
|
@@ -8830,11 +8830,11 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8830
8830
|
}, ae = (e) => {
|
|
8831
8831
|
if (!l) {
|
|
8832
8832
|
if (e.key === "ArrowDown") {
|
|
8833
|
-
e.preventDefault(), E(!0), I.length > 0 &&
|
|
8833
|
+
e.preventDefault(), E(!0), I.length > 0 && k((e) => e < 0 ? 0 : Math.min(e + 1, I.length - 1));
|
|
8834
8834
|
return;
|
|
8835
8835
|
}
|
|
8836
8836
|
if (e.key === "ArrowUp") {
|
|
8837
|
-
e.preventDefault(), E(!0), I.length > 0 &&
|
|
8837
|
+
e.preventDefault(), E(!0), I.length > 0 && k((e) => e < 0 ? 0 : Math.max(e - 1, 0));
|
|
8838
8838
|
return;
|
|
8839
8839
|
}
|
|
8840
8840
|
if (e.key === "Enter") {
|
|
@@ -8842,13 +8842,13 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8842
8842
|
E(!0);
|
|
8843
8843
|
return;
|
|
8844
8844
|
}
|
|
8845
|
-
let t = I[
|
|
8846
|
-
|
|
8845
|
+
let t = I[ee];
|
|
8846
|
+
ee >= 0 && t && R(uy(t));
|
|
8847
8847
|
return;
|
|
8848
8848
|
}
|
|
8849
8849
|
if (e.key === "Escape") {
|
|
8850
8850
|
if (!T) return;
|
|
8851
|
-
e.stopPropagation(), E(!1),
|
|
8851
|
+
e.stopPropagation(), E(!1), j("");
|
|
8852
8852
|
}
|
|
8853
8853
|
}
|
|
8854
8854
|
};
|
|
@@ -8859,7 +8859,7 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8859
8859
|
children: [/* @__PURE__ */ v("div", {
|
|
8860
8860
|
className: J("ttw:flex ttw:min-h-9 ttw:w-full ttw:flex-wrap ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-2.5 ttw:py-1.5 ttw:text-sm ttw:shadow-xs", l ? "ttw:cursor-not-allowed ttw:opacity-60" : "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", o && "ttw:border-destructive ttw:focus-within:border-destructive ttw:focus-within:ring-destructive/20"),
|
|
8861
8861
|
onClick: () => {
|
|
8862
|
-
l || (T ||
|
|
8862
|
+
l || (T || j(""), E(!0), C.current?.focus());
|
|
8863
8863
|
},
|
|
8864
8864
|
children: [
|
|
8865
8865
|
c ? F.map((e) => {
|
|
@@ -8893,19 +8893,19 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8893
8893
|
"aria-required": a || void 0,
|
|
8894
8894
|
"aria-invalid": o || void 0,
|
|
8895
8895
|
"aria-describedby": s,
|
|
8896
|
-
value: !c && !T ? re :
|
|
8896
|
+
value: !c && !T ? re : D,
|
|
8897
8897
|
placeholder: x.placeholder,
|
|
8898
8898
|
className: "ttw:min-w-16 ttw:flex-1 ttw:bg-transparent ttw:outline-none",
|
|
8899
8899
|
onFocus: () => {
|
|
8900
|
-
l || (T ||
|
|
8900
|
+
l || (T || j(""), E(!0));
|
|
8901
8901
|
},
|
|
8902
8902
|
onChange: (e) => {
|
|
8903
8903
|
if (!T) {
|
|
8904
8904
|
let t = e.nativeEvent.data ?? "";
|
|
8905
|
-
|
|
8905
|
+
j(t), E(!0);
|
|
8906
8906
|
return;
|
|
8907
8907
|
}
|
|
8908
|
-
|
|
8908
|
+
j(e.target.value), E(!0);
|
|
8909
8909
|
},
|
|
8910
8910
|
onKeyDown: ae
|
|
8911
8911
|
}),
|
|
@@ -8914,18 +8914,18 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8914
8914
|
"aria-label": x.clearAriaLabel,
|
|
8915
8915
|
className: "ttw:inline-flex ttw:size-4 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:opacity-60 ttw:hover:opacity-100",
|
|
8916
8916
|
onClick: (e) => {
|
|
8917
|
-
e.stopPropagation(), ie(F[0]),
|
|
8917
|
+
e.stopPropagation(), ie(F[0]), j("");
|
|
8918
8918
|
},
|
|
8919
8919
|
children: /* @__PURE__ */ _(fe, { className: "ttw:size-3" })
|
|
8920
8920
|
}) : null
|
|
8921
8921
|
]
|
|
8922
|
-
}), T &&
|
|
8923
|
-
ref:
|
|
8922
|
+
}), T && te ? h(/* @__PURE__ */ _("div", {
|
|
8923
|
+
ref: M,
|
|
8924
8924
|
style: {
|
|
8925
8925
|
position: "fixed",
|
|
8926
|
-
top:
|
|
8927
|
-
left:
|
|
8928
|
-
width:
|
|
8926
|
+
top: te.top + 6,
|
|
8927
|
+
left: te.left,
|
|
8928
|
+
width: te.width,
|
|
8929
8929
|
pointerEvents: "auto"
|
|
8930
8930
|
},
|
|
8931
8931
|
className: "ttw:z-50 ttw:max-h-80 ttw:rounded-md ttw:bg-popover ttw:text-popover-foreground ttw:shadow-md ttw:ring-1 ttw:ring-foreground/10",
|
|
@@ -8944,8 +8944,8 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8944
8944
|
}) : I.map((e, t) => {
|
|
8945
8945
|
let n = uy(e), r = F.includes(n);
|
|
8946
8946
|
return /* @__PURE__ */ v("li", {
|
|
8947
|
-
className: J("ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm",
|
|
8948
|
-
onMouseEnter: () =>
|
|
8947
|
+
className: J("ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm", ee === t ? "ttw:bg-zinc-300 ttw:text-zinc-900" : "ttw:hover:bg-zinc-300 ttw:hover:text-zinc-900"),
|
|
8948
|
+
onMouseEnter: () => k(t),
|
|
8949
8949
|
onMouseDown: (e) => {
|
|
8950
8950
|
e.preventDefault(), R(n);
|
|
8951
8951
|
},
|
|
@@ -8956,7 +8956,7 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
|
|
|
8956
8956
|
children: x.loadingMore
|
|
8957
8957
|
}) : null]
|
|
8958
8958
|
})
|
|
8959
|
-
}),
|
|
8959
|
+
}), N ?? document.body) : null]
|
|
8960
8960
|
});
|
|
8961
8961
|
}
|
|
8962
8962
|
function py({ ...e }) {
|
|
@@ -9217,14 +9217,14 @@ function Vy({ className: e, ...t }) {
|
|
|
9217
9217
|
});
|
|
9218
9218
|
}
|
|
9219
9219
|
var Hy = 52, Uy = 40, Wy = "60vh";
|
|
9220
|
-
function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a, onPageSizeChange: o, hasNextPage: s, hasPrevPage: c, onNextPage: l, onPrevPage: u, labels: d, pageInfo: f, filterComponent: p, showColumnVisibility: m = !1, showSelectedRowsInfo: h = !1, onRowClick: C, rowAriaLabel: w, rowClassName: T, rowGroup: E, rowContextMenu:
|
|
9221
|
-
let
|
|
9220
|
+
function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a, onPageSizeChange: o, hasNextPage: s, hasPrevPage: c, onNextPage: l, onPrevPage: u, labels: d, pageInfo: f, filterComponent: p, showColumnVisibility: m = !1, showSelectedRowsInfo: h = !1, onRowClick: C, rowAriaLabel: w, rowClassName: T, rowGroup: E, rowContextMenu: D, children: O, className: ee, pageSizeOptions: k, showPagination: A = !0, isLoading: j = !1, getRowId: M, animatesNewRows: N = !1, rowTestId: te }) {
|
|
9221
|
+
let P = {
|
|
9222
9222
|
..._y,
|
|
9223
9223
|
...d
|
|
9224
|
-
}, [
|
|
9224
|
+
}, [F, ne] = e.useState([]), [re, I] = e.useState({}), [L, z] = e.useState({}), [oe, se] = e.useState({}), ce = S({
|
|
9225
9225
|
data: n,
|
|
9226
9226
|
columns: t,
|
|
9227
|
-
getRowId:
|
|
9227
|
+
getRowId: M,
|
|
9228
9228
|
getCoreRowModel: b(),
|
|
9229
9229
|
getFilteredRowModel: x(),
|
|
9230
9230
|
manualPagination: !0,
|
|
@@ -9232,23 +9232,23 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9232
9232
|
enableMultiSort: !1,
|
|
9233
9233
|
defaultColumn: { enableSorting: !1 },
|
|
9234
9234
|
onSortingChange: i,
|
|
9235
|
-
onColumnFiltersChange:
|
|
9236
|
-
onColumnVisibilityChange:
|
|
9237
|
-
onRowSelectionChange:
|
|
9235
|
+
onColumnFiltersChange: ne,
|
|
9236
|
+
onColumnVisibilityChange: I,
|
|
9237
|
+
onRowSelectionChange: z,
|
|
9238
9238
|
state: {
|
|
9239
9239
|
sorting: r,
|
|
9240
9240
|
pagination: {
|
|
9241
9241
|
pageIndex: 0,
|
|
9242
9242
|
pageSize: a
|
|
9243
9243
|
},
|
|
9244
|
-
columnFilters:
|
|
9245
|
-
columnVisibility:
|
|
9246
|
-
rowSelection:
|
|
9244
|
+
columnFilters: F,
|
|
9245
|
+
columnVisibility: re,
|
|
9246
|
+
rowSelection: L
|
|
9247
9247
|
}
|
|
9248
9248
|
});
|
|
9249
9249
|
return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ v("div", {
|
|
9250
9250
|
"data-slot": "data-table",
|
|
9251
|
-
className: J("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card", p && "ttw:pt-4",
|
|
9251
|
+
className: J("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl ttw:bg-card", p && "ttw:pt-4", ee),
|
|
9252
9252
|
children: [
|
|
9253
9253
|
p,
|
|
9254
9254
|
m && /* @__PURE__ */ _("div", {
|
|
@@ -9259,14 +9259,14 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9259
9259
|
variant: "outline",
|
|
9260
9260
|
className: "ttw:ml-auto",
|
|
9261
9261
|
children: [
|
|
9262
|
-
|
|
9262
|
+
P.columns,
|
|
9263
9263
|
" ",
|
|
9264
9264
|
/* @__PURE__ */ _(R, {})
|
|
9265
9265
|
]
|
|
9266
9266
|
})
|
|
9267
9267
|
}), /* @__PURE__ */ _(by, {
|
|
9268
9268
|
align: "end",
|
|
9269
|
-
children:
|
|
9269
|
+
children: ce.getAllColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ _(Cy, {
|
|
9270
9270
|
className: "ttw:capitalize",
|
|
9271
9271
|
checked: e.getIsVisible(),
|
|
9272
9272
|
onCheckedChange: (t) => e.toggleVisibility(!!t),
|
|
@@ -9278,7 +9278,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9278
9278
|
className: "ttw:border-none",
|
|
9279
9279
|
containerClassName: "ttw:overflow-y-auto",
|
|
9280
9280
|
containerStyle: { height: `min(${Uy + a * Hy}px, ${Wy})` },
|
|
9281
|
-
children: [/* @__PURE__ */ _(Ly, { children:
|
|
9281
|
+
children: [/* @__PURE__ */ _(Ly, { children: ce.getHeaderGroups().map((e) => /* @__PURE__ */ _(zy, { children: e.headers.map((e) => /* @__PURE__ */ _(By, {
|
|
9282
9282
|
"aria-sort": e.column.getCanSort() ? qy(e.column.getIsSorted()) : void 0,
|
|
9283
9283
|
className: "ttw:sticky ttw:top-0 ttw:z-10 ttw:bg-card ttw:p-3 ttw:text-xs ttw:text-zinc-950 ttw:border-b ttw:border-zinc-100",
|
|
9284
9284
|
style: {
|
|
@@ -9289,11 +9289,11 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9289
9289
|
...e.column.columnDef.minSize !== void 0 && { minWidth: e.column.columnDef.minSize }
|
|
9290
9290
|
},
|
|
9291
9291
|
children: e.isPlaceholder ? null : y(e.column.columnDef.header, e.getContext())
|
|
9292
|
-
}, e.id)) }, e.id)) }), /* @__PURE__ */ _(Ry, { children:
|
|
9292
|
+
}, e.id)) }, e.id)) }), /* @__PURE__ */ _(Ry, { children: j ? Array.from({ length: a }).map((e, n) => /* @__PURE__ */ _(zy, { children: t.map((e, t) => /* @__PURE__ */ _(Vy, {
|
|
9293
9293
|
className: "ttw:px-3 ttw:h-13 ttw:border-zinc-100 ttw:border-b",
|
|
9294
9294
|
children: /* @__PURE__ */ _(qv, { className: "ttw:h-4 ttw:w-full" })
|
|
9295
|
-
}, t)) }, `skeleton-${n}`)) :
|
|
9296
|
-
let a = E?.(n.original), o = r > 0 ? E?.(i[r - 1].original) : void 0, s = a !== void 0 && a.key !== o?.key, c = a?.nested !== void 0, l = a?.nested === void 0 ? !0 :
|
|
9295
|
+
}, t)) }, `skeleton-${n}`)) : ce.getRowModel().rows?.length ? ce.getRowModel().rows.map((n, r, i) => {
|
|
9296
|
+
let a = E?.(n.original), o = r > 0 ? E?.(i[r - 1].original) : void 0, s = a !== void 0 && a.key !== o?.key, c = a?.nested !== void 0, l = a?.nested === void 0 ? !0 : oe[a.key] ?? a.nested.defaultExpanded ?? !0;
|
|
9297
9297
|
return c && !s && !l ? null : /* @__PURE__ */ v(e.Fragment, { children: [s ? /* @__PURE__ */ _(zy, {
|
|
9298
9298
|
className: J("ttw:hover:bg-transparent", a.className),
|
|
9299
9299
|
children: /* @__PURE__ */ _(Vy, {
|
|
@@ -9304,7 +9304,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9304
9304
|
className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-2 ttw:text-left ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
|
|
9305
9305
|
"aria-label": a.nested.toggleLabel,
|
|
9306
9306
|
"aria-expanded": l,
|
|
9307
|
-
onClick: () =>
|
|
9307
|
+
onClick: () => se((e) => ({
|
|
9308
9308
|
...e,
|
|
9309
9309
|
[a.key]: !l
|
|
9310
9310
|
})),
|
|
@@ -9327,7 +9327,8 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9327
9327
|
}) : null, !c || l ? (() => {
|
|
9328
9328
|
let e = /* @__PURE__ */ _(zy, {
|
|
9329
9329
|
"data-state": n.getIsSelected() ? "selected" : void 0,
|
|
9330
|
-
className: J("ttw:duration-0", C && "ttw:cursor-pointer ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring",
|
|
9330
|
+
className: J("ttw:duration-0", C && "ttw:cursor-pointer ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring", N && "ttw:animate-in ttw:fade-in-0 ttw:slide-in-from-top-1 ttw:animation-duration-300", T?.(n.original)),
|
|
9331
|
+
"data-testid": te,
|
|
9331
9332
|
tabIndex: C ? 0 : void 0,
|
|
9332
9333
|
"aria-label": w?.(n.original),
|
|
9333
9334
|
onClick: () => C?.(n.original),
|
|
@@ -9345,7 +9346,7 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9345
9346
|
},
|
|
9346
9347
|
children: y(e.column.columnDef.cell, e.getContext())
|
|
9347
9348
|
}, e.id))
|
|
9348
|
-
}), t =
|
|
9349
|
+
}), t = D?.(n.original);
|
|
9349
9350
|
return t ? /* @__PURE__ */ v(py, { children: [/* @__PURE__ */ _(my, {
|
|
9350
9351
|
asChild: !0,
|
|
9351
9352
|
children: e
|
|
@@ -9356,33 +9357,33 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9356
9357
|
className: "ttw:p-0",
|
|
9357
9358
|
children: /* @__PURE__ */ _("div", {
|
|
9358
9359
|
className: "ttw:flex ttw:min-h-64 ttw:items-center ttw:justify-center ttw:text-center",
|
|
9359
|
-
children:
|
|
9360
|
+
children: O || P.noResults
|
|
9360
9361
|
})
|
|
9361
9362
|
}) }) })]
|
|
9362
9363
|
})
|
|
9363
9364
|
]
|
|
9364
|
-
}),
|
|
9365
|
+
}), A ? /* @__PURE__ */ v("div", {
|
|
9365
9366
|
className: "ttw:flex ttw:items-center ttw:justify-end ttw:space-x-6.5 ttw:py-3 ttw:bg-transparent",
|
|
9366
9367
|
children: [
|
|
9367
9368
|
h && /* @__PURE__ */ _("div", {
|
|
9368
9369
|
className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
|
|
9369
|
-
children: sy(
|
|
9370
|
-
selected:
|
|
9371
|
-
total:
|
|
9370
|
+
children: sy(P.selectedRows, {
|
|
9371
|
+
selected: ce.getFilteredSelectedRowModel().rows.length,
|
|
9372
|
+
total: ce.getFilteredRowModel().rows.length
|
|
9372
9373
|
})
|
|
9373
9374
|
}),
|
|
9374
9375
|
/* @__PURE__ */ v("span", {
|
|
9375
9376
|
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
|
|
9376
|
-
children: [
|
|
9377
|
+
children: [P.rowsPerPage, /* @__PURE__ */ v(Ey, {
|
|
9377
9378
|
value: String(a),
|
|
9378
9379
|
onValueChange: (e) => {
|
|
9379
9380
|
o(Number(e));
|
|
9380
9381
|
},
|
|
9381
9382
|
children: [/* @__PURE__ */ _(ky, {
|
|
9382
9383
|
size: "sm",
|
|
9383
|
-
"aria-label":
|
|
9384
|
+
"aria-label": P.rowsPerPage,
|
|
9384
9385
|
children: /* @__PURE__ */ _(Oy, {})
|
|
9385
|
-
}), /* @__PURE__ */ _(Ay, { children:
|
|
9386
|
+
}), /* @__PURE__ */ _(Ay, { children: k.map((e) => /* @__PURE__ */ _(My, {
|
|
9386
9387
|
value: String(e),
|
|
9387
9388
|
children: e
|
|
9388
9389
|
}, e)) })]
|
|
@@ -9396,14 +9397,14 @@ function Gy({ columns: t, data: n, sorting: r, onSortingChange: i, pageSize: a,
|
|
|
9396
9397
|
className: "ttw:flex ttw:items-center ttw:space-x-3",
|
|
9397
9398
|
children: [/* @__PURE__ */ _(Tv, {
|
|
9398
9399
|
variant: "ghost",
|
|
9399
|
-
"aria-label":
|
|
9400
|
+
"aria-label": P.previousPage,
|
|
9400
9401
|
className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-zinc-200 ttw:rounded-lg",
|
|
9401
9402
|
onClick: u,
|
|
9402
9403
|
disabled: !c,
|
|
9403
9404
|
children: /* @__PURE__ */ _(ie, {})
|
|
9404
9405
|
}), /* @__PURE__ */ _(Tv, {
|
|
9405
9406
|
variant: "ghost",
|
|
9406
|
-
"aria-label":
|
|
9407
|
+
"aria-label": P.nextPage,
|
|
9407
9408
|
className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-zinc-200 ttw:rounded-lg",
|
|
9408
9409
|
onClick: l,
|
|
9409
9410
|
disabled: !s,
|
|
@@ -10651,7 +10652,7 @@ var Cx = Sx(), wx = (e) => {
|
|
|
10651
10652
|
"subgrid",
|
|
10652
10653
|
Z,
|
|
10653
10654
|
X
|
|
10654
|
-
],
|
|
10655
|
+
], D = () => [
|
|
10655
10656
|
"auto",
|
|
10656
10657
|
{ span: [
|
|
10657
10658
|
"full",
|
|
@@ -10662,19 +10663,19 @@ var Cx = Sx(), wx = (e) => {
|
|
|
10662
10663
|
YS,
|
|
10663
10664
|
Z,
|
|
10664
10665
|
X
|
|
10665
|
-
],
|
|
10666
|
+
], O = () => [
|
|
10666
10667
|
YS,
|
|
10667
10668
|
"auto",
|
|
10668
10669
|
Z,
|
|
10669
10670
|
X
|
|
10670
|
-
],
|
|
10671
|
+
], ee = () => [
|
|
10671
10672
|
"auto",
|
|
10672
10673
|
"min",
|
|
10673
10674
|
"max",
|
|
10674
10675
|
"fr",
|
|
10675
10676
|
Z,
|
|
10676
10677
|
X
|
|
10677
|
-
],
|
|
10678
|
+
], k = () => [
|
|
10678
10679
|
"start",
|
|
10679
10680
|
"end",
|
|
10680
10681
|
"center",
|
|
@@ -10685,14 +10686,14 @@ var Cx = Sx(), wx = (e) => {
|
|
|
10685
10686
|
"baseline",
|
|
10686
10687
|
"center-safe",
|
|
10687
10688
|
"end-safe"
|
|
10688
|
-
],
|
|
10689
|
+
], A = () => [
|
|
10689
10690
|
"start",
|
|
10690
10691
|
"end",
|
|
10691
10692
|
"center",
|
|
10692
10693
|
"stretch",
|
|
10693
10694
|
"center-safe",
|
|
10694
10695
|
"end-safe"
|
|
10695
|
-
],
|
|
10696
|
+
], j = () => ["auto", ...w()], M = () => [
|
|
10696
10697
|
JS,
|
|
10697
10698
|
"auto",
|
|
10698
10699
|
"full",
|
|
@@ -10706,7 +10707,7 @@ var Cx = Sx(), wx = (e) => {
|
|
|
10706
10707
|
"max",
|
|
10707
10708
|
"fit",
|
|
10708
10709
|
...w()
|
|
10709
|
-
],
|
|
10710
|
+
], N = () => [
|
|
10710
10711
|
JS,
|
|
10711
10712
|
"screen",
|
|
10712
10713
|
"full",
|
|
@@ -10717,7 +10718,7 @@ var Cx = Sx(), wx = (e) => {
|
|
|
10717
10718
|
"max",
|
|
10718
10719
|
"fit",
|
|
10719
10720
|
...w()
|
|
10720
|
-
],
|
|
10721
|
+
], te = () => [
|
|
10721
10722
|
JS,
|
|
10722
10723
|
"screen",
|
|
10723
10724
|
"full",
|
|
@@ -11051,13 +11052,13 @@ var Cx = Sx(), wx = (e) => {
|
|
|
11051
11052
|
X
|
|
11052
11053
|
] }],
|
|
11053
11054
|
"grid-cols": [{ "grid-cols": E() }],
|
|
11054
|
-
"col-start-end": [{ col:
|
|
11055
|
-
"col-start": [{ "col-start":
|
|
11056
|
-
"col-end": [{ "col-end":
|
|
11055
|
+
"col-start-end": [{ col: D() }],
|
|
11056
|
+
"col-start": [{ "col-start": O() }],
|
|
11057
|
+
"col-end": [{ "col-end": O() }],
|
|
11057
11058
|
"grid-rows": [{ "grid-rows": E() }],
|
|
11058
|
-
"row-start-end": [{ row:
|
|
11059
|
-
"row-start": [{ "row-start":
|
|
11060
|
-
"row-end": [{ "row-end":
|
|
11059
|
+
"row-start-end": [{ row: D() }],
|
|
11060
|
+
"row-start": [{ "row-start": O() }],
|
|
11061
|
+
"row-end": [{ "row-end": O() }],
|
|
11061
11062
|
"grid-flow": [{ "grid-flow": [
|
|
11062
11063
|
"row",
|
|
11063
11064
|
"col",
|
|
@@ -11065,24 +11066,24 @@ var Cx = Sx(), wx = (e) => {
|
|
|
11065
11066
|
"row-dense",
|
|
11066
11067
|
"col-dense"
|
|
11067
11068
|
] }],
|
|
11068
|
-
"auto-cols": [{ "auto-cols":
|
|
11069
|
-
"auto-rows": [{ "auto-rows":
|
|
11069
|
+
"auto-cols": [{ "auto-cols": ee() }],
|
|
11070
|
+
"auto-rows": [{ "auto-rows": ee() }],
|
|
11070
11071
|
gap: [{ gap: w() }],
|
|
11071
11072
|
"gap-x": [{ "gap-x": w() }],
|
|
11072
11073
|
"gap-y": [{ "gap-y": w() }],
|
|
11073
|
-
"justify-content": [{ justify: [...
|
|
11074
|
-
"justify-items": [{ "justify-items": [...
|
|
11075
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
11076
|
-
"align-content": [{ content: ["normal", ...
|
|
11077
|
-
"align-items": [{ items: [...
|
|
11074
|
+
"justify-content": [{ justify: [...k(), "normal"] }],
|
|
11075
|
+
"justify-items": [{ "justify-items": [...A(), "normal"] }],
|
|
11076
|
+
"justify-self": [{ "justify-self": ["auto", ...A()] }],
|
|
11077
|
+
"align-content": [{ content: ["normal", ...k()] }],
|
|
11078
|
+
"align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
|
|
11078
11079
|
"align-self": [{ self: [
|
|
11079
11080
|
"auto",
|
|
11080
|
-
...
|
|
11081
|
+
...A(),
|
|
11081
11082
|
{ baseline: ["", "last"] }
|
|
11082
11083
|
] }],
|
|
11083
|
-
"place-content": [{ "place-content":
|
|
11084
|
-
"place-items": [{ "place-items": [...
|
|
11085
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
11084
|
+
"place-content": [{ "place-content": k() }],
|
|
11085
|
+
"place-items": [{ "place-items": [...A(), "baseline"] }],
|
|
11086
|
+
"place-self": [{ "place-self": ["auto", ...A()] }],
|
|
11086
11087
|
p: [{ p: w() }],
|
|
11087
11088
|
px: [{ px: w() }],
|
|
11088
11089
|
py: [{ py: w() }],
|
|
@@ -11094,38 +11095,38 @@ var Cx = Sx(), wx = (e) => {
|
|
|
11094
11095
|
pr: [{ pr: w() }],
|
|
11095
11096
|
pb: [{ pb: w() }],
|
|
11096
11097
|
pl: [{ pl: w() }],
|
|
11097
|
-
m: [{ m:
|
|
11098
|
-
mx: [{ mx:
|
|
11099
|
-
my: [{ my:
|
|
11100
|
-
ms: [{ ms:
|
|
11101
|
-
me: [{ me:
|
|
11102
|
-
mbs: [{ mbs:
|
|
11103
|
-
mbe: [{ mbe:
|
|
11104
|
-
mt: [{ mt:
|
|
11105
|
-
mr: [{ mr:
|
|
11106
|
-
mb: [{ mb:
|
|
11107
|
-
ml: [{ ml:
|
|
11098
|
+
m: [{ m: j() }],
|
|
11099
|
+
mx: [{ mx: j() }],
|
|
11100
|
+
my: [{ my: j() }],
|
|
11101
|
+
ms: [{ ms: j() }],
|
|
11102
|
+
me: [{ me: j() }],
|
|
11103
|
+
mbs: [{ mbs: j() }],
|
|
11104
|
+
mbe: [{ mbe: j() }],
|
|
11105
|
+
mt: [{ mt: j() }],
|
|
11106
|
+
mr: [{ mr: j() }],
|
|
11107
|
+
mb: [{ mb: j() }],
|
|
11108
|
+
ml: [{ ml: j() }],
|
|
11108
11109
|
"space-x": [{ "space-x": w() }],
|
|
11109
11110
|
"space-x-reverse": ["space-x-reverse"],
|
|
11110
11111
|
"space-y": [{ "space-y": w() }],
|
|
11111
11112
|
"space-y-reverse": ["space-y-reverse"],
|
|
11112
|
-
size: [{ size:
|
|
11113
|
-
"inline-size": [{ inline: ["auto", ...
|
|
11114
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
11115
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
11116
|
-
"block-size": [{ block: ["auto", ...
|
|
11117
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
11118
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
11113
|
+
size: [{ size: M() }],
|
|
11114
|
+
"inline-size": [{ inline: ["auto", ...N()] }],
|
|
11115
|
+
"min-inline-size": [{ "min-inline": ["auto", ...N()] }],
|
|
11116
|
+
"max-inline-size": [{ "max-inline": ["none", ...N()] }],
|
|
11117
|
+
"block-size": [{ block: ["auto", ...te()] }],
|
|
11118
|
+
"min-block-size": [{ "min-block": ["auto", ...te()] }],
|
|
11119
|
+
"max-block-size": [{ "max-block": ["none", ...te()] }],
|
|
11119
11120
|
w: [{ w: [
|
|
11120
11121
|
s,
|
|
11121
11122
|
"screen",
|
|
11122
|
-
...
|
|
11123
|
+
...M()
|
|
11123
11124
|
] }],
|
|
11124
11125
|
"min-w": [{ "min-w": [
|
|
11125
11126
|
s,
|
|
11126
11127
|
"screen",
|
|
11127
11128
|
"none",
|
|
11128
|
-
...
|
|
11129
|
+
...M()
|
|
11129
11130
|
] }],
|
|
11130
11131
|
"max-w": [{ "max-w": [
|
|
11131
11132
|
s,
|
|
@@ -11133,23 +11134,23 @@ var Cx = Sx(), wx = (e) => {
|
|
|
11133
11134
|
"none",
|
|
11134
11135
|
"prose",
|
|
11135
11136
|
{ screen: [o] },
|
|
11136
|
-
...
|
|
11137
|
+
...M()
|
|
11137
11138
|
] }],
|
|
11138
11139
|
h: [{ h: [
|
|
11139
11140
|
"screen",
|
|
11140
11141
|
"lh",
|
|
11141
|
-
...
|
|
11142
|
+
...M()
|
|
11142
11143
|
] }],
|
|
11143
11144
|
"min-h": [{ "min-h": [
|
|
11144
11145
|
"screen",
|
|
11145
11146
|
"lh",
|
|
11146
11147
|
"none",
|
|
11147
|
-
...
|
|
11148
|
+
...M()
|
|
11148
11149
|
] }],
|
|
11149
11150
|
"max-h": [{ "max-h": [
|
|
11150
11151
|
"screen",
|
|
11151
11152
|
"lh",
|
|
11152
|
-
...
|
|
11153
|
+
...M()
|
|
11153
11154
|
] }],
|
|
11154
11155
|
"font-size": [{ text: [
|
|
11155
11156
|
"base",
|
|
@@ -14704,7 +14705,7 @@ function mO(e) {
|
|
|
14704
14705
|
...n,
|
|
14705
14706
|
today: c.today()
|
|
14706
14707
|
});
|
|
14707
|
-
let { captionLayout: p, mode: m, navLayout: h, numberOfMonths: g = 1, onDayBlur: _, onDayClick: v, onDayFocus: y, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: S, onNextClick: C, onPrevClick: w, showWeekNumber: T, styles: E } = n, { formatCaption:
|
|
14708
|
+
let { captionLayout: p, mode: m, navLayout: h, numberOfMonths: g = 1, onDayBlur: _, onDayClick: v, onDayFocus: y, onDayKeyDown: b, onDayMouseEnter: x, onDayMouseLeave: S, onNextClick: C, onPrevClick: w, showWeekNumber: T, styles: E } = n, { formatCaption: D, formatDay: O, formatMonthDropdown: ee, formatWeekNumber: k, formatWeekNumberHeader: A, formatWeekdayName: j, formatYearDropdown: M } = a, N = YD(n, c), { days: te, months: P, navStart: F, navEnd: ne, previousMonth: re, nextMonth: I, goToMonth: L } = N, R = qE(te, n, F, ne, c), { isSelected: ie, select: ae, selected: z } = lO(n, c) ?? {}, { blur: oe, focused: se, isFocusTarget: ce, moveFocus: le, setFocused: ue } = tO(n, N, R, ie ?? (() => !1), c), { labelDayButton: de, labelGridcell: fe, labelGrid: pe, labelMonthDropdown: me, labelNav: he, labelPrevious: ge, labelNext: B, labelWeekday: _e, labelWeekNumber: ve, labelWeekNumberHeader: ye, labelYearDropdown: be } = s, xe = u(() => OD(c, n.ISOWeek, n.broadcastCalendar, n.today), [
|
|
14708
14709
|
c,
|
|
14709
14710
|
n.ISOWeek,
|
|
14710
14711
|
n.broadcastCalendar,
|
|
@@ -14861,7 +14862,7 @@ function mO(e) {
|
|
|
14861
14862
|
options: ED(e.date, F, ne, a, c),
|
|
14862
14863
|
style: E?.[$.Dropdown],
|
|
14863
14864
|
value: c.getMonth(e.date)
|
|
14864
|
-
}) : t.createElement("span", { key: "month" },
|
|
14865
|
+
}) : t.createElement("span", { key: "month" }, ee(e.date, c)), o = p === "dropdown" || p === "dropdown-years" ? t.createElement(i.YearsDropdown, {
|
|
14865
14866
|
key: "year",
|
|
14866
14867
|
className: f[$.YearsDropdown],
|
|
14867
14868
|
"aria-label": be(c.options),
|
|
@@ -14872,7 +14873,7 @@ function mO(e) {
|
|
|
14872
14873
|
options: kD(F, ne, a, c, !!n.reverseYears),
|
|
14873
14874
|
style: E?.[$.Dropdown],
|
|
14874
14875
|
value: c.getYear(e.date)
|
|
14875
|
-
}) : t.createElement("span", { key: "year" },
|
|
14876
|
+
}) : t.createElement("span", { key: "year" }, M(e.date, c));
|
|
14876
14877
|
return c.getMonthYearOrder() === "year-first" ? [o, r] : [r, o];
|
|
14877
14878
|
})(), t.createElement("span", {
|
|
14878
14879
|
role: "status",
|
|
@@ -14889,11 +14890,11 @@ function mO(e) {
|
|
|
14889
14890
|
whiteSpace: "nowrap",
|
|
14890
14891
|
wordWrap: "normal"
|
|
14891
14892
|
}
|
|
14892
|
-
},
|
|
14893
|
+
}, D(e.date, c.options, c))) : t.createElement(i.CaptionLabel, {
|
|
14893
14894
|
className: f[$.CaptionLabel],
|
|
14894
14895
|
role: "status",
|
|
14895
14896
|
"aria-live": "polite"
|
|
14896
|
-
},
|
|
14897
|
+
}, D(e.date, c.options, c))), h === "around" && !n.hideNavigation && r === g - 1 && t.createElement(i.NextMonthButton, {
|
|
14897
14898
|
type: "button",
|
|
14898
14899
|
className: f[$.NextMonthButton],
|
|
14899
14900
|
tabIndex: I ? void 0 : -1,
|
|
@@ -14929,13 +14930,13 @@ function mO(e) {
|
|
|
14929
14930
|
className: f[$.WeekNumberHeader],
|
|
14930
14931
|
style: E?.[$.WeekNumberHeader],
|
|
14931
14932
|
scope: "col"
|
|
14932
|
-
},
|
|
14933
|
+
}, A()), xe.map((e) => t.createElement(i.Weekday, {
|
|
14933
14934
|
"aria-label": _e(e, c.options, c),
|
|
14934
14935
|
className: f[$.Weekday],
|
|
14935
14936
|
key: String(e),
|
|
14936
14937
|
style: E?.[$.Weekday],
|
|
14937
14938
|
scope: "col"
|
|
14938
|
-
},
|
|
14939
|
+
}, j(e, c.options, c)))), t.createElement(i.Weeks, {
|
|
14939
14940
|
"data-animated-weeks": n.animate ? "true" : void 0,
|
|
14940
14941
|
className: f[$.Weeks],
|
|
14941
14942
|
style: E?.[$.Weeks]
|
|
@@ -14951,7 +14952,7 @@ function mO(e) {
|
|
|
14951
14952
|
className: f[$.WeekNumber],
|
|
14952
14953
|
scope: "row",
|
|
14953
14954
|
role: "rowheader"
|
|
14954
|
-
},
|
|
14955
|
+
}, k(e.weekNumber, c)), e.days.map((e) => {
|
|
14955
14956
|
let { date: r } = e, a = R(e);
|
|
14956
14957
|
if (a[fE.focused] = !a.hidden && !!se?.isEqualTo(e), a[pE.selected] = ie?.(r) || a.selected, VE(z)) {
|
|
14957
14958
|
let { from: e, to: t } = z;
|
|
@@ -14991,7 +14992,7 @@ function mO(e) {
|
|
|
14991
14992
|
onKeyDown: Oe(e, a),
|
|
14992
14993
|
onMouseEnter: ke(e, a),
|
|
14993
14994
|
onMouseLeave: Ae(e, a)
|
|
14994
|
-
},
|
|
14995
|
+
}, O(r, c.options, c)) : !a.hidden && O(e.date, c.options, c));
|
|
14995
14996
|
})))))))), n.footer && t.createElement(i.Footer, {
|
|
14996
14997
|
className: f[$.Footer],
|
|
14997
14998
|
style: E?.[$.Footer],
|
|
@@ -16074,7 +16075,7 @@ var BA = [
|
|
|
16074
16075
|
r.current.value = e, w.emit();
|
|
16075
16076
|
}
|
|
16076
16077
|
}, [d]), pj(() => {
|
|
16077
|
-
C(6,
|
|
16078
|
+
C(6, k);
|
|
16078
16079
|
}, []);
|
|
16079
16080
|
let w = e.useMemo(() => ({
|
|
16080
16081
|
subscribe: (e) => (s.current.add(e), () => s.current.delete(e)),
|
|
@@ -16082,15 +16083,15 @@ var BA = [
|
|
|
16082
16083
|
setState: (e, t, n) => {
|
|
16083
16084
|
var i, a, o;
|
|
16084
16085
|
if (!Object.is(r.current[e], t)) {
|
|
16085
|
-
if (r.current[e] = t, e === "search")
|
|
16086
|
+
if (r.current[e] = t, e === "search") ee(), D(), C(1, O);
|
|
16086
16087
|
else if (e === "value") {
|
|
16087
16088
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
16088
16089
|
let e = document.getElementById(x);
|
|
16089
16090
|
e ? e.focus() : (i = document.getElementById(y)) == null || i.focus();
|
|
16090
16091
|
}
|
|
16091
16092
|
if (C(7, () => {
|
|
16092
|
-
r.current.selectedItemId =
|
|
16093
|
-
}), n || C(5,
|
|
16093
|
+
r.current.selectedItemId = A()?.id, w.emit();
|
|
16094
|
+
}), n || C(5, k), c.current?.value !== void 0) {
|
|
16094
16095
|
let e = t ?? "";
|
|
16095
16096
|
(o = (a = c.current).onValueChange) == null || o.call(a, e);
|
|
16096
16097
|
return;
|
|
@@ -16108,16 +16109,16 @@ var BA = [
|
|
|
16108
16109
|
value: t,
|
|
16109
16110
|
keywords: n
|
|
16110
16111
|
}), r.current.filtered.items.set(e, E(t, n)), C(2, () => {
|
|
16111
|
-
|
|
16112
|
+
D(), w.emit();
|
|
16112
16113
|
}));
|
|
16113
16114
|
},
|
|
16114
16115
|
item: (e, t) => (i.current.add(e), t && (a.current.has(t) ? a.current.get(t).add(e) : a.current.set(t, /* @__PURE__ */ new Set([e]))), C(3, () => {
|
|
16115
|
-
|
|
16116
|
+
ee(), D(), r.current.value || O(), w.emit();
|
|
16116
16117
|
}), () => {
|
|
16117
16118
|
o.current.delete(e), i.current.delete(e), r.current.filtered.items.delete(e);
|
|
16118
|
-
let t =
|
|
16119
|
+
let t = A();
|
|
16119
16120
|
C(4, () => {
|
|
16120
|
-
|
|
16121
|
+
ee(), t?.getAttribute("id") === e && O(), w.emit();
|
|
16121
16122
|
});
|
|
16122
16123
|
}),
|
|
16123
16124
|
group: (e) => (a.current.has(e) || a.current.set(e, /* @__PURE__ */ new Set()), () => {
|
|
@@ -16135,7 +16136,7 @@ var BA = [
|
|
|
16135
16136
|
let n = c.current?.filter ?? JA;
|
|
16136
16137
|
return e ? n(e, r.current.search, t) : 0;
|
|
16137
16138
|
}
|
|
16138
|
-
function
|
|
16139
|
+
function D() {
|
|
16139
16140
|
if (!r.current.search || c.current.shouldFilter === !1) return;
|
|
16140
16141
|
let e = r.current.filtered.items, t = [];
|
|
16141
16142
|
r.current.filtered.groups.forEach((n) => {
|
|
@@ -16146,7 +16147,7 @@ var BA = [
|
|
|
16146
16147
|
}), t.push([n, i]);
|
|
16147
16148
|
});
|
|
16148
16149
|
let n = S.current;
|
|
16149
|
-
|
|
16150
|
+
j().sort((t, n) => {
|
|
16150
16151
|
let r = t.getAttribute("id"), i = n.getAttribute("id");
|
|
16151
16152
|
return (e.get(i) ?? 0) - (e.get(r) ?? 0);
|
|
16152
16153
|
}).forEach((e) => {
|
|
@@ -16157,11 +16158,11 @@ var BA = [
|
|
|
16157
16158
|
t?.parentElement.appendChild(t);
|
|
16158
16159
|
});
|
|
16159
16160
|
}
|
|
16160
|
-
function
|
|
16161
|
-
let e =
|
|
16161
|
+
function O() {
|
|
16162
|
+
let e = j().find((e) => e.getAttribute("aria-disabled") !== "true")?.getAttribute(qA);
|
|
16162
16163
|
w.setState("value", e || void 0);
|
|
16163
16164
|
}
|
|
16164
|
-
function
|
|
16165
|
+
function ee() {
|
|
16165
16166
|
if (!r.current.search || c.current.shouldFilter === !1) {
|
|
16166
16167
|
r.current.filtered.count = i.current.size;
|
|
16167
16168
|
return;
|
|
@@ -16178,35 +16179,35 @@ var BA = [
|
|
|
16178
16179
|
}
|
|
16179
16180
|
r.current.filtered.count = e;
|
|
16180
16181
|
}
|
|
16181
|
-
function
|
|
16182
|
+
function k() {
|
|
16182
16183
|
var e;
|
|
16183
|
-
let t =
|
|
16184
|
+
let t = A();
|
|
16184
16185
|
t && (t.parentElement?.firstChild === t && ((e = t.closest(VA)?.querySelector(UA)) == null || e.scrollIntoView({ block: "nearest" })), t.scrollIntoView({ block: "nearest" }));
|
|
16185
16186
|
}
|
|
16186
|
-
function
|
|
16187
|
+
function A() {
|
|
16187
16188
|
return S.current?.querySelector(`${WA}[aria-selected="true"]`);
|
|
16188
16189
|
}
|
|
16189
|
-
function
|
|
16190
|
+
function j() {
|
|
16190
16191
|
return Array.from(S.current?.querySelectorAll(GA) || []);
|
|
16191
16192
|
}
|
|
16192
|
-
function
|
|
16193
|
-
let t =
|
|
16193
|
+
function M(e) {
|
|
16194
|
+
let t = j()[e];
|
|
16194
16195
|
t && w.setState("value", t.getAttribute(qA));
|
|
16195
16196
|
}
|
|
16196
|
-
function
|
|
16197
|
+
function N(e) {
|
|
16197
16198
|
var t;
|
|
16198
|
-
let n =
|
|
16199
|
+
let n = A(), r = j(), i = r.findIndex((e) => e === n), a = r[i + e];
|
|
16199
16200
|
(t = c.current) != null && t.loop && (a = i + e < 0 ? r[r.length - 1] : i + e === r.length ? r[0] : r[i + e]), a && w.setState("value", a.getAttribute(qA));
|
|
16200
16201
|
}
|
|
16201
|
-
function
|
|
16202
|
-
let t =
|
|
16202
|
+
function te(e) {
|
|
16203
|
+
let t = A()?.closest(VA), n;
|
|
16203
16204
|
for (; t && !n;) t = e > 0 ? uj(t, VA) : dj(t, VA), n = t?.querySelector(GA);
|
|
16204
|
-
n ? w.setState("value", n.getAttribute(qA)) :
|
|
16205
|
+
n ? w.setState("value", n.getAttribute(qA)) : N(e);
|
|
16205
16206
|
}
|
|
16206
|
-
let P = () => j(
|
|
16207
|
-
e.preventDefault(), e.metaKey ? P() : e.altKey ?
|
|
16207
|
+
let P = () => M(j().length - 1), F = (e) => {
|
|
16208
|
+
e.preventDefault(), e.metaKey ? P() : e.altKey ? te(1) : N(1);
|
|
16208
16209
|
}, ne = (e) => {
|
|
16209
|
-
e.preventDefault(), e.metaKey ?
|
|
16210
|
+
e.preventDefault(), e.metaKey ? M(0) : e.altKey ? te(-1) : N(-1);
|
|
16210
16211
|
};
|
|
16211
16212
|
return e.createElement(BA.div, {
|
|
16212
16213
|
ref: n,
|
|
@@ -16233,14 +16234,14 @@ var BA = [
|
|
|
16233
16234
|
ne(e);
|
|
16234
16235
|
break;
|
|
16235
16236
|
case "Home":
|
|
16236
|
-
e.preventDefault(),
|
|
16237
|
+
e.preventDefault(), M(0);
|
|
16237
16238
|
break;
|
|
16238
16239
|
case "End":
|
|
16239
16240
|
e.preventDefault(), P();
|
|
16240
16241
|
break;
|
|
16241
16242
|
case "Enter": {
|
|
16242
16243
|
e.preventDefault();
|
|
16243
|
-
let t =
|
|
16244
|
+
let t = A();
|
|
16244
16245
|
if (t) {
|
|
16245
16246
|
let e = new Event(KA);
|
|
16246
16247
|
t.dispatchEvent(e);
|