xertica-ui 2.0.2 → 2.0.4

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 (52) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/bin/cli.ts +2 -1
  4. package/components/assistant/markdown-message/markdown-message.mdx +1 -1
  5. package/components/brand/language-selector/language-selector.mdx +1 -1
  6. package/components/brand/theme-toggle/theme-toggle.mdx +1 -1
  7. package/components/brand/xertica-logo/xertica-logo.mdx +1 -1
  8. package/components/brand/xertica-provider/xertica-provider.mdx +1 -1
  9. package/components/brand/xertica-xlogo/xertica-xlogo.mdx +1 -1
  10. package/components/index.ts +6 -0
  11. package/components/layout/header/header.mdx +1 -1
  12. package/components/layout/sidebar/sidebar.mdx +2 -1
  13. package/components/media/floating-media-wrapper.mdx +2 -2
  14. package/components/pages/forgot-password-page/ForgotPasswordPage.tsx +2 -4
  15. package/components/pages/home-content/HomeContent.tsx +1 -1
  16. package/components/pages/home-content/home-content.mdx +1 -1
  17. package/components/pages/home-page/HomePage.stories.tsx +39 -0
  18. package/components/pages/home-page/HomePage.tsx +2 -3
  19. package/components/pages/home-page/home-page.mdx +56 -0
  20. package/components/pages/login-page/LoginPage.tsx +2 -5
  21. package/components/pages/reset-password-page/reset-password-page.mdx +6 -2
  22. package/components/pages/template-page/TemplatePage.stories.tsx +39 -0
  23. package/components/pages/template-page/TemplatePage.tsx +3 -1
  24. package/components/pages/template-page/template-page.mdx +54 -0
  25. package/components/pages/verify-email-page/VerifyEmailPage.tsx +2 -4
  26. package/components/ui/accordion/accordion.stories.tsx +27 -1
  27. package/components/ui/alert-dialog/alert-dialog.stories.tsx +30 -0
  28. package/components/ui/button/button.stories.tsx +23 -0
  29. package/components/ui/checkbox/checkbox.stories.tsx +20 -1
  30. package/components/ui/dialog/dialog.stories.tsx +30 -0
  31. package/components/ui/google-maps-loader/google-maps-loader.mdx +1 -1
  32. package/components/ui/input/input.stories.tsx +24 -0
  33. package/components/ui/switch/switch.stories.tsx +20 -1
  34. package/components/ui/tabs/tabs.stories.tsx +26 -1
  35. package/components.json +1507 -530
  36. package/dist/cli.js +3 -2
  37. package/dist/components/index.d.ts +6 -0
  38. package/dist/index.cjs.js +1233 -484
  39. package/dist/index.es.js +778 -28
  40. package/dist/ui.cjs.js +178 -178
  41. package/dist/ui.es.js +1 -1
  42. package/dist/use-mobile-CaENcqm-.js +4508 -0
  43. package/dist/use-mobile-DMOvImGQ.cjs +4542 -0
  44. package/dist/xertica-ui.css +1 -1
  45. package/docs/decision-tree.md +287 -0
  46. package/guidelines/Guidelines.md +250 -657
  47. package/llms-compact.txt +327 -0
  48. package/llms.txt +160 -71
  49. package/package.json +193 -192
  50. package/templates/CLAUDE.md +160 -0
  51. package/templates/guidelines/Guidelines.md +245 -99
  52. package/templates/package.json +3 -3
@@ -0,0 +1,4542 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const TabsPrimitive = require("@radix-ui/react-tabs");
4
+ const tooltip = require("./tooltip-Ded96neP.cjs");
5
+ const reactSlot = require("@radix-ui/react-slot");
6
+ const classVarianceAuthority = require("class-variance-authority");
7
+ const lucideReact = require("lucide-react");
8
+ const React = require("react");
9
+ const CheckboxPrimitive = require("@radix-ui/react-checkbox");
10
+ const RadioGroupPrimitive = require("@radix-ui/react-radio-group");
11
+ const SwitchPrimitive = require("@radix-ui/react-switch");
12
+ const ProgressPrimitive = require("@radix-ui/react-progress");
13
+ const SeparatorPrimitive = require("@radix-ui/react-separator");
14
+ const AlertDialogPrimitive = require("@radix-ui/react-alert-dialog");
15
+ const AspectRatioPrimitive = require("@radix-ui/react-aspect-ratio");
16
+ const NavigationMenuPrimitive = require("@radix-ui/react-navigation-menu");
17
+ const ToggleGroupPrimitive = require("@radix-ui/react-toggle-group");
18
+ const TogglePrimitive = require("@radix-ui/react-toggle");
19
+ const inputOtp = require("input-otp");
20
+ const reactHookForm = require("react-hook-form");
21
+ const LabelPrimitive = require("@radix-ui/react-label");
22
+ const reactDayPicker = require("react-day-picker");
23
+ const DialogPrimitive = require("@radix-ui/react-dialog");
24
+ const vaul = require("vaul");
25
+ const HoverCardPrimitive = require("@radix-ui/react-hover-card");
26
+ const ContextMenuPrimitive = require("@radix-ui/react-context-menu");
27
+ const MenubarPrimitive = require("@radix-ui/react-menubar");
28
+ const cmdk = require("cmdk");
29
+ const richTextEditor = require("./rich-text-editor-D6H84OcX.cjs");
30
+ const CollapsiblePrimitive = require("@radix-ui/react-collapsible");
31
+ const AccordionPrimitive = require("@radix-ui/react-accordion");
32
+ const useEmblaCarousel = require("embla-carousel-react");
33
+ const googleMapsLoader = require("./google-maps-loader-eS3uQ5TA.cjs");
34
+ const client = require("react-dom/client");
35
+ const RechartsPrimitive = require("recharts");
36
+ var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
37
+ function _interopNamespaceDefault(e) {
38
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
39
+ if (e) {
40
+ for (const k in e) {
41
+ if (k !== "default") {
42
+ const d = Object.getOwnPropertyDescriptor(e, k);
43
+ Object.defineProperty(n, k, d.get ? d : {
44
+ enumerable: true,
45
+ get: () => e[k]
46
+ });
47
+ }
48
+ }
49
+ }
50
+ n.default = e;
51
+ return Object.freeze(n);
52
+ }
53
+ const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
54
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
55
+ const CheckboxPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CheckboxPrimitive);
56
+ const RadioGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadioGroupPrimitive);
57
+ const SwitchPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SwitchPrimitive);
58
+ const ProgressPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ProgressPrimitive);
59
+ const SeparatorPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SeparatorPrimitive);
60
+ const AlertDialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AlertDialogPrimitive);
61
+ const AspectRatioPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AspectRatioPrimitive);
62
+ const NavigationMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(NavigationMenuPrimitive);
63
+ const ToggleGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ToggleGroupPrimitive);
64
+ const TogglePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TogglePrimitive);
65
+ const LabelPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(LabelPrimitive);
66
+ const DialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DialogPrimitive);
67
+ const HoverCardPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(HoverCardPrimitive);
68
+ const ContextMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ContextMenuPrimitive);
69
+ const MenubarPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(MenubarPrimitive);
70
+ const CollapsiblePrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CollapsiblePrimitive);
71
+ const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
72
+ function Label({
73
+ className,
74
+ size = "md",
75
+ ...props
76
+ }) {
77
+ const sizeClasses = {
78
+ sm: "text-xs",
79
+ md: "text-sm",
80
+ lg: "text-base"
81
+ };
82
+ return /* @__PURE__ */ jsxRuntime.jsx(
83
+ LabelPrimitive__namespace.Root,
84
+ {
85
+ "data-slot": "label",
86
+ className: tooltip.cn(
87
+ "flex items-center gap-2 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",
88
+ sizeClasses[size],
89
+ className
90
+ ),
91
+ ...props
92
+ }
93
+ );
94
+ }
95
+ function Card({ className, ...props }) {
96
+ return /* @__PURE__ */ jsxRuntime.jsx(
97
+ "div",
98
+ {
99
+ "data-slot": "card",
100
+ className: tooltip.cn(
101
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-[var(--radius-card)]",
102
+ className
103
+ ),
104
+ ...props
105
+ }
106
+ );
107
+ }
108
+ function CardHeader({ className, ...props }) {
109
+ return /* @__PURE__ */ jsxRuntime.jsx(
110
+ "div",
111
+ {
112
+ "data-slot": "card-header",
113
+ className: tooltip.cn(
114
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
115
+ className
116
+ ),
117
+ ...props
118
+ }
119
+ );
120
+ }
121
+ function CardTitle({ className, ...props }) {
122
+ return /* @__PURE__ */ jsxRuntime.jsx(
123
+ "h4",
124
+ {
125
+ "data-slot": "card-title",
126
+ className: tooltip.cn("leading-none", className),
127
+ ...props
128
+ }
129
+ );
130
+ }
131
+ function CardDescription({ className, ...props }) {
132
+ return /* @__PURE__ */ jsxRuntime.jsx(
133
+ "p",
134
+ {
135
+ "data-slot": "card-description",
136
+ className: tooltip.cn("text-muted-foreground", className),
137
+ ...props
138
+ }
139
+ );
140
+ }
141
+ function CardAction({ className, ...props }) {
142
+ return /* @__PURE__ */ jsxRuntime.jsx(
143
+ "div",
144
+ {
145
+ "data-slot": "card-action",
146
+ className: tooltip.cn(
147
+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
148
+ className
149
+ ),
150
+ ...props
151
+ }
152
+ );
153
+ }
154
+ function CardContent({ className, ...props }) {
155
+ return /* @__PURE__ */ jsxRuntime.jsx(
156
+ "div",
157
+ {
158
+ "data-slot": "card-content",
159
+ className: tooltip.cn("px-6 [&:last-child]:pb-6", className),
160
+ ...props
161
+ }
162
+ );
163
+ }
164
+ function CardFooter({ className, ...props }) {
165
+ return /* @__PURE__ */ jsxRuntime.jsx(
166
+ "div",
167
+ {
168
+ "data-slot": "card-footer",
169
+ className: tooltip.cn("flex items-center px-6 pb-6 [.border-t]:pt-6", className),
170
+ ...props
171
+ }
172
+ );
173
+ }
174
+ function Tabs({
175
+ className,
176
+ ...props
177
+ }) {
178
+ return /* @__PURE__ */ jsxRuntime.jsx(
179
+ TabsPrimitive__namespace.Root,
180
+ {
181
+ "data-slot": "tabs",
182
+ className: tooltip.cn("flex flex-col gap-2", className),
183
+ ...props
184
+ }
185
+ );
186
+ }
187
+ function TabsList({
188
+ className,
189
+ ...props
190
+ }) {
191
+ return /* @__PURE__ */ jsxRuntime.jsx(
192
+ TabsPrimitive__namespace.List,
193
+ {
194
+ "data-slot": "tabs-list",
195
+ className: tooltip.cn(
196
+ "relative inline-flex h-12 w-fit items-end justify-start border-b border-border bg-transparent",
197
+ className
198
+ ),
199
+ ...props
200
+ }
201
+ );
202
+ }
203
+ function TabsTrigger({
204
+ className,
205
+ ...props
206
+ }) {
207
+ return /* @__PURE__ */ jsxRuntime.jsx(
208
+ TabsPrimitive__namespace.Trigger,
209
+ {
210
+ "data-slot": "tabs-trigger",
211
+ className: tooltip.cn(
212
+ "relative inline-flex h-12 items-center justify-center gap-1.5 bg-transparent px-4 py-3 text-sm font-medium whitespace-nowrap transition-all duration-200 ease-in-out border-b-2 border-transparent text-muted-foreground hover:text-foreground hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-primary data-[state=active]:border-primary data-[state=active]:bg-transparent [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
213
+ className
214
+ ),
215
+ ...props
216
+ }
217
+ );
218
+ }
219
+ function TabsContent({
220
+ className,
221
+ ...props
222
+ }) {
223
+ return /* @__PURE__ */ jsxRuntime.jsx(
224
+ TabsPrimitive__namespace.Content,
225
+ {
226
+ "data-slot": "tabs-content",
227
+ className: tooltip.cn("flex-1 outline-none", className),
228
+ ...props
229
+ }
230
+ );
231
+ }
232
+ const badgeVariants = classVarianceAuthority.cva(
233
+ "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",
234
+ {
235
+ variants: {
236
+ variant: {
237
+ default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
238
+ secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
239
+ 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",
240
+ outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
241
+ success: "border-transparent bg-[var(--toast-success-bg)] text-[var(--toast-success-icon)]",
242
+ warning: "border-transparent bg-[var(--toast-warning-bg)] text-[var(--toast-warning-icon)]",
243
+ info: "border-transparent bg-[var(--toast-info-bg)] text-[var(--toast-info-icon)]"
244
+ }
245
+ },
246
+ defaultVariants: {
247
+ variant: "default"
248
+ }
249
+ }
250
+ );
251
+ function Badge({
252
+ className,
253
+ variant,
254
+ asChild = false,
255
+ children,
256
+ ...props
257
+ }) {
258
+ const Comp = asChild ? reactSlot.Slot : "span";
259
+ return /* @__PURE__ */ jsxRuntime.jsx(
260
+ Comp,
261
+ {
262
+ "data-slot": "badge",
263
+ className: tooltip.cn(badgeVariants({ variant }), className),
264
+ ...props,
265
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
266
+ }
267
+ );
268
+ }
269
+ const alertVariants = classVarianceAuthority.cva(
270
+ "relative w-full rounded-[var(--radius)] border-l-4 px-4 py-3 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-5 [&>svg]:translate-y-0.5 [&>svg]:text-current",
271
+ {
272
+ variants: {
273
+ variant: {
274
+ default: "bg-muted/50 border-l-border text-foreground [&>svg]:text-muted-foreground",
275
+ success: "bg-[color:var(--success)]/10 dark:bg-[color:var(--success)]/20 border-l-[color:var(--success)] text-foreground [&>svg]:text-[color:var(--success)]",
276
+ info: "bg-[color:var(--info)]/10 dark:bg-[color:var(--info)]/20 border-l-[color:var(--info)] text-foreground [&>svg]:text-[color:var(--info)]",
277
+ warning: "bg-[color:var(--warning)]/10 dark:bg-[color:var(--warning)]/20 border-l-[color:var(--warning)] text-foreground [&>svg]:text-[color:var(--warning)]",
278
+ destructive: "bg-[color:var(--destructive)]/10 dark:bg-[color:var(--destructive)]/20 border-l-[color:var(--destructive)] text-foreground [&>svg]:text-[color:var(--destructive)]"
279
+ }
280
+ },
281
+ defaultVariants: {
282
+ variant: "default"
283
+ }
284
+ }
285
+ );
286
+ const alertIcons = {
287
+ default: lucideReact.Info,
288
+ success: lucideReact.CheckCircle,
289
+ info: lucideReact.Info,
290
+ warning: lucideReact.AlertTriangle,
291
+ destructive: lucideReact.XCircle
292
+ };
293
+ function Alert({
294
+ className,
295
+ variant,
296
+ icon,
297
+ children,
298
+ ...props
299
+ }) {
300
+ const alertVariant = variant && variant in alertIcons ? variant : "default";
301
+ const DefaultIcon = alertIcons[alertVariant];
302
+ return /* @__PURE__ */ jsxRuntime.jsxs(
303
+ "div",
304
+ {
305
+ "data-slot": "alert",
306
+ role: "alert",
307
+ className: tooltip.cn(alertVariants({ variant }), className),
308
+ ...props,
309
+ children: [
310
+ icon !== void 0 ? icon : /* @__PURE__ */ jsxRuntime.jsx(DefaultIcon, { className: "flex-shrink-0" }),
311
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1", children })
312
+ ]
313
+ }
314
+ );
315
+ }
316
+ function AlertTitle({ className, ...props }) {
317
+ return /* @__PURE__ */ jsxRuntime.jsx(
318
+ "div",
319
+ {
320
+ "data-slot": "alert-title",
321
+ className: tooltip.cn(
322
+ "font-medium mb-1 leading-tight",
323
+ className
324
+ ),
325
+ ...props
326
+ }
327
+ );
328
+ }
329
+ function AlertDescription({
330
+ className,
331
+ ...props
332
+ }) {
333
+ return /* @__PURE__ */ jsxRuntime.jsx(
334
+ "div",
335
+ {
336
+ "data-slot": "alert-description",
337
+ className: tooltip.cn(
338
+ "leading-relaxed",
339
+ className
340
+ ),
341
+ ...props
342
+ }
343
+ );
344
+ }
345
+ const Checkbox = React__namespace.forwardRef(({ className, size = "md", ...props }, ref) => {
346
+ const sizeClasses = {
347
+ sm: "size-3.5",
348
+ md: "size-4",
349
+ lg: "size-5"
350
+ };
351
+ const iconSizeClasses = {
352
+ sm: "size-3",
353
+ md: "size-3.5",
354
+ lg: "size-4"
355
+ };
356
+ return /* @__PURE__ */ jsxRuntime.jsx(
357
+ CheckboxPrimitive__namespace.Root,
358
+ {
359
+ ref,
360
+ "data-slot": "checkbox",
361
+ className: tooltip.cn(
362
+ "peer border bg-white 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 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
363
+ sizeClasses[size],
364
+ className
365
+ ),
366
+ ...props,
367
+ children: /* @__PURE__ */ jsxRuntime.jsx(
368
+ CheckboxPrimitive__namespace.Indicator,
369
+ {
370
+ "data-slot": "checkbox-indicator",
371
+ className: "flex items-center justify-center text-current transition-none",
372
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: iconSizeClasses[size] })
373
+ }
374
+ )
375
+ }
376
+ );
377
+ });
378
+ Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
379
+ const RadioGroup = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
380
+ RadioGroupPrimitive__namespace.Root,
381
+ {
382
+ className: tooltip.cn("grid gap-4", className),
383
+ ...props,
384
+ ref
385
+ }
386
+ ));
387
+ RadioGroup.displayName = RadioGroupPrimitive__namespace.Root.displayName;
388
+ const RadioGroupItem = React__namespace.forwardRef(({ className, size = "md", ...props }, ref) => {
389
+ const sizeClasses = {
390
+ sm: "size-4",
391
+ md: "size-5",
392
+ lg: "size-6"
393
+ };
394
+ const dotSizeClasses = {
395
+ sm: "size-2",
396
+ md: "size-2.5",
397
+ lg: "size-3"
398
+ };
399
+ return /* @__PURE__ */ jsxRuntime.jsx(
400
+ RadioGroupPrimitive__namespace.Item,
401
+ {
402
+ ref,
403
+ "data-slot": "radio-group-item",
404
+ className: tooltip.cn(
405
+ // Base styles - Material UI inspired
406
+ "relative aspect-square shrink-0 rounded-full border-2 transition-all duration-200 outline-none cursor-pointer",
407
+ // Default state - sempre com contorno usando variáveis CSS
408
+ "border-muted-foreground bg-background",
409
+ // Hover state - usa variável primary
410
+ "hover:border-primary hover:shadow-md",
411
+ // Focus state - usa variável primary
412
+ "focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
413
+ // Checked state - mantém contorno com primary
414
+ "data-[state=checked]:border-primary data-[state=checked]:bg-background",
415
+ // Disabled state
416
+ "disabled:cursor-not-allowed disabled:opacity-50 disabled:border-muted",
417
+ // Invalid state - usa variável destructive
418
+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20",
419
+ sizeClasses[size],
420
+ className
421
+ ),
422
+ ...props,
423
+ children: /* @__PURE__ */ jsxRuntime.jsx(
424
+ RadioGroupPrimitive__namespace.Indicator,
425
+ {
426
+ "data-slot": "radio-group-indicator",
427
+ className: "flex items-center justify-center",
428
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("rounded-full bg-primary transition-all duration-200", dotSizeClasses[size]) })
429
+ }
430
+ )
431
+ }
432
+ );
433
+ });
434
+ RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
435
+ const Switch = React__namespace.forwardRef(({ className, size = "md", ...props }, ref) => {
436
+ const trackClasses = {
437
+ sm: "h-3.5 w-7",
438
+ md: "h-[1.15rem] w-8",
439
+ lg: "h-[1.375rem] w-10"
440
+ };
441
+ const thumbClasses = {
442
+ sm: "size-3",
443
+ md: "size-4",
444
+ lg: "size-5"
445
+ };
446
+ return /* @__PURE__ */ jsxRuntime.jsx(
447
+ SwitchPrimitive__namespace.Root,
448
+ {
449
+ className: tooltip.cn(
450
+ "peer inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50",
451
+ "data-[state=checked]:bg-primary",
452
+ "data-[state=unchecked]:bg-muted",
453
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
454
+ trackClasses[size],
455
+ className
456
+ ),
457
+ ...props,
458
+ ref,
459
+ children: /* @__PURE__ */ jsxRuntime.jsx(
460
+ SwitchPrimitive__namespace.Thumb,
461
+ {
462
+ className: tooltip.cn(
463
+ "pointer-events-none block rounded-full ring-0 transition-transform shadow-sm",
464
+ "bg-background",
465
+ "data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",
466
+ thumbClasses[size]
467
+ )
468
+ }
469
+ )
470
+ }
471
+ );
472
+ });
473
+ Switch.displayName = SwitchPrimitive__namespace.Root.displayName;
474
+ const trackVariants = {
475
+ default: "bg-primary/20",
476
+ success: "bg-success/20",
477
+ info: "bg-info/20",
478
+ warning: "bg-warning/20",
479
+ destructive: "bg-destructive/20"
480
+ };
481
+ const indicatorVariants = {
482
+ default: "bg-primary",
483
+ success: "bg-success",
484
+ info: "bg-info",
485
+ warning: "bg-warning",
486
+ destructive: "bg-destructive"
487
+ };
488
+ function Progress({
489
+ className,
490
+ value,
491
+ variant = "default",
492
+ ...props
493
+ }) {
494
+ return /* @__PURE__ */ jsxRuntime.jsx(
495
+ ProgressPrimitive__namespace.Root,
496
+ {
497
+ "data-slot": "progress",
498
+ "aria-label": props["aria-label"] || "Progresso",
499
+ className: tooltip.cn(
500
+ "relative h-2 w-full overflow-hidden rounded-full",
501
+ trackVariants[variant],
502
+ className
503
+ ),
504
+ ...props,
505
+ children: /* @__PURE__ */ jsxRuntime.jsx(
506
+ ProgressPrimitive__namespace.Indicator,
507
+ {
508
+ "data-slot": "progress-indicator",
509
+ className: tooltip.cn("h-full w-full flex-1 transition-all", indicatorVariants[variant]),
510
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
511
+ }
512
+ )
513
+ }
514
+ );
515
+ }
516
+ function Separator({
517
+ className,
518
+ orientation = "horizontal",
519
+ decorative = true,
520
+ ...props
521
+ }) {
522
+ return /* @__PURE__ */ jsxRuntime.jsx(
523
+ SeparatorPrimitive__namespace.Root,
524
+ {
525
+ "data-slot": "separator-root",
526
+ decorative,
527
+ orientation,
528
+ className: tooltip.cn(
529
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
530
+ className
531
+ ),
532
+ ...props
533
+ }
534
+ );
535
+ }
536
+ function useMapLayers(map, layers) {
537
+ const trafficLayerRef = React.useRef(null);
538
+ const transitLayerRef = React.useRef(null);
539
+ const bicyclingLayerRef = React.useRef(null);
540
+ React.useEffect(() => {
541
+ if (!map) return;
542
+ if (layers.traffic) {
543
+ if (!trafficLayerRef.current) {
544
+ trafficLayerRef.current = new google.maps.TrafficLayer();
545
+ }
546
+ trafficLayerRef.current.setMap(map);
547
+ } else {
548
+ if (trafficLayerRef.current) {
549
+ trafficLayerRef.current.setMap(null);
550
+ }
551
+ }
552
+ return () => {
553
+ if (trafficLayerRef.current) {
554
+ trafficLayerRef.current.setMap(null);
555
+ }
556
+ };
557
+ }, [map, layers.traffic]);
558
+ React.useEffect(() => {
559
+ if (!map) return;
560
+ if (layers.transit) {
561
+ if (!transitLayerRef.current) {
562
+ transitLayerRef.current = new google.maps.TransitLayer();
563
+ }
564
+ transitLayerRef.current.setMap(map);
565
+ } else {
566
+ if (transitLayerRef.current) {
567
+ transitLayerRef.current.setMap(null);
568
+ }
569
+ }
570
+ return () => {
571
+ if (transitLayerRef.current) {
572
+ transitLayerRef.current.setMap(null);
573
+ }
574
+ };
575
+ }, [map, layers.transit]);
576
+ React.useEffect(() => {
577
+ if (!map) return;
578
+ if (layers.bicycling) {
579
+ if (!bicyclingLayerRef.current) {
580
+ bicyclingLayerRef.current = new google.maps.BicyclingLayer();
581
+ }
582
+ bicyclingLayerRef.current.setMap(map);
583
+ } else {
584
+ if (bicyclingLayerRef.current) {
585
+ bicyclingLayerRef.current.setMap(null);
586
+ }
587
+ }
588
+ return () => {
589
+ if (bicyclingLayerRef.current) {
590
+ bicyclingLayerRef.current.setMap(null);
591
+ }
592
+ };
593
+ }, [map, layers.bicycling]);
594
+ }
595
+ const __vite_import_meta_env__$1 = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_GEMINI_API_KEY": "AIzaSyBnoWKe4LjQzlIklON_dVXMXNUl2gvfH6U", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" };
596
+ const DEFAULT_CENTER = { lat: -23.5505, lng: -46.6333 };
597
+ const DEFAULT_ZOOM = 12;
598
+ const MapContent = React.forwardRef(
599
+ ({ apiKey, ...props }, ref) => {
600
+ const { isLoaded, loadError, load } = googleMapsLoader.useGoogleMapsLoader();
601
+ const {
602
+ center = DEFAULT_CENTER,
603
+ zoom = DEFAULT_ZOOM,
604
+ markers = [],
605
+ circle,
606
+ polygon,
607
+ layers,
608
+ height = "400px",
609
+ mapContainerClassName,
610
+ disableDefaultUI = false,
611
+ zoomControl = true,
612
+ streetViewControl = false,
613
+ mapTypeControl = false,
614
+ fullscreenControl = true,
615
+ gestureHandling = "cooperative",
616
+ onMapLoad,
617
+ className,
618
+ ...divProps
619
+ } = props;
620
+ const [selectedMarker, setSelectedMarker] = React.useState(null);
621
+ const mapRef = React.useRef(null);
622
+ const gmpMapRef = React.useRef(null);
623
+ const infoWindowRef = React.useRef(null);
624
+ const circleRef = React.useRef(null);
625
+ const polygonRef = React.useRef(null);
626
+ const [themeColors, setThemeColors] = React.useState({
627
+ primary: "#4F46E5",
628
+ chart2: "#10B981"
629
+ });
630
+ React.useEffect(() => {
631
+ if (typeof window !== "undefined") {
632
+ const styles = getComputedStyle(document.documentElement);
633
+ setThemeColors({
634
+ primary: styles.getPropertyValue("--primary").trim() || "#4F46E5",
635
+ chart2: styles.getPropertyValue("--chart-2").trim() || "#10B981"
636
+ });
637
+ }
638
+ }, []);
639
+ React.useEffect(() => {
640
+ if (!isLoaded && apiKey && !loadError && load) {
641
+ load(apiKey).catch(console.error);
642
+ }
643
+ }, [isLoaded, apiKey, loadError, load]);
644
+ React.useEffect(() => {
645
+ if (!isLoaded || !gmpMapRef.current) return;
646
+ const gmpMap = gmpMapRef.current;
647
+ if (gmpMap.innerMap) {
648
+ mapRef.current = gmpMap.innerMap;
649
+ if (onMapLoad) {
650
+ onMapLoad(gmpMap.innerMap);
651
+ }
652
+ } else {
653
+ const interval = setInterval(() => {
654
+ if (gmpMap.innerMap) {
655
+ mapRef.current = gmpMap.innerMap;
656
+ if (onMapLoad) {
657
+ onMapLoad(gmpMap.innerMap);
658
+ }
659
+ clearInterval(interval);
660
+ }
661
+ }, 100);
662
+ return () => clearInterval(interval);
663
+ }
664
+ return () => {
665
+ mapRef.current = null;
666
+ };
667
+ }, [isLoaded]);
668
+ React.useEffect(() => {
669
+ if (gmpMapRef.current) {
670
+ if (center) gmpMapRef.current.center = center;
671
+ }
672
+ }, [center]);
673
+ React.useEffect(() => {
674
+ if (gmpMapRef.current) {
675
+ if (zoom !== void 0) gmpMapRef.current.zoom = zoom;
676
+ }
677
+ }, [zoom]);
678
+ React.useEffect(() => {
679
+ if (gmpMapRef.current) {
680
+ if (props.mapTypeId) gmpMapRef.current.mapTypeId = props.mapTypeId;
681
+ }
682
+ }, [props.mapTypeId]);
683
+ React.useEffect(() => {
684
+ var _a;
685
+ const map = mapRef.current;
686
+ if (!map || !isLoaded) return;
687
+ (_a = circleRef.current) == null ? void 0 : _a.setMap(null);
688
+ circleRef.current = null;
689
+ if (circle && circle.center && circle.radius) {
690
+ circleRef.current = new google.maps.Circle({
691
+ map,
692
+ center: circle.center,
693
+ radius: circle.radius,
694
+ fillColor: circle.fillColor || themeColors.primary,
695
+ fillOpacity: 0.2,
696
+ strokeColor: circle.strokeColor || themeColors.primary,
697
+ strokeOpacity: 0.8,
698
+ strokeWeight: 2
699
+ });
700
+ }
701
+ return () => {
702
+ var _a2;
703
+ (_a2 = circleRef.current) == null ? void 0 : _a2.setMap(null);
704
+ };
705
+ }, [circle, isLoaded, themeColors, mapRef.current]);
706
+ React.useEffect(() => {
707
+ var _a;
708
+ const map = mapRef.current;
709
+ if (!map || !isLoaded) return;
710
+ (_a = polygonRef.current) == null ? void 0 : _a.setMap(null);
711
+ polygonRef.current = null;
712
+ if (polygon && polygon.paths) {
713
+ polygonRef.current = new google.maps.Polygon({
714
+ map,
715
+ paths: polygon.paths,
716
+ fillColor: polygon.fillColor || themeColors.chart2,
717
+ fillOpacity: 0.2,
718
+ strokeColor: polygon.strokeColor || themeColors.chart2,
719
+ strokeOpacity: 0.8,
720
+ strokeWeight: 2
721
+ });
722
+ }
723
+ return () => {
724
+ var _a2;
725
+ (_a2 = polygonRef.current) == null ? void 0 : _a2.setMap(null);
726
+ };
727
+ }, [polygon, isLoaded, themeColors, mapRef.current]);
728
+ useMapLayers(mapRef.current, layers || {});
729
+ React.useEffect(() => {
730
+ var _a;
731
+ const map = mapRef.current;
732
+ if (!map || selectedMarker === null) {
733
+ (_a = infoWindowRef.current) == null ? void 0 : _a.close();
734
+ return;
735
+ }
736
+ const markerData = markers[selectedMarker];
737
+ if (!markerData) return;
738
+ }, [selectedMarker, markers]);
739
+ const handleMarkerClick = (index, markerElement) => {
740
+ setSelectedMarker(index);
741
+ const map = mapRef.current;
742
+ if (!map) return;
743
+ const markerData = markers[index];
744
+ if (!markerData) return;
745
+ let contentToRender = markerData.richContent;
746
+ if (!contentToRender && (markerData.title || markerData.info)) {
747
+ contentToRender = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 pr-8 min-w-[200px] max-w-[300px]", children: [
748
+ markerData.title && /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-base mb-1", children: markerData.title }),
749
+ markerData.info && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: markerData.info })
750
+ ] });
751
+ }
752
+ if (contentToRender && markerElement.innerMarker) {
753
+ if (!infoWindowRef.current) {
754
+ infoWindowRef.current = new google.maps.InfoWindow();
755
+ }
756
+ const container = document.createElement("div");
757
+ const root = client.createRoot(container);
758
+ root.render(contentToRender);
759
+ infoWindowRef.current.setContent(container);
760
+ infoWindowRef.current.open({
761
+ map,
762
+ anchor: markerElement.innerMarker
763
+ });
764
+ infoWindowRef.current.addListener("closeclick", () => {
765
+ setSelectedMarker(null);
766
+ setTimeout(() => root.unmount(), 0);
767
+ });
768
+ }
769
+ };
770
+ if (loadError) {
771
+ return /* @__PURE__ */ jsxRuntime.jsx(
772
+ "div",
773
+ {
774
+ ref,
775
+ className: tooltip.cn(
776
+ "relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
777
+ className
778
+ ),
779
+ style: { height },
780
+ ...divProps,
781
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-2 p-6", children: [
782
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-12 h-12 mx-auto", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }) }),
783
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: "Failed to load Google Maps" }),
784
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
785
+ ] }) })
786
+ }
787
+ );
788
+ }
789
+ if (!isLoaded) {
790
+ return /* @__PURE__ */ jsxRuntime.jsx(
791
+ "div",
792
+ {
793
+ ref,
794
+ className: tooltip.cn(
795
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
796
+ className
797
+ ),
798
+ style: { height },
799
+ ...divProps
800
+ }
801
+ );
802
+ }
803
+ return /* @__PURE__ */ jsxRuntime.jsx(
804
+ "div",
805
+ {
806
+ ref,
807
+ className: tooltip.cn(
808
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden",
809
+ className
810
+ ),
811
+ style: { height },
812
+ ...divProps,
813
+ children: /* @__PURE__ */ jsxRuntime.jsx(
814
+ "gmp-map",
815
+ {
816
+ ref: gmpMapRef,
817
+ style: { height: "100%", width: "100%", display: "block" },
818
+ "map-id": props.mapId || "DEMO_MAP_ID",
819
+ children: markers.map((markerData, idx) => {
820
+ const markerColor = markerData.customColor || "var(--primary)";
821
+ const iconColor = markerData.iconColor || "white";
822
+ return (
823
+ // @ts-ignore
824
+ /* @__PURE__ */ jsxRuntime.jsx(
825
+ "gmp-advanced-marker",
826
+ {
827
+ title: markerData.title,
828
+ ref: (el) => {
829
+ if (el) {
830
+ el.position = markerData.position;
831
+ el.addEventListener("gmp-click", () => handleMarkerClick(idx, el));
832
+ }
833
+ },
834
+ children: /* @__PURE__ */ jsxRuntime.jsx(
835
+ "div",
836
+ {
837
+ className: "flex items-center justify-center w-8 h-8 border-[3px] border-background shadow-lg cursor-pointer origin-center transition-transform duration-200",
838
+ style: {
839
+ borderRadius: "50% 50% 50% 0",
840
+ transform: "rotate(-45deg)",
841
+ backgroundColor: markerColor
842
+ },
843
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center rotate-45", children: markerData.iconSvg ? /* @__PURE__ */ jsxRuntime.jsx(
844
+ "div",
845
+ {
846
+ dangerouslySetInnerHTML: { __html: markerData.iconSvg },
847
+ style: { color: iconColor, width: 16, height: 16, fill: "currentColor" }
848
+ }
849
+ ) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-sm", style: { color: iconColor }, children: markerData.icon || markerData.label || "" }) })
850
+ }
851
+ )
852
+ },
853
+ idx
854
+ )
855
+ );
856
+ })
857
+ }
858
+ )
859
+ }
860
+ );
861
+ }
862
+ );
863
+ MapContent.displayName = "MapContent";
864
+ const Map$1 = React.forwardRef(
865
+ (props, ref) => {
866
+ const { isLoaded, loadError } = googleMapsLoader.useGoogleMapsLoader();
867
+ const effectiveApiKey = props.apiKey || typeof { url: typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("use-mobile-DMOvImGQ.cjs", document.baseURI).href } !== "undefined" && __vite_import_meta_env__$1 && "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" || "";
868
+ const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
869
+ if (isLoaded || isValidKey || loadError) {
870
+ return /* @__PURE__ */ jsxRuntime.jsx(MapContent, { ref, ...props, apiKey: effectiveApiKey });
871
+ }
872
+ const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
873
+ if (isScriptInjected) {
874
+ return /* @__PURE__ */ jsxRuntime.jsx(MapContent, { ref, ...props, apiKey: effectiveApiKey });
875
+ }
876
+ return /* @__PURE__ */ jsxRuntime.jsx(
877
+ "div",
878
+ {
879
+ ref,
880
+ className: tooltip.cn(
881
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
882
+ props.className
883
+ ),
884
+ style: { height: props.height || "400px" },
885
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-muted", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-3 p-6", children: [
886
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-8 h-8 text-primary", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
887
+ /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" }),
888
+ /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
889
+ ] }) }),
890
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
891
+ ] }) })
892
+ }
893
+ );
894
+ }
895
+ );
896
+ Map$1.displayName = "Map";
897
+ function PageHeader({
898
+ title,
899
+ subtitle,
900
+ backHref,
901
+ onBack,
902
+ renderBackLink,
903
+ actions,
904
+ className,
905
+ backLabel = "Back"
906
+ }) {
907
+ const showBack = !!(backHref || onBack || renderBackLink);
908
+ const icon = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-5 w-5" });
909
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("flex flex-col gap-4 md:flex-row md:items-center md:justify-between mb-8", className), children: [
910
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-4", children: [
911
+ showBack && /* @__PURE__ */ jsxRuntime.jsx(
912
+ tooltip.Button,
913
+ {
914
+ variant: "outline",
915
+ size: "icon",
916
+ className: "h-10 w-10 shrink-0",
917
+ onClick: onBack,
918
+ asChild: !!renderBackLink || !!backHref,
919
+ "aria-label": backLabel,
920
+ children: renderBackLink ? renderBackLink(icon) : backHref ? /* @__PURE__ */ jsxRuntime.jsx("a", { href: backHref, children: icon }) : icon
921
+ }
922
+ ),
923
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1", children: [
924
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-semibold tracking-tight text-foreground", children: title }),
925
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: subtitle })
926
+ ] })
927
+ ] }),
928
+ actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: actions })
929
+ ] });
930
+ }
931
+ function PageHeaderHeading({
932
+ className,
933
+ ...props
934
+ }) {
935
+ return /* @__PURE__ */ jsxRuntime.jsx(
936
+ "h1",
937
+ {
938
+ className: tooltip.cn(
939
+ "text-3xl font-bold leading-tight tracking-tighter md:text-4xl lg:leading-[1.1]",
940
+ className
941
+ ),
942
+ ...props
943
+ }
944
+ );
945
+ }
946
+ function PageHeaderDescription({
947
+ className,
948
+ ...props
949
+ }) {
950
+ return /* @__PURE__ */ jsxRuntime.jsx(
951
+ "p",
952
+ {
953
+ className: tooltip.cn(
954
+ "text-lg text-muted-foreground sm:text-xl",
955
+ className
956
+ ),
957
+ ...props
958
+ }
959
+ );
960
+ }
961
+ function AlertDialog({
962
+ ...props
963
+ }) {
964
+ return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Root, { "data-slot": "alert-dialog", ...props });
965
+ }
966
+ function AlertDialogTrigger({
967
+ ...props
968
+ }) {
969
+ return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
970
+ }
971
+ function AlertDialogPortal({
972
+ ...props
973
+ }) {
974
+ return /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Portal, { "data-slot": "alert-dialog-portal", ...props });
975
+ }
976
+ const AlertDialogOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => {
977
+ return /* @__PURE__ */ jsxRuntime.jsx(
978
+ AlertDialogPrimitive__namespace.Overlay,
979
+ {
980
+ ref,
981
+ "data-slot": "alert-dialog-overlay",
982
+ className: tooltip.cn(
983
+ "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",
984
+ className
985
+ ),
986
+ ...props
987
+ }
988
+ );
989
+ });
990
+ AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
991
+ function AlertDialogContent({
992
+ className,
993
+ ...props
994
+ }) {
995
+ return /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
996
+ /* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
997
+ /* @__PURE__ */ jsxRuntime.jsx(
998
+ AlertDialogPrimitive__namespace.Content,
999
+ {
1000
+ "data-slot": "alert-dialog-content",
1001
+ className: tooltip.cn(
1002
+ "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",
1003
+ className
1004
+ ),
1005
+ ...props
1006
+ }
1007
+ )
1008
+ ] });
1009
+ }
1010
+ function AlertDialogHeader({
1011
+ className,
1012
+ ...props
1013
+ }) {
1014
+ return /* @__PURE__ */ jsxRuntime.jsx(
1015
+ "div",
1016
+ {
1017
+ "data-slot": "alert-dialog-header",
1018
+ className: tooltip.cn("flex flex-col gap-2 text-center sm:text-left", className),
1019
+ ...props
1020
+ }
1021
+ );
1022
+ }
1023
+ function AlertDialogFooter({
1024
+ className,
1025
+ ...props
1026
+ }) {
1027
+ return /* @__PURE__ */ jsxRuntime.jsx(
1028
+ "div",
1029
+ {
1030
+ "data-slot": "alert-dialog-footer",
1031
+ className: tooltip.cn(
1032
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
1033
+ className
1034
+ ),
1035
+ ...props
1036
+ }
1037
+ );
1038
+ }
1039
+ function AlertDialogTitle({
1040
+ className,
1041
+ ...props
1042
+ }) {
1043
+ return /* @__PURE__ */ jsxRuntime.jsx(
1044
+ AlertDialogPrimitive__namespace.Title,
1045
+ {
1046
+ "data-slot": "alert-dialog-title",
1047
+ className: tooltip.cn("text-lg font-semibold", className),
1048
+ ...props
1049
+ }
1050
+ );
1051
+ }
1052
+ function AlertDialogDescription({
1053
+ className,
1054
+ ...props
1055
+ }) {
1056
+ return /* @__PURE__ */ jsxRuntime.jsx(
1057
+ AlertDialogPrimitive__namespace.Description,
1058
+ {
1059
+ "data-slot": "alert-dialog-description",
1060
+ className: tooltip.cn("text-muted-foreground text-sm", className),
1061
+ ...props
1062
+ }
1063
+ );
1064
+ }
1065
+ function AlertDialogAction({
1066
+ className,
1067
+ ...props
1068
+ }) {
1069
+ return /* @__PURE__ */ jsxRuntime.jsx(
1070
+ AlertDialogPrimitive__namespace.Action,
1071
+ {
1072
+ className: tooltip.cn(tooltip.buttonVariants(), className),
1073
+ ...props
1074
+ }
1075
+ );
1076
+ }
1077
+ function AlertDialogCancel({
1078
+ className,
1079
+ ...props
1080
+ }) {
1081
+ return /* @__PURE__ */ jsxRuntime.jsx(
1082
+ AlertDialogPrimitive__namespace.Cancel,
1083
+ {
1084
+ className: tooltip.cn(tooltip.buttonVariants({ variant: "outline" }), className),
1085
+ ...props
1086
+ }
1087
+ );
1088
+ }
1089
+ const ERROR_IMG_SRC = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";
1090
+ function ImageWithFallback(props) {
1091
+ const [didError, setDidError] = React.useState(false);
1092
+ const handleError = () => {
1093
+ setDidError(true);
1094
+ };
1095
+ const { src, alt, style, className, ...rest } = props;
1096
+ return didError ? /* @__PURE__ */ jsxRuntime.jsx(
1097
+ "div",
1098
+ {
1099
+ className: `inline-block bg-gray-100 text-center align-middle ${className ?? ""}`,
1100
+ style,
1101
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: ERROR_IMG_SRC, alt: "Error loading image", ...rest, "data-original-url": src }) })
1102
+ }
1103
+ ) : /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt, className, style, ...rest, onError: handleError });
1104
+ }
1105
+ function AspectRatio({
1106
+ ...props
1107
+ }) {
1108
+ return /* @__PURE__ */ jsxRuntime.jsx(AspectRatioPrimitive__namespace.Root, { "data-slot": "aspect-ratio", ...props });
1109
+ }
1110
+ const ResizableContext = React__namespace.createContext(null);
1111
+ const ResizablePanelGroup = ({
1112
+ children,
1113
+ className,
1114
+ direction = "horizontal",
1115
+ id,
1116
+ autoSaveId,
1117
+ storage,
1118
+ onLayout,
1119
+ ...props
1120
+ }) => {
1121
+ const [panels, setPanels] = React__namespace.useState(/* @__PURE__ */ new Map());
1122
+ const [handles, setHandles] = React__namespace.useState(/* @__PURE__ */ new Map());
1123
+ const [sizes, setSizes] = React__namespace.useState(/* @__PURE__ */ new Map());
1124
+ const [isDragging, setIsDragging] = React__namespace.useState(false);
1125
+ const containerRef = React__namespace.useRef(null);
1126
+ const getSortedItems = React__namespace.useCallback((items) => {
1127
+ if (!containerRef.current) return [];
1128
+ return Array.from(items.values()).sort((a, b) => {
1129
+ if (!a.ref.current || !b.ref.current) return 0;
1130
+ const position = a.ref.current.compareDocumentPosition(b.ref.current);
1131
+ if (position & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
1132
+ if (position & Node.DOCUMENT_POSITION_PRECEDING) return 1;
1133
+ return 0;
1134
+ });
1135
+ }, []);
1136
+ React__namespace.useEffect(() => {
1137
+ const sortedPanels = getSortedItems(panels);
1138
+ if (sortedPanels.length === 0) return;
1139
+ const uninitialized = sortedPanels.some((p) => !sizes.has(p.id));
1140
+ if (uninitialized) {
1141
+ const newSizes = new Map(sizes);
1142
+ const remainingSpace = 100;
1143
+ const defaultSizeCount = sortedPanels.filter((p) => p.defaultSize).length;
1144
+ let usedSpace = 0;
1145
+ sortedPanels.forEach((p) => {
1146
+ if (p.defaultSize) usedSpace += p.defaultSize;
1147
+ });
1148
+ const spaceForOthers = Math.max(0, remainingSpace - usedSpace);
1149
+ const countOthers = sortedPanels.length - defaultSizeCount;
1150
+ const sizeForOthers = countOthers > 0 ? spaceForOthers / countOthers : 0;
1151
+ sortedPanels.forEach((p) => {
1152
+ if (!newSizes.has(p.id)) {
1153
+ newSizes.set(p.id, p.defaultSize ?? sizeForOthers);
1154
+ }
1155
+ });
1156
+ setSizes(newSizes);
1157
+ }
1158
+ }, [panels, sizes, getSortedItems]);
1159
+ const registerPanel = React__namespace.useCallback((data) => {
1160
+ setPanels((prev) => {
1161
+ const next = new Map(prev);
1162
+ next.set(data.id, data);
1163
+ return next;
1164
+ });
1165
+ }, []);
1166
+ const unregisterPanel = React__namespace.useCallback((id2) => {
1167
+ setPanels((prev) => {
1168
+ const next = new Map(prev);
1169
+ next.delete(id2);
1170
+ return next;
1171
+ });
1172
+ setSizes((prev) => {
1173
+ const next = new Map(prev);
1174
+ next.delete(id2);
1175
+ return next;
1176
+ });
1177
+ }, []);
1178
+ const registerHandle = React__namespace.useCallback((data) => {
1179
+ setHandles((prev) => {
1180
+ const next = new Map(prev);
1181
+ next.set(data.id, data);
1182
+ return next;
1183
+ });
1184
+ }, []);
1185
+ const unregisterHandle = React__namespace.useCallback((id2) => {
1186
+ setHandles((prev) => {
1187
+ const next = new Map(prev);
1188
+ next.delete(id2);
1189
+ return next;
1190
+ });
1191
+ }, []);
1192
+ const startDragging = React__namespace.useCallback((handleId, event) => {
1193
+ var _a, _b;
1194
+ event.preventDefault();
1195
+ setIsDragging(true);
1196
+ const sortedPanels = getSortedItems(panels);
1197
+ const sortedHandles = getSortedItems(handles);
1198
+ const handleIndex = sortedHandles.findIndex((h) => h.id === handleId);
1199
+ if (handleIndex === -1) return;
1200
+ const leftPanel = sortedPanels[handleIndex];
1201
+ const rightPanel = sortedPanels[handleIndex + 1];
1202
+ if (!leftPanel || !rightPanel) return;
1203
+ const startX = "touches" in event ? event.touches[0].clientX : event.clientX;
1204
+ const startY = "touches" in event ? event.touches[0].clientY : event.clientY;
1205
+ const startSizeLeft = sizes.get(leftPanel.id) || 0;
1206
+ const startSizeRight = sizes.get(rightPanel.id) || 0;
1207
+ const containerSize = direction === "horizontal" ? ((_a = containerRef.current) == null ? void 0 : _a.offsetWidth) || 1 : ((_b = containerRef.current) == null ? void 0 : _b.offsetHeight) || 1;
1208
+ const onMove = (e) => {
1209
+ var _a2, _b2;
1210
+ const currentX = "touches" in e ? e.touches[0].clientX : e.clientX;
1211
+ const currentY = "touches" in e ? e.touches[0].clientY : e.clientY;
1212
+ const deltaPixels = direction === "horizontal" ? currentX - startX : currentY - startY;
1213
+ const deltaPercent = deltaPixels / containerSize * 100;
1214
+ let finalLeft = startSizeLeft + deltaPercent;
1215
+ let finalRight = startSizeRight - deltaPercent;
1216
+ if (leftPanel.minSize !== void 0 && finalLeft < leftPanel.minSize) {
1217
+ const diff = leftPanel.minSize - finalLeft;
1218
+ finalLeft = leftPanel.minSize;
1219
+ finalRight -= diff;
1220
+ }
1221
+ if (rightPanel.minSize !== void 0 && finalRight < rightPanel.minSize) {
1222
+ const diff = rightPanel.minSize - finalRight;
1223
+ finalRight = rightPanel.minSize;
1224
+ finalLeft -= diff;
1225
+ }
1226
+ if (leftPanel.maxSize !== void 0 && finalLeft > leftPanel.maxSize) {
1227
+ const diff = finalLeft - leftPanel.maxSize;
1228
+ finalLeft = leftPanel.maxSize;
1229
+ finalRight += diff;
1230
+ }
1231
+ if (rightPanel.maxSize !== void 0 && finalRight > rightPanel.maxSize) {
1232
+ const diff = finalRight - rightPanel.maxSize;
1233
+ finalRight = rightPanel.maxSize;
1234
+ finalLeft -= diff;
1235
+ }
1236
+ finalLeft = Math.max(0, Math.min(100, finalLeft));
1237
+ finalRight = Math.max(0, Math.min(100, finalRight));
1238
+ setSizes((prev) => {
1239
+ const next = new Map(prev);
1240
+ next.set(leftPanel.id, finalLeft);
1241
+ next.set(rightPanel.id, finalRight);
1242
+ return next;
1243
+ });
1244
+ (_a2 = leftPanel.onResize) == null ? void 0 : _a2.call(leftPanel, finalLeft);
1245
+ (_b2 = rightPanel.onResize) == null ? void 0 : _b2.call(rightPanel, finalRight);
1246
+ };
1247
+ const onUp = () => {
1248
+ setIsDragging(false);
1249
+ window.removeEventListener("mousemove", onMove);
1250
+ window.removeEventListener("mouseup", onUp);
1251
+ window.removeEventListener("touchmove", onMove);
1252
+ window.removeEventListener("touchend", onUp);
1253
+ if (onLayout) {
1254
+ onLayout(sortedPanels.map((p) => sizes.get(p.id) || 0));
1255
+ }
1256
+ };
1257
+ window.addEventListener("mousemove", onMove);
1258
+ window.addEventListener("mouseup", onUp);
1259
+ window.addEventListener("touchmove", onMove);
1260
+ window.addEventListener("touchend", onUp);
1261
+ }, [panels, handles, sizes, direction, getSortedItems, onLayout]);
1262
+ const getPanelStyle = React__namespace.useCallback((id2) => {
1263
+ const size = sizes.get(id2);
1264
+ if (size === void 0) return { flex: "1 1 0%", overflow: "hidden" };
1265
+ return { flex: `${size} 1 0%`, overflow: "hidden" };
1266
+ }, [sizes]);
1267
+ const contextValue = React__namespace.useMemo(() => ({
1268
+ direction,
1269
+ registerPanel,
1270
+ unregisterPanel,
1271
+ registerHandle,
1272
+ unregisterHandle,
1273
+ isDragging,
1274
+ startDragging,
1275
+ getPanelStyle
1276
+ }), [direction, registerPanel, unregisterPanel, registerHandle, unregisterHandle, isDragging, startDragging, getPanelStyle]);
1277
+ return /* @__PURE__ */ jsxRuntime.jsx(ResizableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
1278
+ "div",
1279
+ {
1280
+ ref: containerRef,
1281
+ "data-slot": "resizable-panel-group",
1282
+ "data-panel-group-direction": direction,
1283
+ className: tooltip.cn(
1284
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
1285
+ className
1286
+ ),
1287
+ ...props,
1288
+ children
1289
+ }
1290
+ ) });
1291
+ };
1292
+ const ResizablePanel = ({
1293
+ className,
1294
+ defaultSize,
1295
+ minSize = 0,
1296
+ maxSize = 100,
1297
+ collapsible,
1298
+ collapsedSize,
1299
+ onCollapse,
1300
+ onExpand,
1301
+ onResize,
1302
+ order,
1303
+ tagName,
1304
+ id: propId,
1305
+ children,
1306
+ ...props
1307
+ }) => {
1308
+ const context = React__namespace.useContext(ResizableContext);
1309
+ const ref = React__namespace.useRef(null);
1310
+ const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
1311
+ const id = propId || generatedId;
1312
+ const registerPanel = context == null ? void 0 : context.registerPanel;
1313
+ const unregisterPanel = context == null ? void 0 : context.unregisterPanel;
1314
+ React__namespace.useLayoutEffect(() => {
1315
+ if (!registerPanel || !unregisterPanel) return;
1316
+ registerPanel({
1317
+ id,
1318
+ ref,
1319
+ defaultSize,
1320
+ minSize,
1321
+ maxSize,
1322
+ collapsible,
1323
+ onCollapse,
1324
+ onExpand,
1325
+ onResize
1326
+ });
1327
+ return () => unregisterPanel(id);
1328
+ }, [registerPanel, unregisterPanel, id, defaultSize, minSize, maxSize, collapsible, onCollapse, onExpand, onResize]);
1329
+ if (!context) {
1330
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("flex-1", className), ...props, children });
1331
+ }
1332
+ return /* @__PURE__ */ jsxRuntime.jsx(
1333
+ "div",
1334
+ {
1335
+ ref,
1336
+ "data-slot": "resizable-panel",
1337
+ className: tooltip.cn("relative transition-[flex-grow] duration-0", className),
1338
+ style: context.getPanelStyle(id),
1339
+ ...props,
1340
+ children
1341
+ }
1342
+ );
1343
+ };
1344
+ const ResizableHandle = ({
1345
+ withHandle,
1346
+ className,
1347
+ id: propId,
1348
+ tagName,
1349
+ ...props
1350
+ }) => {
1351
+ const context = React__namespace.useContext(ResizableContext);
1352
+ const ref = React__namespace.useRef(null);
1353
+ const [generatedId] = React__namespace.useState(() => Math.random().toString(36).substr(2, 9));
1354
+ const id = propId || generatedId;
1355
+ const registerHandle = context == null ? void 0 : context.registerHandle;
1356
+ const unregisterHandle = context == null ? void 0 : context.unregisterHandle;
1357
+ React__namespace.useLayoutEffect(() => {
1358
+ if (!registerHandle || !unregisterHandle) return;
1359
+ registerHandle({ id, ref });
1360
+ return () => unregisterHandle(id);
1361
+ }, [registerHandle, unregisterHandle, id]);
1362
+ const handleMouseDown = (e) => {
1363
+ if (context) {
1364
+ context.startDragging(id, e);
1365
+ }
1366
+ };
1367
+ if (!context) return null;
1368
+ return /* @__PURE__ */ jsxRuntime.jsx(
1369
+ "div",
1370
+ {
1371
+ ref,
1372
+ "data-slot": "resizable-handle",
1373
+ className: tooltip.cn(
1374
+ "bg-border relative flex items-center justify-center focus-visible:outline-hidden",
1375
+ "touch-none select-none",
1376
+ context.direction === "vertical" ? "h-px w-full cursor-row-resize after:left-0 after:h-1 after:w-full after:-translate-y-1/2 hover:after:h-4" : "w-px h-full cursor-col-resize after:top-0 after:w-1 after:h-full after:-translate-x-1/2 hover:after:w-4",
1377
+ "after:absolute after:z-10",
1378
+ className
1379
+ ),
1380
+ onMouseDown: handleMouseDown,
1381
+ onTouchStart: handleMouseDown,
1382
+ ...props,
1383
+ children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVerticalIcon, { className: "size-2.5" }) })
1384
+ }
1385
+ );
1386
+ };
1387
+ function NavigationMenu({
1388
+ className,
1389
+ children,
1390
+ viewport = true,
1391
+ ...props
1392
+ }) {
1393
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1394
+ NavigationMenuPrimitive__namespace.Root,
1395
+ {
1396
+ "data-slot": "navigation-menu",
1397
+ className: tooltip.cn(
1398
+ "relative z-10 flex w-full flex-1 items-center justify-center",
1399
+ className
1400
+ ),
1401
+ ...props,
1402
+ children: [
1403
+ children,
1404
+ viewport && /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
1405
+ ]
1406
+ }
1407
+ );
1408
+ }
1409
+ function NavigationMenuList({
1410
+ className,
1411
+ ...props
1412
+ }) {
1413
+ return /* @__PURE__ */ jsxRuntime.jsx(
1414
+ NavigationMenuPrimitive__namespace.List,
1415
+ {
1416
+ "data-slot": "navigation-menu-list",
1417
+ className: tooltip.cn(
1418
+ "group flex flex-1 list-none items-center justify-center gap-1",
1419
+ className
1420
+ ),
1421
+ ...props
1422
+ }
1423
+ );
1424
+ }
1425
+ function NavigationMenuItem({
1426
+ className,
1427
+ ...props
1428
+ }) {
1429
+ return /* @__PURE__ */ jsxRuntime.jsx(
1430
+ NavigationMenuPrimitive__namespace.Item,
1431
+ {
1432
+ "data-slot": "navigation-menu-item",
1433
+ className: tooltip.cn("relative", className),
1434
+ ...props
1435
+ }
1436
+ );
1437
+ }
1438
+ const navigationMenuTriggerStyle = classVarianceAuthority.cva(
1439
+ "group inline-flex h-10 w-max items-center justify-center rounded-[var(--radius)] bg-background px-4 py-2 text-[var(--text-p)] font-[var(--font-weight-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]:bg-accent/50 outline-none focus-visible:ring-2 focus-visible:ring-ring"
1440
+ );
1441
+ function NavigationMenuTrigger({
1442
+ className,
1443
+ children,
1444
+ ...props
1445
+ }) {
1446
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1447
+ NavigationMenuPrimitive__namespace.Trigger,
1448
+ {
1449
+ "data-slot": "navigation-menu-trigger",
1450
+ className: tooltip.cn(navigationMenuTriggerStyle(), "group", className),
1451
+ ...props,
1452
+ children: [
1453
+ children,
1454
+ " ",
1455
+ /* @__PURE__ */ jsxRuntime.jsx(
1456
+ lucideReact.ChevronDownIcon,
1457
+ {
1458
+ className: "relative top-[1px] ml-1 size-3 group-data-[state=open]:rotate-180",
1459
+ "aria-hidden": "true"
1460
+ }
1461
+ )
1462
+ ]
1463
+ }
1464
+ );
1465
+ }
1466
+ function NavigationMenuContent({
1467
+ className,
1468
+ ...props
1469
+ }) {
1470
+ return /* @__PURE__ */ jsxRuntime.jsx(
1471
+ NavigationMenuPrimitive__namespace.Content,
1472
+ {
1473
+ "data-slot": "navigation-menu-content",
1474
+ className: tooltip.cn(
1475
+ "left-0 top-0 w-full md:w-auto",
1476
+ className
1477
+ ),
1478
+ ...props
1479
+ }
1480
+ );
1481
+ }
1482
+ function NavigationMenuViewport({
1483
+ className,
1484
+ ...props
1485
+ }) {
1486
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("absolute left-0 top-full flex justify-center w-full"), children: /* @__PURE__ */ jsxRuntime.jsx(
1487
+ NavigationMenuPrimitive__namespace.Viewport,
1488
+ {
1489
+ "data-slot": "navigation-menu-viewport",
1490
+ className: tooltip.cn(
1491
+ "origin-top-center relative mt-1.5 overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-lg",
1492
+ className
1493
+ ),
1494
+ ...props
1495
+ }
1496
+ ) });
1497
+ }
1498
+ function NavigationMenuLink({
1499
+ className,
1500
+ ...props
1501
+ }) {
1502
+ return /* @__PURE__ */ jsxRuntime.jsx(
1503
+ NavigationMenuPrimitive__namespace.Link,
1504
+ {
1505
+ "data-slot": "navigation-menu-link",
1506
+ className: tooltip.cn(
1507
+ "block select-none space-y-1 rounded-[var(--radius)] p-3 leading-none no-underline outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
1508
+ className
1509
+ ),
1510
+ ...props
1511
+ }
1512
+ );
1513
+ }
1514
+ function NavigationMenuIndicator({
1515
+ className,
1516
+ ...props
1517
+ }) {
1518
+ return /* @__PURE__ */ jsxRuntime.jsx(
1519
+ NavigationMenuPrimitive__namespace.Indicator,
1520
+ {
1521
+ "data-slot": "navigation-menu-indicator",
1522
+ className: tooltip.cn(
1523
+ "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
1524
+ className
1525
+ ),
1526
+ ...props,
1527
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
1528
+ }
1529
+ );
1530
+ }
1531
+ function Pagination({ className, ...props }) {
1532
+ return /* @__PURE__ */ jsxRuntime.jsx(
1533
+ "nav",
1534
+ {
1535
+ role: "navigation",
1536
+ "aria-label": "pagination",
1537
+ "data-slot": "pagination",
1538
+ className: tooltip.cn("mx-auto flex w-full justify-center", className),
1539
+ ...props
1540
+ }
1541
+ );
1542
+ }
1543
+ function PaginationContent({
1544
+ className,
1545
+ ...props
1546
+ }) {
1547
+ return /* @__PURE__ */ jsxRuntime.jsx(
1548
+ "ul",
1549
+ {
1550
+ "data-slot": "pagination-content",
1551
+ className: tooltip.cn("flex flex-row items-center gap-1", className),
1552
+ ...props
1553
+ }
1554
+ );
1555
+ }
1556
+ function PaginationItem({ ...props }) {
1557
+ return /* @__PURE__ */ jsxRuntime.jsx("li", { "data-slot": "pagination-item", ...props });
1558
+ }
1559
+ function PaginationLink({
1560
+ className,
1561
+ isActive,
1562
+ size = "icon",
1563
+ ...props
1564
+ }) {
1565
+ return /* @__PURE__ */ jsxRuntime.jsx(
1566
+ "a",
1567
+ {
1568
+ "aria-current": isActive ? "page" : void 0,
1569
+ "data-slot": "pagination-link",
1570
+ "data-active": isActive,
1571
+ className: tooltip.cn(
1572
+ tooltip.buttonVariants({
1573
+ variant: isActive ? "outline" : "ghost",
1574
+ size
1575
+ }),
1576
+ className
1577
+ ),
1578
+ ...props
1579
+ }
1580
+ );
1581
+ }
1582
+ function PaginationPrevious({
1583
+ className,
1584
+ ...props
1585
+ }) {
1586
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1587
+ PaginationLink,
1588
+ {
1589
+ "aria-label": "Go to previous page",
1590
+ size: "default",
1591
+ className: tooltip.cn("gap-1 px-2.5 sm:pl-2.5", className),
1592
+ ...props,
1593
+ children: [
1594
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, {}),
1595
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Previous" })
1596
+ ]
1597
+ }
1598
+ );
1599
+ }
1600
+ function PaginationNext({
1601
+ className,
1602
+ ...props
1603
+ }) {
1604
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1605
+ PaginationLink,
1606
+ {
1607
+ "aria-label": "Go to next page",
1608
+ size: "default",
1609
+ className: tooltip.cn("gap-1 px-2.5 sm:pr-2.5", className),
1610
+ ...props,
1611
+ children: [
1612
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:block", children: "Next" }),
1613
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, {})
1614
+ ]
1615
+ }
1616
+ );
1617
+ }
1618
+ function PaginationEllipsis({
1619
+ className,
1620
+ ...props
1621
+ }) {
1622
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1623
+ "span",
1624
+ {
1625
+ "aria-hidden": true,
1626
+ "data-slot": "pagination-ellipsis",
1627
+ className: tooltip.cn("flex size-9 items-center justify-center", className),
1628
+ ...props,
1629
+ children: [
1630
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontalIcon, { className: "size-4" }),
1631
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
1632
+ ]
1633
+ }
1634
+ );
1635
+ }
1636
+ const toggleVariants = classVarianceAuthority.cva(
1637
+ "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",
1638
+ {
1639
+ variants: {
1640
+ variant: {
1641
+ default: "bg-transparent",
1642
+ outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
1643
+ },
1644
+ size: {
1645
+ default: "h-9 px-2 min-w-9",
1646
+ sm: "h-8 px-1.5 min-w-8",
1647
+ lg: "h-10 px-2.5 min-w-10"
1648
+ }
1649
+ },
1650
+ defaultVariants: {
1651
+ variant: "default",
1652
+ size: "default"
1653
+ }
1654
+ }
1655
+ );
1656
+ const Toggle = React__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1657
+ TogglePrimitive__namespace.Root,
1658
+ {
1659
+ ref,
1660
+ "data-slot": "toggle",
1661
+ className: tooltip.cn(toggleVariants({ variant, size, className })),
1662
+ ...props
1663
+ }
1664
+ ));
1665
+ Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
1666
+ const ToggleGroupContext = React__namespace.createContext({
1667
+ size: "default",
1668
+ variant: "default"
1669
+ });
1670
+ const ToggleGroup = React__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1671
+ ToggleGroupPrimitive__namespace.Root,
1672
+ {
1673
+ ref,
1674
+ "data-slot": "toggle-group",
1675
+ "data-variant": variant,
1676
+ "data-size": size,
1677
+ className: tooltip.cn(
1678
+ "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
1679
+ className
1680
+ ),
1681
+ ...props,
1682
+ children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
1683
+ }
1684
+ ));
1685
+ ToggleGroup.displayName = ToggleGroupPrimitive__namespace.Root.displayName;
1686
+ const ToggleGroupItem = React__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
1687
+ const context = React__namespace.useContext(ToggleGroupContext);
1688
+ return /* @__PURE__ */ jsxRuntime.jsx(
1689
+ ToggleGroupPrimitive__namespace.Item,
1690
+ {
1691
+ ref,
1692
+ "data-slot": "toggle-group-item",
1693
+ "data-variant": context.variant || variant,
1694
+ "data-size": context.size || size,
1695
+ className: tooltip.cn(
1696
+ toggleVariants({
1697
+ variant: context.variant || variant,
1698
+ size: context.size || size
1699
+ }),
1700
+ "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",
1701
+ className
1702
+ ),
1703
+ ...props,
1704
+ children
1705
+ }
1706
+ );
1707
+ });
1708
+ ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
1709
+ function InputOTP({
1710
+ className,
1711
+ containerClassName,
1712
+ ...props
1713
+ }) {
1714
+ return /* @__PURE__ */ jsxRuntime.jsx(
1715
+ inputOtp.OTPInput,
1716
+ {
1717
+ "data-slot": "input-otp",
1718
+ containerClassName: tooltip.cn(
1719
+ "flex items-center gap-2 has-disabled:opacity-50",
1720
+ containerClassName
1721
+ ),
1722
+ className: tooltip.cn("disabled:cursor-not-allowed", className),
1723
+ ...props
1724
+ }
1725
+ );
1726
+ }
1727
+ function InputOTPGroup({ className, ...props }) {
1728
+ return /* @__PURE__ */ jsxRuntime.jsx(
1729
+ "div",
1730
+ {
1731
+ "data-slot": "input-otp-group",
1732
+ className: tooltip.cn("flex items-center gap-1", className),
1733
+ ...props
1734
+ }
1735
+ );
1736
+ }
1737
+ function InputOTPSlot({
1738
+ index,
1739
+ className,
1740
+ size = "md",
1741
+ ...props
1742
+ }) {
1743
+ const inputOTPContext = React__namespace.useContext(inputOtp.OTPInputContext);
1744
+ const { char, hasFakeCaret, isActive } = (inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) ?? {};
1745
+ const sizeClasses = {
1746
+ sm: "h-8 w-8 text-sm",
1747
+ md: "h-10 w-10 text-base",
1748
+ lg: "h-12 w-12 text-lg"
1749
+ };
1750
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1751
+ "div",
1752
+ {
1753
+ "data-slot": "input-otp-slot",
1754
+ "data-active": isActive,
1755
+ className: tooltip.cn(
1756
+ "data-[active=true]:border-primary data-[active=true]:ring-primary/20 data-[active=true]:aria-invalid:ring-destructive/20 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex items-center justify-center border border-border rounded-[var(--radius)] bg-background transition-all outline-none data-[active=true]:z-10 data-[active=true]:ring-2",
1757
+ sizeClasses[size],
1758
+ className
1759
+ ),
1760
+ ...props,
1761
+ children: [
1762
+ char,
1763
+ hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
1764
+ ]
1765
+ }
1766
+ );
1767
+ }
1768
+ function InputOTPSeparator({ ...props }) {
1769
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MinusIcon, {}) });
1770
+ }
1771
+ const Form = reactHookForm.FormProvider;
1772
+ const FormFieldContext = React__namespace.createContext(
1773
+ {}
1774
+ );
1775
+ const FormField = ({
1776
+ ...props
1777
+ }) => {
1778
+ return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
1779
+ };
1780
+ const useFormField = () => {
1781
+ const fieldContext = React__namespace.useContext(FormFieldContext);
1782
+ const itemContext = React__namespace.useContext(FormItemContext);
1783
+ const { getFieldState } = reactHookForm.useFormContext();
1784
+ const formState = reactHookForm.useFormState({ name: fieldContext.name });
1785
+ const fieldState = getFieldState(
1786
+ fieldContext.name,
1787
+ formState
1788
+ );
1789
+ if (!fieldContext) {
1790
+ throw new Error(
1791
+ "useFormField should be used within <FormField>"
1792
+ );
1793
+ }
1794
+ const { id } = itemContext;
1795
+ return {
1796
+ id,
1797
+ name: fieldContext.name,
1798
+ formItemId: `${id}-form-item`,
1799
+ formDescriptionId: `${id}-form-item-description`,
1800
+ formMessageId: `${id}-form-item-message`,
1801
+ ...fieldState
1802
+ };
1803
+ };
1804
+ const FormItemContext = React__namespace.createContext(
1805
+ {}
1806
+ );
1807
+ function FormItem({
1808
+ className,
1809
+ ...props
1810
+ }) {
1811
+ const id = React__namespace.useId();
1812
+ return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx(
1813
+ "div",
1814
+ {
1815
+ "data-slot": "form-item",
1816
+ className: tooltip.cn("grid gap-2", className),
1817
+ ...props
1818
+ }
1819
+ ) });
1820
+ }
1821
+ function FormLabel({
1822
+ className,
1823
+ ...props
1824
+ }) {
1825
+ const { error, formItemId } = useFormField();
1826
+ return /* @__PURE__ */ jsxRuntime.jsx(
1827
+ Label,
1828
+ {
1829
+ "data-slot": "form-label",
1830
+ "data-error": !!error,
1831
+ className: tooltip.cn(
1832
+ "data-[error=true]:text-destructive",
1833
+ className
1834
+ ),
1835
+ htmlFor: formItemId,
1836
+ ...props
1837
+ }
1838
+ );
1839
+ }
1840
+ function FormControl({
1841
+ ...props
1842
+ }) {
1843
+ const {
1844
+ error,
1845
+ formItemId,
1846
+ formDescriptionId,
1847
+ formMessageId
1848
+ } = useFormField();
1849
+ return /* @__PURE__ */ jsxRuntime.jsx(
1850
+ reactSlot.Slot,
1851
+ {
1852
+ "data-slot": "form-control",
1853
+ id: formItemId,
1854
+ "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
1855
+ "aria-invalid": !!error,
1856
+ ...props
1857
+ }
1858
+ );
1859
+ }
1860
+ function FormDescription({
1861
+ className,
1862
+ ...props
1863
+ }) {
1864
+ const { formDescriptionId } = useFormField();
1865
+ return /* @__PURE__ */ jsxRuntime.jsx(
1866
+ "p",
1867
+ {
1868
+ "data-slot": "form-description",
1869
+ id: formDescriptionId,
1870
+ className: tooltip.cn("text-muted-foreground text-sm", className),
1871
+ ...props
1872
+ }
1873
+ );
1874
+ }
1875
+ function FormMessage({
1876
+ className,
1877
+ ...props
1878
+ }) {
1879
+ const { error, formMessageId } = useFormField();
1880
+ const body = error ? String((error == null ? void 0 : error.message) ?? "") : props.children;
1881
+ if (!body) {
1882
+ return null;
1883
+ }
1884
+ return /* @__PURE__ */ jsxRuntime.jsx(
1885
+ "p",
1886
+ {
1887
+ "data-slot": "form-message",
1888
+ id: formMessageId,
1889
+ className: tooltip.cn("text-destructive text-sm", className),
1890
+ ...props,
1891
+ children: body
1892
+ }
1893
+ );
1894
+ }
1895
+ function Calendar({
1896
+ className,
1897
+ classNames,
1898
+ showOutsideDays = true,
1899
+ captionLayout = "label",
1900
+ buttonVariant = "ghost",
1901
+ formatters,
1902
+ components,
1903
+ ...props
1904
+ }) {
1905
+ const defaultClassNames = reactDayPicker.getDefaultClassNames();
1906
+ return /* @__PURE__ */ jsxRuntime.jsx(
1907
+ reactDayPicker.DayPicker,
1908
+ {
1909
+ showOutsideDays,
1910
+ className: tooltip.cn(
1911
+ "bg-background group/calendar p-4 [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent font-sans",
1912
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
1913
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
1914
+ className
1915
+ ),
1916
+ captionLayout,
1917
+ formatters,
1918
+ classNames: {
1919
+ root: tooltip.cn("w-fit", defaultClassNames.root),
1920
+ months: tooltip.cn(
1921
+ "flex gap-6 flex-col md:flex-row relative",
1922
+ defaultClassNames.months
1923
+ ),
1924
+ month: tooltip.cn("flex flex-col w-full gap-5", defaultClassNames.month),
1925
+ nav: tooltip.cn(
1926
+ "flex items-center gap-2 w-full absolute top-0 inset-x-0 justify-between",
1927
+ defaultClassNames.nav
1928
+ ),
1929
+ button_previous: tooltip.cn(
1930
+ tooltip.buttonVariants({ variant: buttonVariant }),
1931
+ "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
1932
+ defaultClassNames.button_previous
1933
+ ),
1934
+ button_next: tooltip.cn(
1935
+ tooltip.buttonVariants({ variant: buttonVariant }),
1936
+ "size-(--cell-size) aria-disabled:opacity-40 p-0 select-none hover:bg-accent/50 transition-colors duration-200",
1937
+ defaultClassNames.button_next
1938
+ ),
1939
+ month_caption: tooltip.cn(
1940
+ "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
1941
+ defaultClassNames.month_caption
1942
+ ),
1943
+ dropdowns: tooltip.cn(
1944
+ "w-full flex items-center justify-center h-(--cell-size) gap-2",
1945
+ defaultClassNames.dropdowns
1946
+ ),
1947
+ dropdown_root: tooltip.cn(
1948
+ "relative rounded-[var(--radius)] hover:bg-accent transition-colors",
1949
+ defaultClassNames.dropdown_root
1950
+ ),
1951
+ dropdown: tooltip.cn(
1952
+ "absolute bg-popover inset-0 opacity-0 cursor-pointer",
1953
+ defaultClassNames.dropdown
1954
+ ),
1955
+ caption_label: tooltip.cn(
1956
+ "select-none font-[family-name:var(--font-family,Roboto)] tracking-tight hover:bg-accent hover:text-accent-foreground transition-all duration-200 rounded-[var(--radius)] px-2 py-1",
1957
+ captionLayout === "label" ? "text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)]" : "flex items-center gap-1.5 text-[length:var(--calendar-caption-size)] font-[number:var(--font-weight-semibold)] [&>svg]:text-muted-foreground [&>svg]:size-4",
1958
+ defaultClassNames.caption_label
1959
+ ),
1960
+ table: "w-full border-collapse mt-1",
1961
+ weekdays: tooltip.cn("flex gap-1", defaultClassNames.weekdays),
1962
+ weekday: tooltip.cn(
1963
+ "text-muted-foreground rounded-(--cell-radius) flex-1 select-none text-[length:var(--calendar-weekday-size)] font-[number:var(--font-weight-medium)] uppercase tracking-wider",
1964
+ defaultClassNames.weekday
1965
+ ),
1966
+ week: tooltip.cn("flex w-full gap-1", defaultClassNames.week),
1967
+ week_number_header: tooltip.cn(
1968
+ "select-none w-(--cell-size)",
1969
+ defaultClassNames.week_number_header
1970
+ ),
1971
+ week_number: tooltip.cn(
1972
+ "select-none text-muted-foreground text-[length:var(--calendar-weekday-size)]",
1973
+ defaultClassNames.week_number
1974
+ ),
1975
+ day: tooltip.cn(
1976
+ "relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none",
1977
+ props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
1978
+ defaultClassNames.day
1979
+ ),
1980
+ range_start: tooltip.cn(
1981
+ "rounded-l-(--cell-radius) bg-accent/50 relative after:bg-accent/50 after:absolute after:inset-y-0 after:w-2 after:right-0 -z-0 isolate",
1982
+ defaultClassNames.range_start
1983
+ ),
1984
+ range_middle: tooltip.cn(
1985
+ "rounded-none bg-accent/30",
1986
+ defaultClassNames.range_middle
1987
+ ),
1988
+ range_end: tooltip.cn(
1989
+ "rounded-r-(--cell-radius) bg-accent/50 relative after:bg-accent/50 after:absolute after:inset-y-0 after:w-2 after:left-0 -z-0 isolate",
1990
+ defaultClassNames.range_end
1991
+ ),
1992
+ today: tooltip.cn(
1993
+ "bg-accent/60 text-accent-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none font-[number:var(--font-weight-semibold)]",
1994
+ defaultClassNames.today
1995
+ ),
1996
+ outside: tooltip.cn(
1997
+ "text-muted-foreground/40 aria-selected:text-muted-foreground/40",
1998
+ defaultClassNames.outside
1999
+ ),
2000
+ disabled: tooltip.cn(
2001
+ "text-muted-foreground/30 opacity-40",
2002
+ defaultClassNames.disabled
2003
+ ),
2004
+ hidden: tooltip.cn("invisible", defaultClassNames.hidden),
2005
+ ...classNames
2006
+ },
2007
+ components: {
2008
+ Root: ({ className: className2, rootRef, ...props2 }) => {
2009
+ return /* @__PURE__ */ jsxRuntime.jsx(
2010
+ "div",
2011
+ {
2012
+ "data-slot": "calendar",
2013
+ ref: rootRef,
2014
+ className: tooltip.cn(className2),
2015
+ ...props2
2016
+ }
2017
+ );
2018
+ },
2019
+ Chevron: ({ className: className2, orientation, ...props2 }) => {
2020
+ if (orientation === "left") {
2021
+ return /* @__PURE__ */ jsxRuntime.jsx(
2022
+ lucideReact.ChevronLeft,
2023
+ {
2024
+ className: tooltip.cn("size-5 transition-transform group-hover:scale-110", className2),
2025
+ ...props2
2026
+ }
2027
+ );
2028
+ }
2029
+ if (orientation === "right") {
2030
+ return /* @__PURE__ */ jsxRuntime.jsx(
2031
+ lucideReact.ChevronRight,
2032
+ {
2033
+ className: tooltip.cn("size-5 transition-transform group-hover:scale-110", className2),
2034
+ ...props2
2035
+ }
2036
+ );
2037
+ }
2038
+ return /* @__PURE__ */ jsxRuntime.jsx(
2039
+ lucideReact.ChevronDown,
2040
+ {
2041
+ className: tooltip.cn("size-4", className2),
2042
+ ...props2
2043
+ }
2044
+ );
2045
+ },
2046
+ DayButton: CalendarDayButton,
2047
+ WeekNumber: ({ children, ...props2 }) => {
2048
+ return /* @__PURE__ */ jsxRuntime.jsx("td", { ...props2, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center font-[number:var(--font-weight-medium)]", children }) });
2049
+ },
2050
+ ...components
2051
+ },
2052
+ ...props
2053
+ }
2054
+ );
2055
+ }
2056
+ function CalendarDayButton({
2057
+ className,
2058
+ day,
2059
+ modifiers,
2060
+ ...props
2061
+ }) {
2062
+ const defaultClassNames = reactDayPicker.getDefaultClassNames();
2063
+ const ref = React__namespace.useRef(null);
2064
+ React__namespace.useEffect(() => {
2065
+ var _a;
2066
+ if (modifiers.focused) (_a = ref.current) == null ? void 0 : _a.focus();
2067
+ }, [modifiers.focused]);
2068
+ return /* @__PURE__ */ jsxRuntime.jsx(
2069
+ tooltip.Button,
2070
+ {
2071
+ ref,
2072
+ variant: "ghost",
2073
+ size: "icon",
2074
+ "data-day": day.date.toLocaleDateString(),
2075
+ "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
2076
+ "data-range-start": modifiers.range_start,
2077
+ "data-range-end": modifiers.range_end,
2078
+ "data-range-middle": modifiers.range_middle,
2079
+ className: tooltip.cn(
2080
+ "relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col items-center justify-center gap-1 border-0 leading-none transition-all duration-200 cursor-pointer disabled:cursor-not-allowed",
2081
+ "text-[length:var(--calendar-day-size)] font-[number:var(--font-weight-regular)]",
2082
+ "hover:bg-accent/70 hover:text-accent-foreground hover:scale-105",
2083
+ "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[selected-single=true]:font-[number:var(--font-weight-semibold)] data-[selected-single=true]:shadow-sm",
2084
+ "data-[range-middle=true]:bg-accent/50 data-[range-middle=true]:text-foreground",
2085
+ "data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-start=true]:font-[number:var(--font-weight-semibold)] data-[range-start=true]:shadow-sm",
2086
+ "data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-end=true]:font-[number:var(--font-weight-semibold)] data-[range-end=true]:shadow-sm",
2087
+ "group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 group-data-[focused=true]/day:ring-2 group-data-[focused=true]/day:ring-offset-2 group-data-[focused=true]/day:ring-offset-background",
2088
+ "data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius)",
2089
+ "data-[range-middle=true]:rounded-none",
2090
+ "data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius)",
2091
+ "[&>span]:opacity-80",
2092
+ defaultClassNames.day,
2093
+ className
2094
+ ),
2095
+ ...props,
2096
+ children: day.date.getDate()
2097
+ }
2098
+ );
2099
+ }
2100
+ function Sheet({ ...props }) {
2101
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
2102
+ }
2103
+ function SheetTrigger({
2104
+ ...props
2105
+ }) {
2106
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { "data-slot": "sheet-trigger", ...props });
2107
+ }
2108
+ function SheetPortal({
2109
+ ...props
2110
+ }) {
2111
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
2112
+ }
2113
+ const SheetOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2114
+ DialogPrimitive__namespace.Overlay,
2115
+ {
2116
+ className: tooltip.cn(
2117
+ "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",
2118
+ className
2119
+ ),
2120
+ ...props,
2121
+ ref
2122
+ }
2123
+ ));
2124
+ SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
2125
+ function SheetContent({
2126
+ className,
2127
+ children,
2128
+ side = "right",
2129
+ ...props
2130
+ }) {
2131
+ return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
2132
+ /* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
2133
+ /* @__PURE__ */ jsxRuntime.jsxs(
2134
+ DialogPrimitive__namespace.Content,
2135
+ {
2136
+ "data-slot": "sheet-content",
2137
+ className: tooltip.cn(
2138
+ "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",
2139
+ 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",
2140
+ 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",
2141
+ 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",
2142
+ 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",
2143
+ className
2144
+ ),
2145
+ ...props,
2146
+ children: [
2147
+ children,
2148
+ /* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { 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", children: [
2149
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4" }),
2150
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
2151
+ ] })
2152
+ ]
2153
+ }
2154
+ )
2155
+ ] });
2156
+ }
2157
+ function SheetHeader({ className, ...props }) {
2158
+ return /* @__PURE__ */ jsxRuntime.jsx(
2159
+ "div",
2160
+ {
2161
+ "data-slot": "sheet-header",
2162
+ className: tooltip.cn("flex flex-col gap-1.5 px-6 pt-6", className),
2163
+ ...props
2164
+ }
2165
+ );
2166
+ }
2167
+ function SheetFooter({ className, ...props }) {
2168
+ return /* @__PURE__ */ jsxRuntime.jsx(
2169
+ "div",
2170
+ {
2171
+ "data-slot": "sheet-footer",
2172
+ className: tooltip.cn("mt-auto flex flex-col gap-2 px-6 pb-6", className),
2173
+ ...props
2174
+ }
2175
+ );
2176
+ }
2177
+ function SheetTitle({
2178
+ className,
2179
+ ...props
2180
+ }) {
2181
+ return /* @__PURE__ */ jsxRuntime.jsx(
2182
+ DialogPrimitive__namespace.Title,
2183
+ {
2184
+ "data-slot": "sheet-title",
2185
+ className: tooltip.cn("text-foreground font-semibold", className),
2186
+ ...props
2187
+ }
2188
+ );
2189
+ }
2190
+ function SheetDescription({
2191
+ className,
2192
+ ...props
2193
+ }) {
2194
+ return /* @__PURE__ */ jsxRuntime.jsx(
2195
+ DialogPrimitive__namespace.Description,
2196
+ {
2197
+ "data-slot": "sheet-description",
2198
+ className: tooltip.cn("text-muted-foreground text-sm", className),
2199
+ ...props
2200
+ }
2201
+ );
2202
+ }
2203
+ function Drawer({
2204
+ ...props
2205
+ }) {
2206
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
2207
+ }
2208
+ function DrawerTrigger({
2209
+ ...props
2210
+ }) {
2211
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { "data-slot": "drawer-trigger", ...props });
2212
+ }
2213
+ function DrawerPortal({
2214
+ ...props
2215
+ }) {
2216
+ return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
2217
+ }
2218
+ const DrawerOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => {
2219
+ return /* @__PURE__ */ jsxRuntime.jsx(
2220
+ vaul.Drawer.Overlay,
2221
+ {
2222
+ ref,
2223
+ "data-slot": "drawer-overlay",
2224
+ className: tooltip.cn(
2225
+ "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",
2226
+ className
2227
+ ),
2228
+ ...props
2229
+ }
2230
+ );
2231
+ });
2232
+ DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
2233
+ function DrawerContent({
2234
+ className,
2235
+ children,
2236
+ ...props
2237
+ }) {
2238
+ return /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
2239
+ /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
2240
+ /* @__PURE__ */ jsxRuntime.jsxs(
2241
+ vaul.Drawer.Content,
2242
+ {
2243
+ "data-slot": "drawer-content",
2244
+ className: tooltip.cn(
2245
+ "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
2246
+ "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",
2247
+ "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",
2248
+ "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",
2249
+ "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",
2250
+ className
2251
+ ),
2252
+ ...props,
2253
+ children: [
2254
+ /* @__PURE__ */ jsxRuntime.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" }),
2255
+ children
2256
+ ]
2257
+ }
2258
+ )
2259
+ ] });
2260
+ }
2261
+ function DrawerHeader({ className, ...props }) {
2262
+ return /* @__PURE__ */ jsxRuntime.jsx(
2263
+ "div",
2264
+ {
2265
+ "data-slot": "drawer-header",
2266
+ className: tooltip.cn("flex flex-col gap-1.5 p-4", className),
2267
+ ...props
2268
+ }
2269
+ );
2270
+ }
2271
+ function DrawerFooter({ className, ...props }) {
2272
+ return /* @__PURE__ */ jsxRuntime.jsx(
2273
+ "div",
2274
+ {
2275
+ "data-slot": "drawer-footer",
2276
+ className: tooltip.cn("mt-auto flex flex-col gap-2 p-4", className),
2277
+ ...props
2278
+ }
2279
+ );
2280
+ }
2281
+ function DrawerTitle({
2282
+ className,
2283
+ ...props
2284
+ }) {
2285
+ return /* @__PURE__ */ jsxRuntime.jsx(
2286
+ vaul.Drawer.Title,
2287
+ {
2288
+ "data-slot": "drawer-title",
2289
+ className: tooltip.cn("text-foreground font-semibold", className),
2290
+ ...props
2291
+ }
2292
+ );
2293
+ }
2294
+ function DrawerDescription({
2295
+ className,
2296
+ ...props
2297
+ }) {
2298
+ return /* @__PURE__ */ jsxRuntime.jsx(
2299
+ vaul.Drawer.Description,
2300
+ {
2301
+ "data-slot": "drawer-description",
2302
+ className: tooltip.cn("text-muted-foreground text-sm", className),
2303
+ ...props
2304
+ }
2305
+ );
2306
+ }
2307
+ function DrawerHandle({ className, ...props }) {
2308
+ return /* @__PURE__ */ jsxRuntime.jsx(
2309
+ "div",
2310
+ {
2311
+ "data-slot": "drawer-handle",
2312
+ className: tooltip.cn("bg-muted mx-auto mt-4 h-2 w-[100px] shrink-0 rounded-full", className),
2313
+ ...props
2314
+ }
2315
+ );
2316
+ }
2317
+ function HoverCard({
2318
+ ...props
2319
+ }) {
2320
+ return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Root, { "data-slot": "hover-card", ...props });
2321
+ }
2322
+ function HoverCardTrigger({
2323
+ ...props
2324
+ }) {
2325
+ return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Trigger, { "data-slot": "hover-card-trigger", ...props });
2326
+ }
2327
+ function HoverCardContent({
2328
+ className,
2329
+ align = "center",
2330
+ sideOffset = 4,
2331
+ ...props
2332
+ }) {
2333
+ return /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
2334
+ HoverCardPrimitive__namespace.Content,
2335
+ {
2336
+ "data-slot": "hover-card-content",
2337
+ align,
2338
+ sideOffset,
2339
+ className: tooltip.cn(
2340
+ "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",
2341
+ className
2342
+ ),
2343
+ ...props
2344
+ }
2345
+ ) });
2346
+ }
2347
+ function ContextMenu({
2348
+ ...props
2349
+ }) {
2350
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Root, { "data-slot": "context-menu", ...props });
2351
+ }
2352
+ function ContextMenuTrigger({
2353
+ ...props
2354
+ }) {
2355
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Trigger, { "data-slot": "context-menu-trigger", ...props });
2356
+ }
2357
+ function ContextMenuGroup({
2358
+ ...props
2359
+ }) {
2360
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Group, { "data-slot": "context-menu-group", ...props });
2361
+ }
2362
+ function ContextMenuPortal({
2363
+ ...props
2364
+ }) {
2365
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { "data-slot": "context-menu-portal", ...props });
2366
+ }
2367
+ function ContextMenuSub({
2368
+ ...props
2369
+ }) {
2370
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Sub, { "data-slot": "context-menu-sub", ...props });
2371
+ }
2372
+ function ContextMenuRadioGroup({
2373
+ ...props
2374
+ }) {
2375
+ return /* @__PURE__ */ jsxRuntime.jsx(
2376
+ ContextMenuPrimitive__namespace.RadioGroup,
2377
+ {
2378
+ "data-slot": "context-menu-radio-group",
2379
+ ...props
2380
+ }
2381
+ );
2382
+ }
2383
+ function ContextMenuSubTrigger({
2384
+ className,
2385
+ inset,
2386
+ children,
2387
+ ...props
2388
+ }) {
2389
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2390
+ ContextMenuPrimitive__namespace.SubTrigger,
2391
+ {
2392
+ "data-slot": "context-menu-sub-trigger",
2393
+ "data-inset": inset,
2394
+ className: tooltip.cn(
2395
+ "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",
2396
+ className
2397
+ ),
2398
+ ...props,
2399
+ children: [
2400
+ children,
2401
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto" })
2402
+ ]
2403
+ }
2404
+ );
2405
+ }
2406
+ function ContextMenuSubContent({
2407
+ className,
2408
+ ...props
2409
+ }) {
2410
+ return /* @__PURE__ */ jsxRuntime.jsx(
2411
+ ContextMenuPrimitive__namespace.SubContent,
2412
+ {
2413
+ "data-slot": "context-menu-sub-content",
2414
+ className: tooltip.cn(
2415
+ "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",
2416
+ className
2417
+ ),
2418
+ ...props
2419
+ }
2420
+ );
2421
+ }
2422
+ function ContextMenuContent({
2423
+ className,
2424
+ ...props
2425
+ }) {
2426
+ return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
2427
+ ContextMenuPrimitive__namespace.Content,
2428
+ {
2429
+ "data-slot": "context-menu-content",
2430
+ className: tooltip.cn(
2431
+ "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",
2432
+ className
2433
+ ),
2434
+ ...props
2435
+ }
2436
+ ) });
2437
+ }
2438
+ function ContextMenuItem({
2439
+ className,
2440
+ inset,
2441
+ variant = "default",
2442
+ ...props
2443
+ }) {
2444
+ return /* @__PURE__ */ jsxRuntime.jsx(
2445
+ ContextMenuPrimitive__namespace.Item,
2446
+ {
2447
+ "data-slot": "context-menu-item",
2448
+ "data-inset": inset,
2449
+ "data-variant": variant,
2450
+ className: tooltip.cn(
2451
+ "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",
2452
+ className
2453
+ ),
2454
+ ...props
2455
+ }
2456
+ );
2457
+ }
2458
+ function ContextMenuCheckboxItem({
2459
+ className,
2460
+ children,
2461
+ checked,
2462
+ ...props
2463
+ }) {
2464
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2465
+ ContextMenuPrimitive__namespace.CheckboxItem,
2466
+ {
2467
+ "data-slot": "context-menu-checkbox-item",
2468
+ className: tooltip.cn(
2469
+ "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",
2470
+ className
2471
+ ),
2472
+ checked,
2473
+ ...props,
2474
+ children: [
2475
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
2476
+ children
2477
+ ]
2478
+ }
2479
+ );
2480
+ }
2481
+ function ContextMenuRadioItem({
2482
+ className,
2483
+ children,
2484
+ ...props
2485
+ }) {
2486
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2487
+ ContextMenuPrimitive__namespace.RadioItem,
2488
+ {
2489
+ "data-slot": "context-menu-radio-item",
2490
+ className: tooltip.cn(
2491
+ "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",
2492
+ className
2493
+ ),
2494
+ ...props,
2495
+ children: [
2496
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
2497
+ children
2498
+ ]
2499
+ }
2500
+ );
2501
+ }
2502
+ function ContextMenuLabel({
2503
+ className,
2504
+ inset,
2505
+ ...props
2506
+ }) {
2507
+ return /* @__PURE__ */ jsxRuntime.jsx(
2508
+ ContextMenuPrimitive__namespace.Label,
2509
+ {
2510
+ "data-slot": "context-menu-label",
2511
+ "data-inset": inset,
2512
+ className: tooltip.cn(
2513
+ "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2514
+ className
2515
+ ),
2516
+ ...props
2517
+ }
2518
+ );
2519
+ }
2520
+ function ContextMenuSeparator({
2521
+ className,
2522
+ ...props
2523
+ }) {
2524
+ return /* @__PURE__ */ jsxRuntime.jsx(
2525
+ ContextMenuPrimitive__namespace.Separator,
2526
+ {
2527
+ "data-slot": "context-menu-separator",
2528
+ className: tooltip.cn("bg-border -mx-1 my-1 h-px", className),
2529
+ ...props
2530
+ }
2531
+ );
2532
+ }
2533
+ function ContextMenuShortcut({
2534
+ className,
2535
+ ...props
2536
+ }) {
2537
+ return /* @__PURE__ */ jsxRuntime.jsx(
2538
+ "span",
2539
+ {
2540
+ "data-slot": "context-menu-shortcut",
2541
+ className: tooltip.cn(
2542
+ "text-muted-foreground ml-auto text-xs tracking-widest",
2543
+ className
2544
+ ),
2545
+ ...props
2546
+ }
2547
+ );
2548
+ }
2549
+ function Menubar({
2550
+ className,
2551
+ ...props
2552
+ }) {
2553
+ return /* @__PURE__ */ jsxRuntime.jsx(
2554
+ MenubarPrimitive__namespace.Root,
2555
+ {
2556
+ "data-slot": "menubar",
2557
+ className: tooltip.cn(
2558
+ "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
2559
+ className
2560
+ ),
2561
+ ...props
2562
+ }
2563
+ );
2564
+ }
2565
+ function MenubarMenu({
2566
+ ...props
2567
+ }) {
2568
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Menu, { "data-slot": "menubar-menu", ...props });
2569
+ }
2570
+ function MenubarGroup({
2571
+ ...props
2572
+ }) {
2573
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Group, { "data-slot": "menubar-group", ...props });
2574
+ }
2575
+ function MenubarPortal({
2576
+ ...props
2577
+ }) {
2578
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { "data-slot": "menubar-portal", ...props });
2579
+ }
2580
+ function MenubarRadioGroup({
2581
+ ...props
2582
+ }) {
2583
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.RadioGroup, { "data-slot": "menubar-radio-group", ...props });
2584
+ }
2585
+ function MenubarTrigger({
2586
+ className,
2587
+ ...props
2588
+ }) {
2589
+ return /* @__PURE__ */ jsxRuntime.jsx(
2590
+ MenubarPrimitive__namespace.Trigger,
2591
+ {
2592
+ "data-slot": "menubar-trigger",
2593
+ className: tooltip.cn(
2594
+ "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",
2595
+ className
2596
+ ),
2597
+ ...props
2598
+ }
2599
+ );
2600
+ }
2601
+ function MenubarContent({
2602
+ className,
2603
+ align = "start",
2604
+ alignOffset = -4,
2605
+ sideOffset = 8,
2606
+ ...props
2607
+ }) {
2608
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
2609
+ MenubarPrimitive__namespace.Content,
2610
+ {
2611
+ "data-slot": "menubar-content",
2612
+ align,
2613
+ alignOffset,
2614
+ sideOffset,
2615
+ className: tooltip.cn(
2616
+ "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",
2617
+ className
2618
+ ),
2619
+ ...props
2620
+ }
2621
+ ) });
2622
+ }
2623
+ function MenubarItem({
2624
+ className,
2625
+ inset,
2626
+ variant = "default",
2627
+ ...props
2628
+ }) {
2629
+ return /* @__PURE__ */ jsxRuntime.jsx(
2630
+ MenubarPrimitive__namespace.Item,
2631
+ {
2632
+ "data-slot": "menubar-item",
2633
+ "data-inset": inset,
2634
+ "data-variant": variant,
2635
+ className: tooltip.cn(
2636
+ "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",
2637
+ className
2638
+ ),
2639
+ ...props
2640
+ }
2641
+ );
2642
+ }
2643
+ function MenubarCheckboxItem({
2644
+ className,
2645
+ children,
2646
+ checked,
2647
+ ...props
2648
+ }) {
2649
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2650
+ MenubarPrimitive__namespace.CheckboxItem,
2651
+ {
2652
+ "data-slot": "menubar-checkbox-item",
2653
+ className: tooltip.cn(
2654
+ "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",
2655
+ className
2656
+ ),
2657
+ checked,
2658
+ ...props,
2659
+ children: [
2660
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
2661
+ children
2662
+ ]
2663
+ }
2664
+ );
2665
+ }
2666
+ function MenubarRadioItem({
2667
+ className,
2668
+ children,
2669
+ ...props
2670
+ }) {
2671
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2672
+ MenubarPrimitive__namespace.RadioItem,
2673
+ {
2674
+ "data-slot": "menubar-radio-item",
2675
+ className: tooltip.cn(
2676
+ "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",
2677
+ className
2678
+ ),
2679
+ ...props,
2680
+ children: [
2681
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
2682
+ children
2683
+ ]
2684
+ }
2685
+ );
2686
+ }
2687
+ function MenubarLabel({
2688
+ className,
2689
+ inset,
2690
+ ...props
2691
+ }) {
2692
+ return /* @__PURE__ */ jsxRuntime.jsx(
2693
+ MenubarPrimitive__namespace.Label,
2694
+ {
2695
+ "data-slot": "menubar-label",
2696
+ "data-inset": inset,
2697
+ className: tooltip.cn(
2698
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
2699
+ className
2700
+ ),
2701
+ ...props
2702
+ }
2703
+ );
2704
+ }
2705
+ function MenubarSeparator({
2706
+ className,
2707
+ ...props
2708
+ }) {
2709
+ return /* @__PURE__ */ jsxRuntime.jsx(
2710
+ MenubarPrimitive__namespace.Separator,
2711
+ {
2712
+ "data-slot": "menubar-separator",
2713
+ className: tooltip.cn("bg-border -mx-1 my-1 h-px", className),
2714
+ ...props
2715
+ }
2716
+ );
2717
+ }
2718
+ function MenubarShortcut({
2719
+ className,
2720
+ ...props
2721
+ }) {
2722
+ return /* @__PURE__ */ jsxRuntime.jsx(
2723
+ "span",
2724
+ {
2725
+ "data-slot": "menubar-shortcut",
2726
+ className: tooltip.cn(
2727
+ "text-muted-foreground ml-auto text-xs tracking-widest",
2728
+ className
2729
+ ),
2730
+ ...props
2731
+ }
2732
+ );
2733
+ }
2734
+ function MenubarSub({
2735
+ ...props
2736
+ }) {
2737
+ return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Sub, { "data-slot": "menubar-sub", ...props });
2738
+ }
2739
+ function MenubarSubTrigger({
2740
+ className,
2741
+ inset,
2742
+ children,
2743
+ ...props
2744
+ }) {
2745
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2746
+ MenubarPrimitive__namespace.SubTrigger,
2747
+ {
2748
+ "data-slot": "menubar-sub-trigger",
2749
+ "data-inset": inset,
2750
+ className: tooltip.cn(
2751
+ "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",
2752
+ className
2753
+ ),
2754
+ ...props,
2755
+ children: [
2756
+ children,
2757
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
2758
+ ]
2759
+ }
2760
+ );
2761
+ }
2762
+ function MenubarSubContent({
2763
+ className,
2764
+ ...props
2765
+ }) {
2766
+ return /* @__PURE__ */ jsxRuntime.jsx(
2767
+ MenubarPrimitive__namespace.SubContent,
2768
+ {
2769
+ "data-slot": "menubar-sub-content",
2770
+ className: tooltip.cn(
2771
+ "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",
2772
+ className
2773
+ ),
2774
+ ...props
2775
+ }
2776
+ );
2777
+ }
2778
+ function Command({
2779
+ className,
2780
+ ...props
2781
+ }) {
2782
+ return /* @__PURE__ */ jsxRuntime.jsx(
2783
+ cmdk.Command,
2784
+ {
2785
+ "data-slot": "command",
2786
+ className: tooltip.cn(
2787
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
2788
+ className
2789
+ ),
2790
+ ...props
2791
+ }
2792
+ );
2793
+ }
2794
+ function CommandDialog({
2795
+ title = "Command Palette",
2796
+ description = "Search for a command to run...",
2797
+ children,
2798
+ ...props
2799
+ }) {
2800
+ return /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.Dialog, { ...props, children: [
2801
+ /* @__PURE__ */ jsxRuntime.jsxs(richTextEditor.DialogHeader, { className: "sr-only", children: [
2802
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogTitle, { children: title }),
2803
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogDescription, { children: description })
2804
+ ] }),
2805
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsxRuntime.jsx(Command, { 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", children }) })
2806
+ ] });
2807
+ }
2808
+ function CommandInput({
2809
+ className,
2810
+ ...props
2811
+ }) {
2812
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2813
+ "div",
2814
+ {
2815
+ "data-slot": "command-input-wrapper",
2816
+ className: "flex h-9 items-center gap-2 border-b px-3",
2817
+ children: [
2818
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
2819
+ /* @__PURE__ */ jsxRuntime.jsx(
2820
+ cmdk.Command.Input,
2821
+ {
2822
+ "data-slot": "command-input",
2823
+ className: tooltip.cn(
2824
+ "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",
2825
+ className
2826
+ ),
2827
+ ...props
2828
+ }
2829
+ )
2830
+ ]
2831
+ }
2832
+ );
2833
+ }
2834
+ function CommandList({
2835
+ className,
2836
+ ...props
2837
+ }) {
2838
+ return /* @__PURE__ */ jsxRuntime.jsx(
2839
+ cmdk.Command.List,
2840
+ {
2841
+ "data-slot": "command-list",
2842
+ role: "listbox",
2843
+ className: tooltip.cn(
2844
+ "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
2845
+ className
2846
+ ),
2847
+ ...props
2848
+ }
2849
+ );
2850
+ }
2851
+ function CommandEmpty({
2852
+ ...props
2853
+ }) {
2854
+ return /* @__PURE__ */ jsxRuntime.jsx(
2855
+ cmdk.Command.Empty,
2856
+ {
2857
+ "data-slot": "command-empty",
2858
+ className: "py-6 text-center text-sm",
2859
+ ...props
2860
+ }
2861
+ );
2862
+ }
2863
+ function CommandGroup({
2864
+ className,
2865
+ ...props
2866
+ }) {
2867
+ return /* @__PURE__ */ jsxRuntime.jsx(
2868
+ cmdk.Command.Group,
2869
+ {
2870
+ "data-slot": "command-group",
2871
+ className: tooltip.cn(
2872
+ "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",
2873
+ className
2874
+ ),
2875
+ ...props
2876
+ }
2877
+ );
2878
+ }
2879
+ function CommandSeparator({
2880
+ className,
2881
+ ...props
2882
+ }) {
2883
+ return /* @__PURE__ */ jsxRuntime.jsx(
2884
+ cmdk.Command.Separator,
2885
+ {
2886
+ "data-slot": "command-separator",
2887
+ className: tooltip.cn("bg-border -mx-1 h-px", className),
2888
+ ...props
2889
+ }
2890
+ );
2891
+ }
2892
+ function CommandItem({
2893
+ className,
2894
+ ...props
2895
+ }) {
2896
+ return /* @__PURE__ */ jsxRuntime.jsx(
2897
+ cmdk.Command.Item,
2898
+ {
2899
+ "data-slot": "command-item",
2900
+ role: "option",
2901
+ className: tooltip.cn(
2902
+ "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",
2903
+ className
2904
+ ),
2905
+ ...props
2906
+ }
2907
+ );
2908
+ }
2909
+ function CommandShortcut({
2910
+ className,
2911
+ ...props
2912
+ }) {
2913
+ return /* @__PURE__ */ jsxRuntime.jsx(
2914
+ "span",
2915
+ {
2916
+ "data-slot": "command-shortcut",
2917
+ className: tooltip.cn(
2918
+ "text-muted-foreground ml-auto text-xs tracking-widest",
2919
+ className
2920
+ ),
2921
+ ...props
2922
+ }
2923
+ );
2924
+ }
2925
+ function Skeleton({ className, ...props }) {
2926
+ return /* @__PURE__ */ jsxRuntime.jsx(
2927
+ "div",
2928
+ {
2929
+ "data-slot": "skeleton",
2930
+ className: tooltip.cn("bg-accent animate-pulse rounded-md", className),
2931
+ ...props
2932
+ }
2933
+ );
2934
+ }
2935
+ const variantStyles = {
2936
+ default: "bg-primary text-primary-foreground",
2937
+ secondary: "bg-secondary text-secondary-foreground",
2938
+ destructive: "bg-destructive text-destructive-foreground",
2939
+ outline: "border-2 border-primary bg-background text-primary",
2940
+ success: "bg-success text-success-foreground",
2941
+ info: "bg-info text-info-foreground",
2942
+ warning: "bg-warning text-warning-foreground"
2943
+ };
2944
+ const NotificationBadge = React__namespace.forwardRef(
2945
+ ({
2946
+ className,
2947
+ count = 0,
2948
+ max = 99,
2949
+ showZero = false,
2950
+ dot = false,
2951
+ variant = "destructive",
2952
+ children,
2953
+ ...props
2954
+ }, ref) => {
2955
+ const displayCount = count > max ? `${max}+` : count;
2956
+ const shouldShow = count > 0 || showZero;
2957
+ if (!shouldShow && !dot) {
2958
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className, ...props, children });
2959
+ }
2960
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: tooltip.cn("relative inline-block", className), ...props, children: [
2961
+ children,
2962
+ /* @__PURE__ */ jsxRuntime.jsx(
2963
+ "span",
2964
+ {
2965
+ className: tooltip.cn(
2966
+ "absolute -right-1 -top-1 flex items-center justify-center rounded-full",
2967
+ variantStyles[variant],
2968
+ dot ? "h-2 w-2" : "min-w-[1.25rem] h-5 px-1.5"
2969
+ ),
2970
+ children: !dot && shouldShow && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-medium leading-none", children: displayCount })
2971
+ }
2972
+ )
2973
+ ] });
2974
+ }
2975
+ );
2976
+ NotificationBadge.displayName = "NotificationBadge";
2977
+ const Empty = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2978
+ "div",
2979
+ {
2980
+ ref,
2981
+ className: tooltip.cn(
2982
+ "flex min-h-[400px] flex-col items-center justify-center rounded-[var(--radius-card)] border border-dashed border-border p-8 text-center animate-in fade-in-50",
2983
+ className
2984
+ ),
2985
+ ...props
2986
+ }
2987
+ ));
2988
+ Empty.displayName = "Empty";
2989
+ const EmptyIcon = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2990
+ "div",
2991
+ {
2992
+ ref,
2993
+ className: tooltip.cn(
2994
+ "mx-auto flex h-20 w-20 items-center justify-center rounded-full bg-muted",
2995
+ className
2996
+ ),
2997
+ ...props
2998
+ }
2999
+ ));
3000
+ EmptyIcon.displayName = "EmptyIcon";
3001
+ const EmptyImage = React__namespace.forwardRef(({ className, alt, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3002
+ "img",
3003
+ {
3004
+ ref,
3005
+ alt,
3006
+ className: tooltip.cn("mx-auto mb-4 h-48 w-48 object-contain opacity-50", className),
3007
+ ...props
3008
+ }
3009
+ ));
3010
+ EmptyImage.displayName = "EmptyImage";
3011
+ const EmptyTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3012
+ "h3",
3013
+ {
3014
+ ref,
3015
+ className: tooltip.cn("mt-4 font-semibold text-foreground", className),
3016
+ ...props
3017
+ }
3018
+ ));
3019
+ EmptyTitle.displayName = "EmptyTitle";
3020
+ const EmptyDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3021
+ "p",
3022
+ {
3023
+ ref,
3024
+ className: tooltip.cn("mt-2 text-sm text-muted-foreground max-w-sm mx-auto", className),
3025
+ ...props
3026
+ }
3027
+ ));
3028
+ EmptyDescription.displayName = "EmptyDescription";
3029
+ const EmptyAction = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3030
+ "div",
3031
+ {
3032
+ ref,
3033
+ className: tooltip.cn("mt-6 flex flex-col gap-2 sm:flex-row sm:gap-4", className),
3034
+ ...props
3035
+ }
3036
+ ));
3037
+ EmptyAction.displayName = "EmptyAction";
3038
+ const StatsCard = React__namespace.forwardRef(
3039
+ ({ className, title, value, description, trend, icon, ...props }, ref) => {
3040
+ const getTrendIcon = () => {
3041
+ if (!trend) return null;
3042
+ if (trend.value > 0) {
3043
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingUp, { className: "h-4 w-4 text-success" });
3044
+ } else if (trend.value < 0) {
3045
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TrendingDown, { className: "h-4 w-4 text-destructive" });
3046
+ } else {
3047
+ return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "h-4 w-4 text-muted-foreground" });
3048
+ }
3049
+ };
3050
+ const getTrendColor = () => {
3051
+ if (!trend) return "";
3052
+ if (trend.value > 0) {
3053
+ return "text-success";
3054
+ } else if (trend.value < 0) {
3055
+ return "text-destructive";
3056
+ } else {
3057
+ return "text-muted-foreground";
3058
+ }
3059
+ };
3060
+ return /* @__PURE__ */ jsxRuntime.jsx(Card, { ref, className: tooltip.cn("", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, { className: "p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
3061
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
3062
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mb-1 text-sm", children: title }),
3063
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-baseline gap-2", children: [
3064
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-foreground text-xl sm:text-2xl", children: value }),
3065
+ trend && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("flex items-center gap-1 text-sm", getTrendColor()), children: [
3066
+ getTrendIcon(),
3067
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
3068
+ Math.abs(trend.value),
3069
+ "%"
3070
+ ] })
3071
+ ] })
3072
+ ] }),
3073
+ (description || (trend == null ? void 0 : trend.label)) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground mt-1 text-xs sm:text-sm", children: (trend == null ? void 0 : trend.label) || description })
3074
+ ] }),
3075
+ icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-[var(--radius)] bg-muted p-2 sm:p-3 text-muted-foreground flex-shrink-0", children: icon })
3076
+ ] }) }) });
3077
+ }
3078
+ );
3079
+ StatsCard.displayName = "StatsCard";
3080
+ const Timeline = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3081
+ "ol",
3082
+ {
3083
+ ref,
3084
+ className: tooltip.cn("relative border-l border-border", className),
3085
+ ...props
3086
+ }
3087
+ ));
3088
+ Timeline.displayName = "Timeline";
3089
+ const TimelineItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3090
+ "li",
3091
+ {
3092
+ ref,
3093
+ className: tooltip.cn("mb-10 ml-6", className),
3094
+ ...props
3095
+ }
3096
+ ));
3097
+ TimelineItem.displayName = "TimelineItem";
3098
+ const TimelineDot = React__namespace.forwardRef(({ className, variant = "default", icon, children, ...props }, ref) => {
3099
+ const variantStyles2 = {
3100
+ default: "bg-muted border-border",
3101
+ primary: "bg-primary border-primary",
3102
+ success: "bg-success border-success",
3103
+ info: "bg-info border-info",
3104
+ warning: "bg-warning border-warning",
3105
+ destructive: "bg-destructive border-destructive",
3106
+ outline: "bg-background border-border"
3107
+ };
3108
+ const iconColorStyles = {
3109
+ default: "text-muted-foreground",
3110
+ primary: "text-primary-foreground",
3111
+ success: "text-success-foreground",
3112
+ info: "text-info-foreground",
3113
+ warning: "text-warning-foreground",
3114
+ destructive: "text-destructive-foreground",
3115
+ outline: "text-foreground"
3116
+ };
3117
+ if (icon || children) {
3118
+ return /* @__PURE__ */ jsxRuntime.jsx(
3119
+ "div",
3120
+ {
3121
+ ref,
3122
+ className: tooltip.cn(
3123
+ "absolute -left-[17px] mt-0.5 h-8 w-8 rounded-full border-2 flex items-center justify-center",
3124
+ variantStyles2[variant],
3125
+ className
3126
+ ),
3127
+ ...props,
3128
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: tooltip.cn("h-4 w-4", iconColorStyles[variant]), children: icon || children })
3129
+ }
3130
+ );
3131
+ }
3132
+ return /* @__PURE__ */ jsxRuntime.jsx(
3133
+ "div",
3134
+ {
3135
+ ref,
3136
+ className: tooltip.cn(
3137
+ "absolute -left-[9px] mt-1.5 h-4 w-4 rounded-full border-2",
3138
+ variantStyles2[variant],
3139
+ className
3140
+ ),
3141
+ ...props
3142
+ }
3143
+ );
3144
+ });
3145
+ TimelineDot.displayName = "TimelineDot";
3146
+ const TimelineContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3147
+ "div",
3148
+ {
3149
+ ref,
3150
+ className: tooltip.cn("", className),
3151
+ ...props
3152
+ }
3153
+ ));
3154
+ TimelineContent.displayName = "TimelineContent";
3155
+ const TimelineHeading = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3156
+ "h3",
3157
+ {
3158
+ ref,
3159
+ className: tooltip.cn("mb-1 text-foreground", className),
3160
+ ...props
3161
+ }
3162
+ ));
3163
+ TimelineHeading.displayName = "TimelineHeading";
3164
+ const TimelineTime = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3165
+ "time",
3166
+ {
3167
+ ref,
3168
+ className: tooltip.cn("mb-2 block text-muted-foreground", className),
3169
+ ...props
3170
+ }
3171
+ ));
3172
+ TimelineTime.displayName = "TimelineTime";
3173
+ const TimelineDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3174
+ "p",
3175
+ {
3176
+ ref,
3177
+ className: tooltip.cn("text-muted-foreground", className),
3178
+ ...props
3179
+ }
3180
+ ));
3181
+ TimelineDescription.displayName = "TimelineDescription";
3182
+ const TreeView = React__namespace.forwardRef(
3183
+ ({ className, data, onNodeClick, onNodeSelect, defaultExpanded = [], selectedNodeId, ...props }, ref) => {
3184
+ const [expanded, setExpanded] = React__namespace.useState(new Set(defaultExpanded));
3185
+ const [internalSelectedId, setInternalSelectedId] = React__namespace.useState(void 0);
3186
+ const nodeRefs = React__namespace.useRef(/* @__PURE__ */ new Map());
3187
+ const isControlled = selectedNodeId !== void 0;
3188
+ const effectiveSelectedId = isControlled ? selectedNodeId : internalSelectedId;
3189
+ const toggleExpand = (nodeId) => {
3190
+ setExpanded((prev) => {
3191
+ const next = new Set(prev);
3192
+ next.has(nodeId) ? next.delete(nodeId) : next.add(nodeId);
3193
+ return next;
3194
+ });
3195
+ };
3196
+ const getVisibleNodes = React__namespace.useCallback(() => {
3197
+ const result = [];
3198
+ const traverse = (nodes) => {
3199
+ var _a;
3200
+ for (const node of nodes) {
3201
+ result.push(node);
3202
+ if (((_a = node.children) == null ? void 0 : _a.length) && expanded.has(node.id)) traverse(node.children);
3203
+ }
3204
+ };
3205
+ traverse(data);
3206
+ return result;
3207
+ }, [data, expanded]);
3208
+ const findParent = (nodes, targetId) => {
3209
+ var _a;
3210
+ for (const n of nodes) {
3211
+ if ((_a = n.children) == null ? void 0 : _a.some((c) => c.id === targetId)) return n;
3212
+ if (n.children) {
3213
+ const found = findParent(n.children, targetId);
3214
+ if (found) return found;
3215
+ }
3216
+ }
3217
+ return null;
3218
+ };
3219
+ const handleSelect = (node) => {
3220
+ if (!isControlled) setInternalSelectedId(node.id);
3221
+ onNodeSelect == null ? void 0 : onNodeSelect(node);
3222
+ onNodeClick == null ? void 0 : onNodeClick(node);
3223
+ };
3224
+ const handleKeyDown = (e, node) => {
3225
+ var _a, _b;
3226
+ const visibleNodes = getVisibleNodes();
3227
+ const idx = visibleNodes.findIndex((n) => n.id === node.id);
3228
+ const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
3229
+ const isExpanded = expanded.has(node.id);
3230
+ const focusNode = (id) => {
3231
+ var _a2;
3232
+ (_a2 = nodeRefs.current.get(id)) == null ? void 0 : _a2.focus();
3233
+ };
3234
+ switch (e.key) {
3235
+ case "ArrowDown": {
3236
+ e.preventDefault();
3237
+ const next = visibleNodes[idx + 1];
3238
+ if (next) focusNode(next.id);
3239
+ break;
3240
+ }
3241
+ case "ArrowUp": {
3242
+ e.preventDefault();
3243
+ const prev = visibleNodes[idx - 1];
3244
+ if (prev) focusNode(prev.id);
3245
+ break;
3246
+ }
3247
+ case "ArrowRight": {
3248
+ e.preventDefault();
3249
+ if (hasChildren && !isExpanded) {
3250
+ toggleExpand(node.id);
3251
+ } else if (hasChildren && isExpanded && ((_b = node.children) == null ? void 0 : _b.length)) {
3252
+ focusNode(node.children[0].id);
3253
+ }
3254
+ break;
3255
+ }
3256
+ case "ArrowLeft": {
3257
+ e.preventDefault();
3258
+ if (hasChildren && isExpanded) {
3259
+ toggleExpand(node.id);
3260
+ } else {
3261
+ const parent = findParent(data, node.id);
3262
+ if (parent) focusNode(parent.id);
3263
+ }
3264
+ break;
3265
+ }
3266
+ case "Home": {
3267
+ e.preventDefault();
3268
+ if (visibleNodes.length > 0) focusNode(visibleNodes[0].id);
3269
+ break;
3270
+ }
3271
+ case "End": {
3272
+ e.preventDefault();
3273
+ const last = visibleNodes[visibleNodes.length - 1];
3274
+ if (last) focusNode(last.id);
3275
+ break;
3276
+ }
3277
+ case "Enter":
3278
+ case " ": {
3279
+ e.preventDefault();
3280
+ if (hasChildren) toggleExpand(node.id);
3281
+ handleSelect(node);
3282
+ break;
3283
+ }
3284
+ }
3285
+ };
3286
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: tooltip.cn("w-full", className), role: "tree", ...props, children: data.map((node) => /* @__PURE__ */ jsxRuntime.jsx(
3287
+ TreeNodeComponent,
3288
+ {
3289
+ node,
3290
+ level: 0,
3291
+ expanded,
3292
+ selectedId: effectiveSelectedId,
3293
+ onToggle: toggleExpand,
3294
+ onSelect: handleSelect,
3295
+ onKeyDown: handleKeyDown,
3296
+ nodeRefs
3297
+ },
3298
+ node.id
3299
+ )) });
3300
+ }
3301
+ );
3302
+ TreeView.displayName = "TreeView";
3303
+ const TreeNodeComponent = ({
3304
+ node,
3305
+ level,
3306
+ expanded,
3307
+ selectedId,
3308
+ onToggle,
3309
+ onSelect,
3310
+ onKeyDown,
3311
+ nodeRefs
3312
+ }) => {
3313
+ var _a;
3314
+ const hasChildren = !!((_a = node.children) == null ? void 0 : _a.length);
3315
+ const isExpanded = expanded.has(node.id);
3316
+ const isSelected = node.id === selectedId;
3317
+ const handleClick = () => {
3318
+ if (hasChildren) onToggle(node.id);
3319
+ onSelect(node);
3320
+ };
3321
+ const setRef = (el) => {
3322
+ if (el) nodeRefs.current.set(node.id, el);
3323
+ else nodeRefs.current.delete(node.id);
3324
+ };
3325
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "none", children: [
3326
+ /* @__PURE__ */ jsxRuntime.jsxs(
3327
+ "button",
3328
+ {
3329
+ ref: setRef,
3330
+ role: "treeitem",
3331
+ "aria-expanded": hasChildren ? isExpanded : void 0,
3332
+ "aria-selected": isSelected,
3333
+ tabIndex: isSelected ? 0 : -1,
3334
+ onClick: handleClick,
3335
+ onKeyDown: (e) => onKeyDown(e, node),
3336
+ className: tooltip.cn(
3337
+ "flex w-full items-center gap-2 rounded-[var(--radius)] px-2 py-1.5 text-left transition-colors",
3338
+ "hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
3339
+ isSelected && "bg-primary/10 text-primary font-medium"
3340
+ ),
3341
+ style: { paddingLeft: `${level * 1.5 + 0.5}rem` },
3342
+ children: [
3343
+ hasChildren ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: isExpanded ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-4 flex-shrink-0", "aria-hidden": "true" }),
3344
+ node.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: node.icon }),
3345
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-foreground", children: node.label })
3346
+ ]
3347
+ }
3348
+ ),
3349
+ hasChildren && isExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", children: node.children.map((child) => /* @__PURE__ */ jsxRuntime.jsx(
3350
+ TreeNodeComponent,
3351
+ {
3352
+ node: child,
3353
+ level: level + 1,
3354
+ expanded,
3355
+ selectedId,
3356
+ onToggle,
3357
+ onSelect,
3358
+ onKeyDown,
3359
+ nodeRefs
3360
+ },
3361
+ child.id
3362
+ )) })
3363
+ ] });
3364
+ };
3365
+ function Collapsible({
3366
+ ...props
3367
+ }) {
3368
+ return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
3369
+ }
3370
+ function CollapsibleTrigger({
3371
+ ...props
3372
+ }) {
3373
+ return /* @__PURE__ */ jsxRuntime.jsx(
3374
+ CollapsiblePrimitive__namespace.CollapsibleTrigger,
3375
+ {
3376
+ "data-slot": "collapsible-trigger",
3377
+ ...props
3378
+ }
3379
+ );
3380
+ }
3381
+ function CollapsibleContent({
3382
+ ...props
3383
+ }) {
3384
+ return /* @__PURE__ */ jsxRuntime.jsx(
3385
+ CollapsiblePrimitive__namespace.CollapsibleContent,
3386
+ {
3387
+ "data-slot": "collapsible-content",
3388
+ ...props
3389
+ }
3390
+ );
3391
+ }
3392
+ function Accordion({
3393
+ ...props
3394
+ }) {
3395
+ return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Root, { "data-slot": "accordion", ...props });
3396
+ }
3397
+ function AccordionItem({
3398
+ className,
3399
+ ...props
3400
+ }) {
3401
+ return /* @__PURE__ */ jsxRuntime.jsx(
3402
+ AccordionPrimitive__namespace.Item,
3403
+ {
3404
+ "data-slot": "accordion-item",
3405
+ className: tooltip.cn("border-b last:border-b-0", className),
3406
+ ...props
3407
+ }
3408
+ );
3409
+ }
3410
+ function AccordionTrigger({
3411
+ className,
3412
+ children,
3413
+ ...props
3414
+ }) {
3415
+ return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
3416
+ AccordionPrimitive__namespace.Trigger,
3417
+ {
3418
+ "data-slot": "accordion-trigger",
3419
+ className: tooltip.cn(
3420
+ "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",
3421
+ className
3422
+ ),
3423
+ ...props,
3424
+ children: [
3425
+ children,
3426
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
3427
+ ]
3428
+ }
3429
+ ) });
3430
+ }
3431
+ function AccordionContent({
3432
+ className,
3433
+ children,
3434
+ ...props
3435
+ }) {
3436
+ return /* @__PURE__ */ jsxRuntime.jsx(
3437
+ AccordionPrimitive__namespace.Content,
3438
+ {
3439
+ "data-slot": "accordion-content",
3440
+ className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
3441
+ ...props,
3442
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("pt-0 pb-4", className), children })
3443
+ }
3444
+ );
3445
+ }
3446
+ const CarouselContext = React__namespace.createContext(null);
3447
+ function useCarousel() {
3448
+ const context = React__namespace.useContext(CarouselContext);
3449
+ if (!context) {
3450
+ throw new Error("useCarousel must be used within a <Carousel />");
3451
+ }
3452
+ return context;
3453
+ }
3454
+ function Carousel({
3455
+ orientation = "horizontal",
3456
+ opts,
3457
+ setApi,
3458
+ plugins,
3459
+ className,
3460
+ children,
3461
+ ...props
3462
+ }) {
3463
+ const [carouselRef, api] = useEmblaCarousel(
3464
+ {
3465
+ ...opts,
3466
+ axis: orientation === "horizontal" ? "x" : "y"
3467
+ },
3468
+ plugins
3469
+ );
3470
+ const [canScrollPrev, setCanScrollPrev] = React__namespace.useState(false);
3471
+ const [canScrollNext, setCanScrollNext] = React__namespace.useState(false);
3472
+ const onSelect = React__namespace.useCallback((api2) => {
3473
+ if (!api2) return;
3474
+ setCanScrollPrev(api2.canScrollPrev());
3475
+ setCanScrollNext(api2.canScrollNext());
3476
+ }, []);
3477
+ const scrollPrev = React__namespace.useCallback(() => {
3478
+ api == null ? void 0 : api.scrollPrev();
3479
+ }, [api]);
3480
+ const scrollNext = React__namespace.useCallback(() => {
3481
+ api == null ? void 0 : api.scrollNext();
3482
+ }, [api]);
3483
+ const handleKeyDown = React__namespace.useCallback(
3484
+ (event) => {
3485
+ if (event.key === "ArrowLeft") {
3486
+ event.preventDefault();
3487
+ scrollPrev();
3488
+ } else if (event.key === "ArrowRight") {
3489
+ event.preventDefault();
3490
+ scrollNext();
3491
+ }
3492
+ },
3493
+ [scrollPrev, scrollNext]
3494
+ );
3495
+ React__namespace.useEffect(() => {
3496
+ if (!api || !setApi) return;
3497
+ setApi(api);
3498
+ }, [api, setApi]);
3499
+ React__namespace.useEffect(() => {
3500
+ if (!api) return;
3501
+ onSelect(api);
3502
+ api.on("reInit", onSelect);
3503
+ api.on("select", onSelect);
3504
+ return () => {
3505
+ api == null ? void 0 : api.off("select", onSelect);
3506
+ };
3507
+ }, [api, onSelect]);
3508
+ return /* @__PURE__ */ jsxRuntime.jsx(
3509
+ CarouselContext.Provider,
3510
+ {
3511
+ value: {
3512
+ carouselRef,
3513
+ api,
3514
+ opts,
3515
+ orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
3516
+ scrollPrev,
3517
+ scrollNext,
3518
+ canScrollPrev,
3519
+ canScrollNext
3520
+ },
3521
+ children: /* @__PURE__ */ jsxRuntime.jsx(
3522
+ "div",
3523
+ {
3524
+ onKeyDownCapture: handleKeyDown,
3525
+ className: tooltip.cn("relative", className),
3526
+ role: "region",
3527
+ "aria-roledescription": "carousel",
3528
+ "data-slot": "carousel",
3529
+ ...props,
3530
+ children
3531
+ }
3532
+ )
3533
+ }
3534
+ );
3535
+ }
3536
+ function CarouselContent({ className, ...props }) {
3537
+ const { carouselRef, orientation } = useCarousel();
3538
+ return /* @__PURE__ */ jsxRuntime.jsx(
3539
+ "div",
3540
+ {
3541
+ ref: carouselRef,
3542
+ className: "overflow-hidden",
3543
+ "data-slot": "carousel-content",
3544
+ children: /* @__PURE__ */ jsxRuntime.jsx(
3545
+ "div",
3546
+ {
3547
+ className: tooltip.cn(
3548
+ "flex",
3549
+ orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
3550
+ className
3551
+ ),
3552
+ ...props
3553
+ }
3554
+ )
3555
+ }
3556
+ );
3557
+ }
3558
+ function CarouselItem({ className, ...props }) {
3559
+ const { orientation } = useCarousel();
3560
+ return /* @__PURE__ */ jsxRuntime.jsx(
3561
+ "div",
3562
+ {
3563
+ role: "group",
3564
+ "aria-roledescription": "slide",
3565
+ "data-slot": "carousel-item",
3566
+ className: tooltip.cn(
3567
+ "min-w-0 shrink-0 grow-0 basis-full",
3568
+ orientation === "horizontal" ? "pl-4" : "pt-4",
3569
+ className
3570
+ ),
3571
+ ...props
3572
+ }
3573
+ );
3574
+ }
3575
+ function CarouselPrevious({
3576
+ className,
3577
+ variant = "outline",
3578
+ size = "icon",
3579
+ ...props
3580
+ }) {
3581
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
3582
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3583
+ tooltip.Button,
3584
+ {
3585
+ "data-slot": "carousel-previous",
3586
+ variant,
3587
+ size,
3588
+ className: tooltip.cn(
3589
+ "absolute size-8 rounded-full",
3590
+ orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
3591
+ className
3592
+ ),
3593
+ disabled: !canScrollPrev,
3594
+ onClick: scrollPrev,
3595
+ ...props,
3596
+ children: [
3597
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, {}),
3598
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
3599
+ ]
3600
+ }
3601
+ );
3602
+ }
3603
+ function CarouselNext({
3604
+ className,
3605
+ variant = "outline",
3606
+ size = "icon",
3607
+ ...props
3608
+ }) {
3609
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
3610
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3611
+ tooltip.Button,
3612
+ {
3613
+ "data-slot": "carousel-next",
3614
+ variant,
3615
+ size,
3616
+ className: tooltip.cn(
3617
+ "absolute size-8 rounded-full",
3618
+ orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
3619
+ className
3620
+ ),
3621
+ disabled: !canScrollNext,
3622
+ onClick: scrollNext,
3623
+ ...props,
3624
+ children: [
3625
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, {}),
3626
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
3627
+ ]
3628
+ }
3629
+ );
3630
+ }
3631
+ const StepperContext = React__namespace.createContext(void 0);
3632
+ const useStepper = () => {
3633
+ const context = React__namespace.useContext(StepperContext);
3634
+ if (!context) throw new Error("useStepper must be used within a Stepper");
3635
+ return context;
3636
+ };
3637
+ const Stepper = React__namespace.forwardRef(
3638
+ ({ currentStep, orientation = "horizontal", className, children, ...props }, ref) => {
3639
+ const totalSteps = React__namespace.Children.count(children);
3640
+ return /* @__PURE__ */ jsxRuntime.jsx(StepperContext.Provider, { value: { currentStep, totalSteps, orientation }, children: /* @__PURE__ */ jsxRuntime.jsx(
3641
+ "div",
3642
+ {
3643
+ ref,
3644
+ className: tooltip.cn("w-full", className),
3645
+ ...props,
3646
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn(
3647
+ orientation === "horizontal" ? "flex items-start justify-between" : "flex flex-col gap-0"
3648
+ ), children })
3649
+ }
3650
+ ) });
3651
+ }
3652
+ );
3653
+ Stepper.displayName = "Stepper";
3654
+ const Step = React__namespace.forwardRef(
3655
+ ({ step, label, description, error = false, className, ...props }, ref) => {
3656
+ const { currentStep, totalSteps, orientation } = useStepper();
3657
+ const isActive = step === currentStep;
3658
+ const isCompleted = step < currentStep && !error;
3659
+ const isFirst = step === 1;
3660
+ const isLast = step === totalSteps;
3661
+ const circleClasses = tooltip.cn(
3662
+ "relative flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors",
3663
+ isActive && !error && "border-primary bg-primary text-primary-foreground",
3664
+ isCompleted && "border-primary bg-primary text-primary-foreground",
3665
+ error && "border-destructive bg-destructive text-destructive-foreground",
3666
+ !isActive && !isCompleted && !error && "border-muted bg-background text-muted-foreground"
3667
+ );
3668
+ const connectorClasses = (filled) => tooltip.cn("transition-colors", filled ? "bg-primary" : "bg-muted");
3669
+ if (orientation === "vertical") {
3670
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: tooltip.cn("flex gap-4", className), ...props, children: [
3671
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
3672
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: circleClasses, children: error ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-5 w-5" }) : isCompleted ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: step }) }),
3673
+ !isLast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("w-0.5 flex-1 min-h-[2rem] mt-1", connectorClasses(step < currentStep)) })
3674
+ ] }),
3675
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("pb-6", isLast && "pb-0"), children: [
3676
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
3677
+ description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
3678
+ ] })
3679
+ ] });
3680
+ }
3681
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: tooltip.cn("flex flex-1 flex-col items-center", className), ...props, children: [
3682
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-start", children: [
3683
+ step > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step <= currentStep)) }),
3684
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: circleClasses, children: error ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-5 w-5" }) : isCompleted ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: step }) }),
3685
+ step < totalSteps && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("h-0.5 flex-1 mt-[18px]", connectorClasses(step < currentStep)) })
3686
+ ] }),
3687
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn(
3688
+ "mt-2 px-1",
3689
+ isFirst && "text-left self-start",
3690
+ isLast && "text-right self-end",
3691
+ !isFirst && !isLast && "text-center w-full"
3692
+ ), children: [
3693
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: tooltip.cn("transition-colors", isActive || error ? "text-foreground" : "text-muted-foreground"), children: label }),
3694
+ description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: description })
3695
+ ] })
3696
+ ] });
3697
+ }
3698
+ );
3699
+ Step.displayName = "Step";
3700
+ const FileUpload = React__namespace.forwardRef(
3701
+ ({
3702
+ className,
3703
+ onFilesChange,
3704
+ maxFiles = 1,
3705
+ maxSize = 5 * 1024 * 1024,
3706
+ // 5MB default
3707
+ showPreview = true,
3708
+ onError,
3709
+ accept,
3710
+ disabled,
3711
+ ...props
3712
+ }, ref) => {
3713
+ const [files, setFiles] = React__namespace.useState([]);
3714
+ const [dragActive, setDragActive] = React__namespace.useState(false);
3715
+ const [errorMessage, setErrorMessage] = React__namespace.useState(null);
3716
+ const inputRef = React__namespace.useRef(null);
3717
+ const handleFiles = (newFiles) => {
3718
+ if (!newFiles) return;
3719
+ setErrorMessage(null);
3720
+ const filesArray = Array.from(newFiles);
3721
+ const oversized = filesArray.filter((f) => f.size > maxSize);
3722
+ const validFiles = filesArray.filter((f) => f.size <= maxSize);
3723
+ if (oversized.length > 0) {
3724
+ const limitMB = (maxSize / 1024 / 1024).toFixed(0);
3725
+ setErrorMessage(`${oversized.length} file(s) exceed the ${limitMB}MB limit and were not added.`);
3726
+ onError == null ? void 0 : onError(oversized, "size");
3727
+ }
3728
+ const merged = maxFiles === 1 ? validFiles.slice(0, 1) : [...files, ...validFiles].slice(0, maxFiles);
3729
+ const countRejected = maxFiles === 1 ? validFiles.slice(1) : [...files, ...validFiles].slice(maxFiles);
3730
+ if (countRejected.length > 0) {
3731
+ setErrorMessage(`Only ${maxFiles} file(s) allowed. ${countRejected.length} file(s) were not added.`);
3732
+ onError == null ? void 0 : onError(countRejected, "count");
3733
+ }
3734
+ setFiles(merged);
3735
+ onFilesChange == null ? void 0 : onFilesChange(merged);
3736
+ };
3737
+ const handleDrag = (e) => {
3738
+ e.preventDefault();
3739
+ e.stopPropagation();
3740
+ if (e.type === "dragenter" || e.type === "dragover") {
3741
+ setDragActive(true);
3742
+ } else if (e.type === "dragleave") {
3743
+ setDragActive(false);
3744
+ }
3745
+ };
3746
+ const handleDrop = (e) => {
3747
+ e.preventDefault();
3748
+ e.stopPropagation();
3749
+ setDragActive(false);
3750
+ if (disabled) return;
3751
+ handleFiles(e.dataTransfer.files);
3752
+ };
3753
+ const handleChange = (e) => {
3754
+ e.preventDefault();
3755
+ if (disabled) return;
3756
+ handleFiles(e.target.files);
3757
+ };
3758
+ const removeFile = (index) => {
3759
+ const updatedFiles = files.filter((_, i) => i !== index);
3760
+ setFiles(updatedFiles);
3761
+ onFilesChange == null ? void 0 : onFilesChange(updatedFiles);
3762
+ if (updatedFiles.length === 0) setErrorMessage(null);
3763
+ };
3764
+ const openFileDialog = () => {
3765
+ var _a;
3766
+ if (!disabled) {
3767
+ setErrorMessage(null);
3768
+ (_a = inputRef.current) == null ? void 0 : _a.click();
3769
+ }
3770
+ };
3771
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: tooltip.cn("w-full", className), children: [
3772
+ /* @__PURE__ */ jsxRuntime.jsxs(
3773
+ "div",
3774
+ {
3775
+ onDragEnter: handleDrag,
3776
+ onDragLeave: handleDrag,
3777
+ onDragOver: handleDrag,
3778
+ onDrop: handleDrop,
3779
+ onClick: openFileDialog,
3780
+ className: tooltip.cn(
3781
+ "relative flex cursor-pointer flex-col items-center justify-center rounded-[var(--radius)] border-2 border-dashed border-border bg-background p-8 transition-colors hover:bg-muted/50",
3782
+ dragActive && "border-primary bg-primary/5",
3783
+ errorMessage && "border-destructive/50",
3784
+ disabled && "cursor-not-allowed opacity-50"
3785
+ ),
3786
+ children: [
3787
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { className: "mb-4 h-10 w-10 text-muted-foreground" }),
3788
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mb-2 text-foreground", children: [
3789
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary", children: "Click to upload" }),
3790
+ " or drag and drop"
3791
+ ] }),
3792
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
3793
+ maxFiles > 1 ? `Up to ${maxFiles} files` : "1 file",
3794
+ " • Max ",
3795
+ (maxSize / 1024 / 1024).toFixed(0),
3796
+ "MB"
3797
+ ] }),
3798
+ /* @__PURE__ */ jsxRuntime.jsx(
3799
+ "input",
3800
+ {
3801
+ ...props,
3802
+ ref: inputRef,
3803
+ type: "file",
3804
+ className: "hidden",
3805
+ onChange: handleChange,
3806
+ multiple: maxFiles > 1,
3807
+ accept,
3808
+ disabled
3809
+ }
3810
+ )
3811
+ ]
3812
+ }
3813
+ ),
3814
+ errorMessage && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex items-center gap-2 rounded-[var(--radius)] border border-destructive/30 bg-destructive/5 px-3 py-2 text-sm text-destructive", children: [
3815
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "h-4 w-4 shrink-0" }),
3816
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: errorMessage })
3817
+ ] }),
3818
+ showPreview && files.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 space-y-2", children: files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(
3819
+ "div",
3820
+ {
3821
+ className: "flex items-center justify-between rounded-[var(--radius)] border border-border bg-card p-3",
3822
+ children: [
3823
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
3824
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileIcon, { className: "h-5 w-5 text-muted-foreground" }),
3825
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
3826
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground", children: file.name }),
3827
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
3828
+ (file.size / 1024).toFixed(2),
3829
+ " KB"
3830
+ ] })
3831
+ ] })
3832
+ ] }),
3833
+ /* @__PURE__ */ jsxRuntime.jsx(
3834
+ tooltip.Button,
3835
+ {
3836
+ type: "button",
3837
+ variant: "ghost",
3838
+ size: "sm",
3839
+ onClick: (e) => {
3840
+ e.stopPropagation();
3841
+ removeFile(index);
3842
+ },
3843
+ disabled,
3844
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
3845
+ }
3846
+ )
3847
+ ]
3848
+ },
3849
+ index
3850
+ )) })
3851
+ ] });
3852
+ }
3853
+ );
3854
+ FileUpload.displayName = "FileUpload";
3855
+ const Rating = React__namespace.forwardRef(
3856
+ ({
3857
+ className,
3858
+ value = 0,
3859
+ onChange,
3860
+ max = 5,
3861
+ readonly = false,
3862
+ disabled = false,
3863
+ size = "md",
3864
+ showValue = false,
3865
+ allowHalf = false,
3866
+ getAriaLabel,
3867
+ ...props
3868
+ }, ref) => {
3869
+ const [hoverValue, setHoverValue] = React__namespace.useState(null);
3870
+ const isInteractive = !readonly && !disabled;
3871
+ const sizeStyles = {
3872
+ sm: "h-4 w-4",
3873
+ md: "h-5 w-5",
3874
+ lg: "h-6 w-6"
3875
+ };
3876
+ const handleClick = (rating) => {
3877
+ if (isInteractive) onChange == null ? void 0 : onChange(rating);
3878
+ };
3879
+ const handleMouseMove = (e, rating) => {
3880
+ if (!isInteractive) return;
3881
+ if (allowHalf) {
3882
+ const rect = e.currentTarget.getBoundingClientRect();
3883
+ setHoverValue(e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating);
3884
+ } else {
3885
+ setHoverValue(rating);
3886
+ }
3887
+ };
3888
+ const handleMouseLeave = () => {
3889
+ if (isInteractive) setHoverValue(null);
3890
+ };
3891
+ const handleClickWithHalf = (e, rating) => {
3892
+ if (!isInteractive) return;
3893
+ if (allowHalf) {
3894
+ const rect = e.currentTarget.getBoundingClientRect();
3895
+ const half = e.clientX - rect.left < rect.width / 2 ? rating - 0.5 : rating;
3896
+ onChange == null ? void 0 : onChange(half);
3897
+ } else {
3898
+ handleClick(rating);
3899
+ }
3900
+ };
3901
+ const displayValue = hoverValue ?? value;
3902
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3903
+ "div",
3904
+ {
3905
+ ref,
3906
+ className: tooltip.cn("flex items-center gap-1", disabled && "opacity-50", className),
3907
+ ...props,
3908
+ children: [
3909
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", role: "group", "aria-label": "Rating", children: Array.from({ length: max }, (_, index) => {
3910
+ const rating = index + 1;
3911
+ const isFull = rating <= displayValue;
3912
+ const isHalf = allowHalf && !isFull && rating - 0.5 <= displayValue;
3913
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3914
+ "button",
3915
+ {
3916
+ type: "button",
3917
+ onClick: (e) => handleClickWithHalf(e, rating),
3918
+ onMouseMove: (e) => handleMouseMove(e, rating),
3919
+ onMouseLeave: handleMouseLeave,
3920
+ disabled: readonly || disabled,
3921
+ "aria-label": getAriaLabel ? getAriaLabel(rating, max) : `${rating} / ${max}`,
3922
+ className: tooltip.cn(
3923
+ "relative transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3924
+ isInteractive && "cursor-pointer hover:scale-110",
3925
+ !isInteractive && "cursor-default"
3926
+ ),
3927
+ children: [
3928
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: tooltip.cn(sizeStyles[size], "fill-none text-muted-foreground") }),
3929
+ (isFull || isHalf) && /* @__PURE__ */ jsxRuntime.jsx(
3930
+ "span",
3931
+ {
3932
+ className: tooltip.cn(
3933
+ "absolute inset-0 overflow-hidden",
3934
+ isHalf ? "w-1/2" : "w-full"
3935
+ ),
3936
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: tooltip.cn(sizeStyles[size], "fill-warning text-warning") })
3937
+ }
3938
+ )
3939
+ ]
3940
+ },
3941
+ index
3942
+ );
3943
+ }) }),
3944
+ showValue && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: value % 1 === 0 ? value.toFixed(0) : value.toFixed(1) })
3945
+ ]
3946
+ }
3947
+ );
3948
+ }
3949
+ );
3950
+ Rating.displayName = "Rating";
3951
+ const Search = React__namespace.forwardRef(
3952
+ ({
3953
+ className,
3954
+ containerClassName,
3955
+ onSearch,
3956
+ onClear,
3957
+ onChange,
3958
+ size = "md",
3959
+ searchLabel = "Search",
3960
+ clearLabel = "Clear search",
3961
+ value: controlledValue,
3962
+ defaultValue,
3963
+ ...props
3964
+ }, ref) => {
3965
+ const isControlled = controlledValue !== void 0;
3966
+ const [internalValue, setInternalValue] = React__namespace.useState(
3967
+ isControlled ? "" : defaultValue ?? ""
3968
+ );
3969
+ const displayValue = isControlled ? controlledValue : internalValue;
3970
+ const sizeClasses = {
3971
+ sm: "h-8 px-8 py-1 text-sm",
3972
+ md: "h-10 px-10 py-2 text-base",
3973
+ lg: "h-12 px-12 py-3 text-base"
3974
+ };
3975
+ const iconSizeClasses = {
3976
+ sm: "left-2 h-3.5 w-3.5",
3977
+ md: "left-3 h-4 w-4",
3978
+ lg: "left-4 h-5 w-5"
3979
+ };
3980
+ const clearSizeClasses = {
3981
+ sm: "right-2",
3982
+ md: "right-3",
3983
+ lg: "right-4"
3984
+ };
3985
+ const handleChange = (e) => {
3986
+ const newValue = e.target.value;
3987
+ if (!isControlled) setInternalValue(newValue);
3988
+ onChange == null ? void 0 : onChange(e);
3989
+ onSearch == null ? void 0 : onSearch(newValue);
3990
+ };
3991
+ const handleClear = () => {
3992
+ if (!isControlled) setInternalValue("");
3993
+ onClear == null ? void 0 : onClear();
3994
+ onSearch == null ? void 0 : onSearch("");
3995
+ };
3996
+ const handleKeyDown = (e) => {
3997
+ var _a;
3998
+ if (e.key === "Escape") {
3999
+ handleClear();
4000
+ }
4001
+ (_a = props.onKeyDown) == null ? void 0 : _a.call(props, e);
4002
+ };
4003
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tooltip.cn("relative w-full", containerClassName), children: [
4004
+ /* @__PURE__ */ jsxRuntime.jsx(
4005
+ lucideReact.Search,
4006
+ {
4007
+ "aria-hidden": "true",
4008
+ className: tooltip.cn("absolute top-1/2 -translate-y-1/2 text-muted-foreground", iconSizeClasses[size])
4009
+ }
4010
+ ),
4011
+ /* @__PURE__ */ jsxRuntime.jsx(
4012
+ "input",
4013
+ {
4014
+ ref,
4015
+ type: "text",
4016
+ value: displayValue,
4017
+ onChange: handleChange,
4018
+ onKeyDown: handleKeyDown,
4019
+ className: tooltip.cn(
4020
+ "flex w-full rounded-[var(--radius)] border border-border bg-background text-foreground transition-colors outline-none",
4021
+ "placeholder:text-muted-foreground",
4022
+ "focus:ring-2 focus:ring-primary focus:border-transparent",
4023
+ "disabled:cursor-not-allowed disabled:opacity-50",
4024
+ sizeClasses[size],
4025
+ className
4026
+ ),
4027
+ "aria-label": props.placeholder || searchLabel,
4028
+ ...props
4029
+ }
4030
+ ),
4031
+ displayValue && /* @__PURE__ */ jsxRuntime.jsx(
4032
+ "button",
4033
+ {
4034
+ type: "button",
4035
+ onClick: handleClear,
4036
+ "aria-label": clearLabel,
4037
+ className: tooltip.cn(
4038
+ "absolute top-1/2 -translate-y-1/2 text-muted-foreground transition-colors hover:text-foreground focus:outline-none",
4039
+ clearSizeClasses[size]
4040
+ ),
4041
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
4042
+ }
4043
+ )
4044
+ ] });
4045
+ }
4046
+ );
4047
+ Search.displayName = "Search";
4048
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_GEMINI_API_KEY": "AIzaSyBnoWKe4LjQzlIklON_dVXMXNUl2gvfH6U", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" };
4049
+ const RouteMapContent = React.forwardRef(
4050
+ ({ apiKey, ...props }, ref) => {
4051
+ const { isLoaded, loadError, load } = googleMapsLoader.useGoogleMapsLoader();
4052
+ const {
4053
+ origin,
4054
+ destination,
4055
+ waypoints = [],
4056
+ travelMode = "DRIVING",
4057
+ height = "450px",
4058
+ mapContainerClassName,
4059
+ disableDefaultUI = false,
4060
+ zoomControl = true,
4061
+ streetViewControl = false,
4062
+ mapTypeControl = false,
4063
+ fullscreenControl = true,
4064
+ onRouteCalculated,
4065
+ className,
4066
+ ...divProps
4067
+ } = props;
4068
+ const mapRef = React.useRef(null);
4069
+ const gmpMapRef = React.useRef(null);
4070
+ const directionsRendererRef = React.useRef(null);
4071
+ React.useRef(false);
4072
+ const isCalculatingRef = React.useRef(false);
4073
+ React.useEffect(() => {
4074
+ if (!isLoaded && apiKey && !loadError && load) {
4075
+ load(apiKey).catch(console.error);
4076
+ }
4077
+ }, [isLoaded, apiKey, loadError, load]);
4078
+ React.useEffect(() => {
4079
+ if (!isLoaded || !gmpMapRef.current) return;
4080
+ const setupMap = (map) => {
4081
+ mapRef.current = map;
4082
+ const computedStyle = getComputedStyle(document.documentElement);
4083
+ const primaryColor = computedStyle.getPropertyValue("--primary").trim() || "#4F46E5";
4084
+ if (!directionsRendererRef.current) {
4085
+ directionsRendererRef.current = new google.maps.DirectionsRenderer({
4086
+ map,
4087
+ suppressMarkers: false,
4088
+ polylineOptions: {
4089
+ strokeColor: primaryColor,
4090
+ strokeWeight: 5,
4091
+ strokeOpacity: 0.8
4092
+ }
4093
+ });
4094
+ } else {
4095
+ directionsRendererRef.current.setMap(map);
4096
+ }
4097
+ };
4098
+ const gmpMap = gmpMapRef.current;
4099
+ if (gmpMap.innerMap) {
4100
+ setupMap(gmpMap.innerMap);
4101
+ } else {
4102
+ const interval = setInterval(() => {
4103
+ if (gmpMap.innerMap) {
4104
+ setupMap(gmpMap.innerMap);
4105
+ clearInterval(interval);
4106
+ }
4107
+ }, 100);
4108
+ return () => clearInterval(interval);
4109
+ }
4110
+ return () => {
4111
+ if (directionsRendererRef.current) {
4112
+ directionsRendererRef.current.setMap(null);
4113
+ }
4114
+ mapRef.current = null;
4115
+ };
4116
+ }, [isLoaded]);
4117
+ React.useEffect(() => {
4118
+ if (gmpMapRef.current && origin) {
4119
+ gmpMapRef.current.center = origin;
4120
+ }
4121
+ }, [origin.lat, origin.lng]);
4122
+ React.useEffect(() => {
4123
+ if (gmpMapRef.current) {
4124
+ gmpMapRef.current.zoom = 13;
4125
+ }
4126
+ }, []);
4127
+ React.useEffect(() => {
4128
+ const map = mapRef.current;
4129
+ const renderer = directionsRendererRef.current;
4130
+ if (!map || !renderer || !isLoaded || isCalculatingRef.current) return;
4131
+ if (!origin || !destination) return;
4132
+ isCalculatingRef.current = true;
4133
+ const directionsService = new google.maps.DirectionsService();
4134
+ const request = {
4135
+ origin,
4136
+ destination,
4137
+ waypoints: waypoints.map((wp) => ({
4138
+ location: wp,
4139
+ stopover: true
4140
+ })),
4141
+ travelMode: google.maps.TravelMode[travelMode]
4142
+ };
4143
+ directionsService.route(request, (result, status) => {
4144
+ var _a;
4145
+ isCalculatingRef.current = false;
4146
+ if (status === "OK" && result) {
4147
+ renderer.setDirections(result);
4148
+ const route = result.routes[0];
4149
+ if (((_a = route == null ? void 0 : route.legs) == null ? void 0 : _a.length) > 0 && onRouteCalculated) {
4150
+ let totalDistance = 0;
4151
+ let totalDuration = 0;
4152
+ route.legs.forEach((leg) => {
4153
+ if (leg.distance) totalDistance += leg.distance.value;
4154
+ if (leg.duration) totalDuration += leg.duration.value;
4155
+ });
4156
+ const distanceKm = (totalDistance / 1e3).toFixed(1);
4157
+ const distanceText = `${distanceKm} km`;
4158
+ const hours = Math.floor(totalDuration / 3600);
4159
+ const minutes = Math.floor(totalDuration % 3600 / 60);
4160
+ const durationText = hours > 0 ? `${hours}h ${minutes}min` : `${minutes} min`;
4161
+ onRouteCalculated(distanceText, durationText);
4162
+ }
4163
+ }
4164
+ });
4165
+ }, [isLoaded, origin.lat, origin.lng, destination.lat, destination.lng, travelMode, mapRef.current]);
4166
+ if (loadError) {
4167
+ return /* @__PURE__ */ jsxRuntime.jsx(
4168
+ "div",
4169
+ {
4170
+ ref,
4171
+ className: tooltip.cn(
4172
+ "relative rounded-[var(--radius-card)] border border-destructive/50 overflow-hidden bg-destructive/5",
4173
+ className
4174
+ ),
4175
+ style: { height },
4176
+ ...divProps,
4177
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-2 p-6", children: [
4178
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-12 h-12 mx-auto", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) }) }),
4179
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: "Failed to load Google Maps" }),
4180
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Check API key in Settings" })
4181
+ ] }) })
4182
+ }
4183
+ );
4184
+ }
4185
+ if (!isLoaded) {
4186
+ return /* @__PURE__ */ jsxRuntime.jsx(
4187
+ "div",
4188
+ {
4189
+ ref,
4190
+ className: tooltip.cn(
4191
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted animate-pulse",
4192
+ className
4193
+ ),
4194
+ style: { height },
4195
+ ...divProps
4196
+ }
4197
+ );
4198
+ }
4199
+ return /* @__PURE__ */ jsxRuntime.jsx(
4200
+ "div",
4201
+ {
4202
+ ref,
4203
+ className: tooltip.cn(
4204
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden",
4205
+ className
4206
+ ),
4207
+ style: { height },
4208
+ ...divProps,
4209
+ children: /* @__PURE__ */ jsxRuntime.jsx(
4210
+ "gmp-map",
4211
+ {
4212
+ ref: gmpMapRef,
4213
+ style: { height: "100%", width: "100%", display: "block" },
4214
+ "map-id": props.mapId || "xertica-route-map"
4215
+ }
4216
+ )
4217
+ }
4218
+ );
4219
+ }
4220
+ );
4221
+ RouteMapContent.displayName = "RouteMapContent";
4222
+ const RouteMap = React.forwardRef(
4223
+ (props, ref) => {
4224
+ const { isLoaded, loadError } = googleMapsLoader.useGoogleMapsLoader();
4225
+ const effectiveApiKey = props.apiKey || typeof { url: typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("use-mobile-DMOvImGQ.cjs", document.baseURI).href } !== "undefined" && __vite_import_meta_env__ && "AIzaSyCj19NndSgZOb8057q24UbJtSsfVJiyVdo" || "";
4226
+ const isValidKey = effectiveApiKey && effectiveApiKey !== "YOUR_GOOGLE_MAPS_API_KEY_HERE" && effectiveApiKey.startsWith("AIza");
4227
+ if (isLoaded || isValidKey || loadError) {
4228
+ return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
4229
+ }
4230
+ const isScriptInjected = typeof document !== "undefined" && !!document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]');
4231
+ if (isScriptInjected) {
4232
+ return /* @__PURE__ */ jsxRuntime.jsx(RouteMapContent, { ref, ...props, apiKey: effectiveApiKey });
4233
+ }
4234
+ const {
4235
+ origin,
4236
+ destination,
4237
+ waypoints,
4238
+ travelMode,
4239
+ height,
4240
+ apiKey,
4241
+ mapContainerClassName,
4242
+ disableDefaultUI,
4243
+ zoomControl,
4244
+ streetViewControl,
4245
+ mapTypeControl,
4246
+ fullscreenControl,
4247
+ onRouteCalculated,
4248
+ ...divProps
4249
+ } = props;
4250
+ return /* @__PURE__ */ jsxRuntime.jsx(
4251
+ "div",
4252
+ {
4253
+ ref,
4254
+ className: tooltip.cn(
4255
+ "relative rounded-[var(--radius-card)] border border-border overflow-hidden bg-muted",
4256
+ props.className
4257
+ ),
4258
+ style: { height: props.height || "450px" },
4259
+ ...divProps,
4260
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-muted/50 to-muted", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-3 p-6", children: [
4261
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-8 h-8 text-primary", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: [
4262
+ /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" }),
4263
+ /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z" })
4264
+ ] }) }),
4265
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Configure Google Maps API Key in Settings" })
4266
+ ] }) })
4267
+ }
4268
+ );
4269
+ }
4270
+ );
4271
+ RouteMap.displayName = "RouteMap";
4272
+ const SimpleMap = React.forwardRef(
4273
+ ({
4274
+ center,
4275
+ address,
4276
+ markerTitle,
4277
+ markerInfo,
4278
+ showMarker = true,
4279
+ zoom = 15,
4280
+ height = "350px",
4281
+ ...props
4282
+ }, ref) => {
4283
+ const markers = showMarker && center ? [
4284
+ {
4285
+ position: center,
4286
+ title: markerTitle || address || "Location",
4287
+ info: markerInfo || address
4288
+ }
4289
+ ] : [];
4290
+ return /* @__PURE__ */ jsxRuntime.jsx(
4291
+ Map$1,
4292
+ {
4293
+ ref,
4294
+ center,
4295
+ zoom,
4296
+ height,
4297
+ markers,
4298
+ ...props
4299
+ }
4300
+ );
4301
+ }
4302
+ );
4303
+ SimpleMap.displayName = "SimpleMap";
4304
+ function AssistantChart({
4305
+ data,
4306
+ config,
4307
+ categoryKey = "month",
4308
+ bars,
4309
+ xAxisFormatter,
4310
+ className
4311
+ }) {
4312
+ const resolvedBars = bars ?? Object.keys(config).map((key) => ({ dataKey: key }));
4313
+ const formatTick = xAxisFormatter ?? ((value) => value.slice(0, 3));
4314
+ return /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartContainer, { config, className: tooltip.cn("min-h-[200px] w-full", className), children: /* @__PURE__ */ jsxRuntime.jsxs(RechartsPrimitive.BarChart, { accessibilityLayer: true, data, children: [
4315
+ /* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.CartesianGrid, { vertical: false }),
4316
+ /* @__PURE__ */ jsxRuntime.jsx(
4317
+ RechartsPrimitive.XAxis,
4318
+ {
4319
+ dataKey: categoryKey,
4320
+ tickLine: false,
4321
+ tickMargin: 10,
4322
+ axisLine: false,
4323
+ tickFormatter: formatTick
4324
+ }
4325
+ ),
4326
+ /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltip, { cursor: false, content: /* @__PURE__ */ jsxRuntime.jsx(richTextEditor.ChartTooltipContent, { indicator: "dashed" }) }),
4327
+ resolvedBars.map((bar) => /* @__PURE__ */ jsxRuntime.jsx(
4328
+ RechartsPrimitive.Bar,
4329
+ {
4330
+ dataKey: bar.dataKey,
4331
+ fill: bar.fill ?? `var(--color-${bar.dataKey})`,
4332
+ radius: bar.radius ?? 4
4333
+ },
4334
+ bar.dataKey
4335
+ ))
4336
+ ] }) });
4337
+ }
4338
+ const MOBILE_BREAKPOINT = 768;
4339
+ function useIsMobile() {
4340
+ const [isMobile, setIsMobile] = React__namespace.useState(
4341
+ void 0
4342
+ );
4343
+ React__namespace.useEffect(() => {
4344
+ var _a;
4345
+ if (typeof window === "undefined") {
4346
+ setIsMobile(false);
4347
+ return;
4348
+ }
4349
+ const mql = (_a = window.matchMedia) == null ? void 0 : _a.call(window, `(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
4350
+ const onChange = () => {
4351
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
4352
+ };
4353
+ if (mql) {
4354
+ mql.addEventListener("change", onChange);
4355
+ }
4356
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
4357
+ return () => {
4358
+ if (mql) {
4359
+ mql.removeEventListener("change", onChange);
4360
+ }
4361
+ };
4362
+ }, []);
4363
+ return !!isMobile;
4364
+ }
4365
+ const useMobile = useIsMobile;
4366
+ exports.Accordion = Accordion;
4367
+ exports.AccordionContent = AccordionContent;
4368
+ exports.AccordionItem = AccordionItem;
4369
+ exports.AccordionTrigger = AccordionTrigger;
4370
+ exports.Alert = Alert;
4371
+ exports.AlertDescription = AlertDescription;
4372
+ exports.AlertDialog = AlertDialog;
4373
+ exports.AlertDialogAction = AlertDialogAction;
4374
+ exports.AlertDialogCancel = AlertDialogCancel;
4375
+ exports.AlertDialogContent = AlertDialogContent;
4376
+ exports.AlertDialogDescription = AlertDialogDescription;
4377
+ exports.AlertDialogFooter = AlertDialogFooter;
4378
+ exports.AlertDialogHeader = AlertDialogHeader;
4379
+ exports.AlertDialogOverlay = AlertDialogOverlay;
4380
+ exports.AlertDialogPortal = AlertDialogPortal;
4381
+ exports.AlertDialogTitle = AlertDialogTitle;
4382
+ exports.AlertDialogTrigger = AlertDialogTrigger;
4383
+ exports.AlertTitle = AlertTitle;
4384
+ exports.AspectRatio = AspectRatio;
4385
+ exports.AssistantChart = AssistantChart;
4386
+ exports.Badge = Badge;
4387
+ exports.Calendar = Calendar;
4388
+ exports.Card = Card;
4389
+ exports.CardAction = CardAction;
4390
+ exports.CardContent = CardContent;
4391
+ exports.CardDescription = CardDescription;
4392
+ exports.CardFooter = CardFooter;
4393
+ exports.CardHeader = CardHeader;
4394
+ exports.CardTitle = CardTitle;
4395
+ exports.Carousel = Carousel;
4396
+ exports.CarouselContent = CarouselContent;
4397
+ exports.CarouselItem = CarouselItem;
4398
+ exports.CarouselNext = CarouselNext;
4399
+ exports.CarouselPrevious = CarouselPrevious;
4400
+ exports.Checkbox = Checkbox;
4401
+ exports.Collapsible = Collapsible;
4402
+ exports.CollapsibleContent = CollapsibleContent;
4403
+ exports.CollapsibleTrigger = CollapsibleTrigger;
4404
+ exports.Command = Command;
4405
+ exports.CommandDialog = CommandDialog;
4406
+ exports.CommandEmpty = CommandEmpty;
4407
+ exports.CommandGroup = CommandGroup;
4408
+ exports.CommandInput = CommandInput;
4409
+ exports.CommandItem = CommandItem;
4410
+ exports.CommandList = CommandList;
4411
+ exports.CommandSeparator = CommandSeparator;
4412
+ exports.CommandShortcut = CommandShortcut;
4413
+ exports.ContextMenu = ContextMenu;
4414
+ exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
4415
+ exports.ContextMenuContent = ContextMenuContent;
4416
+ exports.ContextMenuGroup = ContextMenuGroup;
4417
+ exports.ContextMenuItem = ContextMenuItem;
4418
+ exports.ContextMenuLabel = ContextMenuLabel;
4419
+ exports.ContextMenuPortal = ContextMenuPortal;
4420
+ exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
4421
+ exports.ContextMenuRadioItem = ContextMenuRadioItem;
4422
+ exports.ContextMenuSeparator = ContextMenuSeparator;
4423
+ exports.ContextMenuShortcut = ContextMenuShortcut;
4424
+ exports.ContextMenuSub = ContextMenuSub;
4425
+ exports.ContextMenuSubContent = ContextMenuSubContent;
4426
+ exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
4427
+ exports.ContextMenuTrigger = ContextMenuTrigger;
4428
+ exports.Drawer = Drawer;
4429
+ exports.DrawerContent = DrawerContent;
4430
+ exports.DrawerDescription = DrawerDescription;
4431
+ exports.DrawerFooter = DrawerFooter;
4432
+ exports.DrawerHandle = DrawerHandle;
4433
+ exports.DrawerHeader = DrawerHeader;
4434
+ exports.DrawerOverlay = DrawerOverlay;
4435
+ exports.DrawerPortal = DrawerPortal;
4436
+ exports.DrawerTitle = DrawerTitle;
4437
+ exports.DrawerTrigger = DrawerTrigger;
4438
+ exports.Empty = Empty;
4439
+ exports.EmptyAction = EmptyAction;
4440
+ exports.EmptyDescription = EmptyDescription;
4441
+ exports.EmptyIcon = EmptyIcon;
4442
+ exports.EmptyImage = EmptyImage;
4443
+ exports.EmptyTitle = EmptyTitle;
4444
+ exports.FileUpload = FileUpload;
4445
+ exports.Form = Form;
4446
+ exports.FormControl = FormControl;
4447
+ exports.FormDescription = FormDescription;
4448
+ exports.FormField = FormField;
4449
+ exports.FormItem = FormItem;
4450
+ exports.FormLabel = FormLabel;
4451
+ exports.FormMessage = FormMessage;
4452
+ exports.HoverCard = HoverCard;
4453
+ exports.HoverCardContent = HoverCardContent;
4454
+ exports.HoverCardTrigger = HoverCardTrigger;
4455
+ exports.ImageWithFallback = ImageWithFallback;
4456
+ exports.InputOTP = InputOTP;
4457
+ exports.InputOTPGroup = InputOTPGroup;
4458
+ exports.InputOTPSeparator = InputOTPSeparator;
4459
+ exports.InputOTPSlot = InputOTPSlot;
4460
+ exports.Label = Label;
4461
+ exports.Map = Map$1;
4462
+ exports.Menubar = Menubar;
4463
+ exports.MenubarCheckboxItem = MenubarCheckboxItem;
4464
+ exports.MenubarContent = MenubarContent;
4465
+ exports.MenubarGroup = MenubarGroup;
4466
+ exports.MenubarItem = MenubarItem;
4467
+ exports.MenubarLabel = MenubarLabel;
4468
+ exports.MenubarMenu = MenubarMenu;
4469
+ exports.MenubarPortal = MenubarPortal;
4470
+ exports.MenubarRadioGroup = MenubarRadioGroup;
4471
+ exports.MenubarRadioItem = MenubarRadioItem;
4472
+ exports.MenubarSeparator = MenubarSeparator;
4473
+ exports.MenubarShortcut = MenubarShortcut;
4474
+ exports.MenubarSub = MenubarSub;
4475
+ exports.MenubarSubContent = MenubarSubContent;
4476
+ exports.MenubarSubTrigger = MenubarSubTrigger;
4477
+ exports.MenubarTrigger = MenubarTrigger;
4478
+ exports.NavigationMenu = NavigationMenu;
4479
+ exports.NavigationMenuContent = NavigationMenuContent;
4480
+ exports.NavigationMenuIndicator = NavigationMenuIndicator;
4481
+ exports.NavigationMenuItem = NavigationMenuItem;
4482
+ exports.NavigationMenuLink = NavigationMenuLink;
4483
+ exports.NavigationMenuList = NavigationMenuList;
4484
+ exports.NavigationMenuTrigger = NavigationMenuTrigger;
4485
+ exports.NavigationMenuViewport = NavigationMenuViewport;
4486
+ exports.NotificationBadge = NotificationBadge;
4487
+ exports.PageHeader = PageHeader;
4488
+ exports.PageHeaderDescription = PageHeaderDescription;
4489
+ exports.PageHeaderHeading = PageHeaderHeading;
4490
+ exports.Pagination = Pagination;
4491
+ exports.PaginationContent = PaginationContent;
4492
+ exports.PaginationEllipsis = PaginationEllipsis;
4493
+ exports.PaginationItem = PaginationItem;
4494
+ exports.PaginationLink = PaginationLink;
4495
+ exports.PaginationNext = PaginationNext;
4496
+ exports.PaginationPrevious = PaginationPrevious;
4497
+ exports.Progress = Progress;
4498
+ exports.RadioGroup = RadioGroup;
4499
+ exports.RadioGroupItem = RadioGroupItem;
4500
+ exports.Rating = Rating;
4501
+ exports.ResizableHandle = ResizableHandle;
4502
+ exports.ResizablePanel = ResizablePanel;
4503
+ exports.ResizablePanelGroup = ResizablePanelGroup;
4504
+ exports.RouteMap = RouteMap;
4505
+ exports.Search = Search;
4506
+ exports.Separator = Separator;
4507
+ exports.Sheet = Sheet;
4508
+ exports.SheetContent = SheetContent;
4509
+ exports.SheetDescription = SheetDescription;
4510
+ exports.SheetFooter = SheetFooter;
4511
+ exports.SheetHeader = SheetHeader;
4512
+ exports.SheetPortal = SheetPortal;
4513
+ exports.SheetTitle = SheetTitle;
4514
+ exports.SheetTrigger = SheetTrigger;
4515
+ exports.SimpleMap = SimpleMap;
4516
+ exports.Skeleton = Skeleton;
4517
+ exports.StatsCard = StatsCard;
4518
+ exports.Step = Step;
4519
+ exports.Stepper = Stepper;
4520
+ exports.Switch = Switch;
4521
+ exports.Tabs = Tabs;
4522
+ exports.TabsContent = TabsContent;
4523
+ exports.TabsList = TabsList;
4524
+ exports.TabsTrigger = TabsTrigger;
4525
+ exports.Timeline = Timeline;
4526
+ exports.TimelineContent = TimelineContent;
4527
+ exports.TimelineDescription = TimelineDescription;
4528
+ exports.TimelineDot = TimelineDot;
4529
+ exports.TimelineHeading = TimelineHeading;
4530
+ exports.TimelineItem = TimelineItem;
4531
+ exports.TimelineTime = TimelineTime;
4532
+ exports.Toggle = Toggle;
4533
+ exports.ToggleGroup = ToggleGroup;
4534
+ exports.ToggleGroupItem = ToggleGroupItem;
4535
+ exports.TreeView = TreeView;
4536
+ exports.badgeVariants = badgeVariants;
4537
+ exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
4538
+ exports.toggleVariants = toggleVariants;
4539
+ exports.useFormField = useFormField;
4540
+ exports.useIsMobile = useIsMobile;
4541
+ exports.useMobile = useMobile;
4542
+ exports.useStepper = useStepper;