@vincisys/eyeson 0.16.1 → 0.18.0
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/DataTable/DataTable.d.ts +39 -4
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +58 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +953 -861
- package/dist/styles/eyes-standalone.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3604,7 +3604,75 @@ var Zr = Object.assign(Gr, {
|
|
|
3604
3604
|
Footer: Jr,
|
|
3605
3605
|
Title: Yr,
|
|
3606
3606
|
Description: Xr
|
|
3607
|
-
}), Qr = {
|
|
3607
|
+
}), Qr = {
|
|
3608
|
+
sm: "360px",
|
|
3609
|
+
md: "420px",
|
|
3610
|
+
lg: "520px",
|
|
3611
|
+
xl: "640px"
|
|
3612
|
+
}, $r = {
|
|
3613
|
+
right: "inset-y-0 right-0 h-full max-w-full data-[starting-style]:translate-x-full data-[ending-style]:translate-x-full",
|
|
3614
|
+
left: "inset-y-0 left-0 h-full max-w-full data-[starting-style]:-translate-x-full data-[ending-style]:-translate-x-full",
|
|
3615
|
+
top: "inset-x-0 top-0 w-full max-h-full data-[starting-style]:-translate-y-full data-[ending-style]:-translate-y-full",
|
|
3616
|
+
bottom: "inset-x-0 bottom-0 w-full max-h-full data-[starting-style]:translate-y-full data-[ending-style]:translate-y-full"
|
|
3617
|
+
};
|
|
3618
|
+
function ei({ open: e, defaultOpen: t, onOpenChange: n, side: r = "right", size: i = "md", title: a, ariaLabel: o, description: s, showClose: c = !0, footer: l, children: u, className: d }) {
|
|
3619
|
+
let f = r === "left" || r === "right" ? "width" : "height", p = a != null || s != null || c;
|
|
3620
|
+
return /* @__PURE__ */ y(V.Root, {
|
|
3621
|
+
open: e,
|
|
3622
|
+
defaultOpen: t,
|
|
3623
|
+
onOpenChange: n,
|
|
3624
|
+
children: /* @__PURE__ */ b(V.Portal, { children: [/* @__PURE__ */ y(V.Backdrop, {
|
|
3625
|
+
className: K("fixed inset-0 bg-black/50 transition-opacity duration-200 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", Tn.overlay),
|
|
3626
|
+
style: { zIndex: Tn.overlayValue }
|
|
3627
|
+
}), /* @__PURE__ */ b(V.Popup, {
|
|
3628
|
+
"data-eds-component": "Drawer",
|
|
3629
|
+
"data-side": r,
|
|
3630
|
+
"aria-label": a == null ? o : void 0,
|
|
3631
|
+
style: {
|
|
3632
|
+
[f]: Qr[i],
|
|
3633
|
+
zIndex: Tn.overlayValue
|
|
3634
|
+
},
|
|
3635
|
+
className: K("fixed flex flex-col overflow-hidden bg-white text-sm text-eds-neutral-main shadow-xl outline-none transition-transform duration-200 ease-in-out", Tn.overlay, $r[r], d),
|
|
3636
|
+
children: [
|
|
3637
|
+
p ? /* @__PURE__ */ b("div", {
|
|
3638
|
+
"data-slot": "drawer-header",
|
|
3639
|
+
className: K("relative flex shrink-0 flex-col gap-1 border-b border-eds-outline-border px-4 py-4", c && "pr-12"),
|
|
3640
|
+
children: [
|
|
3641
|
+
a == null ? null : /* @__PURE__ */ y(V.Title, {
|
|
3642
|
+
className: "text-xl leading-tight font-semibold text-eds-neutral-main",
|
|
3643
|
+
children: a
|
|
3644
|
+
}),
|
|
3645
|
+
s == null ? null : /* @__PURE__ */ y(V.Description, {
|
|
3646
|
+
className: "text-sm leading-snug text-eds-neutral-elements",
|
|
3647
|
+
children: s
|
|
3648
|
+
}),
|
|
3649
|
+
c ? /* @__PURE__ */ y(V.Close, {
|
|
3650
|
+
"aria-label": "Fechar",
|
|
3651
|
+
className: "absolute top-3 right-3 inline-flex size-8 cursor-pointer items-center justify-center rounded-lg text-eds-neutral-elements outline-none transition-colors hover:bg-eds-neutral-background hover:text-eds-neutral-main focus-visible:ring-3 focus-visible:ring-eds-outline-focus-ring",
|
|
3652
|
+
children: /* @__PURE__ */ y(_, {
|
|
3653
|
+
className: "size-5",
|
|
3654
|
+
"aria-hidden": !0
|
|
3655
|
+
})
|
|
3656
|
+
}) : null
|
|
3657
|
+
]
|
|
3658
|
+
}) : null,
|
|
3659
|
+
/* @__PURE__ */ y("div", {
|
|
3660
|
+
"data-slot": "drawer-body",
|
|
3661
|
+
className: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 py-4",
|
|
3662
|
+
children: u
|
|
3663
|
+
}),
|
|
3664
|
+
l == null ? null : /* @__PURE__ */ y("div", {
|
|
3665
|
+
"data-slot": "drawer-footer",
|
|
3666
|
+
className: "flex shrink-0 gap-3 border-t border-eds-outline-border px-4 py-4",
|
|
3667
|
+
children: l
|
|
3668
|
+
})
|
|
3669
|
+
]
|
|
3670
|
+
})] })
|
|
3671
|
+
});
|
|
3672
|
+
}
|
|
3673
|
+
//#endregion
|
|
3674
|
+
//#region src/components/Empty/Empty.tsx
|
|
3675
|
+
var ti = { size: {
|
|
3608
3676
|
sm: {
|
|
3609
3677
|
classes: "px-6 py-8 gap-3",
|
|
3610
3678
|
description: "Compact empty state for smaller containers"
|
|
@@ -3617,11 +3685,11 @@ var Zr = Object.assign(Gr, {
|
|
|
3617
3685
|
classes: "px-12 py-20 gap-6",
|
|
3618
3686
|
description: "Large empty state for prominent placement"
|
|
3619
3687
|
}
|
|
3620
|
-
} },
|
|
3621
|
-
function
|
|
3688
|
+
} }, ni = { size: "md" };
|
|
3689
|
+
function ri({ icon: e, title: t, description: n, action: r, size: i = ni.size, titleLevel: a = "h2", className: o }) {
|
|
3622
3690
|
return /* @__PURE__ */ b("div", {
|
|
3623
3691
|
"data-eds-component": "Empty",
|
|
3624
|
-
className: K("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", q(
|
|
3692
|
+
className: K("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", q(ti.size, i, ni.size).classes, o),
|
|
3625
3693
|
children: [
|
|
3626
3694
|
e && /* @__PURE__ */ y("div", {
|
|
3627
3695
|
className: "text-eds-neutral-elements",
|
|
@@ -3642,7 +3710,7 @@ function ei({ icon: e, title: t, description: n, action: r, size: i = $r.size, t
|
|
|
3642
3710
|
}
|
|
3643
3711
|
//#endregion
|
|
3644
3712
|
//#region src/components/PageHeader/PageHeader.tsx
|
|
3645
|
-
function
|
|
3713
|
+
function ii({ title: e, subtitle: t, onBack: n, showBack: r, backLabel: i = "Voltar", backIcon: a = c, backButtonProps: o, backButton: s, titleLevel: l = "h1", className: u }) {
|
|
3646
3714
|
let d = r ?? !!(n || s);
|
|
3647
3715
|
return /* @__PURE__ */ b("header", {
|
|
3648
3716
|
"data-eds-component": "PageHeader",
|
|
@@ -3669,24 +3737,24 @@ function ti({ title: e, subtitle: t, onBack: n, showBack: r, backLabel: i = "Vol
|
|
|
3669
3737
|
}
|
|
3670
3738
|
//#endregion
|
|
3671
3739
|
//#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
|
|
3672
|
-
var
|
|
3673
|
-
return e.replace(
|
|
3674
|
-
}, ii = function(e) {
|
|
3675
|
-
return ri(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
|
|
3676
|
-
}, ai = function(e) {
|
|
3677
|
-
return ri(e).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d{1,2})$/, "$1-$2");
|
|
3678
|
-
}, oi = function(e) {
|
|
3679
|
-
return ri(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
|
|
3740
|
+
var ai = /\D/g, oi = function(e) {
|
|
3741
|
+
return e.replace(ai, "");
|
|
3680
3742
|
}, si = function(e) {
|
|
3681
|
-
return (e.
|
|
3743
|
+
return oi(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
|
|
3682
3744
|
}, ci = function(e) {
|
|
3683
|
-
return
|
|
3745
|
+
return oi(e).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d{1,2})$/, "$1-$2");
|
|
3684
3746
|
}, li = function(e) {
|
|
3685
|
-
return
|
|
3747
|
+
return oi(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
|
|
3748
|
+
}, ui = function(e) {
|
|
3749
|
+
return (e.match(/\d/g)?.length ?? 0) <= 11;
|
|
3750
|
+
}, di = function(e) {
|
|
3751
|
+
return ui(e) ? li(e) : ci(e);
|
|
3752
|
+
}, fi = function(e) {
|
|
3753
|
+
return oi(e).replace(/(\d{1,2})/, "($1").replace(/(\(\d{2})(\d{1,4})/, "$1) $2").replace(/( \d{4})(\d{1,4})/, "$1-$2").replace(/( \d{4})(?:-)(\d{1})(\d{4})/, "$1$2-$3");
|
|
3686
3754
|
};
|
|
3687
3755
|
//#endregion
|
|
3688
3756
|
//#region src/components/Input/Input.tsx
|
|
3689
|
-
function
|
|
3757
|
+
function pi(e) {
|
|
3690
3758
|
if (!e) return "";
|
|
3691
3759
|
let t = e.trimStart().startsWith("-"), n = e.replace(/\./g, ",").replace(/[^\d,]/g, "");
|
|
3692
3760
|
if (!n) return t ? "-" : "";
|
|
@@ -3695,24 +3763,24 @@ function ui(e) {
|
|
|
3695
3763
|
let i = n.slice(0, r), a = n.slice(r + 1).replace(/,/g, "");
|
|
3696
3764
|
return `${t ? "-" : ""}${i},${a}`;
|
|
3697
3765
|
}
|
|
3698
|
-
var
|
|
3766
|
+
var mi = {
|
|
3699
3767
|
default: "",
|
|
3700
3768
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3701
3769
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
|
|
3702
3770
|
loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
|
|
3703
3771
|
};
|
|
3704
|
-
function
|
|
3772
|
+
function hi({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: u, tooltip: d = null, linkText: f = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: _ = null, supportingText: v = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: E, hideContent: D = !1, showContentText: O = "Mostrar", hideContentText: k = "Ocultar", defaultValue: ee, value: j, id: M, name: N, onBlur: F, onFocus: I, onKeyDown: L, onClick: R, onChange: te, ...z }) {
|
|
3705
3773
|
let B = A(), V = M ?? B, H = a === "number", [U, W] = P(!1), [G, re] = P(() => {
|
|
3706
3774
|
let e = ee?.toString() ?? "";
|
|
3707
|
-
return H ?
|
|
3708
|
-
}), q = j !== void 0, ie = (q ? j : G)?.toString() ?? "", ae = H ?
|
|
3709
|
-
if (H) return
|
|
3775
|
+
return H ? pi(e) : e;
|
|
3776
|
+
}), q = j !== void 0, ie = (q ? j : G)?.toString() ?? "", ae = H ? pi(ie) : ie, oe = g ?? f, se = _ ?? h, ce = Cn(S), le = ce === "floating", ue = (e) => {
|
|
3777
|
+
if (H) return pi(e);
|
|
3710
3778
|
switch (u) {
|
|
3711
|
-
case "cep": return
|
|
3712
|
-
case "cpf": return
|
|
3713
|
-
case "cnpj": return
|
|
3714
|
-
case "cpfOrCnpj": return
|
|
3715
|
-
case "phone": return
|
|
3779
|
+
case "cep": return si(e);
|
|
3780
|
+
case "cpf": return li(e);
|
|
3781
|
+
case "cnpj": return ci(e);
|
|
3782
|
+
case "cpfOrCnpj": return di(e);
|
|
3783
|
+
case "phone": return fi(e);
|
|
3716
3784
|
default: return e;
|
|
3717
3785
|
}
|
|
3718
3786
|
}, de = (e, t) => {
|
|
@@ -3767,7 +3835,7 @@ function fi({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3767
3835
|
})]
|
|
3768
3836
|
}),
|
|
3769
3837
|
/* @__PURE__ */ b("div", {
|
|
3770
|
-
className: K("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", me.control,
|
|
3838
|
+
className: K("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", me.control, mi[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3771
3839
|
"data-disabled": pe || void 0,
|
|
3772
3840
|
"data-state": r,
|
|
3773
3841
|
"data-size": i,
|
|
@@ -3840,16 +3908,16 @@ function fi({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3840
3908
|
}
|
|
3841
3909
|
//#endregion
|
|
3842
3910
|
//#region src/components/Textarea/Textarea.tsx
|
|
3843
|
-
var
|
|
3911
|
+
var gi = {
|
|
3844
3912
|
default: "",
|
|
3845
3913
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3846
3914
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3847
|
-
},
|
|
3915
|
+
}, _i = {
|
|
3848
3916
|
sm: "min-h-20",
|
|
3849
3917
|
md: "min-h-24",
|
|
3850
3918
|
lg: "min-h-32"
|
|
3851
3919
|
};
|
|
3852
|
-
function
|
|
3920
|
+
function vi({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: u = null, supportLinkUrl: d = null, supportingText: f = "", labelVariant: m, rows: h = 4, defaultValue: g, value: _, id: v, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: E, ...D }) {
|
|
3853
3921
|
let O = A(), k = v ?? O, [ee, j] = P(() => g?.toString() ?? ""), M = _ !== void 0, N = (M ? _ : ee)?.toString() ?? "", F = Cn(m), I = F === "floating", L = r === "invalid", R = wn[i];
|
|
3854
3922
|
return /* @__PURE__ */ b("div", {
|
|
3855
3923
|
className: K(En, e),
|
|
@@ -3891,7 +3959,7 @@ function hi({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3891
3959
|
})]
|
|
3892
3960
|
}),
|
|
3893
3961
|
/* @__PURE__ */ b("div", {
|
|
3894
|
-
className: K("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", R.paddingX, "py-2.5",
|
|
3962
|
+
className: K("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", R.paddingX, "py-2.5", _i[i], gi[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3895
3963
|
"data-disabled": n || void 0,
|
|
3896
3964
|
"data-state": r,
|
|
3897
3965
|
"data-size": i,
|
|
@@ -3937,12 +4005,12 @@ function hi({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3937
4005
|
}
|
|
3938
4006
|
//#endregion
|
|
3939
4007
|
//#region src/components/Select/Select.tsx
|
|
3940
|
-
var
|
|
4008
|
+
var yi = {
|
|
3941
4009
|
default: "",
|
|
3942
4010
|
valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3943
4011
|
invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3944
4012
|
};
|
|
3945
|
-
function
|
|
4013
|
+
function bi({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: a = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: _ = void 0, renderItem: v = void 0, className: x }) {
|
|
3946
4014
|
let S = A(), C = p ?? S, w = l === "invalid", T = w || d, E = wn[u], D = Cn(t), O = D === "floating";
|
|
3947
4015
|
return /* @__PURE__ */ b("div", {
|
|
3948
4016
|
className: K(En, x),
|
|
@@ -3970,7 +4038,7 @@ function _i({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3970
4038
|
defaultValue: g,
|
|
3971
4039
|
value: h,
|
|
3972
4040
|
children: [/* @__PURE__ */ b(U.Trigger, {
|
|
3973
|
-
className: K("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger,
|
|
4041
|
+
className: K("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, yi[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3974
4042
|
"data-state": l,
|
|
3975
4043
|
"data-size": u,
|
|
3976
4044
|
"data-disabled": i || void 0,
|
|
@@ -4035,7 +4103,7 @@ function _i({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
4035
4103
|
}
|
|
4036
4104
|
//#endregion
|
|
4037
4105
|
//#region src/components/Text/Text.tsx
|
|
4038
|
-
var
|
|
4106
|
+
var xi = {
|
|
4039
4107
|
variant: {
|
|
4040
4108
|
heading1: {
|
|
4041
4109
|
classes: "text-3xl font-semibold",
|
|
@@ -4092,20 +4160,20 @@ var vi = {
|
|
|
4092
4160
|
description: "Large text"
|
|
4093
4161
|
}
|
|
4094
4162
|
}
|
|
4095
|
-
},
|
|
4163
|
+
}, Si = {
|
|
4096
4164
|
variant: "body",
|
|
4097
4165
|
size: "md"
|
|
4098
|
-
},
|
|
4166
|
+
}, Ci = /* @__PURE__ */ new Set([
|
|
4099
4167
|
"heading1",
|
|
4100
4168
|
"heading2",
|
|
4101
4169
|
"heading3"
|
|
4102
|
-
]),
|
|
4103
|
-
function
|
|
4104
|
-
let l =
|
|
4170
|
+
]), wi = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
|
|
4171
|
+
function Ti({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
|
|
4172
|
+
let l = wi.has(e), u = Ci.has(e), d = j(() => o || (l || u ? "span" : "p"), [
|
|
4105
4173
|
o,
|
|
4106
4174
|
l,
|
|
4107
4175
|
u
|
|
4108
|
-
]), f = q(
|
|
4176
|
+
]), f = q(xi.variant, e, Si.variant), p = q(xi.size, n ?? "md", Si.size);
|
|
4109
4177
|
return /* @__PURE__ */ y(d, {
|
|
4110
4178
|
ref: c,
|
|
4111
4179
|
"data-eds-component": "Text",
|
|
@@ -4114,7 +4182,7 @@ function Si({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !
|
|
|
4114
4182
|
children: i
|
|
4115
4183
|
});
|
|
4116
4184
|
}
|
|
4117
|
-
var
|
|
4185
|
+
var Ei = T(Ti), Di = {
|
|
4118
4186
|
layout: {
|
|
4119
4187
|
auto: {
|
|
4120
4188
|
classes: "",
|
|
@@ -4163,15 +4231,15 @@ var Ci = T(Si), wi = {
|
|
|
4163
4231
|
description: "Pin column to the right edge of the scroll container"
|
|
4164
4232
|
}
|
|
4165
4233
|
}
|
|
4166
|
-
},
|
|
4167
|
-
let n = q(
|
|
4234
|
+
}, Oi = (e, t) => {
|
|
4235
|
+
let n = q(Di.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
|
|
4168
4236
|
return t === "cell" ? K(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : K(n, r, "bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-eds-neutral-background");
|
|
4169
|
-
},
|
|
4237
|
+
}, ki = {
|
|
4170
4238
|
layout: "auto",
|
|
4171
4239
|
variant: "default",
|
|
4172
4240
|
dividers: "row"
|
|
4173
|
-
},
|
|
4174
|
-
let o = K("isolate w-full", q(
|
|
4241
|
+
}, Ai = T(({ layout: e = "auto", dividers: t = ki.dividers, className: n, containerClassName: r, ...i }, a) => {
|
|
4242
|
+
let o = K("isolate w-full", q(Di.layout, e, ki.layout).classes, q(Di.dividers, t, ki.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
|
|
4175
4243
|
return /* @__PURE__ */ y("div", {
|
|
4176
4244
|
className: K("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
|
|
4177
4245
|
children: /* @__PURE__ */ y("table", {
|
|
@@ -4181,7 +4249,7 @@ var Ci = T(Si), wi = {
|
|
|
4181
4249
|
className: o
|
|
4182
4250
|
})
|
|
4183
4251
|
});
|
|
4184
|
-
}),
|
|
4252
|
+
}), ji = T(({ variant: e = "default", sticky: t, ...n }, r) => {
|
|
4185
4253
|
let i = e === "compact", a = K("group/header", i && "[&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
|
|
4186
4254
|
return /* @__PURE__ */ y("thead", {
|
|
4187
4255
|
ref: r,
|
|
@@ -4189,41 +4257,41 @@ var Ci = T(Si), wi = {
|
|
|
4189
4257
|
className: a,
|
|
4190
4258
|
...i && { "data-compact": "" }
|
|
4191
4259
|
});
|
|
4192
|
-
}),
|
|
4193
|
-
let r = K("group relative", e &&
|
|
4260
|
+
}), Mi = T(({ sticky: e, ...t }, n) => {
|
|
4261
|
+
let r = K("group relative", e && Oi(e, "head"), t.className);
|
|
4194
4262
|
return /* @__PURE__ */ y("th", {
|
|
4195
4263
|
ref: n,
|
|
4196
4264
|
...t,
|
|
4197
4265
|
className: r
|
|
4198
4266
|
});
|
|
4199
|
-
}),
|
|
4200
|
-
let r = K(q(
|
|
4267
|
+
}), Ni = T(({ variant: e = ki.variant, ...t }, n) => {
|
|
4268
|
+
let r = K(q(Di.variant, e, ki.variant).classes, t.className);
|
|
4201
4269
|
return /* @__PURE__ */ y("tr", {
|
|
4202
4270
|
ref: n,
|
|
4203
4271
|
...t,
|
|
4204
4272
|
className: r
|
|
4205
4273
|
});
|
|
4206
|
-
}),
|
|
4274
|
+
}), Pi = T((e, t) => /* @__PURE__ */ y("tbody", {
|
|
4207
4275
|
ref: t,
|
|
4208
4276
|
...e
|
|
4209
|
-
})),
|
|
4210
|
-
let r = K(e &&
|
|
4277
|
+
})), Fi = T(({ sticky: e, ...t }, n) => {
|
|
4278
|
+
let r = K(e && Oi(e, "cell"), t.className);
|
|
4211
4279
|
return /* @__PURE__ */ y("td", {
|
|
4212
4280
|
ref: n,
|
|
4213
4281
|
...t,
|
|
4214
4282
|
className: r
|
|
4215
4283
|
});
|
|
4216
|
-
}),
|
|
4284
|
+
}), Ii = T((e, t) => /* @__PURE__ */ y("tfoot", {
|
|
4217
4285
|
ref: t,
|
|
4218
4286
|
...e
|
|
4219
|
-
})),
|
|
4287
|
+
})), Li = T((e, t) => /* @__PURE__ */ y("button", {
|
|
4220
4288
|
ref: t,
|
|
4221
4289
|
...e,
|
|
4222
4290
|
type: "button",
|
|
4223
4291
|
"aria-label": "Redimensionar coluna",
|
|
4224
4292
|
className: K("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
|
|
4225
4293
|
children: /* @__PURE__ */ y("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
|
|
4226
|
-
})),
|
|
4294
|
+
})), Ri = T(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ y(Fi, {
|
|
4227
4295
|
ref: o,
|
|
4228
4296
|
...a,
|
|
4229
4297
|
className: K("w-10 leading-none", a.className),
|
|
@@ -4235,7 +4303,7 @@ var Ci = T(Si), wi = {
|
|
|
4235
4303
|
disabled: i,
|
|
4236
4304
|
className: "relative before:absolute before:-inset-3 before:content-['']"
|
|
4237
4305
|
})
|
|
4238
|
-
})),
|
|
4306
|
+
})), zi = T(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ y(Mi, {
|
|
4239
4307
|
ref: o,
|
|
4240
4308
|
...a,
|
|
4241
4309
|
className: K("w-10 leading-none", a.className),
|
|
@@ -4248,38 +4316,38 @@ var Ci = T(Si), wi = {
|
|
|
4248
4316
|
className: "relative before:absolute before:-inset-3 before:content-['']"
|
|
4249
4317
|
})
|
|
4250
4318
|
}));
|
|
4251
|
-
|
|
4252
|
-
var
|
|
4253
|
-
Header:
|
|
4254
|
-
Head:
|
|
4255
|
-
Row:
|
|
4256
|
-
Body:
|
|
4257
|
-
Cell:
|
|
4258
|
-
CheckCell:
|
|
4259
|
-
CheckHead:
|
|
4260
|
-
Footer:
|
|
4261
|
-
ResizeHandle:
|
|
4319
|
+
Ai.displayName = "Table", Pi.displayName = "Table.Body", Mi.displayName = "Table.Head", Ni.displayName = "Table.Row", Fi.displayName = "Table.Cell", Ii.displayName = "Table.Footer", ji.displayName = "Table.Header", Li.displayName = "Table.ResizeHandle", Ri.displayName = "Table.CheckCell", zi.displayName = "Table.CheckHead";
|
|
4320
|
+
var Bi = Object.assign(Ai, {
|
|
4321
|
+
Header: ji,
|
|
4322
|
+
Head: Mi,
|
|
4323
|
+
Row: Ni,
|
|
4324
|
+
Body: Pi,
|
|
4325
|
+
Cell: Fi,
|
|
4326
|
+
CheckCell: Ri,
|
|
4327
|
+
CheckHead: zi,
|
|
4328
|
+
Footer: Ii,
|
|
4329
|
+
ResizeHandle: Li
|
|
4262
4330
|
});
|
|
4263
4331
|
//#endregion
|
|
4264
4332
|
//#region ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
|
|
4265
|
-
function
|
|
4333
|
+
function Vi(e, t) {
|
|
4266
4334
|
return typeof e == "function" ? e(t) : e;
|
|
4267
4335
|
}
|
|
4268
|
-
function
|
|
4336
|
+
function Hi(e, t) {
|
|
4269
4337
|
return (n) => {
|
|
4270
4338
|
t.setState((t) => ({
|
|
4271
4339
|
...t,
|
|
4272
|
-
[e]:
|
|
4340
|
+
[e]: Vi(n, t[e])
|
|
4273
4341
|
}));
|
|
4274
4342
|
};
|
|
4275
4343
|
}
|
|
4276
|
-
function
|
|
4344
|
+
function Ui(e) {
|
|
4277
4345
|
return e instanceof Function;
|
|
4278
4346
|
}
|
|
4279
|
-
function
|
|
4347
|
+
function Wi(e) {
|
|
4280
4348
|
return Array.isArray(e) && e.every((e) => typeof e == "number");
|
|
4281
4349
|
}
|
|
4282
|
-
function
|
|
4350
|
+
function Gi(e, t) {
|
|
4283
4351
|
let n = [], r = (e) => {
|
|
4284
4352
|
e.forEach((e) => {
|
|
4285
4353
|
n.push(e);
|
|
@@ -4318,7 +4386,7 @@ function Q(e, t, n, r) {
|
|
|
4318
4386
|
onChange: r
|
|
4319
4387
|
};
|
|
4320
4388
|
}
|
|
4321
|
-
function
|
|
4389
|
+
function Ki(e, t, n, r) {
|
|
4322
4390
|
let i = {
|
|
4323
4391
|
id: `${t.id}_${n.id}`,
|
|
4324
4392
|
row: t,
|
|
@@ -4343,7 +4411,7 @@ function Ui(e, t, n, r) {
|
|
|
4343
4411
|
r.createCell == null || r.createCell(i, n, t, e);
|
|
4344
4412
|
}, {}), i;
|
|
4345
4413
|
}
|
|
4346
|
-
function
|
|
4414
|
+
function qi(e, t, n, r) {
|
|
4347
4415
|
let i = {
|
|
4348
4416
|
...e._getDefaultColumnDef(),
|
|
4349
4417
|
...t
|
|
@@ -4369,8 +4437,8 @@ function Wi(e, t, n, r) {
|
|
|
4369
4437
|
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
|
|
4370
4438
|
return c;
|
|
4371
4439
|
}
|
|
4372
|
-
var
|
|
4373
|
-
function
|
|
4440
|
+
var Ji = "debugHeaders";
|
|
4441
|
+
function Yi(e, t, n) {
|
|
4374
4442
|
let r = {
|
|
4375
4443
|
id: n.id ?? t.id,
|
|
4376
4444
|
column: t,
|
|
@@ -4398,7 +4466,7 @@ function Ki(e, t, n) {
|
|
|
4398
4466
|
t.createHeader == null || t.createHeader(r, e);
|
|
4399
4467
|
}), r;
|
|
4400
4468
|
}
|
|
4401
|
-
var
|
|
4469
|
+
var Xi = { createTable: (e) => {
|
|
4402
4470
|
e.getHeaderGroups = Z(() => [
|
|
4403
4471
|
e.getAllColumns(),
|
|
4404
4472
|
e.getVisibleLeafColumns(),
|
|
@@ -4406,34 +4474,34 @@ var qi = { createTable: (e) => {
|
|
|
4406
4474
|
e.getState().columnPinning.right
|
|
4407
4475
|
], (t, n, r, i) => {
|
|
4408
4476
|
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
|
|
4409
|
-
return
|
|
4477
|
+
return Zi(t, [
|
|
4410
4478
|
...a,
|
|
4411
4479
|
...s,
|
|
4412
4480
|
...o
|
|
4413
4481
|
], e);
|
|
4414
|
-
}, Q(e.options,
|
|
4482
|
+
}, Q(e.options, Ji, "getHeaderGroups")), e.getCenterHeaderGroups = Z(() => [
|
|
4415
4483
|
e.getAllColumns(),
|
|
4416
4484
|
e.getVisibleLeafColumns(),
|
|
4417
4485
|
e.getState().columnPinning.left,
|
|
4418
4486
|
e.getState().columnPinning.right
|
|
4419
|
-
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))),
|
|
4487
|
+
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), Zi(t, n, e, "center")), Q(e.options, Ji, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
|
|
4420
4488
|
e.getAllColumns(),
|
|
4421
4489
|
e.getVisibleLeafColumns(),
|
|
4422
4490
|
e.getState().columnPinning.left
|
|
4423
|
-
], (t, n, r) =>
|
|
4491
|
+
], (t, n, r) => Zi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, Ji, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
|
|
4424
4492
|
e.getAllColumns(),
|
|
4425
4493
|
e.getVisibleLeafColumns(),
|
|
4426
4494
|
e.getState().columnPinning.right
|
|
4427
|
-
], (t, n, r) =>
|
|
4495
|
+
], (t, n, r) => Zi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), Q(e.options, Ji, "getRightHeaderGroups")), e.getFooterGroups = Z(() => [e.getHeaderGroups()], (e) => [...e].reverse(), Q(e.options, Ji, "getFooterGroups")), e.getLeftFooterGroups = Z(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), Q(e.options, Ji, "getLeftFooterGroups")), e.getCenterFooterGroups = Z(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), Q(e.options, Ji, "getCenterFooterGroups")), e.getRightFooterGroups = Z(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), Q(e.options, Ji, "getRightFooterGroups")), e.getFlatHeaders = Z(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, Ji, "getFlatHeaders")), e.getLeftFlatHeaders = Z(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, Ji, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Z(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, Ji, "getCenterFlatHeaders")), e.getRightFlatHeaders = Z(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, Ji, "getRightFlatHeaders")), e.getCenterLeafHeaders = Z(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
|
|
4428
4496
|
var t;
|
|
4429
4497
|
return !((t = e.subHeaders) != null && t.length);
|
|
4430
|
-
}), Q(e.options,
|
|
4498
|
+
}), Q(e.options, Ji, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Z(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
|
|
4431
4499
|
var t;
|
|
4432
4500
|
return !((t = e.subHeaders) != null && t.length);
|
|
4433
|
-
}), Q(e.options,
|
|
4501
|
+
}), Q(e.options, Ji, "getLeftLeafHeaders")), e.getRightLeafHeaders = Z(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
|
|
4434
4502
|
var t;
|
|
4435
4503
|
return !((t = e.subHeaders) != null && t.length);
|
|
4436
|
-
}), Q(e.options,
|
|
4504
|
+
}), Q(e.options, Ji, "getRightLeafHeaders")), e.getLeafHeaders = Z(() => [
|
|
4437
4505
|
e.getLeftHeaderGroups(),
|
|
4438
4506
|
e.getCenterHeaderGroups(),
|
|
4439
4507
|
e.getRightHeaderGroups()
|
|
@@ -4441,9 +4509,9 @@ var qi = { createTable: (e) => {
|
|
|
4441
4509
|
...e[0]?.headers ?? [],
|
|
4442
4510
|
...t[0]?.headers ?? [],
|
|
4443
4511
|
...n[0]?.headers ?? []
|
|
4444
|
-
].map((e) => e.getLeafHeaders()).flat(), Q(e.options,
|
|
4512
|
+
].map((e) => e.getLeafHeaders()).flat(), Q(e.options, Ji, "getLeafHeaders"));
|
|
4445
4513
|
} };
|
|
4446
|
-
function
|
|
4514
|
+
function Zi(e, t, n, r) {
|
|
4447
4515
|
let i = 0, a = function(e, t) {
|
|
4448
4516
|
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
|
|
4449
4517
|
var n;
|
|
@@ -4461,7 +4529,7 @@ function Ji(e, t, n, r) {
|
|
|
4461
4529
|
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
|
|
4462
4530
|
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
|
|
4463
4531
|
else {
|
|
4464
|
-
let i =
|
|
4532
|
+
let i = Yi(n, c, {
|
|
4465
4533
|
id: [
|
|
4466
4534
|
r,
|
|
4467
4535
|
t,
|
|
@@ -4478,7 +4546,7 @@ function Ji(e, t, n, r) {
|
|
|
4478
4546
|
i.headers.push(e), e.headerGroup = i;
|
|
4479
4547
|
}), o.push(i), t > 0 && s(a, t - 1);
|
|
4480
4548
|
};
|
|
4481
|
-
s(t.map((e, t) =>
|
|
4549
|
+
s(t.map((e, t) => Yi(n, e, {
|
|
4482
4550
|
depth: i,
|
|
4483
4551
|
index: t
|
|
4484
4552
|
})), i - 1), o.reverse();
|
|
@@ -4496,7 +4564,7 @@ function Ji(e, t, n, r) {
|
|
|
4496
4564
|
});
|
|
4497
4565
|
return c(o[0]?.headers ?? []), o;
|
|
4498
4566
|
}
|
|
4499
|
-
var
|
|
4567
|
+
var Qi = (e, t, n, r, i, a, o) => {
|
|
4500
4568
|
let s = {
|
|
4501
4569
|
id: t,
|
|
4502
4570
|
index: r,
|
|
@@ -4517,7 +4585,7 @@ var Yi = (e, t, n, r, i, a, o) => {
|
|
|
4517
4585
|
},
|
|
4518
4586
|
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
|
|
4519
4587
|
subRows: a ?? [],
|
|
4520
|
-
getLeafRows: () =>
|
|
4588
|
+
getLeafRows: () => Gi(s.subRows, (e) => e.subRows),
|
|
4521
4589
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
4522
4590
|
getParentRows: () => {
|
|
4523
4591
|
let e = [], t = s;
|
|
@@ -4528,7 +4596,7 @@ var Yi = (e, t, n, r, i, a, o) => {
|
|
|
4528
4596
|
}
|
|
4529
4597
|
return e.reverse();
|
|
4530
4598
|
},
|
|
4531
|
-
getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) =>
|
|
4599
|
+
getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => Ki(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
|
|
4532
4600
|
_getAllCellsByColumnId: Z(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), Q(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
4533
4601
|
};
|
|
4534
4602
|
for (let t = 0; t < e._features.length; t++) {
|
|
@@ -4536,87 +4604,87 @@ var Yi = (e, t, n, r, i, a, o) => {
|
|
|
4536
4604
|
n == null || n.createRow == null || n.createRow(s, e);
|
|
4537
4605
|
}
|
|
4538
4606
|
return s;
|
|
4539
|
-
},
|
|
4607
|
+
}, $i = { createColumn: (e, t) => {
|
|
4540
4608
|
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
|
|
4541
4609
|
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
|
|
4542
4610
|
};
|
|
4543
|
-
} },
|
|
4611
|
+
} }, ea = (e, t, n) => {
|
|
4544
4612
|
var r, i;
|
|
4545
4613
|
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
|
|
4546
4614
|
return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
|
|
4547
4615
|
};
|
|
4548
|
-
|
|
4549
|
-
var
|
|
4616
|
+
ea.autoRemove = (e) => ua(e);
|
|
4617
|
+
var ta = (e, t, n) => {
|
|
4550
4618
|
var r;
|
|
4551
4619
|
return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
|
|
4552
4620
|
};
|
|
4553
|
-
|
|
4554
|
-
var
|
|
4621
|
+
ta.autoRemove = (e) => ua(e);
|
|
4622
|
+
var na = (e, t, n) => {
|
|
4555
4623
|
var r;
|
|
4556
4624
|
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
|
|
4557
4625
|
};
|
|
4558
|
-
|
|
4559
|
-
var
|
|
4560
|
-
|
|
4561
|
-
var
|
|
4626
|
+
na.autoRemove = (e) => ua(e);
|
|
4627
|
+
var ra = (e, t, n) => e.getValue(t)?.includes(n);
|
|
4628
|
+
ra.autoRemove = (e) => ua(e);
|
|
4629
|
+
var ia = (e, t, n) => !n.some((n) => {
|
|
4562
4630
|
var r;
|
|
4563
4631
|
return !((r = e.getValue(t)) != null && r.includes(n));
|
|
4564
4632
|
});
|
|
4565
|
-
|
|
4566
|
-
var
|
|
4567
|
-
|
|
4568
|
-
var
|
|
4569
|
-
|
|
4570
|
-
var
|
|
4571
|
-
|
|
4572
|
-
var
|
|
4633
|
+
ia.autoRemove = (e) => ua(e) || !(e != null && e.length);
|
|
4634
|
+
var aa = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
|
|
4635
|
+
aa.autoRemove = (e) => ua(e) || !(e != null && e.length);
|
|
4636
|
+
var oa = (e, t, n) => e.getValue(t) === n;
|
|
4637
|
+
oa.autoRemove = (e) => ua(e);
|
|
4638
|
+
var sa = (e, t, n) => e.getValue(t) == n;
|
|
4639
|
+
sa.autoRemove = (e) => ua(e);
|
|
4640
|
+
var ca = (e, t, n) => {
|
|
4573
4641
|
let [r, i] = n, a = e.getValue(t);
|
|
4574
4642
|
return a >= r && a <= i;
|
|
4575
4643
|
};
|
|
4576
|
-
|
|
4644
|
+
ca.resolveFilterValue = (e) => {
|
|
4577
4645
|
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
|
|
4578
4646
|
if (a > o) {
|
|
4579
4647
|
let e = a;
|
|
4580
4648
|
a = o, o = e;
|
|
4581
4649
|
}
|
|
4582
4650
|
return [a, o];
|
|
4583
|
-
},
|
|
4584
|
-
var
|
|
4585
|
-
includesString:
|
|
4586
|
-
includesStringSensitive:
|
|
4587
|
-
equalsString:
|
|
4588
|
-
arrIncludes:
|
|
4589
|
-
arrIncludesAll:
|
|
4590
|
-
arrIncludesSome:
|
|
4591
|
-
equals:
|
|
4592
|
-
weakEquals:
|
|
4593
|
-
inNumberRange:
|
|
4651
|
+
}, ca.autoRemove = (e) => ua(e) || ua(e[0]) && ua(e[1]);
|
|
4652
|
+
var la = {
|
|
4653
|
+
includesString: ea,
|
|
4654
|
+
includesStringSensitive: ta,
|
|
4655
|
+
equalsString: na,
|
|
4656
|
+
arrIncludes: ra,
|
|
4657
|
+
arrIncludesAll: ia,
|
|
4658
|
+
arrIncludesSome: aa,
|
|
4659
|
+
equals: oa,
|
|
4660
|
+
weakEquals: sa,
|
|
4661
|
+
inNumberRange: ca
|
|
4594
4662
|
};
|
|
4595
|
-
function
|
|
4663
|
+
function ua(e) {
|
|
4596
4664
|
return e == null || e === "";
|
|
4597
4665
|
}
|
|
4598
|
-
var
|
|
4666
|
+
var da = {
|
|
4599
4667
|
getDefaultColumnDef: () => ({ filterFn: "auto" }),
|
|
4600
4668
|
getInitialState: (e) => ({
|
|
4601
4669
|
columnFilters: [],
|
|
4602
4670
|
...e
|
|
4603
4671
|
}),
|
|
4604
4672
|
getDefaultOptions: (e) => ({
|
|
4605
|
-
onColumnFiltersChange:
|
|
4673
|
+
onColumnFiltersChange: Hi("columnFilters", e),
|
|
4606
4674
|
filterFromLeafRows: !1,
|
|
4607
4675
|
maxLeafRowFilterDepth: 100
|
|
4608
4676
|
}),
|
|
4609
4677
|
createColumn: (e, t) => {
|
|
4610
4678
|
e.getAutoFilterFn = () => {
|
|
4611
4679
|
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
4612
|
-
return typeof n == "string" ?
|
|
4613
|
-
}, e.getFilterFn = () =>
|
|
4680
|
+
return typeof n == "string" ? la.includesString : typeof n == "number" ? la.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? la.equals : Array.isArray(n) ? la.arrIncludes : la.weakEquals;
|
|
4681
|
+
}, e.getFilterFn = () => Ui(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? la[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
|
|
4614
4682
|
var n;
|
|
4615
4683
|
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
|
|
4616
4684
|
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
|
|
4617
4685
|
t.setColumnFilters((t) => {
|
|
4618
|
-
let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a =
|
|
4619
|
-
if (
|
|
4686
|
+
let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = Vi(n, i ? i.value : void 0);
|
|
4687
|
+
if (fa(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
|
|
4620
4688
|
let o = {
|
|
4621
4689
|
id: e.id,
|
|
4622
4690
|
value: a
|
|
@@ -4631,19 +4699,19 @@ var ca = {
|
|
|
4631
4699
|
createTable: (e) => {
|
|
4632
4700
|
e.setColumnFilters = (t) => {
|
|
4633
4701
|
let n = e.getAllLeafColumns();
|
|
4634
|
-
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) =>
|
|
4702
|
+
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => Vi(t, e)?.filter((e) => {
|
|
4635
4703
|
let t = n.find((t) => t.id === e.id);
|
|
4636
|
-
return !(t &&
|
|
4704
|
+
return !(t && fa(t.getFilterFn(), e.value, t));
|
|
4637
4705
|
}));
|
|
4638
4706
|
}, e.resetColumnFilters = (t) => {
|
|
4639
4707
|
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
|
|
4640
4708
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
4641
4709
|
}
|
|
4642
4710
|
};
|
|
4643
|
-
function
|
|
4711
|
+
function fa(e, t, n) {
|
|
4644
4712
|
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
|
|
4645
4713
|
}
|
|
4646
|
-
var
|
|
4714
|
+
var pa = {
|
|
4647
4715
|
sum: (e, t, n) => n.reduce((t, n) => {
|
|
4648
4716
|
let r = n.getValue(e);
|
|
4649
4717
|
return t + (typeof r == "number" ? r : 0);
|
|
@@ -4679,7 +4747,7 @@ var ua = {
|
|
|
4679
4747
|
median: (e, t) => {
|
|
4680
4748
|
if (!t.length) return;
|
|
4681
4749
|
let n = t.map((t) => t.getValue(e));
|
|
4682
|
-
if (!
|
|
4750
|
+
if (!Wi(n)) return;
|
|
4683
4751
|
if (n.length === 1) return n[0];
|
|
4684
4752
|
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
|
|
4685
4753
|
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
|
|
@@ -4687,7 +4755,7 @@ var ua = {
|
|
|
4687
4755
|
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
|
|
4688
4756
|
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
|
|
4689
4757
|
count: (e, t) => t.length
|
|
4690
|
-
},
|
|
4758
|
+
}, ma = {
|
|
4691
4759
|
getDefaultColumnDef: () => ({
|
|
4692
4760
|
aggregatedCell: (e) => {
|
|
4693
4761
|
var t;
|
|
@@ -4700,7 +4768,7 @@ var ua = {
|
|
|
4700
4768
|
...e
|
|
4701
4769
|
}),
|
|
4702
4770
|
getDefaultOptions: (e) => ({
|
|
4703
|
-
onGroupingChange:
|
|
4771
|
+
onGroupingChange: Hi("grouping", e),
|
|
4704
4772
|
groupedColumnMode: "reorder"
|
|
4705
4773
|
}),
|
|
4706
4774
|
createColumn: (e, t) => {
|
|
@@ -4713,11 +4781,11 @@ var ua = {
|
|
|
4713
4781
|
};
|
|
4714
4782
|
}, e.getAutoAggregationFn = () => {
|
|
4715
4783
|
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
4716
|
-
if (typeof n == "number") return
|
|
4717
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return
|
|
4784
|
+
if (typeof n == "number") return pa.sum;
|
|
4785
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return pa.extent;
|
|
4718
4786
|
}, e.getAggregationFn = () => {
|
|
4719
4787
|
if (!e) throw Error();
|
|
4720
|
-
return
|
|
4788
|
+
return Ui(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? pa[e.columnDef.aggregationFn];
|
|
4721
4789
|
};
|
|
4722
4790
|
},
|
|
4723
4791
|
createTable: (e) => {
|
|
@@ -4739,20 +4807,20 @@ var ua = {
|
|
|
4739
4807
|
};
|
|
4740
4808
|
}
|
|
4741
4809
|
};
|
|
4742
|
-
function
|
|
4810
|
+
function ha(e, t, n) {
|
|
4743
4811
|
if (!(t != null && t.length) || !n) return e;
|
|
4744
4812
|
let r = e.filter((e) => !t.includes(e.id));
|
|
4745
4813
|
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
|
|
4746
4814
|
}
|
|
4747
|
-
var
|
|
4815
|
+
var ga = {
|
|
4748
4816
|
getInitialState: (e) => ({
|
|
4749
4817
|
columnOrder: [],
|
|
4750
4818
|
...e
|
|
4751
4819
|
}),
|
|
4752
|
-
getDefaultOptions: (e) => ({ onColumnOrderChange:
|
|
4820
|
+
getDefaultOptions: (e) => ({ onColumnOrderChange: Hi("columnOrder", e) }),
|
|
4753
4821
|
createColumn: (e, t) => {
|
|
4754
|
-
e.getIndex = Z((e) => [
|
|
4755
|
-
let r =
|
|
4822
|
+
e.getIndex = Z((e) => [Da(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Da(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
|
|
4823
|
+
let r = Da(t, n);
|
|
4756
4824
|
return r[r.length - 1]?.id === e.id;
|
|
4757
4825
|
};
|
|
4758
4826
|
},
|
|
@@ -4774,18 +4842,18 @@ var pa = {
|
|
|
4774
4842
|
}
|
|
4775
4843
|
i = [...i, ...n];
|
|
4776
4844
|
}
|
|
4777
|
-
return
|
|
4845
|
+
return ha(i, t, n);
|
|
4778
4846
|
}, Q(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4779
4847
|
}
|
|
4780
|
-
},
|
|
4848
|
+
}, _a = () => ({
|
|
4781
4849
|
left: [],
|
|
4782
4850
|
right: []
|
|
4783
|
-
}),
|
|
4851
|
+
}), va = {
|
|
4784
4852
|
getInitialState: (e) => ({
|
|
4785
|
-
columnPinning:
|
|
4853
|
+
columnPinning: _a(),
|
|
4786
4854
|
...e
|
|
4787
4855
|
}),
|
|
4788
|
-
getDefaultOptions: (e) => ({ onColumnPinningChange:
|
|
4856
|
+
getDefaultOptions: (e) => ({ onColumnPinningChange: Hi("columnPinning", e) }),
|
|
4789
4857
|
createColumn: (e, t) => {
|
|
4790
4858
|
e.pin = (n) => {
|
|
4791
4859
|
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
|
|
@@ -4825,7 +4893,7 @@ var pa = {
|
|
|
4825
4893
|
})), Q(t.options, "debugRows", "getRightVisibleCells"));
|
|
4826
4894
|
},
|
|
4827
4895
|
createTable: (e) => {
|
|
4828
|
-
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ?
|
|
4896
|
+
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? _a() : e.initialState?.columnPinning ?? _a()), e.getIsSomeColumnsPinned = (t) => {
|
|
4829
4897
|
let n = e.getState().columnPinning;
|
|
4830
4898
|
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
|
|
4831
4899
|
}, e.getLeftLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Z(() => [
|
|
@@ -4838,44 +4906,44 @@ var pa = {
|
|
|
4838
4906
|
}, Q(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
4839
4907
|
}
|
|
4840
4908
|
};
|
|
4841
|
-
function
|
|
4909
|
+
function ya(e) {
|
|
4842
4910
|
return e || (typeof document < "u" ? document : null);
|
|
4843
4911
|
}
|
|
4844
|
-
var
|
|
4912
|
+
var ba = {
|
|
4845
4913
|
size: 150,
|
|
4846
4914
|
minSize: 20,
|
|
4847
4915
|
maxSize: 2 ** 53 - 1
|
|
4848
|
-
},
|
|
4916
|
+
}, xa = () => ({
|
|
4849
4917
|
startOffset: null,
|
|
4850
4918
|
startSize: null,
|
|
4851
4919
|
deltaOffset: null,
|
|
4852
4920
|
deltaPercentage: null,
|
|
4853
4921
|
isResizingColumn: !1,
|
|
4854
4922
|
columnSizingStart: []
|
|
4855
|
-
}),
|
|
4856
|
-
getDefaultColumnDef: () =>
|
|
4923
|
+
}), Sa = {
|
|
4924
|
+
getDefaultColumnDef: () => ba,
|
|
4857
4925
|
getInitialState: (e) => ({
|
|
4858
4926
|
columnSizing: {},
|
|
4859
|
-
columnSizingInfo:
|
|
4927
|
+
columnSizingInfo: xa(),
|
|
4860
4928
|
...e
|
|
4861
4929
|
}),
|
|
4862
4930
|
getDefaultOptions: (e) => ({
|
|
4863
4931
|
columnResizeMode: "onEnd",
|
|
4864
4932
|
columnResizeDirection: "ltr",
|
|
4865
|
-
onColumnSizingChange:
|
|
4866
|
-
onColumnSizingInfoChange:
|
|
4933
|
+
onColumnSizingChange: Hi("columnSizing", e),
|
|
4934
|
+
onColumnSizingInfoChange: Hi("columnSizingInfo", e)
|
|
4867
4935
|
}),
|
|
4868
4936
|
createColumn: (e, t) => {
|
|
4869
4937
|
e.getSize = () => {
|
|
4870
4938
|
let n = t.getState().columnSizing[e.id];
|
|
4871
|
-
return Math.min(Math.max(e.columnDef.minSize ??
|
|
4939
|
+
return Math.min(Math.max(e.columnDef.minSize ?? ba.minSize, n ?? e.columnDef.size ?? ba.size), e.columnDef.maxSize ?? ba.maxSize);
|
|
4872
4940
|
}, e.getStart = Z((e) => [
|
|
4873
4941
|
e,
|
|
4874
|
-
|
|
4942
|
+
Da(t, e),
|
|
4875
4943
|
t.getState().columnSizing
|
|
4876
4944
|
], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getStart")), e.getAfter = Z((e) => [
|
|
4877
4945
|
e,
|
|
4878
|
-
|
|
4946
|
+
Da(t, e),
|
|
4879
4947
|
t.getState().columnSizing
|
|
4880
4948
|
], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
4881
4949
|
t.setColumnSizing((t) => {
|
|
@@ -4899,8 +4967,8 @@ var _a = {
|
|
|
4899
4967
|
}, e.getResizeHandler = (n) => {
|
|
4900
4968
|
let r = t.getColumn(e.column.id), i = r?.getCanResize();
|
|
4901
4969
|
return (a) => {
|
|
4902
|
-
if (!r || !i || (a.persist == null || a.persist(),
|
|
4903
|
-
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c =
|
|
4970
|
+
if (!r || !i || (a.persist == null || a.persist(), Ta(a) && a.touches && a.touches.length > 1)) return;
|
|
4971
|
+
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Ta(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
|
|
4904
4972
|
typeof n == "number" && (t.setColumnSizingInfo((e) => {
|
|
4905
4973
|
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
|
|
4906
4974
|
return e.columnSizingStart.forEach((e) => {
|
|
@@ -4925,7 +4993,7 @@ var _a = {
|
|
|
4925
4993
|
deltaPercentage: null,
|
|
4926
4994
|
columnSizingStart: []
|
|
4927
4995
|
}));
|
|
4928
|
-
}, p =
|
|
4996
|
+
}, p = ya(n), m = {
|
|
4929
4997
|
moveHandler: (e) => d(e.clientX),
|
|
4930
4998
|
upHandler: (e) => {
|
|
4931
4999
|
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
|
|
@@ -4935,8 +5003,8 @@ var _a = {
|
|
|
4935
5003
|
upHandler: (e) => {
|
|
4936
5004
|
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
|
|
4937
5005
|
}
|
|
4938
|
-
}, g =
|
|
4939
|
-
|
|
5006
|
+
}, g = wa() ? { passive: !1 } : !1;
|
|
5007
|
+
Ta(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
|
|
4940
5008
|
...e,
|
|
4941
5009
|
startOffset: c,
|
|
4942
5010
|
startSize: o,
|
|
@@ -4952,12 +5020,12 @@ var _a = {
|
|
|
4952
5020
|
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
|
|
4953
5021
|
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
|
|
4954
5022
|
}, e.resetHeaderSizeInfo = (t) => {
|
|
4955
|
-
e.setColumnSizingInfo(t ?
|
|
5023
|
+
e.setColumnSizingInfo(t ? xa() : e.initialState.columnSizingInfo ?? xa());
|
|
4956
5024
|
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
|
|
4957
5025
|
}
|
|
4958
|
-
},
|
|
4959
|
-
function
|
|
4960
|
-
if (typeof
|
|
5026
|
+
}, Ca = null;
|
|
5027
|
+
function wa() {
|
|
5028
|
+
if (typeof Ca == "boolean") return Ca;
|
|
4961
5029
|
let e = !1;
|
|
4962
5030
|
try {
|
|
4963
5031
|
let t = { get passive() {
|
|
@@ -4967,17 +5035,17 @@ function xa() {
|
|
|
4967
5035
|
} catch {
|
|
4968
5036
|
e = !1;
|
|
4969
5037
|
}
|
|
4970
|
-
return
|
|
5038
|
+
return Ca = e, Ca;
|
|
4971
5039
|
}
|
|
4972
|
-
function
|
|
5040
|
+
function Ta(e) {
|
|
4973
5041
|
return e.type === "touchstart";
|
|
4974
5042
|
}
|
|
4975
|
-
var
|
|
5043
|
+
var Ea = {
|
|
4976
5044
|
getInitialState: (e) => ({
|
|
4977
5045
|
columnVisibility: {},
|
|
4978
5046
|
...e
|
|
4979
5047
|
}),
|
|
4980
|
-
getDefaultOptions: (e) => ({ onColumnVisibilityChange:
|
|
5048
|
+
getDefaultOptions: (e) => ({ onColumnVisibilityChange: Hi("columnVisibility", e) }),
|
|
4981
5049
|
createColumn: (e, t) => {
|
|
4982
5050
|
e.toggleVisibility = (n) => {
|
|
4983
5051
|
e.getCanHide() && t.setColumnVisibility((t) => ({
|
|
@@ -5016,20 +5084,20 @@ var Ca = {
|
|
|
5016
5084
|
};
|
|
5017
5085
|
}
|
|
5018
5086
|
};
|
|
5019
|
-
function
|
|
5087
|
+
function Da(e, t) {
|
|
5020
5088
|
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
5021
5089
|
}
|
|
5022
|
-
var
|
|
5090
|
+
var Oa = { createTable: (e) => {
|
|
5023
5091
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
5024
5092
|
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
|
|
5025
5093
|
};
|
|
5026
|
-
} },
|
|
5094
|
+
} }, ka = {
|
|
5027
5095
|
getInitialState: (e) => ({
|
|
5028
5096
|
globalFilter: void 0,
|
|
5029
5097
|
...e
|
|
5030
5098
|
}),
|
|
5031
5099
|
getDefaultOptions: (e) => ({
|
|
5032
|
-
onGlobalFilterChange:
|
|
5100
|
+
onGlobalFilterChange: Hi("globalFilter", e),
|
|
5033
5101
|
globalFilterFn: "auto",
|
|
5034
5102
|
getColumnCanGlobalFilter: (t) => {
|
|
5035
5103
|
var n;
|
|
@@ -5041,22 +5109,22 @@ var Ta = { createTable: (e) => {
|
|
|
5041
5109
|
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
|
|
5042
5110
|
},
|
|
5043
5111
|
createTable: (e) => {
|
|
5044
|
-
e.getGlobalAutoFilterFn = () =>
|
|
5112
|
+
e.getGlobalAutoFilterFn = () => la.includesString, e.getGlobalFilterFn = () => {
|
|
5045
5113
|
let { globalFilterFn: t } = e.options;
|
|
5046
|
-
return
|
|
5114
|
+
return Ui(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? la[t];
|
|
5047
5115
|
}, e.setGlobalFilter = (t) => {
|
|
5048
5116
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
|
|
5049
5117
|
}, e.resetGlobalFilter = (t) => {
|
|
5050
5118
|
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
|
|
5051
5119
|
};
|
|
5052
5120
|
}
|
|
5053
|
-
},
|
|
5121
|
+
}, Aa = {
|
|
5054
5122
|
getInitialState: (e) => ({
|
|
5055
5123
|
expanded: {},
|
|
5056
5124
|
...e
|
|
5057
5125
|
}),
|
|
5058
5126
|
getDefaultOptions: (e) => ({
|
|
5059
|
-
onExpandedChange:
|
|
5127
|
+
onExpandedChange: Hi("expanded", e),
|
|
5060
5128
|
paginateExpandedRows: !0
|
|
5061
5129
|
}),
|
|
5062
5130
|
createTable: (e) => {
|
|
@@ -5127,18 +5195,18 @@ var Ta = { createTable: (e) => {
|
|
|
5127
5195
|
};
|
|
5128
5196
|
};
|
|
5129
5197
|
}
|
|
5130
|
-
},
|
|
5131
|
-
pageIndex:
|
|
5132
|
-
pageSize:
|
|
5133
|
-
}),
|
|
5198
|
+
}, ja = 0, Ma = 10, Na = () => ({
|
|
5199
|
+
pageIndex: ja,
|
|
5200
|
+
pageSize: Ma
|
|
5201
|
+
}), Pa = {
|
|
5134
5202
|
getInitialState: (e) => ({
|
|
5135
5203
|
...e,
|
|
5136
5204
|
pagination: {
|
|
5137
|
-
...
|
|
5205
|
+
...Na(),
|
|
5138
5206
|
...e?.pagination
|
|
5139
5207
|
}
|
|
5140
5208
|
}),
|
|
5141
|
-
getDefaultOptions: (e) => ({ onPaginationChange:
|
|
5209
|
+
getDefaultOptions: (e) => ({ onPaginationChange: Hi("pagination", e) }),
|
|
5142
5210
|
createTable: (e) => {
|
|
5143
5211
|
let t = !1, n = !1;
|
|
5144
5212
|
e._autoResetPageIndex = () => {
|
|
@@ -5154,11 +5222,11 @@ var Ta = { createTable: (e) => {
|
|
|
5154
5222
|
e.resetPageIndex(), n = !1;
|
|
5155
5223
|
});
|
|
5156
5224
|
}
|
|
5157
|
-
}, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) =>
|
|
5158
|
-
e.setPagination(t ?
|
|
5225
|
+
}, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => Vi(t, e)), e.resetPagination = (t) => {
|
|
5226
|
+
e.setPagination(t ? Na() : e.initialState.pagination ?? Na());
|
|
5159
5227
|
}, e.setPageIndex = (t) => {
|
|
5160
5228
|
e.setPagination((n) => {
|
|
5161
|
-
let r =
|
|
5229
|
+
let r = Vi(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
|
|
5162
5230
|
return r = Math.max(0, Math.min(r, i)), {
|
|
5163
5231
|
...n,
|
|
5164
5232
|
pageIndex: r
|
|
@@ -5166,13 +5234,13 @@ var Ta = { createTable: (e) => {
|
|
|
5166
5234
|
});
|
|
5167
5235
|
}, e.resetPageIndex = (t) => {
|
|
5168
5236
|
var n;
|
|
5169
|
-
e.setPageIndex(t ?
|
|
5237
|
+
e.setPageIndex(t ? ja : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? ja);
|
|
5170
5238
|
}, e.resetPageSize = (t) => {
|
|
5171
5239
|
var n;
|
|
5172
|
-
e.setPageSize(t ?
|
|
5240
|
+
e.setPageSize(t ? Ma : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Ma);
|
|
5173
5241
|
}, e.setPageSize = (t) => {
|
|
5174
5242
|
e.setPagination((e) => {
|
|
5175
|
-
let n = Math.max(1,
|
|
5243
|
+
let n = Math.max(1, Vi(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
|
|
5176
5244
|
return {
|
|
5177
5245
|
...e,
|
|
5178
5246
|
pageIndex: i,
|
|
@@ -5180,7 +5248,7 @@ var Ta = { createTable: (e) => {
|
|
|
5180
5248
|
};
|
|
5181
5249
|
});
|
|
5182
5250
|
}, e.setPageCount = (t) => e.setPagination((n) => {
|
|
5183
|
-
let r =
|
|
5251
|
+
let r = Vi(t, e.options.pageCount ?? -1);
|
|
5184
5252
|
return typeof r == "number" && (r = Math.max(-1, r)), {
|
|
5185
5253
|
...n,
|
|
5186
5254
|
pageCount: r
|
|
@@ -5193,15 +5261,15 @@ var Ta = { createTable: (e) => {
|
|
|
5193
5261
|
return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
|
|
5194
5262
|
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
|
|
5195
5263
|
}
|
|
5196
|
-
},
|
|
5264
|
+
}, Fa = () => ({
|
|
5197
5265
|
top: [],
|
|
5198
5266
|
bottom: []
|
|
5199
|
-
}),
|
|
5267
|
+
}), Ia = {
|
|
5200
5268
|
getInitialState: (e) => ({
|
|
5201
|
-
rowPinning:
|
|
5269
|
+
rowPinning: Fa(),
|
|
5202
5270
|
...e
|
|
5203
5271
|
}),
|
|
5204
|
-
getDefaultOptions: (e) => ({ onRowPinningChange:
|
|
5272
|
+
getDefaultOptions: (e) => ({ onRowPinningChange: Hi("rowPinning", e) }),
|
|
5205
5273
|
createRow: (e, t) => {
|
|
5206
5274
|
e.pin = (n, r, i) => {
|
|
5207
5275
|
let a = r ? e.getLeafRows().map((e) => {
|
|
@@ -5240,7 +5308,7 @@ var Ta = { createTable: (e) => {
|
|
|
5240
5308
|
};
|
|
5241
5309
|
},
|
|
5242
5310
|
createTable: (e) => {
|
|
5243
|
-
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ?
|
|
5311
|
+
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? Fa() : e.initialState?.rowPinning ?? Fa()), e.getIsSomeRowsPinned = (t) => {
|
|
5244
5312
|
let n = e.getState().rowPinning;
|
|
5245
5313
|
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
|
|
5246
5314
|
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
|
|
@@ -5258,13 +5326,13 @@ var Ta = { createTable: (e) => {
|
|
|
5258
5326
|
return e.filter((e) => !r.has(e.id));
|
|
5259
5327
|
}, Q(e.options, "debugRows", "getCenterRows"));
|
|
5260
5328
|
}
|
|
5261
|
-
},
|
|
5329
|
+
}, La = {
|
|
5262
5330
|
getInitialState: (e) => ({
|
|
5263
5331
|
rowSelection: {},
|
|
5264
5332
|
...e
|
|
5265
5333
|
}),
|
|
5266
5334
|
getDefaultOptions: (e) => ({
|
|
5267
|
-
onRowSelectionChange:
|
|
5335
|
+
onRowSelectionChange: Hi("rowSelection", e),
|
|
5268
5336
|
enableRowSelection: !0,
|
|
5269
5337
|
enableMultiRowSelection: !0,
|
|
5270
5338
|
enableSubRowSelection: !0
|
|
@@ -5283,17 +5351,17 @@ var Ta = { createTable: (e) => {
|
|
|
5283
5351
|
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
|
|
5284
5352
|
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
|
|
5285
5353
|
return e.getRowModel().rows.forEach((t) => {
|
|
5286
|
-
|
|
5354
|
+
Ra(i, t.id, r, !0, e);
|
|
5287
5355
|
}), i;
|
|
5288
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ?
|
|
5356
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? za(e, n) : {
|
|
5289
5357
|
rows: [],
|
|
5290
5358
|
flatRows: [],
|
|
5291
5359
|
rowsById: {}
|
|
5292
|
-
}, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ?
|
|
5360
|
+
}, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? za(e, n) : {
|
|
5293
5361
|
rows: [],
|
|
5294
5362
|
flatRows: [],
|
|
5295
5363
|
rowsById: {}
|
|
5296
|
-
}, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ?
|
|
5364
|
+
}, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? za(e, n) : {
|
|
5297
5365
|
rows: [],
|
|
5298
5366
|
flatRows: [],
|
|
5299
5367
|
rowsById: {}
|
|
@@ -5321,17 +5389,17 @@ var Ta = { createTable: (e) => {
|
|
|
5321
5389
|
t.setRowSelection((a) => {
|
|
5322
5390
|
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
|
|
5323
5391
|
let o = { ...a };
|
|
5324
|
-
return
|
|
5392
|
+
return Ra(o, e.id, n, r?.selectChildren ?? !0, t), o;
|
|
5325
5393
|
});
|
|
5326
5394
|
}, e.getIsSelected = () => {
|
|
5327
5395
|
let { rowSelection: n } = t.getState();
|
|
5328
|
-
return
|
|
5396
|
+
return Ba(e, n);
|
|
5329
5397
|
}, e.getIsSomeSelected = () => {
|
|
5330
5398
|
let { rowSelection: n } = t.getState();
|
|
5331
|
-
return
|
|
5399
|
+
return Va(e, n) === "some";
|
|
5332
5400
|
}, e.getIsAllSubRowsSelected = () => {
|
|
5333
5401
|
let { rowSelection: n } = t.getState();
|
|
5334
|
-
return
|
|
5402
|
+
return Va(e, n) === "all";
|
|
5335
5403
|
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
|
|
5336
5404
|
let t = e.getCanSelect();
|
|
5337
5405
|
return (n) => {
|
|
@@ -5339,16 +5407,16 @@ var Ta = { createTable: (e) => {
|
|
|
5339
5407
|
};
|
|
5340
5408
|
};
|
|
5341
5409
|
}
|
|
5342
|
-
},
|
|
5410
|
+
}, Ra = (e, t, n, r, i) => {
|
|
5343
5411
|
var a;
|
|
5344
5412
|
let o = i.getRow(t, !0);
|
|
5345
|
-
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) =>
|
|
5413
|
+
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => Ra(e, t.id, n, r, i));
|
|
5346
5414
|
};
|
|
5347
|
-
function
|
|
5415
|
+
function za(e, t) {
|
|
5348
5416
|
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
|
|
5349
5417
|
return e.map((e) => {
|
|
5350
5418
|
var t;
|
|
5351
|
-
let o =
|
|
5419
|
+
let o = Ba(e, n);
|
|
5352
5420
|
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
|
|
5353
5421
|
...e,
|
|
5354
5422
|
subRows: a(e.subRows)
|
|
@@ -5361,32 +5429,32 @@ function Ia(e, t) {
|
|
|
5361
5429
|
rowsById: i
|
|
5362
5430
|
};
|
|
5363
5431
|
}
|
|
5364
|
-
function
|
|
5432
|
+
function Ba(e, t) {
|
|
5365
5433
|
return t[e.id] ?? !1;
|
|
5366
5434
|
}
|
|
5367
|
-
function
|
|
5435
|
+
function Va(e, t, n) {
|
|
5368
5436
|
var r;
|
|
5369
5437
|
if (!((r = e.subRows) != null && r.length)) return !1;
|
|
5370
5438
|
let i = !0, a = !1;
|
|
5371
5439
|
return e.subRows.forEach((e) => {
|
|
5372
|
-
if (!(a && !i) && (e.getCanSelect() && (
|
|
5373
|
-
let n =
|
|
5440
|
+
if (!(a && !i) && (e.getCanSelect() && (Ba(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
|
|
5441
|
+
let n = Va(e, t);
|
|
5374
5442
|
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
|
|
5375
5443
|
}
|
|
5376
5444
|
}), i ? "all" : a ? "some" : !1;
|
|
5377
5445
|
}
|
|
5378
|
-
var
|
|
5446
|
+
var Ha = /([0-9]+)/gm, Ua = (e, t, n) => Za(Xa(e.getValue(n)).toLowerCase(), Xa(t.getValue(n)).toLowerCase()), Wa = (e, t, n) => Za(Xa(e.getValue(n)), Xa(t.getValue(n))), Ga = (e, t, n) => Ya(Xa(e.getValue(n)).toLowerCase(), Xa(t.getValue(n)).toLowerCase()), Ka = (e, t, n) => Ya(Xa(e.getValue(n)), Xa(t.getValue(n))), qa = (e, t, n) => {
|
|
5379
5447
|
let r = e.getValue(n), i = t.getValue(n);
|
|
5380
5448
|
return r > i ? 1 : r < i ? -1 : 0;
|
|
5381
|
-
},
|
|
5382
|
-
function
|
|
5449
|
+
}, Ja = (e, t, n) => Ya(e.getValue(n), t.getValue(n));
|
|
5450
|
+
function Ya(e, t) {
|
|
5383
5451
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
5384
5452
|
}
|
|
5385
|
-
function
|
|
5453
|
+
function Xa(e) {
|
|
5386
5454
|
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5387
5455
|
}
|
|
5388
|
-
function
|
|
5389
|
-
let n = e.split(
|
|
5456
|
+
function Za(e, t) {
|
|
5457
|
+
let n = e.split(Ha).filter(Boolean), r = t.split(Ha).filter(Boolean);
|
|
5390
5458
|
for (; n.length && r.length;) {
|
|
5391
5459
|
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
|
|
5392
5460
|
if (isNaN(o[0])) {
|
|
@@ -5400,22 +5468,22 @@ function Ja(e, t) {
|
|
|
5400
5468
|
}
|
|
5401
5469
|
return n.length - r.length;
|
|
5402
5470
|
}
|
|
5403
|
-
var
|
|
5404
|
-
alphanumeric:
|
|
5405
|
-
alphanumericCaseSensitive:
|
|
5406
|
-
text:
|
|
5407
|
-
textCaseSensitive:
|
|
5408
|
-
datetime:
|
|
5409
|
-
basic:
|
|
5410
|
-
},
|
|
5411
|
-
qi,
|
|
5412
|
-
Ca,
|
|
5413
|
-
pa,
|
|
5414
|
-
ha,
|
|
5471
|
+
var Qa = {
|
|
5472
|
+
alphanumeric: Ua,
|
|
5473
|
+
alphanumericCaseSensitive: Wa,
|
|
5474
|
+
text: Ga,
|
|
5475
|
+
textCaseSensitive: Ka,
|
|
5476
|
+
datetime: qa,
|
|
5477
|
+
basic: Ja
|
|
5478
|
+
}, $a = [
|
|
5415
5479
|
Xi,
|
|
5416
|
-
ca,
|
|
5417
|
-
Ta,
|
|
5418
5480
|
Ea,
|
|
5481
|
+
ga,
|
|
5482
|
+
va,
|
|
5483
|
+
$i,
|
|
5484
|
+
da,
|
|
5485
|
+
Oa,
|
|
5486
|
+
ka,
|
|
5419
5487
|
{
|
|
5420
5488
|
getInitialState: (e) => ({
|
|
5421
5489
|
sorting: [],
|
|
@@ -5426,7 +5494,7 @@ var Ya = {
|
|
|
5426
5494
|
sortUndefined: 1
|
|
5427
5495
|
}),
|
|
5428
5496
|
getDefaultOptions: (e) => ({
|
|
5429
|
-
onSortingChange:
|
|
5497
|
+
onSortingChange: Hi("sorting", e),
|
|
5430
5498
|
isMultiSortEvent: (e) => e.shiftKey
|
|
5431
5499
|
}),
|
|
5432
5500
|
createColumn: (e, t) => {
|
|
@@ -5434,13 +5502,13 @@ var Ya = {
|
|
|
5434
5502
|
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
|
|
5435
5503
|
for (let t of n) {
|
|
5436
5504
|
let n = t?.getValue(e.id);
|
|
5437
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return
|
|
5438
|
-
if (typeof n == "string" && (r = !0, n.split(
|
|
5505
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return Qa.datetime;
|
|
5506
|
+
if (typeof n == "string" && (r = !0, n.split(Ha).length > 1)) return Qa.alphanumeric;
|
|
5439
5507
|
}
|
|
5440
|
-
return r ?
|
|
5508
|
+
return r ? Qa.text : Qa.basic;
|
|
5441
5509
|
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
|
|
5442
5510
|
if (!e) throw Error();
|
|
5443
|
-
return
|
|
5511
|
+
return Ui(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? Qa[e.columnDef.sortingFn];
|
|
5444
5512
|
}, e.toggleSorting = (n, r) => {
|
|
5445
5513
|
let i = e.getNextSortingOrder(), a = n != null;
|
|
5446
5514
|
t.setSorting((o) => {
|
|
@@ -5477,16 +5545,16 @@ var Ya = {
|
|
|
5477
5545
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
5478
5546
|
}
|
|
5479
5547
|
},
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
ja,
|
|
5483
|
-
Na,
|
|
5548
|
+
ma,
|
|
5549
|
+
Aa,
|
|
5484
5550
|
Pa,
|
|
5485
|
-
|
|
5551
|
+
Ia,
|
|
5552
|
+
La,
|
|
5553
|
+
Sa
|
|
5486
5554
|
];
|
|
5487
|
-
function
|
|
5555
|
+
function eo(e) {
|
|
5488
5556
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
5489
|
-
let t = [
|
|
5557
|
+
let t = [...$a, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
|
|
5490
5558
|
...r,
|
|
5491
5559
|
...e
|
|
5492
5560
|
}, a = { ...e.initialState ?? {} };
|
|
@@ -5512,7 +5580,7 @@ function Za(e) {
|
|
|
5512
5580
|
n.setState(n.initialState);
|
|
5513
5581
|
},
|
|
5514
5582
|
setOptions: (e) => {
|
|
5515
|
-
let t =
|
|
5583
|
+
let t = Vi(e, n.options);
|
|
5516
5584
|
n.options = i(t);
|
|
5517
5585
|
},
|
|
5518
5586
|
getState: () => n.options.state,
|
|
@@ -5543,7 +5611,7 @@ function Za(e) {
|
|
|
5543
5611
|
getAllColumns: Z(() => [n._getColumnDefs()], (e) => {
|
|
5544
5612
|
let t = function(e, r, i) {
|
|
5545
5613
|
return i === void 0 && (i = 0), e.map((e) => {
|
|
5546
|
-
let a =
|
|
5614
|
+
let a = qi(n, e, i, r), o = e;
|
|
5547
5615
|
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
|
|
5548
5616
|
});
|
|
5549
5617
|
};
|
|
@@ -5564,7 +5632,7 @@ function Za(e) {
|
|
|
5564
5632
|
}
|
|
5565
5633
|
return n;
|
|
5566
5634
|
}
|
|
5567
|
-
function
|
|
5635
|
+
function to() {
|
|
5568
5636
|
return (e) => Z(() => [e.options.data], (t) => {
|
|
5569
5637
|
let n = {
|
|
5570
5638
|
rows: [],
|
|
@@ -5574,7 +5642,7 @@ function Qa() {
|
|
|
5574
5642
|
i === void 0 && (i = 0);
|
|
5575
5643
|
let o = [];
|
|
5576
5644
|
for (let c = 0; c < t.length; c++) {
|
|
5577
|
-
let l =
|
|
5645
|
+
let l = Qi(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
|
|
5578
5646
|
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
|
|
5579
5647
|
var s;
|
|
5580
5648
|
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
|
|
@@ -5587,28 +5655,28 @@ function Qa() {
|
|
|
5587
5655
|
}
|
|
5588
5656
|
//#endregion
|
|
5589
5657
|
//#region ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
5590
|
-
function
|
|
5591
|
-
return e ?
|
|
5658
|
+
function no(e, t) {
|
|
5659
|
+
return e ? ro(e) ? /*#__PURE__*/ x.createElement(e, t) : e : null;
|
|
5592
5660
|
}
|
|
5593
|
-
function
|
|
5594
|
-
return
|
|
5661
|
+
function ro(e) {
|
|
5662
|
+
return io(e) || typeof e == "function" || ao(e);
|
|
5595
5663
|
}
|
|
5596
|
-
function
|
|
5664
|
+
function io(e) {
|
|
5597
5665
|
return typeof e == "function" && (() => {
|
|
5598
5666
|
let t = Object.getPrototypeOf(e);
|
|
5599
5667
|
return t.prototype && t.prototype.isReactComponent;
|
|
5600
5668
|
})();
|
|
5601
5669
|
}
|
|
5602
|
-
function
|
|
5670
|
+
function ao(e) {
|
|
5603
5671
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
5604
5672
|
}
|
|
5605
|
-
function
|
|
5673
|
+
function oo(e) {
|
|
5606
5674
|
let t = {
|
|
5607
5675
|
state: {},
|
|
5608
5676
|
onStateChange: () => {},
|
|
5609
5677
|
renderFallbackValue: null,
|
|
5610
5678
|
...e
|
|
5611
|
-
}, [n] = x.useState(() => ({ current:
|
|
5679
|
+
}, [n] = x.useState(() => ({ current: eo(t) })), [r, i] = x.useState(() => n.current.initialState);
|
|
5612
5680
|
return n.current.setOptions((t) => ({
|
|
5613
5681
|
...t,
|
|
5614
5682
|
...e,
|
|
@@ -5623,13 +5691,13 @@ function ro(e) {
|
|
|
5623
5691
|
}
|
|
5624
5692
|
//#endregion
|
|
5625
5693
|
//#region src/components/DataTable/DataTable.tsx
|
|
5626
|
-
var
|
|
5694
|
+
var so = [
|
|
5627
5695
|
10,
|
|
5628
5696
|
25,
|
|
5629
5697
|
50,
|
|
5630
5698
|
100
|
|
5631
5699
|
];
|
|
5632
|
-
function
|
|
5700
|
+
function co({ direction: e }) {
|
|
5633
5701
|
return e === "asc" ? /* @__PURE__ */ y(r, {
|
|
5634
5702
|
className: "size-3.5",
|
|
5635
5703
|
"aria-hidden": !0
|
|
@@ -5641,7 +5709,7 @@ function ao({ direction: e }) {
|
|
|
5641
5709
|
"aria-hidden": !0
|
|
5642
5710
|
});
|
|
5643
5711
|
}
|
|
5644
|
-
function
|
|
5712
|
+
function lo({ value: e, onChange: t, options: n = so, label: r = "Itens por página" }) {
|
|
5645
5713
|
let i = n.map((e) => ({
|
|
5646
5714
|
value: String(e),
|
|
5647
5715
|
label: String(e)
|
|
@@ -5651,7 +5719,7 @@ function oo({ value: e, onChange: t, options: n = io, label: r = "Itens por pág
|
|
|
5651
5719
|
children: [/* @__PURE__ */ y("span", {
|
|
5652
5720
|
className: "shrink-0 text-sm text-eds-neutral-elements",
|
|
5653
5721
|
children: r
|
|
5654
|
-
}), /* @__PURE__ */ y(
|
|
5722
|
+
}), /* @__PURE__ */ y(bi, {
|
|
5655
5723
|
label: r,
|
|
5656
5724
|
size: "sm",
|
|
5657
5725
|
items: i,
|
|
@@ -5663,43 +5731,63 @@ function oo({ value: e, onChange: t, options: n = io, label: r = "Itens por pág
|
|
|
5663
5731
|
})]
|
|
5664
5732
|
});
|
|
5665
5733
|
}
|
|
5666
|
-
function
|
|
5667
|
-
return /* @__PURE__ */ b(
|
|
5734
|
+
function uo({ columns: e, rows: t = 5, dividers: n, containerClassName: r }) {
|
|
5735
|
+
return /* @__PURE__ */ b(Bi, {
|
|
5668
5736
|
dividers: n,
|
|
5669
5737
|
containerClassName: r,
|
|
5670
|
-
children: [/* @__PURE__ */ y(
|
|
5738
|
+
children: [/* @__PURE__ */ y(Bi.Header, { children: /* @__PURE__ */ y(Bi.Row, { children: e.map((e, t) => /* @__PURE__ */ y(Bi.Head, {
|
|
5739
|
+
sticky: e.meta?.sticky,
|
|
5740
|
+
children: typeof e.header == "string" ? e.header : null
|
|
5741
|
+
}, e.id ?? t)) }) }), /* @__PURE__ */ y(Bi.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ y(Bi.Row, { children: e.map((e, t) => /* @__PURE__ */ y(Bi.Cell, {
|
|
5742
|
+
sticky: e.meta?.sticky,
|
|
5743
|
+
children: /* @__PURE__ */ y("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" })
|
|
5744
|
+
}, t)) }, n)) })]
|
|
5671
5745
|
});
|
|
5672
5746
|
}
|
|
5673
|
-
function
|
|
5674
|
-
let
|
|
5747
|
+
function fo({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, pageSize: o, search: s, actionsStart: u, actionsEnd: d, sorting: f, onSortingChange: p, emptyStateTitle: h = "Nenhum resultado encontrado", emptyStateDescription: _, meta: v, "aria-label": x, className: S, dividers: C, card: w = !0 }) {
|
|
5748
|
+
let T = f !== void 0 && !!p, E = w ? "!rounded-none !border-0 !bg-transparent" : void 0, D = oo({
|
|
5675
5749
|
data: t,
|
|
5676
5750
|
columns: e,
|
|
5677
|
-
getCoreRowModel:
|
|
5678
|
-
meta:
|
|
5679
|
-
state:
|
|
5680
|
-
onSortingChange:
|
|
5751
|
+
getCoreRowModel: to(),
|
|
5752
|
+
meta: v,
|
|
5753
|
+
state: T ? { sorting: f } : void 0,
|
|
5754
|
+
onSortingChange: p,
|
|
5681
5755
|
manualSorting: !0,
|
|
5682
|
-
enableSorting:
|
|
5683
|
-
}),
|
|
5756
|
+
enableSorting: T
|
|
5757
|
+
}), O = D.getRowModel().rows, k = i ? Math.max(1, Math.ceil(i.total / Math.max(1, i.limit))) : 1, A = !!i && !!a && k > 1, ee = !!o && !!i, j = A || ee, M = !!s || !!u || !!d;
|
|
5684
5758
|
return /* @__PURE__ */ b("div", {
|
|
5685
5759
|
"data-eds-component": "DataTable",
|
|
5686
|
-
className: K("flex w-full flex-col",
|
|
5760
|
+
className: K("flex w-full flex-col", w ? "overflow-hidden rounded-eds-xs border border-eds-outline-border bg-white" : "gap-4", S),
|
|
5687
5761
|
children: [
|
|
5688
|
-
|
|
5689
|
-
className: K("
|
|
5690
|
-
children:
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5762
|
+
M && /* @__PURE__ */ b("div", {
|
|
5763
|
+
className: K("grid w-full grid-cols-[minmax(0,5fr)_minmax(0,6fr)_minmax(0,3fr)_minmax(0,6fr)] items-end gap-3", w && "border-b border-eds-outline-border px-4 py-3"),
|
|
5764
|
+
children: [
|
|
5765
|
+
/* @__PURE__ */ y("div", {
|
|
5766
|
+
className: "flex min-w-0 flex-wrap items-end gap-2",
|
|
5767
|
+
children: u
|
|
5768
|
+
}),
|
|
5769
|
+
/* @__PURE__ */ y("div", { "aria-hidden": !0 }),
|
|
5770
|
+
/* @__PURE__ */ y("div", {
|
|
5771
|
+
className: "flex min-w-0 flex-wrap items-center justify-end gap-2",
|
|
5772
|
+
children: d
|
|
5773
|
+
}),
|
|
5774
|
+
/* @__PURE__ */ y("div", {
|
|
5775
|
+
className: "min-w-0",
|
|
5776
|
+
children: s && /* @__PURE__ */ y(hi, {
|
|
5777
|
+
label: "Buscar",
|
|
5778
|
+
labelVariant: "floating",
|
|
5779
|
+
className: "w-full",
|
|
5780
|
+
icon: g,
|
|
5781
|
+
value: s.value,
|
|
5782
|
+
placeholder: s.placeholder ?? "Buscar...",
|
|
5783
|
+
onChange: (e) => s.onChange(e),
|
|
5784
|
+
"aria-label": s.placeholder ?? "Buscar"
|
|
5785
|
+
})
|
|
5786
|
+
})
|
|
5787
|
+
]
|
|
5700
5788
|
}),
|
|
5701
5789
|
n && /* @__PURE__ */ b("div", {
|
|
5702
|
-
className: K("flex items-center justify-center gap-2 py-2 text-eds-neutral-elements text-sm",
|
|
5790
|
+
className: K("flex items-center justify-center gap-2 py-2 text-eds-neutral-elements text-sm", w && "border-b border-eds-outline-border"),
|
|
5703
5791
|
role: "status",
|
|
5704
5792
|
"aria-label": "Carregando",
|
|
5705
5793
|
children: [/* @__PURE__ */ y(m, {
|
|
@@ -5707,50 +5795,54 @@ function co({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5707
5795
|
"aria-hidden": !0
|
|
5708
5796
|
}), "Carregando..."]
|
|
5709
5797
|
}),
|
|
5710
|
-
n ? /* @__PURE__ */ y(
|
|
5798
|
+
n ? /* @__PURE__ */ y(uo, {
|
|
5711
5799
|
columns: e,
|
|
5712
|
-
dividers:
|
|
5713
|
-
containerClassName:
|
|
5800
|
+
dividers: C,
|
|
5801
|
+
containerClassName: E
|
|
5714
5802
|
}) : r ? /* @__PURE__ */ y("div", {
|
|
5715
|
-
className:
|
|
5716
|
-
children: /* @__PURE__ */ y(
|
|
5717
|
-
title:
|
|
5718
|
-
description:
|
|
5803
|
+
className: w ? "p-6" : void 0,
|
|
5804
|
+
children: /* @__PURE__ */ y(ri, {
|
|
5805
|
+
title: h,
|
|
5806
|
+
description: _ ?? "Houve um erro ao buscar os dados. Tente novamente."
|
|
5719
5807
|
})
|
|
5720
|
-
}) :
|
|
5721
|
-
className:
|
|
5722
|
-
children: /* @__PURE__ */ y(
|
|
5723
|
-
title:
|
|
5724
|
-
description:
|
|
5808
|
+
}) : O.length === 0 ? /* @__PURE__ */ y("div", {
|
|
5809
|
+
className: w ? "p-6" : void 0,
|
|
5810
|
+
children: /* @__PURE__ */ y(ri, {
|
|
5811
|
+
title: h,
|
|
5812
|
+
description: _
|
|
5725
5813
|
})
|
|
5726
|
-
}) : /* @__PURE__ */ b(
|
|
5727
|
-
"aria-label":
|
|
5728
|
-
dividers:
|
|
5729
|
-
containerClassName:
|
|
5730
|
-
children: [/* @__PURE__ */ y(
|
|
5814
|
+
}) : /* @__PURE__ */ b(Bi, {
|
|
5815
|
+
"aria-label": x,
|
|
5816
|
+
dividers: C,
|
|
5817
|
+
containerClassName: E,
|
|
5818
|
+
children: [/* @__PURE__ */ y(Bi.Header, { children: D.getHeaderGroups().map((e) => /* @__PURE__ */ y(Bi.Row, { children: e.headers.map((e) => {
|
|
5731
5819
|
let t = e.column.getIsSorted();
|
|
5732
|
-
return /* @__PURE__ */ y(
|
|
5820
|
+
return /* @__PURE__ */ y(Bi.Head, {
|
|
5821
|
+
sticky: e.column.columnDef.meta?.sticky,
|
|
5733
5822
|
"aria-sort": e.column.getCanSort() ? t === "asc" ? "ascending" : t === "desc" ? "descending" : "none" : void 0,
|
|
5734
5823
|
children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ b("button", {
|
|
5735
5824
|
type: "button",
|
|
5736
5825
|
className: "flex select-none items-center gap-1 font-semibold",
|
|
5737
5826
|
onClick: e.column.getToggleSortingHandler(),
|
|
5738
|
-
children: [
|
|
5739
|
-
}) :
|
|
5827
|
+
children: [no(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ y(co, { direction: t })]
|
|
5828
|
+
}) : no(e.column.columnDef.header, e.getContext())
|
|
5740
5829
|
}, e.id);
|
|
5741
|
-
}) }, e.id)) }), /* @__PURE__ */ y(
|
|
5830
|
+
}) }, e.id)) }), /* @__PURE__ */ y(Bi.Body, { children: O.map((e) => /* @__PURE__ */ y(Bi.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ y(Bi.Cell, {
|
|
5831
|
+
sticky: e.column.columnDef.meta?.sticky,
|
|
5832
|
+
children: no(e.column.columnDef.cell, e.getContext())
|
|
5833
|
+
}, e.id)) }, e.id)) })]
|
|
5742
5834
|
}),
|
|
5743
|
-
|
|
5744
|
-
className: K("flex items-center justify-between gap-4",
|
|
5835
|
+
j && /* @__PURE__ */ b("div", {
|
|
5836
|
+
className: K("flex items-center justify-between gap-4", w ? "border-t border-eds-outline-border px-4 py-3" : "rounded-eds-xs bg-white px-3 py-2"),
|
|
5745
5837
|
children: [
|
|
5746
5838
|
/* @__PURE__ */ y("div", {
|
|
5747
5839
|
className: "flex flex-1 items-center",
|
|
5748
|
-
children:
|
|
5840
|
+
children: ee && o && i && /* @__PURE__ */ y(lo, {
|
|
5749
5841
|
...o,
|
|
5750
5842
|
value: i.limit
|
|
5751
5843
|
})
|
|
5752
5844
|
}),
|
|
5753
|
-
|
|
5845
|
+
A && i && /* @__PURE__ */ b("div", {
|
|
5754
5846
|
className: "flex items-center gap-2",
|
|
5755
5847
|
children: [
|
|
5756
5848
|
/* @__PURE__ */ y(Yt, {
|
|
@@ -5767,7 +5859,7 @@ function co({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5767
5859
|
children: [
|
|
5768
5860
|
i.page,
|
|
5769
5861
|
" / ",
|
|
5770
|
-
|
|
5862
|
+
k
|
|
5771
5863
|
]
|
|
5772
5864
|
}),
|
|
5773
5865
|
/* @__PURE__ */ y(Yt, {
|
|
@@ -5776,7 +5868,7 @@ function co({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5776
5868
|
size: "sm",
|
|
5777
5869
|
icon: l,
|
|
5778
5870
|
label: "Próxima página",
|
|
5779
|
-
disabled: i.page >=
|
|
5871
|
+
disabled: i.page >= k,
|
|
5780
5872
|
onClick: () => a?.(i.page + 1)
|
|
5781
5873
|
})
|
|
5782
5874
|
]
|
|
@@ -5789,12 +5881,12 @@ function co({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5789
5881
|
}
|
|
5790
5882
|
//#endregion
|
|
5791
5883
|
//#region src/components/Tabs/Tabs.tsx
|
|
5792
|
-
var
|
|
5884
|
+
var po = {
|
|
5793
5885
|
variant: "segmented",
|
|
5794
5886
|
size: "md"
|
|
5795
5887
|
};
|
|
5796
|
-
function
|
|
5797
|
-
let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } =
|
|
5888
|
+
function mo({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = po.variant, size: l = po.size }) {
|
|
5889
|
+
let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = go(d), g = ho(m, h);
|
|
5798
5890
|
if (u.length === 0) return null;
|
|
5799
5891
|
let _ = u[0]?.value, v = t !== void 0, x = {
|
|
5800
5892
|
value: v ? t : void 0,
|
|
@@ -5832,7 +5924,7 @@ function uo({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
|
|
|
5832
5924
|
})]
|
|
5833
5925
|
});
|
|
5834
5926
|
}
|
|
5835
|
-
function
|
|
5927
|
+
function ho(e, t) {
|
|
5836
5928
|
let n = N(null), r = N(!1);
|
|
5837
5929
|
return () => ({
|
|
5838
5930
|
onPointerDownCapture: (i) => {
|
|
@@ -5869,7 +5961,7 @@ function fo(e, t) {
|
|
|
5869
5961
|
}
|
|
5870
5962
|
});
|
|
5871
5963
|
}
|
|
5872
|
-
function
|
|
5964
|
+
function go(e) {
|
|
5873
5965
|
let t = N(null), [n, r] = P(!1);
|
|
5874
5966
|
return k(() => {
|
|
5875
5967
|
if (!e) return;
|
|
@@ -5884,12 +5976,12 @@ function po(e) {
|
|
|
5884
5976
|
}
|
|
5885
5977
|
//#endregion
|
|
5886
5978
|
//#region src/components/Message/Message.tsx
|
|
5887
|
-
var
|
|
5979
|
+
var _o = { role: {
|
|
5888
5980
|
user: { classes: "self-end rounded-br-eds-lil bg-eds-blue-main text-white" },
|
|
5889
5981
|
assistant: { classes: "self-start rounded-bl-eds-lil bg-eds-neutral-background text-eds-neutral-main" }
|
|
5890
|
-
} },
|
|
5891
|
-
function
|
|
5892
|
-
let a = q(
|
|
5982
|
+
} }, vo = { role: "assistant" };
|
|
5983
|
+
function yo({ role: e = vo.role, streaming: t = !1, className: n, children: r, ...i }) {
|
|
5984
|
+
let a = q(_o.role, e, vo.role);
|
|
5893
5985
|
return /* @__PURE__ */ b("div", {
|
|
5894
5986
|
"data-eds-component": "Message",
|
|
5895
5987
|
"data-role": e,
|
|
@@ -5907,47 +5999,47 @@ function go({ role: e = ho.role, streaming: t = !1, className: n, children: r, .
|
|
|
5907
5999
|
}
|
|
5908
6000
|
//#endregion
|
|
5909
6001
|
//#region ../../node_modules/.pnpm/@dnd-kit+utilities@3.2.2_react@19.2.7/node_modules/@dnd-kit/utilities/dist/utilities.esm.js
|
|
5910
|
-
function
|
|
6002
|
+
function bo() {
|
|
5911
6003
|
var e = [...arguments];
|
|
5912
6004
|
return j(() => (t) => {
|
|
5913
6005
|
e.forEach((e) => e(t));
|
|
5914
6006
|
}, e);
|
|
5915
6007
|
}
|
|
5916
|
-
var
|
|
5917
|
-
function
|
|
6008
|
+
var xo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
6009
|
+
function So(e) {
|
|
5918
6010
|
let t = Object.prototype.toString.call(e);
|
|
5919
6011
|
return t === "[object Window]" || t === "[object global]";
|
|
5920
6012
|
}
|
|
5921
|
-
function
|
|
6013
|
+
function Co(e) {
|
|
5922
6014
|
return "nodeType" in e;
|
|
5923
6015
|
}
|
|
5924
|
-
function
|
|
5925
|
-
return e ?
|
|
6016
|
+
function wo(e) {
|
|
6017
|
+
return e ? So(e) ? e : Co(e) ? e.ownerDocument?.defaultView ?? window : window : window;
|
|
5926
6018
|
}
|
|
5927
|
-
function
|
|
5928
|
-
let { Document: t } =
|
|
6019
|
+
function To(e) {
|
|
6020
|
+
let { Document: t } = wo(e);
|
|
5929
6021
|
return e instanceof t;
|
|
5930
6022
|
}
|
|
5931
|
-
function
|
|
5932
|
-
return
|
|
6023
|
+
function Eo(e) {
|
|
6024
|
+
return So(e) ? !1 : e instanceof wo(e).HTMLElement;
|
|
5933
6025
|
}
|
|
5934
|
-
function
|
|
5935
|
-
return e instanceof
|
|
6026
|
+
function Do(e) {
|
|
6027
|
+
return e instanceof wo(e).SVGElement;
|
|
5936
6028
|
}
|
|
5937
|
-
function
|
|
5938
|
-
return e ?
|
|
6029
|
+
function Oo(e) {
|
|
6030
|
+
return e ? So(e) ? e.document : Co(e) ? To(e) ? e : Eo(e) || Do(e) ? e.ownerDocument : document : document : document;
|
|
5939
6031
|
}
|
|
5940
|
-
var
|
|
5941
|
-
function
|
|
6032
|
+
var ko = xo ? ee : k;
|
|
6033
|
+
function Ao(e) {
|
|
5942
6034
|
let t = N(e);
|
|
5943
|
-
return
|
|
6035
|
+
return ko(() => {
|
|
5944
6036
|
t.current = e;
|
|
5945
6037
|
}), D(function() {
|
|
5946
6038
|
var e = [...arguments];
|
|
5947
6039
|
return t.current == null ? void 0 : t.current(...e);
|
|
5948
6040
|
}, []);
|
|
5949
6041
|
}
|
|
5950
|
-
function
|
|
6042
|
+
function jo() {
|
|
5951
6043
|
let e = N(null);
|
|
5952
6044
|
return [D((t, n) => {
|
|
5953
6045
|
e.current = setInterval(t, n);
|
|
@@ -5955,41 +6047,41 @@ function Oo() {
|
|
|
5955
6047
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
5956
6048
|
}, [])];
|
|
5957
6049
|
}
|
|
5958
|
-
function
|
|
6050
|
+
function Mo(e, t) {
|
|
5959
6051
|
t === void 0 && (t = [e]);
|
|
5960
6052
|
let n = N(e);
|
|
5961
|
-
return
|
|
6053
|
+
return ko(() => {
|
|
5962
6054
|
n.current !== e && (n.current = e);
|
|
5963
6055
|
}, t), n;
|
|
5964
6056
|
}
|
|
5965
|
-
function
|
|
6057
|
+
function No(e, t) {
|
|
5966
6058
|
let n = N();
|
|
5967
6059
|
return j(() => {
|
|
5968
6060
|
let t = e(n.current);
|
|
5969
6061
|
return n.current = t, t;
|
|
5970
6062
|
}, [...t]);
|
|
5971
6063
|
}
|
|
5972
|
-
function
|
|
5973
|
-
let t =
|
|
6064
|
+
function Po(e) {
|
|
6065
|
+
let t = Ao(e), n = N(null);
|
|
5974
6066
|
return [n, D((e) => {
|
|
5975
6067
|
e !== n.current && t?.(e, n.current), n.current = e;
|
|
5976
6068
|
}, [])];
|
|
5977
6069
|
}
|
|
5978
|
-
function
|
|
6070
|
+
function Fo(e) {
|
|
5979
6071
|
let t = N();
|
|
5980
6072
|
return k(() => {
|
|
5981
6073
|
t.current = e;
|
|
5982
6074
|
}, [e]), t.current;
|
|
5983
6075
|
}
|
|
5984
|
-
var
|
|
5985
|
-
function
|
|
6076
|
+
var Io = {};
|
|
6077
|
+
function Lo(e, t) {
|
|
5986
6078
|
return j(() => {
|
|
5987
6079
|
if (t) return t;
|
|
5988
|
-
let n =
|
|
5989
|
-
return
|
|
6080
|
+
let n = Io[e] == null ? 0 : Io[e] + 1;
|
|
6081
|
+
return Io[e] = n, e + "-" + n;
|
|
5990
6082
|
}, [e, t]);
|
|
5991
6083
|
}
|
|
5992
|
-
function
|
|
6084
|
+
function Ro(e) {
|
|
5993
6085
|
return function(t) {
|
|
5994
6086
|
return [...arguments].slice(1).reduce((t, n) => {
|
|
5995
6087
|
let r = Object.entries(n);
|
|
@@ -6001,22 +6093,22 @@ function Fo(e) {
|
|
|
6001
6093
|
}, { ...t });
|
|
6002
6094
|
};
|
|
6003
6095
|
}
|
|
6004
|
-
var
|
|
6005
|
-
function
|
|
6096
|
+
var zo = /*#__PURE__*/ Ro(1), Bo = /*#__PURE__*/ Ro(-1);
|
|
6097
|
+
function Vo(e) {
|
|
6006
6098
|
return "clientX" in e && "clientY" in e;
|
|
6007
6099
|
}
|
|
6008
|
-
function
|
|
6100
|
+
function Ho(e) {
|
|
6009
6101
|
if (!e) return !1;
|
|
6010
|
-
let { KeyboardEvent: t } =
|
|
6102
|
+
let { KeyboardEvent: t } = wo(e.target);
|
|
6011
6103
|
return t && e instanceof t;
|
|
6012
6104
|
}
|
|
6013
|
-
function
|
|
6105
|
+
function Uo(e) {
|
|
6014
6106
|
if (!e) return !1;
|
|
6015
|
-
let { TouchEvent: t } =
|
|
6107
|
+
let { TouchEvent: t } = wo(e.target);
|
|
6016
6108
|
return t && e instanceof t;
|
|
6017
6109
|
}
|
|
6018
|
-
function
|
|
6019
|
-
if (
|
|
6110
|
+
function Wo(e) {
|
|
6111
|
+
if (Uo(e)) {
|
|
6020
6112
|
if (e.touches && e.touches.length) {
|
|
6021
6113
|
let { clientX: t, clientY: n } = e.touches[0];
|
|
6022
6114
|
return {
|
|
@@ -6031,12 +6123,12 @@ function Vo(e) {
|
|
|
6031
6123
|
};
|
|
6032
6124
|
}
|
|
6033
6125
|
}
|
|
6034
|
-
return
|
|
6126
|
+
return Vo(e) ? {
|
|
6035
6127
|
x: e.clientX,
|
|
6036
6128
|
y: e.clientY
|
|
6037
6129
|
} : null;
|
|
6038
6130
|
}
|
|
6039
|
-
var
|
|
6131
|
+
var Go = /*#__PURE__*/ Object.freeze({
|
|
6040
6132
|
Translate: { toString(e) {
|
|
6041
6133
|
if (!e) return;
|
|
6042
6134
|
let { x: t, y: n } = e;
|
|
@@ -6048,27 +6140,27 @@ var Ho = /*#__PURE__*/ Object.freeze({
|
|
|
6048
6140
|
return "scaleX(" + t + ") scaleY(" + n + ")";
|
|
6049
6141
|
} },
|
|
6050
6142
|
Transform: { toString(e) {
|
|
6051
|
-
if (e) return [
|
|
6143
|
+
if (e) return [Go.Translate.toString(e), Go.Scale.toString(e)].join(" ");
|
|
6052
6144
|
} },
|
|
6053
6145
|
Transition: { toString(e) {
|
|
6054
6146
|
let { property: t, duration: n, easing: r } = e;
|
|
6055
6147
|
return t + " " + n + "ms " + r;
|
|
6056
6148
|
} }
|
|
6057
|
-
}),
|
|
6058
|
-
function
|
|
6059
|
-
return e.matches(
|
|
6149
|
+
}), Ko = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
6150
|
+
function qo(e) {
|
|
6151
|
+
return e.matches(Ko) ? e : e.querySelector(Ko);
|
|
6060
6152
|
}
|
|
6061
6153
|
//#endregion
|
|
6062
6154
|
//#region ../../node_modules/.pnpm/@dnd-kit+accessibility@3.1.1_react@19.2.7/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js
|
|
6063
|
-
var
|
|
6064
|
-
function
|
|
6155
|
+
var Jo = { display: "none" };
|
|
6156
|
+
function Yo(e) {
|
|
6065
6157
|
let { id: t, value: n } = e;
|
|
6066
6158
|
return S.createElement("div", {
|
|
6067
6159
|
id: t,
|
|
6068
|
-
style:
|
|
6160
|
+
style: Jo
|
|
6069
6161
|
}, n);
|
|
6070
6162
|
}
|
|
6071
|
-
function
|
|
6163
|
+
function Xo(e) {
|
|
6072
6164
|
let { id: t, announcement: n, ariaLiveType: r = "assertive" } = e;
|
|
6073
6165
|
return S.createElement("div", {
|
|
6074
6166
|
id: t,
|
|
@@ -6091,7 +6183,7 @@ function qo(e) {
|
|
|
6091
6183
|
"aria-atomic": !0
|
|
6092
6184
|
}, n);
|
|
6093
6185
|
}
|
|
6094
|
-
function
|
|
6186
|
+
function Zo() {
|
|
6095
6187
|
let [e, t] = P("");
|
|
6096
6188
|
return {
|
|
6097
6189
|
announce: D((e) => {
|
|
@@ -6102,22 +6194,22 @@ function Jo() {
|
|
|
6102
6194
|
}
|
|
6103
6195
|
//#endregion
|
|
6104
6196
|
//#region ../../node_modules/.pnpm/@dnd-kit+core@6.3.1_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@dnd-kit/core/dist/core.esm.js
|
|
6105
|
-
var
|
|
6106
|
-
function
|
|
6107
|
-
let t = O(
|
|
6197
|
+
var Qo = /*#__PURE__*/ w(null);
|
|
6198
|
+
function $o(e) {
|
|
6199
|
+
let t = O(Qo);
|
|
6108
6200
|
k(() => {
|
|
6109
6201
|
if (!t) throw Error("useDndMonitor must be used within a children of <DndContext>");
|
|
6110
6202
|
return t(e);
|
|
6111
6203
|
}, [e, t]);
|
|
6112
6204
|
}
|
|
6113
|
-
function
|
|
6205
|
+
function es() {
|
|
6114
6206
|
let [e] = P(() => /* @__PURE__ */ new Set()), t = D((t) => (e.add(t), () => e.delete(t)), [e]);
|
|
6115
6207
|
return [D((t) => {
|
|
6116
6208
|
let { type: n, event: r } = t;
|
|
6117
6209
|
e.forEach((e) => e[n]?.call(e, r));
|
|
6118
6210
|
}, [e]), t];
|
|
6119
6211
|
}
|
|
6120
|
-
var
|
|
6212
|
+
var ts = { draggable: "\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n " }, ns = {
|
|
6121
6213
|
onDragStart(e) {
|
|
6122
6214
|
let { active: t } = e;
|
|
6123
6215
|
return "Picked up draggable item " + t.id + ".";
|
|
@@ -6135,11 +6227,11 @@ var Qo = { draggable: "\n To pick up a draggable item, press the space bar.\n
|
|
|
6135
6227
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
6136
6228
|
}
|
|
6137
6229
|
};
|
|
6138
|
-
function
|
|
6139
|
-
let { announcements: t =
|
|
6230
|
+
function rs(e) {
|
|
6231
|
+
let { announcements: t = ns, container: n, hiddenTextDescribedById: r, screenReaderInstructions: i = ts } = e, { announce: a, announcement: o } = Zo(), s = Lo("DndLiveRegion"), [c, l] = P(!1);
|
|
6140
6232
|
if (k(() => {
|
|
6141
6233
|
l(!0);
|
|
6142
|
-
}, []),
|
|
6234
|
+
}, []), $o(j(() => ({
|
|
6143
6235
|
onDragStart(e) {
|
|
6144
6236
|
let { active: n } = e;
|
|
6145
6237
|
a(t.onDragStart({ active: n }));
|
|
@@ -6173,39 +6265,39 @@ function es(e) {
|
|
|
6173
6265
|
}));
|
|
6174
6266
|
}
|
|
6175
6267
|
}), [a, t])), !c) return null;
|
|
6176
|
-
let u = S.createElement(S.Fragment, null, S.createElement(
|
|
6268
|
+
let u = S.createElement(S.Fragment, null, S.createElement(Yo, {
|
|
6177
6269
|
id: r,
|
|
6178
6270
|
value: i.draggable
|
|
6179
|
-
}), S.createElement(
|
|
6271
|
+
}), S.createElement(Xo, {
|
|
6180
6272
|
id: s,
|
|
6181
6273
|
announcement: o
|
|
6182
6274
|
}));
|
|
6183
6275
|
return n ? G(u, n) : u;
|
|
6184
6276
|
}
|
|
6185
|
-
var
|
|
6277
|
+
var is;
|
|
6186
6278
|
(function(e) {
|
|
6187
6279
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
6188
|
-
})(
|
|
6189
|
-
function
|
|
6190
|
-
function
|
|
6280
|
+
})(is ||= {});
|
|
6281
|
+
function as() {}
|
|
6282
|
+
function os(e, t) {
|
|
6191
6283
|
return j(() => ({
|
|
6192
6284
|
sensor: e,
|
|
6193
6285
|
options: t ?? {}
|
|
6194
6286
|
}), [e, t]);
|
|
6195
6287
|
}
|
|
6196
|
-
function
|
|
6288
|
+
function ss() {
|
|
6197
6289
|
var e = [...arguments];
|
|
6198
6290
|
return j(() => [...e].filter((e) => e != null), [...e]);
|
|
6199
6291
|
}
|
|
6200
|
-
var
|
|
6292
|
+
var cs = /*#__PURE__*/ Object.freeze({
|
|
6201
6293
|
x: 0,
|
|
6202
6294
|
y: 0
|
|
6203
6295
|
});
|
|
6204
|
-
function
|
|
6296
|
+
function ls(e, t) {
|
|
6205
6297
|
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
|
|
6206
6298
|
}
|
|
6207
|
-
function
|
|
6208
|
-
let n =
|
|
6299
|
+
function us(e, t) {
|
|
6300
|
+
let n = Wo(e);
|
|
6209
6301
|
if (!n) return "0 0";
|
|
6210
6302
|
let r = {
|
|
6211
6303
|
x: (n.x - t.left) / t.width * 100,
|
|
@@ -6213,15 +6305,15 @@ function ss(e, t) {
|
|
|
6213
6305
|
};
|
|
6214
6306
|
return r.x + "% " + r.y + "%";
|
|
6215
6307
|
}
|
|
6216
|
-
function
|
|
6308
|
+
function ds(e, t) {
|
|
6217
6309
|
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
6218
6310
|
return n - r;
|
|
6219
6311
|
}
|
|
6220
|
-
function
|
|
6312
|
+
function fs(e, t) {
|
|
6221
6313
|
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
6222
6314
|
return r - n;
|
|
6223
6315
|
}
|
|
6224
|
-
function
|
|
6316
|
+
function ps(e) {
|
|
6225
6317
|
let { left: t, top: n, height: r, width: i } = e;
|
|
6226
6318
|
return [
|
|
6227
6319
|
{
|
|
@@ -6242,17 +6334,17 @@ function us(e) {
|
|
|
6242
6334
|
}
|
|
6243
6335
|
];
|
|
6244
6336
|
}
|
|
6245
|
-
function
|
|
6337
|
+
function ms(e, t) {
|
|
6246
6338
|
if (!e || e.length === 0) return null;
|
|
6247
6339
|
let [n] = e;
|
|
6248
6340
|
return t ? n[t] : n;
|
|
6249
6341
|
}
|
|
6250
|
-
var
|
|
6251
|
-
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i =
|
|
6342
|
+
var hs = (e) => {
|
|
6343
|
+
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = ps(t), a = [];
|
|
6252
6344
|
for (let e of r) {
|
|
6253
6345
|
let { id: t } = e, r = n.get(t);
|
|
6254
6346
|
if (r) {
|
|
6255
|
-
let n =
|
|
6347
|
+
let n = ps(r), o = i.reduce((e, t, r) => e + ls(n[r], t), 0), s = Number((o / 4).toFixed(4));
|
|
6256
6348
|
a.push({
|
|
6257
6349
|
id: t,
|
|
6258
6350
|
data: {
|
|
@@ -6262,9 +6354,9 @@ var fs = (e) => {
|
|
|
6262
6354
|
});
|
|
6263
6355
|
}
|
|
6264
6356
|
}
|
|
6265
|
-
return a.sort(
|
|
6357
|
+
return a.sort(ds);
|
|
6266
6358
|
};
|
|
6267
|
-
function
|
|
6359
|
+
function gs(e, t) {
|
|
6268
6360
|
let n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), a = Math.min(t.top + t.height, e.top + e.height), o = i - r, s = a - n;
|
|
6269
6361
|
if (r < i && n < a) {
|
|
6270
6362
|
let n = t.width * t.height, r = e.width * e.height, i = o * s, a = i / (n + r - i);
|
|
@@ -6272,12 +6364,12 @@ function ps(e, t) {
|
|
|
6272
6364
|
}
|
|
6273
6365
|
return 0;
|
|
6274
6366
|
}
|
|
6275
|
-
var
|
|
6367
|
+
var _s = (e) => {
|
|
6276
6368
|
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = [];
|
|
6277
6369
|
for (let e of r) {
|
|
6278
6370
|
let { id: r } = e, a = n.get(r);
|
|
6279
6371
|
if (a) {
|
|
6280
|
-
let n =
|
|
6372
|
+
let n = gs(a, t);
|
|
6281
6373
|
n > 0 && i.push({
|
|
6282
6374
|
id: r,
|
|
6283
6375
|
data: {
|
|
@@ -6287,22 +6379,22 @@ var ms = (e) => {
|
|
|
6287
6379
|
});
|
|
6288
6380
|
}
|
|
6289
6381
|
}
|
|
6290
|
-
return i.sort(
|
|
6382
|
+
return i.sort(fs);
|
|
6291
6383
|
};
|
|
6292
|
-
function
|
|
6384
|
+
function vs(e, t, n) {
|
|
6293
6385
|
return {
|
|
6294
6386
|
...e,
|
|
6295
6387
|
scaleX: t && n ? t.width / n.width : 1,
|
|
6296
6388
|
scaleY: t && n ? t.height / n.height : 1
|
|
6297
6389
|
};
|
|
6298
6390
|
}
|
|
6299
|
-
function
|
|
6391
|
+
function ys(e, t) {
|
|
6300
6392
|
return e && t ? {
|
|
6301
6393
|
x: e.left - t.left,
|
|
6302
6394
|
y: e.top - t.top
|
|
6303
|
-
} :
|
|
6395
|
+
} : cs;
|
|
6304
6396
|
}
|
|
6305
|
-
function
|
|
6397
|
+
function bs(e) {
|
|
6306
6398
|
return function(t) {
|
|
6307
6399
|
return [...arguments].slice(1).reduce((t, n) => ({
|
|
6308
6400
|
...t,
|
|
@@ -6313,8 +6405,8 @@ function _s(e) {
|
|
|
6313
6405
|
}), { ...t });
|
|
6314
6406
|
};
|
|
6315
6407
|
}
|
|
6316
|
-
var
|
|
6317
|
-
function
|
|
6408
|
+
var xs = /*#__PURE__*/ bs(1);
|
|
6409
|
+
function Ss(e) {
|
|
6318
6410
|
if (e.startsWith("matrix3d(")) {
|
|
6319
6411
|
let t = e.slice(9, -1).split(/, /);
|
|
6320
6412
|
return {
|
|
@@ -6334,8 +6426,8 @@ function ys(e) {
|
|
|
6334
6426
|
}
|
|
6335
6427
|
return null;
|
|
6336
6428
|
}
|
|
6337
|
-
function
|
|
6338
|
-
let r =
|
|
6429
|
+
function Cs(e, t, n) {
|
|
6430
|
+
let r = Ss(t);
|
|
6339
6431
|
if (!r) return e;
|
|
6340
6432
|
let { scaleX: i, scaleY: a, x: o, y: s } = r, c = e.left - o - (1 - i) * parseFloat(n), l = e.top - s - (1 - a) * parseFloat(n.slice(n.indexOf(" ") + 1)), u = i ? e.width / i : e.width, d = a ? e.height / a : e.height;
|
|
6341
6433
|
return {
|
|
@@ -6347,13 +6439,13 @@ function bs(e, t, n) {
|
|
|
6347
6439
|
left: c
|
|
6348
6440
|
};
|
|
6349
6441
|
}
|
|
6350
|
-
var
|
|
6351
|
-
function
|
|
6352
|
-
t === void 0 && (t =
|
|
6442
|
+
var ws = { ignoreTransform: !1 };
|
|
6443
|
+
function Ts(e, t) {
|
|
6444
|
+
t === void 0 && (t = ws);
|
|
6353
6445
|
let n = e.getBoundingClientRect();
|
|
6354
6446
|
if (t.ignoreTransform) {
|
|
6355
|
-
let { transform: t, transformOrigin: r } =
|
|
6356
|
-
t && (n =
|
|
6447
|
+
let { transform: t, transformOrigin: r } = wo(e).getComputedStyle(e);
|
|
6448
|
+
t && (n = Cs(n, t, r));
|
|
6357
6449
|
}
|
|
6358
6450
|
let { top: r, left: i, width: a, height: o, bottom: s, right: c } = n;
|
|
6359
6451
|
return {
|
|
@@ -6365,10 +6457,10 @@ function Ss(e, t) {
|
|
|
6365
6457
|
right: c
|
|
6366
6458
|
};
|
|
6367
6459
|
}
|
|
6368
|
-
function
|
|
6369
|
-
return
|
|
6460
|
+
function Es(e) {
|
|
6461
|
+
return Ts(e, { ignoreTransform: !0 });
|
|
6370
6462
|
}
|
|
6371
|
-
function
|
|
6463
|
+
function Ds(e) {
|
|
6372
6464
|
let t = e.innerWidth, n = e.innerHeight;
|
|
6373
6465
|
return {
|
|
6374
6466
|
top: 0,
|
|
@@ -6379,11 +6471,11 @@ function ws(e) {
|
|
|
6379
6471
|
height: n
|
|
6380
6472
|
};
|
|
6381
6473
|
}
|
|
6382
|
-
function
|
|
6383
|
-
return t === void 0 && (t =
|
|
6474
|
+
function Os(e, t) {
|
|
6475
|
+
return t === void 0 && (t = wo(e).getComputedStyle(e)), t.position === "fixed";
|
|
6384
6476
|
}
|
|
6385
|
-
function
|
|
6386
|
-
t === void 0 && (t =
|
|
6477
|
+
function ks(e, t) {
|
|
6478
|
+
t === void 0 && (t = wo(e).getComputedStyle(e));
|
|
6387
6479
|
let n = /(auto|scroll|overlay)/;
|
|
6388
6480
|
return [
|
|
6389
6481
|
"overflow",
|
|
@@ -6394,48 +6486,48 @@ function Es(e, t) {
|
|
|
6394
6486
|
return typeof r == "string" ? n.test(r) : !1;
|
|
6395
6487
|
});
|
|
6396
6488
|
}
|
|
6397
|
-
function
|
|
6489
|
+
function As(e, t) {
|
|
6398
6490
|
let n = [];
|
|
6399
6491
|
function r(i) {
|
|
6400
6492
|
if (t != null && n.length >= t || !i) return n;
|
|
6401
|
-
if (
|
|
6402
|
-
if (!
|
|
6403
|
-
let a =
|
|
6404
|
-
return i !== e &&
|
|
6493
|
+
if (To(i) && i.scrollingElement != null && !n.includes(i.scrollingElement)) return n.push(i.scrollingElement), n;
|
|
6494
|
+
if (!Eo(i) || Do(i) || n.includes(i)) return n;
|
|
6495
|
+
let a = wo(e).getComputedStyle(i);
|
|
6496
|
+
return i !== e && ks(i, a) && n.push(i), Os(i, a) ? n : r(i.parentNode);
|
|
6405
6497
|
}
|
|
6406
6498
|
return e ? r(e) : n;
|
|
6407
6499
|
}
|
|
6408
|
-
function
|
|
6409
|
-
let [t] =
|
|
6500
|
+
function js(e) {
|
|
6501
|
+
let [t] = As(e, 1);
|
|
6410
6502
|
return t ?? null;
|
|
6411
6503
|
}
|
|
6412
|
-
function
|
|
6413
|
-
return !
|
|
6504
|
+
function Ms(e) {
|
|
6505
|
+
return !xo || !e ? null : So(e) ? e : Co(e) ? To(e) || e === Oo(e).scrollingElement ? window : Eo(e) ? e : null : null;
|
|
6414
6506
|
}
|
|
6415
|
-
function
|
|
6416
|
-
return
|
|
6507
|
+
function Ns(e) {
|
|
6508
|
+
return So(e) ? e.scrollX : e.scrollLeft;
|
|
6417
6509
|
}
|
|
6418
|
-
function
|
|
6419
|
-
return
|
|
6510
|
+
function Ps(e) {
|
|
6511
|
+
return So(e) ? e.scrollY : e.scrollTop;
|
|
6420
6512
|
}
|
|
6421
|
-
function
|
|
6513
|
+
function Fs(e) {
|
|
6422
6514
|
return {
|
|
6423
|
-
x:
|
|
6424
|
-
y:
|
|
6515
|
+
x: Ns(e),
|
|
6516
|
+
y: Ps(e)
|
|
6425
6517
|
};
|
|
6426
6518
|
}
|
|
6427
|
-
var
|
|
6519
|
+
var Is;
|
|
6428
6520
|
(function(e) {
|
|
6429
6521
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
6430
|
-
})(
|
|
6431
|
-
function
|
|
6432
|
-
return !
|
|
6522
|
+
})(Is ||= {});
|
|
6523
|
+
function Ls(e) {
|
|
6524
|
+
return !xo || !e ? !1 : e === document.scrollingElement;
|
|
6433
6525
|
}
|
|
6434
|
-
function
|
|
6526
|
+
function Rs(e) {
|
|
6435
6527
|
let t = {
|
|
6436
6528
|
x: 0,
|
|
6437
6529
|
y: 0
|
|
6438
|
-
}, n =
|
|
6530
|
+
}, n = Ls(e) ? {
|
|
6439
6531
|
height: window.innerHeight,
|
|
6440
6532
|
width: window.innerWidth
|
|
6441
6533
|
} : {
|
|
@@ -6454,14 +6546,14 @@ function Fs(e) {
|
|
|
6454
6546
|
minScroll: t
|
|
6455
6547
|
};
|
|
6456
6548
|
}
|
|
6457
|
-
var
|
|
6549
|
+
var zs = {
|
|
6458
6550
|
x: .2,
|
|
6459
6551
|
y: .2
|
|
6460
6552
|
};
|
|
6461
|
-
function
|
|
6553
|
+
function Bs(e, t, n, r, i) {
|
|
6462
6554
|
let { top: a, left: o, right: s, bottom: c } = n;
|
|
6463
|
-
r === void 0 && (r = 10), i === void 0 && (i =
|
|
6464
|
-
let { isTop: l, isBottom: u, isLeft: d, isRight: f } =
|
|
6555
|
+
r === void 0 && (r = 10), i === void 0 && (i = zs);
|
|
6556
|
+
let { isTop: l, isBottom: u, isLeft: d, isRight: f } = Rs(e), p = {
|
|
6465
6557
|
x: 0,
|
|
6466
6558
|
y: 0
|
|
6467
6559
|
}, m = {
|
|
@@ -6471,12 +6563,12 @@ function Ls(e, t, n, r, i) {
|
|
|
6471
6563
|
height: t.height * i.y,
|
|
6472
6564
|
width: t.width * i.x
|
|
6473
6565
|
};
|
|
6474
|
-
return !l && a <= t.top + h.height ? (p.y =
|
|
6566
|
+
return !l && a <= t.top + h.height ? (p.y = Is.Backward, m.y = r * Math.abs((t.top + h.height - a) / h.height)) : !u && c >= t.bottom - h.height && (p.y = Is.Forward, m.y = r * Math.abs((t.bottom - h.height - c) / h.height)), !f && s >= t.right - h.width ? (p.x = Is.Forward, m.x = r * Math.abs((t.right - h.width - s) / h.width)) : !d && o <= t.left + h.width && (p.x = Is.Backward, m.x = r * Math.abs((t.left + h.width - o) / h.width)), {
|
|
6475
6567
|
direction: p,
|
|
6476
6568
|
speed: m
|
|
6477
6569
|
};
|
|
6478
6570
|
}
|
|
6479
|
-
function
|
|
6571
|
+
function Vs(e) {
|
|
6480
6572
|
if (e === document.scrollingElement) {
|
|
6481
6573
|
let { innerWidth: e, innerHeight: t } = window;
|
|
6482
6574
|
return {
|
|
@@ -6498,37 +6590,37 @@ function Rs(e) {
|
|
|
6498
6590
|
height: e.clientHeight
|
|
6499
6591
|
};
|
|
6500
6592
|
}
|
|
6501
|
-
function
|
|
6502
|
-
return e.reduce((e, t) =>
|
|
6593
|
+
function Hs(e) {
|
|
6594
|
+
return e.reduce((e, t) => zo(e, Fs(t)), cs);
|
|
6503
6595
|
}
|
|
6504
|
-
function
|
|
6505
|
-
return e.reduce((e, t) => e +
|
|
6596
|
+
function Us(e) {
|
|
6597
|
+
return e.reduce((e, t) => e + Ns(t), 0);
|
|
6506
6598
|
}
|
|
6507
|
-
function
|
|
6508
|
-
return e.reduce((e, t) => e +
|
|
6599
|
+
function Ws(e) {
|
|
6600
|
+
return e.reduce((e, t) => e + Ps(t), 0);
|
|
6509
6601
|
}
|
|
6510
|
-
function
|
|
6511
|
-
if (t === void 0 && (t =
|
|
6602
|
+
function Gs(e, t) {
|
|
6603
|
+
if (t === void 0 && (t = Ts), !e) return;
|
|
6512
6604
|
let { top: n, left: r, bottom: i, right: a } = t(e);
|
|
6513
|
-
|
|
6605
|
+
js(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
6514
6606
|
block: "center",
|
|
6515
6607
|
inline: "center"
|
|
6516
6608
|
});
|
|
6517
6609
|
}
|
|
6518
|
-
var
|
|
6610
|
+
var Ks = [[
|
|
6519
6611
|
"x",
|
|
6520
6612
|
["left", "right"],
|
|
6521
|
-
|
|
6613
|
+
Us
|
|
6522
6614
|
], [
|
|
6523
6615
|
"y",
|
|
6524
6616
|
["top", "bottom"],
|
|
6525
|
-
|
|
6526
|
-
]],
|
|
6617
|
+
Ws
|
|
6618
|
+
]], qs = class {
|
|
6527
6619
|
constructor(e, t) {
|
|
6528
6620
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
6529
|
-
let n =
|
|
6621
|
+
let n = As(t), r = Hs(n);
|
|
6530
6622
|
this.rect = { ...e }, this.width = e.width, this.height = e.height;
|
|
6531
|
-
for (let [e, t, i] of
|
|
6623
|
+
for (let [e, t, i] of Ks) for (let a of t) Object.defineProperty(this, a, {
|
|
6532
6624
|
get: () => {
|
|
6533
6625
|
let t = i(n), o = r[e] - t;
|
|
6534
6626
|
return this.rect[a] + o;
|
|
@@ -6537,7 +6629,7 @@ var Us = [[
|
|
|
6537
6629
|
});
|
|
6538
6630
|
Object.defineProperty(this, "rect", { enumerable: !1 });
|
|
6539
6631
|
}
|
|
6540
|
-
},
|
|
6632
|
+
}, Js = class {
|
|
6541
6633
|
constructor(e) {
|
|
6542
6634
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
6543
6635
|
this.listeners.forEach((e) => this.target?.removeEventListener(...e));
|
|
@@ -6552,29 +6644,29 @@ var Us = [[
|
|
|
6552
6644
|
]);
|
|
6553
6645
|
}
|
|
6554
6646
|
};
|
|
6555
|
-
function
|
|
6556
|
-
let { EventTarget: t } =
|
|
6557
|
-
return e instanceof t ? e :
|
|
6647
|
+
function Ys(e) {
|
|
6648
|
+
let { EventTarget: t } = wo(e);
|
|
6649
|
+
return e instanceof t ? e : Oo(e);
|
|
6558
6650
|
}
|
|
6559
|
-
function
|
|
6651
|
+
function Xs(e, t) {
|
|
6560
6652
|
let n = Math.abs(e.x), r = Math.abs(e.y);
|
|
6561
6653
|
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
|
|
6562
6654
|
}
|
|
6563
|
-
var
|
|
6655
|
+
var Zs;
|
|
6564
6656
|
(function(e) {
|
|
6565
6657
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
6566
|
-
})(
|
|
6567
|
-
function
|
|
6658
|
+
})(Zs ||= {});
|
|
6659
|
+
function Qs(e) {
|
|
6568
6660
|
e.preventDefault();
|
|
6569
6661
|
}
|
|
6570
|
-
function
|
|
6662
|
+
function $s(e) {
|
|
6571
6663
|
e.stopPropagation();
|
|
6572
6664
|
}
|
|
6573
6665
|
var $;
|
|
6574
6666
|
(function(e) {
|
|
6575
6667
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
6576
6668
|
})($ ||= {});
|
|
6577
|
-
var
|
|
6669
|
+
var ec = {
|
|
6578
6670
|
start: [$.Space, $.Enter],
|
|
6579
6671
|
cancel: [$.Esc],
|
|
6580
6672
|
end: [
|
|
@@ -6582,7 +6674,7 @@ var Zs = {
|
|
|
6582
6674
|
$.Enter,
|
|
6583
6675
|
$.Tab
|
|
6584
6676
|
]
|
|
6585
|
-
},
|
|
6677
|
+
}, tc = (e, t) => {
|
|
6586
6678
|
let { currentCoordinates: n } = t;
|
|
6587
6679
|
switch (e.code) {
|
|
6588
6680
|
case $.Right: return {
|
|
@@ -6602,22 +6694,22 @@ var Zs = {
|
|
|
6602
6694
|
y: n.y - 25
|
|
6603
6695
|
};
|
|
6604
6696
|
}
|
|
6605
|
-
},
|
|
6697
|
+
}, nc = class {
|
|
6606
6698
|
constructor(e) {
|
|
6607
6699
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
|
|
6608
6700
|
let { event: { target: t } } = e;
|
|
6609
|
-
this.props = e, this.listeners = new
|
|
6701
|
+
this.props = e, this.listeners = new Js(Oo(t)), this.windowListeners = new Js(wo(t)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
6610
6702
|
}
|
|
6611
6703
|
attach() {
|
|
6612
|
-
this.handleStart(), this.windowListeners.add(
|
|
6704
|
+
this.handleStart(), this.windowListeners.add(Zs.Resize, this.handleCancel), this.windowListeners.add(Zs.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(Zs.Keydown, this.handleKeyDown));
|
|
6613
6705
|
}
|
|
6614
6706
|
handleStart() {
|
|
6615
6707
|
let { activeNode: e, onStart: t } = this.props, n = e.node.current;
|
|
6616
|
-
n &&
|
|
6708
|
+
n && Gs(n), t(cs);
|
|
6617
6709
|
}
|
|
6618
6710
|
handleKeyDown(e) {
|
|
6619
|
-
if (
|
|
6620
|
-
let { active: t, context: n, options: r } = this.props, { keyboardCodes: i =
|
|
6711
|
+
if (Ho(e)) {
|
|
6712
|
+
let { active: t, context: n, options: r } = this.props, { keyboardCodes: i = ec, coordinateGetter: a = tc, scrollBehavior: o = "smooth" } = r, { code: s } = e;
|
|
6621
6713
|
if (i.end.includes(s)) {
|
|
6622
6714
|
this.handleEnd(e);
|
|
6623
6715
|
return;
|
|
@@ -6629,7 +6721,7 @@ var Zs = {
|
|
|
6629
6721
|
let { collisionRect: c } = n.current, l = c ? {
|
|
6630
6722
|
x: c.left,
|
|
6631
6723
|
y: c.top
|
|
6632
|
-
} :
|
|
6724
|
+
} : cs;
|
|
6633
6725
|
this.referenceCoordinates ||= l;
|
|
6634
6726
|
let u = a(e, {
|
|
6635
6727
|
active: t,
|
|
@@ -6637,12 +6729,12 @@ var Zs = {
|
|
|
6637
6729
|
currentCoordinates: l
|
|
6638
6730
|
});
|
|
6639
6731
|
if (u) {
|
|
6640
|
-
let t =
|
|
6732
|
+
let t = Bo(u, l), r = {
|
|
6641
6733
|
x: 0,
|
|
6642
6734
|
y: 0
|
|
6643
6735
|
}, { scrollableAncestors: i } = n.current;
|
|
6644
6736
|
for (let n of i) {
|
|
6645
|
-
let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } =
|
|
6737
|
+
let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } = Rs(n), p = Vs(n), m = {
|
|
6646
6738
|
x: Math.min(i === $.Right ? p.right - p.width / 2 : p.right, Math.max(i === $.Right ? p.left : p.left + p.width / 2, u.x)),
|
|
6647
6739
|
y: Math.min(i === $.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(i === $.Down ? p.top : p.top + p.height / 2, u.y))
|
|
6648
6740
|
}, h = i === $.Right && !s || i === $.Left && !c, g = i === $.Down && !l || i === $.Up && !a;
|
|
@@ -6676,7 +6768,7 @@ var Zs = {
|
|
|
6676
6768
|
break;
|
|
6677
6769
|
}
|
|
6678
6770
|
}
|
|
6679
|
-
this.handleMove(e,
|
|
6771
|
+
this.handleMove(e, zo(Bo(u, this.referenceCoordinates), r));
|
|
6680
6772
|
}
|
|
6681
6773
|
}
|
|
6682
6774
|
}
|
|
@@ -6696,10 +6788,10 @@ var Zs = {
|
|
|
6696
6788
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
6697
6789
|
}
|
|
6698
6790
|
};
|
|
6699
|
-
|
|
6791
|
+
nc.activators = [{
|
|
6700
6792
|
eventName: "onKeyDown",
|
|
6701
6793
|
handler: (e, t, n) => {
|
|
6702
|
-
let { keyboardCodes: r =
|
|
6794
|
+
let { keyboardCodes: r = ec, onActivation: i } = t, { active: a } = n, { code: o } = e.nativeEvent;
|
|
6703
6795
|
if (r.start.includes(o)) {
|
|
6704
6796
|
let t = a.activatorNode.current;
|
|
6705
6797
|
return t && e.target !== t ? !1 : (e.preventDefault(), i?.({ event: e.nativeEvent }), !0);
|
|
@@ -6707,31 +6799,31 @@ $s.activators = [{
|
|
|
6707
6799
|
return !1;
|
|
6708
6800
|
}
|
|
6709
6801
|
}];
|
|
6710
|
-
function
|
|
6802
|
+
function rc(e) {
|
|
6711
6803
|
return !!(e && "distance" in e);
|
|
6712
6804
|
}
|
|
6713
|
-
function
|
|
6805
|
+
function ic(e) {
|
|
6714
6806
|
return !!(e && "delay" in e);
|
|
6715
6807
|
}
|
|
6716
|
-
var
|
|
6808
|
+
var ac = class {
|
|
6717
6809
|
constructor(e, t, n) {
|
|
6718
|
-
n === void 0 && (n =
|
|
6810
|
+
n === void 0 && (n = Ys(e.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = e, this.events = t;
|
|
6719
6811
|
let { event: r } = e, { target: i } = r;
|
|
6720
|
-
this.props = e, this.events = t, this.document =
|
|
6812
|
+
this.props = e, this.events = t, this.document = Oo(i), this.documentListeners = new Js(this.document), this.listeners = new Js(n), this.windowListeners = new Js(wo(i)), this.initialCoordinates = Wo(r) ?? cs, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
6721
6813
|
}
|
|
6722
6814
|
attach() {
|
|
6723
6815
|
let { events: e, props: { options: { activationConstraint: t, bypassActivationConstraint: n } } } = this;
|
|
6724
|
-
if (this.listeners.add(e.move.name, this.handleMove, { passive: !1 }), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(
|
|
6816
|
+
if (this.listeners.add(e.move.name, this.handleMove, { passive: !1 }), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(Zs.Resize, this.handleCancel), this.windowListeners.add(Zs.DragStart, Qs), this.windowListeners.add(Zs.VisibilityChange, this.handleCancel), this.windowListeners.add(Zs.ContextMenu, Qs), this.documentListeners.add(Zs.Keydown, this.handleKeydown), t) {
|
|
6725
6817
|
if (n != null && n({
|
|
6726
6818
|
event: this.props.event,
|
|
6727
6819
|
activeNode: this.props.activeNode,
|
|
6728
6820
|
options: this.props.options
|
|
6729
6821
|
})) return this.handleStart();
|
|
6730
|
-
if (
|
|
6822
|
+
if (ic(t)) {
|
|
6731
6823
|
this.timeoutId = setTimeout(this.handleStart, t.delay), this.handlePending(t);
|
|
6732
6824
|
return;
|
|
6733
6825
|
}
|
|
6734
|
-
if (
|
|
6826
|
+
if (rc(t)) {
|
|
6735
6827
|
this.handlePending(t);
|
|
6736
6828
|
return;
|
|
6737
6829
|
}
|
|
@@ -6747,18 +6839,18 @@ var nc = class {
|
|
|
6747
6839
|
}
|
|
6748
6840
|
handleStart() {
|
|
6749
6841
|
let { initialCoordinates: e } = this, { onStart: t } = this.props;
|
|
6750
|
-
e && (this.activated = !0, this.documentListeners.add(
|
|
6842
|
+
e && (this.activated = !0, this.documentListeners.add(Zs.Click, $s, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(Zs.SelectionChange, this.removeTextSelection), t(e));
|
|
6751
6843
|
}
|
|
6752
6844
|
handleMove(e) {
|
|
6753
6845
|
let { activated: t, initialCoordinates: n, props: r } = this, { onMove: i, options: { activationConstraint: a } } = r;
|
|
6754
6846
|
if (!n) return;
|
|
6755
|
-
let o =
|
|
6847
|
+
let o = Wo(e) ?? cs, s = Bo(n, o);
|
|
6756
6848
|
if (!t && a) {
|
|
6757
|
-
if (
|
|
6758
|
-
if (a.tolerance != null &&
|
|
6759
|
-
if (
|
|
6849
|
+
if (rc(a)) {
|
|
6850
|
+
if (a.tolerance != null && Xs(s, a.tolerance)) return this.handleCancel();
|
|
6851
|
+
if (Xs(s, a.distance)) return this.handleStart();
|
|
6760
6852
|
}
|
|
6761
|
-
if (
|
|
6853
|
+
if (ic(a) && Xs(s, a.tolerance)) return this.handleCancel();
|
|
6762
6854
|
this.handlePending(a, s);
|
|
6763
6855
|
return;
|
|
6764
6856
|
}
|
|
@@ -6779,80 +6871,80 @@ var nc = class {
|
|
|
6779
6871
|
var e;
|
|
6780
6872
|
(e = this.document.getSelection()) == null || e.removeAllRanges();
|
|
6781
6873
|
}
|
|
6782
|
-
},
|
|
6874
|
+
}, oc = {
|
|
6783
6875
|
cancel: { name: "pointercancel" },
|
|
6784
6876
|
move: { name: "pointermove" },
|
|
6785
6877
|
end: { name: "pointerup" }
|
|
6786
|
-
},
|
|
6878
|
+
}, sc = class extends ac {
|
|
6787
6879
|
constructor(e) {
|
|
6788
|
-
let { event: t } = e, n =
|
|
6789
|
-
super(e,
|
|
6880
|
+
let { event: t } = e, n = Oo(t.target);
|
|
6881
|
+
super(e, oc, n);
|
|
6790
6882
|
}
|
|
6791
6883
|
};
|
|
6792
|
-
|
|
6884
|
+
sc.activators = [{
|
|
6793
6885
|
eventName: "onPointerDown",
|
|
6794
6886
|
handler: (e, t) => {
|
|
6795
6887
|
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
6796
6888
|
return !n.isPrimary || n.button !== 0 ? !1 : (r?.({ event: n }), !0);
|
|
6797
6889
|
}
|
|
6798
6890
|
}];
|
|
6799
|
-
var
|
|
6891
|
+
var cc = {
|
|
6800
6892
|
move: { name: "mousemove" },
|
|
6801
6893
|
end: { name: "mouseup" }
|
|
6802
|
-
},
|
|
6894
|
+
}, lc;
|
|
6803
6895
|
(function(e) {
|
|
6804
6896
|
e[e.RightClick = 2] = "RightClick";
|
|
6805
|
-
})(
|
|
6806
|
-
var
|
|
6897
|
+
})(lc ||= {});
|
|
6898
|
+
var uc = class extends ac {
|
|
6807
6899
|
constructor(e) {
|
|
6808
|
-
super(e,
|
|
6900
|
+
super(e, cc, Oo(e.event.target));
|
|
6809
6901
|
}
|
|
6810
6902
|
};
|
|
6811
|
-
|
|
6903
|
+
uc.activators = [{
|
|
6812
6904
|
eventName: "onMouseDown",
|
|
6813
6905
|
handler: (e, t) => {
|
|
6814
6906
|
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
6815
|
-
return n.button ===
|
|
6907
|
+
return n.button === lc.RightClick ? !1 : (r?.({ event: n }), !0);
|
|
6816
6908
|
}
|
|
6817
6909
|
}];
|
|
6818
|
-
var
|
|
6910
|
+
var dc = {
|
|
6819
6911
|
cancel: { name: "touchcancel" },
|
|
6820
6912
|
move: { name: "touchmove" },
|
|
6821
6913
|
end: { name: "touchend" }
|
|
6822
|
-
},
|
|
6914
|
+
}, fc = class extends ac {
|
|
6823
6915
|
constructor(e) {
|
|
6824
|
-
super(e,
|
|
6916
|
+
super(e, dc);
|
|
6825
6917
|
}
|
|
6826
6918
|
static setup() {
|
|
6827
|
-
return window.addEventListener(
|
|
6919
|
+
return window.addEventListener(dc.move.name, e, {
|
|
6828
6920
|
capture: !1,
|
|
6829
6921
|
passive: !1
|
|
6830
6922
|
}), function() {
|
|
6831
|
-
window.removeEventListener(
|
|
6923
|
+
window.removeEventListener(dc.move.name, e);
|
|
6832
6924
|
};
|
|
6833
6925
|
function e() {}
|
|
6834
6926
|
}
|
|
6835
6927
|
};
|
|
6836
|
-
|
|
6928
|
+
fc.activators = [{
|
|
6837
6929
|
eventName: "onTouchStart",
|
|
6838
6930
|
handler: (e, t) => {
|
|
6839
6931
|
let { nativeEvent: n } = e, { onActivation: r } = t, { touches: i } = n;
|
|
6840
6932
|
return i.length > 1 ? !1 : (r?.({ event: n }), !0);
|
|
6841
6933
|
}
|
|
6842
6934
|
}];
|
|
6843
|
-
var
|
|
6935
|
+
var pc;
|
|
6844
6936
|
(function(e) {
|
|
6845
6937
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
6846
|
-
})(
|
|
6847
|
-
var
|
|
6938
|
+
})(pc ||= {});
|
|
6939
|
+
var mc;
|
|
6848
6940
|
(function(e) {
|
|
6849
6941
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
6850
|
-
})(
|
|
6851
|
-
function
|
|
6852
|
-
let { acceleration: t, activator: n =
|
|
6942
|
+
})(mc ||= {});
|
|
6943
|
+
function hc(e) {
|
|
6944
|
+
let { acceleration: t, activator: n = pc.Pointer, canScroll: r, draggingRect: i, enabled: a, interval: o = 5, order: s = mc.TreeOrder, pointerCoordinates: c, scrollableAncestors: l, scrollableAncestorRects: u, delta: d, threshold: f } = e, p = _c({
|
|
6853
6945
|
delta: d,
|
|
6854
6946
|
disabled: !a
|
|
6855
|
-
}), [m, h] =
|
|
6947
|
+
}), [m, h] = jo(), g = N({
|
|
6856
6948
|
x: 0,
|
|
6857
6949
|
y: 0
|
|
6858
6950
|
}), _ = N({
|
|
@@ -6860,13 +6952,13 @@ function fc(e) {
|
|
|
6860
6952
|
y: 0
|
|
6861
6953
|
}), v = j(() => {
|
|
6862
6954
|
switch (n) {
|
|
6863
|
-
case
|
|
6955
|
+
case pc.Pointer: return c ? {
|
|
6864
6956
|
top: c.y,
|
|
6865
6957
|
bottom: c.y,
|
|
6866
6958
|
left: c.x,
|
|
6867
6959
|
right: c.x
|
|
6868
6960
|
} : null;
|
|
6869
|
-
case
|
|
6961
|
+
case pc.DraggableRect: return i;
|
|
6870
6962
|
}
|
|
6871
6963
|
}, [
|
|
6872
6964
|
n,
|
|
@@ -6877,7 +6969,7 @@ function fc(e) {
|
|
|
6877
6969
|
if (!e) return;
|
|
6878
6970
|
let t = g.current.x * _.current.x, n = g.current.y * _.current.y;
|
|
6879
6971
|
e.scrollBy(t, n);
|
|
6880
|
-
}, []), x = j(() => s ===
|
|
6972
|
+
}, []), x = j(() => s === mc.TreeOrder ? [...l].reverse() : l, [s, l]);
|
|
6881
6973
|
k(() => {
|
|
6882
6974
|
if (!a || !l.length || !v) {
|
|
6883
6975
|
h();
|
|
@@ -6887,7 +6979,7 @@ function fc(e) {
|
|
|
6887
6979
|
if (r?.(e) === !1) continue;
|
|
6888
6980
|
let n = l.indexOf(e), i = u[n];
|
|
6889
6981
|
if (!i) continue;
|
|
6890
|
-
let { direction: a, speed: s } =
|
|
6982
|
+
let { direction: a, speed: s } = Bs(e, i, v, t, f);
|
|
6891
6983
|
for (let e of ["x", "y"]) p[e][a[e]] || (s[e] = 0, a[e] = 0);
|
|
6892
6984
|
if (s.x > 0 || s.y > 0) {
|
|
6893
6985
|
h(), y.current = e, m(b, o), g.current = s, _.current = a;
|
|
@@ -6917,32 +7009,32 @@ function fc(e) {
|
|
|
6917
7009
|
JSON.stringify(f)
|
|
6918
7010
|
]);
|
|
6919
7011
|
}
|
|
6920
|
-
var
|
|
7012
|
+
var gc = {
|
|
6921
7013
|
x: {
|
|
6922
|
-
[
|
|
6923
|
-
[
|
|
7014
|
+
[Is.Backward]: !1,
|
|
7015
|
+
[Is.Forward]: !1
|
|
6924
7016
|
},
|
|
6925
7017
|
y: {
|
|
6926
|
-
[
|
|
6927
|
-
[
|
|
7018
|
+
[Is.Backward]: !1,
|
|
7019
|
+
[Is.Forward]: !1
|
|
6928
7020
|
}
|
|
6929
7021
|
};
|
|
6930
|
-
function
|
|
6931
|
-
let { delta: t, disabled: n } = e, r =
|
|
6932
|
-
return
|
|
6933
|
-
if (n || !r || !e) return
|
|
7022
|
+
function _c(e) {
|
|
7023
|
+
let { delta: t, disabled: n } = e, r = Fo(t);
|
|
7024
|
+
return No((e) => {
|
|
7025
|
+
if (n || !r || !e) return gc;
|
|
6934
7026
|
let i = {
|
|
6935
7027
|
x: Math.sign(t.x - r.x),
|
|
6936
7028
|
y: Math.sign(t.y - r.y)
|
|
6937
7029
|
};
|
|
6938
7030
|
return {
|
|
6939
7031
|
x: {
|
|
6940
|
-
[
|
|
6941
|
-
[
|
|
7032
|
+
[Is.Backward]: e.x[Is.Backward] || i.x === -1,
|
|
7033
|
+
[Is.Forward]: e.x[Is.Forward] || i.x === 1
|
|
6942
7034
|
},
|
|
6943
7035
|
y: {
|
|
6944
|
-
[
|
|
6945
|
-
[
|
|
7036
|
+
[Is.Backward]: e.y[Is.Backward] || i.y === -1,
|
|
7037
|
+
[Is.Forward]: e.y[Is.Forward] || i.y === 1
|
|
6946
7038
|
}
|
|
6947
7039
|
};
|
|
6948
7040
|
}, [
|
|
@@ -6951,11 +7043,11 @@ function mc(e) {
|
|
|
6951
7043
|
r
|
|
6952
7044
|
]);
|
|
6953
7045
|
}
|
|
6954
|
-
function
|
|
7046
|
+
function vc(e, t) {
|
|
6955
7047
|
let n = t == null ? void 0 : e.get(t), r = n ? n.node.current : null;
|
|
6956
|
-
return
|
|
7048
|
+
return No((e) => t == null ? null : r ?? e ?? null, [r, t]);
|
|
6957
7049
|
}
|
|
6958
|
-
function
|
|
7050
|
+
function yc(e, t) {
|
|
6959
7051
|
return j(() => e.reduce((e, n) => {
|
|
6960
7052
|
let { sensor: r } = n, i = r.activators.map((e) => ({
|
|
6961
7053
|
eventName: e.eventName,
|
|
@@ -6964,21 +7056,21 @@ function gc(e, t) {
|
|
|
6964
7056
|
return [...e, ...i];
|
|
6965
7057
|
}, []), [e, t]);
|
|
6966
7058
|
}
|
|
6967
|
-
var
|
|
7059
|
+
var bc;
|
|
6968
7060
|
(function(e) {
|
|
6969
7061
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
6970
|
-
})(
|
|
6971
|
-
var
|
|
7062
|
+
})(bc ||= {});
|
|
7063
|
+
var xc;
|
|
6972
7064
|
(function(e) {
|
|
6973
7065
|
e.Optimized = "optimized";
|
|
6974
|
-
})(
|
|
6975
|
-
var
|
|
6976
|
-
function
|
|
6977
|
-
let { dragging: n, dependencies: r, config: i } = t, [a, o] = P(null), { frequency: s, measure: c, strategy: l } = i, u = N(e), d = g(), f =
|
|
7066
|
+
})(xc ||= {});
|
|
7067
|
+
var Sc = /*#__PURE__*/ new Map();
|
|
7068
|
+
function Cc(e, t) {
|
|
7069
|
+
let { dragging: n, dependencies: r, config: i } = t, [a, o] = P(null), { frequency: s, measure: c, strategy: l } = i, u = N(e), d = g(), f = Mo(d), p = D(function(e) {
|
|
6978
7070
|
e === void 0 && (e = []), !f.current && o((t) => t === null ? e : t.concat(e.filter((e) => !t.includes(e))));
|
|
6979
|
-
}, [f]), m = N(null), h =
|
|
6980
|
-
if (d && !n) return
|
|
6981
|
-
if (!t || t ===
|
|
7071
|
+
}, [f]), m = N(null), h = No((t) => {
|
|
7072
|
+
if (d && !n) return Sc;
|
|
7073
|
+
if (!t || t === Sc || u.current !== e || a != null) {
|
|
6982
7074
|
let t = /* @__PURE__ */ new Map();
|
|
6983
7075
|
for (let n of e) {
|
|
6984
7076
|
if (!n) continue;
|
|
@@ -6986,7 +7078,7 @@ function bc(e, t) {
|
|
|
6986
7078
|
t.set(n.id, n.rect.current);
|
|
6987
7079
|
continue;
|
|
6988
7080
|
}
|
|
6989
|
-
let e = n.node.current, r = e ? new
|
|
7081
|
+
let e = n.node.current, r = e ? new qs(c(e), e) : null;
|
|
6990
7082
|
n.rect.current = r, r && t.set(n.id, r);
|
|
6991
7083
|
}
|
|
6992
7084
|
return t;
|
|
@@ -7021,39 +7113,39 @@ function bc(e, t) {
|
|
|
7021
7113
|
};
|
|
7022
7114
|
function g() {
|
|
7023
7115
|
switch (l) {
|
|
7024
|
-
case
|
|
7025
|
-
case
|
|
7116
|
+
case bc.Always: return !1;
|
|
7117
|
+
case bc.BeforeDragging: return n;
|
|
7026
7118
|
default: return !n;
|
|
7027
7119
|
}
|
|
7028
7120
|
}
|
|
7029
7121
|
}
|
|
7030
|
-
function
|
|
7031
|
-
return
|
|
7122
|
+
function wc(e, t) {
|
|
7123
|
+
return No((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
7032
7124
|
}
|
|
7033
|
-
function
|
|
7034
|
-
return
|
|
7125
|
+
function Tc(e, t) {
|
|
7126
|
+
return wc(e, t);
|
|
7035
7127
|
}
|
|
7036
|
-
function
|
|
7037
|
-
let { callback: t, disabled: n } = e, r =
|
|
7128
|
+
function Ec(e) {
|
|
7129
|
+
let { callback: t, disabled: n } = e, r = Ao(t), i = j(() => {
|
|
7038
7130
|
if (n || typeof window > "u" || window.MutationObserver === void 0) return;
|
|
7039
7131
|
let { MutationObserver: e } = window;
|
|
7040
7132
|
return new e(r);
|
|
7041
7133
|
}, [r, n]);
|
|
7042
7134
|
return k(() => () => i?.disconnect(), [i]), i;
|
|
7043
7135
|
}
|
|
7044
|
-
function
|
|
7045
|
-
let { callback: t, disabled: n } = e, r =
|
|
7136
|
+
function Dc(e) {
|
|
7137
|
+
let { callback: t, disabled: n } = e, r = Ao(t), i = j(() => {
|
|
7046
7138
|
if (n || typeof window > "u" || window.ResizeObserver === void 0) return;
|
|
7047
7139
|
let { ResizeObserver: e } = window;
|
|
7048
7140
|
return new e(r);
|
|
7049
7141
|
}, [n]);
|
|
7050
7142
|
return k(() => () => i?.disconnect(), [i]), i;
|
|
7051
7143
|
}
|
|
7052
|
-
function
|
|
7053
|
-
return new
|
|
7144
|
+
function Oc(e) {
|
|
7145
|
+
return new qs(Ts(e), e);
|
|
7054
7146
|
}
|
|
7055
|
-
function
|
|
7056
|
-
t === void 0 && (t =
|
|
7147
|
+
function kc(e, t, n) {
|
|
7148
|
+
t === void 0 && (t = Oc);
|
|
7057
7149
|
let [r, i] = P(null);
|
|
7058
7150
|
function a() {
|
|
7059
7151
|
i((r) => {
|
|
@@ -7063,7 +7155,7 @@ function Ec(e, t, n) {
|
|
|
7063
7155
|
return JSON.stringify(r) === JSON.stringify(i) ? r : i;
|
|
7064
7156
|
});
|
|
7065
7157
|
}
|
|
7066
|
-
let o =
|
|
7158
|
+
let o = Ec({ callback(t) {
|
|
7067
7159
|
if (e) for (let n of t) {
|
|
7068
7160
|
let { type: t, target: r } = n;
|
|
7069
7161
|
if (t === "childList" && r instanceof HTMLElement && r.contains(e)) {
|
|
@@ -7071,36 +7163,36 @@ function Ec(e, t, n) {
|
|
|
7071
7163
|
break;
|
|
7072
7164
|
}
|
|
7073
7165
|
}
|
|
7074
|
-
} }), s =
|
|
7075
|
-
return
|
|
7166
|
+
} }), s = Dc({ callback: a });
|
|
7167
|
+
return ko(() => {
|
|
7076
7168
|
a(), e ? (s?.observe(e), o?.observe(document.body, {
|
|
7077
7169
|
childList: !0,
|
|
7078
7170
|
subtree: !0
|
|
7079
7171
|
})) : (s?.disconnect(), o?.disconnect());
|
|
7080
7172
|
}, [e]), r;
|
|
7081
7173
|
}
|
|
7082
|
-
function
|
|
7083
|
-
return
|
|
7174
|
+
function Ac(e) {
|
|
7175
|
+
return ys(e, wc(e));
|
|
7084
7176
|
}
|
|
7085
|
-
var
|
|
7086
|
-
function
|
|
7087
|
-
let t = N(e), n =
|
|
7177
|
+
var jc = [];
|
|
7178
|
+
function Mc(e) {
|
|
7179
|
+
let t = N(e), n = No((n) => e ? n && n !== jc && e && t.current && e.parentNode === t.current.parentNode ? n : As(e) : jc, [e]);
|
|
7088
7180
|
return k(() => {
|
|
7089
7181
|
t.current = e;
|
|
7090
7182
|
}, [e]), n;
|
|
7091
7183
|
}
|
|
7092
|
-
function
|
|
7184
|
+
function Nc(e) {
|
|
7093
7185
|
let [t, n] = P(null), r = N(e), i = D((e) => {
|
|
7094
|
-
let t =
|
|
7095
|
-
t && n((e) => e ? (e.set(t,
|
|
7186
|
+
let t = Ms(e.target);
|
|
7187
|
+
t && n((e) => e ? (e.set(t, Fs(t)), new Map(e)) : null);
|
|
7096
7188
|
}, []);
|
|
7097
7189
|
return k(() => {
|
|
7098
7190
|
let t = r.current;
|
|
7099
7191
|
if (e !== t) {
|
|
7100
7192
|
a(t);
|
|
7101
7193
|
let o = e.map((e) => {
|
|
7102
|
-
let t =
|
|
7103
|
-
return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t,
|
|
7194
|
+
let t = Ms(e);
|
|
7195
|
+
return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t, Fs(t)]) : null;
|
|
7104
7196
|
}).filter((e) => e != null);
|
|
7105
7197
|
n(o.length ? new Map(o) : null), r.current = e;
|
|
7106
7198
|
}
|
|
@@ -7109,24 +7201,24 @@ function Ac(e) {
|
|
|
7109
7201
|
};
|
|
7110
7202
|
function a(e) {
|
|
7111
7203
|
e.forEach((e) => {
|
|
7112
|
-
|
|
7204
|
+
Ms(e)?.removeEventListener("scroll", i);
|
|
7113
7205
|
});
|
|
7114
7206
|
}
|
|
7115
|
-
}, [i, e]), j(() => e.length ? t ? Array.from(t.values()).reduce((e, t) =>
|
|
7207
|
+
}, [i, e]), j(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => zo(e, t), cs) : Hs(e) : cs, [e, t]);
|
|
7116
7208
|
}
|
|
7117
|
-
function
|
|
7209
|
+
function Pc(e, t) {
|
|
7118
7210
|
t === void 0 && (t = []);
|
|
7119
7211
|
let n = N(null);
|
|
7120
7212
|
return k(() => {
|
|
7121
7213
|
n.current = null;
|
|
7122
7214
|
}, t), k(() => {
|
|
7123
|
-
let t = e !==
|
|
7215
|
+
let t = e !== cs;
|
|
7124
7216
|
t && !n.current && (n.current = e), !t && n.current && (n.current = null);
|
|
7125
|
-
}, [e]), n.current ?
|
|
7217
|
+
}, [e]), n.current ? Bo(e, n.current) : cs;
|
|
7126
7218
|
}
|
|
7127
|
-
function
|
|
7219
|
+
function Fc(e) {
|
|
7128
7220
|
k(() => {
|
|
7129
|
-
if (!
|
|
7221
|
+
if (!xo) return;
|
|
7130
7222
|
let t = e.map((e) => {
|
|
7131
7223
|
let { sensor: t } = e;
|
|
7132
7224
|
return t.setup == null ? void 0 : t.setup();
|
|
@@ -7139,7 +7231,7 @@ function Mc(e) {
|
|
|
7139
7231
|
return t;
|
|
7140
7232
|
}));
|
|
7141
7233
|
}
|
|
7142
|
-
function
|
|
7234
|
+
function Ic(e, t) {
|
|
7143
7235
|
return j(() => e.reduce((e, n) => {
|
|
7144
7236
|
let { eventName: r, handler: i } = n;
|
|
7145
7237
|
return e[r] = (e) => {
|
|
@@ -7147,30 +7239,30 @@ function Nc(e, t) {
|
|
|
7147
7239
|
}, e;
|
|
7148
7240
|
}, {}), [e, t]);
|
|
7149
7241
|
}
|
|
7150
|
-
function
|
|
7151
|
-
return j(() => e ?
|
|
7242
|
+
function Lc(e) {
|
|
7243
|
+
return j(() => e ? Ds(e) : null, [e]);
|
|
7152
7244
|
}
|
|
7153
|
-
var
|
|
7154
|
-
function
|
|
7155
|
-
t === void 0 && (t =
|
|
7156
|
-
let [n] = e, r =
|
|
7245
|
+
var Rc = [];
|
|
7246
|
+
function zc(e, t) {
|
|
7247
|
+
t === void 0 && (t = Ts);
|
|
7248
|
+
let [n] = e, r = Lc(n ? wo(n) : null), [i, a] = P(Rc);
|
|
7157
7249
|
function o() {
|
|
7158
|
-
a(() => e.length ? e.map((e) =>
|
|
7250
|
+
a(() => e.length ? e.map((e) => Ls(e) ? r : new qs(t(e), e)) : Rc);
|
|
7159
7251
|
}
|
|
7160
|
-
let s =
|
|
7161
|
-
return
|
|
7252
|
+
let s = Dc({ callback: o });
|
|
7253
|
+
return ko(() => {
|
|
7162
7254
|
s?.disconnect(), o(), e.forEach((e) => s?.observe(e));
|
|
7163
7255
|
}, [e]), i;
|
|
7164
7256
|
}
|
|
7165
|
-
function
|
|
7257
|
+
function Bc(e) {
|
|
7166
7258
|
if (!e) return null;
|
|
7167
7259
|
if (e.children.length > 1) return e;
|
|
7168
7260
|
let t = e.children[0];
|
|
7169
|
-
return
|
|
7261
|
+
return Eo(t) ? t : e;
|
|
7170
7262
|
}
|
|
7171
|
-
function
|
|
7172
|
-
let { measure: t } = e, [n, r] = P(null), i =
|
|
7173
|
-
for (let { target: n } of e) if (
|
|
7263
|
+
function Vc(e) {
|
|
7264
|
+
let { measure: t } = e, [n, r] = P(null), i = Dc({ callback: D((e) => {
|
|
7265
|
+
for (let { target: n } of e) if (Eo(n)) {
|
|
7174
7266
|
r((e) => {
|
|
7175
7267
|
let r = t(n);
|
|
7176
7268
|
return e ? {
|
|
@@ -7181,8 +7273,8 @@ function Rc(e) {
|
|
|
7181
7273
|
});
|
|
7182
7274
|
break;
|
|
7183
7275
|
}
|
|
7184
|
-
}, [t]) }), [a, o] =
|
|
7185
|
-
let n =
|
|
7276
|
+
}, [t]) }), [a, o] = Po(D((e) => {
|
|
7277
|
+
let n = Bc(e);
|
|
7186
7278
|
i?.disconnect(), n && i?.observe(n), r(n ? t(n) : null);
|
|
7187
7279
|
}, [t, i]));
|
|
7188
7280
|
return j(() => ({
|
|
@@ -7195,21 +7287,21 @@ function Rc(e) {
|
|
|
7195
7287
|
o
|
|
7196
7288
|
]);
|
|
7197
7289
|
}
|
|
7198
|
-
var
|
|
7199
|
-
sensor:
|
|
7290
|
+
var Hc = [{
|
|
7291
|
+
sensor: sc,
|
|
7200
7292
|
options: {}
|
|
7201
7293
|
}, {
|
|
7202
|
-
sensor:
|
|
7294
|
+
sensor: nc,
|
|
7203
7295
|
options: {}
|
|
7204
|
-
}],
|
|
7205
|
-
draggable: { measure:
|
|
7296
|
+
}], Uc = { current: {} }, Wc = {
|
|
7297
|
+
draggable: { measure: Es },
|
|
7206
7298
|
droppable: {
|
|
7207
|
-
measure:
|
|
7208
|
-
strategy:
|
|
7209
|
-
frequency:
|
|
7299
|
+
measure: Es,
|
|
7300
|
+
strategy: bc.WhileDragging,
|
|
7301
|
+
frequency: xc.Optimized
|
|
7210
7302
|
},
|
|
7211
|
-
dragOverlay: { measure:
|
|
7212
|
-
},
|
|
7303
|
+
dragOverlay: { measure: Ts }
|
|
7304
|
+
}, Gc = class extends Map {
|
|
7213
7305
|
get(e) {
|
|
7214
7306
|
return e == null ? void 0 : super.get(e) ?? void 0;
|
|
7215
7307
|
}
|
|
@@ -7225,7 +7317,7 @@ var zc = [{
|
|
|
7225
7317
|
getNodeFor(e) {
|
|
7226
7318
|
return this.get(e)?.node.current ?? void 0;
|
|
7227
7319
|
}
|
|
7228
|
-
},
|
|
7320
|
+
}, Kc = {
|
|
7229
7321
|
activatorEvent: null,
|
|
7230
7322
|
active: null,
|
|
7231
7323
|
activeNode: null,
|
|
@@ -7234,31 +7326,31 @@ var zc = [{
|
|
|
7234
7326
|
containerNodeRect: null,
|
|
7235
7327
|
draggableNodes: /*#__PURE__*/ new Map(),
|
|
7236
7328
|
droppableRects: /*#__PURE__*/ new Map(),
|
|
7237
|
-
droppableContainers: /*#__PURE__*/ new
|
|
7329
|
+
droppableContainers: /*#__PURE__*/ new Gc(),
|
|
7238
7330
|
over: null,
|
|
7239
7331
|
dragOverlay: {
|
|
7240
7332
|
nodeRef: { current: null },
|
|
7241
7333
|
rect: null,
|
|
7242
|
-
setRef:
|
|
7334
|
+
setRef: as
|
|
7243
7335
|
},
|
|
7244
7336
|
scrollableAncestors: [],
|
|
7245
7337
|
scrollableAncestorRects: [],
|
|
7246
|
-
measuringConfiguration:
|
|
7247
|
-
measureDroppableContainers:
|
|
7338
|
+
measuringConfiguration: Wc,
|
|
7339
|
+
measureDroppableContainers: as,
|
|
7248
7340
|
windowRect: null,
|
|
7249
7341
|
measuringScheduled: !1
|
|
7250
|
-
},
|
|
7342
|
+
}, qc = {
|
|
7251
7343
|
activatorEvent: null,
|
|
7252
7344
|
activators: [],
|
|
7253
7345
|
active: null,
|
|
7254
7346
|
activeNodeRect: null,
|
|
7255
7347
|
ariaDescribedById: { draggable: "" },
|
|
7256
|
-
dispatch:
|
|
7348
|
+
dispatch: as,
|
|
7257
7349
|
draggableNodes: /*#__PURE__*/ new Map(),
|
|
7258
7350
|
over: null,
|
|
7259
|
-
measureDroppableContainers:
|
|
7260
|
-
},
|
|
7261
|
-
function
|
|
7351
|
+
measureDroppableContainers: as
|
|
7352
|
+
}, Jc = /*#__PURE__*/ w(qc), Yc = /*#__PURE__*/ w(Kc);
|
|
7353
|
+
function Xc() {
|
|
7262
7354
|
return {
|
|
7263
7355
|
draggable: {
|
|
7264
7356
|
active: null,
|
|
@@ -7272,12 +7364,12 @@ function qc() {
|
|
|
7272
7364
|
y: 0
|
|
7273
7365
|
}
|
|
7274
7366
|
},
|
|
7275
|
-
droppable: { containers: new
|
|
7367
|
+
droppable: { containers: new Gc() }
|
|
7276
7368
|
};
|
|
7277
7369
|
}
|
|
7278
|
-
function
|
|
7370
|
+
function Zc(e, t) {
|
|
7279
7371
|
switch (t.type) {
|
|
7280
|
-
case
|
|
7372
|
+
case is.DragStart: return {
|
|
7281
7373
|
...e,
|
|
7282
7374
|
draggable: {
|
|
7283
7375
|
...e.draggable,
|
|
@@ -7285,7 +7377,7 @@ function Jc(e, t) {
|
|
|
7285
7377
|
active: t.active
|
|
7286
7378
|
}
|
|
7287
7379
|
};
|
|
7288
|
-
case
|
|
7380
|
+
case is.DragMove: return e.draggable.active == null ? e : {
|
|
7289
7381
|
...e,
|
|
7290
7382
|
draggable: {
|
|
7291
7383
|
...e.draggable,
|
|
@@ -7295,8 +7387,8 @@ function Jc(e, t) {
|
|
|
7295
7387
|
}
|
|
7296
7388
|
}
|
|
7297
7389
|
};
|
|
7298
|
-
case
|
|
7299
|
-
case
|
|
7390
|
+
case is.DragEnd:
|
|
7391
|
+
case is.DragCancel: return {
|
|
7300
7392
|
...e,
|
|
7301
7393
|
draggable: {
|
|
7302
7394
|
...e.draggable,
|
|
@@ -7311,8 +7403,8 @@ function Jc(e, t) {
|
|
|
7311
7403
|
}
|
|
7312
7404
|
}
|
|
7313
7405
|
};
|
|
7314
|
-
case
|
|
7315
|
-
let { element: n } = t, { id: r } = n, i = new
|
|
7406
|
+
case is.RegisterDroppable: {
|
|
7407
|
+
let { element: n } = t, { id: r } = n, i = new Gc(e.droppable.containers);
|
|
7316
7408
|
return i.set(r, n), {
|
|
7317
7409
|
...e,
|
|
7318
7410
|
droppable: {
|
|
@@ -7321,10 +7413,10 @@ function Jc(e, t) {
|
|
|
7321
7413
|
}
|
|
7322
7414
|
};
|
|
7323
7415
|
}
|
|
7324
|
-
case
|
|
7416
|
+
case is.SetDroppableDisabled: {
|
|
7325
7417
|
let { id: n, key: r, disabled: i } = t, a = e.droppable.containers.get(n);
|
|
7326
7418
|
if (!a || r !== a.key) return e;
|
|
7327
|
-
let o = new
|
|
7419
|
+
let o = new Gc(e.droppable.containers);
|
|
7328
7420
|
return o.set(n, {
|
|
7329
7421
|
...a,
|
|
7330
7422
|
disabled: i
|
|
@@ -7336,10 +7428,10 @@ function Jc(e, t) {
|
|
|
7336
7428
|
}
|
|
7337
7429
|
};
|
|
7338
7430
|
}
|
|
7339
|
-
case
|
|
7431
|
+
case is.UnregisterDroppable: {
|
|
7340
7432
|
let { id: n, key: r } = t, i = e.droppable.containers.get(n);
|
|
7341
7433
|
if (!i || r !== i.key) return e;
|
|
7342
|
-
let a = new
|
|
7434
|
+
let a = new Gc(e.droppable.containers);
|
|
7343
7435
|
return a.delete(n), {
|
|
7344
7436
|
...e,
|
|
7345
7437
|
droppable: {
|
|
@@ -7351,11 +7443,11 @@ function Jc(e, t) {
|
|
|
7351
7443
|
default: return e;
|
|
7352
7444
|
}
|
|
7353
7445
|
}
|
|
7354
|
-
function
|
|
7355
|
-
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = O(
|
|
7446
|
+
function Qc(e) {
|
|
7447
|
+
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = O(Jc), a = Fo(r), o = Fo(n?.id);
|
|
7356
7448
|
return k(() => {
|
|
7357
7449
|
if (!t && !r && a && o != null) {
|
|
7358
|
-
if (!
|
|
7450
|
+
if (!Ho(a) || document.activeElement === a.target) return;
|
|
7359
7451
|
let e = i.get(o);
|
|
7360
7452
|
if (!e) return;
|
|
7361
7453
|
let { activatorNode: t, node: n } = e;
|
|
@@ -7363,7 +7455,7 @@ function Yc(e) {
|
|
|
7363
7455
|
requestAnimationFrame(() => {
|
|
7364
7456
|
for (let e of [t.current, n.current]) {
|
|
7365
7457
|
if (!e) continue;
|
|
7366
|
-
let t =
|
|
7458
|
+
let t = qo(e);
|
|
7367
7459
|
if (t) {
|
|
7368
7460
|
t.focus();
|
|
7369
7461
|
break;
|
|
@@ -7379,25 +7471,25 @@ function Yc(e) {
|
|
|
7379
7471
|
a
|
|
7380
7472
|
]), null;
|
|
7381
7473
|
}
|
|
7382
|
-
function
|
|
7474
|
+
function $c(e, t) {
|
|
7383
7475
|
let { transform: n, ...r } = t;
|
|
7384
7476
|
return e != null && e.length ? e.reduce((e, t) => t({
|
|
7385
7477
|
transform: e,
|
|
7386
7478
|
...r
|
|
7387
7479
|
}), n) : n;
|
|
7388
7480
|
}
|
|
7389
|
-
function
|
|
7481
|
+
function el(e) {
|
|
7390
7482
|
return j(() => ({
|
|
7391
7483
|
draggable: {
|
|
7392
|
-
...
|
|
7484
|
+
...Wc.draggable,
|
|
7393
7485
|
...e?.draggable
|
|
7394
7486
|
},
|
|
7395
7487
|
droppable: {
|
|
7396
|
-
...
|
|
7488
|
+
...Wc.droppable,
|
|
7397
7489
|
...e?.droppable
|
|
7398
7490
|
},
|
|
7399
7491
|
dragOverlay: {
|
|
7400
|
-
...
|
|
7492
|
+
...Wc.dragOverlay,
|
|
7401
7493
|
...e?.dragOverlay
|
|
7402
7494
|
}
|
|
7403
7495
|
}), [
|
|
@@ -7406,12 +7498,12 @@ function Zc(e) {
|
|
|
7406
7498
|
e?.dragOverlay
|
|
7407
7499
|
]);
|
|
7408
7500
|
}
|
|
7409
|
-
function
|
|
7501
|
+
function tl(e) {
|
|
7410
7502
|
let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = N(!1), { x: o, y: s } = typeof i == "boolean" ? {
|
|
7411
7503
|
x: i,
|
|
7412
7504
|
y: i
|
|
7413
7505
|
} : i;
|
|
7414
|
-
|
|
7506
|
+
ko(() => {
|
|
7415
7507
|
if (!o && !s || !t) {
|
|
7416
7508
|
a.current = !1;
|
|
7417
7509
|
return;
|
|
@@ -7419,9 +7511,9 @@ function Qc(e) {
|
|
|
7419
7511
|
if (a.current || !r) return;
|
|
7420
7512
|
let e = t?.node.current;
|
|
7421
7513
|
if (!e || e.isConnected === !1) return;
|
|
7422
|
-
let i =
|
|
7514
|
+
let i = ys(n(e), r);
|
|
7423
7515
|
if (o || (i.x = 0), s || (i.y = 0), a.current = !0, Math.abs(i.x) > 0 || Math.abs(i.y) > 0) {
|
|
7424
|
-
let t =
|
|
7516
|
+
let t = js(e);
|
|
7425
7517
|
t && t.scrollBy({
|
|
7426
7518
|
top: i.y,
|
|
7427
7519
|
left: i.x
|
|
@@ -7435,34 +7527,34 @@ function Qc(e) {
|
|
|
7435
7527
|
n
|
|
7436
7528
|
]);
|
|
7437
7529
|
}
|
|
7438
|
-
var
|
|
7439
|
-
...
|
|
7530
|
+
var nl = /*#__PURE__*/ w({
|
|
7531
|
+
...cs,
|
|
7440
7532
|
scaleX: 1,
|
|
7441
7533
|
scaleY: 1
|
|
7442
|
-
}),
|
|
7534
|
+
}), rl;
|
|
7443
7535
|
(function(e) {
|
|
7444
7536
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
7445
|
-
})(
|
|
7446
|
-
var
|
|
7447
|
-
let { id: t, accessibility: n, autoScroll: r = !0, children: i, sensors: a =
|
|
7537
|
+
})(rl ||= {});
|
|
7538
|
+
var il = /*#__PURE__*/ E(function(e) {
|
|
7539
|
+
let { id: t, accessibility: n, autoScroll: r = !0, children: i, sensors: a = Hc, collisionDetection: o = _s, measuring: s, modifiers: c, ...l } = e, [u, d] = M(Zc, void 0, Xc), [f, p] = es(), [m, h] = P(rl.Uninitialized), g = m === rl.Initialized, { draggable: { active: _, nodes: v, translate: y }, droppable: { containers: b } } = u, x = _ == null ? null : v.get(_), C = N({
|
|
7448
7540
|
initial: null,
|
|
7449
7541
|
translated: null
|
|
7450
7542
|
}), w = j(() => _ == null ? null : {
|
|
7451
7543
|
id: _,
|
|
7452
|
-
data: x?.data ??
|
|
7544
|
+
data: x?.data ?? Uc,
|
|
7453
7545
|
rect: C
|
|
7454
|
-
}, [_, x]), T = N(null), [E, O] = P(null), [A, ee] = P(null), F =
|
|
7546
|
+
}, [_, x]), T = N(null), [E, O] = P(null), [A, ee] = P(null), F = Mo(l, Object.values(l)), I = Lo("DndDescribedBy", t), L = j(() => b.getEnabled(), [b]), R = el(s), { droppableRects: te, measureDroppableContainers: z, measuringScheduled: B } = Cc(L, {
|
|
7455
7547
|
dragging: g,
|
|
7456
7548
|
dependencies: [y.x, y.y],
|
|
7457
7549
|
config: R.droppable
|
|
7458
|
-
}), V =
|
|
7459
|
-
|
|
7550
|
+
}), V = vc(v, _), H = j(() => A ? Wo(A) : null, [A]), ne = De(), U = Tc(V, R.draggable.measure);
|
|
7551
|
+
tl({
|
|
7460
7552
|
activeNode: _ == null ? null : v.get(_),
|
|
7461
7553
|
config: ne.layoutShiftCompensation,
|
|
7462
7554
|
initialRect: U,
|
|
7463
7555
|
measure: R.draggable.measure
|
|
7464
7556
|
});
|
|
7465
|
-
let W =
|
|
7557
|
+
let W = kc(V, R.draggable.measure, U), G = kc(V ? V.parentElement : null), K = N({
|
|
7466
7558
|
activatorEvent: null,
|
|
7467
7559
|
active: null,
|
|
7468
7560
|
activeNode: V,
|
|
@@ -7476,7 +7568,7 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7476
7568
|
over: null,
|
|
7477
7569
|
scrollableAncestors: [],
|
|
7478
7570
|
scrollAdjustedTranslate: null
|
|
7479
|
-
}), q = b.getNodeFor(K.current.over?.id), ie =
|
|
7571
|
+
}), q = b.getNodeFor(K.current.over?.id), ie = Vc({ measure: R.dragOverlay.measure }), ae = ie.nodeRef.current ?? V, oe = g ? ie.rect ?? W : null, se = !!(ie.nodeRef.current && ie.rect), ce = Ac(se ? null : W), le = Lc(ae ? wo(ae) : null), ue = Mc(g ? q ?? V : null), de = zc(ue), fe = $c(c, {
|
|
7480
7572
|
transform: {
|
|
7481
7573
|
x: y.x - ce.x,
|
|
7482
7574
|
y: y.y - ce.y,
|
|
@@ -7493,13 +7585,13 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7493
7585
|
scrollableAncestors: ue,
|
|
7494
7586
|
scrollableAncestorRects: de,
|
|
7495
7587
|
windowRect: le
|
|
7496
|
-
}), pe = H ?
|
|
7588
|
+
}), pe = H ? zo(H, y) : null, me = Nc(ue), he = Pc(me), ge = Pc(me, [W]), _e = zo(fe, he), ve = oe ? xs(oe, fe) : null, J = w && ve ? o({
|
|
7497
7589
|
active: w,
|
|
7498
7590
|
collisionRect: ve,
|
|
7499
7591
|
droppableRects: te,
|
|
7500
7592
|
droppableContainers: L,
|
|
7501
7593
|
pointerCoordinates: pe
|
|
7502
|
-
}) : null, Y =
|
|
7594
|
+
}) : null, Y = ms(J, "id"), [ye, be] = P(null), xe = vs(se ? fe : zo(fe, ge), ye?.rect ?? null, W), Se = N(null), Ce = D((e, t) => {
|
|
7503
7595
|
let { sensor: n, options: r } = t;
|
|
7504
7596
|
if (T.current == null) return;
|
|
7505
7597
|
let i = v.get(T.current);
|
|
@@ -7545,8 +7637,8 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7545
7637
|
}
|
|
7546
7638
|
};
|
|
7547
7639
|
re(() => {
|
|
7548
|
-
r?.(i), h(
|
|
7549
|
-
type:
|
|
7640
|
+
r?.(i), h(rl.Initializing), d({
|
|
7641
|
+
type: is.DragStart,
|
|
7550
7642
|
initialCoordinates: e,
|
|
7551
7643
|
active: t
|
|
7552
7644
|
}), f({
|
|
@@ -7557,12 +7649,12 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7557
7649
|
},
|
|
7558
7650
|
onMove(e) {
|
|
7559
7651
|
d({
|
|
7560
|
-
type:
|
|
7652
|
+
type: is.DragMove,
|
|
7561
7653
|
coordinates: e
|
|
7562
7654
|
});
|
|
7563
7655
|
},
|
|
7564
|
-
onEnd: s(
|
|
7565
|
-
onCancel: s(
|
|
7656
|
+
onEnd: s(is.DragEnd),
|
|
7657
|
+
onCancel: s(is.DragCancel)
|
|
7566
7658
|
});
|
|
7567
7659
|
Se.current = o;
|
|
7568
7660
|
function s(e) {
|
|
@@ -7576,11 +7668,11 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7576
7668
|
collisions: n,
|
|
7577
7669
|
delta: i,
|
|
7578
7670
|
over: r
|
|
7579
|
-
}, e ===
|
|
7671
|
+
}, e === is.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = is.DragCancel);
|
|
7580
7672
|
}
|
|
7581
7673
|
T.current = null, re(() => {
|
|
7582
|
-
d({ type: e }), h(
|
|
7583
|
-
let t = e ===
|
|
7674
|
+
d({ type: e }), h(rl.Uninitialized), be(null), O(null), ee(null), Se.current = null;
|
|
7675
|
+
let t = e === is.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
7584
7676
|
if (o) {
|
|
7585
7677
|
let e = F.current[t];
|
|
7586
7678
|
e?.(o), f({
|
|
@@ -7591,14 +7683,14 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7591
7683
|
});
|
|
7592
7684
|
};
|
|
7593
7685
|
}
|
|
7594
|
-
}, [v]), we =
|
|
7686
|
+
}, [v]), we = yc(a, D((e, t) => (n, r) => {
|
|
7595
7687
|
let i = n.nativeEvent, a = v.get(r);
|
|
7596
7688
|
if (T.current !== null || !a || i.dndKit || i.defaultPrevented) return;
|
|
7597
7689
|
let o = { active: a };
|
|
7598
7690
|
e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, T.current = r, Ce(n, t));
|
|
7599
7691
|
}, [v, Ce]));
|
|
7600
|
-
|
|
7601
|
-
W && m ===
|
|
7692
|
+
Fc(a), ko(() => {
|
|
7693
|
+
W && m === rl.Initializing && h(rl.Initialized);
|
|
7602
7694
|
}, [W, m]), k(() => {
|
|
7603
7695
|
let { onDragMove: e } = F.current, { active: t, activatorEvent: n, collisions: r, over: i } = K.current;
|
|
7604
7696
|
if (!t || !n) return;
|
|
@@ -7642,7 +7734,7 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7642
7734
|
event: c
|
|
7643
7735
|
});
|
|
7644
7736
|
});
|
|
7645
|
-
}, [Y]),
|
|
7737
|
+
}, [Y]), ko(() => {
|
|
7646
7738
|
K.current = {
|
|
7647
7739
|
activatorEvent: A,
|
|
7648
7740
|
active: w,
|
|
@@ -7674,7 +7766,7 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7674
7766
|
ye,
|
|
7675
7767
|
ue,
|
|
7676
7768
|
_e
|
|
7677
|
-
]),
|
|
7769
|
+
]), hc({
|
|
7678
7770
|
...ne,
|
|
7679
7771
|
delta: y,
|
|
7680
7772
|
draggingRect: ve,
|
|
@@ -7739,7 +7831,7 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7739
7831
|
ye,
|
|
7740
7832
|
z
|
|
7741
7833
|
]);
|
|
7742
|
-
return S.createElement(
|
|
7834
|
+
return S.createElement(Qo.Provider, { value: p }, S.createElement(Jc.Provider, { value: Ee }, S.createElement(Yc.Provider, { value: Te }, S.createElement(nl.Provider, { value: xe }, i)), S.createElement(Qc, { disabled: n?.restoreFocus === !1 })), S.createElement(rs, {
|
|
7743
7835
|
...n,
|
|
7744
7836
|
hiddenTextDescribedById: I
|
|
7745
7837
|
}));
|
|
@@ -7750,10 +7842,10 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7750
7842
|
enabled: n
|
|
7751
7843
|
} : { enabled: n };
|
|
7752
7844
|
}
|
|
7753
|
-
}),
|
|
7754
|
-
function
|
|
7755
|
-
let { id: t, data: n, disabled: r = !1, attributes: i } = e, a =
|
|
7756
|
-
return
|
|
7845
|
+
}), al = /*#__PURE__*/ w(null), ol = "button", sl = "Draggable";
|
|
7846
|
+
function cl(e) {
|
|
7847
|
+
let { id: t, data: n, disabled: r = !1, attributes: i } = e, a = Lo(sl), { activators: o, activatorEvent: s, active: c, activeNodeRect: l, ariaDescribedById: u, draggableNodes: d, over: f } = O(Jc), { role: p = ol, roleDescription: m = "draggable", tabIndex: h = 0 } = i ?? {}, g = c?.id === t, _ = O(g ? nl : al), [v, y] = Po(), [b, x] = Po(), S = Ic(o, t), C = Mo(n);
|
|
7848
|
+
return ko(() => (d.set(t, {
|
|
7757
7849
|
id: t,
|
|
7758
7850
|
key: a,
|
|
7759
7851
|
node: v,
|
|
@@ -7770,7 +7862,7 @@ function al(e) {
|
|
|
7770
7862
|
role: p,
|
|
7771
7863
|
tabIndex: h,
|
|
7772
7864
|
"aria-disabled": r,
|
|
7773
|
-
"aria-pressed": g && p ===
|
|
7865
|
+
"aria-pressed": g && p === ol ? !0 : void 0,
|
|
7774
7866
|
"aria-roledescription": m,
|
|
7775
7867
|
"aria-describedby": u.draggable
|
|
7776
7868
|
}), [
|
|
@@ -7790,15 +7882,15 @@ function al(e) {
|
|
|
7790
7882
|
transform: _
|
|
7791
7883
|
};
|
|
7792
7884
|
}
|
|
7793
|
-
function
|
|
7794
|
-
return O(
|
|
7885
|
+
function ll() {
|
|
7886
|
+
return O(Yc);
|
|
7795
7887
|
}
|
|
7796
|
-
var
|
|
7797
|
-
function
|
|
7798
|
-
let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a =
|
|
7799
|
-
...
|
|
7888
|
+
var ul = "Droppable", dl = { timeout: 25 };
|
|
7889
|
+
function fl(e) {
|
|
7890
|
+
let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a = Lo(ul), { active: o, dispatch: s, over: c, measureDroppableContainers: l } = O(Jc), u = N({ disabled: n }), d = N(!1), f = N(null), p = N(null), { disabled: m, updateMeasurementsFor: h, timeout: g } = {
|
|
7891
|
+
...dl,
|
|
7800
7892
|
...i
|
|
7801
|
-
}, _ =
|
|
7893
|
+
}, _ = Mo(h ?? r), v = Dc({
|
|
7802
7894
|
callback: D(() => {
|
|
7803
7895
|
if (!d.current) {
|
|
7804
7896
|
d.current = !0;
|
|
@@ -7809,13 +7901,13 @@ function ll(e) {
|
|
|
7809
7901
|
}, g);
|
|
7810
7902
|
}, [g]),
|
|
7811
7903
|
disabled: m || !o
|
|
7812
|
-
}), [y, b] =
|
|
7904
|
+
}), [y, b] = Po(D((e, t) => {
|
|
7813
7905
|
v && (t && (v.unobserve(t), d.current = !1), e && v.observe(e));
|
|
7814
|
-
}, [v])), x =
|
|
7906
|
+
}, [v])), x = Mo(t);
|
|
7815
7907
|
return k(() => {
|
|
7816
7908
|
!v || !y.current || (v.disconnect(), d.current = !1, v.observe(y.current));
|
|
7817
7909
|
}, [y, v]), k(() => (s({
|
|
7818
|
-
type:
|
|
7910
|
+
type: is.RegisterDroppable,
|
|
7819
7911
|
element: {
|
|
7820
7912
|
id: r,
|
|
7821
7913
|
key: a,
|
|
@@ -7825,12 +7917,12 @@ function ll(e) {
|
|
|
7825
7917
|
data: x
|
|
7826
7918
|
}
|
|
7827
7919
|
}), () => s({
|
|
7828
|
-
type:
|
|
7920
|
+
type: is.UnregisterDroppable,
|
|
7829
7921
|
key: a,
|
|
7830
7922
|
id: r
|
|
7831
7923
|
})), [r]), k(() => {
|
|
7832
7924
|
n !== u.current.disabled && (s({
|
|
7833
|
-
type:
|
|
7925
|
+
type: is.SetDroppableDisabled,
|
|
7834
7926
|
id: r,
|
|
7835
7927
|
key: a,
|
|
7836
7928
|
disabled: n
|
|
@@ -7849,9 +7941,9 @@ function ll(e) {
|
|
|
7849
7941
|
setNodeRef: b
|
|
7850
7942
|
};
|
|
7851
7943
|
}
|
|
7852
|
-
function
|
|
7853
|
-
let { animation: t, children: n } = e, [r, i] = P(null), [a, o] = P(null), s =
|
|
7854
|
-
return !n && !r && s && i(s),
|
|
7944
|
+
function pl(e) {
|
|
7945
|
+
let { animation: t, children: n } = e, [r, i] = P(null), [a, o] = P(null), s = Fo(n);
|
|
7946
|
+
return !n && !r && s && i(s), ko(() => {
|
|
7855
7947
|
if (!a) return;
|
|
7856
7948
|
let e = r?.key, n = r?.props.id;
|
|
7857
7949
|
if (e == null || n == null) {
|
|
@@ -7867,34 +7959,34 @@ function ul(e) {
|
|
|
7867
7959
|
a
|
|
7868
7960
|
]), S.createElement(S.Fragment, null, n, r ? C(r, { ref: o }) : null);
|
|
7869
7961
|
}
|
|
7870
|
-
var
|
|
7962
|
+
var ml = {
|
|
7871
7963
|
x: 0,
|
|
7872
7964
|
y: 0,
|
|
7873
7965
|
scaleX: 1,
|
|
7874
7966
|
scaleY: 1
|
|
7875
7967
|
};
|
|
7876
|
-
function
|
|
7968
|
+
function hl(e) {
|
|
7877
7969
|
let { children: t } = e;
|
|
7878
|
-
return S.createElement(
|
|
7970
|
+
return S.createElement(Jc.Provider, { value: qc }, S.createElement(nl.Provider, { value: ml }, t));
|
|
7879
7971
|
}
|
|
7880
|
-
var
|
|
7972
|
+
var gl = {
|
|
7881
7973
|
position: "fixed",
|
|
7882
7974
|
touchAction: "none"
|
|
7883
|
-
},
|
|
7884
|
-
let { as: n, activatorEvent: r, adjustScale: i, children: a, className: o, rect: s, style: c, transform: l, transition: u =
|
|
7975
|
+
}, _l = (e) => Ho(e) ? "transform 250ms ease" : void 0, vl = /*#__PURE__*/ T((e, t) => {
|
|
7976
|
+
let { as: n, activatorEvent: r, adjustScale: i, children: a, className: o, rect: s, style: c, transform: l, transition: u = _l } = e;
|
|
7885
7977
|
if (!s) return null;
|
|
7886
7978
|
let d = i ? l : {
|
|
7887
7979
|
...l,
|
|
7888
7980
|
scaleX: 1,
|
|
7889
7981
|
scaleY: 1
|
|
7890
7982
|
}, f = {
|
|
7891
|
-
...
|
|
7983
|
+
...gl,
|
|
7892
7984
|
width: s.width,
|
|
7893
7985
|
height: s.height,
|
|
7894
7986
|
top: s.top,
|
|
7895
7987
|
left: s.left,
|
|
7896
|
-
transform:
|
|
7897
|
-
transformOrigin: i && r ?
|
|
7988
|
+
transform: Go.Transform.toString(d),
|
|
7989
|
+
transformOrigin: i && r ? us(r, s) : void 0,
|
|
7898
7990
|
transition: typeof u == "function" ? u(r) : u,
|
|
7899
7991
|
...c
|
|
7900
7992
|
};
|
|
@@ -7903,12 +7995,12 @@ var pl = {
|
|
|
7903
7995
|
style: f,
|
|
7904
7996
|
ref: t
|
|
7905
7997
|
}, a);
|
|
7906
|
-
}),
|
|
7998
|
+
}), yl = {
|
|
7907
7999
|
duration: 250,
|
|
7908
8000
|
easing: "ease",
|
|
7909
8001
|
keyframes: (e) => {
|
|
7910
8002
|
let { transform: { initial: t, final: n } } = e;
|
|
7911
|
-
return [{ transform:
|
|
8003
|
+
return [{ transform: Go.Transform.toString(t) }, { transform: Go.Transform.toString(n) }];
|
|
7912
8004
|
},
|
|
7913
8005
|
sideEffects: /*#__PURE__*/ ((e) => (t) => {
|
|
7914
8006
|
let { active: n, dragOverlay: r } = t, i = {}, { styles: a, className: o } = e;
|
|
@@ -7920,20 +8012,20 @@ var pl = {
|
|
|
7920
8012
|
};
|
|
7921
8013
|
})({ styles: { active: { opacity: "0" } } })
|
|
7922
8014
|
};
|
|
7923
|
-
function
|
|
8015
|
+
function bl(e) {
|
|
7924
8016
|
let { config: t, draggableNodes: n, droppableContainers: r, measuringConfiguration: i } = e;
|
|
7925
|
-
return
|
|
8017
|
+
return Ao((e, a) => {
|
|
7926
8018
|
if (t === null) return;
|
|
7927
8019
|
let o = n.get(e);
|
|
7928
8020
|
if (!o) return;
|
|
7929
8021
|
let s = o.node.current;
|
|
7930
8022
|
if (!s) return;
|
|
7931
|
-
let c =
|
|
8023
|
+
let c = Bc(a);
|
|
7932
8024
|
if (!c) return;
|
|
7933
|
-
let { transform: l } =
|
|
8025
|
+
let { transform: l } = wo(a).getComputedStyle(a), u = Ss(l);
|
|
7934
8026
|
if (!u) return;
|
|
7935
|
-
let d = typeof t == "function" ? t :
|
|
7936
|
-
return
|
|
8027
|
+
let d = typeof t == "function" ? t : xl(t);
|
|
8028
|
+
return Gs(s, i.draggable.measure), d({
|
|
7937
8029
|
active: {
|
|
7938
8030
|
id: e,
|
|
7939
8031
|
data: o.data,
|
|
@@ -7951,9 +8043,9 @@ function _l(e) {
|
|
|
7951
8043
|
});
|
|
7952
8044
|
});
|
|
7953
8045
|
}
|
|
7954
|
-
function
|
|
8046
|
+
function xl(e) {
|
|
7955
8047
|
let { duration: t, easing: n, sideEffects: r, keyframes: i } = {
|
|
7956
|
-
...
|
|
8048
|
+
...yl,
|
|
7957
8049
|
...e
|
|
7958
8050
|
};
|
|
7959
8051
|
return (e) => {
|
|
@@ -7995,14 +8087,14 @@ function vl(e) {
|
|
|
7995
8087
|
});
|
|
7996
8088
|
};
|
|
7997
8089
|
}
|
|
7998
|
-
var
|
|
7999
|
-
function
|
|
8090
|
+
var Sl = 0;
|
|
8091
|
+
function Cl(e) {
|
|
8000
8092
|
return j(() => {
|
|
8001
|
-
if (e != null) return
|
|
8093
|
+
if (e != null) return Sl++, Sl;
|
|
8002
8094
|
}, [e]);
|
|
8003
8095
|
}
|
|
8004
|
-
var
|
|
8005
|
-
let { adjustScale: t = !1, children: n, dropAnimation: r, style: i, transition: a, modifiers: o, wrapperElement: s = "div", className: c, zIndex: l = 999 } = e, { activatorEvent: u, active: d, activeNodeRect: f, containerNodeRect: p, draggableNodes: m, droppableContainers: h, dragOverlay: g, over: _, measuringConfiguration: v, scrollableAncestors: y, scrollableAncestorRects: b, windowRect: x } =
|
|
8096
|
+
var wl = /*#__PURE__*/ S.memo((e) => {
|
|
8097
|
+
let { adjustScale: t = !1, children: n, dropAnimation: r, style: i, transition: a, modifiers: o, wrapperElement: s = "div", className: c, zIndex: l = 999 } = e, { activatorEvent: u, active: d, activeNodeRect: f, containerNodeRect: p, draggableNodes: m, droppableContainers: h, dragOverlay: g, over: _, measuringConfiguration: v, scrollableAncestors: y, scrollableAncestorRects: b, windowRect: x } = ll(), C = O(nl), w = Cl(d?.id), T = $c(o, {
|
|
8006
8098
|
activatorEvent: u,
|
|
8007
8099
|
active: d,
|
|
8008
8100
|
activeNodeRect: f,
|
|
@@ -8014,13 +8106,13 @@ var xl = /*#__PURE__*/ S.memo((e) => {
|
|
|
8014
8106
|
scrollableAncestorRects: b,
|
|
8015
8107
|
transform: C,
|
|
8016
8108
|
windowRect: x
|
|
8017
|
-
}), E =
|
|
8109
|
+
}), E = wc(f), D = bl({
|
|
8018
8110
|
config: r,
|
|
8019
8111
|
draggableNodes: m,
|
|
8020
8112
|
droppableContainers: h,
|
|
8021
8113
|
measuringConfiguration: v
|
|
8022
8114
|
}), k = E ? g.setRef : void 0;
|
|
8023
|
-
return S.createElement(
|
|
8115
|
+
return S.createElement(hl, null, S.createElement(pl, { animation: D }, d && w ? S.createElement(vl, {
|
|
8024
8116
|
key: w,
|
|
8025
8117
|
id: d.id,
|
|
8026
8118
|
ref: k,
|
|
@@ -8039,76 +8131,76 @@ var xl = /*#__PURE__*/ S.memo((e) => {
|
|
|
8039
8131
|
});
|
|
8040
8132
|
//#endregion
|
|
8041
8133
|
//#region ../../node_modules/.pnpm/@dnd-kit+sortable@10.0.0_@dnd-kit+core@6.3.1_react-dom@19.2.7_react@19.2.7__react@19.2.7__react@19.2.7/node_modules/@dnd-kit/sortable/dist/sortable.esm.js
|
|
8042
|
-
function
|
|
8134
|
+
function Tl(e, t, n) {
|
|
8043
8135
|
let r = e.slice();
|
|
8044
8136
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
8045
8137
|
}
|
|
8046
|
-
function
|
|
8138
|
+
function El(e, t) {
|
|
8047
8139
|
return e.reduce((e, n, r) => {
|
|
8048
8140
|
let i = t.get(n);
|
|
8049
8141
|
return i && (e[r] = i), e;
|
|
8050
8142
|
}, Array(e.length));
|
|
8051
8143
|
}
|
|
8052
|
-
function
|
|
8144
|
+
function Dl(e) {
|
|
8053
8145
|
return e !== null && e >= 0;
|
|
8054
8146
|
}
|
|
8055
|
-
function
|
|
8147
|
+
function Ol(e, t) {
|
|
8056
8148
|
if (e === t) return !0;
|
|
8057
8149
|
if (e.length !== t.length) return !1;
|
|
8058
8150
|
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
8059
8151
|
return !0;
|
|
8060
8152
|
}
|
|
8061
|
-
function
|
|
8153
|
+
function kl(e) {
|
|
8062
8154
|
return typeof e == "boolean" ? {
|
|
8063
8155
|
draggable: e,
|
|
8064
8156
|
droppable: e
|
|
8065
8157
|
} : e;
|
|
8066
8158
|
}
|
|
8067
|
-
var
|
|
8159
|
+
var Al = {
|
|
8068
8160
|
scaleX: 1,
|
|
8069
8161
|
scaleY: 1
|
|
8070
|
-
},
|
|
8162
|
+
}, jl = (e) => {
|
|
8071
8163
|
let { rects: t, activeNodeRect: n, activeIndex: r, overIndex: i, index: a } = e, o = t[r] ?? n;
|
|
8072
8164
|
if (!o) return null;
|
|
8073
|
-
let s =
|
|
8165
|
+
let s = Ml(t, a, r);
|
|
8074
8166
|
if (a === r) {
|
|
8075
8167
|
let e = t[i];
|
|
8076
8168
|
return e ? {
|
|
8077
8169
|
x: r < i ? e.left + e.width - (o.left + o.width) : e.left - o.left,
|
|
8078
8170
|
y: 0,
|
|
8079
|
-
...
|
|
8171
|
+
...Al
|
|
8080
8172
|
} : null;
|
|
8081
8173
|
}
|
|
8082
8174
|
return a > r && a <= i ? {
|
|
8083
8175
|
x: -o.width - s,
|
|
8084
8176
|
y: 0,
|
|
8085
|
-
...
|
|
8177
|
+
...Al
|
|
8086
8178
|
} : a < r && a >= i ? {
|
|
8087
8179
|
x: o.width + s,
|
|
8088
8180
|
y: 0,
|
|
8089
|
-
...
|
|
8181
|
+
...Al
|
|
8090
8182
|
} : {
|
|
8091
8183
|
x: 0,
|
|
8092
8184
|
y: 0,
|
|
8093
|
-
...
|
|
8185
|
+
...Al
|
|
8094
8186
|
};
|
|
8095
8187
|
};
|
|
8096
|
-
function
|
|
8188
|
+
function Ml(e, t, n) {
|
|
8097
8189
|
let r = e[t], i = e[t - 1], a = e[t + 1];
|
|
8098
8190
|
return !r || !i && !a ? 0 : n < t ? i ? r.left - (i.left + i.width) : a.left - (r.left + r.width) : a ? a.left - (r.left + r.width) : r.left - (i.left + i.width);
|
|
8099
8191
|
}
|
|
8100
|
-
var
|
|
8101
|
-
let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a =
|
|
8192
|
+
var Nl = (e) => {
|
|
8193
|
+
let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = Tl(t, r, n), o = t[i], s = a[i];
|
|
8102
8194
|
return !s || !o ? null : {
|
|
8103
8195
|
x: s.left - o.left,
|
|
8104
8196
|
y: s.top - o.top,
|
|
8105
8197
|
scaleX: s.width / o.width,
|
|
8106
8198
|
scaleY: s.height / o.height
|
|
8107
8199
|
};
|
|
8108
|
-
},
|
|
8200
|
+
}, Pl = {
|
|
8109
8201
|
scaleX: 1,
|
|
8110
8202
|
scaleY: 1
|
|
8111
|
-
},
|
|
8203
|
+
}, Fl = (e) => {
|
|
8112
8204
|
let { activeIndex: t, activeNodeRect: n, index: r, rects: i, overIndex: a } = e, o = i[t] ?? n;
|
|
8113
8205
|
if (!o) return null;
|
|
8114
8206
|
if (r === t) {
|
|
@@ -8116,45 +8208,45 @@ var Al = (e) => {
|
|
|
8116
8208
|
return e ? {
|
|
8117
8209
|
x: 0,
|
|
8118
8210
|
y: t < a ? e.top + e.height - (o.top + o.height) : e.top - o.top,
|
|
8119
|
-
...
|
|
8211
|
+
...Pl
|
|
8120
8212
|
} : null;
|
|
8121
8213
|
}
|
|
8122
|
-
let s =
|
|
8214
|
+
let s = Il(i, r, t);
|
|
8123
8215
|
return r > t && r <= a ? {
|
|
8124
8216
|
x: 0,
|
|
8125
8217
|
y: -o.height - s,
|
|
8126
|
-
...
|
|
8218
|
+
...Pl
|
|
8127
8219
|
} : r < t && r >= a ? {
|
|
8128
8220
|
x: 0,
|
|
8129
8221
|
y: o.height + s,
|
|
8130
|
-
...
|
|
8222
|
+
...Pl
|
|
8131
8223
|
} : {
|
|
8132
8224
|
x: 0,
|
|
8133
8225
|
y: 0,
|
|
8134
|
-
...
|
|
8226
|
+
...Pl
|
|
8135
8227
|
};
|
|
8136
8228
|
};
|
|
8137
|
-
function
|
|
8229
|
+
function Il(e, t, n) {
|
|
8138
8230
|
let r = e[t], i = e[t - 1], a = e[t + 1];
|
|
8139
8231
|
return r ? n < t ? i ? r.top - (i.top + i.height) : a ? a.top - (r.top + r.height) : 0 : a ? a.top - (r.top + r.height) : i ? r.top - (i.top + i.height) : 0 : 0;
|
|
8140
8232
|
}
|
|
8141
|
-
var
|
|
8233
|
+
var Ll = "Sortable", Rl = /*#__PURE__*/ S.createContext({
|
|
8142
8234
|
activeIndex: -1,
|
|
8143
|
-
containerId:
|
|
8235
|
+
containerId: Ll,
|
|
8144
8236
|
disableTransforms: !1,
|
|
8145
8237
|
items: [],
|
|
8146
8238
|
overIndex: -1,
|
|
8147
8239
|
useDragOverlay: !1,
|
|
8148
8240
|
sortedRects: [],
|
|
8149
|
-
strategy:
|
|
8241
|
+
strategy: Nl,
|
|
8150
8242
|
disabled: {
|
|
8151
8243
|
draggable: !1,
|
|
8152
8244
|
droppable: !1
|
|
8153
8245
|
}
|
|
8154
8246
|
});
|
|
8155
|
-
function
|
|
8156
|
-
let { children: t, id: n, items: r, strategy: i =
|
|
8157
|
-
|
|
8247
|
+
function zl(e) {
|
|
8248
|
+
let { children: t, id: n, items: r, strategy: i = Nl, disabled: a = !1 } = e, { active: o, dragOverlay: s, droppableRects: c, over: l, measureDroppableContainers: u } = ll(), d = Lo(Ll, n), f = s.rect !== null, p = j(() => r.map((e) => typeof e == "object" && "id" in e ? e.id : e), [r]), m = o != null, h = o ? p.indexOf(o.id) : -1, g = l ? p.indexOf(l.id) : -1, _ = N(p), v = !Ol(p, _.current), y = g !== -1 && h === -1 || v, b = kl(a);
|
|
8249
|
+
ko(() => {
|
|
8158
8250
|
v && m && u(p);
|
|
8159
8251
|
}, [
|
|
8160
8252
|
v,
|
|
@@ -8172,7 +8264,7 @@ function Il(e) {
|
|
|
8172
8264
|
items: p,
|
|
8173
8265
|
overIndex: g,
|
|
8174
8266
|
useDragOverlay: f,
|
|
8175
|
-
sortedRects:
|
|
8267
|
+
sortedRects: El(p, c),
|
|
8176
8268
|
strategy: i
|
|
8177
8269
|
}), [
|
|
8178
8270
|
h,
|
|
@@ -8186,29 +8278,29 @@ function Il(e) {
|
|
|
8186
8278
|
f,
|
|
8187
8279
|
i
|
|
8188
8280
|
]);
|
|
8189
|
-
return S.createElement(
|
|
8281
|
+
return S.createElement(Rl.Provider, { value: x }, t);
|
|
8190
8282
|
}
|
|
8191
|
-
var
|
|
8283
|
+
var Bl = (e) => {
|
|
8192
8284
|
let { id: t, items: n, activeIndex: r, overIndex: i } = e;
|
|
8193
|
-
return
|
|
8194
|
-
},
|
|
8285
|
+
return Tl(n, r, i).indexOf(t);
|
|
8286
|
+
}, Vl = (e) => {
|
|
8195
8287
|
let { containerId: t, isSorting: n, wasDragging: r, index: i, items: a, newIndex: o, previousItems: s, previousContainerId: c, transition: l } = e;
|
|
8196
8288
|
return !l || !r || s !== a && i === o ? !1 : n ? !0 : o !== i && t === c;
|
|
8197
|
-
},
|
|
8289
|
+
}, Hl = {
|
|
8198
8290
|
duration: 200,
|
|
8199
8291
|
easing: "ease"
|
|
8200
|
-
},
|
|
8201
|
-
property:
|
|
8292
|
+
}, Ul = "transform", Wl = /*#__PURE__*/ Go.Transition.toString({
|
|
8293
|
+
property: Ul,
|
|
8202
8294
|
duration: 0,
|
|
8203
8295
|
easing: "linear"
|
|
8204
|
-
}),
|
|
8205
|
-
function
|
|
8296
|
+
}), Gl = { roleDescription: "sortable" };
|
|
8297
|
+
function Kl(e) {
|
|
8206
8298
|
let { disabled: t, index: n, node: r, rect: i } = e, [a, o] = P(null), s = N(n);
|
|
8207
|
-
return
|
|
8299
|
+
return ko(() => {
|
|
8208
8300
|
if (!t && n !== s.current && r.current) {
|
|
8209
8301
|
let e = i.current;
|
|
8210
8302
|
if (e) {
|
|
8211
|
-
let t =
|
|
8303
|
+
let t = Ts(r.current, { ignoreTransform: !0 }), n = {
|
|
8212
8304
|
x: e.left - t.left,
|
|
8213
8305
|
y: e.top - t.top,
|
|
8214
8306
|
scaleX: e.width / t.width,
|
|
@@ -8227,8 +8319,8 @@ function Ul(e) {
|
|
|
8227
8319
|
a && o(null);
|
|
8228
8320
|
}, [a]), a;
|
|
8229
8321
|
}
|
|
8230
|
-
function
|
|
8231
|
-
let { animateLayoutChanges: t =
|
|
8322
|
+
function ql(e) {
|
|
8323
|
+
let { animateLayoutChanges: t = Vl, attributes: n, disabled: r, data: i, getNewIndex: a = Bl, id: o, strategy: s, resizeObserverConfig: c, transition: l = Hl } = e, { items: u, containerId: d, activeIndex: f, disabled: p, disableTransforms: m, sortedRects: h, overIndex: g, useDragOverlay: _, strategy: v } = O(Rl), y = Jl(r, p), b = u.indexOf(o), x = j(() => ({
|
|
8232
8324
|
sortable: {
|
|
8233
8325
|
containerId: d,
|
|
8234
8326
|
index: b,
|
|
@@ -8240,7 +8332,7 @@ function Wl(e) {
|
|
|
8240
8332
|
i,
|
|
8241
8333
|
b,
|
|
8242
8334
|
u
|
|
8243
|
-
]), S = j(() => u.slice(u.indexOf(o)), [u, o]), { rect: C, node: w, isOver: T, setNodeRef: E } =
|
|
8335
|
+
]), S = j(() => u.slice(u.indexOf(o)), [u, o]), { rect: C, node: w, isOver: T, setNodeRef: E } = fl({
|
|
8244
8336
|
id: o,
|
|
8245
8337
|
data: x,
|
|
8246
8338
|
disabled: y.droppable,
|
|
@@ -8248,21 +8340,21 @@ function Wl(e) {
|
|
|
8248
8340
|
updateMeasurementsFor: S,
|
|
8249
8341
|
...c
|
|
8250
8342
|
}
|
|
8251
|
-
}), { active: D, activatorEvent: A, activeNodeRect: ee, attributes: M, setNodeRef: P, listeners: F, isDragging: I, over: L, setActivatorNodeRef: R, transform: te } =
|
|
8343
|
+
}), { active: D, activatorEvent: A, activeNodeRect: ee, attributes: M, setNodeRef: P, listeners: F, isDragging: I, over: L, setActivatorNodeRef: R, transform: te } = cl({
|
|
8252
8344
|
id: o,
|
|
8253
8345
|
data: x,
|
|
8254
8346
|
attributes: {
|
|
8255
|
-
...
|
|
8347
|
+
...Gl,
|
|
8256
8348
|
...n
|
|
8257
8349
|
},
|
|
8258
8350
|
disabled: y.draggable
|
|
8259
|
-
}), z =
|
|
8351
|
+
}), z = bo(E, P), B = !!D, V = B && !m && Dl(f) && Dl(g), H = !_ && I, ne = V ? (H && V ? te : null) ?? (s ?? v)({
|
|
8260
8352
|
rects: h,
|
|
8261
8353
|
activeNodeRect: ee,
|
|
8262
8354
|
activeIndex: f,
|
|
8263
8355
|
overIndex: g,
|
|
8264
8356
|
index: b
|
|
8265
|
-
}) : null, U =
|
|
8357
|
+
}) : null, U = Dl(f) && Dl(g) ? a({
|
|
8266
8358
|
id: o,
|
|
8267
8359
|
items: u,
|
|
8268
8360
|
activeIndex: f,
|
|
@@ -8285,7 +8377,7 @@ function Wl(e) {
|
|
|
8285
8377
|
previousContainerId: G.current.containerId,
|
|
8286
8378
|
transition: l,
|
|
8287
8379
|
wasDragging: G.current.activeId != null
|
|
8288
|
-
}), q =
|
|
8380
|
+
}), q = Kl({
|
|
8289
8381
|
disabled: !K,
|
|
8290
8382
|
index: b,
|
|
8291
8383
|
node: w,
|
|
@@ -8332,14 +8424,14 @@ function Wl(e) {
|
|
|
8332
8424
|
transition: ie()
|
|
8333
8425
|
};
|
|
8334
8426
|
function ie() {
|
|
8335
|
-
if (q || re && G.current.newIndex === b) return
|
|
8336
|
-
if (!(H && !
|
|
8427
|
+
if (q || re && G.current.newIndex === b) return Wl;
|
|
8428
|
+
if (!(H && !Ho(A) || !l) && (B || K)) return Go.Transition.toString({
|
|
8337
8429
|
...l,
|
|
8338
|
-
property:
|
|
8430
|
+
property: Ul
|
|
8339
8431
|
});
|
|
8340
8432
|
}
|
|
8341
8433
|
}
|
|
8342
|
-
function
|
|
8434
|
+
function Jl(e, t) {
|
|
8343
8435
|
return typeof e == "boolean" ? {
|
|
8344
8436
|
draggable: e,
|
|
8345
8437
|
droppable: !1
|
|
@@ -8348,19 +8440,19 @@ function Gl(e, t) {
|
|
|
8348
8440
|
droppable: e?.droppable ?? t.droppable
|
|
8349
8441
|
};
|
|
8350
8442
|
}
|
|
8351
|
-
function
|
|
8443
|
+
function Yl(e) {
|
|
8352
8444
|
if (!e) return !1;
|
|
8353
8445
|
let t = e.data.current;
|
|
8354
8446
|
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
8355
8447
|
}
|
|
8356
|
-
var
|
|
8448
|
+
var Xl = [
|
|
8357
8449
|
$.Down,
|
|
8358
8450
|
$.Right,
|
|
8359
8451
|
$.Up,
|
|
8360
8452
|
$.Left
|
|
8361
|
-
],
|
|
8453
|
+
], Zl = (e, t) => {
|
|
8362
8454
|
let { context: { active: n, collisionRect: r, droppableRects: i, droppableContainers: a, over: o, scrollableAncestors: s } } = t;
|
|
8363
|
-
if (
|
|
8455
|
+
if (Xl.includes(e.code)) {
|
|
8364
8456
|
if (e.preventDefault(), !n || !r) return;
|
|
8365
8457
|
let t = [];
|
|
8366
8458
|
a.getEnabled().forEach((n) => {
|
|
@@ -8381,17 +8473,17 @@ var ql = [
|
|
|
8381
8473
|
break;
|
|
8382
8474
|
}
|
|
8383
8475
|
});
|
|
8384
|
-
let c =
|
|
8476
|
+
let c = hs({
|
|
8385
8477
|
active: n,
|
|
8386
8478
|
collisionRect: r,
|
|
8387
8479
|
droppableRects: i,
|
|
8388
8480
|
droppableContainers: t,
|
|
8389
8481
|
pointerCoordinates: null
|
|
8390
|
-
}), l =
|
|
8482
|
+
}), l = ms(c, "id");
|
|
8391
8483
|
if (l === o?.id && c.length > 1 && (l = c[1].id), l != null) {
|
|
8392
8484
|
let e = a.get(n.id), t = a.get(l), o = t ? i.get(t.id) : null, c = t?.node.current;
|
|
8393
8485
|
if (c && o && e && t) {
|
|
8394
|
-
let n =
|
|
8486
|
+
let n = As(c).some((e, t) => s[t] !== e), i = Ql(e, t), a = $l(e, t), l = n || !i ? {
|
|
8395
8487
|
x: 0,
|
|
8396
8488
|
y: 0
|
|
8397
8489
|
} : {
|
|
@@ -8401,31 +8493,31 @@ var ql = [
|
|
|
8401
8493
|
x: o.left,
|
|
8402
8494
|
y: o.top
|
|
8403
8495
|
};
|
|
8404
|
-
return l.x && l.y ? u :
|
|
8496
|
+
return l.x && l.y ? u : Bo(u, l);
|
|
8405
8497
|
}
|
|
8406
8498
|
}
|
|
8407
8499
|
}
|
|
8408
8500
|
};
|
|
8409
|
-
function
|
|
8410
|
-
return !
|
|
8501
|
+
function Ql(e, t) {
|
|
8502
|
+
return !Yl(e) || !Yl(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
8411
8503
|
}
|
|
8412
|
-
function
|
|
8413
|
-
return !
|
|
8504
|
+
function $l(e, t) {
|
|
8505
|
+
return !Yl(e) || !Yl(t) || !Ql(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
|
|
8414
8506
|
}
|
|
8415
8507
|
//#endregion
|
|
8416
8508
|
//#region src/components/Kanban/Kanban.tsx
|
|
8417
|
-
var
|
|
8418
|
-
function
|
|
8419
|
-
let t = O(
|
|
8509
|
+
var eu = w(null);
|
|
8510
|
+
function tu(e) {
|
|
8511
|
+
let t = O(eu);
|
|
8420
8512
|
if (!t) throw Error(`<${e}> deve ser usado dentro de <Kanban.Root>.`);
|
|
8421
8513
|
return t;
|
|
8422
8514
|
}
|
|
8423
|
-
function
|
|
8515
|
+
function nu({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onValueCommit: i, onColumnOrderChange: a, children: o }) {
|
|
8424
8516
|
let [s, c] = P(e), [l, u] = P(null), [d, f] = P(null), p = N(!1);
|
|
8425
8517
|
k(() => {
|
|
8426
8518
|
p.current || c(e);
|
|
8427
8519
|
}, [e]);
|
|
8428
|
-
let m = t ?? Object.keys(s), h =
|
|
8520
|
+
let m = t ?? Object.keys(s), h = ss(os(sc, { activationConstraint: { distance: 4 } }), os(nc, { coordinateGetter: Zl }));
|
|
8429
8521
|
function g(e) {
|
|
8430
8522
|
return e in s ? e : Object.keys(s).find((t) => s[t].some((t) => n(t) === e));
|
|
8431
8523
|
}
|
|
@@ -8458,7 +8550,7 @@ function $l({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onVal
|
|
|
8458
8550
|
if (p.current = !1, u(null), f(null), !o) return;
|
|
8459
8551
|
if (t.data.current?.type === "column") {
|
|
8460
8552
|
let e = m.indexOf(String(t.id)), n = m.indexOf(String(o.id));
|
|
8461
|
-
e !== -1 && n !== -1 && e !== n && a?.(
|
|
8553
|
+
e !== -1 && n !== -1 && e !== n && a?.(Tl(m, e, n));
|
|
8462
8554
|
return;
|
|
8463
8555
|
}
|
|
8464
8556
|
let l = String(t.id), d = String(o.id), h = g(l);
|
|
@@ -8467,7 +8559,7 @@ function $l({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onVal
|
|
|
8467
8559
|
if (t !== -1 && a !== -1 && t !== a) {
|
|
8468
8560
|
let n = {
|
|
8469
8561
|
...s,
|
|
8470
|
-
[h]:
|
|
8562
|
+
[h]: Tl(e, t, a)
|
|
8471
8563
|
};
|
|
8472
8564
|
c(n), r?.(n), i?.(n);
|
|
8473
8565
|
return;
|
|
@@ -8478,22 +8570,22 @@ function $l({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onVal
|
|
|
8478
8570
|
function x() {
|
|
8479
8571
|
p.current = !1, u(null), f(null), c(e);
|
|
8480
8572
|
}
|
|
8481
|
-
return /* @__PURE__ */ y(
|
|
8573
|
+
return /* @__PURE__ */ y(eu.Provider, {
|
|
8482
8574
|
value: {
|
|
8483
8575
|
activeId: l,
|
|
8484
8576
|
activeType: d,
|
|
8485
8577
|
getColumnOf: g
|
|
8486
8578
|
},
|
|
8487
|
-
children: /* @__PURE__ */ y(
|
|
8579
|
+
children: /* @__PURE__ */ y(il, {
|
|
8488
8580
|
sensors: h,
|
|
8489
|
-
collisionDetection:
|
|
8581
|
+
collisionDetection: hs,
|
|
8490
8582
|
onDragStart: _,
|
|
8491
8583
|
onDragOver: v,
|
|
8492
8584
|
onDragEnd: b,
|
|
8493
8585
|
onDragCancel: x,
|
|
8494
|
-
children: /* @__PURE__ */ y(
|
|
8586
|
+
children: /* @__PURE__ */ y(ru.Provider, {
|
|
8495
8587
|
value: s,
|
|
8496
|
-
children: /* @__PURE__ */ y(
|
|
8588
|
+
children: /* @__PURE__ */ y(iu.Provider, {
|
|
8497
8589
|
value: m,
|
|
8498
8590
|
children: o
|
|
8499
8591
|
})
|
|
@@ -8501,17 +8593,17 @@ function $l({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onVal
|
|
|
8501
8593
|
})
|
|
8502
8594
|
});
|
|
8503
8595
|
}
|
|
8504
|
-
var
|
|
8505
|
-
function
|
|
8506
|
-
return O(
|
|
8596
|
+
var ru = w({}), iu = w([]);
|
|
8597
|
+
function au(e) {
|
|
8598
|
+
return O(ru)[e] ?? [];
|
|
8507
8599
|
}
|
|
8508
|
-
function
|
|
8509
|
-
return O(
|
|
8600
|
+
function ou() {
|
|
8601
|
+
return O(iu);
|
|
8510
8602
|
}
|
|
8511
|
-
function
|
|
8512
|
-
return /* @__PURE__ */ y(
|
|
8513
|
-
items:
|
|
8514
|
-
strategy:
|
|
8603
|
+
function su({ children: e, className: t, ...n }) {
|
|
8604
|
+
return /* @__PURE__ */ y(zl, {
|
|
8605
|
+
items: ou(),
|
|
8606
|
+
strategy: jl,
|
|
8515
8607
|
children: /* @__PURE__ */ y("div", {
|
|
8516
8608
|
"data-eds-component": "KanbanBoard",
|
|
8517
8609
|
className: K("grid grid-cols-1 items-start gap-4 md:grid-cols-2 lg:grid-cols-4", t),
|
|
@@ -8520,13 +8612,13 @@ function iu({ children: e, className: t, ...n }) {
|
|
|
8520
8612
|
})
|
|
8521
8613
|
});
|
|
8522
8614
|
}
|
|
8523
|
-
var
|
|
8524
|
-
function
|
|
8525
|
-
let { activeId: i } =
|
|
8615
|
+
var cu = w(null);
|
|
8616
|
+
function lu({ value: e, children: t, className: n, ...r }) {
|
|
8617
|
+
let { activeId: i } = tu("Kanban.Column"), { over: a } = ll(), { attributes: o, listeners: s, setNodeRef: c, transform: l, transition: u, isDragging: d } = ql({
|
|
8526
8618
|
id: e,
|
|
8527
8619
|
data: { type: "column" }
|
|
8528
8620
|
}), f = a?.id === e && i !== e;
|
|
8529
|
-
return /* @__PURE__ */ y(
|
|
8621
|
+
return /* @__PURE__ */ y(cu.Provider, {
|
|
8530
8622
|
value: {
|
|
8531
8623
|
attributes: o,
|
|
8532
8624
|
listeners: s
|
|
@@ -8536,7 +8628,7 @@ function ou({ value: e, children: t, className: n, ...r }) {
|
|
|
8536
8628
|
"data-eds-component": "KanbanColumn",
|
|
8537
8629
|
"data-dragging": d || void 0,
|
|
8538
8630
|
style: {
|
|
8539
|
-
transform:
|
|
8631
|
+
transform: Go.Transform.toString(l),
|
|
8540
8632
|
transition: u
|
|
8541
8633
|
},
|
|
8542
8634
|
className: K("flex min-h-[500px] flex-col rounded-eds-sm border p-3.5 transition-colors duration-200", d && "opacity-50", f ? "border-eds-blue-main bg-eds-blue-background/10" : "border-eds-outline-border bg-white", n),
|
|
@@ -8548,8 +8640,8 @@ function ou({ value: e, children: t, className: n, ...r }) {
|
|
|
8548
8640
|
})
|
|
8549
8641
|
});
|
|
8550
8642
|
}
|
|
8551
|
-
function
|
|
8552
|
-
let r = O(
|
|
8643
|
+
function uu({ className: e, children: t, ...n }) {
|
|
8644
|
+
let r = O(cu);
|
|
8553
8645
|
if (!r) throw Error("<Kanban.ColumnHandle> deve ser usado dentro de <Kanban.Column>.");
|
|
8554
8646
|
return /* @__PURE__ */ y("button", {
|
|
8555
8647
|
type: "button",
|
|
@@ -8561,10 +8653,10 @@ function su({ className: e, children: t, ...n }) {
|
|
|
8561
8653
|
children: t
|
|
8562
8654
|
});
|
|
8563
8655
|
}
|
|
8564
|
-
function
|
|
8565
|
-
return /* @__PURE__ */ y(
|
|
8656
|
+
function du({ items: e, children: t, className: n, ...r }) {
|
|
8657
|
+
return /* @__PURE__ */ y(zl, {
|
|
8566
8658
|
items: e,
|
|
8567
|
-
strategy:
|
|
8659
|
+
strategy: Fl,
|
|
8568
8660
|
children: /* @__PURE__ */ y("div", {
|
|
8569
8661
|
"data-eds-component": "KanbanColumnContent",
|
|
8570
8662
|
className: K("flex-1 space-y-3 overflow-y-auto", n),
|
|
@@ -8573,16 +8665,16 @@ function cu({ items: e, children: t, className: n, ...r }) {
|
|
|
8573
8665
|
})
|
|
8574
8666
|
});
|
|
8575
8667
|
}
|
|
8576
|
-
var
|
|
8577
|
-
function
|
|
8578
|
-
let { attributes: a, listeners: o, setNodeRef: s, transform: c, transition: l, isDragging: u } =
|
|
8668
|
+
var fu = w(null);
|
|
8669
|
+
function pu({ value: e, children: t, className: n, asHandle: r = !0, ...i }) {
|
|
8670
|
+
let { attributes: a, listeners: o, setNodeRef: s, transform: c, transition: l, isDragging: u } = ql({
|
|
8579
8671
|
id: e,
|
|
8580
8672
|
data: { type: "item" }
|
|
8581
8673
|
}), d = r ? {
|
|
8582
8674
|
...a,
|
|
8583
8675
|
...o
|
|
8584
8676
|
} : {};
|
|
8585
|
-
return /* @__PURE__ */ y(
|
|
8677
|
+
return /* @__PURE__ */ y(fu.Provider, {
|
|
8586
8678
|
value: {
|
|
8587
8679
|
attributes: a,
|
|
8588
8680
|
listeners: o
|
|
@@ -8592,7 +8684,7 @@ function uu({ value: e, children: t, className: n, asHandle: r = !0, ...i }) {
|
|
|
8592
8684
|
"data-eds-component": "KanbanItem",
|
|
8593
8685
|
"data-dragging": u || void 0,
|
|
8594
8686
|
style: {
|
|
8595
|
-
transform:
|
|
8687
|
+
transform: Go.Transform.toString(c),
|
|
8596
8688
|
transition: l
|
|
8597
8689
|
},
|
|
8598
8690
|
className: K(r && "cursor-grab touch-none active:cursor-grabbing", u && "opacity-50", n),
|
|
@@ -8602,8 +8694,8 @@ function uu({ value: e, children: t, className: n, asHandle: r = !0, ...i }) {
|
|
|
8602
8694
|
})
|
|
8603
8695
|
});
|
|
8604
8696
|
}
|
|
8605
|
-
function
|
|
8606
|
-
let r = O(
|
|
8697
|
+
function mu({ className: e, children: t, ...n }) {
|
|
8698
|
+
let r = O(fu);
|
|
8607
8699
|
if (!r) throw Error("<Kanban.ItemHandle> deve ser usado dentro de <Kanban.Item>.");
|
|
8608
8700
|
return /* @__PURE__ */ y("button", {
|
|
8609
8701
|
type: "button",
|
|
@@ -8615,26 +8707,26 @@ function du({ className: e, children: t, ...n }) {
|
|
|
8615
8707
|
children: t
|
|
8616
8708
|
});
|
|
8617
8709
|
}
|
|
8618
|
-
function
|
|
8619
|
-
let { activeId: t, activeType: n } =
|
|
8620
|
-
return /* @__PURE__ */ y(
|
|
8710
|
+
function hu({ children: e }) {
|
|
8711
|
+
let { activeId: t, activeType: n } = tu("Kanban.Overlay");
|
|
8712
|
+
return /* @__PURE__ */ y(wl, { children: t && n ? e({
|
|
8621
8713
|
id: t,
|
|
8622
8714
|
type: n
|
|
8623
8715
|
}) : null });
|
|
8624
8716
|
}
|
|
8625
|
-
function
|
|
8626
|
-
return /* @__PURE__ */ b(
|
|
8717
|
+
function gu({ columns: e, items: t, getItemValue: n, renderItem: r, renderColumnBadge: i, onValueChange: a, onValueCommit: o, onColumnOrderChange: s, className: c }) {
|
|
8718
|
+
return /* @__PURE__ */ b(nu, {
|
|
8627
8719
|
value: t,
|
|
8628
8720
|
columnOrder: e.map((e) => e.id),
|
|
8629
8721
|
getItemValue: n,
|
|
8630
8722
|
onValueChange: a,
|
|
8631
8723
|
onValueCommit: o,
|
|
8632
8724
|
onColumnOrderChange: s,
|
|
8633
|
-
children: [/* @__PURE__ */ y(
|
|
8725
|
+
children: [/* @__PURE__ */ y(su, {
|
|
8634
8726
|
className: c,
|
|
8635
8727
|
children: e.map((e) => {
|
|
8636
8728
|
let a = t[e.id] ?? [];
|
|
8637
|
-
return /* @__PURE__ */ b(
|
|
8729
|
+
return /* @__PURE__ */ b(lu, {
|
|
8638
8730
|
value: e.id,
|
|
8639
8731
|
className: e.className,
|
|
8640
8732
|
children: [/* @__PURE__ */ b("div", {
|
|
@@ -8647,36 +8739,36 @@ function pu({ columns: e, items: t, getItemValue: n, renderItem: r, renderColumn
|
|
|
8647
8739
|
children: [i ? i(e, a.length) : /* @__PURE__ */ y("span", {
|
|
8648
8740
|
className: "rounded-full bg-eds-neutral-background px-2 py-0.5 text-[11px] font-extrabold text-eds-neutral-main",
|
|
8649
8741
|
children: a.length
|
|
8650
|
-
}), /* @__PURE__ */ y(
|
|
8742
|
+
}), /* @__PURE__ */ y(uu, {
|
|
8651
8743
|
className: "text-eds-neutral-elements",
|
|
8652
8744
|
children: /* @__PURE__ */ y(f, { size: 14 })
|
|
8653
8745
|
})]
|
|
8654
8746
|
})]
|
|
8655
|
-
}), /* @__PURE__ */ y(
|
|
8747
|
+
}), /* @__PURE__ */ y(du, {
|
|
8656
8748
|
items: a.map(n),
|
|
8657
|
-
children: a.map((e) => /* @__PURE__ */ y(
|
|
8749
|
+
children: a.map((e) => /* @__PURE__ */ y(pu, {
|
|
8658
8750
|
value: n(e),
|
|
8659
8751
|
children: r(e)
|
|
8660
8752
|
}, n(e)))
|
|
8661
8753
|
})]
|
|
8662
8754
|
}, e.id);
|
|
8663
8755
|
})
|
|
8664
|
-
}), /* @__PURE__ */ y(
|
|
8756
|
+
}), /* @__PURE__ */ y(hu, { children: ({ id: e, type: i }) => {
|
|
8665
8757
|
if (i !== "item") return null;
|
|
8666
8758
|
let a = Object.values(t).flat().find((t) => n(t) === e);
|
|
8667
8759
|
return a ? r(a) : null;
|
|
8668
8760
|
} })]
|
|
8669
8761
|
});
|
|
8670
8762
|
}
|
|
8671
|
-
var
|
|
8672
|
-
Root:
|
|
8673
|
-
Board:
|
|
8674
|
-
Column:
|
|
8675
|
-
ColumnHandle:
|
|
8676
|
-
ColumnContent:
|
|
8677
|
-
Item:
|
|
8678
|
-
ItemHandle:
|
|
8679
|
-
Overlay:
|
|
8763
|
+
var _u = Object.assign(gu, {
|
|
8764
|
+
Root: nu,
|
|
8765
|
+
Board: su,
|
|
8766
|
+
Column: lu,
|
|
8767
|
+
ColumnHandle: uu,
|
|
8768
|
+
ColumnContent: du,
|
|
8769
|
+
Item: pu,
|
|
8770
|
+
ItemHandle: mu,
|
|
8771
|
+
Overlay: hu
|
|
8680
8772
|
});
|
|
8681
8773
|
//#endregion
|
|
8682
|
-
export { yn as Attachment, gn as AttachmentAction, hn as AttachmentActions, fn as AttachmentContent, mn as AttachmentDescription, vn as AttachmentGroup, dn as AttachmentMedia, pn as AttachmentTitle, _n as AttachmentTrigger, fe as Badge, le as Button, pe as COLORS, Qt as Calendar, sn as Card, Sn as Checkbox, Gn as Combobox,
|
|
8774
|
+
export { yn as Attachment, gn as AttachmentAction, hn as AttachmentActions, fn as AttachmentContent, mn as AttachmentDescription, vn as AttachmentGroup, dn as AttachmentMedia, pn as AttachmentTitle, _n as AttachmentTrigger, fe as Badge, le as Button, pe as COLORS, Qt as Calendar, sn as Card, Sn as Checkbox, Gn as Combobox, fo as DataTable, Xn as DatePicker, kr as DateTimePicker, Ur as Dialog, ei as Drawer, ri as Empty, Zr as FormDialog, Yt as IconButton, hi as Input, _u as Kanban, yo as Message, ii as PageHeader, bi as Select, Bi as Table, mo as Tabs, Ei as Text, vi as Textarea, jl as kanbanColumnSortingStrategy, Fl as kanbanItemSortingStrategy, au as useKanbanColumnItems, ou as useKanbanColumnOrder };
|