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