import {J,c as tS,aa as ye,ad as ce,a5 as fh,ev as ne,a9 as zt,ah as ot,ew as Ie,a7 as si,aq as Sr,ac as Dr,G as vl,Y}from'./main-WUGO6e7n.js';var d$1,h=J(()=>{fh();tS();si();d$1=(()=>{class r{constructor(e){this.currentUserService=e;}getCurrentUser(){return this.currentUserService.currentUserChanged.pipe(Sr(e=>!!e),zt(1),ot(e=>({id:this.currentUserService.currentUserId,name:e.userName,isAdministrator:this.currentUserService.isAdministrator})))}static{this.\u0275fac=function(t){return new(t||r)(ye(Dr))};}static{this.\u0275prov=ce({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();});var y,I=J(()=>{tS();h();y=(()=>{class r{constructor(e){this.dpsCurrentUserService=e;}resolve(e,t){return this.dpsCurrentUserService.getCurrentUser()}static{this.\u0275fac=function(t){return new(t||r)(ye(d$1))};}static{this.\u0275prov=ce({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();});var x,j=J(()=>{fh();tS();ne();x=(()=>{class r{constructor(e){this.userService=e;}resolve(e){return this.userService.getUserSummaries().pipe(zt(1),ot(()=>!0))}static{this.\u0275fac=function(t){return new(t||r)(ye(Ie))};}static{this.\u0275prov=ce({token:r,factory:r.\u0275fac,providedIn:"root"});}}return r})();});var d,m=J(()=>{tS();si();vl();d=(()=>{class t{constructor(e,r){this.currentUserService=e,this.router=r;}canActivate(e,r){return !this.currentUserService.isAdministrator&&!this.currentUserService.accessSnapshot.hasAccessPam?(this.router.navigate(["/connections"]),!1):!0}static{this.\u0275fac=function(r){return new(r||t)(ye(Dr),ye(Y))};}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();});export{I,d,j,m,x,y};