import{J as u}from"./vue.1703796278973.js";const c=u({id:"permission",state:()=>({permissions:{}}),getters:{check(r){return t=>{if(!t)return!0;if(!t.includes(":"))return!1;const e=t.split(":")[0],n=t.split(":")[1],s=r.permissions[e];return s?s.includes(n):!1}},hasPermission(r){return t=>t?Object.keys(r.permissions).length?typeof t=="string"?this.check(t):t.some(e=>this.check(e)):!1:!0}}});export{c as u};
