You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

processingMenu-b6b2564b.js 1.3KB

4 月之前
1
  1. var g=Object.defineProperty,p=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var h=(r,n,t)=>n in r?g(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t,f=(r,n)=>{for(var t in n||(n={}))v.call(n,t)&&h(r,t,n[t]);if(i)for(var t of i(n))M.call(n,t)&&h(r,t,n[t]);return r},d=(r,n)=>p(r,N(n));import{s as y,m as A}from"./index-90c78f99.js";const{menuArr:a}=y(A.menuStore),u=(r,n)=>{const t=function(s,c){let e=[];for(let m=0;m<s.length;m++){const o=s[m];if(e=[],e.push(o.name),c===o.name)return e;if(o&&o.children&&o.children.length&&(e=e.concat(t(o.children,c)||[]),typeof c=="string"&&e.includes(c)))return e}};return t(r,n)},B=r=>{const n=u(a.value,r),t=n&&n.length&&n[0]||"",l=a.value.find(c=>c.name===t)&&a.value.find(c=>c.name===t).children||[],s=function(c){return c=c.filter(e=>e&&e.meta&&e.meta.type==="MENU"&&e&&e.meta&&e.meta.hidden===2).map(e=>d(f({},e),{children:e&&e.children&&e.children.length&&s(e.children)||[]})),c};return s(l)},T=r=>{const n=u(a.value,r);return n&&n.length&&n[0]||""},b=r=>{const n=u(a.value,r),t=B(r);let l;const s=c=>{c.forEach(e=>{n&&n.includes(e.name)&&(l=e.name),e.children&&e.children.length&&s(e.children)})};return s(t),l};export{b as a,B as b,T as g};