@vincisys/eyeson 0.16.1 → 0.17.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 +17 -2
- 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 +904 -826
- 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,18 +5731,24 @@ 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 C = u !== void 0 && !!d, w = S ? "!rounded-none !border-0 !bg-transparent" : void 0, T =
|
|
5747
|
+
function fo({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, pageSize: o, search: s, sorting: u, onSortingChange: d, emptyStateTitle: f = "Nenhum resultado encontrado", emptyStateDescription: p, meta: h, "aria-label": _, className: v, dividers: x, card: S = !0 }) {
|
|
5748
|
+
let C = u !== void 0 && !!d, w = S ? "!rounded-none !border-0 !bg-transparent" : void 0, T = oo({
|
|
5675
5749
|
data: t,
|
|
5676
5750
|
columns: e,
|
|
5677
|
-
getCoreRowModel:
|
|
5751
|
+
getCoreRowModel: to(),
|
|
5678
5752
|
meta: h,
|
|
5679
5753
|
state: C ? { sorting: u } : void 0,
|
|
5680
5754
|
onSortingChange: d,
|
|
@@ -5687,7 +5761,7 @@ function co({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5687
5761
|
children: [
|
|
5688
5762
|
s && /* @__PURE__ */ y("div", {
|
|
5689
5763
|
className: K("flex justify-end", S && "border-b border-eds-outline-border px-4 py-3"),
|
|
5690
|
-
children: /* @__PURE__ */ y(
|
|
5764
|
+
children: /* @__PURE__ */ y(hi, {
|
|
5691
5765
|
label: "Buscar",
|
|
5692
5766
|
labelVariant: "floating",
|
|
5693
5767
|
className: "w-full max-w-sm",
|
|
@@ -5707,45 +5781,49 @@ function co({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5707
5781
|
"aria-hidden": !0
|
|
5708
5782
|
}), "Carregando..."]
|
|
5709
5783
|
}),
|
|
5710
|
-
n ? /* @__PURE__ */ y(
|
|
5784
|
+
n ? /* @__PURE__ */ y(uo, {
|
|
5711
5785
|
columns: e,
|
|
5712
5786
|
dividers: x,
|
|
5713
5787
|
containerClassName: w
|
|
5714
5788
|
}) : r ? /* @__PURE__ */ y("div", {
|
|
5715
5789
|
className: S ? "p-6" : void 0,
|
|
5716
|
-
children: /* @__PURE__ */ y(
|
|
5790
|
+
children: /* @__PURE__ */ y(ri, {
|
|
5717
5791
|
title: f,
|
|
5718
5792
|
description: p ?? "Houve um erro ao buscar os dados. Tente novamente."
|
|
5719
5793
|
})
|
|
5720
5794
|
}) : E.length === 0 ? /* @__PURE__ */ y("div", {
|
|
5721
5795
|
className: S ? "p-6" : void 0,
|
|
5722
|
-
children: /* @__PURE__ */ y(
|
|
5796
|
+
children: /* @__PURE__ */ y(ri, {
|
|
5723
5797
|
title: f,
|
|
5724
5798
|
description: p
|
|
5725
5799
|
})
|
|
5726
|
-
}) : /* @__PURE__ */ b(
|
|
5800
|
+
}) : /* @__PURE__ */ b(Bi, {
|
|
5727
5801
|
"aria-label": _,
|
|
5728
5802
|
dividers: x,
|
|
5729
5803
|
containerClassName: w,
|
|
5730
|
-
children: [/* @__PURE__ */ y(
|
|
5804
|
+
children: [/* @__PURE__ */ y(Bi.Header, { children: T.getHeaderGroups().map((e) => /* @__PURE__ */ y(Bi.Row, { children: e.headers.map((e) => {
|
|
5731
5805
|
let t = e.column.getIsSorted();
|
|
5732
|
-
return /* @__PURE__ */ y(
|
|
5806
|
+
return /* @__PURE__ */ y(Bi.Head, {
|
|
5807
|
+
sticky: e.column.columnDef.meta?.sticky,
|
|
5733
5808
|
"aria-sort": e.column.getCanSort() ? t === "asc" ? "ascending" : t === "desc" ? "descending" : "none" : void 0,
|
|
5734
5809
|
children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ b("button", {
|
|
5735
5810
|
type: "button",
|
|
5736
5811
|
className: "flex select-none items-center gap-1 font-semibold",
|
|
5737
5812
|
onClick: e.column.getToggleSortingHandler(),
|
|
5738
|
-
children: [
|
|
5739
|
-
}) :
|
|
5813
|
+
children: [no(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ y(co, { direction: t })]
|
|
5814
|
+
}) : no(e.column.columnDef.header, e.getContext())
|
|
5740
5815
|
}, e.id);
|
|
5741
|
-
}) }, e.id)) }), /* @__PURE__ */ y(
|
|
5816
|
+
}) }, e.id)) }), /* @__PURE__ */ y(Bi.Body, { children: E.map((e) => /* @__PURE__ */ y(Bi.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ y(Bi.Cell, {
|
|
5817
|
+
sticky: e.column.columnDef.meta?.sticky,
|
|
5818
|
+
children: no(e.column.columnDef.cell, e.getContext())
|
|
5819
|
+
}, e.id)) }, e.id)) })]
|
|
5742
5820
|
}),
|
|
5743
5821
|
A && /* @__PURE__ */ b("div", {
|
|
5744
5822
|
className: K("flex items-center justify-between gap-4", S ? "border-t border-eds-outline-border px-4 py-3" : "rounded-eds-xs bg-white px-3 py-2"),
|
|
5745
5823
|
children: [
|
|
5746
5824
|
/* @__PURE__ */ y("div", {
|
|
5747
5825
|
className: "flex flex-1 items-center",
|
|
5748
|
-
children: k && o && i && /* @__PURE__ */ y(
|
|
5826
|
+
children: k && o && i && /* @__PURE__ */ y(lo, {
|
|
5749
5827
|
...o,
|
|
5750
5828
|
value: i.limit
|
|
5751
5829
|
})
|
|
@@ -5789,12 +5867,12 @@ function co({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5789
5867
|
}
|
|
5790
5868
|
//#endregion
|
|
5791
5869
|
//#region src/components/Tabs/Tabs.tsx
|
|
5792
|
-
var
|
|
5870
|
+
var po = {
|
|
5793
5871
|
variant: "segmented",
|
|
5794
5872
|
size: "md"
|
|
5795
5873
|
};
|
|
5796
|
-
function
|
|
5797
|
-
let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } =
|
|
5874
|
+
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 }) {
|
|
5875
|
+
let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = go(d), g = ho(m, h);
|
|
5798
5876
|
if (u.length === 0) return null;
|
|
5799
5877
|
let _ = u[0]?.value, v = t !== void 0, x = {
|
|
5800
5878
|
value: v ? t : void 0,
|
|
@@ -5832,7 +5910,7 @@ function uo({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
|
|
|
5832
5910
|
})]
|
|
5833
5911
|
});
|
|
5834
5912
|
}
|
|
5835
|
-
function
|
|
5913
|
+
function ho(e, t) {
|
|
5836
5914
|
let n = N(null), r = N(!1);
|
|
5837
5915
|
return () => ({
|
|
5838
5916
|
onPointerDownCapture: (i) => {
|
|
@@ -5869,7 +5947,7 @@ function fo(e, t) {
|
|
|
5869
5947
|
}
|
|
5870
5948
|
});
|
|
5871
5949
|
}
|
|
5872
|
-
function
|
|
5950
|
+
function go(e) {
|
|
5873
5951
|
let t = N(null), [n, r] = P(!1);
|
|
5874
5952
|
return k(() => {
|
|
5875
5953
|
if (!e) return;
|
|
@@ -5884,12 +5962,12 @@ function po(e) {
|
|
|
5884
5962
|
}
|
|
5885
5963
|
//#endregion
|
|
5886
5964
|
//#region src/components/Message/Message.tsx
|
|
5887
|
-
var
|
|
5965
|
+
var _o = { role: {
|
|
5888
5966
|
user: { classes: "self-end rounded-br-eds-lil bg-eds-blue-main text-white" },
|
|
5889
5967
|
assistant: { classes: "self-start rounded-bl-eds-lil bg-eds-neutral-background text-eds-neutral-main" }
|
|
5890
|
-
} },
|
|
5891
|
-
function
|
|
5892
|
-
let a = q(
|
|
5968
|
+
} }, vo = { role: "assistant" };
|
|
5969
|
+
function yo({ role: e = vo.role, streaming: t = !1, className: n, children: r, ...i }) {
|
|
5970
|
+
let a = q(_o.role, e, vo.role);
|
|
5893
5971
|
return /* @__PURE__ */ b("div", {
|
|
5894
5972
|
"data-eds-component": "Message",
|
|
5895
5973
|
"data-role": e,
|
|
@@ -5907,47 +5985,47 @@ function go({ role: e = ho.role, streaming: t = !1, className: n, children: r, .
|
|
|
5907
5985
|
}
|
|
5908
5986
|
//#endregion
|
|
5909
5987
|
//#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
|
|
5988
|
+
function bo() {
|
|
5911
5989
|
var e = [...arguments];
|
|
5912
5990
|
return j(() => (t) => {
|
|
5913
5991
|
e.forEach((e) => e(t));
|
|
5914
5992
|
}, e);
|
|
5915
5993
|
}
|
|
5916
|
-
var
|
|
5917
|
-
function
|
|
5994
|
+
var xo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
5995
|
+
function So(e) {
|
|
5918
5996
|
let t = Object.prototype.toString.call(e);
|
|
5919
5997
|
return t === "[object Window]" || t === "[object global]";
|
|
5920
5998
|
}
|
|
5921
|
-
function
|
|
5999
|
+
function Co(e) {
|
|
5922
6000
|
return "nodeType" in e;
|
|
5923
6001
|
}
|
|
5924
|
-
function
|
|
5925
|
-
return e ?
|
|
6002
|
+
function wo(e) {
|
|
6003
|
+
return e ? So(e) ? e : Co(e) ? e.ownerDocument?.defaultView ?? window : window : window;
|
|
5926
6004
|
}
|
|
5927
|
-
function
|
|
5928
|
-
let { Document: t } =
|
|
6005
|
+
function To(e) {
|
|
6006
|
+
let { Document: t } = wo(e);
|
|
5929
6007
|
return e instanceof t;
|
|
5930
6008
|
}
|
|
5931
|
-
function
|
|
5932
|
-
return
|
|
6009
|
+
function Eo(e) {
|
|
6010
|
+
return So(e) ? !1 : e instanceof wo(e).HTMLElement;
|
|
5933
6011
|
}
|
|
5934
|
-
function
|
|
5935
|
-
return e instanceof
|
|
6012
|
+
function Do(e) {
|
|
6013
|
+
return e instanceof wo(e).SVGElement;
|
|
5936
6014
|
}
|
|
5937
|
-
function
|
|
5938
|
-
return e ?
|
|
6015
|
+
function Oo(e) {
|
|
6016
|
+
return e ? So(e) ? e.document : Co(e) ? To(e) ? e : Eo(e) || Do(e) ? e.ownerDocument : document : document : document;
|
|
5939
6017
|
}
|
|
5940
|
-
var
|
|
5941
|
-
function
|
|
6018
|
+
var ko = xo ? ee : k;
|
|
6019
|
+
function Ao(e) {
|
|
5942
6020
|
let t = N(e);
|
|
5943
|
-
return
|
|
6021
|
+
return ko(() => {
|
|
5944
6022
|
t.current = e;
|
|
5945
6023
|
}), D(function() {
|
|
5946
6024
|
var e = [...arguments];
|
|
5947
6025
|
return t.current == null ? void 0 : t.current(...e);
|
|
5948
6026
|
}, []);
|
|
5949
6027
|
}
|
|
5950
|
-
function
|
|
6028
|
+
function jo() {
|
|
5951
6029
|
let e = N(null);
|
|
5952
6030
|
return [D((t, n) => {
|
|
5953
6031
|
e.current = setInterval(t, n);
|
|
@@ -5955,41 +6033,41 @@ function Oo() {
|
|
|
5955
6033
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
5956
6034
|
}, [])];
|
|
5957
6035
|
}
|
|
5958
|
-
function
|
|
6036
|
+
function Mo(e, t) {
|
|
5959
6037
|
t === void 0 && (t = [e]);
|
|
5960
6038
|
let n = N(e);
|
|
5961
|
-
return
|
|
6039
|
+
return ko(() => {
|
|
5962
6040
|
n.current !== e && (n.current = e);
|
|
5963
6041
|
}, t), n;
|
|
5964
6042
|
}
|
|
5965
|
-
function
|
|
6043
|
+
function No(e, t) {
|
|
5966
6044
|
let n = N();
|
|
5967
6045
|
return j(() => {
|
|
5968
6046
|
let t = e(n.current);
|
|
5969
6047
|
return n.current = t, t;
|
|
5970
6048
|
}, [...t]);
|
|
5971
6049
|
}
|
|
5972
|
-
function
|
|
5973
|
-
let t =
|
|
6050
|
+
function Po(e) {
|
|
6051
|
+
let t = Ao(e), n = N(null);
|
|
5974
6052
|
return [n, D((e) => {
|
|
5975
6053
|
e !== n.current && t?.(e, n.current), n.current = e;
|
|
5976
6054
|
}, [])];
|
|
5977
6055
|
}
|
|
5978
|
-
function
|
|
6056
|
+
function Fo(e) {
|
|
5979
6057
|
let t = N();
|
|
5980
6058
|
return k(() => {
|
|
5981
6059
|
t.current = e;
|
|
5982
6060
|
}, [e]), t.current;
|
|
5983
6061
|
}
|
|
5984
|
-
var
|
|
5985
|
-
function
|
|
6062
|
+
var Io = {};
|
|
6063
|
+
function Lo(e, t) {
|
|
5986
6064
|
return j(() => {
|
|
5987
6065
|
if (t) return t;
|
|
5988
|
-
let n =
|
|
5989
|
-
return
|
|
6066
|
+
let n = Io[e] == null ? 0 : Io[e] + 1;
|
|
6067
|
+
return Io[e] = n, e + "-" + n;
|
|
5990
6068
|
}, [e, t]);
|
|
5991
6069
|
}
|
|
5992
|
-
function
|
|
6070
|
+
function Ro(e) {
|
|
5993
6071
|
return function(t) {
|
|
5994
6072
|
return [...arguments].slice(1).reduce((t, n) => {
|
|
5995
6073
|
let r = Object.entries(n);
|
|
@@ -6001,22 +6079,22 @@ function Fo(e) {
|
|
|
6001
6079
|
}, { ...t });
|
|
6002
6080
|
};
|
|
6003
6081
|
}
|
|
6004
|
-
var
|
|
6005
|
-
function
|
|
6082
|
+
var zo = /*#__PURE__*/ Ro(1), Bo = /*#__PURE__*/ Ro(-1);
|
|
6083
|
+
function Vo(e) {
|
|
6006
6084
|
return "clientX" in e && "clientY" in e;
|
|
6007
6085
|
}
|
|
6008
|
-
function
|
|
6086
|
+
function Ho(e) {
|
|
6009
6087
|
if (!e) return !1;
|
|
6010
|
-
let { KeyboardEvent: t } =
|
|
6088
|
+
let { KeyboardEvent: t } = wo(e.target);
|
|
6011
6089
|
return t && e instanceof t;
|
|
6012
6090
|
}
|
|
6013
|
-
function
|
|
6091
|
+
function Uo(e) {
|
|
6014
6092
|
if (!e) return !1;
|
|
6015
|
-
let { TouchEvent: t } =
|
|
6093
|
+
let { TouchEvent: t } = wo(e.target);
|
|
6016
6094
|
return t && e instanceof t;
|
|
6017
6095
|
}
|
|
6018
|
-
function
|
|
6019
|
-
if (
|
|
6096
|
+
function Wo(e) {
|
|
6097
|
+
if (Uo(e)) {
|
|
6020
6098
|
if (e.touches && e.touches.length) {
|
|
6021
6099
|
let { clientX: t, clientY: n } = e.touches[0];
|
|
6022
6100
|
return {
|
|
@@ -6031,12 +6109,12 @@ function Vo(e) {
|
|
|
6031
6109
|
};
|
|
6032
6110
|
}
|
|
6033
6111
|
}
|
|
6034
|
-
return
|
|
6112
|
+
return Vo(e) ? {
|
|
6035
6113
|
x: e.clientX,
|
|
6036
6114
|
y: e.clientY
|
|
6037
6115
|
} : null;
|
|
6038
6116
|
}
|
|
6039
|
-
var
|
|
6117
|
+
var Go = /*#__PURE__*/ Object.freeze({
|
|
6040
6118
|
Translate: { toString(e) {
|
|
6041
6119
|
if (!e) return;
|
|
6042
6120
|
let { x: t, y: n } = e;
|
|
@@ -6048,27 +6126,27 @@ var Ho = /*#__PURE__*/ Object.freeze({
|
|
|
6048
6126
|
return "scaleX(" + t + ") scaleY(" + n + ")";
|
|
6049
6127
|
} },
|
|
6050
6128
|
Transform: { toString(e) {
|
|
6051
|
-
if (e) return [
|
|
6129
|
+
if (e) return [Go.Translate.toString(e), Go.Scale.toString(e)].join(" ");
|
|
6052
6130
|
} },
|
|
6053
6131
|
Transition: { toString(e) {
|
|
6054
6132
|
let { property: t, duration: n, easing: r } = e;
|
|
6055
6133
|
return t + " " + n + "ms " + r;
|
|
6056
6134
|
} }
|
|
6057
|
-
}),
|
|
6058
|
-
function
|
|
6059
|
-
return e.matches(
|
|
6135
|
+
}), Ko = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
6136
|
+
function qo(e) {
|
|
6137
|
+
return e.matches(Ko) ? e : e.querySelector(Ko);
|
|
6060
6138
|
}
|
|
6061
6139
|
//#endregion
|
|
6062
6140
|
//#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
|
|
6141
|
+
var Jo = { display: "none" };
|
|
6142
|
+
function Yo(e) {
|
|
6065
6143
|
let { id: t, value: n } = e;
|
|
6066
6144
|
return S.createElement("div", {
|
|
6067
6145
|
id: t,
|
|
6068
|
-
style:
|
|
6146
|
+
style: Jo
|
|
6069
6147
|
}, n);
|
|
6070
6148
|
}
|
|
6071
|
-
function
|
|
6149
|
+
function Xo(e) {
|
|
6072
6150
|
let { id: t, announcement: n, ariaLiveType: r = "assertive" } = e;
|
|
6073
6151
|
return S.createElement("div", {
|
|
6074
6152
|
id: t,
|
|
@@ -6091,7 +6169,7 @@ function qo(e) {
|
|
|
6091
6169
|
"aria-atomic": !0
|
|
6092
6170
|
}, n);
|
|
6093
6171
|
}
|
|
6094
|
-
function
|
|
6172
|
+
function Zo() {
|
|
6095
6173
|
let [e, t] = P("");
|
|
6096
6174
|
return {
|
|
6097
6175
|
announce: D((e) => {
|
|
@@ -6102,22 +6180,22 @@ function Jo() {
|
|
|
6102
6180
|
}
|
|
6103
6181
|
//#endregion
|
|
6104
6182
|
//#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(
|
|
6183
|
+
var Qo = /*#__PURE__*/ w(null);
|
|
6184
|
+
function $o(e) {
|
|
6185
|
+
let t = O(Qo);
|
|
6108
6186
|
k(() => {
|
|
6109
6187
|
if (!t) throw Error("useDndMonitor must be used within a children of <DndContext>");
|
|
6110
6188
|
return t(e);
|
|
6111
6189
|
}, [e, t]);
|
|
6112
6190
|
}
|
|
6113
|
-
function
|
|
6191
|
+
function es() {
|
|
6114
6192
|
let [e] = P(() => /* @__PURE__ */ new Set()), t = D((t) => (e.add(t), () => e.delete(t)), [e]);
|
|
6115
6193
|
return [D((t) => {
|
|
6116
6194
|
let { type: n, event: r } = t;
|
|
6117
6195
|
e.forEach((e) => e[n]?.call(e, r));
|
|
6118
6196
|
}, [e]), t];
|
|
6119
6197
|
}
|
|
6120
|
-
var
|
|
6198
|
+
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
6199
|
onDragStart(e) {
|
|
6122
6200
|
let { active: t } = e;
|
|
6123
6201
|
return "Picked up draggable item " + t.id + ".";
|
|
@@ -6135,11 +6213,11 @@ var Qo = { draggable: "\n To pick up a draggable item, press the space bar.\n
|
|
|
6135
6213
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
6136
6214
|
}
|
|
6137
6215
|
};
|
|
6138
|
-
function
|
|
6139
|
-
let { announcements: t =
|
|
6216
|
+
function rs(e) {
|
|
6217
|
+
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
6218
|
if (k(() => {
|
|
6141
6219
|
l(!0);
|
|
6142
|
-
}, []),
|
|
6220
|
+
}, []), $o(j(() => ({
|
|
6143
6221
|
onDragStart(e) {
|
|
6144
6222
|
let { active: n } = e;
|
|
6145
6223
|
a(t.onDragStart({ active: n }));
|
|
@@ -6173,39 +6251,39 @@ function es(e) {
|
|
|
6173
6251
|
}));
|
|
6174
6252
|
}
|
|
6175
6253
|
}), [a, t])), !c) return null;
|
|
6176
|
-
let u = S.createElement(S.Fragment, null, S.createElement(
|
|
6254
|
+
let u = S.createElement(S.Fragment, null, S.createElement(Yo, {
|
|
6177
6255
|
id: r,
|
|
6178
6256
|
value: i.draggable
|
|
6179
|
-
}), S.createElement(
|
|
6257
|
+
}), S.createElement(Xo, {
|
|
6180
6258
|
id: s,
|
|
6181
6259
|
announcement: o
|
|
6182
6260
|
}));
|
|
6183
6261
|
return n ? G(u, n) : u;
|
|
6184
6262
|
}
|
|
6185
|
-
var
|
|
6263
|
+
var is;
|
|
6186
6264
|
(function(e) {
|
|
6187
6265
|
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
|
|
6266
|
+
})(is ||= {});
|
|
6267
|
+
function as() {}
|
|
6268
|
+
function os(e, t) {
|
|
6191
6269
|
return j(() => ({
|
|
6192
6270
|
sensor: e,
|
|
6193
6271
|
options: t ?? {}
|
|
6194
6272
|
}), [e, t]);
|
|
6195
6273
|
}
|
|
6196
|
-
function
|
|
6274
|
+
function ss() {
|
|
6197
6275
|
var e = [...arguments];
|
|
6198
6276
|
return j(() => [...e].filter((e) => e != null), [...e]);
|
|
6199
6277
|
}
|
|
6200
|
-
var
|
|
6278
|
+
var cs = /*#__PURE__*/ Object.freeze({
|
|
6201
6279
|
x: 0,
|
|
6202
6280
|
y: 0
|
|
6203
6281
|
});
|
|
6204
|
-
function
|
|
6282
|
+
function ls(e, t) {
|
|
6205
6283
|
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
|
|
6206
6284
|
}
|
|
6207
|
-
function
|
|
6208
|
-
let n =
|
|
6285
|
+
function us(e, t) {
|
|
6286
|
+
let n = Wo(e);
|
|
6209
6287
|
if (!n) return "0 0";
|
|
6210
6288
|
let r = {
|
|
6211
6289
|
x: (n.x - t.left) / t.width * 100,
|
|
@@ -6213,15 +6291,15 @@ function ss(e, t) {
|
|
|
6213
6291
|
};
|
|
6214
6292
|
return r.x + "% " + r.y + "%";
|
|
6215
6293
|
}
|
|
6216
|
-
function
|
|
6294
|
+
function ds(e, t) {
|
|
6217
6295
|
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
6218
6296
|
return n - r;
|
|
6219
6297
|
}
|
|
6220
|
-
function
|
|
6298
|
+
function fs(e, t) {
|
|
6221
6299
|
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
6222
6300
|
return r - n;
|
|
6223
6301
|
}
|
|
6224
|
-
function
|
|
6302
|
+
function ps(e) {
|
|
6225
6303
|
let { left: t, top: n, height: r, width: i } = e;
|
|
6226
6304
|
return [
|
|
6227
6305
|
{
|
|
@@ -6242,17 +6320,17 @@ function us(e) {
|
|
|
6242
6320
|
}
|
|
6243
6321
|
];
|
|
6244
6322
|
}
|
|
6245
|
-
function
|
|
6323
|
+
function ms(e, t) {
|
|
6246
6324
|
if (!e || e.length === 0) return null;
|
|
6247
6325
|
let [n] = e;
|
|
6248
6326
|
return t ? n[t] : n;
|
|
6249
6327
|
}
|
|
6250
|
-
var
|
|
6251
|
-
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i =
|
|
6328
|
+
var hs = (e) => {
|
|
6329
|
+
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = ps(t), a = [];
|
|
6252
6330
|
for (let e of r) {
|
|
6253
6331
|
let { id: t } = e, r = n.get(t);
|
|
6254
6332
|
if (r) {
|
|
6255
|
-
let n =
|
|
6333
|
+
let n = ps(r), o = i.reduce((e, t, r) => e + ls(n[r], t), 0), s = Number((o / 4).toFixed(4));
|
|
6256
6334
|
a.push({
|
|
6257
6335
|
id: t,
|
|
6258
6336
|
data: {
|
|
@@ -6262,9 +6340,9 @@ var fs = (e) => {
|
|
|
6262
6340
|
});
|
|
6263
6341
|
}
|
|
6264
6342
|
}
|
|
6265
|
-
return a.sort(
|
|
6343
|
+
return a.sort(ds);
|
|
6266
6344
|
};
|
|
6267
|
-
function
|
|
6345
|
+
function gs(e, t) {
|
|
6268
6346
|
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
6347
|
if (r < i && n < a) {
|
|
6270
6348
|
let n = t.width * t.height, r = e.width * e.height, i = o * s, a = i / (n + r - i);
|
|
@@ -6272,12 +6350,12 @@ function ps(e, t) {
|
|
|
6272
6350
|
}
|
|
6273
6351
|
return 0;
|
|
6274
6352
|
}
|
|
6275
|
-
var
|
|
6353
|
+
var _s = (e) => {
|
|
6276
6354
|
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = [];
|
|
6277
6355
|
for (let e of r) {
|
|
6278
6356
|
let { id: r } = e, a = n.get(r);
|
|
6279
6357
|
if (a) {
|
|
6280
|
-
let n =
|
|
6358
|
+
let n = gs(a, t);
|
|
6281
6359
|
n > 0 && i.push({
|
|
6282
6360
|
id: r,
|
|
6283
6361
|
data: {
|
|
@@ -6287,22 +6365,22 @@ var ms = (e) => {
|
|
|
6287
6365
|
});
|
|
6288
6366
|
}
|
|
6289
6367
|
}
|
|
6290
|
-
return i.sort(
|
|
6368
|
+
return i.sort(fs);
|
|
6291
6369
|
};
|
|
6292
|
-
function
|
|
6370
|
+
function vs(e, t, n) {
|
|
6293
6371
|
return {
|
|
6294
6372
|
...e,
|
|
6295
6373
|
scaleX: t && n ? t.width / n.width : 1,
|
|
6296
6374
|
scaleY: t && n ? t.height / n.height : 1
|
|
6297
6375
|
};
|
|
6298
6376
|
}
|
|
6299
|
-
function
|
|
6377
|
+
function ys(e, t) {
|
|
6300
6378
|
return e && t ? {
|
|
6301
6379
|
x: e.left - t.left,
|
|
6302
6380
|
y: e.top - t.top
|
|
6303
|
-
} :
|
|
6381
|
+
} : cs;
|
|
6304
6382
|
}
|
|
6305
|
-
function
|
|
6383
|
+
function bs(e) {
|
|
6306
6384
|
return function(t) {
|
|
6307
6385
|
return [...arguments].slice(1).reduce((t, n) => ({
|
|
6308
6386
|
...t,
|
|
@@ -6313,8 +6391,8 @@ function _s(e) {
|
|
|
6313
6391
|
}), { ...t });
|
|
6314
6392
|
};
|
|
6315
6393
|
}
|
|
6316
|
-
var
|
|
6317
|
-
function
|
|
6394
|
+
var xs = /*#__PURE__*/ bs(1);
|
|
6395
|
+
function Ss(e) {
|
|
6318
6396
|
if (e.startsWith("matrix3d(")) {
|
|
6319
6397
|
let t = e.slice(9, -1).split(/, /);
|
|
6320
6398
|
return {
|
|
@@ -6334,8 +6412,8 @@ function ys(e) {
|
|
|
6334
6412
|
}
|
|
6335
6413
|
return null;
|
|
6336
6414
|
}
|
|
6337
|
-
function
|
|
6338
|
-
let r =
|
|
6415
|
+
function Cs(e, t, n) {
|
|
6416
|
+
let r = Ss(t);
|
|
6339
6417
|
if (!r) return e;
|
|
6340
6418
|
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
6419
|
return {
|
|
@@ -6347,13 +6425,13 @@ function bs(e, t, n) {
|
|
|
6347
6425
|
left: c
|
|
6348
6426
|
};
|
|
6349
6427
|
}
|
|
6350
|
-
var
|
|
6351
|
-
function
|
|
6352
|
-
t === void 0 && (t =
|
|
6428
|
+
var ws = { ignoreTransform: !1 };
|
|
6429
|
+
function Ts(e, t) {
|
|
6430
|
+
t === void 0 && (t = ws);
|
|
6353
6431
|
let n = e.getBoundingClientRect();
|
|
6354
6432
|
if (t.ignoreTransform) {
|
|
6355
|
-
let { transform: t, transformOrigin: r } =
|
|
6356
|
-
t && (n =
|
|
6433
|
+
let { transform: t, transformOrigin: r } = wo(e).getComputedStyle(e);
|
|
6434
|
+
t && (n = Cs(n, t, r));
|
|
6357
6435
|
}
|
|
6358
6436
|
let { top: r, left: i, width: a, height: o, bottom: s, right: c } = n;
|
|
6359
6437
|
return {
|
|
@@ -6365,10 +6443,10 @@ function Ss(e, t) {
|
|
|
6365
6443
|
right: c
|
|
6366
6444
|
};
|
|
6367
6445
|
}
|
|
6368
|
-
function
|
|
6369
|
-
return
|
|
6446
|
+
function Es(e) {
|
|
6447
|
+
return Ts(e, { ignoreTransform: !0 });
|
|
6370
6448
|
}
|
|
6371
|
-
function
|
|
6449
|
+
function Ds(e) {
|
|
6372
6450
|
let t = e.innerWidth, n = e.innerHeight;
|
|
6373
6451
|
return {
|
|
6374
6452
|
top: 0,
|
|
@@ -6379,11 +6457,11 @@ function ws(e) {
|
|
|
6379
6457
|
height: n
|
|
6380
6458
|
};
|
|
6381
6459
|
}
|
|
6382
|
-
function
|
|
6383
|
-
return t === void 0 && (t =
|
|
6460
|
+
function Os(e, t) {
|
|
6461
|
+
return t === void 0 && (t = wo(e).getComputedStyle(e)), t.position === "fixed";
|
|
6384
6462
|
}
|
|
6385
|
-
function
|
|
6386
|
-
t === void 0 && (t =
|
|
6463
|
+
function ks(e, t) {
|
|
6464
|
+
t === void 0 && (t = wo(e).getComputedStyle(e));
|
|
6387
6465
|
let n = /(auto|scroll|overlay)/;
|
|
6388
6466
|
return [
|
|
6389
6467
|
"overflow",
|
|
@@ -6394,48 +6472,48 @@ function Es(e, t) {
|
|
|
6394
6472
|
return typeof r == "string" ? n.test(r) : !1;
|
|
6395
6473
|
});
|
|
6396
6474
|
}
|
|
6397
|
-
function
|
|
6475
|
+
function As(e, t) {
|
|
6398
6476
|
let n = [];
|
|
6399
6477
|
function r(i) {
|
|
6400
6478
|
if (t != null && n.length >= t || !i) return n;
|
|
6401
|
-
if (
|
|
6402
|
-
if (!
|
|
6403
|
-
let a =
|
|
6404
|
-
return i !== e &&
|
|
6479
|
+
if (To(i) && i.scrollingElement != null && !n.includes(i.scrollingElement)) return n.push(i.scrollingElement), n;
|
|
6480
|
+
if (!Eo(i) || Do(i) || n.includes(i)) return n;
|
|
6481
|
+
let a = wo(e).getComputedStyle(i);
|
|
6482
|
+
return i !== e && ks(i, a) && n.push(i), Os(i, a) ? n : r(i.parentNode);
|
|
6405
6483
|
}
|
|
6406
6484
|
return e ? r(e) : n;
|
|
6407
6485
|
}
|
|
6408
|
-
function
|
|
6409
|
-
let [t] =
|
|
6486
|
+
function js(e) {
|
|
6487
|
+
let [t] = As(e, 1);
|
|
6410
6488
|
return t ?? null;
|
|
6411
6489
|
}
|
|
6412
|
-
function
|
|
6413
|
-
return !
|
|
6490
|
+
function Ms(e) {
|
|
6491
|
+
return !xo || !e ? null : So(e) ? e : Co(e) ? To(e) || e === Oo(e).scrollingElement ? window : Eo(e) ? e : null : null;
|
|
6414
6492
|
}
|
|
6415
|
-
function
|
|
6416
|
-
return
|
|
6493
|
+
function Ns(e) {
|
|
6494
|
+
return So(e) ? e.scrollX : e.scrollLeft;
|
|
6417
6495
|
}
|
|
6418
|
-
function
|
|
6419
|
-
return
|
|
6496
|
+
function Ps(e) {
|
|
6497
|
+
return So(e) ? e.scrollY : e.scrollTop;
|
|
6420
6498
|
}
|
|
6421
|
-
function
|
|
6499
|
+
function Fs(e) {
|
|
6422
6500
|
return {
|
|
6423
|
-
x:
|
|
6424
|
-
y:
|
|
6501
|
+
x: Ns(e),
|
|
6502
|
+
y: Ps(e)
|
|
6425
6503
|
};
|
|
6426
6504
|
}
|
|
6427
|
-
var
|
|
6505
|
+
var Is;
|
|
6428
6506
|
(function(e) {
|
|
6429
6507
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
6430
|
-
})(
|
|
6431
|
-
function
|
|
6432
|
-
return !
|
|
6508
|
+
})(Is ||= {});
|
|
6509
|
+
function Ls(e) {
|
|
6510
|
+
return !xo || !e ? !1 : e === document.scrollingElement;
|
|
6433
6511
|
}
|
|
6434
|
-
function
|
|
6512
|
+
function Rs(e) {
|
|
6435
6513
|
let t = {
|
|
6436
6514
|
x: 0,
|
|
6437
6515
|
y: 0
|
|
6438
|
-
}, n =
|
|
6516
|
+
}, n = Ls(e) ? {
|
|
6439
6517
|
height: window.innerHeight,
|
|
6440
6518
|
width: window.innerWidth
|
|
6441
6519
|
} : {
|
|
@@ -6454,14 +6532,14 @@ function Fs(e) {
|
|
|
6454
6532
|
minScroll: t
|
|
6455
6533
|
};
|
|
6456
6534
|
}
|
|
6457
|
-
var
|
|
6535
|
+
var zs = {
|
|
6458
6536
|
x: .2,
|
|
6459
6537
|
y: .2
|
|
6460
6538
|
};
|
|
6461
|
-
function
|
|
6539
|
+
function Bs(e, t, n, r, i) {
|
|
6462
6540
|
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 } =
|
|
6541
|
+
r === void 0 && (r = 10), i === void 0 && (i = zs);
|
|
6542
|
+
let { isTop: l, isBottom: u, isLeft: d, isRight: f } = Rs(e), p = {
|
|
6465
6543
|
x: 0,
|
|
6466
6544
|
y: 0
|
|
6467
6545
|
}, m = {
|
|
@@ -6471,12 +6549,12 @@ function Ls(e, t, n, r, i) {
|
|
|
6471
6549
|
height: t.height * i.y,
|
|
6472
6550
|
width: t.width * i.x
|
|
6473
6551
|
};
|
|
6474
|
-
return !l && a <= t.top + h.height ? (p.y =
|
|
6552
|
+
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
6553
|
direction: p,
|
|
6476
6554
|
speed: m
|
|
6477
6555
|
};
|
|
6478
6556
|
}
|
|
6479
|
-
function
|
|
6557
|
+
function Vs(e) {
|
|
6480
6558
|
if (e === document.scrollingElement) {
|
|
6481
6559
|
let { innerWidth: e, innerHeight: t } = window;
|
|
6482
6560
|
return {
|
|
@@ -6498,37 +6576,37 @@ function Rs(e) {
|
|
|
6498
6576
|
height: e.clientHeight
|
|
6499
6577
|
};
|
|
6500
6578
|
}
|
|
6501
|
-
function
|
|
6502
|
-
return e.reduce((e, t) =>
|
|
6579
|
+
function Hs(e) {
|
|
6580
|
+
return e.reduce((e, t) => zo(e, Fs(t)), cs);
|
|
6503
6581
|
}
|
|
6504
|
-
function
|
|
6505
|
-
return e.reduce((e, t) => e +
|
|
6582
|
+
function Us(e) {
|
|
6583
|
+
return e.reduce((e, t) => e + Ns(t), 0);
|
|
6506
6584
|
}
|
|
6507
|
-
function
|
|
6508
|
-
return e.reduce((e, t) => e +
|
|
6585
|
+
function Ws(e) {
|
|
6586
|
+
return e.reduce((e, t) => e + Ps(t), 0);
|
|
6509
6587
|
}
|
|
6510
|
-
function
|
|
6511
|
-
if (t === void 0 && (t =
|
|
6588
|
+
function Gs(e, t) {
|
|
6589
|
+
if (t === void 0 && (t = Ts), !e) return;
|
|
6512
6590
|
let { top: n, left: r, bottom: i, right: a } = t(e);
|
|
6513
|
-
|
|
6591
|
+
js(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
6514
6592
|
block: "center",
|
|
6515
6593
|
inline: "center"
|
|
6516
6594
|
});
|
|
6517
6595
|
}
|
|
6518
|
-
var
|
|
6596
|
+
var Ks = [[
|
|
6519
6597
|
"x",
|
|
6520
6598
|
["left", "right"],
|
|
6521
|
-
|
|
6599
|
+
Us
|
|
6522
6600
|
], [
|
|
6523
6601
|
"y",
|
|
6524
6602
|
["top", "bottom"],
|
|
6525
|
-
|
|
6526
|
-
]],
|
|
6603
|
+
Ws
|
|
6604
|
+
]], qs = class {
|
|
6527
6605
|
constructor(e, t) {
|
|
6528
6606
|
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 =
|
|
6607
|
+
let n = As(t), r = Hs(n);
|
|
6530
6608
|
this.rect = { ...e }, this.width = e.width, this.height = e.height;
|
|
6531
|
-
for (let [e, t, i] of
|
|
6609
|
+
for (let [e, t, i] of Ks) for (let a of t) Object.defineProperty(this, a, {
|
|
6532
6610
|
get: () => {
|
|
6533
6611
|
let t = i(n), o = r[e] - t;
|
|
6534
6612
|
return this.rect[a] + o;
|
|
@@ -6537,7 +6615,7 @@ var Us = [[
|
|
|
6537
6615
|
});
|
|
6538
6616
|
Object.defineProperty(this, "rect", { enumerable: !1 });
|
|
6539
6617
|
}
|
|
6540
|
-
},
|
|
6618
|
+
}, Js = class {
|
|
6541
6619
|
constructor(e) {
|
|
6542
6620
|
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
6543
6621
|
this.listeners.forEach((e) => this.target?.removeEventListener(...e));
|
|
@@ -6552,29 +6630,29 @@ var Us = [[
|
|
|
6552
6630
|
]);
|
|
6553
6631
|
}
|
|
6554
6632
|
};
|
|
6555
|
-
function
|
|
6556
|
-
let { EventTarget: t } =
|
|
6557
|
-
return e instanceof t ? e :
|
|
6633
|
+
function Ys(e) {
|
|
6634
|
+
let { EventTarget: t } = wo(e);
|
|
6635
|
+
return e instanceof t ? e : Oo(e);
|
|
6558
6636
|
}
|
|
6559
|
-
function
|
|
6637
|
+
function Xs(e, t) {
|
|
6560
6638
|
let n = Math.abs(e.x), r = Math.abs(e.y);
|
|
6561
6639
|
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
6640
|
}
|
|
6563
|
-
var
|
|
6641
|
+
var Zs;
|
|
6564
6642
|
(function(e) {
|
|
6565
6643
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
6566
|
-
})(
|
|
6567
|
-
function
|
|
6644
|
+
})(Zs ||= {});
|
|
6645
|
+
function Qs(e) {
|
|
6568
6646
|
e.preventDefault();
|
|
6569
6647
|
}
|
|
6570
|
-
function
|
|
6648
|
+
function $s(e) {
|
|
6571
6649
|
e.stopPropagation();
|
|
6572
6650
|
}
|
|
6573
6651
|
var $;
|
|
6574
6652
|
(function(e) {
|
|
6575
6653
|
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
6654
|
})($ ||= {});
|
|
6577
|
-
var
|
|
6655
|
+
var ec = {
|
|
6578
6656
|
start: [$.Space, $.Enter],
|
|
6579
6657
|
cancel: [$.Esc],
|
|
6580
6658
|
end: [
|
|
@@ -6582,7 +6660,7 @@ var Zs = {
|
|
|
6582
6660
|
$.Enter,
|
|
6583
6661
|
$.Tab
|
|
6584
6662
|
]
|
|
6585
|
-
},
|
|
6663
|
+
}, tc = (e, t) => {
|
|
6586
6664
|
let { currentCoordinates: n } = t;
|
|
6587
6665
|
switch (e.code) {
|
|
6588
6666
|
case $.Right: return {
|
|
@@ -6602,22 +6680,22 @@ var Zs = {
|
|
|
6602
6680
|
y: n.y - 25
|
|
6603
6681
|
};
|
|
6604
6682
|
}
|
|
6605
|
-
},
|
|
6683
|
+
}, nc = class {
|
|
6606
6684
|
constructor(e) {
|
|
6607
6685
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
|
|
6608
6686
|
let { event: { target: t } } = e;
|
|
6609
|
-
this.props = e, this.listeners = new
|
|
6687
|
+
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
6688
|
}
|
|
6611
6689
|
attach() {
|
|
6612
|
-
this.handleStart(), this.windowListeners.add(
|
|
6690
|
+
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
6691
|
}
|
|
6614
6692
|
handleStart() {
|
|
6615
6693
|
let { activeNode: e, onStart: t } = this.props, n = e.node.current;
|
|
6616
|
-
n &&
|
|
6694
|
+
n && Gs(n), t(cs);
|
|
6617
6695
|
}
|
|
6618
6696
|
handleKeyDown(e) {
|
|
6619
|
-
if (
|
|
6620
|
-
let { active: t, context: n, options: r } = this.props, { keyboardCodes: i =
|
|
6697
|
+
if (Ho(e)) {
|
|
6698
|
+
let { active: t, context: n, options: r } = this.props, { keyboardCodes: i = ec, coordinateGetter: a = tc, scrollBehavior: o = "smooth" } = r, { code: s } = e;
|
|
6621
6699
|
if (i.end.includes(s)) {
|
|
6622
6700
|
this.handleEnd(e);
|
|
6623
6701
|
return;
|
|
@@ -6629,7 +6707,7 @@ var Zs = {
|
|
|
6629
6707
|
let { collisionRect: c } = n.current, l = c ? {
|
|
6630
6708
|
x: c.left,
|
|
6631
6709
|
y: c.top
|
|
6632
|
-
} :
|
|
6710
|
+
} : cs;
|
|
6633
6711
|
this.referenceCoordinates ||= l;
|
|
6634
6712
|
let u = a(e, {
|
|
6635
6713
|
active: t,
|
|
@@ -6637,12 +6715,12 @@ var Zs = {
|
|
|
6637
6715
|
currentCoordinates: l
|
|
6638
6716
|
});
|
|
6639
6717
|
if (u) {
|
|
6640
|
-
let t =
|
|
6718
|
+
let t = Bo(u, l), r = {
|
|
6641
6719
|
x: 0,
|
|
6642
6720
|
y: 0
|
|
6643
6721
|
}, { scrollableAncestors: i } = n.current;
|
|
6644
6722
|
for (let n of i) {
|
|
6645
|
-
let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } =
|
|
6723
|
+
let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } = Rs(n), p = Vs(n), m = {
|
|
6646
6724
|
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
6725
|
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
6726
|
}, h = i === $.Right && !s || i === $.Left && !c, g = i === $.Down && !l || i === $.Up && !a;
|
|
@@ -6676,7 +6754,7 @@ var Zs = {
|
|
|
6676
6754
|
break;
|
|
6677
6755
|
}
|
|
6678
6756
|
}
|
|
6679
|
-
this.handleMove(e,
|
|
6757
|
+
this.handleMove(e, zo(Bo(u, this.referenceCoordinates), r));
|
|
6680
6758
|
}
|
|
6681
6759
|
}
|
|
6682
6760
|
}
|
|
@@ -6696,10 +6774,10 @@ var Zs = {
|
|
|
6696
6774
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
6697
6775
|
}
|
|
6698
6776
|
};
|
|
6699
|
-
|
|
6777
|
+
nc.activators = [{
|
|
6700
6778
|
eventName: "onKeyDown",
|
|
6701
6779
|
handler: (e, t, n) => {
|
|
6702
|
-
let { keyboardCodes: r =
|
|
6780
|
+
let { keyboardCodes: r = ec, onActivation: i } = t, { active: a } = n, { code: o } = e.nativeEvent;
|
|
6703
6781
|
if (r.start.includes(o)) {
|
|
6704
6782
|
let t = a.activatorNode.current;
|
|
6705
6783
|
return t && e.target !== t ? !1 : (e.preventDefault(), i?.({ event: e.nativeEvent }), !0);
|
|
@@ -6707,31 +6785,31 @@ $s.activators = [{
|
|
|
6707
6785
|
return !1;
|
|
6708
6786
|
}
|
|
6709
6787
|
}];
|
|
6710
|
-
function
|
|
6788
|
+
function rc(e) {
|
|
6711
6789
|
return !!(e && "distance" in e);
|
|
6712
6790
|
}
|
|
6713
|
-
function
|
|
6791
|
+
function ic(e) {
|
|
6714
6792
|
return !!(e && "delay" in e);
|
|
6715
6793
|
}
|
|
6716
|
-
var
|
|
6794
|
+
var ac = class {
|
|
6717
6795
|
constructor(e, t, n) {
|
|
6718
|
-
n === void 0 && (n =
|
|
6796
|
+
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
6797
|
let { event: r } = e, { target: i } = r;
|
|
6720
|
-
this.props = e, this.events = t, this.document =
|
|
6798
|
+
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
6799
|
}
|
|
6722
6800
|
attach() {
|
|
6723
6801
|
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(
|
|
6802
|
+
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
6803
|
if (n != null && n({
|
|
6726
6804
|
event: this.props.event,
|
|
6727
6805
|
activeNode: this.props.activeNode,
|
|
6728
6806
|
options: this.props.options
|
|
6729
6807
|
})) return this.handleStart();
|
|
6730
|
-
if (
|
|
6808
|
+
if (ic(t)) {
|
|
6731
6809
|
this.timeoutId = setTimeout(this.handleStart, t.delay), this.handlePending(t);
|
|
6732
6810
|
return;
|
|
6733
6811
|
}
|
|
6734
|
-
if (
|
|
6812
|
+
if (rc(t)) {
|
|
6735
6813
|
this.handlePending(t);
|
|
6736
6814
|
return;
|
|
6737
6815
|
}
|
|
@@ -6747,18 +6825,18 @@ var nc = class {
|
|
|
6747
6825
|
}
|
|
6748
6826
|
handleStart() {
|
|
6749
6827
|
let { initialCoordinates: e } = this, { onStart: t } = this.props;
|
|
6750
|
-
e && (this.activated = !0, this.documentListeners.add(
|
|
6828
|
+
e && (this.activated = !0, this.documentListeners.add(Zs.Click, $s, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(Zs.SelectionChange, this.removeTextSelection), t(e));
|
|
6751
6829
|
}
|
|
6752
6830
|
handleMove(e) {
|
|
6753
6831
|
let { activated: t, initialCoordinates: n, props: r } = this, { onMove: i, options: { activationConstraint: a } } = r;
|
|
6754
6832
|
if (!n) return;
|
|
6755
|
-
let o =
|
|
6833
|
+
let o = Wo(e) ?? cs, s = Bo(n, o);
|
|
6756
6834
|
if (!t && a) {
|
|
6757
|
-
if (
|
|
6758
|
-
if (a.tolerance != null &&
|
|
6759
|
-
if (
|
|
6835
|
+
if (rc(a)) {
|
|
6836
|
+
if (a.tolerance != null && Xs(s, a.tolerance)) return this.handleCancel();
|
|
6837
|
+
if (Xs(s, a.distance)) return this.handleStart();
|
|
6760
6838
|
}
|
|
6761
|
-
if (
|
|
6839
|
+
if (ic(a) && Xs(s, a.tolerance)) return this.handleCancel();
|
|
6762
6840
|
this.handlePending(a, s);
|
|
6763
6841
|
return;
|
|
6764
6842
|
}
|
|
@@ -6779,80 +6857,80 @@ var nc = class {
|
|
|
6779
6857
|
var e;
|
|
6780
6858
|
(e = this.document.getSelection()) == null || e.removeAllRanges();
|
|
6781
6859
|
}
|
|
6782
|
-
},
|
|
6860
|
+
}, oc = {
|
|
6783
6861
|
cancel: { name: "pointercancel" },
|
|
6784
6862
|
move: { name: "pointermove" },
|
|
6785
6863
|
end: { name: "pointerup" }
|
|
6786
|
-
},
|
|
6864
|
+
}, sc = class extends ac {
|
|
6787
6865
|
constructor(e) {
|
|
6788
|
-
let { event: t } = e, n =
|
|
6789
|
-
super(e,
|
|
6866
|
+
let { event: t } = e, n = Oo(t.target);
|
|
6867
|
+
super(e, oc, n);
|
|
6790
6868
|
}
|
|
6791
6869
|
};
|
|
6792
|
-
|
|
6870
|
+
sc.activators = [{
|
|
6793
6871
|
eventName: "onPointerDown",
|
|
6794
6872
|
handler: (e, t) => {
|
|
6795
6873
|
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
6796
6874
|
return !n.isPrimary || n.button !== 0 ? !1 : (r?.({ event: n }), !0);
|
|
6797
6875
|
}
|
|
6798
6876
|
}];
|
|
6799
|
-
var
|
|
6877
|
+
var cc = {
|
|
6800
6878
|
move: { name: "mousemove" },
|
|
6801
6879
|
end: { name: "mouseup" }
|
|
6802
|
-
},
|
|
6880
|
+
}, lc;
|
|
6803
6881
|
(function(e) {
|
|
6804
6882
|
e[e.RightClick = 2] = "RightClick";
|
|
6805
|
-
})(
|
|
6806
|
-
var
|
|
6883
|
+
})(lc ||= {});
|
|
6884
|
+
var uc = class extends ac {
|
|
6807
6885
|
constructor(e) {
|
|
6808
|
-
super(e,
|
|
6886
|
+
super(e, cc, Oo(e.event.target));
|
|
6809
6887
|
}
|
|
6810
6888
|
};
|
|
6811
|
-
|
|
6889
|
+
uc.activators = [{
|
|
6812
6890
|
eventName: "onMouseDown",
|
|
6813
6891
|
handler: (e, t) => {
|
|
6814
6892
|
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
6815
|
-
return n.button ===
|
|
6893
|
+
return n.button === lc.RightClick ? !1 : (r?.({ event: n }), !0);
|
|
6816
6894
|
}
|
|
6817
6895
|
}];
|
|
6818
|
-
var
|
|
6896
|
+
var dc = {
|
|
6819
6897
|
cancel: { name: "touchcancel" },
|
|
6820
6898
|
move: { name: "touchmove" },
|
|
6821
6899
|
end: { name: "touchend" }
|
|
6822
|
-
},
|
|
6900
|
+
}, fc = class extends ac {
|
|
6823
6901
|
constructor(e) {
|
|
6824
|
-
super(e,
|
|
6902
|
+
super(e, dc);
|
|
6825
6903
|
}
|
|
6826
6904
|
static setup() {
|
|
6827
|
-
return window.addEventListener(
|
|
6905
|
+
return window.addEventListener(dc.move.name, e, {
|
|
6828
6906
|
capture: !1,
|
|
6829
6907
|
passive: !1
|
|
6830
6908
|
}), function() {
|
|
6831
|
-
window.removeEventListener(
|
|
6909
|
+
window.removeEventListener(dc.move.name, e);
|
|
6832
6910
|
};
|
|
6833
6911
|
function e() {}
|
|
6834
6912
|
}
|
|
6835
6913
|
};
|
|
6836
|
-
|
|
6914
|
+
fc.activators = [{
|
|
6837
6915
|
eventName: "onTouchStart",
|
|
6838
6916
|
handler: (e, t) => {
|
|
6839
6917
|
let { nativeEvent: n } = e, { onActivation: r } = t, { touches: i } = n;
|
|
6840
6918
|
return i.length > 1 ? !1 : (r?.({ event: n }), !0);
|
|
6841
6919
|
}
|
|
6842
6920
|
}];
|
|
6843
|
-
var
|
|
6921
|
+
var pc;
|
|
6844
6922
|
(function(e) {
|
|
6845
6923
|
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
6846
|
-
})(
|
|
6847
|
-
var
|
|
6924
|
+
})(pc ||= {});
|
|
6925
|
+
var mc;
|
|
6848
6926
|
(function(e) {
|
|
6849
6927
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
6850
|
-
})(
|
|
6851
|
-
function
|
|
6852
|
-
let { acceleration: t, activator: n =
|
|
6928
|
+
})(mc ||= {});
|
|
6929
|
+
function hc(e) {
|
|
6930
|
+
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
6931
|
delta: d,
|
|
6854
6932
|
disabled: !a
|
|
6855
|
-
}), [m, h] =
|
|
6933
|
+
}), [m, h] = jo(), g = N({
|
|
6856
6934
|
x: 0,
|
|
6857
6935
|
y: 0
|
|
6858
6936
|
}), _ = N({
|
|
@@ -6860,13 +6938,13 @@ function fc(e) {
|
|
|
6860
6938
|
y: 0
|
|
6861
6939
|
}), v = j(() => {
|
|
6862
6940
|
switch (n) {
|
|
6863
|
-
case
|
|
6941
|
+
case pc.Pointer: return c ? {
|
|
6864
6942
|
top: c.y,
|
|
6865
6943
|
bottom: c.y,
|
|
6866
6944
|
left: c.x,
|
|
6867
6945
|
right: c.x
|
|
6868
6946
|
} : null;
|
|
6869
|
-
case
|
|
6947
|
+
case pc.DraggableRect: return i;
|
|
6870
6948
|
}
|
|
6871
6949
|
}, [
|
|
6872
6950
|
n,
|
|
@@ -6877,7 +6955,7 @@ function fc(e) {
|
|
|
6877
6955
|
if (!e) return;
|
|
6878
6956
|
let t = g.current.x * _.current.x, n = g.current.y * _.current.y;
|
|
6879
6957
|
e.scrollBy(t, n);
|
|
6880
|
-
}, []), x = j(() => s ===
|
|
6958
|
+
}, []), x = j(() => s === mc.TreeOrder ? [...l].reverse() : l, [s, l]);
|
|
6881
6959
|
k(() => {
|
|
6882
6960
|
if (!a || !l.length || !v) {
|
|
6883
6961
|
h();
|
|
@@ -6887,7 +6965,7 @@ function fc(e) {
|
|
|
6887
6965
|
if (r?.(e) === !1) continue;
|
|
6888
6966
|
let n = l.indexOf(e), i = u[n];
|
|
6889
6967
|
if (!i) continue;
|
|
6890
|
-
let { direction: a, speed: s } =
|
|
6968
|
+
let { direction: a, speed: s } = Bs(e, i, v, t, f);
|
|
6891
6969
|
for (let e of ["x", "y"]) p[e][a[e]] || (s[e] = 0, a[e] = 0);
|
|
6892
6970
|
if (s.x > 0 || s.y > 0) {
|
|
6893
6971
|
h(), y.current = e, m(b, o), g.current = s, _.current = a;
|
|
@@ -6917,32 +6995,32 @@ function fc(e) {
|
|
|
6917
6995
|
JSON.stringify(f)
|
|
6918
6996
|
]);
|
|
6919
6997
|
}
|
|
6920
|
-
var
|
|
6998
|
+
var gc = {
|
|
6921
6999
|
x: {
|
|
6922
|
-
[
|
|
6923
|
-
[
|
|
7000
|
+
[Is.Backward]: !1,
|
|
7001
|
+
[Is.Forward]: !1
|
|
6924
7002
|
},
|
|
6925
7003
|
y: {
|
|
6926
|
-
[
|
|
6927
|
-
[
|
|
7004
|
+
[Is.Backward]: !1,
|
|
7005
|
+
[Is.Forward]: !1
|
|
6928
7006
|
}
|
|
6929
7007
|
};
|
|
6930
|
-
function
|
|
6931
|
-
let { delta: t, disabled: n } = e, r =
|
|
6932
|
-
return
|
|
6933
|
-
if (n || !r || !e) return
|
|
7008
|
+
function _c(e) {
|
|
7009
|
+
let { delta: t, disabled: n } = e, r = Fo(t);
|
|
7010
|
+
return No((e) => {
|
|
7011
|
+
if (n || !r || !e) return gc;
|
|
6934
7012
|
let i = {
|
|
6935
7013
|
x: Math.sign(t.x - r.x),
|
|
6936
7014
|
y: Math.sign(t.y - r.y)
|
|
6937
7015
|
};
|
|
6938
7016
|
return {
|
|
6939
7017
|
x: {
|
|
6940
|
-
[
|
|
6941
|
-
[
|
|
7018
|
+
[Is.Backward]: e.x[Is.Backward] || i.x === -1,
|
|
7019
|
+
[Is.Forward]: e.x[Is.Forward] || i.x === 1
|
|
6942
7020
|
},
|
|
6943
7021
|
y: {
|
|
6944
|
-
[
|
|
6945
|
-
[
|
|
7022
|
+
[Is.Backward]: e.y[Is.Backward] || i.y === -1,
|
|
7023
|
+
[Is.Forward]: e.y[Is.Forward] || i.y === 1
|
|
6946
7024
|
}
|
|
6947
7025
|
};
|
|
6948
7026
|
}, [
|
|
@@ -6951,11 +7029,11 @@ function mc(e) {
|
|
|
6951
7029
|
r
|
|
6952
7030
|
]);
|
|
6953
7031
|
}
|
|
6954
|
-
function
|
|
7032
|
+
function vc(e, t) {
|
|
6955
7033
|
let n = t == null ? void 0 : e.get(t), r = n ? n.node.current : null;
|
|
6956
|
-
return
|
|
7034
|
+
return No((e) => t == null ? null : r ?? e ?? null, [r, t]);
|
|
6957
7035
|
}
|
|
6958
|
-
function
|
|
7036
|
+
function yc(e, t) {
|
|
6959
7037
|
return j(() => e.reduce((e, n) => {
|
|
6960
7038
|
let { sensor: r } = n, i = r.activators.map((e) => ({
|
|
6961
7039
|
eventName: e.eventName,
|
|
@@ -6964,21 +7042,21 @@ function gc(e, t) {
|
|
|
6964
7042
|
return [...e, ...i];
|
|
6965
7043
|
}, []), [e, t]);
|
|
6966
7044
|
}
|
|
6967
|
-
var
|
|
7045
|
+
var bc;
|
|
6968
7046
|
(function(e) {
|
|
6969
7047
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
6970
|
-
})(
|
|
6971
|
-
var
|
|
7048
|
+
})(bc ||= {});
|
|
7049
|
+
var xc;
|
|
6972
7050
|
(function(e) {
|
|
6973
7051
|
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 =
|
|
7052
|
+
})(xc ||= {});
|
|
7053
|
+
var Sc = /*#__PURE__*/ new Map();
|
|
7054
|
+
function Cc(e, t) {
|
|
7055
|
+
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
7056
|
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 ===
|
|
7057
|
+
}, [f]), m = N(null), h = No((t) => {
|
|
7058
|
+
if (d && !n) return Sc;
|
|
7059
|
+
if (!t || t === Sc || u.current !== e || a != null) {
|
|
6982
7060
|
let t = /* @__PURE__ */ new Map();
|
|
6983
7061
|
for (let n of e) {
|
|
6984
7062
|
if (!n) continue;
|
|
@@ -6986,7 +7064,7 @@ function bc(e, t) {
|
|
|
6986
7064
|
t.set(n.id, n.rect.current);
|
|
6987
7065
|
continue;
|
|
6988
7066
|
}
|
|
6989
|
-
let e = n.node.current, r = e ? new
|
|
7067
|
+
let e = n.node.current, r = e ? new qs(c(e), e) : null;
|
|
6990
7068
|
n.rect.current = r, r && t.set(n.id, r);
|
|
6991
7069
|
}
|
|
6992
7070
|
return t;
|
|
@@ -7021,39 +7099,39 @@ function bc(e, t) {
|
|
|
7021
7099
|
};
|
|
7022
7100
|
function g() {
|
|
7023
7101
|
switch (l) {
|
|
7024
|
-
case
|
|
7025
|
-
case
|
|
7102
|
+
case bc.Always: return !1;
|
|
7103
|
+
case bc.BeforeDragging: return n;
|
|
7026
7104
|
default: return !n;
|
|
7027
7105
|
}
|
|
7028
7106
|
}
|
|
7029
7107
|
}
|
|
7030
|
-
function
|
|
7031
|
-
return
|
|
7108
|
+
function wc(e, t) {
|
|
7109
|
+
return No((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
7032
7110
|
}
|
|
7033
|
-
function
|
|
7034
|
-
return
|
|
7111
|
+
function Tc(e, t) {
|
|
7112
|
+
return wc(e, t);
|
|
7035
7113
|
}
|
|
7036
|
-
function
|
|
7037
|
-
let { callback: t, disabled: n } = e, r =
|
|
7114
|
+
function Ec(e) {
|
|
7115
|
+
let { callback: t, disabled: n } = e, r = Ao(t), i = j(() => {
|
|
7038
7116
|
if (n || typeof window > "u" || window.MutationObserver === void 0) return;
|
|
7039
7117
|
let { MutationObserver: e } = window;
|
|
7040
7118
|
return new e(r);
|
|
7041
7119
|
}, [r, n]);
|
|
7042
7120
|
return k(() => () => i?.disconnect(), [i]), i;
|
|
7043
7121
|
}
|
|
7044
|
-
function
|
|
7045
|
-
let { callback: t, disabled: n } = e, r =
|
|
7122
|
+
function Dc(e) {
|
|
7123
|
+
let { callback: t, disabled: n } = e, r = Ao(t), i = j(() => {
|
|
7046
7124
|
if (n || typeof window > "u" || window.ResizeObserver === void 0) return;
|
|
7047
7125
|
let { ResizeObserver: e } = window;
|
|
7048
7126
|
return new e(r);
|
|
7049
7127
|
}, [n]);
|
|
7050
7128
|
return k(() => () => i?.disconnect(), [i]), i;
|
|
7051
7129
|
}
|
|
7052
|
-
function
|
|
7053
|
-
return new
|
|
7130
|
+
function Oc(e) {
|
|
7131
|
+
return new qs(Ts(e), e);
|
|
7054
7132
|
}
|
|
7055
|
-
function
|
|
7056
|
-
t === void 0 && (t =
|
|
7133
|
+
function kc(e, t, n) {
|
|
7134
|
+
t === void 0 && (t = Oc);
|
|
7057
7135
|
let [r, i] = P(null);
|
|
7058
7136
|
function a() {
|
|
7059
7137
|
i((r) => {
|
|
@@ -7063,7 +7141,7 @@ function Ec(e, t, n) {
|
|
|
7063
7141
|
return JSON.stringify(r) === JSON.stringify(i) ? r : i;
|
|
7064
7142
|
});
|
|
7065
7143
|
}
|
|
7066
|
-
let o =
|
|
7144
|
+
let o = Ec({ callback(t) {
|
|
7067
7145
|
if (e) for (let n of t) {
|
|
7068
7146
|
let { type: t, target: r } = n;
|
|
7069
7147
|
if (t === "childList" && r instanceof HTMLElement && r.contains(e)) {
|
|
@@ -7071,36 +7149,36 @@ function Ec(e, t, n) {
|
|
|
7071
7149
|
break;
|
|
7072
7150
|
}
|
|
7073
7151
|
}
|
|
7074
|
-
} }), s =
|
|
7075
|
-
return
|
|
7152
|
+
} }), s = Dc({ callback: a });
|
|
7153
|
+
return ko(() => {
|
|
7076
7154
|
a(), e ? (s?.observe(e), o?.observe(document.body, {
|
|
7077
7155
|
childList: !0,
|
|
7078
7156
|
subtree: !0
|
|
7079
7157
|
})) : (s?.disconnect(), o?.disconnect());
|
|
7080
7158
|
}, [e]), r;
|
|
7081
7159
|
}
|
|
7082
|
-
function
|
|
7083
|
-
return
|
|
7160
|
+
function Ac(e) {
|
|
7161
|
+
return ys(e, wc(e));
|
|
7084
7162
|
}
|
|
7085
|
-
var
|
|
7086
|
-
function
|
|
7087
|
-
let t = N(e), n =
|
|
7163
|
+
var jc = [];
|
|
7164
|
+
function Mc(e) {
|
|
7165
|
+
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
7166
|
return k(() => {
|
|
7089
7167
|
t.current = e;
|
|
7090
7168
|
}, [e]), n;
|
|
7091
7169
|
}
|
|
7092
|
-
function
|
|
7170
|
+
function Nc(e) {
|
|
7093
7171
|
let [t, n] = P(null), r = N(e), i = D((e) => {
|
|
7094
|
-
let t =
|
|
7095
|
-
t && n((e) => e ? (e.set(t,
|
|
7172
|
+
let t = Ms(e.target);
|
|
7173
|
+
t && n((e) => e ? (e.set(t, Fs(t)), new Map(e)) : null);
|
|
7096
7174
|
}, []);
|
|
7097
7175
|
return k(() => {
|
|
7098
7176
|
let t = r.current;
|
|
7099
7177
|
if (e !== t) {
|
|
7100
7178
|
a(t);
|
|
7101
7179
|
let o = e.map((e) => {
|
|
7102
|
-
let t =
|
|
7103
|
-
return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t,
|
|
7180
|
+
let t = Ms(e);
|
|
7181
|
+
return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t, Fs(t)]) : null;
|
|
7104
7182
|
}).filter((e) => e != null);
|
|
7105
7183
|
n(o.length ? new Map(o) : null), r.current = e;
|
|
7106
7184
|
}
|
|
@@ -7109,24 +7187,24 @@ function Ac(e) {
|
|
|
7109
7187
|
};
|
|
7110
7188
|
function a(e) {
|
|
7111
7189
|
e.forEach((e) => {
|
|
7112
|
-
|
|
7190
|
+
Ms(e)?.removeEventListener("scroll", i);
|
|
7113
7191
|
});
|
|
7114
7192
|
}
|
|
7115
|
-
}, [i, e]), j(() => e.length ? t ? Array.from(t.values()).reduce((e, t) =>
|
|
7193
|
+
}, [i, e]), j(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => zo(e, t), cs) : Hs(e) : cs, [e, t]);
|
|
7116
7194
|
}
|
|
7117
|
-
function
|
|
7195
|
+
function Pc(e, t) {
|
|
7118
7196
|
t === void 0 && (t = []);
|
|
7119
7197
|
let n = N(null);
|
|
7120
7198
|
return k(() => {
|
|
7121
7199
|
n.current = null;
|
|
7122
7200
|
}, t), k(() => {
|
|
7123
|
-
let t = e !==
|
|
7201
|
+
let t = e !== cs;
|
|
7124
7202
|
t && !n.current && (n.current = e), !t && n.current && (n.current = null);
|
|
7125
|
-
}, [e]), n.current ?
|
|
7203
|
+
}, [e]), n.current ? Bo(e, n.current) : cs;
|
|
7126
7204
|
}
|
|
7127
|
-
function
|
|
7205
|
+
function Fc(e) {
|
|
7128
7206
|
k(() => {
|
|
7129
|
-
if (!
|
|
7207
|
+
if (!xo) return;
|
|
7130
7208
|
let t = e.map((e) => {
|
|
7131
7209
|
let { sensor: t } = e;
|
|
7132
7210
|
return t.setup == null ? void 0 : t.setup();
|
|
@@ -7139,7 +7217,7 @@ function Mc(e) {
|
|
|
7139
7217
|
return t;
|
|
7140
7218
|
}));
|
|
7141
7219
|
}
|
|
7142
|
-
function
|
|
7220
|
+
function Ic(e, t) {
|
|
7143
7221
|
return j(() => e.reduce((e, n) => {
|
|
7144
7222
|
let { eventName: r, handler: i } = n;
|
|
7145
7223
|
return e[r] = (e) => {
|
|
@@ -7147,30 +7225,30 @@ function Nc(e, t) {
|
|
|
7147
7225
|
}, e;
|
|
7148
7226
|
}, {}), [e, t]);
|
|
7149
7227
|
}
|
|
7150
|
-
function
|
|
7151
|
-
return j(() => e ?
|
|
7228
|
+
function Lc(e) {
|
|
7229
|
+
return j(() => e ? Ds(e) : null, [e]);
|
|
7152
7230
|
}
|
|
7153
|
-
var
|
|
7154
|
-
function
|
|
7155
|
-
t === void 0 && (t =
|
|
7156
|
-
let [n] = e, r =
|
|
7231
|
+
var Rc = [];
|
|
7232
|
+
function zc(e, t) {
|
|
7233
|
+
t === void 0 && (t = Ts);
|
|
7234
|
+
let [n] = e, r = Lc(n ? wo(n) : null), [i, a] = P(Rc);
|
|
7157
7235
|
function o() {
|
|
7158
|
-
a(() => e.length ? e.map((e) =>
|
|
7236
|
+
a(() => e.length ? e.map((e) => Ls(e) ? r : new qs(t(e), e)) : Rc);
|
|
7159
7237
|
}
|
|
7160
|
-
let s =
|
|
7161
|
-
return
|
|
7238
|
+
let s = Dc({ callback: o });
|
|
7239
|
+
return ko(() => {
|
|
7162
7240
|
s?.disconnect(), o(), e.forEach((e) => s?.observe(e));
|
|
7163
7241
|
}, [e]), i;
|
|
7164
7242
|
}
|
|
7165
|
-
function
|
|
7243
|
+
function Bc(e) {
|
|
7166
7244
|
if (!e) return null;
|
|
7167
7245
|
if (e.children.length > 1) return e;
|
|
7168
7246
|
let t = e.children[0];
|
|
7169
|
-
return
|
|
7247
|
+
return Eo(t) ? t : e;
|
|
7170
7248
|
}
|
|
7171
|
-
function
|
|
7172
|
-
let { measure: t } = e, [n, r] = P(null), i =
|
|
7173
|
-
for (let { target: n } of e) if (
|
|
7249
|
+
function Vc(e) {
|
|
7250
|
+
let { measure: t } = e, [n, r] = P(null), i = Dc({ callback: D((e) => {
|
|
7251
|
+
for (let { target: n } of e) if (Eo(n)) {
|
|
7174
7252
|
r((e) => {
|
|
7175
7253
|
let r = t(n);
|
|
7176
7254
|
return e ? {
|
|
@@ -7181,8 +7259,8 @@ function Rc(e) {
|
|
|
7181
7259
|
});
|
|
7182
7260
|
break;
|
|
7183
7261
|
}
|
|
7184
|
-
}, [t]) }), [a, o] =
|
|
7185
|
-
let n =
|
|
7262
|
+
}, [t]) }), [a, o] = Po(D((e) => {
|
|
7263
|
+
let n = Bc(e);
|
|
7186
7264
|
i?.disconnect(), n && i?.observe(n), r(n ? t(n) : null);
|
|
7187
7265
|
}, [t, i]));
|
|
7188
7266
|
return j(() => ({
|
|
@@ -7195,21 +7273,21 @@ function Rc(e) {
|
|
|
7195
7273
|
o
|
|
7196
7274
|
]);
|
|
7197
7275
|
}
|
|
7198
|
-
var
|
|
7199
|
-
sensor:
|
|
7276
|
+
var Hc = [{
|
|
7277
|
+
sensor: sc,
|
|
7200
7278
|
options: {}
|
|
7201
7279
|
}, {
|
|
7202
|
-
sensor:
|
|
7280
|
+
sensor: nc,
|
|
7203
7281
|
options: {}
|
|
7204
|
-
}],
|
|
7205
|
-
draggable: { measure:
|
|
7282
|
+
}], Uc = { current: {} }, Wc = {
|
|
7283
|
+
draggable: { measure: Es },
|
|
7206
7284
|
droppable: {
|
|
7207
|
-
measure:
|
|
7208
|
-
strategy:
|
|
7209
|
-
frequency:
|
|
7285
|
+
measure: Es,
|
|
7286
|
+
strategy: bc.WhileDragging,
|
|
7287
|
+
frequency: xc.Optimized
|
|
7210
7288
|
},
|
|
7211
|
-
dragOverlay: { measure:
|
|
7212
|
-
},
|
|
7289
|
+
dragOverlay: { measure: Ts }
|
|
7290
|
+
}, Gc = class extends Map {
|
|
7213
7291
|
get(e) {
|
|
7214
7292
|
return e == null ? void 0 : super.get(e) ?? void 0;
|
|
7215
7293
|
}
|
|
@@ -7225,7 +7303,7 @@ var zc = [{
|
|
|
7225
7303
|
getNodeFor(e) {
|
|
7226
7304
|
return this.get(e)?.node.current ?? void 0;
|
|
7227
7305
|
}
|
|
7228
|
-
},
|
|
7306
|
+
}, Kc = {
|
|
7229
7307
|
activatorEvent: null,
|
|
7230
7308
|
active: null,
|
|
7231
7309
|
activeNode: null,
|
|
@@ -7234,31 +7312,31 @@ var zc = [{
|
|
|
7234
7312
|
containerNodeRect: null,
|
|
7235
7313
|
draggableNodes: /*#__PURE__*/ new Map(),
|
|
7236
7314
|
droppableRects: /*#__PURE__*/ new Map(),
|
|
7237
|
-
droppableContainers: /*#__PURE__*/ new
|
|
7315
|
+
droppableContainers: /*#__PURE__*/ new Gc(),
|
|
7238
7316
|
over: null,
|
|
7239
7317
|
dragOverlay: {
|
|
7240
7318
|
nodeRef: { current: null },
|
|
7241
7319
|
rect: null,
|
|
7242
|
-
setRef:
|
|
7320
|
+
setRef: as
|
|
7243
7321
|
},
|
|
7244
7322
|
scrollableAncestors: [],
|
|
7245
7323
|
scrollableAncestorRects: [],
|
|
7246
|
-
measuringConfiguration:
|
|
7247
|
-
measureDroppableContainers:
|
|
7324
|
+
measuringConfiguration: Wc,
|
|
7325
|
+
measureDroppableContainers: as,
|
|
7248
7326
|
windowRect: null,
|
|
7249
7327
|
measuringScheduled: !1
|
|
7250
|
-
},
|
|
7328
|
+
}, qc = {
|
|
7251
7329
|
activatorEvent: null,
|
|
7252
7330
|
activators: [],
|
|
7253
7331
|
active: null,
|
|
7254
7332
|
activeNodeRect: null,
|
|
7255
7333
|
ariaDescribedById: { draggable: "" },
|
|
7256
|
-
dispatch:
|
|
7334
|
+
dispatch: as,
|
|
7257
7335
|
draggableNodes: /*#__PURE__*/ new Map(),
|
|
7258
7336
|
over: null,
|
|
7259
|
-
measureDroppableContainers:
|
|
7260
|
-
},
|
|
7261
|
-
function
|
|
7337
|
+
measureDroppableContainers: as
|
|
7338
|
+
}, Jc = /*#__PURE__*/ w(qc), Yc = /*#__PURE__*/ w(Kc);
|
|
7339
|
+
function Xc() {
|
|
7262
7340
|
return {
|
|
7263
7341
|
draggable: {
|
|
7264
7342
|
active: null,
|
|
@@ -7272,12 +7350,12 @@ function qc() {
|
|
|
7272
7350
|
y: 0
|
|
7273
7351
|
}
|
|
7274
7352
|
},
|
|
7275
|
-
droppable: { containers: new
|
|
7353
|
+
droppable: { containers: new Gc() }
|
|
7276
7354
|
};
|
|
7277
7355
|
}
|
|
7278
|
-
function
|
|
7356
|
+
function Zc(e, t) {
|
|
7279
7357
|
switch (t.type) {
|
|
7280
|
-
case
|
|
7358
|
+
case is.DragStart: return {
|
|
7281
7359
|
...e,
|
|
7282
7360
|
draggable: {
|
|
7283
7361
|
...e.draggable,
|
|
@@ -7285,7 +7363,7 @@ function Jc(e, t) {
|
|
|
7285
7363
|
active: t.active
|
|
7286
7364
|
}
|
|
7287
7365
|
};
|
|
7288
|
-
case
|
|
7366
|
+
case is.DragMove: return e.draggable.active == null ? e : {
|
|
7289
7367
|
...e,
|
|
7290
7368
|
draggable: {
|
|
7291
7369
|
...e.draggable,
|
|
@@ -7295,8 +7373,8 @@ function Jc(e, t) {
|
|
|
7295
7373
|
}
|
|
7296
7374
|
}
|
|
7297
7375
|
};
|
|
7298
|
-
case
|
|
7299
|
-
case
|
|
7376
|
+
case is.DragEnd:
|
|
7377
|
+
case is.DragCancel: return {
|
|
7300
7378
|
...e,
|
|
7301
7379
|
draggable: {
|
|
7302
7380
|
...e.draggable,
|
|
@@ -7311,8 +7389,8 @@ function Jc(e, t) {
|
|
|
7311
7389
|
}
|
|
7312
7390
|
}
|
|
7313
7391
|
};
|
|
7314
|
-
case
|
|
7315
|
-
let { element: n } = t, { id: r } = n, i = new
|
|
7392
|
+
case is.RegisterDroppable: {
|
|
7393
|
+
let { element: n } = t, { id: r } = n, i = new Gc(e.droppable.containers);
|
|
7316
7394
|
return i.set(r, n), {
|
|
7317
7395
|
...e,
|
|
7318
7396
|
droppable: {
|
|
@@ -7321,10 +7399,10 @@ function Jc(e, t) {
|
|
|
7321
7399
|
}
|
|
7322
7400
|
};
|
|
7323
7401
|
}
|
|
7324
|
-
case
|
|
7402
|
+
case is.SetDroppableDisabled: {
|
|
7325
7403
|
let { id: n, key: r, disabled: i } = t, a = e.droppable.containers.get(n);
|
|
7326
7404
|
if (!a || r !== a.key) return e;
|
|
7327
|
-
let o = new
|
|
7405
|
+
let o = new Gc(e.droppable.containers);
|
|
7328
7406
|
return o.set(n, {
|
|
7329
7407
|
...a,
|
|
7330
7408
|
disabled: i
|
|
@@ -7336,10 +7414,10 @@ function Jc(e, t) {
|
|
|
7336
7414
|
}
|
|
7337
7415
|
};
|
|
7338
7416
|
}
|
|
7339
|
-
case
|
|
7417
|
+
case is.UnregisterDroppable: {
|
|
7340
7418
|
let { id: n, key: r } = t, i = e.droppable.containers.get(n);
|
|
7341
7419
|
if (!i || r !== i.key) return e;
|
|
7342
|
-
let a = new
|
|
7420
|
+
let a = new Gc(e.droppable.containers);
|
|
7343
7421
|
return a.delete(n), {
|
|
7344
7422
|
...e,
|
|
7345
7423
|
droppable: {
|
|
@@ -7351,11 +7429,11 @@ function Jc(e, t) {
|
|
|
7351
7429
|
default: return e;
|
|
7352
7430
|
}
|
|
7353
7431
|
}
|
|
7354
|
-
function
|
|
7355
|
-
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = O(
|
|
7432
|
+
function Qc(e) {
|
|
7433
|
+
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = O(Jc), a = Fo(r), o = Fo(n?.id);
|
|
7356
7434
|
return k(() => {
|
|
7357
7435
|
if (!t && !r && a && o != null) {
|
|
7358
|
-
if (!
|
|
7436
|
+
if (!Ho(a) || document.activeElement === a.target) return;
|
|
7359
7437
|
let e = i.get(o);
|
|
7360
7438
|
if (!e) return;
|
|
7361
7439
|
let { activatorNode: t, node: n } = e;
|
|
@@ -7363,7 +7441,7 @@ function Yc(e) {
|
|
|
7363
7441
|
requestAnimationFrame(() => {
|
|
7364
7442
|
for (let e of [t.current, n.current]) {
|
|
7365
7443
|
if (!e) continue;
|
|
7366
|
-
let t =
|
|
7444
|
+
let t = qo(e);
|
|
7367
7445
|
if (t) {
|
|
7368
7446
|
t.focus();
|
|
7369
7447
|
break;
|
|
@@ -7379,25 +7457,25 @@ function Yc(e) {
|
|
|
7379
7457
|
a
|
|
7380
7458
|
]), null;
|
|
7381
7459
|
}
|
|
7382
|
-
function
|
|
7460
|
+
function $c(e, t) {
|
|
7383
7461
|
let { transform: n, ...r } = t;
|
|
7384
7462
|
return e != null && e.length ? e.reduce((e, t) => t({
|
|
7385
7463
|
transform: e,
|
|
7386
7464
|
...r
|
|
7387
7465
|
}), n) : n;
|
|
7388
7466
|
}
|
|
7389
|
-
function
|
|
7467
|
+
function el(e) {
|
|
7390
7468
|
return j(() => ({
|
|
7391
7469
|
draggable: {
|
|
7392
|
-
...
|
|
7470
|
+
...Wc.draggable,
|
|
7393
7471
|
...e?.draggable
|
|
7394
7472
|
},
|
|
7395
7473
|
droppable: {
|
|
7396
|
-
...
|
|
7474
|
+
...Wc.droppable,
|
|
7397
7475
|
...e?.droppable
|
|
7398
7476
|
},
|
|
7399
7477
|
dragOverlay: {
|
|
7400
|
-
...
|
|
7478
|
+
...Wc.dragOverlay,
|
|
7401
7479
|
...e?.dragOverlay
|
|
7402
7480
|
}
|
|
7403
7481
|
}), [
|
|
@@ -7406,12 +7484,12 @@ function Zc(e) {
|
|
|
7406
7484
|
e?.dragOverlay
|
|
7407
7485
|
]);
|
|
7408
7486
|
}
|
|
7409
|
-
function
|
|
7487
|
+
function tl(e) {
|
|
7410
7488
|
let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = N(!1), { x: o, y: s } = typeof i == "boolean" ? {
|
|
7411
7489
|
x: i,
|
|
7412
7490
|
y: i
|
|
7413
7491
|
} : i;
|
|
7414
|
-
|
|
7492
|
+
ko(() => {
|
|
7415
7493
|
if (!o && !s || !t) {
|
|
7416
7494
|
a.current = !1;
|
|
7417
7495
|
return;
|
|
@@ -7419,9 +7497,9 @@ function Qc(e) {
|
|
|
7419
7497
|
if (a.current || !r) return;
|
|
7420
7498
|
let e = t?.node.current;
|
|
7421
7499
|
if (!e || e.isConnected === !1) return;
|
|
7422
|
-
let i =
|
|
7500
|
+
let i = ys(n(e), r);
|
|
7423
7501
|
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 =
|
|
7502
|
+
let t = js(e);
|
|
7425
7503
|
t && t.scrollBy({
|
|
7426
7504
|
top: i.y,
|
|
7427
7505
|
left: i.x
|
|
@@ -7435,34 +7513,34 @@ function Qc(e) {
|
|
|
7435
7513
|
n
|
|
7436
7514
|
]);
|
|
7437
7515
|
}
|
|
7438
|
-
var
|
|
7439
|
-
...
|
|
7516
|
+
var nl = /*#__PURE__*/ w({
|
|
7517
|
+
...cs,
|
|
7440
7518
|
scaleX: 1,
|
|
7441
7519
|
scaleY: 1
|
|
7442
|
-
}),
|
|
7520
|
+
}), rl;
|
|
7443
7521
|
(function(e) {
|
|
7444
7522
|
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 =
|
|
7523
|
+
})(rl ||= {});
|
|
7524
|
+
var il = /*#__PURE__*/ E(function(e) {
|
|
7525
|
+
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
7526
|
initial: null,
|
|
7449
7527
|
translated: null
|
|
7450
7528
|
}), w = j(() => _ == null ? null : {
|
|
7451
7529
|
id: _,
|
|
7452
|
-
data: x?.data ??
|
|
7530
|
+
data: x?.data ?? Uc,
|
|
7453
7531
|
rect: C
|
|
7454
|
-
}, [_, x]), T = N(null), [E, O] = P(null), [A, ee] = P(null), F =
|
|
7532
|
+
}, [_, 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
7533
|
dragging: g,
|
|
7456
7534
|
dependencies: [y.x, y.y],
|
|
7457
7535
|
config: R.droppable
|
|
7458
|
-
}), V =
|
|
7459
|
-
|
|
7536
|
+
}), V = vc(v, _), H = j(() => A ? Wo(A) : null, [A]), ne = De(), U = Tc(V, R.draggable.measure);
|
|
7537
|
+
tl({
|
|
7460
7538
|
activeNode: _ == null ? null : v.get(_),
|
|
7461
7539
|
config: ne.layoutShiftCompensation,
|
|
7462
7540
|
initialRect: U,
|
|
7463
7541
|
measure: R.draggable.measure
|
|
7464
7542
|
});
|
|
7465
|
-
let W =
|
|
7543
|
+
let W = kc(V, R.draggable.measure, U), G = kc(V ? V.parentElement : null), K = N({
|
|
7466
7544
|
activatorEvent: null,
|
|
7467
7545
|
active: null,
|
|
7468
7546
|
activeNode: V,
|
|
@@ -7476,7 +7554,7 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7476
7554
|
over: null,
|
|
7477
7555
|
scrollableAncestors: [],
|
|
7478
7556
|
scrollAdjustedTranslate: null
|
|
7479
|
-
}), q = b.getNodeFor(K.current.over?.id), ie =
|
|
7557
|
+
}), 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
7558
|
transform: {
|
|
7481
7559
|
x: y.x - ce.x,
|
|
7482
7560
|
y: y.y - ce.y,
|
|
@@ -7493,13 +7571,13 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7493
7571
|
scrollableAncestors: ue,
|
|
7494
7572
|
scrollableAncestorRects: de,
|
|
7495
7573
|
windowRect: le
|
|
7496
|
-
}), pe = H ?
|
|
7574
|
+
}), 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
7575
|
active: w,
|
|
7498
7576
|
collisionRect: ve,
|
|
7499
7577
|
droppableRects: te,
|
|
7500
7578
|
droppableContainers: L,
|
|
7501
7579
|
pointerCoordinates: pe
|
|
7502
|
-
}) : null, Y =
|
|
7580
|
+
}) : 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
7581
|
let { sensor: n, options: r } = t;
|
|
7504
7582
|
if (T.current == null) return;
|
|
7505
7583
|
let i = v.get(T.current);
|
|
@@ -7545,8 +7623,8 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7545
7623
|
}
|
|
7546
7624
|
};
|
|
7547
7625
|
re(() => {
|
|
7548
|
-
r?.(i), h(
|
|
7549
|
-
type:
|
|
7626
|
+
r?.(i), h(rl.Initializing), d({
|
|
7627
|
+
type: is.DragStart,
|
|
7550
7628
|
initialCoordinates: e,
|
|
7551
7629
|
active: t
|
|
7552
7630
|
}), f({
|
|
@@ -7557,12 +7635,12 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7557
7635
|
},
|
|
7558
7636
|
onMove(e) {
|
|
7559
7637
|
d({
|
|
7560
|
-
type:
|
|
7638
|
+
type: is.DragMove,
|
|
7561
7639
|
coordinates: e
|
|
7562
7640
|
});
|
|
7563
7641
|
},
|
|
7564
|
-
onEnd: s(
|
|
7565
|
-
onCancel: s(
|
|
7642
|
+
onEnd: s(is.DragEnd),
|
|
7643
|
+
onCancel: s(is.DragCancel)
|
|
7566
7644
|
});
|
|
7567
7645
|
Se.current = o;
|
|
7568
7646
|
function s(e) {
|
|
@@ -7576,11 +7654,11 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7576
7654
|
collisions: n,
|
|
7577
7655
|
delta: i,
|
|
7578
7656
|
over: r
|
|
7579
|
-
}, e ===
|
|
7657
|
+
}, e === is.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = is.DragCancel);
|
|
7580
7658
|
}
|
|
7581
7659
|
T.current = null, re(() => {
|
|
7582
|
-
d({ type: e }), h(
|
|
7583
|
-
let t = e ===
|
|
7660
|
+
d({ type: e }), h(rl.Uninitialized), be(null), O(null), ee(null), Se.current = null;
|
|
7661
|
+
let t = e === is.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
7584
7662
|
if (o) {
|
|
7585
7663
|
let e = F.current[t];
|
|
7586
7664
|
e?.(o), f({
|
|
@@ -7591,14 +7669,14 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7591
7669
|
});
|
|
7592
7670
|
};
|
|
7593
7671
|
}
|
|
7594
|
-
}, [v]), we =
|
|
7672
|
+
}, [v]), we = yc(a, D((e, t) => (n, r) => {
|
|
7595
7673
|
let i = n.nativeEvent, a = v.get(r);
|
|
7596
7674
|
if (T.current !== null || !a || i.dndKit || i.defaultPrevented) return;
|
|
7597
7675
|
let o = { active: a };
|
|
7598
7676
|
e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, T.current = r, Ce(n, t));
|
|
7599
7677
|
}, [v, Ce]));
|
|
7600
|
-
|
|
7601
|
-
W && m ===
|
|
7678
|
+
Fc(a), ko(() => {
|
|
7679
|
+
W && m === rl.Initializing && h(rl.Initialized);
|
|
7602
7680
|
}, [W, m]), k(() => {
|
|
7603
7681
|
let { onDragMove: e } = F.current, { active: t, activatorEvent: n, collisions: r, over: i } = K.current;
|
|
7604
7682
|
if (!t || !n) return;
|
|
@@ -7642,7 +7720,7 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7642
7720
|
event: c
|
|
7643
7721
|
});
|
|
7644
7722
|
});
|
|
7645
|
-
}, [Y]),
|
|
7723
|
+
}, [Y]), ko(() => {
|
|
7646
7724
|
K.current = {
|
|
7647
7725
|
activatorEvent: A,
|
|
7648
7726
|
active: w,
|
|
@@ -7674,7 +7752,7 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7674
7752
|
ye,
|
|
7675
7753
|
ue,
|
|
7676
7754
|
_e
|
|
7677
|
-
]),
|
|
7755
|
+
]), hc({
|
|
7678
7756
|
...ne,
|
|
7679
7757
|
delta: y,
|
|
7680
7758
|
draggingRect: ve,
|
|
@@ -7739,7 +7817,7 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7739
7817
|
ye,
|
|
7740
7818
|
z
|
|
7741
7819
|
]);
|
|
7742
|
-
return S.createElement(
|
|
7820
|
+
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
7821
|
...n,
|
|
7744
7822
|
hiddenTextDescribedById: I
|
|
7745
7823
|
}));
|
|
@@ -7750,10 +7828,10 @@ var tl = /*#__PURE__*/ E(function(e) {
|
|
|
7750
7828
|
enabled: n
|
|
7751
7829
|
} : { enabled: n };
|
|
7752
7830
|
}
|
|
7753
|
-
}),
|
|
7754
|
-
function
|
|
7755
|
-
let { id: t, data: n, disabled: r = !1, attributes: i } = e, a =
|
|
7756
|
-
return
|
|
7831
|
+
}), al = /*#__PURE__*/ w(null), ol = "button", sl = "Draggable";
|
|
7832
|
+
function cl(e) {
|
|
7833
|
+
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);
|
|
7834
|
+
return ko(() => (d.set(t, {
|
|
7757
7835
|
id: t,
|
|
7758
7836
|
key: a,
|
|
7759
7837
|
node: v,
|
|
@@ -7770,7 +7848,7 @@ function al(e) {
|
|
|
7770
7848
|
role: p,
|
|
7771
7849
|
tabIndex: h,
|
|
7772
7850
|
"aria-disabled": r,
|
|
7773
|
-
"aria-pressed": g && p ===
|
|
7851
|
+
"aria-pressed": g && p === ol ? !0 : void 0,
|
|
7774
7852
|
"aria-roledescription": m,
|
|
7775
7853
|
"aria-describedby": u.draggable
|
|
7776
7854
|
}), [
|
|
@@ -7790,15 +7868,15 @@ function al(e) {
|
|
|
7790
7868
|
transform: _
|
|
7791
7869
|
};
|
|
7792
7870
|
}
|
|
7793
|
-
function
|
|
7794
|
-
return O(
|
|
7871
|
+
function ll() {
|
|
7872
|
+
return O(Yc);
|
|
7795
7873
|
}
|
|
7796
|
-
var
|
|
7797
|
-
function
|
|
7798
|
-
let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a =
|
|
7799
|
-
...
|
|
7874
|
+
var ul = "Droppable", dl = { timeout: 25 };
|
|
7875
|
+
function fl(e) {
|
|
7876
|
+
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 } = {
|
|
7877
|
+
...dl,
|
|
7800
7878
|
...i
|
|
7801
|
-
}, _ =
|
|
7879
|
+
}, _ = Mo(h ?? r), v = Dc({
|
|
7802
7880
|
callback: D(() => {
|
|
7803
7881
|
if (!d.current) {
|
|
7804
7882
|
d.current = !0;
|
|
@@ -7809,13 +7887,13 @@ function ll(e) {
|
|
|
7809
7887
|
}, g);
|
|
7810
7888
|
}, [g]),
|
|
7811
7889
|
disabled: m || !o
|
|
7812
|
-
}), [y, b] =
|
|
7890
|
+
}), [y, b] = Po(D((e, t) => {
|
|
7813
7891
|
v && (t && (v.unobserve(t), d.current = !1), e && v.observe(e));
|
|
7814
|
-
}, [v])), x =
|
|
7892
|
+
}, [v])), x = Mo(t);
|
|
7815
7893
|
return k(() => {
|
|
7816
7894
|
!v || !y.current || (v.disconnect(), d.current = !1, v.observe(y.current));
|
|
7817
7895
|
}, [y, v]), k(() => (s({
|
|
7818
|
-
type:
|
|
7896
|
+
type: is.RegisterDroppable,
|
|
7819
7897
|
element: {
|
|
7820
7898
|
id: r,
|
|
7821
7899
|
key: a,
|
|
@@ -7825,12 +7903,12 @@ function ll(e) {
|
|
|
7825
7903
|
data: x
|
|
7826
7904
|
}
|
|
7827
7905
|
}), () => s({
|
|
7828
|
-
type:
|
|
7906
|
+
type: is.UnregisterDroppable,
|
|
7829
7907
|
key: a,
|
|
7830
7908
|
id: r
|
|
7831
7909
|
})), [r]), k(() => {
|
|
7832
7910
|
n !== u.current.disabled && (s({
|
|
7833
|
-
type:
|
|
7911
|
+
type: is.SetDroppableDisabled,
|
|
7834
7912
|
id: r,
|
|
7835
7913
|
key: a,
|
|
7836
7914
|
disabled: n
|
|
@@ -7849,9 +7927,9 @@ function ll(e) {
|
|
|
7849
7927
|
setNodeRef: b
|
|
7850
7928
|
};
|
|
7851
7929
|
}
|
|
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),
|
|
7930
|
+
function pl(e) {
|
|
7931
|
+
let { animation: t, children: n } = e, [r, i] = P(null), [a, o] = P(null), s = Fo(n);
|
|
7932
|
+
return !n && !r && s && i(s), ko(() => {
|
|
7855
7933
|
if (!a) return;
|
|
7856
7934
|
let e = r?.key, n = r?.props.id;
|
|
7857
7935
|
if (e == null || n == null) {
|
|
@@ -7867,34 +7945,34 @@ function ul(e) {
|
|
|
7867
7945
|
a
|
|
7868
7946
|
]), S.createElement(S.Fragment, null, n, r ? C(r, { ref: o }) : null);
|
|
7869
7947
|
}
|
|
7870
|
-
var
|
|
7948
|
+
var ml = {
|
|
7871
7949
|
x: 0,
|
|
7872
7950
|
y: 0,
|
|
7873
7951
|
scaleX: 1,
|
|
7874
7952
|
scaleY: 1
|
|
7875
7953
|
};
|
|
7876
|
-
function
|
|
7954
|
+
function hl(e) {
|
|
7877
7955
|
let { children: t } = e;
|
|
7878
|
-
return S.createElement(
|
|
7956
|
+
return S.createElement(Jc.Provider, { value: qc }, S.createElement(nl.Provider, { value: ml }, t));
|
|
7879
7957
|
}
|
|
7880
|
-
var
|
|
7958
|
+
var gl = {
|
|
7881
7959
|
position: "fixed",
|
|
7882
7960
|
touchAction: "none"
|
|
7883
|
-
},
|
|
7884
|
-
let { as: n, activatorEvent: r, adjustScale: i, children: a, className: o, rect: s, style: c, transform: l, transition: u =
|
|
7961
|
+
}, _l = (e) => Ho(e) ? "transform 250ms ease" : void 0, vl = /*#__PURE__*/ T((e, t) => {
|
|
7962
|
+
let { as: n, activatorEvent: r, adjustScale: i, children: a, className: o, rect: s, style: c, transform: l, transition: u = _l } = e;
|
|
7885
7963
|
if (!s) return null;
|
|
7886
7964
|
let d = i ? l : {
|
|
7887
7965
|
...l,
|
|
7888
7966
|
scaleX: 1,
|
|
7889
7967
|
scaleY: 1
|
|
7890
7968
|
}, f = {
|
|
7891
|
-
...
|
|
7969
|
+
...gl,
|
|
7892
7970
|
width: s.width,
|
|
7893
7971
|
height: s.height,
|
|
7894
7972
|
top: s.top,
|
|
7895
7973
|
left: s.left,
|
|
7896
|
-
transform:
|
|
7897
|
-
transformOrigin: i && r ?
|
|
7974
|
+
transform: Go.Transform.toString(d),
|
|
7975
|
+
transformOrigin: i && r ? us(r, s) : void 0,
|
|
7898
7976
|
transition: typeof u == "function" ? u(r) : u,
|
|
7899
7977
|
...c
|
|
7900
7978
|
};
|
|
@@ -7903,12 +7981,12 @@ var pl = {
|
|
|
7903
7981
|
style: f,
|
|
7904
7982
|
ref: t
|
|
7905
7983
|
}, a);
|
|
7906
|
-
}),
|
|
7984
|
+
}), yl = {
|
|
7907
7985
|
duration: 250,
|
|
7908
7986
|
easing: "ease",
|
|
7909
7987
|
keyframes: (e) => {
|
|
7910
7988
|
let { transform: { initial: t, final: n } } = e;
|
|
7911
|
-
return [{ transform:
|
|
7989
|
+
return [{ transform: Go.Transform.toString(t) }, { transform: Go.Transform.toString(n) }];
|
|
7912
7990
|
},
|
|
7913
7991
|
sideEffects: /*#__PURE__*/ ((e) => (t) => {
|
|
7914
7992
|
let { active: n, dragOverlay: r } = t, i = {}, { styles: a, className: o } = e;
|
|
@@ -7920,20 +7998,20 @@ var pl = {
|
|
|
7920
7998
|
};
|
|
7921
7999
|
})({ styles: { active: { opacity: "0" } } })
|
|
7922
8000
|
};
|
|
7923
|
-
function
|
|
8001
|
+
function bl(e) {
|
|
7924
8002
|
let { config: t, draggableNodes: n, droppableContainers: r, measuringConfiguration: i } = e;
|
|
7925
|
-
return
|
|
8003
|
+
return Ao((e, a) => {
|
|
7926
8004
|
if (t === null) return;
|
|
7927
8005
|
let o = n.get(e);
|
|
7928
8006
|
if (!o) return;
|
|
7929
8007
|
let s = o.node.current;
|
|
7930
8008
|
if (!s) return;
|
|
7931
|
-
let c =
|
|
8009
|
+
let c = Bc(a);
|
|
7932
8010
|
if (!c) return;
|
|
7933
|
-
let { transform: l } =
|
|
8011
|
+
let { transform: l } = wo(a).getComputedStyle(a), u = Ss(l);
|
|
7934
8012
|
if (!u) return;
|
|
7935
|
-
let d = typeof t == "function" ? t :
|
|
7936
|
-
return
|
|
8013
|
+
let d = typeof t == "function" ? t : xl(t);
|
|
8014
|
+
return Gs(s, i.draggable.measure), d({
|
|
7937
8015
|
active: {
|
|
7938
8016
|
id: e,
|
|
7939
8017
|
data: o.data,
|
|
@@ -7951,9 +8029,9 @@ function _l(e) {
|
|
|
7951
8029
|
});
|
|
7952
8030
|
});
|
|
7953
8031
|
}
|
|
7954
|
-
function
|
|
8032
|
+
function xl(e) {
|
|
7955
8033
|
let { duration: t, easing: n, sideEffects: r, keyframes: i } = {
|
|
7956
|
-
...
|
|
8034
|
+
...yl,
|
|
7957
8035
|
...e
|
|
7958
8036
|
};
|
|
7959
8037
|
return (e) => {
|
|
@@ -7995,14 +8073,14 @@ function vl(e) {
|
|
|
7995
8073
|
});
|
|
7996
8074
|
};
|
|
7997
8075
|
}
|
|
7998
|
-
var
|
|
7999
|
-
function
|
|
8076
|
+
var Sl = 0;
|
|
8077
|
+
function Cl(e) {
|
|
8000
8078
|
return j(() => {
|
|
8001
|
-
if (e != null) return
|
|
8079
|
+
if (e != null) return Sl++, Sl;
|
|
8002
8080
|
}, [e]);
|
|
8003
8081
|
}
|
|
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 } =
|
|
8082
|
+
var wl = /*#__PURE__*/ S.memo((e) => {
|
|
8083
|
+
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
8084
|
activatorEvent: u,
|
|
8007
8085
|
active: d,
|
|
8008
8086
|
activeNodeRect: f,
|
|
@@ -8014,13 +8092,13 @@ var xl = /*#__PURE__*/ S.memo((e) => {
|
|
|
8014
8092
|
scrollableAncestorRects: b,
|
|
8015
8093
|
transform: C,
|
|
8016
8094
|
windowRect: x
|
|
8017
|
-
}), E =
|
|
8095
|
+
}), E = wc(f), D = bl({
|
|
8018
8096
|
config: r,
|
|
8019
8097
|
draggableNodes: m,
|
|
8020
8098
|
droppableContainers: h,
|
|
8021
8099
|
measuringConfiguration: v
|
|
8022
8100
|
}), k = E ? g.setRef : void 0;
|
|
8023
|
-
return S.createElement(
|
|
8101
|
+
return S.createElement(hl, null, S.createElement(pl, { animation: D }, d && w ? S.createElement(vl, {
|
|
8024
8102
|
key: w,
|
|
8025
8103
|
id: d.id,
|
|
8026
8104
|
ref: k,
|
|
@@ -8039,76 +8117,76 @@ var xl = /*#__PURE__*/ S.memo((e) => {
|
|
|
8039
8117
|
});
|
|
8040
8118
|
//#endregion
|
|
8041
8119
|
//#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
|
|
8120
|
+
function Tl(e, t, n) {
|
|
8043
8121
|
let r = e.slice();
|
|
8044
8122
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
8045
8123
|
}
|
|
8046
|
-
function
|
|
8124
|
+
function El(e, t) {
|
|
8047
8125
|
return e.reduce((e, n, r) => {
|
|
8048
8126
|
let i = t.get(n);
|
|
8049
8127
|
return i && (e[r] = i), e;
|
|
8050
8128
|
}, Array(e.length));
|
|
8051
8129
|
}
|
|
8052
|
-
function
|
|
8130
|
+
function Dl(e) {
|
|
8053
8131
|
return e !== null && e >= 0;
|
|
8054
8132
|
}
|
|
8055
|
-
function
|
|
8133
|
+
function Ol(e, t) {
|
|
8056
8134
|
if (e === t) return !0;
|
|
8057
8135
|
if (e.length !== t.length) return !1;
|
|
8058
8136
|
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
8059
8137
|
return !0;
|
|
8060
8138
|
}
|
|
8061
|
-
function
|
|
8139
|
+
function kl(e) {
|
|
8062
8140
|
return typeof e == "boolean" ? {
|
|
8063
8141
|
draggable: e,
|
|
8064
8142
|
droppable: e
|
|
8065
8143
|
} : e;
|
|
8066
8144
|
}
|
|
8067
|
-
var
|
|
8145
|
+
var Al = {
|
|
8068
8146
|
scaleX: 1,
|
|
8069
8147
|
scaleY: 1
|
|
8070
|
-
},
|
|
8148
|
+
}, jl = (e) => {
|
|
8071
8149
|
let { rects: t, activeNodeRect: n, activeIndex: r, overIndex: i, index: a } = e, o = t[r] ?? n;
|
|
8072
8150
|
if (!o) return null;
|
|
8073
|
-
let s =
|
|
8151
|
+
let s = Ml(t, a, r);
|
|
8074
8152
|
if (a === r) {
|
|
8075
8153
|
let e = t[i];
|
|
8076
8154
|
return e ? {
|
|
8077
8155
|
x: r < i ? e.left + e.width - (o.left + o.width) : e.left - o.left,
|
|
8078
8156
|
y: 0,
|
|
8079
|
-
...
|
|
8157
|
+
...Al
|
|
8080
8158
|
} : null;
|
|
8081
8159
|
}
|
|
8082
8160
|
return a > r && a <= i ? {
|
|
8083
8161
|
x: -o.width - s,
|
|
8084
8162
|
y: 0,
|
|
8085
|
-
...
|
|
8163
|
+
...Al
|
|
8086
8164
|
} : a < r && a >= i ? {
|
|
8087
8165
|
x: o.width + s,
|
|
8088
8166
|
y: 0,
|
|
8089
|
-
...
|
|
8167
|
+
...Al
|
|
8090
8168
|
} : {
|
|
8091
8169
|
x: 0,
|
|
8092
8170
|
y: 0,
|
|
8093
|
-
...
|
|
8171
|
+
...Al
|
|
8094
8172
|
};
|
|
8095
8173
|
};
|
|
8096
|
-
function
|
|
8174
|
+
function Ml(e, t, n) {
|
|
8097
8175
|
let r = e[t], i = e[t - 1], a = e[t + 1];
|
|
8098
8176
|
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
8177
|
}
|
|
8100
|
-
var
|
|
8101
|
-
let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a =
|
|
8178
|
+
var Nl = (e) => {
|
|
8179
|
+
let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = Tl(t, r, n), o = t[i], s = a[i];
|
|
8102
8180
|
return !s || !o ? null : {
|
|
8103
8181
|
x: s.left - o.left,
|
|
8104
8182
|
y: s.top - o.top,
|
|
8105
8183
|
scaleX: s.width / o.width,
|
|
8106
8184
|
scaleY: s.height / o.height
|
|
8107
8185
|
};
|
|
8108
|
-
},
|
|
8186
|
+
}, Pl = {
|
|
8109
8187
|
scaleX: 1,
|
|
8110
8188
|
scaleY: 1
|
|
8111
|
-
},
|
|
8189
|
+
}, Fl = (e) => {
|
|
8112
8190
|
let { activeIndex: t, activeNodeRect: n, index: r, rects: i, overIndex: a } = e, o = i[t] ?? n;
|
|
8113
8191
|
if (!o) return null;
|
|
8114
8192
|
if (r === t) {
|
|
@@ -8116,45 +8194,45 @@ var Al = (e) => {
|
|
|
8116
8194
|
return e ? {
|
|
8117
8195
|
x: 0,
|
|
8118
8196
|
y: t < a ? e.top + e.height - (o.top + o.height) : e.top - o.top,
|
|
8119
|
-
...
|
|
8197
|
+
...Pl
|
|
8120
8198
|
} : null;
|
|
8121
8199
|
}
|
|
8122
|
-
let s =
|
|
8200
|
+
let s = Il(i, r, t);
|
|
8123
8201
|
return r > t && r <= a ? {
|
|
8124
8202
|
x: 0,
|
|
8125
8203
|
y: -o.height - s,
|
|
8126
|
-
...
|
|
8204
|
+
...Pl
|
|
8127
8205
|
} : r < t && r >= a ? {
|
|
8128
8206
|
x: 0,
|
|
8129
8207
|
y: o.height + s,
|
|
8130
|
-
...
|
|
8208
|
+
...Pl
|
|
8131
8209
|
} : {
|
|
8132
8210
|
x: 0,
|
|
8133
8211
|
y: 0,
|
|
8134
|
-
...
|
|
8212
|
+
...Pl
|
|
8135
8213
|
};
|
|
8136
8214
|
};
|
|
8137
|
-
function
|
|
8215
|
+
function Il(e, t, n) {
|
|
8138
8216
|
let r = e[t], i = e[t - 1], a = e[t + 1];
|
|
8139
8217
|
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
8218
|
}
|
|
8141
|
-
var
|
|
8219
|
+
var Ll = "Sortable", Rl = /*#__PURE__*/ S.createContext({
|
|
8142
8220
|
activeIndex: -1,
|
|
8143
|
-
containerId:
|
|
8221
|
+
containerId: Ll,
|
|
8144
8222
|
disableTransforms: !1,
|
|
8145
8223
|
items: [],
|
|
8146
8224
|
overIndex: -1,
|
|
8147
8225
|
useDragOverlay: !1,
|
|
8148
8226
|
sortedRects: [],
|
|
8149
|
-
strategy:
|
|
8227
|
+
strategy: Nl,
|
|
8150
8228
|
disabled: {
|
|
8151
8229
|
draggable: !1,
|
|
8152
8230
|
droppable: !1
|
|
8153
8231
|
}
|
|
8154
8232
|
});
|
|
8155
|
-
function
|
|
8156
|
-
let { children: t, id: n, items: r, strategy: i =
|
|
8157
|
-
|
|
8233
|
+
function zl(e) {
|
|
8234
|
+
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);
|
|
8235
|
+
ko(() => {
|
|
8158
8236
|
v && m && u(p);
|
|
8159
8237
|
}, [
|
|
8160
8238
|
v,
|
|
@@ -8172,7 +8250,7 @@ function Il(e) {
|
|
|
8172
8250
|
items: p,
|
|
8173
8251
|
overIndex: g,
|
|
8174
8252
|
useDragOverlay: f,
|
|
8175
|
-
sortedRects:
|
|
8253
|
+
sortedRects: El(p, c),
|
|
8176
8254
|
strategy: i
|
|
8177
8255
|
}), [
|
|
8178
8256
|
h,
|
|
@@ -8186,29 +8264,29 @@ function Il(e) {
|
|
|
8186
8264
|
f,
|
|
8187
8265
|
i
|
|
8188
8266
|
]);
|
|
8189
|
-
return S.createElement(
|
|
8267
|
+
return S.createElement(Rl.Provider, { value: x }, t);
|
|
8190
8268
|
}
|
|
8191
|
-
var
|
|
8269
|
+
var Bl = (e) => {
|
|
8192
8270
|
let { id: t, items: n, activeIndex: r, overIndex: i } = e;
|
|
8193
|
-
return
|
|
8194
|
-
},
|
|
8271
|
+
return Tl(n, r, i).indexOf(t);
|
|
8272
|
+
}, Vl = (e) => {
|
|
8195
8273
|
let { containerId: t, isSorting: n, wasDragging: r, index: i, items: a, newIndex: o, previousItems: s, previousContainerId: c, transition: l } = e;
|
|
8196
8274
|
return !l || !r || s !== a && i === o ? !1 : n ? !0 : o !== i && t === c;
|
|
8197
|
-
},
|
|
8275
|
+
}, Hl = {
|
|
8198
8276
|
duration: 200,
|
|
8199
8277
|
easing: "ease"
|
|
8200
|
-
},
|
|
8201
|
-
property:
|
|
8278
|
+
}, Ul = "transform", Wl = /*#__PURE__*/ Go.Transition.toString({
|
|
8279
|
+
property: Ul,
|
|
8202
8280
|
duration: 0,
|
|
8203
8281
|
easing: "linear"
|
|
8204
|
-
}),
|
|
8205
|
-
function
|
|
8282
|
+
}), Gl = { roleDescription: "sortable" };
|
|
8283
|
+
function Kl(e) {
|
|
8206
8284
|
let { disabled: t, index: n, node: r, rect: i } = e, [a, o] = P(null), s = N(n);
|
|
8207
|
-
return
|
|
8285
|
+
return ko(() => {
|
|
8208
8286
|
if (!t && n !== s.current && r.current) {
|
|
8209
8287
|
let e = i.current;
|
|
8210
8288
|
if (e) {
|
|
8211
|
-
let t =
|
|
8289
|
+
let t = Ts(r.current, { ignoreTransform: !0 }), n = {
|
|
8212
8290
|
x: e.left - t.left,
|
|
8213
8291
|
y: e.top - t.top,
|
|
8214
8292
|
scaleX: e.width / t.width,
|
|
@@ -8227,8 +8305,8 @@ function Ul(e) {
|
|
|
8227
8305
|
a && o(null);
|
|
8228
8306
|
}, [a]), a;
|
|
8229
8307
|
}
|
|
8230
|
-
function
|
|
8231
|
-
let { animateLayoutChanges: t =
|
|
8308
|
+
function ql(e) {
|
|
8309
|
+
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
8310
|
sortable: {
|
|
8233
8311
|
containerId: d,
|
|
8234
8312
|
index: b,
|
|
@@ -8240,7 +8318,7 @@ function Wl(e) {
|
|
|
8240
8318
|
i,
|
|
8241
8319
|
b,
|
|
8242
8320
|
u
|
|
8243
|
-
]), S = j(() => u.slice(u.indexOf(o)), [u, o]), { rect: C, node: w, isOver: T, setNodeRef: E } =
|
|
8321
|
+
]), S = j(() => u.slice(u.indexOf(o)), [u, o]), { rect: C, node: w, isOver: T, setNodeRef: E } = fl({
|
|
8244
8322
|
id: o,
|
|
8245
8323
|
data: x,
|
|
8246
8324
|
disabled: y.droppable,
|
|
@@ -8248,21 +8326,21 @@ function Wl(e) {
|
|
|
8248
8326
|
updateMeasurementsFor: S,
|
|
8249
8327
|
...c
|
|
8250
8328
|
}
|
|
8251
|
-
}), { active: D, activatorEvent: A, activeNodeRect: ee, attributes: M, setNodeRef: P, listeners: F, isDragging: I, over: L, setActivatorNodeRef: R, transform: te } =
|
|
8329
|
+
}), { active: D, activatorEvent: A, activeNodeRect: ee, attributes: M, setNodeRef: P, listeners: F, isDragging: I, over: L, setActivatorNodeRef: R, transform: te } = cl({
|
|
8252
8330
|
id: o,
|
|
8253
8331
|
data: x,
|
|
8254
8332
|
attributes: {
|
|
8255
|
-
...
|
|
8333
|
+
...Gl,
|
|
8256
8334
|
...n
|
|
8257
8335
|
},
|
|
8258
8336
|
disabled: y.draggable
|
|
8259
|
-
}), z =
|
|
8337
|
+
}), z = bo(E, P), B = !!D, V = B && !m && Dl(f) && Dl(g), H = !_ && I, ne = V ? (H && V ? te : null) ?? (s ?? v)({
|
|
8260
8338
|
rects: h,
|
|
8261
8339
|
activeNodeRect: ee,
|
|
8262
8340
|
activeIndex: f,
|
|
8263
8341
|
overIndex: g,
|
|
8264
8342
|
index: b
|
|
8265
|
-
}) : null, U =
|
|
8343
|
+
}) : null, U = Dl(f) && Dl(g) ? a({
|
|
8266
8344
|
id: o,
|
|
8267
8345
|
items: u,
|
|
8268
8346
|
activeIndex: f,
|
|
@@ -8285,7 +8363,7 @@ function Wl(e) {
|
|
|
8285
8363
|
previousContainerId: G.current.containerId,
|
|
8286
8364
|
transition: l,
|
|
8287
8365
|
wasDragging: G.current.activeId != null
|
|
8288
|
-
}), q =
|
|
8366
|
+
}), q = Kl({
|
|
8289
8367
|
disabled: !K,
|
|
8290
8368
|
index: b,
|
|
8291
8369
|
node: w,
|
|
@@ -8332,14 +8410,14 @@ function Wl(e) {
|
|
|
8332
8410
|
transition: ie()
|
|
8333
8411
|
};
|
|
8334
8412
|
function ie() {
|
|
8335
|
-
if (q || re && G.current.newIndex === b) return
|
|
8336
|
-
if (!(H && !
|
|
8413
|
+
if (q || re && G.current.newIndex === b) return Wl;
|
|
8414
|
+
if (!(H && !Ho(A) || !l) && (B || K)) return Go.Transition.toString({
|
|
8337
8415
|
...l,
|
|
8338
|
-
property:
|
|
8416
|
+
property: Ul
|
|
8339
8417
|
});
|
|
8340
8418
|
}
|
|
8341
8419
|
}
|
|
8342
|
-
function
|
|
8420
|
+
function Jl(e, t) {
|
|
8343
8421
|
return typeof e == "boolean" ? {
|
|
8344
8422
|
draggable: e,
|
|
8345
8423
|
droppable: !1
|
|
@@ -8348,19 +8426,19 @@ function Gl(e, t) {
|
|
|
8348
8426
|
droppable: e?.droppable ?? t.droppable
|
|
8349
8427
|
};
|
|
8350
8428
|
}
|
|
8351
|
-
function
|
|
8429
|
+
function Yl(e) {
|
|
8352
8430
|
if (!e) return !1;
|
|
8353
8431
|
let t = e.data.current;
|
|
8354
8432
|
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
8355
8433
|
}
|
|
8356
|
-
var
|
|
8434
|
+
var Xl = [
|
|
8357
8435
|
$.Down,
|
|
8358
8436
|
$.Right,
|
|
8359
8437
|
$.Up,
|
|
8360
8438
|
$.Left
|
|
8361
|
-
],
|
|
8439
|
+
], Zl = (e, t) => {
|
|
8362
8440
|
let { context: { active: n, collisionRect: r, droppableRects: i, droppableContainers: a, over: o, scrollableAncestors: s } } = t;
|
|
8363
|
-
if (
|
|
8441
|
+
if (Xl.includes(e.code)) {
|
|
8364
8442
|
if (e.preventDefault(), !n || !r) return;
|
|
8365
8443
|
let t = [];
|
|
8366
8444
|
a.getEnabled().forEach((n) => {
|
|
@@ -8381,17 +8459,17 @@ var ql = [
|
|
|
8381
8459
|
break;
|
|
8382
8460
|
}
|
|
8383
8461
|
});
|
|
8384
|
-
let c =
|
|
8462
|
+
let c = hs({
|
|
8385
8463
|
active: n,
|
|
8386
8464
|
collisionRect: r,
|
|
8387
8465
|
droppableRects: i,
|
|
8388
8466
|
droppableContainers: t,
|
|
8389
8467
|
pointerCoordinates: null
|
|
8390
|
-
}), l =
|
|
8468
|
+
}), l = ms(c, "id");
|
|
8391
8469
|
if (l === o?.id && c.length > 1 && (l = c[1].id), l != null) {
|
|
8392
8470
|
let e = a.get(n.id), t = a.get(l), o = t ? i.get(t.id) : null, c = t?.node.current;
|
|
8393
8471
|
if (c && o && e && t) {
|
|
8394
|
-
let n =
|
|
8472
|
+
let n = As(c).some((e, t) => s[t] !== e), i = Ql(e, t), a = $l(e, t), l = n || !i ? {
|
|
8395
8473
|
x: 0,
|
|
8396
8474
|
y: 0
|
|
8397
8475
|
} : {
|
|
@@ -8401,31 +8479,31 @@ var ql = [
|
|
|
8401
8479
|
x: o.left,
|
|
8402
8480
|
y: o.top
|
|
8403
8481
|
};
|
|
8404
|
-
return l.x && l.y ? u :
|
|
8482
|
+
return l.x && l.y ? u : Bo(u, l);
|
|
8405
8483
|
}
|
|
8406
8484
|
}
|
|
8407
8485
|
}
|
|
8408
8486
|
};
|
|
8409
|
-
function
|
|
8410
|
-
return !
|
|
8487
|
+
function Ql(e, t) {
|
|
8488
|
+
return !Yl(e) || !Yl(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
8411
8489
|
}
|
|
8412
|
-
function
|
|
8413
|
-
return !
|
|
8490
|
+
function $l(e, t) {
|
|
8491
|
+
return !Yl(e) || !Yl(t) || !Ql(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
|
|
8414
8492
|
}
|
|
8415
8493
|
//#endregion
|
|
8416
8494
|
//#region src/components/Kanban/Kanban.tsx
|
|
8417
|
-
var
|
|
8418
|
-
function
|
|
8419
|
-
let t = O(
|
|
8495
|
+
var eu = w(null);
|
|
8496
|
+
function tu(e) {
|
|
8497
|
+
let t = O(eu);
|
|
8420
8498
|
if (!t) throw Error(`<${e}> deve ser usado dentro de <Kanban.Root>.`);
|
|
8421
8499
|
return t;
|
|
8422
8500
|
}
|
|
8423
|
-
function
|
|
8501
|
+
function nu({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onValueCommit: i, onColumnOrderChange: a, children: o }) {
|
|
8424
8502
|
let [s, c] = P(e), [l, u] = P(null), [d, f] = P(null), p = N(!1);
|
|
8425
8503
|
k(() => {
|
|
8426
8504
|
p.current || c(e);
|
|
8427
8505
|
}, [e]);
|
|
8428
|
-
let m = t ?? Object.keys(s), h =
|
|
8506
|
+
let m = t ?? Object.keys(s), h = ss(os(sc, { activationConstraint: { distance: 4 } }), os(nc, { coordinateGetter: Zl }));
|
|
8429
8507
|
function g(e) {
|
|
8430
8508
|
return e in s ? e : Object.keys(s).find((t) => s[t].some((t) => n(t) === e));
|
|
8431
8509
|
}
|
|
@@ -8458,7 +8536,7 @@ function $l({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onVal
|
|
|
8458
8536
|
if (p.current = !1, u(null), f(null), !o) return;
|
|
8459
8537
|
if (t.data.current?.type === "column") {
|
|
8460
8538
|
let e = m.indexOf(String(t.id)), n = m.indexOf(String(o.id));
|
|
8461
|
-
e !== -1 && n !== -1 && e !== n && a?.(
|
|
8539
|
+
e !== -1 && n !== -1 && e !== n && a?.(Tl(m, e, n));
|
|
8462
8540
|
return;
|
|
8463
8541
|
}
|
|
8464
8542
|
let l = String(t.id), d = String(o.id), h = g(l);
|
|
@@ -8467,7 +8545,7 @@ function $l({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onVal
|
|
|
8467
8545
|
if (t !== -1 && a !== -1 && t !== a) {
|
|
8468
8546
|
let n = {
|
|
8469
8547
|
...s,
|
|
8470
|
-
[h]:
|
|
8548
|
+
[h]: Tl(e, t, a)
|
|
8471
8549
|
};
|
|
8472
8550
|
c(n), r?.(n), i?.(n);
|
|
8473
8551
|
return;
|
|
@@ -8478,22 +8556,22 @@ function $l({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onVal
|
|
|
8478
8556
|
function x() {
|
|
8479
8557
|
p.current = !1, u(null), f(null), c(e);
|
|
8480
8558
|
}
|
|
8481
|
-
return /* @__PURE__ */ y(
|
|
8559
|
+
return /* @__PURE__ */ y(eu.Provider, {
|
|
8482
8560
|
value: {
|
|
8483
8561
|
activeId: l,
|
|
8484
8562
|
activeType: d,
|
|
8485
8563
|
getColumnOf: g
|
|
8486
8564
|
},
|
|
8487
|
-
children: /* @__PURE__ */ y(
|
|
8565
|
+
children: /* @__PURE__ */ y(il, {
|
|
8488
8566
|
sensors: h,
|
|
8489
|
-
collisionDetection:
|
|
8567
|
+
collisionDetection: hs,
|
|
8490
8568
|
onDragStart: _,
|
|
8491
8569
|
onDragOver: v,
|
|
8492
8570
|
onDragEnd: b,
|
|
8493
8571
|
onDragCancel: x,
|
|
8494
|
-
children: /* @__PURE__ */ y(
|
|
8572
|
+
children: /* @__PURE__ */ y(ru.Provider, {
|
|
8495
8573
|
value: s,
|
|
8496
|
-
children: /* @__PURE__ */ y(
|
|
8574
|
+
children: /* @__PURE__ */ y(iu.Provider, {
|
|
8497
8575
|
value: m,
|
|
8498
8576
|
children: o
|
|
8499
8577
|
})
|
|
@@ -8501,17 +8579,17 @@ function $l({ value: e, columnOrder: t, getItemValue: n, onValueChange: r, onVal
|
|
|
8501
8579
|
})
|
|
8502
8580
|
});
|
|
8503
8581
|
}
|
|
8504
|
-
var
|
|
8505
|
-
function
|
|
8506
|
-
return O(
|
|
8582
|
+
var ru = w({}), iu = w([]);
|
|
8583
|
+
function au(e) {
|
|
8584
|
+
return O(ru)[e] ?? [];
|
|
8507
8585
|
}
|
|
8508
|
-
function
|
|
8509
|
-
return O(
|
|
8586
|
+
function ou() {
|
|
8587
|
+
return O(iu);
|
|
8510
8588
|
}
|
|
8511
|
-
function
|
|
8512
|
-
return /* @__PURE__ */ y(
|
|
8513
|
-
items:
|
|
8514
|
-
strategy:
|
|
8589
|
+
function su({ children: e, className: t, ...n }) {
|
|
8590
|
+
return /* @__PURE__ */ y(zl, {
|
|
8591
|
+
items: ou(),
|
|
8592
|
+
strategy: jl,
|
|
8515
8593
|
children: /* @__PURE__ */ y("div", {
|
|
8516
8594
|
"data-eds-component": "KanbanBoard",
|
|
8517
8595
|
className: K("grid grid-cols-1 items-start gap-4 md:grid-cols-2 lg:grid-cols-4", t),
|
|
@@ -8520,13 +8598,13 @@ function iu({ children: e, className: t, ...n }) {
|
|
|
8520
8598
|
})
|
|
8521
8599
|
});
|
|
8522
8600
|
}
|
|
8523
|
-
var
|
|
8524
|
-
function
|
|
8525
|
-
let { activeId: i } =
|
|
8601
|
+
var cu = w(null);
|
|
8602
|
+
function lu({ value: e, children: t, className: n, ...r }) {
|
|
8603
|
+
let { activeId: i } = tu("Kanban.Column"), { over: a } = ll(), { attributes: o, listeners: s, setNodeRef: c, transform: l, transition: u, isDragging: d } = ql({
|
|
8526
8604
|
id: e,
|
|
8527
8605
|
data: { type: "column" }
|
|
8528
8606
|
}), f = a?.id === e && i !== e;
|
|
8529
|
-
return /* @__PURE__ */ y(
|
|
8607
|
+
return /* @__PURE__ */ y(cu.Provider, {
|
|
8530
8608
|
value: {
|
|
8531
8609
|
attributes: o,
|
|
8532
8610
|
listeners: s
|
|
@@ -8536,7 +8614,7 @@ function ou({ value: e, children: t, className: n, ...r }) {
|
|
|
8536
8614
|
"data-eds-component": "KanbanColumn",
|
|
8537
8615
|
"data-dragging": d || void 0,
|
|
8538
8616
|
style: {
|
|
8539
|
-
transform:
|
|
8617
|
+
transform: Go.Transform.toString(l),
|
|
8540
8618
|
transition: u
|
|
8541
8619
|
},
|
|
8542
8620
|
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 +8626,8 @@ function ou({ value: e, children: t, className: n, ...r }) {
|
|
|
8548
8626
|
})
|
|
8549
8627
|
});
|
|
8550
8628
|
}
|
|
8551
|
-
function
|
|
8552
|
-
let r = O(
|
|
8629
|
+
function uu({ className: e, children: t, ...n }) {
|
|
8630
|
+
let r = O(cu);
|
|
8553
8631
|
if (!r) throw Error("<Kanban.ColumnHandle> deve ser usado dentro de <Kanban.Column>.");
|
|
8554
8632
|
return /* @__PURE__ */ y("button", {
|
|
8555
8633
|
type: "button",
|
|
@@ -8561,10 +8639,10 @@ function su({ className: e, children: t, ...n }) {
|
|
|
8561
8639
|
children: t
|
|
8562
8640
|
});
|
|
8563
8641
|
}
|
|
8564
|
-
function
|
|
8565
|
-
return /* @__PURE__ */ y(
|
|
8642
|
+
function du({ items: e, children: t, className: n, ...r }) {
|
|
8643
|
+
return /* @__PURE__ */ y(zl, {
|
|
8566
8644
|
items: e,
|
|
8567
|
-
strategy:
|
|
8645
|
+
strategy: Fl,
|
|
8568
8646
|
children: /* @__PURE__ */ y("div", {
|
|
8569
8647
|
"data-eds-component": "KanbanColumnContent",
|
|
8570
8648
|
className: K("flex-1 space-y-3 overflow-y-auto", n),
|
|
@@ -8573,16 +8651,16 @@ function cu({ items: e, children: t, className: n, ...r }) {
|
|
|
8573
8651
|
})
|
|
8574
8652
|
});
|
|
8575
8653
|
}
|
|
8576
|
-
var
|
|
8577
|
-
function
|
|
8578
|
-
let { attributes: a, listeners: o, setNodeRef: s, transform: c, transition: l, isDragging: u } =
|
|
8654
|
+
var fu = w(null);
|
|
8655
|
+
function pu({ value: e, children: t, className: n, asHandle: r = !0, ...i }) {
|
|
8656
|
+
let { attributes: a, listeners: o, setNodeRef: s, transform: c, transition: l, isDragging: u } = ql({
|
|
8579
8657
|
id: e,
|
|
8580
8658
|
data: { type: "item" }
|
|
8581
8659
|
}), d = r ? {
|
|
8582
8660
|
...a,
|
|
8583
8661
|
...o
|
|
8584
8662
|
} : {};
|
|
8585
|
-
return /* @__PURE__ */ y(
|
|
8663
|
+
return /* @__PURE__ */ y(fu.Provider, {
|
|
8586
8664
|
value: {
|
|
8587
8665
|
attributes: a,
|
|
8588
8666
|
listeners: o
|
|
@@ -8592,7 +8670,7 @@ function uu({ value: e, children: t, className: n, asHandle: r = !0, ...i }) {
|
|
|
8592
8670
|
"data-eds-component": "KanbanItem",
|
|
8593
8671
|
"data-dragging": u || void 0,
|
|
8594
8672
|
style: {
|
|
8595
|
-
transform:
|
|
8673
|
+
transform: Go.Transform.toString(c),
|
|
8596
8674
|
transition: l
|
|
8597
8675
|
},
|
|
8598
8676
|
className: K(r && "cursor-grab touch-none active:cursor-grabbing", u && "opacity-50", n),
|
|
@@ -8602,8 +8680,8 @@ function uu({ value: e, children: t, className: n, asHandle: r = !0, ...i }) {
|
|
|
8602
8680
|
})
|
|
8603
8681
|
});
|
|
8604
8682
|
}
|
|
8605
|
-
function
|
|
8606
|
-
let r = O(
|
|
8683
|
+
function mu({ className: e, children: t, ...n }) {
|
|
8684
|
+
let r = O(fu);
|
|
8607
8685
|
if (!r) throw Error("<Kanban.ItemHandle> deve ser usado dentro de <Kanban.Item>.");
|
|
8608
8686
|
return /* @__PURE__ */ y("button", {
|
|
8609
8687
|
type: "button",
|
|
@@ -8615,26 +8693,26 @@ function du({ className: e, children: t, ...n }) {
|
|
|
8615
8693
|
children: t
|
|
8616
8694
|
});
|
|
8617
8695
|
}
|
|
8618
|
-
function
|
|
8619
|
-
let { activeId: t, activeType: n } =
|
|
8620
|
-
return /* @__PURE__ */ y(
|
|
8696
|
+
function hu({ children: e }) {
|
|
8697
|
+
let { activeId: t, activeType: n } = tu("Kanban.Overlay");
|
|
8698
|
+
return /* @__PURE__ */ y(wl, { children: t && n ? e({
|
|
8621
8699
|
id: t,
|
|
8622
8700
|
type: n
|
|
8623
8701
|
}) : null });
|
|
8624
8702
|
}
|
|
8625
|
-
function
|
|
8626
|
-
return /* @__PURE__ */ b(
|
|
8703
|
+
function gu({ columns: e, items: t, getItemValue: n, renderItem: r, renderColumnBadge: i, onValueChange: a, onValueCommit: o, onColumnOrderChange: s, className: c }) {
|
|
8704
|
+
return /* @__PURE__ */ b(nu, {
|
|
8627
8705
|
value: t,
|
|
8628
8706
|
columnOrder: e.map((e) => e.id),
|
|
8629
8707
|
getItemValue: n,
|
|
8630
8708
|
onValueChange: a,
|
|
8631
8709
|
onValueCommit: o,
|
|
8632
8710
|
onColumnOrderChange: s,
|
|
8633
|
-
children: [/* @__PURE__ */ y(
|
|
8711
|
+
children: [/* @__PURE__ */ y(su, {
|
|
8634
8712
|
className: c,
|
|
8635
8713
|
children: e.map((e) => {
|
|
8636
8714
|
let a = t[e.id] ?? [];
|
|
8637
|
-
return /* @__PURE__ */ b(
|
|
8715
|
+
return /* @__PURE__ */ b(lu, {
|
|
8638
8716
|
value: e.id,
|
|
8639
8717
|
className: e.className,
|
|
8640
8718
|
children: [/* @__PURE__ */ b("div", {
|
|
@@ -8647,36 +8725,36 @@ function pu({ columns: e, items: t, getItemValue: n, renderItem: r, renderColumn
|
|
|
8647
8725
|
children: [i ? i(e, a.length) : /* @__PURE__ */ y("span", {
|
|
8648
8726
|
className: "rounded-full bg-eds-neutral-background px-2 py-0.5 text-[11px] font-extrabold text-eds-neutral-main",
|
|
8649
8727
|
children: a.length
|
|
8650
|
-
}), /* @__PURE__ */ y(
|
|
8728
|
+
}), /* @__PURE__ */ y(uu, {
|
|
8651
8729
|
className: "text-eds-neutral-elements",
|
|
8652
8730
|
children: /* @__PURE__ */ y(f, { size: 14 })
|
|
8653
8731
|
})]
|
|
8654
8732
|
})]
|
|
8655
|
-
}), /* @__PURE__ */ y(
|
|
8733
|
+
}), /* @__PURE__ */ y(du, {
|
|
8656
8734
|
items: a.map(n),
|
|
8657
|
-
children: a.map((e) => /* @__PURE__ */ y(
|
|
8735
|
+
children: a.map((e) => /* @__PURE__ */ y(pu, {
|
|
8658
8736
|
value: n(e),
|
|
8659
8737
|
children: r(e)
|
|
8660
8738
|
}, n(e)))
|
|
8661
8739
|
})]
|
|
8662
8740
|
}, e.id);
|
|
8663
8741
|
})
|
|
8664
|
-
}), /* @__PURE__ */ y(
|
|
8742
|
+
}), /* @__PURE__ */ y(hu, { children: ({ id: e, type: i }) => {
|
|
8665
8743
|
if (i !== "item") return null;
|
|
8666
8744
|
let a = Object.values(t).flat().find((t) => n(t) === e);
|
|
8667
8745
|
return a ? r(a) : null;
|
|
8668
8746
|
} })]
|
|
8669
8747
|
});
|
|
8670
8748
|
}
|
|
8671
|
-
var
|
|
8672
|
-
Root:
|
|
8673
|
-
Board:
|
|
8674
|
-
Column:
|
|
8675
|
-
ColumnHandle:
|
|
8676
|
-
ColumnContent:
|
|
8677
|
-
Item:
|
|
8678
|
-
ItemHandle:
|
|
8679
|
-
Overlay:
|
|
8749
|
+
var _u = Object.assign(gu, {
|
|
8750
|
+
Root: nu,
|
|
8751
|
+
Board: su,
|
|
8752
|
+
Column: lu,
|
|
8753
|
+
ColumnHandle: uu,
|
|
8754
|
+
ColumnContent: du,
|
|
8755
|
+
Item: pu,
|
|
8756
|
+
ItemHandle: mu,
|
|
8757
|
+
Overlay: hu
|
|
8680
8758
|
});
|
|
8681
8759
|
//#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,
|
|
8760
|
+
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 };
|