@clidey/ux 0.13.0 → 0.14.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +19 -0
  2. package/dist/index.js +1129 -1283
  3. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1,58 +1,59 @@
1
- import { jsx as a, jsxs as l, Fragment as W } from "react/jsx-runtime";
2
- import * as u from "react";
3
- import I, { Fragment as Se, createContext as Ce, useState as ze, useEffect as _e, useContext as Te } from "react";
4
- import { Slot as R, createSlot as Me } from "@radix-ui/react-slot";
5
- import { cva as O } from "class-variance-authority";
6
- import { clsx as Ie } from "clsx";
7
- import { twMerge as Pe } from "tailwind-merge";
8
- import * as k from "@radix-ui/react-context-menu";
9
- import { CheckIcon as $, CircleIcon as re, ChevronRightIcon as K, Search as Re, MoreHorizontalIcon as De, ChevronLeftIcon as Ee, ChevronRight as oe, XIcon as ne, SearchIcon as Be, ChevronDownIcon as q, ChevronsUpDownIcon as Le, ChevronUpIcon as Ae, PanelLeftIcon as $e, GripVerticalIcon as je, Sun as J, Moon as Q, Monitor as Oe } from "lucide-react";
10
- import { Drawer as D } from "vaul";
11
- import * as S from "@radix-ui/react-dropdown-menu";
12
- import * as He from "@radix-ui/react-label";
13
- import * as j from "@radix-ui/react-popover";
14
- import { useTheme as Ge } from "next-themes";
15
- import { Toaster as Ve } from "sonner";
16
- import { toast as Do } from "sonner";
17
- import { FixedSizeList as Fe } from "react-window";
1
+ import { jsx as a, jsxs as i, Fragment as W } from "react/jsx-runtime";
2
+ import * as g from "react";
3
+ import z, { Fragment as be, createContext as he, useState as ve, useEffect as xe, useContext as we } from "react";
4
+ import { Slot as D } from "@radix-ui/react-slot";
5
+ import { cva as G } from "class-variance-authority";
6
+ import { clsx as Ne } from "clsx";
7
+ import { twMerge as ye } from "tailwind-merge";
8
+ import * as h from "@radix-ui/react-context-menu";
9
+ import { CheckIcon as O, CircleIcon as oe, ChevronRightIcon as q, Search as ke, MoreHorizontalIcon as ze, ChevronLeftIcon as Ce, ChevronRight as ne, XIcon as ie, SearchIcon as Se, ChevronDownIcon as X, ChevronsUpDownIcon as Te, ChevronUpIcon as _e, PanelLeftIcon as De, GripVerticalIcon as Me, Sun as Q, Moon as Z, Monitor as Ie } from "lucide-react";
10
+ import { Drawer as M } from "vaul";
11
+ import * as v from "@radix-ui/react-dropdown-menu";
12
+ import * as Pe from "@radix-ui/react-label";
13
+ import * as $ from "@radix-ui/react-popover";
14
+ import { useTheme as Re } from "next-themes";
15
+ import { Toaster as Ae } from "sonner";
16
+ import { toast as bo } from "sonner";
17
+ import { FixedSizeList as Le } from "react-window";
18
18
  import * as H from "@radix-ui/react-tabs";
19
- import * as E from "@radix-ui/react-tooltip";
20
- import { Command as B } from "cmdk";
21
- import * as N from "@radix-ui/react-dialog";
22
- import * as z from "@radix-ui/react-select";
23
- import * as Ue from "@radix-ui/react-separator";
24
- import * as A from "@radix-ui/react-scroll-area";
25
- import * as Z from "@radix-ui/react-checkbox";
26
- import * as T from "@radix-ui/react-accordion";
27
- import We from "use-resize-observer";
28
- import * as X from "react-resizable-panels";
29
- import "react-dom";
30
- function o(...e) {
31
- return Pe(Ie(e));
32
- }
33
- function pa(e) {
19
+ import * as A from "@radix-ui/react-tooltip";
20
+ import { Command as L } from "cmdk";
21
+ import * as b from "@radix-ui/react-dialog";
22
+ import * as w from "@radix-ui/react-select";
23
+ import * as Ee from "@radix-ui/react-separator";
24
+ import * as B from "@radix-ui/react-scroll-area";
25
+ import * as ee from "@radix-ui/react-checkbox";
26
+ import * as y from "@radix-ui/react-accordion";
27
+ import je from "use-resize-observer";
28
+ import * as Y from "react-resizable-panels";
29
+ import * as te from "@radix-ui/react-switch";
30
+ import * as S from "@radix-ui/react-alert-dialog";
31
+ function r(...e) {
32
+ return ye(Ne(e));
33
+ }
34
+ function Vt(e) {
34
35
  return e.replace(/_/g, " ").replace(/\w\S*/g, (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase());
35
36
  }
36
- function ga(e) {
37
- const r = (/* @__PURE__ */ new Date()).getTime() - e.getTime(), n = Math.floor(r / 1e3);
37
+ function Ft(e) {
38
+ const o = (/* @__PURE__ */ new Date()).getTime() - e.getTime(), n = Math.floor(o / 1e3);
38
39
  if (n < 60)
39
40
  return "just now";
40
- const i = Math.floor(n / 60);
41
- if (i < 60)
42
- return `${i} minute${i === 1 ? "" : "s"} ago`;
43
- const s = Math.floor(i / 60);
44
- if (s < 24)
45
- return `${s} hour${s === 1 ? "" : "s"} ago`;
46
- const c = Math.floor(s / 24);
47
- if (c < 30)
48
- return `${c} day${c === 1 ? "" : "s"} ago`;
49
- const d = Math.floor(c / 30);
50
- if (d < 12)
51
- return `${d} month${d === 1 ? "" : "s"} ago`;
52
- const m = Math.floor(d / 12);
53
- return `${m} year${m === 1 ? "" : "s"} ago`;
54
- }
55
- const Ke = O(
41
+ const s = Math.floor(n / 60);
42
+ if (s < 60)
43
+ return `${s} minute${s === 1 ? "" : "s"} ago`;
44
+ const d = Math.floor(s / 60);
45
+ if (d < 24)
46
+ return `${d} hour${d === 1 ? "" : "s"} ago`;
47
+ const u = Math.floor(d / 24);
48
+ if (u < 30)
49
+ return `${u} day${u === 1 ? "" : "s"} ago`;
50
+ const c = Math.floor(u / 30);
51
+ if (c < 12)
52
+ return `${c} month${c === 1 ? "" : "s"} ago`;
53
+ const p = Math.floor(c / 12);
54
+ return `${p} year${p === 1 ? "" : "s"} ago`;
55
+ }
56
+ const Be = G(
56
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",
57
58
  {
58
59
  variants: {
@@ -68,22 +69,22 @@ const Ke = O(
68
69
  }
69
70
  }
70
71
  );
71
- function ba({
72
+ function Kt({
72
73
  className: e,
73
74
  variant: t,
74
- asChild: r = !1,
75
+ asChild: o = !1,
75
76
  ...n
76
77
  }) {
77
78
  return /* @__PURE__ */ a(
78
- r ? R : "span",
79
+ o ? D : "span",
79
80
  {
80
81
  "data-slot": "badge",
81
- className: o(Ke({ variant: t }), e),
82
+ className: r(Be({ variant: t }), e),
82
83
  ...n
83
84
  }
84
85
  );
85
86
  }
86
- const ie = O(
87
+ const V = G(
87
88
  "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",
88
89
  {
89
90
  variants: {
@@ -108,28 +109,28 @@ const ie = O(
108
109
  }
109
110
  }
110
111
  );
111
- function Y({
112
+ function J({
112
113
  className: e,
113
114
  variant: t,
114
- size: r,
115
+ size: o,
115
116
  asChild: n = !1,
116
- ...i
117
+ ...s
117
118
  }) {
118
119
  return /* @__PURE__ */ a(
119
- n ? R : "button",
120
+ n ? D : "button",
120
121
  {
121
122
  "data-slot": "button",
122
- className: o(ie({ variant: t, size: r, className: e })),
123
- ...i
123
+ className: r(V({ variant: t, size: o, className: e })),
124
+ ...s
124
125
  }
125
126
  );
126
127
  }
127
- function ha({ className: e, ...t }) {
128
+ function Ut({ className: e, ...t }) {
128
129
  return /* @__PURE__ */ a(
129
130
  "div",
130
131
  {
131
132
  "data-slot": "card",
132
- className: o(
133
+ className: r(
133
134
  "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
134
135
  e
135
136
  ),
@@ -137,12 +138,12 @@ function ha({ className: e, ...t }) {
137
138
  }
138
139
  );
139
140
  }
140
- function va({ className: e, ...t }) {
141
+ function Wt({ className: e, ...t }) {
141
142
  return /* @__PURE__ */ a(
142
143
  "div",
143
144
  {
144
145
  "data-slot": "card-header",
145
- className: o(
146
+ className: r(
146
147
  "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
147
148
  e
148
149
  ),
@@ -150,104 +151,104 @@ function va({ className: e, ...t }) {
150
151
  }
151
152
  );
152
153
  }
153
- function xa({ className: e, ...t }) {
154
+ function qt({ className: e, ...t }) {
154
155
  return /* @__PURE__ */ a(
155
156
  "div",
156
157
  {
157
158
  "data-slot": "card-title",
158
- className: o("leading-none font-semibold", e),
159
+ className: r("leading-none font-semibold", e),
159
160
  ...t
160
161
  }
161
162
  );
162
163
  }
163
- function wa({ className: e, ...t }) {
164
+ function Xt({ className: e, ...t }) {
164
165
  return /* @__PURE__ */ a(
165
166
  "div",
166
167
  {
167
168
  "data-slot": "card-description",
168
- className: o("text-muted-foreground text-sm", e),
169
+ className: r("text-muted-foreground text-sm", e),
169
170
  ...t
170
171
  }
171
172
  );
172
173
  }
173
- function ya({ className: e, ...t }) {
174
+ function Yt({ className: e, ...t }) {
174
175
  return /* @__PURE__ */ a(
175
176
  "div",
176
177
  {
177
178
  "data-slot": "card-content",
178
- className: o("px-6", e),
179
+ className: r("px-6", e),
179
180
  ...t
180
181
  }
181
182
  );
182
183
  }
183
- function Na({ className: e, ...t }) {
184
+ function Jt({ className: e, ...t }) {
184
185
  return /* @__PURE__ */ a(
185
186
  "div",
186
187
  {
187
188
  "data-slot": "card-footer",
188
- className: o("flex items-center px-6 [.border-t]:pt-6", e),
189
+ className: r("flex items-center px-6 [.border-t]:pt-6", e),
189
190
  ...t
190
191
  }
191
192
  );
192
193
  }
193
- function ka({
194
+ function Qt({
194
195
  ...e
195
196
  }) {
196
- return /* @__PURE__ */ a(k.Root, { "data-slot": "context-menu", ...e });
197
+ return /* @__PURE__ */ a(h.Root, { "data-slot": "context-menu", ...e });
197
198
  }
198
- function Sa({
199
+ function Zt({
199
200
  ...e
200
201
  }) {
201
- return /* @__PURE__ */ a(k.Trigger, { "data-slot": "context-menu-trigger", ...e });
202
+ return /* @__PURE__ */ a(h.Trigger, { "data-slot": "context-menu-trigger", ...e });
202
203
  }
203
- function Ca({
204
+ function ea({
204
205
  ...e
205
206
  }) {
206
- return /* @__PURE__ */ a(k.Sub, { "data-slot": "context-menu-sub", ...e });
207
+ return /* @__PURE__ */ a(h.Sub, { "data-slot": "context-menu-sub", ...e });
207
208
  }
208
- function za({
209
+ function ta({
209
210
  ...e
210
211
  }) {
211
212
  return /* @__PURE__ */ a(
212
- k.RadioGroup,
213
+ h.RadioGroup,
213
214
  {
214
215
  "data-slot": "context-menu-radio-group",
215
216
  ...e
216
217
  }
217
218
  );
218
219
  }
219
- function _a({
220
+ function aa({
220
221
  className: e,
221
222
  inset: t,
222
- children: r,
223
+ children: o,
223
224
  ...n
224
225
  }) {
225
- return /* @__PURE__ */ l(
226
- k.SubTrigger,
226
+ return /* @__PURE__ */ i(
227
+ h.SubTrigger,
227
228
  {
228
229
  "data-slot": "context-menu-sub-trigger",
229
230
  "data-inset": t,
230
- className: o(
231
+ className: r(
231
232
  "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
232
233
  e
233
234
  ),
234
235
  ...n,
235
236
  children: [
236
- r,
237
- /* @__PURE__ */ a(K, { className: "ml-auto" })
237
+ o,
238
+ /* @__PURE__ */ a(q, { className: "ml-auto" })
238
239
  ]
239
240
  }
240
241
  );
241
242
  }
242
- function Ta({
243
+ function ra({
243
244
  className: e,
244
245
  ...t
245
246
  }) {
246
247
  return /* @__PURE__ */ a(
247
- k.SubContent,
248
+ h.SubContent,
248
249
  {
249
250
  "data-slot": "context-menu-sub-content",
250
- className: o(
251
+ className: r(
251
252
  "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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
252
253
  e
253
254
  ),
@@ -255,15 +256,15 @@ function Ta({
255
256
  }
256
257
  );
257
258
  }
258
- function Ma({
259
+ function oa({
259
260
  className: e,
260
261
  ...t
261
262
  }) {
262
- return /* @__PURE__ */ a(k.Portal, { children: /* @__PURE__ */ a(
263
- k.Content,
263
+ return /* @__PURE__ */ a(h.Portal, { children: /* @__PURE__ */ a(
264
+ h.Content,
264
265
  {
265
266
  "data-slot": "context-menu-content",
266
- className: o(
267
+ className: r(
267
268
  "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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
268
269
  e
269
270
  ),
@@ -271,19 +272,19 @@ function Ma({
271
272
  }
272
273
  ) });
273
274
  }
274
- function Ia({
275
+ function na({
275
276
  className: e,
276
277
  inset: t,
277
- variant: r = "default",
278
+ variant: o = "default",
278
279
  ...n
279
280
  }) {
280
281
  return /* @__PURE__ */ a(
281
- k.Item,
282
+ h.Item,
282
283
  {
283
284
  "data-slot": "context-menu-item",
284
285
  "data-inset": t,
285
- "data-variant": r,
286
- className: o(
286
+ "data-variant": o,
287
+ className: r(
287
288
  "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
288
289
  e
289
290
  ),
@@ -291,82 +292,82 @@ function Ia({
291
292
  }
292
293
  );
293
294
  }
294
- function Pa({
295
+ function ia({
295
296
  className: e,
296
297
  children: t,
297
- checked: r,
298
+ checked: o,
298
299
  ...n
299
300
  }) {
300
- return /* @__PURE__ */ l(
301
- k.CheckboxItem,
301
+ return /* @__PURE__ */ i(
302
+ h.CheckboxItem,
302
303
  {
303
304
  "data-slot": "context-menu-checkbox-item",
304
- className: o(
305
+ className: r(
305
306
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",
306
307
  e
307
308
  ),
308
- checked: r,
309
+ checked: o,
309
310
  ...n,
310
311
  children: [
311
- /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(k.ItemIndicator, { children: /* @__PURE__ */ a($, { className: "size-4" }) }) }),
312
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(h.ItemIndicator, { children: /* @__PURE__ */ a(O, { className: "size-4" }) }) }),
312
313
  t
313
314
  ]
314
315
  }
315
316
  );
316
317
  }
317
- function Ra({
318
+ function sa({
318
319
  className: e,
319
320
  children: t,
320
- ...r
321
+ ...o
321
322
  }) {
322
- return /* @__PURE__ */ l(
323
- k.RadioItem,
323
+ return /* @__PURE__ */ i(
324
+ h.RadioItem,
324
325
  {
325
326
  "data-slot": "context-menu-radio-item",
326
- className: o(
327
+ className: r(
327
328
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",
328
329
  e
329
330
  ),
330
- ...r,
331
+ ...o,
331
332
  children: [
332
- /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(k.ItemIndicator, { children: /* @__PURE__ */ a(re, { className: "size-2 fill-current" }) }) }),
333
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(h.ItemIndicator, { children: /* @__PURE__ */ a(oe, { className: "size-2 fill-current" }) }) }),
333
334
  t
334
335
  ]
335
336
  }
336
337
  );
337
338
  }
338
- function Da({
339
+ function da({
339
340
  className: e,
340
341
  inset: t,
341
- ...r
342
+ ...o
342
343
  }) {
343
344
  return /* @__PURE__ */ a(
344
- k.Label,
345
+ h.Label,
345
346
  {
346
347
  "data-slot": "context-menu-label",
347
348
  "data-inset": t,
348
- className: o(
349
+ className: r(
349
350
  "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
350
351
  e
351
352
  ),
352
- ...r
353
+ ...o
353
354
  }
354
355
  );
355
356
  }
356
- function Ea({
357
+ function la({
357
358
  className: e,
358
359
  ...t
359
360
  }) {
360
361
  return /* @__PURE__ */ a(
361
- k.Separator,
362
+ h.Separator,
362
363
  {
363
364
  "data-slot": "context-menu-separator",
364
- className: o("bg-border -mx-1 my-1 h-px", e),
365
+ className: r("bg-border -mx-1 my-1 h-px", e),
365
366
  ...t
366
367
  }
367
368
  );
368
369
  }
369
- function Ba({
370
+ function ca({
370
371
  className: e,
371
372
  ...t
372
373
  }) {
@@ -374,7 +375,7 @@ function Ba({
374
375
  "span",
375
376
  {
376
377
  "data-slot": "context-menu-shortcut",
377
- className: o(
378
+ className: r(
378
379
  "text-muted-foreground ml-auto text-xs tracking-widest",
379
380
  e
380
381
  ),
@@ -382,30 +383,30 @@ function Ba({
382
383
  }
383
384
  );
384
385
  }
385
- function La({
386
+ function ua({
386
387
  ...e
387
388
  }) {
388
- return /* @__PURE__ */ a(D.Root, { "data-slot": "drawer", ...e });
389
+ return /* @__PURE__ */ a(M.Root, { "data-slot": "drawer", ...e });
389
390
  }
390
- function Aa({
391
+ function ma({
391
392
  ...e
392
393
  }) {
393
- return /* @__PURE__ */ a(D.Trigger, { "data-slot": "drawer-trigger", ...e });
394
+ return /* @__PURE__ */ a(M.Trigger, { "data-slot": "drawer-trigger", ...e });
394
395
  }
395
- function $a({
396
+ function fa({
396
397
  ...e
397
398
  }) {
398
- return /* @__PURE__ */ a(D.Close, { "data-slot": "drawer-close", ...e });
399
+ return /* @__PURE__ */ a(M.Close, { "data-slot": "drawer-close", ...e });
399
400
  }
400
- function qe({
401
+ function Oe({
401
402
  className: e,
402
403
  ...t
403
404
  }) {
404
405
  return /* @__PURE__ */ a(
405
- D.Overlay,
406
+ M.Overlay,
406
407
  {
407
408
  "data-slot": "drawer-overlay",
408
- className: o(
409
+ className: r(
409
410
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 absolute inset-0 z-50 bg-black/50",
410
411
  e
411
412
  ),
@@ -413,18 +414,18 @@ function qe({
413
414
  }
414
415
  );
415
416
  }
416
- function ja({
417
+ function pa({
417
418
  className: e,
418
419
  children: t,
419
- ...r
420
+ ...o
420
421
  }) {
421
- return /* @__PURE__ */ l(W, { children: [
422
- /* @__PURE__ */ a(qe, {}),
423
- /* @__PURE__ */ l(
424
- D.Content,
422
+ return /* @__PURE__ */ i(W, { children: [
423
+ /* @__PURE__ */ a(Oe, {}),
424
+ /* @__PURE__ */ i(
425
+ M.Content,
425
426
  {
426
427
  "data-slot": "drawer-content",
427
- className: o(
428
+ className: r(
428
429
  "group/drawer-content bg-background absolute z-50 flex h-auto flex-col",
429
430
  "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
430
431
  "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
@@ -432,7 +433,7 @@ function ja({
432
433
  "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
433
434
  e
434
435
  ),
435
- ...r,
436
+ ...o,
436
437
  children: [
437
438
  /* @__PURE__ */ a("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
438
439
  t
@@ -441,12 +442,12 @@ function ja({
441
442
  )
442
443
  ] });
443
444
  }
444
- function Oa({ className: e, ...t }) {
445
+ function ga({ className: e, ...t }) {
445
446
  return /* @__PURE__ */ a(
446
447
  "div",
447
448
  {
448
449
  "data-slot": "drawer-header",
449
- className: o(
450
+ className: r(
450
451
  "flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",
451
452
  e
452
453
  ),
@@ -454,89 +455,89 @@ function Oa({ className: e, ...t }) {
454
455
  }
455
456
  );
456
457
  }
457
- function Ha({ className: e, ...t }) {
458
+ function ba({ className: e, ...t }) {
458
459
  return /* @__PURE__ */ a(
459
460
  "div",
460
461
  {
461
462
  "data-slot": "drawer-footer",
462
- className: o("mt-auto flex flex-col gap-2 p-4", e),
463
+ className: r("mt-auto flex flex-col gap-2 p-4", e),
463
464
  ...t
464
465
  }
465
466
  );
466
467
  }
467
- function Ga({
468
+ function ha({
468
469
  className: e,
469
470
  ...t
470
471
  }) {
471
472
  return /* @__PURE__ */ a(
472
- D.Title,
473
+ M.Title,
473
474
  {
474
475
  "data-slot": "drawer-title",
475
- className: o("text-foreground font-semibold", e),
476
+ className: r("text-foreground font-semibold", e),
476
477
  ...t
477
478
  }
478
479
  );
479
480
  }
480
- function Va({
481
+ function va({
481
482
  className: e,
482
483
  ...t
483
484
  }) {
484
485
  return /* @__PURE__ */ a(
485
- D.Description,
486
+ M.Description,
486
487
  {
487
488
  "data-slot": "drawer-description",
488
- className: o("text-muted-foreground text-sm", e),
489
+ className: r("text-muted-foreground text-sm", e),
489
490
  ...t
490
491
  }
491
492
  );
492
493
  }
493
- function Xe({
494
+ function $e({
494
495
  ...e
495
496
  }) {
496
- return /* @__PURE__ */ a(S.Root, { "data-slot": "dropdown-menu", ...e });
497
+ return /* @__PURE__ */ a(v.Root, { "data-slot": "dropdown-menu", ...e });
497
498
  }
498
- function Ye({
499
+ function Ge({
499
500
  ...e
500
501
  }) {
501
502
  return /* @__PURE__ */ a(
502
- S.Trigger,
503
+ v.Trigger,
503
504
  {
504
505
  "data-slot": "dropdown-menu-trigger",
505
506
  ...e
506
507
  }
507
508
  );
508
509
  }
509
- function Je({
510
+ function He({
510
511
  className: e,
511
512
  sideOffset: t = 4,
512
- ...r
513
+ ...o
513
514
  }) {
514
- return /* @__PURE__ */ a(S.Portal, { children: /* @__PURE__ */ a(
515
- S.Content,
515
+ return /* @__PURE__ */ a(v.Portal, { children: /* @__PURE__ */ a(
516
+ v.Content,
516
517
  {
517
518
  "data-slot": "dropdown-menu-content",
518
519
  sideOffset: t,
519
- className: o(
520
+ className: r(
520
521
  "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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
521
522
  e
522
523
  ),
523
- ...r
524
+ ...o
524
525
  }
525
526
  ) });
526
527
  }
527
- function F({
528
+ function K({
528
529
  className: e,
529
530
  inset: t,
530
- variant: r = "default",
531
+ variant: o = "default",
531
532
  ...n
532
533
  }) {
533
534
  return /* @__PURE__ */ a(
534
- S.Item,
535
+ v.Item,
535
536
  {
536
537
  "data-slot": "dropdown-menu-item",
537
538
  "data-inset": t,
538
- "data-variant": r,
539
- className: o(
539
+ "data-variant": o,
540
+ className: r(
540
541
  "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
541
542
  e
542
543
  ),
@@ -544,93 +545,93 @@ function F({
544
545
  }
545
546
  );
546
547
  }
547
- function Fa({
548
+ function xa({
548
549
  className: e,
549
550
  children: t,
550
- checked: r,
551
+ checked: o,
551
552
  ...n
552
553
  }) {
553
- return /* @__PURE__ */ l(
554
- S.CheckboxItem,
554
+ return /* @__PURE__ */ i(
555
+ v.CheckboxItem,
555
556
  {
556
557
  "data-slot": "dropdown-menu-checkbox-item",
557
- className: o(
558
+ className: r(
558
559
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",
559
560
  e
560
561
  ),
561
- checked: r,
562
+ checked: o,
562
563
  ...n,
563
564
  children: [
564
- /* @__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($, { className: "size-4" }) }) }),
565
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(v.ItemIndicator, { children: /* @__PURE__ */ a(O, { className: "size-4" }) }) }),
565
566
  t
566
567
  ]
567
568
  }
568
569
  );
569
570
  }
570
- function Ua({
571
+ function wa({
571
572
  ...e
572
573
  }) {
573
574
  return /* @__PURE__ */ a(
574
- S.RadioGroup,
575
+ v.RadioGroup,
575
576
  {
576
577
  "data-slot": "dropdown-menu-radio-group",
577
578
  ...e
578
579
  }
579
580
  );
580
581
  }
581
- function Wa({
582
+ function Na({
582
583
  className: e,
583
584
  children: t,
584
- ...r
585
+ ...o
585
586
  }) {
586
- return /* @__PURE__ */ l(
587
- S.RadioItem,
587
+ return /* @__PURE__ */ i(
588
+ v.RadioItem,
588
589
  {
589
590
  "data-slot": "dropdown-menu-radio-item",
590
- className: o(
591
+ className: r(
591
592
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",
592
593
  e
593
594
  ),
594
- ...r,
595
+ ...o,
595
596
  children: [
596
- /* @__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(re, { className: "size-2 fill-current" }) }) }),
597
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(v.ItemIndicator, { children: /* @__PURE__ */ a(oe, { className: "size-2 fill-current" }) }) }),
597
598
  t
598
599
  ]
599
600
  }
600
601
  );
601
602
  }
602
- function Ka({
603
+ function ya({
603
604
  className: e,
604
605
  inset: t,
605
- ...r
606
+ ...o
606
607
  }) {
607
608
  return /* @__PURE__ */ a(
608
- S.Label,
609
+ v.Label,
609
610
  {
610
611
  "data-slot": "dropdown-menu-label",
611
612
  "data-inset": t,
612
- className: o(
613
+ className: r(
613
614
  "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
614
615
  e
615
616
  ),
616
- ...r
617
+ ...o
617
618
  }
618
619
  );
619
620
  }
620
- function qa({
621
+ function ka({
621
622
  className: e,
622
623
  ...t
623
624
  }) {
624
625
  return /* @__PURE__ */ a(
625
- S.Separator,
626
+ v.Separator,
626
627
  {
627
628
  "data-slot": "dropdown-menu-separator",
628
- className: o("bg-border -mx-1 my-1 h-px", e),
629
+ className: r("bg-border -mx-1 my-1 h-px", e),
629
630
  ...t
630
631
  }
631
632
  );
632
633
  }
633
- function Xa({
634
+ function za({
634
635
  className: e,
635
636
  ...t
636
637
  }) {
@@ -638,7 +639,7 @@ function Xa({
638
639
  "span",
639
640
  {
640
641
  "data-slot": "dropdown-menu-shortcut",
641
- className: o(
642
+ className: r(
642
643
  "text-muted-foreground ml-auto text-xs tracking-widest",
643
644
  e
644
645
  ),
@@ -646,43 +647,43 @@ function Xa({
646
647
  }
647
648
  );
648
649
  }
649
- function Ya({
650
+ function Ca({
650
651
  ...e
651
652
  }) {
652
- return /* @__PURE__ */ a(S.Sub, { "data-slot": "dropdown-menu-sub", ...e });
653
+ return /* @__PURE__ */ a(v.Sub, { "data-slot": "dropdown-menu-sub", ...e });
653
654
  }
654
- function Ja({
655
+ function Sa({
655
656
  className: e,
656
657
  inset: t,
657
- children: r,
658
+ children: o,
658
659
  ...n
659
660
  }) {
660
- return /* @__PURE__ */ l(
661
- S.SubTrigger,
661
+ return /* @__PURE__ */ i(
662
+ v.SubTrigger,
662
663
  {
663
664
  "data-slot": "dropdown-menu-sub-trigger",
664
665
  "data-inset": t,
665
- className: o(
666
+ className: r(
666
667
  "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
667
668
  e
668
669
  ),
669
670
  ...n,
670
671
  children: [
671
- r,
672
- /* @__PURE__ */ a(K, { className: "ml-auto size-4" })
672
+ o,
673
+ /* @__PURE__ */ a(q, { className: "ml-auto size-4" })
673
674
  ]
674
675
  }
675
676
  );
676
677
  }
677
- function Qa({
678
+ function Ta({
678
679
  className: e,
679
680
  ...t
680
681
  }) {
681
682
  return /* @__PURE__ */ a(
682
- S.SubContent,
683
+ v.SubContent,
683
684
  {
684
685
  "data-slot": "dropdown-menu-sub-content",
685
- className: o(
686
+ className: r(
686
687
  "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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
687
688
  e
688
689
  ),
@@ -690,30 +691,30 @@ function Qa({
690
691
  }
691
692
  );
692
693
  }
693
- function Qe({ className: e, type: t, ...r }) {
694
+ function Ve({ className: e, type: t, ...o }) {
694
695
  return /* @__PURE__ */ a(
695
696
  "input",
696
697
  {
697
698
  type: t,
698
699
  "data-slot": "input",
699
- className: o(
700
+ className: r(
700
701
  "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
701
702
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
702
703
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
703
704
  e
704
705
  ),
705
- ...r
706
+ ...o
706
707
  }
707
708
  );
708
709
  }
709
- function Za({
710
+ function _a({
710
711
  className: e,
711
712
  ...t
712
713
  }) {
713
- return /* @__PURE__ */ l(
714
+ return /* @__PURE__ */ i(
714
715
  "div",
715
716
  {
716
- className: o(
717
+ className: r(
717
718
  "flex items-center h-9 w-full min-w-0 rounded-md border border-input bg-transparent shadow-xs transition-[color,box-shadow] outline-none px-2 dark:bg-input/30",
718
719
  "focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]",
719
720
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
@@ -721,12 +722,12 @@ function Za({
721
722
  ),
722
723
  "data-slot": "search-input-wrapper",
723
724
  children: [
724
- /* @__PURE__ */ a(Re, { className: "size-4 text-muted-foreground mr-2" }),
725
+ /* @__PURE__ */ a(ke, { className: "size-4 text-muted-foreground mr-2" }),
725
726
  /* @__PURE__ */ a(
726
727
  "input",
727
728
  {
728
729
  "data-slot": "search-input",
729
- className: o(
730
+ className: r(
730
731
  "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground bg-transparent flex-1 border-0 outline-none px-0 py-1 text-base file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
731
732
  ),
732
733
  ...t
@@ -736,15 +737,15 @@ function Za({
736
737
  }
737
738
  );
738
739
  }
739
- function er({
740
+ function Da({
740
741
  className: e,
741
742
  ...t
742
743
  }) {
743
744
  return /* @__PURE__ */ a(
744
- He.Root,
745
+ Pe.Root,
745
746
  {
746
747
  "data-slot": "label",
747
- className: o(
748
+ className: r(
748
749
  "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
749
750
  e
750
751
  ),
@@ -752,19 +753,19 @@ function er({
752
753
  }
753
754
  );
754
755
  }
755
- function tr({ className: e, ...t }) {
756
+ function Ma({ className: e, ...t }) {
756
757
  return /* @__PURE__ */ a(
757
758
  "nav",
758
759
  {
759
760
  role: "navigation",
760
761
  "aria-label": "pagination",
761
762
  "data-slot": "pagination",
762
- className: o("mx-auto flex w-full justify-center", e),
763
+ className: r("mx-auto flex w-full justify-center", e),
763
764
  ...t
764
765
  }
765
766
  );
766
767
  }
767
- function ar({
768
+ function Ia({
768
769
  className: e,
769
770
  ...t
770
771
  }) {
@@ -772,18 +773,18 @@ function ar({
772
773
  "ul",
773
774
  {
774
775
  "data-slot": "pagination-content",
775
- className: o("flex flex-row items-center gap-1", e),
776
+ className: r("flex flex-row items-center gap-1", e),
776
777
  ...t
777
778
  }
778
779
  );
779
780
  }
780
- function rr({ ...e }) {
781
+ function Pa({ ...e }) {
781
782
  return /* @__PURE__ */ a("li", { "data-slot": "pagination-item", ...e });
782
783
  }
783
784
  function se({
784
785
  className: e,
785
786
  isActive: t,
786
- size: r = "icon",
787
+ size: o = "icon",
787
788
  ...n
788
789
  }) {
789
790
  return /* @__PURE__ */ a(
@@ -792,10 +793,10 @@ function se({
792
793
  "aria-current": t ? "page" : void 0,
793
794
  "data-slot": "pagination-link",
794
795
  "data-active": t,
795
- className: o(
796
- ie({
796
+ className: r(
797
+ V({
797
798
  variant: t ? "outline" : "ghost",
798
- size: r
799
+ size: o
799
800
  }),
800
801
  e
801
802
  ),
@@ -803,83 +804,83 @@ function se({
803
804
  }
804
805
  );
805
806
  }
806
- function or({
807
+ function Ra({
807
808
  className: e,
808
809
  ...t
809
810
  }) {
810
- return /* @__PURE__ */ l(
811
+ return /* @__PURE__ */ i(
811
812
  se,
812
813
  {
813
814
  "aria-label": "Go to previous page",
814
815
  size: "default",
815
- className: o("gap-1 px-2.5 sm:pl-2.5", e),
816
+ className: r("gap-1 px-2.5 sm:pl-2.5", e),
816
817
  ...t,
817
818
  children: [
818
- /* @__PURE__ */ a(Ee, {}),
819
+ /* @__PURE__ */ a(Ce, {}),
819
820
  /* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Previous" })
820
821
  ]
821
822
  }
822
823
  );
823
824
  }
824
- function nr({
825
+ function Aa({
825
826
  className: e,
826
827
  ...t
827
828
  }) {
828
- return /* @__PURE__ */ l(
829
+ return /* @__PURE__ */ i(
829
830
  se,
830
831
  {
831
832
  "aria-label": "Go to next page",
832
833
  size: "default",
833
- className: o("gap-1 px-2.5 sm:pr-2.5", e),
834
+ className: r("gap-1 px-2.5 sm:pr-2.5", e),
834
835
  ...t,
835
836
  children: [
836
837
  /* @__PURE__ */ a("span", { className: "hidden sm:block", children: "Next" }),
837
- /* @__PURE__ */ a(K, {})
838
+ /* @__PURE__ */ a(q, {})
838
839
  ]
839
840
  }
840
841
  );
841
842
  }
842
- function ir({
843
+ function La({
843
844
  className: e,
844
845
  ...t
845
846
  }) {
846
- return /* @__PURE__ */ l(
847
+ return /* @__PURE__ */ i(
847
848
  "span",
848
849
  {
849
850
  "aria-hidden": !0,
850
851
  "data-slot": "pagination-ellipsis",
851
- className: o("flex size-9 items-center justify-center", e),
852
+ className: r("flex size-9 items-center justify-center", e),
852
853
  ...t,
853
854
  children: [
854
- /* @__PURE__ */ a(De, { className: "size-4" }),
855
+ /* @__PURE__ */ a(ze, { className: "size-4" }),
855
856
  /* @__PURE__ */ a("span", { className: "sr-only", children: "More pages" })
856
857
  ]
857
858
  }
858
859
  );
859
860
  }
860
- function Ze({
861
+ function Fe({
861
862
  ...e
862
863
  }) {
863
- return /* @__PURE__ */ a(j.Root, { "data-slot": "popover", ...e });
864
+ return /* @__PURE__ */ a($.Root, { "data-slot": "popover", ...e });
864
865
  }
865
- function et({
866
+ function Ke({
866
867
  ...e
867
868
  }) {
868
- return /* @__PURE__ */ a(j.Trigger, { "data-slot": "popover-trigger", ...e });
869
+ return /* @__PURE__ */ a($.Trigger, { "data-slot": "popover-trigger", ...e });
869
870
  }
870
- function tt({
871
+ function Ue({
871
872
  className: e,
872
873
  align: t = "center",
873
- sideOffset: r = 4,
874
+ sideOffset: o = 4,
874
875
  ...n
875
876
  }) {
876
- return /* @__PURE__ */ a(j.Portal, { children: /* @__PURE__ */ a(
877
- j.Content,
877
+ return /* @__PURE__ */ a($.Portal, { children: /* @__PURE__ */ a(
878
+ $.Content,
878
879
  {
879
880
  "data-slot": "popover-content",
880
881
  align: t,
881
- sideOffset: r,
882
- className: o(
882
+ sideOffset: o,
883
+ className: r(
883
884
  "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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
884
885
  e
885
886
  ),
@@ -887,20 +888,20 @@ function tt({
887
888
  }
888
889
  ) });
889
890
  }
890
- function ee({ className: e, ...t }) {
891
+ function ae({ className: e, ...t }) {
891
892
  return /* @__PURE__ */ a(
892
893
  "div",
893
894
  {
894
895
  "data-slot": "skeleton",
895
- className: o("bg-accent animate-pulse rounded-md", e),
896
+ className: r("bg-accent animate-pulse rounded-md", e),
896
897
  ...t
897
898
  }
898
899
  );
899
900
  }
900
- const sr = ({ ...e }) => {
901
- const { theme: t = "system" } = Ge();
901
+ const Ea = ({ ...e }) => {
902
+ const { theme: t = "system" } = Re();
902
903
  return /* @__PURE__ */ a(
903
- Ve,
904
+ Ae,
904
905
  {
905
906
  theme: t,
906
907
  className: "toaster group",
@@ -913,28 +914,28 @@ const sr = ({ ...e }) => {
913
914
  }
914
915
  );
915
916
  };
916
- function dr({
917
+ function ja({
917
918
  rowCount: e,
918
919
  rowHeight: t = 48,
919
- height: r = 400,
920
+ height: o = 400,
920
921
  className: n,
921
- children: i
922
+ children: s
922
923
  }) {
923
924
  return /* @__PURE__ */ a(
924
- Fe,
925
+ Le,
925
926
  {
926
- className: o("w-full relative block", n),
927
- height: r,
927
+ className: r("w-full relative block", n),
928
+ height: o,
928
929
  itemCount: e,
929
930
  itemSize: t,
930
931
  width: "100%",
931
- outerElementType: at,
932
- innerElementType: Se,
933
- children: ({ index: s, style: c }) => /* @__PURE__ */ a(rt, { style: c, children: i(s, c) }, s)
932
+ outerElementType: We,
933
+ innerElementType: be,
934
+ children: ({ index: d, style: u }) => /* @__PURE__ */ a(qe, { style: u, children: s(d, u) }, d)
934
935
  }
935
936
  );
936
937
  }
937
- function lr({ className: e, ...t }) {
938
+ function Ba({ className: e, ...t }) {
938
939
  return /* @__PURE__ */ a(
939
940
  "div",
940
941
  {
@@ -944,72 +945,72 @@ function lr({ className: e, ...t }) {
944
945
  "table",
945
946
  {
946
947
  "data-slot": "table",
947
- className: o("w-full caption-bottom text-sm", e),
948
+ className: r("w-full caption-bottom text-sm", e),
948
949
  ...t
949
950
  }
950
951
  )
951
952
  }
952
953
  );
953
954
  }
954
- function cr({ className: e, ...t }) {
955
+ function Oa({ className: e, ...t }) {
955
956
  return /* @__PURE__ */ a(
956
957
  "thead",
957
958
  {
958
959
  "data-slot": "table-header",
959
- className: o("[&_tr]:border-b", e),
960
+ className: r("[&_tr]:border-b", e),
960
961
  ...t
961
962
  }
962
963
  );
963
964
  }
964
- function at({ className: e, ...t }) {
965
+ function We({ className: e, ...t }) {
965
966
  return /* @__PURE__ */ a(
966
967
  "tbody",
967
968
  {
968
969
  "data-slot": "table-body",
969
- className: o("[&_tr:last-child]:border-0", e),
970
+ className: r("[&_tr:last-child]:border-0", e),
970
971
  ...t
971
972
  }
972
973
  );
973
974
  }
974
- function rt({ className: e, style: t, ...r }) {
975
+ function qe({ className: e, style: t, ...o }) {
975
976
  return /* @__PURE__ */ a(
976
977
  "tr",
977
978
  {
978
979
  "data-slot": "table-row",
979
- className: o(
980
+ className: r(
980
981
  "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors flex items-center",
981
982
  e
982
983
  ),
983
984
  style: t,
984
- ...r
985
+ ...o
985
986
  }
986
987
  );
987
988
  }
988
- function ur({ className: e, ...t }) {
989
- const { icon: r, ...n } = t, { children: i } = n;
990
- return /* @__PURE__ */ l(
989
+ function $a({ className: e, ...t }) {
990
+ const { icon: o, ...n } = t, { children: s } = n;
991
+ return /* @__PURE__ */ i(
991
992
  "th",
992
993
  {
993
994
  "data-slot": "table-head",
994
- className: o(
995
- r && "gap-2",
995
+ className: r(
996
+ o && "gap-2",
996
997
  "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] w-full flex items-center",
997
998
  e
998
999
  ),
999
1000
  ...n,
1000
1001
  children: [
1001
- r,
1002
- i
1002
+ o,
1003
+ s
1003
1004
  ]
1004
1005
  }
1005
1006
  );
1006
1007
  }
1007
- function fr({ className: e, ...t }) {
1008
+ function Ga({ className: e, ...t }) {
1008
1009
  return /* @__PURE__ */ a(
1009
1010
  "td",
1010
1011
  {
1011
1012
  "data-slot": "table-cell",
1012
- className: o(
1013
+ className: r(
1013
1014
  "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] w-full flex items-center",
1014
1015
  e
1015
1016
  ),
@@ -1017,7 +1018,7 @@ function fr({ className: e, ...t }) {
1017
1018
  }
1018
1019
  );
1019
1020
  }
1020
- function mr({
1021
+ function Ha({
1021
1022
  className: e,
1022
1023
  ...t
1023
1024
  }) {
@@ -1025,12 +1026,12 @@ function mr({
1025
1026
  "caption",
1026
1027
  {
1027
1028
  "data-slot": "table-caption",
1028
- className: o("text-muted-foreground mt-4 text-sm", e),
1029
+ className: r("text-muted-foreground mt-4 text-sm", e),
1029
1030
  ...t
1030
1031
  }
1031
1032
  );
1032
1033
  }
1033
- function pr({
1034
+ function Va({
1034
1035
  className: e,
1035
1036
  ...t
1036
1037
  }) {
@@ -1038,12 +1039,12 @@ function pr({
1038
1039
  H.Root,
1039
1040
  {
1040
1041
  "data-slot": "tabs",
1041
- className: o("flex flex-col gap-2", e),
1042
+ className: r("flex flex-col gap-2", e),
1042
1043
  ...t
1043
1044
  }
1044
1045
  );
1045
1046
  }
1046
- function gr({
1047
+ function Fa({
1047
1048
  className: e,
1048
1049
  ...t
1049
1050
  }) {
@@ -1051,7 +1052,7 @@ function gr({
1051
1052
  H.List,
1052
1053
  {
1053
1054
  "data-slot": "tabs-list",
1054
- className: o(
1055
+ className: r(
1055
1056
  "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
1056
1057
  e
1057
1058
  ),
@@ -1059,7 +1060,7 @@ function gr({
1059
1060
  }
1060
1061
  );
1061
1062
  }
1062
- function br({
1063
+ function Ka({
1063
1064
  className: e,
1064
1065
  ...t
1065
1066
  }) {
@@ -1067,7 +1068,7 @@ function br({
1067
1068
  H.Trigger,
1068
1069
  {
1069
1070
  "data-slot": "tabs-trigger",
1070
- className: o(
1071
+ className: r(
1071
1072
  "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1072
1073
  e
1073
1074
  ),
@@ -1075,7 +1076,7 @@ function br({
1075
1076
  }
1076
1077
  );
1077
1078
  }
1078
- function hr({
1079
+ function Ua({
1079
1080
  className: e,
1080
1081
  ...t
1081
1082
  }) {
@@ -1083,7 +1084,7 @@ function hr({
1083
1084
  H.Content,
1084
1085
  {
1085
1086
  "data-slot": "tabs-content",
1086
- className: o("flex-1 outline-none", e),
1087
+ className: r("flex-1 outline-none", e),
1087
1088
  ...t
1088
1089
  }
1089
1090
  );
@@ -1093,7 +1094,7 @@ function de({
1093
1094
  ...t
1094
1095
  }) {
1095
1096
  return /* @__PURE__ */ a(
1096
- E.Provider,
1097
+ A.Provider,
1097
1098
  {
1098
1099
  "data-slot": "tooltip-provider",
1099
1100
  delayDuration: e,
@@ -1101,48 +1102,48 @@ function de({
1101
1102
  }
1102
1103
  );
1103
1104
  }
1104
- function ot({
1105
+ function Xe({
1105
1106
  ...e
1106
1107
  }) {
1107
- return /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(E.Root, { "data-slot": "tooltip", ...e }) });
1108
+ return /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(A.Root, { "data-slot": "tooltip", ...e }) });
1108
1109
  }
1109
- function nt({
1110
+ function Ye({
1110
1111
  ...e
1111
1112
  }) {
1112
- return /* @__PURE__ */ a(E.Trigger, { "data-slot": "tooltip-trigger", ...e });
1113
+ return /* @__PURE__ */ a(A.Trigger, { "data-slot": "tooltip-trigger", ...e });
1113
1114
  }
1114
- function it({
1115
+ function Je({
1115
1116
  className: e,
1116
1117
  sideOffset: t = 0,
1117
- children: r,
1118
+ children: o,
1118
1119
  ...n
1119
1120
  }) {
1120
- return /* @__PURE__ */ a(E.Portal, { children: /* @__PURE__ */ l(
1121
- E.Content,
1121
+ return /* @__PURE__ */ a(A.Portal, { children: /* @__PURE__ */ i(
1122
+ A.Content,
1122
1123
  {
1123
1124
  "data-slot": "tooltip-content",
1124
1125
  sideOffset: t,
1125
- className: o(
1126
+ className: r(
1126
1127
  "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
1127
1128
  e
1128
1129
  ),
1129
1130
  ...n,
1130
1131
  children: [
1131
- r,
1132
- /* @__PURE__ */ a(E.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
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
1134
  ]
1134
1135
  }
1135
1136
  ) });
1136
1137
  }
1137
- function vr({ ...e }) {
1138
+ function Wa({ ...e }) {
1138
1139
  return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e });
1139
1140
  }
1140
- function xr({ className: e, ...t }) {
1141
+ function qa({ className: e, ...t }) {
1141
1142
  return /* @__PURE__ */ a(
1142
1143
  "ol",
1143
1144
  {
1144
1145
  "data-slot": "breadcrumb-list",
1145
- className: o(
1146
+ className: r(
1146
1147
  "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
1147
1148
  e
1148
1149
  ),
@@ -1150,31 +1151,31 @@ function xr({ className: e, ...t }) {
1150
1151
  }
1151
1152
  );
1152
1153
  }
1153
- function wr({ className: e, ...t }) {
1154
+ function Xa({ className: e, ...t }) {
1154
1155
  return /* @__PURE__ */ a(
1155
1156
  "li",
1156
1157
  {
1157
1158
  "data-slot": "breadcrumb-item",
1158
- className: o("inline-flex items-center gap-1.5", e),
1159
+ className: r("inline-flex items-center gap-1.5", e),
1159
1160
  ...t
1160
1161
  }
1161
1162
  );
1162
1163
  }
1163
- function yr({
1164
+ function Ya({
1164
1165
  asChild: e,
1165
1166
  className: t,
1166
- ...r
1167
+ ...o
1167
1168
  }) {
1168
1169
  return /* @__PURE__ */ a(
1169
- e ? R : "a",
1170
+ e ? D : "a",
1170
1171
  {
1171
1172
  "data-slot": "breadcrumb-link",
1172
- className: o("hover:text-foreground transition-colors", t),
1173
- ...r
1173
+ className: r("hover:text-foreground transition-colors", t),
1174
+ ...o
1174
1175
  }
1175
1176
  );
1176
1177
  }
1177
- function Nr({ className: e, ...t }) {
1178
+ function Ja({ className: e, ...t }) {
1178
1179
  return /* @__PURE__ */ a(
1179
1180
  "span",
1180
1181
  {
@@ -1182,15 +1183,15 @@ function Nr({ className: e, ...t }) {
1182
1183
  role: "link",
1183
1184
  "aria-disabled": "true",
1184
1185
  "aria-current": "page",
1185
- className: o("text-foreground font-normal", e),
1186
+ className: r("text-foreground font-normal", e),
1186
1187
  ...t
1187
1188
  }
1188
1189
  );
1189
1190
  }
1190
- function kr({
1191
+ function Qa({
1191
1192
  children: e,
1192
1193
  className: t,
1193
- ...r
1194
+ ...o
1194
1195
  }) {
1195
1196
  return /* @__PURE__ */ a(
1196
1197
  "li",
@@ -1198,36 +1199,36 @@ function kr({
1198
1199
  "data-slot": "breadcrumb-separator",
1199
1200
  role: "presentation",
1200
1201
  "aria-hidden": "true",
1201
- className: o("[&>svg]:size-3.5", t),
1202
- ...r,
1203
- children: e ?? /* @__PURE__ */ a(oe, {})
1202
+ className: r("[&>svg]:size-3.5", t),
1203
+ ...o,
1204
+ children: e ?? /* @__PURE__ */ a(ne, {})
1204
1205
  }
1205
1206
  );
1206
1207
  }
1207
- function Sr({
1208
+ function Za({
1208
1209
  ...e
1209
1210
  }) {
1210
- return /* @__PURE__ */ a(N.Root, { "data-slot": "dialog", ...e });
1211
+ return /* @__PURE__ */ a(b.Root, { "data-slot": "dialog", ...e });
1211
1212
  }
1212
- function Cr({
1213
+ function er({
1213
1214
  ...e
1214
1215
  }) {
1215
- return /* @__PURE__ */ a(N.Trigger, { "data-slot": "dialog-trigger", ...e });
1216
+ return /* @__PURE__ */ a(b.Trigger, { "data-slot": "dialog-trigger", ...e });
1216
1217
  }
1217
- function st({
1218
+ function Qe({
1218
1219
  ...e
1219
1220
  }) {
1220
- return /* @__PURE__ */ a(N.Portal, { "data-slot": "dialog-portal", ...e });
1221
+ return /* @__PURE__ */ a(b.Portal, { "data-slot": "dialog-portal", ...e });
1221
1222
  }
1222
- function dt({
1223
+ function Ze({
1223
1224
  className: e,
1224
1225
  ...t
1225
1226
  }) {
1226
1227
  return /* @__PURE__ */ a(
1227
- N.Overlay,
1228
+ b.Overlay,
1228
1229
  {
1229
1230
  "data-slot": "dialog-overlay",
1230
- className: o(
1231
+ className: r(
1231
1232
  "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",
1232
1233
  e
1233
1234
  ),
@@ -1235,32 +1236,32 @@ function dt({
1235
1236
  }
1236
1237
  );
1237
1238
  }
1238
- function zr({
1239
+ function tr({
1239
1240
  className: e,
1240
1241
  children: t,
1241
- showCloseButton: r = !0,
1242
+ showCloseButton: o = !0,
1242
1243
  ...n
1243
1244
  }) {
1244
- return /* @__PURE__ */ l(st, { "data-slot": "dialog-portal", children: [
1245
- /* @__PURE__ */ a(dt, {}),
1246
- /* @__PURE__ */ l(
1247
- N.Content,
1245
+ return /* @__PURE__ */ i(Qe, { "data-slot": "dialog-portal", children: [
1246
+ /* @__PURE__ */ a(Ze, {}),
1247
+ /* @__PURE__ */ i(
1248
+ b.Content,
1248
1249
  {
1249
1250
  "data-slot": "dialog-content",
1250
- className: o(
1251
+ className: r(
1251
1252
  "bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
1252
1253
  e
1253
1254
  ),
1254
1255
  ...n,
1255
1256
  children: [
1256
1257
  t,
1257
- r && /* @__PURE__ */ l(
1258
- N.Close,
1258
+ o && /* @__PURE__ */ i(
1259
+ b.Close,
1259
1260
  {
1260
1261
  "data-slot": "dialog-close",
1261
1262
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1262
1263
  children: [
1263
- /* @__PURE__ */ a(ne, {}),
1264
+ /* @__PURE__ */ a(ie, {}),
1264
1265
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
1265
1266
  ]
1266
1267
  }
@@ -1270,22 +1271,22 @@ function zr({
1270
1271
  )
1271
1272
  ] });
1272
1273
  }
1273
- function _r({ className: e, ...t }) {
1274
+ function ar({ className: e, ...t }) {
1274
1275
  return /* @__PURE__ */ a(
1275
1276
  "div",
1276
1277
  {
1277
1278
  "data-slot": "dialog-header",
1278
- className: o("flex flex-col gap-2 text-center sm:text-left", e),
1279
+ className: r("flex flex-col gap-2 text-center sm:text-left", e),
1279
1280
  ...t
1280
1281
  }
1281
1282
  );
1282
1283
  }
1283
- function Tr({ className: e, ...t }) {
1284
+ function rr({ className: e, ...t }) {
1284
1285
  return /* @__PURE__ */ a(
1285
1286
  "div",
1286
1287
  {
1287
1288
  "data-slot": "dialog-footer",
1288
- className: o(
1289
+ className: r(
1289
1290
  "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
1290
1291
  e
1291
1292
  ),
@@ -1293,41 +1294,41 @@ function Tr({ className: e, ...t }) {
1293
1294
  }
1294
1295
  );
1295
1296
  }
1296
- function Mr({
1297
+ function or({
1297
1298
  className: e,
1298
1299
  ...t
1299
1300
  }) {
1300
1301
  return /* @__PURE__ */ a(
1301
- N.Title,
1302
+ b.Title,
1302
1303
  {
1303
1304
  "data-slot": "dialog-title",
1304
- className: o("text-lg leading-none font-semibold", e),
1305
+ className: r("text-lg leading-none font-semibold", e),
1305
1306
  ...t
1306
1307
  }
1307
1308
  );
1308
1309
  }
1309
- function Ir({
1310
+ function nr({
1310
1311
  className: e,
1311
1312
  ...t
1312
1313
  }) {
1313
1314
  return /* @__PURE__ */ a(
1314
- N.Description,
1315
+ b.Description,
1315
1316
  {
1316
1317
  "data-slot": "dialog-description",
1317
- className: o("text-muted-foreground text-sm", e),
1318
+ className: r("text-muted-foreground text-sm", e),
1318
1319
  ...t
1319
1320
  }
1320
1321
  );
1321
1322
  }
1322
- function lt({
1323
+ function et({
1323
1324
  className: e,
1324
1325
  ...t
1325
1326
  }) {
1326
1327
  return /* @__PURE__ */ a(
1327
- B,
1328
+ L,
1328
1329
  {
1329
1330
  "data-slot": "command",
1330
- className: o(
1331
+ className: r(
1331
1332
  "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
1332
1333
  e
1333
1334
  ),
@@ -1335,22 +1336,22 @@ function lt({
1335
1336
  }
1336
1337
  );
1337
1338
  }
1338
- function ct({
1339
+ function tt({
1339
1340
  className: e,
1340
1341
  ...t
1341
1342
  }) {
1342
- return /* @__PURE__ */ l(
1343
+ return /* @__PURE__ */ i(
1343
1344
  "div",
1344
1345
  {
1345
1346
  "data-slot": "command-input-wrapper",
1346
1347
  className: "flex h-9 items-center gap-2 border-b px-3",
1347
1348
  children: [
1348
- /* @__PURE__ */ a(Be, { className: "size-4 shrink-0 opacity-50" }),
1349
+ /* @__PURE__ */ a(Se, { className: "size-4 shrink-0 opacity-50" }),
1349
1350
  /* @__PURE__ */ a(
1350
- B.Input,
1351
+ L.Input,
1351
1352
  {
1352
1353
  "data-slot": "command-input",
1353
- className: o(
1354
+ className: r(
1354
1355
  "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
1355
1356
  e
1356
1357
  ),
@@ -1361,15 +1362,15 @@ function ct({
1361
1362
  }
1362
1363
  );
1363
1364
  }
1364
- function ut({
1365
+ function at({
1365
1366
  className: e,
1366
1367
  ...t
1367
1368
  }) {
1368
1369
  return /* @__PURE__ */ a(
1369
- B.List,
1370
+ L.List,
1370
1371
  {
1371
1372
  "data-slot": "command-list",
1372
- className: o(
1373
+ className: r(
1373
1374
  "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
1374
1375
  e
1375
1376
  ),
@@ -1377,11 +1378,11 @@ function ut({
1377
1378
  }
1378
1379
  );
1379
1380
  }
1380
- function ft({
1381
+ function rt({
1381
1382
  ...e
1382
1383
  }) {
1383
1384
  return /* @__PURE__ */ a(
1384
- B.Empty,
1385
+ L.Empty,
1385
1386
  {
1386
1387
  "data-slot": "command-empty",
1387
1388
  className: "py-6 text-center text-sm",
@@ -1389,15 +1390,15 @@ function ft({
1389
1390
  }
1390
1391
  );
1391
1392
  }
1392
- function mt({
1393
+ function ot({
1393
1394
  className: e,
1394
1395
  ...t
1395
1396
  }) {
1396
1397
  return /* @__PURE__ */ a(
1397
- B.Group,
1398
+ L.Group,
1398
1399
  {
1399
1400
  "data-slot": "command-group",
1400
- className: o(
1401
+ className: r(
1401
1402
  "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
1402
1403
  e
1403
1404
  ),
@@ -1405,15 +1406,15 @@ function mt({
1405
1406
  }
1406
1407
  );
1407
1408
  }
1408
- function pt({
1409
+ function nt({
1409
1410
  className: e,
1410
1411
  ...t
1411
1412
  }) {
1412
1413
  return /* @__PURE__ */ a(
1413
- B.Item,
1414
+ L.Item,
1414
1415
  {
1415
1416
  "data-slot": "command-item",
1416
- className: o(
1417
+ className: r(
1417
1418
  "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1418
1419
  e
1419
1420
  ),
@@ -1421,258 +1422,258 @@ function pt({
1421
1422
  }
1422
1423
  );
1423
1424
  }
1424
- function Pr({
1425
+ function ir({
1425
1426
  ...e
1426
1427
  }) {
1427
- return /* @__PURE__ */ a(z.Root, { "data-slot": "select", ...e });
1428
+ return /* @__PURE__ */ a(w.Root, { "data-slot": "select", ...e });
1428
1429
  }
1429
- function Rr({
1430
+ function sr({
1430
1431
  ...e
1431
1432
  }) {
1432
- return /* @__PURE__ */ a(z.Group, { "data-slot": "select-group", ...e });
1433
+ return /* @__PURE__ */ a(w.Group, { "data-slot": "select-group", ...e });
1433
1434
  }
1434
- function Dr({
1435
+ function dr({
1435
1436
  ...e
1436
1437
  }) {
1437
- return /* @__PURE__ */ a(z.Value, { "data-slot": "select-value", ...e });
1438
+ return /* @__PURE__ */ a(w.Value, { "data-slot": "select-value", ...e });
1438
1439
  }
1439
- function Er({
1440
+ function lr({
1440
1441
  className: e,
1441
1442
  size: t = "default",
1442
- children: r,
1443
+ children: o,
1443
1444
  ...n
1444
1445
  }) {
1445
- return /* @__PURE__ */ l(
1446
- z.Trigger,
1446
+ return /* @__PURE__ */ i(
1447
+ w.Trigger,
1447
1448
  {
1448
1449
  "data-slot": "select-trigger",
1449
1450
  "data-size": t,
1450
- className: o(
1451
+ className: r(
1451
1452
  "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",
1452
1453
  e
1453
1454
  ),
1454
1455
  ...n,
1455
1456
  children: [
1456
- r,
1457
- /* @__PURE__ */ a(z.Icon, { asChild: !0, children: /* @__PURE__ */ a(q, { className: "size-4 opacity-50" }) })
1457
+ o,
1458
+ /* @__PURE__ */ a(w.Icon, { asChild: !0, children: /* @__PURE__ */ a(X, { className: "size-4 opacity-50" }) })
1458
1459
  ]
1459
1460
  }
1460
1461
  );
1461
1462
  }
1462
- function Br({
1463
+ function cr({
1463
1464
  className: e,
1464
1465
  children: t,
1465
- position: r = "popper",
1466
+ position: o = "popper",
1466
1467
  ...n
1467
1468
  }) {
1468
- return /* @__PURE__ */ a(z.Portal, { children: /* @__PURE__ */ l(
1469
- z.Content,
1469
+ return /* @__PURE__ */ a(w.Portal, { children: /* @__PURE__ */ i(
1470
+ w.Content,
1470
1471
  {
1471
1472
  "data-slot": "select-content",
1472
- className: o(
1473
+ className: r(
1473
1474
  "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",
1474
- r === "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",
1475
+ 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",
1475
1476
  e
1476
1477
  ),
1477
- position: r,
1478
+ position: o,
1478
1479
  ...n,
1479
1480
  children: [
1480
- /* @__PURE__ */ a(gt, {}),
1481
+ /* @__PURE__ */ a(it, {}),
1481
1482
  /* @__PURE__ */ a(
1482
- z.Viewport,
1483
+ w.Viewport,
1483
1484
  {
1484
- className: o(
1485
+ className: r(
1485
1486
  "p-1",
1486
- r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
1487
+ o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
1487
1488
  ),
1488
1489
  children: t
1489
1490
  }
1490
1491
  ),
1491
- /* @__PURE__ */ a(bt, {})
1492
+ /* @__PURE__ */ a(st, {})
1492
1493
  ]
1493
1494
  }
1494
1495
  ) });
1495
1496
  }
1496
- function Lr({
1497
+ function ur({
1497
1498
  className: e,
1498
1499
  ...t
1499
1500
  }) {
1500
1501
  return /* @__PURE__ */ a(
1501
- z.Label,
1502
+ w.Label,
1502
1503
  {
1503
1504
  "data-slot": "select-label",
1504
- className: o("text-muted-foreground px-2 py-1.5 text-xs", e),
1505
+ className: r("text-muted-foreground px-2 py-1.5 text-xs", e),
1505
1506
  ...t
1506
1507
  }
1507
1508
  );
1508
1509
  }
1509
- function Ar({
1510
+ function mr({
1510
1511
  className: e,
1511
1512
  children: t,
1512
- ...r
1513
+ ...o
1513
1514
  }) {
1514
- return /* @__PURE__ */ l(
1515
- z.Item,
1515
+ return /* @__PURE__ */ i(
1516
+ w.Item,
1516
1517
  {
1517
1518
  "data-slot": "select-item",
1518
- className: o(
1519
+ className: r(
1519
1520
  "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",
1520
1521
  e
1521
1522
  ),
1522
- ...r,
1523
+ ...o,
1523
1524
  children: [
1524
- /* @__PURE__ */ a("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(z.ItemIndicator, { children: /* @__PURE__ */ a($, { className: "size-4" }) }) }),
1525
- /* @__PURE__ */ a(z.ItemText, { children: t })
1525
+ /* @__PURE__ */ a("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(w.ItemIndicator, { children: /* @__PURE__ */ a(O, { className: "size-4" }) }) }),
1526
+ /* @__PURE__ */ a(w.ItemText, { children: t })
1526
1527
  ]
1527
1528
  }
1528
1529
  );
1529
1530
  }
1530
- function gt({
1531
+ function it({
1531
1532
  className: e,
1532
1533
  ...t
1533
1534
  }) {
1534
1535
  return /* @__PURE__ */ a(
1535
- z.ScrollUpButton,
1536
+ w.ScrollUpButton,
1536
1537
  {
1537
1538
  "data-slot": "select-scroll-up-button",
1538
- className: o(
1539
+ className: r(
1539
1540
  "flex cursor-default items-center justify-center py-1",
1540
1541
  e
1541
1542
  ),
1542
1543
  ...t,
1543
- children: /* @__PURE__ */ a(Ae, { className: "size-4" })
1544
+ children: /* @__PURE__ */ a(_e, { className: "size-4" })
1544
1545
  }
1545
1546
  );
1546
1547
  }
1547
- function bt({
1548
+ function st({
1548
1549
  className: e,
1549
1550
  ...t
1550
1551
  }) {
1551
1552
  return /* @__PURE__ */ a(
1552
- z.ScrollDownButton,
1553
+ w.ScrollDownButton,
1553
1554
  {
1554
1555
  "data-slot": "select-scroll-down-button",
1555
- className: o(
1556
+ className: r(
1556
1557
  "flex cursor-default items-center justify-center py-1",
1557
1558
  e
1558
1559
  ),
1559
1560
  ...t,
1560
- children: /* @__PURE__ */ a(q, { className: "size-4" })
1561
+ children: /* @__PURE__ */ a(X, { className: "size-4" })
1561
1562
  }
1562
1563
  );
1563
1564
  }
1564
- function $r({
1565
+ function fr({
1565
1566
  options: e,
1566
1567
  placeholder: t = "Select option...",
1567
- searchPlaceholder: r = "Search...",
1568
+ searchPlaceholder: o = "Search...",
1568
1569
  value: n,
1569
- onChange: i,
1570
- buttonClassName: s,
1571
- contentClassName: c,
1572
- disabled: d = !1,
1573
- extraOptions: m,
1574
- side: f = "bottom",
1575
- align: p = "start",
1576
- onlyIcon: b = !1
1577
- }) {
1578
- const [h, x] = u.useState(!1), [w, _] = u.useState(""), y = n ?? w, [g, v] = u.useState(""), M = u.useMemo(
1570
+ onChange: s,
1571
+ buttonClassName: d,
1572
+ contentClassName: u,
1573
+ disabled: c = !1,
1574
+ extraOptions: p,
1575
+ side: l = "bottom",
1576
+ align: T = "start",
1577
+ onlyIcon: I = !1
1578
+ }) {
1579
+ const [k, C] = g.useState(!1), [_, P] = g.useState(""), N = n ?? _, [m, f] = g.useState(""), E = g.useMemo(
1579
1580
  () => e.filter(
1580
- (C) => C.label.toLowerCase().includes(g.toLowerCase())
1581
+ (x) => x.label.toLowerCase().includes(m.toLowerCase())
1581
1582
  ),
1582
- [e, g]
1583
- ), P = (C) => {
1584
- n === void 0 && _(C === y ? "" : C), i?.(C === y ? "" : C), x(!1);
1585
- }, L = e.find((C) => C.value === y);
1586
- return /* @__PURE__ */ l(Ze, { open: h, onOpenChange: x, children: [
1587
- /* @__PURE__ */ a(et, { children: /* @__PURE__ */ l(
1588
- Y,
1583
+ [e, m]
1584
+ ), R = (x) => {
1585
+ n === void 0 && P(x === N ? "" : x), s?.(x === N ? "" : x), C(!1);
1586
+ }, j = e.find((x) => x.value === N);
1587
+ return /* @__PURE__ */ i(Fe, { open: k, onOpenChange: C, children: [
1588
+ /* @__PURE__ */ a(Ke, { children: /* @__PURE__ */ i(
1589
+ J,
1589
1590
  {
1590
1591
  variant: "outline",
1591
1592
  role: "combobox",
1592
- "aria-expanded": h,
1593
- className: o("w-full justify-between", s, {
1594
- "has-[>svg]:px-2 px-2": b
1593
+ "aria-expanded": k,
1594
+ className: r("w-full justify-between", d, {
1595
+ "has-[>svg]:px-2 px-2": I
1595
1596
  }),
1596
- disabled: d,
1597
+ disabled: c,
1597
1598
  children: [
1598
1599
  /* @__PURE__ */ a(
1599
1600
  "span",
1600
1601
  {
1601
- className: o("flex items-center gap-2", {
1602
- "text-muted-foreground": !L && !!t
1602
+ className: r("flex items-center gap-2", {
1603
+ "text-muted-foreground": !j && !!t
1603
1604
  }),
1604
- children: L ? /* @__PURE__ */ a(W, { children: b ? L.icon : /* @__PURE__ */ l(W, { children: [
1605
- L.icon,
1606
- L.label
1605
+ children: j ? /* @__PURE__ */ a(W, { children: I ? j.icon : /* @__PURE__ */ i(W, { children: [
1606
+ j.icon,
1607
+ j.label
1607
1608
  ] }) }) : t
1608
1609
  }
1609
1610
  ),
1610
- /* @__PURE__ */ a(Le, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
1611
+ /* @__PURE__ */ a(Te, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
1611
1612
  ]
1612
1613
  }
1613
1614
  ) }),
1614
- /* @__PURE__ */ a(tt, { className: o("p-0", c), side: f, align: p, children: /* @__PURE__ */ l(lt, { children: [
1615
+ /* @__PURE__ */ a(Ue, { className: r("p-0", u), side: l, align: T, children: /* @__PURE__ */ i(et, { children: [
1615
1616
  /* @__PURE__ */ a(
1616
- ct,
1617
+ tt,
1617
1618
  {
1618
- placeholder: r,
1619
- value: g,
1620
- onValueChange: v
1619
+ placeholder: o,
1620
+ value: m,
1621
+ onValueChange: f
1621
1622
  }
1622
1623
  ),
1623
- /* @__PURE__ */ l(ut, { children: [
1624
- /* @__PURE__ */ a(ft, { children: "No option found." }),
1625
- /* @__PURE__ */ l(mt, { children: [
1626
- M.map((C) => /* @__PURE__ */ l(
1627
- pt,
1624
+ /* @__PURE__ */ i(at, { children: [
1625
+ /* @__PURE__ */ a(rt, { children: "No option found." }),
1626
+ /* @__PURE__ */ i(ot, { children: [
1627
+ E.map((x) => /* @__PURE__ */ i(
1628
+ nt,
1628
1629
  {
1629
- value: C.value,
1630
- onSelect: (ke) => P(ke),
1630
+ value: x.value,
1631
+ onSelect: (ge) => R(ge),
1631
1632
  children: [
1632
1633
  /* @__PURE__ */ a(
1633
- $,
1634
+ O,
1634
1635
  {
1635
- className: o(
1636
+ className: r(
1636
1637
  "mr-2 h-4 w-4",
1637
- y === C.value ? "opacity-100" : "opacity-0"
1638
+ N === x.value ? "opacity-100" : "opacity-0"
1638
1639
  )
1639
1640
  }
1640
1641
  ),
1641
- C.icon,
1642
- C.label
1642
+ x.icon,
1643
+ x.label
1643
1644
  ]
1644
1645
  },
1645
- C.value
1646
+ x.value
1646
1647
  )),
1647
- m
1648
+ p
1648
1649
  ] })
1649
1650
  ] })
1650
1651
  ] }) })
1651
1652
  ] });
1652
1653
  }
1653
1654
  const U = 768;
1654
- function ht() {
1655
- const [e, t] = u.useState(void 0);
1656
- return u.useEffect(() => {
1657
- const r = window.matchMedia(`(max-width: ${U - 1}px)`), n = () => {
1655
+ function dt() {
1656
+ const [e, t] = g.useState(void 0);
1657
+ return g.useEffect(() => {
1658
+ const o = window.matchMedia(`(max-width: ${U - 1}px)`), n = () => {
1658
1659
  t(window.innerWidth < U);
1659
1660
  };
1660
- return r.addEventListener("change", n), t(window.innerWidth < U), () => r.removeEventListener("change", n);
1661
+ return o.addEventListener("change", n), t(window.innerWidth < U), () => o.removeEventListener("change", n);
1661
1662
  }, []), !!e;
1662
1663
  }
1663
1664
  function le({
1664
1665
  className: e,
1665
1666
  orientation: t = "horizontal",
1666
- decorative: r = !0,
1667
+ decorative: o = !0,
1667
1668
  ...n
1668
1669
  }) {
1669
1670
  return /* @__PURE__ */ a(
1670
- Ue.Root,
1671
+ Ee.Root,
1671
1672
  {
1672
1673
  "data-slot": "separator",
1673
- decorative: r,
1674
+ decorative: o,
1674
1675
  orientation: t,
1675
- className: o(
1676
+ className: r(
1676
1677
  "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
1677
1678
  e
1678
1679
  ),
@@ -1680,28 +1681,28 @@ function le({
1680
1681
  }
1681
1682
  );
1682
1683
  }
1683
- function vt({ ...e }) {
1684
- return /* @__PURE__ */ a(N.Root, { "data-slot": "sheet", ...e });
1684
+ function lt({ ...e }) {
1685
+ return /* @__PURE__ */ a(b.Root, { "data-slot": "sheet", ...e });
1685
1686
  }
1686
- function jr({
1687
+ function pr({
1687
1688
  ...e
1688
1689
  }) {
1689
- return /* @__PURE__ */ a(N.Trigger, { "data-slot": "sheet-trigger", ...e });
1690
+ return /* @__PURE__ */ a(b.Trigger, { "data-slot": "sheet-trigger", ...e });
1690
1691
  }
1691
- function xt({
1692
+ function ct({
1692
1693
  ...e
1693
1694
  }) {
1694
- return /* @__PURE__ */ a(N.Portal, { "data-slot": "sheet-portal", ...e });
1695
+ return /* @__PURE__ */ a(b.Portal, { "data-slot": "sheet-portal", ...e });
1695
1696
  }
1696
- function wt({
1697
+ function ut({
1697
1698
  className: e,
1698
1699
  ...t
1699
1700
  }) {
1700
1701
  return /* @__PURE__ */ a(
1701
- N.Overlay,
1702
+ b.Overlay,
1702
1703
  {
1703
1704
  "data-slot": "sheet-overlay",
1704
- className: o(
1705
+ className: r(
1705
1706
  "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",
1706
1707
  e
1707
1708
  ),
@@ -1709,31 +1710,31 @@ function wt({
1709
1710
  }
1710
1711
  );
1711
1712
  }
1712
- function yt({
1713
+ function mt({
1713
1714
  className: e,
1714
1715
  children: t,
1715
- side: r = "right",
1716
+ side: o = "right",
1716
1717
  ...n
1717
1718
  }) {
1718
- return /* @__PURE__ */ l(xt, { children: [
1719
- /* @__PURE__ */ a(wt, {}),
1720
- /* @__PURE__ */ l(
1721
- N.Content,
1719
+ return /* @__PURE__ */ i(ct, { children: [
1720
+ /* @__PURE__ */ a(ut, {}),
1721
+ /* @__PURE__ */ i(
1722
+ b.Content,
1722
1723
  {
1723
1724
  "data-slot": "sheet-content",
1724
- className: o(
1725
+ className: r(
1725
1726
  "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",
1726
- r === "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",
1727
- r === "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",
1728
- r === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
1729
- r === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
1727
+ 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",
1728
+ 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",
1729
+ 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",
1730
+ 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",
1730
1731
  e
1731
1732
  ),
1732
1733
  ...n,
1733
1734
  children: [
1734
1735
  t,
1735
- /* @__PURE__ */ l(N.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: [
1736
- /* @__PURE__ */ a(ne, { className: "size-4" }),
1736
+ /* @__PURE__ */ i(b.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: [
1737
+ /* @__PURE__ */ a(ie, { className: "size-4" }),
1737
1738
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
1738
1739
  ] })
1739
1740
  ]
@@ -1741,156 +1742,156 @@ function yt({
1741
1742
  )
1742
1743
  ] });
1743
1744
  }
1744
- function Nt({ className: e, ...t }) {
1745
+ function ft({ className: e, ...t }) {
1745
1746
  return /* @__PURE__ */ a(
1746
1747
  "div",
1747
1748
  {
1748
1749
  "data-slot": "sheet-header",
1749
- className: o("flex flex-col gap-1.5 p-4", e),
1750
+ className: r("flex flex-col gap-1.5 p-4", e),
1750
1751
  ...t
1751
1752
  }
1752
1753
  );
1753
1754
  }
1754
- function Or({ className: e, ...t }) {
1755
+ function gr({ className: e, ...t }) {
1755
1756
  return /* @__PURE__ */ a(
1756
1757
  "div",
1757
1758
  {
1758
1759
  "data-slot": "sheet-footer",
1759
- className: o("mt-auto flex flex-col gap-2 p-4", e),
1760
+ className: r("mt-auto flex flex-col gap-2 p-4", e),
1760
1761
  ...t
1761
1762
  }
1762
1763
  );
1763
1764
  }
1764
- function kt({
1765
+ function pt({
1765
1766
  className: e,
1766
1767
  ...t
1767
1768
  }) {
1768
1769
  return /* @__PURE__ */ a(
1769
- N.Title,
1770
+ b.Title,
1770
1771
  {
1771
1772
  "data-slot": "sheet-title",
1772
- className: o("text-foreground font-semibold", e),
1773
+ className: r("text-foreground font-semibold", e),
1773
1774
  ...t
1774
1775
  }
1775
1776
  );
1776
1777
  }
1777
- function St({
1778
+ function gt({
1778
1779
  className: e,
1779
1780
  ...t
1780
1781
  }) {
1781
1782
  return /* @__PURE__ */ a(
1782
- N.Description,
1783
+ b.Description,
1783
1784
  {
1784
1785
  "data-slot": "sheet-description",
1785
- className: o("text-muted-foreground text-sm", e),
1786
+ className: r("text-muted-foreground text-sm", e),
1786
1787
  ...t
1787
1788
  }
1788
1789
  );
1789
1790
  }
1790
- const Ct = "sidebar_state", zt = 3600 * 24 * 7, _t = "16rem", Tt = "18rem", Mt = "3rem", It = "b", ce = u.createContext(null);
1791
- function G() {
1792
- const e = u.useContext(ce);
1791
+ const bt = "sidebar_state", ht = 3600 * 24 * 7, vt = "16rem", xt = "18rem", wt = "3rem", Nt = "b", ce = g.createContext(null);
1792
+ function F() {
1793
+ const e = g.useContext(ce);
1793
1794
  if (!e)
1794
1795
  throw new Error("useSidebar must be used within a SidebarProvider.");
1795
1796
  return e;
1796
1797
  }
1797
- function Hr({
1798
+ function br({
1798
1799
  defaultOpen: e = !0,
1799
1800
  open: t,
1800
- onOpenChange: r,
1801
+ onOpenChange: o,
1801
1802
  className: n,
1802
- style: i,
1803
- children: s,
1804
- ...c
1805
- }) {
1806
- const d = ht(), [m, f] = u.useState(!1), [p, b] = u.useState(e), h = t ?? p, x = u.useCallback(
1807
- (g) => {
1808
- const v = typeof g == "function" ? g(h) : g;
1809
- r ? r(v) : b(v), document.cookie = `${Ct}=${v}; path=/; max-age=${zt}`;
1803
+ style: s,
1804
+ children: d,
1805
+ ...u
1806
+ }) {
1807
+ const c = dt(), [p, l] = g.useState(!1), [T, I] = g.useState(e), k = t ?? T, C = g.useCallback(
1808
+ (m) => {
1809
+ const f = typeof m == "function" ? m(k) : m;
1810
+ o ? o(f) : I(f), document.cookie = `${bt}=${f}; path=/; max-age=${ht}`;
1810
1811
  },
1811
- [r, h]
1812
- ), w = u.useCallback(() => d ? f((g) => !g) : x((g) => !g), [d, x, f]);
1813
- u.useEffect(() => {
1814
- const g = (v) => {
1815
- v.key === It && (v.metaKey || v.ctrlKey) && (v.preventDefault(), w());
1812
+ [o, k]
1813
+ ), _ = g.useCallback(() => c ? l((m) => !m) : C((m) => !m), [c, C, l]);
1814
+ g.useEffect(() => {
1815
+ const m = (f) => {
1816
+ f.key === Nt && (f.metaKey || f.ctrlKey) && (f.preventDefault(), _());
1816
1817
  };
1817
- return window.addEventListener("keydown", g), () => window.removeEventListener("keydown", g);
1818
- }, [w]);
1819
- const _ = h ? "expanded" : "collapsed", y = u.useMemo(
1818
+ return window.addEventListener("keydown", m), () => window.removeEventListener("keydown", m);
1819
+ }, [_]);
1820
+ const P = k ? "expanded" : "collapsed", N = g.useMemo(
1820
1821
  () => ({
1821
- state: _,
1822
- open: h,
1823
- setOpen: x,
1824
- isMobile: d,
1825
- openMobile: m,
1826
- setOpenMobile: f,
1827
- toggleSidebar: w
1822
+ state: P,
1823
+ open: k,
1824
+ setOpen: C,
1825
+ isMobile: c,
1826
+ openMobile: p,
1827
+ setOpenMobile: l,
1828
+ toggleSidebar: _
1828
1829
  }),
1829
- [_, h, x, d, m, f, w]
1830
+ [P, k, C, c, p, l, _]
1830
1831
  );
1831
- return /* @__PURE__ */ a(ce.Provider, { value: y, children: /* @__PURE__ */ a(de, { delayDuration: 0, children: /* @__PURE__ */ a(
1832
+ return /* @__PURE__ */ a(ce.Provider, { value: N, children: /* @__PURE__ */ a(de, { delayDuration: 0, children: /* @__PURE__ */ a(
1832
1833
  "div",
1833
1834
  {
1834
1835
  "data-slot": "sidebar-wrapper",
1835
1836
  style: {
1836
- "--sidebar-width": _t,
1837
- "--sidebar-width-icon": Mt,
1838
- ...i
1837
+ "--sidebar-width": vt,
1838
+ "--sidebar-width-icon": wt,
1839
+ ...s
1839
1840
  },
1840
- className: o(
1841
+ className: r(
1841
1842
  "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
1842
1843
  n
1843
1844
  ),
1844
- ...c,
1845
- children: s
1845
+ ...u,
1846
+ children: d
1846
1847
  }
1847
1848
  ) }) });
1848
1849
  }
1849
- function Gr({
1850
+ function hr({
1850
1851
  side: e = "left",
1851
1852
  variant: t = "sidebar",
1852
- collapsible: r = "offcanvas",
1853
+ collapsible: o = "offcanvas",
1853
1854
  className: n,
1854
- children: i,
1855
- ...s
1855
+ children: s,
1856
+ ...d
1856
1857
  }) {
1857
- const { isMobile: c, state: d, openMobile: m, setOpenMobile: f } = G();
1858
- return r === "none" ? /* @__PURE__ */ a(
1858
+ const { isMobile: u, state: c, openMobile: p, setOpenMobile: l } = F();
1859
+ return o === "none" ? /* @__PURE__ */ a(
1859
1860
  "div",
1860
1861
  {
1861
1862
  "data-slot": "sidebar",
1862
- className: o(
1863
+ className: r(
1863
1864
  "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
1864
1865
  n
1865
1866
  ),
1866
- ...s,
1867
- children: i
1867
+ ...d,
1868
+ children: s
1868
1869
  }
1869
- ) : c ? /* @__PURE__ */ a(vt, { open: m, onOpenChange: f, ...s, children: /* @__PURE__ */ l(
1870
- yt,
1870
+ ) : u ? /* @__PURE__ */ a(lt, { open: p, onOpenChange: l, ...d, children: /* @__PURE__ */ i(
1871
+ mt,
1871
1872
  {
1872
1873
  "data-sidebar": "sidebar",
1873
1874
  "data-slot": "sidebar",
1874
1875
  "data-mobile": "true",
1875
1876
  className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
1876
1877
  style: {
1877
- "--sidebar-width": Tt
1878
+ "--sidebar-width": xt
1878
1879
  },
1879
1880
  side: e,
1880
1881
  children: [
1881
- /* @__PURE__ */ l(Nt, { className: "sr-only", children: [
1882
- /* @__PURE__ */ a(kt, { children: "Sidebar" }),
1883
- /* @__PURE__ */ a(St, { children: "Displays the mobile sidebar." })
1882
+ /* @__PURE__ */ i(ft, { className: "sr-only", children: [
1883
+ /* @__PURE__ */ a(pt, { children: "Sidebar" }),
1884
+ /* @__PURE__ */ a(gt, { children: "Displays the mobile sidebar." })
1884
1885
  ] }),
1885
- /* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: i })
1886
+ /* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: s })
1886
1887
  ]
1887
1888
  }
1888
- ) }) : /* @__PURE__ */ l(
1889
+ ) }) : /* @__PURE__ */ i(
1889
1890
  "div",
1890
1891
  {
1891
1892
  className: "group peer text-sidebar-foreground hidden md:block",
1892
- "data-state": d,
1893
- "data-collapsible": d === "collapsed" ? r : "",
1893
+ "data-state": c,
1894
+ "data-collapsible": c === "collapsed" ? o : "",
1894
1895
  "data-variant": t,
1895
1896
  "data-side": e,
1896
1897
  "data-slot": "sidebar",
@@ -1899,7 +1900,7 @@ function Gr({
1899
1900
  "div",
1900
1901
  {
1901
1902
  "data-slot": "sidebar-gap",
1902
- className: o(
1903
+ className: r(
1903
1904
  "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
1904
1905
  "group-data-[collapsible=offcanvas]:w-0",
1905
1906
  "group-data-[side=right]:rotate-180",
@@ -1911,7 +1912,7 @@ function Gr({
1911
1912
  "div",
1912
1913
  {
1913
1914
  "data-slot": "sidebar-container",
1914
- className: o(
1915
+ className: r(
1915
1916
  "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
1916
1917
  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)]",
1917
1918
  // Adjust the padding for floating and inset variants.
@@ -1922,14 +1923,14 @@ function Gr({
1922
1923
  },
1923
1924
  n
1924
1925
  ),
1925
- ...s,
1926
+ ...d,
1926
1927
  children: /* @__PURE__ */ a(
1927
1928
  "div",
1928
1929
  {
1929
1930
  "data-sidebar": "sidebar",
1930
1931
  "data-slot": "sidebar-inner",
1931
1932
  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",
1932
- children: i
1933
+ children: s
1933
1934
  }
1934
1935
  )
1935
1936
  }
@@ -1938,33 +1939,33 @@ function Gr({
1938
1939
  }
1939
1940
  );
1940
1941
  }
1941
- function Vr({
1942
+ function vr({
1942
1943
  className: e,
1943
1944
  onClick: t,
1944
- ...r
1945
+ ...o
1945
1946
  }) {
1946
- const { toggleSidebar: n } = G();
1947
- return /* @__PURE__ */ l(
1948
- Y,
1947
+ const { toggleSidebar: n } = F();
1948
+ return /* @__PURE__ */ i(
1949
+ J,
1949
1950
  {
1950
1951
  "data-sidebar": "trigger",
1951
1952
  "data-slot": "sidebar-trigger",
1952
1953
  variant: "ghost",
1953
1954
  size: "icon",
1954
- className: o("size-7", e),
1955
- onClick: (i) => {
1956
- t?.(i), n();
1955
+ className: r("size-7", e),
1956
+ onClick: (s) => {
1957
+ t?.(s), n();
1957
1958
  },
1958
- ...r,
1959
+ ...o,
1959
1960
  children: [
1960
- /* @__PURE__ */ a($e, {}),
1961
+ /* @__PURE__ */ a(De, {}),
1961
1962
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle Sidebar" })
1962
1963
  ]
1963
1964
  }
1964
1965
  );
1965
1966
  }
1966
- function Fr({ className: e, ...t }) {
1967
- const { toggleSidebar: r } = G();
1967
+ function xr({ className: e, ...t }) {
1968
+ const { toggleSidebar: o } = F();
1968
1969
  return /* @__PURE__ */ a(
1969
1970
  "button",
1970
1971
  {
@@ -1972,9 +1973,9 @@ function Fr({ className: e, ...t }) {
1972
1973
  "data-slot": "sidebar-rail",
1973
1974
  "aria-label": "Toggle Sidebar",
1974
1975
  tabIndex: -1,
1975
- onClick: r,
1976
+ onClick: o,
1976
1977
  title: "Toggle Sidebar",
1977
- className: o(
1978
+ className: r(
1978
1979
  "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",
1979
1980
  "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
1980
1981
  "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
@@ -1987,12 +1988,12 @@ function Fr({ className: e, ...t }) {
1987
1988
  }
1988
1989
  );
1989
1990
  }
1990
- function Ur({ className: e, ...t }) {
1991
+ function wr({ className: e, ...t }) {
1991
1992
  return /* @__PURE__ */ a(
1992
1993
  "main",
1993
1994
  {
1994
1995
  "data-slot": "sidebar-inset",
1995
- className: o(
1996
+ className: r(
1996
1997
  "bg-background relative flex w-full flex-1 flex-col",
1997
1998
  "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",
1998
1999
  e
@@ -2001,43 +2002,43 @@ function Ur({ className: e, ...t }) {
2001
2002
  }
2002
2003
  );
2003
2004
  }
2004
- function Wr({
2005
+ function Nr({
2005
2006
  className: e,
2006
2007
  ...t
2007
2008
  }) {
2008
2009
  return /* @__PURE__ */ a(
2009
- Qe,
2010
+ Ve,
2010
2011
  {
2011
2012
  "data-slot": "sidebar-input",
2012
2013
  "data-sidebar": "input",
2013
- className: o("bg-background h-8 w-full shadow-none", e),
2014
+ className: r("bg-background h-8 w-full shadow-none", e),
2014
2015
  ...t
2015
2016
  }
2016
2017
  );
2017
2018
  }
2018
- function Kr({ className: e, ...t }) {
2019
+ function yr({ className: e, ...t }) {
2019
2020
  return /* @__PURE__ */ a(
2020
2021
  "div",
2021
2022
  {
2022
2023
  "data-slot": "sidebar-header",
2023
2024
  "data-sidebar": "header",
2024
- className: o("flex flex-col gap-2 p-2", e),
2025
+ className: r("flex flex-col gap-2 p-2", e),
2025
2026
  ...t
2026
2027
  }
2027
2028
  );
2028
2029
  }
2029
- function qr({ className: e, ...t }) {
2030
+ function kr({ className: e, ...t }) {
2030
2031
  return /* @__PURE__ */ a(
2031
2032
  "div",
2032
2033
  {
2033
2034
  "data-slot": "sidebar-footer",
2034
2035
  "data-sidebar": "footer",
2035
- className: o("flex flex-col gap-2 p-2", e),
2036
+ className: r("flex flex-col gap-2 p-2", e),
2036
2037
  ...t
2037
2038
  }
2038
2039
  );
2039
2040
  }
2040
- function Xr({
2041
+ function zr({
2041
2042
  className: e,
2042
2043
  ...t
2043
2044
  }) {
@@ -2046,18 +2047,18 @@ function Xr({
2046
2047
  {
2047
2048
  "data-slot": "sidebar-separator",
2048
2049
  "data-sidebar": "separator",
2049
- className: o("bg-sidebar-border mx-2 w-auto", e),
2050
+ className: r("bg-sidebar-border mx-2 w-auto", e),
2050
2051
  ...t
2051
2052
  }
2052
2053
  );
2053
2054
  }
2054
- function Yr({ className: e, ...t }) {
2055
+ function Cr({ className: e, ...t }) {
2055
2056
  return /* @__PURE__ */ a(
2056
2057
  "div",
2057
2058
  {
2058
2059
  "data-slot": "sidebar-content",
2059
2060
  "data-sidebar": "content",
2060
- className: o(
2061
+ className: r(
2061
2062
  "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
2062
2063
  e
2063
2064
  ),
@@ -2065,58 +2066,58 @@ function Yr({ className: e, ...t }) {
2065
2066
  }
2066
2067
  );
2067
2068
  }
2068
- function Jr({ className: e, ...t }) {
2069
+ function Sr({ className: e, ...t }) {
2069
2070
  return /* @__PURE__ */ a(
2070
2071
  "div",
2071
2072
  {
2072
2073
  "data-slot": "sidebar-group",
2073
2074
  "data-sidebar": "group",
2074
- className: o("relative flex w-full min-w-0 flex-col p-2", e),
2075
+ className: r("relative flex w-full min-w-0 flex-col p-2", e),
2075
2076
  ...t
2076
2077
  }
2077
2078
  );
2078
2079
  }
2079
- function Qr({
2080
+ function Tr({
2080
2081
  className: e,
2081
2082
  asChild: t = !1,
2082
- ...r
2083
+ ...o
2083
2084
  }) {
2084
2085
  return /* @__PURE__ */ a(
2085
- t ? R : "div",
2086
+ t ? D : "div",
2086
2087
  {
2087
2088
  "data-slot": "sidebar-group-label",
2088
2089
  "data-sidebar": "group-label",
2089
- className: o(
2090
+ className: r(
2090
2091
  "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",
2091
2092
  "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
2092
2093
  e
2093
2094
  ),
2094
- ...r
2095
+ ...o
2095
2096
  }
2096
2097
  );
2097
2098
  }
2098
- function Zr({
2099
+ function _r({
2099
2100
  className: e,
2100
2101
  asChild: t = !1,
2101
- ...r
2102
+ ...o
2102
2103
  }) {
2103
2104
  return /* @__PURE__ */ a(
2104
- t ? R : "button",
2105
+ t ? D : "button",
2105
2106
  {
2106
2107
  "data-slot": "sidebar-group-action",
2107
2108
  "data-sidebar": "group-action",
2108
- className: o(
2109
+ className: r(
2109
2110
  "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",
2110
2111
  // Increases the hit area of the button on mobile.
2111
2112
  "after:absolute after:-inset-2 md:after:hidden",
2112
2113
  "group-data-[collapsible=icon]:hidden",
2113
2114
  e
2114
2115
  ),
2115
- ...r
2116
+ ...o
2116
2117
  }
2117
2118
  );
2118
2119
  }
2119
- function eo({
2120
+ function Dr({
2120
2121
  className: e,
2121
2122
  ...t
2122
2123
  }) {
@@ -2125,34 +2126,34 @@ function eo({
2125
2126
  {
2126
2127
  "data-slot": "sidebar-group-content",
2127
2128
  "data-sidebar": "group-content",
2128
- className: o("w-full text-sm", e),
2129
+ className: r("w-full text-sm", e),
2129
2130
  ...t
2130
2131
  }
2131
2132
  );
2132
2133
  }
2133
- function to({ className: e, ...t }) {
2134
+ function Mr({ className: e, ...t }) {
2134
2135
  return /* @__PURE__ */ a(
2135
2136
  "ul",
2136
2137
  {
2137
2138
  "data-slot": "sidebar-menu",
2138
2139
  "data-sidebar": "menu",
2139
- className: o("flex w-full min-w-0 flex-col gap-1", e),
2140
+ className: r("flex w-full min-w-0 flex-col gap-1", e),
2140
2141
  ...t
2141
2142
  }
2142
2143
  );
2143
2144
  }
2144
- function ao({ className: e, ...t }) {
2145
+ function Ir({ className: e, ...t }) {
2145
2146
  return /* @__PURE__ */ a(
2146
2147
  "li",
2147
2148
  {
2148
2149
  "data-slot": "sidebar-menu-item",
2149
2150
  "data-sidebar": "menu-item",
2150
- className: o("group/menu-item relative", e),
2151
+ className: r("group/menu-item relative", e),
2151
2152
  ...t
2152
2153
  }
2153
2154
  );
2154
2155
  }
2155
- const Pt = O(
2156
+ const yt = G(
2156
2157
  "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",
2157
2158
  {
2158
2159
  variants: {
@@ -2172,53 +2173,53 @@ const Pt = O(
2172
2173
  }
2173
2174
  }
2174
2175
  );
2175
- function ro({
2176
+ function Pr({
2176
2177
  asChild: e = !1,
2177
2178
  isActive: t = !1,
2178
- variant: r = "default",
2179
+ variant: o = "default",
2179
2180
  size: n = "default",
2180
- tooltip: i,
2181
- className: s,
2182
- ...c
2181
+ tooltip: s,
2182
+ className: d,
2183
+ ...u
2183
2184
  }) {
2184
- const d = e ? R : "button", { isMobile: m, state: f } = G(), p = /* @__PURE__ */ a(
2185
- d,
2185
+ const c = e ? D : "button", { isMobile: p, state: l } = F(), T = /* @__PURE__ */ a(
2186
+ c,
2186
2187
  {
2187
2188
  "data-slot": "sidebar-menu-button",
2188
2189
  "data-sidebar": "menu-button",
2189
2190
  "data-size": n,
2190
2191
  "data-active": t,
2191
- className: o(Pt({ variant: r, size: n }), s),
2192
- ...c
2192
+ className: r(yt({ variant: o, size: n }), d),
2193
+ ...u
2193
2194
  }
2194
2195
  );
2195
- return i ? (typeof i == "string" && (i = {
2196
- children: i
2197
- }), /* @__PURE__ */ l(ot, { children: [
2198
- /* @__PURE__ */ a(nt, { asChild: !0, children: p }),
2196
+ return s ? (typeof s == "string" && (s = {
2197
+ children: s
2198
+ }), /* @__PURE__ */ i(Xe, { children: [
2199
+ /* @__PURE__ */ a(Ye, { asChild: !0, children: T }),
2199
2200
  /* @__PURE__ */ a(
2200
- it,
2201
+ Je,
2201
2202
  {
2202
2203
  side: "right",
2203
2204
  align: "center",
2204
- hidden: f !== "collapsed" || m,
2205
- ...i
2205
+ hidden: l !== "collapsed" || p,
2206
+ ...s
2206
2207
  }
2207
2208
  )
2208
- ] })) : p;
2209
+ ] })) : T;
2209
2210
  }
2210
- function oo({
2211
+ function Rr({
2211
2212
  className: e,
2212
2213
  asChild: t = !1,
2213
- showOnHover: r = !1,
2214
+ showOnHover: o = !1,
2214
2215
  ...n
2215
2216
  }) {
2216
2217
  return /* @__PURE__ */ a(
2217
- t ? R : "button",
2218
+ t ? D : "button",
2218
2219
  {
2219
2220
  "data-slot": "sidebar-menu-action",
2220
2221
  "data-sidebar": "menu-action",
2221
- className: o(
2222
+ className: r(
2222
2223
  "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",
2223
2224
  // Increases the hit area of the button on mobile.
2224
2225
  "after:absolute after:-inset-2 md:after:hidden",
@@ -2226,14 +2227,14 @@ function oo({
2226
2227
  "peer-data-[size=default]/menu-button:top-1.5",
2227
2228
  "peer-data-[size=lg]/menu-button:top-2.5",
2228
2229
  "group-data-[collapsible=icon]:hidden",
2229
- r && "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",
2230
+ 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",
2230
2231
  e
2231
2232
  ),
2232
2233
  ...n
2233
2234
  }
2234
2235
  );
2235
2236
  }
2236
- function no({
2237
+ function Ar({
2237
2238
  className: e,
2238
2239
  ...t
2239
2240
  }) {
@@ -2242,7 +2243,7 @@ function no({
2242
2243
  {
2243
2244
  "data-slot": "sidebar-menu-badge",
2244
2245
  "data-sidebar": "menu-badge",
2245
- className: o(
2246
+ className: r(
2246
2247
  "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",
2247
2248
  "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
2248
2249
  "peer-data-[size=sm]/menu-button:top-1",
@@ -2255,29 +2256,29 @@ function no({
2255
2256
  }
2256
2257
  );
2257
2258
  }
2258
- function io({
2259
+ function Lr({
2259
2260
  className: e,
2260
2261
  showIcon: t = !1,
2261
- ...r
2262
+ ...o
2262
2263
  }) {
2263
- const n = u.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
2264
- return /* @__PURE__ */ l(
2264
+ const n = g.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
2265
+ return /* @__PURE__ */ i(
2265
2266
  "div",
2266
2267
  {
2267
2268
  "data-slot": "sidebar-menu-skeleton",
2268
2269
  "data-sidebar": "menu-skeleton",
2269
- className: o("flex h-8 items-center gap-2 rounded-md px-2", e),
2270
- ...r,
2270
+ className: r("flex h-8 items-center gap-2 rounded-md px-2", e),
2271
+ ...o,
2271
2272
  children: [
2272
2273
  t && /* @__PURE__ */ a(
2273
- ee,
2274
+ ae,
2274
2275
  {
2275
2276
  className: "size-4 rounded-md",
2276
2277
  "data-sidebar": "menu-skeleton-icon"
2277
2278
  }
2278
2279
  ),
2279
2280
  /* @__PURE__ */ a(
2280
- ee,
2281
+ ae,
2281
2282
  {
2282
2283
  className: "h-4 max-w-(--skeleton-width) flex-1",
2283
2284
  "data-sidebar": "menu-skeleton-text",
@@ -2290,13 +2291,13 @@ function io({
2290
2291
  }
2291
2292
  );
2292
2293
  }
2293
- function so({ className: e, ...t }) {
2294
+ function Er({ className: e, ...t }) {
2294
2295
  return /* @__PURE__ */ a(
2295
2296
  "ul",
2296
2297
  {
2297
2298
  "data-slot": "sidebar-menu-sub",
2298
2299
  "data-sidebar": "menu-sub",
2299
- className: o(
2300
+ className: r(
2300
2301
  "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",
2301
2302
  "group-data-[collapsible=icon]:hidden",
2302
2303
  e
@@ -2305,7 +2306,7 @@ function so({ className: e, ...t }) {
2305
2306
  }
2306
2307
  );
2307
2308
  }
2308
- function lo({
2309
+ function jr({
2309
2310
  className: e,
2310
2311
  ...t
2311
2312
  }) {
@@ -2314,26 +2315,26 @@ function lo({
2314
2315
  {
2315
2316
  "data-slot": "sidebar-menu-sub-item",
2316
2317
  "data-sidebar": "menu-sub-item",
2317
- className: o("group/menu-sub-item relative", e),
2318
+ className: r("group/menu-sub-item relative", e),
2318
2319
  ...t
2319
2320
  }
2320
2321
  );
2321
2322
  }
2322
- function co({
2323
+ function Br({
2323
2324
  asChild: e = !1,
2324
2325
  size: t = "md",
2325
- isActive: r = !1,
2326
+ isActive: o = !1,
2326
2327
  className: n,
2327
- ...i
2328
+ ...s
2328
2329
  }) {
2329
2330
  return /* @__PURE__ */ a(
2330
- e ? R : "a",
2331
+ e ? D : "a",
2331
2332
  {
2332
2333
  "data-slot": "sidebar-menu-sub-button",
2333
2334
  "data-sidebar": "menu-sub-button",
2334
2335
  "data-size": t,
2335
- "data-active": r,
2336
- className: o(
2336
+ "data-active": o,
2337
+ className: r(
2337
2338
  "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",
2338
2339
  "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
2339
2340
  t === "sm" && "text-xs",
@@ -2341,55 +2342,55 @@ function co({
2341
2342
  "group-data-[collapsible=icon]:hidden",
2342
2343
  n
2343
2344
  ),
2344
- ...i
2345
+ ...s
2345
2346
  }
2346
2347
  );
2347
2348
  }
2348
- function Rt({
2349
+ function kt({
2349
2350
  className: e,
2350
2351
  children: t,
2351
- ...r
2352
+ ...o
2352
2353
  }) {
2353
- return /* @__PURE__ */ l(
2354
- A.Root,
2354
+ return /* @__PURE__ */ i(
2355
+ B.Root,
2355
2356
  {
2356
2357
  "data-slot": "scroll-area",
2357
- className: o("relative", e),
2358
- ...r,
2358
+ className: r("relative", e),
2359
+ ...o,
2359
2360
  children: [
2360
2361
  /* @__PURE__ */ a(
2361
- A.Viewport,
2362
+ B.Viewport,
2362
2363
  {
2363
2364
  "data-slot": "scroll-area-viewport",
2364
2365
  className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
2365
2366
  children: t
2366
2367
  }
2367
2368
  ),
2368
- /* @__PURE__ */ a(Dt, {}),
2369
- /* @__PURE__ */ a(A.Corner, {})
2369
+ /* @__PURE__ */ a(zt, {}),
2370
+ /* @__PURE__ */ a(B.Corner, {})
2370
2371
  ]
2371
2372
  }
2372
2373
  );
2373
2374
  }
2374
- function Dt({
2375
+ function zt({
2375
2376
  className: e,
2376
2377
  orientation: t = "vertical",
2377
- ...r
2378
+ ...o
2378
2379
  }) {
2379
2380
  return /* @__PURE__ */ a(
2380
- A.ScrollAreaScrollbar,
2381
+ B.ScrollAreaScrollbar,
2381
2382
  {
2382
2383
  "data-slot": "scroll-area-scrollbar",
2383
2384
  orientation: t,
2384
- className: o(
2385
+ className: r(
2385
2386
  "flex touch-none p-px transition-colors select-none",
2386
2387
  t === "vertical" && "h-full w-2.5 border-l border-l-transparent",
2387
2388
  t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
2388
2389
  e
2389
2390
  ),
2390
- ...r,
2391
+ ...o,
2391
2392
  children: /* @__PURE__ */ a(
2392
- A.ScrollAreaThumb,
2393
+ B.ScrollAreaThumb,
2393
2394
  {
2394
2395
  "data-slot": "scroll-area-thumb",
2395
2396
  className: "bg-border relative flex-1 rounded-full"
@@ -2398,280 +2399,280 @@ function Dt({
2398
2399
  }
2399
2400
  );
2400
2401
  }
2401
- function uo({
2402
+ function Or({
2402
2403
  item: e,
2403
2404
  children: t,
2404
- keyClassName: r = "font-semibold min-w-1/2",
2405
+ keyClassName: o = "font-semibold min-w-1/2",
2405
2406
  valueClassName: n = "ml-4",
2406
- rowClassName: i = "flex flex-row items-center text-lg py-3",
2407
- itemClassName: s = "flex flex-col"
2407
+ rowClassName: s = "flex flex-row items-center text-lg py-3",
2408
+ itemClassName: d = "flex flex-col"
2408
2409
  }) {
2409
- return /* @__PURE__ */ a("div", { className: s, children: /* @__PURE__ */ l("div", { className: i, children: [
2410
- /* @__PURE__ */ a("span", { className: r, children: e }),
2410
+ return /* @__PURE__ */ a("div", { className: d, children: /* @__PURE__ */ i("div", { className: s, children: [
2411
+ /* @__PURE__ */ a("span", { className: o, children: e }),
2411
2412
  /* @__PURE__ */ a("span", { className: n, children: t })
2412
2413
  ] }) });
2413
2414
  }
2414
- function fo({
2415
+ function $r({
2415
2416
  children: e,
2416
2417
  separatorClassName: t = "w-full"
2417
2418
  }) {
2418
- const r = I.Children.toArray(e);
2419
- return /* @__PURE__ */ a("div", { className: "flex flex-col", children: r.map((n, i) => /* @__PURE__ */ l(I.Fragment, { children: [
2419
+ const o = z.Children.toArray(e);
2420
+ return /* @__PURE__ */ a("div", { className: "flex flex-col", children: o.map((n, s) => /* @__PURE__ */ i(z.Fragment, { children: [
2420
2421
  n,
2421
- i !== r.length - 1 && /* @__PURE__ */ a(le, { className: t })
2422
- ] }, i)) });
2422
+ s !== o.length - 1 && /* @__PURE__ */ a(le, { className: t })
2423
+ ] }, s)) });
2423
2424
  }
2424
- function mo({
2425
+ function Gr({
2425
2426
  className: e,
2426
2427
  ...t
2427
2428
  }) {
2428
2429
  return /* @__PURE__ */ a(
2429
- Z.Root,
2430
+ ee.Root,
2430
2431
  {
2431
2432
  "data-slot": "checkbox",
2432
- className: o(
2433
+ className: r(
2433
2434
  "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
2434
2435
  e
2435
2436
  ),
2436
2437
  ...t,
2437
2438
  children: /* @__PURE__ */ a(
2438
- Z.Indicator,
2439
+ ee.Indicator,
2439
2440
  {
2440
2441
  "data-slot": "checkbox-indicator",
2441
2442
  className: "flex items-center justify-center text-current transition-none",
2442
- children: /* @__PURE__ */ a($, { className: "size-3.5" })
2443
+ children: /* @__PURE__ */ a(O, { className: "size-3.5" })
2443
2444
  }
2444
2445
  )
2445
2446
  }
2446
2447
  );
2447
2448
  }
2448
- const po = ({
2449
+ const Hr = ({
2449
2450
  className: e,
2450
2451
  title: t,
2451
- description: r,
2452
+ description: o,
2452
2453
  icon: n,
2453
- children: i
2454
- }) => /* @__PURE__ */ a("div", { className: o("flex justify-center items-center w-full h-full grow", e), children: /* @__PURE__ */ l(
2454
+ children: s
2455
+ }) => /* @__PURE__ */ a("div", { className: r("flex justify-center items-center w-full h-full grow", e), children: /* @__PURE__ */ i(
2455
2456
  "div",
2456
2457
  {
2457
- className: o(
2458
+ className: r(
2458
2459
  "flex flex-col gap-4 items-center w-[400px] p-8"
2459
2460
  ),
2460
2461
  children: [
2461
2462
  n,
2462
2463
  /* @__PURE__ */ a("h1", { className: "text-2xl font-bold", children: t }),
2463
- /* @__PURE__ */ a("p", { className: "text-sm text-muted-foreground text-center", children: r }),
2464
- i
2464
+ /* @__PURE__ */ a("p", { className: "text-sm text-muted-foreground text-center", children: o }),
2465
+ s
2465
2466
  ]
2466
2467
  }
2467
- ) }), go = I.forwardRef(({
2468
+ ) }), Vr = z.forwardRef(({
2468
2469
  data: e,
2469
2470
  initialSelectedItemId: t,
2470
- onSelectChange: r,
2471
+ onSelectChange: o,
2471
2472
  expandAll: n,
2472
- folderIcon: i,
2473
- itemIcon: s,
2474
- className: c,
2475
- ...d
2476
- }, m) => {
2477
- const [f, p] = I.useState(t), b = I.useCallback((y) => {
2478
- p(y?.id), r && r(y);
2479
- }, [r]), h = I.useMemo(() => {
2473
+ folderIcon: s,
2474
+ itemIcon: d,
2475
+ className: u,
2476
+ ...c
2477
+ }, p) => {
2478
+ const [l, T] = z.useState(t), I = z.useCallback((N) => {
2479
+ T(N?.id), o && o(N);
2480
+ }, [o]), k = z.useMemo(() => {
2480
2481
  if (!t)
2481
2482
  return [];
2482
- const y = [];
2483
- function g(v, M) {
2484
- if (v instanceof Array)
2485
- for (let P = 0; P < v.length; P++) {
2486
- if (y.push(v[P].id), g(v[P], M) && !n)
2483
+ const N = [];
2484
+ function m(f, E) {
2485
+ if (f instanceof Array)
2486
+ for (let R = 0; R < f.length; R++) {
2487
+ if (N.push(f[R].id), m(f[R], E) && !n)
2487
2488
  return !0;
2488
- n || y.pop();
2489
+ n || N.pop();
2489
2490
  }
2490
2491
  else {
2491
- if (!n && v.id === M)
2492
+ if (!n && f.id === E)
2492
2493
  return !0;
2493
- if (v.children)
2494
- return g(v.children, M);
2494
+ if (f.children)
2495
+ return m(f.children, E);
2495
2496
  }
2496
2497
  }
2497
- return g(e, t), y;
2498
- }, [e, t, n]), { ref: x, width: w, height: _ } = We();
2499
- return /* @__PURE__ */ a("div", { ref: x, className: o("overflow-hidden", c), children: /* @__PURE__ */ a(Rt, { style: { width: w, height: _ }, children: /* @__PURE__ */ a("div", { className: "relative p-2", children: /* @__PURE__ */ a(
2498
+ return m(e, t), N;
2499
+ }, [e, t, n]), { ref: C, width: _, height: P } = je();
2500
+ return /* @__PURE__ */ a("div", { ref: C, className: r("overflow-hidden", u), children: /* @__PURE__ */ a(kt, { style: { width: _, height: P }, children: /* @__PURE__ */ a("div", { className: "relative p-2", children: /* @__PURE__ */ a(
2500
2501
  ue,
2501
2502
  {
2502
2503
  data: e,
2503
- ref: m,
2504
- selectedItemId: f,
2505
- handleSelectChange: b,
2506
- expandedItemIds: h,
2507
- FolderIcon: i,
2508
- ItemIcon: s,
2509
- ...d
2504
+ ref: p,
2505
+ selectedItemId: l,
2506
+ handleSelectChange: I,
2507
+ expandedItemIds: k,
2508
+ FolderIcon: s,
2509
+ ItemIcon: d,
2510
+ ...c
2510
2511
  }
2511
2512
  ) }) }) });
2512
- }), ue = I.forwardRef(({ className: e, data: t, selectedItemId: r, handleSelectChange: n, expandedItemIds: i, FolderIcon: s, ItemIcon: c, ...d }, m) => /* @__PURE__ */ a("div", { ref: m, role: "tree", className: e, ...d, children: /* @__PURE__ */ a("ul", { children: t instanceof Array ? t.map((f) => /* @__PURE__ */ a("li", { children: f.children ? /* @__PURE__ */ a(T.Root, { type: "multiple", defaultValue: i, children: /* @__PURE__ */ l(T.Item, { value: f.id, children: [
2513
- /* @__PURE__ */ l(
2514
- fe,
2513
+ }), ue = z.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(y.Root, { type: "multiple", defaultValue: s, children: /* @__PURE__ */ i(y.Item, { value: l.id, children: [
2514
+ /* @__PURE__ */ i(
2515
+ me,
2515
2516
  {
2516
- className: o(
2517
+ className: r(
2517
2518
  "px-2 hover:before:opacity-100 before:absolute before:left-0 before:w-full before:opacity-0 before:bg-muted/80 before:h-[1.75rem] before:-z-10",
2518
- r === f.id && "before:opacity-100 before:bg-accent text-accent-foreground before:border-l-2 before:border-l-accent-foreground/50 dark:before:border-0"
2519
+ o === l.id && "before:opacity-100 before:bg-accent text-accent-foreground before:border-l-2 before:border-l-accent-foreground/50 dark:before:border-0"
2519
2520
  ),
2520
- onClick: () => n(f),
2521
+ onClick: () => n(l),
2521
2522
  children: [
2522
- f.icon && /* @__PURE__ */ a(
2523
- f.icon,
2523
+ l.icon && /* @__PURE__ */ a(
2524
+ l.icon,
2524
2525
  {
2525
2526
  className: "h-4 w-4 shrink-0 mr-2 text-accent-foreground/50",
2526
2527
  "aria-hidden": "true"
2527
2528
  }
2528
2529
  ),
2529
- !f.icon && s && /* @__PURE__ */ a(
2530
- s,
2530
+ !l.icon && d && /* @__PURE__ */ a(
2531
+ d,
2531
2532
  {
2532
2533
  className: "h-4 w-4 shrink-0 mr-2 text-accent-foreground/50",
2533
2534
  "aria-hidden": "true"
2534
2535
  }
2535
2536
  ),
2536
- /* @__PURE__ */ a("span", { className: "text-sm truncate", children: f.name })
2537
+ /* @__PURE__ */ a("span", { className: "text-sm truncate", children: l.name })
2537
2538
  ]
2538
2539
  }
2539
2540
  ),
2540
- /* @__PURE__ */ a(me, { className: "pl-6", children: /* @__PURE__ */ a(
2541
+ /* @__PURE__ */ a(fe, { className: "pl-6", children: /* @__PURE__ */ a(
2541
2542
  ue,
2542
2543
  {
2543
- data: f.children ? f.children : f,
2544
- selectedItemId: r,
2544
+ data: l.children ? l.children : l,
2545
+ selectedItemId: o,
2545
2546
  handleSelectChange: n,
2546
- expandedItemIds: i,
2547
- FolderIcon: s,
2548
- ItemIcon: c
2547
+ expandedItemIds: s,
2548
+ FolderIcon: d,
2549
+ ItemIcon: u
2549
2550
  }
2550
2551
  ) })
2551
2552
  ] }) }) : /* @__PURE__ */ a(
2552
- te,
2553
+ re,
2553
2554
  {
2554
- item: f,
2555
- isSelected: r === f.id,
2556
- onClick: () => n(f),
2557
- Icon: c
2555
+ item: l,
2556
+ isSelected: o === l.id,
2557
+ onClick: () => n(l),
2558
+ Icon: u
2558
2559
  }
2559
- ) }, f.id)) : /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
2560
- te,
2560
+ ) }, l.id)) : /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
2561
+ re,
2561
2562
  {
2562
2563
  item: t,
2563
- isSelected: r === t.id,
2564
+ isSelected: o === t.id,
2564
2565
  onClick: () => n(t),
2565
- Icon: c
2566
+ Icon: u
2566
2567
  }
2567
- ) }) }) })), te = I.forwardRef(({ className: e, item: t, isSelected: r, Icon: n, ...i }, s) => /* @__PURE__ */ l(
2568
+ ) }) }) })), re = z.forwardRef(({ className: e, item: t, isSelected: o, Icon: n, ...s }, d) => /* @__PURE__ */ i(
2568
2569
  "div",
2569
2570
  {
2570
- ref: s,
2571
- className: o(
2571
+ ref: d,
2572
+ className: r(
2572
2573
  "flex items-center py-2 px-2 cursor-pointer hover:before:opacity-100 before:absolute before:left-0 before:right-1 before:w-full before:opacity-0 before:bg-muted/80 before:h-[1.75rem] before:-z-10",
2573
2574
  e,
2574
- r && "before:opacity-100 before:bg-accent text-accent-foreground before:border-l-2 before:border-l-accent-foreground/50 dark:before:border-0"
2575
+ o && "before:opacity-100 before:bg-accent text-accent-foreground before:border-l-2 before:border-l-accent-foreground/50 dark:before:border-0"
2575
2576
  ),
2576
- ...i,
2577
+ ...s,
2577
2578
  children: [
2578
2579
  t.icon && /* @__PURE__ */ a(t.icon, { className: "h-4 w-4 shrink-0 mr-2 text-accent-foreground/50", "aria-hidden": "true" }),
2579
2580
  !t.icon && n && /* @__PURE__ */ a(n, { className: "h-4 w-4 shrink-0 mr-2 text-accent-foreground/50", "aria-hidden": "true" }),
2580
2581
  /* @__PURE__ */ a("span", { className: "flex-grow text-sm truncate", children: t.name })
2581
2582
  ]
2582
2583
  }
2583
- )), fe = I.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ a(T.Header, { children: /* @__PURE__ */ l(
2584
- T.Trigger,
2584
+ )), me = z.forwardRef(({ className: e, children: t, ...o }, n) => /* @__PURE__ */ a(y.Header, { children: /* @__PURE__ */ i(
2585
+ y.Trigger,
2585
2586
  {
2586
2587
  ref: n,
2587
- className: o(
2588
+ className: r(
2588
2589
  "flex flex-1 w-full items-center py-2 transition-all last:[&[data-state=open]>svg]:rotate-90",
2589
2590
  e
2590
2591
  ),
2591
- ...r,
2592
+ ...o,
2592
2593
  children: [
2593
2594
  t,
2594
- /* @__PURE__ */ a(oe, { className: "h-4 w-4 shrink-0 transition-transform duration-200 text-accent-foreground/50 ml-auto" })
2595
+ /* @__PURE__ */ a(ne, { className: "h-4 w-4 shrink-0 transition-transform duration-200 text-accent-foreground/50 ml-auto" })
2595
2596
  ]
2596
2597
  }
2597
2598
  ) }));
2598
- fe.displayName = T.Trigger.displayName;
2599
- const me = I.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ a(
2600
- T.Content,
2599
+ me.displayName = y.Trigger.displayName;
2600
+ const fe = z.forwardRef(({ className: e, children: t, ...o }, n) => /* @__PURE__ */ a(
2601
+ y.Content,
2601
2602
  {
2602
2603
  ref: n,
2603
- className: o(
2604
+ className: r(
2604
2605
  "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
2605
2606
  e
2606
2607
  ),
2607
- ...r,
2608
+ ...o,
2608
2609
  children: /* @__PURE__ */ a("div", { className: "pb-1 pt-0", children: t })
2609
2610
  }
2610
2611
  ));
2611
- me.displayName = T.Content.displayName;
2612
- function bo({
2612
+ fe.displayName = y.Content.displayName;
2613
+ function Fr({
2613
2614
  ...e
2614
2615
  }) {
2615
- return /* @__PURE__ */ a(T.Root, { "data-slot": "accordion", ...e });
2616
+ return /* @__PURE__ */ a(y.Root, { "data-slot": "accordion", ...e });
2616
2617
  }
2617
- function ho({
2618
+ function Kr({
2618
2619
  className: e,
2619
2620
  ...t
2620
2621
  }) {
2621
2622
  return /* @__PURE__ */ a(
2622
- T.Item,
2623
+ y.Item,
2623
2624
  {
2624
2625
  "data-slot": "accordion-item",
2625
- className: o("border-b last:border-b-0", e),
2626
+ className: r("border-b last:border-b-0", e),
2626
2627
  ...t
2627
2628
  }
2628
2629
  );
2629
2630
  }
2630
- function vo({
2631
+ function Ur({
2631
2632
  className: e,
2632
2633
  children: t,
2633
- ...r
2634
+ ...o
2634
2635
  }) {
2635
- return /* @__PURE__ */ a(T.Header, { className: "flex", children: /* @__PURE__ */ l(
2636
- T.Trigger,
2636
+ return /* @__PURE__ */ a(y.Header, { className: "flex", children: /* @__PURE__ */ i(
2637
+ y.Trigger,
2637
2638
  {
2638
2639
  "data-slot": "accordion-trigger",
2639
- className: o(
2640
+ className: r(
2640
2641
  "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
2641
2642
  e
2642
2643
  ),
2643
- ...r,
2644
+ ...o,
2644
2645
  children: [
2645
2646
  t,
2646
- /* @__PURE__ */ a(q, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
2647
+ /* @__PURE__ */ a(X, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
2647
2648
  ]
2648
2649
  }
2649
2650
  ) });
2650
2651
  }
2651
- function xo({
2652
+ function Wr({
2652
2653
  className: e,
2653
2654
  children: t,
2654
- ...r
2655
+ ...o
2655
2656
  }) {
2656
2657
  return /* @__PURE__ */ a(
2657
- T.Content,
2658
+ y.Content,
2658
2659
  {
2659
2660
  "data-slot": "accordion-content",
2660
2661
  className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
2661
- ...r,
2662
- children: /* @__PURE__ */ a("div", { className: o("pt-0 pb-4", e), children: t })
2662
+ ...o,
2663
+ children: /* @__PURE__ */ a("div", { className: r("pt-0 pb-4", e), children: t })
2663
2664
  }
2664
2665
  );
2665
2666
  }
2666
- function wo({
2667
+ function qr({
2667
2668
  className: e,
2668
2669
  ...t
2669
2670
  }) {
2670
2671
  return /* @__PURE__ */ a(
2671
- X.PanelGroup,
2672
+ Y.PanelGroup,
2672
2673
  {
2673
2674
  "data-slot": "resizable-panel-group",
2674
- className: o(
2675
+ className: r(
2675
2676
  "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
2676
2677
  e
2677
2678
  ),
@@ -2679,30 +2680,30 @@ function wo({
2679
2680
  }
2680
2681
  );
2681
2682
  }
2682
- function yo({
2683
+ function Xr({
2683
2684
  ...e
2684
2685
  }) {
2685
- return /* @__PURE__ */ a(X.Panel, { "data-slot": "resizable-panel", ...e });
2686
+ return /* @__PURE__ */ a(Y.Panel, { "data-slot": "resizable-panel", ...e });
2686
2687
  }
2687
- function No({
2688
+ function Yr({
2688
2689
  withHandle: e,
2689
2690
  className: t,
2690
- ...r
2691
+ ...o
2691
2692
  }) {
2692
2693
  return /* @__PURE__ */ a(
2693
- X.PanelResizeHandle,
2694
+ Y.PanelResizeHandle,
2694
2695
  {
2695
2696
  "data-slot": "resizable-handle",
2696
- className: o(
2697
+ className: r(
2697
2698
  "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
2698
2699
  t
2699
2700
  ),
2700
- ...r,
2701
- 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(je, { className: "size-2.5" }) })
2701
+ ...o,
2702
+ 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(Me, { className: "size-2.5" }) })
2702
2703
  }
2703
2704
  );
2704
2705
  }
2705
- const Et = O(
2706
+ const Ct = G(
2706
2707
  "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",
2707
2708
  {
2708
2709
  variants: {
@@ -2716,27 +2717,27 @@ const Et = O(
2716
2717
  }
2717
2718
  }
2718
2719
  );
2719
- function ko({
2720
+ function Jr({
2720
2721
  className: e,
2721
2722
  variant: t,
2722
- ...r
2723
+ ...o
2723
2724
  }) {
2724
2725
  return /* @__PURE__ */ a(
2725
2726
  "div",
2726
2727
  {
2727
2728
  "data-slot": "alert",
2728
2729
  role: "alert",
2729
- className: o(Et({ variant: t }), e),
2730
- ...r
2730
+ className: r(Ct({ variant: t }), e),
2731
+ ...o
2731
2732
  }
2732
2733
  );
2733
2734
  }
2734
- function So({ className: e, ...t }) {
2735
+ function Qr({ className: e, ...t }) {
2735
2736
  return /* @__PURE__ */ a(
2736
2737
  "div",
2737
2738
  {
2738
2739
  "data-slot": "alert-title",
2739
- className: o(
2740
+ className: r(
2740
2741
  "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
2741
2742
  e
2742
2743
  ),
@@ -2744,7 +2745,7 @@ function So({ className: e, ...t }) {
2744
2745
  }
2745
2746
  );
2746
2747
  }
2747
- function Co({
2748
+ function Zr({
2748
2749
  className: e,
2749
2750
  ...t
2750
2751
  }) {
@@ -2752,7 +2753,7 @@ function Co({
2752
2753
  "div",
2753
2754
  {
2754
2755
  "data-slot": "alert-description",
2755
- className: o(
2756
+ className: r(
2756
2757
  "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
2757
2758
  e
2758
2759
  ),
@@ -2760,24 +2761,24 @@ function Co({
2760
2761
  }
2761
2762
  );
2762
2763
  }
2763
- function zo({
2764
+ function eo({
2764
2765
  icon: e,
2765
2766
  size: t = 24,
2766
- className: r,
2767
+ className: o,
2767
2768
  ...n
2768
2769
  }) {
2769
2770
  return /* @__PURE__ */ a(
2770
2771
  "span",
2771
2772
  {
2772
- className: o(
2773
+ className: r(
2773
2774
  "inline-flex items-center justify-center rounded-md bg-icon dark:bg-icon",
2774
- r
2775
+ o
2775
2776
  ),
2776
2777
  ...n,
2777
- children: u.cloneElement(e, {
2778
+ children: g.cloneElement(e, {
2778
2779
  width: t,
2779
2780
  height: t,
2780
- className: o(
2781
+ className: r(
2781
2782
  "stroke-icon-foreground dark:stroke-icon-foreground",
2782
2783
  e.props.className
2783
2784
  ),
@@ -2787,540 +2788,385 @@ function zo({
2787
2788
  }
2788
2789
  );
2789
2790
  }
2790
- function Bt(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
2791
- return function(i) {
2792
- if (e?.(i), r === !1 || !i.defaultPrevented)
2793
- return t?.(i);
2794
- };
2795
- }
2796
- function ae(e, t) {
2797
- if (typeof e == "function")
2798
- return e(t);
2799
- e != null && (e.current = t);
2800
- }
2801
- function Lt(...e) {
2802
- return (t) => {
2803
- let r = !1;
2804
- const n = e.map((i) => {
2805
- const s = ae(i, t);
2806
- return !r && typeof s == "function" && (r = !0), s;
2807
- });
2808
- if (r)
2809
- return () => {
2810
- for (let i = 0; i < n.length; i++) {
2811
- const s = n[i];
2812
- typeof s == "function" ? s() : ae(e[i], null);
2791
+ function to({
2792
+ className: e,
2793
+ ...t
2794
+ }) {
2795
+ return /* @__PURE__ */ a(
2796
+ te.Root,
2797
+ {
2798
+ "data-slot": "switch",
2799
+ className: r(
2800
+ "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
2801
+ e
2802
+ ),
2803
+ ...t,
2804
+ children: /* @__PURE__ */ a(
2805
+ te.Thumb,
2806
+ {
2807
+ "data-slot": "switch-thumb",
2808
+ className: r(
2809
+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
2810
+ )
2813
2811
  }
2814
- };
2815
- };
2816
- }
2817
- function pe(...e) {
2818
- return u.useCallback(Lt(...e), e);
2819
- }
2820
- function At(e, t = []) {
2821
- let r = [];
2822
- function n(s, c) {
2823
- const d = u.createContext(c), m = r.length;
2824
- r = [...r, c];
2825
- const f = (b) => {
2826
- const { scope: h, children: x, ...w } = b, _ = h?.[e]?.[m] || d, y = u.useMemo(() => w, Object.values(w));
2827
- return /* @__PURE__ */ a(_.Provider, { value: y, children: x });
2828
- };
2829
- f.displayName = s + "Provider";
2830
- function p(b, h) {
2831
- const x = h?.[e]?.[m] || d, w = u.useContext(x);
2832
- if (w) return w;
2833
- if (c !== void 0) return c;
2834
- throw new Error(`\`${b}\` must be used within \`${s}\``);
2835
- }
2836
- return [f, p];
2837
- }
2838
- const i = () => {
2839
- const s = r.map((c) => u.createContext(c));
2840
- return function(d) {
2841
- const m = d?.[e] || s;
2842
- return u.useMemo(
2843
- () => ({ [`__scope${e}`]: { ...d, [e]: m } }),
2844
- [d, m]
2845
- );
2846
- };
2847
- };
2848
- return i.scopeName = e, [n, $t(i, ...t)];
2849
- }
2850
- function $t(...e) {
2851
- const t = e[0];
2852
- if (e.length === 1) return t;
2853
- const r = () => {
2854
- const n = e.map((i) => ({
2855
- useScope: i(),
2856
- scopeName: i.scopeName
2857
- }));
2858
- return function(s) {
2859
- const c = n.reduce((d, { useScope: m, scopeName: f }) => {
2860
- const b = m(s)[`__scope${f}`];
2861
- return { ...d, ...b };
2862
- }, {});
2863
- return u.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
2864
- };
2865
- };
2866
- return r.scopeName = t.scopeName, r;
2867
- }
2868
- var ge = globalThis?.document ? u.useLayoutEffect : () => {
2869
- }, jt = u[" useInsertionEffect ".trim().toString()] || ge;
2870
- function Ot({
2871
- prop: e,
2872
- defaultProp: t,
2873
- onChange: r = () => {
2874
- },
2875
- caller: n
2876
- }) {
2877
- const [i, s, c] = Ht({
2878
- defaultProp: t,
2879
- onChange: r
2880
- }), d = e !== void 0, m = d ? e : i;
2881
- {
2882
- const p = u.useRef(e !== void 0);
2883
- u.useEffect(() => {
2884
- const b = p.current;
2885
- b !== d && console.warn(
2886
- `${n} is changing from ${b ? "controlled" : "uncontrolled"} to ${d ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
2887
- ), p.current = d;
2888
- }, [d, n]);
2889
- }
2890
- const f = u.useCallback(
2891
- (p) => {
2892
- if (d) {
2893
- const b = Gt(p) ? p(e) : p;
2894
- b !== e && c.current?.(b);
2895
- } else
2896
- s(p);
2897
- },
2898
- [d, e, s, c]
2812
+ )
2813
+ }
2899
2814
  );
2900
- return [m, f];
2901
2815
  }
2902
- function Ht({
2903
- defaultProp: e,
2904
- onChange: t
2816
+ function ao({
2817
+ ...e
2905
2818
  }) {
2906
- const [r, n] = u.useState(e), i = u.useRef(r), s = u.useRef(t);
2907
- return jt(() => {
2908
- s.current = t;
2909
- }, [t]), u.useEffect(() => {
2910
- i.current !== r && (s.current?.(r), i.current = r);
2911
- }, [r, i]), [r, n, s];
2819
+ return /* @__PURE__ */ a(S.Root, { "data-slot": "alert-dialog", ...e });
2912
2820
  }
2913
- function Gt(e) {
2914
- return typeof e == "function";
2821
+ function ro({
2822
+ ...e
2823
+ }) {
2824
+ return /* @__PURE__ */ a(S.Trigger, { "data-slot": "alert-dialog-trigger", ...e });
2915
2825
  }
2916
- function Vt(e) {
2917
- const t = u.useRef({ value: e, previous: e });
2918
- return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
2826
+ function St({
2827
+ ...e
2828
+ }) {
2829
+ return /* @__PURE__ */ a(S.Portal, { "data-slot": "alert-dialog-portal", ...e });
2919
2830
  }
2920
- function Ft(e) {
2921
- const [t, r] = u.useState(void 0);
2922
- return ge(() => {
2923
- if (e) {
2924
- r({ width: e.offsetWidth, height: e.offsetHeight });
2925
- const n = new ResizeObserver((i) => {
2926
- if (!Array.isArray(i) || !i.length)
2927
- return;
2928
- const s = i[0];
2929
- let c, d;
2930
- if ("borderBoxSize" in s) {
2931
- const m = s.borderBoxSize, f = Array.isArray(m) ? m[0] : m;
2932
- c = f.inlineSize, d = f.blockSize;
2933
- } else
2934
- c = e.offsetWidth, d = e.offsetHeight;
2935
- r({ width: c, height: d });
2936
- });
2937
- return n.observe(e, { box: "border-box" }), () => n.unobserve(e);
2938
- } else
2939
- r(void 0);
2940
- }, [e]), t;
2941
- }
2942
- var Ut = [
2943
- "a",
2944
- "button",
2945
- "div",
2946
- "form",
2947
- "h2",
2948
- "h3",
2949
- "img",
2950
- "input",
2951
- "label",
2952
- "li",
2953
- "nav",
2954
- "ol",
2955
- "p",
2956
- "select",
2957
- "span",
2958
- "svg",
2959
- "ul"
2960
- ], be = Ut.reduce((e, t) => {
2961
- const r = Me(`Primitive.${t}`), n = u.forwardRef((i, s) => {
2962
- const { asChild: c, ...d } = i, m = c ? r : t;
2963
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ a(m, { ...d, ref: s });
2964
- });
2965
- return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
2966
- }, {}), V = "Switch", [Wt, _o] = At(V), [Kt, qt] = Wt(V), he = u.forwardRef(
2967
- (e, t) => {
2968
- const {
2969
- __scopeSwitch: r,
2970
- name: n,
2971
- checked: i,
2972
- defaultChecked: s,
2973
- required: c,
2974
- disabled: d,
2975
- value: m = "on",
2976
- onCheckedChange: f,
2977
- form: p,
2978
- ...b
2979
- } = e, [h, x] = u.useState(null), w = pe(t, (M) => x(M)), _ = u.useRef(!1), y = h ? p || !!h.closest("form") : !0, [g, v] = Ot({
2980
- prop: i,
2981
- defaultProp: s ?? !1,
2982
- onChange: f,
2983
- caller: V
2984
- });
2985
- return /* @__PURE__ */ l(Kt, { scope: r, checked: g, disabled: d, children: [
2986
- /* @__PURE__ */ a(
2987
- be.button,
2988
- {
2989
- type: "button",
2990
- role: "switch",
2991
- "aria-checked": g,
2992
- "aria-required": c,
2993
- "data-state": ye(g),
2994
- "data-disabled": d ? "" : void 0,
2995
- disabled: d,
2996
- value: m,
2997
- ...b,
2998
- ref: w,
2999
- onClick: Bt(e.onClick, (M) => {
3000
- v((P) => !P), y && (_.current = M.isPropagationStopped(), _.current || M.stopPropagation());
3001
- })
3002
- }
2831
+ function Tt({
2832
+ className: e,
2833
+ ...t
2834
+ }) {
2835
+ return /* @__PURE__ */ a(
2836
+ S.Overlay,
2837
+ {
2838
+ "data-slot": "alert-dialog-overlay",
2839
+ className: r(
2840
+ "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",
2841
+ e
3003
2842
  ),
3004
- y && /* @__PURE__ */ a(
3005
- we,
3006
- {
3007
- control: h,
3008
- bubbles: !_.current,
3009
- name: n,
3010
- value: m,
3011
- checked: g,
3012
- required: c,
3013
- disabled: d,
3014
- form: p,
3015
- style: { transform: "translateX(-100%)" }
3016
- }
3017
- )
3018
- ] });
3019
- }
3020
- );
3021
- he.displayName = V;
3022
- var ve = "SwitchThumb", xe = u.forwardRef(
3023
- (e, t) => {
3024
- const { __scopeSwitch: r, ...n } = e, i = qt(ve, r);
3025
- return /* @__PURE__ */ a(
3026
- be.span,
3027
- {
3028
- "data-state": ye(i.checked),
3029
- "data-disabled": i.disabled ? "" : void 0,
3030
- ...n,
3031
- ref: t
3032
- }
3033
- );
3034
- }
3035
- );
3036
- xe.displayName = ve;
3037
- var Xt = "SwitchBubbleInput", we = u.forwardRef(
3038
- ({
3039
- __scopeSwitch: e,
3040
- control: t,
3041
- checked: r,
3042
- bubbles: n = !0,
3043
- ...i
3044
- }, s) => {
3045
- const c = u.useRef(null), d = pe(c, s), m = Vt(r), f = Ft(t);
3046
- return u.useEffect(() => {
3047
- const p = c.current;
3048
- if (!p) return;
3049
- const b = window.HTMLInputElement.prototype, x = Object.getOwnPropertyDescriptor(
3050
- b,
3051
- "checked"
3052
- ).set;
3053
- if (m !== r && x) {
3054
- const w = new Event("click", { bubbles: n });
3055
- x.call(p, r), p.dispatchEvent(w);
3056
- }
3057
- }, [m, r, n]), /* @__PURE__ */ a(
3058
- "input",
2843
+ ...t
2844
+ }
2845
+ );
2846
+ }
2847
+ function oo({
2848
+ className: e,
2849
+ ...t
2850
+ }) {
2851
+ return /* @__PURE__ */ i(St, { children: [
2852
+ /* @__PURE__ */ a(Tt, {}),
2853
+ /* @__PURE__ */ a(
2854
+ S.Content,
3059
2855
  {
3060
- type: "checkbox",
3061
- "aria-hidden": !0,
3062
- defaultChecked: r,
3063
- ...i,
3064
- tabIndex: -1,
3065
- ref: d,
3066
- style: {
3067
- ...i.style,
3068
- ...f,
3069
- position: "absolute",
3070
- pointerEvents: "none",
3071
- opacity: 0,
3072
- margin: 0
3073
- }
2856
+ "data-slot": "alert-dialog-content",
2857
+ className: r(
2858
+ "bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
2859
+ e
2860
+ ),
2861
+ ...t
3074
2862
  }
3075
- );
3076
- }
3077
- );
3078
- we.displayName = Xt;
3079
- function ye(e) {
3080
- return e ? "checked" : "unchecked";
2863
+ )
2864
+ ] });
3081
2865
  }
3082
- var Yt = he, Jt = xe;
3083
- function To({
2866
+ function no({
3084
2867
  className: e,
3085
2868
  ...t
3086
2869
  }) {
3087
2870
  return /* @__PURE__ */ a(
3088
- Yt,
2871
+ "div",
3089
2872
  {
3090
- "data-slot": "switch",
3091
- className: o(
3092
- "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
2873
+ "data-slot": "alert-dialog-header",
2874
+ className: r("flex flex-col gap-2 text-center sm:text-left", e),
2875
+ ...t
2876
+ }
2877
+ );
2878
+ }
2879
+ function io({
2880
+ className: e,
2881
+ ...t
2882
+ }) {
2883
+ return /* @__PURE__ */ a(
2884
+ "div",
2885
+ {
2886
+ "data-slot": "alert-dialog-footer",
2887
+ className: r(
2888
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
3093
2889
  e
3094
2890
  ),
3095
- ...t,
3096
- children: /* @__PURE__ */ a(
3097
- Jt,
3098
- {
3099
- "data-slot": "switch-thumb",
3100
- className: o(
3101
- "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
3102
- )
3103
- }
3104
- )
2891
+ ...t
3105
2892
  }
3106
2893
  );
3107
2894
  }
3108
- const Qt = {
2895
+ function so({
2896
+ className: e,
2897
+ ...t
2898
+ }) {
2899
+ return /* @__PURE__ */ a(
2900
+ S.Title,
2901
+ {
2902
+ "data-slot": "alert-dialog-title",
2903
+ className: r("text-lg font-semibold", e),
2904
+ ...t
2905
+ }
2906
+ );
2907
+ }
2908
+ function lo({
2909
+ className: e,
2910
+ ...t
2911
+ }) {
2912
+ return /* @__PURE__ */ a(
2913
+ S.Description,
2914
+ {
2915
+ "data-slot": "alert-dialog-description",
2916
+ className: r("text-muted-foreground text-sm", e),
2917
+ ...t
2918
+ }
2919
+ );
2920
+ }
2921
+ function co({
2922
+ className: e,
2923
+ ...t
2924
+ }) {
2925
+ return /* @__PURE__ */ a(
2926
+ S.Action,
2927
+ {
2928
+ className: r(V(), e),
2929
+ ...t
2930
+ }
2931
+ );
2932
+ }
2933
+ function uo({
2934
+ className: e,
2935
+ ...t
2936
+ }) {
2937
+ return /* @__PURE__ */ a(
2938
+ S.Cancel,
2939
+ {
2940
+ className: r(V({ variant: "outline" }), e),
2941
+ ...t
2942
+ }
2943
+ );
2944
+ }
2945
+ const _t = {
3109
2946
  theme: "system",
3110
2947
  setTheme: () => null
3111
- }, Ne = Ce(Qt);
3112
- function Mo({
2948
+ }, pe = he(_t);
2949
+ function mo({
3113
2950
  children: e,
3114
2951
  defaultTheme: t = "system",
3115
- storageKey: r = "@clidey/ux/theme",
2952
+ storageKey: o = "@clidey/ux/theme",
3116
2953
  ...n
3117
2954
  }) {
3118
- const [i, s] = ze(
3119
- () => localStorage.getItem(r) || t
2955
+ const [s, d] = ve(
2956
+ () => localStorage.getItem(o) || t
3120
2957
  );
3121
- _e(() => {
3122
- const d = window.document.documentElement;
3123
- if (d.classList.remove("light", "dark"), i === "system") {
3124
- const m = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
3125
- d.classList.add(m);
2958
+ xe(() => {
2959
+ const c = window.document.documentElement;
2960
+ if (c.classList.remove("light", "dark"), s === "system") {
2961
+ const p = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2962
+ c.classList.add(p);
3126
2963
  return;
3127
2964
  }
3128
- d.classList.add(i);
3129
- }, [i]);
3130
- const c = {
3131
- theme: i,
3132
- setTheme: (d) => {
3133
- localStorage.setItem(r, d), s(d);
2965
+ c.classList.add(s);
2966
+ }, [s]);
2967
+ const u = {
2968
+ theme: s,
2969
+ setTheme: (c) => {
2970
+ localStorage.setItem(o, c), d(c);
3134
2971
  }
3135
2972
  };
3136
- return /* @__PURE__ */ a(Ne.Provider, { ...n, value: c, children: e });
2973
+ return /* @__PURE__ */ a(pe.Provider, { ...n, value: u, children: e });
3137
2974
  }
3138
- const Zt = () => {
3139
- const e = Te(Ne);
2975
+ const Dt = () => {
2976
+ const e = we(pe);
3140
2977
  if (e === void 0)
3141
2978
  throw new Error("useTheme must be used within a ThemeProvider");
3142
2979
  return e;
3143
2980
  };
3144
- function Io() {
3145
- const { setTheme: e } = Zt();
3146
- return /* @__PURE__ */ l(Xe, { children: [
3147
- /* @__PURE__ */ a(Ye, { children: /* @__PURE__ */ l(Y, { variant: "outline", size: "icon", children: [
3148
- /* @__PURE__ */ a(J, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3149
- /* @__PURE__ */ a(Q, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
2981
+ function fo() {
2982
+ const { setTheme: e } = Dt();
2983
+ return /* @__PURE__ */ i($e, { children: [
2984
+ /* @__PURE__ */ a(Ge, { children: /* @__PURE__ */ i(J, { variant: "outline", size: "icon", children: [
2985
+ /* @__PURE__ */ a(Q, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
2986
+ /* @__PURE__ */ a(Z, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3150
2987
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Toggle theme" })
3151
2988
  ] }) }),
3152
- /* @__PURE__ */ l(Je, { align: "end", children: [
3153
- /* @__PURE__ */ l(F, { onClick: () => e("light"), children: [
3154
- /* @__PURE__ */ a(J, { className: "size-4" }),
2989
+ /* @__PURE__ */ i(He, { align: "end", children: [
2990
+ /* @__PURE__ */ i(K, { onClick: () => e("light"), children: [
2991
+ /* @__PURE__ */ a(Q, { className: "size-4" }),
3155
2992
  "Light"
3156
2993
  ] }),
3157
- /* @__PURE__ */ l(F, { onClick: () => e("dark"), children: [
3158
- /* @__PURE__ */ a(Q, { className: "size-4" }),
2994
+ /* @__PURE__ */ i(K, { onClick: () => e("dark"), children: [
2995
+ /* @__PURE__ */ a(Z, { className: "size-4" }),
3159
2996
  "Dark"
3160
2997
  ] }),
3161
- /* @__PURE__ */ l(F, { onClick: () => e("system"), children: [
3162
- /* @__PURE__ */ a(Oe, { className: "size-4" }),
2998
+ /* @__PURE__ */ i(K, { onClick: () => e("system"), children: [
2999
+ /* @__PURE__ */ a(Ie, { className: "size-4" }),
3163
3000
  "System"
3164
3001
  ] })
3165
3002
  ] })
3166
3003
  ] });
3167
3004
  }
3168
3005
  export {
3169
- bo as Accordion,
3170
- xo as AccordionContent,
3171
- ho as AccordionItem,
3172
- vo as AccordionTrigger,
3173
- ko as Alert,
3174
- Co as AlertDescription,
3175
- So as AlertTitle,
3176
- ba as Badge,
3177
- vr as Breadcrumb,
3178
- wr as BreadcrumbItem,
3179
- yr as BreadcrumbLink,
3180
- xr as BreadcrumbList,
3181
- Nr as BreadcrumbPage,
3182
- kr as BreadcrumbSeparator,
3183
- Y as Button,
3184
- ha as Card,
3185
- ya as CardContent,
3186
- wa as CardDescription,
3187
- Na as CardFooter,
3188
- va as CardHeader,
3189
- xa as CardTitle,
3190
- mo as Checkbox,
3191
- lt as Command,
3192
- ft as CommandEmpty,
3193
- mt as CommandGroup,
3194
- ct as CommandInput,
3195
- pt as CommandItem,
3196
- ut as CommandList,
3197
- ka as ContextMenu,
3198
- Pa as ContextMenuCheckboxItem,
3199
- Ma as ContextMenuContent,
3200
- Ia as ContextMenuItem,
3201
- Da as ContextMenuLabel,
3202
- za as ContextMenuRadioGroup,
3203
- Ra as ContextMenuRadioItem,
3204
- Ea as ContextMenuSeparator,
3205
- Ba as ContextMenuShortcut,
3206
- Ca as ContextMenuSub,
3207
- Ta as ContextMenuSubContent,
3208
- _a as ContextMenuSubTrigger,
3209
- Sa as ContextMenuTrigger,
3210
- Sr as Dialog,
3211
- zr as DialogContent,
3212
- Ir as DialogDescription,
3213
- Tr as DialogFooter,
3214
- _r as DialogHeader,
3215
- Mr as DialogTitle,
3216
- Cr as DialogTrigger,
3217
- La as Drawer,
3218
- $a as DrawerClose,
3219
- ja as DrawerContent,
3220
- Va as DrawerDescription,
3221
- Ha as DrawerFooter,
3222
- Oa as DrawerHeader,
3223
- Ga as DrawerTitle,
3224
- Aa as DrawerTrigger,
3225
- Xe as DropdownMenu,
3226
- Fa as DropdownMenuCheckboxItem,
3227
- Je as DropdownMenuContent,
3228
- F as DropdownMenuItem,
3229
- Ka as DropdownMenuLabel,
3230
- Ua as DropdownMenuRadioGroup,
3231
- Wa as DropdownMenuRadioItem,
3232
- qa as DropdownMenuSeparator,
3233
- Xa as DropdownMenuShortcut,
3234
- Ya as DropdownMenuSub,
3235
- Qa as DropdownMenuSubContent,
3236
- Ja as DropdownMenuSubTrigger,
3237
- Ye as DropdownMenuTrigger,
3238
- po as EmptyState,
3239
- zo as Icon,
3240
- Qe as Input,
3241
- er as Label,
3242
- Io as ModeToggle,
3243
- tr as Pagination,
3244
- ar as PaginationContent,
3245
- ir as PaginationEllipsis,
3246
- rr as PaginationItem,
3006
+ Fr as Accordion,
3007
+ Wr as AccordionContent,
3008
+ Kr as AccordionItem,
3009
+ Ur as AccordionTrigger,
3010
+ Jr as Alert,
3011
+ Zr as AlertDescription,
3012
+ ao as AlertDialog,
3013
+ co as AlertDialogAction,
3014
+ uo as AlertDialogCancel,
3015
+ oo as AlertDialogContent,
3016
+ lo as AlertDialogDescription,
3017
+ io as AlertDialogFooter,
3018
+ no as AlertDialogHeader,
3019
+ so as AlertDialogTitle,
3020
+ ro as AlertDialogTrigger,
3021
+ Qr as AlertTitle,
3022
+ Kt as Badge,
3023
+ Wa as Breadcrumb,
3024
+ Xa as BreadcrumbItem,
3025
+ Ya as BreadcrumbLink,
3026
+ qa as BreadcrumbList,
3027
+ Ja as BreadcrumbPage,
3028
+ Qa as BreadcrumbSeparator,
3029
+ J as Button,
3030
+ Ut as Card,
3031
+ Yt as CardContent,
3032
+ Xt as CardDescription,
3033
+ Jt as CardFooter,
3034
+ Wt as CardHeader,
3035
+ qt as CardTitle,
3036
+ Gr as Checkbox,
3037
+ et as Command,
3038
+ rt as CommandEmpty,
3039
+ ot as CommandGroup,
3040
+ tt as CommandInput,
3041
+ nt as CommandItem,
3042
+ at as CommandList,
3043
+ Qt as ContextMenu,
3044
+ ia as ContextMenuCheckboxItem,
3045
+ oa as ContextMenuContent,
3046
+ na as ContextMenuItem,
3047
+ da as ContextMenuLabel,
3048
+ ta as ContextMenuRadioGroup,
3049
+ sa as ContextMenuRadioItem,
3050
+ la as ContextMenuSeparator,
3051
+ ca as ContextMenuShortcut,
3052
+ ea as ContextMenuSub,
3053
+ ra as ContextMenuSubContent,
3054
+ aa as ContextMenuSubTrigger,
3055
+ Zt as ContextMenuTrigger,
3056
+ Za as Dialog,
3057
+ tr as DialogContent,
3058
+ nr as DialogDescription,
3059
+ rr as DialogFooter,
3060
+ ar as DialogHeader,
3061
+ or as DialogTitle,
3062
+ er as DialogTrigger,
3063
+ ua as Drawer,
3064
+ fa as DrawerClose,
3065
+ pa as DrawerContent,
3066
+ va as DrawerDescription,
3067
+ ba as DrawerFooter,
3068
+ ga as DrawerHeader,
3069
+ ha as DrawerTitle,
3070
+ ma as DrawerTrigger,
3071
+ $e as DropdownMenu,
3072
+ xa as DropdownMenuCheckboxItem,
3073
+ He as DropdownMenuContent,
3074
+ K as DropdownMenuItem,
3075
+ ya as DropdownMenuLabel,
3076
+ wa as DropdownMenuRadioGroup,
3077
+ Na as DropdownMenuRadioItem,
3078
+ ka as DropdownMenuSeparator,
3079
+ za as DropdownMenuShortcut,
3080
+ Ca as DropdownMenuSub,
3081
+ Ta as DropdownMenuSubContent,
3082
+ Sa as DropdownMenuSubTrigger,
3083
+ Ge as DropdownMenuTrigger,
3084
+ Hr as EmptyState,
3085
+ eo as Icon,
3086
+ Ve as Input,
3087
+ Da as Label,
3088
+ fo as ModeToggle,
3089
+ Ma as Pagination,
3090
+ Ia as PaginationContent,
3091
+ La as PaginationEllipsis,
3092
+ Pa as PaginationItem,
3247
3093
  se as PaginationLink,
3248
- nr as PaginationNext,
3249
- or as PaginationPrevious,
3250
- Ze as Popover,
3251
- tt as PopoverContent,
3252
- et as PopoverTrigger,
3253
- No as ResizableHandle,
3254
- yo as ResizablePanel,
3255
- wo as ResizablePanelGroup,
3256
- Rt as ScrollArea,
3257
- Za as SearchInput,
3258
- $r as SearchSelect,
3259
- Pr as Select,
3260
- Br as SelectContent,
3261
- Rr as SelectGroup,
3262
- Ar as SelectItem,
3263
- Lr as SelectLabel,
3264
- Er as SelectTrigger,
3265
- Dr as SelectValue,
3094
+ Aa as PaginationNext,
3095
+ Ra as PaginationPrevious,
3096
+ Fe as Popover,
3097
+ Ue as PopoverContent,
3098
+ Ke as PopoverTrigger,
3099
+ Yr as ResizableHandle,
3100
+ Xr as ResizablePanel,
3101
+ qr as ResizablePanelGroup,
3102
+ kt as ScrollArea,
3103
+ _a as SearchInput,
3104
+ fr as SearchSelect,
3105
+ ir as Select,
3106
+ cr as SelectContent,
3107
+ sr as SelectGroup,
3108
+ mr as SelectItem,
3109
+ ur as SelectLabel,
3110
+ lr as SelectTrigger,
3111
+ dr as SelectValue,
3266
3112
  le as Separator,
3267
- vt as Sheet,
3268
- yt as SheetContent,
3269
- St as SheetDescription,
3270
- Or as SheetFooter,
3271
- Nt as SheetHeader,
3272
- kt as SheetTitle,
3273
- jr as SheetTrigger,
3274
- Gr as Sidebar,
3275
- Yr as SidebarContent,
3276
- qr as SidebarFooter,
3277
- Jr as SidebarGroup,
3278
- Zr as SidebarGroupAction,
3279
- eo as SidebarGroupContent,
3280
- Qr as SidebarGroupLabel,
3281
- Kr as SidebarHeader,
3282
- Wr as SidebarInput,
3283
- Ur as SidebarInset,
3284
- to as SidebarMenu,
3285
- oo as SidebarMenuAction,
3286
- no as SidebarMenuBadge,
3287
- ro as SidebarMenuButton,
3288
- ao as SidebarMenuItem,
3289
- io as SidebarMenuSkeleton,
3290
- so as SidebarMenuSub,
3291
- co as SidebarMenuSubButton,
3292
- lo as SidebarMenuSubItem,
3293
- Hr as SidebarProvider,
3294
- Fr as SidebarRail,
3295
- Xr as SidebarSeparator,
3296
- Vr as SidebarTrigger,
3297
- ee as Skeleton,
3298
- fo as StackList,
3299
- uo as StackListItem,
3300
- To as Switch,
3301
- lr as Table,
3302
- at as TableBody,
3303
- mr as TableCaption,
3304
- fr as TableCell,
3305
- ur as TableHead,
3306
- cr as TableHeader,
3307
- rt as TableRow,
3308
- pr as Tabs,
3309
- hr as TabsContent,
3310
- gr as TabsList,
3311
- br as TabsTrigger,
3312
- Mo as ThemeProvider,
3313
- sr as Toaster,
3314
- ot as Tooltip,
3315
- it as TooltipContent,
3113
+ lt as Sheet,
3114
+ mt as SheetContent,
3115
+ gt as SheetDescription,
3116
+ gr as SheetFooter,
3117
+ ft as SheetHeader,
3118
+ pt as SheetTitle,
3119
+ pr as SheetTrigger,
3120
+ hr as Sidebar,
3121
+ Cr as SidebarContent,
3122
+ kr as SidebarFooter,
3123
+ Sr as SidebarGroup,
3124
+ _r as SidebarGroupAction,
3125
+ Dr as SidebarGroupContent,
3126
+ Tr as SidebarGroupLabel,
3127
+ yr as SidebarHeader,
3128
+ Nr as SidebarInput,
3129
+ wr as SidebarInset,
3130
+ Mr as SidebarMenu,
3131
+ Rr as SidebarMenuAction,
3132
+ Ar as SidebarMenuBadge,
3133
+ Pr as SidebarMenuButton,
3134
+ Ir as SidebarMenuItem,
3135
+ Lr as SidebarMenuSkeleton,
3136
+ Er as SidebarMenuSub,
3137
+ Br as SidebarMenuSubButton,
3138
+ jr as SidebarMenuSubItem,
3139
+ br as SidebarProvider,
3140
+ xr as SidebarRail,
3141
+ zr as SidebarSeparator,
3142
+ vr as SidebarTrigger,
3143
+ ae as Skeleton,
3144
+ $r as StackList,
3145
+ Or as StackListItem,
3146
+ to as Switch,
3147
+ Ba as Table,
3148
+ We as TableBody,
3149
+ Ha as TableCaption,
3150
+ Ga as TableCell,
3151
+ $a as TableHead,
3152
+ Oa as TableHeader,
3153
+ qe as TableRow,
3154
+ Va as Tabs,
3155
+ Ua as TabsContent,
3156
+ Fa as TabsList,
3157
+ Ka as TabsTrigger,
3158
+ mo as ThemeProvider,
3159
+ Ea as Toaster,
3160
+ Xe as Tooltip,
3161
+ Je as TooltipContent,
3316
3162
  de as TooltipProvider,
3317
- nt as TooltipTrigger,
3318
- go as Tree,
3319
- dr as VirtualizedTableBody,
3320
- o as cn,
3321
- ga as formatDate,
3322
- pa as toTitleCase,
3323
- Do as toast,
3324
- G as useSidebar,
3325
- Zt as useTheme
3163
+ Ye as TooltipTrigger,
3164
+ Vr as Tree,
3165
+ ja as VirtualizedTableBody,
3166
+ r as cn,
3167
+ Ft as formatDate,
3168
+ Vt as toTitleCase,
3169
+ bo as toast,
3170
+ F as useSidebar,
3171
+ Dt as useTheme
3326
3172
  };