1import{a as y}from"./chunk-QSAMTJWP.js";import{a as g}from"./chunk-AAY6DUNE.js";import{b as C}from"./chunk-WSDUYUH5.js";import{c as w}from"./chunk-ARE7LYCZ.js";import"./chunk-UEGTKENG.js";import"./chunk-LLLMNSEC.js";import{e as f}from"./chunk-RFCKCFAV.js";import{a as v}from"./chunk-VAEACQFW.js";import{g as u}from"./chunk-UKI3P5XO.js";import"./chunk-VGXSXI5J.js";import"./chunk-XFEOO4TY.js";import"./chunk-PF35LDE3.js";import"./chunk-VBPJ5DRZ.js";import"./chunk-M7IIYPYL.js";import"./chunk-7UJTMH4R.js";import"./chunk-IQWFVERN.js";import"./chunk-BKF7GJNS.js";import"./chunk-KJY6N5PL.js";import{ka as c}from"./chunk-JMQPEIEX.js";import"./chunk-EU2KAMEK.js";import{k as m}from"./chunk-J4XOFOAH.js";function h(e){let r=e;for(;r;){let n=r.paramMap.get("moduleKey");if(n)return n;r=r.parent}return""}var S=e=>m(null,null,function*(){let r=c(y),n=c(u),o=h(e);try{if(yield r.ensureRegistered(o))return!0}catch(d){console.error("[nativeSharedModuleGuard] Impossibile caricare il modulo",o,d)}return n.createUrlTree(["/home"])}),a=e=>m(null,null,function*(){let r=c(w),n=c(v),o=c(u),d=h(e);try{yield n.waitForAuthInit();let p=yield n.getUserData(),i=String((yield n.getIdpaese())||"").trim().toLowerCase(),l=String(e.paramMap.get("idpaese")||"").trim().toLowerCase(),A=l||i;if(!p||!A)return o.createUrlTree(["/home"]);if(l&&i&&l!==i)return o.createUrlTree(["/home"]);let b=C(p),P=String(e.routeConfig?.path||"");return b&&P.startsWith("admin-")?o.createUrlTree(["/home"]):(yield r.canAccessModule(A,d,p,b))?!0:o.createUrlTree(["/home"])}catch(p){return console.error("[nativeSharedCountryAccessGuard] Accesso negato",d,p),o.createUrlTree(["/home"])}}),U=e=>h(e);function s(e){return r=>m(null,null,function*(){let n=c(y),o=c(u),d=c(v),p=h(r),i=yield n.ensureRegistered(p);if(i&&f(i,e))return!0;if(i){yield d.waitForAuthInit();let l=yield d.getUserData();return C(l)?o.parseUrl(`/${i.baseRoute}/user-bando-viewall`):o.parseUrl(`/${i.baseRoute}/admin-bando-viewall/pubblicato`)}return o.createUrlTree(["/home"])})}var t={moduleKey:U},L=[{path:":moduleKey",canActivate:[g,S],children:[{path:"admin-bando-viewall/:status",loadComponent:()=>import("./chunk-PBPW74QB.js").then(e=>e.BandoViewallComponent),resolve:t,canActivate:[a]},{path:"user-bando-viewall",loadComponent:()=>import("./chunk-QGPT25HA.js").then(e=>e.UserBandoViewallComponent),resolve:t,canActivate:[a]},{path:"admin-bando-create",loadComponent:()=>import("./chunk-ZKGL5VL6.js").then(e=>e.BandoCreateComponent),resolve:t,canActivate:[a]},{path:"admin-bando-update/:idbando",loadComponent:()=>import("./chunk-OZ4EVTTF.js").then(e=>e.BandoUpdateComponent),resolve:t,canActivate:[a]},{path:"admin-pratica-viewall/:idbando",loadComponent:()=>import("./chunk-CEQ5KHDV.js").then(e=>e.PraticaViewallComponent),resolve:t,canActivate:[a]},{path:"user-pratica-create/:idpaese/:idbando/:idpratica",loadComponent:()=>import("./chunk-NX7IACP6.js").then(e=>e.UserPraticaCreateComponent),resolve:t,canActivate:[a]},{path:"user-pratica-create/:idpaese/:idbando",loadComponent:()=>import("./chunk-NX7IACP6.js").then(e=>e.UserPraticaCreateComponent),resolve:t,canActivate:[a]},{path:"user-pratica-update/:idpaese/:idbando/:idpratica",loadComponent:()=>import("./chunk-NX7IACP6.js").then(e=>e.UserPraticaCreateComponent),resolve:t,canActivate:[a]},{path:"user-pratica-detail/:idpaese/:idbando/:idpratica",loadComponent:()=>import("./chunk-ZLPRCRWO.js").then(e=>e.UserPraticaDetailComponent),resolve:t,canActivate:[a]},{path:"user-pratica-pagamento/:idpaese/:idbando/:idpratica",loadComponent:()=>import("./chunk-VV5QQ2FW.js").then(e=>e.UserPraticaPagamentoComponent),resolve:t,canActivate:[a,s("pagamenti")]},{path:"user-pratica-ulterioredoc/:idpaese/:idbando/:idpratica",loadComponent:()=>import("./chunk-RAEM5TI6.js").then(e=>e.UserPraticaUlterioredocComponent),resolve:t,canActivate:[a,s("ulterioreDocumentazione")]},{path:"admin-pratica-protocollo/:idpaese/:idbando/:idpratica",loadComponent:()=>import("./chunk-7LWHHAOO.js").then(e=>e.PraticaProtocolloComponent),resolve:t,canActivate:[a,s("protocollo")]},{path:"admin-pratica-comunicazione/:idpaese/:idbando/:idpratica",loadComponent:()=>import("./chunk-ZNP3G7B3.js").then(e=>e.AdminPraticaComunicazioneComponent),resolve:t,canActivate:[a]}
1,{path:"admin-pratica-autorizzazione/:idpaese/:idbando/:idpratica",loadComponent:()=>import("./chunk-SZLJQNR3.js").then(e=>e.PraticaAutorizzazioneComponent),resolve:t,canActivate:[a,s("autorizzazioni")]},{path:"admin-pratica-parere/:moduleKey/:idpaese/:idbando/:idpratica/:type",loadComponent:()=>import("./chunk-LRELQC4Y.js").then(e=>e.PraticaParereComponent),resolve:t,canActivate:[a,s("pareri")]},{path:"storico-bandi",redirectTo:"admin-bando-viewall/archiviato",pathMatch:"full"},{path:"",redirectTo:"user-bando-viewall",pathMatch:"full"}]}];export{L as routes};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.