!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]="cda9c92d-86ce-4290-9d52-02c677416aa2",e._sentryDebugIdIdentifier="sentry-dbid-cda9c92d-86ce-4290-9d52-02c677416aa2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38633],{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),s=n(73914),r=n(76356),a=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)(r.so,{gap:"md",py:"md",px:"sm",align:"center",justify:"space-between",children:[(0,l.jsx)(s._V,{h:"4xl",w:"[70px]",src:"/static/images/weekly-challenge/predictions-cta.svg",alt:"Weekly challenge trophies"}),(0,l.jsxs)(r.BJ,{gap:"xs",flexGrow:1,children:[(0,l.jsx)(s.EY,{textStyle:"display.medium",children:(0,l.jsx)(a.A,{id:"weekly_challenge"})}),(0,l.jsx)(s.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,l.jsx)(c.k,{})})]}),(0,l.jsx)(s.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),s=n(87827),r=n(21377),a=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(25940),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)}),w=["3.0","6.0","6.5","7.0","8.0","9.0"],_=(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:[w.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:_(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,l.jsx)(v.so,{justify:"space-between",children:[...w,"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,a.$c)(),w=(0,d.useContext)(h.Ws)===r.QCR.Football,_=(0,p.A)(),S=(0,C.y)(_),T="",E="box",z="sofascore_rating",W="";switch(t){case g.J.SpecificRatingPlayer:T="rating_general_text",W=[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",W=[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)(a.m_,{content:W,strategy:""!==W&&b?"hover":"controlled",isVisible:!1,children:(0,l.jsx)(a.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)(a.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:w?"[0 {spacing.lg} {spacing.lg} {spacing.lg}]":{base:"lg",mdDown:"[0 {spacing.lg} {spacing.lg} {spacing.lg}]"},children:(0,l.jsx)(a.$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:w?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)(s.G,{size:"xl",rating:n,format:E})}),null==i?void 0:i({size:40,ml:"lg"})]}),(0,l.jsx)(k,{rating:n,format:E})]}),w&&(0,l.jsx)(o.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,l.jsxs)(a.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),s=n(4967),r=n(55729),a=n(947),i=n(46071);let o=e=>{let{hasChallengeEnded:t,challengeEndTime:n}=e,[o,d]=(0,r.useState)(new Date().getTime()),c=(0,a.A)();if((0,r.useEffect)(()=>{let e=setInterval(()=>d(new Date().getTime()),1e3);return()=>clearInterval(e)},[o]),!n)return null;let u=t?n+s.dp:n;return(0,l.jsx)(l.Fragment,{children:u{n.d(t,{S:()=>x});var l=n(21377),s=n(4967),r=n(55729),a=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,a]=(0,o.A)(n||"recent_search_results",[]),i=(0,r.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()})),a(n)}else a([Object.assign(e,{timestamp:Date.now()}),...l])},[l]),d=(0,r.useCallback)(e=>{a(l.filter(t=>t.entity.id!==e.entity.id||t.type!==e.type))},[l]),c=(0,r.useCallback)(()=>{a("all"===t?[]:l.filter(e=>!u(e,t)))},[l,t]);return(0,r.useEffect)(()=>{if(null==l?void 0:l.length){let e=Date.now(),t=l.filter(t=>e-t.timestamp<30*s.d_);t.length!==l.length&&a(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,r){let i=e===l.G$9.All?"default":e,{data:o,isLoading:d}=(0,a.Ay)(t?l.d9M.suggestions(i,r):null,{dedupingInterval:s.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:s}=e,[a,o]=(0,r.useState)(""),[d,u]=(0,r.useState)(),{size:x,setSize:m,isValidating:p}=(0,i.Ay)((e,n)=>n&&!n.results.length||a.length<2?null:l.d9M.results(t,encodeURIComponent(a),e,s),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,r.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:a,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),s=n(21377),r=n(88354),a=n(41735);let i=({x:e,y:t})=>{let{colors:n}=(0,a.useTheme)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.m.circle,{fill:n.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,l.jsx)(r.m.circle,{fill:n.success.default,r:"4",animate:{cx:e,cy:t}})]})},o=({x:e,y:t})=>{let{colors:n}=(0,a.useTheme)(),s=e-3,i=e+3,o=t-3;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.m.circle,{fill:n.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,l.jsx)(r.m.path,{animate:{d:`M ${s},${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===s.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:s,backgroundColor:r,shotCoordinates:a})=>(0,l.jsxs)(c.A,{children:[t&&(0,l.jsx)(x.A,{courtColor:r,showDarkPaint:!0}),e&&(0,l.jsx)(u.A,{fill:s}),n&&(0,l.jsx)(d,{shotCoordinates:a})]});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(25940);let y=e=>{let{shotCoordinates:t,condensed:n,...s}=e,{clampedShotActions:r}={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",...s,children:(0,l.jsx)(v.az,{maxW:n?280:"100%",h:"100%",mx:"auto",children:(0,l.jsx)(m,{shotCoordinates:r})})})}},38633:(e,t,n)=>{n.r(t),n.d(t,{default:()=>td});var l=n(6029),s=n(21377),r=n(4967),a=n(73914),i=n(21501),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(947),w=n(45860);let _=Object.assign(e=>{let{activeIndex:t,setActiveIndex:n,children:s,showControls:r=!0,autoScrollDelay:i}=e,{textDirection:d}=(0,a.$c)(),c=u.Children.toArray(s),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})}),r&&(0,l.jsxs)(o.ov,{gap:"sm",pt:"sm",children:[(0,l.jsxs)(a.$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,s)=>{let r=()=>{n(s),v()};return(0,l.jsx)(o.az,{w:"sm",h:"sm",transitionProperty:"background-color",transitionDuration:"normal",transitionTimingFunction:"ease-in-out",backgroundColor:s===t?"primary.default":"primary.highlight",br:"50%",cursor:"pointer",onKeyDown:e=>{"Enter"===e.key&&r()},onClick:r,tabIndex:0,_focusVisible:{outline:"2px solid",outlineColor:"primary.highlight"},role:"button","aria-label":"Slide number ".concat(s+1),"aria-hidden":s!==t},s)}),(0,l.jsxs)(a.$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 k=n(68789),C=n(37455),A=n(60682),S=n(72753),T=n(40148),E=n(73045),z=n(18970),W=n(83035),P=n(49938),I=n(64006),L=n(82827),F=n(54820),M=n(63777),R=n(30774),B=n(91647),G=n(95084);function N(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 D={popularityWeight:.5,teamLocaleWeight:1,tournamentLocaleWeight:.1,timeWeight:.2,timeWindowSeconds:259200};var $=n(13731),Y=n.n($);let O=(e,t)=>e.startTimestamp-t.startTimestamp;function V(e,t){let n=e.reduce((e,t)=>{var n,l,s,r;return Math.max(e,(null!=(s=null==(n=t.homeTeam)?void 0:n.userCount)?s:0)+(null!=(r=null==(l=t.awayTeam)?void 0:l.userCount)?r:0))},0);return[...e].map(e=>({event:e,score:function(e,t){var n,l,s,r,a,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(),w=v?Number((null==(r=e.homeTeam)||null==(s=r.country)?void 0:s.alpha2)===b||(null==(i=e.awayTeam)||null==(a=i.country)?void 0:a.alpha2)===b):0,_=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*w+p.tournamentLocaleWeight*_+p.timeWeight*(k<=0?1:C)}(e,{...t,maxPopularity:n})})).sort((e,t)=>t.score-e.score).map(e=>e.event)}var Z=n(78383),H=n.n(Z);let J=(0,u.createContext)({isPaused:!1,setIsPaused:H()}),q=()=>(0,u.useContext)(J);function Q(e){let{children:t}=e,[n,s]=(0,u.useState)(!1);return(0,l.jsx)(J,{value:{isPaused:n,setIsPaused:s},children:t})}function U(e){var t,n;let{event:s}=e,r=(0,R.w)(s.tournament),i=(0,B.N)(s.tournament.uniqueTournament);return(0,l.jsx)(I.Mq,{tournament:s.tournament,seasonId:null==(t=s.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)(E.e,{id:null==(n=s.tournament.uniqueTournament)?void 0:n.id,alt:i,size:24,fallback:(0,l.jsx)(E.l,{id:s.tournament.id,alt:r,size:24})}),(0,l.jsx)(a.EY,{textStyle:"assistive.default",_groupHover:{color:"primary.default",textDecoration:"underline"},truncate:!0,children:null!=i?i:r})]})})}function X(e){let{event:t,onEventClick:n,areAdditionalOddsExpanded:r,setAreAdditionalOddsExpanded:a}=e,{event:i,leftTeam:d,rightTeam:c,leftScore:u,rightScore:x}=(0,y.mJ)(t.id,{shouldRefresh:!0}),{setIsPaused:h}=q(),g={...t,...i},j=(0,m.d4)((0,C.Ul)(g)),v=(0,m.d4)(C.fq),f=(0,m.d4)(C.BF),b=g.status.type===s.XUj.InProgress;return(0,l.jsxs)(o.BJ,{gap:"lg",children:[(0,l.jsx)(U,{event:g}),(0,l.jsxs)(z.y$,{value:{event:g,leftTeam:d,rightTeam:c,leftScore:u,rightScore:x,location:z.cb.FeaturedMatch},children:[i?(0,l.jsx)(W.A,{hideTitle:!0,hasCta:!1,event:g,onClick:()=>n(g)}):(0,l.jsx)(P.o,{hideTitle:!0,showCta:!1}),(0,l.jsx)(M.ZB,{event:g,onChangeVoteModalOpen:()=>h(!0),onChangeVoteModalClose:()=>h(!1)}),!f&&(j||v)&&(0,l.jsx)(l.Fragment,{children:v?(0,l.jsx)(F.A,{eventId:g.id,isLive:b,isNewOddsComparisonPreview:!0}):(0,l.jsx)(p.WC,{variant:"square",px:"xs",pb:"xs",_empty:{display:"none"},children:(0,l.jsx)(L.jO,{eventId:g.id,isLive:b,areAdditionalOddsExpanded:r,setAreAdditionalOddsExpanded:a})})})]})]})}let K=7*r.Z2,ee=()=>{let e=(0,b.A)(),{isPaused:t}=q(),n=(0,m.d4)(C.zV),r=(0,k.Ae)(),[a]=(0,A.Z)(r),i=(0,m.d4)(S.hT)||s.QCR.Football,[d,c]=(0,u.useState)(0),x=(0,m.d4)(S.LQ),[h,g]=(0,u.useState)(!1),{data:j,isLoading:v}=(0,w.Ay)(a?s.npy.featuredEventsByPopularity(a,i):null),y=(0,u.useMemo)(()=>{var e;return function(e,t,n){let l=V(e,{config:t,locale:n,enableLocale:!!n});return Object.values(Y()(l.slice(0,5).sort(O),e=>new Date(1e3*e.startTimestamp).toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"2-digit",timeZone:"UTC"}))).map(e=>V(e,{config:D,locale:n,enableLocale:!!n})).flat().sort(O)}((null==j||null==(e=j.featuredEvents)?void 0:e.filter(e=>!n||e.status.type!==s.XUj.InProgress))||[],D,x)},[null==j?void 0:j.featuredEvents,n,x]);(0,u.useEffect)(()=>{c(0)},[i,x]),(0,u.useEffect)(()=>{y.forEach(e=>{N(e.id,"main.page.interacted.featured.events","impression")})},[y]);let f=e=>{N(e.id,"main.page.clicked.featured.events","click")};return v?(0,l.jsx)(T.d,{}):j&&0===y.length?null:(0,l.jsx)(o.az,{children:(0,l.jsx)(_,{autoScrollDelay:t?void 0:K,activeIndex:d,setActiveIndex:c,showControls:y.length>1,children:y.map(t=>(0,l.jsx)(_.Slide,{children:(0,l.jsx)(en,{direction:"column",h:"100%",children:(0,l.jsx)(p.Zp,{children:(0,l.jsx)(p.WC,{variant:"square","aria-label":e.formatMessage({id:"featured"}),children:(0,l.jsx)(p.BU,{children:(0,l.jsx)(X,{event:t,onEventClick:f,areAdditionalOddsExpanded:h,setAreAdditionalOddsExpanded:g})})})})})},t.id))})})};function et(){return(0,l.jsx)(Q,{children:(0,l.jsx)(ee,{})})}var en=(0,f.default)(o.so).withConfig({componentId:"sc-a845d60a-0"})({"& > div":{flex:"1"}}),el=n(24570),es=n(13893),er=n(18153),ea=n(54365),ei=n(47161),eo=n(82536),ed=n(94008),ec=n(67020),eu=n(17390),ex=n(53192),em=n(91407),ep=n(91603),eh=n(79131),eg=n(94156),ej=n(25940),ev=n(6813),ey=n(36982);let ef=e=>{let{items:t,titleId:n,empty:r,onSelect:i}=e;return(null==t?void 0:t.length)?(0,l.jsxs)(o.az,{children:[n&&(0,l.jsx)(a.EY,{textStyle:"assistive.default",children:(0,l.jsx)(x.A,{id:n})}),t.map(e=>e.type===s.wNW.Player?(0,l.jsx)(ec.b4,{player:e.entity,onPlayerClick:()=>{i(e)}},e.entity.id):e.type===s.wNW.Team?(0,l.jsx)(ec.HM,{team:e.entity,onTeamClick:()=>{i(e)}},e.entity.id):null)]}):(0,l.jsx)(l.Fragment,{children:r})};function eb(e){let{type:t,onSelect:n,sport:r}=e,{query:a,results:i,suggestions:d,onQueryChange:c,isLoadingPage:u}=(0,ey.S)(!0,t,"all"===t?[s.wNW.Team,s.wNW.Player]:void 0,r,"".concat(r,"_recent_compare_cta")),m=a&&a.length>2;return(0,l.jsx)(ej.jT,{label:(0,l.jsx)(x.A,{id:t===s.G$9.PlayerTeamPersons?"hint_enter_player_name":t===s.G$9.Teams?"hint_enter_team_name":"hint_enter_team_or_player"}),query:a||"",options:[],onQueryChange:c,filterOptions:e=>!!e,inputProps:{autoFocus:!1,endAdornment:null},w:"100%",zIndex:ej.Py.Sticky,itemWrapper:()=>(null==i?void 0:i.length)||!u?(0,l.jsx)(o.az,{p:"md",children:m?(0,l.jsx)(ef,{items:i,onSelect:n,empty:(0,l.jsx)(ev.p,{graphic:"no-data",titleMessageId:"empty_search_title",descriptionMessageId:"no_events_found_body"})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(ef,{titleId:"suggested",items:(e=>{if(!(null==e?void 0:e.length))return;let t=[],n=e.filter(e=>e.type===s.wNW.Team),l=e.filter(e=>e.type===s.wNW.Player),r=Math.max(n.length,l.length);for(let e=0;e{let{id:t,name:n,type:r,rotate:a}=e;switch(r){case s.G$9.PlayerTeamPersons:return(0,l.jsx)(em.t,{id:t,size:48,name:n});case s.G$9.Teams:return(0,l.jsx)(ep.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:a?{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)(ex.w,{size:24,alpha2:null==t?void 0:t.alpha2,name:null==t?void 0:t.name}),(0,l.jsx)(a.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)(eh.m,{name:t.name,slug:t.slug}):"-"})]})},ek=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)(ep.p,{id:t.team.id,size:24}),(0,l.jsx)(a.EY,{display:"block",textStyle:"assistive.default",lineHeight:1,truncate:!0,maxW:"[150px]",children:(0,l.jsx)(eg.c,{entity:t.team})})]})};function eC(e){let{isFirst:t,selected:n,type:r,sport:i,onSelect:d}=e,c=null==n?void 0:n.entity,u=(null==n?void 0:n.type)===s.wNW.Player;return(0,l.jsxs)(o.so,{px:"lg",py:"sm",gap:"lg",align:"center",children:[(0,l.jsx)(ew,{id:null==c?void 0:c.id,name:null==c?void 0:c.name,type:r,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)(a.EY,{textStyle:"display.medium",truncate:!0,maxW:"[180px]",mt:"xs",children:(0,l.jsx)(eg.c,{entity:c})}),!c.national&&!u&&(0,l.jsx)(e_,{country:null==c?void 0:c.country}),u&&(0,l.jsx)(ek,{player:c})]}),(0,l.jsx)(a.K0,{size:"primary",variant:"clear",onClick:()=>d(void 0),children:(0,l.jsx)(g.hRh,{})})]}):(0,l.jsx)(eb,{type:r,onSelect:d,sport:i})]})}let eA=()=>{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)(eo.A,{isOpen:e,setIsOpen:t,header:"compare_stats",children:(0,l.jsx)(a.EY,{maxW:"[280px]",textStyle:"body.mediumParagraph",px:"lg",display:"block",children:(0,l.jsx)(x.A,{id:"explainer_compare_stats"})})})]})};function eS(e){var t;let{sport:n}=e,[r,i]=(0,u.useState)(),[d,c]=(0,u.useState)(),m=r||d,h=(null==m?void 0:m.type)===s.wNW.Player||(null==m||null==(t=m.entity)?void 0:t.type)===s.YVh.Person?s.G$9.PlayerTeamPersons:(null==m?void 0:m.type)===s.wNW.Team?s.G$9.Teams:s.G$9.All,g=[];return((null==r?void 0:r.entity.id)&&g.push(r.entity.id),(null==d?void 0:d.entity.id)&&g.push(d.entity.id),(0,u.useEffect)(()=>{i(void 0),c(void 0)},[n]),eu.G.includes(n))?(0,l.jsx)(ec.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)(eA,{})}),(0,l.jsx)(eC,{type:h,selected:r,onSelect:i,sport:n,isFirst:!0}),(0,l.jsx)(o.az,{h:"[1px]",mx:"lg",my:"sm",bg:"neutrals.nLv4"}),(0,l.jsx)(eC,{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)(ed.A,{routeKey:"comparison",query:(0,ec.k9)(g),params:{sport:n,entityType:h===s.G$9.Teams?"team":"player"},children:(0,l.jsx)(a.$n,{size:"secondary",variant:"filled",children:(0,l.jsx)(x.A,{id:"compare"})})})})]})}):null}var eT=n(90510),eE=n(41164),ez=n(88505);let eW=()=>{let{event:e,leftTeam:t,rightTeam:n}=(0,u.useContext)(z.y$),r=(0,eE.c5)(e),a=(0,y.g3)(),i=(0,l.jsx)(ez.Rm,{team:t,short:r===s.QCR.Tennis}),o=(0,l.jsx)(ez.Rm,{team:n,short:r===s.QCR.Tennis}),d="ar"===(0,m.d4)(S.JV);return(0,l.jsxs)(l.Fragment,{children:[d?o:i," ",r===s.QCR.MMA?"vs":d?"ضد":a?"@":"-"," ",d?i:o]})};var eP=n(88196),eI=n(79375),eL=n(73364),eF=n(21287),eM=n(74207),eR=n(64046),eB=n(8785),eG=n(53148),eN=n(18862);let eD=e=>{let{choice:t,isLive:n,branded:s,betSlipLink:r,isComparison:i,onClick:d}=e,c=r&&s,u="fractional"===(0,m.d4)(C.$4),x=u?eN.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)(a.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)(eN.c,{fractionalValue:t.fractionalValue,children:x})}),(0,l.jsx)(eG.I,{change:t.change})]});return c&&(p=(0,l.jsx)(a.Mz,{target:c?"_blank":void 0,rel:c?"nofollow noopener noreferrer":void 0,href:c?r:void 0,onClick:e=>{e.stopPropagation(),null==d||d()},flexGrow:i?1:void 0,flexBasis:i?"4xl":void 0,children:p})),p},e$=()=>(0,l.jsx)(o.az,{flexBasis:"4xl",minW:"4xl",h:"xl",flexGrow:1}),eY=e=>{let{event:t,cop:n,markets:s,choiceNames:r}=e,a=s.map(e=>e.choices).flat(),i=r.map(e=>a.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)(eM.r,{selectedProvider:n,size:"64x24"}),(0,l.jsx)(o.so,{justify:"space-between",align:"center",gap:"sm",flexGrow:1,children:r.map((e,r)=>{let a=i[r],o=s.find(t=>t.choices.find(t=>t.name===e));return a&&o?(0,l.jsx)(eD,{choice:a,betSlipLink:n&&(0,eB.Iz)(a,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:z.cb.FeaturedOdds,provider:null==n?void 0:n.provider.slug,position:eR.ki.OddsValue,type:eR.jF.Featured})},"".concat(e,"-").concat(o.id)):(0,l.jsx)(e$,{},e)})})]})},eO=e=>{let{event:t}=e;return t.status.type===s.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)(a.EY,{h:"lg",lineHeight:"[16px]",textStyle:"body.small",color:"status.live",children:(0,l.jsx)(x.A,{id:"live"})})]}):(0,l.jsx)(a.EY,{h:"lg",textStyle:"body.small",children:(0,r.cK)(t.startTimestamp)?(0,l.jsx)(eT.ib,{value:1e3*t.startTimestamp}):(0,l.jsx)(eT.XU,{value:1e3*t.startTimestamp,...r.or.dateTime})})},eV=e=>{let{leftTeam:t,rightTeam:n,leftScore:r,rightScore:i}=(0,y.AR)(e.event),{event:d}=(0,y.mJ)(e.event.id),c=d||e.event,u=c.status.type===s.XUj.InProgress,x=(0,m.d4)(C.hB),{odds:p,markets:h,choiceNames:g,error:j}=(0,eL.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)(z.y$,{value:{event:c,leftTeam:t,rightTeam:n,leftScore:r,rightScore:i,location:z.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)(a.EY,{textStyle:"display.small",truncate:!0,children:(0,l.jsx)(eW,{})}),(0,l.jsx)(eO,{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)(eY,{event:c,cop:e,choiceNames:g,markets:p[t]||[]},e.provider.id):null})]}):null},eZ=()=>{let e=(0,m.d4)(C.hB),[t]=(0,A.Z)(null==e?void 0:e[0]),n=(0,m.d4)(S.hT),{featuredEvents:s,error:r}=(0,ei.HD)(n,t);return!r&&(null==s?void 0:s.length)?(0,l.jsxs)(p.Zp,{children:[(0,l.jsx)(p.Zp.Header,{titleId:"featured_odds",actionComponent:(0,l.jsx)(eF.V,{}),variant:"left-aligned"}),s.slice(0,2).map(e=>(0,l.jsx)(eV,{event:e},e.id)),(0,l.jsx)(o.so,{borderTop:"1px solid {colors.neutrals.nLv4}",py:"lg",justify:"center",children:(0,l.jsx)(eI.A,{provider:null==e?void 0:e[0]})})]}):null};var eH=n(95816),eJ=n.n(eH),eq=n(16503),eQ=n(4790);let eU=e=>{let{countryOddsProvider:t}=e,n=null==t?void 0:t.branded,s=(0,m.d4)(S.LQ);return n?(0,l.jsx)(a.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:z.cb.FeaturedOdds,provider:null==t?void 0:t.provider.slug,position:eR.ki.BookmakerButton}),children:(0,l.jsx)(a.$n,{children:(0,l.jsxs)(o.so,{align:"center",gap:"xs",children:[(0,l.jsx)(x.A,{id:"bet_now".concat("GR"===s?"_age":""),values:{age:21}}),(0,l.jsx)(g.A0k,{width:16,height:16,fill:"surface.s1"})]})})}):null},eX=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))})},eK=e=>{var t;let{event:n,markets:r,marketChoiceNames:i,hasManyMarkets:d}=e,c=n.status.type===s.XUj.InProgress,m=(0,k.Ae)(),{leftTeam:p,rightTeam:h}=(0,y.AR)(n),g=(0,y.g3)(n),{mediaBreakpoint:j}=(0,a.$c)(),v=ei.Yt[j]||ei.Yt.default;if(!r)return null;let f=r.filter(e=>v.includes(e.marketId)),b=f.filter(e=>e.isLive===c),w=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)(I.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)(a.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)(eT.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)(a.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:d&&p.nameCode?p.nameCode:(0,l.jsx)(ez.Rm,{team:p,short:!0})}),(0,l.jsx)(a.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:d&&h.nameCode?h.nameCode:(0,l.jsx)(ez.Rm,{team:h,short:!0})})]})]})})}),w.map(e=>{if(v.includes(e.marketId)){let t=[...i[e.marketId]||[]],s=(0,eB.nu)(e.choices,g);return t.length?(0,l.jsx)(u.Fragment,{children:t.map(t=>{let r=s.find(e=>e.name===t);return r?(0,l.jsx)(eD,{choice:r,betSlipLink:m&&(0,eB.Iz)(r,e,m),branded:null==m?void 0:m.branded,isLive:e.isLive,onClick:()=>(0,G.Fe)({id:n.id,category:e.marketName,location:z.cb.FeaturedOdds,provider:null==m?void 0:m.provider.slug,position:eR.ki.OddsValue,type:eR.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)(eX,{},"empty")}return null}),-1===r.findIndex(e=>2===e.marketId)&&!!i[2]&&(0,l.jsx)(eX,{length:null==(t=i[2])?void 0:t.size})]})};var e0=n(61924);let e1=()=>{let e=(0,k.Ae)(),t=(0,eQ.s)(null==e?void 0:e.impressionCostEncrypted),[n]=(0,A.Z)(e),r=(0,m.d4)(S.hT),{mediaBreakpoint:i}=(0,a.$c)(),d=(0,eq.e)(async()=>{(0,G.CH)({provider:null==e?void 0:e.provider.slug,location:z.cb.FeaturedOdds,value:await t})},{intersectionOptions:{rootMargin:"-20px"},deps:[r]}),{featuredEvents:c,error:u}=(0,ei.HD)(r,n),{data:x,error:h}=(0,w.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=>s.nk6.fetchAllEventOdds(e,t)))},refreshInterval:2e4}),g=ei.Yt[i]||ei.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=>ei.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)(e0.A,{});if(eJ()(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)(eU,{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)(a.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)(eK,{event:e,markets:x[t].markets,marketChoiceNames:j,hasManyMarkets:v>5},e.id))})]}),(0,l.jsx)(z.y$,{value:{location:z.cb.FeaturedOdds},children:(0,l.jsxs)(o.so,{justify:"space-between",align:"center",px:"lg",pt:"sm",pb:"lg",children:[(0,l.jsx)(eI.A,{provider:e}),(0,l.jsx)(eM.$,{provider:e})]})})]})]})},e2=()=>{let e=(0,m.d4)(C.BF),t=(0,m.d4)(C.fq);return e?null:t?(0,l.jsx)(eZ,{}):(0,l.jsx)(e1,{})};var e4=n(45586),e6=n(29347),e3=n(10292),e5=n(17152),e7=n(78259),e9=n(14868),e8=n(74610),te=n(66331),tt=n(96861),tn=n(37632),tl=n(40341);let ts=e=>{let{player:t,index:n,onClick:s,isFootball:r}=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:()=>s(t.event,t.player),pl:"sm",pr:"lg",align:"center",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,l.jsx)(a.EY,{textStyle:"body.small",children:n}),(0,l.jsxs)(o.az,{position:"relative",ml:"md",children:[(0,l.jsx)(e7.tg,{id:t.player.id,name:t.player.name,size:40}),(0,l.jsx)(e7.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)(a.EY,{textStyle:"body.medium",truncate:!0,mb:"xs",children:(0,l.jsx)(eg.c,{entity:t.player})}),(0,l.jsxs)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:[(0,l.jsx)(eg.c,{entity:d,short:!0})," ".concat(i?"@":"vs."," "),(0,l.jsx)(eg.c,{entity:c,short:!0})]})]}),(0,l.jsx)(o.az,{flexShrink:0,children:r?(0,l.jsx)(e7.GW,{rating:Number(t.rating)}):(0,l.jsx)(a.EY,{textStyle:"body.medium",children:t.points})})]})]})};function tr(e){let{topPlayers:t,heatmap:n,isFetchingHeatmap:r,sport:a,shotmap:i}=e,{openEventPlayerStatistics:d}=(0,te.d)(),[c,x]=(0,u.useState)(!1),m=(0,u.useCallback)(()=>x(e=>!e),[]),h=a===s.QCR.Football,g=a===s.QCR.Basketball,j=(e,t)=>{d({event:e,player:t},tt._.TopPlayers)};if((0,u.useEffect)(()=>{x(!1)},[a]),!t)return null;let v=t.length>5;return(0,l.jsx)(e8.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)(ts,{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)(tn.A,{shotCoordinates:i,condensed:!0})}),h&&0===t&&n&&!r?(0,l.jsx)(o.az,{p:"sm",children:(0,l.jsx)(tl.GP,{containerId:"heatmap-".concat(e.player.id),dataPoints:n.heatmap,direction:e.team.id===e.event.awayTeam.id?"left":"right"})}):0===t&&r&&h?(0,l.jsx)(o.az,{h:"[260px]"}):null]},e.player.id)),c&&t.slice(5).map((e,t)=>(0,l.jsx)(ts,{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 ti(){var e,t,n;let r,a,i=(0,h.o)(),{data:o,error:d}=(0,w.Ay)(s.t3g.trendingTopPlayers(i)),c=i===s.QCR.Football,u=i===s.QCR.Basketball;o&&o.topPlayers.length&&(r=o.topPlayers[0].event.id,a=o.topPlayers[0].player.id);let{data:x,error:m}=(0,w.Ay)(c&&r&&a?s.bnp.playerHeatmap(r,a):null),{data:j}=(0,w.Ay)(u&&r&&a?s.bnp.playerShotmap(r,a):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:s.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)(e3.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 to=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(18881),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 td(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:w}=(0,a.$c)(),_=(0,m.d4)(S.LQ),k=(0,h.o)(),{event:C}=(0,y.mJ)(null!=f?f:void 0),A=k===s.QCR.Football||k===s.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,r.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}):w?null:f?(0,l.jsx)(o.az,{position:"sticky",top:"[120px]",children:(0,l.jsx)(to,{eventId:f,onClose:T,belowBreadcrumbs:!0})}):(0,l.jsxs)(l.Fragment,{children:[E.length>0?(0,l.jsx)(el.Or,{date:(0,r.UG)(t),tournaments:E}):(0,l.jsx)(et,{}),(0,l.jsx)(e4.w,{}),A&&(0,l.jsx)(ti,{}),(0,l.jsx)(eS,{sport:k}),(0,l.jsx)(e2,{}),(0,l.jsx)(es.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"!==_&&(0,l.jsx)(v.s,{})]})]}),d?(0,l.jsx)(ea._,{sport:k,category:d}):n===ei.Jx.BASE?(0,l.jsx)(ea.a,{}):null]})}},46071:(e,t,n)=>{n.d(t,{Y:()=>s,j:()=>r});var l=n(4967);function s(e,t,n,l){let s=e>0?l.slice(0,e).map(e=>e.id):[],r=t>0?l.slice(e,e+t).map(e=>e.id):[];return{userIds:{promoted:s,demoted:l.length>e+t&&n>0?l.slice(-l.length+e+t).map(e=>e.id):[],neutral:r}}}function r(e,t,n){let{days:s,hours:r,minutes:a,seconds:i}=(0,l.DU)(e,t),o=s>0?s+n.formatMessage({id:"days_short"}):"",d=r>0?r+n.formatMessage({id:"hours_short"}):"";return[o,d,(r>0||a>0)&&!s?a+n.formatMessage({id:"minutes_short"}):"",(a>0||i>0)&&!s&&!r?i+n.formatMessage({id:"seconds_short"}):""].filter(Boolean).join(" ")}},55112:(e,t,n)=>{n.d(t,{k:()=>o});var l=n(6029),s=n(21377),r=n(90248),a=n(45860),i=n(29742);let o=()=>{let e=(()=>{var e;let{data:t}=(0,a.Ay)(s.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),s=n(21377),r=n(73914),a=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,s.rjx.WhoWillWin),{totalVotes:w,isLoading:_}=(0,p.sr)(t,s.rjx.WhoWillWin),k=(0,p.E0)(t,b||v),{autoShowAd:C,canEditVote:A,grantReward:S,hasRevisitedChangeVote:T,setAutoShowAd:E}=(0,p.a8)(t,s.rjx.WhoWillWin,g,j,y),{isModalOpen:z,onChangeVote:W,onShowAd:P,setAdCanceled:I,setIsModalOpen:L,setShowLoader:F,showLoader:M}=(0,p.$d)(t.id,c.Mx.DesktopFeaturedMatch,C,T,s.rjx.WhoWillWin,()=>E(!1),()=>{S(),F(!1)},h,n);(0,i.useEffect)(()=>{z&&(null==n||n())},[z]);let R="change_vote"===k,B="voting_ended"===k;return(0,l.jsx)(d.WC,{variant:"square",children:(0,l.jsx)(d.Zp,{children:(0,l.jsxs)(a.so,{direction:"column",gap:"lg",p:"sm",children:[(0,l.jsxs)(a.so,{justify:"space-between",align:"center",children:[(0,l.jsxs)(a.BJ,{gap:"2xs",children:[(0,l.jsx)(r.EY,{textStyle:"display.medium",children:(0,l.jsx)(o.A,{id:"who_will_win"})}),_?(0,l.jsx)(a.az,{h:"lg"}):"vote"===k?(0,l.jsx)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,l.jsx)(o.A,{id:"change_vote_info_text"})}):R||B?(0,l.jsxs)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,l.jsx)(o.A,{id:"prediction_total_votes"}),": ",(0,m.A)(w)]}):null]}),R&&(A||T)?(0,l.jsx)(u.A,{onChangeVote:W,onChangeVoteClose:()=>{null==h||h(),L(!1)},onChangeVoteContinue:P,isModalOpen:z,isLoaderOpen:M,onLoaderExit:()=>{F(!1),I(!0)}}):B?(0,l.jsx)(r.EY,{textStyle:"display.small",color:"neutrals.nLv3",children:(0,l.jsx)(o.A,{id:"voting_ended_status"})}):null]}),(0,l.jsx)(a.az,{children:(0,l.jsx)(x.A,{config:f,voteType:s.rjx.WhoWillWin,enableVoteChange:g,eventVoteLocation:"featured_match"})})]})})})}},73045:(e,t,n)=>{n.d(t,{e:()=>s.e,l:()=>l.l});var l=n(37721),s=n(33480)},83035:(e,t,n)=>{n.d(t,{A:()=>j,h:()=>v});var l=n(6029),s=n(73045),r=n(73914),a=n(76356),i=n(90248),o=n(46222),d=n(18970),c=n(52466),u=n(79131),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)(a.az,{children:[(0,l.jsx)(o.Zp,{children:(0,l.jsxs)(a.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)(a.so,{justify:"space-between",align:"center",gap:"xs",children:[(0,l.jsxs)(a.so,{align:"center",pt:"sm",px:"lg",children:[n.tournament.uniqueTournament?(0,l.jsx)(s.e,{id:n.tournament.uniqueTournament.id,size:24}):(0,l.jsx)(s.l,{id:n.tournament.id,size:24}),(0,l.jsxs)(r.Ym,{textStyle:"assistive.default",color:"neutrals.nLv3",ml:"sm",display:"block",children:[(0,l.jsx)(u.m,{slug:n.tournament.category.slug,name:n.tournament.category.name,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)(a.so,{justify:"center",py:"lg",px:"lg",cursor:"pointer",children:[(0,l.jsx)(r.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:s,leftTeam:r,rightTeam:a,leftScore:i,rightScore:o}=(0,m.mJ)(t.id,{shouldRefresh:!0,event:t});return t?(0,l.jsx)(d.y$,{value:{event:t,leftTeam:r,rightTeam:a,leftScore:i,rightScore:o},children:(0,l.jsx)(j,{event:{...t,...s},...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")}}}]);