import{d as a,c as e,O as i,P as d,o as s,x as l,a$ as r}from"./index-BXlk60bP.js";import{n as t,a1 as p}from"./common-vYHpopNV.js";const c=["disabled"],u={key:0,class:"btn-icon"},m={key:0,class:"i-eos-icons:loading"},y={key:1,class:"i-eos-icons:loading mx-auto"},k={key:2},B=a({__name:"Button",props:{type:{},disabled:{type:Boolean},text:{},icon:{},loading:{type:Boolean},to:{},round:{type:Boolean}},emits:["click"],setup(b){return(o,n)=>(s(),e("button",{class:t(`btn btn-${o.type} ${o.round&&"is-rounded"}`),disabled:o.disabled,onClick:n[0]||(n[0]=f=>{o.$emit("click"),o.to&&o.$router.push(o.to)})},[o.icon?(s(),e("div",u,[o.loading?(s(),e("div",m)):(s(),e("div",{key:1,class:t(o.icon)},null,2))])):i("",!0),o.loading&&!o.icon?(s(),e("div",y)):(s(),e("p",k,[d(o.$slots,"default",{},()=>[l("span",null,p(o.text),1)],!0)]))],10,c))}}),$=r(B,[["__scopeId","data-v-632e8895"]]);export{$ as B};
