!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]="4ef9c8ae-8fce-47a9-93db-407b2b752800",e._sentryDebugIdIdentifier="sentry-dbid-4ef9c8ae-8fce-47a9-93db-407b2b752800")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17135],{17135:(e,t,n)=>{n.d(t,{n6:()=>el,MC:()=>y.M,lv:()=>y.l});var s=n(6029),i=n(46787),l=n(22375),r=n(10174),o=n(76356),a=n(93338),c=n(55729),d=n(90510),u=n(90248),x=n(47125),h=n(18970),g=n(70923),f=n(63561),m=n(86300),p=n(81484),v=n(90223),y=n(23240);function j(e){let{isShortDate:t}=e,{event:n}=(0,c.useContext)(h.y$),j=l.pp(n.startTimestamp),w=j.getTime(),S=n.status.type===i.XUj.Finished,b=n.status.type===i.XUj.InProgress,C=n.status.type===i.XUj.NotStarted,I=n.status.code===i.sum.Halftime||n.status.code===i.sum["Extra time halftime"],T=(0,v.sw)(n)||n.isAwarded,A=(0,v.ux)(n),P=n.tournament.category.sport.slug===i.QCR.Football,k=n.crowdsourcingDataDisplayEnabled,R=n.status.type===i.XUj.WillContinue,U=(0,f.Sw)(n),D=(e=>{let t=e.status.type===i.XUj.InProgress,n=e.crowdsourcingDataDisplayEnabled,s=(0,v.sw)(e)||e.isAwarded,l=(0,v.ux)(e);return t?n?a.S.var("colors.status.crowdsourcingLive"):a.S.var("colors.status.live"):l||e.isAwarded||!s?a.S.var("colors.neutrals.nLv3"):a.S.var("colors.status.live")})(n),{statusTimeOnly:L}=(0,y.l)(),Q=(0,p.c8)((0,v.B_)(n),!0);return(0,s.jsxs)(o.az,{title:Q.toString(),textAlign:"center",mx:"sm",flexShrink:0,flexBasis:"5xl",children:[(0,s.jsx)(r.Ym,{textStyle:"body.small",color:"neutrals.nLv3",children:function(){if(l.cK(j)||L)return(0,s.jsx)(d.ib,{value:w});let e=t?l.or.date:l.or.fullDate;return(0,s.jsx)(d.XU,{value:w,...e})}()}),(0,s.jsx)(m.c,{eventId:n.id,changeKey:"status",align:"center",children:(0,s.jsx)(r.Ym,{textStyle:"body.small",textAlign:"center",w:"5xl",display:"block",truncate:!0,style:{color:D},children:function(){if(L&&C&&!T)return null;if(b){if(k)return(0,s.jsx)(u.A,{id:"live"});if(n.status.code===i.sum["Awaiting extra time"])return(0,s.jsx)(u.A,{id:"awaitingExtraTime.short"});if(n.status.code===i.sum["Awaiting penalties"])return(0,s.jsx)(u.A,{id:"awaitingPenalties.short"});if([i.sum.Penalties,i.sum["Penalties alt."]].includes(n.status.code))return(0,s.jsx)(u.A,{id:"penalties"});if(n.time&&P&&!I)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.kG,{time:n.time,status:n.status,currentPeriodStartTimestamp:n.currentPeriodStartTimestamp}),(0,s.jsx)(x.I,{})]})}if(A)return(0,s.jsx)(u.A,{id:"final_result_only_short"});if(n.isAwarded)return(0,s.jsx)(u.A,{id:"awarded"});if((b||S||T||R)&&Q)return U?(0,f.vJ)(n.tournament.category.sport.slug)?"".concat(U," ").concat(Q):"".concat(Q," (").concat(U,")"):Q;return l.cK(j)?"-":(0,s.jsx)(d.ib,{value:j.getTime()})}()})})]})}var w=n(58456),S=n(62042),b=n(81278),C=n(494),I=n(41735),T=n(52466),A=n(90438),P=n(56587),k=n(41164),R=n(40076),U=n(98835),D=n(37455),L=n(72753),Q=n(14831);let z=()=>{let{event:e}=(0,c.useContext)(h.y$);return e.status.type===i.XUj.InProgress&&e.varInProgress&&(e.varInProgress.homeTeam||e.varInProgress.awayTeam)?e.varInProgress.homeTeam&&e.varInProgress.awayTeam?(0,s.jsx)(o.so,{animationName:"pulse",animationDuration:"[3s]",animationIterationCount:"infinite",children:(0,s.jsx)(T.FgT,{fill:"sofaSingles.live",w:16,h:16})}):(0,s.jsxs)(o.so,{direction:e.varInProgress.homeTeam?"column":"column-reverse",children:[(0,s.jsx)(o.so,{h:"lg",justify:"center",align:"center",animationName:"pulse",animationDuration:"[3s]",animationIterationCount:"infinite",children:(0,s.jsx)(T.FgT,{fill:"sofaSingles.live",w:16,h:16})}),(0,s.jsx)(o.az,{h:"lg"})]}):null};var E=n(8536),X=n(25133),F=n(947),N=n(19621),B=n(94565);let K=e=>{let{text:t,width:n,ellipsis:i}=e;return n?(0,s.jsx)("span",{style:{display:"inline-block",width:n-1,overflow:"hidden",textOverflow:i?"ellipsis":"clip",whiteSpace:"nowrap",direction:i?"rtl":void 0},children:t}):null};function _(e){let{text:t,isLive:n}=e,i=(0,c.useRef)(null),l=(0,N.uc)(i)||0,[o,a]=["body","medium"],d=B.Il.font[o],u=function(e,t){let n="get-text-width-div-id",s=document.createElement("div");s.style.position="absolute",s.style.top="-10000px",s.style.left="-10000px",s.style.font=t,s.id=n,s.innerHTML=e,document.body.appendChild(s);let i=document.getElementById(n),l=i.offsetWidth;return document.body.removeChild(i),l}(t,"string"==typeof d?d:null==d?void 0:d[a]);return(0,s.jsx)(r.EY,{color:n?"status.live":"neutrals.nLv3",display:"block",mt:"2xs",children:(0,s.jsx)("div",{style:{display:"inline-block",width:"100%"},ref:i,children:u{let{event:t}=e,n=t.status.type===i.XUj.InProgress,s=t.lastPeriod?q[t.lastPeriod]:null;return[n&&t.homeTeam.id===t.currentBattingTeamId&&s===H()($()(t.homeScore.innings)),n&&t.awayTeam.id===t.currentBattingTeamId&&s===H()($()(t.awayScore.innings))]},Z=e=>{let t=J()(e),n=H()(t),s=(null==n?void 0:n.overs)||0;return[(null==n?void 0:n.score)||0,(null==n?void 0:n.wickets)||0,(0,V.M)(s,1)]};function ee(e){let{hasTail:t}=e,{event:n}=(0,c.useContext)(h.y$),l=(0,k.c5)(n),a=n.status.type===i.XUj.NotStarted,d=n.status.type===i.XUj.InProgress,u=n.winnerCode===i.Jfo.Left,x=n.winnerCode===i.Jfo.Right,g=void 0===n.winnerCode;if(l!==i.QCR.Cricket||a)return null;let[f,p]=G({event:n}),[v,y,j]=Z(n.homeScore.innings),[w,S,b]=Z(n.awayScore.innings),C=n.homeScore.display||0,I=n.awayScore.display||0,A=C>v||I>w,P=(0,Q.sw)(n)?0===v&&v0&&"".concat(v).concat(y>=0&&y<10?"-".concat(y):""," (").concat(j,")"),A?(0,s.jsx)(o.az,{display:"inline-block",ml:"xs",children:C}):null]})}),(0,s.jsx)(o.so,{justify:"flex-end",children:R?(0,s.jsx)(r.EY,{textAlign:"end",display:"block",pr:"sm",children:"-"}):(0,s.jsxs)(m.c,{eventId:n.id,changeKey:"awayScore.display",textAlign:"end",mr:"sm",color:d&&p?"sofaSingles.live":x||g?"onSurface.nLv1":"onSurface.nLv3",flex:"1 1 16px",maxW:"fit-content",children:[p&&U," ",w>0&&"".concat(w).concat(S>=0&&S<10?"-".concat(S):""," (").concat(b,")"),A?(0,s.jsx)(o.az,{display:"inline-block",ml:"xs",children:I}):null]})})]})}function et(e){let{hasTail:t}=e,{event:n}=(0,c.useContext)(h.y$),[l,r]=G({event:n}),a=(0,k.c5)(n),d=n.status.type===i.XUj.NotStarted,u=n.status.type===i.XUj.InProgress,x=n.winnerCode===i.Jfo.Left,g=n.winnerCode===i.Jfo.Right,f=void 0===n.winnerCode;if(a!==i.QCR.Cricket||d)return null;let p=n.homeScore.display||"-",v=n.awayScore.display||"-",y="-"!==p||"-"!==v;return(0,s.jsxs)(o.az,{pr:"sm",mr:t?void 0:"sm",children:[y?(0,s.jsx)(o.az,{mb:"2xs",children:(0,s.jsx)(m.c,{eventId:n.id,changeKey:"homeScore.display",textAlign:"end",color:u&&l?"sofaSingles.live":x||f?"onSurface.nLv1":"onSurface.nLv3",children:p})}):null,y?(0,s.jsx)(o.az,{children:(0,s.jsx)(m.c,{eventId:n.id,changeKey:"awayScore.display",textAlign:"end",color:u&&r?"sofaSingles.live":g||f?"onSurface.nLv1":"onSurface.nLv3",children:v})}):null]})}let en=[i.QCR.Basketball,i.QCR.IceHockey,i.QCR.AmericanFootball,i.QCR.Floorball,i.QCR.AussieRules],es=[i.QCR.Volleyball,i.QCR.Baseball,i.QCR.BeachVolley,i.QCR.Badminton],ei=function(e){let{children:t}=e;return"function"!=typeof t?null:(0,s.jsx)(o.az,{mr:"md",children:(0,s.jsx)(r.EY,{textAlign:"center",position:"relative",overflow:"visible",truncate:!0,children:t()})})};function el(e){var t,n;let l=(0,y.l)(),{children:r,style:a,odds:d,isSelected:u,entity:x,incidents:g,isReferenceTeamId:f}=e,m=(0,b.useRouter)(),p=void 0===e.isShort?l.isShort:e.isShort,v=null!=(n=e.isNarrow)?n:l.isNarrow,I=void 0===e.isShortDate?l.isShortDate:e.isShortDate,Q=void 0===e.hideIncidentIcons?l.hideIncidentIcons:e.hideIncidentIcons,{event:F}=(0,c.useContext)(h.y$),N=(0,C.d4)(L.LQ),B=m.route===A.xW.Favorites,K=(0,k.c5)(F),_=(0,C.d4)((0,D.Ul)(F)),W=l.showOdds&&_,$=K===i.QCR.Cricket&&!B,Y=F.status.type===i.XUj.InProgress,H=F.status.type===i.XUj.Finished,O=Y&&F.crowdsourcingDataDisplayEnabled,J=H&&F.crowdsourcingDataDisplayEnabled,V=K===i.QCR.AmericanFootball&&Y&&(null==(t=F.tournament.uniqueTournament)?void 0:t.hasDownDistance),q=V&&(0,R.H_)(F.yardDistance),G=$||q,Z=(0,w.TF)(F,N)?(0,s.jsx)(T.PEB,{fill:Y?"sofaSingles.live":"neutral.default"}):void 0;return(0,s.jsxs)(o.so,{align:"center",h:G?"[68px]":"4xl",bg:u?"surface.s2":void 0,color:"neutrals.nLv1",position:"relative",className:"js-list-cell-target js-list-cell-target-".concat(F.id," ").concat((0,S.AH)({"&.active":{bg:"neutral.highlight"}})),style:a,children:[$?(0,s.jsx)(o.az,{minW:"md",w:"md",h:"100%"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(U.kV,{eventId:F.id}),(0,s.jsx)(j,{isShortDate:I})]}),(0,s.jsx)(o.az,{mr:"sm",h:G?"5xl":"[36px]",flex:"[0 0 1px]",bg:"neutrals.nLv4"}),(0,s.jsxs)(o.az,{flexGrow:1,overflowX:"clip",minW:"[0px]",children:[(0,s.jsxs)(o.so,{align:"center",children:[(0,s.jsx)(X.g,{isShort:p,entity:x}),W?(0,s.jsx)(P.ZK,{eventId:F.id,odds:d,sport:K,fallback:Z}):(0,s.jsxs)(s.Fragment,{children:[Q||F.isAwarded?null:(0,s.jsx)(function(e){let{incidents:t,sportSlug:n,isReferenceTeamId:l}=e,{event:r,leftTeam:a}=(0,c.useContext)(h.y$);return n!==i.QCR.Cricket&&t?(0,s.jsx)(o.so,{mr:"sm",alignSelf:(null==l?void 0:l(Number(a.id),r.id))?"flex-start":"flex-end",children:(0,w.t3)(n,t)}):null},{isReferenceTeamId:f,incidents:g,sportSlug:K}),O&&(0,s.jsx)(T.Mv5,{fill:"sofaSingles.crowdsourcingLive"}),Z,J&&(0,s.jsx)(T.Mv5,{fill:"onSurface.nLv3",w:16}),(0,s.jsx)(er,{}),K===i.QCR.Cricket?(0,s.jsx)(ee,{hasTail:!!r}):x!==i.wNW.Player?(0,s.jsx)(eo,{isNarrow:v||es.includes(K)}):null]}),V&&(0,s.jsx)(R.x8,{event:F}),W&&(0,s.jsx)(et,{hasTail:!!r}),K===i.QCR.Football&&(0,s.jsx)(z,{}),!l.hideScores&&(0,s.jsx)(E.$,{})]}),$&&(0,s.jsx)(M,{event:F,isShortDate:I}),q&&(0,s.jsx)(R.RU,{})]}),!!r&&(0,s.jsx)(o.az,{mr:"md",h:G?"5xl":"[36px]",bg:"neutrals.nLv4",style:{flex:"0 0 ".concat(+!!r,"px")}}),(0,s.jsx)(ei,{children:r})]})}function er(){let{event:e,leftScore:t,rightScore:n}=(0,c.useContext)(h.y$),l=(0,c.useContext)(I.ThemeContext),r="rtl"===l.settings.textDirection;if((0,k.c5)(e)===i.QCR.Tennis&&e.status.type===i.XUj.InProgress){let i=l.colors.secondary.default,a=(0,s.jsx)(T.OXq,{fill:i,position:"absolute",w:"12",h:"16",style:r?{right:-16}:{left:-16}});return(0,s.jsxs)(o.so,{direction:"column",justify:"flex-end",align:"flex-end",mr:"md",ml:"lg",w:"2xl",basis:"2xl",children:[(0,s.jsxs)(o.az,{position:"relative",minW:"lg",mb:"2xs",children:[1===e.firstToServe&&a,(0,s.jsx)(U.cU,{eventId:e.id,color:"secondary.default",textAlign:"end",changeKey:"homeScore.point",score:t.point})]}),(0,s.jsxs)(o.az,{position:"relative",minW:"lg",children:[2===e.firstToServe&&a,(0,s.jsx)(U.cU,{eventId:e.id,color:"secondary.default",textAlign:"end",changeKey:"awayScore.point",score:n.point})]})]})}return null}function eo(e){let{isNarrow:t}=e,{mediaBreakpoint:n}=(0,r.$c)();return["lg","sm"].includes(n)&&!t?(0,s.jsx)(ea,{}):(0,s.jsx)(ec,{})}function ea(){var e,t;let{event:n,leftTeam:l,rightTeam:a,leftScore:d,rightScore:u}=(0,c.useContext)(h.y$),x=(null==(e=l.subTeams)?void 0:e.length)===2&&(null==(t=a.subTeams)?void 0:t.length)===2,[g,f]=(0,c.useMemo)(()=>{let e=[],t=[],l=(0,k.c5)(n),a=l===i.QCR.Tennis,c=[],h=0;return n.periods?(Object.keys(n.periods).filter(e=>!["point","current"].includes(e)).forEach(e=>{let t=d[e],n=u[e],i="".concat(e,"TieBreak"),l=d[i],o=u[i],a=x&&"period3TieBreak"===i&&!!l&&!!o&&(t===l||n===o),g=!a&&(l||0===l)?(0,s.jsx)(r.EY,{textStyle:"assistive.micro",top:"0",left:t<10?"[14px]":"[18px]",position:"absolute",verticalAlign:"super",lineHeight:"1","data-change-key":"homeScore.".concat(i),children:l}):null,f=!a&&(o||0===o)?(0,s.jsx)(r.EY,{textStyle:"assistive.micro",top:"0",left:n<10?"[14px]":"[18px]",position:"absolute",verticalAlign:"super",lineHeight:"1","data-change-key":"awayScore.".concat(i),children:o}):null;c.push({left:t,right:n,leftTie:g,rightTie:f,periodKey:e}),(t||0===t||n||0===n||g||f)&&h++}),c.forEach((r,c)=>{let{left:d,right:u,leftTie:x,rightTie:g,periodKey:f}=r,m=n.status.type===i.XUj.InProgress&&c+1===h,p=l===i.QCR.Tennis?"center":"end",v=d>99||u>99?36:24;e.push((0,s.jsxs)(o.az,{d:"inline-block",position:"relative",style:{width:v},textAlign:a?"start":"end",children:[(0,s.jsx)(U.cU,{eventId:n.id,changeKey:"homeScore.".concat(f),score:d,textAlign:p,align:"flex-start",color:m?"sofaSingles.live":d>u?"onSurface.nLv1":"onSurface.nLv3",w:v}),x]},f)),t.push((0,s.jsxs)(o.az,{d:"inline-block",position:"relative",textAlign:a?"start":"end",style:{width:v},children:[(0,s.jsx)(U.cU,{eventId:n.id,changeKey:"awayScore.".concat(f),score:u,textAlign:p,align:"flex-start",color:m?"sofaSingles.live":u>d?"onSurface.nLv1":"onSurface.nLv3",w:v}),g]},f))}),[e,t]):[void 0,void 0]},[n.periods,d,u,n.status.type]);return void 0!==n.periods&&(n.status.type!==i.XUj.NotStarted||(0,Q.sw)(n))&&(g||f)?(0,s.jsxs)(o.az,{children:[(0,s.jsx)(o.so,{h:"lg",mb:"2xs",children:g}),(0,s.jsx)(o.so,{h:"lg",children:f})]}):null}function ec(){let{event:e,leftScore:t,rightScore:n}=(0,c.useContext)(h.y$),l=(0,k.c5)(e);if(void 0===e.periods||!e.lastPeriod||en.includes(l))return null;let r=l===i.QCR.Tennis?"sofaSingles.live":"secondary.default";return e.status.type===i.XUj.InProgress&&e.lastPeriod?(0,s.jsxs)(o.az,{w:"[28px]",children:[(0,s.jsx)(o.az,{position:"relative",mb:"2xs",children:(0,s.jsx)(U.cU,{eventId:e.id,align:"right",color:r,changeKey:"homeScore.".concat(e.lastPeriod),score:t[e.lastPeriod]},e.lastPeriod)}),(0,s.jsx)(o.az,{position:"relative",children:(0,s.jsx)(U.cU,{eventId:e.id,align:"right",color:r,changeKey:"awayScore.".concat(e.lastPeriod),score:n[e.lastPeriod]},e.lastPeriod)})]}):null}},23240:(e,t,n)=>{n.d(t,{M:()=>i,l:()=>l});var s=n(55729);let i=(0,s.createContext)({}),l=()=>(0,s.useContext)(i);i.displayName="EventCellContext"}}]);