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