import{M as e,m as t}from"./admin-setting-DlllwIAe.js";var n=[{key:`recordDirectLinkDownloadLog`,label:`记录直链下载日志`,shortLabel:`直链下载`,tip:`是否记录直链下载日志`},{key:`recordShortLinkDownloadLog`,label:`记录短链下载日志`,shortLabel:`短链下载`,tip:`是否记录短链下载日志`},{key:`recordProxyDownloadLog`,label:`记录代理下载日志`,shortLabel:`代理下载`,tip:`是否记录代理下载日志（S3 / OneDrive 等走代理兜底的下载）`},{key:`recordFrontendDownloadLog`,label:`记录前端下载日志`,shortLabel:`前端下载`,tip:`是否记录文件列表、分享页的下载日志`},{key:`recordPreviewLog`,label:`记录预览日志`,shortLabel:`预览`,tip:`是否记录文件预览日志（图片、视频、文档等）`}],r=async n=>{let r=[...new Set(n)];if(!r.length)return;let i={...(await t()).data??{}};r.forEach(e=>{i[e]=!0}),await e(i)},i=async(n,r)=>{await e({...(await t()).data??{},[n]:r})};export{r as n,i as r,n as t};