!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]="25eca098-fee0-4b48-918d-da563da0e2ec",e._sentryDebugIdIdentifier="sentry-dbid-25eca098-fee0-4b48-918d-da563da0e2ec")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[49191],{9081:(e,t,i)=>{i.d(t,{DT:()=>c,Xl:()=>u,__:()=>o,rC:()=>d});var s=i(6029),r=i(46787),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,isWeek:a}=e,l=!!i&&[r.QCR.AmericanFootball].includes(i)||!!a;if(!isNaN(+t))return(0,s.jsx)(n.A,{id:l?"week_number":"round_number",values:{n:t}});let c=t.match(/\d+/),u=t.match(/2nd leg/),m=t.match(/place/);if(c&&!u&&!m)return t.match(/qualification/i)?(0,s.jsx)(n.A,{id:"qualificationRoundN",values:{n:c[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:l?"week_number":"round_number",values:{n:c[0]},defaultMessage:t});if(u&&u.index){let e=t.slice(0,u.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:u[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]})}},75711:(e,t,i)=>{i.d(t,{A:()=>j});var s=i(6029),r=i(55729);function n(e,t){var i,s;let n=(0,r.useRef)(null);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(46787),l=i(51569),o=i(20325),d=i(90248),c=i(18970),u=i(52466);let m=e=>{let{leftScore:t,rightScore:i,prevLeftScore:n,prevRightScore:a,isLive:c,isLiveCrowdsourcing:u,isFootball:m,statusColor:p,isSmall:f,setIsGoalAnimation:x,children:g}=e,{showBlinkGoalText:y,showGoalText:v,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),[m,p]=(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),p(!0)},2e3)},5e3)),o||c||(d(!1),u(!1),p(!1)),()=>{clearTimeout(e),clearTimeout(r)}},[t.display,i.display,a,l]),{showBlinkGoalText:o,showGoalText:c,showAnimatedText:m}})({leftScore:t,rightScore:i,prevLeftScore:n,prevRightScore:a,isLive:c,isLiveCrowdsourcing:u});return(0,r.useEffect)(()=>{y&&x&&x(!0),y||v||!x||x(!1)},[y,v]),(0,s.jsxs)(s.Fragment,{children:[y&&m&&(0,s.jsxs)(o.az,{style:{color:p},textAlign:"center",display:"block",lineClamp:1,textTransform:"uppercase",animation:"blink 1s infinite",children:[(0,s.jsx)(d.A,{id:"goal"}),"!"]}),v&&m&&(0,s.jsxs)(l.EY,{style:{color:p},textAlign:"center",display:"block",lineClamp:1,textTransform:"uppercase",children:[(0,s.jsx)(d.A,{id:"goal"}),"!"]}),!y&&!v&&g&&(0,s.jsx)(o.az,{animation:h?"slideUp 0.5s ease-in-out":"none",children:(0,s.jsx)(l.EY,{position:"relative",style:{color:p},textAlign:"center",display:"block",lineClamp:1,textStyle:f?"assistive.micro":"body.medium",children:g})})]})};var p=i(70923),f=i(40076),x=i(67087),g=i(63561),y=i(81484),v=i(14831),h=i(61552);function j(e){let{shortStatus:t,isSmall:i}=e,{event:j,leftScore:b,rightScore:w}=(0,r.useContext)(c.y$),{textDirection:A}=(0,l.$c)(),_=n(b,j.id),S=n(w,j.id),C=j.status.type===a.XUj.InProgress,R=C&&j.crowdsourcingDataDisplayEnabled,E=j.crowdsourcingDataDisplayEnabled&&j.status.type===a.XUj.Finished,P=j.tournament.category.sport.slug,I=(0,x.gm)(j.yardDistance,"currentPossession",j)===a.Jfo.Right||j.firstToServe===a.Jfo.Right,F=C?(0,h.UR)(P,j.yardDistance,j.firstToServe):void 0,T=j.status.type===a.XUj.InProgress&&j.varInProgress&&(j.varInProgress.homeTeam||j.varInProgress.awayTeam),k=[a.QCR.AmericanFootball,a.QCR.Tennis].includes(P),L=(0,x.gm)(j,"winnerCode"),D=(0,x.gm)(j,"aggregatedWinnerCode"),M=(0,h.lZ)(j,L,!0),N=R?"status.crowdsourcingLive":C?"status.live":"neutrals.nLv3",Y=(0,h.lZ)(j,L,!1),z=((e,t,i)=>{if(i)return(0,y.Iv)((0,v.B_)(e),t,i);let s=(0,y.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}})(j,P,t),Q=(0,y.bO)(t?(0,v.B_)(j):j.status.description)||void 0,U=C&&k&&((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,f.XB)(t)?(0,f.XE)(t,e):void 0}})(j,b,w,P,A),X=(0,g.Sw)(j),q=(0,y.Iv)(j.status.description,P,!0),J=X&&q,B=(0,p.zV)(j),H=P===a.QCR.Football,O=H&&(j.status.code===a.sum.AP||j.status.code===a.sum.Penalties),V=C&&!!j.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:I?"0":void 0,left:I?void 0:"0",top:"[50%]",transform:I?"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:M},children:[void 0!==b.display?b.display:b.current,D===a.Jfo.Left&&(0,s.jsx)(o.az,{position:"absolute",top:"2xs",right:"[-6px]",children:(0,s.jsx)(u.UFI,{color:"neutrals.nLv1"})})]}),(0,s.jsx)(l.EY,{textStyle:i?"display.medium":"display.extraLarge",color:N,children:" - "}),(0,s.jsxs)(l.EY,{position:"relative",textStyle:i?"display.medium":"display.extraLarge",style:{color:Y},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,{color:"neutrals.nLv1"})})]})]})]}),(0,s.jsxs)(o.so,{justify:"center",align:"center",gap:"xs",children:[(0,s.jsx)(m,{leftScore:b,rightScore:w,prevLeftScore:_,prevRightScore:S,isLive:C,isLiveCrowdsourcing:R,isFootball:H,statusColor:N,isSmall:i,children:(0,s.jsx)(l.EY,{position:"relative",color:N,textAlign:"center",display:"block",lineClamp:1,textStyle:i?"assistive.micro":"body.medium",children:J?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{id:q,values:Q})," (",X,")"]}):V?(0,s.jsx)(d.A,{id:"live"}):R?(0,s.jsxs)(o.so,{justify:"center",align:"center",children:[(0,s.jsx)(u.Mv5,{mr:"xs",color:"status.crowdsourcingLive"}),(0,s.jsx)(l.EY,{textStyle:"body.small",color:"[inherit]",children:(0,s.jsx)(d.A,{id:"live"})})]}):B?(0,s.jsx)(p.lx,{time:j.time,status:j.status,lastPeriod:j.lastPeriod,currentPeriodStartTimestamp:j.currentPeriodStartTimestamp}):U||(j.isAwarded||E?(0,s.jsx)(d.A,{id:E?"basic.awaitingConfirmation":"awarded"}):O?(0,s.jsxs)(l.EY,{textStyle:i?"assistive.micro":"body.medium",color:N,children:[(0,s.jsx)(d.A,{id:"penalties_short"})," ",b.penalties," - ",w.penalties]}):(0,s.jsx)(d.A,{id:z,values:Q,defaultMessage:z}))})}),T&&(0,s.jsx)(o.so,{backgroundColor:"status.liveHighlight",minH:"lg",minW:"3xl",borderRadius:"md",justify:"center",align:"center",children:(0,s.jsx)(l.EY,{lineHeight:1,color:"status.live",textStyle:"assistive.default",children:"VAR"})})]})]})}}}]);