import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./utils-DOLA72NF.mjs";const n={hotNews:`澎湃热榜`,financialInformationNews:`澎湃快讯`,morningEveningNews:`早晚报`,editorHandpicked:`要闻精选`},r={path:`/sidebar/:sec?`,radar:[{source:[`thepaper.cn/`],target:`/sidebar`}],name:`侧边栏`,categories:[`new-media`],example:`/thepaper/sidebar`,parameters:{sec:{description:`侧边栏 id`,options:Object.entries(n).map(([e,t])=>({label:t,value:e}))}},maintainers:[`bigfei`],handler:i,url:`thepaper.cn/`};async function i(r){let{sec:i=`hotNews`}=r.req.param(),a=(await e(`https://cache.thepaper.cn/contentapi/wwwIndex/rightSidebar`)).data[i],o=await Promise.all(a.filter(e=>e.contId).map(e=>t.ProcessItem(e,r)));return{title:`澎湃新闻 - ${n[i]??i}`,item:o,link:`https://www.thepaper.cn`}}export{r as route};