@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.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 l from "react";
3
- import A, { createContext as _e, useState as De, useEffect as Me, useContext as Ie } from "react";
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 K } from "class-variance-authority";
6
- import { clsx as Re } from "clsx";
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 U, CircleIcon as ge, ChevronRightIcon as ae, Search as Ee, MoreHorizontalIcon as Ae, ChevronLeftIcon as Oe, EyeIcon as Le, ChevronRight as be, XIcon as he, SearchIcon as $e, ChevronDownIcon as re, ChevronsUpDownIcon as Be, ChevronUpIcon as je, PanelLeftIcon as We, GripVerticalIcon as Ve, Sun as ie, Moon as se, Monitor as He } from "lucide-react";
10
- import { Drawer as $ } from "vaul";
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 Ge from "@radix-ui/react-label";
13
- import * as q from "@radix-ui/react-popover";
14
- import { Toaster as Fe } from "sonner";
15
- import { toast as _n } from "sonner";
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 V from "@radix-ui/react-tooltip";
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 Ke from "@radix-ui/react-separator";
22
- import * as F from "@radix-ui/react-scroll-area";
23
- import * as de from "@radix-ui/react-checkbox";
24
- import * as E from "@radix-ui/react-accordion";
25
- import Ue from "use-resize-observer";
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 le from "@radix-ui/react-switch";
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(Re(e));
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 u = Math.floor(d / 24);
46
- if (u < 30)
47
- return `${u} day${u === 1 ? "" : "s"} ago`;
48
- const f = Math.floor(u / 30);
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 qe = K(
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(qe({ variant: t }), e),
80
+ className: n(Ue({ variant: t }), e),
81
81
  ...o
82
82
  }
83
83
  );
84
84
  }
85
- const X = K(
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(U, { className: "size-4" }) }) }),
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(ge, { className: "size-2 fill-current" }) }) }),
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($.Root, { "data-slot": "drawer", ...e });
394
+ return /* @__PURE__ */ a(B.Root, { "data-slot": "drawer", ...e });
395
395
  }
396
- function Sa({
396
+ function za({
397
397
  ...e
398
398
  }) {
399
- return /* @__PURE__ */ a($.Trigger, { "data-slot": "drawer-trigger", ...e });
399
+ return /* @__PURE__ */ a(B.Trigger, { "data-slot": "drawer-trigger", ...e });
400
400
  }
401
- function za({
401
+ function Sa({
402
402
  ...e
403
403
  }) {
404
- return /* @__PURE__ */ a($.Close, { "data-slot": "drawer-close", ...e });
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
- $.Overlay,
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
- $.Content,
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
- $.Title,
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
- $.Description,
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(U, { className: "size-4" }) }) }),
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 Ia({
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(ge, { className: "size-2 fill-current" }) }) }),
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 Ra({
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 Ea({
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 Aa({
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 $a({ className: e, ...t }) {
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 Ba({
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(Ee, { className: "size-4 text-muted-foreground mr-2" }),
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 ja({
761
+ function $a({
762
762
  className: e,
763
763
  ...t
764
764
  }) {
765
765
  return /* @__PURE__ */ a(
766
- Ge.Root,
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 Wa({ className: e, ...t }) {
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 Va({
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 ve({
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 Ga({
828
+ function qa({
829
829
  className: e,
830
830
  ...t
831
831
  }) {
832
832
  return /* @__PURE__ */ s(
833
- ve,
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 Fa({
846
+ function Wa({
847
847
  className: e,
848
848
  ...t
849
849
  }) {
850
850
  return /* @__PURE__ */ s(
851
- ve,
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 Ka({
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(Ae, { className: "size-4" }),
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(q.Root, { "data-slot": "popover", ...e });
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(q.Trigger, { "data-slot": "popover-trigger", ...e });
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(q.Portal, { children: /* @__PURE__ */ a(
899
- q.Content,
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 ce({ className: e, ...t }) {
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
- }, xe = _e(st);
926
- function Ua({
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 u = {
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(xe.Provider, { ...o, value: u, children: e });
950
+ return /* @__PURE__ */ a(ve.Provider, { ...o, value: c, children: e });
951
951
  }
952
- const we = () => {
953
- const e = Ie(xe);
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
- }, qa = ({ className: e, ...t }) => {
958
- const { theme: r = "system" } = we();
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
- Fe,
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
- }, ye = l.createContext(null);
973
- function oe() {
974
- const e = l.useContext(ye);
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: u
987
- }) {
988
- const f = l.useRef(null), [m, c] = l.useState(0), [y, k] = l.useState(r), g = typeof t == "number", N = l.useRef(null);
989
- l.useEffect(() => k(r), [r]), l.useEffect(() => {
990
- const z = f.current;
991
- if (!z) return;
992
- let C = !1;
993
- function S() {
994
- C || (C = !0, requestAnimationFrame(() => {
995
- c(this.scrollTop), C = !1;
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 z.addEventListener("scroll", S, { passive: !0 }), () => z.removeEventListener("scroll", S);
998
+ return S.addEventListener("scroll", C, { passive: !0 }), () => S.removeEventListener("scroll", C);
999
999
  }, []);
1000
- const p = l.useCallback(
1001
- (z) => typeof t == "function" ? t({ index: z }) : t,
1000
+ const b = u.useCallback(
1001
+ (S) => typeof t == "function" ? t({ index: S }) : t,
1002
1002
  [t]
1003
- ), x = l.useCallback(() => {
1004
- if (!g && (!N.current || N.current.length !== e + 1)) {
1005
- const z = new Array(e + 1);
1006
- z[0] = 0;
1007
- for (let C = 0; C < e; C++)
1008
- z[C + 1] = z[C] + p(C);
1009
- N.current = z;
1010
- }
1011
- }, [e, p, g]), v = l.useCallback(
1012
- (z) => g ? t * z : (x(), N.current[z]),
1013
- [t, x, g]
1014
- ), b = l.useCallback(() => g ? t * e : (x(), N.current[e]), [t, e, x, g]), h = l.useCallback(() => {
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
- x();
1019
- const z = N.current;
1020
- let C = 0, S = e - 1, w;
1021
- for (; C <= S; )
1022
- w = C + S >> 1, z[w + 1] < m ? C = w + 1 : S = w - 1;
1023
- return Math.max(0, C - d);
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, x, g]), I = l.useCallback(
1026
- (z) => {
1025
+ }, [m, e, t, d, z, g]), A = u.useCallback(
1026
+ (S) => {
1027
1027
  if (g) {
1028
- const C = t;
1028
+ const k = t;
1029
1029
  return Math.min(
1030
1030
  e - 1,
1031
- Math.floor((m + y) / C) + d
1031
+ Math.floor((m + w) / k) + d
1032
1032
  );
1033
1033
  } else {
1034
- x();
1035
- const C = N.current;
1036
- let S = z, w = e - 1, P;
1037
- for (; S <= w; )
1038
- P = S + w >> 1, C[P] < m + y ? S = P + 1 : w = P - 1;
1039
- return Math.min(e - 1, S + d);
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, y, e, t, d, x, g]
1043
- ), R = b(), B = h(), j = I(B), W = v(B), G = Math.max(0, R - v(j + 1));
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: y,
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
- W > 0 && /* @__PURE__ */ a(ue, { "aria-hidden": !0, style: { height: W }, children: /* @__PURE__ */ a(fe, { colSpan: 9999 }) }),
1056
- Array.from({ length: j - B + 1 }, (z, C) => {
1057
- const S = B + C, P = { height: p(S) };
1058
- return u(S, P);
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
- G > 0 && /* @__PURE__ */ a(ue, { "aria-hidden": !0, style: { height: G }, children: /* @__PURE__ */ a(fe, { colSpan: 9999 }) })
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] = l.useState([]), [o, i] = l.useState(!1), [d, u] = l.useState(/* @__PURE__ */ new Map()), [f, m] = l.useState(!1), [c, y] = l.useState(""), k = l.useCallback((p, x) => {
1067
- u((v) => {
1068
- const b = new Map(v);
1069
- return b.set(p, x), b;
1070
- });
1071
- }, []), g = l.useCallback((p) => {
1072
- y(p), m(!0);
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(ye.Provider, { value: N, children: e });
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(u, f) {
1107
- const m = u.match(d);
1108
- if (!m) return u;
1109
- let c = 0;
1110
- const y = [];
1111
- return m.forEach((k, g) => {
1112
- const N = u.indexOf(k, c);
1113
- N > c && y.push(
1114
- /* @__PURE__ */ a("span", { className: "", children: u.slice(c, N) }, `ws-${g}`)
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 p = "";
1117
- /^"/.test(k) ? /:$/.test(k) ? p = i.key : p = i.string : /true|false/.test(k) ? p = i.boolean : /null/.test(k) ? p = i.null : /[{}[\],:]/.test(k) ? p = i.punctuation : /^-?\d/.test(k) && (p = i.number), y.push(
1118
- /* @__PURE__ */ a("span", { className: p, children: k }, `tok-${g}`)
1119
- ), c = N + k.length;
1120
- }), c < u.length && y.push(
1121
- /* @__PURE__ */ a("span", { className: "", children: u.slice(c) }, "end")
1122
- ), y;
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((u, f) => /* @__PURE__ */ a("div", { className: "leading-relaxed", children: t(u, f) }, f)) }) });
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 = oe(), t = () => typeof e.drawerContent == "string" && lt(e.drawerContent) ? ct(e.drawerContent) : /* @__PURE__ */ a("div", { className: "whitespace-pre-wrap break-words", children: e.drawerContent });
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
- return /* @__PURE__ */ a(dt, { children: /* @__PURE__ */ s(
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 ue({ className: e, style: t, ...r }) {
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 w-full",
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 Qa({
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-[120px] max-w-[500px]",
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 fe({ className: e, children: t, ...r }) {
1231
- const o = oe(), i = l.useRef(null), d = l.useRef(null), [u, f] = l.useState(-1), [m, c] = l.useState(!1), [y, k] = l.useState(!1);
1232
- l.useEffect(() => {
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 p = () => {
1260
- const v = d.current, b = i.current;
1261
- if (v && b) {
1262
- const h = v.scrollWidth > v.clientWidth;
1263
- k(h);
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
- p();
1267
- const x = new ResizeObserver(() => {
1268
- p();
1248
+ l();
1249
+ const w = new ResizeObserver(() => {
1250
+ l();
1269
1251
  });
1270
- return x.observe(i.current), x.observe(d.current), () => {
1271
- x.disconnect();
1252
+ return w.observe(i.current), w.observe(d.current), () => {
1253
+ w.disconnect();
1272
1254
  };
1273
1255
  }
1274
1256
  }, [t]);
1275
- const g = o && u >= 0 && o.isHeaderWidthsSet ? o.columnWidths[u] : void 0, N = () => {
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-[120px] overflow-hidden whitespace-nowrap text-ellipsis",
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
- y && /* @__PURE__ */ a(
1276
+ c && /* @__PURE__ */ a(
1298
1277
  Y,
1299
1278
  {
1300
- onClick: N,
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 Za({ className: e, ...t }) {
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 er({
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 tr({
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 ar({
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 rr({
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
- V.Provider,
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(V.Root, { "data-slot": "tooltip", ...e }) });
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(V.Trigger, { "data-slot": "tooltip-trigger", ...e });
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(V.Portal, { children: /* @__PURE__ */ s(
1403
- V.Content,
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(V.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
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 nr({ ...e }) {
1398
+ function or({ ...e }) {
1420
1399
  return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
1421
1400
  }
1422
- function or({ className: e, ...t }) {
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 ir({ className: e, ...t }) {
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 sr({
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 dr({ className: e, ...t }) {
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 lr({
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(be, {})
1464
+ children: e ?? /* @__PURE__ */ a(ge, {})
1486
1465
  }
1487
1466
  );
1488
1467
  }
1489
- function cr({
1468
+ function ur({
1490
1469
  ...e
1491
1470
  }) {
1492
1471
  return /* @__PURE__ */ a(_.Root, { "data-slot": "dialog", ...e });
1493
1472
  }
1494
- function ur({
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 fr({
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(he, {}),
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 mr({ className: e, ...t }) {
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 pr({ className: e, ...t }) {
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 gr({
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 br({
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 = l.useRef(null);
1626
- return l.useEffect(() => {
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 u = new Event("input", { bubbles: !0 });
1631
- r.current.dispatchEvent(u);
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($e, { className: "size-4 shrink-0 opacity-50" }),
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 hr({
1698
+ function vr({
1720
1699
  ...e
1721
1700
  }) {
1722
1701
  return /* @__PURE__ */ a(D.Root, { "data-slot": "select", ...e });
1723
1702
  }
1724
- function vr({
1703
+ function xr({
1725
1704
  ...e
1726
1705
  }) {
1727
1706
  return /* @__PURE__ */ a(D.Group, { "data-slot": "select-group", ...e });
1728
1707
  }
1729
- function xr({
1708
+ function wr({
1730
1709
  ...e
1731
1710
  }) {
1732
1711
  return /* @__PURE__ */ a(D.Value, { "data-slot": "select-value", ...e });
1733
1712
  }
1734
- function wr({
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 yr({
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(St, {})
1765
+ /* @__PURE__ */ a(zt, {})
1787
1766
  ]
1788
1767
  }
1789
1768
  ) });
1790
1769
  }
1791
- function Nr({
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 kr({
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(U, { className: "size-4" }) }) }),
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 Cr({
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(je, { className: "size-4" })
1830
+ children: /* @__PURE__ */ a($e, { className: "size-4" })
1852
1831
  }
1853
1832
  );
1854
1833
  }
1855
- function St({
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: u,
1858
+ onValueChange: c,
1880
1859
  notFoundMessage: f,
1881
1860
  buttonClassName: m,
1882
- contentClassName: c,
1883
- disabled: y = !1,
1884
- extraOptions: k,
1861
+ contentClassName: l,
1862
+ disabled: w = !1,
1863
+ extraOptions: N,
1885
1864
  side: g = "bottom",
1886
- align: N = "start",
1887
- onlyIcon: p = !1,
1888
- label: x,
1889
- inputProps: v,
1890
- buttonProps: b
1865
+ align: p = "start",
1866
+ onlyIcon: b = !1,
1867
+ label: z,
1868
+ inputProps: y,
1869
+ buttonProps: v
1891
1870
  }) {
1892
- const [h, I] = l.useState(!1), [R, B] = l.useState(i || ""), j = o ?? R, [W, G] = l.useState(""), z = l.useMemo(
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
- (w) => w.label.toLowerCase().includes(W.toLowerCase())
1873
+ (x) => x.label.toLowerCase().includes(V.toLowerCase())
1895
1874
  ),
1896
- [e, W]
1897
- ), C = (w) => {
1898
- const P = w === j ? "" : w;
1899
- o === void 0 && B(P), d?.(P), u?.(P), I(!1);
1900
- }, S = e.find((w) => w.value === j);
1901
- return /* @__PURE__ */ s(nt, { open: h, onOpenChange: (w) => {
1902
- I(w), w || G("");
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": p
1894
+ "has-[>svg]:px-2 px-2": b
1916
1895
  }
1917
1896
  ),
1918
- disabled: y,
1919
- ...b,
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": !S && !!t,
1928
- "min-w-0 truncate": !p
1906
+ "text-muted-foreground": !C && !!t,
1907
+ "min-w-0 truncate": !b
1929
1908
  }
1930
1909
  ),
1931
- children: S ? /* @__PURE__ */ a(te, { children: p ? S.icon : /* @__PURE__ */ s(te, { children: [
1932
- S.icon,
1933
- /* @__PURE__ */ a("p", { className: "grow truncate", children: S.label }),
1934
- S.rightIcon
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(Be, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
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", c), side: g, align: N, children: /* @__PURE__ */ s(vt, { children: [
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: W,
1948
- onValueChange: G,
1949
- ...v
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 ${x?.toLowerCase() ?? "option"} found.` }),
1932
+ /* @__PURE__ */ a(yt, { children: f || `No ${z?.toLowerCase() ?? "option"} found.` }),
1954
1933
  /* @__PURE__ */ s(Nt, { children: [
1955
- z.map((w) => /* @__PURE__ */ s(
1934
+ S.map((x) => /* @__PURE__ */ s(
1956
1935
  kt,
1957
1936
  {
1958
- value: w.value,
1959
- onSelect: (P) => C(P),
1937
+ value: x.value,
1938
+ onSelect: (I) => k(I),
1960
1939
  className: "break-all",
1961
1940
  children: [
1962
1941
  /* @__PURE__ */ a(
1963
- U,
1942
+ K,
1964
1943
  {
1965
1944
  className: n(
1966
1945
  "mr-2 h-4 w-4",
1967
- j === w.value ? "opacity-100" : "opacity-0"
1946
+ $ === x.value ? "opacity-100" : "opacity-0"
1968
1947
  )
1969
1948
  }
1970
1949
  ),
1971
- w.icon,
1972
- /* @__PURE__ */ a("p", { className: "grow truncate", children: w.label }),
1973
- w.rightIcon
1950
+ x.icon,
1951
+ /* @__PURE__ */ a("p", { className: "grow truncate", children: x.label }),
1952
+ x.rightIcon
1974
1953
  ]
1975
1954
  },
1976
- w.value
1955
+ x.value
1977
1956
  )),
1978
- k
1957
+ N
1979
1958
  ] })
1980
1959
  ] })
1981
1960
  ] }) })
1982
1961
  ] });
1983
1962
  }
1984
1963
  const ee = 768;
1985
- function zt() {
1986
- const [e, t] = l.useState(void 0);
1987
- return l.useEffect(() => {
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
- Ke.Root,
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 zr({
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(he, { className: "size-4" }),
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 It({ className: e, ...t }) {
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 Tr({ className: e, ...t }) {
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 Rt({
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 Et = "sidebar_state", At = 3600 * 24 * 7, Ot = "16rem", Lt = "18rem", $t = "3rem", Bt = "b", Ce = l.createContext(null);
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 = l.useContext(Ce);
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 _r({
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
- ...u
2115
+ ...c
2137
2116
  }) {
2138
- const f = zt(), [m, c] = l.useState(!1), [y, k] = l.useState(e), g = t ?? y, N = l.useCallback(
2139
- (b) => {
2140
- const h = typeof b == "function" ? b(g) : b;
2141
- r ? r(h) : k(h), document.cookie = `${Et}=${h}; path=/; max-age=${At}`;
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
- ), p = l.useCallback(() => f ? c((b) => !b) : N((b) => !b), [f, N, c]);
2145
- l.useEffect(() => {
2146
- const b = (h) => {
2147
- h.key === Bt && (h.metaKey || h.ctrlKey) && (h.preventDefault(), p());
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", b), () => window.removeEventListener("keydown", b);
2150
- }, [p]);
2151
- const x = g ? "expanded" : "collapsed", v = l.useMemo(
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: x,
2132
+ state: z,
2154
2133
  open: g,
2155
- setOpen: N,
2134
+ setOpen: p,
2156
2135
  isMobile: f,
2157
2136
  openMobile: m,
2158
- setOpenMobile: c,
2159
- toggleSidebar: p
2137
+ setOpenMobile: l,
2138
+ toggleSidebar: b
2160
2139
  }),
2161
- [x, g, N, f, m, c, p]
2140
+ [z, g, p, f, m, l, b]
2162
2141
  );
2163
- return /* @__PURE__ */ a(Ce.Provider, { value: v, children: /* @__PURE__ */ a(Ne, { delayDuration: 0, children: /* @__PURE__ */ a(
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": $t,
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
- ...u,
2155
+ ...c,
2177
2156
  children: d
2178
2157
  }
2179
2158
  ) }) });
2180
2159
  }
2181
- function Dr({
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: u, state: f, openMobile: m, setOpenMobile: c } = Q();
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
- ) : u ? /* @__PURE__ */ a(Tt, { open: m, onOpenChange: c, ...d, children: /* @__PURE__ */ s(
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(It, { className: "sr-only", children: [
2214
- /* @__PURE__ */ a(Rt, { children: "Sidebar" }),
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 Mr({
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(We, {}),
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 Rr({ className: e, ...t }) {
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 Pr({
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 Ar({ className: e, ...t }) {
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 Or({
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 Lr({ className: e, ...t }) {
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 $r({ className: e, collapsible: t, ...r }) {
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 Br({
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 jr({
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 Wr({
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 Vr({ className: e, ...t }) {
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 Hr({ className: e, ...t }) {
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 jt = K(
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 Gr({
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
- ...u
2499
+ ...c
2521
2500
  }) {
2522
- const f = e ? L : "button", { isMobile: m, state: c } = Q(), y = /* @__PURE__ */ a(
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(jt({ variant: r, size: o }), d),
2530
- ...u
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: y }),
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: c !== "collapsed" || m,
2521
+ hidden: l !== "collapsed" || m,
2543
2522
  ...i
2544
2523
  }
2545
2524
  )
2546
- ] })) : y;
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 = l.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
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
- ce,
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
- ce,
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 qr({ className: e, ...t }) {
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 Jr({
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 Xr({
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 Wt({
2665
+ function Vt({
2687
2666
  className: e,
2688
2667
  children: t,
2689
2668
  ...r
2690
2669
  }) {
2691
2670
  return /* @__PURE__ */ s(
2692
- F.Root,
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
- F.Viewport,
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(Vt, {}),
2707
- /* @__PURE__ */ a(F.Corner, {})
2685
+ /* @__PURE__ */ a(Gt, {}),
2686
+ /* @__PURE__ */ a(W.Corner, {})
2708
2687
  ]
2709
2688
  }
2710
2689
  );
2711
2690
  }
2712
- function Vt({
2691
+ function Gt({
2713
2692
  className: e,
2714
2693
  orientation: t = "vertical",
2715
2694
  ...r
2716
2695
  }) {
2717
2696
  return /* @__PURE__ */ a(
2718
- F.ScrollAreaScrollbar,
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
- F.ScrollAreaThumb,
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 Yr({
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 Qr({
2731
+ function Zr({
2753
2732
  children: e,
2754
2733
  separatorClassName: t = "w-full"
2755
2734
  }) {
2756
- const r = A.Children.toArray(e);
2757
- return /* @__PURE__ */ a("div", { className: "flex flex-col", children: r.map((o, i) => /* @__PURE__ */ s(A.Fragment, { children: [
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 Zr({
2741
+ function en({
2763
2742
  className: e,
2764
2743
  ...t
2765
2744
  }) {
2766
2745
  return /* @__PURE__ */ a(
2767
- de.Root,
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
- de.Indicator,
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(U, { className: "size-3.5" })
2759
+ children: /* @__PURE__ */ a(K, { className: "size-3.5" })
2781
2760
  }
2782
2761
  )
2783
2762
  }
2784
2763
  );
2785
2764
  }
2786
- const en = ({
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
- ) }), tn = A.forwardRef(({
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: u,
2791
+ className: c,
2813
2792
  ...f
2814
2793
  }, m) => {
2815
- const [c, y] = A.useState(t), k = A.useCallback((v) => {
2816
- y(v?.id), r && r(v);
2817
- }, [r]), g = A.useMemo(() => {
2818
- const v = [];
2819
- function b(h, I) {
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
- v.push(h[R].id);
2824
- else if (I) {
2825
- if (v.push(h[R].id), b(h[R], I))
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 || v.pop();
2806
+ o || y.pop();
2828
2807
  }
2829
- h[R].children && b(h[R].children, I);
2808
+ h[R].children && v(h[R].children, A);
2830
2809
  }
2831
2810
  else {
2832
- if (I && h.id === I)
2811
+ if (A && h.id === A)
2833
2812
  return !0;
2834
2813
  if (h.children)
2835
- return o && v.push(h.id), b(h.children, I);
2814
+ return o && y.push(h.id), v(h.children, A);
2836
2815
  }
2837
2816
  }
2838
- return (o || t) && b(e, t), v;
2839
- }, [e, t, o]), { ref: N, width: p, height: x } = Ue();
2840
- return /* @__PURE__ */ a("div", { ref: N, className: n("overflow-hidden", u), children: /* @__PURE__ */ a(Wt, { style: { width: p, height: x }, children: /* @__PURE__ */ a("div", { className: "relative p-2", children: /* @__PURE__ */ a(
2841
- Se,
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: c,
2846
- handleSelectChange: k,
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
- }), Se = A.forwardRef(({ className: e, data: t, selectedItemId: r, handleSelectChange: o, expandedItemIds: i, FolderIcon: d, ItemIcon: u, ...f }, m) => /* @__PURE__ */ a("div", { ref: m, role: "tree", className: e, ...f, children: /* @__PURE__ */ a("ul", { children: t instanceof Array ? t.map((c) => /* @__PURE__ */ a("li", { children: c.children ? /* @__PURE__ */ a(E.Root, { type: "multiple", defaultValue: i, children: /* @__PURE__ */ s(E.Item, { value: c.id, children: [
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
- ze,
2834
+ Se,
2856
2835
  {
2857
- "aria-label": c.name,
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 === c.id && "before:opacity-100 before:bg-accent text-accent-foreground before:border-l-2 before:border-l-accent-foreground/50 dark:before:border-0"
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(c),
2841
+ onClick: () => o(l),
2863
2842
  children: [
2864
- c.icon && /* @__PURE__ */ a(
2865
- c.icon,
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
- !c.icon && d && /* @__PURE__ */ a(
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: c.name })
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
- Se,
2862
+ ze,
2884
2863
  {
2885
- data: c.children ? c.children : c,
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: u
2869
+ ItemIcon: c
2891
2870
  }
2892
2871
  ) })
2893
2872
  ] }) }) : /* @__PURE__ */ a(
2894
- me,
2873
+ fe,
2895
2874
  {
2896
- item: c,
2897
- isSelected: r === c.id,
2898
- onClick: () => o(c),
2899
- Icon: u
2875
+ item: l,
2876
+ isSelected: r === l.id,
2877
+ onClick: () => o(l),
2878
+ Icon: c
2900
2879
  }
2901
- ) }, c.id)) : /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
2902
- me,
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: u
2886
+ Icon: c
2908
2887
  }
2909
- ) }) }) })), me = A.forwardRef(({ className: e, item: t, isSelected: r, Icon: o, ...i }, d) => /* @__PURE__ */ s(
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
- )), ze = A.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ a(E.Header, { children: /* @__PURE__ */ s(
2930
- E.Trigger,
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(be, { className: "h-4 w-4 shrink-0 transition-transform duration-200 text-accent-foreground/50 ml-auto" })
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
- ze.displayName = E.Trigger.displayName;
2945
- const Te = A.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ a(
2946
- E.Content,
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 = E.Content.displayName;
2958
- function an({
2936
+ Te.displayName = P.Content.displayName;
2937
+ function rn({
2959
2938
  ...e
2960
2939
  }) {
2961
- return /* @__PURE__ */ a(E.Root, { "data-slot": "accordion", ...e });
2940
+ return /* @__PURE__ */ a(P.Root, { "data-slot": "accordion", ...e });
2962
2941
  }
2963
- function rn({
2942
+ function nn({
2964
2943
  className: e,
2965
2944
  ...t
2966
2945
  }) {
2967
2946
  return /* @__PURE__ */ a(
2968
- E.Item,
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 nn({
2955
+ function on({
2977
2956
  className: e,
2978
2957
  children: t,
2979
2958
  ...r
2980
2959
  }) {
2981
- return /* @__PURE__ */ a(E.Header, { className: "flex", children: /* @__PURE__ */ s(
2982
- E.Trigger,
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 on({
2976
+ function sn({
2998
2977
  className: e,
2999
2978
  children: t,
3000
2979
  ...r
3001
2980
  }) {
3002
2981
  return /* @__PURE__ */ a(
3003
- E.Content,
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 sn({
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 dn({
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 ln({
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(Ve, { className: "size-2.5" }) })
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 = K(
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 cn({
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 un({ className: e, ...t }) {
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 fn({
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 mn({
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: l.cloneElement(e, {
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 pn({
3120
+ function gn({
3142
3121
  className: e,
3143
3122
  ...t
3144
3123
  }) {
3145
3124
  return /* @__PURE__ */ a(
3146
- le.Root,
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
- le.Thumb,
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 gn({
3145
+ function bn({
3167
3146
  ...e
3168
3147
  }) {
3169
3148
  return /* @__PURE__ */ a(O.Root, { "data-slot": "alert-dialog", ...e });
3170
3149
  }
3171
- function bn({
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 Gt({
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 Ft({
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 hn({
3176
+ function vn({
3198
3177
  className: e,
3199
3178
  ...t
3200
3179
  }) {
3201
- return /* @__PURE__ */ s(Gt, { children: [
3202
- /* @__PURE__ */ a(Ft, {}),
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 vn({
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 xn({
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 wn({
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 yn({
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 Nn({
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 kn({
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 pe = K(
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
- ), Cn = ({ className: e, variant: t, size: r = "default" }) => /* @__PURE__ */ s(
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
- pe(typeof r == "string" ? { variant: t, size: r } : { variant: t }),
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 } = we();
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(ie, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3347
- /* @__PURE__ */ a(se, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
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(ie, { className: "size-4" }),
3331
+ /* @__PURE__ */ a(oe, { className: "size-4" }),
3353
3332
  "Light"
3354
3333
  ] }),
3355
3334
  /* @__PURE__ */ s(Z, { onClick: () => e("dark"), children: [
3356
- /* @__PURE__ */ a(se, { className: "size-4" }),
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
- an as Accordion,
3368
- on as AccordionContent,
3369
- rn as AccordionItem,
3370
- nn as AccordionTrigger,
3371
- cn as Alert,
3372
- fn as AlertDescription,
3373
- gn as AlertDialog,
3374
- Nn as AlertDialogAction,
3375
- kn as AlertDialogCancel,
3376
- hn as AlertDialogContent,
3377
- yn as AlertDialogDescription,
3378
- xn as AlertDialogFooter,
3379
- vn as AlertDialogHeader,
3380
- wn as AlertDialogTitle,
3381
- bn as AlertDialogTrigger,
3382
- un as AlertTitle,
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
- nr as Breadcrumb,
3385
- ir as BreadcrumbItem,
3386
- sr as BreadcrumbLink,
3387
- or as BreadcrumbList,
3388
- dr as BreadcrumbPage,
3389
- lr as BreadcrumbSeparator,
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
- Zr as Checkbox,
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
- cr as Dialog,
3418
- fr as DialogContent,
3419
- br as DialogDescription,
3420
- pr as DialogFooter,
3421
- mr as DialogHeader,
3422
- gr as DialogTitle,
3423
- ur as DialogTrigger,
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
- za as DrawerClose,
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
- Sa as DrawerTrigger,
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
- Ra as DropdownMenuLabel,
3415
+ Ia as DropdownMenuLabel,
3437
3416
  Ma as DropdownMenuRadioGroup,
3438
- Ia as DropdownMenuRadioItem,
3417
+ Ra as DropdownMenuRadioItem,
3439
3418
  Pa as DropdownMenuSeparator,
3440
- Ea as DropdownMenuShortcut,
3441
- Aa as DropdownMenuSub,
3419
+ Aa as DropdownMenuShortcut,
3420
+ Ea as DropdownMenuSub,
3442
3421
  La as DropdownMenuSubContent,
3443
3422
  Oa as DropdownMenuSubTrigger,
3444
3423
  tt as DropdownMenuTrigger,
3445
- en as EmptyState,
3446
- mn as Icon,
3424
+ tn as EmptyState,
3425
+ pn as Icon,
3447
3426
  rt as Input,
3448
- ja as Label,
3427
+ $a as Label,
3449
3428
  Sn as ModeToggle,
3450
- Wa as Pagination,
3451
- Va as PaginationContent,
3452
- Ka as PaginationEllipsis,
3429
+ Va as Pagination,
3430
+ Ga as PaginationContent,
3431
+ Fa as PaginationEllipsis,
3453
3432
  Ha as PaginationItem,
3454
- ve as PaginationLink,
3455
- Fa as PaginationNext,
3456
- Ga as PaginationPrevious,
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
- ln as ResizableHandle,
3461
- dn as ResizablePanel,
3462
- sn as ResizablePanelGroup,
3463
- Wt as ScrollArea,
3464
- Vt as ScrollBar,
3465
- Ba as SearchInput,
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
- hr as Select,
3468
- yr as SelectContent,
3469
- vr as SelectGroup,
3470
- kr as SelectItem,
3471
- Nr as SelectLabel,
3472
- Cr as SelectSeparator,
3473
- wr as SelectTrigger,
3474
- xr as SelectValue,
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
- Tr as SheetFooter,
3480
- It as SheetHeader,
3481
- Rt as SheetTitle,
3482
- zr as SheetTrigger,
3483
- Dr as Sidebar,
3484
- Lr as SidebarContent,
3485
- Ar as SidebarFooter,
3486
- $r as SidebarGroup,
3487
- jr as SidebarGroupAction,
3488
- Wr as SidebarGroupContent,
3489
- Br as SidebarGroupLabel,
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
- Pr as SidebarInput,
3492
- Rr as SidebarInset,
3493
- Vr as SidebarMenu,
3470
+ Ar as SidebarInput,
3471
+ Pr as SidebarInset,
3472
+ Hr as SidebarMenu,
3494
3473
  Fr as SidebarMenuAction,
3495
3474
  Kr as SidebarMenuBadge,
3496
- Gr as SidebarMenuButton,
3497
- Hr as SidebarMenuItem,
3475
+ Wr as SidebarMenuButton,
3476
+ qr as SidebarMenuItem,
3498
3477
  Ur as SidebarMenuSkeleton,
3499
- qr as SidebarMenuSub,
3500
- Xr as SidebarMenuSubButton,
3501
- Jr as SidebarMenuSubItem,
3502
- _r as SidebarProvider,
3478
+ Jr as SidebarMenuSub,
3479
+ Yr as SidebarMenuSubButton,
3480
+ Xr as SidebarMenuSubItem,
3481
+ Dr as SidebarProvider,
3503
3482
  Ir as SidebarRail,
3504
- Or as SidebarSeparator,
3505
- Mr as SidebarTrigger,
3506
- ce as Skeleton,
3507
- Cn as Spinner,
3508
- Qr as StackList,
3509
- Yr as StackListItem,
3510
- pn as Switch,
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
- Za as TableCaption,
3514
- fe as TableCell,
3515
- Qa as TableHead,
3492
+ er as TableCaption,
3493
+ ue as TableCell,
3494
+ Za as TableHead,
3495
+ Qa as TableHeadRow,
3516
3496
  Ya as TableHeader,
3517
- ue as TableRow,
3518
- er as Tabs,
3519
- rr as TabsContent,
3520
- tr as TabsList,
3521
- ar as TabsTrigger,
3522
- $a as TextArea,
3523
- Ua as ThemeProvider,
3524
- qa as Toaster,
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
- tn as Tree,
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
- _n as toast,
3514
+ Dn as toast,
3535
3515
  Q as useSidebar,
3536
- we as useTheme
3516
+ xe as useTheme
3537
3517
  };