PageSourceSearch

https://member.ufa356.guru/assets/1789559418326/kd6OWlgA.js

js ufa356.guru collected 2026-10-06 13:17:36 UTC 25,823 bytes, 1 lines download raw bytes

1import{_ as ve}from"./C5OnWoI0.js";import{x as ie,d as F,R as te,S as ue,n as z,ah as ge,r as i,A as Z,G as be,o as se,aH as _e,f as c,a,F as I,e as w,b as e,an as re,w as Q,t as r,g as D,c as q,H as we,h as s,P as j,W as ne,J as V,v as G,Y as le,B as Y,aI as ye,l as oe,M as ce,a9 as O,I as pe,at as K,aJ as xe,aK as de,as as ke,Q as $e,u as Ce,a2 as X,a3 as ee}from"./zGN25SIG.js";import{_ as De}from"./Dzg3GZNq.js";import{V as Be}from"./DuRGqVWg.js";import{_ as fe}from"./B48F4MML.js";import{g as Ae,a as Le,_ as Me}from"./jVQRv9Qt.js";import{_ as Se}from"./BmwrrxPv.js";import"./CivJAmq1.js";const Ue=ie("/images/layout/icn-password-lock.svg"),Ve={class:"space-y-6 px-1"},Te={class:"ui-section-divider-subtle"},Ee={class:"flex items-center min-h-[50px] px-4"},Re={class:"text-[14px] text-white/90 flex-1"},Ie={class:"text-[14px] text-white/50"},Ne={class:"flex items-center min-h-[50px] px-4"},Pe={class:"text-[14px] text-white/90 flex-1"},je={class:"flex items-center gap-2"},Oe={class:"text-[14px] text-white/50"},Fe={class:"ui-section-divider-subtle"},We={class:"text-[14px] text-white/90 flex-1"},He={class:"text-[14px] text-white/50 mr-2"},Ye={class:"ui-section-divider-subtle"},qe={class:"text-[14px] text-white/90 flex-1"},Ke={class:"text-[14px] text-white/50 mr-2"},ze={class:"flex items-center justify-between px-4 py-3 min-h-[50px]"},Ge={class:"text-[14px] text-white/90"},Je={class:"flex items-center gap-2"},Ze={key:0,class:"text-white/50 text-[14px] flex items-center gap-2"},Qe={class:"text-[#E3BB72] text-[14px] font-medium"},Xe={class:"flex items-center"},et={class:"text-[14px] text-white/90 font-medium"},tt=F({__name:"MyProfile",setup(E){const t=te(),{phoneChoices:n}=ue(t),k=z(),L=ge(),$=i(""),f=i(""),l=i(""),y=i(""),m=i(""),h=i(""),B=i(""),x=i(""),A=i(!1),U=i(Z(new Date,"YYYY-MM-DD").add(-10,"years").toDate()),v=i(!1),b=i("dd/mm/yyyy"),M=be(()=>x.value?Z(x.value).format("DD/MM/YYYY"):""),T=async()=>{const o=await V.getProfile(),u=o.user;if(!u)return;const H=u.userUsername?u.userUsername:u.username;if(o.succ){$.value=H??"",y.value=u.phoneNumber??"";const N=n.value.find(he=>he.code.toLowerCase()===(u.phoneCountryCode??"").toLowerCase());N&&(f.value=N.code,l.value=N.dialCode),await _(u.dob);const P=u.firstName||"",R=u.lastName||"";k.setFullname(P,R),h.value=P,B.value=R,m.value=`${P} ${R}`}},d=()=>{A.value=!0},p=()=>{A.value=!1},S=()=>{A.value=!1;const o=t.getLineId();window.open(`https://line.me/R/ti/p/${o||""}`,"_blank")},W=async o=>{const u=await V.updateDOB(Z(o).format("DD/MM/YYYY"));u.succ&&await _(u.data?.user?.dob)},_=async o=>{if(o){const[u,H,N]=o.split("/");x.value=Z(new Date(`${N}/${H}/${u}`)).format("DD/MM/yyyy")}},g=()=>{x.value?A.value=!0:v.value=!0},J=async()=>{await W(x.value),v.value=!1},C=o=>{L.push(`/${o||j.HOME}`)};return se(async()=>{await t.fetchPhoneListChoices(),await T()}),(o,u)=>{const H=re,N=_e("flag"),P=De;return a(),c(I,null,[w(H,{modelValue:A.value,"onUpdate:modelValue":u[0]||(u[0]=R=>A.value=R),title:o.$t("info.contactSupportForChanges"),"confirm-label":o.$t("btn.contactSupport"),"cancel-label":o.$t("btn.cancel"),onConfirm:S,onCancel:p},null,8,["modelValue","title","confirm-label","cancel-label"]),e("div",Ve,[w(P,{label:o.$t("menu.submenu.account")},{default:Q(()=>[e("div",Te,[e("div",Ee,[e("span",Re,r(o.$t("usernamePlaceholder")),1),e("span",Ie,r($.value),1)])]),e("div",Ne,[e("span",Pe,r(o.$t("user.phoneNumber")),1),e("div",je,[w(N,{iso:f.value,class:"text-[16px]"},null,8,["iso"]),e("span",Oe,r(l.value)+" "+r(y.value),1)])])]),_:1},8,["label"]),w(P,{label:o.$t("user.personalInfo")},{default:Q(()=>[e("div",Fe,[e("div",{class:"flex items-center min-h-[50px] px-4 active:bg-white/5 transition-colors cursor-pointer group",onClick:d},[e("span",We,r(o.$t("user.firstName")),1),e("span",He,r(h.value),1)])]),e("div",Ye,[e("div",{class:"flex items-center min-h-[50px] px-4 active:bg-white/5 transition-colors cursor-pointer group",onClick:d},[e("span",qe,r(o.$t("user.lastName")),1),e("span",Ke,r(B.value),1)])]),e("div",ze,[e("label",Ge,r(o.$t("user.DOB")),1),e("div",Je,[v.value?D("",!0):(a(),c("div",Ze,[we(r(x.value?x.value:"dd/mm/yyyy")+" ",1),(a(),c("svg",{class:"w-4 h-4 cursor-pointer",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:g},u[3]||(u[3]=[e("path",{d:"M7.95701 2.91406L0.768458 10.1026C0.50357 10.368 0.336162 10.7151 0.293413 11.0876L0.00698812 13.6026C-0.0116827 13.7794 0.00716227 13.9582 0.0622923 14.1273C0.117422 14.2964 0.207598 14.4519 0.326929 14.5838C0.44626 14.7157 0.592063 14.8209 0.754816 14.8925C0.917569 14.9642 1.09361 15.0008 1.27145 14.9998H1.41815L3.9331 14.7134C4.30413 14.6704 4.6505 14.5058 4.91812 14.2453L12.1067 7.04975L7.95701 2.91406Z",fill:"#E3BB72"},null,-1),e("path",{d:"M14.5378 2.30649L12.7144 0.483153C12.5619 0.330015 12.3806 0.208504 12.181 0.125592C11.9814 0.0426804 11.7674 0 11.5513 0C11.3351 0 11.1211 0.0426804 10.9215 0.125592C10.7219 0.208504 10.5406 0.330015 10.3881 0.483153L8.69751 2.17376L12.8472 6.32342L14.5378 4.63281C14.6909 4.48028 14.8124 4.29902 14.8953 4.09941C14.9782 3.89981 15.0209 3.68579 15.0209 3.46965C15.0209 3.25351 14.9782 3.0395 14.8953 2.83989C14.8124 2.64029 14.6909 2.45902 14.5378 2.30649Z",fill:"#E3BB72"},null,-1)])))])),v.value?(a(),q(s(Be),{key:1,modelValue:x.value,"onUpdate:modelValue":u[1]||(u[1]=R=>x.value=R),"enable-time-picker":!1,"max-date":U.value,"auto-apply":"",format:b.value,teleport:!0},{trigger:Q(()=>[e("div",Qe,r(M.value||"Select Date"),1)]),_:1},8,["modelValue","max-date","format"])):D("",!0),v.value?(a(),c("button",{key:2,class:"text-[#E3BB72] text-[14px] font-bold ml-3",onClick:J},r(o.$t("btn.save")),1)):D("",!0)])])]),_:1},8,["label"]),w(P,{label:o.$t("menu.security")},{default:Q(()=>[e("button",{class:"w-full flex items-center justify-between px-4 py-3 bg-[#1c1c1e] active:bg-white/5 transition-colors",onClick:u[2]||(u[2]=R=>C(s(j).PROFILE_CHANGEPASSWORD))},[e("div",Xe,[u[4]||(u[4]=e("div",{class:"w-7 h-7 bg-[#E3BB72] rounded-md flex items-center justify-center mr-3"},[e("img",{src:Ue,class:"w-4 h-4 brightness-0 invert"})],-1)),e("span",et,r(o.$t("btn.changePassword")),1)]),u[5]||(u[5]=e("img",{src:ne,class:"w-3.5 h-3.5 opacity-30"},null,-1))])]),_:1},8,["label"]),u[6]||(u[6]=e("div",{class:"pb-12"},null,-1))])],64)}}}),st=Object.assign(G(tt,[["__scopeId","data-v-4d8948a3"]]),{__name:"MyProfile"}),nt=ie("/images/layout/icn-add-bank.png"),ot={class:"flex items-center justify-between px-4 py-3 bg-[#1c1c1e] active:bg-white/5 transition-colors relative group"},at={class:"flex items-center gap-3"},lt={class:"w-10 h-10 bg-white rounded-lg flex items-center justify-center overflow-hidden p-1 shadow-inner"},it=["src","alt"],rt={key:1,class:"w-full h-full bg-gray-200 flex items-center justify-center"},ct={class:"flex flex-col min-w-0"},dt={class:"text-[14px] text-white font-medium leading-tight truncate"},ut={class:"text-[12px] text-white/50 font-mono tracking-tight"},pt={key:0,class:"flex items-center gap-2 mt-0.5"},ft={key:0,class:"text-[10px] text-[#E3BB72] font-bold uppercase tracking-tight"},mt={key:1,class:"text-[10px] text-red-500 font-medium tracking-tight bg-red-500/10 px-1.5 py-0.5 rounded"},ht={class:"flex items-center gap-1"},vt={class:"flex items-center justify-center w-10 h-10"},gt={key:1,class:"flex items-center justify-center"},bt={key:0,class:"absolute inset-0 bg-black/20 backdrop-blur-[1px] flex items-center justify-center rounded-xl z-10"},_t=F({__name:"BankAccountCard",props:{bankName:{},accountNumber:{},bankLogoUrl:{},isDefault:{type:Boolean},showDelete:{type:Boolean},isLoading:{type:Boolean},statusText:{}},emits:["setDefault","delete"],setup(E){return(t,n)=>(a(),c("div",ot,[e("div",at,[e("div",lt,[t.bankLogoUrl?(a(),c("img",{key:0,src:t.bankLogoUrl,alt:t.bankName,class:"max-w-full max-h-full object-contain"},null,8,it)):(a(),c("div",rt,n[2]||(n[2]=[e("svg",{class:"w-6 h-6 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"})],-1)])))]),e("div",ct,[e("span",dt,r(t.bankName),1),e("span",ut,r(t.accountNumber),1),t.isDefault||t.statusText?(a(),c("div",pt,[t.isDefault?(a(),c("span",ft,r(t.$t("btn.default")),1)):D("",!0),t.statusText?(a(),c("span",mt,r(t.statusText),1)):D("",!0)])):D("",!0)])]),e("div",ht,[t.showDelete&&!t.isDefault?(a(),c("button",{key:0,t
1ype:"button",class:"p-2 text-red-500/40 hover:text-red-500 active:scale-90 transition-all",onClick:n[0]||(n[0]=le(k=>t.$emit("delete"),["stop"]))},n[3]||(n[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M3 6h18"}),e("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),e("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})],-1)]))):D("",!0),e("div",vt,[t.isDefault?(a(),c("div",gt,n[4]||(n[4]=[e("img",{src:ye,class:"w-5 h-5",alt:"default"},null,-1)]))):(a(),c("button",{key:0,type:"button",class:"w-5 h-5 border border-white/20 rounded-full flex items-center justify-center hover:border-[#E3BB72]/50 active:scale-90 transition-all group-hover:border-white/40",onClick:n[1]||(n[1]=le(k=>t.$emit("setDefault"),["stop"]))},[e("div",{class:Y(["w-2.5 h-2.5 bg-[#E3BB72] rounded-full scale-0 transition-transform duration-200",{"scale-100":t.isLoading}])},null,2)]))])]),t.isLoading?(a(),c("div",bt,n[5]||(n[5]=[e("div",{class:"w-5 h-5 border-2 border-[#E3BB72] border-t-transparent rounded-full animate-spin"},null,-1)]))):D("",!0)]))}}),wt=Object.assign(_t,{__name:"BankAccountCard"}),yt={class:"px-1"},xt={class:"bg-[#1c1c1e] rounded-xl overflow-hidden border border-white/5 mb-6 active:bg-white/5 transition-colors"},kt={class:"text-[14px] text-[#E3BB72] font-medium"},$t={class:"text-white/40 text-[11px] font-medium mb-1.5 ml-4 uppercase tracking-wider"},Ct={class:"bg-[#1c1c1e] rounded-xl overflow-hidden border border-white/5 space-y-[1px] bg-white/5"},Dt={__name:"MyBankDetails",setup(E){const{t}=oe(),n=i([]),k=i(""),L=i(""),$=i(""),f=i(!1);i(t("btn.confirm")),i(t("btn.cancel")),i(t("info.confirmDeleteBankAccount"));const l=i(!1),y=i(""),m=i(!1),h=i(!1),B=z(),x=te(),A=ce();function U(){B.isUnderReview?m.value=!0:B.isUnderReview&&!x.enableBankAccountSelfService?h.value=!0:A.push("/"+j.PROFILE_ADD_BANK)}se(async()=>{if(!B.supportFiatCurrency){await A.push("/"+j.HOME);return}v(),M()});function v(){k.value=Ae()+" "+Le()}function b(){f.value=!1}async function M(){n.value=[];const _=await V.getMyBankList();if(_.succ){let{bankAccounts:g}=_.data||{};if(g||(g=[]),g.length>0&&(v(),g.forEach((C,o)=>{n.value.push({bankId:C._id,bankUrl:C.bank.icon.url,bankName:C.bank.name,accountNumber:C.bankAccountNumber,accountHolderName:k.value,isDefault:C.isDefault,underReview:!C.allowDeposit||!C.allowWithdraw,allowDelete:C.allowDelete})}),!n.value.find(C=>C.isDefault===!0))){const C=g[0];await T(C._id)}}}async function T(_){try{const g=await V.setDefaultBank(_)}catch{return{valid:!1,res:null}}}const d=K(async _=>{try{if(y.value=_.id,_.action==="delete")f.value=!0,$.value=_.id;else for(const g of n.value)g.bankId!==_.id?g.isDefault=!1:g.isDefault||(l.value=!0,await T(_.id),g.isDefault=!0)}catch{}finally{l.value=!1,y.value=""}});async function p(_){d(_)}async function S(){l.value=!0,W()}const W=K(async()=>{try{const _=await V.deleteBank($.value);_.succ?f.value=!1:L.value=_.msg,await M()}catch{}finally{l.value=!1}});return(_,g)=>{const J=re,C=fe;return a(),c(I,null,[w(J,{modelValue:s(f),"onUpdate:modelValue":g[0]||(g[0]=o=>O(f)?f.value=o:null),variant:"destructive",title:s(t)("info.confirmDeleteBankAccount"),"confirm-label":s(t)("btn.confirm"),"cancel-label":s(t)("btn.cancel"),loading:s(l),onConfirm:S,onCancel:b},null,8,["modelValue","title","confirm-label","cancel-label","loading"]),e("div",yt,[e("div",xt,[e("button",{class:"w-full flex items-center px-4 py-3.5",onClick:U},[g[3]||(g[3]=e("div",{class:"w-7 h-7 bg-[#E3BB72] rounded-md flex items-center justify-center mr-3"},[e("img",{src:nt,class:"w-4 h-4 brightness-0 invert"})],-1)),e("span",kt,r(s(t)("btn.addBankAccount")),1)])]),e("h3",$t,r(s(t)("menu.submenu.bankDetails")),1),e("div",Ct,[(a(!0),c(I,null,pe(s(n),o=>(a(),c("div",{key:o.id,class:"bg-[#1c1c1e]"},[w(wt,{"bank-name":o.bankName,"account-number":o.accountNumber,"bank-logo-url":o.bankUrl,"is-default":o.isDefault,"show-delete":o.allowDelete,"is-loading":s(l)&&s(y)===o.bankId,"status-text":o.underReview?s(t)("info.bankAccountUnderReview"):"",onSetDefault:u=>p({id:o.bankId,action:"default"}),onDelete:u=>p({id:o.bankId,action:"delete"})},null,8,["bank-name","account-number","bank-logo-url","is-default","show-delete","is-loading","status-text","onSetDefault","onDelete"])])
1)),128))])]),w(C,{modelValue:s(m),"onUpdate:modelValue":g[1]||(g[1]=o=>O(m)?m.value=o:null),type:"warning",title:s(t)("info.modalUnderReviewCannotAddBankAccountTitle"),message:s(t)("info.modalUnderReviewCannotAddBankAccountMessage"),"confirm-label":s(t)("btn.OK")},null,8,["modelValue","title","message","confirm-label"]),w(C,{modelValue:s(h),"onUpdate:modelValue":g[2]||(g[2]=o=>O(h)?h.value=o:null),type:"warning",title:s(t)("info.modalUpdateBankAccountPleaseContactSupportTitle"),message:s(t)("info.modalUpdateBankAccountPleaseContactSupportMessage"),"confirm-label":s(t)("btn.OK")},null,8,["modelValue","title","message","confirm-label"])],64)}}},Bt=G(Dt,[["__scopeId","data-v-f294b6c1"]]),me=ie("/images/deposit/icn-crypto-transfer.svg"),At={class:"flex items-center justify-between px-4 py-3 bg-[#1c1c1e] active:bg-white/5 transition-colors relative"},Lt={class:"flex items-center gap-3"},Mt={class:"flex flex-col min-w-0"},St={class:"text-[14px] text-white font-medium leading-tight"},Ut={key:0,class:"text-[11px] text-[#E3BB72]/70 leading-tight mt-0.5 truncate max-w-[180px]"},Vt={class:"text-[12px] text-white/50 font-mono tracking-tight mt-0.5"},Tt={class:"flex items-center gap-3"},Et=F({__name:"CryptoAddressListCardItem",props:{id:{default:""},networkTitle:{default:""},address:{default:""},addressLabel:{default:""},isDefault:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!1},isDefaultUseStar:{type:Boolean,default:!1},noRecord:{type:Boolean,default:!1}},emits:["delete"],setup(E,{emit:t}){const n=E,k=t,{t:L}=oe(),$=()=>{k("delete",{address:n.address})};return(f,l)=>(a(),c("div",At,[e("div",Lt,[l[0]||(l[0]=e("div",{class:"w-10 h-10 bg-orange-500 rounded-lg flex items-center justify-center p-2"},[e("img",{src:me,class:"w-6 h-6 brightness-0 invert"})],-1)),e("div",Mt,[e("span",St,r(n.networkTitle),1),n.addressLabel?(a(),c("span",Ut,r(n.addressLabel),1)):D("",!0),e("span",Vt,r(n.address),1)])]),e("div",Tt,[n.showDelete?(a(),c("div",{key:0,class:"p-2 active:scale-95 transition-transform",onClick:le($,["stop"])},l[1]||(l[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-4 h-4 opacity-40 hover:opacity-100 text-red-500"},[e("path",{d:"M3 6h18"}),e("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}),e("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})],-1)]))):D("",!0),l[2]||(l[2]=e("img",{src:ne,class:"w-3.5 h-3.5 opacity-30"},null,-1))])]))}}),Rt=Object.assign(G(Et,[["__scopeId","data-v-3ef17ef0"]]),{__name:"CryptoAddressListCardItem"}),It={class:"px-1"},Nt={class:"bg-[#1c1c1e] rounded-xl overflow-hidden border border-white/5 mb-6 active:bg-white/5 transition-colors"},Pt={class:"text-[14px] text-[#E3BB72] font-medium"},jt={class:"text-white/40 text-[11px] font-medium mb-1.5 ml-4 uppercase tracking-wider"},Ot={class:"bg-[#1c1c1e] rounded-xl overflow-hidden border border-white/5 space-y-[1px] bg-white/5"},Ft=F({__name:"MyCryptoAddressDetails",setup(E){const{t}=oe(),n=z();te();const k=ce(),L=i([]),$=i(""),f=i(!1),l=i("");i(t("btn.confirm")),i(t("btn.cancel")),i(t("info.confirmDeleteWhitelistAddress"));const y=i(!1),m=i(!1);function h(){if(n.isUnderReview)m.value=!0;else{const v=j.PROFILES+"?activeTab=crypto";k.push("/"+j.PROFILE_ADD_WHITELIST_ADDRESS+`?returnMenu=${v}`)}}se(async()=>{if(!n.supportCryptoCurrency){await k.push("/"+j.HOME);return}B()});async function B(){L.value=[];const v=await V.getCryptoWhitelistAddressList();if(v.succ){let b=v.data||[];b.length>0&&b.forEach((M,T)=>{L.value.push({chainKey:M.chainKey,networkTitle:M.networkTitle,address:M.address,addressLabel:M.addressLabel||"",allowDelete:!0})})}}async function x(v){f.value=!0,l.value=v}function A(){f.value=!1,l.value=""}const U=K(async()=>{try{y.value=!0,f.value=!1;const v=await V.deleteCryptoWhitelistAddress(l.value);v.succ?l.value="":$.value=v.msg??"",await B()}catch{}finally{y.value=!1}});return(v,b)=>{const M=re,T=Rt,d=fe;return a(),c(I,null,[w(M,{modelValue:s(f),"onUpdate:modelValue":b[0]||(b[0]=p=>O(f)?f.value=p:null),variant:"destructive",title:s(t)("info.confirmDeleteWhitelistAddress"),"confirm-label":s(t)("bt
1n.confirm"),"cancel-label":s(t)("btn.cancel"),loading:s(y),onConfirm:s(U),onCancel:A},null,8,["modelValue","title","confirm-label","cancel-label","loading","onConfirm"]),e("div",It,[e("div",Nt,[e("button",{class:"w-full flex items-center px-4 py-3.5",onClick:h},[b[2]||(b[2]=e("div",{class:"w-7 h-7 bg-[#E3BB72] rounded-md flex items-center justify-center mr-3"},[e("img",{src:me,class:"w-4 h-4 brightness-0 invert"})],-1)),e("span",Pt,r(s(t)("btn.addWhitelistAddress")),1)])]),e("h3",jt,r(s(t)("menu.submenu.cryptoWhitelistAddressList")),1),e("div",Ot,[(a(!0),c(I,null,pe(s(L),p=>(a(),c("div",{key:p.address,class:"bg-[#1c1c1e]"},[w(T,{"network-title":p.networkTitle,address:s(xe)(p.address),"address-label":p.addressLabel,"show-delete":p.allowDelete,onDelete:()=>x(p.address)},null,8,["network-title","address","address-label","show-delete","onDelete"])]))),128))])]),w(d,{modelValue:s(m),"onUpdate:modelValue":b[1]||(b[1]=p=>O(m)?m.value=p:null),type:"warning",title:s(t)("info.modalUnderReviewCannotAddWhitelistAddressAccountTitle"),message:s(t)("info.modalUnderReviewCannotAddWhitelistAddressAccountMessage"),"confirm-label":s(t)("btn.OK")},null,8,["modelValue","title","message","confirm-label"])],64)}}}),Wt=Object.assign(Ft,{__name:"MyCryptoAddressDetails"}),Ht={key:0,class:"mr-3"},Yt=["src"],qt={class:"text-[14px] text-white/90"},Kt={class:"ml-auto flex items-center"},zt={class:"mr-2 text-white/50 text-[14px]"},Gt={key:3,class:"w-3.5 h-3.5 opacity-30 group-active:opacity-50 transition-opacity",src:ne,alt:"arrow"},Jt=F({__name:"SettingsCell",props:{label:{default:""},iconPath:{default:""},type:{default:"navigation"},value:{default:""},modelValue:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click","update:modelValue"],setup(E){return(t,n)=>{const k=Se,L=Me;return a(),c("div",{class:"flex items-center min-h-[50px] px-4 active:bg-white/5 transition-colors cursor-pointer group",onClick:n[1]||(n[1]=$=>t.$emit("click"))},[t.iconPath?(a(),c("div",Ht,[e("img",{class:"w-5 h-5",src:t.iconPath,alt:"icon"},null,8,Yt)])):D("",!0),e("div",qt,r(t.label),1),e("div",Kt,[t.loading?(a(),q(k,{key:0,class:"w-[32px]"})):t.type==="select"?(a(),c(I,{key:1},[e("span",zt,r(t.value),1),n[2]||(n[2]=e("img",{class:"w-3.5 h-3.5 opacity-30 group-active:opacity-50 transition-opacity",src:ne,alt:"arrow"},null,-1))],64)):t.type==="toggle"?(a(),q(L,{key:2,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=$=>t.$emit("update:modelValue",$))},null,8,["model-value"])):t.type==="navigation"?(a(),c("img",Gt)):D("",!0)])])}}}),ae=Object.assign(Jt,{__name:"SettingsCell"}),Zt={class:"space-y-6 px-1 relative"},Qt={class:"text-white/40 text-[11px] font-medium mb-1.5 ml-4 uppercase tracking-wider"},Xt={class:"bg-[#1c1c1e] rounded-xl overflow-hidden border border-white/5 divide-y divide-white/5"},es={class:"text-white/40 text-[11px] font-medium mb-1.5 ml-4 uppercase tracking-wider"},ts={class:"bg-[#1c1c1e] rounded-xl overflow-hidden border border-white/5 divide-y divide-white/5"},ss={class:"mt-2 ml-4 mr-4 space-y-1"},ns={class:"text-white/30 text-[11px] leading-tight"},os={class:"text-white/30 text-[11px] leading-tight"},as={class:"text-yellow-500/50 text-[11px] leading-tight"},ls={class:"text-white/30 text-[11px] leading-tight"},is={class:"text-white/30 text-[11px] leading-tight"},rs={__name:"ProfileSettings",setup(E){const t=z(),n=te(),{setLocale:k,t:L,locale:$}=oe(),f=i(!1),l=i(""),y=i(""),m=i(!1),h=i(!1),B=i(!1);se(async()=>{A()});function x(){const d=n.countryChoices.find(p=>p.code===t.userCountryCode);y.value=d?d.name:""}async function A(){const d=await V.getProfile();if(d.succ){f.value=d.user.autoTransferWallet||!1;let p=de.filter(S=>S.localeValue===d.user.language);l.value=p.length>0?p[0].name:"",n.countryChoices.length||await n.fetchCountryChoices(),x()}}async function U(){B.value||(B.value=!0,v())}const v=K(async()=>{try{const d=await V.updateAutoTransferMode(!f.value);d.succ&&(f.value=d.data.user.autoTransferWallet||!1)}catch{}finally{B.value=!1}}),b=()=>{m.value=!m.value};async function M({lang:d,code:p}){m.value=!1;const S=de.find(W=>W.localeValue===d);l.value=S?S.name:l.value,k(d),t.setLocaleAndCountry(d,p),x(),T(d,p)}const T=K(async(d,p)=>{h.value=!0;try{await V.updateLanguageAndCountry(d.toLowerCase(),p||"")}catch{}finally{h.value=!1}});return(d,p)=>(a(),c("div",Zt,[e("div",null,[e("h3",Qt,r(d.$t("user.language")),1),e("div",Xt,[w(s(ae),{label:d.$t("onboarding.countryLabel"),type:"select",value:s(y),loading:s(h),onClick:b},null,8,["label","value","loading"]),w(s(ae),{label:d.$t("user.language"),type:"select",value:s(l),loading:s(h),onClick:b},null,8,["label","value","loading"])]),w(ke,{open:s(m),"onUpdate:open":p[0]||(p[0]=S=>O(m)?m.value=S:null),dismissible:"","hide-confirm":"",onDone:M},null,8,["open"])]),e("div",null,[e("h3",es,r(d.$t("user.walletSettings")),1),e("div",ts,[w(s(ae),{label:d.$t("user.autoTransfer"),type:"toggle","model-value":s(f),loading:s(B),onClick:U,"onUpdate:modelValue":U},null,8,["label","model-value","loading"])]),e("div",ss,[s(f)?(a(),c(I,{key:0},[e("div",ns,r(d.$t("autoTransfer.info1")),1),e("div",os,r(d.$t("autoTransfer.info2")),1),e("div",as,r(d.$t("autoTransfer.info3")),1)],64)):(a(),c(I,{key:1},[e("div",ls,r(d.$t("autoTransfer.info4")),1),e("div",is,r(d.$t("autoTransfer.info5")),1)],64))])]),p[1]||(p[1]=e("div",{class:"pb-12"},null,-1))]))}},cs=G(rs,[["__scopeId","data-v-ecc7c335"]]),ds={key:0,class:"nav-gap-h-full"},us={class:"flex flex-col"},ps={class:"profile-menu-container"},fs={class:"flex justify-center"},ms={class:"profile-container px-2 w-full h-full"},hs={class:"profile-tab mt-6 flex p-0.5 bg-black/40 rounded-lg text-[11px] overflow-x-auto no-scrollbar whitespace-nowrap border border-white/5"},vs={class:"flex items-center gap-1.5"},gs=["src"],bs={class:"flex items-center gap-1.5"},_s=["src"],ws={class:"flex items-center gap-1.5"},ys=["src"],xs={class:"flex items-center gap-1.5"},ks=["src"],$s={class:"w-full mt-8"},Cs=F({__name:"index",props:{defaultTab:{}},setup(E){const{showMobileLayout:t}=$e(),n=Ce(),k=ce(),L=z(),{supportFiatCurrency:$,supportCryptoCurrency:f}=ue(L),l=i(n.query.activeTab||"profile"),y=m=>{l.value=m,k.push({query:{activeTab:m}})};return(m,h)=>{const B=ve,x=st,A=Bt,U=Wt,v=cs;return s(t)?(a(),c("div",ds,[e("div",us,[w(B),e("div",ps,[e("div",fs,[e("div",ms,[e("div",hs,[e("div",{class:Y(["flex-1 min-w-fit flex justify-center items-center cursor-pointer py-1.5 px-3 rounded-md transition-all duration-200",s(l)==="profile"?"bg-[#3a3a3c] text-white shadow-sm font-medium":"text-white/60 hover:text-white/90 active:bg-white/5"]),onClick:h[0]||(h[0]=b=>y("profile"))},[e("div",vs,[(a(),c("img",{key:0,src:(s(l)==="profile","/images/layout/icn-user.svg"),class:"w-3.5 h-3.5 brightness-0 invert"},null,8,gs)),e("span",null,r(m.$t("menu.submenu.account")),1)])],2),s($)?(a(),c("div",{key:0,class:Y(["flex-1 min-w-fit flex justify-center items-center cursor-pointer py-1.5 px-3 rounded-md transition-all duration-200",s(l)==="bank"?"bg-[#3a3a3c] text-white shadow-sm font-medium":"text-white/60 hover:text-white/90 active:bg-white/5"]),onClick:h[1]||(h[1]=b=>y("bank"))},[e("div",bs,[(a(),c("img",{key:0,src:(s(l)==="bank","/images/button-icon/icn-btn-bank.svg"),class:"w-3.5 h-3.5 brightness-0 invert"}
1,null,8,_s)),e("span",null,r(m.$t("menu.submenu.bankDetails")),1)])],2)):D("",!0),s(f)?(a(),c("div",{key:1,class:Y(["flex-1 min-w-fit flex justify-center items-center cursor-pointer py-1.5 px-3 rounded-md transition-all duration-200",s(l)==="crypto"?"bg-[#3a3a3c] text-white shadow-sm font-medium":"text-white/60 hover:text-white/90 active:bg-white/5"]),onClick:h[2]||(h[2]=b=>y("crypto"))},[e("div",ws,[(a(),c("img",{key:0,src:(s(l)==="crypto","/images/deposit/icn-crypto-transfer.svg"),class:"w-3.5 h-3.5 brightness-0 invert"},null,8,ys)),e("span",null,r(m.$t("menu.submenu.cryptoWhitelistAddressList")),1)])],2)):D("",!0),e("div",{class:Y(["flex-1 min-w-fit flex justify-center items-center cursor-pointer py-1.5 px-3 rounded-md transition-all duration-200",s(l)==="setting"?"bg-[#3a3a3c] text-white shadow-sm font-medium":"text-white/60 hover:text-white/90 active:bg-white/5"]),onClick:h[3]||(h[3]=b=>y("setting"))},[e("div",xs,[(a(),c("img",{key:0,src:s(l)==="setting"?"/images/menu/icn-menu-settings-on.svg":"/images/menu/icn-menu-settings.svg",class:"w-3.5 h-3.5"},null,8,ks)),e("span",null,r(m.$t("menu.settings")),1)])],2)]),e("div",$s,[X(e("div",null,[w(x)],512),[[ee,s(l)==="profile"]]),X(e("div",null,[s($)?(a(),q(A,{key:0})):D("",!0)],512),[[ee,s(l)==="bank"&&s($)]]),X(e("div",null,[s(f)?(a(),q(U,{key:0})):D("",!0)],512),[[ee,s(l)==="crypto"&&s(f)]]),X(e("div",null,[w(v)],512),[[ee,s(l)==="setting"]])])])])])]),h[4]||(h[4]=e("div",{class:"pb-[100px]"},null,-1))])):D("",!0)}}}),Ts=G(Cs,[["__scopeId","data-v-defde9d7"]]);export{Ts 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.