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