@clidey/ux 0.24.0 → 0.25.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 +2 -0
- package/dist/index.js +573 -593
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s, Fragment as te } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import E, { createContext as _e, useState as De, useEffect as Me, useContext as Re } from "react";
|
|
4
4
|
import { Slot as L } from "@radix-ui/react-slot";
|
|
5
|
-
import { cva as
|
|
6
|
-
import { clsx as
|
|
5
|
+
import { cva as F } from "class-variance-authority";
|
|
6
|
+
import { clsx as Ie } from "clsx";
|
|
7
7
|
import { twMerge as Pe } from "tailwind-merge";
|
|
8
8
|
import * as T from "@radix-ui/react-context-menu";
|
|
9
|
-
import { CheckIcon as
|
|
10
|
-
import { Drawer as
|
|
9
|
+
import { CheckIcon as K, CircleIcon as pe, ChevronRightIcon as ae, Search as Ae, MoreHorizontalIcon as Ee, ChevronLeftIcon as Oe, EyeIcon as Le, ChevronRight as ge, XIcon as be, SearchIcon as Be, ChevronDownIcon as re, ChevronsUpDownIcon as je, ChevronUpIcon as $e, PanelLeftIcon as Ve, GripVerticalIcon as Ge, Sun as oe, Moon as ie, Monitor as He } from "lucide-react";
|
|
10
|
+
import { Drawer as B } from "vaul";
|
|
11
11
|
import * as M from "@radix-ui/react-dropdown-menu";
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import { Toaster as
|
|
15
|
-
import { toast as
|
|
12
|
+
import * as qe from "@radix-ui/react-label";
|
|
13
|
+
import * as U from "@radix-ui/react-popover";
|
|
14
|
+
import { Toaster as We } from "sonner";
|
|
15
|
+
import { toast as Dn } from "sonner";
|
|
16
16
|
import * as J from "@radix-ui/react-tabs";
|
|
17
|
-
import * as
|
|
17
|
+
import * as G from "@radix-ui/react-tooltip";
|
|
18
18
|
import { Command as H } from "cmdk";
|
|
19
19
|
import * as _ from "@radix-ui/react-dialog";
|
|
20
20
|
import * as D from "@radix-ui/react-select";
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import
|
|
21
|
+
import * as Fe from "@radix-ui/react-separator";
|
|
22
|
+
import * as W from "@radix-ui/react-scroll-area";
|
|
23
|
+
import * as se from "@radix-ui/react-checkbox";
|
|
24
|
+
import * as P from "@radix-ui/react-accordion";
|
|
25
|
+
import Ke from "use-resize-observer";
|
|
26
26
|
import * as ne from "react-resizable-panels";
|
|
27
|
-
import * as
|
|
27
|
+
import * as de from "@radix-ui/react-switch";
|
|
28
28
|
import * as O from "@radix-ui/react-alert-dialog";
|
|
29
29
|
function n(...e) {
|
|
30
|
-
return Pe(
|
|
30
|
+
return Pe(Ie(e));
|
|
31
31
|
}
|
|
32
32
|
function ra(e) {
|
|
33
33
|
return e.replace(/_/g, " ").replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase());
|
|
@@ -42,16 +42,16 @@ function na(e) {
|
|
|
42
42
|
const d = Math.floor(i / 60);
|
|
43
43
|
if (d < 24)
|
|
44
44
|
return `${d} hour${d === 1 ? "" : "s"} ago`;
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return `${
|
|
48
|
-
const f = Math.floor(
|
|
45
|
+
const c = Math.floor(d / 24);
|
|
46
|
+
if (c < 30)
|
|
47
|
+
return `${c} day${c === 1 ? "" : "s"} ago`;
|
|
48
|
+
const f = Math.floor(c / 30);
|
|
49
49
|
if (f < 12)
|
|
50
50
|
return `${f} month${f === 1 ? "" : "s"} ago`;
|
|
51
51
|
const m = Math.floor(f / 12);
|
|
52
52
|
return `${m} year${m === 1 ? "" : "s"} ago`;
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const Ue = F(
|
|
55
55
|
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>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 transition-[color,box-shadow] overflow-hidden",
|
|
56
56
|
{
|
|
57
57
|
variants: {
|
|
@@ -77,12 +77,12 @@ function oa({
|
|
|
77
77
|
r ? L : "span",
|
|
78
78
|
{
|
|
79
79
|
"data-slot": "badge",
|
|
80
|
-
className: n(
|
|
80
|
+
className: n(Ue({ variant: t }), e),
|
|
81
81
|
...o
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
|
-
const X =
|
|
85
|
+
const X = F(
|
|
86
86
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-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",
|
|
87
87
|
{
|
|
88
88
|
variants: {
|
|
@@ -313,7 +313,7 @@ function wa({
|
|
|
313
313
|
checked: r,
|
|
314
314
|
...o,
|
|
315
315
|
children: [
|
|
316
|
-
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(T.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
316
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(T.ItemIndicator, { children: /* @__PURE__ */ a(K, { className: "size-4" }) }) }),
|
|
317
317
|
t
|
|
318
318
|
]
|
|
319
319
|
}
|
|
@@ -334,7 +334,7 @@ function ya({
|
|
|
334
334
|
),
|
|
335
335
|
...r,
|
|
336
336
|
children: [
|
|
337
|
-
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(T.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
337
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(T.ItemIndicator, { children: /* @__PURE__ */ a(pe, { className: "size-2 fill-current" }) }) }),
|
|
338
338
|
t
|
|
339
339
|
]
|
|
340
340
|
}
|
|
@@ -391,24 +391,24 @@ function Ca({
|
|
|
391
391
|
function Je({
|
|
392
392
|
...e
|
|
393
393
|
}) {
|
|
394
|
-
return /* @__PURE__ */ a(
|
|
394
|
+
return /* @__PURE__ */ a(B.Root, { "data-slot": "drawer", ...e });
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function za({
|
|
397
397
|
...e
|
|
398
398
|
}) {
|
|
399
|
-
return /* @__PURE__ */ a(
|
|
399
|
+
return /* @__PURE__ */ a(B.Trigger, { "data-slot": "drawer-trigger", ...e });
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function Sa({
|
|
402
402
|
...e
|
|
403
403
|
}) {
|
|
404
|
-
return /* @__PURE__ */ a(
|
|
404
|
+
return /* @__PURE__ */ a(B.Close, { "data-slot": "drawer-close", ...e });
|
|
405
405
|
}
|
|
406
406
|
function Xe({
|
|
407
407
|
className: e,
|
|
408
408
|
...t
|
|
409
409
|
}) {
|
|
410
410
|
return /* @__PURE__ */ a(
|
|
411
|
-
|
|
411
|
+
B.Overlay,
|
|
412
412
|
{
|
|
413
413
|
"data-slot": "drawer-overlay",
|
|
414
414
|
className: n(
|
|
@@ -427,7 +427,7 @@ function Ye({
|
|
|
427
427
|
return /* @__PURE__ */ s(te, { children: [
|
|
428
428
|
/* @__PURE__ */ a(Xe, {}),
|
|
429
429
|
/* @__PURE__ */ s(
|
|
430
|
-
|
|
430
|
+
B.Content,
|
|
431
431
|
{
|
|
432
432
|
"data-slot": "drawer-content",
|
|
433
433
|
className: n(
|
|
@@ -475,7 +475,7 @@ function Ze({
|
|
|
475
475
|
...t
|
|
476
476
|
}) {
|
|
477
477
|
return /* @__PURE__ */ a(
|
|
478
|
-
|
|
478
|
+
B.Title,
|
|
479
479
|
{
|
|
480
480
|
"data-slot": "drawer-title",
|
|
481
481
|
className: n("text-foreground font-semibold", e),
|
|
@@ -488,7 +488,7 @@ function _a({
|
|
|
488
488
|
...t
|
|
489
489
|
}) {
|
|
490
490
|
return /* @__PURE__ */ a(
|
|
491
|
-
|
|
491
|
+
B.Description,
|
|
492
492
|
{
|
|
493
493
|
"data-slot": "drawer-description",
|
|
494
494
|
className: n("text-muted-foreground text-sm", e),
|
|
@@ -567,7 +567,7 @@ function Da({
|
|
|
567
567
|
checked: r,
|
|
568
568
|
...o,
|
|
569
569
|
children: [
|
|
570
|
-
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(M.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
570
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(M.ItemIndicator, { children: /* @__PURE__ */ a(K, { className: "size-4" }) }) }),
|
|
571
571
|
t
|
|
572
572
|
]
|
|
573
573
|
}
|
|
@@ -584,7 +584,7 @@ function Ma({
|
|
|
584
584
|
}
|
|
585
585
|
);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Ra({
|
|
588
588
|
className: e,
|
|
589
589
|
children: t,
|
|
590
590
|
...r
|
|
@@ -599,13 +599,13 @@ function Ia({
|
|
|
599
599
|
),
|
|
600
600
|
...r,
|
|
601
601
|
children: [
|
|
602
|
-
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(M.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
602
|
+
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(M.ItemIndicator, { children: /* @__PURE__ */ a(pe, { className: "size-2 fill-current" }) }) }),
|
|
603
603
|
t
|
|
604
604
|
]
|
|
605
605
|
}
|
|
606
606
|
);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Ia({
|
|
609
609
|
className: e,
|
|
610
610
|
inset: t,
|
|
611
611
|
...r
|
|
@@ -636,7 +636,7 @@ function Pa({
|
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function Aa({
|
|
640
640
|
className: e,
|
|
641
641
|
...t
|
|
642
642
|
}) {
|
|
@@ -652,7 +652,7 @@ function Ea({
|
|
|
652
652
|
}
|
|
653
653
|
);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Ea({
|
|
656
656
|
...e
|
|
657
657
|
}) {
|
|
658
658
|
return /* @__PURE__ */ a(M.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
@@ -713,7 +713,7 @@ function rt({ className: e, type: t, ...r }) {
|
|
|
713
713
|
}
|
|
714
714
|
);
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function Ba({ className: e, ...t }) {
|
|
717
717
|
return /* @__PURE__ */ a(
|
|
718
718
|
"textarea",
|
|
719
719
|
{
|
|
@@ -728,7 +728,7 @@ function $a({ className: e, ...t }) {
|
|
|
728
728
|
}
|
|
729
729
|
);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function ja({
|
|
732
732
|
className: e,
|
|
733
733
|
...t
|
|
734
734
|
}) {
|
|
@@ -743,7 +743,7 @@ function Ba({
|
|
|
743
743
|
),
|
|
744
744
|
"data-slot": "search-input-wrapper",
|
|
745
745
|
children: [
|
|
746
|
-
/* @__PURE__ */ a(
|
|
746
|
+
/* @__PURE__ */ a(Ae, { className: "size-4 text-muted-foreground mr-2" }),
|
|
747
747
|
/* @__PURE__ */ a(
|
|
748
748
|
"input",
|
|
749
749
|
{
|
|
@@ -758,12 +758,12 @@ function Ba({
|
|
|
758
758
|
}
|
|
759
759
|
);
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function $a({
|
|
762
762
|
className: e,
|
|
763
763
|
...t
|
|
764
764
|
}) {
|
|
765
765
|
return /* @__PURE__ */ a(
|
|
766
|
-
|
|
766
|
+
qe.Root,
|
|
767
767
|
{
|
|
768
768
|
"data-slot": "label",
|
|
769
769
|
className: n(
|
|
@@ -774,7 +774,7 @@ function ja({
|
|
|
774
774
|
}
|
|
775
775
|
);
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function Va({ className: e, ...t }) {
|
|
778
778
|
return /* @__PURE__ */ a(
|
|
779
779
|
"nav",
|
|
780
780
|
{
|
|
@@ -786,7 +786,7 @@ function Wa({ className: e, ...t }) {
|
|
|
786
786
|
}
|
|
787
787
|
);
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function Ga({
|
|
790
790
|
className: e,
|
|
791
791
|
...t
|
|
792
792
|
}) {
|
|
@@ -802,7 +802,7 @@ function Va({
|
|
|
802
802
|
function Ha({ ...e }) {
|
|
803
803
|
return /* @__PURE__ */ a("li", { "data-slot": "pagination-item", ...e });
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function he({
|
|
806
806
|
className: e,
|
|
807
807
|
isActive: t,
|
|
808
808
|
size: r = "icon",
|
|
@@ -825,12 +825,12 @@ function ve({
|
|
|
825
825
|
}
|
|
826
826
|
);
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function qa({
|
|
829
829
|
className: e,
|
|
830
830
|
...t
|
|
831
831
|
}) {
|
|
832
832
|
return /* @__PURE__ */ s(
|
|
833
|
-
|
|
833
|
+
he,
|
|
834
834
|
{
|
|
835
835
|
"aria-label": "Go to previous page",
|
|
836
836
|
size: "default",
|
|
@@ -843,12 +843,12 @@ function Ga({
|
|
|
843
843
|
}
|
|
844
844
|
);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Wa({
|
|
847
847
|
className: e,
|
|
848
848
|
...t
|
|
849
849
|
}) {
|
|
850
850
|
return /* @__PURE__ */ s(
|
|
851
|
-
|
|
851
|
+
he,
|
|
852
852
|
{
|
|
853
853
|
"aria-label": "Go to next page",
|
|
854
854
|
size: "default",
|
|
@@ -861,7 +861,7 @@ function Fa({
|
|
|
861
861
|
}
|
|
862
862
|
);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Fa({
|
|
865
865
|
className: e,
|
|
866
866
|
...t
|
|
867
867
|
}) {
|
|
@@ -873,7 +873,7 @@ function Ka({
|
|
|
873
873
|
className: n("flex size-9 items-center justify-center", e),
|
|
874
874
|
...t,
|
|
875
875
|
children: [
|
|
876
|
-
/* @__PURE__ */ a(
|
|
876
|
+
/* @__PURE__ */ a(Ee, { className: "size-4" }),
|
|
877
877
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "More pages" })
|
|
878
878
|
]
|
|
879
879
|
}
|
|
@@ -882,12 +882,12 @@ function Ka({
|
|
|
882
882
|
function nt({
|
|
883
883
|
...e
|
|
884
884
|
}) {
|
|
885
|
-
return /* @__PURE__ */ a(
|
|
885
|
+
return /* @__PURE__ */ a(U.Root, { "data-slot": "popover", ...e });
|
|
886
886
|
}
|
|
887
887
|
function ot({
|
|
888
888
|
...e
|
|
889
889
|
}) {
|
|
890
|
-
return /* @__PURE__ */ a(
|
|
890
|
+
return /* @__PURE__ */ a(U.Trigger, { "data-slot": "popover-trigger", ...e });
|
|
891
891
|
}
|
|
892
892
|
function it({
|
|
893
893
|
className: e,
|
|
@@ -895,8 +895,8 @@ function it({
|
|
|
895
895
|
sideOffset: r = 4,
|
|
896
896
|
...o
|
|
897
897
|
}) {
|
|
898
|
-
return /* @__PURE__ */ a(
|
|
899
|
-
|
|
898
|
+
return /* @__PURE__ */ a(U.Portal, { children: /* @__PURE__ */ a(
|
|
899
|
+
U.Content,
|
|
900
900
|
{
|
|
901
901
|
"data-slot": "popover-content",
|
|
902
902
|
align: t,
|
|
@@ -909,7 +909,7 @@ function it({
|
|
|
909
909
|
}
|
|
910
910
|
) });
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function le({ className: e, ...t }) {
|
|
913
913
|
return /* @__PURE__ */ a(
|
|
914
914
|
"div",
|
|
915
915
|
{
|
|
@@ -922,8 +922,8 @@ function ce({ className: e, ...t }) {
|
|
|
922
922
|
const st = {
|
|
923
923
|
theme: "system",
|
|
924
924
|
setTheme: () => null
|
|
925
|
-
},
|
|
926
|
-
function
|
|
925
|
+
}, ve = _e(st);
|
|
926
|
+
function Ka({
|
|
927
927
|
children: e,
|
|
928
928
|
defaultTheme: t = "system",
|
|
929
929
|
storageKey: r = "@clidey/ux/theme",
|
|
@@ -941,23 +941,23 @@ function Ua({
|
|
|
941
941
|
}
|
|
942
942
|
f.classList.add(i);
|
|
943
943
|
}, [i]);
|
|
944
|
-
const
|
|
944
|
+
const c = {
|
|
945
945
|
theme: i,
|
|
946
946
|
setTheme: (f) => {
|
|
947
947
|
localStorage.setItem(r, f), d(f);
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
|
-
return /* @__PURE__ */ a(
|
|
950
|
+
return /* @__PURE__ */ a(ve.Provider, { ...o, value: c, children: e });
|
|
951
951
|
}
|
|
952
|
-
const
|
|
953
|
-
const e =
|
|
952
|
+
const xe = () => {
|
|
953
|
+
const e = Re(ve);
|
|
954
954
|
if (e === void 0)
|
|
955
955
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
956
956
|
return e;
|
|
957
|
-
},
|
|
958
|
-
const { theme: r = "system" } =
|
|
957
|
+
}, Ua = ({ className: e, ...t }) => {
|
|
958
|
+
const { theme: r = "system" } = xe();
|
|
959
959
|
return /* @__PURE__ */ a("div", { "data-slot": "toaster", className: n("toaster group", e), children: /* @__PURE__ */ a(
|
|
960
|
-
|
|
960
|
+
We,
|
|
961
961
|
{
|
|
962
962
|
theme: r,
|
|
963
963
|
className: n("toaster group", e),
|
|
@@ -969,9 +969,9 @@ const we = () => {
|
|
|
969
969
|
...t
|
|
970
970
|
}
|
|
971
971
|
) });
|
|
972
|
-
},
|
|
973
|
-
function
|
|
974
|
-
const e =
|
|
972
|
+
}, we = u.createContext(null);
|
|
973
|
+
function ye() {
|
|
974
|
+
const e = u.useContext(we);
|
|
975
975
|
if (!e)
|
|
976
976
|
throw new Error("useTableContext must be used within a TableProvider");
|
|
977
977
|
return e;
|
|
@@ -983,113 +983,96 @@ function Ja({
|
|
|
983
983
|
className: o,
|
|
984
984
|
style: i,
|
|
985
985
|
overscan: d = 3,
|
|
986
|
-
children:
|
|
987
|
-
}) {
|
|
988
|
-
const f =
|
|
989
|
-
|
|
990
|
-
const
|
|
991
|
-
if (!
|
|
992
|
-
let
|
|
993
|
-
function
|
|
994
|
-
|
|
995
|
-
|
|
986
|
+
children: c
|
|
987
|
+
}) {
|
|
988
|
+
const f = u.useRef(null), [m, l] = u.useState(0), [w, N] = u.useState(r), g = typeof t == "number", p = u.useRef(null);
|
|
989
|
+
u.useEffect(() => N(r), [r]), u.useEffect(() => {
|
|
990
|
+
const S = f.current;
|
|
991
|
+
if (!S) return;
|
|
992
|
+
let k = !1;
|
|
993
|
+
function C() {
|
|
994
|
+
k || (k = !0, requestAnimationFrame(() => {
|
|
995
|
+
l(this.scrollTop), k = !1;
|
|
996
996
|
}));
|
|
997
997
|
}
|
|
998
|
-
return
|
|
998
|
+
return S.addEventListener("scroll", C, { passive: !0 }), () => S.removeEventListener("scroll", C);
|
|
999
999
|
}, []);
|
|
1000
|
-
const
|
|
1001
|
-
(
|
|
1000
|
+
const b = u.useCallback(
|
|
1001
|
+
(S) => typeof t == "function" ? t({ index: S }) : t,
|
|
1002
1002
|
[t]
|
|
1003
|
-
),
|
|
1004
|
-
if (!g && (!
|
|
1005
|
-
const
|
|
1006
|
-
|
|
1007
|
-
for (let
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
}
|
|
1011
|
-
}, [e,
|
|
1012
|
-
(
|
|
1013
|
-
[t,
|
|
1014
|
-
),
|
|
1003
|
+
), z = u.useCallback(() => {
|
|
1004
|
+
if (!g && (!p.current || p.current.length !== e + 1)) {
|
|
1005
|
+
const S = new Array(e + 1);
|
|
1006
|
+
S[0] = 0;
|
|
1007
|
+
for (let k = 0; k < e; k++)
|
|
1008
|
+
S[k + 1] = S[k] + b(k);
|
|
1009
|
+
p.current = S;
|
|
1010
|
+
}
|
|
1011
|
+
}, [e, b, g]), y = u.useCallback(
|
|
1012
|
+
(S) => g ? t * S : (z(), p.current[S]),
|
|
1013
|
+
[t, z, g]
|
|
1014
|
+
), v = u.useCallback(() => g ? t * e : (z(), p.current[e]), [t, e, z, g]), h = u.useCallback(() => {
|
|
1015
1015
|
if (g)
|
|
1016
1016
|
return Math.max(0, Math.floor(m / t) - d);
|
|
1017
1017
|
{
|
|
1018
|
-
|
|
1019
|
-
const
|
|
1020
|
-
let
|
|
1021
|
-
for (;
|
|
1022
|
-
|
|
1023
|
-
return Math.max(0,
|
|
1018
|
+
z();
|
|
1019
|
+
const S = p.current;
|
|
1020
|
+
let k = 0, C = e - 1, x;
|
|
1021
|
+
for (; k <= C; )
|
|
1022
|
+
x = k + C >> 1, S[x + 1] < m ? k = x + 1 : C = x - 1;
|
|
1023
|
+
return Math.max(0, k - d);
|
|
1024
1024
|
}
|
|
1025
|
-
}, [m, e, t, d,
|
|
1026
|
-
(
|
|
1025
|
+
}, [m, e, t, d, z, g]), A = u.useCallback(
|
|
1026
|
+
(S) => {
|
|
1027
1027
|
if (g) {
|
|
1028
|
-
const
|
|
1028
|
+
const k = t;
|
|
1029
1029
|
return Math.min(
|
|
1030
1030
|
e - 1,
|
|
1031
|
-
Math.floor((m +
|
|
1031
|
+
Math.floor((m + w) / k) + d
|
|
1032
1032
|
);
|
|
1033
1033
|
} else {
|
|
1034
|
-
|
|
1035
|
-
const
|
|
1036
|
-
let
|
|
1037
|
-
for (;
|
|
1038
|
-
|
|
1039
|
-
return Math.min(e - 1,
|
|
1034
|
+
z();
|
|
1035
|
+
const k = p.current;
|
|
1036
|
+
let C = S, x = e - 1, I;
|
|
1037
|
+
for (; C <= x; )
|
|
1038
|
+
I = C + x >> 1, k[I] < m + w ? C = I + 1 : x = I - 1;
|
|
1039
|
+
return Math.min(e - 1, C + d);
|
|
1040
1040
|
}
|
|
1041
1041
|
},
|
|
1042
|
-
[m,
|
|
1043
|
-
), R =
|
|
1042
|
+
[m, w, e, t, d, z, g]
|
|
1043
|
+
), R = v(), j = h(), $ = A(j), V = y(j), q = Math.max(0, R - y($ + 1));
|
|
1044
1044
|
return /* @__PURE__ */ s(
|
|
1045
1045
|
ft,
|
|
1046
1046
|
{
|
|
1047
1047
|
"data-slot": "table-body",
|
|
1048
1048
|
ref: f,
|
|
1049
1049
|
style: {
|
|
1050
|
-
height:
|
|
1050
|
+
height: w,
|
|
1051
1051
|
...i
|
|
1052
1052
|
},
|
|
1053
1053
|
className: n("block [&_tr:last-child]:border-0 overflow-hidden overflow-y-visible w-full", o),
|
|
1054
1054
|
children: [
|
|
1055
|
-
|
|
1056
|
-
Array.from({ length:
|
|
1057
|
-
const
|
|
1058
|
-
return
|
|
1055
|
+
V > 0 && /* @__PURE__ */ a(ce, { "aria-hidden": !0, style: { height: V }, children: /* @__PURE__ */ a(ue, { colSpan: 9999 }) }),
|
|
1056
|
+
Array.from({ length: $ - j + 1 }, (S, k) => {
|
|
1057
|
+
const C = j + k, I = { height: b(C) };
|
|
1058
|
+
return c(C, I);
|
|
1059
1059
|
}),
|
|
1060
|
-
|
|
1060
|
+
q > 0 && /* @__PURE__ */ a(ce, { "aria-hidden": !0, style: { height: q }, children: /* @__PURE__ */ a(ue, { colSpan: 9999 }) })
|
|
1061
1061
|
]
|
|
1062
1062
|
}
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
1065
|
function dt({ children: e }) {
|
|
1066
|
-
const [t, r] =
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
l.useEffect(() => {
|
|
1075
|
-
if (d.size > 0 && !o) {
|
|
1076
|
-
const p = Math.max(...Array.from(d.keys())) + 1, x = Array.from({ length: p }, (v, b) => d.get(b) || 120);
|
|
1077
|
-
r(x), i(!0);
|
|
1078
|
-
}
|
|
1079
|
-
}, [d, o]);
|
|
1080
|
-
const N = {
|
|
1081
|
-
columnWidths: t,
|
|
1082
|
-
setColumnWidths: r,
|
|
1083
|
-
isHeaderWidthsSet: o,
|
|
1084
|
-
setIsHeaderWidthsSet: i,
|
|
1085
|
-
registerCellWidth: k,
|
|
1086
|
-
isDrawerOpen: f,
|
|
1087
|
-
setIsDrawerOpen: m,
|
|
1088
|
-
drawerContent: c,
|
|
1089
|
-
setDrawerContent: y,
|
|
1090
|
-
openDrawer: g
|
|
1066
|
+
const [t, r] = u.useState(!1), [o, i] = u.useState(""), d = u.useCallback((f) => {
|
|
1067
|
+
i(f), r(!0);
|
|
1068
|
+
}, []), c = {
|
|
1069
|
+
isDrawerOpen: t,
|
|
1070
|
+
setIsDrawerOpen: r,
|
|
1071
|
+
drawerContent: o,
|
|
1072
|
+
setDrawerContent: i,
|
|
1073
|
+
openDrawer: d
|
|
1091
1074
|
};
|
|
1092
|
-
return /* @__PURE__ */ a(
|
|
1075
|
+
return /* @__PURE__ */ a(we.Provider, { value: c, children: e });
|
|
1093
1076
|
}
|
|
1094
1077
|
function lt(e) {
|
|
1095
1078
|
if (typeof e != "string") return !1;
|
|
@@ -1103,23 +1086,23 @@ function lt(e) {
|
|
|
1103
1086
|
}
|
|
1104
1087
|
function ct(e) {
|
|
1105
1088
|
try {
|
|
1106
|
-
let t = function(
|
|
1107
|
-
const m =
|
|
1108
|
-
if (!m) return
|
|
1109
|
-
let
|
|
1110
|
-
const
|
|
1111
|
-
return m.forEach((
|
|
1112
|
-
const
|
|
1113
|
-
|
|
1114
|
-
/* @__PURE__ */ a("span", { className: "", children:
|
|
1089
|
+
let t = function(c, f) {
|
|
1090
|
+
const m = c.match(d);
|
|
1091
|
+
if (!m) return c;
|
|
1092
|
+
let l = 0;
|
|
1093
|
+
const w = [];
|
|
1094
|
+
return m.forEach((N, g) => {
|
|
1095
|
+
const p = c.indexOf(N, l);
|
|
1096
|
+
p > l && w.push(
|
|
1097
|
+
/* @__PURE__ */ a("span", { className: "", children: c.slice(l, p) }, `ws-${g}`)
|
|
1115
1098
|
);
|
|
1116
|
-
let
|
|
1117
|
-
/^"/.test(
|
|
1118
|
-
/* @__PURE__ */ a("span", { className:
|
|
1119
|
-
),
|
|
1120
|
-
}),
|
|
1121
|
-
/* @__PURE__ */ a("span", { className: "", children:
|
|
1122
|
-
),
|
|
1099
|
+
let b = "";
|
|
1100
|
+
/^"/.test(N) ? /:$/.test(N) ? b = i.key : b = i.string : /true|false/.test(N) ? b = i.boolean : /null/.test(N) ? b = i.null : /[{}[\],:]/.test(N) ? b = i.punctuation : /^-?\d/.test(N) && (b = i.number), w.push(
|
|
1101
|
+
/* @__PURE__ */ a("span", { className: b, children: N }, `tok-${g}`)
|
|
1102
|
+
), l = p + N.length;
|
|
1103
|
+
}), l < c.length && w.push(
|
|
1104
|
+
/* @__PURE__ */ a("span", { className: "", children: c.slice(l) }, "end")
|
|
1105
|
+
), w;
|
|
1123
1106
|
};
|
|
1124
1107
|
const r = JSON.parse(e.trim()), o = JSON.stringify(r, null, 2), i = {
|
|
1125
1108
|
string: "text-green-700 dark:text-green-400/80",
|
|
@@ -1130,20 +1113,47 @@ function ct(e) {
|
|
|
1130
1113
|
punctuation: "text-muted-foreground"
|
|
1131
1114
|
}, d = /("(?:\\.|[^"\\])*"(\s*:)?|\b(true|false|null)\b|[{}[\],]|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g;
|
|
1132
1115
|
return /* @__PURE__ */ a("pre", { className: "bg-muted/40 p-4 rounded-md overflow-auto text-sm font-mono", children: /* @__PURE__ */ a("code", { className: "text-foreground", children: o.split(`
|
|
1133
|
-
`).map((
|
|
1116
|
+
`).map((c, f) => /* @__PURE__ */ a("div", { className: "leading-relaxed", children: t(c, f) }, f)) }) });
|
|
1134
1117
|
} catch {
|
|
1135
1118
|
return e;
|
|
1136
1119
|
}
|
|
1137
1120
|
}
|
|
1138
1121
|
function ut() {
|
|
1139
|
-
const e =
|
|
1122
|
+
const e = ye(), t = () => typeof e.drawerContent == "string" && lt(e.drawerContent) ? ct(e.drawerContent) : /* @__PURE__ */ a("div", { className: "whitespace-pre-wrap break-words", children: e.drawerContent });
|
|
1140
1123
|
return /* @__PURE__ */ a(Je, { open: e.isDrawerOpen, onOpenChange: e.setIsDrawerOpen, children: /* @__PURE__ */ s(Ye, { className: "min-h-[40vh] px-8 pb-8 max-h-[70vh]", children: [
|
|
1141
1124
|
/* @__PURE__ */ a(Qe, { children: /* @__PURE__ */ a(Ze, { className: "self-start", children: "Preview" }) }),
|
|
1142
1125
|
/* @__PURE__ */ a("div", { className: "p-4 overflow-y-auto", children: t() })
|
|
1143
1126
|
] }) });
|
|
1144
1127
|
}
|
|
1145
1128
|
function Xa({ className: e, style: t, ...r }) {
|
|
1146
|
-
|
|
1129
|
+
const o = u.useRef(null);
|
|
1130
|
+
return u.useEffect(() => {
|
|
1131
|
+
const i = o.current;
|
|
1132
|
+
if (!i) return;
|
|
1133
|
+
const d = () => {
|
|
1134
|
+
const p = i.querySelector("thead"), b = i.querySelector("tbody");
|
|
1135
|
+
if (!p || !b) return { headCells: [], bodyCells: [] };
|
|
1136
|
+
const z = p.querySelector("tr"), y = b.querySelector("tr");
|
|
1137
|
+
if (!z || !y) return { headCells: [], bodyCells: [] };
|
|
1138
|
+
const v = Array.from(z.children), h = Array.from(y.children);
|
|
1139
|
+
return { headCells: v, bodyCells: h };
|
|
1140
|
+
}, c = () => {
|
|
1141
|
+
const { headCells: p, bodyCells: b } = d(), z = Math.min(p.length, b.length);
|
|
1142
|
+
for (let y = 0; y < z; y++) {
|
|
1143
|
+
const v = b[y].getBoundingClientRect().width;
|
|
1144
|
+
v > 0 && (p[y].style.width = `${v}px`, p[y].style.minWidth = `${v}px`, p[y].style.maxWidth = `${v}px`);
|
|
1145
|
+
}
|
|
1146
|
+
}, f = requestAnimationFrame(c), m = new ResizeObserver(() => {
|
|
1147
|
+
c();
|
|
1148
|
+
}), w = i.querySelector("tbody")?.querySelector("tr");
|
|
1149
|
+
w && m.observe(w);
|
|
1150
|
+
const { bodyCells: N } = d();
|
|
1151
|
+
N.forEach((p) => m.observe(p));
|
|
1152
|
+
const g = () => c();
|
|
1153
|
+
return window.addEventListener("resize", g), () => {
|
|
1154
|
+
cancelAnimationFrame(f), m.disconnect(), window.removeEventListener("resize", g);
|
|
1155
|
+
};
|
|
1156
|
+
}, []), /* @__PURE__ */ a(dt, { children: /* @__PURE__ */ s(
|
|
1147
1157
|
"div",
|
|
1148
1158
|
{
|
|
1149
1159
|
"data-slot": "table-container",
|
|
@@ -1152,6 +1162,7 @@ function Xa({ className: e, style: t, ...r }) {
|
|
|
1152
1162
|
/* @__PURE__ */ a(
|
|
1153
1163
|
"table",
|
|
1154
1164
|
{
|
|
1165
|
+
ref: o,
|
|
1155
1166
|
"data-slot": "table",
|
|
1156
1167
|
className: n(
|
|
1157
1168
|
"table-auto border-collapse min-w-full",
|
|
@@ -1172,13 +1183,13 @@ function Ya({ className: e, ...t }) {
|
|
|
1172
1183
|
function ft({ className: e, ...t }) {
|
|
1173
1184
|
return /* @__PURE__ */ a("tbody", { "data-slot": "table-body", className: n("[&_tr:last-child]:border-0", e), ...t });
|
|
1174
1185
|
}
|
|
1175
|
-
function
|
|
1186
|
+
function Qa({ className: e, style: t, ...r }) {
|
|
1176
1187
|
return /* @__PURE__ */ a(
|
|
1177
1188
|
"tr",
|
|
1178
1189
|
{
|
|
1179
1190
|
"data-slot": "table-row",
|
|
1180
1191
|
className: n(
|
|
1181
|
-
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors table table-auto
|
|
1192
|
+
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors w-full table table-auto",
|
|
1182
1193
|
e
|
|
1183
1194
|
),
|
|
1184
1195
|
style: t,
|
|
@@ -1186,39 +1197,35 @@ function ue({ className: e, style: t, ...r }) {
|
|
|
1186
1197
|
}
|
|
1187
1198
|
);
|
|
1188
1199
|
}
|
|
1189
|
-
function
|
|
1200
|
+
function ce({ className: e, style: t, ...r }) {
|
|
1201
|
+
return /* @__PURE__ */ a(
|
|
1202
|
+
"tr",
|
|
1203
|
+
{
|
|
1204
|
+
"data-slot": "table-row",
|
|
1205
|
+
className: n(
|
|
1206
|
+
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
1207
|
+
e
|
|
1208
|
+
),
|
|
1209
|
+
style: t,
|
|
1210
|
+
...r
|
|
1211
|
+
}
|
|
1212
|
+
);
|
|
1213
|
+
}
|
|
1214
|
+
function Za({
|
|
1190
1215
|
className: e,
|
|
1191
1216
|
icon: t,
|
|
1192
1217
|
children: r,
|
|
1193
1218
|
...o
|
|
1194
1219
|
}) {
|
|
1195
|
-
const i = oe(), d = l.useRef(null), [u, f] = l.useState(-1);
|
|
1196
|
-
l.useEffect(() => {
|
|
1197
|
-
if (d.current && i) {
|
|
1198
|
-
const c = d.current.parentElement;
|
|
1199
|
-
if (c) {
|
|
1200
|
-
const k = Array.from(c.children).indexOf(d.current);
|
|
1201
|
-
f(k);
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
}, [i]);
|
|
1205
|
-
const m = i && u >= 0 && i.isHeaderWidthsSet ? i.columnWidths[u] - 4 : void 0;
|
|
1206
1220
|
return /* @__PURE__ */ a(
|
|
1207
1221
|
"th",
|
|
1208
1222
|
{
|
|
1209
|
-
ref: d,
|
|
1210
1223
|
"data-slot": "table-head",
|
|
1211
1224
|
className: n(
|
|
1212
1225
|
"text-foreground h-12 p-2 first:pl-4 last:pr-4 text-left align-middle font-medium border-b",
|
|
1213
|
-
"min-w-[
|
|
1226
|
+
"min-w-[150px] max-w-[500px]",
|
|
1214
1227
|
e
|
|
1215
1228
|
),
|
|
1216
|
-
style: {
|
|
1217
|
-
width: m ? `${m}px` : void 0,
|
|
1218
|
-
minWidth: m ? `${m}px` : "120px",
|
|
1219
|
-
maxWidth: m ? `${m}px` : "500px",
|
|
1220
|
-
...o.style
|
|
1221
|
-
},
|
|
1222
1229
|
...o,
|
|
1223
1230
|
children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2 w-full min-w-0", children: [
|
|
1224
1231
|
t,
|
|
@@ -1227,52 +1234,27 @@ function Qa({
|
|
|
1227
1234
|
}
|
|
1228
1235
|
);
|
|
1229
1236
|
}
|
|
1230
|
-
function
|
|
1231
|
-
const o =
|
|
1232
|
-
|
|
1233
|
-
if (i.current && o) {
|
|
1234
|
-
const p = i.current.parentElement;
|
|
1235
|
-
if (p) {
|
|
1236
|
-
const v = Array.from(p.children).indexOf(i.current);
|
|
1237
|
-
f(v);
|
|
1238
|
-
const b = p.parentElement;
|
|
1239
|
-
if (b && b.tagName === "TBODY") {
|
|
1240
|
-
const I = Array.from(b.children).indexOf(p);
|
|
1241
|
-
c(I === 0);
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
}, [o]), l.useEffect(() => {
|
|
1246
|
-
if (i.current && o && m && u >= 0 && !o.isHeaderWidthsSet) {
|
|
1247
|
-
const p = () => {
|
|
1248
|
-
const v = i.current?.offsetWidth;
|
|
1249
|
-
v && v > 0 && o.registerCellWidth(u, v);
|
|
1250
|
-
}, x = new ResizeObserver(() => {
|
|
1251
|
-
p();
|
|
1252
|
-
});
|
|
1253
|
-
return x.observe(i.current), p(), () => {
|
|
1254
|
-
x.disconnect();
|
|
1255
|
-
};
|
|
1256
|
-
}
|
|
1257
|
-
}, [o, m, u]), l.useEffect(() => {
|
|
1237
|
+
function ue({ className: e, children: t, ...r }) {
|
|
1238
|
+
const o = ye(), i = u.useRef(null), d = u.useRef(null), [c, f] = u.useState(!1);
|
|
1239
|
+
u.useEffect(() => {
|
|
1258
1240
|
if (d.current && i.current) {
|
|
1259
|
-
const
|
|
1260
|
-
const
|
|
1261
|
-
if (
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1241
|
+
const l = () => {
|
|
1242
|
+
const N = d.current, g = i.current;
|
|
1243
|
+
if (N && g) {
|
|
1244
|
+
const p = N.scrollWidth > N.clientWidth;
|
|
1245
|
+
f(p);
|
|
1264
1246
|
}
|
|
1265
1247
|
};
|
|
1266
|
-
|
|
1267
|
-
const
|
|
1268
|
-
|
|
1248
|
+
l();
|
|
1249
|
+
const w = new ResizeObserver(() => {
|
|
1250
|
+
l();
|
|
1269
1251
|
});
|
|
1270
|
-
return
|
|
1271
|
-
|
|
1252
|
+
return w.observe(i.current), w.observe(d.current), () => {
|
|
1253
|
+
w.disconnect();
|
|
1272
1254
|
};
|
|
1273
1255
|
}
|
|
1274
1256
|
}, [t]);
|
|
1275
|
-
const
|
|
1257
|
+
const m = () => {
|
|
1276
1258
|
o.openDrawer(t);
|
|
1277
1259
|
};
|
|
1278
1260
|
return /* @__PURE__ */ s(
|
|
@@ -1282,22 +1264,19 @@ function fe({ className: e, children: t, ...r }) {
|
|
|
1282
1264
|
"data-slot": "table-cell",
|
|
1283
1265
|
className: n(
|
|
1284
1266
|
"p-2 align-middle border-b first:pl-4 last:pr-4 relative group",
|
|
1285
|
-
"min-w-[
|
|
1267
|
+
"min-w-[150px] overflow-hidden whitespace-nowrap text-ellipsis",
|
|
1286
1268
|
e
|
|
1287
1269
|
),
|
|
1288
1270
|
style: {
|
|
1289
|
-
maxWidth: g ? `${g}px` : "500px",
|
|
1290
|
-
width: g ? `${g}px` : void 0,
|
|
1291
|
-
minWidth: g ? `${g}px` : "120px",
|
|
1292
1271
|
...r.style
|
|
1293
1272
|
},
|
|
1294
1273
|
...r,
|
|
1295
1274
|
children: [
|
|
1296
1275
|
/* @__PURE__ */ a("div", { ref: d, className: "truncate min-w-0 pr-8", children: t }),
|
|
1297
|
-
|
|
1276
|
+
c && /* @__PURE__ */ a(
|
|
1298
1277
|
Y,
|
|
1299
1278
|
{
|
|
1300
|
-
onClick:
|
|
1279
|
+
onClick: m,
|
|
1301
1280
|
className: "absolute right-2 top-1/2 -translate-y-1/2 z-10 p-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200 hover:bg-muted/50 rounded-sm",
|
|
1302
1281
|
"aria-label": "View full content",
|
|
1303
1282
|
variant: "ghost",
|
|
@@ -1309,10 +1288,10 @@ function fe({ className: e, children: t, ...r }) {
|
|
|
1309
1288
|
}
|
|
1310
1289
|
);
|
|
1311
1290
|
}
|
|
1312
|
-
function
|
|
1291
|
+
function er({ className: e, ...t }) {
|
|
1313
1292
|
return /* @__PURE__ */ a("caption", { "data-slot": "table-caption", className: n("text-muted-foreground mt-4 text-sm", e), ...t });
|
|
1314
1293
|
}
|
|
1315
|
-
function
|
|
1294
|
+
function tr({
|
|
1316
1295
|
className: e,
|
|
1317
1296
|
...t
|
|
1318
1297
|
}) {
|
|
@@ -1325,7 +1304,7 @@ function er({
|
|
|
1325
1304
|
}
|
|
1326
1305
|
);
|
|
1327
1306
|
}
|
|
1328
|
-
function
|
|
1307
|
+
function ar({
|
|
1329
1308
|
className: e,
|
|
1330
1309
|
...t
|
|
1331
1310
|
}) {
|
|
@@ -1341,7 +1320,7 @@ function tr({
|
|
|
1341
1320
|
}
|
|
1342
1321
|
);
|
|
1343
1322
|
}
|
|
1344
|
-
function
|
|
1323
|
+
function rr({
|
|
1345
1324
|
className: e,
|
|
1346
1325
|
...t
|
|
1347
1326
|
}) {
|
|
@@ -1357,7 +1336,7 @@ function ar({
|
|
|
1357
1336
|
}
|
|
1358
1337
|
);
|
|
1359
1338
|
}
|
|
1360
|
-
function
|
|
1339
|
+
function nr({
|
|
1361
1340
|
className: e,
|
|
1362
1341
|
...t
|
|
1363
1342
|
}) {
|
|
@@ -1375,7 +1354,7 @@ function Ne({
|
|
|
1375
1354
|
...t
|
|
1376
1355
|
}) {
|
|
1377
1356
|
return /* @__PURE__ */ a(
|
|
1378
|
-
|
|
1357
|
+
G.Provider,
|
|
1379
1358
|
{
|
|
1380
1359
|
"data-slot": "tooltip-provider",
|
|
1381
1360
|
delayDuration: e,
|
|
@@ -1386,12 +1365,12 @@ function Ne({
|
|
|
1386
1365
|
function mt({
|
|
1387
1366
|
...e
|
|
1388
1367
|
}) {
|
|
1389
|
-
return /* @__PURE__ */ a(Ne, { children: /* @__PURE__ */ a(
|
|
1368
|
+
return /* @__PURE__ */ a(Ne, { children: /* @__PURE__ */ a(G.Root, { "data-slot": "tooltip", ...e }) });
|
|
1390
1369
|
}
|
|
1391
1370
|
function pt({
|
|
1392
1371
|
...e
|
|
1393
1372
|
}) {
|
|
1394
|
-
return /* @__PURE__ */ a(
|
|
1373
|
+
return /* @__PURE__ */ a(G.Trigger, { "data-slot": "tooltip-trigger", ...e });
|
|
1395
1374
|
}
|
|
1396
1375
|
function gt({
|
|
1397
1376
|
className: e,
|
|
@@ -1399,8 +1378,8 @@ function gt({
|
|
|
1399
1378
|
children: r,
|
|
1400
1379
|
...o
|
|
1401
1380
|
}) {
|
|
1402
|
-
return /* @__PURE__ */ a(
|
|
1403
|
-
|
|
1381
|
+
return /* @__PURE__ */ a(G.Portal, { children: /* @__PURE__ */ s(
|
|
1382
|
+
G.Content,
|
|
1404
1383
|
{
|
|
1405
1384
|
"data-slot": "tooltip-content",
|
|
1406
1385
|
sideOffset: t,
|
|
@@ -1411,15 +1390,15 @@ function gt({
|
|
|
1411
1390
|
...o,
|
|
1412
1391
|
children: [
|
|
1413
1392
|
r,
|
|
1414
|
-
/* @__PURE__ */ a(
|
|
1393
|
+
/* @__PURE__ */ a(G.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
1415
1394
|
]
|
|
1416
1395
|
}
|
|
1417
1396
|
) });
|
|
1418
1397
|
}
|
|
1419
|
-
function
|
|
1398
|
+
function or({ ...e }) {
|
|
1420
1399
|
return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
|
|
1421
1400
|
}
|
|
1422
|
-
function
|
|
1401
|
+
function ir({ className: e, ...t }) {
|
|
1423
1402
|
return /* @__PURE__ */ a(
|
|
1424
1403
|
"ol",
|
|
1425
1404
|
{
|
|
@@ -1432,7 +1411,7 @@ function or({ className: e, ...t }) {
|
|
|
1432
1411
|
}
|
|
1433
1412
|
);
|
|
1434
1413
|
}
|
|
1435
|
-
function
|
|
1414
|
+
function sr({ className: e, ...t }) {
|
|
1436
1415
|
return /* @__PURE__ */ a(
|
|
1437
1416
|
"li",
|
|
1438
1417
|
{
|
|
@@ -1442,7 +1421,7 @@ function ir({ className: e, ...t }) {
|
|
|
1442
1421
|
}
|
|
1443
1422
|
);
|
|
1444
1423
|
}
|
|
1445
|
-
function
|
|
1424
|
+
function dr({
|
|
1446
1425
|
asChild: e,
|
|
1447
1426
|
className: t,
|
|
1448
1427
|
...r
|
|
@@ -1456,7 +1435,7 @@ function sr({
|
|
|
1456
1435
|
}
|
|
1457
1436
|
);
|
|
1458
1437
|
}
|
|
1459
|
-
function
|
|
1438
|
+
function lr({ className: e, ...t }) {
|
|
1460
1439
|
return /* @__PURE__ */ a(
|
|
1461
1440
|
"span",
|
|
1462
1441
|
{
|
|
@@ -1469,7 +1448,7 @@ function dr({ className: e, ...t }) {
|
|
|
1469
1448
|
}
|
|
1470
1449
|
);
|
|
1471
1450
|
}
|
|
1472
|
-
function
|
|
1451
|
+
function cr({
|
|
1473
1452
|
children: e,
|
|
1474
1453
|
className: t,
|
|
1475
1454
|
...r
|
|
@@ -1482,16 +1461,16 @@ function lr({
|
|
|
1482
1461
|
"aria-hidden": "true",
|
|
1483
1462
|
className: n("[&>svg]:size-3.5", t),
|
|
1484
1463
|
...r,
|
|
1485
|
-
children: e ?? /* @__PURE__ */ a(
|
|
1464
|
+
children: e ?? /* @__PURE__ */ a(ge, {})
|
|
1486
1465
|
}
|
|
1487
1466
|
);
|
|
1488
1467
|
}
|
|
1489
|
-
function
|
|
1468
|
+
function ur({
|
|
1490
1469
|
...e
|
|
1491
1470
|
}) {
|
|
1492
1471
|
return /* @__PURE__ */ a(_.Root, { "data-slot": "dialog", ...e });
|
|
1493
1472
|
}
|
|
1494
|
-
function
|
|
1473
|
+
function fr({
|
|
1495
1474
|
...e
|
|
1496
1475
|
}) {
|
|
1497
1476
|
return /* @__PURE__ */ a(_.Trigger, { "data-slot": "dialog-trigger", ...e });
|
|
@@ -1517,7 +1496,7 @@ function ht({
|
|
|
1517
1496
|
}
|
|
1518
1497
|
);
|
|
1519
1498
|
}
|
|
1520
|
-
function
|
|
1499
|
+
function mr({
|
|
1521
1500
|
className: e,
|
|
1522
1501
|
children: t,
|
|
1523
1502
|
showCloseButton: r = !0,
|
|
@@ -1542,7 +1521,7 @@ function fr({
|
|
|
1542
1521
|
"data-slot": "dialog-close",
|
|
1543
1522
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1544
1523
|
children: [
|
|
1545
|
-
/* @__PURE__ */ a(
|
|
1524
|
+
/* @__PURE__ */ a(be, {}),
|
|
1546
1525
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
1547
1526
|
]
|
|
1548
1527
|
}
|
|
@@ -1552,7 +1531,7 @@ function fr({
|
|
|
1552
1531
|
)
|
|
1553
1532
|
] });
|
|
1554
1533
|
}
|
|
1555
|
-
function
|
|
1534
|
+
function pr({ className: e, ...t }) {
|
|
1556
1535
|
return /* @__PURE__ */ a(
|
|
1557
1536
|
"div",
|
|
1558
1537
|
{
|
|
@@ -1562,7 +1541,7 @@ function mr({ className: e, ...t }) {
|
|
|
1562
1541
|
}
|
|
1563
1542
|
);
|
|
1564
1543
|
}
|
|
1565
|
-
function
|
|
1544
|
+
function gr({ className: e, ...t }) {
|
|
1566
1545
|
return /* @__PURE__ */ a(
|
|
1567
1546
|
"div",
|
|
1568
1547
|
{
|
|
@@ -1576,7 +1555,7 @@ function pr({ className: e, ...t }) {
|
|
|
1576
1555
|
}
|
|
1577
1556
|
);
|
|
1578
1557
|
}
|
|
1579
|
-
function
|
|
1558
|
+
function br({
|
|
1580
1559
|
className: e,
|
|
1581
1560
|
...t
|
|
1582
1561
|
}) {
|
|
@@ -1589,7 +1568,7 @@ function gr({
|
|
|
1589
1568
|
}
|
|
1590
1569
|
);
|
|
1591
1570
|
}
|
|
1592
|
-
function
|
|
1571
|
+
function hr({
|
|
1593
1572
|
className: e,
|
|
1594
1573
|
...t
|
|
1595
1574
|
}) {
|
|
@@ -1622,13 +1601,13 @@ function xt({
|
|
|
1622
1601
|
className: e,
|
|
1623
1602
|
...t
|
|
1624
1603
|
}) {
|
|
1625
|
-
const r =
|
|
1626
|
-
return
|
|
1604
|
+
const r = u.useRef(null);
|
|
1605
|
+
return u.useEffect(() => {
|
|
1627
1606
|
const o = (d) => {
|
|
1628
1607
|
if (d.key === "Escape" && r.current) {
|
|
1629
1608
|
r.current.value = "";
|
|
1630
|
-
const
|
|
1631
|
-
r.current.dispatchEvent(
|
|
1609
|
+
const c = new Event("input", { bubbles: !0 });
|
|
1610
|
+
r.current.dispatchEvent(c);
|
|
1632
1611
|
}
|
|
1633
1612
|
}, i = r.current;
|
|
1634
1613
|
if (i)
|
|
@@ -1639,7 +1618,7 @@ function xt({
|
|
|
1639
1618
|
"data-slot": "command-input-wrapper",
|
|
1640
1619
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1641
1620
|
children: [
|
|
1642
|
-
/* @__PURE__ */ a(
|
|
1621
|
+
/* @__PURE__ */ a(Be, { className: "size-4 shrink-0 opacity-50" }),
|
|
1643
1622
|
/* @__PURE__ */ a(
|
|
1644
1623
|
H.Input,
|
|
1645
1624
|
{
|
|
@@ -1716,22 +1695,22 @@ function kt({
|
|
|
1716
1695
|
}
|
|
1717
1696
|
);
|
|
1718
1697
|
}
|
|
1719
|
-
function
|
|
1698
|
+
function vr({
|
|
1720
1699
|
...e
|
|
1721
1700
|
}) {
|
|
1722
1701
|
return /* @__PURE__ */ a(D.Root, { "data-slot": "select", ...e });
|
|
1723
1702
|
}
|
|
1724
|
-
function
|
|
1703
|
+
function xr({
|
|
1725
1704
|
...e
|
|
1726
1705
|
}) {
|
|
1727
1706
|
return /* @__PURE__ */ a(D.Group, { "data-slot": "select-group", ...e });
|
|
1728
1707
|
}
|
|
1729
|
-
function
|
|
1708
|
+
function wr({
|
|
1730
1709
|
...e
|
|
1731
1710
|
}) {
|
|
1732
1711
|
return /* @__PURE__ */ a(D.Value, { "data-slot": "select-value", ...e });
|
|
1733
1712
|
}
|
|
1734
|
-
function
|
|
1713
|
+
function yr({
|
|
1735
1714
|
className: e,
|
|
1736
1715
|
size: t = "default",
|
|
1737
1716
|
children: r,
|
|
@@ -1754,7 +1733,7 @@ function wr({
|
|
|
1754
1733
|
}
|
|
1755
1734
|
);
|
|
1756
1735
|
}
|
|
1757
|
-
function
|
|
1736
|
+
function Nr({
|
|
1758
1737
|
className: e,
|
|
1759
1738
|
children: t,
|
|
1760
1739
|
position: r = "popper",
|
|
@@ -1783,12 +1762,12 @@ function yr({
|
|
|
1783
1762
|
children: t
|
|
1784
1763
|
}
|
|
1785
1764
|
),
|
|
1786
|
-
/* @__PURE__ */ a(
|
|
1765
|
+
/* @__PURE__ */ a(zt, {})
|
|
1787
1766
|
]
|
|
1788
1767
|
}
|
|
1789
1768
|
) });
|
|
1790
1769
|
}
|
|
1791
|
-
function
|
|
1770
|
+
function kr({
|
|
1792
1771
|
className: e,
|
|
1793
1772
|
...t
|
|
1794
1773
|
}) {
|
|
@@ -1801,7 +1780,7 @@ function Nr({
|
|
|
1801
1780
|
}
|
|
1802
1781
|
);
|
|
1803
1782
|
}
|
|
1804
|
-
function
|
|
1783
|
+
function Cr({
|
|
1805
1784
|
className: e,
|
|
1806
1785
|
children: t,
|
|
1807
1786
|
...r
|
|
@@ -1816,13 +1795,13 @@ function kr({
|
|
|
1816
1795
|
),
|
|
1817
1796
|
...r,
|
|
1818
1797
|
children: [
|
|
1819
|
-
/* @__PURE__ */ a("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(D.ItemIndicator, { children: /* @__PURE__ */ a(
|
|
1798
|
+
/* @__PURE__ */ a("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(D.ItemIndicator, { children: /* @__PURE__ */ a(K, { className: "size-4" }) }) }),
|
|
1820
1799
|
/* @__PURE__ */ a(D.ItemText, { children: t })
|
|
1821
1800
|
]
|
|
1822
1801
|
}
|
|
1823
1802
|
);
|
|
1824
1803
|
}
|
|
1825
|
-
function
|
|
1804
|
+
function zr({
|
|
1826
1805
|
className: e,
|
|
1827
1806
|
...t
|
|
1828
1807
|
}) {
|
|
@@ -1848,11 +1827,11 @@ function Ct({
|
|
|
1848
1827
|
e
|
|
1849
1828
|
),
|
|
1850
1829
|
...t,
|
|
1851
|
-
children: /* @__PURE__ */ a(
|
|
1830
|
+
children: /* @__PURE__ */ a($e, { className: "size-4" })
|
|
1852
1831
|
}
|
|
1853
1832
|
);
|
|
1854
1833
|
}
|
|
1855
|
-
function
|
|
1834
|
+
function zt({
|
|
1856
1835
|
className: e,
|
|
1857
1836
|
...t
|
|
1858
1837
|
}) {
|
|
@@ -1876,30 +1855,30 @@ function Sr({
|
|
|
1876
1855
|
value: o,
|
|
1877
1856
|
defaultValue: i,
|
|
1878
1857
|
onChange: d,
|
|
1879
|
-
onValueChange:
|
|
1858
|
+
onValueChange: c,
|
|
1880
1859
|
notFoundMessage: f,
|
|
1881
1860
|
buttonClassName: m,
|
|
1882
|
-
contentClassName:
|
|
1883
|
-
disabled:
|
|
1884
|
-
extraOptions:
|
|
1861
|
+
contentClassName: l,
|
|
1862
|
+
disabled: w = !1,
|
|
1863
|
+
extraOptions: N,
|
|
1885
1864
|
side: g = "bottom",
|
|
1886
|
-
align:
|
|
1887
|
-
onlyIcon:
|
|
1888
|
-
label:
|
|
1889
|
-
inputProps:
|
|
1890
|
-
buttonProps:
|
|
1865
|
+
align: p = "start",
|
|
1866
|
+
onlyIcon: b = !1,
|
|
1867
|
+
label: z,
|
|
1868
|
+
inputProps: y,
|
|
1869
|
+
buttonProps: v
|
|
1891
1870
|
}) {
|
|
1892
|
-
const [h,
|
|
1871
|
+
const [h, A] = u.useState(!1), [R, j] = u.useState(i || ""), $ = o ?? R, [V, q] = u.useState(""), S = u.useMemo(
|
|
1893
1872
|
() => e.filter(
|
|
1894
|
-
(
|
|
1873
|
+
(x) => x.label.toLowerCase().includes(V.toLowerCase())
|
|
1895
1874
|
),
|
|
1896
|
-
[e,
|
|
1897
|
-
),
|
|
1898
|
-
const
|
|
1899
|
-
o === void 0 &&
|
|
1900
|
-
},
|
|
1901
|
-
return /* @__PURE__ */ s(nt, { open: h, onOpenChange: (
|
|
1902
|
-
|
|
1875
|
+
[e, V]
|
|
1876
|
+
), k = (x) => {
|
|
1877
|
+
const I = x === $ ? "" : x;
|
|
1878
|
+
o === void 0 && j(I), d?.(I), c?.(I), A(!1);
|
|
1879
|
+
}, C = e.find((x) => x.value === $);
|
|
1880
|
+
return /* @__PURE__ */ s(nt, { open: h, onOpenChange: (x) => {
|
|
1881
|
+
A(x), x || q("");
|
|
1903
1882
|
}, modal: !0, children: [
|
|
1904
1883
|
/* @__PURE__ */ a(ot, { asChild: !0, children: /* @__PURE__ */ s(
|
|
1905
1884
|
Y,
|
|
@@ -1912,11 +1891,11 @@ function Sr({
|
|
|
1912
1891
|
// Add overflow-hidden
|
|
1913
1892
|
m,
|
|
1914
1893
|
{
|
|
1915
|
-
"has-[>svg]:px-2 px-2":
|
|
1894
|
+
"has-[>svg]:px-2 px-2": b
|
|
1916
1895
|
}
|
|
1917
1896
|
),
|
|
1918
|
-
disabled:
|
|
1919
|
-
...
|
|
1897
|
+
disabled: w,
|
|
1898
|
+
...v,
|
|
1920
1899
|
children: [
|
|
1921
1900
|
/* @__PURE__ */ a(
|
|
1922
1901
|
"span",
|
|
@@ -1924,67 +1903,67 @@ function Sr({
|
|
|
1924
1903
|
className: n(
|
|
1925
1904
|
"flex items-center gap-2",
|
|
1926
1905
|
{
|
|
1927
|
-
"text-muted-foreground": !
|
|
1928
|
-
"min-w-0 truncate": !
|
|
1906
|
+
"text-muted-foreground": !C && !!t,
|
|
1907
|
+
"min-w-0 truncate": !b
|
|
1929
1908
|
}
|
|
1930
1909
|
),
|
|
1931
|
-
children:
|
|
1932
|
-
|
|
1933
|
-
/* @__PURE__ */ a("p", { className: "grow truncate", children:
|
|
1934
|
-
|
|
1910
|
+
children: C ? /* @__PURE__ */ a(te, { children: b ? C.icon : /* @__PURE__ */ s(te, { children: [
|
|
1911
|
+
C.icon,
|
|
1912
|
+
/* @__PURE__ */ a("p", { className: "grow truncate", children: C.label }),
|
|
1913
|
+
C.rightIcon
|
|
1935
1914
|
] }) }) : /* @__PURE__ */ a("span", { className: "truncate", children: t })
|
|
1936
1915
|
}
|
|
1937
1916
|
),
|
|
1938
|
-
/* @__PURE__ */ a(
|
|
1917
|
+
/* @__PURE__ */ a(je, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
1939
1918
|
]
|
|
1940
1919
|
}
|
|
1941
1920
|
) }),
|
|
1942
|
-
/* @__PURE__ */ a(it, { className: n("p-0",
|
|
1921
|
+
/* @__PURE__ */ a(it, { className: n("p-0", l), side: g, align: p, children: /* @__PURE__ */ s(vt, { children: [
|
|
1943
1922
|
/* @__PURE__ */ a(
|
|
1944
1923
|
xt,
|
|
1945
1924
|
{
|
|
1946
1925
|
placeholder: r,
|
|
1947
|
-
value:
|
|
1948
|
-
onValueChange:
|
|
1949
|
-
...
|
|
1926
|
+
value: V,
|
|
1927
|
+
onValueChange: q,
|
|
1928
|
+
...y
|
|
1950
1929
|
}
|
|
1951
1930
|
),
|
|
1952
1931
|
/* @__PURE__ */ s(wt, { children: [
|
|
1953
|
-
/* @__PURE__ */ a(yt, { children: f || `No ${
|
|
1932
|
+
/* @__PURE__ */ a(yt, { children: f || `No ${z?.toLowerCase() ?? "option"} found.` }),
|
|
1954
1933
|
/* @__PURE__ */ s(Nt, { children: [
|
|
1955
|
-
|
|
1934
|
+
S.map((x) => /* @__PURE__ */ s(
|
|
1956
1935
|
kt,
|
|
1957
1936
|
{
|
|
1958
|
-
value:
|
|
1959
|
-
onSelect: (
|
|
1937
|
+
value: x.value,
|
|
1938
|
+
onSelect: (I) => k(I),
|
|
1960
1939
|
className: "break-all",
|
|
1961
1940
|
children: [
|
|
1962
1941
|
/* @__PURE__ */ a(
|
|
1963
|
-
|
|
1942
|
+
K,
|
|
1964
1943
|
{
|
|
1965
1944
|
className: n(
|
|
1966
1945
|
"mr-2 h-4 w-4",
|
|
1967
|
-
|
|
1946
|
+
$ === x.value ? "opacity-100" : "opacity-0"
|
|
1968
1947
|
)
|
|
1969
1948
|
}
|
|
1970
1949
|
),
|
|
1971
|
-
|
|
1972
|
-
/* @__PURE__ */ a("p", { className: "grow truncate", children:
|
|
1973
|
-
|
|
1950
|
+
x.icon,
|
|
1951
|
+
/* @__PURE__ */ a("p", { className: "grow truncate", children: x.label }),
|
|
1952
|
+
x.rightIcon
|
|
1974
1953
|
]
|
|
1975
1954
|
},
|
|
1976
|
-
|
|
1955
|
+
x.value
|
|
1977
1956
|
)),
|
|
1978
|
-
|
|
1957
|
+
N
|
|
1979
1958
|
] })
|
|
1980
1959
|
] })
|
|
1981
1960
|
] }) })
|
|
1982
1961
|
] });
|
|
1983
1962
|
}
|
|
1984
1963
|
const ee = 768;
|
|
1985
|
-
function
|
|
1986
|
-
const [e, t] =
|
|
1987
|
-
return
|
|
1964
|
+
function St() {
|
|
1965
|
+
const [e, t] = u.useState(void 0);
|
|
1966
|
+
return u.useEffect(() => {
|
|
1988
1967
|
const r = window.matchMedia(`(max-width: ${ee - 1}px)`), o = () => {
|
|
1989
1968
|
t(window.innerWidth < ee);
|
|
1990
1969
|
};
|
|
@@ -1998,7 +1977,7 @@ function ke({
|
|
|
1998
1977
|
...o
|
|
1999
1978
|
}) {
|
|
2000
1979
|
return /* @__PURE__ */ a(
|
|
2001
|
-
|
|
1980
|
+
Fe.Root,
|
|
2002
1981
|
{
|
|
2003
1982
|
"data-testid": "separator",
|
|
2004
1983
|
"data-slot": "separator",
|
|
@@ -2015,7 +1994,7 @@ function ke({
|
|
|
2015
1994
|
function Tt({ ...e }) {
|
|
2016
1995
|
return /* @__PURE__ */ a(_.Root, { "data-slot": "sheet", ...e });
|
|
2017
1996
|
}
|
|
2018
|
-
function
|
|
1997
|
+
function Tr({
|
|
2019
1998
|
...e
|
|
2020
1999
|
}) {
|
|
2021
2000
|
return /* @__PURE__ */ a(_.Trigger, { "data-slot": "sheet-trigger", ...e });
|
|
@@ -2065,7 +2044,7 @@ function Mt({
|
|
|
2065
2044
|
children: [
|
|
2066
2045
|
t,
|
|
2067
2046
|
/* @__PURE__ */ s(_.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
2068
|
-
/* @__PURE__ */ a(
|
|
2047
|
+
/* @__PURE__ */ a(be, { className: "size-4" }),
|
|
2069
2048
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
2070
2049
|
] })
|
|
2071
2050
|
]
|
|
@@ -2073,7 +2052,7 @@ function Mt({
|
|
|
2073
2052
|
)
|
|
2074
2053
|
] });
|
|
2075
2054
|
}
|
|
2076
|
-
function
|
|
2055
|
+
function Rt({ className: e, ...t }) {
|
|
2077
2056
|
return /* @__PURE__ */ a(
|
|
2078
2057
|
"div",
|
|
2079
2058
|
{
|
|
@@ -2083,7 +2062,7 @@ function It({ className: e, ...t }) {
|
|
|
2083
2062
|
}
|
|
2084
2063
|
);
|
|
2085
2064
|
}
|
|
2086
|
-
function
|
|
2065
|
+
function _r({ className: e, ...t }) {
|
|
2087
2066
|
return /* @__PURE__ */ a(
|
|
2088
2067
|
"div",
|
|
2089
2068
|
{
|
|
@@ -2093,7 +2072,7 @@ function Tr({ className: e, ...t }) {
|
|
|
2093
2072
|
}
|
|
2094
2073
|
);
|
|
2095
2074
|
}
|
|
2096
|
-
function
|
|
2075
|
+
function It({
|
|
2097
2076
|
className: e,
|
|
2098
2077
|
...t
|
|
2099
2078
|
}) {
|
|
@@ -2119,66 +2098,66 @@ function Pt({
|
|
|
2119
2098
|
}
|
|
2120
2099
|
);
|
|
2121
2100
|
}
|
|
2122
|
-
const
|
|
2101
|
+
const At = "sidebar_state", Et = 3600 * 24 * 7, Ot = "16rem", Lt = "18rem", Bt = "3rem", jt = "b", Ce = u.createContext(null);
|
|
2123
2102
|
function Q() {
|
|
2124
|
-
const e =
|
|
2103
|
+
const e = u.useContext(Ce);
|
|
2125
2104
|
if (!e)
|
|
2126
2105
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2127
2106
|
return e;
|
|
2128
2107
|
}
|
|
2129
|
-
function
|
|
2108
|
+
function Dr({
|
|
2130
2109
|
defaultOpen: e = !0,
|
|
2131
2110
|
open: t,
|
|
2132
2111
|
onOpenChange: r,
|
|
2133
2112
|
className: o,
|
|
2134
2113
|
style: i,
|
|
2135
2114
|
children: d,
|
|
2136
|
-
...
|
|
2115
|
+
...c
|
|
2137
2116
|
}) {
|
|
2138
|
-
const f =
|
|
2139
|
-
(
|
|
2140
|
-
const h = typeof
|
|
2141
|
-
r ? r(h) :
|
|
2117
|
+
const f = St(), [m, l] = u.useState(!1), [w, N] = u.useState(e), g = t ?? w, p = u.useCallback(
|
|
2118
|
+
(v) => {
|
|
2119
|
+
const h = typeof v == "function" ? v(g) : v;
|
|
2120
|
+
r ? r(h) : N(h), document.cookie = `${At}=${h}; path=/; max-age=${Et}`;
|
|
2142
2121
|
},
|
|
2143
2122
|
[r, g]
|
|
2144
|
-
),
|
|
2145
|
-
|
|
2146
|
-
const
|
|
2147
|
-
h.key ===
|
|
2123
|
+
), b = u.useCallback(() => f ? l((v) => !v) : p((v) => !v), [f, p, l]);
|
|
2124
|
+
u.useEffect(() => {
|
|
2125
|
+
const v = (h) => {
|
|
2126
|
+
h.key === jt && (h.metaKey || h.ctrlKey) && (h.preventDefault(), b());
|
|
2148
2127
|
};
|
|
2149
|
-
return window.addEventListener("keydown",
|
|
2150
|
-
}, [
|
|
2151
|
-
const
|
|
2128
|
+
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
2129
|
+
}, [b]);
|
|
2130
|
+
const z = g ? "expanded" : "collapsed", y = u.useMemo(
|
|
2152
2131
|
() => ({
|
|
2153
|
-
state:
|
|
2132
|
+
state: z,
|
|
2154
2133
|
open: g,
|
|
2155
|
-
setOpen:
|
|
2134
|
+
setOpen: p,
|
|
2156
2135
|
isMobile: f,
|
|
2157
2136
|
openMobile: m,
|
|
2158
|
-
setOpenMobile:
|
|
2159
|
-
toggleSidebar:
|
|
2137
|
+
setOpenMobile: l,
|
|
2138
|
+
toggleSidebar: b
|
|
2160
2139
|
}),
|
|
2161
|
-
[
|
|
2140
|
+
[z, g, p, f, m, l, b]
|
|
2162
2141
|
);
|
|
2163
|
-
return /* @__PURE__ */ a(Ce.Provider, { value:
|
|
2142
|
+
return /* @__PURE__ */ a(Ce.Provider, { value: y, children: /* @__PURE__ */ a(Ne, { delayDuration: 0, children: /* @__PURE__ */ a(
|
|
2164
2143
|
"div",
|
|
2165
2144
|
{
|
|
2166
2145
|
"data-slot": "sidebar-wrapper",
|
|
2167
2146
|
style: {
|
|
2168
2147
|
"--sidebar-width": Ot,
|
|
2169
|
-
"--sidebar-width-icon":
|
|
2148
|
+
"--sidebar-width-icon": Bt,
|
|
2170
2149
|
...i
|
|
2171
2150
|
},
|
|
2172
2151
|
className: n(
|
|
2173
2152
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
2174
2153
|
o
|
|
2175
2154
|
),
|
|
2176
|
-
...
|
|
2155
|
+
...c,
|
|
2177
2156
|
children: d
|
|
2178
2157
|
}
|
|
2179
2158
|
) }) });
|
|
2180
2159
|
}
|
|
2181
|
-
function
|
|
2160
|
+
function Mr({
|
|
2182
2161
|
side: e = "left",
|
|
2183
2162
|
variant: t = "sidebar",
|
|
2184
2163
|
collapsible: r = "offcanvas",
|
|
@@ -2186,7 +2165,7 @@ function Dr({
|
|
|
2186
2165
|
children: i,
|
|
2187
2166
|
...d
|
|
2188
2167
|
}) {
|
|
2189
|
-
const { isMobile:
|
|
2168
|
+
const { isMobile: c, state: f, openMobile: m, setOpenMobile: l } = Q();
|
|
2190
2169
|
return r === "none" ? /* @__PURE__ */ a(
|
|
2191
2170
|
"div",
|
|
2192
2171
|
{
|
|
@@ -2198,7 +2177,7 @@ function Dr({
|
|
|
2198
2177
|
...d,
|
|
2199
2178
|
children: i
|
|
2200
2179
|
}
|
|
2201
|
-
) :
|
|
2180
|
+
) : c ? /* @__PURE__ */ a(Tt, { open: m, onOpenChange: l, ...d, children: /* @__PURE__ */ s(
|
|
2202
2181
|
Mt,
|
|
2203
2182
|
{
|
|
2204
2183
|
"data-sidebar": "sidebar",
|
|
@@ -2210,8 +2189,8 @@ function Dr({
|
|
|
2210
2189
|
},
|
|
2211
2190
|
side: e,
|
|
2212
2191
|
children: [
|
|
2213
|
-
/* @__PURE__ */ s(
|
|
2214
|
-
/* @__PURE__ */ a(
|
|
2192
|
+
/* @__PURE__ */ s(Rt, { className: "sr-only", children: [
|
|
2193
|
+
/* @__PURE__ */ a(It, { children: "Sidebar" }),
|
|
2215
2194
|
/* @__PURE__ */ a(Pt, { children: "Displays the mobile sidebar." })
|
|
2216
2195
|
] }),
|
|
2217
2196
|
/* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: i })
|
|
@@ -2274,7 +2253,7 @@ function Dr({
|
|
|
2274
2253
|
}
|
|
2275
2254
|
);
|
|
2276
2255
|
}
|
|
2277
|
-
function
|
|
2256
|
+
function Rr({
|
|
2278
2257
|
className: e,
|
|
2279
2258
|
onClick: t,
|
|
2280
2259
|
...r
|
|
@@ -2293,7 +2272,7 @@ function Mr({
|
|
|
2293
2272
|
},
|
|
2294
2273
|
...r,
|
|
2295
2274
|
children: [
|
|
2296
|
-
/* @__PURE__ */ a(
|
|
2275
|
+
/* @__PURE__ */ a(Ve, {}),
|
|
2297
2276
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2298
2277
|
]
|
|
2299
2278
|
}
|
|
@@ -2323,7 +2302,7 @@ function Ir({ className: e, ...t }) {
|
|
|
2323
2302
|
}
|
|
2324
2303
|
);
|
|
2325
2304
|
}
|
|
2326
|
-
function
|
|
2305
|
+
function Pr({ className: e, ...t }) {
|
|
2327
2306
|
return /* @__PURE__ */ a(
|
|
2328
2307
|
"main",
|
|
2329
2308
|
{
|
|
@@ -2338,7 +2317,7 @@ function Rr({ className: e, ...t }) {
|
|
|
2338
2317
|
}
|
|
2339
2318
|
);
|
|
2340
2319
|
}
|
|
2341
|
-
function
|
|
2320
|
+
function Ar({
|
|
2342
2321
|
className: e,
|
|
2343
2322
|
...t
|
|
2344
2323
|
}) {
|
|
@@ -2363,7 +2342,7 @@ function Er({ className: e, ...t }) {
|
|
|
2363
2342
|
}
|
|
2364
2343
|
);
|
|
2365
2344
|
}
|
|
2366
|
-
function
|
|
2345
|
+
function Or({ className: e, ...t }) {
|
|
2367
2346
|
return /* @__PURE__ */ a(
|
|
2368
2347
|
"div",
|
|
2369
2348
|
{
|
|
@@ -2374,7 +2353,7 @@ function Ar({ className: e, ...t }) {
|
|
|
2374
2353
|
}
|
|
2375
2354
|
);
|
|
2376
2355
|
}
|
|
2377
|
-
function
|
|
2356
|
+
function Lr({
|
|
2378
2357
|
className: e,
|
|
2379
2358
|
...t
|
|
2380
2359
|
}) {
|
|
@@ -2388,7 +2367,7 @@ function Or({
|
|
|
2388
2367
|
}
|
|
2389
2368
|
);
|
|
2390
2369
|
}
|
|
2391
|
-
function
|
|
2370
|
+
function Br({ className: e, ...t }) {
|
|
2392
2371
|
return /* @__PURE__ */ a(
|
|
2393
2372
|
"div",
|
|
2394
2373
|
{
|
|
@@ -2402,7 +2381,7 @@ function Lr({ className: e, ...t }) {
|
|
|
2402
2381
|
}
|
|
2403
2382
|
);
|
|
2404
2383
|
}
|
|
2405
|
-
function
|
|
2384
|
+
function jr({ className: e, collapsible: t, ...r }) {
|
|
2406
2385
|
return /* @__PURE__ */ a(
|
|
2407
2386
|
"div",
|
|
2408
2387
|
{
|
|
@@ -2414,7 +2393,7 @@ function $r({ className: e, collapsible: t, ...r }) {
|
|
|
2414
2393
|
}
|
|
2415
2394
|
);
|
|
2416
2395
|
}
|
|
2417
|
-
function
|
|
2396
|
+
function $r({
|
|
2418
2397
|
className: e,
|
|
2419
2398
|
asChild: t = !1,
|
|
2420
2399
|
...r
|
|
@@ -2433,7 +2412,7 @@ function Br({
|
|
|
2433
2412
|
}
|
|
2434
2413
|
);
|
|
2435
2414
|
}
|
|
2436
|
-
function
|
|
2415
|
+
function Vr({
|
|
2437
2416
|
className: e,
|
|
2438
2417
|
asChild: t = !1,
|
|
2439
2418
|
...r
|
|
@@ -2454,7 +2433,7 @@ function jr({
|
|
|
2454
2433
|
}
|
|
2455
2434
|
);
|
|
2456
2435
|
}
|
|
2457
|
-
function
|
|
2436
|
+
function Gr({
|
|
2458
2437
|
className: e,
|
|
2459
2438
|
...t
|
|
2460
2439
|
}) {
|
|
@@ -2468,7 +2447,7 @@ function Wr({
|
|
|
2468
2447
|
}
|
|
2469
2448
|
);
|
|
2470
2449
|
}
|
|
2471
|
-
function
|
|
2450
|
+
function Hr({ className: e, ...t }) {
|
|
2472
2451
|
return /* @__PURE__ */ a(
|
|
2473
2452
|
"ul",
|
|
2474
2453
|
{
|
|
@@ -2479,7 +2458,7 @@ function Vr({ className: e, ...t }) {
|
|
|
2479
2458
|
}
|
|
2480
2459
|
);
|
|
2481
2460
|
}
|
|
2482
|
-
function
|
|
2461
|
+
function qr({ className: e, ...t }) {
|
|
2483
2462
|
return /* @__PURE__ */ a(
|
|
2484
2463
|
"li",
|
|
2485
2464
|
{
|
|
@@ -2490,7 +2469,7 @@ function Hr({ className: e, ...t }) {
|
|
|
2490
2469
|
}
|
|
2491
2470
|
);
|
|
2492
2471
|
}
|
|
2493
|
-
const
|
|
2472
|
+
const $t = F(
|
|
2494
2473
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
2495
2474
|
{
|
|
2496
2475
|
variants: {
|
|
@@ -2510,40 +2489,40 @@ const jt = K(
|
|
|
2510
2489
|
}
|
|
2511
2490
|
}
|
|
2512
2491
|
);
|
|
2513
|
-
function
|
|
2492
|
+
function Wr({
|
|
2514
2493
|
asChild: e = !1,
|
|
2515
2494
|
isActive: t = !1,
|
|
2516
2495
|
variant: r = "default",
|
|
2517
2496
|
size: o = "default",
|
|
2518
2497
|
tooltip: i,
|
|
2519
2498
|
className: d,
|
|
2520
|
-
...
|
|
2499
|
+
...c
|
|
2521
2500
|
}) {
|
|
2522
|
-
const f = e ? L : "button", { isMobile: m, state:
|
|
2501
|
+
const f = e ? L : "button", { isMobile: m, state: l } = Q(), w = /* @__PURE__ */ a(
|
|
2523
2502
|
f,
|
|
2524
2503
|
{
|
|
2525
2504
|
"data-slot": "sidebar-menu-button",
|
|
2526
2505
|
"data-sidebar": "menu-button",
|
|
2527
2506
|
"data-size": o,
|
|
2528
2507
|
"data-active": t,
|
|
2529
|
-
className: n(
|
|
2530
|
-
...
|
|
2508
|
+
className: n($t({ variant: r, size: o }), d),
|
|
2509
|
+
...c
|
|
2531
2510
|
}
|
|
2532
2511
|
);
|
|
2533
2512
|
return i ? (typeof i == "string" && (i = {
|
|
2534
2513
|
children: i
|
|
2535
2514
|
}), /* @__PURE__ */ s(mt, { children: [
|
|
2536
|
-
/* @__PURE__ */ a(pt, { asChild: !0, children:
|
|
2515
|
+
/* @__PURE__ */ a(pt, { asChild: !0, children: w }),
|
|
2537
2516
|
/* @__PURE__ */ a(
|
|
2538
2517
|
gt,
|
|
2539
2518
|
{
|
|
2540
2519
|
side: "right",
|
|
2541
2520
|
align: "center",
|
|
2542
|
-
hidden:
|
|
2521
|
+
hidden: l !== "collapsed" || m,
|
|
2543
2522
|
...i
|
|
2544
2523
|
}
|
|
2545
2524
|
)
|
|
2546
|
-
] })) :
|
|
2525
|
+
] })) : w;
|
|
2547
2526
|
}
|
|
2548
2527
|
function Fr({
|
|
2549
2528
|
className: e,
|
|
@@ -2598,7 +2577,7 @@ function Ur({
|
|
|
2598
2577
|
showIcon: t = !1,
|
|
2599
2578
|
...r
|
|
2600
2579
|
}) {
|
|
2601
|
-
const o =
|
|
2580
|
+
const o = u.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
2602
2581
|
return /* @__PURE__ */ s(
|
|
2603
2582
|
"div",
|
|
2604
2583
|
{
|
|
@@ -2608,14 +2587,14 @@ function Ur({
|
|
|
2608
2587
|
...r,
|
|
2609
2588
|
children: [
|
|
2610
2589
|
t && /* @__PURE__ */ a(
|
|
2611
|
-
|
|
2590
|
+
le,
|
|
2612
2591
|
{
|
|
2613
2592
|
className: "size-4 rounded-md",
|
|
2614
2593
|
"data-sidebar": "menu-skeleton-icon"
|
|
2615
2594
|
}
|
|
2616
2595
|
),
|
|
2617
2596
|
/* @__PURE__ */ a(
|
|
2618
|
-
|
|
2597
|
+
le,
|
|
2619
2598
|
{
|
|
2620
2599
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
2621
2600
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -2628,7 +2607,7 @@ function Ur({
|
|
|
2628
2607
|
}
|
|
2629
2608
|
);
|
|
2630
2609
|
}
|
|
2631
|
-
function
|
|
2610
|
+
function Jr({ className: e, ...t }) {
|
|
2632
2611
|
return /* @__PURE__ */ a(
|
|
2633
2612
|
"ul",
|
|
2634
2613
|
{
|
|
@@ -2643,7 +2622,7 @@ function qr({ className: e, ...t }) {
|
|
|
2643
2622
|
}
|
|
2644
2623
|
);
|
|
2645
2624
|
}
|
|
2646
|
-
function
|
|
2625
|
+
function Xr({
|
|
2647
2626
|
className: e,
|
|
2648
2627
|
...t
|
|
2649
2628
|
}) {
|
|
@@ -2657,7 +2636,7 @@ function Jr({
|
|
|
2657
2636
|
}
|
|
2658
2637
|
);
|
|
2659
2638
|
}
|
|
2660
|
-
function
|
|
2639
|
+
function Yr({
|
|
2661
2640
|
asChild: e = !1,
|
|
2662
2641
|
size: t = "md",
|
|
2663
2642
|
isActive: r = !1,
|
|
@@ -2683,39 +2662,39 @@ function Xr({
|
|
|
2683
2662
|
}
|
|
2684
2663
|
);
|
|
2685
2664
|
}
|
|
2686
|
-
function
|
|
2665
|
+
function Vt({
|
|
2687
2666
|
className: e,
|
|
2688
2667
|
children: t,
|
|
2689
2668
|
...r
|
|
2690
2669
|
}) {
|
|
2691
2670
|
return /* @__PURE__ */ s(
|
|
2692
|
-
|
|
2671
|
+
W.Root,
|
|
2693
2672
|
{
|
|
2694
2673
|
"data-slot": "scroll-area",
|
|
2695
2674
|
className: n("relative", e),
|
|
2696
2675
|
...r,
|
|
2697
2676
|
children: [
|
|
2698
2677
|
/* @__PURE__ */ a(
|
|
2699
|
-
|
|
2678
|
+
W.Viewport,
|
|
2700
2679
|
{
|
|
2701
2680
|
"data-slot": "scroll-area-viewport",
|
|
2702
2681
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
2703
2682
|
children: t
|
|
2704
2683
|
}
|
|
2705
2684
|
),
|
|
2706
|
-
/* @__PURE__ */ a(
|
|
2707
|
-
/* @__PURE__ */ a(
|
|
2685
|
+
/* @__PURE__ */ a(Gt, {}),
|
|
2686
|
+
/* @__PURE__ */ a(W.Corner, {})
|
|
2708
2687
|
]
|
|
2709
2688
|
}
|
|
2710
2689
|
);
|
|
2711
2690
|
}
|
|
2712
|
-
function
|
|
2691
|
+
function Gt({
|
|
2713
2692
|
className: e,
|
|
2714
2693
|
orientation: t = "vertical",
|
|
2715
2694
|
...r
|
|
2716
2695
|
}) {
|
|
2717
2696
|
return /* @__PURE__ */ a(
|
|
2718
|
-
|
|
2697
|
+
W.ScrollAreaScrollbar,
|
|
2719
2698
|
{
|
|
2720
2699
|
"data-slot": "scroll-area-scrollbar",
|
|
2721
2700
|
orientation: t,
|
|
@@ -2727,7 +2706,7 @@ function Vt({
|
|
|
2727
2706
|
),
|
|
2728
2707
|
...r,
|
|
2729
2708
|
children: /* @__PURE__ */ a(
|
|
2730
|
-
|
|
2709
|
+
W.ScrollAreaThumb,
|
|
2731
2710
|
{
|
|
2732
2711
|
"data-slot": "scroll-area-thumb",
|
|
2733
2712
|
className: "bg-border relative flex-1 rounded-full"
|
|
@@ -2736,7 +2715,7 @@ function Vt({
|
|
|
2736
2715
|
}
|
|
2737
2716
|
);
|
|
2738
2717
|
}
|
|
2739
|
-
function
|
|
2718
|
+
function Qr({
|
|
2740
2719
|
item: e,
|
|
2741
2720
|
children: t,
|
|
2742
2721
|
keyClassName: r,
|
|
@@ -2749,22 +2728,22 @@ function Yr({
|
|
|
2749
2728
|
/* @__PURE__ */ a("span", { className: n("ml-4", o), children: t })
|
|
2750
2729
|
] }) });
|
|
2751
2730
|
}
|
|
2752
|
-
function
|
|
2731
|
+
function Zr({
|
|
2753
2732
|
children: e,
|
|
2754
2733
|
separatorClassName: t = "w-full"
|
|
2755
2734
|
}) {
|
|
2756
|
-
const r =
|
|
2757
|
-
return /* @__PURE__ */ a("div", { className: "flex flex-col", children: r.map((o, i) => /* @__PURE__ */ s(
|
|
2735
|
+
const r = E.Children.toArray(e);
|
|
2736
|
+
return /* @__PURE__ */ a("div", { className: "flex flex-col", children: r.map((o, i) => /* @__PURE__ */ s(E.Fragment, { children: [
|
|
2758
2737
|
o,
|
|
2759
2738
|
i !== r.length - 1 && /* @__PURE__ */ a(ke, { className: t })
|
|
2760
2739
|
] }, i)) });
|
|
2761
2740
|
}
|
|
2762
|
-
function
|
|
2741
|
+
function en({
|
|
2763
2742
|
className: e,
|
|
2764
2743
|
...t
|
|
2765
2744
|
}) {
|
|
2766
2745
|
return /* @__PURE__ */ a(
|
|
2767
|
-
|
|
2746
|
+
se.Root,
|
|
2768
2747
|
{
|
|
2769
2748
|
"data-slot": "checkbox",
|
|
2770
2749
|
className: n(
|
|
@@ -2773,17 +2752,17 @@ function Zr({
|
|
|
2773
2752
|
),
|
|
2774
2753
|
...t,
|
|
2775
2754
|
children: /* @__PURE__ */ a(
|
|
2776
|
-
|
|
2755
|
+
se.Indicator,
|
|
2777
2756
|
{
|
|
2778
2757
|
"data-slot": "checkbox-indicator",
|
|
2779
2758
|
className: "flex items-center justify-center text-current transition-none",
|
|
2780
|
-
children: /* @__PURE__ */ a(
|
|
2759
|
+
children: /* @__PURE__ */ a(K, { className: "size-3.5" })
|
|
2781
2760
|
}
|
|
2782
2761
|
)
|
|
2783
2762
|
}
|
|
2784
2763
|
);
|
|
2785
2764
|
}
|
|
2786
|
-
const
|
|
2765
|
+
const tn = ({
|
|
2787
2766
|
className: e,
|
|
2788
2767
|
title: t,
|
|
2789
2768
|
description: r,
|
|
@@ -2802,111 +2781,111 @@ const en = ({
|
|
|
2802
2781
|
i
|
|
2803
2782
|
]
|
|
2804
2783
|
}
|
|
2805
|
-
) }),
|
|
2784
|
+
) }), an = E.forwardRef(({
|
|
2806
2785
|
data: e,
|
|
2807
2786
|
initialSelectedItemId: t,
|
|
2808
2787
|
onSelectChange: r,
|
|
2809
2788
|
expandAll: o,
|
|
2810
2789
|
folderIcon: i,
|
|
2811
2790
|
itemIcon: d,
|
|
2812
|
-
className:
|
|
2791
|
+
className: c,
|
|
2813
2792
|
...f
|
|
2814
2793
|
}, m) => {
|
|
2815
|
-
const [
|
|
2816
|
-
y
|
|
2817
|
-
}, [r]), g =
|
|
2818
|
-
const
|
|
2819
|
-
function
|
|
2794
|
+
const [l, w] = E.useState(t), N = E.useCallback((y) => {
|
|
2795
|
+
w(y?.id), r && r(y);
|
|
2796
|
+
}, [r]), g = E.useMemo(() => {
|
|
2797
|
+
const y = [];
|
|
2798
|
+
function v(h, A) {
|
|
2820
2799
|
if (h instanceof Array)
|
|
2821
2800
|
for (let R = 0; R < h.length; R++) {
|
|
2822
2801
|
if (o && h[R].children)
|
|
2823
|
-
|
|
2824
|
-
else if (
|
|
2825
|
-
if (
|
|
2802
|
+
y.push(h[R].id);
|
|
2803
|
+
else if (A) {
|
|
2804
|
+
if (y.push(h[R].id), v(h[R], A))
|
|
2826
2805
|
return !0;
|
|
2827
|
-
o ||
|
|
2806
|
+
o || y.pop();
|
|
2828
2807
|
}
|
|
2829
|
-
h[R].children &&
|
|
2808
|
+
h[R].children && v(h[R].children, A);
|
|
2830
2809
|
}
|
|
2831
2810
|
else {
|
|
2832
|
-
if (
|
|
2811
|
+
if (A && h.id === A)
|
|
2833
2812
|
return !0;
|
|
2834
2813
|
if (h.children)
|
|
2835
|
-
return o &&
|
|
2814
|
+
return o && y.push(h.id), v(h.children, A);
|
|
2836
2815
|
}
|
|
2837
2816
|
}
|
|
2838
|
-
return (o || t) &&
|
|
2839
|
-
}, [e, t, o]), { ref:
|
|
2840
|
-
return /* @__PURE__ */ a("div", { ref:
|
|
2841
|
-
|
|
2817
|
+
return (o || t) && v(e, t), y;
|
|
2818
|
+
}, [e, t, o]), { ref: p, width: b, height: z } = Ke();
|
|
2819
|
+
return /* @__PURE__ */ a("div", { ref: p, className: n("overflow-hidden", c), children: /* @__PURE__ */ a(Vt, { style: { width: b, height: z }, children: /* @__PURE__ */ a("div", { className: "relative p-2", children: /* @__PURE__ */ a(
|
|
2820
|
+
ze,
|
|
2842
2821
|
{
|
|
2843
2822
|
data: e,
|
|
2844
2823
|
ref: m,
|
|
2845
|
-
selectedItemId:
|
|
2846
|
-
handleSelectChange:
|
|
2824
|
+
selectedItemId: l,
|
|
2825
|
+
handleSelectChange: N,
|
|
2847
2826
|
expandedItemIds: g,
|
|
2848
2827
|
FolderIcon: i,
|
|
2849
2828
|
ItemIcon: d,
|
|
2850
2829
|
...f
|
|
2851
2830
|
}
|
|
2852
2831
|
) }) }) });
|
|
2853
|
-
}),
|
|
2832
|
+
}), ze = E.forwardRef(({ className: e, data: t, selectedItemId: r, handleSelectChange: o, expandedItemIds: i, FolderIcon: d, ItemIcon: c, ...f }, m) => /* @__PURE__ */ a("div", { ref: m, role: "tree", className: e, ...f, children: /* @__PURE__ */ a("ul", { children: t instanceof Array ? t.map((l) => /* @__PURE__ */ a("li", { children: l.children ? /* @__PURE__ */ a(P.Root, { type: "multiple", defaultValue: i, children: /* @__PURE__ */ s(P.Item, { value: l.id, children: [
|
|
2854
2833
|
/* @__PURE__ */ s(
|
|
2855
|
-
|
|
2834
|
+
Se,
|
|
2856
2835
|
{
|
|
2857
|
-
"aria-label":
|
|
2836
|
+
"aria-label": l.name,
|
|
2858
2837
|
className: n(
|
|
2859
2838
|
"px-2 hover:before:opacity-100 before:absolute before:left-0 before:w-full before:opacity-0 before:bg-muted/80 before:h-[1.75rem] before:-z-10",
|
|
2860
|
-
r ===
|
|
2839
|
+
r === l.id && "before:opacity-100 before:bg-accent text-accent-foreground before:border-l-2 before:border-l-accent-foreground/50 dark:before:border-0"
|
|
2861
2840
|
),
|
|
2862
|
-
onClick: () => o(
|
|
2841
|
+
onClick: () => o(l),
|
|
2863
2842
|
children: [
|
|
2864
|
-
|
|
2865
|
-
|
|
2843
|
+
l.icon && /* @__PURE__ */ a(
|
|
2844
|
+
l.icon,
|
|
2866
2845
|
{
|
|
2867
2846
|
className: "h-4 w-4 shrink-0 mr-2 text-accent-foreground/50",
|
|
2868
2847
|
"aria-hidden": "true"
|
|
2869
2848
|
}
|
|
2870
2849
|
),
|
|
2871
|
-
!
|
|
2850
|
+
!l.icon && d && /* @__PURE__ */ a(
|
|
2872
2851
|
d,
|
|
2873
2852
|
{
|
|
2874
2853
|
className: "h-4 w-4 shrink-0 mr-2 text-accent-foreground/50",
|
|
2875
2854
|
"aria-hidden": "true"
|
|
2876
2855
|
}
|
|
2877
2856
|
),
|
|
2878
|
-
/* @__PURE__ */ a("p", { className: "text-sm truncate", children:
|
|
2857
|
+
/* @__PURE__ */ a("p", { className: "text-sm truncate", children: l.name })
|
|
2879
2858
|
]
|
|
2880
2859
|
}
|
|
2881
2860
|
),
|
|
2882
2861
|
/* @__PURE__ */ a(Te, { className: "pl-6", children: /* @__PURE__ */ a(
|
|
2883
|
-
|
|
2862
|
+
ze,
|
|
2884
2863
|
{
|
|
2885
|
-
data:
|
|
2864
|
+
data: l.children ? l.children : l,
|
|
2886
2865
|
selectedItemId: r,
|
|
2887
2866
|
handleSelectChange: o,
|
|
2888
2867
|
expandedItemIds: i,
|
|
2889
2868
|
FolderIcon: d,
|
|
2890
|
-
ItemIcon:
|
|
2869
|
+
ItemIcon: c
|
|
2891
2870
|
}
|
|
2892
2871
|
) })
|
|
2893
2872
|
] }) }) : /* @__PURE__ */ a(
|
|
2894
|
-
|
|
2873
|
+
fe,
|
|
2895
2874
|
{
|
|
2896
|
-
item:
|
|
2897
|
-
isSelected: r ===
|
|
2898
|
-
onClick: () => o(
|
|
2899
|
-
Icon:
|
|
2875
|
+
item: l,
|
|
2876
|
+
isSelected: r === l.id,
|
|
2877
|
+
onClick: () => o(l),
|
|
2878
|
+
Icon: c
|
|
2900
2879
|
}
|
|
2901
|
-
) },
|
|
2902
|
-
|
|
2880
|
+
) }, l.id)) : /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
|
|
2881
|
+
fe,
|
|
2903
2882
|
{
|
|
2904
2883
|
item: t,
|
|
2905
2884
|
isSelected: r === t.id,
|
|
2906
2885
|
onClick: () => o(t),
|
|
2907
|
-
Icon:
|
|
2886
|
+
Icon: c
|
|
2908
2887
|
}
|
|
2909
|
-
) }) }) })),
|
|
2888
|
+
) }) }) })), fe = E.forwardRef(({ className: e, item: t, isSelected: r, Icon: o, ...i }, d) => /* @__PURE__ */ s(
|
|
2910
2889
|
"button",
|
|
2911
2890
|
{
|
|
2912
2891
|
ref: d,
|
|
@@ -2926,8 +2905,8 @@ const en = ({
|
|
|
2926
2905
|
/* @__PURE__ */ a("p", { className: "flex-grow text-sm truncate", children: t.name })
|
|
2927
2906
|
]
|
|
2928
2907
|
}
|
|
2929
|
-
)),
|
|
2930
|
-
|
|
2908
|
+
)), Se = E.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ a(P.Header, { children: /* @__PURE__ */ s(
|
|
2909
|
+
P.Trigger,
|
|
2931
2910
|
{
|
|
2932
2911
|
ref: o,
|
|
2933
2912
|
className: n(
|
|
@@ -2937,13 +2916,13 @@ const en = ({
|
|
|
2937
2916
|
...r,
|
|
2938
2917
|
children: [
|
|
2939
2918
|
t,
|
|
2940
|
-
/* @__PURE__ */ a(
|
|
2919
|
+
/* @__PURE__ */ a(ge, { className: "h-4 w-4 shrink-0 transition-transform duration-200 text-accent-foreground/50 ml-auto" })
|
|
2941
2920
|
]
|
|
2942
2921
|
}
|
|
2943
2922
|
) }));
|
|
2944
|
-
|
|
2945
|
-
const Te =
|
|
2946
|
-
|
|
2923
|
+
Se.displayName = P.Trigger.displayName;
|
|
2924
|
+
const Te = E.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ a(
|
|
2925
|
+
P.Content,
|
|
2947
2926
|
{
|
|
2948
2927
|
ref: o,
|
|
2949
2928
|
className: n(
|
|
@@ -2954,18 +2933,18 @@ const Te = A.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__
|
|
|
2954
2933
|
children: /* @__PURE__ */ a("div", { className: "pb-1 pt-0", children: t })
|
|
2955
2934
|
}
|
|
2956
2935
|
));
|
|
2957
|
-
Te.displayName =
|
|
2958
|
-
function
|
|
2936
|
+
Te.displayName = P.Content.displayName;
|
|
2937
|
+
function rn({
|
|
2959
2938
|
...e
|
|
2960
2939
|
}) {
|
|
2961
|
-
return /* @__PURE__ */ a(
|
|
2940
|
+
return /* @__PURE__ */ a(P.Root, { "data-slot": "accordion", ...e });
|
|
2962
2941
|
}
|
|
2963
|
-
function
|
|
2942
|
+
function nn({
|
|
2964
2943
|
className: e,
|
|
2965
2944
|
...t
|
|
2966
2945
|
}) {
|
|
2967
2946
|
return /* @__PURE__ */ a(
|
|
2968
|
-
|
|
2947
|
+
P.Item,
|
|
2969
2948
|
{
|
|
2970
2949
|
"data-slot": "accordion-item",
|
|
2971
2950
|
className: n("border-b last:border-b-0", e),
|
|
@@ -2973,13 +2952,13 @@ function rn({
|
|
|
2973
2952
|
}
|
|
2974
2953
|
);
|
|
2975
2954
|
}
|
|
2976
|
-
function
|
|
2955
|
+
function on({
|
|
2977
2956
|
className: e,
|
|
2978
2957
|
children: t,
|
|
2979
2958
|
...r
|
|
2980
2959
|
}) {
|
|
2981
|
-
return /* @__PURE__ */ a(
|
|
2982
|
-
|
|
2960
|
+
return /* @__PURE__ */ a(P.Header, { className: "flex", children: /* @__PURE__ */ s(
|
|
2961
|
+
P.Trigger,
|
|
2983
2962
|
{
|
|
2984
2963
|
"data-slot": "accordion-trigger",
|
|
2985
2964
|
className: n(
|
|
@@ -2994,13 +2973,13 @@ function nn({
|
|
|
2994
2973
|
}
|
|
2995
2974
|
) });
|
|
2996
2975
|
}
|
|
2997
|
-
function
|
|
2976
|
+
function sn({
|
|
2998
2977
|
className: e,
|
|
2999
2978
|
children: t,
|
|
3000
2979
|
...r
|
|
3001
2980
|
}) {
|
|
3002
2981
|
return /* @__PURE__ */ a(
|
|
3003
|
-
|
|
2982
|
+
P.Content,
|
|
3004
2983
|
{
|
|
3005
2984
|
"data-slot": "accordion-content",
|
|
3006
2985
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
@@ -3009,7 +2988,7 @@ function on({
|
|
|
3009
2988
|
}
|
|
3010
2989
|
);
|
|
3011
2990
|
}
|
|
3012
|
-
function
|
|
2991
|
+
function dn({
|
|
3013
2992
|
className: e,
|
|
3014
2993
|
direction: t = "horizontal",
|
|
3015
2994
|
...r
|
|
@@ -3028,13 +3007,13 @@ function sn({
|
|
|
3028
3007
|
}
|
|
3029
3008
|
);
|
|
3030
3009
|
}
|
|
3031
|
-
function
|
|
3010
|
+
function ln({
|
|
3032
3011
|
className: e,
|
|
3033
3012
|
...t
|
|
3034
3013
|
}) {
|
|
3035
3014
|
return /* @__PURE__ */ a(ne.Panel, { "data-slot": "resizable-panel", className: n(e), ...t });
|
|
3036
3015
|
}
|
|
3037
|
-
function
|
|
3016
|
+
function cn({
|
|
3038
3017
|
withHandle: e,
|
|
3039
3018
|
className: t,
|
|
3040
3019
|
...r
|
|
@@ -3048,11 +3027,11 @@ function ln({
|
|
|
3048
3027
|
t
|
|
3049
3028
|
),
|
|
3050
3029
|
...r,
|
|
3051
|
-
children: e && /* @__PURE__ */ a("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(
|
|
3030
|
+
children: e && /* @__PURE__ */ a("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(Ge, { className: "size-2.5" }) })
|
|
3052
3031
|
}
|
|
3053
3032
|
);
|
|
3054
3033
|
}
|
|
3055
|
-
const Ht =
|
|
3034
|
+
const Ht = F(
|
|
3056
3035
|
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
3057
3036
|
{
|
|
3058
3037
|
variants: {
|
|
@@ -3066,7 +3045,7 @@ const Ht = K(
|
|
|
3066
3045
|
}
|
|
3067
3046
|
}
|
|
3068
3047
|
);
|
|
3069
|
-
function
|
|
3048
|
+
function un({
|
|
3070
3049
|
className: e,
|
|
3071
3050
|
variant: t,
|
|
3072
3051
|
...r
|
|
@@ -3082,7 +3061,7 @@ function cn({
|
|
|
3082
3061
|
}
|
|
3083
3062
|
);
|
|
3084
3063
|
}
|
|
3085
|
-
function
|
|
3064
|
+
function fn({ className: e, ...t }) {
|
|
3086
3065
|
return /* @__PURE__ */ a(
|
|
3087
3066
|
"p",
|
|
3088
3067
|
{
|
|
@@ -3095,7 +3074,7 @@ function un({ className: e, ...t }) {
|
|
|
3095
3074
|
}
|
|
3096
3075
|
);
|
|
3097
3076
|
}
|
|
3098
|
-
function
|
|
3077
|
+
function mn({
|
|
3099
3078
|
className: e,
|
|
3100
3079
|
...t
|
|
3101
3080
|
}) {
|
|
@@ -3111,7 +3090,7 @@ function fn({
|
|
|
3111
3090
|
}
|
|
3112
3091
|
);
|
|
3113
3092
|
}
|
|
3114
|
-
function
|
|
3093
|
+
function pn({
|
|
3115
3094
|
icon: e,
|
|
3116
3095
|
size: t = 24,
|
|
3117
3096
|
className: r,
|
|
@@ -3125,7 +3104,7 @@ function mn({
|
|
|
3125
3104
|
r
|
|
3126
3105
|
),
|
|
3127
3106
|
...o,
|
|
3128
|
-
children:
|
|
3107
|
+
children: u.cloneElement(e, {
|
|
3129
3108
|
width: t,
|
|
3130
3109
|
height: t,
|
|
3131
3110
|
className: n(
|
|
@@ -3138,12 +3117,12 @@ function mn({
|
|
|
3138
3117
|
}
|
|
3139
3118
|
);
|
|
3140
3119
|
}
|
|
3141
|
-
function
|
|
3120
|
+
function gn({
|
|
3142
3121
|
className: e,
|
|
3143
3122
|
...t
|
|
3144
3123
|
}) {
|
|
3145
3124
|
return /* @__PURE__ */ a(
|
|
3146
|
-
|
|
3125
|
+
de.Root,
|
|
3147
3126
|
{
|
|
3148
3127
|
"data-slot": "switch",
|
|
3149
3128
|
className: n(
|
|
@@ -3152,7 +3131,7 @@ function pn({
|
|
|
3152
3131
|
),
|
|
3153
3132
|
...t,
|
|
3154
3133
|
children: /* @__PURE__ */ a(
|
|
3155
|
-
|
|
3134
|
+
de.Thumb,
|
|
3156
3135
|
{
|
|
3157
3136
|
"data-slot": "switch-thumb",
|
|
3158
3137
|
className: n(
|
|
@@ -3163,22 +3142,22 @@ function pn({
|
|
|
3163
3142
|
}
|
|
3164
3143
|
);
|
|
3165
3144
|
}
|
|
3166
|
-
function
|
|
3145
|
+
function bn({
|
|
3167
3146
|
...e
|
|
3168
3147
|
}) {
|
|
3169
3148
|
return /* @__PURE__ */ a(O.Root, { "data-slot": "alert-dialog", ...e });
|
|
3170
3149
|
}
|
|
3171
|
-
function
|
|
3150
|
+
function hn({
|
|
3172
3151
|
...e
|
|
3173
3152
|
}) {
|
|
3174
3153
|
return /* @__PURE__ */ a(O.Trigger, { "data-slot": "alert-dialog-trigger", ...e });
|
|
3175
3154
|
}
|
|
3176
|
-
function
|
|
3155
|
+
function qt({
|
|
3177
3156
|
...e
|
|
3178
3157
|
}) {
|
|
3179
3158
|
return /* @__PURE__ */ a(O.Portal, { "data-slot": "alert-dialog-portal", ...e });
|
|
3180
3159
|
}
|
|
3181
|
-
function
|
|
3160
|
+
function Wt({
|
|
3182
3161
|
className: e,
|
|
3183
3162
|
...t
|
|
3184
3163
|
}) {
|
|
@@ -3194,12 +3173,12 @@ function Ft({
|
|
|
3194
3173
|
}
|
|
3195
3174
|
);
|
|
3196
3175
|
}
|
|
3197
|
-
function
|
|
3176
|
+
function vn({
|
|
3198
3177
|
className: e,
|
|
3199
3178
|
...t
|
|
3200
3179
|
}) {
|
|
3201
|
-
return /* @__PURE__ */ s(
|
|
3202
|
-
/* @__PURE__ */ a(
|
|
3180
|
+
return /* @__PURE__ */ s(qt, { children: [
|
|
3181
|
+
/* @__PURE__ */ a(Wt, {}),
|
|
3203
3182
|
/* @__PURE__ */ a(
|
|
3204
3183
|
O.Content,
|
|
3205
3184
|
{
|
|
@@ -3213,7 +3192,7 @@ function hn({
|
|
|
3213
3192
|
)
|
|
3214
3193
|
] });
|
|
3215
3194
|
}
|
|
3216
|
-
function
|
|
3195
|
+
function xn({
|
|
3217
3196
|
className: e,
|
|
3218
3197
|
...t
|
|
3219
3198
|
}) {
|
|
@@ -3226,7 +3205,7 @@ function vn({
|
|
|
3226
3205
|
}
|
|
3227
3206
|
);
|
|
3228
3207
|
}
|
|
3229
|
-
function
|
|
3208
|
+
function wn({
|
|
3230
3209
|
className: e,
|
|
3231
3210
|
...t
|
|
3232
3211
|
}) {
|
|
@@ -3242,7 +3221,7 @@ function xn({
|
|
|
3242
3221
|
}
|
|
3243
3222
|
);
|
|
3244
3223
|
}
|
|
3245
|
-
function
|
|
3224
|
+
function yn({
|
|
3246
3225
|
className: e,
|
|
3247
3226
|
...t
|
|
3248
3227
|
}) {
|
|
@@ -3255,7 +3234,7 @@ function wn({
|
|
|
3255
3234
|
}
|
|
3256
3235
|
);
|
|
3257
3236
|
}
|
|
3258
|
-
function
|
|
3237
|
+
function Nn({
|
|
3259
3238
|
className: e,
|
|
3260
3239
|
...t
|
|
3261
3240
|
}) {
|
|
@@ -3268,7 +3247,7 @@ function yn({
|
|
|
3268
3247
|
}
|
|
3269
3248
|
);
|
|
3270
3249
|
}
|
|
3271
|
-
function
|
|
3250
|
+
function kn({
|
|
3272
3251
|
className: e,
|
|
3273
3252
|
...t
|
|
3274
3253
|
}) {
|
|
@@ -3280,7 +3259,7 @@ function Nn({
|
|
|
3280
3259
|
}
|
|
3281
3260
|
);
|
|
3282
3261
|
}
|
|
3283
|
-
function
|
|
3262
|
+
function Cn({
|
|
3284
3263
|
className: e,
|
|
3285
3264
|
...t
|
|
3286
3265
|
}) {
|
|
@@ -3292,7 +3271,7 @@ function kn({
|
|
|
3292
3271
|
}
|
|
3293
3272
|
);
|
|
3294
3273
|
}
|
|
3295
|
-
const
|
|
3274
|
+
const me = F(
|
|
3296
3275
|
"relative inline-block aspect-square transform-gpu",
|
|
3297
3276
|
{
|
|
3298
3277
|
variants: {
|
|
@@ -3311,13 +3290,13 @@ const pe = K(
|
|
|
3311
3290
|
},
|
|
3312
3291
|
defaultVariants: { variant: "default", size: "default" }
|
|
3313
3292
|
}
|
|
3314
|
-
),
|
|
3293
|
+
), zn = ({ className: e, variant: t, size: r = "default" }) => /* @__PURE__ */ s(
|
|
3315
3294
|
"div",
|
|
3316
3295
|
{
|
|
3317
3296
|
role: "status",
|
|
3318
3297
|
"aria-label": "Loading",
|
|
3319
3298
|
className: n(
|
|
3320
|
-
|
|
3299
|
+
me(typeof r == "string" ? { variant: t, size: r } : { variant: t }),
|
|
3321
3300
|
e
|
|
3322
3301
|
),
|
|
3323
3302
|
style: typeof r == "number" ? { width: r, height: r } : void 0,
|
|
@@ -3340,20 +3319,20 @@ const pe = K(
|
|
|
3340
3319
|
}
|
|
3341
3320
|
);
|
|
3342
3321
|
function Sn() {
|
|
3343
|
-
const { setTheme: e } =
|
|
3322
|
+
const { setTheme: e } = xe();
|
|
3344
3323
|
return /* @__PURE__ */ s(et, { children: [
|
|
3345
3324
|
/* @__PURE__ */ a(tt, { asChild: !0, children: /* @__PURE__ */ s(Y, { variant: "outline", size: "icon", className: "relative", children: [
|
|
3346
|
-
/* @__PURE__ */ a(
|
|
3347
|
-
/* @__PURE__ */ a(
|
|
3325
|
+
/* @__PURE__ */ a(oe, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
|
|
3326
|
+
/* @__PURE__ */ a(ie, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
|
|
3348
3327
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle theme" })
|
|
3349
3328
|
] }) }),
|
|
3350
3329
|
/* @__PURE__ */ s(at, { align: "end", children: [
|
|
3351
3330
|
/* @__PURE__ */ s(Z, { onClick: () => e("light"), children: [
|
|
3352
|
-
/* @__PURE__ */ a(
|
|
3331
|
+
/* @__PURE__ */ a(oe, { className: "size-4" }),
|
|
3353
3332
|
"Light"
|
|
3354
3333
|
] }),
|
|
3355
3334
|
/* @__PURE__ */ s(Z, { onClick: () => e("dark"), children: [
|
|
3356
|
-
/* @__PURE__ */ a(
|
|
3335
|
+
/* @__PURE__ */ a(ie, { className: "size-4" }),
|
|
3357
3336
|
"Dark"
|
|
3358
3337
|
] }),
|
|
3359
3338
|
/* @__PURE__ */ s(Z, { onClick: () => e("system"), children: [
|
|
@@ -3364,29 +3343,29 @@ function Sn() {
|
|
|
3364
3343
|
] });
|
|
3365
3344
|
}
|
|
3366
3345
|
export {
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3346
|
+
rn as Accordion,
|
|
3347
|
+
sn as AccordionContent,
|
|
3348
|
+
nn as AccordionItem,
|
|
3349
|
+
on as AccordionTrigger,
|
|
3350
|
+
un as Alert,
|
|
3351
|
+
mn as AlertDescription,
|
|
3352
|
+
bn as AlertDialog,
|
|
3353
|
+
kn as AlertDialogAction,
|
|
3354
|
+
Cn as AlertDialogCancel,
|
|
3355
|
+
vn as AlertDialogContent,
|
|
3356
|
+
Nn as AlertDialogDescription,
|
|
3357
|
+
wn as AlertDialogFooter,
|
|
3358
|
+
xn as AlertDialogHeader,
|
|
3359
|
+
yn as AlertDialogTitle,
|
|
3360
|
+
hn as AlertDialogTrigger,
|
|
3361
|
+
fn as AlertTitle,
|
|
3383
3362
|
oa as Badge,
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3363
|
+
or as Breadcrumb,
|
|
3364
|
+
sr as BreadcrumbItem,
|
|
3365
|
+
dr as BreadcrumbLink,
|
|
3366
|
+
ir as BreadcrumbList,
|
|
3367
|
+
lr as BreadcrumbPage,
|
|
3368
|
+
cr as BreadcrumbSeparator,
|
|
3390
3369
|
Y as Button,
|
|
3391
3370
|
ia as Card,
|
|
3392
3371
|
ca as CardContent,
|
|
@@ -3394,7 +3373,7 @@ export {
|
|
|
3394
3373
|
ua as CardFooter,
|
|
3395
3374
|
sa as CardHeader,
|
|
3396
3375
|
da as CardTitle,
|
|
3397
|
-
|
|
3376
|
+
en as Checkbox,
|
|
3398
3377
|
vt as Command,
|
|
3399
3378
|
yt as CommandEmpty,
|
|
3400
3379
|
Nt as CommandGroup,
|
|
@@ -3414,124 +3393,125 @@ export {
|
|
|
3414
3393
|
ha as ContextMenuSubContent,
|
|
3415
3394
|
ba as ContextMenuSubTrigger,
|
|
3416
3395
|
ma as ContextMenuTrigger,
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3396
|
+
ur as Dialog,
|
|
3397
|
+
mr as DialogContent,
|
|
3398
|
+
hr as DialogDescription,
|
|
3399
|
+
gr as DialogFooter,
|
|
3400
|
+
pr as DialogHeader,
|
|
3401
|
+
br as DialogTitle,
|
|
3402
|
+
fr as DialogTrigger,
|
|
3424
3403
|
Je as Drawer,
|
|
3425
|
-
|
|
3404
|
+
Sa as DrawerClose,
|
|
3426
3405
|
Ye as DrawerContent,
|
|
3427
3406
|
_a as DrawerDescription,
|
|
3428
3407
|
Ta as DrawerFooter,
|
|
3429
3408
|
Qe as DrawerHeader,
|
|
3430
3409
|
Ze as DrawerTitle,
|
|
3431
|
-
|
|
3410
|
+
za as DrawerTrigger,
|
|
3432
3411
|
et as DropdownMenu,
|
|
3433
3412
|
Da as DropdownMenuCheckboxItem,
|
|
3434
3413
|
at as DropdownMenuContent,
|
|
3435
3414
|
Z as DropdownMenuItem,
|
|
3436
|
-
|
|
3415
|
+
Ia as DropdownMenuLabel,
|
|
3437
3416
|
Ma as DropdownMenuRadioGroup,
|
|
3438
|
-
|
|
3417
|
+
Ra as DropdownMenuRadioItem,
|
|
3439
3418
|
Pa as DropdownMenuSeparator,
|
|
3440
|
-
|
|
3441
|
-
|
|
3419
|
+
Aa as DropdownMenuShortcut,
|
|
3420
|
+
Ea as DropdownMenuSub,
|
|
3442
3421
|
La as DropdownMenuSubContent,
|
|
3443
3422
|
Oa as DropdownMenuSubTrigger,
|
|
3444
3423
|
tt as DropdownMenuTrigger,
|
|
3445
|
-
|
|
3446
|
-
|
|
3424
|
+
tn as EmptyState,
|
|
3425
|
+
pn as Icon,
|
|
3447
3426
|
rt as Input,
|
|
3448
|
-
|
|
3427
|
+
$a as Label,
|
|
3449
3428
|
Sn as ModeToggle,
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3429
|
+
Va as Pagination,
|
|
3430
|
+
Ga as PaginationContent,
|
|
3431
|
+
Fa as PaginationEllipsis,
|
|
3453
3432
|
Ha as PaginationItem,
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3433
|
+
he as PaginationLink,
|
|
3434
|
+
Wa as PaginationNext,
|
|
3435
|
+
qa as PaginationPrevious,
|
|
3457
3436
|
nt as Popover,
|
|
3458
3437
|
it as PopoverContent,
|
|
3459
3438
|
ot as PopoverTrigger,
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3439
|
+
cn as ResizableHandle,
|
|
3440
|
+
ln as ResizablePanel,
|
|
3441
|
+
dn as ResizablePanelGroup,
|
|
3442
|
+
Vt as ScrollArea,
|
|
3443
|
+
Gt as ScrollBar,
|
|
3444
|
+
ja as SearchInput,
|
|
3466
3445
|
Sr as SearchSelect,
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3446
|
+
vr as Select,
|
|
3447
|
+
Nr as SelectContent,
|
|
3448
|
+
xr as SelectGroup,
|
|
3449
|
+
Cr as SelectItem,
|
|
3450
|
+
kr as SelectLabel,
|
|
3451
|
+
zr as SelectSeparator,
|
|
3452
|
+
yr as SelectTrigger,
|
|
3453
|
+
wr as SelectValue,
|
|
3475
3454
|
ke as Separator,
|
|
3476
3455
|
Tt as Sheet,
|
|
3477
3456
|
Mt as SheetContent,
|
|
3478
3457
|
Pt as SheetDescription,
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3458
|
+
_r as SheetFooter,
|
|
3459
|
+
Rt as SheetHeader,
|
|
3460
|
+
It as SheetTitle,
|
|
3461
|
+
Tr as SheetTrigger,
|
|
3462
|
+
Mr as Sidebar,
|
|
3463
|
+
Br as SidebarContent,
|
|
3464
|
+
Or as SidebarFooter,
|
|
3465
|
+
jr as SidebarGroup,
|
|
3466
|
+
Vr as SidebarGroupAction,
|
|
3467
|
+
Gr as SidebarGroupContent,
|
|
3468
|
+
$r as SidebarGroupLabel,
|
|
3490
3469
|
Er as SidebarHeader,
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3470
|
+
Ar as SidebarInput,
|
|
3471
|
+
Pr as SidebarInset,
|
|
3472
|
+
Hr as SidebarMenu,
|
|
3494
3473
|
Fr as SidebarMenuAction,
|
|
3495
3474
|
Kr as SidebarMenuBadge,
|
|
3496
|
-
|
|
3497
|
-
|
|
3475
|
+
Wr as SidebarMenuButton,
|
|
3476
|
+
qr as SidebarMenuItem,
|
|
3498
3477
|
Ur as SidebarMenuSkeleton,
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3478
|
+
Jr as SidebarMenuSub,
|
|
3479
|
+
Yr as SidebarMenuSubButton,
|
|
3480
|
+
Xr as SidebarMenuSubItem,
|
|
3481
|
+
Dr as SidebarProvider,
|
|
3503
3482
|
Ir as SidebarRail,
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3483
|
+
Lr as SidebarSeparator,
|
|
3484
|
+
Rr as SidebarTrigger,
|
|
3485
|
+
le as Skeleton,
|
|
3486
|
+
zn as Spinner,
|
|
3487
|
+
Zr as StackList,
|
|
3488
|
+
Qr as StackListItem,
|
|
3489
|
+
gn as Switch,
|
|
3511
3490
|
Xa as Table,
|
|
3512
3491
|
ft as TableBody,
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3492
|
+
er as TableCaption,
|
|
3493
|
+
ue as TableCell,
|
|
3494
|
+
Za as TableHead,
|
|
3495
|
+
Qa as TableHeadRow,
|
|
3516
3496
|
Ya as TableHeader,
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3497
|
+
ce as TableRow,
|
|
3498
|
+
tr as Tabs,
|
|
3499
|
+
nr as TabsContent,
|
|
3500
|
+
ar as TabsList,
|
|
3501
|
+
rr as TabsTrigger,
|
|
3502
|
+
Ba as TextArea,
|
|
3503
|
+
Ka as ThemeProvider,
|
|
3504
|
+
Ua as Toaster,
|
|
3525
3505
|
mt as Tooltip,
|
|
3526
3506
|
gt as TooltipContent,
|
|
3527
3507
|
Ne as TooltipProvider,
|
|
3528
3508
|
pt as TooltipTrigger,
|
|
3529
|
-
|
|
3509
|
+
an as Tree,
|
|
3530
3510
|
Ja as VirtualizedTableBody,
|
|
3531
3511
|
n as cn,
|
|
3532
3512
|
na as formatDate,
|
|
3533
3513
|
ra as toTitleCase,
|
|
3534
|
-
|
|
3514
|
+
Dn as toast,
|
|
3535
3515
|
Q as useSidebar,
|
|
3536
|
-
|
|
3516
|
+
xe as useTheme
|
|
3537
3517
|
};
|