import{At as e,J as t,Q as n,X as r,dt as i,jt as a,mt as o,pt as s,rt as c}from"#entry";import{t as l}from"./CoM7_Rk8.js";var u=[`type`,`disabled`],d={key:0,class:`loading loading-spinner`},f=Object.assign(l(c({__name:`Button`,props:{type:{default:`button`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},class:{}},emits:[`click`],setup(c){let l=c,f=t(()=>l.class||``),p=t(()=>f.value.includes(`btn-`));return(t,l)=>(i(),n(`button`,{type:c.type,class:a([`btn-press inline-flex items-center justify-center gap-2`,[e(p)&&`btn`,e(f),c.loading&&`btn-disabled cursor-wait`]]),disabled:c.disabled||c.loading,onClick:l[0]||=e=>t.$emit(`click`,e)},[c.loading?(i(),n(`div`,d)):c.icon?(i(),r(o(c.icon),{key:1})):s(t.$slots,`default`,{key:2},void 0,!0)],10,u))}}),[[`__scopeId`,`data-v-0e7be521`]]),{__name:`Button`});export{f as t};