import{Ai as e,Mi as t,Ni as n,Xi as r,Zi as i,_i as a,gi as o,mi as s,n as c,vi as l,wi as u}from"./CzLxtfx3.js";var d=[`type`,`disabled`],f={key:0,class:`loading loading-sm loading-spinner`},p=u({__name:`Button`,props:{type:{default:`button`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},class:{}},emits:[`click`],setup(c){let u=c,p=s(()=>u.class||``),m=s(()=>p.value.includes(`btn-`));return(s,u)=>(e(),l(`button`,{type:c.type,class:i([`btn-press inline-flex items-center justify-center gap-2`,[r(m)&&`btn`,r(p),c.loading&&`btn-disabled cursor-wait`]]),disabled:c.disabled||c.loading,onClick:u[0]||=e=>s.$emit(`click`,e)},[c.loading?(e(),l(`span`,f)):a(``,!0),c.icon?(e(),o(n(c.icon),{key:1})):t(s.$slots,`default`,{key:2},void 0,!0)],10,d))}}),m=Object.assign(c(p,[[`__scopeId`,`data-v-9a155aa4`]]),{__name:`Button`});export{m as t};