!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]="00ecd16a-0b87-4e80-8dce-523527920034",e._sentryDebugIdIdentifier="sentry-dbid-00ecd16a-0b87-4e80-8dce-523527920034")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4283],{7447:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(6029),l=n(28349),a=n(54409);function o(e){let{isFollowed:t,disabled:n,onClick:o,isOnOverlay:i}=e;return(0,r.jsx)(l.D7,{onClick:o,disabled:n,bg:"[transparent]",children:(0,r.jsx)(a.zQC,{icon:t?"follow-active":"follow-default",fill:i?"onColor.primary":t?"primary.default":"neutral.default",style:{width:24,height:24}})})}},8973:(e,t,n)=>{n.d(t,{b:()=>r,y:()=>l});var r=function(e){return e.Event="event",e.Team="team",e.UniqueTournament="unique_tournament",e.Tournament="tournament",e.Player="player",e.Stage="stage",e.Substage="substage",e.UniqueStages="unique_stage",e.Constructor="constructor",e.Driver="driver",e}({}),l=function(e){return e.MainMatches="main_matches",e.MainLeagues="main_leagues",e.Header="header",e.EventHeader="event_header",e.EventsTab="events_tab",e.EventWidget="event_widget",e.MatchesSection="matches_section",e.H2HSection="h2h_section",e.FloatingHeader="floating_header",e.Favorites="favorites",e.PlayerStatistics="player_statistics",e.RacesTab="races_tab",e.FightNight="fight_night",e.Fights="fights",e.PopularPlayers="popular_players",e.PopularTeams="popular_teams",e.Search="search",e.Popup="popup",e}({})},10801:(e,t,n)=>{n.d(t,{d:()=>o,h:()=>s});var r=n(6029),l=n(55729);let a=(0,l.createContext)(!1);function o(){return!!(0,l.useContext)(a)}function i(e){let{children:t}=e;return(0,r.jsx)(a.Provider,{value:!0,children:t})}function s(e){let{children:t}=e,n=0;return(0,r.jsx)(r.Fragment,{children:l.Children.map(t,e=>e?0==n++?(0,r.jsx)(i,{children:e}):e:null)})}},39969:(e,t,n)=>{n.d(t,{h:()=>w,x:()=>_});var r=n(6029),l=n(21377),a=n(99064),o=n(55729),i=n(494),s=n(24313),d=n(70757),c=n(61836),u=n(10794),f=n(28349),h=n(76356),p=n(90248),g=n(54409);let m=(e,t,n)=>{if(n)switch(t){case"right":return{top:"-8px",left:0,transform:"translateY(-100%)"};case"bottom":return{};default:return{top:"-8px",right:0,transform:"translateY(-100%)"}}switch(t){case"right":return{bottom:"-8px",left:0,transform:"translateY(100%)"};case"bottom":return e?{transform:"translateX(-100%)"}:{};default:return{bottom:"-8px",right:0,transform:"translateY(100%)"}}},x=e=>{let{image:t,name:n,LinkComponent:l}=e,a=(0,r.jsxs)(h.so,{align:"center",cursor:"pointer",gap:"lg",children:[t,(0,r.jsx)(h.az,{style:{width:"102px"},textAlign:"start",children:(0,r.jsx)(f.EY,{color:"neutrals.nLv1",textStyle:"body.medium",children:n})})]});return(0,r.jsx)(h.az,{my:"md",children:l?(0,r.jsx)(l,{children:a}):a})},v=(0,o.forwardRef)((e,t)=>{let{isEventFollowed:n,entities:l=[],onDeleteClick:a,menuPosition:o,isMenuInverted:i}=e,{textDirection:s}=(0,f.$c)(),{isMobile:d}=(0,f.$c)();return"rtl"===s&&(o="right"===o?"left":"right"),(0,r.jsx)(h.az,{ref:t,position:"absolute",w:"[174px]",bg:"surface.s1",elevation:"3",br:"md",py:"sm",zIndex:"popover",style:{...m(d,o,i),whiteSpace:"normal"},children:n&&a?(0,r.jsxs)(h.so,{tabIndex:0,px:"lg",py:"sm",minH:"4xl",align:"center",br:"md",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(null==a||a(e))},onClick:a,cursor:"pointer",children:[(0,r.jsx)(g.xV8,{fill:"error.default",width:24,height:24,mr:"lg"}),(0,r.jsx)(h.az,{style:{width:"102px"},children:(0,r.jsx)(f.EY,{color:"neutrals.nLv1",textStyle:"body.medium",children:(0,r.jsx)(p.A,{id:"remove_from_favourites"})})})]}):(0,r.jsxs)(h.az,{px:"lg",minH:"4xl",children:[(0,r.jsx)(h.az,{textAlign:"start",children:(0,r.jsx)(f.EY,{color:"neutrals.nLv3",textStyle:"assistive.default",pb:"sm",children:(0,r.jsx)(p.A,{id:"favorites.becauseYouFollow"})})}),l.map(e=>(0,r.jsx)(x,{...e},e.entityType+e.id))]})})});var y=n(37356),b=n(7447);let j=e=>{e.stopPropagation(),e.preventDefault()};function w(e){let{children:t,id:n,leftTeam:f,rightTeam:h,tournament:p,menuPosition:g,isMenuInverted:m,isOnOverlay:x,location:w,type:C}=e,k=(0,o.useMemo)(()=>(0,y.fB)(),[]),S=(0,o.useMemo)(()=>(0,y.KL)(),[]),_=(0,o.useMemo)(()=>({leftTeam:f,rightTeam:h,tournament:p}),[f.id,h.id,p.id]),E=(0,i.d4)(e=>k(e,n)),F=(0,i.d4)(e=>S(e,_)),P=(0,i.d4)(u.fg),I=E!==u.dE.NotFollowed&&!!E,T=I||!!F.length,{invertedMenu:z}=(0,s.l)(),D=(0,i.wA)(),M=()=>{D((0,d.q$)(l.bq7.Events,n)),D((0,d.q$)(l.bq7.MutedEvents,n)),(0,c.g2)({id:n,type:C,location:w,isFollowed:!1})},A=()=>{D((0,d.UQ)(l.bq7.Events,n)),(0,c.g2)({id:n,type:C,location:w,isFollowed:!0})},[L,q]=(0,o.useState)(!1),Q=()=>q(e=>!e),N=(0,o.useCallback)(()=>q(!1),[]),$=(0,a.jz)(N),R=e=>{j(e),P||(T?I?M():Q():A())};return(0,r.jsxs)(a.az,{ref:$,w:"fit-content",children:["function"==typeof t?t({disabled:P,isFollowed:T,isOnOverlay:x,onClick:R}):(0,r.jsx)(b.A,{"aria-label":T?"Remove from favourites":"Add to favourites",disabled:P,isFollowed:T,isOnOverlay:x,onClick:R}),T&&L&&!I&&(0,r.jsx)(v,{isEventFollowed:I,entities:F,menuPosition:g,isMenuInverted:z||m,onDeleteClick:e=>{j(e),M(),N()}})]})}var C=n(62859),k=n(8973),S=n(37470);function _(e){let{id:t,uniqueStage:n,menuPosition:f,location:h,isSubstageCell:p}=e,g=(0,o.useContext)(C.Ws),m=(0,o.useMemo)(()=>(0,y.BD)(),[]),x=(0,o.useMemo)(()=>(0,y.jM)(),[]),j=(0,i.d4)(e=>m(e,t)),w=(0,i.d4)(e=>x(e,null==n?void 0:n.id)),_=(0,i.d4)(u.fg),E=w&&n?(0,S.P3)({uniqueStage:n,sportSlug:g}):void 0,{invertedMenu:F}=(0,s.l)(),P=(0,i.wA)(),I=()=>{P((0,d.UQ)(l.bq7.Stages,t)),(0,c.g2)({id:t,type:p?k.b.Substage:k.b.Stage,location:h,isFollowed:!0})},T=()=>{P((0,d.q$)(l.bq7.Stages,t)),(0,c.g2)({id:t,type:p?k.b.Substage:k.b.Stage,location:h,isFollowed:!1})},[z,D]=(0,o.useState)(!1),M=()=>D(e=>!e),A=()=>D(!1),L=(0,a.jz)(A),q=j||w,Q=w&&!p;return(0,r.jsxs)(a.az,{ref:L,position:"relative",w:"fit-content",children:[(0,r.jsx)(b.A,{disabled:_,isFollowed:q,onClick:e=>{e.stopPropagation(),e.preventDefault(),_||(q?M():I())}}),q&&z&&(0,r.jsx)(v,{entities:E?[E]:void 0,isEventFollowed:j&&!Q,menuPosition:f,isMenuInverted:F,onDeleteClick:e=>{e.stopPropagation(),e.preventDefault(),T(),A()}})]})}},46009:(e,t,n)=>{n.d(t,{w:()=>l,e:()=>m});var r=n(55729);let l=(0,r.createContext)("");var a=n(6029),o=n(76356),i=n(947),s=n(494),d=n(68228),c=n(54409),u=n(61836),f=n(10794),h=n(70757),p=n(12759);let g=e=>{e.stopPropagation(),e.preventDefault()};function m(e){let{entity:t,id:n,location:l,type:m,isOnOverlay:x,isDisabled:v,hasNoBorder:y=!1,onClick:b,isNewButton:j}=e,w=(0,s.wA)(),C=(0,i.A)(),k=(0,s.d4)(e=>(0,f.Ql)(e,t,n),s.bN),S="boolean"==typeof k?k:k!==f.dE.NotFollowed,_=(0,s.d4)(f.fg)||v,E=(0,r.useCallback)(()=>{if(!_){if(S){let e=k===f.dE.Favorite?(0,p.Hz)(t):t;w((0,h.q$)(e,n))}else{let e=(0,p.Hz)(t);w((0,h.UQ)(e,n))}(0,u.g2)({id:n,type:m,location:l,isFollowed:!S})}},[S,_,t,n]);return j?(0,a.jsx)(d.u,{disabled:_,variant:S?"compact":"primary",label:C.formatMessage({id:"button_favourite"}),onClick:e=>{g(e),null==b||b(),E()},children:(0,a.jsx)(c.zQC,{icon:S?"follow-active":"follow-default"})}):(0,a.jsx)(o.I4.button,{border:y?"1.5px solid transparent":void 0,alignItems:"center",appearance:"none",cursor:"pointer",display:"inline-flex",isolation:"isolate",justifyContent:"center",outline:"none",position:"relative",userSelect:"none",flexShrink:"0",whiteSpace:"nowrap",h:"[32px]",w:"[32px]",px:"[0px]",textStyle:"action.button.primary",gap:"xs",br:"sm",color:"primary.default",backgroundColor:"[transparent]",disabled:_,_disabled:{opacity:.5,color:"neutral.default",cursor:"not-allowed"},_hover:_?{}:{bg:"primary.default/8"},_active:_?{}:{bg:"primary.default/15"},_focusVisible:{},onClick:e=>{g(e),null==b||b(),E()},children:S?(0,a.jsx)(c.zQC,{icon:"follow-active",m:"0",fill:x?"onColor.primary":"primary.default"}):(0,a.jsx)(c.zQC,{icon:"follow-default",m:"0",fill:x?"onColor.primary":"neutral.default"})})}},68228:(e,t,n)=>{n.d(t,{u:()=>i});var r=n(6029),l=n(28349),a=n(76356),o=n(10801);function i(e){let{variant:t,children:n,label:i,...s}=e,d=!!(0,o.d)()&&"compact"!==t,c="string"==typeof i;return(0,r.jsxs)(l.$n,{...s,h:"2xl",minW:"2xl",gap:"0",transitionProperty:"padding-inline-start, padding-inline-end, background-color, color, fill",transitionDuration:"normal",transitionTimingFunction:"ease-in-out",variant:d?"filled":"clear",px:d?"md":"0",backgroundColor:{base:d?void 0:"surface.s2",_hover:d?void 0:"primary.highlight"},"aria-label":"string"==typeof i?i:void 0,children:[n,c&&(0,r.jsx)(a.I4.div,{overflow:"hidden",transitionProperty:"grid-template-columns, opacity, margin-left",transitionDuration:"normal",transitionTimingFunction:"ease-in-out",display:"grid",style:{gridTemplateColumns:d?"1fr":"0fr",opacity:+!!d,marginLeft:d?"4px":"0"},children:(0,r.jsx)(a.I4.span,{overflow:"hidden",children:i})})]})}},95211:(e,t,n)=>{n.d(t,{n6:()=>E,MC:()=>g.MC,gY:()=>P,G:()=>M,ey:()=>z});var r=n(6029),l=n(87827),a=n(21377),o=n(28349),i=n(21501),s=n(76356),d=n(93338),c=n(55729),u=n(90248),f=n(494),h=n(62859),p=n(54409),g=n(60988),m=n(8703),x=n(65078),v=n(16620),y=n(48886),b=n(8973),j=n(39969),w=n(99064),C=n(41735),k=n(13266);let S=(0,C.default)(k.tj).withConfig({componentId:"sc-3f813a14-0"})(["display:block;border-radius:2px;:hover{background:",";}:active{background:",";}"],e=>e.theme.colors.surface.s2,e=>e.theme.colors.surface.s0),_=(0,C.default)(w.$n).withConfig({componentId:"sc-3f813a14-1"})(["display:inline-block;&:hover > *{transform:scale(1.1);}"]);function E(e){let t=(0,c.useRef)(null),n=(0,f.d4)(t=>t.favorites.events[e.event.id],f.bN),[l,a]=(0,x.jr)(n,"homeTeam","awayTeam",n),[o,s]=(0,x.jr)(n,"homeScore","awayScore",n),d=(0,i.ZC)(null==n?void 0:n.status.type);return((0,c.useEffect)(()=>{e.mutate&&d&&(null==n?void 0:n.status.type)&&d!==n.status.type&&e.mutate()},[e.mutate,d,null==n?void 0:n.status.type]),n)?(0,r.jsx)(h.y$.Provider,{value:{event:n,leftTeam:l,rightTeam:a,leftScore:o,rightScore:s},children:(0,r.jsx)(S,{event:n,className:"event-hl-".concat(n.id),onClick:t=>{e.onClick&&e.onClick(t,(null==n?void 0:n.id)||-1,e.isMobile)},children:(0,r.jsx)("div",{ref:t,children:(0,r.jsx)(g.n6,{...e,event:n,location:e.location})})})}):null}let F=()=>{let{event:e,leftTeam:t,rightTeam:n}=(0,c.useContext)(h.y$),{location:l}=(0,g.lv)();return(0,r.jsx)(j.h,{id:e.id,tournament:e.tournament,leftTeam:t,rightTeam:n,type:b.b.Event,location:l})},P=e=>(0,r.jsx)(E,{...e,children:F}),I=e=>{let{referenceId:t,isReferenceTeamId:n}=e,l=(0,x.h2)(t,n),i={background:"colors.neutrals.nLv3",char:"?"};switch(l){case a.h18.Win:i={background:"colors.secondary.default",char:"W"};break;case a.h18.OvertimeLoss:case a.h18.Lose:i={background:"colors.status.error.default",char:"L"};break;case a.h18.Draw:i={background:"colors.neutrals.nLv3",char:"D"}}return(0,r.jsx)(s.az,{w:"xl",h:"xl",br:"50%",mx:"xs",style:{backgroundColor:d.S.var(i.background)},children:(0,r.jsx)(o.EY,{textStyle:"display.small",color:"onColor.primary",lineHeight:"24px",w:"xl",textAlign:"center",display:"block",children:i.char})})},T=e=>{let{event:t,leftTeam:n,rightTeam:l}=(0,c.useContext)(h.y$);return[a.XUj.NotStarted,a.XUj.InProgress].includes(t.status.type)?(0,r.jsx)(j.h,{type:b.b.Event,location:b.y.MatchesSection,id:t.id,tournament:t.tournament,leftTeam:n,rightTeam:l}):(0,r.jsx)(I,{...e})},z=e=>{let{referenceId:t,isReferenceTeamId:n,incidentsMap:l,...a}=e;return e=>(0,r.jsx)(E,{incidents:l?l[e.event.id]:void 0,isReferenceTeamId:n,...a,...e,children:()=>(0,r.jsx)(T,{referenceId:t,isReferenceTeamId:n})})},D=e=>{let{value:t}=e;return(0,r.jsx)(s.so,{w:"xl",h:"xl",align:"center",justify:"center",color:"onColor.default",backgroundColor:t>0?"secondary.default":"neutrals.nLv3",children:t})},M=e=>{let{statistics:t,player:n,isOnBench:i,incidents:d,isReferenceTeamId:f,selectedStatistic:g}=e;return e=>(0,r.jsx)(E,{incidents:d,entity:a.wNW.Player,...e,isReferenceTeamId:f,children:(0,m.rK)(e.event)?()=>{let{openEventPlayerStatistics:e}=(0,v.d)(),{event:d,leftTeam:f,rightTeam:m}=(0,c.useContext)(h.y$),x=d.status.type,w=d.tournament.category.sport,C=x===a.XUj.NotStarted,k=w.slug===a.QCR.Football||"rating"===g,S=[a.QCR.Basketball,a.QCR.Volleyball].includes(w.slug)&&g&&"rating"!==g,E=!k&&!S;return i&&w.slug===a.QCR.Football?(0,r.jsx)(s.az,{w:"xl",h:"xl",children:(0,r.jsx)(p.IKQ,{width:24,height:24,fill:"onSurface.nLv3"})}):C?(0,r.jsx)(j.h,{id:d.id,type:b.b.Event,location:b.y.MatchesSection,tournament:d.tournament,leftTeam:f,rightTeam:m}):d.hasEventPlayerStatistics?(0,r.jsxs)(_,{onClickCapture:t=>{t.preventDefault(),t.stopPropagation(),d.hasEventPlayerStatistics&&n&&e({event:d,player:n},y._.EventCell)},variant:E?void 0:"unshielded",colorScheme:E?"secondary":void 0,p:"0",w:24,h:24,children:[k&&(0,r.jsx)(l.G,{rating:null==t?void 0:t.rating}),S&&(0,r.jsx)(D,{value:(null==t?void 0:t[g])||0}),E&&(0,r.jsx)(p.Abd,{width:24,height:24,fill:"onColor.primary"})]}):(0,r.jsx)(s.so,{w:"xl",h:"xl",align:"center",justify:"center",children:(0,r.jsx)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,r.jsx)(u.A,{id:"N/A"})})})}:null})}}}]);