import{d as i}from"./chunk-2IW5LNPB.js";import{c as s}from"./chunk-3BSCFEML.js";import{h as o}from"./chunk-P3JWYVN7.js";import{a}from"./chunk-QIWZD5HO.js";import{ga as e,ma as r}from"./chunk-6JZDPQRU.js";var v=(()=>{class t{$auth=r(s);$router=r(i);$translate=r(a);$toastr=r(o);constructor(){}canActivate(){return this.$auth.user&&this.$auth.user.admin?!0:(this.$toastr.error(this.$translate.instant("toast.no_auth"),this.$translate.instant("toast.title_error")),this.$router.navigate(["/"]),!1)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{v as a};
