!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]="74766310-c132-42be-a3a9-ab9be44681e8",e._sentryDebugIdIdentifier="sentry-dbid-74766310-c132-42be-a3a9-ab9be44681e8")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[364],{8385:(e,t,s)=>{s.d(t,{Oz:()=>l,ai:()=>r,fK:()=>a,mn:()=>o});var n=s(21377),i=s(71046),r=function(e){return e[e.Home=1]="Home",e[e.Away=2]="Away",e}({});function l(e,t){return e.scoring===t?"onSurface.nLv1":"onSurface.nLv3"}function o(e,t){let s,n;return void 0===e.score.scoring&&t===e.points.length-1?{homeColor:"sofaSingles.live",awayColor:"sofaSingles.live"}:(1===e.score.throwing?(s=t%2==0?"onSurface.nLv1":"onSurface.nLv3",n=t%2!=0?"onSurface.nLv1":"onSurface.nLv3"):(s=t%2!=0?"onSurface.nLv1":"onSurface.nLv3",n=t%2==0?"onSurface.nLv1":"onSurface.nLv3"),{homeColor:s,awayColor:n})}let a=e=>(0,i.c5)(e)===n.QCR.Darts?n.bnp.pointByPoint(e.id):null},19240:(e,t,s)=>{s.d(t,{e:()=>o});var n=s(6029),i=s(33144),r=s(41249),l=s(68379);let o=e=>{var t;let{team:s,isRight:o,seeding:a,hasFlag:c=!0}=e;return null==s||!s.country||s.national?(0,n.jsx)(i.p,{size:48,id:s.id,name:s.name}):(0,n.jsxs)(r.az,{position:"relative",children:[c?(0,n.jsx)(i.p,{hasFlag:!0,id:s.id,name:s.name,size:40,alpha2:null==(t=s.country)?void 0:t.alpha2,right:o}):(0,n.jsx)(i.p,{id:s.id,name:s.name,size:20}),a&&(0,n.jsx)(l.J,{seed:a,left:o?"0px":void 0,right:o?void 0:"0px",h:12,minW:16,font:"assistive.micro",bottom:"xxs"})]})}},40364:(e,t,s)=>{s.d(t,{g:()=>eR});var n=s(6029),i=s(21377),r=s(55729),l=s(62859),o=s(41249),a=s(98559),c=s(19168),d=s(90248);let u=()=>{let{event:e,leftScore:t,rightScore:s}=(0,r.useContext)(l.y$),a=e.status.type===i.XUj.InProgress;return(0,n.jsxs)(o.EY,{fontSize:12,color:a?"sofaSingles.live":"onSurface.nLv3",lineHeight:1.33,fontWeight:500,children:[(0,n.jsx)(d.A,{id:"event.aggregated.short"}),": ",t.aggregated," - "," ",s.aggregated]})};var m=s(21501),x=s(73022);function f(e){let{event:t}=e;return(0,m.hX)()?null:(0,n.jsx)(x.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{timeParts:t,delta:s,formattedTime:i}=e,[r]=t;return s<0||r>=1?null:(0,n.jsx)(o.EY,{mt:"sm",align:"center",font:"display.small",color:"onSurface.nLv3",block:!0,children:i})}})}var g=s(54409);let j={[i.sAb.Distance]:"mma_position_stance",[i.sAb.Ground]:"ground_mma",[i.sAb.GroundGrappleRed]:"ground_grapple_red_mma",[i.sAb.GroundGrappleBlue]:"ground_grapple_blue_mma",[i.sAb.GrappleRed]:"mma_position_clinch_by_red",[i.sAb.GrappleBlue]:"mma_position_clinch_by_blue",[i.sAb.Pause]:"pause"};function h(e){let{fightState:t}=e;return j[t]?(0,n.jsx)(d.A,{id:j[t]}):null}let p=e=>[i.sAb.GroundGrappleBlue,i.sAb.Distance,i.sAb.Ground,i.sAb.GrappleBlue].includes(e),v=e=>[i.sAb.GroundGrappleRed,i.sAb.Distance,i.sAb.Ground,i.sAb.GrappleRed].includes(e),y=e=>{let{fightState:t}=e,s=v(t),r=p(t);return(0,n.jsxs)(o.so,{w:"100%",h:"80px",px:"sm",align:"center",justify:"center",direction:"column",children:[(0,n.jsx)(o.EY,{color:"onSurface.nLv1",h:"16px",font:"display.medium",mb:"md",mt:"sm",children:(0,n.jsx)(d.A,{id:"current_position_mma"})}),(0,n.jsxs)(o.so,{h:"32px",w:"100%",p:"sm",backgroundColor:"surface.s2",br:"md",align:"center",justify:"space-between",children:[(0,n.jsx)(g.p0t,{fill:s?o.Tj.palette.mmaSpecific.red.default:o.Tj.palette.onSurface.nLv3}),(0,n.jsx)(o.EY,{color:function(e,t,s){return e===i.sAb.Pause?o.Tj.palette.onSurface.nLv3:t&&!s?o.Tj.palette.mmaSpecific.red.default:s&&!t?o.Tj.palette.mmaSpecific.blue.default:o.Tj.palette.onSurface.nLv1}(t,s,r),font:"body.medium",children:(0,n.jsx)(h,{fightState:t})}),(0,n.jsx)(g.p0t,{fill:r?o.Tj.palette.mmaSpecific.blue.default:o.Tj.palette.onSurface.nLv3,style:{transform:"scaleX(-1)"}})]})]})};var b=s(8703),S=s(65078),w=s(87763);let T=e=>{let{isWinner:t}=e;return(0,n.jsx)(o.EY,{font:"display.extraLarge",c:t?"onSurface.nLv1":"onSurface.nLv3",block:!0,children:(0,n.jsx)(d.A,{id:t?"standings.label.wins":"standings.label.losses"})})},L=e=>{let{event:t}=e;return t.fightState===i.sAb.Pause?(0,n.jsx)(d.A,{id:"stoppage_mma"}):t.status.type===i.XUj.InProgress?(0,n.jsx)(d.A,{id:"in_progress_mma"}):(0,n.jsx)(w.fP,{id:(0,c.B_)(t)})},C=e=>{let{winnerCode:t,event:s}=e,r=(0,b.Mh)(s);return t===i.Jfo.NoContest||t===i.Jfo.Draw?(0,n.jsxs)(o.az,{children:[(0,n.jsx)(o.EY,{font:"display.extraLarge",c:"onSurface.nLv1",as:"div",align:"center",children:(0,n.jsx)(d.A,{id:t===i.Jfo.Draw?"draw":"no_contest_mma"})}),(0,n.jsx)(o.EY,{c:"onSurface.nLv3",as:"div",align:"center",children:s.finalRound?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{id:"status_round",values:{round:s.finalRound}})," ",r&&(0,n.jsxs)(n.Fragment,{children:["(",r,")"]})]}):(0,n.jsx)(n.Fragment,{children:"-"})})]}):t===i.Jfo.Left||t===i.Jfo.Right?(0,n.jsxs)(o.az,{children:[(0,n.jsxs)(o.so,{justify:"center",children:[(0,n.jsx)(T,{isWinner:t===i.Jfo.Left}),(0,n.jsx)(o.EY,{as:"div",font:"display.extraLarge",c:"onSurface.nLv3",w:24,h:24,align:"center",children:"-"}),(0,n.jsx)(T,{isWinner:t===i.Jfo.Right})]}),(0,n.jsx)(o.so,{justify:"center",align:"center",h:"lg",children:(0,n.jsxs)(o.EY,{c:"onSurface.nLv3",as:"div",px:"xss",align:"center",children:[s.winType&&s.winType+" | ",(0,n.jsx)(d.A,{id:"status_round",values:{round:s.finalRound}})," ",r&&(0,n.jsxs)(n.Fragment,{children:["(",r,")"]})]})})]}):null},_=e=>{let{event:t}=e,{status:s,startTimestamp:r}=t,l=s.code===i.sum.Started,a=s.type===i.XUj.NotStarted,u=(0,b.Sw)(t),m=l||a&&1e3*r{let{innings:t,scoreKeys:s,isWinner:i,isLive:r}=e;return(0,n.jsx)(n.Fragment,{children:s.map(e=>{let s=null==t?void 0:t[e];return(0,n.jsx)(o.EY,{block:!0,font:"display.medium",color:r?"sofaSingles.live":i?"onSurface.nLv1":"onSurface.nLv3",children:E.gj(s)},e)})})};function R(){let{event:e,leftScore:t,rightScore:s,leftTeam:a,rightTeam:c}=(0,r.useContext)(l.y$),d=e.status.type===i.XUj.InProgress,u=e.winnerCode===i.Jfo.Left,m=e.winnerCode===i.Jfo.Right,x=[...new Set([...Object.keys(t.innings||{}),...Object.keys(s.innings||{})])].sort(),f=E.KY(x,t.innings),g=E.KY(x,s.innings);return(0,n.jsxs)(o.so,{justify:"center",align:"center",children:[(0,n.jsx)(o.az,{flex:"0 0 75px",children:(0,n.jsxs)(o.so,{align:"flex-end",direction:"column",children:[(0,n.jsx)(Y,{innings:t.innings,scoreKeys:x,isWinner:u,isLive:d&&e.currentBattingTeamId===a.id}),(0,n.jsxs)(o.EY,{block:!0,font:"assistive.default",color:"onSurface.nLv3",children:[f," ov"]})]})}),(0,n.jsx)(o.az,{flex:"0 0 1px",w:"1",mx:"sm",bg:"onSurface.nLv4",alignSelf:"stretch"}),(0,n.jsx)(o.az,{flex:"0 0 75px",children:(0,n.jsxs)(o.so,{align:"flex-start",direction:"column",children:[(0,n.jsx)(Y,{innings:s.innings,scoreKeys:x,isWinner:m,isLive:d&&e.currentBattingTeamId===c.id}),(0,n.jsxs)(o.EY,{block:!0,font:"assistive.default",color:"onSurface.nLv3",children:[g," ov"]})]})})]})}let k=e=>{let{leftScore:t,rightScore:s}=e;return void 0===t.bottomScore&&void 0===s.bottomScore?(0,n.jsx)(o.EY,{color:"sofaSingles.live",children:(0,n.jsx)(d.A,{id:"started"})}):(0,n.jsxs)(o.so,{columnGap:"xs",children:[void 0!==t.bottomScore&&void 0!==s.bottomScore&&(0,n.jsxs)(o.so,{children:[(0,n.jsx)(o.EY,{color:"sofaSingles.live",children:t.bottomScore}),(0,n.jsx)(o.EY,{color:"sofaSingles.live",children:"-"}),(0,n.jsx)(o.EY,{color:"sofaSingles.live",children:s.bottomScore})]}),void 0!==t.bottomScoreExtra&&void 0!==s.bottomScoreExtra&&(0,n.jsxs)(o.so,{children:[(0,n.jsxs)(o.EY,{color:"sofaSingles.live",children:["(",t.bottomScoreExtra]}),(0,n.jsx)(o.EY,{color:"sofaSingles.live",children:"-"}),(0,n.jsxs)(o.EY,{color:"sofaSingles.live",children:[s.bottomScoreExtra,")"]})]})]})};var z=s(95083),W=s(8385),F=s(82169);let I=e=>{let{eventId:t,throwing:s,leftScore:i,rightScore:r}=e,{isDesktopLarge:l}=(0,z.$c)();return(0,n.jsxs)(o.so,{columnGap:"xs",align:"center",children:[s===W.ai.Home?(0,n.jsx)(g.v1,{fill:"sofaSingles.live"}):(0,n.jsx)(o.az,{w:16}),(0,n.jsxs)(o.so,{justify:"center",align:"center",columnGap:"xs",children:[(0,n.jsx)(F.cU,{eventId:t,changeKey:"homeScore.display",score:i.topScore,fontSize:l?28:20,h:l?30:22,w:l?52:36,fontWeight:"bold",color:"sofaSingles.live"}),(0,n.jsx)(o.EY,{fontSize:l?28:20,fontWeight:"bold",color:"sofaSingles.live",children:"-"}),(0,n.jsx)(F.cU,{eventId:t,changeKey:"awayScore.display",score:r.topScore,fontSize:l?28:20,h:l?30:22,w:l?52:36,fontWeight:"bold",color:"sofaSingles.live",align:"flex-start"})]}),s===W.ai.Away?(0,n.jsx)(g.v1,{fill:"sofaSingles.live"}):(0,n.jsx)(o.az,{w:16})]})};var U=s(69759);let X=e=>{let{event:t,homeScore:s,awayScore:i}=e,r=(0,U.J)(t,s),l=(0,U.J)(t,i);return(0,n.jsxs)(o.so,{direction:"column",columnGap:"sm",align:"center",children:[(0,n.jsx)(I,{eventId:t.id,throwing:t.firstToServe,leftScore:r,rightScore:l}),(0,n.jsx)(k,{leftScore:r,rightScore:l})]})};var G=s(84719);let D=()=>{let{event:e,leftScore:t,rightScore:s}=(0,r.useContext)(l.y$);return e.status.type===i.XUj.InProgress?(0,n.jsx)(X,{event:e,homeScore:t,awayScore:s}):(0,n.jsx)(G.A,{})};var H=s(41735);let P=["period1","period2","period3","period4","period5"],Q=(e,t)=>Object.keys(e).filter(s=>P.includes(s)&&void 0!==e[s]&&void 0!==t[s]),J=(e,t,s,n,i,r)=>s&&i===r?"onColor.default":(n?e>t:t>e)?"onSurface.nLv1":"onSurface.nLv3",B=(e,t,s,n,i)=>e?"secondary.default":n&&i&&(t?n>i:i>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",$=(e,t,s,n)=>{let r=e.status.type===i.XUj.Finished;if(e.status.type===i.XUj.InProgress||e.status.code===i.sum.Interrupted){var l,o;return n?null!=(l=t.point)?l:0:null!=(o=s.point)?o:0}if(r)if("Ended"===e.status.description)return n?t.current:s.current;else if(n)return 1===e.winnerCode?"W":"L";else return 2===e.winnerCode?"W":"L"},M=()=>{let{event:e,leftScore:t,rightScore:s}=(0,r.useContext)(l.y$),a=e.status.type===i.XUj.InProgress,c=Q(t,s),u=c?c.length-1:0,m=(0,r.useContext)(H.ThemeContext),x="rtl"===m.settings.textDirection,f=m.colors.secondary.default,j=void 0!==e.winnerCode,h=e.status.type===i.XUj.Finished&&e.status.code===i.sum.Walkover,p=e.status.type===i.XUj.Finished&&[i.sum.HomeDefaulted,i.sum.AwayDefaulted].includes(e.status.code),v=(0,n.jsx)(g.OXq,{fill:f,position:"absolute",w:"12",h:"16",style:x?{right:-16}:{left:-16}});return(0,n.jsxs)(o.so,{w:"100%",justify:"flex-end",h:"84px",children:[c.map((i,r)=>(0,n.jsxs)(o.so,{direction:"column",justify:"space-between",gap:"xs",align:"flex-end",py:"xs",children:[(0,n.jsxs)(o.az,{position:"relative",children:[1===e.firstToServe&&a&&0===r&&v,(0,n.jsx)(F.cU,{eventId:e.id,changeKey:"homeScore.".concat(i),score:t[i],fontWeight:"bold",color:J(t[i],s[i],a,!0,r,u),backgroundColor:a&&r===u?"sofaSingles.live":"unset"})]}),(0,n.jsxs)(o.az,{position:"relative",children:[2===e.firstToServe&&a&&0===r&&v,(0,n.jsx)(F.cU,{eventId:e.id,changeKey:"awayScore.".concat(i),score:s[i],fontWeight:"bold",color:J(t[i],s[i],a,!1,r,u),backgroundColor:a&&r===u?"sofaSingles.live":"unset"})]})]},i)),h&&j&&(0,n.jsxs)(o.so,{direction:"column",justify:"space-between",py:"xs",children:[(0,n.jsx)(o.az,{children:1===e.winnerCode&&(0,n.jsx)(o.EY,{font:"body.medium",color:"onSurface.nLv3",children:(0,n.jsx)(d.A,{id:"walkover"})})}),(0,n.jsx)(o.az,{children:2===e.winnerCode&&(0,n.jsx)(o.EY,{font:"body.medium",color:"onSurface.nLv3",children:(0,n.jsx)(d.A,{id:"walkover"})})})]}),(void 0!==t.current&&void 0!==s.current||a||h||p)&&(0,n.jsxs)(o.so,{direction:"column",h:"100%",justify:"space-between",align:"space-between",children:[(0,n.jsxs)(o.so,{align:"center",justify:"center",h:"24px",children:[(0,n.jsx)(o.cG,{vertical:!0,mx:"sm"}),(0,n.jsx)(F.cU,{eventId:e.id,score:$(e,t,s,!0),height:a?"16px":"24px",fontSize:a?"14px":"18px",pt:a?0:"xxs",fontWeight:"bold",color:B(a,!0,e.winnerCode,t.current,s.current),"data-testid":"left_score"})]}),(0,n.jsxs)(o.so,{align:"center",justify:"center",h:"24px",children:[(0,n.jsx)(o.cG,{vertical:!0,mx:"sm"}),(0,n.jsx)(F.cU,{eventId:e.id,score:$(e,t,s,!1),height:a?"16px":"24px",fontSize:a?"14px":"18px",pt:a?0:"xxs",fontWeight:"bold",color:B(a,!1,e.winnerCode,t.current,s.current),"data-testid":"right_score"})]})]})]})};function O(){let{event:e}=(0,r.useContext)(l.y$);switch(e.tournament.category.sport.slug){case i.QCR.Cricket:return(0,n.jsx)(R,{});case i.QCR.MMA:return(0,n.jsx)(A,{event:e});case i.QCR.Tennis:return(0,n.jsx)(M,{});case i.QCR.Darts:return(0,n.jsx)(D,{});default:return(0,n.jsx)(G.A,{})}}var N=s(4967),K=s(76356),V=s(90510);function q(e){let{hasBorder:t=!1}=e,{event:s,leftScore:o,rightScore:a}=(0,r.useContext)(l.y$),u="number"==typeof o.current&&"number"==typeof a.current,m=(0,S.gm)(s,"winnerCode"),x=c.Ig.includes(s.status.code)&&m,f=x&&m===i.Jfo.Left,g=x&&m===i.Jfo.Right,j=s.tournament.category.sport.slug===i.QCR.Tennis,h=s.status.type;if(s.status.code===i.sum.Retired?h="retired":s.status.code===i.sum.Walkover?h="walkover":(s.status.code===i.sum.HomeDefaulted||s.status.code===i.sum.AwayDefaulted)&&(h="defaulted"),/^abandoned/i.test(s.status.description)&&(h="abandoned"),s.status.code===i.sum.Postponed||s.status.code===i.sum.Canceled||s.status.code===i.sum.Walkover){let e=(0,N.cK)(s.startTimestamp),r=(0,N.ef)(s.startTimestamp);return(0,n.jsxs)(K.az,{borderLeft:t?"1px solid {colors.neutrals.nLv4}":void 0,maxW:{mdToLg:"[100px]"},pl:t?"sm":void 0,children:[!j&&s.status.code===i.sum.Walkover&&x&&(0,n.jsxs)(K.so,{justify:"center",align:"center",gap:"sm",children:[(0,n.jsx)(z.EY,{textStyle:"display.large",color:f?"neutrals.nLv1":"neutrals.nLv3",children:f?"W":g?"L":""}),(0,n.jsx)(z.EY,{textStyle:"display.large",color:"neutrals.nLv3",children:" - "}),(0,n.jsx)(z.EY,{textStyle:"display.large",color:g?"neutrals.nLv1":"neutrals.nLv3",children:g?"W":f?"L":""})]}),(0,n.jsx)(z.EY,{textStyle:"display.large",textAlign:"center",display:"block",children:(0,n.jsx)(w.fP,{id:h})}),(0,n.jsx)(z.EY,{color:"neutrals.nLv3",textAlign:j?"right":"center",display:"block",children:e||r?(0,n.jsx)(d.A,{id:e?"today":"tomorrow"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(V.XU,{value:1e3*s.startTimestamp}),", ",(0,n.jsx)(V.ib,{value:1e3*s.startTimestamp})]})})]})}return(0,n.jsxs)(K.az,{children:[(0,n.jsxs)(K.az,{textAlign:"center",children:[(0,n.jsx)(z.EY,{textStyle:"display.extraLarge",color:f?"neutrals.nLv1":"neutrals.nLv3",children:u?o.current:f?"W":g?"L":""}),(0,n.jsx)(z.EY,{textStyle:"display.extraLarge",color:"neutrals.nLv3",children:" - "}),(0,n.jsx)(z.EY,{textStyle:"display.extraLarge",color:g?"neutrals.nLv1":"neutrals.nLv3",children:u?a.current:g?"W":f?"L":""})]}),(0,n.jsx)(z.EY,{color:"neutrals.nLv3",textAlign:"center",display:"block",children:(0,n.jsx)(w.fP,{id:h})})]})}let Z=e=>{let{teamId:t,isRight:s}=e,{event:a}=(0,r.useContext)(l.y$);return!function(e,t){let{homeTeam:s,bonusInfo:n}=e,r=s.id===t?null==n?void 0:n.hasHomeBonus:null==n?void 0:n.hasAwayBonus;return(0,b.c5)(e)===i.QCR.Basketball&&e.status.type===i.XUj.InProgress&&r}(a,t)?null:(0,n.jsx)(o.so,{w:24,h:16,br:"sm",bg:"sofaSingles.value",justify:"center",align:"center",position:"absolute",bottom:0,left:s?0:void 0,right:s?void 0:0,children:(0,n.jsx)(o.EY,{font:"assistive.default",color:"onColor.primary",lineHeight:1,fontWeight:550,children:"B"})})};var ee=s(46009),et=s(8973),es=s(70591);let en=e=>{var t;let{team:s,sport:l,isRight:a,disableFollow:c,children:d}=e,u=(0,r.useContext)(ee.w),m=(null==(t=s.subTeams)?void 0:t.length)===2;return(0,n.jsx)(o.az,{h:"100%","data-testid":a?"right_team":"left_team",children:(0,n.jsxs)(o.so,{align:"center",direction:a?"row-reverse":"row",children:[!c&&!m&&(0,n.jsx)(ee.e,{isDisabled:s.disabled,id:s.id,entity:i.bq7.Teams,location:u,type:et.b.Team,"data-testid":"event_team_follow"}),m?d:(0,n.jsx)(es.gT,{sport:l,team:s,ignoreLink:c,children:d})]})})};function ei(e){if(!e)return;let{wins:t,draws:s,losses:n}=e;return"".concat(t,"-").concat(n).concat(void 0!==s?"-".concat(s):"")}function er(){let{event:e}=(0,r.useContext)(l.y$),t=(0,S.g3)(),s=t?e.awayTeamSeasonHistoricalForm:e.homeTeamSeasonHistoricalForm,n=t?e.homeTeamSeasonHistoricalForm:e.awayTeamSeasonHistoricalForm;return{leftWLD:ei(s),rightWLD:ei(n)}}var el=s(33144),eo=s(58918);let ea=e=>{var t;let{team:s,isRight:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.so,{position:"absolute",bottom:"0px",left:i?"0px":"32px",zIndex:1,children:i?(0,n.jsx)(g.tFn,{fill:"mmaSpecific.blue.default"}):(0,n.jsx)(g.wOd,{fill:"mmaSpecific.red.default"})}),(0,n.jsx)(el.p,{hasFlag:!0,id:s.id,alpha2:null==(t=s.country)?void 0:t.alpha2,right:i,flagSize:20,size:48,sport:s.sport,gender:s.gender})]})};var ec=s(19240);function ed(e){var t;let{sport:s,team:r,seeding:l,isRight:o}=e;if((null==(t=r.subTeams)?void 0:t.length)===2)return(0,n.jsx)(eo.K,{sport:s,teams:r.subTeams,seeding:l});switch(s){case i.QCR.MMA:return(0,n.jsx)(ea,{team:r,isRight:o});case i.QCR.Tennis:return(0,n.jsx)(ec.e,{team:r,isRight:o,seeding:l});default:return(0,n.jsx)(el.p,{size:48,id:r.id,name:r.name})}}var eu=s(94604);let em=e=>{var t;let{team:s,isRight:i,additionalTeamInfo:r,maxW:l}=e,a=(0,S.g3)();return(null==(t=s.subTeams)?void 0:t.length)===2?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.EY,{as:"bdi",maxW:l,font:"display.micro",block:!0,ellipsis:!0,children:(0,n.jsx)(eu.Rm,{team:s.subTeams[0],short:!0})}),(0,n.jsx)(o.EY,{as:"bdi",maxW:l,font:"display.micro",block:!0,ellipsis:!0,children:(0,n.jsx)(eu.Rm,{team:s.subTeams[1],short:!0})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.EY,{as:"bdi",maxW:l,font:"display.micro",ellipsis:!0,block:!0,lineHeight:"16px",children:[a&&i?"@":null,(0,n.jsx)(eu.Rm,{team:s,short:!0})]}),r&&(0,n.jsx)(o.EY,{as:"bdi",maxW:l,font:"display.micro",color:"onSurface.nLv3",ellipsis:!0,block:!0,children:r})]})};function ex(e){var t;let{team:s,sport:a,isRight:c,disableFollow:d}=e,{event:u}=(0,r.useContext)(l.y$),m=d?{}:c?{mr:"sm"}:{ml:"sm"},x=(null==(t=s.subTeams)?void 0:t.length)===2,{leftWLD:f,rightWLD:g}=er(),j=c?g:f,h=a===i.QCR.Basketball&&u.status.type===i.XUj.InProgress;return(0,n.jsx)(en,{team:s,sport:a,isRight:c,disableFollow:d,children:(0,n.jsxs)(o.so,{position:"relative",justify:"center",...m,minW:d?[100,80,120]:void 0,children:[(0,n.jsx)(ed,{team:s,sport:a,isRight:c}),(0,n.jsx)(Z,{teamId:s.id,isRight:c}),(0,n.jsx)(o.so,{direction:"column",align:"center",style:{position:"absolute",bottom:x?-40:j?-36:-22,left:"50%",transform:"translateX(-50%)"},children:(0,n.jsx)(em,{team:s,additionalTeamInfo:h?void 0:j,isRight:c,maxW:[100,80,120]})})]})})}function ef(e){let{team:t,seeding:s,isRight:r,disableFollow:l}=e,a=l?{}:r?{mr:"sm"}:{ml:"sm"},c=t.gender&&t.ranking?t.gender===i.YT8.Male?"ATP ".concat(t.ranking,"."):"WTA ".concat(t.ranking,"."):void 0,d=l?[100,80,120]:void 0;return(0,n.jsx)(en,{sport:i.QCR.Tennis,team:t,isRight:r,disableFollow:l,children:(0,n.jsxs)(o.so,{position:"relative",justify:"flex-start",align:"center",...a,minW:d,children:[(0,n.jsx)(ed,{team:t,sport:i.QCR.Tennis,seeding:s,isRight:r}),(0,n.jsx)(o.az,{pl:"lg",children:(0,n.jsx)(em,{team:t,isRight:r,additionalTeamInfo:c,maxW:d})})]})})}let eg=e=>e.sport===i.QCR.Tennis?(0,n.jsx)(ef,{...e}):(0,n.jsx)(ex,{...e}),ej=(e,t)=>{let s=(0,N.cK)(t),i=(0,N.ef)(t);return e?{primary:"-"}:s||i?{primary:(0,n.jsx)(V.ib,{value:t}),secondary:(0,n.jsx)(d.A,{id:s?"today":"tomorrow"})}:{primary:(0,n.jsx)(V.XU,{value:t}),secondary:(0,n.jsx)(V.ib,{value:t})}};function eh(e){let{event:t,hasBorder:s=!1}=e,r=(0,m.hX)(),l=(0,N.pp)(t.startTimestamp),a=t.tournament.category.sport.slug===i.QCR.Tennis;return r?null:(0,n.jsx)(x.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{delta:t}=e,{primary:i,secondary:r}=ej(t<0,l);return(0,n.jsxs)(o.az,{borderLeft:s?"onSurface.nLv4":void 0,pl:s?"sm":void 0,children:[(0,n.jsx)(o.EY,{align:"center",font:"display.large",color:"onSurface.nLv1",block:!0,textTransform:"firstLetter",children:i}),(0,n.jsx)(o.EY,{align:a?"right":"center",font:"body.medium",color:"onSurface.nLv3",block:!0,children:r})]})}})}let ep=e=>e.player?"".concat(e.player.id):e.playerName?e.playerName:"Goal",ev=e=>{let t=[],s={};return e.forEach(e=>{let n=ep(e);t.includes(n)||t.push(n),s[n]?s[n].push(e):s[n]=[e]}),[t,s]},ey=e=>{let{teamGoals:t,isLeftTeam:s=!1}=e,[i,r]=ev(t),l=e=>Array.from(i).slice(e).reduce((e,t)=>{var s,n;return e+(null!=(n=null==(s=r[t])?void 0:s.length)?n:0)},0);return(0,n.jsx)(n.Fragment,{children:i.map((e,t)=>{var a,c,u;let m=e,x=null==(a=r[e])?void 0:a.find(e=>!!e.player),f=(null==x||null==(c=x.player)?void 0:c.shortName)||(null==x||null==(u=x.player)?void 0:u.name);return f?m=f:"Goal"===e&&(m=(0,n.jsx)(d.A,{id:r[e].length>1?"goals":"goal"})),(0,n.jsxs)(o.so,{children:[(t<3||4===i.length)&&r[e]&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(o.EY,{color:"onSurface.nLv3",fontSize:12,lineHeight:"16px",mr:"xxs",align:s?"right":"left",children:[m," ",r[e].map(e=>{var t;return"".concat(null==(t=e.time)?void 0:t.toString(),"'").concat(e.addedTime?"+".concat(e.addedTime):"").concat("penalty"===e.incidentClass?" (Pen.)":"ownGoal"===e.incidentClass?" (OG)":"")}).join(", ")]})}),3===t&&i.length>4&&(0,n.jsx)(o.EY,{as:"bdi",color:"onSurface.nLv3",fontSize:12,lineHeight:"16px",w:"fit-content",whiteSpace:"nowrap",children:(0,n.jsx)(d.A,{id:"event.goals.more",values:{n:l(t)}})})]},e)})})};var eb=s(34765);let eS=e=>16*Math.min(4,Math.max(e.homeScore.display||0,e.awayScore.display||0));function ew(e){let{incidents:t,isLoading:s}=(0,eb.L)(),{event:i}=(0,r.useContext)(l.y$),a=(0,S.g3)(),c=t.filter(e=>"goal"===e.incidentType&&e.time),d=(null==c?void 0:c.filter(e=>a?!e.isHome:e.isHome))||[],u=(null==c?void 0:c.filter(e=>a?e.isHome:!e.isHome))||[];return s?(0,n.jsx)(o.az,{h:eS(i)}):0===d.length&&0===u.length||(null==c?void 0:c.every(e=>!e.player&&!e.playerName))?null:(0,n.jsxs)(o.so,{w:"100%",justify:"center",grow:1,align:"flex-start",...e,"data-testid":"scorer_list",children:[(0,n.jsx)(o.so,{w:"100%",maxW:"148px",direction:"column",justify:"center",align:"flex-end",grow:1,mr:"lg",ml:"sm",children:d&&(0,n.jsx)(ey,{teamGoals:d,isLeftTeam:!0})}),(0,n.jsx)(o.az,{w:"16",children:(0,n.jsx)(g.NcS,{icon:"football-ball",fill:"secondary.default"})}),(0,n.jsx)(o.so,{w:"100%",maxW:"148px",direction:"column",justify:"center",align:"flex-start",grow:1,ml:"lg",mr:"sm",children:u&&(0,n.jsx)(ey,{teamGoals:u})})]})}let eT=()=>{let{event:e}=(0,r.useContext)(l.y$),t=new Date(1e3*e.startTimestamp);return(0,n.jsxs)(K.so,{align:"center",br:"lg",backgroundColor:"surface.s2",py:"xs",px:"sm",mb:"xs",h:"[26px]",children:[(0,n.jsx)(z.EY,{textStyle:"body.small",lineHeight:1,children:(0,n.jsx)(V.XU,{value:t,...N.or.fullDateWithLongYear})}),(0,n.jsx)(K.az,{w:"xs",h:"xs",br:"50%",bg:"neutrals.nLv1",mx:"sm",position:"relative"}),(0,n.jsx)(z.EY,{textStyle:"body.small",lineHeight:1,children:(0,n.jsx)(V.XU,{value:t,hour:"numeric",minute:"numeric"})})]})};function eL(e){let{activeTimeout:t}=e,{leftTeam:s,rightTeam:a}=(0,r.useContext)(l.y$),c=function(e){switch(e){case i.gVr.TeamTimeout:return"basketball_status_timeout_short";case i.gVr.ChallengeTimeout:return"basketball_status_coaches_challenge_short";case i.gVr.OfficialTimeout:return"basketball_status_referee_timeout";case i.gVr.TVTimeout:return"basketball_status_tv_timeout";default:return}}(t.type);if(!c)return null;let u=function(e,t,s){let n,r=e.type===i.gVr.TeamTimeout,l=e.teamId===t.id,o=e.teamId===s.id;return r&&(n=l?t.nameCode:o?s.nameCode:void 0),{teamName:n?"".concat(n," "):"",isLeftTeam:l,isRightTeam:o}}(t,s,a);return(0,n.jsxs)(o.so,{align:"center",gap:"xxs",bg:"sofaSingles.liveHighlight",br:"lg",pl:(null==u?void 0:u.isLeftTeam)?"xs":"sm",pr:(null==u?void 0:u.isRightTeam)?"xs":"sm",children:[(null==u?void 0:u.isLeftTeam)&&(0,n.jsx)(g.yiO,{fill:"sofaSingles.live"}),(0,n.jsxs)(o.EY,{font:"assistive.default",color:"sofaSingles.live",lineHeight:"16px",children:[null==u?void 0:u.teamName,(0,n.jsx)(d.A,{id:c})]}),(null==u?void 0:u.isRightTeam)&&(0,n.jsx)(g.DxT,{fill:"sofaSingles.live"})]})}let eC=e=>{let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:i}=e,r=(82-(t-1)*2)/t;return(0,n.jsxs)(o.so,{align:"center",gap:"sm",children:[i&&(0,n.jsx)(o.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,n.jsx)(d.A,{id:"basketball_status_timeout_short"})}),(0,n.jsx)(o.so,{gap:"xxs",children:Array(t).fill(0).map((e,t)=>(0,n.jsx)(o.az,{bg:t+1<=s?"secondary.default":"onSurface.nLv4",w:r,h:"4px"},"timeout-".concat(t)))}),!i&&(0,n.jsx)(o.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,n.jsx)(d.A,{id:"basketball_status_timeout_short"})})]})};function e_(e){let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:i}=e;return(0,n.jsx)(o.so,{align:"center",gap:"sm",children:t>7?(0,n.jsxs)(o.EY,{font:"assistive.default",color:"onSurface.nLv3",children:[(0,n.jsx)(d.A,{id:"basketball_status_timeout_short"}),": ".concat(s,"/").concat(t)]}):(0,n.jsx)(eC,{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:i})})}function eA(e){let{timeouts:t}=e,{totalTimeouts:s,activeTimeout:i}=t,[r,l]=(0,S.jr)(t,"homeTimeoutsRemaining","awayTimeoutsRemaining");return r&&l?(0,n.jsxs)(o.so,{justify:"space-between",align:"center",px:s>7?50:"md",pb:"sm",children:[(0,n.jsx)(e_,{totalTimeouts:s,remainingTimeouts:r,isLeftTeam:!0}),!!i&&(0,n.jsx)(eL,{activeTimeout:i}),(0,n.jsx)(e_,{totalTimeouts:s,remainingTimeouts:l})]}):null}let eE=e=>{var t,s;let{disableFollow:d,hasCountdown:m,hideIncidents:x,hideTimeouts:g}=e,{event:j,leftTeam:h,rightTeam:p,leftScore:v,rightScore:b}=(0,r.useContext)(l.y$),{leftWLD:w,rightWLD:T}=er(),L=j.tournament.category.sport.slug,C=j.status.type===i.XUj.InProgress,_=j.status.type===i.XUj.WillContinue,A=!!(0,S.gm)(j,"aggregatedWinnerCode")&&void 0!==v.aggregated&&void 0!==b.aggregated,E=j.status.type===i.XUj.Finished,Y=(0,c.sw)(j)&&!(0,c.ux)(j)&&j.status.type!==i.XUj.WillContinue&&!j.isAwarded,R=j.status.type===i.XUj.NotStarted&&(L!==i.QCR.MMA||(0,a.xO)(j)),k=!!h.subTeams&&2===h.subTeams.length,z=L===i.QCR.Basketball,W=!!(null==(t=j.timeouts)?void 0:t.homeTimeoutsRemaining)&&!!(null==(s=j.timeouts)?void 0:s.awayTimeoutsRemaining),F=!g&&z&&C&&W;return(0,n.jsxs)(o.az,{br:[void 0,"lg"],p:E?"0 0 sm 0":"sm 0 sm 0",children:[E&&(0,n.jsx)(o.so,{w:"100%",justify:"center",children:(0,n.jsx)(eT,{})}),(0,n.jsxs)(o.so,{h:k?96:w||T?100:86,py:"sm",px:"md",justify:"space-between",align:"center",children:[(0,n.jsx)(eg,{team:h,sport:L,seeding:j.homeTeamSeed,disableFollow:d}),(0,n.jsx)(o.az,{children:Y?(0,n.jsx)(q,{}):R?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eh,{event:j}),m&&(0,n.jsx)(f,{event:j})]}):(0,n.jsxs)(o.so,{direction:"column",w:"100%",align:"center",justify:"center",children:[A&&(0,n.jsx)(u,{}),(0,n.jsx)(O,{})]})}),(0,n.jsx)(eg,{team:p,sport:L,seeding:j.awayTeamSeed,disableFollow:d,isRight:!0})]}),F&&!!j.timeouts&&(0,n.jsx)(eA,{timeouts:j.timeouts}),L===i.QCR.MMA&&(C||_)&&j.fightState&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.cG,{}),(0,n.jsx)(y,{fightState:j.fightState})]}),L===i.QCR.Football&&!x&&(0,n.jsx)(ew,{})]})},eY=e=>{let{disableFollow:t}=e,{event:s,leftTeam:d,rightTeam:u}=(0,r.useContext)(l.y$),m=(0,c.rW)(s)&&!(0,c.ux)(s),x=s.status.code===i.sum.Walkover,f=void 0!==s.winnerCode,g=s.status.type===i.XUj.NotStarted&&(0,a.xO)(s),j=s.status.type===i.XUj.Finished;return(0,n.jsxs)(o.az,{br:[void 0,"lg"],children:[j&&(0,n.jsx)(o.so,{w:"100%",justify:"center",children:(0,n.jsx)(eT,{})}),(0,n.jsxs)(o.so,{py:"sm",px:"lg",justify:"space-between",align:"center",children:[(0,n.jsxs)(o.so,{direction:"column",gap:"sm",children:[(0,n.jsx)(eg,{team:d,sport:i.QCR.Tennis,seeding:s.homeTeamSeed,disableFollow:t}),(0,n.jsx)(eg,{team:u,sport:i.QCR.Tennis,seeding:s.awayTeamSeed,disableFollow:t})]}),m||x&&!f?(0,n.jsx)(q,{hasBorder:!0}):g?(0,n.jsx)(eh,{event:s,hasBorder:!0}):(0,n.jsx)(o.so,{direction:"column",w:"100%",align:"center",justify:"center",children:(0,n.jsx)(O,{})})]})]})},eR=e=>{let{disableFollow:t,hasCountdown:s,hideIncidents:o=!1,hideTimeouts:a=!1}=e,{event:c}=(0,r.useContext)(l.y$);return c.tournament.category.sport.slug===i.QCR.Tennis?(0,n.jsx)(eY,{disableFollow:t}):(0,n.jsx)(eE,{disableFollow:t,hasCountdown:s,hideIncidents:o,hideTimeouts:a})}},58918:(e,t,s)=>{s.d(t,{K:()=>a});var n=s(6029),i=s(33144),r=s(76356),l=s(70591),o=s(68379);let a=e=>{var t,s;let{sport:a,teams:c,seeding:d,size:u,hideFlags:m,ignoreLink:x}=e;return(0,n.jsxs)(r.so,{children:[(0,n.jsx)(l.gT,{sport:a,team:c[0],ignoreLink:x,children:(0,n.jsx)(i.p,{hasFlag:!0,id:c[0].id,name:c[0].name,size:u||40,alpha2:m||null==(t=c[0].country)?void 0:t.alpha2,boxProps:{mr:-8}})}),(0,n.jsx)(l.gT,{sport:a,team:c[1],ignoreLink:x,children:(0,n.jsx)(i.p,{hasFlag:!0,id:c[1].id,name:c[1].name,size:u||40,alpha2:m||null==(s=c[1].country)?void 0:s.alpha2,right:!0})}),(0,n.jsx)(o.J,{seed:d,styles:{transform:"translateX(100%)"}})]})}},68379:(e,t,s)=>{s.d(t,{J:()=>l});var n=s(6029),i=s(41249),r=s(55365);let l=e=>{let{seed:t,position:s="absolute",left:l,right:o,bottom:a=0,h:c=16,minW:d=24,styles:u,font:m="assistive.default",colorless:x}=e;return t?(0,n.jsx)(i.so,{display:"inline-flex",align:"center",justify:"center",position:s,bottom:a,left:l,right:o,br:"sm",bg:x?void 0:(0,r.mq)(t),h:c,minW:d,zIndex:i.Py.Button,style:u,children:(0,n.jsx)(i.EY,{font:m,color:x?"onSurface.nLv1":"surface.s1",lineHeight:1,children:t})}):null}},98559:(e,t,s)=>{s.d(t,{Ap:()=>a,FY:()=>c,Q6:()=>d,Zq:()=>f,xO:()=>u,zx:()=>x});var n=s(21377),i=s(494);s(45860),s(7263);var r=s(19168),l=s(3518),o=s(57126);let a=1708,c=19906;function d(e){let t=(0,i.d4)(o.YG);return t===l.i.Metric&&(e=e?Math.round((0,r.C6)(+e,"m").to("cm"))+" cm":"-"),t===l.i.Imperial&&(e=e?Math.round((0,r.C6)(+e,"m").to("in"))+'"':"-"),e}let u=e=>e.status.type===n.XUj.NotStarted&&1e3*e.startTimestamp>Date.now(),m=e=>{var t;return[e.stadium.name,e.city.name,(null==(t=e.country)?void 0:t.alpha2)||""].filter(e=>e.length>0).join(", ")},x=(e,t)=>e?m(e):t||"",f=(e,t)=>{let s=t===n.Jfo.Left,i=t===n.Jfo.Right,r=e===n.XUj.Finished&&!s&&!i,l=e===n.XUj.Canceled||e===n.XUj.Postponed;return{hasLeftTeamOpacity:l||r||i,hasRightTeamOpacity:l||r||s}}}}]);