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