@optiaxiom/web-components 0.8.9 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js +1 -0
- package/dist/AlertDialogContext-BQQPj43r.js +1 -0
- package/dist/{AngleMenuButton-DT5bXUOd.js → AngleMenuButton-Dpu__g4S.js} +1 -1
- package/dist/Avatar-B-5aPEVa.js +1 -0
- package/dist/AvatarContext-BaTFcjJc.js +1 -0
- package/dist/Backdrop-BnKgD--1.js +1 -0
- package/dist/Badge-D3aIAdaZ.js +1 -0
- package/dist/Box-f-JjBnIv.js +1 -0
- package/dist/Button-C_Ez5mOU.js +1 -0
- package/dist/ButtonContext-B6QU1BxG.js +1 -0
- package/dist/Checkbox-BicvbNhW.js +1 -0
- package/dist/{Combination-B6IrmUOm.js → Combination-DMAK51Pq.js} +1 -1
- package/dist/Cover-B7GZsjOx.js +1 -0
- package/dist/DialogContext-o925nZKL.js +1 -0
- package/dist/{DisclosureContext-DN4bQ7Bf.js → DisclosureContext-iWW1mguA.js} +1 -1
- package/dist/DropdownMenuContext-nubwHfiX.js +1 -0
- package/dist/DropdownMenuSubContext-Bc6QnJDj.js +1 -0
- package/dist/FieldContext-D5XgrlZe.js +1 -0
- package/dist/{FieldLabel-jDJxVTEe.js → FieldLabel-Dp-VE11y.js} +1 -1
- package/dist/{Flex-DFWb4Kc8.js → Flex-DlDSJZaE.js} +1 -1
- package/dist/{Heading-6hb48BeO.js → Heading-r-WdrPIA.js} +1 -1
- package/dist/Icon-XpvKDOr2.js +1 -0
- package/dist/{IconAngleRight-GkXdGsh6.js → IconAngleRight-DXUSfspB.js} +1 -1
- package/dist/{IconCircleInfoSolid-Dt8dz0kq.js → IconCircleInfoSolid-BCz-DMKW.js} +1 -1
- package/dist/{IconEllipsis--yPEDFRK.js → IconEllipsis-BZFkMJmL.js} +1 -1
- package/dist/{IconTriangleExclamationSolid-B07vftva.js → IconTriangleExclamationSolid-DPQwJPAt.js} +1 -1
- package/dist/{IconX-CDTGhGEa.js → IconX-CxQwMY0G.js} +1 -1
- package/dist/{Input-BSoqAyCi.js → Input-CAFRZ4Ig.js} +1 -1
- package/dist/{InputAddon-DVYTCRkL.js → InputAddon-DrnOrM0E.js} +1 -1
- package/dist/InputContext-DTkRuwr1.js +1 -0
- package/dist/InputControl-g0bIqGkG.js +1 -0
- package/dist/InputControl.css.ts.vanilla-Bb512L6B-UCscakMJ.js +1 -0
- package/dist/InputRoot-dSfwOMWi.js +1 -0
- package/dist/{Listbox-C4kslHAH.js → Listbox-Cu1ENX7a.js} +1 -1
- package/dist/ListboxGroupContext-Cjvd2z1h.js +1 -0
- package/dist/ListboxItem-BUj4wKfo.js +1 -0
- package/dist/{ListboxItemIndicator-Be5C5wn-.js → ListboxItemIndicator-BrK3h153.js} +1 -1
- package/dist/ListboxSeparator-DNkeT65K.js +1 -0
- package/dist/{ListboxSwitchItem-Bias5YVt.js → ListboxSwitchItem-BM5YiM6G.js} +1 -1
- package/dist/MenuListbox-Bba2sYtw.js +1 -0
- package/dist/ModalContext-PxF8am4g.js +1 -0
- package/dist/NavItem-CpcGUJJB.js +1 -0
- package/dist/Paper-Bms9kmvd.js +1 -0
- package/dist/PopoverContext-DDWNMZkh.js +1 -0
- package/dist/RadioGroupContext-42b4vqeH.js +1 -0
- package/dist/{SegmentedControlContext-BjqoYuPR.js → SegmentedControlContext-CCxLEL3U.js} +1 -1
- package/dist/Separator-rIzJH4Ni.js +1 -0
- package/dist/SidebarContext-BY6ll922.js +1 -0
- package/dist/Spinner-DLwGI9mH.js +1 -0
- package/dist/Switch-DuHgmt9t.js +1 -0
- package/dist/Text-wPSPPcld.js +1 -0
- package/dist/{ThemeProvider-__MvGENf.js → ThemeProvider-mk3aSO4Y.js} +1 -1
- package/dist/Toast-BAVmDSnv.js +1 -0
- package/dist/{ToastAction-BjCOh4TE.js → ToastAction-DlgLMk80.js} +1 -1
- package/dist/ToastProvider-DpqTCfuC.js +1 -0
- package/dist/{ToastTitle-kipkcY8f.js → ToastTitle-YBPWbAOG.js} +1 -1
- package/dist/ToggleInputHiddenInput-UPpYRz27.js +1 -0
- package/dist/{Tooltip-C3KixVXg.js → Tooltip-CASS5OFi.js} +1 -1
- package/dist/{TooltipContent-_a_wjNkd.js → TooltipContent-D4HQjHaH.js} +1 -1
- package/dist/TooltipContext-uqHH5WJ7.js +1 -0
- package/dist/TooltipProvider-XWbNDQCQ.js +1 -0
- package/dist/{TooltipRoot-B8OoblmT.js → TooltipRoot-qQLOwtym.js} +1 -1
- package/dist/{TooltipTrigger-BldJxedf.js → TooltipTrigger-BIw3Danp.js} +1 -1
- package/dist/Transition-B_hgk_6z.js +1 -0
- package/dist/{TransitionGroup-Q7gOMxEM.js → TransitionGroup-CZwPFF6r.js} +1 -1
- 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/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/Link.d.ts +1 -2
- 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/ListboxLabel.js +1 -1
- package/dist/components/ListboxRadioItem.js +1 -1
- package/dist/components/ListboxScrollArea.js +1 -1
- package/dist/components/ListboxSeparator.js +1 -1
- package/dist/components/ListboxSwitchItem.js +1 -1
- package/dist/components/ModalContextProvider.d.ts +1 -1
- package/dist/components/ModalContextProvider.js +1 -1
- package/dist/components/ModalLayer.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/NavHeader.js +1 -1
- package/dist/components/NavItem.js +1 -1
- package/dist/components/NavList.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Paper.d.ts +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 +3 -3
- 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/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/Switch.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-CAwfMu2z.js → decorateChildren-BZ2bA72G.js} +1 -1
- package/dist/fallbackSpan-1r51oJiK.js +1 -0
- package/dist/{index-DzfV6tsi.js → index-8Ap_4zj6.js} +1 -1
- package/dist/{index-B0t2fl0I.js → index-B58oEL7s.js} +1 -1
- package/dist/index-B76s2QkF.js +1 -0
- package/dist/{index-DWUjZzaJ.js → index-BCsYw0j3.js} +1 -1
- package/dist/{index-ozkb2Bv1.js → index-B_VrnvBg.js} +1 -1
- package/dist/{index-DaXuPRjN.js → index-BoT3wiiN.js} +1 -1
- package/dist/{index-DSsC36m8.js → index-Bw2pGDIP.js} +1 -1
- package/dist/{index-D_5djcMq.js → index-C32m2VW3.js} +1 -1
- package/dist/{index-CQ4oidcb.js → index-C5Ieq1_n.js} +1 -1
- package/dist/{index-CdI6sgRK.js → index-CQd4fZxx.js} +1 -1
- package/dist/index-DJZkDuXm.js +1 -0
- package/dist/{index-CdvAI3PE.js → index-Dlstf2YV.js} +1 -1
- package/dist/{index-CWiveRzp.js → index-DvPhWqKa.js} +1 -1
- package/dist/{index-DJRHoJ8e.js → index-KND6fT_G.js} +1 -1
- package/dist/{index-BhsXUyUO.js → index-U75gvhFe.js} +1 -1
- package/dist/{index-C_oE1q2t.js → index-W7WQ13pv.js} +1 -1
- package/dist/{index-o3UiEcll.js → index-_GyTHxix.js} +1 -1
- package/dist/{index-BBAEIPh3.js → index-g2n1iIXU.js} +1 -1
- package/dist/{index-Dr1mNsQ3.js → index-mj83F7eR.js} +1 -1
- package/dist/{index-BeYhPAXU.js → index-wddPHbcf.js} +1 -1
- package/dist/{index-D--Rr3QF.js → index-xbpQ79U4.js} +1 -1
- package/dist/{index-sPo2WVaB.js → index-xkT0VVKe.js} +1 -1
- package/dist/{index-DyrfgfA8.js → index-yjt3k4ng.js} +1 -1
- package/dist/index.d.ts +4 -198
- package/dist/index.js +1 -1
- package/dist/layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js +1 -0
- package/dist/{propTypes-BoI2nu2W.js → propTypes-DvjbHxCV.js} +1 -1
- package/dist/{register-Cw-HbSK7.js → register-BVVRhrAp.js} +2 -2
- package/dist/{useNestedDialogCount-BZlku4B0.js → useNestedDialogCount-BBY1C5Oi.js} +1 -1
- package/dist/{withIcon-CNlOney9.js → withIcon-CV0vSDbR.js} +1 -1
- package/package.json +3 -10
- package/Drawer/package.json +0 -4
- package/DrawerBody/package.json +0 -4
- package/DrawerClose/package.json +0 -4
- package/DrawerContent/package.json +0 -4
- package/DrawerFooter/package.json +0 -4
- package/DrawerHeader/package.json +0 -4
- package/DrawerTrigger/package.json +0 -4
- package/dist/ActionsRoot.css.ts.vanilla-CWel1AOz-BEVk7I2L.js +0 -1
- package/dist/AlertDialogContext-CByHwS0U.js +0 -1
- package/dist/Avatar-4BJHi9WA.js +0 -1
- package/dist/AvatarContext-BCZbfx_9.js +0 -1
- package/dist/Backdrop-B5T88pEU.js +0 -1
- package/dist/Badge-DVJpRYY0.js +0 -1
- package/dist/Box-uru-N3z9.js +0 -1
- package/dist/Button-J_KoHhr_.js +0 -1
- package/dist/ButtonContext-D1szxvNP.js +0 -1
- package/dist/Checkbox-DgQ3zqAK.js +0 -1
- package/dist/Cover-DvvwVC6b.js +0 -1
- package/dist/DialogContext-Dpl4yB7C.js +0 -1
- package/dist/DrawerContext-kGzJ4NZJ.js +0 -1
- package/dist/DropdownMenuContext-CaldEdbG.js +0 -1
- package/dist/DropdownMenuSubContext-10433JE-.js +0 -1
- package/dist/FieldContext-C1VIeQXJ.js +0 -1
- package/dist/Icon-Ci-8kgBA.js +0 -1
- package/dist/InputContext-DDkL6hQ3.js +0 -1
- package/dist/InputControl-9IkYIkG_.js +0 -1
- package/dist/InputControl.css.ts.vanilla-Bq9DIZUC-Cx3309PF.js +0 -1
- package/dist/InputRoot-BPF4zxO_.js +0 -1
- package/dist/ListboxGroupContext-Dk15YWYO.js +0 -1
- package/dist/ListboxItem-CJ0R8PRg.js +0 -1
- package/dist/ListboxSeparator-B8tMq5h4.js +0 -1
- package/dist/MenuListbox-gZ3HZLxq.js +0 -1
- package/dist/ModalContext-CDVPiGgq.js +0 -1
- package/dist/NavItem-CQSntHv0.js +0 -1
- package/dist/Paper-DsYeK2iL.js +0 -1
- package/dist/PopoverContext-C7WKLPtG.js +0 -1
- package/dist/RadioGroupContext-D2RqsiI0.js +0 -1
- package/dist/Separator-vB4D6q-D.js +0 -1
- package/dist/SidebarContext-DVZmUboR.js +0 -1
- package/dist/Spinner-lg17Zbkc.js +0 -1
- package/dist/Switch-eeXu7Dgk.js +0 -1
- package/dist/Text-BgH0mRSE.js +0 -1
- package/dist/Toast-D04b0jzR.js +0 -1
- package/dist/ToastProvider-DwEiII4j.js +0 -1
- package/dist/ToggleInputHiddenInput-Dvp9KbKo.js +0 -1
- package/dist/TooltipContext-RFFd4OOe.js +0 -1
- package/dist/TooltipProvider-DC0Masno.js +0 -1
- package/dist/Transition-CRVd1Jdg.js +0 -1
- package/dist/components/Drawer.d.ts +0 -32
- package/dist/components/Drawer.js +0 -1
- package/dist/components/DrawerBody.d.ts +0 -29
- package/dist/components/DrawerBody.js +0 -1
- package/dist/components/DrawerClose.d.ts +0 -41
- package/dist/components/DrawerClose.js +0 -1
- package/dist/components/DrawerContent.d.ts +0 -38
- package/dist/components/DrawerContent.js +0 -1
- package/dist/components/DrawerFooter.d.ts +0 -29
- package/dist/components/DrawerFooter.js +0 -1
- package/dist/components/DrawerHeader.d.ts +0 -32
- package/dist/components/DrawerHeader.js +0 -1
- package/dist/components/DrawerTrigger.d.ts +0 -41
- package/dist/components/DrawerTrigger.js +0 -1
- package/dist/fallbackSpan-Bc3Cyri6.js +0 -1
- package/dist/index-DPfo_tUG.js +0 -1
- package/dist/index-Pgs4gUDn.js +0 -1
- package/dist/layers.css.ts.vanilla--N_E85Dh-Ba0reAnN.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{$ as m,u as
|
|
1
|
+
import{$ as m,u as n,i as k,r as C,c as D}from"../register-BVVRhrAp.js";import{as as L}from"../propTypes-DvjbHxCV.js";import{l as M}from"../index-W7WQ13pv.js";import{t as v}from"../index-xbpQ79U4.js";import{o as c}from"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import{y as g}from"../recipeRuntime-DkvY0ny0.js";import"../index-g2n1iIXU.js";var d="Progress",p=100,[S,X]=M(d),[V,j]=S(d),f=m((a,e)=>{const{__scopeProgress:t,value:o=null,max:r,getValueLabel:u=A,...I}=a;(r||r===0)&&!y(r)&&console.error(E(`${r}`,"Progress"));const s=y(r)?r:p;o!==null&&!P(o,s)&&console.error(O(`${o}`,"Progress"));const i=P(o,s)?o:null,w=l(i)?u(i,s):void 0;return n(V,{scope:t,value:i,max:s,children:n(v.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":l(i)?i:void 0,"aria-valuetext":w,role:"progressbar","data-state":b(i,s),"data-value":i??void 0,"data-max":s,...I,ref:e})})});f.displayName=d;var x="ProgressIndicator",h=m((a,e)=>{const{__scopeProgress:t,...o}=a,r=j(x,t);return n(v.div,{"data-state":b(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...o,ref:e})});h.displayName=x;function A(a,e){return`${Math.round(a/e*100)}%`}function b(a,e){return a==null?"indeterminate":a===e?"complete":"loading"}function l(a){return typeof a=="number"}function y(a){return l(a)&&!isNaN(a)&&a>0}function P(a,e){return l(a)&&!isNaN(a)&&a<=e&&a>=0}function E(a,e){return`Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${p}\`.`}function O(a,e){return`Invalid prop \`value\` of value \`${a}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
2
2
|
- a positive number
|
|
3
|
-
- less than the value passed to \`max\` (or ${
|
|
3
|
+
- less than the value passed to \`max\` (or ${p} if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
5
|
|
|
6
|
-
Defaulting to \`null\`.`}var R=
|
|
6
|
+
Defaulting to \`null\`.`}var R=f,T=h;k("@layer optiaxiom._155d36h;@layer optiaxiom._155d36h{._1ugmitk{height:8px}}");var q=g({base:[{h:"full",transition:"all"}],variants:{intent:{danger:{bg:"bg.error"},primary:{bg:"bg.accent"},success:{bg:"bg.success"}}}}),z=g({base:[{bg:"bg.tertiary",overflow:"hidden",rounded:"full"},"_1ugmitk"]});const N=m(({className:a,intent:e="primary",...t},o)=>{const r=(t.value??0)/(t.max??_)*100,u=typeof t.value<"u"&&t.value!==null&&t.value>=0&&t.value<=(t.max??_);return n(c,{asChild:!0,...z({},a),...t,children:n(R,{ref:o,children:u&&n(c,{asChild:!0,style:{width:`${r}%`},...q({intent:e}),children:n(T,{})})})})}),_=100;N.displayName="@optiaxiom/react/Progress";const $="ax-progress";var B=C($,N,L,D);export{$ as Progress,B as default};
|
package/dist/components/Radio.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as v,$ as
|
|
1
|
+
import{i as v,$ as b,u as a,r as x,c as g}from"../register-BVVRhrAp.js";import{at as R}from"../propTypes-DvjbHxCV.js";import{i as w,o as y}from"../Box-f-JjBnIv.js";import{e as k}from"../RadioGroupContext-42b4vqeH.js";import{t as _,c as C,b as z,o as B,a as P,e as q}from"../ToggleInputHiddenInput-UPpYRz27.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import{y as s}from"../recipeRuntime-DkvY0ny0.js";import"../index-g2n1iIXU.js";import"../index-W7WQ13pv.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../Flex-DlDSJZaE.js";import"../index-Dlstf2YV.js";import"../index-xbpQ79U4.js";v("@layer optiaxiom._155d36h;@layer optiaxiom._155d36h{._8fazm2{border-color:var(--_1qxhtnu)}.iovvl4{background-color:var(--_1qxhtnu);transform:scale(0)}.audblg:has(.ne2xpy:checked) .iovvl4{transform:scale(1)}}");var E=s({base:[{bg:"bg.default",border:"1",p:"2",rounded:"full",size:"2xs"},"_8fazm2"],variants:{shift:{false:{},true:{mt:"2"}}}}),G=s({base:[{rounded:"inherit",size:"full",transition:"transform"},"iovvl4"]}),N=s({base:"ne2xpy"}),V=s({base:"audblg"});const t=b(({children:e,className:n,description:i,disabled:l,name:m,onBlur:p,onChange:u,...r},c)=>{const{boxProps:h,restProps:f}=w(r),o=k("Radio");if(o){if("checked"in r)throw new Error("Cannot use `checked` prop when `Radio` is used within `RadioGroup`");if(r.value===void 0)throw new Error("Must use `value` prop when `Radio` is used within `RadioGroup`")}return a(q,{description:!!i,...V({},n),...h,children:[a(_,{checked:o?.value!==void 0?o.value===r.value:void 0,defaultChecked:o?.defaultValue!==void 0?o.defaultValue===r.value:void 0,disabled:o?.disabled??l,name:o?.name??m,onBlur:o?.onBlur??p,onChange:o?.onChange??u,ref:c,type:"radio",...N(),...f}),a(C,{...E({shift:Boolean(e)}),children:a(y,{...G()})}),(e||i)&&a(z,{children:[e&&a(B,{children:e}),i&&a(P,{children:i})]})]})});t.displayName="@optiaxiom/react/Radio";const d="ax-radio";var $=x(d,t,R,g);export{d as Radio,$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as g,u as e,r as h,c as v}from"../register-
|
|
1
|
+
import{$ as g,u as e,r as h,c as v}from"../register-BVVRhrAp.js";import{au as x}from"../propTypes-DvjbHxCV.js";import{t as G}from"../Flex-DlDSJZaE.js";import{t as R}from"../RadioGroupContext-42b4vqeH.js";import{n as C}from"../Box-f-JjBnIv.js";import"../index-W7WQ13pv.js";import"../index-g2n1iIXU.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";const V={column:"12","column-reverse":"12",row:"16","row-reverse":"16"},a=g(({children:t,defaultValue:m,disabled:n,flexDirection:r="column",name:l,onBlur:u,onChange:p,onValueChange:d,value:s,...c},f)=>e(R,{defaultValue:m,disabled:n,name:l,onBlur:u,onChange:o=>{p?.(o),d?.(o.target.value)},value:s,children:e(G,{flexDirection:r,gap:C(r,o=>V[o]),ref:f,...c,children:t})}));a.displayName="@optiaxiom/react/RadioGroup";const i="ax-radio-group";var $=h(i,a,x,v);export{i as RadioGroup,$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as o,D as C,i as b,$ as y,W as g,T as x,r as k,c as $}from"../register-BVVRhrAp.js";import{av as I}from"../propTypes-DvjbHxCV.js";import{s as L}from"../index-g2n1iIXU.js";import{h as w}from"../Button-C_Ez5mOU.js";import{a as S}from"../withIcon-CV0vSDbR.js";import{l as j}from"../IconX-CxQwMY0G.js";import{l as _}from"../Input-CAFRZ4Ig.js";import"../conditions-MIJg7YDH.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import{y as p}from"../recipeRuntime-DkvY0ny0.js";import"../Box-f-JjBnIv.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../Flex-DlDSJZaE.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../index-wddPHbcf.js";import"../index-BoT3wiiN.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../index-W7WQ13pv.js";import"../Icon-XpvKDOr2.js";import"../fallbackSpan-1r51oJiK.js";import"../InputAddon-DrnOrM0E.js";import"../InputContext-DTkRuwr1.js";import"../InputControl-g0bIqGkG.js";import"../FieldContext-D5XgrlZe.js";import"../InputControl.css.ts.vanilla-Bb512L6B-UCscakMJ.js";import"../InputRoot-dSfwOMWi.js";import"../index-RxKnZQN0.js";const E=S({fill:"none",name:"IconMagnifyingGlass"},o(C,{children:[o("path",{d:"M8 13C11.3137 13 14 10.3137 14 7C14 3.68629 11.3137 1 8 1C4.68629 1 2 3.68629 2 7C2 10.3137 4.68629 13 8 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),o("path",{d:"M16.5 15.5L12.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})),M=(r,e)=>{Object.getOwnPropertyDescriptor(r.constructor.prototype,"value")?.set?.call(r,e),r.dispatchEvent(new Event("change",{bubbles:!0}))};b("@layer optiaxiom._155d36h;@layer optiaxiom._155d36h{.pvlvic:is(:not(:focus-within):not(:hover),:has(input:disabled)) ._18x0wqa{visibility:hidden}}");var P=p({base:[{size:"sm"},"_18x0wqa"]}),q=p({base:"pvlvic"});const m=y(({className:r,defaultValue:e="",onChange:c,onValueClear:l,value:i,...u},d)=>{const t=g(null),f=L(t,d),[h,v]=x(e),a=typeof i>"u"?h:i;return o(_,{addonAfter:a&&o(w,{appearance:"subtle","aria-label":"Clear",icon:a&&o(j,{}),onClick:()=>{t.current&&(M(t.current,""),t.current.focus(),l?.())},tabIndex:-1,...P()}),addonBefore:o(E,{}),addonPointerEvents:"none",autoComplete:"off",onChange:n=>{c?.(n),v(n.target.value)},ref:f,type:"search",value:a,...q({},r),...u})});m.displayName="@optiaxiom/react/SearchInput";const s="ax-search-input";var D=k(s,m,I,$);export{s as SearchInput,D as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as n,u as t,r as a,c as l}from"../register-
|
|
1
|
+
import{$ as n,u as t,r as a,c as l}from"../register-BVVRhrAp.js";import{aw as s}from"../propTypes-DvjbHxCV.js";import{k as d,t as c}from"../SegmentedControlContext-CCxLEL3U.js";import{t as g}from"../Flex-DlDSJZaE.js";import"../index-W7WQ13pv.js";import"../index-xbpQ79U4.js";import"../index-g2n1iIXU.js";import"../index-Bw2pGDIP.js";import"../index-DXFJDeKK.js";import"../index-mj83F7eR.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-BoT3wiiN.js";import"../index-wddPHbcf.js";import"../index-_GyTHxix.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";const o=n(({children:e,type:i="single",...m},p)=>t(g,{asChild:!0,flexDirection:"row",gap:"0",...m,children:t(d,{ref:p,type:i,children:t(c,{children:e})})}));o.displayName="@optiaxiom/react/SegmentedControl";const r="ax-segmented-control";var f=a(r,o,s,l);export{r as SegmentedControl,f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as p,u as t,r as n,c as a}from"../register-
|
|
1
|
+
import{$ as p,u as t,r as n,c as a}from"../register-BVVRhrAp.js";import{ax as l}from"../propTypes-DvjbHxCV.js";import{o as s,B as d}from"../SegmentedControlContext-CCxLEL3U.js";import{h as c}from"../Button-C_Ez5mOU.js";import"../index-W7WQ13pv.js";import"../index-xbpQ79U4.js";import"../index-g2n1iIXU.js";import"../index-Bw2pGDIP.js";import"../index-DXFJDeKK.js";import"../index-mj83F7eR.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-BoT3wiiN.js";import"../index-wddPHbcf.js";import"../index-_GyTHxix.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../Flex-DlDSJZaE.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../conditions-MIJg7YDH.js";import"../index-RxKnZQN0.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../Icon-XpvKDOr2.js";import"../fallbackSpan-1r51oJiK.js";const o=p(({children:m,...e},i)=>(s("SegmentedControlItem"),t(d,{appearance:"subtle",asChild:!0,ref:i,...e,children:t(c,{children:m})})));o.displayName="@optiaxiom/react/SegmentedControlItem";const r="ax-segmented-control-item";var g=n(r,o,l,a);export{r as SegmentedControlItem,g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t}from"../register-
|
|
1
|
+
import{r as o,c as t}from"../register-BVVRhrAp.js";import{ay as a}from"../propTypes-DvjbHxCV.js";import{o as p}from"../Separator-rIzJH4Ni.js";import"../index-xbpQ79U4.js";import"../index-g2n1iIXU.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";const r="ax-separator";var m=o(r,p,a,t);export{r as Separator,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as f,u as r,r as l,c}from"../register-
|
|
1
|
+
import{$ as f,u as r,r as l,c}from"../register-BVVRhrAp.js";import{az as x}from"../propTypes-DvjbHxCV.js";import{n as h}from"../index-DJZkDuXm.js";import{v as g}from"../index-wddPHbcf.js";import{o as u}from"../Box-f-JjBnIv.js";import{t as b}from"../SidebarContext-BY6ll922.js";import"../index-B76s2QkF.js";import"../index-BoT3wiiN.js";import"../index-g2n1iIXU.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../index-W7WQ13pv.js";const o=f(({children:e,defaultExpanded:p,expanded:t,onExpandedChange:i,...n},d)=>{const[m,s]=g({defaultProp:p,onChange:i,prop:t});return r(b,{expanded:m,navId:h(),onExpandedChange:s,spacing:"8",children:r(u,{alignItems:"stretch",display:"flex",gap:"0",h:"full",ref:d,...n,children:e})})});o.displayName="@optiaxiom/react/Sidebar";const a="ax-sidebar";var S=l(a,o,x,c);export{a as Sidebar,S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as n,u as d,r as s,c as g}from"../register-
|
|
1
|
+
import{$ as n,u as d,r as s,c as g}from"../register-BVVRhrAp.js";import{aA as c}from"../propTypes-DvjbHxCV.js";import{s as b}from"../NavItem-CpcGUJJB.js";import{r as f}from"../SidebarContext-BY6ll922.js";import"../index-g2n1iIXU.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../Flex-DlDSJZaE.js";import"../Icon-XpvKDOr2.js";import"../Text-wPSPPcld.js";import"../Tooltip-CASS5OFi.js";import"../TooltipContent-D4HQjHaH.js";import"../index-yjt3k4ng.js";import"../index-DXFJDeKK.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-B58oEL7s.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../TooltipContext-uqHH5WJ7.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../theme-css-B61lyqMB.js";import"../TooltipRoot-qQLOwtym.js";import"../TooltipTrigger-BIw3Danp.js";import"../Button-C_Ez5mOU.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../conditions-MIJg7YDH.js";import"../index-RxKnZQN0.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../fallbackSpan-1r51oJiK.js";const o=n(({"aria-label":t,children:p,...m},a)=>{const{expanded:r,navId:e,onExpandedChange:l}=f("SidebarToggle");return d(b,{"aria-controls":e,"aria-expanded":r?"true":"false","aria-label":t||(r?"Collapse":"Expand"),fontWeight:"400",onClick:()=>l(!r),ref:a,...m,children:p??"Collapse"})});o.displayName="@optiaxiom/react/SidebarToggle";const i="ax-sidebar-toggle";var x=s(i,o,c,g);export{i as SidebarToggle,x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as
|
|
1
|
+
import{i as m,$ as p,u as e,r as d,c as f}from"../register-BVVRhrAp.js";import{aB as u}from"../propTypes-DvjbHxCV.js";import{f as h}from"../index-g2n1iIXU.js";import{o as y}from"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import{y as k}from"../recipeRuntime-DkvY0ny0.js";m('@layer optiaxiom._155d36h;@layer optiaxiom._155d36h{._1h4clcq:empty:before{content:"\\00a0"}}');var b=k({base:[{animation:"pulse",bg:"bg.avatar.neutral",color:"fg.default.inverse",display:"block"},"_1h4clcq"]});const r=p(({asChild:l=!0,children:t,circle:i,className:n,rounded:o,...s},c)=>e(y,{asChild:l,rounded:i||o==="full"?"full":o??"sm",...b({},n),...s,children:e(h,{ref:c,children:t||e("span",{})})}));r.displayName="@optiaxiom/react/Skeleton";const a="ax-skeleton";var x=d(a,r,u,f);export{a as Skeleton,x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as p}from"../register-
|
|
1
|
+
import{r as o,c as p}from"../register-BVVRhrAp.js";import{aC as i}from"../propTypes-DvjbHxCV.js";import{o as t}from"../Spinner-DLwGI9mH.js";import"../Box-f-JjBnIv.js";import"../index-g2n1iIXU.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../Flex-DlDSJZaE.js";const r="ax-spinner";var m=o(r,t,i,p);export{r as Spinner,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o}from"../register-
|
|
1
|
+
import{r as t,c as o}from"../register-BVVRhrAp.js";import{aD as i}from"../propTypes-DvjbHxCV.js";import{e as m}from"../Switch-DuHgmt9t.js";import"../Box-f-JjBnIv.js";import"../index-g2n1iIXU.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../ToggleInputHiddenInput-UPpYRz27.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../Flex-DlDSJZaE.js";import"../index-Dlstf2YV.js";import"../index-xbpQ79U4.js";import"../index-W7WQ13pv.js";const r="ax-switch";var p=t(r,m,i,o);export{r as Switch,p as default};
|
package/dist/components/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as
|
|
1
|
+
import{i as l,$ as n,u as r,r as c,c as d}from"../register-BVVRhrAp.js";import{aE as f}from"../propTypes-DvjbHxCV.js";import{k as x}from"../index-CQd4fZxx.js";import{i as u,o as b}from"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import{y as h}from"../recipeRuntime-DkvY0ny0.js";import"../index-DXFJDeKK.js";import"../index-W7WQ13pv.js";import"../index-Bw2pGDIP.js";import"../index-mj83F7eR.js";import"../index-g2n1iIXU.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-wddPHbcf.js";import"../index-B_VrnvBg.js";l("@layer optiaxiom._155d36h;@layer optiaxiom._155d36h{._1u4drl8[data-orientation=horizontal]{flex-direction:column}._1u4drl8[data-orientation=vertical]{flex-direction:row}}");var y=h({base:[{display:"flex"},"_1u4drl8"]});const o=n(({children:t,className:a,...e},m)=>{const{boxProps:p,restProps:s}=u(e);return r(b,{asChild:!0,...y({},a),...p,children:r(x,{ref:m,...s,children:t})})});o.displayName="@optiaxiom/react/Tabs";const i="ax-tabs";var _=c(i,o,f,d);export{i as Tabs,_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,u as t,r as n,c as s}from"../register-
|
|
1
|
+
import{$ as e,u as t,r as n,c as s}from"../register-BVVRhrAp.js";import{aF as c}from"../propTypes-DvjbHxCV.js";import{R as l}from"../index-CQd4fZxx.js";import{o as f}from"../Box-f-JjBnIv.js";import"../index-DXFJDeKK.js";import"../index-W7WQ13pv.js";import"../index-Bw2pGDIP.js";import"../index-mj83F7eR.js";import"../index-g2n1iIXU.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-wddPHbcf.js";import"../index-B_VrnvBg.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";const o=e(({children:i,value:m,...p},a)=>t(f,{asChild:!0,flex:"1",ref:a,...p,children:t(l,{value:m,children:i})}));o.displayName="@optiaxiom/react/TabsContent";const r="ax-tabs-content";var d=n(r,o,c,s);export{r as TabsContent,d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as p,$ as s,u as r,r as l,c as
|
|
1
|
+
import{i as p,$ as s,u as r,r as l,c as d}from"../register-BVVRhrAp.js";import{aG as n}from"../propTypes-DvjbHxCV.js";import{K as c}from"../index-CQd4fZxx.js";import{o as f}from"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import{y as x}from"../recipeRuntime-DkvY0ny0.js";import"../index-DXFJDeKK.js";import"../index-W7WQ13pv.js";import"../index-Bw2pGDIP.js";import"../index-mj83F7eR.js";import"../index-g2n1iIXU.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-wddPHbcf.js";import"../index-B_VrnvBg.js";p("@layer optiaxiom._155d36h;@layer optiaxiom._155d36h{._13fjrql[data-orientation=horizontal]{align-items:center;border-bottom-width:1px;flex-direction:row;gap:24px}._13fjrql[data-orientation=vertical]{border-right-width:1px;flex-direction:column;gap:8px}}");var b=x({base:[{borderColor:"border.tertiary",display:"flex"},"_13fjrql"]});const t=s(({children:o,className:a,...e},m)=>r(f,{asChild:!0,...b({},a),...e,children:r(c,{ref:m,children:o})}));t.displayName="@optiaxiom/react/TabsList";const i="ax-tabs-list";var h=l(i,t,n,d);export{i as TabsList,h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as g,$ as
|
|
1
|
+
import{i as g,$ as x,u as r,r as b,c as f}from"../register-BVVRhrAp.js";import{aH as v}from"../propTypes-DvjbHxCV.js";import{B as h}from"../index-CQd4fZxx.js";import{i as u,o as y}from"../Box-f-JjBnIv.js";import{t as _}from"../Flex-DlDSJZaE.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import{y as o}from"../recipeRuntime-DkvY0ny0.js";import"../index-DXFJDeKK.js";import"../index-W7WQ13pv.js";import"../index-Bw2pGDIP.js";import"../index-mj83F7eR.js";import"../index-g2n1iIXU.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-wddPHbcf.js";import"../index-B_VrnvBg.js";g("@layer optiaxiom._155d36h;@layer optiaxiom._155d36h{._1sa7xg9{border-color:transparent;color:var(--ax-colors-fg-tertiary);user-select:none}._1sa7xg9:focus-visible{outline:2px solid var(--ax-colors-border-focus);outline-offset:1px}._1sa7xg9[data-disabled]{color:var(--ax-colors-fg-disabled)}._1sa7xg9[data-orientation=horizontal]{border-bottom-width:2px;margin-bottom:-1px}._1sa7xg9[data-orientation=vertical]{border-right-width:2px;margin-right:-1px;padding-inline:10px}._1sa7xg9[data-state=active]{border-color:var(--ax-colors-border-accent);color:var(--ax-colors-fg-default)}.s3vzbg:active .a1pvr9{background-color:var(--ax-colors-bg-secondary)}@media (hover:hover){._1sa7xg9:hover:not([data-state=active]){border-color:var(--ax-colors-border-default);color:var(--ax-colors-fg-secondary)}}}");var T=o({base:[{flexDirection:"row",gap:"8",justifyContent:["center","start"],py:"6",rounded:"sm",transition:"colors"},"a1pvr9"]}),z=o({base:["s3vzbg",{flex:["1","initial"],fontSize:"md",fontWeight:"500",py:"4",transition:"colors"},"_1sa7xg9"]});const a=x(({addonAfter:i,addonBefore:e,children:s,className:l,value:c,...n},d)=>{const{boxProps:p,restProps:m}=u(n);return r(y,{asChild:!0,...z({},l),...p,children:r(h,{ref:d,value:c,...m,children:r(_,{...T(),children:[e,s,i]})})})});a.displayName="@optiaxiom/react/TabsTrigger";const t="ax-tabs-trigger";var $=b(t,a,v,f);export{t as TabsTrigger,$ as default};
|
package/dist/components/Text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o}from"../register-
|
|
1
|
+
import{r as t,c as o}from"../register-BVVRhrAp.js";import{aI as m}from"../propTypes-DvjbHxCV.js";import{r as p}from"../Text-wPSPPcld.js";import"../index-g2n1iIXU.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";const r="ax-text";var e=t(r,p,m,o);export{r as Text,e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as C,$ as
|
|
1
|
+
import{i as C,$ as _,u as e,r as P,c as z}from"../register-BVVRhrAp.js";import{aJ as N}from"../propTypes-DvjbHxCV.js";import{f}from"../index-g2n1iIXU.js";import{i as y,o as u}from"../Box-f-JjBnIv.js";import{t as v}from"../InputAddon-DrnOrM0E.js";import{n as T}from"../InputControl-g0bIqGkG.js";import{t as q}from"../InputRoot-dSfwOMWi.js";import{v as $}from"../index-wddPHbcf.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import{y as x}from"../recipeRuntime-DkvY0ny0.js";import"../conditions-MIJg7YDH.js";import{a as b}from"../fallbackSpan-1r51oJiK.js";import"../InputContext-DTkRuwr1.js";import"../index-W7WQ13pv.js";import"../FieldContext-D5XgrlZe.js";import"../InputControl.css.ts.vanilla-Bb512L6B-UCscakMJ.js";import"../Flex-DlDSJZaE.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../index-BoT3wiiN.js";import"../index-RxKnZQN0.js";C("@layer optiaxiom._155d36h;@layer optiaxiom._155d36h{._1eude2k{max-height:calc(16px + var(--ajsxue)*22px)}.ydibyy{--ajsxue:1}._1ib0yda{--ajsxue:2}._1id6lbj{--ajsxue:3}.vadjrv{--ajsxue:4}._13snbcx{--ajsxue:5}._1utbkme{resize:vertical}._1k8066t{grid-area:1/1/2/2}._1llqma9{visibility:hidden;white-space:pre-wrap}._18o9q9d{resize:none}}");var R=x({base:["_1k8066t","_1llqma9"]}),A=x({base:["_1k8066t","_18o9q9d"]}),E=x({base:{display:"grid",flex:"auto",overflow:"auto"},variants:{maxRows:{1:["_1eude2k","ydibyy"],2:["_1eude2k","_1ib0yda"],3:["_1eude2k","_1id6lbj"],4:["_1eude2k","vadjrv"],5:["_1eude2k","_13snbcx"]},resize:{auto:{},none:{},vertical:"_1utbkme"}}});const j=_(({asChild:a,children:t,className:o,maxRows:m,onChange:l,resize:i="none",...r},s)=>{const n=a?f:"textarea",{boxProps:d,restProps:p}=y(r),[c,w]=$({defaultProp:r.defaultValue,prop:r.value});return e(u,{...E({maxRows:m,resize:i}),children:[e(u,{asChild:!0,...A({},o),...d,children:e(n,{onChange:h=>{w(h.target.value),l?.(h)},ref:s,...p,children:t})}),i==="auto"&&e(u,{...R({},o),...d,children:(c??"")+" "})]})});j.displayName="@optiaxiom/react/TextareaAutosize";const k=_(({addonAfter:a,addonBefore:t,addonPointerEvents:o,asChild:m,children:l,className:i,style:r,...s},n)=>{const d=m?f:j,{boxProps:p,restProps:c}=y(s);return e(q,{addonPointerEvents:o,className:i,flexDirection:"column",style:r,...p,children:[t&&e(v,{asChild:!0,children:b(t)}),e(T,{asChild:!0,p:"8",size:"lg",...c,children:e(d,{ref:n,rows:s.rows??3,children:l})}),a&&e(v,{asChild:!0,children:b(a)})]})});k.displayName="@optiaxiom/react/Textarea";const g="ax-textarea";var B=P(g,k,N,z);export{g 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-BVVRhrAp.js";import{aK as m}from"../propTypes-DvjbHxCV.js";import{s as t}from"../ThemeProvider-mk3aSO4Y.js";import"../vanilla-extract-dynamic.esm-4GwcXShs.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../theme-css-B61lyqMB.js";import"../index-RxKnZQN0.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-BVVRhrAp.js";import{aL as m}from"../propTypes-DvjbHxCV.js";import{s as p}from"../Toast-BAVmDSnv.js";import"../index-g2n1iIXU.js";import"../index-KND6fT_G.js";import"../index-DXFJDeKK.js";import"../index-mj83F7eR.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-B76s2QkF.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../vanilla-extract-dynamic.esm-4GwcXShs.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../Button-C_Ez5mOU.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../Flex-DlDSJZaE.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../conditions-MIJg7YDH.js";import"../index-RxKnZQN0.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../Icon-XpvKDOr2.js";import"../fallbackSpan-1r51oJiK.js";import"../IconCircleInfoSolid-BCz-DMKW.js";import"../withIcon-CV0vSDbR.js";import"../IconTriangleExclamationSolid-DPQwJPAt.js";import"../IconX-CxQwMY0G.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-BVVRhrAp.js";import{aM as i}from"../propTypes-DvjbHxCV.js";import{t as m}from"../ToastAction-DlgLMk80.js";import"../index-KND6fT_G.js";import"../index-DXFJDeKK.js";import"../index-g2n1iIXU.js";import"../index-mj83F7eR.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-B76s2QkF.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../Button-C_Ez5mOU.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../Flex-DlDSJZaE.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../conditions-MIJg7YDH.js";import"../index-RxKnZQN0.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../Icon-XpvKDOr2.js";import"../fallbackSpan-1r51oJiK.js";import"../Separator-rIzJH4Ni.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-BVVRhrAp.js";import{aN as i}from"../propTypes-DvjbHxCV.js";import{c as m}from"../ToastProvider-DpqTCfuC.js";import"../index-g2n1iIXU.js";import"../index-8Ap_4zj6.js";import"../index-KND6fT_G.js";import"../index-DXFJDeKK.js";import"../index-mj83F7eR.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-B_VrnvBg.js";import"../index-B76s2QkF.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../Flex-DlDSJZaE.js";import"../ToastAction-DlgLMk80.js";import"../Button-C_Ez5mOU.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../conditions-MIJg7YDH.js";import"../index-RxKnZQN0.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../Icon-XpvKDOr2.js";import"../fallbackSpan-1r51oJiK.js";import"../Separator-rIzJH4Ni.js";import"../ToastTitle-YBPWbAOG.js";import"../Text-wPSPPcld.js";import"../Toast-BAVmDSnv.js";import"../vanilla-extract-dynamic.esm-4GwcXShs.js";import"../IconCircleInfoSolid-BCz-DMKW.js";import"../withIcon-CV0vSDbR.js";import"../IconTriangleExclamationSolid-DPQwJPAt.js";import"../IconX-CxQwMY0G.js";const r="ax-toast-provider";var p=o(r,m,i,t);export{r as ToastProvider,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as r}from"../register-
|
|
1
|
+
import{r as o,c as r}from"../register-BVVRhrAp.js";import{aO as i}from"../propTypes-DvjbHxCV.js";import{o as m}from"../ToastTitle-YBPWbAOG.js";import"../index-KND6fT_G.js";import"../index-DXFJDeKK.js";import"../index-g2n1iIXU.js";import"../index-mj83F7eR.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-B76s2QkF.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../Text-wPSPPcld.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.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{$ as e,u as o,r as a,c as n}from"../register-
|
|
1
|
+
import{$ as e,u as o,r as a,c as n}from"../register-BVVRhrAp.js";import{aP as g}from"../propTypes-DvjbHxCV.js";import{c as l}from"../index-_GyTHxix.js";import{h as s}from"../Button-C_Ez5mOU.js";import"../index-DXFJDeKK.js";import"../index-wddPHbcf.js";import"../index-BoT3wiiN.js";import"../index-xbpQ79U4.js";import"../index-g2n1iIXU.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../Flex-DlDSJZaE.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../conditions-MIJg7YDH.js";import"../index-RxKnZQN0.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../index-W7WQ13pv.js";import"../Icon-XpvKDOr2.js";import"../fallbackSpan-1r51oJiK.js";const t=e(({children:i,...m},p)=>o(s,{asChild:!0,...m,children:o(l,{ref:p,children:i})}));t.displayName="@optiaxiom/react/ToggleButton";const r="ax-toggle-button";var c=a(r,t,g,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-BVVRhrAp.js";import{aQ as p}from"../propTypes-DvjbHxCV.js";import{i}from"../Tooltip-CASS5OFi.js";import"../TooltipContent-D4HQjHaH.js";import"../index-yjt3k4ng.js";import"../index-DXFJDeKK.js";import"../index-g2n1iIXU.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-B58oEL7s.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../Text-wPSPPcld.js";import"../TooltipContext-uqHH5WJ7.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../theme-css-B61lyqMB.js";import"../TooltipRoot-qQLOwtym.js";import"../TooltipTrigger-BIw3Danp.js";import"../Button-C_Ez5mOU.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../Flex-DlDSJZaE.js";import"../conditions-MIJg7YDH.js";import"../index-RxKnZQN0.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../Icon-XpvKDOr2.js";import"../fallbackSpan-1r51oJiK.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-BVVRhrAp.js";import{aR as p}from"../propTypes-DvjbHxCV.js";import{r as i}from"../TooltipContent-D4HQjHaH.js";import"../index-yjt3k4ng.js";import"../index-DXFJDeKK.js";import"../index-g2n1iIXU.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-B58oEL7s.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../Text-wPSPPcld.js";import"../TooltipContext-uqHH5WJ7.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../theme-css-B61lyqMB.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-BVVRhrAp.js";import{aS as i}from"../propTypes-DvjbHxCV.js";import{o as p}from"../TooltipProvider-XWbNDQCQ.js";import"../index-yjt3k4ng.js";import"../index-DXFJDeKK.js";import"../index-g2n1iIXU.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-B58oEL7s.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.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-BVVRhrAp.js";import{aT as p}from"../propTypes-DvjbHxCV.js";import{f as i}from"../TooltipRoot-qQLOwtym.js";import"../index-yjt3k4ng.js";import"../index-DXFJDeKK.js";import"../index-g2n1iIXU.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-B58oEL7s.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../TooltipContext-uqHH5WJ7.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-BVVRhrAp.js";import{aU as i}from"../propTypes-DvjbHxCV.js";import{t as p}from"../TooltipTrigger-BIw3Danp.js";import"../index-g2n1iIXU.js";import"../index-yjt3k4ng.js";import"../index-DXFJDeKK.js";import"../index-W7WQ13pv.js";import"../index-C5Ieq1_n.js";import"../index-xbpQ79U4.js";import"../index-BoT3wiiN.js";import"../index-DJZkDuXm.js";import"../index-B76s2QkF.js";import"../index-B58oEL7s.js";import"../index-8Ap_4zj6.js";import"../index-B_VrnvBg.js";import"../index-wddPHbcf.js";import"../index-Dlstf2YV.js";import"../Button-C_Ez5mOU.js";import"../Box-f-JjBnIv.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";import"../ActionsRoot.css.ts.vanilla-BrY6xgez-CLMx6CTJ.js";import"../Spinner-DLwGI9mH.js";import"../Flex-DlDSJZaE.js";import"../Transition-B_hgk_6z.js";import"../TransitionGroup-CZwPFF6r.js";import"../conditions-MIJg7YDH.js";import"../index-RxKnZQN0.js";import"../decorateChildren-BZ2bA72G.js";import"../ButtonContext-B6QU1BxG.js";import"../Icon-XpvKDOr2.js";import"../fallbackSpan-1r51oJiK.js";import"../TooltipContext-uqHH5WJ7.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-BVVRhrAp.js";import{aV as i}from"../propTypes-DvjbHxCV.js";import{s}from"../Transition-B_hgk_6z.js";import"../index-g2n1iIXU.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";const r="ax-transition";var a=o(r,s,i,t);export{r as Transition,a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t}from"../register-
|
|
1
|
+
import{r as o,c as t}from"../register-BVVRhrAp.js";import{aW as i}from"../propTypes-DvjbHxCV.js";import{m as p}from"../TransitionGroup-CZwPFF6r.js";import"../index-wddPHbcf.js";import"../index-BoT3wiiN.js";import"../Transition-B_hgk_6z.js";import"../index-g2n1iIXU.js";import"../layers.css.ts.vanilla-BQTl0DQy-BQAUeZj0.js";import"../recipeRuntime-DkvY0ny0.js";const r="ax-transition-group";var m=o(r,p,i,t);export{r as TransitionGroup,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as i}from"./index-
|
|
1
|
+
import{f as i}from"./index-g2n1iIXU.js";import{v as p,l as n}from"./register-BVVRhrAp.js";const o=({asChild:s,children:l},e)=>{if(s){const r=p(l)?l:null;return r?n(r,void 0,o({...r.props,asChild:r.props.asChild||r.type===i},e)):l}else return e(l)};export{o as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as r,v as n}from"./register-BVVRhrAp.js";const p=o=>n(o)?o:r("span",{children:o});export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as l,l as a}from"./register-
|
|
1
|
+
import{$ as l,l as a}from"./register-BVVRhrAp.js";const t="Portal",o=l((r,e)=>a(r.children,{ref:e}));o.displayName=t;export{o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as j,w as xt,W as J,P as Re,S as Bt,H as at,p as Pe,$ as ct,u as I}from"./register-Cw-HbSK7.js";import{t as vt}from"./index-D--Rr3QF.js";import{s as zt}from"./index-BBAEIPh3.js";import{l as Te}from"./index-C_oE1q2t.js";import{c as Se}from"./index-DaXuPRjN.js";import{o as bt}from"./index-Pgs4gUDn.js";const Nt=["top","right","bottom","left"],_t=["start","end"];Nt.reduce((t,e)=>t.concat(e,e+"-"+_t[0],e+"-"+_t[1]),[]);const Q=Math.min,k=Math.max,ft=Math.round,ut=Math.floor,M=t=>({x:t,y:t}),Le={left:"right",right:"left",bottom:"top",top:"bottom"},Oe={start:"end",end:"start"};function $t(t,e,n){return k(t,Q(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function K(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(q(t))?"y":"x"}function Pt(t){return At(U(t))}function Ee(t,e,n){n===void 0&&(n=!1);const r=K(t),o=Pt(t),i=Rt(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=dt(l)),[l,dt(l)]}function Ce(t){const e=dt(t);return[Tt(t),e,Tt(e)]}function Tt(t){return t.replace(/start|end/g,e=>Oe[e])}function De(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:l;default:return[]}}function He(t,e,n,r){const o=K(t);let i=De(q(t),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),e&&(i=i.concat(i.map(Tt)))),i}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Le[e])}function We(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mt(t){return typeof t!="number"?We(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Vt(t,e,n){let{reference:r,floating:o}=t;const i=U(e),l=Pt(e),s=Rt(l),a=q(e),f=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let u;switch(a){case"top":u={x:c,y:r.y-o.height};break;case"bottom":u={x:c,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:d};break;case"left":u={x:r.x-o.width,y:d};break;default:u={x:r.x,y:r.y}}switch(K(e)){case"start":u[l]-=h*(n&&f?-1:1);break;case"end":u[l]+=h*(n&&f?-1:1);break}return u}const ke=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:d}=Vt(f,r,a),h=r,u={},p=0;for(let m=0;m<s.length;m++){const{name:y,fn:g}=s[m],{x:w,y:x,data:v,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:u,rects:f,platform:l,elements:{reference:t,floating:e}});c=w??c,d=x??d,u={...u,[y]:{...u[y],...v}},b&&p<=50&&(p++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(f=b.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:o}):b.rects),{x:c,y:d}=Vt(f,h,a)),m=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:u}};async function ot(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:u=0}=X(e,t),p=Mt(u),m=s[h?d==="floating"?"reference":"floating":d],y=pt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:f,rootBoundary:c,strategy:a})),g=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},v=pt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:a}):g);return{top:(y.top-v.top+p.top)/x.y,bottom:(v.bottom-y.bottom+p.bottom)/x.y,left:(y.left-v.left+p.left)/x.x,right:(v.right-y.right+p.right)/x.x}}const Fe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=e,{element:f,padding:c=0}=X(t,e)||{};if(f==null)return{};const d=Mt(c),h={x:n,y:r},u=Pt(o),p=Rt(u),m=await l.getDimensions(f),y=u==="y",g=y?"top":"left",w=y?"bottom":"right",x=y?"clientHeight":"clientWidth",v=i.reference[p]+i.reference[u]-h[u]-i.floating[p],b=h[u]-i.reference[u],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let P=A?A[x]:0;(!P||!await(l.isElement==null?void 0:l.isElement(A)))&&(P=s.floating[x]||i.floating[p]);const O=v/2-b/2,W=P/2-m[p]/2-1,E=Q(d[g],W),D=Q(d[w],W),H=E,T=P-m[p]-D,R=P/2-m[p]/2+O,B=$t(H,R,T),S=!a.arrow&&K(o)!=null&&R!==B&&i.reference[p]/2-(R<H?E:D)-m[p]/2<0,L=S?R<H?R-H:R-T:0;return{[u]:h[u]+L,data:{[u]:B,centerOffset:R-B-L,...S&&{alignmentOffset:L}},reset:S}}}),Be=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:s,platform:a,elements:f}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...y}=X(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=q(o),w=U(s),x=q(s)===s,v=await(a.isRTL==null?void 0:a.isRTL(f.floating)),b=h||(x||!m?[dt(s)]:Ce(s)),A=p!=="none";!h&&A&&b.push(...He(s,m,p,v));const P=[s,...b],O=await ot(e,y),W=[];let E=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&W.push(O[g]),d){const R=Ee(o,l,v);W.push(O[R[0]],O[R[1]])}if(E=[...E,{placement:o,overflows:W}],!W.every(R=>R<=0)){var D,H;const R=(((D=i.flip)==null?void 0:D.index)||0)+1,B=P[R];if(B)return{data:{index:R,overflows:E},reset:{placement:B}};let S=(H=E.filter(L=>L.overflows[0]<=0).sort((L,$)=>L.overflows[1]-$.overflows[1])[0])==null?void 0:H.placement;if(!S)switch(u){case"bestFit":{var T;const L=(T=E.filter($=>{if(A){const C=U($.placement);return C===w||C==="y"}return!0}).map($=>[$.placement,$.overflows.filter(C=>C>0).reduce((C,_)=>C+_,0)]).sort(($,C)=>$[1]-C[1])[0])==null?void 0:T[0];L&&(S=L);break}case"initialPlacement":S=s;break}if(o!==S)return{reset:{placement:S}}}return{}}}};function Yt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return Nt.some(e=>t[e]>=0)}const ze=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=X(t,e);switch(r){case"referenceHidden":{const i=await ot(e,{...o,elementContext:"reference"}),l=Yt(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:jt(l)}}}case"escaped":{const i=await ot(e,{...o,altBoundary:!0}),l=Yt(i,n.floating);return{data:{escapedOffsets:l,escaped:jt(l)}}}default:return{}}}}};async function Ne(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=q(n),s=K(n),a=U(n)==="y",f=["left","top"].includes(l)?-1:1,c=i&&a?-1:1,d=X(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(u=s==="end"?p*-1:p),a?{x:u*c,y:h*f}:{x:h*f,y:u*c}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=e,a=await Ne(e,t);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},Me=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:y=>{let{x:g,y:w}=y;return{x:g,y:w}}},...a}=X(t,e),f={x:n,y:r},c=await ot(e,a),d=U(q(o)),h=At(d);let u=f[h],p=f[d];if(i){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",w=u+c[y],x=u-c[g];u=$t(w,u,x)}if(l){const y=d==="y"?"top":"left",g=d==="y"?"bottom":"right",w=p+c[y],x=p-c[g];p=$t(w,p,x)}const m=s.fn({...e,[h]:u,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[d]:l}}}}}},Ve=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:s=0,mainAxis:a=!0,crossAxis:f=!0}=X(t,e),c={x:n,y:r},d=U(o),h=At(d);let u=c[h],p=c[d];const m=X(s,e),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const x=h==="y"?"height":"width",v=i.reference[h]-i.floating[x]+y.mainAxis,b=i.reference[h]+i.reference[x]-y.mainAxis;u<v?u=v:u>b&&(u=b)}if(f){var g,w;const x=h==="y"?"width":"height",v=["top","left"].includes(q(o)),b=i.reference[d]-i.floating[x]+(v&&((g=l.offset)==null?void 0:g[d])||0)+(v?0:y.crossAxis),A=i.reference[d]+i.reference[x]+(v?0:((w=l.offset)==null?void 0:w[d])||0)-(v?y.crossAxis:0);p<b?p=b:p>A&&(p=A)}return{[h]:u,[d]:p}}}},Ye=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:l,elements:s}=e,{apply:a=()=>{},...f}=X(t,e),c=await ot(e,f),d=q(o),h=K(o),u=U(o)==="y",{width:p,height:m}=i.floating;let y,g;d==="top"||d==="bottom"?(y=d,g=h===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,y=h==="end"?"top":"bottom");const w=m-c.top-c.bottom,x=p-c.left-c.right,v=Q(m-c[y],w),b=Q(p-c[g],x),A=!e.middlewareData.shift;let P=v,O=b;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(P=w),A&&!h){const E=k(c.left,0),D=k(c.right,0),H=k(c.top,0),T=k(c.bottom,0);u?O=p-2*(E!==0||D!==0?E+D:k(c.left,c.right)):P=m-2*(H!==0||T!==0?H+T:k(c.top,c.bottom))}await a({...e,availableWidth:O,availableHeight:P});const W=await l.getDimensions(s.floating);return p!==W.width||m!==W.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function tt(t){return It(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(It(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function It(t){return ht()?t instanceof Node||t instanceof F(t).Node:!1}function z(t){return ht()?t instanceof Element||t instanceof F(t).Element:!1}function Y(t){return ht()?t instanceof HTMLElement||t instanceof F(t).HTMLElement:!1}function Xt(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function it(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=N(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function je(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=Lt(),n=z(t)?N(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ie(t){let e=Z(t);for(;Y(e)&&!et(e);){if(St(e))return e;if(mt(e))return null;e=Z(e)}return null}function Lt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function N(t){return F(t).getComputedStyle(t)}function gt(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Z(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Xt(t)&&t.host||V(t);return Xt(e)?e.host:e}function qt(t){const e=Z(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y(e)&&it(e)?e:qt(e)}function lt(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=qt(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),l=F(o);if(i){const s=Ot(l);return e.concat(l,l.visualViewport||[],it(o)?o:[],s&&n?lt(s):[])}return e.concat(o,lt(o,[],n))}function Ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Qt(t){const e=N(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Y(t),i=o?t.offsetWidth:n,l=o?t.offsetHeight:r,s=ft(n)!==i||ft(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Et(t){return z(t)?t:t.contextElement}function nt(t){const e=Et(t);if(!Y(e))return M(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Qt(e);let l=(i?ft(n.width):n.width)/r,s=(i?ft(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Xe=M(0);function Ut(t){const e=F(t);return!Lt()||!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!==F(t)?!1:e}function G(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=Et(t);let l=M(1);e&&(r?z(r)&&(l=nt(r)):l=nt(t));const s=qe(i,n,r)?Ut(i):M(0);let a=(o.left+s.x)/l.x,f=(o.top+s.y)/l.y,c=o.width/l.x,d=o.height/l.y;if(i){const h=F(i),u=r&&z(r)?F(r):r;let p=h,m=Ot(p);for(;m&&r&&u!==p;){const y=nt(m),g=m.getBoundingClientRect(),w=N(m),x=g.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,v=g.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;a*=y.x,f*=y.y,c*=y.x,d*=y.y,a+=x,f+=v,p=F(m),m=Ot(p)}}return pt({width:c,height:d,x:a,y:f})}function Ct(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Zt(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-(n?0:Ct(t,r)),i=r.top+e.scrollTop;return{x:o,y:i}}function Qe(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",l=V(r),s=e?mt(e.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},f=M(1);const c=M(0),d=Y(r);if((d||!d&&!i)&&((tt(r)!=="body"||it(l))&&(a=gt(r)),Y(r))){const u=G(r);f=nt(r),c.x=u.x+r.clientLeft,c.y=u.y+r.clientTop}const h=l&&!d&&!i?Zt(l,a,!0):M(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+c.x+h.x,y:n.y*f.y-a.scrollTop*f.y+c.y+h.y}}function Ue(t){return Array.from(t.getClientRects())}function Ze(t){const e=V(t),n=gt(t),r=t.ownerDocument.body,o=k(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=k(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Ct(t);const s=-n.scrollTop;return N(r).direction==="rtl"&&(l+=k(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function Ge(t,e){const n=F(t),r=V(t),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const f=Lt();(!f||f&&e==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function Je(t,e){const n=G(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Y(t)?nt(t):M(1),l=t.clientWidth*i.x,s=t.clientHeight*i.y,a=o*i.x,f=r*i.y;return{width:l,height:s,x:a,y:f}}function Gt(t,e,n){let r;if(e==="viewport")r=Ge(t,n);else if(e==="document")r=Ze(V(t));else if(z(e))r=Je(e,n);else{const o=Ut(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return pt(r)}function Jt(t,e){const n=Z(t);return n===e||!z(n)||et(n)?!1:N(n).position==="fixed"||Jt(n,e)}function Ke(t,e){const n=e.get(t);if(n)return n;let r=lt(t,[],!1).filter(s=>z(s)&&tt(s)!=="body"),o=null;const i=N(t).position==="fixed";let l=i?Z(t):t;for(;z(l)&&!et(l);){const s=N(l),a=St(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&o&&["absolute","fixed"].includes(o.position)||it(l)&&!a&&Jt(t,l))?r=r.filter(f=>f!==l):o=s,l=Z(l)}return e.set(t,r),r}function tn(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[...n==="clippingAncestors"?mt(e)?[]:Ke(e,this._c):[].concat(n),r],l=i[0],s=i.reduce((a,f)=>{const c=Gt(e,f,o);return a.top=k(c.top,a.top),a.right=Q(c.right,a.right),a.bottom=Q(c.bottom,a.bottom),a.left=k(c.left,a.left),a},Gt(e,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function en(t){const{width:e,height:n}=Qt(t);return{width:e,height:n}}function nn(t,e,n){const r=Y(e),o=V(e),i=n==="fixed",l=G(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const a=M(0);if(r||!r&&!i)if((tt(e)!=="body"||it(o))&&(s=gt(e)),r){const h=G(e,!0,i,e);a.x=h.x+e.clientLeft,a.y=h.y+e.clientTop}else o&&(a.x=Ct(o));const f=o&&!r&&!i?Zt(o,s):M(0),c=l.left+s.scrollLeft-a.x-f.x,d=l.top+s.scrollTop-a.y-f.y;return{x:c,y:d,width:l.width,height:l.height}}function Dt(t){return N(t).position==="static"}function Kt(t,e){if(!Y(t)||N(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function te(t,e){const n=F(t);if(mt(t))return n;if(!Y(t)){let o=Z(t);for(;o&&!et(o);){if(z(o)&&!Dt(o))return o;o=Z(o)}return n}let r=Kt(t,e);for(;r&&je(r)&&Dt(r);)r=Kt(r,e);return r&&et(r)&&Dt(r)&&!St(r)?n:r||Ie(t)||n}const rn=async function(t){const e=this.getOffsetParent||te,n=this.getDimensions,r=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function on(t){return N(t).direction==="rtl"}const ln={convertOffsetParentRelativeRectToViewportRelativeRect:Qe,getDocumentElement:V,getClippingRect:tn,getOffsetParent:te,getElementRects:rn,getClientRects:Ue,getDimensions:en,getScale:nt,isElement:z,isRTL:on};function sn(t,e){let n=null,r;const o=V(t);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:f,top:c,width:d,height:h}=t.getBoundingClientRect();if(s||e(),!d||!h)return;const u=ut(c),p=ut(o.clientWidth-(f+d)),m=ut(o.clientHeight-(c+h)),y=ut(f),g={rootMargin:-u+"px "+-p+"px "+-m+"px "+-y+"px",threshold:k(0,Q(1,a))||1};let w=!0;function x(v){const b=v[0].intersectionRatio;if(b!==a){if(!w)return l();b?l(!1,b):r=setTimeout(()=>{l(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(x,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,g)}n.observe(t)}return l(!0),i}function an(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,f=Et(t),c=o||i?[...f?lt(f):[],...lt(e)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=f&&s?sn(f,n):null;let h=-1,u=null;l&&(u=new ResizeObserver(g=>{let[w]=g;w&&w.target===f&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=u)==null||x.observe(e)})),n()}),f&&!a&&u.observe(f),u.observe(e));let p,m=a?G(t):null;a&&y();function y(){const g=G(t);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,p=requestAnimationFrame(y)}return n(),()=>{var g;c.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(g=u)==null||g.disconnect(),u=null,a&&cancelAnimationFrame(p)}}const cn=_e,fn=Me,un=Be,dn=Ye,pn=ze,ee=Fe,hn=Ve,mn=(t,e,n)=>{const r=new Map,o={platform:ln,...n},i={...o.platform,_c:r};return ke(t,e,{...o,platform:i})};var yt=typeof document<"u"?Re:Bt;function wt(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,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!wt(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&t.$$typeof)&&!wt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ne(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function re(t,e){const n=ne(t);return Math.round(e*n)/n}function Ht(t){const e=J(t);return yt(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:f}=t,[c,d]=j({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,u]=j(r);wt(h,r)||u(r);const[p,m]=j(null),[y,g]=j(null),w=xt($=>{$!==A.current&&(A.current=$,m($))},[]),x=xt($=>{$!==P.current&&(P.current=$,g($))},[]),v=i||p,b=l||y,A=J(null),P=J(null),O=J(c),W=a!=null,E=Ht(a),D=Ht(o),H=Ht(f),T=xt(()=>{if(!A.current||!P.current)return;const $={placement:e,strategy:n,middleware:h};D.current&&($.platform=D.current),mn(A.current,P.current,$).then(C=>{const _={...C,isPositioned:H.current!==!1};R.current&&!wt(O.current,_)&&(O.current=_,Pe(()=>{d(_)}))})},[h,e,n,D,H]);yt(()=>{f===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d($=>({...$,isPositioned:!1})))},[f]);const R=J(!1);yt(()=>(R.current=!0,()=>{R.current=!1}),[]),yt(()=>{if(v&&(A.current=v),b&&(P.current=b),v&&b){if(E.current)return E.current(v,b,T);T()}},[v,b,T,E,W]);const B=at(()=>({reference:A,floating:P,setReference:w,setFloating:x}),[w,x]),S=at(()=>({reference:v,floating:b}),[v,b]),L=at(()=>{const $={position:n,left:0,top:0};if(!S.floating)return $;const C=re(S.floating,c.x),_=re(S.floating,c.y);return s?{...$,transform:"translate("+C+"px, "+_+"px)",...ne(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:C,top:_}},[n,s,S.floating,c.x,c.y]);return at(()=>({...c,update:T,refs:B,elements:S,floatingStyles:L}),[c,T,B,S,L])}const yn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?ee({element:r.current,padding:o}).fn(n):{}:r?ee({element:r,padding:o}).fn(n):{}}}},wn=(t,e)=>({...cn(t),options:[t,e]}),xn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...hn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),$n=(t,e)=>({...dn(t),options:[t,e]}),An=(t,e)=>({...pn(t),options:[t,e]}),Rn=(t,e)=>({...yn(t),options:[t,e]});var Pn="Arrow",oe=ct((t,e)=>{const{children:n,width:r=10,height:o=5,...i}=t;return I(vt.svg,{...i,ref:e,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:I("polygon",{points:"0,0 30,0 15,10"})})});oe.displayName=Pn;var Tn=oe;function Sn(t){const[e,n]=j(void 0);return bt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,f=Array.isArray(a)?a[0]:a;l=f.inlineSize,s=f.blockSize}else l=t.offsetWidth,s=t.offsetHeight;n({width:l,height:s})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var Wt="Popper",[ie,Ln]=Te(Wt),[On,le]=ie(Wt),se=t=>{const{__scopePopper:e,children:n}=t,[r,o]=j(null);return I(On,{scope:e,anchor:r,onAnchorChange:o,children:n})};se.displayName=Wt;var ae="PopperAnchor",ce=ct((t,e)=>{const{__scopePopper:n,virtualRef:r,...o}=t,i=le(ae,n),l=J(null),s=zt(e,l);return Bt(()=>{i.onAnchorChange(r?.current||l.current)}),r?null:I(vt.div,{...o,ref:s})});ce.displayName=ae;var kt="PopperContent",[En,Cn]=ie(kt),fe=ct((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:f=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:u="optimized",onPlaced:p,...m}=t,y=le(kt,n),[g,w]=j(null),x=zt(e,rt=>w(rt)),[v,b]=j(null),A=Sn(v),P=A?.width??0,O=A?.height??0,W=r+(i!=="center"?"-"+i:""),E=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},D=Array.isArray(f)?f:[f],H=D.length>0,T={padding:E,boundary:D.filter(Hn),altBoundary:H},{refs:R,floatingStyles:B,placement:S,isPositioned:L,middlewareData:$}=gn({strategy:"fixed",placement:W,whileElementsMounted:(...rt)=>an(...rt,{animationFrame:u==="always"}),elements:{reference:y.anchor},middleware:[wn({mainAxis:o+O,alignmentAxis:l}),a&&xn({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?vn():void 0,...T}),a&&bn({...T}),$n({...T,apply:({elements:rt,rects:xe,availableWidth:ve,availableHeight:be})=>{const{width:$e,height:Ae}=xe.reference,st=rt.floating.style;st.setProperty("--radix-popper-available-width",`${ve}px`),st.setProperty("--radix-popper-available-height",`${be}px`),st.setProperty("--radix-popper-anchor-width",`${$e}px`),st.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),v&&Rn({element:v,padding:s}),Wn({arrowWidth:P,arrowHeight:O}),h&&An({strategy:"referenceHidden",...T})]}),[C,_]=pe(S),Ft=Se(p);bt(()=>{L&&Ft?.()},[L,Ft]);const he=$.arrow?.x,me=$.arrow?.y,ge=$.arrow?.centerOffset!==0,[ye,we]=j();return bt(()=>{g&&we(window.getComputedStyle(g).zIndex)},[g]),I("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,["--radix-popper-transform-origin"]:[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:I(En,{scope:n,placedSide:C,onArrowChange:b,arrowX:he,arrowY:me,shouldHideArrow:ge,children:I(vt.div,{"data-side":C,"data-align":_,...m,ref:x,style:{...m.style,animation:L?void 0:"none"}})})})});fe.displayName=kt;var ue="PopperArrow",Dn={top:"bottom",right:"left",bottom:"top",left:"right"},de=ct(function(t,e){const{__scopePopper:n,...r}=t,o=Cn(ue,n),i=Dn[o.placedSide];return I("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:I(Tn,{...r,ref:e,style:{...r.style,display:"block"}})})});de.displayName=ue;function Hn(t){return t!==null}var Wn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,i=o.arrow?.centerOffset!==0,l=i?0:t.arrowWidth,s=i?0:t.arrowHeight,[a,f]=pe(n),c={start:"0%",center:"50%",end:"100%"}[f],d=(o.arrow?.x??0)+l/2,h=(o.arrow?.y??0)+s/2;let u="",p="";return a==="bottom"?(u=i?c:`${d}px`,p=`${-s}px`):a==="top"?(u=i?c:`${d}px`,p=`${r.floating.height+s}px`):a==="right"?(u=`${-s}px`,p=i?c:`${h}px`):a==="left"&&(u=`${r.floating.width+s}px`,p=i?c:`${h}px`),{data:{x:u,y:p}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var kn=se,Fn=ce,Bn=fe,zn=de;export{zn as D,Ln as R,kn as W,Bn as Y,Fn as z};
|
|
1
|
+
import{T as j,w as xt,W as J,P as Re,S as Bt,H as at,p as Pe,$ as ct,u as I}from"./register-BVVRhrAp.js";import{t as vt}from"./index-xbpQ79U4.js";import{s as zt}from"./index-g2n1iIXU.js";import{l as Te}from"./index-W7WQ13pv.js";import{c as Se}from"./index-BoT3wiiN.js";import{o as bt}from"./index-B76s2QkF.js";const Nt=["top","right","bottom","left"],_t=["start","end"];Nt.reduce((t,e)=>t.concat(e,e+"-"+_t[0],e+"-"+_t[1]),[]);const Q=Math.min,k=Math.max,ft=Math.round,ut=Math.floor,M=t=>({x:t,y:t}),Le={left:"right",right:"left",bottom:"top",top:"bottom"},Oe={start:"end",end:"start"};function $t(t,e,n){return k(t,Q(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function K(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(q(t))?"y":"x"}function Pt(t){return At(U(t))}function Ee(t,e,n){n===void 0&&(n=!1);const r=K(t),o=Pt(t),i=Rt(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=dt(l)),[l,dt(l)]}function Ce(t){const e=dt(t);return[Tt(t),e,Tt(e)]}function Tt(t){return t.replace(/start|end/g,e=>Oe[e])}function De(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:l;default:return[]}}function He(t,e,n,r){const o=K(t);let i=De(q(t),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),e&&(i=i.concat(i.map(Tt)))),i}function dt(t){return t.replace(/left|right|bottom|top/g,e=>Le[e])}function We(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mt(t){return typeof t!="number"?We(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Vt(t,e,n){let{reference:r,floating:o}=t;const i=U(e),l=Pt(e),s=Rt(l),a=q(e),f=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let u;switch(a){case"top":u={x:c,y:r.y-o.height};break;case"bottom":u={x:c,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:d};break;case"left":u={x:r.x-o.width,y:d};break;default:u={x:r.x,y:r.y}}switch(K(e)){case"start":u[l]-=h*(n&&f?-1:1);break;case"end":u[l]+=h*(n&&f?-1:1);break}return u}const ke=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:d}=Vt(f,r,a),h=r,u={},p=0;for(let m=0;m<s.length;m++){const{name:y,fn:g}=s[m],{x:w,y:x,data:v,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:u,rects:f,platform:l,elements:{reference:t,floating:e}});c=w??c,d=x??d,u={...u,[y]:{...u[y],...v}},b&&p<=50&&(p++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(f=b.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:o}):b.rects),{x:c,y:d}=Vt(f,h,a)),m=-1)}return{x:c,y:d,placement:h,strategy:o,middlewareData:u}};async function ot(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:u=0}=X(e,t),p=Mt(u),m=s[h?d==="floating"?"reference":"floating":d],y=pt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:f,rootBoundary:c,strategy:a})),g=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},v=pt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:a}):g);return{top:(y.top-v.top+p.top)/x.y,bottom:(v.bottom-y.bottom+p.bottom)/x.y,left:(y.left-v.left+p.left)/x.x,right:(v.right-y.right+p.right)/x.x}}const Fe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=e,{element:f,padding:c=0}=X(t,e)||{};if(f==null)return{};const d=Mt(c),h={x:n,y:r},u=Pt(o),p=Rt(u),m=await l.getDimensions(f),y=u==="y",g=y?"top":"left",w=y?"bottom":"right",x=y?"clientHeight":"clientWidth",v=i.reference[p]+i.reference[u]-h[u]-i.floating[p],b=h[u]-i.reference[u],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let P=A?A[x]:0;(!P||!await(l.isElement==null?void 0:l.isElement(A)))&&(P=s.floating[x]||i.floating[p]);const O=v/2-b/2,W=P/2-m[p]/2-1,E=Q(d[g],W),D=Q(d[w],W),H=E,T=P-m[p]-D,R=P/2-m[p]/2+O,B=$t(H,R,T),S=!a.arrow&&K(o)!=null&&R!==B&&i.reference[p]/2-(R<H?E:D)-m[p]/2<0,L=S?R<H?R-H:R-T:0;return{[u]:h[u]+L,data:{[u]:B,centerOffset:R-B-L,...S&&{alignmentOffset:L}},reset:S}}}),Be=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:s,platform:a,elements:f}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...y}=X(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=q(o),w=U(s),x=q(s)===s,v=await(a.isRTL==null?void 0:a.isRTL(f.floating)),b=h||(x||!m?[dt(s)]:Ce(s)),A=p!=="none";!h&&A&&b.push(...He(s,m,p,v));const P=[s,...b],O=await ot(e,y),W=[];let E=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&W.push(O[g]),d){const R=Ee(o,l,v);W.push(O[R[0]],O[R[1]])}if(E=[...E,{placement:o,overflows:W}],!W.every(R=>R<=0)){var D,H;const R=(((D=i.flip)==null?void 0:D.index)||0)+1,B=P[R];if(B)return{data:{index:R,overflows:E},reset:{placement:B}};let S=(H=E.filter(L=>L.overflows[0]<=0).sort((L,$)=>L.overflows[1]-$.overflows[1])[0])==null?void 0:H.placement;if(!S)switch(u){case"bestFit":{var T;const L=(T=E.filter($=>{if(A){const C=U($.placement);return C===w||C==="y"}return!0}).map($=>[$.placement,$.overflows.filter(C=>C>0).reduce((C,_)=>C+_,0)]).sort(($,C)=>$[1]-C[1])[0])==null?void 0:T[0];L&&(S=L);break}case"initialPlacement":S=s;break}if(o!==S)return{reset:{placement:S}}}return{}}}};function Yt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return Nt.some(e=>t[e]>=0)}const ze=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=X(t,e);switch(r){case"referenceHidden":{const i=await ot(e,{...o,elementContext:"reference"}),l=Yt(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:jt(l)}}}case"escaped":{const i=await ot(e,{...o,altBoundary:!0}),l=Yt(i,n.floating);return{data:{escapedOffsets:l,escaped:jt(l)}}}default:return{}}}}};async function Ne(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=q(n),s=K(n),a=U(n)==="y",f=["left","top"].includes(l)?-1:1,c=i&&a?-1:1,d=X(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(u=s==="end"?p*-1:p),a?{x:u*c,y:h*f}:{x:h*f,y:u*c}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=e,a=await Ne(e,t);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},Me=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:y=>{let{x:g,y:w}=y;return{x:g,y:w}}},...a}=X(t,e),f={x:n,y:r},c=await ot(e,a),d=U(q(o)),h=At(d);let u=f[h],p=f[d];if(i){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",w=u+c[y],x=u-c[g];u=$t(w,u,x)}if(l){const y=d==="y"?"top":"left",g=d==="y"?"bottom":"right",w=p+c[y],x=p-c[g];p=$t(w,p,x)}const m=s.fn({...e,[h]:u,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[d]:l}}}}}},Ve=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:s=0,mainAxis:a=!0,crossAxis:f=!0}=X(t,e),c={x:n,y:r},d=U(o),h=At(d);let u=c[h],p=c[d];const m=X(s,e),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const x=h==="y"?"height":"width",v=i.reference[h]-i.floating[x]+y.mainAxis,b=i.reference[h]+i.reference[x]-y.mainAxis;u<v?u=v:u>b&&(u=b)}if(f){var g,w;const x=h==="y"?"width":"height",v=["top","left"].includes(q(o)),b=i.reference[d]-i.floating[x]+(v&&((g=l.offset)==null?void 0:g[d])||0)+(v?0:y.crossAxis),A=i.reference[d]+i.reference[x]+(v?0:((w=l.offset)==null?void 0:w[d])||0)-(v?y.crossAxis:0);p<b?p=b:p>A&&(p=A)}return{[h]:u,[d]:p}}}},Ye=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:l,elements:s}=e,{apply:a=()=>{},...f}=X(t,e),c=await ot(e,f),d=q(o),h=K(o),u=U(o)==="y",{width:p,height:m}=i.floating;let y,g;d==="top"||d==="bottom"?(y=d,g=h===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,y=h==="end"?"top":"bottom");const w=m-c.top-c.bottom,x=p-c.left-c.right,v=Q(m-c[y],w),b=Q(p-c[g],x),A=!e.middlewareData.shift;let P=v,O=b;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(P=w),A&&!h){const E=k(c.left,0),D=k(c.right,0),H=k(c.top,0),T=k(c.bottom,0);u?O=p-2*(E!==0||D!==0?E+D:k(c.left,c.right)):P=m-2*(H!==0||T!==0?H+T:k(c.top,c.bottom))}await a({...e,availableWidth:O,availableHeight:P});const W=await l.getDimensions(s.floating);return p!==W.width||m!==W.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function tt(t){return It(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(It(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function It(t){return ht()?t instanceof Node||t instanceof F(t).Node:!1}function z(t){return ht()?t instanceof Element||t instanceof F(t).Element:!1}function Y(t){return ht()?t instanceof HTMLElement||t instanceof F(t).HTMLElement:!1}function Xt(t){return!ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function it(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=N(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function je(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=Lt(),n=z(t)?N(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ie(t){let e=Z(t);for(;Y(e)&&!et(e);){if(St(e))return e;if(mt(e))return null;e=Z(e)}return null}function Lt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function N(t){return F(t).getComputedStyle(t)}function gt(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Z(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Xt(t)&&t.host||V(t);return Xt(e)?e.host:e}function qt(t){const e=Z(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y(e)&&it(e)?e:qt(e)}function lt(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=qt(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),l=F(o);if(i){const s=Ot(l);return e.concat(l,l.visualViewport||[],it(o)?o:[],s&&n?lt(s):[])}return e.concat(o,lt(o,[],n))}function Ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Qt(t){const e=N(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Y(t),i=o?t.offsetWidth:n,l=o?t.offsetHeight:r,s=ft(n)!==i||ft(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Et(t){return z(t)?t:t.contextElement}function nt(t){const e=Et(t);if(!Y(e))return M(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Qt(e);let l=(i?ft(n.width):n.width)/r,s=(i?ft(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Xe=M(0);function Ut(t){const e=F(t);return!Lt()||!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!==F(t)?!1:e}function G(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=Et(t);let l=M(1);e&&(r?z(r)&&(l=nt(r)):l=nt(t));const s=qe(i,n,r)?Ut(i):M(0);let a=(o.left+s.x)/l.x,f=(o.top+s.y)/l.y,c=o.width/l.x,d=o.height/l.y;if(i){const h=F(i),u=r&&z(r)?F(r):r;let p=h,m=Ot(p);for(;m&&r&&u!==p;){const y=nt(m),g=m.getBoundingClientRect(),w=N(m),x=g.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,v=g.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;a*=y.x,f*=y.y,c*=y.x,d*=y.y,a+=x,f+=v,p=F(m),m=Ot(p)}}return pt({width:c,height:d,x:a,y:f})}function Ct(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Zt(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-(n?0:Ct(t,r)),i=r.top+e.scrollTop;return{x:o,y:i}}function Qe(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",l=V(r),s=e?mt(e.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},f=M(1);const c=M(0),d=Y(r);if((d||!d&&!i)&&((tt(r)!=="body"||it(l))&&(a=gt(r)),Y(r))){const u=G(r);f=nt(r),c.x=u.x+r.clientLeft,c.y=u.y+r.clientTop}const h=l&&!d&&!i?Zt(l,a,!0):M(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+c.x+h.x,y:n.y*f.y-a.scrollTop*f.y+c.y+h.y}}function Ue(t){return Array.from(t.getClientRects())}function Ze(t){const e=V(t),n=gt(t),r=t.ownerDocument.body,o=k(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=k(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Ct(t);const s=-n.scrollTop;return N(r).direction==="rtl"&&(l+=k(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function Ge(t,e){const n=F(t),r=V(t),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const f=Lt();(!f||f&&e==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function Je(t,e){const n=G(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Y(t)?nt(t):M(1),l=t.clientWidth*i.x,s=t.clientHeight*i.y,a=o*i.x,f=r*i.y;return{width:l,height:s,x:a,y:f}}function Gt(t,e,n){let r;if(e==="viewport")r=Ge(t,n);else if(e==="document")r=Ze(V(t));else if(z(e))r=Je(e,n);else{const o=Ut(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return pt(r)}function Jt(t,e){const n=Z(t);return n===e||!z(n)||et(n)?!1:N(n).position==="fixed"||Jt(n,e)}function Ke(t,e){const n=e.get(t);if(n)return n;let r=lt(t,[],!1).filter(s=>z(s)&&tt(s)!=="body"),o=null;const i=N(t).position==="fixed";let l=i?Z(t):t;for(;z(l)&&!et(l);){const s=N(l),a=St(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&o&&["absolute","fixed"].includes(o.position)||it(l)&&!a&&Jt(t,l))?r=r.filter(f=>f!==l):o=s,l=Z(l)}return e.set(t,r),r}function tn(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[...n==="clippingAncestors"?mt(e)?[]:Ke(e,this._c):[].concat(n),r],l=i[0],s=i.reduce((a,f)=>{const c=Gt(e,f,o);return a.top=k(c.top,a.top),a.right=Q(c.right,a.right),a.bottom=Q(c.bottom,a.bottom),a.left=k(c.left,a.left),a},Gt(e,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function en(t){const{width:e,height:n}=Qt(t);return{width:e,height:n}}function nn(t,e,n){const r=Y(e),o=V(e),i=n==="fixed",l=G(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const a=M(0);if(r||!r&&!i)if((tt(e)!=="body"||it(o))&&(s=gt(e)),r){const h=G(e,!0,i,e);a.x=h.x+e.clientLeft,a.y=h.y+e.clientTop}else o&&(a.x=Ct(o));const f=o&&!r&&!i?Zt(o,s):M(0),c=l.left+s.scrollLeft-a.x-f.x,d=l.top+s.scrollTop-a.y-f.y;return{x:c,y:d,width:l.width,height:l.height}}function Dt(t){return N(t).position==="static"}function Kt(t,e){if(!Y(t)||N(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function te(t,e){const n=F(t);if(mt(t))return n;if(!Y(t)){let o=Z(t);for(;o&&!et(o);){if(z(o)&&!Dt(o))return o;o=Z(o)}return n}let r=Kt(t,e);for(;r&&je(r)&&Dt(r);)r=Kt(r,e);return r&&et(r)&&Dt(r)&&!St(r)?n:r||Ie(t)||n}const rn=async function(t){const e=this.getOffsetParent||te,n=this.getDimensions,r=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function on(t){return N(t).direction==="rtl"}const ln={convertOffsetParentRelativeRectToViewportRelativeRect:Qe,getDocumentElement:V,getClippingRect:tn,getOffsetParent:te,getElementRects:rn,getClientRects:Ue,getDimensions:en,getScale:nt,isElement:z,isRTL:on};function sn(t,e){let n=null,r;const o=V(t);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:f,top:c,width:d,height:h}=t.getBoundingClientRect();if(s||e(),!d||!h)return;const u=ut(c),p=ut(o.clientWidth-(f+d)),m=ut(o.clientHeight-(c+h)),y=ut(f),g={rootMargin:-u+"px "+-p+"px "+-m+"px "+-y+"px",threshold:k(0,Q(1,a))||1};let w=!0;function x(v){const b=v[0].intersectionRatio;if(b!==a){if(!w)return l();b?l(!1,b):r=setTimeout(()=>{l(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(x,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,g)}n.observe(t)}return l(!0),i}function an(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,f=Et(t),c=o||i?[...f?lt(f):[],...lt(e)]:[];c.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=f&&s?sn(f,n):null;let h=-1,u=null;l&&(u=new ResizeObserver(g=>{let[w]=g;w&&w.target===f&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=u)==null||x.observe(e)})),n()}),f&&!a&&u.observe(f),u.observe(e));let p,m=a?G(t):null;a&&y();function y(){const g=G(t);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,p=requestAnimationFrame(y)}return n(),()=>{var g;c.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(g=u)==null||g.disconnect(),u=null,a&&cancelAnimationFrame(p)}}const cn=_e,fn=Me,un=Be,dn=Ye,pn=ze,ee=Fe,hn=Ve,mn=(t,e,n)=>{const r=new Map,o={platform:ln,...n},i={...o.platform,_c:r};return ke(t,e,{...o,platform:i})};var yt=typeof document<"u"?Re:Bt;function wt(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,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!wt(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&t.$$typeof)&&!wt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ne(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function re(t,e){const n=ne(t);return Math.round(e*n)/n}function Ht(t){const e=J(t);return yt(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:f}=t,[c,d]=j({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,u]=j(r);wt(h,r)||u(r);const[p,m]=j(null),[y,g]=j(null),w=xt($=>{$!==A.current&&(A.current=$,m($))},[]),x=xt($=>{$!==P.current&&(P.current=$,g($))},[]),v=i||p,b=l||y,A=J(null),P=J(null),O=J(c),W=a!=null,E=Ht(a),D=Ht(o),H=Ht(f),T=xt(()=>{if(!A.current||!P.current)return;const $={placement:e,strategy:n,middleware:h};D.current&&($.platform=D.current),mn(A.current,P.current,$).then(C=>{const _={...C,isPositioned:H.current!==!1};R.current&&!wt(O.current,_)&&(O.current=_,Pe(()=>{d(_)}))})},[h,e,n,D,H]);yt(()=>{f===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d($=>({...$,isPositioned:!1})))},[f]);const R=J(!1);yt(()=>(R.current=!0,()=>{R.current=!1}),[]),yt(()=>{if(v&&(A.current=v),b&&(P.current=b),v&&b){if(E.current)return E.current(v,b,T);T()}},[v,b,T,E,W]);const B=at(()=>({reference:A,floating:P,setReference:w,setFloating:x}),[w,x]),S=at(()=>({reference:v,floating:b}),[v,b]),L=at(()=>{const $={position:n,left:0,top:0};if(!S.floating)return $;const C=re(S.floating,c.x),_=re(S.floating,c.y);return s?{...$,transform:"translate("+C+"px, "+_+"px)",...ne(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:C,top:_}},[n,s,S.floating,c.x,c.y]);return at(()=>({...c,update:T,refs:B,elements:S,floatingStyles:L}),[c,T,B,S,L])}const yn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?ee({element:r.current,padding:o}).fn(n):{}:r?ee({element:r,padding:o}).fn(n):{}}}},wn=(t,e)=>({...cn(t),options:[t,e]}),xn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...hn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),$n=(t,e)=>({...dn(t),options:[t,e]}),An=(t,e)=>({...pn(t),options:[t,e]}),Rn=(t,e)=>({...yn(t),options:[t,e]});var Pn="Arrow",oe=ct((t,e)=>{const{children:n,width:r=10,height:o=5,...i}=t;return I(vt.svg,{...i,ref:e,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:I("polygon",{points:"0,0 30,0 15,10"})})});oe.displayName=Pn;var Tn=oe;function Sn(t){const[e,n]=j(void 0);return bt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,f=Array.isArray(a)?a[0]:a;l=f.inlineSize,s=f.blockSize}else l=t.offsetWidth,s=t.offsetHeight;n({width:l,height:s})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var Wt="Popper",[ie,Ln]=Te(Wt),[On,le]=ie(Wt),se=t=>{const{__scopePopper:e,children:n}=t,[r,o]=j(null);return I(On,{scope:e,anchor:r,onAnchorChange:o,children:n})};se.displayName=Wt;var ae="PopperAnchor",ce=ct((t,e)=>{const{__scopePopper:n,virtualRef:r,...o}=t,i=le(ae,n),l=J(null),s=zt(e,l);return Bt(()=>{i.onAnchorChange(r?.current||l.current)}),r?null:I(vt.div,{...o,ref:s})});ce.displayName=ae;var kt="PopperContent",[En,Cn]=ie(kt),fe=ct((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:f=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:u="optimized",onPlaced:p,...m}=t,y=le(kt,n),[g,w]=j(null),x=zt(e,rt=>w(rt)),[v,b]=j(null),A=Sn(v),P=A?.width??0,O=A?.height??0,W=r+(i!=="center"?"-"+i:""),E=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},D=Array.isArray(f)?f:[f],H=D.length>0,T={padding:E,boundary:D.filter(Hn),altBoundary:H},{refs:R,floatingStyles:B,placement:S,isPositioned:L,middlewareData:$}=gn({strategy:"fixed",placement:W,whileElementsMounted:(...rt)=>an(...rt,{animationFrame:u==="always"}),elements:{reference:y.anchor},middleware:[wn({mainAxis:o+O,alignmentAxis:l}),a&&xn({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?vn():void 0,...T}),a&&bn({...T}),$n({...T,apply:({elements:rt,rects:xe,availableWidth:ve,availableHeight:be})=>{const{width:$e,height:Ae}=xe.reference,st=rt.floating.style;st.setProperty("--radix-popper-available-width",`${ve}px`),st.setProperty("--radix-popper-available-height",`${be}px`),st.setProperty("--radix-popper-anchor-width",`${$e}px`),st.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),v&&Rn({element:v,padding:s}),Wn({arrowWidth:P,arrowHeight:O}),h&&An({strategy:"referenceHidden",...T})]}),[C,_]=pe(S),Ft=Se(p);bt(()=>{L&&Ft?.()},[L,Ft]);const he=$.arrow?.x,me=$.arrow?.y,ge=$.arrow?.centerOffset!==0,[ye,we]=j();return bt(()=>{g&&we(window.getComputedStyle(g).zIndex)},[g]),I("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,["--radix-popper-transform-origin"]:[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:I(En,{scope:n,placedSide:C,onArrowChange:b,arrowX:he,arrowY:me,shouldHideArrow:ge,children:I(vt.div,{"data-side":C,"data-align":_,...m,ref:x,style:{...m.style,animation:L?void 0:"none"}})})})});fe.displayName=kt;var ue="PopperArrow",Dn={top:"bottom",right:"left",bottom:"top",left:"right"},de=ct(function(t,e){const{__scopePopper:n,...r}=t,o=Cn(ue,n),i=Dn[o.placedSide];return I("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:I(Tn,{...r,ref:e,style:{...r.style,display:"block"}})})});de.displayName=ue;function Hn(t){return t!==null}var Wn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,i=o.arrow?.centerOffset!==0,l=i?0:t.arrowWidth,s=i?0:t.arrowHeight,[a,f]=pe(n),c={start:"0%",center:"50%",end:"100%"}[f],d=(o.arrow?.x??0)+l/2,h=(o.arrow?.y??0)+s/2;let u="",p="";return a==="bottom"?(u=i?c:`${d}px`,p=`${-s}px`):a==="top"?(u=i?c:`${d}px`,p=`${r.floating.height+s}px`):a==="right"?(u=`${-s}px`,p=i?c:`${h}px`):a==="left"&&(u=`${r.floating.width+s}px`,p=i?c:`${h}px`),{data:{x:u,y:p}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var kn=se,Fn=ce,Bn=fe,zn=de;export{zn as D,Ln as R,kn as W,Bn as Y,Fn as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P as o}from"./register-BVVRhrAp.js";var r=Boolean(globalThis?.document)?o:()=>{};export{r as o};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as i,$ as n,W as m,S as I}from"./register-
|
|
1
|
+
import{u as i,$ as n,W as m,S as I}from"./register-BVVRhrAp.js";import{l as P}from"./index-W7WQ13pv.js";import{s as g,m as T}from"./index-g2n1iIXU.js";import{e as f,u as W,v as D,D as q,f as B,p as C,g as E,a as Y,m as j,d as k}from"./index-U75gvhFe.js";import{u as z}from"./index-DXFJDeKK.js";var v="AlertDialog",[G,de]=P(v,[f]),s=f(),A=e=>{const{__scopeAlertDialog:r,...t}=e,a=s(r);return i(W,{...a,...t,modal:!0})};A.displayName=v;var H="AlertDialogTrigger",y=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(k,{...o,...a,ref:r})});y.displayName=H;var J="AlertDialogPortal",h=e=>{const{__scopeAlertDialog:r,...t}=e,a=s(r);return i(B,{...a,...t})};h.displayName=J;var K="AlertDialogOverlay",_=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(C,{...o,...a,ref:r})});_.displayName=K;var l="AlertDialogContent",[L,Q]=G(l),$=n((e,r)=>{const{__scopeAlertDialog:t,children:a,...o}=e,d=s(t),u=m(null),F=g(r,u),p=m(null);return i(Y,{contentName:l,titleName:b,docsSlug:"alert-dialog",children:i(L,{scope:t,cancelRef:p,children:i(E,{role:"alertdialog",...d,...o,ref:F,onOpenAutoFocus:z(o.onOpenAutoFocus,c=>{c.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[i(T,{children:a}),i(V,{contentRef:u})]})})})});$.displayName=l;var b="AlertDialogTitle",N=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(j,{...o,...a,ref:r})});N.displayName=b;var O="AlertDialogDescription",w=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(q,{...o,...a,ref:r})});w.displayName=O;var U="AlertDialogAction",R=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,o=s(t);return i(D,{...o,...a,ref:r})});R.displayName=U;var S="AlertDialogCancel",x=n((e,r)=>{const{__scopeAlertDialog:t,...a}=e,{cancelRef:o}=Q(S,t),d=s(t),u=g(r,o);return i(D,{...d,...a,ref:u})});x.displayName=S;var V=({contentRef:e})=>{const r=`\`${l}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${l}\` by passing a \`${O}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as U,l as g,T as v,W as N,w as A,S as E,U as I}from"./register-BVVRhrAp.js";import{s as w}from"./index-g2n1iIXU.js";import{o as p}from"./index-B76s2QkF.js";function P(n,e){return I((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=D(e),u=typeof t=="function"?t({present:r.isPresent}):U.only(t),s=w(r.ref,L(u));return typeof t=="function"||r.isPresent?g(u,{ref:s}):null};O.displayName="Presence";function D(n){const[e,t]=v(),r=N({}),u=N(n),s=N("none"),M=n?"mounted":"unmounted",[f,i]=P(M,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E(()=>{const o=l(r.current);s.current=f==="mounted"?o:"none"},[f]),p(()=>{const o=r.current,c=u.current;if(c!==n){const a=s.current,m=l(o);n?i("MOUNT"):m==="none"||o?.display==="none"?i("UNMOUNT"):i(c&&a!==m?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,i]),p(()=>{if(e){let o;const c=e.ownerDocument.defaultView??window,a=d=>{const T=l(r.current).includes(d.animationName);if(d.target===e&&T&&(i("ANIMATION_END"),!u.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",o=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},m=d=>{d.target===e&&(s.current=l(r.current))};return e.addEventListener("animationstart",m),e.addEventListener("animationcancel",a),e.addEventListener("animationend",a),()=>{c.clearTimeout(o),e.removeEventListener("animationstart",m),e.removeEventListener("animationcancel",a),e.removeEventListener("animationend",a)}}else i("ANIMATION_END")},[e,i]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:A(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return n?.animationName||"none"}function L(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}export{O as M};
|