PageSourceSearch

https://zeno.fm/_nuxt/Ec0quMXw.js

js zeno.fm collected 2026-09-24 08:37:27 UTC 5,918 bytes, 1 lines download raw bytes

1import{a as ee,_ as te}from"./CG5UAfhP.js";import{_ as ae}from"./BEREdQ6Q.js";import{s as oe,_ as se,f as ne}from"./BEbVkMZM.js";import{c as re,_ as le,a as ie}from"./Binm6PIn.js";import{E as ue,aU as de,bI as U,ah as V,aP as ce,a as pe,u as e,M as P,N as l,T as u,l as $,L as n,a5 as b,P as _,a6 as d,a7 as v,Y as i,F as Y,bL as me,Z as be,bf as _e,p as ve}from"./CdF3t0oV.js";import{t as Z,_ as he}from"./DxHJbHqA.js";import{t as ge,a as fe,b as ke,c as xe,d as ye}from"./Dp1dSCzu.js";import{u as Ie}from"./DAaiGirh.js";import{a as Ce}from"./C0k_CvG7.js";import"./DlAUqK2U.js";import"./D92X5zYB.js";import"./D2HbcKdl.js";import"./CWSHiX_w.js";import"./CyOriLK0.js";const $e={class:"space-y-3"},Be={key:0},we={class:"flex flex-wrap items-center gap-3"},je={key:0,class:"space-y-3 rounded-xl bg-zeno-gray-light p-8 text-center"},ze={class:"text-lg"},Le={key:1,class:"space-y-2 rounded-xl bg-zeno-gray-light p-8 text-center"},Te={class:"text-sm text-zeno-text-light"},Fe={key:0,class:"grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4","aria-label":"Parts"},Ne=["aria-current","onClick"],Ee=["src","alt"],Ve={class:"text-sm font-semibold"},Pe={key:1,class:"text-xs text-zeno-text-light"},Se={key:3,class:"flex items-center justify-between font-monigue text-3xl","aria-label":"Chapters"},et=ue({__name:"[chapter]",async setup(Re){let c,B;const S=de(),w=S.params,r=w.bibleId,y=w.videoFilesetId,f=w.bookId.toUpperCase(),p=Number(w.chapter),[{data:o,error:R},{data:T}]=([c,B]=U(()=>Promise.all([ke(r),xe(r)])),c=await c,B(),c);if(ge(R.value),R.value?.statusCode===404||!o.value||!T.value)throw V({status:404,fatal:!0});const I=T.value.find(s=>s.bookId===f);if(!I||!I.chapters.includes(p))throw V({status:404,fatal:!0});const M=Z(I.name),D=I.chapters.length>1,m=re(M,p,I.chapters.length),j={name:"bible-bibleId-bookId-chapter",params:{bibleId:r,bookId:f,chapter:p}},{data:a,error:F}=([c,B]=U(()=>ye(r,f,p,{video:y})),c=await c,B(),c),k=$(()=>F.value?.statusCode===404||!a.value?.video);if(!k.value){if(F.value)throw V({status:F.value.statusCode??502,fatal:!0})}const N=$(()=>a.value?.video??null),x=$(()=>N.value?.items??[]),h=ve(0),z=$(()=>x.value[h.value]??null),E=(s,t)=>s.verseStart&&s.verseEnd?`${m}:${s.verseStart}–${s.verseEnd}`:`${m} — part ${t+1}`,O=s=>ie(T.value??[],s.bookId,Z(s.bookName),s.chapter),H=()=>{h.value<x.value.length-1&&h.value++},W=$(()=>a.value?.copyright.length?a.value.copyright:o.value?.copyright??[]);Ie({title:k.value?`${m} — ${o.value.name}`:`Watch ${m} — ${o.value.name}`,description:`${m} from the ${o.value.name} as a video — watch the chapter on Zeno.FM.`,ogType:"article",...x.value[0]?.thumbnail?{ogImage:!1,image:x.value[0].thumbnail}:{},schema:[Ce([{name:"Bible",path:"/bible/"},{name:o.value.language,path:`/bible/languages/${o.value.languageIso}/`},{name:o.value.name,path:`/bible/${r}/`},{name:m,path:`/bible/${r}/${f}/${p}/`},{name:"Video",path:S.path}])]}),k.value&&ce({meta:[{name:"robots",content:"noindex"}]});const{report:q}=fe();return pe(()=>{!o.value||k.value||(oe({bibleId:r,bibleName:o.value.name,bookId:f,label:m,chapter:p,videoFilesetId:y}),q({languageIso:o.value.languageIso,bibleId:r,filesetId:y,bookId:f,chapter:String(p)}))}),(s,t)=>{const G=te,A=ae,L=se,J=le,K=me,Q=he,X=ee;return e(o)?(n(),P(X,{key:0},{default:l(()=>[b("div",$e,[_(G,{route:j},{default:l(()=>[d(v(e(M))+" ",1),D?(n(),i("span",Be,v(e(p)),1)):u("",!0)]),_:1}),b("div",we,[_(A,{route:{name:"bible-bibleId",params:{bibleId:e(r)}}},{default:l(()=>[d(v(e(o).name),1)]),_:1},8,["route"]),_(A,{route:j,icon:"solar:book-linear"},{default:l(()=>[...t[0]||(t[0]=[d("Read",-1)])]),_:1})])]),e(k)?(n(),i("div",je,[b("p",ze,"There is no video for "+v(e(m))+" in this Bible.",1),_(L,{to:j,class:"text-zeno-purple underline"},{default:l(()=>[...t[1]||(t[1]=[d("Read the chapter instead",-1)])]),_:1})])):e(N)&&!e(N).eligible?(n(),i("div",Le,[t[5]||(t[5]=b("p",{class:"text-lg"},"Video is not available in your region.",-1)),b("p",Te,[t[3]||(t[3]=d(" Longer films can only be shown in some countries. You can still ",-1)),_(L,{to:j,class:"underline"},{default:l(()=>[...t[2]||(t[2]=[d("read",-1)])]),_:1}),t[4]||(t[4]=d(" this chapter. ",-1))])])):e(z)?(n(),i(Y,{key:2},[_(K,null,{fallback:l(()=>[...t[6]||(t[6]=[b("div",{class:"aspect-video w-full rounded-xl bg-zeno-gray-light"},null,-1)])]),default:l(()=>[_(J,{src:e(z).url,poster:e(z).thumbnail,title:E(e(z),e(h)),onEnded:H},null,8,["src","poster","title"])]),_:1}),e(x).length>1?(n(),i("ul",Fe,[(n(!0),i(Y,null,be(e(x),(g,C)=>(n(),i("li",{key:g.url},[b("button",{type:"button",class:_e(["flex w-full flex-col gap-2 rounded-xl border p-2 text-left transition duration-150",C===e(h)?"border-zeno-dark":"border-zeno-gray-border-light hover:border-zeno-dark"]),"aria-current":C===e(h)?"true":void 0,onClick:Me=>h.value=C},[g.thumbnail?(n(),i("img",{key:0,src:g.thumbnail,alt:E(g,C),class:"aspect-video w-full rounded-lg object-cover",loading:"lazy"},null,8,Ee)):u("",!0),b("span",Ve,v(E(g,C)),1),g.duration?(n(),i("span",Pe,v(("formatTime"in s?s.formatTime:e(ne))(g.duration)),1)):u("",!0)],10,Ne)]))),128))])):u("",!0)],64)):u("",!0),!e(k)&&e(a)?.adjacent&&(e(a).adjacent.previous||e(a).adjacent.next)?(n(),i("nav",Se,[e(a).adjacent.previous?(n(),P(L,{key:0,to:{name:"bible-bibleId-stories-videoFilesetId-bookId-chapter",params:{bibleId:e(r),videoFilesetId:e(y),bookId:e(a).adjacent.previous.bookId,chapter:e(a).adjacent.previous.chapter}},rel:"prev"},{default:l(()=>[d(" < "+v(O(e(a).adjacent.previous)),1)]),_:1},8,["to"])):u("",!0),e(a).adjacent.next?(n(),P(L,{key:1,class:"ml-auto",to:{name:"bible-bibleId-stories-videoFilesetId-bookId-chapter",params:{bibleId:e(r),videoFilesetId:e(y),bookId:e(a).adjacent.next.bookId,chapter:e(a).adjacent.next.chapter}},rel:"next"},{default:l(()=>[d(v(O(e(a).adjacent.next))+" > ",1)]),_:1},8,["to"])):u("",!0)])):u("",!0),_(Q,{entries:e(W)}
1,null,8,["entries"])]),_:1})):u("",!0)}}});export{et 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.