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{G as r$1,j as H}from"./main-JSOOYVJ3.js";import"./chunk-Ct9z_zec2.js";import{t as d$1}from"./chunk-HdwN8Gr5.js";import{t as S}from"./chunk-B1Mhf2nN.js";import{t as m}from"./chunk-HmZCwBrD2.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-C4srAOH1.js`).then(e=>e.routes),canActivate:[r,d$1],data:{requiredPermission:`admin`}},{path:`auth`,loadChildren:()=>import(`./auth.routes-BOHzH-4u.js`).then(e=>e.routes)},{path:`documentatie`,loadChildren:()=>import(`./documentation.routes-BjQkWWvn.js`).then(e=>e.routes)},{path:``,loadChildren:()=>import(`./landing.routes-p1g2kNb3.js`).then(e=>e.routes)},{path:``,resolve:[g,S],children:[{path:`veilig-graven`,loadChildren:()=>import(`./veilig-graven.routes-DzYLYR5k.js`).then(e=>e.routes),canActivate:[r,d$1],data:{requiredPermission:`veilig-graven:overview`}},{path:`bestellen`,loadChildren:()=>import(`./shop.routes-DuQUrBUb.js`).then(e=>e.routes),canActivate:[r,m]},{path:`profile`,loadChildren:()=>import(`./profile.routes-Br8BXwcM.js`).then(e=>e.routes),canActivate:[r]},{path:`projects`,loadChildren:()=>import(`./projects.routes-CcpVjkcb.js`).then(e=>e.routes),canActivate:[r]},{path:`klic`,loadChildren:()=>import(`./klic.routes-O4vBWGXw.js`).then(e=>e.routes),canActivate:[r]},{path:`export`,loadChildren:()=>import(`./export.routes-NrkAYngQ.js`).then(e=>e.routes),canActivate:[r]}]}];export{P as routes};
//# debugId=2996b3fc-2555-5d59-8027-eedbbdf45b2c
//# sourceMappingURL=feature.routes-ByGXB_LM.js.map