PageSourceSearch

https://www.chitubox.com/chunk-HG7VJ536.js

js chitubox.com collected 2026-10-03 19:32:06 UTC 2,605 bytes, 1 lines download raw bytes

1import{a as R}from"./chunk-GNTX2KLU.js";import{a as S,c as L}from"./chunk-VBFMQXP5.js";import{k as s,l as b}from"./chunk-4YLSSZRK.js";import{o as y,p as I}from"./chunk-3K3X7HVI.js";import{Q as a,U as p,V as i,ea as h,ka as d,uc as v,va as m,x as l}from"./chunk-NHP7KSMD.js";import{a as f,b as g,h as o}from"./chunk-34ZB7CYC.js";var u=class r{constructor(t){this.platform=t;I(this.platform)||this.loadARMS().then(()=>{console.debug(this.armsRum),this.initialize()})}armsRum;configuration;loadARMS(){return o(this,null,function*(){let t=yield import("./chunk-CTIGWRCO.js");this.armsRum=t.default.default||t.default,console.debug(t)})}initialize(){this.configuration=f({},s.armsConfig),this.armsRum.init(this.configuration)}setUserInfo(t,e){this.armsRum&&this.armsRum.setConfig(g(f({},this.armsRum.getConfig()),{user:{name:t,tags:e}}))}sendCustom(t,e,n,c="\u6570\u636E\u57CB\u70B9",k=1){this.armsRum&&this.armsRum.sendCustom({type:t,name:e,group:c,value:k,snapshots:JSON.stringify(n),properties:n})}static \u0275fac=function(e){return new(e||r)(p(m))};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};var C=class r{http=i(L);storage=i(b);platformId=i(m);user=d(null);isLogin=v(()=>this.user()!==null);lastLoginStatus;destroy$=i(h);armsService=i(u);i18n=i(S);constructor(){this.initialize()}setLogin(t){this.user.set(t),this.storage.setCookie("loginFlag",Date.now().toString())}setLogout(){return o(this,null,function*(){yield this.http.getWithPromise(s.server.cas+s.urls.auth.out,{skipInterceptor:!0}),this.user.set(null),this.storage.removeCookie("loginFlag")})}getUserInfo(t=!0){return new Promise((e,n)=>{this.http.get(s.server.cas+s.urls.auth.details,{skipInterceptor:t,successCallback:c=>{e(c)},failedCallback:()=>n()})})}checkLoginStatus(t=!0){return o(this,null,function*(){let e=yield this.getUserInfo(t);return e?(this.setLogin(e),this.armsService.setUserInfo(this.user()?.customerEmail,this.user()?.customerType?this.i18n.instant("common.role."+this.user()?.customerType):"\u672A\u77E5"),!0):(this.setLogout().then(),!1)})}initialize(){y(this.platformId)&&(this.asyncLoginStatus(),this.subscribeDocumentVisibilityChange())}subscribeDocumentVisibilityChange(){l(document,"visibilitychange").pipe(R(this.destroy$)).subscribe(()=>{document.visibilityState==="visible"&&this.asyncLoginStatus()})}asyncLoginStatus(){let t=this.storage.getCookie("loginFlag");t!==this.lastLoginStatus&&(this.lastLoginStatus=t,this.checkLoginStatus(!0).then())}static \u0275fac=function(e){return new(e||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{u as a,C as b};

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.