@webstacks/ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,4023 @@
1
+ "use client";
2
+
3
+ // src/lib/utils.ts
4
+ import { clsx } from "clsx";
5
+ import { twMerge } from "tailwind-merge";
6
+ function cn(...inputs) {
7
+ return twMerge(clsx(inputs));
8
+ }
9
+
10
+ // src/hooks/use-mobile.tsx
11
+ import * as React from "react";
12
+ var MOBILE_BREAKPOINT = 768;
13
+ function useIsMobile() {
14
+ const [isMobile, setIsMobile] = React.useState(void 0);
15
+ React.useEffect(() => {
16
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
17
+ const onChange = () => {
18
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
19
+ };
20
+ mql.addEventListener("change", onChange);
21
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
22
+ return () => mql.removeEventListener("change", onChange);
23
+ }, []);
24
+ return !!isMobile;
25
+ }
26
+
27
+ // src/hooks/use-toast.ts
28
+ import * as React2 from "react";
29
+ var TOAST_LIMIT = 1;
30
+ var TOAST_REMOVE_DELAY = 1e6;
31
+ var count = 0;
32
+ function genId() {
33
+ count = (count + 1) % Number.MAX_SAFE_INTEGER;
34
+ return count.toString();
35
+ }
36
+ var toastTimeouts = /* @__PURE__ */ new Map();
37
+ var addToRemoveQueue = (toastId) => {
38
+ if (toastTimeouts.has(toastId)) {
39
+ return;
40
+ }
41
+ const timeout = setTimeout(() => {
42
+ toastTimeouts.delete(toastId);
43
+ dispatch({
44
+ type: "REMOVE_TOAST",
45
+ toastId
46
+ });
47
+ }, TOAST_REMOVE_DELAY);
48
+ toastTimeouts.set(toastId, timeout);
49
+ };
50
+ var reducer = (state, action) => {
51
+ switch (action.type) {
52
+ case "ADD_TOAST":
53
+ return {
54
+ ...state,
55
+ toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
56
+ };
57
+ case "UPDATE_TOAST":
58
+ return {
59
+ ...state,
60
+ toasts: state.toasts.map(
61
+ (t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
62
+ )
63
+ };
64
+ case "DISMISS_TOAST": {
65
+ const { toastId } = action;
66
+ if (toastId) {
67
+ addToRemoveQueue(toastId);
68
+ } else {
69
+ state.toasts.forEach((toast2) => {
70
+ addToRemoveQueue(toast2.id);
71
+ });
72
+ }
73
+ return {
74
+ ...state,
75
+ toasts: state.toasts.map(
76
+ (t) => t.id === toastId || toastId === void 0 ? {
77
+ ...t,
78
+ open: false
79
+ } : t
80
+ )
81
+ };
82
+ }
83
+ case "REMOVE_TOAST":
84
+ if (action.toastId === void 0) {
85
+ return {
86
+ ...state,
87
+ toasts: []
88
+ };
89
+ }
90
+ return {
91
+ ...state,
92
+ toasts: state.toasts.filter((t) => t.id !== action.toastId)
93
+ };
94
+ }
95
+ };
96
+ var listeners = [];
97
+ var memoryState = { toasts: [] };
98
+ function dispatch(action) {
99
+ memoryState = reducer(memoryState, action);
100
+ listeners.forEach((listener) => {
101
+ listener(memoryState);
102
+ });
103
+ }
104
+ function toast({ ...props }) {
105
+ const id = genId();
106
+ const update = (props2) => dispatch({
107
+ type: "UPDATE_TOAST",
108
+ toast: { ...props2, id }
109
+ });
110
+ const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
111
+ dispatch({
112
+ type: "ADD_TOAST",
113
+ toast: {
114
+ ...props,
115
+ id,
116
+ open: true,
117
+ onOpenChange: (open) => {
118
+ if (!open) dismiss();
119
+ }
120
+ }
121
+ });
122
+ return {
123
+ id,
124
+ dismiss,
125
+ update
126
+ };
127
+ }
128
+ function useToast() {
129
+ const [state, setState] = React2.useState(memoryState);
130
+ React2.useEffect(() => {
131
+ listeners.push(setState);
132
+ return () => {
133
+ const index = listeners.indexOf(setState);
134
+ if (index > -1) {
135
+ listeners.splice(index, 1);
136
+ }
137
+ };
138
+ }, [state]);
139
+ return {
140
+ ...state,
141
+ toast,
142
+ dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
143
+ };
144
+ }
145
+
146
+ // src/components/ui/accordion.tsx
147
+ import * as React3 from "react";
148
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
149
+ import { ChevronDown } from "lucide-react";
150
+ import { jsx, jsxs } from "react/jsx-runtime";
151
+ var Accordion = AccordionPrimitive.Root;
152
+ var AccordionItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
153
+ AccordionPrimitive.Item,
154
+ {
155
+ ref,
156
+ className: cn("border-b", className),
157
+ ...props
158
+ }
159
+ ));
160
+ AccordionItem.displayName = "AccordionItem";
161
+ var AccordionTrigger = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
162
+ AccordionPrimitive.Trigger,
163
+ {
164
+ ref,
165
+ className: cn(
166
+ "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
167
+ className
168
+ ),
169
+ ...props,
170
+ children: [
171
+ children,
172
+ /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
173
+ ]
174
+ }
175
+ ) }));
176
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
177
+ var AccordionContent = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
178
+ AccordionPrimitive.Content,
179
+ {
180
+ ref,
181
+ className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
182
+ ...props,
183
+ children: /* @__PURE__ */ jsx("div", { className: cn("pb-4 pt-0", className), children })
184
+ }
185
+ ));
186
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
187
+
188
+ // src/components/ui/alert.tsx
189
+ import * as React4 from "react";
190
+ import { cva } from "class-variance-authority";
191
+ import { jsx as jsx2 } from "react/jsx-runtime";
192
+ var alertVariants = cva(
193
+ "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
194
+ {
195
+ variants: {
196
+ variant: {
197
+ default: "bg-background text-foreground",
198
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
199
+ }
200
+ },
201
+ defaultVariants: {
202
+ variant: "default"
203
+ }
204
+ }
205
+ );
206
+ var Alert = React4.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx2(
207
+ "div",
208
+ {
209
+ ref,
210
+ role: "alert",
211
+ className: cn(alertVariants({ variant }), className),
212
+ ...props
213
+ }
214
+ ));
215
+ Alert.displayName = "Alert";
216
+ var AlertTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
217
+ "h5",
218
+ {
219
+ ref,
220
+ className: cn("mb-1 font-medium leading-none tracking-tight", className),
221
+ ...props
222
+ }
223
+ ));
224
+ AlertTitle.displayName = "AlertTitle";
225
+ var AlertDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
226
+ "div",
227
+ {
228
+ ref,
229
+ className: cn("text-sm [&_p]:leading-relaxed", className),
230
+ ...props
231
+ }
232
+ ));
233
+ AlertDescription.displayName = "AlertDescription";
234
+
235
+ // src/components/ui/alert-dialog.tsx
236
+ import * as React6 from "react";
237
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
238
+
239
+ // src/components/ui/button.tsx
240
+ import * as React5 from "react";
241
+ import { Slot } from "@radix-ui/react-slot";
242
+ import { cva as cva2 } from "class-variance-authority";
243
+ import { jsx as jsx3 } from "react/jsx-runtime";
244
+ var buttonVariants = cva2(
245
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
246
+ {
247
+ variants: {
248
+ variant: {
249
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
250
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
251
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
252
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
253
+ ghost: "hover:bg-accent hover:text-accent-foreground",
254
+ link: "text-primary underline-offset-4 hover:underline"
255
+ },
256
+ size: {
257
+ default: "h-9 px-4 py-2",
258
+ sm: "h-8 rounded-md px-3 text-xs",
259
+ lg: "h-10 rounded-md px-8",
260
+ icon: "h-9 w-9"
261
+ }
262
+ },
263
+ defaultVariants: {
264
+ variant: "default",
265
+ size: "default"
266
+ }
267
+ }
268
+ );
269
+ var Button = React5.forwardRef(
270
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
271
+ const Comp = asChild ? Slot : "button";
272
+ return /* @__PURE__ */ jsx3(
273
+ Comp,
274
+ {
275
+ className: cn(buttonVariants({ variant, size, className })),
276
+ ref,
277
+ ...props
278
+ }
279
+ );
280
+ }
281
+ );
282
+ Button.displayName = "Button";
283
+
284
+ // src/components/ui/alert-dialog.tsx
285
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
286
+ var AlertDialog = AlertDialogPrimitive.Root;
287
+ var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
288
+ var AlertDialogPortal = AlertDialogPrimitive.Portal;
289
+ var AlertDialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
290
+ AlertDialogPrimitive.Overlay,
291
+ {
292
+ className: cn(
293
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
294
+ className
295
+ ),
296
+ ...props,
297
+ ref
298
+ }
299
+ ));
300
+ AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
301
+ var AlertDialogContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs2(AlertDialogPortal, { children: [
302
+ /* @__PURE__ */ jsx4(AlertDialogOverlay, {}),
303
+ /* @__PURE__ */ jsx4(
304
+ AlertDialogPrimitive.Content,
305
+ {
306
+ ref,
307
+ className: cn(
308
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
309
+ className
310
+ ),
311
+ ...props
312
+ }
313
+ )
314
+ ] }));
315
+ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
316
+ var AlertDialogHeader = ({
317
+ className,
318
+ ...props
319
+ }) => /* @__PURE__ */ jsx4(
320
+ "div",
321
+ {
322
+ className: cn(
323
+ "flex flex-col space-y-2 text-center sm:text-left",
324
+ className
325
+ ),
326
+ ...props
327
+ }
328
+ );
329
+ AlertDialogHeader.displayName = "AlertDialogHeader";
330
+ var AlertDialogFooter = ({
331
+ className,
332
+ ...props
333
+ }) => /* @__PURE__ */ jsx4(
334
+ "div",
335
+ {
336
+ className: cn(
337
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
338
+ className
339
+ ),
340
+ ...props
341
+ }
342
+ );
343
+ AlertDialogFooter.displayName = "AlertDialogFooter";
344
+ var AlertDialogTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
345
+ AlertDialogPrimitive.Title,
346
+ {
347
+ ref,
348
+ className: cn("text-lg font-semibold", className),
349
+ ...props
350
+ }
351
+ ));
352
+ AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
353
+ var AlertDialogDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
354
+ AlertDialogPrimitive.Description,
355
+ {
356
+ ref,
357
+ className: cn("text-sm text-muted-foreground", className),
358
+ ...props
359
+ }
360
+ ));
361
+ AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
362
+ var AlertDialogAction = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
363
+ AlertDialogPrimitive.Action,
364
+ {
365
+ ref,
366
+ className: cn(buttonVariants(), className),
367
+ ...props
368
+ }
369
+ ));
370
+ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
371
+ var AlertDialogCancel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
372
+ AlertDialogPrimitive.Cancel,
373
+ {
374
+ ref,
375
+ className: cn(
376
+ buttonVariants({ variant: "outline" }),
377
+ "mt-2 sm:mt-0",
378
+ className
379
+ ),
380
+ ...props
381
+ }
382
+ ));
383
+ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
384
+
385
+ // src/components/ui/aspect-ratio.tsx
386
+ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
387
+ var AspectRatio = AspectRatioPrimitive.Root;
388
+
389
+ // src/components/ui/avatar.tsx
390
+ import * as React7 from "react";
391
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
392
+ import { jsx as jsx5 } from "react/jsx-runtime";
393
+ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
394
+ AvatarPrimitive.Root,
395
+ {
396
+ ref,
397
+ className: cn(
398
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
399
+ className
400
+ ),
401
+ ...props
402
+ }
403
+ ));
404
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
405
+ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
406
+ AvatarPrimitive.Image,
407
+ {
408
+ ref,
409
+ className: cn("aspect-square h-full w-full", className),
410
+ ...props
411
+ }
412
+ ));
413
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
414
+ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
415
+ AvatarPrimitive.Fallback,
416
+ {
417
+ ref,
418
+ className: cn(
419
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
420
+ className
421
+ ),
422
+ ...props
423
+ }
424
+ ));
425
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
426
+
427
+ // src/components/ui/badge.tsx
428
+ import { cva as cva3 } from "class-variance-authority";
429
+ import { jsx as jsx6 } from "react/jsx-runtime";
430
+ var badgeVariants = cva3(
431
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
432
+ {
433
+ variants: {
434
+ variant: {
435
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
436
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
437
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
438
+ outline: "text-foreground"
439
+ }
440
+ },
441
+ defaultVariants: {
442
+ variant: "default"
443
+ }
444
+ }
445
+ );
446
+ function Badge({ className, variant, ...props }) {
447
+ return /* @__PURE__ */ jsx6("div", { className: cn(badgeVariants({ variant }), className), ...props });
448
+ }
449
+
450
+ // src/components/ui/breadcrumb.tsx
451
+ import * as React8 from "react";
452
+ import { Slot as Slot2 } from "@radix-ui/react-slot";
453
+ import { ChevronRight, MoreHorizontal } from "lucide-react";
454
+ import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
455
+ var Breadcrumb = React8.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx7("nav", { ref, "aria-label": "breadcrumb", ...props }));
456
+ Breadcrumb.displayName = "Breadcrumb";
457
+ var BreadcrumbList = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
458
+ "ol",
459
+ {
460
+ ref,
461
+ className: cn(
462
+ "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
463
+ className
464
+ ),
465
+ ...props
466
+ }
467
+ ));
468
+ BreadcrumbList.displayName = "BreadcrumbList";
469
+ var BreadcrumbItem = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
470
+ "li",
471
+ {
472
+ ref,
473
+ className: cn("inline-flex items-center gap-1.5", className),
474
+ ...props
475
+ }
476
+ ));
477
+ BreadcrumbItem.displayName = "BreadcrumbItem";
478
+ var BreadcrumbLink = React8.forwardRef(({ asChild, className, ...props }, ref) => {
479
+ const Comp = asChild ? Slot2 : "a";
480
+ return /* @__PURE__ */ jsx7(
481
+ Comp,
482
+ {
483
+ ref,
484
+ className: cn("transition-colors hover:text-foreground", className),
485
+ ...props
486
+ }
487
+ );
488
+ });
489
+ BreadcrumbLink.displayName = "BreadcrumbLink";
490
+ var BreadcrumbPage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
491
+ "span",
492
+ {
493
+ ref,
494
+ role: "link",
495
+ "aria-disabled": "true",
496
+ "aria-current": "page",
497
+ className: cn("font-normal text-foreground", className),
498
+ ...props
499
+ }
500
+ ));
501
+ BreadcrumbPage.displayName = "BreadcrumbPage";
502
+ var BreadcrumbSeparator = ({
503
+ children,
504
+ className,
505
+ ...props
506
+ }) => /* @__PURE__ */ jsx7(
507
+ "li",
508
+ {
509
+ role: "presentation",
510
+ "aria-hidden": "true",
511
+ className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
512
+ ...props,
513
+ children: children ?? /* @__PURE__ */ jsx7(ChevronRight, {})
514
+ }
515
+ );
516
+ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
517
+ var BreadcrumbEllipsis = ({
518
+ className,
519
+ ...props
520
+ }) => /* @__PURE__ */ jsxs3(
521
+ "span",
522
+ {
523
+ role: "presentation",
524
+ "aria-hidden": "true",
525
+ className: cn("flex h-9 w-9 items-center justify-center", className),
526
+ ...props,
527
+ children: [
528
+ /* @__PURE__ */ jsx7(MoreHorizontal, { className: "h-4 w-4" }),
529
+ /* @__PURE__ */ jsx7("span", { className: "sr-only", children: "More" })
530
+ ]
531
+ }
532
+ );
533
+ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
534
+
535
+ // src/components/ui/calendar.tsx
536
+ import * as React9 from "react";
537
+ import {
538
+ ChevronDownIcon,
539
+ ChevronLeftIcon,
540
+ ChevronRightIcon
541
+ } from "lucide-react";
542
+ import { DayPicker, getDefaultClassNames } from "react-day-picker";
543
+ import { jsx as jsx8 } from "react/jsx-runtime";
544
+ function Calendar({
545
+ className,
546
+ classNames,
547
+ showOutsideDays = true,
548
+ captionLayout = "label",
549
+ buttonVariant = "ghost",
550
+ formatters,
551
+ components,
552
+ ...props
553
+ }) {
554
+ const defaultClassNames = getDefaultClassNames();
555
+ return /* @__PURE__ */ jsx8(
556
+ DayPicker,
557
+ {
558
+ showOutsideDays,
559
+ className: cn(
560
+ "bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
561
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
562
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
563
+ className
564
+ ),
565
+ captionLayout,
566
+ formatters: {
567
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
568
+ ...formatters
569
+ },
570
+ classNames: {
571
+ root: cn("w-fit", defaultClassNames.root),
572
+ months: cn(
573
+ "relative flex flex-col gap-4 md:flex-row",
574
+ defaultClassNames.months
575
+ ),
576
+ month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
577
+ nav: cn(
578
+ "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
579
+ defaultClassNames.nav
580
+ ),
581
+ button_previous: cn(
582
+ buttonVariants({ variant: buttonVariant }),
583
+ "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
584
+ defaultClassNames.button_previous
585
+ ),
586
+ button_next: cn(
587
+ buttonVariants({ variant: buttonVariant }),
588
+ "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
589
+ defaultClassNames.button_next
590
+ ),
591
+ month_caption: cn(
592
+ "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",
593
+ defaultClassNames.month_caption
594
+ ),
595
+ dropdowns: cn(
596
+ "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",
597
+ defaultClassNames.dropdowns
598
+ ),
599
+ dropdown_root: cn(
600
+ "has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",
601
+ defaultClassNames.dropdown_root
602
+ ),
603
+ dropdown: cn(
604
+ "bg-popover absolute inset-0 opacity-0",
605
+ defaultClassNames.dropdown
606
+ ),
607
+ caption_label: cn(
608
+ "select-none font-medium",
609
+ captionLayout === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",
610
+ defaultClassNames.caption_label
611
+ ),
612
+ table: "w-full border-collapse",
613
+ weekdays: cn("flex", defaultClassNames.weekdays),
614
+ weekday: cn(
615
+ "text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",
616
+ defaultClassNames.weekday
617
+ ),
618
+ week: cn("mt-2 flex w-full", defaultClassNames.week),
619
+ week_number_header: cn(
620
+ "w-[--cell-size] select-none",
621
+ defaultClassNames.week_number_header
622
+ ),
623
+ week_number: cn(
624
+ "text-muted-foreground select-none text-[0.8rem]",
625
+ defaultClassNames.week_number
626
+ ),
627
+ day: cn(
628
+ "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",
629
+ defaultClassNames.day
630
+ ),
631
+ range_start: cn(
632
+ "bg-accent rounded-l-md",
633
+ defaultClassNames.range_start
634
+ ),
635
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
636
+ range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),
637
+ today: cn(
638
+ "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
639
+ defaultClassNames.today
640
+ ),
641
+ outside: cn(
642
+ "text-muted-foreground aria-selected:text-muted-foreground",
643
+ defaultClassNames.outside
644
+ ),
645
+ disabled: cn(
646
+ "text-muted-foreground opacity-50",
647
+ defaultClassNames.disabled
648
+ ),
649
+ hidden: cn("invisible", defaultClassNames.hidden),
650
+ ...classNames
651
+ },
652
+ components: {
653
+ Root: ({ className: className2, rootRef, ...props2 }) => {
654
+ return /* @__PURE__ */ jsx8(
655
+ "div",
656
+ {
657
+ "data-slot": "calendar",
658
+ ref: rootRef,
659
+ className: cn(className2),
660
+ ...props2
661
+ }
662
+ );
663
+ },
664
+ Chevron: ({ className: className2, orientation, ...props2 }) => {
665
+ if (orientation === "left") {
666
+ return /* @__PURE__ */ jsx8(ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
667
+ }
668
+ if (orientation === "right") {
669
+ return /* @__PURE__ */ jsx8(
670
+ ChevronRightIcon,
671
+ {
672
+ className: cn("size-4", className2),
673
+ ...props2
674
+ }
675
+ );
676
+ }
677
+ return /* @__PURE__ */ jsx8(ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
678
+ },
679
+ DayButton: CalendarDayButton,
680
+ WeekNumber: ({ children, ...props2 }) => {
681
+ return /* @__PURE__ */ jsx8("td", { ...props2, children: /* @__PURE__ */ jsx8("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
682
+ },
683
+ ...components
684
+ },
685
+ ...props
686
+ }
687
+ );
688
+ }
689
+ function CalendarDayButton({
690
+ className,
691
+ day,
692
+ modifiers,
693
+ ...props
694
+ }) {
695
+ const defaultClassNames = getDefaultClassNames();
696
+ const ref = React9.useRef(null);
697
+ React9.useEffect(() => {
698
+ if (modifiers.focused) ref.current?.focus();
699
+ }, [modifiers.focused]);
700
+ return /* @__PURE__ */ jsx8(
701
+ Button,
702
+ {
703
+ ref,
704
+ variant: "ghost",
705
+ size: "icon",
706
+ "data-day": day.date.toLocaleDateString(),
707
+ "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
708
+ "data-range-start": modifiers.range_start,
709
+ "data-range-end": modifiers.range_end,
710
+ "data-range-middle": modifiers.range_middle,
711
+ className: cn(
712
+ "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
713
+ defaultClassNames.day,
714
+ className
715
+ ),
716
+ ...props
717
+ }
718
+ );
719
+ }
720
+
721
+ // src/components/ui/card.tsx
722
+ import * as React10 from "react";
723
+ import { jsx as jsx9 } from "react/jsx-runtime";
724
+ var Card = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
725
+ "div",
726
+ {
727
+ ref,
728
+ className: cn(
729
+ "rounded-xl border bg-card text-card-foreground shadow",
730
+ className
731
+ ),
732
+ ...props
733
+ }
734
+ ));
735
+ Card.displayName = "Card";
736
+ var CardHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
737
+ "div",
738
+ {
739
+ ref,
740
+ className: cn("flex flex-col space-y-1.5 p-6", className),
741
+ ...props
742
+ }
743
+ ));
744
+ CardHeader.displayName = "CardHeader";
745
+ var CardTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
746
+ "div",
747
+ {
748
+ ref,
749
+ className: cn("font-semibold leading-none tracking-tight", className),
750
+ ...props
751
+ }
752
+ ));
753
+ CardTitle.displayName = "CardTitle";
754
+ var CardDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
755
+ "div",
756
+ {
757
+ ref,
758
+ className: cn("text-sm text-muted-foreground", className),
759
+ ...props
760
+ }
761
+ ));
762
+ CardDescription.displayName = "CardDescription";
763
+ var CardContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("p-6 pt-0", className), ...props }));
764
+ CardContent.displayName = "CardContent";
765
+ var CardFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
766
+ "div",
767
+ {
768
+ ref,
769
+ className: cn("flex items-center p-6 pt-0", className),
770
+ ...props
771
+ }
772
+ ));
773
+ CardFooter.displayName = "CardFooter";
774
+
775
+ // src/components/ui/carousel.tsx
776
+ import * as React11 from "react";
777
+ import useEmblaCarousel from "embla-carousel-react";
778
+ import { ArrowLeft, ArrowRight } from "lucide-react";
779
+ import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
780
+ var CarouselContext = React11.createContext(null);
781
+ function useCarousel() {
782
+ const context = React11.useContext(CarouselContext);
783
+ if (!context) {
784
+ throw new Error("useCarousel must be used within a <Carousel />");
785
+ }
786
+ return context;
787
+ }
788
+ var Carousel = React11.forwardRef(
789
+ ({
790
+ orientation = "horizontal",
791
+ opts,
792
+ setApi,
793
+ plugins,
794
+ className,
795
+ children,
796
+ ...props
797
+ }, ref) => {
798
+ const [carouselRef, api] = useEmblaCarousel(
799
+ {
800
+ ...opts,
801
+ axis: orientation === "horizontal" ? "x" : "y"
802
+ },
803
+ plugins
804
+ );
805
+ const [canScrollPrev, setCanScrollPrev] = React11.useState(false);
806
+ const [canScrollNext, setCanScrollNext] = React11.useState(false);
807
+ const onSelect = React11.useCallback((api2) => {
808
+ if (!api2) {
809
+ return;
810
+ }
811
+ setCanScrollPrev(api2.canScrollPrev());
812
+ setCanScrollNext(api2.canScrollNext());
813
+ }, []);
814
+ const scrollPrev = React11.useCallback(() => {
815
+ api?.scrollPrev();
816
+ }, [api]);
817
+ const scrollNext = React11.useCallback(() => {
818
+ api?.scrollNext();
819
+ }, [api]);
820
+ const handleKeyDown = React11.useCallback(
821
+ (event) => {
822
+ if (event.key === "ArrowLeft") {
823
+ event.preventDefault();
824
+ scrollPrev();
825
+ } else if (event.key === "ArrowRight") {
826
+ event.preventDefault();
827
+ scrollNext();
828
+ }
829
+ },
830
+ [scrollPrev, scrollNext]
831
+ );
832
+ React11.useEffect(() => {
833
+ if (!api || !setApi) {
834
+ return;
835
+ }
836
+ setApi(api);
837
+ }, [api, setApi]);
838
+ React11.useEffect(() => {
839
+ if (!api) {
840
+ return;
841
+ }
842
+ onSelect(api);
843
+ api.on("reInit", onSelect);
844
+ api.on("select", onSelect);
845
+ return () => {
846
+ api?.off("select", onSelect);
847
+ };
848
+ }, [api, onSelect]);
849
+ return /* @__PURE__ */ jsx10(
850
+ CarouselContext.Provider,
851
+ {
852
+ value: {
853
+ carouselRef,
854
+ api,
855
+ opts,
856
+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
857
+ scrollPrev,
858
+ scrollNext,
859
+ canScrollPrev,
860
+ canScrollNext
861
+ },
862
+ children: /* @__PURE__ */ jsx10(
863
+ "div",
864
+ {
865
+ ref,
866
+ onKeyDownCapture: handleKeyDown,
867
+ className: cn("relative", className),
868
+ role: "region",
869
+ "aria-roledescription": "carousel",
870
+ ...props,
871
+ children
872
+ }
873
+ )
874
+ }
875
+ );
876
+ }
877
+ );
878
+ Carousel.displayName = "Carousel";
879
+ var CarouselContent = React11.forwardRef(({ className, ...props }, ref) => {
880
+ const { carouselRef, orientation } = useCarousel();
881
+ return /* @__PURE__ */ jsx10("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx10(
882
+ "div",
883
+ {
884
+ ref,
885
+ className: cn(
886
+ "flex",
887
+ orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
888
+ className
889
+ ),
890
+ ...props
891
+ }
892
+ ) });
893
+ });
894
+ CarouselContent.displayName = "CarouselContent";
895
+ var CarouselItem = React11.forwardRef(({ className, ...props }, ref) => {
896
+ const { orientation } = useCarousel();
897
+ return /* @__PURE__ */ jsx10(
898
+ "div",
899
+ {
900
+ ref,
901
+ role: "group",
902
+ "aria-roledescription": "slide",
903
+ className: cn(
904
+ "min-w-0 shrink-0 grow-0 basis-full",
905
+ orientation === "horizontal" ? "pl-4" : "pt-4",
906
+ className
907
+ ),
908
+ ...props
909
+ }
910
+ );
911
+ });
912
+ CarouselItem.displayName = "CarouselItem";
913
+ var CarouselPrevious = React11.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
914
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
915
+ return /* @__PURE__ */ jsxs4(
916
+ Button,
917
+ {
918
+ ref,
919
+ variant,
920
+ size,
921
+ className: cn(
922
+ "absolute h-8 w-8 rounded-full",
923
+ orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
924
+ className
925
+ ),
926
+ disabled: !canScrollPrev,
927
+ onClick: scrollPrev,
928
+ ...props,
929
+ children: [
930
+ /* @__PURE__ */ jsx10(ArrowLeft, { className: "h-4 w-4" }),
931
+ /* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Previous slide" })
932
+ ]
933
+ }
934
+ );
935
+ });
936
+ CarouselPrevious.displayName = "CarouselPrevious";
937
+ var CarouselNext = React11.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
938
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
939
+ return /* @__PURE__ */ jsxs4(
940
+ Button,
941
+ {
942
+ ref,
943
+ variant,
944
+ size,
945
+ className: cn(
946
+ "absolute h-8 w-8 rounded-full",
947
+ orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
948
+ className
949
+ ),
950
+ disabled: !canScrollNext,
951
+ onClick: scrollNext,
952
+ ...props,
953
+ children: [
954
+ /* @__PURE__ */ jsx10(ArrowRight, { className: "h-4 w-4" }),
955
+ /* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Next slide" })
956
+ ]
957
+ }
958
+ );
959
+ });
960
+ CarouselNext.displayName = "CarouselNext";
961
+
962
+ // src/components/ui/chart.tsx
963
+ import * as React12 from "react";
964
+ import * as RechartsPrimitive from "recharts";
965
+ import { Fragment, jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
966
+ var THEMES = { light: "", dark: ".dark" };
967
+ var ChartContext = React12.createContext(null);
968
+ function useChart() {
969
+ const context = React12.useContext(ChartContext);
970
+ if (!context) {
971
+ throw new Error("useChart must be used within a <ChartContainer />");
972
+ }
973
+ return context;
974
+ }
975
+ var ChartContainer = React12.forwardRef(({ id, className, children, config, ...props }, ref) => {
976
+ const uniqueId = React12.useId();
977
+ const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
978
+ return /* @__PURE__ */ jsx11(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs5(
979
+ "div",
980
+ {
981
+ "data-chart": chartId,
982
+ ref,
983
+ className: cn(
984
+ "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
985
+ className
986
+ ),
987
+ ...props,
988
+ children: [
989
+ /* @__PURE__ */ jsx11(ChartStyle, { id: chartId, config }),
990
+ /* @__PURE__ */ jsx11(RechartsPrimitive.ResponsiveContainer, { children })
991
+ ]
992
+ }
993
+ ) });
994
+ });
995
+ ChartContainer.displayName = "Chart";
996
+ var ChartStyle = ({ id, config }) => {
997
+ const colorConfig = Object.entries(config).filter(
998
+ ([, config2]) => config2.theme || config2.color
999
+ );
1000
+ if (!colorConfig.length) {
1001
+ return null;
1002
+ }
1003
+ return /* @__PURE__ */ jsx11(
1004
+ "style",
1005
+ {
1006
+ dangerouslySetInnerHTML: {
1007
+ __html: Object.entries(THEMES).map(
1008
+ ([theme, prefix]) => `
1009
+ ${prefix} [data-chart=${id}] {
1010
+ ${colorConfig.map(([key, itemConfig]) => {
1011
+ const color = itemConfig.theme?.[theme] || itemConfig.color;
1012
+ return color ? ` --color-${key}: ${color};` : null;
1013
+ }).join("\n")}
1014
+ }
1015
+ `
1016
+ ).join("\n")
1017
+ }
1018
+ }
1019
+ );
1020
+ };
1021
+ var ChartTooltip = RechartsPrimitive.Tooltip;
1022
+ var ChartTooltipContent = React12.forwardRef(
1023
+ ({
1024
+ active,
1025
+ payload,
1026
+ className,
1027
+ indicator = "dot",
1028
+ hideLabel = false,
1029
+ hideIndicator = false,
1030
+ label,
1031
+ labelFormatter,
1032
+ labelClassName,
1033
+ formatter,
1034
+ color,
1035
+ nameKey,
1036
+ labelKey
1037
+ }, ref) => {
1038
+ const { config } = useChart();
1039
+ const tooltipLabel = React12.useMemo(() => {
1040
+ if (hideLabel || !payload?.length) {
1041
+ return null;
1042
+ }
1043
+ const [item] = payload;
1044
+ const key = `${labelKey || item?.dataKey || item?.name || "value"}`;
1045
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
1046
+ const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
1047
+ if (labelFormatter) {
1048
+ return /* @__PURE__ */ jsx11("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
1049
+ }
1050
+ if (!value) {
1051
+ return null;
1052
+ }
1053
+ return /* @__PURE__ */ jsx11("div", { className: cn("font-medium", labelClassName), children: value });
1054
+ }, [
1055
+ label,
1056
+ labelFormatter,
1057
+ payload,
1058
+ hideLabel,
1059
+ labelClassName,
1060
+ config,
1061
+ labelKey
1062
+ ]);
1063
+ if (!active || !payload?.length) {
1064
+ return null;
1065
+ }
1066
+ const nestLabel = payload.length === 1 && indicator !== "dot";
1067
+ return /* @__PURE__ */ jsxs5(
1068
+ "div",
1069
+ {
1070
+ ref,
1071
+ className: cn(
1072
+ "grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
1073
+ className
1074
+ ),
1075
+ children: [
1076
+ !nestLabel ? tooltipLabel : null,
1077
+ /* @__PURE__ */ jsx11("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
1078
+ const key = `${nameKey || item.name || item.dataKey || "value"}`;
1079
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
1080
+ const indicatorColor = color || item.payload.fill || item.color;
1081
+ return /* @__PURE__ */ jsx11(
1082
+ "div",
1083
+ {
1084
+ className: cn(
1085
+ "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
1086
+ indicator === "dot" && "items-center"
1087
+ ),
1088
+ children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs5(Fragment, { children: [
1089
+ itemConfig?.icon ? /* @__PURE__ */ jsx11(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx11(
1090
+ "div",
1091
+ {
1092
+ className: cn(
1093
+ "shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",
1094
+ {
1095
+ "h-2.5 w-2.5": indicator === "dot",
1096
+ "w-1": indicator === "line",
1097
+ "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
1098
+ "my-0.5": nestLabel && indicator === "dashed"
1099
+ }
1100
+ ),
1101
+ style: {
1102
+ "--color-bg": indicatorColor,
1103
+ "--color-border": indicatorColor
1104
+ }
1105
+ }
1106
+ ),
1107
+ /* @__PURE__ */ jsxs5(
1108
+ "div",
1109
+ {
1110
+ className: cn(
1111
+ "flex flex-1 justify-between leading-none",
1112
+ nestLabel ? "items-end" : "items-center"
1113
+ ),
1114
+ children: [
1115
+ /* @__PURE__ */ jsxs5("div", { className: "grid gap-1.5", children: [
1116
+ nestLabel ? tooltipLabel : null,
1117
+ /* @__PURE__ */ jsx11("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
1118
+ ] }),
1119
+ item.value && /* @__PURE__ */ jsx11("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
1120
+ ]
1121
+ }
1122
+ )
1123
+ ] })
1124
+ },
1125
+ item.dataKey
1126
+ );
1127
+ }) })
1128
+ ]
1129
+ }
1130
+ );
1131
+ }
1132
+ );
1133
+ ChartTooltipContent.displayName = "ChartTooltip";
1134
+ var ChartLegend = RechartsPrimitive.Legend;
1135
+ var ChartLegendContent = React12.forwardRef(
1136
+ ({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
1137
+ const { config } = useChart();
1138
+ if (!payload?.length) {
1139
+ return null;
1140
+ }
1141
+ return /* @__PURE__ */ jsx11(
1142
+ "div",
1143
+ {
1144
+ ref,
1145
+ className: cn(
1146
+ "flex items-center justify-center gap-4",
1147
+ verticalAlign === "top" ? "pb-3" : "pt-3",
1148
+ className
1149
+ ),
1150
+ children: payload.filter((item) => item.type !== "none").map((item) => {
1151
+ const key = `${nameKey || item.dataKey || "value"}`;
1152
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
1153
+ return /* @__PURE__ */ jsxs5(
1154
+ "div",
1155
+ {
1156
+ className: cn(
1157
+ "flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
1158
+ ),
1159
+ children: [
1160
+ itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx11(itemConfig.icon, {}) : /* @__PURE__ */ jsx11(
1161
+ "div",
1162
+ {
1163
+ className: "h-2 w-2 shrink-0 rounded-[2px]",
1164
+ style: {
1165
+ backgroundColor: item.color
1166
+ }
1167
+ }
1168
+ ),
1169
+ itemConfig?.label
1170
+ ]
1171
+ },
1172
+ item.value
1173
+ );
1174
+ })
1175
+ }
1176
+ );
1177
+ }
1178
+ );
1179
+ ChartLegendContent.displayName = "ChartLegend";
1180
+ function getPayloadConfigFromPayload(config, payload, key) {
1181
+ if (typeof payload !== "object" || payload === null) {
1182
+ return void 0;
1183
+ }
1184
+ const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
1185
+ let configLabelKey = key;
1186
+ if (key in payload && typeof payload[key] === "string") {
1187
+ configLabelKey = payload[key];
1188
+ } else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
1189
+ configLabelKey = payloadPayload[key];
1190
+ }
1191
+ return configLabelKey in config ? config[configLabelKey] : config[key];
1192
+ }
1193
+
1194
+ // src/components/ui/checkbox.tsx
1195
+ import * as React13 from "react";
1196
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
1197
+ import { Check } from "lucide-react";
1198
+ import { jsx as jsx12 } from "react/jsx-runtime";
1199
+ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
1200
+ CheckboxPrimitive.Root,
1201
+ {
1202
+ ref,
1203
+ className: cn(
1204
+ "grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
1205
+ className
1206
+ ),
1207
+ ...props,
1208
+ children: /* @__PURE__ */ jsx12(
1209
+ CheckboxPrimitive.Indicator,
1210
+ {
1211
+ className: cn("grid place-content-center text-current"),
1212
+ children: /* @__PURE__ */ jsx12(Check, { className: "h-4 w-4" })
1213
+ }
1214
+ )
1215
+ }
1216
+ ));
1217
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
1218
+
1219
+ // src/components/ui/collapsible.tsx
1220
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
1221
+ var Collapsible = CollapsiblePrimitive.Root;
1222
+ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
1223
+ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
1224
+
1225
+ // src/components/ui/command.tsx
1226
+ import * as React15 from "react";
1227
+ import { Command as CommandPrimitive } from "cmdk";
1228
+ import { Search } from "lucide-react";
1229
+
1230
+ // src/components/ui/dialog.tsx
1231
+ import * as React14 from "react";
1232
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
1233
+ import { X } from "lucide-react";
1234
+ import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
1235
+ var Dialog = DialogPrimitive.Root;
1236
+ var DialogTrigger = DialogPrimitive.Trigger;
1237
+ var DialogPortal = DialogPrimitive.Portal;
1238
+ var DialogClose = DialogPrimitive.Close;
1239
+ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
1240
+ DialogPrimitive.Overlay,
1241
+ {
1242
+ ref,
1243
+ className: cn(
1244
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1245
+ className
1246
+ ),
1247
+ ...props
1248
+ }
1249
+ ));
1250
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1251
+ var DialogContent = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(DialogPortal, { children: [
1252
+ /* @__PURE__ */ jsx13(DialogOverlay, {}),
1253
+ /* @__PURE__ */ jsxs6(
1254
+ DialogPrimitive.Content,
1255
+ {
1256
+ ref,
1257
+ className: cn(
1258
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
1259
+ className
1260
+ ),
1261
+ ...props,
1262
+ children: [
1263
+ children,
1264
+ /* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
1265
+ /* @__PURE__ */ jsx13(X, { className: "h-4 w-4" }),
1266
+ /* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Close" })
1267
+ ] })
1268
+ ]
1269
+ }
1270
+ )
1271
+ ] }));
1272
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
1273
+ var DialogHeader = ({
1274
+ className,
1275
+ ...props
1276
+ }) => /* @__PURE__ */ jsx13(
1277
+ "div",
1278
+ {
1279
+ className: cn(
1280
+ "flex flex-col space-y-1.5 text-center sm:text-left",
1281
+ className
1282
+ ),
1283
+ ...props
1284
+ }
1285
+ );
1286
+ DialogHeader.displayName = "DialogHeader";
1287
+ var DialogFooter = ({
1288
+ className,
1289
+ ...props
1290
+ }) => /* @__PURE__ */ jsx13(
1291
+ "div",
1292
+ {
1293
+ className: cn(
1294
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
1295
+ className
1296
+ ),
1297
+ ...props
1298
+ }
1299
+ );
1300
+ DialogFooter.displayName = "DialogFooter";
1301
+ var DialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
1302
+ DialogPrimitive.Title,
1303
+ {
1304
+ ref,
1305
+ className: cn(
1306
+ "text-lg font-semibold leading-none tracking-tight",
1307
+ className
1308
+ ),
1309
+ ...props
1310
+ }
1311
+ ));
1312
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
1313
+ var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
1314
+ DialogPrimitive.Description,
1315
+ {
1316
+ ref,
1317
+ className: cn("text-sm text-muted-foreground", className),
1318
+ ...props
1319
+ }
1320
+ ));
1321
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
1322
+
1323
+ // src/components/ui/command.tsx
1324
+ import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
1325
+ var Command = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
1326
+ CommandPrimitive,
1327
+ {
1328
+ ref,
1329
+ className: cn(
1330
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
1331
+ className
1332
+ ),
1333
+ ...props
1334
+ }
1335
+ ));
1336
+ Command.displayName = CommandPrimitive.displayName;
1337
+ var CommandDialog = ({ children, ...props }) => {
1338
+ return /* @__PURE__ */ jsx14(Dialog, { ...props, children: /* @__PURE__ */ jsx14(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx14(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
1339
+ };
1340
+ var CommandInput = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs7("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1341
+ /* @__PURE__ */ jsx14(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
1342
+ /* @__PURE__ */ jsx14(
1343
+ CommandPrimitive.Input,
1344
+ {
1345
+ ref,
1346
+ className: cn(
1347
+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
1348
+ className
1349
+ ),
1350
+ ...props
1351
+ }
1352
+ )
1353
+ ] }));
1354
+ CommandInput.displayName = CommandPrimitive.Input.displayName;
1355
+ var CommandList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
1356
+ CommandPrimitive.List,
1357
+ {
1358
+ ref,
1359
+ className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
1360
+ ...props
1361
+ }
1362
+ ));
1363
+ CommandList.displayName = CommandPrimitive.List.displayName;
1364
+ var CommandEmpty = React15.forwardRef((props, ref) => /* @__PURE__ */ jsx14(
1365
+ CommandPrimitive.Empty,
1366
+ {
1367
+ ref,
1368
+ className: "py-6 text-center text-sm",
1369
+ ...props
1370
+ }
1371
+ ));
1372
+ CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
1373
+ var CommandGroup = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
1374
+ CommandPrimitive.Group,
1375
+ {
1376
+ ref,
1377
+ className: cn(
1378
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
1379
+ className
1380
+ ),
1381
+ ...props
1382
+ }
1383
+ ));
1384
+ CommandGroup.displayName = CommandPrimitive.Group.displayName;
1385
+ var CommandSeparator = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
1386
+ CommandPrimitive.Separator,
1387
+ {
1388
+ ref,
1389
+ className: cn("-mx-1 h-px bg-border", className),
1390
+ ...props
1391
+ }
1392
+ ));
1393
+ CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
1394
+ var CommandItem = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
1395
+ CommandPrimitive.Item,
1396
+ {
1397
+ ref,
1398
+ className: cn(
1399
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1400
+ className
1401
+ ),
1402
+ ...props
1403
+ }
1404
+ ));
1405
+ CommandItem.displayName = CommandPrimitive.Item.displayName;
1406
+ var CommandShortcut = ({
1407
+ className,
1408
+ ...props
1409
+ }) => {
1410
+ return /* @__PURE__ */ jsx14(
1411
+ "span",
1412
+ {
1413
+ className: cn(
1414
+ "ml-auto text-xs tracking-widest text-muted-foreground",
1415
+ className
1416
+ ),
1417
+ ...props
1418
+ }
1419
+ );
1420
+ };
1421
+ CommandShortcut.displayName = "CommandShortcut";
1422
+
1423
+ // src/components/ui/context-menu.tsx
1424
+ import * as React16 from "react";
1425
+ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
1426
+ import { Check as Check2, ChevronRight as ChevronRight2, Circle } from "lucide-react";
1427
+ import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
1428
+ var ContextMenu = ContextMenuPrimitive.Root;
1429
+ var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
1430
+ var ContextMenuGroup = ContextMenuPrimitive.Group;
1431
+ var ContextMenuPortal = ContextMenuPrimitive.Portal;
1432
+ var ContextMenuSub = ContextMenuPrimitive.Sub;
1433
+ var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
1434
+ var ContextMenuSubTrigger = React16.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs8(
1435
+ ContextMenuPrimitive.SubTrigger,
1436
+ {
1437
+ ref,
1438
+ className: cn(
1439
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
1440
+ inset && "pl-8",
1441
+ className
1442
+ ),
1443
+ ...props,
1444
+ children: [
1445
+ children,
1446
+ /* @__PURE__ */ jsx15(ChevronRight2, { className: "ml-auto h-4 w-4" })
1447
+ ]
1448
+ }
1449
+ ));
1450
+ ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
1451
+ var ContextMenuSubContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1452
+ ContextMenuPrimitive.SubContent,
1453
+ {
1454
+ ref,
1455
+ className: cn(
1456
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",
1457
+ className
1458
+ ),
1459
+ ...props
1460
+ }
1461
+ ));
1462
+ ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
1463
+ var ContextMenuContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx15(
1464
+ ContextMenuPrimitive.Content,
1465
+ {
1466
+ ref,
1467
+ className: cn(
1468
+ "z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",
1469
+ className
1470
+ ),
1471
+ ...props
1472
+ }
1473
+ ) }));
1474
+ ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
1475
+ var ContextMenuItem = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx15(
1476
+ ContextMenuPrimitive.Item,
1477
+ {
1478
+ ref,
1479
+ className: cn(
1480
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1481
+ inset && "pl-8",
1482
+ className
1483
+ ),
1484
+ ...props
1485
+ }
1486
+ ));
1487
+ ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
1488
+ var ContextMenuCheckboxItem = React16.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs8(
1489
+ ContextMenuPrimitive.CheckboxItem,
1490
+ {
1491
+ ref,
1492
+ className: cn(
1493
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1494
+ className
1495
+ ),
1496
+ checked,
1497
+ ...props,
1498
+ children: [
1499
+ /* @__PURE__ */ jsx15("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx15(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx15(Check2, { className: "h-4 w-4" }) }) }),
1500
+ children
1501
+ ]
1502
+ }
1503
+ ));
1504
+ ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
1505
+ var ContextMenuRadioItem = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs8(
1506
+ ContextMenuPrimitive.RadioItem,
1507
+ {
1508
+ ref,
1509
+ className: cn(
1510
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1511
+ className
1512
+ ),
1513
+ ...props,
1514
+ children: [
1515
+ /* @__PURE__ */ jsx15("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx15(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx15(Circle, { className: "h-4 w-4 fill-current" }) }) }),
1516
+ children
1517
+ ]
1518
+ }
1519
+ ));
1520
+ ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
1521
+ var ContextMenuLabel = React16.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx15(
1522
+ ContextMenuPrimitive.Label,
1523
+ {
1524
+ ref,
1525
+ className: cn(
1526
+ "px-2 py-1.5 text-sm font-semibold text-foreground",
1527
+ inset && "pl-8",
1528
+ className
1529
+ ),
1530
+ ...props
1531
+ }
1532
+ ));
1533
+ ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
1534
+ var ContextMenuSeparator = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
1535
+ ContextMenuPrimitive.Separator,
1536
+ {
1537
+ ref,
1538
+ className: cn("-mx-1 my-1 h-px bg-border", className),
1539
+ ...props
1540
+ }
1541
+ ));
1542
+ ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
1543
+ var ContextMenuShortcut = ({
1544
+ className,
1545
+ ...props
1546
+ }) => {
1547
+ return /* @__PURE__ */ jsx15(
1548
+ "span",
1549
+ {
1550
+ className: cn(
1551
+ "ml-auto text-xs tracking-widest text-muted-foreground",
1552
+ className
1553
+ ),
1554
+ ...props
1555
+ }
1556
+ );
1557
+ };
1558
+ ContextMenuShortcut.displayName = "ContextMenuShortcut";
1559
+
1560
+ // src/components/ui/drawer.tsx
1561
+ import * as React17 from "react";
1562
+ import { Drawer as DrawerPrimitive } from "vaul";
1563
+ import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
1564
+ var Drawer = ({
1565
+ shouldScaleBackground = true,
1566
+ ...props
1567
+ }) => /* @__PURE__ */ jsx16(
1568
+ DrawerPrimitive.Root,
1569
+ {
1570
+ shouldScaleBackground,
1571
+ ...props
1572
+ }
1573
+ );
1574
+ Drawer.displayName = "Drawer";
1575
+ var DrawerTrigger = DrawerPrimitive.Trigger;
1576
+ var DrawerPortal = DrawerPrimitive.Portal;
1577
+ var DrawerClose = DrawerPrimitive.Close;
1578
+ var DrawerOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
1579
+ DrawerPrimitive.Overlay,
1580
+ {
1581
+ ref,
1582
+ className: cn("fixed inset-0 z-50 bg-black/80", className),
1583
+ ...props
1584
+ }
1585
+ ));
1586
+ DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
1587
+ var DrawerContent = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(DrawerPortal, { children: [
1588
+ /* @__PURE__ */ jsx16(DrawerOverlay, {}),
1589
+ /* @__PURE__ */ jsxs9(
1590
+ DrawerPrimitive.Content,
1591
+ {
1592
+ ref,
1593
+ className: cn(
1594
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
1595
+ className
1596
+ ),
1597
+ ...props,
1598
+ children: [
1599
+ /* @__PURE__ */ jsx16("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
1600
+ children
1601
+ ]
1602
+ }
1603
+ )
1604
+ ] }));
1605
+ DrawerContent.displayName = "DrawerContent";
1606
+ var DrawerHeader = ({
1607
+ className,
1608
+ ...props
1609
+ }) => /* @__PURE__ */ jsx16(
1610
+ "div",
1611
+ {
1612
+ className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
1613
+ ...props
1614
+ }
1615
+ );
1616
+ DrawerHeader.displayName = "DrawerHeader";
1617
+ var DrawerFooter = ({
1618
+ className,
1619
+ ...props
1620
+ }) => /* @__PURE__ */ jsx16(
1621
+ "div",
1622
+ {
1623
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
1624
+ ...props
1625
+ }
1626
+ );
1627
+ DrawerFooter.displayName = "DrawerFooter";
1628
+ var DrawerTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
1629
+ DrawerPrimitive.Title,
1630
+ {
1631
+ ref,
1632
+ className: cn(
1633
+ "text-lg font-semibold leading-none tracking-tight",
1634
+ className
1635
+ ),
1636
+ ...props
1637
+ }
1638
+ ));
1639
+ DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
1640
+ var DrawerDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
1641
+ DrawerPrimitive.Description,
1642
+ {
1643
+ ref,
1644
+ className: cn("text-sm text-muted-foreground", className),
1645
+ ...props
1646
+ }
1647
+ ));
1648
+ DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
1649
+
1650
+ // src/components/ui/dropdown-menu.tsx
1651
+ import * as React18 from "react";
1652
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1653
+ import { Check as Check3, ChevronRight as ChevronRight3, Circle as Circle2 } from "lucide-react";
1654
+ import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
1655
+ var DropdownMenu = DropdownMenuPrimitive.Root;
1656
+ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1657
+ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
1658
+ var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
1659
+ var DropdownMenuSub = DropdownMenuPrimitive.Sub;
1660
+ var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
1661
+ var DropdownMenuSubTrigger = React18.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
1662
+ DropdownMenuPrimitive.SubTrigger,
1663
+ {
1664
+ ref,
1665
+ className: cn(
1666
+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1667
+ inset && "pl-8",
1668
+ className
1669
+ ),
1670
+ ...props,
1671
+ children: [
1672
+ children,
1673
+ /* @__PURE__ */ jsx17(ChevronRight3, { className: "ml-auto" })
1674
+ ]
1675
+ }
1676
+ ));
1677
+ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
1678
+ var DropdownMenuSubContent = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1679
+ DropdownMenuPrimitive.SubContent,
1680
+ {
1681
+ ref,
1682
+ className: cn(
1683
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
1684
+ className
1685
+ ),
1686
+ ...props
1687
+ }
1688
+ ));
1689
+ DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
1690
+ var DropdownMenuContent = React18.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx17(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx17(
1691
+ DropdownMenuPrimitive.Content,
1692
+ {
1693
+ ref,
1694
+ sideOffset,
1695
+ className: cn(
1696
+ "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1697
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
1698
+ className
1699
+ ),
1700
+ ...props
1701
+ }
1702
+ ) }));
1703
+ DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1704
+ var DropdownMenuItem = React18.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx17(
1705
+ DropdownMenuPrimitive.Item,
1706
+ {
1707
+ ref,
1708
+ className: cn(
1709
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
1710
+ inset && "pl-8",
1711
+ className
1712
+ ),
1713
+ ...props
1714
+ }
1715
+ ));
1716
+ DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1717
+ var DropdownMenuCheckboxItem = React18.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs10(
1718
+ DropdownMenuPrimitive.CheckboxItem,
1719
+ {
1720
+ ref,
1721
+ className: cn(
1722
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1723
+ className
1724
+ ),
1725
+ checked,
1726
+ ...props,
1727
+ children: [
1728
+ /* @__PURE__ */ jsx17("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx17(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx17(Check3, { className: "h-4 w-4" }) }) }),
1729
+ children
1730
+ ]
1731
+ }
1732
+ ));
1733
+ DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
1734
+ var DropdownMenuRadioItem = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
1735
+ DropdownMenuPrimitive.RadioItem,
1736
+ {
1737
+ ref,
1738
+ className: cn(
1739
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1740
+ className
1741
+ ),
1742
+ ...props,
1743
+ children: [
1744
+ /* @__PURE__ */ jsx17("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx17(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx17(Circle2, { className: "h-2 w-2 fill-current" }) }) }),
1745
+ children
1746
+ ]
1747
+ }
1748
+ ));
1749
+ DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
1750
+ var DropdownMenuLabel = React18.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx17(
1751
+ DropdownMenuPrimitive.Label,
1752
+ {
1753
+ ref,
1754
+ className: cn(
1755
+ "px-2 py-1.5 text-sm font-semibold",
1756
+ inset && "pl-8",
1757
+ className
1758
+ ),
1759
+ ...props
1760
+ }
1761
+ ));
1762
+ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1763
+ var DropdownMenuSeparator = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1764
+ DropdownMenuPrimitive.Separator,
1765
+ {
1766
+ ref,
1767
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
1768
+ ...props
1769
+ }
1770
+ ));
1771
+ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
1772
+ var DropdownMenuShortcut = ({
1773
+ className,
1774
+ ...props
1775
+ }) => {
1776
+ return /* @__PURE__ */ jsx17(
1777
+ "span",
1778
+ {
1779
+ className: cn("ml-auto text-xs tracking-widest opacity-60", className),
1780
+ ...props
1781
+ }
1782
+ );
1783
+ };
1784
+ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
1785
+
1786
+ // src/components/ui/form.tsx
1787
+ import * as React20 from "react";
1788
+ import { Slot as Slot3 } from "@radix-ui/react-slot";
1789
+ import {
1790
+ Controller,
1791
+ FormProvider,
1792
+ useFormContext
1793
+ } from "react-hook-form";
1794
+
1795
+ // src/components/ui/label.tsx
1796
+ import * as React19 from "react";
1797
+ import * as LabelPrimitive from "@radix-ui/react-label";
1798
+ import { cva as cva4 } from "class-variance-authority";
1799
+ import { jsx as jsx18 } from "react/jsx-runtime";
1800
+ var labelVariants = cva4(
1801
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1802
+ );
1803
+ var Label3 = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
1804
+ LabelPrimitive.Root,
1805
+ {
1806
+ ref,
1807
+ className: cn(labelVariants(), className),
1808
+ ...props
1809
+ }
1810
+ ));
1811
+ Label3.displayName = LabelPrimitive.Root.displayName;
1812
+
1813
+ // src/components/ui/form.tsx
1814
+ import { jsx as jsx19 } from "react/jsx-runtime";
1815
+ var Form = FormProvider;
1816
+ var FormFieldContext = React20.createContext(null);
1817
+ var FormField = ({
1818
+ ...props
1819
+ }) => {
1820
+ return /* @__PURE__ */ jsx19(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx19(Controller, { ...props }) });
1821
+ };
1822
+ var useFormField = () => {
1823
+ const fieldContext = React20.useContext(FormFieldContext);
1824
+ const itemContext = React20.useContext(FormItemContext);
1825
+ const { getFieldState, formState } = useFormContext();
1826
+ if (!fieldContext) {
1827
+ throw new Error("useFormField should be used within <FormField>");
1828
+ }
1829
+ if (!itemContext) {
1830
+ throw new Error("useFormField should be used within <FormItem>");
1831
+ }
1832
+ const fieldState = getFieldState(fieldContext.name, formState);
1833
+ const { id } = itemContext;
1834
+ return {
1835
+ id,
1836
+ name: fieldContext.name,
1837
+ formItemId: `${id}-form-item`,
1838
+ formDescriptionId: `${id}-form-item-description`,
1839
+ formMessageId: `${id}-form-item-message`,
1840
+ ...fieldState
1841
+ };
1842
+ };
1843
+ var FormItemContext = React20.createContext(null);
1844
+ var FormItem = React20.forwardRef(({ className, ...props }, ref) => {
1845
+ const id = React20.useId();
1846
+ return /* @__PURE__ */ jsx19(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx19("div", { ref, className: cn("space-y-2", className), ...props }) });
1847
+ });
1848
+ FormItem.displayName = "FormItem";
1849
+ var FormLabel = React20.forwardRef(({ className, ...props }, ref) => {
1850
+ const { error, formItemId } = useFormField();
1851
+ return /* @__PURE__ */ jsx19(
1852
+ Label3,
1853
+ {
1854
+ ref,
1855
+ className: cn(error && "text-destructive", className),
1856
+ htmlFor: formItemId,
1857
+ ...props
1858
+ }
1859
+ );
1860
+ });
1861
+ FormLabel.displayName = "FormLabel";
1862
+ var FormControl = React20.forwardRef(({ ...props }, ref) => {
1863
+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
1864
+ return /* @__PURE__ */ jsx19(
1865
+ Slot3,
1866
+ {
1867
+ ref,
1868
+ id: formItemId,
1869
+ "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
1870
+ "aria-invalid": !!error,
1871
+ ...props
1872
+ }
1873
+ );
1874
+ });
1875
+ FormControl.displayName = "FormControl";
1876
+ var FormDescription = React20.forwardRef(({ className, ...props }, ref) => {
1877
+ const { formDescriptionId } = useFormField();
1878
+ return /* @__PURE__ */ jsx19(
1879
+ "p",
1880
+ {
1881
+ ref,
1882
+ id: formDescriptionId,
1883
+ className: cn("text-[0.8rem] text-muted-foreground", className),
1884
+ ...props
1885
+ }
1886
+ );
1887
+ });
1888
+ FormDescription.displayName = "FormDescription";
1889
+ var FormMessage = React20.forwardRef(({ className, children, ...props }, ref) => {
1890
+ const { error, formMessageId } = useFormField();
1891
+ const body = error ? String(error?.message ?? "") : children;
1892
+ if (!body) {
1893
+ return null;
1894
+ }
1895
+ return /* @__PURE__ */ jsx19(
1896
+ "p",
1897
+ {
1898
+ ref,
1899
+ id: formMessageId,
1900
+ className: cn("text-[0.8rem] font-medium text-destructive", className),
1901
+ ...props,
1902
+ children: body
1903
+ }
1904
+ );
1905
+ });
1906
+ FormMessage.displayName = "FormMessage";
1907
+
1908
+ // src/components/ui/hover-card.tsx
1909
+ import * as React21 from "react";
1910
+ import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
1911
+ import { jsx as jsx20 } from "react/jsx-runtime";
1912
+ var HoverCard = HoverCardPrimitive.Root;
1913
+ var HoverCardTrigger = HoverCardPrimitive.Trigger;
1914
+ var HoverCardContent = React21.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx20(
1915
+ HoverCardPrimitive.Content,
1916
+ {
1917
+ ref,
1918
+ align,
1919
+ sideOffset,
1920
+ className: cn(
1921
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",
1922
+ className
1923
+ ),
1924
+ ...props
1925
+ }
1926
+ ));
1927
+ HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
1928
+
1929
+ // src/components/ui/input.tsx
1930
+ import * as React22 from "react";
1931
+ import { jsx as jsx21 } from "react/jsx-runtime";
1932
+ var Input = React22.forwardRef(
1933
+ ({ className, type, ...props }, ref) => {
1934
+ return /* @__PURE__ */ jsx21(
1935
+ "input",
1936
+ {
1937
+ type,
1938
+ className: cn(
1939
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1940
+ className
1941
+ ),
1942
+ ref,
1943
+ ...props
1944
+ }
1945
+ );
1946
+ }
1947
+ );
1948
+ Input.displayName = "Input";
1949
+
1950
+ // src/components/ui/input-otp.tsx
1951
+ import * as React23 from "react";
1952
+ import { OTPInput, OTPInputContext } from "input-otp";
1953
+ import { Minus } from "lucide-react";
1954
+ import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
1955
+ var InputOTP = React23.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx22(
1956
+ OTPInput,
1957
+ {
1958
+ ref,
1959
+ containerClassName: cn(
1960
+ "flex items-center gap-2 has-[:disabled]:opacity-50",
1961
+ containerClassName
1962
+ ),
1963
+ className: cn("disabled:cursor-not-allowed", className),
1964
+ ...props
1965
+ }
1966
+ ));
1967
+ InputOTP.displayName = "InputOTP";
1968
+ var InputOTPGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22("div", { ref, className: cn("flex items-center", className), ...props }));
1969
+ InputOTPGroup.displayName = "InputOTPGroup";
1970
+ var InputOTPSlot = React23.forwardRef(({ index, className, ...props }, ref) => {
1971
+ const inputOTPContext = React23.useContext(OTPInputContext);
1972
+ const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
1973
+ return /* @__PURE__ */ jsxs11(
1974
+ "div",
1975
+ {
1976
+ ref,
1977
+ className: cn(
1978
+ "relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
1979
+ isActive && "z-10 ring-1 ring-ring",
1980
+ className
1981
+ ),
1982
+ ...props,
1983
+ children: [
1984
+ char,
1985
+ hasFakeCaret && /* @__PURE__ */ jsx22("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx22("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
1986
+ ]
1987
+ }
1988
+ );
1989
+ });
1990
+ InputOTPSlot.displayName = "InputOTPSlot";
1991
+ var InputOTPSeparator = React23.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx22("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx22(Minus, {}) }));
1992
+ InputOTPSeparator.displayName = "InputOTPSeparator";
1993
+
1994
+ // src/components/ui/menubar.tsx
1995
+ import * as React24 from "react";
1996
+ import * as MenubarPrimitive from "@radix-ui/react-menubar";
1997
+ import { Check as Check4, ChevronRight as ChevronRight4, Circle as Circle3 } from "lucide-react";
1998
+ import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
1999
+ function MenubarMenu({
2000
+ ...props
2001
+ }) {
2002
+ return /* @__PURE__ */ jsx23(MenubarPrimitive.Menu, { ...props });
2003
+ }
2004
+ function MenubarGroup({
2005
+ ...props
2006
+ }) {
2007
+ return /* @__PURE__ */ jsx23(MenubarPrimitive.Group, { ...props });
2008
+ }
2009
+ function MenubarPortal({
2010
+ ...props
2011
+ }) {
2012
+ return /* @__PURE__ */ jsx23(MenubarPrimitive.Portal, { ...props });
2013
+ }
2014
+ function MenubarRadioGroup({
2015
+ ...props
2016
+ }) {
2017
+ return /* @__PURE__ */ jsx23(MenubarPrimitive.RadioGroup, { ...props });
2018
+ }
2019
+ function MenubarSub({
2020
+ ...props
2021
+ }) {
2022
+ return /* @__PURE__ */ jsx23(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
2023
+ }
2024
+ var Menubar = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
2025
+ MenubarPrimitive.Root,
2026
+ {
2027
+ ref,
2028
+ className: cn(
2029
+ "flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",
2030
+ className
2031
+ ),
2032
+ ...props
2033
+ }
2034
+ ));
2035
+ Menubar.displayName = MenubarPrimitive.Root.displayName;
2036
+ var MenubarTrigger = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
2037
+ MenubarPrimitive.Trigger,
2038
+ {
2039
+ ref,
2040
+ className: cn(
2041
+ "flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
2042
+ className
2043
+ ),
2044
+ ...props
2045
+ }
2046
+ ));
2047
+ MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
2048
+ var MenubarSubTrigger = React24.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
2049
+ MenubarPrimitive.SubTrigger,
2050
+ {
2051
+ ref,
2052
+ className: cn(
2053
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
2054
+ inset && "pl-8",
2055
+ className
2056
+ ),
2057
+ ...props,
2058
+ children: [
2059
+ children,
2060
+ /* @__PURE__ */ jsx23(ChevronRight4, { className: "ml-auto h-4 w-4" })
2061
+ ]
2062
+ }
2063
+ ));
2064
+ MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
2065
+ var MenubarSubContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
2066
+ MenubarPrimitive.SubContent,
2067
+ {
2068
+ ref,
2069
+ className: cn(
2070
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",
2071
+ className
2072
+ ),
2073
+ ...props
2074
+ }
2075
+ ));
2076
+ MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
2077
+ var MenubarContent = React24.forwardRef(
2078
+ ({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx23(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
2079
+ MenubarPrimitive.Content,
2080
+ {
2081
+ ref,
2082
+ align,
2083
+ alignOffset,
2084
+ sideOffset,
2085
+ className: cn(
2086
+ "z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-menubar-content-transform-origin]",
2087
+ className
2088
+ ),
2089
+ ...props
2090
+ }
2091
+ ) })
2092
+ );
2093
+ MenubarContent.displayName = MenubarPrimitive.Content.displayName;
2094
+ var MenubarItem = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx23(
2095
+ MenubarPrimitive.Item,
2096
+ {
2097
+ ref,
2098
+ className: cn(
2099
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2100
+ inset && "pl-8",
2101
+ className
2102
+ ),
2103
+ ...props
2104
+ }
2105
+ ));
2106
+ MenubarItem.displayName = MenubarPrimitive.Item.displayName;
2107
+ var MenubarCheckboxItem = React24.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs12(
2108
+ MenubarPrimitive.CheckboxItem,
2109
+ {
2110
+ ref,
2111
+ className: cn(
2112
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2113
+ className
2114
+ ),
2115
+ checked,
2116
+ ...props,
2117
+ children: [
2118
+ /* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(Check4, { className: "h-4 w-4" }) }) }),
2119
+ children
2120
+ ]
2121
+ }
2122
+ ));
2123
+ MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
2124
+ var MenubarRadioItem = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
2125
+ MenubarPrimitive.RadioItem,
2126
+ {
2127
+ ref,
2128
+ className: cn(
2129
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2130
+ className
2131
+ ),
2132
+ ...props,
2133
+ children: [
2134
+ /* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(Circle3, { className: "h-4 w-4 fill-current" }) }) }),
2135
+ children
2136
+ ]
2137
+ }
2138
+ ));
2139
+ MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
2140
+ var MenubarLabel = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx23(
2141
+ MenubarPrimitive.Label,
2142
+ {
2143
+ ref,
2144
+ className: cn(
2145
+ "px-2 py-1.5 text-sm font-semibold",
2146
+ inset && "pl-8",
2147
+ className
2148
+ ),
2149
+ ...props
2150
+ }
2151
+ ));
2152
+ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
2153
+ var MenubarSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
2154
+ MenubarPrimitive.Separator,
2155
+ {
2156
+ ref,
2157
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
2158
+ ...props
2159
+ }
2160
+ ));
2161
+ MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
2162
+ var MenubarShortcut = ({
2163
+ className,
2164
+ ...props
2165
+ }) => {
2166
+ return /* @__PURE__ */ jsx23(
2167
+ "span",
2168
+ {
2169
+ className: cn(
2170
+ "ml-auto text-xs tracking-widest text-muted-foreground",
2171
+ className
2172
+ ),
2173
+ ...props
2174
+ }
2175
+ );
2176
+ };
2177
+ MenubarShortcut.displayname = "MenubarShortcut";
2178
+
2179
+ // src/components/ui/navigation-menu.tsx
2180
+ import * as React25 from "react";
2181
+ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
2182
+ import { cva as cva5 } from "class-variance-authority";
2183
+ import { ChevronDown as ChevronDown2 } from "lucide-react";
2184
+ import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
2185
+ var NavigationMenu = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
2186
+ NavigationMenuPrimitive.Root,
2187
+ {
2188
+ ref,
2189
+ className: cn(
2190
+ "relative z-10 flex max-w-max flex-1 items-center justify-center",
2191
+ className
2192
+ ),
2193
+ ...props,
2194
+ children: [
2195
+ children,
2196
+ /* @__PURE__ */ jsx24(NavigationMenuViewport, {})
2197
+ ]
2198
+ }
2199
+ ));
2200
+ NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
2201
+ var NavigationMenuList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
2202
+ NavigationMenuPrimitive.List,
2203
+ {
2204
+ ref,
2205
+ className: cn(
2206
+ "group flex flex-1 list-none items-center justify-center space-x-1",
2207
+ className
2208
+ ),
2209
+ ...props
2210
+ }
2211
+ ));
2212
+ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
2213
+ var NavigationMenuItem = NavigationMenuPrimitive.Item;
2214
+ var navigationMenuTriggerStyle = cva5(
2215
+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
2216
+ );
2217
+ var NavigationMenuTrigger = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
2218
+ NavigationMenuPrimitive.Trigger,
2219
+ {
2220
+ ref,
2221
+ className: cn(navigationMenuTriggerStyle(), "group", className),
2222
+ ...props,
2223
+ children: [
2224
+ children,
2225
+ " ",
2226
+ /* @__PURE__ */ jsx24(
2227
+ ChevronDown2,
2228
+ {
2229
+ className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
2230
+ "aria-hidden": "true"
2231
+ }
2232
+ )
2233
+ ]
2234
+ }
2235
+ ));
2236
+ NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
2237
+ var NavigationMenuContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
2238
+ NavigationMenuPrimitive.Content,
2239
+ {
2240
+ ref,
2241
+ className: cn(
2242
+ "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out 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 md:absolute md:w-auto ",
2243
+ className
2244
+ ),
2245
+ ...props
2246
+ }
2247
+ ));
2248
+ NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
2249
+ var NavigationMenuLink = NavigationMenuPrimitive.Link;
2250
+ var NavigationMenuViewport = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx24(
2251
+ NavigationMenuPrimitive.Viewport,
2252
+ {
2253
+ className: cn(
2254
+ "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
2255
+ className
2256
+ ),
2257
+ ref,
2258
+ ...props
2259
+ }
2260
+ ) }));
2261
+ NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
2262
+ var NavigationMenuIndicator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
2263
+ NavigationMenuPrimitive.Indicator,
2264
+ {
2265
+ ref,
2266
+ className: cn(
2267
+ "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
2268
+ className
2269
+ ),
2270
+ ...props,
2271
+ children: /* @__PURE__ */ jsx24("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
2272
+ }
2273
+ ));
2274
+ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
2275
+
2276
+ // src/components/ui/pagination.tsx
2277
+ import * as React26 from "react";
2278
+ import { ChevronLeft, ChevronRight as ChevronRight5, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
2279
+ import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
2280
+ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx25(
2281
+ "nav",
2282
+ {
2283
+ role: "navigation",
2284
+ "aria-label": "pagination",
2285
+ className: cn("mx-auto flex w-full justify-center", className),
2286
+ ...props
2287
+ }
2288
+ );
2289
+ Pagination.displayName = "Pagination";
2290
+ var PaginationContent = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
2291
+ "ul",
2292
+ {
2293
+ ref,
2294
+ className: cn("flex flex-row items-center gap-1", className),
2295
+ ...props
2296
+ }
2297
+ ));
2298
+ PaginationContent.displayName = "PaginationContent";
2299
+ var PaginationItem = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25("li", { ref, className: cn("", className), ...props }));
2300
+ PaginationItem.displayName = "PaginationItem";
2301
+ var PaginationLink = ({
2302
+ className,
2303
+ isActive,
2304
+ size = "icon",
2305
+ ...props
2306
+ }) => /* @__PURE__ */ jsx25(
2307
+ "a",
2308
+ {
2309
+ "aria-current": isActive ? "page" : void 0,
2310
+ className: cn(
2311
+ buttonVariants({
2312
+ variant: isActive ? "outline" : "ghost",
2313
+ size
2314
+ }),
2315
+ className
2316
+ ),
2317
+ ...props
2318
+ }
2319
+ );
2320
+ PaginationLink.displayName = "PaginationLink";
2321
+ var PaginationPrevious = ({
2322
+ className,
2323
+ ...props
2324
+ }) => /* @__PURE__ */ jsxs14(
2325
+ PaginationLink,
2326
+ {
2327
+ "aria-label": "Go to previous page",
2328
+ size: "default",
2329
+ className: cn("gap-1 pl-2.5", className),
2330
+ ...props,
2331
+ children: [
2332
+ /* @__PURE__ */ jsx25(ChevronLeft, { className: "h-4 w-4" }),
2333
+ /* @__PURE__ */ jsx25("span", { children: "Previous" })
2334
+ ]
2335
+ }
2336
+ );
2337
+ PaginationPrevious.displayName = "PaginationPrevious";
2338
+ var PaginationNext = ({
2339
+ className,
2340
+ ...props
2341
+ }) => /* @__PURE__ */ jsxs14(
2342
+ PaginationLink,
2343
+ {
2344
+ "aria-label": "Go to next page",
2345
+ size: "default",
2346
+ className: cn("gap-1 pr-2.5", className),
2347
+ ...props,
2348
+ children: [
2349
+ /* @__PURE__ */ jsx25("span", { children: "Next" }),
2350
+ /* @__PURE__ */ jsx25(ChevronRight5, { className: "h-4 w-4" })
2351
+ ]
2352
+ }
2353
+ );
2354
+ PaginationNext.displayName = "PaginationNext";
2355
+ var PaginationEllipsis = ({
2356
+ className,
2357
+ ...props
2358
+ }) => /* @__PURE__ */ jsxs14(
2359
+ "span",
2360
+ {
2361
+ "aria-hidden": true,
2362
+ className: cn("flex h-9 w-9 items-center justify-center", className),
2363
+ ...props,
2364
+ children: [
2365
+ /* @__PURE__ */ jsx25(MoreHorizontal2, { className: "h-4 w-4" }),
2366
+ /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "More pages" })
2367
+ ]
2368
+ }
2369
+ );
2370
+ PaginationEllipsis.displayName = "PaginationEllipsis";
2371
+
2372
+ // src/components/ui/popover.tsx
2373
+ import * as React27 from "react";
2374
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
2375
+ import { jsx as jsx26 } from "react/jsx-runtime";
2376
+ var Popover = PopoverPrimitive.Root;
2377
+ var PopoverTrigger = PopoverPrimitive.Trigger;
2378
+ var PopoverAnchor = PopoverPrimitive.Anchor;
2379
+ var PopoverContent = React27.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx26(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx26(
2380
+ PopoverPrimitive.Content,
2381
+ {
2382
+ ref,
2383
+ align,
2384
+ sideOffset,
2385
+ className: cn(
2386
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",
2387
+ className
2388
+ ),
2389
+ ...props
2390
+ }
2391
+ ) }));
2392
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
2393
+
2394
+ // src/components/ui/progress.tsx
2395
+ import * as React28 from "react";
2396
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
2397
+ import { jsx as jsx27 } from "react/jsx-runtime";
2398
+ var Progress = React28.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx27(
2399
+ ProgressPrimitive.Root,
2400
+ {
2401
+ ref,
2402
+ className: cn(
2403
+ "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
2404
+ className
2405
+ ),
2406
+ ...props,
2407
+ children: /* @__PURE__ */ jsx27(
2408
+ ProgressPrimitive.Indicator,
2409
+ {
2410
+ className: "h-full w-full flex-1 bg-primary transition-all",
2411
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
2412
+ }
2413
+ )
2414
+ }
2415
+ ));
2416
+ Progress.displayName = ProgressPrimitive.Root.displayName;
2417
+
2418
+ // src/components/ui/radio-group.tsx
2419
+ import * as React29 from "react";
2420
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
2421
+ import { Circle as Circle4 } from "lucide-react";
2422
+ import { jsx as jsx28 } from "react/jsx-runtime";
2423
+ var RadioGroup4 = React29.forwardRef(({ className, ...props }, ref) => {
2424
+ return /* @__PURE__ */ jsx28(
2425
+ RadioGroupPrimitive.Root,
2426
+ {
2427
+ className: cn("grid gap-2", className),
2428
+ ...props,
2429
+ ref
2430
+ }
2431
+ );
2432
+ });
2433
+ RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
2434
+ var RadioGroupItem = React29.forwardRef(({ className, ...props }, ref) => {
2435
+ return /* @__PURE__ */ jsx28(
2436
+ RadioGroupPrimitive.Item,
2437
+ {
2438
+ ref,
2439
+ className: cn(
2440
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
2441
+ className
2442
+ ),
2443
+ ...props,
2444
+ children: /* @__PURE__ */ jsx28(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx28(Circle4, { className: "h-3.5 w-3.5 fill-primary" }) })
2445
+ }
2446
+ );
2447
+ });
2448
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
2449
+
2450
+ // src/components/ui/resizable.tsx
2451
+ import { GripVertical } from "lucide-react";
2452
+ import {
2453
+ Group as Group4,
2454
+ Panel,
2455
+ Separator as Separator4
2456
+ } from "react-resizable-panels";
2457
+ import { jsx as jsx29 } from "react/jsx-runtime";
2458
+ var ResizablePanelGroup = ({
2459
+ className,
2460
+ ...props
2461
+ }) => /* @__PURE__ */ jsx29(
2462
+ Group4,
2463
+ {
2464
+ className: cn(
2465
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
2466
+ className
2467
+ ),
2468
+ ...props
2469
+ }
2470
+ );
2471
+ var ResizablePanel = Panel;
2472
+ var ResizableHandle = ({
2473
+ withHandle,
2474
+ className,
2475
+ ...props
2476
+ }) => /* @__PURE__ */ jsx29(
2477
+ Separator4,
2478
+ {
2479
+ className: cn(
2480
+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
2481
+ className
2482
+ ),
2483
+ ...props,
2484
+ children: withHandle && /* @__PURE__ */ jsx29("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx29(GripVertical, { className: "h-2.5 w-2.5" }) })
2485
+ }
2486
+ );
2487
+
2488
+ // src/components/ui/scroll-area.tsx
2489
+ import * as React30 from "react";
2490
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
2491
+ import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
2492
+ var ScrollArea = React30.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs15(
2493
+ ScrollAreaPrimitive.Root,
2494
+ {
2495
+ ref,
2496
+ className: cn("relative overflow-hidden", className),
2497
+ ...props,
2498
+ children: [
2499
+ /* @__PURE__ */ jsx30(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
2500
+ /* @__PURE__ */ jsx30(ScrollBar, {}),
2501
+ /* @__PURE__ */ jsx30(ScrollAreaPrimitive.Corner, {})
2502
+ ]
2503
+ }
2504
+ ));
2505
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
2506
+ var ScrollBar = React30.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx30(
2507
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
2508
+ {
2509
+ ref,
2510
+ orientation,
2511
+ className: cn(
2512
+ "flex touch-none select-none transition-colors",
2513
+ orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
2514
+ orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
2515
+ className
2516
+ ),
2517
+ ...props,
2518
+ children: /* @__PURE__ */ jsx30(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
2519
+ }
2520
+ ));
2521
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
2522
+
2523
+ // src/components/ui/select.tsx
2524
+ import * as React31 from "react";
2525
+ import * as SelectPrimitive from "@radix-ui/react-select";
2526
+ import { Check as Check5, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
2527
+ import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
2528
+ var Select = SelectPrimitive.Root;
2529
+ var SelectGroup = SelectPrimitive.Group;
2530
+ var SelectValue = SelectPrimitive.Value;
2531
+ var SelectTrigger = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
2532
+ SelectPrimitive.Trigger,
2533
+ {
2534
+ ref,
2535
+ className: cn(
2536
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
2537
+ className
2538
+ ),
2539
+ ...props,
2540
+ children: [
2541
+ children,
2542
+ /* @__PURE__ */ jsx31(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx31(ChevronDown3, { className: "h-4 w-4 opacity-50" }) })
2543
+ ]
2544
+ }
2545
+ ));
2546
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2547
+ var SelectScrollUpButton = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
2548
+ SelectPrimitive.ScrollUpButton,
2549
+ {
2550
+ ref,
2551
+ className: cn(
2552
+ "flex cursor-default items-center justify-center py-1",
2553
+ className
2554
+ ),
2555
+ ...props,
2556
+ children: /* @__PURE__ */ jsx31(ChevronUp, { className: "h-4 w-4" })
2557
+ }
2558
+ ));
2559
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
2560
+ var SelectScrollDownButton = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
2561
+ SelectPrimitive.ScrollDownButton,
2562
+ {
2563
+ ref,
2564
+ className: cn(
2565
+ "flex cursor-default items-center justify-center py-1",
2566
+ className
2567
+ ),
2568
+ ...props,
2569
+ children: /* @__PURE__ */ jsx31(ChevronDown3, { className: "h-4 w-4" })
2570
+ }
2571
+ ));
2572
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
2573
+ var SelectContent = React31.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx31(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
2574
+ SelectPrimitive.Content,
2575
+ {
2576
+ ref,
2577
+ className: cn(
2578
+ "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",
2579
+ position === "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",
2580
+ className
2581
+ ),
2582
+ position,
2583
+ ...props,
2584
+ children: [
2585
+ /* @__PURE__ */ jsx31(SelectScrollUpButton, {}),
2586
+ /* @__PURE__ */ jsx31(
2587
+ SelectPrimitive.Viewport,
2588
+ {
2589
+ className: cn(
2590
+ "p-1",
2591
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
2592
+ ),
2593
+ children
2594
+ }
2595
+ ),
2596
+ /* @__PURE__ */ jsx31(SelectScrollDownButton, {})
2597
+ ]
2598
+ }
2599
+ ) }));
2600
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
2601
+ var SelectLabel = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
2602
+ SelectPrimitive.Label,
2603
+ {
2604
+ ref,
2605
+ className: cn("px-2 py-1.5 text-sm font-semibold", className),
2606
+ ...props
2607
+ }
2608
+ ));
2609
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
2610
+ var SelectItem = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
2611
+ SelectPrimitive.Item,
2612
+ {
2613
+ ref,
2614
+ className: cn(
2615
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
2616
+ className
2617
+ ),
2618
+ ...props,
2619
+ children: [
2620
+ /* @__PURE__ */ jsx31("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx31(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx31(Check5, { className: "h-4 w-4" }) }) }),
2621
+ /* @__PURE__ */ jsx31(SelectPrimitive.ItemText, { children })
2622
+ ]
2623
+ }
2624
+ ));
2625
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
2626
+ var SelectSeparator = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
2627
+ SelectPrimitive.Separator,
2628
+ {
2629
+ ref,
2630
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
2631
+ ...props
2632
+ }
2633
+ ));
2634
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2635
+
2636
+ // src/components/ui/separator.tsx
2637
+ import * as React32 from "react";
2638
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
2639
+ import { jsx as jsx32 } from "react/jsx-runtime";
2640
+ var Separator6 = React32.forwardRef(
2641
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx32(
2642
+ SeparatorPrimitive.Root,
2643
+ {
2644
+ ref,
2645
+ decorative,
2646
+ orientation,
2647
+ className: cn(
2648
+ "shrink-0 bg-border",
2649
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
2650
+ className
2651
+ ),
2652
+ ...props
2653
+ }
2654
+ )
2655
+ );
2656
+ Separator6.displayName = SeparatorPrimitive.Root.displayName;
2657
+
2658
+ // src/components/ui/sheet.tsx
2659
+ import * as React33 from "react";
2660
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
2661
+ import { cva as cva6 } from "class-variance-authority";
2662
+ import { X as X2 } from "lucide-react";
2663
+ import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
2664
+ var Sheet = SheetPrimitive.Root;
2665
+ var SheetTrigger = SheetPrimitive.Trigger;
2666
+ var SheetClose = SheetPrimitive.Close;
2667
+ var SheetPortal = SheetPrimitive.Portal;
2668
+ var SheetOverlay = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
2669
+ SheetPrimitive.Overlay,
2670
+ {
2671
+ className: cn(
2672
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2673
+ className
2674
+ ),
2675
+ ...props,
2676
+ ref
2677
+ }
2678
+ ));
2679
+ SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
2680
+ var sheetVariants = cva6(
2681
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
2682
+ {
2683
+ variants: {
2684
+ side: {
2685
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
2686
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
2687
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
2688
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
2689
+ }
2690
+ },
2691
+ defaultVariants: {
2692
+ side: "right"
2693
+ }
2694
+ }
2695
+ );
2696
+ var SheetContent = React33.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(SheetPortal, { children: [
2697
+ /* @__PURE__ */ jsx33(SheetOverlay, {}),
2698
+ /* @__PURE__ */ jsxs17(
2699
+ SheetPrimitive.Content,
2700
+ {
2701
+ ref,
2702
+ className: cn(sheetVariants({ side }), className),
2703
+ ...props,
2704
+ children: [
2705
+ /* @__PURE__ */ jsxs17(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
2706
+ /* @__PURE__ */ jsx33(X2, { className: "h-4 w-4" }),
2707
+ /* @__PURE__ */ jsx33("span", { className: "sr-only", children: "Close" })
2708
+ ] }),
2709
+ children
2710
+ ]
2711
+ }
2712
+ )
2713
+ ] }));
2714
+ SheetContent.displayName = SheetPrimitive.Content.displayName;
2715
+ var SheetHeader = ({
2716
+ className,
2717
+ ...props
2718
+ }) => /* @__PURE__ */ jsx33(
2719
+ "div",
2720
+ {
2721
+ className: cn(
2722
+ "flex flex-col space-y-2 text-center sm:text-left",
2723
+ className
2724
+ ),
2725
+ ...props
2726
+ }
2727
+ );
2728
+ SheetHeader.displayName = "SheetHeader";
2729
+ var SheetFooter = ({
2730
+ className,
2731
+ ...props
2732
+ }) => /* @__PURE__ */ jsx33(
2733
+ "div",
2734
+ {
2735
+ className: cn(
2736
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
2737
+ className
2738
+ ),
2739
+ ...props
2740
+ }
2741
+ );
2742
+ SheetFooter.displayName = "SheetFooter";
2743
+ var SheetTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
2744
+ SheetPrimitive.Title,
2745
+ {
2746
+ ref,
2747
+ className: cn("text-lg font-semibold text-foreground", className),
2748
+ ...props
2749
+ }
2750
+ ));
2751
+ SheetTitle.displayName = SheetPrimitive.Title.displayName;
2752
+ var SheetDescription = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx33(
2753
+ SheetPrimitive.Description,
2754
+ {
2755
+ ref,
2756
+ className: cn("text-sm text-muted-foreground", className),
2757
+ ...props
2758
+ }
2759
+ ));
2760
+ SheetDescription.displayName = SheetPrimitive.Description.displayName;
2761
+
2762
+ // src/components/ui/sidebar.tsx
2763
+ import * as React35 from "react";
2764
+ import { Slot as Slot4 } from "@radix-ui/react-slot";
2765
+ import { cva as cva7 } from "class-variance-authority";
2766
+ import { PanelLeft } from "lucide-react";
2767
+
2768
+ // src/components/ui/skeleton.tsx
2769
+ import { jsx as jsx34 } from "react/jsx-runtime";
2770
+ function Skeleton({
2771
+ className,
2772
+ ...props
2773
+ }) {
2774
+ return /* @__PURE__ */ jsx34(
2775
+ "div",
2776
+ {
2777
+ className: cn("animate-pulse rounded-md bg-primary/10", className),
2778
+ ...props
2779
+ }
2780
+ );
2781
+ }
2782
+
2783
+ // src/components/ui/tooltip.tsx
2784
+ import * as React34 from "react";
2785
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2786
+ import { jsx as jsx35 } from "react/jsx-runtime";
2787
+ var TooltipProvider = TooltipPrimitive.Provider;
2788
+ var Tooltip2 = TooltipPrimitive.Root;
2789
+ var TooltipTrigger = TooltipPrimitive.Trigger;
2790
+ var TooltipContent = React34.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx35(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx35(
2791
+ TooltipPrimitive.Content,
2792
+ {
2793
+ ref,
2794
+ sideOffset,
2795
+ className: cn(
2796
+ "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",
2797
+ className
2798
+ ),
2799
+ ...props
2800
+ }
2801
+ ) }));
2802
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
2803
+
2804
+ // src/components/ui/sidebar.tsx
2805
+ import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
2806
+ var SIDEBAR_COOKIE_NAME = "sidebar_state";
2807
+ var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
2808
+ var SIDEBAR_WIDTH = "16rem";
2809
+ var SIDEBAR_WIDTH_MOBILE = "18rem";
2810
+ var SIDEBAR_WIDTH_ICON = "3rem";
2811
+ var SIDEBAR_KEYBOARD_SHORTCUT = "b";
2812
+ var SidebarContext = React35.createContext(null);
2813
+ function useSidebar() {
2814
+ const context = React35.useContext(SidebarContext);
2815
+ if (!context) {
2816
+ throw new Error("useSidebar must be used within a SidebarProvider.");
2817
+ }
2818
+ return context;
2819
+ }
2820
+ var SidebarProvider = React35.forwardRef(
2821
+ ({
2822
+ defaultOpen = true,
2823
+ open: openProp,
2824
+ onOpenChange: setOpenProp,
2825
+ className,
2826
+ style,
2827
+ children,
2828
+ ...props
2829
+ }, ref) => {
2830
+ const isMobile = useIsMobile();
2831
+ const [openMobile, setOpenMobile] = React35.useState(false);
2832
+ const [_open, _setOpen] = React35.useState(defaultOpen);
2833
+ const open = openProp ?? _open;
2834
+ const setOpen = React35.useCallback(
2835
+ (value) => {
2836
+ const openState = typeof value === "function" ? value(open) : value;
2837
+ if (setOpenProp) {
2838
+ setOpenProp(openState);
2839
+ } else {
2840
+ _setOpen(openState);
2841
+ }
2842
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
2843
+ },
2844
+ [setOpenProp, open]
2845
+ );
2846
+ const toggleSidebar = React35.useCallback(() => {
2847
+ return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
2848
+ }, [isMobile, setOpen, setOpenMobile]);
2849
+ React35.useEffect(() => {
2850
+ const handleKeyDown = (event) => {
2851
+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
2852
+ event.preventDefault();
2853
+ toggleSidebar();
2854
+ }
2855
+ };
2856
+ window.addEventListener("keydown", handleKeyDown);
2857
+ return () => window.removeEventListener("keydown", handleKeyDown);
2858
+ }, [toggleSidebar]);
2859
+ const state = open ? "expanded" : "collapsed";
2860
+ const contextValue = React35.useMemo(
2861
+ () => ({
2862
+ state,
2863
+ open,
2864
+ setOpen,
2865
+ isMobile,
2866
+ openMobile,
2867
+ setOpenMobile,
2868
+ toggleSidebar
2869
+ }),
2870
+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
2871
+ );
2872
+ return /* @__PURE__ */ jsx36(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx36(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx36(
2873
+ "div",
2874
+ {
2875
+ style: {
2876
+ "--sidebar-width": SIDEBAR_WIDTH,
2877
+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
2878
+ ...style
2879
+ },
2880
+ className: cn(
2881
+ "group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",
2882
+ className
2883
+ ),
2884
+ ref,
2885
+ ...props,
2886
+ children
2887
+ }
2888
+ ) }) });
2889
+ }
2890
+ );
2891
+ SidebarProvider.displayName = "SidebarProvider";
2892
+ var Sidebar = React35.forwardRef(
2893
+ ({
2894
+ side = "left",
2895
+ variant = "sidebar",
2896
+ collapsible = "offcanvas",
2897
+ className,
2898
+ children,
2899
+ ...props
2900
+ }, ref) => {
2901
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
2902
+ if (collapsible === "none") {
2903
+ return /* @__PURE__ */ jsx36(
2904
+ "div",
2905
+ {
2906
+ className: cn(
2907
+ "flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
2908
+ className
2909
+ ),
2910
+ ref,
2911
+ ...props,
2912
+ children
2913
+ }
2914
+ );
2915
+ }
2916
+ if (isMobile) {
2917
+ return /* @__PURE__ */ jsx36(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs18(
2918
+ SheetContent,
2919
+ {
2920
+ "data-sidebar": "sidebar",
2921
+ "data-mobile": "true",
2922
+ className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
2923
+ style: {
2924
+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE
2925
+ },
2926
+ side,
2927
+ children: [
2928
+ /* @__PURE__ */ jsxs18(SheetHeader, { className: "sr-only", children: [
2929
+ /* @__PURE__ */ jsx36(SheetTitle, { children: "Sidebar" }),
2930
+ /* @__PURE__ */ jsx36(SheetDescription, { children: "Displays the mobile sidebar." })
2931
+ ] }),
2932
+ /* @__PURE__ */ jsx36("div", { className: "flex h-full w-full flex-col", children })
2933
+ ]
2934
+ }
2935
+ ) });
2936
+ }
2937
+ return /* @__PURE__ */ jsxs18(
2938
+ "div",
2939
+ {
2940
+ ref,
2941
+ className: "group peer hidden text-sidebar-foreground md:block",
2942
+ "data-state": state,
2943
+ "data-collapsible": state === "collapsed" ? collapsible : "",
2944
+ "data-variant": variant,
2945
+ "data-side": side,
2946
+ children: [
2947
+ /* @__PURE__ */ jsx36(
2948
+ "div",
2949
+ {
2950
+ className: cn(
2951
+ "relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
2952
+ "group-data-[collapsible=offcanvas]:w-0",
2953
+ "group-data-[side=right]:rotate-180",
2954
+ variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
2955
+ )
2956
+ }
2957
+ ),
2958
+ /* @__PURE__ */ jsx36(
2959
+ "div",
2960
+ {
2961
+ className: cn(
2962
+ "fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
2963
+ side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
2964
+ // Adjust the padding for floating and inset variants.
2965
+ variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
2966
+ className
2967
+ ),
2968
+ ...props,
2969
+ children: /* @__PURE__ */ jsx36(
2970
+ "div",
2971
+ {
2972
+ "data-sidebar": "sidebar",
2973
+ className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
2974
+ children
2975
+ }
2976
+ )
2977
+ }
2978
+ )
2979
+ ]
2980
+ }
2981
+ );
2982
+ }
2983
+ );
2984
+ Sidebar.displayName = "Sidebar";
2985
+ var SidebarTrigger = React35.forwardRef(({ className, onClick, ...props }, ref) => {
2986
+ const { toggleSidebar } = useSidebar();
2987
+ return /* @__PURE__ */ jsxs18(
2988
+ Button,
2989
+ {
2990
+ ref,
2991
+ "data-sidebar": "trigger",
2992
+ variant: "ghost",
2993
+ size: "icon",
2994
+ className: cn("h-7 w-7", className),
2995
+ onClick: (event) => {
2996
+ onClick?.(event);
2997
+ toggleSidebar();
2998
+ },
2999
+ ...props,
3000
+ children: [
3001
+ /* @__PURE__ */ jsx36(PanelLeft, {}),
3002
+ /* @__PURE__ */ jsx36("span", { className: "sr-only", children: "Toggle Sidebar" })
3003
+ ]
3004
+ }
3005
+ );
3006
+ });
3007
+ SidebarTrigger.displayName = "SidebarTrigger";
3008
+ var SidebarRail = React35.forwardRef(({ className, ...props }, ref) => {
3009
+ const { toggleSidebar } = useSidebar();
3010
+ return /* @__PURE__ */ jsx36(
3011
+ "button",
3012
+ {
3013
+ ref,
3014
+ "data-sidebar": "rail",
3015
+ "aria-label": "Toggle Sidebar",
3016
+ tabIndex: -1,
3017
+ onClick: toggleSidebar,
3018
+ title: "Toggle Sidebar",
3019
+ className: cn(
3020
+ "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
3021
+ "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
3022
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
3023
+ "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
3024
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
3025
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
3026
+ className
3027
+ ),
3028
+ ...props
3029
+ }
3030
+ );
3031
+ });
3032
+ SidebarRail.displayName = "SidebarRail";
3033
+ var SidebarInset = React35.forwardRef(({ className, ...props }, ref) => {
3034
+ return /* @__PURE__ */ jsx36(
3035
+ "main",
3036
+ {
3037
+ ref,
3038
+ className: cn(
3039
+ "relative flex w-full flex-1 flex-col bg-background",
3040
+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
3041
+ className
3042
+ ),
3043
+ ...props
3044
+ }
3045
+ );
3046
+ });
3047
+ SidebarInset.displayName = "SidebarInset";
3048
+ var SidebarInput = React35.forwardRef(({ className, ...props }, ref) => {
3049
+ return /* @__PURE__ */ jsx36(
3050
+ Input,
3051
+ {
3052
+ ref,
3053
+ "data-sidebar": "input",
3054
+ className: cn(
3055
+ "h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
3056
+ className
3057
+ ),
3058
+ ...props
3059
+ }
3060
+ );
3061
+ });
3062
+ SidebarInput.displayName = "SidebarInput";
3063
+ var SidebarHeader = React35.forwardRef(({ className, ...props }, ref) => {
3064
+ return /* @__PURE__ */ jsx36(
3065
+ "div",
3066
+ {
3067
+ ref,
3068
+ "data-sidebar": "header",
3069
+ className: cn("flex flex-col gap-2 p-2", className),
3070
+ ...props
3071
+ }
3072
+ );
3073
+ });
3074
+ SidebarHeader.displayName = "SidebarHeader";
3075
+ var SidebarFooter = React35.forwardRef(({ className, ...props }, ref) => {
3076
+ return /* @__PURE__ */ jsx36(
3077
+ "div",
3078
+ {
3079
+ ref,
3080
+ "data-sidebar": "footer",
3081
+ className: cn("flex flex-col gap-2 p-2", className),
3082
+ ...props
3083
+ }
3084
+ );
3085
+ });
3086
+ SidebarFooter.displayName = "SidebarFooter";
3087
+ var SidebarSeparator = React35.forwardRef(({ className, ...props }, ref) => {
3088
+ return /* @__PURE__ */ jsx36(
3089
+ Separator6,
3090
+ {
3091
+ ref,
3092
+ "data-sidebar": "separator",
3093
+ className: cn("mx-2 w-auto bg-sidebar-border", className),
3094
+ ...props
3095
+ }
3096
+ );
3097
+ });
3098
+ SidebarSeparator.displayName = "SidebarSeparator";
3099
+ var SidebarContent = React35.forwardRef(({ className, ...props }, ref) => {
3100
+ return /* @__PURE__ */ jsx36(
3101
+ "div",
3102
+ {
3103
+ ref,
3104
+ "data-sidebar": "content",
3105
+ className: cn(
3106
+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
3107
+ className
3108
+ ),
3109
+ ...props
3110
+ }
3111
+ );
3112
+ });
3113
+ SidebarContent.displayName = "SidebarContent";
3114
+ var SidebarGroup = React35.forwardRef(({ className, ...props }, ref) => {
3115
+ return /* @__PURE__ */ jsx36(
3116
+ "div",
3117
+ {
3118
+ ref,
3119
+ "data-sidebar": "group",
3120
+ className: cn("relative flex w-full min-w-0 flex-col p-2", className),
3121
+ ...props
3122
+ }
3123
+ );
3124
+ });
3125
+ SidebarGroup.displayName = "SidebarGroup";
3126
+ var SidebarGroupLabel = React35.forwardRef(({ className, asChild = false, ...props }, ref) => {
3127
+ const Comp = asChild ? Slot4 : "div";
3128
+ return /* @__PURE__ */ jsx36(
3129
+ Comp,
3130
+ {
3131
+ ref,
3132
+ "data-sidebar": "group-label",
3133
+ className: cn(
3134
+ "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
3135
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
3136
+ className
3137
+ ),
3138
+ ...props
3139
+ }
3140
+ );
3141
+ });
3142
+ SidebarGroupLabel.displayName = "SidebarGroupLabel";
3143
+ var SidebarGroupAction = React35.forwardRef(({ className, asChild = false, ...props }, ref) => {
3144
+ const Comp = asChild ? Slot4 : "button";
3145
+ return /* @__PURE__ */ jsx36(
3146
+ Comp,
3147
+ {
3148
+ ref,
3149
+ "data-sidebar": "group-action",
3150
+ className: cn(
3151
+ "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
3152
+ // Increases the hit area of the button on mobile.
3153
+ "after:absolute after:-inset-2 after:md:hidden",
3154
+ "group-data-[collapsible=icon]:hidden",
3155
+ className
3156
+ ),
3157
+ ...props
3158
+ }
3159
+ );
3160
+ });
3161
+ SidebarGroupAction.displayName = "SidebarGroupAction";
3162
+ var SidebarGroupContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
3163
+ "div",
3164
+ {
3165
+ ref,
3166
+ "data-sidebar": "group-content",
3167
+ className: cn("w-full text-sm", className),
3168
+ ...props
3169
+ }
3170
+ ));
3171
+ SidebarGroupContent.displayName = "SidebarGroupContent";
3172
+ var SidebarMenu = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
3173
+ "ul",
3174
+ {
3175
+ ref,
3176
+ "data-sidebar": "menu",
3177
+ className: cn("flex w-full min-w-0 flex-col gap-1", className),
3178
+ ...props
3179
+ }
3180
+ ));
3181
+ SidebarMenu.displayName = "SidebarMenu";
3182
+ var SidebarMenuItem = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
3183
+ "li",
3184
+ {
3185
+ ref,
3186
+ "data-sidebar": "menu-item",
3187
+ className: cn("group/menu-item relative", className),
3188
+ ...props
3189
+ }
3190
+ ));
3191
+ SidebarMenuItem.displayName = "SidebarMenuItem";
3192
+ var sidebarMenuButtonVariants = cva7(
3193
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
3194
+ {
3195
+ variants: {
3196
+ variant: {
3197
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
3198
+ 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))]"
3199
+ },
3200
+ size: {
3201
+ default: "h-8 text-sm",
3202
+ sm: "h-7 text-xs",
3203
+ lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0"
3204
+ }
3205
+ },
3206
+ defaultVariants: {
3207
+ variant: "default",
3208
+ size: "default"
3209
+ }
3210
+ }
3211
+ );
3212
+ var SidebarMenuButton = React35.forwardRef(
3213
+ ({
3214
+ asChild = false,
3215
+ isActive = false,
3216
+ variant = "default",
3217
+ size = "default",
3218
+ tooltip,
3219
+ className,
3220
+ ...props
3221
+ }, ref) => {
3222
+ const Comp = asChild ? Slot4 : "button";
3223
+ const { isMobile, state } = useSidebar();
3224
+ const button = /* @__PURE__ */ jsx36(
3225
+ Comp,
3226
+ {
3227
+ ref,
3228
+ "data-sidebar": "menu-button",
3229
+ "data-size": size,
3230
+ "data-active": isActive,
3231
+ className: cn(sidebarMenuButtonVariants({ variant, size }), className),
3232
+ ...props
3233
+ }
3234
+ );
3235
+ if (!tooltip) {
3236
+ return button;
3237
+ }
3238
+ if (typeof tooltip === "string") {
3239
+ tooltip = {
3240
+ children: tooltip
3241
+ };
3242
+ }
3243
+ return /* @__PURE__ */ jsxs18(Tooltip2, { children: [
3244
+ /* @__PURE__ */ jsx36(TooltipTrigger, { asChild: true, children: button }),
3245
+ /* @__PURE__ */ jsx36(
3246
+ TooltipContent,
3247
+ {
3248
+ side: "right",
3249
+ align: "center",
3250
+ hidden: state !== "collapsed" || isMobile,
3251
+ ...tooltip
3252
+ }
3253
+ )
3254
+ ] });
3255
+ }
3256
+ );
3257
+ SidebarMenuButton.displayName = "SidebarMenuButton";
3258
+ var SidebarMenuAction = React35.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
3259
+ const Comp = asChild ? Slot4 : "button";
3260
+ return /* @__PURE__ */ jsx36(
3261
+ Comp,
3262
+ {
3263
+ ref,
3264
+ "data-sidebar": "menu-action",
3265
+ className: cn(
3266
+ "absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
3267
+ // Increases the hit area of the button on mobile.
3268
+ "after:absolute after:-inset-2 after:md:hidden",
3269
+ "peer-data-[size=sm]/menu-button:top-1",
3270
+ "peer-data-[size=default]/menu-button:top-1.5",
3271
+ "peer-data-[size=lg]/menu-button:top-2.5",
3272
+ "group-data-[collapsible=icon]:hidden",
3273
+ showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
3274
+ className
3275
+ ),
3276
+ ...props
3277
+ }
3278
+ );
3279
+ });
3280
+ SidebarMenuAction.displayName = "SidebarMenuAction";
3281
+ var SidebarMenuBadge = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
3282
+ "div",
3283
+ {
3284
+ ref,
3285
+ "data-sidebar": "menu-badge",
3286
+ className: cn(
3287
+ "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",
3288
+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
3289
+ "peer-data-[size=sm]/menu-button:top-1",
3290
+ "peer-data-[size=default]/menu-button:top-1.5",
3291
+ "peer-data-[size=lg]/menu-button:top-2.5",
3292
+ "group-data-[collapsible=icon]:hidden",
3293
+ className
3294
+ ),
3295
+ ...props
3296
+ }
3297
+ ));
3298
+ SidebarMenuBadge.displayName = "SidebarMenuBadge";
3299
+ var SidebarMenuSkeleton = React35.forwardRef(({ className, showIcon = false, ...props }, ref) => {
3300
+ const width = React35.useMemo(() => {
3301
+ return `${Math.floor(Math.random() * 40) + 50}%`;
3302
+ }, []);
3303
+ return /* @__PURE__ */ jsxs18(
3304
+ "div",
3305
+ {
3306
+ ref,
3307
+ "data-sidebar": "menu-skeleton",
3308
+ className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
3309
+ ...props,
3310
+ children: [
3311
+ showIcon && /* @__PURE__ */ jsx36(
3312
+ Skeleton,
3313
+ {
3314
+ className: "size-4 rounded-md",
3315
+ "data-sidebar": "menu-skeleton-icon"
3316
+ }
3317
+ ),
3318
+ /* @__PURE__ */ jsx36(
3319
+ Skeleton,
3320
+ {
3321
+ className: "h-4 max-w-[--skeleton-width] flex-1",
3322
+ "data-sidebar": "menu-skeleton-text",
3323
+ style: {
3324
+ "--skeleton-width": width
3325
+ }
3326
+ }
3327
+ )
3328
+ ]
3329
+ }
3330
+ );
3331
+ });
3332
+ SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
3333
+ var SidebarMenuSub = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
3334
+ "ul",
3335
+ {
3336
+ ref,
3337
+ "data-sidebar": "menu-sub",
3338
+ className: cn(
3339
+ "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",
3340
+ "group-data-[collapsible=icon]:hidden",
3341
+ className
3342
+ ),
3343
+ ...props
3344
+ }
3345
+ ));
3346
+ SidebarMenuSub.displayName = "SidebarMenuSub";
3347
+ var SidebarMenuSubItem = React35.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx36("li", { ref, ...props }));
3348
+ SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
3349
+ var SidebarMenuSubButton = React35.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
3350
+ const Comp = asChild ? Slot4 : "a";
3351
+ return /* @__PURE__ */ jsx36(
3352
+ Comp,
3353
+ {
3354
+ ref,
3355
+ "data-sidebar": "menu-sub-button",
3356
+ "data-size": size,
3357
+ "data-active": isActive,
3358
+ className: cn(
3359
+ "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring 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 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
3360
+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
3361
+ size === "sm" && "text-xs",
3362
+ size === "md" && "text-sm",
3363
+ "group-data-[collapsible=icon]:hidden",
3364
+ className
3365
+ ),
3366
+ ...props
3367
+ }
3368
+ );
3369
+ });
3370
+ SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
3371
+
3372
+ // src/components/ui/slider.tsx
3373
+ import * as React36 from "react";
3374
+ import * as SliderPrimitive from "@radix-ui/react-slider";
3375
+ import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
3376
+ var Slider = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs19(
3377
+ SliderPrimitive.Root,
3378
+ {
3379
+ ref,
3380
+ className: cn(
3381
+ "relative flex w-full touch-none select-none items-center",
3382
+ className
3383
+ ),
3384
+ ...props,
3385
+ children: [
3386
+ /* @__PURE__ */ jsx37(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx37(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
3387
+ /* @__PURE__ */ jsx37(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
3388
+ ]
3389
+ }
3390
+ ));
3391
+ Slider.displayName = SliderPrimitive.Root.displayName;
3392
+
3393
+ // src/components/ui/sonner.tsx
3394
+ import { useTheme } from "next-themes";
3395
+ import { Toaster as Sonner } from "sonner";
3396
+ import { jsx as jsx38 } from "react/jsx-runtime";
3397
+ var Toaster = ({ ...props }) => {
3398
+ const { theme = "system" } = useTheme();
3399
+ return /* @__PURE__ */ jsx38(
3400
+ Sonner,
3401
+ {
3402
+ theme,
3403
+ className: "toaster group",
3404
+ toastOptions: {
3405
+ classNames: {
3406
+ toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
3407
+ description: "group-[.toast]:text-muted-foreground",
3408
+ actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
3409
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
3410
+ }
3411
+ },
3412
+ ...props
3413
+ }
3414
+ );
3415
+ };
3416
+
3417
+ // src/components/ui/switch.tsx
3418
+ import * as React37 from "react";
3419
+ import * as SwitchPrimitives from "@radix-ui/react-switch";
3420
+ import { jsx as jsx39 } from "react/jsx-runtime";
3421
+ var Switch = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
3422
+ SwitchPrimitives.Root,
3423
+ {
3424
+ className: cn(
3425
+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
3426
+ className
3427
+ ),
3428
+ ...props,
3429
+ ref,
3430
+ children: /* @__PURE__ */ jsx39(
3431
+ SwitchPrimitives.Thumb,
3432
+ {
3433
+ className: cn(
3434
+ "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
3435
+ )
3436
+ }
3437
+ )
3438
+ }
3439
+ ));
3440
+ Switch.displayName = SwitchPrimitives.Root.displayName;
3441
+
3442
+ // src/components/ui/table.tsx
3443
+ import * as React38 from "react";
3444
+ import { jsx as jsx40 } from "react/jsx-runtime";
3445
+ var Table = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx40(
3446
+ "table",
3447
+ {
3448
+ ref,
3449
+ className: cn("w-full caption-bottom text-sm", className),
3450
+ ...props
3451
+ }
3452
+ ) }));
3453
+ Table.displayName = "Table";
3454
+ var TableHeader = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
3455
+ TableHeader.displayName = "TableHeader";
3456
+ var TableBody = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3457
+ "tbody",
3458
+ {
3459
+ ref,
3460
+ className: cn("[&_tr:last-child]:border-0", className),
3461
+ ...props
3462
+ }
3463
+ ));
3464
+ TableBody.displayName = "TableBody";
3465
+ var TableFooter = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3466
+ "tfoot",
3467
+ {
3468
+ ref,
3469
+ className: cn(
3470
+ "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
3471
+ className
3472
+ ),
3473
+ ...props
3474
+ }
3475
+ ));
3476
+ TableFooter.displayName = "TableFooter";
3477
+ var TableRow = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3478
+ "tr",
3479
+ {
3480
+ ref,
3481
+ className: cn(
3482
+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
3483
+ className
3484
+ ),
3485
+ ...props
3486
+ }
3487
+ ));
3488
+ TableRow.displayName = "TableRow";
3489
+ var TableHead = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3490
+ "th",
3491
+ {
3492
+ ref,
3493
+ className: cn(
3494
+ "h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
3495
+ className
3496
+ ),
3497
+ ...props
3498
+ }
3499
+ ));
3500
+ TableHead.displayName = "TableHead";
3501
+ var TableCell = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3502
+ "td",
3503
+ {
3504
+ ref,
3505
+ className: cn(
3506
+ "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
3507
+ className
3508
+ ),
3509
+ ...props
3510
+ }
3511
+ ));
3512
+ TableCell.displayName = "TableCell";
3513
+ var TableCaption = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
3514
+ "caption",
3515
+ {
3516
+ ref,
3517
+ className: cn("mt-4 text-sm text-muted-foreground", className),
3518
+ ...props
3519
+ }
3520
+ ));
3521
+ TableCaption.displayName = "TableCaption";
3522
+
3523
+ // src/components/ui/tabs.tsx
3524
+ import * as React39 from "react";
3525
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3526
+ import { jsx as jsx41 } from "react/jsx-runtime";
3527
+ var Tabs = TabsPrimitive.Root;
3528
+ var TabsList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
3529
+ TabsPrimitive.List,
3530
+ {
3531
+ ref,
3532
+ className: cn(
3533
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
3534
+ className
3535
+ ),
3536
+ ...props
3537
+ }
3538
+ ));
3539
+ TabsList.displayName = TabsPrimitive.List.displayName;
3540
+ var TabsTrigger = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
3541
+ TabsPrimitive.Trigger,
3542
+ {
3543
+ ref,
3544
+ className: cn(
3545
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
3546
+ className
3547
+ ),
3548
+ ...props
3549
+ }
3550
+ ));
3551
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
3552
+ var TabsContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
3553
+ TabsPrimitive.Content,
3554
+ {
3555
+ ref,
3556
+ className: cn(
3557
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
3558
+ className
3559
+ ),
3560
+ ...props
3561
+ }
3562
+ ));
3563
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
3564
+
3565
+ // src/components/ui/textarea.tsx
3566
+ import * as React40 from "react";
3567
+ import { jsx as jsx42 } from "react/jsx-runtime";
3568
+ var Textarea = React40.forwardRef(({ className, ...props }, ref) => {
3569
+ return /* @__PURE__ */ jsx42(
3570
+ "textarea",
3571
+ {
3572
+ className: cn(
3573
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
3574
+ className
3575
+ ),
3576
+ ref,
3577
+ ...props
3578
+ }
3579
+ );
3580
+ });
3581
+ Textarea.displayName = "Textarea";
3582
+
3583
+ // src/components/ui/toast.tsx
3584
+ import * as React41 from "react";
3585
+ import * as ToastPrimitives from "@radix-ui/react-toast";
3586
+ import { cva as cva8 } from "class-variance-authority";
3587
+ import { X as X3 } from "lucide-react";
3588
+ import { jsx as jsx43 } from "react/jsx-runtime";
3589
+ var ToastProvider = ToastPrimitives.Provider;
3590
+ var ToastViewport = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
3591
+ ToastPrimitives.Viewport,
3592
+ {
3593
+ ref,
3594
+ className: cn(
3595
+ "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
3596
+ className
3597
+ ),
3598
+ ...props
3599
+ }
3600
+ ));
3601
+ ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
3602
+ var toastVariants = cva8(
3603
+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
3604
+ {
3605
+ variants: {
3606
+ variant: {
3607
+ default: "border bg-background text-foreground",
3608
+ destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
3609
+ }
3610
+ },
3611
+ defaultVariants: {
3612
+ variant: "default"
3613
+ }
3614
+ }
3615
+ );
3616
+ var Toast = React41.forwardRef(({ className, variant, ...props }, ref) => {
3617
+ return /* @__PURE__ */ jsx43(
3618
+ ToastPrimitives.Root,
3619
+ {
3620
+ ref,
3621
+ className: cn(toastVariants({ variant }), className),
3622
+ ...props
3623
+ }
3624
+ );
3625
+ });
3626
+ Toast.displayName = ToastPrimitives.Root.displayName;
3627
+ var ToastAction = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
3628
+ ToastPrimitives.Action,
3629
+ {
3630
+ ref,
3631
+ className: cn(
3632
+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
3633
+ className
3634
+ ),
3635
+ ...props
3636
+ }
3637
+ ));
3638
+ ToastAction.displayName = ToastPrimitives.Action.displayName;
3639
+ var ToastClose = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
3640
+ ToastPrimitives.Close,
3641
+ {
3642
+ ref,
3643
+ className: cn(
3644
+ "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
3645
+ className
3646
+ ),
3647
+ "toast-close": "",
3648
+ ...props,
3649
+ children: /* @__PURE__ */ jsx43(X3, { className: "h-4 w-4" })
3650
+ }
3651
+ ));
3652
+ ToastClose.displayName = ToastPrimitives.Close.displayName;
3653
+ var ToastTitle = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
3654
+ ToastPrimitives.Title,
3655
+ {
3656
+ ref,
3657
+ className: cn("text-sm font-semibold [&+div]:text-xs", className),
3658
+ ...props
3659
+ }
3660
+ ));
3661
+ ToastTitle.displayName = ToastPrimitives.Title.displayName;
3662
+ var ToastDescription = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
3663
+ ToastPrimitives.Description,
3664
+ {
3665
+ ref,
3666
+ className: cn("text-sm opacity-90", className),
3667
+ ...props
3668
+ }
3669
+ ));
3670
+ ToastDescription.displayName = ToastPrimitives.Description.displayName;
3671
+
3672
+ // src/components/ui/toaster.tsx
3673
+ import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
3674
+ function Toaster2() {
3675
+ const { toasts } = useToast();
3676
+ return /* @__PURE__ */ jsxs20(ToastProvider, { children: [
3677
+ toasts.map(function({ id, title, description, action, ...props }) {
3678
+ return /* @__PURE__ */ jsxs20(Toast, { ...props, children: [
3679
+ /* @__PURE__ */ jsxs20("div", { className: "grid gap-1", children: [
3680
+ title && /* @__PURE__ */ jsx44(ToastTitle, { children: title }),
3681
+ description && /* @__PURE__ */ jsx44(ToastDescription, { children: description })
3682
+ ] }),
3683
+ action,
3684
+ /* @__PURE__ */ jsx44(ToastClose, {})
3685
+ ] }, id);
3686
+ }),
3687
+ /* @__PURE__ */ jsx44(ToastViewport, {})
3688
+ ] });
3689
+ }
3690
+
3691
+ // src/components/ui/toggle.tsx
3692
+ import * as React42 from "react";
3693
+ import * as TogglePrimitive from "@radix-ui/react-toggle";
3694
+ import { cva as cva9 } from "class-variance-authority";
3695
+ import { jsx as jsx45 } from "react/jsx-runtime";
3696
+ var toggleVariants = cva9(
3697
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
3698
+ {
3699
+ variants: {
3700
+ variant: {
3701
+ default: "bg-transparent",
3702
+ outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
3703
+ },
3704
+ size: {
3705
+ default: "h-9 px-2 min-w-9",
3706
+ sm: "h-8 px-1.5 min-w-8",
3707
+ lg: "h-10 px-2.5 min-w-10"
3708
+ }
3709
+ },
3710
+ defaultVariants: {
3711
+ variant: "default",
3712
+ size: "default"
3713
+ }
3714
+ }
3715
+ );
3716
+ var Toggle = React42.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx45(
3717
+ TogglePrimitive.Root,
3718
+ {
3719
+ ref,
3720
+ className: cn(toggleVariants({ variant, size, className })),
3721
+ ...props
3722
+ }
3723
+ ));
3724
+ Toggle.displayName = TogglePrimitive.Root.displayName;
3725
+
3726
+ // src/components/ui/toggle-group.tsx
3727
+ import * as React43 from "react";
3728
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
3729
+ import { jsx as jsx46 } from "react/jsx-runtime";
3730
+ var ToggleGroupContext = React43.createContext({
3731
+ size: "default",
3732
+ variant: "default"
3733
+ });
3734
+ var ToggleGroup = React43.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx46(
3735
+ ToggleGroupPrimitive.Root,
3736
+ {
3737
+ ref,
3738
+ className: cn("flex items-center justify-center gap-1", className),
3739
+ ...props,
3740
+ children: /* @__PURE__ */ jsx46(ToggleGroupContext.Provider, { value: { variant, size }, children })
3741
+ }
3742
+ ));
3743
+ ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
3744
+ var ToggleGroupItem = React43.forwardRef(({ className, children, variant, size, ...props }, ref) => {
3745
+ const context = React43.useContext(ToggleGroupContext);
3746
+ return /* @__PURE__ */ jsx46(
3747
+ ToggleGroupPrimitive.Item,
3748
+ {
3749
+ ref,
3750
+ className: cn(
3751
+ toggleVariants({
3752
+ variant: context.variant || variant,
3753
+ size: context.size || size
3754
+ }),
3755
+ className
3756
+ ),
3757
+ ...props,
3758
+ children
3759
+ }
3760
+ );
3761
+ });
3762
+ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
3763
+ export {
3764
+ Accordion,
3765
+ AccordionContent,
3766
+ AccordionItem,
3767
+ AccordionTrigger,
3768
+ Alert,
3769
+ AlertDescription,
3770
+ AlertDialog,
3771
+ AlertDialogAction,
3772
+ AlertDialogCancel,
3773
+ AlertDialogContent,
3774
+ AlertDialogDescription,
3775
+ AlertDialogFooter,
3776
+ AlertDialogHeader,
3777
+ AlertDialogOverlay,
3778
+ AlertDialogPortal,
3779
+ AlertDialogTitle,
3780
+ AlertDialogTrigger,
3781
+ AlertTitle,
3782
+ AspectRatio,
3783
+ Avatar,
3784
+ AvatarFallback,
3785
+ AvatarImage,
3786
+ Badge,
3787
+ Breadcrumb,
3788
+ BreadcrumbEllipsis,
3789
+ BreadcrumbItem,
3790
+ BreadcrumbLink,
3791
+ BreadcrumbList,
3792
+ BreadcrumbPage,
3793
+ BreadcrumbSeparator,
3794
+ Button,
3795
+ Calendar,
3796
+ CalendarDayButton,
3797
+ Card,
3798
+ CardContent,
3799
+ CardDescription,
3800
+ CardFooter,
3801
+ CardHeader,
3802
+ CardTitle,
3803
+ Carousel,
3804
+ CarouselContent,
3805
+ CarouselItem,
3806
+ CarouselNext,
3807
+ CarouselPrevious,
3808
+ ChartContainer,
3809
+ ChartLegend,
3810
+ ChartLegendContent,
3811
+ ChartStyle,
3812
+ ChartTooltip,
3813
+ ChartTooltipContent,
3814
+ Checkbox,
3815
+ Collapsible,
3816
+ CollapsibleContent2 as CollapsibleContent,
3817
+ CollapsibleTrigger2 as CollapsibleTrigger,
3818
+ Command,
3819
+ CommandDialog,
3820
+ CommandEmpty,
3821
+ CommandGroup,
3822
+ CommandInput,
3823
+ CommandItem,
3824
+ CommandList,
3825
+ CommandSeparator,
3826
+ CommandShortcut,
3827
+ ContextMenu,
3828
+ ContextMenuCheckboxItem,
3829
+ ContextMenuContent,
3830
+ ContextMenuGroup,
3831
+ ContextMenuItem,
3832
+ ContextMenuLabel,
3833
+ ContextMenuPortal,
3834
+ ContextMenuRadioGroup,
3835
+ ContextMenuRadioItem,
3836
+ ContextMenuSeparator,
3837
+ ContextMenuShortcut,
3838
+ ContextMenuSub,
3839
+ ContextMenuSubContent,
3840
+ ContextMenuSubTrigger,
3841
+ ContextMenuTrigger,
3842
+ Dialog,
3843
+ DialogClose,
3844
+ DialogContent,
3845
+ DialogDescription,
3846
+ DialogFooter,
3847
+ DialogHeader,
3848
+ DialogOverlay,
3849
+ DialogPortal,
3850
+ DialogTitle,
3851
+ DialogTrigger,
3852
+ Drawer,
3853
+ DrawerClose,
3854
+ DrawerContent,
3855
+ DrawerDescription,
3856
+ DrawerFooter,
3857
+ DrawerHeader,
3858
+ DrawerOverlay,
3859
+ DrawerPortal,
3860
+ DrawerTitle,
3861
+ DrawerTrigger,
3862
+ DropdownMenu,
3863
+ DropdownMenuCheckboxItem,
3864
+ DropdownMenuContent,
3865
+ DropdownMenuGroup,
3866
+ DropdownMenuItem,
3867
+ DropdownMenuLabel,
3868
+ DropdownMenuPortal,
3869
+ DropdownMenuRadioGroup,
3870
+ DropdownMenuRadioItem,
3871
+ DropdownMenuSeparator,
3872
+ DropdownMenuShortcut,
3873
+ DropdownMenuSub,
3874
+ DropdownMenuSubContent,
3875
+ DropdownMenuSubTrigger,
3876
+ DropdownMenuTrigger,
3877
+ Form,
3878
+ FormControl,
3879
+ FormDescription,
3880
+ FormField,
3881
+ FormItem,
3882
+ FormLabel,
3883
+ FormMessage,
3884
+ HoverCard,
3885
+ HoverCardContent,
3886
+ HoverCardTrigger,
3887
+ Input,
3888
+ InputOTP,
3889
+ InputOTPGroup,
3890
+ InputOTPSeparator,
3891
+ InputOTPSlot,
3892
+ Label3 as Label,
3893
+ Menubar,
3894
+ MenubarCheckboxItem,
3895
+ MenubarContent,
3896
+ MenubarGroup,
3897
+ MenubarItem,
3898
+ MenubarLabel,
3899
+ MenubarMenu,
3900
+ MenubarPortal,
3901
+ MenubarRadioGroup,
3902
+ MenubarRadioItem,
3903
+ MenubarSeparator,
3904
+ MenubarShortcut,
3905
+ MenubarSub,
3906
+ MenubarSubContent,
3907
+ MenubarSubTrigger,
3908
+ MenubarTrigger,
3909
+ NavigationMenu,
3910
+ NavigationMenuContent,
3911
+ NavigationMenuIndicator,
3912
+ NavigationMenuItem,
3913
+ NavigationMenuLink,
3914
+ NavigationMenuList,
3915
+ NavigationMenuTrigger,
3916
+ NavigationMenuViewport,
3917
+ Pagination,
3918
+ PaginationContent,
3919
+ PaginationEllipsis,
3920
+ PaginationItem,
3921
+ PaginationLink,
3922
+ PaginationNext,
3923
+ PaginationPrevious,
3924
+ Popover,
3925
+ PopoverAnchor,
3926
+ PopoverContent,
3927
+ PopoverTrigger,
3928
+ Progress,
3929
+ RadioGroup4 as RadioGroup,
3930
+ RadioGroupItem,
3931
+ ResizableHandle,
3932
+ ResizablePanel,
3933
+ ResizablePanelGroup,
3934
+ ScrollArea,
3935
+ ScrollBar,
3936
+ Select,
3937
+ SelectContent,
3938
+ SelectGroup,
3939
+ SelectItem,
3940
+ SelectLabel,
3941
+ SelectScrollDownButton,
3942
+ SelectScrollUpButton,
3943
+ SelectSeparator,
3944
+ SelectTrigger,
3945
+ SelectValue,
3946
+ Separator6 as Separator,
3947
+ Sheet,
3948
+ SheetClose,
3949
+ SheetContent,
3950
+ SheetDescription,
3951
+ SheetFooter,
3952
+ SheetHeader,
3953
+ SheetOverlay,
3954
+ SheetPortal,
3955
+ SheetTitle,
3956
+ SheetTrigger,
3957
+ Sidebar,
3958
+ SidebarContent,
3959
+ SidebarFooter,
3960
+ SidebarGroup,
3961
+ SidebarGroupAction,
3962
+ SidebarGroupContent,
3963
+ SidebarGroupLabel,
3964
+ SidebarHeader,
3965
+ SidebarInput,
3966
+ SidebarInset,
3967
+ SidebarMenu,
3968
+ SidebarMenuAction,
3969
+ SidebarMenuBadge,
3970
+ SidebarMenuButton,
3971
+ SidebarMenuItem,
3972
+ SidebarMenuSkeleton,
3973
+ SidebarMenuSub,
3974
+ SidebarMenuSubButton,
3975
+ SidebarMenuSubItem,
3976
+ SidebarProvider,
3977
+ SidebarRail,
3978
+ SidebarSeparator,
3979
+ SidebarTrigger,
3980
+ Skeleton,
3981
+ Slider,
3982
+ Toaster as Sonner,
3983
+ Switch,
3984
+ Table,
3985
+ TableBody,
3986
+ TableCaption,
3987
+ TableCell,
3988
+ TableFooter,
3989
+ TableHead,
3990
+ TableHeader,
3991
+ TableRow,
3992
+ Tabs,
3993
+ TabsContent,
3994
+ TabsList,
3995
+ TabsTrigger,
3996
+ Textarea,
3997
+ Toast,
3998
+ ToastAction,
3999
+ ToastClose,
4000
+ ToastDescription,
4001
+ ToastProvider,
4002
+ ToastTitle,
4003
+ ToastViewport,
4004
+ Toaster2 as Toaster,
4005
+ Toggle,
4006
+ ToggleGroup,
4007
+ ToggleGroupItem,
4008
+ Tooltip2 as Tooltip,
4009
+ TooltipContent,
4010
+ TooltipProvider,
4011
+ TooltipTrigger,
4012
+ badgeVariants,
4013
+ buttonVariants,
4014
+ cn,
4015
+ navigationMenuTriggerStyle,
4016
+ toast,
4017
+ toggleVariants,
4018
+ useFormField,
4019
+ useIsMobile,
4020
+ useSidebar,
4021
+ useToast
4022
+ };
4023
+ //# sourceMappingURL=index.js.map