import{_ as f}from"./ProBadge.vue_vue_type_style_index_0_lang-DqDXUf8-.js";import{d as C,f as s,i as t,t as n,x as m,k as y}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as h,u as e}from"./vendor-vue-reactivity-CheHbvBM.js";import{a,t as b}from"./vendor-vue-shared-DrzsEcag.js";const D=["href"],V=C({__name:"Button",props:{type:{},icon:{},iconPosition:{},text:{},onClick:{type:Function},disabled:{type:Boolean},isDemo:{type:Boolean},isLink:{type:Boolean},href:{}},setup(d){const _=d,{type:c,text:r,onClick:u,icon:o,iconPosition:i,isDemo:p,href:B}=h(_),k=()=>{u.value&&u.value()};return(l,v)=>l.isLink?(t(),s("a",{key:1,class:a(["ccb-button ccb-button--link",e(c),{disable:l.disabled}]),onClick:k,href:e(B)},[e(o)&&e(i)==="before"?(t(),s("i",{key:0,class:a(e(o))},null,2)):n("",!0),m("span",null,b(e(r)),1),e(o)&&e(i)==="after"?(t(),s("i",{key:1,class:a(e(o))},null,2)):n("",!0),e(p)?(t(),y(f,{key:2})):n("",!0)],10,D)):(t(),s("button",{key:0,class:a(["ccb-button",e(c),{disable:l.disabled}]),onClick:k},[e(o)&&e(i)==="before"?(t(),s("i",{key:0,class:a(e(o))},null,2)):n("",!0),m("span",null,b(e(r)),1),e(o)&&e(i)==="after"?(t(),s("i",{key:1,class:a(e(o))},null,2)):n("",!0),e(p)?(t(),y(f,{key:2})):n("",!0)],2))}});export{V as _};
//# sourceMappingURL=Button.vue_vue_type_style_index_0_lang-CxqKrtR4.js.map
