System.register(["./vendor-legacy-aeda4e3d.js","./index-legacy-9fc2ee5c.js"],function(e,a){"use strict";var t,r,n,i,d,o,l,s,m,c,u,g,v,f,p,h,b,w,_,x,y,k,C,R;return{setters:[e=>{t=e.d,r=e.l,n=e.c,i=e.o,d=e.a,o=e.f,l=e.u,s=e.g,m=e.t,c=e.w,u=e.h,g=e.e,v=e.an,f=e.ax,p=e.ay,h=e.I,b=e.m,w=e.az},e=>{_=e._,x=e.q,y=e.w,k=e.e,C=e.am,R=e.f}],execute:function(){var I=document.createElement("style");I.textContent="*[data-v-0d72859c]{color:var(--ex-default-font-color);font-size:.373333rem}[data-v-0d72859c] .nav--bar{background:var(--ex-login-tab-background-color)!important}[data-v-0d72859c] .nav--bar .nav--bar--text{position:absolute;left:1.333333rem;top:0}.bg[data-v-0d72859c]{background:var(--ex-login-tab-background-color)!important}.form[data-v-0d72859c]{min-height:100vh;background:var(--ex-login-tab-background-color)!important;border-radius:.4rem .4rem 0px 0px;overflow:hidden;padding:0 .4rem .4rem}.form .img[data-v-0d72859c]{margin-left:.266667rem;width:.666667rem;min-width:.666667rem;height:.666667rem;margin-right:.453333rem}.form .tit[data-v-0d72859c]{width:100%;font-size:.426667rem;font-family:ArialMT;line-height:.48rem}.form .form-item .label[data-v-0d72859c]{font-size:.373333rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;line-height:.533333rem;margin:.533333rem auto .266667rem;padding-left:.266667rem}.form .form-item .input[data-v-0d72859c]{position:relative;background:var(--ex-login-tab-background-color)!important;border-radius:.106667rem;height:1.066667rem;display:flex;align-items:center;padding-right:.266667rem}.form .form-item .input .coin[data-v-0d72859c]{width:.666667rem;height:.666667rem;margin:0 .266667rem}.form .form-item .input .input-field[data-v-0d72859c]{width:100%;line-height:1.066667rem;height:1.066667rem;padding:0;background:transparent}.form .form-item .input .input-field[data-v-0d72859c] .van-field__control{padding-left:.266667rem}.form .form-item .input .tip[data-v-0d72859c]{min-width:1.066667rem;text-align:right;font-size:.373333rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:var(--primary-color);line-height:1.066667rem}.form .submit[data-v-0d72859c]{margin:1.333333rem auto .8rem;background:var(--ex-div-bgColor1);color:var(--ex-font-color);border:none}\n",document.head.appendChild(I);const S=""+new URL("../resource/images/defi/ERC.png",a.meta.url).href,T=""+new URL("../resource/images/defi/TRC.png",a.meta.url).href,z={class:"bg"},P={class:"form"},U={class:"form-item"},E={class:"label"},F=["src"],L={class:"tit"},V={class:"tip"},j={class:"form-item"},N={class:"label"},q={class:"input"};e("default",_({__name:"add-address",setup(e){const{_toast:a}=x(),_=t(),I=r(!1),A=r(0),H=n(()=>1==A.value?T:S),M=r({type:"ETH",address:""}),B=r(!1),D=r([{name:"ERC"},{name:"TRC"}]),G=(e,a)=>{A.value=a,M.value.type=e.name,I.value=!1},J=()=>{I.value=!0},K=async()=>{M.value.address=await navigator.clipboard.readText()},O=()=>{if(!M.value.address)return a("wallet_address_cannot_be_empty");B.value=!0;const e=k(),{userInfo:t}=v(e);C({type:M.value.type,address:M.value.address.toLocaleLowerCase(),userId:t.value.user?.userId}).then(async t=>{a("set_success"),M.value.address="",setTimeout(()=>{_.back(),e.getUserInfo()},1500)}).finally(()=>{B.value=!1})};return(e,a)=>{const t=w,r=f,n=p,v=h;return i(),d("div",z,[o(y,{currentName:l(R)("bind_address"),border_bottom:!0},null,8,["currentName"]),s("div",P,[s("div",U,[s("div",E,m(l(R)("please_select_a_chain")),1),s("div",{class:"input",onClick:J},[s("img",{src:H.value,class:"coin"},null,8,F),s("div",L,m(M.value.type),1),s("div",V,[o(t,{name:"arrow-down"})])])]),s("div",j,[s("div",N,m(l(R)("withdrawal_Please_enter_address")),1),s("div",q,[o(r,{class:"input-field",type:"textarea",modelValue:M.value.address,"onUpdate:modelValue":a[0]||(a[0]=e=>M.value.address=e),placeholder:l(R)("exchange.input")},null,8,["modelValue","placeholder"]),s("div",{class:"tip",onClick:K},m(l(R)("pasta")),1)])]),o(n,{block:"",class:"submit",loading:B.value,onClick:O},{default:c(()=>[b(m(l(R)("confirm")),1)]),_:1},8,["loading"])]),D.value.length?(i(),u(v,{key:0,show:I.value,"onUpdate:show":a[1]||(a[1]=e=>I.value=e),actions:D.value,onSelect:G,"cancel-text":l(R)("cancel")},null,8,["show","actions","cancel-text"])):g("",!0)])}}},[["__scopeId","data-v-0d72859c"]]))}}});
