import{d as p,as as n,ad as f,o as t,g as a,B as u,m,a as I,bM as k,V as b,h as c,O as g,D as _,U as y,H as C}from"./index-BP6bNRoi.js";const x=C(p({name:"XButton",__name:"XButton",props:{modelValue:n.bool.def(!1),loading:n.bool.def(!1),preIcon:n.string.def(""),postIcon:n.string.def(""),title:n.string.def(""),type:n.oneOf(["","primary","success","warning","danger","info"]).def(""),link:n.bool.def(!1),circle:n.bool.def(!1),round:n.bool.def(!1),plain:n.bool.def(!1),onClick:{type:Function,default:null}},setup(o){const i=o,r=f(()=>{const l=["title","preIcon","postIcon","onClick"],s={...k(),...i};for(const e in s)l.indexOf(e)!==-1&&delete s[e];return s});return(l,s)=>{const e=y,d=b;return t(),a(d,m(I(r),{onClick:o.onClick}),{default:u(()=>[o.preIcon?(t(),a(e,{key:0,icon:o.preIcon,class:"mr-1px"},null,8,["icon"])):c("",!0),g(" "+_(o.title?o.title:"")+" ",1),o.postIcon?(t(),a(e,{key:1,icon:o.postIcon,class:"mr-1px"},null,8,["icon"])):c("",!0)]),_:1},16,["onClick"])}}}),[["__scopeId","data-v-9ff26ce2"]]);export{x as _};