PageSourceSearch

https://ici.tou.tv/_next/static/chunks/1800-001e2aca9ecae888.js

js tou.tv collected 2026-10-02 03:09:29 UTC 48,954 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1800],{36502:function(e,i,t){"use strict";t.d(i,{Z:function(){return _}});var n=t(24246),l=t(28228),o=t(27378),a=t(75373),r=t(16441),s=t(98818),c=t(50220),d=t(58528),u=t(78125),m=t(72358),p=t(21859),h=t(6962),g=t(65508),f=t(3257),v=t(76464),x=t(40585),y=t(81442),b=t(17361),j=t(33932),C=t(167),w=t(49741);function _(e){var i,t,g;let{ratio:j,showAutoplay:_=!1,mediaPlaybackStatus:Z,item:S,loadingAttr:P,horizontalXs:E,onHighlight:A,onHighlightExit:L,hideMyButton:R=!0,...B}=e,{url:N,description:D,images:M,badge:z,permission:Q,title:G,infoTitle:V,type:X,completionStatus:F}=S,{colors:W,spacing:H,mediaQueries:O}=(0,l.useTheme)(),{getPremiumContentAccess:q,getViewingStatus:J,userScopes:K}=(0,a.Z)(),{isContentPremium:U,hasPremiumAccessToContent:Y}=q(Q),ee=J(Q),ei=void 0!==(null==F?void 0:F.seekTimePercentage)||void 0!==(null==Z?void 0:Z.seekTimePercentage),{isFavourite:et}=(0,s.Z)((0,m.mC)(N)),[en,el]=(0,o.useState)(!1),eo=(0,u.IP)({title:G,infoTitle:V,badgeMessage:null==z?void 0:z.message,permission:Q,userScopes:K,completionStatus:F,mediaPlaybackStatus:Z,isFavourite:et,isAutoplay:!0});return(0,n.jsxs)(v.Z,{...B,hideMyButton:R,item:S,onHighlight:e=>{null==A||A(e),el(!0)},onHighlightExit:e=>{null==L||L(e),el(!1)},screenReaderMessage:eo,horizontalXs:E,showProgress:ei,"data-cy":c.Mc.card,children:[(0,n.jsxs)(T,{aspectRatio:j,$_css5:H[8],$_css6:O.md,$_css7:H[16],$_css8:((null==F?void 0:F.seekTimePercentage)||(null==Z?void 0:Z.seekTimePercentage))+"%",children:[(0,n.jsx)(y.x,{src:null==M?void 0:null===(i=M.card)||void 0===i?void 0:i.url,alt:null!==(g=null==M?void 0:null===(t=M.card)||void 0===t?void 0:t.altText)&&void 0!==g?g:"",ratio:j,loadingAttr:P}),en&&(0,n.jsx)(b.Z,{horizontalXs:E,ratio:j,children:D&&!ei&&(0,n.jsx)(f.hh,{"aria-hidden":!0,children:D})}),_&&ee===r.pG.Unlocked&&(0,n.jsx)(k,{opacityVariant:"translucent",backgroundColor:"black",$_css:H[8],$_css2:H[8]}),ei&&(0,n.jsx)(I,{$_css3:!Y&&U?W.gray4:void 0,$_css4:!Y&&U?W.gray6:void 0})]}),(null==z?void 0:z.message)&&(0,n.jsx)(p.Z,{"aria-hidden":!0,label:z.message}),(0,n.jsxs)(x.I,{hasBadge:!!z,horizontalXs:E,children:[(0,n.jsx)(w.Z,{"data-cy":c.Mc.title,screenReaderText:(0,d.I)({title:G||void 0,infoTitle:V||void 0,itemType:X}),children:G}),(0,n.jsxs)($,{$_css9:H[8],children:[U&&(0,n.jsx)(h.m,{"aria-hidden":!0,showIcon:!Y,catalog:Q.catalog}),V&&(0,n.jsx)(C.O,{"aria-hidden":!0,children:V})]})]})]})}var k=(0,l.default)(g.Z).withConfig({componentId:"sc-bb45c311-0"})(e=>({position:"absolute",bottom:e.$_css,left:e.$_css2})),T=(0,l.default)(y.C).withConfig({componentId:"sc-bb45c311-1"})(e=>({marginBottom:e.$_css5,[e.$_css6]:{marginBottom:e.$_css7},pointerEvents:"none","--progress":e.$_css8})),I=(0,l.default)(j.A).withConfig({componentId:"sc-bb45c311-2"})(e=>({backgroundColor:e.$_css3,"&:before":{backgroundColor:e.$_css4},position:"absolute",bottom:0,zIndex:1})),$=(0,l.default)("div").withConfig({componentId:"sc-bb45c311-3"})(e=>({display:"flex",alignItems:"center",gap:e.$_css9}))},80013:function(e,i,t){"use strict";t.d(i,{L:function(){return en}});var n=t(24246),l=t(38914),o=t(27378),a=t(75373),r=t(56718),s=t(95850),c=t(16441),d=t(4693),u=t(93722),m=t(32748),p=t(14354),h=t(65107),g=t(28228),f=t(78125),v=t(72358),x=t(6962),y=t(85386),b=t(5685),j=t(81442),C=t(49741),w=t(66823);function _(e){var i;let{item:t,overlayColor:l,loadingAttr:o,onClick:r,href:s,className:c,metricsData:d}=e,{title:u,images:m,permission:p}=t,{card:h}=m||{},{colors:y,spacing:C,mediaQueries:_,shadows:S}=(0,g.useTheme)(),{getPremiumContentAccess:P,userScopes:E}=(0,a.Z)(),{isContentPremium:A,hasPremiumAccessToContent:L}=P(p),R=(0,f.IP)({title:u,permission:p,userScopes:E});return(0,n.jsxs)(Z,{className:c,$_css6:w.M.cardTitle.css,$_css7:w.M.cardImageContainer.css,$_css8:S.xxl,$_css9:null!=l?l:y.brandDarker,children:[(0,n.jsx)(k,{aspectRatio:1,$_css:y.gray2,$_css2:C[8],$_css3:_.sm,$_css4:C[16],children:(0,n.jsx)(j.x,{src:null==h?void 0:h.url,alt:null!==(i=null==h?void 0:h.altText)&&void 0!==i?i:"",ratio:1,loadingAttr:o,config:{xs:{im:{resize:260},quality:85},sm:{im:{resize:200},quality:85}}})}),(0,n.jsxs)($,{children:[(0,n.jsx)(T,{$_css5:C[4],children:u}),A&&(0,n.jsx)(x.m,{"aria-hidden":!0,showIcon:!L,catalog:p.catalog})]}),(0,n.jsx)(I,{href:(0,v.PQ)(s,"/"),onClick:r,metricsData:d,children:(0,n.jsx)(b.ZP,{children:R})})]})}var k=(0,g.default)(j.C).withConfig({componentId:"sc-95f2a0c1-0"})(e=>({"&&":{backgroundColor:e.$_css,borderRadius:"50%",pointerEvents:"none",marginBottom:e.$_css2,[e.$_css3]:{marginBottom:e.$_css4}}})),T=(0,g.default)(C.Z).withConfig({componentId:"sc-95f2a0c1-1"})(e=>({marginBottom:e.$_css5})),I=(0,g.default)(y.Z).withConfig({componentId:"sc-95f2a0c1-2"})({position:"absolute",inset:0}),$=(0,g.default)("div").withConfig({componentId:"sc-95f2a0c1-3"})({display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"}),Z=(0,g.default)("article").withConfig({componentId:"sc-95f2a0c1-4"})(e=>({position:"relative",isolation:"isolate",":hover, :focus-within":{[e.$_css6]:{textDecoration:"underline"},[e.$_css7]:{boxShadow:e.$_css8,backgroundColor:e.$_css9}}}
1)),S=t(98818),P=t(50220),E=t(69059),A=t(98989),L=t(3257),R=t(76464),B=t(17361),N=t(167);function D(e){var i,t,l;let{item:r,ratio:c,loadingAttr:d,onClick:u,horizontalXs:m,automation:p,href:h,className:v,onHighlight:x,onHighlightExit:y,...b}=e,{title:C,permission:w,programTimeMessage:_,description:k,images:T,type:I,infoTitle:$,url:Z,airDate:A,feedType:D}=r,{spacing:F,mediaQueries:W}=(0,g.useTheme)(),{userScopes:H}=(0,a.Z)(),{isFavourite:O}=(0,S.Z)(r.url),q=(0,f.IP)({title:C,infoTitle:_,permission:w,userScopes:H,isFavourite:O}),[J,K]=(0,o.useState)(!1);return(0,n.jsxs)(R.Z,{...b,className:v,item:r,href:h||Z||void 0,screenReaderMessage:q,horizontalXs:m,onHighlight:e=>{null==x||x(e),K(!0)},onHighlightExit:e=>{null==y||y(e),K(!1)},onClick:u,"data-cy-card":p,children:[(0,n.jsxs)(z,{aspectRatio:c,$_css3:F[8],$_css4:W.md,$_css5:F[16],children:[(0,n.jsx)(j.x,{src:null==T?void 0:null===(i=T.card)||void 0===i?void 0:i.url,alt:null!==(l=null==T?void 0:null===(t=T.card)||void 0===t?void 0:t.altText)&&void 0!==l?l:"",ratio:c,loadingAttr:d}),J&&(0,n.jsxs)(B.Z,{ratio:c,horizontalXs:m,children:[k&&(0,n.jsx)(L.hh,{"aria-hidden":!0,"data-cy":P.lE.cardDescription,children:k}),$&&I!==s.A5.Media&&(0,n.jsx)(Q,{"aria-hidden":!0,"data-cy":P.lE.cardInfoTitle,$_css:F[12],$_css2:F.multi(0,16),children:$})]})]}),D&&[s.u5.LiveLinear,s.u5.LiveEvent].includes(D)&&A&&(0,n.jsx)(V,{$_css6:F[4],children:(0,n.jsx)(N._,{asNode:"span",children:(0,E.cx)(A)})}),(0,n.jsx)(G,{"data-cy":P.lE.showTitle,$_css7:F[4],children:C}),(0,n.jsx)(X,{$_css8:F[8],children:_&&(0,n.jsx)(M,{"aria-hidden":!0,children:_})})]})}let M=(0,g.default)(A.Fn).withConfig({componentId:"sc-29856bde-0"})({display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"});var z=(0,g.default)(j.C).withConfig({componentId:"sc-29856bde-1"})(e=>({marginBottom:e.$_css3,[e.$_css4]:{marginBottom:e.$_css5},pointerEvents:"none"})),Q=(0,g.default)(N.O).withConfig({componentId:"sc-29856bde-2"})(e=>({marginBottom:e.$_css,padding:e.$_css2})),G=(0,g.default)(C.Z).withConfig({componentId:"sc-29856bde-3"})(e=>({marginBottom:e.$_css7}
1)),V=(0,g.default)("div").withConfig({componentId:"sc-29856bde-4"})(e=>({marginBottom:e.$_css6,display:"flex"})),X=(0,g.default)("div").withConfig({componentId:"sc-29856bde-5"})(e=>({display:"flex",alignItems:"center",gap:e.$_css8}));let F=g.default.div.withConfig({componentId:"sc-dc4c610c-0"})(e=>{let{theme:i}=e;return{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",backgroundColor:i.colors.grayB,borderRadius:"0 0 4px 4px",textTransform:"uppercase",padding:2}});function W(e){var i,t,l;let{item:o,ratio:a,automation:r,onClick:s,...c}=e,{title:d,infoTitle:u,images:m,promotedContentDescription:p}=o,{spacing:h,mediaQueries:v}=(0,g.useTheme)(),x=(0,f.IP)({title:d,infoTitle:u,promotedContentDescription:p});return(0,n.jsxs)(R.Z,{...c,item:o,screenReaderMessage:x,"data-cy-card":r,children:[(0,n.jsxs)(H,{aspectRatio:a,$_css:h[8],$_css2:v.md,$_css3:h[16],children:[(0,n.jsx)(j.x,{src:null==m?void 0:null===(i=m.card)||void 0===i?void 0:i.url,alt:null!==(l=null==m?void 0:null===(t=m.card)||void 0===t?void 0:t.altText)&&void 0!==l?l:void 0,ratio:a}),p&&(0,n.jsx)(O,{"aria-hidden":!0,promotedContentDescription:p})]}),(0,n.jsx)(C.Z,{fontStyle:"italic",children:d}),u&&(0,n.jsx)(A.Fn,{fontStyle:"italic",children:u})]})}var H=(0,g.default)(j.C).withConfig({componentId:"sc-eb2b8285-0"})(e=>({marginBottom:e.$_css,[e.$_css2]:{marginBottom:e.$_css3}})),O=(0,g.default)(function(e){let{promotedContentDescription:i,...t}=e;return(0,n.jsx)(F,{...t,children:(0,n.jsx)(A.Fn,{color:"black",weight:"medium",children:i})})}).withConfig({componentId:"sc-eb2b8285-1"})({position:"absolute",bottom:0}),q=t(36502),J=t(58528),K=t(21859),U=t(40585);function Y(e){var i,t,l;let{item:r,href:c,ratio:d,automation:u,loadingAttr:m,horizontalXs:p,className:h,showProgress:y,hideMyButton:b,onClick:w,onHighlight:_,onHighlightExit:k,...T}=e,{url:I,title:$,infoTitle:Z,badge:E,type:A,images:D,description:M,permission:z}=r,{spacing:Q,mediaQueries:G,mobileOnly:V}=(0,g.useTheme)(),{getPremiumContentAccess:X,userScopes:F}=(0,a.Z)(),{isContentPremium:W,hasPremiumAccessToContent:H}=X(z),{isFavourite:O}=(0,S.Z)((0,v.mC)(I)),q=(0,f.IP)({title:$,infoTitle:Z,badgeMessage:null==E?void 0:E.message,permission:z,userScopes:F,isFavourite:O}),[Y,en]=(0,o.useState)(!1),el=W||!!Z&&A===s.A5.Media;return(0,n.jsxs)(R.Z,{...T,className:h,item:r,href:c,hideMyButton:b,onHighlight:e=>{null==_||_(e),en(!0)},onHighlightExit:e=>{null==k||k(e),en(!1)},screenReaderMessage:q,horizontalXs:p,showProgress:y,onClick:w,"data-cy-card":u,children:[(0,n.jsxs)(ee,{aspectRatio:d,$_css2:Q[8],$_css3:G.md,$_css4:Q[16],children:[(0,n.jsx)(j.x,{src:null==D?void 0:null===(i=D.card)||void 0===i?void 0:i.url,alt:null!==(l=null==D?void 0:null===(t=D.card)||void 0===t?void 0:t.altText)&&void 0!==l?l:"",ratio:d,loadingAttr:m}),Y&&(0,n.jsxs)(B.Z,{horizontalXs:p,ratio:d,children:[M&&(0,n.jsx)(L.hh,{"aria-hidden":!0,"data-cy":P.lE.cardDescription,children:M}),Z&&A!==s.A5.Media&&(0,n.jsx)(ei,{"aria-hidden":!0,"data-cy":P.lE.cardInfoTitle,$_css:[{marginBottom:Q[12],padding:Q.multi(0,16)},p&&{[V]:{display:"none"}}],children:Z})]})]}),(null==E?void 0:E.message)&&(0,n.jsx)(K.Z,{"aria-hidden":!0,label:null==E?void 0:E.message,"data-cy":P.lE.label}),(0,n.jsxs)(U.I,{hasBadge:!!(null==E?void 0:E.message),horizontalXs:p,children:[(0,n.jsx)(C.Z,{"data-cy":P.lE.showTitle,screenReaderText:(0,J.I)({title:$||void 0,infoTitle:Z||void 0,itemType:A}),children:$}),el&&(0,n.jsxs)(et,{$_css5:Q[8],children:[W&&(0,n.jsx)(x.m,{"aria-hidden":!0,showIcon:!H,catalog:z.catalog}),Z&&A===s.A5.Media&&(0,n.jsx)(N.O,{"aria-hidden":!0,children:Z})]})]})]})}var ee=(0,g.default)(j.C).withConfig({componentId:"sc-ac3638b1-0"})(e=>({marginBottom:e.$_css2,[e.$_css3]:{marginBottom:e.$_css4},pointerEvents:"none"})),ei=(0,g.default)(N.O).withConfig({componentId:"sc-ac3638b1-1"})(["",""],e=>e.$_css),et=(0,g.default)("div").withConfig({componentId:"sc-ac3638b1-2"})(e=>({display:"flex",alignItems:"center",gap:e.$_css5}));function en(e){let{item:i,cardType:t,lineup:g,loadingAttr:f,cardIndex:v,onClick:x,showPlayCTA:y=!1,manageTier:b=!1,hideMyButton:j,horizontalXs:C=!1,isTouchVisible:w}=e,{accountData:k}=(0,r.m)(),{showPlayBlockerModal:T}=(0,d.ww)(),{getViewingStatus:I}=(0,a.Z)(),$={elementName:i.title,elementPosition:v,elementType:i.type===s.A5.Incentive?(0,u.o)("entitlements_subscription","short_title"):null==g?void 0:g.cardImageType,position:v},Z=(0,o.useCallback)(e=>{let t=I(i.permission);if(b){var n;t===c.pG.LockedPremium?(T({contentType:"premium",catalog:i.permission.catalog}),e.preventDefault()):(null===(n=i.permission)||void 0===n?void 0:n.tier)!==s.xN.Premium||(null==k?void 0:k.isEmailVerified)||(T({contentType:"invalidEmail"}),e.preventDefault())}},[null==k?void 0:k.isEmailVerified,I,i.permission,b,T]);if((null==g?void 0:g.lineupType)===s.sI.ComingSoon)return(0,n.jsx)(D,{item:i,loadingAttr:f,ratio:(0,h.y7)(null==g?void 0:g.cardImageType),onClick:x,metricsData:$,isTouchVisible:w});switch(null!=t?t:function(e){switch(e){case s.A5.Show:case s.A5.Category:case s.A5.Collection:case s.A5.Season:case s.A5.Section:return p.m.Show;case s.A5.Media:return p.m.Resume;case s.A5.Promotion:return p.m.Promotion;case s.A5.Live:return p.m.Live;default:return p.m.Show}}
1(i.type)){default:case p.m.Show:return(0,n.jsx)(Y,{item:i,ratio:(0,h.y7)(null==g?void 0:g.cardImageType),href:i.url,loadingAttr:f,onClick:x,className:(null==g?void 0:g.cardImageType)===s.N1.Poster?"poster":"",hideMyButton:j,horizontalXs:C,metricsData:$,isTouchVisible:w});case p.m.Resume:var S;return(0,n.jsx)(q.Z,{item:i,ratio:(0,h.y7)(null==g?void 0:g.cardImageType),href:null!==(S=i.url)&&void 0!==S?S:void 0,loadingAttr:f,onClick:Z,showAutoplay:y,className:(null==g?void 0:g.cardImageType)===s.N1.Poster?"poster":"",hideMyButton:j,horizontalXs:C,metricsData:$,isTouchVisible:w});case p.m.Live:return(0,n.jsx)(m.Z,{item:i,ratio:(0,h.y7)(null==g?void 0:g.cardImageType),href:i.url,loadingAttr:f,cardType:m.S.CardLive,onClick:x,horizontalXs:C,hideMyButton:j,metricsData:$,isLegacyLiveEvent:i.isLegacyLiveEvent,isTouchVisible:w});case p.m.Promotion:return(0,n.jsx)(W,{item:i,ratio:(0,h.y7)(null==g?void 0:g.cardImageType),href:i.url,onClick:x,className:(null==g?void 0:g.cardImageType)===s.N1.Poster?"poster":"",hideMyButton:j,metricsData:$,isTouchVisible:w});case p.m.Card2x:if(i.feedType)return(0,n.jsx)(m.Z,{item:i,href:i.url,loadingAttr:f,cardType:m.S.Card2x,onClick:x,hideMyButton:j,metricsData:$,isTouchVisible:w});return(0,n.jsx)(l.Z,{item:i,loadingAttr:f,onClick:x,hideMyButton:j,metricsData:$,isTouchVisible:w});case p.m.HeroCard:return(0,n.jsx)(m.Z,{item:i,href:i.url,cardType:m.S.HeroCardCarousel,loadingAttr:f,onClick:x,hideMyButton:j,metricsData:$,isTouchVisible:w});case p.m.Circle:return(0,n.jsx)(_,{item:i,href:i.url,loadingAttr:f,onClick:x,hideMyButton:j,metricsData:$,isTouchVisible:w})}}},73108:function(e,i,t){"use strict";t.d(i,{d:function(){return c}});var n=t(24246),l=t(27378),o=t(28228),a=t(96299),r=t(60473);let s=o.default.ul.withConfig({componentId:"sc-952f871a-0"})(e=>{let{theme:i}=e;return{columnGap:i.grid.gridColumnGap.v,rowGap:i.spacing[24],display:"grid",padding:"8px 0",gridTemplateColumns:"repeat(1, 1fr)",[i.mediaQueries.sm]:{gridTemplateColumns:"repeat(2, 1fr)"},[i.mediaQueries.md]:{gridTemplateColumns:"repeat(3, 1fr)",rowGap:i.spacing[40]},[i.mediaQueries.lg]:{gridTemplateColumns:"repeat(4, 1fr)"},[i.mediaQueries.xl]:{gridTemplateColumns:"repeat(5, 1fr)"}}}),c=e=>{let{title:i,length:t,children:o}=e,c=(0,l.useRef)(null),u=(0,l.useRef)(null),m=e=>{(null==u?void 0:u.current)&&(null==c?void 0:c.current)&&("last"===e?u.current.focus():c.current.focus())};return(0,n.jsxs)(d,{children:[t&&t>5&&(0,n.jsx)(a.Z,{ref:c,onClick:()=>m("last"),children:(0,r.t)('Start of the list "{0}" of {1} items. Skip the list?',[i,String(t)])}),(0,n.jsx)(s,{children:o}),t&&t>5&&(0,n.jsx)(a.Z,{ref:u,onClick:()=>m("first"),position:"bottom",children:(0,r.t)('End of the list "{0}" of {1} items. Go back to the start of the list?',[i,String(t)])})]})};var d=(0,o.default)("div").withConfig({componentId:"sc-952f871a-1"})({position:"relative"})},14354:function(e,i,t){"use strict";t.d(i,{m:function(){return l},Z:function(){return ie}});var n,l,o=t(24246),a=t(86677),r=t(5685),s=t(27378),c=t(67673),d=t(28228),u=t(48480),m=t(93722),p=t(78436),h=t(20620),g=t(3915),f=t(25114),v=t(83414),x=t(88478),y=t(87928),b=t(83487),j=t(37965),C=t(65020),w=t(97787),_=t(60473),k=t(72358),T=t(94703),I=t(9343),$=t(85386),Z=t(64360),S=t(96299),P=t(78295);let E=["input","select","button","a"];function A(e){var i,t;let{lineup:n,config:l,asCarousel:a=!1,ratio:C,hideNavigation:T,variant:I,initialIndex:A=0,pauseAtRender:B,radius:J,children:K}=e,{title:U,callToActions:Y,background:ee}=n,[ei,et]=(0,s.useState)(A),[en,el]=(0,s.useState)(!1),[eo,ea]=(0,s.useState)(!0),[er,es]=(0,s.useState)(0),[ec,ed]=(0,s.useState)(!1),[eu,em]=(0,s.useState)(!1),ep=(0,x.Z)(ei),eh=(0,s.useRef)(null),eg=(0,s.useRef)(null),ef=(0,s.useRef)(null),ev=(0,s.useRef)(null),ex=(0,s.useRef)(null),ey=(0,s.useRef)(null),eb=(0,s.useRef)(null),ej=(0,s.useRef)(null),{playerState:eC}=(0,u.n)(),ew=(0,p.Zn)(),{size:{width:e_}}=(0,h.a)(),ek=(0,b.Z)(),{colors:eT,mediaQueries:eI,shadows:e$,spacing:eZ}=(0,d.useTheme)(),eS=!!(null==Y?void 0:null===(i=Y.primary)||void 0===i?void 0:i.url)&&!a,eP=eS?s.Children.count(K)+1:s.Children.count(K);(0,s.useEffect)(()=>{eP&&ei>=eP&&et(0)},[eP,ei]);let eE=(0,g.Z)(ej.current),eA=(0,s.useCallback)(e=>{var i;return"Space"===e.code&&eE&&!(null==eg?void 0:null===(i=eg.current)||void 0===i?void 0:i.contains(document.activeElement))},[eE]);
1!function(e){let[i,t]=(0,s.useState)({value:0,direction:""}),n=(0,s.useRef)(null),l=(0,s.useRef)(null),o=(0,s.useRef)(!1),a=(0,s.useRef)(0),r=(0,x.Z)(i),{ref:c,enabled:d,swipeLeft:u,swipeRight:m,debounceValue:p,threshold:h}=e,g=(0,s.useCallback)(e=>{a.current=e.targetTouches[0].clientX},[]),f=(0,y.D)(e=>{t({value:Math.abs(a.current-e.changedTouches[0].clientX),direction:a.current-e.changedTouches[0].clientX>0?"left":"right"})},p||500);(0,s.useEffect)(()=>{d&&r!==i&&i.value>(h||100)&&!o.current&&("left"===i.direction&&u?(u(),o.current=!0):"right"===i.direction&&m&&(m(),o.current=!0))},[r,u,m,i,d,h]),(0,s.useEffect)(()=>{n.current=g,l.current=f}),(0,s.useEffect)(()=>{let e=e=>{var i;o.current=!1,null==n||null===(i=n.current)||void 0===i||i.call(n,e)},i=e=>{var i;null==l||null===(i=l.current)||void 0===i||i.call(l,e)},t=c.current;return t.addEventListener("touchstart",e,{passive:!0}),t.addEventListener("touchmove",i,{passive:!0}),()=>{t.removeEventListener("touchstart",e),t.removeEventListener("touchmove",i)}},[c])}({ref:eh,enabled:a,swipeLeft:()=>eG("next"),swipeRight:()=>eG("prev"),debounceValue:300});let eL=e=>{let i=eb.current,t=ey.current;"last"===e?null==i||i.focus():null==t||t.focus()},eR=(0,g.Z)(ev.current,{root:eh,threshold:.9},!1),eB=(0,g.Z)(ef.current,{root:eh,threshold:.9},!0),eN=(0,s.useCallback)(e=>{let i=eh.current,t=window.getComputedStyle(i),n=parseInt(t.getPropertyValue("--items-n")),l=t.getPropertyValue("--final-card-visbility"),o=(eS?"visible"===l?eP:eP-1:eP)<=n||T;el(!o),ea(!o),setTimeout(()=>{e()},50)},[eP,eS,T]),eD=(0,s.useCallback)(()=>{em(!eu)},[eu]),eM=(0,s.useCallback)(()=>{eu||em(!0)},[eu]),ez=(0,s.useCallback)(()=>{let e=eh.current,i=eg.current;if(document.activeElement!==ej.current&&eM(),(null==e?void 0:e.contains(document.activeElement))&&i&&i.contains(document.activeElement)){let e=document.activeElement;et(parseInt(e&&e.closest("li").dataset.index||"1"))}},[eM]),eQ=e=>{let i=eh.current;et(e*Math.floor(parseFloat(window.getComputedStyle(i).getPropertyValue("--items-n"))))},eG=(0,s.useCallback)(e=>{let i=eh.current,t=parseInt(window.getComputedStyle(i).getPropertyValue("--items-n")),n=eP-ei;if("next"===e){if(ei===eP-1)return null;eR||a||!(n-t<=t)||(t=n-t),et(ei+t)}else if("prev"===e){if(0===ei)return null;eB||a||!(ei<=t)||(t=ei),et(ei-t)}},[ei,eB,eP,eR,a]),eV=(0,s.useCallback)(()=>{let e;if(!(0,j.Nq)()||!(null==ef?void 0:ef.current)||!(null==eh?void 0:eh.current))return;let i=ef.current,t=eh.current,n=window.getComputedStyle(i),l=window.getComputedStyle(t),o=eg.current,r=parseFloat(n.width),s=parseInt(l.getPropertyValue("--gap-v")),c=l.getPropertyValue("--final-card-visibility"),d=l.getPropertyValue("--items-n"),u=ei*s,m=r*ei+u;if((e=eS&&!a?"visible"===c?eP:eP-1:eP)-ei<=parseFloat(d)){let i=e-parseFloat(d);m=r*i+i*s}o&&(a&&Math.abs((ep||0)-ei)>1?(o.classList.add("transitioning"),setTimeout(()=>o.style.transform="translateX(-".concat(m,"px)"),300),setTimeout(()=>o.classList.remove("transitioning"),800)):o.style.transform="translateX(-".concat(m,"px)"));let p=Math.ceil(eP-ei/Math.floor(parseFloat(d))-1);es(Array.from({length:Math.ceil(eP)}).map((e,i)=>i).reverse().indexOf(p)),ex.current.scrollLeft=0},[ei,eS,eP,a,ep]);(0,s.useEffect)(()=>{eN(()=>eV())},[ei,e_,eV,eN]),(0,s.useEffect)(()=>{a&&(ek?em(!1):em(!0))},[ek,a]),(0,s.useEffect)(()=>{"none"!==eC.playbackType&&em(!0)},[eC.playbackType]),(0,s.useEffect)(()=>{a&&B&&em(!0)},[a,B]),(0,s.useEffect)(()=>{let e=eh.current,i=window.getComputedStyle(e).getPropertyValue("--should-auto-play");if(a&&ek&&"true"===i&&!ec&&!eu){let e=setTimeout(()=>{eR?et(0):et(ei+1)},6e3);return()=>clearTimeout(e)}},[ec,ei,eR,eu,a,ek]),(0,v.Z)(e=>{var i,t;let n=(null===(t=document)||void 0===t?void 0:null===(i=t.activeElement)||void 0===i?void 0:i.tagName.toLowerCase())||"";"Tab"===e.key&&ez(),eA(e)&&-1===E.indexOf(n)&&em(e=>!e)}),(0,f.Z)(e=>{var i,t;let n=(null===(t=document)||void 0===t?void 0:null===(i=t.activeElement)||void 0===i?void 0:i.tagName.toLowerCase())||"";eA(e)&&-1===E.indexOf(n)&&e.preventDefault()});let eX=e=>{a&&ed(e)};return(0,o.jsxs)(L,{config:l,ref:eh,onMouseEnter:()=>eX(!0),onMouseLeave:()=>eX(!1),children:[(0,o.jsx)(q,{children:(0,o.jsxs)(R,{asCarousel:a,ref:ex,children:[a&&eP>1&&(0,o.jsxs)(O,{$_css8:-16,children:[[...Array(eP)].map((e,i)=>(0,o.jsx)(z,{value:i,disabled:i===er,onClick:()=>{eQ(i),eM()},title:(0,_.t)("Go to item {0}
1",[(i+1).toString()]),"aria-hidden":!0,tabIndex:-1,children:(0,o.jsx)("span",{children:(0,o.jsx)(r.ZP,{children:i+1})})},"".concat(i+i))),(0,o.jsx)(H,{ref:ej,onClick:eD,title:eu?(0,_.t)("Start automatic scrolling"):(0,_.t)("Pause automatic scrolling"),$_css5:eZ[12],$_css6:eZ[12],$_css7:eI.md,children:eu?(0,o.jsx)(W,{$_css:eT.grayD,$_css2:eT.brandLighter}):(0,o.jsx)(F,{$_css3:eT.grayD,$_css4:eT.brandLighter})})]}),(0,o.jsx)(V,{children:(0,o.jsxs)(o.Fragment,{children:[!T&&(0,o.jsx)(S.Z,{ref:ey,onClick:()=>eL("last"),type:"button",children:(0,_.t)('Start of the list "{0}" of {1} items. Skip the list?',[U,s.Children.count(K).toString()])}),(0,o.jsxs)(N,{ref:eg,overflows:eo,asCarousel:a,children:[s.Children.map(K,(e,i)=>0===i?(0,o.jsx)(D,{"data-index":i,ref:ef,children:e},"".concat(i+i)):i+1!==eP||eS?(0,o.jsx)(D,{"data-index":i,children:e},"".concat(i+i)):(0,o.jsx)(D,{"data-index":i,ref:ev,children:e},"".concat(i+i))),eS&&!a&&(0,o.jsx)(D,{ref:ev,"data-index":eP-1,className:"see-more-card",children:(0,o.jsx)(Q,{ratio:C,$_css9:e$.md,$_css10:null!=J?J:4,children:(0,o.jsx)(M,{children:(0,o.jsxs)($.Z,{href:(0,k.PQ)(null==Y?void 0:null===(t=Y.primary)||void 0===t?void 0:t.url,"/"),onClick:()=>{ew({data:{elementName:(0,m.o)("general","see_more"),elementPosition:eP}})},children:[(0,o.jsx)(P.Gn,{asNode:"span",children:(0,m.o)("general","see_more")}),(0,o.jsxs)(r.ZP,{children:["\xa0","".concat((0,w.Vf)()?"de contenu ":"").concat(U)]}),(0,o.jsx)(G,{size:20})]})})})},"showmore")]}),!T&&(0,o.jsx)(S.Z,{ref:eb,onClick:()=>eL("first"),type:"button",position:"bottom",children:(0,_.t)('End of the list "{0}" of {1} items. Go back to the start of the list?',[U,s.Children.count(K).toString()])})]})})]})}),en&&(0,o.jsxs)(X,{variant:I,children:[(0,o.jsx)(Z.HJ,{variant:I,action:"previous",children:(0,o.jsx)(Z.W7,{onClick:()=>{eM(),eG("prev")},disabled:eB,"aria-hidden":!0,tabIndex:-1,action:"previous",title:(0,_.t)("Previous"),variant:I,background:ee,children:(0,o.jsx)(c.s$$,{size:48})})}),(0,o.jsx)(Z.HJ,{variant:I,action:"next",children:(0,o.jsx)(Z.W7,{onClick:()=>{eM(),eG("next")},disabled:eR,"aria-hidden":!0,tabIndex:-1,action:"next",title:(0,_.t)("Next"),variant:I,background:ee,children:(0,o.jsx)(c._Qn,{size:48})})})]})]})}let L=d.default.div.withConfig({componentId:"sc-70de5a11-0"})(e=>{let{config:i,theme:t}=e;return{"--should-auto-play":"false",position:"static","--items-n":"".concat(i.xs),"--final-card-visibility":"visible",[t.mediaQueries.sm]:{"--items-n":"".concat(i.sm)},[t.mediaQueries.md]:{"--should-auto-play":"false","@media (pointer: fine)":{"--should-auto-play":"true"},"--items-n":"".concat(i.md),"--final-card-visibility":"hidden"},[t.mediaQueries.lg]:{"--should-auto-play":"true","--items-n":"".concat(i.lg)},[t.mediaQueries.xl]:{"--items-n":"".concat(i.xl)},"--gap-v":t.grid.gridColumnGap.v,"--amount-adjust":"calc(var(--items-n) - 1)","--flex-amount":"calc(100% / var(--items-n))","--flex-divide":"calc(".concat(t.grid.gridColumnGap.v," / var(--items-n))"),"--item-min-width":"calc(var(--flex-amount) - calc(var(--amount-adjust) * var(--flex-divide)))","@media (hover: hover) and (pointer: fine)":{"&:hover":{["".concat(Z.tS)]:{visibility:"visible"}}}}}),R=d.default.div.withConfig({componentId:"sc-70de5a11-1"})(e=>{let{theme:i,asCarousel:t}=e;return[{display:"grid",gridTemplateColumns:"var(--grid-template-column)",columnGap:"var(--grid-column-gap)",overflow:"hidden",margin:"auto",padding:"var(--grid-padding)",scrollBehavior:"smooth",scrollPadding:i.grid.gridPadding.v,width:"100%",overflowX:"auto","@supports (scroll-snap-stop: normal)":{scrollSnapType:"x proximity"},"::-webkit-scrollbar ":{display:"none"},"-ms-overflow-style":"none",scrollbarWidth:"none","li:last-of-type":{minWidth:"calc(var(--item-min-width) + 20px)",paddingRight:20},"@media (pointer: fine)":{overflow:"hidden",scrollSnapType:"none",scrollPadding:"initial","li:last-of-type":{minWidth:"var(--item-min-width)",paddingRight:0}}},t&&{overflow:"hidden",overflowX:"hidden",padding:0,scrollPadding:"initial","@supports (scroll-snap-stop: normal)":{scrollSnapType:"none"},"li:last-of-type":{minWidth:"var(--item-min-width)",paddingRight:0},[i.mediaQueries.md]:{padding:i.grid.gridPadding.v,scrollPadding:i.grid.gridPadding.v}}]}),B=(0,d.keyframes)(["0%{opacity:1;}35%{opacity:0;}65%{opacity:0;}100%{opacity:1;}"]),N=d.default.ul.withConfig({componentId:"sc-70de5a11-2"})(e=>{let{theme:i,overflows:t,asCarousel:n}=e;return[{display:"flex",overflow:"visible",justifyContent:"left",transform:"translateX(0)",transition:"transform .3s",padding:"".concat(i.spacing[8]," 0")},!t&&{transform:"translateX(0) !important"},n&&{padding:"0 0 ".concat(i.spacing[24]," 0"),maxWidth:"100vw"},(0,d.css)(["&.transitioning{transition:none;animation:"," 0.8s forwards;}"],B)]}),D=d.default.li.withConfig({componentId:"sc-70de5a11-3"})(e=>{let{theme:i}=e;return[{flex:"auto",width:0,minWidth:"var(--item-min-width)",maxWidth:"var(--item-min-width)","@supports (scroll-snap-stop: normal)":{scrollSnapAlign:"start"},"&:not(:last-of-type)":{marginRight:i.grid.gridColumnGap.v}
1,"&.see-more-card":{a:{visibility:"var(--final-card-visibility)"},[i.mediaQueries.md]:{minWidth:"0px !important",overflow:"hidden",maxWidth:"0px !important",marginLeft:"calc(".concat(i.grid.gridColumnGap.v," * -1)"),a:{visibility:"var(--final-card-visibility)"}}}}]}),M=d.default.div.withConfig({componentId:"sc-70de5a11-4"})(e=>{let{theme:i}=e;return{background:i.colors.gray3,display:"flex",height:"100%",alignItems:"center",justifyContent:"center",color:i.colors.white,a:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",zIndex:1},"&:after":{display:"block",content:'" "',backgroundColor:(0,C.jb)(i.colors.black,.5),width:"100%",height:"100%",position:"absolute",opacity:0,transition:"opacity 0.2s ease-out"},"&:hover":{a:{textDecoration:"underline"}}}}),z=d.default.button.withConfig({componentId:"sc-70de5a11-5"})(e=>{let{theme:i}=e;return{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,span:{content:"''",display:"block",backgroundColor:i.colors.grayD,borderRadius:"50%",boxShadow:"0, 0, 8px, 8px, rgba(0, 0, 0, .5)",width:"0.375rem",height:"0.375rem",[i.mediaQueries.md]:{width:"0.5rem",height:"0.5rem"}},"&:disabled span":{backgroundColor:i.colors.brandLighter,opacity:1},"@media (pointer: fine)":{"&:hover span":{backgroundColor:i.colors.brandLighter,opacity:1}}}});var Q=(0,d.default)(T.Z).withConfig({componentId:"sc-70de5a11-6"})(e=>({boxShadow:e.$_css9,borderRadius:e.$_css10})),G=(0,d.default)(c._Qn).withConfig({componentId:"sc-70de5a11-7"})({marginLeft:"4px"}),V=(0,d.default)(I.v5).withConfig({componentId:"sc-70de5a11-8"})({position:"relative"}),X=(0,d.default)(Z.tS).withConfig({componentId:"sc-70de5a11-9"})({position:"absolute",bottom:0,left:0,right:0,height:"100%",pointerEvents:"none"}),F=(0,d.default)(c.VX9).withConfig({componentId:"sc-70de5a11-10"})(e=>
1({width:"1rem",height:"1rem",color:e.$_css3,"&:hover":{color:e.$_css4,opacity:1}})),W=(0,d.default)(c.shV).withConfig({componentId:"sc-70de5a11-11"})(e=>({width:"1rem",height:"1rem",color:e.$_css,"&:hover":{color:e.$_css2,opacity:1}})),H=(0,d.default)("button").withConfig({componentId:"sc-70de5a11-12"})(e=>({height:"1rem",display:"none",marginLeft:e.$_css5,marginRight:e.$_css6,[e.$_css7]:{display:"block"}})),O=(0,d.default)("div").withConfig({componentId:"sc-70de5a11-13"})(e=>({position:"absolute",bottom:e.$_css8,left:"50%",transform:"translateX(-50%)",justifyContent:"center",alignItems:"center",display:"flex"})),q=(0,d.default)("div").withConfig({componentId:"sc-70de5a11-14"})({position:"relative"}),J=t(78125),K=t(44972),U=t.n(K);function Y(e){let{className:i,id:t,variant:n,lineup:l,children:a,...s}=e,{title:c}=l;return(0,o.jsx)("section",{className:U().wrapper,"data-cy":c,id:t,children:(0,o.jsxs)("div",{className:U().containment,children:[c&&(0,o.jsx)(r.ZP,{as:"h2",id:(0,J.L1)(c),children:c}),(0,o.jsx)(A,{...s,lineup:l,variant:n,asCarousel:!0,children:a})]})})}var ee=t(75373),ei=t(95850),et=t(17668),en=t(25649),el=t(80013);let eo=d.default.ul.withConfig({shouldForwardProp:e=>!["fontZoom"].includes(e),componentId:"sc-55661e25-0"})(e=>{let{theme:i,fontZoom:t=100}=e;return{display:"grid",gridTemplateColumns:"repeat(1, 1fr)",columnGap:i.grid.gridColumnGap.v,rowGap:i.spacing[24],paddingTop:i.spacing[8],margin:"auto",paddingBottom:i.spacing[24],[i.mediaQueries.sm]:{gridTemplateColumns:"repeat(2, 1fr)"},[i.mediaQueries.md]:{gridTemplateColumns:t>200?"repeat(2, 1fr)":"repeat(3, 1fr)",rowGap:i.spacing[40]},[i.mediaQueries.lg]:{gridTemplateColumns:t>200?"repeat(3, 1fr)":"repeat(4, 1fr)"},[i.mediaQueries.xl]:{gridTemplateColumns:t>200?"repeat(3, 1fr)":"repeat(5, 1fr)"}}});function ea(e){let{children:i,title:t,length:n}=e,l=(0,s.useRef)(null),a=(0,s.useRef)(null),{fontZoom:c}=(0,h.a)(),d=e=>{var i,t;"last"===e?null==a||null===(i=a.current)||void 0===i||i.focus():null==l||null===(t=l.current)||void 0===t||t.focus()};return(0,o.jsxs)(er,{children:[(0,o.jsx)(S.Z,{ref:l,onClick:()=>d("last"),children:(0,_.t)('Start of the list "{0}" of {1} items. Skip the list?',[t,String(n)])}),(0,o.jsx)(r.ZP,{as:"h2",children:t}),(0,o.jsx)(eo,{fontZoom:c,children:i}),(0,o.jsx)(S.Z,{ref:a,onClick:()=>d("first"),position:"bottom",children:(0,_.t)('End of the list "{0}" of {1} items. Go back to the start of the list?',[t,String(n)])})]})}var er=(0,d.default)("section").withConfig({componentId:"sc-55661e25-1"})({position:"relative"}),es=t(40209),ec=t(90614),ed=t(73108),eu=t(95495);function em(e){var i,t,n,l,a,r;let{lineup:s,children:u}=e,m=(0,d.useTheme)();return(0,o.jsxs)(eg,{$_css3:m.spacing[24],$_css4:m.spacing[16],children:[(0,o.jsxs)(ec.Z,{children:[(0,o.jsx)(eh,{children:(0,o.jsx)(eu.Z,{title:s.title,sponsors:s.sponsors,logo:null===(i=s.images)||void 0===i?void 0:i.logo,icon:null===(t=s.images)||void 0===t?void 0:t.icon})}),(0,o.jsx)(ed.d,{title:s.title,length:null==s?void 0:null===(n=s.items)||void 0===n?void 0:n.length,children:u})]}),(null===(l=s.callToActions)||void 0===l?void 0:l.primary)&&(0,o.jsx)(ep,{$_css:m.spacing[40],$_css2:m.spacing[40],children:(0,o.jsx)(es.Z,{backgroundColor:"gray4",icon:c.r3c,href:(0,k.PQ)(null===(a=s.callToActions)||void 0===a?void 0:a.primary.url,"/"),children:null===(r=s.callToActions)||void 0===r?void 0:r.primary.label})})]},s.key)}var ep=(0,d.default)(ec.Z).withConfig({componentId:"sc-7e942b3d-0"})(e=>({marginTop:e.$_css,marginBottom:e.$_css2,display:"flex",flexDirection:"column",alignItems:"center"})),eh=(0,d.default)("div").withConfig({componentId:"sc-7e942b3d-1"})({marginBottom:16}),eg=(0,d.default)("section").withConfig({componentId:"sc-7e942b3d-2"})(e=>({paddingTop:e.$_css3,paddingBottom:e.$_css4})),ef=t(15224),ev=t(26629),ex=t(82856),ey=t(51849),eb=t(50524),ej=t(38551),eC=t(16441),ew=t(73905),e_=t(6962),ek=t(76464),eT=t(40585),eI=t(81442),e$=t(33932),eZ=t(167),eS=t(49741),eP=t(84356),eE=t.n(eP);let eA="toutv"===(0,w.Xf)()?"https://images.tou.tv/v1/ici-tou-tv/assets/16x9/background-placeholder.jpg?impolicy=ott&im=Resize=(_Size_)&quality=85":"https://images.gem.cbc.ca/v1/cbc-gem/assets/16x9/background-placeholder.jpg?impolicy=ott&im=Resize=(_Size_)&quality=85",eL={catalog:ej.Q.Default,tier:eC.xN.Standard,requiredScope:""},eR=[{key:0,title:"Example Sample Content",infoTitle:"Info | Subtitle",permission:eL,progress:25},{key:1,title:"Example",infoTitle:"Info | Subtitle extra info",permission:eL,progress:90},{key:2,title:"Example | Live content",infoTitle:"Info | Subtitle",permission:eL,progress:50},{key:3,title:"Example",infoTitle:"Info | Subtitle",permission:eL,progress:10},{key:4,title:"Example Sample Content",infoTitle:"Info | Subtitle extra info",permission:eL,progress:80}];function eB(){let{spacing:e,mediaQueries:i}=(0,d.useTheme)(),t=et.Qh.regular;
1return(0,o.jsx)(eN,{tabIndex:-1,"aria-hidden":!0,children:(0,o.jsx)("ul",{className:eE().content,style:{"--n-xs":t.xs,"--n-sm":t.sm,"--n-md":t.md,"--n-lg":t.lg,"--n-xl":t.xl},children:eR.map(t=>(0,o.jsxs)(eD,{item:{permission:t.permission},"aria-hidden":!0,children:[(0,o.jsxs)(eM,{aspectRatio:16/9,$_css:e[8],$_css2:i.md,$_css3:e[16],$_css4:t.progress&&"".concat(t.progress,"%"),children:[(0,o.jsx)(eI.x,{src:eA,alt:"",ratio:16/9,loadingAttr:"eager"}),(0,o.jsx)(ez,{})]}),t.liveBadge&&(0,o.jsx)(ew.W,{"aria-hidden":!0}),(0,o.jsxs)(eT.I,{hasBadge:t.liveBadge,children:[(0,o.jsx)(eS.Z,{children:t.title}),(0,o.jsxs)(eQ,{$_css5:e[8],children:[t.premium&&(0,o.jsx)(e_.m,{"aria-hidden":!0,catalog:t.permission.catalog}),t.infoTitle&&(0,o.jsx)(eZ.O,{"aria-hidden":!0,children:t.infoTitle})]})]})]},t.key))})})}let eN=(0,d.default)(I.rj).withConfig({componentId:"sc-8dc56aa-0"})({filter:"blur(7px)",opacity:.3,transform:"translateZ(0)",margin:"initial"}),eD=(0,d.default)(ek.Z).withConfig({componentId:"sc-8dc56aa-1"})({flexBasis:"var(--item-min-width)",flexShrink:0});var eM=(0,d.default)(eI.C).withConfig({componentId:"sc-8dc56aa-2"})(e=>({marginBottom:e.$_css,[e.$_css2]:{marginBottom:e.$_css3},pointerEvents:"none","--progress":e.$_css4})),ez=(0,d.default)(e$.A).withConfig({componentId:"sc-8dc56aa-3"})({position:"absolute",bottom:0,zIndex:1}),eQ=(0,d.default)("div").withConfig({componentId:"sc-8dc56aa-4"})(e=>({display:"flex",alignItems:"center",gap:e.$_css5}));function eG(e){let{title:i,logo:t,icon:n,filters:l,backgroundImage:a,children:r}=e;return(0,o.jsxs)(eV,{backgroundImage:a,children:[(0,o.jsx)(eF,{children:(0,o.jsxs)(eX,{children:[(0,o.jsx)(eu.Z,{title:i,logo:t,icon:n}),l]})}),r]})}let eV=d.default.section.withConfig({componentId:"sc-8bb131c1-0"})(e=>{let{theme:i,backgroundImage:t}=e;return{position:"relative",display:"flex",flexDirection:"column",gap:i.spacing[16],backgroundImage:t?"url(".concat(t.url,")"):"none",margin:i.spacing.multi(24,0),[i.mediaQueries.md]:{gap:i.spacing[24]}}}),eX=(0,d.default)(I.v5).withConfig({componentId:"sc-8bb131c1-1"})(e=>{let{theme:i}=e;return{display:"flex",flexDirection:"column",gap:i.spacing[16],zIndex:2,[i.mediaQueries.sm]:{flexDirection:"row",gap:i.spacing[32]}}});var eF=(0,d.default)(I.rj).withConfig({componentId:"sc-8bb131c1-2"})({margin:"unset",overflow:"visible"});let eW=d.default.section.withConfig({componentId:"sc-b9f8b16e-0"})(e=>{let{theme:i}=e;return{flex:1,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:i.spacing[24],textAlign:"center",width:"100%",height:"100%",pointerEvents:"stroke"}});function eH(e){var i,t,n;let{lineup:l,onRetryFetch:a}=e;return(0,o.jsxs)(eG,{title:l.title,logo:null===(i=l.images)||void 0===i?void 0:i.logo,icon:null===(t=l.images)||void 0===t?void 0:t.icon,backgroundImage:null===(n=l.images)||void 0===n?void 0:n.background,children:[(0,o.jsx)(eB,{}),(0,o.jsx)(eW,{children:(0,o.jsx)(eb.Z,{text:(0,_.t)("Sorry, we are unable to load this section at the moment.{0}",[""]),onRetryClick:a,metricsData:{elementName:(0,_.t)("Try Again"),elementType:"primary",elementPosition:1}})})]})}class eO extends s.Component{static getDerivedStateFromError(){return{hasError:!0}}async retryFetch(){await (0,ev.j)(e=>(0,ex.wE)(e).includes(ey.C)),this.setState({hasError:!1})}render(){let{lineup:e,children:i}=this.props,{hasError:t}=this.state;return t?(0,o.jsx)(eH,{lineup:e,onRetryFetch:this.retryFetch}):i}constructor(e){super(e),this.state={hasError:!1},this.retryFetch=this.retryFetch.bind(this)}}var eq=t(67516),eJ=t(73452),eK=t(85022),eU=t(67338);function eY(e){let{children:i}=e,t=(0,s.useRef)(null),n=(0,eq.bO)();return(0,v.Z)(e=>{var i,l,o,a,r;if(null===(i=t.current)||void 0===i?void 0:i.contains(document.activeElement))switch(e.key){case"ArrowLeft":null==n||null===(l=n.focusPrevious({wrap:!0}))||void 0===l||l.click();break;case"ArrowRight":null==n||null===(o=n.focusNext({wrap:!0}))||void 0===o||o.click();break;case"Home":null==n||null===(a=n.focusFirst())||void 0===a||a.click();break;case"End":null==n||null===(r=n.focusLast())||void 0===r||r.click()}}),(0,o.jsx)(e0,{role:"tablist","aria-orientation":"horizontal",ref:t,children:i})}let e0=d.default.div.withConfig({componentId:"sc-4b4b71e5-0"})(e=>{let{theme:i}=e;return{display:"flex",gap:i.spacing[12],border:"none"}}),e1=(0,w.s1)()?"brand":"brandDarker";function e2(e){var i,t,n,l,r;let{lineup:c}=e,d=(0,a.useRouter)(),{data:u}
1=(0,ey.Z)(d.query.section||"home"),[m,h]=(0,s.useState)(u.selectedKey),g=u.filters.length>1,f=u.lineups.find(e=>e.key===m),v=!!(null==f?void 0:null===(i=f.items)||void 0===i?void 0:i.length),x=u.emptyStateMessages[m]||u.emptyStateMessage;return(0,o.jsx)(eG,{title:c.title,logo:null===(t=c.images)||void 0===t?void 0:t.logo,icon:null===(n=c.images)||void 0===n?void 0:n.icon,backgroundImage:null===(l=c.images)||void 0===l?void 0:l.background,filters:g&&(0,o.jsx)(eq.MT,{children:(0,o.jsx)(eY,{children:u.filters.map(e=>(0,o.jsx)(eK.Z,{id:"my-lineup-tab-".concat(e.key),role:"tab","aria-controls":"my-lineup-panel-".concat(e.key),"aria-selected":m===e.key,tabIndex:m===e.key?0:-1,backgroundColor:m===e.key?e1:"gray4",onClick:()=>h(e.key),metricsData:{elementName:e.label},children:e.label},e.key))})}),children:v?(0,o.jsx)(p.ZP,{data:{zone:"".concat(c.title," ").concat(f.title)},children:(0,o.jsx)(eJ.D,{lineup:f,ratio:16/9,config:et.Qh.regular,"aria-labelledby":"my-lineup-tab-".concat(f.key),internalDivProps:{id:"my-lineup-panel-".concat(f.key),role:"tabpanel"},alwaysDisplaySeeMoreCard:!0,children:null===(r=f.items)||void 0===r?void 0:r.map((e,i)=>(0,o.jsx)(el.L,{item:e,lineup:f,cardIndex:i+1,hideMyButton:!1,isTouchVisible:!0},e.key))},f.key)}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eB,{}),(0,o.jsx)(eW,{children:(0,o.jsx)(eU.Z,{children:(0,o.jsx)(eU.Z.Description,{children:x})})})]})})}var e5=t(58156);function e8(e){var i,t,n;let{lineup:l}=e;return(0,o.jsxs)(eG,{title:l.title,logo:null===(i=l.images)||void 0===i?void 0:i.logo,icon:null===(t=l.images)||void 0===t?void 0:t.icon,backgroundImage:null===(n=l.images)||void 0===n?void 0:n.background,children:[(0,o.jsx)(eB,{}),(0,o.jsx)(eW,{children:(0,o.jsxs)(eU.Z,{children:[(0,o.jsx)(eU.Z.Description,{children:l.notSignedInMessage||(0,_.t)("Your favourites and shows you've started watching will be found here.")}),(0,o.jsx)(e5.Z,{action:"login",icon:(0,w.s1)()?c.zsz:c.HH5,metricsData:{elementType:"primary",elementPosition:1}})]})})]})}var e4=t(1585);function e6(e){var i,t,n;let{lineup:l}=e;return(0,o.jsxs)(eG,{title:l.title,logo:null===(i=l.images)||void 0===i?void 0:i.logo,icon:null===(t=l.images)||void 0===t?void 0:t.icon,backgroundImage:null===(n=l.images)||void 0===n?void 0:n.background,children:[(0,o.jsx)(eB,{}),(0,o.jsx)(eW,{children:(0,o.jsx)(e4.Z,{})})]})}function e3(e){let{lineup:i}=e,{auth:t}=(0,ef.a)(),n=!!(null==t?void 0:t.accessToken);return(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(e6,{lineup:i}),children:n?(0,o.jsx)(eO,{lineup:i,children:(0,o.jsx)(e2,{lineup:i})}):(0,o.jsx)(e8,{lineup:i})})}var e7=t(96167),e9=t(65107);function ie(e){var i,t,n,l,r,s,c,d,u,m,h,g;let{lineup:f,zonePosition:v,keysArray:x}=e,y=(0,a.useRouter)(),{isEligibleByScopes:b}=(0,ee.Z)(),j=(0,en.nl)(et.mB),C=(y.query.fromAuth||y.query.displayNewlyPremiumModal)&&(null==j?void 0:j.lineupTitle)===(0,J.L1)(f.title)?j.itemIndex:void 0,w=null===(i=f.key)||void 0===i?void 0:i.startsWith("my-lineup-");if(!w&&(null===(t=f.items)||void 0===t?void 0:t.length)===0)return null;let k=b({applicableTiers:null!==(g=null==f?void 0:f.applicableTiers)&&void 0!==g?g:[]});return(0,o.jsxs)(p.ZP,{data:{zone:null==f?void 0:f.title,zoneType:(null==f?void 0:f.layoutType)===ei.ms.GridCategory?ei.ms.Grid:null==f?void 0:f.layoutType,zonePosition:v,name:null==f?void 0:f.layoutType,instance:null==f?void 0:f.title},children:[f.layoutType===ei.ms.Swimlane&&w&&(0,o.jsx)(e3,{lineup:f}),f.layoutType===ei.ms.Swimlane&&!w&&(0,o.jsx)(e9.ZP,{lineup:f,config:(0,e9.xR)(null==f?void 0:f.cardImageType),ratio:(0,e9.y7)(null==f?void 0:f.cardImageType),initialIndex:C,children:null==f?void 0:null===(n=f.items)||void 0===n?void 0:n.map((e,i)=>(0,o.jsx)(p.ZP,{data:{elementPosition:i+1,elementName:e.title},children:(0,o.jsx)(el.L,{item:e,lineup:f,loadingAttr:i<=et.VP?"eager":"lazy",cardIndex:i+1})},e.key))}),f.layoutType===ei.ms.SwimlaneCircle&&(0,o.jsx)(e9.ZP,{lineup:f,config:(0,e9.Qj)(null==f?void 0:f.layoutType),ratio:(0,e9.y7)(null==f?void 0:f.cardImageType),radius:9999,initialIndex:C,children:null==f?void 0:null===(l=f.items)||void 0===l?void 0:l.map((e,i)=>(0,o.jsx)(el.L,{item:e,cardType:"circle",lineup:f,cardIndex:i+1},e.key))}),f.layoutType===ei.ms.Swimlane2x&&(0,o.jsx)(e9.ZP,{lineup:f,config:(0,e9.Qj)(null==f?void 0:f.layoutType),ratio:(0,e9.y7)(null==f?void 0:f.cardImageType),hideTitle:!0,initialIndex:C,children:null==f?void 0:null===(r=f.items)||void 0===r?void 0:r.map((e,i)=>(0,o.jsx)(el.L,{cardType:"card2x",item:e,lineup:f,loadingAttr:i<=et.Zm?"eager":"lazy",cardIndex:i+1},e.key))}),f.layoutType===ei.ms.Carousel&&(0,o.jsx)(Y,{lineup:f,config:(0,e9.xR)(null==f?void 0:f.cardImageType),ratio:(0,e9.y7)(null==f?void 0:f.cardImageType),pauseAtRender:(null==j?void 0:j.lineupTitle)===(0,J.L1)(f.title),children:null==f?void 0:null===(s=f.items)||void 0===s?void 0:s.map((e,i)=>{let t=i+1;return(0,o.jsx)(p.ZP,{data:{elementName:e.title,elementPosition:t,position:t},children:(0,o.jsx)(el.L,{cardType:"herocard",item:e,lineup:f,loadingAttr:i<=et.Zm?"eager":"lazy"},e.key)},e.key)})}),f.layoutType===ei.ms.Grid&&(0,o.jsx)(em,{lineup:f,children:null==f?void 0:null===(c=f.items)||void 0===c?void 0:c.map((e,i)=>(0,o.jsx)(p.ZP,{data:{elementName:e.title,elementPosition:i+1},children:(0,o.jsx)(el.L,{item:e,lineup:f})},e.key))}),f.layoutType===ei.ms.GridCategory&&(0,o.jsx)(ea,{title:(0,_.t)("{0} to {1}",[String(((null==x?void 0:x.indexOf(null===(d=f.items)||void 0===d?void 0:d[0].key))||0)+1),String(((null==x?void 0:x.indexOf(null===(u=f.items)||void 0===u?void 0:u[f.items.length-1].key))||0)+1)]),length:null==f?void 0:null===(m=f.items)||void 0===m?void 0:m.length,children:null==f?void 0:null===(h=f.items)||void 0===h?void 0:h.map(e=>(0,o.jsx)(p.ZP,{data:{elementPosition:((null==x?void 0:x.indexOf(e.key))||0)+1,elementName:e.title},children:(0,o.jsx)("li",{children:(0,o.jsx)(el.L,{item:e,lineup:f},e.key)})},e.key))}),f.layoutType===ei.ms.FullWidthBanner&&k&&(0,o.jsx)(e7.$,{title:null==f?void 0:f.title,images:null==f?void 0:f.images,description:null==f?void 0:f.description,callToActions:null==f?void 0:f.callToActions})]})}(n=l||(l={})).Show="show",n.Resume="resume",n.Circle="circle",n.Card2x="card2x",n.HeroCard="herocard",
1n.Live="live",n.Promotion="promotion"},96167:function(e,i,t){"use strict";t.d(i,{$:function(){return $}});var n=t(24246),l=t(28228),o=t(20620),a=t(95850),r=t(79981),s=t(24956),c=t(27378),d=t(89830),u=t(78295),m=t(46248),p=t.n(m);let h={im:{resize:{width:380,height:64}}},g={im:{resize:{width:380,height:56}}},f={im:{resize:{width:380,height:88}}};function v(e){let{src:i,size:t,title:l,className:o,...s}=e,[m,v]=(0,c.useState)(null);if(!i||m)return(0,n.jsx)(u.Rn,{asNode:"p",children:l});let x=h;return t===a.h2.Smaller?x=g:t===a.h2.Bigger&&(x=f),(0,n.jsx)("img",{...s,className:(0,r.A)(p().logo,t===a.h2.Smaller&&p().smaller,t===a.h2.Bigger&&p().bigger,o),src:(0,d.H)(i,x),onError:v,alt:l,"aria-hidden":!0})}var x=t(5685),y=t(40209),b=t(97787),j=t(78436),C=t(89603),w=t(72358),_=t(85386),k=t(12385),T=t.n(k),I=function(e){var i,t;let{callToActions:o,isClickableZone:a=!1,onClick:r}=e,s=(0,l.useTheme)(),c=(0,j.Zn)();if(!o)return null;let d=o.primary,u=null!==(i=null==d?void 0:d.label)&&void 0!==i?i:"",m=null!==(t=null==d?void 0:d.url)&&void 0!==t?t:"/",p=null==d?void 0:d.type,h=(0,w.PQ)(m,"/"),g=()=>{null==r||r(),c({data:{elementName:(0,b.s1)()?m:u,elementPosition:"0",elementType:"-",zoneType:"Promo banner",...!(0,b.s1)()&&{zonePosition:0},name:"banner",instance:""}})},f=(null==d?void 0:d.isTryPremium)?["gradientPremium","linear"]:"brand";return a?(0,n.jsx)(_.Z,{"aria-hidden":!0,tabIndex:-1,className:T().clickableZone,href:h,onClick:g,children:(0,n.jsx)(x.ZP,{children:u})}):(0,n.jsx)(y.Z,{backgroundColor:"gem"===s.platform?f:"brandDarker",href:h,onClick:g,...(0,C.L)(p),children:u})};function $(e){var i,t,c,d,u,m,p,h,g;let{title:f,description:y,images:b,callToActions:j,onClick:C}=e,{mediaQueries:w}=(0,l.useTheme)(),{currentBreakpoint:_}=(0,o.a)(),k=(0,r.A)(T().imageWrapper,!(null==b?void 0:null===(i=b.banner)||void 0===i?void 0:i.url)&&T().emptyImageWrapper);return(0,n.jsx)("section",{className:T().base,children:(0,n.jsxs)("div",{className:T().container,children:[(0,n.jsx)("div",{className:T().fullGradient}),(0,n.jsx)("div",{className:k,children:(0,n.jsx)(s.Z.Image,{src:null!==(m=null==b?void 0:null===(t=b.banner)||void 0===t?void 0:t.url)&&void 0!==m?m:"",alt:null!==(p=null==b?void 0:null===(c=b.banner)||void 0===c?void 0:c.altText)&&void 0!==p?p:"","aria-hidden":!0,sizeMultiplier:"xs"===_?1.43:1,loading:"eager",layoutType:a.ms.FullWidthBanner})}),(0,n.jsxs)("div",{className:T().contentContainer,children:[(null==b?void 0:null===(d=b.logo)||void 0===d?void 0:d.url)?(0,n.jsxs)(Z,{asNode:"h2",children:[(0,n.jsx)(v,{src:null==b?void 0:null===(u=b.logo)||void 0===u?void 0:u.url,size:null!==(h=null==b?void 0:b.logo.size)&&void 0!==h?h:a.h2.Normal,alt:null!==(g=null==b?void 0:b.logo.altText)&&void 0!==g?g:""}),(0,n.jsx)(x.ZP,{children:f})]}):(0,n.jsx)(S,{asNode:"h2",$_css:y?"2":"3",$_css2:w.sm,$_css3:y?"3":"4",children:f}),y&&(0,n.jsx)(P,{children:y}),j&&(0,n.jsx)("div",{className:T().CTA,children:(0,n.jsx)(I,{callToActions:j,onClick:C})})]}),(0,n.jsx)(I,{callToActions:j,isClickableZone:!0,onClick:C})]})})}let Z=(0,l.default)(u.y$).withConfig({componentId:"sc-21f44c1a-0"})(e=>{let{theme:{mediaQueries:i}}=e;return{img:{margin:"8px 0px",display:"inline-block"},textAlign:"center",[i.sm]:{textAlign:"left"}}});var S=(0,l.default)(Z).withConfig({componentId:"sc-21f44c1a-1"})(e=>({display:"-webkit-box","-webkit-line-clamp":e.$_css,"-webkit-box-orient":"vertical",overflow:"hidden",[e.$_css2]:{"-webkit-line-clamp":e.$_css3}}));let P=(0,l.default)(s.Z.Description).withConfig({componentId:"sc-21f44c1a-2"})(e=>{let{theme:{mediaQueries:i}}=e;return{display:"-webkit-box","-webkit-line-clamp":"4","-webkit-box-orient":"vertical",overflow:"hidden",textAlign:"center",[i.sm]:{textAlign:"left"}}})},25114:function(e,i,t){"use strict";t.d(i,{Z:function(){return l}});var n=t(27378);function l(e){let i=(0,n.useRef)(e);i.current=e,(0,n.useEffect)(()=>{let e=e=>{i.current(e)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[])}},58528:function(e,i,t){"use strict";t.d(i,{I:function(){return l}});var n=t(95850);function l(e){let{title:i,infoTitle:t,itemType:l}=e;if([n.A5.Season,n.A5.Media].includes(l)&&i&&t)return"".concat(i,". ").concat(t)}},89603:function(e,i,t){"use strict";t.d(i,{L:function(){return l}});var n=t(67673);function l(e){switch(e){case"Calendar":return{icon:n.faS};case"Highlight":return{icon:n.J1F};case"Destination":return{icon:n._Qn,iconPosition:"right"};case"Play":return{icon:n.shV};default:return{}}}},46248:function(e){e.exports={minSmall:"screen and (min-width: 768px)",minMedium:"screen and (min-width: 1024px)",minXLarge:"screen and (min-width: 1920px)",logo:"promo_logo__kkAsP",smaller:"promo_smaller__iqKBt",bigger:"promo_bigger__oicLi"}},12385:function(e){e.exports={minSmall:"screen and (min-width: 768px)",maxXSmall:"screen and (max-width: calc(768px - 1px))",minMedium:"screen and (min-width: 1024px)",minLarge:"screen and (min-width: 1365px)",minXLarge:"screen and (min-width: 1920px)",base:"promobanner_base__iFUla",clickableZone:"promobanner_clickableZone__gHFOb",CTA:"promobanner_CTA__914Hr",container:"promobanner_container__vDL8Z",contentContainer:"promobanner_contentContainer__v69cj",fullGradient:"promobanner_fullGradient__II_T0",
1imageWrapper:"promobanner_imageWrapper__fHs3u",emptyImageWrapper:"promobanner_emptyImageWrapper__uyt0s"}}}]);

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.