1import{w as E,u as x,e as P,l as k,j as l}from"./locale-C05yhQ7T.js";import{V as h,A as T,M as A,u as y,W as C,G as S,X as o,Y as j}from"./Content-Bbeop6LK.js";import{a as w,E as V}from"./EventPage-d4xdzRY8.js";import{u as D}from"./EnvelopeIcon-DQ9W1bku.js";import{r as u}from"./index-DgOxCJIz.js";import{P as I,a as R}from"./PlayerStream-C7gYBnrb.js";import{s as F}from"./index-8pL-eA-W.js";import{e as G}from"./Card-CslNu5uW.js";import{P as J}from"./usePlayerContext-DcB2iR6t.js";function L(){return typeof document<"u"?document:void 0}function N(t){const a=L(),e=t?`${t} - Cloudflare TV`:"Cloudflare TV",s=u.useRef(a==null?void 0:a.title);u.useEffect(()=>{if(a==null)return;const r=s.current;return a.title=e,()=>{a.title=r}},[a,e])}const M=({currentParams:t,nextParams:a,defaultShouldRevalidate:e})=>JSON.stringify(t)==JSON.stringify(a)?!1:e,Y={i18n:["main","event"],getAnalytics:({eventCanonical:t})=>({page:T.VOD,tags:t==null?void 0:t.tagsAnalytics,urlPath:h(t)})},$=()=>[],Q=({data:t,location:a})=>{var r,i,c;const{event:e,eventCanonical:s}=t;return A(a,{title:s.metaTitle||s.title,description:s.metaDescription||s.descriptionShort,image:((r=s.thumbnail)==null?void 0:r.url)||((c=(i=s.show)==null?void 0:i.heroImage)==null?void 0:c.url),urlCanonical:h(s),video:e})},Z=M,_=E(function(){var p;const a=y(),{event:e,video:s}=x(),r=(p=e==null?void 0:e.segment.thumbnail)==null?void 0:p.url,i=C(e==null?void 0:e.segment),c=D();N(e==null?void 0:e.segment.title),w();const b=S(e),g=P(),d=G(e);u.useEffect(()=>{d&&g(k(a.locale,"/live"),{replace:!0})},[d,g]);const[v,n]=u.useState([]);return u.useEffect(()=>{var f;const m=e.segment;if((f=m.transcription)!=null&&f.length&&!m.transcriptionReviewed)switch(m.language){case o.English:n([{language:"en",label:"English (Auto-generated)"}]);break;case o.Filipino:n([{language:"fil",label:"Filipino (Awtomatikong nabuo)"}]);break;case o.French:n([{language:"fr",label:"Français (Généré automatiquement)"}]);break;case o.German:n([{language:"de",label:"Deutsch (Automatisch generiert)"}]);break;case o.Japanese:n([{language:"ja",label:"æ¥æ¬èªï¼èªåçæï¼"}]);break;case o.Korean:n([{language:"ko",label:"íêµì´(ìë ìì±)"}]);break;case o.Mandarin:n([{language:"zh-Hans",label:"ç®ä½ä¸æ (èªå¨çæ)"}]);break;case o.Portuguese:n([{language:"pt",label:"Português (Gerado automaticamente)"}]);break;case o.Spanish:n([{language:"es",label:"Español (Autogenerado)"}]);break}},[e]),l.jsxs(J,{startTime:c,video:{title:e.segment.title,videoId:i},children:[l.jsx(V,{event:e,children:b&&i?l.jsx(I,{poweredBy:!0,children:l.jsx(R,{poster:r,textTrackLabels:v})}):null}),l.jsx(F.JsonLd,{item:{"@context":"https://schema.org",...j(e,s)}})]})});export{_ as E,Z as a,Y as h,$ as l,Q as m,M as s};
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.