!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]="0cd5c5d5-121b-4945-99b0-511cd116c3f2",e._sentryDebugIdIdentifier="sentry-dbid-0cd5c5d5-121b-4945-99b0-511cd116c3f2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38633],{7643:(e,t,n)=>{n.d(t,{Ay:()=>o});var l=n(55729),r=n(45860),a=n(17259),s=n(27133);let i=Promise.resolve(),o=(0,a.Ht)(r.Ay,e=>(t,n,r)=>{let o,d=(0,l.useRef)(!1),{cache:c,initialSize:u=1,revalidateAll:x=!1,persistSize:m=!1,revalidateFirstPage:p=!0,revalidateOnMount:h=!1,parallel:g=!1}=r,[,,,j]=a.bZ.get(a.PP);try{(o=(e=>(0,a.lK)(e?e(0,null):null)[0])(t))&&(o=a.q9+o)}catch(e){}let[v,y,f]=(0,a.r9)(c,o),b=(0,l.useCallback)(()=>(0,a.b0)(v()._l)?u:v()._l,[c,o,u]);(0,s.useSyncExternalStore)((0,l.useCallback)(e=>o?f(o,()=>{e()}):()=>{},[c,o]),b,b);let _=(0,l.useCallback)(()=>{let e=v()._l;return(0,a.b0)(e)?u:e},[o,u]),w=(0,l.useRef)(_());(0,a.Es)(()=>{if(!d.current){d.current=!0;return}o&&y({_l:m?w.current:_()})},[o,c]);let k=h&&!d.current,C=e(o,async e=>{let l=v()._i,s=[],i=_(),[o]=(0,a.r9)(c,e),d=o().data,u=[],m=null;for(let e=0;e{if(i in j){let e=j[i];delete j[i],y=await e}else y=await n(o);v({data:y,_k:o}),s[e]=y};g?u.push(t):await t()}else s[e]=y;g||(m=y)}return g&&await Promise.all(u.map(e=>e())),y({_i:a.ZH}),s},r),A=(0,l.useCallback)(function(e,t){let n="boolean"==typeof t?{revalidate:t}:t||{},l=!1!==n.revalidate;return o?(l&&((0,a.b0)(e)?y({_i:!0}):y({_i:!1})),arguments.length?C.mutate(e,{...n,revalidate:l}):C.mutate()):i},[o,c]),S=(0,l.useCallback)(e=>{let n;if(!o)return i;let[,l]=(0,a.r9)(c,o);if((0,a.Tn)(e)?n=e(_()):"number"==typeof e&&(n=e),"number"!=typeof n)return i;l({_l:n}),w.current=n;let r=[],[s]=(0,a.r9)(c,o),d=null;for(let e=0;e{n.d(t,{Bt:()=>a.B,GP:()=>r.G,XL:()=>s.X,_S:()=>l._});var l=n(72530),r=n(27264),a=n(63587),s=n(41953)},10292:(e,t,n)=>{n.d(t,{t:()=>l.t});var l=n(91407)},13893:(e,t,n)=>{n.d(t,{V:()=>x});var l=n(6029),r=n(73914),a=n(76356),s=n(90248),i=n(46222),o=n(52466),d=n(64006),c=n(55112),u=n(95084);let x=e=>{let{location:t}=e;return(0,l.jsx)(d.N_,{routeKey:"user.weeklyChallenge",onClick:()=>{(0,u.Wk)({type:"weekly_challenge",location:t})},children:(0,l.jsx)(i.Zp,{children:(0,l.jsxs)(a.so,{gap:"md",py:"md",px:"sm",align:"center",justify:"space-between",children:[(0,l.jsx)(r._V,{h:"4xl",w:"[70px]",src:"/static/images/weekly-challenge/predictions-cta.svg",alt:"Weekly challenge trophies"}),(0,l.jsxs)(a.BJ,{gap:"xs",flexGrow:1,children:[(0,l.jsx)(r.EY,{textStyle:"display.medium",children:(0,l.jsx)(s.A,{id:"weekly_challenge"})}),(0,l.jsx)(r.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,l.jsx)(c.k,{})})]}),(0,l.jsx)(r.K0,{variant:"clear",size:"primary",children:(0,l.jsx)(o.CCT,{})})]})})})}},15538:(e,t,n)=>{n.d(t,{J:()=>l});var l=function(e){return e[e.SpecificRatingPlayer=0]="SpecificRatingPlayer",e[e.AverageRatingTeam=1]="AverageRatingTeam",e[e.AverageRating=2]="AverageRating",e[e.AverageRatingTeamLineups=3]="AverageRatingTeamLineups",e[e.AverageRatingPlayer=4]="AverageRatingPlayer",e}({})},17152:(e,t,n)=>{n.d(t,{D:()=>S});var l=n(6029),r=n(87827),a=n(19501),s=n(73914),i=n(62042),o=n(76356),d=n(55729),c=n(947),u=n(90248),x=n(52466),m=n(82536),p=n(31830),h=n(18970),g=n(15538),j=n(19991),v=n(94565),y=n(28446),f=n(41735);let b=(0,f.default)(v.az).withConfig({componentId:"sc-12120f08-0"})(["animation:"," 660ms ease-in-out 1;animation-delay:330ms;animation-fill-mode:forwards;"],e=>{let t;return t=e.ratingPosition,(0,f.keyframes)(["from{left:0;}to{left:",";}"],t)}),_=["3.0","6.0","6.5","7.0","8.0","9.0"],w=(0,y.A)().domain([3,6,6.5,7,8,9,10]).range([0,16.66666,33.33333,50,66.66666,83.33333,100]);function k(e){let{rating:t,format:n}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(v.so,{id:"#container",position:"relative",mx:"sm",mb:"xs",children:[_.map((e,t)=>(0,l.jsx)(v.az,{flex:"1 1 1px",br:0===t?"xs 0 0 xs":5===t?"0 xs xs 0":void 0,bg:(0,j.Et)(e),h:"16"},e)),t&&(0,l.jsx)(b,{position:"absolute",top:"-2",ratingPosition:w(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,l.jsx)(v.so,{justify:"space-between",children:[..._,"10"].map(e=>(0,l.jsxs)(v.EY,{color:(0,j.Et)(e),font:"tab.secondary",children:[e,"sideBox"===n&&"10"!==e?"0":""]},e))})]})}var C=n(96688);let A=(0,i.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function S(e){let{type:t,rating:n=10,renderImage:i,children:j}=e,v=(0,c.A)(),[y,f]=(0,d.useState)(!1),{isDesktop:b}=(0,s.$c)(),_=(0,d.useContext)(h.Ws)===a.QCR.Football,w=(0,p.A)(),S=(0,C.y)(w),T="",E="box",z="sofascore_rating",P="";switch(t){case g.J.SpecificRatingPlayer:T="rating_general_text",P=[v.formatMessage({id:"rating_top_stats_general"}),v.formatMessage({id:"rating_top_stats_specific"})].join(" ");break;case g.J.AverageRatingTeam:T="average_team_rating_text",E="sideBox",P=[v.formatMessage({id:"rating_top_teams_general"}),v.formatMessage({id:"rating_top_teams_specific"})].join(" ");break;case g.J.AverageRating:T="average_team_rating_match",E="sideBox",z="average_sofascore_rating";break;case g.J.AverageRatingTeamLineups:T="average_team_rating_text",E="sideBox";break;case g.J.AverageRatingPlayer:T="average_player_rating_text",E="sideBox"}return(0,l.jsxs)(l.Fragment,{children:["function"==typeof j?(0,l.jsx)(l.Fragment,{children:j({isOpen:y,setIsOpen:f})}):null!=j?j:(0,l.jsx)(s.m_,{content:P,strategy:""!==P&&b?"hover":"controlled",isVisible:!1,children:(0,l.jsx)(s.K0,{mx:"xs",variant:"clear",onClick:()=>{f(!0)},children:(0,l.jsx)(x.G_L,{fill:"onSurface.nLv1"})})}),(0,l.jsxs)(m.A,{header:(0,l.jsx)(s.H3,{p:"lg",textStyle:"display.large",children:(0,l.jsx)(u.A,{id:z})}),isOpen:y,setIsOpen:f,footer:(0,l.jsx)(o.so,{justify:"flex-end",m:_?"[0 {spacing.lg} {spacing.lg} {spacing.lg}]":{base:"lg",mdDown:"[0 {spacing.lg} {spacing.lg} {spacing.lg}]"},children:(0,l.jsx)(s.$n,{w:{base:"auto",mdDown:"100%"},onClick:()=>{f(!1)},variant:b?"clear":void 0,children:(0,l.jsx)(u.A,{id:"ok_got_it_button"})})}),children:[(0,l.jsxs)(o.az,{maxW:{md:"[320px]"},px:"lg",mb:_?void 0:{mdDown:"2xl"},children:[T&&(0,l.jsx)(u.A,{id:T,values:{break:e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("br",{}),(0,l.jsx)("br",{})]})}}),(0,l.jsxs)(o.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,l.jsx)(o.az,{className:"sideBox"===E?A:void 0,children:(0,l.jsx)(r.G,{size:"xl",rating:n,format:E})}),null==i?void 0:i({size:40,ml:"lg"})]}),(0,l.jsx)(k,{rating:n,format:E})]}),_&&(0,l.jsx)(o.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,l.jsxs)(s.Mz,{display:"block",color:"primary.default",textStyle:"display.small",href:S,target:"_blank",onClick:()=>{f(!1)},children:[(0,l.jsx)(u.A,{id:"rating_learn_more_button"}),(0,l.jsx)(x.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})})]})]})}S.type=g.J},29742:(e,t,n)=>{n.d(t,{M:()=>o});var l=n(6029),r=n(22375),a=n(55729),s=n(947),i=n(46071);let o=e=>{let{hasChallengeEnded:t,challengeEndTime:n}=e,[o,d]=(0,a.useState)(new Date().getTime()),c=(0,s.A)();if((0,a.useEffect)(()=>{let e=setInterval(()=>d(new Date().getTime()),1e3);return()=>clearInterval(e)},[o]),!n)return null;let u=t?n+r.dp:n;return(0,l.jsx)(l.Fragment,{children:u{n.d(t,{S:()=>x});var l=n(19501),r=n(22375),a=n(55729),s=n(45860),i=n(7643),o=n(15341);let d=[l.wNW.Player,l.wNW.Team,l.wNW.Manager,"uniqueTournament",l.wNW.Referee,l.wNW.Venue,l.wNW.Event,l.wNW.Stage,l.wNW.UniqueStage],c=(e,t)=>{let{type:n}=e;return t.includes(n)},u=(e,t)=>{switch(t){case l.G$9.Teams:return"team"===e.type&&e.entity.type!==l.YVh.Person;case l.G$9.Events:return"event"===e.type;case l.G$9.UniqueTournaments:return"uniqueTournament"===e.type;case l.G$9.PlayerTeamPersons:return"team"===e.type&&e.entity.type===l.YVh.Person||"player"===e.type;case l.G$9.Referee:return"referee"===e.type;case l.G$9.Venue:return"venue"===e.type;case l.G$9.Manager:return"manager"===e.type;default:return!0}};function x(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.G$9.All,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,m=arguments.length>3?arguments[3]:void 0,p=arguments.length>4?arguments[4]:void 0,h=function(e){let{filter:t,lsKey:n}=e,[l,s]=(0,o.A)(n||"recent_search_results",[]),i=(0,a.useCallback)(e=>{let t=l.findIndex(t=>t.entity.id===e.entity.id&&t.type===e.type);if(t>-1){let n=[...l];n.splice(t,1),n.unshift(Object.assign(e,{timestamp:Date.now()})),s(n)}else s([Object.assign(e,{timestamp:Date.now()}),...l])},[l]),d=(0,a.useCallback)(e=>{s(l.filter(t=>t.entity.id!==e.entity.id||t.type!==e.type))},[l]),c=(0,a.useCallback)(()=>{s("all"===t?[]:l.filter(e=>!u(e,t)))},[l,t]);return(0,a.useEffect)(()=>{if(null==l?void 0:l.length){let e=Date.now(),t=l.filter(t=>e-t.timestamp<30*r.d_);t.length!==l.length&&s(t)}},[null==l?void 0:l.length]),{recents:l,addRecentSearch:i,removeRecentSearch:d,clearRecentSearches:c}}({filter:n,lsKey:p}),g=(t=h.recents,t.filter(e=>u(e,n))),{suggestions:j,areSuggestionsLoading:v}=function(e,t,n,a){let i=e===l.G$9.All?"default":e,{data:o,isLoading:d}=(0,s.Ay)(t?l.d9M.suggestions(i,a):null,{dedupingInterval:r.d_});return{suggestions:null==o?void 0:o.results.filter(e=>c(e,n)),areSuggestionsLoading:d}}(n,!!e&&g.length<10,x,m),y=function(e){let{filter:t,enabledEntities:n,sport:r}=e,[s,o]=(0,a.useState)(""),[d,u]=(0,a.useState)(),{size:x,setSize:m,isValidating:p}=(0,i.Ay)((e,n)=>n&&!n.results.length||s.length<2?null:l.d9M.results(t,encodeURIComponent(s),e,r),l.TtD,{onSuccess:e=>{u(null==e?void 0:e.reduce((e,t)=>[...e,...t.results],[]).filter(e=>c(e,n)))},onError:()=>{u([])}});return{results:d,isLoadingPage:p,onQueryChange:(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e.length<2&&u(void 0),o(e)},[]),onLoadMore:()=>m(x+1),query:s,couldHaveMore:20*x===(null==d?void 0:d.length)}}({filter:n,enabledEntities:x,sport:m});return{...h,...y,isLoadingPage:y.isLoadingPage||v,recents:g,suggestions:null==j?void 0:j.filter(e=>!h.recents.some(t=>t.entity.id===e.entity.id&&t.type===e.type))}}},37632:(e,t,n)=>{n.d(t,{A:()=>y});var l=n(6029),r=n(19501),a=n(88354),s=n(41735);let i=({x:e,y:t})=>{let{colors:n}=(0,s.useTheme)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.m.circle,{fill:n.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,l.jsx)(a.m.circle,{fill:n.success.default,r:"4",animate:{cx:e,cy:t}})]})},o=({x:e,y:t})=>{let{colors:n}=(0,s.useTheme)(),r=e-3,i=e+3,o=t-3;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.m.circle,{fill:n.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,l.jsx)(a.m.path,{animate:{d:`M ${r},${o} l 6,6 M ${i},${o} l -6,6`},stroke:n.error.default,strokeWidth:"2"})]})},d=({shotCoordinates:e})=>(0,l.jsx)("g",{children:e.map((e,t)=>e.type===r.Dme.Made?(0,l.jsx)(i,{x:e.x,y:e.y},t):(0,l.jsx)(o,{x:e.x,y:e.y},t))});var c=n(67823),u=n(13369),x=n(11810);let m=({showLines:e=!0,showBackground:t=!0,showOverlay:n=!0,linesColor:r,backgroundColor:a,shotCoordinates:s})=>(0,l.jsxs)(c.A,{children:[t&&(0,l.jsx)(x.A,{courtColor:a,showDarkPaint:!0}),e&&(0,l.jsx)(u.A,{fill:r}),n&&(0,l.jsx)(d,{shotCoordinates:s})]});var p=n(28446),h=n(18130);let g=(0,p.A)().domain([-250,250]).range([0,h.f7]),j=(0,p.A)().domain([-51,411]).range([0,h.IV]);var v=n(94565);let y=e=>{let{shotCoordinates:t,condensed:n,...r}=e,{clampedShotActions:a}={clampedShotActions:t.map(e=>{let[t,n]=function(e){let t=g(e.x),n=j(e.y);return n>=h.IV-11&&(n=h.IV-8),t>=h.f7&&(t=h.f7-4),[t,n]}(e);return Object.assign(Object.assign({},e),{x:t,y:n})})};return(0,l.jsx)(v.az,{bg:"graphicsTerrain.basketball",p:"8px 48px",br:"lg",...r,children:(0,l.jsx)(v.az,{maxW:n?280:"100%",h:"100%",mx:"auto",children:(0,l.jsx)(m,{shotCoordinates:a})})})}},38633:(e,t,n)=>{n.r(t),n.d(t,{default:()=>to});var l=n(6029),r=n(19501),a=n(22375),s=n(73914),i=n(19621),o=n(76356),d=n(71024),c=n.n(d),u=n(55729),x=n(90248),m=n(494),p=n(46222),h=n(74664),g=n(52466),j=n(50486),v=n(55152),y=n(67087),f=n(41735),b=n(45860);let _=Object.assign(e=>{let{activeIndex:t,setActiveIndex:n,children:r,showControls:a=!0,autoScrollDelay:i}=e,{textDirection:d}=(0,s.$c)(),c=u.Children.toArray(r),m=c.length,p=(0,u.useRef)(null),h=()=>{n(t{v(),i&&m>1&&(p.current=setTimeout(()=>{h()},i))};(0,u.useEffect)(()=>(j(),()=>{p.current&&clearTimeout(p.current)}),[t,i,m]),(0,u.useEffect)(()=>{void 0===i?v():j()},[i]);let v=()=>{p.current&&clearTimeout(p.current)},y=m<=1;return 0===m?null:(0,l.jsxs)(o.az,{onMouseEnter:i?v:void 0,onMouseLeave:i?j:void 0,children:[(0,l.jsx)(o.az,{position:"relative",overflow:"hidden",w:"100%",boxSizing:"content-box",p:"xs",m:"-xs",children:(0,l.jsx)(o.so,{w:"100%",gap:"lg",transitionProperty:"transform",transitionDuration:"normal",transitionTimingFunction:"ease-in-out",style:{transform:"rtl"===d?"translateX(calc(".concat(100*t,"% + ").concat(16*t,"px))"):"translateX(calc(-".concat(100*t,"% - ").concat(16*t,"px))")},children:c})}),a&&(0,l.jsxs)(o.ov,{gap:"sm",pt:"sm",children:[(0,l.jsxs)(s.$n,{size:"tertiary",variant:"clear",onClick:()=>{n(t>0?t-1:m-1),v()},disabled:y,children:[(0,l.jsx)(g.pa2,{}),(0,l.jsx)(x.A,{id:"previous"})]}),Array.from({length:m}).map((e,r)=>{let a=()=>{n(r),v()};return(0,l.jsx)(o.az,{w:"sm",h:"sm",transitionProperty:"background-color",transitionDuration:"normal",transitionTimingFunction:"ease-in-out",backgroundColor:r===t?"primary.default":"primary.highlight",br:"50%",cursor:"pointer",onKeyDown:e=>{"Enter"===e.key&&a()},onClick:a,tabIndex:0,_focusVisible:{outline:"2px solid",outlineColor:"primary.highlight"},role:"button","aria-label":"Slide number ".concat(r+1),"aria-hidden":r!==t},r)}),(0,l.jsxs)(s.$n,{size:"tertiary",variant:"clear",onClick:h,disabled:y,children:[(0,l.jsx)(x.A,{id:"next"}),(0,l.jsx)(g.CCT,{})]})]})]})},{Slide:e=>{let{children:t}=e;return(0,l.jsx)(o.az,{w:"100%",minW:"100%",flexShrink:"0",children:t})}});var w=n(68789),k=n(37455),C=n(60682),A=n(72753),S=n(40148),T=n(73045),E=n(18970),z=n(83035),P=n(49938),W=n(64006),I=n(82827),L=n(54820),F=n(63777),M=n(30774),R=n(91647),G=n(95084);function B(e,t,n){try{let l=JSON.parse(sessionStorage.getItem(t)||"[]")||[];(null==l?void 0:l.includes(e))||(l.push(e),(0,G.ke)({action:n,location:"main_page",type:"featured_match"}),sessionStorage.setItem(t,JSON.stringify(l)))}catch(e){console.error(e)}}let N={popularityWeight:.5,teamLocaleWeight:1,tournamentLocaleWeight:.1,timeWeight:.2,timeWindowSeconds:259200};var D=n(13731),$=n.n(D);let Y=(e,t)=>e.startTimestamp-t.startTimestamp;function O(e,t){let n=e.reduce((e,t)=>{var n,l,r,a;return Math.max(e,(null!=(r=null==(n=t.homeTeam)?void 0:n.userCount)?r:0)+(null!=(a=null==(l=t.awayTeam)?void 0:l.userCount)?a:0))},0);return[...e].map(e=>({event:e,score:function(e,t){var n,l,r,a,s,i,o,d,c,u,x,m;let{config:p,locale:h,maxPopularity:g,nowTimestamp:j,enableLocale:v}=t,y=null!=j?j:Math.floor(Date.now()/1e3),f=(null!=(u=null==(n=e.homeTeam)?void 0:n.userCount)?u:0)+(null!=(x=null==(l=e.awayTeam)?void 0:l.userCount)?x:0),b=(null!=h?h:"").toUpperCase(),_=v?Number((null==(a=e.homeTeam)||null==(r=a.country)?void 0:r.alpha2)===b||(null==(i=e.awayTeam)||null==(s=i.country)?void 0:s.alpha2)===b):0,w=v?Number((null==(c=e.tournament)||null==(d=c.category)||null==(o=d.country)?void 0:o.alpha2)===b):0,k=(null!=(m=e.startTimestamp)?m:y)-y,C=Math.max(0,Math.min(1,1-k/p.timeWindowSeconds));return p.popularityWeight*(g>0?f/g:0)+p.teamLocaleWeight*_+p.tournamentLocaleWeight*w+p.timeWeight*(k<=0?1:C)}(e,{...t,maxPopularity:n})})).sort((e,t)=>t.score-e.score).map(e=>e.event)}var V=n(78383),Z=n.n(V);let H=(0,u.createContext)({isPaused:!1,setIsPaused:Z()}),J=()=>(0,u.useContext)(H);function q(e){let{children:t}=e,[n,r]=(0,u.useState)(!1);return(0,l.jsx)(H,{value:{isPaused:n,setIsPaused:r},children:t})}function Q(e){var t,n;let{event:r}=e,a=(0,M.w)(r.tournament),i=(0,R.N)(r.tournament.uniqueTournament);return(0,l.jsx)(W.Mq,{tournament:r.tournament,seasonId:null==(t=r.season)?void 0:t.id,className:"group",children:(0,l.jsxs)(o.so,{gap:"lg",align:"center",px:"sm",pt:"sm",children:[(0,l.jsx)(T.e,{id:null==(n=r.tournament.uniqueTournament)?void 0:n.id,alt:i,size:24,fallback:(0,l.jsx)(T.l,{id:r.tournament.id,alt:a,size:24})}),(0,l.jsx)(s.EY,{textStyle:"assistive.default",_groupHover:{color:"primary.default",textDecoration:"underline"},truncate:!0,children:null!=i?i:a})]})})}function U(e){let{event:t,onEventClick:n,areAdditionalOddsExpanded:a,setAreAdditionalOddsExpanded:s}=e,{event:i,leftTeam:d,rightTeam:c,leftScore:u,rightScore:x}=(0,y.mJ)(t.id,{shouldRefresh:!0}),{setIsPaused:h}=J(),g={...t,...i},j=(0,m.d4)((0,k.Ul)(g)),v=(0,m.d4)(k.fq),f=(0,m.d4)(k.BF),b=g.status.type===r.XUj.InProgress;return(0,l.jsxs)(o.BJ,{gap:"lg",h:"100%",p:"sm",children:[(0,l.jsx)(Q,{event:g}),(0,l.jsxs)(E.y$,{value:{event:g,leftTeam:d,rightTeam:c,leftScore:u,rightScore:x,location:E.cb.FeaturedMatch},children:[i?(0,l.jsx)(p.WC,{variant:"square",children:(0,l.jsx)(z.A,{hideTitle:!0,hasCta:!1,event:g,onClick:()=>n(g)})}):(0,l.jsx)(P.o,{hideTitle:!0,showCta:!1}),(0,l.jsx)(F.ZB,{event:g,onChangeVoteModalOpen:()=>h(!0),onChangeVoteModalClose:()=>h(!1)}),!f&&(j||v)&&(0,l.jsx)(l.Fragment,{children:v?(0,l.jsx)(L.A,{eventId:g.id,isLive:b,isNewOddsComparisonPreview:!0}):(0,l.jsx)(I.jO,{eventId:g.id,isLive:b,areAdditionalOddsExpanded:a,setAreAdditionalOddsExpanded:s})})]})]})}let X=7*a.Z2,K=()=>{let{isPaused:e}=J(),t=(0,m.d4)(k.zV),n=(0,w.Ae)(),[a]=(0,C.Z)(n),s=(0,m.d4)(A.hT)||r.QCR.Football,[i,d]=(0,u.useState)(0),c=(0,m.d4)(A.LQ),[x,h]=(0,u.useState)(!1),{data:g,isLoading:j}=(0,b.Ay)(a?r.npy.featuredEventsByPopularity(a,s):null),v=(0,u.useMemo)(()=>{var e;return function(e,t,n){let l=O(e,{config:t,locale:n,enableLocale:!!n});return Object.values($()(l.slice(0,5).sort(Y),e=>new Date(1e3*e.startTimestamp).toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"2-digit",timeZone:"UTC"}))).map(e=>O(e,{config:N,locale:n,enableLocale:!!n})).flat().sort(Y)}((null==g||null==(e=g.featuredEvents)?void 0:e.filter(e=>!t||e.status.type!==r.XUj.InProgress))||[],N,c)},[null==g?void 0:g.featuredEvents,t,c]);(0,u.useEffect)(()=>{d(0)},[s,c]),(0,u.useEffect)(()=>{v.forEach(e=>{B(e.id,"main.page.interacted.featured.events","impression")})},[v]);let y=e=>{B(e.id,"main.page.clicked.featured.events","click")};return j?(0,l.jsx)(S.d,{}):g&&0===v.length?null:(0,l.jsx)(o.az,{children:(0,l.jsx)(_,{autoScrollDelay:e?void 0:X,activeIndex:i,setActiveIndex:d,showControls:v.length>1,children:v.map(e=>(0,l.jsx)(_.Slide,{children:(0,l.jsx)(et,{direction:"column",h:"100%",children:(0,l.jsx)(p.Zp,{children:(0,l.jsx)(U,{event:e,onEventClick:y,areAdditionalOddsExpanded:x,setAreAdditionalOddsExpanded:h})})})},e.id))})})};function ee(){return(0,l.jsx)(q,{children:(0,l.jsx)(K,{})})}var et=(0,f.default)(o.so).withConfig({componentId:"sc-72ca9ff0-0"})({"& > div":{flex:"1"}}),en=n(25479),el=n(13893),er=n(18153),ea=n(54365),es=n(47161),ei=n(82536),eo=n(94008),ed=n(67020),ec=n(17390),eu=n(53192),ex=n(91407),em=n(91603),ep=n(60475),eh=n(94156),eg=n(94565),ej=n(6813),ev=n(36982);let ey=e=>{let{items:t,titleId:n,empty:a,onSelect:i}=e;return(null==t?void 0:t.length)?(0,l.jsxs)(o.az,{children:[n&&(0,l.jsx)(s.EY,{textStyle:"assistive.default",children:(0,l.jsx)(x.A,{id:n})}),t.map(e=>e.type===r.wNW.Player?(0,l.jsx)(ed.b4,{player:e.entity,onPlayerClick:()=>{i(e)}},e.entity.id):e.type===r.wNW.Team?(0,l.jsx)(ed.HM,{team:e.entity,onTeamClick:()=>{i(e)}},e.entity.id):null)]}):(0,l.jsx)(l.Fragment,{children:a})};function ef(e){let{type:t,onSelect:n,sport:a}=e,{query:s,results:i,suggestions:d,onQueryChange:c,isLoadingPage:u}=(0,ev.S)(!0,t,"all"===t?[r.wNW.Team,r.wNW.Player]:void 0,a,"".concat(a,"_recent_compare_cta")),m=s&&s.length>2;return(0,l.jsx)(eg.jT,{label:(0,l.jsx)(x.A,{id:t===r.G$9.PlayerTeamPersons?"hint_enter_player_name":t===r.G$9.Teams?"hint_enter_team_name":"hint_enter_team_or_player"}),query:s||"",options:[],onQueryChange:c,filterOptions:e=>!!e,inputProps:{autoFocus:!1,endAdornment:null},w:"100%",zIndex:eg.Py.Sticky,itemWrapper:()=>(null==i?void 0:i.length)||!u?(0,l.jsx)(o.az,{p:"md",children:m?(0,l.jsx)(ey,{items:i,onSelect:n,empty:(0,l.jsx)(ej.p,{graphic:"no-data",titleMessageId:"empty_search_title",descriptionMessageId:"no_events_found_body"})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(ey,{titleId:"suggested",items:(e=>{if(!(null==e?void 0:e.length))return;let t=[],n=e.filter(e=>e.type===r.wNW.Team),l=e.filter(e=>e.type===r.wNW.Player),a=Math.max(n.length,l.length);for(let e=0;e{let{id:t,name:n,type:a,rotate:s}=e;switch(a){case r.G$9.PlayerTeamPersons:return(0,l.jsx)(ex.t,{id:t,size:48,name:n});case r.G$9.Teams:return(0,l.jsx)(em.p,{id:t,size:48,name:n});default:return(0,l.jsx)(o.so,{minW:"4xl",h:"4xl",bg:"surface.s2",br:"50%",align:"center",justify:"center",children:(0,l.jsx)(g.S3t,{fill:"neutral.default",style:s?{transform:"rotate(180deg)"}:void 0})})}},e_=e=>{let{country:t,reversed:n}=e;return(0,l.jsxs)(o.so,{align:"center",direction:n?"row-reverse":"row",gap:"xs",children:[(0,l.jsx)(eu.w,{size:24,alpha2:null==t?void 0:t.alpha2,name:null==t?void 0:t.name}),(0,l.jsx)(s.EY,{display:"block",textStyle:"assistive.default",lineHeight:1,truncate:!0,maxW:"[150px]",children:(null==t?void 0:t.slug)&&(null==t?void 0:t.name)?(0,l.jsx)(ep.md,{name:t.name,slug:t.slug}):"-"})]})},ew=e=>{let{player:t,reversed:n}=e;return(0,l.jsxs)(o.so,{align:"center",direction:n?"row-reverse":"row",gap:"xs",children:[(0,l.jsx)(em.p,{id:t.team.id,size:24}),(0,l.jsx)(s.EY,{display:"block",textStyle:"assistive.default",lineHeight:1,truncate:!0,maxW:"[150px]",children:(0,l.jsx)(eh.c,{entity:t.team})})]})};function ek(e){let{isFirst:t,selected:n,type:a,sport:i,onSelect:d}=e,c=null==n?void 0:n.entity,u=(null==n?void 0:n.type)===r.wNW.Player;return(0,l.jsxs)(o.so,{px:"lg",py:"sm",gap:"lg",align:"center",children:[(0,l.jsx)(eb,{id:null==c?void 0:c.id,name:null==c?void 0:c.name,type:a,rotate:!t}),c?(0,l.jsxs)(o.so,{grow:1,justify:"space-between",align:"center",children:[(0,l.jsxs)(o.az,{children:[(0,l.jsx)(s.EY,{textStyle:"display.medium",truncate:!0,maxW:"[180px]",mt:"xs",children:(0,l.jsx)(eh.c,{entity:c})}),!c.national&&!u&&(0,l.jsx)(e_,{country:null==c?void 0:c.country}),u&&(0,l.jsx)(ew,{player:c})]}),(0,l.jsx)(s.K0,{size:"primary",variant:"clear",onClick:()=>d(void 0),children:(0,l.jsx)(g.hRh,{})})]}):(0,l.jsx)(ef,{type:a,onSelect:d,sport:i})]})}let eC=()=>{let[e,t]=(0,u.useState)(!1);return(0,l.jsxs)(o.az,{position:"relative",children:[(0,l.jsx)(g.G_L,{fill:"onSurface.nLv1",cursor:"pointer",onClick:()=>t(!0)}),(0,l.jsx)(ei.A,{isOpen:e,setIsOpen:t,header:"compare_stats",children:(0,l.jsx)(s.EY,{maxW:"[280px]",textStyle:"body.mediumParagraph",px:"lg",display:"block",children:(0,l.jsx)(x.A,{id:"explainer_compare_stats"})})})]})};function eA(e){var t;let{sport:n}=e,[a,i]=(0,u.useState)(),[d,c]=(0,u.useState)(),m=a||d,h=(null==m?void 0:m.type)===r.wNW.Player||(null==m||null==(t=m.entity)?void 0:t.type)===r.YVh.Person?r.G$9.PlayerTeamPersons:(null==m?void 0:m.type)===r.wNW.Team?r.G$9.Teams:r.G$9.All,g=[];return((null==a?void 0:a.entity.id)&&g.push(a.entity.id),(null==d?void 0:d.entity.id)&&g.push(d.entity.id),(0,u.useEffect)(()=>{i(void 0),c(void 0)},[n]),ec.G.includes(n))?(0,l.jsx)(ed.V3,{persistKey:"".concat(n,"_recent_compare_cta"),children:(0,l.jsxs)(p.Zp,{children:[(0,l.jsx)(p.Zp.Header,{titleId:"compare_stats",actionComponent:(0,l.jsx)(eC,{})}),(0,l.jsx)(ek,{type:h,selected:a,onSelect:i,sport:n,isFirst:!0}),(0,l.jsx)(o.az,{h:"[1px]",mx:"lg",my:"sm",bg:"neutrals.nLv4"}),(0,l.jsx)(ek,{type:h,selected:d,onSelect:c,sport:n}),(0,l.jsx)(o.so,{pt:"xs",pb:"md",justify:"center",align:"center",children:(0,l.jsx)(eo.A,{routeKey:"comparison",query:(0,ed.k9)(g),params:{sport:n,entityType:h===r.G$9.Teams?"team":"player"},children:(0,l.jsx)(s.$n,{size:"secondary",variant:"filled",children:(0,l.jsx)(x.A,{id:"compare"})})})})]})}):null}var eS=n(90510),eT=n(41164),eE=n(88505);let ez=()=>{let{event:e,leftTeam:t,rightTeam:n}=(0,u.useContext)(E.y$),a=(0,eT.c5)(e),s=(0,y.g3)(),i=(0,l.jsx)(eE.Rm,{team:t,short:a===r.QCR.Tennis}),o=(0,l.jsx)(eE.Rm,{team:n,short:a===r.QCR.Tennis}),d="ar"===(0,m.d4)(A.JV);return(0,l.jsxs)(l.Fragment,{children:[d?o:i," ",a===r.QCR.MMA?"vs":d?"ضد":s?"@":"-"," ",d?i:o]})};var eP=n(88196),eW=n(79375),eI=n(73364),eL=n(21287),eF=n(74207),eM=n(64046),eR=n(8785),eG=n(53148),eB=n(18862);let eN=e=>{let{choice:t,isLive:n,branded:r,betSlipLink:a,isComparison:i,onClick:d}=e,c=a&&r,u="fractional"===(0,m.d4)(k.$4),x=u?eB.Y:void 0,p=(0,l.jsxs)(o.so,{position:"relative",justify:"center",align:"center",bg:"surface.s2",br:"xs",border:i&&n?"1px solid {colors.status.val}":"1px solid {colors.neutrals.nLv4}",minW:i?"4xl":"[52px]",h:i?"xl":"[28px]",my:"xs",flexShrink:0,flexGrow:i?1:void 0,children:[(0,l.jsx)(s.EY,{textStyle:"display.micro",color:n?"status.val":"neutrals.nLv1",mr:0===t.change?void 0:"2xs",textAlign:"center",style:{fontSize:u?14:void 0,letterSpacing:u?"-1px":void 0},lineHeight:1,children:(0,l.jsx)(eB.c,{fractionalValue:t.fractionalValue,children:x})}),(0,l.jsx)(eG.I,{change:t.change})]});return c&&(p=(0,l.jsx)(s.Mz,{target:c?"_blank":void 0,rel:c?"nofollow noopener noreferrer":void 0,href:c?a:void 0,onClick:e=>{e.stopPropagation(),null==d||d()},flexGrow:i?1:void 0,flexBasis:i?"4xl":void 0,children:p})),p},eD=()=>(0,l.jsx)(o.az,{flexBasis:"4xl",minW:"4xl",h:"xl",flexGrow:1}),e$=e=>{let{event:t,cop:n,markets:r,choiceNames:a}=e,s=r.map(e=>e.choices).flat(),i=a.map(e=>s.find(t=>t.name===e));return(0,l.jsxs)(o.so,{p:"sm",gap:"xl",justify:"space-between",borderTop:"1px solid {colors.neutrals.nLv4}",align:"center",children:[(0,l.jsx)(eF.r,{selectedProvider:n,size:"64x24"}),(0,l.jsx)(o.so,{justify:"space-between",align:"center",gap:"sm",flexGrow:1,children:a.map((e,a)=>{let s=i[a],o=r.find(t=>t.choices.find(t=>t.name===e));return s&&o?(0,l.jsx)(eN,{choice:s,betSlipLink:n&&(0,eR.Iz)(s,o,n),branded:null==n?void 0:n.branded,isLive:o.isLive,isComparison:!0,onClick:()=>(0,G.Fe)({id:t.id,category:o.marketName,location:E.cb.FeaturedOdds,provider:null==n?void 0:n.provider.slug,position:eM.ki.OddsValue,type:eM.jF.Featured})},"".concat(e,"-").concat(o.id)):(0,l.jsx)(eD,{},e)})})]})},eY=e=>{let{event:t}=e;return t.status.type===r.XUj.InProgress?(0,l.jsxs)(o.so,{h:"100%",align:"center",gap:"xs",children:[(0,l.jsx)(o.az,{h:"sm",w:"sm",br:"50%",bg:"status.live"}),(0,l.jsx)(s.EY,{h:"lg",lineHeight:"[16px]",textStyle:"body.small",color:"status.live",children:(0,l.jsx)(x.A,{id:"live"})})]}):(0,l.jsx)(s.EY,{h:"lg",textStyle:"body.small",children:(0,a.cK)(t.startTimestamp)?(0,l.jsx)(eS.ib,{value:1e3*t.startTimestamp}):(0,l.jsx)(eS.XU,{value:1e3*t.startTimestamp,...a.or.dateTime})})},eO=e=>{let{leftTeam:t,rightTeam:n,leftScore:a,rightScore:i}=(0,y.AR)(e.event),{event:d}=(0,y.mJ)(e.event.id),c=d||e.event,u=c.status.type===r.XUj.InProgress,x=(0,m.d4)(k.hB),{odds:p,markets:h,choiceNames:g,error:j}=(0,eI.B)(x||[],e.event.id,u);return!j&&(null==h?void 0:h.length)&&p&&(null==g?void 0:g.length)!==0?(0,l.jsxs)(E.y$,{value:{event:c,leftTeam:t,rightTeam:n,leftScore:a,rightScore:i,location:E.cb.FeaturedOdds},children:[(0,l.jsx)(eP.A,{event:c,children:(0,l.jsxs)(o.so,{pt:"lg",pb:"sm",px:"lg",justify:"space-between",children:[(0,l.jsx)(s.EY,{textStyle:"display.small",truncate:!0,children:(0,l.jsx)(ez,{})}),(0,l.jsx)(eY,{event:c})]})}),(0,l.jsxs)(o.so,{justify:"flex-end",gap:"xl",p:"sm",children:[(0,l.jsx)(o.az,{w:"6xl"}),(0,l.jsx)(o.so,{flexGrow:1,gap:"sm",children:g.map(e=>(0,l.jsx)(o.az,{minW:"4xl",flexGrow:1,textAlign:"center",color:"neutrals.nLv3",textStyle:"display.micro",children:e},e))})]}),null==x?void 0:x.map((e,t)=>{let n=p[t];return(null==n?void 0:n.length)?(0,l.jsx)(e$,{event:c,cop:e,choiceNames:g,markets:p[t]||[]},e.provider.id):null})]}):null},eV=()=>{let e=(0,m.d4)(k.hB),[t]=(0,C.Z)(null==e?void 0:e[0]),n=(0,m.d4)(A.hT),{featuredEvents:r,error:a}=(0,es.HD)(n,t);return!a&&(null==r?void 0:r.length)?(0,l.jsxs)(p.Zp,{children:[(0,l.jsx)(p.Zp.Header,{titleId:"featured_odds",actionComponent:(0,l.jsx)(eL.V,{}),variant:"left-aligned"}),r.slice(0,2).map(e=>(0,l.jsx)(eO,{event:e},e.id)),(0,l.jsx)(o.so,{borderTop:"1px solid {colors.neutrals.nLv4}",py:"lg",justify:"center",children:(0,l.jsx)(eW.A,{provider:null==e?void 0:e[0]})})]}):null};var eZ=n(95816),eH=n.n(eZ),eJ=n(16503),eq=n(4790);let eQ=e=>{let{countryOddsProvider:t}=e,n=null==t?void 0:t.branded,r=(0,m.d4)(A.LQ);return n?(0,l.jsx)(s.Mz,{position:"absolute",top:"md",right:"lg",target:"_blank",rel:"nofollow noreferrer",href:(null==t?void 0:t.defaultBetSlipLink)||(null==t?void 0:t.provider.defaultBetSlipLink),onClick:()=>(0,G.Fe)({location:E.cb.FeaturedOdds,provider:null==t?void 0:t.provider.slug,position:eM.ki.BookmakerButton}),children:(0,l.jsx)(s.$n,{children:(0,l.jsxs)(o.so,{align:"center",gap:"xs",children:[(0,l.jsx)(x.A,{id:"bet_now".concat("GR"===r?"_age":""),values:{age:21}}),(0,l.jsx)(g.A0k,{width:16,height:16,fill:"surface.s1"})]})})}):null},eU=e=>{let{length:t=3}=e;return(0,l.jsx)(l.Fragment,{children:Array.from({length:t}).map((e,t)=>(0,l.jsx)(o.az,{w:"[52px]",flexGrow:0,flexShrink:0,flexBasis:"[52px]"},t))})},eX=e=>{var t;let{event:n,markets:a,marketChoiceNames:i,hasManyMarkets:d}=e,c=n.status.type===r.XUj.InProgress,m=(0,w.Ae)(),{leftTeam:p,rightTeam:h}=(0,y.AR)(n),g=(0,y.g3)(n),{mediaBreakpoint:j}=(0,s.$c)(),v=es.Yt[j]||es.Yt.default;if(!a)return null;let f=a.filter(e=>v.includes(e.marketId)),b=f.filter(e=>e.isLive===c),_=f.filter(e=>e.isLive===c||!b.find(t=>t.marketId===e.marketId));return(0,l.jsxs)(o.so,{align:"center",py:"xs",borderBottom:"1px solid {colors.neutrals.nLv4}",gap:"xs",children:[(0,l.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"[100px]",overflow:"hidden",maxW:"100%",children:(0,l.jsx)(W.tj,{event:n,children:(0,l.jsxs)(o.so,{align:"center",gap:"xs",br:"xs",children:[(0,l.jsx)(o.az,{flexGrow:0,flexShrink:1,flexBasis:"[36px]",children:(0,l.jsx)(s.EY,{textStyle:"body.small",mr:"xs",w:"2xl",textAlign:"center",display:"block",color:c?"status.live":"neutrals.nLv1",children:c?(0,l.jsx)(x.A,{id:"live"}):(0,l.jsx)(eS.ib,{value:1e3*n.startTimestamp})})}),(0,l.jsx)(o.az,{w:"[1px]",h:"[36px]",bg:"neutrals.nLv4"}),(0,l.jsxs)(o.so,{direction:"column",flexGrow:1,flexShrink:1,flexBasis:"6xl",overflow:"hidden",children:[(0,l.jsx)(s.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:d&&p.nameCode?p.nameCode:(0,l.jsx)(eE.Rm,{team:p,short:!0})}),(0,l.jsx)(s.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:d&&h.nameCode?h.nameCode:(0,l.jsx)(eE.Rm,{team:h,short:!0})})]})]})})}),_.map(e=>{if(v.includes(e.marketId)){let t=[...i[e.marketId]||[]],r=(0,eR.nu)(e.choices,g);return t.length?(0,l.jsx)(u.Fragment,{children:t.map(t=>{let a=r.find(e=>e.name===t);return a?(0,l.jsx)(eN,{choice:a,betSlipLink:m&&(0,eR.Iz)(a,e,m),branded:null==m?void 0:m.branded,isLive:e.isLive,onClick:()=>(0,G.Fe)({id:n.id,category:e.marketName,location:E.cb.FeaturedOdds,provider:null==m?void 0:m.provider.slug,position:eM.ki.OddsValue,type:eM.jF.Featured})},"".concat(t,"-").concat(e.id)):(0,l.jsx)(o.az,{w:"[52px]",flexGrow:0,flexShrink:0,flexBasis:"[52px]"},"".concat(t,"-").concat(e.id))})},e.id):(0,l.jsx)(eU,{},"empty")}return null}),-1===a.findIndex(e=>2===e.marketId)&&!!i[2]&&(0,l.jsx)(eU,{length:null==(t=i[2])?void 0:t.size})]})};var eK=n(61924);let e0=()=>{let e=(0,w.Ae)(),t=(0,eq.s)(null==e?void 0:e.impressionCostEncrypted),[n]=(0,C.Z)(e),a=(0,m.d4)(A.hT),{mediaBreakpoint:i}=(0,s.$c)(),d=(0,eJ.e)(async()=>{(0,G.CH)({provider:null==e?void 0:e.provider.slug,location:E.cb.FeaturedOdds,value:await t})},{intersectionOptions:{rootMargin:"-20px"},deps:[a]}),{featuredEvents:c,error:u}=(0,es.HD)(a,n),{data:x,error:h}=(0,b.Ay)((null==c?void 0:c.length)&&n?[n,c.map(e=>e.id),"FEATURED_ODDS"]:null,{fetcher:e=>{let[t,n]=e;return Promise.all(n.map(e=>r.nk6.fetchAllEventOdds(e,t)))},refreshInterval:2e4}),g=es.Yt[i]||es.Yt.default,j=null==x?void 0:x.reduce((e,t)=>{var n;return null==(n=t.markets)||n.forEach(t=>{g.includes(t.marketId)&&t.choices.every(e=>es.Vj.includes(e.name))&&(e[t.marketId]?t.choices.forEach(n=>e[t.marketId].add(n.name)):e[t.marketId]=new Set(t.choices.map(e=>e.name)))}),e},{});if(u||h||!e||!(null==c?void 0:c.length))return null;if(!c||!x)return(0,l.jsx)(eK.A,{});if(eH()(j))return null;let v=0;return g.forEach(e=>j[e]&&[...j[e]].forEach(()=>v+=1)),(0,l.jsxs)(p.Zp,{children:[(0,l.jsx)(p.Zp.Header,{titleId:"featured_odds",actionComponent:(0,l.jsx)(eQ,{countryOddsProvider:e}),variant:"left-aligned"}),(0,l.jsxs)(o.az,{position:"relative",children:[(0,l.jsxs)(o.az,{px:"sm",children:[(0,l.jsx)(o.so,{align:"flex-end",justify:"flex-end",borderBottom:"1px solid {colors.neutrals.nLv4}",pb:"xs",gap:"xs",h:"2xl",mt:"md",children:g.map(e=>j[e]&&[...j[e]].map(e=>(0,l.jsx)(s.EY,{display:"block",textStyle:"assistive.default",w:"[52px]",textAlign:"center",color:"neutrals.nLv3",style:{flex:"0 0 52px"},children:e},e)))}),(0,l.jsx)("div",{ref:d,children:c.map((e,t)=>(0,l.jsx)(eX,{event:e,markets:x[t].markets,marketChoiceNames:j,hasManyMarkets:v>5},e.id))})]}),(0,l.jsx)(E.y$,{value:{location:E.cb.FeaturedOdds},children:(0,l.jsxs)(o.so,{justify:"space-between",align:"center",px:"lg",pt:"sm",pb:"lg",children:[(0,l.jsx)(eW.A,{provider:e}),(0,l.jsx)(eF.$,{provider:e})]})})]})]})},e1=()=>{let e=(0,m.d4)(k.BF),t=(0,m.d4)(k.fq);return e?null:t?(0,l.jsx)(eV,{}):(0,l.jsx)(e0,{})};var e2=n(45586),e6=n(29347),e4=n(10292),e5=n(17152),e3=n(78259),e9=n(14868),e7=n(74610),e8=n(66331),te=n(96861),tt=n(37632),tn=n(8715);let tl=e=>{let{player:t,index:n,onClick:r,isFootball:a}=e,i=(0,y.g3)(t.event),[d,c]=(0,y.jr)(t.event,"homeTeam","awayTeam",t.event);return(0,l.jsxs)(o.so,{onClick:()=>r(t.event,t.player),pl:"sm",pr:"lg",align:"center",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,l.jsx)(s.EY,{textStyle:"body.small",children:n}),(0,l.jsxs)(o.az,{position:"relative",ml:"md",children:[(0,l.jsx)(e3.tg,{id:t.player.id,name:t.player.name,size:40}),(0,l.jsx)(e3.pY,{size:21,id:t.team.id,name:t.team.name,style:{position:"absolute",bottom:0,right:-8}})]}),(0,l.jsxs)(o.so,{justify:"space-between",align:"center",flexGrow:1,overflow:"hidden",children:[(0,l.jsxs)(o.so,{direction:"column",justify:"center",ml:"lg",mr:"sm",h:"5xl",overflow:"hidden",children:[(0,l.jsx)(s.EY,{textStyle:"body.medium",truncate:!0,mb:"xs",children:(0,l.jsx)(eh.c,{entity:t.player})}),(0,l.jsxs)(s.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:[(0,l.jsx)(eh.c,{entity:d,short:!0})," ".concat(i?"@":"vs."," "),(0,l.jsx)(eh.c,{entity:c,short:!0})]})]}),(0,l.jsx)(o.az,{flexShrink:0,children:a?(0,l.jsx)(e3.GW,{rating:Number(t.rating)}):(0,l.jsx)(s.EY,{textStyle:"body.medium",children:t.points})})]})]})};function tr(e){let{topPlayers:t,heatmap:n,isFetchingHeatmap:a,sport:s,shotmap:i}=e,{openEventPlayerStatistics:d}=(0,e8.d)(),[c,x]=(0,u.useState)(!1),m=(0,u.useCallback)(()=>x(e=>!e),[]),h=s===r.QCR.Football,g=s===r.QCR.Basketball,j=(e,t)=>{d({event:e,player:t},te._.TopPlayers)};if((0,u.useEffect)(()=>{x(!1)},[s]),!t)return null;let v=t.length>5;return(0,l.jsx)(e7.t,{tag:"TopPlayersList",children:(0,l.jsxs)(o.az,{children:[t.slice(0,5).map((e,t)=>(0,l.jsxs)(u.Fragment,{children:[(0,l.jsx)(tl,{isFootball:h,player:e,index:t+1,onClick:j},e.player.id),g&&i&&0===t&&(0,l.jsx)(o.az,{p:"sm",children:(0,l.jsx)(tt.A,{shotCoordinates:i,condensed:!0})}),h&&0===t&&n&&!a?(0,l.jsx)(o.az,{p:"sm",children:(0,l.jsx)(tn.GP,{containerId:"heatmap-".concat(e.player.id),dataPoints:n.heatmap,direction:e.team.id===e.event.awayTeam.id?"left":"right"})}):0===t&&a&&h?(0,l.jsx)(o.az,{h:"[260px]"}):null]},e.player.id)),c&&t.slice(5).map((e,t)=>(0,l.jsx)(tl,{isFootball:h,player:e,index:5+t+1,onClick:j},e.player.id)),(0,l.jsx)(p.Zp.Footer,{ctaParams:v?{messageId:c?"show_less":"show_more",icon:c?e9.X.Up:e9.X.Down,onClick:m}:void 0})]})})}var ta=n(25262);function ts(){var e,t,n;let a,s,i=(0,h.o)(),{data:o,error:d}=(0,b.Ay)(r.t3g.trendingTopPlayers(i)),c=i===r.QCR.Football,u=i===r.QCR.Basketball;o&&o.topPlayers.length&&(a=o.topPlayers[0].event.id,s=o.topPlayers[0].player.id);let{data:x,error:m}=(0,b.Ay)(c&&a&&s?r.bnp.playerHeatmap(a,s):null),{data:j}=(0,b.Ay)(u&&a&&s?r.bnp.playerShotmap(a,s):null);return d?null:o?(0,l.jsxs)(p.Zp,{children:[(0,l.jsx)(p.Zp.Header,{titleId:"top_players",values:{gender:null!=(n=null==(e=o.topPlayers[0].player.team)?void 0:e.gender)?n:r.YT8.Male},actionComponent:c&&(0,l.jsx)(e5.D,{type:e5.D.type.SpecificRatingPlayer,rating:null==o||null==(t=o.topPlayers[0])?void 0:t.rating,renderImage:e=>{var t;return(0,l.jsx)(e4.t,{id:null==o||null==(t=o.topPlayers[0])?void 0:t.player.id,...e})},children:e=>{let{setIsOpen:t}=e;return(0,l.jsx)(g.G_L,{fill:"onSurface.nLv1",onClick:()=>t(!0),cursor:"pointer"})}})}),(0,l.jsx)(tr,{sport:i,heatmap:x,shotmap:null==j?void 0:j.shotmap,topPlayers:o.topPlayers,isFetchingHeatmap:!x&&!m&&c})]}):(0,l.jsx)(ta.A,{})}let ti=c()(()=>Promise.all([n.e(93785),n.e(92970),n.e(81826),n.e(72889),n.e(11045),n.e(28105),n.e(86795),n.e(15102),n.e(63188),n.e(77262)]).then(n.bind(n,59625)),{loadableGenerated:{webpack:()=>[59625]},loading:()=>(0,l.jsx)(p.Zp,{children:(0,l.jsx)(o.az,{h:"[calc(100vh - 168px)]"})})});function to(e){let{date:t,listType:n,category:d}=e,c=(0,m.wA)(),f=(0,m.d4)(e=>e.uicontrols.activeWidgetEvent),b=(0,i.hX)(),{isMobile:_}=(0,s.$c)(),w=(0,m.d4)(A.LQ),k=(0,h.o)(),{event:C}=(0,y.mJ)(null!=f?f:void 0),S=k===r.QCR.Football||k===r.QCR.Basketball,T=(0,u.useCallback)((e,t,n)=>{n||(e.preventDefault(),f===t?c((0,er.VX)(null)):c((0,er.VX)(t||null)))},[f]);(0,u.useEffect)(()=>{let e=document.getElementsByClassName("js-list-cell-target");for(let t=0;t{if(!C)return;let e=void 0===d||C.tournament.category.slug===d,n=C.tournament.category.sport.slug===k,l=(0,a.yk)(t.getTime(),C.startTimestamp);if(!e||!n||!l)return void c((0,er.VX)(null))},[C,k,t,d]),b)?(0,l.jsx)(e6.A,{date:t,listType:n,category:d}):_?null:f?(0,l.jsx)(o.az,{position:"sticky",top:"[120px]",children:(0,l.jsx)(ti,{eventId:f,onClose:T,belowBreadcrumbs:!0})}):(0,l.jsxs)(l.Fragment,{children:[E.length>0?(0,l.jsx)(en.Or,{date:(0,a.UG)(t),tournaments:E}):(0,l.jsx)(ee,{}),(0,l.jsx)(e2.w,{}),S&&(0,l.jsx)(ts,{}),(0,l.jsx)(eA,{sport:k}),(0,l.jsx)(e1,{}),(0,l.jsx)(el.V,{location:"main_screen"}),(0,l.jsxs)(p.Zp,{children:[(0,l.jsx)(p.Zp.Header,{title:(0,l.jsxs)(o.so,{gap:"md",align:"center",children:[(0,l.jsx)(g.HZJ,{fill:"primary.default"}),(0,l.jsx)(x.A,{id:"banner_header_text"})]})}),(0,l.jsxs)(p.BU,{children:[(0,l.jsx)(j.k,{}),"BR"!==w&&(0,l.jsx)(v.s,{})]})]}),d?(0,l.jsx)(ea._,{sport:k,category:d}):n===es.Jx.BASE?(0,l.jsx)(ea.a,{}):null]})}},46071:(e,t,n)=>{n.d(t,{Y:()=>r,j:()=>a});var l=n(22375);function r(e,t,n,l){let r=e>0?l.slice(0,e).map(e=>e.id):[],a=t>0?l.slice(e,e+t).map(e=>e.id):[];return{userIds:{promoted:r,demoted:l.length>e+t&&n>0?l.slice(-l.length+e+t).map(e=>e.id):[],neutral:a}}}function a(e,t,n){let{days:r,hours:a,minutes:s,seconds:i}=(0,l.DU)(e,t),o=r>0?r+n.formatMessage({id:"days_short"}):"",d=a>0?a+n.formatMessage({id:"hours_short"}):"";return[o,d,(a>0||s>0)&&!r?s+n.formatMessage({id:"minutes_short"}):"",(s>0||i>0)&&!r&&!a?i+n.formatMessage({id:"seconds_short"}):""].filter(Boolean).join(" ")}},55112:(e,t,n)=>{n.d(t,{k:()=>o});var l=n(6029),r=n(19501),a=n(90248),s=n(45860),i=n(29742);let o=()=>{let e=(()=>{var e;let{data:t}=(0,s.Ay)(r.rGM.activeLeagueDetails());if(!(null==t?void 0:t.meta))return;let n=new Date().getTime(),l=(null==(e=t.meta)?void 0:e.endDateTimestamp)*1e3;return{hasEnded:l{n.d(t,{_7:()=>p._7,ZB:()=>h,mt:()=>p.mt,Q3:()=>p.Q3,bZ:()=>p.bZ,wH:()=>p.wH}),n(61305),n(61394);var l=n(6029),r=n(19501),a=n(73914),s=n(76356),i=n(55729),o=n(90248),d=n(46222),c=n(52763),u=n(3336),x=n(67004),m=n(47815),p=n(46558);function h(e){let{event:t,onChangeVoteModalOpen:n,onChangeVoteModalClose:h}=e,[g,j]=(0,i.useState)(!1),[v,y]=(0,i.useState)(!1),f=(0,p.Nv)(p.o3),b=(0,p.Wi)(t,r.rjx.WhoWillWin),{totalVotes:_,isLoading:w}=(0,p.sr)(t,r.rjx.WhoWillWin),k=(0,p.E0)(t,b||v),{autoShowAd:C,canEditVote:A,grantReward:S,hasRevisitedChangeVote:T,setAutoShowAd:E}=(0,p.a8)(t,r.rjx.WhoWillWin,g,j,y),{isModalOpen:z,onChangeVote:P,onShowAd:W,setAdCanceled:I,setIsModalOpen:L,setShowLoader:F,showLoader:M}=(0,p.$d)(t.id,c.Mx.DesktopFeaturedMatch,C,T,r.rjx.WhoWillWin,()=>E(!1),()=>{S(),F(!1)},h,n);(0,i.useEffect)(()=>{z&&(null==n||n())},[z]);let R="change_vote"===k,G="voting_ended"===k;return(0,l.jsx)(d.WC,{variant:"square",children:(0,l.jsx)(d.Zp,{children:(0,l.jsxs)(s.so,{direction:"column",gap:"lg",p:"sm",children:[(0,l.jsxs)(s.so,{justify:"space-between",align:"center",children:[(0,l.jsxs)(s.BJ,{gap:"2xs",children:[(0,l.jsx)(a.EY,{textStyle:"display.medium",children:(0,l.jsx)(o.A,{id:"who_will_win"})}),w?(0,l.jsx)(s.az,{h:"lg"}):"vote"===k?(0,l.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,l.jsx)(o.A,{id:"change_vote_info_text"})}):R||G?(0,l.jsxs)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,l.jsx)(o.A,{id:"prediction_total_votes"}),": ",(0,m.A)(_)]}):null]}),R&&(A||T)?(0,l.jsx)(u.A,{onChangeVote:P,onChangeVoteClose:()=>{null==h||h(),L(!1)},onChangeVoteContinue:W,isModalOpen:z,isLoaderOpen:M,onLoaderExit:()=>{F(!1),I(!0)}}):G?(0,l.jsx)(a.EY,{textStyle:"display.small",color:"neutrals.nLv3",children:(0,l.jsx)(o.A,{id:"voting_ended_status"})}):null]}),(0,l.jsx)(s.az,{children:(0,l.jsx)(x.A,{config:f,voteType:r.rjx.WhoWillWin,enableVoteChange:g,eventVoteLocation:"featured_match"})})]})})})}},83035:(e,t,n)=>{n.d(t,{A:()=>j,h:()=>v});var l=n(6029),r=n(73045),a=n(73914),s=n(76356),i=n(90248),o=n(46222),d=n(18970),c=n(52466),u=n(60475),x=n(15361),m=n(67087),p=n(64006),h=n(9081),g=n(76155);let j=e=>{var t;let{event:n,hideTitle:d,hasCta:m=!1,onClick:j}=e;return(0,l.jsxs)(s.az,{children:[(0,l.jsx)(o.Zp,{children:(0,l.jsxs)(s.BJ,{gap:"xs",_hover:{bg:"surface.s2"},br:"sm",style:{minHeight:102+32*!d},children:[!d&&n.tournament.uniqueTournament&&(0,l.jsx)(p.tQ,{tournament:n.tournament.uniqueTournament,seasonId:null==(t=n.season)?void 0:t.id,children:(0,l.jsxs)(s.so,{justify:"space-between",align:"center",gap:"xs",children:[(0,l.jsxs)(s.so,{align:"center",pt:"sm",px:"lg",children:[n.tournament.uniqueTournament?(0,l.jsx)(r.e,{id:n.tournament.uniqueTournament.id,size:24}):(0,l.jsx)(r.l,{id:n.tournament.id,size:24}),(0,l.jsxs)(a.Ym,{textStyle:"assistive.default",color:"neutrals.nLv3",ml:"sm",display:"block",children:[(0,l.jsx)(u.md,{slug:n.tournament.category.slug,name:n.tournament.category.name,fieldTranslations:n.tournament.category.fieldTranslations,uniqueTournament:n.tournament.uniqueTournament}),", ",(0,l.jsx)(g.J,{tournament:n.tournament}),n.roundInfo&&(0,l.jsxs)(l.Fragment,{children:[", ",(0,l.jsx)(h.DT,{round:n.roundInfo})]})]})]}),(0,l.jsx)(c.CCT,{w:24,h:24,fill:"primary.default"})]})}),(0,l.jsx)(p.tj,{event:n,onClick:j,children:(0,l.jsx)(x.g,{disableFollow:!0,hasCountdown:!0,hideIncidents:!0,hideTimeouts:!0})})]})}),m&&(0,l.jsxs)(s.so,{justify:"center",py:"lg",px:"lg",cursor:"pointer",children:[(0,l.jsx)(a.EY,{textStyle:"display.small",color:"primary.default",children:(0,l.jsx)(i.A,{id:"see_all"})}),(0,l.jsx)(c.CCT,{fill:"primary.default",ml:"xs"})]})]})};function v(e){let{event:t,...n}=e,{event:r,leftTeam:a,rightTeam:s,leftScore:i,rightScore:o}=(0,m.mJ)(t.id,{shouldRefresh:!0,event:t});return t?(0,l.jsx)(d.y$,{value:{event:t,leftTeam:a,rightTeam:s,leftScore:i,rightScore:o},children:(0,l.jsx)(j,{event:{...t,...r},...n})}):null}},96688:(e,t,n)=>{n.d(t,{y:()=>l});function l(e){let t=(null==e?void 0:e.toLowerCase())||"",n=["hr","es","pt"].includes(t);return"https://corporate.sofascore.com".concat(n?"/".concat(t):"","/about/rating")}}}]);