import{Fr as e,Ir as t,Nr as n,S as r,Tr as i,_r as a,hr as o,ii as s,ri as c,vr as l,yr as u}from"./KXnyWfWg.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(r){let i=r,p=o(()=>i.class||``),m=o(()=>p.value.includes(`btn-`));return(i,o)=>(n(),u(`button`,{type:r.type,class:s([`btn-press inline-flex items-center justify-center gap-2`,[c(m)&&`btn`,c(p),r.loading&&`btn-disabled cursor-wait`]]),disabled:r.disabled||r.loading,onClick:o[0]||=e=>i.$emit(`click`,e)},[r.loading?(n(),u(`span`,f)):l(``,!0),r.icon?(n(),a(t(r.icon),{key:1})):e(i.$slots,`default`,{key:2},void 0,!0)],10,d))}}),m=Object.assign(r(p,[[`__scopeId`,`data-v-9a155aa4`]]),{__name:`Button`});export{m as t};