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-RJ36FPPO.js";import"./chunk-Ct9z_zec2.js";import{t as d$1}from"./chunk-C0y5r-KF.js";import{t as S}from"./chunk-CzB3Bndr.js";import{t as m}from"./chunk-KET_oDc-2.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-nbFLg8e6.js`).then(e=>e.routes),canActivate:[r,d$1],data:{requiredPermission:`admin`}},{path:`auth`,loadChildren:()=>import(`./auth.routes-6ngIFsC8.js`).then(e=>e.routes)},{path:`documentatie`,loadChildren:()=>import(`./documentation.routes-BUcp9BNF.js`).then(e=>e.routes)},{path:``,loadChildren:()=>import(`./landing.routes-HExSS_T7.js`).then(e=>e.routes)},{path:``,resolve:[g,S],children:[{path:`veilig-graven`,loadChildren:()=>import(`./veilig-graven.routes-D3lnV_s4.js`).then(e=>e.routes),canActivate:[r,d$1],data:{requiredPermission:`veilig-graven:overview`}},{path:`bestellen`,loadChildren:()=>import(`./shop.routes-WUrfwVFU.js`).then(e=>e.routes),canActivate:[r,m]},{path:`profile`,loadChildren:()=>import(`./profile.routes-CW89kLs4.js`).then(e=>e.routes),canActivate:[r]},{path:`projects`,loadChildren:()=>import(`./projects.routes-6Ipdj9VX.js`).then(e=>e.routes),canActivate:[r]},{path:`klic`,loadChildren:()=>import(`./klic.routes-CNVdc1nH.js`).then(e=>e.routes),canActivate:[r]},{path:`export`,loadChildren:()=>import(`./export.routes-CHFD1980.js`).then(e=>e.routes),canActivate:[r]}]}];export{P as routes};
//# debugId=2617831f-f125-583d-9d23-90dd523d3afa
//# sourceMappingURL=feature.routes-D2QUpdI0.js.map