@optiaxiom/web-components 0.10.2 → 0.10.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/ActionsRoot-D3HGwmX0.js +1 -0
- package/dist/AlertDialogContext-BLLf10we.js +1 -0
- package/dist/AngleMenuButton-BttMTNgv.js +1 -0
- package/dist/Avatar-Di2s9r20.js +1 -0
- package/dist/AvatarContext-C0aLzKyM.js +1 -0
- package/dist/AvatarGroup-DgaDUZSK.js +1 -0
- package/dist/AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js +1 -0
- package/dist/Backdrop-4vi19CDU.js +1 -0
- package/dist/Badge-zEzosPC6.js +1 -0
- package/dist/Box-KbhwudxO.js +1 -0
- package/dist/{Button-Cql0puBx.js → Button-BRObsRfm.js} +1 -1
- package/dist/ButtonContext-CXoo6E9i.js +1 -0
- package/dist/ButtonGroup-DXUk9q_2.js +1 -0
- package/dist/ButtonRoot-D9uMmvdc.js +1 -0
- package/dist/{Calendar-CF99o8g_.js → Calendar-Dp1Dkca6.js} +1 -1
- package/dist/Checkbox-DErm1lmS.js +1 -0
- package/dist/{Combination-ChLN84hy.js → Combination-C0hFTUie.js} +1 -1
- package/dist/Cover-DdeP6yWY.js +1 -0
- package/dist/DataTableContext-Cckx_Lc0.js +1 -0
- package/dist/DateRangePickerContext-t6Tfh3Qa.js +1 -0
- package/dist/DialogContext-UDBli-9y.js +1 -0
- package/dist/{Disclosure-Dpdz9Bts.js → Disclosure-DL_mlUOs.js} +1 -1
- package/dist/DisclosureContent-ZBbUoOf-.js +1 -0
- package/dist/{DisclosureContext-CLAdkCqC.js → DisclosureContext-Cu1BrQoU.js} +1 -1
- package/dist/DisclosureTrigger-g66NIIzR.js +1 -0
- package/dist/DropdownMenuContext-bj9D9JK0.js +1 -0
- package/dist/DropdownMenuNestedContext-euS8TYk1.js +1 -0
- package/dist/DropdownMenuSubContext-BrDYBo_s.js +1 -0
- package/dist/{FieldContext-CPdl4sHm.js → FieldContext-CLX3DEBL.js} +1 -1
- package/dist/{FieldLabel-BHHqMqm_.js → FieldLabel-BbiTIYRm.js} +1 -1
- package/dist/{FilteredSlot-C84aV4Vu.js → FilteredSlot-BmJIrxpw.js} +1 -1
- package/dist/{Flex-BdZXrp1K.js → Flex-C_afLxlo.js} +1 -1
- package/dist/{Heading-gt-z-DPw.js → Heading-B7BpLaio.js} +1 -1
- package/dist/Icon-Dg8DnF4a.js +1 -0
- package/dist/IconAngleDown-DiQTZpkN.js +1 -0
- package/dist/{IconAngleRight-nYBLv_BJ.js → IconAngleRight-yT4UjjIa.js} +1 -1
- package/dist/{IconCalendar-1Z8UB8yj.js → IconCalendar-zFBIFTV2.js} +1 -1
- package/dist/{IconCircleInfoSolid-3iqwIk_b.js → IconCircleInfoSolid-DeIX_yeB.js} +1 -1
- package/dist/{IconEllipsis-62ArFL79.js → IconEllipsis-CpO2OvaB.js} +1 -1
- package/dist/{IconTriangleExclamationSolid-C04y6U2o.js → IconTriangleExclamationSolid-CyHyD38E.js} +1 -1
- package/dist/{IconX-D1CsikgA.js → IconX-hwIqrxVU.js} +1 -1
- package/dist/{Input-BKx08c1l.js → Input-CHQ082gi.js} +1 -1
- package/dist/{InputAddon-DLLgTT-s.js → InputAddon-o6qpuhZQ.js} +1 -1
- package/dist/InputContext-7F97W-J2.js +1 -0
- package/dist/InputControl-TQb_r0GK.js +1 -0
- package/dist/InputControl.css.ts.vanilla-DTGYmare-D_1Xb8Nd.js +1 -0
- package/dist/InputRoot-C74CKFEm.js +1 -0
- package/dist/{Listbox-C4NdN2b0.js → Listbox-B1e2Lem8.js} +1 -1
- package/dist/ListboxCheckboxItem-CBTBAZHT.js +1 -0
- package/dist/{ListboxEmpty-CcHY-Doe.js → ListboxEmpty-L82AaZTK.js} +1 -1
- package/dist/{ListboxFooter-Y-CkYJ0y.js → ListboxFooter-B-UYrGQE.js} +1 -1
- package/dist/ListboxGroup-CWxHBjGY.js +1 -0
- package/dist/ListboxGroupContext-BZTiw_Jc.js +1 -0
- package/dist/ListboxItem-MbS799EN.js +1 -0
- package/dist/ListboxItemIndicator-DCghuFW5.js +1 -0
- package/dist/ListboxItemized-CZEjCGkZ.js +1 -0
- package/dist/ListboxLabel-y91DUYHd.js +1 -0
- package/dist/{ListboxRadioItem-sJedFgOz.js → ListboxRadioItem-jN79KnHi.js} +1 -1
- package/dist/ListboxSeparator-b-gAHvO6.js +1 -0
- package/dist/{ListboxSwitchItem-oUQYOa4z.js → ListboxSwitchItem-BNhV0G0-.js} +1 -1
- package/dist/ModalContext-miFViPPD.js +1 -0
- package/dist/{ModalLayer-DmrL4xRd.js → ModalLayer-Dv1VVmST.js} +1 -1
- package/dist/ModalListbox-DsU3BcMW.js +1 -0
- package/dist/Nav-QtBT3xG7.js +1 -0
- package/dist/NavAccountItem-CP3joV1Z.js +1 -0
- package/dist/{NavBody-C-LR2sMR.js → NavBody-QIhGBXXs.js} +1 -1
- package/dist/NavFooter-B5hBx9c1.js +1 -0
- package/dist/NavGroup-51WPHbiD.js +1 -0
- package/dist/{NavGroupContent-CQvwJle3.js → NavGroupContent-DCwjV_G9.js} +1 -1
- package/dist/NavGroupContext-Cb53zz4f.js +1 -0
- package/dist/NavGroupTrigger-CJvEaVIV.js +1 -0
- package/dist/NavHeader-BBwxjri6.js +1 -0
- package/dist/NavItem-CBg9pw9s.js +1 -0
- package/dist/{NavList-B6DSlbLj.js → NavList-DWlKN1EZ.js} +1 -1
- package/dist/NavSeparator-Dmo2s21x.js +1 -0
- package/dist/Pagination-COX7seB-.js +1 -0
- package/dist/{Paper-Do-AoIUv.js → Paper-ByHHHqYw.js} +1 -1
- package/dist/{Popover-E4zDAnoN.js → Popover-BodiyxdO.js} +1 -1
- package/dist/{PopoverAnchor-B-F_K--W.js → PopoverAnchor-CVo82UW2.js} +1 -1
- package/dist/PopoverContent-CIisbtSg.js +1 -0
- package/dist/PopoverContext-DtS0zfIJ.js +1 -0
- package/dist/{PopoverTrigger-bnR_XepA.js → PopoverTrigger-CS8SC9IT.js} +1 -1
- package/dist/Portal-C0Vo4BiU.js +1 -0
- package/dist/PortalContext-DaTMQnbo.js +1 -0
- package/dist/RadioGroupContext-DQDDMpW2.js +1 -0
- package/dist/{SegmentedControlContext-CLtJhswg.js → SegmentedControlContext-DFOqC3zK.js} +1 -1
- package/dist/{Select-DUIhcphB.js → Select-CWgAndPC.js} +1 -1
- package/dist/SelectContent-CVqhnvuA.js +1 -0
- package/dist/SelectContext-DJerpQX1.js +1 -0
- package/dist/{SelectTrigger-MtqUslHI.js → SelectTrigger-q1czo7-l.js} +1 -1
- package/dist/Separator-NVrmKW6g.js +1 -0
- package/dist/SidebarContext-CQ7EHdLQ.js +1 -0
- package/dist/Skeleton-OcUmreRV.js +1 -0
- package/dist/Spinner-CCXCNomo.js +1 -0
- package/dist/Switch-ixCi34sg.js +1 -0
- package/dist/Table-CCrIIYDc.js +1 -0
- package/dist/TableAction-BUMbnB8P.js +1 -0
- package/dist/TableBody-CQp50u7n.js +1 -0
- package/dist/TableCell-Ctea1_uS.js +1 -0
- package/dist/TableHeader-bZqVpF28.js +1 -0
- package/dist/TableHeaderCell-LPrq4Zqw.js +1 -0
- package/dist/TableRow-B0G_tKmo.js +1 -0
- package/dist/TableRow.css.ts.vanilla-DKWSCVR_-a1gzbr1k.js +1 -0
- package/dist/Text-BAVJhd4c.js +1 -0
- package/dist/{ThemeProvider-qH8jU8zx.js → ThemeProvider-HpeheiHg.js} +1 -1
- package/dist/Toast-r2fP2713.js +1 -0
- package/dist/{ToastAction-DNiSLYko.js → ToastAction-AEjauBnk.js} +1 -1
- package/dist/ToastProvider-BWNKa_v0.js +1 -0
- package/dist/{ToastTitle-2jq6OJMn.js → ToastTitle-By9oHA4n.js} +1 -1
- package/dist/ToggleInputLabel-mR_XDw7y.js +1 -0
- package/dist/{Tooltip-Bg7z_3X2.js → Tooltip-D3MAszoB.js} +1 -1
- package/dist/TooltipContent-DOK51UEB.js +1 -0
- package/dist/TooltipContext-QsjIewks.js +1 -0
- package/dist/TooltipProvider-BR3_HGaK.js +1 -0
- package/dist/{TooltipRoot-CRodEgtv.js → TooltipRoot-BVRKubJ_.js} +1 -1
- package/dist/TooltipTrigger-CJVFZb7g.js +1 -0
- package/dist/Transition-BHMa10Nq.js +1 -0
- package/dist/{TransitionGroup--tyB9ZeA.js → TransitionGroup-BxvGkQ0V.js} +1 -1
- package/dist/TransitionGroupContext-C4K1yRRe.js +1 -0
- package/dist/VisuallyHidden-3po2JP-A.js +1 -0
- package/dist/components/Alert.js +1 -1
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AlertDialogAction.js +1 -1
- package/dist/components/AlertDialogBody.js +1 -1
- package/dist/components/AlertDialogCancel.js +1 -1
- package/dist/components/AlertDialogContent.js +1 -1
- package/dist/components/AlertDialogFooter.js +1 -1
- package/dist/components/AlertDialogHeader.js +1 -1
- package/dist/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AngleMenuButton.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AxiomProvider.js +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Banner.js +1 -1
- package/dist/components/Box.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/ButtonGroup.js +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Code.js +1 -1
- package/dist/components/Cover.js +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/DataTableBody.js +2 -2
- package/dist/components/DataTableFooter.js +1 -1
- package/dist/components/DateInput.js +1 -1
- package/dist/components/DateRangePicker.js +1 -1
- package/dist/components/DateRangePickerContent.js +1 -1
- package/dist/components/DateRangePickerTrigger.js +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DialogBody.js +1 -1
- package/dist/components/DialogClose.js +1 -1
- package/dist/components/DialogContent.js +1 -1
- package/dist/components/DialogFooter.js +1 -1
- package/dist/components/DialogForm.js +1 -1
- package/dist/components/DialogHeader.js +1 -1
- package/dist/components/DialogTrigger.js +1 -1
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/DisclosureContent.js +1 -1
- package/dist/components/DisclosureTrigger.js +1 -1
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/DropdownMenuCheckboxItem.js +1 -1
- package/dist/components/DropdownMenuContent.js +1 -1
- package/dist/components/DropdownMenuGroup.js +1 -1
- package/dist/components/DropdownMenuItem.js +1 -1
- package/dist/components/DropdownMenuLabel.js +1 -1
- package/dist/components/DropdownMenuSeparator.js +1 -1
- package/dist/components/DropdownMenuSub.js +1 -1
- package/dist/components/DropdownMenuSubContent.js +1 -1
- package/dist/components/DropdownMenuTrigger.js +1 -1
- package/dist/components/EllipsisMenuButton.js +1 -1
- package/dist/components/Field.js +1 -1
- package/dist/components/FieldLabel.js +1 -1
- package/dist/components/Flex.js +1 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/Indicator.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputAddon.js +1 -1
- package/dist/components/InputControl.js +1 -1
- package/dist/components/InputRoot.js +1 -1
- package/dist/components/Kbd.js +1 -1
- package/dist/components/LabelMenuButton.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/Listbox.js +1 -1
- package/dist/components/ListboxCheckboxItem.js +1 -1
- package/dist/components/ListboxEmpty.js +1 -1
- package/dist/components/ListboxFooter.js +1 -1
- package/dist/components/ListboxGroup.js +1 -1
- package/dist/components/ListboxItem.js +1 -1
- package/dist/components/ListboxItemIndicator.js +1 -1
- package/dist/components/ListboxItemized.js +1 -1
- package/dist/components/ListboxLabel.js +1 -1
- package/dist/components/ListboxRadioItem.js +1 -1
- package/dist/components/ListboxSeparator.js +1 -1
- package/dist/components/ListboxSwitchItem.js +1 -1
- package/dist/components/ModalLayer.js +1 -1
- package/dist/components/ModalProvider.js +1 -1
- package/dist/components/Nav.js +1 -1
- package/dist/components/NavAccountItem.js +1 -1
- package/dist/components/NavBody.js +1 -1
- package/dist/components/NavFooter.js +1 -1
- package/dist/components/NavGroup.d.ts +3 -2
- package/dist/components/NavGroup.js +1 -1
- package/dist/components/NavGroupContent.js +1 -1
- package/dist/components/NavGroupTrigger.js +1 -1
- package/dist/components/NavHeader.js +1 -1
- package/dist/components/NavItem.js +1 -1
- package/dist/components/NavList.js +1 -1
- package/dist/components/NavSeparator.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Paper.js +1 -1
- package/dist/components/Popover.js +1 -1
- package/dist/components/PopoverAnchor.js +1 -1
- package/dist/components/PopoverContent.js +1 -1
- package/dist/components/PopoverTrigger.js +1 -1
- package/dist/components/Progress.js +2 -2
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/SearchInput.js +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControlItem.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/SelectContent.js +1 -1
- package/dist/components/SelectTrigger.js +1 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Sidebar.js +1 -1
- package/dist/components/SidebarToggle.js +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Spinner.js +1 -1
- package/dist/components/SubNav.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Table.js +1 -1
- package/dist/components/TableAction.js +1 -1
- package/dist/components/TableBody.js +1 -1
- package/dist/components/TableCell.js +1 -1
- package/dist/components/TableHeader.js +1 -1
- package/dist/components/TableHeaderCell.js +1 -1
- package/dist/components/TableRow.js +1 -1
- package/dist/components/Tabs.js +1 -1
- package/dist/components/TabsContent.js +1 -1
- package/dist/components/TabsList.js +1 -1
- package/dist/components/TabsTrigger.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeProvider.js +1 -1
- package/dist/components/Toast.js +1 -1
- package/dist/components/ToastAction.js +1 -1
- package/dist/components/ToastProvider.js +1 -1
- package/dist/components/ToastTitle.js +1 -1
- package/dist/components/ToggleButton.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TooltipContent.js +1 -1
- package/dist/components/TooltipProvider.js +1 -1
- package/dist/components/TooltipRoot.js +1 -1
- package/dist/components/TooltipTrigger.js +1 -1
- package/dist/components/Transition.js +1 -1
- package/dist/components/TransitionGroup.js +1 -1
- package/dist/{decorateChildren-CgfQCQHq.js → decorateChildren-Dh94ASKR.js} +1 -1
- package/dist/fallbackSpan-cNWzvgoM.js +1 -0
- package/dist/{index-BNwEdS9Y.js → index-BBt1E70h.js} +1 -1
- package/dist/{index-hyerWI4c.js → index-BFCyDU4Q.js} +1 -1
- package/dist/{index-CN23jJke.js → index-BUeSiwKX.js} +1 -1
- package/dist/{index-kdb6LTlL.js → index-BWPRLJg-.js} +1 -1
- package/dist/{index-Cuxyk__1.js → index-BabdR4qD.js} +1 -1
- package/dist/{index-CqV2a4ev.js → index-Bb94qrAX.js} +1 -1
- package/dist/{index-XoWUgll-.js → index-BmSgjcbW.js} +1 -1
- package/dist/{index-DE1LRaad.js → index-C48nY0Mq.js} +1 -1
- package/dist/{index-DBHuLsr5.js → index-CDuDJEIF.js} +1 -1
- package/dist/{index-CyQ6-EUv.js → index-CGptjsxG.js} +1 -1
- package/dist/{index-_HSZBYZ2.js → index-CI2vLVid.js} +1 -1
- package/dist/{index-ByKm43-s.js → index-CKJ5e-Ly.js} +1 -1
- package/dist/{index-DgGPVV3u.js → index-CbR9uCwE.js} +1 -1
- package/dist/{index-DfI1C0CI.js → index-CeboH83Y.js} +1 -1
- package/dist/{index-f0jF-SQk.js → index-CfDkctZZ.js} +1 -1
- package/dist/{index-B-5OXVqV.js → index-CoF_i6dU.js} +1 -1
- package/dist/{index-_pbUDaj6.js → index-CsrPp_J7.js} +1 -1
- package/dist/{index-3yCeHosg.js → index-D0ABZUfm.js} +1 -1
- package/dist/{index-kYVN-q_P.js → index-D3i-FloW.js} +1 -1
- package/dist/{index-GYg7wYdo.js → index-DH4aI9a1.js} +1 -1
- package/dist/{index-DlrTtA-M.js → index-DIu4_C4G.js} +1 -1
- package/dist/index-DOKuvoya.js +1 -0
- package/dist/{index-qTKWF9oo.js → index-DV-dtWFU.js} +1 -1
- package/dist/{index-DLEcE7y5.js → index-DV0jhzsh.js} +1 -1
- package/dist/{index-uEcL3mb6.js → index-DjntHHkF.js} +1 -1
- package/dist/{index-mQGnRT7b.js → index-n6Sqy68J.js} +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js +1 -0
- package/dist/{propTypes-BgDgQj7O.js → propTypes-BgI6w_Yc.js} +1 -1
- package/dist/{register-D6N8B6AV.js → register-_G2N7H5v.js} +1 -1
- package/dist/{useEffectEvent-CoA7-PTt.js → useEffectEvent-jwZdzU3U.js} +1 -1
- package/dist/{useFieldLabelTrigger-BhMQuypi.js → useFieldLabelTrigger-DgU84lcA.js} +1 -1
- package/dist/{useNestedDialogCount-DOO1hnTm.js → useNestedDialogCount-FIsy5vDD.js} +1 -1
- package/dist/{useObserveValue--1YXdcXi.js → useObserveValue-Bs_YzdyZ.js} +1 -1
- package/dist/{withIcon-BAx9SshG.js → withIcon-B6cr0_8K.js} +1 -1
- package/package.json +4 -4
- package/dist/ActionsRoot-C7TNC8aB.js +0 -1
- package/dist/AlertDialogContext-DPGFqJhP.js +0 -1
- package/dist/AngleMenuButton-DUtfKikB.js +0 -1
- package/dist/Avatar-M_ULVAjl.js +0 -1
- package/dist/AvatarContext-CWCv72qx.js +0 -1
- package/dist/AvatarGroup-CQ47-cEm.js +0 -1
- package/dist/AvatarGroup.css.ts.vanilla-IBpgBir4-BQVYVZgu.js +0 -1
- package/dist/Backdrop-es_mLAes.js +0 -1
- package/dist/Badge-BANsK5F-.js +0 -1
- package/dist/Box-BM_9O6Cy.js +0 -1
- package/dist/ButtonContext-DmfU957c.js +0 -1
- package/dist/ButtonGroup-BNHXza74.js +0 -1
- package/dist/ButtonRoot-TMn38QL7.js +0 -1
- package/dist/Checkbox-DttQmUTY.js +0 -1
- package/dist/Cover-D0CSKN-i.js +0 -1
- package/dist/DataTableContext-CmmUa1Ez.js +0 -1
- package/dist/DateRangePickerContext-bK66xYLz.js +0 -1
- package/dist/DialogContext-D41Zrgyf.js +0 -1
- package/dist/DisclosureContent-DbKxZDJR.js +0 -1
- package/dist/DisclosureTrigger-DVLoxmaK.js +0 -1
- package/dist/DropdownMenuContext-B90yJDzZ.js +0 -1
- package/dist/DropdownMenuNestedContext-C6TIdrJU.js +0 -1
- package/dist/DropdownMenuSubContext-CHGOX9Qv.js +0 -1
- package/dist/Icon-Do4mPMsi.js +0 -1
- package/dist/IconAngleDown-DoNwcU3I.js +0 -1
- package/dist/InputContext-Bk2AiXJQ.js +0 -1
- package/dist/InputControl-DgWsKwLd.js +0 -1
- package/dist/InputControl.css.ts.vanilla-Wa1_QyF_-DP3ZhFGW.js +0 -1
- package/dist/InputRoot-DBYLDX9I.js +0 -1
- package/dist/ListboxCheckboxItem-DgF8PPXD.js +0 -1
- package/dist/ListboxGroup-Dz6Ivd45.js +0 -1
- package/dist/ListboxGroupContext-CwH80oq2.js +0 -1
- package/dist/ListboxItem-BsmGtuua.js +0 -1
- package/dist/ListboxItemIndicator-BIQYYQT1.js +0 -1
- package/dist/ListboxItemized-DBpZnSsN.js +0 -1
- package/dist/ListboxLabel-3wt4Cer2.js +0 -1
- package/dist/ListboxSeparator-DT8X6OZP.js +0 -1
- package/dist/ModalContext-C7MELOWc.js +0 -1
- package/dist/ModalListbox-zSNgoRLI.js +0 -1
- package/dist/Nav-xTYxjgxn.js +0 -1
- package/dist/NavAccountItem-Lb-Wa1G4.js +0 -1
- package/dist/NavFooter-UGyGFULj.js +0 -1
- package/dist/NavGroup-B71aKppb.js +0 -1
- package/dist/NavGroupContext-1-mUYwik.js +0 -1
- package/dist/NavGroupTrigger-D6HGdVIW.js +0 -1
- package/dist/NavHeader-CebpmuzQ.js +0 -1
- package/dist/NavItem-BjqVSa-b.js +0 -1
- package/dist/NavSeparator-_eSex_JZ.js +0 -1
- package/dist/Pagination-BzIS9uz-.js +0 -1
- package/dist/PopoverContent-BvABYJyJ.js +0 -1
- package/dist/PopoverContext-C_QjV6-3.js +0 -1
- package/dist/Portal-BdXmuU-i.js +0 -1
- package/dist/PortalContext-DHHkjb9y.js +0 -1
- package/dist/RadioGroupContext-BTzYrvQ_.js +0 -1
- package/dist/SelectContent-DSfbVvmJ.js +0 -1
- package/dist/SelectContext-F1B52zWr.js +0 -1
- package/dist/Separator-BERq2_y8.js +0 -1
- package/dist/SidebarContext-COI16UNd.js +0 -1
- package/dist/Skeleton-DD8JBmGd.js +0 -1
- package/dist/Spinner-jhxruZX3.js +0 -1
- package/dist/Switch-0mJ8LZ36.js +0 -1
- package/dist/Table-miPcfmiY.js +0 -1
- package/dist/TableAction-CPjKVQpe.js +0 -1
- package/dist/TableBody-tUwftaQg.js +0 -1
- package/dist/TableCell-0rMckZSP.js +0 -1
- package/dist/TableHeader-nkJSAeOg.js +0 -1
- package/dist/TableHeaderCell-aNH9aXS0.js +0 -1
- package/dist/TableRow-BJUWAiKJ.js +0 -1
- package/dist/TableRow.css.ts.vanilla-BHe8Yd_C-0V1Tr2lC.js +0 -1
- package/dist/Text-CFFCOIqY.js +0 -1
- package/dist/Toast-DTIBmCCa.js +0 -1
- package/dist/ToastProvider-C33zraVl.js +0 -1
- package/dist/ToggleInputLabel-DwWPMgN0.js +0 -1
- package/dist/TooltipContent-BLZHMym0.js +0 -1
- package/dist/TooltipContext-LHaMjQ_f.js +0 -1
- package/dist/TooltipProvider-CJtCWlBF.js +0 -1
- package/dist/TooltipTrigger-B28rwrkw.js +0 -1
- package/dist/Transition-DmXi6USh.js +0 -1
- package/dist/TransitionGroupContext-D_06iJwS.js +0 -1
- package/dist/VisuallyHidden-CLGCRunn.js +0 -1
- package/dist/fallbackSpan-BpHyMB25.js +0 -1
- package/dist/index-BgsAJgCB.js +0 -1
- package/dist/layers.css.ts.vanilla-IRSHqbpU-CfozkzOA.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as
|
|
1
|
+
import{i as m,D as s,u as r,r as l,c}from"../register-_G2N7H5v.js";import{b2 as n}from"../propTypes-BgI6w_Yc.js";import{L as d}from"../index-DV-dtWFU.js";import{o as b}from"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import{y as x}from"../recipeRuntime-DkvY0ny0.js";import"../index-CBrz5xtv.js";import"../index-DIu4_C4G.js";import"../index-CDuDJEIF.js";import"../index-BabdR4qD.js";import"../index-DjntHHkF.js";import"../index-D0ABZUfm.js";import"../index-DOKuvoya.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-CoF_i6dU.js";import"../index-C48nY0Mq.js";m("@layer optiaxiom._12h7ywj;@layer optiaxiom._12h7ywj{._1p6cqa7[data-orientation=horizontal]{align-items:center;border-bottom-width:1px;flex-direction:row;gap:24px}._1p6cqa7[data-orientation=vertical]{border-right-width:1px;flex-direction:column;gap:8px}}");var f=x({base:[{borderColor:"border.tertiary",display:"flex"},"_1p6cqa7"]});const t=s(({children:o,className:a,...e},p)=>r(b,{asChild:!0,...f({},a),...e,children:r(d,{ref:p,children:o})}));t.displayName="@optiaxiom/react/TabsList";const i="ax-tabs-list";var h=l(i,t,n,c);export{i as TabsList,h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as
|
|
1
|
+
import{i as b,D as y,u as r,r as f,c as g}from"../register-_G2N7H5v.js";import{b3 as x}from"../propTypes-BgI6w_Yc.js";import{a as v}from"../index-DV-dtWFU.js";import{i as h,o as u}from"../Box-KbhwudxO.js";import{t as _}from"../Flex-C_afLxlo.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import{y as o}from"../recipeRuntime-DkvY0ny0.js";import"../index-CBrz5xtv.js";import"../index-DIu4_C4G.js";import"../index-CDuDJEIF.js";import"../index-BabdR4qD.js";import"../index-DjntHHkF.js";import"../index-D0ABZUfm.js";import"../index-DOKuvoya.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-CoF_i6dU.js";import"../index-C48nY0Mq.js";b("@layer optiaxiom._12h7ywj;@layer optiaxiom._12h7ywj{._1enykyb{border-color:transparent;color:var(--ax-colors-fg-tertiary);user-select:none}._1enykyb:focus-visible{outline:2px solid var(--ax-colors-border-focus);outline-offset:1px}._1enykyb[data-disabled]{color:var(--ax-colors-fg-disabled)}._1enykyb[data-orientation=horizontal]{border-bottom-width:2px;margin-bottom:-1px}._1enykyb[data-orientation=vertical]{border-right-width:2px;margin-right:-1px;padding-inline:10px}._1enykyb[data-state=active]{border-color:var(--ax-colors-border-accent);color:var(--ax-colors-fg-default)}.g3fscl:active ._16e3l6k{background-color:var(--ax-colors-bg-secondary)}@media (hover:hover){._1enykyb:hover:not([data-state=active]){border-color:var(--ax-colors-border-default);color:var(--ax-colors-fg-secondary)}}}");var k=o({base:[{flexDirection:"row",gap:"8",justifyContent:["center","flex-start"],py:"6",rounded:"sm",transition:"colors"},"_16e3l6k"]}),T=o({base:["g3fscl",{flex:["1","initial"],fontSize:"md",fontWeight:"500",py:"4",transition:"colors"},"_1enykyb"]});const e=y(({addonAfter:a,addonBefore:i,children:s,className:n,value:l,...c},d)=>{const{boxProps:p,restProps:m}=h(c);return r(u,{asChild:!0,...T({},n),...p,children:r(v,{ref:d,value:l,...m,children:r(_,{...k(),children:[i,s,a]})})})});e.displayName="@optiaxiom/react/TabsTrigger";const t="ax-tabs-trigger";var w=f(t,e,x,g);export{t as TabsTrigger,w as default};
|
package/dist/components/Text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as r}from"../register-
|
|
1
|
+
import{r as o,c as r}from"../register-_G2N7H5v.js";import{b4 as m}from"../propTypes-BgI6w_Yc.js";import{o as p}from"../Text-BAVJhd4c.js";import"../index-DjntHHkF.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";const t="ax-text";var e=o(t,p,m,r);export{t as Text,e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as
|
|
1
|
+
import{i as k,D as h,u as e,r as P,c as T}from"../register-_G2N7H5v.js";import{b5 as j}from"../propTypes-BgI6w_Yc.js";import{a as b}from"../index-DjntHHkF.js";import{i as y,o as x}from"../Box-KbhwudxO.js";import"../Input-CHQ082gi.js";import{n as z}from"../InputAddon-o6qpuhZQ.js";import{n as N}from"../InputControl-TQb_r0GK.js";import{e as $}from"../InputRoot-C74CKFEm.js";import"../isHoverSupported-DMhF6LbU.js";import{m as g}from"../fallbackSpan-cNWzvgoM.js";import{u as q}from"../index-CoF_i6dU.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import{y as u}from"../recipeRuntime-DkvY0ny0.js";import"../InputContext-7F97W-J2.js";import"../index-DIu4_C4G.js";import"../FieldContext-CLX3DEBL.js";import"../InputControl.css.ts.vanilla-DTGYmare-D_1Xb8Nd.js";import"../Flex-C_afLxlo.js";import"../AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js";import"../index-VQRIDrjF.js";import"../index-DOKuvoya.js";k("@layer optiaxiom._12h7ywj;@layer optiaxiom._12h7ywj{.kn5yr2{max-height:calc(16px + var(--g4b93m)*22px)}.wfzs2o{--g4b93m:1}._12035f2{--g4b93m:2}._1key2z3{--g4b93m:3}._1qts3fn{--g4b93m:4}._1vuq2t3{--g4b93m:5}._1g0dnzv{resize:vertical}._1aus5bz{grid-area:1/1/2/2}._1b72xac{visibility:hidden;white-space:pre-wrap}.eowdoj{resize:none}}");var A=u({base:["_1aus5bz","_1b72xac"]}),R=u({base:["_1aus5bz","eowdoj"]}),S=u({base:{display:"grid",flex:"auto",overflow:"auto"},variants:{maxRows:{1:["kn5yr2","wfzs2o"],2:["kn5yr2","_12035f2"],3:["kn5yr2","_1key2z3"],4:["kn5yr2","_1qts3fn"],5:["kn5yr2","_1vuq2t3"]},resize:{auto:{},none:{},vertical:"_1g0dnzv"}}});const D=b("@optiaxiom/react/TextareaAutosize"),_=h(({asChild:a,children:o,className:t,maxRows:n,onChange:l,resize:i="none",...r},s)=>{const p=a?D:"textarea",{boxProps:m,restProps:d}=y(r),[c,C]=q({caller:"@optiaxiom/react/TextareaAutosize",defaultProp:r.defaultValue,prop:r.value});return e(x,{...S({maxRows:n,resize:i}),children:[e(x,{asChild:!0,...R({},t),...m,children:e(p,{onChange:f=>{C(f.target.value),l?.(f)},ref:s,...d,children:o})}),i==="auto"&&e(x,{...A({},t),...m,children:(c??"")+" "})]})});_.displayName="@optiaxiom/react/TextareaAutosize";const E=b("@optiaxiom/react/Textarea"),v=h(({addonAfter:a,addonBefore:o,addonPointerEvents:t,asChild:n,children:l,className:i,style:r,...s},p)=>{const m=n?E:_,{boxProps:d,restProps:c}=y(s);return e($,{addonPointerEvents:t,className:i,flexDirection:"column",style:r,...d,children:[o&&e(z,{asChild:!0,children:g(o)}),e(N,{asChild:!0,p:"8",size:"lg",...c,children:e(m,{ref:p,rows:s.rows??3,children:l})}),a&&e(z,{asChild:!0,children:g(a)})]})});v.displayName="@optiaxiom/react/Textarea";const w="ax-textarea";var B=P(w,v,j,T);export{w as Textarea,B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as e}from"../register-
|
|
1
|
+
import{r as o,c as e}from"../register-_G2N7H5v.js";import{b6 as m}from"../propTypes-BgI6w_Yc.js";import{l as t}from"../ThemeProvider-HpeheiHg.js";import"../vanilla-extract-dynamic.esm-4GwcXShs.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../PortalContext-DaTMQnbo.js";import"../index-DIu4_C4G.js";import"../theme-css-DX4sf6ZH.js";import"../index-VQRIDrjF.js";const r="ax-theme-provider";var i=o(r,t,m,e);export{r as ThemeProvider,i as default};
|
package/dist/components/Toast.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r}from"../register-
|
|
1
|
+
import{r as t,c as r}from"../register-_G2N7H5v.js";import{b7 as m}from"../propTypes-BgI6w_Yc.js";import{m as p}from"../Toast-r2fP2713.js";import"../index-DjntHHkF.js";import"../index-CI2vLVid.js";import"../index-CBrz5xtv.js";import"../index-BabdR4qD.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-CfDkctZZ.js";import"../index-C48nY0Mq.js";import"../index-DOKuvoya.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";import"../vanilla-extract-dynamic.esm-4GwcXShs.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";import"../Button-BRObsRfm.js";import"../Icon-Dg8DnF4a.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-Dh94ASKR.js";import"../fallbackSpan-cNWzvgoM.js";import"../ButtonRoot-D9uMmvdc.js";import"../AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js";import"../Spinner-CCXCNomo.js";import"../Flex-C_afLxlo.js";import"../Transition-BHMa10Nq.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../TransitionGroup-BxvGkQ0V.js";import"../ButtonContext-CXoo6E9i.js";import"../ButtonGroup-DXUk9q_2.js";import"../IconCircleInfoSolid-DeIX_yeB.js";import"../withIcon-B6cr0_8K.js";import"../IconTriangleExclamationSolid-CyHyD38E.js";import"../IconX-hwIqrxVU.js";const o="ax-toast";var i=t(o,p,m,r);export{o as Toast,i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r}from"../register-
|
|
1
|
+
import{r as t,c as r}from"../register-_G2N7H5v.js";import{b8 as i}from"../propTypes-BgI6w_Yc.js";import{t as m}from"../ToastAction-AEjauBnk.js";import"../index-CI2vLVid.js";import"../index-CBrz5xtv.js";import"../index-DjntHHkF.js";import"../index-BabdR4qD.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-CfDkctZZ.js";import"../index-C48nY0Mq.js";import"../index-DOKuvoya.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";import"../Button-BRObsRfm.js";import"../Icon-Dg8DnF4a.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-Dh94ASKR.js";import"../fallbackSpan-cNWzvgoM.js";import"../ButtonRoot-D9uMmvdc.js";import"../AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js";import"../Spinner-CCXCNomo.js";import"../Flex-C_afLxlo.js";import"../Transition-BHMa10Nq.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../TransitionGroup-BxvGkQ0V.js";import"../ButtonContext-CXoo6E9i.js";import"../ButtonGroup-DXUk9q_2.js";import"../Separator-NVrmKW6g.js";const o="ax-toast-action";var p=t(o,m,i,r);export{o as ToastAction,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t}from"../register-
|
|
1
|
+
import{r as o,c as t}from"../register-_G2N7H5v.js";import{b9 as i}from"../propTypes-BgI6w_Yc.js";import{p}from"../ToastProvider-BWNKa_v0.js";import"../index-DjntHHkF.js";import"../index-CI2vLVid.js";import"../index-CBrz5xtv.js";import"../index-BabdR4qD.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-CfDkctZZ.js";import"../index-C48nY0Mq.js";import"../index-DOKuvoya.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";import"../index-D3i-FloW.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";import"../Flex-C_afLxlo.js";import"../Portal-C0Vo4BiU.js";import"../PortalContext-DaTMQnbo.js";import"../Toast-r2fP2713.js";import"../vanilla-extract-dynamic.esm-4GwcXShs.js";import"../Button-BRObsRfm.js";import"../Icon-Dg8DnF4a.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-Dh94ASKR.js";import"../fallbackSpan-cNWzvgoM.js";import"../ButtonRoot-D9uMmvdc.js";import"../AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js";import"../Spinner-CCXCNomo.js";import"../Transition-BHMa10Nq.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../TransitionGroup-BxvGkQ0V.js";import"../ButtonContext-CXoo6E9i.js";import"../ButtonGroup-DXUk9q_2.js";import"../IconCircleInfoSolid-DeIX_yeB.js";import"../withIcon-B6cr0_8K.js";import"../IconTriangleExclamationSolid-CyHyD38E.js";import"../IconX-hwIqrxVU.js";import"../ToastAction-AEjauBnk.js";import"../Separator-NVrmKW6g.js";import"../ToastTitle-By9oHA4n.js";import"../Text-BAVJhd4c.js";const r="ax-toast-provider";var m=o(r,p,i,t);export{r as ToastProvider,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as r}from"../register-
|
|
1
|
+
import{r as o,c as r}from"../register-_G2N7H5v.js";import{ba as i}from"../propTypes-BgI6w_Yc.js";import{o as m}from"../ToastTitle-By9oHA4n.js";import"../index-CI2vLVid.js";import"../index-CBrz5xtv.js";import"../index-DjntHHkF.js";import"../index-BabdR4qD.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-CfDkctZZ.js";import"../index-C48nY0Mq.js";import"../index-DOKuvoya.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";import"../Text-BAVJhd4c.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";const t="ax-toast-title";var p=o(t,m,i,r);export{t as ToastTitle,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,u as o,r as a,c as n}from"../register-
|
|
1
|
+
import{D as e,u as o,r as a,c as n}from"../register-_G2N7H5v.js";import{bb as s}from"../propTypes-BgI6w_Yc.js";import{R as g}from"../index-CsrPp_J7.js";import{h as l}from"../Button-BRObsRfm.js";import"../ButtonGroup-DXUk9q_2.js";import"../index-CBrz5xtv.js";import"../index-CoF_i6dU.js";import"../index-DOKuvoya.js";import"../index-BWPRLJg-.js";import"../index-DjntHHkF.js";import"../Icon-Dg8DnF4a.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-Dh94ASKR.js";import"../fallbackSpan-cNWzvgoM.js";import"../ButtonRoot-D9uMmvdc.js";import"../AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js";import"../Spinner-CCXCNomo.js";import"../Flex-C_afLxlo.js";import"../Transition-BHMa10Nq.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../index-DIu4_C4G.js";import"../TransitionGroup-BxvGkQ0V.js";import"../ButtonContext-CXoo6E9i.js";const t=e(({children:i,...m},p)=>o(l,{asChild:!0,...m,children:o(g,{ref:p,children:i})}));t.displayName="@optiaxiom/react/ToggleButton";const r="ax-toggle-button";var c=a(r,t,s,n);export{r as ToggleButton,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r}from"../register-
|
|
1
|
+
import{r as t,c as r}from"../register-_G2N7H5v.js";import{bc as p}from"../propTypes-BgI6w_Yc.js";import{i}from"../Tooltip-D3MAszoB.js";import"../TooltipContent-DOK51UEB.js";import"../index-CKJ5e-Ly.js";import"../index-CBrz5xtv.js";import"../index-DjntHHkF.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-D0ABZUfm.js";import"../index-DOKuvoya.js";import"../index-CGptjsxG.js";import"../index-C48nY0Mq.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";import"../Portal-C0Vo4BiU.js";import"../index-CfDkctZZ.js";import"../PortalContext-DaTMQnbo.js";import"../Text-BAVJhd4c.js";import"../Transition-BHMa10Nq.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../TransitionGroup-BxvGkQ0V.js";import"../TooltipContext-QsjIewks.js";import"../theme-css-DX4sf6ZH.js";import"../TooltipRoot-BVRKubJ_.js";import"../TooltipTrigger-CJVFZb7g.js";import"../Button-BRObsRfm.js";import"../Icon-Dg8DnF4a.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-Dh94ASKR.js";import"../fallbackSpan-cNWzvgoM.js";import"../ButtonRoot-D9uMmvdc.js";import"../AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js";import"../Spinner-CCXCNomo.js";import"../Flex-C_afLxlo.js";import"../ButtonContext-CXoo6E9i.js";import"../ButtonGroup-DXUk9q_2.js";import"../FilteredSlot-BmJIrxpw.js";const o="ax-tooltip";var m=t(o,i,p,r);export{o as Tooltip,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r}from"../register-
|
|
1
|
+
import{r as t,c as r}from"../register-_G2N7H5v.js";import{bd as p}from"../propTypes-BgI6w_Yc.js";import{r as i}from"../TooltipContent-DOK51UEB.js";import"../index-CKJ5e-Ly.js";import"../index-CBrz5xtv.js";import"../index-DjntHHkF.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-D0ABZUfm.js";import"../index-DOKuvoya.js";import"../index-CGptjsxG.js";import"../index-C48nY0Mq.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";import"../Portal-C0Vo4BiU.js";import"../index-CfDkctZZ.js";import"../PortalContext-DaTMQnbo.js";import"../Text-BAVJhd4c.js";import"../Transition-BHMa10Nq.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../TransitionGroup-BxvGkQ0V.js";import"../TooltipContext-QsjIewks.js";import"../theme-css-DX4sf6ZH.js";const o="ax-tooltip-content";var m=t(o,i,p,r);export{o as TooltipContent,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as t}from"../register-
|
|
1
|
+
import{r,c as t}from"../register-_G2N7H5v.js";import{be as i}from"../propTypes-BgI6w_Yc.js";import{o as p}from"../TooltipProvider-BR3_HGaK.js";import"../index-CKJ5e-Ly.js";import"../index-CBrz5xtv.js";import"../index-DjntHHkF.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-D0ABZUfm.js";import"../index-DOKuvoya.js";import"../index-CGptjsxG.js";import"../index-C48nY0Mq.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";const o="ax-tooltip-provider";var m=r(o,p,i,t);export{o as TooltipProvider,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r}from"../register-
|
|
1
|
+
import{r as t,c as r}from"../register-_G2N7H5v.js";import{bf as p}from"../propTypes-BgI6w_Yc.js";import{f as i}from"../TooltipRoot-BVRKubJ_.js";import"../index-CKJ5e-Ly.js";import"../index-CBrz5xtv.js";import"../index-DjntHHkF.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-D0ABZUfm.js";import"../index-DOKuvoya.js";import"../index-CGptjsxG.js";import"../index-C48nY0Mq.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";import"../TooltipContext-QsjIewks.js";const o="ax-tooltip-root";var m=t(o,i,p,r);export{o as TooltipRoot,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t}from"../register-
|
|
1
|
+
import{r as o,c as t}from"../register-_G2N7H5v.js";import{bg as i}from"../propTypes-BgI6w_Yc.js";import{t as p}from"../TooltipTrigger-CJVFZb7g.js";import"../index-DjntHHkF.js";import"../index-CKJ5e-Ly.js";import"../index-CBrz5xtv.js";import"../index-DIu4_C4G.js";import"../index-n6Sqy68J.js";import"../index-BWPRLJg-.js";import"../index-CeboH83Y.js";import"../index-D0ABZUfm.js";import"../index-DOKuvoya.js";import"../index-CGptjsxG.js";import"../index-C48nY0Mq.js";import"../index-CoF_i6dU.js";import"../index-BUeSiwKX.js";import"../Button-BRObsRfm.js";import"../Icon-Dg8DnF4a.js";import"../Box-KbhwudxO.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";import"../isHoverSupported-DMhF6LbU.js";import"../index-VQRIDrjF.js";import"../decorateChildren-Dh94ASKR.js";import"../fallbackSpan-cNWzvgoM.js";import"../ButtonRoot-D9uMmvdc.js";import"../AvatarGroup.css.ts.vanilla-Cx5atBZp-D6fbZ5b4.js";import"../Spinner-CCXCNomo.js";import"../Flex-C_afLxlo.js";import"../Transition-BHMa10Nq.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../TransitionGroup-BxvGkQ0V.js";import"../ButtonContext-CXoo6E9i.js";import"../ButtonGroup-DXUk9q_2.js";import"../FilteredSlot-BmJIrxpw.js";import"../TooltipContext-QsjIewks.js";const r="ax-tooltip-trigger";var m=o(r,p,i,t);export{r as TooltipTrigger,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t}from"../register-
|
|
1
|
+
import{r as o,c as t}from"../register-_G2N7H5v.js";import{bh as i}from"../propTypes-BgI6w_Yc.js";import{s}from"../Transition-BHMa10Nq.js";import"../index-DjntHHkF.js";import"../layers.css.ts.vanilla-sGpaWqx5-CO-pB0Vk.js";import"../recipeRuntime-DkvY0ny0.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../index-DIu4_C4G.js";const r="ax-transition";var m=o(r,s,i,t);export{r as Transition,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as i}from"../register-
|
|
1
|
+
import{r as o,c as i}from"../register-_G2N7H5v.js";import{bi as t}from"../propTypes-BgI6w_Yc.js";import{f as p}from"../TransitionGroup-BxvGkQ0V.js";import"../index-CoF_i6dU.js";import"../index-DOKuvoya.js";import"../TransitionGroupContext-C4K1yRRe.js";import"../index-DIu4_C4G.js";const r="ax-transition-group";var s=o(r,p,t,i);export{r as TransitionGroup,s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,e as r}from"./register-
|
|
1
|
+
import{p as n,e as r}from"./register-_G2N7H5v.js";const i=({asChild:t,children:s},p)=>{if(t){const e=n(s)?s:null;return e?r(e,void 0,i({...e.props,asChild:e.props.asChild||typeof e.type!="string"&&"displayName"in e.type&&typeof e.type.displayName=="string"&&e.type.displayName?.endsWith(".Slot")},p)):s}else return p(s)};export{i as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as n,p as o,k as t}from"./register-_G2N7H5v.js";const e=p=>o(p)&&p.type!==t?p:n("span",{children:p});export{e as m};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as g,u as i,q as H,D as c,y as h,k as I}from"./register-
|
|
1
|
+
import{A as g,u as i,q as H,D as c,y as h,k as I}from"./register-_G2N7H5v.js";import{c as f}from"./index-CBrz5xtv.js";import{a as V,u as y}from"./index-DjntHHkF.js";import{a as K,c as U}from"./index-DIu4_C4G.js";import{u as O}from"./index-D0ABZUfm.js";import{u as Y}from"./index-CoF_i6dU.js";import{D as Z}from"./index-n6Sqy68J.js";import{h as j,F as z}from"./index-DH4aI9a1.js";import{P}from"./index-C48nY0Mq.js";import{P as D}from"./index-BWPRLJg-.js";import{o as J,u as Q}from"./Combination-C0hFTUie.js";var m="Dialog",[A,X]=K(m),[ee,l]=A(m),R=e=>{const{__scopeDialog:o,children:a,open:r,defaultOpen:n,onOpenChange:t,modal:u=!0}=e,s=g(null),p=g(null),[C,_]=Y({prop:r,defaultProp:n??!1,onChange:t,caller:m});return i(ee,{scope:o,triggerRef:s,contentRef:p,contentId:O(),titleId:O(),descriptionId:O(),open:C,onOpenChange:_,onOpenToggle:H(()=>_(q=>!q),[_]),modal:u,children:a})};R.displayName=m;var T="DialogTrigger",x=c((e,o)=>{const{__scopeDialog:a,...r}=e,n=l(T,a),t=y(o,n.triggerRef);return i(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":N(n.open),...r,ref:t,onClick:f(e.onClick,n.onOpenToggle)})});x.displayName=T;var te="DialogPortal",[Re,b]=A(te,{forceMount:void 0}),v="DialogOverlay",M=c((e,o)=>{const a=b(v,e.__scopeDialog),{forceMount:r=a.forceMount,...n}=e,t=l(v,e.__scopeDialog);return t.modal?i(P,{present:r||t.open,children:i(ne,{...n,ref:o})}):null});M.displayName=v;var oe=V("DialogOverlay.RemoveScroll"),ne=c((e,o)=>{const{__scopeDialog:a,...r}=e,n=l(v,a);return i(J,{as:oe,allowPinchZoom:!0,shards:[n.contentRef],children:i(D.div,{"data-state":N(n.open),...r,ref:o,style:{pointerEvents:"auto",...r.style}})})}),d="DialogContent",F=c((e,o)=>{const a=b(d,e.__scopeDialog),{forceMount:r=a.forceMount,...n}=e,t=l(d,e.__scopeDialog);return i(P,{present:r||t.open,children:t.modal?i(re,{...n,ref:o}):i(ae,{...n,ref:o})})});F.displayName=d;var re=c((e,o)=>{const a=l(d,e.__scopeDialog),r=g(null),n=y(o,a.contentRef,r);return h(()=>{const t=r.current;if(t)return j(t)},[]),i(S,{...e,ref:n,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,t=>{t.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,t=>{const u=t.detail.originalEvent,s=u.button===0&&u.ctrlKey===!0;(u.button===2||s)&&t.preventDefault()}),onFocusOutside:f(e.onFocusOutside,t=>t.preventDefault())})}),ae=c((e,o)=>{const a=l(d,e.__scopeDialog),r=g(!1),n=g(!1);return i(S,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||a.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const u=t.target;a.triggerRef.current?.contains(u)&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&n.current&&t.preventDefault()}})}),S=c((e,o)=>{const{__scopeDialog:a,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:t,...u}=e,s=l(d,a),p=g(null),C=y(o,p);return Q(),i(I,{children:[i(z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:t,children:i(Z,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":N(s.open),...u,ref:C,onDismiss:()=>s.onOpenChange(!1)})}),i(I,{children:[i(se,{titleId:s.titleId}),i(le,{contentRef:p,descriptionId:s.descriptionId})]})]})}),E="DialogTitle",W=c((e,o)=>{const{__scopeDialog:a,...r}=e,n=l(E,a);return i(D.h2,{id:n.titleId,...r,ref:o})});W.displayName=E;var k="DialogDescription",w=c((e,o)=>{const{__scopeDialog:a,...r}=e,n=l(k,a);return i(D.p,{id:n.descriptionId,...r,ref:o})});w.displayName=k;var G="DialogClose",L=c((e,o)=>{const{__scopeDialog:a,...r}=e,n=l(G,a);return i(D.button,{type:"button",...r,ref:o,onClick:f(e.onClick,()=>n.onOpenChange(!1))})});L.displayName=G;function N(e){return e?"open":"closed"}var $="DialogTitleWarning",[ie,B]=U($,{contentName:d,titleName:E,docsSlug:"dialog"}),se=({titleId:e})=>{const o=B($),a=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,u as i}from"./register-
|
|
1
|
+
import{D as o,u as i}from"./register-_G2N7H5v.js";import{P as l}from"./index-BWPRLJg-.js";var s="Label",a=o((e,r)=>i(l.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName=s;var u=a;export{a as L,u as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as i,u as o}from"./register-
|
|
1
|
+
import{D as i,u as o}from"./register-_G2N7H5v.js";import{P as t}from"./index-BWPRLJg-.js";var d=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l="VisuallyHidden",r=i((e,a)=>o(t.span,{...e,ref:a,style:{...d,...e.style}}));r.displayName=l;var n=r;export{n as R,r as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as p,u,E as c}from"./register-
|
|
1
|
+
import{D as p,u,E as c}from"./register-_G2N7H5v.js";import{a as l}from"./index-DjntHHkF.js";var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],d=v.reduce((t,i)=>{const e=l(`Primitive.${i}`),r=p((o,s)=>{const{asChild:a,...n}=o,m=a?e:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u(m,{...n,ref:s})});return r.displayName=`Primitive.${i}`,{...t,[i]:r}},{});function f(t,i){t&&c(()=>t.dispatchEvent(i))}export{d as P,f as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as r,u as p}from"./register-
|
|
1
|
+
import{R as r,u as p}from"./register-_G2N7H5v.js";import{a as P}from"./index-DIu4_C4G.js";import{u as y,a as E}from"./index-DjntHHkF.js";function g(i){const f=i+"CollectionProvider",[N,T]=P(f),[O,u]=N(f,{collectionRef:{current:null},itemMap:new Map}),C=c=>{const{scope:e,children:s}=c,o=r.useRef(null),t=r.useRef(new Map).current;return p(O,{scope:e,itemMap:t,collectionRef:o,children:s})};C.displayName=f;const m=i+"CollectionSlot",_=E(m),R=r.forwardRef((c,e)=>{const{scope:s,children:o}=c,t=u(m,s),n=y(e,t.collectionRef);return p(_,{ref:n,children:o})});R.displayName=m;const d=i+"CollectionItemSlot",S="data-radix-collection-item",v=E(d),I=r.forwardRef((c,e)=>{const{scope:s,children:o,...t}=c,n=r.useRef(null),M=y(e,n),l=u(d,s);return r.useLayoutEffect(()=>(l.itemMap.set(n,{ref:n,...t}),()=>void l.itemMap.delete(n))),p(v,{[S]:"",ref:M,children:o})});I.displayName=d;function h(c){const e=u(i+"CollectionConsumer",c);return r.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const t=Array.from(((l,a)=>{const w=l.querySelectorAll("slot"),A=[...l.querySelectorAll(a)];for(const L of w)for(const x of L.assignedElements())A.push(...(x.shadowRoot??x).querySelectorAll(a));return A})(o,`[${S}]`));return Array.from(e.itemMap.values()).sort((l,a)=>t.indexOf(l.ref.current)-t.indexOf(a.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:C,Slot:R,ItemSlot:I},h,T]}export{g as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as i,D as l,A as u,y as P}from"./register-
|
|
1
|
+
import{u as i,D as l,A as u,y as P}from"./register-_G2N7H5v.js";import{a as M}from"./index-DIu4_C4G.js";import{u as A,c as I}from"./index-DjntHHkF.js";import{c as v,R as x,C as D,D as w,O as $,a as F,W as G,T as L,b as W}from"./index-BBt1E70h.js";import{c as Y}from"./index-CBrz5xtv.js";var m="AlertDialog",[q,se]=M(m,[v]),n=v(),f=e=>{const{__scopeAlertDialog:o,...r}=e,t=n(o);return i(x,{...t,...r,modal:!0})};f.displayName=m;var B="AlertDialogTrigger",y=l((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=n(r);return i(W,{...a,...t,ref:o})});y.displayName=B;var H="AlertDialogOverlay",_=l((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=n(r);return i($,{...a,...t,ref:o})});_.displayName=H;var s="AlertDialogContent",[V,j]=q(s),k=I("AlertDialogContent"),N=l((e,o)=>{const{__scopeAlertDialog:r,children:t,...a}=e,g=n(r),p=u(null),R=A(o,p),d=u(null);return i(G,{contentName:s,titleName:C,docsSlug:"alert-dialog",children:i(V,{scope:r,cancelRef:d,children:i(F,{role:"alertdialog",...g,...a,ref:R,onOpenAutoFocus:Y(a.onOpenAutoFocus,c=>{c.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[i(k,{children:t}),i(J,{contentRef:p})]})})})});N.displayName=s;var C="AlertDialogTitle",h=l((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=n(r);return i(L,{...a,...t,ref:o})});h.displayName=C;var S="AlertDialogDescription",E=l((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=n(r);return i(w,{...a,...t,ref:o})});E.displayName=S;var z="AlertDialogAction",T=l((e,o)=>{const{__scopeAlertDialog:r,...t}=e,a=n(r);return i(D,{...a,...t,ref:o})});T.displayName=z;var b="AlertDialogCancel",O=l((e,o)=>{const{__scopeAlertDialog:r,...t}=e,{cancelRef:a}=j(b,r),g=n(r),p=A(o,a);return i(D,{...g,...t,ref:p})});O.displayName=b;var J=({contentRef:e})=>{const o=`\`${s}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${s}\` by passing a \`${S}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as z,d as O,a as E,y as C,E as T}from"./register-
|
|
1
|
+
import{h as z,d as O,a as E,y as C,E as T}from"./register-_G2N7H5v.js";function p(l,r,t){let s=t.initialDeps??[],e;function n(){var i,o,h,c;let a;t.key&&(i=t.debug)!=null&&i.call(t)&&(a=Date.now());const u=l();if(!(u.length!==s.length||u.some((g,f)=>s[f]!==g)))return e;s=u;let d;if(t.key&&(o=t.debug)!=null&&o.call(t)&&(d=Date.now()),e=r(...u),t.key&&(h=t.debug)!=null&&h.call(t)){const g=Math.round((Date.now()-a)*100)/100,f=Math.round((Date.now()-d)*100)/100,b=f/16,v=(m,I)=>{for(m=String(m);m.length<I;)m=" "+m;return m};console.info(`%c\u23F1 ${v(f,5)} /${v(g,5)} ms`,`
|
|
2
2
|
font-size: .6rem;
|
|
3
3
|
font-weight: bold;
|
|
4
4
|
color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,t?.key)}return(c=t?.onChange)==null||c.call(t,e),e}return n.updateDeps=i=>{s=i},n}function x(l,r){if(l===void 0)throw new Error("Unexpected undefined");return l}const R=(l,r)=>Math.abs(l-r)<1,A=(l,r,t)=>{let s;return function(...e){l.clearTimeout(s),s=l.setTimeout(()=>r.apply(this,e),t)}},D=l=>l,k=l=>{const r=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let e=r;e<=t;e++)s.push(e);return s},F=(l,r)=>{const t=l.scrollElement;if(!t)return;const s=l.targetWindow;if(!s)return;const e=i=>{const{width:o,height:h}=i;r({width:Math.round(o),height:Math.round(h)})};if(e(t.getBoundingClientRect()),!s.ResizeObserver)return()=>{};const n=new s.ResizeObserver(i=>{const o=()=>{const h=i[0];if(h?.borderBoxSize){const c=h.borderBoxSize[0];if(c){e({width:c.inlineSize,height:c.blockSize});return}}e(t.getBoundingClientRect())};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return n.observe(t,{box:"border-box"}),()=>{n.unobserve(t)}},S={passive:!0},y=typeof window>"u"?!0:"onscrollend"in window,W=(l,r)=>{const t=l.scrollElement;if(!t)return;const s=l.targetWindow;if(!s)return;let e=0;const n=l.options.useScrollendEvent&&y?()=>{}:A(s,()=>{r(e,!1)},l.options.isScrollingResetDelay),i=a=>()=>{const{horizontal:u,isRtl:d}=l.options;e=u?t.scrollLeft*(d&&-1||1):t.scrollTop,n(),r(e,a)},o=i(!0),h=i(!1);h(),t.addEventListener("scroll",o,S);const c=l.options.useScrollendEvent&&y;return c&&t.addEventListener("scrollend",h,S),()=>{t.removeEventListener("scroll",o),c&&t.removeEventListener("scrollend",h)}},j=(l,r,t)=>{if(r?.borderBoxSize){const s=r.borderBoxSize[0];if(s)return Math.round(s[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])},_=(l,{adjustments:r=0,behavior:t},s)=>{var e,n;const i=l+r;(n=(e=s.scrollElement)==null?void 0:e.scrollTo)==null||n.call(e,{[s.options.horizontal?"left":"top"]:i,behavior:t})};class B{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const s=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(e=>{e.forEach(n=>{const i=()=>{this._measureElement(n.target,n)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var e;(e=s())==null||e.disconnect(),t=null},observe:e=>{var n;return(n=s())==null?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return(n=s())==null?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([s,e])=>{typeof e>"u"&&delete t[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:D,rangeExtractor:k,onChange:()=>{},measureElement:j,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var s,e;(e=(s=this.options).onChange)==null||e.call(s,this,t)},this.maybeNotify=p(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=n,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,s)=>{const e=new Map,n=new Map;for(let i=s-1;i>=0;i--){const o=t[i];if(e.has(o.lane))continue;const h=n.get(o.lane);if(h==null||o.end>h.end?n.set(o.lane,o):o.end<h.end&&e.set(o.lane,!0),e.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((i,o)=>i.end===o.end?i.index-o.index:i.end-o.end)[0]:void 0},this.getMeasurementOptions=p(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,s,e,n,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:s,scrollMargin:e,getItemKey:n,enabled:i}),{key:!1}),this.getMeasurements=p(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:s,scrollMargin:e,getItemKey:n,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(a=>{this.itemSizeCache.set(a.key,a.size)}));const h=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,h);for(let a=h;a<t;a++){const u=n(a),d=this.options.lanes===1?c[a-1]:this.getFurthestMeasurement(c,a),g=d?d.end+this.options.gap:s+e,f=o.get(u),b=typeof f=="number"?f:this.options.estimateSize(a),v=g+b,m=d?d.lane:a%this.options.lanes;c[a]={index:a,start:g,size:b,end:v,key:u,lane:m}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=p(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,s,e,n)=>this.range=t.length>0&&s>0?P({measurements:t,outerSize:s,scrollOffset:e,lanes:n}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=p(()=>{let t=null,s=null;const e=this.calculateRange();return e&&(t=e.startIndex,s=e.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,s]},(t,s,e,n,i)=>n===null||i===null?[]:t({startIndex:n,endIndex:i,overscan:s,count:e}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const s=this.options.indexAttribute,e=t.getAttribute(s);return e?parseInt(e,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(t,s)=>{const e=this.indexFromElement(t),n=this.measurementsCache[e];if(!n)return;const i=n.key,o=this.elementsCache.get(i);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(i,t)),t.isConnected&&this.resizeItem(e,this.options.measureElement(t,s,this))},this.resizeItem=(t,s)=>{const e=this.measurementsCache[t];if(!e)return;const n=this.itemSizeCache.get(e.key)??e.size,i=s-n;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(e,i,this):e.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(e.index),this.itemSizeCache=new Map(this.itemSizeCache.set(e.key,s)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((s,e)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(e))});return}this._measureElement(t,void 0)},this.getVirtualItems=p(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,s)=>{const e=[];for(let n=0,i=t.length;n<i;n++){const o=t[n],h=s[o];e.push(h)}return e},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const s=this.getMeasurements();if(s.length!==0)return x(s[M(0,s.length-1,e=>x(s[e]).start,t)])},this.getOffsetForAlignment=(t,s,e=0)=>{const n=this.getSize(),i=this.getScrollOffset();s==="auto"&&(s=t>=i+n?"end":"start"),s==="center"?t+=(e-n)/2:s==="end"&&(t-=n);const o=this.options.horizontal?"scrollWidth":"scrollHeight",h=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-n;return Math.max(Math.min(h,t),0)},this.getOffsetForIndex=(t,s="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const e=this.measurementsCache[t];if(!e)return;const n=this.getSize(),i=this.getScrollOffset();if(s==="auto")if(e.end>=i+n-this.options.scrollPaddingEnd)s="end";else if(e.start<=i+this.options.scrollPaddingStart)s="start";else return[i,s];const o=s==="end"?e.end+this.options.scrollPaddingEnd:e.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,s,e.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:s="start",behavior:e}={})=>{this.cancelScrollToIndex(),e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,s),{adjustments:void 0,behavior:e})},this.scrollToIndex=(t,{align:s="auto",behavior:e}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const n=this.getOffsetForIndex(t,s);if(!n)return;const[i,o]=n;this._scrollToOffset(i,{adjustments:void 0,behavior:e}),e!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[h]=x(this.getOffsetForIndex(t,o));R(h,this.getScrollOffset())||this.scrollToIndex(t,{align:o,behavior:e})}else this.scrollToIndex(t,{align:o,behavior:e})}))},this.scrollBy=(t,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var t;const s=this.getMeasurements();let e;if(s.length===0)e=this.options.paddingStart;else if(this.options.lanes===1)e=((t=s[s.length-1])==null?void 0:t.end)??0;else{const n=Array(this.options.lanes).fill(null);let i=s.length-1;for(;i>=0&&n.some(o=>o===null);){const o=s[i];n[o.lane]===null&&(n[o.lane]=o.end),i--}e=Math.max(...n.filter(o=>o!==null))}return Math.max(e-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:s,behavior:e})=>{this.options.scrollToFn(t,{behavior:e,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}}const M=(l,r,t,s)=>{for(;l<=r;){const e=(l+r)/2|0,n=t(e);if(n<s)l=e+1;else if(n>s)r=e-1;else return e}return l>0?l-1:0};function P({measurements:l,outerSize:r,scrollOffset:t,lanes:s}){const e=l.length-1,n=h=>l[h].start;if(l.length<=s)return{startIndex:0,endIndex:e};let i=M(0,e,n,t),o=i;if(s===1)for(;o<e&&l[o].end<t+r;)o++;else if(s>1){const h=Array(s).fill(0);for(;o<e&&h.some(a=>a<t+r);){const a=l[o];h[a.lane]=a.end,o++}const c=Array(s).fill(t+r);for(;i>=0&&c.some(a=>a>=t);){const a=l[i];c[a.lane]=a.start,i--}i=Math.max(0,i-i%s),o=Math.min(e,o+(s-1-o%s))}return{startIndex:i,endIndex:o}}const w=typeof document<"u"?E:C;function $(l){const r=z(()=>({}),{})[1],t={...l,onChange:(e,n)=>{var i;n?T(r):r(),(i=l.onChange)==null||i.call(l,e,n)}},[s]=O(()=>new B(t));return s.setOptions(t),w(()=>s._didMount(),[]),w(()=>s._willUpdate()),s}function N(l){return $({observeElementRect:F,observeElementOffset:W,scrollToFn:_,...l})}export{N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as T,e as P,d as v,A as N,y as E,q as w,h as I}from"./register-
|
|
1
|
+
import{O as T,e as P,d as v,A as N,y as E,q as w,h as I}from"./register-_G2N7H5v.js";import{u as U}from"./index-DjntHHkF.js";import{u as A}from"./index-DOKuvoya.js";function h(e,n){return I((t,r)=>n[t][r]??t,e)}var M=e=>{const{present:n,children:t}=e,r=R(n),s=typeof t=="function"?t({present:r.isPresent}):T.only(t),u=U(r.ref,S(s));return typeof t=="function"||r.isPresent?P(s,{ref:u}):null};M.displayName="Presence";function R(e){const[n,t]=v(),r=N(null),s=N(e),u=N("none"),p=e?"mounted":"unmounted",[l,i]=h(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E(()=>{const o=f(r.current);u.current=l==="mounted"?o:"none"},[l]),A(()=>{const o=r.current,c=s.current;if(c!==e){const d=u.current,a=f(o);e?i("MOUNT"):a==="none"||o?.display==="none"?i("UNMOUNT"):i(c&&d!==a?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,i]),A(()=>{if(n){let o;const c=n.ownerDocument.defaultView??window,m=a=>{const O=f(r.current).includes(a.animationName);if(a.target===n&&O&&(i("ANIMATION_END"),!s.current)){const y=n.style.animationFillMode;n.style.animationFillMode="forwards",o=c.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=y)})}},d=a=>{a.target===n&&(u.current=f(r.current))};return n.addEventListener("animationstart",d),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{c.clearTimeout(o),n.removeEventListener("animationstart",d),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else i("ANIMATION_END")},[n,i]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w(o=>{r.current=o?getComputedStyle(o):null,t(o)},[])}}function f(e){return e?.animationName||"none"}function S(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}export{M as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as Q,K as W,D as _,y as N,u as d,A as O,d as K,q as E}from"./register-
|
|
1
|
+
import{x as Q,K as W,D as _,y as N,u as d,A as O,d as K,q as E}from"./register-_G2N7H5v.js";import{c as p}from"./index-CBrz5xtv.js";import{c as X}from"./index-BabdR4qD.js";import{u as Z}from"./index-DjntHHkF.js";import{a as $}from"./index-DIu4_C4G.js";import{u as ee}from"./index-D0ABZUfm.js";import{P as M}from"./index-BWPRLJg-.js";import{u as oe}from"./index-CeboH83Y.js";import{u as te}from"./index-CoF_i6dU.js";var re=W(void 0);function L(e){const t=Q(re);return e||t||"ltr"}var D="rovingFocusGroup.onEntryFocus",ne={bubbles:!1,cancelable:!0},I="RovingFocusGroup",[P,U,ce]=X(I),[se,ae]=$(I,[ce]),[ie,ue]=se(I),B=_((e,t)=>d(P.Provider,{scope:e.__scopeRovingFocusGroup,children:d(P.Slot,{scope:e.__scopeRovingFocusGroup,children:d(le,{...e,ref:t})})}));B.displayName=I;var le=_((e,t)=>{const{__scopeRovingFocusGroup:c,orientation:o,loop:i=!1,dir:T,currentTabStopId:v,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:S,onEntryFocus:m,preventScrollOnEntryFocus:s=!1,...F}=e,b=O(null),g=Z(t,b),R=L(T),[w,r]=te({prop:v,defaultProp:h??null,onChange:S,caller:I}),[u,C]=K(!1),a=oe(m),l=U(c),A=O(!1),[V,x]=K(0);return N(()=>{const n=b.current;if(n)return n.addEventListener(D,a),()=>n.removeEventListener(D,a)},[a]),d(ie,{scope:c,orientation:o,dir:R,loop:i,currentTabStopId:w,onItemFocus:E(n=>r(n),[r]),onItemShiftTab:E(()=>C(!0),[]),onFocusableItemAdd:E(()=>x(n=>n+1),[]),onFocusableItemRemove:E(()=>x(n=>n-1),[]),children:d(M.div,{tabIndex:u||V===0?-1:0,"data-orientation":o,...F,ref:g,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{A.current=!0}),onFocus:p(e.onFocus,n=>{const q=!A.current;if(n.target===n.currentTarget&&q&&!u){const G=new CustomEvent(D,ne);if(n.currentTarget.dispatchEvent(G),!G.defaultPrevented){const y=l().filter(f=>f.focusable),z=y.find(f=>f.active),j=y.find(f=>f.id===w),J=[z,j,...y].filter(Boolean).map(f=>f.ref.current);H(J,s)}}A.current=!1}),onBlur:p(e.onBlur,()=>C(!1))})})}),k="RovingFocusGroupItem",Y=_((e,t)=>{const{__scopeRovingFocusGroup:c,focusable:o=!0,active:i=!1,tabStopId:T,children:v,...h}=e,S=ee(),m=T||S,s=ue(k,c),F=s.currentTabStopId===m,b=U(c),{onFocusableItemAdd:g,onFocusableItemRemove:R,currentTabStopId:w}=s;return N(()=>{if(o)return g(),()=>R()},[o,g,R]),d(P.ItemSlot,{scope:c,id:m,focusable:o,active:i,children:d(M.span,{tabIndex:F?0:-1,"data-orientation":s.orientation,...h,ref:t,onMouseDown:p(e.onMouseDown,r=>{o?s.onItemFocus(m):r.preventDefault()}),onFocus:p(e.onFocus,()=>s.onItemFocus(m)),onKeyDown:p(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){s.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const u=me(r,s.orientation,s.dir);if(u!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let a=b().filter(l=>l.focusable).map(l=>l.ref.current);if(u==="last")a.reverse();else if(u==="prev"||u==="next"){u==="prev"&&a.reverse();const l=a.indexOf(r.currentTarget);a=s.loop?pe(a,l+1):a.slice(l+1)}setTimeout(()=>H(a))}}),children:typeof v=="function"?v({isCurrentTabStop:F,hasTabStop:w!=null}):v})})});Y.displayName=k;var fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function me(e,t,c){const o=de(e.key,c);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fe[o]}function H(e,t=!1){const c=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(o===c||(o.focus({preventScroll:t}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()!==c))return}function pe(e,t){return e.map((c,o)=>e[(t+o)%e.length])}var ve=B,Ie=Y;export{Ie as I,ve as R,ae as c,L as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as Y,q as yt,A as J,a as Pe,y as Bt,T as lt,E as Re,D as at,u as j}from"./register-D6N8B6AV.js";import{P as vt}from"./index-kdb6LTlL.js";import{u as Vt}from"./index-uEcL3mb6.js";import{a as Oe}from"./index-DlrTtA-M.js";import{u as Ce}from"./index-DfI1C0CI.js";import{u as bt}from"./index-BgsAJgCB.js";const Se=["top","right","bottom","left"],U=Math.min,F=Math.max,ft=Math.round,ut=Math.floor,B=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},De={start:"end",end:"start"};function At(t,e,n){return F(t,U(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function Z(t){return["top","bottom"].includes(q(t))?"y":"x"}function Ot(t){return Pt(Z(t))}function Te(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Ot(t),r=Rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=dt(s)),[s,dt(s)]}function Le(t){const e=dt(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>De[e])}function Me(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function $e(t,e,n,o){const i=Q(t);let r=Me(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Ct)))),r}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function ke(t){return{top:0,right:0,bottom:0,left:0,...t}}function It(t){return typeof t!="number"?ke(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Yt(t,e,n){let{reference:o,floating:i}=t;const r=Z(e),s=Ot(e),c=Rt(s),l=q(e),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(Q(e)){case"start":d[s]-=h*(n&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-1:1);break}return d}const Fe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Yt(a,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x:b,y:v,data:x,reset:y}=await g({x:f,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=b??f,u=v??u,d={...d,[w]:{...d[w],...x}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(a=y.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):y.rects),{x:f,y:u}=Yt(a,h,l)),m=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(e,t),p=It(d),w=c[h?u==="floating"?"reference":"floating":u],g=pt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),b=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),x=await(r.isElement==null?void 0:r.isElement(v))?await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1}:{x:1,y:1},y=pt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-y.top+p.top)/x.y,bottom:(y.bottom-g.bottom+p.bottom)/x.y,left:(g.left-y.left+p.left)/x.x,right:(y.right-g.right+p.right)/x.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=It(f),h={x:n,y:o},d=Ot(i),p=Rt(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",b=w?"bottom":"right",v=w?"clientHeight":"clientWidth",x=r.reference[p]+r.reference[d]-h[d]-r.floating[p],y=h[d]-r.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=R?R[v]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=c.floating[v]||r.floating[p]);const D=x/2-y/2,k=P/2-m[p]/2-1,T=U(u[g],k),M=U(u[b],k),$=T,C=P-m[p]-M,O=P/2-m[p]/2+D,H=At($,O,C),S=!l.arrow&&Q(i)!=null&&O!==H&&r.reference[p]/2-(O<$?T:M)-m[p]/2<0,E=S?O<$?O-$:O-C:0;return{[d]:h[d]+E,data:{[d]:H,centerOffset:O-H-E,...S&&{alignmentOffset:E}},reset:S}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),b=Z(c),v=q(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),y=h||(v||!m?[dt(c)]:Le(c)),R=p!=="none";!h&&R&&y.push(...$e(c,m,p,x));const P=[c,...y],D=await it(e,w),k=[];let T=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&k.push(D[g]),u){const O=Te(i,s,x);k.push(D[O[0]],D[O[1]])}if(T=[...T,{placement:i,overflows:k}],!k.every(O=>O<=0)){var M,$;const O=(((M=r.flip)==null?void 0:M.index)||0)+1,H=P[O];if(H)return{data:{index:O,overflows:T},reset:{placement:H}};let S=($=T.filter(E=>E.overflows[0]<=0).sort((E,A)=>E.overflows[1]-A.overflows[1])[0])==null?void 0:$.placement;if(!S)switch(d){case"bestFit":{var C;const E=(C=T.filter(A=>{if(R){const L=Z(A.placement);return L===b||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((A,L)=>A[1]-L[1])[0])==null?void 0:C[0];E&&(S=E);break}case"initialPlacement":S=c;break}if(i!==S)return{reset:{placement:S}}}return{}}}};function jt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xt(t){return Se.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=jt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xt(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=jt(r,n.floating);return{data:{escapedOffsets:s,escaped:Xt(s)}}}default:return{}}}}};async function ze(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=Q(n),l=Z(n)==="y",a=["left","top"].includes(s)?-1:1,f=r&&l?-1:1,u=X(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:h*a}:{x:h*a,y:d*f}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await ze(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Be=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}},...l}=X(t,e),a={x:n,y:o},f=await it(e,l),u=Z(q(i)),h=Pt(u);let d=a[h],p=a[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=d+f[w],v=d-f[g];d=At(b,d,v)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",b=p+f[w],v=p-f[g];p=At(b,p,v)}const m=c.fn({...e,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[u]:s}}}}}},Ve=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=X(t,e),f={x:n,y:o},u=Z(i),h=Pt(u);let d=f[h],p=f[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const v=h==="y"?"height":"width",x=r.reference[h]-r.floating[v]+w.mainAxis,y=r.reference[h]+r.reference[v]-w.mainAxis;d<x?d=x:d>y&&(d=y)}if(a){var g,b;const v=h==="y"?"width":"height",x=["top","left"].includes(q(i)),y=r.reference[u]-r.floating[v]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),R=r.reference[u]+r.reference[v]+(x?0:((b=s.offset)==null?void 0:b[u])||0)-(x?w.crossAxis:0);p<y?p=y:p>R&&(p=R)}return{[h]:d,[u]:p}}}},Ie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...a}=X(t,e),f=await it(e,a),u=q(i),h=Q(i),d=Z(i)==="y",{width:p,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const b=m-f.top-f.bottom,v=p-f.left-f.right,x=U(m-f[w],b),y=U(p-f[g],v),R=!e.middlewareData.shift;let P=x,D=y;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=v),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(P=b),R&&!h){const T=F(f.left,0),M=F(f.right,0),$=F(f.top,0),C=F(f.bottom,0);d?D=p-2*(T!==0||M!==0?T+M:F(f.left,f.right)):P=m-2*($!==0||C!==0?$+C:F(f.top,f.bottom))}await l({...e,availableWidth:D,availableHeight:P});const k=await s.getDimensions(c.floating);return p!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function tt(t){return qt(t)?(t.nodeName||"").toLowerCase():"#document"}function N(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(qt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qt(t){return ht()?t instanceof Node||t instanceof N(t).Node:!1}function W(t){return ht()?t instanceof Element||t instanceof N(t).Element:!1}function I(t){return ht()?t instanceof HTMLElement||t instanceof N(t).HTMLElement:!1}function Ut(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof N(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ye(t){return["table","td","th"].includes(tt(t))}function mt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function St(t){const e=Et(),n=W(t)?z(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function je(t){let e=K(t);for(;I(e)&&!et(e);){if(St(e))return e;if(mt(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function z(t){return N(t).getComputedStyle(t)}function gt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ut(t)&&t.host||V(t);return Ut(e)?e.host:e}function Zt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Zt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Zt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=N(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kt(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ft(n)!==r||ft(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Tt(t){return W(t)?t:t.contextElement}function nt(t){const e=Tt(t);if(!I(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Kt(e);let s=(r?ft(n.width):n.width)/o,c=(r?ft(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Xe=B(0);function Gt(t){const e=N(t);return!Et()||!e.visualViewport?Xe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==N(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Tt(t);let s=B(1);e&&(o?W(o)&&(s=nt(o)):s=nt(t));const c=qe(r,n,o)?Gt(r):B(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const h=N(r),d=o&&W(o)?N(o):o;let p=h,m=Dt(p);for(;m&&o&&d!==p;){const w=nt(m),g=m.getBoundingClientRect(),b=z(m),v=g.left+(m.clientLeft+parseFloat(b.paddingLeft))*w.x,x=g.top+(m.clientTop+parseFloat(b.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=v,a+=x,p=N(m),m=Dt(p)}}return pt({width:f,height:u,x:l,y:a})}function Lt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Lt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function Ue(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=V(o),c=e?mt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=B(1);const f=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=gt(o)),I(o))){const d=G(o);a=nt(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!r?Jt(s,l,!0):B(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.y+h.y}}function Ze(t){return Array.from(t.getClientRects())}function Ke(t){const e=V(t),n=gt(t),o=t.ownerDocument.body,i=F(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=F(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Lt(t);const c=-n.scrollTop;return z(o).direction==="rtl"&&(s+=F(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ge(t,e){const n=N(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=Et();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Je(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=I(t)?nt(t):B(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function Qt(t,e,n){let o;if(e==="viewport")o=Ge(t,n);else if(e==="document")o=Ke(V(t));else if(W(e))o=Je(e,n);else{const i=Gt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return pt(o)}function te(t,e){const n=K(t);return n===e||!W(n)||et(n)?!1:z(n).position==="fixed"||te(n,e)}function Qe(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>W(c)&&tt(c)!=="body"),i=null;const r=z(t).position==="fixed";let s=r?K(t):t;for(;W(s)&&!et(s);){const c=z(s),l=St(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&te(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function tn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:Qe(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Qt(e,f,i);return a.top=F(u.top,a.top),a.right=U(u.right,a.right),a.bottom=U(u.bottom,a.bottom),a.left=F(u.left,a.left),a},Qt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function en(t){const{width:e,height:n}=Kt(t);return{width:e,height:n}}function nn(t,e,n){const o=I(e),i=V(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=B(0);if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=gt(e)),o){const h=G(e,!0,r,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=Lt(i));const a=i&&!o&&!r?Jt(i,c):B(0),f=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:f,y:u,width:s.width,height:s.height}}function Mt(t){return z(t).position==="static"}function ee(t,e){if(!I(t)||z(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=N(t);if(mt(t))return n;if(!I(t)){let i=K(t);for(;i&&!et(i);){if(W(i)&&!Mt(i))return i;i=K(i)}return n}let o=ee(t,e);for(;o&&Ye(o)&&Mt(o);)o=ee(o,e);return o&&et(o)&&Mt(o)&&!St(o)?n:o||je(t)||n}const on=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function rn(t){return z(t).direction==="rtl"}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:Ue,getDocumentElement:V,getClippingRect:tn,getOffsetParent:ne,getElementRects:on,getClientRects:Ze,getDimensions:en,getScale:nt,isElement:W,isRTL:rn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function cn(t,e){let n=null,o;const i=V(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const a=t.getBoundingClientRect(),{left:f,top:u,width:h,height:d}=a;if(c||e(),!h||!d)return;const p=ut(u),m=ut(i.clientWidth-(f+h)),w=ut(i.clientHeight-(u+d)),g=ut(f),v={rootMargin:-p+"px "+-m+"px "+-w+"px "+-g+"px",threshold:F(0,U(1,l))||1};let x=!0;function y(R){const P=R[0].intersectionRatio;if(P!==l){if(!x)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!oe(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,v)}n.observe(t)}return s(!0),r}function ln(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Tt(t),f=i||r?[...a?st(a):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?cn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[b]=g;b&&b.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&!oe(m,g)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(b=>{i&&b.removeEventListener("scroll",n),r&&b.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const an=_e,fn=Be,un=He,dn=Ie,pn=We,ie=Ne,hn=Ve,mn=(t,e,n)=>{const o=new Map,i={platform:sn,...n},r={...i.platform,_c:o};return Fe(t,e,{...i,platform:r})};var wt=typeof document<"u"?Pe:Bt;function xt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!xt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!xt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function se(t,e){const n=re(t);return Math.round(e*n)/n}function $t(t){const e=J(t);return wt(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=Y({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=Y(o);xt(h,o)||d(o);const[p,m]=Y(null),[w,g]=Y(null),b=yt(A=>{A!==R.current&&(R.current=A,m(A))},[]),v=yt(A=>{A!==P.current&&(P.current=A,g(A))},[]),x=r||p,y=s||w,R=J(null),P=J(null),D=J(f),k=l!=null,T=$t(l),M=$t(i),$=$t(a),C=yt(()=>{if(!R.current||!P.current)return;const A={placement:e,strategy:n,middleware:h};M.current&&(A.platform=M.current),mn(R.current,P.current,A).then(L=>{const _={...L,isPositioned:$.current!==!1};O.current&&!xt(D.current,_)&&(D.current=_,Re(()=>{u(_)}))})},[h,e,n,M,$]);wt(()=>{a===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const O=J(!1);wt(()=>(O.current=!0,()=>{O.current=!1}),[]),wt(()=>{if(x&&(R.current=x),y&&(P.current=y),x&&y){if(T.current)return T.current(x,y,C);C()}},[x,y,C,T,k]);const H=lt(()=>({reference:R,floating:P,setReference:b,setFloating:v}),[b,v]),S=lt(()=>({reference:x,floating:y}),[x,y]),E=lt(()=>{const A={position:n,left:0,top:0};if(!S.floating)return A;const L=se(S.floating,f.x),_=se(S.floating,f.y);return c?{...A,transform:"translate("+L+"px, "+_+"px)",...re(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,c,S.floating,f.x,f.y]);return lt(()=>({...f,update:C,refs:H,elements:S,floatingStyles:E}),[f,C,H,S,E])}const wn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?ie({element:o.current,padding:i}).fn(n):{}:o?ie({element:o,padding:i}).fn(n):{}}}},xn=(t,e)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...hn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),Pn=(t,e)=>({...pn(t),options:[t,e]}),Rn=(t,e)=>({...wn(t),options:[t,e]});var On="Arrow",ce=at((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(vt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j("polygon",{points:"0,0 30,0 15,10"})})});ce.displayName=On;var Cn=ce;function Sn(t){const[e,n]=Y(void 0);return bt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var kt="Popper",[le,En]=Oe(kt),[Dn,ae]=le(kt),Ft=t=>{const{__scopePopper:e,children:n}=t,[o,i]=Y(null);return j(Dn,{scope:e,anchor:o,onAnchorChange:i,children:n})};Ft.displayName=kt;var fe="PopperAnchor",Nt=at((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=ae(fe,n),s=J(null),c=Vt(e,s);return Bt(()=>{r.onAnchorChange(o?.current||s.current)}),o?null:j(vt.div,{...i,ref:c})});Nt.displayName=fe;var Ht="PopperContent",[Tn,Ln]=le(Ht),Wt=at((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=ae(Ht,n),[g,b]=Y(null),v=Vt(e,ot=>b(ot)),[x,y]=Y(null),R=Sn(x),P=R?.width??0,D=R?.height??0,k=o+(r!=="center"?"-"+r:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(a)?a:[a],$=M.length>0,C={padding:T,boundary:M.filter($n),altBoundary:$},{refs:O,floatingStyles:H,placement:S,isPositioned:E,middlewareData:A}=gn({strategy:"fixed",placement:k,whileElementsMounted:(...ot)=>ln(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[xn({mainAxis:i+D,alignmentAxis:s}),l&&yn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?vn():void 0,...C}),l&&bn({...C}),An({...C,apply:({elements:ot,rects:_t,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=_t.reference,ct=ot.floating.style;ct.setProperty("--radix-popper-available-width",`${ye}px`),ct.setProperty("--radix-popper-available-height",`${ve}px`),ct.setProperty("--radix-popper-anchor-width",`${be}px`),ct.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),x&&Rn({element:x,padding:c}),kn({arrowWidth:P,arrowHeight:D}),h&&Pn({strategy:"referenceHidden",...C})]}),[L,_]=pe(S),zt=Ce(p);bt(()=>{E&&zt?.()},[E,zt]);const he=A.arrow?.x,me=A.arrow?.y,ge=A.arrow?.centerOffset!==0,[we,xe]=Y();return bt(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),j("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:E?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,["--radix-popper-transform-origin"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Tn,{scope:n,placedSide:L,onArrowChange:y,arrowX:he,arrowY:me,shouldHideArrow:ge,children:j(vt.div,{"data-side":L,"data-align":_,...m,ref:v,style:{...m.style,animation:E?void 0:"none"}})})})});Wt.displayName=Ht;var ue="PopperArrow",Mn={top:"bottom",right:"left",bottom:"top",left:"right"},de=at(function(e,n){const{__scopePopper:o,...i}=e,r=Ln(ue,o),s=Mn[r.placedSide];return j("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:j(Cn,{...i,ref:n,style:{...i.style,display:"block"}})})});de.displayName=ue;function $n(t){return t!==null}var kn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var Fn=Ft,Nn=Nt,Hn=Wt,Wn=de;export{Nn as A,Hn as C,Ft as P,Fn as R,Wn as a,Wt as b,En as c,Nt as d};
|
|
1
|
+
import{d as Y,q as yt,A as J,a as Pe,y as Bt,T as lt,E as Re,D as at,u as j}from"./register-_G2N7H5v.js";import{P as vt}from"./index-BWPRLJg-.js";import{u as Vt}from"./index-DjntHHkF.js";import{a as Oe}from"./index-DIu4_C4G.js";import{u as Ce}from"./index-CeboH83Y.js";import{u as bt}from"./index-DOKuvoya.js";const Se=["top","right","bottom","left"],U=Math.min,F=Math.max,ft=Math.round,ut=Math.floor,B=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},De={start:"end",end:"start"};function At(t,e,n){return F(t,U(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function Z(t){return["top","bottom"].includes(q(t))?"y":"x"}function Ot(t){return Pt(Z(t))}function Te(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Ot(t),r=Rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=dt(s)),[s,dt(s)]}function Le(t){const e=dt(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>De[e])}function Me(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function $e(t,e,n,o){const i=Q(t);let r=Me(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Ct)))),r}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function ke(t){return{top:0,right:0,bottom:0,left:0,...t}}function It(t){return typeof t!="number"?ke(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Yt(t,e,n){let{reference:o,floating:i}=t;const r=Z(e),s=Ot(e),c=Rt(s),l=q(e),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(Q(e)){case"start":d[s]-=h*(n&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-1:1);break}return d}const Fe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Yt(a,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x:b,y:v,data:x,reset:y}=await g({x:f,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=b??f,u=v??u,d={...d,[w]:{...d[w],...x}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(a=y.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):y.rects),{x:f,y:u}=Yt(a,h,l)),m=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(e,t),p=It(d),w=c[h?u==="floating"?"reference":"floating":u],g=pt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),b=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),x=await(r.isElement==null?void 0:r.isElement(v))?await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1}:{x:1,y:1},y=pt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-y.top+p.top)/x.y,bottom:(y.bottom-g.bottom+p.bottom)/x.y,left:(g.left-y.left+p.left)/x.x,right:(y.right-g.right+p.right)/x.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=It(f),h={x:n,y:o},d=Ot(i),p=Rt(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",b=w?"bottom":"right",v=w?"clientHeight":"clientWidth",x=r.reference[p]+r.reference[d]-h[d]-r.floating[p],y=h[d]-r.reference[d],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let P=R?R[v]:0;(!P||!await(s.isElement==null?void 0:s.isElement(R)))&&(P=c.floating[v]||r.floating[p]);const D=x/2-y/2,k=P/2-m[p]/2-1,T=U(u[g],k),M=U(u[b],k),$=T,C=P-m[p]-M,O=P/2-m[p]/2+D,H=At($,O,C),S=!l.arrow&&Q(i)!=null&&O!==H&&r.reference[p]/2-(O<$?T:M)-m[p]/2<0,E=S?O<$?O-$:O-C:0;return{[d]:h[d]+E,data:{[d]:H,centerOffset:O-H-E,...S&&{alignmentOffset:E}},reset:S}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),b=Z(c),v=q(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),y=h||(v||!m?[dt(c)]:Le(c)),R=p!=="none";!h&&R&&y.push(...$e(c,m,p,x));const P=[c,...y],D=await it(e,w),k=[];let T=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&k.push(D[g]),u){const O=Te(i,s,x);k.push(D[O[0]],D[O[1]])}if(T=[...T,{placement:i,overflows:k}],!k.every(O=>O<=0)){var M,$;const O=(((M=r.flip)==null?void 0:M.index)||0)+1,H=P[O];if(H)return{data:{index:O,overflows:T},reset:{placement:H}};let S=($=T.filter(E=>E.overflows[0]<=0).sort((E,A)=>E.overflows[1]-A.overflows[1])[0])==null?void 0:$.placement;if(!S)switch(d){case"bestFit":{var C;const E=(C=T.filter(A=>{if(R){const L=Z(A.placement);return L===b||L==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(L=>L>0).reduce((L,_)=>L+_,0)]).sort((A,L)=>A[1]-L[1])[0])==null?void 0:C[0];E&&(S=E);break}case"initialPlacement":S=c;break}if(i!==S)return{reset:{placement:S}}}return{}}}};function jt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xt(t){return Se.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=jt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xt(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=jt(r,n.floating);return{data:{escapedOffsets:s,escaped:Xt(s)}}}default:return{}}}}};async function ze(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=Q(n),l=Z(n)==="y",a=["left","top"].includes(s)?-1:1,f=r&&l?-1:1,u=X(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:h*a}:{x:h*a,y:d*f}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await ze(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Be=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}},...l}=X(t,e),a={x:n,y:o},f=await it(e,l),u=Z(q(i)),h=Pt(u);let d=a[h],p=a[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=d+f[w],v=d-f[g];d=At(b,d,v)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",b=p+f[w],v=p-f[g];p=At(b,p,v)}const m=c.fn({...e,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[u]:s}}}}}},Ve=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=X(t,e),f={x:n,y:o},u=Z(i),h=Pt(u);let d=f[h],p=f[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const v=h==="y"?"height":"width",x=r.reference[h]-r.floating[v]+w.mainAxis,y=r.reference[h]+r.reference[v]-w.mainAxis;d<x?d=x:d>y&&(d=y)}if(a){var g,b;const v=h==="y"?"width":"height",x=["top","left"].includes(q(i)),y=r.reference[u]-r.floating[v]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),R=r.reference[u]+r.reference[v]+(x?0:((b=s.offset)==null?void 0:b[u])||0)-(x?w.crossAxis:0);p<y?p=y:p>R&&(p=R)}return{[h]:d,[u]:p}}}},Ie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...a}=X(t,e),f=await it(e,a),u=q(i),h=Q(i),d=Z(i)==="y",{width:p,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const b=m-f.top-f.bottom,v=p-f.left-f.right,x=U(m-f[w],b),y=U(p-f[g],v),R=!e.middlewareData.shift;let P=x,D=y;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(D=v),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(P=b),R&&!h){const T=F(f.left,0),M=F(f.right,0),$=F(f.top,0),C=F(f.bottom,0);d?D=p-2*(T!==0||M!==0?T+M:F(f.left,f.right)):P=m-2*($!==0||C!==0?$+C:F(f.top,f.bottom))}await l({...e,availableWidth:D,availableHeight:P});const k=await s.getDimensions(c.floating);return p!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function tt(t){return qt(t)?(t.nodeName||"").toLowerCase():"#document"}function N(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(qt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qt(t){return ht()?t instanceof Node||t instanceof N(t).Node:!1}function W(t){return ht()?t instanceof Element||t instanceof N(t).Element:!1}function I(t){return ht()?t instanceof HTMLElement||t instanceof N(t).HTMLElement:!1}function Ut(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof N(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ye(t){return["table","td","th"].includes(tt(t))}function mt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function St(t){const e=Et(),n=W(t)?z(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function je(t){let e=K(t);for(;I(e)&&!et(e);){if(St(e))return e;if(mt(e))return null;e=K(e)}return null}function Et(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function z(t){return N(t).getComputedStyle(t)}function gt(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ut(t)&&t.host||V(t);return Ut(e)?e.host:e}function Zt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Zt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Zt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=N(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kt(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ft(n)!==r||ft(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Tt(t){return W(t)?t:t.contextElement}function nt(t){const e=Tt(t);if(!I(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Kt(e);let s=(r?ft(n.width):n.width)/o,c=(r?ft(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Xe=B(0);function Gt(t){const e=N(t);return!Et()||!e.visualViewport?Xe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==N(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Tt(t);let s=B(1);e&&(o?W(o)&&(s=nt(o)):s=nt(t));const c=qe(r,n,o)?Gt(r):B(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const h=N(r),d=o&&W(o)?N(o):o;let p=h,m=Dt(p);for(;m&&o&&d!==p;){const w=nt(m),g=m.getBoundingClientRect(),b=z(m),v=g.left+(m.clientLeft+parseFloat(b.paddingLeft))*w.x,x=g.top+(m.clientTop+parseFloat(b.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=v,a+=x,p=N(m),m=Dt(p)}}return pt({width:f,height:u,x:l,y:a})}function Lt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Lt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function Ue(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=V(o),c=e?mt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=B(1);const f=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=gt(o)),I(o))){const d=G(o);a=nt(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!r?Jt(s,l,!0):B(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.y+h.y}}function Ze(t){return Array.from(t.getClientRects())}function Ke(t){const e=V(t),n=gt(t),o=t.ownerDocument.body,i=F(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=F(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Lt(t);const c=-n.scrollTop;return z(o).direction==="rtl"&&(s+=F(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ge(t,e){const n=N(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=Et();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Je(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=I(t)?nt(t):B(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function Qt(t,e,n){let o;if(e==="viewport")o=Ge(t,n);else if(e==="document")o=Ke(V(t));else if(W(e))o=Je(e,n);else{const i=Gt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return pt(o)}function te(t,e){const n=K(t);return n===e||!W(n)||et(n)?!1:z(n).position==="fixed"||te(n,e)}function Qe(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>W(c)&&tt(c)!=="body"),i=null;const r=z(t).position==="fixed";let s=r?K(t):t;for(;W(s)&&!et(s);){const c=z(s),l=St(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&te(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function tn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:Qe(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Qt(e,f,i);return a.top=F(u.top,a.top),a.right=U(u.right,a.right),a.bottom=U(u.bottom,a.bottom),a.left=F(u.left,a.left),a},Qt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function en(t){const{width:e,height:n}=Kt(t);return{width:e,height:n}}function nn(t,e,n){const o=I(e),i=V(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=B(0);if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=gt(e)),o){const h=G(e,!0,r,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=Lt(i));const a=i&&!o&&!r?Jt(i,c):B(0),f=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:f,y:u,width:s.width,height:s.height}}function Mt(t){return z(t).position==="static"}function ee(t,e){if(!I(t)||z(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=N(t);if(mt(t))return n;if(!I(t)){let i=K(t);for(;i&&!et(i);){if(W(i)&&!Mt(i))return i;i=K(i)}return n}let o=ee(t,e);for(;o&&Ye(o)&&Mt(o);)o=ee(o,e);return o&&et(o)&&Mt(o)&&!St(o)?n:o||je(t)||n}const on=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function rn(t){return z(t).direction==="rtl"}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:Ue,getDocumentElement:V,getClippingRect:tn,getOffsetParent:ne,getElementRects:on,getClientRects:Ze,getDimensions:en,getScale:nt,isElement:W,isRTL:rn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function cn(t,e){let n=null,o;const i=V(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const a=t.getBoundingClientRect(),{left:f,top:u,width:h,height:d}=a;if(c||e(),!h||!d)return;const p=ut(u),m=ut(i.clientWidth-(f+h)),w=ut(i.clientHeight-(u+d)),g=ut(f),v={rootMargin:-p+"px "+-m+"px "+-w+"px "+-g+"px",threshold:F(0,U(1,l))||1};let x=!0;function y(R){const P=R[0].intersectionRatio;if(P!==l){if(!x)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!oe(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,v)}n.observe(t)}return s(!0),r}function ln(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Tt(t),f=i||r?[...a?st(a):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?cn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[b]=g;b&&b.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&!oe(m,g)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(b=>{i&&b.removeEventListener("scroll",n),r&&b.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const an=_e,fn=Be,un=He,dn=Ie,pn=We,ie=Ne,hn=Ve,mn=(t,e,n)=>{const o=new Map,i={platform:sn,...n},r={...i.platform,_c:o};return Fe(t,e,{...i,platform:r})};var wt=typeof document<"u"?Pe:Bt;function xt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!xt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!xt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function se(t,e){const n=re(t);return Math.round(e*n)/n}function $t(t){const e=J(t);return wt(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=Y({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=Y(o);xt(h,o)||d(o);const[p,m]=Y(null),[w,g]=Y(null),b=yt(A=>{A!==R.current&&(R.current=A,m(A))},[]),v=yt(A=>{A!==P.current&&(P.current=A,g(A))},[]),x=r||p,y=s||w,R=J(null),P=J(null),D=J(f),k=l!=null,T=$t(l),M=$t(i),$=$t(a),C=yt(()=>{if(!R.current||!P.current)return;const A={placement:e,strategy:n,middleware:h};M.current&&(A.platform=M.current),mn(R.current,P.current,A).then(L=>{const _={...L,isPositioned:$.current!==!1};O.current&&!xt(D.current,_)&&(D.current=_,Re(()=>{u(_)}))})},[h,e,n,M,$]);wt(()=>{a===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const O=J(!1);wt(()=>(O.current=!0,()=>{O.current=!1}),[]),wt(()=>{if(x&&(R.current=x),y&&(P.current=y),x&&y){if(T.current)return T.current(x,y,C);C()}},[x,y,C,T,k]);const H=lt(()=>({reference:R,floating:P,setReference:b,setFloating:v}),[b,v]),S=lt(()=>({reference:x,floating:y}),[x,y]),E=lt(()=>{const A={position:n,left:0,top:0};if(!S.floating)return A;const L=se(S.floating,f.x),_=se(S.floating,f.y);return c?{...A,transform:"translate("+L+"px, "+_+"px)",...re(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:_}},[n,c,S.floating,f.x,f.y]);return lt(()=>({...f,update:C,refs:H,elements:S,floatingStyles:E}),[f,C,H,S,E])}const wn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?ie({element:o.current,padding:i}).fn(n):{}:o?ie({element:o,padding:i}).fn(n):{}}}},xn=(t,e)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...hn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),Pn=(t,e)=>({...pn(t),options:[t,e]}),Rn=(t,e)=>({...wn(t),options:[t,e]});var On="Arrow",ce=at((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(vt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j("polygon",{points:"0,0 30,0 15,10"})})});ce.displayName=On;var Cn=ce;function Sn(t){const[e,n]=Y(void 0);return bt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var kt="Popper",[le,En]=Oe(kt),[Dn,ae]=le(kt),Ft=t=>{const{__scopePopper:e,children:n}=t,[o,i]=Y(null);return j(Dn,{scope:e,anchor:o,onAnchorChange:i,children:n})};Ft.displayName=kt;var fe="PopperAnchor",Nt=at((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=ae(fe,n),s=J(null),c=Vt(e,s);return Bt(()=>{r.onAnchorChange(o?.current||s.current)}),o?null:j(vt.div,{...i,ref:c})});Nt.displayName=fe;var Ht="PopperContent",[Tn,Ln]=le(Ht),Wt=at((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=ae(Ht,n),[g,b]=Y(null),v=Vt(e,ot=>b(ot)),[x,y]=Y(null),R=Sn(x),P=R?.width??0,D=R?.height??0,k=o+(r!=="center"?"-"+r:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(a)?a:[a],$=M.length>0,C={padding:T,boundary:M.filter($n),altBoundary:$},{refs:O,floatingStyles:H,placement:S,isPositioned:E,middlewareData:A}=gn({strategy:"fixed",placement:k,whileElementsMounted:(...ot)=>ln(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[xn({mainAxis:i+D,alignmentAxis:s}),l&&yn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?vn():void 0,...C}),l&&bn({...C}),An({...C,apply:({elements:ot,rects:_t,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=_t.reference,ct=ot.floating.style;ct.setProperty("--radix-popper-available-width",`${ye}px`),ct.setProperty("--radix-popper-available-height",`${ve}px`),ct.setProperty("--radix-popper-anchor-width",`${be}px`),ct.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),x&&Rn({element:x,padding:c}),kn({arrowWidth:P,arrowHeight:D}),h&&Pn({strategy:"referenceHidden",...C})]}),[L,_]=pe(S),zt=Ce(p);bt(()=>{E&&zt?.()},[E,zt]);const he=A.arrow?.x,me=A.arrow?.y,ge=A.arrow?.centerOffset!==0,[we,xe]=Y();return bt(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),j("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:E?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,["--radix-popper-transform-origin"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Tn,{scope:n,placedSide:L,onArrowChange:y,arrowX:he,arrowY:me,shouldHideArrow:ge,children:j(vt.div,{"data-side":L,"data-align":_,...m,ref:v,style:{...m.style,animation:E?void 0:"none"}})})})});Wt.displayName=Ht;var ue="PopperArrow",Mn={top:"bottom",right:"left",bottom:"top",left:"right"},de=at(function(e,n){const{__scopePopper:o,...i}=e,r=Ln(ue,o),s=Mn[r.placedSide];return j("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:j(Cn,{...i,ref:n,style:{...i.style,display:"block"}})})});de.displayName=ue;function $n(t){return t!==null}var kn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var Fn=Ft,Nn=Nt,Hn=Wt,Wn=de;export{Nn as A,Hn as C,Ft as P,Fn as R,Wn as a,Wt as b,En as c,Nt as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as S,A as R,y as F,q as $,u as c,d as V,T as Ce,$ as xe,k as re}from"./register-D6N8B6AV.js";import{c as g}from"./index-CBrz5xtv.js";import{u as se}from"./index-uEcL3mb6.js";import{c as Re}from"./index-Cuxyk__1.js";import{a as be}from"./index-DlrTtA-M.js";import{B as ge,R as Se}from"./index-mQGnRT7b.js";import{P as Ae}from"./index-f0jF-SQk.js";import{P as Ie}from"./index-DE1LRaad.js";import{P as D,d as _e}from"./index-kdb6LTlL.js";import{u as Y}from"./index-DfI1C0CI.js";import{u as Fe}from"./index-B-5OXVqV.js";import{u as De}from"./index-BgsAJgCB.js";import{V as ae}from"./index-CN23jJke.js";var z="ToastProvider",[G,Ne,Le]=Re("Toast"),[ie,vt]=be("Toast",[Le]),[Oe,B]=ie(z),ce=t=>{const{__scopeToast:n,label:o="Notification",duration:e=5e3,swipeDirection:i="right",swipeThreshold:l=50,children:d}=t,[m,w]=V(null),[a,x]=V(0),E=R(!1),N=R(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${z}\`. Expected non-empty \`string\`.`),c(G.Provider,{scope:n,children:c(Oe,{scope:n,label:o,duration:e,swipeDirection:i,swipeThreshold:l,toastCount:a,viewport:m,onViewportChange:w,onToastAdd:$(()=>x(I=>I+1),[]),onToastRemove:$(()=>x(I=>I-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:N,children:d})})};ce.displayName=z;var ue="ToastViewport",Me=["F8"],J="toast.viewportPause",Q="toast.viewportResume",le=S((t,n)=>{const{__scopeToast:o,hotkey:e=Me,label:i="Notifications ({hotkey})",...l}=t,d=B(ue,o),m=Ne(o),w=R(null),a=R(null),x=R(null),E=R(null),N=se(n,E,d.onViewportChange),I=e.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=d.toastCount>0;F(()=>{const s=y=>{e.length!==0&&e.every(f=>y[f]||y.code===f)&&E.current?.focus()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e]),F(()=>{const s=w.current,y=E.current;if(_&&s&&y){const p=()=>{if(!d.isClosePausedRef.current){const T=new CustomEvent(J);y.dispatchEvent(T),d.isClosePausedRef.current=!0}},f=()=>{if(d.isClosePausedRef.current){const T=new CustomEvent(Q);y.dispatchEvent(T),d.isClosePausedRef.current=!1}},h=T=>{!s.contains(T.relatedTarget)&&f()},P=()=>{s.contains((()=>{let b=document.activeElement;for(;b?.shadowRoot;)b=b.shadowRoot.activeElement;return b})())||f()};return s.addEventListener("focusin",p),s.addEventListener("focusout",h),s.addEventListener("pointermove",p),s.addEventListener("pointerleave",P),window.addEventListener("blur",p),window.addEventListener("focus",f),()=>{s.removeEventListener("focusin",p),s.removeEventListener("focusout",h),s.removeEventListener("pointermove",p),s.removeEventListener("pointerleave",P),window.removeEventListener("blur",p),window.removeEventListener("focus",f)}}},[_,d.isClosePausedRef]);const u=$(({tabbingDirection:s})=>{const p=m().map(f=>{const h=f.ref.current,P=[h,...Ge(h)];return s==="forwards"?P:P.reverse()});return(s==="forwards"?p.reverse():p).flat()},[m]);return F(()=>{const s=E.current;if(s){const y=p=>{const f=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!f){const P=(()=>{let C=document.activeElement;for(;C?.shadowRoot;)C=C.shadowRoot.activeElement;return C})(),T=p.shiftKey;if(p.target===s&&T){a.current?.focus();return}const L=u({tabbingDirection:T?"backwards":"forwards"}),H=L.findIndex(C=>C===P);te(L.slice(H+1))?p.preventDefault():T?a.current?.focus():x.current?.focus()}};return s.addEventListener("keydown",y),()=>s.removeEventListener("keydown",y)}},[m,u]),c(ge,{ref:w,role:"region","aria-label":i.replace("{hotkey}",I),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(Z,{ref:a,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"forwards"});te(s)}}),c(G.Slot,{scope:o,children:c(D.ol,{tabIndex:-1,...l,ref:N})}),_&&c(Z,{ref:x,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"backwards"});te(s)}})]})});le.displayName=ue;var de="ToastFocusProxy",Z=S((t,n)=>{const{__scopeToast:o,onFocusFromOutsideViewport:e,...i}=t,l=B(de,o);return c(ae,{"aria-hidden":!0,tabIndex:0,...i,ref:n,style:{position:"fixed"},onFocus:d=>{const m=d.relatedTarget;!l.viewport?.contains(m)&&e()}})});Z.displayName=de;var k="Toast",Ve="toast.swipeStart",ke="toast.swipeMove",Ke="toast.swipeCancel",He="toast.swipeEnd",pe=S((t,n)=>{const{forceMount:o,open:e,defaultOpen:i,onOpenChange:l,...d}=t,[m,w]=Fe({prop:e,defaultProp:i??!0,onChange:l,caller:k});return c(Ie,{present:o||m,children:c(Xe,{open:m,...d,ref:n,onClose:()=>w(!1),onPause:Y(t.onPause),onResume:Y(t.onResume),onSwipeStart:g(t.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(t.onSwipeMove,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:g(t.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(t.onSwipeEnd,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),w(!1)})})})});pe.displayName=k;var[We,Ue]=ie(k,{onClose(){}}),Xe=S((t,n)=>{const{__scopeToast:o,type:e="foreground",duration:i,open:l,onClose:d,onEscapeKeyDown:m,onPause:w,onResume:a,onSwipeStart:x,onSwipeMove:E,onSwipeCancel:N,onSwipeEnd:I,..._}=t,u=B(k,o),[s,y]=V(null),p=se(n,r=>y(r)),f=R(null),h=R(null),P=i||u.duration,T=R(0),b=R(P),K=R(0),{onToastAdd:L,onToastRemove:H}=u,C=Y(()=>{s?.contains((()=>{let v=document.activeElement;for(;v?.shadowRoot;)v=v.shadowRoot.activeElement;return v})())&&u.viewport?.focus(),d()}),W=$(r=>{!r||r===1/0||(window.clearTimeout(K.current),T.current=new Date().getTime(),K.current=window.setTimeout(C,r))},[C]);F(()=>{const r=u.viewport;if(r){const v=()=>{W(b.current),a?.()},A=()=>{const O=new Date().getTime()-T.current;b.current=b.current-O,window.clearTimeout(K.current),w?.()};return r.addEventListener(J,A),r.addEventListener(Q,v),()=>{r.removeEventListener(J,A),r.removeEventListener(Q,v)}}},[u.viewport,P,w,a,W]),F(()=>{l&&!u.isClosePausedRef.current&&W(P)},[l,P,u.isClosePausedRef,W]),F(()=>(L(),()=>H()),[L,H]);const oe=Ce(()=>s?Ee(s):null,[s]);return u.viewport?c(re,{children:[oe&&c($e,{__scopeToast:o,role:"status","aria-live":e==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c(We,{scope:o,onClose:C,children:xe(c(G.ItemSlot,{scope:o,children:c(Se,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||C(),u.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(D.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":u.swipeDirection,..._,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:g(t.onKeyDown,r=>{r.key==="Escape"&&(m?.(r.nativeEvent),r.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:g(t.onPointerDown,r=>{r.button===0&&(f.current={x:r.clientX,y:r.clientY})}),onPointerMove:g(t.onPointerMove,r=>{if(!f.current)return;const v=r.clientX-f.current.x,A=r.clientY-f.current.y,O=Boolean(h.current),M=["left","right"].includes(u.swipeDirection),U=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,he=M?U(0,v):0,Pe=M?0:U(0,A),j=r.pointerType==="touch"?10:2,X={x:he,y:Pe},ne={originalEvent:r,delta:X};O?(h.current=X,q(ke,E,ne,{discrete:!1})):ye(X,u.swipeDirection,j)?(h.current=X,q(Ve,x,ne,{discrete:!1}),r.target.setPointerCapture(r.pointerId)):(Math.abs(v)>j||Math.abs(A)>j)&&(f.current=null)}),onPointerUp:g(t.onPointerUp,r=>{const v=h.current,A=r.target;if(A.hasPointerCapture(r.pointerId)&&A.releasePointerCapture(r.pointerId),h.current=null,f.current=null,v){const O=r.currentTarget,M={originalEvent:r,delta:v};ye(v,u.swipeDirection,u.swipeThreshold)?q(He,I,M,{discrete:!0}):q(Ke,N,M,{discrete:!0}),O.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})})}),u.viewport)})]}):null}),$e=t=>{const{__scopeToast:n,children:o,...e}=t,i=B(k,n),[l,d]=V(!1),[m,w]=V(!1);return je(()=>d(!0)),F(()=>{const a=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:c(Ae,{asChild:!0,children:c(ae,{...e,children:l&&c(re,{children:[i.label," ",o]})})})},Ye="ToastTitle",fe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});fe.displayName=Ye;var Be="ToastDescription",qe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});qe.displayName=Be;var me="ToastAction",ve=S((t,n)=>{const{altText:o,...e}=t;return o.trim()?c(Te,{altText:o,asChild:!0,children:c(ee,{...e,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${me}\`. Expected non-empty \`string\`.`),null)});ve.displayName=me;var we="ToastClose",ee=S((t,n)=>{const{__scopeToast:o,...e}=t,i=Ue(we,o);return c(Te,{asChild:!0,children:c(D.button,{type:"button",...e,ref:n,onClick:g(t.onClick,i.onClose)})})});ee.displayName=we;var Te=S((t,n)=>{const{__scopeToast:o,altText:e,...i}=t;return c(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":e||void 0,...i,ref:n})});function Ee(t){const n=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&n.push(e.textContent),ze(e)){const i=e.ariaHidden||e.hidden||e.style.display==="none",l=e.dataset.radixToastAnnounceExclude==="";if(!i)if(l){const d=e.dataset.radixToastAnnounceAlt;d&&n.push(d)}else n.push(...Ee(e))}}),n}function q(t,n,o,{discrete:e}){const i=o.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o});n&&i.addEventListener(t,n,{once:!0}),e?_e(i,l):i.dispatchEvent(l)}var ye=(t,n,o=0)=>{const e=Math.abs(t.x),i=Math.abs(t.y),l=e>i;return n==="left"||n==="right"?l&&e>o:!l&&i>o};function je(t=()=>{}){const n=Y(t);De(()=>{let o=0,e=0;return o=window.requestAnimationFrame(()=>e=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(e)}},[n])}function ze(t){return t.nodeType===t.ELEMENT_NODE}function Ge(t){const n=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const i=e.tagName==="INPUT"&&e.type==="hidden";return e.disabled||e.hidden||i?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n}function te(t){const n=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();return t.some(o=>o===n?!0:(o.focus(),(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})()!==n))}var Je=le,Qe=pe,Ze=fe,et=ve,tt=ee;export{et as A,tt as C,Qe as R,ce as T,Je as V,Ze as a};
|
|
1
|
+
import{D as S,A as R,y as F,q as $,u as c,d as V,T as Ce,$ as xe,k as re}from"./register-_G2N7H5v.js";import{c as g}from"./index-CBrz5xtv.js";import{u as se}from"./index-DjntHHkF.js";import{c as Re}from"./index-BabdR4qD.js";import{a as be}from"./index-DIu4_C4G.js";import{B as ge,R as Se}from"./index-n6Sqy68J.js";import{P as Ae}from"./index-CfDkctZZ.js";import{P as Ie}from"./index-C48nY0Mq.js";import{P as D,d as _e}from"./index-BWPRLJg-.js";import{u as Y}from"./index-CeboH83Y.js";import{u as Fe}from"./index-CoF_i6dU.js";import{u as De}from"./index-DOKuvoya.js";import{V as ae}from"./index-BUeSiwKX.js";var z="ToastProvider",[G,Ne,Le]=Re("Toast"),[ie,vt]=be("Toast",[Le]),[Oe,B]=ie(z),ce=t=>{const{__scopeToast:n,label:o="Notification",duration:e=5e3,swipeDirection:i="right",swipeThreshold:l=50,children:d}=t,[m,w]=V(null),[a,x]=V(0),E=R(!1),N=R(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${z}\`. Expected non-empty \`string\`.`),c(G.Provider,{scope:n,children:c(Oe,{scope:n,label:o,duration:e,swipeDirection:i,swipeThreshold:l,toastCount:a,viewport:m,onViewportChange:w,onToastAdd:$(()=>x(I=>I+1),[]),onToastRemove:$(()=>x(I=>I-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:N,children:d})})};ce.displayName=z;var ue="ToastViewport",Me=["F8"],J="toast.viewportPause",Q="toast.viewportResume",le=S((t,n)=>{const{__scopeToast:o,hotkey:e=Me,label:i="Notifications ({hotkey})",...l}=t,d=B(ue,o),m=Ne(o),w=R(null),a=R(null),x=R(null),E=R(null),N=se(n,E,d.onViewportChange),I=e.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=d.toastCount>0;F(()=>{const s=y=>{e.length!==0&&e.every(f=>y[f]||y.code===f)&&E.current?.focus()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e]),F(()=>{const s=w.current,y=E.current;if(_&&s&&y){const p=()=>{if(!d.isClosePausedRef.current){const T=new CustomEvent(J);y.dispatchEvent(T),d.isClosePausedRef.current=!0}},f=()=>{if(d.isClosePausedRef.current){const T=new CustomEvent(Q);y.dispatchEvent(T),d.isClosePausedRef.current=!1}},h=T=>{!s.contains(T.relatedTarget)&&f()},P=()=>{s.contains((()=>{let b=document.activeElement;for(;b?.shadowRoot;)b=b.shadowRoot.activeElement;return b})())||f()};return s.addEventListener("focusin",p),s.addEventListener("focusout",h),s.addEventListener("pointermove",p),s.addEventListener("pointerleave",P),window.addEventListener("blur",p),window.addEventListener("focus",f),()=>{s.removeEventListener("focusin",p),s.removeEventListener("focusout",h),s.removeEventListener("pointermove",p),s.removeEventListener("pointerleave",P),window.removeEventListener("blur",p),window.removeEventListener("focus",f)}}},[_,d.isClosePausedRef]);const u=$(({tabbingDirection:s})=>{const p=m().map(f=>{const h=f.ref.current,P=[h,...Ge(h)];return s==="forwards"?P:P.reverse()});return(s==="forwards"?p.reverse():p).flat()},[m]);return F(()=>{const s=E.current;if(s){const y=p=>{const f=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!f){const P=(()=>{let C=document.activeElement;for(;C?.shadowRoot;)C=C.shadowRoot.activeElement;return C})(),T=p.shiftKey;if(p.target===s&&T){a.current?.focus();return}const L=u({tabbingDirection:T?"backwards":"forwards"}),H=L.findIndex(C=>C===P);te(L.slice(H+1))?p.preventDefault():T?a.current?.focus():x.current?.focus()}};return s.addEventListener("keydown",y),()=>s.removeEventListener("keydown",y)}},[m,u]),c(ge,{ref:w,role:"region","aria-label":i.replace("{hotkey}",I),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(Z,{ref:a,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"forwards"});te(s)}}),c(G.Slot,{scope:o,children:c(D.ol,{tabIndex:-1,...l,ref:N})}),_&&c(Z,{ref:x,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"backwards"});te(s)}})]})});le.displayName=ue;var de="ToastFocusProxy",Z=S((t,n)=>{const{__scopeToast:o,onFocusFromOutsideViewport:e,...i}=t,l=B(de,o);return c(ae,{"aria-hidden":!0,tabIndex:0,...i,ref:n,style:{position:"fixed"},onFocus:d=>{const m=d.relatedTarget;!l.viewport?.contains(m)&&e()}})});Z.displayName=de;var k="Toast",Ve="toast.swipeStart",ke="toast.swipeMove",Ke="toast.swipeCancel",He="toast.swipeEnd",pe=S((t,n)=>{const{forceMount:o,open:e,defaultOpen:i,onOpenChange:l,...d}=t,[m,w]=Fe({prop:e,defaultProp:i??!0,onChange:l,caller:k});return c(Ie,{present:o||m,children:c(Xe,{open:m,...d,ref:n,onClose:()=>w(!1),onPause:Y(t.onPause),onResume:Y(t.onResume),onSwipeStart:g(t.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(t.onSwipeMove,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:g(t.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(t.onSwipeEnd,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),w(!1)})})})});pe.displayName=k;var[We,Ue]=ie(k,{onClose(){}}),Xe=S((t,n)=>{const{__scopeToast:o,type:e="foreground",duration:i,open:l,onClose:d,onEscapeKeyDown:m,onPause:w,onResume:a,onSwipeStart:x,onSwipeMove:E,onSwipeCancel:N,onSwipeEnd:I,..._}=t,u=B(k,o),[s,y]=V(null),p=se(n,r=>y(r)),f=R(null),h=R(null),P=i||u.duration,T=R(0),b=R(P),K=R(0),{onToastAdd:L,onToastRemove:H}=u,C=Y(()=>{s?.contains((()=>{let v=document.activeElement;for(;v?.shadowRoot;)v=v.shadowRoot.activeElement;return v})())&&u.viewport?.focus(),d()}),W=$(r=>{!r||r===1/0||(window.clearTimeout(K.current),T.current=new Date().getTime(),K.current=window.setTimeout(C,r))},[C]);F(()=>{const r=u.viewport;if(r){const v=()=>{W(b.current),a?.()},A=()=>{const O=new Date().getTime()-T.current;b.current=b.current-O,window.clearTimeout(K.current),w?.()};return r.addEventListener(J,A),r.addEventListener(Q,v),()=>{r.removeEventListener(J,A),r.removeEventListener(Q,v)}}},[u.viewport,P,w,a,W]),F(()=>{l&&!u.isClosePausedRef.current&&W(P)},[l,P,u.isClosePausedRef,W]),F(()=>(L(),()=>H()),[L,H]);const oe=Ce(()=>s?Ee(s):null,[s]);return u.viewport?c(re,{children:[oe&&c($e,{__scopeToast:o,role:"status","aria-live":e==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),c(We,{scope:o,onClose:C,children:xe(c(G.ItemSlot,{scope:o,children:c(Se,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||C(),u.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(D.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":u.swipeDirection,..._,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:g(t.onKeyDown,r=>{r.key==="Escape"&&(m?.(r.nativeEvent),r.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:g(t.onPointerDown,r=>{r.button===0&&(f.current={x:r.clientX,y:r.clientY})}),onPointerMove:g(t.onPointerMove,r=>{if(!f.current)return;const v=r.clientX-f.current.x,A=r.clientY-f.current.y,O=Boolean(h.current),M=["left","right"].includes(u.swipeDirection),U=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,he=M?U(0,v):0,Pe=M?0:U(0,A),j=r.pointerType==="touch"?10:2,X={x:he,y:Pe},ne={originalEvent:r,delta:X};O?(h.current=X,q(ke,E,ne,{discrete:!1})):ye(X,u.swipeDirection,j)?(h.current=X,q(Ve,x,ne,{discrete:!1}),r.target.setPointerCapture(r.pointerId)):(Math.abs(v)>j||Math.abs(A)>j)&&(f.current=null)}),onPointerUp:g(t.onPointerUp,r=>{const v=h.current,A=r.target;if(A.hasPointerCapture(r.pointerId)&&A.releasePointerCapture(r.pointerId),h.current=null,f.current=null,v){const O=r.currentTarget,M={originalEvent:r,delta:v};ye(v,u.swipeDirection,u.swipeThreshold)?q(He,I,M,{discrete:!0}):q(Ke,N,M,{discrete:!0}),O.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})})}),u.viewport)})]}):null}),$e=t=>{const{__scopeToast:n,children:o,...e}=t,i=B(k,n),[l,d]=V(!1),[m,w]=V(!1);return je(()=>d(!0)),F(()=>{const a=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:c(Ae,{asChild:!0,children:c(ae,{...e,children:l&&c(re,{children:[i.label," ",o]})})})},Ye="ToastTitle",fe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});fe.displayName=Ye;var Be="ToastDescription",qe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});qe.displayName=Be;var me="ToastAction",ve=S((t,n)=>{const{altText:o,...e}=t;return o.trim()?c(Te,{altText:o,asChild:!0,children:c(ee,{...e,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${me}\`. Expected non-empty \`string\`.`),null)});ve.displayName=me;var we="ToastClose",ee=S((t,n)=>{const{__scopeToast:o,...e}=t,i=Ue(we,o);return c(Te,{asChild:!0,children:c(D.button,{type:"button",...e,ref:n,onClick:g(t.onClick,i.onClose)})})});ee.displayName=we;var Te=S((t,n)=>{const{__scopeToast:o,altText:e,...i}=t;return c(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":e||void 0,...i,ref:n})});function Ee(t){const n=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&n.push(e.textContent),ze(e)){const i=e.ariaHidden||e.hidden||e.style.display==="none",l=e.dataset.radixToastAnnounceExclude==="";if(!i)if(l){const d=e.dataset.radixToastAnnounceAlt;d&&n.push(d)}else n.push(...Ee(e))}}),n}function q(t,n,o,{discrete:e}){const i=o.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o});n&&i.addEventListener(t,n,{once:!0}),e?_e(i,l):i.dispatchEvent(l)}var ye=(t,n,o=0)=>{const e=Math.abs(t.x),i=Math.abs(t.y),l=e>i;return n==="left"||n==="right"?l&&e>o:!l&&i>o};function je(t=()=>{}){const n=Y(t);De(()=>{let o=0,e=0;return o=window.requestAnimationFrame(()=>e=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(e)}},[n])}function ze(t){return t.nodeType===t.ELEMENT_NODE}function Ge(t){const n=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const i=e.tagName==="INPUT"&&e.type==="hidden";return e.disabled||e.hidden||i?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n}function te(t){const n=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();return t.some(o=>o===n?!0:(o.focus(),(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})()!==n))}var Je=le,Qe=pe,Ze=fe,et=ve,tt=ee;export{et as A,tt as C,Qe as R,ce as T,Je as V,Ze as a};
|