import{Cr as e,Nr as t,Pr as n,S as r,_r as i,gr as a,hr as o,jr as s,ni as c,pr as l,ti as u}from"./ChQ2IioC.js";var d=[`type`,`disabled`],f={key:0,class:`loading loading-sm loading-spinner`},p=e({__name:`Button`,props:{type:{default:`button`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},class:{}},emits:[`click`],setup(e){let r=e,p=l(()=>r.class||``),m=l(()=>p.value.includes(`btn-`));return(r,l)=>(s(),i(`button`,{type:e.type,class:c([`btn-press inline-flex items-center justify-center gap-2`,[u(m)&&`btn`,u(p),e.loading&&`btn-disabled cursor-wait`]]),disabled:e.disabled||e.loading,onClick:l[0]||=e=>r.$emit(`click`,e)},[e.loading?(s(),i(`span`,f)):a(``,!0),e.icon?(s(),o(n(e.icon),{key:1})):t(r.$slots,`default`,{key:2},void 0,!0)],10,d))}}),m=Object.assign(r(p,[[`__scopeId`,`data-v-9a155aa4`]]),{__name:`Button`});export{m as t};