import{$r as e,Br as t,Gr as n,Hr as r,Ir as i,Jr as a,Ki as o,Kr as s,Lr as c,Qr as l,Rr as u,Ur as d,Vr as f,Wr as p,Xr as m,Yr as h,Zr as g,ds as _,ei as v,li as y,qr as b,za as x,zr as S}from"./icons-vendor-Buq6V-Ga.js";import{t as C}from"./pro-capability-D8kuUk-o.js";import{t as w}from"./useCapability-CA4VtDqE.js";var T=(w={})=>[{title:`系统配置`,items:[{id:0,name:`仪表盘`,href:`/admin/dashboard`,icon:S},{id:1,name:`基础设置`,href:`/admin/site-setting`,icon:v},{id:2,name:`存储源管理`,href:`/admin/storage-list`,icon:x},{id:3,name:`显示设置`,href:`/admin/view-setting`,icon:e},{id:4,name:`上传设置`,href:`/admin/upload-setting`,icon:d},{id:5,name:`WebDAV`,href:`/admin/webdav-setting`,icon:a,pro:!0,capability:C.webdav},{id:6,name:`DNS 设置`,href:`/admin/dns-setting`,icon:r,warning:w.dnsWarning},{id:7,name:`代理池管理`,href:`/admin/proxy-list`,icon:f},{id:8,name:`授权管理`,href:`/admin/license`,icon:t,pro:!0},{id:9,name:`邮件服务`,href:`/admin/mail-setting`,icon:u}]},{title:`规则管理`,items:[{id:1,name:`规则管理`,href:`/admin/rule-hub`,icon:s,pro:!0,capability:C.ruleHub}]},{title:`用户与安全`,items:[{id:1,name:`用户管理`,href:`/admin/user-list`,icon:l},{id:2,name:`注册与邀请`,href:`/admin/registration`,icon:c},{id:3,name:`登录与认证`,href:`/admin/security-setting`,icon:y},{id:4,name:`访问策略`,href:`/admin/access-setting`,icon:i},{id:5,name:`单点登录`,href:`/admin/sso`,icon:p},{id:6,name:`在线会话`,href:`/admin/online-session`,icon:n,pro:!0,capability:C.onlineSession}]},{title:`链接与分享`,items:[{id:1,name:`直/短链设置`,href:`/admin/download-link/setting`,icon:m},{id:2,name:`短链管理`,href:`/admin/download-link`,icon:b},{id:3,name:`分享管理`,href:`/admin/share-link`,icon:h}]},{title:`监控与日志`,items:[{id:2,name:`下载统计`,href:`/admin/download-link/top`,icon:g,pro:!0,capability:C.downloadStats},{id:3,name:`下载日志`,href:`/admin/download-link/log`,icon:_},{id:4,name:`登录日志`,href:`/admin/login-log`,icon:o},{id:5,name:`审计日志`,href:`/admin/audit-log`,icon:_,pro:!0,capability:C.auditLog},{id:6,name:`运行日志`,href:`/admin/log-monitor`,icon:o}]}],E=e=>{let{isCapabilityEnabled:t}=w();return e.map(e=>({...e,items:e.items.map(e=>{let n=e.capability;return!n||t(n)?e:{...e,locked:!0}})}))},D=e=>{let{isCapabilityEnabled:t}=w();return e.map(e=>({...e,items:e.items.filter(e=>{let n=e.capability;return!n||t(n)})})).filter(e=>e.items.length>0)};export{D as n,E as r,T as t};