!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]="5747db25-1d08-48c4-af1e-3e2dd31e6516",e._sentryDebugIdIdentifier="sentry-dbid-5747db25-1d08-48c4-af1e-3e2dd31e6516")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15361],{8945:(e,t,s)=>{s.d(t,{e:()=>o});var n=s(6029),r=s(33144),i=s(20325),l=s(80322);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)(r.p,{size:48,id:s.id,name:s.name}):(0,n.jsxs)(i.az,{position:"relative",children:[d?(0,n.jsx)(r.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)(r.p,{id:s.id,name:s.name,size:null!=c?c:20}),a&&(0,n.jsx)(l.J,{seed:a,left:o?"0":void 0,right:o?void 0:"0",h:"md",minW:"lg",textStyle:"assistive.micro",bottom:"2xs"})]})}},15361:(e,t,s)=>{s.d(t,{g:()=>n.A});var n=s(37866)},24045:(e,t,s)=>{s.d(t,{K:()=>a});var n=s(6029),r=s(33144),i=s(20325),l=s(11219),o=s(80322);let a=e=>{var t,s;let{sport:a,teams:d,seeding:c,size:u,hideFlags:x,ignoreLink:m}=e;return(0,n.jsxs)(i.so,{children:[(0,n.jsx)(l.gT,{sport:a,team:d[0],ignoreLink:m,children:(0,n.jsx)(r.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)(l.gT,{sport:a,team:d[1],ignoreLink:m,children:(0,n.jsx)(r.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%)"})]})}},30821:(e,t,s)=>{s.d(t,{Z:()=>d,i:()=>o.i});var n=s(6029),r=s(90510),i=s(494),l=s(77264),o=s(13988),a=s(63752);function d(e){let{value:t,fromUnit:s}=e,d=(0,i.d4)(a.Y);if(!t)return null;if((0,l.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,l.C)(e,t).to("feet"),n=Math.floor(s),r=Math.round((0,l.C)(s-Math.floor(s),"ft").to("in"));return 12===r&&(n+=1,r=0),{ft:n,in:r}}(t,s);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Gr,{value:e.ft,style:"unit",unit:"foot",unitDisplay:"narrow"}),"\xa0",(0,n.jsx)(r.Gr,{value:e.in,style:"unit",unit:"inch",unitDisplay:"narrow"})]})}return(0,n.jsx)(r.Gr,{value:(0,l.C)(t,s).to("cm"),style:"unit",unit:"centimeter",unitDisplay:"short"})}function c(e){let{value:t,fromUnit:s}=e,d=(0,i.d4)(a.Y);return t?d===o.i.Imperial?(0,n.jsx)(r.Gr,{value:(0,l.C)(t,s).to("mile"),style:"unit",unit:"mile",maximumFractionDigits:1,unitDisplay:"short"}):(0,n.jsx)(r.Gr,{value:(0,l.C)(t,s).to("km"),style:"unit",unit:"kilometer",maximumFractionDigits:1,unitDisplay:"short"}):null}},37866:(e,t,s)=>{s.d(t,{A:()=>eF});var n=s(6029),r=s(46787),i=s(55729),l=s(18970),o=s(51569),a=s(20325),d=s(947),c=s(52466),u=s(36882),x=s(70251),m=s(93760),j=s(14831),h=s(90248);let g=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(l.y$),a=e.status.type===r.XUj.InProgress;return(0,n.jsxs)(o.EY,{textStyle:"assistive.default",color:a?"status.live":"neutrals.nLv3",children:[(0,n.jsx)(h.A,{id:"event.aggregated.short"}),": ",t.aggregated," - "," ",s.aggregated]})};var p=s(60235),v=s(70923);function y(e){let{event:t}=e;return(0,p.hX)()?null:(0,n.jsx)(v.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{timeParts:t,delta:s,formattedTime:r}=e,[i]=t;return s<0||i>=1?null:(0,n.jsx)(o.EY,{mt:"sm",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv3",display:"block",children:r})}})}var f=s(93338);let b={[r.sAb.Distance]:"mma_position_stance",[r.sAb.Ground]:"ground_mma",[r.sAb.GroundGrappleRed]:"ground_grapple_red_mma",[r.sAb.GroundGrappleBlue]:"ground_grapple_blue_mma",[r.sAb.GrappleRed]:"mma_position_clinch_by_red",[r.sAb.GrappleBlue]:"mma_position_clinch_by_blue",[r.sAb.Pause]:"pause"};function S(e){let{fightState:t}=e;return b[t]?(0,n.jsx)(h.A,{id:b[t]}):null}let w=e=>{let{fightState:t}=e,s=[r.sAb.GroundGrappleRed,r.sAb.Distance,r.sAb.Ground,r.sAb.GrappleRed].includes(t),i=[r.sAb.GroundGrappleBlue,r.sAb.Distance,r.sAb.Ground,r.sAb.GrappleBlue].includes(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)(h.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)(c.p0t,{color:s?"mma.red.primary":"neutrals.nLv3"}),(0,n.jsx)(o.EY,{style:{color:f.S.var(function(e,t,s){return e===r.sAb.Pause?"colors.neutrals.nLv3":t&&!s?"colors.mma.red.primary":s&&!t?"colors.mma.blue.primary":"colors.neutrals.nLv1"}(t,s,i))},textStyle:"body.medium",children:(0,n.jsx)(S,{fightState:t})}),(0,n.jsx)(c.p0t,{color:i?"mma.blue.primary":"neutrals.nLv3",style:{transform:"scaleX(-1)"}})]})]})};function L(e){let{children:t,label:s,...r}=e;return(0,n.jsxs)(o.$n,{...r,gap:"xs",variant:"clear",px:"sm",py:"xs",br:"sm",backgroundColor:"surface.s2","aria-label":s,display:{md:"hidden"},children:[t,(0,n.jsx)(o.EY,{textStyle:"assistive.default",textTransform:"initial",children:(0,n.jsx)(h.A,{id:s})})]})}var C=s(41164),T=s(67087),_=s(81484);let k=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)(h.A,{id:t?"standings.label.wins":"standings.label.losses"})})},A=e=>{let{event:t}=e;return t.fightState===r.sAb.Pause?(0,n.jsx)(h.A,{id:"stoppage_mma"}):t.status.type===r.XUj.InProgress?(0,n.jsx)(h.A,{id:"in_progress_mma"}):(0,n.jsx)(_.fP,{id:(0,j.B_)(t)})},E=e=>{let{winnerCode:t,event:s}=e,i=(0,C.Mh)(s);return t===r.Jfo.NoContest||t===r.Jfo.Draw?(0,n.jsxs)(a.az,{children:[(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",textAlign:"center",display:"block",children:(0,n.jsx)(h.A,{id:t===r.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)(h.A,{id:"status_round",values:{round:s.finalRound}})," ",i&&(0,n.jsxs)(n.Fragment,{children:["(",i,")"]})]}):(0,n.jsx)(n.Fragment,{children:"-"})})]}):t===r.Jfo.Left||t===r.Jfo.Right?(0,n.jsxs)(a.az,{children:[(0,n.jsxs)(a.so,{justify:"center",children:[(0,n.jsx)(k,{isWinner:t===r.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)(k,{isWinner:t===r.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)(h.A,{id:"status_round",values:{round:s.finalRound}})," ",i&&(0,n.jsxs)(n.Fragment,{children:["(",i,")"]})]})})]}):null},Y=e=>{let{event:t}=e,{status:s,startTimestamp:i}=t,l=s.code===r.sum.Started,d=s.type===r.XUj.NotStarted,c=(0,C.Sw)(t),u=l||d&&1e3*i{let{basesCovered:t}=e;return(0,n.jsxs)(a.so,{gap:"2xs",maxW:"[34px]",flexWrap:"wrap",transform:"[rotate(45deg)]",children:[(0,n.jsx)(U,{variant:t.includes(2)?"covered":"empty"}),(0,n.jsx)(U,{variant:t.includes(1)?"covered":"empty"}),(0,n.jsx)(U,{variant:t.includes(3)?"covered":"empty"}),(0,n.jsx)(U,{variant:"placeholder"})]})},U=(0,a.I4)("div",{base:{w:"lg",h:"lg"},variants:{variant:{empty:{bg:"neutrals.nLv4"},covered:{bg:"status.val"},placeholder:{opacity:0}}}}),X=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(l.y$);return e.currentInningStatus?(0,n.jsxs)(a.BJ,{w:"100%",align:"center",children:[(0,n.jsx)(o.EY,{color:"status.live",mt:"xs",children:(0,n.jsx)(h.A,{id:"T"===e.currentInningStatus.inningHalf?"baseball_top_of_inning_number":"baseball_bottom_of_inning_number",values:{n:e.currentInningStatus.inning}})}),(0,n.jsxs)(a.so,{gap:"xl",mt:"xs",children:[(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:"status.live",children:t.current}),e.currentInningStatus.basesCovered&&(0,n.jsx)(z,{basesCovered:e.currentInningStatus.basesCovered}),(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:"status.live",children:s.current})]}),(0,n.jsxs)(a.so,{gap:"xs",children:[(0,n.jsxs)(o.EY,{color:"status.live",children:[e.currentInningStatus.ballCount,"-",e.currentInningStatus.strikeCount]}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",lineHeight:"1",children:"|"}),(0,n.jsxs)(a.so,{gap:"xs",children:[(0,n.jsx)(o.EY,{color:"status.live",children:e.currentInningStatus.outCount})," ",(0,n.jsx)(o.EY,{color:"neutrals.nLv3",children:(0,n.jsx)(h.A,{id:"baseball_outs_counter",values:{n:e.currentInningStatus.outCount}})})]})]})]}):null},G=()=>{let{event:e}=(0,i.useContext)(l.y$);return e.status.type!==r.XUj.InProgress||R()(e.currentInningStatus)?(0,n.jsx)(F.A,{}):(0,n.jsx)(X,{})};var D=s(40134);let Q=e=>{let{innings:t,scoreKeys:s,isWinner:r,isLive:i}=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:i?"status.live":r?"neutrals.nLv1":"neutrals.nLv3",children:D.gj(s)},e)})})};function P(){let{event:e,leftScore:t,rightScore:s,leftTeam:d,rightTeam:c}=(0,i.useContext)(l.y$),u=e.status.type===r.XUj.InProgress,x=e.winnerCode===r.Jfo.Left,m=e.winnerCode===r.Jfo.Right,j=[...new Set([...Object.keys(t.innings||{}),...Object.keys(s.innings||{})])].sort(),h=D.KY(j,t.innings),g=D.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)(Q,{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:[h," ov"]})]})}),(0,n.jsx)(a.az,{alignSelf:"stretch",mx:"sm",children:(0,n.jsx)(a.cG,{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)(Q,{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:[g," ov"]})]})})]})}let M=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)(h.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 $=s(98835),B=s(13980);let H=e=>{let{eventId:t,throwing:s,leftScore:r,rightScore:i}=e,{isDesktopLarge:l}=(0,o.$c)();return(0,n.jsxs)(a.so,{columnGap:"xs",align:"center",children:[s===B.ai.Home?(0,n.jsx)(c.v1,{color:"status.live"}):(0,n.jsx)(a.az,{w:"lg"}),(0,n.jsxs)(a.so,{justify:"center",align:"center",columnGap:"xs",children:[(0,n.jsx)($.cU,{eventId:t,changeKey:"homeScore.display",score:r.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?"2xl":"xl",fontWeight:700,color:"status.live",children:"-"}),(0,n.jsx)($.cU,{eventId:t,changeKey:"awayScore.display",score:i.topScore,fontSize:l?28:20,h:l?30:22,w:l?52:36,fontWeight:"bold",color:"sofaSingles.live",align:"flex-start"})]}),s===B.ai.Away?(0,n.jsx)(c.v1,{color:"status.live"}):(0,n.jsx)(a.az,{w:"lg"})]})},J=e=>{let{event:t,homeScore:s,awayScore:r}=e,i=(0,B.J1)(t,s),l=(0,B.J1)(t,r);return(0,n.jsxs)(a.so,{direction:"column",gap:"sm",align:"center",children:[(0,n.jsx)(H,{eventId:t.id,throwing:t.firstToServe,leftScore:i,rightScore:l}),(0,n.jsx)(M,{leftScore:i,rightScore:l})]})},N=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(l.y$);return e.status.type===r.XUj.InProgress?(0,n.jsx)(J,{event:e,homeScore:t,awayScore:s}):(0,n.jsx)(F.A,{})},K=(e,t,s)=>Object.keys(e).filter(n=>s.includes(n)&&void 0!==e[n]&&void 0!==t[n]),O=(e,t,s,n,r,i)=>s&&r===i?"onColor.default":(n?e>t:t>e)?"onSurface.nLv1":"onSurface.nLv3",V=(e,t,s,n,r)=>e?"secondary.default":n&&r&&(t?n>r:r>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",q=(e,t,s,n,r)=>e?"sofaSingles.live":n&&r&&(t?n>r:r>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",Z=(e,t,s,n)=>{let i=e.status.type===r.XUj.Finished;if(e.status.type===r.XUj.InProgress||e.status.code===r.sum.Interrupted){var l,o;return n?null!=(l=t.point)?l:0:null!=(o=s.point)?o:0}if(i)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"},ee=["period1","period2","period3","period4","period5"],et=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(l.y$),d=e.status.type===r.XUj.InProgress,u=K(t,s,ee),x=u?u.length-1:0,m=void 0!==e.winnerCode,j=e.status.type===r.XUj.Finished&&e.status.code===r.sum.Walkover,g=e.status.type===r.XUj.Finished&&[r.sum.HomeDefaulted,r.sum.AwayDefaulted].includes(e.status.code),p=(0,n.jsx)(c.OXq,{position:"absolute",w:"12",h:"16",left:"-lg",color:"secondary.default"});return(0,n.jsxs)(a.so,{w:"100%",justify:"flex-end",children:[u.map((r,i)=>(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===i&&p,(0,n.jsx)($.cU,{eventId:e.id,changeKey:"homeScore.".concat(r),score:t[r],fontWeight:"bold",color:O(t[r],s[r],d,!0,i,x),backgroundColor:d&&i===x?"sofaSingles.live":"unset"})]}),(0,n.jsxs)(a.az,{position:"relative",children:[2===e.firstToServe&&d&&0===i&&p,(0,n.jsx)($.cU,{eventId:e.id,changeKey:"awayScore.".concat(r),score:s[r],fontWeight:"bold",color:O(t[r],s[r],d,!1,i,x),backgroundColor:d&&i===x?"sofaSingles.live":"unset"})]})]},r)),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)(h.A,{id:"walkover"})})}),(0,n.jsx)(a.az,{children:2===e.winnerCode&&(0,n.jsx)(o.EY,{color:"neutrals.nLv3",children:(0,n.jsx)(h.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",mx:"sm"}),(0,n.jsx)($.cU,{eventId:e.id,score:Z(e,t,s,!0),height:d?"16px":"24px",fontSize:d?"14px":"18px",pt:d?0:"xxs",fontWeight:"bold",color:V(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",mx:"sm"}),(0,n.jsx)($.cU,{eventId:e.id,score:Z(e,t,s,!1),height:d?"16px":"24px",fontSize:d?"14px":"18px",pt:d?0:"xxs",fontWeight:"bold",color:V(d,!1,e.winnerCode,t.current,s.current)})]})]})]})};var es=s(86300);let en=["period1","period2","period3","period4","period5"],er=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(l.y$),o=(0,T.gm)(e,"aggregatedWinnerCode"),d=K(t,s,en),u=d?d.length-1:0,x=void 0!==t.overtime&&void 0!==s.overtime,m=e.status.type===r.XUj.InProgress,j=o===r.Jfo.Left,h=o===r.Jfo.Right;return(0,n.jsxs)(a.so,{w:"100%",justify:"flex-end",gap:"sm",children:[d.map((r,i)=>(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)(es.c,{eventId:e.id,changeKey:"homeScore.".concat(r),score:t[r],fontWeight:"bold",color:O(t[r],s[r],!x&&m,!0,i,u),backgroundColor:m&&i===u&&!x?"sofaSingles.live":"unset"})}),(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",children:(0,n.jsx)(es.c,{eventId:e.id,changeKey:"awayScore.".concat(r),score:s[r],fontWeight:"bold",color:O(t[r],s[r],!x&&m,!1,i,u),backgroundColor:m&&i===u&&!x?"sofaSingles.live":"unset"})})]},r)),x&&(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:!m&&((null==t?void 0:t.overtime)||0)<((null==s?void 0:s.overtime)||0)?"[0.75]":void 0,children:(0,n.jsx)(es.c,{eventId:e.id,changeKey:"homeScore.overtime",score:t.overtime,fontWeight:"bold",color:m?"onSurface.nLv1":"sofaSingles.value",backgroundColor:m?"sofaSingles.value":"unset"})}),(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",opacity:!m&&((null==t?void 0:t.overtime)||0)>((null==s?void 0:s.overtime)||0)?"[0.75]":void 0,children:(0,n.jsx)(es.c,{eventId:e.id,changeKey:"awayScore.overtime",score:s.overtime,fontWeight:"bold",color:m?"onSurface.nLv1":"sofaSingles.value",backgroundColor:m?"sofaSingles.value":"unset"})})]}),(void 0!==t.current&&void 0!==s.current||m)&&(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",h:"xl",mx:"sm"}),(0,n.jsx)(es.c,{eventId:e.id,score:t.current,changeKey:"leftScore.current",height:"22px",fontWeight:"bold",fontSize:"18px",color:q(m,!0,e.winnerCode,t.current,s.current)}),j&&(0,n.jsx)(a.az,{position:"absolute",top:"sm",right:"-xs",children:(0,n.jsx)(c.UFI,{color:"neutrals.nLv1"})})]}),(0,n.jsxs)(a.ov,{h:"[44px]",position:"relative",children:[(0,n.jsx)(a.cG,{orientation:"vertical",h:"xl",mx:"sm"}),(0,n.jsx)(es.c,{eventId:e.id,score:s.current,changeKey:"rightScore.current",height:"22px",fontWeight:"bold",fontSize:"18px",color:q(m,!1,e.winnerCode,t.current,s.current)}),h&&(0,n.jsx)(a.az,{position:"absolute",top:"sm",right:"-xs",children:(0,n.jsx)(c.UFI,{color:"neutrals.nLv1"})})]})]})]})};function ei(){let{event:e}=(0,i.useContext)(l.y$);switch(e.tournament.category.sport.slug){case r.QCR.Cricket:return(0,n.jsx)(P,{});case r.QCR.MMA:return(0,n.jsx)(I,{event:e});case r.QCR.Tennis:return(0,n.jsx)(et,{});case r.QCR.Darts:return(0,n.jsx)(N,{});case r.QCR.Volleyball:return(0,n.jsx)(er,{});case r.QCR.Baseball:return(0,n.jsx)(G,{});default:return(0,n.jsx)(F.A,{})}}var el=s(22375),eo=s(90510);function ea(e){let{hasBorder:t=!1}=e,{event:s,leftScore:d,rightScore:c}=(0,i.useContext)(l.y$),u="number"==typeof d.current&&"number"==typeof c.current,x=(0,T.gm)(s,"winnerCode"),m=j.Ig.includes(s.status.code)&&x,g=m&&x===r.Jfo.Left,p=m&&x===r.Jfo.Right,v=s.tournament.category.sport.slug===r.QCR.Tennis,y=s.status.type;if(s.status.code===r.sum.Retired?y="retired":s.status.code===r.sum.Walkover?y="walkover":(s.status.code===r.sum.HomeDefaulted||s.status.code===r.sum.AwayDefaulted)&&(y="defaulted"),/^abandoned/i.test(s.status.description)&&(y="abandoned"),s.status.code===r.sum.Postponed||s.status.code===r.sum.Canceled||s.status.code===r.sum.Walkover){let e=(0,el.cK)(s.startTimestamp),i=(0,el.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===r.sum.Walkover&&m&&(0,n.jsxs)(a.so,{justify:"center",align:"center",gap:"sm",children:[(0,n.jsx)(o.EY,{textStyle:"display.large",color:g?"neutrals.nLv1":"neutrals.nLv3",children:g?"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":g?"L":""})]}),(0,n.jsx)(o.EY,{textStyle:"display.large",textAlign:"center",display:"block",children:(0,n.jsx)(_.fP,{id:y})}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",textAlign:v?"end":"center",display:"block",children:e||i?(0,n.jsx)(h.A,{id:e?"today":"tomorrow"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eo.XU,{value:1e3*s.startTimestamp}),", ",(0,n.jsx)(eo.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:g?"neutrals.nLv1":"neutrals.nLv3",children:u?d.current:g?"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:u?c.current:p?"W":g?"L":""})]}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",textAlign:"center",display:"block",children:(0,n.jsx)(_.fP,{id:y})})]})}let ed=e=>{let{teamId:t,isRight:s}=e,{event:o}=(0,i.useContext)(l.y$);return!function(e,t){let{homeTeam:s,bonusInfo:n}=e,i=s.id===t?null==n?void 0:n.hasHomeBonus:null==n?void 0:n.hasAwayBonus;return(0,C.c5)(e)===r.QCR.Basketball&&e.status.type===r.XUj.InProgress&&i}(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 ec=s(15340),eu=s(11219);let ex=e=>{var t;let{team:s,sport:l,isRight:o,disableFollow:d,children:c,isWide:x,disableLink:m}=e,j=(0,i.useContext)(ec.w),h=(null==(t=s.subTeams)?void 0:t.length)===2;return(0,n.jsx)(a.az,{h:x?void 0:"100%",children:(0,n.jsxs)(a.so,{align:"center",direction:o?"row-reverse":"row",children:[!d&&!h&&(0,n.jsx)(ec.e,{isDisabled:s.disabled,id:s.id,entity:r.bq7.Teams,location:j,type:u.b.Team}),(0,n.jsx)(eu.gT,{sport:l,team:s,ignoreLink:m||h,children:c})]})})};function em(e){if(!e)return;let{wins:t,draws:s,losses:n}=e;return"".concat(t,"-").concat(n).concat(void 0!==s?"-".concat(s):"")}function ej(){let{event:e}=(0,i.useContext)(l.y$),t=(0,T.g3)(),s=t?e.awayTeamSeasonHistoricalForm:e.homeTeamSeasonHistoricalForm,n=t?e.homeTeamSeasonHistoricalForm:e.awayTeamSeasonHistoricalForm;return{leftWLD:em(s),rightWLD:em(n)}}var eh=s(77419),eg=s(88505);let ep=e=>{var t;let{team:s,isRight:r,additionalTeamInfo:i,isWide:l}=e,a=(0,T.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:l?"[200px]":"[120px]"},textStyle:l?"display.medium":"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(eg.Rm,{team:s.subTeams[0],short:!0})}),(0,n.jsx)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:l?"[200px]":"[120px]"},textStyle:l?"display.medium":"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(eg.Rm,{team:s.subTeams[1],short:!0})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:l?"[156px]":"[120px]"},textStyle:l?"display.medium":"display.micro",truncate:!0,display:"block",textAlign:"start",children:[a&&r?"@":null,(0,n.jsx)(eg.Rm,{team:s,short:!0})]}),i&&(0,n.jsx)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:l?"[200px]":"[120px]"},textStyle:l?"display.small":"display.micro",color:"neutrals.nLv3",truncate:!0,display:"block",textAlign:"start",children:i})]})};function ev(e){var t;let{team:s,sport:o,isRight:d,disableFollow:c,isWide:u,disableLink:x}=e,{event:m}=(0,i.useContext)(l.y$),j=(null==(t=s.subTeams)?void 0:t.length)===2,{leftWLD:h,rightWLD:g}=ej(),p=d?g:h,v=o===r.QCR.Basketball&&m.status.type===r.XUj.InProgress;return(0,n.jsx)(ex,{team:s,sport:o,isRight:d,disableFollow:c,isWide:u,disableLink:x,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)(eh.N,{team:s,sport:o,isRight:d,disableLink:x}),(0,n.jsx)(ed,{teamId:s.id,isRight:d}),(0,n.jsx)(a.so,{direction:"column",align:u?d?"start":"end":"center",style:{position:"absolute",bottom:u?"50%":j?-40:p?-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)(ep,{team:s,additionalTeamInfo:v?void 0:p,isRight:d,isWide:u})})]})})}function ey(e){let{team:t,seeding:s,disableFollow:i,disableLink:l}=e,o=t.gender&&t.ranking?t.gender===r.YT8.Male?"ATP ".concat(t.ranking,"."):"WTA ".concat(t.ranking,"."):void 0;return(0,n.jsx)(ex,{sport:r.QCR.Tennis,team:t,disableFollow:i,disableLink:l,children:(0,n.jsxs)(a.so,{position:"relative",justify:"flex-start",align:"center",marginInlineStart:i?void 0:"sm",minW:i?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,gap:"lg",children:[(0,n.jsx)(eh.N,{team:t,sport:r.QCR.Tennis,seeding:s,disableLink:l}),(0,n.jsx)("div",{children:(0,n.jsx)(ep,{team:t,additionalTeamInfo:o})})]})})}var ef=s(62042);function eb(e){let{event:t,hasBorder:s=!1,centered:i}=e,l=(0,p.hX)(),d=(0,el.pp)(t.startTimestamp),c=[r.QCR.Volleyball,r.QCR.Tennis].includes(t.tournament.category.sport.slug);return l?null:(0,n.jsx)(v.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{delta:t}=e,{primary:r,secondary:l}=((e,t)=>{let s=(0,el.cK)(t),r=(0,el.ef)(t);return e?{primary:"-"}:s||r?{primary:(0,n.jsx)(eo.ib,{value:t}),secondary:(0,n.jsx)(h.A,{id:s?"today":"tomorrow"})}:{primary:(0,n.jsx)(eo.XU,{value:t}),secondary:(0,n.jsx)(eo.ib,{value:t})}})(t<0,d);return(0,n.jsxs)(a.az,{borderInlineStart:s?"1px solid {colors.neutrals.nLv4}":void 0,paddingInlineStart:s?"sm":void 0,children:[(0,n.jsx)(a.az,{minW:"sm",h:"xl",position:"relative",children:(0,n.jsx)(o.EY,{display:"block",textAlign:"center",textStyle:"display.large",className:(0,ef.AH)({"&:first-letter":{textTransform:"capitalize"}},i?{position:"absolute",left:"[50%]",transform:{_ltr:"translateX(-50%)",_rtl:"translateX(50%)"},whiteSpace:"nowrap"}:void 0),children:r})}),(0,n.jsx)(o.EY,{textAlign:c?"end":"center",textStyle:"body.medium",color:"neutrals.nLv3",display:"block",children:l})]})}})}var eS=s(94156);let ew=e=>{let{teamGoals:t,isLeftTeam:s=!1}=e,[r,i]=(e=>{let t=[],s={};return e.forEach(e=>{let n=(e=>e.player?"".concat(e.player.id):e.playerName?e.playerName:"Goal")(e);t.includes(n)||t.push(n),s[n]?s[n].push(e):s[n]=[e]}),[t,s]})(t);return(0,n.jsx)(n.Fragment,{children:r.map((e,t)=>{var l;let d=e,c=null==(l=i[e])?void 0:l.find(e=>!!e.player);return(null==c?void 0:c.player)?d=(0,n.jsx)(eS.c,{entity:c.player}):"Goal"===e&&(d=(0,n.jsx)(h.A,{id:i[e].length>1?"goals":"goal"})),(0,n.jsxs)(a.so,{children:[(t<3||4===r.length)&&i[e]&&(0,n.jsxs)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",mr:"2xs",textAlign:s?"end":"start",children:[d," ",(0,n.jsx)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",children:i[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&&r.length>4&&(0,n.jsx)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",w:"fit",whiteSpace:"nowrap",children:(0,n.jsx)(h.A,{id:"event.goals.more",values:{n:Array.from(r).slice(t).reduce((e,t)=>{var s,n;return e+(null!=(n=null==(s=i[t])?void 0:s.length)?n:0)},0)}})})]},e)})})};var eL=s(67430);function eC(e){var t;let{isWide:s}=e,{incidents:r,isLoading:o}=(0,eL.L)(),{event:d}=(0,i.useContext)(l.y$),u=(0,T.g3)(),x=r.filter(e=>"goal"===e.incidentType&&e.time),m=(null==x?void 0:x.filter(e=>u?!e.isHome:e.isHome))||[],j=(null==x?void 0:x.filter(e=>u?e.isHome:!e.isHome))||[];return o?(0,n.jsx)("div",{style:{height:16*Math.min(4,Math.max((t=d).homeScore.display||0,t.awayScore.display||0))}}):0===m.length&&0===j.length||(null==x?void 0:x.every(e=>!e.player&&!e.playerName))?null:(0,n.jsxs)(a.so,{w:"100%",justify:"center",grow:1,align:"flex-start",pt:s?"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:m&&(0,n.jsx)(ew,{teamGoals:m,isLeftTeam:!0})}),(0,n.jsx)(a.az,{w:"lg",children:(0,n.jsx)(c.NcS,{icon:"football-ball",color:"neutrals.nLv3"})}),(0,n.jsx)(a.so,{w:"100%",direction:"column",justify:"center",align:"flex-start",grow:1,ml:"lg",mr:"sm",children:j&&(0,n.jsx)(ew,{teamGoals:j})})]})}var eT=s(94093);function e_(e){let{activeTimeout:t}=e,{leftTeam:s,rightTeam:d}=(0,i.useContext)(l.y$),u=function(e){switch(e){case r.gVr.TeamTimeout:return"basketball_status_timeout_short";case r.gVr.ChallengeTimeout:return"basketball_status_coaches_challenge_short";case r.gVr.OfficialTimeout:return"basketball_status_referee_timeout";case r.gVr.TVTimeout:return"basketball_status_tv_timeout";default:return}}(t.type);if(!u)return null;let x=function(e,t,s){let n,i=e.type===r.gVr.TeamTimeout,l=e.teamId===t.id,o=e.teamId===s.id;return i&&(n=l?t.nameCode:o?s.nameCode:void 0),{teamName:n?"".concat(n," "):"",isLeftTeam:l,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)(c.yiO,{color:"status.live"}),(0,n.jsxs)(o.EY,{textStyle:"assistive.default",color:"status.live",children:[null==x?void 0:x.teamName,(0,n.jsx)(h.A,{id:u})]}),(null==x?void 0:x.isRightTeam)&&(0,n.jsx)(c.DxT,{color:"status.live"})]})}let ek=e=>{let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:r}=e,i=(82-(t-1)*2)/t;return(0,n.jsxs)(a.so,{align:"center",gap:"sm",children:[r&&(0,n.jsx)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(h.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:i},h:"xs"},"timeout-".concat(t)))}),!r&&(0,n.jsx)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(h.A,{id:"basketball_status_timeout_short"})})]})};function eA(e){let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:r}=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)(h.A,{id:"basketball_status_timeout_short"}),": ".concat(s,"/").concat(t)]}):(0,n.jsx)(ek,{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:r})})}function eE(e){let{timeouts:t}=e,{totalTimeouts:s,activeTimeout:r}=t,[i,l]=(0,T.jr)(t,"homeTimeoutsRemaining","awayTimeoutsRemaining");return i&&l?(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)(eA,{totalTimeouts:s,remainingTimeouts:i,isLeftTeam:!0}),!!r&&(0,n.jsx)(e_,{activeTimeout:r}),(0,n.jsx)(eA,{totalTimeouts:s,remainingTimeouts:l})]}):null}let eY=e=>{var t,s;let{disableFollow:h,hasCountdown:p,hideIncidents:v,hideTimeouts:f,isWide:b=!1,disableLink:S}=e,{event:C,leftTeam:_,rightTeam:k,leftScore:A,rightScore:E}=(0,i.useContext)(l.y$),{leftWLD:Y,rightWLD:I}=ej(),{textDirection:W}=(0,o.$c)(),R=(0,d.A)(),F="rtl"===W,z=C.tournament.category.sport.slug,U=C.status.type===r.XUj.InProgress,X=C.status.type===r.XUj.WillContinue,G=!!(0,T.gm)(C,"aggregatedWinnerCode")&&void 0!==A.aggregated&&void 0!==E.aggregated,D=C.status.type===r.XUj.Finished&&!b,Q=(0,j.sw)(C)&&!(0,j.ux)(C)&&C.status.type!==r.XUj.WillContinue&&!C.isAwarded,P=C.status.type===r.XUj.NotStarted&&(z!==r.QCR.MMA||(0,m.xO)(C)),M=!!_.subTeams&&2===_.subTeams.length,$=z===r.QCR.Basketball,B=!!(null==(t=C.timeouts)?void 0:t.homeTimeoutsRemaining)&&!!(null==(s=C.timeouts)?void 0:s.awayTimeoutsRemaining),H=!f&&$&&U&&B;return(0,n.jsxs)(a.az,{br:{md:"lg"},pt:D?void 0:"sm",pb:"sm",children:[D?(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(eT.g,{})}):h?null:(0,n.jsx)(a.so,{w:"100%",justify:"center",hideFrom:"md",children:(0,n.jsx)(x.h,{id:C.id,type:u.b.Event,location:u.y.Header,tournament:C.tournament,leftTeam:_,rightTeam:k,isBottomSheet:!0,children:e=>{let{onClick:t,isFollowed:s}=e;return(0,n.jsx)(L,{onClick:t,label:s?R.formatMessage({id:"added_to_favourites"}):R.formatMessage({id:"add_to_favourites"}),children:(0,n.jsx)(c.zQC,{icon:s?"follow-active":"follow-default"})})}})}),(0,n.jsxs)(a.so,{h:b?void 0:M?"10xl":Y||I?"[100px]":"[86px]",py:"sm",px:{base:"md",md:"xs"},justify:b?"center":"space-between",align:"center",children:[(0,n.jsx)(ev,{team:_,sport:z,seeding:C.homeTeamSeed,disableFollow:h,isWide:b,isRight:b&&F,disableLink:S}),(0,n.jsx)(a.az,{minW:b?"[152px]":void 0,children:Q?(0,n.jsx)(ea,{}):P?(0,n.jsxs)("div",{children:[(0,n.jsx)(eb,{event:C,centered:!0}),p&&(0,n.jsx)(y,{event:C})]}):(0,n.jsxs)(a.so,{direction:"column",align:"center",justify:"center",children:[G&&(0,n.jsx)(g,{}),(0,n.jsx)(ei,{})]})}),(0,n.jsx)(ev,{team:k,sport:z,seeding:C.awayTeamSeed,disableFollow:h,isWide:b,isRight:!b||!F,disableLink:S})]}),H&&!!C.timeouts&&(0,n.jsx)(eE,{timeouts:C.timeouts}),z===r.QCR.MMA&&(U||X)&&C.fightState&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.cG,{}),(0,n.jsx)(w,{fightState:C.fightState})]}),z===r.QCR.Football&&!v&&(0,n.jsx)(eC,{isWide:b})]})},eI=e=>{let{disableFollow:t,disableLink:s,isWide:o}=e,{event:h,leftTeam:g,rightTeam:p}=(0,i.useContext)(l.y$),v=(0,d.A)(),y=(0,j.rW)(h)&&!(0,j.ux)(h),f=h.status.code===r.sum.Walkover,b=void 0!==h.winnerCode,S=h.status.type===r.XUj.NotStarted&&(0,m.xO)(h),w=h.status.type===r.XUj.Finished&&!o;return(0,n.jsxs)(a.az,{br:{md:"lg"},maxW:o?"[400px]":void 0,mx:"auto",children:[w?(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(eT.g,{})}):t?null:(0,n.jsx)(a.so,{w:"100%",justify:"center",hideFrom:"md",children:(0,n.jsx)(x.h,{id:h.id,type:u.b.Event,location:u.y.Header,tournament:h.tournament,leftTeam:g,rightTeam:p,isBottomSheet:!0,children:e=>{let{onClick:t,isFollowed:s}=e;return(0,n.jsx)(L,{onClick:t,label:s?v.formatMessage({id:"added_to_favourites"}):v.formatMessage({id:"add_to_favourites"}),children:(0,n.jsx)(c.zQC,{icon:s?"follow-active":"follow-default"})})}})}),(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)(ey,{team:g,sport:r.QCR.Tennis,seeding:h.homeTeamSeed,disableFollow:t,disableLink:s}),(0,n.jsx)(ey,{team:p,sport:r.QCR.Tennis,seeding:h.awayTeamSeed,disableFollow:t,disableLink:s})]}),y||f&&!b?(0,n.jsx)(ea,{hasBorder:!0}):S?(0,n.jsx)(eb,{event:h,hasBorder:!0}):(0,n.jsx)(a.ov,{flexDirection:"column",w:o?void 0:"100%",children:(0,n.jsx)(ei,{})})]})]})};function eW(e){let{team:t,disableFollow:s,disableLink:i}=e;return(0,n.jsx)(ex,{sport:r.QCR.Volleyball,team:t,disableFollow:s,disableLink:i,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)(eh.N,{team:t,sport:r.QCR.Volleyball,disableLink:i}),(0,n.jsx)("div",{children:(0,n.jsx)(ep,{team:t})})]})})}let eR=e=>{let{disableFollow:t,disableLink:s,isWide:o}=e,{event:m,leftTeam:h,rightTeam:g}=(0,i.useContext)(l.y$),p=(0,d.A)(),v=m.status.type===r.XUj.Finished&&!o,y=m.status.type===r.XUj.NotStarted,f=(0,j.sw)(m)&&!(0,j.ux)(m)&&m.status.type!==r.XUj.WillContinue&&!m.isAwarded;return(0,n.jsxs)(a.az,{br:{md:"lg"},maxW:o?"[400px]":void 0,mx:"auto",children:[v?(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(eT.g,{})}):t?null:(0,n.jsx)(a.so,{w:"100%",justify:"center",hideFrom:"md",children:(0,n.jsx)(x.h,{id:m.id,type:u.b.Event,location:u.y.Header,tournament:m.tournament,leftTeam:h,rightTeam:g,isBottomSheet:!0,children:e=>{let{onClick:t,isFollowed:s}=e;return(0,n.jsx)(L,{onClick:t,label:s?p.formatMessage({id:"added_to_favourites"}):p.formatMessage({id:"add_to_favourites"}),children:(0,n.jsx)(c.zQC,{icon:s?"follow-active":"follow-default"})})}})}),(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)(eW,{team:h,disableFollow:t,disableLink:s}),(0,n.jsx)(eW,{team:g,disableFollow:t,disableLink:s})]}),f?(0,n.jsx)(ea,{}):y?(0,n.jsx)(a.az,{px:"md",children:(0,n.jsx)(eb,{event:m,hasBorder:!0})}):(0,n.jsx)(a.ov,{flexDirection:"column",w:o?void 0:"100%",children:(0,n.jsx)(ei,{})})]})]})},eF=e=>{let{disableFollow:t,hasCountdown:s,hideIncidents:o=!1,hideTimeouts:a=!1,isWide:d,disableLink:c}=e,{event:u}=(0,i.useContext)(l.y$);switch(u.tournament.category.sport.slug){case r.QCR.Tennis:return(0,n.jsx)(eI,{disableFollow:t,isWide:d,disableLink:c});case r.QCR.Volleyball:return(0,n.jsx)(eR,{disableFollow:t,isWide:d,disableLink:c});default:return(0,n.jsx)(eY,{disableFollow:t,hasCountdown:s,hideIncidents:o,hideTimeouts:a,isWide:d,disableLink:c})}}},67430:(e,t,s)=>{s.d(t,{L:()=>a});var n=s(46787),r=s(55729),i=s(45860),l=s(18970),o=s(41164);function a(){let{event:e,initialIncidents:t}=(0,r.useContext)(l.y$),s={};e.status.type===n.XUj.InProgress&&(s.onErrorRetry=(e,t,s,n,r)=>{let{retryCount:i}=r;404===e.status&&setTimeout(()=>n({retryCount:i}),15e3)});let{data:a,isLoading:d,error:c}=(0,i.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}}},77419:(e,t,s)=>{s.d(t,{N:()=>u});var n=s(6029),r=s(33144),i=s(46787),l=s(24045),o=s(20325),a=s(52466);let d=e=>{var t;let{team:s,isRight:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.so,{position:"absolute",bottom:"0",left:i?"0":"2xl",zIndex:"button",children:i?(0,n.jsx)(a.tFn,{color:"mma.blue.primary"}):(0,n.jsx)(a.wOd,{color:"mma.red.primary"})}),(0,n.jsx)(r.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 c=s(8945);function u(e){var t;let{sport:s,team:o,seeding:a,isRight:u,hasFlag:x,size:m,disableLink:j}=e;if((null==(t=o.subTeams)?void 0:t.length)===2)return(0,n.jsx)(l.K,{sport:s,teams:o.subTeams,seeding:a,ignoreLink:j});switch(s){case i.QCR.MMA:return(0,n.jsx)(d,{team:o,isRight:u});case i.QCR.Tennis:return(0,n.jsx)(c.e,{team:o,isRight:u,seeding:a,hasFlag:x,size:m});default:return(0,n.jsx)(r.p,{size:48,id:o.id,name:o.name})}}},93760:(e,t,s)=>{s.d(t,{Ap:()=>a,FY:()=>d,Q6:()=>c,Zq:()=>m,xO:()=>u,zx:()=>x});var n=s(46787),r=s(494),i=s(14831),l=s(30821),o=s(90808);let a=1708,d=19906;function c(e){let t=(0,r.d4)(o.YG);return t===l.i.Metric&&(e=e?Math.round((0,i.C6)(+e,"m").to("cm"))+" cm":"-"),t===l.i.Imperial&&(e=e?Math.round((0,i.C6)(+e,"m").to("in"))+'"':"-"),e}let u=e=>e.status.type===n.XUj.NotStarted&&1e3*e.startTimestamp>Date.now(),x=(e,t)=>e?(e=>{var t;return[e.stadium.name,e.city.name,(null==(t=e.country)?void 0:t.alpha2)||""].filter(e=>e.length>0).join(", ")})(e):t||"",m=(e,t)=>{let s=t===n.Jfo.Left,r=t===n.Jfo.Right,i=e===n.XUj.Finished&&!s&&!r,l=e===n.XUj.Canceled||e===n.XUj.Postponed;return{hasLeftTeamOpacity:l||i||r,hasRightTeamOpacity:l||i||s}}},94093:(e,t,s)=>{s.d(t,{g:()=>u});var n=s(6029),r=s(22375),i=s(51569),l=s(20325),o=s(55729),a=s(90510),d=s(18970),c=s(52466);let u=e=>{let{isInDesktopHeader:t}=e,{event:s}=(0,o.useContext)(d.y$),u=new Date(1e3*s.startTimestamp);return(0,n.jsxs)(l.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,{color:"neutrals.nLv3",w:"16px",h:"16px"}),(0,n.jsx)(i.EY,{textStyle:t?"display.micro":"body.small",color:t?"neutrals.nLv3":"neutrals.nLv1",lineHeight:1,children:(0,n.jsx)(a.XU,{value:u,...r.or.fullDateWithLongYear})}),(0,n.jsx)(l.az,{w:"xs",h:"xs",br:"50%",bg:t?"neutrals.nLv3":"neutrals.nLv1",position:"relative"}),(0,n.jsx)(i.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"})})]})}}}]);