"use strict";const x=require("react/jsx-runtime"),R=require("react"),i=require("./Button-DLCecw8f.cjs.js"),q=require("./utils-DVb3jcp5.cjs.js"),d=require("@chakra-ui/react"),m=require("./toggle-button-group.recipe-COF-yHYR.cjs.js"),P=require("./emotion-is-prop-valid.esm-ux_11lix.cjs.js"),B=require("./index-CVXB9mwf.cjs.js"),g=require("./useObjectRef-4v2MxSjQ.cjs.js"),h=require("./mergeProps-CxnHrnow.cjs.js"),y=require("./useButton-BwsmYrml.cjs.js"),{withContext:C}=d.createRecipeContext({recipe:m.buttonRecipe}),j=C("button",{defaultProps:{type:"button"},shouldForwardProp(e,o){const t=!o?.includes(e)&&!B.system.isValidProperty(e);return P.isPropValid(e)&&t&&!e.includes("onPress")}}),a=e=>{const{ref:o,as:t,asChild:n,children:u,...b}=e,f=R.useRef(null),l=g.$df56164dff5785e2$export$4338b53315abf666(d.mergeRefs(f,o)),[s,c]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(b,l,i.$d2b4bc8c273e7be6$export$24d547caef80ccd1),$=t||(n?"a":"button"),{buttonProps:p}=y.$701a24aa0da5b062$export$ea18c227d4417cc3({...s,elementType:$},c),r=h.$3ef42575df84b30b$export$9d1611c77c2fe928(s,p,{as:t,asChild:n,slot:s.slot||void 0});return x.jsx(j,{ref:c,...r,"aria-disabled":r.isDisabled||void 0,"data-disabled":r.isDisabled||void 0,children:u})};a.displayName="Button";const v=Object.assign(a,{Context:i.$d2b4bc8c273e7be6$export$24d547caef80ccd1});exports.Button=v;
//# sourceMappingURL=button-BR4fvcmi.cjs.js.map
