import{a as c}from"./chunk-JJ7CJ26J.js";import{a as u}from"./chunk-QPCAJSKO.js";import{b as m}from"./chunk-TGWIHQDX.js";import{b as l}from"./chunk-S3ADKFO2.js";import{G as a}from"./chunk-I5MYHHJE.js";import{ca as t}from"./chunk-CKLXM6EG.js";var F=(r,f)=>{let h=t(c),n=t(a),S=t(m),d=t(u),p=t(l),s=d.loadPermissions(),i=e=>!e||e==="all"?!0:Array.isArray(e)?e.some(o=>s.includes(o)):s.includes(e);return i(r.data.permission)?r.routeConfig?.children?.length&&r.routeConfig.children.filter(o=>i(o.data?.permission)).length===0?n.createUrlTree(["/no-access"]):!0:n.createUrlTree(["/no-access"])};export{F as a};
