!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]="05bbf716-8b44-463d-97c0-587bb946825a",e._sentryDebugIdIdentifier="sentry-dbid-05bbf716-8b44-463d-97c0-587bb946825a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2062],{7360:(e,t,n)=>{n.d(t,{g:()=>x});var i=n(6029),s=n(49519),a=n(21377),o=n(41249),r=n(55729),l=n(947),d=n(62859),c=n(54409),u=n(65078),h=n(94604),g=n(49031);function f(e){let{count:t}=e;return"number"!=typeof t||t<1?null:(0,i.jsxs)(o.az,{as:"bdi",children:[(0,i.jsx)(c.xK6,{width:"14",height:"14",fill:"error.default"}),t>1&&(0,i.jsxs)(o.EY,{color:"onSurface.nLv3",font:"body.small",style:{verticalAlign:"middle"},children:["x",t]})]})}function x(e){var t,n,c,x,p,m;let{isShort:y,style:v,entity:j}=e,w=(0,l.A)(),{event:S,leftTeam:C,rightTeam:b}=(0,r.useContext)(d.y$),[_,R]=(0,u.jr)(S,"homeRedCards","awayRedCards"),k=(0,u.gm)(S,"winnerCode"),L=S.status.type===a.XUj.Finished,T=k===a.Jfo.Left,I=k===a.Jfo.Right,P="onSurface.nLv1",A="onSurface.nLv1";(L||S.status.type===a.XUj.WillContinue)&&(P=T?"onSurface.nLv1":"onSurface.nLv3",A=I?"onSurface.nLv1":"onSurface.nLv3");let F=j===a.wNW.Manager||j===a.wNW.Player,E=(0,g.PZ)(S,w.formatMessage,w.locale),z=(0,i.jsx)(s.p,{size:16,id:C.id,name:C.name,isSmall:!0}),U=(0,i.jsx)(s.p,{size:16,id:b.id,name:b.name,isSmall:!0});return C.type===a.YVh.Person?z=(0,i.jsx)(s.w,{size:16,alpha2:null==(t=C.country)?void 0:t.alpha2,fallback:(0,i.jsx)(o._V,{src:"/static/images/placeholders/team.svg",width:"16",height:"16",alt:null==(n=C.country)?void 0:n.name}),name:null==(c=C.country)?void 0:c.name}):C.type===a.YVh.Double&&(z=null),b.type===a.YVh.Person?U=(0,i.jsx)(s.w,{size:16,alpha2:null==(x=b.country)?void 0:x.alpha2,fallback:(0,i.jsx)(o._V,{src:"/static/images/placeholders/team.svg",width:"16",height:"16",alt:null==(p=b.country)?void 0:p.name}),name:null==(m=b.country)?void 0:m.name}):b.type===a.YVh.Double&&(U=null),(0,i.jsxs)(o.az,{flex:"1 1 ".concat(y?"100px":"140px"),title:E,overflow:"hidden",minW:"0",style:v,children:[(0,i.jsxs)(o.so,{align:"center",mb:"xxs","data-testid":"left_team",children:[z&&(0,i.jsx)(o.az,{h:"16px",w:"16px",mr:"sm",children:z}),(0,i.jsxs)(o.EY,{font:"body.medium",as:"bdi",ellipsis:!0,color:P,lineHeight:"16px",children:[(0,i.jsx)(h.Rm,{team:C,short:!0}),F?null:(0,i.jsx)(f,{count:_})]})]}),(0,i.jsxs)(o.so,{align:"center","data-testid":"right_team",children:[U&&(0,i.jsx)(o.az,{h:"16px",w:"16px",mr:"sm",children:U}),(0,i.jsxs)(o.EY,{font:"body.medium",as:"bdi",ellipsis:!0,color:A,lineHeight:"16px",children:[(0,i.jsx)(h.Rm,{team:b,short:!0}),F?null:(0,i.jsx)(f,{count:R})]})]})]})}},18612:(e,t,n)=>{n.d(t,{D:()=>i.D});var i=n(43451)},22648:(e,t,n)=>{n.d(t,{a:()=>d});var i=n(6029),s=n(55729),a=n(41735);let o=e=>{let{color:t}=e,{colors:n}=(0,s.useContext)(a.ThemeContext);return(0,i.jsx)("svg",{viewBox:"0 0 56 56",children:(0,i.jsx)("path",{d:"M9.47324517,13.8136015 C10.2573717,12.7909571 11.7220489,12.5976002 12.7446933,13.3817267 C13.7673377,14.1658532 13.9606946,15.6305305 13.1765681,16.6531749 C10.6973758,19.886495 9.33333333,23.8365015 9.33333333,28 C9.33333333,38.3093153 17.6906847,46.6666667 28,46.6666667 C38.3093153,46.6666667 46.6666667,38.3093153 46.6666667,28 C46.6666667,17.6906847 38.3093153,9.33333333 28,9.33333333 C26.7113356,9.33333333 25.6666667,8.28866442 25.6666667,7 C25.6666667,5.71133558 26.7113356,4.66666667 28,4.66666667 C40.8866442,4.66666667 51.3333333,15.1133558 51.3333333,28 C51.3333333,40.8866442 40.8866442,51.3333333 28,51.3333333 C15.1133558,51.3333333 4.66666667,40.8866442 4.66666667,28 C4.66666667,22.8007218 6.37464497,17.8547427 9.47324517,13.8136015 Z",fill:t||n.onSurface.nLv1})})},r=(0,a.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),l={Loader:a.default.div.withConfig({componentId:"SpinnerLoader"}).withConfig({componentId:"sc-4a7d7921-0"})(["width:100%;padding:","px;text-align:center;z-index:1;"],e=>e.padding||4),LoaderInner:a.default.div.withConfig({componentId:"SpinnerLoaderInner"}).withConfig({componentId:"sc-4a7d7921-1"})(["display:inline-block;vertical-align:top;width:","px;height:","px;animation:"," 0.8s infinite ease-in-out;"],e=>e.size||24,e=>e.size||24,r)};function d(e){let{delay:t,...n}=e,[a,r]=(0,s.useState)(!t);return(0,s.useEffect)(()=>{let e;return t&&(e=window.setTimeout(()=>r(!0),t)),()=>clearTimeout(e)},[t]),a?(0,i.jsx)(l.Loader,{...n,children:(0,i.jsx)(l.LoaderInner,{...n,children:(0,i.jsx)(o,{color:n.spinnerColor})})}):null}},24313:(e,t,n)=>{n.d(t,{M:()=>s,l:()=>a});var i=n(55729);let s=(0,i.createContext)({}),a=()=>(0,i.useContext)(s);s.displayName="EventCellContext"},25745:(e,t,n)=>{n.d(t,{s:()=>i});async function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sofa365!Sofa365!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"qC9sJnXgvT3C";if(!e)return;let i=new TextEncoder,s=i.encode(t),a={name:"AES-GCM",iv:i.encode(n)},o=await crypto.subtle.importKey("raw",s,a,!1,["decrypt"]),r=new Uint8Array(Array.from(window.atob(e)).map(e=>e.charCodeAt(0)));try{let e=await crypto.subtle.decrypt(a,o,r);return new TextDecoder().decode(e)}catch(e){throw Error("Decrypt failed")}}},27372:(e,t,n)=>{n.d(t,{W:()=>a,X:()=>s});var i=n(56869);function s(e){return!e||!i.Hs.includes(e)}function a(e){var t;return e&&(null==(t=window.navigator.connection)?void 0:t.effectiveType)?"4g"===window.navigator.connection.effectiveType:!e}},28132:(e,t,n)=>{n.d(t,{H:()=>s,m:()=>i});var i=function(e){return e.EventWidget="event_widget",e.EventPage="event_page",e.FantasyCompetition="fantasy_competition",e.FavoritesPage="favorites_page",e.FightNight="fight_night",e.FighterPage="fighter_page",e.ManagerPage="manager_page",e.Organization="organization_page",e.PlayerPage="player_page",e.RefereePage="referee_page",e.StageSport="stage_sport_page",e.StageSportRace="stage_sport_race_page",e.StageSportTeam="stage_sport_team_page",e.TeamPage="team_page",e.TournamentPage="tournament_page",e.UniqueTournamentPage="unique_tournament_page",e.DroppingOddsPage="dropping_odds_page",e.FantasyLeague="fantasy_league",e.ProfilePage="profile_page",e.VenuePage="venue_page",e.MainPageAll="main_page_all",e.MainPageFavorites="main_page_favourites",e.ChallengePage="challenge_page",e}({}),s=function(e){return e.Summary="summary",e.Incidents="incidents",e.Details="details",e.Scorecard="scorecard",e.Overs="overs",e.BoxScore="box_score",e.Lineups="lineups",e.Statistics="statistics",e.Standings="standings",e.Graphs="graphs",e.Matches="matches",e.Odds="odds",e.FeaturedOdds="featured_odds",e.AdditionalOdds="additional_odds",e.Commentary="commentary",e.Games="games",e.Media="media",e.List="list",e.Editor="editor",e.Fights="fights",e.Info="info",e.Rankings="rankings",e.Race="race",e.Races="races",e.Squad="squad",e.TopPlayers="top_players",e.TopStats="top_stats",e.TopTeams="top_teams",e.Knockout="knockout",e.EarlyPrelims="early_prelims",e.MainCard="main_card",e.Other="other",e.Prelims="prelims",e.PlayByPlay="play_by_play",e.FantasyHome="fantasy_home",e.FantasyMyTeam="fantasy_my_team",e.FantasyFixtures="fantasy_fixtures",e.FantasyLeagues="fantasy_leagues",e.FantasyStatistics="fantasy_statistics",e.BetBoost="bet_boost",e.DroppingOdds="dropping_odds",e.WinningOdds="winning_odds",e.HighValueStreaks="high_value_streaks",e.Top20TeamStreaks="top_20_team_streaks",e.Top20H2H="top_20_h2h",e.PowerRankings="power_rankings",e.PlayerFantasy="player_fantasy",e.FantasyLeagueLeaderboard="fantasy_league_leaderboard",e.FantasyLeagueDetails="fantasy_league_details",e.FantasyLeagueSettings="fantasy_league_settings",e.Overview="overview",e.MyPredictions="my_predictions",e.Following="following",e.Contributions="contributions",e.Career="career",e.Season="season",e.PlayerStatistics="player_stats",e.All="all",e.Live="live",e.Finished="finished",e.Upcoming="upcoming",e.TodayMatches="today_matches",e.ChallengeCurrentWeek="current_week",e.ChallengePreviousWeek="previous_week",e.History="history",e}({})},36937:(e,t,n)=>{n.d(t,{$:()=>i.$,g:()=>s.g});var i=n(87473),s=n(7360)},49031:(e,t,n)=>{n.d(t,{J_:()=>m,PZ:()=>u,TF:()=>y,t3:()=>f});var i=n(6029),s=n(21377),a=n(41249),o=n(55729),r=n(54409),l=n(8703),d=n(27372),c=n(84942);function u(e,t,n){return t({id:"event.title"},{home:(0,c.s)(e.homeTeam,n),away:(0,c.s)(e.awayTeam,n)})}let h={[s.QCR.IceHockey]:{assists:e=>(0,i.jsx)(r.NcS,{icon:"ice-hockey",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,i.jsx)(r.CvR,{icon:"hockey-pak",width:e.width,height:e.height,fill:"secondary.default"})},[s.QCR.Handball]:{goals:e=>(0,i.jsx)(r.NcS,{icon:"handball",width:e.width,height:e.height,fill:"secondary.default"})},[s.QCR.Football]:{redCards:e=>(0,i.jsx)(r.CvR,{icon:"card-red",width:e.width,height:e.height,fill:"error.default"}),yellowRedCards:e=>(0,i.jsx)(r.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,i.jsx)(r.CvR,{icon:"card-yellow",width:e.width,height:e.height,fill:"scoreRating.s65"}),ownGoals:e=>(0,i.jsx)(r.NcS,{icon:"football-own-goal",width:e.width,height:e.height,fill:"error.default"}),assists:e=>(0,i.jsx)(r.NcS,{icon:"football-assist",width:e.width,height:e.height,fill:"secondary.default"}),penaltyGoals:e=>(0,i.jsx)(r.NcS,{icon:"football-penalty",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,i.jsx)(r.NcS,{icon:"football-ball",width:e.width,height:e.height,fill:"secondary.default"})},[s.QCR.AmericanFootball]:{kickingExtraMade:e=>(0,i.jsx)(r.CvR,{icon:"af-extra-point",width:e.width,height:e.height,fill:"secondary.default"}),kickingFgMade:e=>(0,i.jsx)(r.CvR,{icon:"af-field-goal",width:e.width,height:e.height,fill:"secondary.default"}),passingTouchdowns:e=>(0,i.jsx)(r.NcS,{icon:"af-passing-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),rushingTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),receivingTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),puntReturnsTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),puntingReturnTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),kickReturnsTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),fumbleTouchdownReturns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),defensiveInterceptionsTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"})},[s.QCR.Minifootball]:{redCards:e=>(0,i.jsx)(r.CvR,{icon:"card-red",width:e.width,height:e.height,fill:"error.default"}),yellowRedCards:e=>(0,i.jsx)(r.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,i.jsx)(r.CvR,{icon:"card-yellow",width:e.width,height:e.height,fill:"scoreRating.s65"}),ownGoals:e=>(0,i.jsx)(r.NcS,{icon:"football-own-goal",width:e.width,height:e.height,fill:"error.default"}),assists:e=>(0,i.jsx)(r.NcS,{icon:"football-assist",width:e.width,height:e.height,fill:"secondary.default"}),penaltyGoals:e=>(0,i.jsx)(r.NcS,{icon:"football-penalty",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,i.jsx)(r.NcS,{icon:"football-ball",width:e.width,height:e.height,fill:"secondary.default"}),accumulatedPenaltyGoals:e=>(0,i.jsx)(r.CvR,{icon:"accumulated-penalty",width:e.width,height:e.height,fill:"secondary.default"})}},g={rushingTouchdowns:1,receivingTouchdowns:1,puntReturnsTouchdowns:1,puntingReturnTouchdowns:1,kickReturnsTouchdowns:1,fumbleTouchdownReturns:1,defensiveInterceptionsTouchdowns:1},f=(e,t)=>{let n=[],l=h[e]||{};if(Object.keys(l).map(r=>{let d=l[r],c=t&&t[r];if(!c||r in g)return;if(e===s.QCR.Football&&"goals"===r){var u;if(!(c-=null!=(u=null==t?void 0:t.penaltyGoals)?u:0))return}if("yellowCards"===r&&((null==t?void 0:t.redCards)||(null==t?void 0:t.yellowRedCards)))return;let h=16;"yellowRedCards"===r&&(h=20);let f=c>1?c:"";n.push((0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(a.EY,{color:"secondary.default",ml:"sm",fontWeight:500,children:f}),(0,i.jsx)(d,{width:h,height:h,viewBox:"0 0 16 16"},"".concat(c,"-").concat(r))]},"".concat(c,"-").concat(r)))}),e===s.QCR.AmericanFootball){let e=Object.keys(g).map(e=>t&&t[e]?t[e]:0).reduce((e,t)=>e+t,0);e&&n.push((0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(a.EY,{color:"secondary.default",ml:"sm",fontWeight:500,children:e>1&&e}),(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:16,height:16,fill:"secondary.default"},"special")]},"".concat(e,"-af")))}return n},x=["sm","lg"],p=[s.QCR.IceHockey,s.QCR.Waterpolo,s.QCR.Floorball],m=(e,t,n)=>[s.sum.Penalties,s.sum.AP].includes(e.status.code)&&"number"==typeof t.penalties?x.includes(n)&&p.includes((0,l.c5)(e))?t.display:"".concat(t.display," (").concat(t.penalties,")"):t.display,y=(e,t)=>(e.status.type===s.XUj.NotStarted||e.status.type===s.XUj.InProgress)&&e.streamContentId&&!(0,d.X)(t)},49821:(e,t,n)=>{n.d(t,{fl:()=>u,jF:()=>c,kW:()=>g,ki:()=>h});var i=n(55729),s=n(494),a=n(62859),o=n(1815),r=n(76410),l=n(25745),d=n(2294),c=function(e){return e.Featured="featured",e.Additional="additional",e.Streaks="streaks",e.Compliance="compliance",e}({}),u=function(e){return e.BetBoostButton="bet_boost_button",e.AffiliateButton="affiliate_button",e}({}),h=function(e){return e.ProviderLogo="provider_logo",e.OddsValue="odds_value",e.BookmakerButton="bookmaker_button",e.AffiliateButton="affiliate_button",e}({});function g(e){let{event:t,location:n}=(0,i.useContext)(a.y$),c=e.location||n,h=(0,s.d4)(d.a5),g=e.countryOddsProvider||h,f=(0,l.s)(null==g?void 0:g.impressionCostEncrypted),x="compliance"===e.type||g&&t.status.type&&(e.marketName||e.isComparison),p=Object.values(u).find(t=>{var n,i;return!!(null==(i=e.activeCTA)||null==(n=i[t])?void 0:n.isActive)}),m=async()=>{"compliance"===e.type?(0,r.D5)({id:t.id,provider:null==g?void 0:g.provider.slug,status:t.status.type,location:c,value:await f}):g&&t.status.type&&(e.marketName||e.isComparison)&&(0,r.CH)({id:t.id,provider:null==g?void 0:g.provider.slug,category:e.marketName,status:t.status.type,location:c,value:await f,is_active:!!p,type:p})},y=e.deps||[],v=(0,o.e)(m,{deps:[t.id,p,...y]});return{ref:x?v:void 0,makeOnClick:(0,i.useCallback)((n,i,s)=>{if(g&&n)return()=>{(0,r.Fe)({id:t.id,provider:s?s.provider.slug:g.provider.slug,category:n,type:e.type,location:c,position:i})}},[t.id,g,n])}}},50346:(e,t,n)=>{n.d(t,{ZK:()=>L,u5:()=>F});var i=n(6029),s=n(18612),a=n(21377),o=n(4967),r=n(41249),l=n(78383),d=n.n(l),c=n(55729),u=n(90510),h=n(90248),g=n(494),f=n(62859),x=n(36937),p=n(65078),m=n(70591),y=n(75791),v=n(49821),j=n(2294),w=n(4236),S=n(76410),C=n(98516);let b=e=>e<20?"sofaSingles.value":"error.default",_=e=>-1!==[a.QCR.Football,a.QCR.Handball].indexOf(e),R=e=>_(e.tournament.category.sport.slug),k=e=>{let{hasDraw:t}=e;return(0,i.jsx)(r.az,{minW:t?132:88,w:t?132:88,ml:"xs",children:(0,i.jsxs)(s.D,{height:"auto",viewBox:"0 0 ".concat(t?132:88," 36"),uniqueKey:"event-cell-odds-cl",children:[(0,i.jsx)("rect",{x:"19",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),(0,i.jsx)("rect",{x:"63",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),t&&(0,i.jsx)("rect",{x:"93",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,i.jsx)("rect",{x:"5",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,i.jsx)("rect",{x:"49",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),t&&(0,i.jsx)("rect",{x:"107",y:"4",width:"7",height:"13",rx:"4",ry:"4"})]})})};function L(e){let{odds:t,sport:n,eventId:s,fallback:a}=e,o=(0,g.d4)(j.a5),l=(0,g.d4)(j.$4),d=(0,p.g3)(),u=null==o?void 0:o.branded,h="fractional"===l,x=(0,c.useCallback)(e=>{e.stopPropagation(),(0,S.Fe)({id:s,provider:null==o?void 0:o.provider.slug,category:null==t?void 0:t.marketName,type:v.jF.Featured,location:f.cb.MainList,position:v.ki.OddsValue})},[s,o,t]),m=_(n);if(!t)return(0,i.jsx)(k,{hasDraw:m});if(t.loaded)return a||(0,i.jsx)("div",{style:{minWidth:m?132:88}});let C=(0,w.nu)(t.choices,d),b=h?y.Y:void 0;return(0,i.jsx)(i.Fragment,{children:C.map(e=>{let n=o&&u?(0,w.Iz)(e,t,o):null,s=(0,i.jsxs)(r.so,{direction:"column",align:"center",gap:"xs",children:[(0,i.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",children:e.name}),(0,i.jsx)(r.so,{justify:"center",align:"center",w:h?48:40,h:h?20:16,border:e.winning?"primary.default":"onSurface.nLv4",br:"xs",bg:"surface.s1",hoverBg:"surface.s2",children:(0,i.jsx)(r.EY,{font:"display.micro",fontSize:h?14:void 0,letterSpacing:h?"-0.5px":void 0,color:t.isLive?"sofaSingles.value":"onSurface.nLv1",lineHeight:1,children:(0,i.jsx)(y.c,{fractionalValue:e.fractionalValue,children:b})})})]});return n?(0,i.jsx)(r.az,{as:"a",target:"_blank",href:n,rel:"nofollow noopener",onClick:x,zIndex:r.Py.Button,children:s},e.name):s})})}function T(e){let{startTimestamp:t,showDraw:n}=e;return(0,i.jsxs)(r.so,{justify:"space-between",px:"lg",pt:"xs",children:[(0,i.jsx)(r.EY,{font:"assistive.micro",color:"onSurface.nLv3",children:(0,i.jsx)(u.XU,{value:1e3*t,...o.or.dateTime})}),(0,i.jsxs)(r.so,{gap:"sm",children:[(0,i.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"1"}),n&&(0,i.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"X"}),(0,i.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"2"}),(0,i.jsx)(r.EY,{w:60,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:(0,i.jsx)(h.A,{id:"betting.drop"})})]})]})}function I(e){let{isChoice:t,choice:n,drop:s}=e;return(0,i.jsxs)(r.az,{children:[(0,i.jsx)(r.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",mb:"xs",children:(0,i.jsx)(r.EY,{font:"display.micro",lineHeight:"16px",color:"onSurface.nLv1",children:n.initialFractionalValue&&(0,i.jsx)(y.c,{fractionalValue:n.initialFractionalValue})})}),(0,i.jsx)(r.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",children:(0,i.jsx)(r.EY,{font:"display.micro",lineHeight:"16px",color:t?b(s):"onSurface.nLv1",children:(0,i.jsx)(y.c,{fractionalValue:n.fractionalValue})})})]})}function P(e){let{choices:t,choice:n,showDraw:s,drop:a}=e,o=t.length-1,[l,d]=(0,p.jr)(t,0,o);return(0,i.jsxs)(r.so,{gap:"sm",align:"center",children:[(0,i.jsx)(I,{choice:l,isChoice:l.name===n,drop:a},l.name),s&&(0,i.jsx)(I,{choice:t[1],isChoice:t[1].name===n,drop:a},t[1].name),(0,i.jsx)(I,{choice:d,isChoice:d.name===n,drop:a},d.name),(0,i.jsx)(r.EY,{font:"display.small",color:b(a),w:60,align:"center",children:"".concat((0,C.M)(a,1),"%")})]})}function A(e){let{event:t,choice:n,onClick:s=d(),isSelected:a,choices:o,drop:l,isMobile:c}=e,{event:u,...h}=(0,p.AR)(t),g=u.tournament.category.sport.slug,y=(R(u)||_(g)||null===g)&&3===o.length;return(0,i.jsx)(f.y$.Provider,{value:{event:u,...h},children:(0,i.jsx)(m.tj,{event:u,children:(0,i.jsxs)(r.az,{bg:a?"surface.s2":"surface.s1",onClick:e=>{s&&s(e,u.id,c)},cursor:"pointer",hoverBg:"surface.s2",children:[(0,i.jsx)(T,{startTimestamp:u.startTimestamp,showDraw:y}),(0,i.jsxs)(r.so,{justify:"space-between",align:"center",px:"lg",py:"sm",children:[(0,i.jsx)(x.g,{style:c?{flex:"1 1 auto"}:{}}),(0,i.jsx)(P,{choice:n,choices:o,drop:l,showDraw:y})]})]})})})}function F(e){return t=>(0,i.jsx)(A,{...t,drop:e.percentage,choice:e.choiceName,choices:e.odds.choices})}},56869:(e,t,n)=>{n.d(t,{Hs:()=>a,NR:()=>s,p4:()=>i});let i="/21866864457/preroll_video_app",s="https://pubads.g.doubleclick.net/gampad/live/ads?iu="+i+"&description_url=http%3A%2F%2Fsofascore.com&tfcd=0&npa=0&sz=1x1%7C400x300%7C640x480&ciu_szs=300x250%2C336x280%2C728x90&min_ad_duration=5000&max_ad_duration=30000&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=",a=["BR","BG","JP","UK","KE","GB","NG","IT","NL","ES","MA","IR","BD","IN","TH","VN"]},60988:(e,t,n)=>{n.d(t,{n6:()=>es,MC:()=>m.M,lv:()=>m.l});var i=n(6029),s=n(21377),a=n(4967),o=n(41249),r=n(55729),l=n(90510),d=n(90248),c=n(14407),u=n(62859),h=n(73022),g=n(71046),f=n(31105),x=n(87763),p=n(37394),m=n(24313);let y=(e,t,n)=>n?(0,g.vJ)(e.tournament.category.sport.slug)?"".concat(n," ").concat(t):"".concat(t," (").concat(n,")"):t,v=e=>{let t=e.status.type===s.XUj.InProgress,n=e.crowdsourcingDataDisplayEnabled,i=(0,p.sw)(e)||e.isAwarded,a=(0,p.ux)(e);return t?n?"sofaSingles.crowdsourcingLive":"sofaSingles.live":a||e.isAwarded||!i?"onSurface.nLv3":"sofaSingles.live"};function j(e){let{isShortDate:t}=e,{event:n}=(0,r.useContext)(u.y$),j=a.pp(n.startTimestamp),w=j.getTime(),S=n.status.type===s.XUj.Finished,C=n.status.type===s.XUj.InProgress,b=n.status.type===s.XUj.NotStarted,_=n.status.code===s.sum.Halftime||n.status.code===s.sum["Extra time halftime"],R=(0,p.sw)(n)||n.isAwarded,k=(0,p.ux)(n),L=n.tournament.category.sport.slug===s.QCR.Football,T=n.crowdsourcingDataDisplayEnabled,I=n.status.type===s.XUj.WillContinue,P=(0,g.Sw)(n),A=v(n),{statusTimeOnly:F}=(0,m.l)();return(0,i.jsx)(x.fP,{id:(0,p.B_)(n),short:!0,children:e=>(0,i.jsxs)(o.az,{textAlign:"center",grow:0,shrink:0,mx:"sm",basis:56,title:e.toString(),children:[(0,i.jsx)(o.EY,{fontSize:12,color:"onSurface.nLv3",as:"bdi","data-testid":"event_time",children:function(){if(a.cK(j)||F)return(0,i.jsx)(l.ib,{value:w});let e=t?a.or.date:a.or.fullDate;return(0,i.jsx)(l.XU,{value:w,...e})}()}),(0,i.jsx)(f.c,{eventId:n.id,changeKey:"status",align:"center","data-testid":"event_status",children:(0,i.jsx)(o.EY,{block:!0,ellipsis:!0,w:56,fontSize:12,align:"center",as:"bdi",color:A,children:function(){if(F&&b&&!R)return null;if(C){if(T)return(0,i.jsx)(d.A,{id:"live"});if(n.status.code===s.sum["Awaiting extra time"])return(0,i.jsx)(d.A,{id:"awaitingExtraTime.short"});if(n.status.code===s.sum["Awaiting penalties"])return(0,i.jsx)(d.A,{id:"awaitingPenalties.short"});if([s.sum.Penalties,s.sum["Penalties alt."]].includes(n.status.code))return(0,i.jsx)(d.A,{id:"penalties"});if(n.time&&L&&!_)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.kG,{time:n.time,status:n.status,currentPeriodStartTimestamp:n.currentPeriodStartTimestamp}),(0,i.jsx)(c.I,{})]})}return k?(0,i.jsx)(d.A,{id:"final_result_only_short"}):n.isAwarded?(0,i.jsx)(d.A,{id:"awarded"}):(C||S||R||I)&&e?y(n,e.toString(),P):a.cK(j)?"-":(0,i.jsx)(l.ib,{value:j.getTime()})}()})})]})})}var w=n(49031),S=n(95083),C=n(81278),b=n(494),_=n(41735),R=n(54409),k=n(19451),L=n(50346),T=n(8703),I=n(9725),P=n(82169),A=n(2294),F=n(10794),E=n(19168),z=n(87473),U=n(7360),D=n(947),N=n(21501);let Q=e=>{let{text:t,width:n,ellipsis:s}=e;return n?(0,i.jsx)("span",{style:{display:"inline-block",width:n-1,overflow:"hidden",textOverflow:s?"ellipsis":"clip",whiteSpace:"nowrap",direction:s?"rtl":void 0},children:t}):null};function Y(e){let{text:t,...n}=e,s=(0,r.useRef)(null),a=(0,N.uc)(s)||0,[l,d]=n.font?n.font.split("."):["body","medium"],c=function(e,t){let n="get-text-width-div-id",i=document.createElement("div");i.style.position="absolute",i.style.top="-10000px",i.style.left="-10000px",i.style.font=t,i.id=n,i.innerHTML=e,document.body.appendChild(i);let s=document.getElementById(n),a=s.offsetWidth;return document.body.removeChild(s),a}(t,o.Il.font[l][d]);return(0,i.jsx)(o.EY,{...n,children:(0,i.jsx)("div",{style:{display:"inline-block",width:"100%"},ref:s,"data-testid":"met-div",children:c{let{event:t}=e,n=t.status.type===s.XUj.InProgress,i=t.lastPeriod?$[t.lastPeriod]:null;return[n&&t.homeTeam.id===t.currentBattingTeamId&&i===H()(M()(t.homeScore.innings)),n&&t.awayTeam.id===t.currentBattingTeamId&&i===H()(M()(t.awayScore.innings))]},G=e=>{let t=O()(e),n=H()(t),i=(null==n?void 0:n.overs)||0;return[(null==n?void 0:n.score)||0,(null==n?void 0:n.wickets)||0,(0,J.M)(i,1)]};function q(e){let{event:t}=(0,r.useContext)(u.y$),n=(0,T.c5)(t),a=t.status.type===s.XUj.NotStarted,l=t.status.type===s.XUj.InProgress,d=t.winnerCode===s.Jfo.Left,c=t.winnerCode===s.Jfo.Right,h=void 0===t.winnerCode;if(n!==s.QCR.Cricket||a)return null;let[g,x]=V({event:t}),[p,m,y]=G(t.homeScore.innings),[v,j,w]=G(t.awayScore.innings),S=t.homeScore.display||0,C=t.awayScore.display||0,b=S>p||C>v,_=(0,E.sw)(t)?0===p&&p0&&"".concat(p).concat(m>=0&&m<10?"-".concat(m):""," (").concat(y,")"),b?(0,i.jsx)(o.az,{as:"strong",ml:"xs",children:S}):null]})}),(0,i.jsx)(o.so,{justify:"flex-end","data-testid":"right_score",children:k?(0,i.jsx)(o.EY,{align:"right",pr:"sm",block:!0,children:"-"}):(0,i.jsxs)(f.c,{eventId:t.id,changeKey:"awayScore.display",textAlign:"right",mr:"sm",color:l&&x?"sofaSingles.live":c||h?"onSurface.nLv1":"onSurface.nLv3",flex:"1 1 16px",maxW:"fit-content",children:[x&&L," ",v>0&&"".concat(v).concat(j>=0&&j<10?"-".concat(j):""," (").concat(w,")"),b?(0,i.jsx)(o.az,{as:"strong",ml:"xs",children:C}):null]})})]})}function Z(e){let{event:t}=(0,r.useContext)(u.y$),[n,a]=V({event:t}),l=(0,T.c5)(t),d=t.status.type===s.XUj.NotStarted,c=t.status.type===s.XUj.InProgress,h=t.winnerCode===s.Jfo.Left,g=t.winnerCode===s.Jfo.Right,x=void 0===t.winnerCode;if(l!==s.QCR.Cricket||d)return null;let p=t.homeScore.display||"-",m=t.awayScore.display||"-",y="-"!==p||"-"!==m;return(0,i.jsxs)(o.az,{pr:"sm",...e,children:[y?(0,i.jsx)(o.az,{mb:"xxs",children:(0,i.jsx)(f.c,{eventId:t.id,changeKey:"homeScore.display",textAlign:"right",color:c&&n?"sofaSingles.live":h||x?"onSurface.nLv1":"onSurface.nLv3",children:p})}):null,y?(0,i.jsx)(o.az,{children:(0,i.jsx)(f.c,{eventId:t.id,changeKey:"awayScore.display",textAlign:"right",color:c&&a?"sofaSingles.live":g||x?"onSurface.nLv1":"onSurface.nLv3",children:m})}):null]})}let ee=(0,_.default)(o.so).withConfig({componentId:"sc-929a8fc9-0"})(["align-items:center;position:relative;color:",";&.active{background-color:",";}"],e=>e.theme.colors.onSurface.nLv1,e=>e.theme.colors.neutral.highlight),et=[s.QCR.Basketball,s.QCR.IceHockey,s.QCR.AmericanFootball,s.QCR.Floorball,s.QCR.AussieRules],en=[s.QCR.Volleyball,s.QCR.Baseball,s.QCR.BeachVolley,s.QCR.Badminton],ei=function(e){let{children:t}=e;return"function"!=typeof t?null:(0,i.jsx)(o.az,{flex:"0 1 auto",mr:"md",children:(0,i.jsx)(o.EY,{as:"div",align:"center",ellipsis:!0,style:{overflow:"visible"},children:t()})})};function es(e){var t;let n=(0,m.l)(),{children:a,style:l,odds:d,isSelected:c,entity:h,incidents:g,isReferenceTeamId:f}=e,x=void 0===e.isShort?n.isShort:e.isShort,p=void 0===e.isNarrow?n.isNarrow:e.isNarrow,y=void 0===e.isShortDate?n.isShortDate:e.isShortDate,v=void 0===e.hideIncidentIcons?n.hideIncidentIcons:e.hideIncidentIcons,{event:S}=(0,r.useContext)(u.y$),_=(0,b.d4)(F.LQ),E=(0,C.useRouter)().route===k.xW.Favorites,D=(0,T.c5)(S),N=(0,b.d4)((0,A.Ul)(S)),Q=n.showOdds&&N,Y=D===s.QCR.Cricket&&!E,B=S.status.type===s.XUj.InProgress,M=S.status.type===s.XUj.Finished,W=B&&S.crowdsourcingDataDisplayEnabled,H=M&&S.crowdsourcingDataDisplayEnabled,K=D===s.QCR.AmericanFootball&&B&&(null==(t=S.tournament.uniqueTournament)?void 0:t.hasDownDistance),O=K&&(0,I.H_)(S.yardDistance),J=Y||O,$=(0,w.TF)(S,_)?(0,i.jsx)(R.PEB,{fill:B?"sofaSingles.live":"neutral.default"}):void 0;return(0,i.jsxs)(ee,{bg:c?"surface.s2":void 0,className:"js-list-cell-target js-list-cell-target-".concat(S.id),isFinished:S.status.type===s.XUj.Finished,h:J?68:48,style:l,children:[Y?(0,i.jsx)(o.az,{minW:"md",w:"md",h:"100%"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(P.kV,{eventId:S.id}),(0,i.jsx)(j,{isShortDate:y})]}),(0,i.jsx)(o.az,{mr:"sm",h:J?56:36,flex:"0 0 1px",bg:"onSurface.nLv4"}),(0,i.jsxs)(o.az,{grow:1,overflowX:"clip",minW:"0",children:[(0,i.jsxs)(o.so,{align:"center",children:[(0,i.jsx)(U.g,{isShort:x,entity:h}),Q?(0,i.jsx)(L.ZK,{eventId:S.id,odds:d,sport:D,fallback:$}):(0,i.jsxs)(i.Fragment,{children:[v||S.isAwarded?null:(0,i.jsx)(function(e){let{incidents:t,sportSlug:n,isReferenceTeamId:a}=e,{event:l,leftTeam:d}=(0,r.useContext)(u.y$);return n!==s.QCR.Cricket&&t?(0,i.jsx)(o.so,{mr:"sm",alignSelf:(null==a?void 0:a(Number(d.id),l.id))?"flex-start":"flex-end",children:(0,w.t3)(n,t)}):null},{isReferenceTeamId:f,incidents:g,sportSlug:D}),W&&(0,i.jsx)(R.Mv5,{fill:"sofaSingles.crowdsourcingLive"}),$,H&&(0,i.jsx)(R.Mv5,{fill:"onSurface.nLv3",w:16}),(0,i.jsx)(ea,{}),D===s.QCR.Cricket?(0,i.jsx)(q,{mr:a?void 0:"sm"}):h!==s.wNW.Player?(0,i.jsx)(eo,{isNarrow:p||en.includes(D)}):null]}),K&&(0,i.jsx)(I.x8,{event:S}),Q&&(0,i.jsx)(Z,{mr:a?void 0:"sm"}),!n.hideScores&&(0,i.jsx)(z.$,{})]}),Y&&(0,i.jsx)(X,{event:S,isShortDate:y}),O&&(0,i.jsx)(I.RU,{})]}),!!a&&(0,i.jsx)(o.az,{mr:"md",h:J?56:36,flex:"0 0 ".concat(+!!a,"px"),bg:"onSurface.nLv4"}),(0,i.jsx)(ei,{children:a})]})}function ea(){let{event:e,leftScore:t,rightScore:n}=(0,r.useContext)(u.y$),a=(0,r.useContext)(_.ThemeContext),l="rtl"===a.settings.textDirection;if((0,T.c5)(e)===s.QCR.Tennis&&e.status.type===s.XUj.InProgress){let s=a.colors.secondary.default,r=(0,i.jsx)(R.OXq,{fill:s,position:"absolute",w:"12",h:"16",style:l?{right:-16}:{left:-16}});return(0,i.jsxs)(o.so,{direction:"column",mr:"md",ml:"lg",justify:"flex-end",align:"flex-end",w:"32",flex:"0 1 32px",children:[(0,i.jsxs)(o.az,{position:"relative",minW:"16",mb:"xxs",children:[1===e.firstToServe&&r,(0,i.jsx)(P.cU,{eventId:e.id,color:"secondary.default",textAlign:"right",changeKey:"homeScore.point",score:t.point})]}),(0,i.jsxs)(o.az,{position:"relative",minW:"16",children:[2===e.firstToServe&&r,(0,i.jsx)(P.cU,{eventId:e.id,color:"secondary.default",textAlign:"right",changeKey:"awayScore.point",score:n.point})]})]})}return null}function eo(e){let{isNarrow:t}=e,{mediaBreakpoint:n}=(0,S.$c)();return["lg","sm"].includes(n)&&!t?(0,i.jsx)(er,{}):(0,i.jsx)(el,{})}function er(){var e,t;let{event:n,leftTeam:a,rightTeam:l,leftScore:d,rightScore:c}=(0,r.useContext)(u.y$),h=(null==(e=a.subTeams)?void 0:e.length)===2&&(null==(t=l.subTeams)?void 0:t.length)===2,[g,f]=(0,r.useMemo)(()=>{let e=[],t=[],a=(0,T.c5)(n),r=a===s.QCR.Tennis?"left":"right",l=[],u=0;return n.periods?(Object.keys(n.periods).filter(e=>!["point","current"].includes(e)).forEach(e=>{let t=d[e],n=c[e],s="".concat(e,"TieBreak"),a=d[s],r=c[s],g=h&&"period3TieBreak"===s,f=!g&&(a||0===a)?(0,i.jsx)(o.EY,{as:"sup",top:"0",left:t<10?"14px":"18px",position:"absolute",verticalAlign:"super",fontSize:"micro",lineHeight:"1","data-change-key":"homeScore.".concat(s),children:a}):null,x=!g&&(r||0===r)?(0,i.jsx)(o.EY,{as:"sup",top:"0",left:n<10?"14px":"18px",position:"absolute",verticalAlign:"super",fontSize:"micro",lineHeight:"1","data-change-key":"awayScore.".concat(s),children:r}):null;l.push({left:t,right:n,leftTie:f,rightTie:x,periodKey:e}),(t||0===t||n||0===n||f||x)&&u++}),l.forEach((l,d)=>{let{left:c,right:h,leftTie:g,rightTie:f,periodKey:x}=l,p=n.status.type===s.XUj.InProgress&&d+1===u,m=a===s.QCR.Tennis?"center":"right",y=c>99||h>99?36:24;e.push((0,i.jsxs)(o.az,{d:"inline-block",position:"relative",textAlign:r,w:y,children:[(0,i.jsx)(P.cU,{eventId:n.id,changeKey:"homeScore.".concat(x),score:c,textAlign:m,align:"flex-start",color:p?"sofaSingles.live":c>h?"onSurface.nLv1":"onSurface.nLv3",w:y}),g]},x)),t.push((0,i.jsxs)(o.az,{d:"inline-block",position:"relative",textAlign:r,w:y,children:[(0,i.jsx)(P.cU,{eventId:n.id,changeKey:"awayScore.".concat(x),score:h,textAlign:m,align:"flex-start",color:p?"sofaSingles.live":h>c?"onSurface.nLv1":"onSurface.nLv3",w:y}),f]},x))}),[e,t]):[void 0,void 0]},[n.periods,d,c,n.status.type]);return void 0!==n.periods&&(n.status.type!==s.XUj.NotStarted||(0,E.sw)(n))&&(g||f)?(0,i.jsxs)(o.az,{flex:"0 1 auto",children:[(0,i.jsx)(o.so,{h:"16",mb:"xxs",children:g}),(0,i.jsx)(o.so,{h:"16",children:f})]}):null}function el(){let{event:e,leftScore:t,rightScore:n}=(0,r.useContext)(u.y$),a=(0,T.c5)(e);if(void 0===e.periods||!e.lastPeriod||et.includes(a))return null;let l=a===s.QCR.Tennis?"sofaSingles.live":"secondary.default";return e.status.type===s.XUj.InProgress&&e.lastPeriod?(0,i.jsxs)(o.az,{flex:"0 1 auto",w:"28",children:[(0,i.jsx)(o.az,{position:"relative",mb:"2",children:(0,i.jsx)(P.cU,{eventId:e.id,align:"right",color:l,changeKey:"homeScore.".concat(e.lastPeriod),score:t[e.lastPeriod]},e.lastPeriod)}),(0,i.jsx)(o.az,{position:"relative",children:(0,i.jsx)(P.cU,{eventId:e.id,align:"right",color:l,changeKey:"awayScore.".concat(e.lastPeriod),score:n[e.lastPeriod]},e.lastPeriod)})]}):null}},75791:(e,t,n)=>{n.d(t,{Y:()=>l,c:()=>r});var i=n(6029),s=n(494),a=n(64274),o=n(2294);let r=e=>{let{fractionalValue:t,children:n}=e,r=(0,s.d4)(o.$4),l=(0,a.YB)(t,r);return(0,i.jsx)(i.Fragment,{children:n?n(l):l})},l=e=>{let[t,n]=e.split("/");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("sup",{children:t}),"/",(0,i.jsx)("sub",{children:n})]})}},87473:(e,t,n)=>{n.d(t,{$:()=>S});var i=n(6029),s=n(21377),a=n(95083),o=n(41249),r=n(55729),l=n(90248),d=n(62859),c=n(49031),u=n(8703),h=n(65078),g=n(82169);let f=(e,t)=>{let n=e.tournament.category.sport.slug===s.QCR.Tennis,i=e.status.type===s.XUj.InProgress,a=e.crowdsourcingDataDisplayEnabled;return i&&(0,u.c5)(e)===s.QCR.Darts&&void 0===e.bestOfSets?"sofaSingles.live":i&&!n&&t===s.Jfo.Left?"onSurface.nLv1":i&&a?"sofaSingles.crowdsourcingLive":"inherit"},x=(e,t)=>{let n=e.status.type===s.XUj.Finished,i=t===s.Jfo.Left,a=t===s.Jfo.Right,o="onSurface.nLv1",r="onSurface.nLv1";return(n||e.status.type===s.XUj.WillContinue)&&(o=i?"onSurface.nLv1":"onSurface.nLv3",r=a?"onSurface.nLv1":"onSurface.nLv3"),{leftColor:o,rightColor:r}};var p=n(54409),m=n(69759),y=function(e){return e[e.Home=1]="Home",e[e.Away=2]="Away",e}({}),v=n(87357);let j=e=>{let{event:t,leftScore:n,rightScore:s}=e,{mediaBreakpoint:r}=(0,a.$c)(),l=void 0!==t.bestOfSets&&t.bestOfSets>1,d=(0,v.U)(n)||0,u=(0,v.U)(s)||0;return(0,i.jsxs)(o.so,{direction:"column",pr:"sm",align:"flex-end",children:[(0,i.jsxs)(o.so,{align:"flex-end",children:[t.firstToServe===y.Home?(0,i.jsx)(p.v1,{fill:"secondary.default"}):(0,i.jsx)(o.az,{w:16}),void 0!==n.point&&(0,i.jsx)(o.EY,{color:"secondary.default",block:!0,ml:10,children:n.point||m.I}),l&&(0,i.jsx)(o.EY,{color:"sofaSingles.live",block:!0,ml:8,children:d}),(0,i.jsx)(g.cU,{eventId:t.id,changeKey:"leftScore.display",color:"sofaSingles.live",score:(0,c.J_)(t,n,r),textAlign:"right","data-testid":"left_score"})]}),(0,i.jsxs)(o.so,{align:"flex-end",children:[t.firstToServe===y.Away?(0,i.jsx)(p.v1,{fill:"secondary.default"}):(0,i.jsx)(o.az,{w:16}),void 0!==s.point&&(0,i.jsx)(o.EY,{color:"secondary.default",block:!0,ml:10,children:s.point||m.I}),l&&(0,i.jsx)(o.EY,{color:"sofaSingles.live",block:!0,ml:8,children:u}),(0,i.jsx)(g.cU,{eventId:t.id,changeKey:"rightScore.display",color:"sofaSingles.live",score:(0,c.J_)(t,s,r),textAlign:"right","data-testid":"right_score"})]})]})},w=()=>{let{event:e,leftScore:t,rightScore:n}=(0,r.useContext)(d.y$),{mediaBreakpoint:l}=(0,a.$c)(),u=(0,h.gm)(e,"winnerCode");if(e.status.type===s.XUj.NotStarted)return(0,i.jsx)(o.az,{w:38,flex:"0 0 38px",ml:"sm"});if(e.status.type===s.XUj.InProgress)return(0,i.jsx)(j,{event:e,leftScore:t,rightScore:n});let f=x(e,u);return(0,i.jsxs)(o.so,{direction:"column",pr:"sm",align:"flex-end",children:[(0,i.jsx)(o.so,{align:"flex-end",children:(0,i.jsx)(g.cU,{eventId:e.id,changeKey:"leftScore.display",color:f.leftColor||"onSurface.nLv3",score:(0,c.J_)(e,t,l),textAlign:"right","data-testid":"left_score"})}),(0,i.jsx)(o.so,{align:"flex-end",children:(0,i.jsx)(g.cU,{eventId:e.id,changeKey:"rightScore.display",color:f.rightColor||"onSurface.nLv3",score:(0,c.J_)(e,n,l),textAlign:"right","data-testid":"right_score"})})]})};function S(){let{event:e,leftScore:t,rightScore:n}=(0,r.useContext)(d.y$),l=(0,h.gm)(e,"aggregatedWinnerCode"),p=(0,u.c5)(e),m=(0,h.gm)(e,"winnerCode"),{mediaBreakpoint:y}=(0,a.$c)();if(p===s.QCR.Cricket)return null;if(p===s.QCR.MMA)return(0,i.jsx)(C,{winnerCode:e.winnerCode});if(p===s.QCR.Darts)return(0,i.jsx)(w,{});if(e.status.type===s.XUj.NotStarted)return(0,i.jsx)(o.az,{w:"38px",mr:"sm"});let v=e.status.type===s.XUj.InProgress,j=v?"sofaSingles.live":"onSurface.nLv3",S=v?f(e,m):j,b=v?{leftColor:"onSurface.nLv3",rightColor:"onSurface.nLv3"}:x(e,m),_=l===s.Jfo.Left,R=l===s.Jfo.Right;return(0,i.jsxs)(o.so,{position:"relative",direction:"column",justify:"flex-end",align:"flex-end",w:"38px",color:j,mr:"sm",children:[(0,i.jsx)(g.cU,{eventId:e.id,changeKey:"homeScore.display",color:v?S:b.leftColor,score:(0,c.J_)(e,t,y),aggWin:_,textAlign:"right","data-testid":"left_score"}),(0,i.jsx)(g.cU,{eventId:e.id,changeKey:"awayScore.display",color:v?S:b.rightColor,score:(0,c.J_)(e,n,y),aggWin:R,textAlign:"right","data-testid":"right_score"})]})}function C(e){let{winnerCode:t}=e;return t!==s.Jfo.Left&&t!==s.Jfo.Right?null:(0,i.jsxs)(o.so,{direction:t===s.Jfo.Left?"column":"column-reverse",gap:"xxs",mx:"sm",children:[(0,i.jsx)(o.EY,{as:"div",c:"secondary.default",align:"center",children:(0,i.jsx)(l.A,{id:"standings.label.wins"})}),(0,i.jsx)(o.EY,{as:"div",c:"error.default",align:"center",children:(0,i.jsx)(l.A,{id:"standings.label.losses"})})]})}}}]);