@tenerife.music/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation/presets.d.ts +6 -8
- package/dist/animation/presets.d.ts.map +1 -1
- package/dist/animation/tas.d.ts +2 -57
- package/dist/animation/tas.d.ts.map +1 -1
- package/dist/animation/types.d.ts +9 -47
- package/dist/animation/types.d.ts.map +1 -1
- package/dist/animation/useInView.d.ts +37 -0
- package/dist/animation/useInView.d.ts.map +1 -0
- package/dist/animation/utils.d.ts.map +1 -1
- package/dist/components/SectionBuilder.d.ts.map +1 -1
- package/dist/components/admin/Dashboard.d.ts.map +1 -1
- package/dist/components/admin/UserManagement.d.ts.map +1 -1
- package/dist/components/auth/LoginForm.d.ts.map +1 -1
- package/dist/components/auth/ProfileCard.d.ts.map +1 -1
- package/dist/components/auth/RegisterForm.d.ts.map +1 -1
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts +23 -0
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts.map +1 -0
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts +47 -0
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts.map +1 -0
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts +84 -0
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts.map +1 -0
- package/dist/components/cards/ArtistCard/index.d.ts +9 -0
- package/dist/components/cards/ArtistCard/index.d.ts.map +1 -0
- package/dist/components/cards/CardBase/CardBase.d.ts +46 -0
- package/dist/components/cards/CardBase/CardBase.d.ts.map +1 -0
- package/dist/components/cards/CardBase/CardBase.types.d.ts +71 -0
- package/dist/components/cards/CardBase/CardBase.types.d.ts.map +1 -0
- package/dist/components/cards/CardBase/CardBase.variants.d.ts +39 -0
- package/dist/components/cards/CardBase/CardBase.variants.d.ts.map +1 -0
- package/dist/components/cards/CardBase/index.d.ts +9 -0
- package/dist/components/cards/CardBase/index.d.ts.map +1 -0
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts +19 -0
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts.map +1 -0
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts +39 -0
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts.map +1 -0
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts +22 -0
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts.map +1 -0
- package/dist/components/cards/CategoryCard/index.d.ts +8 -0
- package/dist/components/cards/CategoryCard/index.d.ts.map +1 -0
- package/dist/components/cards/EventCard/EventCard.d.ts +20 -0
- package/dist/components/cards/EventCard/EventCard.d.ts.map +1 -0
- package/dist/components/cards/{EventCard.d.ts → EventCard/EventCard.types.d.ts} +14 -4
- package/dist/components/cards/EventCard/EventCard.types.d.ts.map +1 -0
- package/dist/components/cards/EventCard/EventCard.variants.d.ts +71 -0
- package/dist/components/cards/EventCard/EventCard.variants.d.ts.map +1 -0
- package/dist/components/cards/EventCard/index.d.ts +8 -0
- package/dist/components/cards/EventCard/index.d.ts.map +1 -0
- package/dist/components/cards/PromoCard/PromoCard.d.ts +21 -0
- package/dist/components/cards/PromoCard/PromoCard.d.ts.map +1 -0
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts +43 -0
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts.map +1 -0
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts +36 -0
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts.map +1 -0
- package/dist/components/cards/PromoCard/index.d.ts +8 -0
- package/dist/components/cards/PromoCard/index.d.ts.map +1 -0
- package/dist/components/cards/TicketCard/TicketCard.d.ts +20 -0
- package/dist/components/cards/TicketCard/TicketCard.d.ts.map +1 -0
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts +56 -0
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts.map +1 -0
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts +72 -0
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts.map +1 -0
- package/dist/components/cards/TicketCard/index.d.ts +8 -0
- package/dist/components/cards/TicketCard/index.d.ts.map +1 -0
- package/dist/components/cards/VenueCard/VenueCard.d.ts +22 -0
- package/dist/components/cards/VenueCard/VenueCard.d.ts.map +1 -0
- package/dist/components/cards/{VenueCard.d.ts → VenueCard/VenueCard.types.d.ts} +16 -7
- package/dist/components/cards/VenueCard/VenueCard.types.d.ts.map +1 -0
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts +61 -0
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts.map +1 -0
- package/dist/components/cards/VenueCard/index.d.ts +9 -0
- package/dist/components/cards/VenueCard/index.d.ts.map +1 -0
- package/dist/components/cards/index.d.ts +20 -0
- package/dist/components/cards/index.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +23 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.types.d.ts +69 -0
- package/dist/components/checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox-variants.d.ts +14 -0
- package/dist/components/checkbox/checkbox-variants.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/containers/Card.d.ts +76 -0
- package/dist/components/containers/Card.d.ts.map +1 -0
- package/dist/components/containers/Section.d.ts +32 -0
- package/dist/components/containers/Section.d.ts.map +1 -0
- package/dist/components/containers/Surface.d.ts +29 -0
- package/dist/components/containers/Surface.d.ts.map +1 -0
- package/dist/components/containers/index.d.ts +10 -0
- package/dist/components/containers/index.d.ts.map +1 -0
- package/dist/components/data/Timeline.d.ts.map +1 -1
- package/dist/components/data/data-list/DataList.d.ts +30 -0
- package/dist/components/data/data-list/DataList.d.ts.map +1 -0
- package/dist/components/data/data-list/DataList.types.d.ts +44 -0
- package/dist/components/data/data-list/DataList.types.d.ts.map +1 -0
- package/dist/components/data/data-list/DataListItem.d.ts +21 -0
- package/dist/components/data/data-list/DataListItem.d.ts.map +1 -0
- package/dist/components/data/data-list/DataListLabel.d.ts +20 -0
- package/dist/components/data/data-list/DataListLabel.d.ts.map +1 -0
- package/dist/components/data/data-list/DataListValue.d.ts +19 -0
- package/dist/components/data/data-list/DataListValue.d.ts.map +1 -0
- package/dist/components/data/data-list/index.d.ts +11 -0
- package/dist/components/data/data-list/index.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyState.d.ts +32 -0
- package/dist/components/data/empty-state/EmptyState.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyState.types.d.ts +52 -0
- package/dist/components/data/empty-state/EmptyState.types.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyStateAction.d.ts +18 -0
- package/dist/components/data/empty-state/EmptyStateAction.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts +18 -0
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts +23 -0
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts.map +1 -0
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts +18 -0
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts.map +1 -0
- package/dist/components/data/empty-state/index.d.ts +11 -0
- package/dist/components/data/empty-state/index.d.ts.map +1 -0
- package/dist/components/data/index.d.ts +10 -0
- package/dist/components/data/index.d.ts.map +1 -0
- package/dist/components/data/skeleton/Skeleton.d.ts +25 -0
- package/dist/components/data/skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/data/skeleton/Skeleton.types.d.ts +13 -0
- package/dist/components/data/skeleton/Skeleton.types.d.ts.map +1 -0
- package/dist/components/data/skeleton/index.d.ts +7 -0
- package/dist/components/data/skeleton/index.d.ts.map +1 -0
- package/dist/components/data/table/Table.d.ts +34 -0
- package/dist/components/data/table/Table.d.ts.map +1 -0
- package/dist/components/data/table/Table.types.d.ts +265 -0
- package/dist/components/data/table/Table.types.d.ts.map +1 -0
- package/dist/components/data/table/TableBody.d.ts +14 -0
- package/dist/components/data/table/TableBody.d.ts.map +1 -0
- package/dist/components/data/table/TableCell.d.ts +14 -0
- package/dist/components/data/table/TableCell.d.ts.map +1 -0
- package/dist/components/data/table/TableEmpty.d.ts +14 -0
- package/dist/components/data/table/TableEmpty.d.ts.map +1 -0
- package/dist/components/data/table/TableExpandableContent.d.ts +15 -0
- package/dist/components/data/table/TableExpandableContent.d.ts.map +1 -0
- package/dist/components/data/table/TableHead.d.ts +14 -0
- package/dist/components/data/table/TableHead.d.ts.map +1 -0
- package/dist/components/data/table/TableHeader.d.ts +14 -0
- package/dist/components/data/table/TableHeader.d.ts.map +1 -0
- package/dist/components/data/table/TableLoadingState.d.ts +14 -0
- package/dist/components/data/table/TableLoadingState.d.ts.map +1 -0
- package/dist/components/data/table/TableRow.d.ts +14 -0
- package/dist/components/data/table/TableRow.d.ts.map +1 -0
- package/dist/components/data/table/TableSortIcon.d.ts +15 -0
- package/dist/components/data/table/TableSortIcon.d.ts.map +1 -0
- package/dist/components/data/table/index.d.ts +18 -0
- package/dist/components/data/table/index.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.d.ts +42 -0
- package/dist/components/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.types.d.ts +76 -0
- package/dist/components/drawer/Drawer.types.d.ts.map +1 -0
- package/dist/components/drawer/drawer-variants.d.ts +18 -0
- package/dist/components/drawer/drawer-variants.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +9 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +39 -0
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.types.d.ts +83 -0
- package/dist/components/dropdown/Dropdown.types.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown-variants.d.ts +34 -0
- package/dist/components/dropdown/dropdown-variants.d.ts.map +1 -0
- package/dist/components/feedback/Skeleton.d.ts.map +1 -1
- package/dist/components/filters/SearchInput.d.ts +1 -1
- package/dist/components/filters/SearchInput.d.ts.map +1 -1
- package/dist/components/icon/Icon.d.ts +33 -0
- package/dist/components/icon/Icon.d.ts.map +1 -0
- package/dist/components/icon/Icon.types.d.ts +8 -0
- package/dist/components/icon/Icon.types.d.ts.map +1 -0
- package/dist/components/icon/index.d.ts +5 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/input/Input.d.ts +21 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/input/Input.types.d.ts +39 -0
- package/dist/components/input/Input.types.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +4 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/input-variants.d.ts +15 -0
- package/dist/components/input/input-variants.d.ts.map +1 -0
- package/dist/components/input/legacy/input.d.ts +12 -0
- package/dist/components/input/legacy/input.d.ts.map +1 -0
- package/dist/components/layout/Box.d.ts +40 -10
- package/dist/components/layout/Box.d.ts.map +1 -1
- package/dist/components/layout/Column.d.ts +7 -0
- package/dist/components/layout/Column.d.ts.map +1 -0
- package/dist/components/layout/Container.d.ts +1 -1
- package/dist/components/layout/Flex.d.ts +29 -13
- package/dist/components/layout/Flex.d.ts.map +1 -1
- package/dist/components/layout/Grid.d.ts +34 -25
- package/dist/components/layout/Grid.d.ts.map +1 -1
- package/dist/components/layout/ModeHero.d.ts.map +1 -1
- package/dist/components/layout/Row.d.ts +29 -0
- package/dist/components/layout/Row.d.ts.map +1 -0
- package/dist/components/layout/Stack.d.ts +24 -14
- package/dist/components/layout/Stack.d.ts.map +1 -1
- package/dist/components/layout/Surface.d.ts +22 -0
- package/dist/components/layout/Surface.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +10 -4
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/layout.types.d.ts +16 -0
- package/dist/components/layout/layout.types.d.ts.map +1 -1
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts +23 -0
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts +15 -0
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts +15 -0
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts +15 -0
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts +48 -0
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts +15 -0
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts.map +1 -0
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts +17 -0
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts.map +1 -0
- package/dist/components/menus/context-menu/index.d.ts +13 -0
- package/dist/components/menus/context-menu/index.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts +19 -0
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts +16 -0
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts +13 -0
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts +31 -0
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts +18 -0
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts +25 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts +19 -0
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts +34 -0
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts +14 -0
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts +11 -0
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts +14 -0
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts +14 -0
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts.map +1 -0
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts +15 -0
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts.map +1 -0
- package/dist/components/menus/dropdown/index.d.ts +19 -0
- package/dist/components/menus/dropdown/index.d.ts.map +1 -0
- package/dist/components/menus/hover-card/HoverCardContent.d.ts +15 -0
- package/dist/components/menus/hover-card/HoverCardContent.d.ts.map +1 -0
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts +21 -0
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts.map +1 -0
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts +14 -0
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts.map +1 -0
- package/dist/components/menus/hover-card/index.d.ts +9 -0
- package/dist/components/menus/hover-card/index.d.ts.map +1 -0
- package/dist/components/menus/index.d.ts +10 -0
- package/dist/components/menus/index.d.ts.map +1 -0
- package/dist/components/menus/popover/PopoverArrow.d.ts +18 -0
- package/dist/components/menus/popover/PopoverArrow.d.ts.map +1 -0
- package/dist/components/menus/popover/PopoverContent.d.ts +25 -0
- package/dist/components/menus/popover/PopoverContent.d.ts.map +1 -0
- package/dist/components/menus/popover/PopoverRoot.d.ts +44 -0
- package/dist/components/menus/popover/PopoverRoot.d.ts.map +1 -0
- package/dist/components/menus/popover/PopoverTrigger.d.ts +18 -0
- package/dist/components/menus/popover/PopoverTrigger.d.ts.map +1 -0
- package/dist/components/menus/popover/index.d.ts +10 -0
- package/dist/components/menus/popover/index.d.ts.map +1 -0
- package/dist/components/modal/Modal.d.ts +71 -0
- package/dist/components/modal/Modal.d.ts.map +1 -0
- package/dist/components/modal/modal-variants.d.ts +27 -0
- package/dist/components/modal/modal-variants.d.ts.map +1 -0
- package/dist/components/modals/ConfirmDialog.d.ts +3 -2
- package/dist/components/modals/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/modals/Modal.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +53 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/index.d.ts +6 -0
- package/dist/components/navigation/breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/navigation/index.d.ts +11 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/navigation/pagination/Pagination.d.ts +61 -0
- package/dist/components/navigation/pagination/Pagination.d.ts.map +1 -0
- package/dist/components/navigation/pagination/index.d.ts +6 -0
- package/dist/components/navigation/pagination/index.d.ts.map +1 -0
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts +44 -0
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts.map +1 -0
- package/dist/components/navigation/segmented-control/index.d.ts +6 -0
- package/dist/components/navigation/segmented-control/index.d.ts.map +1 -0
- package/dist/components/navigation/stepper/Stepper.d.ts +130 -0
- package/dist/components/navigation/stepper/Stepper.d.ts.map +1 -0
- package/dist/components/navigation/stepper/index.d.ts +6 -0
- package/dist/components/navigation/stepper/index.d.ts.map +1 -0
- package/dist/components/navigation/tabs/Tabs.d.ts +74 -0
- package/dist/components/navigation/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/navigation/tabs/index.d.ts +6 -0
- package/dist/components/navigation/tabs/index.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts +22 -0
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts +24 -0
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.Item.d.ts +25 -0
- package/dist/components/notifications/NotificationCenter.Item.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.List.d.ts +23 -0
- package/dist/components/notifications/NotificationCenter.List.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.Panel.d.ts +33 -0
- package/dist/components/notifications/NotificationCenter.Panel.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.Provider.d.ts +32 -0
- package/dist/components/notifications/NotificationCenter.Provider.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts +16 -0
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.d.ts +28 -0
- package/dist/components/notifications/NotificationCenter.d.ts.map +1 -0
- package/dist/components/notifications/NotificationCenter.types.d.ts +90 -0
- package/dist/components/notifications/NotificationCenter.types.d.ts.map +1 -0
- package/dist/components/notifications/index.d.ts +24 -0
- package/dist/components/notifications/index.d.ts.map +1 -0
- package/dist/components/notifications/useNotificationCenter.d.ts +48 -0
- package/dist/components/notifications/useNotificationCenter.d.ts.map +1 -0
- package/dist/components/overlays/Backdrop.d.ts +25 -0
- package/dist/components/overlays/Backdrop.d.ts.map +1 -0
- package/dist/components/overlays/Dialog.d.ts +67 -0
- package/dist/components/overlays/Dialog.d.ts.map +1 -0
- package/dist/components/overlays/Modal.d.ts +61 -0
- package/dist/components/overlays/Modal.d.ts.map +1 -0
- package/dist/components/overlays/Popover.d.ts +2 -2
- package/dist/components/overlays/Popover.d.ts.map +1 -1
- package/dist/components/overlays/Portal.d.ts +30 -0
- package/dist/components/overlays/Portal.d.ts.map +1 -0
- package/dist/components/overlays/Toast.d.ts +37 -0
- package/dist/components/overlays/Toast.d.ts.map +1 -0
- package/dist/components/overlays/ToastProvider.d.ts +59 -0
- package/dist/components/overlays/ToastProvider.d.ts.map +1 -0
- package/dist/components/overlays/ToastViewport.d.ts +28 -0
- package/dist/components/overlays/ToastViewport.d.ts.map +1 -0
- package/dist/components/overlays/Tooltip.d.ts +2 -2
- package/dist/components/overlays/Tooltip.d.ts.map +1 -1
- package/dist/components/overlays/index.d.ts +14 -0
- package/dist/components/overlays/index.d.ts.map +1 -0
- package/dist/components/overlays/utils/FocusLock.d.ts +31 -0
- package/dist/components/overlays/utils/FocusLock.d.ts.map +1 -0
- package/dist/components/overlays/utils/ScrollLock.d.ts +12 -0
- package/dist/components/overlays/utils/ScrollLock.d.ts.map +1 -0
- package/dist/components/overlays/utils/positioning.d.ts +69 -0
- package/dist/components/overlays/utils/positioning.d.ts.map +1 -0
- package/dist/components/primitives/Badge.d.ts +1 -1
- package/dist/components/primitives/Divider.d.ts.map +1 -1
- package/dist/components/primitives/Input.d.ts +2 -2
- package/dist/components/primitives/Input.d.ts.map +1 -1
- package/dist/components/primitives/Link.d.ts +1 -1
- package/dist/components/primitives/ThemeSwitch.d.ts +3 -2
- package/dist/components/primitives/ThemeSwitch.d.ts.map +1 -1
- package/dist/components/radio/Radio.d.ts +24 -0
- package/dist/components/radio/Radio.d.ts.map +1 -0
- package/dist/components/radio/Radio.types.d.ts +64 -0
- package/dist/components/radio/Radio.types.d.ts.map +1 -0
- package/dist/components/radio/RadioGroup.d.ts +21 -0
- package/dist/components/radio/RadioGroup.d.ts.map +1 -0
- package/dist/components/radio/RadioGroup.types.d.ts +62 -0
- package/dist/components/radio/RadioGroup.types.d.ts.map +1 -0
- package/dist/components/radio/index.d.ts +6 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/radio-variants.d.ts +14 -0
- package/dist/components/radio/radio-variants.d.ts.map +1 -0
- package/dist/components/sections/ArticlesSection.d.ts.map +1 -1
- package/dist/components/sections/CTASection.d.ts.map +1 -1
- package/dist/components/sections/FeatureSection.d.ts.map +1 -1
- package/dist/components/sections/HeroSection.d.ts.map +1 -1
- package/dist/components/sections/TrendingSection.d.ts.map +1 -1
- package/dist/components/select/Select.d.ts +39 -0
- package/dist/components/select/Select.d.ts.map +1 -0
- package/dist/components/select/Select.types.d.ts +108 -0
- package/dist/components/select/Select.types.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +6 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/legacy/select.d.ts +12 -0
- package/dist/components/select/legacy/select.d.ts.map +1 -0
- package/dist/components/select/select-variants.d.ts +33 -0
- package/dist/components/select/select-variants.d.ts.map +1 -0
- package/dist/components/skeletons/EventCardSkeleton.d.ts.map +1 -1
- package/dist/components/skeletons/VenueCardSkeleton.d.ts.map +1 -1
- package/dist/components/switch/Switch.d.ts +25 -0
- package/dist/components/switch/Switch.d.ts.map +1 -0
- package/dist/components/switch/Switch.types.d.ts +54 -0
- package/dist/components/switch/Switch.types.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +4 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/switch-variants.d.ts +35 -0
- package/dist/components/switch/switch-variants.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.d.ts +22 -0
- package/dist/components/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.types.d.ts +41 -0
- package/dist/components/textarea/Textarea.types.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +4 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/legacy/textarea.d.ts +12 -0
- package/dist/components/textarea/legacy/textarea.d.ts.map +1 -0
- package/dist/components/textarea/textarea-variants.d.ts +15 -0
- package/dist/components/textarea/textarea-variants.d.ts.map +1 -0
- package/dist/components/toasts/Toast.d.ts +1 -1
- package/dist/components/toasts/Toast.d.ts.map +1 -1
- package/dist/components/toasts/ToastProvider.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/body.d.ts +13 -0
- package/dist/components/ui/body.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/caption.d.ts +12 -0
- package/dist/components/ui/caption.d.ts.map +1 -0
- package/dist/components/ui/code.d.ts +12 -0
- package/dist/components/ui/code.d.ts.map +1 -0
- package/dist/components/ui/display.d.ts +13 -0
- package/dist/components/ui/display.d.ts.map +1 -0
- package/dist/components/ui/field.d.ts +46 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/heading.d.ts +13 -0
- package/dist/components/ui/heading.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +9 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/lead.d.ts +12 -0
- package/dist/components/ui/lead.d.ts.map +1 -0
- package/dist/components/ui/text.d.ts +19 -0
- package/dist/components/ui/text.d.ts.map +1 -0
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/useDebounce.d.ts.map +1 -1
- package/dist/hooks/useModal.d.ts.map +1 -1
- package/dist/hooks/useToast.d.ts.map +1 -1
- package/dist/icons/IconArrowRight.d.ts +7 -0
- package/dist/icons/IconArrowRight.d.ts.map +1 -0
- package/dist/icons/IconCalendar.d.ts +7 -0
- package/dist/icons/IconCalendar.d.ts.map +1 -0
- package/dist/icons/IconCheck.d.ts +7 -0
- package/dist/icons/IconCheck.d.ts.map +1 -0
- package/dist/icons/IconChevronDown.d.ts +7 -0
- package/dist/icons/IconChevronDown.d.ts.map +1 -0
- package/dist/icons/IconChevronRight.d.ts +7 -0
- package/dist/icons/IconChevronRight.d.ts.map +1 -0
- package/dist/icons/IconClose.d.ts +7 -0
- package/dist/icons/IconClose.d.ts.map +1 -0
- package/dist/icons/IconError.d.ts +7 -0
- package/dist/icons/IconError.d.ts.map +1 -0
- package/dist/icons/IconInfo.d.ts +7 -0
- package/dist/icons/IconInfo.d.ts.map +1 -0
- package/dist/icons/IconLocation.d.ts +7 -0
- package/dist/icons/IconLocation.d.ts.map +1 -0
- package/dist/icons/IconMenu.d.ts +7 -0
- package/dist/icons/IconMenu.d.ts.map +1 -0
- package/dist/icons/IconSearch.d.ts +7 -0
- package/dist/icons/IconSearch.d.ts.map +1 -0
- package/dist/icons/IconSuccess.d.ts +7 -0
- package/dist/icons/IconSuccess.d.ts.map +1 -0
- package/dist/icons/IconWarning.d.ts +7 -0
- package/dist/icons/IconWarning.d.ts.map +1 -0
- package/dist/icons/icon.types.d.ts +26 -0
- package/dist/icons/icon.types.d.ts.map +1 -0
- package/dist/icons/index.d.ts +35 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +37 -75
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +7675 -5926
- package/dist/{motion-CuHacXY1.js → motion-CzQhSEqk.js} +122 -106
- package/dist/motion-DJx1TbXJ.cjs +2 -0
- package/dist/preset.cjs +1 -1
- package/dist/preset.d.ts.map +1 -1
- package/dist/preset.mjs +172 -53
- package/dist/styles.cjs +2 -0
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.mjs +1 -0
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/applyMode.d.ts.map +1 -1
- package/dist/theme/colors.d.ts +6 -70
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.mjs +1352 -224
- package/dist/theme/motion/gestures.d.ts +77 -0
- package/dist/theme/motion/gestures.d.ts.map +1 -0
- package/dist/theme/motion/useReducedMotion.d.ts +12 -0
- package/dist/theme/motion/useReducedMotion.d.ts.map +1 -0
- package/dist/themes/brand_engine.d.ts +7 -0
- package/dist/themes/brand_engine.d.ts.map +1 -1
- package/dist/tokens/colors.d.ts +14 -19
- package/dist/tokens/colors.d.ts.map +1 -1
- package/dist/tokens/components/alert.d.ts +75 -0
- package/dist/tokens/components/alert.d.ts.map +1 -0
- package/dist/tokens/components/button.d.ts +131 -0
- package/dist/tokens/components/button.d.ts.map +1 -0
- package/dist/tokens/components/card.d.ts +92 -0
- package/dist/tokens/components/card.d.ts.map +1 -0
- package/dist/tokens/components/checkbox.d.ts +162 -0
- package/dist/tokens/components/checkbox.d.ts.map +1 -0
- package/dist/tokens/components/data.d.ts +228 -0
- package/dist/tokens/components/data.d.ts.map +1 -0
- package/dist/tokens/components/domain.d.ts +380 -0
- package/dist/tokens/components/domain.d.ts.map +1 -0
- package/dist/tokens/components/dropdown.d.ts +147 -0
- package/dist/tokens/components/dropdown.d.ts.map +1 -0
- package/dist/tokens/components/icon.d.ts +58 -0
- package/dist/tokens/components/icon.d.ts.map +1 -0
- package/dist/tokens/components/index.d.ts +32 -0
- package/dist/tokens/components/index.d.ts.map +1 -0
- package/dist/tokens/components/input.d.ts +285 -0
- package/dist/tokens/components/input.d.ts.map +1 -0
- package/dist/tokens/components/menu.d.ts +115 -0
- package/dist/tokens/components/menu.d.ts.map +1 -0
- package/dist/tokens/components/motion.d.ts +104 -0
- package/dist/tokens/components/motion.d.ts.map +1 -0
- package/dist/tokens/components/navigation.d.ts +182 -0
- package/dist/tokens/components/navigation.d.ts.map +1 -0
- package/dist/tokens/components/notifications.d.ts +160 -0
- package/dist/tokens/components/notifications.d.ts.map +1 -0
- package/dist/tokens/components/overlay.d.ts +228 -0
- package/dist/tokens/components/overlay.d.ts.map +1 -0
- package/dist/tokens/components/popover.d.ts +85 -0
- package/dist/tokens/components/popover.d.ts.map +1 -0
- package/dist/tokens/components/radio.d.ts +150 -0
- package/dist/tokens/components/radio.d.ts.map +1 -0
- package/dist/tokens/components/section.d.ts +42 -0
- package/dist/tokens/components/section.d.ts.map +1 -0
- package/dist/tokens/components/surface.d.ts +95 -0
- package/dist/tokens/components/surface.d.ts.map +1 -0
- package/dist/tokens/components/switch.d.ts +209 -0
- package/dist/tokens/components/switch.d.ts.map +1 -0
- package/dist/tokens/components/text.d.ts +69 -0
- package/dist/tokens/components/text.d.ts.map +1 -0
- package/dist/tokens/components/toast.d.ts +147 -0
- package/dist/tokens/components/toast.d.ts.map +1 -0
- package/dist/tokens/components/tooltip.d.ts +53 -0
- package/dist/tokens/components/tooltip.d.ts.map +1 -0
- package/dist/tokens/css-variables.d.ts +0 -19
- package/dist/tokens/css-variables.d.ts.map +1 -1
- package/dist/tokens/index.cjs +3 -3
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.mjs +3640 -821
- package/dist/tokens/motion/v2.d.ts +343 -0
- package/dist/tokens/motion/v2.d.ts.map +1 -0
- package/dist/tokens/motion.d.ts +55 -4
- package/dist/tokens/motion.d.ts.map +1 -1
- package/dist/tokens/opacity.d.ts +23 -0
- package/dist/tokens/opacity.d.ts.map +1 -0
- package/dist/tokens/radius.d.ts +22 -1
- package/dist/tokens/radius.d.ts.map +1 -1
- package/dist/tokens/shadows.d.ts +64 -5
- package/dist/tokens/shadows.d.ts.map +1 -1
- package/dist/tokens/spacing.d.ts +47 -1
- package/dist/tokens/spacing.d.ts.map +1 -1
- package/dist/tokens/theme.d.ts +120 -0
- package/dist/tokens/theme.d.ts.map +1 -0
- package/dist/tokens/typography.d.ts +141 -23
- package/dist/tokens/typography.d.ts.map +1 -1
- package/dist/typography-C-Nb4y0o.cjs +2 -0
- package/dist/typography-DHym9KAP.js +1196 -0
- package/package.json +31 -22
- package/dist/ThemeProvider-CaUX_Jam.cjs +0 -2
- package/dist/ThemeProvider-ltuW-773.js +0 -1227
- package/dist/components/cards/EventCard.d.ts.map +0 -1
- package/dist/components/cards/VenueCard.d.ts.map +0 -1
- package/dist/components/feedback/Alert.d.ts +0 -10
- package/dist/components/feedback/Alert.d.ts.map +0 -1
- package/dist/components/forms/FormInput.d.ts +0 -12
- package/dist/components/forms/FormInput.d.ts.map +0 -1
- package/dist/components/forms/FormSelect.d.ts +0 -18
- package/dist/components/forms/FormSelect.d.ts.map +0 -1
- package/dist/components/forms/FormTextarea.d.ts +0 -11
- package/dist/components/forms/FormTextarea.d.ts.map +0 -1
- package/dist/components/primitives/Typography.d.ts +0 -21
- package/dist/components/primitives/Typography.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -4
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/motion-4SRNkZlz.cjs +0 -2
- package/dist/radius-CAu4qr9R.js +0 -185
- package/dist/radius-Cz6tayZG.cjs +0 -2
- package/dist/test/animation-utils.d.ts +0 -60
- package/dist/test/animation-utils.d.ts.map +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./motion-4SRNkZlz.cjs"),V=require("./tokens/index.cjs"),$e=require("./radius-Cz6tayZG.cjs"),a=require("react/jsx-runtime"),re=require("class-variance-authority"),g=require("react"),Kr=require("clsx"),Zr=require("tailwind-merge"),Dt=require("@radix-ui/react-slot"),ea=require("@radix-ui/react-label"),L=require("lucide-react"),ie=require("./ThemeProvider-CaUX_Jam.cjs"),he=require("framer-motion"),ta=require("@radix-ui/react-dialog"),ra=require("react-dom"),aa=require("@radix-ui/react-popover"),na=require("@radix-ui/react-tooltip"),sa=require("@radix-ui/react-dropdown-menu"),oa=require("@radix-ui/react-navigation-menu"),ia=require("@radix-ui/react-tabs"),da=require("@radix-ui/react-select");function xe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const p=xe(g),Tt=xe(ea),k=xe(ta),De=xe(aa),Ie=xe(na),q=xe(sa),ee=xe(oa),je=xe(ia),A=xe(da);function c(...e){return Zr.twMerge(Kr.clsx(e))}function Et(e){return new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(new Date(e))}function Pt(e){return new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).format(new Date(e))}function la(e){return`${Et(e)} at ${Pt(e)}`}function ca(){return Math.random().toString(36).substr(2,9)}function ua(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}}function ma(e,t){let r;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>r=!1,t))}}const Rt=re.cva("inline-flex items-center rounded-full border px-xs py-xs text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{primary:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",accent:"border-transparent bg-accent text-accent-foreground hover:bg-accent/80",outline:"text-foreground border-border",ghost:"border-transparent bg-transparent text-foreground hover:bg-accent/10",link:"border-transparent bg-transparent text-primary hover:text-primary/80 underline-offset-4 hover:underline",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80"}},defaultVariants:{variant:"primary"}});function ha({className:e,variant:t,...r}){return a.jsx("div",{className:c(Rt({variant:t}),e),...r})}const Ot=re.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",accent:"bg-accent text-accent-foreground shadow-sm hover:bg-accent/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90"},size:{xs:"h-7 rounded-md px-xs py-xs text-xs",sm:"h-8 rounded-md px-sm py-xs text-xs",md:"h-9 rounded-md px-md py-sm text-sm",lg:"h-10 rounded-md px-lg py-sm text-sm",xl:"h-11 rounded-md px-xl py-md text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"primary",size:"md"}}),J=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,leftIcon:s,rightIcon:o,children:d,...i},l)=>{const u=n?Dt.Slot:"button";return a.jsxs(u,{className:c(Ot({variant:t,size:r,className:e})),ref:l,...i,children:[s&&a.jsx("span",{className:"inline-flex items-center",children:s}),d,o&&a.jsx("span",{className:"inline-flex items-center",children:o})]})});J.displayName="Button";const se=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));se.displayName="Card";const Ft=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("flex flex-col space-y-xs p-lg",e),...t}));Ft.displayName="CardHeader";const qt=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("font-semibold leading-none tracking-tight",e),...t}));qt.displayName="CardTitle";const Vt=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("text-sm text-muted-foreground",e),...t}));Vt.displayName="CardDescription";const oe=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("p-lg pt-0",e),...t}));oe.displayName="CardContent";const It=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:c("flex items-center p-lg pt-0",e),...t}));It.displayName="CardFooter";const Lt=p.forwardRef(({className:e,orientation:t="horizontal",variant:r="solid",...n},s)=>{const o={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"};return a.jsx("div",{ref:s,className:c("border-border",t==="horizontal"?`w-full border-t ${o[r]}`:`h-full border-l ${o[r]}`,e),...n})});Lt.displayName="Divider";const Te=p.forwardRef(({className:e,type:t,...r},n)=>a.jsx("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-sm py-xs text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));Te.displayName="Input";const pa=re.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),be=p.forwardRef(({className:e,...t},r)=>a.jsx(Tt.Root,{ref:r,className:c(pa(),e),...t}));be.displayName=Tt.Root.displayName;const Bt=re.cva("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"text-primary hover:text-primary/80 underline-offset-4 hover:underline",secondary:"text-secondary-foreground underline-offset-4 hover:underline",accent:"text-accent-foreground hover:text-accent-foreground/80 underline-offset-4 hover:underline",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-md px-md py-sm",ghost:"text-foreground hover:text-accent-foreground hover:bg-accent rounded-md px-sm py-sm",link:"text-primary underline-offset-4 hover:underline",destructive:"text-destructive hover:text-destructive/80 underline-offset-4 hover:underline"},size:{xs:"h-7 text-xs px-xs py-xs",sm:"h-8 text-xs px-sm py-xs",md:"h-9 text-sm px-md py-sm",lg:"h-10 text-sm px-lg py-sm",xl:"h-11 text-base px-xl py-md"}},defaultVariants:{variant:"link",size:"md"}}),pe=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,leftIcon:s,rightIcon:o,children:d,...i},l)=>{const u=n?Dt.Slot:"a";return a.jsxs(u,{className:c(Bt({variant:t,size:r,className:e})),ref:l,...i,children:[s&&a.jsx("span",{className:"inline-flex items-center",children:s}),d,o&&a.jsx("span",{className:"inline-flex items-center",children:o})]})});pe.displayName="Link";const zt="tm_mode",Wt="tm_mode",_t="theme",At="data-mode",$t="data-theme",xa="dark";function Ht(e){var s,o;if(((o=(s=globalThis.process)==null?void 0:s.env)==null?void 0:o.NODE_ENV)==="production"||typeof document>"u")return;const r=document.documentElement,n={"data-mode":r.getAttribute(At),"data-theme":r.getAttribute($t),darkClass:r.classList.contains(xa),"--background":getComputedStyle(r).getPropertyValue("--background"),"--tm-primary":getComputedStyle(r).getPropertyValue("--tm-primary")};console.log("[theme-switch]",e,n)}function fa(e){var n;if(typeof document>"u")return;const r=`; ${document.cookie}`.split(`; ${e}=`);if(r.length===2)return(n=r.pop())==null?void 0:n.split(";")[0]}function bt(){var n,s;if(typeof document>"u")return"day";const e=document.documentElement.getAttribute(At);if(e==="day"||e==="night")return e;const t=document.documentElement.getAttribute($t);if(t==="day"||t==="night")return t;if(typeof window<"u")try{const o=window.localStorage.getItem(Wt);if(o==="day"||o==="night")return o;const d=window.localStorage.getItem(_t);if(d==="dark")return"night";if(d==="light")return"day"}catch{}const r=fa(zt);return r==="day"||r==="night"?r:typeof window<"u"&&((s=(n=window.matchMedia)==null?void 0:n.call(window,"(prefers-color-scheme: dark)"))==null?void 0:s.matches)?"night":"day"}function yt(e){if(typeof document>"u")return;if(ie.applyDocumentMode(e),typeof window<"u")try{window.localStorage.setItem(Wt,e),window.localStorage.setItem(_t,e==="night"?"dark":"light")}catch{}const t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie=`${zt}=${e};expires=${t.toUTCString()};path=/;SameSite=Lax`,Ht(`persist:${e}`)}const ba=({className:e,size:t="md",variant:r="primary"})=>{const n=g.useContext(ie.ThemeContext),[s,o]=g.useState(()=>n?n.mode:bt());g.useEffect(()=>{if(n)o(n.mode);else{const l=bt();o(l),yt(l),Ht(`initial:${l}`)}},[n]);const d=()=>{n?(n.toggleMode(),o(n.mode==="night"?"day":"night")):o(l=>{const u=l==="night"?"day":"night";return yt(u),u})};let i="md";return t==="xs"?i="xs":t==="sm"?i="sm":t==="lg"?i="lg":t==="xl"&&(i="xl"),a.jsx(J,{onClick:d,variant:r,size:i,className:c(e),"aria-label":`Switch to ${s==="night"?"day":"night"} mode`,type:"button",children:s==="night"?a.jsx(L.Sun,{className:"h-4 w-4"}):a.jsx(L.Moon,{className:"h-4 w-4"})})},Y=({className:e,children:t,as:r,level:n=1})=>{const s=r||`h${n}`,o={1:"text-4xl font-bold tracking-tight",2:"text-3xl font-bold tracking-tight",3:"text-2xl font-bold tracking-tight",4:"text-xl font-semibold tracking-tight",5:"text-lg font-semibold tracking-tight",6:"text-md font-semibold tracking-tight"};return a.jsx(s,{className:c(o[n],e),children:t})},M=({className:e,children:t,size:r="md",weight:n="normal",variant:s})=>{const o={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},d={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},i={primary:"text-primary",secondary:"text-secondary-foreground",accent:"text-accent-foreground",outline:"text-foreground",ghost:"text-foreground",link:"text-primary hover:underline",destructive:"text-destructive",muted:"text-muted-foreground"};return a.jsx("span",{className:c(o[r],d[n],s&&i[s],e),children:t})},ya=({className:e,children:t,...r})=>a.jsx("p",{className:c("leading-7 [&:not(:first-child)]:mt-lg",e),children:a.jsx(M,{...r,children:t})}),wa=({className:e,children:t})=>a.jsx("code",{className:c("relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",e),children:t}),va=({className:e,children:t})=>a.jsx("blockquote",{className:c("mt-lg border-l-2 pl-lg italic",e),children:t});function Ne(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function me(e){if(typeof e=="number")return e%1!==0?`var(--spacing-${e.toString().replace(".","-")})`:`var(--spacing-${e})`;if(e==="none")return"var(--spacing-none)";if(e.includes("-")&&!e.startsWith("--")){const t=e.split("-");if(t.length>=2){const r=t[0],n=t.slice(1).join("-");if(r&&["section","container","grid","stack","component"].includes(r))return`var(--layout-${r}-${n})`}}return`var(--spacing-${e})`}function Yt(e){return`var(--radius-${e})`}function ga(e){return e.startsWith("hsl(")||e.startsWith("var(")?e:`var(--${e})`}function ce(e){return me(e)}function ja(e){return Yt(e)}function Na(e){return e.startsWith("hsl(")||e.startsWith("var(")?e:ga(e)}function ae(e,t,r){return e?Ne(e)?e.base!==void 0?t(e.base):e.sm!==void 0?t(e.sm):e.md!==void 0?t(e.md):r:t(e):r}function Sa(e){return e.initial!==void 0||e.animate!==void 0||e.exit!==void 0||e.transition!==void 0||e.whileHover!==void 0||e.whileFocus!==void 0||e.whileTap!==void 0||e.whileDrag!==void 0||e.whileInView!==void 0}const Le=p.forwardRef(({p:e,px:t,py:r,pt:n,pr:s,pb:o,pl:d,m:i,mx:l,my:u,mt:m,mr:f,mb:y,ml:h,bg:b,radius:w,as:j="div",className:N,style:x,initial:v,animate:$,exit:B,transition:O,whileHover:F,whileFocus:P,whileTap:I,whileDrag:z,whileInView:W,viewport:T,...R},C)=>{const S={};e?S.padding=ae(e,ce):((n||r)&&(S.paddingTop=ae(n||r,ce)),(s||t)&&(S.paddingRight=ae(s||t,ce)),(o||r)&&(S.paddingBottom=ae(o||r,ce)),(d||t)&&(S.paddingLeft=ae(d||t,ce))),i?S.margin=ae(i,ce):((m||u)&&(S.marginTop=ae(m||u,ce)),(f||l)&&(S.marginRight=ae(f||l,ce)),(y||u)&&(S.marginBottom=ae(y||u,ce)),(h||l)&&(S.marginLeft=ae(h||l,ce))),b&&(S.backgroundColor=ae(b,Na)),w&&(S.borderRadius=ae(w,ja));const te={...S,...x},K=Sa({initial:v,animate:$,exit:B,transition:O,whileHover:F,whileFocus:P,whileTap:I,whileDrag:z,whileInView:W}),Z=K?{initial:v,animate:$,exit:B,transition:O,whileHover:F,whileFocus:P,whileTap:I,whileDrag:z,whileInView:W,viewport:T}:{};if(K&&j==="div"){const{onDrag:U,onDragStart:ye,onDragEnd:le,onAnimationStart:Se,onAnimationEnd:Ee,onAnimationIteration:Be,...ze}=R,Pe=ze;return a.jsx(he.motion.div,{ref:C,className:N,style:te,...Z,...Pe})}const G=j;return a.jsx(G,{ref:C,className:N,style:te,...R})});Le.displayName="Box";const Gt=re.cva("mx-auto px-md",{variants:{size:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full"},padding:{none:"px-0",sm:"px-sm",md:"px-md",lg:"px-lg",xl:"px-xl"}},defaultVariants:{size:"7xl",padding:"md"}}),Ut=p.forwardRef(({className:e,size:t,padding:r,...n},s)=>a.jsx("div",{ref:s,className:c(Gt({size:t,padding:r,className:e})),...n}));Ut.displayName="Container";const Xt=re.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},align:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"}},defaultVariants:{direction:"row",wrap:"nowrap",justify:"start",align:"start"}});function Ma(e){return e.initial!==void 0||e.animate!==void 0||e.exit!==void 0||e.transition!==void 0||e.whileHover!==void 0||e.whileFocus!==void 0||e.whileTap!==void 0||e.whileDrag!==void 0||e.whileInView!==void 0}function Ca(e,t){if(e==null)return t;if(Ne(e)){let r;return e.base!==void 0?r=e.base:e.sm!==void 0?r=e.sm:e.md!==void 0&&(r=e.md),r!==void 0?me(r):t}return me(e===0?0:e)}function We(e){if(e!=null)return Ne(e)?e.base||e.sm||e.md||e.lg||e.xl||e["2xl"]||void 0:e}const He=p.forwardRef(({className:e,direction:t,wrap:r,justify:n,align:s,gap:o,style:d,initial:i,animate:l,exit:u,transition:m,whileHover:f,whileFocus:y,whileTap:h,whileDrag:b,whileInView:w,viewport:j,...N},x)=>{const v=We(t),$=We(r),B=We(n),O=We(s),F={};o!==void 0&&(F.gap=Ca(o,"0"));const P={...F,...d},I=Ma({initial:i,animate:l,exit:u,transition:m,whileHover:f,whileFocus:y,whileTap:h,whileDrag:b,whileInView:w}),z=I?{initial:i,animate:l,exit:u,transition:m,whileHover:f,whileFocus:y,whileTap:h,whileDrag:b,whileInView:w,viewport:j}:{},W=c(Xt({direction:v,wrap:$,justify:B,align:O}),e);if(I){const{onDrag:T,onDragStart:R,onDragEnd:C,onAnimationStart:S,onAnimationEnd:te,onAnimationIteration:K,...Z}=N,G=Z;return a.jsx(he.motion.div,{ref:x,className:W,style:P,...z,...G})}return a.jsx("div",{ref:x,className:W,style:P,...N})});He.displayName="Flex";const ka=({className:e,left:t,right:r,children:n})=>a.jsx("footer",{className:c("w-full border-t bg-background px-md py-lg",e),children:a.jsxs("div",{className:"flex w-full items-center justify-between",children:[t&&a.jsx("div",{className:"flex items-center",children:t}),n&&a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{className:"flex items-center",children:r})]})}),Qt=re.cva("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12",none:"grid-cols-none"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},align:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"}},defaultVariants:{cols:1,rows:"none",align:"stretch",justify:"start",flow:"row"}});function Re(e){if(e!=null)return Ne(e)?e.base||e.sm||e.md||e.lg||e.xl||e["2xl"]||void 0:e}function Da(e,t){if(e==null)return t;if(Ne(e)){let r;return e.base!==void 0?r=e.base:e.sm!==void 0?r=e.sm:e.md!==void 0&&(r=e.md),r!==void 0?me(r):t}return me(e===0?0:e)}function Ta(e){return e.initial!==void 0||e.animate!==void 0||e.exit!==void 0||e.transition!==void 0||e.whileHover!==void 0||e.whileFocus!==void 0||e.whileTap!==void 0||e.whileDrag!==void 0||e.whileInView!==void 0}const Ke=p.forwardRef(({className:e,cols:t,md:r,lg:n,xl:s,rows:o,gap:d,align:i,justify:l,flow:u,style:m,initial:f,animate:y,exit:h,transition:b,whileHover:w,whileFocus:j,whileTap:N,whileDrag:x,whileInView:v,viewport:$,...B},O)=>{const F=Re(t),P=Re(o),I=Re(i),z=Re(l),W=Re(u),T=r||n||s,C=[F?`grid-cols-${F}`:"grid-cols-1",r&&`md:grid-cols-${r}`,n&&`lg:grid-cols-${n}`,s&&`xl:grid-cols-${s}`].filter(Boolean).join(" "),S={};d!==void 0&&(S.gap=Da(d,"0"));const te={...S,...m},K=Qt({cols:T?void 0:F,rows:P,align:I,justify:z,flow:W}),Z=Ta({initial:f,animate:y,exit:h,transition:b,whileHover:w,whileFocus:j,whileTap:N,whileDrag:x,whileInView:v}),G=Z?{initial:f,animate:y,exit:h,transition:b,whileHover:w,whileFocus:j,whileTap:N,whileDrag:x,whileInView:v,viewport:$}:{},U=c(K,T&&C,e);if(Z){const{onDrag:ye,onDragStart:le,onDragEnd:Se,onAnimationStart:Ee,onAnimationEnd:Be,onAnimationIteration:ze,...Pe}=B,X=Pe;return a.jsx(he.motion.div,{ref:O,className:U,style:te,...G,...X})}return a.jsx("div",{ref:O,className:U,style:te,...B})});Ke.displayName="Grid";const Ea=({dayLabel:e,nightLabel:t,dayDescription:r,nightDescription:n,className:s})=>{if(!e||e.trim()==="")throw new Error('ModeHero: "dayLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('ModeHero: "nightLabel" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('ModeHero: "dayDescription" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('ModeHero: "nightDescription" prop is required and cannot be empty');return a.jsx("div",{className:c("rounded-lg bg-gradient-to-r from-primary to-accent p-lg text-primary-foreground",s),children:a.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[a.jsx(Y,{level:1,className:"mb-md text-4xl font-bold",children:"Tenerife Music Platform"}),a.jsx(M,{size:"xl",className:"mb-8",children:"Discover amazing music events in Tenerife"}),a.jsxs("div",{className:"grid grid-cols-1 gap-lg md:grid-cols-2",children:[a.jsx(se,{className:"border-white/20 bg-white/10 backdrop-blur-sm",children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:3,className:"mb-sm text-2xl font-semibold",children:e}),a.jsx(M,{className:"text-white/80",children:r})]})}),a.jsx(se,{className:"border-white/20 bg-white/10 backdrop-blur-sm",children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:3,className:"mb-sm text-2xl font-semibold",children:t}),a.jsx(M,{className:"text-white/80",children:n})]})})]})]})})},Pa=({className:e,left:t,right:r,children:n,ariaLabel:s="Primary navigation",...o})=>a.jsxs("nav",{className:c("flex w-full items-center justify-between px-md py-sm",e),"aria-label":s,...o,children:[t&&a.jsx("div",{className:"flex items-center",children:t}),n&&a.jsx("div",{className:"flex items-center",children:n}),r&&a.jsx("div",{className:"flex items-center",children:r})]}),Ra=({className:e,children:t,padding:r="md",background:n="default",as:s="section"})=>{const o={none:"",sm:"py-md",md:"py-xl",lg:"py-3xl",xl:"py-4xl"},d={default:"",muted:"bg-muted",card:"bg-card"};return a.jsx(s,{className:c("w-full",o[r],d[n],e),children:t})},Jt=re.cva("flex flex-col",{variants:{align:{start:"items-start",end:"items-end",center:"items-center",stretch:"items-stretch"},justify:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around"}},defaultVariants:{align:"stretch",justify:"start"}});function Ue(e){if(e!=null)return Ne(e)?e.base||e.sm||e.md||e.lg||e.xl||e["2xl"]||void 0:e}function Oa(e,t){if(e==null)return t;if(Ne(e)){let r;return e.base!==void 0?r=e.base:e.sm!==void 0?r=e.sm:e.md!==void 0&&(r=e.md),r!==void 0?me(r):t}return me(e===0?0:e)}function Fa(e){return e.initial!==void 0||e.animate!==void 0||e.exit!==void 0||e.transition!==void 0||e.whileHover!==void 0||e.whileFocus!==void 0||e.whileTap!==void 0||e.whileDrag!==void 0||e.whileInView!==void 0}const Ze=p.forwardRef(({className:e,direction:t,spacing:r,align:n,justify:s,style:o,initial:d,animate:i,exit:l,transition:u,whileHover:m,whileFocus:f,whileTap:y,whileDrag:h,whileInView:b,viewport:w,...j},N)=>{const x=Ue(t),v=Ue(n),$=Ue(s),B=x==="horizontal",O={};r!==void 0&&(O.gap=Oa(r,"0")),B&&(O.flexDirection="row");const F={...O,...o},P=Fa({initial:d,animate:i,exit:l,transition:u,whileHover:m,whileFocus:f,whileTap:y,whileDrag:h,whileInView:b}),I=P?{initial:d,animate:i,exit:l,transition:u,whileHover:m,whileFocus:f,whileTap:y,whileDrag:h,whileInView:b,viewport:w}:{},z=c(Jt({align:v,justify:$}),e);if(P){const{onDrag:W,onDragStart:T,onDragEnd:R,onAnimationStart:C,onAnimationEnd:S,onAnimationIteration:te,...K}=j,Z=K;return a.jsx(he.motion.div,{ref:N,className:z,style:F,...I,...Z})}return a.jsx("div",{ref:N,className:z,style:F,...j})});Ze.displayName="Stack";function _(e){if(e===!0)return!0;if(e===!1||typeof window>"u")return!1;try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}function wt(e,t,r){return _(r)?E.reducedMotion.spring:e&&e in E.springs?{...E.springs[e],...t}:{...E.springs.default,...t}}function vt(e){const r={linear:"linear","ease-in":"easeIn","ease-out":"easeOut","ease-in-out":"easeInOut",ease:"ease"}[e];if(r)return r;const n=e.match(/cubic-bezier\(([^)]+)\)/);if(n&&n[1]){const s=n[1].split(",").map(o=>parseFloat(o.trim())).filter(o=>!isNaN(o));if(s.length===4)return s}return e}function gt(e){const t=e.match(/(\d+(?:\.\d+)?)(ms|s)/);if(!t||!t[1])return;const r=parseFloat(t[1]);if(!(isNaN(r)||r<0))return t[2]==="s"?r:r/1e3}function H(e={}){const{duration:t,easing:r,delay:n,spring:s,reduceMotion:o}=e;if(_(o))return{duration:0,ease:"linear",delay:0};if(s){const l={...typeof s=="string"?wt(s,void 0,o):wt(void 0,s,o)};return delete l.duration,delete l.ease,n!==void 0&&!isNaN(n)&&n>=0&&(l.delay=n/1e3),l}const d={type:"tween"};if(t){let i;if(typeof t=="string"){const l=t in E.durations?E.durations[t]:t;i=gt(l),i===void 0&&t in E.durations&&process.env.NODE_ENV==="development"&&console.warn(`[TAS] Failed to parse duration token "${t}" value "${l}". Using default timing.`)}else if(typeof t=="number")!isNaN(t)&&t>=0&&(i=t/1e3);else{const l=E.durations[t];l&&typeof l=="string"&&(i=gt(l))}i!==void 0&&i>=0&&!isNaN(i)&&(d.duration=i)}if(r)if(typeof r=="string")d.ease=vt(r);else{const i=E.easings[r];i&&(d.ease=vt(i))}return n!==void 0&&!isNaN(n)&&n>=0&&(d.delay=n/1e3),d}const Q={fadeIn:e=>({initial:_(e==null?void 0:e.reducedMotion)?{}:{opacity:0},animate:{opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}),fadeOut:e=>({initial:_(e==null?void 0:e.reducedMotion)?{}:{opacity:1},animate:{opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}),fadeInUp:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||20;return{initial:t?{}:{opacity:0,y:r},animate:{opacity:1,y:0},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:e==null?void 0:e.spring,delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},fadeInDown:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||20;return{initial:t?{}:{opacity:0,y:-r},animate:{opacity:1,y:0},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:e==null?void 0:e.spring,delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},fadeInLeft:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||20;return{initial:t?{}:{opacity:0,x:-r},animate:{opacity:1,x:0},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:e==null?void 0:e.spring,delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},fadeInRight:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||20;return{initial:t?{}:{opacity:0,x:r},animate:{opacity:1,x:0},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:e==null?void 0:e.spring,delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}}},Ce={slideInUp:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:t?{}:{y:r,opacity:0},animate:{y:0,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideInDown:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:t?{}:{y:-r,opacity:0},animate:{y:0,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideInLeft:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:t?{}:{x:-r,opacity:0},animate:{x:0,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideInRight:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:t?{}:{x:r,opacity:0},animate:{x:0,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideOutUp:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:{y:0,opacity:1},exit:t?{}:{y:-r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideOutDown:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:{y:0,opacity:1},exit:t?{}:{y:r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideOutLeft:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:{x:0,opacity:1},exit:t?{}:{x:-r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},slideOutRight:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.distance)||100;return{initial:{x:0,opacity:1},exit:t?{}:{x:r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}}},ve={scaleIn:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||.95;return{initial:t?{}:{scale:r,opacity:0},animate:{scale:1,opacity:1},transition:H({duration:(e==null?void 0:e.duration)||"normal",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},scaleOut:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||.95;return{initial:{scale:1,opacity:1},exit:t?{}:{scale:r,opacity:0},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-in",delay:e==null?void 0:e.delay,reduceMotion:e==null?void 0:e.reducedMotion})}},scaleUp:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||1.05;return{whileHover:t?{}:{scale:r},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",reduceMotion:e==null?void 0:e.reducedMotion})}},scaleDown:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||.95;return{whileTap:t?{}:{scale:r},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",reduceMotion:e==null?void 0:e.reducedMotion})}}},Xe={hoverLift:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||1.05,n=(e==null?void 0:e.y)??-5;return{whileHover:t?{}:{scale:r,y:n},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",reduceMotion:e==null?void 0:e.reducedMotion})}},hoverScale:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||1.05;return{whileHover:t?{}:{scale:r},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",spring:(e==null?void 0:e.spring)||"gentle",reduceMotion:e==null?void 0:e.reducedMotion})}},tapScale:e=>{const t=_(e==null?void 0:e.reducedMotion),r=(e==null?void 0:e.scale)||.95;return{whileTap:t?{}:{scale:r},transition:H({duration:(e==null?void 0:e.duration)||"fast",easing:typeof(e==null?void 0:e.ease)=="string"?e.ease:"ease-out",reduceMotion:e==null?void 0:e.reducedMotion})}}},Kt=k.Root,qa=k.Trigger,Zt=k.Portal,Va=k.Close,et=p.forwardRef(({className:e,...t},r)=>{const n=Q.fadeIn({duration:"normal"}),s=Q.fadeOut({duration:"fast"});return a.jsx(k.Overlay,{ref:r,...t,asChild:!0,children:a.jsx(he.motion.div,{className:c("fixed inset-0 z-50 bg-black/80",e),initial:n.initial,animate:n.animate,exit:s.exit,transition:n.transition})})});et.displayName=k.Overlay.displayName;const tt=p.forwardRef(({className:e,children:t,...r},n)=>{const s={...Q.fadeIn({duration:"normal"}),...ve.scaleIn({scale:.95,duration:"normal"})},o={...Q.fadeOut({duration:"fast"}),...ve.scaleOut({scale:.95,duration:"fast"})};return a.jsxs(Zt,{children:[a.jsx(et,{}),a.jsx(k.Content,{ref:n,...r,asChild:!0,children:a.jsxs(he.motion.div,{className:c("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-md border bg-background p-lg shadow-lg sm:rounded-lg",e),initial:s.initial,animate:s.animate,exit:o.exit,transition:s.transition,children:[t,a.jsxs(k.Close,{className:"absolute right-md top-md rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(L.X,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})});tt.displayName=k.Content.displayName;const rt=({className:e,...t})=>a.jsx("div",{className:c("flex flex-col space-y-xs text-center sm:text-left",e),...t});rt.displayName="ModalHeader";const at=({className:e,...t})=>a.jsx("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-sm",e),...t});at.displayName="ModalFooter";const nt=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Title,{ref:r,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));nt.displayName=k.Title.displayName;const st=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Description,{ref:r,className:c("text-sm text-muted-foreground",e),...t}));st.displayName=k.Description.displayName;function er({isOpen:e,onClose:t,onConfirm:r,title:n,description:s,confirmText:o,cancelText:d,loadingText:i,variant:l="primary",isLoading:u=!1}){if(!n||n.trim()==="")throw new Error('ConfirmDialog: "title" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('ConfirmDialog: "description" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('ConfirmDialog: "confirmText" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('ConfirmDialog: "cancelText" prop is required and cannot be empty');const m=()=>{r(),t()};return a.jsx(Kt,{open:e,onOpenChange:t,children:a.jsxs(tt,{children:[a.jsxs(rt,{children:[a.jsx(nt,{children:n}),a.jsx(st,{children:s})]}),a.jsxs(at,{children:[a.jsx(J,{variant:"outline",onClick:t,disabled:u,children:d}),a.jsx(J,{variant:l,onClick:m,disabled:u,children:u&&i||o})]})]})})}function Ia(){const[e,t]=p.useState({isOpen:!1}),r=p.useCallback(o=>{t({isOpen:!0,...o})},[]),n=p.useCallback(()=>{t({isOpen:!1})},[]),s=p.useMemo(()=>a.jsx(er,{isOpen:e.isOpen,onClose:n,onConfirm:e.onConfirm||(()=>{}),title:e.title||"",description:e.description||"",confirmText:e.confirmText||"",cancelText:e.cancelText||"",loadingText:e.loadingText,variant:e.variant}),[e,n]);return{showConfirm:r,hideConfirm:n,ConfirmDialog:s}}function La(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,o;for(o=0;o<n.length;o++)s=n[o],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Ba=["color"],za=g.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,s=La(e,Ba);return g.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:t}),g.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const Wa=k.Root,_a=k.Portal,tr=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Overlay,{ref:r,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t}));tr.displayName=k.Overlay.displayName;const rr=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(_a,{children:[a.jsx(tr,{}),a.jsxs(k.Content,{ref:n,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-md border bg-background p-lg shadow-lg duration-200 sm:rounded-lg",e),...r,children:[t,a.jsxs(k.Close,{className:"absolute right-md top-md rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground","aria-label":"Close dialog",children:[a.jsx(za,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));rr.displayName=k.Content.displayName;const ar=({className:e,...t})=>a.jsx("div",{className:c("flex flex-col space-y-xs text-center sm:text-left",e),...t});ar.displayName="DialogHeader";const nr=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Title,{ref:r,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));nr.displayName=k.Title.displayName;const sr=p.forwardRef(({className:e,...t},r)=>a.jsx(k.Description,{ref:r,className:c("text-sm text-muted-foreground",e),...t}));sr.displayName=k.Description.displayName;const Aa=({isOpen:e,onClose:t,title:r,description:n,children:s,className:o,...d})=>a.jsx(Wa,{open:e,onOpenChange:i=>!i&&t(),children:a.jsxs(rr,{className:c("max-w-md",o),...d,children:[(r||n)&&a.jsxs(ar,{children:[r&&a.jsx(nr,{children:r}),n&&a.jsx(sr,{children:n})]}),s]})});function $a(e=!1){const[t,r]=g.useState({isOpen:e,data:void 0}),n=g.useCallback(d=>{r({isOpen:!0,data:d})},[]),s=g.useCallback(()=>{r(d=>({...d,isOpen:!1}))},[]),o=g.useCallback(()=>{r(d=>({...d,isOpen:!d.isOpen}))},[]);return{isOpen:t.isOpen,data:t.data,open:n,close:s,toggle:o}}function or(){const[e,t]=g.useState({}),r=g.useCallback((i,l)=>{t(u=>({...u,[i]:{isOpen:!0,data:l}}))},[]),n=g.useCallback(i=>{t(l=>({...l,[i]:{isOpen:!1,data:void 0}}))},[]),s=g.useCallback(i=>{t(l=>{var u,m;return{...l,[i]:{isOpen:!((u=l[i])!=null&&u.isOpen),data:(m=l[i])==null?void 0:m.data}}})},[]),o=g.useCallback(i=>{var l;return((l=e[i])==null?void 0:l.isOpen)||!1},[e]),d=g.useCallback(i=>{var l;return(l=e[i])==null?void 0:l.data},[e]);return{openModal:r,closeModal:n,toggleModal:s,isModalOpen:o,getModalData:d}}const ir=g.createContext(void 0);function Ha({children:e}){const t=or();return a.jsx(ir.Provider,{value:t,children:e})}function dr(){const e=g.useContext(ir);if(e===void 0)throw new Error("useModalContext must be used within a ModalProvider");return e}function Ya(e,t){return function(n){const{openModal:s,closeModal:o,toggleModal:d,isModalOpen:i,getModalData:l}=dr(),u={[`${t}Open`]:()=>s(t),[`${t}Close`]:()=>o(t),[`${t}Toggle`]:()=>d(t),[`is${t}Open`]:i(t),[`${t}Data`]:l(t)};return a.jsx(e,{...n,...u})}}const _e="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background transition-shadow",Ga=({isOpen:e,onClose:t,title:r,description:n,children:s,className:o,hideCloseButton:d=!1,...i})=>{const l=g.useId(),u=g.useId();return a.jsx(k.Root,{open:e,onOpenChange:m=>{m||t()},children:a.jsxs(k.Portal,{children:[a.jsx(k.Overlay,{"aria-hidden":"true",className:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-40 bg-black/50 backdrop-blur-sm"}),a.jsxs(k.Content,{"aria-modal":"true","aria-labelledby":r?l:void 0,"aria-describedby":n?u:void 0,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 shadow-elevation-xl fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-card focus:outline-none",o),...i,children:[r&&a.jsx(k.Title,{id:l,className:"border-b px-6 py-4 text-lg font-semibold text-foreground",children:r}),a.jsxs("div",{className:"p-6",children:[n&&a.jsx(k.Description,{id:u,className:"mb-4 text-sm text-muted-foreground",children:n}),s]}),!d&&a.jsxs(k.Close,{className:c("absolute right-4 top-4 rounded-full p-1 text-muted-foreground transition-colors hover:text-foreground",_e),children:[a.jsx(L.X,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Close modal"})]})]})]})})};function Ua({children:e,container:t,className:r,style:n}){const[s,o]=p.useState(!1);if(p.useEffect(()=>{o(!0)},[]),!s||typeof document>"u")return null;const d=t||document.body;return ra.createPortal(a.jsx("div",{className:c("fixed inset-0 z-50",r),style:n,children:e}),d)}function Xa({onClick:e,className:t,style:r}){return a.jsx("div",{className:c("absolute inset-0 bg-black/50 backdrop-blur-sm",t),style:r,onClick:e})}function Qa({children:e,className:t,style:r,position:n="center"}){const s={center:"flex items-center justify-center",top:"flex justify-center pt-8",bottom:"flex justify-center pb-8",left:"flex items-center pl-8",right:"flex items-center pr-8","top-left":"flex justify-start items-start pt-8 pl-8","top-right":"flex justify-end items-start pt-8 pr-8","bottom-left":"flex justify-start items-end pb-8 pl-8","bottom-right":"flex justify-end items-end pb-8 pr-8"};return a.jsx("div",{className:c("relative h-full min-h-screen w-full",s[n],t),style:r,children:e})}const lr=De.Root,cr=De.Trigger,Ja=De.Anchor,ur=re.cva("z-50 w-72 rounded-md border bg-popover p-md text-popover-foreground shadow-md outline-none",{variants:{variant:{primary:"bg-popover text-popover-foreground border-border",secondary:"border-secondary/50 text-secondary-foreground bg-secondary/10",accent:"border-accent/50 text-accent-foreground bg-accent/10",outline:"bg-background text-foreground border-border",ghost:"bg-transparent text-foreground border-transparent",link:"bg-transparent text-primary border-transparent",destructive:"border-destructive/50 text-destructive bg-destructive/10"},size:{xs:"w-40 p-xs",sm:"w-48 p-sm",md:"w-72 p-md",lg:"w-96 p-lg",xl:"w-[32rem] p-xl"}},defaultVariants:{variant:"primary",size:"md"}}),ot=p.forwardRef(({className:e,variant:t,size:r,align:n="center",sideOffset:s=4,...o},d)=>{const i={...Q.fadeIn({duration:"normal"}),...ve.scaleIn({scale:.95,duration:"normal"})},l={...Q.fadeOut({duration:"fast"}),...ve.scaleOut({scale:.95,duration:"fast"})};return a.jsx(De.Portal,{children:a.jsx(De.Content,{ref:d,align:n,sideOffset:s,...o,asChild:!0,children:a.jsx(he.motion.div,{className:c(ur({variant:t,size:r,className:e})),initial:i.initial,animate:i.animate,exit:l.exit,transition:i.transition,children:o.children})})})});ot.displayName=De.Content.displayName;function Ka({children:e,content:t,variant:r,size:n,side:s="bottom",align:o="center",sideOffset:d,alignOffset:i,open:l,onOpenChange:u,modal:m=!0,closeOnInteractOutside:f=!0}){return a.jsxs(lr,{open:l,onOpenChange:u,modal:m,children:[a.jsx(cr,{asChild:!0,children:e}),a.jsx(ot,{variant:r,size:n,side:s,align:o,sideOffset:d,alignOffset:i,onInteractOutside:f?void 0:y=>y.preventDefault(),children:t})]})}const mr=Ie.Provider,hr=Ie.Root,pr=Ie.Trigger,xr=re.cva("z-50 overflow-hidden rounded-md border bg-popover px-sm py-xs text-sm text-popover-foreground shadow-md",{variants:{variant:{primary:"bg-popover text-popover-foreground border-border",secondary:"border-secondary/50 text-secondary-foreground bg-secondary/10",accent:"border-accent/50 text-accent-foreground bg-accent/10",outline:"bg-background text-foreground border-border",ghost:"bg-transparent text-foreground border-transparent",link:"bg-transparent text-primary border-transparent",destructive:"border-destructive/50 text-destructive bg-destructive/10"}},defaultVariants:{variant:"primary"}}),it=p.forwardRef(({className:e,variant:t,sideOffset:r=4,...n},s)=>{const o={...Q.fadeIn({duration:"normal"}),...ve.scaleIn({scale:.95,duration:"normal"})},d={...Q.fadeOut({duration:"fast"}),...ve.scaleOut({scale:.95,duration:"fast"})};return a.jsx(Ie.Content,{ref:s,sideOffset:r,...n,asChild:!0,children:a.jsx(he.motion.div,{className:c(xr({variant:t,className:e})),initial:o.initial,animate:o.animate,exit:d.exit,transition:o.transition,children:n.children})})});it.displayName=Ie.Content.displayName;function Za({children:e,content:t,variant:r,side:n="top",align:s="center",sideOffset:o,alignOffset:d,delayDuration:i=400,skipDelayDuration:l=300,disableHoverableContent:u=!1,open:m,onOpenChange:f}){return a.jsx(mr,{delayDuration:i,skipDelayDuration:l,children:a.jsxs(hr,{open:m,onOpenChange:f,children:[a.jsx(pr,{asChild:!0,children:e}),a.jsx(it,{variant:r,side:n,align:s,sideOffset:o,alignOffset:d,children:t})]})})}const en=q.Root,tn=q.Trigger,rn=q.Group,an=q.Portal,nn=q.Sub,sn=q.RadioGroup,fr=p.forwardRef(({className:e,inset:t,children:r,...n},s)=>a.jsxs(q.SubTrigger,{ref:s,className:c("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[r,a.jsx(L.ChevronRight,{className:"ml-auto h-4 w-4"})]}));fr.displayName=q.SubTrigger.displayName;const br=p.forwardRef(({className:e,...t},r)=>a.jsx(q.SubContent,{ref:r,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg",e),...t}));br.displayName=q.SubContent.displayName;const yr=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>a.jsx(q.Portal,{children:a.jsx(q.Content,{ref:n,sideOffset:t,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",e),...r})}));yr.displayName=q.Content.displayName;const wr=p.forwardRef(({className:e,inset:t,...r},n)=>a.jsx(q.Item,{ref:n,className:c("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));wr.displayName=q.Item.displayName;const vr=p.forwardRef(({className:e,children:t,checked:r,...n},s)=>a.jsxs(q.CheckboxItem,{ref:s,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(q.ItemIndicator,{children:a.jsx(L.Check,{className:"h-4 w-4"})})}),t]}));vr.displayName=q.CheckboxItem.displayName;const gr=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(q.RadioItem,{ref:n,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(q.ItemIndicator,{children:a.jsx(L.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));gr.displayName=q.RadioItem.displayName;const jr=p.forwardRef(({className:e,inset:t,...r},n)=>a.jsx(q.Label,{ref:n,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));jr.displayName=q.Label.displayName;const Nr=p.forwardRef(({className:e,...t},r)=>a.jsx(q.Separator,{ref:r,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Nr.displayName=q.Separator.displayName;const Sr=({className:e,...t})=>a.jsx("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Sr.displayName="DropdownMenuShortcut";const Mr=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(ee.Root,{ref:n,className:c("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,a.jsx(dt,{})]}));Mr.displayName=ee.Root.displayName;const Cr=p.forwardRef(({className:e,...t},r)=>a.jsx(ee.List,{ref:r,className:c("group flex flex-1 list-none items-center justify-center space-x-xs",e),...t}));Cr.displayName=ee.List.displayName;const on=ee.Item,kr=re.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-md py-sm text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Dr=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(ee.Trigger,{ref:n,className:c(kr(),"group",e),...r,children:[t," ",a.jsx(L.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Dr.displayName=ee.Trigger.displayName;const Tr=p.forwardRef(({className:e,...t},r)=>a.jsx(ee.Content,{ref:r,className:c("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 left-0 top-0 w-full md:absolute md:w-auto",e),...t}));Tr.displayName=ee.Content.displayName;const dn=ee.Link,dt=p.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:c("absolute left-0 top-full flex justify-center"),children:a.jsx(ee.Viewport,{className:c("origin-top-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));dt.displayName=ee.Viewport.displayName;const Er=p.forwardRef(({className:e,...t},r)=>a.jsx(ee.Indicator,{ref:r,className:c("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...t,children:a.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Er.displayName=ee.Indicator.displayName;const ln=je.Root,Pr=p.forwardRef(({className:e,...t},r)=>a.jsx(je.List,{ref:r,className:c("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Pr.displayName=je.List.displayName;const Rr=p.forwardRef(({className:e,...t},r)=>a.jsx(je.Trigger,{ref:r,className:c("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-[background-color,color,box-shadow] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Rr.displayName=je.Trigger.displayName;const Or=p.forwardRef(({className:e,...t},r)=>a.jsx(je.Content,{ref:r,className:c("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Or.displayName=je.Content.displayName;function de(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ge(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Fr=6048e5,cn=864e5;let un={};function Ye(){return un}function qe(e,t){var i,l,u,m;const r=Ye(),n=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((m=(u=r.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)??0,s=de(e),o=s.getDay(),d=(o<n?7:0)+o-n;return s.setDate(s.getDate()-d),s.setHours(0,0,0,0),s}function Ae(e){return qe(e,{weekStartsOn:1})}function qr(e){const t=de(e),r=t.getFullYear(),n=ge(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const s=Ae(n),o=ge(e,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const d=Ae(o);return t.getTime()>=s.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function jt(e){const t=de(e);return t.setHours(0,0,0,0),t}function Nt(e){const t=de(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function mn(e,t){const r=jt(e),n=jt(t),s=+r-Nt(r),o=+n-Nt(n);return Math.round((s-o)/cn)}function hn(e){const t=qr(e),r=ge(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Ae(r)}function pn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xn(e){if(!pn(e)&&typeof e!="number")return!1;const t=de(e);return!isNaN(Number(t))}function fn(e){const t=de(e),r=ge(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const bn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yn=(e,t,r)=>{let n;const s=bn[e];return typeof s=="string"?n=s:t===1?n=s.one:n=s.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Qe(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const wn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jn={date:Qe({formats:wn,defaultWidth:"full"}),time:Qe({formats:vn,defaultWidth:"full"}),dateTime:Qe({formats:gn,defaultWidth:"full"})},Nn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Sn=(e,t,r,n)=>Nn[e];function Oe(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let s;if(n==="formatting"&&e.formattingValues){const d=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):d;s=e.formattingValues[i]||e.formattingValues[d]}else{const d=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[i]||e.values[d]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const Mn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Dn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Tn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},En={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Pn=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Rn={ordinalNumber:Pn,era:Oe({values:Mn,defaultWidth:"wide"}),quarter:Oe({values:Cn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Oe({values:kn,defaultWidth:"wide"}),day:Oe({values:Dn,defaultWidth:"wide"}),dayPeriod:Oe({values:Tn,defaultWidth:"wide",formattingValues:En,defaultFormattingWidth:"wide"})};function Fe(e){return(t,r={})=>{const n=r.width,s=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const d=o[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?Fn(i,f=>f.test(d)):On(i,f=>f.test(d));let u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const m=t.slice(d.length);return{value:u,rest:m}}}function On(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Fn(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function qn(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const s=n[0],o=t.match(e.parsePattern);if(!o)return null;let d=e.valueCallback?e.valueCallback(o[0]):o[0];d=r.valueCallback?r.valueCallback(d):d;const i=t.slice(s.length);return{value:d,rest:i}}}const Vn=/^(\d+)(th|st|nd|rd)?/i,In=/\d+/i,Ln={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Bn={any:[/^b/i,/^(a|c)/i]},zn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wn={any:[/1/i,/2/i,/3/i,/4/i]},_n={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},An={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$n={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Hn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Un={ordinalNumber:qn({matchPattern:Vn,parsePattern:In,valueCallback:e=>parseInt(e,10)}),era:Fe({matchPatterns:Ln,defaultMatchWidth:"wide",parsePatterns:Bn,defaultParseWidth:"any"}),quarter:Fe({matchPatterns:zn,defaultMatchWidth:"wide",parsePatterns:Wn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fe({matchPatterns:_n,defaultMatchWidth:"wide",parsePatterns:An,defaultParseWidth:"any"}),day:Fe({matchPatterns:$n,defaultMatchWidth:"wide",parsePatterns:Hn,defaultParseWidth:"any"}),dayPeriod:Fe({matchPatterns:Yn,defaultMatchWidth:"any",parsePatterns:Gn,defaultParseWidth:"any"})},Xn={code:"en-US",formatDistance:yn,formatLong:jn,formatRelative:Sn,localize:Rn,match:Un,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Qn(e){const t=de(e);return mn(t,fn(t))+1}function Jn(e){const t=de(e),r=+Ae(t)-+hn(t);return Math.round(r/Fr)+1}function Vr(e,t){var m,f,y,h;const r=de(e),n=r.getFullYear(),s=Ye(),o=(t==null?void 0:t.firstWeekContainsDate)??((f=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??s.firstWeekContainsDate??((h=(y=s.locale)==null?void 0:y.options)==null?void 0:h.firstWeekContainsDate)??1,d=ge(e,0);d.setFullYear(n+1,0,o),d.setHours(0,0,0,0);const i=qe(d,t),l=ge(e,0);l.setFullYear(n,0,o),l.setHours(0,0,0,0);const u=qe(l,t);return r.getTime()>=i.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function Kn(e,t){var i,l,u,m;const r=Ye(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(u=r.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??1,s=Vr(e,t),o=ge(e,0);return o.setFullYear(s,0,n),o.setHours(0,0,0,0),qe(o,t)}function Zn(e,t){const r=de(e),n=+qe(r,t)-+Kn(r,t);return Math.round(n/Fr)+1}function D(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const fe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return D(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):D(r+1,2)},d(e,t){return D(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return D(e.getHours()%12||12,t.length)},H(e,t){return D(e.getHours(),t.length)},m(e,t){return D(e.getMinutes(),t.length)},s(e,t){return D(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),s=Math.trunc(n*Math.pow(10,r-3));return D(s,t.length)}},Me={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},St={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),s=n>0?n:1-n;return r.ordinalNumber(s,{unit:"year"})}return fe.y(e,t)},Y:function(e,t,r,n){const s=Vr(e,n),o=s>0?s:1-s;if(t==="YY"){const d=o%100;return D(d,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):D(o,t.length)},R:function(e,t){const r=qr(e);return D(r,t.length)},u:function(e,t){const r=e.getFullYear();return D(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return D(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return D(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return fe.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return D(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const s=Zn(e,n);return t==="wo"?r.ordinalNumber(s,{unit:"week"}):D(s,t.length)},I:function(e,t,r){const n=Jn(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):D(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):fe.d(e,t)},D:function(e,t,r){const n=Qn(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):D(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return D(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const s=e.getDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return D(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),s=n===0?7:n;switch(t){case"i":return String(s);case"ii":return D(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let s;switch(n===12?s=Me.noon:n===0?s=Me.midnight:s=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let s;switch(n>=17?s=Me.evening:n>=12?s=Me.afternoon:n>=4?s=Me.morning:s=Me.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return fe.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):fe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):D(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):D(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):fe.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):fe.s(e,t)},S:function(e,t){return fe.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Ct(n);case"XXXX":case"XX":return we(n);case"XXXXX":case"XXX":default:return we(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Ct(n);case"xxxx":case"xx":return we(n);case"xxxxx":case"xxx":default:return we(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mt(n,":");case"OOOO":default:return"GMT"+we(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mt(n,":");case"zzzz":default:return"GMT"+we(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return D(n,t.length)},T:function(e,t,r){const n=e.getTime();return D(n,t.length)}};function Mt(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=Math.trunc(n/60),o=n%60;return o===0?r+String(s):r+String(s)+t+D(o,2)}function Ct(e,t){return e%60===0?(e>0?"-":"+")+D(Math.abs(e)/60,2):we(e,t)}function we(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),s=D(Math.trunc(n/60),2),o=D(n%60,2);return r+s+t+o}const kt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ir=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},es=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],s=r[2];if(!s)return kt(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",kt(n,t)).replace("{{time}}",Ir(s,t))},ts={p:Ir,P:es},rs=/^D+$/,as=/^Y+$/,ns=["D","DD","YY","YYYY"];function ss(e){return rs.test(e)}function os(e){return as.test(e)}function is(e,t,r){const n=ds(e,t,r);if(console.warn(n),ns.includes(e))throw new RangeError(n)}function ds(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ls=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,us=/^'([^]*?)'?$/,ms=/''/g,hs=/[a-zA-Z]/;function Je(e,t,r){var m,f,y,h;const n=Ye(),s=n.locale??Xn,o=n.firstWeekContainsDate??((f=(m=n.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,d=n.weekStartsOn??((h=(y=n.locale)==null?void 0:y.options)==null?void 0:h.weekStartsOn)??0,i=de(e);if(!xn(i))throw new RangeError("Invalid time value");let l=t.match(cs).map(b=>{const w=b[0];if(w==="p"||w==="P"){const j=ts[w];return j(b,s.formatLong)}return b}).join("").match(ls).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const w=b[0];if(w==="'")return{isToken:!1,value:ps(b)};if(St[w])return{isToken:!0,value:b};if(w.match(hs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:b}});s.localize.preprocessor&&(l=s.localize.preprocessor(i,l));const u={firstWeekContainsDate:o,weekStartsOn:d,locale:s};return l.map(b=>{if(!b.isToken)return b.value;const w=b.value;(os(w)||ss(w))&&is(w,t,String(e));const j=St[w[0]];return j(i,w,s.localize,u)}).join("")}function ps(e){const t=e.match(us);return t?t[1].replace(ms,"'"):e}function lt({value:e,onChange:t,placeholder:r,selectDateRangeLabel:n,clearLabel:s,closeLabel:o,className:d,disabled:i=!1}){if(!r||r.trim()==="")throw new Error('DateRangePicker: "placeholder" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('DateRangePicker: "selectDateRangeLabel" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('DateRangePicker: "clearLabel" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('DateRangePicker: "closeLabel" prop is required and cannot be empty');const[l,u]=p.useState(!1),m=h=>h.from?h.to?`${Je(h.from,"LLL dd, y")} - ${Je(h.to,"LLL dd, y")}`:Je(h.from,"LLL dd, y"):r,f=h=>{if(!h){t({from:void 0,to:void 0});return}!e.from||e.from&&e.to?t({from:h,to:void 0}):e.from&&!e.to&&(h<e.from?t({from:h,to:e.from}):t({from:e.from,to:h}),u(!1))},y=()=>{t({from:void 0,to:void 0})};return a.jsxs("div",{className:c("relative",d),children:[a.jsxs(J,{variant:"outline",className:c("w-full justify-start text-left font-normal",!e.from&&"text-muted-foreground"),onClick:()=>u(!l),disabled:i,children:[a.jsx(L.Calendar,{className:"mr-sm h-4 w-4"}),m(e)]}),l&&a.jsx("div",{className:"absolute left-0 top-full z-50 mt-xs w-full rounded-md border bg-popover p-sm shadow-lg",children:a.jsxs("div",{className:"space-y-sm",children:[a.jsx("div",{className:"text-sm font-medium",children:n}),a.jsxs("div",{className:"grid grid-cols-7 gap-xs text-xs",children:[["S","M","T","W","T","F","S"].map(h=>a.jsx("div",{className:"p-sm text-center font-medium text-muted-foreground",children:h},h)),Array.from({length:35},(h,b)=>{const w=new Date;w.setDate(w.getDate()-w.getDay()+b);const j=e.from&&w.toDateString()===e.from.toDateString()||e.to&&w.toDateString()===e.to.toDateString(),N=e.from&&e.to&&w>e.from&&w<e.to;return a.jsx("button",{className:c("h-8 w-8 rounded text-sm hover:bg-accent",j&&"bg-primary text-primary-foreground",N&&"bg-accent/50"),onClick:()=>f(w),children:w.getDate()},b)})]}),a.jsxs("div",{className:"flex justify-between pt-sm",children:[a.jsx(J,{variant:"outline",size:"sm",onClick:y,children:s}),a.jsx(J,{variant:"outline",size:"sm",onClick:()=>u(!1),children:o})]})]})})]})}function xs(e={from:void 0,to:void 0}){const[t,r]=p.useState(e),n=p.useCallback(d=>{r(d)},[]),s=p.useCallback(()=>{r({from:void 0,to:void 0})},[]),o=t.from&&t.to;return{range:t,setDateRange:n,clearRange:s,isRangeComplete:o}}const Lr=A.Root,fs=A.Group,Br=A.Value,ct=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(A.Trigger,{ref:n,className:c("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-sm py-sm text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,a.jsx(A.Icon,{asChild:!0,children:a.jsx(L.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ct.displayName=A.Trigger.displayName;const ut=p.forwardRef(({className:e,...t},r)=>a.jsx(A.ScrollUpButton,{ref:r,className:c("flex cursor-default items-center justify-center py-xs",e),...t,children:a.jsx(L.ChevronUp,{className:"h-4 w-4"})}));ut.displayName=A.ScrollUpButton.displayName;const mt=p.forwardRef(({className:e,...t},r)=>a.jsx(A.ScrollDownButton,{ref:r,className:c("flex cursor-default items-center justify-center py-xs",e),...t,children:a.jsx(L.ChevronDown,{className:"h-4 w-4"})}));mt.displayName=A.ScrollDownButton.displayName;const ht=p.forwardRef(({className:e,children:t,position:r="popper",...n},s)=>a.jsx(A.Portal,{children:a.jsxs(A.Content,{ref:s,className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[a.jsx(ut,{}),a.jsx(A.Viewport,{className:c("p-xs",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(mt,{})]})}));ht.displayName=A.Content.displayName;const zr=p.forwardRef(({className:e,...t},r)=>a.jsx(A.Label,{ref:r,className:c("py-xs pl-8 pr-sm text-sm font-semibold",e),...t}));zr.displayName=A.Label.displayName;const pt=p.forwardRef(({className:e,children:t,...r},n)=>a.jsxs(A.Item,{ref:n,className:c("relative flex w-full cursor-default select-none items-center rounded-sm py-xs pl-8 pr-sm text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-sm flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(A.ItemIndicator,{children:a.jsx(L.Check,{className:"h-4 w-4"})})}),a.jsx(A.ItemText,{children:t})]}));pt.displayName=A.Item.displayName;const Wr=p.forwardRef(({className:e,...t},r)=>a.jsx(A.Separator,{ref:r,className:c("-mx-xs my-xs h-px bg-muted",e),...t}));Wr.displayName=A.Separator.displayName;function Ve({value:e,onValueChange:t,options:r,placeholder:n,label:s,className:o}){if(!n||n.trim()==="")throw new Error('FilterSelect: "placeholder" prop is required and cannot be empty');const d=r.filter(i=>i.value!==""&&i.value!==null);return a.jsxs("div",{className:c("space-y-sm",o),children:[s&&a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:s}),a.jsxs(Lr,{value:e||void 0,onValueChange:t,children:[a.jsx(ct,{children:a.jsx(Br,{placeholder:n})}),a.jsx(ht,{children:d.map(i=>!i.value||i.value===""?null:a.jsx(pt,{value:i.value,children:a.jsxs("div",{className:"flex w-full items-center justify-between",children:[a.jsx("span",{children:i.label}),i.count!==void 0&&a.jsxs("span",{className:"ml-sm text-xs text-muted-foreground",children:["(",i.count,")"]})]})},i.value))})]})]})}function _r({value:e,onChange:t,min:r,max:n,step:s,currency:o,priceRangeLabel:d,minLabel:i,maxLabel:l,anyPriceLabel:u,clearLabel:m,minAriaLabel:f,maxAriaLabel:y,className:h}){var z,W;if(typeof r!="number"||isNaN(r))throw new Error('PriceRangeSlider: "min" prop is required and must be a number');if(typeof n!="number"||isNaN(n))throw new Error('PriceRangeSlider: "max" prop is required and must be a number');if(typeof s!="number"||isNaN(s)||s<=0)throw new Error('PriceRangeSlider: "step" prop is required and must be a positive number');if(!o||o.trim()==="")throw new Error('PriceRangeSlider: "currency" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('PriceRangeSlider: "priceRangeLabel" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('PriceRangeSlider: "minLabel" prop is required and cannot be empty');if(!l||l.trim()==="")throw new Error('PriceRangeSlider: "maxLabel" prop is required and cannot be empty');if(!u||u.trim()==="")throw new Error('PriceRangeSlider: "anyPriceLabel" prop is required and cannot be empty');if(!m||m.trim()==="")throw new Error('PriceRangeSlider: "clearLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('PriceRangeSlider: "minAriaLabel" prop is required and cannot be empty');if(!y||y.trim()==="")throw new Error('PriceRangeSlider: "maxAriaLabel" prop is required and cannot be empty');const b=p.useId(),w=p.useId(),[j,N]=p.useState(((z=e.min)==null?void 0:z.toString())||""),[x,v]=p.useState(((W=e.max)==null?void 0:W.toString())||"");p.useEffect(()=>{var T,R;N(((T=e.min)==null?void 0:T.toString())||""),v(((R=e.max)==null?void 0:R.toString())||"")},[e.min,e.max]);const $=T=>{const R=T.target.value;N(R);const C=R===""?null:Math.max(r,parseInt(R)||r),S=e.max?Math.min(n,e.max):null;C!==null&&S!==null&&C>S?t({min:C,max:C}):t({min:C,max:S})},B=T=>{const R=T.target.value;v(R);const C=R===""?null:Math.min(n,parseInt(R)||n),S=e.min?Math.max(r,e.min):null;S!==null&&C!==null&&S>C?t({min:C,max:C}):t({min:S,max:C})},O=(T,R)=>{if(T==="min"){const C=Math.max(r,Math.min(n,R)),S=e.max?Math.max(C,e.max):null;t({min:C,max:S})}else{const C=Math.max(r,Math.min(n,R)),S=e.min?Math.min(C,e.min):null;t({min:S,max:C})}},F=()=>{N(""),v(""),t({min:null,max:null})},P=e.min||r,I=e.max||n;return a.jsxs("div",{className:c("space-y-md",h),children:[a.jsxs("div",{className:"space-y-sm",children:[a.jsx(be,{children:d}),a.jsxs("div",{className:"flex items-center space-x-sm",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx(be,{htmlFor:b,className:"text-xs text-muted-foreground",children:i}),a.jsxs("div",{className:"relative",children:[a.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground",children:o}),a.jsx(Te,{id:b,name:`min-price-${b}`,type:"number",value:j,onChange:$,placeholder:r.toString(),min:r,max:n,step:s,className:"pl-8"})]})]}),a.jsxs("div",{className:"flex-1",children:[a.jsx(be,{htmlFor:w,className:"text-xs text-muted-foreground",children:l}),a.jsxs("div",{className:"relative",children:[a.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground",children:o}),a.jsx(Te,{id:w,name:`max-price-${w}`,type:"number",value:x,onChange:B,placeholder:n.toString(),min:r,max:n,step:s,className:"pl-8"})]})]})]})]}),a.jsxs("div",{className:"space-y-sm",children:[a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:"range",id:`${b}-slider`,name:`min-price-slider-${b}`,min:r,max:n,step:s,value:P,onChange:T=>O("min",parseInt(T.target.value)),className:"slider-thumb absolute h-2 w-full cursor-pointer appearance-none bg-transparent","aria-label":f}),a.jsx("input",{type:"range",id:`${w}-slider`,name:`max-price-slider-${w}`,min:r,max:n,step:s,value:I,onChange:T=>O("max",parseInt(T.target.value)),className:"slider-thumb absolute h-2 w-full cursor-pointer appearance-none bg-transparent","aria-label":y}),a.jsx("div",{className:"h-2 rounded-full bg-muted",children:a.jsx("div",{className:"h-2 rounded-full bg-primary",style:{left:`${(P-r)/(n-r)*100}%`,width:`${(I-P)/(n-r)*100}%`}})})]}),a.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[a.jsxs("span",{children:[o,r]}),a.jsxs("span",{children:[o,n]})]})]}),a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx("span",{className:"text-sm text-muted-foreground",children:e.min!==null||e.max!==null?`${o}${e.min||r} - ${o}${e.max||n}`:u}),a.jsx("button",{type:"button",onClick:F,className:"text-xs text-muted-foreground hover:text-foreground",children:m})]})]})}function bs(e={min:null,max:null}){const[t,r]=p.useState(e),n=p.useCallback(d=>{r(d)},[]),s=p.useCallback(()=>{r({min:null,max:null})},[]),o=t.min!==null||t.max!==null;return{range:t,setPriceRange:n,clearRange:s,isRangeSet:o}}function ys(e,t){const[r,n]=g.useState(e);return g.useEffect(()=>{const s=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(s)}},[e,t]),r}function Ge({value:e,onChange:t,onClear:r,placeholder:n,showClearButton:s=!0,debounceMs:o=300,className:d,id:i,name:l,...u}){const m=p.useId(),f=i||m,y=l||`search-input-${f}`;if(!n||n.trim()==="")throw new Error('SearchInput: "placeholder" prop is required and cannot be empty');const[h,b]=p.useState(e),w=ys(h,o);p.useEffect(()=>{b(e)},[e]),p.useEffect(()=>{t(w)},[w,t]);const j=x=>{const v=x.target.value;b(v)},N=()=>{b(""),t(""),r==null||r()};return a.jsxs("div",{className:c("relative",d),children:[a.jsx(L.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),a.jsx(Te,{...u,id:f,name:y,value:h,onChange:j,placeholder:n,className:"pl-10 pr-10"}),s&&h&&a.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 h-6 w-6 -translate-y-1/2",onClick:N,"aria-label":"Clear search",children:a.jsx(L.X,{className:"h-3 w-3","aria-hidden":"true"})})]})}function ws(e=""){const[t,r]=p.useState(e),[n,s]=p.useState(e);p.useEffect(()=>{const d=setTimeout(()=>{s(t)},300);return()=>clearTimeout(d)},[t]);const o=p.useCallback(()=>{r(""),s("")},[]);return{search:t,debouncedSearch:n,setSearch:r,clearSearch:o}}const vs=()=>(console.warn("useFilterManager: This is a mock implementation. Use the actual hook from apps/web/src/stores/useFiltersStore"),{search:"",category:"",tags:[],dateRange:{start:null,end:null},priceRange:{min:null,max:null},sortBy:"date",sortOrder:"desc",setSearch:e=>{},setCategory:e=>{},setTags:e=>{},addTag:e=>{},removeTag:e=>{},setDateRange:(e,t)=>{},setPriceRange:(e,t)=>{},setSorting:(e,t)=>{},resetFilters:()=>{},getActiveFiltersCount:()=>0,getFilterSummary:()=>[],hasActiveFilters:!1,clearAllFilters:()=>{}});function Ar({className:e,showSearch:t=!0,showCategory:r=!0,showDateRange:n=!0,showPriceRange:s=!0,showSorting:o=!0,categories:d=[],sortOptions:i,searchPlaceholder:l,filtersLabel:u,clearAllLabel:m,categoryLabel:f,allCategoriesLabel:y,dateRangeLabel:h,anyDateLabel:b,dateSelectDateRangeLabel:w,dateClearLabel:j,dateCloseLabel:N,sortByLabel:x,sortAscLabel:v,sortDescLabel:$,sortByPlaceholder:B,activeFiltersLabel:O,priceRangeLabel:F,priceMinLabel:P,priceMaxLabel:I,priceAnyLabel:z,priceClearLabel:W,priceMinAriaLabel:T,priceMaxAriaLabel:R,onFiltersChange:C}){if(!i||i.length===0)throw new Error('FilterBar: "sortOptions" prop is required and cannot be empty');if(!l||l.trim()==="")throw new Error('FilterBar: "searchPlaceholder" prop is required and cannot be empty');if(!u||u.trim()==="")throw new Error('FilterBar: "filtersLabel" prop is required and cannot be empty');if(!m||m.trim()==="")throw new Error('FilterBar: "clearAllLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('FilterBar: "categoryLabel" prop is required and cannot be empty');if(!y||y.trim()==="")throw new Error('FilterBar: "allCategoriesLabel" prop is required and cannot be empty');if(!h||h.trim()==="")throw new Error('FilterBar: "dateRangeLabel" prop is required and cannot be empty');if(!b||b.trim()==="")throw new Error('FilterBar: "anyDateLabel" prop is required and cannot be empty');if(!w||w.trim()==="")throw new Error('FilterBar: "dateSelectDateRangeLabel" prop is required and cannot be empty');if(!j||j.trim()==="")throw new Error('FilterBar: "dateClearLabel" prop is required and cannot be empty');if(!N||N.trim()==="")throw new Error('FilterBar: "dateCloseLabel" prop is required and cannot be empty');if(!x||x.trim()==="")throw new Error('FilterBar: "sortByLabel" prop is required and cannot be empty');if(!v||v.trim()==="")throw new Error('FilterBar: "sortAscLabel" prop is required and cannot be empty');if(!$||$.trim()==="")throw new Error('FilterBar: "sortDescLabel" prop is required and cannot be empty');if(!B||B.trim()==="")throw new Error('FilterBar: "sortByPlaceholder" prop is required and cannot be empty');if(!O||O.trim()==="")throw new Error('FilterBar: "activeFiltersLabel" prop is required and cannot be empty');if(!F||F.trim()==="")throw new Error('FilterBar: "priceRangeLabel" prop is required and cannot be empty');if(!P||P.trim()==="")throw new Error('FilterBar: "priceMinLabel" prop is required and cannot be empty');if(!I||I.trim()==="")throw new Error('FilterBar: "priceMaxLabel" prop is required and cannot be empty');if(!z||z.trim()==="")throw new Error('FilterBar: "priceAnyLabel" prop is required and cannot be empty');if(!W||W.trim()==="")throw new Error('FilterBar: "priceClearLabel" prop is required and cannot be empty');if(!T||T.trim()==="")throw new Error('FilterBar: "priceMinAriaLabel" prop is required and cannot be empty');if(!R||R.trim()==="")throw new Error('FilterBar: "priceMaxAriaLabel" prop is required and cannot be empty');const{search:S,category:te,dateRange:K,priceRange:Z,sortBy:G,sortOrder:U,setSearch:ye,setCategory:le,setDateRange:Se,setPriceRange:Ee,hasActiveFilters:Be}=vs();p.useEffect(()=>{C&&C({search:S,category:te,dateRange:K,priceRange:Z,sortBy:G,sortOrder:U})},[S,te,K,Z,G,U,C]);const ze=X=>{Se(X.from||null,X.to||null)},Pe=X=>{Ee(X.min,X.max)};return a.jsxs("div",{className:c("space-y-md",e),children:[a.jsxs("div",{className:"flex flex-col gap-md sm:flex-row",children:[t&&a.jsx("div",{className:"flex-1",children:a.jsx(Ge,{value:S,onChange:ye,placeholder:l})}),Be]}),a.jsxs("div",{className:"grid grid-cols-1 gap-md sm:grid-cols-2 lg:grid-cols-4",children:[r&&d.length>0&&a.jsx(Ve,{value:te,onValueChange:le,options:d,label:f,placeholder:y}),n&&a.jsxs("div",{className:"space-y-sm",children:[a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:h}),a.jsx(lt,{value:{from:K.start||void 0,to:K.end||void 0},onChange:ze,placeholder:b,selectDateRangeLabel:w,clearLabel:j,closeLabel:N})]}),s&&a.jsx(_r,{value:Z,onChange:Pe,min:0,max:500,step:10,currency:"€",priceRangeLabel:F,minLabel:P,maxLabel:I,anyPriceLabel:z,clearLabel:W,minAriaLabel:T,maxAriaLabel:R}),o&&a.jsxs("div",{className:"space-y-sm",children:[a.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:x}),a.jsx(Ve,{value:`${G}-${U}`,onValueChange:X=>{const[ho,po]=X.split("-")},options:i.map(X=>({value:`${X.value}-asc`,label:`${X.label} ${v}`})).concat(i.map(X=>({value:`${X.value}-desc`,label:`${X.label} ${$}`}))),placeholder:B})]})]}),Be]})}function gs({className:e,...t}){return a.jsx(Ar,{className:c("space-y-sm",e),...t})}const js=({searchLabel:e,searchPlaceholder:t,searchValue:r,onSearchChange:n,dateLabel:s,datePlaceholder:o,dateSelectDateRangeLabel:d,dateClearLabel:i,dateCloseLabel:l,dateValue:u,onDateChange:m,genreLabel:f,genrePlaceholder:y,genreOptions:h,genreValue:b,onGenreChange:w,venueLabel:j,venuePlaceholder:N,venueOptions:x,venueValue:v,onVenueChange:$,className:B})=>{if(!e||e.trim()==="")throw new Error('SearchFilters: "searchLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('SearchFilters: "searchPlaceholder" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('SearchFilters: "dateLabel" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('SearchFilters: "datePlaceholder" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('SearchFilters: "dateSelectDateRangeLabel" prop is required and cannot be empty');if(!i||i.trim()==="")throw new Error('SearchFilters: "dateClearLabel" prop is required and cannot be empty');if(!l||l.trim()==="")throw new Error('SearchFilters: "dateCloseLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('SearchFilters: "genreLabel" prop is required and cannot be empty');if(!y||y.trim()==="")throw new Error('SearchFilters: "genrePlaceholder" prop is required and cannot be empty');if(!h||h.length===0)throw new Error('SearchFilters: "genreOptions" prop is required and cannot be empty');if(!j||j.trim()==="")throw new Error('SearchFilters: "venueLabel" prop is required and cannot be empty');if(!N||N.trim()==="")throw new Error('SearchFilters: "venuePlaceholder" prop is required and cannot be empty');if(!x||x.length===0)throw new Error('SearchFilters: "venueOptions" prop is required and cannot be empty');return a.jsx("div",{className:c("rounded-lg bg-background p-lg shadow-lg",B),children:a.jsxs("div",{className:"grid grid-cols-1 gap-md md:grid-cols-2 lg:grid-cols-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:e}),a.jsx(Ge,{placeholder:t,value:r,onChange:n})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:s}),a.jsx(lt,{value:u,onChange:m,placeholder:o,selectDateRangeLabel:d,clearLabel:i,closeLabel:l})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:f}),a.jsx(Ve,{placeholder:y,value:b,options:h,onValueChange:w})]}),a.jsxs("div",{children:[a.jsx("label",{className:"mb-sm block text-sm font-medium",children:j}),a.jsx(Ve,{placeholder:N,value:v,options:x,onValueChange:$})]})]})})},ke=({id:e,name:t,label:r,type:n="text",placeholder:s,value:o,onChange:d,error:i,helperText:l,className:u,...m})=>{const f=o??"";return a.jsxs("div",{className:c("space-y-sm",u),children:[r&&a.jsx(be,{htmlFor:e,className:"block",children:r}),a.jsx(Te,{id:e,name:t,type:n,placeholder:s,value:f,onChange:y=>d==null?void 0:d(y.target.value),...m}),l&&!i&&a.jsx(M,{size:"sm",variant:"muted",children:l}),i&&a.jsx(M,{size:"sm",variant:"destructive",children:i})]})},Ns=({id:e,name:t,label:r,placeholder:n,options:s=[],value:o,onChange:d,error:i,className:l})=>{const u=o??"";return a.jsxs("div",{className:c("space-y-sm",l),children:[r&&a.jsx(be,{htmlFor:e,className:"block",children:r}),a.jsxs("select",{id:e,name:t,value:u,onChange:m=>d==null?void 0:d(m.target.value),className:"w-full rounded-md border border-input bg-background px-sm py-sm",children:[n&&a.jsx("option",{value:"",disabled:!0,children:n}),s.map(m=>a.jsx("option",{value:m.value,children:m.label},m.value))]}),i&&a.jsx(M,{size:"sm",variant:"destructive",children:i})]})},Ss=({id:e,name:t,label:r,placeholder:n,value:s,onChange:o,error:d,rows:i=4,className:l,...u})=>{const m=s??"";return a.jsxs("div",{className:c("space-y-sm",l),children:[r&&a.jsx(be,{htmlFor:e,className:"block",children:r}),a.jsx("textarea",{id:e,name:t,placeholder:n,value:m,onChange:f=>o==null?void 0:o(f.target.value),className:"w-full rounded-md border border-input bg-background px-sm py-sm",rows:i,...u}),d&&a.jsx(M,{size:"sm",variant:"destructive",children:d})]})},Ms=({variant:e="primary",title:t,description:r,className:n})=>{const s={primary:"bg-primary/10 border-primary/20 text-primary-foreground",secondary:"bg-secondary/10 border-secondary/20 text-secondary-foreground",accent:"bg-accent/10 border-accent/20 text-accent-foreground",outline:"bg-background border-border text-foreground",ghost:"bg-transparent border-transparent text-foreground",link:"bg-transparent border-transparent text-primary",destructive:"bg-destructive/10 border-destructive/20 text-destructive-foreground"};return a.jsxs("div",{className:c("rounded-lg border p-md",s[e],n),children:[t&&a.jsx(Y,{level:4,className:"mb-sm font-semibold",children:t}),r&&a.jsx(M,{size:"sm",children:r})]})},Cs=({value:e,max:t=100,className:r})=>{const n=Math.min(100,Math.max(0,e/t*100));return a.jsx("div",{className:c("h-2 w-full rounded-full bg-secondary",r),children:a.jsx("div",{className:"h-2 rounded-full bg-primary transition-[width] duration-normal",style:{width:`${n}%`}})})},ue=({className:e})=>a.jsx("div",{className:c("animate-pulse rounded bg-muted",e)});function ks(){const[e,t]=g.useState([]),r=g.useCallback(d=>{t(i=>i.filter(l=>l.id!==d))},[]),n=g.useCallback(d=>{const i=Math.random().toString(36).substr(2,9),l={id:i,duration:5e3,...d};return t(u=>[...u,l]),l.duration&&l.duration>0&&setTimeout(()=>{r(i)},l.duration),i},[r]),s=g.useCallback(()=>{t([])},[]),o=g.useCallback((d,i)=>{t(l=>l.map(u=>u.id===d?{...u,...i}:u))},[]);return{toasts:e,toast:n,dismiss:r,dismissAll:s,updateToast:o}}const $r=re.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-sm overflow-hidden rounded-md border p-md pr-lg shadow-lg transition-[transform,border-color,box-shadow] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{type:{default:"border bg-background text-foreground",success:"border-accent/20 bg-accent/10 text-accent-foreground",error:"border-destructive/20 bg-destructive/10 text-destructive-foreground",warning:"border-secondary/20 bg-secondary/10 text-secondary-foreground",info:"border-primary/20 bg-primary/10 text-primary-foreground",primary:"border-primary/20 bg-primary/10 text-primary-foreground",accent:"border-accent/20 bg-accent/10 text-accent-foreground",destructive:"border-destructive/20 bg-destructive/10 text-destructive-foreground",secondary:"border-secondary/20 bg-secondary/10 text-secondary-foreground"}},defaultVariants:{type:"default"}}),Ds=re.cva("h-4 w-4 flex-shrink-0",{variants:{type:{default:"text-foreground",success:"text-accent",error:"text-destructive",warning:"text-secondary",info:"text-primary",primary:"text-primary",accent:"text-accent",destructive:"text-destructive",secondary:"text-secondary"}},defaultVariants:{type:"default"}}),Ts=e=>{switch(e){case"success":return L.CheckCircle;case"error":return L.AlertCircle;case"warning":return L.AlertTriangle;case"info":return L.Info;default:return L.Info}},xt=p.forwardRef(({className:e,toast:t,onDismiss:r,type:n=t.type,...s},o)=>{const d=Ts(t.type),i={...Q.fadeIn({duration:"normal"}),...Ce.slideInDown({distance:100,duration:"normal"})},l={...Q.fadeOut({duration:"fast"}),...Ce.slideOutRight({distance:100,duration:"fast"})};return a.jsxs(he.motion.div,{ref:o,className:c($r({type:n,className:e})),initial:i.initial,animate:i.animate,exit:l.exit,transition:i.transition,layout:!0,...s,children:[a.jsxs("div",{className:"flex flex-1 items-start space-x-sm",children:[a.jsx(d,{className:c(Ds({type:t.type}))}),a.jsxs("div",{className:"flex-1 space-y-xs",children:[t.title&&a.jsx("div",{className:"text-sm font-semibold",children:t.title}),t.description&&a.jsx("div",{className:"text-sm opacity-90",children:t.description}),t.action&&a.jsx("div",{className:"mt-sm",children:a.jsx(J,{variant:"outline",size:"sm",onClick:t.action.onClick,className:"h-8 px-xs text-xs",children:t.action.label})})]})]}),a.jsx(J,{variant:"ghost",size:"icon",className:"absolute right-xs top-xs h-6 w-6 rounded-md p-xs text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100",onClick:()=>r(t.id),children:a.jsx(L.X,{className:"h-4 w-4"})})]})});xt.displayName="Toast";const Hr=g.createContext(void 0);function Es({children:e,position:t="top-right",maxToasts:r=5}){const n=ks(),{toasts:s,toast:o,dismiss:d,dismissAll:i,updateToast:l}=n,u=s.slice(-r),m={"top-left":"top-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4"};return a.jsxs(Hr.Provider,{value:{toast:o,dismiss:d,dismissAll:i,updateToast:l},children:[e,a.jsx(Rs,{position:t,positionClasses:m[t],children:a.jsx(he.AnimatePresence,{mode:"popLayout",children:u.map(f=>a.jsx(xt,{toast:f,onDismiss:d},f.id))})})]})}function Yr(){const e=g.useContext(Hr);if(e===void 0)throw new Error("useToastContext must be used within a ToastProvider");return e}function Ps(){const{toast:e,dismiss:t,dismissAll:r,updateToast:n}=Yr();return{toast:e,dismiss:t,dismissAll:r,updateToast:n,success:s=>e({...s,type:"success"}),error:s=>e({...s,type:"error"}),warning:s=>e({...s,type:"warning"}),info:s=>e({...s,type:"info"})}}function Rs({children:e,positionClasses:t}){return a.jsx("div",{className:c("fixed z-[100] flex max-h-screen w-full flex-col-reverse p-0 sm:flex-col",t),style:{pointerEvents:"none"},children:a.jsx("div",{className:"pointer-events-auto flex flex-col gap-2",children:e})})}const Os=({items:e,className:t,ariaLabel:r="Breadcrumb"})=>{const n=e.length-1;return a.jsx("nav",{className:c("text-sm",t),"aria-label":r,children:a.jsx("ol",{className:"flex items-center space-x-sm",children:e.map((s,o)=>{const d=o===n;return a.jsxs("li",{className:"flex items-center",children:[o>0&&a.jsx(L.ChevronRight,{className:"mx-1 h-4 w-4 text-muted-foreground","aria-hidden":"true"}),s.href&&!d?a.jsx(pe,{href:s.href,className:"text-muted-foreground transition-colors hover:text-foreground",children:s.label}):a.jsx("span",{className:"font-medium text-foreground","aria-current":d?"page":void 0,children:s.label})]},`${s.label}-${o}`)})})})},Fs=({currentPage:e,totalPages:t,onPageChange:r,className:n,ariaLabel:s="Pagination"})=>{const o=Math.max(1,t),d=1,i=o,l=y=>Math.min(Math.max(y,d),i),u=()=>{const h=[],b=[];for(let w=Math.max(2,e-2);w<=Math.min(i-1,e+2);w++)h.push(w);return e-2>2?b.push(d,"..."):b.push(d),b.push(...h),e+2<i-1?b.push("...",i):i!==d&&b.push(i),b},m=y=>{const h=l(y);h!==e&&r(h)},f="rounded-md border border-input bg-background px-sm py-sm text-sm transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50";return a.jsxs("nav",{className:c("flex items-center space-x-xs",n),"aria-label":s,children:[a.jsxs("button",{type:"button",onClick:()=>m(e-1),disabled:e===d,className:c(f,_e),"aria-label":"Previous page","aria-disabled":e===d,children:[a.jsx(L.ChevronLeft,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Previous"})]}),u().map((y,h)=>a.jsx(g.Fragment,{children:y==="..."?a.jsx("span",{className:"px-sm py-sm text-muted-foreground","aria-hidden":"true",children:"…"}):a.jsx("button",{type:"button",onClick:()=>m(y),className:c(f,_e,y===e?"border-primary bg-primary text-primary-foreground":"border-input bg-background hover:bg-accent"),"aria-label":`Go to page ${y}`,"aria-current":y===e?"page":void 0,children:y})},`${y}-${h}`)),a.jsxs("button",{type:"button",onClick:()=>m(e+1),disabled:e===i,className:c(f,_e),"aria-label":"Next page","aria-disabled":e===i,children:[a.jsx(L.ChevronRight,{className:"h-4 w-4","aria-hidden":"true"}),a.jsx("span",{className:"sr-only",children:"Next"})]})]})},qs=({items:e,className:t})=>a.jsx("div",{className:c("space-y-sm",t),children:e.map(r=>a.jsxs("div",{className:"rounded-lg border p-md transition-colors hover:bg-muted/50",children:[a.jsx("h3",{className:"font-medium text-foreground",children:r.title}),r.description&&a.jsx("p",{className:"mt-xs text-sm text-muted-foreground",children:r.description})]},r.id))}),Vs=({data:e,columns:t,rowKey:r,className:n})=>a.jsx("div",{className:c("overflow-x-auto",n),children:a.jsxs("table",{className:"w-full border-collapse",children:[a.jsx("thead",{children:a.jsx("tr",{className:"border-b",children:t.map(s=>a.jsx("th",{className:"p-sm text-left font-medium text-muted-foreground",children:s.title},String(s.key)))})}),a.jsx("tbody",{children:e.map(s=>a.jsx("tr",{className:"border-b hover:bg-muted/50",children:t.map(o=>a.jsx("td",{className:"p-sm",children:o.render?o.render(s[o.key],s):String(s[o.key])},String(o.key)))},String(s[r])))})]})}),Is=({items:e,className:t})=>a.jsx("div",{className:c("space-y-lg",t),children:e.map((r,n)=>a.jsxs("div",{className:"relative flex",children:[a.jsxs("div",{className:"flex flex-col items-center",children:[a.jsx("div",{className:"h-3 w-3 rounded-full border-2 border-background bg-primary"}),n<e.length-1&&a.jsx("div",{className:"mt-sm h-12 w-px bg-border"})]}),a.jsxs("div",{className:"ml-md flex-1",children:[a.jsx(Y,{level:3,className:"font-medium",children:r.title}),a.jsx(M,{size:"sm",variant:"muted",children:r.date}),r.description&&a.jsx(M,{size:"sm",variant:"muted",className:"mt-xs",children:r.description})]})]},r.id))});function Ls(e){if(e){if(typeof e=="object")return e;switch(e){case"fadeIn":return Q.fadeIn();case"fadeInUp":return Q.fadeInUp();case"fadeInDown":return Q.fadeInDown();case"fadeInLeft":return Q.fadeInLeft();case"fadeInRight":return Q.fadeInRight();case"slideInUp":return Ce.slideInUp();case"slideInDown":return Ce.slideInDown();case"slideInLeft":return Ce.slideInLeft();case"slideInRight":return Ce.slideInRight();case"scaleIn":return ve.scaleIn();default:return}}}function Bs(e){if(e){if(typeof e=="object")return e;switch(e){case"hoverLift":return Xe.hoverLift();case"hoverScale":return Xe.hoverScale();case"tapScale":return Xe.tapScale();default:return}}}function ft(e){if(!e)return{};const t=Ls(e.animation),r=Bs(e.hoverAnimation),n=e.animationProps||{};return{...t,...r,...n,whileHover:(r==null?void 0:r.whileHover)||n.whileHover||(t==null?void 0:t.whileHover),whileTap:(r==null?void 0:r.whileTap)||n.whileTap||(t==null?void 0:t.whileTap),transition:n.transition||(r==null?void 0:r.transition)||(t==null?void 0:t.transition)}}const zs=({title:e,description:t,date:r,venueName:n,price:s,imageUrl:o,href:d,ticketUrl:i,featured:l=!1,showImage:u=!0,getTicketsLabel:m,featuredBadgeText:f,className:y,animation:h})=>{const b=ft({animation:(h==null?void 0:h.animation)||"fadeInUp",hoverAnimation:(h==null?void 0:h.hoverAnimation)||"hoverLift",animationProps:h==null?void 0:h.animationProps});return a.jsx(Le,{...b,children:a.jsxs(se,{className:c("shadow-elevation-md hover:shadow-elevation-xl group relative overflow-hidden border-transparent transition-[border-color,box-shadow] duration-normal hover:border-primary/20",l&&"ring-2 ring-primary/50",y),children:[l&&f&&a.jsx("div",{className:"absolute right-3 top-3 z-10",children:a.jsx("span",{className:"shadow-elevation-lg inline-flex items-center rounded-full bg-gradient-to-r from-accent-500 to-primary-600 px-xs py-xs text-xs font-semibold text-white",children:f})}),u&&a.jsxs("div",{className:"relative h-[var(--spacing-3xl)] w-full overflow-hidden rounded-t-lg bg-gradient-to-br from-surface-elevated1 to-surface-elevated2",children:[o?a.jsx("img",{src:o,alt:e,className:"h-full w-full object-cover transition-transform duration-slow group-hover:scale-110"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx("svg",{className:"h-16 w-16 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 transition-opacity duration-normal group-hover:opacity-100"})]}),a.jsxs(oe,{className:"p-md",children:[a.jsx(Y,{level:3,className:"mb-xs line-clamp-2 text-lg font-bold transition-colors group-hover:text-primary",children:d?a.jsx(pe,{href:d,variant:"ghost",children:e}):e}),t&&a.jsx(M,{size:"sm",variant:"muted",className:"mb-sm line-clamp-2",children:t}),a.jsxs("div",{className:"mb-sm flex flex-col gap-xs",children:[r&&a.jsxs("div",{className:"flex items-center gap-xs text-xs text-muted-foreground",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),a.jsx(M,{size:"xs",variant:"muted",children:r})]}),n&&a.jsxs("div",{className:"flex items-center gap-xs text-xs text-muted-foreground",children:[a.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:[a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),a.jsx(M,{size:"xs",variant:"muted",className:"line-clamp-1",children:n})]})]}),a.jsxs("div",{className:"border-t border-border pt-sm",children:[i&&a.jsxs(pe,{href:i,className:"shadow-elevation-md hover:shadow-elevation-lg inline-flex w-full transform items-center justify-center bg-gradient-to-r from-accent-500 to-primary-600 px-md py-xs font-semibold text-white transition-[transform,box-shadow,background-color] duration-normal hover:scale-105 hover:from-accent-600 hover:to-primary-700",target:"_blank",rel:"noopener noreferrer",children:[m,a.jsx("svg",{className:"ml-xs h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]}),!i&&s&&a.jsx("div",{className:"text-right",children:a.jsx(M,{size:"lg",weight:"bold",className:"bg-gradient-to-r from-accent-500 to-primary-600 bg-clip-text text-transparent",children:s})})]})]})]})})},Ws=({name:e,description:t,location:r,capacity:n,imageUrl:s,href:o,eventsCount:d=0,featured:i=!1,showImage:l=!0,eventsLabel:u,popularBadgeText:m,capacityLabel:f,className:y,animation:h})=>{if(!e||e.trim()==="")throw new Error('VenueCard: "name" prop is required and cannot be empty');if(!u||u.trim()==="")throw new Error('VenueCard: "eventsLabel" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('VenueCard: "capacityLabel" prop is required and cannot be empty');const b=ft({animation:(h==null?void 0:h.animation)||"fadeInUp",hoverAnimation:(h==null?void 0:h.hoverAnimation)||"hoverLift",animationProps:h==null?void 0:h.animationProps});return a.jsx(Le,{...b,children:a.jsxs(se,{className:c("group relative overflow-hidden border-transparent shadow-md transition-[border-color,box-shadow] duration-normal hover:border-primary/20 hover:shadow-xl",i&&"ring-2 ring-primary/50",y),children:[i&&m&&a.jsx("div",{className:"absolute right-sm top-sm z-10",children:a.jsx("span",{className:"inline-flex items-center rounded-full bg-gradient-to-r from-accent to-primary px-xs py-xs text-xs font-semibold text-primary-foreground shadow-lg",children:m})}),l&&a.jsxs("div",{className:"relative h-[var(--spacing-3xl)] w-full overflow-hidden rounded-t-lg bg-gradient-to-br from-muted to-muted/50",children:[s?a.jsx("img",{src:s,alt:e,className:"h-full w-full object-cover transition-transform duration-slow group-hover:scale-110"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx("svg",{className:"h-16 w-16 text-muted",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})})}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-0 transition-opacity duration-normal group-hover:opacity-100"})]}),a.jsxs(oe,{className:"p-md",children:[a.jsx(Y,{level:3,className:"mb-sm line-clamp-2 text-lg font-bold transition-colors group-hover:text-primary",children:o?a.jsx(pe,{href:o,variant:"ghost",children:e}):e}),t&&a.jsx(M,{size:"sm",variant:"muted",className:"mb-sm line-clamp-2",children:t}),r&&a.jsx("div",{className:"mb-sm flex flex-col gap-sm",children:a.jsxs("div",{className:"flex items-center gap-sm text-xs text-muted-foreground",children:[a.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:[a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),a.jsx(M,{size:"xs",variant:"muted",className:"line-clamp-1",children:r})]})}),a.jsx("div",{className:"border-t border-border pt-sm",children:a.jsxs("div",{className:"flex items-center justify-between text-xs",children:[d>0&&a.jsxs("div",{className:"flex items-center gap-xs font-medium text-primary",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})}),a.jsxs(M,{size:"xs",variant:"primary",weight:"medium",children:[d," ",u]})]}),n&&a.jsxs("div",{className:"flex items-center gap-xs text-muted-foreground",children:[a.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"})}),a.jsxs(M,{size:"xs",variant:"muted",children:[f," ",n]})]})]})})]})]})})};function _s(e){if(!e||e.type==="none")return{};if(e.type==="surface"){const r={base:"hsl(var(--surface-base))",elevated1:"hsl(var(--surface-elevated1))",elevated2:"hsl(var(--surface-elevated2))",elevated3:"hsl(var(--surface-elevated3))",overlay:"hsl(var(--surface-overlay))",glass:"hsl(var(--surface-glass))"}[e.variant];if(r)return{style:{backgroundColor:r}};if(e.variant==="base")return{bg:"background"};if(e.variant==="elevated1"||e.variant==="elevated2")return{bg:"card"};if(e.variant==="elevated3")return{bg:"muted"}}return e.type==="color"?typeof e.value=="string"?{bg:e.value}:{bg:e.value.base||e.value.sm||e.value.md||"background"}:{}}function As(e){return e?{p:e.padding,px:e.paddingX,py:e.paddingY,m:e.margin,mx:e.marginX,my:e.marginY}:{}}function $s(e){return typeof e=="object"&&e!==null&&!p.isValidElement(e)&&"type"in e&&(e.type==="text"||e.type==="media"||e.type==="actions")}function ne(e){if(!e)return null;if($s(e)){if(e.type==="text"){const{content:t,typography:r,className:n}=e,s=r||{};if(typeof t=="string"){if(s.level)return a.jsx(Y,{level:s.level,className:c(n,s.className),children:t});if(s.size&&["2xl","3xl","4xl","5xl"].includes(s.size)){const i={"2xl":3,"3xl":2,"4xl":1,"5xl":1};return a.jsx(Y,{level:i[s.size]||3,className:c(n,s.className),children:t})}const o=s.size&&["xs","sm","md","lg","xl"].includes(s.size)?s.size:"md",d=s.variant&&s.variant!=="default"?s.variant:void 0;return a.jsx(M,{size:o,variant:d,className:c(n,s.className),children:t})}return a.jsx("div",{className:n,children:t})}if(e.type==="media"){const{content:t,className:r,aspectRatio:n}=e;return a.jsx("div",{className:c("w-full",r),style:n?{aspectRatio:n}:void 0,children:t})}if(e.type==="actions"){const{content:t,align:r,justify:n,gap:s,className:o}=e;return a.jsx(He,{align:r,justify:n,gap:s,className:c("flex-wrap",o),children:t})}}if(typeof e=="string")return a.jsx(M,{children:e});if(typeof e=="object"&&e!==null&&!p.isValidElement(e)&&"content"in e){const{content:t,className:r,style:n}=e;return typeof t=="string"?a.jsx("div",{className:r,style:n,children:a.jsx(M,{children:t})}):a.jsx("div",{className:r,style:n,children:t})}return e}function Hs(e){const{imagePosition:t="right",direction:r,gap:n="lg",align:s="center",justify:o="start",left:d,right:i,media:l}=e,u=(r==null?void 0:r.base)==="column"?"column":"row",m=t!=="left";return a.jsx(He,{direction:r||(u==="column"?"column":"row"),gap:n,align:s,justify:o,wrap:"wrap",children:m?a.jsxs(a.Fragment,{children:[d&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(d)}),l&&a.jsx("div",{className:c("min-w-0 flex-1",t==="left"&&"order-first"),children:ne(l)}),i&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(i)})]}):a.jsxs(a.Fragment,{children:[l&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(l)}),d&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(d)}),i&&a.jsx("div",{className:"min-w-0 flex-1",children:ne(i)})]})})}function Ys(e){const{columns:t=3,rows:r,gap:n="lg",align:s="stretch",justify:o="start",items:d,itemRenderer:i}=e;return a.jsx(Ke,{cols:t,rows:r,gap:n,align:s,justify:o,children:d.map((l,u)=>{const m=i?i(l,u):ne(l);return a.jsx(p.Fragment,{children:m},u)})})}function Gs(e){const{direction:t="vertical",gap:r="md",align:n="stretch",justify:s="start",items:o}=e;return a.jsx(Ze,{direction:t,spacing:r,align:n,justify:s,children:o.map((d,i)=>a.jsx(p.Fragment,{children:ne(d)},i))})}function Us(e){if(!e||!e.type)throw new Error("SectionBuilder: layout configuration is required");switch(e.type){case"split":!e.left&&!e.right&&!e.media&&console.warn("SectionBuilder: Split layout should have at least one of: left, right, or media");break;case"grid":if(!Array.isArray(e.items)||e.items.length===0)throw new Error("SectionBuilder: Grid layout requires a non-empty items array");break;case"stacked":if(!Array.isArray(e.items)||e.items.length===0)throw new Error("SectionBuilder: Stacked layout requires a non-empty items array");break}}function Xs(e){if(!e)throw new Error("SectionBuilder: config is required");if(!e.layout)throw new Error("SectionBuilder: layout configuration is required");Us(e.layout)}function Qs(e){switch(e.type){case"split":return Hs(e);case"grid":return Ys(e);case"stacked":return Gs(e);default:const t=e;throw new Error(`Unknown layout type: ${t.type}`)}}const Gr=p.forwardRef(({config:e,layout:t,background:r,spacing:n,radius:s,slots:o,className:d,style:i,as:l="section","aria-label":u,animation:m,...f},y)=>{const h=e||{layout:t,background:r,spacing:n,radius:s,slots:o};if(process.env.NODE_ENV!=="production")try{Xs(h)}catch(C){console.error("SectionBuilder validation error:",C)}const{layout:b,background:w,spacing:j,radius:N,slots:x}=h,v=_s(w),$=As(j),B=ft(m),O=N?{borderRadius:Yt(typeof N=="string"?N:N.base||"md")}:void 0,F=p.useMemo(()=>x!=null&&x.header?ne(x.header):null,[x==null?void 0:x.header]),P=p.useMemo(()=>x!=null&&x.body?ne(x.body):null,[x==null?void 0:x.body]),I=p.useMemo(()=>x!=null&&x.footer?ne(x.footer):null,[x==null?void 0:x.footer]),z=p.useMemo(()=>x!=null&&x.overlay?ne(x.overlay):null,[x==null?void 0:x.overlay]),W=Qs(b),T={...v.style,...O,...i},R=l;return a.jsx(R,{ref:y,"aria-label":u,className:c("relative",d),style:T,...f,children:a.jsxs(Le,{bg:v.bg,...$,...B,className:"relative w-full",style:v.style,children:[F&&a.jsx("div",{className:"mb-lg",children:F}),P&&a.jsx("div",{className:"mb-lg",children:P}),W,I&&a.jsx("div",{className:"mt-lg",children:I}),z&&a.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 flex items-center justify-center",children:z})]})})});Gr.displayName="SectionBuilder";const Js=({articles:e,readMoreLabel:t,className:r})=>{if(!t||t.trim()==="")throw new Error('ArticlesSection: "readMoreLabel" prop is required and cannot be empty');return a.jsx("div",{className:c("space-y-lg",r),children:e.map((n,s)=>a.jsxs("article",{className:"rounded-lg border p-lg transition-shadow hover:shadow-md",children:[n.imageUrl&&a.jsx("div",{className:"mb-md h-[var(--spacing-3xl)] w-full rounded-md bg-muted"}),a.jsxs("div",{className:"space-y-sm",children:[a.jsx(Y,{level:2,className:"text-xl font-semibold",children:a.jsx(pe,{href:n.href,variant:"ghost",className:"hover:text-primary",children:n.title})}),n.description&&a.jsx(M,{variant:"muted",children:n.description}),n.date&&a.jsx(M,{size:"sm",variant:"muted",children:n.date}),a.jsxs(pe,{href:n.href,variant:"primary",className:"inline-flex items-center",children:[t," →"]})]})]},n.href||s))})},Ur=({headline:e,description:t,primaryAction:r,secondaryAction:n,layout:s="centered",className:o})=>{const d=s==="centered",i=(l,u)=>{if(!l)return null;const m=l.variant||(u?"primary":"outline"),f="lg";return l.href?a.jsx(pe,{href:l.href,variant:m,size:f,children:l.label}):a.jsx(J,{variant:m,size:f,onClick:l.onClick,children:l.label})};return a.jsx("section",{className:c("w-full bg-muted py-xl transition-colors",o),"aria-label":"Call to action section",children:a.jsx("div",{className:"container mx-auto px-lg",children:a.jsxs("div",{className:c(d?"mx-auto max-w-3xl text-center":"grid grid-cols-1 gap-lg md:grid-cols-2 md:items-center"),children:[a.jsxs("div",{className:c("space-y-md",d&&"flex flex-col items-center"),children:[a.jsx(Y,{level:2,className:c("font-bold tracking-tight",d?"text-3xl md:text-4xl":"text-2xl md:text-3xl"),children:e}),t&&a.jsx(M,{size:d?"lg":"md",variant:"muted",className:c(d?"max-w-2xl":"max-w-none"),children:t})]}),(r||n)&&a.jsxs("div",{className:c("flex flex-wrap gap-md",d?"justify-center":"justify-start md:justify-end"),children:[r&&i(r,!0),n&&i(n,!1)]})]})})})};Ur.displayName="CTASection";const Xr=({features:e,title:t,description:r,columns:n=3,className:s})=>{if(!Array.isArray(e)||e.length===0)return null;const o={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"};return a.jsx("section",{className:c("w-full py-xl",s),"aria-label":"Features section",children:a.jsxs("div",{className:"container mx-auto px-lg",children:[(t||r)&&a.jsxs("header",{className:"mb-xl text-center",children:[t&&a.jsx(Y,{level:2,className:"mb-md",children:t}),r&&a.jsx(M,{size:"lg",variant:"muted",className:"mx-auto max-w-2xl",children:r})]}),a.jsx("div",{className:c("grid gap-lg",o[n]),children:e.map((d,i)=>a.jsx(se,{className:"transition-shadow hover:shadow-md",children:a.jsx(oe,{className:"p-lg",children:a.jsxs("div",{className:"space-y-md",children:[a.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10 text-primary",children:d.icon}),a.jsx(Y,{level:3,className:"text-xl font-semibold",children:d.title}),a.jsx(M,{variant:"muted",className:"leading-relaxed",children:d.description})]})})},i))})]})})};Xr.displayName="FeatureSection";const Qr=({variant:e="full-width",title:t,description:r,actions:n,media:s,className:o,background:d="default"})=>{const i={default:"bg-background",muted:"bg-muted",card:"bg-card"},l=e==="split";return a.jsx("section",{className:c("w-full transition-colors",i[d],o),"aria-label":"Hero section",children:a.jsxs("div",{className:c("container mx-auto px-lg py-xl",l?"grid grid-cols-1 gap-lg md:grid-cols-2 md:items-center lg:gap-xl":"flex flex-col items-center justify-center text-center"),children:[a.jsxs("div",{className:c("flex flex-col",l?"space-y-md":"max-w-3xl space-y-lg"),children:[a.jsxs("header",{className:"space-y-md",children:[a.jsx(Y,{level:1,className:c("font-bold tracking-tight",l?"text-3xl md:text-4xl lg:text-5xl":"text-4xl md:text-5xl lg:text-6xl"),children:t}),r&&a.jsx(M,{size:l?"lg":"xl",variant:"muted",className:c(l?"max-w-none":"mx-auto max-w-2xl"),children:r})]}),n&&a.jsx("div",{className:c("flex flex-wrap gap-md",l?"justify-start":"justify-center"),children:n})]}),s&&a.jsx("div",{className:c("flex items-center justify-center",l?"order-first md:order-last":"mt-lg"),children:a.jsx("div",{className:"w-full max-w-full overflow-hidden rounded-lg",children:s})})]})})};Qr.displayName="HeroSection";const Ks=({events:e,limit:t,loading:r,title:n,loadingText:s,contentText:o,className:d,...i})=>{if(!Array.isArray(e))throw new Error('TrendingSection: "events" prop is required and must be an array');if(typeof t!="number"||isNaN(t)||t<0)throw new Error('TrendingSection: "limit" prop is required and must be a non-negative number');if(typeof r!="boolean")throw new Error('TrendingSection: "loading" prop is required and must be a boolean');if(!n||n.trim()==="")throw new Error('TrendingSection: "title" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('TrendingSection: "loadingText" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('TrendingSection: "contentText" prop is required and cannot be empty');return a.jsx(se,{className:c("shadow-md",d),...i,children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:2,className:"mb-md",children:n}),r?a.jsx(M,{variant:"muted",children:s}):a.jsx(M,{variant:"muted",children:o})]})})},Zs=({className:e})=>a.jsxs("div",{className:c("rounded-lg bg-background p-md shadow-md",e),children:[a.jsx(ue,{className:"mb-md h-48 w-full"}),a.jsx(ue,{className:"mb-sm h-6 w-3/4"}),a.jsx(ue,{className:"mb-sm h-4 w-full"}),a.jsx(ue,{className:"h-4 w-1/2"})]}),eo=({className:e})=>a.jsxs("div",{className:c("rounded-lg bg-background p-md shadow-md",e),children:[a.jsx(ue,{className:"mb-md h-48 w-full"}),a.jsx(ue,{className:"mb-sm h-6 w-3/4"}),a.jsx(ue,{className:"mb-sm h-4 w-full"}),a.jsx(ue,{className:"h-4 w-1/2"})]}),to=({placeholder:e,className:t,onSearch:r,suggestions:n=[],onSuggestionSelect:s})=>{if(!e||e.trim()==="")throw new Error('SearchBar: "placeholder" prop is required and cannot be empty');const[o,d]=g.useState(""),[i,l]=g.useState(!1),[u,m]=g.useState(-1),f=g.useRef(null),y=x=>{d(x),m(-1),r&&r(x)},h=()=>{l(!0)},b=x=>{setTimeout(()=>{var v;typeof document<"u"&&!((v=f.current)!=null&&v.contains(document.activeElement))&&(l(!1),m(-1))},200)},w=x=>{if(n.length!==0)if(x.key==="ArrowDown")x.preventDefault(),m(v=>v<n.length-1?v+1:v);else if(x.key==="ArrowUp")x.preventDefault(),m(v=>v>0?v-1:-1);else if(x.key==="Enter"&&u>=0&&u<n.length){x.preventDefault();const v=n[u];v&&(d(v),y(v),s==null||s(v),l(!1))}else x.key==="Escape"&&(l(!1),m(-1))},j=x=>{d(x),y(x),s==null||s(x),l(!1)};g.useEffect(()=>{if(typeof document>"u")return;const x=v=>{f.current&&!f.current.contains(v.target)&&(l(!1),m(-1))};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const N=n.filter(x=>x.toLowerCase().includes(o.toLowerCase()));return a.jsxs("div",{ref:f,className:c("relative w-full max-w-sm",t),children:[a.jsx(Ge,{placeholder:e,value:o,onChange:y,onFocus:h,onBlur:b,onKeyDown:w,className:c("transition-[border-color,box-shadow] duration-fast","focus:ring-2 focus:ring-primary focus:ring-offset-2","hover:border-primary/50",i&&"border-primary shadow-sm")}),i&&N.length>0&&a.jsx("div",{className:"absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-md border bg-popover shadow-lg",children:N.map((x,v)=>a.jsx(J,{type:"button",variant:"ghost",onClick:()=>j(x),className:c("w-full justify-start px-md py-sm text-sm",v===u&&"bg-accent text-accent-foreground"),children:x},x))})]})},ro={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},ao={none:"shadow-none",sm:"shadow-sm",base:"shadow",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl","2xl":"shadow-2xl",inner:"shadow-inner"},no={square:"aspect-square",video:"aspect-video",photo:"aspect-[4/3]",wide:"aspect-[16/9]"},Jr=g.forwardRef(({className:e,wrapperClassName:t,radius:r="none",shadow:n="none",aspectRatio:s,fallbackSrc:o,showSkeleton:d=!1,src:i,onLoadingComplete:l,onError:u,onLoad:m,fill:f,alt:y="",...h},b)=>{const[w,j]=g.useState(!1),[N,x]=g.useState(!1),[v,$]=g.useState(i),B=g.useRef(!1),O=g.useRef(0),F=g.useRef(!0),P=g.useRef(null),I=i&&i.trim()!==""?i:void 0,z=o&&o.trim()!==""?o:void 0,W=z&&z!==I?z:void 0,T=g.useCallback(G=>{const U=G.currentTarget,ye=O.current;if(!(!F.current||!P.current||U!==P.current)&&(j(!0),l))try{const le=U.naturalWidth,Se=U.naturalHeight;if(O.current!==ye)return;if(le===0||Se===0){if(x(!0),j(!1),!u)return;try{u(G)}catch(Ee){console.error("Error in onError callback:",Ee)}return}l({naturalWidth:le,naturalHeight:Se})}catch(le){console.error("Error in onLoadingComplete callback:",le)}},[l,u]),R=g.useCallback(G=>{const U=G.currentTarget,ye=O.current;if(!(!F.current||!P.current||U!==P.current)&&O.current===ye){if(W&&!B.current&&v!==W){B.current=!0,$(W),x(!1),j(!1),O.current+=1;return}if(x(!0),j(!1),u)try{u(G)}catch(le){console.error("Error in onError callback:",le)}}},[W,v,u]);g.useEffect(()=>{I!==v&&($(I),j(!1),x(!1),B.current=!1,O.current+=1)},[I,v]),g.useEffect(()=>(F.current=!0,()=>{F.current=!1}),[]);const C=c("relative",r!=="none"&&ro[r],n!=="none"&&ao[n],r!=="none"&&"overflow-hidden",s&&(no[s]||(typeof s=="string"&&/^\d+\/\d+$/.test(s.trim())?`aspect-[${s.trim()}]`:s)),f&&"w-full h-full",t),S=c((f||r!=="none")&&"object-cover",f&&"absolute inset-0 w-full h-full",e),te=d&&!w&&!N&&v,K=g.useCallback(G=>{if(T(G),m)try{m(G)}catch(U){console.error("Error in onLoad callback:",U)}},[T,m]),Z=v||W;return a.jsxs("div",{ref:b,className:C,children:[te&&a.jsx(ue,{className:"absolute inset-0 z-10 h-full w-full"}),Z?a.jsx("img",{...h,ref:P,src:v,alt:y,className:S,onLoad:K,onError:R}):null]})});Jr.displayName="Image";const so=({className:e})=>a.jsx("div",{className:c("flex h-6 w-6 items-center justify-center rounded-full bg-primary",e),children:a.jsx("span",{className:"text-sm text-white",children:"↑"})}),oo=({ariaLabel:e,dataTestId:t,className:r,languages:n,value:s,defaultValue:o,disabled:d,onLanguageChange:i})=>{if(!e||e.trim()==="")throw new Error('LanguageSelector: "ariaLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('LanguageSelector: "dataTestId" prop is required and cannot be empty');if(!n||n.length===0)throw new Error('LanguageSelector: "languages" prop is required and cannot be empty');const l=g.useMemo(()=>n,[n]),u=()=>{if(s!==void 0)return s;if(o&&l.some(h=>h.code===o))return o;if(l.length===0)throw new Error("LanguageSelector: languages array must contain at least one option");return l[0].code},[m,f]=g.useState(u);g.useEffect(()=>{s!==void 0&&s!==m&&f(s)},[s,m]);const y=h=>{const b=h.target.value;s===void 0&&f(b),i==null||i(b)};return a.jsx("select",{value:s??m,onChange:y,disabled:d,className:c("rounded-md border border-input bg-background px-sm py-sm text-sm",d&&"cursor-not-allowed opacity-70",r),"aria-label":e,"data-testid":t,children:l.map(({code:h,label:b})=>a.jsx("option",{value:h,children:b},h))})},io=({emailLabel:e,emailPlaceholder:t,passwordLabel:r,passwordPlaceholder:n,loginButtonText:s,className:o})=>{if(!e||e.trim()==="")throw new Error('LoginForm: "emailLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('LoginForm: "emailPlaceholder" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('LoginForm: "passwordLabel" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('LoginForm: "passwordPlaceholder" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('LoginForm: "loginButtonText" prop is required and cannot be empty');return a.jsxs("div",{className:c("space-y-md",o),children:[a.jsx(ke,{label:e,placeholder:t}),a.jsx(ke,{label:r,placeholder:n}),a.jsx(J,{className:"w-full",children:s})]})},lo=({name:e,email:t,avatar:r,className:n})=>{if(!e||e.trim()==="")throw new Error('ProfileCard: "name" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('ProfileCard: "email" prop is required and cannot be empty');return a.jsx(se,{className:c("shadow-md",n),children:a.jsxs(oe,{className:"p-md",children:[r&&a.jsx("div",{className:"mb-md h-[var(--spacing-md)] w-[var(--spacing-md)] rounded-full bg-muted"}),a.jsx(Y,{level:3,className:"mb-sm text-lg font-semibold",children:e}),a.jsx(M,{variant:"muted",children:t})]})})},co=({nameLabel:e,namePlaceholder:t,emailLabel:r,emailPlaceholder:n,passwordLabel:s,passwordPlaceholder:o,registerButtonText:d,className:i})=>{if(!e||e.trim()==="")throw new Error('RegisterForm: "nameLabel" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('RegisterForm: "namePlaceholder" prop is required and cannot be empty');if(!r||r.trim()==="")throw new Error('RegisterForm: "emailLabel" prop is required and cannot be empty');if(!n||n.trim()==="")throw new Error('RegisterForm: "emailPlaceholder" prop is required and cannot be empty');if(!s||s.trim()==="")throw new Error('RegisterForm: "passwordLabel" prop is required and cannot be empty');if(!o||o.trim()==="")throw new Error('RegisterForm: "passwordPlaceholder" prop is required and cannot be empty');if(!d||d.trim()==="")throw new Error('RegisterForm: "registerButtonText" prop is required and cannot be empty');return a.jsxs("div",{className:c("space-y-md",i),children:[a.jsx(ke,{label:e,placeholder:t}),a.jsx(ke,{label:r,placeholder:n}),a.jsx(ke,{label:s,placeholder:o}),a.jsx(J,{className:"w-full",children:d})]})},uo=({title:e,content:t,className:r})=>{if(!e||e.trim()==="")throw new Error('Dashboard: "title" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('Dashboard: "content" prop is required and cannot be empty');return a.jsx(se,{className:c("shadow-md",r),children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:2,className:"mb-md",children:e}),a.jsx(M,{variant:"muted",children:t})]})})},mo=({title:e,content:t,className:r})=>{if(!e||e.trim()==="")throw new Error('UserManagement: "title" prop is required and cannot be empty');if(!t||t.trim()==="")throw new Error('UserManagement: "content" prop is required and cannot be empty');return a.jsx(se,{className:c("shadow-md",r),children:a.jsxs(oe,{className:"p-lg",children:[a.jsx(Y,{level:2,className:"mb-md",children:e}),a.jsx(M,{variant:"muted",children:t})]})})};exports.accentColors=E.accentColors;exports.animations=E.animations;exports.baseColors=E.baseColors;exports.colorCSSVariables=E.colorCSSVariables;exports.cssVariableColorTokens=E.cssVariableColorTokens;exports.durations=E.durations;exports.easings=E.easings;exports.keyframes=E.keyframes;exports.motionCSSVariables=E.motionCSSVariables;exports.primaryColors=E.primaryColors;exports.reducedMotion=E.reducedMotion;exports.secondaryColors=E.secondaryColors;exports.semanticColors=E.semanticColors;exports.springs=E.springs;exports.surfaceColors=E.surfaceColors;exports.tailwindMotionConfig=E.tailwindMotionConfig;exports.tailwindThemeColors=E.tailwindThemeColors;exports.textColors=E.textColors;exports.transitions=E.transitions;exports.accentColoredShadows=V.accentColoredShadows;exports.allCSSVariables=V.allCSSVariables;exports.allCSSVariablesCSS=V.allCSSVariablesCSS;exports.componentShadowMapping=V.componentShadowMapping;exports.elevationShadows=V.elevationShadows;exports.focusRings=V.focusRings;exports.fontFamily=V.fontFamily;exports.fontSize=V.fontSize;exports.fontWeight=V.fontWeight;exports.generateCSSVariablesCSS=V.generateCSSVariablesCSS;exports.glowEffects=V.glowEffects;exports.layoutSpacing=V.layoutSpacing;exports.letterSpacing=V.letterSpacing;exports.lineHeight=V.lineHeight;exports.primaryColoredShadows=V.primaryColoredShadows;exports.semanticSpacing=V.semanticSpacing;exports.shadowCSSVariables=V.shadowCSSVariables;exports.spacing=V.spacing;exports.spacingCSSVariables=V.spacingCSSVariables;exports.tailwindShadowConfig=V.tailwindShadowConfig;exports.tailwindSpacingConfig=V.tailwindSpacingConfig;exports.tailwindTypographyConfig=V.tailwindTypographyConfig;exports.textStyles=V.textStyles;exports.tokenSystemSummary=V.tokenSystemSummary;exports.typographyCSSVariables=V.typographyCSSVariables;exports.borderRadius=$e.borderRadius;exports.componentRadius=$e.componentRadius;exports.radiusCSSVariables=$e.radiusCSSVariables;exports.tailwindRadiusConfig=$e.tailwindRadiusConfig;exports.applyDocumentMode=ie.applyDocumentMode;exports.applyDocumentTheme=ie.applyDocumentTheme;exports.getInitialBrand=ie.getInitialBrand;exports.getInitialMode=ie.getInitialMode;exports.getInitialTheme=ie.getInitialTheme;exports.loadThemeOverride=ie.loadThemeOverride;exports.persistBrand=ie.persistBrand;exports.persistMode=ie.persistMode;exports.persistTheme=ie.persistTheme;exports.Alert=Ms;exports.ArticlesSection=Js;exports.Badge=ha;exports.Blockquote=va;exports.Box=Le;exports.Breadcrumbs=Os;exports.Button=J;exports.CTASection=Ur;exports.Card=se;exports.CardContent=oe;exports.CardDescription=Vt;exports.CardFooter=It;exports.CardHeader=Ft;exports.CardTitle=qt;exports.Code=wa;exports.ConfirmDialog=er;exports.Container=Ut;exports.CustomDialog=Aa;exports.Dashboard=uo;exports.DateRangePicker=lt;exports.Divider=Lt;exports.DropdownMenu=en;exports.DropdownMenuCheckboxItem=vr;exports.DropdownMenuContent=yr;exports.DropdownMenuGroup=rn;exports.DropdownMenuItem=wr;exports.DropdownMenuLabel=jr;exports.DropdownMenuPortal=an;exports.DropdownMenuRadioGroup=sn;exports.DropdownMenuRadioItem=gr;exports.DropdownMenuSeparator=Nr;exports.DropdownMenuShortcut=Sr;exports.DropdownMenuSub=nn;exports.DropdownMenuSubContent=br;exports.DropdownMenuSubTrigger=fr;exports.DropdownMenuTrigger=tn;exports.EventCard=zs;exports.EventCardSkeleton=Zs;exports.FeatureSection=Xr;exports.FilterBar=Ar;exports.FilterBarCompact=gs;exports.FilterSelect=Ve;exports.Flex=He;exports.Footer=ka;exports.FormInput=ke;exports.FormSelect=Ns;exports.FormTextarea=Ss;exports.Grid=Ke;exports.Heading=Y;exports.HeroSection=Qr;exports.Image=Jr;exports.Input=Te;exports.Label=be;exports.LanguageSelector=oo;exports.Link=pe;exports.List=qs;exports.LoginForm=io;exports.Modal=Kt;exports.ModalClose=Va;exports.ModalContent=tt;exports.ModalDescription=st;exports.ModalFooter=at;exports.ModalHeader=rt;exports.ModalOverlay=et;exports.ModalPortal=Zt;exports.ModalProvider=Ha;exports.ModalTitle=nt;exports.ModalTrigger=qa;exports.ModeHero=Ea;exports.Navbar=Pa;exports.NavigationMenu=Mr;exports.NavigationMenuContent=Tr;exports.NavigationMenuIndicator=Er;exports.NavigationMenuItem=on;exports.NavigationMenuLink=dn;exports.NavigationMenuList=Cr;exports.NavigationMenuTrigger=Dr;exports.NavigationMenuViewport=dt;exports.OverlayBackdrop=Xa;exports.OverlayContainer=Qa;exports.OverlayPortal=Ua;exports.Pagination=Fs;exports.Paragraph=ya;exports.Popover=lr;exports.PopoverAnchor=Ja;exports.PopoverContent=ot;exports.PopoverTrigger=cr;exports.PopoverWrapper=Ka;exports.PriceRangeSlider=_r;exports.ProfileCard=lo;exports.Progress=Cs;exports.RegisterForm=co;exports.SearchBar=to;exports.SearchFilters=js;exports.SearchInput=Ge;exports.Section=Ra;exports.SectionBuilder=Gr;exports.Select=Lr;exports.SelectContent=ht;exports.SelectGroup=fs;exports.SelectItem=pt;exports.SelectLabel=zr;exports.SelectScrollDownButton=mt;exports.SelectScrollUpButton=ut;exports.SelectSeparator=Wr;exports.SelectTrigger=ct;exports.SelectValue=Br;exports.SimpleModal=Ga;exports.Skeleton=ue;exports.Stack=Ze;exports.Table=Vs;exports.Tabs=ln;exports.TabsContent=Or;exports.TabsList=Pr;exports.TabsTrigger=Rr;exports.Text=M;exports.ThemeSwitch=ba;exports.Timeline=Is;exports.Toast=xt;exports.ToastProvider=Es;exports.Tooltip=hr;exports.TooltipContent=it;exports.TooltipProvider=mr;exports.TooltipTrigger=pr;exports.TooltipWrapper=Za;exports.TrendingIcon=so;exports.TrendingSection=Ks;exports.UserManagement=mo;exports.VenueCard=Ws;exports.VenueCardSkeleton=eo;exports.badgeVariants=Rt;exports.buttonVariants=Ot;exports.cn=c;exports.containerVariants=Gt;exports.debounce=ua;exports.flexVariants=Xt;exports.formatDate=Et;exports.formatDateTime=la;exports.formatTime=Pt;exports.generateId=ca;exports.gridVariants=Qt;exports.linkVariants=Bt;exports.navigationMenuTriggerStyle=kr;exports.popoverContentVariants=ur;exports.stackVariants=Jt;exports.throttle=ma;exports.toastVariants=$r;exports.tooltipContentVariants=xr;exports.useConfirmDialog=Ia;exports.useDateRange=xs;exports.useModal=$a;exports.useModalContext=dr;exports.useModalManager=or;exports.usePriceRange=bs;exports.useSearch=ws;exports.useToast=Ps;exports.useToastContext=Yr;exports.withModal=Ya;
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./motion-DJx1TbXJ.cjs"),t=require("./tokens/index.cjs"),R=require("./typography-C-Nb4y0o.cjs"),o=require("react/jsx-runtime"),qe=require("@radix-ui/react-slot"),K=require("class-variance-authority"),ie=require("react"),Ta=require("clsx"),Oa=require("tailwind-merge"),pa=require("@radix-ui/react-label"),D=require("lucide-react"),Nn=require("react-dom");function jt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const l=jt(ie),mn=jt(pa),ga=jt(Nn);function E(...e){return Oa.twMerge(Ta.clsx(e))}const Tn=K.cva(`inline-flex items-center justify-center ${t.BUTTON_TOKENS.gap} whitespace-nowrap ${t.BUTTON_TOKENS.radius} ${t.BUTTON_TOKENS.fontSize.md} font-medium ${t.BUTTON_TOKENS.transition.colors} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:${t.BUTTON_TOKENS.iconSize} [&_svg]:shrink-0`,{variants:{variant:{primary:`${t.BUTTON_TOKENS.variant.primary.background} ${t.BUTTON_TOKENS.variant.primary.text} ${t.BUTTON_TOKENS.shadow.primary} ${t.BUTTON_TOKENS.variant.primary.hover}`,secondary:`${t.BUTTON_TOKENS.variant.secondary.background} ${t.BUTTON_TOKENS.variant.secondary.text} ${t.BUTTON_TOKENS.shadow.default} ${t.BUTTON_TOKENS.variant.secondary.hover}`,accent:`${t.BUTTON_TOKENS.variant.accent.background} ${t.BUTTON_TOKENS.variant.accent.text} ${t.BUTTON_TOKENS.shadow.default} ${t.BUTTON_TOKENS.variant.accent.hover}`,outline:`${t.BUTTON_TOKENS.variant.outline.border} ${t.BUTTON_TOKENS.variant.outline.background} ${t.BUTTON_TOKENS.shadow.default} ${t.BUTTON_TOKENS.variant.outline.hover.background} ${t.BUTTON_TOKENS.variant.outline.hover.text}`,ghost:`${t.BUTTON_TOKENS.variant.ghost.hover.background} ${t.BUTTON_TOKENS.variant.ghost.hover.text}`,destructive:`${t.BUTTON_TOKENS.variant.destructive.background} ${t.BUTTON_TOKENS.variant.destructive.text} ${t.BUTTON_TOKENS.shadow.default} ${t.BUTTON_TOKENS.variant.destructive.hover}`},size:{sm:`${t.BUTTON_TOKENS.height.sm} ${t.BUTTON_TOKENS.radius} ${t.BUTTON_TOKENS.padding.horizontal.sm} ${t.BUTTON_TOKENS.padding.vertical.sm} ${t.BUTTON_TOKENS.fontSize.sm}`,md:`${t.BUTTON_TOKENS.height.md} ${t.BUTTON_TOKENS.radius} ${t.BUTTON_TOKENS.padding.horizontal.md} ${t.BUTTON_TOKENS.padding.vertical.md} ${t.BUTTON_TOKENS.fontSize.md}`,lg:`${t.BUTTON_TOKENS.height.lg} ${t.BUTTON_TOKENS.radius} ${t.BUTTON_TOKENS.padding.horizontal.lg} ${t.BUTTON_TOKENS.padding.vertical.md} ${t.BUTTON_TOKENS.fontSize.lg}`,icon:`${t.BUTTON_TOKENS.height.icon} ${t.BUTTON_TOKENS.width.icon}`}},defaultVariants:{variant:"primary",size:"md"}}),ne=l.forwardRef(({className:e,variant:r,size:n,asChild:s=!1,leftIcon:a,rightIcon:d,children:i,...c},u)=>{const N=s?qe.Slot:"button";return o.jsxs(N,{className:E(Tn({variant:r,size:n,className:e})),ref:u,...c,children:[a&&o.jsx("span",{className:"inline-flex items-center",children:a}),i,d&&o.jsx("span",{className:"inline-flex items-center",children:d})]})});ne.displayName="Button";const On=K.cva("text-foreground",{variants:{size:{xs:t.TEXT_TOKENS.fontSize.xs,sm:t.TEXT_TOKENS.fontSize.sm,md:t.TEXT_TOKENS.fontSize.md,lg:t.TEXT_TOKENS.fontSize.lg,xl:t.TEXT_TOKENS.fontSize.xl},weight:{normal:t.TEXT_TOKENS.fontWeight.normal,medium:t.TEXT_TOKENS.fontWeight.medium,semibold:t.TEXT_TOKENS.fontWeight.semibold,bold:t.TEXT_TOKENS.fontWeight.bold},muted:{true:"text-muted-foreground",false:""},variant:{primary:"text-primary",secondary:"text-secondary-foreground",accent:"text-accent-foreground",outline:"text-foreground",ghost:"text-foreground",link:"text-primary hover:underline",destructive:"text-destructive",muted:"text-muted-foreground"}},defaultVariants:{size:"md",weight:"normal",muted:!1}}),W=l.forwardRef(({className:e,size:r,weight:n,muted:s,variant:a,...d},i)=>{const c=s!==void 0?s:a==="muted";return o.jsx("span",{ref:i,className:E(On({size:r,weight:n,muted:c,variant:a}),e),...d})});W.displayName="Text";const pn=K.cva(`${t.ALERT_TOKENS.radius} border ${t.ALERT_TOKENS.padding}`,{variants:{variant:{default:"bg-muted border-border text-foreground",primary:"bg-primary/10 border-primary/20 text-primary-foreground",secondary:"bg-secondary/10 border-secondary/20 text-secondary-foreground",accent:"bg-accent/10 border-accent/20 text-accent-foreground",destructive:"bg-destructive/10 border-destructive/20 text-destructive-foreground",success:"bg-accent/10 border-accent/20 text-accent-foreground",warning:"bg-secondary/10 border-secondary/20 text-secondary-foreground",danger:"bg-destructive/10 border-destructive/20 text-destructive-foreground",info:"bg-primary/10 border-primary/20 text-primary-foreground"}},defaultVariants:{variant:"default"}}),gn=l.forwardRef(({className:e,variant:r,...n},s)=>o.jsx("div",{ref:s,role:"alert",className:E(pn({variant:r}),e),...n}));gn.displayName="Alert";const Sn=K.cva("font-sans text-foreground",{variants:{size:{md:"text-md leading-relaxed tracking-normal",lg:"text-lg leading-relaxed tracking-normal"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},muted:{true:"text-muted-foreground",false:""}},defaultVariants:{size:"md",weight:"normal",muted:!1}}),hn=l.forwardRef(({className:e,size:r,weight:n,muted:s,as:a="p",children:d,...i},c)=>{const u=a;return o.jsx(u,{ref:c,className:E(Sn({size:r,weight:n,muted:s}),e),...i,children:d})});hn.displayName="Body";const En=K.cva("font-sans text-foreground",{variants:{weight:{normal:"font-normal",medium:"font-medium"},muted:{true:"text-muted-foreground",false:""}},defaultVariants:{weight:"normal",muted:!0}}),xn=l.forwardRef(({className:e,weight:r,muted:n,as:s="span",children:a,...d},i)=>{const c=s;return o.jsx(c,{ref:i,className:E("text-xs leading-tight tracking-wide",En({weight:r,muted:n}),e),...d,children:a})});xn.displayName="Caption";const bn=K.cva("font-mono text-foreground",{variants:{variant:{inline:"rounded bg-muted px-xs py-0.5 text-sm font-semibold",block:"block rounded-md bg-muted p-md text-sm font-semibold"},muted:{true:"text-muted-foreground",false:""}},defaultVariants:{variant:"inline",muted:!1}}),In=l.forwardRef(({className:e,variant:r,muted:n,as:s,children:a,...d},i)=>{const c=s||(r==="block"?"pre":"code");return o.jsx(c,{ref:i,className:E(bn({variant:r,muted:n}),e),...d,children:r==="block"?o.jsx("code",{children:a}):a})});In.displayName="Code";const vn=K.cva("font-display text-foreground",{variants:{size:{xl:"text-xl leading-normal tracking-normal","2xl":"text-2xl leading-tight tracking-tight","3xl":"text-3xl leading-tight tracking-tight","4xl":"text-4xl leading-none tracking-tight"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},muted:{true:"text-muted-foreground",false:""}},defaultVariants:{size:"4xl",weight:"bold",muted:!1}}),_n=l.forwardRef(({className:e,size:r,weight:n,muted:s,as:a="h1",children:d,...i},c)=>{const u=a==="h1"?"h1":a==="h2"?"h2":"div";return o.jsx(u,{ref:c,className:E(vn({size:r,weight:n,muted:s}),e),...i,children:d})});_n.displayName="Display";const Kn=K.cva("font-display text-foreground",{variants:{level:{1:"text-5xl font-bold leading-tight tracking-tight",2:"text-4xl font-bold leading-tight tracking-tight",3:"text-3xl font-semibold leading-snug tracking-normal",4:"text-2xl font-semibold leading-snug tracking-normal",5:"text-xl font-medium leading-normal tracking-normal",6:"text-lg font-medium leading-normal tracking-normal"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},muted:{true:"text-muted-foreground",false:""}},compoundVariants:[{level:1,weight:"normal",class:"text-5xl font-normal"},{level:1,weight:"medium",class:"text-5xl font-medium"},{level:1,weight:"semibold",class:"text-5xl font-semibold"},{level:1,weight:"bold",class:"text-5xl font-bold"},{level:2,weight:"normal",class:"text-4xl font-normal"},{level:2,weight:"medium",class:"text-4xl font-medium"},{level:2,weight:"semibold",class:"text-4xl font-semibold"},{level:2,weight:"bold",class:"text-4xl font-bold"},{level:3,weight:"normal",class:"text-3xl font-normal"},{level:3,weight:"medium",class:"text-3xl font-medium"},{level:3,weight:"semibold",class:"text-3xl font-semibold"},{level:3,weight:"bold",class:"text-3xl font-bold"},{level:4,weight:"normal",class:"text-2xl font-normal"},{level:4,weight:"medium",class:"text-2xl font-medium"},{level:4,weight:"semibold",class:"text-2xl font-semibold"},{level:4,weight:"bold",class:"text-2xl font-bold"},{level:5,weight:"normal",class:"text-xl font-normal"},{level:5,weight:"medium",class:"text-xl font-medium"},{level:5,weight:"semibold",class:"text-xl font-semibold"},{level:5,weight:"bold",class:"text-xl font-bold"},{level:6,weight:"normal",class:"text-lg font-normal"},{level:6,weight:"medium",class:"text-lg font-medium"},{level:6,weight:"semibold",class:"text-lg font-semibold"},{level:6,weight:"bold",class:"text-lg font-bold"}],defaultVariants:{level:1,muted:!1}}),Se=l.forwardRef(({className:e,level:r=1,weight:n,muted:s,as:a,children:d,...i},c)=>{const u=a||`h${r}`;return o.jsx(u,{ref:c,className:E(Kn({level:r,weight:n,muted:s}),e),...i,children:d})});Se.displayName="Heading";const wn=K.cva("font-sans text-foreground",{variants:{size:{lg:"text-lg leading-normal tracking-normal",xl:"text-xl leading-normal tracking-normal"},muted:{true:"text-muted-foreground",false:""}},defaultVariants:{size:"lg",muted:!0}}),yn=l.forwardRef(({className:e,size:r,muted:n,as:s="p",children:a,...d},i)=>{const c=s;return o.jsx(c,{ref:i,className:E(wn({size:r,muted:n}),e),...d,children:a})});yn.displayName="Lead";const ce=({className:e,"aria-hidden":r=!0,...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:o.jsx("path",{d:"M14 5l7 7m0 0l-7 7m7-7H3"})});ce.displayName="IconArrowRight";const Qe=({className:e,"aria-hidden":r=!0,...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:o.jsx("path",{d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})});Qe.displayName="IconCalendar";const Ze=({className:e,"aria-hidden":r=!0,...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:o.jsx("path",{d:"M20 6 9 17l-5-5"})});Ze.displayName="IconCheck";const zt=({className:e,"aria-hidden":r=!0,...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:o.jsx("path",{d:"m6 9 6 6 6-6"})});zt.displayName="IconChevronDown";const Mt=({className:e,"aria-hidden":r=!0,...n})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:o.jsx("path",{d:"m9 18 6-6-6-6"})});Mt.displayName="IconChevronRight";const kt=({className:e,"aria-hidden":r=!0,...n})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:[o.jsx("path",{d:"m18 6-12 12"}),o.jsx("path",{d:"m6 6 12 12"})]});kt.displayName="IconClose";const Pt=({className:e,"aria-hidden":r=!0,...n})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"m15 9-6 6"}),o.jsx("path",{d:"m9 9 6 6"})]});Pt.displayName="IconError";const Dt=({className:e,"aria-hidden":r=!0,...n})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"M12 16v-4"}),o.jsx("path",{d:"M12 8h.01"})]});Dt.displayName="IconInfo";const Je=({className:e,"aria-hidden":r=!0,...n})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:[o.jsx("path",{d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),o.jsx("path",{d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]});Je.displayName="IconLocation";const Ut=({className:e,"aria-hidden":r=!0,...n})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:[o.jsx("line",{x1:"4",x2:"20",y1:"6",y2:"6"}),o.jsx("line",{x1:"4",x2:"20",y1:"12",y2:"12"}),o.jsx("line",{x1:"4",x2:"20",y1:"18",y2:"18"})]});Ut.displayName="IconMenu";const Lt=({className:e,"aria-hidden":r=!0,...n})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:[o.jsx("circle",{cx:"11",cy:"11",r:"8"}),o.jsx("path",{d:"m21 21-4.35-4.35"})]});Lt.displayName="IconSearch";const Bt=({className:e,"aria-hidden":r=!0,...n})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"m9 12 2 2 4-4"})]});Bt.displayName="IconSuccess";const Gt=({className:e,"aria-hidden":r=!0,...n})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":r,...n,children:[o.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),o.jsx("path",{d:"M12 9v4"}),o.jsx("path",{d:"M12 17h.01"})]});Gt.displayName="IconWarning";const It={arrowRight:ce,calendar:Qe,check:Ze,chevronDown:zt,chevronRight:Mt,close:kt,error:Pt,info:Dt,location:Je,menu:Ut,search:Lt,success:Bt,warning:Gt},An=K.cva(`inline-flex items-center justify-center border ${t.MOTION_TOKENS.transition.all} ${t.MOTION_TOKENS.duration[200]} ${t.MOTION_TOKENS.easing["in-out"]} focus-visible:outline-none disabled:cursor-not-allowed ${t.CHECKBOX_TOKENS.shadow}`,{variants:{variant:{primary:`${t.CHECKBOX_TOKENS.variant.primary.border} ${t.CHECKBOX_TOKENS.variant.primary.background} ${t.CHECKBOX_TOKENS.variant.primary.text} ${t.CHECKBOX_TOKENS.variant.primary.focus}`,secondary:`${t.CHECKBOX_TOKENS.variant.secondary.border} ${t.CHECKBOX_TOKENS.variant.secondary.background} ${t.CHECKBOX_TOKENS.variant.secondary.text} ${t.CHECKBOX_TOKENS.variant.secondary.focus}`,outline:`${t.CHECKBOX_TOKENS.variant.outline.border} ${t.CHECKBOX_TOKENS.variant.outline.background} ${t.CHECKBOX_TOKENS.variant.outline.text} ${t.CHECKBOX_TOKENS.variant.outline.focus}`,ghost:`${t.CHECKBOX_TOKENS.variant.ghost.border} ${t.CHECKBOX_TOKENS.variant.ghost.background} ${t.CHECKBOX_TOKENS.variant.ghost.text} ${t.CHECKBOX_TOKENS.variant.ghost.focus}`,destructive:`${t.CHECKBOX_TOKENS.variant.destructive.border} ${t.CHECKBOX_TOKENS.variant.destructive.background} ${t.CHECKBOX_TOKENS.variant.destructive.text} ${t.CHECKBOX_TOKENS.variant.destructive.focus}`},size:{xs:`${t.CHECKBOX_TOKENS.size.xs.width} ${t.CHECKBOX_TOKENS.size.xs.height} ${t.CHECKBOX_TOKENS.size.xs.radius}`,sm:`${t.CHECKBOX_TOKENS.size.sm.width} ${t.CHECKBOX_TOKENS.size.sm.height} ${t.CHECKBOX_TOKENS.size.sm.radius}`,md:`${t.CHECKBOX_TOKENS.size.md.width} ${t.CHECKBOX_TOKENS.size.md.height} ${t.CHECKBOX_TOKENS.size.md.radius}`,lg:`${t.CHECKBOX_TOKENS.size.lg.width} ${t.CHECKBOX_TOKENS.size.lg.height} ${t.CHECKBOX_TOKENS.size.lg.radius}`,xl:`${t.CHECKBOX_TOKENS.size.xl.width} ${t.CHECKBOX_TOKENS.size.xl.height} ${t.CHECKBOX_TOKENS.size.xl.radius}`},state:{default:`${t.CHECKBOX_TOKENS.state.border.default} ${t.CHECKBOX_TOKENS.state.background.default} ${t.CHECKBOX_TOKENS.state.text.default}`,checked:`${t.CHECKBOX_TOKENS.state.border.checked} ${t.CHECKBOX_TOKENS.state.background.checked} ${t.CHECKBOX_TOKENS.state.text.checked}`,indeterminate:`${t.CHECKBOX_TOKENS.state.border.indeterminate} ${t.CHECKBOX_TOKENS.state.background.indeterminate} ${t.CHECKBOX_TOKENS.state.text.indeterminate}`,error:`${t.CHECKBOX_TOKENS.state.border.error} ${t.CHECKBOX_TOKENS.state.background.default} ${t.CHECKBOX_TOKENS.state.text.default}`,disabled:`${t.CHECKBOX_TOKENS.state.border.disabled} ${t.CHECKBOX_TOKENS.state.background.disabled} ${t.CHECKBOX_TOKENS.state.text.disabled}`}},defaultVariants:{variant:"outline",size:"md",state:"default"}}),Cn=l.forwardRef(({className:e,variant:r,size:n,state:s,checked:a,indeterminate:d=!1,disabled:i=!1,onCheckedChange:c,icon:u,indeterminateIcon:N,"aria-label":f,"aria-labelledby":O,"aria-describedby":m,onClick:p,onKeyDown:T,...h},g)=>{const[S,x]=l.useState(!1),b=a!==void 0,I=b?a:S,v=i||s==="disabled",_=s==="error",$=l.useMemo(()=>v?"disabled":_?"error":d?"indeterminate":I?"checked":"default",[v,_,d,I]),y=l.useMemo(()=>d?"mixed":I?"true":"false",[d,I]),V=l.useCallback(z=>{if(v){z.preventDefault();return}b||x(X=>!X),c==null||c(!I),p==null||p(z)},[v,b,I,c,p]),A=l.useCallback(z=>{v||((z.key===" "||z.key==="Spacebar")&&(z.preventDefault(),z.stopPropagation(),b||x(X=>!X),c==null||c(!I)),T==null||T(z))},[v,b,I,c,T]),M=E(An({variant:r,size:n,state:$}),e),Y=n?t.CHECKBOX_TOKENS.icon.size[n]:t.CHECKBOX_TOKENS.icon.size.md,G=()=>d?N||o.jsx("span",{className:E(t.CHECKBOX_TOKENS.indeterminate.width,t.CHECKBOX_TOKENS.indeterminate.height,t.CHECKBOX_TOKENS.indeterminate.color,"block rounded-sm"),"aria-hidden":"true"}):I?u||o.jsx(Ze,{className:E(Y,t.CHECKBOX_TOKENS.icon.stroke,v?t.CHECKBOX_TOKENS.icon.color.disabled:t.CHECKBOX_TOKENS.icon.color.default),"aria-hidden":!0}):null;return o.jsx("button",{type:"button",role:"checkbox","aria-checked":y,"aria-disabled":v,"aria-invalid":_,"aria-label":f,"aria-labelledby":O,"aria-describedby":m,disabled:v,className:M,onClick:V,onKeyDown:A,ref:g,...h,children:G()})});Cn.displayName="Checkbox";const $n=K.cva(`flex ${t.INPUT_TOKENS.shadow} ${t.MOTION_TOKENS.transition.colors} file:border-0 file:bg-transparent ${t.TEXT_TOKENS.fontSize.sm} file:font-medium ${t.INPUT_TOKENS.file.text} disabled:cursor-not-allowed focus-visible:outline-none`,{variants:{variant:{primary:`${t.INPUT_TOKENS.variant.primary.border} ${t.INPUT_TOKENS.variant.primary.background} ${t.INPUT_TOKENS.variant.primary.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.primary.focus}`,secondary:`${t.INPUT_TOKENS.variant.secondary.border} ${t.INPUT_TOKENS.variant.secondary.background} ${t.INPUT_TOKENS.variant.secondary.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.secondary.focus}`,outline:`${t.INPUT_TOKENS.variant.outline.border} ${t.INPUT_TOKENS.variant.outline.background} ${t.INPUT_TOKENS.variant.outline.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.outline.focus}`,ghost:`${t.INPUT_TOKENS.variant.ghost.border} ${t.INPUT_TOKENS.variant.ghost.background} ${t.INPUT_TOKENS.variant.ghost.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.ghost.focus}`,destructive:`${t.INPUT_TOKENS.variant.destructive.border} ${t.INPUT_TOKENS.variant.destructive.background} ${t.INPUT_TOKENS.variant.destructive.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.destructive.focus}`},size:{xs:`${t.INPUT_TOKENS.size.xs.height} ${t.INPUT_TOKENS.size.xs.padding.horizontal} ${t.INPUT_TOKENS.size.xs.padding.vertical} ${t.INPUT_TOKENS.size.xs.radius} ${t.INPUT_TOKENS.size.xs.fontSize}`,sm:`${t.INPUT_TOKENS.size.sm.height} ${t.INPUT_TOKENS.size.sm.padding.horizontal} ${t.INPUT_TOKENS.size.sm.padding.vertical} ${t.INPUT_TOKENS.size.sm.radius} ${t.INPUT_TOKENS.size.sm.fontSize}`,md:`${t.INPUT_TOKENS.size.md.height} ${t.INPUT_TOKENS.size.md.padding.horizontal} ${t.INPUT_TOKENS.size.md.padding.vertical} ${t.INPUT_TOKENS.size.md.radius} ${t.INPUT_TOKENS.size.md.fontSize} ${t.INPUT_TOKENS.size.md.fontSizeResponsive}`,lg:`${t.INPUT_TOKENS.size.lg.height} ${t.INPUT_TOKENS.size.lg.padding.horizontal} ${t.INPUT_TOKENS.size.lg.padding.vertical} ${t.INPUT_TOKENS.size.lg.radius} ${t.INPUT_TOKENS.size.lg.fontSize}`,xl:`${t.INPUT_TOKENS.size.xl.height} ${t.INPUT_TOKENS.size.xl.padding.horizontal} ${t.INPUT_TOKENS.size.xl.padding.vertical} ${t.INPUT_TOKENS.size.xl.radius} ${t.INPUT_TOKENS.size.xl.fontSize}`},state:{default:`${t.INPUT_TOKENS.state.border.default} ${t.INPUT_TOKENS.state.background.default} ${t.INPUT_TOKENS.state.text.default} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.state.border.focus}`,error:`${t.INPUT_TOKENS.state.border.error} ${t.INPUT_TOKENS.state.background.default} ${t.INPUT_TOKENS.state.text.default} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.state.border.focus}`,success:`${t.INPUT_TOKENS.state.border.success} ${t.INPUT_TOKENS.state.background.default} ${t.INPUT_TOKENS.state.text.default} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.state.border.focus}`,disabled:`${t.INPUT_TOKENS.state.border.disabled} ${t.INPUT_TOKENS.state.background.disabled} ${t.INPUT_TOKENS.state.text.default} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.state.text.disabled}`},fullWidth:{true:t.INPUT_TOKENS.width.full,false:""}},defaultVariants:{variant:"outline",size:"md",state:"default",fullWidth:!0}}),Rn=l.forwardRef(({className:e,type:r="text",variant:n,size:s,state:a,fullWidth:d,iconLeft:i,iconRight:c,disabled:u,"aria-invalid":N,"aria-describedby":f,...O},m)=>{const p=a==="error"||N===!0,T=u||a==="disabled",h=p?!0:N,g=l.useId(),[S]=l.useState(()=>{if(f)return f;if(a==="error"||a==="success")return`input-${g}-message`}),x=E($n({variant:n,size:s,state:a,fullWidth:d}),i&&t.INPUT_TOKENS.icon.paddingLeft,c&&t.INPUT_TOKENS.icon.paddingRight,e);return i||c?o.jsxs("div",{className:E("relative",d!==!1&&t.INPUT_TOKENS.width.full),children:[i&&o.jsx("span",{className:E("absolute left-0 top-0 flex h-full items-center",t.INPUT_TOKENS.icon.paddingLeft,t.INPUT_TOKENS.icon.size,t.INPUT_TOKENS.icon.color),children:i}),o.jsx("input",{type:r,className:x,ref:m,disabled:T,"aria-invalid":h,"aria-describedby":S,...O}),c&&o.jsx("span",{className:E("absolute right-0 top-0 flex h-full items-center",t.INPUT_TOKENS.icon.paddingRight,t.INPUT_TOKENS.icon.size,t.INPUT_TOKENS.icon.color),children:c})]}):o.jsx("input",{type:r,className:x,ref:m,disabled:T,"aria-invalid":h,"aria-describedby":S,...O})});Rn.displayName="Input";const Vn=K.cva(`inline-flex items-center justify-center border ${t.MOTION_TOKENS.transition.all} ${t.MOTION_TOKENS.duration[200]} ${t.MOTION_TOKENS.easing["in-out"]} focus-visible:outline-none disabled:cursor-not-allowed ${t.RADIO_TOKENS.shadow}`,{variants:{variant:{primary:`${t.RADIO_TOKENS.variant.primary.border} ${t.RADIO_TOKENS.variant.primary.background} ${t.RADIO_TOKENS.variant.primary.text} ${t.RADIO_TOKENS.variant.primary.focus}`,secondary:`${t.RADIO_TOKENS.variant.secondary.border} ${t.RADIO_TOKENS.variant.secondary.background} ${t.RADIO_TOKENS.variant.secondary.text} ${t.RADIO_TOKENS.variant.secondary.focus}`,outline:`${t.RADIO_TOKENS.variant.outline.border} ${t.RADIO_TOKENS.variant.outline.background} ${t.RADIO_TOKENS.variant.outline.text} ${t.RADIO_TOKENS.variant.outline.focus}`,ghost:`${t.RADIO_TOKENS.variant.ghost.border} ${t.RADIO_TOKENS.variant.ghost.background} ${t.RADIO_TOKENS.variant.ghost.text} ${t.RADIO_TOKENS.variant.ghost.focus}`,destructive:`${t.RADIO_TOKENS.variant.destructive.border} ${t.RADIO_TOKENS.variant.destructive.background} ${t.RADIO_TOKENS.variant.destructive.text} ${t.RADIO_TOKENS.variant.destructive.focus}`},size:{xs:`${t.RADIO_TOKENS.size.xs.width} ${t.RADIO_TOKENS.size.xs.height} ${t.RADIO_TOKENS.size.xs.radius}`,sm:`${t.RADIO_TOKENS.size.sm.width} ${t.RADIO_TOKENS.size.sm.height} ${t.RADIO_TOKENS.size.sm.radius}`,md:`${t.RADIO_TOKENS.size.md.width} ${t.RADIO_TOKENS.size.md.height} ${t.RADIO_TOKENS.size.md.radius}`,lg:`${t.RADIO_TOKENS.size.lg.width} ${t.RADIO_TOKENS.size.lg.height} ${t.RADIO_TOKENS.size.lg.radius}`,xl:`${t.RADIO_TOKENS.size.xl.width} ${t.RADIO_TOKENS.size.xl.height} ${t.RADIO_TOKENS.size.xl.radius}`},state:{default:`${t.RADIO_TOKENS.state.border.default} ${t.RADIO_TOKENS.state.background.default} ${t.RADIO_TOKENS.state.text.default}`,checked:`${t.RADIO_TOKENS.state.border.checked} ${t.RADIO_TOKENS.state.background.checked} ${t.RADIO_TOKENS.state.text.checked}`,error:`${t.RADIO_TOKENS.state.border.error} ${t.RADIO_TOKENS.state.background.default} ${t.RADIO_TOKENS.state.text.default}`,disabled:`${t.RADIO_TOKENS.state.border.disabled} ${t.RADIO_TOKENS.state.background.disabled} ${t.RADIO_TOKENS.state.text.disabled}`}},defaultVariants:{variant:"outline",size:"md",state:"default"}}),jn=l.createContext(void 0),zn=l.forwardRef(({value:e,defaultValue:r,onValueChange:n,name:s,orientation:a="vertical",size:d,className:i,children:c,...u},N)=>{const[f,O]=l.useState(r||""),m=e!==void 0,p=m?e:f,T=l.useMemo(()=>s||(typeof document<"u"?`radio-group-${Math.random().toString(36).substr(2,9)}`:"radio-group"),[s]),h=l.useCallback(S=>{m||O(S),n==null||n(S)},[m,n]),g=l.useMemo(()=>({value:p,onValueChange:h,name:T,orientation:a??"vertical",size:d??"md"}),[p,h,T,a,d]);return o.jsx(jn.Provider,{value:g,children:o.jsx("div",{ref:N,role:"radiogroup","aria-orientation":a??"vertical",className:E(a==="horizontal"?"flex flex-row items-center gap-md":"flex flex-col gap-md",i),...u,children:c})})});zn.displayName="RadioGroup";const Mn=l.forwardRef(({className:e,variant:r,size:n,state:s,checked:a,disabled:d=!1,value:i,onCheckedChange:c,icon:u,"aria-label":N,"aria-labelledby":f,"aria-describedby":O,onClick:m,onKeyDown:p,...T},h)=>{const g=l.useContext(jn),S=a!==void 0,x=g!==void 0,b=x&&i!==void 0&&g?g.value===i:!1,[I,v]=l.useState(!1),_=S?a:x?b:I,$=n||(g==null?void 0:g.size)||"md",y=d||s==="disabled",V=s==="error",A=l.useMemo(()=>y?"disabled":V?"error":_?"checked":"default",[y,V,_]),M=l.useMemo(()=>x?_?0:-1:0,[x,_]),Y=l.useCallback(w=>{if(y){w.preventDefault();return}x&&i!==void 0?g==null||g.onValueChange(i):S||v(!0),c==null||c(!0),m==null||m(w)},[y,x,S,i,g,c,m]),G=l.useCallback(w=>{var C;if(!y){if((w.key===" "||w.key==="Spacebar")&&(w.preventDefault(),w.stopPropagation(),x&&i!==void 0?g==null||g.onValueChange(i):S||v(!0),c==null||c(!0)),x&&g){const j=w.currentTarget,k=Array.from(((C=j.parentElement)==null?void 0:C.querySelectorAll('[role="radio"]:not([disabled])'))||[]),L=k.findIndex(me=>me===j);let J=L;g.orientation==="horizontal"&&(w.key==="ArrowLeft"?(w.preventDefault(),J=L>0?L-1:k.length-1):w.key==="ArrowRight"&&(w.preventDefault(),J=L<k.length-1?L+1:0)),w.key==="ArrowUp"?(w.preventDefault(),J=L>0?L-1:k.length-1):w.key==="ArrowDown"&&(w.preventDefault(),J=L<k.length-1?L+1:0),g.orientation==="vertical"&&(w.key==="ArrowLeft"||w.key==="ArrowRight")&&(w.preventDefault(),w.key==="ArrowLeft"?J=L>0?L-1:k.length-1:J=L<k.length-1?L+1:0);const xe=k[J];if(J!==L&&xe){xe.focus();const me=xe.getAttribute("data-value");me&&g&&g.onValueChange(me)}}p==null||p(w)}},[y,x,S,i,g,c,p]),z=E(Vn({variant:r,size:$,state:A}),e),X=t.RADIO_TOKENS.dot.size[$],U=()=>_?u||o.jsx("span",{className:E(X,t.RADIO_TOKENS.dot.radius,y?t.RADIO_TOKENS.dot.color.disabled:t.RADIO_TOKENS.dot.color.default,"block"),"aria-hidden":"true"}):null;return o.jsx("button",{type:"button",role:"radio","aria-checked":_,"aria-disabled":y,"aria-invalid":V,"aria-label":N,"aria-labelledby":f,"aria-describedby":O,tabIndex:M,disabled:y,"data-value":i,name:g==null?void 0:g.name,className:z,onClick:Y,onKeyDown:G,ref:h,...T,children:U()})});Mn.displayName="Radio";const Ne=l.forwardRef(({children:e,container:r,className:n,style:s},a)=>{const[d,i]=l.useState(!1);if(l.useEffect(()=>{i(!0)},[]),!d||typeof window>"u")return null;const c=r||document.body;return c?Nn.createPortal(o.jsx("div",{ref:a,className:E(n),style:s,children:e}),c):null});Ne.displayName="Portal";const kn=K.cva(`flex ${t.INPUT_TOKENS.width.full} items-center justify-between ${t.INPUT_TOKENS.shadow} ${t.MOTION_TOKENS.transition.colors} disabled:cursor-not-allowed focus-visible:outline-none`,{variants:{variant:{primary:`${t.INPUT_TOKENS.variant.primary.border} ${t.INPUT_TOKENS.variant.primary.background} ${t.INPUT_TOKENS.variant.primary.text} ${t.INPUT_TOKENS.variant.primary.focus}`,secondary:`${t.INPUT_TOKENS.variant.secondary.border} ${t.INPUT_TOKENS.variant.secondary.background} ${t.INPUT_TOKENS.variant.secondary.text} ${t.INPUT_TOKENS.variant.secondary.focus}`,outline:`${t.INPUT_TOKENS.variant.outline.border} ${t.INPUT_TOKENS.variant.outline.background} ${t.INPUT_TOKENS.variant.outline.text} ${t.INPUT_TOKENS.variant.outline.focus}`,ghost:`${t.INPUT_TOKENS.variant.ghost.border} ${t.INPUT_TOKENS.variant.ghost.background} ${t.INPUT_TOKENS.variant.ghost.text} ${t.INPUT_TOKENS.variant.ghost.focus}`},size:{xs:`${t.INPUT_TOKENS.size.xs.height} ${t.INPUT_TOKENS.size.xs.padding.horizontal} ${t.INPUT_TOKENS.size.xs.padding.vertical} ${t.INPUT_TOKENS.size.xs.radius} ${t.INPUT_TOKENS.size.xs.fontSize}`,sm:`${t.INPUT_TOKENS.size.sm.height} ${t.INPUT_TOKENS.size.sm.padding.horizontal} ${t.INPUT_TOKENS.size.sm.padding.vertical} ${t.INPUT_TOKENS.size.sm.radius} ${t.INPUT_TOKENS.size.sm.fontSize}`,md:`${t.INPUT_TOKENS.size.md.height} ${t.INPUT_TOKENS.size.md.padding.horizontal} ${t.INPUT_TOKENS.size.md.padding.vertical} ${t.INPUT_TOKENS.size.md.radius} ${t.INPUT_TOKENS.size.md.fontSize} ${t.INPUT_TOKENS.size.md.fontSizeResponsive}`,lg:`${t.INPUT_TOKENS.size.lg.height} ${t.INPUT_TOKENS.size.lg.padding.horizontal} ${t.INPUT_TOKENS.size.lg.padding.vertical} ${t.INPUT_TOKENS.size.lg.radius} ${t.INPUT_TOKENS.size.lg.fontSize}`},state:{open:t.INPUT_TOKENS.state.border.focus,closed:"",disabled:`${t.INPUT_TOKENS.state.border.disabled} ${t.INPUT_TOKENS.state.background.disabled} ${t.INPUT_TOKENS.state.text.disabled}`}},defaultVariants:{variant:"outline",size:"md",state:"closed"}}),Pn=K.cva(`relative z-50 min-w-[8rem] overflow-hidden ${t.INPUT_TOKENS.selectListbox.radius} ${t.INPUT_TOKENS.selectListbox.border} ${t.INPUT_TOKENS.selectListbox.background} ${t.INPUT_TOKENS.selectListbox.text} ${t.INPUT_TOKENS.selectListbox.shadow} ${t.MOTION_TOKENS.transition.colors}`,{variants:{size:{xs:t.TEXT_TOKENS.fontSize.xs,sm:t.TEXT_TOKENS.fontSize.sm,md:t.TEXT_TOKENS.fontSize.sm,lg:t.TEXT_TOKENS.fontSize.md}},defaultVariants:{size:"md"}}),Dn=K.cva(`relative flex ${t.INPUT_TOKENS.width.full} cursor-default select-none items-center outline-none ${t.MOTION_TOKENS.transition.colors} ${t.INPUT_TOKENS.selectOption.focus.background} ${t.INPUT_TOKENS.selectOption.focus.text} data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,{variants:{size:{xs:`${t.INPUT_TOKENS.size.xs.padding.horizontal} ${t.INPUT_TOKENS.size.xs.padding.vertical} ${t.INPUT_TOKENS.size.xs.fontSize}`,sm:`${t.INPUT_TOKENS.size.sm.padding.horizontal} ${t.INPUT_TOKENS.size.sm.padding.vertical} ${t.INPUT_TOKENS.size.sm.fontSize}`,md:`${t.INPUT_TOKENS.size.sm.padding.horizontal} ${t.INPUT_TOKENS.size.sm.padding.vertical} ${t.INPUT_TOKENS.size.sm.fontSize}`,lg:`${t.INPUT_TOKENS.size.md.padding.horizontal} ${t.INPUT_TOKENS.size.sm.padding.vertical} ${t.INPUT_TOKENS.size.md.fontSize}`},state:{selected:`${t.INPUT_TOKENS.selectOption.selected.background} ${t.INPUT_TOKENS.selectOption.selected.text}`,default:"",disabled:"pointer-events-none opacity-50"}},defaultVariants:{size:"md",state:"default"}}),Un=l.createContext(null);function Ht(){const e=l.useContext(Un);if(!e)throw new Error("Select components must be used within SelectRoot");return e}function Xt({value:e,defaultValue:r,onValueChange:n,disabled:s=!1,open:a,onOpenChange:d,defaultOpen:i=!1,children:c,variant:u="outline",size:N="md"}){const[f,O]=l.useState(r),[m,p]=l.useState(i),[T,h]=l.useState(null),[g,S]=l.useState([]),[x,b]=l.useState(new Map),I=l.useRef(`select-trigger-${Math.random().toString(36).substr(2,9)}`),v=l.useRef(`select-listbox-${Math.random().toString(36).substr(2,9)}`),_=e!==void 0,$=_?e:f,y=a!==void 0,V=y?a:m,A=l.useCallback(w=>{_||O(w),n==null||n(w),y?d==null||d(!1):p(!1)},[_,y,n,d]),M=l.useCallback(w=>{y||p(w),d==null||d(w),w||h(null)},[y,d]),Y=l.useCallback(w=>{S(C=>C.includes(w)?C:[...C,w])},[]),G=l.useCallback(w=>{S(C=>C.filter(j=>j!==w))},[]),z=l.useCallback((w,C)=>{b(j=>{const k=j.get(w);if(k&&k.label===C)return j;const L=new Map(j);return L.set(w,{label:C}),L})},[]),X=l.useCallback(w=>{b(C=>{if(!C.has(w))return C;const j=new Map(C);return j.delete(w),j})},[]),U=l.useMemo(()=>({value:$,onValueChange:A,open:V,onOpenChange:M,disabled:s,triggerId:I.current,listboxId:v.current,variant:u,size:N,focusedIndex:T,setFocusedIndex:h,itemIds:g,registerItem:Y,unregisterItem:G,options:x,registerOption:z,unregisterOption:X}),[$,A,V,M,s,u,N,T,g,Y,G,x,z,X]);return o.jsx(Un.Provider,{value:U,children:c})}Xt.displayName="SelectRoot";function vt(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Array.isArray(e))return e.map(vt).join("");if(l.isValidElement(e)){const r=e.props;if(r.children)return vt(r.children)}return""}const Ft=l.forwardRef(({className:e,variant:r,size:n,placeholder:s="Select an option...",...a},d)=>{const i=Ht(),{open:c,onOpenChange:u,listboxId:N}=i,f=l.useRef(null),O=l.useRef(null);l.useImperativeHandle(d,()=>f.current,[]),l.useEffect(()=>{if(typeof document>"u")return;const S=document.getElementById(N);S&&S instanceof HTMLDivElement&&(O.current=S)},[N,c]),l.useEffect(()=>{if(!c||!f.current||!O.current)return;const S=O.current,x=()=>{if(!f.current||!O.current)return;const I=f.current.getBoundingClientRect();S.style.position="fixed",S.style.top=`${I.bottom+4}px`,S.style.left=`${I.left}px`,S.style.width=`${I.width}px`,S.style.minWidth=`${I.width}px`},b=I=>{const v=I.target;f.current&&!f.current.contains(v)&&O.current&&!O.current.contains(v)&&u(!1)};return x(),window.addEventListener("scroll",x,!0),window.addEventListener("resize",x),document.addEventListener("mousedown",b),()=>{window.removeEventListener("scroll",x,!0),window.removeEventListener("resize",x),document.removeEventListener("mousedown",b)}},[c,u]);const m=r??i.variant,p=n??i.size,T=l.useCallback(S=>{var x;if(i.disabled){S.preventDefault();return}i.onOpenChange(!i.open),(x=a.onClick)==null||x.call(a,S)},[i,a]),h=l.useCallback(S=>{var x;i.disabled||(S.key==="Enter"||S.key===" "||S.key==="ArrowDown"?(S.preventDefault(),i.open||i.onOpenChange(!0)):S.key==="Escape"&&i.open&&(S.preventDefault(),i.onOpenChange(!1)),(x=a.onKeyDown)==null||x.call(a,S))},[i,a]),g=l.useMemo(()=>{if(!i.value)return s;const S=i.options.get(i.value);return(S==null?void 0:S.label)??s},[i.value,i.options,s]);return o.jsx(o.Fragment,{children:o.jsxs("button",{ref:f,type:"button",id:i.triggerId,disabled:i.disabled,"aria-haspopup":"listbox","aria-expanded":i.open,"aria-controls":i.open?i.listboxId:void 0,className:E(kn({variant:m,size:p,state:i.disabled?"disabled":i.open?"open":"closed"}),e),onClick:T,onKeyDown:h,...a,children:[o.jsx("span",{className:"truncate",children:g}),o.jsx(D.ChevronDown,{className:E("ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform",i.open&&"rotate-180"),"aria-hidden":"true"})]})})});Ft.displayName="SelectTrigger";const Wt=l.forwardRef(({className:e,size:r,children:n,onKeyDown:s,...a},d)=>{const i=Ht(),c=l.useRef(null);l.useImperativeHandle(d,()=>c.current,[]);const u=r??i.size,N=i.open,f=l.useMemo(()=>i.itemIds.filter(m=>{const p=document.getElementById(m);return p&&!p.hasAttribute("aria-disabled")}),[i.itemIds]);l.useEffect(()=>{i.open&&(i.focusedIndex===null||i.focusedIndex===-1)&&f.length>0&&i.setFocusedIndex(0)},[i.open,i.focusedIndex,f.length]),l.useLayoutEffect(()=>{if(!i.open)return;const m=i.focusedIndex??-1;if(m<0||m>=f.length)return;const p=f[m];if(!p)return;const T=document.getElementById(p);T&&(T.getAttribute("tabindex")==="-1"&&T.setAttribute("tabindex","0"),T.focus())},[i.open,i.focusedIndex,f]);const O=l.useCallback(m=>{if(!N){s==null||s(m);return}if(f.length===0){s==null||s(m);return}let p=i.focusedIndex??0;switch(m.key){case"ArrowDown":m.preventDefault(),p=Math.min(p+1,f.length-1),i.setFocusedIndex(p);break;case"ArrowUp":m.preventDefault(),p=Math.max(p-1,0),i.setFocusedIndex(p);break;case"Home":m.preventDefault(),p=0,i.setFocusedIndex(p);break;case"End":m.preventDefault(),p=f.length-1,i.setFocusedIndex(p);break;case"Enter":{m.preventDefault();const h=i.focusedIndex??0,g=f[h];if(g){const S=document.getElementById(g);if(S&&S.hasAttribute("data-value")){const x=S.getAttribute("data-value");x&&(i.onValueChange(x),i.onOpenChange(!1))}}break}case"Escape":m.preventDefault(),i.onOpenChange(!1);const T=document.getElementById(i.triggerId);T==null||T.focus();break;case"Tab":m.preventDefault(),i.onOpenChange(!1);break;default:s==null||s(m);break}},[N,i,s,f]);return l.useEffect(()=>()=>{if(typeof document<"u"){const m=document.getElementById(i.listboxId);m&&m.parentNode&&m.parentNode.removeChild(m)}},[i.listboxId]),o.jsx(Ne,{children:o.jsx("div",{ref:c,id:N?i.listboxId:void 0,role:N?"listbox":void 0,"aria-labelledby":N?i.triggerId:void 0,"aria-hidden":N?void 0:"true",hidden:!N,className:E(Pn({size:u}),e),onKeyDown:O,...a,children:n})})});Wt.displayName="SelectListbox";const Yt=l.forwardRef(({className:e,value:r,label:n,disabled:s=!1,size:a,children:d,onClick:i,onKeyDown:c,...u},N)=>{const f=Ht(),O=l.useRef(null),m=l.useRef(`select-option-${Math.random().toString(36).substr(2,9)}`);l.useImperativeHandle(N,()=>O.current,[]),l.useEffect(()=>{const _=m.current;return f.registerItem(_),()=>{f.unregisterItem(_)}},[]);const p=l.useRef(f.registerOption),T=l.useRef(f.unregisterOption);p.current=f.registerOption,T.current=f.unregisterOption,l.useLayoutEffect(()=>{const _=typeof n=="string"?n:vt(d)||String(r);return p.current(r,_),()=>{T.current(r)}},[r,n,d]);const h=l.useMemo(()=>{if(s||f.disabled)return-1;const _=f.itemIds.indexOf(m.current);if(_<0)return-1;let $=0;for(let y=0;y<_;y++){const V=f.itemIds[y];if(!V)continue;const A=document.getElementById(V);A&&!A.hasAttribute("aria-disabled")&&$++}return $},[f.itemIds,s,f.disabled]),g=f.focusedIndex!==null&&f.focusedIndex===h&&h>=0,S=f.value===r,x=a??f.size,b=l.useCallback(_=>{if(s||f.disabled){_.preventDefault();return}f.onValueChange(r),i==null||i(_)},[s,f,r,i]),I=l.useCallback(_=>{if(!(s||f.disabled)){if(_.key==="Enter"||_.key===" "){_.preventDefault(),f.onValueChange(r);return}c==null||c(_)}},[s,f,r,c]);l.useEffect(()=>{S&&f.open&&O.current&&!s&&!f.disabled&&queueMicrotask(()=>{O.current&&(O.current.focus(),f.setFocusedIndex(h))})},[f.open,S,h,s,f]);const v=g;return o.jsx("div",{ref:O,id:m.current,role:"option",tabIndex:v?0:-1,"aria-selected":v?"true":"false","aria-disabled":s||f.disabled,"data-disabled":s||f.disabled,"data-value":r,className:E(Dn({size:x,state:S?"selected":s||f.disabled?"disabled":"default"}),e),onClick:b,onKeyDown:I,onFocus:()=>{!s&&!f.disabled&&f.setFocusedIndex(h)},...u,children:n??d??r})});Yt.displayName="SelectOption";const Sa={Root:Xt,Trigger:Ft,Listbox:Wt,Option:Yt},Ln=K.cva(`flex min-h-[80px] ${t.INPUT_TOKENS.shadow} ${t.MOTION_TOKENS.transition.colors} disabled:cursor-not-allowed focus-visible:outline-none resize-y`,{variants:{variant:{primary:`${t.INPUT_TOKENS.variant.primary.border} ${t.INPUT_TOKENS.variant.primary.background} ${t.INPUT_TOKENS.variant.primary.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.primary.focus}`,secondary:`${t.INPUT_TOKENS.variant.secondary.border} ${t.INPUT_TOKENS.variant.secondary.background} ${t.INPUT_TOKENS.variant.secondary.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.secondary.focus}`,outline:`${t.INPUT_TOKENS.variant.outline.border} ${t.INPUT_TOKENS.variant.outline.background} ${t.INPUT_TOKENS.variant.outline.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.outline.focus}`,ghost:`${t.INPUT_TOKENS.variant.ghost.border} ${t.INPUT_TOKENS.variant.ghost.background} ${t.INPUT_TOKENS.variant.ghost.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.ghost.focus}`,destructive:`${t.INPUT_TOKENS.variant.destructive.border} ${t.INPUT_TOKENS.variant.destructive.background} ${t.INPUT_TOKENS.variant.destructive.text} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.variant.destructive.focus}`},size:{xs:`${t.INPUT_TOKENS.size.xs.padding.horizontal} ${t.INPUT_TOKENS.size.xs.padding.vertical} ${t.INPUT_TOKENS.size.xs.radius} ${t.INPUT_TOKENS.size.xs.fontSize}`,sm:`${t.INPUT_TOKENS.size.sm.padding.horizontal} ${t.INPUT_TOKENS.size.sm.padding.vertical} ${t.INPUT_TOKENS.size.sm.radius} ${t.INPUT_TOKENS.size.sm.fontSize}`,md:`${t.INPUT_TOKENS.size.md.padding.horizontal} ${t.INPUT_TOKENS.size.md.padding.vertical} ${t.INPUT_TOKENS.size.md.radius} ${t.INPUT_TOKENS.size.md.fontSize} ${t.INPUT_TOKENS.size.md.fontSizeResponsive}`,lg:`${t.INPUT_TOKENS.size.lg.padding.horizontal} ${t.INPUT_TOKENS.size.lg.padding.vertical} ${t.INPUT_TOKENS.size.lg.radius} ${t.INPUT_TOKENS.size.lg.fontSize}`,xl:`${t.INPUT_TOKENS.size.xl.padding.horizontal} ${t.INPUT_TOKENS.size.xl.padding.vertical} ${t.INPUT_TOKENS.size.xl.radius} ${t.INPUT_TOKENS.size.xl.fontSize}`},state:{default:`${t.INPUT_TOKENS.state.border.default} ${t.INPUT_TOKENS.state.background.default} ${t.INPUT_TOKENS.state.text.default} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.state.border.focus}`,error:`${t.INPUT_TOKENS.state.border.error} ${t.INPUT_TOKENS.state.background.default} ${t.INPUT_TOKENS.state.text.default} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.state.border.focus}`,success:`${t.INPUT_TOKENS.state.border.success} ${t.INPUT_TOKENS.state.background.default} ${t.INPUT_TOKENS.state.text.default} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.state.border.focus}`,disabled:`${t.INPUT_TOKENS.state.border.disabled} ${t.INPUT_TOKENS.state.background.disabled} ${t.INPUT_TOKENS.state.text.default} ${t.INPUT_TOKENS.state.text.placeholder} ${t.INPUT_TOKENS.state.text.disabled}`},fullWidth:{true:t.INPUT_TOKENS.width.full,false:""}},defaultVariants:{variant:"outline",size:"md",state:"default",fullWidth:!0}}),Bn=l.forwardRef(({className:e,variant:r,size:n,state:s,fullWidth:a,disabled:d,maxLength:i,showCharacterCount:c=!1,value:u,defaultValue:N,"aria-invalid":f,"aria-describedby":O,...m},p)=>{const T=s==="error"||f===!0,h=d||s==="disabled",g=T?!0:f,S=l.useId(),[x]=l.useState(()=>{if(O)return O;if(s==="error"||s==="success")return`textarea-${S}-message`}),b=E(Ln({variant:r,size:n,state:s,fullWidth:a}),e),I=u??N??"",v=typeof I=="string"?I.length:0;return c&&i!==void 0?o.jsxs("div",{className:E("relative",a!==!1&&t.INPUT_TOKENS.width.full),children:[o.jsx("textarea",{className:b,ref:p,disabled:h,maxLength:i,value:u,defaultValue:N,"aria-invalid":g,"aria-describedby":x,...m}),o.jsxs("div",{className:E("absolute",t.INPUT_TOKENS.message.position.bottom,t.INPUT_TOKENS.message.position.right,t.TEXT_TOKENS.fontSize.xs,t.INPUT_TOKENS.message.color.default,v>i&&t.INPUT_TOKENS.message.color.error),children:[v," / ",i]})]}):o.jsx("textarea",{className:b,ref:p,disabled:h,maxLength:i,value:u,defaultValue:N,"aria-invalid":g,"aria-describedby":x,...m})});Bn.displayName="Textarea";function ha(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ea(e){if(e!=null)return ha(e)?e.base:e}function H(e){if(typeof e=="number")return e%1!==0?`var(--spacing-${e.toString().replace(".","-")})`:`var(--spacing-${e})`;if(e==="none")return"var(--spacing-none)";if(e.includes("-")&&!e.startsWith("--")){const r=e.split("-");if(r.length>=2){const n=r[0],s=r.slice(1).join("-");if(n&&["section","container","grid","stack","component"].includes(n))return`var(--layout-${n}-${s})`}}return`var(--spacing-${e})`}function xa(e){return`var(--radius-${e})`}function ba(e){return e.startsWith("hsl(")||e.startsWith("var(")?e:`var(--${e})`}function F(e){return Ea(e)}function Ia(e){if(!(!e||e==="none"))return`shadow-${e}`}function va(e){if(e){if(e==="inline")return"inline";if(e==="inline-block")return"inline-block";if(e==="flex")return"flex";if(e==="inline-flex")return"inline-flex";if(e==="grid")return"grid";if(e==="inline-grid")return"inline-grid";if(e==="block")return"block";if(e==="none")return"hidden"}}function _a(e){if(e){if(e==="row")return"flex-row";if(e==="column")return"flex-col";if(e==="row-reverse")return"flex-row-reverse";if(e==="column-reverse")return"flex-col-reverse"}}function Ka(e){if(e){if(e==="start")return"items-start";if(e==="end")return"items-end";if(e==="center")return"items-center";if(e==="baseline")return"items-baseline";if(e==="stretch")return"items-stretch"}}function wa(e){if(e){if(e==="start")return"justify-start";if(e==="end")return"justify-end";if(e==="center")return"justify-center";if(e==="between")return"justify-between";if(e==="around")return"justify-around";if(e==="evenly")return"justify-evenly"}}const q=l.forwardRef(({as:e="div",p:r,px:n,py:s,pt:a,pr:d,pb:i,pl:c,m:u,mx:N,my:f,mt:O,mr:m,mb:p,ml:T,display:h,flexDirection:g,radius:S,shadow:x,bg:b,gap:I,align:v,justify:_,className:$,style:y,...V},A)=>{const M=F(r),Y=F(n),G=F(s),z=F(a),X=F(d),U=F(i),w=F(c),C=F(u),j=F(N),k=F(f),L=F(O),J=F(m),xe=F(p),me=F(T),Hr=F(S),Xr=F(b),Fr=F(I),Wr={...M!==void 0&&{padding:H(M)},...!r&&Y!==void 0&&{paddingLeft:H(Y),paddingRight:H(Y)},...!r&&G!==void 0&&{paddingTop:H(G),paddingBottom:H(G)},...!r&&!s&&z!==void 0&&{paddingTop:H(z)},...!r&&!n&&X!==void 0&&{paddingRight:H(X)},...!r&&!s&&U!==void 0&&{paddingBottom:H(U)},...!r&&!n&&w!==void 0&&{paddingLeft:H(w)},...C!==void 0&&{margin:H(C)},...!u&&j!==void 0&&{marginLeft:H(j),marginRight:H(j)},...!u&&k!==void 0&&{marginTop:H(k),marginBottom:H(k)},...!u&&!f&&L!==void 0&&{marginTop:H(L)},...!u&&!N&&J!==void 0&&{marginRight:H(J)},...!u&&!f&&xe!==void 0&&{marginBottom:H(xe)},...!u&&!N&&me!==void 0&&{marginLeft:H(me)},...Hr!==void 0&&{borderRadius:xa(Hr)},...Xr!==void 0&&{backgroundColor:ba(Xr)},...Fr!==void 0&&{gap:H(Fr)},...y},fa=E(va(h),_a(g),Ka(v),wa(_),Ia(x),$),Na=e,ma=Object.keys(Wr).length>0||y?{...Wr,...y}:void 0;return o.jsx(Na,{ref:A,className:fa,style:ma,...V})});q.displayName="Box";const ae=l.forwardRef(({direction:e="vertical",spacing:r,gap:n,align:s,justify:a,...d},i)=>{const c=r??n;return o.jsx(q,{ref:i,display:"flex",flexDirection:e==="horizontal"?"row":"column",gap:c,align:s,justify:a,...d})});ae.displayName="Stack";const ya=ae;function De(e){if(e!=null){if(typeof e=="object"&&!Array.isArray(e)&&e!==null){if("base"in e&&e.base!==void 0)return e.base;if("sm"in e&&e.sm!==void 0)return e.sm;if("md"in e&&e.md!==void 0)return e.md;if("lg"in e&&e.lg!==void 0)return e.lg}return e}}function Aa(e){if(e){if(e==="row")return"flex-row";if(e==="column")return"flex-col";if(e==="row-reverse")return"flex-row-reverse";if(e==="column-reverse")return"flex-col-reverse"}}function Ca(e){if(e){if(e==="nowrap")return"flex-nowrap";if(e==="wrap")return"flex-wrap";if(e==="wrap-reverse")return"flex-wrap-reverse"}}function $a(e){if(e){if(e==="start")return"items-start";if(e==="end")return"items-end";if(e==="center")return"items-center";if(e==="baseline")return"items-baseline";if(e==="stretch")return"items-stretch"}}function Ra(e){if(e){if(e==="start")return"justify-start";if(e==="end")return"justify-end";if(e==="center")return"justify-center";if(e==="between")return"justify-between";if(e==="around")return"justify-around";if(e==="evenly")return"justify-evenly"}}function Va(e){if(!(e===void 0||e===!1||e===0)&&(e===!0||e===1))return"grow"}function ja(e){if(!(e===void 0||e===!1||e===0)&&(e===!0||e===1))return"shrink"}const Gn=l.forwardRef(({direction:e,wrap:r,grow:n,shrink:s,basis:a,align:d,justify:i,gap:c,className:u,style:N,...f},O)=>{const m=De(e),p=De(r),T=De(d),h=De(i),g=E(Aa(m),Ca(p),Va(n),ja(s),$a(T),Ra(h),u),S={...a?{flexBasis:a}:{},...N};return o.jsx(q,{ref:O,display:"flex",flexDirection:m,gap:c,className:g,style:Object.keys(S).length>0?S:void 0,...f})});Gn.displayName="Flex";function ye(e){if(e!=null){if(typeof e=="object"&&!Array.isArray(e)&&e!==null){if("base"in e&&e.base!==void 0)return e.base;if("sm"in e&&e.sm!==void 0)return e.sm;if("md"in e&&e.md!==void 0)return e.md;if("lg"in e&&e.lg!==void 0)return e.lg}return e}}function Te(e){if(e)return e==="none"?"grid-cols-none":`grid-cols-${e}`}function za(e){if(!(!e||e==="none"))return`grid-rows-${e}`}function Ma(e){if(e){if(e==="row")return"grid-flow-row";if(e==="col")return"grid-flow-col";if(e==="dense")return"grid-flow-dense";if(e==="row-dense")return"grid-flow-row-dense";if(e==="col-dense")return"grid-flow-col-dense"}}function ka(e){if(e){if(e==="start")return"items-start";if(e==="end")return"items-end";if(e==="center")return"items-center";if(e==="baseline")return"items-baseline";if(e==="stretch")return"items-stretch"}}function Pa(e){if(e){if(e==="start")return"justify-start";if(e==="end")return"justify-end";if(e==="center")return"justify-center";if(e==="between")return"justify-between";if(e==="around")return"justify-around";if(e==="evenly")return"justify-evenly"}}const Hn=l.forwardRef(({cols:e,sm:r,md:n,lg:s,xl:a,"2xl":d,rows:i,gap:c,flow:u,align:N,justify:f,className:O,...m},p)=>{let T=e;(r||n||s||a||d)&&(e!==void 0&&typeof e!="object"?T={base:e,...r&&{sm:r},...n&&{md:n},...s&&{lg:s},...a&&{xl:a},...d&&{"2xl":d}}:e===void 0?T={...r&&{sm:r},...n&&{md:n},...s&&{lg:s},...a&&{xl:a},...d&&{"2xl":d}}:T={...e,...r&&{sm:r},...n&&{md:n},...s&&{lg:s},...a&&{xl:a},...d&&{"2xl":d}});const h=ye(T),g=ye(i),S=ye(u),x=ye(N),b=ye(f),I=[];typeof T=="object"&&T!==null&&!Array.isArray(T)?(T.base!==void 0&&I.push(Te(T.base)||""),T.sm!==void 0&&I.push(`sm:${Te(T.sm)||""}`),T.md!==void 0&&I.push(`md:${Te(T.md)||""}`),T.lg!==void 0&&I.push(`lg:${Te(T.lg)||""}`),T.xl!==void 0&&I.push(`xl:${Te(T.xl)||""}`),T["2xl"]!==void 0&&I.push(`2xl:${Te(T["2xl"])||""}`)):h!==void 0&&I.push(Te(h)||"");const v=E(I,za(g),Ma(S),ka(x),Pa(b),O);return o.jsx(q,{ref:p,display:"grid",gap:c,className:v,...m})});Hn.displayName="Grid";const et=l.forwardRef(({gap:e,align:r,justify:n,...s},a)=>o.jsx(q,{ref:a,display:"flex",flexDirection:"row",gap:e,align:r,justify:n,...s}));et.displayName="Row";const Xn=K.cva("",{variants:{variant:{flat:"bg-background border border-border shadow-none",raised:"bg-card border border-border shadow-sm",sunken:"bg-muted border border-border shadow-none"}},defaultVariants:{variant:"flat"}}),Fn=l.forwardRef(({variant:e,radius:r,className:n,...s},a)=>o.jsx(q,{ref:a,className:E(Xn({variant:e}),n),radius:r,...s}));Fn.displayName="Surface";const Wn=K.cva(`${t.TEXT_TOKENS.fontSize.sm} ${t.TEXT_TOKENS.fontWeight.medium} ${t.TEXT_TOKENS.lineHeight.none} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),qt=l.forwardRef(({className:e,required:r,children:n,...s},a)=>o.jsxs(mn.Root,{ref:a,className:E(Wn(),e),...s,children:[n,r&&o.jsx("span",{className:E(t.INPUT_TOKENS.label.requiredMark,"ml-xs"),children:"*"})]}));qt.displayName=mn.Root.displayName;const Yn=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx(ae,{ref:s,gap:"sm",className:E(e),...n,children:r}));Yn.displayName="Field";const qn=l.forwardRef(({className:e,...r},n)=>o.jsx(qt,{ref:n,className:e,...r}));qn.displayName="FieldLabel";const Qn=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx("div",{ref:s,className:E(e),...n,children:r}));Qn.displayName="FieldControl";const Zn=l.forwardRef(({className:e,...r},n)=>o.jsx(W,{ref:n,size:"sm",muted:!0,className:E(e),...r}));Zn.displayName="FieldDescription";const Jn=l.forwardRef(({className:e,...r},n)=>o.jsx(W,{ref:n,size:"sm",className:E("text-destructive",e),...r}));Jn.displayName="FieldError";const $e=Yn;$e.Label=qn;$e.Control=Qn;$e.Description=Zn;$e.Error=Jn;const Re=l.forwardRef(({size:e="md",radius:r,shadow:n,p:s,className:a,...d},i)=>{const c=t.CARD_TOKENS.size[e],u=r??c.radius.replace("rounded-",""),N=c.shadow,f=N==="shadow"?"xs":N.replace("shadow-",""),O=n??f,m=s??c.padding.replace("p-","");return o.jsx(q,{ref:i,className:E("border border-border bg-card text-card-foreground",a),radius:u,shadow:O,p:m,...d})});Re.displayName="Card";const Qt=l.forwardRef(({size:e="md",p:r,className:n,...s},a)=>{const d=t.CARD_TOKENS.size[e],i=r??d.padding.replace("p-",""),c=d.spacing.vertical.replace("space-y-","");return o.jsx(ae,{ref:a,gap:c,className:E(n),p:i,...s})});Qt.displayName="CardHeader";const Zt=l.forwardRef(({size:e="md",p:r,className:n,...s},a)=>{const d=t.CARD_TOKENS.size[e],i=r??d.padding.replace("p-","");return o.jsx(q,{ref:a,className:E(n),p:i,...s})});Zt.displayName="CardBody";const Jt=l.forwardRef(({size:e="md",p:r,className:n,...s},a)=>{const d=t.CARD_TOKENS.size[e],i=r??d.padding.replace("p-","");return o.jsx(et,{ref:a,className:E("items-center",n),p:i,...s})});Jt.displayName="CardFooter";Re.Header=Qt;Re.Body=Zt;Re.Footer=Jt;const es=l.forwardRef(({padding:e="md",gap:r,className:n,as:s,...a},d)=>{const c=t.SECTION_TOKENS.padding[e].replace("py-",""),u=r?t.SECTION_TOKENS.spacing[r].replace("gap-",""):void 0;return o.jsx(ae,{ref:d,as:s??"section",py:c,gap:u,className:E("w-full",n),...a})});es.displayName="Section";const ts=K.cva("",{variants:{variant:{flat:`${t.SURFACE_TOKENS.variant.flat.bg} ${t.SURFACE_TOKENS.variant.flat.border} ${t.SURFACE_TOKENS.variant.flat.shadow}`,raised:`${t.SURFACE_TOKENS.variant.raised.bg} ${t.SURFACE_TOKENS.variant.raised.border} ${t.SURFACE_TOKENS.variant.raised.shadow}`,sunken:`${t.SURFACE_TOKENS.variant.sunken.bg} ${t.SURFACE_TOKENS.variant.sunken.border} ${t.SURFACE_TOKENS.variant.sunken.shadow}`,outline:`${t.SURFACE_TOKENS.variant.outline.bg} ${t.SURFACE_TOKENS.variant.outline.border} ${t.SURFACE_TOKENS.variant.outline.shadow}`,subtle:`${t.SURFACE_TOKENS.variant.subtle.bg} ${t.SURFACE_TOKENS.variant.subtle.border} ${t.SURFACE_TOKENS.variant.subtle.shadow}`}},defaultVariants:{variant:"flat"}}),tt=l.forwardRef(({variant:e="flat",p:r,radius:n,className:s,...a},d)=>{const c=t.SURFACE_TOKENS.variant[e].padding.replace("p-",""),N=t.SURFACE_TOKENS.variant[e].radius.replace("rounded-",""),f=r??c,O=n??N;return o.jsx(q,{ref:d,className:E(ts({variant:e}),s),p:f,radius:O,...a})});tt.displayName="Surface";const Da=K.cva("fixed inset-0 z-40 transition-opacity",{variants:{variant:{default:`${t.OVERLAY_TOKENS.backdrop.default.bg} ${t.OVERLAY_TOKENS.backdrop.default.opacity}`,blurred:`${t.OVERLAY_TOKENS.backdrop.blurred.bg} ${t.OVERLAY_TOKENS.backdrop.blurred.opacity} ${t.OVERLAY_TOKENS.backdrop.blurred.backdropFilter}`,transparent:`${t.OVERLAY_TOKENS.backdrop.transparent.bg} ${t.OVERLAY_TOKENS.backdrop.transparent.opacity}`}},defaultVariants:{variant:"default"}}),rt=l.forwardRef(({variant:e="default",isVisible:r=!0,onClick:n,className:s,...a},d)=>o.jsx("div",{ref:d,className:E(Da({variant:e}),r?"tm-motion-fade-in opacity-100":"tm-motion-fade-out opacity-0",s),onClick:n,"aria-hidden":"true",...a}));rt.displayName="Backdrop";function Ua(e){const r=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");return Array.from(e.querySelectorAll(r)).filter(n=>!n.hasAttribute("disabled")&&n.offsetParent!==null)}function rs({containerRef:e,enabled:r,returnFocusRef:n,additionalFocusableElements:s=[]}){const a=l.useRef(null);l.useEffect(()=>{if(!r||!e.current)return;const d=e.current,i=document.activeElement;i&&d.contains(i),a.current=i;const c=[...Ua(d),...s].filter(Boolean);if(c.length===0)return;const u=c[0],N=c[c.length-1];u==null||u.focus();function f(m){var h,g;if(m.key!=="Tab")return;const p=m.shiftKey,T=c.indexOf(document.activeElement);if(p&&document.activeElement===u)m.preventDefault(),N==null||N.focus();else if(!p&&document.activeElement===N)m.preventDefault(),u==null||u.focus();else if(!p&&T>=0&&T<c.length-1){const S=T+1;(h=c[S])==null||h.focus()}else if(p&&T>0){const S=T-1;(g=c[S])==null||g.focus()}}d.addEventListener("keydown",f);const O=n==null?void 0:n.current;return()=>{d.removeEventListener("keydown",f),O?O.focus():a.current&&a.current.focus()}},[r,e,n,s])}function La(){var s;if(typeof window>"u")return 0;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);const r=document.createElement("div");e.appendChild(r);const n=e.offsetWidth-r.offsetWidth;return(s=e.parentNode)==null||s.removeChild(e),n}function Ba({enabled:e}){const r=l.useRef(0),n=l.useRef(""),s=l.useRef("");l.useEffect(()=>{if(typeof window>"u"||!e)return;const{body:a}=document,d=document.documentElement;n.current=a.style.overflow,s.current=a.style.paddingRight;const i=La();return r.current=i,a.style.overflow="hidden",d.style.overflow="hidden",i>0&&(a.style.paddingRight=`${i}px`),()=>{a.style.overflow=n.current,d.style.overflow="",a.style.paddingRight=s.current}},[e])}const ns=K.cva(`fixed z-50 flex flex-col transform ${t.OVERLAY_TOKENS.modal.surface.primary.bg} ${t.OVERLAY_TOKENS.modal.surface.primary.border} ${t.OVERLAY_TOKENS.modal.position.center} ${t.MOTION_TOKENS.transition.all}`,{variants:{size:{sm:`${t.OVERLAY_TOKENS.modal.maxWidth.sm} ${t.OVERLAY_TOKENS.modal.radius.sm} ${t.OVERLAY_TOKENS.modal.padding.sm} ${t.OVERLAY_TOKENS.modal.shadow.sm}`,md:`${t.OVERLAY_TOKENS.modal.maxWidth.md} ${t.OVERLAY_TOKENS.modal.radius.md} ${t.OVERLAY_TOKENS.modal.padding.md} ${t.OVERLAY_TOKENS.modal.shadow.md}`,lg:`${t.OVERLAY_TOKENS.modal.maxWidth.lg} ${t.OVERLAY_TOKENS.modal.radius.lg} ${t.OVERLAY_TOKENS.modal.padding.lg} ${t.OVERLAY_TOKENS.modal.shadow.lg}`,fullscreen:`${t.OVERLAY_TOKENS.modal.maxWidth.fullscreen} ${t.OVERLAY_TOKENS.modal.radius.fullscreen} ${t.OVERLAY_TOKENS.modal.padding.lg} ${t.OVERLAY_TOKENS.modal.shadow.lg}`}},defaultVariants:{size:"md"}}),_t=l.forwardRef(({open:e,onClose:r,size:n="md",backdropVariant:s="default",closeOnBackdropClick:a=!0,closeOnEscape:d=!0,returnFocusRef:i,children:c,className:u,...N},f)=>{const O=l.useRef(null),m=l.useRef(null);l.useEffect(()=>{f&&(typeof f=="function"?f(m.current):f.current=m.current)},[f]),l.useEffect(()=>{m.current=O.current},[]),rs({containerRef:O,enabled:e,returnFocusRef:i}),Ba({enabled:e}),l.useEffect(()=>{if(!e||!d)return;function T(h){h.key==="Escape"&&r()}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[e,d,r]);const p=l.useCallback(T=>{a&&T.target===T.currentTarget&&r()},[a,r]);return e?o.jsx(Ne,{children:o.jsxs("div",{className:t.OVERLAY_TOKENS.modal.container.layout,onClick:p,children:[o.jsx(rt,{variant:s,isVisible:e}),o.jsx("div",{ref:O,className:E(ns({size:n}),e?"tm-motion-fade-scale":"tm-motion-fade-scale-out",u),role:"dialog","aria-modal":"true",onClick:T=>T.stopPropagation(),...N,children:c})]})}):null});_t.displayName="ModalContent";const er=l.forwardRef(({className:e,...r},n)=>o.jsx("div",{ref:n,className:E("flex flex-col",t.OVERLAY_TOKENS.modal.spacing.header.marginBottom,t.OVERLAY_TOKENS.modal.spacing.header.gap,e),...r}));er.displayName="ModalHeader";const tr=l.forwardRef(({className:e,...r},n)=>o.jsx("div",{ref:n,className:E(t.OVERLAY_TOKENS.modal.spacing.body.layout,e),...r}));tr.displayName="ModalBody";const rr=l.forwardRef(({className:e,...r},n)=>o.jsx("div",{ref:n,className:E("flex flex-col-reverse sm:flex-row sm:justify-end",t.OVERLAY_TOKENS.modal.spacing.footer.marginTop,t.OVERLAY_TOKENS.modal.spacing.footer.gap,e),...r}));rr.displayName="ModalFooter";const ss=Object.assign(_t,{Content:_t,Header:er,Body:tr,Footer:rr}),Ge=l.forwardRef(({titleId:e,descriptionId:r,children:n,...s},a)=>{const d=l.useId(),i=l.useId(),c=e||d,u=r||i;return o.jsx(ss,{ref:a,...s,"aria-labelledby":c,"aria-describedby":u,children:l.Children.map(n,N=>l.isValidElement(N)?l.cloneElement(N,{titleId:c,descriptionId:u}):N)})});Ge.displayName="DialogRoot";const nr=l.forwardRef(({className:e,...r},n)=>o.jsx("div",{ref:n,className:E("flex flex-col",t.OVERLAY_TOKENS.modal.spacing.header.marginBottom,t.OVERLAY_TOKENS.modal.spacing.header.gap,e),...r}));nr.displayName="DialogHeader";const sr=l.forwardRef(({titleId:e,className:r,children:n,...s},a)=>o.jsx(Se,{ref:a,as:"h2",level:4,weight:"semibold",id:e,className:E(r),...s,children:n}));sr.displayName="DialogTitle";const ar=l.forwardRef(({descriptionId:e,className:r,children:n,...s},a)=>o.jsx("p",{ref:a,id:e,className:E(t.TEXT_TOKENS.fontSize.sm,t.ICON_TOKENS.colors.muted,r),...s,children:n}));ar.displayName="DialogDescription";const or=l.forwardRef(({className:e,...r},n)=>o.jsx("div",{ref:n,className:E(t.OVERLAY_TOKENS.modal.spacing.body.layout,e),...r}));or.displayName="DialogBody";const ir=l.forwardRef(({className:e,...r},n)=>o.jsx(et,{ref:n,justify:"end",gap:"sm",className:E(t.OVERLAY_TOKENS.modal.spacing.footer.marginTop,e),...r}));ir.displayName="DialogFooter";const Ga=Object.assign(Ge,{Root:Ge,Header:nr,Title:sr,Description:ar,Body:or,Footer:ir});function as(e={}){const{threshold:r=50,velocityThreshold:n=.1,directions:s=["left","right","up","down"],onSwipe:a,enabled:d=!0}=e,[i,c]=ie.useState(!1),[u,N]=ie.useState(0),[f,O]=ie.useState(null),m=ie.useRef(null),p=ie.useRef(null);return ie.useEffect(()=>{if(typeof window>"u"||!d)return;const T=p.current;if(!T)return;const h=b=>{b.pointerType==="mouse"&&b.button!==0||(m.current={x:b.clientX,y:b.clientY,time:Date.now()},c(!0),N(0),O(null),T.setPointerCapture(b.pointerId))},g=b=>{if(!m.current)return;const I=b.clientX-m.current.x,v=b.clientY-m.current.y,_=Math.abs(I),$=Math.abs(v);let y=null,V=0;_>$?(V=_,I>0&&s.includes("right")?y="right":I<0&&s.includes("left")&&(y="left")):(V=$,v>0&&s.includes("down")?y="down":v<0&&s.includes("up")&&(y="up")),N(V),O(y)},S=b=>{if(!m.current)return;const I=b.clientX-m.current.x,v=b.clientY-m.current.y,_=Math.abs(I),$=Math.abs(v),y=Date.now()-m.current.time,V=Math.max(_,$)/y;let A=null,M=0;_>$?(M=_,I>0&&s.includes("right")?A="right":I<0&&s.includes("left")&&(A="left")):(M=$,v>0&&s.includes("down")?A="down":v<0&&s.includes("up")&&(A="up")),A&&M>=r&&V>=n&&(a==null||a({direction:A,distance:M,velocity:V})),m.current=null,c(!1),N(0),O(null),T.releasePointerCapture(b.pointerId)},x=b=>{m.current=null,c(!1),N(0),O(null),T.releasePointerCapture(b.pointerId)};return T.addEventListener("pointerdown",h),T.addEventListener("pointermove",g),T.addEventListener("pointerup",S),T.addEventListener("pointercancel",x),()=>{T.removeEventListener("pointerdown",h),T.removeEventListener("pointermove",g),T.removeEventListener("pointerup",S),T.removeEventListener("pointercancel",x)}},[r,n,s,a,d]),{isSwiping:i,distance:u,direction:f,handlers:{ref:T=>{p.current=T}}}}const Ha=K.cva(`group pointer-events-auto relative flex items-center justify-between overflow-hidden border ${t.TOAST_TOKENS.width.full} ${t.TOAST_TOKENS.spacing.gap} ${t.MOTION_TOKENS.transition.all}`,{variants:{variant:{default:`${t.TOAST_TOKENS.surface.default} ${t.TOAST_TOKENS.radius.default} ${t.TOAST_TOKENS.shadow.default} ${t.TOAST_TOKENS.spacing.padding}`,success:`${t.TOAST_TOKENS.surface.success} ${t.TOAST_TOKENS.radius.default} ${t.TOAST_TOKENS.shadow.default} ${t.TOAST_TOKENS.spacing.padding}`,info:`${t.TOAST_TOKENS.surface.info} ${t.TOAST_TOKENS.radius.default} ${t.TOAST_TOKENS.shadow.default} ${t.TOAST_TOKENS.spacing.padding}`,warning:`${t.TOAST_TOKENS.surface.warning} ${t.TOAST_TOKENS.radius.default} ${t.TOAST_TOKENS.shadow.default} ${t.TOAST_TOKENS.spacing.padding}`,danger:`${t.TOAST_TOKENS.surface.danger} ${t.TOAST_TOKENS.radius.default} ${t.TOAST_TOKENS.shadow.default} ${t.TOAST_TOKENS.spacing.padding}`}},defaultVariants:{variant:"default"}}),lr=l.forwardRef(({toast:e,onDismiss:r,isVisible:n=!0,variant:s,className:a,...d},i)=>{const c=s||e.variant||"default",u=c==="danger"?"assertive":"polite",{handlers:N}=as({directions:["left","right"],threshold:50,onSwipe:()=>{r(e.id)},enabled:n}),f=l.useCallback(O=>{typeof i=="function"?i(O):i&&(i.current=O),N.ref&&N.ref(O)},[i,N]);return o.jsxs("div",{...N,ref:f,className:E(Ha({variant:c}),n?"tm-motion-fade-slide-right":"tm-motion-fade-slide-left-out",a),role:"alert","aria-live":u,...d,children:[o.jsx("div",{className:E(t.TOAST_TOKENS.content.layout,t.TOAST_TOKENS.content.gap),children:o.jsxs("div",{className:E("flex-1",t.TOAST_TOKENS.content.verticalSpacing),children:[e.title&&o.jsx("div",{className:E(t.TOAST_TOKENS.title.fontSize,t.TOAST_TOKENS.title.fontWeight),children:e.title}),e.description&&o.jsx("div",{className:E(t.TOAST_TOKENS.description.fontSize,t.TOAST_TOKENS.description.opacity),children:e.description}),e.action&&o.jsx("div",{className:"mt-sm",children:o.jsx(ne,{variant:"outline",size:"sm",onClick:e.action.onClick,className:E(t.TOAST_TOKENS.action.height,t.TOAST_TOKENS.action.padding,t.TOAST_TOKENS.action.fontSize),children:e.action.label})})]})}),o.jsx(ne,{variant:"ghost",size:"icon",className:E(t.TOAST_TOKENS.dismiss.position,t.TOAST_TOKENS.dismiss.size,t.TOAST_TOKENS.dismiss.radius,t.TOAST_TOKENS.dismiss.padding,t.TOAST_TOKENS.dismiss.colors.default,t.TOAST_TOKENS.dismiss.states.default,t.MOTION_TOKENS.transition.opacity,t.TOAST_TOKENS.dismiss.colors.hover,t.TOAST_TOKENS.dismiss.states.groupHover,t.TOAST_TOKENS.dismiss.states.focus,t.TOAST_TOKENS.dismiss.states.focusRing),onClick:()=>r(e.id),"aria-label":"Dismiss toast",children:o.jsx(D.X,{className:"h-4 w-4"})})]})});lr.displayName="Toast";const Xa={"top-left":"fixed top-md left-md z-[100] flex flex-col gap-sm","top-center":"fixed top-md inset-x-0 z-[100] flex flex-col items-center gap-sm","top-right":"fixed top-md right-md z-[100] flex flex-col gap-sm","bottom-left":"fixed bottom-md left-md z-[100] flex flex-col-reverse gap-sm","bottom-center":"fixed bottom-md inset-x-0 z-[100] flex flex-col-reverse items-center gap-sm","bottom-right":"fixed bottom-md right-md z-[100] flex flex-col-reverse gap-sm"},dr=l.forwardRef(({position:e="top-right",children:r,className:n},s)=>o.jsx(Ne,{children:o.jsx("div",{ref:s,className:E(Xa[e],"max-h-screen w-full max-w-md overflow-hidden p-0",n),style:{pointerEvents:"none"},"aria-live":"polite","aria-label":"Notifications",children:o.jsx("div",{className:"pointer-events-auto flex flex-col gap-sm",style:{pointerEvents:"auto"},children:r})})}));dr.displayName="ToastViewport";const os=l.createContext(void 0);function Fa({children:e,position:r="top-right",maxVisible:n=3,groupBy:s}){const[a,d]=l.useState([]),[i,c]=l.useState([]),u=l.useCallback(g=>{d(S=>{const x=S.filter(b=>b.id!==g);return x.length<n&&c(b=>{if(b.length>0){const I=b[0];if(I)return setTimeout(()=>{d(v=>v.find(_=>_.id===I.id)?v:[...v,I])},0),b.slice(1)}return b}),x}),c(S=>S.filter(x=>x.id!==g))},[n]),N=l.useCallback(g=>{const S=Math.random().toString(36).substr(2,9),x={id:S,...g,duration:g.duration??5e3};return d(b=>{const I=[...b,x],v=I.length;if(v>n){const _=I.slice(-n),$=I.slice(0,v-n);return c(y=>[...y,...$]),_}return I}),x.duration&&x.duration>0&&setTimeout(()=>{u(S)},x.duration),S},[n,u]),f=l.useCallback(()=>{d([]),c([])},[]),O=l.useCallback((g,S)=>{d(x=>x.map(b=>b.id===g?{...b,...S}:b)),c(x=>x.map(b=>b.id===g?{...b,...S}:b))},[]),m=l.useCallback(()=>i,[i]),p=l.useCallback(()=>s?a.reduce((g,S)=>{const x=s(S);return g[x]||(g[x]=[]),g[x].push(S),g},{}):{default:a},[a,s]),T=l.useMemo(()=>({toast:N,dismiss:u,dismissAll:f,updateToast:O,getQueue:m,getGrouped:p}),[N,u,f,O,m,p]),h=a.slice(-n);return o.jsxs(os.Provider,{value:T,children:[e,o.jsx(dr,{position:r,children:h.map(g=>o.jsx(lr,{toast:g,onDismiss:u},g.id))})]})}function Wa(){const e=l.useContext(os);if(e===void 0)throw new Error("useToast must be used within a ToastProvider");return e}const is=l.createContext(void 0);function ls({children:e,maxHistory:r=100,persistent:n=!0}){const[s,a]=l.useState([]),[d,i]=l.useState([]),c=l.useCallback(b=>{a(I=>I.filter(v=>v.id!==b))},[]),u=l.useCallback(b=>{const I=Math.random().toString(36).substr(2,9),v=Date.now(),_=A=>A==="danger"?"error":A==="success"?"success":A==="warning"?"warning":A==="system"?"system":A==="log"?"log":"info",$=A=>A==="error"?"danger":A==="success"?"success":"default",y=b.channel||_(b.variant),V={id:I,...b,channel:y,variant:b.variant||$(y),timestamp:v,read:!1,persistent:b.persistent??!1,duration:b.duration??(b.persistent?0:5e3)};return a(A=>[...A,V]),n&&i(A=>[V,...A].slice(0,r)),V.duration&&V.duration>0&&setTimeout(()=>{a(A=>A.filter(M=>M.id!==I))},V.duration),I},[r,n]),N=l.useCallback(()=>{a([])},[]),f=l.useCallback(b=>{a(I=>I.filter(v=>v.channel!==b))},[]),O=l.useCallback(b=>s.reduce((I,v)=>{const _=b(v);return I[_]||(I[_]=[]),I[_].push(v),I},{}),[s]),m=l.useCallback(()=>d,[d]),p=l.useCallback(b=>s.filter(I=>I.channel===b),[s]),T=l.useCallback(()=>s,[s]),h=l.useCallback(b=>{a(I=>I.map(v=>v.id===b?{...v,read:!0}:v)),i(I=>I.map(v=>v.id===b?{...v,read:!0}:v))},[]),g=l.useCallback(()=>{a(b=>b.map(I=>({...I,read:!0}))),i(b=>b.map(I=>({...I,read:!0})))},[]),S=l.useCallback(()=>s.filter(b=>!b.read).length,[s]),x=l.useMemo(()=>({push:u,remove:c,clearAll:N,clearChannel:f,groupBy:O,getHistory:m,getByChannel:p,getAll:T,markAsRead:h,markAllAsRead:g,getUnreadCount:S}),[u,c,N,f,O,m,p,T,h,g,S]);return o.jsx(is.Provider,{value:x,children:e})}function Ve(){const e=l.useContext(is);if(e===void 0)throw new Error("useNotificationCenterContext must be used within a NotificationCenterProvider");return e}const nt=l.forwardRef(({confirm:e=!1,confirmMessage:r="Clear all notifications?",className:n,...s},a)=>{const{clearAll:d,getAll:i}=Ve(),c=i(),u=()=>{c.length!==0&&(e&&typeof window<"u"?window.confirm(r)&&d():d())};return c.length===0?null:o.jsx(ne,{ref:a,variant:"ghost",size:"sm",onClick:u,"aria-label":"Clear all notifications",className:n,...s,children:"Clear all"})});nt.displayName="NotificationCenter.DismissAll";const st=l.forwardRef(({label:e,collapsed:r=!1,onToggleCollapse:n,collapsible:s=!1,className:a,...d},i)=>o.jsxs("div",{ref:i,className:E("flex items-center justify-between",t.NOTIFICATION_TOKENS.spacing.paddingVertical,a),...d,children:[o.jsx("h3",{className:"text-sm font-semibold text-foreground",children:e}),s&&n&&o.jsx(ne,{variant:"ghost",size:"icon",onClick:n,"aria-label":r?"Expand group":"Collapse group","aria-expanded":!r,className:"h-6 w-6",children:r?o.jsx(D.ChevronDown,{className:"h-4 w-4"}):o.jsx(D.ChevronUp,{className:"h-4 w-4"})})]}));st.displayName="NotificationCenter.GroupHeader";function Ya(e="default"){switch(e){case"success":return D.CheckCircle2;case"info":return D.Info;case"warning":return D.AlertCircle;case"danger":return D.XCircle;case"system":return D.Bell;case"log":return D.FileText;default:return D.Info}}function qa(e){const n=Date.now()-e,s=Math.floor(n/1e3),a=Math.floor(s/60),d=Math.floor(a/60),i=Math.floor(d/24);return s<60?"just now":a<60?`${a}m ago`:d<24?`${d}h ago`:i<7?`${i}d ago`:new Date(e).toLocaleDateString()}const at=l.forwardRef(({notification:e,onDismiss:r,onClick:n,expandable:s=!1,className:a,...d},i)=>{const c=e.variant||"default",u=Ya(c),N=e.read??!1,f=()=>{n&&n(e.id)},O=h=>{h.stopPropagation(),r&&r(e.id)},m=`notification-${e.id}`,p=`${m}-title`,T=`${m}-description`;return o.jsxs("li",{ref:i,role:"listitem","aria-labelledby":e.title?p:void 0,"aria-describedby":e.description?T:void 0,className:E("group relative flex items-start gap-sm rounded-md border transition-colors",t.NOTIFICATION_TOKENS.item.padding,t.NOTIFICATION_TOKENS.item.radius,t.NOTIFICATION_TOKENS.shadow.item,t.NOTIFICATION_TOKENS.surface[c],!N&&"ring-1 ring-primary/20",n&&"cursor-pointer hover:bg-accent/50",a),onClick:f,...d,children:[o.jsx("div",{className:"flex-shrink-0",children:o.jsx(u,{className:E(t.NOTIFICATION_TOKENS.item.iconSize,"text-foreground/70")})}),o.jsxs("div",{className:"min-w-0 flex-1 space-y-xs",children:[e.title&&o.jsx("div",{id:p,className:"text-sm font-semibold text-foreground",children:e.title}),e.description&&o.jsx("div",{id:T,className:"text-sm text-foreground/80",children:e.description}),o.jsx("div",{className:"text-xs text-muted-foreground",children:qa(e.timestamp)}),e.action&&o.jsx("div",{className:"mt-sm",children:o.jsx(ne,{variant:"outline",size:"sm",onClick:h=>{var g;h.stopPropagation(),(g=e.action)==null||g.onClick()},className:"h-7 px-xs text-xs",children:e.action.label})})]}),r&&o.jsx(ne,{variant:"ghost",size:"icon",onClick:O,"aria-label":"Dismiss notification",className:"absolute right-xs top-xs h-6 w-6 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100",children:o.jsx(D.X,{className:"h-4 w-4"})})]})});at.displayName="NotificationCenter.Item";const ot=l.forwardRef(({children:e,className:r,"aria-label":n,...s},a)=>o.jsx(ae,{ref:a,as:"ul",role:"list","aria-label":n||"Notifications",className:E("list-none",t.NOTIFICATION_TOKENS.spacing.gap,r),...s,children:e}));ot.displayName="NotificationCenter.List";function Qa(e){const n=Date.now()-e.timestamp,s=Math.floor(n/(1e3*60*60*24));return s===0?"Today":s===1?"Yesterday":s<7?"This Week":s<30?"This Month":"Older"}const cr=l.forwardRef(({isOpen:e,onClose:r,groupBy:n=Qa,width:s="md",autoCollapse:a=!0,returnFocusRef:d},i)=>{const c=l.useRef(null),{getAll:u,markAsRead:N}=Ve(),[f,O]=l.useState(new Set),{handlers:m}=as({directions:["right"],threshold:100,onSwipe:()=>{r()},enabled:e}),p=u(),T=l.useMemo(()=>n?p.reduce((g,S)=>{const x=n(S);return g[x]||(g[x]=[]),g[x].push(S),g},{}):{default:p},[p,n]);if(l.useEffect(()=>{if(a&&e){const S=Object.keys(T).filter(x=>x!=="Today"&&x!=="Yesterday");O(new Set(S))}},[a,e,T]),rs({containerRef:c,enabled:e,returnFocusRef:d}),l.useEffect(()=>{if(!e)return;function g(S){S.key==="Escape"&&r()}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[e,r]),l.useEffect(()=>{e&&p.forEach(g=>{g.read||N(g.id)})},[e,p,N]),l.useEffect(()=>{if(e&&typeof window<"u")return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[e]),!e)return null;const h=g=>{O(S=>{const x=new Set(S);return x.has(g)?x.delete(g):x.add(g),x})};return o.jsxs(Ne,{children:[o.jsx(rt,{variant:"default",onClick:r,isVisible:e,className:"z-40"}),o.jsx("div",{...m,ref:g=>{c.current=g,m.ref(g),typeof i=="function"?i(g):i&&typeof i=="object"&&(i.current=g)},className:E("fixed right-0 top-0 z-50 h-full",t.NOTIFICATION_TOKENS.panel.width[s],t.NOTIFICATION_TOKENS.panel.maxHeight,t.NOTIFICATION_TOKENS.panel.shadow.default,e?"tm-motion-fade-slide-right":"tm-motion-fade-slide-right-out"),role:"dialog","aria-modal":"true","aria-label":"Notifications",children:o.jsxs(tt,{ref:i,variant:"raised",className:E("flex h-full flex-col",t.NOTIFICATION_TOKENS.panel.radius.default),children:[o.jsxs("div",{className:E("flex items-center justify-between border-b",t.NOTIFICATION_TOKENS.panel.spacing.headerPadding),children:[o.jsx("h2",{className:"text-lg font-semibold",children:"Notifications"}),o.jsxs("div",{className:"flex items-center gap-xs",children:[o.jsx(nt,{}),o.jsx(ne,{variant:"ghost",size:"icon",onClick:r,"aria-label":"Close notifications",className:"h-8 w-8",children:o.jsx(D.X,{className:"h-4 w-4"})})]})]}),o.jsx("div",{className:E("flex-1 overflow-y-auto",t.NOTIFICATION_TOKENS.panel.spacing.padding),children:Object.keys(T).length===0?o.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:"No notifications"}):o.jsx(ae,{gap:"md",children:Object.entries(T).map(([g,S])=>{const x=f.has(g);return o.jsxs("div",{children:[o.jsx(st,{label:g,collapsed:x,onToggleCollapse:()=>h(g),collapsible:a}),!x&&o.jsx(ot,{"aria-label":`${g} notifications`,children:S.map(b=>o.jsx(at,{notification:b},b.id))})]},g)})})})]})})]})});cr.displayName="NotificationCenter.Panel";const ur=l.forwardRef(({onClick:e,showBadge:r=!0,className:n,...s},a)=>{const{getUnreadCount:d}=Ve(),i=d();return o.jsxs(ne,{ref:a,variant:"ghost",size:"icon",onClick:e,"aria-label":`Open notifications${i>0?` (${i} unread)`:""}`,className:E("relative",n),...s,children:[o.jsx(D.Bell,{className:"h-5 w-5"}),r&&i>0&&o.jsx("span",{className:E("absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-destructive text-xs font-semibold text-destructive-foreground"),"aria-hidden":"true",children:i>99?"99+":i})]})});ur.displayName="NotificationCenter.Trigger";function Za(){const e=Ve(),r=l.useCallback((c,u)=>e.push({...u,description:c,variant:"success",channel:"success"}),[e]),n=l.useCallback((c,u)=>e.push({...u,description:c,variant:"danger",channel:"error"}),[e]),s=l.useCallback((c,u)=>e.push({...u,description:c,variant:"info",channel:"info"}),[e]),a=l.useCallback((c,u)=>e.push({...u,description:c,variant:"warning",channel:"warning"}),[e]),d=l.useCallback((c,u)=>e.push({...u,description:c,variant:"system",channel:"system"}),[e]),i=l.useCallback((c,u)=>e.push({...u,description:c,variant:"log",channel:"log"}),[e]);return l.useMemo(()=>({success:r,error:n,info:s,warning:a,system:d,log:i,push:e.push,remove:e.remove,clearAll:e.clearAll,clearChannel:e.clearChannel}),[r,n,s,a,d,i,e])}const Ja={Provider:ls,Panel:cr,Trigger:ur,List:ot,Item:at,GroupHeader:st,DismissAll:nt},ds=l.forwardRef(({className:e,size:r="md",...n},s)=>o.jsx("div",{ref:s,className:E("absolute z-[-1] rotate-45 border border-border bg-popover",t.POPOVER_TOKENS.arrow.size[r],e),style:{transform:`${t.POPOVER_TOKENS.arrow.offset[r]} rotate(45deg)`},...n}));ds.displayName="PopoverArrow";const He=Math.min,Oe=Math.max,Xe=Math.round,Ue=Math.floor,re=e=>({x:e,y:e}),eo={left:"right",right:"left",bottom:"top",top:"bottom"},to={start:"end",end:"start"};function Yr(e,r,n){return Oe(e,He(r,n))}function it(e,r){return typeof e=="function"?e(r):e}function pe(e){return e.split("-")[0]}function lt(e){return e.split("-")[1]}function cs(e){return e==="x"?"y":"x"}function us(e){return e==="y"?"height":"width"}const ro=new Set(["top","bottom"]);function le(e){return ro.has(pe(e))?"y":"x"}function fs(e){return cs(le(e))}function no(e,r,n){n===void 0&&(n=!1);const s=lt(e),a=fs(e),d=us(a);let i=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[d]>r.floating[d]&&(i=Fe(i)),[i,Fe(i)]}function so(e){const r=Fe(e);return[Kt(e),r,Kt(r)]}function Kt(e){return e.replace(/start|end/g,r=>to[r])}const qr=["left","right"],Qr=["right","left"],ao=["top","bottom"],oo=["bottom","top"];function io(e,r,n){switch(e){case"top":case"bottom":return n?r?Qr:qr:r?qr:Qr;case"left":case"right":return r?ao:oo;default:return[]}}function lo(e,r,n,s){const a=lt(e);let d=io(pe(e),n==="start",s);return a&&(d=d.map(i=>i+"-"+a),r&&(d=d.concat(d.map(Kt)))),d}function Fe(e){return e.replace(/left|right|bottom|top/g,r=>eo[r])}function co(e){return{top:0,right:0,bottom:0,left:0,...e}}function uo(e){return typeof e!="number"?co(e):{top:e,right:e,bottom:e,left:e}}function We(e){const{x:r,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:r,right:r+s,bottom:n+a,x:r,y:n}}function Zr(e,r,n){let{reference:s,floating:a}=e;const d=le(r),i=fs(r),c=us(i),u=pe(r),N=d==="y",f=s.x+s.width/2-a.width/2,O=s.y+s.height/2-a.height/2,m=s[c]/2-a[c]/2;let p;switch(u){case"top":p={x:f,y:s.y-a.height};break;case"bottom":p={x:f,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:O};break;case"left":p={x:s.x-a.width,y:O};break;default:p={x:s.x,y:s.y}}switch(lt(r)){case"start":p[i]-=m*(n&&N?-1:1);break;case"end":p[i]+=m*(n&&N?-1:1);break}return p}const fo=async(e,r,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:d=[],platform:i}=n,c=d.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(r));let N=await i.getElementRects({reference:e,floating:r,strategy:a}),{x:f,y:O}=Zr(N,s,u),m=s,p={},T=0;for(let h=0;h<c.length;h++){const{name:g,fn:S}=c[h],{x,y:b,data:I,reset:v}=await S({x:f,y:O,initialPlacement:s,placement:m,strategy:a,middlewareData:p,rects:N,platform:i,elements:{reference:e,floating:r}});f=x??f,O=b??O,p={...p,[g]:{...p[g],...I}},v&&T<=50&&(T++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(N=v.rects===!0?await i.getElementRects({reference:e,floating:r,strategy:a}):v.rects),{x:f,y:O}=Zr(N,m,u)),h=-1)}return{x:f,y:O,placement:m,strategy:a,middlewareData:p}};async function Ns(e,r){var n;r===void 0&&(r={});const{x:s,y:a,platform:d,rects:i,elements:c,strategy:u}=e,{boundary:N="clippingAncestors",rootBoundary:f="viewport",elementContext:O="floating",altBoundary:m=!1,padding:p=0}=it(r,e),T=uo(p),g=c[m?O==="floating"?"reference":"floating":O],S=We(await d.getClippingRect({element:(n=await(d.isElement==null?void 0:d.isElement(g)))==null||n?g:g.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(c.floating)),boundary:N,rootBoundary:f,strategy:u})),x=O==="floating"?{x:s,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(d.getOffsetParent==null?void 0:d.getOffsetParent(c.floating)),I=await(d.isElement==null?void 0:d.isElement(b))?await(d.getScale==null?void 0:d.getScale(b))||{x:1,y:1}:{x:1,y:1},v=We(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:u}):x);return{top:(S.top-v.top+T.top)/I.y,bottom:(v.bottom-S.bottom+T.bottom)/I.y,left:(S.left-v.left+T.left)/I.x,right:(v.right-S.right+T.right)/I.x}}const No=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,s;const{placement:a,middlewareData:d,rects:i,initialPlacement:c,platform:u,elements:N}=r,{mainAxis:f=!0,crossAxis:O=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:h=!0,...g}=it(e,r);if((n=d.arrow)!=null&&n.alignmentOffset)return{};const S=pe(a),x=le(c),b=pe(c)===c,I=await(u.isRTL==null?void 0:u.isRTL(N.floating)),v=m||(b||!h?[Fe(c)]:so(c)),_=T!=="none";!m&&_&&v.push(...lo(c,h,T,I));const $=[c,...v],y=await Ns(r,g),V=[];let A=((s=d.flip)==null?void 0:s.overflows)||[];if(f&&V.push(y[S]),O){const z=no(a,i,I);V.push(y[z[0]],y[z[1]])}if(A=[...A,{placement:a,overflows:V}],!V.every(z=>z<=0)){var M,Y;const z=(((M=d.flip)==null?void 0:M.index)||0)+1,X=$[z];if(X&&(!(O==="alignment"?x!==le(X):!1)||A.every(C=>le(C.placement)===x?C.overflows[0]>0:!0)))return{data:{index:z,overflows:A},reset:{placement:X}};let U=(Y=A.filter(w=>w.overflows[0]<=0).sort((w,C)=>w.overflows[1]-C.overflows[1])[0])==null?void 0:Y.placement;if(!U)switch(p){case"bestFit":{var G;const w=(G=A.filter(C=>{if(_){const j=le(C.placement);return j===x||j==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(j=>j>0).reduce((j,k)=>j+k,0)]).sort((C,j)=>C[1]-j[1])[0])==null?void 0:G[0];w&&(U=w);break}case"initialPlacement":U=c;break}if(a!==U)return{reset:{placement:U}}}return{}}}},mo=new Set(["left","top"]);async function To(e,r){const{placement:n,platform:s,elements:a}=e,d=await(s.isRTL==null?void 0:s.isRTL(a.floating)),i=pe(n),c=lt(n),u=le(n)==="y",N=mo.has(i)?-1:1,f=d&&u?-1:1,O=it(r,e);let{mainAxis:m,crossAxis:p,alignmentAxis:T}=typeof O=="number"?{mainAxis:O,crossAxis:0,alignmentAxis:null}:{mainAxis:O.mainAxis||0,crossAxis:O.crossAxis||0,alignmentAxis:O.alignmentAxis};return c&&typeof T=="number"&&(p=c==="end"?T*-1:T),u?{x:p*f,y:m*N}:{x:m*N,y:p*f}}const Oo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,s;const{x:a,y:d,placement:i,middlewareData:c}=r,u=await To(r,e);return i===((n=c.offset)==null?void 0:n.placement)&&(s=c.arrow)!=null&&s.alignmentOffset?{}:{x:a+u.x,y:d+u.y,data:{...u,placement:i}}}}},po=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:s,placement:a}=r,{mainAxis:d=!0,crossAxis:i=!1,limiter:c={fn:g=>{let{x:S,y:x}=g;return{x:S,y:x}}},...u}=it(e,r),N={x:n,y:s},f=await Ns(r,u),O=le(pe(a)),m=cs(O);let p=N[m],T=N[O];if(d){const g=m==="y"?"top":"left",S=m==="y"?"bottom":"right",x=p+f[g],b=p-f[S];p=Yr(x,p,b)}if(i){const g=O==="y"?"top":"left",S=O==="y"?"bottom":"right",x=T+f[g],b=T-f[S];T=Yr(x,T,b)}const h=c.fn({...r,[m]:p,[O]:T});return{...h,data:{x:h.x-n,y:h.y-s,enabled:{[m]:d,[O]:i}}}}}};function dt(){return typeof window<"u"}function ve(e){return ms(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function oe(e){var r;return(r=(ms(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function ms(e){return dt()?e instanceof Node||e instanceof Q(e).Node:!1}function ee(e){return dt()?e instanceof Element||e instanceof Q(e).Element:!1}function se(e){return dt()?e instanceof HTMLElement||e instanceof Q(e).HTMLElement:!1}function Jr(e){return!dt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}const go=new Set(["inline","contents"]);function je(e){const{overflow:r,overflowX:n,overflowY:s,display:a}=te(e);return/auto|scroll|overlay|hidden|clip/.test(r+s+n)&&!go.has(a)}const So=new Set(["table","td","th"]);function ho(e){return So.has(ve(e))}const Eo=[":popover-open",":modal"];function ct(e){return Eo.some(r=>{try{return e.matches(r)}catch{return!1}})}const xo=["transform","translate","scale","rotate","perspective"],bo=["transform","translate","scale","rotate","perspective","filter"],Io=["paint","layout","strict","content"];function fr(e){const r=Nr(),n=ee(e)?te(e):e;return xo.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||bo.some(s=>(n.willChange||"").includes(s))||Io.some(s=>(n.contain||"").includes(s))}function vo(e){let r=ue(e);for(;se(r)&&!Ie(r);){if(fr(r))return r;if(ct(r))return null;r=ue(r)}return null}function Nr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const _o=new Set(["html","body","#document"]);function Ie(e){return _o.has(ve(e))}function te(e){return Q(e).getComputedStyle(e)}function ut(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ue(e){if(ve(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Jr(e)&&e.host||oe(e);return Jr(r)?r.host:r}function Ts(e){const r=ue(e);return Ie(r)?e.ownerDocument?e.ownerDocument.body:e.body:se(r)&&je(r)?r:Ts(r)}function Ce(e,r,n){var s;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=Ts(e),d=a===((s=e.ownerDocument)==null?void 0:s.body),i=Q(a);if(d){const c=wt(i);return r.concat(i,i.visualViewport||[],je(a)?a:[],c&&n?Ce(c):[])}return r.concat(a,Ce(a,[],n))}function wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Os(e){const r=te(e);let n=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const a=se(e),d=a?e.offsetWidth:n,i=a?e.offsetHeight:s,c=Xe(n)!==d||Xe(s)!==i;return c&&(n=d,s=i),{width:n,height:s,$:c}}function mr(e){return ee(e)?e:e.contextElement}function be(e){const r=mr(e);if(!se(r))return re(1);const n=r.getBoundingClientRect(),{width:s,height:a,$:d}=Os(r);let i=(d?Xe(n.width):n.width)/s,c=(d?Xe(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Ko=re(0);function ps(e){const r=Q(e);return!Nr()||!r.visualViewport?Ko:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function wo(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==Q(e)?!1:r}function ge(e,r,n,s){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),d=mr(e);let i=re(1);r&&(s?ee(s)&&(i=be(s)):i=be(e));const c=wo(d,n,s)?ps(d):re(0);let u=(a.left+c.x)/i.x,N=(a.top+c.y)/i.y,f=a.width/i.x,O=a.height/i.y;if(d){const m=Q(d),p=s&&ee(s)?Q(s):s;let T=m,h=wt(T);for(;h&&s&&p!==T;){const g=be(h),S=h.getBoundingClientRect(),x=te(h),b=S.left+(h.clientLeft+parseFloat(x.paddingLeft))*g.x,I=S.top+(h.clientTop+parseFloat(x.paddingTop))*g.y;u*=g.x,N*=g.y,f*=g.x,O*=g.y,u+=b,N+=I,T=Q(h),h=wt(T)}}return We({width:f,height:O,x:u,y:N})}function ft(e,r){const n=ut(e).scrollLeft;return r?r.left+n:ge(oe(e)).left+n}function gs(e,r){const n=e.getBoundingClientRect(),s=n.left+r.scrollLeft-ft(e,n),a=n.top+r.scrollTop;return{x:s,y:a}}function yo(e){let{elements:r,rect:n,offsetParent:s,strategy:a}=e;const d=a==="fixed",i=oe(s),c=r?ct(r.floating):!1;if(s===i||c&&d)return n;let u={scrollLeft:0,scrollTop:0},N=re(1);const f=re(0),O=se(s);if((O||!O&&!d)&&((ve(s)!=="body"||je(i))&&(u=ut(s)),se(s))){const p=ge(s);N=be(s),f.x=p.x+s.clientLeft,f.y=p.y+s.clientTop}const m=i&&!O&&!d?gs(i,u):re(0);return{width:n.width*N.x,height:n.height*N.y,x:n.x*N.x-u.scrollLeft*N.x+f.x+m.x,y:n.y*N.y-u.scrollTop*N.y+f.y+m.y}}function Ao(e){return Array.from(e.getClientRects())}function Co(e){const r=oe(e),n=ut(e),s=e.ownerDocument.body,a=Oe(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),d=Oe(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let i=-n.scrollLeft+ft(e);const c=-n.scrollTop;return te(s).direction==="rtl"&&(i+=Oe(r.clientWidth,s.clientWidth)-a),{width:a,height:d,x:i,y:c}}const en=25;function $o(e,r){const n=Q(e),s=oe(e),a=n.visualViewport;let d=s.clientWidth,i=s.clientHeight,c=0,u=0;if(a){d=a.width,i=a.height;const f=Nr();(!f||f&&r==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}const N=ft(s);if(N<=0){const f=s.ownerDocument,O=f.body,m=getComputedStyle(O),p=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,T=Math.abs(s.clientWidth-O.clientWidth-p);T<=en&&(d-=T)}else N<=en&&(d+=N);return{width:d,height:i,x:c,y:u}}const Ro=new Set(["absolute","fixed"]);function Vo(e,r){const n=ge(e,!0,r==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,d=se(e)?be(e):re(1),i=e.clientWidth*d.x,c=e.clientHeight*d.y,u=a*d.x,N=s*d.y;return{width:i,height:c,x:u,y:N}}function tn(e,r,n){let s;if(r==="viewport")s=$o(e,n);else if(r==="document")s=Co(oe(e));else if(ee(r))s=Vo(r,n);else{const a=ps(e);s={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return We(s)}function Ss(e,r){const n=ue(e);return n===r||!ee(n)||Ie(n)?!1:te(n).position==="fixed"||Ss(n,r)}function jo(e,r){const n=r.get(e);if(n)return n;let s=Ce(e,[],!1).filter(c=>ee(c)&&ve(c)!=="body"),a=null;const d=te(e).position==="fixed";let i=d?ue(e):e;for(;ee(i)&&!Ie(i);){const c=te(i),u=fr(i);!u&&c.position==="fixed"&&(a=null),(d?!u&&!a:!u&&c.position==="static"&&!!a&&Ro.has(a.position)||je(i)&&!u&&Ss(e,i))?s=s.filter(f=>f!==i):a=c,i=ue(i)}return r.set(e,s),s}function zo(e){let{element:r,boundary:n,rootBoundary:s,strategy:a}=e;const i=[...n==="clippingAncestors"?ct(r)?[]:jo(r,this._c):[].concat(n),s],c=i[0],u=i.reduce((N,f)=>{const O=tn(r,f,a);return N.top=Oe(O.top,N.top),N.right=He(O.right,N.right),N.bottom=He(O.bottom,N.bottom),N.left=Oe(O.left,N.left),N},tn(r,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Mo(e){const{width:r,height:n}=Os(e);return{width:r,height:n}}function ko(e,r,n){const s=se(r),a=oe(r),d=n==="fixed",i=ge(e,!0,d,r);let c={scrollLeft:0,scrollTop:0};const u=re(0);function N(){u.x=ft(a)}if(s||!s&&!d)if((ve(r)!=="body"||je(a))&&(c=ut(r)),s){const p=ge(r,!0,d,r);u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}else a&&N();d&&!s&&a&&N();const f=a&&!s&&!d?gs(a,c):re(0),O=i.left+c.scrollLeft-u.x-f.x,m=i.top+c.scrollTop-u.y-f.y;return{x:O,y:m,width:i.width,height:i.height}}function St(e){return te(e).position==="static"}function rn(e,r){if(!se(e)||te(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return oe(e)===n&&(n=n.ownerDocument.body),n}function hs(e,r){const n=Q(e);if(ct(e))return n;if(!se(e)){let a=ue(e);for(;a&&!Ie(a);){if(ee(a)&&!St(a))return a;a=ue(a)}return n}let s=rn(e,r);for(;s&&ho(s)&&St(s);)s=rn(s,r);return s&&Ie(s)&&St(s)&&!fr(s)?n:s||vo(e)||n}const Po=async function(e){const r=this.getOffsetParent||hs,n=this.getDimensions,s=await n(e.floating);return{reference:ko(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Do(e){return te(e).direction==="rtl"}const Uo={convertOffsetParentRelativeRectToViewportRelativeRect:yo,getDocumentElement:oe,getClippingRect:zo,getOffsetParent:hs,getElementRects:Po,getClientRects:Ao,getDimensions:Mo,getScale:be,isElement:ee,isRTL:Do};function Es(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Lo(e,r){let n=null,s;const a=oe(e);function d(){var c;clearTimeout(s),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),d();const N=e.getBoundingClientRect(),{left:f,top:O,width:m,height:p}=N;if(c||r(),!m||!p)return;const T=Ue(O),h=Ue(a.clientWidth-(f+m)),g=Ue(a.clientHeight-(O+p)),S=Ue(f),b={rootMargin:-T+"px "+-h+"px "+-g+"px "+-S+"px",threshold:Oe(0,He(1,u))||1};let I=!0;function v(_){const $=_[0].intersectionRatio;if($!==u){if(!I)return i();$?i(!1,$):s=setTimeout(()=>{i(!1,1e-7)},1e3)}$===1&&!Es(N,e.getBoundingClientRect())&&i(),I=!1}try{n=new IntersectionObserver(v,{...b,root:a.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(e)}return i(!0),d}function Bo(e,r,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=s,N=mr(e),f=a||d?[...N?Ce(N):[],...Ce(r)]:[];f.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),d&&S.addEventListener("resize",n)});const O=N&&c?Lo(N,n):null;let m=-1,p=null;i&&(p=new ResizeObserver(S=>{let[x]=S;x&&x.target===N&&p&&(p.unobserve(r),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(r)})),n()}),N&&!u&&p.observe(N),p.observe(r));let T,h=u?ge(e):null;u&&g();function g(){const S=ge(e);h&&!Es(h,S)&&n(),h=S,T=requestAnimationFrame(g)}return n(),()=>{var S;f.forEach(x=>{a&&x.removeEventListener("scroll",n),d&&x.removeEventListener("resize",n)}),O==null||O(),(S=p)==null||S.disconnect(),p=null,u&&cancelAnimationFrame(T)}}const Go=Oo,Ho=po,Xo=No,Fo=(e,r,n)=>{const s=new Map,a={platform:Uo,...n},d={...a.platform,_c:s};return fo(e,r,{...a,platform:d})};var Wo=typeof document<"u",Yo=function(){},Be=Wo?ie.useLayoutEffect:Yo;function Ye(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,s,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(s=n;s--!==0;)if(!Ye(e[s],r[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(r,a[s]))return!1;for(s=n;s--!==0;){const d=a[s];if(!(d==="_owner"&&e.$$typeof)&&!Ye(e[d],r[d]))return!1}return!0}return e!==e&&r!==r}function xs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nn(e,r){const n=xs(e);return Math.round(r*n)/n}function ht(e){const r=l.useRef(e);return Be(()=>{r.current=e}),r}function qo(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:d,floating:i}={},transform:c=!0,whileElementsMounted:u,open:N}=e,[f,O]=l.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[m,p]=l.useState(s);Ye(m,s)||p(s);const[T,h]=l.useState(null),[g,S]=l.useState(null),x=l.useCallback(C=>{C!==_.current&&(_.current=C,h(C))},[]),b=l.useCallback(C=>{C!==$.current&&($.current=C,S(C))},[]),I=d||T,v=i||g,_=l.useRef(null),$=l.useRef(null),y=l.useRef(f),V=u!=null,A=ht(u),M=ht(a),Y=ht(N),G=l.useCallback(()=>{if(!_.current||!$.current)return;const C={placement:r,strategy:n,middleware:m};M.current&&(C.platform=M.current),Fo(_.current,$.current,C).then(j=>{const k={...j,isPositioned:Y.current!==!1};z.current&&!Ye(y.current,k)&&(y.current=k,ga.flushSync(()=>{O(k)}))})},[m,r,n,M,Y]);Be(()=>{N===!1&&y.current.isPositioned&&(y.current.isPositioned=!1,O(C=>({...C,isPositioned:!1})))},[N]);const z=l.useRef(!1);Be(()=>(z.current=!0,()=>{z.current=!1}),[]),Be(()=>{if(I&&(_.current=I),v&&($.current=v),I&&v){if(A.current)return A.current(I,v,G);G()}},[I,v,G,A,V]);const X=l.useMemo(()=>({reference:_,floating:$,setReference:x,setFloating:b}),[x,b]),U=l.useMemo(()=>({reference:I,floating:v}),[I,v]),w=l.useMemo(()=>{const C={position:n,left:0,top:0};if(!U.floating)return C;const j=nn(U.floating,f.x),k=nn(U.floating,f.y);return c?{...C,transform:"translate("+j+"px, "+k+"px)",...xs(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:k}},[n,c,U.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:G,refs:X,elements:U,floatingStyles:w}),[f,G,X,U,w])}const Qo=(e,r)=>({...Go(e),options:[e,r]}),Zo=(e,r)=>({...Ho(e),options:[e,r]}),Jo=(e,r)=>({...Xo(e),options:[e,r]});function bs({anchorRef:e,contentRef:r,placement:n="bottom",offset:s=4,enabled:a=!0,flip:d=!0,shift:i=!0}){const[c,u]=l.useState(!1),[N,f]=l.useState(!1);l.useEffect(()=>{f(!0)},[]);const O=l.useMemo(()=>{const T=[Qo(s)];return d&&T.push(Jo()),i&&T.push(Zo({padding:8})),T},[s,d,i]),m=qo({placement:n,middleware:O,whileElementsMounted:N&&a?Bo:void 0});return l.useLayoutEffect(()=>{if(!N||!a){u(!1);return}if(typeof window>"u")return;const T=e.current,h=r.current;if(!T||!h){u(!1);return}m.refs.setReference(T),m.refs.setFloating(h),u(!0)},[N,a,e,r,m.refs,n,s]),{position:l.useMemo(()=>!c||!m.x||!m.y?{position:"fixed",top:0,left:0,visibility:"hidden"}:{position:m.strategy,top:m.y??0,left:m.x??0},[c,m.x,m.y,m.strategy]),placement:m.placement,isPositioned:c}}const Is=l.createContext(null);function he(){const e=l.useContext(Is);if(!e)throw new Error("Popover components must be used within PopoverRoot");return e}function _e({open:e,onOpenChange:r,defaultOpen:n=!1,children:s}){const[a,d]=l.useState(n),i=l.useRef(`popover-trigger-${Math.random().toString(36).substr(2,9)}`),c=l.useRef(`popover-content-${Math.random().toString(36).substr(2,9)}`),u=e!==void 0,N=u?e:a,f=l.useCallback(m=>{u||d(m),r==null||r(m)},[u,r]),O=l.useMemo(()=>({open:N,onOpenChange:f,triggerId:i.current,contentId:c.current}),[N,f]);return o.jsx(Is.Provider,{value:O,children:s})}_e.displayName="PopoverRoot";const vs=K.cva("z-50 outline-none border border-border bg-popover text-popover-foreground",{variants:{size:{xs:`${t.POPOVER_TOKENS.content.width.xs} ${t.POPOVER_TOKENS.content.padding.sm} ${t.POPOVER_TOKENS.content.radius.sm} ${t.POPOVER_TOKENS.content.shadow.sm}`,sm:`${t.POPOVER_TOKENS.content.width.sm} ${t.POPOVER_TOKENS.content.padding.sm} ${t.POPOVER_TOKENS.content.radius.sm} ${t.POPOVER_TOKENS.content.shadow.sm}`,md:`${t.POPOVER_TOKENS.content.width.md} ${t.POPOVER_TOKENS.content.padding.md} ${t.POPOVER_TOKENS.content.radius.md} ${t.POPOVER_TOKENS.content.shadow.md}`,lg:`${t.POPOVER_TOKENS.content.width.lg} ${t.POPOVER_TOKENS.content.padding.lg} ${t.POPOVER_TOKENS.content.radius.md} ${t.POPOVER_TOKENS.content.shadow.md}`}},defaultVariants:{size:"md"}}),Nt=l.forwardRef(({className:e,size:r="md",placement:n="bottom",offset:s=4,closeOnInteractOutside:a=!0,children:d,...i},c)=>{const{open:u,onOpenChange:N,triggerId:f,contentId:O}=he(),m=l.useRef(null),p=l.useRef(null);l.useImperativeHandle(c,()=>m.current,[]),l.useEffect(()=>{if(typeof document>"u")return;const S=document.getElementById(f);S&&(p.current=S)},[f]);const{position:T,isPositioned:h}=bs({anchorRef:p,contentRef:m,placement:n,offset:s,enabled:u});if(l.useEffect(()=>{if(!u||!a)return;function S(x){const b=x.target;m.current&&!m.current.contains(b)&&p.current&&!p.current.contains(b)&&N(!1)}return document.addEventListener("mousedown",S,!0),()=>{document.removeEventListener("mousedown",S,!0)}},[u,a,N]),l.useEffect(()=>{if(!u)return;function S(x){x.key==="Escape"&&N(!1)}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[u,N]),!u)return null;const g=()=>n!=null&&n.startsWith("top")?"tm-motion-fade-slide-down":n!=null&&n.startsWith("bottom")?"tm-motion-fade-slide-up":n!=null&&n.startsWith("left")?"tm-motion-fade-slide-right":n!=null&&n.startsWith("right")?"tm-motion-fade-slide-left":"tm-motion-fade-scale";return o.jsx(Ne,{children:o.jsx("div",{ref:m,id:O,role:"dialog","aria-labelledby":f,className:E(vs({size:r}),g(),!h&&"invisible",e),style:T,...i,children:d})})});Nt.displayName="PopoverContent";const mt=l.forwardRef(({asChild:e=!1,className:r,children:n,...s},a)=>{const{open:d,onOpenChange:i,triggerId:c,contentId:u}=he(),N=l.useRef(null);l.useImperativeHandle(a,()=>N.current,[]);const f=l.useCallback(p=>{var T;i(!d),(T=s.onClick)==null||T.call(s,p)},[d,i,s]),O=l.useCallback(p=>{var T;(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),i(!d)),(T=s.onKeyDown)==null||T.call(s,p)},[d,i,s]),m={...s,ref:N,id:c,"aria-haspopup":"dialog","aria-expanded":d,"aria-controls":d?u:void 0,onClick:f,onKeyDown:O,className:E(r)};return e?o.jsx(qe.Slot,{...m,children:n}):o.jsx("button",{type:"button",...m,ref:N,children:n})});mt.displayName="PopoverTrigger";const _s=l.createContext(null);function yt(){const e=l.useContext(_s);if(!e)throw new Error("DropdownMenu components must be used within DropdownMenuRoot");return e}function Ks(e){const[r,n]=l.useState(null),[s,a]=l.useState([]),d=l.useCallback(u=>{a(N=>N.includes(u)?N:[...N,u])},[]),i=l.useCallback(u=>{a(N=>N.filter(f=>f!==u))},[]),c=l.useMemo(()=>({focusedIndex:r,setFocusedIndex:n,itemIds:s,registerItem:d,unregisterItem:i}),[r,s,d,i]);return l.useEffect(()=>{!e.open&&e.open!==void 0&&n(null)},[e.open]),o.jsx(_e,{...e,children:o.jsx(_s.Provider,{value:c,children:e.children})})}Ks.displayName="DropdownMenuRoot";const Ke=l.forwardRef(({className:e,disabled:r=!1,selected:n=!1,onSelect:s,inset:a=!1,children:d,onClick:i,onKeyDown:c,...u},N)=>{const{onOpenChange:f}=he(),{itemIds:O,focusedIndex:m,setFocusedIndex:p}=yt(),T=l.useRef(null),h=l.useRef(`dropdown-item-${Math.random().toString(36).substr(2,9)}`);l.useImperativeHandle(N,()=>T.current,[]);const{registerItem:g,unregisterItem:S}=yt();l.useEffect(()=>{const _=h.current;return g(_),()=>{S(_)}},[g,S]);const x=l.useMemo(()=>O.indexOf(h.current),[O]),b=m===x,I=l.useCallback(_=>{if(r){_.preventDefault();return}s==null||s(_.nativeEvent),i==null||i(_),f(!1)},[r,s,i,f]),v=l.useCallback(_=>{if(!r){if(_.key==="Enter"||_.key===" "){_.preventDefault(),s==null||s(_.nativeEvent),f(!1);return}c==null||c(_)}},[r,s,f,c]);return o.jsx("div",{ref:T,id:h.current,role:"menuitem",tabIndex:b?0:-1,"aria-disabled":r,"aria-selected":n,className:E("relative flex cursor-default select-none items-center outline-none transition-colors",t.MENU_TOKENS.item.padding.md,t.MENU_TOKENS.item.radius.md,a&&"pl-8",!r&&"focus:bg-accent focus:text-accent-foreground",n&&"bg-accent/50",r&&"pointer-events-none opacity-50",e),onClick:I,onKeyDown:v,onFocus:()=>p(x),...u,children:d})});Ke.displayName="DropdownMenuItem";const ws=l.forwardRef(({className:e,checked:r=!1,children:n,...s},a)=>o.jsxs(Ke,{ref:a,selected:r,className:E("pl-8",e),...s,children:[o.jsx("span",{className:E("absolute left-2 flex items-center justify-center",t.MENU_TOKENS.indicator.size.sm),children:r&&o.jsx(D.Check,{className:t.MENU_TOKENS.indicator.size.sm})}),n]}));ws.displayName="DropdownMenuCheckItem";const Tr=l.forwardRef(({className:e,children:r,onKeyDown:n,...s},a)=>{const{itemIds:d,focusedIndex:i,setFocusedIndex:c}=yt(),u=l.useCallback(N=>{var m,p,T,h;const f=d.filter(g=>{const S=document.getElementById(g);return S&&!S.hasAttribute("aria-disabled")});if(f.length===0){n==null||n(N);return}let O=i??0;switch(N.key){case"ArrowDown":N.preventDefault(),O=(O+1)%f.length,c(O);const g=f[O];g&&((m=document.getElementById(g))==null||m.focus());break;case"ArrowUp":N.preventDefault(),O=O<=0?f.length-1:O-1,c(O);const S=f[O];S&&((p=document.getElementById(S))==null||p.focus());break;case"Home":N.preventDefault(),O=0,c(O);const x=f[O];x&&((T=document.getElementById(x))==null||T.focus());break;case"End":N.preventDefault(),O=f.length-1,c(O);const b=f[O];b&&((h=document.getElementById(b))==null||h.focus());break;case"Tab":N.preventDefault();break;default:n==null||n(N);break}},[d,i,c,n]);return o.jsx(Nt,{ref:a,className:E(`${t.MENU_TOKENS.content.padding.md} ${t.MENU_TOKENS.content.radius.md} ${t.MENU_TOKENS.content.shadow.md} ${t.MENU_TOKENS.content.minWidth.md}`,"tm-motion-fade-slide-up overflow-hidden",e),role:"menu",onKeyDown:u,placement:"bottom",...s,children:r})});Tr.displayName="DropdownMenuContent";const Or=l.forwardRef(({className:e,...r},n)=>o.jsx("div",{ref:n,role:"group",className:E(e),...r}));Or.displayName="DropdownMenuGroup";const pr=l.forwardRef(({className:e,inset:r=!1,...n},s)=>o.jsx("div",{ref:s,className:E(t.MENU_TOKENS.label.padding.md,t.MENU_TOKENS.label.textStyle,r&&"pl-8",e),...n}));pr.displayName="DropdownMenuLabel";const ys=l.createContext(null);function ei(){return l.useContext(ys)}const As=l.forwardRef(({className:e,value:r,onValueChange:n,...s},a)=>{const d=l.useMemo(()=>({value:r,onValueChange:n}),[r,n]);return o.jsx(ys.Provider,{value:d,children:o.jsx("div",{ref:a,role:"radiogroup",className:E(e),...s})})});As.displayName="DropdownMenuRadioGroup";const Cs=l.forwardRef(({className:e,value:r,children:n,onSelect:s,...a},d)=>{const i=ei(),c=(i==null?void 0:i.value)===r,u=l.useCallback(N=>{var f;(f=i==null?void 0:i.onValueChange)==null||f.call(i,r),s==null||s(N)},[r,i,s]);return o.jsxs(Ke,{ref:d,selected:c,className:E("pl-8",e),onSelect:u,...a,children:[o.jsx("span",{className:E("absolute left-2 flex items-center justify-center",t.MENU_TOKENS.indicator.size.sm),children:c&&o.jsx(D.Circle,{className:"h-2 w-2 fill-current"})}),n]})});Cs.displayName="DropdownMenuRadioItem";const gr=l.forwardRef(({className:e,...r},n)=>o.jsx("div",{ref:n,role:"separator",className:E(t.MENU_TOKENS.separator.margin.md,t.MENU_TOKENS.separator.height,t.MENU_TOKENS.separator.color,e),...r}));gr.displayName="DropdownMenuSeparator";function $s(e){return o.jsx(_e,{...e})}$s.displayName="DropdownMenuSub";const Rs=l.forwardRef((e,r)=>o.jsx(Tr,{ref:r,...e}));Rs.displayName="DropdownMenuSubContent";const Vs=l.forwardRef(({className:e,children:r,...n},s)=>o.jsxs(Ke,{ref:s,className:E(e),...n,children:[r,o.jsx(D.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Vs.displayName="DropdownMenuSubTrigger";const js=l.forwardRef((e,r)=>o.jsx(mt,{ref:r,...e,"aria-haspopup":"menu"}));js.displayName="DropdownMenuTrigger";const zs=l.forwardRef(({onMouseEnter:e,onMouseLeave:r,...n},s)=>{const{onOpenChange:a}=he(),d=l.useCallback(c=>{a(!0),e==null||e(c)},[a,e]),i=l.useCallback(c=>{a(!1),r==null||r(c)},[a,r]);return o.jsx(Nt,{ref:s,onMouseEnter:d,onMouseLeave:i,role:"tooltip",...n})});zs.displayName="HoverCardContent";function Ms({openDelay:e=0,closeDelay:r=300,defaultOpen:n=!1,...s}){const[a,d]=l.useState(n),i=l.useRef(null),c=l.useRef(null),u=l.useCallback(N=>{i.current&&(clearTimeout(i.current),i.current=null),c.current&&(clearTimeout(c.current),c.current=null),N?e>0?i.current=setTimeout(()=>{d(!0)},e):d(!0):r>0?c.current=setTimeout(()=>{d(!1)},r):d(!1)},[e,r]);return l.useEffect(()=>()=>{i.current&&clearTimeout(i.current),c.current&&clearTimeout(c.current)},[]),o.jsx(_e,{...s,open:a,onOpenChange:u,defaultOpen:n})}Ms.displayName="HoverCardRoot";const ks=l.forwardRef(({onMouseEnter:e,onMouseLeave:r,onFocus:n,onBlur:s,...a},d)=>{const{onOpenChange:i}=he(),c=l.useCallback(O=>{i(!0),e==null||e(O)},[i,e]),u=l.useCallback(O=>{i(!1),r==null||r(O)},[i,r]),N=l.useCallback(O=>{i(!0),n==null||n(O)},[i,n]),f=l.useCallback(O=>{i(!1),s==null||s(O)},[i,s]);return o.jsx(mt,{ref:d,onMouseEnter:c,onMouseLeave:u,onFocus:N,onBlur:f,"aria-haspopup":"dialog",...a})});ks.displayName="HoverCardTrigger";const Ps=l.createContext(null);function Ds(){const e=l.useContext(Ps);if(!e)throw new Error("ContextMenu components must be used within ContextMenuRoot");return e}function Us(e){const[r,n]=l.useState(!1),[s,a]=l.useState(null),[d,i]=l.useState(null),[c,u]=l.useState([]),N=l.useCallback(m=>{u(p=>p.includes(m)?p:[...p,m])},[]),f=l.useCallback(m=>{u(p=>p.filter(T=>T!==m))},[]),O=l.useMemo(()=>({focusedIndex:d,setFocusedIndex:i,itemIds:c,registerItem:N,unregisterItem:f,position:s,setPosition:a}),[d,c,N,f,s]);return l.useEffect(()=>{r||(i(null),a(null))},[r]),o.jsx(_e,{...e,open:r,onOpenChange:n,children:o.jsx(Ps.Provider,{value:O,children:e.children})})}Us.displayName="ContextMenuRoot";const Ls=l.forwardRef(({className:e,placement:r="bottom-start",offset:n=4,children:s,...a},d)=>{const{open:i,onOpenChange:c,triggerId:u,contentId:N}=he(),{position:f}=Ds(),O=l.useRef(null),m=l.useRef(null);l.useImperativeHandle(d,()=>O.current,[]),l.useEffect(()=>{if(!f||typeof document>"u")return;const h=document.createElement("div");return h.style.position="fixed",h.style.left=`${f.x}px`,h.style.top=`${f.y}px`,h.style.width="1px",h.style.height="1px",h.style.pointerEvents="none",h.style.visibility="hidden",document.body.appendChild(h),m.current=h,()=>{h.parentNode&&h.parentNode.removeChild(h)}},[f]);const{position:p,isPositioned:T}=bs({anchorRef:m,contentRef:O,placement:r,offset:n,enabled:i&&!!f});return l.useEffect(()=>{if(!i)return;function h(g){const S=g.target;O.current&&!O.current.contains(S)&&c(!1)}return document.addEventListener("mousedown",h,!0),()=>{document.removeEventListener("mousedown",h,!0)}},[i,c]),l.useEffect(()=>{if(!i)return;function h(g){g.key==="Escape"&&c(!1)}return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[i,c]),i?o.jsx(Ne,{children:o.jsx("div",{ref:O,id:N,role:"menu","aria-labelledby":u,className:E("z-50 border border-border bg-popover text-popover-foreground outline-none",`${t.MENU_TOKENS.content.padding.md} ${t.MENU_TOKENS.content.radius.md} ${t.MENU_TOKENS.content.shadow.md} ${t.MENU_TOKENS.content.minWidth.md}`,"overflow-hidden",!T&&"invisible",e),style:p,...a,children:s})}):null});Ls.displayName="ContextMenuContent";const Bs=l.forwardRef((e,r)=>o.jsx(Or,{ref:r,...e}));Bs.displayName="ContextMenuGroup";const Gs=l.forwardRef((e,r)=>o.jsx(Ke,{ref:r,...e}));Gs.displayName="ContextMenuItem";const Hs=l.forwardRef((e,r)=>o.jsx(pr,{ref:r,...e}));Hs.displayName="ContextMenuLabel";const Xs=l.forwardRef((e,r)=>o.jsx(gr,{ref:r,...e}));Xs.displayName="ContextMenuSeparator";const Fs=l.forwardRef(({asChild:e=!1,className:r,children:n,onContextMenu:s,...a},d)=>{const{onOpenChange:i}=he(),{setPosition:c}=Ds(),u=l.useRef(null);l.useImperativeHandle(d,()=>u.current,[]);const N=l.useCallback(f=>{f.preventDefault(),f.stopPropagation(),c({x:f.clientX,y:f.clientY}),i(!0),s==null||s(f)},[i,c,s]);if(e&&l.isValidElement(n)){const f=n.props;return l.cloneElement(n,{...a,...f,ref:u,onContextMenu:N,className:E(r,f.className)})}return o.jsx("div",{ref:u,onContextMenu:N,className:E(r),...a,children:n})});Fs.displayName="ContextMenuTrigger";const Ws=K.cva(`${t.DATA_TOKENS.skeleton.background.default} ${t.DATA_TOKENS.skeleton.animation.pulse}`,{variants:{variant:{text:`${t.DATA_TOKENS.skeleton.height.text} ${t.DATA_TOKENS.skeleton.radius.text} ${t.DATA_TOKENS.skeleton.width.full}`,inline:`${t.DATA_TOKENS.skeleton.height.inline} ${t.DATA_TOKENS.skeleton.radius.inline} ${t.DATA_TOKENS.skeleton.width.inline}`,block:`${t.DATA_TOKENS.skeleton.height.block} ${t.DATA_TOKENS.skeleton.radius.block} ${t.DATA_TOKENS.skeleton.width.full}`,card:`${t.DATA_TOKENS.skeleton.height.card} ${t.DATA_TOKENS.skeleton.radius.card} ${t.DATA_TOKENS.skeleton.width.full}`,circle:`${t.DATA_TOKENS.skeleton.height.circle} ${t.DATA_TOKENS.skeleton.radius.circle}`}},defaultVariants:{variant:"text"}}),Sr=l.forwardRef(({className:e,variant:r,"aria-hidden":n=!0,...s},a)=>o.jsx("div",{ref:a,className:E(Ws({variant:r}),e),"aria-hidden":n,...s}));Sr.displayName="Skeleton";const hr=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx("div",{ref:s,className:E("mt-2",e),...n,children:r}));hr.displayName="EmptyStateAction";const Er=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx("p",{ref:s,className:E(t.DATA_TOKENS.emptyState.typography.description.fontSize,t.DATA_TOKENS.emptyState.typography.description.fontWeight,"max-w-md text-muted-foreground",e),...n,children:r}));Er.displayName="EmptyStateDescription";const Tt=l.forwardRef(({children:e,size:r="md",className:n,...s},a)=>{const d=t.DATA_TOKENS.emptyState.iconSize[r];return o.jsx("div",{ref:a,className:E("flex items-center justify-center text-muted-foreground",d,n),...s,children:e})});Tt.displayName="EmptyStateIcon";const Ot=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx("h3",{ref:s,className:E(t.DATA_TOKENS.emptyState.typography.title.fontSize,t.DATA_TOKENS.emptyState.typography.title.fontWeight,"text-foreground",e),...n,children:r}));Ot.displayName="EmptyStateTitle";const Ee=l.forwardRef(({id:e,className:r,children:n,...s},a)=>{const d=l.useId(),i=e||`empty-state-${d}`;return o.jsx(tt,{ref:a,variant:"flat",radius:"xl",p:"lg",className:E("text-center",r),id:i,...s,children:o.jsx(ae,{gap:"md",align:"center",justify:"center",children:n})})});Ee.displayName="EmptyState";Ee.Icon=Tt;Ee.Title=Ot;Ee.Description=Er;Ee.Action=hr;const xr=l.forwardRef(({padding:e="md",className:r,children:n,...s},a)=>{const d=t.DATA_TOKENS.dataList.rowPadding[e];return o.jsx("div",{ref:a,className:E(d,"flex flex-col border-b border-border last:border-0 md:flex-row md:items-center",r),...s,children:n})});xr.displayName="DataListItem";const br=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx("dt",{ref:s,className:E("mb-1 font-semibold text-foreground md:mb-0","md:w-32",e),...n,children:r}));br.displayName="DataListLabel";const Ir=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx("dd",{ref:s,className:E("flex-1 text-muted-foreground",e),...n,children:r}));Ir.displayName="DataListValue";const we=l.forwardRef(({labelWidth:e="md",className:r,children:n,...s},a)=>o.jsx("dl",{ref:a,className:E(t.DATA_TOKENS.dataList.spacing.gap,r),...s,children:n}));we.displayName="DataListRoot";we.Item=xr;we.Label=br;we.Value=Ir;const vr=l.forwardRef(({className:e,...r},n)=>o.jsx("tbody",{ref:n,className:E(e),role:"rowgroup",...r}));vr.displayName="TableBody";const _r=l.forwardRef(({align:e="left",size:r="md",className:n,...s},a)=>{const d=t.DATA_TOKENS.table.padding.cell[r],i=t.DATA_TOKENS.table.typography.cell.fontSize,c=t.DATA_TOKENS.table.typography.cell.fontWeight,u={left:"text-left",center:"text-center",right:"text-right"};return o.jsx("td",{ref:a,className:E(d,i,c,u[e],n),role:"cell",...s})});_r.displayName="TableCell";const Kr=l.forwardRef(({colSpan:e,message:r="No data available",className:n,...s},a)=>o.jsx("tr",{ref:a,className:E(n),...s,children:o.jsx("td",{colSpan:e,className:"p-8",children:o.jsxs(Ee,{children:[o.jsx(Tt,{children:"📭"}),o.jsx(Ot,{children:r})]})})}));Kr.displayName="TableEmpty";const wr=l.forwardRef(({colSpan:e,expanded:r,children:n,className:s,...a},d)=>o.jsx("td",{ref:d,colSpan:e,className:E("p-0","overflow-hidden transition-all duration-normal ease-in-out",r?"max-h-[100vh] opacity-100":"max-h-0 opacity-0",s),...a,children:o.jsx("div",{className:E("p-md",r?"block":"hidden"),children:n})}));wr.displayName="TableExpandableContent";const pt=l.forwardRef(({direction:e,className:r,...n},s)=>o.jsx("span",{ref:s,className:E("inline-flex size-4 items-center text-muted-foreground transition-transform",e==="desc"&&"rotate-180",!e&&"opacity-30",r),"aria-hidden":"true",...n,children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"m7 15 5 5 5-5"}),o.jsx("path",{d:"m7 9 5-5 5 5"})]})}));pt.displayName="TableSortIcon";const yr=l.forwardRef(({align:e="left",sortable:r=!1,columnKey:n,size:s="md",className:a,children:d,...i},c)=>{const{sortState:u,setSortState:N}=qs(),f=l.useCallback(()=>{if(!r||!n)return;const S=u.column===n?u.direction:null;let x=null;S===null?x="asc":S==="asc"?x="desc":x=null,N({column:x?n:null,direction:x})},[r,n,u,N]),O=t.DATA_TOKENS.table.padding.header[s],m=t.DATA_TOKENS.table.typography.header.fontSize,p=t.DATA_TOKENS.table.typography.header.fontWeight,T={left:"text-left",center:"text-center",right:"text-right"},g=u.column===n?u.direction:null;return o.jsx("th",{ref:c,className:E(O,m,p,T[e],t.DATA_TOKENS.table.colors.border,"border-b",r&&"cursor-pointer select-none hover:bg-muted/50",a),onClick:f,"aria-sort":(()=>{if(g==="asc")return"ascending";if(g==="desc")return"descending";if(r)return"none"})(),role:"columnheader",...i,children:o.jsxs("div",{className:"flex items-center gap-2",children:[d,r&&o.jsx(pt,{direction:g})]})})});yr.displayName="TableHead";const Ar=l.forwardRef(({sticky:e=!1,className:r,...n},s)=>o.jsx("thead",{ref:s,className:E(e&&"sticky top-0 z-10 bg-background",r),role:"rowgroup",...n}));Ar.displayName="TableHeader";const Cr=l.forwardRef(({colSpan:e,rows:r=5,className:n,...s},a)=>o.jsx(o.Fragment,{children:Array.from({length:r}).map((d,i)=>o.jsx("tr",{ref:i===0?a:void 0,className:E(n),...s,children:Array.from({length:e}).map((c,u)=>o.jsx("td",{className:"p-sm",children:o.jsx(Sr,{variant:"text",className:"w-full"})},u))},i))}));Cr.displayName="TableLoadingState";const $r=l.forwardRef(({selected:e=!1,expandable:r=!1,rowKey:n,expanded:s=!1,className:a,...d},i)=>o.jsx("tr",{ref:i,className:E(t.DATA_TOKENS.table.colors.border,"border-b",t.DATA_TOKENS.table.colors.rowHover,e&&t.DATA_TOKENS.table.colors.rowSelected,r&&"cursor-pointer",a),"aria-expanded":r?s:void 0,role:"row",...d}));$r.displayName="TableRow";const Ys=l.createContext(null);function qs(){const e=l.useContext(Ys);if(!e)throw new Error("Table components must be used within Table.Root");return e}function Z({data:e,columns:r,rowKey:n,sortable:s=!1,expandable:a=!1,renderExpandableContent:d,loading:i=!1,emptyMessage:c="No data available",stickyHeader:u=!1,rowSize:N="md",className:f,children:O,...m}){const[p,T]=l.useState({column:null,direction:null}),[h,g]=l.useState(new Set),S=l.useCallback(b=>{g(I=>{const v=new Set(I);return v.has(b)?v.delete(b):v.add(b),v})},[]),x=l.useMemo(()=>({sortState:p,setSortState:T,expandedRows:h,toggleRow:S,expandable:a,renderExpandableContent:d}),[p,h,S,a,d]);return o.jsx(Ys.Provider,{value:x,children:o.jsx("div",{className:"overflow-x-auto",children:o.jsx("table",{className:E("w-full border-collapse",t.DATA_TOKENS.table.radius.default,t.DATA_TOKENS.table.shadow.subtle,f),role:"table",...m,children:O})})})}Z.displayName="TableRoot";Z.Header=Ar;Z.Head=yr;Z.Body=vr;Z.Row=$r;Z.Cell=_r;Z.SortIcon=pt;Z.Empty=Kr;Z.LoadingState=Cr;Z.ExpandableContent=wr;const Qs=K.cva(`inline-flex items-center justify-center ${t.NAVIGATION_TOKENS.spacing.listGap.md} ${t.NAVIGATION_TOKENS.typography.default} ${t.NAVIGATION_TOKENS.shadow.sm}`,{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col"},size:{sm:`${t.NAVIGATION_TOKENS.sizes.sm.fontSize}`,md:`${t.NAVIGATION_TOKENS.sizes.md.fontSize}`,lg:`${t.NAVIGATION_TOKENS.sizes.lg.fontSize}`}},defaultVariants:{orientation:"horizontal",size:"md"}}),Zs=K.cva(`inline-flex items-center justify-center whitespace-nowrap ${t.NAVIGATION_TOKENS.typography.fontWeight.medium} ${t.NAVIGATION_TOKENS.focus.ring} ${t.MOTION_TOKENS.transition.colors} disabled:pointer-events-none disabled:opacity-50 relative`,{variants:{size:{sm:`${t.NAVIGATION_TOKENS.sizes.sm.height} ${t.NAVIGATION_TOKENS.sizes.sm.padding.horizontal} ${t.NAVIGATION_TOKENS.sizes.sm.padding.vertical} ${t.NAVIGATION_TOKENS.sizes.sm.fontSize}`,md:`${t.NAVIGATION_TOKENS.sizes.md.height} ${t.NAVIGATION_TOKENS.sizes.md.padding.horizontal} ${t.NAVIGATION_TOKENS.sizes.md.padding.vertical} ${t.NAVIGATION_TOKENS.sizes.md.fontSize}`,lg:`${t.NAVIGATION_TOKENS.sizes.lg.height} ${t.NAVIGATION_TOKENS.sizes.lg.padding.horizontal} ${t.NAVIGATION_TOKENS.sizes.lg.padding.vertical} ${t.NAVIGATION_TOKENS.sizes.lg.fontSize}`},state:{default:`${t.NAVIGATION_TOKENS.states.default.background} ${t.NAVIGATION_TOKENS.states.default.text} ${t.NAVIGATION_TOKENS.states.hover.background} ${t.NAVIGATION_TOKENS.states.hover.text}`,selected:`${t.NAVIGATION_TOKENS.states.selected.background} ${t.NAVIGATION_TOKENS.states.selected.text} ${t.NAVIGATION_TOKENS.shadow.sm}`}},defaultVariants:{size:"md",state:"default"}}),Rr=l.createContext(void 0);function Js(){const e=l.useContext(Rr);if(!e)throw new Error("Tabs components must be used within Tabs.Root");return e}const At=l.forwardRef(({value:e,defaultValue:r,onValueChange:n,orientation:s="horizontal",className:a,children:d,...i},c)=>{const[u,N]=l.useState(r||""),f=e!==void 0,O=f?e:u,m=l.useCallback(g=>{f||N(g),n==null||n(g)},[f,n]),[p,T]=l.useState("md"),h=l.useMemo(()=>({value:O,onValueChange:m,orientation:s,size:p}),[O,m,s,p]);return o.jsx(Rr.Provider,{value:h,children:o.jsx("div",{ref:c,className:E("w-full",a),...i,children:l.Children.map(d,g=>{if(l.isValidElement(g)&&g.type===Vr){const S=g.props;return l.cloneElement(g,{...S,onSizeChange:T})}return g})})})});At.displayName="Tabs.Root";const Vr=l.forwardRef(({className:e,orientation:r,size:n="md",onSizeChange:s,children:a,...d},i)=>{const c=l.useContext(Rr),u=r||(c==null?void 0:c.orientation)||"horizontal",N=n||(c==null?void 0:c.size)||"md";return l.useEffect(()=>{s==null||s(N)},[N,s]),o.jsx("div",{ref:i,role:"tablist","aria-orientation":u,className:E(Qs({orientation:u,size:N}),e),...d,children:a})});Vr.displayName="Tabs.List";const ea=l.forwardRef(({className:e,value:r,disabled:n,size:s,children:a,...d},i)=>{const c=Js(),u=c.value===r,N=s||c.size||"md",f=l.useRef(null);l.useImperativeHandle(i,()=>f.current);const O=u?0:-1,m=l.useCallback(h=>{var I,v;if(n)return;const g=Array.from(((v=(I=f.current)==null?void 0:I.parentElement)==null?void 0:v.querySelectorAll('[role="tab"]:not([disabled])'))||[]),S=g.findIndex(_=>_===f.current);let x=S;c.orientation==="horizontal"?h.key==="ArrowLeft"?(h.preventDefault(),x=S>0?S-1:g.length-1):h.key==="ArrowRight"&&(h.preventDefault(),x=S<g.length-1?S+1:0):h.key==="ArrowUp"?(h.preventDefault(),x=S>0?S-1:g.length-1):h.key==="ArrowDown"&&(h.preventDefault(),x=S<g.length-1?S+1:0),h.key==="Home"?(h.preventDefault(),x=0):h.key==="End"&&(h.preventDefault(),x=g.length-1);const b=g[x];if(x!==S&&b){b.focus();const _=b.getAttribute("data-value");_&&c.onValueChange(_)}},[n,c]),p=l.useMemo(()=>typeof document<"u"?`tabs-trigger-${r}-${Math.random().toString(36).substr(2,9)}`:`tabs-trigger-${r}`,[r]),T=l.useMemo(()=>`tabs-content-${r}`,[r]);return o.jsxs("button",{ref:f,type:"button",role:"tab",id:p,"aria-selected":u,"aria-controls":T,tabIndex:O,disabled:n,"data-value":r,className:E(Zs({size:N,state:u?"selected":"default"}),e),onKeyDown:m,onClick:()=>!n&&c.onValueChange(r),...d,children:[a,u&&o.jsx("span",{className:E(t.NAVIGATION_TOKENS.indicator.height,t.NAVIGATION_TOKENS.indicator.background,t.NAVIGATION_TOKENS.indicator.radius,t.NAVIGATION_TOKENS.indicator.transition,t.NAVIGATION_TOKENS.indicator.position),"aria-hidden":"true"})]})});ea.displayName="Tabs.Trigger";const ta=l.forwardRef(({className:e,value:r,forceMount:n,children:s,...a},d)=>{const c=Js().value===r,u=l.useMemo(()=>typeof document<"u"?`tabs-content-${r}-${Math.random().toString(36).substr(2,9)}`:`tabs-content-${r}`,[r]),N=l.useMemo(()=>`tabs-trigger-${r}`,[r]),[f,O]=l.useState(n||!1);return l.useEffect(()=>{typeof document<"u"&&O(!0)},[]),!f&&!n&&!c?null:o.jsx("div",{ref:d,role:"tabpanel",id:u,"aria-labelledby":N,hidden:!c,className:E("mt-2",c?"block":"hidden",t.NAVIGATION_TOKENS.focus.ring,e),...a,children:s})});ta.displayName="Tabs.Content";const ti=Object.assign(At,{Root:At,List:Vr,Trigger:ea,Content:ta}),ra=K.cva(`inline-flex items-center ${t.NAVIGATION_TOKENS.spacing.listGap.xs} ${t.NAVIGATION_TOKENS.radius.default} ${t.NAVIGATION_TOKENS.shadow.sm} ${t.NAVIGATION_TOKENS.container.padding.xs} ${t.NAVIGATION_TOKENS.container.background.muted}`,{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col"},size:{sm:`${t.NAVIGATION_TOKENS.sizes.sm.fontSize}`,md:`${t.NAVIGATION_TOKENS.sizes.md.fontSize}`,lg:`${t.NAVIGATION_TOKENS.sizes.lg.fontSize}`}},defaultVariants:{orientation:"horizontal",size:"md"}}),na=K.cva(`inline-flex items-center justify-center whitespace-nowrap ${t.NAVIGATION_TOKENS.typography.fontWeight.medium} ${t.NAVIGATION_TOKENS.focus.ring} ${t.MOTION_TOKENS.transition.all} disabled:pointer-events-none disabled:opacity-50 relative`,{variants:{size:{sm:`${t.NAVIGATION_TOKENS.sizes.sm.height} ${t.NAVIGATION_TOKENS.sizes.sm.padding.horizontal} ${t.NAVIGATION_TOKENS.sizes.sm.padding.vertical} ${t.NAVIGATION_TOKENS.sizes.sm.fontSize} ${t.NAVIGATION_TOKENS.radius.default}`,md:`${t.NAVIGATION_TOKENS.sizes.md.height} ${t.NAVIGATION_TOKENS.sizes.md.padding.horizontal} ${t.NAVIGATION_TOKENS.sizes.md.padding.vertical} ${t.NAVIGATION_TOKENS.sizes.md.fontSize} ${t.NAVIGATION_TOKENS.radius.default}`,lg:`${t.NAVIGATION_TOKENS.sizes.lg.height} ${t.NAVIGATION_TOKENS.sizes.lg.padding.horizontal} ${t.NAVIGATION_TOKENS.sizes.lg.padding.vertical} ${t.NAVIGATION_TOKENS.sizes.lg.fontSize} ${t.NAVIGATION_TOKENS.radius.default}`},state:{default:`${t.NAVIGATION_TOKENS.states.default.background} ${t.NAVIGATION_TOKENS.states.default.text} ${t.NAVIGATION_TOKENS.states.hover.background} ${t.NAVIGATION_TOKENS.states.hover.text}`,selected:`${t.NAVIGATION_TOKENS.states.selected.background} ${t.NAVIGATION_TOKENS.states.selected.text} ${t.NAVIGATION_TOKENS.shadow.sm}`}},defaultVariants:{size:"md",state:"default"}}),sa=l.createContext(void 0);function ri(){const e=l.useContext(sa);if(!e)throw new Error("SegmentedControl components must be used within SegmentedControl.Root");return e}const Ct=l.forwardRef(({value:e,defaultValue:r,onValueChange:n,name:s,orientation:a="horizontal",size:d="md",className:i,children:c,...u},N)=>{const[f,O]=l.useState(r||""),m=e!==void 0,p=m?e:f,T=l.useMemo(()=>s||(typeof document<"u"?`segmented-control-${Math.random().toString(36).substr(2,9)}`:"segmented-control"),[s]),h=l.useCallback(S=>{m||O(S),n==null||n(S)},[m,n]),g=l.useMemo(()=>({value:p,onValueChange:h,name:T,orientation:a??"horizontal",size:d??"md"}),[p,h,T,a,d]);return o.jsx(sa.Provider,{value:g,children:o.jsx("div",{ref:N,role:"radiogroup","aria-orientation":a??"horizontal",className:E(ra({orientation:a,size:d}),i),...u,children:c})})});Ct.displayName="SegmentedControl.Root";const aa=l.forwardRef(({className:e,value:r,disabled:n,size:s,children:a,...d},i)=>{const c=ri(),u=c.value===r,N=s||c.size||"md",f=l.useRef(null);l.useImperativeHandle(i,()=>f.current);const O=u?0:-1,m=l.useCallback(p=>{var x,b;if(n)return;const T=Array.from(((b=(x=f.current)==null?void 0:x.parentElement)==null?void 0:b.querySelectorAll('[role="radio"]:not([disabled])'))||[]),h=T.findIndex(I=>I===f.current);let g=h;c.orientation==="horizontal"?p.key==="ArrowLeft"?(p.preventDefault(),g=h>0?h-1:T.length-1):p.key==="ArrowRight"&&(p.preventDefault(),g=h<T.length-1?h+1:0):p.key==="ArrowUp"?(p.preventDefault(),g=h>0?h-1:T.length-1):p.key==="ArrowDown"&&(p.preventDefault(),g=h<T.length-1?h+1:0),c.orientation==="horizontal"?(p.key==="ArrowUp"||p.key==="ArrowDown")&&(p.preventDefault(),p.key==="ArrowUp"?g=h>0?h-1:T.length-1:g=h<T.length-1?h+1:0):(p.key==="ArrowLeft"||p.key==="ArrowRight")&&(p.preventDefault(),p.key==="ArrowLeft"?g=h>0?h-1:T.length-1:g=h<T.length-1?h+1:0);const S=T[g];if(g!==h&&S){S.focus();const I=S.getAttribute("data-value");I&&c.onValueChange(I)}},[n,c]);return o.jsx("button",{ref:f,type:"button",role:"radio","aria-checked":u,tabIndex:O,disabled:n,"data-value":r,name:c.name,className:E(na({size:N,state:u?"selected":"default"}),e),onKeyDown:m,onClick:()=>!n&&c.onValueChange(r),...d,children:a})});aa.displayName="SegmentedControl.Item";const ni=Object.assign(Ct,{Root:Ct,Item:aa}),$t=l.forwardRef(({items:e,separator:r,ariaLabel:n="Breadcrumb",className:s,children:a,...d},i)=>{const c=e.length-1,u=o.jsx(D.ChevronRight,{className:E("h-4 w-4",t.NAVIGATION_TOKENS.states.default.text),"aria-hidden":"true"});return o.jsx("nav",{ref:i,"aria-label":n,className:E(t.NAVIGATION_TOKENS.typography.default,s),...d,children:o.jsxs("ol",{className:E("flex items-center",t.NAVIGATION_TOKENS.spacing.listGap.sm),children:[e.map((N,f)=>{const O=f===c;return o.jsxs(jr,{isLast:O,disabled:N.disabled,children:[f>0&&o.jsx(zr,{children:r||u}),N.href&&!O&&!N.disabled?o.jsx("a",{href:N.href,className:E(t.NAVIGATION_TOKENS.states.default.text,t.NAVIGATION_TOKENS.states.hover.text,t.MOTION_TOKENS.transition.colors),children:N.label}):o.jsx("span",{className:E(O?t.NAVIGATION_TOKENS.typography.fontWeight.medium:t.NAVIGATION_TOKENS.states.default.text,N.disabled&&t.NAVIGATION_TOKENS.states.disabled.text),"aria-current":O?"page":void 0,children:N.label})]},`${N.label}-${f}`)}),a]})})});$t.displayName="Breadcrumbs.Root";const jr=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx("li",{ref:s,className:E("flex items-center",e),...n,children:r}));jr.displayName="Breadcrumbs.Item";const zr=l.forwardRef(({className:e,children:r,...n},s)=>o.jsx("span",{ref:s,className:E("mx-1",t.NAVIGATION_TOKENS.states.default.text,e),"aria-hidden":"true",...n,children:r}));zr.displayName="Breadcrumbs.Separator";const si=Object.assign($t,{Root:$t,Item:jr,Separator:zr}),Mr="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background transition-shadow";function ai(e,r,n=2){const a=r;if(r<=1)return[1];const d=[],i=[],c=Math.max(2,e-n),u=Math.min(a-1,e+n);for(let N=c;N<=u;N++)d.push(N);return e-n>2?i.push(1,"..."):i.push(1),i.push(...d),e+n<a-1?i.push("...",a):a!==1&&i.push(a),i}const Rt=l.forwardRef(({currentPage:e,totalPages:r,onPageChange:n,delta:s=2,ariaLabel:a="Pagination",className:d,children:i,...c},u)=>{const N=Math.max(1,r),f=Math.min(Math.max(1,e),N),O=l.useCallback(p=>{const T=Math.min(Math.max(p,1),N);T!==f&&n(T)},[f,N,n]),m=l.useMemo(()=>ai(f,N,s),[f,N,s]);return o.jsxs("nav",{ref:u,"aria-label":a,className:E("flex items-center",t.NAVIGATION_TOKENS.spacing.listGap.xs,d),...c,children:[o.jsx(Pr,{disabled:f===1,onClick:()=>O(f-1)}),m.map((p,T)=>o.jsx(l.Fragment,{children:p==="..."?o.jsx(Ur,{}):o.jsx(kr,{page:p,isCurrent:p===f,onClick:()=>O(p)})},`${p}-${T}`)),o.jsx(Dr,{disabled:f===N,onClick:()=>O(f+1)}),i]})});Rt.displayName="Pagination.Root";const kr=l.forwardRef(({className:e,page:r,isCurrent:n,disabled:s,onClick:a,...d},i)=>r==="..."?null:o.jsx("button",{ref:i,type:"button",onClick:a,disabled:s,"aria-label":`Go to page ${r}`,"aria-current":n?"page":void 0,"aria-disabled":s,className:E(t.NAVIGATION_TOKENS.sizes.md.height,t.NAVIGATION_TOKENS.sizes.md.padding.horizontal,t.NAVIGATION_TOKENS.sizes.md.padding.vertical,t.NAVIGATION_TOKENS.radius.default,t.NAVIGATION_TOKENS.sizes.md.fontSize,t.NAVIGATION_TOKENS.typography.fontWeight.medium,"border",t.MOTION_TOKENS.transition.colors,n?`${t.NAVIGATION_TOKENS.states.selected.background} ${t.NAVIGATION_TOKENS.states.selected.text} ${t.NAVIGATION_TOKENS.states.selected.border} ${t.NAVIGATION_TOKENS.shadow.sm}`:`${t.NAVIGATION_TOKENS.states.default.border} border-input ${t.NAVIGATION_TOKENS.states.default.background} ${t.NAVIGATION_TOKENS.states.default.text} ${t.NAVIGATION_TOKENS.states.hover.background} ${t.NAVIGATION_TOKENS.states.hover.text}`,s&&t.NAVIGATION_TOKENS.states.disabled.cursor,Mr,e),...d,children:r}));kr.displayName="Pagination.Item";const Pr=l.forwardRef(({className:e,disabled:r,onClick:n,...s},a)=>o.jsxs("button",{ref:a,type:"button",onClick:n,disabled:r,"aria-label":"Previous page","aria-disabled":r,className:E(t.NAVIGATION_TOKENS.sizes.md.height,t.NAVIGATION_TOKENS.sizes.md.padding.horizontal,t.NAVIGATION_TOKENS.sizes.md.padding.vertical,t.NAVIGATION_TOKENS.radius.default,t.NAVIGATION_TOKENS.sizes.md.fontSize,"border border-input",t.MOTION_TOKENS.transition.colors,`${t.NAVIGATION_TOKENS.states.default.background} ${t.NAVIGATION_TOKENS.states.default.text} ${t.NAVIGATION_TOKENS.states.hover.background} ${t.NAVIGATION_TOKENS.states.hover.text}`,r&&t.NAVIGATION_TOKENS.states.disabled.cursor,Mr,e),...s,children:[o.jsx(D.ChevronLeft,{className:"h-4 w-4","aria-hidden":"true"}),o.jsx("span",{className:"sr-only",children:"Previous"})]}));Pr.displayName="Pagination.Prev";const Dr=l.forwardRef(({className:e,disabled:r,onClick:n,...s},a)=>o.jsxs("button",{ref:a,type:"button",onClick:n,disabled:r,"aria-label":"Next page","aria-disabled":r,className:E(t.NAVIGATION_TOKENS.sizes.md.height,t.NAVIGATION_TOKENS.sizes.md.padding.horizontal,t.NAVIGATION_TOKENS.sizes.md.padding.vertical,t.NAVIGATION_TOKENS.radius.default,t.NAVIGATION_TOKENS.sizes.md.fontSize,"border border-input",t.MOTION_TOKENS.transition.colors,`${t.NAVIGATION_TOKENS.states.default.background} ${t.NAVIGATION_TOKENS.states.default.text} ${t.NAVIGATION_TOKENS.states.hover.background} ${t.NAVIGATION_TOKENS.states.hover.text}`,r&&t.NAVIGATION_TOKENS.states.disabled.cursor,Mr,e),...s,children:[o.jsx(D.ChevronRight,{className:"h-4 w-4","aria-hidden":"true"}),o.jsx("span",{className:"sr-only",children:"Next"})]}));Dr.displayName="Pagination.Next";const Ur=l.forwardRef(({className:e,...r},n)=>o.jsx("span",{ref:n,className:E(t.NAVIGATION_TOKENS.sizes.md.padding.horizontal,t.NAVIGATION_TOKENS.sizes.md.padding.vertical,t.NAVIGATION_TOKENS.states.default.text,t.ICON_TOKENS.colors.muted,e),"aria-hidden":"true",...r,children:"…"}));Ur.displayName="Pagination.Ellipsis";const oi=Object.assign(Rt,{Root:Rt,Item:kr,Prev:Pr,Next:Dr,Ellipsis:Ur}),Vt=l.forwardRef(({steps:e,activeStep:r,orientation:n="horizontal",showNumbers:s=!0,className:a,children:d,...i},c)=>{const u=Math.min(Math.max(0,r),e.length-1);return o.jsxs("div",{ref:c,className:E("flex",n==="horizontal"?"flex-row items-start":"flex-col",t.NAVIGATION_TOKENS.spacing.listGap.md,a),...i,children:[e.map((N,f)=>{const O=f===u,m=f<u;return o.jsx(Lr,{step:N,index:f,isActive:O,isCompleted:m,showNumber:s,orientation:n},N.id)}),d]})});Vt.displayName="Stepper.Root";const Lr=l.forwardRef(({className:e,step:r,index:n,isActive:s,isCompleted:a,showNumber:d=!0,orientation:i="horizontal",...c},u)=>o.jsxs("div",{ref:u,className:E("flex items-start",i==="horizontal"?"flex-col":"flex-row",t.NAVIGATION_TOKENS.spacing.listGap.sm,e),...c,children:[o.jsx(Br,{index:n,isActive:s,isCompleted:a,disabled:r.disabled,icon:r.icon,showNumber:d}),o.jsx(Gr,{label:r.label,description:r.description,isActive:s})]}));Lr.displayName="Stepper.Item";const Br=l.forwardRef(({className:e,index:r,isActive:n,isCompleted:s,disabled:a,icon:d,showNumber:i=!0,...c},u)=>{const N=E(t.NAVIGATION_TOKENS.sizes.sm.height,t.NAVIGATION_TOKENS.sizes.sm.width,"flex items-center justify-center",t.NAVIGATION_TOKENS.radius.full,t.NAVIGATION_TOKENS.typography.fontWeight.medium,t.NAVIGATION_TOKENS.sizes.sm.fontSize,"border-2",t.MOTION_TOKENS.transition.colors);return s?o.jsx("div",{ref:u,className:E(N,`${t.NAVIGATION_TOKENS.states.selected.background} ${t.NAVIGATION_TOKENS.states.selected.text} ${t.NAVIGATION_TOKENS.states.selected.border}`,e),"aria-current":n?"step":void 0,...c,children:o.jsx(D.Check,{className:"h-4 w-4","aria-hidden":"true"})}):n?o.jsx("div",{ref:u,className:E(N,`${t.NAVIGATION_TOKENS.states.selected.background} ${t.NAVIGATION_TOKENS.states.selected.text} ${t.NAVIGATION_TOKENS.states.selected.border}`,e),"aria-current":"step",...c,children:d||i&&o.jsx("span",{children:r+1})}):o.jsx("div",{ref:u,className:E(N,`${t.NAVIGATION_TOKENS.states.default.border} ${t.NAVIGATION_TOKENS.border.muted} ${t.NAVIGATION_TOKENS.states.default.background} ${t.NAVIGATION_TOKENS.states.default.text}`,a&&t.NAVIGATION_TOKENS.states.disabled.text,e),...c,children:d||i&&o.jsx("span",{children:r+1})})});Br.displayName="Stepper.Indicator";const Gr=l.forwardRef(({className:e,label:r,description:n,isActive:s,...a},d)=>o.jsxs("div",{ref:d,className:E("flex flex-col",t.NAVIGATION_TOKENS.spacing.listGap.xs,e),...a,children:[o.jsx("span",{className:E(t.NAVIGATION_TOKENS.typography.default,s?t.NAVIGATION_TOKENS.typography.fontWeight.semibold:t.NAVIGATION_TOKENS.typography.fontWeight.normal,s?t.NAVIGATION_TOKENS.states.selected.text:t.NAVIGATION_TOKENS.states.default.text),children:r}),n&&o.jsx("span",{className:E(t.NAVIGATION_TOKENS.typography.sm,t.NAVIGATION_TOKENS.states.default.text,t.ICON_TOKENS.colors.muted),children:n})]}));Gr.displayName="Stepper.Label";const oa=l.forwardRef(({className:e,isActive:r,children:n,...s},a)=>r?o.jsx("div",{ref:a,className:E(t.NAVIGATION_TOKENS.spacing.content.marginTop,e),...s,children:n}):null);oa.displayName="Stepper.Content";const ii=Object.assign(Vt,{Root:Vt,Item:Lr,Indicator:Br,Label:Gr,Content:oa}),ia=K.cva("shrink-0",{variants:{size:{sm:t.ICON_TOKENS.sizes.sm,md:t.ICON_TOKENS.sizes.md,lg:t.ICON_TOKENS.sizes.lg,xl:t.ICON_TOKENS.sizes.xl},color:{default:t.ICON_TOKENS.colors.default,muted:t.ICON_TOKENS.colors.muted,success:t.ICON_TOKENS.colors.success,warning:t.ICON_TOKENS.colors.warning,danger:t.ICON_TOKENS.colors.danger,info:t.ICON_TOKENS.colors.info},stroke:{thin:t.ICON_TOKENS.stroke.thin,normal:t.ICON_TOKENS.stroke.normal,bold:t.ICON_TOKENS.stroke.bold}},defaultVariants:{size:"md",color:"default",stroke:"normal"}}),de=l.forwardRef(({name:e,size:r,color:n,stroke:s,className:a,asChild:d=!1,...i},c)=>{const u=It[e]||It.error;if(!u)return null;const{name:N,asChild:f,size:O,color:m,stroke:p,...T}=i,h=o.jsx(u,{className:E(ia({size:r,color:n,stroke:s}),a),ref:c,...T});return d?o.jsx(qe.Slot,{children:h}):h});de.displayName="Icon";function P(e){if(e===!0)return!0;if(e===!1||typeof window>"u")return!1;try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}const Ae={fadeIn:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-in"}),fadeOut:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-out"}),fadeInUp:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-slide-up"}),fadeInDown:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-slide-down"}),fadeInLeft:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-slide-left"}),fadeInRight:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-slide-right"})},Le={slideInUp:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-slide-up"}),slideInDown:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-slide-down"}),slideInLeft:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-slide-left"}),slideInRight:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-slide-right"}),slideOutUp:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-slide-up-out"}),slideOutDown:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-slide-down-out"}),slideOutLeft:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-slide-left-out"}),slideOutRight:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-fade-slide-right-out"})},li={scaleIn:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-scale-in"}),scaleOut:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-scale-out"}),scaleUp:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-hover-scale"}),scaleDown:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-tap-scale"})},Et={hoverLift:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-hover-lift"}),hoverScale:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-hover-scale"}),tapScale:e=>({className:P(e==null?void 0:e.reducedMotion)?"":"tm-motion-tap-scale"})};function di(e){if(e){if(typeof e=="object")return e;switch(e){case"fadeIn":return Ae.fadeIn();case"fadeInUp":return Ae.fadeInUp();case"fadeInDown":return Ae.fadeInDown();case"fadeInLeft":return Ae.fadeInLeft();case"fadeInRight":return Ae.fadeInRight();case"slideInUp":return Le.slideInUp();case"slideInDown":return Le.slideInDown();case"slideInLeft":return Le.slideInLeft();case"slideInRight":return Le.slideInRight();case"scaleIn":return li.scaleIn();default:return}}}function ci(e){if(e){if(typeof e=="object")return e;switch(e){case"hoverLift":return Et.hoverLift();case"hoverScale":return Et.hoverScale();case"tapScale":return Et.tapScale();default:return}}}function gt(e){if(!e)return{};const r=di(e.animation),n=ci(e.hoverAnimation),s=e.animationProps||{};return{...r,...n,...s}}const ui=K.cva(`${t.DOMAIN_TOKENS.surface.bg.default} ${t.DOMAIN_TOKENS.surface.border.default} ${t.DOMAIN_TOKENS.surface.radius.default} ${t.DOMAIN_TOKENS.surface.shadow.default} ${t.DOMAIN_TOKENS.surface.bg.hover} ${t.DOMAIN_TOKENS.surface.border.hover} ${t.DOMAIN_TOKENS.surface.elevation.hover} ${t.DOMAIN_TOKENS.motion.hover.transition} overflow-hidden`,{variants:{size:{default:`${t.DOMAIN_TOKENS.layout.padding.default} ${t.DOMAIN_TOKENS.layout.gap.default}`,compact:`${t.DOMAIN_TOKENS.layout.padding.compact} ${t.DOMAIN_TOKENS.layout.gap.compact}`},variant:{default:"",featured:`${t.DOMAIN_TOKENS.badges.surface.featured}`}},defaultVariants:{size:"default",variant:"default"}}),fi=K.cva(`${t.DOMAIN_TOKENS.image.aspectRatio} ${t.DOMAIN_TOKENS.image.radius} overflow-hidden`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),Ni=K.cva("flex flex-col",{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),mi=K.cva("flex",{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),ze=l.forwardRef(({size:e="default",variant:r="default",className:n,children:s,...a},d)=>o.jsx("div",{ref:d,className:E(ui({size:e,variant:r}),n),...a,children:s}));ze.displayName="CardBase";const Me=l.forwardRef(({size:e="default",className:r,children:n,...s},a)=>o.jsx("div",{ref:a,className:E(fi({size:e}),r),...s,children:n}));Me.displayName="CardBaseImageWrapper";const ke=l.forwardRef(({size:e="default",className:r,children:n,...s},a)=>o.jsx(ae,{ref:a,direction:"vertical",className:E(Ni({size:e}),r),...s,children:n}));ke.displayName="CardBaseContentWrapper";const Pe=l.forwardRef(({size:e="default",className:r,children:n,...s},a)=>o.jsx("div",{ref:a,className:E(mi({size:e}),r),...s,children:n}));Pe.displayName="CardBaseFooterWrapper";const Ti=K.cva("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"text-primary hover:text-primary/80 underline-offset-4 hover:underline",secondary:"text-secondary-foreground underline-offset-4 hover:underline",accent:"text-accent-foreground hover:text-accent-foreground/80 underline-offset-4 hover:underline",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-md px-md py-sm",ghost:"text-foreground hover:text-accent-foreground hover:bg-accent rounded-md px-sm py-sm",link:"text-primary underline-offset-4 hover:underline",destructive:"text-destructive hover:text-destructive/80 underline-offset-4 hover:underline"},size:{xs:"h-7 text-xs px-xs py-xs",sm:"h-8 text-xs px-sm py-xs",md:"h-9 text-sm px-md py-sm",lg:"h-10 text-sm px-lg py-sm",xl:"h-11 text-base px-xl py-md"}},defaultVariants:{variant:"link",size:"md"}}),fe=l.forwardRef(({className:e,variant:r,size:n,asChild:s=!1,leftIcon:a,rightIcon:d,children:i,...c},u)=>{const N=s?qe.Slot:"a";return o.jsxs(N,{className:E(Ti({variant:r,size:n,className:e})),ref:u,...c,children:[a&&o.jsx("span",{className:"inline-flex items-center",children:a}),i,d&&o.jsx("span",{className:"inline-flex items-center",children:d})]})});fe.displayName="Link";const Oi=K.cva("group relative",{variants:{size:{default:"",compact:""},variant:{default:"",featured:""}},defaultVariants:{size:"default",variant:"default"}}),pi=K.cva("absolute z-10",{variants:{size:{default:t.DOMAIN_TOKENS.badges.position.default,compact:t.DOMAIN_TOKENS.badges.position.compact}},defaultVariants:{size:"default"}}),gi=K.cva(`inline-flex items-center ${t.DOMAIN_TOKENS.badges.radius} ${t.DOMAIN_TOKENS.badges.shadow} ${t.DOMAIN_TOKENS.badges.text.color} ${t.TEXT_TOKENS.fontSize.xs} ${t.TEXT_TOKENS.fontWeight.semibold}`,{variants:{size:{default:t.DOMAIN_TOKENS.badges.size.md,compact:t.DOMAIN_TOKENS.badges.size.sm},variant:{default:t.DOMAIN_TOKENS.badges.surface.default,featured:t.DOMAIN_TOKENS.badges.surface.featured}},defaultVariants:{size:"default",variant:"featured"}}),Si=K.cva(`absolute inset-0 ${t.DOMAIN_TOKENS.image.overlay.gradient} opacity-0 ${t.MOTION_TOKENS.transition.opacity} ${t.MOTION_TOKENS.duration.normal} group-hover:opacity-100`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),hi=K.cva(`object-cover ${t.MOTION_TOKENS.transition.transform} ${t.MOTION_TOKENS.duration.slow} ${t.DOMAIN_TOKENS.motion.hover.scale}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),Ei=K.cva(`flex flex-col ${t.DOMAIN_TOKENS.metadata.spacing.vertical}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),sn=K.cva(`flex items-center ${t.DOMAIN_TOKENS.metadata.spacing.horizontal} ${t.DOMAIN_TOKENS.metadata.text.secondary} ${t.TEXT_TOKENS.fontSize.xs}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),an=K.cva(`${t.ICON_TOKENS.sizes.md} ${t.ICON_TOKENS.colors.muted}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),xi=K.cva(`${t.DOMAIN_TOKENS.metadata.text.secondary} ${t.TEXT_TOKENS.fontSize.xs}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),bi=K.cva("border-t border-border",{variants:{size:{default:t.DOMAIN_TOKENS.spacing.footer.paddingTopDefault,compact:t.DOMAIN_TOKENS.spacing.footer.paddingTopCompact}},defaultVariants:{size:"default"}}),la=l.forwardRef(({name:e,description:r,genres:n,followers:s,plays:a,imageUrl:d,href:i,featured:c=!1,showImage:u=!0,popularBadgeText:N,followersLabel:f,playsLabel:O,size:m="default",variant:p,className:T,animation:h,...g},S)=>{if(!e||e.trim()==="")throw new Error('ArtistCard: "name" prop is required and cannot be empty');if(!f||f.trim()==="")throw new Error('ArtistCard: "followersLabel" prop is required and cannot be empty');if(!O||O.trim()==="")throw new Error('ArtistCard: "playsLabel" prop is required and cannot be empty');const x=gt({animation:(h==null?void 0:h.animation)||"fadeInUp",hoverAnimation:(h==null?void 0:h.hoverAnimation)||"hoverLift",animationProps:h==null?void 0:h.animationProps}),b=p||(c?"featured":"default");return o.jsx(q,{...x,children:o.jsxs(ze,{ref:S,size:m,variant:b,className:E(Oi({size:m,variant:p}),T),...g,children:[c&&N&&o.jsx("div",{className:pi({size:m}),children:o.jsx("span",{className:gi({size:m,variant:"featured"}),children:N})}),u&&o.jsx(Me,{size:m,children:o.jsxs("div",{className:"relative w-full overflow-hidden bg-gradient-to-br from-muted to-muted/50",children:[d?o.jsx("img",{src:d,alt:e,className:E("h-full w-full",hi({size:m}))}):o.jsx("div",{className:"flex h-full w-full items-center justify-center",children:o.jsx(de,{name:"info",size:"xl",color:"muted",className:t.ICON_TOKENS.sizes["4xl"],"aria-hidden":"true"})}),o.jsx("div",{className:Si({size:m})})]})}),o.jsxs(ke,{size:m,children:[o.jsx(Se,{level:3,className:E("line-clamp-2",t.TEXT_TOKENS.fontSize.lg,t.TEXT_TOKENS.fontWeight.bold,t.MOTION_TOKENS.transition.colors,"group-hover:text-primary",m==="compact"?t.DOMAIN_TOKENS.spacing.section.titleToSubtitle:t.DOMAIN_TOKENS.spacing.section.subtitleToMetadata),children:i?o.jsx(fe,{href:i,variant:"ghost",children:e}):e}),r&&o.jsx(W,{size:"sm",variant:"muted",className:E("line-clamp-2",m==="compact"?t.DOMAIN_TOKENS.spacing.section.titleToSubtitle:t.DOMAIN_TOKENS.spacing.section.subtitleToMetadata),children:r}),n&&o.jsx(W,{size:"xs",variant:"muted",className:E(xi({size:m}),m==="compact"?t.DOMAIN_TOKENS.spacing.section.titleToSubtitle:t.DOMAIN_TOKENS.spacing.section.subtitleToMetadata),children:n}),(s!==void 0||a!==void 0)&&o.jsxs("div",{className:Ei({size:m}),children:[s!==void 0&&o.jsxs("div",{className:sn({size:m}),children:[o.jsx(de,{name:"info",size:"sm",color:"muted",className:an({size:m}),"aria-hidden":"true"}),o.jsxs(W,{size:"xs",variant:"muted",children:[s.toLocaleString()," ",f]})]}),a!==void 0&&o.jsxs("div",{className:sn({size:m}),children:[o.jsx(de,{name:"info",size:"sm",color:"muted",className:an({size:m}),"aria-hidden":"true"}),o.jsxs(W,{size:"xs",variant:"muted",children:[a.toLocaleString()," ",O]})]})]})]}),(s!==void 0||a!==void 0)&&o.jsx(Pe,{size:m,children:o.jsx("div",{className:bi({size:m})})})]})})});la.displayName="ArtistCard";const Ii=K.cva("absolute z-10",{variants:{size:{default:t.DOMAIN_TOKENS.badges.position.default,compact:t.DOMAIN_TOKENS.badges.position.compact}},defaultVariants:{size:"default"}}),vi=K.cva(`inline-flex items-center ${t.DOMAIN_TOKENS.badges.radius} ${t.DOMAIN_TOKENS.badges.shadow} ${t.DOMAIN_TOKENS.badges.size.sm} ${t.DOMAIN_TOKENS.badges.text.color} ${t.TEXT_TOKENS.fontSize.xs} font-semibold`,{variants:{variant:{default:t.DOMAIN_TOKENS.badges.surface.default,featured:t.DOMAIN_TOKENS.badges.surface.featured}},defaultVariants:{variant:"featured"}}),_i=K.cva(`flex flex-col ${t.DOMAIN_TOKENS.metadata.spacing.vertical}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),on=K.cva(`flex items-center ${t.DOMAIN_TOKENS.metadata.spacing.horizontal} ${t.DOMAIN_TOKENS.metadata.text.secondary} ${t.TEXT_TOKENS.fontSize.xs}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),ln=K.cva(`${t.ICON_TOKENS.sizes.md} ${t.ICON_TOKENS.colors.muted}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),Ki=K.cva("border-t border-border",{variants:{size:{default:t.DOMAIN_TOKENS.spacing.footer.paddingTopDefault,compact:t.DOMAIN_TOKENS.spacing.footer.paddingTopCompact}},defaultVariants:{size:"default"}}),wi=K.cva(`inline-flex items-center justify-center ${t.DOMAIN_TOKENS.badges.surface.featured} ${t.DOMAIN_TOKENS.badges.text.color} ${t.DOMAIN_TOKENS.badges.shadow} ${t.DOMAIN_TOKENS.motion.hover.transition} font-semibold transform`,{variants:{size:{default:t.DOMAIN_TOKENS.spacing.button.paddingDefault,compact:t.DOMAIN_TOKENS.spacing.button.paddingCompact}},defaultVariants:{size:"default"}}),yi=K.cva(`${t.ICON_TOKENS.sizes.md} ${t.DOMAIN_TOKENS.spacing.button.iconMarginLeft}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),Ai=K.cva("bg-gradient-to-r from-accent-500 to-primary-600 bg-clip-text text-transparent",{variants:{size:{default:t.TEXT_TOKENS.fontSize.lg,compact:t.TEXT_TOKENS.fontSize.md}},defaultVariants:{size:"default"}}),da=l.forwardRef(({title:e,description:r,date:n,venueName:s,price:a,imageUrl:d,href:i,ticketUrl:c,featured:u=!1,showImage:N=!0,getTicketsLabel:f,featuredBadgeText:O,size:m="default",variant:p,className:T,animation:h,...g},S)=>{const x=gt({animation:(h==null?void 0:h.animation)||"fadeInUp",hoverAnimation:(h==null?void 0:h.hoverAnimation)||"hoverLift",animationProps:h==null?void 0:h.animationProps}),b=p||(u?"featured":"default");return o.jsx(q,{...x,children:o.jsxs(ze,{ref:S,size:m,variant:b,className:E("group relative",T),...g,children:[u&&O&&o.jsx("div",{className:Ii({size:m}),children:o.jsx("span",{className:vi({variant:"featured"}),children:O})}),N&&o.jsx(Me,{size:m,children:o.jsxs("div",{className:"relative w-full overflow-hidden bg-gradient-to-br from-surface-elevated1 to-surface-elevated2",children:[d?o.jsx("img",{src:d,alt:e,className:E("h-full w-full object-cover",t.DOMAIN_TOKENS.motion.hover.transition,t.DOMAIN_TOKENS.motion.hover.scale)}):o.jsx("div",{className:"flex h-full w-full items-center justify-center",children:o.jsx(de,{name:"info",size:"xl",color:"muted",className:t.ICON_TOKENS.sizes["4xl"],"aria-hidden":"true"})}),o.jsx("div",{className:E("absolute inset-0 opacity-0 transition-opacity duration-normal group-hover:opacity-100",t.DOMAIN_TOKENS.image.overlay.gradient)})]})}),o.jsxs(ke,{size:m,children:[o.jsx(Se,{level:3,className:E("line-clamp-2 transition-colors group-hover:text-primary",t.TEXT_TOKENS.fontSize.lg,t.TEXT_TOKENS.fontWeight.bold,t.DOMAIN_TOKENS.spacing.section.titleToSubtitle),children:i?o.jsx(fe,{href:i,variant:"ghost",children:e}):e}),r&&o.jsx(W,{size:"sm",muted:!0,className:E("line-clamp-2",m==="compact"?t.DOMAIN_TOKENS.spacing.section.titleToSubtitle:t.DOMAIN_TOKENS.spacing.section.subtitleToMetadata),children:r}),o.jsxs("div",{className:_i({size:m}),children:[n&&o.jsxs("div",{className:on({size:m}),children:[o.jsx(Qe,{className:ln({size:m})}),o.jsx(W,{size:"xs",muted:!0,children:n})]}),s&&o.jsxs("div",{className:on({size:m}),children:[o.jsx(Je,{className:ln({size:m})}),o.jsx(W,{size:"xs",muted:!0,className:"line-clamp-1",children:s})]})]})]}),o.jsx(Pe,{size:m,children:o.jsxs("div",{className:E("w-full",Ki({size:m})),children:[c&&o.jsxs(fe,{href:c,className:E("w-full",wi({size:m})),target:"_blank",rel:"noopener noreferrer",children:[f,o.jsx(ce,{className:yi({size:m})})]}),!c&&a&&o.jsx("div",{className:"text-right",children:o.jsx(W,{size:m==="compact"?"md":"lg",weight:"bold",children:o.jsx("span",{className:Ai({size:m}),children:a})})})]})})]})})});da.displayName="EventCard";const Ci=K.cva("absolute z-10",{variants:{size:{default:t.DOMAIN_TOKENS.badges.position.default,compact:t.DOMAIN_TOKENS.badges.position.compact}},defaultVariants:{size:"default"}}),$i=K.cva(`inline-flex items-center ${t.DOMAIN_TOKENS.badges.radius} ${t.DOMAIN_TOKENS.badges.shadow} ${t.DOMAIN_TOKENS.badges.size.sm} ${t.DOMAIN_TOKENS.badges.text.color} ${t.TEXT_TOKENS.fontSize.xs} font-semibold`,{variants:{variant:{default:t.DOMAIN_TOKENS.badges.surface.default,featured:t.DOMAIN_TOKENS.badges.surface.featured}},defaultVariants:{variant:"featured"}}),dn=K.cva(`inline-flex items-center justify-center ${t.BUTTON_TOKENS.radius} ${t.BUTTON_TOKENS.variant.primary.background} ${t.BUTTON_TOKENS.variant.primary.text} ${t.BUTTON_TOKENS.shadow.primary} ${t.BUTTON_TOKENS.variant.primary.hover} ${t.BUTTON_TOKENS.transition.colors} font-semibold`,{variants:{size:{default:`${t.BUTTON_TOKENS.height.md} ${t.BUTTON_TOKENS.padding.horizontal.md} ${t.BUTTON_TOKENS.padding.vertical.sm} ${t.BUTTON_TOKENS.fontSize.md}`,compact:`${t.BUTTON_TOKENS.height.sm} ${t.BUTTON_TOKENS.padding.horizontal.sm} ${t.BUTTON_TOKENS.padding.vertical.sm} ${t.BUTTON_TOKENS.fontSize.sm}`}},defaultVariants:{size:"default"}}),cn=K.cva(`${t.ICON_TOKENS.sizes.md} ${t.DOMAIN_TOKENS.spacing.button.iconMarginLeft}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),ca=l.forwardRef(({title:e,description:r,imageUrl:n,href:s,ctaUrl:a,ctaLabel:d,featured:i=!1,showImage:c=!0,featuredBadgeText:u,size:N="default",variant:f,className:O,animation:m,...p},T)=>{const h=gt({animation:(m==null?void 0:m.animation)||"fadeInUp",hoverAnimation:(m==null?void 0:m.hoverAnimation)||"hoverLift",animationProps:m==null?void 0:m.animationProps}),g=f||(i?"featured":"default");return o.jsx(q,{...h,children:o.jsxs(ze,{ref:T,size:N,variant:g,className:E("group relative",O),...p,children:[i&&u&&o.jsx("div",{className:Ci({size:N}),children:o.jsx("span",{className:$i({variant:"featured"}),children:u})}),c&&o.jsx(Me,{size:N,children:o.jsxs("div",{className:"relative w-full overflow-hidden bg-gradient-to-br from-surface-elevated1 to-surface-elevated2",children:[n?o.jsx("img",{src:n,alt:e,className:E("h-full w-full object-cover",t.DOMAIN_TOKENS.motion.hover.transition,t.DOMAIN_TOKENS.motion.hover.scale)}):o.jsx("div",{className:"flex h-full w-full items-center justify-center",children:o.jsx(de,{name:"info",size:"xl",color:"muted",className:t.ICON_TOKENS.sizes["4xl"],"aria-hidden":"true"})}),o.jsx("div",{className:E("absolute inset-0 opacity-0 transition-opacity duration-normal group-hover:opacity-100",t.DOMAIN_TOKENS.image.overlay.gradient)})]})}),o.jsxs(ke,{size:N,children:[o.jsx(Se,{level:3,className:E("line-clamp-2 transition-colors group-hover:text-primary",t.TEXT_TOKENS.fontSize.lg,t.TEXT_TOKENS.fontWeight.bold,t.DOMAIN_TOKENS.spacing.section.titleToSubtitle),children:s?o.jsx(fe,{href:s,variant:"ghost",children:e}):e}),r&&o.jsx(W,{size:"sm",variant:"muted",className:E("line-clamp-2",N==="compact"?t.DOMAIN_TOKENS.spacing.section.titleToSubtitle:t.DOMAIN_TOKENS.spacing.section.subtitleToMetadata),children:r})]}),o.jsx(Pe,{size:N,children:o.jsxs("div",{className:"w-full",children:[a&&o.jsxs(fe,{href:a,className:E("w-full",dn({size:N})),children:[d,o.jsx(ce,{className:cn({size:N})})]}),!a&&o.jsxs("div",{className:E("w-full",dn({size:N})),children:[d,o.jsx(ce,{className:cn({size:N})})]})]})})]})})});ca.displayName="PromoCard";const xt=K.cva("absolute z-10",{variants:{size:{default:t.DOMAIN_TOKENS.badges.position.default,compact:t.DOMAIN_TOKENS.badges.position.compact}},defaultVariants:{size:"default"}}),bt=K.cva(`inline-flex items-center ${t.DOMAIN_TOKENS.badges.radius} ${t.DOMAIN_TOKENS.badges.shadow} ${t.DOMAIN_TOKENS.badges.size.sm} ${t.DOMAIN_TOKENS.badges.text.color} ${t.TEXT_TOKENS.fontSize.xs} font-semibold`,{variants:{variant:{default:t.DOMAIN_TOKENS.badges.surface.default,featured:t.DOMAIN_TOKENS.badges.surface.featured,vip:t.DOMAIN_TOKENS.badges.surface.featured,discount:t.DOMAIN_TOKENS.badges.surface.default}},defaultVariants:{variant:"default"}}),Ri=K.cva(`flex items-center ${t.DOMAIN_TOKENS.priceCapacity.spacing}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),Vi=K.cva(`${t.DOMAIN_TOKENS.priceCapacity.text.primary} font-bold`,{variants:{size:{default:t.TEXT_TOKENS.fontSize.lg,compact:t.TEXT_TOKENS.fontSize.md}},defaultVariants:{size:"default"}}),ji=K.cva(`${t.DOMAIN_TOKENS.priceCapacity.text.secondary}`,{variants:{size:{default:t.TEXT_TOKENS.fontSize.sm,compact:t.TEXT_TOKENS.fontSize.xs}},defaultVariants:{size:"default"}}),zi=K.cva(`inline-flex items-center ${t.DOMAIN_TOKENS.metadata.spacing.horizontal} ${t.TEXT_TOKENS.fontSize.xs} font-medium`,{variants:{availability:{available:`${t.DOMAIN_TOKENS.metadata.text.primary}`,sold_out:`${t.DOMAIN_TOKENS.metadata.text.secondary} opacity-60`,available_soon:`${t.DOMAIN_TOKENS.metadata.text.secondary}`}},defaultVariants:{availability:"available"}}),Mi=K.cva("border-t border-border",{variants:{size:{default:t.DOMAIN_TOKENS.spacing.footer.paddingTopDefault,compact:t.DOMAIN_TOKENS.spacing.footer.paddingTopCompact}},defaultVariants:{size:"default"}}),un=K.cva(`inline-flex items-center justify-center ${t.DOMAIN_TOKENS.badges.surface.featured} ${t.DOMAIN_TOKENS.badges.text.color} ${t.DOMAIN_TOKENS.badges.shadow} ${t.DOMAIN_TOKENS.motion.hover.transition} font-semibold transform`,{variants:{size:{default:t.DOMAIN_TOKENS.spacing.button.paddingDefault,compact:t.DOMAIN_TOKENS.spacing.button.paddingCompact},disabled:{true:"opacity-50 cursor-not-allowed",false:"hover:scale-105 hover:from-accent-600 hover:to-primary-700"}},defaultVariants:{size:"default",disabled:!1}}),fn=K.cva(`${t.ICON_TOKENS.sizes.md} ${t.DOMAIN_TOKENS.spacing.button.iconMarginLeft}`,{variants:{size:{default:"",compact:""}},defaultVariants:{size:"default"}}),ua=l.forwardRef(({title:e,description:r,price:n,capacity:s,availability:a="available",imageUrl:d,href:i,purchaseUrl:c,purchaseLabel:u,vipBadgeText:N,discountBadgeText:f,featured:O=!1,featuredBadgeText:m,showImage:p=!0,size:T="default",variant:h,className:g,animation:S,...x},b)=>{const I=gt({animation:(S==null?void 0:S.animation)||"fadeInUp",hoverAnimation:(S==null?void 0:S.hoverAnimation)||"hoverLift",animationProps:S==null?void 0:S.animationProps}),v=h||(O?"featured":"default"),_=a==="sold_out"||a==="available_soon",$=()=>!O||!m?"":T==="compact"?`${t.DOMAIN_TOKENS.badges.position.compact} ${t.DOMAIN_TOKENS.badges.positionY.xl}`:`${t.DOMAIN_TOKENS.badges.position.default} ${t.DOMAIN_TOKENS.badges.positionY["2xl"]}`,y=()=>!(O&&m)&&!N?"":T==="compact"?`${t.DOMAIN_TOKENS.badges.position.compact} ${t.DOMAIN_TOKENS.badges.positionY["2xl"]}`:`${t.DOMAIN_TOKENS.badges.position.default} ${t.DOMAIN_TOKENS.badges.positionY["3xl"]}`,A=(()=>{switch(a){case"sold_out":return"Sold Out";case"available_soon":return"Available Soon";case"available":default:return null}})();return o.jsx(q,{...I,children:o.jsxs(ze,{ref:b,size:T,variant:v,className:E("group relative",g),...x,children:[O&&m&&o.jsx("div",{className:xt({size:T}),children:o.jsx("span",{className:bt({variant:"featured"}),children:m})}),N&&o.jsx("div",{className:E(xt({size:T}),$()),children:o.jsx("span",{className:bt({variant:"vip"}),children:N})}),f&&o.jsx("div",{className:E(xt({size:T}),y()),children:o.jsx("span",{className:bt({variant:"discount"}),children:f})}),p&&o.jsx(Me,{size:T,children:o.jsxs("div",{className:"relative w-full overflow-hidden bg-gradient-to-br from-surface-elevated1 to-surface-elevated2",children:[d?o.jsx("img",{src:d,alt:e,className:E("h-full w-full object-cover",t.DOMAIN_TOKENS.motion.hover.transition,t.DOMAIN_TOKENS.motion.hover.scale)}):o.jsx("div",{className:"flex h-full w-full items-center justify-center",children:o.jsx(de,{name:"info",size:"xl",color:"muted",className:t.ICON_TOKENS.sizes["4xl"],"aria-hidden":"true"})}),o.jsx("div",{className:E("absolute inset-0 opacity-0 transition-opacity duration-normal group-hover:opacity-100",t.DOMAIN_TOKENS.image.overlay.gradient)})]})}),o.jsxs(ke,{size:T,children:[o.jsx(Se,{level:3,className:E("line-clamp-2 transition-colors group-hover:text-primary",t.TEXT_TOKENS.fontSize.lg,t.TEXT_TOKENS.fontWeight.bold,t.DOMAIN_TOKENS.spacing.section.titleToSubtitle),children:i?o.jsx(fe,{href:i,variant:"ghost",children:e}):e}),r&&o.jsx(W,{size:"sm",variant:"muted",className:E("line-clamp-2",T==="compact"?t.DOMAIN_TOKENS.spacing.section.titleToSubtitle:t.DOMAIN_TOKENS.spacing.section.subtitleToMetadata),children:r}),(n||s)&&o.jsxs("div",{className:Ri({size:T}),children:[n&&o.jsx(W,{size:T==="compact"?"md":"lg",weight:"bold",children:o.jsx("span",{className:Vi({size:T}),children:n})}),s&&o.jsx(W,{size:T==="compact"?"xs":"sm",children:o.jsx("span",{className:ji({size:T}),children:s})})]}),A&&o.jsx("div",{className:zi({availability:a}),children:o.jsx(W,{size:"xs",variant:a==="sold_out"?"muted":"primary",children:A})})]}),o.jsx(Pe,{size:T,children:o.jsxs("div",{className:E("w-full",Mi({size:T})),children:[c&&!_&&o.jsxs(fe,{href:c,className:E("w-full",un({size:T,disabled:!1})),target:"_blank",rel:"noopener noreferrer",children:[u,o.jsx(ce,{className:fn({size:T})})]}),(!c||_)&&o.jsxs("div",{className:E("w-full",un({size:T,disabled:_})),children:[u,o.jsx(ce,{className:fn({size:T})})]})]})})]})})});ua.displayName="TicketCard";exports.accentColors=B.accentColors;exports.animations=B.animations;exports.baseColors=B.baseColors;exports.chartColors=B.chartColors;exports.colorCSSVariables=B.colorCSSVariables;exports.cssVariableColorTokens=B.cssVariableColorTokens;exports.durations=B.durations;exports.easings=B.easings;exports.keyframes=B.keyframes;exports.motionCSSVariables=B.motionCSSVariables;exports.primaryColors=B.primaryColors;exports.reducedMotion=B.reducedMotion;exports.secondaryColors=B.secondaryColors;exports.semanticColors=B.semanticColors;exports.springs=B.springs;exports.surfaceColors=B.surfaceColors;exports.tailwindMotionConfig=B.tailwindMotionConfig;exports.tailwindThemeColors=B.tailwindThemeColors;exports.textColors=B.textColors;exports.transitions=B.transitions;exports.ALERT_TOKENS=t.ALERT_TOKENS;exports.BUTTON_TOKENS=t.BUTTON_TOKENS;exports.CARD_TOKENS=t.CARD_TOKENS;exports.CHECKBOX_TOKENS=t.CHECKBOX_TOKENS;exports.DATA_TOKENS=t.DATA_TOKENS;exports.DOMAIN_TOKENS=t.DOMAIN_TOKENS;exports.DROPDOWN_TOKENS=t.DROPDOWN_TOKENS;exports.ICON_TOKENS=t.ICON_TOKENS;exports.INPUT_TOKENS=t.INPUT_TOKENS;exports.MENU_TOKENS=t.MENU_TOKENS;exports.MOTION_TOKENS=t.MOTION_TOKENS;exports.NAVIGATION_TOKENS=t.NAVIGATION_TOKENS;exports.NOTIFICATION_TOKENS=t.NOTIFICATION_TOKENS;exports.OVERLAY_TOKENS=t.OVERLAY_TOKENS;exports.POPOVER_TOKENS=t.POPOVER_TOKENS;exports.RADIO_TOKENS=t.RADIO_TOKENS;exports.SECTION_TOKENS=t.SECTION_TOKENS;exports.SURFACE_TOKENS=t.SURFACE_TOKENS;exports.SWITCH_TOKENS=t.SWITCH_TOKENS;exports.TEXT_TOKENS=t.TEXT_TOKENS;exports.TOAST_TOKENS=t.TOAST_TOKENS;exports.TOOLTIP_TOKENS=t.TOOLTIP_TOKENS;exports.UI_COLORS=t.UI_COLORS;exports.allCSSVariables=t.allCSSVariables;exports.allCSSVariablesCSS=t.allCSSVariablesCSS;exports.generateCSSVariablesCSS=t.generateCSSVariablesCSS;exports.tokenSystemSummary=t.tokenSystemSummary;exports.accentColoredShadows=R.accentColoredShadows;exports.borderRadius=R.borderRadius;exports.componentRadius=R.componentRadius;exports.componentShadowMapping=R.componentShadowMapping;exports.elevationShadows=R.elevationShadows;exports.focusRings=R.focusRings;exports.fontFamily=R.fontFamily;exports.fontSize=R.fontSize;exports.fontSizeWithMd=R.fontSizeWithMd;exports.fontWeight=R.fontWeight;exports.glowEffects=R.glowEffects;exports.layoutSpacing=R.layoutSpacing;exports.letterSpacing=R.letterSpacing;exports.lineHeight=R.lineHeight;exports.motionV2CSSVariables=R.motionV2CSSVariables;exports.motionV2Combined=R.motionV2Combined;exports.motionV2Durations=R.motionV2Durations;exports.motionV2Easings=R.motionV2Easings;exports.motionV2Fade=R.motionV2Fade;exports.motionV2Scale=R.motionV2Scale;exports.motionV2Slide=R.motionV2Slide;exports.motionV2TailwindConfig=R.motionV2TailwindConfig;exports.motionV2Transitions=R.motionV2Transitions;exports.primaryColoredShadows=R.primaryColoredShadows;exports.radiusCSSVariables=R.radiusCSSVariables;exports.semanticSpacing=R.semanticSpacing;exports.shadowBase=R.shadowBase;exports.shadowCSSVariables=R.shadowCSSVariables;exports.shadowOpacity=R.shadowOpacity;exports.spacing=R.spacing;exports.spacingCSSVariables=R.spacingCSSVariables;exports.tailwindRadiusConfig=R.tailwindRadiusConfig;exports.tailwindShadowConfig=R.tailwindShadowConfig;exports.tailwindSpacingConfig=R.tailwindSpacingConfig;exports.tailwindTypographyConfig=R.tailwindTypographyConfig;exports.textStyles=R.textStyles;exports.typographyCSSVariables=R.typographyCSSVariables;exports.Alert=gn;exports.ArtistCard=la;exports.Backdrop=rt;exports.Body=hn;exports.Box=q;exports.Breadcrumbs=si;exports.Button=ne;exports.Caption=xn;exports.Card=Re;exports.CardBody=Zt;exports.CardFooter=Jt;exports.CardHeader=Qt;exports.Checkbox=Cn;exports.Code=In;exports.Column=ya;exports.ContainerSurface=tt;exports.ContextMenuContent=Ls;exports.ContextMenuGroup=Bs;exports.ContextMenuItem=Gs;exports.ContextMenuLabel=Hs;exports.ContextMenuRoot=Us;exports.ContextMenuSeparator=Xs;exports.ContextMenuTrigger=Fs;exports.DataList=we;exports.DataListItem=xr;exports.DataListLabel=br;exports.DataListRoot=we;exports.DataListValue=Ir;exports.Dialog=Ga;exports.DialogBody=or;exports.DialogDescription=ar;exports.DialogFooter=ir;exports.DialogHeader=nr;exports.DialogRoot=Ge;exports.DialogTitle=sr;exports.Display=_n;exports.DropdownMenuCheckItem=ws;exports.DropdownMenuContent=Tr;exports.DropdownMenuGroup=Or;exports.DropdownMenuItem=Ke;exports.DropdownMenuLabel=pr;exports.DropdownMenuRadioGroup=As;exports.DropdownMenuRadioItem=Cs;exports.DropdownMenuRoot=Ks;exports.DropdownMenuSeparator=gr;exports.DropdownMenuSub=$s;exports.DropdownMenuSubContent=Rs;exports.DropdownMenuSubTrigger=Vs;exports.DropdownMenuTrigger=js;exports.EmptyState=Ee;exports.EmptyStateAction=hr;exports.EmptyStateDescription=Er;exports.EmptyStateIcon=Tt;exports.EmptyStateTitle=Ot;exports.EventCard=da;exports.Field=$e;exports.Flex=Gn;exports.Grid=Hn;exports.Heading=Se;exports.HoverCardContent=zs;exports.HoverCardRoot=Ms;exports.HoverCardTrigger=ks;exports.ICONS_MAP=It;exports.Icon=de;exports.IconArrowRight=ce;exports.IconCalendar=Qe;exports.IconCheck=Ze;exports.IconChevronDown=zt;exports.IconChevronRight=Mt;exports.IconClose=kt;exports.IconError=Pt;exports.IconInfo=Dt;exports.IconLocation=Je;exports.IconMenu=Ut;exports.IconSearch=Lt;exports.IconSuccess=Bt;exports.IconWarning=Gt;exports.Input=Rn;exports.Label=qt;exports.Lead=yn;exports.Modal=ss;exports.ModalBody=tr;exports.ModalFooter=rr;exports.ModalHeader=er;exports.NotificationCenter=Ja;exports.NotificationCenterDismissAll=nt;exports.NotificationCenterGroupHeader=st;exports.NotificationCenterItem=at;exports.NotificationCenterList=ot;exports.NotificationCenterPanel=cr;exports.NotificationCenterProvider=ls;exports.NotificationCenterTrigger=ur;exports.Pagination=oi;exports.PopoverArrow=ds;exports.PopoverContent=Nt;exports.PopoverRoot=_e;exports.PopoverTrigger=mt;exports.Portal=Ne;exports.PromoCard=ca;exports.Radio=Mn;exports.RadioGroup=zn;exports.Row=et;exports.Section=es;exports.SegmentedControl=ni;exports.Select=Sa;exports.SelectListbox=Wt;exports.SelectOption=Yt;exports.SelectRoot=Xt;exports.SelectTrigger=Ft;exports.Skeleton=Sr;exports.Stack=ae;exports.Stepper=ii;exports.Surface=Fn;exports.Table=Z;exports.TableBody=vr;exports.TableCell=_r;exports.TableEmpty=Kr;exports.TableExpandableContent=wr;exports.TableHead=yr;exports.TableHeader=Ar;exports.TableLoadingState=Cr;exports.TableRoot=Z;exports.TableRow=$r;exports.TableSortIcon=pt;exports.Tabs=ti;exports.Text=W;exports.Textarea=Bn;exports.TicketCard=ua;exports.Toast=lr;exports.ToastProvider=Fa;exports.ToastViewport=dr;exports.alertVariants=pn;exports.bodyVariants=Sn;exports.buttonVariants=Tn;exports.captionVariants=En;exports.checkboxVariants=An;exports.codeVariants=bn;exports.containerSurfaceVariants=ts;exports.displayVariants=vn;exports.headingVariants=Kn;exports.iconVariants=ia;exports.inputVariants=$n;exports.labelVariants=Wn;exports.leadVariants=wn;exports.modalVariants=ns;exports.popoverContentVariants=vs;exports.radioVariants=Vn;exports.segmentedControlItemVariants=na;exports.segmentedControlRootVariants=ra;exports.selectListboxVariants=Pn;exports.selectOptionVariants=Dn;exports.selectTriggerVariants=kn;exports.skeletonVariants=Ws;exports.surfaceVariants=Xn;exports.tabsListVariants=Qs;exports.tabsTriggerVariants=Zs;exports.textVariants=On;exports.textareaVariants=Ln;exports.useNotificationCenter=Za;exports.useNotificationCenterContext=Ve;exports.useTableContext=qs;exports.useToast=Wa;
|