!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]="efa83c3a-197c-4913-b866-42bfee4e0faf",e._sentryDebugIdIdentifier="sentry-dbid-efa83c3a-197c-4913-b866-42bfee4e0faf")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9536],{3518:(e,t,s)=>{s.d(t,{Z:()=>d,i:()=>o.i});var n=s(6029),i=s(90510),l=s(494),r=s(5339),o=s(5921),a=s(52905);function d(e){let{value:t,fromUnit:s}=e,d=(0,l.d4)(a.Y);if(!t)return null;if((0,r.C)(t,s).to("m")>=1e3)return(0,n.jsx)(c,{value:t,fromUnit:s});if(d===o.i.Imperial){let e=function(e,t){let s=(0,r.C)(e,t).to("feet"),n=Math.floor(s),i=Math.round((0,r.C)(s-Math.floor(s),"ft").to("in"));return 12===i&&(n+=1,i=0),{ft:n,in:i}}(t,s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Gr,{value:e.ft,style:"unit",unit:"foot",unitDisplay:"narrow"}),"\xa0",(0,n.jsx)(i.Gr,{value:e.in,style:"unit",unit:"inch",unitDisplay:"narrow"})]})}return(0,n.jsx)(i.Gr,{value:(0,r.C)(t,s).to("cm"),style:"unit",unit:"centimeter",unitDisplay:"short"})}function c(e){let{value:t,fromUnit:s}=e,d=(0,l.d4)(a.Y);return t?d===o.i.Imperial?(0,n.jsx)(i.Gr,{value:(0,r.C)(t,s).to("mile"),style:"unit",unit:"mile",maximumFractionDigits:1,unitDisplay:"short"}):(0,n.jsx)(i.Gr,{value:(0,r.C)(t,s).to("km"),style:"unit",unit:"kilometer",maximumFractionDigits:1,unitDisplay:"short"}):null}},6891:(e,t,s)=>{s.d(t,{N:()=>u});var n=s(6029),i=s(33144),l=s(21377),r=s(58918),o=s(76356),a=s(54409);let d=e=>{var t;let{team:s,isRight:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.so,{position:"absolute",bottom:"0",left:l?"0":"2xl",zIndex:"button",children:l?(0,n.jsx)(a.tFn,{fill:"mmaSpecific.blue.default"}):(0,n.jsx)(a.wOd,{fill:"mmaSpecific.red.default"})}),(0,n.jsx)(i.p,{hasFlag:!0,id:s.id,alpha2:null==(t=s.country)?void 0:t.alpha2,right:l,flagSize:20,size:48,sport:s.sport,gender:s.gender})]})};var c=s(19240);function u(e){var t;let{sport:s,team:o,seeding:a,isRight:u,hasFlag:x,size:m}=e;if((null==(t=o.subTeams)?void 0:t.length)===2)return(0,n.jsx)(r.K,{sport:s,teams:o.subTeams,seeding:a});switch(s){case l.QCR.MMA:return(0,n.jsx)(d,{team:o,isRight:u});case l.QCR.Tennis:return(0,n.jsx)(c.e,{team:o,isRight:u,seeding:a,hasFlag:x,size:m});default:return(0,n.jsx)(i.p,{size:48,id:o.id,name:o.name})}}},9536:(e,t,s)=>{s.d(t,{g:()=>n.A});var n=s(81424)},19240:(e,t,s)=>{s.d(t,{e:()=>o});var n=s(6029),i=s(33144),l=s(76356),r=s(68379);let o=e=>{var t;let{team:s,isRight:o,seeding:a,hasFlag:d=!0,size:c}=e;return null==s||!s.country||s.national?(0,n.jsx)(i.p,{size:48,id:s.id,name:s.name}):(0,n.jsxs)(l.az,{position:"relative",children:[d?(0,n.jsx)(i.p,{hasFlag:!0,id:s.id,name:s.name,size:null!=c?c:40,alpha2:null==(t=s.country)?void 0:t.alpha2,right:o}):(0,n.jsx)(i.p,{id:s.id,name:s.name,size:null!=c?c:20}),a&&(0,n.jsx)(r.J,{seed:a,left:o?"0":void 0,right:o?void 0:"0",h:"md",minW:"lg",textStyle:"assistive.micro",bottom:"2xs"})]})}},34765:(e,t,s)=>{s.d(t,{L:()=>a});var n=s(21377),i=s(55729),l=s(45860),r=s(62859),o=s(8703);function a(){let{event:e,initialIncidents:t}=(0,i.useContext)(r.y$),s={};e.status.type===n.XUj.InProgress&&(s.onErrorRetry=(e,t,s,n,i)=>{let{retryCount:l}=i;404===e.status&&setTimeout(()=>n({retryCount:l}),15e3)});let{data:a,isLoading:d,error:c}=(0,l.Ay)(n.bnp.incidents(e.id),(0,o.rf)(e,s));return{incidents:(null==a?void 0:a.incidents)||t||[],isLoading:(null==t||!t.length)&&d,isError:!!c}}},41698:(e,t,s)=>{s.d(t,{g:()=>u});var n=s(6029),i=s(4967),l=s(28349),r=s(76356),o=s(55729),a=s(90510),d=s(62859),c=s(54409);let u=e=>{let{isInDesktopHeader:t}=e,{event:s}=(0,o.useContext)(d.y$),u=new Date(1e3*s.startTimestamp);return(0,n.jsxs)(r.so,{align:"center",br:"lg",backgroundColor:t?void 0:"surface.s2",py:"xs",px:"sm",mb:t?void 0:"xs",h:t?void 0:"[26px]",gap:"xs",children:[t&&(0,n.jsx)(c.E8x,{fill:"onSurface.nLv3",w:"16px",h:"16px"}),(0,n.jsx)(l.EY,{textStyle:t?"display.micro":"body.small",color:t?"neutrals.nLv3":"neutrals.nLv1",lineHeight:1,children:(0,n.jsx)(a.XU,{value:u,...i.or.fullDateWithLongYear})}),(0,n.jsx)(r.az,{w:"xs",h:"xs",br:"50%",bg:t?"neutrals.nLv3":"neutrals.nLv1",position:"relative"}),(0,n.jsx)(l.EY,{textStyle:t?"display.micro":"body.small",color:t?"neutrals.nLv3":"neutrals.nLv1",lineHeight:1,children:(0,n.jsx)(a.XU,{value:u,hour:"numeric",minute:"numeric"})})]})}},58918:(e,t,s)=>{s.d(t,{K:()=>a});var n=s(6029),i=s(33144),l=s(76356),r=s(13266),o=s(68379);let a=e=>{var t,s;let{sport:a,teams:d,seeding:c,size:u,hideFlags:x,ignoreLink:m}=e;return(0,n.jsxs)(l.so,{children:[(0,n.jsx)(r.gT,{sport:a,team:d[0],ignoreLink:m,children:(0,n.jsx)(i.p,{hasFlag:!0,id:d[0].id,name:d[0].name,size:u||40,alpha2:x||null==(t=d[0].country)?void 0:t.alpha2,boxProps:{mr:-8}})}),(0,n.jsx)(r.gT,{sport:a,team:d[1],ignoreLink:m,children:(0,n.jsx)(i.p,{hasFlag:!0,id:d[1].id,name:d[1].name,size:u||40,alpha2:x||null==(s=d[1].country)?void 0:s.alpha2,right:!0})}),(0,n.jsx)(o.J,{seed:c,transform:"translateX(100%)"})]})}},68379:(e,t,s)=>{s.d(t,{J:()=>a});var n=s(6029),i=s(28349),l=s(76356),r=s(93338),o=s(55365);let a=e=>{let{seed:t,colorless:s,position:a="absolute",left:d,right:c,bottom:u="0",h:x="lg",minW:m="xl",textStyle:j="assistive.default",...g}=e;return t?(0,n.jsx)(l.ov,{display:"inline-flex",position:a,bottom:u,left:d,right:c,br:"sm",style:s?void 0:{background:r.S.var((0,o.mq)(t))},h:x,minW:m,zIndex:"button",...g,children:(0,n.jsx)(i.EY,{textStyle:j,color:s?"neutrals.nLv1":"surface.s1",lineHeight:1,children:t})}):null}},81424:(e,t,s)=>{s.d(t,{A:()=>eY});var n=s(6029),i=s(21377),l=s(55729),r=s(62859),o=s(28349),a=s(76356),d=s(98559),c=s(62827),u=s(90248);let x=()=>{let{event:e,leftScore:t,rightScore:s}=(0,l.useContext)(r.y$),a=e.status.type===i.XUj.InProgress;return(0,n.jsxs)(o.EY,{textStyle:"assistive.default",color:a?"status.live":"neutrals.nLv3",children:[(0,n.jsx)(u.A,{id:"event.aggregated.short"}),": ",t.aggregated," - "," ",s.aggregated]})};var m=s(21501),j=s(73022);function g(e){let{event:t}=e;return(0,m.hX)()?null:(0,n.jsx)(j.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{timeParts:t,delta:s,formattedTime:i}=e,[l]=t;return s<0||l>=1?null:(0,n.jsx)(o.EY,{mt:"sm",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv3",display:"block",children:i})}})}var h=s(93338),p=s(54409);let v={[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 f(e){let{fightState:t}=e;return v[t]?(0,n.jsx)(u.A,{id:v[t]}):null}let y=e=>[i.sAb.GroundGrappleBlue,i.sAb.Distance,i.sAb.Ground,i.sAb.GrappleBlue].includes(e),b=e=>[i.sAb.GroundGrappleRed,i.sAb.Distance,i.sAb.Ground,i.sAb.GrappleRed].includes(e),S=e=>{let{fightState:t}=e,s=b(t),l=y(t);return(0,n.jsxs)(a.ov,{w:"100%",h:"8xl",px:"sm",flexDirection:"column",children:[(0,n.jsx)(o.EY,{h:"lg",textStyle:"display.medium",mb:"md",mt:"sm",children:(0,n.jsx)(u.A,{id:"current_position_mma"})}),(0,n.jsxs)(a.so,{h:"2xl",w:"100%",p:"sm",backgroundColor:"surface.s2",br:"md",align:"center",justify:"space-between",children:[(0,n.jsx)(p.p0t,{fill:s?"mmaSpecific.red.default":"onSurface.nLv3"}),(0,n.jsx)(o.EY,{style:{color:h.S.var(function(e,t,s){return e===i.sAb.Pause?"colors.neutrals.nLv3":t&&!s?"colors.mma.red.primary":s&&!t?"colors.mma.blue.primary":"colors.neutrals.nLv1"}(t,s,l))},textStyle:"body.medium",children:(0,n.jsx)(f,{fightState:t})}),(0,n.jsx)(p.p0t,{fill:l?"mmaSpecific.blue.default":"onSurface.nLv3",style:{transform:"scaleX(-1)"}})]})]})};var w=s(8703),L=s(65078),C=s(87763);let T=e=>{let{isWinner:t}=e;return(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:t?"neutrals.nLv1":"neutrals.nLv3",display:"block",children:(0,n.jsx)(u.A,{id:t?"standings.label.wins":"standings.label.losses"})})},A=e=>{let{event:t}=e;return t.fightState===i.sAb.Pause?(0,n.jsx)(u.A,{id:"stoppage_mma"}):t.status.type===i.XUj.InProgress?(0,n.jsx)(u.A,{id:"in_progress_mma"}):(0,n.jsx)(C.fP,{id:(0,c.B_)(t)})},_=e=>{let{winnerCode:t,event:s}=e,l=(0,w.Mh)(s);return t===i.Jfo.NoContest||t===i.Jfo.Draw?(0,n.jsxs)(a.az,{children:[(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",textAlign:"center",display:"block",children:(0,n.jsx)(u.A,{id:t===i.Jfo.Draw?"draw":"no_contest_mma"})}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",textAlign:"center",display:"block",children:s.finalRound?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.A,{id:"status_round",values:{round:s.finalRound}})," ",l&&(0,n.jsxs)(n.Fragment,{children:["(",l,")"]})]}):(0,n.jsx)(n.Fragment,{children:"-"})})]}):t===i.Jfo.Left||t===i.Jfo.Right?(0,n.jsxs)(a.az,{children:[(0,n.jsxs)(a.so,{justify:"center",children:[(0,n.jsx)(T,{isWinner:t===i.Jfo.Left}),(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:"neutrals.nLv3",w:"xl",h:"xl",textAlign:"center",display:"block",children:"-"}),(0,n.jsx)(T,{isWinner:t===i.Jfo.Right})]}),(0,n.jsx)(a.so,{justify:"center",align:"center",h:"lg",children:(0,n.jsxs)(o.EY,{color:"neutrals.nLv3",textAlign:"center",px:"2xs",display:"block",children:[s.winType&&s.winType+" | ",(0,n.jsx)(u.A,{id:"status_round",values:{round:s.finalRound}})," ",l&&(0,n.jsxs)(n.Fragment,{children:["(",l,")"]})]})})]}):null},k=e=>{let{event:t}=e,{status:s,startTimestamp:l}=t,r=s.code===i.sum.Started,d=s.type===i.XUj.NotStarted,x=(0,w.Sw)(t),m=r||d&&1e3*l{let{innings:t,scoreKeys:s,isWinner:i,isLive:l}=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,{display:"block",textStyle:"display.medium",color:l?"status.live":i?"neutrals.nLv1":"neutrals.nLv3",children:W.gj(s)},e)})})};function R(){let{event:e,leftScore:t,rightScore:s,leftTeam:d,rightTeam:c}=(0,l.useContext)(r.y$),u=e.status.type===i.XUj.InProgress,x=e.winnerCode===i.Jfo.Left,m=e.winnerCode===i.Jfo.Right,j=[...new Set([...Object.keys(t.innings||{}),...Object.keys(s.innings||{})])].sort(),g=W.KY(j,t.innings),h=W.KY(j,s.innings);return(0,n.jsxs)(a.ov,{children:[(0,n.jsx)(a.az,{flexGrow:0,flexShrink:0,children:(0,n.jsxs)(a.so,{align:"flex-end",direction:"column",children:[(0,n.jsx)(Y,{innings:t.innings,scoreKeys:j,isWinner:x,isLive:u&&e.currentBattingTeamId===d.id}),(0,n.jsxs)(o.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:[g," ov"]})]})}),(0,n.jsx)(a.az,{alignSelf:"stretch",mx:"sm",children:(0,n.jsx)(a.cG,{color:"neutrals.nLv4",borderInlineEndStyle:"solid",orientation:"vertical"})}),(0,n.jsx)(a.az,{flexGrow:0,flexShrink:0,children:(0,n.jsxs)(a.so,{align:"flex-start",direction:"column",children:[(0,n.jsx)(Y,{innings:s.innings,scoreKeys:j,isWinner:m,isLive:u&&e.currentBattingTeamId===c.id}),(0,n.jsxs)(o.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:[h," ov"]})]})})]})}let I=e=>{let{leftScore:t,rightScore:s}=e;return void 0===t.bottomScore&&void 0===s.bottomScore?(0,n.jsx)(o.EY,{color:"status.live",children:(0,n.jsx)(u.A,{id:"started"})}):(0,n.jsxs)(a.so,{columnGap:"xs",children:[void 0!==t.bottomScore&&void 0!==s.bottomScore&&(0,n.jsxs)(a.so,{children:[(0,n.jsx)(o.EY,{color:"status.live",children:t.bottomScore}),(0,n.jsx)(o.EY,{color:"status.live",children:"-"}),(0,n.jsx)(o.EY,{color:"status.live",children:s.bottomScore})]}),void 0!==t.bottomScoreExtra&&void 0!==s.bottomScoreExtra&&(0,n.jsxs)(a.so,{children:[(0,n.jsxs)(o.EY,{color:"status.live",children:["(",t.bottomScoreExtra]}),(0,n.jsx)(o.EY,{color:"status.live",children:"-"}),(0,n.jsxs)(o.EY,{color:"status.live",children:[s.bottomScoreExtra,")"]})]})]})};var F=s(82169),z=s(69759);let U=e=>{let{eventId:t,throwing:s,leftScore:i,rightScore:l}=e,{isDesktopLarge:r}=(0,o.$c)();return(0,n.jsxs)(a.so,{columnGap:"xs",align:"center",children:[s===z.ai.Home?(0,n.jsx)(p.v1,{fill:"sofaSingles.live"}):(0,n.jsx)(a.az,{w:"lg"}),(0,n.jsxs)(a.so,{justify:"center",align:"center",columnGap:"xs",children:[(0,n.jsx)(F.cU,{eventId:t,changeKey:"homeScore.display",score:i.topScore,fontSize:r?28:20,h:r?30:22,w:r?52:36,fontWeight:"bold",color:"sofaSingles.live"}),(0,n.jsx)(o.EY,{fontSize:r?"2xl":"xl",fontWeight:700,color:"status.live",children:"-"}),(0,n.jsx)(F.cU,{eventId:t,changeKey:"awayScore.display",score:l.topScore,fontSize:r?28:20,h:r?30:22,w:r?52:36,fontWeight:"bold",color:"sofaSingles.live",align:"flex-start"})]}),s===z.ai.Away?(0,n.jsx)(p.v1,{fill:"sofaSingles.live"}):(0,n.jsx)(a.az,{w:"lg"})]})},X=e=>{let{event:t,homeScore:s,awayScore:i}=e,l=(0,z.J1)(t,s),r=(0,z.J1)(t,i);return(0,n.jsxs)(a.so,{direction:"column",gap:"sm",align:"center",children:[(0,n.jsx)(U,{eventId:t.id,throwing:t.firstToServe,leftScore:l,rightScore:r}),(0,n.jsx)(I,{leftScore:l,rightScore:r})]})};var G=s(87930);let D=()=>{let{event:e,leftScore:t,rightScore:s}=(0,l.useContext)(r.y$);return e.status.type===i.XUj.InProgress?(0,n.jsx)(X,{event:e,homeScore:t,awayScore:s}):(0,n.jsx)(G.A,{})};var Q=s(62042);let P=(e,t,s)=>Object.keys(e).filter(n=>s.includes(n)&&void 0!==e[n]&&void 0!==t[n]),J=(e,t,s,n,i,l)=>s&&i===l?"onColor.default":(n?e>t:t>e)?"onSurface.nLv1":"onSurface.nLv3",N=(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,i)=>e?"sofaSingles.live":n&&i&&(t?n>i:i>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",H=(e,t,s,n)=>{let l=e.status.type===i.XUj.Finished;if(e.status.type===i.XUj.InProgress||e.status.code===i.sum.Interrupted){var r,o;return n?null!=(r=t.point)?r:0:null!=(o=s.point)?o:0}if(l)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"},K=["period1","period2","period3","period4","period5"],M=()=>{let{event:e,leftScore:t,rightScore:s}=(0,l.useContext)(r.y$),d=e.status.type===i.XUj.InProgress,c=P(t,s,K),x=c?c.length-1:0,m=void 0!==e.winnerCode,j=e.status.type===i.XUj.Finished&&e.status.code===i.sum.Walkover,g=e.status.type===i.XUj.Finished&&[i.sum.HomeDefaulted,i.sum.AwayDefaulted].includes(e.status.code),h=(0,n.jsx)(p.OXq,{position:"absolute",w:"12",h:"16",className:(0,Q.AH)({left:"-lg",fill:"secondary.default"})});return(0,n.jsxs)(a.so,{w:"100%",justify:"flex-end",children:[c.map((i,l)=>(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",align:"flex-end",py:"xs",children:[(0,n.jsxs)(a.az,{position:"relative",children:[1===e.firstToServe&&d&&0===l&&h,(0,n.jsx)(F.cU,{eventId:e.id,changeKey:"homeScore.".concat(i),score:t[i],fontWeight:"bold",color:J(t[i],s[i],d,!0,l,x),backgroundColor:d&&l===x?"sofaSingles.live":"unset"})]}),(0,n.jsxs)(a.az,{position:"relative",children:[2===e.firstToServe&&d&&0===l&&h,(0,n.jsx)(F.cU,{eventId:e.id,changeKey:"awayScore.".concat(i),score:s[i],fontWeight:"bold",color:J(t[i],s[i],d,!1,l,x),backgroundColor:d&&l===x?"sofaSingles.live":"unset"})]})]},i)),j&&m&&(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",py:"xs",children:[(0,n.jsx)(a.az,{children:1===e.winnerCode&&(0,n.jsx)(o.EY,{color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"walkover"})})}),(0,n.jsx)(a.az,{children:2===e.winnerCode&&(0,n.jsx)(o.EY,{color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"walkover"})})})]}),(void 0!==t.current&&void 0!==s.current||d||j||g)&&(0,n.jsxs)(a.so,{direction:"column",h:"100%",justify:"space-between",gap:"2xl",children:[(0,n.jsxs)(a.ov,{h:"xl",mb:"2xs",children:[(0,n.jsx)(a.cG,{orientation:"vertical",borderInlineEndStyle:"solid",color:"neutrals.nLv4",mx:"sm"}),(0,n.jsx)(F.cU,{eventId:e.id,score:H(e,t,s,!0),height:d?"16px":"24px",fontSize:d?"14px":"18px",pt:d?0:"xxs",fontWeight:"bold",color:N(d,!0,e.winnerCode,t.current,s.current)})]}),(0,n.jsxs)(a.ov,{h:"xl",mt:"2xs",children:[(0,n.jsx)(a.cG,{orientation:"vertical",borderInlineEndStyle:"solid",color:"neutrals.nLv4",mx:"sm"}),(0,n.jsx)(F.cU,{eventId:e.id,score:H(e,t,s,!1),height:d?"16px":"24px",fontSize:d?"14px":"18px",pt:d?0:"xxs",fontWeight:"bold",color:N(d,!1,e.winnerCode,t.current,s.current)})]})]})]})};var B=s(31105);let O=["period1","period2","period3","period4","period5"],V=()=>{let{event:e,leftScore:t,rightScore:s}=(0,l.useContext)(r.y$),o=(0,L.gm)(e,"aggregatedWinnerCode"),d=P(t,s,O),c=d?d.length-1:0,u=void 0!==t.overtime&&void 0!==s.overtime,x=e.status.type===i.XUj.InProgress,m=o===i.Jfo.Left,j=o===i.Jfo.Right;return(0,n.jsxs)(a.so,{w:"100%",justify:"flex-end",gap:"sm",children:[d.map((i,l)=>(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",align:"flex-end",gap:"sm",children:[(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",children:(0,n.jsx)(B.c,{eventId:e.id,changeKey:"homeScore.".concat(i),score:t[i],fontWeight:"bold",color:J(t[i],s[i],!u&&x,!0,l,c),backgroundColor:x&&l===c&&!u?"sofaSingles.live":"unset"})}),(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",children:(0,n.jsx)(B.c,{eventId:e.id,changeKey:"awayScore.".concat(i),score:s[i],fontWeight:"bold",color:J(t[i],s[i],!u&&x,!1,l,c),backgroundColor:x&&l===c&&!u?"sofaSingles.live":"unset"})})]},i)),u&&(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",align:"flex-end",gap:"sm",children:[(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",opacity:!x&&((null==t?void 0:t.overtime)||0)<((null==s?void 0:s.overtime)||0)?"[0.75]":void 0,children:(0,n.jsx)(B.c,{eventId:e.id,changeKey:"homeScore.overtime",score:t.overtime,fontWeight:"bold",color:x?"onSurface.nLv1":"sofaSingles.value",backgroundColor:x?"sofaSingles.value":"unset"})}),(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",opacity:!x&&((null==t?void 0:t.overtime)||0)>((null==s?void 0:s.overtime)||0)?"[0.75]":void 0,children:(0,n.jsx)(B.c,{eventId:e.id,changeKey:"awayScore.overtime",score:s.overtime,fontWeight:"bold",color:x?"onSurface.nLv1":"sofaSingles.value",backgroundColor:x?"sofaSingles.value":"unset"})})]}),(void 0!==t.current&&void 0!==s.current||x)&&(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",align:"center",children:[(0,n.jsxs)(a.ov,{h:"[44px]",position:"relative",children:[(0,n.jsx)(a.cG,{orientation:"vertical",borderInlineEndStyle:"solid",color:"neutrals.nLv4",h:"xl",mx:"sm"}),(0,n.jsx)(B.c,{eventId:e.id,score:t.current,changeKey:"leftScore.current",height:"22px",fontWeight:"bold",fontSize:"18px",color:$(x,!0,e.winnerCode,t.current,s.current)}),m&&(0,n.jsx)(a.az,{position:"absolute",top:"sm",right:"-xs",children:(0,n.jsx)(p.UFI,{fill:"onSurface.nLv1"})})]}),(0,n.jsxs)(a.ov,{h:"[44px]",position:"relative",children:[(0,n.jsx)(a.cG,{orientation:"vertical",borderInlineEndStyle:"solid",color:"neutrals.nLv4",h:"xl",mx:"sm"}),(0,n.jsx)(B.c,{eventId:e.id,score:s.current,changeKey:"rightScore.current",height:"22px",fontWeight:"bold",fontSize:"18px",color:$(x,!1,e.winnerCode,t.current,s.current)}),j&&(0,n.jsx)(a.az,{position:"absolute",top:"sm",right:"-xs",children:(0,n.jsx)(p.UFI,{fill:"onSurface.nLv1"})})]})]})]})};function q(){let{event:e}=(0,l.useContext)(r.y$);switch(e.tournament.category.sport.slug){case i.QCR.Cricket:return(0,n.jsx)(R,{});case i.QCR.MMA:return(0,n.jsx)(E,{event:e});case i.QCR.Tennis:return(0,n.jsx)(M,{});case i.QCR.Darts:return(0,n.jsx)(D,{});case i.QCR.Volleyball:return(0,n.jsx)(V,{});default:return(0,n.jsx)(G.A,{})}}var Z=s(4967),ee=s(90510);function et(e){let{hasBorder:t=!1}=e,{event:s,leftScore:d,rightScore:x}=(0,l.useContext)(r.y$),m="number"==typeof d.current&&"number"==typeof x.current,j=(0,L.gm)(s,"winnerCode"),g=c.Ig.includes(s.status.code)&&j,h=g&&j===i.Jfo.Left,p=g&&j===i.Jfo.Right,v=s.tournament.category.sport.slug===i.QCR.Tennis,f=s.status.type;if(s.status.code===i.sum.Retired?f="retired":s.status.code===i.sum.Walkover?f="walkover":(s.status.code===i.sum.HomeDefaulted||s.status.code===i.sum.AwayDefaulted)&&(f="defaulted"),/^abandoned/i.test(s.status.description)&&(f="abandoned"),s.status.code===i.sum.Postponed||s.status.code===i.sum.Canceled||s.status.code===i.sum.Walkover){let e=(0,Z.cK)(s.startTimestamp),l=(0,Z.ef)(s.startTimestamp);return(0,n.jsxs)(a.az,{borderStart:t?"1px solid {colors.neutrals.nLv4}":void 0,maxW:{mdToLg:"[100px]"},pl:t?"sm":void 0,children:[!v&&s.status.code===i.sum.Walkover&&g&&(0,n.jsxs)(a.so,{justify:"center",align:"center",gap:"sm",children:[(0,n.jsx)(o.EY,{textStyle:"display.large",color:h?"neutrals.nLv1":"neutrals.nLv3",children:h?"W":p?"L":""}),(0,n.jsx)(o.EY,{textStyle:"display.large",color:"neutrals.nLv3",children:" - "}),(0,n.jsx)(o.EY,{textStyle:"display.large",color:p?"neutrals.nLv1":"neutrals.nLv3",children:p?"W":h?"L":""})]}),(0,n.jsx)(o.EY,{textStyle:"display.large",textAlign:"center",display:"block",children:(0,n.jsx)(C.fP,{id:f})}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",textAlign:v?"end":"center",display:"block",children:e||l?(0,n.jsx)(u.A,{id:e?"today":"tomorrow"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ee.XU,{value:1e3*s.startTimestamp}),", ",(0,n.jsx)(ee.ib,{value:1e3*s.startTimestamp})]})})]})}return(0,n.jsxs)(a.az,{children:[(0,n.jsxs)(a.az,{textAlign:"center",children:[(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:h?"neutrals.nLv1":"neutrals.nLv3",children:m?d.current:h?"W":p?"L":""}),(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:"neutrals.nLv3",children:" - "}),(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:p?"neutrals.nLv1":"neutrals.nLv3",children:m?x.current:p?"W":h?"L":""})]}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",textAlign:"center",display:"block",children:(0,n.jsx)(C.fP,{id:f})})]})}let es=e=>{let{teamId:t,isRight:s}=e,{event:o}=(0,l.useContext)(r.y$);return!function(e,t){let{homeTeam:s,bonusInfo:n}=e,l=s.id===t?null==n?void 0:n.hasHomeBonus:null==n?void 0:n.hasAwayBonus;return(0,w.c5)(e)===i.QCR.Basketball&&e.status.type===i.XUj.InProgress&&l}(o,t)?null:(0,n.jsx)(a.ov,{w:"xl",br:"sm",bg:"status.val",position:"absolute",bottom:"0",left:s?"0":void 0,right:s?void 0:"0",textStyle:"assistive.default",color:"onColor.primary",children:"B"})};var en=s(46009),ei=s(8973),el=s(13266);let er=e=>{var t;let{team:s,sport:r,isRight:o,disableFollow:d,children:c,isWide:u}=e,x=(0,l.useContext)(en.w),m=(null==(t=s.subTeams)?void 0:t.length)===2;return(0,n.jsx)(a.az,{h:u?void 0:"100%",children:(0,n.jsxs)(a.so,{align:"center",direction:o?"row-reverse":"row",children:[!d&&!m&&(0,n.jsx)(en.e,{isDisabled:s.disabled,id:s.id,entity:i.bq7.Teams,location:x,type:ei.b.Team}),m?c:(0,n.jsx)(el.gT,{sport:r,team:s,children:c})]})})};function eo(e){if(!e)return;let{wins:t,draws:s,losses:n}=e;return"".concat(t,"-").concat(n).concat(void 0!==s?"-".concat(s):"")}function ea(){let{event:e}=(0,l.useContext)(r.y$),t=(0,L.g3)(),s=t?e.awayTeamSeasonHistoricalForm:e.homeTeamSeasonHistoricalForm,n=t?e.homeTeamSeasonHistoricalForm:e.awayTeamSeasonHistoricalForm;return{leftWLD:eo(s),rightWLD:eo(n)}}var ed=s(6891),ec=s(94604);let eu=e=>{var t;let{team:s,isRight:i,additionalTeamInfo:l,isWide:r}=e,a=(0,L.g3)();return(null==(t=s.subTeams)?void 0:t.length)===2?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[200px]":"[120px]"},textStyle:r?"display.medium":"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(ec.Rm,{team:s.subTeams[0],short:!0})}),(0,n.jsx)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[200px]":"[120px]"},textStyle:r?"display.medium":"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(ec.Rm,{team:s.subTeams[1],short:!0})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[200px]":"[120px]"},textStyle:r?"display.medium":"display.micro",truncate:!0,display:"block",lineHeight:"16px",textAlign:"start",children:[a&&i?"@":null,(0,n.jsx)(ec.Rm,{team:s,short:!0})]}),l&&(0,n.jsx)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[200px]":"[120px]"},textStyle:r?"display.small":"display.micro",color:"neutrals.nLv3",truncate:!0,display:"block",textAlign:"start",children:l})]})};function ex(e){var t;let{team:s,sport:o,isRight:d,disableFollow:c,isWide:u}=e,{event:x}=(0,l.useContext)(r.y$),m=(null==(t=s.subTeams)?void 0:t.length)===2,{leftWLD:j,rightWLD:g}=ea(),h=d?g:j,p=o===i.QCR.Basketball&&x.status.type===i.XUj.InProgress;return(0,n.jsx)(er,{team:s,sport:o,isRight:d,disableFollow:c,isWide:u,children:(0,n.jsxs)(a.so,{position:"relative",direction:d||!u?"row":"row-reverse",justify:"center",align:"center",gap:"sm",mr:!c&&d?"sm":void 0,ml:c||d?void 0:"sm",minW:c&&!u?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,px:u?"sm":void 0,children:[(0,n.jsx)(ed.N,{team:s,sport:o,isRight:d}),(0,n.jsx)(es,{teamId:s.id,isRight:d}),(0,n.jsx)(a.so,{direction:"column",align:u?d?"start":"end":"center",style:{position:"absolute",bottom:u?"50%":m?-40:h?-36:-22,left:u?d?void 0:"0":"50%",right:u&&d?"0":void 0,transform:u?d?"translate(100%,50%)":"translate(-100%,50%)":"translateX(-50%)"},children:(0,n.jsx)(eu,{team:s,additionalTeamInfo:p?void 0:h,isRight:d,isWide:u})})]})})}function em(e){let{team:t,seeding:s,disableFollow:l}=e,r=t.gender&&t.ranking?t.gender===i.YT8.Male?"ATP ".concat(t.ranking,"."):"WTA ".concat(t.ranking,"."):void 0;return(0,n.jsx)(er,{sport:i.QCR.Tennis,team:t,disableFollow:l,children:(0,n.jsxs)(a.so,{position:"relative",justify:"flex-start",align:"center",marginInlineStart:l?void 0:"sm",minW:l?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,gap:"lg",children:[(0,n.jsx)(ed.N,{team:t,sport:i.QCR.Tennis,seeding:s}),(0,n.jsx)("div",{children:(0,n.jsx)(eu,{team:t,additionalTeamInfo:r})})]})})}let ej=(e,t)=>{let s=(0,Z.cK)(t),i=(0,Z.ef)(t);return e?{primary:"-"}:s||i?{primary:(0,n.jsx)(ee.ib,{value:t}),secondary:(0,n.jsx)(u.A,{id:s?"today":"tomorrow"})}:{primary:(0,n.jsx)(ee.XU,{value:t}),secondary:(0,n.jsx)(ee.ib,{value:t})}};function eg(e){let{event:t,hasBorder:s=!1}=e,l=(0,m.hX)(),r=(0,Z.pp)(t.startTimestamp),d=[i.QCR.Volleyball,i.QCR.Tennis].includes(t.tournament.category.sport.slug);return l?null:(0,n.jsx)(j.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{delta:t}=e,{primary:i,secondary:l}=ej(t<0,r);return(0,n.jsxs)(a.az,{borderInlineStart:s?"1px solid {colors.neutrals.nLv4}":void 0,paddingInlineStart:s?"sm":void 0,children:[(0,n.jsx)(o.EY,{textAlign:"center",textStyle:"display.large",display:"block",className:(0,Q.AH)({"&:first-letter":{textTransform:"capitalize"}}),children:i}),(0,n.jsx)(o.EY,{textAlign:d?"end":"center",textStyle:"body.medium",color:"neutrals.nLv3",display:"block",children:l})]})}})}var eh=s(24159);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]},ef=e=>{let{teamGoals:t,isLeftTeam:s=!1}=e,[i,l]=ev(t),r=e=>Array.from(i).slice(e).reduce((e,t)=>{var s,n;return e+(null!=(n=null==(s=l[t])?void 0:s.length)?n:0)},0);return(0,n.jsx)(n.Fragment,{children:i.map((e,t)=>{var d;let c=e,x=null==(d=l[e])?void 0:d.find(e=>!!e.player);return(null==x?void 0:x.player)?c=(0,n.jsx)(eh.c,{entity:x.player}):"Goal"===e&&(c=(0,n.jsx)(u.A,{id:l[e].length>1?"goals":"goal"})),(0,n.jsxs)(a.so,{children:[(t<3||4===i.length)&&l[e]&&(0,n.jsxs)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",mr:"2xs",textAlign:s?"end":"start",children:[c," ",(0,n.jsx)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",children:l[e].map(e=>{let t=-1===e.time||void 0===e.time?"-":e.time.toString(),s=e.addedTime?" +".concat(e.addedTime):"",n="penalty"===e.incidentClass?" (Pen.)":"ownGoal"===e.incidentClass?" (OG)":"";return"".concat(t).concat("-"!==t?"'":"").concat(s).concat(n)}).join(", ")})]}),3===t&&i.length>4&&(0,n.jsx)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",w:"fit",whiteSpace:"nowrap",children:(0,n.jsx)(u.A,{id:"event.goals.more",values:{n:r(t)}})})]},e)})})};var ey=s(34765);let eb=e=>16*Math.min(4,Math.max(e.homeScore.display||0,e.awayScore.display||0));function eS(e){let{isWide:t}=e,{incidents:s,isLoading:i}=(0,ey.L)(),{event:o}=(0,l.useContext)(r.y$),d=(0,L.g3)(),c=s.filter(e=>"goal"===e.incidentType&&e.time),u=(null==c?void 0:c.filter(e=>d?!e.isHome:e.isHome))||[],x=(null==c?void 0:c.filter(e=>d?e.isHome:!e.isHome))||[];return i?(0,n.jsx)("div",{style:{height:eb(o)}}):0===u.length&&0===x.length||(null==c?void 0:c.every(e=>!e.player&&!e.playerName))?null:(0,n.jsxs)(a.so,{w:"100%",justify:"center",grow:1,align:"flex-start",pt:t?"sm":void 0,children:[(0,n.jsx)(a.so,{w:"100%",direction:"column",justify:"center",align:"flex-end",grow:1,mr:"lg",ml:"sm",children:u&&(0,n.jsx)(ef,{teamGoals:u,isLeftTeam:!0})}),(0,n.jsx)(a.az,{w:"lg",children:(0,n.jsx)(p.NcS,{icon:"football-ball",fill:"onSurface.nLv3"})}),(0,n.jsx)(a.so,{w:"100%",direction:"column",justify:"center",align:"flex-start",grow:1,ml:"lg",mr:"sm",children:x&&(0,n.jsx)(ef,{teamGoals:x})})]})}var ew=s(41698);function eL(e){let{activeTimeout:t}=e,{leftTeam:s,rightTeam:d}=(0,l.useContext)(r.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 x=function(e,t,s){let n,l=e.type===i.gVr.TeamTimeout,r=e.teamId===t.id,o=e.teamId===s.id;return l&&(n=r?t.nameCode:o?s.nameCode:void 0),{teamName:n?"".concat(n," "):"",isLeftTeam:r,isRightTeam:o}}(t,s,d);return(0,n.jsxs)(a.so,{align:"center",gap:"2xs",bg:"status.liveHighlight",br:"lg",pl:(null==x?void 0:x.isLeftTeam)?"xs":"sm",pr:(null==x?void 0:x.isRightTeam)?"xs":"sm",children:[(null==x?void 0:x.isLeftTeam)&&(0,n.jsx)(p.yiO,{fill:"sofaSingles.live"}),(0,n.jsxs)(o.EY,{textStyle:"assistive.default",color:"status.live",children:[null==x?void 0:x.teamName,(0,n.jsx)(u.A,{id:c})]}),(null==x?void 0:x.isRightTeam)&&(0,n.jsx)(p.DxT,{fill:"sofaSingles.live"})]})}let eC=e=>{let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:i}=e,l=(82-(t-1)*2)/t;return(0,n.jsxs)(a.so,{align:"center",gap:"sm",children:[i&&(0,n.jsx)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"basketball_status_timeout_short"})}),(0,n.jsx)(a.so,{gap:"2xs",children:Array(t).fill(0).map((e,t)=>(0,n.jsx)(a.az,{bg:t+1<=s?"secondary.default":"neutrals.nLv4",style:{width:l},h:"xs"},"timeout-".concat(t)))}),!i&&(0,n.jsx)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"basketball_status_timeout_short"})})]})};function eT(e){let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:i}=e;return(0,n.jsx)(a.so,{align:"center",gap:"sm",children:t>7?(0,n.jsxs)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,n.jsx)(u.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,[l,r]=(0,L.jr)(t,"homeTimeoutsRemaining","awayTimeoutsRemaining");return l&&r?(0,n.jsxs)(a.so,{justify:"space-between",align:"center",px:s>7?"4xl":"md",mx:s>7?"2xs":void 0,pb:"sm",children:[(0,n.jsx)(eT,{totalTimeouts:s,remainingTimeouts:l,isLeftTeam:!0}),!!i&&(0,n.jsx)(eL,{activeTimeout:i}),(0,n.jsx)(eT,{totalTimeouts:s,remainingTimeouts:r})]}):null}let e_=e=>{var t,s;let{disableFollow:u,hasCountdown:m,hideIncidents:j,hideTimeouts:h,isWide:p=!1}=e,{event:v,leftTeam:f,rightTeam:y,leftScore:b,rightScore:w}=(0,l.useContext)(r.y$),{leftWLD:C,rightWLD:T}=ea(),{textDirection:A}=(0,o.$c)(),_="rtl"===A,k=v.tournament.category.sport.slug,E=v.status.type===i.XUj.InProgress,W=v.status.type===i.XUj.WillContinue,Y=!!(0,L.gm)(v,"aggregatedWinnerCode")&&void 0!==b.aggregated&&void 0!==w.aggregated,R=v.status.type===i.XUj.Finished&&!p,I=(0,c.sw)(v)&&!(0,c.ux)(v)&&v.status.type!==i.XUj.WillContinue&&!v.isAwarded,F=v.status.type===i.XUj.NotStarted&&(k!==i.QCR.MMA||(0,d.xO)(v)),z=!!f.subTeams&&2===f.subTeams.length,U=k===i.QCR.Basketball,X=!!(null==(t=v.timeouts)?void 0:t.homeTimeoutsRemaining)&&!!(null==(s=v.timeouts)?void 0:s.awayTimeoutsRemaining),G=!h&&U&&E&&X;return(0,n.jsxs)(a.az,{br:{md:"lg"},pt:R?void 0:"sm",pb:"sm",children:[R&&(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(ew.g,{})}),(0,n.jsxs)(a.so,{h:p?void 0:z?"10xl":C||T?"[100px]":"[86px]",py:"sm",px:{base:"md",md:"xs"},justify:p?"center":"space-between",align:"center",children:[(0,n.jsx)(ex,{team:f,sport:k,seeding:v.homeTeamSeed,disableFollow:u,isWide:p,isRight:p&&_}),(0,n.jsx)(a.az,{minW:p?"[152px]":void 0,children:I?(0,n.jsx)(et,{}):F?(0,n.jsxs)("div",{children:[(0,n.jsx)(eg,{event:v}),m&&(0,n.jsx)(g,{event:v})]}):(0,n.jsxs)(a.so,{direction:"column",align:"center",justify:"center",children:[Y&&(0,n.jsx)(x,{}),(0,n.jsx)(q,{})]})}),(0,n.jsx)(ex,{team:y,sport:k,seeding:v.awayTeamSeed,disableFollow:u,isWide:p,isRight:!p||!_})]}),G&&!!v.timeouts&&(0,n.jsx)(eA,{timeouts:v.timeouts}),k===i.QCR.MMA&&(E||W)&&v.fightState&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.cG,{}),(0,n.jsx)(S,{fightState:v.fightState})]}),k===i.QCR.Football&&!j&&(0,n.jsx)(eS,{isWide:p})]})},ek=e=>{let{disableFollow:t,isWide:s}=e,{event:o,leftTeam:u,rightTeam:x}=(0,l.useContext)(r.y$),m=(0,c.rW)(o)&&!(0,c.ux)(o),j=o.status.code===i.sum.Walkover,g=void 0!==o.winnerCode,h=o.status.type===i.XUj.NotStarted&&(0,d.xO)(o),p=o.status.type===i.XUj.Finished&&!s;return(0,n.jsxs)(a.az,{br:{md:"lg"},maxW:s?"[400px]":void 0,mx:"auto",children:[p&&(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(ew.g,{})}),(0,n.jsxs)(a.so,{py:"sm",px:"lg",justify:"space-between",align:"center",children:[(0,n.jsxs)(a.so,{direction:"column",gap:"sm",children:[(0,n.jsx)(em,{team:u,sport:i.QCR.Tennis,seeding:o.homeTeamSeed,disableFollow:t}),(0,n.jsx)(em,{team:x,sport:i.QCR.Tennis,seeding:o.awayTeamSeed,disableFollow:t})]}),m||j&&!g?(0,n.jsx)(et,{hasBorder:!0}):h?(0,n.jsx)(eg,{event:o,hasBorder:!0}):(0,n.jsx)(a.ov,{flexDirection:"column",w:s?void 0:"100%",children:(0,n.jsx)(q,{})})]})]})};function eE(e){let{team:t,disableFollow:s}=e;return(0,n.jsx)(er,{sport:i.QCR.Volleyball,team:t,disableFollow:s,children:(0,n.jsxs)(a.so,{position:"relative",justify:"flex-start",align:"center",marginInlineStart:s?void 0:"sm",minW:s?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,gap:"lg",children:[(0,n.jsx)(ed.N,{team:t,sport:i.QCR.Volleyball}),(0,n.jsx)("div",{children:(0,n.jsx)(eu,{team:t})})]})})}let eW=e=>{let{disableFollow:t,isWide:s}=e,{event:o,leftTeam:d,rightTeam:u}=(0,l.useContext)(r.y$),x=o.status.type===i.XUj.Finished&&!s,m=o.status.type===i.XUj.NotStarted,j=(0,c.sw)(o)&&!(0,c.ux)(o)&&o.status.type!==i.XUj.WillContinue&&!o.isAwarded;return(0,n.jsxs)(a.az,{br:{md:"lg"},maxW:s?"[400px]":void 0,mx:"auto",children:[x&&(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(ew.g,{})}),(0,n.jsxs)(a.so,{py:"sm",px:"lg",justify:"space-between",align:"center",children:[(0,n.jsxs)(a.so,{direction:"column",gap:"sm",children:[(0,n.jsx)(eE,{team:d,disableFollow:t}),(0,n.jsx)(eE,{team:u,disableFollow:t})]}),j?(0,n.jsx)(et,{}):m?(0,n.jsx)(a.az,{px:"md",children:(0,n.jsx)(eg,{event:o,hasBorder:!0})}):(0,n.jsx)(a.ov,{flexDirection:"column",w:s?void 0:"100%",children:(0,n.jsx)(q,{})})]})]})},eY=e=>{let{disableFollow:t,hasCountdown:s,hideIncidents:o=!1,hideTimeouts:a=!1,isWide:d}=e,{event:c}=(0,l.useContext)(r.y$);switch(c.tournament.category.sport.slug){case i.QCR.Tennis:return(0,n.jsx)(ek,{disableFollow:t,isWide:d});case i.QCR.Volleyball:return(0,n.jsx)(eW,{disableFollow:t,isWide:d});default:return(0,n.jsx)(e_,{disableFollow:t,hasCountdown:s,hideIncidents:o,hideTimeouts:a,isWide:d})}}},98559:(e,t,s)=>{s.d(t,{Ap:()=>a,FY:()=>d,Q6:()=>c,Zq:()=>j,xO:()=>u,zx:()=>m});var n=s(21377),i=s(494),l=s(62827),r=s(3518),o=s(57126);let a=1708,d=19906;function c(e){let t=(0,i.d4)(o.YG);return t===r.i.Metric&&(e=e?Math.round((0,l.C6)(+e,"m").to("cm"))+" cm":"-"),t===r.i.Imperial&&(e=e?Math.round((0,l.C6)(+e,"m").to("in"))+'"':"-"),e}let u=e=>e.status.type===n.XUj.NotStarted&&1e3*e.startTimestamp>Date.now(),x=e=>{var t;return[e.stadium.name,e.city.name,(null==(t=e.country)?void 0:t.alpha2)||""].filter(e=>e.length>0).join(", ")},m=(e,t)=>e?x(e):t||"",j=(e,t)=>{let s=t===n.Jfo.Left,i=t===n.Jfo.Right,l=e===n.XUj.Finished&&!s&&!i,r=e===n.XUj.Canceled||e===n.XUj.Postponed;return{hasLeftTeamOpacity:r||l||i,hasRightTeamOpacity:r||l||s}}}}]);