PageSourceSearch

https://1007bet.ai/assets/theme-0/navigateToKYC.impl.DMDpyDGZ.js

js 1007bet.ai collected 2026-10-05 11:47:57 UTC 2,691 bytes, 1 lines download raw bytes

1import{cU as k,az as o,cp as b,j8 as h,P as K,fN as T,hL as U,aw as w,o_ as q,gM as v,gR as A,pf as F,B as Y,H as f,pe as L,aL as D}from"./commonChunk.NaF3o1Ou.js";import{i as J,j as M}from"./1_MineChunk.BY1paOKb.js";import{n as B}from"./2_EventDialogsChunk.Db6xAkEj.js";import{bc as l}from"./0_EntryLoginRegisterChunk.CrIfjdaf.js";import{k as H}from"../vendors/vendor-stable.C7xqpJ6l.js";import"./vendorChunk.DAT6JrsC.js";import"./0_RechargeDialogsChunk.ZTypCM84.js";import"./0_WithdrawChunk.Br6jEtvg.js";import"./1_AgentCenterChunk.D2gdgCWC.js";import"../vendors/vendor-swiper.DSkbGEu5.js";import"./1_PromotionChunk.B9F99oTu.js";import"./1_PromoteChunk.D6eLHg8S.js";import"./1_SearchGameChunk.PMSthjB4.js";const ie=r=>{const n=k();if([o.KYC,o.SECURITY].includes(n.route.name))return!1;const{kycConfig:g,isNeedUpIdSelfieAfterKYC:m,legalFormFieldConfig:{legalUserEkycFace:S,legalUserEkycDoc:p}}=l(),{statusPhone:y}=J(),{enableUsingSms:C}=b(),N=h();r=H({needRedirect:!0,isForce:g.isRequired,needIdSelfie:m,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:S.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&&q(),d=()=>{(r.useReplace?n.replace:n.push)({name:o.KYC,query:c})},{isApp:R,isLite:O,isVest:u}=K.package;if(!R&&!O&&!u&&!T().device.isMobile&&!U())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!==v.ALLOW)return A(a.isAllow),!1;const c=I();if(p.isNeedBindPhone&&y.value.type!==M.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?B(t):s()},e),!1}if(u){const e=L(c,{stringify:!0,doNotEncodeKeys:"*"}),i=`${location.origin}/home/kyc?_ti=${window.btoa(JSON.stringify(N.tokenInfos))}&${e}`;return D(i),!1}return d(),!0};export{ie 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.