!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]="d92385a9-5903-4dad-96bf-2eddcfbfcbaa",e._sentryDebugIdIdentifier="sentry-dbid-d92385a9-5903-4dad-96bf-2eddcfbfcbaa")}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),i=s(33144),l=s(76356),r=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)(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"})]})}},15361:(e,t,s)=>{s.d(t,{g:()=>n.A});var n=s(18423)},18423:(e,t,s)=>{s.d(t,{A:()=>eT});var n=s(6029),i=s(21377),l=s(55729),r=s(18970),o=s(28349),a=s(76356),d=s(93760),c=s(14831),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(70923);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(52466);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=>{let{fightState:t}=e,s=[i.sAb.GroundGrappleRed,i.sAb.Distance,i.sAb.Ground,i.sAb.GrappleRed].includes(t),l=[i.sAb.GroundGrappleBlue,i.sAb.Distance,i.sAb.Ground,i.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)(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 b=s(41164),S=s(67087),w=s(81484);let L=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"})})},C=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)(w.fP,{id:(0,c.B_)(t)})},T=e=>{let{winnerCode:t,event:s}=e,l=(0,b.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)(L,{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)(L,{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},A=e=>{let{event:t}=e,{status:s,startTimestamp:l}=t,r=s.code===i.sum.Started,d=s.type===i.XUj.NotStarted,x=(0,b.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:k.gj(s)},e)})})};function W(){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=k.KY(j,t.innings),h=k.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)(E,{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)(E,{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 Y=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 R=s(98835),I=s(13980);let F=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===I.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)(R.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)(R.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===I.ai.Away?(0,n.jsx)(p.v1,{fill:"sofaSingles.live"}):(0,n.jsx)(a.az,{w:"lg"})]})},z=e=>{let{event:t,homeScore:s,awayScore:i}=e,l=(0,I.J1)(t,s),r=(0,I.J1)(t,i);return(0,n.jsxs)(a.so,{direction:"column",gap:"sm",align:"center",children:[(0,n.jsx)(F,{eventId:t.id,throwing:t.firstToServe,leftScore:l,rightScore:r}),(0,n.jsx)(Y,{leftScore:l,rightScore:r})]})};var U=s(34781);let X=()=>{let{event:e,leftScore:t,rightScore:s}=(0,l.useContext)(r.y$);return e.status.type===i.XUj.InProgress?(0,n.jsx)(z,{event:e,homeScore:t,awayScore:s}):(0,n.jsx)(U.A,{})};var G=s(62042);let D=(e,t,s)=>Object.keys(e).filter(n=>s.includes(n)&&void 0!==e[n]&&void 0!==t[n]),Q=(e,t,s,n,i,l)=>s&&i===l?"onColor.default":(n?e>t:t>e)?"onSurface.nLv1":"onSurface.nLv3",P=(e,t,s,n,i)=>e?"secondary.default":n&&i&&(t?n>i:i>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",J=(e,t,s,n,i)=>e?"sofaSingles.live":n&&i&&(t?n>i:i>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",N=(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"},$=["period1","period2","period3","period4","period5"],H=()=>{let{event:e,leftScore:t,rightScore:s}=(0,l.useContext)(r.y$),d=e.status.type===i.XUj.InProgress,c=D(t,s,$),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,G.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)(R.cU,{eventId:e.id,changeKey:"homeScore.".concat(i),score:t[i],fontWeight:"bold",color:Q(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)(R.cU,{eventId:e.id,changeKey:"awayScore.".concat(i),score:s[i],fontWeight:"bold",color:Q(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)(R.cU,{eventId:e.id,score:N(e,t,s,!0),height:d?"16px":"24px",fontSize:d?"14px":"18px",pt:d?0:"xxs",fontWeight:"bold",color:P(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)(R.cU,{eventId:e.id,score:N(e,t,s,!1),height:d?"16px":"24px",fontSize:d?"14px":"18px",pt:d?0:"xxs",fontWeight:"bold",color:P(d,!1,e.winnerCode,t.current,s.current)})]})]})]})};var K=s(86300);let M=["period1","period2","period3","period4","period5"],B=()=>{let{event:e,leftScore:t,rightScore:s}=(0,l.useContext)(r.y$),o=(0,S.gm)(e,"aggregatedWinnerCode"),d=D(t,s,M),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)(K.c,{eventId:e.id,changeKey:"homeScore.".concat(i),score:t[i],fontWeight:"bold",color:Q(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)(K.c,{eventId:e.id,changeKey:"awayScore.".concat(i),score:s[i],fontWeight:"bold",color:Q(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)(K.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)(K.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)(K.c,{eventId:e.id,score:t.current,changeKey:"leftScore.current",height:"22px",fontWeight:"bold",fontSize:"18px",color:J(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)(K.c,{eventId:e.id,score:s.current,changeKey:"rightScore.current",height:"22px",fontWeight:"bold",fontSize:"18px",color:J(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 O(){let{event:e}=(0,l.useContext)(r.y$);switch(e.tournament.category.sport.slug){case i.QCR.Cricket:return(0,n.jsx)(W,{});case i.QCR.MMA:return(0,n.jsx)(_,{event:e});case i.QCR.Tennis:return(0,n.jsx)(H,{});case i.QCR.Darts:return(0,n.jsx)(X,{});case i.QCR.Volleyball:return(0,n.jsx)(B,{});default:return(0,n.jsx)(U.A,{})}}var V=s(4967),q=s(90510);function Z(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,S.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,V.cK)(s.startTimestamp),l=(0,V.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)(w.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)(q.XU,{value:1e3*s.startTimestamp}),", ",(0,n.jsx)(q.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)(w.fP,{id:f})})]})}let ee=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,b.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 et=s(15340),es=s(36882),en=s(64006);let ei=e=>{var t;let{team:s,sport:r,isRight:o,disableFollow:d,children:c,isWide:u}=e,x=(0,l.useContext)(et.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)(et.e,{isDisabled:s.disabled,id:s.id,entity:i.bq7.Teams,location:x,type:es.b.Team}),m?c:(0,n.jsx)(en.gT,{sport:r,team:s,children:c})]})})};function el(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,l.useContext)(r.y$),t=(0,S.g3)(),s=t?e.awayTeamSeasonHistoricalForm:e.homeTeamSeasonHistoricalForm,n=t?e.homeTeamSeasonHistoricalForm:e.awayTeamSeasonHistoricalForm;return{leftWLD:el(s),rightWLD:el(n)}}var eo=s(77419),ea=s(88505);let ed=e=>{var t;let{team:s,isRight:i,additionalTeamInfo:l,isWide:r}=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.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[200px]":"[120px]"},textStyle:r?"display.medium":"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(ea.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)(ea.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?"[156px]":"[120px]"},textStyle:r?"display.medium":"display.micro",truncate:!0,display:"block",textAlign:"start",children:[a&&i?"@":null,(0,n.jsx)(ea.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 ec(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}=er(),h=d?g:j,p=o===i.QCR.Basketball&&x.status.type===i.XUj.InProgress;return(0,n.jsx)(ei,{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)(eo.N,{team:s,sport:o,isRight:d}),(0,n.jsx)(ee,{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)(ed,{team:s,additionalTeamInfo:p?void 0:h,isRight:d,isWide:u})})]})})}function eu(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)(ei,{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)(eo.N,{team:t,sport:i.QCR.Tennis,seeding:s}),(0,n.jsx)("div",{children:(0,n.jsx)(ed,{team:t,additionalTeamInfo:r})})]})})}function ex(e){let{event:t,hasBorder:s=!1}=e,l=(0,m.hX)(),r=(0,V.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}=((e,t)=>{let s=(0,V.cK)(t),i=(0,V.ef)(t);return e?{primary:"-"}:s||i?{primary:(0,n.jsx)(q.ib,{value:t}),secondary:(0,n.jsx)(u.A,{id:s?"today":"tomorrow"})}:{primary:(0,n.jsx)(q.XU,{value:t}),secondary:(0,n.jsx)(q.ib,{value:t})}})(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,G.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 em=s(94156);let ej=e=>{let{teamGoals:t,isLeftTeam:s=!1}=e,[i,l]=(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:i.map((e,t)=>{var r;let d=e,c=null==(r=l[e])?void 0:r.find(e=>!!e.player);return(null==c?void 0:c.player)?d=(0,n.jsx)(em.c,{entity:c.player}):"Goal"===e&&(d=(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:[d," ",(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:Array.from(i).slice(t).reduce((e,t)=>{var s,n;return e+(null!=(n=null==(s=l[t])?void 0:s.length)?n:0)},0)}})})]},e)})})};var eg=s(67430);function eh(e){var t;let{isWide:s}=e,{incidents:i,isLoading:o}=(0,eg.L)(),{event:d}=(0,l.useContext)(r.y$),c=(0,S.g3)(),u=i.filter(e=>"goal"===e.incidentType&&e.time),x=(null==u?void 0:u.filter(e=>c?!e.isHome:e.isHome))||[],m=(null==u?void 0:u.filter(e=>c?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===x.length&&0===m.length||(null==u?void 0:u.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:x&&(0,n.jsx)(ej,{teamGoals:x,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:m&&(0,n.jsx)(ej,{teamGoals:m})})]})}var ep=s(94093);function ev(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 ef=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 ey(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)(ef,{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:i})})}function eb(e){let{timeouts:t}=e,{totalTimeouts:s,activeTimeout:i}=t,[l,r]=(0,S.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)(ey,{totalTimeouts:s,remainingTimeouts:l,isLeftTeam:!0}),!!i&&(0,n.jsx)(ev,{activeTimeout:i}),(0,n.jsx)(ey,{totalTimeouts:s,remainingTimeouts:r})]}):null}let eS=e=>{var t,s;let{disableFollow:u,hasCountdown:m,hideIncidents:j,hideTimeouts:h,isWide:p=!1}=e,{event:v,leftTeam:f,rightTeam:b,leftScore:w,rightScore:L}=(0,l.useContext)(r.y$),{leftWLD:C,rightWLD:T}=er(),{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,S.gm)(v,"aggregatedWinnerCode")&&void 0!==w.aggregated&&void 0!==L.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)(ep.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)(ec,{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)(Z,{}):F?(0,n.jsxs)("div",{children:[(0,n.jsx)(ex,{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)(O,{})]})}),(0,n.jsx)(ec,{team:b,sport:k,seeding:v.awayTeamSeed,disableFollow:u,isWide:p,isRight:!p||!_})]}),G&&!!v.timeouts&&(0,n.jsx)(eb,{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)(y,{fightState:v.fightState})]}),k===i.QCR.Football&&!j&&(0,n.jsx)(eh,{isWide:p})]})},ew=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)(ep.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)(eu,{team:u,sport:i.QCR.Tennis,seeding:o.homeTeamSeed,disableFollow:t}),(0,n.jsx)(eu,{team:x,sport:i.QCR.Tennis,seeding:o.awayTeamSeed,disableFollow:t})]}),m||j&&!g?(0,n.jsx)(Z,{hasBorder:!0}):h?(0,n.jsx)(ex,{event:o,hasBorder:!0}):(0,n.jsx)(a.ov,{flexDirection:"column",w:s?void 0:"100%",children:(0,n.jsx)(O,{})})]})]})};function eL(e){let{team:t,disableFollow:s}=e;return(0,n.jsx)(ei,{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)(eo.N,{team:t,sport:i.QCR.Volleyball}),(0,n.jsx)("div",{children:(0,n.jsx)(ed,{team:t})})]})})}let eC=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)(ep.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)(eL,{team:d,disableFollow:t}),(0,n.jsx)(eL,{team:u,disableFollow:t})]}),j?(0,n.jsx)(Z,{}):m?(0,n.jsx)(a.az,{px:"md",children:(0,n.jsx)(ex,{event:o,hasBorder:!0})}):(0,n.jsx)(a.ov,{flexDirection:"column",w:s?void 0:"100%",children:(0,n.jsx)(O,{})})]})]})},eT=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)(ew,{disableFollow:t,isWide:d});case i.QCR.Volleyball:return(0,n.jsx)(eC,{disableFollow:t,isWide:d});default:return(0,n.jsx)(eS,{disableFollow:t,hasCountdown:s,hideIncidents:o,hideTimeouts:a,isWide:d})}}},24045:(e,t,s)=>{s.d(t,{K:()=>a});var n=s(6029),i=s(33144),l=s(76356),r=s(64006),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)(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%)"})]})}},30821:(e,t,s)=>{s.d(t,{Z:()=>d,i:()=>o.i});var n=s(6029),i=s(90510),l=s(494),r=s(77264),o=s(13988),a=s(63752);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}},67430:(e,t,s)=>{s.d(t,{L:()=>a});var n=s(21377),i=s(55729),l=s(45860),r=s(18970),o=s(41164);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}}},77419:(e,t,s)=>{s.d(t,{N:()=>u});var n=s(6029),i=s(33144),l=s(21377),r=s(24045),o=s(76356),a=s(52466);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(8945);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})}}},80322:(e,t,s)=>{s.d(t,{J:()=>a});var n=s(6029),i=s(28349),l=s(76356),r=s(93338),o=s(40134);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}},93760:(e,t,s)=>{s.d(t,{Ap:()=>a,FY:()=>d,Q6:()=>c,Zq:()=>m,xO:()=>u,zx:()=>x});var n=s(21377),i=s(494),l=s(14831),r=s(30821),o=s(90808);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,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,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}}},94093:(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(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)(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"})})]})}}}]);