1import{bz as f,a as n,b0 as s,K as l,by as m}from"./commonChunk.BIjOjUCX.js";import{G as c}from"./gt.CJqL2NvM.js";import{m as u}from"../vendors/vendor-stable.BZTOV27i.js";import"./vendorChunk.B6ure_9S.js";import"./helper.GG_7Pckc.js";const N={codes:[f.GEE_TOKEN_ERROR],includes(e){return this.codes.includes(e)},decorator(e,i){const{code:r,msg:t}=m(i),d=this.includes(r)&&t;if(d){const a=n(),o={geetestDeviceAppId:t,geetestDeviceAndroidAppId:t,geetestDeviceIOSAppId:t};e==="login"&&(o.loginDeviceVerify=s.OPEN),e==="register"&&(o.registerDeviceVerify=s.OPEN),a.setSystemInfos({...a.systemInfos,...o})}return d},getToken(){return c.getToken()},async preload(e){const i=n().systemInfos,r=(i==null?void 0:i.loginDeviceVerify)===s.OPEN,t=(i==null?void 0:i.registerDeviceVerify)===s.OPEN;if(e==="login"&&!r||e==="register"&&!t){l.info("gt@disabled","preload",e);return}return c.preload()},async withRequestConfig(e,i){const r=n().systemInfos,t=(r==null?void 0:r.loginDeviceVerify)===s.OPEN,g=(r==null?void 0:r.registerDeviceVerify)===s.OPEN;return e==="login"&&!t||e==="register"&&!g?(l.info("gt@disabled",e),u(i,{data:{geeToken:"disabled"}})):c.withRequestConfig(i)}};export{N as riskDevice};
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.