!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]="9ebb3d30-1225-4e05-abd1-531ff601bb95",e._sentryDebugIdIdentifier="sentry-dbid-9ebb3d30-1225-4e05-abd1-531ff601bb95")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56621],{9081:(e,t,i)=>{i.d(t,{DT:()=>c,Xl:()=>u,__:()=>o,rC:()=>d});var s=i(6029),r=i(21377),n=i(90248),a=i(947),l=i(97431);let o=e=>{let{name:t,sport:i}=e,r=(0,l.g)(t,i);return(0,s.jsx)(s.Fragment,{children:r})};function d(e){let{roundName:t,sport:i}=e,a=i===r.QCR.AmericanFootball;if(!isNaN(+t))return(0,s.jsx)(n.A,{id:a?"week_number":"round_number",values:{n:t}});let l=t.match(/\d+/),c=t.match(/2nd leg/),u=t.match(/place/);if(l&&!c&&!u)return t.match(/qualification/i)?(0,s.jsx)(n.A,{id:"qualificationRoundN",values:{n:l[0]},defaultMessage:t}):t.match(/round of/i)||t.match(/\d+[/]\d+/i)||t.match(/R\d+/i)?(0,s.jsx)(o,{name:t,sport:i}):(0,s.jsx)(n.A,{id:a?"week_number":"round_number",values:{n:l[0]},defaultMessage:t});if(c&&c.index){let e=t.slice(0,c.index-1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d,{roundName:e})," ",(0,s.jsx)(n.A,{id:"tournament.totw.secondLeg",defaultMessage:c[0]})]})}return(0,s.jsx)(o,{name:t,sport:i})}let c=e=>{let{round:t,sport:i}=e;return t?(0,s.jsxs)(s.Fragment,{children:[t.prefix&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d,{roundName:t.prefix}),"\xa0"]}),(0,s.jsx)(d,{roundName:(null==t?void 0:t.name)||t.round.toString(),sport:i})]}):null},u=(e,t,i)=>{let s=(0,a.A)(),n=(0,l.g)(e,t),o=t===r.QCR.AmericanFootball;if(!e)return;if(!isNaN(+e))return s.formatMessage({id:o?"week_number":"round_number"},{n:e});let d=e.match(/\d+/),c=e.match(/2nd leg/),u=e.match(/place/);return!d||c||u?i?s.formatMessage({id:"winner"}):n:e.match(/qualification/i)?s.formatMessage({id:"qualificationRoundN",defaultMessage:e},{n:d[0]}):e.match(/round of/i)||e.match(/\d+[/]\d+/i)||e.match(/R\d+/i)?n:s.formatMessage({id:o?"week_number":"round_number",defaultMessage:e},{n:d[0]})}},34781:(e,t,i)=>{i.d(t,{A:()=>b});var s=i(6029),r=i(55729);function n(e,t){var i,s;let n=(0,r.useRef)();return(0,r.useEffect)(()=>{n.current&&n.current.eventId===t?n.current.value=e:n.current={value:void 0,eventId:t}},[e,t]),(null==(i=n.current)?void 0:i.eventId)===t?null==(s=n.current)?void 0:s.value:void 0}var a=i(21377),l=i(28349),o=i(76356),d=i(90248),c=i(18970),u=i(52466);let f=e=>{let{leftScore:t,rightScore:i,prevLeftScore:n,prevRightScore:a,isLive:c,isLiveCrowdsourcing:u,isFootball:f,statusColor:m,isSmall:p,setIsGoalAnimation:v,children:x}=e,{showBlinkGoalText:g,showGoalText:y,showAnimatedText:h}=(e=>{let{leftScore:t,rightScore:i,prevLeftScore:s,prevRightScore:n,isLive:a,isLiveCrowdsourcing:l}=e,[o,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[f,m]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e,r,o=t.display&&(null==s?void 0:s.display)!==void 0&&t.display>s.display,c=i.display&&(null==n?void 0:n.display)!==void 0&&i.display>n.display;return(o||c)&&(a||l)&&(d(!0),e=window.setTimeout(()=>{d(!1),u(!0),r=window.setTimeout(()=>{u(!1),m(!0)},2e3)},5e3)),o||c||(d(!1),u(!1),m(!1)),()=>{clearTimeout(e),clearTimeout(r)}},[t.display,i.display,a,l]),{showBlinkGoalText:o,showGoalText:c,showAnimatedText:f}})({leftScore:t,rightScore:i,prevLeftScore:n,prevRightScore:a,isLive:c,isLiveCrowdsourcing:u});return(0,r.useEffect)(()=>{g&&v&&v(!0),g||y||!v||v(!1)},[g,y]),(0,s.jsxs)(s.Fragment,{children:[g&&f&&(0,s.jsxs)(o.az,{style:{color:m},textAlign:"center",display:"block",lineClamp:1,textTransform:"uppercase",animation:"blink 1s infinite",children:[(0,s.jsx)(d.A,{id:"goal"}),"!"]}),y&&f&&(0,s.jsxs)(l.EY,{style:{color:m},textAlign:"center",display:"block",lineClamp:1,textTransform:"uppercase",children:[(0,s.jsx)(d.A,{id:"goal"}),"!"]}),!g&&!y&&x&&(0,s.jsx)(o.az,{animation:h?"slideUp 0.5s ease-in-out":"none",children:(0,s.jsx)(l.EY,{position:"relative",style:{color:m},textAlign:"center",display:"block",lineClamp:1,textStyle:p?"assistive.micro":"body.medium",children:x})})]})};var m=i(70923),p=i(40076),v=i(67087),x=i(63561),g=i(81484),y=i(14831),h=i(40134);function b(e){let{shortStatus:t,isSmall:i}=e,{event:b,leftScore:j,rightScore:w}=(0,r.useContext)(c.y$),{textDirection:S}=(0,l.$c)(),A=n(j,b.id),R=n(w,b.id),C=b.status.type===a.XUj.InProgress,_=C&&b.crowdsourcingDataDisplayEnabled,L=b.crowdsourcingDataDisplayEnabled&&b.status.type===a.XUj.Finished,E=b.tournament.category.sport.slug,P=(0,v.gm)(b.yardDistance,"currentPossession",b)===a.Jfo.Right||b.firstToServe===a.Jfo.Right,F=C?(0,h.UR)(E,b.yardDistance,b.firstToServe):void 0,T=[a.QCR.AmericanFootball,a.QCR.Tennis].includes(E),k=(0,v.gm)(b,"winnerCode"),D=(0,v.gm)(b,"aggregatedWinnerCode"),I=(0,h.lZ)(b,k,!0),M=_?"status.crowdsourcingLive":C?"status.live":"neutrals.nLv3",N=(0,h.lZ)(b,k,!1),Q=((e,t,i)=>{if(i)return(0,g.Iv)((0,y.B_)(e),t,i);let s=(0,g.Iv)(e.status.description,t,i);switch(s){case"ap":return"afterPenalties";case"after_extra_time_short":return"afterExtraTime";case"ags":return"afterGoldenSet";case"ended":if(t===a.QCR.AmericanFootball)return"final_score";return"finished";default:return s}})(b,E,t),Y=(0,g.bO)(t?(0,y.B_)(b):b.status.description)||void 0,J=C&&T&&((e,t,i,s,r)=>{if(s===a.QCR.Tennis){if(![typeof t.point,typeof i.point,typeof e.lastPeriod].includes("undefined")){let s="".concat(t[e.lastPeriod],"-").concat(i[e.lastPeriod]),n="(".concat(t.point,":").concat(i.point,")");return"rtl"===r&&(s="".concat(i[e.lastPeriod],"-").concat(t[e.lastPeriod]),n="(".concat(i.point,":").concat(t.point,")")),"".concat(s," ").concat(n)}}else if(s===a.QCR.AmericanFootball){let{yardDistance:t}=e;return t&&(0,p.XB)(t)?(0,p.XE)(t,e):void 0}})(b,j,w,E,S),z=(0,x.Sw)(b),U=(0,g.Iv)(b.status.description,E,!0),X=z&&U,q=(0,m.zV)(b),B=E===a.QCR.Football,O=B&&(b.status.code===a.sum.AP||b.status.code===a.sum.Penalties),Z=C&&!!b.finalResultOnly;return(0,s.jsxs)(o.az,{children:[(0,s.jsxs)(o.az,{position:"relative",textAlign:"center",children:[F&&(0,s.jsx)(o.az,{px:"xs",position:"absolute",right:P?"0":void 0,left:P?void 0:"0",top:"[50%]",transform:P?"translate(100%, -50%)":"translate(-100%, -50%)",children:F}),(0,s.jsxs)(l.EY,{truncate:!0,children:[(0,s.jsxs)(l.EY,{position:"relative",textStyle:i?"display.medium":"display.extraLarge",style:{color:I},children:[void 0!==j.display?j.display:j.current,D===a.Jfo.Left&&(0,s.jsx)(o.az,{position:"absolute",top:"2xs",right:"[-6px]",children:(0,s.jsx)(u.UFI,{fill:"onSurface.nLv1"})})]}),(0,s.jsx)(l.EY,{textStyle:i?"display.medium":"display.extraLarge",color:M,children:" - "}),(0,s.jsxs)(l.EY,{position:"relative",textStyle:i?"display.medium":"display.extraLarge",style:{color:N},children:[void 0!==w.display?w.display:w.current,D===a.Jfo.Right&&(0,s.jsx)(o.az,{position:"absolute",top:"2xs",right:"[-6px]",children:(0,s.jsx)(u.UFI,{fill:"onSurface.nLv1"})})]})]})]}),(0,s.jsx)(f,{leftScore:j,rightScore:w,prevLeftScore:A,prevRightScore:R,isLive:C,isLiveCrowdsourcing:_,isFootball:B,statusColor:M,isSmall:i,children:(0,s.jsx)(l.EY,{position:"relative",color:M,textAlign:"center",display:"block",lineClamp:1,textStyle:i?"assistive.micro":"body.medium",children:X?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{id:U,values:Y})," (",z,")"]}):Z?(0,s.jsx)(d.A,{id:"live"}):_?(0,s.jsxs)(o.so,{justify:"center",align:"center",children:[(0,s.jsx)(u.Mv5,{mr:"xs",fill:"sofaSingles.crowdsourcingLive"}),(0,s.jsx)(l.EY,{textStyle:"body.small",color:"[inherit]",children:(0,s.jsx)(d.A,{id:"live"})})]}):q?(0,s.jsx)(m.lx,{time:b.time,status:b.status,lastPeriod:b.lastPeriod,currentPeriodStartTimestamp:b.currentPeriodStartTimestamp}):J||(b.isAwarded||L?(0,s.jsx)(d.A,{id:L?"basic.awaitingConfirmation":"awarded"}):O?(0,s.jsxs)(l.EY,{textStyle:i?"assistive.micro":"body.medium",color:M,children:[(0,s.jsx)(d.A,{id:"penalties_short"})," ",j.penalties," - ",w.penalties]}):(0,s.jsx)(d.A,{id:Q,values:Y,defaultMessage:Q}))})})]})}},40134:(e,t,i)=>{i.d(t,{KY:()=>c,UR:()=>f,gj:()=>d,lZ:()=>o,mq:()=>u});var s=i(6029),r=i(21377),n=i(93338),a=i(52466),l=i(89827);let o=(e,t,i)=>{let s=e.status.type===r.XUj.InProgress,a=s&&e.crowdsourcingDataDisplayEnabled,l=t===r.Jfo.Left,o=t===r.Jfo.Right;return a?n.S.var("colors.status.crowdsourcingLive"):s?n.S.var("colors.status.live"):i?l?n.S.var("colors.neutrals.nLv1"):n.S.var("colors.neutrals.nLv3"):o?n.S.var("colors.neutrals.nLv1"):n.S.var("colors.neutrals.nLv3")};function d(e){let t=(null==e?void 0:e.score)||0,i=(null==e?void 0:e.wickets)||0;return t||i?"".concat(t).concat(i>=0&&i<10?"-".concat(i):""):"-"}let c=(e,t)=>(0,l.M)(e.map(e=>{var i,s;return null!=(s=null==t||null==(i=t[e])?void 0:i.overs)?s:0}).reduce((e,t)=>e+t,0),1),u=e=>{switch(e){case"WC":case"LL":return"colors.playoffs.relegation";case"Q":case"A":case"PR":case"SE":return"colors.playoffs.promotionToXPlayoff";default:return"colors.playoffs.promotionToYPlayoff"}},f=(e,t,i)=>{if(e===r.QCR.Tennis)return i===r.Jfo.Left||i===r.Jfo.Right?(0,s.jsx)(a.OXq,{fill:"secondary.default"}):void 0;if(e===r.QCR.AmericanFootball){let e=null==t?void 0:t.currentPossession,i=Number(null==t?void 0:t.currentDown);return i>=1&&i<=4&&(e===r.Jfo.Left||e===r.Jfo.Right)?(0,s.jsx)(a.CvR,{icon:"af-touchdown",w:16,h:16,fill:"sofaSingles.live"}):void 0}}}}]);