@clidey/ux 0.17.0 → 0.18.1

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,40 +1,40 @@
1
1
  import { jsx as a, jsxs as i, Fragment as W } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
- import k, { Fragment as he, createContext as ve, useState as xe, useEffect as we, useContext as Ne } from "react";
3
+ import k, { Fragment as ve, createContext as xe, useState as we, useEffect as Ne, useContext as ye } from "react";
4
4
  import { Slot as D } from "@radix-ui/react-slot";
5
5
  import { cva as G } from "class-variance-authority";
6
- import { clsx as ye } from "clsx";
7
- import { twMerge as ke } from "tailwind-merge";
6
+ import { clsx as ke } from "clsx";
7
+ import { twMerge as ze } from "tailwind-merge";
8
8
  import * as h from "@radix-ui/react-context-menu";
9
- import { CheckIcon as O, CircleIcon as oe, ChevronRightIcon as q, Search as ze, MoreHorizontalIcon as Ce, ChevronLeftIcon as Se, ChevronRight as ne, XIcon as ie, SearchIcon as Te, ChevronDownIcon as X, ChevronsUpDownIcon as _e, ChevronUpIcon as De, PanelLeftIcon as Me, GripVerticalIcon as Ie, Sun as Q, Moon as Z, Monitor as Pe } from "lucide-react";
10
- import { Drawer as I } from "vaul";
9
+ import { CheckIcon as O, CircleIcon as oe, ChevronRightIcon as q, Search as Ce, MoreHorizontalIcon as Se, ChevronLeftIcon as Te, ChevronRight as ne, XIcon as ie, SearchIcon as _e, ChevronDownIcon as X, ChevronsUpDownIcon as De, ChevronUpIcon as Me, PanelLeftIcon as Ie, GripVerticalIcon as Pe, Sun as Q, Moon as Z, Monitor as Re } from "lucide-react";
10
+ import { Drawer as R } from "vaul";
11
11
  import * as v from "@radix-ui/react-dropdown-menu";
12
- import * as Re from "@radix-ui/react-label";
12
+ import * as Ae from "@radix-ui/react-label";
13
13
  import * as $ from "@radix-ui/react-popover";
14
- import { useTheme as Ae } from "next-themes";
15
- import { Toaster as Le } from "sonner";
16
- import { toast as ho } from "sonner";
17
- import { FixedSizeList as Ee } from "react-window";
14
+ import { useTheme as Le } from "next-themes";
15
+ import { Toaster as Ee } from "sonner";
16
+ import { toast as vo } from "sonner";
17
+ import { FixedSizeList as je } from "react-window";
18
18
  import * as H from "@radix-ui/react-tabs";
19
- import * as A from "@radix-ui/react-tooltip";
20
- import { Command as L } from "cmdk";
19
+ import * as L from "@radix-ui/react-tooltip";
20
+ import { Command as E } from "cmdk";
21
21
  import * as b from "@radix-ui/react-dialog";
22
22
  import * as w from "@radix-ui/react-select";
23
- import * as je from "@radix-ui/react-separator";
23
+ import * as Be from "@radix-ui/react-separator";
24
24
  import * as B from "@radix-ui/react-scroll-area";
25
25
  import * as ee from "@radix-ui/react-checkbox";
26
26
  import * as N from "@radix-ui/react-accordion";
27
- import Be from "use-resize-observer";
27
+ import Oe from "use-resize-observer";
28
28
  import * as Y from "react-resizable-panels";
29
29
  import * as te from "@radix-ui/react-switch";
30
- import * as T from "@radix-ui/react-alert-dialog";
30
+ import * as S from "@radix-ui/react-alert-dialog";
31
31
  function r(...e) {
32
- return ke(ye(e));
32
+ return ze(ke(e));
33
33
  }
34
- function Ft(e) {
34
+ function Kt(e) {
35
35
  return e.replace(/_/g, " ").replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase());
36
36
  }
37
- function Kt(e) {
37
+ function Ut(e) {
38
38
  const o = (/* @__PURE__ */ new Date()).getTime() - e.getTime(), n = Math.floor(o / 1e3);
39
39
  if (n < 60)
40
40
  return "just now";
@@ -50,10 +50,10 @@ function Kt(e) {
50
50
  const c = Math.floor(u / 30);
51
51
  if (c < 12)
52
52
  return `${c} month${c === 1 ? "" : "s"} ago`;
53
- const p = Math.floor(c / 12);
54
- return `${p} year${p === 1 ? "" : "s"} ago`;
53
+ const f = Math.floor(c / 12);
54
+ return `${f} year${f === 1 ? "" : "s"} ago`;
55
55
  }
56
- const Oe = G(
56
+ const $e = G(
57
57
  "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",
58
58
  {
59
59
  variants: {
@@ -69,7 +69,7 @@ const Oe = G(
69
69
  }
70
70
  }
71
71
  );
72
- function Ut({
72
+ function Wt({
73
73
  className: e,
74
74
  variant: t,
75
75
  asChild: o = !1,
@@ -79,7 +79,7 @@ function Ut({
79
79
  o ? D : "span",
80
80
  {
81
81
  "data-slot": "badge",
82
- className: r(Oe({ variant: t }), e),
82
+ className: r($e({ variant: t }), e),
83
83
  ...n
84
84
  }
85
85
  );
@@ -125,7 +125,7 @@ function J({
125
125
  }
126
126
  );
127
127
  }
128
- function Wt({ className: e, ...t }) {
128
+ function qt({ className: e, ...t }) {
129
129
  return /* @__PURE__ */ a(
130
130
  "div",
131
131
  {
@@ -138,7 +138,7 @@ function Wt({ className: e, ...t }) {
138
138
  }
139
139
  );
140
140
  }
141
- function qt({ className: e, ...t }) {
141
+ function Xt({ className: e, ...t }) {
142
142
  return /* @__PURE__ */ a(
143
143
  "div",
144
144
  {
@@ -151,7 +151,7 @@ function qt({ className: e, ...t }) {
151
151
  }
152
152
  );
153
153
  }
154
- function Xt({ className: e, ...t }) {
154
+ function Yt({ className: e, ...t }) {
155
155
  return /* @__PURE__ */ a(
156
156
  "div",
157
157
  {
@@ -161,7 +161,7 @@ function Xt({ className: e, ...t }) {
161
161
  }
162
162
  );
163
163
  }
164
- function Yt({ className: e, ...t }) {
164
+ function Jt({ className: e, ...t }) {
165
165
  return /* @__PURE__ */ a(
166
166
  "div",
167
167
  {
@@ -171,7 +171,7 @@ function Yt({ className: e, ...t }) {
171
171
  }
172
172
  );
173
173
  }
174
- function Jt({ className: e, ...t }) {
174
+ function Qt({ className: e, ...t }) {
175
175
  return /* @__PURE__ */ a(
176
176
  "div",
177
177
  {
@@ -181,7 +181,7 @@ function Jt({ className: e, ...t }) {
181
181
  }
182
182
  );
183
183
  }
184
- function Qt({ className: e, ...t }) {
184
+ function Zt({ className: e, ...t }) {
185
185
  return /* @__PURE__ */ a(
186
186
  "div",
187
187
  {
@@ -191,22 +191,22 @@ function Qt({ className: e, ...t }) {
191
191
  }
192
192
  );
193
193
  }
194
- function Zt({
194
+ function ea({
195
195
  ...e
196
196
  }) {
197
197
  return /* @__PURE__ */ a(h.Root, { "data-slot": "context-menu", ...e });
198
198
  }
199
- function ea({
199
+ function ta({
200
200
  ...e
201
201
  }) {
202
202
  return /* @__PURE__ */ a(h.Trigger, { "data-slot": "context-menu-trigger", ...e });
203
203
  }
204
- function ta({
204
+ function aa({
205
205
  ...e
206
206
  }) {
207
207
  return /* @__PURE__ */ a(h.Sub, { "data-slot": "context-menu-sub", ...e });
208
208
  }
209
- function aa({
209
+ function ra({
210
210
  ...e
211
211
  }) {
212
212
  return /* @__PURE__ */ a(
@@ -217,7 +217,7 @@ function aa({
217
217
  }
218
218
  );
219
219
  }
220
- function ra({
220
+ function oa({
221
221
  className: e,
222
222
  inset: t,
223
223
  children: o,
@@ -240,7 +240,7 @@ function ra({
240
240
  }
241
241
  );
242
242
  }
243
- function oa({
243
+ function na({
244
244
  className: e,
245
245
  ...t
246
246
  }) {
@@ -256,7 +256,7 @@ function oa({
256
256
  }
257
257
  );
258
258
  }
259
- function na({
259
+ function ia({
260
260
  className: e,
261
261
  ...t
262
262
  }) {
@@ -272,7 +272,7 @@ function na({
272
272
  }
273
273
  ) });
274
274
  }
275
- function ia({
275
+ function sa({
276
276
  className: e,
277
277
  inset: t,
278
278
  variant: o = "default",
@@ -292,7 +292,7 @@ function ia({
292
292
  }
293
293
  );
294
294
  }
295
- function sa({
295
+ function da({
296
296
  className: e,
297
297
  children: t,
298
298
  checked: o,
@@ -315,7 +315,7 @@ function sa({
315
315
  }
316
316
  );
317
317
  }
318
- function da({
318
+ function la({
319
319
  className: e,
320
320
  children: t,
321
321
  ...o
@@ -336,7 +336,7 @@ function da({
336
336
  }
337
337
  );
338
338
  }
339
- function la({
339
+ function ca({
340
340
  className: e,
341
341
  inset: t,
342
342
  ...o
@@ -354,7 +354,7 @@ function la({
354
354
  }
355
355
  );
356
356
  }
357
- function ca({
357
+ function ua({
358
358
  className: e,
359
359
  ...t
360
360
  }) {
@@ -367,7 +367,7 @@ function ca({
367
367
  }
368
368
  );
369
369
  }
370
- function ua({
370
+ function ma({
371
371
  className: e,
372
372
  ...t
373
373
  }) {
@@ -383,27 +383,27 @@ function ua({
383
383
  }
384
384
  );
385
385
  }
386
- function ma({
386
+ function fa({
387
387
  ...e
388
388
  }) {
389
- return /* @__PURE__ */ a(I.Root, { "data-slot": "drawer", ...e });
389
+ return /* @__PURE__ */ a(R.Root, { "data-slot": "drawer", ...e });
390
390
  }
391
- function fa({
391
+ function pa({
392
392
  ...e
393
393
  }) {
394
- return /* @__PURE__ */ a(I.Trigger, { "data-slot": "drawer-trigger", ...e });
394
+ return /* @__PURE__ */ a(R.Trigger, { "data-slot": "drawer-trigger", ...e });
395
395
  }
396
- function pa({
396
+ function ga({
397
397
  ...e
398
398
  }) {
399
- return /* @__PURE__ */ a(I.Close, { "data-slot": "drawer-close", ...e });
399
+ return /* @__PURE__ */ a(R.Close, { "data-slot": "drawer-close", ...e });
400
400
  }
401
- function $e({
401
+ function Ge({
402
402
  className: e,
403
403
  ...t
404
404
  }) {
405
405
  return /* @__PURE__ */ a(
406
- I.Overlay,
406
+ R.Overlay,
407
407
  {
408
408
  "data-slot": "drawer-overlay",
409
409
  className: r(
@@ -414,15 +414,15 @@ function $e({
414
414
  }
415
415
  );
416
416
  }
417
- function ga({
417
+ function ba({
418
418
  className: e,
419
419
  children: t,
420
420
  ...o
421
421
  }) {
422
422
  return /* @__PURE__ */ i(W, { children: [
423
- /* @__PURE__ */ a($e, {}),
423
+ /* @__PURE__ */ a(Ge, {}),
424
424
  /* @__PURE__ */ i(
425
- I.Content,
425
+ R.Content,
426
426
  {
427
427
  "data-slot": "drawer-content",
428
428
  className: r(
@@ -442,7 +442,7 @@ function ga({
442
442
  )
443
443
  ] });
444
444
  }
445
- function ba({ className: e, ...t }) {
445
+ function ha({ className: e, ...t }) {
446
446
  return /* @__PURE__ */ a(
447
447
  "div",
448
448
  {
@@ -455,7 +455,7 @@ function ba({ className: e, ...t }) {
455
455
  }
456
456
  );
457
457
  }
458
- function ha({ className: e, ...t }) {
458
+ function va({ className: e, ...t }) {
459
459
  return /* @__PURE__ */ a(
460
460
  "div",
461
461
  {
@@ -465,12 +465,12 @@ function ha({ className: e, ...t }) {
465
465
  }
466
466
  );
467
467
  }
468
- function va({
468
+ function xa({
469
469
  className: e,
470
470
  ...t
471
471
  }) {
472
472
  return /* @__PURE__ */ a(
473
- I.Title,
473
+ R.Title,
474
474
  {
475
475
  "data-slot": "drawer-title",
476
476
  className: r("text-foreground font-semibold", e),
@@ -478,12 +478,12 @@ function va({
478
478
  }
479
479
  );
480
480
  }
481
- function xa({
481
+ function wa({
482
482
  className: e,
483
483
  ...t
484
484
  }) {
485
485
  return /* @__PURE__ */ a(
486
- I.Description,
486
+ R.Description,
487
487
  {
488
488
  "data-slot": "drawer-description",
489
489
  className: r("text-muted-foreground text-sm", e),
@@ -491,12 +491,12 @@ function xa({
491
491
  }
492
492
  );
493
493
  }
494
- function Ge({
494
+ function He({
495
495
  ...e
496
496
  }) {
497
497
  return /* @__PURE__ */ a(v.Root, { "data-slot": "dropdown-menu", ...e });
498
498
  }
499
- function He({
499
+ function Ve({
500
500
  ...e
501
501
  }) {
502
502
  return /* @__PURE__ */ a(
@@ -507,7 +507,7 @@ function He({
507
507
  }
508
508
  );
509
509
  }
510
- function Ve({
510
+ function Fe({
511
511
  className: e,
512
512
  sideOffset: t = 4,
513
513
  ...o
@@ -545,7 +545,7 @@ function K({
545
545
  }
546
546
  );
547
547
  }
548
- function wa({
548
+ function Na({
549
549
  className: e,
550
550
  children: t,
551
551
  checked: o,
@@ -568,7 +568,7 @@ function wa({
568
568
  }
569
569
  );
570
570
  }
571
- function Na({
571
+ function ya({
572
572
  ...e
573
573
  }) {
574
574
  return /* @__PURE__ */ a(
@@ -579,7 +579,7 @@ function Na({
579
579
  }
580
580
  );
581
581
  }
582
- function ya({
582
+ function ka({
583
583
  className: e,
584
584
  children: t,
585
585
  ...o
@@ -600,7 +600,7 @@ function ya({
600
600
  }
601
601
  );
602
602
  }
603
- function ka({
603
+ function za({
604
604
  className: e,
605
605
  inset: t,
606
606
  ...o
@@ -618,7 +618,7 @@ function ka({
618
618
  }
619
619
  );
620
620
  }
621
- function za({
621
+ function Ca({
622
622
  className: e,
623
623
  ...t
624
624
  }) {
@@ -631,7 +631,7 @@ function za({
631
631
  }
632
632
  );
633
633
  }
634
- function Ca({
634
+ function Sa({
635
635
  className: e,
636
636
  ...t
637
637
  }) {
@@ -647,12 +647,12 @@ function Ca({
647
647
  }
648
648
  );
649
649
  }
650
- function Sa({
650
+ function Ta({
651
651
  ...e
652
652
  }) {
653
653
  return /* @__PURE__ */ a(v.Sub, { "data-slot": "dropdown-menu-sub", ...e });
654
654
  }
655
- function Ta({
655
+ function _a({
656
656
  className: e,
657
657
  inset: t,
658
658
  children: o,
@@ -675,7 +675,7 @@ function Ta({
675
675
  }
676
676
  );
677
677
  }
678
- function _a({
678
+ function Da({
679
679
  className: e,
680
680
  ...t
681
681
  }) {
@@ -691,7 +691,7 @@ function _a({
691
691
  }
692
692
  );
693
693
  }
694
- function Fe({ className: e, type: t, ...o }) {
694
+ function Ke({ className: e, type: t, ...o }) {
695
695
  return /* @__PURE__ */ a(
696
696
  "input",
697
697
  {
@@ -707,7 +707,7 @@ function Fe({ className: e, type: t, ...o }) {
707
707
  }
708
708
  );
709
709
  }
710
- function Da({
710
+ function Ma({
711
711
  className: e,
712
712
  ...t
713
713
  }) {
@@ -722,7 +722,7 @@ function Da({
722
722
  ),
723
723
  "data-slot": "search-input-wrapper",
724
724
  children: [
725
- /* @__PURE__ */ a(ze, { className: "size-4 text-muted-foreground mr-2" }),
725
+ /* @__PURE__ */ a(Ce, { className: "size-4 text-muted-foreground mr-2" }),
726
726
  /* @__PURE__ */ a(
727
727
  "input",
728
728
  {
@@ -737,12 +737,12 @@ function Da({
737
737
  }
738
738
  );
739
739
  }
740
- function Ma({
740
+ function Ia({
741
741
  className: e,
742
742
  ...t
743
743
  }) {
744
744
  return /* @__PURE__ */ a(
745
- Re.Root,
745
+ Ae.Root,
746
746
  {
747
747
  "data-slot": "label",
748
748
  className: r(
@@ -753,7 +753,7 @@ function Ma({
753
753
  }
754
754
  );
755
755
  }
756
- function Ia({ className: e, ...t }) {
756
+ function Pa({ className: e, ...t }) {
757
757
  return /* @__PURE__ */ a(
758
758
  "nav",
759
759
  {
@@ -765,7 +765,7 @@ function Ia({ className: e, ...t }) {
765
765
  }
766
766
  );
767
767
  }
768
- function Pa({
768
+ function Ra({
769
769
  className: e,
770
770
  ...t
771
771
  }) {
@@ -778,7 +778,7 @@ function Pa({
778
778
  }
779
779
  );
780
780
  }
781
- function Ra({ ...e }) {
781
+ function Aa({ ...e }) {
782
782
  return /* @__PURE__ */ a("li", { "data-slot": "pagination-item", ...e });
783
783
  }
784
784
  function se({
@@ -804,7 +804,7 @@ function se({
804
804
  }
805
805
  );
806
806
  }
807
- function Aa({
807
+ function La({
808
808
  className: e,
809
809
  ...t
810
810
  }) {
@@ -816,13 +816,13 @@ function Aa({
816
816
  className: r("gap-1 px-2.5 sm:pl-2.5", e),
817
817
  ...t,
818
818
  children: [
819
- /* @__PURE__ */ a(Se, {}),
819
+ /* @__PURE__ */ a(Te, {}),
820
820
  /* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Previous" })
821
821
  ]
822
822
  }
823
823
  );
824
824
  }
825
- function La({
825
+ function Ea({
826
826
  className: e,
827
827
  ...t
828
828
  }) {
@@ -840,7 +840,7 @@ function La({
840
840
  }
841
841
  );
842
842
  }
843
- function Ea({
843
+ function ja({
844
844
  className: e,
845
845
  ...t
846
846
  }) {
@@ -852,23 +852,23 @@ function Ea({
852
852
  className: r("flex size-9 items-center justify-center", e),
853
853
  ...t,
854
854
  children: [
855
- /* @__PURE__ */ a(Ce, { className: "size-4" }),
855
+ /* @__PURE__ */ a(Se, { className: "size-4" }),
856
856
  /* @__PURE__ */ a("span", { className: "sr-only", children: "More pages" })
857
857
  ]
858
858
  }
859
859
  );
860
860
  }
861
- function Ke({
861
+ function Ue({
862
862
  ...e
863
863
  }) {
864
864
  return /* @__PURE__ */ a($.Root, { "data-slot": "popover", ...e });
865
865
  }
866
- function Ue({
866
+ function We({
867
867
  ...e
868
868
  }) {
869
869
  return /* @__PURE__ */ a($.Trigger, { "data-slot": "popover-trigger", ...e });
870
870
  }
871
- function We({
871
+ function qe({
872
872
  className: e,
873
873
  align: t = "center",
874
874
  sideOffset: o = 4,
@@ -898,10 +898,10 @@ function ae({ className: e, ...t }) {
898
898
  }
899
899
  );
900
900
  }
901
- const ja = ({ ...e }) => {
902
- const { theme: t = "system" } = Ae();
901
+ const Ba = ({ ...e }) => {
902
+ const { theme: t = "system" } = Le();
903
903
  return /* @__PURE__ */ a(
904
- Le,
904
+ Ee,
905
905
  {
906
906
  theme: t,
907
907
  className: "toaster group",
@@ -914,7 +914,7 @@ const ja = ({ ...e }) => {
914
914
  }
915
915
  );
916
916
  };
917
- function Ba({
917
+ function Oa({
918
918
  rowCount: e,
919
919
  rowHeight: t = 48,
920
920
  height: o = 400,
@@ -922,20 +922,20 @@ function Ba({
922
922
  children: s
923
923
  }) {
924
924
  return /* @__PURE__ */ a(
925
- Ee,
925
+ je,
926
926
  {
927
927
  className: r("w-full relative block", n),
928
928
  height: o,
929
929
  itemCount: e,
930
930
  itemSize: t,
931
931
  width: "100%",
932
- outerElementType: qe,
933
- innerElementType: he,
934
- children: ({ index: d, style: u }) => /* @__PURE__ */ a(Xe, { style: u, children: s(d, u) }, d)
932
+ outerElementType: Xe,
933
+ innerElementType: ve,
934
+ children: ({ index: d, style: u }) => /* @__PURE__ */ a(Ye, { style: u, children: s(d, u) }, d)
935
935
  }
936
936
  );
937
937
  }
938
- function Oa({ className: e, ...t }) {
938
+ function $a({ className: e, ...t }) {
939
939
  return /* @__PURE__ */ a(
940
940
  "div",
941
941
  {
@@ -952,7 +952,7 @@ function Oa({ className: e, ...t }) {
952
952
  }
953
953
  );
954
954
  }
955
- function $a({ className: e, ...t }) {
955
+ function Ga({ className: e, ...t }) {
956
956
  return /* @__PURE__ */ a(
957
957
  "thead",
958
958
  {
@@ -962,7 +962,7 @@ function $a({ className: e, ...t }) {
962
962
  }
963
963
  );
964
964
  }
965
- function qe({ className: e, ...t }) {
965
+ function Xe({ className: e, ...t }) {
966
966
  return /* @__PURE__ */ a(
967
967
  "tbody",
968
968
  {
@@ -972,7 +972,7 @@ function qe({ className: e, ...t }) {
972
972
  }
973
973
  );
974
974
  }
975
- function Xe({ className: e, style: t, ...o }) {
975
+ function Ye({ className: e, style: t, ...o }) {
976
976
  return /* @__PURE__ */ a(
977
977
  "tr",
978
978
  {
@@ -986,7 +986,7 @@ function Xe({ className: e, style: t, ...o }) {
986
986
  }
987
987
  );
988
988
  }
989
- function Ga({ className: e, ...t }) {
989
+ function Ha({ className: e, ...t }) {
990
990
  const { icon: o, ...n } = t, { children: s } = n;
991
991
  return /* @__PURE__ */ i(
992
992
  "th",
@@ -1005,7 +1005,7 @@ function Ga({ className: e, ...t }) {
1005
1005
  }
1006
1006
  );
1007
1007
  }
1008
- function Ha({ className: e, ...t }) {
1008
+ function Va({ className: e, ...t }) {
1009
1009
  return /* @__PURE__ */ a(
1010
1010
  "td",
1011
1011
  {
@@ -1018,7 +1018,7 @@ function Ha({ className: e, ...t }) {
1018
1018
  }
1019
1019
  );
1020
1020
  }
1021
- function Va({
1021
+ function Fa({
1022
1022
  className: e,
1023
1023
  ...t
1024
1024
  }) {
@@ -1031,7 +1031,7 @@ function Va({
1031
1031
  }
1032
1032
  );
1033
1033
  }
1034
- function Fa({
1034
+ function Ka({
1035
1035
  className: e,
1036
1036
  ...t
1037
1037
  }) {
@@ -1044,7 +1044,7 @@ function Fa({
1044
1044
  }
1045
1045
  );
1046
1046
  }
1047
- function Ka({
1047
+ function Ua({
1048
1048
  className: e,
1049
1049
  ...t
1050
1050
  }) {
@@ -1060,7 +1060,7 @@ function Ka({
1060
1060
  }
1061
1061
  );
1062
1062
  }
1063
- function Ua({
1063
+ function Wa({
1064
1064
  className: e,
1065
1065
  ...t
1066
1066
  }) {
@@ -1076,7 +1076,7 @@ function Ua({
1076
1076
  }
1077
1077
  );
1078
1078
  }
1079
- function Wa({
1079
+ function qa({
1080
1080
  className: e,
1081
1081
  ...t
1082
1082
  }) {
@@ -1094,7 +1094,7 @@ function de({
1094
1094
  ...t
1095
1095
  }) {
1096
1096
  return /* @__PURE__ */ a(
1097
- A.Provider,
1097
+ L.Provider,
1098
1098
  {
1099
1099
  "data-slot": "tooltip-provider",
1100
1100
  delayDuration: e,
@@ -1102,24 +1102,24 @@ function de({
1102
1102
  }
1103
1103
  );
1104
1104
  }
1105
- function Ye({
1105
+ function Je({
1106
1106
  ...e
1107
1107
  }) {
1108
- return /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(A.Root, { "data-slot": "tooltip", ...e }) });
1108
+ return /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(L.Root, { "data-slot": "tooltip", ...e }) });
1109
1109
  }
1110
- function Je({
1110
+ function Qe({
1111
1111
  ...e
1112
1112
  }) {
1113
- return /* @__PURE__ */ a(A.Trigger, { "data-slot": "tooltip-trigger", ...e });
1113
+ return /* @__PURE__ */ a(L.Trigger, { "data-slot": "tooltip-trigger", ...e });
1114
1114
  }
1115
- function Qe({
1115
+ function Ze({
1116
1116
  className: e,
1117
1117
  sideOffset: t = 0,
1118
1118
  children: o,
1119
1119
  ...n
1120
1120
  }) {
1121
- return /* @__PURE__ */ a(A.Portal, { children: /* @__PURE__ */ i(
1122
- A.Content,
1121
+ return /* @__PURE__ */ a(L.Portal, { children: /* @__PURE__ */ i(
1122
+ L.Content,
1123
1123
  {
1124
1124
  "data-slot": "tooltip-content",
1125
1125
  sideOffset: t,
@@ -1130,15 +1130,15 @@ function Qe({
1130
1130
  ...n,
1131
1131
  children: [
1132
1132
  o,
1133
- /* @__PURE__ */ a(A.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1133
+ /* @__PURE__ */ a(L.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1134
1134
  ]
1135
1135
  }
1136
1136
  ) });
1137
1137
  }
1138
- function qa({ ...e }) {
1138
+ function Xa({ ...e }) {
1139
1139
  return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
1140
1140
  }
1141
- function Xa({ className: e, ...t }) {
1141
+ function Ya({ className: e, ...t }) {
1142
1142
  return /* @__PURE__ */ a(
1143
1143
  "ol",
1144
1144
  {
@@ -1151,7 +1151,7 @@ function Xa({ className: e, ...t }) {
1151
1151
  }
1152
1152
  );
1153
1153
  }
1154
- function Ya({ className: e, ...t }) {
1154
+ function Ja({ className: e, ...t }) {
1155
1155
  return /* @__PURE__ */ a(
1156
1156
  "li",
1157
1157
  {
@@ -1161,7 +1161,7 @@ function Ya({ className: e, ...t }) {
1161
1161
  }
1162
1162
  );
1163
1163
  }
1164
- function Ja({
1164
+ function Qa({
1165
1165
  asChild: e,
1166
1166
  className: t,
1167
1167
  ...o
@@ -1175,7 +1175,7 @@ function Ja({
1175
1175
  }
1176
1176
  );
1177
1177
  }
1178
- function Qa({ className: e, ...t }) {
1178
+ function Za({ className: e, ...t }) {
1179
1179
  return /* @__PURE__ */ a(
1180
1180
  "span",
1181
1181
  {
@@ -1188,7 +1188,7 @@ function Qa({ className: e, ...t }) {
1188
1188
  }
1189
1189
  );
1190
1190
  }
1191
- function Za({
1191
+ function er({
1192
1192
  children: e,
1193
1193
  className: t,
1194
1194
  ...o
@@ -1205,22 +1205,22 @@ function Za({
1205
1205
  }
1206
1206
  );
1207
1207
  }
1208
- function er({
1208
+ function tr({
1209
1209
  ...e
1210
1210
  }) {
1211
1211
  return /* @__PURE__ */ a(b.Root, { "data-slot": "dialog", ...e });
1212
1212
  }
1213
- function tr({
1213
+ function ar({
1214
1214
  ...e
1215
1215
  }) {
1216
1216
  return /* @__PURE__ */ a(b.Trigger, { "data-slot": "dialog-trigger", ...e });
1217
1217
  }
1218
- function Ze({
1218
+ function et({
1219
1219
  ...e
1220
1220
  }) {
1221
1221
  return /* @__PURE__ */ a(b.Portal, { "data-slot": "dialog-portal", ...e });
1222
1222
  }
1223
- function et({
1223
+ function tt({
1224
1224
  className: e,
1225
1225
  ...t
1226
1226
  }) {
@@ -1236,14 +1236,14 @@ function et({
1236
1236
  }
1237
1237
  );
1238
1238
  }
1239
- function ar({
1239
+ function rr({
1240
1240
  className: e,
1241
1241
  children: t,
1242
1242
  showCloseButton: o = !0,
1243
1243
  ...n
1244
1244
  }) {
1245
- return /* @__PURE__ */ i(Ze, { "data-slot": "dialog-portal", children: [
1246
- /* @__PURE__ */ a(et, {}),
1245
+ return /* @__PURE__ */ i(et, { "data-slot": "dialog-portal", children: [
1246
+ /* @__PURE__ */ a(tt, {}),
1247
1247
  /* @__PURE__ */ i(
1248
1248
  b.Content,
1249
1249
  {
@@ -1271,7 +1271,7 @@ function ar({
1271
1271
  )
1272
1272
  ] });
1273
1273
  }
1274
- function rr({ className: e, ...t }) {
1274
+ function or({ className: e, ...t }) {
1275
1275
  return /* @__PURE__ */ a(
1276
1276
  "div",
1277
1277
  {
@@ -1281,7 +1281,7 @@ function rr({ className: e, ...t }) {
1281
1281
  }
1282
1282
  );
1283
1283
  }
1284
- function or({ className: e, ...t }) {
1284
+ function nr({ className: e, ...t }) {
1285
1285
  return /* @__PURE__ */ a(
1286
1286
  "div",
1287
1287
  {
@@ -1294,7 +1294,7 @@ function or({ className: e, ...t }) {
1294
1294
  }
1295
1295
  );
1296
1296
  }
1297
- function nr({
1297
+ function ir({
1298
1298
  className: e,
1299
1299
  ...t
1300
1300
  }) {
@@ -1307,7 +1307,7 @@ function nr({
1307
1307
  }
1308
1308
  );
1309
1309
  }
1310
- function ir({
1310
+ function sr({
1311
1311
  className: e,
1312
1312
  ...t
1313
1313
  }) {
@@ -1320,12 +1320,12 @@ function ir({
1320
1320
  }
1321
1321
  );
1322
1322
  }
1323
- function tt({
1323
+ function at({
1324
1324
  className: e,
1325
1325
  ...t
1326
1326
  }) {
1327
1327
  return /* @__PURE__ */ a(
1328
- L,
1328
+ E,
1329
1329
  {
1330
1330
  "data-slot": "command",
1331
1331
  className: r(
@@ -1336,7 +1336,7 @@ function tt({
1336
1336
  }
1337
1337
  );
1338
1338
  }
1339
- function at({
1339
+ function rt({
1340
1340
  className: e,
1341
1341
  ...t
1342
1342
  }) {
@@ -1346,9 +1346,9 @@ function at({
1346
1346
  "data-slot": "command-input-wrapper",
1347
1347
  className: "flex h-9 items-center gap-2 border-b px-3",
1348
1348
  children: [
1349
- /* @__PURE__ */ a(Te, { className: "size-4 shrink-0 opacity-50" }),
1349
+ /* @__PURE__ */ a(_e, { className: "size-4 shrink-0 opacity-50" }),
1350
1350
  /* @__PURE__ */ a(
1351
- L.Input,
1351
+ E.Input,
1352
1352
  {
1353
1353
  "data-slot": "command-input",
1354
1354
  className: r(
@@ -1362,12 +1362,12 @@ function at({
1362
1362
  }
1363
1363
  );
1364
1364
  }
1365
- function rt({
1365
+ function ot({
1366
1366
  className: e,
1367
1367
  ...t
1368
1368
  }) {
1369
1369
  return /* @__PURE__ */ a(
1370
- L.List,
1370
+ E.List,
1371
1371
  {
1372
1372
  "data-slot": "command-list",
1373
1373
  className: r(
@@ -1378,11 +1378,11 @@ function rt({
1378
1378
  }
1379
1379
  );
1380
1380
  }
1381
- function ot({
1381
+ function nt({
1382
1382
  ...e
1383
1383
  }) {
1384
1384
  return /* @__PURE__ */ a(
1385
- L.Empty,
1385
+ E.Empty,
1386
1386
  {
1387
1387
  "data-slot": "command-empty",
1388
1388
  className: "py-6 text-center text-sm",
@@ -1390,12 +1390,12 @@ function ot({
1390
1390
  }
1391
1391
  );
1392
1392
  }
1393
- function nt({
1393
+ function it({
1394
1394
  className: e,
1395
1395
  ...t
1396
1396
  }) {
1397
1397
  return /* @__PURE__ */ a(
1398
- L.Group,
1398
+ E.Group,
1399
1399
  {
1400
1400
  "data-slot": "command-group",
1401
1401
  className: r(
@@ -1406,12 +1406,12 @@ function nt({
1406
1406
  }
1407
1407
  );
1408
1408
  }
1409
- function it({
1409
+ function st({
1410
1410
  className: e,
1411
1411
  ...t
1412
1412
  }) {
1413
1413
  return /* @__PURE__ */ a(
1414
- L.Item,
1414
+ E.Item,
1415
1415
  {
1416
1416
  "data-slot": "command-item",
1417
1417
  className: r(
@@ -1422,22 +1422,22 @@ function it({
1422
1422
  }
1423
1423
  );
1424
1424
  }
1425
- function sr({
1425
+ function dr({
1426
1426
  ...e
1427
1427
  }) {
1428
1428
  return /* @__PURE__ */ a(w.Root, { "data-slot": "select", ...e });
1429
1429
  }
1430
- function dr({
1430
+ function lr({
1431
1431
  ...e
1432
1432
  }) {
1433
1433
  return /* @__PURE__ */ a(w.Group, { "data-slot": "select-group", ...e });
1434
1434
  }
1435
- function lr({
1435
+ function cr({
1436
1436
  ...e
1437
1437
  }) {
1438
1438
  return /* @__PURE__ */ a(w.Value, { "data-slot": "select-value", ...e });
1439
1439
  }
1440
- function cr({
1440
+ function ur({
1441
1441
  className: e,
1442
1442
  size: t = "default",
1443
1443
  children: o,
@@ -1460,7 +1460,7 @@ function cr({
1460
1460
  }
1461
1461
  );
1462
1462
  }
1463
- function ur({
1463
+ function mr({
1464
1464
  className: e,
1465
1465
  children: t,
1466
1466
  position: o = "popper",
@@ -1478,7 +1478,7 @@ function ur({
1478
1478
  position: o,
1479
1479
  ...n,
1480
1480
  children: [
1481
- /* @__PURE__ */ a(st, {}),
1481
+ /* @__PURE__ */ a(dt, {}),
1482
1482
  /* @__PURE__ */ a(
1483
1483
  w.Viewport,
1484
1484
  {
@@ -1489,12 +1489,12 @@ function ur({
1489
1489
  children: t
1490
1490
  }
1491
1491
  ),
1492
- /* @__PURE__ */ a(dt, {})
1492
+ /* @__PURE__ */ a(lt, {})
1493
1493
  ]
1494
1494
  }
1495
1495
  ) });
1496
1496
  }
1497
- function mr({
1497
+ function fr({
1498
1498
  className: e,
1499
1499
  ...t
1500
1500
  }) {
@@ -1507,7 +1507,7 @@ function mr({
1507
1507
  }
1508
1508
  );
1509
1509
  }
1510
- function fr({
1510
+ function pr({
1511
1511
  className: e,
1512
1512
  children: t,
1513
1513
  ...o
@@ -1528,7 +1528,7 @@ function fr({
1528
1528
  }
1529
1529
  );
1530
1530
  }
1531
- function st({
1531
+ function dt({
1532
1532
  className: e,
1533
1533
  ...t
1534
1534
  }) {
@@ -1541,11 +1541,11 @@ function st({
1541
1541
  e
1542
1542
  ),
1543
1543
  ...t,
1544
- children: /* @__PURE__ */ a(De, { className: "size-4" })
1544
+ children: /* @__PURE__ */ a(Me, { className: "size-4" })
1545
1545
  }
1546
1546
  );
1547
1547
  }
1548
- function dt({
1548
+ function lt({
1549
1549
  className: e,
1550
1550
  ...t
1551
1551
  }) {
@@ -1562,7 +1562,7 @@ function dt({
1562
1562
  }
1563
1563
  );
1564
1564
  }
1565
- function pr({
1565
+ function gr({
1566
1566
  options: e,
1567
1567
  placeholder: t = "Select option...",
1568
1568
  searchPlaceholder: o = "Search...",
@@ -1571,22 +1571,23 @@ function pr({
1571
1571
  buttonClassName: d,
1572
1572
  contentClassName: u,
1573
1573
  disabled: c = !1,
1574
- extraOptions: p,
1574
+ extraOptions: f,
1575
1575
  side: l = "bottom",
1576
- align: _ = "start",
1576
+ align: T = "start",
1577
1577
  onlyIcon: M = !1,
1578
- label: z
1578
+ label: z,
1579
+ inputProps: _
1579
1580
  }) {
1580
- const [C, S] = g.useState(!1), [P, y] = g.useState(""), f = n ?? P, [m, E] = g.useState(""), R = g.useMemo(
1581
+ const [C, I] = g.useState(!1), [y, p] = g.useState(""), m = n ?? y, [P, A] = g.useState(""), ge = g.useMemo(
1581
1582
  () => e.filter(
1582
- (x) => x.label.toLowerCase().includes(m.toLowerCase())
1583
+ (x) => x.label.toLowerCase().includes(P.toLowerCase())
1583
1584
  ),
1584
- [e, m]
1585
- ), ge = (x) => {
1586
- n === void 0 && y(x === f ? "" : x), s?.(x === f ? "" : x), S(!1);
1587
- }, j = e.find((x) => x.value === f);
1588
- return /* @__PURE__ */ i(Ke, { open: C, onOpenChange: S, children: [
1589
- /* @__PURE__ */ a(Ue, { children: /* @__PURE__ */ i(
1585
+ [e, P]
1586
+ ), be = (x) => {
1587
+ n === void 0 && p(x === m ? "" : x), s?.(x === m ? "" : x), I(!1);
1588
+ }, j = e.find((x) => x.value === m);
1589
+ return /* @__PURE__ */ i(Ue, { open: C, onOpenChange: I, modal: !0, children: [
1590
+ /* @__PURE__ */ a(We, { children: /* @__PURE__ */ i(
1590
1591
  J,
1591
1592
  {
1592
1593
  variant: "outline",
@@ -1618,31 +1619,32 @@ function pr({
1618
1619
  ] }) }) : /* @__PURE__ */ a("span", { className: "truncate", children: t })
1619
1620
  }
1620
1621
  ),
1621
- /* @__PURE__ */ a(_e, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
1622
+ /* @__PURE__ */ a(De, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
1622
1623
  ]
1623
1624
  }
1624
1625
  ) }),
1625
- /* @__PURE__ */ a(We, { className: r("p-0", u), side: l, align: _, children: /* @__PURE__ */ i(tt, { children: [
1626
+ /* @__PURE__ */ a(qe, { className: r("p-0", u), side: l, align: T, children: /* @__PURE__ */ i(at, { children: [
1626
1627
  /* @__PURE__ */ a(
1627
- at,
1628
+ rt,
1628
1629
  {
1629
1630
  placeholder: o,
1630
- value: m,
1631
- onValueChange: E
1631
+ value: P,
1632
+ onValueChange: A,
1633
+ ..._
1632
1634
  }
1633
1635
  ),
1634
- /* @__PURE__ */ i(rt, { children: [
1635
- /* @__PURE__ */ i(ot, { children: [
1636
+ /* @__PURE__ */ i(ot, { children: [
1637
+ /* @__PURE__ */ i(nt, { children: [
1636
1638
  "No ",
1637
1639
  z?.toLowerCase() ?? "option",
1638
1640
  " found."
1639
1641
  ] }),
1640
- /* @__PURE__ */ i(nt, { children: [
1641
- R.map((x) => /* @__PURE__ */ i(
1642
- it,
1642
+ /* @__PURE__ */ i(it, { children: [
1643
+ ge.map((x) => /* @__PURE__ */ i(
1644
+ st,
1643
1645
  {
1644
1646
  value: x.value,
1645
- onSelect: (be) => ge(be),
1647
+ onSelect: (he) => be(he),
1646
1648
  className: "break-all",
1647
1649
  children: [
1648
1650
  /* @__PURE__ */ a(
@@ -1650,7 +1652,7 @@ function pr({
1650
1652
  {
1651
1653
  className: r(
1652
1654
  "mr-2 h-4 w-4",
1653
- f === x.value ? "opacity-100" : "opacity-0"
1655
+ m === x.value ? "opacity-100" : "opacity-0"
1654
1656
  )
1655
1657
  }
1656
1658
  ),
@@ -1660,14 +1662,14 @@ function pr({
1660
1662
  },
1661
1663
  x.value
1662
1664
  )),
1663
- p
1665
+ f
1664
1666
  ] })
1665
1667
  ] })
1666
1668
  ] }) })
1667
1669
  ] });
1668
1670
  }
1669
1671
  const U = 768;
1670
- function lt() {
1672
+ function ct() {
1671
1673
  const [e, t] = g.useState(void 0);
1672
1674
  return g.useEffect(() => {
1673
1675
  const o = window.matchMedia(`(max-width: ${U - 1}px)`), n = () => {
@@ -1683,7 +1685,7 @@ function le({
1683
1685
  ...n
1684
1686
  }) {
1685
1687
  return /* @__PURE__ */ a(
1686
- je.Root,
1688
+ Be.Root,
1687
1689
  {
1688
1690
  "data-slot": "separator",
1689
1691
  decorative: o,
@@ -1696,20 +1698,20 @@ function le({
1696
1698
  }
1697
1699
  );
1698
1700
  }
1699
- function ct({ ...e }) {
1701
+ function ut({ ...e }) {
1700
1702
  return /* @__PURE__ */ a(b.Root, { "data-slot": "sheet", ...e });
1701
1703
  }
1702
- function gr({
1704
+ function br({
1703
1705
  ...e
1704
1706
  }) {
1705
1707
  return /* @__PURE__ */ a(b.Trigger, { "data-slot": "sheet-trigger", ...e });
1706
1708
  }
1707
- function ut({
1709
+ function mt({
1708
1710
  ...e
1709
1711
  }) {
1710
1712
  return /* @__PURE__ */ a(b.Portal, { "data-slot": "sheet-portal", ...e });
1711
1713
  }
1712
- function mt({
1714
+ function ft({
1713
1715
  className: e,
1714
1716
  ...t
1715
1717
  }) {
@@ -1725,14 +1727,14 @@ function mt({
1725
1727
  }
1726
1728
  );
1727
1729
  }
1728
- function ft({
1730
+ function pt({
1729
1731
  className: e,
1730
1732
  children: t,
1731
1733
  side: o = "right",
1732
1734
  ...n
1733
1735
  }) {
1734
- return /* @__PURE__ */ i(ut, { children: [
1735
- /* @__PURE__ */ a(mt, {}),
1736
+ return /* @__PURE__ */ i(mt, { children: [
1737
+ /* @__PURE__ */ a(ft, {}),
1736
1738
  /* @__PURE__ */ i(
1737
1739
  b.Content,
1738
1740
  {
@@ -1757,7 +1759,7 @@ function ft({
1757
1759
  )
1758
1760
  ] });
1759
1761
  }
1760
- function pt({ className: e, ...t }) {
1762
+ function gt({ className: e, ...t }) {
1761
1763
  return /* @__PURE__ */ a(
1762
1764
  "div",
1763
1765
  {
@@ -1767,7 +1769,7 @@ function pt({ className: e, ...t }) {
1767
1769
  }
1768
1770
  );
1769
1771
  }
1770
- function br({ className: e, ...t }) {
1772
+ function hr({ className: e, ...t }) {
1771
1773
  return /* @__PURE__ */ a(
1772
1774
  "div",
1773
1775
  {
@@ -1777,7 +1779,7 @@ function br({ className: e, ...t }) {
1777
1779
  }
1778
1780
  );
1779
1781
  }
1780
- function gt({
1782
+ function bt({
1781
1783
  className: e,
1782
1784
  ...t
1783
1785
  }) {
@@ -1790,7 +1792,7 @@ function gt({
1790
1792
  }
1791
1793
  );
1792
1794
  }
1793
- function bt({
1795
+ function ht({
1794
1796
  className: e,
1795
1797
  ...t
1796
1798
  }) {
@@ -1803,14 +1805,14 @@ function bt({
1803
1805
  }
1804
1806
  );
1805
1807
  }
1806
- const ht = "sidebar_state", vt = 3600 * 24 * 7, xt = "16rem", wt = "18rem", Nt = "3rem", yt = "b", ce = g.createContext(null);
1808
+ const vt = "sidebar_state", xt = 3600 * 24 * 7, wt = "16rem", Nt = "18rem", yt = "3rem", kt = "b", ce = g.createContext(null);
1807
1809
  function F() {
1808
1810
  const e = g.useContext(ce);
1809
1811
  if (!e)
1810
1812
  throw new Error("useSidebar must be used within a SidebarProvider.");
1811
1813
  return e;
1812
1814
  }
1813
- function hr({
1815
+ function vr({
1814
1816
  defaultOpen: e = !0,
1815
1817
  open: t,
1816
1818
  onOpenChange: o,
@@ -1819,38 +1821,38 @@ function hr({
1819
1821
  children: d,
1820
1822
  ...u
1821
1823
  }) {
1822
- const c = lt(), [p, l] = g.useState(!1), [_, M] = g.useState(e), z = t ?? _, C = g.useCallback(
1823
- (f) => {
1824
- const m = typeof f == "function" ? f(z) : f;
1825
- o ? o(m) : M(m), document.cookie = `${ht}=${m}; path=/; max-age=${vt}`;
1824
+ const c = ct(), [f, l] = g.useState(!1), [T, M] = g.useState(e), z = t ?? T, _ = g.useCallback(
1825
+ (p) => {
1826
+ const m = typeof p == "function" ? p(z) : p;
1827
+ o ? o(m) : M(m), document.cookie = `${vt}=${m}; path=/; max-age=${xt}`;
1826
1828
  },
1827
1829
  [o, z]
1828
- ), S = g.useCallback(() => c ? l((f) => !f) : C((f) => !f), [c, C, l]);
1830
+ ), C = g.useCallback(() => c ? l((p) => !p) : _((p) => !p), [c, _, l]);
1829
1831
  g.useEffect(() => {
1830
- const f = (m) => {
1831
- m.key === yt && (m.metaKey || m.ctrlKey) && (m.preventDefault(), S());
1832
+ const p = (m) => {
1833
+ m.key === kt && (m.metaKey || m.ctrlKey) && (m.preventDefault(), C());
1832
1834
  };
1833
- return window.addEventListener("keydown", f), () => window.removeEventListener("keydown", f);
1834
- }, [S]);
1835
- const P = z ? "expanded" : "collapsed", y = g.useMemo(
1835
+ return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
1836
+ }, [C]);
1837
+ const I = z ? "expanded" : "collapsed", y = g.useMemo(
1836
1838
  () => ({
1837
- state: P,
1839
+ state: I,
1838
1840
  open: z,
1839
- setOpen: C,
1841
+ setOpen: _,
1840
1842
  isMobile: c,
1841
- openMobile: p,
1843
+ openMobile: f,
1842
1844
  setOpenMobile: l,
1843
- toggleSidebar: S
1845
+ toggleSidebar: C
1844
1846
  }),
1845
- [P, z, C, c, p, l, S]
1847
+ [I, z, _, c, f, l, C]
1846
1848
  );
1847
1849
  return /* @__PURE__ */ a(ce.Provider, { value: y, children: /* @__PURE__ */ a(de, { delayDuration: 0, children: /* @__PURE__ */ a(
1848
1850
  "div",
1849
1851
  {
1850
1852
  "data-slot": "sidebar-wrapper",
1851
1853
  style: {
1852
- "--sidebar-width": xt,
1853
- "--sidebar-width-icon": Nt,
1854
+ "--sidebar-width": wt,
1855
+ "--sidebar-width-icon": yt,
1854
1856
  ...s
1855
1857
  },
1856
1858
  className: r(
@@ -1862,7 +1864,7 @@ function hr({
1862
1864
  }
1863
1865
  ) }) });
1864
1866
  }
1865
- function vr({
1867
+ function xr({
1866
1868
  side: e = "left",
1867
1869
  variant: t = "sidebar",
1868
1870
  collapsible: o = "offcanvas",
@@ -1870,7 +1872,7 @@ function vr({
1870
1872
  children: s,
1871
1873
  ...d
1872
1874
  }) {
1873
- const { isMobile: u, state: c, openMobile: p, setOpenMobile: l } = F();
1875
+ const { isMobile: u, state: c, openMobile: f, setOpenMobile: l } = F();
1874
1876
  return o === "none" ? /* @__PURE__ */ a(
1875
1877
  "div",
1876
1878
  {
@@ -1882,21 +1884,21 @@ function vr({
1882
1884
  ...d,
1883
1885
  children: s
1884
1886
  }
1885
- ) : u ? /* @__PURE__ */ a(ct, { open: p, onOpenChange: l, ...d, children: /* @__PURE__ */ i(
1886
- ft,
1887
+ ) : u ? /* @__PURE__ */ a(ut, { open: f, onOpenChange: l, ...d, children: /* @__PURE__ */ i(
1888
+ pt,
1887
1889
  {
1888
1890
  "data-sidebar": "sidebar",
1889
1891
  "data-slot": "sidebar",
1890
1892
  "data-mobile": "true",
1891
1893
  className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
1892
1894
  style: {
1893
- "--sidebar-width": wt
1895
+ "--sidebar-width": Nt
1894
1896
  },
1895
1897
  side: e,
1896
1898
  children: [
1897
- /* @__PURE__ */ i(pt, { className: "sr-only", children: [
1898
- /* @__PURE__ */ a(gt, { children: "Sidebar" }),
1899
- /* @__PURE__ */ a(bt, { children: "Displays the mobile sidebar." })
1899
+ /* @__PURE__ */ i(gt, { className: "sr-only", children: [
1900
+ /* @__PURE__ */ a(bt, { children: "Sidebar" }),
1901
+ /* @__PURE__ */ a(ht, { children: "Displays the mobile sidebar." })
1900
1902
  ] }),
1901
1903
  /* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: s })
1902
1904
  ]
@@ -1954,7 +1956,7 @@ function vr({
1954
1956
  }
1955
1957
  );
1956
1958
  }
1957
- function xr({
1959
+ function wr({
1958
1960
  className: e,
1959
1961
  onClick: t,
1960
1962
  ...o
@@ -1973,13 +1975,13 @@ function xr({
1973
1975
  },
1974
1976
  ...o,
1975
1977
  children: [
1976
- /* @__PURE__ */ a(Me, {}),
1978
+ /* @__PURE__ */ a(Ie, {}),
1977
1979
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle Sidebar" })
1978
1980
  ]
1979
1981
  }
1980
1982
  );
1981
1983
  }
1982
- function wr({ className: e, ...t }) {
1984
+ function Nr({ className: e, ...t }) {
1983
1985
  const { toggleSidebar: o } = F();
1984
1986
  return /* @__PURE__ */ a(
1985
1987
  "button",
@@ -2003,7 +2005,7 @@ function wr({ className: e, ...t }) {
2003
2005
  }
2004
2006
  );
2005
2007
  }
2006
- function Nr({ className: e, ...t }) {
2008
+ function yr({ className: e, ...t }) {
2007
2009
  return /* @__PURE__ */ a(
2008
2010
  "main",
2009
2011
  {
@@ -2017,12 +2019,12 @@ function Nr({ className: e, ...t }) {
2017
2019
  }
2018
2020
  );
2019
2021
  }
2020
- function yr({
2022
+ function kr({
2021
2023
  className: e,
2022
2024
  ...t
2023
2025
  }) {
2024
2026
  return /* @__PURE__ */ a(
2025
- Fe,
2027
+ Ke,
2026
2028
  {
2027
2029
  "data-slot": "sidebar-input",
2028
2030
  "data-sidebar": "input",
@@ -2031,7 +2033,7 @@ function yr({
2031
2033
  }
2032
2034
  );
2033
2035
  }
2034
- function kr({ className: e, ...t }) {
2036
+ function zr({ className: e, ...t }) {
2035
2037
  return /* @__PURE__ */ a(
2036
2038
  "div",
2037
2039
  {
@@ -2042,7 +2044,7 @@ function kr({ className: e, ...t }) {
2042
2044
  }
2043
2045
  );
2044
2046
  }
2045
- function zr({ className: e, ...t }) {
2047
+ function Cr({ className: e, ...t }) {
2046
2048
  return /* @__PURE__ */ a(
2047
2049
  "div",
2048
2050
  {
@@ -2053,7 +2055,7 @@ function zr({ className: e, ...t }) {
2053
2055
  }
2054
2056
  );
2055
2057
  }
2056
- function Cr({
2058
+ function Sr({
2057
2059
  className: e,
2058
2060
  ...t
2059
2061
  }) {
@@ -2067,7 +2069,7 @@ function Cr({
2067
2069
  }
2068
2070
  );
2069
2071
  }
2070
- function Sr({ className: e, ...t }) {
2072
+ function Tr({ className: e, ...t }) {
2071
2073
  return /* @__PURE__ */ a(
2072
2074
  "div",
2073
2075
  {
@@ -2081,7 +2083,7 @@ function Sr({ className: e, ...t }) {
2081
2083
  }
2082
2084
  );
2083
2085
  }
2084
- function Tr({ className: e, ...t }) {
2086
+ function _r({ className: e, ...t }) {
2085
2087
  return /* @__PURE__ */ a(
2086
2088
  "div",
2087
2089
  {
@@ -2092,7 +2094,7 @@ function Tr({ className: e, ...t }) {
2092
2094
  }
2093
2095
  );
2094
2096
  }
2095
- function _r({
2097
+ function Dr({
2096
2098
  className: e,
2097
2099
  asChild: t = !1,
2098
2100
  ...o
@@ -2111,7 +2113,7 @@ function _r({
2111
2113
  }
2112
2114
  );
2113
2115
  }
2114
- function Dr({
2116
+ function Mr({
2115
2117
  className: e,
2116
2118
  asChild: t = !1,
2117
2119
  ...o
@@ -2132,7 +2134,7 @@ function Dr({
2132
2134
  }
2133
2135
  );
2134
2136
  }
2135
- function Mr({
2137
+ function Ir({
2136
2138
  className: e,
2137
2139
  ...t
2138
2140
  }) {
@@ -2146,7 +2148,7 @@ function Mr({
2146
2148
  }
2147
2149
  );
2148
2150
  }
2149
- function Ir({ className: e, ...t }) {
2151
+ function Pr({ className: e, ...t }) {
2150
2152
  return /* @__PURE__ */ a(
2151
2153
  "ul",
2152
2154
  {
@@ -2157,7 +2159,7 @@ function Ir({ className: e, ...t }) {
2157
2159
  }
2158
2160
  );
2159
2161
  }
2160
- function Pr({ className: e, ...t }) {
2162
+ function Rr({ className: e, ...t }) {
2161
2163
  return /* @__PURE__ */ a(
2162
2164
  "li",
2163
2165
  {
@@ -2168,7 +2170,7 @@ function Pr({ className: e, ...t }) {
2168
2170
  }
2169
2171
  );
2170
2172
  }
2171
- const kt = G(
2173
+ const zt = G(
2172
2174
  "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",
2173
2175
  {
2174
2176
  variants: {
@@ -2188,7 +2190,7 @@ const kt = G(
2188
2190
  }
2189
2191
  }
2190
2192
  );
2191
- function Rr({
2193
+ function Ar({
2192
2194
  asChild: e = !1,
2193
2195
  isActive: t = !1,
2194
2196
  variant: o = "default",
@@ -2197,33 +2199,33 @@ function Rr({
2197
2199
  className: d,
2198
2200
  ...u
2199
2201
  }) {
2200
- const c = e ? D : "button", { isMobile: p, state: l } = F(), _ = /* @__PURE__ */ a(
2202
+ const c = e ? D : "button", { isMobile: f, state: l } = F(), T = /* @__PURE__ */ a(
2201
2203
  c,
2202
2204
  {
2203
2205
  "data-slot": "sidebar-menu-button",
2204
2206
  "data-sidebar": "menu-button",
2205
2207
  "data-size": n,
2206
2208
  "data-active": t,
2207
- className: r(kt({ variant: o, size: n }), d),
2209
+ className: r(zt({ variant: o, size: n }), d),
2208
2210
  ...u
2209
2211
  }
2210
2212
  );
2211
2213
  return s ? (typeof s == "string" && (s = {
2212
2214
  children: s
2213
- }), /* @__PURE__ */ i(Ye, { children: [
2214
- /* @__PURE__ */ a(Je, { asChild: !0, children: _ }),
2215
+ }), /* @__PURE__ */ i(Je, { children: [
2216
+ /* @__PURE__ */ a(Qe, { asChild: !0, children: T }),
2215
2217
  /* @__PURE__ */ a(
2216
- Qe,
2218
+ Ze,
2217
2219
  {
2218
2220
  side: "right",
2219
2221
  align: "center",
2220
- hidden: l !== "collapsed" || p,
2222
+ hidden: l !== "collapsed" || f,
2221
2223
  ...s
2222
2224
  }
2223
2225
  )
2224
- ] })) : _;
2226
+ ] })) : T;
2225
2227
  }
2226
- function Ar({
2228
+ function Lr({
2227
2229
  className: e,
2228
2230
  asChild: t = !1,
2229
2231
  showOnHover: o = !1,
@@ -2249,7 +2251,7 @@ function Ar({
2249
2251
  }
2250
2252
  );
2251
2253
  }
2252
- function Lr({
2254
+ function Er({
2253
2255
  className: e,
2254
2256
  ...t
2255
2257
  }) {
@@ -2271,7 +2273,7 @@ function Lr({
2271
2273
  }
2272
2274
  );
2273
2275
  }
2274
- function Er({
2276
+ function jr({
2275
2277
  className: e,
2276
2278
  showIcon: t = !1,
2277
2279
  ...o
@@ -2306,7 +2308,7 @@ function Er({
2306
2308
  }
2307
2309
  );
2308
2310
  }
2309
- function jr({ className: e, ...t }) {
2311
+ function Br({ className: e, ...t }) {
2310
2312
  return /* @__PURE__ */ a(
2311
2313
  "ul",
2312
2314
  {
@@ -2321,7 +2323,7 @@ function jr({ className: e, ...t }) {
2321
2323
  }
2322
2324
  );
2323
2325
  }
2324
- function Br({
2326
+ function Or({
2325
2327
  className: e,
2326
2328
  ...t
2327
2329
  }) {
@@ -2335,7 +2337,7 @@ function Br({
2335
2337
  }
2336
2338
  );
2337
2339
  }
2338
- function Or({
2340
+ function $r({
2339
2341
  asChild: e = !1,
2340
2342
  size: t = "md",
2341
2343
  isActive: o = !1,
@@ -2361,7 +2363,7 @@ function Or({
2361
2363
  }
2362
2364
  );
2363
2365
  }
2364
- function zt({
2366
+ function Ct({
2365
2367
  className: e,
2366
2368
  children: t,
2367
2369
  ...o
@@ -2381,13 +2383,13 @@ function zt({
2381
2383
  children: t
2382
2384
  }
2383
2385
  ),
2384
- /* @__PURE__ */ a(Ct, {}),
2386
+ /* @__PURE__ */ a(St, {}),
2385
2387
  /* @__PURE__ */ a(B.Corner, {})
2386
2388
  ]
2387
2389
  }
2388
2390
  );
2389
2391
  }
2390
- function Ct({
2392
+ function St({
2391
2393
  className: e,
2392
2394
  orientation: t = "vertical",
2393
2395
  ...o
@@ -2414,7 +2416,7 @@ function Ct({
2414
2416
  }
2415
2417
  );
2416
2418
  }
2417
- function $r({
2419
+ function Gr({
2418
2420
  item: e,
2419
2421
  children: t,
2420
2422
  keyClassName: o = "font-semibold min-w-1/2",
@@ -2427,7 +2429,7 @@ function $r({
2427
2429
  /* @__PURE__ */ a("span", { className: n, children: t })
2428
2430
  ] }) });
2429
2431
  }
2430
- function Gr({
2432
+ function Hr({
2431
2433
  children: e,
2432
2434
  separatorClassName: t = "w-full"
2433
2435
  }) {
@@ -2437,7 +2439,7 @@ function Gr({
2437
2439
  s !== o.length - 1 && /* @__PURE__ */ a(le, { className: t })
2438
2440
  ] }, s)) });
2439
2441
  }
2440
- function Hr({
2442
+ function Vr({
2441
2443
  className: e,
2442
2444
  ...t
2443
2445
  }) {
@@ -2461,7 +2463,7 @@ function Hr({
2461
2463
  }
2462
2464
  );
2463
2465
  }
2464
- const Vr = ({
2466
+ const Fr = ({
2465
2467
  className: e,
2466
2468
  title: t,
2467
2469
  description: o,
@@ -2480,7 +2482,7 @@ const Vr = ({
2480
2482
  s
2481
2483
  ]
2482
2484
  }
2483
- ) }), Fr = k.forwardRef(({
2485
+ ) }), Kr = k.forwardRef(({
2484
2486
  data: e,
2485
2487
  initialSelectedItemId: t,
2486
2488
  onSelectChange: o,
@@ -2489,34 +2491,34 @@ const Vr = ({
2489
2491
  itemIcon: d,
2490
2492
  className: u,
2491
2493
  ...c
2492
- }, p) => {
2493
- const [l, _] = k.useState(t), M = k.useCallback((y) => {
2494
- _(y?.id), o && o(y);
2494
+ }, f) => {
2495
+ const [l, T] = k.useState(t), M = k.useCallback((y) => {
2496
+ T(y?.id), o && o(y);
2495
2497
  }, [o]), z = k.useMemo(() => {
2496
2498
  if (!t)
2497
2499
  return [];
2498
2500
  const y = [];
2499
- function f(m, E) {
2501
+ function p(m, P) {
2500
2502
  if (m instanceof Array)
2501
- for (let R = 0; R < m.length; R++) {
2502
- if (y.push(m[R].id), f(m[R], E) && !n)
2503
+ for (let A = 0; A < m.length; A++) {
2504
+ if (y.push(m[A].id), p(m[A], P) && !n)
2503
2505
  return !0;
2504
2506
  n || y.pop();
2505
2507
  }
2506
2508
  else {
2507
- if (!n && m.id === E)
2509
+ if (!n && m.id === P)
2508
2510
  return !0;
2509
2511
  if (m.children)
2510
- return f(m.children, E);
2512
+ return p(m.children, P);
2511
2513
  }
2512
2514
  }
2513
- return f(e, t), y;
2514
- }, [e, t, n]), { ref: C, width: S, height: P } = Be();
2515
- return /* @__PURE__ */ a("div", { ref: C, className: r("overflow-hidden", u), children: /* @__PURE__ */ a(zt, { style: { width: S, height: P }, children: /* @__PURE__ */ a("div", { className: "relative p-2", children: /* @__PURE__ */ a(
2515
+ return p(e, t), y;
2516
+ }, [e, t, n]), { ref: _, width: C, height: I } = Oe();
2517
+ return /* @__PURE__ */ a("div", { ref: _, className: r("overflow-hidden", u), children: /* @__PURE__ */ a(Ct, { style: { width: C, height: I }, children: /* @__PURE__ */ a("div", { className: "relative p-2", children: /* @__PURE__ */ a(
2516
2518
  ue,
2517
2519
  {
2518
2520
  data: e,
2519
- ref: p,
2521
+ ref: f,
2520
2522
  selectedItemId: l,
2521
2523
  handleSelectChange: M,
2522
2524
  expandedItemIds: z,
@@ -2525,7 +2527,7 @@ const Vr = ({
2525
2527
  ...c
2526
2528
  }
2527
2529
  ) }) }) });
2528
- }), ue = k.forwardRef(({ className: e, data: t, selectedItemId: o, handleSelectChange: n, expandedItemIds: s, FolderIcon: d, ItemIcon: u, ...c }, p) => /* @__PURE__ */ a("div", { ref: p, role: "tree", className: e, ...c, children: /* @__PURE__ */ a("ul", { children: t instanceof Array ? t.map((l) => /* @__PURE__ */ a("li", { children: l.children ? /* @__PURE__ */ a(N.Root, { type: "multiple", defaultValue: s, children: /* @__PURE__ */ i(N.Item, { value: l.id, children: [
2530
+ }), ue = k.forwardRef(({ className: e, data: t, selectedItemId: o, handleSelectChange: n, expandedItemIds: s, FolderIcon: d, ItemIcon: u, ...c }, f) => /* @__PURE__ */ a("div", { ref: f, role: "tree", className: e, ...c, children: /* @__PURE__ */ a("ul", { children: t instanceof Array ? t.map((l) => /* @__PURE__ */ a("li", { children: l.children ? /* @__PURE__ */ a(N.Root, { type: "multiple", defaultValue: s, children: /* @__PURE__ */ i(N.Item, { value: l.id, children: [
2529
2531
  /* @__PURE__ */ i(
2530
2532
  me,
2531
2533
  {
@@ -2625,12 +2627,12 @@ const fe = k.forwardRef(({ className: e, children: t, ...o }, n) => /* @__PURE__
2625
2627
  }
2626
2628
  ));
2627
2629
  fe.displayName = N.Content.displayName;
2628
- function Kr({
2630
+ function Ur({
2629
2631
  ...e
2630
2632
  }) {
2631
2633
  return /* @__PURE__ */ a(N.Root, { "data-slot": "accordion", ...e });
2632
2634
  }
2633
- function Ur({
2635
+ function Wr({
2634
2636
  className: e,
2635
2637
  ...t
2636
2638
  }) {
@@ -2643,7 +2645,7 @@ function Ur({
2643
2645
  }
2644
2646
  );
2645
2647
  }
2646
- function Wr({
2648
+ function qr({
2647
2649
  className: e,
2648
2650
  children: t,
2649
2651
  ...o
@@ -2664,7 +2666,7 @@ function Wr({
2664
2666
  }
2665
2667
  ) });
2666
2668
  }
2667
- function qr({
2669
+ function Xr({
2668
2670
  className: e,
2669
2671
  children: t,
2670
2672
  ...o
@@ -2679,7 +2681,7 @@ function qr({
2679
2681
  }
2680
2682
  );
2681
2683
  }
2682
- function Xr({
2684
+ function Yr({
2683
2685
  className: e,
2684
2686
  ...t
2685
2687
  }) {
@@ -2695,12 +2697,12 @@ function Xr({
2695
2697
  }
2696
2698
  );
2697
2699
  }
2698
- function Yr({
2700
+ function Jr({
2699
2701
  ...e
2700
2702
  }) {
2701
2703
  return /* @__PURE__ */ a(Y.Panel, { "data-slot": "resizable-panel", ...e });
2702
2704
  }
2703
- function Jr({
2705
+ function Qr({
2704
2706
  withHandle: e,
2705
2707
  className: t,
2706
2708
  ...o
@@ -2714,11 +2716,11 @@ function Jr({
2714
2716
  t
2715
2717
  ),
2716
2718
  ...o,
2717
- 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(Ie, { className: "size-2.5" }) })
2719
+ 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(Pe, { className: "size-2.5" }) })
2718
2720
  }
2719
2721
  );
2720
2722
  }
2721
- const St = G(
2723
+ const Tt = G(
2722
2724
  "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",
2723
2725
  {
2724
2726
  variants: {
@@ -2732,7 +2734,7 @@ const St = G(
2732
2734
  }
2733
2735
  }
2734
2736
  );
2735
- function Qr({
2737
+ function Zr({
2736
2738
  className: e,
2737
2739
  variant: t,
2738
2740
  ...o
@@ -2742,12 +2744,12 @@ function Qr({
2742
2744
  {
2743
2745
  "data-slot": "alert",
2744
2746
  role: "alert",
2745
- className: r(St({ variant: t }), e),
2747
+ className: r(Tt({ variant: t }), e),
2746
2748
  ...o
2747
2749
  }
2748
2750
  );
2749
2751
  }
2750
- function Zr({ className: e, ...t }) {
2752
+ function eo({ className: e, ...t }) {
2751
2753
  return /* @__PURE__ */ a(
2752
2754
  "div",
2753
2755
  {
@@ -2760,7 +2762,7 @@ function Zr({ className: e, ...t }) {
2760
2762
  }
2761
2763
  );
2762
2764
  }
2763
- function eo({
2765
+ function to({
2764
2766
  className: e,
2765
2767
  ...t
2766
2768
  }) {
@@ -2776,7 +2778,7 @@ function eo({
2776
2778
  }
2777
2779
  );
2778
2780
  }
2779
- function to({
2781
+ function ao({
2780
2782
  icon: e,
2781
2783
  size: t = 24,
2782
2784
  className: o,
@@ -2803,7 +2805,7 @@ function to({
2803
2805
  }
2804
2806
  );
2805
2807
  }
2806
- function ao({
2808
+ function ro({
2807
2809
  className: e,
2808
2810
  ...t
2809
2811
  }) {
@@ -2828,27 +2830,27 @@ function ao({
2828
2830
  }
2829
2831
  );
2830
2832
  }
2831
- function ro({
2833
+ function oo({
2832
2834
  ...e
2833
2835
  }) {
2834
- return /* @__PURE__ */ a(T.Root, { "data-slot": "alert-dialog", ...e });
2836
+ return /* @__PURE__ */ a(S.Root, { "data-slot": "alert-dialog", ...e });
2835
2837
  }
2836
- function oo({
2838
+ function no({
2837
2839
  ...e
2838
2840
  }) {
2839
- return /* @__PURE__ */ a(T.Trigger, { "data-slot": "alert-dialog-trigger", ...e });
2841
+ return /* @__PURE__ */ a(S.Trigger, { "data-slot": "alert-dialog-trigger", ...e });
2840
2842
  }
2841
- function Tt({
2843
+ function _t({
2842
2844
  ...e
2843
2845
  }) {
2844
- return /* @__PURE__ */ a(T.Portal, { "data-slot": "alert-dialog-portal", ...e });
2846
+ return /* @__PURE__ */ a(S.Portal, { "data-slot": "alert-dialog-portal", ...e });
2845
2847
  }
2846
- function _t({
2848
+ function Dt({
2847
2849
  className: e,
2848
2850
  ...t
2849
2851
  }) {
2850
2852
  return /* @__PURE__ */ a(
2851
- T.Overlay,
2853
+ S.Overlay,
2852
2854
  {
2853
2855
  "data-slot": "alert-dialog-overlay",
2854
2856
  className: r(
@@ -2859,14 +2861,14 @@ function _t({
2859
2861
  }
2860
2862
  );
2861
2863
  }
2862
- function no({
2864
+ function io({
2863
2865
  className: e,
2864
2866
  ...t
2865
2867
  }) {
2866
- return /* @__PURE__ */ i(Tt, { children: [
2867
- /* @__PURE__ */ a(_t, {}),
2868
+ return /* @__PURE__ */ i(_t, { children: [
2869
+ /* @__PURE__ */ a(Dt, {}),
2868
2870
  /* @__PURE__ */ a(
2869
- T.Content,
2871
+ S.Content,
2870
2872
  {
2871
2873
  "data-slot": "alert-dialog-content",
2872
2874
  className: r(
@@ -2878,7 +2880,7 @@ function no({
2878
2880
  )
2879
2881
  ] });
2880
2882
  }
2881
- function io({
2883
+ function so({
2882
2884
  className: e,
2883
2885
  ...t
2884
2886
  }) {
@@ -2891,7 +2893,7 @@ function io({
2891
2893
  }
2892
2894
  );
2893
2895
  }
2894
- function so({
2896
+ function lo({
2895
2897
  className: e,
2896
2898
  ...t
2897
2899
  }) {
@@ -2907,12 +2909,12 @@ function so({
2907
2909
  }
2908
2910
  );
2909
2911
  }
2910
- function lo({
2912
+ function co({
2911
2913
  className: e,
2912
2914
  ...t
2913
2915
  }) {
2914
2916
  return /* @__PURE__ */ a(
2915
- T.Title,
2917
+ S.Title,
2916
2918
  {
2917
2919
  "data-slot": "alert-dialog-title",
2918
2920
  className: r("text-lg font-semibold", e),
@@ -2920,12 +2922,12 @@ function lo({
2920
2922
  }
2921
2923
  );
2922
2924
  }
2923
- function co({
2925
+ function uo({
2924
2926
  className: e,
2925
2927
  ...t
2926
2928
  }) {
2927
2929
  return /* @__PURE__ */ a(
2928
- T.Description,
2930
+ S.Description,
2929
2931
  {
2930
2932
  "data-slot": "alert-dialog-description",
2931
2933
  className: r("text-muted-foreground text-sm", e),
@@ -2933,48 +2935,48 @@ function co({
2933
2935
  }
2934
2936
  );
2935
2937
  }
2936
- function uo({
2938
+ function mo({
2937
2939
  className: e,
2938
2940
  ...t
2939
2941
  }) {
2940
2942
  return /* @__PURE__ */ a(
2941
- T.Action,
2943
+ S.Action,
2942
2944
  {
2943
2945
  className: r(V(), e),
2944
2946
  ...t
2945
2947
  }
2946
2948
  );
2947
2949
  }
2948
- function mo({
2950
+ function fo({
2949
2951
  className: e,
2950
2952
  ...t
2951
2953
  }) {
2952
2954
  return /* @__PURE__ */ a(
2953
- T.Cancel,
2955
+ S.Cancel,
2954
2956
  {
2955
2957
  className: r(V({ variant: "outline" }), e),
2956
2958
  ...t
2957
2959
  }
2958
2960
  );
2959
2961
  }
2960
- const Dt = {
2962
+ const Mt = {
2961
2963
  theme: "system",
2962
2964
  setTheme: () => null
2963
- }, pe = ve(Dt);
2964
- function fo({
2965
+ }, pe = xe(Mt);
2966
+ function po({
2965
2967
  children: e,
2966
2968
  defaultTheme: t = "system",
2967
2969
  storageKey: o = "@clidey/ux/theme",
2968
2970
  ...n
2969
2971
  }) {
2970
- const [s, d] = xe(
2972
+ const [s, d] = we(
2971
2973
  () => localStorage.getItem(o) || t
2972
2974
  );
2973
- we(() => {
2975
+ Ne(() => {
2974
2976
  const c = window.document.documentElement;
2975
2977
  if (c.classList.remove("light", "dark"), s === "system") {
2976
- const p = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2977
- c.classList.add(p);
2978
+ const f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2979
+ c.classList.add(f);
2978
2980
  return;
2979
2981
  }
2980
2982
  c.classList.add(s);
@@ -2987,21 +2989,21 @@ function fo({
2987
2989
  };
2988
2990
  return /* @__PURE__ */ a(pe.Provider, { ...n, value: u, children: e });
2989
2991
  }
2990
- const Mt = () => {
2991
- const e = Ne(pe);
2992
+ const It = () => {
2993
+ const e = ye(pe);
2992
2994
  if (e === void 0)
2993
2995
  throw new Error("useTheme must be used within a ThemeProvider");
2994
2996
  return e;
2995
2997
  };
2996
- function po() {
2997
- const { setTheme: e } = Mt();
2998
- return /* @__PURE__ */ i(Ge, { children: [
2999
- /* @__PURE__ */ a(He, { children: /* @__PURE__ */ i(J, { variant: "outline", size: "icon", children: [
2998
+ function go() {
2999
+ const { setTheme: e } = It();
3000
+ return /* @__PURE__ */ i(He, { children: [
3001
+ /* @__PURE__ */ a(Ve, { children: /* @__PURE__ */ i(J, { variant: "outline", size: "icon", children: [
3000
3002
  /* @__PURE__ */ a(Q, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3001
3003
  /* @__PURE__ */ a(Z, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3002
3004
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle theme" })
3003
3005
  ] }) }),
3004
- /* @__PURE__ */ i(Ve, { align: "end", children: [
3006
+ /* @__PURE__ */ i(Fe, { align: "end", children: [
3005
3007
  /* @__PURE__ */ i(K, { onClick: () => e("light"), children: [
3006
3008
  /* @__PURE__ */ a(Q, { className: "size-4" }),
3007
3009
  "Light"
@@ -3011,177 +3013,177 @@ function po() {
3011
3013
  "Dark"
3012
3014
  ] }),
3013
3015
  /* @__PURE__ */ i(K, { onClick: () => e("system"), children: [
3014
- /* @__PURE__ */ a(Pe, { className: "size-4" }),
3016
+ /* @__PURE__ */ a(Re, { className: "size-4" }),
3015
3017
  "System"
3016
3018
  ] })
3017
3019
  ] })
3018
3020
  ] });
3019
3021
  }
3020
3022
  export {
3021
- Kr as Accordion,
3022
- qr as AccordionContent,
3023
- Ur as AccordionItem,
3024
- Wr as AccordionTrigger,
3025
- Qr as Alert,
3026
- eo as AlertDescription,
3027
- ro as AlertDialog,
3028
- uo as AlertDialogAction,
3029
- mo as AlertDialogCancel,
3030
- no as AlertDialogContent,
3031
- co as AlertDialogDescription,
3032
- so as AlertDialogFooter,
3033
- io as AlertDialogHeader,
3034
- lo as AlertDialogTitle,
3035
- oo as AlertDialogTrigger,
3036
- Zr as AlertTitle,
3037
- Ut as Badge,
3038
- qa as Breadcrumb,
3039
- Ya as BreadcrumbItem,
3040
- Ja as BreadcrumbLink,
3041
- Xa as BreadcrumbList,
3042
- Qa as BreadcrumbPage,
3043
- Za as BreadcrumbSeparator,
3023
+ Ur as Accordion,
3024
+ Xr as AccordionContent,
3025
+ Wr as AccordionItem,
3026
+ qr as AccordionTrigger,
3027
+ Zr as Alert,
3028
+ to as AlertDescription,
3029
+ oo as AlertDialog,
3030
+ mo as AlertDialogAction,
3031
+ fo as AlertDialogCancel,
3032
+ io as AlertDialogContent,
3033
+ uo as AlertDialogDescription,
3034
+ lo as AlertDialogFooter,
3035
+ so as AlertDialogHeader,
3036
+ co as AlertDialogTitle,
3037
+ no as AlertDialogTrigger,
3038
+ eo as AlertTitle,
3039
+ Wt as Badge,
3040
+ Xa as Breadcrumb,
3041
+ Ja as BreadcrumbItem,
3042
+ Qa as BreadcrumbLink,
3043
+ Ya as BreadcrumbList,
3044
+ Za as BreadcrumbPage,
3045
+ er as BreadcrumbSeparator,
3044
3046
  J as Button,
3045
- Wt as Card,
3046
- Jt as CardContent,
3047
- Yt as CardDescription,
3048
- Qt as CardFooter,
3049
- qt as CardHeader,
3050
- Xt as CardTitle,
3051
- Hr as Checkbox,
3052
- tt as Command,
3053
- ot as CommandEmpty,
3054
- nt as CommandGroup,
3055
- at as CommandInput,
3056
- it as CommandItem,
3057
- rt as CommandList,
3058
- Zt as ContextMenu,
3059
- sa as ContextMenuCheckboxItem,
3060
- na as ContextMenuContent,
3061
- ia as ContextMenuItem,
3062
- la as ContextMenuLabel,
3063
- aa as ContextMenuRadioGroup,
3064
- da as ContextMenuRadioItem,
3065
- ca as ContextMenuSeparator,
3066
- ua as ContextMenuShortcut,
3067
- ta as ContextMenuSub,
3068
- oa as ContextMenuSubContent,
3069
- ra as ContextMenuSubTrigger,
3070
- ea as ContextMenuTrigger,
3071
- er as Dialog,
3072
- ar as DialogContent,
3073
- ir as DialogDescription,
3074
- or as DialogFooter,
3075
- rr as DialogHeader,
3076
- nr as DialogTitle,
3077
- tr as DialogTrigger,
3078
- ma as Drawer,
3079
- pa as DrawerClose,
3080
- ga as DrawerContent,
3081
- xa as DrawerDescription,
3082
- ha as DrawerFooter,
3083
- ba as DrawerHeader,
3084
- va as DrawerTitle,
3085
- fa as DrawerTrigger,
3086
- Ge as DropdownMenu,
3087
- wa as DropdownMenuCheckboxItem,
3088
- Ve as DropdownMenuContent,
3047
+ qt as Card,
3048
+ Qt as CardContent,
3049
+ Jt as CardDescription,
3050
+ Zt as CardFooter,
3051
+ Xt as CardHeader,
3052
+ Yt as CardTitle,
3053
+ Vr as Checkbox,
3054
+ at as Command,
3055
+ nt as CommandEmpty,
3056
+ it as CommandGroup,
3057
+ rt as CommandInput,
3058
+ st as CommandItem,
3059
+ ot as CommandList,
3060
+ ea as ContextMenu,
3061
+ da as ContextMenuCheckboxItem,
3062
+ ia as ContextMenuContent,
3063
+ sa as ContextMenuItem,
3064
+ ca as ContextMenuLabel,
3065
+ ra as ContextMenuRadioGroup,
3066
+ la as ContextMenuRadioItem,
3067
+ ua as ContextMenuSeparator,
3068
+ ma as ContextMenuShortcut,
3069
+ aa as ContextMenuSub,
3070
+ na as ContextMenuSubContent,
3071
+ oa as ContextMenuSubTrigger,
3072
+ ta as ContextMenuTrigger,
3073
+ tr as Dialog,
3074
+ rr as DialogContent,
3075
+ sr as DialogDescription,
3076
+ nr as DialogFooter,
3077
+ or as DialogHeader,
3078
+ ir as DialogTitle,
3079
+ ar as DialogTrigger,
3080
+ fa as Drawer,
3081
+ ga as DrawerClose,
3082
+ ba as DrawerContent,
3083
+ wa as DrawerDescription,
3084
+ va as DrawerFooter,
3085
+ ha as DrawerHeader,
3086
+ xa as DrawerTitle,
3087
+ pa as DrawerTrigger,
3088
+ He as DropdownMenu,
3089
+ Na as DropdownMenuCheckboxItem,
3090
+ Fe as DropdownMenuContent,
3089
3091
  K as DropdownMenuItem,
3090
- ka as DropdownMenuLabel,
3091
- Na as DropdownMenuRadioGroup,
3092
- ya as DropdownMenuRadioItem,
3093
- za as DropdownMenuSeparator,
3094
- Ca as DropdownMenuShortcut,
3095
- Sa as DropdownMenuSub,
3096
- _a as DropdownMenuSubContent,
3097
- Ta as DropdownMenuSubTrigger,
3098
- He as DropdownMenuTrigger,
3099
- Vr as EmptyState,
3100
- to as Icon,
3101
- Fe as Input,
3102
- Ma as Label,
3103
- po as ModeToggle,
3104
- Ia as Pagination,
3105
- Pa as PaginationContent,
3106
- Ea as PaginationEllipsis,
3107
- Ra as PaginationItem,
3092
+ za as DropdownMenuLabel,
3093
+ ya as DropdownMenuRadioGroup,
3094
+ ka as DropdownMenuRadioItem,
3095
+ Ca as DropdownMenuSeparator,
3096
+ Sa as DropdownMenuShortcut,
3097
+ Ta as DropdownMenuSub,
3098
+ Da as DropdownMenuSubContent,
3099
+ _a as DropdownMenuSubTrigger,
3100
+ Ve as DropdownMenuTrigger,
3101
+ Fr as EmptyState,
3102
+ ao as Icon,
3103
+ Ke as Input,
3104
+ Ia as Label,
3105
+ go as ModeToggle,
3106
+ Pa as Pagination,
3107
+ Ra as PaginationContent,
3108
+ ja as PaginationEllipsis,
3109
+ Aa as PaginationItem,
3108
3110
  se as PaginationLink,
3109
- La as PaginationNext,
3110
- Aa as PaginationPrevious,
3111
- Ke as Popover,
3112
- We as PopoverContent,
3113
- Ue as PopoverTrigger,
3114
- Jr as ResizableHandle,
3115
- Yr as ResizablePanel,
3116
- Xr as ResizablePanelGroup,
3117
- zt as ScrollArea,
3118
- Da as SearchInput,
3119
- pr as SearchSelect,
3120
- sr as Select,
3121
- ur as SelectContent,
3122
- dr as SelectGroup,
3123
- fr as SelectItem,
3124
- mr as SelectLabel,
3125
- cr as SelectTrigger,
3126
- lr as SelectValue,
3111
+ Ea as PaginationNext,
3112
+ La as PaginationPrevious,
3113
+ Ue as Popover,
3114
+ qe as PopoverContent,
3115
+ We as PopoverTrigger,
3116
+ Qr as ResizableHandle,
3117
+ Jr as ResizablePanel,
3118
+ Yr as ResizablePanelGroup,
3119
+ Ct as ScrollArea,
3120
+ Ma as SearchInput,
3121
+ gr as SearchSelect,
3122
+ dr as Select,
3123
+ mr as SelectContent,
3124
+ lr as SelectGroup,
3125
+ pr as SelectItem,
3126
+ fr as SelectLabel,
3127
+ ur as SelectTrigger,
3128
+ cr as SelectValue,
3127
3129
  le as Separator,
3128
- ct as Sheet,
3129
- ft as SheetContent,
3130
- bt as SheetDescription,
3131
- br as SheetFooter,
3132
- pt as SheetHeader,
3133
- gt as SheetTitle,
3134
- gr as SheetTrigger,
3135
- vr as Sidebar,
3136
- Sr as SidebarContent,
3137
- zr as SidebarFooter,
3138
- Tr as SidebarGroup,
3139
- Dr as SidebarGroupAction,
3140
- Mr as SidebarGroupContent,
3141
- _r as SidebarGroupLabel,
3142
- kr as SidebarHeader,
3143
- yr as SidebarInput,
3144
- Nr as SidebarInset,
3145
- Ir as SidebarMenu,
3146
- Ar as SidebarMenuAction,
3147
- Lr as SidebarMenuBadge,
3148
- Rr as SidebarMenuButton,
3149
- Pr as SidebarMenuItem,
3150
- Er as SidebarMenuSkeleton,
3151
- jr as SidebarMenuSub,
3152
- Or as SidebarMenuSubButton,
3153
- Br as SidebarMenuSubItem,
3154
- hr as SidebarProvider,
3155
- wr as SidebarRail,
3156
- Cr as SidebarSeparator,
3157
- xr as SidebarTrigger,
3130
+ ut as Sheet,
3131
+ pt as SheetContent,
3132
+ ht as SheetDescription,
3133
+ hr as SheetFooter,
3134
+ gt as SheetHeader,
3135
+ bt as SheetTitle,
3136
+ br as SheetTrigger,
3137
+ xr as Sidebar,
3138
+ Tr as SidebarContent,
3139
+ Cr as SidebarFooter,
3140
+ _r as SidebarGroup,
3141
+ Mr as SidebarGroupAction,
3142
+ Ir as SidebarGroupContent,
3143
+ Dr as SidebarGroupLabel,
3144
+ zr as SidebarHeader,
3145
+ kr as SidebarInput,
3146
+ yr as SidebarInset,
3147
+ Pr as SidebarMenu,
3148
+ Lr as SidebarMenuAction,
3149
+ Er as SidebarMenuBadge,
3150
+ Ar as SidebarMenuButton,
3151
+ Rr as SidebarMenuItem,
3152
+ jr as SidebarMenuSkeleton,
3153
+ Br as SidebarMenuSub,
3154
+ $r as SidebarMenuSubButton,
3155
+ Or as SidebarMenuSubItem,
3156
+ vr as SidebarProvider,
3157
+ Nr as SidebarRail,
3158
+ Sr as SidebarSeparator,
3159
+ wr as SidebarTrigger,
3158
3160
  ae as Skeleton,
3159
- Gr as StackList,
3160
- $r as StackListItem,
3161
- ao as Switch,
3162
- Oa as Table,
3163
- qe as TableBody,
3164
- Va as TableCaption,
3165
- Ha as TableCell,
3166
- Ga as TableHead,
3167
- $a as TableHeader,
3168
- Xe as TableRow,
3169
- Fa as Tabs,
3170
- Wa as TabsContent,
3171
- Ka as TabsList,
3172
- Ua as TabsTrigger,
3173
- fo as ThemeProvider,
3174
- ja as Toaster,
3175
- Ye as Tooltip,
3176
- Qe as TooltipContent,
3161
+ Hr as StackList,
3162
+ Gr as StackListItem,
3163
+ ro as Switch,
3164
+ $a as Table,
3165
+ Xe as TableBody,
3166
+ Fa as TableCaption,
3167
+ Va as TableCell,
3168
+ Ha as TableHead,
3169
+ Ga as TableHeader,
3170
+ Ye as TableRow,
3171
+ Ka as Tabs,
3172
+ qa as TabsContent,
3173
+ Ua as TabsList,
3174
+ Wa as TabsTrigger,
3175
+ po as ThemeProvider,
3176
+ Ba as Toaster,
3177
+ Je as Tooltip,
3178
+ Ze as TooltipContent,
3177
3179
  de as TooltipProvider,
3178
- Je as TooltipTrigger,
3179
- Fr as Tree,
3180
- Ba as VirtualizedTableBody,
3180
+ Qe as TooltipTrigger,
3181
+ Kr as Tree,
3182
+ Oa as VirtualizedTableBody,
3181
3183
  r as cn,
3182
- Kt as formatDate,
3183
- Ft as toTitleCase,
3184
- ho as toast,
3184
+ Ut as formatDate,
3185
+ Kt as toTitleCase,
3186
+ vo as toast,
3185
3187
  F as useSidebar,
3186
- Mt as useTheme
3188
+ It as useTheme
3187
3189
  };