@the12company/ui 0.0.1 → 0.1.1

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