@clidey/ux 0.21.3 → 0.23.0

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