PageSourceSearch

https://10608.win/assets/theme-0/navigateToKYC.impl.B4PE5VV-.js

js 10608.win collected 2026-10-09 04:35:13 UTC 2,654 bytes, 1 lines download raw bytes

1import{ce as P,aN as a,bH as b,ka as h,au as q,fJ as K,i4 as T,bw as w,qJ as U,gY as Y,h1 as v,q_ as A,j as F,m as f,qZ as D,dS as J}from"./commonChunk.BIjOjUCX.js";import{j as L,k as H}from"./1_MineChunk.D4xSacn5.js";import{n as M}from"./2_EventDialogsChunk.CEghybjG.js";import{a4 as l}from"./0_EntryLoginRegisterChunk.DEYBGXQ-.js";import{m as B}from"../vendors/vendor-stable.BZTOV27i.js";import"./vendorChunk.B6ure_9S.js";import"./0_WithdrawChunk.BZmRfyng.js";import"./0_RechargeCommonChunk.CfvjGnyg.js";import"./1_AgentCenterChunk.C1eo237I.js";import"../vendors/vendor-swiper.ByVZYtOX.js";import"./1_PromotionChunk.CM3PAnSm.js";import"./1_SearchGameChunk.DPI3iJMb.js";const re=r=>{const n=P();if([a.KYC,a.SECURITY].includes(n.route.name))return!1;const{kycConfig:m,isNeedUpIdSelfieAfterKYC:g,legalFormFieldConfig:{legalUserEkycFace:S,legalUserEkycDoc:y}}=l(),{statusPhone:p}=L(),{enableUsingSms:C}=b(),N=h();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:k}=n.route;i=r.redirectLocation||{name:t,query:E,params:k},e.redirect=encodeURIComponent(JSON.stringify(i))}if(r.needIdSelfie){const t={force:S.isRequired};e.redirect&&(t.redirect=i.name===a.IDSelfie?e.redirect:encodeURIComponent(JSON.stringify({name:a.ROOT}))),e.backNeedRedirect=!0,e.noDialog=!0,e.redirect=encodeURIComponent(JSON.stringify({name:a.IDSelfie,query:t}))}return e},s=()=>r.needIdSelfie&&U(),d=()=>{(r.useReplace?n.replace:n.push)({name:a.KYC,query:c})},{isApp:O,isLite:R,isVest:u}=q.package;if(!O&&!R&&!u&&!K().device.isMobile&&!T())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:o}=l();if(o!=null&&o.isAllow&&o.isAllow!==Y.ALLOW)return v(o.isAllow),!1;const c=I();if(y.isNeedBindPhone&&p.value.type!==H.VERIFICATION&&C){const e=r.isForce;return A(i=>{const t={force2Page:!0,query:{redirect:encodeURIComponent(JSON.stringify({name:a.KYC,query:c})),...e?{forceHideBack:!0}
1:{}},onSuccess(){d()},onCancel(){s()}};F().validateConfigStatus()[f.PHONE]&&(t.query.verification=f.PHONE),i?M(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 J(i),!1}return d(),!0};export{re 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.