PageSourceSearch

https://www.tennisboard.com/_next/static/chunks/pages/index-bbaf8389dc6a7415.js

js tennisboard.com collected 2026-10-02 18:18:34 UTC 62,692 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{75557:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(17158)}])},71518:function(e,t,n){"use strict";var a=n(85893),c=n(25675),s=n.n(c);let r=e=>{let{src:t,height:n,width:c,alt:r,placeholder:l,priority:i,className:o,id:u,role:d,noPreffix:h,itemProp:m}=e,p=t&&(t.includes("https://dcjiq3n10rn3u.cloudfront.net")||h)?t:"".concat("https://dcjiq3n10rn3u.cloudfront.net").concat(t);return(0,a.jsx)(s(),{src:p,alt:r||"",placeholder:!!l&&l,loader:e=>e.src,priority:!!i,className:o||"",id:u||null,...d?{role:d}:{},...n&&c?{height:n,width:c}:{fill:!0},...m?{itemProp:m}:{}})};t.Z=r},93788:function(e,t,n){"use strict";var a=n(85893),c=n(67294),s=n(47981),r=n(83055);let l=()=>(0,a.jsx)("div",{className:"container topBanner__wrap",children:(0,a.jsxs)("div",{className:"topBanner",children:[(0,a.jsxs)("span",{className:"topBanner__title",children:["Tennis Board",(0,a.jsxs)("span",{className:"topBanner__extra",children:[(0,a.jsx)("span",{className:"topBanner__extra-dark",children:"Claim your"})," Open Account Offer"]})]}),(0,a.jsx)("span",{className:"topBanner__description",children:"see more at Tennis Board.com for latest offers and details. Geo-variations and T&Cs apply. 18+ gamblingtherapy.org"})]})}),i=()=>{let{staticBookmakers:e}=(0,c.useContext)(s.I),[t,n]=(0,c.useState)(null),[i,o]=(0,c.useState)(null);return((0,c.useEffect)(()=>(!e.loading&&(null==e?void 0:e.data)&&e.data.find((e,t)=>{!t&&(null==e?void 0:e.horizontalBanner)&&(n(e.horizontalBanner),o((0,r.p)(e)))}),()=>{}),[e]),t||e.loading)?(0,a.jsx)("div",{className:"container topBanner__wrap",children:(0,a.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",className:"topBanner image",children:(0,a.jsx)("img",{src:t})})}):(0,a.jsx)(l,{})};t.Z=i},83055:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var a=n(85893),c=n(80302),s=n(71518),r=n(67294),l=n(47981),i=n(74654);let o=()=>(0,a.jsx)("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M4.5 0.5C2.2892 0.5 0.5 2.289 0.5 4.5C0.5 6.71077 2.289 8.5 4.5 8.5C6.7108 8.5 8.5 6.711 8.5 4.5C8.5 2.28923 6.711 0.5 4.5 0.5ZM4.91077 6.08783C4.91077 6.2142 4.72648 6.34055 4.50008 6.34055C4.26314 6.34055 4.09467 6.2142 4.09467 6.08783V4.08178C4.09467 3.93436 4.26316 3.8343 4.50008 3.8343C4.72648 3.8343 4.91077 3.93436 4.91077 4.08178V6.08783ZM4.50009 3.34994C4.25789 3.34994 4.06836 3.17092 4.06836 2.97083C4.06836 2.77075 4.25791 2.597 4.50009 2.597C4.73703 2.597 4.92659 2.77075 4.92659 2.97083C4.92659 3.17092 4.73702 3.34994 4.50009 3.34994Z",fill:"#238662"})}),u=e=>(null==e?void 0:e.id)?(0,i.S0)(e.id):"",d=e=>{let{data:t,index:n}=e;return(0,a.jsxs)("a",{target:"_blank",rel:"noreferrer nofollow",href:u(t),className:"top__bookmakers-item",children:[(0,a.jsxs)("span",{className:"top__bookmakers-item-num",children:[n+1,"."]}),(0,a.jsx)("span",{className:"top__bookmakers-item-image",children:(0,a.jsx)(s.Z,{src:null==t?void 0:t.logo,width:50,height:50,alt:"",noPreffix:!0})}),(0,a.jsx)("span",{className:"top__bookmakers-item-title",children:null==t?void 0:t.name}),(0,a.jsxs)("span",{className:"top__bookmakers-item-rating",children:[(null==t?void 0:t.expertRating)||0,"/5 ",(0,a.jsx)(o,{})]})]})},h=()=>{let{staticBookmakers:e}=(0,r.useContext)(l.I),[t,n]=(0,r.useState)(null);if((0,r.useEffect)(()=>((null==e?void 0:e.data)&&n(e.data.slice(0,10)),()=>{}),[e]),t)return(0,a.jsxs)("section",{className:"top__bookmakers",children:[(0,a.jsx)(c.Z,{text:"Top bookmakers"}),(0,a.jsx)("div",{className:"top__bookmakers-wrap",children:t.map((e,t)=>(0,a.jsx)(d,{data:e,index:t},null==e?void 0:e.logo))})]})};t.Z=h},42317:function(e,t,n){"use strict";var a=n(85893),c=n(94865),s=n(41664),r=n.n(s),l=n(71518);let i={name:"Tennisboard",url:"".concat("https://www.tennisboard.com","/")},o=e=>{let{breadcrumbsCount:t,children:n,crumb:c,index:s}=e;return s!==t&&(null==c?void 0:c.url)?(0,a.jsx)(r(),{href:c.url,children:n}):(0,a.jsx)("span",{children:n})},u=e=>{let{breadcrumbs:t,loading:n}=e,s=(null==t?void 0:t.length)-1;if(t&&!n)return(0,a.jsxs)("span",{className:"header__breadcrumbs",children:[(0,a.jsx)(r(),{href:i.url,children:i.name}),t.map((e,t)=>(0,a.jsx)(o,{index:t,breadcrumbsCount:s,crumb:e,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Z,{alt:"arrow",width:3,height:6,src:c.icons.ARROW_GRAY_ICON}),e.name]})},null==e?void 0:e.url))]})},d=e=>{let{title:t,breadcrumbs:n,description:c,subTitle:s,breadcrumbsLoading:r}=e;return(0,a.jsxs)("header",{className:"header",children:[(0,a.jsx)(u,{breadcrumbs:n,loading:r}),(0,a.jsxs)("h1",{className:"header__title",children:[t,s?(0,a.jsx)("span",{children:s}):null]}),c?(0,a.jsx)("span",{className:"header__description",children:c}):null]})};t.Z=d},80302:function(e,t,n){"use strict";var a=n(85893);let c=e=>{let{text:t}=e;return(0,a.jsx)("h2",{className:"header-common",children:t})};t.Z=c},13445:function(e,t,n){"use strict";var a=n(85893),c=n(67294),s=n(94184),r=n.n(s),l=n(71518),i=n(11489),o=n(47375),u=n(31195);let d=e=>{let{winner:t}=e;return(0,a.jsxs)("span",{className:"matches__letters score__letters",children:[(0,a.jsx)(u.x1,{winner:t,player:"A"}),(0,a.jsx)(u.x1,{winner:t,player:"B"})]})},h=e=>{let{playerScore:t,teamResult:n,open:c,live:s,win:l,hide:i,highlightAllResults:o}=e,u=null==n?void 0:n.length,d=[...Array((u<=3?3:5)-u)].map(()=>({type:"null",num:"-"})),h=s&&u<5?n.concat(d):n;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:r()("score__extra",{"score__extra-open":c||!i}),children:h.slice(0,5).map((e,t)=>(0,a.jsxs)("span",{className:r()(" ",{}),children:[e.num,(null==e?void 0:e.tiebreak)?(0,a.jsx)("sup",{children:e.tiebreak}):""]},"result__stroke-".concat(e,"-").concat(t)))}),s?(0,a.jsx)("span",{className:r()("score__result",{"score__result-win":s}),children:(0,a.jsx)("span",{children:t.toString()})}
1):null,s?null:(0,a.jsx)("span",{className:r()("score__result",{"score__result-win":l||o}),children:(0,a.jsx)("span",{children:t.toString()})})]})},m=e=>{let{match:t,hide:n,style:s,live:u,onlyResult:m,highlightAllResults:p,winLetters:g,showBetModal:v}=e,[f,x]=(0,c.useState)(!1),{teamAResults:_,teamBResults:w,winner:j}=t,y=e=>"A"===e?_:w,N=e=>{let t=y(e)||{};return Object.entries(t).filter(e=>e[0].includes("set")).map(e=>({name:e[0],num:e[1],tiebreak:t["tiebreak".concat(e[0].slice(3))],set:e[0].slice(3)}))},S=(e,t)=>{let n=e=>{if(e.num===t[e.name]){if(e.tiebreak>=6&&e.tiebreak>t["tiebreak".concat(e.set)])return"w";if(e.tiebreak<6&&e.tiebreak<=t["tiebreak".concat(e.set)])return"l"}return e.num>=6&&e.num>t[e.name]?"w":"l"};return e.map(e=>({...e,type:n(e)})).filter(e=>e.num||0===e.num)},E=N("A"),b=N("B"),R=S(E,w),A=S(b,_),T=e=>{var t;return(null===(t=null==e?void 0:e.filter(e=>"w"===e.type))||void 0===t?void 0:t.length)||0},C=T(R),D=T(A),F=(0,o.yB)(t.odds);if(m)return(0,a.jsxs)("span",{className:"score__onlyresult",children:[(0,a.jsx)("span",{className:"score__onlyresult-result",children:C}),(0,a.jsx)("span",{className:"score__hyphen",children:" - "}),(0,a.jsx)("span",{className:"score__onlyresult-result",children:D})]});let O=(null==R?void 0:R.length)||(null==A?void 0:A.length),P=()=>{n&&O&&x(!0)},k=()=>n?x(!1):()=>{};return(0,a.jsx)("span",{className:s,onMouseEnter:P,onMouseLeave:k,children:(0,a.jsxs)("span",{className:r()("score__wrap",{"score__wrap-open":f}),children:[n&&O?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"score__arrow",children:(0,a.jsx)(l.Z,{src:"/static/arrow.svg",width:5,height:10,alt:"icon",role:f?"opened":"closed"})})}):null,f&&g?(0,a.jsx)(d,{winner:j}):null,f&&F?(0,a.jsx)(i.Oj,{odds:F,className:"matches__playersRates matches__playersRates-score",showModal:v}):null,(0,a.jsxs)("span",{className:"score__strokeWrap",children:[(0,a.jsx)("span",{className:"score__stroke",children:(0,a.jsx)(h,{playerScore:C,numOfStroke:0,team:"A",teamResult:R,open:f,live:u,win:"A"===j,hide:n,highlightAllResults:p})}),(0,a.jsx)("span",{className:"score__stroke",children:(0,a.jsx)(h,{playerScore:D,numOfStroke:1,team:"B",teamResult:A,open:f,live:u,win:"B"===j,hide:n,highlightAllResults:p})})]})]})})};t.Z=(0,c.memo)(m)},26646:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var a=n(85893),c=n(67294),s=n(11163),r=n(9008),l=n.n(r),i=n(76030),o=n(74654),u=n(71518);let d=[{href:"/headtohead",name:"Head-to-head"},{href:"/online-casinos",name:"Online Casinos"},{href:"/betting-sites",name:"Betting Sites"},{href:"/contact",name:"Contact us"},{href:"/terms-of-use",name:"Terms of use"},{href:"/privacy-policy",name:"Privacy policy"},{href:"/map",name:"Sitemap"}],h=[{href:"#",name:"Gambling Help",img:"gamblingHelp",width:115,height:20},{href:"#",name:"Gam Stop",img:"gamblingStop",width:64,height:12},{href:"#",name:"Gambling Therapy",img:"gamblingTherapy",width:38,height:14},{href:"#",name:"BeGambleAware",img:"beGambleAware",width:85,height:30}],m=()=>(0,a.jsx)("footer",{className:"footer",children:(0,a.jsxs)("span",{className:"footer__wrap container",children:[(0,a.jsxs)("span",{className:"footer__logoWrap",children:[(0,a.jsx)("p",{className:"footer__logo",children:"Tennis Board"}),(0,a.jsxs)("p",{className:"footer__logo-text",children:["\xa9 2021-",new Date().getFullYear()," Tennis Board"]})]}),(0,a.jsx)("span",{className:"footer__links",children:(0,a.jsx)("span",{className:"footer__linksWrap",children:d.map(e=>(0,a.jsx)(o.mc,{prefetch:!1,href:e.href,children:e.name},e.href))})}),(0,a.jsx)("span",{className:"footer__descriptionWrap",children:(0,a.jsx)("span",{className:"footer__logos",children:h.map(e=>(0,a.jsx)("span",{href:e.href,className:"footer__logos-logo",children:(0,a.jsx)(u.Z,{alt:e.name,src:"/static/logos/".concat(e.img,".svg")})},e.name))})})]})});var p=(0,c.memo)(m),g=n(47981),v=n(94865);let f=(0,c.lazy)(()=>Promise.all([n.e(778),n.e(7936),n.e(9114),n.e(4921)]).then(n.bind(n,18901)),{}),x=(0,c.lazy)(()=>n.e(4304).then(n.bind(n,4304))),_=e=>{let{children:t,navbar:n,footer:r,title:u,metaDescription:d,canonical:h,onePageBreadcrumblist:m,twitterCard:_,image:w,noTitleSuffix:j}=e,y=(0,s.useRouter)(),N=v.internalPictures.LOGO,{hhModal:S,setHhModal:E,predictionModal:b,setPreictionModal:R}=(0,c.useContext)(g.I),A=()=>E({show:!1}),T=()=>R({show:!1});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsx)(l(),{children:(0,a.jsx)("title",{children:u?j?u:"".concat(u," | TennisBoard"):""})}),d&&(0,a.jsx)(l(),{children:(0,a.jsx)("meta",{name:"description",content:(0,o.io)(d)})}),h&&(0,a.jsx)(l(),{children:(0,a.jsx)("link",{rel:"canonical",href:"".concat("https://www.tennisboard.com").concat(y.asPath)})}),_&&(0,a.jsxs)(l(),{children:[(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:site",content:"@Tennis_Board"}),(0,a.jsx)("meta",{name:"twitter:title",content:j?u:"".concat(u," | TennisBoard")}),d?(0,a.jsx)("meta",{name:"twitter:description",content:d}):null,(0,a.jsx)("meta",{name:"twitter:image",content:w||N})]}),m?(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",name:"Breadcrumbs",itemListElement:[{"@type":"ListItem",position:1,name:"Tennisboard.com",item:"https://www.tennisboard.com"},{"@type":"ListItem",position:2,name:u}]})}}):null]}),(0,a.jsxs)(l(),{children:[(0,a.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}
1),(0,a.jsx)("link",{rel:"preconnect",href:"https://tennisboard.s3.eu-central-1.amazonaws.com"}),(0,a.jsx)("link",{rel:"alternate",hrefLang:"en-au",href:"".concat("https://www.tennisboard.com").concat(y.asPath)})]}),n&&(0,a.jsx)(i.Z,{}),(null==b?void 0:b.show)?(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(a.Fragment,{}),children:(0,a.jsx)(x,{show:null==b?void 0:b.show,onHide:T,predictionDto:null==b?void 0:b.predictionDto})}):null,(null==S?void 0:S.show)?(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(a.Fragment,{}),children:(0,a.jsx)(f,{show:null==S?void 0:S.show,onHide:A})}):null,(0,a.jsx)("main",{children:t}),r&&(0,a.jsx)(p,{})]})};var w=_},94457:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var a=n(85893),c=n(31195),s=n(11489),r=n(67294),l=n(14266),i=n(6049),o=n(13445),u=n(71518),d=n(47375);let h=(0,r.lazy)(()=>n.e(1432).then(n.bind(n,91432))),m=e=>{let[t,n]=(0,r.useState)(!1),c=()=>{var t,n,a,c,s;return(null===(t=e.teamAResults)||void 0===t?void 0:t.set5)?5:(null===(n=e.teamAResults)||void 0===n?void 0:n.set4)?4:(null===(a=e.teamAResults)||void 0===a?void 0:a.set3)?3:(null===(c=e.teamAResults)||void 0===c?void 0:c.set2)?2:(null===(s=e.teamAResults)||void 0===s?void 0:s.set1)?1:1},m=(0,d.yB)(e.odds),p=()=>n(!0),g=()=>n(!1);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("tr",{className:"matches__results matches__results-live",children:[t&&(0,a.jsx)(r.Suspense,{fallback:(0,a.jsx)(a.Fragment,{}),children:(0,a.jsx)(h,{show:t,onHide:g,teamAPlayer1:e.teamAPlayer1,teamAPlayer2:e.teamAPlayer2,teamBPlayer1:e.teamBPlayer1,teamBPlayer2:e.teamBPlayer2,gender:e.gender,type:e.type,odds:e.odds})}),(0,a.jsx)("td",{children:(0,a.jsx)(i.Z,{gender:e.gender,match:e.id,type:"match",tourId:e.tourId,className:"matches__theadWrapFav"})}),(0,a.jsx)("td",{children:(0,a.jsxs)("span",{className:"matches__liveStatusWrap",children:[(0,a.jsxs)("span",{className:"matches__liveStatus matches__liveStatus-live",children:[(0,a.jsx)(u.Z,{src:"/static/live-red.svg",width:8,height:8,alt:"live"}),(0,a.jsx)("p",{children:"Live"})]}),c()?(0,a.jsx)("span",{className:"matches__liveStatus matches__liveStatus-set",children:"Set ".concat(c())}):null]})}),(0,a.jsx)("td",{className:"matches__playersWrapper",children:(0,a.jsx)(l.ZB,{match:e,style:"matches__players",shortNames:!0})}),(0,a.jsx)("td",{children:(null==m?void 0:m.k1)||(null==m?void 0:m.k2)?(0,a.jsx)(s.Oj,{showModal:p,odds:m,className:"matches__playersRates matches__playersRates-live",oddsLoading:null==e?void 0:e.oddsLoading}):null}),(0,a.jsx)("td",{children:(0,a.jsx)(o.Z,{match:e,type:"win",mrg:"false",single:"false",style:"score",hide:!0,showOdds:!0,live:!0,showBetModal:p})})]})})};m.whyDidYouRender=!0;let p=e=>"FINISHED"===e.status||"CANCELLED"===e.status||"INTERRUPTED"===e.status?(0,a.jsx)(c.ZP,{match:e,tourId:e.tourId,isDesktop:e.isDesktop,isPredictionMatch:null==e?void 0:e.isPredictionMatch}):(null==e?void 0:e.status)==="NOTSTARTED"?(0,a.jsx)(s.ZP,{...e},e.id):"INPROGRESS"===e.status?(0,a.jsx)(m,{...e}):void 0;var g=p},84266:function(e,t,n){"use strict";n.d(t,{h:function(){return p},Z:function(){return v}});var a=n(85893),c=n(67294),s=n(26383),r=n(94184),l=n.n(r),i=n(21723),o=n(94457),u=n(74654),d=n(67732),h=n(2612);let m=e=>{let{tour:t,index:n,playerMainUrl:r,currentTab:l,gender:m,matchType:g,date:v,setDate:f,setLiveMatchesIds:x,matchesUpdates:_}=e,[w,j]=(0,c.useState)(null),[y,N]=(0,c.useState)(!0),[S,E]=(0,c.useState)(0===n),[b,R]=(0,c.useState)();(0,c.useEffect)(()=>{0!==n||S||E(!0)},[n,b]);let[A,T]=(0,c.useState)([]),[C,D]=(0,c.useState)(0),[F,O]=(0,c.useState)(),P=()=>{switch(l){case"Next games":case"Live":return i.dr;case"Results":case"All":return"".concat(v,"T00:00:00.000Z");default:return null}},k=()=>{switch(l){case"Next games":default:return null;case"Results":case"All":return"".concat(v,"T23:59:00.999Z")}},L=e=>e.filter(e=>"INPROGRESS"===e.status).map(e=>e.id),I="Results"===l,M="Live"===l,Z="All"===l;(0,c.useEffect)(()=>(S&&(0,i.h_)(l,0,Z?10:20,P(),k(),t.id,r||null,null,m,g).then(e=>{if(e.ok)return e.json()}).then(e=>{let t=e.data,n=(0,d.aq)(t),a=(0,i.cd)(t);if((!M||M)&&(j(t),N(!1),R(e.count)),n&&!I&&(T(n),n&&n.length>2&&D(1),n&&n.length<2&&D(0)),(I||M||Z)&&(T([v]),D(0)),a&&O(a),x(e=>[...e,...L(t)]),"All"===l||M||"Next games"===l){let n=()=>{M&&(N(!1),R(e.count))};(0,d.gY)(t,j,M,n)}}).catch(e=>{}),()=>{}),[S,m,g]),(0,c.useEffect)(()=>{w&&_&&(null==_?void 0:_.length)&&j(e=>[...e.reduce((e,t)=>
1{let n=_.find(e=>e.id===t.id);return n?[...e,{...n,odds:(null==t?void 0:t.odds)||[]}]:[...e,t]},[])])},[_]);let U=A?A.length:0,B=()=>{I||Z?f((0,i.Cv)(v)):C>0?D(C-1):D(U-1)},W=()=>{I||Z?(I&&new Date((0,i.Ro)(v))<new Date(i.dr)&&f((0,i.Ro)(v)),Z&&new Date((0,i.Ro)(v))<=new Date((0,i.Ro)(i.dr))&&f((0,i.Ro)(v))):C>=0&&C<U-1?D(C+1):D(0)},z=(0,c.useCallback)(()=>I||M||Z?w:w?w.filter(e=>A&&"all"!==A[C]?(0,u.Ov)(e.startDateTime)===(0,u.Ov)(A[C]):e):[],[l,C,w,_]),G=()=>"all"===A[C]?"All Dates":(0,u._3)(A[C],!1,!0),Y=e=>{let t=A.findIndex(t=>t===e);I||Z?f(e):D(t)},H=z();return(0,a.jsxs)("table",{role:S?"opened":"closed",children:[(0,a.jsx)(h.Z,{tour:t,roundList:F,open:S,setOpen:E,dateArray:A,currentDateIndex:C,paginateDateDown:B,paginateDateUp:W,getDateOrAll:G,league:null==t?void 0:t.leagueCms,onChangeDate:Y,currentTab:l}),(0,a.jsx)("tbody",{id:t.id,children:S?(0,a.jsx)(a.Fragment,{children:y?(0,a.jsx)(s.xC,{length:3}):(0,a.jsx)(a.Fragment,{children:H&&H.length?H.map(e=>(0,a.jsx)(o.Z,{...e,dateFilter:A[C],tourId:t.id},e.id)):(0,a.jsx)(p,{})})}):null})]},"".concat(t.id,"-").concat(b))},p=e=>{let{padding:t}=e;return(0,a.jsx)("p",{className:l()("matches__empty",{"matches__empty-padding":t}),children:"No data at the moment"})},g=e=>{let{category:t,gender:n,currentTab:r}=e,[l,o]=(0,c.useState)({data:[],count:null,loading:!0}),u=t.includes("single")||t.includes("double")?{type:"matchType",value:t.includes("single")?"SINGLE":"DOUBLE"}:null,d=i.cQ,[h,g]=(0,c.useState)(d),v=e=>"".concat(e,"T00:00:00.000Z"),f=()=>{switch(r){case"Next games":return["NOTSTARTED"];case"Results":return["FINISHED","CANCELLED","INTERRUPTED"];case"Live":return["INPROGRESS"];default:return["FINISHED","CANCELLED","INTERRUPTED","INPROGRESS","NOTSTARTED"]}},x=[{type:"matchStartDate",value:v(h),operator:"GREATER_OR_EQUAL"},{type:"matchStartDate",value:"".concat(h,"T23:59:00.999Z"),operator:"LESS_OR_EQUAL"}],_=[{type:"matchStartDate",value:i.dr,operator:"GREATER_OR_EQUAL"}],w=[{type:"matchStartDate",value:v(h),operator:"GREATER_OR_EQUAL"}],j=()=>{switch(r){case"Next games":return _;case"Results":case"All":return x;case"Live":return w;default:return[]}},y=e=>new Date(e.getTime()-864e5).toISOString().slice(0,10),[N,S]=(0,c.useState)(1),E="Results"===r;(0,c.useEffect)(()=>{let e="".concat("https://www.tennisboard.com","/v2/api/rest/tournament?page=").concat(0,"&pageSize=").concat(20);o(e=>({...e,loading:!0})),fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filters:[...j(),{type:"matchStatus",values:f()},n?{type:"gender",values:[n]}:null,u].filter(e=>e),order:{field:"START_DATE",direction:"ASC_NULLS_LAST"}})}).then(e=>{if(e.ok)return e.json()}).then(e=>{var t;if(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.length)o(t=>({...t,loading:!1,count:e.count,data:e.data})),E&&S(4);else if(E&&N<4)g(y(new Date(h))),S(N+1);else throw Error}).catch(()=>{o({data:[],count:null,loading:!1})})},[t,r,h]);let[b,R]=(0,c.useState)(0),[A,T]=(0,c.useState)([]),[C,D]=(0,c.useState)();return((0,c.useEffect)(()=>{A&&(null==A?void 0:A.length)&&setTimeout(()=>(0,i.h_)(r,0,50,null,null,null,null,null,null,u,A).then(e=>{if(e.ok)return e.json()}).then(e=>{(null==e?void 0:e.data)&&(D(e.data),R(b+1))}),7e3)},[A,b]),(0,c.useEffect)(()=>(T([]),()=>{}),[r]),l.loading)?(0,a.jsx)(s.ZP,{length:6}):(0,a.jsxs)("div",{id:"matches",className:"matches",children:[l.data?l.data.map((e,c)=>(0,a.jsx)(m,{tour:e,index:c,curDate:h,gender:n,matchType:t.includes("single")?"SINGLE":t.includes("double")?"DOUBLE":null,currentTab:r,date:h,setDate:g,setLiveMatchesIds:T,matchesUpdates:C},e.id)):null,l.data.length<=0?(0,a.jsx)(p,{}):null]},r)};var v=g;g.whyDidYouRender=!1},2612:function(e,t,n){"use strict";var a=n(85893),c=n(67294),s=n(94184),r=n.n(s),l=n(6049),i=n(71518),o=n(21723),u=n(41664),d=n.n(u),h=n(94865);let m=(0,c.lazy)(()=>Promise.all([n.e(9715),n.e(5755)]).then(n.bind(n,67195))),p=e=>{var t,n,s;let{tour:u,league:p,roundList:g,open:v,setOpen:f,dateArray:x,paginateDateDown:_,paginateDateUp:w,getDateOrAll:j,onChangeDate:y,currentDateIndex:N,currentTab:S}=e,E=null==u?void 0:null===(t=u.league)||void 0===t?void 0:t.gender,[b,R]=(0,c.useState)(!1),A=e=>{let{id:t}=e.target;"clickable"!==t&&(f(!v),R(!1))},T=()=>{R(!b)},C="Results"===S,D="All"===S;return(0,a.jsxs)("thead",{className:"matches__thead",children:[(0,a.jsx)("tr",{onClick:A,children:(0,a.jsx)("th",{colSpan:"5",children:(0,a.jsxs)("span",{className:"matches__theadWrap",children:[(0,a.jsx)(l.Z,{gender:E,tour:u.id,type:"tournament",className:"matches__theadWrapFav"}),(0,a.jsxs)("span",{className:"matches__theadWrap-title",children:[(0,a.jsx)(d(),{id:"clickable",prefetch:!1,href:(0,o.Cm)((null==u?void 0:null===(n=u.cms)||void 0===n?void 0:n.mainUrl)||u.mainUrl,(null==p?void 0:p.mainUrl)||(null==p?void 0:null===(s=p.cms)||void 0===s?void 0:s.mainUrl)),children:u.name||u.stageName}),(0,a.jsxs)("span",{children:[" ",v&&g?g.join(", "):null]})]}),(0,a.jsx)("span",{className:r()("",{matches__theadWrapCalendar:v&&x}),children:x&&x.length&&v?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",id:"clickable",className:r()("matches__theadWrapCalendar-button",{hide:x.length<=1&&!C&&!D}),onClick:_,children:(0,a.jsx)(i.Z,{src:h.icons.ARROW_GRAY_ICON,alt:"icon",width:4,height:8,id:"clickable"})}),(0,a.jsxs)("button",{type:"button",onClick:T,className:"matches__theadWrapCalendar-txt",id:"clickable",children:[(0,a.jsx)("span",{className:"matches__theadWrapCalendar-img",id:"clickable",children:(0,a.jsx)(i.Z,{src:h.icons.CALENDAR_ICON,alt:"icon",width:9,height:9,id:"clickable"})}),j()]}),(0,a.jsx)("button",{type:"button",className:r()("matches__theadWrapCalendar-buttonRight",{hide:x.length<=1&&!C&&!D}),onClick:w,id:u.id,children:(0,a.jsx)(i.Z,{src:h.icons.ARROW_GRAY_ICON,alt:"icon",width:4,height:8,id:"clickable"})})]}):null}),(0,a.jsx)("button",{onClick:A,className:r()("matches__theadWrapDropdown",{"matches__theadWrapDropdown-opened":!v}),children:(0,a.jsx)(i.Z,{src:v?h.icons.ARROW_GREEN_ICON:h.icons.ARROW_GRAY_ICON,alt:"icon",width:12,height:6})})]})})}),b?(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(a.Fragment,{}),children:(0,a.jsx)(m,{isOpen:!0,value:"all"===x[N]?null:new Date(x[N]),setIsOpen:R,dateRange:C||D?[]:x,onChange:y,currentTab:S})}):null]})};t.Z=p},26383:function(e,t,n){"use strict";n.d(t,{xC:function(){return l}});var a=n(85893),c=n(74654),s=n(94865),r=n(84849);let l=e=>{let{length:t,tourType:n}=e,c="single"===n?[1]:[...Array(t)].map((e,t)=>t+1);return(0,a.jsx)(r.y,{...s.skeletonTheme,children:c.map(e=>(0,a.jsxs)("tr",{className:"matches__upcoming",children:[(0,a.jsx)("td",{children:(0,a.jsx)(r.Z,{})}),(0,a.jsx)("td",{children:(0,a.jsx)(r.Z,{})}),(0,a.jsx)("td",{className:"matches__playersWrapper",children:(0,a.jsxs)("span",{className:"matches__players",children:[(0,a.jsx)(r.Z,{}),(0,a.jsx)(r.Z,{})]})}),(0,a.jsx)("td",{}),(0,a.jsxs)("td",{className:"matches__upcomingButtonWrapper",children:[(0,a.jsx)(r.Z,{}),(0,a.jsx)(r.Z,{})]})]},"matches-skeleton-item-".concat(e)))})},i=e=>{let{tourType:t,length:n,matchesLength:i,showAllMatches:o}=e,u="single"===t?[1]:(0,c.So)(n);return(0,a.jsx)(r.y,{...s.skeletonTheme,children:(0,a.jsx)("div",{className:"matches",children:u.map((e,n)=>(0,a.jsxs)("table",{children:["one"!==t?(0,a.jsx)("thead",{className:"matches__thead",children:(0,a.jsx)("tr",{children:(0,a.jsx)("th",{colSpan:"5",children:(0,a.jsxs)("span",{className:"matches__theadWrap",children:[(0,a.jsx)("span",{children:(0,a.jsx)(r.Z,{})}),(0,a.jsx)("span",{className:"matches__theadWrap-title",children:(0,a.jsx)(r.Z,{width:100})}),(0,a.jsx)("span",{className:"matches__theadWrapCalendar",children:(0,a.jsx)(r.Z,{})}),(0,a.jsx)("button",{className:"matches__theadWrapDropdown-rotated",children:(0,a.jsx)(r.Z,{})})]})})})}):null,(0,a.jsx)("tbody",{children:0===n||o?(0,a.jsx)(l,{length:i||3,tourType:t}):null})]},"upcoming-skeleton-".concat(e)))})})};t.ZP=i},31195:function(e,t,n){"use strict";n.d(t,{x1:function(){return m}});var a=n(85893),c=n(94184),s=n.n(c),r=n(14266),l=n(13445),i=n(6049),o=n(11489),u=n(67294);let d=(e,t)=>t===e?"W":"L",h=e=>e?"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1).toLowerCase()):"Finished",m=e=>{let{winner:t,player:n}=e;return(0,a.jsx)("span",{className:s()("",{"matches__letters-win":t===n,"matches__letters-loose":t!==n}),children:d(t,n)})},p=e=>{let{match:t,tourId:n,isPredictionMatch:c}=e;return(0,a.jsxs)("tr",{className:s()("matches__results",{"matches__results-pred":c}),children:[(0,a.jsx)("td",{children:(0,a.jsx)(i.Z,{gender:t.gender,match:t.id,type:"match",tourId:n,className:"matches__theadWrapFav"})}
1),(0,a.jsx)("td",{children:c?(0,a.jsx)(o.FH,{startDateTime:t.startDateTime}):(0,a.jsx)("span",{className:"matches__resultsStatus",children:(0,a.jsx)("p",{children:h(t.status)})})}),(0,a.jsx)("td",{className:"matches__playersWrapper",children:(0,a.jsx)(r.ZB,{match:t,style:"matches__players",shortNames:!0})}),(0,a.jsxs)("td",{className:s()("",{matches__letters:c,"matches__letters-unactive":!c}),children:[(0,a.jsx)(m,{winner:null==t?void 0:t.winner,player:"A"}),(0,a.jsx)(m,{winner:null==t?void 0:t.winner,player:"B"})]}),(0,a.jsx)("td",{children:(0,a.jsx)(l.Z,{match:t,type:"win",mrg:"false",single:"false",style:"score",hide:!0})})]})};t.ZP=(0,u.memo)(p)},76030:function(e,t,n){"use strict";n.d(t,{R:function(){return g},Z:function(){return f}});var a=n(85893),c=n(67294),s=n(11163),r=n(94184),l=n.n(r),i=n(74654),o=n(71518),u=n(47981),d=n(94865);let h=()=>(0,a.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",xmlSpace:"preserve",viewBox:"91.06 118.99 1173.28 573.15",children:(0,a.jsx)("g",{id:"RAh9MB.tif",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M1264.34,533.08c-0.65,1.29-1.31,2.59-1.96,3.88c-4.17,8.31-10.85,12.84-20.2,12.87                 c-24.9,0.08-49.8,0.03-74.7,0.03c-0.93,0-1.85,0-3.1,0c-0.07-1.13-0.19-2.12-0.19-3.11c-0.01-49.8,0.01-99.6-0.07-149.4                 c0-2.67,0.87-3.28,3.36-3.27c24.34,0.08,48.68,0.03,73.02,0.06c11.82,0.01,18.67,4.78,23,15.82c0.16,0.41,0.54,0.73,0.82,1.09                 C1264.34,451.73,1264.34,492.4,1264.34,533.08z M1201.9,514.47c6.92,0,13.43,0.02,19.94-0.01c3.17-0.01,4.27-0.99,4.28-4.13                 c0.03-25.53,0.03-51.07,0-76.6c0-3.19-1.07-4.19-4.2-4.2c-5.59-0.03-11.19,0.1-16.77-0.06c-2.48-0.07-3.32,0.52-3.31,3.21                 c0.11,26.18,0.07,52.37,0.07,78.55C1201.9,512.15,1201.9,513.07,1201.9,514.47z"}),(0,a.jsx)("path",{className:"st1",fill:"#238662",d:"M364.45,153.58c-2.04,2.04-3.92,1.35-5.78,0.72c-9.73-3.29-19.51-6.56-29.8-7.39                 c-12.45-1-24.92-1.91-37.4-2.16c-17.13-0.34-34.08,1.78-50.66,6.18c-21.07,5.6-40.77,14.17-58.33,27.34                 c-10.89,8.17-20.36,17.7-28.65,28.49c-11.6,15.1-20.08,31.75-25.16,50.11c-5.56,20.09-7.71,40.48-4.74,61.19                 c2.16,15.08,5.63,29.92,11.85,43.87c3.97,8.91,8.5,17.66,13.65,25.94c10.53,16.93,23.46,31.98,37.91,45.72                 c14.63,13.91,30.47,26.22,47.5,37.11c16.45,10.52,33.66,19.52,51.59,27.17c18.53,7.91,37.5,14.55,57.25,18.71                 c11.38,2.4,22.76,4.94,34.24,6.76c18.85,2.98,37.85,3.85,56.79,0.81c8.8-1.41,17.68-2.99,26.14-5.68                 c18.84-5.98,35.48-15.72,48.91-30.63c8.53-9.48,15.12-20.18,19.85-31.84c3.09-7.62,4.66-15.89,6.59-23.94                 c1.56-6.51,2.63-13.14,3.98-19.7c0.56-2.74,2.08-3.36,5.05-3.23c8.47,0.39,16.97,0.2,25.45,0.06c3.48-0.06,4.55,0.54,5.92,3.77                 c3.95,9.33,8.04,18.6,12,27.92c2.69,6.34,5.1,12.81,7.92,19.09c4.03,9,8.05,18.02,12.54,26.79c7.3,14.25,15.05,28.27,24.83,41.01                 c8.11,10.55,16.32,21.05,24.98,31.14c7.09,8.26,14.74,16.05,22.47,23.73c6.74,6.69,13.76,13.13,20.97,19.32                 c13.08,11.22,26.2,22.41,39.65,33.18c12.14,9.72,24.66,18.98,37.19,28.2c11.62,8.56,23.47,16.79,35.19,25.21                 c0.82,0.59,1.36,1.56,2.03,2.35c-1.02,0.43-2.05,1.25-3.07,1.24c-12.59-0.02-25.17-0.16-37.76-0.25                 c-12.87-0.09-25.75-0.23-38.62-0.19c-2.89,0.01-5.16-0.76-7.37-2.62c-10.55-8.88-21.02-17.86-31.86-26.38                 c-10.17-8-20.6-15.71-31.23-23.08c-11.25-7.8-22.69-15.36-34.39-22.45c-13.54-8.21-27.6-15.46-42.04-22.04                 c-13-5.92-26.43-10.53-39.9-15.17c-21.06-7.26-42.83-11.29-64.65-15.16c-8.62-1.53-17.27-2.86-25.95-3.97                 c-4.4-0.56-8.92-0.16-13.33-0.66c-13.88-1.57-27.73-3.34-41.59-5.05c-7.77-0.96-15.57-1.7-23.28-3.01                 c-11.02-1.86-22-3.99-32.93-6.29c-8.93-1.88-17.97-3.56-26.6-6.44c-15-4.99-29.89-10.43-44.51-16.45                 c-11.6-4.77-22.82-10.5-34.05-16.12c-27.14-13.58-52.16-30.27-74.47-50.98c-15.24-14.15-28.79-29.71-40.72-46.71                 c-7.34-10.45-13.45-21.59-19.05-33.12c-6.62-13.64-10.72-27.96-14.05-42.59c-4.31-18.93-4.82-38.11-2.6-57.29                 c1.66-14.33,4.44-28.5
15,9.85-41.98c2.97-7.38,7.02-14.34,10.76-21.39c12.17-22.97,29.08-41.89,49.88-57.32                 c15.14-11.23,31.75-19.61,49.64-25.73c21.61-7.4,43.81-10.76,66.5-10.71c23.71,0.06,45.64,6.59,65.26,20.19                 c5.98,4.15,11.91,8.36,17.86,12.55C362.83,152.26,363.52,152.85,364.45,153.58z M621.91,571.54                 c-26.52-36.8-45.59-76.84-56.47-120.81c-0.77,0.68-1.21,1.21-1.29,1.78c-1.37,10.21-5.54,19.43-10.02,28.55                 c-4.15,8.46-8.88,16.47-14.9,23.83c-10.25,12.53-22.42,22.5-36.76,29.92c-0.97,0.5-1.7,1.47-2.54,2.21                 c0.08,0.25,0.15,0.51,0.23,0.76C542.78,541.43,582.34,555.95,621.91,571.54z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M652.55,297.03c-0.09,0.76-0.25,1.52-0.25,2.29c0,23.97,0.01,47.95,0.02,71.92c0,4.02,0,4.02-4,4.02                 c-11.57,0-23.13-0.07-34.7,0.05c-2.7,0.03-3.57-0.87-3.57-3.55c0.05-55.04,0.05-110.07,0-165.11c0-2.54,0.76-3.38,3.36-3.34                 c8.49,0.15,16.98,0.13,25.46,0.01c2.11-0.03,3.17,0.76,4.03,2.59c11.75,24.91,23.56,49.8,35.36,74.69                 c0.11,0.23,0.33,0.41,0.94,1.12c0.13-1.33,0.28-2.17,0.28-3c0-23.88-0.01-47.76-0.01-71.64c0-3.7,0.01-3.71,3.68-3.71                 c11.85,0,23.69,0.06,35.54-0.05c2.39-0.02,3.26,0.62,3.26,3.13c-0.06,55.13-0.06,110.26-0.01,165.39c0,2.5-0.75,3.49-3.36,3.46                 c-8.49-0.12-16.98-0.11-25.47,0c-2.09,0.03-3.24-0.74-4.1-2.57c-10.27-21.81-20.58-43.59-30.89-65.38                 c-1.65-3.48-3.32-6.95-4.97-10.42C652.95,296.97,652.75,297,652.55,297.03z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M550.72,281.51c0.09-1.07,0.22-1.86,0.22-2.65c0-23.98,0.02-47.95-0.09-71.93c-0.01-2.82,0.78-3.66,3.63-3.63                 c11.85,0.16,23.7,0.14,35.54,0.01c2.6-0.03,3.35,0.79,3.35,3.34c-0.06,55.04-0.06,110.08,0,165.12c0,2.71-0.93,3.57-3.58,3.53                 c-8.3-0.12-16.61-0.14-24.91,0.01c-2.47,0.05-3.64-0.92-4.63-3.04c-11.68-24.84-23.44-49.65-35.19-74.47                 c-0.15-0.31-0.37-0.59-1.05-1.67c-0.14,1.65-0.28,2.48-0.28,3.32c0,23.98,0.01,47.95,0.01,71.93c0,3.86,0,3.87-3.88,3.87                 c-11.57,0-23.14,0.01-34.7,0c-3.4,0-3.61-0.22-3.61-3.68c0-54.95,0.01-109.9-0.04-164.84c0-2.43,0.55-3.48,3.27-3.42                 c8.49,0.17,16.98,0.14,25.47,0.01c2.25-0.03,3.27,0.87,4.18,2.79c11.79,24.99,23.66,49.95,35.52,74.91                 C549.99,281.09,550.1,281.12,550.72,281.51z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M852.21,203.38c10.82,0,21.64-0.04,32.46,0.01c10.41,0.05,19.56,6.92,22.42,16.96                 c0.72,2.54,1.13,5.25,1.16,7.9c0.13,9.98-0.02,19.96,0.11,29.94c0.03,2.25-0.73,2.93-2.86,2.92c-12.31-0.05-24.62-0.05-36.94,0                 c-2.02,0.01-2.85-0.7-2.78-2.78c0.11-3.91,0.06-7.83,0.02-11.75c-0.03-2.95-1.3-4.31-4.24-4.34c-6.16-0.06-12.31-0.07-18.47,0                 c-3.26,0.04-4.61,1.42-4.64,4.62c-0.05,3.92,0.03,7.84-0.01,11.75c-0.04,3.45,1.4,5.93,4.61,7.26                 c9.27,3.86,18.56,7.68,27.84,11.52c9.36,3.88,18.75,7.7,28.07,11.69c6.38,2.74,9.15,8.12,9.23,14.7                 c0.2,16.04,0.15,32.08,0.09,48.13c-0.04,9.51-7.96,19.7-17.21,22.15c-2.76,0.73-5.68,1.18-8.53,1.2                 c-20.24,0.1-40.48,0.11-60.72,0.03c-12.72-0.05-21.8-7.16-24.99-19.42c-0.42-1.6-0.55-3.32-0.56-4.98                 c-0.05-10.54,0.03-21.08-0.08-31.62c-0.03-2.46,0.84-3.28,3.23-3.26c11.94,0.07,23.88,0.07,35.82,0c2.44-0.01,3.3,0.96,3.23,3.35                 c-0.12,4.1-0.07,8.21-0.02,12.31c0.04,3.17,1.23,4.44,4.42,4.47c6.34,0.07,12.69,0.07,19.03,0c2.69-0.03,3.88-1.31,3.9-4.04                 c0.05-5.5-0.05-11.01,0.04-16.51c0.05-3.02-1.3-4.9-4.03-6.01c-12.84-5.21-25.67-10.44-38.5-15.69                 c-5.68-2.32-11.36-4.66-17.01-7.05c-6.43-2.71-9.85-7.75-9.94-14.57c-0.21-15.57-0.3-31.16,0-46.73                 c0.23-11.87,10.96-22.03,22.84-22.14C830.2,203.3,841.21,203.39,852.21,203.38C852.21,203.38,852.21,203.38,852.21,203.38z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M358.09,288.99c0-27.24,0-54.48,0-81.72c0-3.89,0-3.9,3.77-3.9c34.14,0,68.29,0,102.43,0                 c3.93,0,3.94,0.01,3.94,3.82c0,10.45,0.01,20.9,0,31.34c0,3.37-0.27,3.65-3.69,3.66c-20.43,0.01-40.86,0.06-61.29-0.06                 c-2.79-0.02-3.44,0.86-3.39,3.49c0.15,8.58,0.14,17.16,0,25.74c-0.04,2.5,0.78,3.17,3.21,3.15c12.97-0.11,25.93-0.05,38.9-0.05                 c3.79,0,3.98,0.2,3.98,3.91c0,7.09,0.01,14.18,0,21.27c0,3.51-0.16,3.67-3.59,3.67c-13.15,0.01-26.31,0.05-39.46-0.04                 c-2.23-0.01-3.08,0.5-3.04,2.94c0.15,8.95,0.14,17.91,0.01,26.86c-0.04,2.5,0.77,3.13,3.2,3.12c20.34-0.09,40.67-0.06,61.01-0.05                 c4,0,4.15,0.16,4.16,4.03c0,10.35,0,20.71,0,31.06c0,3.77-0.25,4.04-3.91,4.04c-34.24,0.01-68.47,0.01-102.71,0                 c-3.34,0-3.53-0.21-3.53-3.75C358.09,344.03,358.09,316.51,358.09,288.99z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M690,549.7c0-1.35,0-2.37,0-3.39c0-49.53,0.02-99.06-0.06-148.59c-0.01-2.79,0.66-3.66,3.53-3.65                 c24.25,0.11,48.51,0.03,72.76,0.09c9.78,0.02,17.07,4.34,21.02,13.38c1.19,2.73,1.73,5.94,1.78,8.94                 c0.2,10.91,0.12,21.83,0.07,32.74c-0.05,10.23-6.39,18.6-16.24,21.64c-0.25,0.08-0.46,0.26-0.98,0.58                 c2.42,0.94,4.72,1.58,6.79,2.67c8.13,4.24,12.51,10.9,12.51,20.21c0,10.45-0.07,20.9,0.02,31.34                 c0.
109,11.39-5.39,20.01-17.56,23.92c-0.95,0.31-2.03,0.27-3.05,0.27c-26.12,0.02-52.24,0.02-78.35,0.02                 C691.61,549.86,690.98,549.77,690,549.7z M727.78,459.01c7.5,0,14.56,0.07,21.62-0.05c2.04-0.03,3.16-1.5,3.17-3.55                 c0.03-7.45,0.03-14.9,0.01-22.35c-0.01-2.23-1.15-3.51-3.41-3.53c-6.52-0.04-13.04-0.05-19.55,0.05                 c-0.62,0.01-1.75,0.91-1.75,1.41C727.75,440.2,727.78,449.41,727.78,459.01z M728.02,514.47c6.89,0,13.66,0.02,20.43-0.01                 c3.04-0.02,4.12-1.15,4.13-4.3c0.03-6.98,0.03-13.97,0-20.95c-0.01-3.22-0.97-4.22-4.13-4.24c-6.05-0.04-12.11,0.05-18.16-0.05                 c-1.92-0.03-2.57,0.51-2.55,2.51c0.11,8.29,0.04,16.58,0.05,24.86C727.8,512.91,727.92,513.54,728.02,514.47z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M1086.33,549.87c-6.25,0-12.02,0-17.78,0c-5.78,0-11.57-0.07-17.35,0.04c-1.97,0.04-2.76-0.64-2.58-2.56                 c0.04-0.46,0.01-0.93,0.01-1.4c0-49.24,0-98.49,0-147.73c0-4.08,0-4.09,4.18-4.09c24.81,0,49.62-0.04,74.42,0.04                 c9.9,0.03,17.56,5.44,20.91,14.74c0.87,2.4,1.22,5.11,1.23,7.67c0.09,22.66,0.1,45.33,0.03,67.99c-0.03,9.92-6,18.29-15.31,21.54                 c-2.23,0.78-2.16,1.76-1.29,3.52c6.03,12.17,12.01,24.37,18,36.57c1.46,2.97,0.99,3.67-2.39,3.67c-10.73,0-21.45-0.11-32.18,0.08                 c-2.8,0.05-4.11-0.95-5.17-3.39c-5.35-12.38-10.84-24.71-16.29-37.05c-0.81-1.83-6.6-3.24-7.95-1.8c-0.51,0.54-0.49,1.71-0.49,2.6                 c-0.03,11.94-0.02,23.88-0.02,35.81C1086.33,547.23,1086.33,548.33,1086.33,549.87z M1086.32,450.24c0,6.24,0,12.48,0,18.72                 c0,1.28,0.01,2.49,1.81,2.48c6.52-0.03,13.04,0.02,19.56-0.09c2.29-0.04,3.47-1.34,3.46-3.8c-0.06-11.36-0.01-22.73-0.04-34.09                 c-0.01-2.83-1.08-3.9-3.87-3.92c-6.15-0.04-12.3,0.05-18.44-0.05c-2-0.03-2.54,0.68-2.5,2.6                 C1086.39,438.13,1086.32,444.19,1086.32,450.24z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M802.12,471.68c0-18.19-0.02-36.38,0-54.58c0.01-13.52,9.21-22.87,22.78-22.94                 c18.66-0.1,37.32-0.1,55.97,0.01c13.41,0.08,22.62,9.43,22.62,22.8c0.02,36.66-0.04,73.33,0.04,109.99                 c0.02,10.2-5.99,19.25-17.66,22.65c-1.39,0.41-2.96,0.25-4.45,0.25c-18.94,0.01-37.88-0.18-56.81,0.08                 c-12.18,0.16-22.69-10.68-22.56-22.56C802.27,508.82,802.12,490.25,802.12,471.68z M839.84,471.76c0,12.49,0,24.98,0,37.47                 c0,4.64,0.58,5.23,5.09,5.23c5.13,0.01,10.25,0.01,15.38,0c4.07-0.01,4.9-0.81,4.91-4.91c0.02-9.88,0.01-19.76,0-29.64                 c0-15.19,0.01-30.39-0.01-45.58c0-3.97-0.85-4.8-4.72-4.81c-5.31-0.01-10.63-0.01-15.94,0c-3.99,0.01-4.71,0.73-4.71,4.77                 C839.83,446.78,839.84,459.27,839.84,471.76z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M907.99,549.58c0.64-2.34,1.17-4.55,1.85-6.71c5.78-18.37,11.58-36.74,17.39-55.1                 c5.7-18.01,11.42-36.01,17.11-54.03c3.76-11.89,7.53-23.77,11.16-35.7c0.84-2.77,1.95-4.06,5.18-3.97                 c9.41,0.27,18.84,0.17,28.25,0.05c2.5-0.03,3.71,0.58,4.54,3.22c8.36,26.73,16.93,53.39,25.39,80.09                 c7.31,23.06,14.55,46.14,21.81,69.22c0.9,2.85,0.62,3.2-2.45,3.21c-10.91,0.01-21.82-0.06-32.73,0.06                 c-2.2,0.03-3.26-0.82-3.8-2.73c-2.08-7.34-4.25-14.66-6.2-22.04c-0.69-2.59-1.68-3.8-4.68-3.74c-11,0.21-22.01,0.14-33.01,0.04                 c-2.29-0.02-3.17,0.71-3.71,3.01c-1.81,7.7-3.93,15.33-5.95,22.98c-0.37,1.39-0.83,2.48-2.75,2.46                 c-11.84-0.09-23.69-0.04-35.53-0.06C909.4,549.85,908.95,549.73,907.99,549.58z M975.36,453.13c-0.34-0.03-0.69-0.06-1.03-0.09                 c-3.92,13.95-7.84,27.9-11.9,42.35c1.47,0,2.36,0,3.26,0c5.68,0,11.37,0,17.05,0c4.01,0,4.12-0.18,3.03-4.12                 c-1.93-6.99-3.79-14.01-5.7-21C978.52,464.55,976.94,458.84,975.36,453.13z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M311.47,308.62c0,20.9,0,41.79,0,62.69c0,3.94,0,3.95-3.8,3.95c-11.47,0-22.95,0-34.42,0                 c-3.92,0-4-0.09-4-4.14c0-41.61,0-83.21,0-124.82c0-4.1,0-4.1-4.15-4.1c-8.96,0-17.91-0.07-26.87,0.05                 c-2.57,0.03-3.64-0.62-3.61-3.43c0.14-10.82,0.11-21.64,0.02-32.46c-0.02-2.28,0.63-3.03,3-3.03c35.17,0.07,70.34,0.07,105.51,0                 c2.4,0,3.05,0.86,3.04,3.08c-0.06,10.91-0.07,21.83,0,32.74c0.01,2.31-0.89,3.11-3.15,3.09c-9.23-0.08-18.47-0.03-27.71-0.03                 c-3.87,0-3.87,0-3.87,4.01C311.47,267.02,311.47,287.82,311.47,308.62z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M782.04,289.25c0,27.41,0,54.83,0,82.24c0,3.75-0.01,3.76-3.63,3.77c-11.56,0.01-23.13-0.07-34.69,0.06                 c-2.72,0.03-3.55-0.88-3.55-3.54c0.05-55.01,0.06-110.03-0.01-165.04c0-2.76,0.9-3.45,3.54-3.42c11.75,0.13,23.5,0.13,35.25,0                 c2.48-0.03,3.14,0.69,3.13,3.13C782.02,234.05,782.04,261.65,782.04,289.25z"}),(0,a.jsx)("path",{className:"st0",fill:"#FFFFFF",d:"M500.43,476.07c-1.54,1.51-3.01,3.11-4.65,4.51c-10.99,9.39-23.74,15.46-37.2,20.5                 c-17.51,6.56-35.64,8.86-54.14,9.9c-12.72,0.72-25.33-0.01-37.9-1.51c-8.68-1.03-17.4-2.16-25.89-4.15                 c-9.32-2.19-18.43-5.31-27.56-8.23c-6.37-2.04-12.73-4.19-18.92-6.7c-6.2-2.51-12.33-5.28-18.26-8.39                 c-12.43-6.52-24.81-13.15-37.01-20.1c-5.31-3.03-10.17-6.88-15.13-10.5c-12.58-9.2-24.52-19.22-34.9-30.83                 c-8.6-9.63-16.73-19.73-24.43-30.09c-4.3-5.78-7.34-12.5-10.88-18.83c-6.09-10.88-9.61-22.74-13.26-34.57                 c-6.19-20.04-6.57-40.52-3.71-60.93c2.2-15.68,6.6-31.11,14.7-44.89c5.4-9.18,11.36-18.2,19.28-25.57                 c7.55-7.03,14.9-14.37,23.09-20.57c6.93-5.24,14.78-9.35,22.53-13.35c5.5-2.84,11.52-4.69,17.32-6.95c0.7-0.27,1.5-0.31,2.25-0.45                 c0.15,0.3,0.3,0.61,0.44,0.91c-1.29,0.87-2.55,1.8-3.88,2.61c-6.58,4.01-13.42,7.65-19.73,12.05                 c-15.23,10.64-28.5,23.51-39.33,38.55c-10.27,14.26-18.22,29.69-21.45,47.41c-2.19,12.05-4.64,24.04-3.92,36.27                 c0.52,8.88,2.07,17.73,3.71,26.5c1.24,6.66,3.27,13.17,5.07,19.72c2.56,9.32,7.28,17.69,11.77,26.16                 c6.67,12.56,15.18,23.85,24.53,34.48c12.41,14.11,26.17,26.79,41.66,37.47c7.57,5.21,15.31,10.22,23.27,14.8                 c9.57,5.51,19.5,10.39,29.22,15.66c9.77,5.3,20.09,9.26,30.64,12.64c9.73,3.12,19.4,6.5,29.29,9.05                 c7.54,1.95,15.35,2.97,23.08,4.11c18.37,2.72,36.83,2.72,55.22,0.65c13.15-1.48,26.14-4.19,38.39-9.44                 c11.27-4.83,22.68-9.48,32.56-17.03c0.98-0.75,2.2-1.19,3.3-1.78C499.89,475.46,500.16,475.77,500.43,476.07z"})]})})}),m=(0,c.lazy)(()=>n.e(8318).then(n.bind(n,88318))),p=d.icons.SEARCH_ICON,g=[{name:"Head-to-Head",value:"headtohead",link:"/headtohead"},{name:"Tournaments",value:"tournaments",link:"/tournaments"},{name:"Rankings",link:"/rankings/atp",value:"rankings"}],v=()=>{let e=(0,s.useRouter)(),{showToggle:t,setShowToggle:n}=(0,c.useContext)(u.I),r=t=>{let n=e.asPath.split("/");return"tournaments"!==t?n[1]===t:"tours"===e.pathname.split("/")[1]},d=()=>n(!t),[v,f]=(0,c.useState)(!1),x=()=>f(!0),_=()=>f(!1);return(0,a.jsxs)("nav",{className:l()("navbar"),children:[v?(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(a.Fragment,{}),children:(0,a.jsx)(m,{onHide:_,search:v})}):null,(0,a.jsxs)("div",{className:"container navbar__wrap",children:[(0,a.jsx)(i.mc,{prefetch:!1,href:"/",className:"navbar__logo",children:(0,a.jsx)(h,{})}),(0,a.jsx)("ul",{className:"navbar__list",children:g.map(e=>(0,a.jsx)("li",{className:l()("",{"navbar__list-active":r(e.value)}),children:(0,a.jsx)(i.mc,{href:e.link,prefetch:!1,children:e.name})},e.value))}),(0,a.jsxs)("div",{className:"navbar__icons",children:[(0,a.jsx)("button",{type:"button",onClick:x,id:"open-search",children:(0,a.jsx)("span",{className:"navbar__icon",id:"open-search",children:(0,a.jsx)(o.Z,{src:p,alt:"search",priority:!0,id:"open-search"})})}),(0,a.jsx)("button",{type:"button",onClick:d,className:"navbar__toggle",id:"toggle",children:(0,a.jsx)("span",{id:"toggle",className:l()("navbar__hamburger",{"navbar__hamburger-x":t}),children:(0,a.jsx)("span",{id:"toggle"})})})]})]})]})};var f=(0,c.memo)(v)},94865:function(e){"use strict";e.exports={skeletonTheme:{baseColor:"#061118",highlightColor:"#444"},icons:{CLOSE_ICON:"/static/close.svg",ARROW_GRAY_ICON:"/static/arrow.svg",ARROW_GREEN_ICON:"/static/arrowGreen.svg",CALENDAR_ICON:"/static/calendar.svg",ARROW_FILLED_ICON:"/static/arrowFilled.svg",STATS_ICON:"/static/stats.svg",LIST_ICON:"/static/list.svg",STAR_WHITE:"/static/starWhite.svg",PLACEHOLDER:"/static/placeholder.svg",PLAYER_FULL:"/static/tennis-player-full.png",BALL:"/static/tennis-ball.png",SEARCH_ICON:"/static/search.svg"},MAX_PLAYER_RANK_TO_SHOW_PAGE:60,settings:{USE_PREACT:!1,USE_SENTRY:!1,USE_WDYR:!0,ANALYZE__BUNDLE:!1},internalPictures:{LOGO:"".concat("https://www.tennisboard.com","/logo.jpg")}}},41513:function(e,t,n){"use strict";n.d(t,{Dc:function(){return p},V8:function(){return h},ae:function(){return x},cS:function(){return i},fW:function(){return d},iA:function(){return o},ko:function(){return v},l4:function(){return l},om:function(){return u},qZ:function(){return g},v0:function(){return f},vq:function(){return m}});var a=n(85893),c=n(38817),s=n(74654);let r=e=>{switch(e){case 0:return"New";case 1:return"Waxing crescent";case 2:return"First quarter";case 3:return"Waxing gibbous";case 4:return"Full";case 5:return"Waning gibbous";case 6:return"Last quarter";default:return"Waning crescent"}},l=e=>{let{pred:t,onClickModal:n,fullName:r}=e,l=(0,s.PT)(t,r),i=e=>(0,a.jsx)("button",{id:"open-predictions-modal",type:"button",onClick:()=>n(!0),className:"p-0 actual__link text-left",children:e},e);return(0,c.Z)({pattern:/always won|always loose|always lose|[0-9].*?matches/i,decorator:i,input:l})},i=(e,t)=>{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,l=r(null==a?void 0:a.MOON_PHASE);return e.winPercent?100===e.winPercent?"".concat(t," always defeated in ").concat(l," Moon out of ").concat(c," matches"):e.winPercent<100&&e.winPercent>=50?"".concat(t," won ").concat(s," of ").concat(c," matches in ").concat(l," Moon"):"".concat(t," lost ").concat(c-s," of ").concat(c," matches in ").concat(l," Moon"):"".concat(t," never defeated in ").concat(l," Moon out of ").concat(c," matches")},o=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",u=(e,t)=>
1{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,r=o(null==a?void 0:a.WEEK_DAY);return e.winPercent?100===e.winPercent?"".concat(t," always defeated on ").concat(r," out of ").concat(c," matches"):e.winPercent<100&&e.winPercent>=50?"".concat(t," won ").concat(s," of ").concat(c," matches on ").concat(r):"".concat(t," lost ").concat(c-s," of ").concat(c," matches on ").concat(r):"".concat(t," never defeated on ").concat(r," out of ").concat(c," matches")},d=(e,t)=>{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,r=null==a?void 0:a.PLAYER_COUNTRY;return e.winPercent?100===e.winPercent?"".concat(t," always defeated players from ").concat(r," out of ").concat(c," matches"):e.winPercent<100&&e.winPercent>=50?"".concat(t," won ").concat(s," of ").concat(c," matches against players from ").concat(r):"".concat(t," lost ").concat(c-s," of ").concat(c," matches against players from ").concat(r):"".concat(t," never defeated players from ").concat(r," out of ").concat(c," matches")},h=(e,t)=>{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,l=null==a?void 0:a.PLAYER_COUNTRY.join(", "),i=null==a?void 0:a.ZODIAC.map(e=>o(e)).join(", "),u=r(null==a?void 0:a.MOON_PHASE);return e.winPercent?100===e.winPercent?"".concat(t," always won against players from ").concat(l," with zodiac ").concat(i," in ").concat(u," Moon"):e.winPercent<100&&e.winPercent>=25?"".concat(t," won ").concat(s," of ").concat(c," matches against players from ").concat(l," with zodiac ").concat(i," in ").concat(u," Moon"):"".concat(t," lose ").concat(c-s," of ").concat(c," matches against players from ").concat(l," with zodiac ").concat(i," in ").concat(u," Moon"):"".concat(t," always lose against players from ").concat(l," with zodiac ").concat(i," in ").concat(u," Moon")},m=(e,t)=>{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,r=null==a?void 0:a.TEMPERATURE;return e.winPercent?100===e.winPercent?"".concat(t," always won with temperature of ").concat(r):e.winPercent<100&&e.winPercent>=25?"".concat(t," won ").concat(s," of ").concat(c," matches with temperature of ").concat(r):"".concat(t," lose ").concat(c-s," of ").concat(c," matches with temperature of ").concat(r):"".concat(t," always lose with temperature of ").concat(r)},p=(e,t)=>{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,r=null==a?void 0:a.PRESSURE;return e.winPercent?100===e.winPercent?"".concat(t," always won with atmosphere pressure of ").concat(r):e.winPercent<100&&e.winPercent>=25?"".concat(t," won ").concat(s," of ").concat(c," matches with atmosphere pressure of ").concat(r):"".concat(t," lose ").concat(c-s," of ").concat(c," matches with atmosphere pressure of ").concat(r):"".concat(t," always lose with atmosphere pressure of ").concat(r)},g=(e,t)=>{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,r=null==a?void 0:a.HUMIDITY;return e.winPercent?100===e.winPercent?"".concat(t," always won with humidity of ").concat(r):e.winPercent<100&&e.winPercent>=25?"".concat(t," won ").concat(s," of ").concat(c," matches with humidity of ").concat(r):"".concat(t," lose ").concat(c-s," of ").concat(c," matches with humidity of ").concat(r):"".concat(t," always lose with humidity of ").concat(r)},v=(e,t)=>
1{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,r=null==a?void 0:a.SEASON,l=null==a?void 0:a.PLAYER_COUNTRY;return e.winPercent?100===e.winPercent?"".concat(t," always won against players from ").concat(l," during the ").concat(o(r)):e.winPercent<100&&e.winPercent>=25?"".concat(t," won ").concat(s," matches against players from ").concat(l," during the ").concat(o(r)):"".concat(t," lose ").concat(c-s," matches against players from ").concat(l," during the ").concat(o(r)):"".concat(t," always lose against players from ").concat(l," during the ").concat(o(r))},f=(e,t)=>{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,r=null==a?void 0:a.SEASON,l=null==a?void 0:a.OPPONENT_NAME;return e.winPercent?100===e.winPercent?"".concat(t," always won against ").concat(l," during the ").concat(o(r)):e.winPercent<100&&e.winPercent>=25?"".concat(t," won ").concat(s," matches against ").concat(l," during the ").concat(o(r)):"".concat(t," lose ").concat(c-s," matches against ").concat(l," during the ").concat(o(r)):"".concat(t," always lose against ").concat(l," during the ").concat(o(r))},x=(e,t)=>{var n;let a=null==e?void 0:e.predictionAdditionalDataMap,c=null==e?void 0:null===(n=e.matches)||void 0===n?void 0:n.length,s=null==e?void 0:e.winCount,r=null==a?void 0:a.OPPONENT_NAME;return e.winPercent?100===e.winPercent?"".concat(t," always won against ").concat(r):e.winPercent<100&&e.winPercent>=25?"".concat(t," won ").concat(s," matches against ").concat(r):"".concat(t," lose ").concat(c-s," matches against ").concat(r):"".concat(t," always lose against ").concat(r)}},21723:function(e,t,n){"use strict";n.d(t,{Ai:function(){return g},Cm:function(){return d},Cv:function(){return m},PG:function(){return h},QU:function(){return u},Qd:function(){return a},Ro:function(){return p},cQ:function(){return l},cd:function(){return r},dr:function(){return i},h_:function(){return o},hw:function(){return c},tC:function(){return v}});let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString(),n=Number(t.slice(-3)),a=Number(t.slice(0,-3)),c=(e,t)=>{if(n<=t||n>=t)return"Round 1/".concat(t)},s=((e,t)=>{switch(t){case 8:return"Final";case 7:return"Semi final";case 6:return"Quarter final";case 5:return c(5,8);case 4:return c(4,16);case 3:return c(4,32);case 2:case 1:return c(4,64)}})(0,a);return{drawOrder:n,roundNumber:a,name:s}},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString(),n=(t.slice(-3),Number(t.slice(0,-3))),a=((e,t)=>{switch(t){case 9:case 8:return"Final";case 7:return"Semi final";case 6:return"Quarter final";case 5:case 4:case 3:case 2:case 1:return"Round 1"}})(0,n);return a},s=(e,t)=>t?a(e).name:c(e),r=(e,t)=>e.sort((e,t)=>(null==e?void 0:e.round)-(null==t?void 0:t.round)).reduce((e,n)=>{let a=e.find(e=>e===s(n.round,t));return a?e:e.concat([s(n.round,t)])},[]),l=new Date().toISOString().slice(0,10),i=new Date().toISOString(),o=(e,t,n,a,c,s,r,l,i,o,u)=>{let d="".concat("https://www.tennisboard.com","/v2/api/rest/match/with-players").concat(l?"-and-tournament":"","?page=").concat(t,"&pageSize=").concat(n);return fetch(d,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filters:(()=>{switch(e){case"Results":return[s?{type:"tournament",value:s}:null,a?{type:"startDateTime",value:a,operator:"GREATER"}:null,i?{type:"gender",value:i}:null,o?{type:"type",value:o}:null,c?{type:"startDateTime",value:c,operator:"LESS"}:null,{type:"status",values:["FINISHED","CANCELLED","INTERRUPTED"]}].filter(e=>e);case"tournamentPageResults":return[s?{type:"tournament",value:s}:null,a?{type:"tournamentYear",value:a}:null,{type:"status",values:["FINISHED","CANCELLED","INTERRUPTED"]}].filter(e=>e);case"Next games":return[s?{type:"tournament",value:s}:null,a?{type:"startDateTime",value:a,operator:"GREATER_OR_EQUAL"}:null,i?{type:"gender",value:i}:null,o?{type:"type",value:o}:null,{type:"status",values:["NOTSTARTED"]}].filter(e=>e);case"Live":return[s?{type:"tournament",value:s}:null,i?{type:"gender",value:i}:null,o?{type:"type",value:o}:null,u?{type:"matchId",values:[u]}:null,{type:"status",values:["INPROGRESS"]}].filter(e=>e);case"All":return[s?{type:"tournament",value:s}:null,i?{type:"gender",value:i}:null,o?{type:"type",value:o}:null,a?{type:"startDateTime",value:a,operator:"GREATER_OR_EQUAL"}:null,c?{type:"startDateTime",value:c,operator:"LESS_OR_EQUAL"}:null,u?{type:"matchId",values:u}:null].filter(e=>e);case"playerUpcoming":return[u?{type:"matchId",values:[u]}:null,u?null:{type:"player",values:r},!u&&a?{type:"startDateTime",value:a,operator:"GREATER_OR_EQUAL"}:null,u?null:{type:"status",values:["NOTSTARTED","INPROGRESS"]}];case"playerResults":return[{type:"player",values:r},{type:"status",values:["FINISHED","CANCELLED","INTERRUPTED"]}];case"hhBetween":return[{type:"between",player1:r[0],player2:r[1]},{type:"status",values:["FINISHED","CANCELLED","INTERRUPTED"]}];case"match":return[{type:"matchId",values:[u]}]}})().filter(e=>e),order:(()=>{switch(e){case"Results":case"All":default:return{field:"START_DATETIME",direction:"DESC_NULLS_LAST"};case"tournamentPageResults":case"Next games":case"Live":case"playerUpcoming":return{field:"START_DATETIME",direction:"ASC"}}})()})})},u=async(e,t,n)=>{let a="".concat(t?"http://192.168.100.25:8080":"https://www.tennisboard.com","/v2/api/rest/tournament/").concat(e,"/").concat(n&&"last"!==n?n:""),c=await fetch(a,{method:"GET"}),s=await c.json();return s},d=(e,t)=>
1e&&t?"/tournaments/".concat(t,"/").concat(e):"/tournaments",h=e=>e&&"string"==typeof e?e.split("/")[0]:"",m=e=>new Date(new Date(e).getTime()-864e5).toISOString().slice(0,10),p=e=>new Date(new Date(e).getTime()+864e5).toISOString().slice(0,10),g=e=>e.sort((e,t)=>new Date(t.factStartDateTime||t.startDateTime)-new Date(e.factStartDateTime||e.startDateTime)),v=e=>null==e?void 0:e.replace("/last","").replace("/tours","/tournaments").replace("/all","")},74654:function(e,t,n){"use strict";n.d(t,{WN:function(){return m},Ln:function(){return p},mc:function(){return E},So:function(){return D},UL:function(){return F},M_:function(){return y},pD:function(){return g},_3:function(){return f},vZ:function(){return x},Ov:function(){return _},PT:function(){return N},$Q:function(){return C},hK:function(){return v},si:function(){return w},io:function(){return S},Kh:function(){return T},S0:function(){return j},OM:function(){return R}});var a=n(85893),c=n(71518),s=n(19852),r=n(41513),l=n(11163),i=n(41664),o=n.n(i);let u=(e,t)=>fetch(e).then(e=>!e||!e.status||e.status>=400&&e.status<600?t:e.json()).catch(()=>t);var d=n(21723);let h=e=>{switch(e){case"USA":return"United States";case"Great Britain":case"England":return"United Kingdom";default:return e}},m=e=>{let{country:t,countryCode:n,priority:r,withoutTip:l}=e,i=n&&s.byIso(null==n?void 0:n.trim())||s&&s.byCountry(h(t))||null,o=i&&!l?i.country:null;return(0,a.jsx)("span",{id:"flag",title:o,children:(0,a.jsx)(c.Z,{src:"/flags/16/".concat(i?i.iso2:"_unknown",".png"),height:8,width:10,alt:(null==i?void 0:i.country)||"flag",placeholder:"/flags/16/_unknown.png",priority:!!r})})},p=e=>{let{country:t,countryCode:n,priority:r,width:l,height:i}=e,o=n&&s.byIso(null==n?void 0:n.trim())||s&&s.byCountry(h(t))||null;if(o)return(0,a.jsx)(c.Z,{src:"/flags/svg/".concat(o.iso2,".svg"),...l&&i?{width:l,height:i}:{layout:"fill"},alt:(null==o?void 0:o.country)||"flag",priority:!!r})},g=e=>{if(!e)return null;let t=s.byIso(e);if(t)return null==t?void 0:t.country},v=e=>{let t=new Date(e),n=t.getHours(),a=t.getMinutes();return"".concat(n<10?"0".concat(n):n,":").concat(a<10?"0".concat(a):a)},f=(e,t,n)=>{let a=new Date(e),c={...t?null:{year:"numeric"},month:"short",day:"numeric"};if(n){let e=a.toLocaleDateString("en-UK",{weekday:"short"}).slice(0,2).toUpperCase(),t=String(a.getMonth()+1).padStart(2,"0"),n=String(a.getDate()).padStart(2,"0");return"".concat(n,"/").concat(t," ").concat(e)}if(e)return a.toLocaleDateString("en-US",c)},x=e=>{let t=new Date(e),n=t.getDate(),a=t.getMonth()+1,c=t.getFullYear(),s=e=>e<10?"0".concat(e):e;if(e)return"".concat(s(n),".").concat(s(a),".").concat(c)},_=e=>{if(e)return new Date(e).toISOString().slice(0,10)},w=e=>{let t=new Date(e);return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString()},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";return e?"".concat("https://www.tennisboard.com","/api/next/redirect-bookmaker?").concat("name"===t?"name":"id","=").concat(encodeURIComponent(e)):""},y=(e,t,n)=>{let{metaKey:a,ctrlKey:c}=e;if(a||c)return()=>{};t.includes("player"),n(t)},N=(e,t)=>{switch(e.predictionType){case"MOON_PHASE":return(0,r.cS)(e,t);case"WEEK_DAY":return(0,r.om)(e,t);case"PLAYER_COUNTRY":return(0,r.fW)(e,t);case"MOON_ZODIAC_COUNTRY":return(0,r.V8)(e,t);case"TEMPERATURE":return(0,r.vq)(e,t);case"PRESSURE":return(0,r.Dc)(e,t);case"HUMIDITY":return(0,r.qZ)(e,t);case"SEASON_COUNTRY":return(0,r.ko)(e,t);case"SEASON_NAME":return(0,r.v0)(e,t);case"OPPONENT_NAME":return(0,r.ae)(e,t)}};function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:155;return e.substring(0,t)}let E=e=>{let{children:t,className:n,onClick:c,href:s}=e,r=(0,l.useRouter)(),i=(0,d.tC)(r.asPath),u=null==s?void 0:s.replace("//","/");return i!==u&&"".concat(i,"/")!==u?(0,a.jsx)(o(),{href:u,prefetch:!1,className:n,onClick:c,children:t}):(0,a.jsxs)("a",{className:n,children:[t," "]})},b=["January","February","March","April","May","June","July","August","September","October","November","December"],R=e=>{if(!e||"string"!=typeof e)return e;let t=new Date;return e.replace(/{currentYear}/g,t.getFullYear()).replace(/\[txt-year\]/g,t.getFullYear()).replace(/\[txt-month\]/g,b[t.getMonth()])},A=e=>{if(!e)return e;if("string"==typeof e)return R(e);if(Array.isArray(e)){for(let t=0;t<e.length;t++)e[t]=A(e[t]);return e}return"object"==typeof e&&Object.keys(e).forEach(t=>{e[t]=A(e[t])}),e},T=(e,t)=>
1{if(e)return t?(e[t]=A(e[t]),e):A(e)},C=async e=>{let t=await u("".concat("http://192.168.100.25:8080","/v2/api/rest/admin/static-page/").concat("/"===e?"main":e),{}),n=await t;return T(n)},D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return[...Array(e)].map((e,t)=>t+1)},F=(e,t)=>JSON.stringify(e)===JSON.stringify(t)},17158:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return T},default:function(){return C}});var a=n(85893),c=n(67294),s=n(76030),r=n(26646),l=n(94184),i=n.n(l),o=n(21723),u=n(71518);let d=e=>{let{setCurrentTab:t,currentTab:n,tabsList:c,favLength:s}=e;return(0,a.jsx)("nav",{className:"matches__tabs",children:(0,a.jsx)("div",{className:"matches__tabsWrap",children:c.map(e=>(0,a.jsxs)("button",{onClick:()=>t(e.name),className:i()("",{"matches__button-active":n===e.name}),children:[(0,a.jsx)("span",{className:"matches__tabsIcon",children:(0,a.jsx)(u.Z,{src:"".concat(e.icon),alt:"icon",width:10,height:10})}),(0,a.jsxs)("span",{className:"matches__tabsText",children:[e.name," ","Favourites"===e.name?"(".concat(s,")"):null]})]},e.id))})})};var h=n(84266),m=n(26383);let p=(0,c.lazy)(()=>n.e(3964).then(n.bind(n,33964))),g=[{name:"All",id:"all",icon:"/static/all.svg"},{name:"Next games",id:"upcoming",icon:"/static/next.svg"},{name:"Results",id:"results",icon:"/static/results.svg"},{name:"Live",id:"live",icon:"/static/live.svg"},{name:"Favorites",id:"favourites",icon:"/static/favorite.svg"}],v=e=>{let{matchFilter:t,setMatchFilter:n}=e,[s,r]=(0,c.useState)("All"),l=e=>new Date(e.getTime()-864e5).toISOString().slice(0,10),i=e=>new Date(e.getTime()+864e5).toISOString().slice(0,10),u=o.cQ,[v,f]=(0,c.useState)(u);(0,c.useEffect)(()=>("Favourites"===s&&"all"!==t&&n("all"),()=>{}),[s]);let x=()=>f(l(new Date(v))),_=()=>new Date(v)<new Date(u)?f(i(new Date(v))):null,w=t.includes("women")?"FEMALE":"MALE",j="mensingle"===t||"mendouble"===t?"MALE":t.includes("women")?"FEMALE":void 0,[y,N]=(0,c.useState)(0),[S,E]=(0,c.useState)(0);(0,c.useEffect)(()=>(localStorage&&(N(JSON.parse(localStorage.getItem("TBFavorT"))||0),E(JSON.parse(localStorage.getItem("TBFavorM"))||0)),()=>{}),[]);let b=e=>e&&e.list&&e.list.length?e.list.length:0,R=b(y)+b(S);return(0,a.jsxs)("section",{id:"main",children:[(0,a.jsx)(d,{currentTab:s,setCurrentTab:r,gender:w,dateMinus:x,datePlus:_,curDate:v,today:u,setCurDate:f,favLength:R,tabsList:g}),(0,a.jsxs)("div",{className:"matches__wrapper",children:[("Next games"===s||"Results"===s||"Live"===s||"All"===s)&&"comparison"!==t&&(0,a.jsx)(h.Z,{category:t,gender:j,currentTab:s}),"Favorites"===s&&"comparison"!==t&&(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(m.ZP,{length:6}),children:(0,a.jsx)(p,{category:t,gender:j})})]})]})};var f=(0,c.memo)(v);v.whyDidYouRender=!0;var x=n(53209),_=n(94865);let w={"@context":"https://schema.org","@type":"BreadcrumbList",name:"Breadcrumbs",itemListElement:[{"@type":"ListItem",position:1,name:"Tennis Board"}]},j={"@context":"https://schema.org","@type":"WebSite",url:"".concat("https://www.tennisboard.com","/"),name:"Search",potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"".concat("https://www.tennisboard.com","/search?q={search_term_string}")},"query-input":"required name=search_term_string"}},y={"@context":"https://schema.org/","@type":"Organization",name:"TennisBoard",url:"".concat("https://www.tennisboard.com","/"),logo:_.internalPictures.LOGO},N=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(y)}}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(j)}}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(w)}})]});var S=n(93788),E=n(55304),b=n(26710),R=n(42317);let A=e=>{let{cms:t}=e,n=null==t?void 0:t.metaDescription,l=null==t?void 0:t.title,[i,o]=(0,c.useState)("all");return(0,a.jsxs)(r.Z,{footer:!0,navbar:!1,title:l,metaDescription:n,canonical:!0,twitterCard:!0,children:[(0,a.jsx)(N,{}),(0,a.jsx)(x.Z,{title:l,url:"https://www.tennisboard.com",description:n}),(0,a.jsx)(s.Z,{}),(0,a.jsx)(S.Z,{}),(0,a.jsx)(E.Z,{mainFilter:i,setMainFilter:o,filters:["matches","rankings","leagues"],children:(0,a.jsxs)("div",{className:"main__section",children:[t?(0,a.jsx)(R.Z,{title:null==t?void 0:t.h1}):null,(0,a.jsx)(f,{matchFilter:i,setMatchFilter:o}),t?(0,a.jsx)(b.ZP,{cms:t}):null]})})]})};var T=!0,C=(0,c.memo)(A)}},function(e){e.O(0,[6217,778,9774,2888,179],function(){return e(e.s=75557)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.