1import{u as v,v as I,x as y}from"./chunk-2RZNBXEW.js";import{e as S,k as p,sa as u}from"./chunk-LKIBVTZY.js";import{e as f,j as a}from"./chunk-LZGEQQYD.js";import{$b as s,Ea as g,K as c,Ob as m,X as l,hb as h}from"./chunk-BW2TMJN6.js";var j=(()=>{let i=class i{constructor(o,e,t,n){this.httpService=o,this.globalData=e,this.languageService=t,this.storageService=n,this.syncInFlight$=null}syncLoginStateByAccountData(o){if(this.syncInFlight$)return this.syncInFlight$;let e=o||this.languageService.language||this.storageService.getStorage("language")||"en-US";return this.syncInFlight$=this.httpService.getAccountData({language:e}).pipe(s(t=>{(t==null?void 0:t.code)===0&&(localStorage.removeItem(v),sessionStorage.removeItem(I),sessionStorage.removeItem("needCloseAfterRefresh"))}),l(t=>(t==null?void 0:t.code)===0?!0:this.globalData.isLogin),g(()=>c(this.globalData.isLogin)),s(t=>{let n=this.globalData.isLogin!==t;this.globalData.isLogin=t,localStorage.setItem("isLogin",String(t)),n&&this.globalData.loginSub$.next(t)}),h(()=>{this.syncInFlight$=null}),m(1)),this.syncInFlight$}};i.\u0275fac=function(e){return new(e||i)(a(y),a(u),a(p),a(S))},i.\u0275prov=f({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();export{j as a};
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.