@yusr_systems/ui 3.0.0 → 3.1.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/index.d.ts +36 -0
- package/dist/yusr-ui.js +334 -279
- package/package.json +1 -1
package/dist/yusr-ui.js
CHANGED
|
@@ -3538,8 +3538,63 @@ function fa({ items: e, LinkComponent: t = "a" }) {
|
|
|
3538
3538
|
});
|
|
3539
3539
|
}
|
|
3540
3540
|
//#endregion
|
|
3541
|
+
//#region src/hooks/useSidebarContext.tsx
|
|
3542
|
+
var pa = Te(null), ma = () => {
|
|
3543
|
+
let e = Ee(pa);
|
|
3544
|
+
if (!e) throw Error("useSidebarContext must be used within a SidebarProvider");
|
|
3545
|
+
return e;
|
|
3546
|
+
};
|
|
3547
|
+
//#endregion
|
|
3548
|
+
//#region src/components/custom/sideBar/yusrSideBar.tsx
|
|
3549
|
+
function ha({ LinkComponent: e = "a", logos: t, displayCompany: n = {
|
|
3550
|
+
name: "Yusr UI",
|
|
3551
|
+
logo: "/yusr-logo.png"
|
|
3552
|
+
}, navMain: r, navSecondary: i, children: o, ...s }) {
|
|
3553
|
+
return /* @__PURE__ */ a(pa.Provider, {
|
|
3554
|
+
value: {
|
|
3555
|
+
LinkComponent: e,
|
|
3556
|
+
logos: t,
|
|
3557
|
+
displayCompany: n,
|
|
3558
|
+
navMain: r,
|
|
3559
|
+
navSecondary: i
|
|
3560
|
+
},
|
|
3561
|
+
children: /* @__PURE__ */ a(li, { children: /* @__PURE__ */ a(ui, {
|
|
3562
|
+
collapsible: "icon",
|
|
3563
|
+
side: "right",
|
|
3564
|
+
...s,
|
|
3565
|
+
children: o
|
|
3566
|
+
}) })
|
|
3567
|
+
});
|
|
3568
|
+
}
|
|
3569
|
+
ha.Header = function() {
|
|
3570
|
+
let { displayCompany: e, logos: t } = ma();
|
|
3571
|
+
return /* @__PURE__ */ a(hi, { children: /* @__PURE__ */ a(H, { children: /* @__PURE__ */ o(U, { children: [/* @__PURE__ */ a(ia, { logos: {
|
|
3572
|
+
full: {
|
|
3573
|
+
light: t.logoFullLight,
|
|
3574
|
+
dark: t.logoFullDark
|
|
3575
|
+
},
|
|
3576
|
+
collapsed: {
|
|
3577
|
+
light: t.logoOnlyLight,
|
|
3578
|
+
dark: t.logoOnlyDark
|
|
3579
|
+
}
|
|
3580
|
+
} }), e && /* @__PURE__ */ a(ra, { company: e })] }) }) });
|
|
3581
|
+
}, ha.Content = function({ LogoutHandler: e }) {
|
|
3582
|
+
let { navMain: t, navSecondary: n, LinkComponent: r } = ma();
|
|
3583
|
+
return !t || !n ? /* @__PURE__ */ a(vi, {}) : /* @__PURE__ */ o(vi, { children: [/* @__PURE__ */ a(fa, {
|
|
3584
|
+
items: t,
|
|
3585
|
+
LinkComponent: r
|
|
3586
|
+
}), e !== void 0 && /* @__PURE__ */ a(ua, {
|
|
3587
|
+
items: n,
|
|
3588
|
+
className: "pt-10 mt-auto text-center",
|
|
3589
|
+
onLogout: e,
|
|
3590
|
+
LinkComponent: r
|
|
3591
|
+
})] });
|
|
3592
|
+
}, ha.Footer = function({ loggedInUser: e }) {
|
|
3593
|
+
return /* @__PURE__ */ a(gi, { children: /* @__PURE__ */ a(da, { user: e }) });
|
|
3594
|
+
};
|
|
3595
|
+
//#endregion
|
|
3541
3596
|
//#region src/components/custom/status/loading.tsx
|
|
3542
|
-
function
|
|
3597
|
+
function ga({ entityName: e }) {
|
|
3543
3598
|
return /* @__PURE__ */ o("div", {
|
|
3544
3599
|
className: "sm:max-w-xl flex flex-col items-center justify-center py-20",
|
|
3545
3600
|
children: [/* @__PURE__ */ a(te, { className: "h-10 w-10 animate-spin text-primary" }), /* @__PURE__ */ o("p", {
|
|
@@ -3554,75 +3609,75 @@ function pa({ entityName: e }) {
|
|
|
3554
3609
|
}
|
|
3555
3610
|
//#endregion
|
|
3556
3611
|
//#region src/components/pure/alert-dialog.tsx
|
|
3557
|
-
function
|
|
3612
|
+
function _a({ ...e }) {
|
|
3558
3613
|
return /* @__PURE__ */ a(A.Root, {
|
|
3559
3614
|
"data-slot": "alert-dialog",
|
|
3560
3615
|
...e
|
|
3561
3616
|
});
|
|
3562
3617
|
}
|
|
3563
|
-
function
|
|
3618
|
+
function va({ ...e }) {
|
|
3564
3619
|
return /* @__PURE__ */ a(A.Trigger, {
|
|
3565
3620
|
"data-slot": "alert-dialog-trigger",
|
|
3566
3621
|
...e
|
|
3567
3622
|
});
|
|
3568
3623
|
}
|
|
3569
|
-
function
|
|
3624
|
+
function ya({ ...e }) {
|
|
3570
3625
|
return /* @__PURE__ */ a(A.Portal, {
|
|
3571
3626
|
"data-slot": "alert-dialog-portal",
|
|
3572
3627
|
...e
|
|
3573
3628
|
});
|
|
3574
3629
|
}
|
|
3575
|
-
function
|
|
3630
|
+
function ba({ className: e, ...t }) {
|
|
3576
3631
|
return /* @__PURE__ */ a(A.Overlay, {
|
|
3577
3632
|
"data-slot": "alert-dialog-overlay",
|
|
3578
3633
|
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", e),
|
|
3579
3634
|
...t
|
|
3580
3635
|
});
|
|
3581
3636
|
}
|
|
3582
|
-
function
|
|
3583
|
-
return /* @__PURE__ */ o(
|
|
3637
|
+
function xa({ className: e, size: t = "default", ...n }) {
|
|
3638
|
+
return /* @__PURE__ */ o(ya, { children: [/* @__PURE__ */ a(ba, {}), /* @__PURE__ */ a(A.Content, {
|
|
3584
3639
|
"data-slot": "alert-dialog-content",
|
|
3585
3640
|
"data-size": t,
|
|
3586
3641
|
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-4 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 start-1/2 z-50 grid w-full -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 outline-none", e),
|
|
3587
3642
|
...n
|
|
3588
3643
|
})] });
|
|
3589
3644
|
}
|
|
3590
|
-
function
|
|
3645
|
+
function Sa({ className: e, ...t }) {
|
|
3591
3646
|
return /* @__PURE__ */ a("div", {
|
|
3592
3647
|
"data-slot": "alert-dialog-header",
|
|
3593
3648
|
className: P("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
|
|
3594
3649
|
...t
|
|
3595
3650
|
});
|
|
3596
3651
|
}
|
|
3597
|
-
function
|
|
3652
|
+
function Ca({ className: e, ...t }) {
|
|
3598
3653
|
return /* @__PURE__ */ a("div", {
|
|
3599
3654
|
"data-slot": "alert-dialog-footer",
|
|
3600
3655
|
className: P("bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
|
|
3601
3656
|
...t
|
|
3602
3657
|
});
|
|
3603
3658
|
}
|
|
3604
|
-
function
|
|
3659
|
+
function wa({ className: e, ...t }) {
|
|
3605
3660
|
return /* @__PURE__ */ a("div", {
|
|
3606
3661
|
"data-slot": "alert-dialog-media",
|
|
3607
3662
|
className: P("bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6", e),
|
|
3608
3663
|
...t
|
|
3609
3664
|
});
|
|
3610
3665
|
}
|
|
3611
|
-
function
|
|
3666
|
+
function Ta({ className: e, ...t }) {
|
|
3612
3667
|
return /* @__PURE__ */ a(A.Title, {
|
|
3613
3668
|
"data-slot": "alert-dialog-title",
|
|
3614
3669
|
className: P("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
3615
3670
|
...t
|
|
3616
3671
|
});
|
|
3617
3672
|
}
|
|
3618
|
-
function
|
|
3673
|
+
function Ea({ className: e, ...t }) {
|
|
3619
3674
|
return /* @__PURE__ */ a(A.Description, {
|
|
3620
3675
|
"data-slot": "alert-dialog-description",
|
|
3621
3676
|
className: P("text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3", e),
|
|
3622
3677
|
...t
|
|
3623
3678
|
});
|
|
3624
3679
|
}
|
|
3625
|
-
function
|
|
3680
|
+
function Da({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
3626
3681
|
return /* @__PURE__ */ a(F, {
|
|
3627
3682
|
variant: t,
|
|
3628
3683
|
size: n,
|
|
@@ -3634,7 +3689,7 @@ function wa({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
3634
3689
|
})
|
|
3635
3690
|
});
|
|
3636
3691
|
}
|
|
3637
|
-
function
|
|
3692
|
+
function Oa({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
3638
3693
|
return /* @__PURE__ */ a(F, {
|
|
3639
3694
|
variant: t,
|
|
3640
3695
|
size: n,
|
|
@@ -3648,36 +3703,36 @@ function Ta({ className: e, variant: t = "outline", size: n = "default", ...r })
|
|
|
3648
3703
|
}
|
|
3649
3704
|
//#endregion
|
|
3650
3705
|
//#region src/components/pure/alert.tsx
|
|
3651
|
-
var
|
|
3706
|
+
var ka = S("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
3652
3707
|
variants: { variant: {
|
|
3653
3708
|
default: "bg-card text-card-foreground",
|
|
3654
3709
|
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
3655
3710
|
} },
|
|
3656
3711
|
defaultVariants: { variant: "default" }
|
|
3657
3712
|
});
|
|
3658
|
-
function
|
|
3713
|
+
function Aa({ className: e, variant: t, ...n }) {
|
|
3659
3714
|
return /* @__PURE__ */ a("div", {
|
|
3660
3715
|
"data-slot": "alert",
|
|
3661
3716
|
role: "alert",
|
|
3662
|
-
className: P(
|
|
3717
|
+
className: P(ka({ variant: t }), e),
|
|
3663
3718
|
...n
|
|
3664
3719
|
});
|
|
3665
3720
|
}
|
|
3666
|
-
function
|
|
3721
|
+
function ja({ className: e, ...t }) {
|
|
3667
3722
|
return /* @__PURE__ */ a("div", {
|
|
3668
3723
|
"data-slot": "alert-title",
|
|
3669
3724
|
className: P("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
|
|
3670
3725
|
...t
|
|
3671
3726
|
});
|
|
3672
3727
|
}
|
|
3673
|
-
function
|
|
3728
|
+
function Ma({ className: e, ...t }) {
|
|
3674
3729
|
return /* @__PURE__ */ a("div", {
|
|
3675
3730
|
"data-slot": "alert-description",
|
|
3676
3731
|
className: P("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", e),
|
|
3677
3732
|
...t
|
|
3678
3733
|
});
|
|
3679
3734
|
}
|
|
3680
|
-
function
|
|
3735
|
+
function Na({ className: e, ...t }) {
|
|
3681
3736
|
return /* @__PURE__ */ a("div", {
|
|
3682
3737
|
"data-slot": "alert-action",
|
|
3683
3738
|
className: P("absolute top-2 end-2", e),
|
|
@@ -3686,7 +3741,7 @@ function Aa({ className: e, ...t }) {
|
|
|
3686
3741
|
}
|
|
3687
3742
|
//#endregion
|
|
3688
3743
|
//#region src/components/pure/badge.tsx
|
|
3689
|
-
var
|
|
3744
|
+
var Pa = S("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge", {
|
|
3690
3745
|
variants: { variant: {
|
|
3691
3746
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
3692
3747
|
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
@@ -3697,17 +3752,17 @@ var ja = S("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs
|
|
|
3697
3752
|
} },
|
|
3698
3753
|
defaultVariants: { variant: "default" }
|
|
3699
3754
|
});
|
|
3700
|
-
function
|
|
3755
|
+
function Fa({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
3701
3756
|
return /* @__PURE__ */ a(n ? C : "span", {
|
|
3702
3757
|
"data-slot": "badge",
|
|
3703
3758
|
"data-variant": t,
|
|
3704
|
-
className: P(
|
|
3759
|
+
className: P(Pa({ variant: t }), e),
|
|
3705
3760
|
...r
|
|
3706
3761
|
});
|
|
3707
3762
|
}
|
|
3708
3763
|
//#endregion
|
|
3709
3764
|
//#region src/components/pure/breadcrumb.tsx
|
|
3710
|
-
function
|
|
3765
|
+
function Ia({ className: e, ...t }) {
|
|
3711
3766
|
return /* @__PURE__ */ a("nav", {
|
|
3712
3767
|
"aria-label": "breadcrumb",
|
|
3713
3768
|
"data-slot": "breadcrumb",
|
|
@@ -3715,28 +3770,28 @@ function Na({ className: e, ...t }) {
|
|
|
3715
3770
|
...t
|
|
3716
3771
|
});
|
|
3717
3772
|
}
|
|
3718
|
-
function
|
|
3773
|
+
function La({ className: e, ...t }) {
|
|
3719
3774
|
return /* @__PURE__ */ a("ol", {
|
|
3720
3775
|
"data-slot": "breadcrumb-list",
|
|
3721
3776
|
className: P("text-muted-foreground gap-1.5 text-sm flex flex-wrap items-center wrap-break-word", e),
|
|
3722
3777
|
...t
|
|
3723
3778
|
});
|
|
3724
3779
|
}
|
|
3725
|
-
function
|
|
3780
|
+
function Ra({ className: e, ...t }) {
|
|
3726
3781
|
return /* @__PURE__ */ a("li", {
|
|
3727
3782
|
"data-slot": "breadcrumb-item",
|
|
3728
3783
|
className: P("gap-1 inline-flex items-center", e),
|
|
3729
3784
|
...t
|
|
3730
3785
|
});
|
|
3731
3786
|
}
|
|
3732
|
-
function
|
|
3787
|
+
function za({ asChild: e, className: t, ...n }) {
|
|
3733
3788
|
return /* @__PURE__ */ a(e ? C : "a", {
|
|
3734
3789
|
"data-slot": "breadcrumb-link",
|
|
3735
3790
|
className: P("hover:text-foreground transition-colors", t),
|
|
3736
3791
|
...n
|
|
3737
3792
|
});
|
|
3738
3793
|
}
|
|
3739
|
-
function
|
|
3794
|
+
function Ba({ className: e, ...t }) {
|
|
3740
3795
|
return /* @__PURE__ */ a("span", {
|
|
3741
3796
|
"data-slot": "breadcrumb-page",
|
|
3742
3797
|
role: "link",
|
|
@@ -3746,7 +3801,7 @@ function La({ className: e, ...t }) {
|
|
|
3746
3801
|
...t
|
|
3747
3802
|
});
|
|
3748
3803
|
}
|
|
3749
|
-
function
|
|
3804
|
+
function Va({ children: e, className: t, ...n }) {
|
|
3750
3805
|
return /* @__PURE__ */ a("li", {
|
|
3751
3806
|
"data-slot": "breadcrumb-separator",
|
|
3752
3807
|
role: "presentation",
|
|
@@ -3756,7 +3811,7 @@ function Ra({ children: e, className: t, ...n }) {
|
|
|
3756
3811
|
children: e ?? /* @__PURE__ */ a(d, { className: "rtl:rotate-180" })
|
|
3757
3812
|
});
|
|
3758
3813
|
}
|
|
3759
|
-
function
|
|
3814
|
+
function Ha({ className: e, ...t }) {
|
|
3760
3815
|
return /* @__PURE__ */ o("span", {
|
|
3761
3816
|
"data-slot": "breadcrumb-ellipsis",
|
|
3762
3817
|
role: "presentation",
|
|
@@ -3771,34 +3826,34 @@ function za({ className: e, ...t }) {
|
|
|
3771
3826
|
}
|
|
3772
3827
|
//#endregion
|
|
3773
3828
|
//#region src/components/pure/chart.tsx
|
|
3774
|
-
var
|
|
3829
|
+
var Ua = {
|
|
3775
3830
|
light: "",
|
|
3776
3831
|
dark: ".dark"
|
|
3777
|
-
},
|
|
3778
|
-
function
|
|
3779
|
-
let e = y.useContext(
|
|
3832
|
+
}, Wa = y.createContext(null);
|
|
3833
|
+
function Ga() {
|
|
3834
|
+
let e = y.useContext(Wa);
|
|
3780
3835
|
if (!e) throw Error("useChart must be used within a <ChartContainer />");
|
|
3781
3836
|
return e;
|
|
3782
3837
|
}
|
|
3783
|
-
function
|
|
3838
|
+
function Ka({ id: e, className: t, children: n, config: r, ...i }) {
|
|
3784
3839
|
let s = y.useId(), c = `chart-${e || s.replace(/:/g, "")}`;
|
|
3785
|
-
return /* @__PURE__ */ a(
|
|
3840
|
+
return /* @__PURE__ */ a(Wa.Provider, {
|
|
3786
3841
|
value: { config: r },
|
|
3787
3842
|
children: /* @__PURE__ */ o("div", {
|
|
3788
3843
|
"data-slot": "chart",
|
|
3789
3844
|
"data-chart": c,
|
|
3790
3845
|
className: P("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border[&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border[&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent[&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", t),
|
|
3791
3846
|
...i,
|
|
3792
|
-
children: [/* @__PURE__ */ a(
|
|
3847
|
+
children: [/* @__PURE__ */ a(qa, {
|
|
3793
3848
|
id: c,
|
|
3794
3849
|
config: r
|
|
3795
3850
|
}), /* @__PURE__ */ a(He.ResponsiveContainer, { children: n })]
|
|
3796
3851
|
})
|
|
3797
3852
|
});
|
|
3798
3853
|
}
|
|
3799
|
-
var
|
|
3854
|
+
var qa = ({ id: e, config: t }) => {
|
|
3800
3855
|
let n = Object.entries(t).filter(([, e]) => e.theme || e.color);
|
|
3801
|
-
return n.length ? /* @__PURE__ */ a("style", { dangerouslySetInnerHTML: { __html: Object.entries(
|
|
3856
|
+
return n.length ? /* @__PURE__ */ a("style", { dangerouslySetInnerHTML: { __html: Object.entries(Ua).map(([t, r]) => `
|
|
3802
3857
|
${r} [data-chart=${e}] {
|
|
3803
3858
|
${n.map(([e, n]) => {
|
|
3804
3859
|
let r = n.theme?.[t] || n.color;
|
|
@@ -3806,11 +3861,11 @@ ${n.map(([e, n]) => {
|
|
|
3806
3861
|
}).join("\n")}
|
|
3807
3862
|
}
|
|
3808
3863
|
`).join("\n") } }) : null;
|
|
3809
|
-
},
|
|
3810
|
-
function
|
|
3811
|
-
let { config: g } =
|
|
3864
|
+
}, Ja = He.Tooltip;
|
|
3865
|
+
function Ya({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: s = !1, hideIndicator: c = !1, label: l, labelFormatter: u, labelClassName: d, formatter: f, color: p, nameKey: m, labelKey: h }) {
|
|
3866
|
+
let { config: g } = Ga(), _ = y.useMemo(() => {
|
|
3812
3867
|
if (s || !t?.length) return null;
|
|
3813
|
-
let [e] = t, n =
|
|
3868
|
+
let [e] = t, n = Qa(g, e, `${h || e?.dataKey || e?.name || "value"}`), r = !h && typeof l == "string" ? g[l]?.label || l : n?.label;
|
|
3814
3869
|
return u ? /* @__PURE__ */ a("div", {
|
|
3815
3870
|
className: P("font-medium", d),
|
|
3816
3871
|
children: u(r, t)
|
|
@@ -3834,7 +3889,7 @@ function Ka({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
3834
3889
|
children: [v ? null : _, /* @__PURE__ */ a("div", {
|
|
3835
3890
|
className: "grid gap-1.5",
|
|
3836
3891
|
children: t.filter((e) => e.type !== "none").map((e, t) => {
|
|
3837
|
-
let n =
|
|
3892
|
+
let n = Qa(g, e, `${m || e.name || e.dataKey || "value"}`), s = p || e.payload.fill || e.color;
|
|
3838
3893
|
return /* @__PURE__ */ a("div", {
|
|
3839
3894
|
className: P("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center"),
|
|
3840
3895
|
children: f && e?.value !== void 0 && e.name ? f(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ o(i, { children: [n?.icon ? /* @__PURE__ */ a(n.icon, {}) : !c && /* @__PURE__ */ a("div", {
|
|
@@ -3866,13 +3921,13 @@ function Ka({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
3866
3921
|
})]
|
|
3867
3922
|
});
|
|
3868
3923
|
}
|
|
3869
|
-
var
|
|
3870
|
-
function
|
|
3871
|
-
let { config: s } =
|
|
3924
|
+
var Xa = He.Legend;
|
|
3925
|
+
function Za({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
|
|
3926
|
+
let { config: s } = Ga();
|
|
3872
3927
|
return n?.length ? /* @__PURE__ */ a("div", {
|
|
3873
3928
|
className: P("flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e),
|
|
3874
3929
|
children: n.filter((e) => e.type !== "none").map((e) => {
|
|
3875
|
-
let n =
|
|
3930
|
+
let n = Qa(s, e, `${i || e.dataKey || "value"}`);
|
|
3876
3931
|
return /* @__PURE__ */ o("div", {
|
|
3877
3932
|
className: P("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
3878
3933
|
children: [n?.icon && !t ? /* @__PURE__ */ a(n.icon, {}) : /* @__PURE__ */ a("div", {
|
|
@@ -3883,14 +3938,14 @@ function Ja({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bo
|
|
|
3883
3938
|
})
|
|
3884
3939
|
}) : null;
|
|
3885
3940
|
}
|
|
3886
|
-
function
|
|
3941
|
+
function Qa(e, t, n) {
|
|
3887
3942
|
if (typeof t != "object" || !t) return;
|
|
3888
3943
|
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
|
|
3889
3944
|
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
|
|
3890
3945
|
}
|
|
3891
3946
|
//#endregion
|
|
3892
3947
|
//#region src/components/pure/checkbox.tsx
|
|
3893
|
-
function
|
|
3948
|
+
function $a({ className: e, ...t }) {
|
|
3894
3949
|
return /* @__PURE__ */ a(Ue.Root, {
|
|
3895
3950
|
"data-slot": "checkbox",
|
|
3896
3951
|
className: P("border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-colors group-has-disabled/field:opacity-50 focus-visible:ring-3 aria-invalid:ring-3 peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
@@ -3904,14 +3959,14 @@ function Xa({ className: e, ...t }) {
|
|
|
3904
3959
|
}
|
|
3905
3960
|
//#endregion
|
|
3906
3961
|
//#region src/components/pure/combobox.tsx
|
|
3907
|
-
var
|
|
3908
|
-
function
|
|
3962
|
+
var eo = j.Root;
|
|
3963
|
+
function to({ ...e }) {
|
|
3909
3964
|
return /* @__PURE__ */ a(j.Value, {
|
|
3910
3965
|
"data-slot": "combobox-value",
|
|
3911
3966
|
...e
|
|
3912
3967
|
});
|
|
3913
3968
|
}
|
|
3914
|
-
function
|
|
3969
|
+
function no({ className: e, children: t, ...n }) {
|
|
3915
3970
|
return /* @__PURE__ */ o(j.Trigger, {
|
|
3916
3971
|
"data-slot": "combobox-trigger",
|
|
3917
3972
|
className: P("[&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -3919,7 +3974,7 @@ function $a({ className: e, children: t, ...n }) {
|
|
|
3919
3974
|
children: [t, /* @__PURE__ */ a(l, { className: "text-muted-foreground size-4 pointer-events-none" })]
|
|
3920
3975
|
});
|
|
3921
3976
|
}
|
|
3922
|
-
function
|
|
3977
|
+
function ro({ className: e, ...t }) {
|
|
3923
3978
|
return /* @__PURE__ */ a(j.Clear, {
|
|
3924
3979
|
"data-slot": "combobox-clear",
|
|
3925
3980
|
render: /* @__PURE__ */ a(Li, {
|
|
@@ -3931,7 +3986,7 @@ function eo({ className: e, ...t }) {
|
|
|
3931
3986
|
children: /* @__PURE__ */ a(Se, { className: "pointer-events-none" })
|
|
3932
3987
|
});
|
|
3933
3988
|
}
|
|
3934
|
-
function
|
|
3989
|
+
function io({ className: e, children: t, disabled: n = !1, showTrigger: r = !0, showClear: i = !1, ...s }) {
|
|
3935
3990
|
return /* @__PURE__ */ o(Ni, {
|
|
3936
3991
|
className: P("w-auto", e),
|
|
3937
3992
|
children: [
|
|
@@ -3948,14 +4003,14 @@ function to({ className: e, children: t, disabled: n = !1, showTrigger: r = !0,
|
|
|
3948
4003
|
"data-slot": "input-group-button",
|
|
3949
4004
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
3950
4005
|
disabled: n,
|
|
3951
|
-
children: /* @__PURE__ */ a(
|
|
3952
|
-
}), i && /* @__PURE__ */ a(
|
|
4006
|
+
children: /* @__PURE__ */ a(no, {})
|
|
4007
|
+
}), i && /* @__PURE__ */ a(ro, { disabled: n })]
|
|
3953
4008
|
}),
|
|
3954
4009
|
t
|
|
3955
4010
|
]
|
|
3956
4011
|
});
|
|
3957
4012
|
}
|
|
3958
|
-
function
|
|
4013
|
+
function ao({ className: e, side: t = "bottom", sideOffset: n = 6, align: r = "start", alignOffset: i = 0, anchor: o, ...s }) {
|
|
3959
4014
|
return /* @__PURE__ */ a(j.Portal, { children: /* @__PURE__ */ a(j.Positioner, {
|
|
3960
4015
|
side: t,
|
|
3961
4016
|
sideOffset: n,
|
|
@@ -3971,14 +4026,14 @@ function no({ className: e, side: t = "bottom", sideOffset: n = 6, align: r = "s
|
|
|
3971
4026
|
})
|
|
3972
4027
|
}) });
|
|
3973
4028
|
}
|
|
3974
|
-
function
|
|
4029
|
+
function oo({ className: e, ...t }) {
|
|
3975
4030
|
return /* @__PURE__ */ a(j.List, {
|
|
3976
4031
|
"data-slot": "combobox-list",
|
|
3977
4032
|
className: P("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 p-1 data-empty:p-0 overflow-y-auto overscroll-contain", e),
|
|
3978
4033
|
...t
|
|
3979
4034
|
});
|
|
3980
4035
|
}
|
|
3981
|
-
function
|
|
4036
|
+
function so({ className: e, children: t, ...n }) {
|
|
3982
4037
|
return /* @__PURE__ */ o(j.Item, {
|
|
3983
4038
|
"data-slot": "combobox-item",
|
|
3984
4039
|
className: P("data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2 rounded-md py-1 pe-8 ps-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
@@ -3989,48 +4044,48 @@ function io({ className: e, children: t, ...n }) {
|
|
|
3989
4044
|
})]
|
|
3990
4045
|
});
|
|
3991
4046
|
}
|
|
3992
|
-
function
|
|
4047
|
+
function co({ className: e, ...t }) {
|
|
3993
4048
|
return /* @__PURE__ */ a(j.Group, {
|
|
3994
4049
|
"data-slot": "combobox-group",
|
|
3995
4050
|
className: P(e),
|
|
3996
4051
|
...t
|
|
3997
4052
|
});
|
|
3998
4053
|
}
|
|
3999
|
-
function
|
|
4054
|
+
function lo({ className: e, ...t }) {
|
|
4000
4055
|
return /* @__PURE__ */ a(j.GroupLabel, {
|
|
4001
4056
|
"data-slot": "combobox-label",
|
|
4002
4057
|
className: P("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
4003
4058
|
...t
|
|
4004
4059
|
});
|
|
4005
4060
|
}
|
|
4006
|
-
function
|
|
4061
|
+
function uo({ ...e }) {
|
|
4007
4062
|
return /* @__PURE__ */ a(j.Collection, {
|
|
4008
4063
|
"data-slot": "combobox-collection",
|
|
4009
4064
|
...e
|
|
4010
4065
|
});
|
|
4011
4066
|
}
|
|
4012
|
-
function
|
|
4067
|
+
function fo({ className: e, ...t }) {
|
|
4013
4068
|
return /* @__PURE__ */ a(j.Empty, {
|
|
4014
4069
|
"data-slot": "combobox-empty",
|
|
4015
4070
|
className: P("text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex", e),
|
|
4016
4071
|
...t
|
|
4017
4072
|
});
|
|
4018
4073
|
}
|
|
4019
|
-
function
|
|
4074
|
+
function po({ className: e, ...t }) {
|
|
4020
4075
|
return /* @__PURE__ */ a(j.Separator, {
|
|
4021
4076
|
"data-slot": "combobox-separator",
|
|
4022
4077
|
className: P("bg-border -mx-1 my-1 h-px", e),
|
|
4023
4078
|
...t
|
|
4024
4079
|
});
|
|
4025
4080
|
}
|
|
4026
|
-
function
|
|
4081
|
+
function mo({ className: e, ...t }) {
|
|
4027
4082
|
return /* @__PURE__ */ a(j.Chips, {
|
|
4028
4083
|
"data-slot": "combobox-chips",
|
|
4029
4084
|
className: P("dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-8 flex-wrap items-center gap-1 rounded-lg border bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:ring-3 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1", e),
|
|
4030
4085
|
...t
|
|
4031
4086
|
});
|
|
4032
4087
|
}
|
|
4033
|
-
function
|
|
4088
|
+
function ho({ className: e, children: t, showRemove: n = !0, ...r }) {
|
|
4034
4089
|
return /* @__PURE__ */ o(j.Chip, {
|
|
4035
4090
|
"data-slot": "combobox-chip",
|
|
4036
4091
|
className: P("bg-muted text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pe-0 has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50", e),
|
|
@@ -4046,62 +4101,62 @@ function fo({ className: e, children: t, showRemove: n = !0, ...r }) {
|
|
|
4046
4101
|
})]
|
|
4047
4102
|
});
|
|
4048
4103
|
}
|
|
4049
|
-
function
|
|
4104
|
+
function go({ className: e, ...t }) {
|
|
4050
4105
|
return /* @__PURE__ */ a(j.Input, {
|
|
4051
4106
|
"data-slot": "combobox-chip-input",
|
|
4052
4107
|
className: P("min-w-16 flex-1 outline-none", e),
|
|
4053
4108
|
...t
|
|
4054
4109
|
});
|
|
4055
4110
|
}
|
|
4056
|
-
function
|
|
4111
|
+
function _o() {
|
|
4057
4112
|
return y.useRef(null);
|
|
4058
4113
|
}
|
|
4059
4114
|
//#endregion
|
|
4060
4115
|
//#region src/components/pure/direction.tsx
|
|
4061
|
-
function
|
|
4116
|
+
function vo({ dir: e, direction: t, children: n }) {
|
|
4062
4117
|
return /* @__PURE__ */ a(We.DirectionProvider, {
|
|
4063
4118
|
dir: t ?? e,
|
|
4064
4119
|
children: n
|
|
4065
4120
|
});
|
|
4066
4121
|
}
|
|
4067
|
-
var
|
|
4122
|
+
var yo = We.useDirection;
|
|
4068
4123
|
//#endregion
|
|
4069
4124
|
//#region src/components/pure/drawer.tsx
|
|
4070
|
-
function
|
|
4125
|
+
function bo({ ...e }) {
|
|
4071
4126
|
return /* @__PURE__ */ a(M.Root, {
|
|
4072
4127
|
"data-slot": "drawer",
|
|
4073
4128
|
...e
|
|
4074
4129
|
});
|
|
4075
4130
|
}
|
|
4076
|
-
function
|
|
4131
|
+
function xo({ ...e }) {
|
|
4077
4132
|
return /* @__PURE__ */ a(M.Trigger, {
|
|
4078
4133
|
"data-slot": "drawer-trigger",
|
|
4079
4134
|
...e
|
|
4080
4135
|
});
|
|
4081
4136
|
}
|
|
4082
|
-
function
|
|
4137
|
+
function So({ ...e }) {
|
|
4083
4138
|
return /* @__PURE__ */ a(M.Portal, {
|
|
4084
4139
|
"data-slot": "drawer-portal",
|
|
4085
4140
|
...e
|
|
4086
4141
|
});
|
|
4087
4142
|
}
|
|
4088
|
-
function
|
|
4143
|
+
function Co({ ...e }) {
|
|
4089
4144
|
return /* @__PURE__ */ a(M.Close, {
|
|
4090
4145
|
"data-slot": "drawer-close",
|
|
4091
4146
|
...e
|
|
4092
4147
|
});
|
|
4093
4148
|
}
|
|
4094
|
-
function
|
|
4149
|
+
function wo({ className: e, ...t }) {
|
|
4095
4150
|
return /* @__PURE__ */ a(M.Overlay, {
|
|
4096
4151
|
"data-slot": "drawer-overlay",
|
|
4097
4152
|
className: P("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", e),
|
|
4098
4153
|
...t
|
|
4099
4154
|
});
|
|
4100
4155
|
}
|
|
4101
|
-
function
|
|
4102
|
-
return /* @__PURE__ */ o(
|
|
4156
|
+
function To({ className: e, children: t, ...n }) {
|
|
4157
|
+
return /* @__PURE__ */ o(So, {
|
|
4103
4158
|
"data-slot": "drawer-portal",
|
|
4104
|
-
children: [/* @__PURE__ */ a(
|
|
4159
|
+
children: [/* @__PURE__ */ a(wo, {}), /* @__PURE__ */ o(M.Content, {
|
|
4105
4160
|
"data-slot": "drawer-content",
|
|
4106
4161
|
className: P("bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:start-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-e-xl data-[vaul-drawer-direction=left]:border-e data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:end-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-s-xl data-[vaul-drawer-direction=right]:border-s data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50", e),
|
|
4107
4162
|
...n,
|
|
@@ -4109,28 +4164,28 @@ function So({ className: e, children: t, ...n }) {
|
|
|
4109
4164
|
})]
|
|
4110
4165
|
});
|
|
4111
4166
|
}
|
|
4112
|
-
function
|
|
4167
|
+
function Eo({ className: e, ...t }) {
|
|
4113
4168
|
return /* @__PURE__ */ a("div", {
|
|
4114
4169
|
"data-slot": "drawer-header",
|
|
4115
4170
|
className: P("gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-start flex flex-col", e),
|
|
4116
4171
|
...t
|
|
4117
4172
|
});
|
|
4118
4173
|
}
|
|
4119
|
-
function
|
|
4174
|
+
function Do({ className: e, ...t }) {
|
|
4120
4175
|
return /* @__PURE__ */ a("div", {
|
|
4121
4176
|
"data-slot": "drawer-footer",
|
|
4122
4177
|
className: P("gap-2 p-4 mt-auto flex flex-col", e),
|
|
4123
4178
|
...t
|
|
4124
4179
|
});
|
|
4125
4180
|
}
|
|
4126
|
-
function
|
|
4181
|
+
function Oo({ className: e, ...t }) {
|
|
4127
4182
|
return /* @__PURE__ */ a(M.Title, {
|
|
4128
4183
|
"data-slot": "drawer-title",
|
|
4129
4184
|
className: P("text-foreground text-base font-medium", e),
|
|
4130
4185
|
...t
|
|
4131
4186
|
});
|
|
4132
4187
|
}
|
|
4133
|
-
function
|
|
4188
|
+
function ko({ className: e, ...t }) {
|
|
4134
4189
|
return /* @__PURE__ */ a(M.Description, {
|
|
4135
4190
|
"data-slot": "drawer-description",
|
|
4136
4191
|
className: P("text-muted-foreground text-sm", e),
|
|
@@ -4139,14 +4194,14 @@ function Eo({ className: e, ...t }) {
|
|
|
4139
4194
|
}
|
|
4140
4195
|
//#endregion
|
|
4141
4196
|
//#region src/components/pure/field.tsx
|
|
4142
|
-
function
|
|
4197
|
+
function Ao({ className: e, ...t }) {
|
|
4143
4198
|
return /* @__PURE__ */ a("fieldset", {
|
|
4144
4199
|
"data-slot": "field-set",
|
|
4145
4200
|
className: P("gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", e),
|
|
4146
4201
|
...t
|
|
4147
4202
|
});
|
|
4148
4203
|
}
|
|
4149
|
-
function
|
|
4204
|
+
function jo({ className: e, variant: t = "legend", ...n }) {
|
|
4150
4205
|
return /* @__PURE__ */ a("legend", {
|
|
4151
4206
|
"data-slot": "field-legend",
|
|
4152
4207
|
"data-variant": t,
|
|
@@ -4154,14 +4209,14 @@ function Oo({ className: e, variant: t = "legend", ...n }) {
|
|
|
4154
4209
|
...n
|
|
4155
4210
|
});
|
|
4156
4211
|
}
|
|
4157
|
-
function
|
|
4212
|
+
function Mo({ className: e, ...t }) {
|
|
4158
4213
|
return /* @__PURE__ */ a("div", {
|
|
4159
4214
|
"data-slot": "field-group",
|
|
4160
4215
|
className: P("gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col", e),
|
|
4161
4216
|
...t
|
|
4162
4217
|
});
|
|
4163
4218
|
}
|
|
4164
|
-
var
|
|
4219
|
+
var No = S("data-[invalid=true]:text-destructive gap-2 group/field flex w-full", {
|
|
4165
4220
|
variants: { orientation: {
|
|
4166
4221
|
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
4167
4222
|
horizontal: "flex-row items-center *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
@@ -4169,44 +4224,44 @@ var Ao = S("data-[invalid=true]:text-destructive gap-2 group/field flex w-full",
|
|
|
4169
4224
|
} },
|
|
4170
4225
|
defaultVariants: { orientation: "vertical" }
|
|
4171
4226
|
});
|
|
4172
|
-
function
|
|
4227
|
+
function Po({ className: e, orientation: t = "vertical", ...n }) {
|
|
4173
4228
|
return /* @__PURE__ */ a("div", {
|
|
4174
4229
|
role: "group",
|
|
4175
4230
|
"data-slot": "field",
|
|
4176
4231
|
"data-orientation": t,
|
|
4177
|
-
className: P(
|
|
4232
|
+
className: P(No({ orientation: t }), e),
|
|
4178
4233
|
...n
|
|
4179
4234
|
});
|
|
4180
4235
|
}
|
|
4181
|
-
function
|
|
4236
|
+
function Fo({ className: e, ...t }) {
|
|
4182
4237
|
return /* @__PURE__ */ a("div", {
|
|
4183
4238
|
"data-slot": "field-content",
|
|
4184
4239
|
className: P("gap-0.5 group/field-content flex flex-1 flex-col leading-snug", e),
|
|
4185
4240
|
...t
|
|
4186
4241
|
});
|
|
4187
4242
|
}
|
|
4188
|
-
function
|
|
4243
|
+
function Io({ className: e, ...t }) {
|
|
4189
4244
|
return /* @__PURE__ */ a(zt, {
|
|
4190
4245
|
"data-slot": "field-label",
|
|
4191
4246
|
className: P("has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 group/field-label peer/field-label flex w-fit leading-snug", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
4192
4247
|
...t
|
|
4193
4248
|
});
|
|
4194
4249
|
}
|
|
4195
|
-
function
|
|
4250
|
+
function Lo({ className: e, ...t }) {
|
|
4196
4251
|
return /* @__PURE__ */ a("div", {
|
|
4197
4252
|
"data-slot": "field-label",
|
|
4198
4253
|
className: P("gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug", e),
|
|
4199
4254
|
...t
|
|
4200
4255
|
});
|
|
4201
4256
|
}
|
|
4202
|
-
function
|
|
4257
|
+
function Ro({ className: e, ...t }) {
|
|
4203
4258
|
return /* @__PURE__ */ a("p", {
|
|
4204
4259
|
"data-slot": "field-description",
|
|
4205
4260
|
className: P("text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance", "last:mt-0 nth-last-2:-mt-1", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", e),
|
|
4206
4261
|
...t
|
|
4207
4262
|
});
|
|
4208
4263
|
}
|
|
4209
|
-
function
|
|
4264
|
+
function zo({ children: e, className: t, ...n }) {
|
|
4210
4265
|
return /* @__PURE__ */ o("div", {
|
|
4211
4266
|
"data-slot": "field-separator",
|
|
4212
4267
|
"data-content": !!e,
|
|
@@ -4219,7 +4274,7 @@ function Io({ children: e, className: t, ...n }) {
|
|
|
4219
4274
|
})]
|
|
4220
4275
|
});
|
|
4221
4276
|
}
|
|
4222
|
-
function
|
|
4277
|
+
function Bo({ className: e, children: t, errors: n, ...r }) {
|
|
4223
4278
|
let i = Oe(() => {
|
|
4224
4279
|
if (t) return t;
|
|
4225
4280
|
if (!n?.length) return null;
|
|
@@ -4239,7 +4294,7 @@ function Lo({ className: e, children: t, errors: n, ...r }) {
|
|
|
4239
4294
|
}
|
|
4240
4295
|
//#endregion
|
|
4241
4296
|
//#region src/components/pure/scroll-area.tsx
|
|
4242
|
-
function
|
|
4297
|
+
function Vo({ className: e, children: t, ...n }) {
|
|
4243
4298
|
return /* @__PURE__ */ o(Ge.Root, {
|
|
4244
4299
|
"data-slot": "scroll-area",
|
|
4245
4300
|
className: P("relative", e),
|
|
@@ -4250,12 +4305,12 @@ function Ro({ className: e, children: t, ...n }) {
|
|
|
4250
4305
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
4251
4306
|
children: t
|
|
4252
4307
|
}),
|
|
4253
|
-
/* @__PURE__ */ a(
|
|
4308
|
+
/* @__PURE__ */ a(Ho, {}),
|
|
4254
4309
|
/* @__PURE__ */ a(Ge.Corner, {})
|
|
4255
4310
|
]
|
|
4256
4311
|
});
|
|
4257
4312
|
}
|
|
4258
|
-
function
|
|
4313
|
+
function Ho({ className: e, orientation: t = "vertical", ...n }) {
|
|
4259
4314
|
return /* @__PURE__ */ a(Ge.ScrollAreaScrollbar, {
|
|
4260
4315
|
"data-slot": "scroll-area-scrollbar",
|
|
4261
4316
|
"data-orientation": t,
|
|
@@ -4270,7 +4325,7 @@ function zo({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
4270
4325
|
}
|
|
4271
4326
|
//#endregion
|
|
4272
4327
|
//#region src/components/pure/sonner.tsx
|
|
4273
|
-
var
|
|
4328
|
+
var Uo = ({ ...e }) => {
|
|
4274
4329
|
let { theme: t = "system" } = Ke();
|
|
4275
4330
|
return /* @__PURE__ */ a(qe, {
|
|
4276
4331
|
theme: t,
|
|
@@ -4294,7 +4349,7 @@ var Bo = ({ ...e }) => {
|
|
|
4294
4349
|
};
|
|
4295
4350
|
//#endregion
|
|
4296
4351
|
//#region src/components/pure/switch.tsx
|
|
4297
|
-
function
|
|
4352
|
+
function Wo({ className: e, size: t = "default", ...n }) {
|
|
4298
4353
|
return /* @__PURE__ */ a(Je.Root, {
|
|
4299
4354
|
"data-slot": "switch",
|
|
4300
4355
|
"data-size": t,
|
|
@@ -4308,7 +4363,7 @@ function Vo({ className: e, size: t = "default", ...n }) {
|
|
|
4308
4363
|
}
|
|
4309
4364
|
//#endregion
|
|
4310
4365
|
//#region src/components/pure/tabs.tsx
|
|
4311
|
-
function
|
|
4366
|
+
function Go({ className: e, orientation: t = "horizontal", ...n }) {
|
|
4312
4367
|
return /* @__PURE__ */ a(Ye.Root, {
|
|
4313
4368
|
"data-slot": "tabs",
|
|
4314
4369
|
"data-orientation": t,
|
|
@@ -4316,29 +4371,29 @@ function Ho({ className: e, orientation: t = "horizontal", ...n }) {
|
|
|
4316
4371
|
...n
|
|
4317
4372
|
});
|
|
4318
4373
|
}
|
|
4319
|
-
var
|
|
4374
|
+
var Ko = S("rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col", {
|
|
4320
4375
|
variants: { variant: {
|
|
4321
4376
|
default: "bg-muted",
|
|
4322
4377
|
line: "gap-1 bg-transparent"
|
|
4323
4378
|
} },
|
|
4324
4379
|
defaultVariants: { variant: "default" }
|
|
4325
4380
|
});
|
|
4326
|
-
function
|
|
4381
|
+
function qo({ className: e, variant: t = "default", ...n }) {
|
|
4327
4382
|
return /* @__PURE__ */ a(Ye.List, {
|
|
4328
4383
|
"data-slot": "tabs-list",
|
|
4329
4384
|
"data-variant": t,
|
|
4330
|
-
className: P(
|
|
4385
|
+
className: P(Ko({ variant: t }), e),
|
|
4331
4386
|
...n
|
|
4332
4387
|
});
|
|
4333
4388
|
}
|
|
4334
|
-
function
|
|
4389
|
+
function Jo({ className: e, ...t }) {
|
|
4335
4390
|
return /* @__PURE__ */ a(Ye.Trigger, {
|
|
4336
4391
|
"data-slot": "tabs-trigger",
|
|
4337
4392
|
className: P("gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background dark:data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 data-active:text-foreground", "after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-end-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", e),
|
|
4338
4393
|
...t
|
|
4339
4394
|
});
|
|
4340
4395
|
}
|
|
4341
|
-
function
|
|
4396
|
+
function Yo({ className: e, ...t }) {
|
|
4342
4397
|
return /* @__PURE__ */ a(Ye.Content, {
|
|
4343
4398
|
"data-slot": "tabs-content",
|
|
4344
4399
|
className: P("text-sm flex-1 outline-none", e),
|
|
@@ -4347,7 +4402,7 @@ function Ko({ className: e, ...t }) {
|
|
|
4347
4402
|
}
|
|
4348
4403
|
//#endregion
|
|
4349
4404
|
//#region src/components/pure/toggle.tsx
|
|
4350
|
-
var
|
|
4405
|
+
var Xo = S("hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[state=on]:bg-muted gap-1 rounded-lg text-sm font-medium transition-all [&_svg:not([class*='size-'])]:size-4 group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
4351
4406
|
variants: {
|
|
4352
4407
|
variant: {
|
|
4353
4408
|
default: "bg-transparent",
|
|
@@ -4364,10 +4419,10 @@ var qo = S("hover:text-foreground aria-pressed:bg-muted focus-visible:border-rin
|
|
|
4364
4419
|
size: "default"
|
|
4365
4420
|
}
|
|
4366
4421
|
});
|
|
4367
|
-
function
|
|
4422
|
+
function Zo({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
4368
4423
|
return /* @__PURE__ */ a(Ze.Root, {
|
|
4369
4424
|
"data-slot": "toggle",
|
|
4370
|
-
className: P(
|
|
4425
|
+
className: P(Xo({
|
|
4371
4426
|
variant: t,
|
|
4372
4427
|
size: n,
|
|
4373
4428
|
className: e
|
|
@@ -4377,13 +4432,13 @@ function Jo({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
4377
4432
|
}
|
|
4378
4433
|
//#endregion
|
|
4379
4434
|
//#region src/components/pure/toggle-group.tsx
|
|
4380
|
-
var
|
|
4435
|
+
var Qo = y.createContext({
|
|
4381
4436
|
size: "default",
|
|
4382
4437
|
variant: "default",
|
|
4383
4438
|
spacing: 0,
|
|
4384
4439
|
orientation: "horizontal"
|
|
4385
4440
|
});
|
|
4386
|
-
function
|
|
4441
|
+
function $o({ className: e, variant: t, size: n, spacing: r = 0, orientation: i = "horizontal", children: o, ...s }) {
|
|
4387
4442
|
return /* @__PURE__ */ a(Xe.Root, {
|
|
4388
4443
|
"data-slot": "toggle-group",
|
|
4389
4444
|
"data-variant": t,
|
|
@@ -4393,7 +4448,7 @@ function Xo({ className: e, variant: t, size: n, spacing: r = 0, orientation: i
|
|
|
4393
4448
|
style: { "--gap": r },
|
|
4394
4449
|
className: P("rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] data-vertical:flex-col data-vertical:items-stretch", e),
|
|
4395
4450
|
...s,
|
|
4396
|
-
children: /* @__PURE__ */ a(
|
|
4451
|
+
children: /* @__PURE__ */ a(Qo.Provider, {
|
|
4397
4452
|
value: {
|
|
4398
4453
|
variant: t,
|
|
4399
4454
|
size: n,
|
|
@@ -4404,14 +4459,14 @@ function Xo({ className: e, variant: t, size: n, spacing: r = 0, orientation: i
|
|
|
4404
4459
|
})
|
|
4405
4460
|
});
|
|
4406
4461
|
}
|
|
4407
|
-
function
|
|
4408
|
-
let o = y.useContext(
|
|
4462
|
+
function es({ className: e, children: t, variant: n = "default", size: r = "default", ...i }) {
|
|
4463
|
+
let o = y.useContext(Qo);
|
|
4409
4464
|
return /* @__PURE__ */ a(Xe.Item, {
|
|
4410
4465
|
"data-slot": "toggle-group-item",
|
|
4411
4466
|
"data-variant": o.variant || n,
|
|
4412
4467
|
"data-size": o.size || r,
|
|
4413
4468
|
"data-spacing": o.spacing,
|
|
4414
|
-
className: P("group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg shrink-0 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",
|
|
4469
|
+
className: P("group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg shrink-0 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", Xo({
|
|
4415
4470
|
variant: o.variant || n,
|
|
4416
4471
|
size: o.size || r
|
|
4417
4472
|
}), e),
|
|
@@ -4421,7 +4476,7 @@ function Zo({ className: e, children: t, variant: n = "default", size: r = "defa
|
|
|
4421
4476
|
}
|
|
4422
4477
|
//#endregion
|
|
4423
4478
|
//#region src/hooks/useDialog.ts
|
|
4424
|
-
function
|
|
4479
|
+
function ts() {
|
|
4425
4480
|
let [e, t] = x(null), [n, r] = x(!1), [i, a] = x(!1);
|
|
4426
4481
|
return {
|
|
4427
4482
|
selectedRow: e,
|
|
@@ -4439,7 +4494,7 @@ function Qo() {
|
|
|
4439
4494
|
}
|
|
4440
4495
|
//#endregion
|
|
4441
4496
|
//#region src/hooks/useDynamicList.ts
|
|
4442
|
-
function
|
|
4497
|
+
function ns(e, t, n) {
|
|
4443
4498
|
return {
|
|
4444
4499
|
addRow: b((r) => {
|
|
4445
4500
|
t((t) => ({
|
|
@@ -4487,7 +4542,7 @@ function $o(e, t, n) {
|
|
|
4487
4542
|
}
|
|
4488
4543
|
//#endregion
|
|
4489
4544
|
//#region src/hooks/useFormValidation.ts
|
|
4490
|
-
function
|
|
4545
|
+
function rs(e, t) {
|
|
4491
4546
|
let [n, r] = x({}), i = (e) => n[e], a = (e) => !!n[e];
|
|
4492
4547
|
return {
|
|
4493
4548
|
errors: n,
|
|
@@ -4517,10 +4572,10 @@ function es(e, t) {
|
|
|
4517
4572
|
}
|
|
4518
4573
|
//#endregion
|
|
4519
4574
|
//#region src/hooks/useEntityForm.ts
|
|
4520
|
-
function
|
|
4575
|
+
function is(e, t) {
|
|
4521
4576
|
let [n, r] = x({ ...e }), [i, a] = x(e);
|
|
4522
4577
|
e !== i && (r({ ...e }), a(e));
|
|
4523
|
-
let o =
|
|
4578
|
+
let o = rs(n, t);
|
|
4524
4579
|
return {
|
|
4525
4580
|
formData: n,
|
|
4526
4581
|
handleChange: b((e) => {
|
|
@@ -4539,7 +4594,7 @@ function ts(e, t) {
|
|
|
4539
4594
|
}
|
|
4540
4595
|
//#endregion
|
|
4541
4596
|
//#region src/hooks/useLightBox.ts
|
|
4542
|
-
function
|
|
4597
|
+
function as() {
|
|
4543
4598
|
let [e, t] = x(null);
|
|
4544
4599
|
return {
|
|
4545
4600
|
lightbox: e,
|
|
@@ -4555,7 +4610,7 @@ function ns() {
|
|
|
4555
4610
|
}
|
|
4556
4611
|
//#endregion
|
|
4557
4612
|
//#region src/hooks/useStorageFile.ts
|
|
4558
|
-
function
|
|
4613
|
+
function os(e, t) {
|
|
4559
4614
|
let n = ke(null), r = async (r) => {
|
|
4560
4615
|
let i = Array.from(r.target.files || []);
|
|
4561
4616
|
if (i.length === 0) return;
|
|
@@ -4641,7 +4696,7 @@ function rs(e, t) {
|
|
|
4641
4696
|
}
|
|
4642
4697
|
//#endregion
|
|
4643
4698
|
//#region src/state/authListener.ts
|
|
4644
|
-
var
|
|
4699
|
+
var ss = (e, t) => {
|
|
4645
4700
|
window.addEventListener("storage", (n) => {
|
|
4646
4701
|
n.key === Qe.AuthCheckStorageItemName && e(t.syncFromStorage());
|
|
4647
4702
|
}), window.addEventListener(Qe.UnauthorizedEventName, () => {
|
|
@@ -4650,7 +4705,7 @@ var is = (e, t) => {
|
|
|
4650
4705
|
};
|
|
4651
4706
|
//#endregion
|
|
4652
4707
|
//#region src/state/generics/genericDialogSlice.ts
|
|
4653
|
-
function
|
|
4708
|
+
function cs(e) {
|
|
4654
4709
|
return tt({
|
|
4655
4710
|
name: e,
|
|
4656
4711
|
initialState: {
|
|
@@ -4676,7 +4731,7 @@ function as(e) {
|
|
|
4676
4731
|
}
|
|
4677
4732
|
//#endregion
|
|
4678
4733
|
//#region ../../node_modules/immer/dist/immer.mjs
|
|
4679
|
-
var
|
|
4734
|
+
var ls = Symbol.for("immer-nothing"), us = Symbol.for("immer-draftable"), G = Symbol.for("immer-state"), ds = process.env.NODE_ENV === "production" ? [] : [
|
|
4680
4735
|
function(e) {
|
|
4681
4736
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
4682
4737
|
},
|
|
@@ -4706,63 +4761,63 @@ var os = Symbol.for("immer-nothing"), ss = Symbol.for("immer-draftable"), G = Sy
|
|
|
4706
4761
|
];
|
|
4707
4762
|
function K(e, ...t) {
|
|
4708
4763
|
if (process.env.NODE_ENV !== "production") {
|
|
4709
|
-
let n =
|
|
4764
|
+
let n = ds[e], r = Z(n) ? n.apply(null, t) : n;
|
|
4710
4765
|
throw Error(`[Immer] ${r}`);
|
|
4711
4766
|
}
|
|
4712
4767
|
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
4713
4768
|
}
|
|
4714
|
-
var q = Object, J = q.getPrototypeOf,
|
|
4769
|
+
var q = Object, J = q.getPrototypeOf, fs = "constructor", ps = "prototype", ms = "configurable", hs = "enumerable", gs = "writable", _s = "value", Y = (e) => !!e && !!e[G];
|
|
4715
4770
|
function X(e) {
|
|
4716
|
-
return e ?
|
|
4771
|
+
return e ? bs(e) || Ds(e) || !!e[us] || !!e[fs]?.[us] || Os(e) || ks(e) : !1;
|
|
4717
4772
|
}
|
|
4718
|
-
var
|
|
4719
|
-
function
|
|
4720
|
-
if (!e || !
|
|
4773
|
+
var vs = q[ps][fs].toString(), ys = /* @__PURE__ */ new WeakMap();
|
|
4774
|
+
function bs(e) {
|
|
4775
|
+
if (!e || !As(e)) return !1;
|
|
4721
4776
|
let t = J(e);
|
|
4722
|
-
if (t === null || t === q[
|
|
4723
|
-
let n = q.hasOwnProperty.call(t,
|
|
4777
|
+
if (t === null || t === q[ps]) return !0;
|
|
4778
|
+
let n = q.hasOwnProperty.call(t, fs) && t[fs];
|
|
4724
4779
|
if (n === Object) return !0;
|
|
4725
4780
|
if (!Z(n)) return !1;
|
|
4726
|
-
let r =
|
|
4727
|
-
return r === void 0 && (r = Function.toString.call(n),
|
|
4781
|
+
let r = ys.get(n);
|
|
4782
|
+
return r === void 0 && (r = Function.toString.call(n), ys.set(n, r)), r === vs;
|
|
4728
4783
|
}
|
|
4729
|
-
function
|
|
4730
|
-
|
|
4784
|
+
function xs(e, t, n = !0) {
|
|
4785
|
+
Ss(e) === 0 ? (n ? Reflect.ownKeys(e) : q.keys(e)).forEach((n) => {
|
|
4731
4786
|
t(n, e[n], e);
|
|
4732
4787
|
}) : e.forEach((n, r) => t(r, n, e));
|
|
4733
4788
|
}
|
|
4734
|
-
function
|
|
4789
|
+
function Ss(e) {
|
|
4735
4790
|
let t = e[G];
|
|
4736
|
-
return t ? t.type_ :
|
|
4791
|
+
return t ? t.type_ : Ds(e) ? 1 : Os(e) ? 2 : ks(e) ? 3 : 0;
|
|
4737
4792
|
}
|
|
4738
|
-
var
|
|
4793
|
+
var Cs = (e, t, n = Ss(e)) => n === 2 ? e.has(t) : q[ps].hasOwnProperty.call(e, t), ws = (e, t, n = Ss(e)) => n === 2 ? e.get(t) : e[t], Ts = (e, t, n, r = Ss(e)) => {
|
|
4739
4794
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
4740
4795
|
};
|
|
4741
|
-
function
|
|
4796
|
+
function Es(e, t) {
|
|
4742
4797
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
4743
4798
|
}
|
|
4744
|
-
var
|
|
4745
|
-
function
|
|
4799
|
+
var Ds = Array.isArray, Os = (e) => e instanceof Map, ks = (e) => e instanceof Set, As = (e) => typeof e == "object", Z = (e) => typeof e == "function", js = (e) => typeof e == "boolean";
|
|
4800
|
+
function Ms(e) {
|
|
4746
4801
|
let t = +e;
|
|
4747
4802
|
return Number.isInteger(t) && String(t) === e;
|
|
4748
4803
|
}
|
|
4749
|
-
var Q = (e) => e.copy_ || e.base_,
|
|
4750
|
-
function
|
|
4751
|
-
if (
|
|
4752
|
-
if (
|
|
4753
|
-
if (
|
|
4754
|
-
let n =
|
|
4804
|
+
var Q = (e) => e.copy_ || e.base_, Ns = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
4805
|
+
function Ps(e, t) {
|
|
4806
|
+
if (Os(e)) return new Map(e);
|
|
4807
|
+
if (ks(e)) return new Set(e);
|
|
4808
|
+
if (Ds(e)) return Array[ps].slice.call(e);
|
|
4809
|
+
let n = bs(e);
|
|
4755
4810
|
if (t === !0 || t === "class_only" && !n) {
|
|
4756
4811
|
let t = q.getOwnPropertyDescriptors(e);
|
|
4757
4812
|
delete t[G];
|
|
4758
4813
|
let n = Reflect.ownKeys(t);
|
|
4759
4814
|
for (let r = 0; r < n.length; r++) {
|
|
4760
4815
|
let i = n[r], a = t[i];
|
|
4761
|
-
a[
|
|
4762
|
-
[
|
|
4763
|
-
[
|
|
4764
|
-
[
|
|
4765
|
-
[
|
|
4816
|
+
a[gs] === !1 && (a[gs] = !0, a[ms] = !0), (a.get || a.set) && (t[i] = {
|
|
4817
|
+
[ms]: !0,
|
|
4818
|
+
[gs]: !0,
|
|
4819
|
+
[hs]: a[hs],
|
|
4820
|
+
[_s]: e[i]
|
|
4766
4821
|
});
|
|
4767
4822
|
}
|
|
4768
4823
|
return q.create(J(e), t);
|
|
@@ -4773,29 +4828,29 @@ function js(e, t) {
|
|
|
4773
4828
|
return q.assign(r, e);
|
|
4774
4829
|
}
|
|
4775
4830
|
}
|
|
4776
|
-
function
|
|
4777
|
-
return
|
|
4778
|
-
set:
|
|
4779
|
-
add:
|
|
4780
|
-
clear:
|
|
4781
|
-
delete:
|
|
4782
|
-
}), q.freeze(e), t &&
|
|
4783
|
-
|
|
4831
|
+
function Fs(e, t = !1) {
|
|
4832
|
+
return Rs(e) || Y(e) || !X(e) ? e : (Ss(e) > 1 && q.defineProperties(e, {
|
|
4833
|
+
set: Ls,
|
|
4834
|
+
add: Ls,
|
|
4835
|
+
clear: Ls,
|
|
4836
|
+
delete: Ls
|
|
4837
|
+
}), q.freeze(e), t && xs(e, (e, t) => {
|
|
4838
|
+
Fs(t, !0);
|
|
4784
4839
|
}, !1), e);
|
|
4785
4840
|
}
|
|
4786
|
-
function
|
|
4841
|
+
function Is() {
|
|
4787
4842
|
K(2);
|
|
4788
4843
|
}
|
|
4789
|
-
var
|
|
4790
|
-
function
|
|
4791
|
-
return e === null || !
|
|
4844
|
+
var Ls = { [_s]: Is };
|
|
4845
|
+
function Rs(e) {
|
|
4846
|
+
return e === null || !As(e) ? !0 : q.isFrozen(e);
|
|
4792
4847
|
}
|
|
4793
|
-
var
|
|
4848
|
+
var zs = "MapSet", Bs = "Patches", Vs = "ArrayMethods", Hs = {};
|
|
4794
4849
|
function $(e) {
|
|
4795
|
-
let t =
|
|
4850
|
+
let t = Hs[e];
|
|
4796
4851
|
return t || K(0, e), t;
|
|
4797
4852
|
}
|
|
4798
|
-
var
|
|
4853
|
+
var Us = (e) => !!Hs[e], Ws, Gs = () => Ws, Ks = (e, t) => ({
|
|
4799
4854
|
drafts_: [],
|
|
4800
4855
|
parent_: e,
|
|
4801
4856
|
immer_: t,
|
|
@@ -4803,114 +4858,114 @@ var Bs = (e) => !!zs[e], Vs, Hs = () => Vs, Us = (e, t) => ({
|
|
|
4803
4858
|
unfinalizedDrafts_: 0,
|
|
4804
4859
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
4805
4860
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
4806
|
-
mapSetPlugin_:
|
|
4807
|
-
arrayMethodsPlugin_:
|
|
4861
|
+
mapSetPlugin_: Us(zs) ? $(zs) : void 0,
|
|
4862
|
+
arrayMethodsPlugin_: Us(Vs) ? $(Vs) : void 0
|
|
4808
4863
|
});
|
|
4809
|
-
function
|
|
4810
|
-
t && (e.patchPlugin_ = $(
|
|
4864
|
+
function qs(e, t) {
|
|
4865
|
+
t && (e.patchPlugin_ = $(Bs), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
4811
4866
|
}
|
|
4812
|
-
function
|
|
4813
|
-
|
|
4867
|
+
function Js(e) {
|
|
4868
|
+
Ys(e), e.drafts_.forEach(Zs), e.drafts_ = null;
|
|
4814
4869
|
}
|
|
4815
|
-
function
|
|
4816
|
-
e ===
|
|
4870
|
+
function Ys(e) {
|
|
4871
|
+
e === Ws && (Ws = e.parent_);
|
|
4817
4872
|
}
|
|
4818
|
-
var
|
|
4819
|
-
function
|
|
4873
|
+
var Xs = (e) => Ws = Ks(Ws, e);
|
|
4874
|
+
function Zs(e) {
|
|
4820
4875
|
let t = e[G];
|
|
4821
4876
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
4822
4877
|
}
|
|
4823
|
-
function
|
|
4878
|
+
function Qs(e, t) {
|
|
4824
4879
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
4825
4880
|
let n = t.drafts_[0];
|
|
4826
4881
|
if (e !== void 0 && e !== n) {
|
|
4827
|
-
n[G].modified_ && (
|
|
4882
|
+
n[G].modified_ && (Js(t), K(4)), X(e) && (e = $s(t, e));
|
|
4828
4883
|
let { patchPlugin_: r } = t;
|
|
4829
4884
|
r && r.generateReplacementPatches_(n[G].base_, e, t);
|
|
4830
|
-
} else e =
|
|
4831
|
-
return
|
|
4885
|
+
} else e = $s(t, n);
|
|
4886
|
+
return ec(t, e, !0), Js(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === ls ? void 0 : e;
|
|
4832
4887
|
}
|
|
4833
|
-
function
|
|
4834
|
-
if (
|
|
4888
|
+
function $s(e, t) {
|
|
4889
|
+
if (Rs(t)) return t;
|
|
4835
4890
|
let n = t[G];
|
|
4836
|
-
if (!n) return
|
|
4837
|
-
if (
|
|
4891
|
+
if (!n) return cc(t, e.handledSet_, e);
|
|
4892
|
+
if (!nc(n, e)) return t;
|
|
4838
4893
|
if (!n.modified_) return n.base_;
|
|
4839
4894
|
if (!n.finalized_) {
|
|
4840
4895
|
let { callbacks_: t } = n;
|
|
4841
4896
|
if (t) for (; t.length > 0;) t.pop()(e);
|
|
4842
|
-
|
|
4897
|
+
oc(n, e);
|
|
4843
4898
|
}
|
|
4844
4899
|
return n.copy_;
|
|
4845
4900
|
}
|
|
4846
|
-
function
|
|
4847
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
4901
|
+
function ec(e, t, n = !1) {
|
|
4902
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Fs(t, n);
|
|
4848
4903
|
}
|
|
4849
|
-
function
|
|
4904
|
+
function tc(e) {
|
|
4850
4905
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
4851
4906
|
}
|
|
4852
|
-
var
|
|
4853
|
-
function
|
|
4907
|
+
var nc = (e, t) => e.scope_ === t, rc = [];
|
|
4908
|
+
function ic(e, t, n, r) {
|
|
4854
4909
|
let i = Q(e), a = e.type_;
|
|
4855
|
-
if (r !== void 0 &&
|
|
4856
|
-
|
|
4910
|
+
if (r !== void 0 && ws(i, r, a) === t) {
|
|
4911
|
+
Ts(i, r, n, a);
|
|
4857
4912
|
return;
|
|
4858
4913
|
}
|
|
4859
4914
|
if (!e.draftLocations_) {
|
|
4860
4915
|
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
4861
|
-
|
|
4916
|
+
xs(i, (e, n) => {
|
|
4862
4917
|
if (Y(n)) {
|
|
4863
4918
|
let r = t.get(n) || [];
|
|
4864
4919
|
r.push(e), t.set(n, r);
|
|
4865
4920
|
}
|
|
4866
4921
|
});
|
|
4867
4922
|
}
|
|
4868
|
-
let o = e.draftLocations_.get(t) ??
|
|
4869
|
-
for (let e of o)
|
|
4923
|
+
let o = e.draftLocations_.get(t) ?? rc;
|
|
4924
|
+
for (let e of o) Ts(i, e, n, a);
|
|
4870
4925
|
}
|
|
4871
|
-
function
|
|
4926
|
+
function ac(e, t, n) {
|
|
4872
4927
|
e.callbacks_.push(function(r) {
|
|
4873
4928
|
let i = t;
|
|
4874
|
-
if (!i ||
|
|
4929
|
+
if (!i || !nc(i, r)) return;
|
|
4875
4930
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
4876
|
-
let a =
|
|
4877
|
-
|
|
4931
|
+
let a = Ns(i);
|
|
4932
|
+
ic(e, i.draft_ ?? i, a, n), oc(i, r);
|
|
4878
4933
|
});
|
|
4879
4934
|
}
|
|
4880
|
-
function
|
|
4935
|
+
function oc(e, t) {
|
|
4881
4936
|
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
|
|
4882
4937
|
let { patchPlugin_: n } = t;
|
|
4883
4938
|
if (n) {
|
|
4884
4939
|
let r = n.getPath(e);
|
|
4885
4940
|
r && n.generatePatches_(e, r, t);
|
|
4886
4941
|
}
|
|
4887
|
-
|
|
4942
|
+
tc(e);
|
|
4888
4943
|
}
|
|
4889
4944
|
}
|
|
4890
|
-
function
|
|
4945
|
+
function sc(e, t, n) {
|
|
4891
4946
|
let { scope_: r } = e;
|
|
4892
4947
|
if (Y(n)) {
|
|
4893
4948
|
let i = n[G];
|
|
4894
|
-
|
|
4895
|
-
|
|
4949
|
+
nc(i, r) && i.callbacks_.push(function() {
|
|
4950
|
+
gc(e), ic(e, n, Ns(i), t);
|
|
4896
4951
|
});
|
|
4897
4952
|
} else X(n) && e.callbacks_.push(function() {
|
|
4898
4953
|
let i = Q(e);
|
|
4899
|
-
e.type_ === 3 ? i.has(n) &&
|
|
4954
|
+
e.type_ === 3 ? i.has(n) && cc(n, r.handledSet_, r) : ws(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && cc(ws(e.copy_, t, e.type_), r.handledSet_, r);
|
|
4900
4955
|
});
|
|
4901
4956
|
}
|
|
4902
|
-
function
|
|
4903
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Y(e) || t.has(e) || !X(e) ||
|
|
4957
|
+
function cc(e, t, n) {
|
|
4958
|
+
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Y(e) || t.has(e) || !X(e) || Rs(e) ? e : (t.add(e), xs(e, (r, i) => {
|
|
4904
4959
|
if (Y(i)) {
|
|
4905
4960
|
let t = i[G];
|
|
4906
|
-
|
|
4907
|
-
} else X(i) &&
|
|
4961
|
+
nc(t, n) && (Ts(e, r, Ns(t), e.type_), tc(t));
|
|
4962
|
+
} else X(i) && cc(i, t, n);
|
|
4908
4963
|
}), e);
|
|
4909
4964
|
}
|
|
4910
|
-
function
|
|
4911
|
-
let n =
|
|
4965
|
+
function lc(e, t) {
|
|
4966
|
+
let n = Ds(e), r = {
|
|
4912
4967
|
type_: n ? 1 : 0,
|
|
4913
|
-
scope_: t ? t.scope_ :
|
|
4968
|
+
scope_: t ? t.scope_ : Gs(),
|
|
4914
4969
|
modified_: !1,
|
|
4915
4970
|
finalized_: !1,
|
|
4916
4971
|
assigned_: void 0,
|
|
@@ -4921,23 +4976,23 @@ function oc(e, t) {
|
|
|
4921
4976
|
revoke_: null,
|
|
4922
4977
|
isManual_: !1,
|
|
4923
4978
|
callbacks_: void 0
|
|
4924
|
-
}, i = r, a =
|
|
4925
|
-
n && (i = [r], a =
|
|
4979
|
+
}, i = r, a = uc;
|
|
4980
|
+
n && (i = [r], a = dc);
|
|
4926
4981
|
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
|
|
4927
4982
|
return r.draft_ = s, r.revoke_ = o, [s, r];
|
|
4928
4983
|
}
|
|
4929
|
-
var
|
|
4984
|
+
var uc = {
|
|
4930
4985
|
get(e, t) {
|
|
4931
4986
|
if (t === G) return e;
|
|
4932
4987
|
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
|
|
4933
4988
|
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
|
|
4934
4989
|
let i = Q(e);
|
|
4935
|
-
if (!
|
|
4990
|
+
if (!Cs(i, t, e.type_)) return pc(e, i, t);
|
|
4936
4991
|
let a = i[t];
|
|
4937
|
-
if (e.finalized_ || !X(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) &&
|
|
4938
|
-
if (a ===
|
|
4939
|
-
|
|
4940
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
4992
|
+
if (e.finalized_ || !X(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Ms(t)) return a;
|
|
4993
|
+
if (a === fc(e.base_, t)) {
|
|
4994
|
+
gc(e);
|
|
4995
|
+
let n = e.type_ === 1 ? +t : t, r = vc(e.scope_, a, e, n);
|
|
4941
4996
|
return e.copy_[n] = r;
|
|
4942
4997
|
}
|
|
4943
4998
|
return a;
|
|
@@ -4949,26 +5004,26 @@ var sc = {
|
|
|
4949
5004
|
return Reflect.ownKeys(Q(e));
|
|
4950
5005
|
},
|
|
4951
5006
|
set(e, t, n) {
|
|
4952
|
-
let r =
|
|
5007
|
+
let r = mc(Q(e), t);
|
|
4953
5008
|
if (r?.set) return r.set.call(e.draft_, n), !0;
|
|
4954
5009
|
if (!e.modified_) {
|
|
4955
|
-
let r =
|
|
5010
|
+
let r = fc(Q(e), t), i = r?.[G];
|
|
4956
5011
|
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
|
|
4957
|
-
if (
|
|
4958
|
-
|
|
5012
|
+
if (Es(n, r) && (n !== void 0 || Cs(e.base_, t, e.type_))) return !0;
|
|
5013
|
+
gc(e), hc(e);
|
|
4959
5014
|
}
|
|
4960
|
-
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0),
|
|
5015
|
+
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), sc(e, t, n), !0);
|
|
4961
5016
|
},
|
|
4962
5017
|
deleteProperty(e, t) {
|
|
4963
|
-
return
|
|
5018
|
+
return gc(e), fc(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), hc(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
4964
5019
|
},
|
|
4965
5020
|
getOwnPropertyDescriptor(e, t) {
|
|
4966
5021
|
let n = Q(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
4967
5022
|
return r && {
|
|
4968
|
-
[
|
|
4969
|
-
[
|
|
4970
|
-
[
|
|
4971
|
-
[
|
|
5023
|
+
[gs]: !0,
|
|
5024
|
+
[ms]: e.type_ !== 1 || t !== "length",
|
|
5025
|
+
[hs]: r[hs],
|
|
5026
|
+
[_s]: n[t]
|
|
4972
5027
|
};
|
|
4973
5028
|
},
|
|
4974
5029
|
defineProperty() {
|
|
@@ -4980,28 +5035,28 @@ var sc = {
|
|
|
4980
5035
|
setPrototypeOf() {
|
|
4981
5036
|
K(12);
|
|
4982
5037
|
}
|
|
4983
|
-
},
|
|
4984
|
-
for (let e in
|
|
4985
|
-
let t =
|
|
4986
|
-
|
|
5038
|
+
}, dc = {};
|
|
5039
|
+
for (let e in uc) {
|
|
5040
|
+
let t = uc[e];
|
|
5041
|
+
dc[e] = function() {
|
|
4987
5042
|
let e = arguments;
|
|
4988
5043
|
return e[0] = e[0][0], t.apply(this, e);
|
|
4989
5044
|
};
|
|
4990
5045
|
}
|
|
4991
|
-
|
|
4992
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && K(13),
|
|
4993
|
-
},
|
|
4994
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && K(14),
|
|
5046
|
+
dc.deleteProperty = function(e, t) {
|
|
5047
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && K(13), dc.set.call(this, e, t, void 0);
|
|
5048
|
+
}, dc.set = function(e, t, n) {
|
|
5049
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && K(14), uc.set.call(this, e[0], t, n, e[0]);
|
|
4995
5050
|
};
|
|
4996
|
-
function
|
|
5051
|
+
function fc(e, t) {
|
|
4997
5052
|
let n = e[G];
|
|
4998
5053
|
return (n ? Q(n) : e)[t];
|
|
4999
5054
|
}
|
|
5000
|
-
function
|
|
5001
|
-
let r =
|
|
5002
|
-
return r ?
|
|
5055
|
+
function pc(e, t, n) {
|
|
5056
|
+
let r = mc(t, n);
|
|
5057
|
+
return r ? _s in r ? r[_s] : r.get?.call(e.draft_) : void 0;
|
|
5003
5058
|
}
|
|
5004
|
-
function
|
|
5059
|
+
function mc(e, t) {
|
|
5005
5060
|
if (!(t in e)) return;
|
|
5006
5061
|
let n = J(e);
|
|
5007
5062
|
for (; n;) {
|
|
@@ -5010,13 +5065,13 @@ function dc(e, t) {
|
|
|
5010
5065
|
n = J(n);
|
|
5011
5066
|
}
|
|
5012
5067
|
}
|
|
5013
|
-
function
|
|
5014
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
5068
|
+
function hc(e) {
|
|
5069
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && hc(e.parent_));
|
|
5015
5070
|
}
|
|
5016
|
-
function
|
|
5017
|
-
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(),
|
|
5071
|
+
function gc(e) {
|
|
5072
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Ps(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
5018
5073
|
}
|
|
5019
|
-
var
|
|
5074
|
+
var _c = class {
|
|
5020
5075
|
constructor(e) {
|
|
5021
5076
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
5022
5077
|
if (Z(e) && !Z(t)) {
|
|
@@ -5030,17 +5085,17 @@ var mc = class {
|
|
|
5030
5085
|
Z(t) || K(6), n !== void 0 && !Z(n) && K(7);
|
|
5031
5086
|
let r;
|
|
5032
5087
|
if (X(e)) {
|
|
5033
|
-
let i =
|
|
5088
|
+
let i = Xs(this), a = vc(i, e, void 0), o = !0;
|
|
5034
5089
|
try {
|
|
5035
5090
|
r = t(a), o = !1;
|
|
5036
5091
|
} finally {
|
|
5037
|
-
o ?
|
|
5092
|
+
o ? Js(i) : Ys(i);
|
|
5038
5093
|
}
|
|
5039
|
-
return
|
|
5040
|
-
} else if (!e || !
|
|
5041
|
-
if (r = t(e), r === void 0 && (r = e), r ===
|
|
5094
|
+
return qs(i, n), Qs(r, i);
|
|
5095
|
+
} else if (!e || !As(e)) {
|
|
5096
|
+
if (r = t(e), r === void 0 && (r = e), r === ls && (r = void 0), this.autoFreeze_ && Fs(r, !0), n) {
|
|
5042
5097
|
let t = [], i = [];
|
|
5043
|
-
$(
|
|
5098
|
+
$(Bs).generateReplacementPatches_(e, r, {
|
|
5044
5099
|
patches_: t,
|
|
5045
5100
|
inversePatches_: i
|
|
5046
5101
|
}), n(t, i);
|
|
@@ -5057,18 +5112,18 @@ var mc = class {
|
|
|
5057
5112
|
n,
|
|
5058
5113
|
r
|
|
5059
5114
|
];
|
|
5060
|
-
},
|
|
5115
|
+
}, js(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), js(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), js(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
5061
5116
|
}
|
|
5062
5117
|
createDraft(e) {
|
|
5063
|
-
X(e) || K(8), Y(e) && (e =
|
|
5064
|
-
let t =
|
|
5065
|
-
return n[G].isManual_ = !0,
|
|
5118
|
+
X(e) || K(8), Y(e) && (e = yc(e));
|
|
5119
|
+
let t = Xs(this), n = vc(t, e, void 0);
|
|
5120
|
+
return n[G].isManual_ = !0, Ys(t), n;
|
|
5066
5121
|
}
|
|
5067
5122
|
finishDraft(e, t) {
|
|
5068
5123
|
let n = e && e[G];
|
|
5069
5124
|
(!n || !n.isManual_) && K(9);
|
|
5070
5125
|
let { scope_: r } = n;
|
|
5071
|
-
return
|
|
5126
|
+
return qs(r, t), Qs(void 0, r);
|
|
5072
5127
|
}
|
|
5073
5128
|
setAutoFreeze(e) {
|
|
5074
5129
|
this.autoFreeze_ = e;
|
|
@@ -5092,37 +5147,37 @@ var mc = class {
|
|
|
5092
5147
|
}
|
|
5093
5148
|
}
|
|
5094
5149
|
n > -1 && (t = t.slice(n + 1));
|
|
5095
|
-
let r = $(
|
|
5150
|
+
let r = $(Bs).applyPatches_;
|
|
5096
5151
|
return Y(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
5097
5152
|
}
|
|
5098
5153
|
};
|
|
5099
|
-
function
|
|
5100
|
-
let [i, a] =
|
|
5101
|
-
return (n?.scope_ ??
|
|
5154
|
+
function vc(e, t, n, r) {
|
|
5155
|
+
let [i, a] = Os(t) ? $(zs).proxyMap_(t, n) : ks(t) ? $(zs).proxySet_(t, n) : lc(t, n);
|
|
5156
|
+
return (n?.scope_ ?? Gs()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? ac(n, a, r) : a.callbacks_.push(function(e) {
|
|
5102
5157
|
e.mapSetPlugin_?.fixSetContents(a);
|
|
5103
5158
|
let { patchPlugin_: t } = e;
|
|
5104
5159
|
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
5105
5160
|
}), i;
|
|
5106
5161
|
}
|
|
5107
|
-
function
|
|
5108
|
-
return Y(e) || K(10, e),
|
|
5162
|
+
function yc(e) {
|
|
5163
|
+
return Y(e) || K(10, e), bc(e);
|
|
5109
5164
|
}
|
|
5110
|
-
function
|
|
5111
|
-
if (!X(e) ||
|
|
5165
|
+
function bc(e) {
|
|
5166
|
+
if (!X(e) || Rs(e)) return e;
|
|
5112
5167
|
let t = e[G], n, r = !0;
|
|
5113
5168
|
if (t) {
|
|
5114
5169
|
if (!t.modified_) return t.base_;
|
|
5115
|
-
t.finalized_ = !0, n =
|
|
5116
|
-
} else n =
|
|
5117
|
-
return
|
|
5118
|
-
|
|
5170
|
+
t.finalized_ = !0, n = Ps(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
5171
|
+
} else n = Ps(e, !0);
|
|
5172
|
+
return xs(n, (e, t) => {
|
|
5173
|
+
Ts(n, e, bc(t));
|
|
5119
5174
|
}, r), t && (t.finalized_ = !1), n;
|
|
5120
5175
|
}
|
|
5121
|
-
new
|
|
5122
|
-
var
|
|
5176
|
+
new _c().produce;
|
|
5177
|
+
var xc = (e) => e;
|
|
5123
5178
|
//#endregion
|
|
5124
5179
|
//#region src/state/generics/genericEntitySlice.ts
|
|
5125
|
-
function
|
|
5180
|
+
function Sc(e, t, n, r) {
|
|
5126
5181
|
let i = tt({
|
|
5127
5182
|
name: e,
|
|
5128
5183
|
initialState: {
|
|
@@ -5144,7 +5199,7 @@ function yc(e, t, n, r) {
|
|
|
5144
5199
|
if (r) --e.entities.count, e.entities.data = e.entities.data?.filter((e) => e.id !== r);
|
|
5145
5200
|
else if (n) {
|
|
5146
5201
|
let t = e.entities.data?.findIndex((e) => e.id === n.id);
|
|
5147
|
-
t !== void 0 && t !== -1 ? e.entities.data && (e.entities.data[t] =
|
|
5202
|
+
t !== void 0 && t !== -1 ? e.entities.data && (e.entities.data[t] = xc(n)) : (e.entities.count += 1, e.entities.data = [xc(n), ...e.entities.data ?? []]);
|
|
5148
5203
|
}
|
|
5149
5204
|
},
|
|
5150
5205
|
...r || {}
|
|
@@ -5171,4 +5226,4 @@ function yc(e, t, n, r) {
|
|
|
5171
5226
|
};
|
|
5172
5227
|
}
|
|
5173
5228
|
//#endregion
|
|
5174
|
-
export {
|
|
5229
|
+
export { Aa as Alert, Na as AlertAction, Ma as AlertDescription, _a as AlertDialog, Da as AlertDialogAction, Oa as AlertDialogCancel, xa as AlertDialogContent, Ea as AlertDialogDescription, Ca as AlertDialogFooter, Sa as AlertDialogHeader, wa as AlertDialogMedia, ba as AlertDialogOverlay, ya as AlertDialogPortal, Ta as AlertDialogTitle, va as AlertDialogTrigger, ja as AlertTitle, Zi as Avatar, ea as AvatarBadge, $i as AvatarFallback, ta as AvatarGroup, na as AvatarGroupCount, Qi as AvatarImage, Fa as Badge, Vt as BaseInput, Ia as Breadcrumb, Ha as BreadcrumbEllipsis, Ra as BreadcrumbItem, za as BreadcrumbLink, La as BreadcrumbList, Ba as BreadcrumbPage, Va as BreadcrumbSeparator, F as Button, kt as Calendar, At as CalendarDayButton, un as Card, mn as CardAction, hn as CardContent, pn as CardDescription, gn as CardFooter, dn as CardHeader, fn as CardTitle, yn as Carousel, bn as CarouselContent, xn as CarouselItem, Cn as CarouselNext, Sn as CarouselPrevious, gt as ChangeDialog, Ka as ChartContainer, Xa as ChartLegend, Za as ChartLegendContent, qa as ChartStyle, Ja as ChartTooltip, Ya as ChartTooltipContent, $a as Checkbox, eo as Combobox, ho as ComboboxChip, mo as ComboboxChips, go as ComboboxChipsInput, uo as ComboboxCollection, ao as ComboboxContent, fo as ComboboxEmpty, co as ComboboxGroup, io as ComboboxInput, so as ComboboxItem, lo as ComboboxLabel, oo as ComboboxList, po as ComboboxSeparator, no as ComboboxTrigger, to as ComboboxValue, Vi as Command, Hi as CommandDialog, Gi as CommandEmpty, Ki as CommandGroup, Ui as CommandInput, Ji as CommandItem, Wi as CommandList, qi as CommandSeparator, Yi as CommandShortcut, $n as ContextMenu, lr as ContextMenuCheckboxItem, ar as ContextMenuContent, tr as ContextMenuGroup, or as ContextMenuItem, dr as ContextMenuLabel, nr as ContextMenuPortal, ir as ContextMenuRadioGroup, ur as ContextMenuRadioItem, fr as ContextMenuSeparator, pr as ContextMenuShortcut, rr as ContextMenuSub, cr as ContextMenuSubContent, sr as ContextMenuSubTrigger, er as ContextMenuTrigger, Jn as CrudEmptyTablePreview, Mi as CrudPage, Qn as CrudTable, mr as CrudTableBodyRow, hr as CrudTableCard, gr as CrudTableHeader, _r as CrudTableHeaderRows, Ai as CrudTablePagination, ji as CrudTableRowActionsMenu, Bt as DateField, Rt as DateInput, Ut as DateTimeField, Ht as DateTimeInput, _t as DeleteDialog, I as Dialog, lt as DialogClose, dt as DialogContent, ht as DialogDescription, pt as DialogFooter, ft as DialogHeader, ut as DialogOverlay, ct as DialogPortal, mt as DialogTitle, st as DialogTrigger, vo as DirectionProvider, bo as Drawer, Co as DrawerClose, To as DrawerContent, ko as DrawerDescription, Do as DrawerFooter, Eo as DrawerHeader, wo as DrawerOverlay, So as DrawerPortal, Oo as DrawerTitle, xo as DrawerTrigger, Tr as DropdownMenu, Ar as DropdownMenuCheckboxItem, Or as DropdownMenuContent, kr as DropdownMenuGroup, B as DropdownMenuItem, Nr as DropdownMenuLabel, Er as DropdownMenuPortal, jr as DropdownMenuRadioGroup, Mr as DropdownMenuRadioItem, Pr as DropdownMenuSeparator, Fr as DropdownMenuShortcut, Ir as DropdownMenuSub, Rr as DropdownMenuSubContent, Lr as DropdownMenuSubTrigger, Dr as DropdownMenuTrigger, ot as DynamicListContainer, Vn as Empty, qn as EmptyContent, Kn as EmptyDescription, Hn as EmptyHeader, Wn as EmptyMedia, Gn as EmptyTitle, Po as Field, Fo as FieldContent, Ro as FieldDescription, Bo as FieldError, Mo as FieldGroup, Io as FieldLabel, jo as FieldLegend, zo as FieldSeparator, Ao as FieldSet, Lo as FieldTitle, Gt as FieldsSection, R as FormField, z as Input, Kt as InputField, Ni as InputGroup, Fi as InputGroupAddon, Li as InputGroupButton, zi as InputGroupInput, Ri as InputGroupText, Bi as InputGroupTextarea, zt as Label, An as Lightbox, ga as Loading, Jt as NumberField, qt as NumberInput, vr as Pagination, yr as PaginationContent, wr as PaginationEllipsis, br as PaginationItem, xr as PaginationLink, Cr as PaginationNext, Sr as PaginationPrevious, Yt as PasswordField, Xt as PhoneField, jt as Popover, Pt as PopoverAnchor, Nt as PopoverContent, Lt as PopoverDescription, Ft as PopoverHeader, It as PopoverTitle, Mt as PopoverTrigger, nt as ProtectedRoute, at as SaveButton, Vo as ScrollArea, Ho as ScrollBar, Mn as SearchInput, Xi as SearchableSelect, Zt as Select, tn as SelectContent, ln as SelectField, Qt as SelectGroup, cn as SelectInput, rn as SelectItem, nn as SelectLabel, sn as SelectScrollDownButton, on as SelectScrollUpButton, an as SelectSeparator, en as SelectTrigger, $t as SelectValue, L as Separator, Vr as Sheet, Ur as SheetClose, Kr as SheetContent, Xr as SheetDescription, Jr as SheetFooter, qr as SheetHeader, Yr as SheetTitle, Hr as SheetTrigger, ra as SideBarCompanyData, aa as SideBarMainMenu, ua as SideBarSecondaryMenu, da as SideBarUserData, ui as Sidebar, vi as SidebarContent, pa as SidebarContext, gi as SidebarFooter, yi as SidebarGroup, xi as SidebarGroupAction, Si as SidebarGroupContent, bi as SidebarGroupLabel, hi as SidebarHeader, mi as SidebarInput, pi as SidebarInset, ia as SidebarLogo, H as SidebarMenu, wi as SidebarMenuAction, Ti as SidebarMenuBadge, W as SidebarMenuButton, U as SidebarMenuItem, Ei as SidebarMenuSkeleton, Di as SidebarMenuSub, ki as SidebarMenuSubButton, Oi as SidebarMenuSubItem, li as SidebarProvider, fi as SidebarRail, _i as SidebarSeparator, di as SidebarTrigger, Zr as Skeleton, Tn as StorageFileField, Wo as Switch, Nn as Table, Fn as TableBody, Bn as TableCaption, zn as TableCell, In as TableFooter, Rn as TableHead, Pn as TableHeader, Ln as TableRow, Go as Tabs, Yo as TabsContent, qo as TabsList, Jo as TabsTrigger, On as TextAreaField, Dn as TextAreaInput, kn as TextField, En as Textarea, sa as ThemeProvider, la as ThemeToggle, Wt as TitleSeparator, Uo as Toaster, Zo as Toggle, $o as ToggleGroup, es as ToggleGroupItem, $r as Tooltip, ti as TooltipContent, Qr as TooltipProvider, ei as TooltipTrigger, rt as YusrBusBackground, fa as YusrSideBarMainMenu, jn as ZoomableImage, Pa as badgeVariants, it as buttonVariants, P as cn, cs as createGenericDialogSlice, Sc as createGenericEntitySlice, wn as isPDF, ss as setupAuthListeners, Ko as tabsListVariants, Xo as toggleVariants, vn as useCarousel, _o as useComboboxAnchor, ts as useDialog, yo as useDirection, ns as useDynamicList, is as useEntityForm, rs as useFormValidation, Br as useIsMobile, as as useLightBox, V as useSidebar, ma as useSidebarContext, os as useStorageFile, ca as useTheme };
|