!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]="bf9d7f9e-4f72-46d3-b02a-e491332ed50a",e._sentryDebugIdIdentifier="sentry-dbid-bf9d7f9e-4f72-46d3-b02a-e491332ed50a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16270],{5316:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(28349),a=n(78383),l=n.n(a),o=n(61836);function i(e){let{isMobile:t}=(0,r.$c)();return{logTabChange:t&&!e?o.yy:l()}}},8594:(e,t,n)=>{n.d(t,{M:()=>q});var r=n(6029),a=n(99064),l=n(13266),o=n(55729),i=n(21377),s=n(45860),u=n(59721),d=n(28349),c=n(76356),p=n(90248),m=n(46009),y=n(8973),g=n(52695);let h=e=>{let{all:t,live:n}=e;return(0,r.jsxs)(c.so,{shrink:0,children:[n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.EY,{textStyle:"body.small",color:"status.live",children:n}),(0,r.jsx)(d.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:"/"})]}),void 0!==t&&(0,r.jsx)(d.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:t})]})};var v=n(4967);let f=(e,t)=>{let{data:n}=(0,s.Ay)(i.ZXN.countByUniqueTournaments(e,(0,v.UG)(t),3600*(0,v.UW)())),{data:r}=(0,s.Ay)((0,v.cK)(t)?i.ZXN.liveCountByUniqueTournaments(e):null);return{totalCount:null==n?void 0:n.uniqueTournamentEventCount,liveCount:null==r?void 0:r.liveUniqueTournaments}},x=e=>{let{ut:t,totalCount:n,liveCount:a}=e;return(0,r.jsx)(l.tQ,{tournament:t,children:(0,r.jsxs)(c.so,{justify:"space-between",align:"center",cursor:"pointer",px:{base:"xl",md:"lg"},py:{base:"md",md:"sm"},_hover:{bg:"surface.s2"},gap:"sm",children:[(0,r.jsxs)(c.so,{gap:"lg",align:"center",style:{width:"calc(100% - 90px)"},children:[(0,r.jsx)(u.e,{id:t.id,name:t.name,size:24}),(0,r.jsx)(d.EY,{textStyle:"body.large",truncate:!0,children:(0,r.jsx)(g.O,{uniqueTournament:t})})]}),(0,r.jsxs)(c.so,{gap:"md",align:"center",children:[n&&a&&(0,r.jsx)(h,{all:null==n?void 0:n[t.id],live:null==a?void 0:a[t.id]}),(0,r.jsx)(m.e,{id:t.id,entity:i.bq7.Tournaments,location:y.y.MainLeagues,type:y.b.UniqueTournament})]})]},t.id)})},b=e=>{let{category:t,utGroups:n,date:a}=e,{totalCount:o,liveCount:i}=f(t.id,a),s=Array.from(new Map(n.flatMap(e=>e.uniqueTournaments).map(e=>[e.id,e])).values());return(0,r.jsxs)(c.so,{direction:"column",bg:"surface.s2",children:[s.map(e=>(0,r.jsx)(x,{ut:e,totalCount:o,liveCount:i},e.id)),(0,r.jsx)(l.Z6,{category:t,children:(0,r.jsx)(c.az,{px:{base:"[64px]",sm:"[56px]"},py:{base:"md",md:"md"},_hover:{bg:"surface.s2"},children:(0,r.jsx)(d.EY,{textStyle:"body.large",children:(0,r.jsx)(p.A,{id:"basic.all"})})})})]})},j=e=>{let{category:t,onAsyncComplete:n,date:a,updateContentHeight:l}=e,{data:u}=(0,s.Ay)(i.ZXN.uniqueTournaments(t.id),{onSuccess:e=>n(e.groups)});return((0,o.useEffect)(()=>{null==l||l()},[u]),u)?(0,r.jsx)(b,{category:t,date:a,utGroups:u.groups}):null},C=(0,o.memo)(e=>{let{opened:t,category:n,date:a,updateContentHeight:l}=e,i=(0,o.useRef)(void 0);return i.current?(0,r.jsx)(b,{category:n,utGroups:i.current,date:a}):t?(0,r.jsx)(j,{category:n,date:a,updateContentHeight:l,onAsyncComplete:e=>{i.current=e}}):null},(e,t)=>e.opened===t.opened);var _=n(8329),w=n(54409),T=n(98449);let M=e=>{let{opened:t,category:n,eventsCount:a,toggleAccordion:l}=e;return(0,r.jsxs)(c.so,{cursor:"pointer",w:"100%",align:"center",justify:"space-between",gap:"md",border:"none",onClick:l,py:"md",px:{base:"xl",md:"lg"},bg:{md:t?"primary.highlight":"surface.s1",_hover:t?"primary.highlight":"surface.s2"},br:{mdDown:"sm"},children:[(0,r.jsxs)(c.so,{justify:"space-between",align:"center",gap:"sm",grow:1,children:[(0,r.jsxs)(c.so,{gap:"lg",align:"center",children:[(0,r.jsx)(_.w,{alpha2:n.alpha2,name:n.name,categoryId:n.id,size:24,loading:"lazy"}),(0,r.jsx)(d.EY,{textStyle:"body.large",children:(0,r.jsx)(T.m,{slug:n.slug,name:n.name})})]}),(0,r.jsx)(h,{all:null==a?void 0:a.all,live:null==a?void 0:a.live})]}),(0,r.jsx)(c.az,{w:"xl",h:"xl",flexShrink:0,children:(0,r.jsx)(w.zQC,{icon:"chevron-down",fill:t?"primary.default":"onSurface.nLv3",style:{transition:"0.2s all",transform:"rotate(".concat(180*!!t,"deg)")}})})]})},A=e=>{1!==e.button&&e.preventDefault()},D=e=>{let{category:t,date:n,eventsCount:o}=e;return(0,r.jsxs)(a.nD.Item,{br:["sm",0],bg:["surface.s1",void 0],elevation:[2,void 0],children:[(0,r.jsx)(l.Z6,{category:t,onClick:A,children:(0,r.jsx)(a.nD.Trigger,{children:e=>{let{opened:n,toggleAccordion:a}=e;return(0,r.jsx)(M,{opened:n,category:t,eventsCount:o,toggleAccordion:a})}})}),(0,r.jsx)(a.nD.Content,{children:e=>{let{opened:a,updateContentHeight:l}=e;return(0,r.jsx)(C,{opened:a||!1,category:t,date:n,updateContentHeight:l})}})]})},E=(e,t)=>{let{data:n}=(0,s.Ay)(i.t3g.categoriesByDate(e,(0,v.UG)(t))),{data:r}=(0,s.Ay)((0,v.cK)(t)?i.t3g.liveCategoryEvents(e):null);return function(e,t){if(!e)return;let n=e.categories,r=null==t?void 0:t.liveCategories,a={};return n.forEach(e=>{let t=e.category.id;a[t]={all:e.totalEvents,live:r?r[t]:void 0}}),a}(n,r)},q=e=>{let{sport:t,date:n,categories:l}=e,o=E(t,n);return(0,r.jsx)(a.nD,{children:l.map(e=>(0,r.jsx)(D,{category:e,date:n,eventsCount:null==o?void 0:o[e.id]},e.id))})}},31324:(e,t,n)=>{n.d(t,{X:()=>r});function r(e,t,n){let r=[...e];return r.sort((e,r)=>{if(n&&(e.alpha2===n||r.alpha2===n)&&e.alpha2!==r.alpha2){if(e.alpha2===n)return -1;if(r.alpha2===n)return 1}if((e.priority||r.priority)&&e.priority!==r.priority){var a,l;return(null!=(a=r.priority)?a:0)-(null!=(l=e.priority)?l:0)}try{return e.name.localeCompare(r.name,t)}catch(t){return e.name.localeCompare(r.name)}}),r}},31799:(e,t,n)=>{n.d(t,{Ay:()=>a,it:()=>i,uD:()=>s,w9:()=>l,wV:()=>o});var r=n(21377);let a={desktop:{width:360},mobile:{width:"100%",topSpace:0,adSpace:62,bottomNavSpace:56}},l={[r.QCR.Tennis]:"top_players",[r.QCR.TableTennis]:"top_players",[r.QCR.Darts]:"top_players",[r.QCR.Badminton]:"top_players",[r.QCR.Motorsport]:"top_drivers",[r.QCR.MMA]:"top_fighters",[r.QCR.Cycling]:"top_riders",default:"top_teams"},o={default:"top_players"},i={[r.QCR.Motorsport]:"top_series",[r.QCR.MMA]:"top_organisations",default:"top_leagues"},s={[r.QCR.Motorsport]:"all_series",[r.QCR.MMA]:"all_organisations",default:"all_competitions"}},38296:(e,t,n)=>{n.d(t,{C:()=>y.C,A:()=>m});var r=n(6029),a=n(28349),l=n(99064),o=n(78383),i=n.n(o),s=n(55729),u=n(90248),d=n(12047),c=n(5316);let p=(e,t)=>{let n=(0,s.useState)(e);return t||n};function m(e){let{id:t,location:n,initialTabKey:o,onChange:m=i(),tabs:y,children:g,customControls:h,noSportMenu:v,eventStatusType:f,seasonId:x,disableAnalytics:b}=e,{isMobile:j}=(0,a.$c)(),[C,_]=p(o,h),{logTabChange:w}=(0,c.A)(b),T=(0,d.Ay)({isSportMenuVisible:!v,isInMobileTabs:!1});return(0,s.useEffect)(()=>{C!==o&&_(o)},[t,n,x]),(0,r.jsxs)(l.tU,{onChange:e=>{C!==e&&(_(e),m(e),j&&window.scrollTo({left:0,top:0}))},initialValue:o||C,value:C,variant:"primary",fullWidthTabs:!0,children:[(0,r.jsx)(a.PI,{top:T,isStickingDisabled:!j,verticalAlign:"top",mdDown:{bg:"surface.s1",borderBottom:"1px solid",borderColor:"elevation.elevation1"},children:(0,r.jsx)(l.tU.List,{underline:!0,scroll:!0,children:y.filter(e=>!e.isHidden).map(e=>(0,r.jsx)(l.tU.Tab,{tabKey:e.tabKey,style:{marginLeft:0},as:"h2",onClick:r=>r.nativeEvent.isTrusted&&e.tabKey!==C?w({type:e.tabKey,id:t,location:n,status:f}):void 0,children:(0,r.jsx)("a",{href:"#tab:".concat(e.tabKey),onClick:e=>e.preventDefault(),style:{color:"inherit"},children:"string"==typeof e.item?(0,r.jsx)(u.A,{id:e.item,values:e.values}):e.item})},"".concat(t,"-").concat(e.tabKey)))})}),g]},t)}var y=n(58047)},57569:(e,t,n)=>{n.d(t,{Ul:()=>i,pT:()=>o}),n(21377);var r=n(21985),a=n.n(r),l=n(55938);let o=(e,t)=>e.map(e=>{var n,r,o,i,s,u,d,c;let p=e.rowName||"";return p+=" ",(null==(n=e.uniqueTournament)?void 0:n.category.slug)&&(p+=e.uniqueTournament.category.slug+" "),(null==(r=e.uniqueTournament)?void 0:r.name)&&(p+=e.uniqueTournament.name+" "),(null==(o=e.team)?void 0:o.name)&&(p+=e.team.name+" ",p+=t.formatMessage({id:e.team.slug})+" "),(null==(i=e.team)?void 0:i.country.name)&&(p+=t.formatMessage({id:e.team.country.name})+" "),(null==(s=e.team)?void 0:s.country.alpha2)&&(p+=t.formatMessage({id:(0,l.K_)(e.team.country.alpha2)})+" "),(null==(u=e.country)?void 0:u.alpha2)&&(p+=t.formatMessage({id:(0,l.K_)(e.country.alpha2)})+" "),(null==(c=e.uniqueTournament)||null==(d=c.country)?void 0:d.alpha2)&&(p+=t.formatMessage({id:(0,l.K_)(e.uniqueTournament.country.alpha2)})+" "),p+" "+a()(p)}),i=e=>{switch(e){case"rugby-union":return"Rugby Union";case"utr-men":return"utr_men";case"utr-women":return"utr_women";default:return e.toUpperCase()}}}}]);