"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4098],{86551:function(e,t,r){r.d(t,{C:function(){return i}});let n=(0,r(30079).hq)();function i(){fetch(n.comscore,{cache:"no-store"})}},82792:function(e,t,r){r.d(t,{Z:function(){return H}});var n=r(85893),i=r(67294),o=r(88911),s=r(23100),a=r(204),l=r(72299),d=r(64927),c=r(27484),u=r.n(c),m=r(90493),x=r(98742),h=r(61750),p=r(2414),g=r(85705),f=r(85461),k=r(35337),b=r(37626),j=r(43104),v=r(33225),w=r(95148),T=r(80289),y=r(7791),_=r(11299),S=r(29700),C=r(97902);function D(e){var t;let{broadcast:r}=e,i=(null==r?void 0:null===(t=r.network)||void 0===t?void 0:t.networkLogoDark)?(0,n.jsx)(l.E,{src:r.network.networkLogoDark,alt:r.network.networkName,w:"20%",loading:"lazy",decoding:"async"}):void 0;return(0,n.jsxs)(a.k,{h:"6.0rem",w:"100%",backgroundColor:r.network.backgroundColorDark||"black",justifyContent:"center",alignItems:"center",flexDir:"column",gap:8,children:[i,(0,n.jsx)(o.x,{color:"dark_grey",textStyle:"label_s",textTransform:"uppercase",textAlign:"center",paddingX:3,children:r.channelTitle})]})}var M=function(e){let{dayDropdown:t,coverageRows:r}=e;(0,j.qM)();let l=(0,_.z$)(),c=(0,i.useCallback)(e=>{l({eventType:_.Li.BUTTON,pageArea:S.g.WATCH_COVERAGE_GRID,props:{selectionName:"".concat((0,C.eA)(e),"_broadcast")}})},[l]);return(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsx)(y.ZP,{children:r.map(e=>(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(D,{broadcast:e[0]}),e.map((t,r)=>{let i=t.liveStatus==b.Ct.Live,l=i&&!!t.network.url,u={start:(0,v.xz)(t.startTime,void 0),end:(0,v.xz)(t.endTime,void 0)},m=(0,n.jsxs)(a.k,{flexDir:"column",pt:20,pl:20,pr:20,gap:15,children:[(0,n.jsxs)(a.k,{alignItems:"center",gap:"8",children:[i&&(0,n.jsx)(x.Z,{}),(0,n.jsxs)(o.x,{color:"dark_grey",textStyle:"label_m",textTransform:"uppercase",children:[u.start," - ",u.end]})]}),(0,n.jsx)(o.x,{textStyle:"body_l_semibold",paddingRight:i?28:void 0,noOfLines:3,children:t.streamTitle}),rc(t.network.networkName),children:m},t.id):m})]},e[0].id))})]})};function I(e,t){return!!e&&e.isSame(t,"day")}class N{getIntervals(e){this.setSelectedDate(e);let t=this.intervals-1,r=this.intervalSpanInMs/t,n=this.startTime,i=[this.startTime];for(let e=0;eI(u()(e.startTime),this.selectedDate))).length)return -1;let t=e[0].startTime||-1;return e.forEach(e=>t=Math.min(t,e.startTime)),t}getPossibleDates(e){if(!e||!e.length)return[];let t={};return e.forEach(e=>{let r=u()(e.startTime),n=r.format(this.timeSelectorFormat);n in t||(t[n]=r)}),Object.values(t)}getBorder(e){var t;let r=(e.minute()-this.startTime.minute())*6e4/this.intervalSpanInMs*100;return t=this.startTime,(e.hour()-t.hour())*36e5/this.intervalSpanInMs*100+r}constructor(e){let t=u()(this.getMinimumBroadcastStartTime(e))||u()().hour(5);this.broadcasts=e,this.startTime=t,this.endTime=t.add(14,"hour"),this.intervals=8,this.timeFormat="h:mm A",this.timeSelectorFormat="ddd, MMM DD",this.intervalSpanInMs=this.endTime.diff(this.startTime),this.selectedDate=this.getPossibleDates(e)[0]}}function E(e,t){return!!t.find(t=>e.id!=t.id&&e.startTimet.startTime)}var B=r(80974);let Z={_before:{background:"black_20",bottom:"1.0rem",content:"''",left:"0",position:"absolute",top:"1.0rem",width:"1px"}};function L(e){let{position:t,paddingLeft:r}=e;return(0,n.jsx)(o.x,{position:"absolute",left:t,paddingLeft:r,paddingTop:"1.0rem",color:"dark_grey",textStyle:G.offAir,textTransform:"uppercase",children:"Off Air"})}function A(e){let{timelineConfig:t,broadcast:r,prevRightBorder:l,hasPrev:d,hasNext:c,tournamentName:m}=e;(0,j.qM)();let h={start:(0,v.xz)(r.startTime,void 0),end:(0,v.xz)(r.endTime,void 0)},p=u()(r.startTime),f=u()(r.endTime),k=t.getBorder(p),w=t.getBorder(f),y=r.liveStatus==b.Ct.Live,D=l&&k-l>10,M=(0,_.z$)(),I=(0,i.useCallback)(()=>{M({eventType:_.Li.BUTTON,pageArea:S.g.WATCH_COVERAGE_GRID,props:{selectionName:"".concat((0,C.eA)(r.network.networkName),"_broadcast")}})},[M,r.network.networkName]);return(0,n.jsxs)(s.xu,{children:[!d&&k>10?(0,n.jsx)(L,{position:"0%"}):void 0,D?(0,n.jsx)(L,{position:l+"%",paddingLeft:16}):void 0,!c&&w<90?(0,n.jsx)(L,{position:w+"%",paddingLeft:16}):void 0,l!=k&&k>=0?(0,n.jsx)(s.xu,{position:"absolute",left:k+"%",height:O,top:0,...Z}):void 0,w<=100?(0,n.jsx)(s.xu,{position:"absolute",left:w+"%",height:O,top:0,...Z}):void 0,(0,n.jsx)(a.k,{flexDir:"column",position:"absolute",left:k+"%",h:O,w:"calc(".concat(w,"% - ").concat(k,"%)"),children:(0,n.jsxs)(a.k,{flexDir:"column",gap:12,marginLeft:16,marginTop:"1.0rem",children:[(0,n.jsxs)(a.k,{alignItems:"center",gap:"8",children:[y?(0,n.jsxs)(a.k,{w:"100%",justifyContent:"space-between",children:[(0,n.jsx)(x.Z,{}),(0,n.jsx)(T.Z,{href:r.network.url||"",marginRight:24,isExternal:!0,onClick:I,children:(0,n.jsx)(g.Z,{color:"red",boxSize:"24"})})]}):void 0,!y&&(0,n.jsxs)(o.x,{color:"dark_grey",textStyle:G.broadcastTime,textTransform:"uppercase",children:[h.start," - ",h.end]})]}),(0,n.jsxs)(a.k,{flexDir:"column",children:[(0,n.jsx)(o.x,{textStyle:G.streamTitle,noOfLines:3,wordBreak:"break-word",children:r.streamTitle.replace("Round","Rd")}),m?(0,n.jsx)(o.x,{textStyle:G.tournamentName,wordBreak:"break-word",children:m}):void 0]})]})})]})}function z(e){let{timelineConfig:t,broadcasts:r,broadcastCoverageTournamentNameMap:i}=e;return(0,n.jsx)(s.xu,{children:(0,n.jsx)(a.k,{height:O,position:"relative",children:r.map((e,o)=>{let s=o>0?t.getBorder(u()(r[o-1].endTime)):null;return(0,n.jsx)(A,{timelineConfig:t,broadcast:e,prevRightBorder:s,hasPrev:!!(null==r?void 0:r[o-1]),hasNext:!!(null==r?void 0:r[o+1]),tournamentName:null==i?void 0:i[e.id]},e.id)})})},r[0].id)}function R(e){var t;let{broadcast:r}=e,i=(null==r?void 0:null===(t=r.network)||void 0===t?void 0:t.networkLogoDark)?(0,n.jsx)(l.E,{src:r.network.networkLogoDark,alt:r.network.networkName,w:"80%",loading:"lazy",decoding:"async"}):void 0;return(0,n.jsxs)(a.k,{h:P,backgroundColor:r.network.backgroundColorDark||"black",justifyContent:"center",alignItems:"center",flexDir:"column",gap:8,children:[i,(0,n.jsx)(o.x,{color:"dark_grey",textStyle:G.networkTitle,textTransform:"uppercase",textAlign:"center",paddingX:3,children:r.channelTitle})]})}let F="44px",O="106px",P="105px",W="104px",G={timelineHeader:"label_s",broadcastTime:"label_s",offAir:"label_s",streamTitle:"body_m_semibold",tournamentName:"body_s_regular",networkTitle:"label_s"};var H=function(e){var t,r;let{broadcastCoverages:l,round:c}=e,x=(0,j.qM)(),[g]=(0,B.t)([k.Z.mobileOnly]),b=(0,i.useMemo)(()=>{let e={};return null==l||l.forEach(t=>{(0,w.SD)(t).forEach(r=>{e[r.id]=t.tournamentName})}),e},[l]),v=(0,i.useMemo)(()=>l?l.map(e=>(0,w.SD)(e)).flat().filter(e=>"BroadcastAudioStream"!=e.__typename&&(void 0==c||e.roundNumber==c)):[],[l,c]),T=(0,i.useMemo)(()=>new N(v),[v]),[y,_]=(0,i.useState)(T.selectedDate),S=(0,i.useMemo)(()=>(function(e,t){if(!e||!e.length)return[];function r(e){return(e.network.networkName||"").concat(e.__typename||"")}let n={},i=0,o=[];e.filter(e=>(0,w.d7)(e)&&I(u()(e.startTime),t)).sort((e,t)=>{let r=0;return e.network.priorityNum&&t.network.priorityNum&&(r=e.network.priorityNum-t.network.priorityNum),r||(r=e.startTime-t.startTime),r||(r=e.endTime-t.endTime),r||(r=parseInt(e.network.id)-parseInt(t.network.id)),r}).forEach(e=>{let t=r(e);t in n?o[n[t]].push(e):(o.push([e]),n[t]=i++)});for(let e=0;ee.some(e=>b[e.id]!==C)),Z=(0,i.useMemo)(()=>T.getPossibleDates(v),[v,T]),L=u()(),A=T.getBorder(L),O=(0,i.useCallback)(e=>e.format(T.timeSelectorFormat),[T.timeSelectorFormat]);(0,i.useEffect)(()=>{T.setSelectedDate(Z[0]),_(T.selectedDate)},[v,Z,T]);let P=(0,i.useMemo)(()=>(0,n.jsx)(s.xu,{h:F,zIndex:"10",children:(0,n.jsx)(h.Z,{menuItems:Z,value:y,renderKey:O,renderItem:e=>I(e,u()())?x.get("today"):e.format(T.timeSelectorFormat),onClick:_,standardMenuButtonProps:{labelTextProps:{textStyle:"headline_xxxs_sans",textTransform:"uppercase"},labelContainerProps:{justifyContent:g?"left":"center"},rightSlot:(0,n.jsx)(f.A,{color:"black"})},standardMenuFormInputWrapperProps:{inputGroupProps:{minH:F},showDivider:!1}})}),[g,Z,O,y,x,T.timeSelectorFormat]);return l?v.length?g?(0,n.jsx)(M,{dayDropdown:P,coverageRows:S}):(0,n.jsx)(s.xu,{children:(0,n.jsxs)(a.k,{gap:"8",position:"relative",children:[(0,n.jsxs)(a.k,{h:"100%",flexDir:"column",w:W,minW:W,children:[P,(0,n.jsx)(a.k,{flexDir:"column",gap:"2px",children:S.map(e=>(0,n.jsx)(R,{broadcast:e[0]},e[0].id))})]}),(0,n.jsx)(s.xu,{overflowX:"scroll",children:(0,n.jsxs)(s.xu,{minW:2e3,paddingLeft:5,paddingRight:13,position:"relative",children:[(0,n.jsx)(a.k,{height:F,justifyContent:"space-between",alignItems:"center",children:T.getIntervals(y).map(e=>(0,n.jsx)(s.xu,{color:"dark_grey",textStyle:G.timelineHeader,textTransform:"uppercase",children:e.format(T.timeFormat)},e.toString()))}),(0,n.jsx)(d.i,{position:"absolute",left:-5,w:2018}),(0,n.jsxs)(s.xu,{position:"relative",children:[S.map(e=>(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(z,{timelineConfig:T,broadcasts:e,broadcastCoverageTournamentNameMap:D?b:void 0}),(0,n.jsx)(d.i,{w:1992})]},e[0].id)),I(y,L)&&A<=100?(0,n.jsx)(s.xu,{position:"absolute",left:A+"%",height:"100%",top:0,_before:{background:"black",bottom:"0",top:"0",content:"''",left:"0",position:"absolute",width:"2px"}}):void 0]})]})})]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.bK,{size:20}),(0,n.jsx)(p.Z,{titleSlot:(0,n.jsx)(o.x,{as:"h3",color:"black",textStyle:"headline_xs_sans",children:x.get("noLiveCoverage")}),bodySlot:(0,n.jsx)(o.x,{color:"black",textStyle:"body_m_regular",children:x.get("noLiveCoverageBody")})})]}):(0,n.jsx)(m.Q,{})}},2414:function(e,t,r){var n=r(85893),i=r(23100);t.Z=e=>{let{titleSlot:t,bodySlot:r}=e;return(0,n.jsxs)(i.xu,{borderRadius:"8",backgroundColor:"black_5",padding:"16",children:[t,(0,n.jsx)(i.bK,{size:"4"}),r]})}},22398:function(e,t,r){var n=r(85893),i=r(67294),o=r(48077),s=r(23100),a=r(83686),l=r(99304),d=r(2261);r(4276);var c=r(84260),u=r(80557),m=r(47165),x=r(12042),h=r(5691),p=r(35337),g=r(67046),f=r(80974);let k={alignItems:"center",background:g.Z.white,borderRadius:"full",display:"flex",height:36,justifyContent:"center",position:"absolute",width:36,transitionDuration:"".concat(u.Z.duration["duration-base"],"ms"),transitionProperty:"opacity",transitionTimingFunction:"pga-ease-in-out",zIndex:10},b=(0,o.G)((e,t)=>{let{children:r,...i}=e;return(0,n.jsx)(s.xu,{as:"button",sx:k,_disabled:{background:g.Z.white_25,pointerEvents:"none"},ref:t,...i,children:r})}),j=(0,o.G)((e,t)=>{let{children:r,containerStyle:o,onChange:u=()=>{},mediaRatio:k=c.Z.square,swiperProps:j,numSlidesPerView:v,cssMode:w,swiperHeightOverride:T,totalSlidesOverride:y,autoHeight:_=!0}=e,S={".swiper-scrollbar":T?{left:0,width:"100%",minHeight:"".concat(T,"px")}:{left:0,width:"100%"},".swiper-pagination":{...m.ZP.label_m,color:g.Z.dark_grey,marginBottom:8,marginTop:12,position:"unset",textAlign:"left"},...o},[C,D]=(0,f.t)([p.Z.mobileOnly,p.Z.laptop]),M=D?1:1.05;v&&(M=C?v[0]:v[1]);let[I,N]=(0,i.useState)("0px"),[E,B]=(0,i.useState)(!1),Z=(0,i.useRef)(null),L=(0,i.useRef)(null),A=!((null==r?void 0:r.length)<=M),z=e=>N("".concat(e.width/k/2-18,"px"));return(0,n.jsx)(s.xu,{ref:t,sx:S,onMouseOver:()=>A&&B(!0),onMouseOut:()=>A&&B(!1),children:(0,n.jsxs)(d.tq,{modules:[l.W_,l.LW,l.tl],cssMode:w,navigation:{prevEl:Z.current,nextEl:L.current},onInit:e=>z(e),pagination:{type:"custom",renderCustom:(e,t,r)=>"".concat(t," OF ").concat(null!=y?y:r)},scrollbar:{draggable:!0},style:{paddingBottom:"2.4rem",height:"100%",overflowY:"hidden"},slidesPerView:M,spaceBetween:C?12:24,onResize:e=>z(e),onSlideChange:u,autoHeight:_,...j,children:[i.Children.map(r,e=>(0,n.jsx)(d.o5,{children:t=>{let{isActive:r}=t;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{isActive:r}):e}})),(0,n.jsxs)(a.d,{above:"md",children:[(0,n.jsx)(b,{ref:Z,left:"24px",opacity:E?1:0,top:I,children:(0,n.jsx)(x.I,{})}),(0,n.jsx)(b,{ref:L,right:"24px",opacity:E?1:0,top:I,children:(0,n.jsx)(h.M,{})})]})]})})});t.Z=j},12042:function(e,t,r){r.d(t,{I:function(){return o}});var n=r(85893),i=r(4576);let o=e=>(0,n.jsx)(i.J,{boxSize:"1.6rem",viewBox:"0 0 16 16",fill:"none","aria-label":"Left Arrow",...e,children:(0,n.jsx)("path",{stroke:"currentColor",strokeWidth:"2",d:"M9.55 4 5.5 8.05l4.05 4.05"})})}}]);