import{a as u,b as R}from"./chunk-YYVE3SN6.js";import{a as h,b as S}from"./chunk-FVVYD7H6.js";import{a as d}from"./chunk-U3DVPOI7.js";import"./chunk-KZKY3ROD.js";import"./chunk-7ZFHDZI4.js";import{l as n}from"./chunk-N7PC5CHF.js";import{f as a,o as l,y as r}from"./chunk-ZTKV4AIV.js";import"./chunk-5JDCLYZA.js";import"./chunk-73IMXZSJ.js";import"./chunk-KVTHJWZA.js";import{na as o}from"./chunk-FWZCAEAJ.js";import"./chunk-CWTPBX7D.js";function T(t,c){let p=o(n);o(d).setRedirectUrl(c.url);let i=o(R),s=i.selectedId;if(!s()){let e=t.paramMap.get(u);return e&&l(e)?(console.info(r("INFO","routeGuard","canActivate","Found event param"),e),i.setSelected(a(e)),!0):(console.warn(r("WARNING","routeGuard","canActivate","No event selected; Routing to select view")),p.navigateByUrl("/select"),!1)}return!0}function m(t,c){let p=o(n);o(d).setRedirectUrl(c.url);let i=o(S),s=i.selectedId;if(!s()){let e=t.paramMap.get(h);return e&&l(e)?(console.info(r("INFO","routeGuard","canActivate","Found organisation param"),e),i.setSelected(a(e)),!0):(console.warn(r("WARNING","routeGuard","canActivate","No organisation selected; Routing to select view")),p.navigateByUrl("/select"),!1)}return!0}var L=[{path:"",loadComponent:()=>import("./chunk-FNQYFI6O.js").then(t=>t.HomeLayout),children:[{path:"",pathMatch:"full",loadComponent:()=>import("./chunk-D3XKFWWH.js").then(t=>t.StartComponent)},{path:"users",title:"NAV_USERS",loadChildren:()=>import("./chunk-B2C6MEBG.js").then(t=>t.ROUTES)},{path:"system-notifications",title:"NAV_SYSTEM_NOTIFICATIONS",loadChildren:()=>import("./chunk-Q7EIECOI.js").then(t=>t.ROUTES)},{path:"dead-letters",title:"NAV_SYSTEM_NOTIFICATIONS",loadChildren:()=>import("./chunk-L52YL74J.js").then(t=>t.ROUTES)},{path:"tmp-notifications",title:"NAV_TMP_NOTIFICATIONS",loadChildren:()=>import("./chunk-767ED5XM.js").then(t=>t.ROUTES)},{path:"usettings",title:"NAV_USER_SETTINGS",loadChildren:()=>import("./chunk-DEUMLJPY.js").then(t=>t.ROUTES)},{path:"select",title:"Select",loadComponent:()=>import("./chunk-23KTCKWL.js").then(t=>t.SelectDialogViewComponent)},{path:"qrcode/view",title:"QR-Code",loadComponent:()=>import("./chunk-DLPFDKDG.js").then(t=>t.AppQrCodeViewComponent)},{path:"organisations",title:"NAV_ORGANISATIONS",loadChildren:()=>import("./chunk-RU6SYSWJ.js").then(t=>t.ROUTES)}]},{path:"o/:soId",loadComponent:()=>import("./chunk-FNQYFI6O.js").then(t=>t.HomeLayout),canActivate:[m],children:[{path:"",pathMatch:"full",redirectTo:"/not-found"},{path:"events",title:"NAV_EVENTS",loadChildren:()=>import("./chunk-KGYM3TUW.js").then(t=>t.ROUTES)}]},{path:"o/:soId/e/:seId",loadComponent:()=>import("./chunk-FNQYFI6O.js").then(t=>t.HomeLayout),canActivate:[m,T],children:[{path:"",pathMatch:"full",redirectTo:"/not-found"},{path:"waiters",title:"NAV_WAITERS",loadChildren:()=>import("./chunk-E7OEEQHK.js").then(t=>t.ROUTES)},{path:"printers",title:"NAV_PRINTERS",loadChildren:()=>import("./chunk-HZZDVUJR.js").then(t=>t.ROUTES)},{path:"tables",title:"HOME_TABLES",loadChildren:()=>import("./chunk-QH5YE62O.js").then(t=>t.ROUTES)},{path:"products",title:"HOME_PROD_ALL",loadChildren:()=>import("./chunk-JVAUPILQ.js").then(t=>t.ROUTES)},{path:"orders",title:"NAV_ORDERS",loadChildren:()=>import("./chunk-DYN4LVZ4.js").then(t=>t.ROUTES)},{path:"bills",title:"NAV_BILLS",loadChildren:()=>import("./chunk-J54I7SXB.js").then(t=>t.ROUTES)},{path:"statistics",title:"NAV_STATISTICS",loadChildren:()=>import("./chunk-QUJEHRSJ.js").then(t=>t.StatisticsModule)}]}];export{L as ROUTES};
