@clidey/ux 0.9.0 → 0.10.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,23 +1,28 @@
1
1
  import { jsx as a, jsxs as i } from "react/jsx-runtime";
2
- import { createContext as _, useState as M, useEffect as P, useContext as D } from "react";
3
- import { Slot as b } from "@radix-ui/react-slot";
4
- import { cva as h } from "class-variance-authority";
5
- import { clsx as I } from "clsx";
6
- import { twMerge as S } from "tailwind-merge";
7
- import * as d from "@radix-ui/react-context-menu";
8
- import { CheckIcon as w, CircleIcon as y, ChevronRightIcon as v, MoreHorizontalIcon as R, ChevronLeftIcon as L, ChevronRight as j, Sun as B, Moon as G } from "lucide-react";
9
- import { Drawer as l } from "vaul";
10
- import * as s from "@radix-ui/react-dropdown-menu";
11
- import * as H from "@radix-ui/react-label";
12
- import * as p from "@radix-ui/react-popover";
13
- import { useTheme as E } from "next-themes";
14
- import { Toaster as V } from "sonner";
15
- import * as f from "@radix-ui/react-tabs";
16
- import * as m from "@radix-ui/react-tooltip";
2
+ import * as f from "react";
3
+ import { createContext as q, useState as F, useEffect as X, useContext as Y } from "react";
4
+ import { Slot as h } from "@radix-ui/react-slot";
5
+ import { cva as P } from "class-variance-authority";
6
+ import { clsx as J } from "clsx";
7
+ import { twMerge as Q } from "tailwind-merge";
8
+ import * as l from "@radix-ui/react-context-menu";
9
+ import { CheckIcon as R, CircleIcon as j, ChevronRightIcon as B, MoreHorizontalIcon as Z, ChevronLeftIcon as ee, ChevronRight as te, ChevronDownIcon as O, ChevronUpIcon as ae, XIcon as re, PanelLeftIcon as oe, Sun as ne, Moon as ie } from "lucide-react";
10
+ import { Drawer as x } from "vaul";
11
+ import * as c from "@radix-ui/react-dropdown-menu";
12
+ import * as se from "@radix-ui/react-label";
13
+ import * as _ from "@radix-ui/react-popover";
14
+ import { useTheme as de } from "next-themes";
15
+ import { Toaster as le } from "sonner";
16
+ import { toast as Va } from "sonner";
17
+ import * as T from "@radix-ui/react-tabs";
18
+ import * as N from "@radix-ui/react-tooltip";
19
+ import * as u from "@radix-ui/react-select";
20
+ import * as ce from "@radix-ui/react-separator";
21
+ import * as y from "@radix-ui/react-dialog";
17
22
  function r(...e) {
18
- return S(I(e));
23
+ return Q(J(e));
19
24
  }
20
- const $ = h(
25
+ const ue = P(
21
26
  "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",
22
27
  {
23
28
  variants: {
@@ -33,22 +38,22 @@ const $ = h(
33
38
  }
34
39
  }
35
40
  );
36
- function de({
41
+ function Je({
37
42
  className: e,
38
43
  variant: t,
39
44
  asChild: o = !1,
40
45
  ...n
41
46
  }) {
42
47
  return /* @__PURE__ */ a(
43
- o ? b : "span",
48
+ o ? h : "span",
44
49
  {
45
50
  "data-slot": "badge",
46
- className: r($({ variant: t }), e),
51
+ className: r(ue({ variant: t }), e),
47
52
  ...n
48
53
  }
49
54
  );
50
55
  }
51
- const N = h(
56
+ const G = P(
52
57
  "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",
53
58
  {
54
59
  variants: {
@@ -73,23 +78,23 @@ const N = h(
73
78
  }
74
79
  }
75
80
  );
76
- function F({
81
+ function A({
77
82
  className: e,
78
83
  variant: t,
79
84
  size: o,
80
85
  asChild: n = !1,
81
- ...c
86
+ ...s
82
87
  }) {
83
88
  return /* @__PURE__ */ a(
84
- n ? b : "button",
89
+ n ? h : "button",
85
90
  {
86
91
  "data-slot": "button",
87
- className: r(N({ variant: t, size: o, className: e })),
88
- ...c
92
+ className: r(G({ variant: t, size: o, className: e })),
93
+ ...s
89
94
  }
90
95
  );
91
96
  }
92
- function se({ className: e, ...t }) {
97
+ function Qe({ className: e, ...t }) {
93
98
  return /* @__PURE__ */ a(
94
99
  "div",
95
100
  {
@@ -102,7 +107,7 @@ function se({ className: e, ...t }) {
102
107
  }
103
108
  );
104
109
  }
105
- function le({ className: e, ...t }) {
110
+ function Ze({ className: e, ...t }) {
106
111
  return /* @__PURE__ */ a(
107
112
  "div",
108
113
  {
@@ -115,7 +120,7 @@ function le({ className: e, ...t }) {
115
120
  }
116
121
  );
117
122
  }
118
- function ce({ className: e, ...t }) {
123
+ function et({ className: e, ...t }) {
119
124
  return /* @__PURE__ */ a(
120
125
  "div",
121
126
  {
@@ -125,7 +130,7 @@ function ce({ className: e, ...t }) {
125
130
  }
126
131
  );
127
132
  }
128
- function ue({ className: e, ...t }) {
133
+ function tt({ className: e, ...t }) {
129
134
  return /* @__PURE__ */ a(
130
135
  "div",
131
136
  {
@@ -135,7 +140,7 @@ function ue({ className: e, ...t }) {
135
140
  }
136
141
  );
137
142
  }
138
- function me({ className: e, ...t }) {
143
+ function at({ className: e, ...t }) {
139
144
  return /* @__PURE__ */ a(
140
145
  "div",
141
146
  {
@@ -145,7 +150,7 @@ function me({ className: e, ...t }) {
145
150
  }
146
151
  );
147
152
  }
148
- function pe({ className: e, ...t }) {
153
+ function rt({ className: e, ...t }) {
149
154
  return /* @__PURE__ */ a(
150
155
  "div",
151
156
  {
@@ -155,40 +160,40 @@ function pe({ className: e, ...t }) {
155
160
  }
156
161
  );
157
162
  }
158
- function fe({
163
+ function ot({
159
164
  ...e
160
165
  }) {
161
- return /* @__PURE__ */ a(d.Root, { "data-slot": "context-menu", ...e });
166
+ return /* @__PURE__ */ a(l.Root, { "data-slot": "context-menu", ...e });
162
167
  }
163
- function ge({
168
+ function nt({
164
169
  ...e
165
170
  }) {
166
- return /* @__PURE__ */ a(d.Trigger, { "data-slot": "context-menu-trigger", ...e });
171
+ return /* @__PURE__ */ a(l.Trigger, { "data-slot": "context-menu-trigger", ...e });
167
172
  }
168
- function be({
173
+ function it({
169
174
  ...e
170
175
  }) {
171
- return /* @__PURE__ */ a(d.Sub, { "data-slot": "context-menu-sub", ...e });
176
+ return /* @__PURE__ */ a(l.Sub, { "data-slot": "context-menu-sub", ...e });
172
177
  }
173
- function ve({
178
+ function st({
174
179
  ...e
175
180
  }) {
176
181
  return /* @__PURE__ */ a(
177
- d.RadioGroup,
182
+ l.RadioGroup,
178
183
  {
179
184
  "data-slot": "context-menu-radio-group",
180
185
  ...e
181
186
  }
182
187
  );
183
188
  }
184
- function xe({
189
+ function dt({
185
190
  className: e,
186
191
  inset: t,
187
192
  children: o,
188
193
  ...n
189
194
  }) {
190
195
  return /* @__PURE__ */ i(
191
- d.SubTrigger,
196
+ l.SubTrigger,
192
197
  {
193
198
  "data-slot": "context-menu-sub-trigger",
194
199
  "data-inset": t,
@@ -199,17 +204,17 @@ function xe({
199
204
  ...n,
200
205
  children: [
201
206
  o,
202
- /* @__PURE__ */ a(v, { className: "ml-auto" })
207
+ /* @__PURE__ */ a(B, { className: "ml-auto" })
203
208
  ]
204
209
  }
205
210
  );
206
211
  }
207
- function he({
212
+ function lt({
208
213
  className: e,
209
214
  ...t
210
215
  }) {
211
216
  return /* @__PURE__ */ a(
212
- d.SubContent,
217
+ l.SubContent,
213
218
  {
214
219
  "data-slot": "context-menu-sub-content",
215
220
  className: r(
@@ -220,12 +225,12 @@ function he({
220
225
  }
221
226
  );
222
227
  }
223
- function we({
228
+ function ct({
224
229
  className: e,
225
230
  ...t
226
231
  }) {
227
- return /* @__PURE__ */ a(d.Portal, { children: /* @__PURE__ */ a(
228
- d.Content,
232
+ return /* @__PURE__ */ a(l.Portal, { children: /* @__PURE__ */ a(
233
+ l.Content,
229
234
  {
230
235
  "data-slot": "context-menu-content",
231
236
  className: r(
@@ -236,14 +241,14 @@ function we({
236
241
  }
237
242
  ) });
238
243
  }
239
- function ye({
244
+ function ut({
240
245
  className: e,
241
246
  inset: t,
242
247
  variant: o = "default",
243
248
  ...n
244
249
  }) {
245
250
  return /* @__PURE__ */ a(
246
- d.Item,
251
+ l.Item,
247
252
  {
248
253
  "data-slot": "context-menu-item",
249
254
  "data-inset": t,
@@ -256,14 +261,14 @@ function ye({
256
261
  }
257
262
  );
258
263
  }
259
- function Ne({
264
+ function mt({
260
265
  className: e,
261
266
  children: t,
262
267
  checked: o,
263
268
  ...n
264
269
  }) {
265
270
  return /* @__PURE__ */ i(
266
- d.CheckboxItem,
271
+ l.CheckboxItem,
267
272
  {
268
273
  "data-slot": "context-menu-checkbox-item",
269
274
  className: r(
@@ -273,19 +278,19 @@ function Ne({
273
278
  checked: o,
274
279
  ...n,
275
280
  children: [
276
- /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d.ItemIndicator, { children: /* @__PURE__ */ a(w, { className: "size-4" }) }) }),
281
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(l.ItemIndicator, { children: /* @__PURE__ */ a(R, { className: "size-4" }) }) }),
277
282
  t
278
283
  ]
279
284
  }
280
285
  );
281
286
  }
282
- function ke({
287
+ function ft({
283
288
  className: e,
284
289
  children: t,
285
290
  ...o
286
291
  }) {
287
292
  return /* @__PURE__ */ i(
288
- d.RadioItem,
293
+ l.RadioItem,
289
294
  {
290
295
  "data-slot": "context-menu-radio-item",
291
296
  className: r(
@@ -294,19 +299,19 @@ function ke({
294
299
  ),
295
300
  ...o,
296
301
  children: [
297
- /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d.ItemIndicator, { children: /* @__PURE__ */ a(y, { className: "size-2 fill-current" }) }) }),
302
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(l.ItemIndicator, { children: /* @__PURE__ */ a(j, { className: "size-2 fill-current" }) }) }),
298
303
  t
299
304
  ]
300
305
  }
301
306
  );
302
307
  }
303
- function Ce({
308
+ function pt({
304
309
  className: e,
305
310
  inset: t,
306
311
  ...o
307
312
  }) {
308
313
  return /* @__PURE__ */ a(
309
- d.Label,
314
+ l.Label,
310
315
  {
311
316
  "data-slot": "context-menu-label",
312
317
  "data-inset": t,
@@ -318,12 +323,12 @@ function Ce({
318
323
  }
319
324
  );
320
325
  }
321
- function ze({
326
+ function bt({
322
327
  className: e,
323
328
  ...t
324
329
  }) {
325
330
  return /* @__PURE__ */ a(
326
- d.Separator,
331
+ l.Separator,
327
332
  {
328
333
  "data-slot": "context-menu-separator",
329
334
  className: r("bg-border -mx-1 my-1 h-px", e),
@@ -331,7 +336,7 @@ function ze({
331
336
  }
332
337
  );
333
338
  }
334
- function Te({
339
+ function gt({
335
340
  className: e,
336
341
  ...t
337
342
  }) {
@@ -347,32 +352,32 @@ function Te({
347
352
  }
348
353
  );
349
354
  }
350
- function _e({
355
+ function vt({
351
356
  ...e
352
357
  }) {
353
- return /* @__PURE__ */ a(l.Root, { "data-slot": "drawer", ...e });
358
+ return /* @__PURE__ */ a(x.Root, { "data-slot": "drawer", ...e });
354
359
  }
355
- function Me({
360
+ function ht({
356
361
  ...e
357
362
  }) {
358
- return /* @__PURE__ */ a(l.Trigger, { "data-slot": "drawer-trigger", ...e });
363
+ return /* @__PURE__ */ a(x.Trigger, { "data-slot": "drawer-trigger", ...e });
359
364
  }
360
- function O({
365
+ function me({
361
366
  ...e
362
367
  }) {
363
- return /* @__PURE__ */ a(l.Portal, { "data-slot": "drawer-portal", ...e });
368
+ return /* @__PURE__ */ a(x.Portal, { "data-slot": "drawer-portal", ...e });
364
369
  }
365
- function Pe({
370
+ function xt({
366
371
  ...e
367
372
  }) {
368
- return /* @__PURE__ */ a(l.Close, { "data-slot": "drawer-close", ...e });
373
+ return /* @__PURE__ */ a(x.Close, { "data-slot": "drawer-close", ...e });
369
374
  }
370
- function q({
375
+ function fe({
371
376
  className: e,
372
377
  ...t
373
378
  }) {
374
379
  return /* @__PURE__ */ a(
375
- l.Overlay,
380
+ x.Overlay,
376
381
  {
377
382
  "data-slot": "drawer-overlay",
378
383
  className: r(
@@ -383,15 +388,15 @@ function q({
383
388
  }
384
389
  );
385
390
  }
386
- function De({
391
+ function wt({
387
392
  className: e,
388
393
  children: t,
389
394
  ...o
390
395
  }) {
391
- return /* @__PURE__ */ i(O, { "data-slot": "drawer-portal", children: [
392
- /* @__PURE__ */ a(q, {}),
396
+ return /* @__PURE__ */ i(me, { "data-slot": "drawer-portal", children: [
397
+ /* @__PURE__ */ a(fe, {}),
393
398
  /* @__PURE__ */ i(
394
- l.Content,
399
+ x.Content,
395
400
  {
396
401
  "data-slot": "drawer-content",
397
402
  className: r(
@@ -411,7 +416,7 @@ function De({
411
416
  )
412
417
  ] });
413
418
  }
414
- function Ie({ className: e, ...t }) {
419
+ function yt({ className: e, ...t }) {
415
420
  return /* @__PURE__ */ a(
416
421
  "div",
417
422
  {
@@ -424,7 +429,7 @@ function Ie({ className: e, ...t }) {
424
429
  }
425
430
  );
426
431
  }
427
- function Se({ className: e, ...t }) {
432
+ function Nt({ className: e, ...t }) {
428
433
  return /* @__PURE__ */ a(
429
434
  "div",
430
435
  {
@@ -434,12 +439,12 @@ function Se({ className: e, ...t }) {
434
439
  }
435
440
  );
436
441
  }
437
- function Re({
442
+ function kt({
438
443
  className: e,
439
444
  ...t
440
445
  }) {
441
446
  return /* @__PURE__ */ a(
442
- l.Title,
447
+ x.Title,
443
448
  {
444
449
  "data-slot": "drawer-title",
445
450
  className: r("text-foreground font-semibold", e),
@@ -447,12 +452,12 @@ function Re({
447
452
  }
448
453
  );
449
454
  }
450
- function Le({
455
+ function zt({
451
456
  className: e,
452
457
  ...t
453
458
  }) {
454
459
  return /* @__PURE__ */ a(
455
- l.Description,
460
+ x.Description,
456
461
  {
457
462
  "data-slot": "drawer-description",
458
463
  className: r("text-muted-foreground text-sm", e),
@@ -460,29 +465,29 @@ function Le({
460
465
  }
461
466
  );
462
467
  }
463
- function J({
468
+ function pe({
464
469
  ...e
465
470
  }) {
466
- return /* @__PURE__ */ a(s.Root, { "data-slot": "dropdown-menu", ...e });
471
+ return /* @__PURE__ */ a(c.Root, { "data-slot": "dropdown-menu", ...e });
467
472
  }
468
- function Q({
473
+ function be({
469
474
  ...e
470
475
  }) {
471
476
  return /* @__PURE__ */ a(
472
- s.Trigger,
477
+ c.Trigger,
473
478
  {
474
479
  "data-slot": "dropdown-menu-trigger",
475
480
  ...e
476
481
  }
477
482
  );
478
483
  }
479
- function U({
484
+ function ge({
480
485
  className: e,
481
486
  sideOffset: t = 4,
482
487
  ...o
483
488
  }) {
484
- return /* @__PURE__ */ a(s.Portal, { children: /* @__PURE__ */ a(
485
- s.Content,
489
+ return /* @__PURE__ */ a(c.Portal, { children: /* @__PURE__ */ a(
490
+ c.Content,
486
491
  {
487
492
  "data-slot": "dropdown-menu-content",
488
493
  sideOffset: t,
@@ -494,14 +499,14 @@ function U({
494
499
  }
495
500
  ) });
496
501
  }
497
- function g({
502
+ function I({
498
503
  className: e,
499
504
  inset: t,
500
505
  variant: o = "default",
501
506
  ...n
502
507
  }) {
503
508
  return /* @__PURE__ */ a(
504
- s.Item,
509
+ c.Item,
505
510
  {
506
511
  "data-slot": "dropdown-menu-item",
507
512
  "data-inset": t,
@@ -514,14 +519,14 @@ function g({
514
519
  }
515
520
  );
516
521
  }
517
- function je({
522
+ function St({
518
523
  className: e,
519
524
  children: t,
520
525
  checked: o,
521
526
  ...n
522
527
  }) {
523
528
  return /* @__PURE__ */ i(
524
- s.CheckboxItem,
529
+ c.CheckboxItem,
525
530
  {
526
531
  "data-slot": "dropdown-menu-checkbox-item",
527
532
  className: r(
@@ -531,30 +536,30 @@ function je({
531
536
  checked: o,
532
537
  ...n,
533
538
  children: [
534
- /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(w, { className: "size-4" }) }) }),
539
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(c.ItemIndicator, { children: /* @__PURE__ */ a(R, { className: "size-4" }) }) }),
535
540
  t
536
541
  ]
537
542
  }
538
543
  );
539
544
  }
540
- function Be({
545
+ function Ct({
541
546
  ...e
542
547
  }) {
543
548
  return /* @__PURE__ */ a(
544
- s.RadioGroup,
549
+ c.RadioGroup,
545
550
  {
546
551
  "data-slot": "dropdown-menu-radio-group",
547
552
  ...e
548
553
  }
549
554
  );
550
555
  }
551
- function Ge({
556
+ function _t({
552
557
  className: e,
553
558
  children: t,
554
559
  ...o
555
560
  }) {
556
561
  return /* @__PURE__ */ i(
557
- s.RadioItem,
562
+ c.RadioItem,
558
563
  {
559
564
  "data-slot": "dropdown-menu-radio-item",
560
565
  className: r(
@@ -563,19 +568,19 @@ function Ge({
563
568
  ),
564
569
  ...o,
565
570
  children: [
566
- /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(y, { className: "size-2 fill-current" }) }) }),
571
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(c.ItemIndicator, { children: /* @__PURE__ */ a(j, { className: "size-2 fill-current" }) }) }),
567
572
  t
568
573
  ]
569
574
  }
570
575
  );
571
576
  }
572
- function He({
577
+ function Tt({
573
578
  className: e,
574
579
  inset: t,
575
580
  ...o
576
581
  }) {
577
582
  return /* @__PURE__ */ a(
578
- s.Label,
583
+ c.Label,
579
584
  {
580
585
  "data-slot": "dropdown-menu-label",
581
586
  "data-inset": t,
@@ -587,12 +592,12 @@ function He({
587
592
  }
588
593
  );
589
594
  }
590
- function Ee({
595
+ function Mt({
591
596
  className: e,
592
597
  ...t
593
598
  }) {
594
599
  return /* @__PURE__ */ a(
595
- s.Separator,
600
+ c.Separator,
596
601
  {
597
602
  "data-slot": "dropdown-menu-separator",
598
603
  className: r("bg-border -mx-1 my-1 h-px", e),
@@ -600,7 +605,7 @@ function Ee({
600
605
  }
601
606
  );
602
607
  }
603
- function Ve({
608
+ function It({
604
609
  className: e,
605
610
  ...t
606
611
  }) {
@@ -616,19 +621,19 @@ function Ve({
616
621
  }
617
622
  );
618
623
  }
619
- function $e({
624
+ function Dt({
620
625
  ...e
621
626
  }) {
622
- return /* @__PURE__ */ a(s.Sub, { "data-slot": "dropdown-menu-sub", ...e });
627
+ return /* @__PURE__ */ a(c.Sub, { "data-slot": "dropdown-menu-sub", ...e });
623
628
  }
624
- function Fe({
629
+ function Pt({
625
630
  className: e,
626
631
  inset: t,
627
632
  children: o,
628
633
  ...n
629
634
  }) {
630
635
  return /* @__PURE__ */ i(
631
- s.SubTrigger,
636
+ c.SubTrigger,
632
637
  {
633
638
  "data-slot": "dropdown-menu-sub-trigger",
634
639
  "data-inset": t,
@@ -639,17 +644,17 @@ function Fe({
639
644
  ...n,
640
645
  children: [
641
646
  o,
642
- /* @__PURE__ */ a(v, { className: "ml-auto size-4" })
647
+ /* @__PURE__ */ a(B, { className: "ml-auto size-4" })
643
648
  ]
644
649
  }
645
650
  );
646
651
  }
647
- function Oe({
652
+ function Rt({
648
653
  className: e,
649
654
  ...t
650
655
  }) {
651
656
  return /* @__PURE__ */ a(
652
- s.SubContent,
657
+ c.SubContent,
653
658
  {
654
659
  "data-slot": "dropdown-menu-sub-content",
655
660
  className: r(
@@ -660,7 +665,7 @@ function Oe({
660
665
  }
661
666
  );
662
667
  }
663
- function qe({ className: e, type: t, ...o }) {
668
+ function ve({ className: e, type: t, ...o }) {
664
669
  return /* @__PURE__ */ a(
665
670
  "input",
666
671
  {
@@ -676,12 +681,12 @@ function qe({ className: e, type: t, ...o }) {
676
681
  }
677
682
  );
678
683
  }
679
- function Je({
684
+ function Bt({
680
685
  className: e,
681
686
  ...t
682
687
  }) {
683
688
  return /* @__PURE__ */ a(
684
- H.Root,
689
+ se.Root,
685
690
  {
686
691
  "data-slot": "label",
687
692
  className: r(
@@ -692,7 +697,7 @@ function Je({
692
697
  }
693
698
  );
694
699
  }
695
- function Qe({ className: e, ...t }) {
700
+ function Lt({ className: e, ...t }) {
696
701
  return /* @__PURE__ */ a(
697
702
  "nav",
698
703
  {
@@ -704,7 +709,7 @@ function Qe({ className: e, ...t }) {
704
709
  }
705
710
  );
706
711
  }
707
- function Ue({
712
+ function Et({
708
713
  className: e,
709
714
  ...t
710
715
  }) {
@@ -717,10 +722,10 @@ function Ue({
717
722
  }
718
723
  );
719
724
  }
720
- function We({ ...e }) {
725
+ function jt({ ...e }) {
721
726
  return /* @__PURE__ */ a("li", { "data-slot": "pagination-item", ...e });
722
727
  }
723
- function k({
728
+ function H({
724
729
  className: e,
725
730
  isActive: t,
726
731
  size: o = "icon",
@@ -733,7 +738,7 @@ function k({
733
738
  "data-slot": "pagination-link",
734
739
  "data-active": t,
735
740
  className: r(
736
- N({
741
+ G({
737
742
  variant: t ? "outline" : "ghost",
738
743
  size: o
739
744
  }),
@@ -743,30 +748,30 @@ function k({
743
748
  }
744
749
  );
745
750
  }
746
- function Xe({
751
+ function Ot({
747
752
  className: e,
748
753
  ...t
749
754
  }) {
750
755
  return /* @__PURE__ */ i(
751
- k,
756
+ H,
752
757
  {
753
758
  "aria-label": "Go to previous page",
754
759
  size: "default",
755
760
  className: r("gap-1 px-2.5 sm:pl-2.5", e),
756
761
  ...t,
757
762
  children: [
758
- /* @__PURE__ */ a(L, {}),
763
+ /* @__PURE__ */ a(ee, {}),
759
764
  /* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Previous" })
760
765
  ]
761
766
  }
762
767
  );
763
768
  }
764
- function Ye({
769
+ function Gt({
765
770
  className: e,
766
771
  ...t
767
772
  }) {
768
773
  return /* @__PURE__ */ i(
769
- k,
774
+ H,
770
775
  {
771
776
  "aria-label": "Go to next page",
772
777
  size: "default",
@@ -774,12 +779,12 @@ function Ye({
774
779
  ...t,
775
780
  children: [
776
781
  /* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Next" }),
777
- /* @__PURE__ */ a(v, {})
782
+ /* @__PURE__ */ a(B, {})
778
783
  ]
779
784
  }
780
785
  );
781
786
  }
782
- function Ze({
787
+ function At({
783
788
  className: e,
784
789
  ...t
785
790
  }) {
@@ -791,30 +796,30 @@ function Ze({
791
796
  className: r("flex size-9 items-center justify-center", e),
792
797
  ...t,
793
798
  children: [
794
- /* @__PURE__ */ a(R, { className: "size-4" }),
799
+ /* @__PURE__ */ a(Z, { className: "size-4" }),
795
800
  /* @__PURE__ */ a("span", { className: "sr-only", children: "More pages" })
796
801
  ]
797
802
  }
798
803
  );
799
804
  }
800
- function Ae({
805
+ function Ht({
801
806
  ...e
802
807
  }) {
803
- return /* @__PURE__ */ a(p.Root, { "data-slot": "popover", ...e });
808
+ return /* @__PURE__ */ a(_.Root, { "data-slot": "popover", ...e });
804
809
  }
805
- function Ke({
810
+ function Vt({
806
811
  ...e
807
812
  }) {
808
- return /* @__PURE__ */ a(p.Trigger, { "data-slot": "popover-trigger", ...e });
813
+ return /* @__PURE__ */ a(_.Trigger, { "data-slot": "popover-trigger", ...e });
809
814
  }
810
- function et({
815
+ function $t({
811
816
  className: e,
812
817
  align: t = "center",
813
818
  sideOffset: o = 4,
814
819
  ...n
815
820
  }) {
816
- return /* @__PURE__ */ a(p.Portal, { children: /* @__PURE__ */ a(
817
- p.Content,
821
+ return /* @__PURE__ */ a(_.Portal, { children: /* @__PURE__ */ a(
822
+ _.Content,
818
823
  {
819
824
  "data-slot": "popover-content",
820
825
  align: t,
@@ -827,7 +832,7 @@ function et({
827
832
  }
828
833
  ) });
829
834
  }
830
- function tt({ className: e, ...t }) {
835
+ function E({ className: e, ...t }) {
831
836
  return /* @__PURE__ */ a(
832
837
  "div",
833
838
  {
@@ -837,10 +842,10 @@ function tt({ className: e, ...t }) {
837
842
  }
838
843
  );
839
844
  }
840
- const at = ({ ...e }) => {
841
- const { theme: t = "system" } = E();
845
+ const Kt = ({ ...e }) => {
846
+ const { theme: t = "system" } = de();
842
847
  return /* @__PURE__ */ a(
843
- V,
848
+ le,
844
849
  {
845
850
  theme: t,
846
851
  className: "toaster group",
@@ -853,7 +858,7 @@ const at = ({ ...e }) => {
853
858
  }
854
859
  );
855
860
  };
856
- function rt({ className: e, ...t }) {
861
+ function Wt({ className: e, ...t }) {
857
862
  return /* @__PURE__ */ a(
858
863
  "div",
859
864
  {
@@ -870,7 +875,7 @@ function rt({ className: e, ...t }) {
870
875
  }
871
876
  );
872
877
  }
873
- function ot({ className: e, ...t }) {
878
+ function Ut({ className: e, ...t }) {
874
879
  return /* @__PURE__ */ a(
875
880
  "thead",
876
881
  {
@@ -880,7 +885,7 @@ function ot({ className: e, ...t }) {
880
885
  }
881
886
  );
882
887
  }
883
- function nt({ className: e, ...t }) {
888
+ function qt({ className: e, ...t }) {
884
889
  return /* @__PURE__ */ a(
885
890
  "tbody",
886
891
  {
@@ -890,7 +895,7 @@ function nt({ className: e, ...t }) {
890
895
  }
891
896
  );
892
897
  }
893
- function it({ className: e, ...t }) {
898
+ function Ft({ className: e, ...t }) {
894
899
  return /* @__PURE__ */ a(
895
900
  "tr",
896
901
  {
@@ -903,7 +908,7 @@ function it({ className: e, ...t }) {
903
908
  }
904
909
  );
905
910
  }
906
- function dt({ className: e, ...t }) {
911
+ function Xt({ className: e, ...t }) {
907
912
  return /* @__PURE__ */ a(
908
913
  "th",
909
914
  {
@@ -916,7 +921,7 @@ function dt({ className: e, ...t }) {
916
921
  }
917
922
  );
918
923
  }
919
- function st({ className: e, ...t }) {
924
+ function Yt({ className: e, ...t }) {
920
925
  return /* @__PURE__ */ a(
921
926
  "td",
922
927
  {
@@ -929,7 +934,7 @@ function st({ className: e, ...t }) {
929
934
  }
930
935
  );
931
936
  }
932
- function lt({
937
+ function Jt({
933
938
  className: e,
934
939
  ...t
935
940
  }) {
@@ -942,12 +947,12 @@ function lt({
942
947
  }
943
948
  );
944
949
  }
945
- function ct({
950
+ function Qt({
946
951
  className: e,
947
952
  ...t
948
953
  }) {
949
954
  return /* @__PURE__ */ a(
950
- f.Root,
955
+ T.Root,
951
956
  {
952
957
  "data-slot": "tabs",
953
958
  className: r("flex flex-col gap-2", e),
@@ -955,12 +960,12 @@ function ct({
955
960
  }
956
961
  );
957
962
  }
958
- function ut({
963
+ function Zt({
959
964
  className: e,
960
965
  ...t
961
966
  }) {
962
967
  return /* @__PURE__ */ a(
963
- f.List,
968
+ T.List,
964
969
  {
965
970
  "data-slot": "tabs-list",
966
971
  className: r(
@@ -971,12 +976,12 @@ function ut({
971
976
  }
972
977
  );
973
978
  }
974
- function mt({
979
+ function ea({
975
980
  className: e,
976
981
  ...t
977
982
  }) {
978
983
  return /* @__PURE__ */ a(
979
- f.Trigger,
984
+ T.Trigger,
980
985
  {
981
986
  "data-slot": "tabs-trigger",
982
987
  className: r(
@@ -987,12 +992,12 @@ function mt({
987
992
  }
988
993
  );
989
994
  }
990
- function pt({
995
+ function ta({
991
996
  className: e,
992
997
  ...t
993
998
  }) {
994
999
  return /* @__PURE__ */ a(
995
- f.Content,
1000
+ T.Content,
996
1001
  {
997
1002
  "data-slot": "tabs-content",
998
1003
  className: r("flex-1 outline-none", e),
@@ -1000,12 +1005,12 @@ function pt({
1000
1005
  }
1001
1006
  );
1002
1007
  }
1003
- function W({
1008
+ function V({
1004
1009
  delayDuration: e = 0,
1005
1010
  ...t
1006
1011
  }) {
1007
1012
  return /* @__PURE__ */ a(
1008
- m.Provider,
1013
+ N.Provider,
1009
1014
  {
1010
1015
  "data-slot": "tooltip-provider",
1011
1016
  delayDuration: e,
@@ -1013,24 +1018,24 @@ function W({
1013
1018
  }
1014
1019
  );
1015
1020
  }
1016
- function ft({
1021
+ function he({
1017
1022
  ...e
1018
1023
  }) {
1019
- return /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(m.Root, { "data-slot": "tooltip", ...e }) });
1024
+ return /* @__PURE__ */ a(V, { children: /* @__PURE__ */ a(N.Root, { "data-slot": "tooltip", ...e }) });
1020
1025
  }
1021
- function gt({
1026
+ function xe({
1022
1027
  ...e
1023
1028
  }) {
1024
- return /* @__PURE__ */ a(m.Trigger, { "data-slot": "tooltip-trigger", ...e });
1029
+ return /* @__PURE__ */ a(N.Trigger, { "data-slot": "tooltip-trigger", ...e });
1025
1030
  }
1026
- function bt({
1031
+ function we({
1027
1032
  className: e,
1028
1033
  sideOffset: t = 0,
1029
1034
  children: o,
1030
1035
  ...n
1031
1036
  }) {
1032
- return /* @__PURE__ */ a(m.Portal, { children: /* @__PURE__ */ i(
1033
- m.Content,
1037
+ return /* @__PURE__ */ a(N.Portal, { children: /* @__PURE__ */ i(
1038
+ N.Content,
1034
1039
  {
1035
1040
  "data-slot": "tooltip-content",
1036
1041
  sideOffset: t,
@@ -1041,15 +1046,15 @@ function bt({
1041
1046
  ...n,
1042
1047
  children: [
1043
1048
  o,
1044
- /* @__PURE__ */ a(m.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1049
+ /* @__PURE__ */ a(N.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1045
1050
  ]
1046
1051
  }
1047
1052
  ) });
1048
1053
  }
1049
- function vt({ ...e }) {
1054
+ function aa({ ...e }) {
1050
1055
  return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
1051
1056
  }
1052
- function xt({ className: e, ...t }) {
1057
+ function ra({ className: e, ...t }) {
1053
1058
  return /* @__PURE__ */ a(
1054
1059
  "ol",
1055
1060
  {
@@ -1062,7 +1067,7 @@ function xt({ className: e, ...t }) {
1062
1067
  }
1063
1068
  );
1064
1069
  }
1065
- function ht({ className: e, ...t }) {
1070
+ function oa({ className: e, ...t }) {
1066
1071
  return /* @__PURE__ */ a(
1067
1072
  "li",
1068
1073
  {
@@ -1072,13 +1077,13 @@ function ht({ className: e, ...t }) {
1072
1077
  }
1073
1078
  );
1074
1079
  }
1075
- function wt({
1080
+ function na({
1076
1081
  asChild: e,
1077
1082
  className: t,
1078
1083
  ...o
1079
1084
  }) {
1080
1085
  return /* @__PURE__ */ a(
1081
- e ? b : "a",
1086
+ e ? h : "a",
1082
1087
  {
1083
1088
  "data-slot": "breadcrumb-link",
1084
1089
  className: r("hover:text-foreground transition-colors", t),
@@ -1086,7 +1091,7 @@ function wt({
1086
1091
  }
1087
1092
  );
1088
1093
  }
1089
- function yt({ className: e, ...t }) {
1094
+ function ia({ className: e, ...t }) {
1090
1095
  return /* @__PURE__ */ a(
1091
1096
  "span",
1092
1097
  {
@@ -1099,7 +1104,7 @@ function yt({ className: e, ...t }) {
1099
1104
  }
1100
1105
  );
1101
1106
  }
1102
- function Nt({
1107
+ function sa({
1103
1108
  children: e,
1104
1109
  className: t,
1105
1110
  ...o
@@ -1112,140 +1117,989 @@ function Nt({
1112
1117
  "aria-hidden": "true",
1113
1118
  className: r("[&>svg]:size-3.5", t),
1114
1119
  ...o,
1115
- children: e ?? /* @__PURE__ */ a(j, {})
1120
+ children: e ?? /* @__PURE__ */ a(te, {})
1121
+ }
1122
+ );
1123
+ }
1124
+ function da({
1125
+ ...e
1126
+ }) {
1127
+ return /* @__PURE__ */ a(u.Root, { "data-slot": "select", ...e });
1128
+ }
1129
+ function la({
1130
+ ...e
1131
+ }) {
1132
+ return /* @__PURE__ */ a(u.Group, { "data-slot": "select-group", ...e });
1133
+ }
1134
+ function ca({
1135
+ ...e
1136
+ }) {
1137
+ return /* @__PURE__ */ a(u.Value, { "data-slot": "select-value", ...e });
1138
+ }
1139
+ function ua({
1140
+ className: e,
1141
+ size: t = "default",
1142
+ children: o,
1143
+ ...n
1144
+ }) {
1145
+ return /* @__PURE__ */ i(
1146
+ u.Trigger,
1147
+ {
1148
+ "data-slot": "select-trigger",
1149
+ "data-size": t,
1150
+ className: r(
1151
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1152
+ e
1153
+ ),
1154
+ ...n,
1155
+ children: [
1156
+ o,
1157
+ /* @__PURE__ */ a(u.Icon, { asChild: !0, children: /* @__PURE__ */ a(O, { className: "size-4 opacity-50" }) })
1158
+ ]
1159
+ }
1160
+ );
1161
+ }
1162
+ function ma({
1163
+ className: e,
1164
+ children: t,
1165
+ position: o = "popper",
1166
+ ...n
1167
+ }) {
1168
+ return /* @__PURE__ */ a(u.Portal, { children: /* @__PURE__ */ i(
1169
+ u.Content,
1170
+ {
1171
+ "data-slot": "select-content",
1172
+ className: r(
1173
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
1174
+ o === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1175
+ e
1176
+ ),
1177
+ position: o,
1178
+ ...n,
1179
+ children: [
1180
+ /* @__PURE__ */ a(ye, {}),
1181
+ /* @__PURE__ */ a(
1182
+ u.Viewport,
1183
+ {
1184
+ className: r(
1185
+ "p-1",
1186
+ o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
1187
+ ),
1188
+ children: t
1189
+ }
1190
+ ),
1191
+ /* @__PURE__ */ a(Ne, {})
1192
+ ]
1193
+ }
1194
+ ) });
1195
+ }
1196
+ function fa({
1197
+ className: e,
1198
+ ...t
1199
+ }) {
1200
+ return /* @__PURE__ */ a(
1201
+ u.Label,
1202
+ {
1203
+ "data-slot": "select-label",
1204
+ className: r("text-muted-foreground px-2 py-1.5 text-xs", e),
1205
+ ...t
1206
+ }
1207
+ );
1208
+ }
1209
+ function pa({
1210
+ className: e,
1211
+ children: t,
1212
+ ...o
1213
+ }) {
1214
+ return /* @__PURE__ */ i(
1215
+ u.Item,
1216
+ {
1217
+ "data-slot": "select-item",
1218
+ className: r(
1219
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
1220
+ e
1221
+ ),
1222
+ ...o,
1223
+ children: [
1224
+ /* @__PURE__ */ a("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(u.ItemIndicator, { children: /* @__PURE__ */ a(R, { className: "size-4" }) }) }),
1225
+ /* @__PURE__ */ a(u.ItemText, { children: t })
1226
+ ]
1227
+ }
1228
+ );
1229
+ }
1230
+ function ye({
1231
+ className: e,
1232
+ ...t
1233
+ }) {
1234
+ return /* @__PURE__ */ a(
1235
+ u.ScrollUpButton,
1236
+ {
1237
+ "data-slot": "select-scroll-up-button",
1238
+ className: r(
1239
+ "flex cursor-default items-center justify-center py-1",
1240
+ e
1241
+ ),
1242
+ ...t,
1243
+ children: /* @__PURE__ */ a(ae, { className: "size-4" })
1244
+ }
1245
+ );
1246
+ }
1247
+ function Ne({
1248
+ className: e,
1249
+ ...t
1250
+ }) {
1251
+ return /* @__PURE__ */ a(
1252
+ u.ScrollDownButton,
1253
+ {
1254
+ "data-slot": "select-scroll-down-button",
1255
+ className: r(
1256
+ "flex cursor-default items-center justify-center py-1",
1257
+ e
1258
+ ),
1259
+ ...t,
1260
+ children: /* @__PURE__ */ a(O, { className: "size-4" })
1261
+ }
1262
+ );
1263
+ }
1264
+ const D = 768;
1265
+ function ke() {
1266
+ const [e, t] = f.useState(void 0);
1267
+ return f.useEffect(() => {
1268
+ const o = window.matchMedia(`(max-width: ${D - 1}px)`), n = () => {
1269
+ t(window.innerWidth < D);
1270
+ };
1271
+ return o.addEventListener("change", n), t(window.innerWidth < D), () => o.removeEventListener("change", n);
1272
+ }, []), !!e;
1273
+ }
1274
+ function ze({
1275
+ className: e,
1276
+ orientation: t = "horizontal",
1277
+ decorative: o = !0,
1278
+ ...n
1279
+ }) {
1280
+ return /* @__PURE__ */ a(
1281
+ ce.Root,
1282
+ {
1283
+ "data-slot": "separator",
1284
+ decorative: o,
1285
+ orientation: t,
1286
+ className: r(
1287
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
1288
+ e
1289
+ ),
1290
+ ...n
1291
+ }
1292
+ );
1293
+ }
1294
+ function Se({ ...e }) {
1295
+ return /* @__PURE__ */ a(y.Root, { "data-slot": "sheet", ...e });
1296
+ }
1297
+ function Ce({
1298
+ ...e
1299
+ }) {
1300
+ return /* @__PURE__ */ a(y.Portal, { "data-slot": "sheet-portal", ...e });
1301
+ }
1302
+ function _e({
1303
+ className: e,
1304
+ ...t
1305
+ }) {
1306
+ return /* @__PURE__ */ a(
1307
+ y.Overlay,
1308
+ {
1309
+ "data-slot": "sheet-overlay",
1310
+ className: r(
1311
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
1312
+ e
1313
+ ),
1314
+ ...t
1315
+ }
1316
+ );
1317
+ }
1318
+ function Te({
1319
+ className: e,
1320
+ children: t,
1321
+ side: o = "right",
1322
+ ...n
1323
+ }) {
1324
+ return /* @__PURE__ */ i(Ce, { children: [
1325
+ /* @__PURE__ */ a(_e, {}),
1326
+ /* @__PURE__ */ i(
1327
+ y.Content,
1328
+ {
1329
+ "data-slot": "sheet-content",
1330
+ className: r(
1331
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1332
+ o === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
1333
+ o === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
1334
+ o === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
1335
+ o === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
1336
+ e
1337
+ ),
1338
+ ...n,
1339
+ children: [
1340
+ t,
1341
+ /* @__PURE__ */ i(y.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: [
1342
+ /* @__PURE__ */ a(re, { className: "size-4" }),
1343
+ /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
1344
+ ] })
1345
+ ]
1346
+ }
1347
+ )
1348
+ ] });
1349
+ }
1350
+ function Me({ className: e, ...t }) {
1351
+ return /* @__PURE__ */ a(
1352
+ "div",
1353
+ {
1354
+ "data-slot": "sheet-header",
1355
+ className: r("flex flex-col gap-1.5 p-4", e),
1356
+ ...t
1357
+ }
1358
+ );
1359
+ }
1360
+ function Ie({
1361
+ className: e,
1362
+ ...t
1363
+ }) {
1364
+ return /* @__PURE__ */ a(
1365
+ y.Title,
1366
+ {
1367
+ "data-slot": "sheet-title",
1368
+ className: r("text-foreground font-semibold", e),
1369
+ ...t
1116
1370
  }
1117
1371
  );
1118
1372
  }
1119
- const X = {
1373
+ function De({
1374
+ className: e,
1375
+ ...t
1376
+ }) {
1377
+ return /* @__PURE__ */ a(
1378
+ y.Description,
1379
+ {
1380
+ "data-slot": "sheet-description",
1381
+ className: r("text-muted-foreground text-sm", e),
1382
+ ...t
1383
+ }
1384
+ );
1385
+ }
1386
+ const Pe = "sidebar_state", Re = 3600 * 24 * 7, Be = "16rem", Le = "18rem", Ee = "3rem", je = "b", $ = f.createContext(null);
1387
+ function M() {
1388
+ const e = f.useContext($);
1389
+ if (!e)
1390
+ throw new Error("useSidebar must be used within a SidebarProvider.");
1391
+ return e;
1392
+ }
1393
+ function ba({
1394
+ defaultOpen: e = !0,
1395
+ open: t,
1396
+ onOpenChange: o,
1397
+ className: n,
1398
+ style: s,
1399
+ children: m,
1400
+ ...w
1401
+ }) {
1402
+ const d = ke(), [b, g] = f.useState(!1), [z, W] = f.useState(e), k = t ?? z, S = f.useCallback(
1403
+ (p) => {
1404
+ const v = typeof p == "function" ? p(k) : p;
1405
+ o ? o(v) : W(v), document.cookie = `${Pe}=${v}; path=/; max-age=${Re}`;
1406
+ },
1407
+ [o, k]
1408
+ ), C = f.useCallback(() => d ? g((p) => !p) : S((p) => !p), [d, S, g]);
1409
+ f.useEffect(() => {
1410
+ const p = (v) => {
1411
+ v.key === je && (v.metaKey || v.ctrlKey) && (v.preventDefault(), C());
1412
+ };
1413
+ return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
1414
+ }, [C]);
1415
+ const L = k ? "expanded" : "collapsed", U = f.useMemo(
1416
+ () => ({
1417
+ state: L,
1418
+ open: k,
1419
+ setOpen: S,
1420
+ isMobile: d,
1421
+ openMobile: b,
1422
+ setOpenMobile: g,
1423
+ toggleSidebar: C
1424
+ }),
1425
+ [L, k, S, d, b, g, C]
1426
+ );
1427
+ return /* @__PURE__ */ a($.Provider, { value: U, children: /* @__PURE__ */ a(V, { delayDuration: 0, children: /* @__PURE__ */ a(
1428
+ "div",
1429
+ {
1430
+ "data-slot": "sidebar-wrapper",
1431
+ style: {
1432
+ "--sidebar-width": Be,
1433
+ "--sidebar-width-icon": Ee,
1434
+ ...s
1435
+ },
1436
+ className: r(
1437
+ "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
1438
+ n
1439
+ ),
1440
+ ...w,
1441
+ children: m
1442
+ }
1443
+ ) }) });
1444
+ }
1445
+ function ga({
1446
+ side: e = "left",
1447
+ variant: t = "sidebar",
1448
+ collapsible: o = "offcanvas",
1449
+ className: n,
1450
+ children: s,
1451
+ ...m
1452
+ }) {
1453
+ const { isMobile: w, state: d, openMobile: b, setOpenMobile: g } = M();
1454
+ return o === "none" ? /* @__PURE__ */ a(
1455
+ "div",
1456
+ {
1457
+ "data-slot": "sidebar",
1458
+ className: r(
1459
+ "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
1460
+ n
1461
+ ),
1462
+ ...m,
1463
+ children: s
1464
+ }
1465
+ ) : w ? /* @__PURE__ */ a(Se, { open: b, onOpenChange: g, ...m, children: /* @__PURE__ */ i(
1466
+ Te,
1467
+ {
1468
+ "data-sidebar": "sidebar",
1469
+ "data-slot": "sidebar",
1470
+ "data-mobile": "true",
1471
+ className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
1472
+ style: {
1473
+ "--sidebar-width": Le
1474
+ },
1475
+ side: e,
1476
+ children: [
1477
+ /* @__PURE__ */ i(Me, { className: "sr-only", children: [
1478
+ /* @__PURE__ */ a(Ie, { children: "Sidebar" }),
1479
+ /* @__PURE__ */ a(De, { children: "Displays the mobile sidebar." })
1480
+ ] }),
1481
+ /* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: s })
1482
+ ]
1483
+ }
1484
+ ) }) : /* @__PURE__ */ i(
1485
+ "div",
1486
+ {
1487
+ className: "group peer text-sidebar-foreground hidden md:block",
1488
+ "data-state": d,
1489
+ "data-collapsible": d === "collapsed" ? o : "",
1490
+ "data-variant": t,
1491
+ "data-side": e,
1492
+ "data-slot": "sidebar",
1493
+ children: [
1494
+ /* @__PURE__ */ a(
1495
+ "div",
1496
+ {
1497
+ "data-slot": "sidebar-gap",
1498
+ className: r(
1499
+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
1500
+ "group-data-[collapsible=offcanvas]:w-0",
1501
+ "group-data-[side=right]:rotate-180",
1502
+ t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
1503
+ )
1504
+ }
1505
+ ),
1506
+ /* @__PURE__ */ a(
1507
+ "div",
1508
+ {
1509
+ "data-slot": "sidebar-container",
1510
+ className: r(
1511
+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
1512
+ e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
1513
+ // Adjust the padding for floating and inset variants.
1514
+ t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
1515
+ n
1516
+ ),
1517
+ ...m,
1518
+ children: /* @__PURE__ */ a(
1519
+ "div",
1520
+ {
1521
+ "data-sidebar": "sidebar",
1522
+ "data-slot": "sidebar-inner",
1523
+ className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
1524
+ children: s
1525
+ }
1526
+ )
1527
+ }
1528
+ )
1529
+ ]
1530
+ }
1531
+ );
1532
+ }
1533
+ function va({
1534
+ className: e,
1535
+ onClick: t,
1536
+ ...o
1537
+ }) {
1538
+ const { toggleSidebar: n } = M();
1539
+ return /* @__PURE__ */ i(
1540
+ A,
1541
+ {
1542
+ "data-sidebar": "trigger",
1543
+ "data-slot": "sidebar-trigger",
1544
+ variant: "ghost",
1545
+ size: "icon",
1546
+ className: r("size-7", e),
1547
+ onClick: (s) => {
1548
+ t?.(s), n();
1549
+ },
1550
+ ...o,
1551
+ children: [
1552
+ /* @__PURE__ */ a(oe, {}),
1553
+ /* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle Sidebar" })
1554
+ ]
1555
+ }
1556
+ );
1557
+ }
1558
+ function ha({ className: e, ...t }) {
1559
+ const { toggleSidebar: o } = M();
1560
+ return /* @__PURE__ */ a(
1561
+ "button",
1562
+ {
1563
+ "data-sidebar": "rail",
1564
+ "data-slot": "sidebar-rail",
1565
+ "aria-label": "Toggle Sidebar",
1566
+ tabIndex: -1,
1567
+ onClick: o,
1568
+ title: "Toggle Sidebar",
1569
+ className: r(
1570
+ "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
1571
+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
1572
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
1573
+ "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
1574
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
1575
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
1576
+ e
1577
+ ),
1578
+ ...t
1579
+ }
1580
+ );
1581
+ }
1582
+ function xa({ className: e, ...t }) {
1583
+ return /* @__PURE__ */ a(
1584
+ "main",
1585
+ {
1586
+ "data-slot": "sidebar-inset",
1587
+ className: r(
1588
+ "bg-background relative flex w-full flex-1 flex-col",
1589
+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
1590
+ e
1591
+ ),
1592
+ ...t
1593
+ }
1594
+ );
1595
+ }
1596
+ function wa({
1597
+ className: e,
1598
+ ...t
1599
+ }) {
1600
+ return /* @__PURE__ */ a(
1601
+ ve,
1602
+ {
1603
+ "data-slot": "sidebar-input",
1604
+ "data-sidebar": "input",
1605
+ className: r("bg-background h-8 w-full shadow-none", e),
1606
+ ...t
1607
+ }
1608
+ );
1609
+ }
1610
+ function ya({ className: e, ...t }) {
1611
+ return /* @__PURE__ */ a(
1612
+ "div",
1613
+ {
1614
+ "data-slot": "sidebar-header",
1615
+ "data-sidebar": "header",
1616
+ className: r("flex flex-col gap-2 p-2", e),
1617
+ ...t
1618
+ }
1619
+ );
1620
+ }
1621
+ function Na({ className: e, ...t }) {
1622
+ return /* @__PURE__ */ a(
1623
+ "div",
1624
+ {
1625
+ "data-slot": "sidebar-footer",
1626
+ "data-sidebar": "footer",
1627
+ className: r("flex flex-col gap-2 p-2", e),
1628
+ ...t
1629
+ }
1630
+ );
1631
+ }
1632
+ function ka({
1633
+ className: e,
1634
+ ...t
1635
+ }) {
1636
+ return /* @__PURE__ */ a(
1637
+ ze,
1638
+ {
1639
+ "data-slot": "sidebar-separator",
1640
+ "data-sidebar": "separator",
1641
+ className: r("bg-sidebar-border mx-2 w-auto", e),
1642
+ ...t
1643
+ }
1644
+ );
1645
+ }
1646
+ function za({ className: e, ...t }) {
1647
+ return /* @__PURE__ */ a(
1648
+ "div",
1649
+ {
1650
+ "data-slot": "sidebar-content",
1651
+ "data-sidebar": "content",
1652
+ className: r(
1653
+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
1654
+ e
1655
+ ),
1656
+ ...t
1657
+ }
1658
+ );
1659
+ }
1660
+ function Sa({ className: e, ...t }) {
1661
+ return /* @__PURE__ */ a(
1662
+ "div",
1663
+ {
1664
+ "data-slot": "sidebar-group",
1665
+ "data-sidebar": "group",
1666
+ className: r("relative flex w-full min-w-0 flex-col p-2", e),
1667
+ ...t
1668
+ }
1669
+ );
1670
+ }
1671
+ function Ca({
1672
+ className: e,
1673
+ asChild: t = !1,
1674
+ ...o
1675
+ }) {
1676
+ return /* @__PURE__ */ a(
1677
+ t ? h : "div",
1678
+ {
1679
+ "data-slot": "sidebar-group-label",
1680
+ "data-sidebar": "group-label",
1681
+ className: r(
1682
+ "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
1683
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
1684
+ e
1685
+ ),
1686
+ ...o
1687
+ }
1688
+ );
1689
+ }
1690
+ function _a({
1691
+ className: e,
1692
+ asChild: t = !1,
1693
+ ...o
1694
+ }) {
1695
+ return /* @__PURE__ */ a(
1696
+ t ? h : "button",
1697
+ {
1698
+ "data-slot": "sidebar-group-action",
1699
+ "data-sidebar": "group-action",
1700
+ className: r(
1701
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
1702
+ // Increases the hit area of the button on mobile.
1703
+ "after:absolute after:-inset-2 md:after:hidden",
1704
+ "group-data-[collapsible=icon]:hidden",
1705
+ e
1706
+ ),
1707
+ ...o
1708
+ }
1709
+ );
1710
+ }
1711
+ function Ta({
1712
+ className: e,
1713
+ ...t
1714
+ }) {
1715
+ return /* @__PURE__ */ a(
1716
+ "div",
1717
+ {
1718
+ "data-slot": "sidebar-group-content",
1719
+ "data-sidebar": "group-content",
1720
+ className: r("w-full text-sm", e),
1721
+ ...t
1722
+ }
1723
+ );
1724
+ }
1725
+ function Ma({ className: e, ...t }) {
1726
+ return /* @__PURE__ */ a(
1727
+ "ul",
1728
+ {
1729
+ "data-slot": "sidebar-menu",
1730
+ "data-sidebar": "menu",
1731
+ className: r("flex w-full min-w-0 flex-col gap-1", e),
1732
+ ...t
1733
+ }
1734
+ );
1735
+ }
1736
+ function Ia({ className: e, ...t }) {
1737
+ return /* @__PURE__ */ a(
1738
+ "li",
1739
+ {
1740
+ "data-slot": "sidebar-menu-item",
1741
+ "data-sidebar": "menu-item",
1742
+ className: r("group/menu-item relative", e),
1743
+ ...t
1744
+ }
1745
+ );
1746
+ }
1747
+ const Oe = P(
1748
+ "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",
1749
+ {
1750
+ variants: {
1751
+ variant: {
1752
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
1753
+ outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
1754
+ },
1755
+ size: {
1756
+ default: "h-8 text-sm",
1757
+ sm: "h-7 text-xs",
1758
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
1759
+ }
1760
+ },
1761
+ defaultVariants: {
1762
+ variant: "default",
1763
+ size: "default"
1764
+ }
1765
+ }
1766
+ );
1767
+ function Da({
1768
+ asChild: e = !1,
1769
+ isActive: t = !1,
1770
+ variant: o = "default",
1771
+ size: n = "default",
1772
+ tooltip: s,
1773
+ className: m,
1774
+ ...w
1775
+ }) {
1776
+ const d = e ? h : "button", { isMobile: b, state: g } = M(), z = /* @__PURE__ */ a(
1777
+ d,
1778
+ {
1779
+ "data-slot": "sidebar-menu-button",
1780
+ "data-sidebar": "menu-button",
1781
+ "data-size": n,
1782
+ "data-active": t,
1783
+ className: r(Oe({ variant: o, size: n }), m),
1784
+ ...w
1785
+ }
1786
+ );
1787
+ return s ? (typeof s == "string" && (s = {
1788
+ children: s
1789
+ }), /* @__PURE__ */ i(he, { children: [
1790
+ /* @__PURE__ */ a(xe, { asChild: !0, children: z }),
1791
+ /* @__PURE__ */ a(
1792
+ we,
1793
+ {
1794
+ side: "right",
1795
+ align: "center",
1796
+ hidden: g !== "collapsed" || b,
1797
+ ...s
1798
+ }
1799
+ )
1800
+ ] })) : z;
1801
+ }
1802
+ function Pa({
1803
+ className: e,
1804
+ asChild: t = !1,
1805
+ showOnHover: o = !1,
1806
+ ...n
1807
+ }) {
1808
+ return /* @__PURE__ */ a(
1809
+ t ? h : "button",
1810
+ {
1811
+ "data-slot": "sidebar-menu-action",
1812
+ "data-sidebar": "menu-action",
1813
+ className: r(
1814
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
1815
+ // Increases the hit area of the button on mobile.
1816
+ "after:absolute after:-inset-2 md:after:hidden",
1817
+ "peer-data-[size=sm]/menu-button:top-1",
1818
+ "peer-data-[size=default]/menu-button:top-1.5",
1819
+ "peer-data-[size=lg]/menu-button:top-2.5",
1820
+ "group-data-[collapsible=icon]:hidden",
1821
+ o && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
1822
+ e
1823
+ ),
1824
+ ...n
1825
+ }
1826
+ );
1827
+ }
1828
+ function Ra({
1829
+ className: e,
1830
+ ...t
1831
+ }) {
1832
+ return /* @__PURE__ */ a(
1833
+ "div",
1834
+ {
1835
+ "data-slot": "sidebar-menu-badge",
1836
+ "data-sidebar": "menu-badge",
1837
+ className: r(
1838
+ "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
1839
+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
1840
+ "peer-data-[size=sm]/menu-button:top-1",
1841
+ "peer-data-[size=default]/menu-button:top-1.5",
1842
+ "peer-data-[size=lg]/menu-button:top-2.5",
1843
+ "group-data-[collapsible=icon]:hidden",
1844
+ e
1845
+ ),
1846
+ ...t
1847
+ }
1848
+ );
1849
+ }
1850
+ function Ba({
1851
+ className: e,
1852
+ showIcon: t = !1,
1853
+ ...o
1854
+ }) {
1855
+ const n = f.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
1856
+ return /* @__PURE__ */ i(
1857
+ "div",
1858
+ {
1859
+ "data-slot": "sidebar-menu-skeleton",
1860
+ "data-sidebar": "menu-skeleton",
1861
+ className: r("flex h-8 items-center gap-2 rounded-md px-2", e),
1862
+ ...o,
1863
+ children: [
1864
+ t && /* @__PURE__ */ a(
1865
+ E,
1866
+ {
1867
+ className: "size-4 rounded-md",
1868
+ "data-sidebar": "menu-skeleton-icon"
1869
+ }
1870
+ ),
1871
+ /* @__PURE__ */ a(
1872
+ E,
1873
+ {
1874
+ className: "h-4 max-w-(--skeleton-width) flex-1",
1875
+ "data-sidebar": "menu-skeleton-text",
1876
+ style: {
1877
+ "--skeleton-width": n
1878
+ }
1879
+ }
1880
+ )
1881
+ ]
1882
+ }
1883
+ );
1884
+ }
1885
+ function La({ className: e, ...t }) {
1886
+ return /* @__PURE__ */ a(
1887
+ "ul",
1888
+ {
1889
+ "data-slot": "sidebar-menu-sub",
1890
+ "data-sidebar": "menu-sub",
1891
+ className: r(
1892
+ "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
1893
+ "group-data-[collapsible=icon]:hidden",
1894
+ e
1895
+ ),
1896
+ ...t
1897
+ }
1898
+ );
1899
+ }
1900
+ function Ea({
1901
+ className: e,
1902
+ ...t
1903
+ }) {
1904
+ return /* @__PURE__ */ a(
1905
+ "li",
1906
+ {
1907
+ "data-slot": "sidebar-menu-sub-item",
1908
+ "data-sidebar": "menu-sub-item",
1909
+ className: r("group/menu-sub-item relative", e),
1910
+ ...t
1911
+ }
1912
+ );
1913
+ }
1914
+ function ja({
1915
+ asChild: e = !1,
1916
+ size: t = "md",
1917
+ isActive: o = !1,
1918
+ className: n,
1919
+ ...s
1920
+ }) {
1921
+ return /* @__PURE__ */ a(
1922
+ e ? h : "a",
1923
+ {
1924
+ "data-slot": "sidebar-menu-sub-button",
1925
+ "data-sidebar": "menu-sub-button",
1926
+ "data-size": t,
1927
+ "data-active": o,
1928
+ className: r(
1929
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
1930
+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
1931
+ t === "sm" && "text-xs",
1932
+ t === "md" && "text-sm",
1933
+ "group-data-[collapsible=icon]:hidden",
1934
+ n
1935
+ ),
1936
+ ...s
1937
+ }
1938
+ );
1939
+ }
1940
+ const Ge = {
1120
1941
  theme: "system",
1121
1942
  setTheme: () => null
1122
- }, C = _(X);
1123
- function kt({
1943
+ }, K = q(Ge);
1944
+ function Oa({
1124
1945
  children: e,
1125
1946
  defaultTheme: t = "system",
1126
1947
  storageKey: o = "vite-ui-theme",
1127
1948
  ...n
1128
1949
  }) {
1129
- const [c, x] = M(
1950
+ const [s, m] = F(
1130
1951
  () => localStorage.getItem(o) || t
1131
1952
  );
1132
- P(() => {
1133
- const u = window.document.documentElement;
1134
- if (u.classList.remove("light", "dark"), c === "system") {
1135
- const T = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1136
- u.classList.add(T);
1953
+ X(() => {
1954
+ const d = window.document.documentElement;
1955
+ if (d.classList.remove("light", "dark"), s === "system") {
1956
+ const b = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1957
+ d.classList.add(b);
1137
1958
  return;
1138
1959
  }
1139
- u.classList.add(c);
1140
- }, [c]);
1141
- const z = {
1142
- theme: c,
1143
- setTheme: (u) => {
1144
- localStorage.setItem(o, u), x(u);
1960
+ d.classList.add(s);
1961
+ }, [s]);
1962
+ const w = {
1963
+ theme: s,
1964
+ setTheme: (d) => {
1965
+ localStorage.setItem(o, d), m(d);
1145
1966
  }
1146
1967
  };
1147
- return /* @__PURE__ */ a(C.Provider, { ...n, value: z, children: e });
1968
+ return /* @__PURE__ */ a(K.Provider, { ...n, value: w, children: e });
1148
1969
  }
1149
- const Y = () => {
1150
- const e = D(C);
1970
+ const Ae = () => {
1971
+ const e = Y(K);
1151
1972
  if (e === void 0)
1152
1973
  throw new Error("useTheme must be used within a ThemeProvider");
1153
1974
  return e;
1154
1975
  };
1155
- function Ct() {
1156
- const { setTheme: e } = Y();
1157
- return /* @__PURE__ */ i(J, { children: [
1158
- /* @__PURE__ */ a(Q, { asChild: !0, children: /* @__PURE__ */ i(F, { variant: "outline", size: "icon", children: [
1159
- /* @__PURE__ */ a(B, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
1160
- /* @__PURE__ */ a(G, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
1976
+ function Ga() {
1977
+ const { setTheme: e } = Ae();
1978
+ return /* @__PURE__ */ i(pe, { children: [
1979
+ /* @__PURE__ */ a(be, { asChild: !0, children: /* @__PURE__ */ i(A, { variant: "outline", size: "icon", children: [
1980
+ /* @__PURE__ */ a(ne, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
1981
+ /* @__PURE__ */ a(ie, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
1161
1982
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle theme" })
1162
1983
  ] }) }),
1163
- /* @__PURE__ */ i(U, { align: "end", children: [
1164
- /* @__PURE__ */ a(g, { onClick: () => e("light"), children: "Light" }),
1165
- /* @__PURE__ */ a(g, { onClick: () => e("dark"), children: "Dark" }),
1166
- /* @__PURE__ */ a(g, { onClick: () => e("system"), children: "System" })
1984
+ /* @__PURE__ */ i(ge, { align: "end", children: [
1985
+ /* @__PURE__ */ a(I, { onClick: () => e("light"), children: "Light" }),
1986
+ /* @__PURE__ */ a(I, { onClick: () => e("dark"), children: "Dark" }),
1987
+ /* @__PURE__ */ a(I, { onClick: () => e("system"), children: "System" })
1167
1988
  ] })
1168
1989
  ] });
1169
1990
  }
1170
1991
  export {
1171
- de as Badge,
1172
- vt as Breadcrumb,
1173
- ht as BreadcrumbItem,
1174
- wt as BreadcrumbLink,
1175
- xt as BreadcrumbList,
1176
- yt as BreadcrumbPage,
1177
- Nt as BreadcrumbSeparator,
1178
- F as Button,
1179
- se as Card,
1180
- me as CardContent,
1181
- ue as CardDescription,
1182
- pe as CardFooter,
1183
- le as CardHeader,
1184
- ce as CardTitle,
1185
- fe as ContextMenu,
1186
- Ne as ContextMenuCheckboxItem,
1187
- we as ContextMenuContent,
1188
- ye as ContextMenuItem,
1189
- Ce as ContextMenuLabel,
1190
- ve as ContextMenuRadioGroup,
1191
- ke as ContextMenuRadioItem,
1192
- ze as ContextMenuSeparator,
1193
- Te as ContextMenuShortcut,
1194
- be as ContextMenuSub,
1195
- he as ContextMenuSubContent,
1196
- xe as ContextMenuSubTrigger,
1197
- ge as ContextMenuTrigger,
1198
- _e as Drawer,
1199
- Pe as DrawerClose,
1200
- De as DrawerContent,
1201
- Le as DrawerDescription,
1202
- Se as DrawerFooter,
1203
- Ie as DrawerHeader,
1204
- Re as DrawerTitle,
1205
- Me as DrawerTrigger,
1206
- J as DropdownMenu,
1207
- je as DropdownMenuCheckboxItem,
1208
- U as DropdownMenuContent,
1209
- g as DropdownMenuItem,
1210
- He as DropdownMenuLabel,
1211
- Be as DropdownMenuRadioGroup,
1212
- Ge as DropdownMenuRadioItem,
1213
- Ee as DropdownMenuSeparator,
1214
- Ve as DropdownMenuShortcut,
1215
- $e as DropdownMenuSub,
1216
- Oe as DropdownMenuSubContent,
1217
- Fe as DropdownMenuSubTrigger,
1218
- Q as DropdownMenuTrigger,
1219
- qe as Input,
1220
- Je as Label,
1221
- Ct as ModeToggle,
1222
- Qe as Pagination,
1223
- Ue as PaginationContent,
1224
- Ze as PaginationEllipsis,
1225
- We as PaginationItem,
1226
- k as PaginationLink,
1227
- Ye as PaginationNext,
1228
- Xe as PaginationPrevious,
1229
- Ae as Popover,
1230
- et as PopoverContent,
1231
- Ke as PopoverTrigger,
1232
- tt as Skeleton,
1233
- rt as Table,
1234
- nt as TableBody,
1235
- lt as TableCaption,
1236
- st as TableCell,
1237
- dt as TableHead,
1238
- ot as TableHeader,
1239
- it as TableRow,
1240
- ct as Tabs,
1241
- pt as TabsContent,
1242
- ut as TabsList,
1243
- mt as TabsTrigger,
1244
- kt as ThemeProvider,
1245
- at as Toaster,
1246
- ft as Tooltip,
1247
- bt as TooltipContent,
1248
- W as TooltipProvider,
1249
- gt as TooltipTrigger,
1250
- r as cn
1992
+ Je as Badge,
1993
+ aa as Breadcrumb,
1994
+ oa as BreadcrumbItem,
1995
+ na as BreadcrumbLink,
1996
+ ra as BreadcrumbList,
1997
+ ia as BreadcrumbPage,
1998
+ sa as BreadcrumbSeparator,
1999
+ A as Button,
2000
+ Qe as Card,
2001
+ at as CardContent,
2002
+ tt as CardDescription,
2003
+ rt as CardFooter,
2004
+ Ze as CardHeader,
2005
+ et as CardTitle,
2006
+ ot as ContextMenu,
2007
+ mt as ContextMenuCheckboxItem,
2008
+ ct as ContextMenuContent,
2009
+ ut as ContextMenuItem,
2010
+ pt as ContextMenuLabel,
2011
+ st as ContextMenuRadioGroup,
2012
+ ft as ContextMenuRadioItem,
2013
+ bt as ContextMenuSeparator,
2014
+ gt as ContextMenuShortcut,
2015
+ it as ContextMenuSub,
2016
+ lt as ContextMenuSubContent,
2017
+ dt as ContextMenuSubTrigger,
2018
+ nt as ContextMenuTrigger,
2019
+ vt as Drawer,
2020
+ xt as DrawerClose,
2021
+ wt as DrawerContent,
2022
+ zt as DrawerDescription,
2023
+ Nt as DrawerFooter,
2024
+ yt as DrawerHeader,
2025
+ kt as DrawerTitle,
2026
+ ht as DrawerTrigger,
2027
+ pe as DropdownMenu,
2028
+ St as DropdownMenuCheckboxItem,
2029
+ ge as DropdownMenuContent,
2030
+ I as DropdownMenuItem,
2031
+ Tt as DropdownMenuLabel,
2032
+ Ct as DropdownMenuRadioGroup,
2033
+ _t as DropdownMenuRadioItem,
2034
+ Mt as DropdownMenuSeparator,
2035
+ It as DropdownMenuShortcut,
2036
+ Dt as DropdownMenuSub,
2037
+ Rt as DropdownMenuSubContent,
2038
+ Pt as DropdownMenuSubTrigger,
2039
+ be as DropdownMenuTrigger,
2040
+ ve as Input,
2041
+ Bt as Label,
2042
+ Ga as ModeToggle,
2043
+ Lt as Pagination,
2044
+ Et as PaginationContent,
2045
+ At as PaginationEllipsis,
2046
+ jt as PaginationItem,
2047
+ H as PaginationLink,
2048
+ Gt as PaginationNext,
2049
+ Ot as PaginationPrevious,
2050
+ Ht as Popover,
2051
+ $t as PopoverContent,
2052
+ Vt as PopoverTrigger,
2053
+ da as Select,
2054
+ ma as SelectContent,
2055
+ la as SelectGroup,
2056
+ pa as SelectItem,
2057
+ fa as SelectLabel,
2058
+ ua as SelectTrigger,
2059
+ ca as SelectValue,
2060
+ ga as Sidebar,
2061
+ za as SidebarContent,
2062
+ Na as SidebarFooter,
2063
+ Sa as SidebarGroup,
2064
+ _a as SidebarGroupAction,
2065
+ Ta as SidebarGroupContent,
2066
+ Ca as SidebarGroupLabel,
2067
+ ya as SidebarHeader,
2068
+ wa as SidebarInput,
2069
+ xa as SidebarInset,
2070
+ Ma as SidebarMenu,
2071
+ Pa as SidebarMenuAction,
2072
+ Ra as SidebarMenuBadge,
2073
+ Da as SidebarMenuButton,
2074
+ Ia as SidebarMenuItem,
2075
+ Ba as SidebarMenuSkeleton,
2076
+ La as SidebarMenuSub,
2077
+ ja as SidebarMenuSubButton,
2078
+ Ea as SidebarMenuSubItem,
2079
+ ba as SidebarProvider,
2080
+ ha as SidebarRail,
2081
+ ka as SidebarSeparator,
2082
+ va as SidebarTrigger,
2083
+ E as Skeleton,
2084
+ Wt as Table,
2085
+ qt as TableBody,
2086
+ Jt as TableCaption,
2087
+ Yt as TableCell,
2088
+ Xt as TableHead,
2089
+ Ut as TableHeader,
2090
+ Ft as TableRow,
2091
+ Qt as Tabs,
2092
+ ta as TabsContent,
2093
+ Zt as TabsList,
2094
+ ea as TabsTrigger,
2095
+ Oa as ThemeProvider,
2096
+ Kt as Toaster,
2097
+ he as Tooltip,
2098
+ we as TooltipContent,
2099
+ V as TooltipProvider,
2100
+ xe as TooltipTrigger,
2101
+ r as cn,
2102
+ Va as toast,
2103
+ M as useSidebar,
2104
+ Ae as useTheme
1251
2105
  };