!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]="e317b99d-d40d-49a8-8b53-ed15eb6d1950",e._sentryDebugIdIdentifier="sentry-dbid-e317b99d-d40d-49a8-8b53-ed15eb6d1950")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[894],{1217:(e,t,l)=>{function n(e){return["up","down"].includes(e)}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";switch(e){case"left":return"ltr"===t?"rotate(180deg)":void 0;case"right":return"ltr"===t?void 0:"rotate(180deg)";case"down":return"rotate(90deg)";case"up":return"rotate(-90deg)";default:return}}function r(e,t){if(t&&t.height&&t.width)return n(e)?t.width:t.height}function i(e,t){if(t&&t.height&&t.width)return n(e)?t.height:t.width}function a(e){return n(e)?{left:"-30%",top:"18.8%"}:{left:0,top:0}}l.d(t,{AK:()=>a,DY:()=>i,EC:()=>s,G$:()=>r,O8:()=>d,fk:()=>n});let d=e=>e.length>5},11810:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(6029),s=l(41735);let r=({courtColor:e,showDarkPaint:t})=>{let{colors:l}=(0,s.useTheme)();return(0,n.jsxs)("g",Object.assign({fill:null!=e?e:l.graphicsTerrain.basketball},{children:[(0,n.jsx)("path",{fillRule:"evenodd",d:"M17 1H84V94V95H85H94C94 111 108 124 124 124C140 124 154 111 154 95H163H164V94V80V1H231V71.5C225.2 85.1 217.1 97.5 206.7 108.3C184.6 131.3 155.2 144 124 144C92.8 144 63.4 131.3 41.3 108.3C30.9 97.5 22.8 85 17 71.5V1Z"}),(0,n.jsx)("path",{fillRule:"evenodd",d:"M247 231C247 231.6 246.6 232 246 232H2C1.4 232 1 231.6 1 231V2C1 1.4 1.4 1 2 1H16V69V71.6C16.3 72.4 16.7 73.1 17 73.9C35.8 115.9 76.6 145 124 145C171.4 145 212.2 115.9 231 73.9C231.3 73.1 231.7 72.4 232 71.6V69V1H246C246.6 1 247 1.4 247 2V231Z"}),(0,n.jsx)("path",{fillRule:"evenodd",d:"M95.0004 95C95.0004 110.439 108.561 123 124 123C139.439 123 153 110.439 153 95H95.0134H95.0004ZM120.5 25.9997C120.5 27.9297 122.07 29.4997 124 29.4997C125.93 29.4997 127.5 27.9297 127.5 25.9997C127.5 24.0697 125.93 22.4997 124 22.4997C122.07 22.4997 120.5 24.0697 120.5 25.9997ZM146.477 75.069C144.373 72.55 141.873 70.443 139.046 68.804L139.548 67.939C142.5 69.651 145.096 71.857 147.245 74.427L146.477 75.069ZM128.896 65.465C128.896 65.465 126.775 65.031 123.987 65.031C121.198 65.031 119.077 65.465 119.077 65.465L118.901 64.48C120.657 64.18 122.163 64.031 123.987 64.031C125.81 64.031 127.316 64.18 129.072 64.48L128.896 65.465ZM101.516 75.073L100.75 74.43C102.926 71.833 105.539 69.64 108.452 67.949L108.955 68.814C106.12 70.46 103.617 72.565 101.516 75.073ZM103 20H104V27C104 38 112.972 47 124 47C135.029 47 144 38.028 144 27V20H145V27C145 38.597 135.598 48 124 48C112.4 48 103 38.6 103 27V20ZM110 19H123H125H138V20H125V21.62C127.002 22.076 128.5 23.859 128.5 26C128.5 28.485 126.486 30.5 124 30.5C121.515 30.5 119.5 28.485 119.5 26C119.5 23.859 120.998 22.076 123 21.62V20H110V19ZM85 1V94H94.034C94.183 90.124 94.963 87.285 95.732 85.155L96.672 85.495C95.275 89.224 95.041 92.924 95.041 94H152.959C152.959 92.924 152.726 89.224 151.329 85.495L152.269 85.155C153.038 87.285 153.818 90.124 153.967 94H163V1H85Z"}),(0,n.jsx)("path",{fill:t?l.onSurface.nLv4:"inherit",fillRule:"evenodd",d:"M95.0004 95C95.0004 110.439 108.561 123 124 123C139.439 123 153 110.439 153 95H95.0134H95.0004ZM120.5 25.9997C120.5 27.9297 122.07 29.4997 124 29.4997C125.93 29.4997 127.5 27.9297 127.5 25.9997C127.5 24.0697 125.93 22.4997 124 22.4997C122.07 22.4997 120.5 24.0697 120.5 25.9997ZM146.477 75.069C144.373 72.55 141.873 70.443 139.046 68.804L139.548 67.939C142.5 69.651 145.096 71.857 147.245 74.427L146.477 75.069ZM128.896 65.465C128.896 65.465 126.775 65.031 123.987 65.031C121.198 65.031 119.077 65.465 119.077 65.465L118.901 64.48C120.657 64.18 122.163 64.031 123.987 64.031C125.81 64.031 127.316 64.18 129.072 64.48L128.896 65.465ZM101.516 75.073L100.75 74.43C102.926 71.833 105.539 69.64 108.452 67.949L108.955 68.814C106.12 70.46 103.617 72.565 101.516 75.073ZM103 20H104V27C104 38 112.972 47 124 47C135.029 47 144 38.028 144 27V20H145V27C145 38.597 135.598 48 124 48C112.4 48 103 38.6 103 27V20ZM110 19H123H125H138V20H125V21.62C127.002 22.076 128.5 23.859 128.5 26C128.5 28.485 126.486 30.5 124 30.5C121.515 30.5 119.5 28.485 119.5 26C119.5 23.859 120.998 22.076 123 21.62V20H110V19ZM85 1V94H94.034C94.183 90.124 94.963 87.285 95.732 85.155L96.672 85.495C95.275 89.224 95.041 92.924 95.041 94H152.959C152.959 92.924 152.726 89.224 151.329 85.495L152.269 85.155C153.038 87.285 153.818 90.124 153.967 94H163V1H85Z"})]}))}},13369:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(6029),s=l(41735);let r=({fill:e})=>{let{colors:t}=(0,s.useTheme)();return(0,n.jsxs)("g",Object.assign({fill:null!=e?e:t.graphicsTerrain.dark,fillRule:"evenodd",clipRule:"evenodd"},{children:[(0,n.jsx)("path",{d:"M109 68.8L108.5 67.9C105.6 69.6 103 71.8 100.8 74.4L101.6 75C103.6 72.6 106.1 70.5 109 68.8Z"}),(0,n.jsx)("path",{d:"M124 48C135.6 48 145 38.6 145 27V20H144V27C144 38 135 47 124 47C113 47 104 38 104 27V20H103V27C103 38.6 112.4 48 124 48Z"}),(0,n.jsx)("path",{d:"M139.5 67.9L139 68.8C141.8 70.4 144.3 72.5 146.4 75.1L147.2 74.5C145.1 71.9 142.5 69.7 139.5 67.9Z"}),(0,n.jsx)("path",{d:"M246 0H2C0.9 0 0 0.9 0 2V231C0 232.1 0.9 233 2 233H246C247.1 233 248 232.1 248 231V2C248 0.9 247.1 0 246 0ZM85 1H163V94H154C153.9 90.1 153.1 87.3 152.3 85.2L151.4 85.5C152.8 89.2 153 92.9 153 94H95C95 92.9 95.2 89.2 96.6 85.5L95.7 85.2C94.9 87.3 94.2 90.2 94 94H85V1ZM153 95C153 110.4 139.4 123 124 123C108.6 123 95 110.4 95 95H153ZM17 1H84V94V95H85H94C94 111 108 124 124 124C140 124 154 111 154 95H163H164V94V80V1H231V71.5C225.2 85.1 217.1 97.5 206.7 108.3C184.6 131.3 155.2 144 124 144C92.8 144 63.4 131.3 41.3 108.3C30.9 97.5 22.8 85 17 71.5V1ZM247 231C247 231.6 246.6 232 246 232H2C1.4 232 1 231.6 1 231V2C1 1.4 1.4 1 2 1H16V69V71.6C16.3 72.4 16.7 73.1 17 73.9C35.8 115.9 76.6 145 124 145C171.4 145 212.2 115.9 231 73.9C231.3 73.1 231.7 72.4 232 71.6V69V1H246C246.6 1 247 1.4 247 2V231Z"}),(0,n.jsx)("path",{d:"M118.9 64.5L119.1 65.5C119.1 65.5 121.2 65.1 124 65.1C126.8 65.1 128.9 65.5 128.9 65.5L129.1 64.5C127.3 64.2 125.8 64.1 124 64.1C122.2 64 120.7 64.2 118.9 64.5Z"}),(0,n.jsx)("path",{d:"M123 21.6C121 22.1 119.5 23.8 119.5 26C119.5 28.5 121.5 30.5 124 30.5C126.5 30.5 128.5 28.5 128.5 26C128.5 23.9 127 22.1 125 21.6V20H138V19H125H123H110V20H123V21.6ZM124 22.5C125.9 22.5 127.5 24.1 127.5 26C127.5 27.9 125.9 29.5 124 29.5C122.1 29.5 120.5 27.9 120.5 26C120.5 24.1 122.1 22.5 124 22.5Z"}),(0,n.jsx)("path",{d:"M123 232H153C153 216.286 139.714 203 124 203C108.286 203 95 216.286 95 232H123ZM123 233H153.984C153.995 232.668 154 232.335 154 232C154 215.431 140.569 202 124 202C107.431 202 94 215.431 94 232C94 232.335 94.0055 232.668 94.0164 233H123Z"})]}))}},18130:(e,t,l)=>{l.d(t,{IV:()=>s,_P:()=>r,f7:()=>n});let n=248,s=233,r=248/233},31229:(e,t,l)=>{l.d(t,{U:()=>x});var n=l(6029),s=l(21377),r=l(55729),i=l(494),a=l(62859),d=l(8703),o=l(65078),c=l(10794),u=l(94604);let x=()=>{let{event:e,leftTeam:t,rightTeam:l}=(0,r.useContext)(a.y$),x=(0,o.g3)(),p=(0,n.jsx)(u.Rm,{team:t}),h=(0,n.jsx)(u.Rm,{team:l}),m=(0,d.c5)(e),j="ar"===(0,i.d4)(c.JV);return(0,n.jsxs)(n.Fragment,{children:[j?h:p," ",m===s.QCR.MMA?"vs":j?"ضد":x?"@":"-"," ",j?p:h]})}},46170:(e,t,l)=>{l.d(t,{GP:()=>v,_S:()=>h,Bt:()=>m,XL:()=>j});var n=l(6029),s=l(21501),r=l(41249),i=l(55729),a=l(41735);let d=149/238,o=238/149,c=()=>{let{colors:e}=(0,a.useTheme)();return(0,n.jsx)("svg",{viewBox:"0 0 238 149",children:(0,n.jsxs)("g",{fill:e.surface.s1,fillRule:"evenodd",children:[(0,n.jsx)("ellipse",{fillRule:"nonzero",cx:"28.175",cy:"74.5",rx:"1.75",ry:"1.753"}),(0,n.jsx)("ellipse",{fillRule:"nonzero",cx:"209.825",cy:"74.5",rx:"1.75",ry:"1.753"}),(0,n.jsx)("path",{d:"M0 0v149h238V0H0zm119.656 76.121a1.72 1.72 0 0 0 1.094-1.621 1.72 1.72 0 0 0-1.094-1.621V57.628c8.969.35 16.188 7.757 16.188 16.872 0 9.071-7.219 16.521-16.188 16.872v-15.25zM1.312 1.315h3.632a4.577 4.577 0 0 1-3.631 3.637V1.315zm0 54.56h12.032v37.25H1.313v-37.25zm0 38.565h13.344V54.56H1.312V32.65h40.032v83.659H1.312V94.44zm0 53.245v-3.637a4.577 4.577 0 0 1 3.632 3.637H1.313zM118.344 72.88a1.72 1.72 0 0 0-1.094 1.621 1.72 1.72 0 0 0 1.094 1.621v15.251c-8.969-.35-16.188-7.757-16.188-16.872 0-9.071 7.219-16.521 16.188-16.872v15.25zm0-16.566c-9.713.35-17.5 8.37-17.5 18.187 0 9.816 7.787 17.836 17.5 18.187v54.998H6.256c-.394-2.541-2.406-4.601-4.944-4.952v-25.067h41.344V86.157c4.244-2.542 6.825-6.968 6.825-11.657 0-4.69-2.581-9.115-6.825-11.657v-31.51H1.313V6.268c2.537-.35 4.593-2.41 4.943-4.952h112.088v54.998zM42.656 84.58V64.421c3.456 2.366 5.513 6.091 5.513 10.079 0 3.988-2.1 7.713-5.513 10.08zm194.031 63.106h-3.63a4.577 4.577 0 0 1 3.63-3.637v3.637zm0-54.56h-12.03v-37.25h12.03v37.25zm0-38.565h-13.343v39.88h13.344v21.911h-40.032V32.65h40.031V54.56zm0-23.226h-41.343v31.509c-4.244 2.542-6.825 6.968-6.825 11.657 0 4.69 2.581 9.115 6.825 11.657v31.51h41.344v25.066c-2.538.395-4.594 2.41-4.944 4.952H119.656V92.687c9.713-.35 17.5-8.37 17.5-18.187 0-9.816-7.787-17.836-17.5-18.187V1.315h112.088c.393 2.541 2.406 4.601 4.944 4.952v25.067zM195.344 64.42v20.158c-3.457-2.366-5.513-6.091-5.513-10.079 0-3.988 2.056-7.713 5.513-10.08zm41.344-59.469a4.577 4.577 0 0 1-3.632-3.637h3.631v3.637z"})]})})},u=(0,a.default)(r.az).withConfig({componentId:"sc-80087852-0"})(["position:absolute;> svg{position:absolute;top:0;left:0;}> *{width:100%;height:100%;}canvas{width:100%;height:100%;padding:0.5px;}"]);var x=l(1217),p=l(5961);let h=e=>{var t,l;let{dataPoints:h,numberOfMatches:m,containerId:j,direction:v="right"}=e,g=(0,a.useTheme)(),y=(0,i.useRef)(null),f=(0,s.uc)(y,{},100)||0,C={containerId:j,numberOfMatches:m,width:f,height:f*d},b=h&&(0,x.O8)(h)&&!!C.width;return(0,i.useEffect)(()=>{b&&(0,p.IJ)(h,C,g)},[j,h,C.width,g]),(0,n.jsx)("div",{style:{width:"100%"},children:(0,n.jsx)(r.az,{ref:y,w:"100%",position:"relative",pb:(0,x.fk)(v)?"".concat(100*o,"%"):"".concat(100*d,"%"),children:(0,n.jsxs)(u,{style:{transform:(0,x.EC)(v,g.settings.textDirection)},h:(0,x.G$)(v,null==(t=y.current)?void 0:t.getBoundingClientRect()),w:(0,x.DY)(v,null==(l=y.current)?void 0:l.getBoundingClientRect()),...(0,x.AK)(v),children:[b&&(0,n.jsx)("div",{id:j}),(0,n.jsx)(c,{})]})})})},m=e=>{let{direction:t="right",fill:l,style:s}=e,{colors:r,settings:i}=(0,a.useTheme)();return(0,n.jsx)("svg",{width:"66",height:"20",viewBox:"0 0 66 20",xmlns:"http://www.w3.org/2000/svg",style:{transform:(0,x.EC)(t,i.textDirection),...s},children:(0,n.jsx)("g",{fill:l||r.surface.s1,fillRule:"evenodd",children:(0,n.jsx)("path",{d:"m66 9.845-14.4 9.6V.245zM0 7.445h51.6v4.8H0z"})})})},j=e=>{let{direction:t="up"}=e,{colors:l}=(0,a.useTheme)();return(0,n.jsx)("svg",{width:"16",height:"56",viewBox:"0 0 16 56",xmlns:"http://www.w3.org/2000/svg",style:{transform:"down"===t?"rotate(180deg)":void 0},children:(0,n.jsx)("g",{fill:l.surface.s1,fillRule:"evenodd",children:(0,n.jsx)("path",{d:"m8 0 8 12H0zM6 12h4v44H6z"})})})},v=e=>{let{direction:t="right",arrowAfterHeatmap:l=!1,...s}=e;return(0,x.fk)(t)?(0,n.jsxs)(r.so,{bg:"graphicsTerrain.football",align:"center",py:"md",br:"sm",w:"100%",pl:l?"md":void 0,pr:l?void 0:"md",direction:l?"row-reverse":"row",children:[(0,n.jsx)(r.so,{w:"20%",justify:"center",children:(0,n.jsx)(j,{direction:t})}),(0,n.jsx)(r.az,{w:"80%",children:(0,n.jsx)(h,{...s,direction:t})})]}):(0,n.jsx)(r.so,{bg:"graphicsTerrain.football",justify:"center",pt:"md",pb:"xl",px:"sm",br:"lg",w:"100%",children:(0,n.jsxs)(r.so,{direction:"column",align:"center",gap:"md",maxW:280,w:"100%",children:[(0,n.jsx)(m,{direction:t}),(0,n.jsx)(h,{...s,direction:t})]})})}},50894:(e,t,l)=>{l.r(t),l.d(t,{default:()=>eD});var n=l(6029),s=l(21377),r=l(4967),i=l(95083),a=l(21501),d=l(76356),o=l(71024),c=l.n(o),u=l(55729),x=l(90248),p=l(494),h=l(65789),m=l(69559),j=l(54409),v=l(14861),g=l(73258),y=l(56990),f=l(45860),C=l(62859),b=l(45152),w=l(47229),H=l(61584),V=l(2294),k=l(76410),_=l(10794);let z=(e,t,l)=>{try{let n=JSON.parse(sessionStorage.getItem(t)||"[]")||[];(null==n?void 0:n.includes(e))||(n.push(e),(0,k.ke)({action:l,location:"main_page",type:"featured_match"}),sessionStorage.setItem(t,JSON.stringify(n)))}catch(e){console.error(e)}},S=()=>{var e;let[t]=(0,p.d4)((0,V.Pf)()),l=(0,p.d4)(_.hT)||s.QCR.Football,{data:r}=(0,f.Ay)(t?s.npy.featuredSportEventsByTiers(t,l):null),i=null==r||null==(e=r.featuredEvents)?void 0:e[0],a=(0,p.d4)(i?(0,V.Ul)(i):()=>!0),d=(0,p.d4)(V.fq),o=(0,p.d4)(V.BF),c=(null==i?void 0:i.status.type)===s.XUj.InProgress;return((0,u.useEffect)(()=>{i&&z(i.id,"main.page.interacted.featured.events","impression")},[null==i?void 0:i.id]),r&&!i||o)?null:(0,n.jsx)(b.S,{isLoading:!i||!t,events:[i],onEventClick:e=>{e&&z(e.id,"main.page.clicked.featured.events","click")},hideEventTitle:!0,children:(a||d)&&(0,n.jsx)(C.y$.Provider,{value:{event:i,location:C.cb.FeaturedMatch},children:i?d?(0,n.jsx)(H.A,{eventId:i.id,isLive:c}):(0,n.jsx)(w.f9,{eventId:i.id,isLive:c}):(0,n.jsx)(w.t1,{})})})};var L=l(35490),P=l(16202),T=l(90510),M=l(31229),E=l(65078),A=l(11867),I=l(77988),Z=l(27601),R=l(38136),G=l(19607),$=l(41618),F=l(49821),O=l(4236),W=l(70819);let B=()=>(0,n.jsx)(d.az,{flexBasis:"4xl",minW:"4xl",h:"xl",flexGrow:1}),D=e=>{let{event:t,cop:l,markets:s,choiceNames:r}=e,i=s.map(e=>e.choices).flat(),a=r.map(e=>i.find(t=>t.name===e));return(0,n.jsxs)(d.so,{p:"sm",gap:"xl",justify:"space-between",borderTop:"1px solid {colors.neutrals.nLv4}",align:"center",children:[(0,n.jsx)($.r,{selectedProvider:l,size:"64x24"}),(0,n.jsx)(d.so,{justify:"space-between",align:"center",gap:"sm",flexGrow:1,children:r.map((e,r)=>{let i=a[r],d=s.find(t=>t.choices.find(t=>t.name===e));return i&&d?(0,n.jsx)(W.A,{choice:i,betSlipLink:l&&(0,O.Iz)(i,d,l),branded:null==l?void 0:l.branded,isLive:d.isLive,isComparison:!0,onClick:()=>(0,k.Fe)({id:t.id,category:d.marketName,location:C.cb.FeaturedOdds,provider:null==l?void 0:l.provider.slug,position:F.ki.OddsValue,type:F.jF.Featured})},"".concat(e,"-").concat(d.id)):(0,n.jsx)(B,{},e)})})]})},N=e=>{let{event:t}=e;return t.status.type===s.XUj.InProgress?(0,n.jsxs)(d.so,{h:"100%",align:"center",gap:"xs",children:[(0,n.jsx)(d.az,{h:"sm",w:"sm",br:"50%",bg:"status.live"}),(0,n.jsx)(i.EY,{h:"lg",lineHeight:"[16px]",textStyle:"body.small",color:"status.live",children:(0,n.jsx)(x.A,{id:"live"})})]}):(0,n.jsx)(i.EY,{h:"lg",lineHeight:"[16px]",textStyle:"body.small",color:"neutrals.nLv1",children:(0,r.cK)(t.startTimestamp)?(0,n.jsx)(T.ib,{value:1e3*t.startTimestamp}):(0,n.jsx)(T.XU,{value:1e3*t.startTimestamp,...r.or.dateTime})})},Y=e=>{let{leftTeam:t,rightTeam:l,leftScore:r,rightScore:a}=(0,E.AR)(e.event),{event:o}=(0,E.mJ)(e.event.id),c=o||e.event,u=c.status.type===s.XUj.InProgress,{odds:x,markets:h,choiceNames:m,error:j}=(0,Z.B)(e.event.id,u),v=(0,p.d4)(V.hB);return!j&&(null==h?void 0:h.length)&&x&&(null==m?void 0:m.length)!==0?(0,n.jsxs)(C.y$.Provider,{value:{event:c,leftTeam:t,rightTeam:l,leftScore:r,rightScore:a,location:C.cb.FeaturedOdds},children:[(0,n.jsx)(A.A,{event:c,children:(0,n.jsxs)(d.so,{pt:"lg",pb:"sm",px:"lg",justify:"space-between",children:[(0,n.jsx)(i.EY,{textStyle:"display.small",truncate:!0,children:(0,n.jsx)(M.U,{})}),(0,n.jsx)(N,{event:c})]})}),(0,n.jsxs)(d.so,{justify:"flex-end",gap:"xl",p:"sm",children:[(0,n.jsx)(d.az,{w:"6xl"}),(0,n.jsx)(d.so,{flexGrow:1,gap:"sm",children:m.map(e=>(0,n.jsx)(d.az,{minW:"4xl",flexGrow:1,textAlign:"center",color:"neutrals.nLv3",textStyle:"display.micro",children:e},e))})]}),null==v?void 0:v.map((e,t)=>{let l=x[t];return(null==l?void 0:l.length)?(0,n.jsx)(D,{event:c,cop:e,choiceNames:m,markets:x[t]||[]},e.provider.id):null})]}):null},Q=()=>{let[e]=(0,p.d4)((0,V.Pf)()),t=(0,p.d4)(_.hT),{featuredEvents:l,error:s}=(0,G.H)(t,e);return!s&&(null==l?void 0:l.length)?(0,n.jsxs)(h.Zp,{children:[(0,n.jsx)(h.Zp.Header,{titleId:"featured_odds",actionComponent:(0,n.jsx)(R.V,{}),variant:"left-aligned"}),l.slice(0,2).map(e=>(0,n.jsx)(Y,{event:e},e.id)),(0,n.jsx)(d.so,{borderTop:"1px solid {colors.neutrals.nLv4}",py:"lg",justify:"center",children:(0,n.jsx)(I.A,{})})]}):null};var U=l(95816),X=l.n(U),J=l(1815),K=l(25745);let q=()=>{let e=(0,p.d4)(V.a5),t=null==e?void 0:e.branded,l=(0,p.d4)(_.LQ);return t?(0,n.jsx)(i.Mz,{position:"absolute",top:"md",right:"lg",target:"_blank",rel:"nofollow noreferrer",href:(null==e?void 0:e.defaultBetSlipLink)||(null==e?void 0:e.provider.defaultBetSlipLink),onClick:()=>(0,k.Fe)({location:C.cb.FeaturedOdds,provider:null==e?void 0:e.provider.slug,position:F.ki.BookmakerButton}),children:(0,n.jsx)(i.$n,{children:(0,n.jsxs)(d.so,{align:"center",gap:"xs",children:[(0,n.jsx)(x.A,{id:"bet_now".concat("GR"===l?"_age":""),values:{age:21}}),(0,n.jsx)(j.A0k,{width:16,height:16,fill:"surface.s1"})]})})}):null};var ee=l(37974),et=l(80435),el=l(38827);let en=()=>{let e=(0,p.d4)(V.a5),t=(0,K.s)(null==e?void 0:e.impressionCostEncrypted),[l]=(0,p.d4)((0,V.Pf)()),r=(0,p.d4)(_.hT),{mediaBreakpoint:a}=(0,i.$c)(),o=(0,J.e)(async()=>{(0,k.CH)({provider:null==e?void 0:e.provider.slug,location:C.cb.FeaturedOdds,value:await t})},{intersectionOptions:{rootMargin:"-20px"},deps:[r]}),{featuredEvents:c,error:u}=(0,el.HD)(r,l),{data:x,error:m}=(0,f.Ay)((null==c?void 0:c.length)&&l?[l,c.map(e=>e.id),"FEATURED_ODDS"]:null,{fetcher:e=>{let[t,l]=e;return Promise.all(l.map(e=>s.nk6.fetchAllEventOdds(e,t)))},refreshInterval:2e4}),j=ee.Yt[a]||ee.Yt.default,v=null==x?void 0:x.reduce((e,t)=>{var l;return null==(l=t.markets)||l.forEach(t=>{j.includes(t.marketId)&&t.choices.every(e=>ee.Vj.includes(e.name))&&(e[t.marketId]?t.choices.forEach(l=>e[t.marketId].add(l.name)):e[t.marketId]=new Set(t.choices.map(e=>e.name)))}),e},{});if(u||m||!e||!(null==c?void 0:c.length))return null;if(!c||!x)return(0,n.jsx)(et.A,{});if(X()(v))return null;let g=0;return j.forEach(e=>v[e]&&[...v[e]].forEach(()=>g+=1)),(0,n.jsxs)(h.Zp,{children:[(0,n.jsx)(h.Zp.Header,{titleId:"featured_odds",actionComponent:(0,n.jsx)(q,{}),variant:"left-aligned"}),(0,n.jsxs)(d.az,{position:"relative","data-testid":"featured_odds",children:[(0,n.jsxs)(d.az,{px:"sm",children:[(0,n.jsx)(d.so,{align:"flex-end",justify:"flex-end",borderBottom:"1px solid {colors.neutrals.nLv4}",pb:"xs",gap:"xs",h:"2xl",mt:"md",children:j.map(e=>v[e]&&[...v[e]].map(e=>(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",w:"[52px]",textAlign:"center",color:"neutrals.nLv3",style:{flex:"0 0 52px"},children:e},e)))}),(0,n.jsx)("div",{ref:o,children:c.map((e,t)=>(0,n.jsx)(ee.Ay,{event:e,markets:x[t].markets,marketChoiceNames:v,hasManyMarkets:g>5},e.id))})]}),(0,n.jsx)(C.y$.Provider,{value:{location:C.cb.FeaturedOdds},children:(0,n.jsxs)(d.so,{justify:"space-between",align:"center",px:"lg",pt:"sm",pb:"lg",children:[(0,n.jsx)(I.A,{"data-testid":"featured_responsibly"}),(0,n.jsx)($.$,{})]})})]})]})},es=()=>{let e=(0,p.d4)(V.BF),t=(0,p.d4)(V.fq);return e?null:t?(0,n.jsx)(Q,{}):(0,n.jsx)(en,{})};var er=l(25862),ei=l(29270),ea=l(81278),ed=l(54053),eo=l(94449),ec=l(32651),eu=l(53192),ex=l(91407),ep=l(91603),eh=l(98449),em=l(24159),ej=l(41249),ev=l(76868),eg=l(69181),ey=l(78339),ef=l(60845);let eC=e=>{let{items:t,titleId:l,empty:r,onSelect:a}=e;return(null==t?void 0:t.length)?(0,n.jsxs)(d.az,{children:[l&&(0,n.jsx)(i.EY,{textStyle:"assistive.default",children:(0,n.jsx)(x.A,{id:l})}),t.map(e=>e.type===s.wNW.Player?(0,n.jsx)(eg.b,{player:e.entity,onPlayerClick:()=>{a(e)}},e.entity.id):e.type===s.wNW.Team?(0,n.jsx)(ef.H,{team:e.entity,onTeamClick:()=>{a(e)}},e.entity.id):null)]}):(0,n.jsx)(n.Fragment,{children:r})};function eb(e){let{type:t,onSelect:l,sport:r}=e,{query:i,results:a,suggestions:o,onQueryChange:c,isLoadingPage:u}=(0,ey.S)(!0,t,"all"===t?[s.wNW.Team,s.wNW.Player]:void 0,r,"".concat(r,"_recent_compare_cta")),p=i&&i.length>2;return(0,n.jsx)(ej.jT,{label:(0,n.jsx)(x.A,{id:t===s.G$9.PlayerTeamPersons?"hint_enter_player_name":t===s.G$9.Teams?"hint_enter_team_name":"hint_enter_team_or_player"}),query:i||"",options:[],onQueryChange:c,filterOptions:e=>!!e,inputProps:{autoFocus:!1,endAdornment:null},w:"100%",zIndex:ej.Py.Sticky,itemWrapper:()=>(null==a?void 0:a.length)||!u?(0,n.jsx)(d.az,{p:"md",children:p?(0,n.jsx)(eC,{items:a,onSelect:l,empty:(0,n.jsx)(ev.p,{graphic:"no-data",titleMessageId:"empty_search_title",descriptionMessageId:"no_events_found_body"})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(eC,{titleId:"suggested",items:o,onSelect:l})})}):null})}let ew=e=>{let{id:t,name:l,type:r,rotate:i}=e;switch(r){case s.G$9.PlayerTeamPersons:return(0,n.jsx)(ex.t,{id:t,size:48,name:l});case s.G$9.Teams:return(0,n.jsx)(ep.p,{id:t,size:48,name:l});default:return(0,n.jsx)(d.so,{minW:"4xl",h:"4xl",bg:"surface.s2",br:"50%",align:"center",justify:"center",children:(0,n.jsx)(j.S3t,{fill:"neutral.default",style:i?{transform:"rotate(180deg)"}:void 0})})}},eH=e=>{let{country:t,reversed:l}=e;return(0,n.jsxs)(d.so,{align:"center",direction:l?"row-reverse":"row",gap:"xs",children:[(0,n.jsx)(eu.w,{size:24,alpha2:null==t?void 0:t.alpha2,name:null==t?void 0:t.name}),(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",lineHeight:1,truncate:!0,maxW:"[150px]",children:(null==t?void 0:t.slug)&&(null==t?void 0:t.name)?(0,n.jsx)(eh.m,{name:t.name,slug:t.slug}):"-"})]})},eV=e=>{let{player:t,reversed:l}=e;return(0,n.jsxs)(d.so,{align:"center",direction:l?"row-reverse":"row",gap:"xs",children:[(0,n.jsx)(ep.p,{id:t.team.id,size:24}),(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",lineHeight:1,truncate:!0,maxW:"[150px]",children:(0,n.jsx)(em.c,{entity:t.team})})]})};function ek(e){let{isFirst:t,selected:l,type:r,sport:a,onSelect:o}=e,c=null==l?void 0:l.entity,u=(null==l?void 0:l.type)===s.wNW.Player;return(0,n.jsxs)(d.so,{px:"lg",py:"sm",gap:"lg",align:"center",children:[(0,n.jsx)(ew,{id:null==c?void 0:c.id,name:null==c?void 0:c.name,type:r,rotate:!t}),c?(0,n.jsxs)(d.so,{grow:1,justify:"space-between",align:"center",children:[(0,n.jsxs)(d.az,{children:[(0,n.jsx)(i.EY,{textStyle:"display.medium",truncate:!0,maxW:"[180px]",mt:"xs",children:(0,n.jsx)(em.c,{entity:c})}),!c.national&&!u&&(0,n.jsx)(eH,{country:null==c?void 0:c.country}),u&&(0,n.jsx)(eV,{player:c})]}),(0,n.jsx)(i.K0,{size:"primary",variant:"clear",onClick:()=>o(void 0),children:(0,n.jsx)(j.hRh,{})})]}):(0,n.jsx)(eb,{type:r,onSelect:o,sport:a})]})}let e_=()=>{let[e,t]=(0,u.useState)(!1);return(0,n.jsxs)(d.az,{position:"relative",children:[(0,n.jsx)(j.G_L,{fill:"onSurface.nLv1",cursor:"pointer",onClick:()=>t(!0)}),(0,n.jsx)(ed.A,{isOpen:e,setIsOpen:t,header:"compare_stats",children:(0,n.jsx)(i.EY,{maxW:"[280px]",textStyle:"body.mediumParagraph",px:"lg",display:"block",children:(0,n.jsx)(x.A,{id:"explainer_compare_stats"})})})]})};function ez(e){var t;let{sport:l}=e,[r,i]=(0,u.useState)(),[a,o]=(0,u.useState)(),c=(0,ea.useRouter)(),x=r||a,p=(null==x?void 0:x.type)===s.wNW.Player||(null==x||null==(t=x.entity)?void 0:t.type)===s.YVh.Person?s.G$9.PlayerTeamPersons:(null==x?void 0:x.type)===s.wNW.Team?s.G$9.Teams:s.G$9.All;return((0,u.useEffect)(()=>{i(void 0),o(void 0)},[l]),ec.G.includes(l))?(0,n.jsx)(eo.V,{persistKey:"".concat(l,"_recent_compare_cta"),children:(0,n.jsxs)(h.Zp,{children:[(0,n.jsx)(h.Zp.Header,{titleId:"compare_stats",actionComponent:(0,n.jsx)(e_,{})}),(0,n.jsx)(ek,{type:p,selected:r,onSelect:i,sport:l,isFirst:!0}),(0,n.jsx)(d.az,{h:"[1px]",mx:"lg",my:"sm",bg:"neutrals.nLv4"}),(0,n.jsx)(ek,{type:p,selected:a,onSelect:o,sport:l}),(0,n.jsx)(h.Zp.Footer,{ctaParams:{messageId:"compare",variant:"filled",disabled:!r||!a,onClick:()=>{if(!r||!a)return;let e=p===s.G$9.Teams?"Team":"Player",t="left".concat(e,"Id=").concat(r.entity.id),n="right".concat(e,"Id=").concat(a.entity.id),i="/".concat(l,"/").concat(e.toLowerCase(),"/compare?").concat(t,"&").concat(n);c.push(i)}}})]})}):null}var eS=l(37990),eL=l(44909),eP=l(10292),eT=l(7322),eM=l(78259),eE=l(23727),eA=l(75751),eI=l(16620),eZ=l(48886),eR=l(70750),eG=l(46170);let e$=e=>{let{player:t,index:l,onClick:s,isFootball:r}=e,a=(0,E.g3)(t.event),[o,c]=(0,E.jr)(t.event,"homeTeam","awayTeam",t.event);return(0,n.jsxs)(d.so,{onClick:()=>s(t.event,t.player),pl:"sm",pr:"lg",align:"center",cursor:"pointer",_hover:{bg:"surface.s2"},"data-testid":"top_players_row",children:[(0,n.jsx)(i.EY,{textStyle:"body.small",children:l}),(0,n.jsxs)(d.az,{position:"relative",ml:"md",children:[(0,n.jsx)(eM.tg,{id:t.player.id,name:t.player.name,size:40}),(0,n.jsx)(eM.pY,{size:21,id:t.team.id,name:t.team.name,style:{position:"absolute",bottom:0,right:-8}})]}),(0,n.jsxs)(d.so,{justify:"space-between",align:"center",flexGrow:1,overflow:"hidden",children:[(0,n.jsxs)(d.so,{direction:"column",justify:"center",ml:"lg",mr:"sm",h:"5xl",overflow:"hidden",children:[(0,n.jsx)(i.EY,{textStyle:"body.medium",truncate:!0,mb:"xs","data-testid":"top_players_name",children:(0,n.jsx)(em.c,{entity:t.player})}),(0,n.jsxs)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:[(0,n.jsx)(em.c,{entity:o,short:!0})," ".concat(a?"@":"vs."," "),(0,n.jsx)(em.c,{entity:c,short:!0})]})]}),(0,n.jsx)(d.az,{flexShrink:0,"data-testid":r?"top_players_rating":void 0,children:r?(0,n.jsx)(eM.GW,{rating:Number(t.rating)}):(0,n.jsx)(i.EY,{textStyle:"body.medium",children:t.points})})]})]})};function eF(e){let{topPlayers:t,heatmap:l,isFetchingHeatmap:r,sport:i,shotmap:a}=e,{openEventPlayerStatistics:o}=(0,eI.d)(),[c,x]=(0,u.useState)(!1),p=(0,u.useCallback)(()=>x(e=>!e),[]),m=i===s.QCR.Football,j=i===s.QCR.Basketball,v=(e,t)=>{o({event:e,player:t},eZ._.TopPlayers)};if((0,u.useEffect)(()=>{x(!1)},[i]),!t)return null;let g=t.length>5;return(0,n.jsx)(eA.t,{tag:"TopPlayersList",children:(0,n.jsxs)(d.az,{children:[t.slice(0,5).map((e,t)=>(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(e$,{isFootball:m,player:e,index:t+1,onClick:v},e.player.id),j&&a&&0===t&&(0,n.jsx)(d.az,{p:"sm",children:(0,n.jsx)(eR.A,{shotCoordinates:a})}),m&&0===t&&l&&!r?(0,n.jsx)(d.az,{p:"sm","data-testid":"top_players_heatmap",children:(0,n.jsx)(eG.GP,{containerId:"heatmap-".concat(e.player.id),dataPoints:l.heatmap,direction:e.team.id===e.event.awayTeam.id?"left":"right"})}):0===t&&r&&m?(0,n.jsx)(d.az,{h:"[260px]"}):null]},e.player.id)),c&&t.slice(5).map((e,t)=>(0,n.jsx)(e$,{isFootball:m,player:e,index:5+t+1,onClick:v},e.player.id)),(0,n.jsx)(h.Zp.Footer,{ctaParams:g?{messageId:c?"show_less":"show_more",icon:c?eE.X.Up:eE.X.Down,onClick:p}:void 0})]})})}var eO=l(6263);function eW(){var e;let t,l,r=(0,m.o)(),{data:i,error:a}=(0,f.Ay)(s.t3g.trendingTopPlayers(r)),d=r===s.QCR.Football,o=r===s.QCR.Basketball;i&&i.topPlayers.length&&(t=i.topPlayers[0].event.id,l=i.topPlayers[0].player.id);let{data:c,error:u}=(0,f.Ay)(d&&t&&l?s.bnp.playerHeatmap(t,l):null),{data:x}=(0,f.Ay)(o&&t&&l?s.bnp.playerShotmap(t,l):null);return a?null:i?(0,n.jsxs)(h.Zp,{children:[(0,n.jsx)(h.Zp.Header,{titleId:"top_players",actionComponent:d&&(0,n.jsx)(eT.D,{type:eT.D.type.SpecificRatingPlayer,rating:null==i||null==(e=i.topPlayers[0])?void 0:e.rating,renderImage:e=>{var t;return(0,n.jsx)(eP.t,{id:null==i||null==(t=i.topPlayers[0])?void 0:t.player.id,...e})},children:e=>{let{setIsOpen:t}=e;return(0,n.jsx)(j.G_L,{fill:"onSurface.nLv1",onClick:()=>t(!0),cursor:"pointer"})}}),"data-testid":"top_players"}),(0,n.jsx)(eF,{sport:r,heatmap:c,shotmap:null==x?void 0:x.shotmap,topPlayers:i.topPlayers,isFetchingHeatmap:!c&&!u&&d})]}):(0,n.jsx)(eO.A,{})}let eB=c()(()=>Promise.all([l.e(7256),l.e(2753),l.e(1072),l.e(1682),l.e(7319),l.e(2017),l.e(3681)]).then(l.bind(l,77990)),{loadableGenerated:{webpack:()=>[77990]},loading:()=>(0,n.jsx)(h.Zp,{children:(0,n.jsx)(d.az,{h:"[calc(100vh - 168px)]"})})});function eD(e){let{date:t,listType:l,category:o}=e,c=(0,p.wA)(),f=(0,p.d4)(e=>e.uicontrols.activeWidgetEvent),C=(0,a.hX)(),{isMobile:b}=(0,i.$c)(),w=(0,p.d4)(_.LQ),H=(0,m.o)(),V=H===s.QCR.Football||H===s.QCR.Basketball,k=(0,u.useCallback)((e,t,l)=>{l||(e.preventDefault(),f===t?c((0,er.VX)(null)):c((0,er.VX)(t||null)))},[f]);(0,u.useEffect)(()=>{let e=document.getElementsByClassName("js-list-cell-target");for(let t=0;t{c((0,er.VX)(null))},[H,t,o]),C)?(0,n.jsx)(eL.A,{}):b?null:f?(0,n.jsx)(d.az,{position:"sticky",top:"[120px]",br:"xl",overflow:"hidden",children:(0,n.jsx)(h.Zp,{children:(0,n.jsx)(i.Ee,{h:"[calc(100vh - 168px)]",resetDeps:[f],children:(0,n.jsx)(eB,{eventId:f,onClose:k,noElevation:!0})})})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Zp,{children:(0,n.jsx)(d.az,{p:"sm",children:(0,n.jsx)(P.V,{location:"main_screen"})})}),z.length>0?(0,n.jsx)(L.Or,{date:(0,r.UG)(t),tournaments:z}):(0,n.jsx)(S,{}),(0,n.jsx)(v.i,{id:"main.DESKTOP_RIGHT"}),(0,n.jsx)(ez,{sport:H}),V&&(0,n.jsx)(eW,{}),(0,n.jsx)(eS.W,{}),(0,n.jsx)(es,{}),(0,n.jsxs)(h.Zp,{children:[(0,n.jsx)(h.Zp.Header,{title:(0,n.jsxs)(d.so,{gap:"md",align:"center",children:[(0,n.jsx)(j.HZJ,{fill:"primary.default"}),(0,n.jsx)(x.A,{id:"banner_header_text"})]})}),(0,n.jsxs)(h.BU,{children:[(0,n.jsx)(g.k,{}),"BR"!==w&&(0,n.jsx)(y.s,{})]})]}),(0,n.jsx)(d.az,{zIndex:"button",position:"sticky",top:"[120px]",children:(0,n.jsx)(v.i,{id:"main.DESKTOP_RIGHT_BOTTOM"})}),o?(0,n.jsx)(ei._,{sport:H,category:o}):l===el.Jx.BASE?(0,n.jsx)(ei.a,{}):null]})}},60845:(e,t,l)=>{l.d(t,{H:()=>c});var n=l(6029),s=l(49519),r=l(21377),i=l(41249),a=l(54409),d=l(98449),o=l(94604);let c=e=>{var t,l,c,u,x,p,h,m,j;let{team:v,onTeamClick:g,onRemoveClick:y}=e,f=(null==(t=v.sport)?void 0:t.slug)===r.QCR.Tennis;return(0,n.jsxs)(i.so,{gap:"sm",onClick:()=>g(v),align:"center",cursor:"pointer",py:"sm",children:[(0,n.jsx)(s.p,{id:v.id,name:v.name,size:40}),(0,n.jsxs)(i.so,{direction:"column",gap:"xs",grow:1,children:[(0,n.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,n.jsx)(o.Rm,{team:v,showFemaleSuffix:"F"===v.gender&&!f})}),!v.national&&(null==(l=v.country)?void 0:l.slug)&&(null==(c=v.country)?void 0:c.name)&&!f&&(0,n.jsxs)(i.so,{align:"center",gap:"sm",children:[(0,n.jsx)(s.w,{size:16,alpha2:null==(u=v.country)?void 0:u.alpha2,name:null==(x=v.country)?void 0:x.name}),(0,n.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,n.jsx)(d.m,{slug:v.country.slug,name:v.country.name})})]}),f&&v.country&&v.country.name&&(0,n.jsxs)(i.so,{align:"center",gap:"xs",children:[(0,n.jsx)(s.w,{size:16,alpha2:null==(p=v.country)?void 0:p.alpha2,name:null==(h=v.country)?void 0:h.name}),(0,n.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,n.jsx)(d.m,{name:v.country.name,slug:null!=(j=null==(m=v.country)?void 0:m.slug)?j:v.country.name})})]})]}),void 0!==y&&(0,n.jsx)(i.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==y||y(v)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,n.jsx)(a.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})}},67823:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(64082),s=l(6029),r=l(55729),i=l(18130);let a=(0,r.forwardRef)((e,t)=>{var{children:l}=e,r=(0,n.T)(e,["children"]);return(0,s.jsx)("svg",Object.assign({viewBox:`0 0 ${i.f7} ${i.IV}`,preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",style:{userSelect:"none"}},r,{children:(0,s.jsx)("g",Object.assign({fill:"none",fillRule:"evenodd",ref:t},{children:l}))}))})},69181:(e,t,l)=>{l.d(t,{b:()=>d});var n=l(6029),s=l(94446),r=l(41249),i=l(54409),a=l(24159);let d=e=>{let{player:t,onPlayerClick:l,onRemoveClick:d}=e;return(0,n.jsxs)(r.so,{onClick:()=>l(t),h:"56px",align:"center",cursor:"pointer",children:[(0,n.jsx)(s.t,{id:t.id,name:t.name,size:40,grayscale:t.deceased}),(0,n.jsxs)(r.so,{direction:"column",justify:"center",h:"100%",gap:"xs",grow:1,pl:"sm",children:[(0,n.jsx)(r.EY,{font:"body.medium",color:"onSurface.nLv1",ellipsis:!0,maxW:["250px","130px"],children:(0,n.jsx)(a.c,{entity:t})}),(0,n.jsxs)(r.so,{align:"center",gap:"sm",children:[(0,n.jsx)(s.p,{id:t.team.id,size:16}),(0,n.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,ellipsis:!0,maxW:["300px","120px"],children:(0,n.jsx)(a.c,{entity:t.team})})]})]}),void 0!==d&&(0,n.jsx)(r.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==d||d(t)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,n.jsx)(i.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})}},70750:(e,t,l)=>{l.d(t,{A:()=>f});var n=l(6029),s=l(21377),r=l(9127),i=l(41735);let a=({x:e,y:t})=>{let{colors:l}=(0,i.useTheme)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.m.circle,{fill:l.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,n.jsx)(r.m.circle,{fill:l.success.default,r:"4",animate:{cx:e,cy:t}})]})},d=({x:e,y:t})=>{let{colors:l}=(0,i.useTheme)(),s=e-3,a=e+3,d=t-3;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.m.circle,{fill:l.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,n.jsx)(r.m.path,{animate:{d:`M ${s},${d} l 6,6 M ${a},${d} l -6,6`},stroke:l.error.default,strokeWidth:"2"})]})},o=({shotCoordinates:e})=>(0,n.jsx)("g",{children:e.map((e,t)=>e.type===s.Dme.Made?(0,n.jsx)(a,{x:e.x,y:e.y},t):(0,n.jsx)(d,{x:e.x,y:e.y},t))});var c=l(67823),u=l(13369),x=l(11810);let p=({showLines:e=!0,showBackground:t=!0,showOverlay:l=!0,linesColor:s,backgroundColor:r,shotCoordinates:i})=>(0,n.jsxs)(c.A,{children:[t&&(0,n.jsx)(x.A,{courtColor:r,showDarkPaint:!0}),e&&(0,n.jsx)(u.A,{fill:s}),l&&(0,n.jsx)(o,{shotCoordinates:i})]});var h=l(18130),m=l(43139);let j=(0,m.A)().domain([-250,250]).range([0,h.f7]),v=(0,m.A)().domain([-51,411]).range([0,h.IV]),g=e=>({clampedShotActions:e.map(e=>{let[t,l]=function(e){let t=j(e.x),l=v(e.y);return l>=h.IV-11&&(l=h.IV-8),t>=h.f7&&(t=h.f7-4),[t,l]}(e);return Object.assign(Object.assign({},e),{x:t,y:l})})});var y=l(41249);let f=e=>{let{shotCoordinates:t,...l}=e,{clampedShotActions:s}=g(t);return(0,n.jsx)(y.az,{bg:"graphicsTerrain.basketball",p:"8px 48px",br:"lg",...l,children:(0,n.jsx)(p,{shotCoordinates:s})})}},78339:(e,t,l)=>{l.d(t,{S:()=>p});var n=l(21377),s=l(4967),r=l(55729),i=l(45860),a=l(7643),d=l(39021);let o=[n.wNW.Player,n.wNW.Team,n.wNW.Manager,"uniqueTournament",n.wNW.Referee,n.wNW.Venue,n.wNW.Event],c=(e,t)=>{let{type:l}=e;return t.includes(l)},u=(e,t)=>{switch(t){case n.G$9.Teams:return"team"===e.type&&e.entity.type!==n.YVh.Person;case n.G$9.Events:return"event"===e.type;case n.G$9.UniqueTournaments:return"uniqueTournament"===e.type;case n.G$9.PlayerTeamPersons:return"team"===e.type&&e.entity.type===n.YVh.Person||"player"===e.type;case n.G$9.Referee:return"referee"===e.type;case n.G$9.Venue:return"venue"===e.type;default:return!0}},x=(e,t)=>e.filter(e=>u(e,t));function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.G$9.All,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,p=arguments.length>3?arguments[3]:void 0,h=arguments.length>4?arguments[4]:void 0,m=function(e){let{filter:t,lsKey:l}=e,[n,i]=(0,d.A)(l||"recent_search_results",[]),a=(0,r.useCallback)(e=>{let t=n.findIndex(t=>t.entity.id===e.entity.id&&t.type===e.type);if(t>-1){let l=[...n];l.splice(t,1),l.unshift(Object.assign(e,{timestamp:Date.now()})),i(l)}else i([Object.assign(e,{timestamp:Date.now()}),...n])},[n]),o=(0,r.useCallback)(e=>{i(n.filter(t=>t.entity.id!==e.entity.id||t.type!==e.type))},[n]),c=(0,r.useCallback)(()=>{i("all"===t?[]:n.filter(e=>!u(e,t)))},[n,t]);return(0,r.useEffect)(()=>{if(null==n?void 0:n.length){let e=Date.now(),t=n.filter(t=>e-t.timestamp<30*s.d_);t.length!==n.length&&i(t)}},[null==n?void 0:n.length]),{recents:n,addRecentSearch:a,removeRecentSearch:o,clearRecentSearches:c}}({filter:t,lsKey:h}),j=x(m.recents,t),{suggestions:v,areSuggestionsLoading:g}=function(e,t,l,r){let a=e===n.G$9.All?"default":e,{data:d,isLoading:o}=(0,i.Ay)(t?n.d9M.suggestions(a,r):null,{dedupingInterval:s.d_});return{suggestions:null==d?void 0:d.results.filter(e=>c(e,l)),areSuggestionsLoading:o}}(t,!!e&&j.length<10,l,p),y=function(e){let{filter:t,enabledEntities:l,sport:s}=e,[i,d]=(0,r.useState)(""),[o,u]=(0,r.useState)(),{size:x,setSize:p,isValidating:h}=(0,a.Ay)((e,l)=>l&&!l.results.length||i.length<2?null:n.d9M.results(t,encodeURIComponent(i),e,s),n.TtD,{onSuccess:e=>{u(null==e?void 0:e.reduce((e,t)=>[...e,...t.results],[]).filter(e=>c(e,l)))},onError:()=>{u([])}});return{results:o,isLoadingPage:h,onQueryChange:(0,r.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e.length<2&&u(void 0),d(e)},[]),onLoadMore:()=>p(x+1),query:i,couldHaveMore:20*x===(null==o?void 0:o.length)}}({filter:t,enabledEntities:l,sport:p});return{...m,...y,isLoadingPage:y.isLoadingPage||g,recents:j,suggestions:null==v?void 0:v.filter(e=>!m.recents.some(t=>t.entity.id===e.entity.id&&t.type===e.type))}}},94449:(e,t,l)=>{l.d(t,{V:()=>a,p:()=>i});var n=l(6029),s=l(55729),r=l(19168);let i=(0,s.createContext)(void 0),a=e=>{let{children:t,persistKey:l}=e,[s,a]=(0,r.yR)(l,[]);return(0,n.jsx)(i.Provider,{value:{recentlySelected:s,setRecentlySelected:a},children:t})}}}]);