import{V as P,a0 as M,Q as F,r as I,F as J,I as L,W as U,m as Q,$ as c,p as e,Z as n,N as g,ad as j,ao as R,u as E,o as H,aq as W,ar as Z}from"./common.modules-adc6b33e.js";import{g as z,I as G,a as K,_ as X}from"./page-activity-ActivityDetail-b9249b49.js";import{u as Y,I as x}from"./page-wallet-OtherPay-64aeb896.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";import"./page-activity-Championship-4cc13bf8.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const ee=v=>(W("data-v-a876fc5b"),v=v(),Z(),v),se={class:"RechargeUsdt__container"},te={class:"RechargeUsdt__container__content"},ae={class:"RechargeUsdt__container__content-qrCode"},oe=["src"],ne={class:"tip"},re=["src"],de={class:"RechargeUsdt__container__content-info"},ce={class:"label"},ie={class:"address"},le={class:"RechargeUsdt__container__content-info"},ue={class:"label"},_e={class:"address"},pe={class:"RechargeUsdt__container__content-info"},he={class:"label"},ve={class:"RechargeUsdt__container-popup__wrap"},me={class:"title"},ge={class:"tip"},fe={class:"list"},Ie={class:"item"},Ue=["src"],we=ee(()=>e("span",null,"Tron(TRC20)",-1)),be={class:"item"},Oe=P({__name:"index",setup(v){const w=M(),{t:C}=F(),b=I(!1),O=I(""),{store:a,submitUsdtRecharge:N,getLocalUsdtInfo:$,handlePaste:k,createQrCode:A,getUsdtOrderInfo:S,handleUpdateUsdtOrder:T}=Y(),i=I(""),o=I(null),D=s=>s.replace(/[\u4e00-\u9fa5\s]/g,"");J(async()=>{var l,r,u,_,d;if(await S(),!sessionStorage.getItem("usdtInfo")&&!a.isUsdtOrder)o.value=$.value,o.value&&sessionStorage.setItem("usdtInfo",JSON.stringify(o.value));else{let p=sessionStorage.getItem("usdtInfo"),h=JSON.parse(p||"{}");o.value=h}let s=((l=o.value)==null?void 0:l.coding)||((r=a.usdtOrderInfo)==null?void 0:r.rechargeAddress),t="";s&&(t=await A(((u=o.value)==null?void 0:u.coding)||((_=a.usdtOrderInfo)==null?void 0:_.rechargeAddress))),a.isUsdtOrder&&(i.value=(d=a.usdtOrderInfo)==null?void 0:d.transferOutAddress),O.value=t+""});const B=async()=>{var t,l,r,u,_,d,p,h;if(!i.value){E(C("enterUsdtAddress"));return}if(a.isUsdtOrder){let f={usdtId:(t=a.usdtOrderInfo)==null?void 0:t.usdtId,usdtType:(l=a.usdtOrderInfo)==null?void 0:l.usdtType,rechargeAddress:(r=a.usdtOrderInfo)==null?void 0:r.rechargeAddress,transferOutAddress:i.value,amount:Number((u=a.usdtOrderInfo)==null?void 0:u.amount),orderNo:(_=a.usdtOrderInfo)==null?void 0:_.orderNumber};await T(f);return}let s={usdtId:(d=o.value)==null?void 0:d.usdtID,amount:Number(w.currentRoute.value.query.amount),usdtType:(p=o.value)==null?void 0:p.usdtType,rechargeAddress:(h=o.value)==null?void 0:h.coding,transferOutAddress:i.value};await N(s)};L(()=>{sessionStorage.removeItem("usdtInfo")});const V=async()=>{i.value=await k()};function q(){w.go(-1)}return(s,t)=>{var d,p,h,f;const l=U("NavBar"),r=U("svg-icon"),u=U("van-field"),_=U("van-popup");return H(),Q("div",se,[c(l,{title:s.$t("rechargeUSDT"),placeholder:!1,"left-arrow":"",onClickLeft:q},null,8,["title"]),e("div",te,[e("div",ae,[e("img",{src:O.value,alt:""},null,8,oe),e("div",ne,n(s.$t("rechargeUsdtDesc1")),1),e("img",{src:g(z)("wallet","recharge_usdt"),alt:"",class:"usdt_bg"},null,8,re)]),e("div",de,[e("div",ce,[c(r,{name:"usdt4"}),e("span",null,n(s.$t("rechargeUsdtDesc2")),1)]),e("div",ie,[e("span",null,n(((d=o.value)==null?void 0:d.coding)||((p=g(a).usdtOrderInfo)==null?void 0:p.rechargeAddress)),1),c(r,{name:"copy",onClick:t[0]||(t[0]=m=>{var y;return g(G)((y=o.value)==null?void 0:y.coding)})})])]),e("div",le,[e("div",ue,[c(r,{name:"usdt4"}),e("span",null,n(s.$t("rechargeUsdtDesc3")),1)]),e("div",_e,[e("span",null,n(((h=o.value)==null?void 0:h.usdtName)||((f=g(a).usdtOrderInfo)==null?void 0:f.bankName)),1),j(` <img :src="getIcons('wallet/recharge', 'mainChain')" alt="" @click="showPicker = true" /> `)])]),e("div",pe,[e("div",he,[e("span",null,n(s.$t("transferAddress")),1)]),c(u,{modelValue:i.value,"onUpdate:modelValue":t[2]||(t[2]=m=>i.value=m),modelModifiers:{trim:!0},class:"address_input",placeholder:s.$t("enterUsdtAddress"),maxlength:40,formatter:D},{button:R(()=>[e("div",{class:"paste",onClick:t[1]||(t[1]=m=>V())},n(s.$t("paste")),1)]),_:1},8,["modelValue","placeholder"])]),c(x,{"show-type":19,isShowHead:!0}),e("div",{class:"RechargeUsdt__container-rechageBtn rechage_active",onClick:B},n(s.$t("finishRechargeUsdt")),1)]),c(_,{show:b.value,"onUpdate:show":t[3]||(t[3]=m=>b.value=m),round:"",position:"bottom"},{default:R(()=>[e("div",ve,[e("div",me,n(s.$t("rechargeUsdtDesc4")),1),e("div",ge,n(s.$t("rechargeUsdtDesc5")),1),e("div",fe,[e("div",Ie,[e("img",{src:g(K)("wallet/recharge","mainChain"),alt:""},null,8,Ue),we]),e("div",be,[c(r,{name:"usdt4",class:"icon"}),e("span",null,n(s.$t("rechargeUsdtDesc6")),1)])])])]),_:1},8,["show"])])}}});const Ae=X(Oe,[["__scopeId","data-v-a876fc5b"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/wallet/RechargeUsdt/index.vue"]]);export{Ae as default};
//# sourceMappingURL=page-wallet-RechargeUsdt-f1e62aa3.js.map
