1import{R as S,bn as x,bo as k,r as f,bp as A,bq as y,br as I,a as e,t as C,j as l,bs as a,F as p,u as P,p as w,o as z,V as v,bt as B,A as R,bf as V,bu as _,S as W,e as j,G as F,bv as M,bw as O}from"./index-BgcUcd2q.js";import{E as G}from"./EntityHeaderLarge-DWLtSszd.js";import{E as N,S as Q}from"./index-BwSDX7rr.js";import{L as U}from"./index-Cy35M18U.js";import{S as q}from"./index-DDaBYrL5.js";import{u as H}from"./index-CoA4dACl.js";import{u as D}from"./index-CFjuB9At.js";import"./utils-Dxssi3Y4.js";const J=({contentId:o,maxItems:r=5})=>{const s=S(x(o)),{request:n}=k();f.useEffect(()=>{n()},[n]);const i=A(y(s==null?void 0:s.podcastType)),u=S(y(s==null?void 0:s.podcastType));f.useEffect(()=>{i()},[i]);const c=S(I({showContentId:o,sort:u})),m=c.getLength(),h=[...new Array(Math.min(m,r))].map((g,d)=>c.get(d));return e(N,{episodes:h})},E={skeletonTextContainer:{marginBottom:40},container:{marginTop:20}},K=()=>{const{greaterThan:o}=C();return e("div",{css:E.skeletonTextContainer,children:o.SM?l(p,{children:[e(a,{length:50,fontSize:15}),e(a,{length:64,fontSize:15}),e(a,{length:60,fontSize:15}),e(a,{length:46,fontSize:15})]}):l(p,{children:[e(a,{length:24,fontSize:15}),e(a,{length:32,fontSize:15}),e(a,{length:28,fontSize:15}),e(a,{length:12,fontSize:15})]})})},X=({length:o})=>{const r=Array.from(Array(o).keys());return e("div",{css:E.container,children:r.map(s=>e(K,{},s))})},b={maxEpisodes:5},ne=({contentId:o,request:r,seoMetadata:s})=>{const{t:n}=P(),{onPageLoad:i,metadata:u}=w({}),c=D(),m=H([i,c]),h=z(v.AllEpisodes),g=B({contentId:o,feature:R.CTA_BUTTON,featureText:n("podcastScreen.episodeList.seeAll.cta"),viewId:h});return l(p,{children:[e(q,{branchMetadata:u,seoMetadata:s}),e(U,{isBackButtonInLayoutHeader:!1,shouldRemoveTopPadding:!0,children:e(V,{onViewLoaded:m,render:(d,T)=>{const t=d.rootObject,L=t.url?_(t.url):"";return l(p,{children:[e(G,{contentId:t.id,entityType:t.type,entitySubtype:t.subtype,buttonText:n("podcastScreen.latestEpisode.cta"),description:t.description,entityImageAlt:t.imageAlt,imageURIBase:t.image,subtitle:t.author,title:t.title,url:t.url,featuredPlayable:d.featuredPlayable}),e(W,{title:n("podcastScreen.episodeList.header"),titleCta:(t==null?void 0:t.podcastType)===O.SERIAL?e(Q,{podcastType:t.podcastType}):null,footerContent:e(M,{href:L,label:n("podcastScreen.episodeList.seeAll.cta"),onClick:g}),children:e(j,{children:e(F,{lg:"1/7",children:e(f.Suspense,{fallback:e(X,{length:b.maxEpisodes}),children:e(J,{contentId:t.id,maxItems:b.maxEpisodes})})})})}),T]})},request:r})})]})};export{ne as default}; 2//# sourceMappingURL=index-De6biPFp.js.map
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.