opsfuse-ui 0.1.21 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.claude/skills/opsfuse-components/SKILL.md +31 -22
  2. package/.claude/skills/opsfuse-ui-consistency/SKILL.md +15 -15
  3. package/LICENSE +17 -0
  4. package/README.md +76 -12
  5. package/dist/components/logo/LogoMaker.d.ts.map +1 -1
  6. package/dist/components/opsfuse-theme-provider.d.ts.map +1 -1
  7. package/dist/components/ui/alert-dialog.d.ts +2 -0
  8. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  9. package/dist/components/ui/alert.d.ts.map +1 -1
  10. package/dist/components/ui/carousel.d.ts.map +1 -1
  11. package/dist/components/ui/combobox.d.ts.map +1 -1
  12. package/dist/components/ui/empty.d.ts +1 -1
  13. package/dist/components/ui/empty.d.ts.map +1 -1
  14. package/dist/components/ui/sidebar.d.ts.map +1 -1
  15. package/dist/core.js +4 -3
  16. package/dist/date-fns-locale.js +1 -39647
  17. package/dist/date-fns.js +1 -3
  18. package/dist/extended.js +3 -2
  19. package/dist/hooks/use-mobile.d.ts +14 -0
  20. package/dist/hooks/use-mobile.d.ts.map +1 -1
  21. package/dist/icons.js +1 -2
  22. package/dist/index.js +61 -2829
  23. package/dist/input-group-COKxQf1K.js +560 -0
  24. package/dist/input-otp-CBFh_Ez5.js +1181 -0
  25. package/dist/lib/document-dark-mode.d.ts.map +1 -1
  26. package/dist/lib/link.d.ts.map +1 -1
  27. package/dist/lib/portaled-layer.d.ts.map +1 -1
  28. package/dist/recharts.js +1 -2
  29. package/dist/style.css +50 -6
  30. package/dist/toggle-group-UI-J1H4k.js +3174 -0
  31. package/package.json +41 -14
  32. package/theme.css +47 -3
  33. package/dist/chunk-Dqa2HsxW.js +0 -20
  34. package/dist/clsx-BWCAbrjV.js +0 -16
  35. package/dist/date-fns-DTKqTajJ.js +0 -3871
  36. package/dist/es6-CLjPx7Zx.js +0 -23996
  37. package/dist/input-group-BAkukY-L.js +0 -5463
  38. package/dist/input-otp-DyyXKjPp.js +0 -10792
  39. package/dist/isSameWeek-B6PEe-M_.js +0 -537
  40. package/dist/lucide-react-Dil0H3iN.js +0 -38770
  41. package/dist/toggle-group-Bpg09Bg7.js +0 -11072
@@ -0,0 +1,3174 @@
1
+ "use client";
2
+ import { B as e, D as t, F as n, L as r, M as i, N as a, O as o, P as s, _ as c, b as l, c as u, f as d, g as f, h as p, l as m, m as h, p as g, u as _, x as v } from "./input-group-COKxQf1K.js";
3
+ import { CheckIcon as y, ChevronDownIcon as b, ChevronLeftIcon as x, ChevronRightIcon as S, ChevronUpIcon as ee, MoreHorizontalIcon as te, PanelLeftIcon as ne, SparklesIcon as C, XIcon as w } from "lucide-react";
4
+ import * as T from "react";
5
+ import E, { useId as re, useMemo as ie } from "react";
6
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
7
+ import { cva as A } from "class-variance-authority";
8
+ import { Accordion as j, AlertDialog as M, AspectRatio as ae, Avatar as N, Checkbox as oe, Collapsible as P, ContextMenu as F, Dialog as I, Direction as se, DropdownMenu as L, HoverCard as R, Menubar as z, NavigationMenu as B, Popover as V, Progress as ce, RadioGroup as le, ScrollArea as H, Select as U, Separator as ue, Slider as W, Slot as G, Switch as de, Tabs as K, Toggle as fe, ToggleGroup as pe, Tooltip as q } from "radix-ui";
9
+ import * as me from "react-resizable-panels";
10
+ //#region src/components/logo/LogoMaker.tsx
11
+ var J = ({ size: t = 32, fit: n = !0, showLogo: r = !0, brandFontSize: i = 28, productFontSize: a = 14, viewBoxX: o = 0, viewBoxY: s = 0, viewBoxWidth: c = 480, viewBoxHeight: l, iconViewBox: u, primary: d, primaryDeep: f, gradient: p, reverseGradient: m = !1, textStartX: h, mark: g, markTransform: _, productLabel: v, brandY: y, dividerY: b, productY: x, style: S, className: ee, width: te, height: ne, onlyIcon: C = !1, ...w }) => {
12
+ let T = re().replace(/:/g, ""), E = `${T}-mark`, ie = `${T}-brand-text`, A = C ? u : void 0, j = A ? A[0] : o, M = A ? A[1] : s, ae = A ? A[2] : C ? l : c, N = A ? A[2] : l, oe = te ?? (typeof t == "number" && !n ? t : void 0), P = ne ?? (typeof t == "number" ? n ? t : t * N / ae : void 0), F = r ? h ?? 80 : 20, I = typeof v == "string" && v.length > 0 && typeof b == "number" && typeof x == "number", se = w["aria-label"] ?? (v ? `RecruitSmartly ${v}` : "RecruitSmartly");
13
+ return /* @__PURE__ */ k("svg", {
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ viewBox: `${j} ${M} ${ae} ${N}`,
16
+ width: oe,
17
+ height: P,
18
+ className: e(n && "w-fit shrink-0", ee),
19
+ role: "img",
20
+ focusable: "false",
21
+ "aria-label": se,
22
+ ...w,
23
+ style: {
24
+ "--primary": d,
25
+ "--primary-deep": f,
26
+ ...S
27
+ },
28
+ children: [
29
+ /* @__PURE__ */ O("title", { children: se }),
30
+ /* @__PURE__ */ k("defs", { children: [/* @__PURE__ */ k("linearGradient", {
31
+ id: E,
32
+ ...p,
33
+ children: [/* @__PURE__ */ O("stop", {
34
+ offset: "0%",
35
+ stopColor: m ? "var(--primary-deep)" : "var(--primary)"
36
+ }), /* @__PURE__ */ O("stop", {
37
+ offset: "100%",
38
+ stopColor: m ? "var(--primary)" : "var(--primary-deep)",
39
+ opacity: "0.1"
40
+ })]
41
+ }), /* @__PURE__ */ k("linearGradient", {
42
+ id: ie,
43
+ x1: "0%",
44
+ y1: "50%",
45
+ x2: "0%",
46
+ y2: "100%",
47
+ gradientUnits: "objectBoundingBox",
48
+ children: [/* @__PURE__ */ O("stop", {
49
+ offset: "0%",
50
+ stopColor: "var(--primary)"
51
+ }), /* @__PURE__ */ O("stop", {
52
+ offset: "100%",
53
+ stopColor: "var(--foreground)",
54
+ style: { opacity: .1 }
55
+ })]
56
+ })] }),
57
+ r ? _ ? /* @__PURE__ */ O("g", {
58
+ transform: _,
59
+ children: g(E)
60
+ }) : g(E) : null,
61
+ !C && /* @__PURE__ */ k("text", {
62
+ x: F,
63
+ y,
64
+ fontFamily: "var(--font-sans)",
65
+ fontSize: i,
66
+ letterSpacing: "-0.4",
67
+ children: [/* @__PURE__ */ O("tspan", {
68
+ fontWeight: "600",
69
+ fill: "var(--foreground)",
70
+ opacity: "0.9",
71
+ children: "Recruit"
72
+ }), /* @__PURE__ */ O("tspan", {
73
+ fontWeight: "800",
74
+ fill: "var(--primary)",
75
+ children: "Smartly"
76
+ })]
77
+ }),
78
+ !C && I ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("line", {
79
+ x1: F,
80
+ y1: b,
81
+ x2: F + 52,
82
+ y2: b,
83
+ stroke: "var(--primary)",
84
+ strokeWidth: "1.5",
85
+ opacity: "0.5",
86
+ strokeLinecap: "round"
87
+ }), /* @__PURE__ */ O("text", {
88
+ x: F,
89
+ y: x,
90
+ fontFamily: "var(--font-body)",
91
+ fontSize: a,
92
+ fontWeight: "800",
93
+ fill: "var(--primary)",
94
+ letterSpacing: "1.5",
95
+ children: v
96
+ })] }) : null
97
+ ]
98
+ });
99
+ }, he = ({ ...e }) => /* @__PURE__ */ O(J, {
100
+ viewBoxY: 23.4,
101
+ viewBoxX: 24.5,
102
+ viewBoxWidth: 255,
103
+ viewBoxHeight: 37.9,
104
+ iconViewBox: [
105
+ 24.5,
106
+ 20.4,
107
+ 43.9
108
+ ],
109
+ brandY: 53,
110
+ brandFontSize: 28,
111
+ textStartX: 76,
112
+ markTransform: "translate(39 37) scale(0.75) translate(-39 -37)",
113
+ primary: "oklch(0.56 0.19 278)",
114
+ primaryDeep: "oklch(0.48 0.19 278)",
115
+ gradient: {
116
+ x1: "0",
117
+ y1: "0",
118
+ x2: "1",
119
+ y2: "1"
120
+ },
121
+ mark: (e) => /* @__PURE__ */ k("g", {
122
+ transform: "translate(22 16)",
123
+ children: [
124
+ /* @__PURE__ */ O("rect", {
125
+ x: "0",
126
+ y: "6",
127
+ width: "38",
128
+ height: "38",
129
+ rx: "9",
130
+ fill: "var(--primary)",
131
+ opacity: "0.22",
132
+ transform: "rotate(-8 16 22)"
133
+ }),
134
+ /* @__PURE__ */ O("rect", {
135
+ x: "14",
136
+ y: "10",
137
+ width: "40",
138
+ height: "40",
139
+ rx: "9",
140
+ fill: `url(#${e})`,
141
+ transform: "rotate(8 30 26)"
142
+ }),
143
+ /* @__PURE__ */ O(C, {
144
+ x: "26",
145
+ y: "22",
146
+ width: "18",
147
+ height: "18",
148
+ stroke: "white",
149
+ strokeWidth: 2.25,
150
+ transform: "rotate(8 34 30)"
151
+ })
152
+ ]
153
+ }),
154
+ ...e
155
+ }), ge = ({ ...e }) => /* @__PURE__ */ O(J, {
156
+ viewBoxY: 35.2,
157
+ viewBoxWidth: 182.6,
158
+ viewBoxX: 31.6,
159
+ viewBoxHeight: 43.6,
160
+ iconViewBox: [
161
+ 30.8,
162
+ 36.8,
163
+ 39.4
164
+ ],
165
+ brandY: 49,
166
+ brandFontSize: 14,
167
+ productFontSize: 18,
168
+ dividerY: 56,
169
+ productY: 74,
170
+ productLabel: "SKILLREADY",
171
+ primary: "oklch(0.58 0.17 43)",
172
+ primaryDeep: "oklch(0.42 0.12 42)",
173
+ gradient: {
174
+ x1: "0",
175
+ y1: "1",
176
+ x2: "0",
177
+ y2: "0"
178
+ },
179
+ reverseGradient: !0,
180
+ markTransform: "translate(43 52) scale(0.75) translate(-43 -52)",
181
+ mark: (e) => /* @__PURE__ */ k("g", {
182
+ transform: "translate(10 16)",
183
+ children: [
184
+ /* @__PURE__ */ O("rect", {
185
+ x: "18",
186
+ y: "48",
187
+ width: "14",
188
+ height: "20",
189
+ rx: "4.5",
190
+ fill: "var(--primary)",
191
+ opacity: "0.25"
192
+ }),
193
+ /* @__PURE__ */ O("rect", {
194
+ x: "36",
195
+ y: "34",
196
+ width: "14",
197
+ height: "34",
198
+ rx: "4.5",
199
+ fill: "var(--primary)",
200
+ opacity: "0.55"
201
+ }),
202
+ /* @__PURE__ */ O("rect", {
203
+ x: "54",
204
+ y: "16",
205
+ width: "14",
206
+ height: "52",
207
+ rx: "4.5",
208
+ fill: `url(#${e})`
209
+ })
210
+ ]
211
+ }),
212
+ ...e
213
+ }), _e = ({ ...e }) => /* @__PURE__ */ O(J, {
214
+ viewBoxY: 35.2,
215
+ viewBoxWidth: 183.8,
216
+ viewBoxX: 31,
217
+ viewBoxHeight: 43.6,
218
+ iconViewBox: [
219
+ 31,
220
+ 34,
221
+ 43
222
+ ],
223
+ brandY: 49,
224
+ brandFontSize: 14,
225
+ productFontSize: 18,
226
+ dividerY: 56,
227
+ productY: 74,
228
+ productLabel: "TALENTSCAN",
229
+ primary: "oklch(0.56 0.19 278)",
230
+ primaryDeep: "oklch(0.48 0.19 278)",
231
+ gradient: {
232
+ x1: "0",
233
+ y1: "1",
234
+ x2: "0",
235
+ y2: "0"
236
+ },
237
+ reverseGradient: !0,
238
+ markTransform: "translate(43 52) scale(0.75) translate(-43 -52)",
239
+ mark: (e) => /* @__PURE__ */ k("g", {
240
+ transform: "translate(10 16)",
241
+ children: [
242
+ /* @__PURE__ */ O("circle", {
243
+ cx: "42",
244
+ cy: "40",
245
+ r: "22",
246
+ fill: "none",
247
+ stroke: `url(#${e})`,
248
+ strokeWidth: "4.2"
249
+ }),
250
+ /* @__PURE__ */ O("circle", {
251
+ cx: "42",
252
+ cy: "40",
253
+ r: "16.5",
254
+ fill: "var(--primary)",
255
+ opacity: "0.1"
256
+ }),
257
+ /* @__PURE__ */ O("path", {
258
+ d: "M54 17 A26 26 0 0 1 67 34",
259
+ fill: "none",
260
+ stroke: "var(--primary)",
261
+ strokeWidth: "2.6",
262
+ strokeLinecap: "round",
263
+ opacity: "0.6"
264
+ }),
265
+ /* @__PURE__ */ O("rect", {
266
+ x: "18",
267
+ y: "70",
268
+ width: "18",
269
+ height: "8",
270
+ rx: "3.5",
271
+ fill: "var(--primary-deep)",
272
+ transform: "rotate(30 80 140)"
273
+ }),
274
+ /* @__PURE__ */ O("circle", {
275
+ cx: "34.5",
276
+ cy: "36.2",
277
+ r: "3.6",
278
+ fill: "var(--primary)",
279
+ opacity: "0.6"
280
+ }),
281
+ /* @__PURE__ */ O("circle", {
282
+ cx: "42",
283
+ cy: "34.1",
284
+ r: "4.7",
285
+ fill: `url(#${e})`
286
+ }),
287
+ /* @__PURE__ */ O("circle", {
288
+ cx: "49.5",
289
+ cy: "36.2",
290
+ r: "3.6",
291
+ fill: "var(--primary)",
292
+ opacity: "0.6"
293
+ }),
294
+ /* @__PURE__ */ O("path", {
295
+ d: "M30.2 51.5 V49.6 C30.2 45.8 33.5 43.6 37.2 43.6 C39.5 43.6 41.4 44.4 42.8 45.8 C41.3 47.3 40.4 49.3 40.4 51.5 Z",
296
+ fill: "var(--primary)",
297
+ opacity: "0.45"
298
+ }),
299
+ /* @__PURE__ */ O("path", {
300
+ d: "M43.6 51.5 C43.6 49.3 42.7 47.3 41.2 45.8 C42.6 44.4 44.5 43.6 46.8 43.6 C50.5 43.6 53.8 45.8 53.8 49.6 V51.5 Z",
301
+ fill: "var(--primary)",
302
+ opacity: "0.45"
303
+ }),
304
+ /* @__PURE__ */ O("path", {
305
+ d: "M35.6 52 V49.2 C35.6 44.7 39 41.6 42 41.6 C45 41.6 48.4 44.7 48.4 49.2 V52 Z",
306
+ fill: `url(#${e})`
307
+ })
308
+ ]
309
+ }),
310
+ ...e
311
+ }), ve = ({ ...e }) => /* @__PURE__ */ O(J, {
312
+ viewBoxY: 36.6,
313
+ viewBoxWidth: 147.2,
314
+ viewBoxX: 31.8,
315
+ viewBoxHeight: 42.2,
316
+ iconViewBox: [
317
+ 29.6,
318
+ 36.6,
319
+ 37.9
320
+ ],
321
+ brandY: 51,
322
+ brandFontSize: 14,
323
+ productFontSize: 18,
324
+ dividerY: 56,
325
+ productY: 74,
326
+ textStartX: 80,
327
+ markTransform: "translate(38 51) scale(0.75) translate(-38 -51)",
328
+ productLabel: "VERITY",
329
+ primary: "oklch(0.62 0.13 195)",
330
+ primaryDeep: "oklch(0.49 0.14 195)",
331
+ gradient: {
332
+ x1: "0",
333
+ y1: "0",
334
+ x2: "0",
335
+ y2: "1"
336
+ },
337
+ mark: (e) => /* @__PURE__ */ k("g", {
338
+ transform: "translate(14 16)",
339
+ children: [/* @__PURE__ */ O("path", {
340
+ d: "M38 16 L60 26 L60 44 Q60 58 38 66 Q16 58 16 44 L16 26 Z",
341
+ fill: `url(#${e})`,
342
+ opacity: "0.18",
343
+ stroke: "var(--primary)",
344
+ strokeWidth: "1.8",
345
+ strokeLinejoin: "round"
346
+ }), /* @__PURE__ */ O("polyline", {
347
+ points: "28,42 35,49 50,33",
348
+ fill: "none",
349
+ stroke: "var(--primary)",
350
+ strokeWidth: "3.2",
351
+ strokeLinecap: "round",
352
+ strokeLinejoin: "round"
353
+ })]
354
+ }),
355
+ ...e
356
+ }), ye = ({ ...e }) => /* @__PURE__ */ O(J, {
357
+ viewBoxY: 35.2,
358
+ viewBoxWidth: 156.6,
359
+ viewBoxX: 33.1,
360
+ viewBoxHeight: 43.6,
361
+ iconViewBox: [
362
+ 33.1,
363
+ 39.1,
364
+ 34.9
365
+ ],
366
+ brandY: 49,
367
+ brandFontSize: 14,
368
+ productFontSize: 18,
369
+ dividerY: 56,
370
+ productY: 74,
371
+ productLabel: "WORKLOG",
372
+ primary: "oklch(0.54 0.2 265)",
373
+ primaryDeep: "oklch(0.46 0.2 265)",
374
+ gradient: {
375
+ x1: "0",
376
+ y1: "0",
377
+ x2: "1",
378
+ y2: "0"
379
+ },
380
+ markTransform: "translate(43 52) scale(0.75) translate(-43 -52)",
381
+ mark: (e) => /* @__PURE__ */ k("g", {
382
+ transform: "translate(12 16)",
383
+ children: [
384
+ /* @__PURE__ */ O("line", {
385
+ x1: "22",
386
+ y1: "26",
387
+ x2: "22",
388
+ y2: "58",
389
+ stroke: "var(--primary)",
390
+ strokeWidth: "1.5",
391
+ opacity: "0.18",
392
+ strokeLinecap: "round"
393
+ }),
394
+ /* @__PURE__ */ O("circle", {
395
+ cx: "22",
396
+ cy: "26",
397
+ r: "4",
398
+ fill: "var(--primary)"
399
+ }),
400
+ /* @__PURE__ */ O("rect", {
401
+ x: "32",
402
+ y: "23",
403
+ width: "32",
404
+ height: "6",
405
+ rx: "3",
406
+ fill: `url(#${e})`
407
+ }),
408
+ /* @__PURE__ */ O("circle", {
409
+ cx: "22",
410
+ cy: "42",
411
+ r: "4",
412
+ fill: "var(--primary)",
413
+ opacity: "0.55"
414
+ }),
415
+ /* @__PURE__ */ O("rect", {
416
+ x: "32",
417
+ y: "39",
418
+ width: "26",
419
+ height: "6",
420
+ rx: "3",
421
+ fill: "var(--primary)",
422
+ opacity: "0.55"
423
+ }),
424
+ /* @__PURE__ */ O("circle", {
425
+ cx: "22",
426
+ cy: "58",
427
+ r: "4",
428
+ fill: "var(--primary)",
429
+ opacity: "0.22"
430
+ }),
431
+ /* @__PURE__ */ O("rect", {
432
+ x: "32",
433
+ y: "55",
434
+ width: "20",
435
+ height: "6",
436
+ rx: "3",
437
+ fill: "var(--primary)",
438
+ opacity: "0.22"
439
+ })
440
+ ]
441
+ }),
442
+ ...e
443
+ }), be = A("group/alert relative grid w-full gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
444
+ variants: { variant: {
445
+ default: "bg-card text-card-foreground",
446
+ destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
447
+ } },
448
+ defaultVariants: { variant: "default" }
449
+ });
450
+ function xe({ className: t, variant: n, ...r }) {
451
+ return /* @__PURE__ */ O("div", {
452
+ "data-slot": "alert",
453
+ role: "alert",
454
+ className: e(be({ variant: n }), t),
455
+ ...r
456
+ });
457
+ }
458
+ function Se({ className: t, ...n }) {
459
+ return /* @__PURE__ */ O("div", {
460
+ "data-slot": "alert-title",
461
+ className: e("font-heading font-semibold text-sm group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", t),
462
+ ...n
463
+ });
464
+ }
465
+ function Ce({ className: t, ...n }) {
466
+ return /* @__PURE__ */ O("div", {
467
+ "data-slot": "alert-description",
468
+ className: e("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", t),
469
+ ...n
470
+ });
471
+ }
472
+ function we({ className: t, ...n }) {
473
+ return /* @__PURE__ */ O("div", {
474
+ "data-slot": "alert-action",
475
+ className: e("absolute top-2.5 right-3", t),
476
+ ...n
477
+ });
478
+ }
479
+ var Y = null, Te = null;
480
+ function Ee(e) {
481
+ return Y ? Y(e) : "";
482
+ }
483
+ function De(e) {
484
+ Te?.(e);
485
+ }
486
+ function Oe({ children: e }) {
487
+ let [t, n] = T.useState([]), i = T.useCallback((e) => {
488
+ n((t) => {
489
+ let n = t.find((t) => t.id === e);
490
+ return n && queueMicrotask(() => n.onDismiss?.()), t.filter((t) => t.id !== e);
491
+ });
492
+ }, []);
493
+ return T.useLayoutEffect(() => (Y = (e) => {
494
+ let t = typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : String(Date.now());
495
+ n((n) => [...n, {
496
+ id: t,
497
+ ...e
498
+ }]);
499
+ let r = e.duration;
500
+ if (r === null) return t;
501
+ let a = r === void 0 ? 5e3 : r;
502
+ return a > 0 && window.setTimeout(() => i(t), a), t;
503
+ }, Te = i, () => {
504
+ Y = null, Te = null;
505
+ }), [i]), /* @__PURE__ */ k(D, { children: [e, /* @__PURE__ */ O("div", {
506
+ "aria-live": "polite",
507
+ className: "pointer-events-none fixed top-4 right-4 z-100 flex max-h-[min(80vh,calc(100vh-2rem))] w-full max-w-sm flex-col gap-2 overflow-y-auto p-1",
508
+ children: t.map((e) => /* @__PURE__ */ k(xe, {
509
+ variant: e.variant,
510
+ className: "pointer-events-auto shadow-md",
511
+ children: [
512
+ e.icon ? e.icon : null,
513
+ /* @__PURE__ */ O(Se, { children: e.title }),
514
+ e.description ? /* @__PURE__ */ O(Ce, { children: e.description }) : null,
515
+ /* @__PURE__ */ O(we, { children: /* @__PURE__ */ k(r, {
516
+ type: "button",
517
+ variant: "ghost",
518
+ size: "icon-sm",
519
+ className: "size-7",
520
+ onClick: () => i(e.id),
521
+ children: [/* @__PURE__ */ O(w, { className: "size-4" }), /* @__PURE__ */ O("span", {
522
+ className: "sr-only",
523
+ children: "Dismiss"
524
+ })]
525
+ }) })
526
+ ]
527
+ }, e.id))
528
+ })] });
529
+ }
530
+ //#endregion
531
+ //#region src/components/ui/shadcn/shadcn-alert-dialog.tsx
532
+ function ke({ ...e }) {
533
+ return /* @__PURE__ */ O(M.Root, {
534
+ "data-slot": "alert-dialog",
535
+ ...e
536
+ });
537
+ }
538
+ function Ae({ ...e }) {
539
+ return /* @__PURE__ */ O(M.Trigger, {
540
+ "data-slot": "alert-dialog-trigger",
541
+ ...e
542
+ });
543
+ }
544
+ function je({ ...e }) {
545
+ return /* @__PURE__ */ O(M.Portal, {
546
+ "data-slot": "alert-dialog-portal",
547
+ ...e
548
+ });
549
+ }
550
+ function Me({ className: t, ...n }) {
551
+ return /* @__PURE__ */ O(M.Overlay, {
552
+ "data-slot": "alert-dialog-overlay",
553
+ className: e("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", t),
554
+ ...n
555
+ });
556
+ }
557
+ function Ne({ className: t, size: n = "default", style: r, ...a }) {
558
+ let o = i();
559
+ return /* @__PURE__ */ k(je, { children: [/* @__PURE__ */ O(Me, {}), /* @__PURE__ */ O(M.Content, {
560
+ "data-slot": "alert-dialog-content",
561
+ "data-size": n,
562
+ style: {
563
+ ...o.style,
564
+ ...r
565
+ },
566
+ className: e(o.className, "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
567
+ ...a
568
+ })] });
569
+ }
570
+ function Pe({ className: t, ...n }) {
571
+ return /* @__PURE__ */ O("div", {
572
+ "data-slot": "alert-dialog-header",
573
+ className: e("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", t),
574
+ ...n
575
+ });
576
+ }
577
+ function Fe({ className: t, ...n }) {
578
+ return /* @__PURE__ */ O("div", {
579
+ "data-slot": "alert-dialog-footer",
580
+ className: e("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", t),
581
+ ...n
582
+ });
583
+ }
584
+ function Ie({ className: t, ...n }) {
585
+ return /* @__PURE__ */ O("div", {
586
+ "data-slot": "alert-dialog-media",
587
+ className: e("mb-2 inline-flex size-16 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", t),
588
+ ...n
589
+ });
590
+ }
591
+ function Le({ className: t, ...n }) {
592
+ return /* @__PURE__ */ O(M.Title, {
593
+ "data-slot": "alert-dialog-title",
594
+ className: e("font-heading text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", t),
595
+ ...n
596
+ });
597
+ }
598
+ function Re({ className: t, ...n }) {
599
+ return /* @__PURE__ */ O(M.Description, {
600
+ "data-slot": "alert-dialog-description",
601
+ className: e("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", t),
602
+ ...n
603
+ });
604
+ }
605
+ function ze({ className: t, variant: n = "default", size: i = "default", loading: a = !1, loadingText: o = "Loading...", disabled: s = !1, ...c }) {
606
+ return /* @__PURE__ */ O(r, {
607
+ variant: n,
608
+ size: i,
609
+ asChild: !0,
610
+ loading: a,
611
+ loadingText: o,
612
+ disabled: s,
613
+ children: /* @__PURE__ */ O(M.Action, {
614
+ "data-slot": "alert-dialog-action",
615
+ className: e(t),
616
+ ...c
617
+ })
618
+ });
619
+ }
620
+ function Be({ className: t, variant: n = "outline", size: i = "default", loading: a = !1, loadingText: o = "Loading...", disabled: s = !1, ...c }) {
621
+ return /* @__PURE__ */ O(r, {
622
+ variant: n,
623
+ size: i,
624
+ asChild: !0,
625
+ loading: a,
626
+ loadingText: o,
627
+ disabled: s,
628
+ children: /* @__PURE__ */ O(M.Cancel, {
629
+ "data-slot": "alert-dialog-cancel",
630
+ className: e(t),
631
+ ...c
632
+ })
633
+ });
634
+ }
635
+ //#endregion
636
+ //#region src/components/ui/alert-dialog.tsx
637
+ var Ve = "Confirm", He = "Cancel", Ue = null;
638
+ function We(e) {
639
+ Ue?.(e);
640
+ }
641
+ function Ge({ children: e }) {
642
+ let [t, n] = E.useState(null), r = E.useRef(!1), [i, a] = E.useState(!1);
643
+ E.useLayoutEffect(() => (Ue = (e) => n(e), () => {
644
+ Ue = null;
645
+ }), []);
646
+ let o = E.useCallback((e) => {
647
+ if (!e) {
648
+ if (r.current) {
649
+ r.current = !1, n(null);
650
+ return;
651
+ }
652
+ n((e) => (e && e.onCancel?.(), null));
653
+ }
654
+ }, []), s = E.useCallback(async () => {
655
+ r.current = !0;
656
+ let e = t;
657
+ if (!e) {
658
+ r.current = !1;
659
+ return;
660
+ }
661
+ try {
662
+ a(!0), await Promise.resolve(e.onConfirm?.());
663
+ } finally {
664
+ n(null), a(!1);
665
+ }
666
+ }, [t]);
667
+ return /* @__PURE__ */ k(D, { children: [e, t ? /* @__PURE__ */ O(ke, {
668
+ open: !0,
669
+ onOpenChange: o,
670
+ children: /* @__PURE__ */ k(Ne, { children: [/* @__PURE__ */ k(Pe, { children: [/* @__PURE__ */ O(Le, { children: t.title }), /* @__PURE__ */ O(Re, {
671
+ className: t.description ? void 0 : "sr-only",
672
+ children: t.description ?? t.title
673
+ })] }), t.hideCancel && t.hideConfirm ? null : /* @__PURE__ */ k(Fe, { children: [t.hideCancel ? null : /* @__PURE__ */ O(Be, {
674
+ disabled: i,
675
+ children: t.cancelText ?? He
676
+ }), t.hideConfirm ? null : /* @__PURE__ */ O(ze, {
677
+ onClick: async (e) => {
678
+ e.preventDefault(), await s();
679
+ },
680
+ loading: i,
681
+ disabled: i,
682
+ loadingText: "Confirming...",
683
+ children: t.confirmText ?? Ve
684
+ })] })] })
685
+ }) : null] });
686
+ }
687
+ //#endregion
688
+ //#region src/components/ui/sheet.tsx
689
+ function Ke({ ...e }) {
690
+ return /* @__PURE__ */ O(I.Root, {
691
+ "data-slot": "sheet",
692
+ ...e
693
+ });
694
+ }
695
+ function qe({ ...e }) {
696
+ return /* @__PURE__ */ O(I.Trigger, {
697
+ "data-slot": "sheet-trigger",
698
+ ...e
699
+ });
700
+ }
701
+ function Je({ ...e }) {
702
+ return /* @__PURE__ */ O(I.Close, {
703
+ "data-slot": "sheet-close",
704
+ ...e
705
+ });
706
+ }
707
+ function Ye({ ...e }) {
708
+ return /* @__PURE__ */ O(I.Portal, {
709
+ "data-slot": "sheet-portal",
710
+ ...e
711
+ });
712
+ }
713
+ function Xe({ className: t, ...n }) {
714
+ return /* @__PURE__ */ O(I.Overlay, {
715
+ "data-slot": "sheet-overlay",
716
+ className: e("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", t),
717
+ ...n
718
+ });
719
+ }
720
+ function Ze({ className: t, children: n, side: a = "right", showCloseButton: o = !0, style: s, ...c }) {
721
+ let l = i();
722
+ return /* @__PURE__ */ k(Ye, { children: [/* @__PURE__ */ O(Xe, {}), /* @__PURE__ */ k(I.Content, {
723
+ "data-slot": "sheet-content",
724
+ "data-side": a,
725
+ style: {
726
+ ...l.style,
727
+ ...s
728
+ },
729
+ className: e(l.className, "fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10", t),
730
+ ...c,
731
+ children: [n, o && /* @__PURE__ */ O(I.Close, {
732
+ "data-slot": "sheet-close",
733
+ asChild: !0,
734
+ children: /* @__PURE__ */ k(r, {
735
+ variant: "ghost",
736
+ className: "absolute top-4 right-4",
737
+ size: "icon-sm",
738
+ children: [/* @__PURE__ */ O(w, {}), /* @__PURE__ */ O("span", {
739
+ className: "sr-only",
740
+ children: "Close"
741
+ })]
742
+ })
743
+ })]
744
+ })] });
745
+ }
746
+ function Qe({ className: t, ...n }) {
747
+ return /* @__PURE__ */ O("div", {
748
+ "data-slot": "sheet-header",
749
+ className: e("flex flex-col gap-1.5 p-4", t),
750
+ ...n
751
+ });
752
+ }
753
+ function $e({ className: t, ...n }) {
754
+ return /* @__PURE__ */ O("div", {
755
+ "data-slot": "sheet-footer",
756
+ className: e("mt-auto flex flex-col gap-2 p-4", t),
757
+ ...n
758
+ });
759
+ }
760
+ function et({ className: t, ...n }) {
761
+ return /* @__PURE__ */ O(I.Title, {
762
+ "data-slot": "sheet-title",
763
+ className: e("font-heading font-medium text-foreground", t),
764
+ ...n
765
+ });
766
+ }
767
+ function tt({ className: t, ...n }) {
768
+ return /* @__PURE__ */ O(I.Description, {
769
+ "data-slot": "sheet-description",
770
+ className: e("text-sm text-muted-foreground", t),
771
+ ...n
772
+ });
773
+ }
774
+ var nt = null;
775
+ function rt(e) {
776
+ nt?.(e);
777
+ }
778
+ function it({ children: e }) {
779
+ let [t, n] = T.useState(null);
780
+ T.useLayoutEffect(() => (nt = (e) => n(e), () => {
781
+ nt = null;
782
+ }), []);
783
+ let r = T.useCallback((e) => {
784
+ e || n((e) => (e && e.onClose?.(), null));
785
+ }, []);
786
+ return /* @__PURE__ */ k(D, { children: [e, t ? /* @__PURE__ */ O(Ke, {
787
+ open: !0,
788
+ onOpenChange: r,
789
+ children: /* @__PURE__ */ k(Ze, {
790
+ side: t.side ?? "right",
791
+ showCloseButton: t.showCloseButton ?? !0,
792
+ children: [/* @__PURE__ */ k(Qe, { children: [/* @__PURE__ */ O(et, { children: t.title }), t.description && /* @__PURE__ */ O(tt, { children: t.description })] }), t.children]
793
+ })
794
+ }) : null] });
795
+ }
796
+ //#endregion
797
+ //#region src/components/ui/slider.tsx
798
+ function at({ className: t, defaultValue: n, value: r, min: i = 0, max: a = 100, ...o }) {
799
+ let s = T.useMemo(() => Array.isArray(r) ? r : Array.isArray(n) ? n : [i, a], [
800
+ r,
801
+ n,
802
+ i,
803
+ a
804
+ ]);
805
+ return /* @__PURE__ */ k(W.Root, {
806
+ "data-slot": "slider",
807
+ defaultValue: n,
808
+ value: r,
809
+ min: i,
810
+ max: a,
811
+ className: e("relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col", t),
812
+ ...o,
813
+ children: [/* @__PURE__ */ O(W.Track, {
814
+ "data-slot": "slider-track",
815
+ className: "relative grow overflow-hidden rounded-full bg-muted data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1",
816
+ children: /* @__PURE__ */ O(W.Range, {
817
+ "data-slot": "slider-range",
818
+ className: "absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full"
819
+ })
820
+ }), Array.from({ length: s.length }, (e, t) => /* @__PURE__ */ O(W.Thumb, {
821
+ "data-slot": "slider-thumb",
822
+ className: "relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"
823
+ }, t))]
824
+ });
825
+ }
826
+ var ot = "Apply", st = "Cancel", ct = null;
827
+ function lt(e) {
828
+ ct?.(e);
829
+ }
830
+ function ut({ children: e }) {
831
+ let [t, n] = T.useState(null), [i, a] = T.useState([0]), o = T.useRef(!1);
832
+ T.useLayoutEffect(() => (ct = (e) => {
833
+ o.current = !1;
834
+ let t = e.min ?? 0, r = e.max ?? 100, i = [Math.floor((t + r) / 2)];
835
+ a(e.defaultValue?.length ? e.defaultValue : i), n(e);
836
+ }, () => {
837
+ ct = null;
838
+ }), []);
839
+ let s = T.useCallback((e) => {
840
+ if (!e) {
841
+ if (o.current) {
842
+ o.current = !1, n(null);
843
+ return;
844
+ }
845
+ n((e) => (e && e.onCancel?.(), null));
846
+ }
847
+ }, []), l = T.useCallback(async () => {
848
+ o.current = !0;
849
+ let e = t;
850
+ if (!e) {
851
+ o.current = !1;
852
+ return;
853
+ }
854
+ try {
855
+ await Promise.resolve(e.onConfirm(i));
856
+ } finally {
857
+ n(null);
858
+ }
859
+ }, [t, i]), u = t?.min ?? 0, m = t?.max ?? 100, _ = t?.step;
860
+ return /* @__PURE__ */ k(D, { children: [e, t ? /* @__PURE__ */ O(d, {
861
+ open: !0,
862
+ onOpenChange: s,
863
+ children: /* @__PURE__ */ k(h, { children: [
864
+ /* @__PURE__ */ k(c, { children: [/* @__PURE__ */ O(v, { children: t.title }), /* @__PURE__ */ O(p, {
865
+ className: t.description ? void 0 : "sr-only",
866
+ children: t.description ?? t.title
867
+ })] }),
868
+ /* @__PURE__ */ O("div", {
869
+ className: "px-1 py-2",
870
+ children: /* @__PURE__ */ O(at, {
871
+ min: u,
872
+ max: m,
873
+ step: _,
874
+ value: i,
875
+ onValueChange: a
876
+ })
877
+ }),
878
+ /* @__PURE__ */ k(f, {
879
+ className: "sm:justify-end",
880
+ children: [/* @__PURE__ */ O(g, {
881
+ asChild: !0,
882
+ children: /* @__PURE__ */ O(r, {
883
+ type: "button",
884
+ variant: "outline",
885
+ children: t.cancelText ?? st
886
+ })
887
+ }), /* @__PURE__ */ O(r, {
888
+ type: "button",
889
+ onClick: () => void l(),
890
+ children: t.confirmText ?? ot
891
+ })]
892
+ })
893
+ ] })
894
+ }) : null] });
895
+ }
896
+ //#endregion
897
+ //#region src/components/ui/shadcn/shadcn-tooltip.tsx
898
+ function dt({ delayDuration: e = 0, ...t }) {
899
+ return /* @__PURE__ */ O(q.Provider, {
900
+ "data-slot": "tooltip-provider",
901
+ delayDuration: e,
902
+ ...t
903
+ });
904
+ }
905
+ function ft({ ...e }) {
906
+ return /* @__PURE__ */ O(q.Root, {
907
+ "data-slot": "tooltip",
908
+ ...e
909
+ });
910
+ }
911
+ function pt({ ...e }) {
912
+ return /* @__PURE__ */ O(q.Trigger, {
913
+ "data-slot": "tooltip-trigger",
914
+ ...e
915
+ });
916
+ }
917
+ function mt({ className: t, arrowClassName: n, sideOffset: r = 0, children: a, hideArrow: o = !1, style: s, ...c }) {
918
+ let l = i();
919
+ return /* @__PURE__ */ O(q.Portal, { children: /* @__PURE__ */ k(q.Content, {
920
+ "data-slot": "tooltip-content",
921
+ sideOffset: r,
922
+ style: {
923
+ ...l.style,
924
+ ...s
925
+ },
926
+ className: e(l.className, "z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 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 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
927
+ ...c,
928
+ children: [a, /* @__PURE__ */ O(q.Arrow, { className: e("z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground", n, o && "invisible") })]
929
+ }) });
930
+ }
931
+ //#endregion
932
+ //#region src/components/ui/tooltip.tsx
933
+ var ht = ({ children: e, content: t, side: n = "top", align: r = "center", hidden: i = !1, hideArrow: a = !1, className: o = "", arrowClassName: s = "" }) => /* @__PURE__ */ k(ft, { children: [/* @__PURE__ */ O(pt, {
934
+ asChild: !0,
935
+ children: e
936
+ }), /* @__PURE__ */ O(gt, {
937
+ className: o,
938
+ side: n,
939
+ align: r,
940
+ hidden: i,
941
+ hideArrow: a,
942
+ arrowClassName: s,
943
+ children: t
944
+ })] }), gt = mt, _t = T.createContext("a"), vt = _t.Provider;
945
+ function X() {
946
+ return T.useContext(_t);
947
+ }
948
+ //#endregion
949
+ //#region src/components/opsfuse-theme-provider.tsx
950
+ function yt(e) {
951
+ T.useEffect(() => {
952
+ let t = e.current;
953
+ if (!t || typeof document > "u") return;
954
+ let n = () => t.classList.toggle("dark", s());
955
+ n();
956
+ let r = new MutationObserver(n);
957
+ return r.observe(document.documentElement, {
958
+ attributes: !0,
959
+ attributeFilter: [
960
+ "class",
961
+ "data-theme",
962
+ "data-mode",
963
+ "data-color-mode"
964
+ ]
965
+ }), r.observe(document.body, {
966
+ attributes: !0,
967
+ attributeFilter: ["class"]
968
+ }), () => r.disconnect();
969
+ }, [e]);
970
+ }
971
+ function bt({ theme: r = n, linkComponent: i = "a", className: s, style: c, children: u, ...d }) {
972
+ let f = T.useRef(null);
973
+ return yt(f), /* @__PURE__ */ O("div", {
974
+ ref: f,
975
+ className: e(a, `brand-${r}`, s),
976
+ "data-brand-theme": r,
977
+ style: {
978
+ ...t,
979
+ ...c
980
+ },
981
+ ...d,
982
+ children: /* @__PURE__ */ O(vt, {
983
+ value: i,
984
+ children: /* @__PURE__ */ O(o, {
985
+ theme: r,
986
+ children: /* @__PURE__ */ O(Ge, { children: /* @__PURE__ */ O(dt, { children: /* @__PURE__ */ O(Oe, { children: /* @__PURE__ */ O(l, { children: /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(it, { children: /* @__PURE__ */ O(ut, { children: u }) }), /* @__PURE__ */ O(_, {})] }) }) }) }) })
987
+ })
988
+ })
989
+ });
990
+ }
991
+ //#endregion
992
+ //#region src/components/opsfuse-root.tsx
993
+ function xt({ theme: e = n, className: t, ...r }) {
994
+ return /* @__PURE__ */ O(bt, {
995
+ theme: e,
996
+ className: t,
997
+ ...r
998
+ });
999
+ }
1000
+ //#endregion
1001
+ //#region src/hooks/use-mobile.ts
1002
+ var St = "(max-width: 767px)", Ct;
1003
+ function wt() {
1004
+ return Ct ??= window.matchMedia(St);
1005
+ }
1006
+ function Tt(e) {
1007
+ let t = wt();
1008
+ return t.addEventListener("change", e), () => t.removeEventListener("change", e);
1009
+ }
1010
+ function Et() {
1011
+ return T.useSyncExternalStore(Tt, () => wt().matches, () => !1);
1012
+ }
1013
+ //#endregion
1014
+ //#region src/components/ui/shadcn/shadcn-accordion.tsx
1015
+ function Dt({ className: t, ...n }) {
1016
+ return /* @__PURE__ */ O(j.Root, {
1017
+ "data-slot": "accordion",
1018
+ className: e("flex w-full flex-col", t),
1019
+ ...n
1020
+ });
1021
+ }
1022
+ function Ot({ className: t, ...n }) {
1023
+ return /* @__PURE__ */ O(j.Item, {
1024
+ "data-slot": "accordion-item",
1025
+ className: e("not-last:border-b", t),
1026
+ ...n
1027
+ });
1028
+ }
1029
+ function kt({ className: t, children: n, ...r }) {
1030
+ return /* @__PURE__ */ O(j.Header, {
1031
+ className: "flex",
1032
+ children: /* @__PURE__ */ k(j.Trigger, {
1033
+ "data-slot": "accordion-trigger",
1034
+ className: e("group/accordion-trigger relative flex flex-1 items-start justify-between rounded-md border border-transparent py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground", t),
1035
+ ...r,
1036
+ children: [
1037
+ n,
1038
+ /* @__PURE__ */ O(b, {
1039
+ "data-slot": "accordion-trigger-icon",
1040
+ className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
1041
+ }),
1042
+ /* @__PURE__ */ O(ee, {
1043
+ "data-slot": "accordion-trigger-icon",
1044
+ className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
1045
+ })
1046
+ ]
1047
+ })
1048
+ });
1049
+ }
1050
+ function At({ className: t, children: n, ...r }) {
1051
+ return /* @__PURE__ */ O(j.Content, {
1052
+ "data-slot": "accordion-content",
1053
+ className: "overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up",
1054
+ ...r,
1055
+ children: /* @__PURE__ */ O("div", {
1056
+ className: e("h-(--radix-accordion-content-height) pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", t),
1057
+ children: n
1058
+ })
1059
+ });
1060
+ }
1061
+ //#endregion
1062
+ //#region src/components/ui/aspect-ratio.tsx
1063
+ function jt({ ...e }) {
1064
+ return /* @__PURE__ */ O(ae.Root, {
1065
+ "data-slot": "aspect-ratio",
1066
+ ...e
1067
+ });
1068
+ }
1069
+ //#endregion
1070
+ //#region src/components/ui/shadcn/shadcn-avatar.tsx
1071
+ var Mt = A("group/avatar relative flex shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten", {
1072
+ variants: { size: {
1073
+ sm: "size-6",
1074
+ default: "size-8",
1075
+ lg: "size-10",
1076
+ xl: "size-16",
1077
+ "2xl": "size-24"
1078
+ } },
1079
+ defaultVariants: { size: "default" }
1080
+ });
1081
+ function Nt({ className: t, size: n = "default", ...r }) {
1082
+ return /* @__PURE__ */ O(N.Root, {
1083
+ "data-slot": "avatar",
1084
+ "data-size": n,
1085
+ className: e(Mt({ size: n }), t),
1086
+ ...r
1087
+ });
1088
+ }
1089
+ function Pt({ className: t, ...n }) {
1090
+ return /* @__PURE__ */ O(N.Image, {
1091
+ "data-slot": "avatar-image",
1092
+ className: e("aspect-square size-full rounded-full object-cover", t),
1093
+ ...n
1094
+ });
1095
+ }
1096
+ function Ft({ className: t, ...n }) {
1097
+ return /* @__PURE__ */ O(N.Fallback, {
1098
+ "data-slot": "avatar-fallback",
1099
+ className: e("flex size-full items-center justify-center rounded-full bg-muted text-muted-foreground group-data-[size=sm]/avatar:text-xs group-data-[size=default]/avatar:text-sm group-data-[size=lg]/avatar:text-sm group-data-[size=xl]/avatar:text-lg group-data-[size=2xl]/avatar:text-xl", t),
1100
+ ...n
1101
+ });
1102
+ }
1103
+ //#endregion
1104
+ //#region src/components/ui/avatar.tsx
1105
+ var It = ({ src: e, alt: t, fallback: n, size: r = "default" }) => /* @__PURE__ */ k(Nt, {
1106
+ size: r,
1107
+ children: [e && /* @__PURE__ */ O(Pt, {
1108
+ src: e,
1109
+ alt: t
1110
+ }), n && /* @__PURE__ */ O(Ft, { children: n })]
1111
+ }), Lt = A("group/badge inline-flex h-6 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
1112
+ variants: { variant: {
1113
+ default: "bg-primary text-primary-foreground hover:bg-primary/80",
1114
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
1115
+ destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 hover:bg-destructive/20",
1116
+ outline: "border-border text-foreground hover:bg-muted hover:text-muted-foreground",
1117
+ ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
1118
+ link: "text-primary underline-offset-4 hover:underline",
1119
+ accent: "h-auto min-h-6 gap-1 rounded-full border border-[var(--border-strong)] bg-accent px-[9px] py-0.5 text-xs font-medium tracking-wide text-[var(--subtle-foreground)] hover:bg-accent/90",
1120
+ primaryMuted: "h-auto min-h-6 gap-1 rounded-full border border-[var(--primary-border)] bg-[var(--primary-muted)] px-[9px] py-0.5 text-xs font-medium tracking-wide text-[var(--primary-muted-foreground)] hover:bg-[var(--primary-muted-hover)]",
1121
+ ai: "h-auto min-h-6 gap-1 rounded-full border border-[var(--ai-border)] bg-[var(--ai-muted)] px-[9px] py-0.5 text-xs font-medium tracking-wide text-[var(--ai-muted-foreground)] hover:bg-[var(--ai-muted-hover)]",
1122
+ success: "h-auto min-h-6 gap-1 rounded-full border border-[var(--success-border)] bg-[var(--success-muted)] px-[9px] py-0.5 text-xs font-medium tracking-wide text-[var(--success-muted-foreground)]",
1123
+ warning: "h-auto min-h-6 gap-1 rounded-full border border-[var(--warning-border)] bg-[var(--warning-muted)] px-[9px] py-0.5 text-xs font-medium tracking-wide text-[var(--warning-muted-foreground)]",
1124
+ danger: "h-auto min-h-6 gap-1 rounded-full border border-[var(--destructive-border)] bg-[var(--destructive-muted)] px-[9px] py-0.5 text-xs font-medium tracking-wide text-[var(--destructive-muted-foreground)]",
1125
+ aiLive: ""
1126
+ } },
1127
+ defaultVariants: { variant: "default" }
1128
+ });
1129
+ function Rt({ className: t, variant: n = "default", asChild: r = !1, ...i }) {
1130
+ let a = r ? G.Root : "span";
1131
+ return /* @__PURE__ */ O(a, {
1132
+ "data-slot": "badge",
1133
+ "data-variant": n,
1134
+ className: e(n === "aiLive" ? "badge-ai" : Lt({ variant: n }), t),
1135
+ ...i
1136
+ });
1137
+ }
1138
+ //#endregion
1139
+ //#region src/components/ui/breadcrumb.tsx
1140
+ function zt({ className: t, ...n }) {
1141
+ return /* @__PURE__ */ O("nav", {
1142
+ "aria-label": "breadcrumb",
1143
+ "data-slot": "breadcrumb",
1144
+ className: e(t),
1145
+ ...n
1146
+ });
1147
+ }
1148
+ function Bt({ className: t, ...n }) {
1149
+ return /* @__PURE__ */ O("ol", {
1150
+ "data-slot": "breadcrumb-list",
1151
+ className: e("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5", t),
1152
+ ...n
1153
+ });
1154
+ }
1155
+ function Vt({ className: t, ...n }) {
1156
+ return /* @__PURE__ */ O("li", {
1157
+ "data-slot": "breadcrumb-item",
1158
+ className: e("inline-flex items-center gap-1.5", t),
1159
+ ...n
1160
+ });
1161
+ }
1162
+ function Ht({ asChild: t, className: n, ...r }) {
1163
+ let i = X(), a = t ? G.Root : i;
1164
+ return T.createElement(a, {
1165
+ "data-slot": "breadcrumb-link",
1166
+ className: e("transition-colors hover:text-foreground", n),
1167
+ ...r
1168
+ });
1169
+ }
1170
+ function Ut({ className: t, ...n }) {
1171
+ return /* @__PURE__ */ O("span", {
1172
+ "data-slot": "breadcrumb-page",
1173
+ role: "link",
1174
+ "aria-disabled": "true",
1175
+ "aria-current": "page",
1176
+ className: e("font-normal text-foreground", t),
1177
+ ...n
1178
+ });
1179
+ }
1180
+ function Wt({ children: t, className: n, ...r }) {
1181
+ return /* @__PURE__ */ O("li", {
1182
+ "data-slot": "breadcrumb-separator",
1183
+ role: "presentation",
1184
+ "aria-hidden": "true",
1185
+ className: e("[&>svg]:size-3.5", n),
1186
+ ...r,
1187
+ children: t ?? /* @__PURE__ */ O(S, {})
1188
+ });
1189
+ }
1190
+ function Gt({ className: t, ...n }) {
1191
+ return /* @__PURE__ */ k("span", {
1192
+ "data-slot": "breadcrumb-ellipsis",
1193
+ role: "presentation",
1194
+ "aria-hidden": "true",
1195
+ className: e("flex size-5 items-center justify-center [&>svg]:size-4", t),
1196
+ ...n,
1197
+ children: [/* @__PURE__ */ O(te, {}), /* @__PURE__ */ O("span", {
1198
+ className: "sr-only",
1199
+ children: "More"
1200
+ })]
1201
+ });
1202
+ }
1203
+ //#endregion
1204
+ //#region src/components/ui/separator.tsx
1205
+ function Z({ className: t, orientation: n = "horizontal", decorative: r = !0, ...i }) {
1206
+ return /* @__PURE__ */ O(ue.Root, {
1207
+ "data-slot": "separator",
1208
+ decorative: r,
1209
+ orientation: n,
1210
+ className: e("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", t),
1211
+ ...i
1212
+ });
1213
+ }
1214
+ //#endregion
1215
+ //#region src/components/ui/button-group.tsx
1216
+ var Kt = A("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
1217
+ variants: { orientation: {
1218
+ horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!",
1219
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!"
1220
+ } },
1221
+ defaultVariants: { orientation: "horizontal" }
1222
+ });
1223
+ function qt({ className: t, orientation: n, ...r }) {
1224
+ return /* @__PURE__ */ O("div", {
1225
+ role: "group",
1226
+ "data-slot": "button-group",
1227
+ "data-orientation": n,
1228
+ className: e(Kt({ orientation: n }), t),
1229
+ ...r
1230
+ });
1231
+ }
1232
+ function Jt({ className: t, asChild: n = !1, ...r }) {
1233
+ let i = n ? G.Root : "div";
1234
+ return /* @__PURE__ */ O(i, {
1235
+ className: e("flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", t),
1236
+ ...r
1237
+ });
1238
+ }
1239
+ function Yt({ className: t, orientation: n = "vertical", ...r }) {
1240
+ return /* @__PURE__ */ O(Z, {
1241
+ "data-slot": "button-group-separator",
1242
+ orientation: n,
1243
+ className: e("relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", t),
1244
+ ...r
1245
+ });
1246
+ }
1247
+ //#endregion
1248
+ //#region src/components/ui/card.tsx
1249
+ function Xt({ className: t, size: n = "default", variant: r = "default", ...i }) {
1250
+ return /* @__PURE__ */ O("div", {
1251
+ "data-slot": "card",
1252
+ "data-size": n,
1253
+ "data-variant": r,
1254
+ className: e("group/card flex flex-col gap-6 overflow-hidden py-6 text-sm text-card-foreground has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", r === "default" && "rounded-xl bg-card shadow-xs ring-1 ring-foreground/10", (r === "surface" || r === "interactive") && "card-base rounded-lg bg-card text-card-foreground", r === "interactive" && "card-interactive", t),
1255
+ ...i
1256
+ });
1257
+ }
1258
+ function Zt({ className: t, ...n }) {
1259
+ return /* @__PURE__ */ O("div", {
1260
+ "data-slot": "card-header",
1261
+ className: e("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4", t),
1262
+ ...n
1263
+ });
1264
+ }
1265
+ function Qt({ className: t, ...n }) {
1266
+ return /* @__PURE__ */ O("div", {
1267
+ "data-slot": "card-title",
1268
+ className: e("font-heading text-base leading-normal font-semibold group-data-[size=sm]/card:text-sm", t),
1269
+ ...n
1270
+ });
1271
+ }
1272
+ function $t({ className: t, ...n }) {
1273
+ return /* @__PURE__ */ O("div", {
1274
+ "data-slot": "card-description",
1275
+ className: e("text-sm text-muted-foreground", t),
1276
+ ...n
1277
+ });
1278
+ }
1279
+ function en({ className: t, ...n }) {
1280
+ return /* @__PURE__ */ O("div", {
1281
+ "data-slot": "card-action",
1282
+ className: e("col-start-2 row-span-2 row-start-1 self-start justify-self-end", t),
1283
+ ...n
1284
+ });
1285
+ }
1286
+ function tn({ className: t, ...n }) {
1287
+ return /* @__PURE__ */ O("div", {
1288
+ "data-slot": "card-content",
1289
+ className: e("px-6 group-data-[size=sm]/card:px-4", t),
1290
+ ...n
1291
+ });
1292
+ }
1293
+ function nn({ className: t, ...n }) {
1294
+ return /* @__PURE__ */ O("div", {
1295
+ "data-slot": "card-footer",
1296
+ className: e("flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4", t),
1297
+ ...n
1298
+ });
1299
+ }
1300
+ //#endregion
1301
+ //#region src/components/ui/checkbox.tsx
1302
+ function rn({ className: t, label: n, helperText: r, error: i = !1, id: a, ...o }) {
1303
+ return /* @__PURE__ */ k("div", {
1304
+ className: "flex flex-col gap-1",
1305
+ children: [/* @__PURE__ */ k("div", {
1306
+ className: "flex items-center gap-2",
1307
+ children: [/* @__PURE__ */ O(oe.Root, {
1308
+ id: a,
1309
+ "data-slot": "checkbox",
1310
+ className: e("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", t),
1311
+ ...o,
1312
+ children: /* @__PURE__ */ O(oe.Indicator, {
1313
+ "data-slot": "checkbox-indicator",
1314
+ className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
1315
+ children: /* @__PURE__ */ O(y, {})
1316
+ })
1317
+ }), n && /* @__PURE__ */ O(m, {
1318
+ htmlFor: a,
1319
+ className: "font-normal cursor-pointer",
1320
+ children: n
1321
+ })]
1322
+ }), r && /* @__PURE__ */ O("p", {
1323
+ className: `text-caption pl-6 ${i ? "text-destructive" : "text-muted-foreground"}`,
1324
+ children: r
1325
+ })]
1326
+ });
1327
+ }
1328
+ //#endregion
1329
+ //#region src/components/ui/collapsible.tsx
1330
+ function an({ ...e }) {
1331
+ return /* @__PURE__ */ O(P.Root, {
1332
+ "data-slot": "collapsible",
1333
+ ...e
1334
+ });
1335
+ }
1336
+ function on({ ...e }) {
1337
+ return /* @__PURE__ */ O(P.CollapsibleTrigger, {
1338
+ "data-slot": "collapsible-trigger",
1339
+ ...e
1340
+ });
1341
+ }
1342
+ function sn({ ...e }) {
1343
+ return /* @__PURE__ */ O(P.CollapsibleContent, {
1344
+ "data-slot": "collapsible-content",
1345
+ ...e
1346
+ });
1347
+ }
1348
+ //#endregion
1349
+ //#region src/components/ui/context-menu.tsx
1350
+ function cn({ ...e }) {
1351
+ return /* @__PURE__ */ O(F.Root, {
1352
+ "data-slot": "context-menu",
1353
+ ...e
1354
+ });
1355
+ }
1356
+ function ln({ className: t, ...n }) {
1357
+ return /* @__PURE__ */ O(F.Trigger, {
1358
+ "data-slot": "context-menu-trigger",
1359
+ className: e("select-none", t),
1360
+ ...n
1361
+ });
1362
+ }
1363
+ function un({ ...e }) {
1364
+ return /* @__PURE__ */ O(F.Group, {
1365
+ "data-slot": "context-menu-group",
1366
+ ...e
1367
+ });
1368
+ }
1369
+ function dn({ ...e }) {
1370
+ return /* @__PURE__ */ O(F.Portal, {
1371
+ "data-slot": "context-menu-portal",
1372
+ ...e
1373
+ });
1374
+ }
1375
+ function fn({ ...e }) {
1376
+ return /* @__PURE__ */ O(F.Sub, {
1377
+ "data-slot": "context-menu-sub",
1378
+ ...e
1379
+ });
1380
+ }
1381
+ function pn({ ...e }) {
1382
+ return /* @__PURE__ */ O(F.RadioGroup, {
1383
+ "data-slot": "context-menu-radio-group",
1384
+ ...e
1385
+ });
1386
+ }
1387
+ function mn({ className: t, style: n, ...r }) {
1388
+ let a = i();
1389
+ return /* @__PURE__ */ O(F.Portal, { children: /* @__PURE__ */ O(F.Content, {
1390
+ "data-slot": "context-menu-content",
1391
+ style: {
1392
+ ...a.style,
1393
+ ...n
1394
+ },
1395
+ className: e(a.className, "z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
1396
+ ...r
1397
+ }) });
1398
+ }
1399
+ function hn({ className: t, inset: n, variant: r = "default", ...i }) {
1400
+ return /* @__PURE__ */ O(F.Item, {
1401
+ "data-slot": "context-menu-item",
1402
+ "data-inset": n,
1403
+ "data-variant": r,
1404
+ className: e("group/context-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive", t),
1405
+ ...i
1406
+ });
1407
+ }
1408
+ function gn({ className: t, inset: n, children: r, ...i }) {
1409
+ return /* @__PURE__ */ k(F.SubTrigger, {
1410
+ "data-slot": "context-menu-sub-trigger",
1411
+ "data-inset": n,
1412
+ className: e("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
1413
+ ...i,
1414
+ children: [r, /* @__PURE__ */ O(S, { className: "ml-auto" })]
1415
+ });
1416
+ }
1417
+ function _n({ className: t, style: n, ...r }) {
1418
+ let a = i();
1419
+ return /* @__PURE__ */ O(F.SubContent, {
1420
+ "data-slot": "context-menu-sub-content",
1421
+ style: {
1422
+ ...a.style,
1423
+ ...n
1424
+ },
1425
+ className: e(a.className, "z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
1426
+ ...r
1427
+ });
1428
+ }
1429
+ function vn({ className: t, children: n, checked: r, inset: i, ...a }) {
1430
+ return /* @__PURE__ */ k(F.CheckboxItem, {
1431
+ "data-slot": "context-menu-checkbox-item",
1432
+ "data-inset": i,
1433
+ className: e("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
1434
+ checked: r,
1435
+ ...a,
1436
+ children: [/* @__PURE__ */ O("span", {
1437
+ className: "pointer-events-none absolute right-2",
1438
+ children: /* @__PURE__ */ O(F.ItemIndicator, { children: /* @__PURE__ */ O(y, {}) })
1439
+ }), n]
1440
+ });
1441
+ }
1442
+ function yn({ className: t, children: n, inset: r, ...i }) {
1443
+ return /* @__PURE__ */ k(F.RadioItem, {
1444
+ "data-slot": "context-menu-radio-item",
1445
+ "data-inset": r,
1446
+ className: e("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
1447
+ ...i,
1448
+ children: [/* @__PURE__ */ O("span", {
1449
+ className: "pointer-events-none absolute right-2",
1450
+ children: /* @__PURE__ */ O(F.ItemIndicator, { children: /* @__PURE__ */ O(y, {}) })
1451
+ }), n]
1452
+ });
1453
+ }
1454
+ function bn({ className: t, inset: n, ...r }) {
1455
+ return /* @__PURE__ */ O(F.Label, {
1456
+ "data-slot": "context-menu-label",
1457
+ "data-inset": n,
1458
+ className: e("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8", t),
1459
+ ...r
1460
+ });
1461
+ }
1462
+ function xn({ className: t, ...n }) {
1463
+ return /* @__PURE__ */ O(F.Separator, {
1464
+ "data-slot": "context-menu-separator",
1465
+ className: e("-mx-1 my-1 h-px bg-border", t),
1466
+ ...n
1467
+ });
1468
+ }
1469
+ function Sn({ className: t, ...n }) {
1470
+ return /* @__PURE__ */ O("span", {
1471
+ "data-slot": "context-menu-shortcut",
1472
+ className: e("ml-auto text-xs tracking-widest text-muted-foreground group-focus/context-menu-item:text-accent-foreground", t),
1473
+ ...n
1474
+ });
1475
+ }
1476
+ //#endregion
1477
+ //#region src/components/ui/direction.tsx
1478
+ function Cn({ dir: e, direction: t, children: n }) {
1479
+ return /* @__PURE__ */ O(se.DirectionProvider, {
1480
+ dir: t ?? e,
1481
+ children: n
1482
+ });
1483
+ }
1484
+ var wn = se.useDirection;
1485
+ //#endregion
1486
+ //#region src/components/ui/shadcn/shadcn-dropdown-menu.tsx
1487
+ function Tn({ ...e }) {
1488
+ return /* @__PURE__ */ O(L.Root, {
1489
+ "data-slot": "dropdown-menu",
1490
+ ...e
1491
+ });
1492
+ }
1493
+ function En({ ...e }) {
1494
+ return /* @__PURE__ */ O(L.Trigger, {
1495
+ "data-slot": "dropdown-menu-trigger",
1496
+ ...e
1497
+ });
1498
+ }
1499
+ function Dn({ className: t, align: n = "start", sideOffset: r = 4, style: a, ...o }) {
1500
+ let s = i();
1501
+ return /* @__PURE__ */ O(L.Portal, { children: /* @__PURE__ */ O(L.Content, {
1502
+ "data-slot": "dropdown-menu-content",
1503
+ sideOffset: r,
1504
+ align: n,
1505
+ style: {
1506
+ ...s.style,
1507
+ ...a
1508
+ },
1509
+ className: e(s.className, "z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
1510
+ ...o
1511
+ }) });
1512
+ }
1513
+ function On({ ...e }) {
1514
+ return /* @__PURE__ */ O(L.Group, {
1515
+ "data-slot": "dropdown-menu-group",
1516
+ ...e
1517
+ });
1518
+ }
1519
+ function kn({ className: t, inset: n, variant: r = "default", ...i }) {
1520
+ return /* @__PURE__ */ O(L.Item, {
1521
+ "data-slot": "dropdown-menu-item",
1522
+ "data-inset": n,
1523
+ "data-variant": r,
1524
+ className: e("group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", t),
1525
+ ...i
1526
+ });
1527
+ }
1528
+ function An({ className: t, inset: n, ...r }) {
1529
+ return /* @__PURE__ */ O(L.Label, {
1530
+ "data-slot": "dropdown-menu-label",
1531
+ "data-inset": n,
1532
+ className: e("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8", t),
1533
+ ...r
1534
+ });
1535
+ }
1536
+ function jn({ className: t, ...n }) {
1537
+ return /* @__PURE__ */ O(L.Separator, {
1538
+ "data-slot": "dropdown-menu-separator",
1539
+ className: e("-mx-1 my-1 h-px bg-border", t),
1540
+ ...n
1541
+ });
1542
+ }
1543
+ function Mn({ className: t, ...n }) {
1544
+ return /* @__PURE__ */ O("span", {
1545
+ "data-slot": "dropdown-menu-shortcut",
1546
+ className: e("ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground", t),
1547
+ ...n
1548
+ });
1549
+ }
1550
+ //#endregion
1551
+ //#region src/components/ui/dropdown-menu.tsx
1552
+ var Nn = (t) => /* @__PURE__ */ k(Tn, { children: [/* @__PURE__ */ O(En, {
1553
+ asChild: !0,
1554
+ className: t.triggerClassName,
1555
+ children: t.trigger ? t.trigger : /* @__PURE__ */ k(r, {
1556
+ variant: t.triggerVariant,
1557
+ size: t.triggerSize,
1558
+ loading: t.triggerLoading,
1559
+ loadingText: t.triggerLoadingText,
1560
+ asChild: t.triggerAsChild,
1561
+ className: t.triggerClassName,
1562
+ children: [
1563
+ t.triggerIconPosition !== "right" && t.triggerIcon,
1564
+ t.triggerLabel,
1565
+ t.triggerIconPosition === "right" && t.triggerIcon
1566
+ ]
1567
+ })
1568
+ }), /* @__PURE__ */ k(Dn, {
1569
+ side: t.side,
1570
+ align: t.align,
1571
+ className: e("w-48", t.contentClassName),
1572
+ children: [t.label && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(An, { children: t.label }), /* @__PURE__ */ O(jn, {})] }), /* @__PURE__ */ O(On, { children: t.options.map((e) => /* @__PURE__ */ k(E.Fragment, { children: [e.separator && /* @__PURE__ */ O(jn, {}), /* @__PURE__ */ k(kn, {
1573
+ variant: e.variant,
1574
+ onClick: () => e.onClick?.(e.value),
1575
+ children: [
1576
+ e.icon,
1577
+ e.label,
1578
+ " ",
1579
+ /* @__PURE__ */ O(Mn, { children: e.shortcut })
1580
+ ]
1581
+ })] }, e.value)) })]
1582
+ })] });
1583
+ //#endregion
1584
+ //#region src/components/ui/shadcn/shadcn-empty.tsx
1585
+ function Pn({ className: t, ...n }) {
1586
+ return /* @__PURE__ */ O("div", {
1587
+ "data-slot": "empty",
1588
+ className: e("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance", t),
1589
+ ...n
1590
+ });
1591
+ }
1592
+ function Fn({ className: t, ...n }) {
1593
+ return /* @__PURE__ */ O("div", {
1594
+ "data-slot": "empty-header",
1595
+ className: e("flex max-w-sm flex-col items-center gap-2", t),
1596
+ ...n
1597
+ });
1598
+ }
1599
+ var In = A("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
1600
+ variants: { variant: {
1601
+ default: "bg-transparent",
1602
+ icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"
1603
+ } },
1604
+ defaultVariants: { variant: "default" }
1605
+ });
1606
+ function Ln({ className: t, variant: n = "default", ...r }) {
1607
+ return /* @__PURE__ */ O("div", {
1608
+ "data-slot": "empty-icon",
1609
+ "data-variant": n,
1610
+ className: e(In({
1611
+ variant: n,
1612
+ className: t
1613
+ })),
1614
+ ...r
1615
+ });
1616
+ }
1617
+ function Rn({ className: t, ...n }) {
1618
+ return /* @__PURE__ */ O("div", {
1619
+ "data-slot": "empty-title",
1620
+ className: e("font-heading text-sm font-medium tracking-tight", t),
1621
+ ...n
1622
+ });
1623
+ }
1624
+ function zn({ className: t, ...n }) {
1625
+ return /* @__PURE__ */ O("div", {
1626
+ "data-slot": "empty-description",
1627
+ className: e("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", t),
1628
+ ...n
1629
+ });
1630
+ }
1631
+ function Bn({ className: t, ...n }) {
1632
+ return /* @__PURE__ */ O("div", {
1633
+ "data-slot": "empty-content",
1634
+ className: e("flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance", t),
1635
+ ...n
1636
+ });
1637
+ }
1638
+ //#endregion
1639
+ //#region src/components/ui/empty.tsx
1640
+ var Vn = ({ title: t, description: n, actionLabel: i, onAction: a = () => {}, icon: o = null, children: s = null, className: c = "" }) => /* @__PURE__ */ k(Pn, {
1641
+ className: e("min-w-[500px]", c),
1642
+ children: [/* @__PURE__ */ k(Fn, { children: [
1643
+ !!o && /* @__PURE__ */ O(Ln, {
1644
+ variant: "icon",
1645
+ children: o
1646
+ }),
1647
+ /* @__PURE__ */ O(Rn, { children: t }),
1648
+ n && /* @__PURE__ */ O(zn, { children: n })
1649
+ ] }), /* @__PURE__ */ k(Bn, { children: [s, i && /* @__PURE__ */ O(r, {
1650
+ size: "sm",
1651
+ onClick: (e) => a && a(e),
1652
+ children: i
1653
+ })] })]
1654
+ });
1655
+ //#endregion
1656
+ //#region src/components/ui/field.tsx
1657
+ function Hn({ className: t, ...n }) {
1658
+ return /* @__PURE__ */ O("fieldset", {
1659
+ "data-slot": "field-set",
1660
+ className: e("flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", t),
1661
+ ...n
1662
+ });
1663
+ }
1664
+ function Un({ className: t, variant: n = "legend", ...r }) {
1665
+ return /* @__PURE__ */ O("legend", {
1666
+ "data-slot": "field-legend",
1667
+ "data-variant": n,
1668
+ className: e("mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", t),
1669
+ ...r
1670
+ });
1671
+ }
1672
+ function Wn({ className: t, ...n }) {
1673
+ return /* @__PURE__ */ O("div", {
1674
+ "data-slot": "field-group",
1675
+ className: e("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", t),
1676
+ ...n
1677
+ });
1678
+ }
1679
+ var Gn = A("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
1680
+ variants: { orientation: {
1681
+ vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
1682
+ horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
1683
+ responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
1684
+ } },
1685
+ defaultVariants: { orientation: "vertical" }
1686
+ });
1687
+ function Kn({ className: t, orientation: n = "vertical", ...r }) {
1688
+ return /* @__PURE__ */ O("div", {
1689
+ role: "group",
1690
+ "data-slot": "field",
1691
+ "data-orientation": n,
1692
+ className: e(Gn({ orientation: n }), t),
1693
+ ...r
1694
+ });
1695
+ }
1696
+ function qn({ className: t, ...n }) {
1697
+ return /* @__PURE__ */ O("div", {
1698
+ "data-slot": "field-content",
1699
+ className: e("group/field-content flex flex-1 flex-col gap-0.5 leading-snug", t),
1700
+ ...n
1701
+ });
1702
+ }
1703
+ function Jn({ className: t, ...n }) {
1704
+ return /* @__PURE__ */ O(m, {
1705
+ "data-slot": "field-label",
1706
+ className: e("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", t),
1707
+ ...n
1708
+ });
1709
+ }
1710
+ function Yn({ className: t, ...n }) {
1711
+ return /* @__PURE__ */ O("div", {
1712
+ "data-slot": "field-label",
1713
+ className: e("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50", t),
1714
+ ...n
1715
+ });
1716
+ }
1717
+ function Xn({ className: t, ...n }) {
1718
+ return /* @__PURE__ */ O("p", {
1719
+ "data-slot": "field-description",
1720
+ className: e("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", t),
1721
+ ...n
1722
+ });
1723
+ }
1724
+ function Zn({ children: t, className: n, ...r }) {
1725
+ return /* @__PURE__ */ k("div", {
1726
+ "data-slot": "field-separator",
1727
+ "data-content": !!t,
1728
+ className: e("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", n),
1729
+ ...r,
1730
+ children: [/* @__PURE__ */ O(Z, { className: "absolute inset-0 top-1/2" }), t && /* @__PURE__ */ O("span", {
1731
+ className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground",
1732
+ "data-slot": "field-separator-content",
1733
+ children: t
1734
+ })]
1735
+ });
1736
+ }
1737
+ function Qn({ className: t, children: n, errors: r, ...i }) {
1738
+ let a = ie(() => {
1739
+ if (n) return n;
1740
+ if (!r?.length) return null;
1741
+ let e = [...new Map(r.map((e) => [e?.message, e])).values()];
1742
+ return e?.length == 1 ? e[0]?.message : /* @__PURE__ */ O("ul", {
1743
+ className: "ml-4 flex list-disc flex-col gap-1",
1744
+ children: e.map((e, t) => e?.message && /* @__PURE__ */ O("li", { children: e.message }, t))
1745
+ });
1746
+ }, [n, r]);
1747
+ return a ? /* @__PURE__ */ O("div", {
1748
+ role: "alert",
1749
+ "data-slot": "field-error",
1750
+ className: e("text-sm font-normal text-destructive", t),
1751
+ ...i,
1752
+ children: a
1753
+ }) : null;
1754
+ }
1755
+ //#endregion
1756
+ //#region src/components/ui/hover-card.tsx
1757
+ function $n({ ...e }) {
1758
+ return /* @__PURE__ */ O(R.Root, {
1759
+ "data-slot": "hover-card",
1760
+ ...e
1761
+ });
1762
+ }
1763
+ function er({ ...e }) {
1764
+ return /* @__PURE__ */ O(R.Trigger, {
1765
+ "data-slot": "hover-card-trigger",
1766
+ ...e
1767
+ });
1768
+ }
1769
+ function tr({ className: t, align: n = "center", sideOffset: r = 4, style: a, ...o }) {
1770
+ let s = i();
1771
+ return /* @__PURE__ */ O(R.Portal, {
1772
+ "data-slot": "hover-card-portal",
1773
+ children: /* @__PURE__ */ O(R.Content, {
1774
+ "data-slot": "hover-card-content",
1775
+ align: n,
1776
+ sideOffset: r,
1777
+ style: {
1778
+ ...s.style,
1779
+ ...a
1780
+ },
1781
+ className: e(s.className, "z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-lg bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
1782
+ ...o
1783
+ })
1784
+ });
1785
+ }
1786
+ //#endregion
1787
+ //#region src/components/ui/Header.tsx
1788
+ function nr({ title: t, description: n, breadcrumb: r, rightContent: i, className: a, ...o }) {
1789
+ return /* @__PURE__ */ k("header", {
1790
+ "data-slot": "page-header",
1791
+ className: e("flex sticky top-0 z-10 bg-background flex-col gap-3 border-b border-border py-4", a),
1792
+ ...o,
1793
+ children: [r ? /* @__PURE__ */ O("div", {
1794
+ "data-slot": "page-header-breadcrumb",
1795
+ className: "min-w-0",
1796
+ children: r
1797
+ }) : null, /* @__PURE__ */ k("div", {
1798
+ "data-slot": "page-header-row",
1799
+ className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
1800
+ children: [/* @__PURE__ */ k("div", {
1801
+ "data-slot": "page-header-main",
1802
+ className: "min-w-0 flex flex-col gap-1",
1803
+ children: [/* @__PURE__ */ O("h2", {
1804
+ className: "font-heading font-bold tracking-tight text-foreground",
1805
+ children: t
1806
+ }), n ? /* @__PURE__ */ O("p", {
1807
+ className: "text-sm text-muted-foreground",
1808
+ children: n
1809
+ }) : null]
1810
+ }), i ? /* @__PURE__ */ O("div", {
1811
+ "data-slot": "page-header-actions",
1812
+ className: "flex shrink-0 flex-wrap items-center gap-3",
1813
+ children: i
1814
+ }) : null]
1815
+ })]
1816
+ });
1817
+ }
1818
+ //#endregion
1819
+ //#region src/components/ui/item.tsx
1820
+ function rr({ className: t, ...n }) {
1821
+ return /* @__PURE__ */ O("div", {
1822
+ role: "list",
1823
+ "data-slot": "item-group",
1824
+ className: e("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2", t),
1825
+ ...n
1826
+ });
1827
+ }
1828
+ function ir({ className: t, ...n }) {
1829
+ return /* @__PURE__ */ O(Z, {
1830
+ "data-slot": "item-separator",
1831
+ orientation: "horizontal",
1832
+ className: e("my-2", t),
1833
+ ...n
1834
+ });
1835
+ }
1836
+ var ar = A("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
1837
+ variants: {
1838
+ variant: {
1839
+ default: "border-transparent",
1840
+ outline: "border-border",
1841
+ muted: "border-transparent bg-muted/50"
1842
+ },
1843
+ size: {
1844
+ default: "gap-2.5 px-3 py-2.5",
1845
+ sm: "gap-2.5 px-3 py-2.5",
1846
+ xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"
1847
+ }
1848
+ },
1849
+ defaultVariants: {
1850
+ variant: "default",
1851
+ size: "default"
1852
+ }
1853
+ });
1854
+ function or({ className: t, variant: n = "default", size: r = "default", asChild: i = !1, ...a }) {
1855
+ let o = i ? G.Root : "div";
1856
+ return /* @__PURE__ */ O(o, {
1857
+ "data-slot": "item",
1858
+ "data-variant": n,
1859
+ "data-size": r,
1860
+ className: e(ar({
1861
+ variant: n,
1862
+ size: r,
1863
+ className: t
1864
+ })),
1865
+ ...a
1866
+ });
1867
+ }
1868
+ var sr = A("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
1869
+ variants: { variant: {
1870
+ default: "bg-transparent",
1871
+ icon: "[&_svg:not([class*='size-'])]:size-4",
1872
+ image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"
1873
+ } },
1874
+ defaultVariants: { variant: "default" }
1875
+ });
1876
+ function cr({ className: t, variant: n = "default", ...r }) {
1877
+ return /* @__PURE__ */ O("div", {
1878
+ "data-slot": "item-media",
1879
+ "data-variant": n,
1880
+ className: e(sr({
1881
+ variant: n,
1882
+ className: t
1883
+ })),
1884
+ ...r
1885
+ });
1886
+ }
1887
+ function lr({ className: t, ...n }) {
1888
+ return /* @__PURE__ */ O("div", {
1889
+ "data-slot": "item-content",
1890
+ className: e("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", t),
1891
+ ...n
1892
+ });
1893
+ }
1894
+ function ur({ className: t, ...n }) {
1895
+ return /* @__PURE__ */ O("div", {
1896
+ "data-slot": "item-title",
1897
+ className: e("font-heading line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", t),
1898
+ ...n
1899
+ });
1900
+ }
1901
+ function dr({ className: t, ...n }) {
1902
+ return /* @__PURE__ */ O("p", {
1903
+ "data-slot": "item-description",
1904
+ className: e("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", t),
1905
+ ...n
1906
+ });
1907
+ }
1908
+ function fr({ className: t, ...n }) {
1909
+ return /* @__PURE__ */ O("div", {
1910
+ "data-slot": "item-actions",
1911
+ className: e("flex items-center gap-2", t),
1912
+ ...n
1913
+ });
1914
+ }
1915
+ function pr({ className: t, ...n }) {
1916
+ return /* @__PURE__ */ O("div", {
1917
+ "data-slot": "item-header",
1918
+ className: e("flex basis-full items-center justify-between gap-2", t),
1919
+ ...n
1920
+ });
1921
+ }
1922
+ function mr({ className: t, ...n }) {
1923
+ return /* @__PURE__ */ O("div", {
1924
+ "data-slot": "item-footer",
1925
+ className: e("flex basis-full items-center justify-between gap-2", t),
1926
+ ...n
1927
+ });
1928
+ }
1929
+ //#endregion
1930
+ //#region src/components/ui/kbd.tsx
1931
+ function hr({ className: t, ...n }) {
1932
+ return /* @__PURE__ */ O("kbd", {
1933
+ "data-slot": "kbd",
1934
+ className: e("pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3", t),
1935
+ ...n
1936
+ });
1937
+ }
1938
+ function gr({ className: t, ...n }) {
1939
+ return /* @__PURE__ */ O("kbd", {
1940
+ "data-slot": "kbd-group",
1941
+ className: e("inline-flex items-center gap-1", t),
1942
+ ...n
1943
+ });
1944
+ }
1945
+ //#endregion
1946
+ //#region src/components/ui/menubar.tsx
1947
+ function _r({ className: t, ...n }) {
1948
+ return /* @__PURE__ */ O(z.Root, {
1949
+ "data-slot": "menubar",
1950
+ className: e("flex h-8 items-center gap-0.5 rounded-lg border p-[3px]", t),
1951
+ ...n
1952
+ });
1953
+ }
1954
+ function vr({ ...e }) {
1955
+ return /* @__PURE__ */ O(z.Menu, {
1956
+ "data-slot": "menubar-menu",
1957
+ ...e
1958
+ });
1959
+ }
1960
+ function yr({ ...e }) {
1961
+ return /* @__PURE__ */ O(z.Group, {
1962
+ "data-slot": "menubar-group",
1963
+ ...e
1964
+ });
1965
+ }
1966
+ function br({ ...e }) {
1967
+ return /* @__PURE__ */ O(z.Portal, {
1968
+ "data-slot": "menubar-portal",
1969
+ ...e
1970
+ });
1971
+ }
1972
+ function xr({ ...e }) {
1973
+ return /* @__PURE__ */ O(z.RadioGroup, {
1974
+ "data-slot": "menubar-radio-group",
1975
+ ...e
1976
+ });
1977
+ }
1978
+ function Sr({ className: t, ...n }) {
1979
+ return /* @__PURE__ */ O(z.Trigger, {
1980
+ "data-slot": "menubar-trigger",
1981
+ className: e("flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted", t),
1982
+ ...n
1983
+ });
1984
+ }
1985
+ function Cr({ className: t, align: n = "start", alignOffset: r = -4, sideOffset: a = 8, style: o, ...s }) {
1986
+ let c = i();
1987
+ return /* @__PURE__ */ O(br, { children: /* @__PURE__ */ O(z.Content, {
1988
+ "data-slot": "menubar-content",
1989
+ align: n,
1990
+ alignOffset: r,
1991
+ sideOffset: a,
1992
+ style: {
1993
+ ...c.style,
1994
+ ...o
1995
+ },
1996
+ className: e(c.className, "z-50 min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", t),
1997
+ ...s
1998
+ }) });
1999
+ }
2000
+ function wr({ className: t, inset: n, variant: r = "default", ...i }) {
2001
+ return /* @__PURE__ */ O(z.Item, {
2002
+ "data-slot": "menubar-item",
2003
+ "data-inset": n,
2004
+ "data-variant": r,
2005
+ className: e("group/menubar-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!", t),
2006
+ ...i
2007
+ });
2008
+ }
2009
+ function Tr({ className: t, children: n, checked: r, inset: i, ...a }) {
2010
+ return /* @__PURE__ */ k(z.CheckboxItem, {
2011
+ "data-slot": "menubar-checkbox-item",
2012
+ "data-inset": i,
2013
+ className: e("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0", t),
2014
+ checked: r,
2015
+ ...a,
2016
+ children: [/* @__PURE__ */ O("span", {
2017
+ className: "pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
2018
+ children: /* @__PURE__ */ O(z.ItemIndicator, { children: /* @__PURE__ */ O(y, {}) })
2019
+ }), n]
2020
+ });
2021
+ }
2022
+ function Er({ className: t, children: n, inset: r, ...i }) {
2023
+ return /* @__PURE__ */ k(z.RadioItem, {
2024
+ "data-slot": "menubar-radio-item",
2025
+ "data-inset": r,
2026
+ className: e("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
2027
+ ...i,
2028
+ children: [/* @__PURE__ */ O("span", {
2029
+ className: "pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
2030
+ children: /* @__PURE__ */ O(z.ItemIndicator, { children: /* @__PURE__ */ O(y, {}) })
2031
+ }), n]
2032
+ });
2033
+ }
2034
+ function Dr({ className: t, inset: n, ...r }) {
2035
+ return /* @__PURE__ */ O(z.Label, {
2036
+ "data-slot": "menubar-label",
2037
+ "data-inset": n,
2038
+ className: e("px-1.5 py-1 text-sm font-medium data-inset:pl-7", t),
2039
+ ...r
2040
+ });
2041
+ }
2042
+ function Or({ className: t, ...n }) {
2043
+ return /* @__PURE__ */ O(z.Separator, {
2044
+ "data-slot": "menubar-separator",
2045
+ className: e("-mx-1 my-1 h-px bg-border", t),
2046
+ ...n
2047
+ });
2048
+ }
2049
+ function kr({ className: t, ...n }) {
2050
+ return /* @__PURE__ */ O("span", {
2051
+ "data-slot": "menubar-shortcut",
2052
+ className: e("ml-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground", t),
2053
+ ...n
2054
+ });
2055
+ }
2056
+ function Ar({ ...e }) {
2057
+ return /* @__PURE__ */ O(z.Sub, {
2058
+ "data-slot": "menubar-sub",
2059
+ ...e
2060
+ });
2061
+ }
2062
+ function jr({ className: t, inset: n, children: r, ...i }) {
2063
+ return /* @__PURE__ */ k(z.SubTrigger, {
2064
+ "data-slot": "menubar-sub-trigger",
2065
+ "data-inset": n,
2066
+ className: e("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4", t),
2067
+ ...i,
2068
+ children: [r, /* @__PURE__ */ O(S, { className: "ml-auto size-4" })]
2069
+ });
2070
+ }
2071
+ function Mr({ className: t, style: n, ...r }) {
2072
+ let a = i();
2073
+ return /* @__PURE__ */ O(z.SubContent, {
2074
+ "data-slot": "menubar-sub-content",
2075
+ style: {
2076
+ ...a.style,
2077
+ ...n
2078
+ },
2079
+ className: e(a.className, "z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
2080
+ ...r
2081
+ });
2082
+ }
2083
+ //#endregion
2084
+ //#region src/components/ui/navigation-menu.tsx
2085
+ function Nr({ className: t, children: n, viewport: r = !0, ...i }) {
2086
+ return /* @__PURE__ */ k(B.Root, {
2087
+ "data-slot": "navigation-menu",
2088
+ "data-viewport": r,
2089
+ className: e("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t),
2090
+ ...i,
2091
+ children: [n, r && /* @__PURE__ */ O(zr, {})]
2092
+ });
2093
+ }
2094
+ function Pr({ className: t, ...n }) {
2095
+ return /* @__PURE__ */ O(B.List, {
2096
+ "data-slot": "navigation-menu-list",
2097
+ className: e("group flex flex-1 list-none items-center justify-center gap-0", t),
2098
+ ...n
2099
+ });
2100
+ }
2101
+ function Fr({ className: t, ...n }) {
2102
+ return /* @__PURE__ */ O(B.Item, {
2103
+ "data-slot": "navigation-menu-item",
2104
+ className: e("relative", t),
2105
+ ...n
2106
+ });
2107
+ }
2108
+ var Ir = A("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");
2109
+ function Lr({ className: t, children: n, ...r }) {
2110
+ return /* @__PURE__ */ k(B.Trigger, {
2111
+ "data-slot": "navigation-menu-trigger",
2112
+ className: e(Ir(), "group", t),
2113
+ ...r,
2114
+ children: [
2115
+ n,
2116
+ " ",
2117
+ /* @__PURE__ */ O(b, {
2118
+ className: "relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180",
2119
+ "aria-hidden": "true"
2120
+ })
2121
+ ]
2122
+ });
2123
+ }
2124
+ function Rr({ className: t, ...n }) {
2125
+ return /* @__PURE__ */ O(B.Content, {
2126
+ "data-slot": "navigation-menu-content",
2127
+ className: e("top-0 left-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95", t),
2128
+ ...n
2129
+ });
2130
+ }
2131
+ function zr({ className: t, ...n }) {
2132
+ return /* @__PURE__ */ O("div", {
2133
+ className: e("absolute top-full left-0 isolate z-50 flex justify-center"),
2134
+ children: /* @__PURE__ */ O(B.Viewport, {
2135
+ "data-slot": "navigation-menu-viewport",
2136
+ className: e("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-(--radix-navigation-menu-viewport-width) data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90", t),
2137
+ ...n
2138
+ })
2139
+ });
2140
+ }
2141
+ function Br({ className: t, ...n }) {
2142
+ return /* @__PURE__ */ O(B.Link, {
2143
+ "data-slot": "navigation-menu-link",
2144
+ className: e("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", t),
2145
+ ...n
2146
+ });
2147
+ }
2148
+ function Vr({ className: t, ...n }) {
2149
+ return /* @__PURE__ */ O(B.Indicator, {
2150
+ "data-slot": "navigation-menu-indicator",
2151
+ className: e("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in", t),
2152
+ ...n,
2153
+ children: /* @__PURE__ */ O("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
2154
+ });
2155
+ }
2156
+ //#endregion
2157
+ //#region src/components/ui/shadcn/shadcn-pagination.tsx
2158
+ function Hr({ className: t, ...n }) {
2159
+ return /* @__PURE__ */ O("nav", {
2160
+ role: "navigation",
2161
+ "aria-label": "pagination",
2162
+ "data-slot": "pagination",
2163
+ className: e("mx-auto flex w-full justify-center", t),
2164
+ ...n
2165
+ });
2166
+ }
2167
+ function Ur({ className: t, ...n }) {
2168
+ return /* @__PURE__ */ O("ul", {
2169
+ "data-slot": "pagination-content",
2170
+ className: e("flex items-center gap-1", t),
2171
+ ...n
2172
+ });
2173
+ }
2174
+ function Q({ ...e }) {
2175
+ return /* @__PURE__ */ O("li", {
2176
+ "data-slot": "pagination-item",
2177
+ ...e
2178
+ });
2179
+ }
2180
+ function Wr({ className: t, isActive: n, size: i = "icon", ...a }) {
2181
+ let o = X();
2182
+ return /* @__PURE__ */ O(r, {
2183
+ asChild: !0,
2184
+ variant: n ? "outline" : "ghost",
2185
+ size: i,
2186
+ className: e(t),
2187
+ children: T.createElement(o, {
2188
+ "aria-current": n ? "page" : void 0,
2189
+ "data-slot": "pagination-link",
2190
+ "data-active": n,
2191
+ ...a
2192
+ })
2193
+ });
2194
+ }
2195
+ function Gr({ className: t, text: n = "Previous", ...r }) {
2196
+ return /* @__PURE__ */ k(Wr, {
2197
+ "aria-label": "Go to previous page",
2198
+ size: "default",
2199
+ className: e("pl-2!", t),
2200
+ ...r,
2201
+ children: [/* @__PURE__ */ O(x, { "data-icon": "inline-start" }), /* @__PURE__ */ O("span", {
2202
+ className: "hidden sm:block",
2203
+ children: n
2204
+ })]
2205
+ });
2206
+ }
2207
+ function Kr({ className: t, text: n = "Next", ...r }) {
2208
+ return /* @__PURE__ */ k(Wr, {
2209
+ "aria-label": "Go to next page",
2210
+ size: "default",
2211
+ className: e("pr-2!", t),
2212
+ ...r,
2213
+ children: [/* @__PURE__ */ O("span", {
2214
+ className: "hidden sm:block",
2215
+ children: n
2216
+ }), /* @__PURE__ */ O(S, { "data-icon": "inline-end" })]
2217
+ });
2218
+ }
2219
+ function qr({ className: t, ...n }) {
2220
+ return /* @__PURE__ */ k("span", {
2221
+ "aria-hidden": !0,
2222
+ "data-slot": "pagination-ellipsis",
2223
+ className: e("flex size-9 items-center justify-center [&_svg:not([class*='size-'])]:size-4", t),
2224
+ ...n,
2225
+ children: [/* @__PURE__ */ O(te, {}), /* @__PURE__ */ O("span", {
2226
+ className: "sr-only",
2227
+ children: "More pages"
2228
+ })]
2229
+ });
2230
+ }
2231
+ //#endregion
2232
+ //#region src/components/ui/pagination.tsx
2233
+ function Jr(e, t, n) {
2234
+ if (t <= n * 2 + 5) return Array.from({ length: t }, (e, t) => t + 1);
2235
+ let r = Math.max(2, e - n), i = Math.min(t - 1, e + n), a = [1];
2236
+ r > 2 && a.push("ellipsis");
2237
+ for (let e = r; e <= i; e++) a.push(e);
2238
+ return i < t - 1 && a.push("ellipsis"), a.push(t), a;
2239
+ }
2240
+ var Yr = ({ currentPage: e, totalPages: t, onPageChange: n, siblingCount: i = 1, showPrevNext: a = !0, showPageLabel: o = !1, className: s }) => {
2241
+ let c = Jr(e, t, i), l = /* @__PURE__ */ O(Hr, {
2242
+ className: s,
2243
+ children: /* @__PURE__ */ k(Ur, { children: [
2244
+ a && /* @__PURE__ */ O(Q, { children: /* @__PURE__ */ k(r, {
2245
+ variant: "ghost",
2246
+ size: "default",
2247
+ className: "pl-2!",
2248
+ disabled: e <= 1,
2249
+ onClick: () => n(e - 1),
2250
+ "aria-label": "Go to previous page",
2251
+ children: [/* @__PURE__ */ O(x, { "data-icon": "inline-start" }), /* @__PURE__ */ O("span", {
2252
+ className: "hidden sm:block",
2253
+ children: "Previous"
2254
+ })]
2255
+ }) }),
2256
+ c.map((t, i) => t === "ellipsis" ? /* @__PURE__ */ O(Q, { children: /* @__PURE__ */ O(qr, {}) }, `ellipsis-${i}`) : /* @__PURE__ */ O(Q, { children: /* @__PURE__ */ O(r, {
2257
+ variant: t === e ? "outline" : "ghost",
2258
+ size: "icon",
2259
+ "aria-current": t === e ? "page" : void 0,
2260
+ onClick: () => n(t),
2261
+ children: t
2262
+ }) }, t)),
2263
+ a && /* @__PURE__ */ O(Q, { children: /* @__PURE__ */ k(r, {
2264
+ variant: "ghost",
2265
+ size: "default",
2266
+ className: "pr-2!",
2267
+ disabled: e >= t,
2268
+ onClick: () => n(e + 1),
2269
+ "aria-label": "Go to next page",
2270
+ children: [/* @__PURE__ */ O("span", {
2271
+ className: "hidden sm:block",
2272
+ children: "Next"
2273
+ }), /* @__PURE__ */ O(S, { "data-icon": "inline-end" })]
2274
+ }) })
2275
+ ] })
2276
+ });
2277
+ return o ? /* @__PURE__ */ k("div", {
2278
+ className: "flex flex-col items-center gap-2",
2279
+ children: [l, /* @__PURE__ */ k("p", {
2280
+ className: "text-sm text-muted-foreground",
2281
+ children: [
2282
+ "Page ",
2283
+ e,
2284
+ " of ",
2285
+ t
2286
+ ]
2287
+ })]
2288
+ }) : l;
2289
+ };
2290
+ //#endregion
2291
+ //#region src/components/ui/popover.tsx
2292
+ function Xr({ ...e }) {
2293
+ return /* @__PURE__ */ O(V.Root, {
2294
+ "data-slot": "popover",
2295
+ ...e
2296
+ });
2297
+ }
2298
+ function Zr({ ...e }) {
2299
+ return /* @__PURE__ */ O(V.Trigger, {
2300
+ "data-slot": "popover-trigger",
2301
+ ...e
2302
+ });
2303
+ }
2304
+ function Qr({ className: t, align: n = "center", sideOffset: r = 4, style: a, ...o }) {
2305
+ let s = i();
2306
+ return /* @__PURE__ */ O(V.Portal, { children: /* @__PURE__ */ O(V.Content, {
2307
+ "data-slot": "popover-content",
2308
+ align: n,
2309
+ sideOffset: r,
2310
+ style: {
2311
+ ...s.style,
2312
+ ...a
2313
+ },
2314
+ className: e(s.className, "z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
2315
+ ...o
2316
+ }) });
2317
+ }
2318
+ function $r({ ...e }) {
2319
+ return /* @__PURE__ */ O(V.Anchor, {
2320
+ "data-slot": "popover-anchor",
2321
+ ...e
2322
+ });
2323
+ }
2324
+ function ei({ className: t, ...n }) {
2325
+ return /* @__PURE__ */ O("div", {
2326
+ "data-slot": "popover-header",
2327
+ className: e("flex flex-col gap-1 text-sm", t),
2328
+ ...n
2329
+ });
2330
+ }
2331
+ function ti({ className: t, ...n }) {
2332
+ return /* @__PURE__ */ O("div", {
2333
+ "data-slot": "popover-title",
2334
+ className: e("font-heading font-medium", t),
2335
+ ...n
2336
+ });
2337
+ }
2338
+ function ni({ className: t, ...n }) {
2339
+ return /* @__PURE__ */ O("p", {
2340
+ "data-slot": "popover-description",
2341
+ className: e("text-muted-foreground", t),
2342
+ ...n
2343
+ });
2344
+ }
2345
+ //#endregion
2346
+ //#region src/components/ui/progress.tsx
2347
+ var ri = {
2348
+ default: "bg-primary",
2349
+ ai: "bg-[var(--ai)]",
2350
+ success: "bg-[var(--success)]",
2351
+ warning: "bg-[var(--warning)]",
2352
+ danger: "bg-destructive"
2353
+ };
2354
+ function ii({ className: t, value: n, tone: r = "default", ...i }) {
2355
+ return /* @__PURE__ */ O(ce.Root, {
2356
+ "data-slot": "progress",
2357
+ "data-tone": r,
2358
+ className: e("score-track relative flex h-1 w-full items-center overflow-x-hidden", t),
2359
+ ...i,
2360
+ children: /* @__PURE__ */ O(ce.Indicator, {
2361
+ "data-slot": "progress-indicator",
2362
+ className: e("score-fill size-full flex-1 transition-data", ri[r]),
2363
+ style: { transform: `translateX(-${100 - (n || 0)}%)` }
2364
+ })
2365
+ });
2366
+ }
2367
+ //#endregion
2368
+ //#region src/components/ui/radio-group.tsx
2369
+ function ai({ className: t, label: n, helperText: r, error: i = !1, ...a }) {
2370
+ return /* @__PURE__ */ k("div", {
2371
+ className: "flex flex-col gap-2",
2372
+ children: [
2373
+ n && /* @__PURE__ */ O(m, { children: n }),
2374
+ /* @__PURE__ */ O(le.Root, {
2375
+ "data-slot": "radio-group",
2376
+ className: e("grid w-full gap-2", t),
2377
+ ...a
2378
+ }),
2379
+ r && /* @__PURE__ */ O("p", {
2380
+ className: `text-caption ${i ? "text-destructive" : "text-muted-foreground"}`,
2381
+ children: r
2382
+ })
2383
+ ]
2384
+ });
2385
+ }
2386
+ function oi({ className: t, ...n }) {
2387
+ return /* @__PURE__ */ O(le.Item, {
2388
+ "data-slot": "radio-group-item",
2389
+ className: e("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", t),
2390
+ ...n,
2391
+ children: /* @__PURE__ */ O(le.Indicator, {
2392
+ "data-slot": "radio-group-indicator",
2393
+ className: "flex size-4 items-center justify-center",
2394
+ children: /* @__PURE__ */ O("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
2395
+ })
2396
+ });
2397
+ }
2398
+ //#endregion
2399
+ //#region src/components/ui/resizable.tsx
2400
+ function si({ className: t, ...n }) {
2401
+ return /* @__PURE__ */ O(me.Group, {
2402
+ "data-slot": "resizable-panel-group",
2403
+ className: e("flex h-full w-full aria-[orientation=vertical]:flex-col", t),
2404
+ ...n
2405
+ });
2406
+ }
2407
+ function ci({ ...e }) {
2408
+ return /* @__PURE__ */ O(me.Panel, {
2409
+ "data-slot": "resizable-panel",
2410
+ ...e
2411
+ });
2412
+ }
2413
+ function li({ withHandle: t, className: n, ...r }) {
2414
+ return /* @__PURE__ */ O(me.Separator, {
2415
+ "data-slot": "resizable-handle",
2416
+ className: e("relative flex w-px items-center justify-center bg-border ring-offset-background 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-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", n),
2417
+ ...r,
2418
+ children: t && /* @__PURE__ */ O("div", { className: "z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" })
2419
+ });
2420
+ }
2421
+ //#endregion
2422
+ //#region src/components/ui/scroll-area.tsx
2423
+ function ui({ className: t, children: n, ...r }) {
2424
+ return /* @__PURE__ */ k(H.Root, {
2425
+ "data-slot": "scroll-area",
2426
+ className: e("relative", t),
2427
+ ...r,
2428
+ children: [
2429
+ /* @__PURE__ */ O(H.Viewport, {
2430
+ "data-slot": "scroll-area-viewport",
2431
+ className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
2432
+ children: n
2433
+ }),
2434
+ /* @__PURE__ */ O(di, {}),
2435
+ /* @__PURE__ */ O(H.Corner, {})
2436
+ ]
2437
+ });
2438
+ }
2439
+ function di({ className: t, orientation: n = "vertical", ...r }) {
2440
+ return /* @__PURE__ */ O(H.ScrollAreaScrollbar, {
2441
+ "data-slot": "scroll-area-scrollbar",
2442
+ "data-orientation": n,
2443
+ orientation: n,
2444
+ className: e("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", t),
2445
+ ...r,
2446
+ children: /* @__PURE__ */ O(H.ScrollAreaThumb, {
2447
+ "data-slot": "scroll-area-thumb",
2448
+ className: "relative flex-1 rounded-full bg-border"
2449
+ })
2450
+ });
2451
+ }
2452
+ //#endregion
2453
+ //#region src/components/ui/shadcn/shadcn-select.tsx
2454
+ function fi({ ...e }) {
2455
+ return /* @__PURE__ */ O(U.Root, {
2456
+ "data-slot": "select",
2457
+ ...e
2458
+ });
2459
+ }
2460
+ function pi({ className: t, ...n }) {
2461
+ return /* @__PURE__ */ O(U.Group, {
2462
+ "data-slot": "select-group",
2463
+ className: e("scroll-my-1 p-1", t),
2464
+ ...n
2465
+ });
2466
+ }
2467
+ function mi({ ...e }) {
2468
+ return /* @__PURE__ */ O(U.Value, {
2469
+ "data-slot": "select-value",
2470
+ ...e
2471
+ });
2472
+ }
2473
+ function hi({ className: t, size: n = "default", children: r, ...i }) {
2474
+ return /* @__PURE__ */ k(U.Trigger, {
2475
+ "data-slot": "select-trigger",
2476
+ "data-size": n,
2477
+ className: e("flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground 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-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
2478
+ ...i,
2479
+ children: [r, /* @__PURE__ */ O(U.Icon, {
2480
+ asChild: !0,
2481
+ children: /* @__PURE__ */ O(b, { className: "pointer-events-none size-4 text-muted-foreground" })
2482
+ })]
2483
+ });
2484
+ }
2485
+ function gi({ className: t, children: n, position: r = "item-aligned", align: a = "center", style: o, ...s }) {
2486
+ let c = i();
2487
+ return /* @__PURE__ */ O(U.Portal, { children: /* @__PURE__ */ k(U.Content, {
2488
+ "data-slot": "select-content",
2489
+ "data-align-trigger": r === "item-aligned",
2490
+ style: {
2491
+ ...c.style,
2492
+ ...o
2493
+ },
2494
+ className: e(c.className, "relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-sm ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", 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", t),
2495
+ position: r,
2496
+ align: a,
2497
+ ...s,
2498
+ children: [
2499
+ /* @__PURE__ */ O(bi, {}),
2500
+ /* @__PURE__ */ O(U.Viewport, {
2501
+ "data-position": r,
2502
+ className: e("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", r === "popper" && ""),
2503
+ children: n
2504
+ }),
2505
+ /* @__PURE__ */ O(xi, {})
2506
+ ]
2507
+ }) });
2508
+ }
2509
+ function _i({ className: t, ...n }) {
2510
+ return /* @__PURE__ */ O(U.Label, {
2511
+ "data-slot": "select-label",
2512
+ className: e("px-2 py-1.5 text-xs text-muted-foreground", t),
2513
+ ...n
2514
+ });
2515
+ }
2516
+ function vi({ className: t, children: n, ...r }) {
2517
+ return /* @__PURE__ */ k(U.Item, {
2518
+ "data-slot": "select-item",
2519
+ className: e("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 focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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", t),
2520
+ ...r,
2521
+ children: [/* @__PURE__ */ O("span", {
2522
+ className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center",
2523
+ children: /* @__PURE__ */ O(U.ItemIndicator, { children: /* @__PURE__ */ O(y, { className: "pointer-events-none" }) })
2524
+ }), /* @__PURE__ */ O(U.ItemText, { children: n })]
2525
+ });
2526
+ }
2527
+ function yi({ className: t, ...n }) {
2528
+ return /* @__PURE__ */ O(U.Separator, {
2529
+ "data-slot": "select-separator",
2530
+ className: e("pointer-events-none -mx-1 my-1 h-px bg-border", t),
2531
+ ...n
2532
+ });
2533
+ }
2534
+ function bi({ className: t, ...n }) {
2535
+ return /* @__PURE__ */ O(U.ScrollUpButton, {
2536
+ "data-slot": "select-scroll-up-button",
2537
+ className: e("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", t),
2538
+ ...n,
2539
+ children: /* @__PURE__ */ O(ee, {})
2540
+ });
2541
+ }
2542
+ function xi({ className: t, ...n }) {
2543
+ return /* @__PURE__ */ O(U.ScrollDownButton, {
2544
+ "data-slot": "select-scroll-down-button",
2545
+ className: e("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", t),
2546
+ ...n,
2547
+ children: /* @__PURE__ */ O(b, {})
2548
+ });
2549
+ }
2550
+ function Si({ label: t, helperText: n, error: r = !1, className: i, children: a }) {
2551
+ return /* @__PURE__ */ k("div", {
2552
+ className: e("w-full flex flex-col gap-2", i),
2553
+ children: [
2554
+ t && /* @__PURE__ */ O(m, { children: t }),
2555
+ a,
2556
+ n && /* @__PURE__ */ O("p", {
2557
+ className: `text-caption ${r ? "text-destructive" : "text-muted-foreground"}`,
2558
+ children: n
2559
+ })
2560
+ ]
2561
+ });
2562
+ }
2563
+ //#endregion
2564
+ //#region src/components/ui/select.tsx
2565
+ var Ci = ({ options: t, placeholder: n = "Select an option", placeholderIcon: r, groupLabel: i, fieldLabel: a, helperText: o, error: s = !1, triggerSize: c = "default", fieldClassName: l, triggerClassName: u, contentClassName: d, ...f }) => /* @__PURE__ */ O(Si, {
2566
+ label: a,
2567
+ helperText: o,
2568
+ error: s,
2569
+ className: e("w-full", l),
2570
+ children: /* @__PURE__ */ k(fi, {
2571
+ ...f,
2572
+ children: [/* @__PURE__ */ k(hi, {
2573
+ className: e(r && "gap-1", u),
2574
+ size: c,
2575
+ children: [r ? /* @__PURE__ */ O("span", {
2576
+ "data-icon": "inline-start",
2577
+ className: "contents",
2578
+ children: r
2579
+ }) : null, /* @__PURE__ */ O(mi, { placeholder: n || a })]
2580
+ }), /* @__PURE__ */ O(gi, {
2581
+ className: e("max-h-[300px]", d),
2582
+ children: /* @__PURE__ */ k(pi, { children: [i ? /* @__PURE__ */ O(_i, { children: i }) : null, t.map((e) => {
2583
+ let t = e.iconPosition ?? "inline-start";
2584
+ return /* @__PURE__ */ k(E.Fragment, { children: [e.separator ? /* @__PURE__ */ O(yi, {}) : null, /* @__PURE__ */ k(vi, {
2585
+ value: e.value,
2586
+ disabled: e.disabled,
2587
+ children: [
2588
+ e.icon && t === "inline-start" ? /* @__PURE__ */ O("span", {
2589
+ "data-icon": "inline-start",
2590
+ className: "contents",
2591
+ children: e.icon
2592
+ }) : null,
2593
+ e.label,
2594
+ e.icon && t === "inline-end" ? /* @__PURE__ */ O("span", {
2595
+ "data-icon": "inline-end",
2596
+ className: "contents",
2597
+ children: e.icon
2598
+ }) : null
2599
+ ]
2600
+ })] }, e.value);
2601
+ })] })
2602
+ })]
2603
+ })
2604
+ });
2605
+ //#endregion
2606
+ //#region src/components/ui/skeleton.tsx
2607
+ function wi({ className: t, ...n }) {
2608
+ return /* @__PURE__ */ O("div", {
2609
+ "data-slot": "skeleton",
2610
+ className: e("animate-pulse rounded-md bg-muted", t),
2611
+ ...n
2612
+ });
2613
+ }
2614
+ //#endregion
2615
+ //#region src/components/ui/sidebar.tsx
2616
+ var Ti = "sidebar_state", Ei = 604800, Di = "260px", Oi = "18rem", ki = "3rem", Ai = "b", ji = T.createContext(null);
2617
+ function $() {
2618
+ let e = T.useContext(ji);
2619
+ if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
2620
+ return e;
2621
+ }
2622
+ function Mi({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }) {
2623
+ let c = Et(), [l, u] = T.useState(!1), [d, f] = T.useState(t), p = n ?? d, m = T.useCallback((e) => {
2624
+ let t = typeof e == "function" ? e(p) : e;
2625
+ r ? r(t) : f(t), document.cookie = `${Ti}=${t}; path=/; max-age=${Ei}`;
2626
+ }, [r, p]), h = T.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
2627
+ c,
2628
+ m,
2629
+ u
2630
+ ]);
2631
+ T.useEffect(() => {
2632
+ let e = (e) => {
2633
+ e.key === Ai && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
2634
+ };
2635
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2636
+ }, [h]);
2637
+ let g = p ? "expanded" : "collapsed", _ = T.useMemo(() => ({
2638
+ state: g,
2639
+ open: p,
2640
+ setOpen: m,
2641
+ isMobile: c,
2642
+ openMobile: l,
2643
+ setOpenMobile: u,
2644
+ toggleSidebar: h
2645
+ }), [
2646
+ g,
2647
+ p,
2648
+ m,
2649
+ c,
2650
+ l,
2651
+ u,
2652
+ h
2653
+ ]);
2654
+ return /* @__PURE__ */ O(ji.Provider, {
2655
+ value: _,
2656
+ children: /* @__PURE__ */ O("div", {
2657
+ "data-slot": "sidebar-wrapper",
2658
+ style: {
2659
+ "--sidebar-width": Di,
2660
+ "--sidebar-width-icon": ki,
2661
+ ...a
2662
+ },
2663
+ className: e("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", i),
2664
+ ...s,
2665
+ children: o
2666
+ })
2667
+ });
2668
+ }
2669
+ function Ni({ side: t = "left", variant: n = "sidebar", collapsible: r = "offcanvas", className: i, children: a, dir: o, ...s }) {
2670
+ let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = $();
2671
+ return r === "none" ? /* @__PURE__ */ O("div", {
2672
+ "data-slot": "sidebar",
2673
+ className: e("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", i),
2674
+ ...s,
2675
+ children: a
2676
+ }) : c ? /* @__PURE__ */ O(Ke, {
2677
+ open: u,
2678
+ onOpenChange: d,
2679
+ ...s,
2680
+ children: /* @__PURE__ */ k(Ze, {
2681
+ dir: o,
2682
+ "data-sidebar": "sidebar",
2683
+ "data-slot": "sidebar",
2684
+ "data-mobile": "true",
2685
+ className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
2686
+ style: { "--sidebar-width": Oi },
2687
+ side: t,
2688
+ children: [/* @__PURE__ */ k(Qe, {
2689
+ className: "sr-only",
2690
+ children: [/* @__PURE__ */ O(et, { children: "Sidebar" }), /* @__PURE__ */ O(tt, { children: "Displays the mobile sidebar." })]
2691
+ }), /* @__PURE__ */ O("div", {
2692
+ className: "flex h-full w-full flex-col",
2693
+ children: a
2694
+ })]
2695
+ })
2696
+ }) : /* @__PURE__ */ k("div", {
2697
+ className: "group peer hidden text-sidebar-foreground md:block",
2698
+ "data-state": l,
2699
+ "data-collapsible": l === "collapsed" ? r : "",
2700
+ "data-variant": n,
2701
+ "data-side": t,
2702
+ "data-slot": "sidebar",
2703
+ children: [/* @__PURE__ */ O("div", {
2704
+ "data-slot": "sidebar-gap",
2705
+ className: e("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", n === "floating" || n === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
2706
+ }), /* @__PURE__ */ O("div", {
2707
+ "data-slot": "sidebar-container",
2708
+ "data-side": t,
2709
+ className: e("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", n === "floating" || n === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", i),
2710
+ ...s,
2711
+ children: /* @__PURE__ */ O("div", {
2712
+ "data-sidebar": "sidebar",
2713
+ "data-slot": "sidebar-inner",
2714
+ className: "flex size-full flex-col gap-1 bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",
2715
+ children: a
2716
+ })
2717
+ })]
2718
+ });
2719
+ }
2720
+ function Pi({ className: t, onClick: n, ...i }) {
2721
+ let { toggleSidebar: a } = $();
2722
+ return /* @__PURE__ */ k(r, {
2723
+ "data-sidebar": "trigger",
2724
+ "data-slot": "sidebar-trigger",
2725
+ variant: "ghost",
2726
+ size: "icon-sm",
2727
+ className: e(t),
2728
+ onClick: (e) => {
2729
+ n?.(e), a();
2730
+ },
2731
+ ...i,
2732
+ children: [/* @__PURE__ */ O(ne, {}), /* @__PURE__ */ O("span", {
2733
+ className: "sr-only",
2734
+ children: "Toggle Sidebar"
2735
+ })]
2736
+ });
2737
+ }
2738
+ function Fi({ className: t, ...n }) {
2739
+ let { toggleSidebar: r } = $();
2740
+ return /* @__PURE__ */ O("button", {
2741
+ "data-sidebar": "rail",
2742
+ "data-slot": "sidebar-rail",
2743
+ "aria-label": "Toggle Sidebar",
2744
+ tabIndex: -1,
2745
+ onClick: r,
2746
+ title: "Toggle Sidebar",
2747
+ className: e("absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", t),
2748
+ ...n
2749
+ });
2750
+ }
2751
+ function Ii({ className: t, ...n }) {
2752
+ return /* @__PURE__ */ O("main", {
2753
+ "data-slot": "sidebar-inset",
2754
+ className: e("relative flex w-full flex-1 flex-col bg-background 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", t),
2755
+ ...n
2756
+ });
2757
+ }
2758
+ function Li({ className: t, ...n }) {
2759
+ return /* @__PURE__ */ O(u, {
2760
+ "data-slot": "sidebar-input",
2761
+ "data-sidebar": "input",
2762
+ className: e("h-8 w-full bg-background shadow-none", t),
2763
+ ...n
2764
+ });
2765
+ }
2766
+ function Ri({ className: t, ...n }) {
2767
+ return /* @__PURE__ */ O("div", {
2768
+ "data-slot": "sidebar-header",
2769
+ "data-sidebar": "header",
2770
+ className: e("flex flex-col gap-4 p-0", t),
2771
+ ...n
2772
+ });
2773
+ }
2774
+ function zi({ className: t, ...n }) {
2775
+ return /* @__PURE__ */ O("div", {
2776
+ "data-slot": "sidebar-footer",
2777
+ "data-sidebar": "footer",
2778
+ className: e("flex flex-col gap-4 p-3", t),
2779
+ ...n
2780
+ });
2781
+ }
2782
+ function Bi({ className: t, ...n }) {
2783
+ return /* @__PURE__ */ O(Z, {
2784
+ "data-slot": "sidebar-separator",
2785
+ "data-sidebar": "separator",
2786
+ className: e("mx-6 w-auto bg-sidebar-border", t),
2787
+ ...n
2788
+ });
2789
+ }
2790
+ function Vi({ className: t, ...n }) {
2791
+ return /* @__PURE__ */ O("div", {
2792
+ "data-slot": "sidebar-content",
2793
+ "data-sidebar": "content",
2794
+ className: e("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto px-3 py-0 group-data-[collapsible=icon]:overflow-hidden", t),
2795
+ ...n
2796
+ });
2797
+ }
2798
+ function Hi({ className: t, ...n }) {
2799
+ return /* @__PURE__ */ O("div", {
2800
+ "data-slot": "sidebar-group",
2801
+ "data-sidebar": "group",
2802
+ className: e("relative flex w-full min-w-0 flex-col py-0", t),
2803
+ ...n
2804
+ });
2805
+ }
2806
+ function Ui({ className: t, asChild: n = !1, ...r }) {
2807
+ let i = n ? G.Root : "div";
2808
+ return /* @__PURE__ */ O(i, {
2809
+ "data-slot": "sidebar-group-label",
2810
+ "data-sidebar": "group-label",
2811
+ className: e("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", t),
2812
+ ...r
2813
+ });
2814
+ }
2815
+ function Wi({ className: t, asChild: n = !1, ...r }) {
2816
+ let i = n ? G.Root : "button";
2817
+ return /* @__PURE__ */ O(i, {
2818
+ "data-slot": "sidebar-group-action",
2819
+ "data-sidebar": "group-action",
2820
+ className: e("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", t),
2821
+ ...r
2822
+ });
2823
+ }
2824
+ function Gi({ className: t, ...n }) {
2825
+ return /* @__PURE__ */ O("div", {
2826
+ "data-slot": "sidebar-group-content",
2827
+ "data-sidebar": "group-content",
2828
+ className: e("w-full text-sm", t),
2829
+ ...n
2830
+ });
2831
+ }
2832
+ function Ki({ className: t, ...n }) {
2833
+ return /* @__PURE__ */ O("ul", {
2834
+ "data-slot": "sidebar-menu",
2835
+ "data-sidebar": "menu",
2836
+ className: e("flex w-full min-w-0 flex-col gap-0", t),
2837
+ ...n
2838
+ });
2839
+ }
2840
+ function qi({ className: t, ...n }) {
2841
+ return /* @__PURE__ */ O("li", {
2842
+ "data-slot": "sidebar-menu-item",
2843
+ "data-sidebar": "menu-item",
2844
+ className: e("group/menu-item relative", t),
2845
+ ...n
2846
+ });
2847
+ }
2848
+ var Ji = A("peer/menu-button group/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! 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 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-primary data-active:font-medium data-active:text-sidebar-primary-foreground data-active:hover:bg-sidebar-primary data-active:hover:text-sidebar-primary-foreground [&_svg]:size-[18px] [&_svg]:shrink-0 [&>span:last-child]:truncate", {
2849
+ variants: {
2850
+ variant: {
2851
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
2852
+ outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
2853
+ },
2854
+ size: {
2855
+ default: "h-9 text-sm",
2856
+ sm: "h-7 text-xs",
2857
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
2858
+ }
2859
+ },
2860
+ defaultVariants: {
2861
+ variant: "default",
2862
+ size: "default"
2863
+ }
2864
+ });
2865
+ function Yi({ asChild: t = !1, isActive: n = !1, variant: r = "default", size: i = "default", tooltip: a, className: o, ...s }) {
2866
+ let c = t ? G.Root : "button", { isMobile: l, state: u } = $(), d = /* @__PURE__ */ O(c, {
2867
+ "data-slot": "sidebar-menu-button",
2868
+ "data-sidebar": "menu-button",
2869
+ "data-size": i,
2870
+ "data-active": n,
2871
+ className: e(Ji({
2872
+ variant: r,
2873
+ size: i
2874
+ }), o),
2875
+ ...s
2876
+ });
2877
+ if (!a) return d;
2878
+ typeof a == "string" && (a = { children: a });
2879
+ let { children: f, ...p } = a;
2880
+ return /* @__PURE__ */ O(ht, {
2881
+ content: f,
2882
+ side: "right",
2883
+ align: "center",
2884
+ hidden: u !== "collapsed" || l,
2885
+ ...p,
2886
+ children: d
2887
+ });
2888
+ }
2889
+ function Xi({ className: t, asChild: n = !1, showOnHover: r = !1, ...i }) {
2890
+ let a = n ? G.Root : "button";
2891
+ return /* @__PURE__ */ O(a, {
2892
+ "data-slot": "sidebar-menu-action",
2893
+ "data-sidebar": "menu-action",
2894
+ className: e("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", r && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0", t),
2895
+ ...i
2896
+ });
2897
+ }
2898
+ function Zi({ className: t, ...n }) {
2899
+ return /* @__PURE__ */ O("div", {
2900
+ "data-slot": "sidebar-menu-badge",
2901
+ "data-sidebar": "menu-badge",
2902
+ className: e("pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground", t),
2903
+ ...n
2904
+ });
2905
+ }
2906
+ function Qi({ className: t, showIcon: n = !1, ...r }) {
2907
+ let [i] = T.useState(() => `${Math.floor(Math.random() * 40) + 50}%`);
2908
+ return /* @__PURE__ */ k("div", {
2909
+ "data-slot": "sidebar-menu-skeleton",
2910
+ "data-sidebar": "menu-skeleton",
2911
+ className: e("flex h-8 items-center gap-2 rounded-md px-2", t),
2912
+ ...r,
2913
+ children: [n && /* @__PURE__ */ O(wi, {
2914
+ className: "size-4 rounded-md",
2915
+ "data-sidebar": "menu-skeleton-icon"
2916
+ }), /* @__PURE__ */ O(wi, {
2917
+ className: "h-4 max-w-(--skeleton-width) flex-1",
2918
+ "data-sidebar": "menu-skeleton-text",
2919
+ style: { "--skeleton-width": i }
2920
+ })]
2921
+ });
2922
+ }
2923
+ function $i({ className: t, ...n }) {
2924
+ return /* @__PURE__ */ O("ul", {
2925
+ "data-slot": "sidebar-menu-sub",
2926
+ "data-sidebar": "menu-sub",
2927
+ className: e("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", t),
2928
+ ...n
2929
+ });
2930
+ }
2931
+ function ea({ className: t, ...n }) {
2932
+ return /* @__PURE__ */ O("li", {
2933
+ "data-slot": "sidebar-menu-sub-item",
2934
+ "data-sidebar": "menu-sub-item",
2935
+ className: e("group/menu-sub-item relative", t),
2936
+ ...n
2937
+ });
2938
+ }
2939
+ function ta({ asChild: t = !1, size: n = "md", isActive: r = !1, className: i, ...a }) {
2940
+ let o = X(), s = t ? G.Root : o;
2941
+ return T.createElement(s, {
2942
+ "data-slot": "sidebar-menu-sub-button",
2943
+ "data-sidebar": "menu-sub-button",
2944
+ "data-size": n,
2945
+ "data-active": r,
2946
+ className: e("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden 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 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", i),
2947
+ ...a
2948
+ });
2949
+ }
2950
+ //#endregion
2951
+ //#region src/components/ui/switch.tsx
2952
+ function na({ className: t, size: n = "default", label: r, helperText: i, error: a = !1, id: o, ...s }) {
2953
+ return /* @__PURE__ */ k("div", {
2954
+ className: "flex flex-col gap-1",
2955
+ children: [/* @__PURE__ */ k("div", {
2956
+ className: "flex items-center gap-2",
2957
+ children: [/* @__PURE__ */ O(de.Root, {
2958
+ id: o,
2959
+ "data-slot": "switch",
2960
+ "data-size": n,
2961
+ className: e("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50", t),
2962
+ ...s,
2963
+ children: /* @__PURE__ */ O(de.Thumb, {
2964
+ "data-slot": "switch-thumb",
2965
+ className: "pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"
2966
+ })
2967
+ }), r && /* @__PURE__ */ O(m, {
2968
+ htmlFor: o,
2969
+ className: "font-normal cursor-pointer",
2970
+ children: r
2971
+ })]
2972
+ }), i && /* @__PURE__ */ O("p", {
2973
+ className: `text-caption pl-10 ${a ? "text-destructive" : "text-muted-foreground"}`,
2974
+ children: i
2975
+ })]
2976
+ });
2977
+ }
2978
+ //#endregion
2979
+ //#region src/components/ui/table.tsx
2980
+ function ra({ className: t, maxHeight: n = "50vh", ...r }) {
2981
+ return /* @__PURE__ */ O("div", {
2982
+ "data-slot": "table-container",
2983
+ className: e("relative w-full overflow-auto"),
2984
+ style: { maxHeight: typeof n == "string" ? n : `${n}px` },
2985
+ children: /* @__PURE__ */ O("table", {
2986
+ "data-slot": "table",
2987
+ className: e("w-full caption-bottom text-sm", t),
2988
+ ...r
2989
+ })
2990
+ });
2991
+ }
2992
+ function ia({ className: t, sticky: n = !0, ...r }) {
2993
+ return /* @__PURE__ */ O("thead", {
2994
+ "data-slot": "table-header",
2995
+ className: e(n && "sticky top-0 z-10 bg-secondary", "[&_tr]:border-b", t),
2996
+ ...r
2997
+ });
2998
+ }
2999
+ function aa({ className: t, ...n }) {
3000
+ return /* @__PURE__ */ O("tbody", {
3001
+ "data-slot": "table-body",
3002
+ className: e("[&_tr:last-child]:border-0", t),
3003
+ ...n
3004
+ });
3005
+ }
3006
+ function oa({ className: t, ...n }) {
3007
+ return /* @__PURE__ */ O("tfoot", {
3008
+ "data-slot": "table-footer",
3009
+ className: e("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", t),
3010
+ ...n
3011
+ });
3012
+ }
3013
+ function sa({ className: t, ...n }) {
3014
+ return /* @__PURE__ */ O("tr", {
3015
+ "data-slot": "table-row",
3016
+ className: e("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", t),
3017
+ ...n
3018
+ });
3019
+ }
3020
+ function ca({ className: t, ...n }) {
3021
+ return /* @__PURE__ */ O("th", {
3022
+ "data-slot": "table-head",
3023
+ className: e("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", t),
3024
+ ...n
3025
+ });
3026
+ }
3027
+ function la({ className: t, ...n }) {
3028
+ return /* @__PURE__ */ O("td", {
3029
+ "data-slot": "table-cell",
3030
+ className: e("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", t),
3031
+ ...n
3032
+ });
3033
+ }
3034
+ function ua({ className: t, ...n }) {
3035
+ return /* @__PURE__ */ O("caption", {
3036
+ "data-slot": "table-caption",
3037
+ className: e("mt-4 text-sm text-muted-foreground", t),
3038
+ ...n
3039
+ });
3040
+ }
3041
+ //#endregion
3042
+ //#region src/components/ui/shadcn/shadcn-tabs.tsx
3043
+ function da({ className: t, orientation: n = "horizontal", ...r }) {
3044
+ return /* @__PURE__ */ O(K.Root, {
3045
+ "data-slot": "tabs",
3046
+ "data-orientation": n,
3047
+ className: e("group/tabs flex gap-2 data-horizontal:flex-col", "w-full justify-start px-3 py-2.5 text-sm font-medium data-[state=active]:bg-primary/10 data-[state=active]:shadow-none", t),
3048
+ ...r
3049
+ });
3050
+ }
3051
+ var fa = A("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-2 text-muted-foreground group-data-horizontal/tabs:h-10 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
3052
+ variants: { variant: {
3053
+ default: "bg-muted",
3054
+ line: "w-full justify-start gap-1 bg-transparent border-b border-border p-0 group-data-vertical/tabs:border-b-0"
3055
+ } },
3056
+ defaultVariants: { variant: "line" }
3057
+ });
3058
+ function pa({ className: t, variant: n = "line", ...r }) {
3059
+ return /* @__PURE__ */ O(K.List, {
3060
+ "data-slot": "tabs-list",
3061
+ "data-variant": n,
3062
+ className: e(fa({ variant: n }), "p-4", t),
3063
+ ...r
3064
+ });
3065
+ }
3066
+ function ma({ className: t, ...n }) {
3067
+ return /* @__PURE__ */ O(K.Trigger, {
3068
+ "data-slot": "tabs-trigger",
3069
+ className: e("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:h-10 group-data-[variant=line]/tabs-list:rounded-none group-data-[variant=line]/tabs-list:border-0 group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:px-3 group-data-[variant=line]/tabs-list:data-active:bg-transparent group-data-[variant=line]/tabs-list:data-active:text-foreground dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-1px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", t),
3070
+ ...n
3071
+ });
3072
+ }
3073
+ function ha({ className: t, ...n }) {
3074
+ return /* @__PURE__ */ O(K.Content, {
3075
+ "data-slot": "tabs-content",
3076
+ className: e("flex-1 text-sm outline-none", t),
3077
+ ...n
3078
+ });
3079
+ }
3080
+ //#endregion
3081
+ //#region src/components/ui/tabs.tsx
3082
+ var ga = ({ tabs: e, defaultValue: t, value: n, onValueChange: r, orientation: i = "horizontal", variant: a = "line", className: o, listClassName: s, contentClassName: c }) => /* @__PURE__ */ k(da, {
3083
+ defaultValue: t ?? e[0]?.value,
3084
+ value: n,
3085
+ onValueChange: r,
3086
+ orientation: i,
3087
+ className: o,
3088
+ children: [/* @__PURE__ */ O(pa, {
3089
+ variant: a,
3090
+ className: s,
3091
+ children: e.map((e) => /* @__PURE__ */ k(ma, {
3092
+ value: e.value,
3093
+ disabled: e.disabled,
3094
+ children: [e.icon, e.label]
3095
+ }, e.value))
3096
+ }), e.map((e) => /* @__PURE__ */ O(ha, {
3097
+ value: e.value,
3098
+ className: c,
3099
+ children: e.content
3100
+ }, e.value))]
3101
+ }), _a = A("group/toggle inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
3102
+ variants: {
3103
+ variant: {
3104
+ default: "bg-transparent",
3105
+ outline: "border border-input bg-transparent shadow-xs hover:bg-muted"
3106
+ },
3107
+ size: {
3108
+ default: "h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
3109
+ sm: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
3110
+ lg: "h-10 min-w-10 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"
3111
+ }
3112
+ },
3113
+ defaultVariants: {
3114
+ variant: "default",
3115
+ size: "default"
3116
+ }
3117
+ });
3118
+ function va({ className: t, variant: n = "default", size: r = "default", ...i }) {
3119
+ return /* @__PURE__ */ O(fe.Root, {
3120
+ "data-slot": "toggle",
3121
+ className: e(_a({
3122
+ variant: n,
3123
+ size: r,
3124
+ className: t
3125
+ })),
3126
+ ...i
3127
+ });
3128
+ }
3129
+ //#endregion
3130
+ //#region src/components/ui/toggle-group.tsx
3131
+ var ya = T.createContext({
3132
+ size: "default",
3133
+ variant: "default",
3134
+ spacing: 0,
3135
+ orientation: "horizontal"
3136
+ });
3137
+ function ba({ className: t, variant: n, size: r, spacing: i = 0, orientation: a = "horizontal", children: o, ...s }) {
3138
+ return /* @__PURE__ */ O(pe.Root, {
3139
+ "data-slot": "toggle-group",
3140
+ "data-variant": n,
3141
+ "data-size": r,
3142
+ "data-spacing": i,
3143
+ "data-orientation": a,
3144
+ style: { "--gap": i },
3145
+ className: e("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch", t),
3146
+ ...s,
3147
+ children: /* @__PURE__ */ O(ya.Provider, {
3148
+ value: {
3149
+ variant: n,
3150
+ size: r,
3151
+ spacing: i,
3152
+ orientation: a
3153
+ },
3154
+ children: o
3155
+ })
3156
+ });
3157
+ }
3158
+ function xa({ className: t, children: n, variant: r = "default", size: i = "default", ...a }) {
3159
+ let o = T.useContext(ya);
3160
+ return /* @__PURE__ */ O(pe.Item, {
3161
+ "data-slot": "toggle-group-item",
3162
+ "data-variant": o.variant || r,
3163
+ "data-size": o.size || i,
3164
+ "data-spacing": o.spacing,
3165
+ className: e("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", _a({
3166
+ variant: o.variant || r,
3167
+ size: o.size || i
3168
+ }), t),
3169
+ ...a,
3170
+ children: n
3171
+ });
3172
+ }
3173
+ //#endregion
3174
+ export { yi as $, Yt as $n, Ae as $r, fr as $t, Xi as A, hn as An, Ke as Ar, Pr as At, Bi as B, ln as Bn, Ge as Br, vr as Bt, Wi as C, Nn as Cn, gt as Cr, Kr as Ct, Li as D, vn as Dn, at as Dr, Vr as Dt, Ri as E, cn as En, pt as Er, Rr as Et, $i as F, xn as Fn, Qe as Fr, Tr as Ft, fi as G, Xt as Gn, Ne as Gr, kr as Gt, $ as H, sn as Hn, ke as Hr, xr as Ht, ta as I, Sn as In, it as Ir, Cr as It, pi as J, $t as Jn, Pe as Jr, jr as Jt, gi as K, en as Kn, Re as Kr, Ar as Kt, ea as L, fn as Ln, et as Lr, yr as Lt, Yi as M, dn as Mn, Ze as Mr, zr as Mt, qi as N, pn as Nn, tt as Nr, Ir as Nt, Ii as O, mn as On, ut as Or, Fr as Ot, Qi as P, yn as Pn, $e as Pr, _r as Pt, bi as Q, qt as Qn, Le as Qr, or as Qt, Mi as R, _n as Rn, qe as Rr, wr as Rt, Hi as S, Vn as Sn, ht as Sr, Wr as St, Ui as T, wn as Tn, dt as Tr, Nr as Tt, wi as U, on as Un, ze as Ur, Er as Ut, Pi as V, an as Vn, We as Vr, br as Vt, Ci as W, rn as Wn, Be as Wr, Or as Wt, _i as X, Zt as Xn, Me as Xr, hr as Xt, vi as Y, nn as Yn, Ie as Yr, Sr as Yt, xi as Z, Qt as Zn, je as Zr, gr as Zt, sa as _, Jn as _n, kt as _r, Yr as _t, ga as a, De as ai, cr as an, Vt as ar, ci as at, Vi as b, Hn as bn, bt as br, qr as bt, pa as c, ve as ci, nr as cn, Ut as cr, oi as ct, aa as d, he as di, er as dn, Lt as dr, $r as dt, xe as ei, lr as en, Jt as er, hi as et, ua as f, Kn as fn, It as fr, Qr as ft, ia as g, Wn as gn, Ot as gr, Zr as gt, ca as h, Qn as hn, At as hr, ti as ht, _a as i, Se as ii, pr as in, Gt as ir, li as it, Zi as j, bn as jn, Je as jr, Lr as jt, Ki as k, un as kn, lt as kr, Br as kt, ma as l, _e as li, $n as ln, Wt as lr, ii as lt, oa as m, Xn as mn, Dt as mr, ei as mt, xa as n, Ce as ni, mr as nn, Z as nr, ui as nt, da as o, Ee as oi, ir as on, Ht as or, si as ot, la as p, qn as pn, jt as pr, ni as pt, Si as q, tn as qn, Fe as qr, Mr as qt, va as r, Oe as ri, rr as rn, zt as rr, di as rt, ha as s, ye as si, ur as sn, Bt as sr, ai as st, ba as t, we as ti, dr as tn, Kt as tr, mi as tt, ra as u, ge as ui, tr as un, Rt as ur, Xr as ut, na as v, Un as vn, Et as vr, Hr as vt, Gi as w, Cn as wn, ft as wr, Gr as wt, zi as x, Yn as xn, X as xr, Q as xt, Ni as y, Zn as yn, xt as yr, Ur as yt, Fi as z, gn as zn, rt as zr, Dr as zt };