import{Cn as e,Dn as t,En as n,Hn as r,Nn as i,Tn as a,Vn as o,ar as s,n as c,or as l,zn as u}from"./B-6m3w3Q.js";var d=[`type`,`disabled`],f={key:0,class:`loading loading-sm loading-spinner`},p=i({__name:`Button`,props:{type:{default:`button`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{},class:{}},emits:[`click`],setup(i){let c=i,p=e(()=>c.class||``),m=e(()=>p.value.includes(`btn-`));return(e,c)=>(u(),t(`button`,{type:i.type,class:l([`btn-press inline-flex items-center justify-center gap-2`,[s(m)&&`btn`,s(p),i.loading&&`btn-disabled cursor-wait`]]),disabled:i.disabled||i.loading,onClick:c[0]||=t=>e.$emit(`click`,t)},[i.loading?(u(),t(`span`,f)):n(``,!0),i.icon?(u(),a(r(i.icon),{key:1})):o(e.$slots,`default`,{},void 0,!0,2)],10,d))}}),m=Object.assign(c(p,[[`__scopeId`,`data-v-9a155aa4`]]),{__name:`Button`});export{m as t};