@appolabs/ui 0.1.0

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