import{J as e,K as t,Ot as n,X as r,dt as i,ft as a,kt as o,lt as s,tt as c}from"./BOiFqXHJ.js";var l=[`type`,`disabled`],u={key:0,class:`loading loading-spinner`},d=c({__name:`Button`,props:{type:{default:`button`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},class:{}},emits:[`click`],setup(c){let d=c,f=t(()=>d.class||``),p=t(()=>f.value.includes(`btn-`));return(t,d)=>(s(),r(`button`,{type:c.type,class:o([n(p)&&`btn`,c.loading?`btn-disabled`:n(f)]),disabled:c.disabled||c.loading,onClick:d[0]||=e=>t.$emit(`click`,e)},[c.loading?(s(),r(`div`,u)):c.icon?(s(),e(a(c.icon),{key:1})):i(t.$slots,`default`,{key:2})],10,l))}}),f=Object.assign(d,{__name:`Button`});export{f as t};