import{Ar as e,Br as t,Cr as n,Dr as r,Er as i,Fr as a,Ir as o,Lr as s,Mr as c,Nr as l,Or as u,Pr as d,Rr as f,Sr as p,Tr as m,Vr as h,Xr as g,ji as _,jr as v,kr as y,wa as b,wr as x,zr as S}from"./icons-vendor-Db5MGAkr.js";import{t as C}from"./pro-capability-BR-p0W7Z.js";import{t as w}from"./useCapability-CAwTuoTM.js";var T=(w={})=>[{title:`系统配置`,items:[{id:0,name:`仪表盘`,href:`/admin/dashboard`,icon:m},{id:1,name:`基础设置`,href:`/admin/site-setting`,icon:h},{id:2,name:`存储源管理`,href:`/admin/storage-list`,icon:b},{id:3,name:`显示设置`,href:`/admin/view-setting`,icon:t},{id:4,name:`上传设置`,href:`/admin/upload-setting`,icon:y},{id:5,name:`WebDAV`,href:`/admin/webdav-setting`,icon:d,pro:!0,capability:C.webdav},{id:6,name:`DNS 设置`,href:`/admin/dns-setting`,icon:u,warning:w.dnsWarning},{id:7,name:`代理池管理`,href:`/admin/proxy-list`,icon:r},{id:8,name:`授权管理`,href:`/admin/license`,icon:i,pro:!0},{id:9,name:`邮件服务`,href:`/admin/mail-setting`,icon:x}]},{title:`规则管理`,items:[{id:1,name:`规则管理`,href:`/admin/rule-hub`,icon:c,pro:!0,capability:C.ruleHub}]},{title:`用户与安全`,items:[{id:1,name:`用户管理`,href:`/admin/user-list`,icon:S},{id:2,name:`注册与邀请`,href:`/admin/registration`,icon:n},{id:3,name:`登录与认证`,href:`/admin/security-setting`,icon:g},{id:4,name:`访问策略`,href:`/admin/access-setting`,icon:p},{id:5,name:`单点登录`,href:`/admin/sso`,icon:e},{id:6,name:`在线会话`,href:`/admin/online-session`,icon:v,pro:!0,capability:C.onlineSession}]},{title:`链接与分享`,items:[{id:1,name:`直/短链设置`,href:`/admin/download-link/setting`,icon:s},{id:2,name:`短链管理`,href:`/admin/download-link`,icon:l},{id:3,name:`分享管理`,href:`/admin/share-link`,icon:o}]},{title:`监控与日志`,items:[{id:2,name:`下载统计`,href:`/admin/download-link/top`,icon:f,pro:!0,capability:C.downloadStats},{id:3,name:`下载日志`,href:`/admin/download-link/log`,icon:a},{id:4,name:`登录日志`,href:`/admin/login-log`,icon:_},{id:5,name:`审计日志`,href:`/admin/audit-log`,icon:a,pro:!0,capability:C.auditLog},{id:6,name:`运行日志`,href:`/admin/log-monitor`,icon:_}]}],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};