"use strict";const s=require("react/jsx-runtime"),$=require("react"),e=require("../tools/tools.cjs"),C=function(v){const{active:d,as:t="button",btnClose:u,children:x,className:c,disabled:n,dropOldClass:b,endContent:m,isLoading:f,onRef:B,outline:o,rounded:a,show:y,size:r,startContent:l,style:h,type:j="button",variables:p,variant:i,...N}=v,R=$.useMemo(()=>{const g=e.classx(!b&&e.findTruthyClass(["btn-close",u],["btn",!0]),d&&"active",y&&"show",i&&`btn-${i}`,o&&`btn-outline-${o}`,r&&`btn-${r}`,t==="a"&&n&&"disabled",a&&e.resolveRoundedClass(a),c),q=e.stylex((K,L)=>({tKey:e.convertBsKeyToVar(L)}),p,h);return{className:g,disabled:n&&t==="button",style:q}},[t,d,u,c,n,b,o,a,y,r,h,p,i]);return s.jsxs(t,{type:j,...N,...R,ref:B,children:[f&&!l&&s.jsxs(s.Fragment,{children:[s.jsx("span",{"aria-hidden":"true",className:"spinner-border spinner-border-sm me-1"}),s.jsx("span",{className:"visually-hidden",role:"status",children:"Loading..."})]}),l&&l,x,m&&m]})};C.displayName="BRL.Button";exports.Button=C;
//# sourceMappingURL=button.cjs.map
