import{_ as N}from"./BookChapterList.6dcc132c.js";import{k as S,d as E,u as L,i as R,l as V,y as h,x as U,z as q,o as p,a as $,b as c,e,t as i,f,n as z,_ as H}from"./entry.9dd822ab.js";import{u as J}from"./asyncData.69a9296f.js";const K=(t,a)=>{const u=S();return{male:{title:`${t}(${(a==null?void 0:a.author)||""})章节列表_${t}在线阅读-QQ阅读男生网`,keywords:`${t},${t}全部章节,${t}最新章节`,description:`${t}是${(a==null?void 0:a.author)||""}写的小说，无弹窗阅读${t}，txt下载${t}离线阅读就上QQ阅读男生网`},female:{title:`${t}全文阅读最新章节_${t}章节列表—QQ阅读女生网`,keywords:`${t},${t}最新章节,${t}全部章节`,description:`${t}是(${(a==null?void 0:a.author)||""})写的小说，小说${t}最新章节由QQ阅读女生网整理，推荐书友无弹窗阅读${t}全文`},chuangshi:{title:`${t}最新章节_${t}章节列表—创世中文网官网`,keywords:`${t},${t}最新章节,${t}全部章节`,description:`${t}是${(a==null?void 0:a.author)||""}写的小说，小说${t}最新章节由创世中文网整理，推荐无弹窗阅读${t}全文`},yunqi:{title:`${t}全部章节_${t}最新章节—云起书院官网`,keywords:`${t},${t}最新章节,${t}全部章节`,description:`上云起书院看${t}全部章节，无弹窗阅读全文`}}[u.public.NUXT_SITE]||{}},P={class:"book-chapter"},X={class:"breadcrumb"},j=["href"],F=["href"],G={class:"book-chapter-info"},M={class:"title"},O=["href"],W={class:"update-time"},Y=["href"],Z={class:"book-chapter-content"},k=E({__name:"[bid]",async setup(t){var v,y,C,w,g,A,D,Q;let a,u;const l=L(),{$utils:d}=R(),m=V();let s={},o=[];const n=parseInt(l.params.bid);if(!n)throw h({statusCode:404,message:"书籍不存在或不在该平台展示，请到QQ阅读App阅读~"});const{data:r}=([a,u]=U(async()=>J(async()=>await d.customPromiseAll([m.getBookDetail({bid:n}),m.getBookChapterList({bid:n})]),"$42S6bJhobw")),a=await a,u(),a);if(r.value[0].code===-2)throw h({statusCode:404,message:"书籍不存在或版权到期"});if(r.value[0].code!==0)throw h({statusCode:200,message:r.value[0].msg});s={...(v=r.value[0].data)==null?void 0:v.book,...(y=r.value[0].data)==null?void 0:y.bookScore,...(C=r.value[0].data)==null?void 0:C.include,isDiscountBlack:(w=r.value[0].data)==null?void 0:w.isDiscountBlack,bookCommentCount:(g=r.value[0].data)==null?void 0:g.bookCommentCount,validAuthor:(A=r.value[0].data)==null?void 0:A.validAuthor},o=((Q=(D=r.value[1])==null?void 0:D.data)==null?void 0:Q.chapters)||[];const x=d.rm2alb((s==null?void 0:s.title)||""),_=K(x,s);return q({title:_.title,meta:[{hid:"keywords",name:"keywords",content:_.keywords},{hid:"description",name:"description",content:_.description}]}),(I,b)=>{const B=N;return p(),$("div",P,[c("div",X,[c("a",{href:`${e(d).getDomain()}/`},"首页>",8,j),c("a",{href:`${e(d).getDomain()}/detail/${e(n)}`},i(e(s).title||"-")+">",9,F),c("span",null,i(e(s).title)+"最新章节目录",1)]),c("div",G,[c("h1",M,i(e(s).title),1),e(s).validAuthor===1?(p(),$("a",{key:0,rel:"nofollow",class:"author",href:`${e(d).getDomain()}/writer/${e(s).centerAuthorId}`},i(e(s).author),9,O)):f("",!0),c("p",W,"更新时间："+i(e(s).bookUpdatetime),1),e(s).checklevel>8?(p(),$("a",{key:1,class:"last-chapter",href:`${e(d).getDomain()}/read/${e(n)}/${e(s).lastChapter}`}," 最新章节："+i(e(s).lastChapterName),9,Y)):f("",!0)]),c("div",Z,[z(B,{"book-chapters":e(o),bid:e(n),"book-info":e(s)},null,8,["book-chapters","bid","book-info"])])])}}});const at=H(k,[["__scopeId","data-v-d6af78c7"]]);export{at as default};
