1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5230],{64536:function(e,t,l){l.d(t,{PB:function(){return n.MediaCard},Pn:function(){return u},tR:function(){return m},zw:function(){return r},cB:function(){return x.VideoCard}});var n=l(11394),a=l(74023),i=l(31930),d=l(16395),o=l(50842);l(53387),l(83641),l(69234);var s=l(12173);function r(e){var t,l;let{content:n,showDescription:r,quality:c,isLead:u,titleClassName:m}=e,{mobileContentMetadata:x,desktopContentMetadata:p}=(0,i.T$)(n);return(0,a.jsxs)("div",{className:"w-full flex lg:flex-row flex-col gap-3 no-underline hover:opacity-70 hover:transition-opacity hover:duration-75 hover:ease-linear pb-5 border-b-grey-4 lg:border-b sm:border-b-0 border-b pt-5 first:pt-0 lg:pt-5 sm:pt-0 last:pb-0 last:border-none lg:border-r-0 sm:border-r sm:border-grey-4 lg:first:pe-0 sm:first:pe-5 lg:last:ps-0 sm:last:ps-5","data-testid":"snap-card",children:[(0,a.jsxs)(o.y,{mobileContentMetadata:x,desktopContentMetadata:p,className:"w-full flex flex-row gap-3",containerClassName:"w-full",children:[(0,a.jsxs)("div",{className:"flex flex-col sm:gap-2 gap-3 w-full",children:[(0,a.jsxs)("div",{className:(0,s.cn)("font-primary font-semibold text-grey-11 flex justify-between items-start gap-[15px]","text-base leading-5.5","lg:text-base lg:leading-5.5",m,{"sm:text-1.5xl sm:leading-7 md:text-2.5xl md:leading-8-35":!u,"sm:text-base sm:leading-5.5 md:text-base md:leading-5.5":u}),"data-testid":"headline:title",children:[(0,a.jsx)(d.Ow,{mobileContentMetadata:x,desktopContentMetadata:p,className:"w-full "}),(0,a.jsx)("div",{className:"sm:hidden block","data-testid":"mobile",children:(0,a.jsx)(d.j,{mobileContentMetadata:x,desktopContentMetadata:p,className:"rounded",containerClassName:"w-[100px] h-[100px] aspect-square",alt:null!==(t=null==n?void 0:n.title)&&void 0!==t?t:"image",width:100,height:100,playVideo:!1,quality:c,withDataTestId:!0})})]}),r&&(0,a.jsx)("div",{className:(0,s.cn)("hidden md:block font-body text-xs2 sm:text-xs2 md:text-base lg:text-xs2 !leading-normal text-grey-8 md:line-clamp-4",{"md:text-xs2 md:!custom-5.5 lg:text-xs2 lg:!leading-normal":u}),"data-testid":"headline:description",children:(0,a.jsx)(d.Y9,{mobileContentMetadata:x,desktopContentMetadata:p})})]}),(0,a.jsx)("div",{className:"sm:block hidden w-full aspect-square max-w-[100px]","data-testid":"desktop",children:(0,a.jsx)(d.j,{mobileContentMetadata:x,desktopContentMetadata:p,className:"w-full rounded",containerClassName:"w-[100px] h-[100px] aspect-square",alt:null!==(l=null==n?void 0:n.title)&&void 0!==l?l:"image",width:100,height:100,playVideo:!1,quality:c,withDataTestId:!0})})]}),r&&(0,a.jsx)("div",{className:(0,s.cn)("w-full block md:hidden font-body text-xs2 text-grey-8 line-clamp-4",{"sm:text-xs2":!u}),"data-testid":"headline:description",children:(0,a.jsx)(d.Y9,{mobileContentMetadata:x,desktopContentMetadata:p})})]})}var c=l(31652);
1function u(e){let{content:t,showImage:l,showDescription:n,quality:r,hideAuthorPicture:u,className:m,titleClassName:x}=e,p=(0,c.useTranslations)(),{mobileContentMetadata:v,desktopContentMetadata:g}=(0,i.T$)(t);return(0,a.jsxs)("div",{className:(0,s.cn)("w-full gap-y-4",m),children:[l&&(0,a.jsx)(d.j,{mobileContentMetadata:v,desktopContentMetadata:g,href:"/article/".concat(null==t?void 0:t.slug),className:"w-full rounded order-2",alt:"opinion",width:428,height:246,autoplay:!0,quality:r,withDataTestId:!0}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-3 order-1",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-x-3",children:[!u&&(0,a.jsx)(d.l9,{content:t,width:32,height:32,className:"rounded-full w-8 h-8 border border-opinion-gold",alt:"author",quality:60}),(0,a.jsx)("div",{className:"my-auto font-primary text-sm2 leading-5 text-opinion-gold","data-testid":"author:title",children:(0,a.jsx)(d.Ci,{content:t,prefix:u?p("by"):void 0})})]}),(0,a.jsxs)(o.y,{mobileContentMetadata:v,desktopContentMetadata:g,className:"flex flex-col gap-y-3 order-1",children:[(0,a.jsx)("div",{className:(0,s.cn)("font-accent md:text-xl md:leading-6.5 text-lg leading-6 font-bold text-grey-11",x),"data-testid":"headline:title",children:(0,a.jsx)(d.Ow,{mobileContentMetadata:v,desktopContentMetadata:g})}),n?(0,a.jsx)("div",{className:"font-body text-xs2 text-black-8","data-testid":"headline:description",children:(0,a.jsx)(d.Y9,{mobileContentMetadata:v,desktopContentMetadata:g})}):null]})]})]})}function m(e){var t;let{content:l,className:n,titleClassName:r,imageClassName:c,imageContainerClassName:u,block:m}=e,{mobileContentMetadata:x,desktopContentMetadata:p}=(0,i.T$)(l);return(0,a.jsxs)("div",{className:(0,s.cn)("w-full relative left-block__image-wrapper article-hover-effect",n),"data-testid":"single-card",children:[(0,a.jsxs)(o.y,{mobileContentMetadata:x,desktopContentMetadata:p,className:(0,s.cn)("grid gap-y-3",r),containerClassName:"w-full order-2 sm:order-1",redirectUrl:null==m?void 0:m.redirectUrl,children:[(0,a.jsx)("div",{className:"font-primary text-1.5xl leading-7 sm:text-xl sm:leading-6.5 md:text-1.5xl md:leading-7 lg:text-xl lg:leading-6.25 xl:text-1.5xl xl:leading-7.5 lg:font-extrabold font-semibold text-grey-11 normal","data-testid":"headline:title",children:(0,a.jsx)(d.Ow,{mobileContentMetadata:x,desktopContentMetadata:p})}),(0,a.jsx)("div",{className:"flex flex-col space-y-2.5",children:(0,a.jsx)("div",{className:"font-body text-grey-8 text-base leading-normal line-clamp-4 sm:text-xs2 sm:leading-normal md:text-base md:leading-normal lg:text-sm lg:leading-normal xl:text-base xl:leading-normal lg:line-clamp-6 xl:line-clamp-4","data-testid":"headline:description",children:(0,a.jsx)(d.Y9,{mobileContentMetadata:x,desktopContentMetadata:p})})})]}),(0,a.jsx)(o.y,{className:(0,s.cn)("w-full",u),containerClassName:"w-full order-1 sm:order-2","data-testid":"headline",mobileContentMetadata:x,desktopContentMetadata:p,redirectUrl:null==m?void 0:m.redirectUrl,children:(0,a.jsx)(d.j,{mobileContentMetadata:x,desktopContentMetadata:p,href:"/article/".concat(null==l?void 0:l.slug),className:(0,s.cn)("w-full rounded-custom",c),alt:null!==(t=null==l?void 0:l.title)&&void 0!==t?t:"info",width:612,height:345,autoplay:!0,quality:90,withDataTestId:!0,noLink:!0})})]})}l(36415),l(73765);var x=l(31717);l(83103)},26092:function(e,t,l){l.d(t,{Q:function(){return d}});var n=l(90733),a=l(35472),i=l(83641);let d=(e,t,l,d)=>{var o,s;let{seriesId:r,series:c,includeMoreLikeThis:u,genreId:m}=(0,i.useMemo)(()=>{var e,l,n,a,i,o;let s=(null==t?void 0:null===(e=t.categoryItem)||void 0===e?void 0:e.type)==="series",r=(null==t?void 0:null===(l=t.categoryItem)||void 0===l?void 0:l.genre)||(null==t?void 0:null===(n=t.seriesEpisode)||void 0===n?void 0:n.genre),c=null==r?void 0:null===(a=r[0])||void 0===a?void 0:a.id;return s?{includeMoreLikeThis:!!(d&&s&&c),seriesId:null==t?void 0:null===(o=t.categoryItem)||void 0===o?void 0:o.id,series:null==t?void 0:t.categoryItem,categoryItem:null==t?void 0:t.categoryItem,genreId:c}:{includeMoreLikeThis:!!(d&&c),seriesId:null==t?void 0:null===(i=t.series)||void 0===i?void 0:i.id,series:null==t?void 0:t.series,categoryItem:(null==t?void 0:t.categoryItem)||(null==t?void 0:t.series),genreId:c}},[null==t?void 0:t.categoryItem,null==t?void 0:t.series,d]),x=(0,n.MS)(),p=(0,i.useMemo)(()=>!!x&&e&&!!r,[r,e,x]),{data:v,...g}=(0,a.a)({queryKey:["series-episodes",null==x?void 0:x.id,null==t?void 0:t.id,l],queryFn:async()=>{var e,n;let a=new URLSearchParams({seriesId:r||"",itemId:[null==t?void 0:t.id,null==t?void 0:null===(e=t.categoryItem)||void 0===e?void 0:e.id,null==t?void 0:null===(n=t.seriesEpisode)||void 0===n?void 0:n.id].filter(
1Boolean).join(",")});(null==x?void 0:x.id)&&a.append("channelId",x.id),(null==x?void 0:x.languageCode)&&a.append("languageCode",x.languageCode),p&&void 0!==l&&!isNaN(l)&&a.append("seasonNumber",l.toString()),u&&(a.append("includeMoreLikeThis","true"),m&&a.append("genreId",m));let i=await fetch("/api/get-series-episods?".concat(a.toString()));if(!i.ok)throw Error("Failed to fetch series episodes");return i.json()},enabled:e&&(!!r||!!u)});return{data:(null==v?void 0:v.SeriesEpisodes)?null==v?void 0:v.SeriesEpisodes.docs.map(e=>({...e,media:e.video,coverImage:e.thumbnail,series:c})):[],moreLikeThis:(null==v?void 0:null===(s=v.moreLikeThis)||void 0===s?void 0:null===(o=s.CategoryItems)||void 0===o?void 0:o.docs)||[],isSeries:p,...g}}},80375:function(e,t,l){l.d(t,{FE:function(){return i},Uq:function(){return d},b2:function(){return o}});var n=l(74023),a=l(12173);function i(e){let{children:t,className:l,wrapperClassName:i,dataTestId:d,...o}=e;return(0,n.jsx)("section",{className:(0,a.cn)("section-container overflow-hidden w-full",l),"data-testid":d,...o,children:(0,n.jsx)("div",{className:(0,a.cn)("flex flex-col",i),children:t})})}function d(e){let{children:t,className:l,dataTestId:i,...d}=e;return(0,n.jsx)("section",{className:(0,a.cn)("section-container w-full",l),"data-testid":i,...d,children:t})}function o(e){let{children:t,className:l,dataTestId:i,...d}=e;return(0,n.jsx)("section",{className:(0,a.cn)("vod-section-container w-full",l),"data-testid":i,...d,children:t})}},32205:function(e,t,l){l.d(t,{H:function(){return i}});var n=l(74023),a=l(12173);function i(e){let{title:t,className:l,hideTopBorder:i,children:d,vodPage:o}=e;return(0,n.jsxs)("div",{className:(0,a.cn)("font-body text-grey-9 font-black border-t border-t-grey-9 pt-1.5 sm:pt-2 pb-4 sm:pb-3 lg:pb-4",l,{"text-xl md:text-3.5xl lg:text-3xl xl:text-4xl leading-normal":!o},{"!pt-0 border-none border-t-0":i||o},{"!pb-0 font-primary text-base !leading-5.5 sm:text-lg sm:!leading-6 md:text-xl md:!leading-normal lg:!leading-normal lg:text-1.5xl":o}),"data-testid":"main:title",children:[t,d]})}l(83641)},95512:function(e,t,l){l.d(t,{C:function(){return i}});var n=l(74023),a=l(12173);function i(e){let{title:t,className:l,hideTopBorder:i=!1,children:d}=e;return t?(0,n.jsxs)("span",{className:(0,a.cn)("inline-block w-full font-body text-2xl sm:text-3.5xl lg:text-4xl text-grey-9 font-black",l,{"border-t border-t-grey-9 pt-2":!i}),"data-testid":"main:title",children:[t,d]}):(0,n.jsx)("span",{className:(0,a.cn)("inline-block w-full",l,{"border-t":!i})})}l(83641)},53371:function(e,t,l){l.d(t,{u:function(){return i}});var n=l(74023),a=l(95512);let i=e=>{let{block:t,hideTopBorder:l}=e;return(0,n.jsx)(a.C,{title:null==t?void 0:t.name,hideTopBorder:l,className:"text-grey-9 border-t-grey-9 pt-2 pb-4 sm:pb-3 lg:pb-4"})}},20689:function(e,t,l){l.d(t,{dS:function(){return a.FullScreenMediaModal},FE:function(){return n.FE},Uq:function(){return n.Uq},b2:function(){return n.b2}}),l(74023),l(83641),l(64536),l(8247),l(53371),l(61845),l(94267);var n=l(80375);l(9483),l(95512);var a=l(54835);l(35483),l(460)},28651:function(e,t,l){l.d(t,{LiveStreamCarousel:function(){return j}});var n=l(74023),a=l(12173),i=l(83641),d=l(91900),o=l(69959),s=l(32205),r=l(54059),c=l.n(r),u=l(35323),m=l.n(u),x=l(75425),p=l(64710),v=l(90733),g=l(31652);let f=e=>{let{program:t,isLive:l,isFirst:d,localeDate:o,endDate:s,live:r,isFixed:c}=e,{setLive:u}=(0,p.kK)(),m=(0,g.useTranslations)(),f=(0,v.MS)(),{programName:h,synopsis:b}=(0,i.useMemo)(()=>{let e=x.$[null==f?void 0:f.languageCode]||{},l=e.programName in t?e.programName:x.$.en.programName,n=e.synopsis in t?e.synopsis:x.$.en.synopsis;return{programName:t[l],synopsis:t[n]}},[f,t]);return(0,n.jsxs)("div",{className:(0,a.cn)("flex flex-col border-r border-grey-6 last:border-r-0 h-full"),children:[(0,n.jsx)("div",{className:"bg-grey-12 py-1 border-b border-b-grey-13",children:(0,n.jsxs)("div",{className:(0,a.cn)("flex items-center gap-3 px-4 py-2",{"border-l border-l-grey-1":!d}),children:[l&&(0,n.jsx)("div",{className:"w-3 h-3 rounded-full bg-categories-live flex-shrink-0"}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,n.jsx)("span",{className:"font-body text-xs md:text-xs2 text-white font-bold uppercase tracking-[1px]",children:null==o?void 0:o.format("HH:mm")}
1),(0,n.jsxs)("span",{className:"font-body text-xs md:text-xs2 text-white font-bold uppercase tracking-[1px]",children:["( ",m("gmt")," )"]})]})]})}),(0,n.jsxs)("div",{className:(0,a.cn)("flex flex-col px-6 py-3 bg-grey-12 border-l border-l-grey-13 flex-1",{"bg-grey-10 gap-6":l,"gap-4":!l}),children:[(0,n.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,n.jsx)("h3",{className:(0,a.cn)("font-primary font-bold text-base leading-6 md:text-xl md:leading-normal first-letter:uppercase line-clamp-2","text-white"),children:h.replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(/[\s_-]+/).map((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}),(0,n.jsx)("span",{className:(0,a.cn)("text-xs2 leading-normal line-clamp-3",{"font-light text-grey-1":l,"font-normal text-grey-7":!l}),children:b})]}),(0,n.jsxs)("div",{...l&&{dir:"ltr"},className:(0,a.cn)("flex items-center justify-between",{"mt-auto":!l}),children:[(0,n.jsxs)("div",{className:(0,a.cn)("font-body text-sm text-white font-medium uppercase tracking-[0.6px]"),children:[null==o?void 0:o.format("HH:mm")," - ",null==s?void 0:s.format("HH:mm")]}),c?null:(0,n.jsx)("button",{className:(0,a.cn)("h-[40px] px-2 md:px-4 bg-categories-live-2 rounded text-sm md:text-base text-white font-body font-medium tracking-[0.65px] uppercase hover:opacity-90",{invisible:!l}),onClick:()=>{u(r)},children:m("watchNow")})]})]})]})};var h=l(7673),b=l(9102);c().extend(m());let y=e=>{let t=(0,h.jv)().toDate(),l=new Date(e.gmtDateTime),n=new Date(new Date(e.gmtDateTime).getTime()+e.planDurationMilisecond);return t>=l&&t<=n},j=e=>{var t,l,r;let{live:u,theme:m,isFixed:x=!1,vodPage:p=!1}=e,v=null==u?void 0:null===(t=u.data)||void 0===t?void 0:t.length,[g,j]=(0,i.useState)(null),[w,N]=(0,i.useState)(0),[C,M]=(0,i.useState)(()=>(0,h.jv)().toDate()),k=(0,i.useRef)((0,o.Y)()),I=(0,i.useMemo)(()=>new Date().toISOString(),[]),{data:S}=(0,b.s)(I,!v);return((0,i.useEffect)(()=>{M((0,h.jv)().toDate());let e=setInterval(()=>{M((0,h.jv)().toDate())},3e4);return()=>{clearInterval(e)}},[]),(0,i.useEffect)(()=>{var e,t,l,n;if(g&&null!==(l=(null==u?void 0:null===(e=u.data)||void 0===e?void 0:e.length)>0||(null==S?void 0:null===(t=S.data)||void 0===t?void 0:t.length))&&void 0!==l&&l){let e=null===(n=(null==u?void 0:u.data)||(null==S?void 0:S.data))||void 0===n?void 0:n.findIndex(y),t=e>=0?e:0;g.scrollTo(t),N(t)}},[g,null==u?void 0:u.data,C,null==S?void 0:S.data]),(0,i.useEffect)(()=>{if(!g)return;let e=()=>{N(g.selectedScrollSnap())};return g.on("select",e),e(),()=>{g.off("select",e)}},[g]),v||(null==S?void 0:null===(l=S.data)||void 0===l?void 0:l.length))?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:(0,a.cn)("w-full bg-liveStreamGradient vod-section-wrapper flex flex-col gap-2 md:gap-[20px] hover:z-[3]",{"py-5 md:py-9 pb-8 md:pb-9":!x,"pointer-events-none":x}),children:[x?null:(0,n.jsx)("div",{className:"vod-section-container",children:(0,n.jsx)(s.H,{title:"Live Stream",className:(0,a.cn)("carousel-title font-primary text-grey-1",{"text-grey-9":"light"===m}),hideTopBorder:!0,vodPage:p})}),(0,n.jsx)("div",{className:(0,a.cn)("w-full",{"vod-section-container pb-2 vod-wrapper clip-carousel-stream":!x}),children:(0,n.jsx)(d.Carousel,{setApi:j,opts:{align:"start",skipSnaps:!1,containScroll:"trimSnaps"},plugins:[k.current],className:"w-full",children:(0,n.jsx)(d.CarouselContent,{containerClassName:"overflow-unset",children:null===(r=(null==u?void 0:u.data)||(null==S?void 0:S.data))||void 0===r?void 0:r.map((e,t)=>{let l=y(e),i=l&&w===t,o=c().utc(e.gmtDateTime),s=c().utc(e.gmtDateTime).add(e.planDurationMilisecond,"millisecond");return(0,n.jsx)(d.CarouselItem,{className:(0,a.cn)("basis-[320px] lg:basis-[433px]","select-none cursor-grab"),children:(0,n.jsx)(f,{program:e,isLive:l,shouldZoom:i,isFirst:0===t,localeDate:o,endDate:s,live:u||S,isFixed:x})},t)})})})})]})}):null}},198:function(e,t,l){l.d(t,{L:function(){return a}});var n=l(83641);let a=()=>{let[e,t]=(0,n.useState)(),[l,a]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{function e(){t(void 0)}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}},[]),{handleMouseEnter:e=>{t(e)},handleMouseLeave:()=>{t(void 0)},handleOpenModal:e=>
1{a(e),document.querySelectorAll("video").forEach(e=>{(null==e?void 0:e.pause)&&e.pause()})},handleCloseModal:()=>{a(void 0)},isHovered:e,videoIndex:l}}},2884:function(e,t,l){l(94267),l(7673)},36415:function(e,t,l){l(2884)},9102:function(e,t,l){l.d(t,{s:function(){return d}});var n=l(90733),a=l(35472),i=l(83641);function d(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l=(0,i.useMemo)(()=>(null==e?void 0:e.split("T")[0])||new Date().toISOString().split("T")[0],[e]),d=(0,n.MS)(),o=(0,i.useCallback)(async t=>(await fetch("/api/tv?channelId=".concat(null==t?void 0:t.id).concat("&fromDate=".concat(e||new Date().toISOString())))).json(),[e]),{data:s,...r}=(0,a.a)({queryKey:["live-tv-header",null==d?void 0:d.id,l],queryFn:()=>o(d),enabled:t&&!!(null==d?void 0:d.id),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retryOnMount:!1});return{data:s,...r}}}}]);
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.