import{d as i}from"./chunk-T3GI7KUT.js";import{c as s}from"./chunk-SJCOE5TR.js";import{h as o}from"./chunk-WFMP2IAA.js";import{a}from"./chunk-675OFXLW.js";import{ha as e,na as r}from"./chunk-CKNHTRCL.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};
