@doscientos/ui 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/hooks/use-autosave.ts","../src/hooks/use-debounced-value.ts","../src/hooks/use-form-dirty.ts","../src/lib/cn.ts","../src/lib/text-match.ts","../src/ui/accordion/accordion.tsx","../src/ui/alert/alert.tsx","../src/ui/app-shell/app-shell.tsx","../src/ui/avatar/avatar.tsx","../src/ui/badge/badge.tsx","../src/ui/breadcrumb/breadcrumb.tsx","../src/ui/button/button.tsx","../src/ui/button-group/button-group.tsx","../src/ui/card/card.tsx","../src/ui/checkbox/checkbox.tsx","../src/ui/combobox/combobox.tsx","../src/ui/command/command.tsx","../src/ui/dialog/dialog.tsx","../src/ui/confirm-dialog/confirm-dialog.tsx","../src/ui/drawer/drawer.tsx","../src/ui/dropdown-menu/dropdown-menu.tsx","../src/ui/empty-state/empty-state.tsx","../src/ui/label/label.tsx","../src/ui/field/field.tsx","../src/ui/form-feedback/form-feedback.tsx","../src/ui/form-row/form-row.tsx","../src/ui/icon-button/icon-button.tsx","../src/ui/tooltip/tooltip.tsx","../src/ui/input/input.tsx","../src/ui/input-group/input-group.tsx","../src/ui/textarea/textarea.tsx","../src/ui/kbd/kbd.tsx","../src/ui/loading-overlay/loading-overlay.tsx","../src/ui/menu/menu.tsx","../src/ui/page-header/page-header.tsx","../src/ui/pagination/pagination.tsx","../src/ui/popover/popover.tsx","../src/ui/quantity-input/quantity-input.tsx","../src/ui/search-field/search-field.tsx","../src/ui/select/select.tsx","../src/ui/separator/separator.tsx","../src/ui/sidebar/sidebar.tsx","../src/ui/skeleton/skeleton.tsx","../src/ui/submit-button/submit-button.tsx","../src/ui/switch/switch.tsx","../src/ui/table/table.tsx","../src/ui/tabs/tabs.tsx","../src/ui/toast/toast.tsx","../src/ui/toolbar/toolbar.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\n\nexport type AutosaveStatus = \"idle\" | \"saving\" | \"saved\" | \"error\";\n\nexport type UseAutosaveOptions<T> = {\n data: T;\n onSave: (data: T) => Promise<void>;\n debounceMs?: number;\n enabled?: boolean;\n serialize?: (data: T) => string;\n};\n\n/** Debounced autosave with stale-value protection and an explicit `saveNow`. */\nexport function useAutosave<T>({\n data,\n onSave,\n debounceMs = 1_000,\n enabled = true,\n serialize = JSON.stringify,\n}: UseAutosaveOptions<T>) {\n const [status, setStatus] = useState<AutosaveStatus>(\"idle\");\n const [error, setError] = useState<Error | null>(null);\n const lastSaved = useRef<string | null>(null);\n const saveRef = useRef(onSave);\n const serializeRef = useRef(serialize);\n\n useEffect(() => {\n saveRef.current = onSave;\n serializeRef.current = serialize;\n }, [onSave, serialize]);\n\n const save = useCallback(async (value: T) => {\n setStatus(\"saving\");\n setError(null);\n try {\n await saveRef.current(value);\n lastSaved.current = serializeRef.current(value);\n setStatus(\"saved\");\n } catch (cause) {\n setError(cause instanceof Error ? cause : new Error(\"No se pudo guardar.\"));\n setStatus(\"error\");\n }\n }, []);\n\n useEffect(() => {\n if (!enabled) return;\n const snapshot = serializeRef.current(data);\n if (lastSaved.current === null) {\n lastSaved.current = snapshot;\n return;\n }\n if (snapshot === lastSaved.current) return;\n const timeout = window.setTimeout(() => void save(data), debounceMs);\n return () => window.clearTimeout(timeout);\n }, [data, debounceMs, enabled, save]);\n\n return { status, error, saveNow: () => save(data) };\n}","import { useEffect, useState } from \"react\";\n\n/** Returns a value only after it has been stable for the supplied delay. */\nexport function useDebouncedValue<T>(value: T, delay: number = 250) {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const timeout = window.setTimeout(() => setDebouncedValue(value), delay);\n return () => window.clearTimeout(timeout);\n }, [delay, value]);\n\n return debouncedValue;\n}","import { type RefCallback, useCallback, useRef, useState } from \"react\";\n\nexport function formSnapshot(form: HTMLFormElement): string {\n const entries: Array<[string, string]> = Array.from(new FormData(form), ([key, value]) => [key, typeof value === \"string\" ? value : value.name]);\n entries.sort(([left], [right]) => left.localeCompare(right));\n return JSON.stringify(entries);\n}\n\nexport interface UseFormDirtyResult<T extends HTMLFormElement = HTMLFormElement> {\n formRef: RefCallback<T | null>;\n isDirty: boolean;\n markDirty: () => void;\n reset: () => void;\n}\n\n/** Tracks changes in native form controls and supports controlled fields. */\nexport function useFormDirty<T extends HTMLFormElement = HTMLFormElement>(): UseFormDirtyResult<T> {\n const formElement = useRef<T | null>(null);\n const baseline = useRef<string | null>(null);\n const [isDirty, setIsDirty] = useState(false);\n\n const recompute = useCallback(() => {\n if (formElement.current && baseline.current !== null) {\n setIsDirty(formSnapshot(formElement.current) !== baseline.current);\n }\n }, []);\n\n const reset = useCallback(() => {\n if (formElement.current) {\n baseline.current = formSnapshot(formElement.current);\n setIsDirty(false);\n }\n }, []);\n\n const formRef = useCallback<RefCallback<T | null>>((form) => {\n if (formElement.current) {\n formElement.current.removeEventListener(\"input\", recompute);\n formElement.current.removeEventListener(\"change\", recompute);\n formElement.current.removeEventListener(\"reset\", recompute);\n }\n formElement.current = form;\n if (form) {\n baseline.current = formSnapshot(form);\n setIsDirty(false);\n form.addEventListener(\"input\", recompute);\n form.addEventListener(\"change\", recompute);\n form.addEventListener(\"reset\", recompute);\n }\n }, [recompute]);\n\n return { formRef, isDirty, markDirty: () => setIsDirty(true), reset };\n}\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/** Merges conditional class names, resolving conflicting Tailwind utilities. */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}","export type TextMatchPart = {\n text: string;\n match: boolean;\n};\n\nfunction normalize(value: string) {\n return value.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\").toLocaleLowerCase();\n}\n\nfunction normalizedTextWithRanges(value: string) {\n const ranges: Array<{ start: number; end: number }> = [];\n let normalized = \"\";\n let sourceIndex = 0;\n\n for (const character of value) {\n const start = sourceIndex;\n sourceIndex += character.length;\n const normalizedCharacter = normalize(character);\n normalized += normalizedCharacter;\n for (let index = 0; index < normalizedCharacter.length; index += 1) {\n ranges.push({ start, end: sourceIndex });\n }\n }\n\n return { normalized, ranges };\n}\n\n/**\n * Splits text into matching and non-matching chunks. Matching is case- and\n * accent-insensitive while preserving the original text for rendering.\n */\nexport function getTextMatchParts(text: string, query: string): TextMatchPart[] {\n const term = normalize(query.trim());\n if (!term) return [{ text, match: false }];\n\n const { normalized, ranges } = normalizedTextWithRanges(text);\n const parts: TextMatchPart[] = [];\n let sourceCursor = 0;\n let index = normalized.indexOf(term);\n\n while (index !== -1) {\n const rangeStart = ranges[index]?.start;\n const rangeEnd = ranges[index + term.length - 1]?.end;\n if (rangeStart === undefined || rangeEnd === undefined) break;\n if (rangeStart > sourceCursor) parts.push({ text: text.slice(sourceCursor, rangeStart), match: false });\n parts.push({ text: text.slice(rangeStart, rangeEnd), match: true });\n sourceCursor = rangeEnd;\n index = normalized.indexOf(term, index + term.length);\n }\n\n if (sourceCursor < text.length) parts.push({ text: text.slice(sourceCursor), match: false });\n return parts.length ? parts : [{ text, match: false }];\n}\n","import { Disclosure as AriaDisclosure, DisclosureGroup as AriaDisclosureGroup, DisclosurePanel as AriaDisclosurePanel, Button, type DisclosureProps } from \"react-aria-components\";\nimport { CaretDownIcon } from \"@phosphor-icons/react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Accordion({ className, ...props }: React.ComponentProps<typeof AriaDisclosureGroup>) {\n return <AriaDisclosureGroup data-slot=\"accordion\" className={cn(\"flex w-full flex-col\", className)} {...props} />;\n}\n\nexport function AccordionItem({ className, ...props }: DisclosureProps) {\n return <AriaDisclosure data-slot=\"accordion-item\" className={cn(\"border-b border-border last:border-0\", className)} {...props} />;\n}\n\nexport function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof Button>) {\n return <Button data-slot=\"accordion-trigger\" className={cn(\"group/accordion-trigger flex w-full items-center justify-between py-3 text-left text-sm font-medium outline-none transition-colors hover:text-primary focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props}>{(values) => <><span>{typeof children === \"function\" ? children(values) : children}</span><CaretDownIcon aria-hidden=\"true\" weight=\"bold\" className=\"size-4 transition-transform group-data-expanded/accordion-trigger:rotate-180 motion-reduce:transition-none\" /></>}</Button>;\n}\n\nexport function AccordionContent({ className, ...props }: React.ComponentProps<typeof AriaDisclosurePanel>) {\n return <AriaDisclosurePanel data-slot=\"accordion-content\" className={cn(\"overflow-hidden pb-3 text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import type { ReactNode } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AlertProps = React.ComponentProps<\"div\"> & { variant?: \"default\" | \"destructive\" | \"success\" | \"warning\" };\n\nconst variants = {\n default: \"border-border bg-card text-foreground\",\n destructive: \"border-destructive/30 bg-destructive/5 text-destructive\",\n success: \"border-success/30 bg-success/5 text-success\",\n warning: \"border-warning/30 bg-warning/5 text-warning\",\n};\n\nexport function Alert({ className, variant = \"default\", ...props }: AlertProps) {\n return <div role=\"alert\" data-slot=\"alert\" data-variant={variant} className={cn(\"grid w-full gap-1 rounded-lg border px-3 py-2.5 text-sm [&>svg]:size-4\", variants[variant], className)} {...props} />;\n}\n\nexport function AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"alert-title\" className={cn(\"font-medium\", className)} {...props} />;\n}\n\nexport function AlertDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"alert-description\" className={cn(\"text-sm opacity-90\", className)} {...props} />;\n}\n\nexport function AlertAction({ className, children, ...props }: React.ComponentProps<\"div\"> & { children?: ReactNode }) {\n return <div data-slot=\"alert-action\" className={cn(\"absolute top-2 right-2\", className)} {...props}>{children}</div>;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function AppShell({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"app-shell\" className={cn(\"flex min-h-screen w-full bg-muted/30 text-foreground\", className)} {...props} />;\n}\n\nexport function AppShellMain({ className, ...props }: React.ComponentProps<\"main\">) {\n return <main data-slot=\"app-shell-main\" className={cn(\"min-w-0 flex-1\", className)} {...props} />;\n}\n\nexport function AppShellHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return <header data-slot=\"app-shell-header\" className={cn(\"sticky top-0 z-10 flex min-h-14 items-center border-b border-border bg-background/85 px-4 backdrop-blur-md supports-[backdrop-filter]:bg-background/70\", className)} {...props} />;\n}\n\nexport function AppShellContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"app-shell-content\" className={cn(\"mx-auto w-full max-w-[1600px] p-4 md:p-6\", className)} {...props} />;\n}\n","import { useState } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AvatarProps = React.ComponentProps<\"div\"> & { size?: \"xs\" | \"sm\" | \"default\" | \"lg\" };\n\nconst sizes = { xs: \"size-5 text-[10px]\", sm: \"size-6 text-xs\", default: \"size-8 text-sm\", lg: \"size-10 text-base\" };\n\nexport function Avatar({ className, size = \"default\", ...props }: AvatarProps) {\n return <div data-slot=\"avatar\" data-size={size} className={cn(\"group/avatar relative flex shrink-0 overflow-hidden rounded-full bg-muted text-muted-foreground\", sizes[size], className)} {...props} />;\n}\n\nexport function AvatarImage({ className, ...props }: React.ComponentProps<\"img\">) {\n const [failed, setFailed] = useState(false);\n if (failed) return null;\n return <img data-slot=\"avatar-image\" className={cn(\"aspect-square size-full object-cover\", className)} onError={() => setFailed(true)} {...props} />;\n}\n\nexport function AvatarFallback({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-fallback\" className={cn(\"flex size-full items-center justify-center font-medium\", className)} {...props} />;\n}\n\nexport function AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-badge\" className={cn(\"absolute right-0 bottom-0 size-2.5 rounded-full bg-success ring-2 ring-background\", className)} {...props} />;\n}\n\nexport function AvatarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"avatar-group\" className={cn(\"flex -space-x-2 [&>[data-slot=avatar]]:ring-2 [&>[data-slot=avatar]]:ring-background\", className)} {...props} />;\n}\n\nexport function AvatarGroupCount({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-group-count\" className={cn(\"flex size-8 items-center justify-center rounded-full bg-muted text-xs font-medium text-muted-foreground ring-2 ring-background\", className)} {...props} />;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport const badgeVariants = cva(\"inline-flex w-fit items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium\", {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground\",\n secondary: \"bg-secondary text-secondary-foreground\",\n neutral: \"bg-muted text-muted-foreground\",\n success: \"bg-success/10 text-success\",\n warning: \"bg-warning/10 text-warning\",\n destructive: \"bg-destructive/10 text-destructive\",\n outline: \"border border-border text-foreground\",\n },\n },\n defaultVariants: { variant: \"default\" },\n});\n\nexport type BadgeProps = React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants>;\n\nexport function Badge({ className, variant, ...props }: BadgeProps) {\n return <span data-slot=\"badge\" className={cn(badgeVariants({ variant }), className)} {...props} />;\n}\n","import { Breadcrumb as AriaBreadcrumb, Breadcrumbs as AriaBreadcrumbs, Link as AriaLink } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Breadcrumbs({ className, ...props }: React.ComponentProps<typeof AriaBreadcrumbs>) {\n return <AriaBreadcrumbs data-slot=\"breadcrumbs\" className={cn(\"flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function Breadcrumb({ className, ...props }: React.ComponentProps<typeof AriaBreadcrumb>) {\n return <AriaBreadcrumb data-slot=\"breadcrumb\" className={cn(\"inline-flex items-center gap-1.5\", className)} {...props} />;\n}\n\nexport function BreadcrumbLink({ className, ...props }: React.ComponentProps<typeof AriaLink>) {\n return <AriaLink data-slot=\"breadcrumb-link\" className={cn(\"transition-colors hover:text-foreground\", className)} {...props} />;\n}\n\nexport function BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"breadcrumb-page\" aria-current=\"page\" className={cn(\"font-medium text-foreground\", className)} {...props} />;\n}\n\nexport function BreadcrumbSeparator({ children = \"/\", className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"breadcrumb-separator\" aria-hidden=\"true\" className={cn(\"text-muted-foreground/60\", className)} {...props}>{children}</span>;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport { Button as AriaButton, type ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const buttonVariants = cva(\n \"inline-flex shrink-0 cursor-pointer items-center justify-center gap-1.5 rounded-lg border border-transparent text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,transform] duration-150 outline-none focus-visible:ring-3 focus-visible:ring-ring/50 data-pressed:scale-[0.98] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none motion-reduce:data-pressed:transform-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/85\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n outline: \"border-border bg-background text-foreground hover:bg-muted\",\n ghost: \"text-foreground hover:bg-muted\",\n destructive: \"bg-destructive/10 text-destructive hover:bg-destructive/20\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n xs: \"h-6 px-2 text-xs\",\n sm: \"h-7 px-2.5 text-xs\",\n default: \"h-8 px-3\",\n lg: \"h-10 px-4\",\n icon: \"size-8 p-0\",\n },\n },\n defaultVariants: { variant: \"default\", size: \"default\" },\n },\n);\n\nexport type ButtonProps = AriaButtonProps & VariantProps<typeof buttonVariants>;\n\nexport function Button({ className, variant, size, ...props }: ButtonProps) {\n return <AriaButton data-slot=\"button\" className={cn(buttonVariants({ variant, size }), className)} {...props} />;\n}\n","import { cn } from \"../../lib/cn\";\n\nexport function ButtonGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div role=\"group\" data-slot=\"button-group\" className={cn(\"inline-flex items-center gap-2\", className)} {...props} />;\n}\n\nexport function ButtonGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"button-group-text\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Card({ className, ...props }: React.ComponentProps<\"section\">) {\n return <section data-slot=\"card\" className={cn(\"rounded-xl border border-border bg-card text-foreground shadow-sm\", className)} {...props} />;\n}\n\nexport function CardHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return <header data-slot=\"card-header\" className={cn(\"flex flex-col gap-1.5 p-5\", className)} {...props} />;\n}\n\nexport function CardTitle({ className, ...props }: React.ComponentProps<\"h2\">) {\n return <h2 data-slot=\"card-title\" className={cn(\"text-base font-semibold\", className)} {...props} />;\n}\n\nexport function CardDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"card-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"card-content\" className={cn(\"p-5 pt-0\", className)} {...props} />;\n}\n\nexport function CardFooter({ className, ...props }: React.ComponentProps<\"footer\">) {\n return <footer data-slot=\"card-footer\" className={cn(\"flex items-center gap-2 border-t border-border p-5\", className)} {...props} />;\n}\n","import {\n Checkbox as AriaCheckbox,\n type CheckboxProps as AriaCheckboxProps,\n} from \"react-aria-components\";\nimport { CheckIcon } from \"@phosphor-icons/react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type CheckboxProps = Omit<AriaCheckboxProps, \"className\"> & { className?: string };\n\nexport function Checkbox({ className, children, ...props }: CheckboxProps) {\n return <AriaCheckbox data-slot=\"checkbox\" className={cn(\"group inline-flex items-center gap-2 text-sm text-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)} {...props}>\n {(state) => <><span aria-hidden=\"true\" className=\"grid size-4 place-items-center rounded border border-border bg-background text-primary-foreground transition-colors group-data-selected:border-primary group-data-selected:bg-primary group-data-focus-visible:ring-3 group-data-focus-visible:ring-ring/50\"><CheckIcon weight=\"bold\" className=\"size-3 opacity-0 transition-opacity group-data-selected:opacity-100 motion-reduce:transition-none\" /></span>{typeof children === \"function\" ? children(state) : children}</>}\n </AriaCheckbox>;\n}\n","import { Fragment, useMemo, useState, type ReactNode } from \"react\";\nimport { ComboBox as AriaComboBox, ComboBoxValue, FieldError, Input, Label, ListBox, ListBoxItem, Popover, Text, type ComboBoxProps, type InputProps, type ListBoxItemProps, type ListBoxProps } from \"react-aria-components\";\nimport type { Key } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { getTextMatchParts } from \"../../lib/text-match\";\n\nexport const Combobox = AriaComboBox;\nexport { ComboBoxValue as ComboboxValue };\nexport type { ComboBoxProps };\n\nexport function ComboboxInput({ className, ...props }: InputProps) { return <Input data-slot=\"combobox-input\" className={cn(\"h-9 w-full rounded-lg border border-border bg-background px-2.5 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props} />; }\nexport function ComboboxContent({ className, ...props }: React.ComponentProps<typeof Popover>) { return <Popover data-slot=\"combobox-content\" className={cn(\"max-h-72 w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />; }\nexport function ComboboxList<T extends object>({ className, emptyState, ...props }: ListBoxProps<T> & { emptyState?: React.ReactNode }) { return <ListBox data-slot=\"combobox-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} renderEmptyState={emptyState ? () => emptyState : undefined} {...props} />; }\nexport function ComboboxItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) { return <ListBoxItem data-slot=\"combobox-item\" className={cn(\"flex w-full cursor-default items-center justify-between rounded-md px-2 py-2 text-sm outline-none transition-colors data-focused:bg-muted data-focused:text-foreground data-hovered:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</ListBoxItem>; }\nexport function HighlightMatch({ text, query, className }: { text: string; query: string; className?: string }) { return <span className={className}>{getTextMatchParts(text, query).map((part, index) => part.match ? <mark key={`${part.text}-${index}`} className=\"rounded bg-accent px-0.5 text-accent-foreground\">{part.text}</mark> : <Fragment key={`${part.text}-${index}`}>{part.text}</Fragment>)}</span>; }\n\nexport type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, \"children\" | \"items\" | \"inputValue\" | \"onInputChange\" | \"selectedKey\" | \"onSelectionChange\" | \"defaultFilter\"> & { items: readonly T[]; getItemKey: (item: T) => Key; getItemLabel: (item: T) => string; renderItem?: (item: T, query: string) => ReactNode; inputValue?: string; onInputChange?: (value: string) => void; selectedKey?: Key | null; onSelectionChange?: (key: Key | null, item?: T) => void; label?: ReactNode; description?: ReactNode; errorMessage?: ReactNode; emptyState?: ReactNode; suggestion?: boolean; placeholder?: string };\n\n/** A safe, keyboard-first autocomplete for users, contracts and other entities. */\nexport function AutocompleteCombobox<T extends object>({ items, getItemKey, getItemLabel, renderItem, inputValue: controlledInputValue, onInputChange, selectedKey, onSelectionChange, label, description, errorMessage, emptyState = <p className=\"px-3 py-7 text-center text-sm text-muted-foreground\">No hay resultados.</p>, suggestion = true, placeholder, className, onKeyDown: _onKeyDown, ...props }: AutocompleteComboboxProps<T>) {\n const [internalInputValue, setInternalInputValue] = useState(\"\");\n const inputValue = controlledInputValue ?? internalInputValue;\n const setInputValue = (value: string) => { setInternalInputValue(value); onInputChange?.(value); };\n const normalizedQuery = inputValue.trim().toLocaleLowerCase();\n const filteredItems = useMemo(() => normalizedQuery ? items.filter((item) => getItemLabel(item).toLocaleLowerCase().includes(normalizedQuery)) : [...items], [getItemLabel, items, normalizedQuery]);\n const suggestedItem = useMemo(() => !suggestion || !normalizedQuery ? undefined : items.find((item) => getItemLabel(item).toLocaleLowerCase().startsWith(normalizedQuery) && getItemLabel(item).length > inputValue.length), [getItemLabel, inputValue.length, items, normalizedQuery, suggestion]);\n const suggestionLabel = suggestedItem ? getItemLabel(suggestedItem) : undefined;\n const acceptSuggestion = () => { if (!suggestedItem || !suggestionLabel) return false; setInputValue(suggestionLabel); onSelectionChange?.(getItemKey(suggestedItem), suggestedItem); return true; };\n const handleKeyDown = (event: Parameters<NonNullable<InputProps[\"onKeyDown\"]>>[0]) => { if ((event.key === \"Tab\" || event.key === \"Enter\") && acceptSuggestion()) event.preventDefault(); };\n return <AriaComboBox<T> {...props} className={cn(\"group/combobox flex w-full flex-col gap-1.5\", className)} items={filteredItems} selectedKey={selectedKey} inputValue={inputValue} onInputChange={setInputValue} onSelectionChange={(key) => { const item = filteredItems.find((candidate) => String(getItemKey(candidate)) === String(key)); if (item) setInputValue(getItemLabel(item)); onSelectionChange?.(key, item); }}>\n {label && <Label className=\"text-sm font-medium text-foreground\">{label}</Label>}\n <div className=\"relative\">{suggestionLabel && <span aria-hidden=\"true\" className=\"pointer-events-none absolute inset-y-0 left-2.5 z-0 flex items-center whitespace-pre text-sm text-muted-foreground/60\"><span className=\"text-transparent\">{inputValue}</span>{suggestionLabel.slice(inputValue.length)}</span>}<ComboboxInput aria-autocomplete={suggestionLabel ? \"both\" : \"list\"} placeholder={placeholder} onKeyDown={handleKeyDown} className=\"relative z-10 bg-transparent\" /></div>\n {description && <Text slot=\"description\" className=\"text-xs text-muted-foreground\">{description}</Text>}\n {errorMessage && <FieldError className=\"text-xs text-destructive\">{errorMessage}</FieldError>}\n <ComboboxContent><ComboboxList<T> emptyState={emptyState}>{(item) => <ComboboxItem id={getItemKey(item)} textValue={getItemLabel(item)}>{renderItem ? renderItem(item, inputValue) : <HighlightMatch text={getItemLabel(item)} query={inputValue} />}</ComboboxItem>}</ComboboxList></ComboboxContent>\n </AriaComboBox>;\n}\n","import { ComboBox as AriaComboBox, Input as AriaInput, ListBox, ListBoxItem, Popover, type ComboBoxProps, type ListBoxItemProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Command<T extends object>({ className, ...props }: ComboBoxProps<T>) {\n return <AriaComboBox data-slot=\"command\" className={cn(\"w-full\", className)} {...props} />;\n}\n\nexport function CommandInput({ className, ...props }: React.ComponentProps<typeof AriaInput>) {\n return <AriaInput data-slot=\"command-input\" className={cn(\"h-9 w-full border-0 bg-transparent px-3 text-sm text-foreground outline-none placeholder:text-muted-foreground\", className)} {...props} />;\n}\n\nexport function CommandContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"command-content\" className={cn(\"w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 shadow-lg outline-none\", className)} {...props} />;\n}\n\nexport function CommandList<T extends object>({ className, ...props }: React.ComponentProps<typeof ListBox<T>>) {\n return <ListBox data-slot=\"command-list\" className={cn(\"max-h-72 overflow-y-auto\", className)} {...props} />;\n}\n\nexport function CommandItem<T extends object>({ className, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"command-item\" className={cn(\"flex cursor-default items-center rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props} />;\n}\n","import { createContext, useContext } from \"react\";\nimport { XIcon } from \"@phosphor-icons/react\";\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n Text,\n type DialogProps as AriaDialogProps,\n type ModalOverlayProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button } from \"../button/button\";\n\nconst DialogCloseContext = createContext<(() => void) | null>(null);\n\nexport type DialogProps = Omit<ModalOverlayProps, \"children\" | \"className\" | \"isOpen\"> & {\n children: React.ReactNode;\n open: boolean;\n};\n\n/** Controlled overlay root. Use `DialogContent` for its accessible surface. */\nexport function Dialog({ open, children, ...props }: DialogProps) {\n return <ModalOverlay isOpen={open} className=\"fixed inset-0 z-50 grid place-items-center bg-black/20 p-4 backdrop-blur-[1px] motion-safe:data-entering:animate-ui-overlay-in motion-safe:data-exiting:animate-ui-overlay-out\" {...props}>\n {children}\n </ModalOverlay>;\n}\n\nexport function DialogClose({ onPress, ...props }: React.ComponentProps<typeof Button>) {\n const close = useContext(DialogCloseContext);\n return <Button onPress={(event) => { onPress?.(event); close?.(); }} {...props} />;\n}\n\nexport function DialogContent({ className, children, showCloseButton = true, ...props }: AriaDialogProps & { showCloseButton?: boolean }) {\n return <Modal className=\"w-full max-w-md outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\">\n <AriaDialog data-slot=\"dialog-content\" className={cn(\"relative grid max-h-[calc(100dvh-2rem)] gap-4 overflow-y-auto rounded-xl bg-background p-5 text-foreground shadow-xl outline-none\", className)} {...props}>\n {({ close }) => <DialogCloseContext.Provider value={close}>\n {typeof children === \"function\" ? children({ close }) : children}\n {showCloseButton && <DialogClose aria-label=\"Cerrar diálogo\" variant=\"ghost\" size=\"icon\" className=\"absolute top-2 right-2\"><XIcon aria-hidden=\"true\" weight=\"bold\" className=\"size-4\" /></DialogClose>}\n </DialogCloseContext.Provider>}\n </AriaDialog>\n </Modal>;\n}\n\nexport function DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"dialog-header\" className={cn(\"flex flex-col gap-2\", className)} {...props} />;\n}\nexport function DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"dialog-footer\" className={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)} {...props} />;\n}\nexport function DialogTitle({ className, ...props }: React.ComponentProps<typeof Heading>) {\n return <Heading slot=\"title\" className={cn(\"text-base font-semibold\", className)} {...props} />;\n}\nexport function DialogDescription({ className, ...props }: React.ComponentProps<typeof Text>) {\n return <Text slot=\"description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { Button } from \"../button/button\";\nimport { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from \"../dialog/dialog\";\n\nexport type ConfirmDialogProps = {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: string;\n description?: React.ReactNode;\n confirmLabel?: string;\n cancelLabel?: string;\n destructive?: boolean;\n pending?: boolean;\n onConfirm: () => void;\n};\n\n/** Controlled confirmation dialog for irreversible actions. */\nexport function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel = \"Confirmar\", cancelLabel = \"Cancelar\", destructive = false, pending = false, onConfirm }: ConfirmDialogProps) {\n return <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent showCloseButton={false}>\n <DialogHeader><DialogTitle>{title}</DialogTitle>{description && <DialogDescription>{description}</DialogDescription>}</DialogHeader>\n <DialogFooter>\n <Button variant=\"outline\" isDisabled={pending} onPress={() => onOpenChange(false)}>{cancelLabel}</Button>\n <Button variant={destructive ? \"destructive\" : \"default\"} isDisabled={pending} onPress={onConfirm}>{confirmLabel}</Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>;\n}\n","import { Dialog as AriaDialog, Modal, ModalOverlay, type ModalOverlayProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport interface DrawerProps extends Omit<ModalOverlayProps, \"children\" | \"className\"> { children: React.ReactNode; side?: \"left\" | \"right\" | \"bottom\"; className?: string; }\n\nconst sideStyles = { left: \"inset-y-0 left-0 h-full w-[min(22rem,calc(100%-2rem))] data-entering:animate-ui-surface-in\", right: \"inset-y-0 right-0 h-full w-[min(22rem,calc(100%-2rem))] data-entering:animate-ui-surface-in\", bottom: \"inset-x-0 bottom-0 max-h-[85vh] w-full data-entering:animate-ui-surface-in\" };\n\nexport function Drawer({ children, side = \"right\", className, ...props }: DrawerProps) {\n return <ModalOverlay isDismissable className=\"fixed inset-0 z-50 bg-black/20 backdrop-blur-[1px] motion-safe:data-entering:animate-ui-overlay-in motion-safe:data-exiting:animate-ui-overlay-out\" {...props}><Modal className={cn(\"absolute grid gap-4 overflow-y-auto rounded-xl border border-border bg-background p-5 text-foreground shadow-xl outline-none\", sideStyles[side], className)}><AriaDialog data-slot=\"drawer\" className=\"outline-none\">{children}</AriaDialog></Modal></ModalOverlay>;\n}\n\nexport function DrawerHeader({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"drawer-header\" className={cn(\"flex flex-col gap-1.5\", className)} {...props} />; }\nexport function DrawerFooter({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"drawer-footer\" className={cn(\"mt-auto flex flex-col-reverse gap-2 pt-4 sm:flex-row sm:justify-end\", className)} {...props} />; }\nexport function DrawerTitle({ className, ...props }: React.ComponentProps<\"h2\">) { return <h2 data-slot=\"drawer-title\" className={cn(\"text-base font-semibold\", className)} {...props} />; }\nexport function DrawerDescription({ className, ...props }: React.ComponentProps<\"p\">) { return <p data-slot=\"drawer-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />; }\n","import { Menu as AriaMenu, MenuItem as AriaMenuItem, MenuTrigger as AriaMenuTrigger, Popover as AriaPopover, Separator as AriaSeparator, type MenuItemProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const DropdownMenu = AriaMenu;\nexport const DropdownMenuTrigger = AriaMenuTrigger;\n\nexport function DropdownMenuContent({ className, ...props }: React.ComponentProps<typeof AriaPopover>) {\n return <AriaPopover data-slot=\"dropdown-menu-content\" offset={6} className={cn(\"min-w-40 overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport function DropdownMenuItem({ className, ...props }: MenuItemProps) {\n return <AriaMenuItem data-slot=\"dropdown-menu-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props} />;\n}\n\nexport function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof AriaSeparator>) {\n return <AriaSeparator data-slot=\"dropdown-menu-separator\" className={cn(\"my-1 h-px bg-border\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function EmptyState({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"empty-state\" className={cn(\"flex min-h-44 w-full flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-border p-6 text-center\", className)} {...props} />;\n}\n\nexport function EmptyStateTitle({ className, ...props }: React.ComponentProps<\"h3\">) {\n return <h3 data-slot=\"empty-state-title\" className={cn(\"text-sm font-medium text-foreground\", className)} {...props} />;\n}\n\nexport function EmptyStateDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"empty-state-description\" className={cn(\"max-w-sm text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import { forwardRef, type ComponentPropsWithRef } from \"react\";\nimport { Label as LabelPrimitive } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const Label = forwardRef<HTMLLabelElement, ComponentPropsWithRef<typeof LabelPrimitive>>(function Label({ className, ...props }, ref) {\n return <LabelPrimitive ref={ref} data-slot=\"label\" className={cn(\"flex items-center gap-2 text-sm font-medium leading-none select-none\", className)} {...props} />;\n});\n\nexport type LabelProps = ComponentPropsWithRef<typeof Label>;\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nimport { Label } from \"../label/label\";\n\nexport function Field({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"field\" className={cn(\"flex w-full flex-col gap-2\", className)} {...props} />;\n}\n\nexport function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return <Label data-slot=\"field-label\" className={cn(\"text-foreground\", className)} {...props} />;\n}\n\nexport function FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"field-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function FieldError({ className, children, ...props }: React.ComponentProps<\"p\">) {\n if (!children) return null;\n return <p role=\"alert\" data-slot=\"field-error\" className={cn(\"text-sm text-destructive\", className)} {...props}>{children}</p>;\n}\n","import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { CheckCircleIcon, CircleNotchIcon, WarningCircleIcon } from \"@phosphor-icons/react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type FormFeedbackState = { status: \"idle\" } | { status: \"pending\" } | { status: \"success\"; message?: string } | { status: \"error\"; message: string };\n\nexport function useFormFeedback(options?: { successResetMs?: number }) {\n const resetMs = options?.successResetMs ?? 2500;\n const [state, setState] = useState<FormFeedbackState>({ status: \"idle\" });\n const timer = useRef<ReturnType<typeof setTimeout> | null>(null);\n const clearTimer = useCallback(() => { if (timer.current) clearTimeout(timer.current); timer.current = null; }, []);\n useEffect(() => () => clearTimer(), [clearTimer]);\n const setPending = useCallback(() => { clearTimer(); setState({ status: \"pending\" }); }, [clearTimer]);\n const setSuccess = useCallback((message?: string) => { clearTimer(); setState({ status: \"success\", message }); if (resetMs > 0) timer.current = setTimeout(() => setState({ status: \"idle\" }), resetMs); }, [clearTimer, resetMs]);\n const setError = useCallback((message: string) => { clearTimer(); setState({ status: \"error\", message }); }, [clearTimer]);\n const reset = useCallback(() => { clearTimer(); setState({ status: \"idle\" }); }, [clearTimer]);\n return { state, pending: state.status === \"pending\", setPending, setSuccess, setError, reset };\n}\n\nexport interface FormFeedbackProps { state: FormFeedbackState; className?: string; pendingLabel?: string; successLabel?: string; }\n\nexport function FormFeedback({ state, className, pendingLabel = \"Guardando…\", successLabel = \"Guardado\" }: FormFeedbackProps) {\n if (state.status === \"idle\") return <span aria-hidden=\"true\" className={cn(\"inline-flex h-5 items-center\", className)} />;\n const error = state.status === \"error\";\n const success = state.status === \"success\";\n return <span role={error ? \"alert\" : \"status\"} aria-live=\"polite\" className={cn(\"inline-flex h-5 items-center gap-1.5 text-xs\", error && \"text-destructive\", success && \"text-success\", state.status === \"pending\" && \"text-muted-foreground\", className)}>\n {state.status === \"pending\" && <CircleNotchIcon aria-hidden=\"true\" className=\"size-3.5 animate-spin\" />}\n {success && <CheckCircleIcon aria-hidden=\"true\" className=\"size-3.5\" weight=\"fill\" />}\n {error && <WarningCircleIcon aria-hidden=\"true\" className=\"size-3.5\" weight=\"fill\" />}\n <span>{state.status === \"pending\" ? pendingLabel : success ? state.message ?? successLabel : state.message}</span>\n </span>;\n}\n","import type { ReactNode } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport interface FormRowProps {\n label: ReactNode;\n htmlFor: string;\n required?: boolean;\n hint?: ReactNode;\n error?: ReactNode;\n className?: string;\n children: ReactNode;\n}\n\nexport function FormRow({ label, htmlFor, required, hint, error, className, children }: FormRowProps) {\n const hintId = hint ? `${htmlFor}-hint` : undefined;\n const errorId = error ? `${htmlFor}-error` : undefined;\n return <div data-slot=\"form-row\" className={cn(\"flex flex-col gap-1.5\", className)}>\n <label htmlFor={htmlFor} className=\"text-sm font-medium text-foreground\">{label}{required && <><span aria-hidden=\"true\" className=\"ml-0.5 text-destructive\">*</span><span className=\"sr-only\"> (obligatorio)</span></>}</label>\n {children}\n {hint && <p id={hintId} className=\"text-xs text-muted-foreground\">{hint}</p>}\n {error && <p id={errorId} role=\"alert\" className=\"text-xs font-medium text-destructive\">{error}</p>}\n </div>;\n}\n","import type { ReactNode } from \"react\";\nimport { Link } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps, buttonVariants } from \"../button/button\";\nimport { Tooltip, TooltipTrigger } from \"../tooltip/tooltip\";\n\nexport type IconButtonProps = Omit<ButtonProps, \"children\"> & {\n\t/** Accessible name and text shown in the tooltip. */\n\tlabel: string;\n\t/** Optional href for rendering the action as an accessible link. */\n\thref?: string;\n\tchildren?: ReactNode;\n};\n\n/** A consistently sized icon-only action with an accessible tooltip. */\nexport function IconButton({\n\tlabel,\n\tchildren,\n\thref,\n\tclassName,\n\tvariant,\n\t...props\n}: IconButtonProps) {\n\tconst linkClassName = cn(\n\t\tbuttonVariants({ variant, size: \"icon\" }),\n\t\tclassName,\n\t);\n\n\treturn (\n\t\t<TooltipTrigger>\n\t\t\t{href ? (\n\t\t\t\t<Link\n\t\t\t\t\tdata-slot=\"icon-button\"\n\t\t\t\t\taria-label={label}\n\t\t\t\t\thref={href}\n\t\t\t\t\tclassName={linkClassName}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Link>\n\t\t\t) : (\n\t\t\t\t<Button\n\t\t\t\t\tdata-slot=\"icon-button\"\n\t\t\t\t\taria-label={label}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\tclassName={className}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Button>\n\t\t\t)}\n\t\t\t<Tooltip>{label}</Tooltip>\n\t\t</TooltipTrigger>\n\t);\n}\n","import {\n Tooltip as AriaTooltip,\n TooltipTrigger as AriaTooltipTrigger,\n type TooltipProps as AriaTooltipProps,\n type TooltipTriggerComponentProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type TooltipProps = Omit<AriaTooltipProps, \"className\"> & { className?: string };\nexport type { TooltipTriggerComponentProps };\n\nexport const TooltipTrigger = AriaTooltipTrigger;\n\nexport function Tooltip({ className, ...props }: TooltipProps) {\n return <AriaTooltip data-slot=\"tooltip\" offset={6} className={cn(\"max-w-xs rounded-md bg-foreground px-2.5 py-1.5 text-xs text-background shadow-md outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport const TooltipContent = Tooltip;\n","import { forwardRef } from \"react\";\nimport { Input as AriaInput, type InputProps as AriaInputProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type InputProps = Omit<AriaInputProps, \"ref\"> & { ref?: CompatibleRef<HTMLInputElement> };\n\nconst InputImpl = forwardRef<HTMLInputElement, AriaInputProps>(function Input({ className, type, ...props }, ref) {\n return <AriaInput ref={ref} type={type} data-slot=\"input\" className={cn(\"h-8 w-full min-w-0 rounded-lg border border-border bg-background px-2.5 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive\", className)} {...props} />;\n});\n\n/** Forward-ref component with a ref type compatible across React 19 type releases. */\nexport const Input = InputImpl as unknown as (props: InputProps) => ReturnType<typeof InputImpl>;\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\nimport { Input } from \"../input/input\";\nimport { Textarea } from \"../textarea/textarea\";\n\nexport function InputGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div role=\"group\" data-slot=\"input-group\" className={cn(\"group/input-group flex min-h-8 w-full min-w-0 items-center rounded-lg border border-border transition-colors has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive\", className)} {...props} />;\n}\n\nconst addonVariants = cva(\"flex items-center justify-center gap-2 px-2 text-sm text-muted-foreground\", { variants: { align: { \"inline-start\": \"order-first\", \"inline-end\": \"order-last\", \"block-start\": \"w-full justify-start border-b py-2\", \"block-end\": \"w-full justify-start border-t py-2\" } }, defaultVariants: { align: \"inline-start\" } });\nexport function InputGroupAddon({ className, align, ...props }: React.ComponentProps<\"div\"> & VariantProps<typeof addonVariants>) {\n return <div data-slot=\"input-group-addon\" data-align={align} className={cn(addonVariants({ align }), className)} {...props} />;\n}\n\nexport function InputGroupButton({ className, ...props }: ButtonProps) {\n return <Button data-slot=\"input-group-button\" size=\"icon\" variant=\"ghost\" className={cn(\"size-7 shrink-0\", className)} {...props} />;\n}\n\nexport function InputGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"input-group-text\" className={cn(\"px-2 text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function InputGroupInput({ className, ...props }: React.ComponentProps<typeof Input>) {\n return <Input data-slot=\"input-group-control\" className={cn(\"flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0\", className)} {...props} />;\n}\n\nexport function InputGroupTextarea({ className, ...props }: React.ComponentProps<typeof Textarea>) {\n return <Textarea data-slot=\"input-group-control\" className={cn(\"flex-1 resize-none rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0\", className)} {...props} />;\n}\n","import { forwardRef } from \"react\";\nimport { TextArea as AriaTextArea, type TextAreaProps as AriaTextAreaProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type TextareaProps = Omit<AriaTextAreaProps, \"ref\"> & { ref?: CompatibleRef<HTMLTextAreaElement> };\n\nconst TextareaImpl = forwardRef<HTMLTextAreaElement, AriaTextAreaProps>(function Textarea({ className, ...props }, ref) {\n return <AriaTextArea ref={ref} data-slot=\"textarea\" className={cn(\"min-h-20 w-full rounded-lg border border-border bg-background px-2.5 py-2 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive\", className)} {...props} />;\n});\n\n/** Forward-ref component with a ref type compatible across React 19 type releases. */\nexport const Textarea = TextareaImpl as unknown as (props: TextareaProps) => ReturnType<typeof TextareaImpl>;\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Kbd({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return <kbd data-slot=\"kbd\" className={cn(\"pointer-events-none inline-flex h-5 min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none\", className)} {...props} />;\n}\n\nexport function KbdGroup({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"kbd-group\" className={cn(\"inline-flex items-center gap-1\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { CircleNotchIcon } from \"@phosphor-icons/react\";\nimport { cn } from \"../../lib/cn\";\nexport function LoadingOverlay({ label = \"Cargando\", className, ...props }: React.ComponentProps<\"div\"> & { label?: string }) { return <div role=\"status\" aria-live=\"polite\" className={cn(\"absolute inset-0 z-10 flex items-center justify-center bg-background/70 backdrop-blur-[2px]\", className)} {...props}><div className=\"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-2 text-sm shadow-sm\"><CircleNotchIcon className=\"animate-spin\" aria-hidden=\"true\" /><span>{label}</span></div></div>; }\n","import {\n Menu as AriaMenu,\n MenuItem as AriaMenuItem,\n MenuTrigger as AriaMenuTrigger,\n Popover,\n type MenuItemProps,\n type MenuProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const MenuTrigger = AriaMenuTrigger;\n\nexport function MenuContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"menu-content\" className={cn(\"min-w-40 overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport function Menu<T extends object>({ className, ...props }: MenuProps<T>) {\n return <AriaMenu data-slot=\"menu\" className={cn(\"outline-none\", className)} {...props} />;\n}\n\nexport function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>) {\n return <AriaMenuItem data-slot=\"menu-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</AriaMenuItem>;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function PageHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return <header data-slot=\"page-header\" className={cn(\"flex flex-col gap-4 py-2 sm:flex-row sm:items-center sm:justify-between\", className)} {...props} />;\n}\nexport function PageHeaderHeading({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"page-header-heading\" className={cn(\"min-w-0\", className)} {...props} />;\n}\nexport function PageHeaderTitle({ className, ...props }: React.ComponentProps<\"h1\">) {\n return <h1 data-slot=\"page-header-title\" className={cn(\"truncate text-xl font-semibold tracking-tight md:text-2xl\", className)} {...props} />;\n}\nexport function PageHeaderDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"page-header-description\" className={cn(\"mt-1 text-sm text-muted-foreground\", className)} {...props} />;\n}\nexport function PageHeaderActions({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"page-header-actions\" className={cn(\"flex shrink-0 items-center gap-2\", className)} {...props} />;\n}\n","import { CaretLeftIcon, CaretRightIcon } from \"@phosphor-icons/react\";\nimport { Button } from \"../button/button\";\nimport { cn } from \"../../lib/cn\";\nexport type PaginationProps = { page: number; pageCount: number; onPageChange: (page: number) => void; className?: string };\nexport function Pagination({ page, pageCount, onPageChange, className }: PaginationProps) {\n const pages = Array.from({ length: pageCount }, (_, index) => index + 1);\n return <nav aria-label=\"Paginación\" className={cn(\"flex items-center justify-between gap-4\", className)}><p className=\"text-sm text-muted-foreground\">Página {page} de {pageCount}</p><div className=\"flex items-center gap-1\"><Button aria-label=\"Página anterior\" isDisabled={page <= 1} onPress={() => onPageChange(page - 1)} size=\"icon\" variant=\"ghost\"><CaretLeftIcon /></Button>{pages.map((item) => <Button key={item} aria-current={item === page ? \"page\" : undefined} aria-label={`Página ${item}`} onPress={() => onPageChange(item)} size=\"icon\" variant={item === page ? \"secondary\" : \"ghost\"}>{item}</Button>)}<Button aria-label=\"Página siguiente\" isDisabled={page >= pageCount} onPress={() => onPageChange(page + 1)} size=\"icon\" variant=\"ghost\"><CaretRightIcon /></Button></div></nav>;\n}\n","import {\n DialogTrigger as AriaDialogTrigger,\n Popover as AriaPopover,\n type DialogTriggerProps,\n type PopoverProps as AriaPopoverProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type PopoverProps = Omit<AriaPopoverProps, \"className\"> & { className?: string };\nexport type { DialogTriggerProps as PopoverTriggerProps };\n\n/** Wrap a trigger and Popover surface; React Aria handles focus and positioning. */\nexport const PopoverTrigger = AriaDialogTrigger;\n\nexport function Popover({ className, ...props }: PopoverProps) {\n return <AriaPopover data-slot=\"popover\" offset={6} className={cn(\"min-w-48 rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport const PopoverContent = Popover;\n","import { MinusIcon, PlusIcon } from \"@phosphor-icons/react\";\nimport {\n Button as AriaButton,\n Group as AriaGroup,\n Input as AriaInput,\n NumberField as AriaNumberField,\n type NumberFieldProps as AriaNumberFieldProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type QuantityInputProps = Omit<AriaNumberFieldProps, \"children\" | \"className\"> & {\n className?: string;\n inputClassName?: string;\n decrementAriaLabel?: string;\n incrementAriaLabel?: string;\n};\n\n/** A compact quantity control with accessible stepper buttons and numeric keyboard support. */\nexport function QuantityInput({\n className,\n inputClassName,\n decrementAriaLabel = \"Disminuir cantidad\",\n incrementAriaLabel = \"Aumentar cantidad\",\n minValue = 0,\n step = 1,\n ...props\n}: QuantityInputProps) {\n return (\n <AriaNumberField\n {...props}\n minValue={minValue}\n step={step}\n data-slot=\"quantity-input\"\n className={cn(\"group/quantity-input inline-flex min-w-0 data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)}\n >\n <AriaGroup\n data-slot=\"quantity-input-group\"\n className=\"flex h-8 min-w-0 items-stretch overflow-hidden rounded-lg border border-border bg-background text-foreground transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 group-data-invalid/quantity-input:border-destructive\"\n >\n <AriaButton slot=\"decrement\" aria-label={decrementAriaLabel} data-slot=\"quantity-input-decrement\" className=\"flex size-8 shrink-0 cursor-pointer items-center justify-center border-r border-border text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted data-disabled:pointer-events-none\">\n <MinusIcon aria-hidden=\"true\" weight=\"bold\" className=\"size-4\" />\n </AriaButton>\n <AriaInput data-slot=\"quantity-input-value\" className={cn(\"w-14 min-w-0 bg-transparent px-1 text-center text-sm tabular-nums outline-none\", inputClassName)} />\n <AriaButton slot=\"increment\" aria-label={incrementAriaLabel} data-slot=\"quantity-input-increment\" className=\"flex size-8 shrink-0 cursor-pointer items-center justify-center border-l border-border text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted data-disabled:pointer-events-none\">\n <PlusIcon aria-hidden=\"true\" weight=\"bold\" className=\"size-4\" />\n </AriaButton>\n </AriaGroup>\n </AriaNumberField>\n );\n}","import {\n SearchField as AriaSearchField,\n Button,\n Input,\n type SearchFieldProps as AriaSearchFieldProps,\n type ButtonProps,\n type InputProps,\n} from \"react-aria-components\";\nimport { XIcon } from \"@phosphor-icons/react\";\nimport { cn } from \"../../lib/cn\";\n\nexport const SearchField = AriaSearchField;\nexport type { AriaSearchFieldProps as SearchFieldProps };\n\nexport function SearchInput({ className, ...props }: InputProps) {\n return <Input data-slot=\"search-input\" className={cn(\"h-8 w-full min-w-0 rounded-lg border border-border bg-background px-2.5 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props} />;\n}\n\nexport function SearchClearButton({ className, children = <XIcon aria-hidden=\"true\" weight=\"bold\" className=\"size-4\" />, ...props }: Omit<ButtonProps, \"className\"> & { className?: string }) {\n return <Button slot=\"clear\" data-slot=\"search-clear\" className={cn(\"absolute top-1/2 right-1 rounded p-1 text-muted-foreground outline-none hover:bg-muted data-focus-visible:ring-2 data-focus-visible:ring-ring\", className)} {...props}>{children}</Button>;\n}\n","import {\n Button as AriaButton,\n Select as AriaSelect,\n SelectValue as AriaSelectValue,\n ListBox,\n ListBoxItem,\n Popover,\n type SelectProps as AriaSelectProps,\n type ButtonProps,\n type ListBoxItemProps,\n type ListBoxProps,\n} from \"react-aria-components\";\nimport { CaretDownIcon } from \"@phosphor-icons/react\";\nimport { cn } from \"../../lib/cn\";\n\nexport const Select = AriaSelect;\nexport type { AriaSelectProps as SelectProps };\n\nexport function SelectTrigger({ className, children, ...props }: ButtonProps) {\n return <AriaButton data-slot=\"select-trigger\" className={cn(\"group/select-trigger flex h-8 w-full min-w-36 items-center gap-2 rounded-lg border border-border bg-background px-2.5 text-left text-sm text-foreground outline-none data-focus-visible:ring-3 data-focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)} {...props}>{(state) => <>{typeof children === \"function\" ? children(state) : children}<CaretDownIcon aria-hidden=\"true\" weight=\"bold\" className=\"ml-auto size-4 text-muted-foreground transition-transform group-data-pressed/select-trigger:rotate-180 motion-reduce:transition-none\" /></>}</AriaButton>;\n}\n\nexport function SelectValue({ className, ...props }: React.ComponentProps<typeof AriaSelectValue>) {\n return <AriaSelectValue data-slot=\"select-value\" className={cn(\"flex-1 truncate data-placeholder:text-muted-foreground\", className)} {...props} />;\n}\n\nexport function SelectContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"select-content\" className={cn(\"w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport function SelectList<T extends object>({ className, ...props }: ListBoxProps<T>) {\n return <ListBox data-slot=\"select-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} {...props} />;\n}\n\nexport function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"select-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-selected:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</ListBoxItem>;\n}\n","import { Separator as AriaSeparator, type SeparatorProps as AriaSeparatorProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type SeparatorProps = Omit<AriaSeparatorProps, \"className\"> & { className?: string };\n\nexport function Separator({ className, orientation = \"horizontal\", ...props }: SeparatorProps) {\n return <AriaSeparator data-slot=\"separator\" orientation={orientation} className={cn(\"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch\", className)} {...props} />;\n}\n","import {\n\tCaretLeftIcon,\n\tCaretRightIcon,\n\tDotsThreeIcon,\n\tMagnifyingGlassIcon,\n} from \"@phosphor-icons/react\";\nimport {\n\tcreateContext,\n\ttype ReactNode,\n\tuseContext,\n\tuseMemo,\n\tuseState,\n} from \"react\";\nimport { Link, type LinkProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\ntype SidebarContextValue = {\n\tcollapsed: boolean;\n\tsetCollapsed: (value: boolean) => void;\n\ttoggle: () => void;\n};\nconst SidebarContext = createContext<SidebarContextValue | null>(null);\n\nexport function useSidebar() {\n\tconst context = useContext(SidebarContext);\n\tif (!context)\n\t\tthrow new Error(\"useSidebar must be used inside SidebarProvider\");\n\treturn context;\n}\n\nexport function SidebarProvider({\n\tdefaultCollapsed = false,\n\tchildren,\n}: {\n\tdefaultCollapsed?: boolean;\n\tchildren: ReactNode;\n}) {\n\tconst [collapsed, setCollapsed] = useState(defaultCollapsed);\n\tconst value = useMemo(\n\t\t() => ({\n\t\t\tcollapsed,\n\t\t\tsetCollapsed,\n\t\t\ttoggle: () => setCollapsed((current) => !current),\n\t\t}),\n\t\t[collapsed],\n\t);\n\treturn (\n\t\t<SidebarContext.Provider value={value}>{children}</SidebarContext.Provider>\n\t);\n}\n\nexport function Sidebar({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"aside\">) {\n\tconst { collapsed } = useSidebar();\n\treturn (\n\t\t<aside\n\t\t\tdata-slot=\"sidebar\"\n\t\t\tdata-collapsed={collapsed || undefined}\n\t\t\tclassName={cn(\n\t\t\t\t\"group/sidebar flex h-full w-56 shrink-0 flex-col border-r border-border bg-card text-foreground transition-[width] duration-200 ease-out motion-reduce:transition-none data-[collapsed]:w-16\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarHeader({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sidebar-header\"\n\t\t\tclassName={cn(\"flex items-center gap-2 px-4 py-5\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarSearch({\n\tlabel = \"Buscar…\",\n\tshortcut = \"⌘K\",\n\tclassName,\n\t...props\n}: React.ComponentProps<\"button\"> & { label?: string; shortcut?: string }) {\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tdata-slot=\"sidebar-search\"\n\t\t\tclassName={cn(\n\t\t\t\t\"group flex w-full items-center gap-2 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<MagnifyingGlassIcon className=\"size-4 shrink-0\" />\n\t\t\t<span className=\"flex-1 text-left\">{label}</span>\n\t\t\t<kbd className=\"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground\">\n\t\t\t\t{shortcut}\n\t\t\t</kbd>\n\t\t</button>\n\t);\n}\n\nexport function SidebarContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"nav\">) {\n\treturn (\n\t\t<nav\n\t\t\tdata-slot=\"sidebar-content\"\n\t\t\taria-label=\"Navegación principal\"\n\t\t\tclassName={cn(\"min-h-0 flex-1 overflow-y-auto px-2 py-1\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarFooter({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sidebar-footer\"\n\t\t\tclassName={cn(\n\t\t\t\t\"mt-auto flex flex-col gap-2 border-t border-border p-2\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarGroup({\n\tlabel,\n\tclassName,\n\tchildren,\n\t...props\n}: React.ComponentProps<\"section\"> & { label?: string }) {\n\tconst { collapsed } = useSidebar();\n\treturn (\n\t\t<section\n\t\t\tdata-slot=\"sidebar-group\"\n\t\t\tclassName={cn(\"mb-4 last:mb-0\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{label && (\n\t\t\t\t<h2\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\"mb-1 px-3 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground\",\n\t\t\t\t\t\tcollapsed && \"sr-only\",\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{label}\n\t\t\t\t</h2>\n\t\t\t)}\n\t\t\t{children}\n\t\t</section>\n\t);\n}\n\nexport type SidebarItemProps = LinkProps & {\n\ticon?: ReactNode;\n\tactive?: boolean;\n\tbadge?: ReactNode;\n\tlabel?: string;\n};\nexport function SidebarItem({\n\ticon,\n\tactive,\n\tbadge,\n\tlabel,\n\tchildren,\n\tclassName,\n\t...props\n}: SidebarItemProps) {\n\tconst { collapsed } = useSidebar();\n\tconst content = typeof children === \"function\" ? label : (children ?? label);\n\treturn (\n\t\t<Link\n\t\t\tdata-slot=\"sidebar-item\"\n\t\t\taria-current={active ? \"page\" : undefined}\n\t\t\taria-label={collapsed && label ? label : undefined}\n\t\t\tclassName={cn(\n\t\t\t\t\"group/item relative flex min-h-9 items-center gap-2.5 rounded-md px-2.5 py-2 text-sm text-muted-foreground outline-none transition-[background-color,color,transform] duration-150 hover:bg-secondary/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 data-[current=page]:bg-secondary data-[current=page]:font-medium data-[current=page]:text-foreground data-pressed:scale-[0.98] motion-reduce:transition-none\",\n\t\t\t\tcollapsed && \"justify-center px-0\",\n\t\t\t\ttypeof className === \"function\" ? className : className,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{(values) => (\n\t\t\t\t<>\n\t\t\t\t\t<span className=\"flex size-4 shrink-0 items-center justify-center\">\n\t\t\t\t\t\t{icon}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={cn(\"min-w-0 flex-1 truncate\", collapsed && \"sr-only\")}\n\t\t\t\t\t>\n\t\t\t\t\t\t{typeof children === \"function\" ? children(values) : content}\n\t\t\t\t\t</span>\n\t\t\t\t\t{badge && !collapsed && (\n\t\t\t\t\t\t<span className=\"text-xs text-muted-foreground\">{badge}</span>\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t</Link>\n\t);\n}\n\nexport function SidebarSeparator({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"hr\">) {\n\treturn (\n\t\t<hr\n\t\t\tdata-slot=\"sidebar-separator\"\n\t\t\tclassName={cn(\"my-2 h-px border-0 bg-border\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarTrigger({ className, ...props }: ButtonProps) {\n\tconst { collapsed, toggle } = useSidebar();\n\treturn (\n\t\t<Button\n\t\t\taria-label={collapsed ? \"Expandir navegación\" : \"Colapsar navegación\"}\n\t\t\tonPress={toggle}\n\t\t\tsize=\"icon\"\n\t\t\tvariant=\"ghost\"\n\t\t\tclassName={cn(\"ml-auto\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{collapsed ? <CaretRightIcon /> : <CaretLeftIcon />}\n\t\t</Button>\n\t);\n}\n\nexport function SidebarRail({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"button\">) {\n\tconst { toggle } = useSidebar();\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\taria-label=\"Alternar navegación\"\n\t\t\tonClick={toggle}\n\t\t\tclassName={cn(\n\t\t\t\t\"absolute inset-y-0 right-0 z-20 hidden w-1 -translate-x-1/2 cursor-ew-resize bg-transparent transition-colors hover:bg-border lg:block\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarMore({ className, ...props }: ButtonProps) {\n\treturn (\n\t\t<Button\n\t\t\taria-label=\"Más opciones\"\n\t\t\tsize=\"icon\"\n\t\t\tvariant=\"ghost\"\n\t\t\tclassName={cn(\"size-7\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<DotsThreeIcon weight=\"bold\" />\n\t\t</Button>\n\t);\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div aria-hidden=\"true\" data-slot=\"skeleton\" className={cn(\"animate-pulse rounded-md bg-muted\", className)} {...props} />;\n}\n","import { useFormStatus } from \"react-dom\";\nimport { CircleNotchIcon } from \"@phosphor-icons/react\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\nexport interface SubmitButtonProps extends Omit<ButtonProps, \"type\"> { pendingLabel?: string; loading?: boolean; children: React.ReactNode; }\n\nexport function SubmitButton({ pendingLabel = \"Guardando…\", loading = false, children, isDisabled, size = \"sm\", ...props }: SubmitButtonProps) {\n const { pending } = useFormStatus();\n const busy = pending || loading;\n return <Button type=\"submit\" size={size} isDisabled={busy || isDisabled} aria-busy={busy || undefined} {...props}>{busy ? <><CircleNotchIcon aria-hidden=\"true\" className=\"size-3.5 animate-spin\" />{pendingLabel}</> : children}</Button>;\n}\n","import {\n SwitchButton as AriaSwitchButton,\n SwitchField as AriaSwitchField,\n type SwitchButtonRenderProps,\n type SwitchFieldProps as AriaSwitchProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type SwitchProps = Omit<AriaSwitchProps, \"className\"> & {\n className?: string | ((values: SwitchButtonRenderProps) => string);\n size?: \"sm\" | \"md\";\n};\n\nconst sizeStyles = {\n sm: { track: \"h-5 w-9 p-0.5\", thumb: \"size-4\", travel: \"group-data-selected/switch:translate-x-4\" },\n md: { track: \"h-6 w-11 p-0.5\", thumb: \"size-5\", travel: \"group-data-selected/switch:translate-x-5\" },\n} as const;\n\nexport function Switch({ className, children, size = \"sm\", ...props }: SwitchProps) {\n const styles = sizeStyles[size];\n\n return (\n <AriaSwitchField {...props}>\n <AriaSwitchButton\n data-slot=\"switch\"\n data-size={size}\n className={(state) =>\n cn(\n \"group/switch inline-flex w-max items-center gap-2 text-sm text-foreground outline-none\",\n \"data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n typeof className === \"function\" ? className(state) : className,\n )\n }\n >\n {(state) => (\n <>\n <span\n aria-hidden=\"true\"\n className={cn(\n \"relative inline-flex shrink-0 items-center rounded-full border border-transparent bg-secondary\",\n \"shadow-[inset_0_1px_2px_rgb(0_0_0/0.08)]\",\n \"transition-[background-color,box-shadow] duration-200 ease-out\",\n \"group-data-selected/switch:bg-primary group-data-hovered/switch:bg-secondary/80\",\n \"group-data-selected/switch:group-data-hovered/switch:bg-primary/90\",\n \"group-data-focus-visible/switch:ring-3 group-data-focus-visible/switch:ring-ring/40\",\n \"group-data-pressed/switch:ring-4 group-data-pressed/switch:ring-primary/10\",\n \"motion-reduce:transition-none\",\n styles.track,\n )}\n >\n <span\n className={cn(\n \"pointer-events-none block rounded-full bg-background shadow-[0_1px_2px_rgb(0_0_0/0.18)]\",\n \"transition-[transform,background-color,box-shadow] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]\",\n \"group-data-selected/switch:bg-primary-foreground group-data-selected/switch:shadow-[0_1px_3px_rgb(0_0_0/0.22)]\",\n \"group-data-pressed/switch:scale-[0.94] motion-reduce:transition-none\",\n styles.travel,\n styles.thumb,\n )}\n />\n </span>\n {children != null && (\n <span className=\"select-none font-medium leading-5 text-foreground\">\n {typeof children === \"function\" ? children(state) : children}\n </span>\n )}\n </>\n )}\n </AriaSwitchButton>\n </AriaSwitchField>\n );\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Presentational table primitives. Sorting, pagination and data state stay in the application. */\nexport function Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\"><table data-slot=\"table\" className={cn(\"w-full caption-bottom text-sm\", className)} {...props} /></div>;\n}\n\nexport function TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return <thead data-slot=\"table-header\" className={cn(\"border-b border-border\", className)} {...props} />;\n}\nexport function TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return <tbody data-slot=\"table-body\" className={cn(\"[&_tr:last-child]:border-0\", className)} {...props} />;\n}\nexport function TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return <tr data-slot=\"table-row\" className={cn(\"border-b border-border transition-colors hover:bg-muted/50\", className)} {...props} />;\n}\nexport function TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return <th data-slot=\"table-head\" className={cn(\"h-10 px-3 text-left align-middle text-xs font-medium text-muted-foreground\", className)} {...props} />;\n}\nexport function TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return <td data-slot=\"table-cell\" className={cn(\"p-3 align-middle\", className)} {...props} />;\n}\nexport function TableCaption({ className, ...props }: React.ComponentProps<\"caption\">) {\n return <caption data-slot=\"table-caption\" className={cn(\"mt-4 text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import {\n Tab as AriaTab,\n TabList as AriaTabList,\n TabPanel as AriaTabPanel,\n TabPanels as AriaTabPanels,\n Tabs as AriaTabs,\n composeRenderProps,\n type TabListProps as AriaTabListProps,\n type TabPanelProps as AriaTabPanelProps,\n type TabPanelsProps as AriaTabPanelsProps,\n type TabProps as AriaTabProps,\n type TabsProps as AriaTabsProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type TabsProps = AriaTabsProps;\nexport type TabProps = AriaTabProps;\nexport type TabPanelProps = AriaTabPanelProps;\n\nexport function Tabs({ className, ...props }: AriaTabsProps) {\n return <AriaTabs data-slot=\"tabs\" className={composeRenderProps(className, (value) => cn(\"flex flex-col gap-2\", value))} {...props} />;\n}\n\nexport function TabsList<T extends object>({ className, ...props }: AriaTabListProps<T>) {\n return <AriaTabList data-slot=\"tabs-list\" className={composeRenderProps(className, (value) => cn(\"inline-flex w-fit items-center gap-1 rounded-lg bg-muted p-1 text-muted-foreground\", value))} {...props} />;\n}\n\nexport function TabsTrigger({ className, ...props }: AriaTabProps) {\n return <AriaTab data-slot=\"tabs-trigger\" className={composeRenderProps(className, (value) => cn(\"inline-flex h-7 items-center justify-center gap-1.5 rounded-md px-2.5 text-sm font-medium outline-none transition-colors data-hovered:text-foreground data-selected:bg-background data-selected:text-foreground data-selected:shadow-sm data-focus-visible:ring-3 data-focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50\", value))} {...props} />;\n}\n\nexport function TabsPanels<T extends object>({ className, ...props }: AriaTabPanelsProps<T>) {\n return <AriaTabPanels data-slot=\"tabs-panels\" className={cn(\"min-w-0\", className)} {...props} />;\n}\n\nexport function TabsContent({ className, ...props }: AriaTabPanelProps) {\n return <AriaTabPanel data-slot=\"tabs-content\" className={composeRenderProps(className, (value) => cn(\"text-sm outline-none data-focus-visible:ring-3 data-focus-visible:ring-ring/50\", value))} {...props} />;\n}\n","import { useEffect, useSyncExternalStore, type ReactNode } from \"react\";\nimport { CheckCircleIcon, InfoIcon, WarningCircleIcon, XCircleIcon, XIcon } from \"@phosphor-icons/react\";\nimport { Button } from \"../button/button\";\nimport { cn } from \"../../lib/cn\";\n\nexport type ToastVariant = \"default\" | \"success\" | \"error\" | \"warning\" | \"info\";\nexport type ToastPosition = \"top-left\" | \"top-center\" | \"top-right\" | \"bottom-left\" | \"bottom-center\" | \"bottom-right\";\nexport type ToastAction = { label: string; onPress: () => void };\nexport type ToastOptions = { title: string; description?: string; variant?: ToastVariant; duration?: number; position?: ToastPosition; action?: ToastAction };\nexport type ToastData = ToastOptions & { id: string; state: \"open\" | \"closing\" };\ntype ToastPromiseOptions<T> = { loading: string; success: string | ((value: T) => string); error: string | ((error: unknown) => string); description?: string; position?: ToastPosition };\n\nlet records: ToastData[] = [];\nconst listeners = new Set<() => void>();\nconst snapshot = () => records;\nconst emit = () => listeners.forEach((listener) => listener());\nconst subscribe = (listener: () => void) => { listeners.add(listener); return () => listeners.delete(listener); };\nconst remove = (id: string) => { records = records.filter((record) => record.id !== id); emit(); };\n\nfunction create(options: ToastOptions) {\n const id = `${Date.now()}-${Math.random().toString(36).slice(2)}`;\n records = [...records, { ...options, id, state: \"open\", variant: options.variant ?? \"default\", duration: options.duration ?? 5000, position: options.position ?? \"bottom-right\" }];\n emit();\n return id;\n}\n\nfunction dismiss(id: string) {\n if (!records.some((record) => record.id === id && record.state === \"open\")) return;\n records = records.map((record) => record.id === id ? { ...record, state: \"closing\" } : record);\n emit();\n window.setTimeout(() => remove(id), 180);\n}\n\nfunction update(id: string, patch: Partial<ToastData>) { records = records.map((record) => record.id === id ? { ...record, ...patch, state: \"open\" } : record); emit(); }\n\nexport const toast = Object.assign((options: ToastOptions) => create(options), {\n success: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"success\" }),\n error: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"error\" }),\n warning: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"warning\" }),\n info: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"info\" }),\n dismiss,\n promise: <T,>(promise: Promise<T>, options: ToastPromiseOptions<T>) => {\n const id = create({ title: options.loading, description: options.description, variant: \"default\", duration: 0, position: options.position });\n promise.then((value) => update(id, { title: typeof options.success === \"function\" ? options.success(value) : options.success, variant: \"success\", duration: 4000 })).catch((error: unknown) => update(id, { title: typeof options.error === \"function\" ? options.error(error) : options.error, variant: \"error\", duration: 6000 }));\n return promise;\n },\n});\n\nexport function useToast() { return toast; }\nexport function ToastProvider({ children }: { children: ReactNode }) { return <>{children}<Toaster /></>; }\n\nconst positionClasses: Record<ToastPosition, string> = {\n \"top-left\": \"top-4 left-4 items-start\", \"top-center\": \"top-4 left-1/2 -translate-x-1/2 items-center\", \"top-right\": \"top-4 right-4 items-end\",\n \"bottom-left\": \"bottom-4 left-4 items-start\", \"bottom-center\": \"bottom-4 left-1/2 -translate-x-1/2 items-center\", \"bottom-right\": \"bottom-4 right-4 items-end\",\n};\n\nexport function Toaster({ position = \"bottom-right\" }: { position?: ToastPosition }) {\n return <>{(Object.keys(positionClasses) as ToastPosition[]).map((item) => <ToastViewport key={item} position={item} visiblePosition={position} />)}</>;\n}\n\nexport function ToastViewport({ position, visiblePosition, className }: { position: ToastPosition; visiblePosition?: ToastPosition; className?: string }) {\n const toasts = useSyncExternalStore(subscribe, snapshot, snapshot).filter((item) => item.position === position);\n if (visiblePosition && position !== visiblePosition && toasts.length === 0) return null;\n return <div aria-label={`Notificaciones ${position}`} className={cn(\"pointer-events-none fixed z-50 flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-2\", positionClasses[position], className)}>{toasts.map((item) => <Toast key={item.id} {...item} onDismiss={() => dismiss(item.id)} />)}</div>;\n}\n\nexport function Toast({ id, title, description, variant = \"default\", action, state = \"open\", duration = 0, onDismiss }: ToastData & { onDismiss?: () => void }) {\n useEffect(() => { if (state !== \"open\" || duration <= 0) return; const timeout = window.setTimeout(() => dismiss(id), duration); return () => window.clearTimeout(timeout); }, [duration, id, state]);\n const Icon = variant === \"success\" ? CheckCircleIcon : variant === \"error\" ? XCircleIcon : variant === \"warning\" ? WarningCircleIcon : variant === \"info\" ? InfoIcon : InfoIcon;\n return <div role={variant === \"error\" ? \"alert\" : \"status\"} data-state={state} className={cn(\"pointer-events-auto w-full overflow-hidden rounded-xl border border-border/80 bg-background/95 p-3.5 text-foreground shadow-xl shadow-black/10 backdrop-blur-md animate-ui-toast-in\", \"data-[state=closing]:animate-ui-toast-out motion-reduce:animate-none\", variant === \"success\" && \"border-success/30\", variant === \"error\" && \"border-destructive/30\", variant === \"warning\" && \"border-warning/40\")}><div className=\"flex items-start gap-3\"><Icon aria-hidden=\"true\" weight=\"duotone\" className={cn(\"mt-0.5 size-5 shrink-0\", variant === \"success\" && \"text-success\", variant === \"error\" && \"text-destructive\", variant === \"warning\" && \"text-warning\", variant === \"info\" && \"text-primary\")} /><div className=\"min-w-0 flex-1\"><p className=\"animate-ui-toast-title text-sm font-semibold\">{title}</p>{description && <p className=\"mt-1 max-h-20 animate-ui-toast-description overflow-hidden text-sm leading-5 text-muted-foreground data-[state=closing]:max-h-0\" data-state={state}>{description}</p>}{action && <Button size=\"sm\" variant=\"link\" onPress={action.onPress} className=\"mt-1 h-auto px-0\">{action.label}</Button>}</div><Button aria-label=\"Cerrar notificación\" onPress={onDismiss} size=\"icon\" variant=\"ghost\" className=\"-mr-2 -mt-2 size-7\"><XIcon /></Button></div></div>;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nexport function Toolbar({ className, ...props }: React.ComponentProps<\"div\">) { return <div role=\"toolbar\" data-slot=\"toolbar\" className={cn(\"flex flex-wrap items-center gap-2\", className)} {...props} />; }\nexport function ToolbarGroup({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"toolbar-group\" className={cn(\"flex items-center gap-2\", className)} {...props} />; }\nexport function ToolbarSpacer({ className, ...props }: React.ComponentProps<\"div\">) { return <div aria-hidden=\"true\" className={cn(\"hidden flex-1 sm:block\", className)} {...props} />; }\n"],"mappings":";;;AAAA,SAAS,aAAa,WAAW,QAAQ,gBAAgB;AAalD,SAAS,YAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,UAAU;AAAA,EACV,YAAY,KAAK;AACnB,GAA0B;AACxB,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAyB,MAAM;AAC3D,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAuB,IAAI;AACrD,QAAM,YAAY,OAAsB,IAAI;AAC5C,QAAM,UAAU,OAAO,MAAM;AAC7B,QAAM,eAAe,OAAO,SAAS;AAErC,YAAU,MAAM;AACd,YAAQ,UAAU;AAClB,iBAAa,UAAU;AAAA,EACzB,GAAG,CAAC,QAAQ,SAAS,CAAC;AAEtB,QAAM,OAAO,YAAY,OAAO,UAAa;AAC3C,cAAU,QAAQ;AAClB,aAAS,IAAI;AACb,QAAI;AACF,YAAM,QAAQ,QAAQ,KAAK;AAC3B,gBAAU,UAAU,aAAa,QAAQ,KAAK;AAC9C,gBAAU,OAAO;AAAA,IACnB,SAAS,OAAO;AACd,eAAS,iBAAiB,QAAQ,QAAQ,IAAI,MAAM,qBAAqB,CAAC;AAC1E,gBAAU,OAAO;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,YAAU,MAAM;AACd,QAAI,CAAC,QAAS;AACd,UAAMA,YAAW,aAAa,QAAQ,IAAI;AAC1C,QAAI,UAAU,YAAY,MAAM;AAC9B,gBAAU,UAAUA;AACpB;AAAA,IACF;AACA,QAAIA,cAAa,UAAU,QAAS;AACpC,UAAM,UAAU,OAAO,WAAW,MAAM,KAAK,KAAK,IAAI,GAAG,UAAU;AACnE,WAAO,MAAM,OAAO,aAAa,OAAO;AAAA,EAC1C,GAAG,CAAC,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GAAI,GAAG,OAAO;AAAI;AACtM,SAAS,aAAa,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,gBAAAA,MAAC,SAAI,aAAU,iBAAgB,WAAW,GAAG,2BAA2B,SAAS,GAAI,GAAG,OAAO;AAAI;AACxL,SAAS,cAAc,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,gBAAAA,MAAC,SAAI,eAAY,QAAO,WAAW,GAAG,0BAA0B,SAAS,GAAI,GAAG,OAAO;AAAI;","names":["snapshot","useEffect","useState","useCallback","useRef","useState","jsx","jsx","useState","jsx","useState","jsx","jsx","cva","jsx","cva","Button","jsx","jsx","Fragment","jsx","jsxs","Fragment","useState","jsx","jsxs","jsx","Fragment","useState","jsxs","AriaComboBox","ListBox","ListBoxItem","Popover","jsx","AriaComboBox","Popover","ListBox","ListBoxItem","Text","jsx","jsxs","Button","Text","jsx","jsxs","Button","AriaDialog","Modal","ModalOverlay","jsx","ModalOverlay","Modal","AriaDialog","jsx","jsx","jsx","Label","jsx","Label","FieldError","useCallback","useEffect","useRef","useState","jsx","jsxs","useState","useRef","useCallback","useEffect","Fragment","jsx","jsxs","jsx","jsx","jsxs","Button","forwardRef","AriaInput","jsx","forwardRef","Input","AriaInput","cva","forwardRef","jsx","forwardRef","Textarea","jsx","cva","Button","Input","Textarea","jsx","CircleNotchIcon","jsx","jsxs","CircleNotchIcon","AriaMenu","AriaMenuItem","AriaMenuTrigger","Popover","jsx","AriaMenuTrigger","Popover","AriaMenu","AriaMenuItem","jsx","jsx","jsxs","Button","AriaPopover","jsx","Popover","AriaPopover","AriaButton","AriaInput","jsx","jsxs","AriaButton","AriaInput","Button","Input","XIcon","jsx","Input","XIcon","Button","AriaButton","ListBox","ListBoxItem","Popover","CaretDownIcon","Fragment","jsx","jsxs","AriaButton","CaretDownIcon","Popover","ListBox","ListBoxItem","AriaSeparator","jsx","AriaSeparator","CaretLeftIcon","CaretRightIcon","createContext","useContext","useMemo","useState","Link","Fragment","jsx","jsxs","createContext","useContext","useState","useMemo","Link","Button","CaretRightIcon","CaretLeftIcon","jsx","CircleNotchIcon","Fragment","jsx","jsxs","Button","CircleNotchIcon","Fragment","jsx","jsxs","jsx","jsx","useEffect","CheckCircleIcon","WarningCircleIcon","XIcon","Fragment","jsx","jsxs","useEffect","CheckCircleIcon","WarningCircleIcon","Button","XIcon","jsx"]}
1
+ {"version":3,"sources":["../src/hooks/use-autosave.ts","../src/hooks/use-debounced-value.ts","../src/hooks/use-form-dirty.ts","../src/lib/cn.ts","../src/lib/text-match.ts","../src/ui/accordion/accordion.tsx","../src/ui/alert/alert.tsx","../src/ui/app-shell/app-shell.tsx","../src/ui/avatar/avatar.tsx","../src/ui/badge/badge.tsx","../src/ui/breadcrumb/breadcrumb.tsx","../src/ui/button-group/button-group.tsx","../src/ui/button/button.tsx","../src/ui/card/card.tsx","../src/ui/checkbox/checkbox.tsx","../src/ui/combobox/combobox.tsx","../src/ui/command/command.tsx","../src/ui/modal-dialog/modal-dialog.tsx","../src/ui/confirm-dialog/confirm-dialog.tsx","../src/ui/drawer/drawer.tsx","../src/ui/dropdown-menu/dropdown-menu.tsx","../src/ui/empty-state/empty-state.tsx","../src/ui/label/label.tsx","../src/ui/field/field.tsx","../src/ui/form-feedback/form-feedback.tsx","../src/ui/form-row/form-row.tsx","../src/ui/icon-button/icon-button.tsx","../src/ui/tooltip/tooltip.tsx","../src/ui/input-group/input-group.tsx","../src/ui/input/input.tsx","../src/ui/textarea/textarea.tsx","../src/ui/kbd/kbd.tsx","../src/ui/loading-overlay/loading-overlay.tsx","../src/ui/menu/menu.tsx","../src/ui/page-header/page-header.tsx","../src/ui/pagination/pagination.tsx","../src/ui/popover/popover.tsx","../src/ui/quantity-input/quantity-input.tsx","../src/ui/search-field/search-field.tsx","../src/ui/select/select.tsx","../src/ui/separator/separator.tsx","../src/ui/sidebar/sidebar.tsx","../src/ui/skeleton/skeleton.tsx","../src/ui/submit-button/submit-button.tsx","../src/ui/switch/switch.tsx","../src/ui/table/table.tsx","../src/ui/tabs/tabs.tsx","../src/ui/toast/toast.tsx","../src/ui/toolbar/toolbar.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\";\n\nexport type AutosaveStatus = \"idle\" | \"saving\" | \"saved\" | \"error\";\n\nexport type UseAutosaveOptions<T> = {\n data: T;\n onSave: (data: T) => Promise<void>;\n debounceMs?: number;\n enabled?: boolean;\n serialize?: (data: T) => string;\n};\n\n/** Debounced autosave with stale-value protection and an explicit `saveNow`. */\nexport function useAutosave<T>({\n data,\n onSave,\n debounceMs = 1_000,\n enabled = true,\n serialize = JSON.stringify,\n}: UseAutosaveOptions<T>) {\n const [status, setStatus] = useState<AutosaveStatus>(\"idle\");\n const [error, setError] = useState<Error | null>(null);\n const lastSaved = useRef<string | null>(null);\n const saveRef = useRef(onSave);\n const serializeRef = useRef(serialize);\n\n useEffect(() => {\n saveRef.current = onSave;\n serializeRef.current = serialize;\n }, [onSave, serialize]);\n\n const save = useCallback(async (value: T) => {\n setStatus(\"saving\");\n setError(null);\n try {\n await saveRef.current(value);\n lastSaved.current = serializeRef.current(value);\n setStatus(\"saved\");\n } catch (cause) {\n setError(cause instanceof Error ? cause : new Error(\"No se pudo guardar.\"));\n setStatus(\"error\");\n }\n }, []);\n\n useEffect(() => {\n if (!enabled) return;\n const snapshot = serializeRef.current(data);\n if (lastSaved.current === null) {\n lastSaved.current = snapshot;\n return;\n }\n if (snapshot === lastSaved.current) return;\n const timeout = window.setTimeout(() => void save(data), debounceMs);\n return () => window.clearTimeout(timeout);\n }, [data, debounceMs, enabled, save]);\n\n return { status, error, saveNow: () => save(data) };\n}","import { useEffect, useState } from \"react\";\n\n/** Returns a value only after it has been stable for the supplied delay. */\nexport function useDebouncedValue<T>(value: T, delay: number = 250) {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const timeout = window.setTimeout(() => setDebouncedValue(value), delay);\n return () => window.clearTimeout(timeout);\n }, [delay, value]);\n\n return debouncedValue;\n}","import { type RefCallback, useCallback, useRef, useState } from \"react\";\n\nexport function formSnapshot(form: HTMLFormElement): string {\n const entries: Array<[string, string]> = Array.from(new FormData(form), ([key, value]) => [key, typeof value === \"string\" ? value : value.name]);\n entries.sort(([left], [right]) => left.localeCompare(right));\n return JSON.stringify(entries);\n}\n\nexport interface UseFormDirtyResult<T extends HTMLFormElement = HTMLFormElement> {\n formRef: RefCallback<T | null>;\n isDirty: boolean;\n markDirty: () => void;\n reset: () => void;\n}\n\n/** Tracks changes in native form controls and supports controlled fields. */\nexport function useFormDirty<T extends HTMLFormElement = HTMLFormElement>(): UseFormDirtyResult<T> {\n const formElement = useRef<T | null>(null);\n const baseline = useRef<string | null>(null);\n const [isDirty, setIsDirty] = useState(false);\n\n const recompute = useCallback(() => {\n if (formElement.current && baseline.current !== null) {\n setIsDirty(formSnapshot(formElement.current) !== baseline.current);\n }\n }, []);\n\n const reset = useCallback(() => {\n if (formElement.current) {\n baseline.current = formSnapshot(formElement.current);\n setIsDirty(false);\n }\n }, []);\n\n const formRef = useCallback<RefCallback<T | null>>((form) => {\n if (formElement.current) {\n formElement.current.removeEventListener(\"input\", recompute);\n formElement.current.removeEventListener(\"change\", recompute);\n formElement.current.removeEventListener(\"reset\", recompute);\n }\n formElement.current = form;\n if (form) {\n baseline.current = formSnapshot(form);\n setIsDirty(false);\n form.addEventListener(\"input\", recompute);\n form.addEventListener(\"change\", recompute);\n form.addEventListener(\"reset\", recompute);\n }\n }, [recompute]);\n\n return { formRef, isDirty, markDirty: () => setIsDirty(true), reset };\n}\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/** Merges conditional class names, resolving conflicting Tailwind utilities. */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}","export type TextMatchPart = {\n text: string;\n match: boolean;\n};\n\nfunction normalize(value: string) {\n return value.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\").toLocaleLowerCase();\n}\n\nfunction normalizedTextWithRanges(value: string) {\n const ranges: Array<{ start: number; end: number }> = [];\n let normalized = \"\";\n let sourceIndex = 0;\n\n for (const character of value) {\n const start = sourceIndex;\n sourceIndex += character.length;\n const normalizedCharacter = normalize(character);\n normalized += normalizedCharacter;\n for (let index = 0; index < normalizedCharacter.length; index += 1) {\n ranges.push({ start, end: sourceIndex });\n }\n }\n\n return { normalized, ranges };\n}\n\n/**\n * Splits text into matching and non-matching chunks. Matching is case- and\n * accent-insensitive while preserving the original text for rendering.\n */\nexport function getTextMatchParts(text: string, query: string): TextMatchPart[] {\n const term = normalize(query.trim());\n if (!term) return [{ text, match: false }];\n\n const { normalized, ranges } = normalizedTextWithRanges(text);\n const parts: TextMatchPart[] = [];\n let sourceCursor = 0;\n let index = normalized.indexOf(term);\n\n while (index !== -1) {\n const rangeStart = ranges[index]?.start;\n const rangeEnd = ranges[index + term.length - 1]?.end;\n if (rangeStart === undefined || rangeEnd === undefined) break;\n if (rangeStart > sourceCursor) parts.push({ text: text.slice(sourceCursor, rangeStart), match: false });\n parts.push({ text: text.slice(rangeStart, rangeEnd), match: true });\n sourceCursor = rangeEnd;\n index = normalized.indexOf(term, index + term.length);\n }\n\n if (sourceCursor < text.length) parts.push({ text: text.slice(sourceCursor), match: false });\n return parts.length ? parts : [{ text, match: false }];\n}\n","import { Disclosure as AriaDisclosure, DisclosureGroup as AriaDisclosureGroup, DisclosurePanel as AriaDisclosurePanel, Button, type DisclosureProps } from \"react-aria-components\";\nimport { ChevronDown } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Accordion({ className, ...props }: React.ComponentProps<typeof AriaDisclosureGroup>) {\n return <AriaDisclosureGroup data-slot=\"accordion\" className={cn(\"flex w-full flex-col\", className)} {...props} />;\n}\n\nexport function AccordionItem({ className, ...props }: DisclosureProps) {\n return <AriaDisclosure data-slot=\"accordion-item\" className={cn(\"border-b border-border last:border-0\", className)} {...props} />;\n}\n\nexport function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof Button>) {\n return <Button data-slot=\"accordion-trigger\" className={cn(\"group/accordion-trigger flex w-full items-center justify-between py-3 text-left text-sm font-medium outline-none transition-colors hover:text-primary focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props}>{(values) => <><span>{typeof children === \"function\" ? children(values) : children}</span><ChevronDown aria-hidden=\"true\" className=\"size-4 transition-transform group-data-expanded/accordion-trigger:rotate-180 motion-reduce:transition-none\" /></>}</Button>;\n}\n\nexport function AccordionContent({ className, ...props }: React.ComponentProps<typeof AriaDisclosurePanel>) {\n return <AriaDisclosurePanel data-slot=\"accordion-content\" className={cn(\"overflow-hidden pb-3 text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import type { ReactNode } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AlertProps = React.ComponentProps<\"div\"> & { variant?: \"default\" | \"destructive\" | \"success\" | \"warning\" };\n\nconst variants = {\n default: \"border-border bg-card text-foreground\",\n destructive: \"border-destructive/30 bg-destructive/5 text-destructive\",\n success: \"border-success/30 bg-success/5 text-success\",\n warning: \"border-warning/30 bg-warning/5 text-warning\",\n};\n\nexport function Alert({ className, variant = \"default\", ...props }: AlertProps) {\n return <div role=\"alert\" data-slot=\"alert\" data-variant={variant} className={cn(\"grid w-full gap-1 rounded-lg border px-3 py-2.5 text-sm [&>svg]:size-4\", variants[variant], className)} {...props} />;\n}\n\nexport function AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"alert-title\" className={cn(\"font-medium\", className)} {...props} />;\n}\n\nexport function AlertDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"alert-description\" className={cn(\"text-sm opacity-90\", className)} {...props} />;\n}\n\nexport function AlertAction({ className, children, ...props }: React.ComponentProps<\"div\"> & { children?: ReactNode }) {\n return <div data-slot=\"alert-action\" className={cn(\"absolute top-2 right-2\", className)} {...props}>{children}</div>;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AppShellBreakpoint = \"sm\" | \"md\" | \"lg\";\n\nexport type AppShellProps = React.ComponentProps<\"div\"> & {\n /** Breakpoint at which the persistent sidebar replaces the mobile header. */\n sidebarBreakpoint?: AppShellBreakpoint;\n};\n\nexport function AppShell({\n className,\n sidebarBreakpoint = \"md\",\n ...props\n}: AppShellProps) {\n return (\n <div\n data-slot=\"app-shell\"\n data-sidebar-breakpoint={sidebarBreakpoint}\n className={cn(\"bg-background text-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellSidebar({ className, ...props }: React.ComponentProps<\"aside\">) {\n return (\n <aside\n data-slot=\"app-shell-sidebar\"\n className={cn(\"w-56 shrink-0 border-r border-border bg-card text-foreground\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellMain({ className, ...props }: React.ComponentProps<\"main\">) {\n return <main data-slot=\"app-shell-main\" className={cn(\"bg-background\", className)} {...props} />;\n}\n\nexport function AppShellHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return (\n <header\n data-slot=\"app-shell-header\"\n className={cn(\"border-b border-border bg-background px-4\", className)}\n {...props}\n />\n );\n}\n\nexport function AppShellMobileHeader({\n className,\n ...props\n}: React.ComponentProps<\"header\">) {\n return (\n <header\n data-slot=\"app-shell-mobile-header\"\n className={cn(\"h-14 shrink-0 items-center gap-2 border-b border-border bg-background px-3\", className)}\n {...props}\n />\n );\n}\n\nexport type AppShellContentProps = React.ComponentProps<\"div\"> & {\n /** Maximum content width. Use `full` for dense application screens. */\n size?: \"default\" | \"wide\" | \"full\";\n /** Adds the standard responsive content padding. */\n padded?: boolean;\n /** Lets this region scroll while the surrounding shell remains fixed. */\n scrollable?: boolean;\n};\n\nexport function AppShellContent({\n className,\n size = \"wide\",\n padded = true,\n scrollable = true,\n ...props\n}: AppShellContentProps) {\n return (\n <div\n data-slot=\"app-shell-content\"\n data-size={size}\n data-padded={padded || undefined}\n data-scrollable={scrollable || undefined}\n className={className}\n {...props}\n />\n );\n}\n","import { useState } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type AvatarProps = React.ComponentProps<\"div\"> & { size?: \"xs\" | \"sm\" | \"default\" | \"lg\" };\n\nconst sizes = { xs: \"size-5 text-[10px]\", sm: \"size-6 text-xs\", default: \"size-8 text-sm\", lg: \"size-10 text-base\" };\n\nexport function Avatar({ className, size = \"default\", ...props }: AvatarProps) {\n return <div data-slot=\"avatar\" data-size={size} className={cn(\"group/avatar relative flex shrink-0 overflow-hidden rounded-full bg-muted text-muted-foreground\", sizes[size], className)} {...props} />;\n}\n\nexport function AvatarImage({ className, ...props }: React.ComponentProps<\"img\">) {\n const [failed, setFailed] = useState(false);\n if (failed) return null;\n return <img data-slot=\"avatar-image\" className={cn(\"aspect-square size-full object-cover\", className)} onError={() => setFailed(true)} {...props} />;\n}\n\nexport function AvatarFallback({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-fallback\" className={cn(\"flex size-full items-center justify-center font-medium\", className)} {...props} />;\n}\n\nexport function AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-badge\" className={cn(\"absolute right-0 bottom-0 size-2.5 rounded-full bg-success ring-2 ring-background\", className)} {...props} />;\n}\n\nexport function AvatarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"avatar-group\" className={cn(\"flex -space-x-2 [&>[data-slot=avatar]]:ring-2 [&>[data-slot=avatar]]:ring-background\", className)} {...props} />;\n}\n\nexport function AvatarGroupCount({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"avatar-group-count\" className={cn(\"flex size-8 items-center justify-center rounded-full bg-muted text-xs font-medium text-muted-foreground ring-2 ring-background\", className)} {...props} />;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport const badgeVariants = cva(\"inline-flex w-fit items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium\", {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground\",\n secondary: \"bg-secondary text-secondary-foreground\",\n neutral: \"bg-muted text-muted-foreground\",\n success: \"bg-success/10 text-success\",\n warning: \"bg-warning/10 text-warning\",\n destructive: \"bg-destructive/10 text-destructive\",\n outline: \"border border-border text-foreground\",\n },\n },\n defaultVariants: { variant: \"default\" },\n});\n\nexport type BadgeProps = React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants>;\n\nexport function Badge({ className, variant, ...props }: BadgeProps) {\n return <span data-slot=\"badge\" className={cn(badgeVariants({ variant }), className)} {...props} />;\n}\n","import { Breadcrumb as AriaBreadcrumb, Breadcrumbs as AriaBreadcrumbs, Link as AriaLink } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Breadcrumbs({ className, ...props }: React.ComponentProps<typeof AriaBreadcrumbs>) {\n return <AriaBreadcrumbs data-slot=\"breadcrumbs\" className={cn(\"flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function Breadcrumb({ className, ...props }: React.ComponentProps<typeof AriaBreadcrumb>) {\n return <AriaBreadcrumb data-slot=\"breadcrumb\" className={cn(\"inline-flex items-center gap-1.5\", className)} {...props} />;\n}\n\nexport function BreadcrumbLink({ className, ...props }: React.ComponentProps<typeof AriaLink>) {\n return <AriaLink data-slot=\"breadcrumb-link\" className={cn(\"transition-colors hover:text-foreground\", className)} {...props} />;\n}\n\nexport function BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"breadcrumb-page\" aria-current=\"page\" className={cn(\"font-medium text-foreground\", className)} {...props} />;\n}\n\nexport function BreadcrumbSeparator({ children = \"/\", className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"breadcrumb-separator\" aria-hidden=\"true\" className={cn(\"text-muted-foreground/60\", className)} {...props}>{children}</span>;\n}\n","import { cn } from \"../../lib/cn\";\n\nexport function ButtonGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div role=\"group\" data-slot=\"button-group\" className={cn(\"inline-flex items-center gap-2\", className)} {...props} />;\n}\n\nexport function ButtonGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"button-group-text\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport { Button as AriaButton, type ButtonProps as AriaButtonProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const buttonVariants = cva(\n \"inline-flex shrink-0 cursor-pointer items-center justify-center gap-1.5 rounded-lg border border-transparent text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,transform] duration-150 outline-none focus-visible:ring-3 focus-visible:ring-ring/50 data-pressed:scale-[0.98] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none motion-reduce:data-pressed:transform-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/85\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n outline: \"border-border bg-background text-foreground hover:bg-muted\",\n ghost: \"text-foreground hover:bg-muted\",\n destructive: \"bg-destructive/10 text-destructive hover:bg-destructive/20\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n xs: \"h-6 px-2 text-xs\",\n sm: \"h-7 px-2.5 text-xs\",\n default: \"h-8 px-3\",\n lg: \"h-10 px-4\",\n icon: \"size-8 p-0\",\n },\n },\n defaultVariants: { variant: \"default\", size: \"default\" },\n },\n);\n\nexport type ButtonProps = AriaButtonProps & VariantProps<typeof buttonVariants>;\n\nexport function Button({ className, variant, size, ...props }: ButtonProps) {\n return <AriaButton data-slot=\"button\" className={cn(buttonVariants({ variant, size }), className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Card({ className, ...props }: React.ComponentProps<\"section\">) {\n return <section data-slot=\"card\" className={cn(\"rounded-xl border border-border bg-card text-foreground shadow-sm\", className)} {...props} />;\n}\n\nexport function CardHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return <header data-slot=\"card-header\" className={cn(\"flex flex-col gap-1.5 p-5\", className)} {...props} />;\n}\n\nexport function CardTitle({ className, ...props }: React.ComponentProps<\"h2\">) {\n return <h2 data-slot=\"card-title\" className={cn(\"text-base font-semibold\", className)} {...props} />;\n}\n\nexport function CardDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"card-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"card-content\" className={cn(\"p-5 pt-0\", className)} {...props} />;\n}\n\nexport function CardFooter({ className, ...props }: React.ComponentProps<\"footer\">) {\n return <footer data-slot=\"card-footer\" className={cn(\"flex items-center gap-2 border-t border-border p-5\", className)} {...props} />;\n}\n","import {\n Checkbox as AriaCheckbox,\n type CheckboxProps as AriaCheckboxProps,\n} from \"react-aria-components\";\nimport { Check } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type CheckboxProps = Omit<AriaCheckboxProps, \"className\"> & { className?: string };\n\nexport function Checkbox({ className, children, ...props }: CheckboxProps) {\n return <AriaCheckbox data-slot=\"checkbox\" className={cn(\"group inline-flex items-center gap-2 text-sm text-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)} {...props}>\n {(state) => <><span aria-hidden=\"true\" className=\"grid size-4 place-items-center rounded border border-border bg-background text-primary-foreground transition-colors group-data-selected:border-primary group-data-selected:bg-primary group-data-focus-visible:ring-3 group-data-focus-visible:ring-ring/50\"><Check className=\"size-3 opacity-0 transition-opacity group-data-selected:opacity-100 motion-reduce:transition-none\" /></span>{typeof children === \"function\" ? children(state) : children}</>}\n </AriaCheckbox>;\n}\n","import { Fragment, useMemo, useState, type ReactNode } from \"react\";\nimport { ComboBox as AriaComboBox, ComboBoxValue, FieldError, Input, Label, ListBox, ListBoxItem, Popover, Text, type ComboBoxProps, type InputProps, type ListBoxItemProps, type ListBoxProps } from \"react-aria-components\";\nimport type { Key } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { getTextMatchParts } from \"../../lib/text-match\";\n\nexport const Combobox = AriaComboBox;\nexport { ComboBoxValue as ComboboxValue };\nexport type { ComboBoxProps };\n\nexport function ComboboxInput({ className, ...props }: InputProps) { return <Input data-slot=\"combobox-input\" className={cn(\"h-9 w-full rounded-lg border border-border bg-background px-2.5 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props} />; }\nexport function ComboboxContent({ className, ...props }: React.ComponentProps<typeof Popover>) { return <Popover data-slot=\"combobox-content\" className={cn(\"max-h-72 w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />; }\nexport function ComboboxList<T extends object>({ className, emptyState, ...props }: ListBoxProps<T> & { emptyState?: React.ReactNode }) { return <ListBox data-slot=\"combobox-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} renderEmptyState={emptyState ? () => emptyState : undefined} {...props} />; }\nexport function ComboboxItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) { return <ListBoxItem data-slot=\"combobox-item\" className={cn(\"flex w-full cursor-default items-center justify-between rounded-md px-2 py-2 text-sm outline-none transition-colors data-focused:bg-muted data-focused:text-foreground data-hovered:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</ListBoxItem>; }\nexport function HighlightMatch({ text, query, className }: { text: string; query: string; className?: string }) { return <span className={className}>{getTextMatchParts(text, query).map((part, index) => part.match ? <mark key={`${part.text}-${index}`} className=\"rounded bg-accent px-0.5 text-accent-foreground\">{part.text}</mark> : <Fragment key={`${part.text}-${index}`}>{part.text}</Fragment>)}</span>; }\n\nexport type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, \"children\" | \"items\" | \"inputValue\" | \"onInputChange\" | \"selectedKey\" | \"onSelectionChange\" | \"defaultFilter\"> & { items: readonly T[]; getItemKey: (item: T) => Key; getItemLabel: (item: T) => string; renderItem?: (item: T, query: string) => ReactNode; inputValue?: string; onInputChange?: (value: string) => void; selectedKey?: Key | null; onSelectionChange?: (key: Key | null, item?: T) => void; label?: ReactNode; description?: ReactNode; errorMessage?: ReactNode; emptyState?: ReactNode; suggestion?: boolean; placeholder?: string };\n\n/** A safe, keyboard-first autocomplete for users, contracts and other entities. */\nexport function AutocompleteCombobox<T extends object>({ items, getItemKey, getItemLabel, renderItem, inputValue: controlledInputValue, onInputChange, selectedKey, onSelectionChange, label, description, errorMessage, emptyState = <p className=\"px-3 py-7 text-center text-sm text-muted-foreground\">No hay resultados.</p>, suggestion = true, placeholder, className, onKeyDown: _onKeyDown, ...props }: AutocompleteComboboxProps<T>) {\n const [internalInputValue, setInternalInputValue] = useState(\"\");\n const inputValue = controlledInputValue ?? internalInputValue;\n const setInputValue = (value: string) => { setInternalInputValue(value); onInputChange?.(value); };\n const normalizedQuery = inputValue.trim().toLocaleLowerCase();\n const filteredItems = useMemo(() => normalizedQuery ? items.filter((item) => getItemLabel(item).toLocaleLowerCase().includes(normalizedQuery)) : [...items], [getItemLabel, items, normalizedQuery]);\n const suggestedItem = useMemo(() => !suggestion || !normalizedQuery ? undefined : items.find((item) => getItemLabel(item).toLocaleLowerCase().startsWith(normalizedQuery) && getItemLabel(item).length > inputValue.length), [getItemLabel, inputValue.length, items, normalizedQuery, suggestion]);\n const suggestionLabel = suggestedItem ? getItemLabel(suggestedItem) : undefined;\n const acceptSuggestion = () => { if (!suggestedItem || !suggestionLabel) return false; setInputValue(suggestionLabel); onSelectionChange?.(getItemKey(suggestedItem), suggestedItem); return true; };\n const handleKeyDown = (event: Parameters<NonNullable<InputProps[\"onKeyDown\"]>>[0]) => { if ((event.key === \"Tab\" || event.key === \"Enter\") && acceptSuggestion()) event.preventDefault(); };\n return <AriaComboBox<T> {...props} className={cn(\"group/combobox flex w-full flex-col gap-1.5\", className)} items={filteredItems} selectedKey={selectedKey} inputValue={inputValue} onInputChange={setInputValue} onSelectionChange={(key) => { const item = filteredItems.find((candidate) => String(getItemKey(candidate)) === String(key)); if (item) setInputValue(getItemLabel(item)); onSelectionChange?.(key, item); }}>\n {label && <Label className=\"text-sm font-medium text-foreground\">{label}</Label>}\n <div className=\"relative\">{suggestionLabel && <span aria-hidden=\"true\" className=\"pointer-events-none absolute inset-y-0 left-2.5 z-0 flex items-center whitespace-pre text-sm text-muted-foreground/60\"><span className=\"text-transparent\">{inputValue}</span>{suggestionLabel.slice(inputValue.length)}</span>}<ComboboxInput aria-autocomplete={suggestionLabel ? \"both\" : \"list\"} placeholder={placeholder} onKeyDown={handleKeyDown} className=\"relative z-10 bg-transparent\" /></div>\n {description && <Text slot=\"description\" className=\"text-xs text-muted-foreground\">{description}</Text>}\n {errorMessage && <FieldError className=\"text-xs text-destructive\">{errorMessage}</FieldError>}\n <ComboboxContent><ComboboxList<T> emptyState={emptyState}>{(item) => <ComboboxItem id={getItemKey(item)} textValue={getItemLabel(item)}>{renderItem ? renderItem(item, inputValue) : <HighlightMatch text={getItemLabel(item)} query={inputValue} />}</ComboboxItem>}</ComboboxList></ComboboxContent>\n </AriaComboBox>;\n}\n","import { ComboBox as AriaComboBox, Input as AriaInput, ListBox, ListBoxItem, Popover, type ComboBoxProps, type ListBoxItemProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Command<T extends object>({ className, ...props }: ComboBoxProps<T>) {\n return <AriaComboBox data-slot=\"command\" className={cn(\"w-full\", className)} {...props} />;\n}\n\nexport function CommandInput({ className, ...props }: React.ComponentProps<typeof AriaInput>) {\n return <AriaInput data-slot=\"command-input\" className={cn(\"h-9 w-full border-0 bg-transparent px-3 text-sm text-foreground outline-none placeholder:text-muted-foreground\", className)} {...props} />;\n}\n\nexport function CommandContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"command-content\" className={cn(\"w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 shadow-lg outline-none\", className)} {...props} />;\n}\n\nexport function CommandList<T extends object>({ className, ...props }: React.ComponentProps<typeof ListBox<T>>) {\n return <ListBox data-slot=\"command-list\" className={cn(\"max-h-72 overflow-y-auto\", className)} {...props} />;\n}\n\nexport function CommandItem<T extends object>({ className, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"command-item\" className={cn(\"flex cursor-default items-center rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { X } from \"lucide-react\";\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n Text,\n type ModalOverlayProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button } from \"../button/button\";\n\nconst sizeClasses = {\n sm: \"w-[min(calc(100dvw-2rem),24rem)]\",\n md: \"w-[min(calc(100dvw-2rem),28rem)]\",\n lg: \"w-[min(calc(100dvw-2rem),36rem)]\",\n} as const;\n\nexport type ModalDialogProps = Omit<\n ModalOverlayProps,\n \"children\" | \"className\" | \"isOpen\" | \"onOpenChange\"\n> & {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: React.ReactNode;\n description?: React.ReactNode;\n children?: React.ReactNode;\n footer?: React.ReactNode;\n size?: keyof typeof sizeClasses;\n showCloseButton?: boolean;\n className?: string;\n footerClassName?: string;\n};\n\n/**\n * Accessible modal with a consistent title, optional description, body and footer.\n * Its width is self-contained so consumer CSS cannot override it with max-width utilities.\n */\nexport function ModalDialog({\n open,\n onOpenChange,\n title,\n description,\n children,\n footer,\n size = \"sm\",\n showCloseButton = true,\n className,\n footerClassName,\n ...props\n}: ModalDialogProps) {\n const layoutClass = children\n ? footer\n ? \"grid-rows-[auto_minmax(0,1fr)_auto]\"\n : \"grid-rows-[auto_minmax(0,1fr)]\"\n : \"grid-rows-[auto_auto]\";\n\n return (\n <ModalOverlay\n isOpen={open}\n onOpenChange={onOpenChange}\n className=\"fixed inset-0 z-50 grid place-items-center bg-black/20 p-4 backdrop-blur-[1px] motion-safe:data-entering:animate-ui-overlay-in motion-safe:data-exiting:animate-ui-overlay-out\"\n {...props}\n >\n <Modal\n className={cn(\n \"max-h-[calc(100dvh-2rem)] outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\",\n sizeClasses[size],\n className,\n )}\n >\n <AriaDialog\n className={cn(\n \"grid max-h-[calc(100dvh-2rem)] overflow-hidden rounded-xl bg-background text-foreground shadow-xl outline-none\",\n layoutClass,\n )}\n >\n {({ close }) => (\n <>\n <header data-slot=\"modal-dialog-header\" className=\"flex items-start gap-3 border-b border-border px-5 py-4\">\n <div className=\"min-w-0 flex-1\">\n <Heading slot=\"title\" className=\"font-heading text-base leading-none font-medium\">\n {title}\n </Heading>\n {description ? (\n <Text slot=\"description\" className=\"mt-2 text-sm text-muted-foreground\">\n {description}\n </Text>\n ) : null}\n </div>\n {showCloseButton ? (\n <Button\n aria-label=\"Cerrar diálogo\"\n variant=\"ghost\"\n size=\"icon\"\n className=\"-mr-2 -mt-1\"\n onPress={close}\n >\n <X aria-hidden=\"true\" className=\"size-4\" />\n </Button>\n ) : null}\n </header>\n {children ? (\n <div data-slot=\"modal-dialog-body\" className=\"min-h-0 overflow-y-auto px-5 py-4\">\n {children}\n </div>\n ) : null}\n {footer ? (\n <footer\n data-slot=\"modal-dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 border-t border-border bg-muted/50 px-5 py-4 sm:flex-row sm:flex-wrap sm:justify-end\",\n footerClassName,\n )}\n >\n {footer}\n </footer>\n ) : null}\n </>\n )}\n </AriaDialog>\n </Modal>\n </ModalOverlay>\n );\n}\n","import type * as React from \"react\";\nimport { Button } from \"../button/button\";\nimport { ModalDialog } from \"../modal-dialog/modal-dialog\";\n\nexport type ConfirmDialogProps = {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: string;\n description?: React.ReactNode;\n confirmLabel?: string;\n cancelLabel?: string;\n destructive?: boolean;\n pending?: boolean;\n onConfirm: () => void;\n};\n\n/** Controlled confirmation dialog for irreversible actions. */\nexport function ConfirmDialog({\n open,\n onOpenChange,\n title,\n description,\n confirmLabel = \"Confirmar\",\n cancelLabel = \"Cancelar\",\n destructive = false,\n pending = false,\n onConfirm,\n}: ConfirmDialogProps) {\n return (\n <ModalDialog\n open={open}\n onOpenChange={onOpenChange}\n title={title}\n description={description}\n showCloseButton={false}\n footer={\n <>\n <Button variant=\"outline\" isDisabled={pending} onPress={() => onOpenChange(false)}>\n {cancelLabel}\n </Button>\n <Button variant={destructive ? \"destructive\" : \"default\"} isDisabled={pending} onPress={onConfirm}>\n {confirmLabel}\n </Button>\n </>\n }\n />\n );\n}\n","import { Dialog as AriaDialog, Modal, ModalOverlay, type ModalOverlayProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport interface DrawerProps extends Omit<ModalOverlayProps, \"children\" | \"className\"> { children: React.ReactNode; side?: \"left\" | \"right\" | \"bottom\"; className?: string; }\n\nconst sideStyles = { left: \"inset-y-0 left-0 h-full w-[min(22rem,calc(100%-2rem))] data-entering:animate-ui-surface-in\", right: \"inset-y-0 right-0 h-full w-[min(22rem,calc(100%-2rem))] data-entering:animate-ui-surface-in\", bottom: \"inset-x-0 bottom-0 max-h-[85vh] w-full data-entering:animate-ui-surface-in\" };\n\nexport function Drawer({ children, side = \"right\", className, ...props }: DrawerProps) {\n return <ModalOverlay isDismissable className=\"fixed inset-0 z-50 bg-black/20 backdrop-blur-[1px] motion-safe:data-entering:animate-ui-overlay-in motion-safe:data-exiting:animate-ui-overlay-out\" {...props}><Modal className={cn(\"absolute grid gap-4 overflow-y-auto rounded-xl border border-border bg-background p-5 text-foreground shadow-xl outline-none\", sideStyles[side], className)}><AriaDialog data-slot=\"drawer\" className=\"outline-none\">{children}</AriaDialog></Modal></ModalOverlay>;\n}\n\nexport function DrawerHeader({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"drawer-header\" className={cn(\"flex flex-col gap-1.5\", className)} {...props} />; }\nexport function DrawerFooter({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"drawer-footer\" className={cn(\"mt-auto flex flex-col-reverse gap-2 pt-4 sm:flex-row sm:justify-end\", className)} {...props} />; }\nexport function DrawerTitle({ className, ...props }: React.ComponentProps<\"h2\">) { return <h2 data-slot=\"drawer-title\" className={cn(\"text-base font-semibold\", className)} {...props} />; }\nexport function DrawerDescription({ className, ...props }: React.ComponentProps<\"p\">) { return <p data-slot=\"drawer-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />; }\n","import { Menu as AriaMenu, MenuItem as AriaMenuItem, MenuTrigger as AriaMenuTrigger, Popover as AriaPopover, Separator as AriaSeparator, type MenuItemProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const DropdownMenu = AriaMenu;\nexport const DropdownMenuTrigger = AriaMenuTrigger;\n\nexport function DropdownMenuContent({ className, ...props }: React.ComponentProps<typeof AriaPopover>) {\n return <AriaPopover data-slot=\"dropdown-menu-content\" offset={6} className={cn(\"min-w-40 overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport function DropdownMenuItem({ className, ...props }: MenuItemProps) {\n return <AriaMenuItem data-slot=\"dropdown-menu-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props} />;\n}\n\nexport function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof AriaSeparator>) {\n return <AriaSeparator data-slot=\"dropdown-menu-separator\" className={cn(\"my-1 h-px bg-border\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function EmptyState({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"empty-state\" className={cn(\"flex min-h-44 w-full flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-border p-6 text-center\", className)} {...props} />;\n}\n\nexport function EmptyStateTitle({ className, ...props }: React.ComponentProps<\"h3\">) {\n return <h3 data-slot=\"empty-state-title\" className={cn(\"text-sm font-medium text-foreground\", className)} {...props} />;\n}\n\nexport function EmptyStateDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"empty-state-description\" className={cn(\"max-w-sm text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import { forwardRef, type ComponentPropsWithRef } from \"react\";\nimport { Label as LabelPrimitive } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const Label = forwardRef<HTMLLabelElement, ComponentPropsWithRef<typeof LabelPrimitive>>(function Label({ className, ...props }, ref) {\n return <LabelPrimitive ref={ref} data-slot=\"label\" className={cn(\"flex items-center gap-2 text-sm font-medium leading-none select-none\", className)} {...props} />;\n});\n\nexport type LabelProps = ComponentPropsWithRef<typeof Label>;\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nimport { Label } from \"../label/label\";\n\nexport function Field({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"field\" className={cn(\"flex w-full flex-col gap-2\", className)} {...props} />;\n}\n\nexport function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n return <Label data-slot=\"field-label\" className={cn(\"text-foreground\", className)} {...props} />;\n}\n\nexport function FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"field-description\" className={cn(\"text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function FieldError({ className, children, ...props }: React.ComponentProps<\"p\">) {\n if (!children) return null;\n return <p role=\"alert\" data-slot=\"field-error\" className={cn(\"text-sm text-destructive\", className)} {...props}>{children}</p>;\n}\n","import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { CheckCircle, LoaderCircle, CircleAlert } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type FormFeedbackState = { status: \"idle\" } | { status: \"pending\" } | { status: \"success\"; message?: string } | { status: \"error\"; message: string };\n\nexport function useFormFeedback(options?: { successResetMs?: number }) {\n const resetMs = options?.successResetMs ?? 2500;\n const [state, setState] = useState<FormFeedbackState>({ status: \"idle\" });\n const timer = useRef<ReturnType<typeof setTimeout> | null>(null);\n const clearTimer = useCallback(() => { if (timer.current) clearTimeout(timer.current); timer.current = null; }, []);\n useEffect(() => () => clearTimer(), [clearTimer]);\n const setPending = useCallback(() => { clearTimer(); setState({ status: \"pending\" }); }, [clearTimer]);\n const setSuccess = useCallback((message?: string) => { clearTimer(); setState({ status: \"success\", message }); if (resetMs > 0) timer.current = setTimeout(() => setState({ status: \"idle\" }), resetMs); }, [clearTimer, resetMs]);\n const setError = useCallback((message: string) => { clearTimer(); setState({ status: \"error\", message }); }, [clearTimer]);\n const reset = useCallback(() => { clearTimer(); setState({ status: \"idle\" }); }, [clearTimer]);\n return { state, pending: state.status === \"pending\", setPending, setSuccess, setError, reset };\n}\n\nexport interface FormFeedbackProps { state: FormFeedbackState; className?: string; pendingLabel?: string; successLabel?: string; }\n\nexport function FormFeedback({ state, className, pendingLabel = \"Guardando…\", successLabel = \"Guardado\" }: FormFeedbackProps) {\n if (state.status === \"idle\") return <span aria-hidden=\"true\" className={cn(\"inline-flex h-5 items-center\", className)} />;\n const error = state.status === \"error\";\n const success = state.status === \"success\";\n return <span role={error ? \"alert\" : \"status\"} aria-live=\"polite\" className={cn(\"inline-flex h-5 items-center gap-1.5 text-xs\", error && \"text-destructive\", success && \"text-success\", state.status === \"pending\" && \"text-muted-foreground\", className)}>\n {state.status === \"pending\" && <LoaderCircle aria-hidden=\"true\" className=\"size-3.5 animate-spin\" />}\n {success && <CheckCircle aria-hidden=\"true\" className=\"size-3.5\" />}\n {error && <CircleAlert aria-hidden=\"true\" className=\"size-3.5\" />}\n <span>{state.status === \"pending\" ? pendingLabel : success ? state.message ?? successLabel : state.message}</span>\n </span>;\n}\n","import type { ReactNode } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport interface FormRowProps {\n label: ReactNode;\n htmlFor: string;\n required?: boolean;\n hint?: ReactNode;\n error?: ReactNode;\n className?: string;\n children: ReactNode;\n}\n\nexport function FormRow({ label, htmlFor, required, hint, error, className, children }: FormRowProps) {\n const hintId = hint ? `${htmlFor}-hint` : undefined;\n const errorId = error ? `${htmlFor}-error` : undefined;\n return <div data-slot=\"form-row\" className={cn(\"flex flex-col gap-1.5\", className)}>\n <label htmlFor={htmlFor} className=\"text-sm font-medium text-foreground\">{label}{required && <><span aria-hidden=\"true\" className=\"ml-0.5 text-destructive\">*</span><span className=\"sr-only\"> (obligatorio)</span></>}</label>\n {children}\n {hint && <p id={hintId} className=\"text-xs text-muted-foreground\">{hint}</p>}\n {error && <p id={errorId} role=\"alert\" className=\"text-xs font-medium text-destructive\">{error}</p>}\n </div>;\n}\n","import type { ReactNode } from \"react\";\nimport { Link } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps, buttonVariants } from \"../button/button\";\nimport { Tooltip, TooltipTrigger } from \"../tooltip/tooltip\";\n\nexport type IconButtonProps = Omit<ButtonProps, \"children\"> & {\n\t/** Accessible name and text shown in the tooltip. */\n\tlabel: string;\n\t/** Optional href for rendering the action as an accessible link. */\n\thref?: string;\n\tchildren?: ReactNode;\n};\n\n/** A consistently sized icon-only action with an accessible tooltip. */\nexport function IconButton({\n\tlabel,\n\tchildren,\n\thref,\n\tclassName,\n\tvariant,\n\t...props\n}: IconButtonProps) {\n\tconst linkClassName = cn(\n\t\tbuttonVariants({ variant, size: \"icon\" }),\n\t\tclassName,\n\t);\n\n\treturn (\n\t\t<TooltipTrigger>\n\t\t\t{href ? (\n\t\t\t\t<Link\n\t\t\t\t\tdata-slot=\"icon-button\"\n\t\t\t\t\taria-label={label}\n\t\t\t\t\thref={href}\n\t\t\t\t\tclassName={linkClassName}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Link>\n\t\t\t) : (\n\t\t\t\t<Button\n\t\t\t\t\tdata-slot=\"icon-button\"\n\t\t\t\t\taria-label={label}\n\t\t\t\t\tvariant={variant}\n\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\tclassName={className}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</Button>\n\t\t\t)}\n\t\t\t<Tooltip>{label}</Tooltip>\n\t\t</TooltipTrigger>\n\t);\n}\n","import {\n Tooltip as AriaTooltip,\n TooltipTrigger as AriaTooltipTrigger,\n type TooltipProps as AriaTooltipProps,\n type TooltipTriggerComponentProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type TooltipProps = Omit<AriaTooltipProps, \"className\"> & { className?: string };\nexport type { TooltipTriggerComponentProps };\n\nexport const TooltipTrigger = AriaTooltipTrigger;\n\nexport function Tooltip({ className, ...props }: TooltipProps) {\n return <AriaTooltip data-slot=\"tooltip\" offset={6} className={cn(\"max-w-xs rounded-md bg-foreground px-2.5 py-1.5 text-xs text-background shadow-md outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport const TooltipContent = Tooltip;\n","import { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\nimport { Input } from \"../input/input\";\nimport { Textarea } from \"../textarea/textarea\";\n\nexport function InputGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div role=\"group\" data-slot=\"input-group\" className={cn(\"group/input-group flex min-h-8 w-full min-w-0 items-center rounded-lg border border-border transition-colors has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive\", className)} {...props} />;\n}\n\nconst addonVariants = cva(\"flex items-center justify-center gap-2 px-2 text-sm text-muted-foreground\", { variants: { align: { \"inline-start\": \"order-first\", \"inline-end\": \"order-last\", \"block-start\": \"w-full justify-start border-b py-2\", \"block-end\": \"w-full justify-start border-t py-2\" } }, defaultVariants: { align: \"inline-start\" } });\nexport function InputGroupAddon({ className, align, ...props }: React.ComponentProps<\"div\"> & VariantProps<typeof addonVariants>) {\n return <div data-slot=\"input-group-addon\" data-align={align} className={cn(addonVariants({ align }), className)} {...props} />;\n}\n\nexport function InputGroupButton({ className, ...props }: ButtonProps) {\n return <Button data-slot=\"input-group-button\" size=\"icon\" variant=\"ghost\" className={cn(\"size-7 shrink-0\", className)} {...props} />;\n}\n\nexport function InputGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"input-group-text\" className={cn(\"px-2 text-sm text-muted-foreground\", className)} {...props} />;\n}\n\nexport function InputGroupInput({ className, ...props }: React.ComponentProps<typeof Input>) {\n return <Input data-slot=\"input-group-control\" className={cn(\"flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0\", className)} {...props} />;\n}\n\nexport function InputGroupTextarea({ className, ...props }: React.ComponentProps<typeof Textarea>) {\n return <Textarea data-slot=\"input-group-control\" className={cn(\"flex-1 resize-none rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0\", className)} {...props} />;\n}\n","import { forwardRef } from \"react\";\nimport { Input as AriaInput, type InputProps as AriaInputProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type InputProps = Omit<AriaInputProps, \"ref\"> & { ref?: CompatibleRef<HTMLInputElement> };\n\nconst InputImpl = forwardRef<HTMLInputElement, AriaInputProps>(function Input({ className, type, ...props }, ref) {\n return <AriaInput ref={ref} type={type} data-slot=\"input\" className={cn(\"h-8 w-full min-w-0 rounded-lg border border-border bg-background px-2.5 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive\", className)} {...props} />;\n});\n\n/** Forward-ref component with a ref type compatible across React 19 type releases. */\nexport const Input = InputImpl as unknown as (props: InputProps) => ReturnType<typeof InputImpl>;\n","import { forwardRef } from \"react\";\nimport { TextArea as AriaTextArea, type TextAreaProps as AriaTextAreaProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\ntype CompatibleRef<T> = ((instance: T | null) => unknown) | { readonly current: T | null } | null;\n\nexport type TextareaProps = Omit<AriaTextAreaProps, \"ref\"> & { ref?: CompatibleRef<HTMLTextAreaElement> };\n\nconst TextareaImpl = forwardRef<HTMLTextAreaElement, AriaTextAreaProps>(function Textarea({ className, ...props }, ref) {\n return <AriaTextArea ref={ref} data-slot=\"textarea\" className={cn(\"min-h-20 w-full rounded-lg border border-border bg-background px-2.5 py-2 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive\", className)} {...props} />;\n});\n\n/** Forward-ref component with a ref type compatible across React 19 type releases. */\nexport const Textarea = TextareaImpl as unknown as (props: TextareaProps) => ReturnType<typeof TextareaImpl>;\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Kbd({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return <kbd data-slot=\"kbd\" className={cn(\"pointer-events-none inline-flex h-5 min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none\", className)} {...props} />;\n}\n\nexport function KbdGroup({ className, ...props }: React.ComponentProps<\"span\">) {\n return <span data-slot=\"kbd-group\" className={cn(\"inline-flex items-center gap-1\", className)} {...props} />;\n}\n","import type * as React from \"react\";\nimport { LoaderCircle } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\nexport function LoadingOverlay({ label = \"Cargando\", className, ...props }: React.ComponentProps<\"div\"> & { label?: string }) { return <div role=\"status\" aria-live=\"polite\" className={cn(\"absolute inset-0 z-10 flex items-center justify-center bg-background/70 backdrop-blur-[2px]\", className)} {...props}><div className=\"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-2 text-sm shadow-sm\"><LoaderCircle className=\"animate-spin\" aria-hidden=\"true\" /><span>{label}</span></div></div>; }\n","import {\n Menu as AriaMenu,\n MenuItem as AriaMenuItem,\n MenuTrigger as AriaMenuTrigger,\n Popover,\n type MenuItemProps,\n type MenuProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport const MenuTrigger = AriaMenuTrigger;\n\nexport function MenuContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"menu-content\" className={cn(\"min-w-40 overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport function Menu<T extends object>({ className, ...props }: MenuProps<T>) {\n return <AriaMenu data-slot=\"menu\" className={cn(\"outline-none\", className)} {...props} />;\n}\n\nexport function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>) {\n return <AriaMenuItem data-slot=\"menu-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</AriaMenuItem>;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function PageHeader({ className, ...props }: React.ComponentProps<\"header\">) {\n return <header data-slot=\"page-header\" className={cn(\"flex flex-col gap-4 py-2 sm:flex-row sm:items-center sm:justify-between\", className)} {...props} />;\n}\nexport function PageHeaderHeading({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"page-header-heading\" className={cn(\"min-w-0\", className)} {...props} />;\n}\nexport function PageHeaderTitle({ className, ...props }: React.ComponentProps<\"h1\">) {\n return <h1 data-slot=\"page-header-title\" className={cn(\"truncate text-xl font-semibold tracking-tight md:text-2xl\", className)} {...props} />;\n}\nexport function PageHeaderDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p data-slot=\"page-header-description\" className={cn(\"mt-1 text-sm text-muted-foreground\", className)} {...props} />;\n}\nexport function PageHeaderActions({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"page-header-actions\" className={cn(\"flex shrink-0 items-center gap-2\", className)} {...props} />;\n}\n","import { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { Button } from \"../button/button\";\nimport { cn } from \"../../lib/cn\";\nexport type PaginationProps = { page: number; pageCount: number; onPageChange: (page: number) => void; className?: string };\nexport function Pagination({ page, pageCount, onPageChange, className }: PaginationProps) {\n const pages = Array.from({ length: pageCount }, (_, index) => index + 1);\n return <nav aria-label=\"Paginación\" className={cn(\"flex items-center justify-between gap-4\", className)}><p className=\"text-sm text-muted-foreground\">Página {page} de {pageCount}</p><div className=\"flex items-center gap-1\"><Button aria-label=\"Página anterior\" isDisabled={page <= 1} onPress={() => onPageChange(page - 1)} size=\"icon\" variant=\"ghost\"><ChevronLeft /></Button>{pages.map((item) => <Button key={item} aria-current={item === page ? \"page\" : undefined} aria-label={`Página ${item}`} onPress={() => onPageChange(item)} size=\"icon\" variant={item === page ? \"secondary\" : \"ghost\"}>{item}</Button>)}<Button aria-label=\"Página siguiente\" isDisabled={page >= pageCount} onPress={() => onPageChange(page + 1)} size=\"icon\" variant=\"ghost\"><ChevronRight /></Button></div></nav>;\n}\n","import {\n DialogTrigger as AriaDialogTrigger,\n Popover as AriaPopover,\n type DialogTriggerProps,\n type PopoverProps as AriaPopoverProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type PopoverProps = Omit<AriaPopoverProps, \"className\"> & { className?: string };\nexport type { DialogTriggerProps as PopoverTriggerProps };\n\n/** Wrap a trigger and Popover surface; React Aria handles focus and positioning. */\nexport const PopoverTrigger = AriaDialogTrigger;\n\nexport function Popover({ className, ...props }: PopoverProps) {\n return <AriaPopover data-slot=\"popover\" offset={6} className={cn(\"min-w-48 rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg outline-none motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport const PopoverContent = Popover;\n","import { Minus, Plus } from \"lucide-react\";\nimport {\n Button as AriaButton,\n Group as AriaGroup,\n Input as AriaInput,\n NumberField as AriaNumberField,\n type NumberFieldProps as AriaNumberFieldProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type QuantityInputProps = Omit<AriaNumberFieldProps, \"children\" | \"className\"> & {\n className?: string;\n inputClassName?: string;\n decrementAriaLabel?: string;\n incrementAriaLabel?: string;\n};\n\n/** A compact quantity control with accessible stepper buttons and numeric keyboard support. */\nexport function QuantityInput({\n className,\n inputClassName,\n decrementAriaLabel = \"Disminuir cantidad\",\n incrementAriaLabel = \"Aumentar cantidad\",\n minValue = 0,\n step = 1,\n ...props\n}: QuantityInputProps) {\n return (\n <AriaNumberField\n {...props}\n minValue={minValue}\n step={step}\n data-slot=\"quantity-input\"\n className={cn(\"group/quantity-input inline-flex min-w-0 data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)}\n >\n <AriaGroup\n data-slot=\"quantity-input-group\"\n className=\"flex h-8 min-w-0 items-stretch overflow-hidden rounded-lg border border-border bg-background text-foreground transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 group-data-invalid/quantity-input:border-destructive\"\n >\n <AriaButton slot=\"decrement\" aria-label={decrementAriaLabel} data-slot=\"quantity-input-decrement\" className=\"flex size-8 shrink-0 cursor-pointer items-center justify-center border-r border-border text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted data-disabled:pointer-events-none\">\n <Minus aria-hidden=\"true\" className=\"size-4\" />\n </AriaButton>\n <AriaInput data-slot=\"quantity-input-value\" className={cn(\"w-14 min-w-0 bg-transparent px-1 text-center text-sm tabular-nums outline-none\", inputClassName)} />\n <AriaButton slot=\"increment\" aria-label={incrementAriaLabel} data-slot=\"quantity-input-increment\" className=\"flex size-8 shrink-0 cursor-pointer items-center justify-center border-l border-border text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground data-focus-visible:bg-muted data-pressed:bg-muted data-disabled:pointer-events-none\">\n <Plus aria-hidden=\"true\" className=\"size-4\" />\n </AriaButton>\n </AriaGroup>\n </AriaNumberField>\n );\n}","import {\n SearchField as AriaSearchField,\n Button,\n Input,\n type SearchFieldProps as AriaSearchFieldProps,\n type ButtonProps,\n type InputProps,\n} from \"react-aria-components\";\nimport { X } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport const SearchField = AriaSearchField;\nexport type { AriaSearchFieldProps as SearchFieldProps };\n\nexport function SearchInput({ className, ...props }: InputProps) {\n return <Input data-slot=\"search-input\" className={cn(\"h-8 w-full min-w-0 rounded-lg border border-border bg-background px-2.5 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-3 focus-visible:ring-ring/50\", className)} {...props} />;\n}\n\nexport function SearchClearButton({ className, children = <X aria-hidden=\"true\" className=\"size-4\" />, ...props }: Omit<ButtonProps, \"className\"> & { className?: string }) {\n return <Button slot=\"clear\" data-slot=\"search-clear\" className={cn(\"absolute top-1/2 right-1 rounded p-1 text-muted-foreground outline-none hover:bg-muted data-focus-visible:ring-2 data-focus-visible:ring-ring\", className)} {...props}>{children}</Button>;\n}\n","import {\n Button as AriaButton,\n Select as AriaSelect,\n SelectValue as AriaSelectValue,\n ListBox,\n ListBoxItem,\n Popover,\n type SelectProps as AriaSelectProps,\n type ButtonProps,\n type ListBoxItemProps,\n type ListBoxProps,\n} from \"react-aria-components\";\nimport { ChevronDown } from \"lucide-react\";\nimport { cn } from \"../../lib/cn\";\n\nexport const Select = AriaSelect;\nexport type { AriaSelectProps as SelectProps };\n\nexport function SelectTrigger({ className, children, ...props }: ButtonProps) {\n return <AriaButton data-slot=\"select-trigger\" className={cn(\"group/select-trigger flex h-8 w-full min-w-36 items-center gap-2 rounded-lg border border-border bg-background px-2.5 text-left text-sm text-foreground outline-none data-focus-visible:ring-3 data-focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50\", className)} {...props}>{(state) => <>{typeof children === \"function\" ? children(state) : children}<ChevronDown aria-hidden=\"true\" className=\"ml-auto size-4 text-muted-foreground transition-transform group-data-pressed/select-trigger:rotate-180 motion-reduce:transition-none\" /></>}</AriaButton>;\n}\n\nexport function SelectValue({ className, ...props }: React.ComponentProps<typeof AriaSelectValue>) {\n return <AriaSelectValue data-slot=\"select-value\" className={cn(\"flex-1 truncate data-placeholder:text-muted-foreground\", className)} {...props} />;\n}\n\nexport function SelectContent({ className, ...props }: React.ComponentProps<typeof Popover>) {\n return <Popover data-slot=\"select-content\" className={cn(\"w-(--trigger-width) overflow-hidden rounded-xl border border-border bg-background p-1.5 text-foreground shadow-lg motion-safe:data-entering:animate-ui-surface-in motion-safe:data-exiting:animate-ui-surface-out\", className)} {...props} />;\n}\n\nexport function SelectList<T extends object>({ className, ...props }: ListBoxProps<T>) {\n return <ListBox data-slot=\"select-list\" className={cn(\"max-h-64 overflow-y-auto\", className)} {...props} />;\n}\n\nexport function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>) {\n return <ListBoxItem data-slot=\"select-item\" className={cn(\"flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-focused:bg-muted data-selected:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50\", className)} {...props}>{children}</ListBoxItem>;\n}\n","import { Separator as AriaSeparator, type SeparatorProps as AriaSeparatorProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type SeparatorProps = Omit<AriaSeparatorProps, \"className\"> & { className?: string };\n\nexport function Separator({ className, orientation = \"horizontal\", ...props }: SeparatorProps) {\n return <AriaSeparator data-slot=\"separator\" orientation={orientation} className={cn(\"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch\", className)} {...props} />;\n}\n","import {\n\tChevronLeft,\n\tChevronRight,\n\tEllipsis,\n\tSearch,\n} from \"lucide-react\";\nimport {\n\tcreateContext,\n\ttype ReactNode,\n\tuseContext,\n\tuseMemo,\n\tuseState,\n} from \"react\";\nimport { Link, type LinkProps } from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\ntype SidebarContextValue = {\n\tcollapsed: boolean;\n\tsetCollapsed: (value: boolean) => void;\n\ttoggle: () => void;\n};\nconst SidebarContext = createContext<SidebarContextValue | null>(null);\n\nexport function useSidebar() {\n\tconst context = useContext(SidebarContext);\n\tif (!context)\n\t\tthrow new Error(\"useSidebar must be used inside SidebarProvider\");\n\treturn context;\n}\n\nexport function SidebarProvider({\n\tdefaultCollapsed = false,\n\tchildren,\n}: {\n\tdefaultCollapsed?: boolean;\n\tchildren: ReactNode;\n}) {\n\tconst [collapsed, setCollapsed] = useState(defaultCollapsed);\n\tconst value = useMemo(\n\t\t() => ({\n\t\t\tcollapsed,\n\t\t\tsetCollapsed,\n\t\t\ttoggle: () => setCollapsed((current) => !current),\n\t\t}),\n\t\t[collapsed],\n\t);\n\treturn (\n\t\t<SidebarContext.Provider value={value}>{children}</SidebarContext.Provider>\n\t);\n}\n\nexport function Sidebar({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"aside\">) {\n\tconst { collapsed } = useSidebar();\n\treturn (\n\t\t<aside\n\t\t\tdata-slot=\"sidebar\"\n\t\t\tdata-collapsed={collapsed || undefined}\n\t\t\tclassName={cn(\n\t\t\t\t\"group/sidebar flex h-full w-56 shrink-0 flex-col border-r border-border bg-card text-foreground transition-[width] duration-200 ease-out motion-reduce:transition-none data-[collapsed]:w-16\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarHeader({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sidebar-header\"\n\t\t\tclassName={cn(\"flex items-center gap-2 px-4 py-5\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarSearch({\n\tlabel = \"Buscar…\",\n\tshortcut = \"⌘K\",\n\tclassName,\n\t...props\n}: React.ComponentProps<\"button\"> & { label?: string; shortcut?: string }) {\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tdata-slot=\"sidebar-search\"\n\t\t\tclassName={cn(\n\t\t\t\t\"group flex w-full items-center gap-2 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<Search className=\"size-4 shrink-0\" />\n\t\t\t<span className=\"flex-1 text-left\">{label}</span>\n\t\t\t<kbd className=\"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground\">\n\t\t\t\t{shortcut}\n\t\t\t</kbd>\n\t\t</button>\n\t);\n}\n\nexport function SidebarContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"nav\">) {\n\treturn (\n\t\t<nav\n\t\t\tdata-slot=\"sidebar-content\"\n\t\t\taria-label=\"Navegación principal\"\n\t\t\tclassName={cn(\"min-h-0 flex-1 overflow-y-auto px-2 py-1\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarFooter({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"sidebar-footer\"\n\t\t\tclassName={cn(\n\t\t\t\t\"mt-auto flex flex-col gap-2 border-t border-border p-2\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarGroup({\n\tlabel,\n\tclassName,\n\tchildren,\n\t...props\n}: React.ComponentProps<\"section\"> & { label?: string }) {\n\tconst { collapsed } = useSidebar();\n\treturn (\n\t\t<section\n\t\t\tdata-slot=\"sidebar-group\"\n\t\t\tclassName={cn(\"mb-4 last:mb-0\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{label && (\n\t\t\t\t<h2\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\"mb-1 px-3 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground\",\n\t\t\t\t\t\tcollapsed && \"sr-only\",\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{label}\n\t\t\t\t</h2>\n\t\t\t)}\n\t\t\t{children}\n\t\t</section>\n\t);\n}\n\nexport type SidebarItemProps = LinkProps & {\n\ticon?: ReactNode;\n\tactive?: boolean;\n\tbadge?: ReactNode;\n\tlabel?: string;\n};\nexport function SidebarItem({\n\ticon,\n\tactive,\n\tbadge,\n\tlabel,\n\tchildren,\n\tclassName,\n\t...props\n}: SidebarItemProps) {\n\tconst { collapsed } = useSidebar();\n\tconst content = typeof children === \"function\" ? label : (children ?? label);\n\treturn (\n\t\t<Link\n\t\t\tdata-slot=\"sidebar-item\"\n\t\t\taria-current={active ? \"page\" : undefined}\n\t\t\taria-label={collapsed && label ? label : undefined}\n\t\t\tclassName={cn(\n\t\t\t\t\"group/item relative flex min-h-9 items-center gap-2.5 rounded-md px-2.5 py-2 text-sm text-muted-foreground outline-none transition-[background-color,color,transform] duration-150 hover:bg-secondary/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 data-[current=page]:bg-secondary data-[current=page]:font-medium data-[current=page]:text-foreground data-pressed:scale-[0.98] motion-reduce:transition-none\",\n\t\t\t\tcollapsed && \"justify-center px-0\",\n\t\t\t\ttypeof className === \"function\" ? className : className,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{(values) => (\n\t\t\t\t<>\n\t\t\t\t\t<span className=\"flex size-4 shrink-0 items-center justify-center\">\n\t\t\t\t\t\t{icon}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={cn(\"min-w-0 flex-1 truncate\", collapsed && \"sr-only\")}\n\t\t\t\t\t>\n\t\t\t\t\t\t{typeof children === \"function\" ? children(values) : content}\n\t\t\t\t\t</span>\n\t\t\t\t\t{badge && !collapsed && (\n\t\t\t\t\t\t<span className=\"text-xs text-muted-foreground\">{badge}</span>\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t</Link>\n\t);\n}\n\nexport function SidebarSeparator({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"hr\">) {\n\treturn (\n\t\t<hr\n\t\t\tdata-slot=\"sidebar-separator\"\n\t\t\tclassName={cn(\"my-2 h-px border-0 bg-border\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarTrigger({ className, ...props }: ButtonProps) {\n\tconst { collapsed, toggle } = useSidebar();\n\treturn (\n\t\t<Button\n\t\t\taria-label={collapsed ? \"Expandir navegación\" : \"Colapsar navegación\"}\n\t\t\tonPress={toggle}\n\t\t\tsize=\"icon\"\n\t\t\tvariant=\"ghost\"\n\t\t\tclassName={cn(\"ml-auto\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{collapsed ? <ChevronRight /> : <ChevronLeft />}\n\t\t</Button>\n\t);\n}\n\nexport function SidebarRail({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"button\">) {\n\tconst { toggle } = useSidebar();\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\taria-label=\"Alternar navegación\"\n\t\t\tonClick={toggle}\n\t\t\tclassName={cn(\n\t\t\t\t\"absolute inset-y-0 right-0 z-20 hidden w-1 -translate-x-1/2 cursor-ew-resize bg-transparent transition-colors hover:bg-border lg:block\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function SidebarMore({ className, ...props }: ButtonProps) {\n\treturn (\n\t\t<Button\n\t\t\taria-label=\"Más opciones\"\n\t\t\tsize=\"icon\"\n\t\t\tvariant=\"ghost\"\n\t\t\tclassName={cn(\"size-7\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<Ellipsis />\n\t\t</Button>\n\t);\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport function Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div aria-hidden=\"true\" data-slot=\"skeleton\" className={cn(\"animate-pulse rounded-md bg-muted\", className)} {...props} />;\n}\n","import { useFormStatus } from \"react-dom\";\nimport { LoaderCircle } from \"lucide-react\";\nimport { Button, type ButtonProps } from \"../button/button\";\n\nexport interface SubmitButtonProps extends Omit<ButtonProps, \"type\"> { pendingLabel?: string; loading?: boolean; children: React.ReactNode; }\n\nexport function SubmitButton({ pendingLabel = \"Guardando…\", loading = false, children, isDisabled, size = \"sm\", ...props }: SubmitButtonProps) {\n const { pending } = useFormStatus();\n const busy = pending || loading;\n return <Button type=\"submit\" size={size} isDisabled={busy || isDisabled} aria-busy={busy || undefined} {...props}>{busy ? <><LoaderCircle aria-hidden=\"true\" className=\"size-3.5 animate-spin\" />{pendingLabel}</> : children}</Button>;\n}\n","import {\n SwitchButton as AriaSwitchButton,\n SwitchField as AriaSwitchField,\n type SwitchButtonRenderProps,\n type SwitchFieldProps as AriaSwitchProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type SwitchProps = Omit<AriaSwitchProps, \"className\"> & {\n className?: string | ((values: SwitchButtonRenderProps) => string);\n size?: \"sm\" | \"md\";\n};\n\nconst sizeStyles = {\n sm: { track: \"h-5 w-9 p-0.5\", thumb: \"size-4\", travel: \"group-data-selected/switch:translate-x-4\" },\n md: { track: \"h-6 w-11 p-0.5\", thumb: \"size-5\", travel: \"group-data-selected/switch:translate-x-5\" },\n} as const;\n\nexport function Switch({ className, children, size = \"sm\", ...props }: SwitchProps) {\n const styles = sizeStyles[size];\n\n return (\n <AriaSwitchField {...props}>\n <AriaSwitchButton\n data-slot=\"switch\"\n data-size={size}\n className={(state) =>\n cn(\n \"group/switch inline-flex w-max items-center gap-2 text-sm text-foreground outline-none\",\n \"data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n typeof className === \"function\" ? className(state) : className,\n )\n }\n >\n {(state) => (\n <>\n <span\n aria-hidden=\"true\"\n className={cn(\n \"relative inline-flex shrink-0 items-center rounded-full border border-transparent bg-secondary\",\n \"shadow-[inset_0_1px_2px_rgb(0_0_0/0.08)]\",\n \"transition-[background-color,box-shadow] duration-200 ease-out\",\n \"group-data-selected/switch:bg-primary group-data-hovered/switch:bg-secondary/80\",\n \"group-data-selected/switch:group-data-hovered/switch:bg-primary/90\",\n \"group-data-focus-visible/switch:ring-3 group-data-focus-visible/switch:ring-ring/40\",\n \"group-data-pressed/switch:ring-4 group-data-pressed/switch:ring-primary/10\",\n \"motion-reduce:transition-none\",\n styles.track,\n )}\n >\n <span\n className={cn(\n \"pointer-events-none block rounded-full bg-background shadow-[0_1px_2px_rgb(0_0_0/0.18)]\",\n \"transition-[transform,background-color,box-shadow] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]\",\n \"group-data-selected/switch:bg-primary-foreground group-data-selected/switch:shadow-[0_1px_3px_rgb(0_0_0/0.22)]\",\n \"group-data-pressed/switch:scale-[0.94] motion-reduce:transition-none\",\n styles.travel,\n styles.thumb,\n )}\n />\n </span>\n {children != null && (\n <span className=\"select-none font-medium leading-5 text-foreground\">\n {typeof children === \"function\" ? children(state) : children}\n </span>\n )}\n </>\n )}\n </AriaSwitchButton>\n </AriaSwitchField>\n );\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\n\n/** Presentational table primitives. Sorting, pagination and data state stay in the application. */\nexport function Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\"><table data-slot=\"table\" className={cn(\"w-full caption-bottom text-sm\", className)} {...props} /></div>;\n}\n\nexport function TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return <thead data-slot=\"table-header\" className={cn(\"border-b border-border\", className)} {...props} />;\n}\nexport function TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return <tbody data-slot=\"table-body\" className={cn(\"[&_tr:last-child]:border-0\", className)} {...props} />;\n}\nexport function TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return <tr data-slot=\"table-row\" className={cn(\"border-b border-border transition-colors hover:bg-muted/50\", className)} {...props} />;\n}\nexport function TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return <th data-slot=\"table-head\" className={cn(\"h-10 px-3 text-left align-middle text-xs font-medium text-muted-foreground\", className)} {...props} />;\n}\nexport function TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return <td data-slot=\"table-cell\" className={cn(\"p-3 align-middle\", className)} {...props} />;\n}\nexport function TableCaption({ className, ...props }: React.ComponentProps<\"caption\">) {\n return <caption data-slot=\"table-caption\" className={cn(\"mt-4 text-sm text-muted-foreground\", className)} {...props} />;\n}\n","import {\n Tab as AriaTab,\n TabList as AriaTabList,\n TabPanel as AriaTabPanel,\n TabPanels as AriaTabPanels,\n Tabs as AriaTabs,\n composeRenderProps,\n type TabListProps as AriaTabListProps,\n type TabPanelProps as AriaTabPanelProps,\n type TabPanelsProps as AriaTabPanelsProps,\n type TabProps as AriaTabProps,\n type TabsProps as AriaTabsProps,\n} from \"react-aria-components\";\nimport { cn } from \"../../lib/cn\";\n\nexport type TabsProps = AriaTabsProps;\nexport type TabProps = AriaTabProps;\nexport type TabPanelProps = AriaTabPanelProps;\n\nexport function Tabs({ className, ...props }: AriaTabsProps) {\n return <AriaTabs data-slot=\"tabs\" className={composeRenderProps(className, (value) => cn(\"flex flex-col gap-2\", value))} {...props} />;\n}\n\nexport function TabsList<T extends object>({ className, ...props }: AriaTabListProps<T>) {\n return <AriaTabList data-slot=\"tabs-list\" className={composeRenderProps(className, (value) => cn(\"inline-flex w-fit items-center gap-1 rounded-lg bg-muted p-1 text-muted-foreground\", value))} {...props} />;\n}\n\nexport function TabsTrigger({ className, ...props }: AriaTabProps) {\n return <AriaTab data-slot=\"tabs-trigger\" className={composeRenderProps(className, (value) => cn(\"inline-flex h-7 items-center justify-center gap-1.5 rounded-md px-2.5 text-sm font-medium outline-none transition-colors data-hovered:text-foreground data-selected:bg-background data-selected:text-foreground data-selected:shadow-sm data-focus-visible:ring-3 data-focus-visible:ring-ring/50 data-disabled:cursor-not-allowed data-disabled:opacity-50\", value))} {...props} />;\n}\n\nexport function TabsPanels<T extends object>({ className, ...props }: AriaTabPanelsProps<T>) {\n return <AriaTabPanels data-slot=\"tabs-panels\" className={cn(\"min-w-0\", className)} {...props} />;\n}\n\nexport function TabsContent({ className, ...props }: AriaTabPanelProps) {\n return <AriaTabPanel data-slot=\"tabs-content\" className={composeRenderProps(className, (value) => cn(\"text-sm outline-none data-focus-visible:ring-3 data-focus-visible:ring-ring/50\", value))} {...props} />;\n}\n","import { useEffect, useSyncExternalStore, type ReactNode } from \"react\";\nimport { CheckCircle, Info, CircleAlert, XCircle, X } from \"lucide-react\";\nimport { Button } from \"../button/button\";\nimport { cn } from \"../../lib/cn\";\n\nexport type ToastVariant = \"default\" | \"success\" | \"error\" | \"warning\" | \"info\";\nexport type ToastPosition = \"top-left\" | \"top-center\" | \"top-right\" | \"bottom-left\" | \"bottom-center\" | \"bottom-right\";\nexport type ToastAction = { label: string; onPress: () => void };\nexport type ToastOptions = { title: string; description?: string; variant?: ToastVariant; duration?: number; position?: ToastPosition; action?: ToastAction };\nexport type ToastData = ToastOptions & { id: string; state: \"open\" | \"closing\" };\ntype ToastPromiseOptions<T> = { loading: string; success: string | ((value: T) => string); error: string | ((error: unknown) => string); description?: string; position?: ToastPosition };\n\nlet records: ToastData[] = [];\nconst listeners = new Set<() => void>();\nconst snapshot = () => records;\nconst emit = () => listeners.forEach((listener) => listener());\nconst subscribe = (listener: () => void) => { listeners.add(listener); return () => listeners.delete(listener); };\nconst remove = (id: string) => { records = records.filter((record) => record.id !== id); emit(); };\n\nfunction create(options: ToastOptions) {\n const id = `${Date.now()}-${Math.random().toString(36).slice(2)}`;\n records = [...records, { ...options, id, state: \"open\", variant: options.variant ?? \"default\", duration: options.duration ?? 5000, position: options.position ?? \"bottom-right\" }];\n emit();\n return id;\n}\n\nfunction dismiss(id: string) {\n if (!records.some((record) => record.id === id && record.state === \"open\")) return;\n records = records.map((record) => record.id === id ? { ...record, state: \"closing\" } : record);\n emit();\n window.setTimeout(() => remove(id), 180);\n}\n\nfunction update(id: string, patch: Partial<ToastData>) { records = records.map((record) => record.id === id ? { ...record, ...patch, state: \"open\" } : record); emit(); }\n\nexport const toast = Object.assign((options: ToastOptions) => create(options), {\n success: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"success\" }),\n error: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"error\" }),\n warning: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"warning\" }),\n info: (title: string, options?: Omit<ToastOptions, \"title\" | \"variant\">) => create({ ...options, title, variant: \"info\" }),\n dismiss,\n promise: <T,>(promise: Promise<T>, options: ToastPromiseOptions<T>) => {\n const id = create({ title: options.loading, description: options.description, variant: \"default\", duration: 0, position: options.position });\n promise.then((value) => update(id, { title: typeof options.success === \"function\" ? options.success(value) : options.success, variant: \"success\", duration: 4000 })).catch((error: unknown) => update(id, { title: typeof options.error === \"function\" ? options.error(error) : options.error, variant: \"error\", duration: 6000 }));\n return promise;\n },\n});\n\nexport function useToast() { return toast; }\nexport function ToastProvider({ children }: { children: ReactNode }) { return <>{children}<Toaster /></>; }\n\nconst positionClasses: Record<ToastPosition, string> = {\n \"top-left\": \"top-4 left-4 items-start\", \"top-center\": \"top-4 left-1/2 -translate-x-1/2 items-center\", \"top-right\": \"top-4 right-4 items-end\",\n \"bottom-left\": \"bottom-4 left-4 items-start\", \"bottom-center\": \"bottom-4 left-1/2 -translate-x-1/2 items-center\", \"bottom-right\": \"bottom-4 right-4 items-end\",\n};\n\nexport function Toaster({ position = \"bottom-right\" }: { position?: ToastPosition }) {\n return <>{(Object.keys(positionClasses) as ToastPosition[]).map((item) => <ToastViewport key={item} position={item} visiblePosition={position} />)}</>;\n}\n\nexport function ToastViewport({ position, visiblePosition, className }: { position: ToastPosition; visiblePosition?: ToastPosition; className?: string }) {\n const toasts = useSyncExternalStore(subscribe, snapshot, snapshot).filter((item) => item.position === position);\n if (visiblePosition && position !== visiblePosition && toasts.length === 0) return null;\n return <div aria-label={`Notificaciones ${position}`} className={cn(\"pointer-events-none fixed z-50 flex w-[min(24rem,calc(100vw-2rem))] flex-col gap-2\", positionClasses[position], className)}>{toasts.map((item) => <Toast key={item.id} {...item} onDismiss={() => dismiss(item.id)} />)}</div>;\n}\n\nexport function Toast({ id, title, description, variant = \"default\", action, state = \"open\", duration = 0, onDismiss }: ToastData & { onDismiss?: () => void }) {\n useEffect(() => { if (state !== \"open\" || duration <= 0) return; const timeout = window.setTimeout(() => dismiss(id), duration); return () => window.clearTimeout(timeout); }, [duration, id, state]);\n const Icon = variant === \"success\" ? CheckCircle : variant === \"error\" ? XCircle : variant === \"warning\" ? CircleAlert : variant === \"info\" ? Info : Info;\n return <div role={variant === \"error\" ? \"alert\" : \"status\"} data-state={state} className={cn(\"pointer-events-auto w-full overflow-hidden rounded-xl border border-border/80 bg-background/95 p-3.5 text-foreground shadow-xl shadow-black/10 backdrop-blur-md animate-ui-toast-in\", \"data-[state=closing]:animate-ui-toast-out motion-reduce:animate-none\", variant === \"success\" && \"border-success/30\", variant === \"error\" && \"border-destructive/30\", variant === \"warning\" && \"border-warning/40\")}><div className=\"flex items-start gap-3\"><Icon aria-hidden=\"true\" className={cn(\"mt-0.5 size-5 shrink-0\", variant === \"success\" && \"text-success\", variant === \"error\" && \"text-destructive\", variant === \"warning\" && \"text-warning\", variant === \"info\" && \"text-primary\")} /><div className=\"min-w-0 flex-1\"><p className=\"animate-ui-toast-title text-sm font-semibold\">{title}</p>{description && <p className=\"mt-1 max-h-20 animate-ui-toast-description overflow-hidden text-sm leading-5 text-muted-foreground data-[state=closing]:max-h-0\" data-state={state}>{description}</p>}{action && <Button size=\"sm\" variant=\"link\" onPress={action.onPress} className=\"mt-1 h-auto px-0\">{action.label}</Button>}</div><Button aria-label=\"Cerrar notificación\" onPress={onDismiss} size=\"icon\" variant=\"ghost\" className=\"-mr-2 -mt-2 size-7\"><X /></Button></div></div>;\n}\n","import type * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nexport function Toolbar({ className, ...props }: React.ComponentProps<\"div\">) { return <div role=\"toolbar\" data-slot=\"toolbar\" className={cn(\"flex flex-wrap items-center gap-2\", className)} {...props} />; }\nexport function ToolbarGroup({ className, ...props }: React.ComponentProps<\"div\">) { return <div data-slot=\"toolbar-group\" className={cn(\"flex items-center gap-2\", className)} {...props} />; }\nexport function ToolbarSpacer({ className, ...props }: React.ComponentProps<\"div\">) { return <div aria-hidden=\"true\" className={cn(\"hidden flex-1 sm:block\", className)} {...props} />; }\n"],"mappings":";;;AAAA,SAAS,aAAa,WAAW,QAAQ,gBAAgB;AAalD,SAAS,YAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,UAAU;AAAA,EACV,YAAY,KAAK;AACnB,GAA0B;AACxB,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAyB,MAAM;AAC3D,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAuB,IAAI;AACrD,QAAM,YAAY,OAAsB,IAAI;AAC5C,QAAM,UAAU,OAAO,MAAM;AAC7B,QAAM,eAAe,OAAO,SAAS;AAErC,YAAU,MAAM;AACd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AAO;AAAI;AACxL,SAAS,cAAc,EAAE,WAAW,GAAG,MAAM,GAAgC;AAAE,SAAO,gBAAAA,MAAC,SAAI,eAAY,QAAO,WAAW,GAAG,0BAA0B,SAAS,GAAI,GAAG,OAAO;AAAI;","names":["snapshot","useEffect","useState","useCallback","useRef","useState","jsx","jsx","useState","jsx","useState","jsx","jsx","jsx","cva","jsx","cva","Button","jsx","Fragment","jsx","jsxs","Fragment","useState","jsx","jsxs","jsx","Fragment","useState","jsxs","AriaComboBox","ListBox","ListBoxItem","Popover","jsx","AriaComboBox","Popover","ListBox","ListBoxItem","Text","Fragment","jsx","jsxs","Text","Button","Fragment","jsx","jsxs","Button","AriaDialog","Modal","ModalOverlay","jsx","ModalOverlay","Modal","AriaDialog","jsx","jsx","jsx","Label","jsx","Label","FieldError","useCallback","useEffect","useRef","useState","jsx","jsxs","useState","useRef","useCallback","useEffect","Fragment","jsx","jsxs","jsx","jsx","jsxs","Button","cva","forwardRef","AriaInput","jsx","forwardRef","Input","AriaInput","forwardRef","jsx","forwardRef","Textarea","jsx","cva","Button","Input","Textarea","jsx","LoaderCircle","jsx","jsxs","LoaderCircle","AriaMenu","AriaMenuItem","AriaMenuTrigger","Popover","jsx","AriaMenuTrigger","Popover","AriaMenu","AriaMenuItem","jsx","jsx","jsxs","Button","AriaPopover","jsx","Popover","AriaPopover","AriaButton","AriaInput","jsx","jsxs","AriaButton","AriaInput","Button","Input","X","jsx","Input","X","Button","AriaButton","ListBox","ListBoxItem","Popover","ChevronDown","Fragment","jsx","jsxs","AriaButton","ChevronDown","Popover","ListBox","ListBoxItem","AriaSeparator","jsx","AriaSeparator","ChevronLeft","ChevronRight","useMemo","useState","Link","Fragment","jsx","jsxs","useState","useMemo","Link","Button","ChevronRight","ChevronLeft","jsx","LoaderCircle","Fragment","jsx","jsxs","Button","LoaderCircle","Fragment","jsx","jsxs","jsx","jsx","useEffect","CheckCircle","CircleAlert","X","Fragment","jsx","jsxs","useEffect","CheckCircle","CircleAlert","Button","X","jsx"]}