import{B as e,F as t,H as n,I as r,P as i,T as a,W as o,X as s,Z as c,st as l,y as u,z as d}from"./vue-quasar-CzR5lecU.js";import{r as f}from"./index-C94eCAzg.js";var p={name:`PodcastsView`,props:{app:{type:Object,required:!0}},setup(e){return e.app}},m={key:0,class:`empty-state`,role:`status`},h={key:1,class:`podcasts-view`},g={class:`section-header`},_={class:`section-header__actions`},v={class:`shelf-nav`},y=[`aria-label`],b=[`aria-label`],x={class:`media-rail`},S=[`onClick`,`onKeydown`],C={key:1,class:`media-card__art media-card__art--empty`},w={class:`media-card__title`},T={class:`media-card__meta`},E={class:`media-card__stat`},D={key:2,class:`empty-state`};function O(f,p,O,k,A,j){return f.podcastLoading&&!f.podcastFeed.sections.length?(s(),n(`div`,m,` Loading podcasts… `)):f.podcastFeed.sections.length?(s(),n(`div`,h,[(s(!0),n(r,null,c(f.podcastFeed.sections,m=>(s(),n(`section`,{key:m.key,class:`shelf-section`},[d(`div`,g,[d(`h2`,null,l(m.title),1),d(`div`,_,[d(`span`,null,l(f.sectionCount(m)),1),d(`div`,v,[d(`button`,{type:`button`,"aria-label":`Scroll ${m.title} left`,onClick:p[0]||=e=>f.scrollShelf(e,-1)},[o(a,{name:`chevron_left`})],8,y),d(`button`,{type:`button`,"aria-label":`Scroll ${m.title} right`,onClick:p[1]||=e=>f.scrollShelf(e,1)},[o(a,{name:`chevron_right`})],8,b)])])]),d(`div`,x,[(s(!0),n(r,null,c(m.items,r=>(s(),n(`article`,{key:`podcast-${r.id||f.itemBrowseId(r)||r.title}`,class:`media-card`,role:`button`,tabindex:`0`,onClick:e=>f.openMedia(r,m.items),onKeydown:[i(t(e=>f.openMedia(r,m.items),[`prevent`]),[`enter`]),i(t(e=>f.openMedia(r,m.items),[`prevent`]),[`space`])]},[r.thumbnail?(s(),e(u,{key:0,src:r.thumbnail,class:`media-card__art`},null,8,[`src`])):(s(),n(`div`,C,[o(a,{name:`podcasts`})])),d(`div`,w,l(r.title),1),d(`div`,T,l(f.itemMeta(r)||f.itemTypeLabel(r)),1),d(`div`,E,l(f.itemStat(r)),1)],40,S))),128))])]))),128))])):(s(),n(`div`,D,`No podcasts were returned.`))}var k=f(p,[[`render`,O]]);export{k as default};