PageSourceSearch

https://member.ufabet888.foo/assets/1789559418326/Cg70kQSp.js

js ufabet888.foo collected 2026-10-06 13:17:25 UTC 32,389 bytes, 1 lines download raw bytes

1import{_ as Se}from"./CivJAmq1.js";import{U as qe,S as rt,a as lt,_ as dt,b as ct,C as ut,c as ht,d as pt}from"./CoMNr7fZ.js";import{_ as Ge}from"./B48F4MML.js";import{d as Z,l as le,G as w,f as l,a,b as t,h as e,F as J,I as ye,t as n,r as C,o as be,g as h,B as _e,J as Ie,v as ge,S as H,R as Pe,n as Fe,ag as E,K as ne,at as Ue,c as I,e as f,a9 as ie,w as G,D as re,X as De,P as xe,_ as Ke,M as ze,aI as wt,u as mt,ak as fe,H as vt,an as ft,s as _t,aR as Ne,aS as je}from"./zGN25SIG.js";import{_ as Le}from"./Dzg3GZNq.js";import{W as ae,C as q}from"./DxzWTJS2.js";import{_ as Ye}from"./BIeAkPFK.js";import{u as xt}from"./BlXiFU5_.js";import{u as ke}from"./Bwo9GFhf.js";import{v as He}from"./BKT09osN.js";import{_ as yt}from"./CTTOQ1fF.js";import{l as Be}from"./CMaRbl9n.js";import{_ as bt}from"./DC164Om_.js";import{u as gt}from"./BHWtWJQs.js";import{_ as kt}from"./DFHIlB1z.js";import"./B2vOb_tO.js";import"./BU9yJp2H.js";const Ct={class:"px-4 py-3"},$t=["innerHTML"],At={class:"flex flex-col gap-2"},Mt=["innerHTML"],Wt={class:"mt-3 text-[11px] text-red-400/80 text-center"},Bt=Z({__name:"WithdrawConditionRead",setup(Q){const{t:s}=le(),u=w(()=>[{text:s("withdrawRead.condition1")},{text:s("withdrawRead.condition2")},{text:s("withdrawRead.condition3")}]);return(_,d)=>(a(),l("div",Ct,[t("div",{class:"text-[10px] text-white/35 uppercase tracking-[0.5px] mb-3",innerHTML:e(s)("withdrawRead.title")},null,8,$t),d[1]||(d[1]=t("div",{class:"w-4/5 h-px bg-[#b38c47]/40 mb-3"},null,-1)),t("div",At,[(a(!0),l(J,null,ye(e(u),(y,m)=>(a(),l("div",{key:m,class:"flex gap-2.5 items-start"},[d[0]||(d[0]=t("div",{class:"w-5 h-5 rounded-full bg-[#E3BB72]/12 flex items-center justify-center flex-shrink-0 mt-0.5"},[t("span",{class:"text-[11px] text-[#E3BB72]"},"●")],-1)),t("span",{class:"text-[12px] text-white/70 leading-snug",innerHTML:y.text},null,8,Mt)]))),128))]),t("div",Wt,n(e(s)("info.tcAboutSlowWithdraw")),1)]))}}),Tt=Object.assign(Bt,{__name:"WithdrawConditionRead"}),Rt={key:0},Dt={class:"bg-[#1c1c1e] border border-white/5 rounded-[14px] p-4"},Lt={class:"text-[10px] text-white/40 uppercase tracking-wider mb-3"},St={class:"density-content"},It={class:"text-content"},Pt={class:"text-xs text-[#D9D9D9]"},Ft={class:"gauge-meter-container"},Ot={viewBox:"0 0 200 120",class:"gauge-svg"},Vt=["d"],Et=["d","stroke"],Ut=["x2","y2"],Nt=180,oe=70,Te=100,Re=100,jt=Z({__name:"WithdrawalDensityDisplay",setup(Q){const{t:s}=le(),u=C(null),_=i=>Nt-i/100*180,d=i=>{const $=i*Math.PI/180;return{x:Te+oe*Math.cos($),y:Re-oe*Math.sin($)}},y=(i,$)=>{const T=_(i),S=_($),x=d(T),O=d(S),R=Math.abs(S-T)>180?1:0;return`M ${x.x} ${x.y} A ${oe} ${oe} 0 ${R} 1 ${O.x} ${O.y}`},m=w(()=>y(0,100)),v=w(()=>{if(!u.value)return[];const i=u.value.densityPercentage;return[{path:y(0,20),color:"#4CAF50",active:i>=0&&i<20},{path:y(20,40),color:"#8BC34A",active:i>=20&&i<40},{path:y(40,60),color:"#FFA726",active:i>=40&&i<60},{path:y(60,80),color:"#FF7043",active:i>=60&&i<80},{path:y(80,100),color:"#EF5350",active:i>=80&&i<=100}]}),W=w(()=>{if(!u.value)return Te;const i=_(u.value.densityPercentage);return Te+oe*Math.cos(i*Math.PI/180)}),P=w(()=>{if(!u.value)return Re;const i=_(u.value.densityPercentage);return Re-oe*Math.sin(i*Math.PI/180)}),U=w(()=>{if(!u.value)return"";const i=u.value.status.toLowerCase();return{"text-[#4CAF50]":i==="very-low","text-[#8BC34A]":i==="low","text-[#FFA726]":i==="medium","text-[#FF7043]":i==="high","text-[#EF5350]":i==="very-high"}}),b=w(()=>{if(!u.value)return"";const i=u.value.status.toLowerCase();return{"very-low":s("info.withdrawalDensityLevelVeryLow"),low:s("info.withdrawalDensityLevelLow"),medium:s("info.withdrawalDensityLevelMedium"),high:s("info.withdrawalDensityLevelHigh"),"very-high":s("info.withdrawalDensityLevelVeryHigh")}[i]||i}),L=w(()=>{if(!u.value)return"";switch(u.value.status.toLowerCase()){case"very-low":return s("info.withdrawalDensityVeryLow");case"low":return s("info.withdrawalDensityLow");case"medium":return s("info.withdrawalDensityMedium");case"high":return s("info.withdrawalDensityHigh");case"very-high":return s("info.withdrawalDensityVeryHigh");default:return""}});async function B(){try{const i=await Ie.getWithdrawDensity({showLoading:!1});i.succ&&i.data&&(u.value=i.data)}catch{}}return be(()=>{B()}),(i,$)=>e(u)?(a(),l("div",Rt,[t("div",Dt,[t("div",Lt,n(e(s)("info.withdrawalDensity")),1),t("div",St,[t("div",It,[t("div",{class:_e(["text-sm font-semibold mb-2",e(U)])},n(e(b)),3),t("div",Pt,n(e(L)),1)]),t("div",Ft,[(a(),l("svg",Ot,[t("path",{d:e(m),fill:"none",stroke:"rgba(255, 255, 255, 0.1)","stroke-width":"12","stroke-linecap":"round"},null,8,Vt),(a(!0),l(J,null,ye(e(v),(T,S)=>(a(),l("path",{key:S,d:T.path,fill:"none",stroke:T.color,"stroke-width":"12","stroke-linecap":"round",class:_e({"active-segment":T.active})},null,10,Et))),128)),t("line",{x1:100,y1:100,x2:e(W),y2:e(P),stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round"},null,8,Ut),$[0]||($[0]=t("circle",{cx:"100",cy:"100",r:"4",fill:"#ffffff"},null,-1))]))])])])])):h("",!0)}}),Oe=Object.assign(ge(jt,[["__scopeId","data-v-833264a6"]]),{__name:"WithdrawalDensityDisplay"}),Ht={class:"withdraw-method-selector-container mx-5 mt-4"},qt={class:"text-[11px] font-medium uppercase tracking-wider text-white/40 ml-4 mb-1.5"},Gt={class:"flex p-1 bg-[#2e2e2e] rounded-xl border border-white/5 shadow-inner"},Kt=["onClick"],zt=["src"],Yt={class:"text-sm font-bold whitespace-nowrap"},Xt=Z({__name:"WithdrawMethodSelector",props:{availableMethods:{},selectedMethod:{}},emits:["update:selectedMethod"],setup(Q){const{t:s}=le(),u=d=>d===ae.BANK_TRANSFER?s("withdrawalMethod.bankTransfer"):d===ae.CRYPTO?s("withdrawalMethod.crypto"):d,_=d=>d===ae.BANK_TRANSFER?"/images/menu/icn-menu-bank-on.svg":d===ae.CRYPTO?"/images/deposit/icn-crypto-transfer.svg":"/images/crypto/DEFAULT.svg";return(d,y)=>(a(),l("div",Ht,[t("div",qt,n(e(s)("input.withdrawToChannel")),1),t("div",Gt,[(a(!0),l(J,null,ye(d.availableMethods,m=>(a(),l("button",{key:m,class:_e(["flex-1 flex items-center justify-center gap-2 py-3 px-2 rounded-lg transition-all duration-300 relative group",d.selectedMethod===m?"bg-gradient-to-r from-[#eec276] to-[#efd0a0] text-black shadow-lg":"text-[#D9D9D9] hover:bg-white/5"]),onClick:v=>d.$emit("update:selectedMethod",m)},[t("img",{src:_(m),class:_e(["w-5 h-5 transition-transform duration-300",{"brightness-0":d.selectedMethod===m,"group-hover:scale-110":!0}]),alt:""},null,10,zt),t("span",Yt,n(u(m)),1)],10,Kt))),128))])]))}}),Xe=Object.assign(ge(Xt,[["__scopeId","data-v-d2bd9434"]]),{__name:"WithdrawMethodSelector"}),Jt={class:"px-5 pt-4 space-y-4"},Zt={key:0},Qt={class:"text-[11px] font-medium uppercase tracking-wider text-white/40 ml-4 mb-1.5"},es={class:"px-4 py-3"},ts={class:"flex justify-between items-center text-[11px] text-white/40 px-1 mt-2"},ss={key:0,class:"flex items-center gap-1.5 mt-2 px-1"},ns={class:"text-[11px] text-amber-400"},as={class:"flex items-center gap-3 py-1"},os={class:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/[0.06] border border-white/[0.10]"},is={class:"text-[11px] font-medium text-white/50"},rs={class:"flex items-center gap-3 py-1"},ls={class:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/[0.06] border border-white/[0.10]"},ds={class:"text-[11px] font-medium text-white/50"},cs={class:"bg-[#1c1c1e] border border-white/[0.06] rounded-xl overflow-hidden"},us={class:"px-4 py-3 flex justify-between items-center"},hs={class:"text-[12px] text-white/40"},ps={class:"text-[15px] font-semibold text-white/90"},ws={class:"border-t border-white/5 px-4 py-3 flex justify-between items-center"},ms={class:"text-[12px] text-white/40"},vs={class:"text-[15px] font-bold text-[#E3BB72]"},fs={key:0,class:"border-t border-white/5 px-4 py-3 flex justify-between items-center"},_s={class:"text-[12px] text-white/40"},xs={class:"text-[13px] font-medium text-white/70"},ys={key:1,class:"text-[11px] text-white/40 text-center"},bs=Z({__name:"FiatWithdraw",props:{availableMethods:{default:()=>[]},selectedMethod:{}},emits:["update:selectedMethod"],setup(Q){const{t:s,te:u}=le(),_=C(!1),d=C(""),y=C(!1),m=C("success"),v=w({get:()=>A.amountByCurrency[x.value]??0,set:p=>A.setWithdrawAmount(x.value,p)}),W=w(()=>O.value?v.value*O.value:v.value),P=C(""),U=C(""),b=C(s("btn.OK")),L=Pe(),{enableWithdraw:B,disableWithdrawMessage:i}=H(L),$=Fe(),{isRefreshingCredit:T,activeCurrencyWithdrawableBalance:S,activeCurrency:x,currencyDisplayMultiplierProxy:O,currencyDisplayProxy:R,isMultiCurrencyWallet:ee}=H($),K=xt(),{isRefreshing:Ce,activeBankAccount:k}=H(K),A=ke(),{isHaveOnGoingWithdrawal:F,onGoingWithdrawRequest:Ve,withdrawRequestMaximumAmount:de,withdrawRequestMinimumAmount:z}=H(A),ce=w(()=>{const p=`currency.${x.value?.toLowerCase()}.shortName`;return u(p)?s(p):x.value?.toUpperCase()??""}),g=w(()=>{const p=W.value;if(!p||p<=0)return"";const c=ce.value;if(p>S.value)return s("info.withdrawableBalance")+": "+E(S.value)+" "+c;const M=z.value,j=de.value;return M>0&&p<M?s("minimum")+": "+E(M)+" "+c:j>0&&p>j?s("maximum")+": "+E(j)+" "+c:""}),te=C("");ne(g,Ue(p=>{te.value=p},600)),ne(()=>x.value,()=>{x.value&&(A.clearWithdrawAmount(x.value),A.getWithdrawConfig())});function D(){d.value="",y.value=!1,A.clearWithdrawAmount(x.value)}let N=null;function pe(){_.value||(_.value=!0,$e())}const $e=Ue(async()=>{try{d.value="";const p=W.value;if(isNaN(p)||p<=0){d.value=s("error.enterWithdrawAmount");return}const c=await Ie.createFiatWithdrawal(String(k.value.bankId),W.value,String(x.value),N,!1);c.succ?(m.value="success",P.value=s("info.succ"),U.value=s("info.withdrawalIsProcessing"),b.value=s("btn.OK"),y.value=!0,await A.getOnGoing(),A.onGoingWithdrawRequest&&(N=He())):d.value=c.msg?c.msg:s("info.failedWithdrawal")}catch{}finally{_.value=!1}},1e3,{maxWait:5e3}),we=w(()=>{const p=z.value,c=de.value;let M=[];return p>0&&M.push(s("minimum")+" "+E(p)),c>0&&M.push(s("maximum")+" "+E(c)),M.join(" / ")}),Ae=w(()=>{const p=z.value,c=de.value;let M=W.value,j=M<=S.value,Y=!0;return p>=0&&c>=0?Y=M>=p&&M<=c:p>=0?Y=M>=p:c>=0&&(Y=M<=c),M>0&&j&&Y}),ue=w(()=>!1),Me=w(()=>!B.value||!k.value||Ce.value||T.value||F.value||_.value||ue.value?!1:Ae.value),me=w(()=>"");return be(()=>{N=He(),K.refreshBankAccountList(),A.getOnGoing(),A.getWithdrawConfig()}
1),(p,c)=>{const M=Ge,j=Se,Y=Ke,We=Tt;return a(),l("div",null,[(p.availableMethods??[]).length>1?(a(),I(Xe,{key:0,"available-methods":p.availableMethods??[],"selected-method":p.selectedMethod,"onUpdate:selectedMethod":c[0]||(c[0]=se=>p.$emit("update:selectedMethod",se))},null,8,["available-methods","selected-method"])):h("",!0),f(M,{modelValue:e(y),"onUpdate:modelValue":c[1]||(c[1]=se=>ie(y)?y.value=se:null),type:e(m),title:e(P),message:e(U),"confirm-label":e(b),dismissible:!1,onConfirm:D},null,8,["modelValue","type","title","message","confirm-label"]),t("div",Jt,[e(ee)?(a(),l("div",Zt,[t("div",Qt,n(e(s)("input.withdrawCurrency.label")),1),f(Ye)])):h("",!0),t("div",null,[f(Le,{label:e(s)("input.withdrawCredit.label"),variant:"input"},{default:G(()=>[t("div",es,[f(qe,{modelValue:e(v),"onUpdate:modelValue":c[2]||(c[2]=se=>ie(v)?v.value=se:null),currency:e(x),"currency-display-multiplier":e(O)},null,8,["modelValue","currency","currency-display-multiplier"])])]),_:1},8,["label"]),t("div",ts,[t("span",null,n(e(s)("info.withdrawableBalance"))+" "+n(e(re)(e(S)))+" "+n(e(R)()),1)]),f(
1De,{name:"fade"},{default:G(()=>[e(W)>0&&e(W)>e(S)?(a(),l("div",ss,[c[3]||(c[3]=t("svg",{class:"w-3.5 h-3.5 text-amber-400 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{d:"M12 2L1 21h22L12 2zm0 3.5L20.5 19h-17L12 5.5zM11 10v4h2v-4h-2zm0 6v2h2v-2h-2z"})],-1)),t("span",ns,n(e(s)("info.withdrawableBalance"))+": "+n(e(re)(e(S)))+" "+n(e(R)()),1)])):h("",!0)]),_:1})]),t("div",as,[c[4]||(c[4]=t("div",{class:"flex-1 h-px bg-white/10"},null,-1)),t("div",os,[t("span",is,n(e(s)("input.withdrawTo")),1)]),c[5]||(c[5]=t("div",{class:"flex-1 h-px bg-white/10"},null,-1))]),t("div",null,[e(ue)?(a(),I(j,{key:0,msg:e(s)("error.pleaseChooseNewBankAccount"),type:"warning",class:"mb-2"},null,8,["msg"])):h("",!0),f(lt,{"choice-for":e(rt).WITHDRAW,"return-menu":e(xe).WITHDRAWAL,"top-left-label":"input.withdrawToAccount.label","prefer-bank-currency":e(me)},null,8,["choice-for","return-menu","prefer-bank-currency"])]),t("div",rs,[c[6]||(c[6]=t("div",{class:"flex-1 h-px bg-white/10"},null,-1)),t("div",ls,[t("span",ds,n(e(s)("info.summary")),1)]),c[7]||(c[7]=t("div",{class:"flex-1 h-px bg-white/10"},null,-1))]),t("div",cs,[t("div",us,[t("span",hs,n(e(s)("crypto.withdrawAmount")),1),t("span",ps,n(e(re)(e(v)))+" "+n(e(R)()),1)]),t("div",ws,[t("span",ms,n(e(s)("crypto.receiveAmount")),1),t("span",vs,n(e(re)(e(W)))+" "+n(e(R)()),1)]),e(k)?(a(),l("div",fs,[t("span",_s,n(e(s)("input.withdrawToAccount.label")),1),t("span",xs,n(e(k).bankName)+" "+n(e(k).accountNumber),1)])):h("",!0)]),e(we)?(a(),l("div",ys,n(e(we)),1)):h("",!0),e(te)?(a(),I(j,{key:2,msg:e(te),type:"warning"},null,8,["msg"])):h("",!0),e(d)?(a(),I(j,{key:3,msg:e(d),type:"error"},null,8,["msg"])):h("",!0),e(F)?h("",!0):(a(),I(Y,{key:4,variant:"primary",icon:"→",label:e(s)("btn.submit_withdraw_request"),disabled:!e(Me),loading:e(_),onClick:pe},null,8,["label","disabled","loading"])),c[8]||(c[8]=t("div",{class:"flex items-center gap-3 !mt-8"},[t("div",{class:"flex-1 h-px bg-white/[0.06]"}),t("span",{class:"text-[10px] text-white/20 uppercase tracking-widest"},"info"),t("div",{class:"flex-1 h-px bg-white/[0.06]"})],-1)),f(Oe),f(Le,null,{default:G(()=>[f(We,{"bank-account":e(k)},null,8,["bank-account"])]),_:1})])])}}}),gs=Object.assign(ge(bs,[["__scopeId","data-v-d04a1f22"]]),{__name:"FiatWithdraw"}),ks={key:0,class:"flex flex-col min-w-0"},Cs={key:0,class:"text-[10px] text-white/40 uppercase tracking-wider"},$s={class:"text-[12px] font-mono text-[#E3BB72] break-all"},As=["onClick"],Ms={class:"flex-1 min-w-0"},Ws={key:0,class:"text-[12px] text-white/60 font-medium mb-0.5"},Bs={key:1,class:"text-[12px] text-white/60 font-medium mb-0.5"},Ts={class:"text-[12px] font-mono text-[#E3BB72] break-all"},Rs={key:0,src:wt,alt:"",class:"w-5 h-5 flex-shrink-0 mt-0.5"},Ds={class:"px-6 py-4 border-t border-white/5"},Ls=["onClick"],Ss=Z({__name:"CryptoWhitelistAddressPicker",props:{addressList:{},activeAddress:{}},emits:["addressChange"],setup(Q,{emit:s}){const u=s,{t:_}=le(),d=ze(),y=(v,W)=>{u("addressChange",v),W()},m=v=>{v(),d.push("/"+xe.PROFILES+"?activeTab=crypto")};return(v,W)=>{const P=bt;return a(),I(P,{label:e(_)("info.chooseAddress")},{selected:G(()=>[v.activeAddress?(a(),l("div",ks,[v.activeAddress.addressLabel?(a(),l("span",Cs,n(v.activeAddress.addressLabel),1)):h("",!0),t("span",$s,n(v.activeAddress.address),1)])):h("",!0)]),items:G(({close:U})=>[(a(!0),l(J,null,ye(v.addressList,b=>(a(),l("div",{key:b.address,class:"flex items-start gap-3 px-6 py-4 cursor-pointer active:bg-white/5 transition-colors border-b border-white/5 last:border-0",onClick:L=>y(b,U)},[W[0]||(W[0]=t("div",{class:"w-8 h-8 rounded-full bg-white/5 flex items-center justify-center flex-shrink-0 mt-0.5"},[t("svg",{class:"w-4 h-4 text-white/40",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.5"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"})])],-1)),t("div",Ms,[b.addressLabel?(a(),l("div",Ws,n(b.addressLabel)+" ("+n(b.networkTitle.toUpperCase())+") ",1)):(a(),l("div",Bs,n(b.networkTitle.toUpperCase()),1)),t("div",Ts,n(b.address),1)]),v.activeAddress?.address===b.address?(a(),l("img",Rs)):h("",!0)],8,As))),128)),t("div",Ds,[t("button",{type:"button",class:"w-full text-[13px] text-white/40 text-center active:opacity-60 transition-opacity",onClick:b=>m(U)},n(e(_)("btn.manageAddress")),9,Ls)])]),_:1},8,["label"])}}}),Is=Object.assign(Ss,{__name:"CryptoWhitelistAddressPicker"}),Ps={class:"flex items-start pr-4"},Fs={class:"flex-1"},Os={class:"px-5 pt-4 space-y-4"},Vs={key:1},Es={class:"text-[11px] font-medium uppercase tracking-wider text-white/40 ml-4 mb-1.5"},Us={class:"text-[10px] text-white/40 uppercase tracking-wider mb-2.5"},Ns={key:2},js={class:"text-[10px] text-white/40 uppercase tracking-wider mb-2.5"}
1,Hs={key:0,class:"flex items-center gap-1.5 mt-2 px-1"},qs={class:"text-[11px] text-white/40"},Gs={key:3,class:"flex items-center gap-3 py-1"},Ks={class:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/[0.06] border border-white/[0.10]"},zs={class:"text-[11px] font-medium text-white/50"},Ys={class:"text-[10px] text-white/40 uppercase tracking-wider mb-2.5"},Xs={key:1,class:"space-y-2"},Js={key:5},Zs={class:"px-4 py-3"},Qs={class:"flex justify-between items-center text-[11px] text-white/40 px-1 mt-2"},en={key:0,class:"flex items-center justify-between mt-2 px-1"},tn={class:"text-[11px] text-white/40"},sn={class:"text-[13px] font-bold text-[#E3BB72]"},nn={key:0,class:"flex items-center gap-1.5 mt-2 px-1"},an={class:"text-[11px] text-amber-400"},on={class:"flex items-center gap-3 py-1"},rn={class:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/[0.06] border border-white/[0.10]"},ln={class:"text-[11px] font-medium text-white/50"},dn={class:"bg-[#1c1c1e] border border-white/[0.06] rounded-xl overflow-hidden"},cn={class:"px-4 py-3 flex justify-between items-center"},un={class:"text-[12px] text-white/40"},hn={class:"text-[15px] font-semibold text-white/90"},pn={class:"border-t border-white/5 px-4 py-3 flex justify-between items-center"},wn={class:"text-[12px] text-white/40"},mn={class:"text-[15px] font-bold text-[#E3BB72]"},vn={class:"border-t border-white/5 px-4 py-2 text-[11px] text-white/35 text-right"},fn={class:"text-[10px] text-white/30 block"},_n={key:1,class:"border-t border-white/5 px-4 py-3 flex justify-between items-center gap-3"},xn={class:"text-[12px] text-white/40 flex-shrink-0"},yn={class:"text-[12px] font-mono text-white/60 truncate"},bn={key:0,class:"text-[11px] text-white/40 text-center"},gn={class:"space-y-2 text-sm"},kn={class:"flex justify-between"},Cn={class:"text-white/50"},$n={class:"font-semibold"},An={class:"flex justify-between"},Mn={class:"text-white/50"},Wn={class:"font-semibold"},Bn={class:"flex justify-between items-start gap-3"},Tn={class:"text-white/50 flex-shrink-0"},Rn={class:"font-mono text-xs text-right break-all leading-relaxed"},Dn={class:"text-white"},Ln={class:"text-white/35"},Sn={class:"text-white"},In=Z({__name:"CryptoWithdraw",props:{availableMethods:{default:()=>[]},selectedMethod:{}},emits:["update:selectedMethod"],setup(Q){const{t:s}=le(),u=Pe(),_=w(()=>u.cryptoWithdrawOnline),d=w(()=>u.cryptoWithdrawMaintenanceMessage),y=Fe(),{activeCurrencyWithdrawableBalance:m,currencyDisplayProxy:v,isMultiCurrencyWallet:W,activeCurrency:P,currencyDisplayMultiplierProxy:U}=H(y),b=ke(),{isHaveOnGoingWithdrawal:L}=H(b),B=C(!1),i=C(!1),$=C(""),T=C(!1),S=C(""),x=C(""),O=C(s("btn.OK")),R=C(!1),ee=C(!1),K=gt(),{networkList:Ce,selectedNetwork:k,selectedNetworkKey:A,selectedToken:F,tokenList:Ve,whitelistAddress:de,selectableWhitelistAddressList:z,amountInput:ce,targetCryptoAddress:g,inputCryptoAddress:te}=H(K),D=w({get:()=>{const o=b.amountByCurrency[P.value];return o??(parseFloat(ce.value)||0)},set:o=>{ce.value=o?String(o):"",b.setWithdrawAmount(P.value,o||0)}}),N=C(""),pe=w(()=>$.value||N.value||""),$e=mt(),we=ze();ne(()=>[F.value,A.value],([o,r])=>{const X={...$e.query};let he=!1;o&&X.token!==o.symbolKey&&(X.token=o.symbolKey,he=!0),r&&X.network!==r&&(X.network=r,he=!0),he&&we.replace({query:X})});const Ae=w(()=>T.value||g.value&&D>0?3:A.value&&g.value?2:1),ue=w(()=>{const o=k.value?.withdrawConfig?.min;return o!==void 0?`${s("crypto.minWithdrawal")} ${fe(o)}`:""}),Me={eth:"~10 min",bsc:"~5–8 min",trx:"~5–8 min"},me=w(()=>{const o=A.value?.toLowerCase();return o?Me[o]??null:null}),p=w(()=>{const o=D.value,r=k.value?.creditRate||0;return r>0?Math.floor(o/r*100)/100:0}),c=w(()=>{const o=D.value;if(isNaN(o)||o<=0)return"";if(o>m.value)return s("info.availableBalance")+" "+E(m.value);const r=k.value?.withdrawConfig?.min;return r!==void 0&&k.value?.creditRate&&p.value<r?s("info.minWithdrawAmount",{amount:r,currency:F.value?.symbolDisplay||""}):""}),M=w(()=>{const o=D.value;return!isNaN(o)&&o>0&&!c.value}),j=w(()=>M.value&&!!A.value&&!!g.value),Y=w(()=>L.value||R.value?!1:j.value),We=async()=>
1{if(!R.value){R.value=!0,$.value="";try{if(!M.value){$.value=c.value||s("error.enterWithdrawAmount"),B.value=!1,R.value=!1;return}if(await y.refreshBalance(),D.value>m.value){$.value=s("info.availableBalance")+" "+E(m.value),B.value=!1,R.value=!1;return}if(!te.value){N.value=s("info.enterCryptoAddress"),B.value=!1,R.value=!1;return}const o=await Ie.submitCryptoWithdrawRequest({tokenKey:F.value?.symbolKey||"",networkKey:A.value||"",creditAmount:D.value,toAddress:te.value});o.succ?(S.value=s("info.succ"),x.value=s("info.withdrawalIsProcessing"),O.value=s("btn.OK"),T.value=!0,B.value=!1,await b.getOnGoing()):(N.value=o.msg?o.msg:s("info.failedWithdrawal"),B.value=!1)}catch(o){N.value=o?.data?.message||o?.message||s("info.failedWithdrawal"),B.value=!1}finally{R.value=!1}}};ne([()=>ce.value,()=>A.value,()=>m.value],Be.debounce(()=>{$.value=c.value,N.value=""},600));const se=()=>{D.value=m.value},Je=async()=>{$.value="",T.value=!1,await b.getOnGoing()},Ze=w(()=>F.value?.symbolDisplay),Qe=async o=>{ee.value=!0,N.value="";try{K.selectedNetworkKey=o.networkKey,await K.refreshNetworkChoice()}finally{ee.value=!1}},et=o=>{N.value="",K.setActiveToken(o)},tt=o=>{g.value=o},st=()=>{const o={returnMenu:xe.WITHDRAWAL,method:"crypto",token:F.value?.symbolKey,network:A.value};_t({path:xe.PROFILE_ADD_WHITELIST_ADDRESS,query:o})};ne(()=>z.value,Be.debounce(async function(o){o.length>0?(g.value&&(g.value=o.find(r=>r.address===g.value?.address)),g.value||(g.value=o[0])):g.value=null})),ne(()=>g.value,Be.debounce(async function(o){nt({inputCryptoAddress:g.value?.address})}));const nt=o=>{te.value=o.inputCryptoAddress};return be(()=>{u.fetchCryptoStatus().catch(()=>{}),y.refreshBalance(),b.getOnGoing(),K.refreshChoice()}),(o,r)=>{const X=dt,he=yt,at=ct,ot=Ge,ve=Se,Ee=Ke,it=ft;return a(),l("div",null,[(o.availableMethods??[]).length>1?(a(),I(Xe,{key:0,"available-methods":o.availableMethods??[],"selected-method":o.selectedMethod,"onUpdate:selectedMethod":r[0]||(r[0]=V=>o.$emit("update:selectedMethod",V))},null,8,["available-methods","selected-method"])):h("",!0),e(_)?(a(),l(J,{key:2},[t("div",Ps,[t("div",Fs,[f(he,{step:e(Ae),labels:[e(s)("crypto.withdraw.step1"),e(s)("crypto.withdraw.step2"),e(s)("crypto.withdraw.step3")]},null,8,["step","labels"])]),t("button",{type:"button",class:"mt-3 w-7 h-7 flex-shrink-0 rounded-full border-[1.5px] border-[rgba(227,187,114,0.5)] text-[#E3BB72] bg-[rgba(227,187,114,0.08)] text-sm font-bold flex items-center justify-center cursor-pointer",onClick:r[1]||(r[1]=V=>i.value=!0)},"ⓘ")]),f(at,{modelValue:e(i),"onUpdate:modelValue":r[2]||(r[2]=V=>ie(i)?i.value=V:null),type:"withdrawal"},null,8,["modelValue"]),f(ot,{modelValue:e(T),"onUpdate:modelValue":r[3]||(r[3]=V=>ie(T)?T.value=V:null),type:"success",title:e(S),message:e(x),"confirm-label":e(O),dismissible:!1,onConfirm:Je},null,8,["modelValue","title","message","confirm-label"]),t("div",Os,[!e(A)&&e(de).length===0?(a(),I(ve,{key:0,msg:e(s)("crypto.withdraw.noAddressWarningEarly"),type:"info"},null,8,["msg"])):h("",!0),e(W)?(a(),l("div",Vs,[t("div",Es,n(e(s)("input.withdrawCurrency.label")),1),f(Ye)])):h("",!0),t("div",null,[t("div",Us,n(e(s)("info.token")),1),f(ut,{"token-list":e(Ve),"active-token":e(F),onTokenChange:et},null,8,["token-list","active-token"])]),e(F)?(a(),l("div",Ns,[t("div",js,n(e(s)("info.network")),1),f(ht,{"network-list":e(Ce),"active-network":e(k),onChainChange:Qe},null,8,["network-list","active-network"]),e(k)&&e(me)?(a(),l("div",Hs,[r[8]||(r[8]=t("svg",{class:"w-3 h-3 text-white/30 flex-shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t("circle",{cx:"12",cy:"12",r:"10"}),t("polyline",{points:"12 6 12 12 16 14"})],-1)),t("span",qs,n(e(s)("crypto.estProcessingTime"))+": "+n(e(me)),1)])):h("",!0)])):h("",!0),e(k)?(a(),l("div",Gs,[r[9]||(r[9]=t("div",{class:"flex-1 h-px bg-white/10"},null,-1)),t("div",Ks,[t("span",zs,n(e(s)("input.withdrawTo")),1)]),r[10]||(r[10]=t("div",{class:"flex-1 h-px bg-white/10"},null,-1))])):h("",!0),e(k)?(a(),l(J,{key:4},[t("div",Ys,n(e(s)("crypto.address")),1),e(z).length>0?(a(),I(Is,{key:0,"address-list":e(z),"active-address":e(g),onAddressChange:tt},null,8,["address-list","active-address"])):(a(),l("div",Xs,[f(ve,{msg:e(s)("info.noWhitelistAddress"),type:"warning"},null,8,["msg"]),f(Ee,{variant:"secondary",label:e(s)("btn.goToAddAddress"),onClick:st},null,8,["label"])]))],64)):h("",!0),e(g)?(a(),l("div",Js,[f(Le,{label:e(s)("input.withdrawCredit.label"),variant:"input"},{default:G(()=>[t("div",Zs,[f(qe,{modelValue:e(D),"onUpdate:modelValue":r[4]||(r[4]=V=>ie(D)?D.value=V:null),currency:e(P),"currency-display-multiplier":e(U),disabled:e(ee)},null,8,["modelValue","currency","currency-display-multiplier","disabled"])])]),_:1},8,["label"]),t("div",Qs,[t("span",null,n(e(s)("info.withdrawableBalance"))+" "+n(e(E)(e(m)))+" "+n(e(v)()),1),t("button",{type:"button",class:"px-2.5 py-0.5 rounded-md border border-[#
1E3BB72]/50 text-[#E3BB72] text-[11px] font-semibold bg-[#E3BB72]/10 active:bg-[#E3BB72]/20 transition-colors",onClick:se},n(e(s)("crypto.withdraw.maxBtn")),1)]),f(De,{name:"fade"},{default:G(()=>[e(D)>0&&e(k)?.creditRate?(a(),l("div",en,[t("span",tn,n(e(s)("crypto.estimateReceive")),1),t("span",sn,"≈ "+n(e(fe)(e(p)))+" "+n(e(F)?.symbolDisplay),1)])):h("",!0)]),_:1}),f(De,{name:"fade"},{default:G(()=>[e(D)>0&&e(D)>e(m)?(a(),l("div",nn,[r[11]||(r[11]=t("svg",{class:"w-3.5 h-3.5 text-amber-400 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor"},[t("path",{d:"M12 2L1 21h22L12 2zm0 3.5L20.5 19h-17L12 5.5zM11 10v4h2v-4h-2zm0 6v2h2v-2h-2z"})],-1)),t("span",an,n(e(s)("info.withdrawableBalance"))+": "+n(e(E)(e(m)))+" "+n(e(v)()),1)])):h("",!0)]),_:1})])):h("",!0),e(k)&&e(z).length>0?(a(),l(J,{key:6},[t("div",on,[r[12]||(r[12]=t("div",{class:"flex-1 h-px bg-white/10"},null,-1)),t("div",rn,[t("span",ln,n(e(s)("info.summary")),1)]),r[13]||(r[13]=t("div",{class:"flex-1 h-px bg-white/10"},null,-1))]),t("div",dn,[t("div",cn,[t("span",un,n(e(s)("crypto.withdrawAmount")),1),t("span",hn,n(e(E)(e(D)||0))+" "+n(e(v)()),1)]),e(k)?.creditRate&&e(D)?(a(),l(J,{key:0},[t("div",pn,[t("span",wn,n(e(s)("crypto.estimateReceive")),1),t("span",mn,"≈ "+n(e(fe)(e(p)))+" "+n(e(F)?.symbolDisplay),1)]),t("div",vn,[vt(" 1 "+n(e(F)?.symbolDisplay?.toUpperCase())+" ≈ "+n(e(E)(e(k).creditRate))+" "+n(e(k).creditCurrency?.toUpperCase()||e(v)())+" ",1),t("span",fn,n(e(s)("crypto.rateUpdated")),1)])],64)):h("",!0),e(g)?(a(),l("div",_n,[t("span",xn,n(e(s)("crypto.address")),1),t("span",yn,n(e(g).address),1)])):h("",!0)]),e(ue)?(a(),l("div",bn,n(e(ue))+" "+n(e(Ze)),1)):h("",!0),e(c)||e(pe)?(a(),I(ve,{key:1,msg:e(c)||e(pe),type:"error"},null,8,["msg"])):h("",!0),e(L)?(a(),I(ve,{key:2,msg:e(s)("crypto.withdraw.ongoingBlock"),type:"warning"},null,8,["msg"])):h("",!0),f(Ee,{variant:"primary",label:e(s)("btn.withdraw"),disabled:!e(Y),loading:e(R),onClick:r[5]||(r[5]=V=>B.value=!0)},null,8,["label","disabled","loading"]),r[14]||(r[14]=t("div",{class:"flex items-center gap-3 !mt-8"},[t("div",{class:"flex-1 h-px bg-white/[0.06]"}),t("span",{class:"text-[10px] text-white/20 uppercase tracking-widest"},"info"),t("div",{class:"flex-1 h-px bg-white/[0.06]"})],-1)),f(Oe)],64)):h("",!0)]),f(it,{modelValue:e(B),"onUpdate:modelValue":r[6]||(r[6]=V=>ie(B)?B.value=V:null),title:e(s)("crypto.withdraw.confirmTitle"),"confirm-label":e(s)("btn.confirm"),"cancel-label":e(s)("btn.cancel"),loading:e(R),onConfirm:We,onCancel:r[7]||(r[7]=V=>B.value=!1)},{default:G(()=>[t("div",gn,[t("div",kn,[t("span",Cn,n(e(s)("crypto.withdraw.confirmAmount")),1),t("span",$n,n(e(E)(e(D)))+" "+n(e(P)),1)]),t("div",An,[t("span",Mn,n(e(s)("crypto.withdraw.confirmReceive")),1),t("span",Wn,"~"+n(e(fe)(e(p)))+" "+n(e(F)?.symbolDisplay),1)]),t("div",Bn,[t("span",Tn,n(e(s)("crypto.withdraw.confirmAddress")),1),t("span",Rn,[t("span",Dn,n(e(g)?.address?.slice(0,6)),1),t("span",Ln,n(e(g)?.address?.slice(6,-4)),1),t("span",Sn,n(e(g)?.address?.slice(-4)),1)])])])]),_:1},8,["modelValue","title","confirm-label","cancel-label","loading"])],64)):(a(),I(X,{key:1,message:e(d)},null,8,["message"]))])}}}),Pn=Object.assign(ge(In,[["__scopeId","data-v-fc35a0aa"]]),{__name:"CryptoWithdraw"}),Fn={class:"px-5 pt-4 space-y-4"},On={class:"bg-[#1c1c1e] border border-white/5 rounded-[14px] overflow-hidden"},Vn={class:"px-4 py-3 flex items-center gap-2 border-b border-white/5 bg-yellow-500/[0.06]"},En={class:"text-[13px] text-white/70"},Un={class:"px-4 py-5 text-center border-b border-white/5"},Nn={class:"text-[10px] text-white/40 uppercase tracking-wider mb-2"},jn={class:"flex items-baseline justify-center gap-2"},Hn={class:"text-[36px] font-bold text-white tabular-nums"},qn={class:"text-[16px] text-white/40"},Gn={key:0,class:"text-[11px] text-white/40 mt-1"},Kn={class:"px-4 py-3 flex justify-between items-center"},zn={class:"text-[12px] text-white/60 font-mono"},Yn={class:"bg-[#1c1c1e] border border-white/5 rounded-[14px] px-4 py-4"},Xn={class:"list-disc ml-4 space-y-1.5 text-[12px] text-white/50"},Jn=["innerHTML"],Zn=["innerHTML"],Qn={class:"mt-3 text-[12px] text-red-400 text-center"},ea=Z({__name:"WithdrawOngoingInfo",setup(Q){const s=ke(),{onGoingWithdrawRequest:u}=H(s);return(_,d)=>(a(),l("div",Fn,[t("div",On,[t("div",Vn,[d[0]||(d[0]=t("svg",{class:"w-4 h-4 text-[#FFAA00] flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[t("circle",{cx:"12",cy:"12",r:"10"}),t("polyline",{points:"12 6 12 12 16 14"})],-1)),t("span",En,n(_.$t("info.haveOngoingWithdrawRequest")),1)]),t("div",Un,[t("div",Nn,n(_.$t("info.withdrawAmount")),1),t("div",jn,[t("span",Hn,n(e(re)(e(u)?.amount)),1),t("span",qn,n(e(Ne)(e(u)?.currency??"")),1)]),e(u)?.reqCurrency&&e(u)?.reqCurrency!==e(u)?.currency?(a(),l("div",Gn," ("+n(e(re)(e(u)?.reqAmount))+" "+n(e(Ne)(e(u)?.reqCurrency))+") ",1)):h("",!0)]),t("div",Kn,[d[1]||(d[1]=t("span",{class:"text-[11px] text-white/40 uppercase tracking-wider"},"ID",-1)),t("span",zn,n(e(u)?._id),1)])]),f(Oe),t("div",Yn,[t("ul",Xn,[t("li",null,[t("span",{innerHTML:_.$t("withdrawConfirm.condition2")},null,8,Jn)]),t("li",null,[t("span",{innerHTML:_.$t("withdrawConfirm.condition3")},null,8,Zn)])]),t("p",Qn,n(_.$t("info.tcAboutSlowWithdraw")),1)])]))}}),ta=Object.assign(ea,{__name:"WithdrawOngoingInfo"}),sa={class:"bg-black nav-gap-h-full"},na={key:2},aa={class:"px-5 mt-6"},ga=Z({__name:"index",setup(Q){const s=Pe(),{enableWithdraw:u,disableWithdrawMessage:_}=H(s),d=ke(),{isHaveOnGoingWithdrawal:y,availableWithdrawMethods:m,lastSelectedWithdrawMethod:v}
1=H(d),W=Fe(),{currencyType:P,isMultiCurrencyWallet:U,activeCurrency:b}=H(W),L=C(""),B=x=>{L.value=x,x&&d.setLastSelectedWithdrawMethod(x)},i=()=>{if(m.value.length>0){if(v.value&&m.value.includes(v.value)){L.value=v.value;return}const x=S.value===q.CRYPTO?ae.CRYPTO:ae.BANK_TRANSFER;m.value.includes(x)?L.value=x:L.value=m.value[0]||""}else L.value=""};ne(()=>b.value,async()=>{await d.fetchAvailableWithdrawMethods(),i()}),be(async()=>{await d.fetchAvailableWithdrawMethods(),i()});const $=w(()=>U.value),T=w(()=>L.value?L.value===ae.CRYPTO?q.CRYPTO:q.FIAT:S.value),S=w(()=>{if($.value){const x=b.value;return["usdt"].includes(x)?q.CRYPTO:q.FIAT}else return P.value===je.Fiat?q.FIAT:P.value===je.Crypto?q.CRYPTO:null});return(x,O)=>{const R=Se,ee=pt;return a(),l("div",sa,[f(kt,{"active-tab":"Withdrawal"}),e(u)?h("",!0):(a(),I(R,{key:0,msg:e(_),type:"warning"},null,8,["msg"])),e(y)?(a(),I(ta,{key:1})):h("",!0),e(y)?h("",!0):(a(),l("div",na,[e(T)===e(q).FIAT?(a(),I(gs,{key:0,"available-methods":e(m),"selected-method":e(L),"onUpdate:selectedMethod":B},null,8,["available-methods","selected-method"])):h("",!0),e(T)===e(q).CRYPTO?(a(),I(Pn,{key:1,"available-methods":e(m),"selected-method":e(L),"onUpdate:selectedMethod":B},null,8,["available-methods","selected-method"])):h("",!0)])),t("div",aa,[f(ee)]),O[0]||(O[0]=t("div",{class:"pb-[100px]"},null,-1))])}}});export{ga as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.