"use strict";const q=require("./utils-DVb3jcp5.cjs.js"),B=require("./ProgressBar-BnIWveAr.cjs.js"),y=require("./LiveAnnouncer-BkrEjKY8.cjs.js"),H=require("./Hidden-CNJIJ63M.cjs.js"),u=require("./mergeProps-CxnHrnow.cjs.js"),V=require("./filterDOMProps-WUskt27c.cjs.js"),c=require("react"),p=require("./useButton-BwsmYrml.cjs.js"),C=require("./useFocusRing-B7_ogYbr.cjs.js"),E=require("./useHover-xrdh1GG9.cjs.js"),D=c.createContext({}),I=H.$f39a9eba43920ace$export$86427a43e3e48ebb(function(d,t){[d,t]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(d,t,D);let l=d,{isPending:e}=l,{buttonProps:s,isPressed:F}=p.$701a24aa0da5b062$export$ea18c227d4417cc3(d,t);s=R(s,e);let{focusProps:h,isFocused:r,isFocusVisible:f}=C.$f7dceffc5ad7768b$export$4e328f61c538687f(d),{hoverProps:m,isHovered:$}=E.$6179b936705e76d3$export$ae780daf29e6d456({...d,isDisabled:d.isDisabled||e}),P={isHovered:$,isPressed:(l.isPressed||F)&&!e,isFocused:r,isFocusVisible:f,isDisabled:d.isDisabled||!1,isPending:e??!1},x=q.$64fa3d84918910a7$export$4d86445c2cf5e3({...d,values:P,defaultClassName:"react-aria-Button"}),n=u.$bdb11010cef70236$export$f680877a34711e37(s.id),b=u.$bdb11010cef70236$export$f680877a34711e37(),i=s["aria-labelledby"];e&&(i?i=`${i} ${b}`:s["aria-label"]&&(i=`${n} ${b}`));let o=c.useRef(e);c.useEffect(()=>{let g={"aria-labelledby":i||n};(!o.current&&r&&e||o.current&&r&&!e)&&y.$319e236875307eab$export$a9b970dcc4ae71a9(g,"assertive"),o.current=e},[e,r,i,n]);let v=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(d,{global:!0});return delete v.onClick,c.createElement("button",{...u.$3ef42575df84b30b$export$9d1611c77c2fe928(v,x,s,h,m),type:s.type==="submit"&&e?"button":s.type,id:n,ref:t,"aria-labelledby":i,slot:d.slot||void 0,"aria-disabled":e?"true":s["aria-disabled"],"data-disabled":d.isDisabled||void 0,"data-pressed":P.isPressed||void 0,"data-hovered":$||void 0,"data-focused":r||void 0,"data-pending":e||void 0,"data-focus-visible":f||void 0},c.createElement(B.$0393f8ab869a0f1a$export$e9f3bf65a26ce129.Provider,{value:{id:b}},x.children))});function R(a,d){if(d){for(const t in a)t.startsWith("on")&&!(t.includes("Focus")||t.includes("Blur"))&&(a[t]=void 0);a.href=void 0,a.target=void 0}return a}exports.$d2b4bc8c273e7be6$export$24d547caef80ccd1=D;exports.$d2b4bc8c273e7be6$export$353f5b6fc5456de1=I;
//# sourceMappingURL=Button-DLCecw8f.cjs.js.map
