1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B9VOUYPH.js","./CEIykhXW.js","./DrcgtIqi.js","./Menu.6v4I5F-3.css","./DDKgkpNe.js","./B97mBF-E.js"])))=>i.map(i=>d[i]); 2import{d as H,s as G,t as K,a as Q,B as j,K as k,N as J,c as f,e as W,b as X,r as Y,f as _,o as n,g as m,k as p,i as e,q as L,p as Z,h as d,w as ee,m as h,F as te,l as ae,C as se,H as oe,I as ne,_ as N,L as ie,M as re}from"#entry";import{_ as le}from"./fnBSBj-d.js";import{_ as ce}from"./CCWNIaYc.js";import ue from"./CPbEkh_P.js";import{_ as _e}from"./DWvTU1zs.js";import{_ as me}from"./DY0h6voj.js";import{u as pe,F as de}from"./DrPVW_0W.js";import{u as w}from"./DrcgtIqi.js";import{p as ge,w as C,b as ve}from"./DjFHk3y1.js";import{u as fe,d as he,b as D}from"./DHJAwKkp.js";import"./Dlx19IXY.js";import"./Dv7KG4Yv.js";import"./Bdv2xjB9.js";const xe=L(()=>N(()=>import("./B9VOUYPH.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(i=>i.default||i)),be=L(()=>N(()=>import("./DDKgkpNe.js"),__vite__mapDeps([4,5,1]),import.meta.url).then(i=>i.default||i)),ye={class:"container py-8 max-md:py-6"},ke={class:"page-content flex flex-col gap-8"},we={class:"flex items-start gap-5 max-lg:flex-col"},Ce={class:"flex flex-col gap-10"},De={key:0},Le={key:1,class:"grid gap-7 grid-cols-2 max-md:grid-cols-1"},Ne={class:"hidden"},Pe=H({__name:"[slug]-novels",async setup(i){let s,c;const r=G(),P=K(),x=ie(),{getValue:$}=pe(),{slug:b}=r.params,{isMobile:R}=Q(),t=j(r.query.page?parseInt(r.query.page):1),{data:l,pending:V}=([s,c]=k(()=>w(`/genres/${b}/books`,{query:{page:t},watch:[t]})),s=await s,c(),s),{data:o,error:B,status:$e}=([s,c]=k(()=>w(`/genres/${b}`,{transform:a=>a.data})),s=await s,c(),s);if(B.value?.statusCode===404)throw J({statusCode:404,statusMessage:"Page Not Found"});const E=a=>{P.push({query:ge(r.query,a)}),ne(()=>window.scrollTo({top:0}))},F=[{link:"/genres/all-novels",label:"Novels"},{label:o.value.name}],T=f(()=>{let a=[];return t.value>1&&a.push({rel:"prev",href:x.public.siteURL+C(r.path,t.value-1)}),t.value<l.value?.meta.last_page&&a.push({rel:"next",href:x.public.siteURL+C(r.path,t.value+1)}),a});W({link:T});const g=f(()=>ve(`Discover the best books in ${o.value.name} on FictionMe`,l.value?.data?.map(a=>a.title),t.value)),v=f(()=>`${o.value.name} Genre, Books and Novels`+(t.value>1?` - Page ${t.value}`:""));return X({titleTemplate:"%s â Read on FictionMe",title:()=>v.value,description:()=>g.value,ogTitle:()=>v.value,ogDescription:()=>g.value,twitterTitle:()=>v.value,twitterDescription:()=>g.value}),fe([he({itemListElement:[D({position:1,name:"Novels",item:"/genres/all-novels"}),D({position:2,name:o.value.name})]})]),(a,y)=>{const q=le,I=xe,M=ce,A=ue,z=_e,O=be,S=me,U=Y("loading");return n(),_("div",ye,[m("div",ke,[p(q,{breadcrumbs:F}),m("div",we,[p(I,{selected:e(o).name},null,8,["selected"]),p(O,{title:`${e(o).name??""} Novels & Books`,"header-tag":"h1"},{default:Z(()=>[m("div",Ce,[e(t)===1?(n(),_("p",De,[e(o).description?(n(),h(M,{key:0,text:e(o).description,max:e(R)?150:500,interactive:""},null,8,["text","max"])):d("",!0)])):d("",!0),e(l)?ee((n(),_("div",Le,[(n(!0),_(te,null,ae(e(l)?.data,u=>(n(),h(A,{book:u,key:u.id},null,8,["book"]))),128))])),[[U,e(V)]]):d("",!0),e(l)?.meta?(n(),h(z,{key:2,modelValue:e(t),"onUpdate:modelValue":y[0]||(y[0]=u=>se(t)?t.value=u:null),"total-pages":e(l).meta.last_page,onChanged:E},null,8,["modelValue","total-pages"])):d("",!0)])]),_:1},8,["title"])]),p(S),m("div",Ne,oe(e($)(e(de).Proba,null)),1)])])}}}),Ue=re(Pe,[["__scopeId","data-v-3ffa4f9f"]]);export{Ue as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.