"use strict";(self.webpackChunkshell=self.webpackChunkshell||[]).push([["node_modules_bn-ng-idle_fesm2015_bn-ng-idle_js-_1dd31"],{41483:function(e,t,n){n.r(t),n.d(t,{BnNgIdleModule:function(){return s},BnNgIdleService:function(){return o}});var i=n(14468),r=n(71180);class o{constructor(){this.expired$=new r.Subject}startWatching(e){return this.idle$=(0,r.merge)((0,r.fromEvent)(document,"mousemove"),(0,r.fromEvent)(document,"click"),(0,r.fromEvent)(document,"mousedown"),(0,r.fromEvent)(document,"keypress"),(0,r.fromEvent)(document,"DOMMouseScroll"),(0,r.fromEvent)(document,"mousewheel"),(0,r.fromEvent)(document,"touchmove"),(0,r.fromEvent)(document,"MSPointerMove"),(0,r.fromEvent)(window,"mousemove"),(0,r.fromEvent)(window,"resize")),this.timeOutMilliSeconds=1e3*e,this.idleSubscription=this.idle$.subscribe(e=>{this.resetTimer()}),this.startTimer(),this.expired$}startTimer(){this.timer$=(0,r.timer)(this.timeOutMilliSeconds,this.timeOutMilliSeconds).subscribe(e=>{this.expired$.next(!0)})}resetTimer(){this.timer$.unsubscribe(),this.startTimer()}stopTimer(){this.timer$.unsubscribe(),this.idleSubscription.unsubscribe()}}o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=i.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:"root"}),o.ngInjectableDef=(0,i.\u0275\u0275defineInjectable)({factory:function(){return new o},token:o,providedIn:"root"});let s=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=i.\u0275\u0275defineInjector({providers:[o],imports:[[]]}),e})()}}]);