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