index-c6097614.js 452 B

1
  1. import{u as e}from"./index-ca84c486.js";const r=r=>{const o=e().getPermissions,s=null==o?void 0:o.some((e=>{const o=e.module+"."+e.permission_mark.replace("@",".");return r.toLowerCase()===o.toLowerCase()}));return s},o=(e=0)=>s(e);function s(r=0,o=""){const t=e().getPermissions;let n=!1;return t.forEach((e=>{if(parseInt(e.parent_id)==parseInt(r))return n=!0,r=e.id,o=o>""?o+"/"+e.route:e.route})),n?s(r,o):o.replace(/\/$/,"")}export{r as c,o as g};