!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]="32209841-0e98-4aa3-9dc5-640b28c241bf",e._sentryDebugIdIdentifier="sentry-dbid-32209841-0e98-4aa3-9dc5-640b28c241bf")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2418],{7360:(e,t,n)=>{n.d(t,{g:()=>x});var i=n(6029),o=n(49519),l=n(21377),s=n(99064),r=n(55729),a=n(947),c=n(62859),d=n(54409),h=n(65078),u=n(94604),f=n(49031);function g(e){let{count:t}=e;return"number"!=typeof t||t<1?null:(0,i.jsxs)(s.az,{as:"bdi",children:[(0,i.jsx)(d.xK6,{width:"14",height:"14",fill:"error.default"}),t>1&&(0,i.jsxs)(s.EY,{color:"onSurface.nLv3",font:"body.small",style:{verticalAlign:"middle"},children:["x",t]})]})}function x(e){var t,n,d,x,p,v;let{isShort:w,style:y,entity:j}=e,m=(0,a.A)(),{event:b,leftTeam:S,rightTeam:C}=(0,r.useContext)(c.y$),[R,L]=(0,h.jr)(b,"homeRedCards","awayRedCards"),k=(0,h.gm)(b,"winnerCode"),E=b.status.type===l.XUj.Finished,N=k===l.Jfo.Left,_=k===l.Jfo.Right,I="onSurface.nLv1",T="onSurface.nLv1";(E||b.status.type===l.XUj.WillContinue)&&(I=N?"onSurface.nLv1":"onSurface.nLv3",T=_?"onSurface.nLv1":"onSurface.nLv3");let Y=j===l.wNW.Manager||j===l.wNW.Player,A=(0,f.PZ)(b,m.formatMessage,m.locale),U=(0,i.jsx)(o.p,{size:16,id:S.id,name:S.name,isSmall:!0}),z=(0,i.jsx)(o.p,{size:16,id:C.id,name:C.name,isSmall:!0});return S.type===l.YVh.Person?U=(0,i.jsx)(o.w,{size:16,alpha2:null==(t=S.country)?void 0:t.alpha2,fallback:(0,i.jsx)(s._V,{src:"/static/images/placeholders/team.svg",width:"16",height:"16",alt:null==(n=S.country)?void 0:n.name}),name:null==(d=S.country)?void 0:d.name}):S.type===l.YVh.Double&&(U=null),C.type===l.YVh.Person?z=(0,i.jsx)(o.w,{size:16,alpha2:null==(x=C.country)?void 0:x.alpha2,fallback:(0,i.jsx)(s._V,{src:"/static/images/placeholders/team.svg",width:"16",height:"16",alt:null==(p=C.country)?void 0:p.name}),name:null==(v=C.country)?void 0:v.name}):C.type===l.YVh.Double&&(z=null),(0,i.jsxs)(s.az,{flex:"1 1 ".concat(w?"100px":"140px"),title:A,overflow:"hidden",minW:"0",style:y,children:[(0,i.jsxs)(s.so,{align:"center",mb:"xxs",children:[U&&(0,i.jsx)(s.az,{h:"16px",w:"16px",mr:"sm",children:U}),(0,i.jsxs)(s.EY,{font:"body.medium",as:"bdi",ellipsis:!0,color:I,lineHeight:"16px",children:[(0,i.jsx)(u.Rm,{team:S,short:!0}),Y?null:(0,i.jsx)(g,{count:R})]})]}),(0,i.jsxs)(s.so,{align:"center",children:[z&&(0,i.jsx)(s.az,{h:"16px",w:"16px",mr:"sm",children:z}),(0,i.jsxs)(s.EY,{font:"body.medium",as:"bdi",ellipsis:!0,color:T,lineHeight:"16px",children:[(0,i.jsx)(u.Rm,{team:C,short:!0}),Y?null:(0,i.jsx)(g,{count:L})]})]})]})}},18612:(e,t,n)=>{n.d(t,{D:()=>i.D});var i=n(43451)},24313:(e,t,n)=>{n.d(t,{M:()=>o,l:()=>l});var i=n(55729);let o=(0,i.createContext)({}),l=()=>(0,i.useContext)(o);o.displayName="EventCellContext"},27372:(e,t,n)=>{n.d(t,{W:()=>l,X:()=>o});var i=n(56869);function o(e){return!e||!i.Hs.includes(e)}function l(e){var t;return e&&(null==(t=window.navigator.connection)?void 0:t.effectiveType)?"4g"===window.navigator.connection.effectiveType:!e}},36937:(e,t,n)=>{n.d(t,{$:()=>i.$,g:()=>o.g});var i=n(87473),o=n(7360)},49031:(e,t,n)=>{n.d(t,{J_:()=>v,PZ:()=>h,TF:()=>w,t3:()=>g});var i=n(6029),o=n(21377),l=n(99064),s=n(55729),r=n(54409),a=n(8703),c=n(27372),d=n(84942);function h(e,t,n){return t({id:"event.title"},{home:(0,d.s)(e.homeTeam,n),away:(0,d.s)(e.awayTeam,n)})}let u={[o.QCR.IceHockey]:{assists:e=>(0,i.jsx)(r.NcS,{icon:"ice-hockey",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,i.jsx)(r.CvR,{icon:"hockey-pak",width:e.width,height:e.height,fill:"secondary.default"})},[o.QCR.Handball]:{goals:e=>(0,i.jsx)(r.NcS,{icon:"handball",width:e.width,height:e.height,fill:"secondary.default"})},[o.QCR.Football]:{redCards:e=>(0,i.jsx)(r.CvR,{icon:"card-red",width:e.width,height:e.height,fill:"error.default"}),yellowRedCards:e=>(0,i.jsx)(r.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,i.jsx)(r.CvR,{icon:"card-yellow",width:e.width,height:e.height,fill:"scoreRating.s65"}),ownGoals:e=>(0,i.jsx)(r.NcS,{icon:"football-own-goal",width:e.width,height:e.height,fill:"error.default"}),assists:e=>(0,i.jsx)(r.NcS,{icon:"football-assist",width:e.width,height:e.height,fill:"secondary.default"}),penaltyGoals:e=>(0,i.jsx)(r.NcS,{icon:"football-penalty",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,i.jsx)(r.NcS,{icon:"football-ball",width:e.width,height:e.height,fill:"secondary.default"})},[o.QCR.AmericanFootball]:{kickingExtraMade:e=>(0,i.jsx)(r.CvR,{icon:"af-extra-point",width:e.width,height:e.height,fill:"secondary.default"}),kickingFgMade:e=>(0,i.jsx)(r.CvR,{icon:"af-field-goal",width:e.width,height:e.height,fill:"secondary.default"}),passingTouchdowns:e=>(0,i.jsx)(r.NcS,{icon:"af-passing-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),rushingTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),receivingTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),puntReturnsTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),puntingReturnTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),kickReturnsTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),fumbleTouchdownReturns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),defensiveInterceptionsTouchdowns:e=>(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"})},[o.QCR.Minifootball]:{redCards:e=>(0,i.jsx)(r.CvR,{icon:"card-red",width:e.width,height:e.height,fill:"error.default"}),yellowRedCards:e=>(0,i.jsx)(r.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,i.jsx)(r.CvR,{icon:"card-yellow",width:e.width,height:e.height,fill:"scoreRating.s65"}),ownGoals:e=>(0,i.jsx)(r.NcS,{icon:"football-own-goal",width:e.width,height:e.height,fill:"error.default"}),assists:e=>(0,i.jsx)(r.NcS,{icon:"football-assist",width:e.width,height:e.height,fill:"secondary.default"}),penaltyGoals:e=>(0,i.jsx)(r.NcS,{icon:"football-penalty",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,i.jsx)(r.NcS,{icon:"football-ball",width:e.width,height:e.height,fill:"secondary.default"}),accumulatedPenaltyGoals:e=>(0,i.jsx)(r.CvR,{icon:"accumulated-penalty",width:e.width,height:e.height,fill:"secondary.default"})}},f={rushingTouchdowns:1,receivingTouchdowns:1,puntReturnsTouchdowns:1,puntingReturnTouchdowns:1,kickReturnsTouchdowns:1,fumbleTouchdownReturns:1,defensiveInterceptionsTouchdowns:1},g=(e,t)=>{let n=[],a=u[e]||{};if(Object.keys(a).map(r=>{let c=a[r],d=t&&t[r];if(!d||r in f)return;if(e===o.QCR.Football&&"goals"===r){var h;if(!(d-=null!=(h=null==t?void 0:t.penaltyGoals)?h:0))return}if("yellowCards"===r&&((null==t?void 0:t.redCards)||(null==t?void 0:t.yellowRedCards)))return;let u=16;"yellowRedCards"===r&&(u=20);let g=d>1?d:"";n.push((0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(l.EY,{color:"secondary.default",ml:"sm",fontWeight:500,children:g}),(0,i.jsx)(c,{width:u,height:u,viewBox:"0 0 16 16"},"".concat(d,"-").concat(r))]},"".concat(d,"-").concat(r)))}),e===o.QCR.AmericanFootball){let e=Object.keys(f).map(e=>t&&t[e]?t[e]:0).reduce((e,t)=>e+t,0);e&&n.push((0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(l.EY,{color:"secondary.default",ml:"sm",fontWeight:500,children:e>1&&e}),(0,i.jsx)(r.CvR,{icon:"af-touchdown",width:16,height:16,fill:"secondary.default"},"special")]},"".concat(e,"-af")))}return n},x=["sm","lg"],p=[o.QCR.IceHockey,o.QCR.Waterpolo,o.QCR.Floorball],v=(e,t,n)=>[o.sum.Penalties,o.sum.AP].includes(e.status.code)&&"number"==typeof t.penalties?x.includes(n)&&p.includes((0,a.c5)(e))?{score:t.display}:{score:t.display,penalties:t.penalties}:{score:t.display},w=(e,t)=>(e.status.type===o.XUj.NotStarted||e.status.type===o.XUj.InProgress)&&e.streamContentId&&!(0,c.X)(t)},50346:(e,t,n)=>{n.d(t,{Ay:()=>Y,ZK:()=>N});var i=n(6029),o=n(18612),l=n(21377),s=n(4967),r=n(99064),a=n(78383),c=n.n(a),d=n(55729),h=n(90510),u=n(90248),f=n(494),g=n(62859),x=n(36937),p=n(65078),v=n(70591),w=n(75791),y=n(5546),j=n(49821),m=n(2294),b=n(4236),S=n(61836),C=n(98516);let R=e=>e<20?"sofaSingles.value":"error.default",L=e=>-1!==[l.QCR.Football,l.QCR.Handball].indexOf(e),k=e=>L(e.tournament.category.sport.slug),E=e=>{let{hasDraw:t}=e;return(0,i.jsx)(r.az,{minW:t?132:88,w:t?132:88,ml:"xs",children:(0,i.jsxs)(o.D,{height:"auto",viewBox:"0 0 ".concat(t?132:88," 36"),uniqueKey:"event-cell-odds-cl",children:[(0,i.jsx)("rect",{x:"19",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),(0,i.jsx)("rect",{x:"63",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),t&&(0,i.jsx)("rect",{x:"93",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,i.jsx)("rect",{x:"5",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,i.jsx)("rect",{x:"49",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),t&&(0,i.jsx)("rect",{x:"107",y:"4",width:"7",height:"13",rx:"4",ry:"4"})]})})};function N(e){let{odds:t,sport:n,eventId:o,fallback:l}=e,s=(0,y.Ae)(),a=(0,f.d4)(m.$4),c=(0,p.g3)(),h=null==s?void 0:s.branded,u="fractional"===a,x=(0,d.useCallback)(e=>{e.stopPropagation(),(0,S.Fe)({id:o,provider:null==s?void 0:s.provider.slug,category:null==t?void 0:t.marketName,type:j.jF.Featured,location:g.cb.MainList,position:j.ki.OddsValue})},[o,s,t]),v=L(n);if(!t)return(0,i.jsx)(E,{hasDraw:v});if(t.loaded)return l||(0,i.jsx)("div",{style:{minWidth:v?132:88}});let C=(0,b.nu)(t.choices,c),R=u?w.Y:void 0;return(0,i.jsx)(i.Fragment,{children:C.map(e=>{let n=s&&h?(0,b.Iz)(e,t,s):null,o=(0,i.jsxs)(r.so,{direction:"column",align:"center",gap:"xs",children:[(0,i.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",children:e.name}),(0,i.jsx)(r.so,{justify:"center",align:"center",w:u?48:40,h:u?20:16,border:e.winning?"primary.default":"onSurface.nLv4",br:"xs",bg:"surface.s1",hoverBg:"surface.s2",children:(0,i.jsx)(r.EY,{font:"display.micro",fontSize:u?14:void 0,letterSpacing:u?"-0.5px":void 0,color:t.isLive?"sofaSingles.value":"onSurface.nLv1",lineHeight:1,children:(0,i.jsx)(w.c,{fractionalValue:e.fractionalValue,children:R})})})]});return n?(0,i.jsx)(r.az,{as:"a",target:"_blank",href:n,rel:"nofollow noopener",onClick:x,zIndex:r.Py.Button,children:o},e.name):o})})}function _(e){let{startTimestamp:t,showDraw:n}=e;return(0,i.jsxs)(r.so,{justify:"space-between",px:"lg",pt:"xs",children:[(0,i.jsx)(r.EY,{font:"assistive.micro",color:"onSurface.nLv3",children:(0,i.jsx)(h.XU,{value:1e3*t,...s.or.dateTime})}),(0,i.jsxs)(r.so,{gap:"sm",children:[(0,i.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"1"}),n&&(0,i.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"X"}),(0,i.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"2"}),(0,i.jsx)(r.EY,{w:60,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:(0,i.jsx)(u.A,{id:"betting.drop"})})]})]})}function I(e){let{isChoice:t,choice:n,drop:o}=e;return(0,i.jsxs)(r.az,{children:[(0,i.jsx)(r.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",mb:"xs",children:(0,i.jsx)(r.EY,{font:"display.micro",lineHeight:"16px",color:"onSurface.nLv1",children:n.initialFractionalValue&&(0,i.jsx)(w.c,{fractionalValue:n.initialFractionalValue})})}),(0,i.jsx)(r.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",children:(0,i.jsx)(r.EY,{font:"display.micro",lineHeight:"16px",color:t?R(o):"onSurface.nLv1",children:(0,i.jsx)(w.c,{fractionalValue:n.fractionalValue})})})]})}function T(e){let{choices:t,choice:n,showDraw:o,drop:l}=e,s=t.length-1,[a,c]=(0,p.jr)(t,0,s);return(0,i.jsxs)(r.so,{gap:"sm",align:"center",children:[(0,i.jsx)(I,{choice:a,isChoice:a.name===n,drop:l},a.name),o&&(0,i.jsx)(I,{choice:t[1],isChoice:t[1].name===n,drop:l},t[1].name),(0,i.jsx)(I,{choice:c,isChoice:c.name===n,drop:l},c.name),(0,i.jsx)(r.EY,{font:"display.small",color:R(l),w:60,align:"center",children:"".concat((0,C.M)(l,1),"%")})]})}let Y=function(e){let{event:t,choice:n,onClick:o=c(),isSelected:l,choices:s,drop:a,isMobile:d}=e,{event:h,...u}=(0,p.AR)(t),f=h.tournament.category.sport.slug,w=(k(h)||L(f)||null===f)&&3===s.length;return(0,i.jsx)(g.y$.Provider,{value:{event:h,...u},children:(0,i.jsx)(v.tj,{event:h,children:(0,i.jsxs)(r.az,{bg:[void 0,l?"surface.s2":"surface.s1"],onClick:e=>{o&&o(e,h.id,d)},cursor:"pointer",hoverBg:"surface.s2",children:[(0,i.jsx)(_,{startTimestamp:h.startTimestamp,showDraw:w}),(0,i.jsxs)(r.so,{justify:"space-between",align:"center",px:"lg",py:"sm",children:[(0,i.jsx)(x.g,{style:d?{flex:"1 1 auto"}:{}}),(0,i.jsx)(T,{choice:n,choices:s,drop:a,showDraw:w})]})]})})})}},56869:(e,t,n)=>{n.d(t,{Hs:()=>l,NR:()=>o,p4:()=>i});let i="/21866864457/preroll_video_app",o="https://pubads.g.doubleclick.net/gampad/live/ads?iu="+i+"&description_url=http%3A%2F%2Fsofascore.com&tfcd=0&npa=0&sz=1x1%7C400x300%7C640x480&ciu_szs=300x250%2C336x280%2C728x90&min_ad_duration=5000&max_ad_duration=30000&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=",l=["BR","BG","JP","UK","KE","GB","NG","IT","NL","ES","MA","IR","BD","IN","TH","VN"]},69759:(e,t,n)=>{n.d(t,{I:()=>o,J:()=>l});var i=n(87357);let o=501;function l(e,t){return void 0!==t.point&&void 0!==e.bestOfSets&&e.bestOfSets>1?{topScore:Number(t.point)||o,bottomScore:t.display,bottomScoreExtra:(0,i.U)(t)}:void 0!==t.point&&void 0!==e.bestOfLegs&&e.bestOfLegs>0?{topScore:Number(t.point)||o,bottomScore:t.display,bottomScoreExtra:void 0}:(void 0===t.point||null===t.point)&&e.bestOfSets&&e.bestOfSets>1?{topScore:(0,i.U)(t)||0,bottomScore:t.display,bottomScoreExtra:void 0}:{topScore:t.display||0,bottomScore:void 0,bottomScoreExtra:void 0}}},87357:(e,t,n)=>{n.d(t,{U:()=>i});function i(e){let t=Object.keys(e).filter(e=>e.startsWith("period")).sort((e,t)=>Number(e.replace("period",""))-Number(t.replace("period",""))).pop();if(t)return e[t]}},87473:(e,t,n)=>{n.d(t,{$:()=>b});var i=n(6029),o=n(21377),l=n(44194),s=n(99064),r=n(55729),a=n(90248),c=n(62859),d=n(49031),h=n(8703),u=n(65078),f=n(82169);let g=(e,t)=>{let n=e.tournament.category.sport.slug===o.QCR.Tennis,i=e.status.type===o.XUj.InProgress,l=e.crowdsourcingDataDisplayEnabled;return i&&(0,h.c5)(e)===o.QCR.Darts&&void 0===e.bestOfSets?"sofaSingles.live":i&&!n&&t===o.Jfo.Left?"onSurface.nLv1":i&&l?"sofaSingles.crowdsourcingLive":"inherit"},x=(e,t,n,i)=>{let l=e===o.XUj.Finished,s=i===o.Jfo.Left,r=i===o.Jfo.Right,a="onSurface.nLv1",c="onSurface.nLv1",d="onSurface.nLv1",h="onSurface.nLv1";return(l||e===o.XUj.WillContinue)&&(a=s?"onSurface.nLv1":"onSurface.nLv3",c=r?"onSurface.nLv1":"onSurface.nLv3","number"==typeof t.penalties&&"number"==typeof n.penalties&&(d=t.penalties>n.penalties?"onSurface.nLv1":"onSurface.nLv3",h=n.penalties>t.penalties?"onSurface.nLv1":"onSurface.nLv3")),{leftColor:a,rightColor:c,leftPenaltyColor:d,rightPenaltyColor:h}};var p=n(54409),v=n(69759),w=function(e){return e[e.Home=1]="Home",e[e.Away=2]="Away",e}({}),y=n(87357);let j=e=>{let{event:t,leftScore:n,rightScore:o}=e,{mediaBreakpoint:r}=(0,l.$c)(),a=void 0!==t.bestOfSets&&t.bestOfSets>1,c=(0,y.U)(n)||0,h=(0,y.U)(o)||0;return(0,i.jsxs)(s.so,{direction:"column",pr:"sm",align:"flex-end",children:[(0,i.jsxs)(s.so,{align:"flex-end",children:[t.firstToServe===w.Home?(0,i.jsx)(p.v1,{fill:"secondary.default"}):(0,i.jsx)(s.az,{w:16}),void 0!==n.point&&(0,i.jsx)(s.EY,{color:"secondary.default",block:!0,ml:10,children:n.point||v.I}),a&&(0,i.jsx)(s.EY,{color:"sofaSingles.live",block:!0,ml:8,children:c}),(0,i.jsx)(f.cU,{eventId:t.id,changeKey:"leftScore.display",color:"sofaSingles.live",...(0,d.J_)(t,n,r),textAlign:"end"})]}),(0,i.jsxs)(s.so,{align:"flex-end",children:[t.firstToServe===w.Away?(0,i.jsx)(p.v1,{fill:"secondary.default"}):(0,i.jsx)(s.az,{w:16}),void 0!==o.point&&(0,i.jsx)(s.EY,{color:"secondary.default",block:!0,ml:10,children:o.point||v.I}),a&&(0,i.jsx)(s.EY,{color:"sofaSingles.live",block:!0,ml:8,children:h}),(0,i.jsx)(f.cU,{eventId:t.id,changeKey:"rightScore.display",color:"sofaSingles.live",...(0,d.J_)(t,o,r),textAlign:"end"})]})]})},m=()=>{let{event:e,leftScore:t,rightScore:n}=(0,r.useContext)(c.y$),{mediaBreakpoint:a}=(0,l.$c)(),h=(0,u.gm)(e,"winnerCode");if(e.status.type===o.XUj.NotStarted)return(0,i.jsx)(s.az,{w:38,flex:"0 0 38px",ml:"sm"});if(e.status.type===o.XUj.InProgress)return(0,i.jsx)(j,{event:e,leftScore:t,rightScore:n});let g=x(e.status.type,t,n,h);return(0,i.jsxs)(s.so,{direction:"column",pr:"sm",align:"flex-end",children:[(0,i.jsx)(s.so,{align:"flex-end",children:(0,i.jsx)(f.cU,{eventId:e.id,changeKey:"leftScore.display",color:g.leftColor||"onSurface.nLv3",...(0,d.J_)(e,t,a),textAlign:"end"})}),(0,i.jsx)(s.so,{align:"flex-end",children:(0,i.jsx)(f.cU,{eventId:e.id,changeKey:"rightScore.display",color:g.rightColor||"onSurface.nLv3",...(0,d.J_)(e,n,a),textAlign:"end"})})]})};function b(){let{event:e,leftScore:t,rightScore:n}=(0,r.useContext)(c.y$),a=(0,u.gm)(e,"aggregatedWinnerCode"),p=(0,h.c5)(e),v=(0,u.gm)(e,"winnerCode"),{mediaBreakpoint:w}=(0,l.$c)();if(p===o.QCR.Cricket)return null;if(p===o.QCR.MMA)return(0,i.jsx)(S,{winnerCode:e.winnerCode});if(p===o.QCR.Darts)return(0,i.jsx)(m,{});if(e.status.type===o.XUj.NotStarted)return(0,i.jsx)(s.az,{w:"38px",mr:"sm"});let y=e.status.type===o.XUj.InProgress,j=y?"sofaSingles.live":"onSurface.nLv3",b=y?g(e,v):j,C=y?{leftColor:"onSurface.nLv3",rightColor:"onSurface.nLv3",leftPenaltyColor:"onSurface.nLv3",rightPenaltyColor:"onSurface.nLv3"}:x(e.status.type,t,n,v),R=a===o.Jfo.Left,L=a===o.Jfo.Right;return(0,i.jsxs)(s.so,{position:"relative",direction:"column",justify:"flex-end",align:"flex-end",w:"38px",color:j,mr:"sm",children:[(0,i.jsx)(f.cU,{eventId:e.id,changeKey:"homeScore.display",color:y?b:C.leftColor,penaltiesColor:y?b:C.leftPenaltyColor,...(0,d.J_)(e,t,w),aggWin:R,textAlign:"end"}),(0,i.jsx)(f.cU,{eventId:e.id,changeKey:"awayScore.display",color:y?b:C.rightColor,penaltiesColor:y?b:C.rightPenaltyColor,...(0,d.J_)(e,n,w),aggWin:L,textAlign:"end"})]})}function S(e){let{winnerCode:t}=e;return t!==o.Jfo.Left&&t!==o.Jfo.Right?null:(0,i.jsxs)(s.so,{direction:t===o.Jfo.Left?"column":"column-reverse",gap:"xxs",mx:"sm",children:[(0,i.jsx)(s.EY,{as:"div",c:"secondary.default",align:"center",children:(0,i.jsx)(a.A,{id:"standings.label.wins"})}),(0,i.jsx)(s.EY,{as:"div",c:"error.default",align:"center",children:(0,i.jsx)(a.A,{id:"standings.label.losses"})})]})}}}]);