@xwadex/fesd-next 0.3.3 → 0.3.4-11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +1 -26
  2. package/dist/components/index.d.mts +2 -0
  3. package/dist/components/index.mjs +2 -0
  4. package/dist/components-DMsIAeFi.mjs +975 -0
  5. package/dist/components-DMsIAeFi.mjs.map +1 -0
  6. package/dist/hooks/index.d.mts +2 -0
  7. package/dist/hooks/index.mjs +2 -0
  8. package/dist/index-1SzidEVJ.d.mts +213 -0
  9. package/dist/index-OVM4Yt0j.d.mts +169 -0
  10. package/dist/index.d.mts +6 -0
  11. package/dist/index.mjs +5 -0
  12. package/dist/shadcns/index.d.mts +1332 -0
  13. package/dist/shadcns/index.mjs +2607 -0
  14. package/dist/shadcns/index.mjs.map +1 -0
  15. package/dist/types/index.d.mts +20 -0
  16. package/dist/utils/index.d.mts +17 -0
  17. package/dist/utils/index.mjs +60 -0
  18. package/dist/utils/index.mjs.map +1 -0
  19. package/package.json +59 -47
  20. package/dist/components/index.d.ts +0 -1
  21. package/dist/components/index.js +0 -1
  22. package/dist/components/myComponents/MyComponent.d.ts +0 -2
  23. package/dist/components/myComponents/MyComponent.js +0 -4
  24. package/dist/components/myComponents/MyComponent.module.scss +0 -3
  25. package/dist/components/myComponents/index.d.ts +0 -1
  26. package/dist/components/myComponents/index.js +0 -1
  27. package/dist/hooks/index.d.ts +0 -1
  28. package/dist/hooks/index.js +0 -1
  29. package/dist/hooks/useHooks.d.ts +0 -1
  30. package/dist/hooks/useHooks.js +0 -3
  31. package/dist/index.d.ts +0 -4
  32. package/dist/index.js +0 -4
  33. package/dist/types/index.d.ts +0 -4
  34. package/dist/utils/index.d.ts +0 -1
  35. package/dist/utils/index.js +0 -1
  36. package/dist/utils/someUtil.d.ts +0 -1
  37. package/dist/utils/someUtil.js +0 -3
  38. /package/dist/types/{index.js → index.mjs} +0 -0
@@ -0,0 +1,2607 @@
1
+ import * as React$1 from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ import { ArrowLeft, ArrowRight, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRight, ChevronRightIcon, ChevronUpIcon, CircleIcon, GripVerticalIcon, MinusIcon, MoreHorizontal, MoreHorizontalIcon, PanelLeftIcon, SearchIcon, XIcon } from "lucide-react";
4
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
6
+ import { cva } from "class-variance-authority";
7
+ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
8
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
9
+ import { Slot } from "@radix-ui/react-slot";
10
+ import { DayPicker, getDefaultClassNames } from "react-day-picker";
11
+ import useEmblaCarousel from "embla-carousel-react";
12
+ import * as RechartsPrimitive from "recharts";
13
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
14
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
15
+ import { Command as Command$1 } from "cmdk";
16
+ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
17
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
18
+ import { Drawer as Drawer$1 } from "vaul";
19
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
20
+ import { Controller, FormProvider, useFormContext, useFormState } from "react-hook-form";
21
+ import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
22
+ import { OTPInput, OTPInputContext } from "input-otp";
23
+ import * as LabelPrimitive from "@radix-ui/react-label";
24
+ import * as MenubarPrimitive from "@radix-ui/react-menubar";
25
+ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
26
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
27
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
28
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
29
+ import * as ResizablePrimitive from "react-resizable-panels";
30
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
31
+ import * as SelectPrimitive from "@radix-ui/react-select";
32
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
33
+ import * as SliderPrimitive from "@radix-ui/react-slider";
34
+ import { useTheme } from "next-themes";
35
+ import { Toaster as Toaster$1 } from "sonner";
36
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
37
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
38
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
39
+ import * as TogglePrimitive from "@radix-ui/react-toggle";
40
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
41
+ import { clsx } from "clsx";
42
+ import { twMerge } from "tailwind-merge";
43
+ //#region src/shadcns/components/ui/accordion.tsx
44
+ function Accordion({ ...props }) {
45
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Root, {
46
+ "data-slot": "accordion",
47
+ ...props
48
+ });
49
+ }
50
+ function AccordionItem({ className, ...props }) {
51
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Item, {
52
+ "data-slot": "accordion-item",
53
+ className: cn("border-b last:border-b-0", className),
54
+ ...props
55
+ });
56
+ }
57
+ function AccordionTrigger({ className, children, ...props }) {
58
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Header, {
59
+ className: "flex",
60
+ children: /* @__PURE__ */ jsxs(AccordionPrimitive.Trigger, {
61
+ "data-slot": "accordion-trigger",
62
+ className: cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", className),
63
+ ...props,
64
+ children: [children, /* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })]
65
+ })
66
+ });
67
+ }
68
+ function AccordionContent({ className, children, ...props }) {
69
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Content, {
70
+ "data-slot": "accordion-content",
71
+ className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
72
+ ...props,
73
+ children: /* @__PURE__ */ jsx("div", {
74
+ className: cn("pt-0 pb-4", className),
75
+ children
76
+ })
77
+ });
78
+ }
79
+ //#endregion
80
+ //#region src/shadcns/components/ui/alert-dialog.tsx
81
+ function AlertDialog({ ...props }) {
82
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, {
83
+ "data-slot": "alert-dialog",
84
+ ...props
85
+ });
86
+ }
87
+ function AlertDialogTrigger({ ...props }) {
88
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Trigger, {
89
+ "data-slot": "alert-dialog-trigger",
90
+ ...props
91
+ });
92
+ }
93
+ function AlertDialogPortal({ ...props }) {
94
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, {
95
+ "data-slot": "alert-dialog-portal",
96
+ ...props
97
+ });
98
+ }
99
+ function AlertDialogOverlay({ className, ...props }) {
100
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, {
101
+ "data-slot": "alert-dialog-overlay",
102
+ className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
103
+ ...props
104
+ });
105
+ }
106
+ function AlertDialogContent({ className, ...props }) {
107
+ return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialogPrimitive.Content, {
108
+ "data-slot": "alert-dialog-content",
109
+ className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
110
+ ...props
111
+ })] });
112
+ }
113
+ function AlertDialogHeader({ className, ...props }) {
114
+ return /* @__PURE__ */ jsx("div", {
115
+ "data-slot": "alert-dialog-header",
116
+ className: cn("flex flex-col gap-2 text-center sm:text-left", className),
117
+ ...props
118
+ });
119
+ }
120
+ function AlertDialogFooter({ className, ...props }) {
121
+ return /* @__PURE__ */ jsx("div", {
122
+ "data-slot": "alert-dialog-footer",
123
+ className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
124
+ ...props
125
+ });
126
+ }
127
+ function AlertDialogTitle({ className, ...props }) {
128
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, {
129
+ "data-slot": "alert-dialog-title",
130
+ className: cn("text-lg font-semibold", className),
131
+ ...props
132
+ });
133
+ }
134
+ function AlertDialogDescription({ className, ...props }) {
135
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, {
136
+ "data-slot": "alert-dialog-description",
137
+ className: cn("text-muted-foreground text-sm", className),
138
+ ...props
139
+ });
140
+ }
141
+ function AlertDialogAction({ className, ...props }) {
142
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, {
143
+ className: cn(buttonVariants(), className),
144
+ ...props
145
+ });
146
+ }
147
+ function AlertDialogCancel({ className, ...props }) {
148
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, {
149
+ className: cn(buttonVariants({ variant: "outline" }), className),
150
+ ...props
151
+ });
152
+ }
153
+ //#endregion
154
+ //#region src/shadcns/components/ui/alert.tsx
155
+ const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
156
+ variants: { variant: {
157
+ default: "bg-card text-card-foreground",
158
+ destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
159
+ } },
160
+ defaultVariants: { variant: "default" }
161
+ });
162
+ function Alert({ className, variant, ...props }) {
163
+ return /* @__PURE__ */ jsx("div", {
164
+ "data-slot": "alert",
165
+ role: "alert",
166
+ className: cn(alertVariants({ variant }), className),
167
+ ...props
168
+ });
169
+ }
170
+ function AlertTitle({ className, ...props }) {
171
+ return /* @__PURE__ */ jsx("div", {
172
+ "data-slot": "alert-title",
173
+ className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
174
+ ...props
175
+ });
176
+ }
177
+ function AlertDescription({ className, ...props }) {
178
+ return /* @__PURE__ */ jsx("div", {
179
+ "data-slot": "alert-description",
180
+ className: cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className),
181
+ ...props
182
+ });
183
+ }
184
+ //#endregion
185
+ //#region src/shadcns/components/ui/aspect-ratio.tsx
186
+ function AspectRatio({ ...props }) {
187
+ return /* @__PURE__ */ jsx(AspectRatioPrimitive.Root, {
188
+ "data-slot": "aspect-ratio",
189
+ ...props
190
+ });
191
+ }
192
+ //#endregion
193
+ //#region src/shadcns/components/ui/avatar.tsx
194
+ function Avatar({ className, ...props }) {
195
+ return /* @__PURE__ */ jsx(AvatarPrimitive.Root, {
196
+ "data-slot": "avatar",
197
+ className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
198
+ ...props
199
+ });
200
+ }
201
+ function AvatarImage({ className, ...props }) {
202
+ return /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
203
+ "data-slot": "avatar-image",
204
+ className: cn("aspect-square size-full", className),
205
+ ...props
206
+ });
207
+ }
208
+ function AvatarFallback({ className, ...props }) {
209
+ return /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
210
+ "data-slot": "avatar-fallback",
211
+ className: cn("bg-muted flex size-full items-center justify-center rounded-full", className),
212
+ ...props
213
+ });
214
+ }
215
+ //#endregion
216
+ //#region src/shadcns/components/ui/badge.tsx
217
+ const badgeVariants = cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
218
+ variants: { variant: {
219
+ default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
220
+ secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
221
+ destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
222
+ outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
223
+ } },
224
+ defaultVariants: { variant: "default" }
225
+ });
226
+ function Badge({ className, variant, asChild = false, ...props }) {
227
+ return /* @__PURE__ */ jsx(asChild ? Slot : "span", {
228
+ "data-slot": "badge",
229
+ className: cn(badgeVariants({ variant }), className),
230
+ ...props
231
+ });
232
+ }
233
+ //#endregion
234
+ //#region src/shadcns/components/ui/breadcrumb.tsx
235
+ function Breadcrumb({ ...props }) {
236
+ return /* @__PURE__ */ jsx("nav", {
237
+ "aria-label": "breadcrumb",
238
+ "data-slot": "breadcrumb",
239
+ ...props
240
+ });
241
+ }
242
+ function BreadcrumbList({ className, ...props }) {
243
+ return /* @__PURE__ */ jsx("ol", {
244
+ "data-slot": "breadcrumb-list",
245
+ className: cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", className),
246
+ ...props
247
+ });
248
+ }
249
+ function BreadcrumbItem({ className, ...props }) {
250
+ return /* @__PURE__ */ jsx("li", {
251
+ "data-slot": "breadcrumb-item",
252
+ className: cn("inline-flex items-center gap-1.5", className),
253
+ ...props
254
+ });
255
+ }
256
+ function BreadcrumbLink({ asChild, className, ...props }) {
257
+ return /* @__PURE__ */ jsx(asChild ? Slot : "a", {
258
+ "data-slot": "breadcrumb-link",
259
+ className: cn("hover:text-foreground transition-colors", className),
260
+ ...props
261
+ });
262
+ }
263
+ function BreadcrumbPage({ className, ...props }) {
264
+ return /* @__PURE__ */ jsx("span", {
265
+ "data-slot": "breadcrumb-page",
266
+ role: "link",
267
+ "aria-disabled": "true",
268
+ "aria-current": "page",
269
+ className: cn("text-foreground font-normal", className),
270
+ ...props
271
+ });
272
+ }
273
+ function BreadcrumbSeparator({ children, className, ...props }) {
274
+ return /* @__PURE__ */ jsx("li", {
275
+ "data-slot": "breadcrumb-separator",
276
+ role: "presentation",
277
+ "aria-hidden": "true",
278
+ className: cn("[&>svg]:size-3.5", className),
279
+ ...props,
280
+ children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
281
+ });
282
+ }
283
+ function BreadcrumbEllipsis({ className, ...props }) {
284
+ return /* @__PURE__ */ jsxs("span", {
285
+ "data-slot": "breadcrumb-ellipsis",
286
+ role: "presentation",
287
+ "aria-hidden": "true",
288
+ className: cn("flex size-9 items-center justify-center", className),
289
+ ...props,
290
+ children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
291
+ className: "sr-only",
292
+ children: "More"
293
+ })]
294
+ });
295
+ }
296
+ //#endregion
297
+ //#region src/shadcns/components/ui/button.tsx
298
+ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
299
+ variants: {
300
+ variant: {
301
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
302
+ destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
303
+ outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
304
+ secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
305
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
306
+ link: "text-primary underline-offset-4 hover:underline"
307
+ },
308
+ size: {
309
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
310
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
311
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
312
+ icon: "size-9"
313
+ }
314
+ },
315
+ defaultVariants: {
316
+ variant: "default",
317
+ size: "default"
318
+ }
319
+ });
320
+ function Button({ className, variant, size, asChild = false, ...props }) {
321
+ return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
322
+ "data-slot": "button",
323
+ className: cn(buttonVariants({
324
+ variant,
325
+ size,
326
+ className
327
+ })),
328
+ ...props
329
+ });
330
+ }
331
+ //#endregion
332
+ //#region src/shadcns/components/ui/calendar.tsx
333
+ function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
334
+ const defaultClassNames = getDefaultClassNames();
335
+ return /* @__PURE__ */ jsx(DayPicker, {
336
+ showOutsideDays,
337
+ className: cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className),
338
+ captionLayout,
339
+ formatters: {
340
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
341
+ ...formatters
342
+ },
343
+ classNames: {
344
+ root: cn("w-fit", defaultClassNames.root),
345
+ months: cn("flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
346
+ month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
347
+ nav: cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
348
+ button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_previous),
349
+ button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_next),
350
+ month_caption: cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", defaultClassNames.month_caption),
351
+ dropdowns: cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", defaultClassNames.dropdowns),
352
+ dropdown_root: cn("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md", defaultClassNames.dropdown_root),
353
+ dropdown: cn("absolute inset-0 opacity-0", defaultClassNames.dropdown),
354
+ caption_label: cn("select-none font-medium", captionLayout === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", defaultClassNames.caption_label),
355
+ table: "w-full border-collapse",
356
+ weekdays: cn("flex", defaultClassNames.weekdays),
357
+ weekday: cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", defaultClassNames.weekday),
358
+ week: cn("flex w-full mt-2", defaultClassNames.week),
359
+ week_number_header: cn("select-none w-(--cell-size)", defaultClassNames.week_number_header),
360
+ week_number: cn("text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
361
+ day: cn("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", defaultClassNames.day),
362
+ range_start: cn("rounded-l-md bg-accent", defaultClassNames.range_start),
363
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
364
+ range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
365
+ today: cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today),
366
+ outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
367
+ disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
368
+ hidden: cn("invisible", defaultClassNames.hidden),
369
+ ...classNames
370
+ },
371
+ components: {
372
+ Root: ({ className, rootRef, ...props }) => {
373
+ return /* @__PURE__ */ jsx("div", {
374
+ "data-slot": "calendar",
375
+ ref: rootRef,
376
+ className: cn(className),
377
+ ...props
378
+ });
379
+ },
380
+ Chevron: ({ className, orientation, ...props }) => {
381
+ if (orientation === "left") return /* @__PURE__ */ jsx(ChevronLeftIcon, {
382
+ className: cn("size-4", className),
383
+ ...props
384
+ });
385
+ if (orientation === "right") return /* @__PURE__ */ jsx(ChevronRightIcon, {
386
+ className: cn("size-4", className),
387
+ ...props
388
+ });
389
+ return /* @__PURE__ */ jsx(ChevronDownIcon, {
390
+ className: cn("size-4", className),
391
+ ...props
392
+ });
393
+ },
394
+ DayButton: CalendarDayButton,
395
+ WeekNumber: ({ children, ...props }) => {
396
+ return /* @__PURE__ */ jsx("td", {
397
+ ...props,
398
+ children: /* @__PURE__ */ jsx("div", {
399
+ className: "flex size-(--cell-size) items-center justify-center text-center",
400
+ children
401
+ })
402
+ });
403
+ },
404
+ ...components
405
+ },
406
+ ...props
407
+ });
408
+ }
409
+ function CalendarDayButton({ className, day, modifiers, ...props }) {
410
+ const defaultClassNames = getDefaultClassNames();
411
+ const ref = React$1.useRef(null);
412
+ React$1.useEffect(() => {
413
+ if (modifiers.focused) ref.current?.focus();
414
+ }, [modifiers.focused]);
415
+ return /* @__PURE__ */ jsx(Button, {
416
+ ref,
417
+ variant: "ghost",
418
+ size: "icon",
419
+ "data-day": day.date.toLocaleDateString(),
420
+ "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
421
+ "data-range-start": modifiers.range_start,
422
+ "data-range-end": modifiers.range_end,
423
+ "data-range-middle": modifiers.range_middle,
424
+ className: cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className),
425
+ ...props
426
+ });
427
+ }
428
+ //#endregion
429
+ //#region src/shadcns/components/ui/card.tsx
430
+ function Card({ className, ...props }) {
431
+ return /* @__PURE__ */ jsx("div", {
432
+ "data-slot": "card",
433
+ className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
434
+ ...props
435
+ });
436
+ }
437
+ function CardHeader({ className, ...props }) {
438
+ return /* @__PURE__ */ jsx("div", {
439
+ "data-slot": "card-header",
440
+ className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className),
441
+ ...props
442
+ });
443
+ }
444
+ function CardTitle({ className, ...props }) {
445
+ return /* @__PURE__ */ jsx("div", {
446
+ "data-slot": "card-title",
447
+ className: cn("leading-none font-semibold", className),
448
+ ...props
449
+ });
450
+ }
451
+ function CardDescription({ className, ...props }) {
452
+ return /* @__PURE__ */ jsx("div", {
453
+ "data-slot": "card-description",
454
+ className: cn("text-muted-foreground text-sm", className),
455
+ ...props
456
+ });
457
+ }
458
+ function CardAction({ className, ...props }) {
459
+ return /* @__PURE__ */ jsx("div", {
460
+ "data-slot": "card-action",
461
+ className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
462
+ ...props
463
+ });
464
+ }
465
+ function CardContent({ className, ...props }) {
466
+ return /* @__PURE__ */ jsx("div", {
467
+ "data-slot": "card-content",
468
+ className: cn("px-6", className),
469
+ ...props
470
+ });
471
+ }
472
+ function CardFooter({ className, ...props }) {
473
+ return /* @__PURE__ */ jsx("div", {
474
+ "data-slot": "card-footer",
475
+ className: cn("flex items-center px-6 [.border-t]:pt-6", className),
476
+ ...props
477
+ });
478
+ }
479
+ //#endregion
480
+ //#region src/shadcns/components/ui/carousel.tsx
481
+ const CarouselContext = React$1.createContext(null);
482
+ function useCarousel() {
483
+ const context = React$1.useContext(CarouselContext);
484
+ if (!context) throw new Error("useCarousel must be used within a <Carousel />");
485
+ return context;
486
+ }
487
+ function Carousel({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }) {
488
+ const [carouselRef, api] = useEmblaCarousel({
489
+ ...opts,
490
+ axis: orientation === "horizontal" ? "x" : "y"
491
+ }, plugins);
492
+ const [canScrollPrev, setCanScrollPrev] = React$1.useState(false);
493
+ const [canScrollNext, setCanScrollNext] = React$1.useState(false);
494
+ const onSelect = React$1.useCallback((api) => {
495
+ if (!api) return;
496
+ setCanScrollPrev(api.canScrollPrev());
497
+ setCanScrollNext(api.canScrollNext());
498
+ }, []);
499
+ const scrollPrev = React$1.useCallback(() => {
500
+ api?.scrollPrev();
501
+ }, [api]);
502
+ const scrollNext = React$1.useCallback(() => {
503
+ api?.scrollNext();
504
+ }, [api]);
505
+ const handleKeyDown = React$1.useCallback((event) => {
506
+ if (event.key === "ArrowLeft") {
507
+ event.preventDefault();
508
+ scrollPrev();
509
+ } else if (event.key === "ArrowRight") {
510
+ event.preventDefault();
511
+ scrollNext();
512
+ }
513
+ }, [scrollPrev, scrollNext]);
514
+ React$1.useEffect(() => {
515
+ if (!api || !setApi) return;
516
+ setApi(api);
517
+ }, [api, setApi]);
518
+ React$1.useEffect(() => {
519
+ if (!api) return;
520
+ onSelect(api);
521
+ api.on("reInit", onSelect);
522
+ api.on("select", onSelect);
523
+ return () => {
524
+ api?.off("select", onSelect);
525
+ };
526
+ }, [api, onSelect]);
527
+ return /* @__PURE__ */ jsx(CarouselContext.Provider, {
528
+ value: {
529
+ carouselRef,
530
+ api,
531
+ opts,
532
+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
533
+ scrollPrev,
534
+ scrollNext,
535
+ canScrollPrev,
536
+ canScrollNext
537
+ },
538
+ children: /* @__PURE__ */ jsx("div", {
539
+ onKeyDownCapture: handleKeyDown,
540
+ className: cn("relative", className),
541
+ role: "region",
542
+ "aria-roledescription": "carousel",
543
+ "data-slot": "carousel",
544
+ ...props,
545
+ children
546
+ })
547
+ });
548
+ }
549
+ function CarouselContent({ className, ...props }) {
550
+ const { carouselRef, orientation } = useCarousel();
551
+ return /* @__PURE__ */ jsx("div", {
552
+ ref: carouselRef,
553
+ className: "overflow-hidden",
554
+ "data-slot": "carousel-content",
555
+ children: /* @__PURE__ */ jsx("div", {
556
+ className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
557
+ ...props
558
+ })
559
+ });
560
+ }
561
+ function CarouselItem({ className, ...props }) {
562
+ const { orientation } = useCarousel();
563
+ return /* @__PURE__ */ jsx("div", {
564
+ role: "group",
565
+ "aria-roledescription": "slide",
566
+ "data-slot": "carousel-item",
567
+ className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
568
+ ...props
569
+ });
570
+ }
571
+ function CarouselPrevious({ className, variant = "outline", size = "icon", ...props }) {
572
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
573
+ return /* @__PURE__ */ jsxs(Button, {
574
+ "data-slot": "carousel-previous",
575
+ variant,
576
+ size,
577
+ className: cn("absolute size-8 rounded-full", orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
578
+ disabled: !canScrollPrev,
579
+ onClick: scrollPrev,
580
+ ...props,
581
+ children: [/* @__PURE__ */ jsx(ArrowLeft, {}), /* @__PURE__ */ jsx("span", {
582
+ className: "sr-only",
583
+ children: "Previous slide"
584
+ })]
585
+ });
586
+ }
587
+ function CarouselNext({ className, variant = "outline", size = "icon", ...props }) {
588
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
589
+ return /* @__PURE__ */ jsxs(Button, {
590
+ "data-slot": "carousel-next",
591
+ variant,
592
+ size,
593
+ className: cn("absolute size-8 rounded-full", orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className),
594
+ disabled: !canScrollNext,
595
+ onClick: scrollNext,
596
+ ...props,
597
+ children: [/* @__PURE__ */ jsx(ArrowRight, {}), /* @__PURE__ */ jsx("span", {
598
+ className: "sr-only",
599
+ children: "Next slide"
600
+ })]
601
+ });
602
+ }
603
+ //#endregion
604
+ //#region src/shadcns/components/ui/chart.tsx
605
+ const THEMES = {
606
+ light: "",
607
+ dark: ".dark"
608
+ };
609
+ const ChartContext = React$1.createContext(null);
610
+ function useChart() {
611
+ const context = React$1.useContext(ChartContext);
612
+ if (!context) throw new Error("useChart must be used within a <ChartContainer />");
613
+ return context;
614
+ }
615
+ function ChartContainer({ id, className, children, config, ...props }) {
616
+ const uniqueId = React$1.useId();
617
+ const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
618
+ return /* @__PURE__ */ jsx(ChartContext.Provider, {
619
+ value: { config },
620
+ children: /* @__PURE__ */ jsxs("div", {
621
+ "data-slot": "chart",
622
+ "data-chart": chartId,
623
+ className: cn("[&_.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-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 flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", className),
624
+ ...props,
625
+ children: [/* @__PURE__ */ jsx(ChartStyle, {
626
+ id: chartId,
627
+ config
628
+ }), /* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, { children })]
629
+ })
630
+ });
631
+ }
632
+ const ChartStyle = ({ id, config }) => {
633
+ const colorConfig = Object.entries(config).filter(([, config]) => config.theme || config.color);
634
+ if (!colorConfig.length) return null;
635
+ return /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: Object.entries(THEMES).map(([theme, prefix]) => `
636
+ ${prefix} [data-chart=${id}] {
637
+ ${colorConfig.map(([key, itemConfig]) => {
638
+ const color = itemConfig.theme?.[theme] || itemConfig.color;
639
+ return color ? ` --color-${key}: ${color};` : null;
640
+ }).join("\n")}
641
+ }
642
+ `).join("\n") } });
643
+ };
644
+ const ChartTooltip = RechartsPrimitive.Tooltip;
645
+ function ChartTooltipContent({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey }) {
646
+ const { config } = useChart();
647
+ const tooltipLabel = React$1.useMemo(() => {
648
+ if (hideLabel || !payload?.length) return null;
649
+ const [item] = payload;
650
+ const itemConfig = getPayloadConfigFromPayload(config, item, `${labelKey || item?.dataKey || item?.name || "value"}`);
651
+ const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
652
+ if (labelFormatter) return /* @__PURE__ */ jsx("div", {
653
+ className: cn("font-medium", labelClassName),
654
+ children: labelFormatter(value, payload)
655
+ });
656
+ if (!value) return null;
657
+ return /* @__PURE__ */ jsx("div", {
658
+ className: cn("font-medium", labelClassName),
659
+ children: value
660
+ });
661
+ }, [
662
+ label,
663
+ labelFormatter,
664
+ payload,
665
+ hideLabel,
666
+ labelClassName,
667
+ config,
668
+ labelKey
669
+ ]);
670
+ if (!active || !payload?.length) return null;
671
+ const nestLabel = payload.length === 1 && indicator !== "dot";
672
+ return /* @__PURE__ */ jsxs("div", {
673
+ className: cn("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl", className),
674
+ children: [!nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("div", {
675
+ className: "grid gap-1.5",
676
+ children: payload.map((item, index) => {
677
+ const itemConfig = getPayloadConfigFromPayload(config, item, `${nameKey || item.name || item.dataKey || "value"}`);
678
+ const indicatorColor = color || item.payload.fill || item.color;
679
+ return /* @__PURE__ */ jsx("div", {
680
+ className: cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", indicator === "dot" && "items-center"),
681
+ children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs(Fragment, { children: [itemConfig?.icon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx("div", {
682
+ className: cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
683
+ "h-2.5 w-2.5": indicator === "dot",
684
+ "w-1": indicator === "line",
685
+ "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
686
+ "my-0.5": nestLabel && indicator === "dashed"
687
+ }),
688
+ style: {
689
+ "--color-bg": indicatorColor,
690
+ "--color-border": indicatorColor
691
+ }
692
+ }), /* @__PURE__ */ jsxs("div", {
693
+ className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
694
+ children: [/* @__PURE__ */ jsxs("div", {
695
+ className: "grid gap-1.5",
696
+ children: [nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("span", {
697
+ className: "text-muted-foreground",
698
+ children: itemConfig?.label || item.name
699
+ })]
700
+ }), item.value && /* @__PURE__ */ jsx("span", {
701
+ className: "text-foreground font-mono font-medium tabular-nums",
702
+ children: item.value.toLocaleString()
703
+ })]
704
+ })] })
705
+ }, item.dataKey);
706
+ })
707
+ })]
708
+ });
709
+ }
710
+ const ChartLegend = RechartsPrimitive.Legend;
711
+ function ChartLegendContent({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }) {
712
+ const { config } = useChart();
713
+ if (!payload?.length) return null;
714
+ return /* @__PURE__ */ jsx("div", {
715
+ className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className),
716
+ children: payload.map((item) => {
717
+ const itemConfig = getPayloadConfigFromPayload(config, item, `${nameKey || item.dataKey || "value"}`);
718
+ return /* @__PURE__ */ jsxs("div", {
719
+ className: cn("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
720
+ children: [itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx("div", {
721
+ className: "h-2 w-2 shrink-0 rounded-[2px]",
722
+ style: { backgroundColor: item.color }
723
+ }), itemConfig?.label]
724
+ }, item.value);
725
+ })
726
+ });
727
+ }
728
+ function getPayloadConfigFromPayload(config, payload, key) {
729
+ if (typeof payload !== "object" || payload === null) return;
730
+ const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
731
+ let configLabelKey = key;
732
+ if (key in payload && typeof payload[key] === "string") configLabelKey = payload[key];
733
+ else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") configLabelKey = payloadPayload[key];
734
+ return configLabelKey in config ? config[configLabelKey] : config[key];
735
+ }
736
+ //#endregion
737
+ //#region src/shadcns/components/ui/checkbox.tsx
738
+ function Checkbox({ className, ...props }) {
739
+ return /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
740
+ "data-slot": "checkbox",
741
+ className: cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
742
+ ...props,
743
+ children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
744
+ "data-slot": "checkbox-indicator",
745
+ className: "flex items-center justify-center text-current transition-none",
746
+ children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
747
+ })
748
+ });
749
+ }
750
+ //#endregion
751
+ //#region src/shadcns/components/ui/collapsible.tsx
752
+ function Collapsible({ ...props }) {
753
+ return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, {
754
+ "data-slot": "collapsible",
755
+ ...props
756
+ });
757
+ }
758
+ function CollapsibleTrigger({ ...props }) {
759
+ return /* @__PURE__ */ jsx(CollapsiblePrimitive.CollapsibleTrigger, {
760
+ "data-slot": "collapsible-trigger",
761
+ ...props
762
+ });
763
+ }
764
+ function CollapsibleContent({ ...props }) {
765
+ return /* @__PURE__ */ jsx(CollapsiblePrimitive.CollapsibleContent, {
766
+ "data-slot": "collapsible-content",
767
+ ...props
768
+ });
769
+ }
770
+ //#endregion
771
+ //#region src/shadcns/components/ui/command.tsx
772
+ function Command({ className, ...props }) {
773
+ return /* @__PURE__ */ jsx(Command$1, {
774
+ "data-slot": "command",
775
+ className: cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className),
776
+ ...props
777
+ });
778
+ }
779
+ function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }) {
780
+ return /* @__PURE__ */ jsxs(Dialog, {
781
+ ...props,
782
+ children: [/* @__PURE__ */ jsxs(DialogHeader, {
783
+ className: "sr-only",
784
+ children: [/* @__PURE__ */ jsx(DialogTitle, { children: title }), /* @__PURE__ */ jsx(DialogDescription, { children: description })]
785
+ }), /* @__PURE__ */ jsx(DialogContent, {
786
+ className: cn("overflow-hidden p-0", className),
787
+ showCloseButton,
788
+ children: /* @__PURE__ */ jsx(Command, {
789
+ className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[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",
790
+ children
791
+ })
792
+ })]
793
+ });
794
+ }
795
+ function CommandInput({ className, ...props }) {
796
+ return /* @__PURE__ */ jsxs("div", {
797
+ "data-slot": "command-input-wrapper",
798
+ className: "flex h-9 items-center gap-2 border-b px-3",
799
+ children: [/* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command$1.Input, {
800
+ "data-slot": "command-input",
801
+ className: cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className),
802
+ ...props
803
+ })]
804
+ });
805
+ }
806
+ function CommandList({ className, ...props }) {
807
+ return /* @__PURE__ */ jsx(Command$1.List, {
808
+ "data-slot": "command-list",
809
+ className: cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className),
810
+ ...props
811
+ });
812
+ }
813
+ function CommandEmpty({ ...props }) {
814
+ return /* @__PURE__ */ jsx(Command$1.Empty, {
815
+ "data-slot": "command-empty",
816
+ className: "py-6 text-center text-sm",
817
+ ...props
818
+ });
819
+ }
820
+ function CommandGroup({ className, ...props }) {
821
+ return /* @__PURE__ */ jsx(Command$1.Group, {
822
+ "data-slot": "command-group",
823
+ className: cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
824
+ ...props
825
+ });
826
+ }
827
+ function CommandSeparator({ className, ...props }) {
828
+ return /* @__PURE__ */ jsx(Command$1.Separator, {
829
+ "data-slot": "command-separator",
830
+ className: cn("bg-border -mx-1 h-px", className),
831
+ ...props
832
+ });
833
+ }
834
+ function CommandItem({ className, ...props }) {
835
+ return /* @__PURE__ */ jsx(Command$1.Item, {
836
+ "data-slot": "command-item",
837
+ className: cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
838
+ ...props
839
+ });
840
+ }
841
+ function CommandShortcut({ className, ...props }) {
842
+ return /* @__PURE__ */ jsx("span", {
843
+ "data-slot": "command-shortcut",
844
+ className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
845
+ ...props
846
+ });
847
+ }
848
+ //#endregion
849
+ //#region src/shadcns/components/ui/context-menu.tsx
850
+ function ContextMenu({ ...props }) {
851
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Root, {
852
+ "data-slot": "context-menu",
853
+ ...props
854
+ });
855
+ }
856
+ function ContextMenuTrigger({ ...props }) {
857
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Trigger, {
858
+ "data-slot": "context-menu-trigger",
859
+ ...props
860
+ });
861
+ }
862
+ function ContextMenuGroup({ ...props }) {
863
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Group, {
864
+ "data-slot": "context-menu-group",
865
+ ...props
866
+ });
867
+ }
868
+ function ContextMenuPortal({ ...props }) {
869
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, {
870
+ "data-slot": "context-menu-portal",
871
+ ...props
872
+ });
873
+ }
874
+ function ContextMenuSub({ ...props }) {
875
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Sub, {
876
+ "data-slot": "context-menu-sub",
877
+ ...props
878
+ });
879
+ }
880
+ function ContextMenuRadioGroup({ ...props }) {
881
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.RadioGroup, {
882
+ "data-slot": "context-menu-radio-group",
883
+ ...props
884
+ });
885
+ }
886
+ function ContextMenuSubTrigger({ className, inset, children, ...props }) {
887
+ return /* @__PURE__ */ jsxs(ContextMenuPrimitive.SubTrigger, {
888
+ "data-slot": "context-menu-sub-trigger",
889
+ "data-inset": inset,
890
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
891
+ ...props,
892
+ children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto" })]
893
+ });
894
+ }
895
+ function ContextMenuSubContent({ className, ...props }) {
896
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.SubContent, {
897
+ "data-slot": "context-menu-sub-content",
898
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className),
899
+ ...props
900
+ });
901
+ }
902
+ function ContextMenuContent({ className, ...props }) {
903
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(ContextMenuPrimitive.Content, {
904
+ "data-slot": "context-menu-content",
905
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className),
906
+ ...props
907
+ }) });
908
+ }
909
+ function ContextMenuItem({ className, inset, variant = "default", ...props }) {
910
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Item, {
911
+ "data-slot": "context-menu-item",
912
+ "data-inset": inset,
913
+ "data-variant": variant,
914
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
915
+ ...props
916
+ });
917
+ }
918
+ function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
919
+ return /* @__PURE__ */ jsxs(ContextMenuPrimitive.CheckboxItem, {
920
+ "data-slot": "context-menu-checkbox-item",
921
+ className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
922
+ checked,
923
+ ...props,
924
+ children: [/* @__PURE__ */ jsx("span", {
925
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
926
+ children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
927
+ }), children]
928
+ });
929
+ }
930
+ function ContextMenuRadioItem({ className, children, ...props }) {
931
+ return /* @__PURE__ */ jsxs(ContextMenuPrimitive.RadioItem, {
932
+ "data-slot": "context-menu-radio-item",
933
+ className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
934
+ ...props,
935
+ children: [/* @__PURE__ */ jsx("span", {
936
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
937
+ children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) })
938
+ }), children]
939
+ });
940
+ }
941
+ function ContextMenuLabel({ className, inset, ...props }) {
942
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Label, {
943
+ "data-slot": "context-menu-label",
944
+ "data-inset": inset,
945
+ className: cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
946
+ ...props
947
+ });
948
+ }
949
+ function ContextMenuSeparator({ className, ...props }) {
950
+ return /* @__PURE__ */ jsx(ContextMenuPrimitive.Separator, {
951
+ "data-slot": "context-menu-separator",
952
+ className: cn("bg-border -mx-1 my-1 h-px", className),
953
+ ...props
954
+ });
955
+ }
956
+ function ContextMenuShortcut({ className, ...props }) {
957
+ return /* @__PURE__ */ jsx("span", {
958
+ "data-slot": "context-menu-shortcut",
959
+ className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
960
+ ...props
961
+ });
962
+ }
963
+ //#endregion
964
+ //#region src/shadcns/components/ui/dialog.tsx
965
+ function Dialog({ ...props }) {
966
+ return /* @__PURE__ */ jsx(DialogPrimitive.Root, {
967
+ "data-slot": "dialog",
968
+ ...props
969
+ });
970
+ }
971
+ function DialogTrigger({ ...props }) {
972
+ return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, {
973
+ "data-slot": "dialog-trigger",
974
+ ...props
975
+ });
976
+ }
977
+ function DialogPortal({ ...props }) {
978
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, {
979
+ "data-slot": "dialog-portal",
980
+ ...props
981
+ });
982
+ }
983
+ function DialogClose({ ...props }) {
984
+ return /* @__PURE__ */ jsx(DialogPrimitive.Close, {
985
+ "data-slot": "dialog-close",
986
+ ...props
987
+ });
988
+ }
989
+ function DialogOverlay({ className, ...props }) {
990
+ return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
991
+ "data-slot": "dialog-overlay",
992
+ className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
993
+ ...props
994
+ });
995
+ }
996
+ function DialogContent({ className, children, showCloseButton = true, ...props }) {
997
+ return /* @__PURE__ */ jsxs(DialogPortal, {
998
+ "data-slot": "dialog-portal",
999
+ children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsxs(DialogPrimitive.Content, {
1000
+ "data-slot": "dialog-content",
1001
+ className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
1002
+ ...props,
1003
+ children: [children, showCloseButton && /* @__PURE__ */ jsxs(DialogPrimitive.Close, {
1004
+ "data-slot": "dialog-close",
1005
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1006
+ children: [/* @__PURE__ */ jsx(XIcon, {}), /* @__PURE__ */ jsx("span", {
1007
+ className: "sr-only",
1008
+ children: "Close"
1009
+ })]
1010
+ })]
1011
+ })]
1012
+ });
1013
+ }
1014
+ function DialogHeader({ className, ...props }) {
1015
+ return /* @__PURE__ */ jsx("div", {
1016
+ "data-slot": "dialog-header",
1017
+ className: cn("flex flex-col gap-2 text-center sm:text-left", className),
1018
+ ...props
1019
+ });
1020
+ }
1021
+ function DialogFooter({ className, ...props }) {
1022
+ return /* @__PURE__ */ jsx("div", {
1023
+ "data-slot": "dialog-footer",
1024
+ className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
1025
+ ...props
1026
+ });
1027
+ }
1028
+ function DialogTitle({ className, ...props }) {
1029
+ return /* @__PURE__ */ jsx(DialogPrimitive.Title, {
1030
+ "data-slot": "dialog-title",
1031
+ className: cn("text-lg leading-none font-semibold", className),
1032
+ ...props
1033
+ });
1034
+ }
1035
+ function DialogDescription({ className, ...props }) {
1036
+ return /* @__PURE__ */ jsx(DialogPrimitive.Description, {
1037
+ "data-slot": "dialog-description",
1038
+ className: cn("text-muted-foreground text-sm", className),
1039
+ ...props
1040
+ });
1041
+ }
1042
+ //#endregion
1043
+ //#region src/shadcns/components/ui/drawer.tsx
1044
+ function Drawer({ ...props }) {
1045
+ return /* @__PURE__ */ jsx(Drawer$1.Root, {
1046
+ "data-slot": "drawer",
1047
+ ...props
1048
+ });
1049
+ }
1050
+ function DrawerTrigger({ ...props }) {
1051
+ return /* @__PURE__ */ jsx(Drawer$1.Trigger, {
1052
+ "data-slot": "drawer-trigger",
1053
+ ...props
1054
+ });
1055
+ }
1056
+ function DrawerPortal({ ...props }) {
1057
+ return /* @__PURE__ */ jsx(Drawer$1.Portal, {
1058
+ "data-slot": "drawer-portal",
1059
+ ...props
1060
+ });
1061
+ }
1062
+ function DrawerClose({ ...props }) {
1063
+ return /* @__PURE__ */ jsx(Drawer$1.Close, {
1064
+ "data-slot": "drawer-close",
1065
+ ...props
1066
+ });
1067
+ }
1068
+ function DrawerOverlay({ className, ...props }) {
1069
+ return /* @__PURE__ */ jsx(Drawer$1.Overlay, {
1070
+ "data-slot": "drawer-overlay",
1071
+ className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
1072
+ ...props
1073
+ });
1074
+ }
1075
+ function DrawerContent({ className, children, ...props }) {
1076
+ return /* @__PURE__ */ jsxs(DrawerPortal, {
1077
+ "data-slot": "drawer-portal",
1078
+ children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsxs(Drawer$1.Content, {
1079
+ "data-slot": "drawer-content",
1080
+ className: cn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", className),
1081
+ ...props,
1082
+ children: [/* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children]
1083
+ })]
1084
+ });
1085
+ }
1086
+ function DrawerHeader({ className, ...props }) {
1087
+ return /* @__PURE__ */ jsx("div", {
1088
+ "data-slot": "drawer-header",
1089
+ className: cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", className),
1090
+ ...props
1091
+ });
1092
+ }
1093
+ function DrawerFooter({ className, ...props }) {
1094
+ return /* @__PURE__ */ jsx("div", {
1095
+ "data-slot": "drawer-footer",
1096
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
1097
+ ...props
1098
+ });
1099
+ }
1100
+ function DrawerTitle({ className, ...props }) {
1101
+ return /* @__PURE__ */ jsx(Drawer$1.Title, {
1102
+ "data-slot": "drawer-title",
1103
+ className: cn("text-foreground font-semibold", className),
1104
+ ...props
1105
+ });
1106
+ }
1107
+ function DrawerDescription({ className, ...props }) {
1108
+ return /* @__PURE__ */ jsx(Drawer$1.Description, {
1109
+ "data-slot": "drawer-description",
1110
+ className: cn("text-muted-foreground text-sm", className),
1111
+ ...props
1112
+ });
1113
+ }
1114
+ //#endregion
1115
+ //#region src/shadcns/components/ui/dropdown-menu.tsx
1116
+ function DropdownMenu({ ...props }) {
1117
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, {
1118
+ "data-slot": "dropdown-menu",
1119
+ ...props
1120
+ });
1121
+ }
1122
+ function DropdownMenuPortal({ ...props }) {
1123
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, {
1124
+ "data-slot": "dropdown-menu-portal",
1125
+ ...props
1126
+ });
1127
+ }
1128
+ function DropdownMenuTrigger({ ...props }) {
1129
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Trigger, {
1130
+ "data-slot": "dropdown-menu-trigger",
1131
+ ...props
1132
+ });
1133
+ }
1134
+ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
1135
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.Content, {
1136
+ "data-slot": "dropdown-menu-content",
1137
+ sideOffset,
1138
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className),
1139
+ ...props
1140
+ }) });
1141
+ }
1142
+ function DropdownMenuGroup({ ...props }) {
1143
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, {
1144
+ "data-slot": "dropdown-menu-group",
1145
+ ...props
1146
+ });
1147
+ }
1148
+ function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
1149
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Item, {
1150
+ "data-slot": "dropdown-menu-item",
1151
+ "data-inset": inset,
1152
+ "data-variant": variant,
1153
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
1154
+ ...props
1155
+ });
1156
+ }
1157
+ function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
1158
+ return /* @__PURE__ */ jsxs(DropdownMenuPrimitive.CheckboxItem, {
1159
+ "data-slot": "dropdown-menu-checkbox-item",
1160
+ className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
1161
+ checked,
1162
+ ...props,
1163
+ children: [/* @__PURE__ */ jsx("span", {
1164
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
1165
+ children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
1166
+ }), children]
1167
+ });
1168
+ }
1169
+ function DropdownMenuRadioGroup({ ...props }) {
1170
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.RadioGroup, {
1171
+ "data-slot": "dropdown-menu-radio-group",
1172
+ ...props
1173
+ });
1174
+ }
1175
+ function DropdownMenuRadioItem({ className, children, ...props }) {
1176
+ return /* @__PURE__ */ jsxs(DropdownMenuPrimitive.RadioItem, {
1177
+ "data-slot": "dropdown-menu-radio-item",
1178
+ className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
1179
+ ...props,
1180
+ children: [/* @__PURE__ */ jsx("span", {
1181
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
1182
+ children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) })
1183
+ }), children]
1184
+ });
1185
+ }
1186
+ function DropdownMenuLabel({ className, inset, ...props }) {
1187
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Label, {
1188
+ "data-slot": "dropdown-menu-label",
1189
+ "data-inset": inset,
1190
+ className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
1191
+ ...props
1192
+ });
1193
+ }
1194
+ function DropdownMenuSeparator({ className, ...props }) {
1195
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Separator, {
1196
+ "data-slot": "dropdown-menu-separator",
1197
+ className: cn("bg-border -mx-1 my-1 h-px", className),
1198
+ ...props
1199
+ });
1200
+ }
1201
+ function DropdownMenuShortcut({ className, ...props }) {
1202
+ return /* @__PURE__ */ jsx("span", {
1203
+ "data-slot": "dropdown-menu-shortcut",
1204
+ className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
1205
+ ...props
1206
+ });
1207
+ }
1208
+ function DropdownMenuSub({ ...props }) {
1209
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, {
1210
+ "data-slot": "dropdown-menu-sub",
1211
+ ...props
1212
+ });
1213
+ }
1214
+ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
1215
+ return /* @__PURE__ */ jsxs(DropdownMenuPrimitive.SubTrigger, {
1216
+ "data-slot": "dropdown-menu-sub-trigger",
1217
+ "data-inset": inset,
1218
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8", className),
1219
+ ...props,
1220
+ children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })]
1221
+ });
1222
+ }
1223
+ function DropdownMenuSubContent({ className, ...props }) {
1224
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubContent, {
1225
+ "data-slot": "dropdown-menu-sub-content",
1226
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className),
1227
+ ...props
1228
+ });
1229
+ }
1230
+ //#endregion
1231
+ //#region src/shadcns/components/ui/form.tsx
1232
+ const Form = FormProvider;
1233
+ const FormFieldContext = React$1.createContext({});
1234
+ const FormField = ({ ...props }) => {
1235
+ return /* @__PURE__ */ jsx(FormFieldContext.Provider, {
1236
+ value: { name: props.name },
1237
+ children: /* @__PURE__ */ jsx(Controller, { ...props })
1238
+ });
1239
+ };
1240
+ const useFormField = () => {
1241
+ const fieldContext = React$1.useContext(FormFieldContext);
1242
+ const itemContext = React$1.useContext(FormItemContext);
1243
+ const { getFieldState } = useFormContext();
1244
+ const formState = useFormState({ name: fieldContext.name });
1245
+ const fieldState = getFieldState(fieldContext.name, formState);
1246
+ if (!fieldContext) throw new Error("useFormField should be used within <FormField>");
1247
+ const { id } = itemContext;
1248
+ return {
1249
+ id,
1250
+ name: fieldContext.name,
1251
+ formItemId: `${id}-form-item`,
1252
+ formDescriptionId: `${id}-form-item-description`,
1253
+ formMessageId: `${id}-form-item-message`,
1254
+ ...fieldState
1255
+ };
1256
+ };
1257
+ const FormItemContext = React$1.createContext({});
1258
+ function FormItem({ className, ...props }) {
1259
+ const id = React$1.useId();
1260
+ return /* @__PURE__ */ jsx(FormItemContext.Provider, {
1261
+ value: { id },
1262
+ children: /* @__PURE__ */ jsx("div", {
1263
+ "data-slot": "form-item",
1264
+ className: cn("grid gap-2", className),
1265
+ ...props
1266
+ })
1267
+ });
1268
+ }
1269
+ function FormLabel({ className, ...props }) {
1270
+ const { error, formItemId } = useFormField();
1271
+ return /* @__PURE__ */ jsx(Label, {
1272
+ "data-slot": "form-label",
1273
+ "data-error": !!error,
1274
+ className: cn("data-[error=true]:text-destructive", className),
1275
+ htmlFor: formItemId,
1276
+ ...props
1277
+ });
1278
+ }
1279
+ function FormControl({ ...props }) {
1280
+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
1281
+ return /* @__PURE__ */ jsx(Slot, {
1282
+ "data-slot": "form-control",
1283
+ id: formItemId,
1284
+ "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
1285
+ "aria-invalid": !!error,
1286
+ ...props
1287
+ });
1288
+ }
1289
+ function FormDescription({ className, ...props }) {
1290
+ const { formDescriptionId } = useFormField();
1291
+ return /* @__PURE__ */ jsx("p", {
1292
+ "data-slot": "form-description",
1293
+ id: formDescriptionId,
1294
+ className: cn("text-muted-foreground text-sm", className),
1295
+ ...props
1296
+ });
1297
+ }
1298
+ function FormMessage({ className, ...props }) {
1299
+ const { error, formMessageId } = useFormField();
1300
+ const body = error ? String(error?.message ?? "") : props.children;
1301
+ if (!body) return null;
1302
+ return /* @__PURE__ */ jsx("p", {
1303
+ "data-slot": "form-message",
1304
+ id: formMessageId,
1305
+ className: cn("text-destructive text-sm", className),
1306
+ ...props,
1307
+ children: body
1308
+ });
1309
+ }
1310
+ //#endregion
1311
+ //#region src/shadcns/components/ui/hover-card.tsx
1312
+ function HoverCard({ ...props }) {
1313
+ return /* @__PURE__ */ jsx(HoverCardPrimitive.Root, {
1314
+ "data-slot": "hover-card",
1315
+ ...props
1316
+ });
1317
+ }
1318
+ function HoverCardTrigger({ ...props }) {
1319
+ return /* @__PURE__ */ jsx(HoverCardPrimitive.Trigger, {
1320
+ "data-slot": "hover-card-trigger",
1321
+ ...props
1322
+ });
1323
+ }
1324
+ function HoverCardContent({ className, align = "center", sideOffset = 4, ...props }) {
1325
+ return /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, {
1326
+ "data-slot": "hover-card-portal",
1327
+ children: /* @__PURE__ */ jsx(HoverCardPrimitive.Content, {
1328
+ "data-slot": "hover-card-content",
1329
+ align,
1330
+ sideOffset,
1331
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className),
1332
+ ...props
1333
+ })
1334
+ });
1335
+ }
1336
+ //#endregion
1337
+ //#region src/shadcns/components/ui/input-otp.tsx
1338
+ function InputOTP({ className, containerClassName, ...props }) {
1339
+ return /* @__PURE__ */ jsx(OTPInput, {
1340
+ "data-slot": "input-otp",
1341
+ containerClassName: cn("flex items-center gap-2 has-disabled:opacity-50", containerClassName),
1342
+ className: cn("disabled:cursor-not-allowed", className),
1343
+ ...props
1344
+ });
1345
+ }
1346
+ function InputOTPGroup({ className, ...props }) {
1347
+ return /* @__PURE__ */ jsx("div", {
1348
+ "data-slot": "input-otp-group",
1349
+ className: cn("flex items-center", className),
1350
+ ...props
1351
+ });
1352
+ }
1353
+ function InputOTPSlot({ index, className, ...props }) {
1354
+ const { char, hasFakeCaret, isActive } = React$1.useContext(OTPInputContext)?.slots[index] ?? {};
1355
+ return /* @__PURE__ */ jsxs("div", {
1356
+ "data-slot": "input-otp-slot",
1357
+ "data-active": isActive,
1358
+ className: cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]", className),
1359
+ ...props,
1360
+ children: [char, hasFakeCaret && /* @__PURE__ */ jsx("div", {
1361
+ className: "pointer-events-none absolute inset-0 flex items-center justify-center",
1362
+ children: /* @__PURE__ */ jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" })
1363
+ })]
1364
+ });
1365
+ }
1366
+ function InputOTPSeparator({ ...props }) {
1367
+ return /* @__PURE__ */ jsx("div", {
1368
+ "data-slot": "input-otp-separator",
1369
+ role: "separator",
1370
+ ...props,
1371
+ children: /* @__PURE__ */ jsx(MinusIcon, {})
1372
+ });
1373
+ }
1374
+ //#endregion
1375
+ //#region src/shadcns/components/ui/input.tsx
1376
+ function Input({ className, type, ...props }) {
1377
+ return /* @__PURE__ */ jsx("input", {
1378
+ type,
1379
+ "data-slot": "input",
1380
+ className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className),
1381
+ ...props
1382
+ });
1383
+ }
1384
+ //#endregion
1385
+ //#region src/shadcns/components/ui/label.tsx
1386
+ function Label({ className, ...props }) {
1387
+ return /* @__PURE__ */ jsx(LabelPrimitive.Root, {
1388
+ "data-slot": "label",
1389
+ className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
1390
+ ...props
1391
+ });
1392
+ }
1393
+ //#endregion
1394
+ //#region src/shadcns/components/ui/menubar.tsx
1395
+ function Menubar({ className, ...props }) {
1396
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Root, {
1397
+ "data-slot": "menubar",
1398
+ className: cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", className),
1399
+ ...props
1400
+ });
1401
+ }
1402
+ function MenubarMenu({ ...props }) {
1403
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Menu, {
1404
+ "data-slot": "menubar-menu",
1405
+ ...props
1406
+ });
1407
+ }
1408
+ function MenubarGroup({ ...props }) {
1409
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Group, {
1410
+ "data-slot": "menubar-group",
1411
+ ...props
1412
+ });
1413
+ }
1414
+ function MenubarPortal({ ...props }) {
1415
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Portal, {
1416
+ "data-slot": "menubar-portal",
1417
+ ...props
1418
+ });
1419
+ }
1420
+ function MenubarRadioGroup({ ...props }) {
1421
+ return /* @__PURE__ */ jsx(MenubarPrimitive.RadioGroup, {
1422
+ "data-slot": "menubar-radio-group",
1423
+ ...props
1424
+ });
1425
+ }
1426
+ function MenubarTrigger({ className, ...props }) {
1427
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Trigger, {
1428
+ "data-slot": "menubar-trigger",
1429
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none", className),
1430
+ ...props
1431
+ });
1432
+ }
1433
+ function MenubarContent({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }) {
1434
+ return /* @__PURE__ */ jsx(MenubarPortal, { children: /* @__PURE__ */ jsx(MenubarPrimitive.Content, {
1435
+ "data-slot": "menubar-content",
1436
+ align,
1437
+ alignOffset,
1438
+ sideOffset,
1439
+ className: cn("bg-popover text-popover-foreground 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 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md", className),
1440
+ ...props
1441
+ }) });
1442
+ }
1443
+ function MenubarItem({ className, inset, variant = "default", ...props }) {
1444
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Item, {
1445
+ "data-slot": "menubar-item",
1446
+ "data-inset": inset,
1447
+ "data-variant": variant,
1448
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
1449
+ ...props
1450
+ });
1451
+ }
1452
+ function MenubarCheckboxItem({ className, children, checked, ...props }) {
1453
+ return /* @__PURE__ */ jsxs(MenubarPrimitive.CheckboxItem, {
1454
+ "data-slot": "menubar-checkbox-item",
1455
+ className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
1456
+ checked,
1457
+ ...props,
1458
+ children: [/* @__PURE__ */ jsx("span", {
1459
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
1460
+ children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
1461
+ }), children]
1462
+ });
1463
+ }
1464
+ function MenubarRadioItem({ className, children, ...props }) {
1465
+ return /* @__PURE__ */ jsxs(MenubarPrimitive.RadioItem, {
1466
+ "data-slot": "menubar-radio-item",
1467
+ className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
1468
+ ...props,
1469
+ children: [/* @__PURE__ */ jsx("span", {
1470
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
1471
+ children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) })
1472
+ }), children]
1473
+ });
1474
+ }
1475
+ function MenubarLabel({ className, inset, ...props }) {
1476
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Label, {
1477
+ "data-slot": "menubar-label",
1478
+ "data-inset": inset,
1479
+ className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
1480
+ ...props
1481
+ });
1482
+ }
1483
+ function MenubarSeparator({ className, ...props }) {
1484
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Separator, {
1485
+ "data-slot": "menubar-separator",
1486
+ className: cn("bg-border -mx-1 my-1 h-px", className),
1487
+ ...props
1488
+ });
1489
+ }
1490
+ function MenubarShortcut({ className, ...props }) {
1491
+ return /* @__PURE__ */ jsx("span", {
1492
+ "data-slot": "menubar-shortcut",
1493
+ className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
1494
+ ...props
1495
+ });
1496
+ }
1497
+ function MenubarSub({ ...props }) {
1498
+ return /* @__PURE__ */ jsx(MenubarPrimitive.Sub, {
1499
+ "data-slot": "menubar-sub",
1500
+ ...props
1501
+ });
1502
+ }
1503
+ function MenubarSubTrigger({ className, inset, children, ...props }) {
1504
+ return /* @__PURE__ */ jsxs(MenubarPrimitive.SubTrigger, {
1505
+ "data-slot": "menubar-sub-trigger",
1506
+ "data-inset": inset,
1507
+ className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8", className),
1508
+ ...props,
1509
+ children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto h-4 w-4" })]
1510
+ });
1511
+ }
1512
+ function MenubarSubContent({ className, ...props }) {
1513
+ return /* @__PURE__ */ jsx(MenubarPrimitive.SubContent, {
1514
+ "data-slot": "menubar-sub-content",
1515
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className),
1516
+ ...props
1517
+ });
1518
+ }
1519
+ //#endregion
1520
+ //#region src/shadcns/components/ui/navigation-menu.tsx
1521
+ function NavigationMenu({ className, children, viewport = true, ...props }) {
1522
+ return /* @__PURE__ */ jsxs(NavigationMenuPrimitive.Root, {
1523
+ "data-slot": "navigation-menu",
1524
+ "data-viewport": viewport,
1525
+ className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className),
1526
+ ...props,
1527
+ children: [children, viewport && /* @__PURE__ */ jsx(NavigationMenuViewport, {})]
1528
+ });
1529
+ }
1530
+ function NavigationMenuList({ className, ...props }) {
1531
+ return /* @__PURE__ */ jsx(NavigationMenuPrimitive.List, {
1532
+ "data-slot": "navigation-menu-list",
1533
+ className: cn("group flex flex-1 list-none items-center justify-center gap-1", className),
1534
+ ...props
1535
+ });
1536
+ }
1537
+ function NavigationMenuItem({ className, ...props }) {
1538
+ return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Item, {
1539
+ "data-slot": "navigation-menu-item",
1540
+ className: cn("relative", className),
1541
+ ...props
1542
+ });
1543
+ }
1544
+ const navigationMenuTriggerStyle = cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
1545
+ function NavigationMenuTrigger({ className, children, ...props }) {
1546
+ return /* @__PURE__ */ jsxs(NavigationMenuPrimitive.Trigger, {
1547
+ "data-slot": "navigation-menu-trigger",
1548
+ className: cn(navigationMenuTriggerStyle(), "group", className),
1549
+ ...props,
1550
+ children: [
1551
+ children,
1552
+ " ",
1553
+ /* @__PURE__ */ jsx(ChevronDownIcon, {
1554
+ className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
1555
+ "aria-hidden": "true"
1556
+ })
1557
+ ]
1558
+ });
1559
+ }
1560
+ function NavigationMenuContent({ className, ...props }) {
1561
+ return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Content, {
1562
+ "data-slot": "navigation-menu-content",
1563
+ className: cn("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 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", className),
1564
+ ...props
1565
+ });
1566
+ }
1567
+ function NavigationMenuViewport({ className, ...props }) {
1568
+ return /* @__PURE__ */ jsx("div", {
1569
+ className: cn("absolute top-full left-0 isolate z-50 flex justify-center"),
1570
+ children: /* @__PURE__ */ jsx(NavigationMenuPrimitive.Viewport, {
1571
+ "data-slot": "navigation-menu-viewport",
1572
+ className: cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", className),
1573
+ ...props
1574
+ })
1575
+ });
1576
+ }
1577
+ function NavigationMenuLink({ className, ...props }) {
1578
+ return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Link, {
1579
+ "data-slot": "navigation-menu-link",
1580
+ className: cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", className),
1581
+ ...props
1582
+ });
1583
+ }
1584
+ function NavigationMenuIndicator({ className, ...props }) {
1585
+ return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Indicator, {
1586
+ "data-slot": "navigation-menu-indicator",
1587
+ className: cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", className),
1588
+ ...props,
1589
+ children: /* @__PURE__ */ jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
1590
+ });
1591
+ }
1592
+ //#endregion
1593
+ //#region src/shadcns/components/ui/pagination.tsx
1594
+ function Pagination({ className, ...props }) {
1595
+ return /* @__PURE__ */ jsx("nav", {
1596
+ role: "navigation",
1597
+ "aria-label": "pagination",
1598
+ "data-slot": "pagination",
1599
+ className: cn("mx-auto flex w-full justify-center", className),
1600
+ ...props
1601
+ });
1602
+ }
1603
+ function PaginationContent({ className, ...props }) {
1604
+ return /* @__PURE__ */ jsx("ul", {
1605
+ "data-slot": "pagination-content",
1606
+ className: cn("flex flex-row items-center gap-1", className),
1607
+ ...props
1608
+ });
1609
+ }
1610
+ function PaginationItem({ ...props }) {
1611
+ return /* @__PURE__ */ jsx("li", {
1612
+ "data-slot": "pagination-item",
1613
+ ...props
1614
+ });
1615
+ }
1616
+ function PaginationLink({ className, isActive, size = "icon", ...props }) {
1617
+ return /* @__PURE__ */ jsx("a", {
1618
+ "aria-current": isActive ? "page" : void 0,
1619
+ "data-slot": "pagination-link",
1620
+ "data-active": isActive,
1621
+ className: cn(buttonVariants({
1622
+ variant: isActive ? "outline" : "ghost",
1623
+ size
1624
+ }), className),
1625
+ ...props
1626
+ });
1627
+ }
1628
+ function PaginationPrevious({ className, ...props }) {
1629
+ return /* @__PURE__ */ jsxs(PaginationLink, {
1630
+ "aria-label": "Go to previous page",
1631
+ size: "default",
1632
+ className: cn("gap-1 px-2.5 sm:pl-2.5", className),
1633
+ ...props,
1634
+ children: [/* @__PURE__ */ jsx(ChevronLeftIcon, {}), /* @__PURE__ */ jsx("span", {
1635
+ className: "hidden sm:block",
1636
+ children: "Previous"
1637
+ })]
1638
+ });
1639
+ }
1640
+ function PaginationNext({ className, ...props }) {
1641
+ return /* @__PURE__ */ jsxs(PaginationLink, {
1642
+ "aria-label": "Go to next page",
1643
+ size: "default",
1644
+ className: cn("gap-1 px-2.5 sm:pr-2.5", className),
1645
+ ...props,
1646
+ children: [/* @__PURE__ */ jsx("span", {
1647
+ className: "hidden sm:block",
1648
+ children: "Next"
1649
+ }), /* @__PURE__ */ jsx(ChevronRightIcon, {})]
1650
+ });
1651
+ }
1652
+ function PaginationEllipsis({ className, ...props }) {
1653
+ return /* @__PURE__ */ jsxs("span", {
1654
+ "aria-hidden": true,
1655
+ "data-slot": "pagination-ellipsis",
1656
+ className: cn("flex size-9 items-center justify-center", className),
1657
+ ...props,
1658
+ children: [/* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
1659
+ className: "sr-only",
1660
+ children: "More pages"
1661
+ })]
1662
+ });
1663
+ }
1664
+ //#endregion
1665
+ //#region src/shadcns/components/ui/popover.tsx
1666
+ function Popover({ ...props }) {
1667
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Root, {
1668
+ "data-slot": "popover",
1669
+ ...props
1670
+ });
1671
+ }
1672
+ function PopoverTrigger({ ...props }) {
1673
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, {
1674
+ "data-slot": "popover-trigger",
1675
+ ...props
1676
+ });
1677
+ }
1678
+ function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
1679
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
1680
+ "data-slot": "popover-content",
1681
+ align,
1682
+ sideOffset,
1683
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className),
1684
+ ...props
1685
+ }) });
1686
+ }
1687
+ function PopoverAnchor({ ...props }) {
1688
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Anchor, {
1689
+ "data-slot": "popover-anchor",
1690
+ ...props
1691
+ });
1692
+ }
1693
+ //#endregion
1694
+ //#region src/shadcns/components/ui/progress.tsx
1695
+ function Progress({ className, value, ...props }) {
1696
+ return /* @__PURE__ */ jsx(ProgressPrimitive.Root, {
1697
+ "data-slot": "progress",
1698
+ className: cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", className),
1699
+ ...props,
1700
+ children: /* @__PURE__ */ jsx(ProgressPrimitive.Indicator, {
1701
+ "data-slot": "progress-indicator",
1702
+ className: "bg-primary h-full w-full flex-1 transition-all",
1703
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
1704
+ })
1705
+ });
1706
+ }
1707
+ //#endregion
1708
+ //#region src/shadcns/components/ui/radio-group.tsx
1709
+ function RadioGroup({ className, ...props }) {
1710
+ return /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, {
1711
+ "data-slot": "radio-group",
1712
+ className: cn("grid gap-3", className),
1713
+ ...props
1714
+ });
1715
+ }
1716
+ function RadioGroupItem({ className, ...props }) {
1717
+ return /* @__PURE__ */ jsx(RadioGroupPrimitive.Item, {
1718
+ "data-slot": "radio-group-item",
1719
+ className: cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
1720
+ ...props,
1721
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, {
1722
+ "data-slot": "radio-group-indicator",
1723
+ className: "relative flex items-center justify-center",
1724
+ children: /* @__PURE__ */ jsx(CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
1725
+ })
1726
+ });
1727
+ }
1728
+ //#endregion
1729
+ //#region src/shadcns/components/ui/resizable.tsx
1730
+ function ResizablePanelGroup({ className, ...props }) {
1731
+ return /* @__PURE__ */ jsx(ResizablePrimitive.PanelGroup, {
1732
+ "data-slot": "resizable-panel-group",
1733
+ className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
1734
+ ...props
1735
+ });
1736
+ }
1737
+ function ResizablePanel({ ...props }) {
1738
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, {
1739
+ "data-slot": "resizable-panel",
1740
+ ...props
1741
+ });
1742
+ }
1743
+ function ResizableHandle({ withHandle, className, ...props }) {
1744
+ return /* @__PURE__ */ jsx(ResizablePrimitive.PanelResizeHandle, {
1745
+ "data-slot": "resizable-handle",
1746
+ className: cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", className),
1747
+ ...props,
1748
+ children: withHandle && /* @__PURE__ */ jsx("div", {
1749
+ className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
1750
+ children: /* @__PURE__ */ jsx(GripVerticalIcon, { className: "size-2.5" })
1751
+ })
1752
+ });
1753
+ }
1754
+ //#endregion
1755
+ //#region src/shadcns/components/ui/scroll-area.tsx
1756
+ function ScrollArea({ className, children, ...props }) {
1757
+ return /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
1758
+ "data-slot": "scroll-area",
1759
+ className: cn("relative", className),
1760
+ ...props,
1761
+ children: [
1762
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, {
1763
+ "data-slot": "scroll-area-viewport",
1764
+ className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
1765
+ children
1766
+ }),
1767
+ /* @__PURE__ */ jsx(ScrollBar, {}),
1768
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
1769
+ ]
1770
+ });
1771
+ }
1772
+ function ScrollBar({ className, orientation = "vertical", ...props }) {
1773
+ return /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
1774
+ "data-slot": "scroll-area-scrollbar",
1775
+ orientation,
1776
+ className: cn("flex touch-none p-px transition-colors select-none", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", className),
1777
+ ...props,
1778
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, {
1779
+ "data-slot": "scroll-area-thumb",
1780
+ className: "bg-border relative flex-1 rounded-full"
1781
+ })
1782
+ });
1783
+ }
1784
+ //#endregion
1785
+ //#region src/shadcns/components/ui/select.tsx
1786
+ function Select({ ...props }) {
1787
+ return /* @__PURE__ */ jsx(SelectPrimitive.Root, {
1788
+ "data-slot": "select",
1789
+ ...props
1790
+ });
1791
+ }
1792
+ function SelectGroup({ ...props }) {
1793
+ return /* @__PURE__ */ jsx(SelectPrimitive.Group, {
1794
+ "data-slot": "select-group",
1795
+ ...props
1796
+ });
1797
+ }
1798
+ function SelectValue({ ...props }) {
1799
+ return /* @__PURE__ */ jsx(SelectPrimitive.Value, {
1800
+ "data-slot": "select-value",
1801
+ ...props
1802
+ });
1803
+ }
1804
+ function SelectTrigger({ className, size = "default", children, ...props }) {
1805
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
1806
+ "data-slot": "select-trigger",
1807
+ "data-size": size,
1808
+ className: cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
1809
+ ...props,
1810
+ children: [children, /* @__PURE__ */ jsx(SelectPrimitive.Icon, {
1811
+ asChild: true,
1812
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" })
1813
+ })]
1814
+ });
1815
+ }
1816
+ function SelectContent({ className, children, position = "popper", ...props }) {
1817
+ return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
1818
+ "data-slot": "select-content",
1819
+ className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", 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", className),
1820
+ position,
1821
+ ...props,
1822
+ children: [
1823
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
1824
+ /* @__PURE__ */ jsx(SelectPrimitive.Viewport, {
1825
+ className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
1826
+ children
1827
+ }),
1828
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
1829
+ ]
1830
+ }) });
1831
+ }
1832
+ function SelectLabel({ className, ...props }) {
1833
+ return /* @__PURE__ */ jsx(SelectPrimitive.Label, {
1834
+ "data-slot": "select-label",
1835
+ className: cn("text-muted-foreground px-2 py-1.5 text-xs", className),
1836
+ ...props
1837
+ });
1838
+ }
1839
+ function SelectItem({ className, children, ...props }) {
1840
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
1841
+ "data-slot": "select-item",
1842
+ className: cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
1843
+ ...props,
1844
+ children: [/* @__PURE__ */ jsx("span", {
1845
+ className: "absolute right-2 flex size-3.5 items-center justify-center",
1846
+ children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
1847
+ }), /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })]
1848
+ });
1849
+ }
1850
+ function SelectSeparator({ className, ...props }) {
1851
+ return /* @__PURE__ */ jsx(SelectPrimitive.Separator, {
1852
+ "data-slot": "select-separator",
1853
+ className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className),
1854
+ ...props
1855
+ });
1856
+ }
1857
+ function SelectScrollUpButton({ className, ...props }) {
1858
+ return /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, {
1859
+ "data-slot": "select-scroll-up-button",
1860
+ className: cn("flex cursor-default items-center justify-center py-1", className),
1861
+ ...props,
1862
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
1863
+ });
1864
+ }
1865
+ function SelectScrollDownButton({ className, ...props }) {
1866
+ return /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, {
1867
+ "data-slot": "select-scroll-down-button",
1868
+ className: cn("flex cursor-default items-center justify-center py-1", className),
1869
+ ...props,
1870
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
1871
+ });
1872
+ }
1873
+ //#endregion
1874
+ //#region src/shadcns/components/ui/separator.tsx
1875
+ function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
1876
+ return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
1877
+ "data-slot": "separator",
1878
+ decorative,
1879
+ orientation,
1880
+ className: cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className),
1881
+ ...props
1882
+ });
1883
+ }
1884
+ //#endregion
1885
+ //#region src/shadcns/components/ui/sheet.tsx
1886
+ function Sheet({ ...props }) {
1887
+ return /* @__PURE__ */ jsx(DialogPrimitive.Root, {
1888
+ "data-slot": "sheet",
1889
+ ...props
1890
+ });
1891
+ }
1892
+ function SheetTrigger({ ...props }) {
1893
+ return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, {
1894
+ "data-slot": "sheet-trigger",
1895
+ ...props
1896
+ });
1897
+ }
1898
+ function SheetClose({ ...props }) {
1899
+ return /* @__PURE__ */ jsx(DialogPrimitive.Close, {
1900
+ "data-slot": "sheet-close",
1901
+ ...props
1902
+ });
1903
+ }
1904
+ function SheetPortal({ ...props }) {
1905
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, {
1906
+ "data-slot": "sheet-portal",
1907
+ ...props
1908
+ });
1909
+ }
1910
+ function SheetOverlay({ className, ...props }) {
1911
+ return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
1912
+ "data-slot": "sheet-overlay",
1913
+ className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
1914
+ ...props
1915
+ });
1916
+ }
1917
+ function SheetContent({ className, children, side = "right", ...props }) {
1918
+ return /* @__PURE__ */ jsxs(SheetPortal, { children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(DialogPrimitive.Content, {
1919
+ "data-slot": "sheet-content",
1920
+ className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", className),
1921
+ ...props,
1922
+ children: [children, /* @__PURE__ */ jsxs(DialogPrimitive.Close, {
1923
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
1924
+ children: [/* @__PURE__ */ jsx(XIcon, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
1925
+ className: "sr-only",
1926
+ children: "Close"
1927
+ })]
1928
+ })]
1929
+ })] });
1930
+ }
1931
+ function SheetHeader({ className, ...props }) {
1932
+ return /* @__PURE__ */ jsx("div", {
1933
+ "data-slot": "sheet-header",
1934
+ className: cn("flex flex-col gap-1.5 p-4", className),
1935
+ ...props
1936
+ });
1937
+ }
1938
+ function SheetFooter({ className, ...props }) {
1939
+ return /* @__PURE__ */ jsx("div", {
1940
+ "data-slot": "sheet-footer",
1941
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
1942
+ ...props
1943
+ });
1944
+ }
1945
+ function SheetTitle({ className, ...props }) {
1946
+ return /* @__PURE__ */ jsx(DialogPrimitive.Title, {
1947
+ "data-slot": "sheet-title",
1948
+ className: cn("text-foreground font-semibold", className),
1949
+ ...props
1950
+ });
1951
+ }
1952
+ function SheetDescription({ className, ...props }) {
1953
+ return /* @__PURE__ */ jsx(DialogPrimitive.Description, {
1954
+ "data-slot": "sheet-description",
1955
+ className: cn("text-muted-foreground text-sm", className),
1956
+ ...props
1957
+ });
1958
+ }
1959
+ //#endregion
1960
+ //#region src/shadcns/components/ui/sidebar.tsx
1961
+ const SIDEBAR_COOKIE_NAME = "sidebar_state";
1962
+ const SIDEBAR_COOKIE_MAX_AGE = 3600 * 24 * 7;
1963
+ const SIDEBAR_WIDTH = "16rem";
1964
+ const SIDEBAR_WIDTH_MOBILE = "18rem";
1965
+ const SIDEBAR_WIDTH_ICON = "3rem";
1966
+ const SIDEBAR_KEYBOARD_SHORTCUT = "b";
1967
+ const SidebarContext = React$1.createContext(null);
1968
+ function useSidebar() {
1969
+ const context = React$1.useContext(SidebarContext);
1970
+ if (!context) throw new Error("useSidebar must be used within a SidebarProvider.");
1971
+ return context;
1972
+ }
1973
+ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }) {
1974
+ const isMobile = useIsMobile();
1975
+ const [openMobile, setOpenMobile] = React$1.useState(false);
1976
+ const [_open, _setOpen] = React$1.useState(defaultOpen);
1977
+ const open = openProp ?? _open;
1978
+ const setOpen = React$1.useCallback((value) => {
1979
+ const openState = typeof value === "function" ? value(open) : value;
1980
+ if (setOpenProp) setOpenProp(openState);
1981
+ else _setOpen(openState);
1982
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
1983
+ }, [setOpenProp, open]);
1984
+ const toggleSidebar = React$1.useCallback(() => {
1985
+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
1986
+ }, [
1987
+ isMobile,
1988
+ setOpen,
1989
+ setOpenMobile
1990
+ ]);
1991
+ React$1.useEffect(() => {
1992
+ const handleKeyDown = (event) => {
1993
+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
1994
+ event.preventDefault();
1995
+ toggleSidebar();
1996
+ }
1997
+ };
1998
+ window.addEventListener("keydown", handleKeyDown);
1999
+ return () => window.removeEventListener("keydown", handleKeyDown);
2000
+ }, [toggleSidebar]);
2001
+ const state = open ? "expanded" : "collapsed";
2002
+ const contextValue = React$1.useMemo(() => ({
2003
+ state,
2004
+ open,
2005
+ setOpen,
2006
+ isMobile,
2007
+ openMobile,
2008
+ setOpenMobile,
2009
+ toggleSidebar
2010
+ }), [
2011
+ state,
2012
+ open,
2013
+ setOpen,
2014
+ isMobile,
2015
+ openMobile,
2016
+ setOpenMobile,
2017
+ toggleSidebar
2018
+ ]);
2019
+ return /* @__PURE__ */ jsx(SidebarContext.Provider, {
2020
+ value: contextValue,
2021
+ children: /* @__PURE__ */ jsx(TooltipProvider, {
2022
+ delayDuration: 0,
2023
+ children: /* @__PURE__ */ jsx("div", {
2024
+ "data-slot": "sidebar-wrapper",
2025
+ style: {
2026
+ "--sidebar-width": SIDEBAR_WIDTH,
2027
+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
2028
+ ...style
2029
+ },
2030
+ className: cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className),
2031
+ ...props,
2032
+ children
2033
+ })
2034
+ })
2035
+ });
2036
+ }
2037
+ function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }) {
2038
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
2039
+ if (collapsible === "none") return /* @__PURE__ */ jsx("div", {
2040
+ "data-slot": "sidebar",
2041
+ className: cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className),
2042
+ ...props,
2043
+ children
2044
+ });
2045
+ if (isMobile) return /* @__PURE__ */ jsx(Sheet, {
2046
+ open: openMobile,
2047
+ onOpenChange: setOpenMobile,
2048
+ ...props,
2049
+ children: /* @__PURE__ */ jsxs(SheetContent, {
2050
+ "data-sidebar": "sidebar",
2051
+ "data-slot": "sidebar",
2052
+ "data-mobile": "true",
2053
+ className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
2054
+ style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
2055
+ side,
2056
+ children: [/* @__PURE__ */ jsxs(SheetHeader, {
2057
+ className: "sr-only",
2058
+ children: [/* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }), /* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })]
2059
+ }), /* @__PURE__ */ jsx("div", {
2060
+ className: "flex h-full w-full flex-col",
2061
+ children
2062
+ })]
2063
+ })
2064
+ });
2065
+ return /* @__PURE__ */ jsxs("div", {
2066
+ className: "group peer text-sidebar-foreground hidden md:block",
2067
+ "data-state": state,
2068
+ "data-collapsible": state === "collapsed" ? collapsible : "",
2069
+ "data-variant": variant,
2070
+ "data-side": side,
2071
+ "data-slot": "sidebar",
2072
+ children: [/* @__PURE__ */ jsx("div", {
2073
+ "data-slot": "sidebar-gap",
2074
+ className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
2075
+ }), /* @__PURE__ */ jsx("div", {
2076
+ "data-slot": "sidebar-container",
2077
+ className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", 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)]", variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", className),
2078
+ ...props,
2079
+ children: /* @__PURE__ */ jsx("div", {
2080
+ "data-sidebar": "sidebar",
2081
+ "data-slot": "sidebar-inner",
2082
+ className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
2083
+ children
2084
+ })
2085
+ })]
2086
+ });
2087
+ }
2088
+ function SidebarTrigger({ className, onClick, ...props }) {
2089
+ const { toggleSidebar } = useSidebar();
2090
+ return /* @__PURE__ */ jsxs(Button, {
2091
+ "data-sidebar": "trigger",
2092
+ "data-slot": "sidebar-trigger",
2093
+ variant: "ghost",
2094
+ size: "icon",
2095
+ className: cn("size-7", className),
2096
+ onClick: (event) => {
2097
+ onClick?.(event);
2098
+ toggleSidebar();
2099
+ },
2100
+ ...props,
2101
+ children: [/* @__PURE__ */ jsx(PanelLeftIcon, {}), /* @__PURE__ */ jsx("span", {
2102
+ className: "sr-only",
2103
+ children: "Toggle Sidebar"
2104
+ })]
2105
+ });
2106
+ }
2107
+ function SidebarRail({ className, ...props }) {
2108
+ const { toggleSidebar } = useSidebar();
2109
+ return /* @__PURE__ */ jsx("button", {
2110
+ "data-sidebar": "rail",
2111
+ "data-slot": "sidebar-rail",
2112
+ "aria-label": "Toggle Sidebar",
2113
+ tabIndex: -1,
2114
+ onClick: toggleSidebar,
2115
+ title: "Toggle Sidebar",
2116
+ className: cn("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", className),
2117
+ ...props
2118
+ });
2119
+ }
2120
+ function SidebarInset({ className, ...props }) {
2121
+ return /* @__PURE__ */ jsx("main", {
2122
+ "data-slot": "sidebar-inset",
2123
+ className: cn("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", className),
2124
+ ...props
2125
+ });
2126
+ }
2127
+ function SidebarInput({ className, ...props }) {
2128
+ return /* @__PURE__ */ jsx(Input, {
2129
+ "data-slot": "sidebar-input",
2130
+ "data-sidebar": "input",
2131
+ className: cn("bg-background h-8 w-full shadow-none", className),
2132
+ ...props
2133
+ });
2134
+ }
2135
+ function SidebarHeader({ className, ...props }) {
2136
+ return /* @__PURE__ */ jsx("div", {
2137
+ "data-slot": "sidebar-header",
2138
+ "data-sidebar": "header",
2139
+ className: cn("flex flex-col gap-2 p-2", className),
2140
+ ...props
2141
+ });
2142
+ }
2143
+ function SidebarFooter({ className, ...props }) {
2144
+ return /* @__PURE__ */ jsx("div", {
2145
+ "data-slot": "sidebar-footer",
2146
+ "data-sidebar": "footer",
2147
+ className: cn("flex flex-col gap-2 p-2", className),
2148
+ ...props
2149
+ });
2150
+ }
2151
+ function SidebarSeparator({ className, ...props }) {
2152
+ return /* @__PURE__ */ jsx(Separator, {
2153
+ "data-slot": "sidebar-separator",
2154
+ "data-sidebar": "separator",
2155
+ className: cn("bg-sidebar-border mx-2 w-auto", className),
2156
+ ...props
2157
+ });
2158
+ }
2159
+ function SidebarContent({ className, ...props }) {
2160
+ return /* @__PURE__ */ jsx("div", {
2161
+ "data-slot": "sidebar-content",
2162
+ "data-sidebar": "content",
2163
+ className: cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
2164
+ ...props
2165
+ });
2166
+ }
2167
+ function SidebarGroup({ className, ...props }) {
2168
+ return /* @__PURE__ */ jsx("div", {
2169
+ "data-slot": "sidebar-group",
2170
+ "data-sidebar": "group",
2171
+ className: cn("relative flex w-full min-w-0 flex-col p-2", className),
2172
+ ...props
2173
+ });
2174
+ }
2175
+ function SidebarGroupLabel({ className, asChild = false, ...props }) {
2176
+ return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
2177
+ "data-slot": "sidebar-group-label",
2178
+ "data-sidebar": "group-label",
2179
+ className: cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", className),
2180
+ ...props
2181
+ });
2182
+ }
2183
+ function SidebarGroupAction({ className, asChild = false, ...props }) {
2184
+ return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
2185
+ "data-slot": "sidebar-group-action",
2186
+ "data-sidebar": "group-action",
2187
+ className: cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", className),
2188
+ ...props
2189
+ });
2190
+ }
2191
+ function SidebarGroupContent({ className, ...props }) {
2192
+ return /* @__PURE__ */ jsx("div", {
2193
+ "data-slot": "sidebar-group-content",
2194
+ "data-sidebar": "group-content",
2195
+ className: cn("w-full text-sm", className),
2196
+ ...props
2197
+ });
2198
+ }
2199
+ function SidebarMenu({ className, ...props }) {
2200
+ return /* @__PURE__ */ jsx("ul", {
2201
+ "data-slot": "sidebar-menu",
2202
+ "data-sidebar": "menu",
2203
+ className: cn("flex w-full min-w-0 flex-col gap-1", className),
2204
+ ...props
2205
+ });
2206
+ }
2207
+ function SidebarMenuItem({ className, ...props }) {
2208
+ return /* @__PURE__ */ jsx("li", {
2209
+ "data-slot": "sidebar-menu-item",
2210
+ "data-sidebar": "menu-item",
2211
+ className: cn("group/menu-item relative", className),
2212
+ ...props
2213
+ });
2214
+ }
2215
+ const sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
2216
+ variants: {
2217
+ variant: {
2218
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
2219
+ 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))]"
2220
+ },
2221
+ size: {
2222
+ default: "h-8 text-sm",
2223
+ sm: "h-7 text-xs",
2224
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
2225
+ }
2226
+ },
2227
+ defaultVariants: {
2228
+ variant: "default",
2229
+ size: "default"
2230
+ }
2231
+ });
2232
+ function SidebarMenuButton({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }) {
2233
+ const Comp = asChild ? Slot : "button";
2234
+ const { isMobile, state } = useSidebar();
2235
+ const button = /* @__PURE__ */ jsx(Comp, {
2236
+ "data-slot": "sidebar-menu-button",
2237
+ "data-sidebar": "menu-button",
2238
+ "data-size": size,
2239
+ "data-active": isActive,
2240
+ className: cn(sidebarMenuButtonVariants({
2241
+ variant,
2242
+ size
2243
+ }), className),
2244
+ ...props
2245
+ });
2246
+ if (!tooltip) return button;
2247
+ if (typeof tooltip === "string") tooltip = { children: tooltip };
2248
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
2249
+ asChild: true,
2250
+ children: button
2251
+ }), /* @__PURE__ */ jsx(TooltipContent, {
2252
+ side: "right",
2253
+ align: "center",
2254
+ hidden: state !== "collapsed" || isMobile,
2255
+ ...tooltip
2256
+ })] });
2257
+ }
2258
+ function SidebarMenuAction({ className, asChild = false, showOnHover = false, ...props }) {
2259
+ return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
2260
+ "data-slot": "sidebar-menu-action",
2261
+ "data-sidebar": "menu-action",
2262
+ className: cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", showOnHover && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", className),
2263
+ ...props
2264
+ });
2265
+ }
2266
+ function SidebarMenuBadge({ className, ...props }) {
2267
+ return /* @__PURE__ */ jsx("div", {
2268
+ "data-slot": "sidebar-menu-badge",
2269
+ "data-sidebar": "menu-badge",
2270
+ className: cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", className),
2271
+ ...props
2272
+ });
2273
+ }
2274
+ function SidebarMenuSkeleton({ className, showIcon = false, ...props }) {
2275
+ const width = React$1.useMemo(() => {
2276
+ return `${Math.floor(Math.random() * 40) + 50}%`;
2277
+ }, []);
2278
+ return /* @__PURE__ */ jsxs("div", {
2279
+ "data-slot": "sidebar-menu-skeleton",
2280
+ "data-sidebar": "menu-skeleton",
2281
+ className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
2282
+ ...props,
2283
+ children: [showIcon && /* @__PURE__ */ jsx(Skeleton, {
2284
+ className: "size-4 rounded-md",
2285
+ "data-sidebar": "menu-skeleton-icon"
2286
+ }), /* @__PURE__ */ jsx(Skeleton, {
2287
+ className: "h-4 max-w-(--skeleton-width) flex-1",
2288
+ "data-sidebar": "menu-skeleton-text",
2289
+ style: { "--skeleton-width": width }
2290
+ })]
2291
+ });
2292
+ }
2293
+ function SidebarMenuSub({ className, ...props }) {
2294
+ return /* @__PURE__ */ jsx("ul", {
2295
+ "data-slot": "sidebar-menu-sub",
2296
+ "data-sidebar": "menu-sub",
2297
+ className: cn("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", className),
2298
+ ...props
2299
+ });
2300
+ }
2301
+ function SidebarMenuSubItem({ className, ...props }) {
2302
+ return /* @__PURE__ */ jsx("li", {
2303
+ "data-slot": "sidebar-menu-sub-item",
2304
+ "data-sidebar": "menu-sub-item",
2305
+ className: cn("group/menu-sub-item relative", className),
2306
+ ...props
2307
+ });
2308
+ }
2309
+ function SidebarMenuSubButton({ asChild = false, size = "md", isActive = false, className, ...props }) {
2310
+ return /* @__PURE__ */ jsx(asChild ? Slot : "a", {
2311
+ "data-slot": "sidebar-menu-sub-button",
2312
+ "data-sidebar": "menu-sub-button",
2313
+ "data-size": size,
2314
+ "data-active": isActive,
2315
+ className: cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", size === "sm" && "text-xs", size === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", className),
2316
+ ...props
2317
+ });
2318
+ }
2319
+ //#endregion
2320
+ //#region src/shadcns/components/ui/skeleton.tsx
2321
+ function Skeleton({ className, ...props }) {
2322
+ return /* @__PURE__ */ jsx("div", {
2323
+ "data-slot": "skeleton",
2324
+ className: cn("bg-accent animate-pulse rounded-md", className),
2325
+ ...props
2326
+ });
2327
+ }
2328
+ //#endregion
2329
+ //#region src/shadcns/components/ui/slider.tsx
2330
+ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
2331
+ const _values = React$1.useMemo(() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max], [
2332
+ value,
2333
+ defaultValue,
2334
+ min,
2335
+ max
2336
+ ]);
2337
+ return /* @__PURE__ */ jsxs(SliderPrimitive.Root, {
2338
+ "data-slot": "slider",
2339
+ defaultValue,
2340
+ value,
2341
+ min,
2342
+ max,
2343
+ className: cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", className),
2344
+ ...props,
2345
+ children: [/* @__PURE__ */ jsx(SliderPrimitive.Track, {
2346
+ "data-slot": "slider-track",
2347
+ className: cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
2348
+ children: /* @__PURE__ */ jsx(SliderPrimitive.Range, {
2349
+ "data-slot": "slider-range",
2350
+ className: cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
2351
+ })
2352
+ }), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, {
2353
+ "data-slot": "slider-thumb",
2354
+ className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
2355
+ }, index))]
2356
+ });
2357
+ }
2358
+ //#endregion
2359
+ //#region src/shadcns/components/ui/sonner.tsx
2360
+ const Toaster = ({ ...props }) => {
2361
+ const { theme = "system" } = useTheme();
2362
+ return /* @__PURE__ */ jsx(Toaster$1, {
2363
+ theme,
2364
+ className: "toaster group",
2365
+ style: {
2366
+ "--normal-bg": "var(--popover)",
2367
+ "--normal-text": "var(--popover-foreground)",
2368
+ "--normal-border": "var(--border)"
2369
+ },
2370
+ ...props
2371
+ });
2372
+ };
2373
+ //#endregion
2374
+ //#region src/shadcns/components/ui/switch.tsx
2375
+ function Switch({ className, ...props }) {
2376
+ return /* @__PURE__ */ jsx(SwitchPrimitive.Root, {
2377
+ "data-slot": "switch",
2378
+ className: cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
2379
+ ...props,
2380
+ children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, {
2381
+ "data-slot": "switch-thumb",
2382
+ className: cn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
2383
+ })
2384
+ });
2385
+ }
2386
+ //#endregion
2387
+ //#region src/shadcns/components/ui/tabs.tsx
2388
+ function Tabs({ className, ...props }) {
2389
+ return /* @__PURE__ */ jsx(TabsPrimitive.Root, {
2390
+ "data-slot": "tabs",
2391
+ className: cn("flex flex-col gap-2", className),
2392
+ ...props
2393
+ });
2394
+ }
2395
+ function TabsList({ className, ...props }) {
2396
+ return /* @__PURE__ */ jsx(TabsPrimitive.List, {
2397
+ "data-slot": "tabs-list",
2398
+ className: cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", className),
2399
+ ...props
2400
+ });
2401
+ }
2402
+ function TabsTrigger({ className, ...props }) {
2403
+ return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
2404
+ "data-slot": "tabs-trigger",
2405
+ className: cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
2406
+ ...props
2407
+ });
2408
+ }
2409
+ function TabsContent({ className, ...props }) {
2410
+ return /* @__PURE__ */ jsx(TabsPrimitive.Content, {
2411
+ "data-slot": "tabs-content",
2412
+ className: cn("flex-1 outline-none", className),
2413
+ ...props
2414
+ });
2415
+ }
2416
+ //#endregion
2417
+ //#region src/shadcns/components/ui/table.tsx
2418
+ function Table({ className, ...props }) {
2419
+ return /* @__PURE__ */ jsx("div", {
2420
+ "data-slot": "table-container",
2421
+ className: "relative w-full overflow-x-auto",
2422
+ children: /* @__PURE__ */ jsx("table", {
2423
+ "data-slot": "table",
2424
+ className: cn("w-full caption-bottom text-sm", className),
2425
+ ...props
2426
+ })
2427
+ });
2428
+ }
2429
+ function TableHeader({ className, ...props }) {
2430
+ return /* @__PURE__ */ jsx("thead", {
2431
+ "data-slot": "table-header",
2432
+ className: cn("[&_tr]:border-b", className),
2433
+ ...props
2434
+ });
2435
+ }
2436
+ function TableBody({ className, ...props }) {
2437
+ return /* @__PURE__ */ jsx("tbody", {
2438
+ "data-slot": "table-body",
2439
+ className: cn("[&_tr:last-child]:border-0", className),
2440
+ ...props
2441
+ });
2442
+ }
2443
+ function TableFooter({ className, ...props }) {
2444
+ return /* @__PURE__ */ jsx("tfoot", {
2445
+ "data-slot": "table-footer",
2446
+ className: cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className),
2447
+ ...props
2448
+ });
2449
+ }
2450
+ function TableRow({ className, ...props }) {
2451
+ return /* @__PURE__ */ jsx("tr", {
2452
+ "data-slot": "table-row",
2453
+ className: cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className),
2454
+ ...props
2455
+ });
2456
+ }
2457
+ function TableHead({ className, ...props }) {
2458
+ return /* @__PURE__ */ jsx("th", {
2459
+ "data-slot": "table-head",
2460
+ className: cn("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
2461
+ ...props
2462
+ });
2463
+ }
2464
+ function TableCell({ className, ...props }) {
2465
+ return /* @__PURE__ */ jsx("td", {
2466
+ "data-slot": "table-cell",
2467
+ className: cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
2468
+ ...props
2469
+ });
2470
+ }
2471
+ function TableCaption({ className, ...props }) {
2472
+ return /* @__PURE__ */ jsx("caption", {
2473
+ "data-slot": "table-caption",
2474
+ className: cn("text-muted-foreground mt-4 text-sm", className),
2475
+ ...props
2476
+ });
2477
+ }
2478
+ //#endregion
2479
+ //#region src/shadcns/components/ui/textarea.tsx
2480
+ function Textarea({ className, ...props }) {
2481
+ return /* @__PURE__ */ jsx("textarea", {
2482
+ "data-slot": "textarea",
2483
+ className: cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
2484
+ ...props
2485
+ });
2486
+ }
2487
+ //#endregion
2488
+ //#region src/shadcns/components/ui/toggle-group.tsx
2489
+ const ToggleGroupContext = React$1.createContext({
2490
+ size: "default",
2491
+ variant: "default"
2492
+ });
2493
+ function ToggleGroup({ className, variant, size, children, ...props }) {
2494
+ return /* @__PURE__ */ jsx(ToggleGroupPrimitive.Root, {
2495
+ "data-slot": "toggle-group",
2496
+ "data-variant": variant,
2497
+ "data-size": size,
2498
+ className: cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs", className),
2499
+ ...props,
2500
+ children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, {
2501
+ value: {
2502
+ variant,
2503
+ size
2504
+ },
2505
+ children
2506
+ })
2507
+ });
2508
+ }
2509
+ function ToggleGroupItem({ className, children, variant, size, ...props }) {
2510
+ const context = React$1.useContext(ToggleGroupContext);
2511
+ return /* @__PURE__ */ jsx(ToggleGroupPrimitive.Item, {
2512
+ "data-slot": "toggle-group-item",
2513
+ "data-variant": context.variant || variant,
2514
+ "data-size": context.size || size,
2515
+ className: cn(toggleVariants({
2516
+ variant: context.variant || variant,
2517
+ size: context.size || size
2518
+ }), "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", className),
2519
+ ...props,
2520
+ children
2521
+ });
2522
+ }
2523
+ //#endregion
2524
+ //#region src/shadcns/components/ui/toggle.tsx
2525
+ const toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
2526
+ variants: {
2527
+ variant: {
2528
+ default: "bg-transparent",
2529
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
2530
+ },
2531
+ size: {
2532
+ default: "h-9 px-2 min-w-9",
2533
+ sm: "h-8 px-1.5 min-w-8",
2534
+ lg: "h-10 px-2.5 min-w-10"
2535
+ }
2536
+ },
2537
+ defaultVariants: {
2538
+ variant: "default",
2539
+ size: "default"
2540
+ }
2541
+ });
2542
+ function Toggle({ className, variant, size, ...props }) {
2543
+ return /* @__PURE__ */ jsx(TogglePrimitive.Root, {
2544
+ "data-slot": "toggle",
2545
+ className: cn(toggleVariants({
2546
+ variant,
2547
+ size,
2548
+ className
2549
+ })),
2550
+ ...props
2551
+ });
2552
+ }
2553
+ //#endregion
2554
+ //#region src/shadcns/components/ui/tooltip.tsx
2555
+ function TooltipProvider({ delayDuration = 0, ...props }) {
2556
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
2557
+ "data-slot": "tooltip-provider",
2558
+ delayDuration,
2559
+ ...props
2560
+ });
2561
+ }
2562
+ function Tooltip({ ...props }) {
2563
+ return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, {
2564
+ "data-slot": "tooltip",
2565
+ ...props
2566
+ }) });
2567
+ }
2568
+ function TooltipTrigger({ ...props }) {
2569
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, {
2570
+ "data-slot": "tooltip-trigger",
2571
+ ...props
2572
+ });
2573
+ }
2574
+ function TooltipContent({ className, sideOffset = 0, children, ...props }) {
2575
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(TooltipPrimitive.Content, {
2576
+ "data-slot": "tooltip-content",
2577
+ sideOffset,
2578
+ className: cn("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", className),
2579
+ ...props,
2580
+ children: [children, /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
2581
+ }) });
2582
+ }
2583
+ //#endregion
2584
+ //#region src/shadcns/hooks/use-mobile.ts
2585
+ const MOBILE_BREAKPOINT = 768;
2586
+ function useIsMobile() {
2587
+ const [isMobile, setIsMobile] = React$1.useState(void 0);
2588
+ React$1.useEffect(() => {
2589
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
2590
+ const onChange = () => {
2591
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
2592
+ };
2593
+ mql.addEventListener("change", onChange);
2594
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
2595
+ return () => mql.removeEventListener("change", onChange);
2596
+ }, []);
2597
+ return !!isMobile;
2598
+ }
2599
+ //#endregion
2600
+ //#region src/shadcns/lib/utils.ts
2601
+ function cn(...inputs) {
2602
+ return twMerge(clsx(...inputs));
2603
+ }
2604
+ //#endregion
2605
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, 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, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, navigationMenuTriggerStyle, toggleVariants, useFormField, useIsMobile, useSidebar };
2606
+
2607
+ //# sourceMappingURL=index.mjs.map