import{b as f}from"./btnList.6c44b4ef.js";import{v as H,I as n}from"./index.4d061c66.js";function v(r,t){const{powers:u,proPermissions:a}=H(),i=n(()=>u.get(r)||[]),c=n(()=>a.get(t)||[]);function m(s){const o=f.find(({name:P})=>s===P);return i.value.includes(o.code)}function p(s){return i.value.includes(s)}function d(s){return i.value.every(e=>s.includes(e))}return{permissions:i,proPermissions:c,hasPermissionWithName:m,hasPermissionWithCode:p,hasPermissionWithCodes:d}}export{v as u};
