PageSourceSearch

https://www.0876ww.com/assets/theme-0/navigateToKYC.impl.Ca4bCYJY.js

js 0876ww.com collected 2026-10-09 04:37:41 UTC 2,730 bytes, 1 lines download raw bytes

1import{cV as k,aA as o,cq as h,ji as K,P as T,fW as b,hH as q,ax as w,pq as A,gJ as U,gO as v,pH as F,B as Y,H as f,pG as D,aL as L}from"./commonChunk.CbHrP2ip.js";import{w as H,x as J}from"./1_MineChunk.CPGTMigo.js";import{n as x}from"./2_EventDialogsChunk.Chwoa1q4.js";import{aN as l}from"./0_EntryLoginRegisterChunk.DMUz1wnE.js";import{k as B}from"../vendors/vendor-stable.CbjAnMzp.js";import"./vendorChunk.96TTY5fG.js";import"./0_RechargeCommonChunk.DDWWiKeW.js";import"./0_WithdrawChunk.B8tEuVYo.js";import"./1_AgentCenterChunk.qBSEz8xL.js";import"../vendors/vendor-swiper.Bq2sw0Pq.js";import"./1_PromotionChunk.DiibOkmm.js";import"./1_PromoteChunk.PKn1eerk.js";import"./1_ClubRebateChunk.DdJFd5ov.js";import"./1_SearchGameChunk.DPxG-dhI.js";const te=r=>{const n=k();if([o.KYC,o.SECURITY].includes(n.route.name))return!1;const{kycConfig:m,isNeedUpIdSelfieAfterKYC:g,legalFormFieldConfig:{legalUserEkycFace:p,legalUserEkycDoc:S}}=l(),{statusPhone:y}=H(),{enableUsingSms:C}=h(),N=K();r=B({needRedirect:!0,isForce:m.isRequired,needIdSelfie:g,needIdSelfieOptions:{whenTriggerNotSupportOS:!0},useReplace:!1},r);const I=()=>{const e={};let i={};if(r.isForce&&(e.force=!0),r.sceneCode&&(e.sceneCode=r.sceneCode),r.backNeedRedirect&&(e.backNeedRedirect=r.backNeedRedirect),r.needRedirect&&(!r.useReplace||r.redirectLocation)){const{name:t,query:E,params:P}=n.route;i=r.redirectLocation||{name:t,query:E,params:P},e.redirect=encodeURIComponent(JSON.stringify(i))}if(r.needIdSelfie){const t={force:p.isRequired};e.redirect&&(t.redirect=i.name===o.IDSelfie?e.redirect:encodeURIComponent(JSON.stringify({name:o.ROOT}))),e.backNeedRedirect=!0,e.noDialog=!0,e.redirect=encodeURIComponent(JSON.stringify({name:o.IDSelfie,query:t}))}return e},s=()=>r.needIdSelfie&&A(),d=()=>{(r.useReplace?n.replace:n.push)({name:o.KYC,query:c})},{isApp:O,isLite:R,isVest:u}=T.package;if(!O&&!R&&!u&&!b().device.isMobile&&!q())return w().open("kycNeedMobile",{openType:r.needMobileDialogOpenType||"insert",options:{onClose:()=>{var e;return((e=r.needIdSelfieOptions)==null?void 0:e.whenTriggerNotSupportOS)&&s()}}}),!1;const{kycDynamicConfig:a}=l();if(a!=null&&a.isAllow&&a.isAllow!==U.ALLOW)return v(a.isAllow),!1;const c=I();if(S.isNeedBindPhone&&y.value.type!==J.VERIFICATION&&C){const e=r.isForce;return F(i=>{const t={force2Page:!0,query:{redirect:encodeURIComponent(JSON.stringify({name:o.KYC,query:c})),...e?{forceHideBack:!0}
1:{}},onSuccess(){d()},onCancel(){s()}};Y().validateConfigStatus()[f.PHONE]&&(t.query.verification=f.PHONE),i?x(t):s()},e),!1}if(u){const e=D(c,{stringify:!0,doNotEncodeKeys:"*"}),i=`${location.origin}/home/kyc?_ti=${window.btoa(JSON.stringify(N.tokenInfos))}&${e}`;return L(i),!1}return d(),!0};export{te as navigateToKYC};

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.