1import{f as l}from"./chunk-XWGGXTBH.js";import{a as u}from"./chunk-NTCDGAR3.js";import{l as c}from"./chunk-WX25E2HZ.js";import{b as m}from"./chunk-OLSNRRTA.js";import{j as h}from"./chunk-GJNXMHJK.js";import{Fa as o,Ja as r,Ka as n,Me as a}from"./chunk-7DV7UWC6.js";a();a();var I=(()=>{class i{constructor(e,t,d){this.authService=e,this.store=t,this.router=d,this.loginUrl="/auth/login",this.returnUrl="/",this.toast=n(u),this.subscription=this.store.select(m).subscribe(s=>{console.log("isAuthenticated",s),this.isAuthenticated=s;let f=this.isAdmin();this.isAuthenticated!=null&&!this.isAuthenticated?this.router.navigate([this.loginUrl],{queryParams:{returnUrl:this.returnUrl}}):s&&!f&&(this.router.navigate(["/"]),this.toast.toast("You are not authorized to access this page",3e3,"red"))})}canActivate(e,t){return t.hasGaurd=!0,console.log("this.isAuthenticated ",this.isAuthenticated),this.isAuthenticated!=null&&this.isAuthenticated?this.isAdmin():!0}isAdmin(){let e=this.authService.currentUser?.email||"",t=btoa(btoa(e));return this.authService.SUPER_ADMINS.includes(t)}static{this.\u0275fac=function(t){return new(t||i)(r(l),r(h),r(c))}}static{this.\u0275prov=o({token:i,factory:i.\u0275fac})}}return i})();export{I 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.