System.register(["./use-route-legacy-WJQG9OQV.js","./index-legacy-Yo-NYFcD.js"],(function(n,i){"use strict";var e,o,l,t,a,r,s,c,d,u,g,p,b;return{setters:[n=>{e=n.r,o=n.u},n=>{l=n.k,t=n.a1,a=n.B,r=n.z,s=n.d,c=n.aQ,d=n.b,u=n.I,g=n.M,p=n.P,b=n.G}],execute:function(){const[i,f]=l("button"),y=t({},e,{tag:a("button"),text:String,icon:String,type:a("default"),size:a("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:a("button"),loadingSize:r,loadingText:String,loadingType:String,iconPosition:a("left")});var x=s({name:i,props:y,emits:["click"],setup(n,{emit:i,slots:e}){const l=o(),t=()=>n.loading?e.loading?e.loading():d(p,{size:n.loadingSize,type:n.loadingType,class:f("loading")},null):e.icon?d("div",{class:f("icon")},[e.icon()]):n.icon?d(u,{name:n.icon,class:f("icon"),classPrefix:n.iconPrefix},null):void 0,a=()=>{let i;if(i=n.loading?n.loadingText:e.default?e.default():n.text,i)return d("span",{class:f("text")},[i])},r=()=>{const{color:i,plain:e}=n;if(i){const n={color:e?i:"white"};return e||(n.background=i),i.includes("gradient")?n.border=0:n.borderColor=i,n}},s=e=>{n.loading?g(e):n.disabled||(i("click",e),l())};return()=>{const{tag:i,type:e,size:o,block:l,round:u,plain:g,square:p,loading:b,disabled:y,hairline:x,nativeType:B,iconPosition:S}=n,k=[f([e,o,{plain:g,block:l,round:u,square:p,loading:b,disabled:y,hairline:x}]),{[c]:x}];return d(i,{type:B,class:k,style:r(),disabled:y,onClick:s},{default:()=>[d("div",{class:f("content")},["left"===S&&t(),a(),"right"===S&&t()])]})}}});n("B",b(x))}}}));
