(window.webpackJsonp=window.webpackJsonp||[]).push([[400],{Qsxj:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n("lGQG");var o=n("F/XL"),r=n("67Y/"),i=n("9Z1F"),s=(n("CGbT"),n("t/Na")),a=n("AytR"),u=function(){function e(e,t,n,o,r){this.auth=e,this.router=t,this.activatedRoute=n,this.http=r,this.original_url=a.a.baseUrl,this.notifier=o}return e.prototype.canActivate=function(e,t){var n=this,s=sessionStorage.getItem("currentUser");if(JSON.parse(s))return this.auth.isAuthenticated().pipe(Object(r.a)((function(e){return!0})),Object(i.a)((function(e){return n.notifier.notify("warning","Your session has expired. Please Log-in again."),n.logoutClick(),setTimeout((function(){n.router.navigate(["/login"],{queryParams:{returnUrl:t.url}})}),3e3),Object(o.a)(!1)})));this.router.navigate(["/login"],{queryParams:{returnUrl:t.url}})},e.prototype.logoutClick=function(){sessionStorage.removeItem("branch1"),sessionStorage.removeItem("branch2"),sessionStorage.removeItem("sidebar"),sessionStorage.removeItem("validatelut"),sessionStorage.removeItem("resumeSeesionApi"),sessionStorage.removeItem("GRNSeesionApi"),sessionStorage.removeItem("POSeesionApi"),sessionStorage.removeItem("requistionSeesionApi"),sessionStorage.removeItem("languageSet"),sessionStorage.removeItem("notificationRecords"),sessionStorage.setItem("languageSet","en");var e=sessionStorage.getItem("currentUser"),t=JSON.parse(e);if(t){sessionStorage.removeItem("currentUser");var n=t.userid,o=new s.h;o=o.append("userid",n),this.http.get(this.original_url+"/Logins/LoginValidation/Logout",{params:o}).subscribe((function(e){}))}},e}()},afvC:function(e,t,n){"use strict";n.r(t);var o=n("CcnG"),r=function(){return function(){}}(),i=n("pMnS"),s=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),a=o["ɵcrt"]({encapsulation:0,styles:[[""]],data:{}});function u(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["ɵted"](-1,null,["da-print works!"]))],null,null)}function c(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,0,null,null,1,"app-da-print",[],null,null,null,u,a)),o["ɵdid"](1,114688,null,0,s,[],null,null)],(function(e,t){e(t,1,0)}),null)}var l=o["ɵccf"]("app-da-print",s,c,{},{},[]),p=n("Ip0R"),g=n("Qsxj"),m=n("lGQG"),d=n("ZYCi"),f=n("CGbT"),h=n("t/Na"),v=function(){return function(){}}();n.d(t,"DaPrintModuleNgFactory",(function(){return S}));var S=o["ɵcmf"](r,[],(function(e){return o["ɵmod"]([o["ɵmpd"](512,o.ComponentFactoryResolver,o["ɵCodegenComponentFactoryResolver"],[[8,[i.a,l]],[3,o.ComponentFactoryResolver],o.NgModuleRef]),o["ɵmpd"](4608,p.NgLocalization,p.NgLocaleLocalization,[o.LOCALE_ID,[2,p["ɵangular_packages_common_common_a"]]]),o["ɵmpd"](4608,g.a,g.a,[m.a,d.Router,d.ActivatedRoute,f.b,h.c]),o["ɵmpd"](1073742336,p.CommonModule,p.CommonModule,[]),o["ɵmpd"](1073742336,d.RouterModule,d.RouterModule,[[2,d["ɵangular_packages_router_router_a"]],[2,d.Router]]),o["ɵmpd"](1073742336,v,v,[]),o["ɵmpd"](1073742336,r,r,[]),o["ɵmpd"](1024,d.ROUTES,(function(){return[[{path:"",component:s,canActivate:[g.a]}]]}),[])])}))},lGQG:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("AytR"),r=n("CcnG"),i=n("t/Na"),s=function(){function e(e){this.http=e,this.original_url=o.a.baseUrl}return e.prototype.isAuthenticated=function(){return this.currentPath=sessionStorage.getItem("currentUser"),this.sessionData=JSON.parse(this.currentPath),this.useraccesstoken=this.sessionData.useraccesstoken,this.userid=this.sessionData.userid,this.http.get(this.original_url+"/Logins/LoginValidation/checkuseraccesstoken?userid="+this.userid+"&token="+this.useraccesstoken)},e.ngInjectableDef=r["ɵɵdefineInjectable"]({factory:function(){return new e(r["ɵɵinject"](i.c))},token:e,providedIn:"root"}),e}()}}]);