!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]="998becec-cf41-470e-91a3-b9cc75b9d600",e._sentryDebugIdIdentifier="sentry-dbid-998becec-cf41-470e-91a3-b9cc75b9d600")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[294],{20294:(e,t,r)=>{r.d(t,{y:()=>b});var n=r(6029),s=r(33144),a=r(55729),o=r(62859),l=r(50303),i=r(88836);let c=e=>{let{comment:t}=e,{event:r}=(0,a.useContext)(o.y$),{ref:c,isSelected:d,color:u}=(0,l.qF)(t.id),{isHome:h,player:f,playerIn:y,playerOut:m,goalkeeper:x}=t,p=h?r.homeTeam:r.awayTeam;return(0,n.jsxs)(i.hF,{children:[(0,n.jsx)(i.JJ,{comment:t}),(0,n.jsx)(i.cH,{image:(0,n.jsx)(s.p,{id:p.id,size:24}),players:[f,y,m,x],ref:c,isSelected:d,borderColor:u,children:t.text&&(0,n.jsx)(i.jv,{children:t.text})})]})},d=e=>{let{comment:t}=e,{event:r}=(0,a.useContext)(o.y$),{ref:c,isSelected:d,color:u}=(0,l.qF)(t.id),h=t.isHome?r.homeTeam:r.awayTeam;return(0,n.jsxs)(i.hF,{children:[(0,n.jsx)(i.JJ,{comment:t}),(0,n.jsxs)(i.cH,{image:(0,n.jsx)(s.p,{id:h.id,size:24}),players:[t.player],isSelected:d,ref:c,borderColor:u,children:[(0,n.jsx)(i.jv,{children:t.text}),(0,n.jsx)(i.jv,{secondary:!0,children:function(e){switch(e){case"offensive":return"Offensive zone";case"defensive":return"Defensive zone";default:return"Neutral zone"}}(t.zone)})]})]})};var u=r(41249),h=r(65078);let f=e=>{let{player1Id:t,player2Id:r,player1TeamId:s,player2TeamId:a}=e;return r?(0,n.jsxs)(u.az,{position:"relative",w:40,h:24,shrink:0,children:[(0,n.jsx)(u.az,{position:"absolute",left:0,zIndex:1,children:(0,n.jsx)(i.Ez,{id:t,teamId:s,small:!0})}),(0,n.jsx)(u.az,{position:"absolute",right:0,children:(0,n.jsx)(i.Ez,{id:r,teamId:a,small:!0})})]}):(0,n.jsx)(i.Ez,{id:t,teamId:s,small:!0})};function y(e,t){let r=t?e.name:e.shortName||e.name;return e.jerseyNumber&&(r="".concat(r," #").concat(e.jerseyNumber)),r}let m=e=>{let{comment:t}=e,{leftTeam:r,rightTeam:s}=(0,a.useContext)(o.y$),c=(0,h.g3)(),{ref:d,isSelected:m,color:x}=(0,l.qF)(t.id),{player:p,assist1:j,assist2:v,isHome:g,homeScore:S,awayScore:b}=t,w=(c?!g:g)?r:s,[C,k]=c?[b,S]:[S,b];return(0,n.jsxs)(i.hF,{children:[(0,n.jsx)(i.JJ,{comment:t}),(0,n.jsxs)(i.cH,{image:p&&(0,n.jsx)(i.Ez,{id:p.id,teamId:w.id}),players:[p,j,v],isSelected:m,ref:d,borderColor:x,children:[(0,n.jsx)(i.SI,{children:function(e){switch(e.goalType){case"emptyNetGoal":return"Empty Net Goal!";case"penaltyGoal":return"Penalty Shot Goal!";case"shootoutGoal":return"Shootout Goal!";default:return"Goal!"}}(t)}),p&&(0,n.jsx)(u.EY,{as:"div",mb:"sm",children:y(p,!0)}),j&&(0,n.jsxs)(i.Pc,{image:(0,n.jsx)(f,{player1Id:j.id,player2Id:null==v?void 0:v.id}),secondary:!0,children:[v?"Assists":"Assist",": ",y(j),v?", ".concat(y(v)):""]}),w.nameCode&&void 0!==C&&void 0!==k&&(0,n.jsxs)(i.jv,{secondary:!0,children:[w.nameCode," ",C," - ",k]})]})]})},x=e=>{let{comment:t}=e,{event:r}=(0,a.useContext)(o.y$),{ref:c,isSelected:d,color:u}=(0,l.qF)(t.id),h=t.isHome?r.homeTeam:r.awayTeam,f=t.goalkeeper;return(0,n.jsxs)(i.hF,{children:[(0,n.jsx)(i.JJ,{comment:t}),(0,n.jsxs)(i.cH,{image:(0,n.jsx)(s.p,{id:h.id,size:24}),players:[f],isSelected:d,ref:c,borderColor:u,children:[(0,n.jsx)(i.SI,{children:function(e){switch(e.type){case"goalkeeperOut":return"Goalkeeper Out";case"goalkeeperBack":return"Goalkeeper Back In";default:return null}}(t)}),f&&(0,n.jsx)(i.Pc,{image:(0,n.jsx)(i.Ez,{id:f.id,small:!0,teamId:h.id}),children:y(f,!0)})]})]})},p=e=>{let{comment:t}=e,{event:r}=(0,a.useContext)(o.y$),{ref:c,isSelected:d,color:u}=(0,l.qF)(t.id),{isHome:h,player:f,goalkeeper:m}=t,x=h?r.homeTeam:r.awayTeam,p=h?r.awayTeam:r.homeTeam;return(0,n.jsxs)(i.hF,{children:[(0,n.jsx)(i.JJ,{comment:t}),(0,n.jsxs)(i.cH,{image:(0,n.jsx)(s.p,{id:x.id,size:24}),players:[f,m],isSelected:d,ref:c,borderColor:u,children:[(0,n.jsx)(i.SI,{children:function(e){switch(e.type){case"penaltyMissed":return"PEN"===e.periodName?"Shootout Shot Missed":"Penalty Shot Missed";case"penaltySaved":return"PEN"===e.periodName?"Shootout Shot Saved":"Penalty Shot Saved";default:return null}}(t)}),f&&(0,n.jsx)(i.Pc,{image:(0,n.jsx)(i.Ez,{id:f.id,teamId:x.id,small:!0}),children:y(f,!0)}),"penaltySaved"===t.type&&m&&(0,n.jsxs)(i.Pc,{image:(0,n.jsx)(i.Ez,{id:m.id,teamId:p.id,small:!0}),secondary:!0,children:["Saved by: ",y(m,!0)]})]})]})};var j=r(98516);let v=e=>{let{penalizedPlayer:t,penaltyServedByPlayer:r,penaltyDrawnByPlayer:s}=e;return t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.Pc,{image:(0,n.jsx)(f,{player1Id:t.id,player2Id:null==r?void 0:r.id}),children:[y(t,!0),(0,n.jsx)("br",{}),r&&"Served by: ".concat(y(r,!0))]}),s&&(0,n.jsxs)(i.jv,{secondary:!0,children:["Against: ",y(s,!0)]})]}):(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsxs)(i.Pc,{image:(0,n.jsx)(i.Ez,{id:r.id,small:!0}),children:["Served by: ",y(r,!0)]}),s&&(0,n.jsxs)(i.jv,{secondary:!0,children:["Against: ",y(s,!0)]})]})},g=e=>{let{comment:t}=e,{event:r}=(0,a.useContext)(o.y$),{ref:c,isSelected:d,color:u}=(0,l.qF)(t.id),h=t.isHome?r.homeTeam:r.awayTeam,f=t.penalizedPlayer,y=t.penaltyServedByPlayer,m=t.penaltyDrawnByPlayer;return(0,n.jsxs)(i.hF,{children:[(0,n.jsx)(i.JJ,{comment:t}),(0,n.jsxs)(i.cH,{image:(0,n.jsx)(s.p,{id:h.id,size:24}),players:[f,y,m],isSelected:d,ref:c,borderColor:u,children:[(0,n.jsx)(i.SI,{children:function(e){var t;let r=function(e){switch(null==e?void 0:e.severity){case"major":return"Major";case"minor":return"Minor";case"bench":return"Bench";case"game":return"Game";case"doubleMinor":return"Double Minor";default:return"Suspension"}}(e.penaltyType),n=null==(t=e.penaltyType)?void 0:t.description,s=e.duration?(0,j.M)(e.duration/60):void 0,a="".concat(r,": ");return n&&(a+=n),s&&(a+=" | ".concat(s,"'")),a}(t)}),(0,n.jsx)(v,{penalizedPlayer:f,penaltyServedByPlayer:y,penaltyDrawnByPlayer:m})]})]})};var S=r(30566);let b=e=>{let{comment:t}=e;switch(t.type){case"scoreChange":case"penaltyScored":return(0,n.jsx)(m,{comment:t});case"penaltyMissed":case"penaltySaved":return(0,n.jsx)(p,{comment:t});case"faceOff":return(0,n.jsx)(d,{comment:t});case"suspension":return(0,n.jsx)(g,{comment:t});case"goalkeeperOut":case"goalkeeperBack":return(0,n.jsx)(x,{comment:t});case"shotOffTarget":case"shotSaved":case"shotBlocked":case"hit":return(0,n.jsx)(c,{comment:t});default:return(0,n.jsx)(S.b,{comment:t,preferTeamImage:!0})}}},24840:(e,t,r)=>{r.d(t,{LN:()=>s,Oe:()=>o,dh:()=>a});var n=r(21377),s=function(e){return e.AllShots="hockey_all_shots",e.Goals="goals",e.Blocked="hockey_blocked_shots",e.Missed="hockey_missed_shots",e.Saved="hockey_saved_shots",e}({});let a={goals:n.Dme.Made,hockey_saved_shots:n.Dme.Saved,hockey_blocked_shots:n.Dme.Blocked,hockey_missed_shots:n.Dme.Missed},o={[n.Dme.Made]:"goals",[n.Dme.Saved]:"hockey_saved_shots",[n.Dme.Blocked]:"hockey_blocked_shots",[n.Dme.Missed]:"hockey_missed_shots"}},25199:(e,t,r)=>{r.d(t,{A:()=>n});function n(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r=t)&&(r=t);else{let n=-1;for(let s of e)null!=(s=t(s,++n,e))&&(r=s)&&(r=s)}return r}},26925:(e,t,r)=>{r.d(t,{c:()=>d});var n=r(6029),s=r(41249),a=r(55729),o=r(62859),l=r(80224),i=r(16620),c=r(48886);let d=(0,a.forwardRef)((e,t)=>{let{children:r,image:d,players:u,isSelected:h,borderColor:f,bg:y,elevation:m}=e,[x,p]=(0,a.useState)(!1),{event:j}=(0,a.useContext)(o.y$),{openEventPlayerStatistics:v}=(0,i.d)(),g=null==u?void 0:u.filter(e=>!!e),S=j.hasEventPlayerStatistics&&g&&g.length>0,b=(0,a.useCallback)(e=>{S&&(e.preventDefault(),g.length>1?p(!0):v({event:j,player:g[0]},c._.TextCommentary))},[g,j]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.so,{ref:t,grow:1,bg:y||["surface.s1","surface.s2"],elevation:m,br:"md",p:"sm",border:"1.5px solid ".concat(h?f:"transparent"),justify:"space-between",gap:"sm",onClick:b,cursor:S?"pointer":void 0,children:[(0,n.jsx)(s.az,{alignSelf:"center",children:r}),d]}),g&&(null==g?void 0:g.length)>1&&(0,n.jsx)(l.A,{isOpen:x,setIsOpen:p,players:g,onPlayerClick:e=>{p(!1),v({event:j,player:e},c._.TextCommentary)}})]})})},30566:(e,t,r)=>{r.d(t,{b:()=>h});var n=r(6029),s=r(33144),a=r(21377),o=r(55729),l=r(90248),i=r(62859),c=r(88836),d=r(26925);let u=e=>({[a.zZK.ShotOnTarget]:"shotOnTarget",[a.zZK.Substitution]:"substitution",[a.zZK.Injury]:"injury",[a.zZK.InjuryReturn]:"commentary_injury_return",[a.zZK.YellowCard]:"yellowCard",[a.zZK.RedCard]:"redCard",[a.zZK.PenaltyMissed]:"penaltyMissed",[a.zZK.PenaltyAwarded]:"penaltyNotAwarded.false",[a.zZK.VideoAssistantReferee]:"varDecision",[a.zZK.VideoAssistantRefereeOver]:"commentary_var_check_over"})[e.type],h=e=>{let{comment:t,preferTeamImage:r}=e,{event:a}=(0,o.useContext)(i.y$),{isHome:h,player:f,playerIn:y,playerOut:m,goalkeeper:x}=t,p=void 0===h?void 0:h?a.homeTeam:a.awayTeam,j=r&&p?(0,n.jsx)(s.p,{id:p.id,size:24}):f&&(0,n.jsx)(c.Ez,{id:f.id,teamId:null==p?void 0:p.id}),v=u(t),g=t.text;return(0,n.jsxs)(c.hF,{children:[(0,n.jsx)(c.JJ,{comment:t}),(0,n.jsxs)(d.c,{image:j,players:[f,y,m,x],children:[v&&(0,n.jsx)(c.SI,{children:(0,n.jsx)(l.A,{id:v})}),g&&(0,n.jsx)(c.jv,{children:g})]})]})}},50303:(e,t,r)=>{r.d(t,{P7:()=>y,XM:()=>f,qF:()=>m,v9:()=>x});var n=r(6029),s=r(95083),a=r(78383),o=r.n(a),l=r(55729),i=r(43072),c=r(41735),d=r(65078),u=r(12047),h=r(88098);let f=(0,l.createContext)({addInView:o(),removeInView:o(),rootRef:{current:null}}),y=()=>{let{colors:e}=(0,c.useTheme)(),t=(0,d.g3)(),{selectedComment:r}=(0,l.useContext)(f);return(t?null==r?void 0:r.isHome:!(null==r?void 0:r.isHome))?e.primary.default:e.secondary.default},m=e=>{let t=y(),{isMobile:r}=(0,s.$c)(),{selectedComment:n,rootRef:a,addInView:o,removeInView:c}=(0,l.useContext)(f),d=(0,u.Ay)(),{ref:h,inView:m}=(0,i.Wx)({threshold:.25,root:r?void 0:a.current,rootMargin:r?"-".concat(262+d,"px 0px 0px 0px"):void 0});return(0,l.useEffect)(()=>{e&&(m?o(e):c(e))},[m]),{ref:h,isSelected:e===(null==n?void 0:n.id),color:t}},x=e=>{let{children:t,comments:r}=e,[s,a]=(0,l.useState)(0),o=(0,l.useRef)(null),i=(0,l.useRef)(new Set),c=(0,l.useCallback)(()=>{a(Math.max(0,r.findIndex(e=>i.current.has(e.id))))},[r]),d=(0,l.useCallback)(e=>{i.current.add(e),c()},[c]),u=(0,l.useCallback)(e=>{i.current.delete(e),c()},[c]),y=r[s],m=y&&{id:y.id,x:y.location.x,y:y.location.y,type:(0,h.rk)(y.type)};return(0,n.jsx)(f.Provider,{value:{selectedComment:y,selectedShot:m,rootRef:o,addInView:d,removeInView:u},children:t})}},50747:(e,t,r)=>{r.d(t,{Ay:()=>c,Z4:()=>d});var n=r(25199),s=r(66466),a=r(39984);function o(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et))}function l(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}var i=r(42943);function c(e,t,r){if(!(!(c=(e=Float64Array.from((0,i.n)(e,r))).length)||isNaN(t*=1))){if(t<=0||c<2)return(0,s.A)(e);if(t>=1)return(0,n.A)(e);var c,d=(c-1)*t,u=Math.floor(d),h=(0,n.A)((function e(t,r,n=0,s=1/0,i){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),s=Math.floor(Math.min(t.length-1,s)),!(n<=r&&r<=s))return t;for(i=void 0===i?o:function(e=a.A){if(e===a.A)return o;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(i);s>n;){if(s-n>600){let a=s-n+1,o=r-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(r-o*c/a+d)),h=Math.min(s,Math.floor(r+(a-o)*c/a+d));e(t,r,u,h,i)}let a=t[r],o=n,c=s;for(l(t,n,r),i(t[s],a)>0&&l(t,n,s);oi(t[o],a);)++o;for(;i(t[c],a)>0;)--c}0===i(t[n],a)?l(t,n,c):l(t,++c,s),c<=r&&(n=c+1),r<=c&&(s=c-1)}return t})(e,u).subarray(0,u+1));return h+((0,s.A)(e.subarray(u+1))-h)*(d-u)}}function d(e,t,r=i.A){if(!(!(n=e.length)||isNaN(t*=1))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,s=(n-1)*t,a=Math.floor(s),o=+r(e[a],a,e);return o+(r(e[a+1],a+1,e)-o)*(s-a)}}},66466:(e,t,r)=>{r.d(t,{A:()=>n});function n(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let s of e)null!=(s=t(s,++n,e))&&(r>s||void 0===r&&s>=s)&&(r=s)}return r}},66978:(e,t,r)=>{r.d(t,{A:()=>function e(){var t,r=[],l=[],i=[];function c(){var e=0,t=Math.max(1,l.length);for(i=Array(t-1);++e0?i[t-1]:r[0],t{r.d(t,{Rg:()=>i,mK:()=>p,rk:()=>j});var n=r(21377),s=r(28446),a=r(66978),o=r(24840);let l=e=>{let t=Object.keys(o.dh).filter(t=>e[o.dh[t]].length>0);return[o.LN.AllShots,...t]},i=(e,t,r)=>{if("string"==typeof t||!e.players[t.id]){if(r===o.LN.AllShots)return{viewableShots:e.allShots,selectableTypes:l(e.groupedShots)};let t=o.dh[r];return{viewableShots:e.groupedShots[t],selectableTypes:l(e.groupedShots)}}let n=e.players[t.id];if(r!==o.LN.AllShots){let e=o.dh[r];return{viewableShots:n.shots[e],selectableTypes:l(n.shots)}}return{viewableShots:n.allShots,selectableTypes:l(n.shots)}},c=[0,328],d=[0,139],u=e=>(0,s.A)([0,240],e?[...c].reverse():c),h=e=>(0,s.A)([0,102],e?[...d].reverse():d),f=[0,52,128,164,200,277,328],y=[0,33.5,69.5,105.5,139],m=e=>(0,a.A)([0,240],e?[...f].reverse():f),x=e=>(0,a.A)([0,102],e?[...y].reverse():y),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.type===n.Dme.FaceOff?m:u,s=e.type===n.Dme.FaceOff?x:h,a=r(t),o=s(t);return{x:a(e.x),y:o(e.y)}};function j(e){switch(e){case"scoreChange":case"penaltyScored":return n.Dme.Made;case"shotOffTarget":case"penaltyMissed":return n.Dme.Missed;case"shotSaved":case"penaltySaved":return n.Dme.Saved;case"shotBlocked":return n.Dme.Blocked;case"faceOff":return n.Dme.FaceOff;case"hit":return n.Dme.Hit;default:return n.Dme.Suspension}}},88836:(e,t,r)=>{r.d(t,{hF:()=>u,cH:()=>m.c,Pc:()=>x,Ez:()=>j,jv:()=>f,JJ:()=>y,SI:()=>h});var n=r(6029),s=r(21377),a=r(41249),o=r(55729),l=r(62859),i=r(54409);function c(e){let{comment:t}=e;switch((0,o.useContext)(l.Ws)){case s.QCR.Football:switch(t.type){case s.zZK.ScoreChange:switch(t.goalType){case"ownGoal":return(0,n.jsx)(i.NcS,{icon:"football-own-goal",fill:"error.default"});case"penalty":return(0,n.jsx)(i.NcS,{icon:"football-penalty",fill:"secondary.default"});default:return(0,n.jsx)(i.NcS,{icon:"football-ball",fill:"secondary.default"})}case s.zZK.YellowCard:return(0,n.jsx)(i.CvR,{icon:"card-yellow"});case s.zZK.YellowRedCard:return(0,n.jsx)(i.CvR,{icon:"card-double-yellow"});case s.zZK.RedCard:return(0,n.jsx)(i.CvR,{icon:"card-red"});case s.zZK.PenaltyMissed:return(0,n.jsx)(i.NcS,{icon:"penalty-missed",fill:"error.default"});case s.zZK.PenaltyScored:return(0,n.jsx)(i.NcS,{icon:"football-penalty",fill:"secondary.default"});case s.zZK.Injury:return(0,n.jsx)(i.NcS,{icon:"substitution-injured"});case s.zZK.Substitution:return(0,n.jsx)(i.NcS,{icon:"substitution"});case s.zZK.VideoAssistantReferee:case s.zZK.VideoAssistantRefereeOver:return(0,n.jsx)(i.NcS,{icon:"var",fill:"primary.default",w:16,h:16})}break;case s.QCR.AmericanFootball:switch(t.type){case s.zZK.Touchdown:return(0,n.jsx)(i.CvR,{icon:"af-touchdown",fill:"secondary.default",w:16,h:16});case s.zZK.ExtraPoint:return(0,n.jsx)(i.CvR,{icon:"af-extra-point",fill:"secondary.default",w:16,h:16});case s.zZK.TwoPointConversion:return(0,n.jsx)(i.CvR,{icon:"af-two-point-conversion",fill:"secondary.default",w:16,h:16});case s.zZK.FieldGoal:return(0,n.jsx)(i.CvR,{icon:"af-field-goal",fill:"secondary.default",w:16,h:16})}break;case s.QCR.IceHockey:{let e={w:[16,24],h:[16,24]};switch(t.type){case s.zZK.ScoreChange:case"penaltyScored":switch(t.goalType){case"penaltyGoal":case"shootoutGoal":return(0,n.jsx)(i.CvR,{icon:"hockey-penalty",fill:"secondary.default",...e});default:return"powerplay"===t.strength?(0,n.jsx)(i.CvR,{icon:"hockey-powerplay-goal",fill:"secondary.default",...e}):"shorthanded"===t.strength?(0,n.jsx)(i.CvR,{icon:"hockey-shorthanded-goal",fill:"secondary.default",...e}):(0,n.jsx)(i.CvR,{icon:"hockey-pak",fill:"secondary.default",...e})}case"penaltyMissed":case"penaltySaved":return(0,n.jsx)(i.NcS,{icon:"penalty-missed",fill:"error.default",...e});case"suspension":return(0,n.jsx)(i.CvR,{icon:"suspension",...e});case"goalkeeperOut":return(0,n.jsx)(i.NcS,{icon:"goalie-out",...e});case"goalkeeperBack":return(0,n.jsx)(i.NcS,{icon:"goalie-in",...e})}}}switch(t.type){case s.zZK.MatchEnded:return(0,n.jsx)(i.NcS,{icon:"full-time"});case s.zZK.PeriodScore:return(0,n.jsx)(i.NcS,{icon:"half-time"});case s.zZK.PeriodEnd:return(0,n.jsx)(i.NcS,{icon:"quarter-end"});default:return null}}var d=r(48462);let u=e=>{let{children:t}=e;return(0,n.jsx)(a.so,{align:"center",children:t})},h=e=>{let{children:t,isUppercase:r}=e;return(0,n.jsx)(a.EY,{as:"div",font:"display.medium",mb:"xs",textTransform:r?"uppercase":void 0,children:t})},f=e=>{let{children:t,secondary:r}=e;return(0,n.jsx)(a.EY,{as:"div",c:r?"onSurface.nLv3":void 0,mt:r?"xs":void 0,font:"body.small",children:t})},y=e=>{let{comment:t}=e,{time:r,timeSeconds:i,addedTime:u,reversedPeriodTime:h,reversedPeriodTimeSeconds:f}=t,y=(0,o.useContext)(l.Ws),m=y===s.QCR.Football&&0===t.time||y===s.QCR.AmericanFootball&&["periodEnd","matchEnded"].includes(t.type)||y===s.QCR.IceHockey&&"PEN"===t.periodName;return(0,n.jsxs)(a.so,{direction:"column",justify:"center",align:"center",minW:40,children:[(0,n.jsx)(c,{comment:t}),m?(0,n.jsx)(a.EY,{c:"onSurface.nLv3",font:"assistive.default",children:"-"}):(0,n.jsx)(d.k,{time:r,timeSeconds:i,addedTime:u,reversedPeriodTime:h,reversedPeriodTimeSeconds:f})]})};var m=r(26925);let x=e=>{let{children:t,image:r,secondary:s}=e;return(0,n.jsxs)(a.so,{mt:"xs",gap:"sm",align:"center",children:[r,(0,n.jsx)(a.EY,{color:s?"onSurface.nLv3":void 0,font:"body.small",children:t})]})};var p=r(94446);let j=e=>{let{id:t,teamId:r,small:s}=e,o=s?24:32;return(0,n.jsxs)(a.az,{position:"relative",w:o,h:o,children:[(0,n.jsx)(p.t,{id:t,size:o}),r&&(0,n.jsx)(a.az,{position:"absolute",top:s?12:18,left:s?12:-2,children:(0,n.jsx)(p.p,{id:r,size:16})})]})}}}]);