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