!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]="894a90c9-ea0c-471f-974c-b833da0f906c",e._sentryDebugIdIdentifier="sentry-dbid-894a90c9-ea0c-471f-974c-b833da0f906c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60128,96678],{33559:(e,t,s)=>{s.d(t,{Rg:()=>n,mK:()=>M,rk:()=>z});var l=s(46787),c=s(28446),r=s(66978),a=s(35187),o=s(50669);let h=e=>{let t=Object.keys(o.dh).filter(t=>e[o.dh[t]].length>0);return[o.LN.AllShots,...t]},n=(e,t,s)=>{if(t.itemId===a.t||!t.player||!e.players[t.player.id]){if(s===o.LN.AllShots)return{viewableShots:e.allShots,selectableTypes:h(e.groupedShots)};let t=o.dh[s];return{viewableShots:e.groupedShots[t],selectableTypes:h(e.groupedShots)}}let l=e.players[t.player.id];if(s!==o.LN.AllShots){let e=o.dh[s];return{viewableShots:l.shots[e],selectableTypes:h(l.shots)}}return{viewableShots:l.allShots,selectableTypes:h(l.shots)}},i=[0,328],d=[0,139],v=e=>(0,c.A)([0,240],e?[...i].reverse():i),u=e=>(0,c.A)([0,102],e?[...d].reverse():d),f=[0,52,128,164,200,277,328],x=[0,33.5,69.5,105.5,139],y=e=>(0,r.A)([0,240],e?[...f].reverse():f),m=e=>(0,r.A)([0,102],e?[...x].reverse():x),M=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=e.type===l.Dme.FaceOff?y:v,c=e.type===l.Dme.FaceOff?m:u,r=s(t),a=c(t);return{x:r(e.x),y:a(e.y)}};function z(e){switch(e){case"scoreChange":case"penaltyScored":return l.Dme.Made;case"shotOffTarget":case"penaltyMissed":return l.Dme.Missed;case"shotSaved":case"penaltySaved":return l.Dme.Saved;case"shotBlocked":return l.Dme.Blocked;case"faceOff":return l.Dme.FaceOff;case"hit":return l.Dme.Hit;default:return l.Dme.Suspension}}},35187:(e,t,s)=>{s.d(t,{A:()=>d,t:()=>n});var l=s(6029),c=s(10292),r=s(10174),a=s(76356),o=s(90248),h=s(94156);let n="ALL_PLAYERS";function i(e){let{player:t}=e;return(0,l.jsxs)(a.so,{align:"center",gap:"sm",w:"100%",overflow:"hidden",children:[(0,l.jsx)(c.t,{id:t.id,name:t.name,size:24}),(0,l.jsx)(r.EY,{w:"[calc(100% - 32px)]",truncate:!0,children:(0,l.jsx)(h.c,{entity:t})})]})}function d(e){let{players:t,selectedPlayer:s,setSelectedPlayer:c}=e;return(0,l.jsx)(r.ms,{label:"shotmap-player-selector",selectedItem:s,items:t,renderItem:e=>e?"ALL_PLAYERS"===e.itemId?(0,l.jsx)(a.az,{w:"100%",children:(0,l.jsx)(o.A,{id:"all_players"})}):e.player?(0,l.jsx)(i,{player:e.player}):null:null,onSelectedItemChange:e=>{let{selectedItemIndex:t,selectedItem:s}=e;s&&c(s)},buttonStyles:{w:"100%"},w:"100%"})}},50669:(e,t,s)=>{s.d(t,{LN:()=>c,Oe:()=>a,dh:()=>r});var l=s(46787),c=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 r={goals:l.Dme.Made,hockey_saved_shots:l.Dme.Saved,hockey_blocked_shots:l.Dme.Blocked,hockey_missed_shots:l.Dme.Missed},a={[l.Dme.Made]:"goals",[l.Dme.Saved]:"hockey_saved_shots",[l.Dme.Blocked]:"hockey_blocked_shots",[l.Dme.Missed]:"hockey_missed_shots"}},56321:(e,t,s)=>{s.d(t,{b:()=>d,h:()=>o});var l=s(6029),c=s(46787),r=s(93338),a=s(96678);let o=e=>{let{x:t,y:s,type:a,color:o,isSelected:h,backgroundOpacity:n,opacity:i}=e,d=o&&r.S.var(o);return(0,l.jsxs)("g",{opacity:i,children:[(0,l.jsx)("circle",{cx:t,cy:s,r:h?8:6,stroke:d,strokeWidth:1,fill:h?"#fff":r.S.var("colors.homeAway.shotFill"),fillOpacity:n}),a===c.Dme.Made&&(0,l.jsx)("circle",{cx:t,cy:s,r:h?6:4,fill:d}),a===c.Dme.Saved&&(0,l.jsx)("circle",{cx:t,cy:s,r:h?3:2,fill:d}),a===c.Dme.Blocked&&(0,l.jsx)("rect",{x:t-4,y:s-1,width:8,height:2,fill:d})]})},h=e=>{let{x:t,y:s,color:c,opacity:a,isSelected:o}=e,h=c&&r.S.var(c);return o?(0,l.jsxs)("g",{transform:"translate(".concat(t-10," ").concat(s-10,")"),fill:"none",fillRule:"evenodd",children:[(0,l.jsx)("circle",{fill:"#fff",transform:"rotate(90 9.9 9.9)",cx:"9.899",cy:"9.899",r:"8"}),(0,l.jsx)("circle",{fill:h,cx:"9.899",cy:"9.899",r:"1.5"}),(0,l.jsx)("path",{stroke:h,strokeWidth:"1.5",d:"M11.667 8.132 14.85 4.95M4.95 14.85l3.182-3.183M4.95 4.95l3.182 3.182M11.667 11.667l3.182 3.182"}),(0,l.jsx)("path",{stroke:h,strokeWidth:"1.5",d:"M9.9 6.9v-4M9.9 16.9v-4M2.9 9.9h4M12.9 9.9h4"})]}):(0,l.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(".concat(t-8.5," ").concat(s-8.5,")"),opacity:a,children:[(0,l.jsx)("circle",{stroke:h,fillOpacity:a,fill:h,cx:"8.485",cy:"8.485",r:"1"}),(0,l.jsx)("path",{stroke:h,d:"m9.9 7.071 2.828-2.828M4.243 12.728 7.07 9.9M4.243 4.243 7.07 7.07M9.9 9.9l2.828 2.828"}),(0,l.jsx)("path",{stroke:h,d:"M8.485 5.985v-3M8.485 13.985v-3M2.985 8.485h3M10.985 8.485h3"})]})},n=e=>{let{x:t,y:s,color:c,opacity:a,isSelected:o}=e,h=o?10:9,n=c&&r.S.var(c);return(0,l.jsx)("path",{transform:"translate(".concat(t-h," ").concat(s-h,")"),d:o?"m16.02 6.121-3.888 3.888 3.889 3.89-2.122 2.122-3.889-3.89-3.889 3.89L4 13.899l3.89-3.89L4 6.121 6.121 4l3.89 3.888L13.898 4l2.122 2.121z":"M14.006 5.768 10.77 9l3.235 3.237-1.768 1.768-3.235-3.237-3.235 3.237L4 12.238 7.235 9 4 5.768 5.768 4l3.235 3.234L12.238 4l1.768 1.768z",fill:n,fillOpacity:a,fillRule:"evenodd"})},i=e=>{let{x:t,y:s,color:c,isSelected:a}=e,o=c&&r.S.var(c);return a?(0,l.jsxs)("g",{children:[(0,l.jsx)("circle",{fillOpacity:".15",fill:o,r:"8",cx:t,cy:s}),(0,l.jsx)("circle",{fill:o,r:"3",cx:t,cy:s}),(0,l.jsx)("circle",{fill:"#fff",r:"2",cx:t,cy:s})]}):null};function d(e){let t=(0,a.P7)(),s=e.isSelected?t:"colors.neutrals.nLv3",r=e.isSelected?1:.5;switch(e.type){case c.Dme.Made:case c.Dme.Saved:case c.Dme.Blocked:case c.Dme.Missed:return(0,l.jsx)(o,{...e,color:s,opacity:r,isSelected:e.isSelected});case c.Dme.Hit:return(0,l.jsx)(h,{...e,color:s,opacity:r,isSelected:e.isSelected});case c.Dme.Suspension:return(0,l.jsx)(n,{...e,color:s,opacity:r,isSelected:e.isSelected});case c.Dme.FaceOff:return(0,l.jsx)(i,{...e,color:s,opacity:r,isSelected:e.isSelected});default:return null}}},58706:(e,t,s)=>{s.d(t,{$7:()=>n,$u:()=>h,Ay:()=>d,Co:()=>a,o_:()=>o,uv:()=>i});var l=s(6029),c=s(90547),r=s(41735);let a=8,o=328,h=e=>(0,l.jsx)("svg",{width:"100%",viewBox:"-".concat(a," -").concat(a," ").concat(o+2*a," ").concat(139+2*a),children:e.children}),n=e=>{let{fill:t}=e,s=(0,r.useTheme)();return(0,l.jsx)("path",{d:"M302.77 0C316.703 0 328 11.392 328 25.305v88.171C328 127.39 316.704 139 302.77 139H25.23C11.297 139 0 127.39 0 113.476v-88.17C0 11.391 11.296 0 25.23 0h277.54z",fill:t||s.colors.surface.s2,fillRule:"evenodd"})},i=e=>{let{fill:t}=e,s=(0,r.useTheme)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.default,{x:o/2-12,y:57.5,fill:"onSurface.nLv1"}),(0,l.jsxs)("g",{fill:t||s.colors.onSurface.nLv1,fillRule:"nonzero",children:[(0,l.jsx)("path",{d:"M302.77 0C316.703 0 328 11.392 328 25.305v88.171C328 127.39 316.704 139 302.77 139H25.23C11.297 139 0 127.39 0 113.476v-88.17C0 11.391 11.296 0 25.23 0h277.54zm0 1H25.23C11.878 1 1.052 11.972 1.052 25.305v88.171C1.051 126.81 11.877 138 25.231 138h277.538c13.354 0 24.18-11.19 24.18-24.524v-88.17C326.949 11.971 316.123 1 302.769 1z"}),(0,l.jsx)("path",{d:"M16 2h1.05v135H16zM118.5 0h1.05v138.77h-1.05zM1 91.959 16 87v1.06L1.023 93zM15.992 50.95 1 46v1.057L16 52z"}),(0,l.jsx)("path",{d:"M26.992 69.5c0-3.043-1.406-5.843-3.908-7.887l-.139-.113h-5.953v1l5.7.02c1.993 1.788 3.216 4.132 3.3 6.678v.302c0 2.63-1.228 5.135-3.3 7.011l-5.7-.011v1h5.956l.139-.116c2.471-2.054 3.905-4.894 3.905-7.884zM12 63h4v.929h-3V75.07h3V76h-4zM28 33.5c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm1 0c0 12.703 10.297 23 23 23s23-10.297 23-23-10.297-23-23-23-23 10.297-23 23z"}),(0,l.jsx)("path",{d:"M50 33.5c0-1.104.894-2 1.997-2 1.103 0 1.997.896 1.997 2 0 1.105-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1.012 0c0 .546.442.988.985.988a.986.986 0 0 0 .984-.988.986.986 0 0 0-.984-.988.986.986 0 0 0-.985.988zM48.5 56.77v5.256h1.05v-5.257zM54.5 56.775v5.257h1.05v-5.257zM48.5 5v5.256h1.05V5zM54.5 5v5.256h1.05V5zM28 105.5c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm1 0c0 12.703 10.297 23 23 23s23-10.297 23-23-10.297-23-23-23-23 10.297-23 23z"}),(0,l.jsx)("path",{d:"M50 105.5c0-1.104.894-2 1.997-2 1.103 0 1.997.896 1.997 2 0 1.105-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1.012 0c0 .546.442.988.985.988a.986.986 0 0 0 .984-.988.986.986 0 0 0-.984-.988.986.986 0 0 0-.985.988zM54.5 128.8v5.256h1.05V128.8zM48.5 128.8v5.256h1.05V128.8zM54.5 77v5.256h1.05V77zM48.5 77v5.256h1.05V77zM126 105.5c0-1.105.894-2 1.997-2 1.103 0 1.997.895 1.997 2s-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.446-1-.996-1a.998.998 0 0 0-.996 1zM126.05 33.5c0-1.104.894-2 1.997-2 1.102 0 1.996.896 1.996 2 0 1.105-.894 2-1.996 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.447-1-.996-1a.998.998 0 0 0-.997 1zM312.05 2H311v135h1.05zM209.55 0h-1.05v139h1.05z"}),(0,l.jsx)("path",{d:"M327 91.959 312 87v1.06L326.977 93zM312.008 50.95 327 46v1.057L312 52zM301 69.5c0-3.043 1.406-5.843 3.908-7.887l.139-.113H311v1l-5.7.02c-1.993 1.788-3.216 4.132-3.3 6.678v.302c0 2.63 1.228 5.135 3.3 7.011l5.7-.011v1h-5.955l-.14-.116C302.434 75.33 301 72.49 301 69.5zM316 63h-4v.929h3V75.07h-3V76h4zM301 105.5c0-13.255-10.745-24-24-24s-24 10.745-24 24 10.745 24 24 24 24-10.745 24-24zm-.991 0c0 12.703-10.298 23-23 23-12.703 0-23-10.297-23-23s10.297-23 23-23c12.702 0 23 10.297 23 23z"}),(0,l.jsx)("path",{d:"M278.994 105.5c0-1.105-.894-2-1.997-2a1.998 1.998 0 0 0-1.997 2c0 1.105.894 2 1.997 2a1.998 1.998 0 0 0 1.997-2zm-1.013 0a.986.986 0 0 1-.984.988.986.986 0 0 1-.985-.988c0-.546.442-.988.985-.988.543 0 .984.442.984.988zM280.55 128.8v5.256h-1.05V128.8zM274.55 128.8v5.256h-1.05V128.8zM280.55 77v5.256h-1.05V77zM274.55 77v5.256h-1.05V77zM301 33.499c0-13.255-10.745-24-24-24s-24 10.745-24 24 10.745 24 24 24 24-10.745 24-24zm-1 0c0 12.703-10.297 23-23 23s-23-10.297-23-23 10.297-23 23-23 23 10.297 23 23z"}),(0,l.jsx)("path",{d:"M278.994 33.5c0-1.105-.894-2-1.997-2a1.998 1.998 0 0 0-1.997 2c0 1.105.894 2 1.997 2a1.998 1.998 0 0 0 1.997-2zm-1.013 0a.986.986 0 0 1-.984.988.986.986 0 0 1-.985-.988c0-.546.442-.988.985-.988.543 0 .984.442.984.988zM280.55 56.77v5.256h-1.05V56.77zM274.55 56.77v5.256h-1.05V56.77zM280.55 5.262v5.257h-1.05V5.262zM274.55 5.262v5.257h-1.05V5.262zM201.992 105.5a2 2 0 1 0-4 0 2 2 0 0 0 4 0zm-1.002 0a.999.999 0 1 1-1.998.002.999.999 0 0 1 1.998-.002zM201.992 33.508a2 2 0 1 0-4 0 2 2 0 0 0 4 0zm-1.002 0a.999.999 0 1 1-1.998.002.999.999 0 0 1 1.998-.002zM148 138c0-8.837 7.163-16 16-16s16 7.163 16 16h-1c0-8.332-6.668-15-15-15s-15 6.668-15 15h-1zM140.042 69.5c0-13.232 10.726-23.958 23.958-23.958 13.232 0 23.958 10.726 23.958 23.958 0 13.232-10.726 23.958-23.958 23.958-13.232 0-23.958-10.726-23.958-23.958zm-1.042 0c0 13.807 11.193 25 25 25s25-11.193 25-25-11.193-25-25-25-25 11.193-25 25z"}),(0,l.jsx)("path",{d:"M162.003 69.5c0-1.105.894-2 1.997-2 1.103 0 1.997.895 1.997 2s-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.446-1-.996-1a.998.998 0 0 0-.996 1zM163.5 2h1v4.355h-1zM163.5 10.71h1v4.355h-1zM163.5 19.42h1v4.354h-1zM163.5 28.13h1v4.354h-1zM163.5 36.839h1v4.355h-1zM163.5 45.548h1v4.355h-1zM163.5 54.258h1v4.355h-1zM163.5 62.968h1v4.355h-1zM163.5 71.677h1v4.355h-1zM163.5 80.387h1v4.355h-1zM163.5 89.097h1v4.355h-1zM163.5 97.806h1v4.355h-1zM163.5 106.516h1v4.355h-1zM163.5 115.226h1v4.355h-1zM163.5 123.935h1v4.355h-1zM163.5 132.645h1V137h-1z"})]})]})};function d(e){let{children:t}=e;return(0,l.jsxs)(h,{children:[(0,l.jsx)(n,{}),(0,l.jsx)(i,{}),t]})}},60128:(e,t,s)=>{s.d(t,{A:()=>v});var l=s(6029),c=s(94565),r=s(55729),a=s(41735),o=s(56321);function h(e){let{isAway:t,fill:s}=e,{colors:c,settings:r}=(0,a.useTheme)(),o={transform:""};return t&&(o.transform="rotate(180deg)"),"rtl"===r.textDirection&&(o.transform+=" scale(-1,1)"),(0,l.jsx)("svg",{width:"88",height:"20",viewBox:"0 0 88 20",style:o,children:(0,l.jsx)("g",{fill:s||c.surface.s1,fillRule:"evenodd",children:(0,l.jsx)("path",{d:"m87.2 9.845-12 8v-16zM.8 7.845h74.4v4H.8z"})})})}var n=s(33559),i=s(58706),d=s(96678);function v(e){let{isLeft:t,isInverseTeams:s=!1,shots:v}=e,{colors:u}=(0,a.useTheme)(),{selectedShot:f}=(0,r.useContext)(d.XM),x=t?"colors.homeAway.home.primary":"colors.homeAway.away.primary";return(0,l.jsxs)(l.Fragment,{children:[void 0!==t&&(0,l.jsx)(c.so,{w:"100%",justify:"center",mt:"xs",children:(0,l.jsx)(h,{fill:u.onSurface.nLv2,isAway:!t})}),(0,l.jsx)(c.so,{justify:"center",children:(0,l.jsx)(c.az,{maxW:[2*i.Co+i.o_,void 0],w:"100%",children:(0,l.jsxs)(i.Ay,{children:[v.map(e=>{let c=(0,n.mK)(e,s);return void 0===t?(0,l.jsx)(o.b,{x:c.x,y:c.y,type:e.type,commentId:e.id},e.id):(0,l.jsx)(o.h,{x:c.x,y:c.y,type:e.type,color:x,commentId:e.id,backgroundOpacity:.25},e.id)}),f&&(0,l.jsx)(o.b,{...(0,n.mK)(f,s),type:f.type,commentId:f.id,isSelected:!0})]})})})]})}},90547:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var l=s(90142),c=s(6029),r=s(39895);function a(e){var{fillOpacity:t=".06"}=e,s=(0,l.T)(e,["fillOpacity"]);return(0,c.jsx)(r.A,Object.assign({width:24,height:24,viewBox:"0 0 24 24",fillOpacity:t},s,{children:(0,c.jsx)("path",{d:"M23.824 12c.097 0 .176.079.176.176v11.648a.176.176 0 0 1-.176.176H.176A.176.176 0 0 1 0 23.824v-5.648C0 18.08.079 18 .176 18h17.648a.176.176 0 0 0 .176-.176v-5.648c0-.097.079-.176.176-.176zm0-12c.097 0 .176.079.176.176v5.648a.176.176 0 0 1-.176.176H6.176A.176.176 0 0 0 6 6.176v5.648a.176.176 0 0 1-.176.176H.176A.176.176 0 0 1 0 11.824V.176C0 .08.079 0 .176 0z",fill:s.fill,fillRule:"evenodd"})}))}},96678:(e,t,s)=>{s.d(t,{P7:()=>u,XM:()=>v,qF:()=>f,v9:()=>x});var l=s(6029),c=s(10174),r=s(78383),a=s.n(r),o=s(55729),h=s(43072),n=s(67087),i=s(18858),d=s(33559);let v=(0,o.createContext)({addInView:a(),removeInView:a(),rootRef:{current:null}}),u=()=>{let e=(0,n.g3)(),{selectedComment:t}=(0,o.useContext)(v);return(e?null==t?void 0:t.isHome:!(null==t?void 0:t.isHome))?"colors.primary.default":"colors.secondary.default"},f=e=>{let t=u(),{isMobile:s}=(0,c.$c)(),{selectedComment:l,rootRef:r,addInView:a,removeInView:n}=(0,o.useContext)(v),d=(0,i.Ay)(),{ref:f,inView:x}=(0,h.Wx)({threshold:.25,root:s?void 0:r.current,rootMargin:s?"-".concat(262+d,"px 0px 0px 0px"):void 0});return(0,o.useEffect)(()=>{e&&(x?a(e):n(e))},[x]),{ref:f,isSelected:e===(null==l?void 0:l.id),color:t}},x=e=>{let{children:t,comments:s}=e,[c,r]=(0,o.useState)(0),a=(0,o.useRef)(null),h=(0,o.useRef)(new Set),n=(0,o.useCallback)(()=>{r(Math.max(0,s.findIndex(e=>h.current.has(e.id))))},[s]),i=(0,o.useCallback)(e=>{h.current.add(e),n()},[n]),u=(0,o.useCallback)(e=>{h.current.delete(e),n()},[n]),f=s[c],x=f&&{id:f.id,x:f.location.x,y:f.location.y,type:(0,d.rk)(f.type)};return(0,l.jsx)(v,{value:{selectedComment:f,selectedShot:x,rootRef:a,addInView:i,removeInView:u},children:t})}}}]);