1import z from"./DFygfSMa.js";import{_ as C,a as N}from"./Cyps7XMZ.js";import{d as T,a as V,v as A,B as k,ai as D,bA as P,c as F,f as M,h as p,i as t,o as r,g as c,m as _,k as $,H as b,bz as f,M as K}from"#entry";import{a as U,u as Z}from"./C-aB4G52.js";import"./DK6nQZsj.js";import"./FhwToB7e.js";const q={class:"px-10 text-3xl font-bold leading-tight max-md:text-xl"},H="What did you think of it?",L=44,Q=36,W=T({__name:"EndOfBook",props:{bookId:{},bookSlug:{},bookTitle:{},chapterId:{},chapterNumber:{}},setup(o){const s=o,{isMobile:x}=V(),{user:v}=A(),{isPopupOpen:l,requestRate:h}=U(),{observeBlockVisible:B,trackBlockShown:g,trackRateButtonClicked:i,trackRateScreenShown:S}=Z(),a=k(!1),e={placement:D.ReaderEnd,book_id:s.bookId,chapter_id:s.chapterId,chapter_number:s.chapterNumber},m=k(null);B(m,()=>{g(e),S(e,P.Rating)});const R=n=>{i(e,f.Star,n),h(e,n)},y=()=>{i(e,f.Close),a.value=!0},d=x?Q:L,E=F(()=>!!v.value&&!l.value);return(n,u)=>{const w=z,I=C,O=N;return t(a)?p("",!0):(r(),M("section",{key:0,ref_key:"blockElement",ref:m,class:"end-of-book relative m-auto w-full max-w-[640px] rounded-2xl bg-white p-10 text-center max-md:p-6 dark:border dark:border-zinc-700 dark:bg-zinc-800"},[c("button",{type:"button","aria-label":"Close",class:"absolute right-5 top-5 text-ds-gray-400 transition-colors hover:text-ds-gray-600 dark:hover:text-gray-200",onClick:y},[$(w,{name:"fm:cross",class:"text-xl"})]),c("h3",q," You've reached the end of "+b(o.bookTitle),1),c("p",{class:"mt-3 font-semibold text-ds-gray-500 dark:text-gray-400"},b(H)),t(E)?(r(),_(I,{key:0,"book-slug":o.bookSlug,"event-context":e,"star-size":t(d),class:"mt-8 max-md:mt-6",onReviewSent:u[0]||(u[0]=Y=>a.value=!0)},null,8,["book-slug","star-size"])):t(l)?p("",!0):(r(),_(O,{key:1,"model-value":0,size:t(d),class:"mt-8 max-md:mt-6","onUpdate:modelValue":R},null,8,["size"]))],512))}}}),oe=K(W,[["__scopeId","data-v-f467cabc"]]);export{oe 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.