import{q as u}from"./app-BGey7YPf.js";function i(r){const{auth:t}=u().props;if(t.super)return!0;const e=t.user.roles.map(s=>s.name);return r.some(s=>{if(s.startsWith("*-")){const n=s.slice(1);return e.some(o=>o.endsWith(n))}return e.includes(s)})}export{i as h};
