1import{b as j,_ as U,a as V}from"./Bgv90bLs.js";import{G as F,_ as B,a as M,h as q,n as K,N as Y}from"./BEbVkMZM.js";import{E,M as v,u as e,l as I,L as o,v as G,Y as _,F as R,Z as Q,a5 as s,P as d,N as w,a7 as h,T as u,bI as L,w as S,Q as Z,bK as H,i as W,p as b,bP as J,bb as X,aU as tt,ah as et,a as st,a6 as k,be as ot,aw as at}from"./CdF3t0oV.js";import{_ as N}from"./CJB_7qIx.js";import{_ as nt}from"./DnjNoy40.js";import{d as it,E as lt,_ as ct,a as rt,b as ut,u as dt}from"./t_Ybjbzf.js";import{_ as pt}from"./CCNV--eR.js";import{w as mt,v as _t}from"./D92X5zYB.js";import{B as gt}from"./L2URQU9b.js";import{u as vt}from"./CGIGtfR2.js";import{c as xt}from"./C0k_CvG7.js";import{u as ft}from"./DStQnQEE.js";import"./Cce955F1.js";import"./B-ddQ-nB.js";import"./BEREdQ6Q.js";import"./D2HbcKdl.js";import"./DlAUqK2U.js";import"./i7HzhK1M.js";import"./CaJYvcvY.js";import"./DascCE3z.js";import"./BveLCwRw.js";import"./Cl7X7diP.js";import"./CyOriLK0.js";import"./DAaiGirh.js";const ht=E({__name:"PodcastTags",props:{podcast:{}},setup(l){const n=I(()=>{const c=[];return l.podcast.categories.forEach(i=>{const r=i.split("/")?.[1];(r?.length||i?.length)&&c.push({title:r||i,route:F(i),icon:"solar:library-linear"})}),l.podcast.country&&c.push({title:l.podcast.country,route:{name:"podcasts-countries-country",params:{country:l.podcast.country}},icon:"solar:map-point-linear"}),l.podcast.language&&c.push({title:l.podcast.language,route:{name:"podcasts-languages-language",params:{language:l.podcast.language}},icon:"solar:global-linear"}),c});return(c,i)=>{const r=j;return o(),v(r,{tags:e(n)},null,8,["tags"])}}}),yt=Object.assign(ht,{__name:"PodcastTags"}),bt={class:"space-y-6 md:space-y-10"},kt={class:"shrink-0"},wt={class:"min-w-0 shrink space-y-2.5 md:space-y-3"},$t={class:"wrap-break-word sm:text-lg"},Lt=E({__name:"EpisodeList",props:{podcast:{},episodes:{}},setup(l){return G(lt,it()),(n,c)=>{const i=ct,r=B,x=rt,g=N,t=ut;return o(),_("div",bt,[(o(!0),_(R,null,Q(l.episodes,a=>(o(),_("div",{key:a.id,class:"flex gap-5"},[s("div",kt,[d(r,{to:a.route},{default:w(()=>[d(i,{variant:"list",alt:a.title,src:a.logoImage.src,srcset:a.logoImage.srcset},null,8,["alt","src","srcset"])]),_:2},1032,["to"])]),s("div",wt,[d(r,{to:a.route,class:"block space-y-2.5 md:space-y-3"},{default:w(()=>[s("div",null,[d(x,{duration:a.duration,explicit:a.explicit,"published-date":a.publishedDate},null,8,["duration","explicit","published-date"]),s("h3",$t,h(a.title),1)]),a.summary?(o(),v(g,{key:0,text:a.summary,class:"line-clamp-3"},null,8,["text"])):u("",!0)]),_:2},1032,["to"]),d(t,{episode:a,podcast:l.podcast},null,8,["episode","podcast"])])]))),128))])}}}),Et=Object.assign(Lt,{__name:"EpisodeList"}),Pt={class:"space-y-8"},Tt={class:"flex flex-wrap items-center justify-between gap-4"},Ct={class:"relative w-full"},zt={class:"pointer-events-none absolute inset-y-0 inset-s-0 flex items-center ps-3.5"},Dt={key:0,class:"absolute inset-y-0 inset-e-0 flex items-center pr-4"},D=10,It=E({__name:"PodcastEpisodes",props:{podcast:{}},async setup(l){let n,c;const i=b([]),r=b(""),x=b(""),g=b(0),t=b(!0),{data:a,status:A}=([n,c]=L(()=>J(I(()=>`podcast-episodes-${l.podcast.identifier}-${x.value}-${g.value}`),()=>$fetch(`/api/podcasts/${l.podcast.identifier}/episodes`,{headers:X(),params:{query:x.value,offset:g.value,limit:D,sortDir:l.podcast.showType==="serial"?"asc":"desc"}}),"$8Kc7hAi4C0")),n=await n,c(),n);a.value&&(i.value=a.value);const p=I(()=>A.value==="pending");S(a,m=>{m?(i.value=g.value?[...i.value,...m]:m,t.value=m.length===D):t.value=!1}),mt(document,async()=>{p.value||!t.value||(g.value+=D)},{distance:100,interval:500});const P=_t(m=>{g.value=0,t.value=!0,x.value=m},300);S(r,m=>{P(m)});const T=()=>{r.value="",g.value=0,t.value=!0,x.value=""};return(m,f)=>{const y=M,C=Et,$=pt;return o(),_("div",Pt,[s("div",Tt,[s("div",Ct,[s("div",zt,[d(y,{class:"mr-2 text-gray-400",name:"solar:magnifer-linear",size:"16"})]),Z(s("input",{"onUpdate:modelValue":f[0]||(f[0]=z=>W(r)?r.value=z:null),class:"block w-full rounded-full border border-zeno-gray-border bg-zeno-gray-light p-2.5 ps-10 text-sm",placeholder:"Search episodes",type:"text"},null,512),[[H,e(r)]]),p.value?(o(),_("div",Dt,[d(y,{class:"animate-spin",name:"mingcute:loading-3-fill",size:"24"})])):e(r)?(o(),_("button",{key:1,"aria-label":"Clear search",class:"absolute inset-y-0 inset-e-0 flex items-center pr-5",onClick:T},[...f[1]||(f[1]=[s("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg"},[s("path",{d:"M8 6.586L12.95 1.636 14.364 3.05 9.414 8l4.95 4.95-1.414 1.414L8 9.414l-4.95 4.95L1.636 12.95 6.586 8 1.636 3.05 3.05 1.636 8 6.586z",fill:"#999999"})],-1)])])):u("",!0)])]),e(i).length?(o(),v(C,{key:0,episodes:e(i),podcast:l.podcast},null,8,["episodes","podcast"])):!e(i).length&&!p.value?(o(),v($,{key:1})):u("",!0),p.value?(o(),v(y,{key:2,class:"mx-auto mt-4 block animate-spin",name:"mingcute:loading-3-fill",size:"48"})):u("",!0)])}}}),At=Object.assign(It,{__name:"PodcastEpisodes"}),St={key:0,class:"space-y-12"},Bt={class:"flex flex-col gap-8 md:flex-row"},Mt={class:"-mt-20 flex-none space-y-8 pl-0 text-center md:pl-8"},Rt={class:"flex-1"},Nt={class:"mb-5 text-center md:text-left"},Ot={key:0,class:"text-sm text-zeno-text-light"},jt={class:"mb-2 text-lg font-semibold md:text-2xl"},Ut={key:1},Vt={key:1,class:"mt-5"},Ft={key:2,class:"mt-5 text-sm text-zeno-text-light"},qt={class:"space-y-6 md:space-y-8"},Kt={class:"flex justify-between gap-4 border-b border-zeno-gray-border md:justify-start"},Yt={class:"flex items-center border-b border-zeno-dark px-6 pb-4 text-lg"}
1,Gt={class:"ml-2 rounded-full bg-zeno-gray-light p-1 text-xs font-semibold text-zeno-gray"},fe=E({__name:"index",async setup(l){let n,c;const i=tt(),r=q(),{proxy:x}=K(),{podcastId:g}=i.params,{data:t}=([n,c]=L(()=>dt(g)),n=await n,c(),n);if(!t.value)throw et({status:404});t.value.identifier!==g&&([n,c]=L(()=>at(r(t.value.route,"en"),{})),await n,c()),vt({title:`Listen to ${t.value.title}`,description:`Tune in to ${t.value.title} and explore a world of captivating episodes. Catch up on your favorite podcasts and discover new shows today!`,cardSubtitle:t.value.author,entityImage:t.value.metaLogo,ogType:"music.playlist",breadcrumbs:[gt.podcasts,{name:t.value.title,path:i.path}],schema:Y({name:t.value.title,description:t.value.metaDescription,url:xt(i.path),image:t.value.metaLogo,author:t.value.author,numberOfEpisodes:t.value.episodeCount,genre:t.value.allCategories})});const{showAds:a}=([n,c]=L(()=>ft(()=>!t.value?.station?.adsDisabled)),n=await n,c(),n);return st(()=>{t.value&&x.dataLayer.push({event:"custom_page_view",content_group:t.value.external?"Third Party Podcasts":"Zeno Podcasts"})}),(A,p)=>{const P=U,T=V,m=M,f=B,y=yt,C=N,$=ot,z=nt,O=At;return e(t)?(o(),_("div",St,[d(P,{alt:e(t).title,cover:e(t).cover},null,8,["alt","cover"]),s("div",Bt,[s("div",Mt,[d(T,{variant:"square",alt:e(t).title,src:e(t).logoImage.src,srcset:e(t).logoImage.srcset},null,8,["alt","src","srcset"])]),s("section",Rt,[s("div",Nt,[e(t).author||e(t).explicit?(o(),_("div",Ot,[e(t).explicit?(o(),v(m,{key:0,class:"mr-1 inline-block align-sub",name:"material-symbols:explicit-rounded",size:"18",title:"Explicit content"})):u("",!0),e(t).author?(o(),_(R,{key:1},[k(h(e(t).author),1)],64)):u("",!0)])):u("",!0),s("h1",jt,h(e(t).title),1),e(t)?.station?(o(),_("h2",Ut,[d(f,{to:e(t)?.station.route,class:"block hover:underline md:text-lg"},{default:w(()=>[k(h(e(t).station.title),1)]),_:1},8,["to"])])):u("",!0)]),d(y,{podcast:e(t),class:"mb-5"},null,8,["podcast"]),e(t).description?(o(),v(C,{key:0,text:e(t).description,class:"mt-5"},null,8,["text"])):u("",!0),e(t).link?(o(),_("div",Vt,[d($,{to:e(t).link,"aria-label":"Podcast website",class:"inline-flex items-center rounded-full bg-zeno-gray-light px-4 py-1",target:"_blank","aria-describedby":"opens-new-window-desc"},{default:w(()=>[d(m,{name:"bi:globe2",size:"16"}),p[0]||(p[0]=s("span",{class:"ml-2"},"Website",-1))]),_:1},8,["to"])])):u("",!0),e(t).attribution?(o(),_("p",Ft,[k(h(e(t).attribution)+" ",1),e(t).sourceUrl?(o(),v($,{key:0,to:e(t).sourceUrl,target:"_blank",rel:"noopener noreferrer",class:"underline","aria-describedby":"opens-new-window-desc"},{default:w(()=>[...p[1]||(p[1]=[k(" View source ",-1)])]),_:1},8,["to"])):u("",!0)])):u("",!0)])]),e(a)?(o(),v(z,{key:0})):u("",!0),s("div",qt,[p[3]||(p[3]=s("h2",{class:"sr-only"},"Episodes",-1)),s("div",Kt,[s("button",Yt,[p[2]||(p[2]=k(" Episodes ",-1)),s("span",Gt,h(e(t).episodeCount),1)])]),d(O,{podcast:e(t)},null,8,["podcast"])])])):u("",!0)}}});export{fe 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.