import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";import{t as n}from"./utils-DG55N5BI.mjs";import{jsx as r,jsxs as i}from"hono/jsx/jsx-runtime";import{renderToString as a}from"hono/jsx/dom/server";const o=`https://www.cde.org.cn`,s={xxgk:{priorityApproval:{title:`优先审评公示`,url:`${o}/main/xxgk/listpage/2f78f372d351c6851af7431c7710a731`,endPoint:`/priority/getPriorityApprovalList`,form:{pageSize:50,pageNum:1,noticeType:2,acceptid:``,drugname:``,company:``}},breakthroughCure:{title:`突破性治疗公示`,url:`${o}/main/xxgk/listpage/da6efd086c099b7fc949121166f0130c`,endPoint:`/breakthrough/getBreakthroughCureList`,form:{pageSize:50,pageNum:1,noticeType:1,acceptid:``,drugname:``,company:``}},cliniCal:{title:`临床试验默示许可`,url:`${o}/main/xxgk/listpage/4b5255eb0a84820cef4ca3e8b6bbe20c`,endPoint:`/xxgk/getCliniCalList`,form:{pageSize:50,pageNum:1,condition:``}}}},c={path:`/xxgk/:category`,categories:[`government`],example:`/cde/xxgk/priorityApproval`,parameters:{category:`类别，见下表`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`信息公开`,maintainers:[`TonyRL`],handler:l,description:`|   优先审评公示   |  突破性治疗公示  | 临床试验默示许可 |
| :--------------: | :--------------: | :--------------: |
| priorityApproval | breakthroughCure |     cliniCal     |`};async function l(i){let c=i.req.param(`category`),{data:l}=await t.post(`${o}/main${s.xxgk[c].endPoint}`,{form:s.xxgk[c].form,headers:{referer:s.xxgk[c].url,cookie:await n.getCookie(i)}}),p=l.data.records.map(t=>{let n;switch(c){case`priorityApproval`:n=a(r(u,{item:t}));break;case`breakthroughCure`:n=a(r(d,{item:t}));break;case`cliniCal`:n=a(r(f,{item:t}));break;default:n=``}return{title:t.drgnamecn,guid:t.acceptid,pubDate:t.endNoticeDate?e(t.endNoticeDate):null,description:n,link:s.xxgk[c].url}});return{title:`${s.xxgk[c].title} - 国家药品监督管理局药品审评中心`,link:s.xxgk[c].url,item:p}}const u=({item:e})=>i(`table`,{children:[i(`tr`,{children:[r(`th`,{children:`受理号`}),r(`th`,{children:`药品名称`}),r(`th`,{children:`注册申请人`}),r(`th`,{children:`承办日期`}),r(`th`,{children:`申请日期`}),r(`th`,{children:`公示日期`})]}),i(`tr`,{children:[r(`td`,{children:e.acceptid}),r(`td`,{children:e.drgnamecn}),r(`td`,{children:e.company}),r(`td`,{children:e.createdate}),r(`td`,{children:e.applyDate}),r(`td`,{children:e.noticeDate})]})]}),d=({item:e})=>i(`table`,{children:[i(`tr`,{children:[r(`th`,{children:`受理号`}),r(`th`,{children:`药品名称`}),r(`th`,{children:`注册申请人`}),r(`th`,{children:`申请日期`}),r(`th`,{children:`公示日期`}),r(`th`,{children:`公示截止日期`})]}),i(`tr`,{children:[r(`td`,{children:e.acceptid}),r(`td`,{children:e.drgnamecn}),r(`td`,{children:e.company}),r(`td`,{children:e.applyDate}),r(`td`,{children:e.noticeDate}),r(`td`,{children:e.endNoticeDate})]})]}),f=({item:e})=>i(`table`,{children:[i(`tr`,{children:[r(`th`,{children:`受理号`}),r(`th`,{children:`药品名称`}),r(`th`,{children:`申请人名称`}),r(`th`,{children:`适应症`}),r(`th`,{children:`注册分类`})]}),i(`tr`,{children:[r(`td`,{children:e.acceptid}),r(`td`,{children:e.drgnamecn}),r(`td`,{children:e.companys}),r(`td`,{children:e.lcmsxkIndication}),r(`td`,{children:e.lcmsxkRegisterkind})]})]});export{c as route};