1import{De as u,Ee as f,F as l,I as i,Zb as c,fd as a,he as h,ye as p}from"./chunk-L3R4CA6E.js";var H=(()=>{let e=class e{constructor(r,t,s,n,v,g){this.confirmService=r,this.config=t,this.logger=s,this.router=n,this.shopGuardHelperService=v,this.shopguardService=g,this.interval=null}start(){if(this.config.shopGuardEnabled===!0){let r=+this.config.shopGuardActivityPingInterval*1e3;this.interval=setInterval(()=>{this.pingService()},r)}}stop(){this.interval!==null&&clearInterval(this.interval)}pingService(){let r=this.shopGuardHelperService.getQueueToken(),t=this.shopGuardHelperService.getCurrentResourceUID();r===null||t===null?this.logger.log("No token to ping"):this.shopguardService.refreshToken(t,r).subscribe(s=>{if(this.shopGuardHelperService.storeToken(s),this.shopGuardHelperService.handleCurrentStatus()===!1){this.logger.log("Ow no, token expired"),this.router.navigate(["/queue"]);return}})}};e.\u0275fac=function(t){return new(t||e)(i(p),i(a),i(h),i(c),i(f),i(u))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let o=e;return o})();export{H 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.