!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0e661057-d19c-47eb-a5e2-904377ba88f3",e._sentryDebugIdIdentifier="sentry-dbid-0e661057-d19c-47eb-a5e2-904377ba88f3")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7610],{6354:(e,t,n)=>{n.d(t,{O:()=>r});let r=(0,n(55729).createContext)({})},21075:(e,t,n)=>{n.d(t,{n:()=>W});var r=n(6029),s=n(33144),a=n(21377),l=n(37071),i=n(76356),o=n(55729),d=n(90510),c=n(62859),u=n(87930),x=n(65078),p=n(8973),h=n(39969),m=n(13266),j=n(47530),g=n(87763),y=n(94604),v=n(62827),f=n(4967),b=n(90248),k=n(494),w=n(41618),S=n(62213),T=n(85517),C=n(49821),I=n(4236),E=n(61836),z=n(10794),L=n(28600),A=n(62042),D=n(75791),N=n(31253);let Y=(e,t,n)=>(0,A.AH)({display:"flex",justifyContent:"space-evenly",alignItems:"center",flex:"1",minW:"[0px]",minH:"[20px]",border:t?"1px solid":void 0,borderColor:t?"primary.default":n?"neutrals.nLv4":void 0,borderRadius:"xs",backgroundColor:"surface.s1",overflow:"hidden",_hover:{backgroundColor:e?"surface.s2":void 0}}),O=e=>{let{betSlipLink:t,onClick:n,title:s,clickable:a,winning:l,children:o,isOddsBranded:d}=e;return a&&t?(0,r.jsx)(i.I4.a,{href:t,target:"_blank",rel:"nofollow noopener noreferrer",onClick:n,title:s,className:Y(a,l,d),children:o}):(0,r.jsx)(i.I4.div,{className:Y(a,l),onClick:n,children:o})};function P(e){let{choice:t,isLive:n,betSlipLink:s,branded:a,onClick:o,isOddsBranded:d}=e,c=!!(s&&a);return(0,r.jsxs)(O,{clickable:c,title:t.name,betSlipLink:s,onClick:o,winning:t.winning,isOddsBranded:d,children:[(0,r.jsx)(l.EY,{display:"block",minW:"lg",textStyle:"assistive.default",color:"neutrals.nLv3",textAlign:"center",truncate:!0,children:(0,r.jsx)(L.G,{id:t.name})}),(0,r.jsxs)(i.so,{minW:"2xl",justify:"center",align:"center",gap:"2xs",children:[(0,r.jsx)(i.az,{mt:1===t.change?"2xs":void 0,children:(0,r.jsx)(N.A,{change:t.change})}),(0,r.jsx)(l.EY,{display:"block",textStyle:"display.micro",color:n?"status.val":"neutrals.nLv1",children:(0,r.jsx)(D.c,{fractionalValue:t.fractionalValue})})]})]})}let B=e=>{let{countryOddsProvider:t,setHasSelectedDayOdds:n,isOddsBranded:s}=e,{event:d}=(0,o.useContext)(c.y$),{featuredOdds:u,error:x}=(0,T.A)(t,d.id,d.status.type===a.XUj.InProgress,t.featuredOddsType);if((0,o.useEffect)(()=>{u&&n(!0)},[u]),!u&&!x)return d.startTimestamp*f.Z2-4*f.d_(0,E.Sj)({position:e,provider:t.provider.slug});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.so,{gap:"xs",pt:"md",pb:"xs",align:"center",children:[(0,r.jsx)(l.EY,{textStyle:"display.micro",children:(0,r.jsx)(L.f,{id:u.marketName})}),u.choiceGroup&&(0,r.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,r.jsx)(L.f,{id:u.choiceGroup})}),u.isLive&&(0,r.jsx)(l.EY,{textStyle:"assistive.default",color:"status.val",children:(0,r.jsx)(b.A,{id:"live"})})]}),(0,r.jsxs)(i.so,{pb:"sm",pt:"xs",gap:"lg",children:[(0,r.jsx)(i.so,{gap:"sm",grow:1,overflow:"hidden",children:u.choices.map(e=>(0,r.jsx)(P,{choice:e,isLive:u.isLive,betSlipLink:t&&(0,I.Iz)(e,u,t),branded:null==t?void 0:t.branded,onClick:()=>p(C.ki.OddsValue),isOddsBranded:s},e.name))}),(0,r.jsx)(i.az,{h:"[20px]",w:"4xl",children:(0,r.jsx)(w.r,{size:"48x20",selectedProvider:t,onClick:()=>p(C.ki.ProviderLogo),logClick:!1})})]})]})},R=e=>{let{event:t}=(0,o.useContext)(c.y$),n=(0,k.d4)(z.LQ),s=(0,k.d4)(z.dg);return n&&S.aZ.includes(n)&&S.S1.includes(t.status.type)||n&&S.ZN.includes(n)&&!s||t.homeTeam.disabled||t.awayTeam.disabled?null:(0,r.jsx)(B,{...e})},_=e=>{let{preferDate:t}=e,{event:n,leftTeam:s,rightTeam:a}=(0,o.useContext)(c.y$);return(0,r.jsxs)(i.so,{h:"3xl",justify:"space-between",align:"center",children:[(0,r.jsx)(l.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:t?(0,r.jsx)(d.XU,{value:1e3*n.startTimestamp}):(0,r.jsxs)(r.Fragment,{children:[n.tournament.isGroup&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.__,{name:n.tournament.groupName||n.tournament.name}),",\xa0"]}),(0,r.jsx)(j.DT,{round:n.roundInfo})]})}),(0,r.jsx)(i.az,{onClick:e=>{e.preventDefault(),e.stopPropagation()},position:"relative",children:(0,r.jsx)(h.h,{id:n.id,type:p.b.Event,location:p.y.Header,tournament:n.tournament,leftTeam:s,rightTeam:a})})]})},U=e=>{let{event:t}=e;return(0,r.jsx)(i.so,{justify:"center",align:"center",children:(0,r.jsx)(i.az,{bg:"status.error.default",px:"sm",br:"sm",h:"[16px]",mb:"sm",children:(0,r.jsx)(l.EY,{display:"block",color:"surface.s1",textStyle:"assistive.default",children:(0,r.jsx)(g.fP,{id:t.status.description})})})})},F=()=>{let{event:e,leftTeam:t,rightTeam:n}=(0,o.useContext)(c.y$),x=e.status.type===a.XUj.NotStarted||(0,v.sw)(e);return(0,r.jsxs)(i.so,{justify:"space-between",py:"sm",children:[(0,r.jsxs)(i.so,{gap:"lg",w:"5xl",flexGrow:1,align:"center",justify:"flex-end",overflow:"hidden",children:[(0,r.jsx)(l.EY,{display:"block",textStyle:"display.micro",truncate:!0,children:(0,r.jsx)(y.Rm,{team:t,short:!0})}),(0,r.jsx)(s.p,{id:t.id,name:t.name,size:32})]}),(0,r.jsxs)(i.so,{maxW:"[100px]",minW:"fit",px:"lg",grow:1,overflow:"hidden",justify:"center",align:"center",children:[!x&&(0,r.jsx)(u.A,{isSmall:!0,shortStatus:!0}),x&&(0,r.jsx)(l.EY,{display:"block",textAlign:"center",textStyle:"display.medium",color:"neutrals.nLv3",children:(0,r.jsx)(d.ib,{value:1e3*e.startTimestamp})})]}),(0,r.jsxs)(i.so,{gap:"lg",w:"5xl",grow:1,align:"center",overflow:"hidden",children:[(0,r.jsx)(s.p,{id:n.id,name:n.name,size:32}),(0,r.jsx)(l.EY,{display:"block",textStyle:"display.micro",truncate:!0,children:(0,r.jsx)(y.Rm,{team:n,short:!0})})]})]})},W=e=>{let{event:t,countryOddsProvider:n,setHasSelectedDayOdds:s,preferDateInHeader:a,isOddsBranded:l}=e,{event:o,...d}=(0,x.mJ)(t.id,{event:t,shouldRefresh:!0}),u=o||t,p=(0,v.sw)(u);return(0,r.jsx)(c.y$.Provider,{value:{event:u,...d,location:c.cb.SpecialEventWidget},children:(0,r.jsxs)(i.az,{minH:"10xl",px:"lg",pb:"sm",bg:"surface.s2",br:{base:"md",md:"lg"},children:[(0,r.jsxs)(m.tj,{event:u,children:[(0,r.jsx)(_,{preferDate:a}),p&&(0,r.jsx)(U,{event:u}),(0,r.jsx)(F,{})]}),n&&(0,r.jsx)(R,{countryOddsProvider:n,setHasSelectedDayOdds:s,isOddsBranded:l})]})})}},21319:(e,t,n)=>{n.d(t,{H:()=>u});var r=n(6029),s=n(37071),a=n(76356),l=n(90248),i=n(85986),o=n(25022),d=n(53214);function c(e){var t,n;let{block:i,placementBlock:o,inCard:c}=e,u=null==(t=i.participants[0])?void 0:t.winner,x=null==(n=i.participants[1])?void 0:n.winner;return(0,r.jsxs)(a.so,{align:"center",justify:"center",position:"relative",children:[(0,r.jsx)(d.b8,{block:i,inCard:c}),(u||x)&&(0,r.jsx)(a.az,{position:"absolute",right:x?"[calc(50% - 90px)]":void 0,left:x?void 0:"[calc(50% - 90px)]",children:(0,r.jsx)(d.Xs,{})}),o&&(0,r.jsxs)(a.az,{position:"absolute",right:x?void 0:"[calc(50% - 130px)]",left:x?"[calc(50% - 130px)]":void 0,children:[(0,r.jsx)(d.b8,{block:o,hideTopConnector:!0,hideBottomConnector:!0,inCard:c}),(0,r.jsx)(s.EY,{display:"block",textAlign:"center",textStyle:"assistive.micro",color:"neutrals.nLv3",mt:"-md",children:(0,r.jsx)(l.A,{id:"3rdPlace"})})]})]})}function u(e){let{cupTree:t,inCard:n}=e,{sport:s}=(0,i.B)(),l=(0,o.TI)(t,s,null);return(0,r.jsxs)(a.az,{overflow:n?"hidden":"scroll",children:[(0,r.jsx)(d.Bg,{tree:l.left,inCard:n}),(0,r.jsx)(c,{block:l,placementBlock:l.thirdPlaceBlock,inCard:n}),(0,r.jsx)(d.Bg,{tree:l.right,initialOrientation:"bottom",inCard:n})]})}},53486:(e,t,n)=>{n.d(t,{n6:()=>C,MC:()=>p.MC,gY:()=>E,G:()=>D,ey:()=>A});var r=n(6029),s=n(87827),a=n(21377),l=n(21501),i=n(99064),o=n(55729),d=n(90248),c=n(494),u=n(62859),x=n(54409),p=n(60988),h=n(41735);let m=h.default.span.withConfig({componentId:"sc-8e60f6ed-0"})(["padding:3px;color:white;font-size:12px;font-weight:600;min-width:44px;border-radius:4px;text-align:center;display:inline-block;background:",";"],e=>e.isWinner?e.theme.colors.secondary.default:e.theme.colors.onSurface.nLv3),j=function(e){let{points:t,isWinner:n,...s}=e;return(0,r.jsx)(m,{isWinner:n,...s,children:"number"==typeof t?"".concat(t," pts"):"-"})};var g=n(8703),y=n(65078),v=n(16620),f=n(48886),b=n(8973),k=n(39969),w=n(13266);let S=(0,h.default)(w.tj).withConfig({componentId:"sc-3f813a14-0"})(["display:block;border-radius:2px;:hover{background:",";}:active{background:",";}"],e=>e.theme.colors.surface.s2,e=>e.theme.colors.surface.s0),T=(0,h.default)(i.$n).withConfig({componentId:"sc-3f813a14-1"})(["display:inline-block;&:hover > *{transform:scale(1.1);}"]);function C(e){let t=(0,o.useRef)(null),n=(0,c.d4)(t=>t.favorites.events[e.event.id],c.bN),[s,a]=(0,y.jr)(n,"homeTeam","awayTeam",n),[i,d]=(0,y.jr)(n,"homeScore","awayScore",n),x=(0,l.ZC)(null==n?void 0:n.status.type);return((0,o.useEffect)(()=>{e.mutate&&x&&(null==n?void 0:n.status.type)&&x!==n.status.type&&e.mutate()},[e.mutate,x,null==n?void 0:n.status.type]),n)?(0,r.jsx)(u.y$.Provider,{value:{event:n,leftTeam:s,rightTeam:a,leftScore:i,rightScore:d},children:(0,r.jsx)(S,{event:n,className:"event-hl-".concat(n.id),onClick:t=>{e.onClick&&e.onClick(t,(null==n?void 0:n.id)||-1,e.isMobile)},children:(0,r.jsx)("div",{ref:t,children:(0,r.jsx)(p.n6,{...e,event:n,location:e.location})})})}):null}let I=()=>{let{event:e,leftTeam:t,rightTeam:n}=(0,o.useContext)(u.y$),{location:s}=(0,p.lv)();return(0,r.jsx)(k.h,{id:e.id,tournament:e.tournament,leftTeam:t,rightTeam:n,type:b.b.Event,location:s})},E=e=>(0,r.jsx)(C,{...e,children:I}),z=e=>{let{referenceId:t,isReferenceTeamId:n}=e,s=(0,y.h2)(t,n),l={background:"onSurface.nLv3",char:"?"};switch(s){case a.h18.Win:l={background:"secondary.default",char:"W"};break;case a.h18.OvertimeLoss:case a.h18.Lose:l={background:"error.default",char:"L"};break;case a.h18.Draw:l={background:"onSurface.nLv3",char:"D"}}return(0,r.jsx)(i.az,{w:24,h:24,br:"50%",bg:l.background,mx:"xs",children:(0,r.jsx)(i.EY,{font:"display.small",color:"onColor.primary",lineHeight:"24px",w:24,align:"center",as:"div",children:l.char})})},L=e=>{let{event:t,leftTeam:n,rightTeam:s}=(0,o.useContext)(u.y$);return[a.XUj.NotStarted,a.XUj.InProgress].includes(t.status.type)?(0,r.jsx)(k.h,{type:b.b.Event,location:b.y.MatchesSection,id:t.id,tournament:t.tournament,leftTeam:n,rightTeam:s}):(0,r.jsx)(z,{...e})},A=e=>{let{referenceId:t,isReferenceTeamId:n,incidentsMap:s,...a}=e;return e=>(0,r.jsx)(C,{incidents:s?s[e.event.id]:void 0,isReferenceTeamId:n,...a,...e,children:()=>(0,r.jsx)(L,{referenceId:t,isReferenceTeamId:n})})},D=e=>{let{rating:t,points:n,player:l,playedFor:c,isOnBench:p,incidents:h,isReferenceTeamId:m}=e;return e=>(0,r.jsx)(C,{incidents:h,entity:a.wNW.Player,...e,isReferenceTeamId:m,children:(0,g.rK)(e.event)?()=>{let{openEventPlayerStatistics:e}=(0,v.d)(),{event:h,leftTeam:m,rightTeam:g}=(0,o.useContext)(u.y$),y=h.status.type,w=h.tournament.category.sport,S=h.winnerCode===a.Jfo.Left?m.id:g.id,C=w.slug===a.QCR.Football,I=w.slug===a.QCR.Basketball,E=y===a.XUj.NotStarted,z=I&&void 0!==n,L=!C&&!z;return p&&w.slug===a.QCR.Football?(0,r.jsx)(i.az,{w:"28",h:"28",children:(0,r.jsx)(x.IKQ,{width:24,height:24,fill:"onSurface.nLv3"})}):E?(0,r.jsx)(k.h,{id:h.id,type:b.b.Event,location:b.y.MatchesSection,tournament:h.tournament,leftTeam:m,rightTeam:g}):h.hasEventPlayerStatistics?(0,r.jsxs)(T,{onClickCapture:t=>{t.preventDefault(),t.stopPropagation(),h.hasEventPlayerStatistics&&l&&e({event:h,player:l},f._.EventCell)},variant:L?void 0:"unshielded",colorScheme:L?"secondary":void 0,p:"0",w:z?48:28,h:"28",children:[C&&(0,r.jsx)(s.G,{rating:t}),z&&(0,r.jsx)(j,{points:n,isWinner:S===c}),L&&(0,r.jsx)(x.Abd,{width:24,height:24,fill:"onColor.primary"})]}):(0,r.jsx)(i.so,{w:"28",h:"28",align:"center",justify:"center",children:(0,r.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,r.jsx)(d.A,{id:"N/A"})})})}:null})}},59721:(e,t,n)=>{n.d(t,{e:()=>r.e});var r=n(33480)},62221:(e,t,n)=>{n.d(t,{C:()=>a});var r=n(55729),s=n(25022);let a=e=>{var t;let[n,a]=(0,r.useState)(0),[l,i]=(0,r.useState)(!0),[o,d]=(0,r.useState)(0);(0,r.useEffect)(()=>{let t=null==e?void 0:e[n];t&&("number"==typeof t.currentRound?d(t.currentRound-1):t.rounds.length>=1&&d(t.rounds.length-1))},[n]);let c=e[n],u=c.rounds.filter(s.bs),x={...c,rounds:u},p=u.length>0&&(0,s.P4)(x,null==(t=e[n])?void 0:t.rounds);return{cupTrees:e,knockoutPartCupTree:x,selectedCupTree:c,enableCompactView:p,renderKnockout:l,setRenderKnockout:i,selectedRoundIndex:o,setSelectedRoundIndex:d,selectedTreeIndex:n,setSelectedTreeIndex:a}}},63598:(e,t,n)=>{n.d(t,{Q:()=>E});var r=n(6029),s=n(21377),a=n(37071),l=n(76356),i=n(78383),o=n.n(i),d=n(48683),c=n(54409),u=n(1815);let x=e=>{let{bgImageUrl:t}=e;return"string"==typeof t?(0,r.jsx)(l.az,{position:"absolute",inset:"0",br:"lg",overflow:"hidden",children:(0,r.jsx)(l.az,{height:"100%",width:"100%",br:"lg",overflow:"hidden",style:{backgroundImage:"url(".concat(t,")"),backgroundSize:"cover",backgroundRepeat:"no-repeat"}})}):null},p=(e,t,n)=>{let r={filter:"blur(50px)",transform:"scale(1.5)"};return"string"==typeof e?{backgroundImage:"url(".concat(e,")"),backgroundSize:n?"cover":"100% 100%",backgroundRepeat:"no-repeat",...r}:{backgroundImage:t?"url(".concat(e[1],"), url(").concat(e[0],")"):"url(".concat(e[0],"), url(").concat(e[1],")"),backgroundSize:"50% 100%, 50% 100%",backgroundPosition:"center left, center right",backgroundRepeat:"no-repeat, no-repeat",...r}},h=e=>{let{url:t,isSpecial:n}=e,{textDirection:s}=(0,a.$c)(),i="rtl"===s;return t?n?(0,r.jsx)(l.az,{position:"absolute",bg:"graphics.dark",inset:"0",br:"lg",overflow:"hidden",children:(0,r.jsx)(l.az,{height:"100%",width:"100%",br:"lg",overflow:"hidden",style:p(t,i,n),children:(0,r.jsx)(l.az,{height:"100%",width:"100%",bg:"overlay.darken1"})})}):(0,r.jsx)(l.az,{position:"absolute",inset:"0",bg:"overlay.darken2",br:"lg",overflow:"hidden",children:(0,r.jsx)(l.az,{height:"100%",width:"100%",br:"lg",overflow:"hidden",style:p(t,i)})}):null},m=e=>{let{banner:t,bgImageUrl:n,isSpecialBg:a,children:l}=e;if(t.background===s.jae.Surface)return null;if(l)return(0,r.jsx)(r.Fragment,{children:l});if(n)switch(t.background){case s.jae.EntityHeader:return(0,r.jsx)(h,{url:n,isSpecial:a});case s.jae.Image:return(0,r.jsx)(x,{bgImageUrl:n})}return null},j=e=>{let{banner:t}=e;return t.url?(0,r.jsx)(c.HW5,{h:16,w:16,fill:t.background===s.jae.Surface?"primary.default":"onColor.primary"}):(0,r.jsx)(c.CCT,{h:16,w:16,fill:t.background===s.jae.Surface?"primary.default":"onColor.primary"})},g=e=>{let{banner:t}=e;return(0,r.jsxs)(a.$n,{size:"tertiary",px:"sm",title:t.copy.action,variant:"clear",color:t.background===s.jae.Surface?"primary.default":"onColor.primary",children:[(0,r.jsx)("span",{children:t.copy.action}),(0,r.jsx)(j,{banner:t})]})};var y=n(55729),v=n(54053);let f=e=>{let{banner:t}=e,[n,i]=(0,y.useState)(!1);return t.regulative?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.FFV,{h:16,w:16,fill:t.background===s.jae.Surface?"onSurface.nLv1":"onColor.primary",onClick:e=>{i(e=>!e),e.preventDefault(),e.stopPropagation()}}),n&&(0,r.jsx)(v.A,{isOpen:n,setIsOpen:i,header:(0,r.jsx)(l.az,{pt:"xs",pb:"sm",px:"lg",mt:{md:"lg"},children:(0,r.jsx)(a.EY,{textStyle:"display.large",children:t.copy.sectionTitle})}),children:(0,r.jsx)(l.az,{pb:"sm",px:"lg",pt:{md:"sm"},children:(0,r.jsx)(a.EY,{textStyle:"body.medium",children:t.regulative})})})]}):null},b=e=>{let{banner:t}=e,{textDirection:n}=(0,a.$c)(),i="rtl"===n,o=i&&t.detailImageUrl.rtl?t.detailImageUrl.rtl:t.detailImageUrl.ltr;return(0,r.jsxs)(l.so,{position:"relative",children:[(0,r.jsxs)(l.az,{w:"2xl",py:"lg",flexGrow:1,children:[(0,r.jsxs)(l.az,{ps:"lg",children:[(0,r.jsxs)(l.so,{gap:"xs",children:[(0,r.jsx)(a.EY,{display:"block",textStyle:"display.small",color:t.background===s.jae.Surface?"neutrals.nLv1":"onColor.primary",children:t.copy.sectionTitle}),(0,r.jsx)(f,{banner:t})]}),(0,r.jsx)(a.EY,{display:"block",textStyle:"assistive.default",color:t.background===s.jae.Surface?"neutrals.nLv3":"onColor.secondary",mt:"xs",children:t.copy.description})]}),(0,r.jsx)(l.az,{pt:"md",px:"sm",children:(0,r.jsx)(g,{banner:t})})]}),(0,r.jsx)(l.az,{w:"2xl",flexGrow:1,style:{backgroundImage:"url(".concat(o,")"),backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPositionX:i?"left":"right",backgroundPositionY:"bottom"}})]})},k=e=>{let{banner:t}=e;return(0,r.jsxs)(l.so,{py:"lg",justify:"space-between",align:"center",overflow:"hidden",position:"relative",children:[(0,r.jsxs)(l.az,{flexGrow:2,w:"10xl",children:[(0,r.jsxs)(l.az,{ps:"lg",children:[(0,r.jsxs)(l.so,{gap:"xs",children:[(0,r.jsx)(a.EY,{display:"block",textStyle:"display.small",color:t.background===s.jae.Surface?"neutrals.nLv1":"onColor.primary",children:t.copy.sectionTitle}),(0,r.jsx)(f,{banner:t})]}),(0,r.jsx)(a.EY,{display:"block",textStyle:"assistive.default",color:t.background===s.jae.Surface?"neutrals.nLv3":"onColor.secondary",mt:"xs",children:t.copy.description})]}),(0,r.jsx)(l.az,{pt:"md",px:"sm",children:(0,r.jsx)(g,{banner:t})})]}),(0,r.jsx)(l.so,{justify:"center",flexGrow:1,w:"4xl",children:(0,r.jsx)(l.I4.img,{src:t.detailImageUrl.ltr,height:"4xl",width:"4xl"})})]})};var w=n(61836),S=n(62827),T=n(91888);let C=e=>{let{banner:t}=e;switch(e.banner.type){case s.$pL.CreativeBanner:return(0,r.jsx)(b,{banner:t});case s.$pL.LogoBanner:default:return(0,r.jsx)(k,{banner:t})}},I=e=>{let{children:t,...n}=e,{banner:s,location:a}=n;return s.url&&a?(0,r.jsx)("a",{href:s.url,target:"_blank",rel:"noopener",onClick:()=>(0,w.AW)({type:"banner",name:s.campaignName,location:a,id:s.id}),children:t}):(0,r.jsx)(r.Fragment,{children:t})},E=e=>{let{banner:t,children:n,location:i,onClick:x}=e,[p,h]=(0,S.bL)((0,T.A)(t.campaignName,t.id),!1),j=(0,u.e)(i?()=>(0,w.Z1)({type:"banner",name:t.campaignName,location:i,id:t.id}):o(),{sendInterval:3e4});return p?null:(0,r.jsx)(l.az,{ref:j,overflow:"hidden",position:"relative",br:"lg",onClick:x,children:(0,r.jsx)(I,{...e,children:(0,r.jsxs)(d.Zp,{children:[(0,r.jsx)(m,{...e,children:n}),(0,r.jsx)(C,{...e}),(0,r.jsx)(a.K0,{variant:"clear",onClick:e=>{h(!0),e.preventDefault(),e.stopPropagation()},position:"absolute",top:"xs",insetEnd:"xs",children:(0,r.jsx)(c.zQC,{icon:"close",h:16,w:16,fill:t.background===s.jae.Surface?"onSurface.nLv1":"onColor.primary"})})]})})})}},66268:(e,t,n)=>{n.d(t,{Bd:()=>em,Or:()=>ey,SR:()=>ev.SR,LS:()=>ev.LS});var r=n(6029),s=n(21377),a=n(21501),l=n(76356),i=n(55729),o=n(90248),d=n(33752),c=n(48683),u=n(49249),x=n(39676),p=n(37071),h=n(75751),m=n(85986),j=n(95195),g=n(62221),y=n(21319),v=n(25022),f=n(47530);let b=e=>{var t;let{uniqueTournamentId:n,seasonId:s,sport:a,cupTrees:i}=e,{knockoutPartCupTree:d,selectedCupTree:u,enableCompactView:x,renderKnockout:j}=(0,g.C)(i);if(!d||!x||!j)return null;let b=null==(t=u.rounds.find(e=>e.order===u.currentRound))?void 0:t.description;return(0,r.jsx)(h.t,{tag:"MobileCupTree",children:(0,r.jsx)(m.J,{sport:a,tournamentId:n,seasonId:s,sourceTreeId:u.id,sourceTreeName:u.name,showSingleParticipantByeBlocks:u.showSingleParticipantByeBlocks,rounds:u.rounds,entrantsPerRound:u.showSingleParticipantByeBlocks?[]:(0,v.BE)(u.rounds),children:(0,r.jsxs)(c.Zp,{children:[(0,r.jsxs)(l.az,{pt:"lg",children:[(0,r.jsx)(p.EY,{display:"block",textStyle:"display.medium",textAlign:"center",children:(0,r.jsx)(o.A,{id:"knockout"})}),b&&(0,r.jsx)(p.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",textAlign:"center",children:(0,r.jsx)(f.__,{name:b,sport:a})})]}),(0,r.jsx)(y.H,{cupTree:d,inCard:!0})]})})})},k=e=>{let{featured:t,uniqueTournament:n}=e,[a,i]=(0,j.Q)(t.id,t.seasonId);return i?(0,r.jsx)(l.az,{h:"[500px]"}):a?(0,r.jsx)(b,{cupTrees:a,seasonId:t.seasonId,uniqueTournamentId:t.id,sport:s.QCR.Football,categorySlug:n.category.slug,uniqueTournamentSlug:n.slug}):null};var w=n(75436),S=n(59721),T=n(46009),C=n(8973),I=n(41248),E=n(4967),z=n(3167);let L=e=>{let{value:t,messageId:n}=e;return(0,r.jsxs)(l.az,{w:"1/4",px:"[1px]",children:[(0,r.jsx)(p.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",textAlign:"center",children:t}),(0,r.jsx)(p.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",textAlign:"center",truncate:!0,children:(0,r.jsx)(o.A,{id:n})})]})},A=()=>(0,r.jsx)(l.az,{h:"2xl",w:"[1px]",backgroundColor:"onColor.secondary"}),D=e=>{let{now:t,start:n}=e,{days:s,hours:a,minutes:i,seconds:o}=(0,E.DU)(t,n);return(0,r.jsxs)(l.so,{w:"100%",justify:"space-between",bg:"[linear-gradient(0deg, {colors.onColor.highlight2} 0%, {colors.onColor.highlight2} 100%), {colors.graphics.dark}]",h:"4xl",br:"sm",p:"sm",mt:"sm",children:[(0,r.jsx)(L,{value:s,messageId:"days"}),(0,r.jsx)(A,{}),(0,r.jsx)(L,{value:a,messageId:"hours"}),(0,r.jsx)(A,{}),(0,r.jsx)(L,{value:i,messageId:"minutes"}),(0,r.jsx)(A,{}),(0,r.jsx)(L,{value:o,messageId:"seconds_left"})]})},N=e=>{let{start:t,end:n}=e,[s,o]=(0,i.useState)(new Date().getTime()),d=(0,a.hX)();if((0,i.useEffect)(()=>{let e=setInterval(()=>o(new Date().getTime()),1e3);return()=>clearInterval(e)},[]),!t||d)return(0,r.jsx)(l.az,{h:"5xl"});let c=1e3*t;return c>=s?(0,r.jsx)(D,{now:s,start:c}):(0,r.jsx)(z.G,{c:"onColor.primary",bg:"onColor.highlight.nLv2",datesProps:{mt:"xxs"},start:t,end:n,mt:"0",mb:"0",pt:"lg"})};var Y=n(52695);let O=e=>{let{uniqueTournament:t,featuredType:n}=e;return(0,r.jsxs)(l.az,{position:"relative",children:[(0,r.jsx)(I.W,{tournament:n}),(0,r.jsxs)(l.az,{px:"lg",position:"relative",children:[(0,r.jsxs)(l.so,{py:"lg",gap:"lg",align:"center",children:[(0,r.jsx)(l.az,{w:"2xl",h:"2xl",children:(0,r.jsx)(S.e,{id:n.id,name:null==t?void 0:t.name,size:32})}),(0,r.jsx)(l.az,{overflow:"hidden",flexGrow:1,children:(0,r.jsx)(p.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",truncate:!0,children:t&&(0,r.jsx)(Y.O,{uniqueTournament:t})})}),(0,r.jsx)(T.e,{id:n.id,entity:s.bq7.Tournaments,location:C.y.Header,type:C.b.UniqueTournament,isOnOverlay:!0})]}),(0,r.jsx)(l.az,{pb:"lg",children:(0,r.jsx)(N,{start:null==t?void 0:t.startDateTimestamp,end:null==t?void 0:t.endDateTimestamp})})]})]})};var P=n(5546),B=n(61836),R=n(25745);let _=60*E.Z2,U=(e,t)=>{var n;let[r,s]=(0,i.useState)({}),[a,l]=(0,i.useState)({}),[o,d]=(0,i.useState)(Math.random()),c=(0,P.uZ)(),u=(0,R.s)(null==c?void 0:c.impressionCostEncrypted),x=!!t&&!!r[t];return(0,i.useEffect)(()=>{if(!t||!x||!c)return;let e=Date.now();if(a[t]){let n=e-a[t];if(n<_){let e=setTimeout(()=>d(Math.random()),n);return()=>clearTimeout(e)}}let n=async()=>{(0,B.Zb)({provider:c.provider.slug,value:await u})};l({...a,[t]:new Date().getTime()}),n();let r=setInterval(()=>n(),_);return()=>clearInterval(r)},[x,null==c||null==(n=c.provider)?void 0:n.id,t,o]),{hasSelectedDayOdds:x,setHasSelectedDayOdds:e=>{s(n=>t?{...n,[t]:e}:n)},resetOddsTracking:()=>{s({}),l({})}}};var F=n(37960),W=n(77988),q=n(52363),H=n(19944),M=n(12047),Z=n(92494),$=n(99326),G=n(53620),X=n(54409),V=n(21075),Q=n(58047);let K=(e,t,n,r)=>{let s=(null==t?void 0:t.count)||r;if(e&&s)return s*(96+36*!!n)+8*(s-1)},J=e=>{let{day:t,events:n,isLoading:s,uniqueTournament:a,seasonId:i,setHasSelectedDayOdds:d}=e,u=(0,P.uZ)();if(!s&&0===n.length)return null;let x=K(s,t,u,1);return(0,r.jsxs)(c.Zp,{children:[(0,r.jsx)(l.az,{style:{height:x?"".concat(x,"px"):void 0},children:(0,r.jsx)(c.BU,{children:n.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,r.jsx)(V.n,{countryOddsProvider:u,event:e,setHasSelectedDayOdds:d},e.id))})}),(0,r.jsx)(w.S,{uniqueTournament:a,seasonId:i,tab:Q.x.Matches,children:(0,r.jsxs)(l.so,{pb:"lg",pt:"sm",br:"md",bg:"surface.s1",justify:"center",align:"center",gap:"xs",children:[(0,r.jsx)(p.EY,{display:"block",textStyle:"display.small",color:"primary.default",children:(0,r.jsx)(o.A,{id:"see_all_matches_button"})}),(0,r.jsx)(X.CCT,{fill:"primary.default"})]})})]})};var ee=n(45860),et=n(83260),en=n(69435),er=n(83318),es=n(42078),ea=n(77235);function el(e){let{uniqueTournamentId:t,seasonId:n,selectedTournamentId:a}=e,[l,i]=(0,et.A)(er.s4,"short"),{data:o,error:d}=(0,ee.Ay)(s.V3t.standings(t,n,s.lpv.Total));return d?null:o?(0,r.jsx)(en.P.Provider,{value:{seasonId:n,uniqueTournamentId:t,standings:o.standings,isNarrowLayout:!0,displayTypeOptions:void 0,displayType:l,setDisplayType:i,homeTeamId:void 0,awayTeamId:void 0,selectedTeamId:void 0,hasPerformanceGraphFeature:!1,tournamentId:a,hasHomeAwayStandings:!1,selectedSeason:void 0},children:(0,r.jsx)(ea.A,{utId:t})}):(0,r.jsx)(es.d,{noSeasonPicker:!0,isNarrowLayout:!0})}var ei=n(97150),eo=n(10778),ed=n(90510);let ec=e=>{let{dateString:t,isSelected:n,onClick:s}=e,[i,d]=(0,a.c9)([]);(0,p.rF)(i,[n],()=>!!n);let c=t.split("-").map(Number),u=new Date(c[0],c[1]-1,c[2]);return(0,r.jsxs)(l.az,{ref:d,h:"4xl",minW:"5xl",bg:"surface.s1",onClick:n?void 0:s,cursor:n?void 0:"pointer",borderBottom:"[2px solid]",borderBottomColor:n?"primary.default":"[transparent]",style:{userSelect:"none"},flexShrink:0,pt:"xs",py:"xs",children:[(0,r.jsx)(p.EY,{display:"block",textStyle:"assistive.micro",textAlign:"center",whiteSpace:"nowrap",color:n?"primary.default":"neutrals.nLv3",mt:"xs",children:(0,E.cK)(u)?(0,r.jsx)(o.A,{id:"today"}):(0,r.jsx)(ed.XU,{value:u,weekday:"short"})}),(0,r.jsx)(p.EY,{display:"block",textStyle:"display.micro",textAlign:"center",whiteSpace:"nowrap",mt:"2xs",children:(0,r.jsx)(ed.XU,{value:u,day:"numeric",month:"short"})})]})},eu=e=>{let{selectedDate:t,setSelectedDate:n,dates:s}=e;return(0,r.jsx)(p.tR,{showButtons:"never",children:(0,r.jsx)(l.so,{bg:"surface.s1",minW:"fit",h:"4xl",justify:"space-between",children:s.length>0&&s.map(e=>(0,r.jsx)(ec,{dateString:e.date,isSelected:(null==t?void 0:t.date)===e.date,onClick:()=>n(e)},e.date))})})};var ex=n(86679);let ep=e=>{let{data:t}=(0,ee.Ay)(s.tI9.seasonDatesWithEvents(e.seasonId,3600*(0,E.UW)())),{hasCupTree:n}=(0,ex.A)({hasCupTree:{route:s.V3t.cupTrees(e.id,e.seasonId)}},[e.id,e.seasonId]),[r,a]=(0,i.useState)(),l=(null==t?void 0:t.dailySeasonEvents)||[];(0,i.useEffect)(()=>{if(l.length){let e=new Date().getTime(),t=l[0],n=Number.MAX_VALUE;l.forEach(r=>{let s=new Date(r.date),a=Math.abs(e-s.getTime());(0,E.cK)(s)&&(t=r,n=0),a{let{tournament:t,uniqueTournament:n}=e,p=(0,M.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1}),{selectedDate:h,setSelectedDate:m,dates:j,showCupTree:g}=ep(t),{events:y,isLoading:v}=(0,H.Y)(t.id,null==h?void 0:h.date),{hasSelectedDayOdds:f,setHasSelectedDayOdds:b}=U(t.id,null==h?void 0:h.date),S=(0,ei.h)(y),T=(0,P.uZ)(),C=(0,a.YU)();return(0,i.useEffect)(()=>{window.scrollTo({left:0,top:0})},[t.id]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.az,{position:"relative",children:[(0,r.jsx)(w.S,{uniqueTournament:n,seasonId:t.seasonId,children:(0,r.jsx)(O,{featuredType:t,uniqueTournament:n})}),(0,r.jsx)(d.B,{children:(0,r.jsx)(d.B.Title,{children:(0,r.jsx)(o.A,{id:"meta."+t.slug,defaultMessage:n.name})})}),(0,r.jsx)(l.az,{bg:"surface.s1",position:"sticky",zIndex:"sticky",elevation:"2",style:{top:p},children:(0,r.jsx)(eu,{selectedDate:h,setSelectedDate:m,dates:j})}),(0,r.jsx)(l.az,{bg:"surface.s0",children:(0,r.jsxs)(c.BU,{children:[(0,r.jsx)(J,{day:h,events:y,isLoading:v||!h,uniqueTournament:n,seasonId:t.seasonId,setHasSelectedDayOdds:b}),(0,r.jsx)(x.iN,{id:Z.Rj.MOBILE_FEATURED_TOURNAMENT_TOP}),(0,r.jsx)($.pk,{utIds:null,logData:{type:"banner",name:"fantasy",location:B.XN.FeaturedTournamentTab}}),g?(0,r.jsx)(k,{featured:t,uniqueTournament:n}):(0,r.jsx)(el,{uniqueTournamentId:t.id,seasonId:t.seasonId,selectedTournamentId:S}),(0,r.jsx)(u.Z,{entity:"unique-tournament",entityId:t.id,bgImageUrl:s.V3t.image(t.id,!0),location:B.XN.FeaturedTournamentTab})]})})]}),t.historyHighlightsEndYear&&(0,r.jsx)(eo.j,{uniqueTournament:n,tournament:t}),(0,r.jsx)(l.so,{justify:"center",align:"center",pt:t.historyHighlightsEndYear?"lg":"sm",pb:"4xl",px:"lg",gap:"sm",bg:"surface.s0",children:f&&(0,r.jsx)(W.A,{provider:T})}),(0,r.jsx)(q.hz,{uniqueTournamentId:n.id}),(0,r.jsx)(l.az,{position:"fixed",right:"0",left:"0",bottom:"0",zIndex:"bottomNavigation",style:{transition:"transform ".concat(F.x,"ms ease-out"),transform:"translateY(".concat(C===a.Dh.Down?0:-1*G.E,"px)")},children:(0,r.jsx)(x.iN,{id:Z.Rj.MOBILE_FEATURED_TOURNAMENT_BOTTOM})})]})},em=e=>(0,r.jsx)(eh,{...e}),ej=(e,t)=>{let n=e.localeCompare(t.defaultFrom);return n<0?0:0===n?1:e.localeCompare(t.showCupTreeFrom||t.visibleTo)>=0?2:4},eg=e=>{let{selectedDate:t,tournament:n}=e,{data:a}=(0,ee.Ay)(s.V3t.details(n.id)),{data:i}=(0,ee.Ay)(s.tI9.seasonDatesWithEvents(n.seasonId,3600*(0,E.UW)()),{dedupingInterval:E.dp}),{events:o,isLoading:d}=(0,H.Y)(n.id,t),u=(0,P.uZ)(),{setHasSelectedDayOdds:x}=U(n.id,t),p=ej(t,n),h=K(d,null==i?void 0:i.dailySeasonEvents.find(e=>e.date===t),u,p);return(0,r.jsx)(c.Zp,{children:(0,r.jsxs)(c.BU,{children:[(0,r.jsx)(w.S,{uniqueTournament:null==a?void 0:a.uniqueTournament,seasonId:n.seasonId,onClick:()=>(0,B.ke)({action:"click",location:"main_page",type:n.analyticsName}),children:(0,r.jsx)(l.az,{br:"lg",overflow:"hidden",children:(0,r.jsx)(O,{featuredType:n,uniqueTournament:null==a?void 0:a.uniqueTournament})})}),d&&Number(h)>0&&(0,r.jsx)(l.az,{style:{height:h?"".concat(h,"px"):void 0}}),o.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,r.jsx)(V.n,{countryOddsProvider:u,event:e,setHasSelectedDayOdds:x},e.id))]})})},ey=e=>{let{date:t,tournaments:n}=e;return(0,r.jsx)(r.Fragment,{children:n.map(e=>(0,r.jsx)(eg,{tournament:e,selectedDate:t},e.id))})};var ev=n(79368)},91888:(e,t,n)=>{n.d(t,{A:()=>a,N:()=>s});var r=n(21377);let s=e=>({id:e.id,background:e.background||r.jae.EntityHeader,campaignName:"generic",copy:{sectionTitle:e.title,description:e.description,action:e.cta},detailImageUrl:{ltr:r.Oaq.bannerLogo(e.id),rtl:r.Oaq.bannerLogo(e.id)},type:e.layout,url:e.url,regulative:e.regulative}),a=(e,t)=>t?"promotion.banner.".concat(e,".").concat(t):"promotion.banner.".concat(e)}}]);