import{Gr as re,St as Pv,Vr as qe}from"./chunk-DR8zdE1B.js";import"./chunk-CQpS8iiQ.js";import{p as X}from"./chunk-CxvfcYSs.js";import"./chunk-MsEEQtoP.js";import"./chunk-CVpwTjII.js";import{t as d}from"./chunk-BxwW_nba.js";import{t as O}from"./chunk-YEoapGtr.js";import"./chunk-D422i2Ov.js";import"./chunk-DUqsfzkA.js";import{n as o}from"./chunk-DLmCbTKP.js";import"./chunk-xqBDYJt4.js";import"./chunk-pNNu8FtZ.js";import"./chunk-CSE6tKJX.js";import{K as r$1,j as H}from"./main-TCMOFVKJ.js";import"./chunk-Ct9z_zec2.js";import{t as d$1}from"./chunk-3MpxMvBG.js";import{t as S}from"./chunk-CM1oW6ZW.js";import{t as m}from"./chunk-Dd4RO7I5.js";var r=(()=>{class e{constructor(o,t){this.router=o,this.store=t}canActivate(o$1,t){return this.store.selectSnapshot(o.isAuthenticated)===!0?!0:this.router.parseUrl(`/auth/inloggen?redirectTo=${t.url}`)}static{this.ɵfac=function(t){return new(t||e)(qe(H),qe(X))}}static{this.ɵprov=re({token:e,factory:e.ɵfac,providedIn:d})}}return e})();var g=(()=>{class e{constructor(o,t){this.store=o,this.api=t}async resolve(o,t){try{let n=this.store.selectSnapshot(r$1.me);return n?(Pv(this.api.logActivity(n.id)),!0):void 0}catch(n){return console.error(n),!0}}static{this.ɵfac=function(t){return new(t||e)(qe(X),qe(O))}}static{this.ɵprov=re({token:e,factory:e.ɵfac,providedIn:`root`})}}return e})();var P=[{path:`admin`,loadChildren:()=>import(`./admin.routes-CerUN5zm.js`).then(e=>e.routes),canActivate:[r,d$1],data:{requiredPermission:`admin`}},{path:`auth`,loadChildren:()=>import(`./auth.routes-DcfDdFe9.js`).then(e=>e.routes)},{path:`documentatie`,loadChildren:()=>import(`./documentation.routes-DrFfY1xJ.js`).then(e=>e.routes)},{path:``,loadChildren:()=>import(`./landing.routes-DhNIGMdd.js`).then(e=>e.routes)},{path:``,resolve:[g,S],children:[{path:`veilig-graven`,loadChildren:()=>import(`./veilig-graven.routes-seqb6ZKG.js`).then(e=>e.routes),canActivate:[r,d$1],data:{requiredPermission:`veilig-graven:overview`}},{path:`bestellen`,loadChildren:()=>import(`./shop.routes-CG_PZ6Eh.js`).then(e=>e.routes),canActivate:[r,m]},{path:`profile`,loadChildren:()=>import(`./profile.routes-BVCkjrxl.js`).then(e=>e.routes),canActivate:[r]},{path:`projects`,loadChildren:()=>import(`./projects.routes-RYoywFAb.js`).then(e=>e.routes),canActivate:[r]},{path:`klic`,loadChildren:()=>import(`./klic.routes-1-jcFGRi.js`).then(e=>e.routes),canActivate:[r]},{path:`export`,loadChildren:()=>import(`./export.routes-CGXPXgoK.js`).then(e=>e.routes),canActivate:[r]}]}];export{P as routes};
//# debugId=9f99ef53-41e1-5b8e-b06b-fe0c434b7f46
//# sourceMappingURL=feature.routes-DoQgTfDm.js.map