!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]="076e5629-a53b-4667-9a71-57ca965ad31d",e._sentryDebugIdIdentifier="sentry-dbid-076e5629-a53b-4667-9a71-57ca965ad31d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24552],{1639:(e,t,s)=>{s.d(t,{l:()=>c,W:()=>u});var n=s(6029),r=s(46787),l=s(51569),i=s(62042),a=s(20325),o=s(83359);let d=(0,i.Fj)({base:{display:"inline-block",borderRadius:"md",px:"sm"},variants:{groundType:{[r.QWe.HardcourtIndoor]:{bg:"tennis.terrain.hardcourtIndoor"},[r.QWe.HardcourtOutdoor]:{bg:"tennis.terrain.hardcourtOutdoor"},[r.QWe.Hard]:{bg:"tennis.terrain.hardcourtOutdoor"},[r.QWe.CarpetIndoor]:{bg:"tennis.terrain.default"},[r.QWe.Grass]:{bg:"tennis.terrain.grass"},[r.QWe.Clay]:{bg:"tennis.terrain.clay"},[r.QWe.RedClay]:{bg:"tennis.terrain.clay"},[r.QWe.SyntheticOutdoor]:{bg:"tennis.terrain.default"},default:{bg:"tennis.terrain.default"}}}}),c=(0,a.I4)("div",d),u=e=>{let{groundType:t}=e;return t?(0,n.jsx)(c,{groundType:t,children:(0,n.jsx)(l.EY,{display:"block",textStyle:"assistive.default",h:"lg",color:"surface.s1",children:(0,n.jsx)(o.n,{id:t})})}):null}},12714:(e,t,s)=>{s.d(t,{A:()=>h});var n=s(46787),r=s(22375),l=s(55729),i=s(494),a=s(18970),o=s(68789),d=s(24534),c=s(37455),u=s(60682),x=s(11996);let h=()=>{let{event:e}=(0,l.useContext)(a.y$),t=e.status.type===n.XUj.InProgress,s=(0,o.F0)(e),[h,p]=(0,u.Z)(s,t),m=(0,i.d4)((0,c.Ul)(e)),g=(0,i.d4)(c.fq),j=(e,t,s)=>s?void 0:n.bnp.teamStreaksOdds(e,t),{hasProviderOdds:y,hasFallbackProviderOdds:v}=(0,x.A)({hasProviderOdds:{route:h?j(e.id,h,g):void 0,skipCheck:!h||!m},hasFallbackProviderOdds:{route:p?j(e.id,p,g):void 0,skipCheck:!p||!m}},[e.id,h,p,m,g],{refreshInterval:120*r.Z2}),f=(0,d.q1)();return g?f:!!y||!!v}},17794:(e,t,s)=>{s.d(t,{t:()=>u,z:()=>a});var n=s(6029),r=s(51569),l=s(20325),i=s(947);function a(e){let{count:t,onClick:s}=e,a=(0,i.A)();return(0,n.jsx)(l.I4.button,{"aria-label":a.formatMessage({id:"show_more"}),p:"xs",br:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},_active:{bg:"surface.s0"},onClick:s,children:(0,n.jsx)(l.so,{bg:"action.primary.default",br:"md",h:"lg",px:"sm",children:(0,n.jsxs)(r.EY,{textStyle:"assistive.default",color:"surface.s1",children:["+",t]})})})}var o=s(46787),d=s(45860),c=s(52466);function u(e){var t,s;let{channelId:i,type:a,eventId:u}=e,{data:x,isValidating:h}=(0,d.Ay)(o.RMf.eventChannelVotes(i,a,u));if(h)return(0,n.jsx)(l.az,{h:"2xl",pb:"2xs"});if(!x)return null;let p=x.tvChannelVotes.tvChannel.name,m=null!=(t=x.tvChannelVotes.upvote)?t:0,g=null!=(s=x.tvChannelVotes.downvote)?s:0;return(0,n.jsxs)(l.so,{direction:"row",align:"center",gap:"lg",children:[(0,n.jsx)(l.az,{flexShrink:0,children:(0,n.jsx)(c.ft6,{color:"neutrals.nLv3",w:16,h:16})}),(0,n.jsxs)(l.so,{direction:"column",gap:"2xs",minW:"[0]",children:[(0,n.jsx)(r.EY,{truncate:!0,children:p}),(0,n.jsxs)(l.so,{gap:"xs",children:[(0,n.jsxs)(l.so,{align:"center",gap:"xs",children:[(0,n.jsx)(c.URl,{color:"status.success.default"}),(0,n.jsx)(r.EY,{textStyle:"assistive.micro",color:"neutrals.nLv3",children:m})]}),(0,n.jsxs)(l.so,{align:"center",gap:"xs",children:[(0,n.jsx)(c.fHS,{color:"status.error.default"}),(0,n.jsx)(r.EY,{textStyle:"assistive.micro",color:"neutrals.nLv3",children:g})]})]})]})]})}},24534:(e,t,s)=>{s.d(t,{PW:()=>f,Q:()=>j,q1:()=>v});var n=s(46787),r=s(22375),l=s(55729),i=s(494),a=s(18970),o=s(68789),d=s(72753),c=s(11996),u=s(72388),x=s(30120),h=s(94122),p=s(37455),m=s(60682);let g=30*r.Z2,j=()=>{let e=(0,i.d4)(d.LQ),{event:t}=(0,l.useContext)(a.y$),s=(0,i.d4)((0,p.Ul)(t)),r=t.status.type===n.XUj.InProgress,x=(0,o.F0)(t),j=(0,o.ks)(t),[y,v]=(0,m.Z)(x,r),[f,b]=(0,m.Z)(j,r),w=(0,i.d4)(p.fq),k=e&&!w&&!h.fe.includes(e),{hasProviderOdds:_,hasFallbackProviderOdds:S,hasOddsTabProviderOdds:C,hasOddsTabFallbackProviderOdds:T,hasWinningOdds:I,hasFallbackProviderWinningOdds:P}=(0,c.A)({hasProviderOdds:{route:y?n.bnp.featuredOdds(t.id,y):void 0,skipCheck:!s||!y},hasFallbackProviderOdds:{route:v?n.bnp.featuredOdds(t.id,v):void 0,skipCheck:!s||!v},hasOddsTabProviderOdds:{route:f?n.bnp.allOdds(t.id,f):void 0,skipCheck:!s||!y||!k},hasOddsTabFallbackProviderOdds:{route:b?n.bnp.allOdds(t.id,b):void 0,skipCheck:!s||!v||!k},hasWinningOdds:{route:y?n.bnp.winningOdds(t.id,y):void 0,skipCheck:!s||!y},hasFallbackProviderWinningOdds:{route:y!==h.u3?n.bnp.winningOdds(t.id,h.u3):void 0,skipCheck:!s||!v}},[t.id,s,k,y,v],{refreshInterval:(0,u.c)(t)?g:void 0});return s?{hasFeaturedOdds:!!(_||S),hasOddsTab:!!(C||T),hasWinningOdds:!!(I||P)}:{hasFeaturedOdds:!1,hasOddsTab:!1}},y=(e,t)=>{let{event:s}=(0,l.useContext)(a.y$),r=s.status.type===n.XUj.InProgress,o=(0,i.d4)(p.K),d={};null==t||t.forEach(t=>{d["provider".concat(t.oddsFromId)]={route:n.bnp.allOdds(s.id,t.oddsFromId),skipCheck:!e},t.fallbackProviderId&&(d["provider".concat(t.fallbackProviderId)]={route:n.bnp.allOdds(s.id,t.fallbackProviderId),skipCheck:!e})});let x=(0,c.A)(d,[s.id,e,r,null==t?void 0:t.length],{refreshInterval:(0,u.c)(s)?g:void 0}),h=(null!=t?t:[]).map(e=>x["provider".concat(e.oddsFromId)]||x["provider".concat(e.fallbackProviderId)]?1:0).reduce((e,t)=>e+t,0);return e&&h>=(null!=o?o:1)},v=()=>{let{event:e}=(0,l.useContext)(a.y$);return y((0,i.d4)(p.fq),(0,x.tV)(e.status.type===n.XUj.InProgress))},f=()=>{let{event:e}=(0,l.useContext)(a.y$);return y((0,i.d4)(p._I),(0,x.Qe)(e.status.type===n.XUj.InProgress))}},26201:(e,t,s)=>{s.d(t,{b:()=>S});var n=s(6029),r=s(51569),l=s(55729),i=s(947),a=s(18970),o=s(74664),d=s(90438),c=s(46787),u=s(73498),x=s(52466),h=s(11219),p=s(95084),m=s(11996);let g=[c.QCR.Tennis],j=(e,t,s)=>{if(t&&s)return c.cWY.seasonStatistics(e,t,s,c.Vw_.overall)},y=()=>{var e,t;let{event:s,leftTeam:n,rightTeam:r,location:i}=(0,l.useContext)(a.y$),o=null==(e=s.tournament.uniqueTournament)?void 0:e.id,d=null==(t=s.season)?void 0:t.id,{ltHasStats:u,ltHasGivenSeason:x,rtHasStats:h,rtHasGivenSeason:g}=(0,m.A)({ltHasStats:{route:c.cWY.statisticsSeasons(n.id)},ltHasGivenSeason:{route:j(n.id,o,d)},rtHasStats:{route:c.cWY.statisticsSeasons(r.id)},rtHasGivenSeason:{route:j(r.id,o,d)}},[s]);return{shouldShowAction:u&&h,getLinkQueryParams:()=>x&&g&&d&&o?{ids:"".concat(n.id,",").concat(r.id),s_ids:"".concat(d,",").concat(d),ut_ids:"".concat(o,",").concat(o)}:{ids:"".concat(n.id,",").concat(r.id)},logAnalyticsEvent:()=>(0,p.ke)({action:"click",location:"event_widget"===i?"event_widget":"event_details",type:"compare_teams"})}},v=e=>{let{isInDesktopHeader:t}=e,s=(0,i.A)(),l=(0,o.o)(),{shouldShowAction:a,getLinkQueryParams:d,logAnalyticsEvent:p}=y();return void 0===a&&t?(0,n.jsx)(r.D7,{disabled:!0,children:(0,n.jsx)(x.cSg,{style:{width:24,height:24}})}):a&&t?(0,n.jsx)(h.N_,{routeKey:"comparison",params:{sport:l,entityType:c.wNW.Team},query:d(),children:(0,n.jsx)(u.u,{onClick:p,label:s.formatMessage({id:"compare_players"}),children:(0,n.jsx)(x.cSg,{style:{width:24,height:24}})})}):null};var f=s(33144),b=s(20325),w=s(90248),k=s(46222);let _=e=>{let{event:t,leftTeam:s,rightTeam:l,isInDesktopHeader:a}=e,o=(0,i.A)(),{shouldShowAction:d,getLinkQueryParams:p,logAnalyticsEvent:m}=y(),g=t.tournament.category.sport.slug;return void 0===d?a?(0,n.jsx)(r.D7,{disabled:!0,children:(0,n.jsx)(x.l3$,{style:{width:24,height:24}})}):(0,n.jsx)(k.Zp,{children:(0,n.jsx)(b.az,{h:"4xl"})}):d?a?(0,n.jsx)(h.N_,{routeKey:"comparison",params:{sport:g,entityType:c.wNW.Team},query:p(),children:(0,n.jsx)(u.u,{onClick:m,label:o.formatMessage({id:"compare_teams"}),children:(0,n.jsx)(x.l3$,{style:{width:24,height:24}})})}):(0,n.jsx)(k.Zp,{children:(0,n.jsxs)(b.so,{px:"lg",py:"sm",justify:"space-between",align:"center",children:[(0,n.jsx)(f.p,{id:s.id,alt:s.name,size:"2xl"}),(0,n.jsx)(h.N_,{routeKey:"comparison",params:{sport:g,entityType:c.wNW.Team},query:p(),style:{width:"calc(100% - 64px - 32px)"},children:(0,n.jsxs)(r.$n,{textWrap:"wrap",w:"100%",size:"secondary",onClick:m,children:[(0,n.jsx)(w.A,{id:"compare_teams"})," ",(0,n.jsx)(x.l3$,{minW:"xl"})]})}),(0,n.jsx)(f.p,{id:l.id,alt:l.name,size:"2xl"})]})}):null},S=e=>{let{isInDesktopHeader:t}=e,s=(0,i.A)(),c=(0,l.useContext)(a.y$),u=(0,o.o)(),{shouldShowAction:x}=y();if(!c)throw Error("CompareTeamsContainer must be used within EventContext");if(!d.mz.includes(u)||!x)return null;let h=g.includes(u)?(0,n.jsx)(v,{isInDesktopHeader:t}):(0,n.jsx)(_,{...c,isInDesktopHeader:t});return t?(0,n.jsx)(r.m_,{content:s.formatMessage({id:g.includes(u)?"compare_players":"compare_teams"}),strategy:"hover",children:h}):h}},36824:(e,t,s)=>{s.d(t,{n:()=>n.A});var n=s(70465)},59777:(e,t,s)=>{s.d(t,{A:()=>l});var n=s(6029),r=s(94008);let l=e=>{let{venue:t,children:s,ref:l,...i}=e;return t&&!t.hidden&&t.country.slug?(0,n.jsx)(r.A,{...i,routeKey:"venue",params:{country:t.country.slug,slug:t.slug,id:t.id},ref:l,children:s}):(0,n.jsx)(n.Fragment,{children:s})}},64987:(e,t,s)=>{s.d(t,{A:()=>m});var n=s(6029),r=s(20325),l=s(82203),i=s.n(l),a=s(55729),o=s(494),d=s(18970),c=s(31830),u=s(22116),x=s(95084),h=s(18153),p=s(83373);let m=e=>{let{name:t,startDate:s,children:l,isClickable:m=!0}=e,{event:g}=(0,a.useContext)(d.y$),j=(0,c.A)(),y=(0,o.d4)(u.$F),v=!!(null==y?void 0:y.id),f=(0,o.wA)(),b=(0,p.oY)(g,j),w=(0,p.GY)(t,s,b);return m&&v?(0,n.jsx)(i(),{href:w,target:"_blank",onClick:()=>{(0,x.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},children:l}):(0,n.jsx)(r.az,{onClick:()=>{v||f((0,h.aS)()),(0,x.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},children:l})}},70465:(e,t,s)=>{s.d(t,{J:()=>I,A:()=>P});var n=s(6029),r=s(46787),l=s(22375),i=s(51569),a=s(20325),o=s(90248),d=s(90510),c=s(47125),u=s(46222),x=s(64287),h=s(55729),p=s(18970),m=s(52466),g=s(89827),j=s(61552);function y(e){let{score:t}=e;return(null==t?void 0:t.score)?(null==t?void 0:t.wickets)===void 0||(null==t?void 0:t.overs)===void 0?(0,n.jsx)(n.Fragment,{children:null==t?void 0:t.score}):(0,n.jsxs)(n.Fragment,{children:[(0,j.gj)(t)," (",(0,g.M)(null==t?void 0:t.overs,1),")"]}):null}function v(e){let{isBatting:t,score:s,isLeft:r,isLive:l}=e,o=(null==s?void 0:s.score)!==void 0||!l;return(0,n.jsxs)(a.so,{gap:"lg",h:"xl",align:"center",children:[!r&&l&&(t?(0,n.jsx)(m.BM3,{color:"status.live"}):(0,n.jsx)(m.Pvq,{color:"status.live"})),o&&(0,n.jsx)(i.EY,{color:l&&t?"status.live":"neutrals.nLv1",textStyle:"table.medium",display:"block",children:(0,n.jsx)(y,{score:s})}),r&&l&&(t?(0,n.jsx)(m.BM3,{color:"status.live"}):(0,n.jsx)(m.Pvq,{color:"status.live"}))]})}function f(e){let{messageId:t,value:s}=e;return void 0===s?null:(0,n.jsx)(i.EY,{h:"xl",textStyle:"table.medium",color:"neutrals.nLv3",display:"block",children:(0,n.jsx)(o.A,{id:t,values:{rate:s}})})}function b(){var e;let{event:t,leftTeam:s,leftScore:l,rightScore:i}=(0,h.useContext)(p.y$),o=t.status.type===r.XUj.InProgress,d=t.currentBattingTeamId?t.currentBattingTeamId===s.id?r.cxP.Left:r.cxP.Right:void 0,c=d===r.cxP.Left?l:d===r.cxP.Right?i:void 0,u=[...new Set([...Object.keys(l.innings||{}),...Object.keys(i.innings||{})])].sort();if(0===u.length)return null;let x=u[u.length-1],m=t.currentBattingTeamId===s.id;return(0,n.jsxs)(a.az,{px:"xs",children:[u.map(e=>{var s,o;let c=e===x&&d&&t.status.type===r.XUj.InProgress;return(0,n.jsxs)(a.so,{justify:"space-between",align:"center",children:[(0,n.jsx)(v,{score:null==(s=l.innings)?void 0:s[e],isLeft:!0,isLive:c,isBatting:c&&d===r.cxP.Left}),(0,n.jsx)(v,{score:null==(o=i.innings)?void 0:o[e],isLive:c,isBatting:c&&d===r.cxP.Right})]},e)}),c&&(null==(e=c.innings)?void 0:e[x])&&o&&(0,n.jsxs)(a.so,{direction:"column",align:m?"flex-start":"flex-end",children:[(0,n.jsx)(f,{messageId:"cricket_current_run_rate",value:c.innings[x].runRate}),(0,n.jsx)(f,{messageId:"cricket_target_run_rate",value:c.innings[x].targetRunRate})]})]})}var w=s(81484),k=s(90223),_=s(63561);let S=e=>{let{startTimestamp:t}=e;return(0,l.cK)((0,l.pp)(t))?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{id:"today"})," ",(0,n.jsx)(d.ib,{value:1e3*t})]}):(0,n.jsx)(d.XU,{value:1e3*t,day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric"})},C=e=>{let{event:t,isPowerGraph:s=!1}=e,{time:l,status:a,currentPeriodStartTimestamp:d}=t,c=a.type===r.XUj.InProgress;if((0,_.uk)(6e4,c),!l)return null;let u=0;for(let e in l)e.startsWith("period")&&(u+=l[e]);return(c&&d&&(u+=Math.round(Date.now()-1e3*d)/1e3),s&&c)?a.code>r.sum["1st set"]?(0,n.jsxs)(i.EY,{textTransform:"lowercase",textStyle:s?"display.small":"body.small",children:["(",(0,n.jsx)(o.A,{id:"total"}),": ",(0,_.jQ)(u),")"]}):null:u>0?c?(0,n.jsxs)(i.EY,{textTransform:"lowercase",textStyle:s?"display.small":"body.small",children:["(",(0,n.jsx)(o.A,{id:"total"}),": ",(0,_.jQ)(u),")"]}):(0,n.jsxs)(i.EY,{textStyle:s?"display.small":"body.small",color:s?void 0:"neutrals.nLv3",children:[" - ",(0,_.jQ)(u)]}):null},T=e=>{let{event:t}=e,s=t.tournament.category.sport.slug,l=(0,k.sw)(t),a=t.status.type===r.XUj.InProgress,d=s===r.QCR.Tennis,u=(0,_.Sw)(t),h=(0,_.vJ)(s),p=[];if(l)p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"status.error.default",children:(0,n.jsx)(w.fP,{id:(0,k.B_)(t),short:!0})},"specialStatusDescription"));else if(t.isAwarded)p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"status.error.default",children:(0,n.jsx)(o.A,{id:"awarded"})},"statusAwarded"));else if(d)a?(p.push((0,n.jsx)(C,{event:t},"tennisLiveTotalTime")),p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"secondary.default",ml:"xs",children:(0,n.jsx)(w.fP,{id:(0,k.B_)(t),short:!0})},"tennisLiveDescription"))):(p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(w.fP,{id:(0,k.B_)(t),short:!0})},"tennisFinishedDescription")),p.push((0,n.jsx)(C,{event:t},"tennisFinishedTotalTime")));else if(u)p.push((0,n.jsxs)(i.EY,{textStyle:"body.small",color:"secondary.default",children:[h&&(0,n.jsx)(o.A,{id:"time_left",values:{time:u}}),u]},"statusDescription"));else{let e=s===r.QCR.MMA&&t.status.code===r.sum.Ended;p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:a?"status.live":"neutrals.nLv3",children:(0,n.jsx)(w.fP,{id:(0,k.B_)(t),short:!e})},"statusDescription")),t.time&&t.time.currentPeriodStartTimestamp&&void 0!==t.time.initial&&t.status.type===r.XUj.InProgress&&!k.p2.includes(t.status.code)&&(0,_.c5)(t)!==r.QCR.Darts&&(p.push((0,n.jsx)(i.EY,{textStyle:"body.small",color:"secondary.default",mx:"2xs",children:"•"},"bullet")),s!==r.QCR.Darts&&p.push((0,n.jsxs)(i.EY,{textStyle:"body.small",color:"secondary.default",children:[(0,n.jsx)(x.lx,{time:t.time,status:t.status,currentPeriodStartTimestamp:t.currentPeriodStartTimestamp,hasMinuteBlinker:!0}),(0,n.jsx)(c.I,{})]},"progressTimer")))}return(0,n.jsx)(n.Fragment,{children:p})},I=e=>{let{event:t}=e,s=t.status.type===r.XUj.InProgress,l=t.currentPeriodStartTimestamp&&Math.round(Date.now()-1e3*t.currentPeriodStartTimestamp)/1e3,o=l&&(0,_.jQ)(l);return s?(0,n.jsxs)(a.so,{w:"100%",gap:"xs",align:"center",justifyContent:"center",children:[(0,n.jsxs)(i.EY,{textStyle:"display.small",color:"status.live",ml:"xs",children:[(0,n.jsx)(w.fP,{id:(0,k.B_)(t),short:!0})," - ",o]}),(0,n.jsx)(C,{event:t,isPowerGraph:!0},"tennisFinishedTotalTime")]}):(0,n.jsxs)(a.az,{children:[(0,n.jsx)(i.EY,{textStyle:"display.small",children:(0,n.jsx)(w.fP,{id:(0,k.B_)(t),short:!0})}),(0,n.jsx)(C,{event:t,isPowerGraph:!0},"tennisFinishedTotalTime")]})},P=e=>{let{event:t}=e,s=t.tournament.category.sport.slug===r.QCR.Cricket,l=t.status.type===r.XUj.NotStarted||t.status.type===r.XUj.Postponed||t.status.type===r.XUj.Canceled;return!l||t.note||s?(0,n.jsx)(a.az,{hideFrom:s||t.note?void 0:"md",children:(0,n.jsx)(u.Zp,{children:(0,n.jsxs)(a.BJ,{p:"sm",gap:"sm",children:[s?(0,n.jsx)(b,{}):l?null:(0,n.jsxs)(a.so,{hideFrom:"md",justify:"space-between",align:"center",p:"xs",children:[(0,n.jsx)(i.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(S,{startTimestamp:t.startTimestamp})}),(0,n.jsx)(i.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(T,{event:t})})]}),t.note&&(0,n.jsx)(i.EY,{textStyle:"body.small",children:t.note})]})})}):null}},83373:(e,t,s)=>{s.d(t,{GY:()=>i,oY:()=>a});var n=s(88715),r=s(79082);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=new Date(1e3*e);return s.setHours(s.getHours()+t),s.toISOString().replace(/-|:|\.\d+/g,"")},i=(e,t,s)=>{let n=new URLSearchParams({action:"TEMPLATE",text:e,dates:"".concat(l(t),"/").concat(l(t,2)),details:s});return"".concat("https://calendar.google.com/calendar/render","?").concat(n.toString())},a=(e,t)=>{let s=e.tournament.category.sport.slug;return"https://www.sofascore.com".concat(n.z.getTranslatedRoute(t,"event",{name:e.slug,id:e.customId,sport:s},(0,r.HL)({id:e.id})).route)}},97874:(e,t,s)=>{s.d(t,{Nd:()=>x,G6:()=>D,gs:()=>P});var n=s(6029),r=s(46787),l=s(51569),i=s(20325),a=s(55729),o=s(90248),d=s(46222),c=s(52466),u=s(82536);let x=e=>{let{event:t}=e,[s,x]=(0,a.useState)(!1),h=t.status.type===r.XUj.InProgress||t.status.type===r.XUj.Finished,p=void 0!==t.homeScore.display||void 0!==t.homeScore.current,m=void 0!==t.awayScore.display||void 0!==t.awayScore.current;return t.crowdsourcingDataDisplayEnabled&&h&&p&&m?(0,n.jsx)(d.Zp,{children:(0,n.jsxs)(i.so,{onClick:()=>x(e=>!e),py:"sm",px:"lg",align:"center",cursor:"pointer",children:[(0,n.jsx)(c.Mv5,{color:"status.crowdsourcingLive",w:24,h:24,mr:"lg"}),(0,n.jsx)(l.EY,{textStyle:"body.small",children:(0,n.jsx)(o.A,{id:"crowdsourcing_unofficial_result"})}),(0,n.jsx)(u.A,{isOpen:s,setIsOpen:x,children:(0,n.jsxs)(i.az,{px:"lg",maxW:{md:"[312px]"},children:[(0,n.jsx)(i.so,{w:"100%",justify:"center",align:"center",mt:{md:"lg"},children:(0,n.jsx)(i.az,{w:"5xl",h:"5xl",br:"50%",p:"md",bg:"status.crowdsourcingLiveHighlight",children:(0,n.jsx)(c.Mv5,{color:"status.crowdsourcingLive",w:32,h:32})})}),(0,n.jsx)(l.H3,{textStyle:"display.large",my:"lg",children:(0,n.jsx)(o.A,{id:"crowdsourcing_displaying_result_title"})}),(0,n.jsx)(l.EY,{textStyle:"body.mediumParagraph",children:(0,n.jsx)(o.A,{id:"crowdsourcing_displaying_result_info_text"})})]})})]})}):null};var h=s(59721),p=s(947),m=s(18970),g=s(73498),j=s(85658),y=s(36882),v=s(70251),f=s(11219),b=s(59777),w=s(1639),k=s(83359),_=s(82346),S=s(50099),C=s(9296),T=s(10404),I=s(75866);function P(e){let{disableFollow:t,isWide:s}=e,{event:r,leftTeam:l,rightTeam:i}=(0,a.useContext)(m.y$),o=r.tournament.category.sport.slug,d=!!l.subTeams&&2===l.subTeams.length,c=!I.Vh.includes(o);return(0,n.jsxs)(C.Y,{disableFollow:t,isWide:s,children:[(0,n.jsx)(f.gT,{sport:o,team:l,ignoreLink:d,children:(0,n.jsx)(T.u,{sport:o,team:l,seeding:r.homeTeamSeed,disableFollow:t,isWide:s})}),(0,n.jsx)(f.gT,{sport:o,team:i,ignoreLink:d,children:(0,n.jsx)(T.u,{sport:o,team:i,seeding:r.awayTeamSeed,disableFollow:t,isWide:s,isRight:c})})]})}var E=s(494),A=s(45860),Y=s(17794),O=s(72753);function L(e){let{channelIds:t,type:s,eventId:d}=e,u=t.length>1,x=t.length-1,[h,...p]=t,{data:m}=(0,A.Ay)(r.RMf.eventChannelVotes(h,s,d)),[g,j]=(0,a.useState)(!1);return m?(0,n.jsxs)(i.so,{align:"center",gap:"xs",px:"sm",children:[(0,n.jsxs)(i.so,{align:"center",gap:"xs",children:[(0,n.jsx)(c.ft6,{color:"neutrals.nLv3",w:16,h:16}),(0,n.jsx)(l.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:m.tvChannelVotes.tvChannel.name})]}),u&&(0,n.jsx)(l.AM,{controls:[g,j],closeOnOutsideClick:!0,trigger:(0,n.jsx)(Y.z,{count:x,onClick:()=>j(e=>!e)}),contentStyle:"custom",children:(0,n.jsx)(i.az,{w:"[200px]",position:"absolute",top:"xl",zIndex:"popover",insetEnd:"0",children:(0,n.jsxs)(i.so,{direction:"column",gap:"lg",elevation:"3",bg:"surface.sp",br:"sm",p:"lg",children:[(0,n.jsx)(l.EY,{textStyle:"display.small",children:(0,n.jsx)(o.A,{id:"tv_channels"})}),(0,n.jsx)(i.so,{direction:"column",gap:"lg",children:p.map(e=>(0,n.jsx)(Y.t,{channelId:e,type:s,eventId:d},e))})]})})})]}):null}function F(e){let{eventId:t,type:s}=e,l=(0,E.d4)(O.LQ),{data:i}=(0,A.Ay)(l?r.RMf.eventCountryChannels(s,t):null);if(!l||!i)return null;let a=i.countryChannels[l];return l in i.countryChannels&&(null==a?void 0:a.length)?(0,n.jsx)(L,{channelIds:a,type:s,eventId:t}):null}var W=s(64987),Q=s(26201);let D=()=>{let{event:e,leftTeam:t,rightTeam:s}=(0,a.useContext)(m.y$),o=(0,p.A)(),u=e.tournament.uniqueTournament,x=e.venue,C=e.status.type===r.XUj.NotStarted,T=C&&!!e.finalResultOnly;return(0,n.jsx)(d.Zp,{children:(0,n.jsxs)(i.az,{children:[(0,n.jsx)(i.so,{position:"absolute",top:"lg",right:"lg",gap:"lg",children:(0,n.jsxs)(j.hD,{children:[(0,n.jsx)(v.h,{id:e.id,type:y.b.Event,location:y.y.Header,tournament:e.tournament,leftTeam:t,rightTeam:s,menuPosition:"bottom",children:e=>{let{onClick:t,disabled:s,isFollowed:r,isOpen:i}=e;return(0,n.jsx)(l.m_,{content:o.formatMessage({id:"remove_from_favourites"}),strategy:"hover",disabled:!r||r&&i,children:(0,n.jsx)(g.u,{onClick:t,disabled:s,variant:r?"compact":"primary",label:o.formatMessage({id:"button_favourite"}),children:(0,n.jsx)(c.zQC,{icon:r?"follow-active":"follow-default"})})})}}),(0,n.jsx)(Q.b,{isInDesktopHeader:!0}),C&&!T&&(0,n.jsx)(l.m_,{content:o.formatMessage({id:"add_to_calendar"}),strategy:"hover",children:(0,n.jsx)(W.A,{name:"".concat(e.homeTeam.name," - ").concat(e.awayTeam.name),startDate:e.startTimestamp,isClickable:!0,children:(0,n.jsx)(g.u,{label:o.formatMessage({id:"add_to_calendar"}),children:(0,n.jsx)(c.E8x,{style:{width:24,height:24}})})})})]})}),(0,n.jsx)(i.az,{pt:"sm",children:(0,n.jsx)(P,{isWide:!0,disableFollow:!0})}),(0,n.jsxs)(i.so,{justify:"center",px:"lg",pb:"md",pt:"sm",children:[(0,n.jsx)(S.g,{isInDesktopHeader:!0}),u&&(0,n.jsx)(f.tQ,{tournament:u,children:(0,n.jsxs)(i.so,{gap:"xs",align:"center",_hover:{bg:"surface.s2"},px:"sm",py:"xs",br:"lg",children:[(0,n.jsx)(h.e,{id:u.id,size:"lg"}),(0,n.jsx)(l.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:(0,n.jsx)(_.O,{uniqueTournament:u})})]})}),(null==x?void 0:x.stadium.name)&&(0,n.jsx)(b.A,{venue:x,children:(0,n.jsxs)(i.so,{gap:"xs",align:"center",_hover:{bg:x.hidden?void 0:"surface.s2"},px:"sm",py:"xs",br:"lg",children:[(0,n.jsx)(c.LUw,{color:"neutrals.nLv3",w:"16px",h:"16px"}),(0,n.jsx)(l.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:x.stadium.name})]})}),e.groundType&&(0,n.jsxs)(i.so,{gap:"xs",align:"center",px:"sm",py:"xs",br:"lg",children:[(0,n.jsx)(w.l,{w:"lg",h:"lg",groundType:e.groundType}),(0,n.jsx)(l.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:(0,n.jsx)(k.n,{id:e.groundType})})]}),(0,n.jsx)(F,{eventId:e.id,type:r.IAy.Event})]})]})})};s(92397),s(52676)}}]);