import{N as P,B as T,a9 as w}from"./index.2e2ba873.js";var d=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t},D=function(t){return String},p=function(t){var n=t;return n.install=function(e){e.component(n.displayName||n.name,t)},t},q=function(t,n){return t.install=function(e){e.config.globalProperties[n]=t},t},G=function(t){throw new Error("[Vivid-ui:]"+t)},x="vui";d("small","middle","large");d("sm","md","lg");var C=function(t){switch(t){case"small":return"sm";case"middle":return"md";case"large":return"lg";default:return""}};d("start","end","center","between","around");function z(t,n){var e=typeof t=="number";return n?e:e&&!Number.isNaN(t)&&Number.isFinite(t)}var _=z,F=_;function V(t){return typeof t=="string"}var O=V,j=O,o=globalThis&&globalThis.__assign||function(){return o=Object.assign||function(t){for(var n,e=1,s=arguments.length;e<s;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)},A="button",r=x+"_"+A,E={type:String,size:String,text:[String,Number],block:Boolean,plain:Boolean,round:Boolean,disabled:Boolean,active:Boolean,activeBlue:Boolean,activePink:Boolean,activeShrink:Boolean,noTransition:Boolean,htmlType:String,onClick:{type:Function}},I=P({name:"VButton",inheritAttrs:!1,props:E,emits:["click"],setup:function(t,n){var e=n.slots,s=n.attrs,i=n.emit,f=T(function(){var a,u=t.type,c=t.size,l=t.plain,v=t.round,g=t.block,h=t.disabled,k=t.active,y=t.activeBlue,B=t.activePink,S=t.activeShrink,N=t.noTransition,m=C(c);return a={},a[r]=!0,a[r+"--"+u]=u,a[r+"--"+m]=m,a[r+"--plain"]=l,a[r+"--round"]=v,a[r+"--block"]=g,a[r+"--disabled"]=h,a[r+"--active"]=k,a[r+"--active-blue"]=y,a[r+"--active-pink"]=B,a[r+"--active-shrink"]=S,a[r+"--no-transition"]=N,a}),b=function(a){if(t.disabled){a.preventDefault();return}i("click",a)};return function(){var a,u=t.disabled,c=t.htmlType,l=t.text,v=o(o({},s),{disabled:u,class:[f.value,s.class],onClick:b});return w("button",o({},v,{type:c}),F(l)||j(l)?l:(a=e.default)===null||a===void 0?void 0:a.call(e))}}}),H=p(I);export{H as B,D as P,I as V,q as a,F as b,C as g,_ as i,G as t,x as v,p as w};
