import{a as e}from"./app-r2SMcdpu.js";function t(){let t=e(),n=()=>t.props.auth?.user;return{user:n,settings:()=>t.props.settings,hasRole:e=>{let t=n();return t?t.roles.includes(`Super Admin`)?!0:t.roles.includes(e):!1},hasPermission:e=>{let t=n();return t?t.roles.includes(`Super Admin`)?!0:t.permissions.includes(e):!1}}}export{t};