var e=[{key:`directLink`,label:`直链`,colorVar:`--el-color-primary`,fallbackHex:`#409eff`,overviewField:`directLinkCount`,logConfigKey:`recordDirectLinkDownloadLog`},{key:`shortLink`,label:`短链`,colorVar:`--el-color-success`,fallbackHex:`#67c23a`,overviewField:`shortLinkCount`,logConfigKey:`recordShortLinkDownloadLog`},{key:`frontend`,label:`直接下载`,colorVar:`--el-color-warning`,fallbackHex:`#e6a23c`,overviewField:`frontendDownloadCount`,logConfigKey:`recordFrontendDownloadLog`},{key:`preview`,label:`预览`,colorVar:`--el-color-info`,fallbackHex:`#909399`,overviewField:`previewCount`,logConfigKey:`recordPreviewLog`}],t=Object.fromEntries(e.map(e=>[e.key,e])),n=e=>`var(${e.colorVar})`,r=e=>`var(${e.colorVar}-light-9)`,i=e=>typeof window>`u`?e.fallbackHex:getComputedStyle(document.documentElement).getPropertyValue(e.colorVar).trim()||e.fallbackHex;export{r as a,n as i,t as n,i as r,e as t};