PageSourceSearch

https://hlthlucky77.com/_nuxt/Bdi5ZYTi.js

js hlthlucky77.com collected 2026-10-10 01:54:12 UTC 9,747 bytes, 1 lines download raw bytes

1import{n as j,cO as De,bO as Pe,E as oe,bx as Te,f as ie,I as Ue,B as f,e as Fe,g as Oe,q as Me,ac as Ne,ab as Le,i as $e,aJ as je,aj as qe,a5 as Ke,aF as Ee,ak as Ie,p as ze,bP as Ge,L as M,J as Re,a1 as Je,o as l,c,a as o,t as u,h as e,j as We,w as U,d as N,z as Ye,v as w,y as L,O as ee,aH as te,b as A,F as ne,x as ae,V as He,P as se,S as Qe,A as p,D as $}from"./ZgEtcHOw.js";import{i as Xe,u as Ze,F as et}from"./BoVjyah0.js";import{M as tt}from"./4YBuBJfd.js";import{g as nt,a as at}from"./DVLRDngg.js";import{u as st}from"./DKqR5W8p.js";import"./BhWWqLXp.js";import"./DSEn01dk.js";import"./Ch8bdBXO.js";import"./BsjQeDyA.js";import"./ASrnC_3E.js";function ot(){const{$api:V}=j(),C=De();async function a(y){return await V.patch(oe.bank_account,{id:y.id,is_default:y.is_default})}return Pe({mutationKey:["set_default_account"],mutationFn:a,onSuccess(){C.invalidateQueries({queryKey:["profile"]})}})}function it(){const{$api:V}=j(),{data:C}=Te(),a=ie(),y=f(()=>C.value?.language_id);async function S(){return await V.get(oe.bank_branch_information_language,{query:{pb:!0,language_id:y.value}})}return Ue({queryKey:["bank_branch_lang_types",y],enabled:f(()=>a.current_currency?.code==="JPY"),queryFn:S})}const rt={class:"flex flex-col gap-4 md:gap-6 w-full"},lt={class:"flex justify-between items-center"},ct={class:"font-bold text-base md:text-lg text-t-secondary"},ut={class:"text-none-select"},dt={class:"tab-container"},ft={class:"pt-6"},_t={class:"register-form-container"},mt={class:"pt-6"},pt={class:"md:hidden mb-4"},yt={class:"mb-6"},vt={class:"text-sm font-bold text-t-secondary mb-3"},ht={class:"bg-table-secondary rounded-2xl overflow-hidden"},bt={key:0,class:"flex justify-center items-center py-8 min-h-[141px]"},kt={key:0,class:"absolute bottom-0 left-5 right-5 h-px bg-horizontal-rule"},gt={class:"flex w-full min-w-0 items-center justify-between gap-3 p-5"},xt={class:"flex-shrink-0 w-[66px] h-[44px] rounded-[10px] overflow-hidden bg-white"},wt=["src"],At={class:"flex w-0 flex-1 flex-col overflow-hidden"},Ct={class:"text-sm font-bold text-t-secondary truncate"},Bt={key:0,class:"text-sm text-t-secondary truncate"},Vt={class:"block w-full min-w-0 truncate text-sm text-none-select"},St={class:"flex-shrink-0"},Dt={key:0,class:"text-xs text-t-secondary border-gradient rounded-[8px] px-3 content-center h-[27px]"},Pt=["onClick","onMouseenter"],Tt={class:"w-full h-full rounded-full bg-table-secondary flex items-center justify-center"},Ut={key:0,class:"w-[6px] h-[6px] rounded-full bg-gradient-to-r from-left-btn to-right-btn"},Ft={key:2,class:"flex justify-center items-center py-5 min-h-[141px] text-sm text-none-select"},Jt=Fe({__name:"verification",setup(V){Oe.extend(Xe);const{$scrollToFirstError:C}=j(),{t:a}=Me(),y=Ne(),S=Le(),x=$e(),{data:Ot,isLoading:q}=je(),{data:Mt}=qe(),{handleBankVerifyNameError:re,isBankUserNotFoundError:le}=Ze(),{data:F}=nt(),{data:v,refetch:K}=Ke(),{data:d,refetch:ce}=at(),{mutateAsync:ue}=ot(),{data:de}=it(),fe=ie(),E=p(!1),I=p(!1),_=Ee("formDetail"),D=p(!1),{data:Nt}=Ie(),{hasGameData:_e,alertVerifiedAndPlayGame:me,removeGameData:pe}=st(),h=p("account_details"),k=p(!1),b=p(null),m=p(!1),P=p(null),g=p(!1),O=p([]),{isMobile:ye}=ze(),z=[{key:"BANK",i18nKey:"profile.step2.bank_account",no_item:"profile.step2.bank"},{key:"WALLET",i18nKey:"profile.step2.ewallet_account",no_item:"profile.step2.ewallet"},{key:"CRYPTO",i18nKey:"profile.step2.bank_account_crypto",no_item:"profile.step2.crypto"}],G=f(()=>x.showVerifyBank?x.isProfileBankUpdated:x.isProfileUpdated),ve=f(()=>_?.value?.formChanged),{isWaitingVerify:he}=Ge(null),be=f(()=>!!(v.value?.payment_accounts||[]).length),ke=f(()=>G.value||be.value),ge=f(()=>D.value||he.value?!0:G.value?!ve.value:!1),xe=f(()=>{if(!d.value||d.value.length===0)return z;const t=d.value.map(n=>n.type);return z.filter(n=>t.includes(n.key))}),T=f(()=>!d.value||d.value.length===0?!1:d.value.length===1&&d.value[0].type==="CRYPTO"),we=t=>d.value?.find(r=>r.type===t)?.default_status??!1,R=f(()=>!d.value||d.value.length===0?!1:d.value.every(t=>B(t.type).length>=(t.limit_member_account||0))),Ae=async()=>{_e.value&&await me(),await $("success",{title:a("register.success_title_profile"),text:a("register.success_text_profile"),confirmButtonText:a("alert_msg.deposit_now"),showCancelButton:!0})&&S.openWalletModal()},J=async()=>{D.value=!0;try{if(!(await _.value?.validateForm()??!1)){C(document.querySelector("html"));return}if(!await $("question",{title:a("profile.confirm_update_your_profile_title"),text:a("profile.confirm_update_your_profile_text")})||!await y.checkValidAge(_.value?.DOB)&&_.value?.DOB)return;await y.updateUserProfile({..._.value,type:_.value?.selectedAccountType})&&await Ae()}catch(t){if(le(t)){await re(t,_);return}console.error("Profile update error:",t)}finally{D.value=!1}},B=t=>O.value.filter(n=>n.account_type===t),W=t=>{try{return t.bank_information?.bank_rectangles_icon||""}catch{return""}},Ce=f(()=>fe.current_currency?.code==="JPY"),Be=t=>de.value?.find(r=>r.id===t)?.name||"",Y=()=>{g.value=!0;try{O.value=[];const t=v.value?.payment_accounts||[];O.value=t.map(n=>{const r=F.value?.find(i=>i.id===n.bank_currency_information_id);return{id:n.account_id,bank_currency_information_id:n.bank_currency_information_id,bank_code:n.bank_code,bank_branch_information_id:n.bank_branch_information_id||"",bank_name:r?.bank_information?.bank_information_languages?.bank_name_display||"",bank_no:n.bank_no,account_type:r?.bank_information?.account_type,is_default:n.is_default,first_name:v.value?.first_name||"",last_name:v.value?.last_name||"",bank_information:r?.bank_information||null}})}catch(t){console.error(t)}finally{g.value=!1}},Ve=async(t,n)=>{const r=B(n).find(s=>s.is_default);if(r&&r.id===t.id)return;if(b.value=t.id,await $("question",{title:a("user.confirm_default_title"),text:a("user.confirm_default_desc"),confirmButtonText:a("confirm")}))try{await ue({id:t.id,is_default:!0}),await H()}catch(s){console.error(s),ce()}b.value=null},H=async()=>{await K(),Y()},Q=async()=>
1{if(!m.value){m.value=!0;try{if(!await x.checkVerifiedUser({context:"verification"}))return;k.value=!0}catch(t){console.error(t)}finally{m.value=!1}}},X=async t=>{if(t!=="my_accounts"){h.value=t;return}if(!m.value){m.value=!0;try{if(!await x.checkVerifiedUser({context:"verification"})){h.value="account_details";return}h.value=t}catch(n){console.error(n)}finally{m.value=!1}}};return M(()=>_.value?.bank_password,(t,n)=>{v.value?.bank_password===t?E.value=!1:E.value=!0}),M(()=>_.value?.channal,(t,n)=>{v.value?.register_channal_id!=t?I.value=!0:I.value=!1}),Re(()=>{K()}),Je(()=>{pe()}),M([v,F],()=>{v.value&&F.value&&Y()},{immediate:!0}),(t,n)=>{const r=Ye;return l(),c("div",rt,[o("div",lt,[o("span",ct,u(e(a)("register.verification_setup")),1),e(h)==="my_accounts"?(l(),We(r,{key:0,class:"hidden md:flex md:w-fit",disabled:e(R)||e(m),loading:e(m),onClick:Q},{default:U(()=>[N(u(e(T)?e(a)("user.add_crypto_account"):e(a)("user.add_new_account")),1)]),_:1},8,["disabled","loading"])):w("",!0)]),o("div",ut,[o("div",dt,[o("span",{class:L(["tab-item",{"tab-item-active":e(h)==="account_details"}]),onClick:n[0]||(n[0]=i=>X("account_details"))},u(e(a)("user.account_details")),3),o("span",{class:L(["tab-item",{"tab-item-active":e(h)==="my_accounts"}]),onClick:n[1]||(n[1]=i=>X("my_accounts"))}
1,u(e(a)("user.my_accounts")),3)]),ee(o("div",ft,[A(et,{ref_key:"formDetail",ref:_,"show-label":!0,"verify-page":null,"is-crypto-only":e(T),"hide-bank-information":e(ke),onSubmit:J},null,8,["is-crypto-only","hide-bank-information"]),o("div",_t,[A(r,{disabled:e(ge),loading:e(D),class:"w-full mt-8 h-[42px]",onClick:J},{default:U(()=>[N(u(e(a)("user.save_change")),1)]),_:1},8,["disabled","loading"])])],512),[[te,!e(q)&&e(h)==="account_details"]]),ee(o("div",mt,[o("div",pt,[A(r,{class:"w-full h-10",disabled:e(R)||e(g)||e(m),loading:e(m),onClick:Q},{default:U(()=>[N(u(e(T)?e(a)("user.add_crypto_account"):e(a)("user.add_new_account")),1)]),_:1},8,["disabled","loading"])]),o("div",yt,u(e(a)("user.my_account_desc")),1),(l(!0),c(ne,null,ae(e(xe),i=>(l(),c("div",{key:i.key,class:"mb-6"},[o("div",vt,u(e(a)(i.i18nKey)),1),o("div",ht,[e(g)?(l(),c("div",bt,[A(He,{indeterminate:"",color:"primary",size:"32"})])):B(i.key).length>0?(l(!0),c(ne,{key:1},ae(B(i.key),(s,Se)=>(l(),c("div",{key:s.id,class:"relative"},[Se<B(i.key).length-1?(l(),c("div",kt)):w("",!0),o("div",gt,[o("div",xt,[W(s)?(l(),c("img",{key:0,src:W(s),alt:"",class:"h-full object-cover mx-auto"},null,8,wt)):w("",!0)]),o("div",At,[o("span",Ct,u(e(ye)?s.bank_code:s.bank_name),1),e(Ce)&&s.bank_branch_information_id?(l(),c("span",Bt,u(Be(s.bank_branch_information_id)),1)):w("",!0),o("span",Vt,u(i.key!=="BANK"?s.bank_no:t.$bankFormat(s.bank_no)),1)]),o("div",St,[s.is_default?(l(),c("div",Dt,u(e(a)("user.default_account")),1)):we(i.key)?(l(),c("div",{key:1,class:L(["w-[14px] h-[14px] rounded-full p-[1px] transition-all",{"cursor-pointer":!(e(g)||e(b)!==null),"cursor-not-allowed opacity-50":e(g)||e(b)!==null,"bg-gradient-to-r from-left-btn to-right-btn":e(b)===s.id||e(P)===s.id,"bg-none-select":e(b)!==s.id&&e(P)!==s.id}]),onClick:Z=>!(e(g)||e(b)!==null)&&Ve(s,i.key),onMouseenter:Z=>P.value=s.id,onMouseleave:n[2]||(n[2]=Z=>P.value=null)},[o("div",Tt,[e(b)===s.id?(l(),c("div",Ut)):w("",!0)])],42,Pt)):w("",!0)])])]))),128)):(l(),c("div",Ft,u(e(a)("user.no_account_message",[e(a)(i.no_item)])),1))])]))),128))],512),[[te,!e(q)&&e(h)==="my_accounts"]])]),A(Qe,{modelValue:e(k),"onUpdate:modelValue":n[4]||(n[4]=i=>se(k)?k.value=i:null)},{default:U(()=>[A(tt,{modelValue:e(k),"onUpdate:modelValue":n[3]||(n[3]=i=>se(k)?k.value=i:null),"is-crypto-only":e(T),"is-setting":!0,onSuccess:H},null,8,["modelValue","is-crypto-only"])]),_:1},8,["modelValue"])])}}});export{Jt 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.