"use strict";const d=require("./mergeProps-DD8aR8go.cjs.js"),C=require("./filterDOMProps-AbzzCIX-.cjs.js"),D=require("./usePress-Dh8t0tPF.cjs.js"),F=require("./useFocusable-HmbZyg7l.cjs.js");function T(e,t){let{elementType:r="button",isDisabled:a,onPress:i,onPressStart:c,onPressEnd:l,onPressUp:f,onPressChange:u,preventFocusOnPress:b,allowFocusWhenDisabled:P,onClick:$,href:m,target:p,rel:h,type:o="button"}=e,s;r==="button"?s={type:o,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:s={role:"button",href:r==="a"&&!a?m:void 0,target:r==="a"?p:void 0,type:r==="input"?o:void 0,disabled:r==="input"?a:void 0,"aria-disabled":!a||r==="input"?void 0:a,rel:r==="a"?h:void 0};let{pressProps:x,isPressed:g}=D.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:c,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:f,onClick:$,isDisabled:a,preventFocusOnPress:b,ref:t}),{focusableProps:n}=F.$f645667febf57a63$export$4c014de7c8940b4c(e,t);P&&(n.tabIndex=a?-1:n.tabIndex);let y=d.$3ef42575df84b30b$export$9d1611c77c2fe928(n,x,C.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}));return{isPressed:g,buttonProps:d.$3ef42575df84b30b$export$9d1611c77c2fe928(s,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}exports.$701a24aa0da5b062$export$ea18c227d4417cc3=T;
//# sourceMappingURL=useButton-Dp2NwAPA.cjs.js.map
