!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]="746d16f3-6001-413b-8b6b-3e63b0d074a8",e._sentryDebugIdIdentifier="sentry-dbid-746d16f3-6001-413b-8b6b-3e63b0d074a8")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47798],{10292:(e,t,l)=>{l.d(t,{t:()=>n.t});var n=l(91407)},13893:(e,t,l)=>{l.d(t,{V:()=>x});var n=l(6029),s=l(28349),r=l(76356),a=l(90248),i=l(46222),o=l(52466),d=l(64006),c=l(55112),u=l(95084);let x=e=>{let{location:t}=e;return(0,n.jsx)(d.N_,{routeKey:"user.weeklyChallenge",onClick:()=>{(0,u.Wk)({type:"weekly_challenge",location:t})},children:(0,n.jsx)(i.Zp,{children:(0,n.jsxs)(r.so,{gap:"md",py:"md",px:"sm",align:"center",justify:"space-between",children:[(0,n.jsx)(s._V,{h:"4xl",w:"[70px]",src:"/static/images/weekly-challenge/predictions-cta.svg",alt:"Weekly challenge trophies"}),(0,n.jsxs)(r.BJ,{gap:"xs",flexGrow:1,children:[(0,n.jsx)(s.EY,{textStyle:"display.medium",children:(0,n.jsx)(a.A,{id:"weekly_challenge"})}),(0,n.jsx)(s.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(c.k,{})})]}),(0,n.jsx)(s.K0,{variant:"clear",size:"primary",children:(0,n.jsx)(o.CCT,{})})]})})})}},15538:(e,t,l)=>{l.d(t,{J:()=>n});var n=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,l)=>{l.d(t,{D:()=>C});var n=l(6029),s=l(87827),r=l(21377),a=l(28349),i=l(62042),o=l(76356),d=l(55729),c=l(947),u=l(90248),x=l(52466),p=l(82536),m=l(31830),g=l(18970),h=l(15538),j=l(19991),v=l(99064),y=l(28446),f=l(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:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(v.so,{id:"#container",position:"relative",mx:"sm",mb:"xs",children:[_.map((e,t)=>(0,n.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,n.jsx)(b,{position:"absolute",top:"-2",ratingPosition:w(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,n.jsx)(v.so,{justify:"space-between",children:[..._,"10"].map(e=>(0,n.jsxs)(v.EY,{color:(0,j.Et)(e),font:"tab.secondary",children:[e,"sideBox"===l&&"10"!==e?"0":""]},e))})]})}var S=l(96688);let A=(0,i.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function C(e){let{type:t,rating:l=10,renderImage:i,children:j}=e,v=(0,c.A)(),[y,f]=(0,d.useState)(!1),{isDesktop:b}=(0,a.$c)(),_=(0,d.useContext)(g.Ws)===r.QCR.Football,w=(0,m.A)(),C=(0,S.y)(w),T="",P="box",z="sofascore_rating",E="";switch(t){case h.J.SpecificRatingPlayer:T="rating_general_text",E=[v.formatMessage({id:"rating_top_stats_general"}),v.formatMessage({id:"rating_top_stats_specific"})].join(" ");break;case h.J.AverageRatingTeam:T="average_team_rating_text",P="sideBox",E=[v.formatMessage({id:"rating_top_teams_general"}),v.formatMessage({id:"rating_top_teams_specific"})].join(" ");break;case h.J.AverageRating:T="average_team_rating_match",P="sideBox",z="average_sofascore_rating";break;case h.J.AverageRatingTeamLineups:T="average_team_rating_text",P="sideBox";break;case h.J.AverageRatingPlayer:T="average_player_rating_text",P="sideBox"}return(0,n.jsxs)(n.Fragment,{children:["function"==typeof j?(0,n.jsx)(n.Fragment,{children:j({isOpen:y,setIsOpen:f})}):null!=j?j:(0,n.jsx)(a.m_,{label:E,strategy:""!==E&&b?"hover":"controlled",isVisible:!1,children:(0,n.jsx)(a.K0,{mx:"xs",variant:"clear",onClick:()=>{f(!0)},children:(0,n.jsx)(x.G_L,{fill:"onSurface.nLv1"})})}),(0,n.jsxs)(p.A,{header:(0,n.jsx)(a.H3,{p:"lg",textStyle:"display.large",children:(0,n.jsx)(u.A,{id:z})}),isOpen:y,setIsOpen:f,footer:(0,n.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,n.jsx)(a.$n,{w:{base:"auto",mdDown:"100%"},onClick:()=>{f(!1)},variant:b?"clear":void 0,children:(0,n.jsx)(u.A,{id:"ok_got_it_button"})})}),children:[(0,n.jsxs)(o.az,{maxW:{md:"[320px]"},px:"lg",mb:_?void 0:{mdDown:"2xl"},children:[T&&(0,n.jsx)(u.A,{id:T,values:{break:e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),(0,n.jsx)("br",{})]})}}),(0,n.jsxs)(o.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,n.jsx)(o.az,{className:"sideBox"===P?A:void 0,children:(0,n.jsx)(s.G,{size:"xl",rating:l,format:P})}),null==i?void 0:i({size:40,ml:"lg"})]}),(0,n.jsx)(k,{rating:l,format:P})]}),_&&(0,n.jsx)(o.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,n.jsxs)(a.Mz,{display:"block",color:"primary.default",textStyle:"display.small",href:C,target:"_blank",onClick:()=>{f(!1)},children:[(0,n.jsx)(u.A,{id:"rating_learn_more_button"}),(0,n.jsx)(x.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})})]})]})}C.type=h.J},29742:(e,t,l)=>{l.d(t,{M:()=>o});var n=l(6029),s=l(4967),r=l(55729),a=l(947),i=l(46071);let o=e=>{let{hasChallengeEnded:t,challengeEndTime:l}=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]),!l)return null;let u=t?l+s.dp:l;return(0,n.jsx)(n.Fragment,{children:u{l.d(t,{S:()=>x});var n=l(21377),s=l(4967),r=l(55729),a=l(45860),i=l(7643),o=l(15341);let d=[n.wNW.Player,n.wNW.Team,n.wNW.Manager,"uniqueTournament",n.wNW.Referee,n.wNW.Venue,n.wNW.Event,n.wNW.Stage,n.wNW.UniqueStage],c=(e,t)=>{let{type:l}=e;return t.includes(l)},u=(e,t)=>{switch(t){case n.G$9.Teams:return"team"===e.type&&e.entity.type!==n.YVh.Person;case n.G$9.Events:return"event"===e.type;case n.G$9.UniqueTournaments:return"uniqueTournament"===e.type;case n.G$9.PlayerTeamPersons:return"team"===e.type&&e.entity.type===n.YVh.Person||"player"===e.type;case n.G$9.Referee:return"referee"===e.type;case n.G$9.Venue:return"venue"===e.type;case n.G$9.Manager:return"manager"===e.type;default:return!0}};function x(e){let t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.G$9.All,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,p=arguments.length>3?arguments[3]:void 0,m=arguments.length>4?arguments[4]:void 0,g=function(e){let{filter:t,lsKey:l}=e,[n,a]=(0,o.A)(l||"recent_search_results",[]),i=(0,r.useCallback)(e=>{let t=n.findIndex(t=>t.entity.id===e.entity.id&&t.type===e.type);if(t>-1){let l=[...n];l.splice(t,1),l.unshift(Object.assign(e,{timestamp:Date.now()})),a(l)}else a([Object.assign(e,{timestamp:Date.now()}),...n])},[n]),d=(0,r.useCallback)(e=>{a(n.filter(t=>t.entity.id!==e.entity.id||t.type!==e.type))},[n]),c=(0,r.useCallback)(()=>{a("all"===t?[]:n.filter(e=>!u(e,t)))},[n,t]);return(0,r.useEffect)(()=>{if(null==n?void 0:n.length){let e=Date.now(),t=n.filter(t=>e-t.timestamp<30*s.d_);t.length!==n.length&&a(t)}},[null==n?void 0:n.length]),{recents:n,addRecentSearch:i,removeRecentSearch:d,clearRecentSearches:c}}({filter:l,lsKey:m}),h=(t=g.recents,t.filter(e=>u(e,l))),{suggestions:j,areSuggestionsLoading:v}=function(e,t,l,r){let i=e===n.G$9.All?"default":e,{data:o,isLoading:d}=(0,a.Ay)(t?n.d9M.suggestions(i,r):null,{dedupingInterval:s.d_});return{suggestions:null==o?void 0:o.results.filter(e=>c(e,l)),areSuggestionsLoading:d}}(l,!!e&&h.length<10,x,p),y=function(e){let{filter:t,enabledEntities:l,sport:s}=e,[a,o]=(0,r.useState)(""),[d,u]=(0,r.useState)(),{size:x,setSize:p,isValidating:m}=(0,i.Ay)((e,l)=>l&&!l.results.length||a.length<2?null:n.d9M.results(t,encodeURIComponent(a),e,s),n.TtD,{onSuccess:e=>{u(null==e?void 0:e.reduce((e,t)=>[...e,...t.results],[]).filter(e=>c(e,l)))},onError:()=>{u([])}});return{results:d,isLoadingPage:m,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:()=>p(x+1),query:a,couldHaveMore:20*x===(null==d?void 0:d.length)}}({filter:l,enabledEntities:x,sport:p});return{...g,...y,isLoadingPage:y.isLoadingPage||v,recents:h,suggestions:null==j?void 0:j.filter(e=>!g.recents.some(t=>t.entity.id===e.entity.id&&t.type===e.type))}}},37632:(e,t,l)=>{l.d(t,{A:()=>y});var n=l(6029),s=l(21377),r=l(9127),a=l(41735);let i=({x:e,y:t})=>{let{colors:l}=(0,a.useTheme)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.m.circle,{fill:l.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,n.jsx)(r.m.circle,{fill:l.success.default,r:"4",animate:{cx:e,cy:t}})]})},o=({x:e,y:t})=>{let{colors:l}=(0,a.useTheme)(),s=e-3,i=e+3,o=t-3;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.m.circle,{fill:l.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,n.jsx)(r.m.path,{animate:{d:`M ${s},${o} l 6,6 M ${i},${o} l -6,6`},stroke:l.error.default,strokeWidth:"2"})]})},d=({shotCoordinates:e})=>(0,n.jsx)("g",{children:e.map((e,t)=>e.type===s.Dme.Made?(0,n.jsx)(i,{x:e.x,y:e.y},t):(0,n.jsx)(o,{x:e.x,y:e.y},t))});var c=l(67823),u=l(13369),x=l(11810);let p=({showLines:e=!0,showBackground:t=!0,showOverlay:l=!0,linesColor:s,backgroundColor:r,shotCoordinates:a})=>(0,n.jsxs)(c.A,{children:[t&&(0,n.jsx)(x.A,{courtColor:r,showDarkPaint:!0}),e&&(0,n.jsx)(u.A,{fill:s}),l&&(0,n.jsx)(d,{shotCoordinates:a})]});var m=l(28446),g=l(18130);let h=(0,m.A)().domain([-250,250]).range([0,g.f7]),j=(0,m.A)().domain([-51,411]).range([0,g.IV]);var v=l(99064);let y=e=>{let{shotCoordinates:t,condensed:l,...s}=e,{clampedShotActions:r}={clampedShotActions:t.map(e=>{let[t,l]=function(e){let t=h(e.x),l=j(e.y);return l>=g.IV-11&&(l=g.IV-8),t>=g.f7&&(t=g.f7-4),[t,l]}(e);return Object.assign(Object.assign({},e),{x:t,y:l})})};return(0,n.jsx)(v.az,{bg:"graphicsTerrain.basketball",p:"8px 48px",br:"lg",...s,children:(0,n.jsx)(v.az,{maxW:l?280:"100%",h:"100%",mx:"auto",children:(0,n.jsx)(p,{shotCoordinates:r})})})}},46071:(e,t,l)=>{l.d(t,{Y:()=>s,j:()=>r});var n=l(4967);function s(e,t,l,n){let s=e>0?n.slice(0,e).map(e=>e.id):[],r=t>0?n.slice(e,e+t).map(e=>e.id):[];return{userIds:{promoted:s,demoted:n.length>e+t&&l>0?n.slice(-n.length+e+t).map(e=>e.id):[],neutral:r}}}function r(e,t,l){let{days:s,hours:r,minutes:a,seconds:i}=(0,n.DU)(e,t),o=s>0?s+l.formatMessage({id:"days_short"}):"",d=r>0?r+l.formatMessage({id:"hours_short"}):"";return[o,d,(r>0||a>0)&&!s?a+l.formatMessage({id:"minutes_short"}):"",(a>0||i>0)&&!s&&!r?i+l.formatMessage({id:"seconds_short"}):""].filter(Boolean).join(" ")}},47798:(e,t,l)=>{l.r(t),l.d(t,{default:()=>eJ});var n=l(6029),s=l(21377),r=l(4967),a=l(28349),i=l(21501),o=l(76356),d=l(71024),c=l.n(d),u=l(55729),x=l(90248),p=l(494),m=l(46222),g=l(74664),h=l(52466),j=l(50486),v=l(55152),y=l(67087),f=l(45860),b=l(18970),_=l(1215),w=l(79724),k=l(54820),S=l(68789),A=l(37455),C=l(60682),T=l(95084),P=l(72753);let z=(e,t,l)=>{try{let n=JSON.parse(sessionStorage.getItem(t)||"[]")||[];(null==n?void 0:n.includes(e))||(n.push(e),(0,T.ke)({action:l,location:"main_page",type:"featured_match"}),sessionStorage.setItem(t,JSON.stringify(n)))}catch(e){console.error(e)}},E=()=>{var e;let t=(0,S.Ae)(),[l]=(0,C.Z)(t),r=(0,p.d4)(P.hT)||s.QCR.Football,{data:a}=(0,f.Ay)(l?s.npy.featuredSportEventsByTiers(l,r):null),i=null==a||null==(e=a.featuredEvents)?void 0:e[0],o=(0,p.d4)(i?(0,A.Ul)(i):()=>!0),d=(0,p.d4)(A.fq),c=(0,p.d4)(A.BF),x=(null==i?void 0:i.status.type)===s.XUj.InProgress;return((0,u.useEffect)(()=>{i&&z(i.id,"main.page.interacted.featured.events","impression")},[null==i?void 0:i.id]),a&&!i||c)?null:(0,n.jsx)(_.S,{isLoading:!i||!l,events:[i],onEventClick:e=>{e&&z(e.id,"main.page.clicked.featured.events","click")},hideEventTitle:!0,children:(o||d)&&(0,n.jsx)(b.y$.Provider,{value:{event:i,location:b.cb.FeaturedMatch},children:i?d?(0,n.jsx)(k.A,{eventId:i.id,isLive:x}):(0,n.jsx)(m.WC,{variant:"square",children:(0,n.jsx)(w.f9,{eventId:i.id,isLive:x})}):(0,n.jsx)(w.t1,{provider:t})})})};var I=l(24570),R=l(13893),L=l(18153),F=l(54365),G=l(47161),W=l(82536),Y=l(94008),B=l(67020),$=l(17390),M=l(53192),N=l(91407),D=l(91603),H=l(79131),O=l(94156),V=l(99064),Q=l(6813),Z=l(36982);let J=e=>{let{items:t,titleId:l,empty:r,onSelect:i}=e;return(null==t?void 0:t.length)?(0,n.jsxs)(o.az,{children:[l&&(0,n.jsx)(a.EY,{textStyle:"assistive.default",children:(0,n.jsx)(x.A,{id:l})}),t.map(e=>e.type===s.wNW.Player?(0,n.jsx)(B.b4,{player:e.entity,onPlayerClick:()=>{i(e)}},e.entity.id):e.type===s.wNW.Team?(0,n.jsx)(B.HM,{team:e.entity,onTeamClick:()=>{i(e)}},e.entity.id):null)]}):(0,n.jsx)(n.Fragment,{children:r})};function U(e){let{type:t,onSelect:l,sport:r}=e,{query:a,results:i,suggestions:d,onQueryChange:c,isLoadingPage:u}=(0,Z.S)(!0,t,"all"===t?[s.wNW.Team,s.wNW.Player]:void 0,r,"".concat(r,"_recent_compare_cta")),p=a&&a.length>2;return(0,n.jsx)(V.jT,{label:(0,n.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:V.Py.Sticky,itemWrapper:()=>(null==i?void 0:i.length)||!u?(0,n.jsx)(o.az,{p:"md",children:p?(0,n.jsx)(J,{items:i,onSelect:l,empty:(0,n.jsx)(Q.p,{graphic:"no-data",titleMessageId:"empty_search_title",descriptionMessageId:"no_events_found_body"})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(J,{titleId:"suggested",items:(e=>{if(!(null==e?void 0:e.length))return;let t=[],l=e.filter(e=>e.type===s.wNW.Team),n=e.filter(e=>e.type===s.wNW.Player),r=Math.max(l.length,n.length);for(let e=0;e{let{id:t,name:l,type:r,rotate:a}=e;switch(r){case s.G$9.PlayerTeamPersons:return(0,n.jsx)(N.t,{id:t,size:48,name:l});case s.G$9.Teams:return(0,n.jsx)(D.p,{id:t,size:48,name:l});default:return(0,n.jsx)(o.so,{minW:"4xl",h:"4xl",bg:"surface.s2",br:"50%",align:"center",justify:"center",children:(0,n.jsx)(h.S3t,{fill:"neutral.default",style:a?{transform:"rotate(180deg)"}:void 0})})}},q=e=>{let{country:t,reversed:l}=e;return(0,n.jsxs)(o.so,{align:"center",direction:l?"row-reverse":"row",gap:"xs",children:[(0,n.jsx)(M.w,{size:24,alpha2:null==t?void 0:t.alpha2,name:null==t?void 0:t.name}),(0,n.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,n.jsx)(H.m,{name:t.name,slug:t.slug}):"-"})]})},K=e=>{let{player:t,reversed:l}=e;return(0,n.jsxs)(o.so,{align:"center",direction:l?"row-reverse":"row",gap:"xs",children:[(0,n.jsx)(D.p,{id:t.team.id,size:24}),(0,n.jsx)(a.EY,{display:"block",textStyle:"assistive.default",lineHeight:1,truncate:!0,maxW:"[150px]",children:(0,n.jsx)(O.c,{entity:t.team})})]})};function ee(e){let{isFirst:t,selected:l,type:r,sport:i,onSelect:d}=e,c=null==l?void 0:l.entity,u=(null==l?void 0:l.type)===s.wNW.Player;return(0,n.jsxs)(o.so,{px:"lg",py:"sm",gap:"lg",align:"center",children:[(0,n.jsx)(X,{id:null==c?void 0:c.id,name:null==c?void 0:c.name,type:r,rotate:!t}),c?(0,n.jsxs)(o.so,{grow:1,justify:"space-between",align:"center",children:[(0,n.jsxs)(o.az,{children:[(0,n.jsx)(a.EY,{textStyle:"display.medium",truncate:!0,maxW:"[180px]",mt:"xs",children:(0,n.jsx)(O.c,{entity:c})}),!c.national&&!u&&(0,n.jsx)(q,{country:null==c?void 0:c.country}),u&&(0,n.jsx)(K,{player:c})]}),(0,n.jsx)(a.K0,{size:"primary",variant:"clear",onClick:()=>d(void 0),children:(0,n.jsx)(h.hRh,{})})]}):(0,n.jsx)(U,{type:r,onSelect:d,sport:i})]})}let et=()=>{let[e,t]=(0,u.useState)(!1);return(0,n.jsxs)(o.az,{position:"relative",children:[(0,n.jsx)(h.G_L,{fill:"onSurface.nLv1",cursor:"pointer",onClick:()=>t(!0)}),(0,n.jsx)(W.A,{isOpen:e,setIsOpen:t,header:"compare_stats",children:(0,n.jsx)(a.EY,{maxW:"[280px]",textStyle:"body.mediumParagraph",px:"lg",display:"block",children:(0,n.jsx)(x.A,{id:"explainer_compare_stats"})})})]})};function el(e){var t;let{sport:l}=e,[r,i]=(0,u.useState)(),[d,c]=(0,u.useState)(),p=r||d,g=(null==p?void 0:p.type)===s.wNW.Player||(null==p||null==(t=p.entity)?void 0:t.type)===s.YVh.Person?s.G$9.PlayerTeamPersons:(null==p?void 0:p.type)===s.wNW.Team?s.G$9.Teams:s.G$9.All,h=[];return((null==r?void 0:r.entity.id)&&h.push(r.entity.id),(null==d?void 0:d.entity.id)&&h.push(d.entity.id),(0,u.useEffect)(()=>{i(void 0),c(void 0)},[l]),$.G.includes(l))?(0,n.jsx)(B.V3,{persistKey:"".concat(l,"_recent_compare_cta"),children:(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{titleId:"compare_stats",actionComponent:(0,n.jsx)(et,{})}),(0,n.jsx)(ee,{type:g,selected:r,onSelect:i,sport:l,isFirst:!0}),(0,n.jsx)(o.az,{h:"[1px]",mx:"lg",my:"sm",bg:"neutrals.nLv4"}),(0,n.jsx)(ee,{type:g,selected:d,onSelect:c,sport:l}),(0,n.jsx)(o.so,{pt:"xs",pb:"md",justify:"center",align:"center",children:(0,n.jsx)(Y.A,{routeKey:"comparison",query:(0,B.k9)(h),params:{sport:l,entityType:g===s.G$9.Teams?"team":"player"},children:(0,n.jsx)(a.$n,{size:"secondary",variant:"filled",children:(0,n.jsx)(x.A,{id:"compare"})})})})]})}):null}var en=l(90510),es=l(41164),er=l(88505);let ea=()=>{let{event:e,leftTeam:t,rightTeam:l}=(0,u.useContext)(b.y$),r=(0,es.c5)(e),a=(0,y.g3)(),i=(0,n.jsx)(er.Rm,{team:t,short:r===s.QCR.Tennis}),o=(0,n.jsx)(er.Rm,{team:l,short:r===s.QCR.Tennis}),d="ar"===(0,p.d4)(P.JV);return(0,n.jsxs)(n.Fragment,{children:[d?o:i," ",r===s.QCR.MMA?"vs":d?"ضد":a?"@":"-"," ",d?i:o]})};var ei=l(88196),eo=l(79375),ed=l(73364),ec=l(21287),eu=l(74207),ex=l(64046),ep=l(8785),em=l(53148),eg=l(18862);let eh=e=>{let{choice:t,isLive:l,branded:s,betSlipLink:r,isComparison:i,onClick:d}=e,c=r&&s,u="fractional"===(0,p.d4)(A.$4),x=u?eg.Y:void 0,m=(0,n.jsxs)(o.so,{position:"relative",justify:"center",align:"center",bg:"surface.s2",br:"xs",border:i&&l?"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,n.jsx)(a.EY,{textStyle:"display.micro",color:l?"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,n.jsx)(eg.c,{fractionalValue:t.fractionalValue,children:x})}),(0,n.jsx)(em.I,{change:t.change})]});return c&&(m=(0,n.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:m})),m},ej=()=>(0,n.jsx)(o.az,{flexBasis:"4xl",minW:"4xl",h:"xl",flexGrow:1}),ev=e=>{let{event:t,cop:l,markets:s,choiceNames:r}=e,a=s.map(e=>e.choices).flat(),i=r.map(e=>a.find(t=>t.name===e));return(0,n.jsxs)(o.so,{p:"sm",gap:"xl",justify:"space-between",borderTop:"1px solid {colors.neutrals.nLv4}",align:"center",children:[(0,n.jsx)(eu.r,{selectedProvider:l,size:"64x24"}),(0,n.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,n.jsx)(eh,{choice:a,betSlipLink:l&&(0,ep.Iz)(a,o,l),branded:null==l?void 0:l.branded,isLive:o.isLive,isComparison:!0,onClick:()=>(0,T.Fe)({id:t.id,category:o.marketName,location:b.cb.FeaturedOdds,provider:null==l?void 0:l.provider.slug,position:ex.ki.OddsValue,type:ex.jF.Featured})},"".concat(e,"-").concat(o.id)):(0,n.jsx)(ej,{},e)})})]})},ey=e=>{let{event:t}=e;return t.status.type===s.XUj.InProgress?(0,n.jsxs)(o.so,{h:"100%",align:"center",gap:"xs",children:[(0,n.jsx)(o.az,{h:"sm",w:"sm",br:"50%",bg:"status.live"}),(0,n.jsx)(a.EY,{h:"lg",lineHeight:"[16px]",textStyle:"body.small",color:"status.live",children:(0,n.jsx)(x.A,{id:"live"})})]}):(0,n.jsx)(a.EY,{h:"lg",textStyle:"body.small",children:(0,r.cK)(t.startTimestamp)?(0,n.jsx)(en.ib,{value:1e3*t.startTimestamp}):(0,n.jsx)(en.XU,{value:1e3*t.startTimestamp,...r.or.dateTime})})},ef=e=>{let{leftTeam:t,rightTeam:l,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,p.d4)(A.hB),{odds:m,markets:g,choiceNames:h,error:j}=(0,ed.B)(x||[],e.event.id,u);return!j&&(null==g?void 0:g.length)&&m&&(null==h?void 0:h.length)!==0?(0,n.jsxs)(b.y$.Provider,{value:{event:c,leftTeam:t,rightTeam:l,leftScore:r,rightScore:i,location:b.cb.FeaturedOdds},children:[(0,n.jsx)(ei.A,{event:c,children:(0,n.jsxs)(o.so,{pt:"lg",pb:"sm",px:"lg",justify:"space-between",children:[(0,n.jsx)(a.EY,{textStyle:"display.small",truncate:!0,children:(0,n.jsx)(ea,{})}),(0,n.jsx)(ey,{event:c})]})}),(0,n.jsxs)(o.so,{justify:"flex-end",gap:"xl",p:"sm",children:[(0,n.jsx)(o.az,{w:"6xl"}),(0,n.jsx)(o.so,{flexGrow:1,gap:"sm",children:h.map(e=>(0,n.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 l=m[t];return(null==l?void 0:l.length)?(0,n.jsx)(ev,{event:c,cop:e,choiceNames:h,markets:m[t]||[]},e.provider.id):null})]}):null},eb=()=>{let e=(0,p.d4)(A.hB),[t]=(0,C.Z)(null==e?void 0:e[0]),l=(0,p.d4)(P.hT),{featuredEvents:s,error:r}=(0,G.HD)(l,t);return!r&&(null==s?void 0:s.length)?(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{titleId:"featured_odds",actionComponent:(0,n.jsx)(ec.V,{}),variant:"left-aligned"}),s.slice(0,2).map(e=>(0,n.jsx)(ef,{event:e},e.id)),(0,n.jsx)(o.so,{borderTop:"1px solid {colors.neutrals.nLv4}",py:"lg",justify:"center",children:(0,n.jsx)(eo.A,{provider:null==e?void 0:e[0]})})]}):null};var e_=l(95816),ew=l.n(e_),ek=l(23176),eS=l(4790);let eA=e=>{let{countryOddsProvider:t}=e,l=null==t?void 0:t.branded,s=(0,p.d4)(P.LQ);return l?(0,n.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,T.Fe)({location:b.cb.FeaturedOdds,provider:null==t?void 0:t.provider.slug,position:ex.ki.BookmakerButton}),children:(0,n.jsx)(a.$n,{children:(0,n.jsxs)(o.so,{align:"center",gap:"xs",children:[(0,n.jsx)(x.A,{id:"bet_now".concat("GR"===s?"_age":""),values:{age:21}}),(0,n.jsx)(h.A0k,{width:16,height:16,fill:"surface.s1"})]})})}):null};var eC=l(64006);let eT=e=>{let{length:t=3}=e;return(0,n.jsx)(n.Fragment,{children:Array.from({length:t}).map((e,t)=>(0,n.jsx)(o.az,{w:"[52px]",flexGrow:0,flexShrink:0,flexBasis:"[52px]"},t))})},eP=e=>{var t;let{event:l,markets:r,marketChoiceNames:i,hasManyMarkets:d}=e,c=l.status.type===s.XUj.InProgress,p=(0,S.Ae)(),{leftTeam:m,rightTeam:g}=(0,y.AR)(l),h=(0,y.g3)(l),{mediaBreakpoint:j}=(0,a.$c)(),v=G.Yt[j]||G.Yt.default;if(!r)return null;let f=r.filter(e=>v.includes(e.marketId)),_=f.filter(e=>e.isLive===c),w=f.filter(e=>e.isLive===c||!_.find(t=>t.marketId===e.marketId));return(0,n.jsxs)(o.so,{align:"center",py:"xs",borderBottom:"1px solid {colors.neutrals.nLv4}",gap:"xs",children:[(0,n.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"[100px]",overflow:"hidden",maxW:"100%",children:(0,n.jsx)(eC.tj,{event:l,children:(0,n.jsxs)(o.so,{align:"center",gap:"xs",br:"xs",children:[(0,n.jsx)(o.az,{flexGrow:0,flexShrink:1,flexBasis:"[36px]",children:(0,n.jsx)(a.EY,{textStyle:"body.small",mr:"xs",w:"2xl",textAlign:"center",display:"block",color:c?"status.live":"neutrals.nLv1",children:c?(0,n.jsx)(x.A,{id:"live"}):(0,n.jsx)(en.ib,{value:1e3*l.startTimestamp})})}),(0,n.jsx)(o.az,{w:"[1px]",h:"[36px]",bg:"neutrals.nLv4"}),(0,n.jsxs)(o.so,{direction:"column",flexGrow:1,flexShrink:1,flexBasis:"6xl",overflow:"hidden",children:[(0,n.jsx)(a.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:d&&m.nameCode?m.nameCode:(0,n.jsx)(er.Rm,{team:m,short:!0})}),(0,n.jsx)(a.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:d&&g.nameCode?g.nameCode:(0,n.jsx)(er.Rm,{team:g,short:!0})})]})]})})}),w.map(e=>{if(v.includes(e.marketId)){let t=[...i[e.marketId]||[]],s=(0,ep.nu)(e.choices,h);return t.length?(0,n.jsx)(u.Fragment,{children:t.map(t=>{let r=s.find(e=>e.name===t);return r?(0,n.jsx)(eh,{choice:r,betSlipLink:p&&(0,ep.Iz)(r,e,p),branded:null==p?void 0:p.branded,isLive:e.isLive,onClick:()=>(0,T.Fe)({id:l.id,category:e.marketName,location:b.cb.FeaturedOdds,provider:null==p?void 0:p.provider.slug,position:ex.ki.OddsValue,type:ex.jF.Featured})},"".concat(t,"-").concat(e.id)):(0,n.jsx)(o.az,{w:"[52px]",flexGrow:0,flexShrink:0,flexBasis:"[52px]"},"".concat(t,"-").concat(e.id))})},e.id):(0,n.jsx)(eT,{},"empty")}return null}),-1===r.findIndex(e=>2===e.marketId)&&!!i[2]&&(0,n.jsx)(eT,{length:null==(t=i[2])?void 0:t.size})]})};var ez=l(61924);let eE=()=>{let e=(0,S.Ae)(),t=(0,eS.s)(null==e?void 0:e.impressionCostEncrypted),[l]=(0,C.Z)(e),r=(0,p.d4)(P.hT),{mediaBreakpoint:i}=(0,a.$c)(),d=(0,ek.e)(async()=>{(0,T.CH)({provider:null==e?void 0:e.provider.slug,location:b.cb.FeaturedOdds,value:await t})},{intersectionOptions:{rootMargin:"-20px"},deps:[r]}),{featuredEvents:c,error:u}=(0,G.HD)(r,l),{data:x,error:g}=(0,f.Ay)((null==c?void 0:c.length)&&l?[l,c.map(e=>e.id),"FEATURED_ODDS"]:null,{fetcher:e=>{let[t,l]=e;return Promise.all(l.map(e=>s.nk6.fetchAllEventOdds(e,t)))},refreshInterval:2e4}),h=G.Yt[i]||G.Yt.default,j=null==x?void 0:x.reduce((e,t)=>{var l;return null==(l=t.markets)||l.forEach(t=>{h.includes(t.marketId)&&t.choices.every(e=>G.Vj.includes(e.name))&&(e[t.marketId]?t.choices.forEach(l=>e[t.marketId].add(l.name)):e[t.marketId]=new Set(t.choices.map(e=>e.name)))}),e},{});if(u||g||!e||!(null==c?void 0:c.length))return null;if(!c||!x)return(0,n.jsx)(ez.A,{});if(ew()(j))return null;let v=0;return h.forEach(e=>j[e]&&[...j[e]].forEach(()=>v+=1)),(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{titleId:"featured_odds",actionComponent:(0,n.jsx)(eA,{countryOddsProvider:e}),variant:"left-aligned"}),(0,n.jsxs)(o.az,{position:"relative",children:[(0,n.jsxs)(o.az,{px:"sm",children:[(0,n.jsx)(o.so,{align:"flex-end",justify:"flex-end",borderBottom:"1px solid {colors.neutrals.nLv4}",pb:"xs",gap:"xs",h:"2xl",mt:"md",children:h.map(e=>j[e]&&[...j[e]].map(e=>(0,n.jsx)(a.EY,{display:"block",textStyle:"assistive.default",w:"[52px]",textAlign:"center",color:"neutrals.nLv3",style:{flex:"0 0 52px"},children:e},e)))}),(0,n.jsx)("div",{ref:d,children:c.map((e,t)=>(0,n.jsx)(eP,{event:e,markets:x[t].markets,marketChoiceNames:j,hasManyMarkets:v>5},e.id))})]}),(0,n.jsx)(b.y$.Provider,{value:{location:b.cb.FeaturedOdds},children:(0,n.jsxs)(o.so,{justify:"space-between",align:"center",px:"lg",pt:"sm",pb:"lg",children:[(0,n.jsx)(eo.A,{provider:e}),(0,n.jsx)(eu.$,{provider:e})]})})]})]})},eI=()=>{let e=(0,p.d4)(A.BF),t=(0,p.d4)(A.fq);return e?null:t?(0,n.jsx)(eb,{}):(0,n.jsx)(eE,{})};var eR=l(45586),eL=l(29347),eF=l(10292),eG=l(17152),eW=l(78259),eY=l(14868),eB=l(74610),e$=l(66331),eM=l(96861),eN=l(37632),eD=l(40341);let eH=e=>{let{player:t,index:l,onClick:s,isFootball:r}=e,i=(0,y.g3)(t.event),[d,c]=(0,y.jr)(t.event,"homeTeam","awayTeam",t.event);return(0,n.jsxs)(o.so,{onClick:()=>s(t.event,t.player),pl:"sm",pr:"lg",align:"center",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,n.jsx)(a.EY,{textStyle:"body.small",children:l}),(0,n.jsxs)(o.az,{position:"relative",ml:"md",children:[(0,n.jsx)(eW.tg,{id:t.player.id,name:t.player.name,size:40}),(0,n.jsx)(eW.pY,{size:21,id:t.team.id,name:t.team.name,style:{position:"absolute",bottom:0,right:-8}})]}),(0,n.jsxs)(o.so,{justify:"space-between",align:"center",flexGrow:1,overflow:"hidden",children:[(0,n.jsxs)(o.so,{direction:"column",justify:"center",ml:"lg",mr:"sm",h:"5xl",overflow:"hidden",children:[(0,n.jsx)(a.EY,{textStyle:"body.medium",truncate:!0,mb:"xs",children:(0,n.jsx)(O.c,{entity:t.player})}),(0,n.jsxs)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:[(0,n.jsx)(O.c,{entity:d,short:!0})," ".concat(i?"@":"vs."," "),(0,n.jsx)(O.c,{entity:c,short:!0})]})]}),(0,n.jsx)(o.az,{flexShrink:0,children:r?(0,n.jsx)(eW.GW,{rating:Number(t.rating)}):(0,n.jsx)(a.EY,{textStyle:"body.medium",children:t.points})})]})]})};function eO(e){let{topPlayers:t,heatmap:l,isFetchingHeatmap:r,sport:a,shotmap:i}=e,{openEventPlayerStatistics:d}=(0,e$.d)(),[c,x]=(0,u.useState)(!1),p=(0,u.useCallback)(()=>x(e=>!e),[]),g=a===s.QCR.Football,h=a===s.QCR.Basketball,j=(e,t)=>{d({event:e,player:t},eM._.TopPlayers)};if((0,u.useEffect)(()=>{x(!1)},[a]),!t)return null;let v=t.length>5;return(0,n.jsx)(eB.t,{tag:"TopPlayersList",children:(0,n.jsxs)(o.az,{children:[t.slice(0,5).map((e,t)=>(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(eH,{isFootball:g,player:e,index:t+1,onClick:j},e.player.id),h&&i&&0===t&&(0,n.jsx)(o.az,{p:"sm",children:(0,n.jsx)(eN.A,{shotCoordinates:i,condensed:!0})}),g&&0===t&&l&&!r?(0,n.jsx)(o.az,{p:"sm",children:(0,n.jsx)(eD.GP,{containerId:"heatmap-".concat(e.player.id),dataPoints:l.heatmap,direction:e.team.id===e.event.awayTeam.id?"left":"right"})}):0===t&&r&&g?(0,n.jsx)(o.az,{h:"[260px]"}):null]},e.player.id)),c&&t.slice(5).map((e,t)=>(0,n.jsx)(eH,{isFootball:g,player:e,index:5+t+1,onClick:j},e.player.id)),(0,n.jsx)(m.Zp.Footer,{ctaParams:v?{messageId:c?"show_less":"show_more",icon:c?eY.X.Up:eY.X.Down,onClick:p}:void 0})]})})}var eV=l(25262);function eQ(){var e,t,l;let r,a,i=(0,g.o)(),{data:o,error:d}=(0,f.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:p}=(0,f.Ay)(c&&r&&a?s.bnp.playerHeatmap(r,a):null),{data:j}=(0,f.Ay)(u&&r&&a?s.bnp.playerShotmap(r,a):null);return d?null:o?(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{titleId:"top_players",values:{gender:null!=(l=null==(e=o.topPlayers[0].player.team)?void 0:e.gender)?l:s.YT8.Male},actionComponent:c&&(0,n.jsx)(eG.D,{type:eG.D.type.SpecificRatingPlayer,rating:null==o||null==(t=o.topPlayers[0])?void 0:t.rating,renderImage:e=>{var t;return(0,n.jsx)(eF.t,{id:null==o||null==(t=o.topPlayers[0])?void 0:t.player.id,...e})},children:e=>{let{setIsOpen:t}=e;return(0,n.jsx)(h.G_L,{fill:"onSurface.nLv1",onClick:()=>t(!0),cursor:"pointer"})}})}),(0,n.jsx)(eO,{sport:i,heatmap:x,shotmap:null==j?void 0:j.shotmap,topPlayers:o.topPlayers,isFetchingHeatmap:!x&&!p&&c})]}):(0,n.jsx)(eV.A,{})}let eZ=c()(()=>Promise.all([l.e(89552),l.e(92970),l.e(81826),l.e(69753),l.e(72889),l.e(11045),l.e(28105),l.e(86795),l.e(42526),l.e(94989),l.e(19288),l.e(77262)]).then(l.bind(l,59625)),{loadableGenerated:{webpack:()=>[59625]},loading:()=>(0,n.jsx)(m.Zp,{children:(0,n.jsx)(o.az,{h:"[calc(100vh - 168px)]"})})});function eJ(e){let{date:t,listType:l,category:d}=e,c=(0,p.wA)(),f=(0,p.d4)(e=>e.uicontrols.activeWidgetEvent),b=(0,i.hX)(),{isMobile:_}=(0,a.$c)(),w=(0,p.d4)(P.LQ),k=(0,g.o)(),{event:S}=(0,y.mJ)(null!=f?f:void 0),A=k===s.QCR.Football||k===s.QCR.Basketball,C=(0,u.useCallback)((e,t,l)=>{l||(e.preventDefault(),f===t?c((0,L.VX)(null)):c((0,L.VX)(t||null)))},[f]);(0,u.useEffect)(()=>{let e=document.getElementsByClassName("js-list-cell-target");for(let t=0;t{if(!S)return;let e=void 0===d||S.tournament.category.slug===d,l=S.tournament.category.sport.slug===k,n=(0,r.yk)(t.getTime(),S.startTimestamp);if(!e||!l||!n)return void c((0,L.VX)(null))},[S,k,t,d]),b)?(0,n.jsx)(eL.A,{date:t,listType:l,category:d}):_?null:f?(0,n.jsx)(o.az,{position:"sticky",top:"[120px]",children:(0,n.jsx)(eZ,{eventId:f,onClose:C,belowBreadcrumbs:!0})}):(0,n.jsxs)(n.Fragment,{children:[T.length>0?(0,n.jsx)(I.Or,{date:(0,r.UG)(t),tournaments:T}):(0,n.jsx)(E,{}),(0,n.jsx)(eR.w,{}),A&&(0,n.jsx)(eQ,{}),(0,n.jsx)(el,{sport:k}),(0,n.jsx)(eI,{}),(0,n.jsx)(R.V,{location:"main_screen"}),(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{title:(0,n.jsxs)(o.so,{gap:"md",align:"center",children:[(0,n.jsx)(h.HZJ,{fill:"primary.default"}),(0,n.jsx)(x.A,{id:"banner_header_text"})]})}),(0,n.jsxs)(m.BU,{children:[(0,n.jsx)(j.k,{}),"BR"!==w&&(0,n.jsx)(v.s,{})]})]}),d?(0,n.jsx)(F._,{sport:k,category:d}):l===G.Jx.BASE?(0,n.jsx)(F.a,{}):null]})}},55112:(e,t,l)=>{l.d(t,{k:()=>o});var n=l(6029),s=l(21377),r=l(90248),a=l(45860),i=l(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 l=new Date().getTime(),n=(null==(e=t.meta)?void 0:e.endDateTimestamp)*1e3;return{hasEnded:n{l.d(t,{b4:()=>m,V3:()=>i,HM:()=>y,k9:()=>d,HI:()=>o});var n=l(6029),s=l(55729),r=l(15341);let a=(0,s.createContext)(void 0),i=e=>{let{children:t,persistKey:l}=e,[s,i]=(0,r.A)(l,[]);return(0,n.jsx)(a.Provider,{value:{recentlySelected:s,setRecentlySelected:i},children:t})},o=()=>{let e=(0,s.useContext)(a);if(void 0===e)throw Error("useRecentSearch must be used within a RecentSearchesProvider");return{recentlySelected:e.recentlySelected,addToRecentlySelected:t=>{let l=e.recentlySelected.filter(e=>e.id!==t.id).slice(0,4),n=[t,...l];e.setRecentlySelected(n)},removeFromRecentlySelected:t=>{let l=e.recentlySelected.filter(e=>e.id!==t.id);e.setRecentlySelected(l)}}};function d(e,t,l,n){return e.length?e.length===(null==l?void 0:l.length)&&e.length===(null==t?void 0:t.length)&&e.length===(null==n?void 0:n.length)?{ids:e.map(e=>null!=e?e:"_").join(","),ut_ids:null==l?void 0:l.map(e=>null!=e?e:"_").join(","),s_ids:null==t?void 0:t.map(e=>null!=e?e:"_").join(","),s_types:null==n?void 0:n.map(e=>null!=e?e:"_").join(",")}:{ids:e.map(e=>null!=e?e:"_").join(",")}:{}}var c=l(94446),u=l(99064),x=l(52466),p=l(94156);let m=e=>{let{player:t,onPlayerClick:l,onRemoveClick:s}=e;return(0,n.jsxs)(u.so,{onClick:()=>l(t),h:"56px",align:"center",cursor:"pointer",children:[(0,n.jsx)(c.t,{id:t.id,name:t.name,size:40,grayscale:t.deceased}),(0,n.jsxs)(u.so,{direction:"column",justify:"center",h:"100%",gap:"xs",grow:1,pl:"sm",children:[(0,n.jsx)(u.EY,{font:"body.medium",color:"onSurface.nLv1",ellipsis:!0,maxW:["250px","130px"],children:(0,n.jsx)(p.c,{entity:t})}),(0,n.jsxs)(u.so,{align:"center",gap:"sm",children:[(0,n.jsx)(c.p,{id:t.team.id,size:16}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,ellipsis:!0,maxW:["300px","120px"],children:(0,n.jsx)(p.c,{entity:t.team})})]})]}),void 0!==s&&(0,n.jsx)(u.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==s||s(t)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,n.jsx)(x.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})};var g=l(49519),h=l(21377),j=l(79131),v=l(88505);let y=e=>{var t,l,s,r,a,i,o,d,c;let{team:p,onTeamClick:m,onRemoveClick:y}=e,f=(null==(t=p.sport)?void 0:t.slug)===h.QCR.Tennis;return(0,n.jsxs)(u.so,{gap:"sm",onClick:()=>m(p),align:"center",cursor:"pointer",py:"sm",children:[(0,n.jsx)(g.p,{id:p.id,name:p.name,size:40}),(0,n.jsxs)(u.so,{direction:"column",gap:"xs",grow:1,children:[(0,n.jsx)(u.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,n.jsx)(v.Rm,{team:p,showFemaleSuffix:p.gender===h.YT8.Female&&!f})}),!p.national&&(null==(l=p.country)?void 0:l.slug)&&(null==(s=p.country)?void 0:s.name)&&!f&&(0,n.jsxs)(u.so,{align:"center",gap:"sm",children:[(0,n.jsx)(g.w,{size:16,alpha2:null==(r=p.country)?void 0:r.alpha2,name:null==(a=p.country)?void 0:a.name}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,n.jsx)(j.m,{slug:p.country.slug,name:p.country.name})})]}),f&&p.country&&p.country.name&&(0,n.jsxs)(u.so,{align:"center",gap:"xs",children:[(0,n.jsx)(g.w,{size:16,alpha2:null==(i=p.country)?void 0:i.alpha2,name:null==(o=p.country)?void 0:o.name}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,n.jsx)(j.m,{name:p.country.name,slug:null!=(c=null==(d=p.country)?void 0:d.slug)?c:p.country.name})})]})]}),void 0!==y&&(0,n.jsx)(u.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==y||y(p)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,n.jsx)(x.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})}},94446:(e,t,l)=>{l.d(t,{p:()=>s.p,t:()=>n.t});var n=l(91407),s=l(91603)},96688:(e,t,l)=>{l.d(t,{y:()=>n});function n(e){let t=(null==e?void 0:e.toLowerCase())||"",l=["hr","es","pt"].includes(t);return"https://corporate.sofascore.com".concat(l?"/".concat(t):"","/about/rating")}}}]);