1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./7h_3FkLG.js","./Dv7KG4Yv.js","./Bdv2xjB9.js","./CEIykhXW.js","./Dlx19IXY.js","./Drrfhr9B.js","./DDKgkpNe.js","./B97mBF-E.js"])))=>i.map(i=>d[i]); 2import{d as M,c as H,f as a,o,F as f,l as b,m as p,h as k,g as i,q as T,i as t,_ as D,s as U,K as C,N as F,b as q,L as G,k as n,p as m,H as N,G as w}from"#entry";import{_ as K}from"./fnBSBj-d.js";import{_ as W}from"./Bitmmt5a.js";import{_ as Y}from"./Dlx19IXY.js";import{_ as J}from"./D3ngUeS4.js";import Q from"./VKQS5tGV.js";import{_ as X}from"./CX2wJD0K.js";import{_ as Z}from"./DY0h6voj.js";import{_ as ee}from"./Bu-mVbXD.js";import{u as te}from"./Drrfhr9B.js";import{u as R}from"./DrcgtIqi.js";import{u as oe,d as ie,f as ae,j as re,b as P,h as se,e as A,c as ne}from"./DHJAwKkp.js";import{b as le}from"./p_LybId8.js";import"./BrDeX25O.js";import"./Bdv2xjB9.js";import"./BvOB0Hg9.js";import"./C6SJhmet.js";import"./Dv7KG4Yv.js";const ue=T(()=>D(()=>import("./7h_3FkLG.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(s=>s.default||s)),me={class:"flex flex-col gap-8"},de=["innerHTML"],ce=M({__name:"ContentBlock",props:{html:{},book:{},priorityFirstImage:{type:Boolean,default:!1}},setup(s){const r=s,d=H(()=>{const l=r.html.split("<hr>");return r.priorityFirstImage&&l[0]&&(l[0]=l[0].replace(/<img\b/i,'<img fetchpriority="high"')),l});return(l,x)=>{const y=ue;return o(),a("div",me,[(o(!0),a(f,null,b(t(d),(e,c)=>(o(),a(f,null,[s.book&&c>0?(o(),p(y,{key:0,book:s.book},null,8,["book"])):k("",!0),i("div",{innerHTML:e,class:"content-block flex flex-col gap-8 text-xl leading-6 text-gray-800 dark:text-gray-300 font-light max-md:text-lg max-md:leading-[22px] max-md:gap-4"},null,8,de)],64))),256))])}}}),ve=T(()=>D(()=>import("./DDKgkpNe.js"),__vite__mapDeps([6,7,3]),import.meta.url).then(s=>s.default||s)),_e={class:"container py-8"},pe={class:"page-content flex flex-col gap-8"},fe={class:"grid grid-cols-[1fr_272px] gap-7 max-lg:grid-cols-1"},xe={class:"flex flex-col gap-4 max-md:gap-2"},ge={class:"flex flex-col gap-8 max-md:gap-4"},he={class:"text-[40px] leading-[42px] font-semibold max-md:text-2xl max-md:leading-6"},we={key:0,class:"flex flex-wrap gap-2 max-h-[70px] overflow-hidden"},be={key:1,class:"flex justify-center"},ke={class:"flex gap-6 w-full max-w-lg max-md:flex-col max-md:gap-4"},ye=["href"],$e={class:"flex justify-between"},Re={key:1},Be={key:3},Le={class:"flex flex-col"},Ce={class:"grid grid-cols-1 max-lg:grid-cols-2 gap-4"},Fe={class:"flex gap-5 max-md:gap-3 overflow-auto scrollbar-hidden"},Je=M({__name:"[slug]",async setup(s){let r,d;const l=U(),x=G(),{getLinkToApp:y}=te(),{data:e,error:c,status:Ne}=([r,d]=C(()=>R(`/reviews/${l.params.slug}`)),r=await r,d(),r);if(c.value?.statusCode===404)throw F({statusCode:404,statusMessage:"Page Not Found"});if(c.value||!e.value)throw F({statusCode:c.value?.statusCode??500,statusMessage:c.value?.statusMessage??"Server Error"});const g=e.value.review.author??null,{data:E}=([r,d]=C(()=>R(`/reviews/recent?exclude[]=${e.value.review.id}`,{transform:v=>v.data})),r=await r,d(),r),z=[{link:"/book-reviews",label:"Novel Reviews"},{label:e.value.review.title}],{data:$,pending:Pe}=R("/novels/_/similar",{transform:v=>v.data,lazy:!0});return q({titleTemplate:"%s â Read on FictionMe",title:`Book Review of ${e.value.review.book.title} by ${e.value.review.book.author}`,description:`Dive into review of â${e.value.review.book.title}â by ${e.value.review.book.author}. Find out if this novel meets your reading preferences with our detailed evaluation and insights`,ogTitle:`Book Review of ${e.value.review.book.title} by ${e.value.review.book.author}`,ogDescription:`Dive into review of â${e.value.review.book.title}â by ${e.value.review.book.author}. Find out if this novel meets your reading preferences with our detailed evaluation and insights`,twitterTitle:`Book Review of ${e.value.review.book.title} by ${e.value.review.book.author}`,twitterDescription:`Dive into review of â${e.value.review.book.title}â by ${e.value.review.book.author}. Find out if this novel meets your reading preferences with our detailed evaluation and insights`}),oe([ie({itemListElement:[P({position:1,name:"Novel Reviews",item:"/book-reviews"}),P({position:2,name:e.value.review.title,item:l.path})]}),ae({description:e.value.review.description}
2),re({name:e.value.review.title,description:e.value.review.description,image:e.value.review.image_url,author:g?A({name:g.name,url:`${x.public.siteURL}${le(g.slug)}`}):ne({name:"FictionMe",url:x.public.siteURL}),itemReviewed:se({name:e.value.review?.book.title,description:e.value.review?.book.description,url:`${x.public.siteURL}/books/${e.value.review.book.slug}`,image:e.value.review.book.cover,inLanguage:e.value.review.book.language,genre:e.value.review.tags?.map(v=>v.name),author:A({name:e.value.review.book.author})})})]),(v,_)=>{const I=K,V=W,h=Y,O=J,B=ve,L=Q,S=X,j=Z;return o(),a("div",_e,[i("div",pe,[n(I,{breadcrumbs:z}),i("div",fe,[i("div",xe,[n(B,null,{default:m(()=>[i("div",ge,[i("h1",he,N(t(e).review.title),1),t(e).review.tags&&t(e).review.tags.length>0?(o(),a("ul",we,[(o(!0),a(f,null,b(t(e).review.tags,u=>(o(),a("li",null,[n(h,{to:`/stories/${u.slug}-novels`},{default:m(()=>[n(V,null,{default:m(()=>[w(N(u.name),1)]),_:2},1024)]),_:2},1032,["to"])]))),256))])):k("",!0),n(O,{author:t(g),"published-at":t(e).review.created_at||""},null,8,["author","published-at"]),n(ce,{html:t(e).review.content,book:t(e).review.book,"priority-first-image":""},null,8,["html","book"]),t(e).review.book?(o(),a("div",be,[i("div",ke,[n(h,{to:`/books/${t(e).review.book.slug}`,class:"flex-1 py-3 max-md:py-2 px-5 max-md:px-4 border-[1px] text-xl border-primary text-center rounded-lg text-violet-800 dark:text-violet-500 dark:hover:text-violet-600"},{default:m(()=>[..._[0]||(_[0]=[w(" Book page ",-1)])]),_:1},8,["to"]),i("a",{href:t(y)(t(e).review.book.id),class:"flex-1 items-center py-3 max-md:py-2 px-5 max-md:px-4 text-xl bg-fm-gradient rounded-lg !text-white text-center hover:bg-fm-gradient-active"}," Read book in the App ",8,ye)])])):k("",!0)])]),_:1}),i("div",$e,[t(e).meta.prev?(o(),p(h,{key:0,to:`/book-reviews/${t(e).meta.prev}`,class:"flex items-center font-semibold text-violet-800 dark:text-violet-500 dark:hover:text-violet-600"},{default:m(()=>[n(L,{name:"fm:arrow-right",class:"mr-1 text-xl rotate-180"}),_[1]||(_[1]=w(" Previous Review ",-1))]),_:1},8,["to"])):(o(),a("span",Re)),t(e).meta.next?(o(),p(h,{key:2,to:`/book-reviews/${t(e).meta.next}`,class:"flex items-center font-semibold text-violet-800 dark:text-violet-500 dark:hover:text-violet-600"},{default:m(()=>[_[2]||(_[2]=w(" Next Review ",-1)),n(L,{name:"fm:arrow-right",class:"ml-1 text-xl"})]),_:1},8,["to"])):(o(),a("span",Be))])]),i("div",Le,[i("div",Ce,[(o(!0),a(f,null,b(t(E),u=>(o(),p(ee,{review:u,key:u.id},null,8,["review"]))),128))])])]),t($)&&t($).length>0?(o(),p(B,{key:0,title:"Popular Novels You May Like"},{default:m(()=>[i("div",Fe,[(o(!0),a(f,null,b(t($),u=>(o(),p(S,{book:u,key:u.id},null,8,["book"]))),128))])]),_:1})):k("",!0),n(j)])])}}});export{Je 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.