PageSourceSearch

https://play.tennis.lt/_next/static/chunks/88249-4297b095c44e15eb.js

js tennis.lt collected 2026-09-25 09:53:16 UTC 27,670 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d8c240ac-2618-43ab-b0e6-4af5eb5a414e",e._sentryDebugIdIdentifier="sentry-dbid-d8c240ac-2618-43ab-b0e6-4af5eb5a414e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88249],{21884:(e,t,r)=>{r.d(t,{W:()=>l});let l=e=>null!=e&&("string"!=typeof e||""!==e.trim()&&"null"!==e.trim().toLowerCase())},23955:(e,t,r)=>{r.d(t,{l:()=>a});var l=r(3633);let a=e=>{let{platformId:t,userId:r,wprUserId:a,tab:n,sport:i,queryParams:s}=e;if((0,l.l5)(null!=t?t:0)){let e=null!=a;return{href:e?"".concat("https://app.worldpadelrating.com/profile","/").concat(a):"#",isExternal:e,...e&&{target:"_blank",rel:"noopener noreferrer"}}}let o="/profile/".concat(null!=r?r:""),d=new URLSearchParams;n&&d.set("tab",n),null!=i&&d.set("sport",String(i)),s&&Object.entries(s).forEach(e=>{let[t,r]=e;null!=r&&d.set(t,String(r))});let c=d.toString();return{href:c?"".concat(o,"?").concat(c):o,isExternal:!1}}},26856:(e,t,r)=>{r.d(t,{A:()=>s});var l=r(21398),a=r(16055),n=r(25592),i=r(5998);let s=e=>{let{state:t,className:r,teamName:s}=e,o=(0,i.k)()("hiddenPending"===t?"matches.lineup.hiddenPending":"matches.lineup.hiddenStrategic");return(0,l.jsxs)("div",{className:(0,a.cn)("flex items-center gap-2 py-2 w-full min-w-0 text-secondary",r),"aria-label":s?"".concat(s,": ").concat(o):o,title:s?"".concat(s,": ").concat(o):o,children:[(0,l.jsx)(n.X,{size:16,className:"shrink-0"}),(0,l.jsxs)("p",{className:"preset-body-sm truncate",children:[s?(0,l.jsxs)("span",{className:"preset-label-sm text-new-primary",children:[s," \xb7 "]}):null,o]})]})}},27967:(e,t,r)=>{r.d(t,{A:()=>a});var l=r(70828);let a=(e,t,r,a,n)=>{let i=e=>a===r?{score1:e.score2,score2:e.score1,score1tie:e.score2tie,score2tie:e.score1tie,type:e.type}:e;if(!e)return[{score1:a?a===r?"":"W":"-",score2:a?a===t?"":"W":"-"}];if((null==n?void 0:n.toLowerCase())==="bye")return[{score1:a===r?"":"W",score2:a===r?"W":""}];if("string"!=typeof e)return Object.values(e.reduce((e,a)=>{var n;let{round:i,score:s,roundFormat:o,entry:d}=a;if((0,l.uy)(i)||(0,l.uy)(s)||(0,l.uy)(o)||(0,l.uy)(d))return e;let c=o.includes("tie");e[i]||(e[i]={score1:-1,score2:-1,type:c?"tie":"normal"});let u=Array.isArray(d)?null==(n=d[0])?void 0:n.id:d.id;return u===t?c?e[i].score1tie=s:e[i].score1=s:u===r&&(c?e[i].score2tie=s:e[i].score2=s),e},{}));{let t=e=>Number.isFinite(e)?e:"",r=e=>"number"==typeof e&&Number.isFinite(e)?e:void 0;return e.split(" ").map(e=>{let l=e.startsWith("[")&&e.endsWith("]")?"tie":"normal",[a,n]=e.split("("),[s,o]=a.replace(/[\[\]]/g,"").split(":").map(Number),[d,c]=n?n.replace(/[()\]]/g,"").split(":").map(Number):[void 0,void 0];return i({score1:t(s),score2:t(o),score1tie:r(d),score2tie:r(c),type:l})}).filter(e=>""!==e.score1||""!==e.score2)}}},29042:(e,t,r)=>{r.d(t,{aT:()=>h,rD:()=>x,s7:()=>v,sQ:()=>a});let l={team1:"visible",team2:"visible",isGated:!1},a=e=>"hiddenStrategic"===e||"hiddenPending"===e,n=e=>{var t;if((null==(t=e.winner)?void 0:t.id)||Array.isArray(e.score)&&e.score.length>0||Array.isArray(e.teamScore)&&e.teamScore.length>0||Array.isArray(e.teamWinner)&&e.teamWinner.length>0)return!0;if("string"==typeof e.score){let t=e.score.trim();if(t.length>0&&"0:0"!==t)return!0}if("string"==typeof e.teamScore){let t=e.teamScore.trim();if(t.length>0&&"0:0"!==t)return!0}return!1},i=(e,t)=>"object"==typeof e&&null!==e&&t in e,s=e=>null==e?[]:Array.isArray(e)?e:[e],o=e=>i(e,"id")&&"number"==typeof e.id?e.id:null,d=e=>s(null==e?void 0:e.team).map(o).filter(e=>"number"==typeof e),c=e=>d(e.entry1).length>0&&d(e.entry2).length>0,u=e=>{if(!i(e,"tournamentCategory"))return!1;let t=e.tournamentCategory;return i(t,"isAllowRosterSubmission")&&!0===t.isAllowRosterSubmission},m=e=>s(e.group).some(u),p=e=>Array.isArray(e)?e:i(e,"users")&&Array.isArray(e.users)?e.users:[],f=e=>p(e).length>0,h=e=>p(e).map(e=>i(e,"user")?o(e.user):null).filter(e=>"number"==typeof e),x=(e,t)=>{if(t.isAdmin||!e.isTeamFormat||!e.allowsRosterSubmission||e.isCompleted||e.team1Submitted&&e.team2Submitted)return l;let r=(e,r)=>!!(e.some(e=>t.captainTeamIds.has(e))||null!=t.userId&&(null==r?void 0:r.includes(t.userId)
1)),a=r(e.team1TeamIds,e.team1MemberUserIds),n=r(e.team2TeamIds,e.team2MemberUserIds),i=(e,t)=>t?"self":e?"hiddenStrategic":"hiddenPending";return{team1:i(e.team1Submitted,a),team2:i(e.team2Submitted,n),isGated:!0}},v=(e,t)=>e?x({isTeamFormat:c(e),allowsRosterSubmission:m(e),isCompleted:n(e),team1Submitted:f(e.team1Entry),team2Submitted:f(e.team2Entry),team1TeamIds:d(e.entry1),team2TeamIds:d(e.entry2),team1MemberUserIds:h(e.team1Entry),team2MemberUserIds:h(e.team2Entry)},t):l},45034:(e,t,r)=>{r.d(t,{k:()=>l});let l=(e,t)=>{if(!e)return"";let r=e.match(/^(\d{1,2}):(\d{2})/);if(!r)return e;let l=new Date(Date.UTC(2e3,0,1,parseInt(r[1],10),parseInt(r[2],10)));try{return new Intl.DateTimeFormat(t,{hour:"numeric",minute:"2-digit",timeZone:"UTC"}).format(l).replace(/\bam\b/gi,"AM").replace(/\bpm\b/gi,"PM")}catch(t){return e}}},49465:(e,t,r)=>{r.d(t,{y:()=>s});var l=r(25398),a=r(78319),n=r(43647);let i=new Set,s=()=>{var e,t;let r=(0,n.Lg)(),s=null!=(t=null==r||null==(e=r.userData)?void 0:e.id)?t:null,{data:o,loading:d}=(0,a.AxU)({skip:!s,variables:{id:null!=s?s:0},fetchPolicy:"cache-first"});return{captainTeamIds:(0,l.useMemo)(()=>{var e;return(null==o||null==(e=o.captainTeams)?void 0:e.length)?new Set(o.captainTeams.map(e=>null==e?void 0:e.id).filter(e=>"number"==typeof e)):i},[o]),loading:d}}},57026:(e,t,r)=>{r.d(t,{NE:()=>j,DC:()=>d,Z5:()=>y});var l=r(21398),a=r(13722),n=r(5998),i=r(5204),s=r(24176);let o=e=>"USPA Registered Account"==e?"youCanCreate":"youCanGet",d=e=>{let{uniqueMissingLicenses:t,uniqueActiveLicenses:r}=e,d=(0,n.k)();return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"my-1",children:[(0,l.jsx)("div",{className:"mb-1",children:null==r?void 0:r.map(e=>(0,l.jsxs)("div",{className:"flex items-center gap-1 mr-4 ",children:[(0,l.jsxs)("span",{className:"text-sm",children:[d("tournament.registration.entries.wpr.youHave")," ",(0,l.jsx)("span",{className:"font-bold",children:e})]}),(0,l.jsx)(a.A,{size:12,className:"text-green-500"})]},e))}),null==t?void 0:t.map((e,t)=>{var r;return(0,l.jsx)("p",{className:" mb-1 ",children:(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsxs)("span",{className:"text-sm",children:[d("tournament.registration.entries.wpr.".concat(o(null==e?void 0:e.name)))," ",null==e?void 0:e.name]}),(0,l.jsxs)(i.N_,{href:"".concat(null!=(r=null==e?void 0:e.url)?r:"#","&redirect_uri=").concat(window.location.href),className:"text-primary  mx-1 flex gap-1 text-sm items-center",target:"_blank",children:[d("tournament.registration.entries.wpr.here"),(0,l.jsx)(s.H,{size:12})]})]})},t)})]})})};var c=r(15663),u=r(72557),m=r(69653),p=r(62999),f=r(20657),h=r(70429),x=r(64540),v=r(3633);let g={HIGH:(0,l.jsx)(f.k,{size:12,className:"text-green-500"}),LOW:(0,l.jsx)(c.default,{src:"/wpr-icons/LC-icon.png",alt:"LC",height:12,width:12,className:"shrink-0"}),NONE:(0,l.jsx)(c.default,{src:"/wpr-icons/NC-icon.png",alt:"NC",height:12,width:12,className:"shrink-0"})},y=e=>{var t;let{playerData:r,loading:a,ratingType:i}=e,s=(0,n.k)();if(!r)return null;let o="competition"===i?null==r?void 0:r.competitionRating:null==r?void 0:r.socialRating,d="competition"===i?null==r?void 0:r.competitionRatingConfidenceLevel:null==r?void 0:r.socialRatingConfidenceLevel,c=(0,v.Yk)(o,d);return(0,l.jsx)("div",{className:"flex gap-2 w-full",children:(0,l.jsx)(u.A,{className:"py-2 px-3.5 flex-1 border-none justify-center flex w-[158px] h-[55px]",style:{background:"#F3AF3D1A"},children:a?(0,l.jsx)(p.Y,{}):(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-col items-center gap-0.5",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(h.Q,{size:14}),(0,l.jsx)("p",{className:"font-body-10-400 whitespace-nowrap truncate",children:"WPR ".concat(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(null!=i?i:"")," Rating")})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("p",{className:"font-body-16-700",children:c}),(0,l.jsx)(x.A,{content:"".concat(s("tournament.page.participants.confidenceLevel"),": ").concat(null!=d?d:""),modalOnMobile:!0,disableInteractive:!0,delay:100,children:(0,l.jsx)("span",{className:"font-body-10-400",children:null!=(t=g[d
1])?t:""})})]})]}),(0,l.jsx)(m.A,{size:38,value:parseFloat(o),maxValue:21,label:c,color:"#F3AF3D"})]})})})},b={HIGH:(0,l.jsx)(f.k,{size:12,className:"text-green-500"}),LOW:(0,l.jsx)(c.default,{src:"/wpr-icons/LC-icon.png",alt:"LC",height:12,width:19,className:"shrink-0"}),NONE:(0,l.jsx)(c.default,{src:"/wpr-icons/NC-icon.png",alt:"NC",height:12,width:20,className:"shrink-0"})},j=e=>{var t,r,a;let{ratingType:i,playerData:s,showWithoutRating:o=!1}=e,d=(0,n.k)(),c=(null==i?void 0:i.toLowerCase())==="social"?null==s?void 0:s.socialRatingConfidenceLevel:null==s?void 0:s.competitionRatingConfidenceLevel,u=(null==i?void 0:i.toLowerCase())==="social"?(0,v.Yk)(null!=(t=null==s?void 0:s.socialRating)?t:0,c):(0,v.Yk)(null!=(r=null==s?void 0:s.competitionRating)?r:0,c);return(null==s?void 0:s.competitionRating)||(null==s?void 0:s.socialRating)||o&&c?(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("p",{className:"font-body-10-500 border rounded-sm p-1 border-gray-300 font-semibold text-gray-500 w-[41px] flex items-center justify-center",children:u}),(0,l.jsx)(x.A,{content:"".concat(d("tournament.page.participants.confidenceLevel"),": ").concat(null!=c?c:""),modalOnMobile:!0,disableInteractive:!0,delay:100,disabled:!c,children:(0,l.jsx)(l.Fragment,{children:c&&(0,l.jsx)("span",{className:"font-body-10-400 flex shrink-0",children:null!=(a=b[c])?a:""})})})]}):null}},57652:(e,t,r)=>{r.d(t,{A:()=>m});var l=r(21398),a=r(72557),n=r(64540),i=r(70828),s=r(27967),o=r(12631),d=r(25398),c=r(21884),u=r(91855);let m=e=>{let{score:t,entry1:r,entry2:m,winnerEntryId:p,className:f,type:h,displayStatus:x,statusPosition:v,isVertical:g}=e,y=(0,s.A)(t,null!=r?r:void 0,null!=m?m:void 0,null!=p?p:void 0,h),b=(0,d.useMemo)(()=>(0,u.z)(h),[h]),j=(e,t)=>{let{score1:r,score2:a,score1tie:n,score2tie:s}=e;return(0,l.jsxs)("div",{className:(0,i.cn)("border-lightBorder dark:border-darkBorder",{"grid grid-rows-2 [&:not(:last-child)>div]:border-r":!g,"grid grid-cols-2 [&:not(:last-child)>div]:border-b":g}),children:[(0,l.jsxs)("div",{className:(0,i.cn)("flex items-center justify-center px-[5px] h-[22px] !font-body-11-500 relative min-w-5 border-lightBorder dark:border-darkBorder",{"border-b":!g,"border-r":g,"text-primary bg-gradient-to-t from-primary-alpha-10 to-transparent to-[80%]":(r>a||!a)&&!g,"text-primary bg-gradient-to-l from-primary-alpha-10 to-transparent to-[80%]":(r>a||!a)&&g}),children:[(0,c.W)(r)&&r,(0,c.W)(n)&&(0,l.jsx)("p",{className:"-mt-1.5 text-[9px] ml-0.5 opacity-70",children:n})]}),(0,l.jsxs)("div",{className:(0,i.cn)("flex items-center justify-center px-[5px] h-[22px] !font-body-11-500 relative min-w-5",{"text-primary bg-gradient-to-t from-primary-alpha-10 to-transparent to-[80%]":(a>r||!r)&&!g,"text-primary bg-gradient-to-r from-primary-alpha-10 to-transparent to-[80%]":(a>r||!r)&&g}),children:[(0,c.W)(a)&&a,(0,c.W)(s)&&(0,l.jsx)("p",{className:"-mt-1.5 text-[9px] ml-0.5 opacity-70",children:s})]})]},t)};return(0,l.jsxs)("div",{"data-testid":"client-match-score",className:(0,i.cn)("flex items-center gap-2",{"flex-col":"top"===v||g,"flex-col-reverse":"bottom"===v},f),children:[x&&b&&(0,l.jsx)(n.A,{content:b.description,children:(0,l.jsxs)(a.A,{className:"px-2 h-5 font-body-11-500 min-w-5 flex items-center gap-1",children:[(0,l.jsx)("span",{className:"opacity-60",children:b.label}),(0,l.jsx)(o.E,{size:14,className:"opacity-60"})]})}),(0,l.jsx)(a.A,{style:{display:"grid",["gridTemplate".concat(g?"Rows":"Columns")]:"repeat(".concat(y.length,", auto)")},children:y.map((e,t)=>j(e,t))})]})}},69653:(e,t,r)=>{r.d(t,{A:()=>y});var l=r(21398),a=r(21503),n=r(44586),i=r(9178),s=r(25398),o=r(49083),d=r(31449),c=r(89742),u=r(70828);let m={light:"",dark:".dark"},p=s.createContext(null);function f(){let e=s.useContext(p);if(!e)throw Error("useChart must be used within a <ChartContainer />");return e}let h=s.forwardRef((e,t)=>{let{id:r,className:a,children:n,config:i,...d}=e,c=s.useId(),m="chart-".concat(r||c.replace(/:/g,""));return(0,l.jsx)(p.Provider,{value:{config:i},children:(0,l.jsxs)("div",{"data-chart":m,ref:t,className:(0,u.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",a),...d,children:[(0,l.jsx)(x,{id:m,config:i}),(0,l.jsx)(o.u,{children:n})]})})});h.displayName="Chart";let x=e=>{let{id:t,config:r}=e,a=Object.entries(r).filter(e=>{let[,t]=e;return t.theme||t.color});return a.length?(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(m).map(e=>{let[r,l]=e;return"\n".concat(l," [data-chart=").concat(t,"] {\n").concat(a.map(e=>{var t;let[l,a]=e,n=(null==(t=a.theme)?void 0:t[r])||a.color;return n?"  --color-".concat(l,": ").concat(n,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null};function v(e,t,r){if("object"!=typeof t||null===t)return;let l="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,a=r;return r in t&&"string"==typeof t[r]?a=t[r]:l&&r in l&&"string"==typeof l[r]&&(a=l[r]),a in e?e[a]:e[r]}d.m,s.forwardRef((e,t)=>
1{let{active:r,payload:a,className:n,indicator:i="dot",hideLabel:o=!1,hideIndicator:d=!1,label:c,labelFormatter:m,labelClassName:p,formatter:h,color:x,nameKey:g,labelKey:y}=e,{config:b}=f(),j=s.useMemo(()=>{var e;if(o||!(null==a?void 0:a.length))return null;let[t]=a,r="".concat(y||t.dataKey||t.name||"value"),n=v(b,t,r),i=y||"string"!=typeof c?null==n?void 0:n.label:(null==(e=b[c])?void 0:e.label)||c;return m?(0,l.jsx)("div",{className:(0,u.cn)("font-medium",p),children:m(i,a)}):i?(0,l.jsx)("div",{className:(0,u.cn)("font-medium",p),children:i}):null},[c,m,a,o,p,b,y]);if(!r||!(null==a?void 0:a.length))return null;let N=1===a.length&&"dot"!==i;return(0,l.jsxs)("div",{ref:t,className:(0,u.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-neutral-200 border-neutral-200/50 bg-white px-2.5 py-1.5 text-xs shadow-xl dark:border-neutral-800 dark:border-neutral-800/50 dark:bg-neutral-950",n),children:[N?null:j,(0,l.jsx)("div",{className:"grid gap-1.5",children:a.map((e,t)=>{let r="".concat(g||e.name||e.dataKey||"value"),a=v(b,e,r),n=x||e.payload.fill||e.color;return(0,l.jsx)("div",{className:(0,u.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-neutral-500 dark:[&>svg]:text-neutral-400","dot"===i&&"items-center"),children:h&&(null==e?void 0:e.value)!==void 0&&e.name?h(e.value,e.name,e,t,e.payload):(0,l.jsxs)(l.Fragment,{children:[(null==a?void 0:a.icon)?(0,l.jsx)(a.icon,{}):!d&&(0,l.jsx)("div",{className:(0,u.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===i,"w-1":"line"===i,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===i,"my-0.5":N&&"dashed"===i}),style:{"--color-bg":n,"--color-border":n}}),(0,l.jsxs)("div",{className:(0,u.cn)("flex flex-1 justify-between leading-none",N?"items-end":"items-center"),children:[(0,l.jsxs)("div",{className:"grid gap-1.5",children:[N?j:null,(0,l.jsx)("span",{className:"text-neutral-500 dark:text-neutral-400",children:(null==a?void 0:a.label)||e.name})]}),e.value&&(0,l.jsx)("span",{className:"font-mono font-medium tabular-nums text-neutral-950 dark:text-neutral-50",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})}).displayName="ChartTooltip",c.s,s.forwardRef((e,t)=>{let{className:r,hideIcon:a=!1,payload:n,verticalAlign:i="bottom",nameKey:s}=e,{config:o}=f();return(null==n?void 0:n.length)?(0,l.jsx)("div",{ref:t,className:(0,u.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",r),children:n.map(e=>{let t="".concat(s||e.dataKey||"value"),r=v(o,e,t);return(0,l.jsxs)("div",{className:(0,u.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-neutral-500 dark:[&>svg]:text-neutral-400"),children:[(null==r?void 0:r.icon)&&!a?(0,l.jsx)(r.icon,{}):(0,l.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==r?void 0:r.label]},e.value)})}):null}).displayName="ChartLegend";var g=r(94504);let y=e=>{let{size:t,color:r,value:s,maxValue:o,label:d,category:c}=e,u=.4*t,m=.65*t,p=.26*t;return(0,l.jsxs)("div",{className:"flex relative w-fit h-fit",children:[(0,l.jsx)(h,{config:{value:{label:d,color:r}},className:"mx-auto aspect-square w-full max-w-[250px]",style:{width:t,height:t},children:(0,l.jsxs)(a.D,{data:[{maxValue:360-s/o*360,value:s/o*360}],startAngle:90,endAngle:450,innerRadius:u,outerRadius:m,children:[(0,l.jsx)(n.E,{tick:!1,tickLine:!1,axisLine:!1}),(0,l.jsx)(i.Z,{dataKey:"maxValue",fill:(0,g.Ay)(r).alpha(.2).hex(),stackId:"a",cornerRadius:5,className:"stroke-transparent"}),(0,l.jsx)(i.Z,{dataKey:"value",stackId:"a",cornerRadius:5,fill:r,className:"stroke-transparent"})]})}),(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 flex flex-col items-center",children:[(d||c)&&(0,l.jsx)("p",{style:{color:r,fontSize:p,fontWeight:600,lineHeight:"100%"},children:null!=d?d:c}),c&&(0,l.jsx)("p",{style:{color:(0,g.Ay)(r).alpha(.8).hex(),fontSize:p/2,fontWeight:500,lineHeight:"100%"},children:c})]})]})}},75240:(e,t,r)=>{r.d(t,{L0:()=>x,Nv:()=>h,TF:()=>f,TournamentProvider:()=>v});var l=r(21398),a=r(25398),n=r(88399),i=r(18580),s=r(43647),o=r(783
119),d=r(5204),c=r(5998),u=r(50636);let m="true"===r(55036).env.NEXT_PUBLIC_MOBILE_DEPLOYMENT,p=["endDate","startDate","withdrawlDeadline","entryDeadline","registrationStartDate"],f=(0,a.createContext)(void 0),h=()=>{let e=(0,a.useContext)(f);if(!e)throw Error("This hook needs to be used within TournamentProvider");return e},x=()=>(0,a.useContext)(f),v=e=>{var t,r,h,x,v;let{children:g,enforceAccess:y=!0}=e,{session:{userData:b,isInitialized:j}}=(0,s.As)(),{id:N}=(0,i.useParams)(),w=(0,d.rd)(),k=(0,i.usePathname)(),A=(0,c.k)(),C="string"==typeof N?parseInt(N):void 0,{data:I,previousData:D,loading:S,error:E,refetch:R}=(0,o.EeV)({skip:!C,variables:{id:null!=C?C:-1}}),_=(0,a.useRef)(void 0),L=m?null!=I?I:(null==D||null==(t=D.tournamentDetailByIdPublic)?void 0:t.id)===C?D:void 0:I;m&&((null==L||null==(h=L.tournamentDetailByIdPublic)?void 0:h.id)===C?_.current=L:(null==(v=_.current)||null==(x=v.tournamentDetailByIdPublic)?void 0:x.id)!==C&&(_.current=void 0));let T=m?null!=L?L:_.current:I,M=!S&&!!(null==E||null==(r=E.graphQLErrors)?void 0:r.length)&&!(null==T?void 0:T.tournamentDetailByIdPublic),P=null==T?void 0:T.tournamentDetailByIdPublic,[F,W]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=setInterval(()=>W(e=>e+1),3e4);return()=>clearInterval(e)},[]);let z=(0,n.A)(P,p),O=(0,a.useMemo)(()=>z,[P,F]);(0,a.useEffect)(()=>{if(S||!O||!C)return;let e=O.competitionType,t=k.includes("/league-stage/");if(k.includes("/tournament/")&&e===o.Mx0.LeagueStage){let e=k.replace("/tournament/","/league-stage/");w.replace(e);return}if(t&&e!==o.Mx0.LeagueStage){let e=k.replace("/league-stage/","/tournament/");w.replace(e)}},[S,O,k,w,C]);let[U,B]=(0,a.useState)(!1),H=(0,a.useMemo)(()=>{var e,t,r,l,a;if(!O||!(null==b?void 0:b.id))return!1;let n=b.id,i=b.role,s=(null==i?void 0:i.toLowerCase())==="superadmin",o=(null==(t=O.organizer)||null==(e=t.member)?void 0:e.id)===n,d=(null==(l=O.referee)||null==(r=l.referee)?void 0:r.id)===n,c=null==(a=O.additionalReferee)?void 0:a.some(e=>{var t;return(null==(t=e.referee)?void 0:t.id)===n});return o||d||c||s},[O,b]),Z=(0,a.useMemo)(()=>!!O&&("active"===O.status||H),[O,H]),V=(0,a.useMemo)(()=>(null==O?void 0:O.status)==="active",[O]);(0,a.useEffect)(()=>{if(!S&&O&&j){if(y&&!V&&!Z){var e;let t=A("errorPage.inactiveTournament.subtitle",{organizerEmail:(null==(e=O.organizer)?void 0:e.contactEmail)||A("errorPage.inactiveTournament.organizerFallback")});u.o.error(t),w.push("/tournaments");return}B(!0)}},[V,Z,S,O,j,w,A,y]);let K=(0,a.useRef)(void 0),Q=(0,a.useCallback)(e=>{K.current=e},[]);(0,a.useEffect)(()=>{if(!(null==O?void 0:O.isOngoing))return;let e=()=>{var e;document.hidden||null==(e=K.current)||e.call(K)},t=setInterval(e,6e4);return document.addEventListener("visibilitychange",e),()=>{clearInterval(t),document.removeEventListener("visibilitychange",e)}},[null==O?void 0:O.isOngoing]);let Y=(0,a.useMemo)(()=>({id:C,loading:m?S&&!O||!U:S||!U,tournament:U?O:void 0,refetch:R,setRefetch:Q,hasAccess:Z,isActive:V,isManager:H}),[C,S,O,R,Q,Z,V,H,U]);return M&&(0,i.notFound)(),(0,l.jsx)(f.Provider,{value:Y,children:g})}},87311:(e,t,r)=>{r.d(t,{A:()=>N});var l=r(21398),a=r(25398),n=r(44516),i=r(64540),s=r(78319),o=r(5204),d=r(5998),c=r(21884),u=r(70828),m=r(94504),p=r(60739),f=r(18475),h=r(69400),x=r(56324),v=r(97630),g=r(11905);let y=()=>(0,g.Ub)("(hover: none) and (pointer: coarse)");var b=r(23955),j=r(30071);let N=e=>{let{children:t,id:r,sport:u,crossOffset:m=-6,linkClassName:p,isDisabled:h=!1,shouldRedirect:x=!0}=e,g=(0,d.k)(),[N,k]=(0,a.useState)(!1),A=(0,j.Vj)(),{data:C,loading:I}=(0,s.qde)({skip:!r||!N,variables:{id:null!=r?r:0}}),D=null==C?void 0:C.user,S=y(),E=(0,b.l)({platformId:null==A?void 0:A.id,userId:r,wprUserId:null==D?void 0:D.wprUserId,sport:u}),R=x?E:{...E,href:"#"},_=S?"string"==typeof t?(0,l.jsx)("p",{className:p,children:t}):t:"string"==typeof t?(0,l.jsx)(o.N_,{className:p,...R,children:t}):(0,a.cloneElement)(t,{...R,as:o.N_});if(!r)return _;let L=(0,c.W)(null==D?void 0:D.about)?D.about:(0,l.jsxs)(l.Fragment,{children:[null==D?void 0:D.name," ",g("userPage.bio.notProvided")]}),T=u?({6:(0,l.jsx)(v.A,{id:null==D?void 0:D.duprId})})[u]:null;return(0,l.jsx)(i.A,{onOpenChange:e=>k(e),delay:350*!S,modalOnMobile:!0,placement:"top-start",crossOffset:m,contentClassName:"max-w-fit",isDisabled:h,content:I?(0,l.jsxs)("div",{className:"flex flex-col p-2 items-center gap-3",children:[(0,l.jsx)(f.E,{className:"rounded-full w-[40px] h-[40p
1x]"}),(0,l.jsx)(f.E,{className:"rounded-lg h-[16px] w-[100px]"}),(0,l.jsx)(f.E,{className:"rounded-lg h-[12px] w-[180px]"})]}):D?(0,l.jsxs)("div",{className:"flex flex-col p-2 items-center gap-3",children:[(0,l.jsx)(n.A,{src:null==D?void 0:D.avatar,size:40,seed:"".concat(null==D?void 0:D.name," ").concat(null==D?void 0:D.surname),country:null==D?void 0:D.nation,href:E.href}),(0,l.jsxs)(o.N_,{...E,className:"font-heading-16-500 text-primary",children:[null==D?void 0:D.name," ",null==D?void 0:D.surname]}),(0,l.jsx)("p",{className:"font-body-12-400 opacity-70 max-w-[200px] overflow-ellipsis line-clamp-3",children:L}),(0,l.jsx)(w,{user:D}),T]}):(0,l.jsx)("p",{className:"opacity-70",children:"User data not found."}),children:_})},w=e=>{let{user:t}=e;return t&&(t.facebook||t.instagram)?(0,l.jsxs)("div",{className:(0,u.cn)("p-1 backdrop-blur-xl rounded-[6px] flex items-center gap-0.5 h-fit w-fit"),style:{background:(0,m.Ay)((0,p.A)()).alpha(.2).hex()},children:[t.facebook&&(0,l.jsx)("button",{onClick:()=>{var e;return window.open(null!=(e=t.facebook)?e:"","_blank")},"aria-label":"Facebook Profile",children:(0,l.jsx)(h.T,{size:22})}),t.instagram&&(0,l.jsx)("button",{onClick:()=>{var e;return window.open(null!=(e=t.instagram)?e:"","_blank")},"aria-label":"Instagram Profile",children:(0,l.jsx)(x.R,{size:22})})]}):null}},88399:(e,t,r)=>{r.d(t,{A:()=>i});var l=r(13441),a=r(28992);let n=["yyyy-MM-dd","MM/dd/yyyy","dd-MM-yyyy","yyyy-MM-dd'T'HH:mm:ss.SSSZ"],i=(e,t)=>{if(!e)return;let r=(0,a.VY)(e.timeZone),i=()=>l.c9.now().setZone(r),s=t.reduce((t,a)=>{let i=e[a];if(!i)return t[a]=void 0,t;let s=null,o=l.c9.fromISO(i,{zone:r});if(o.isValid)s=o;else for(let e of n){let t=l.c9.fromFormat(i,e,{zone:r});if(t.isValid){s=t;break}}return(null==s?void 0:s.isValid)?t[a]=s:t[a]=void 0,t},{}),o={...e,...s},d=i(),c=null!=o&&!!o.startDate&&!!o.endDate&&d>o.startDate&&d<o.endDate,u=null!=o&&!!o.startDate&&d>o.startDate,m=null!=o&&!!o.endDate&&d>o.endDate,p=null!=o&&!!o.entryDeadline&&d>o.entryDeadline,f=null!=o&&!!o.registrationStartDate&&d<o.registrationStartDate;return{...o,getLocalDate:e=>{if(e)return"string"==typeof e&&e.includes("T")?l.c9.fromISO(e).setZone(r):l.c9.fromJSDate(new Date(e)).setZone(r)},isOngoing:c,isStarted:u,isFinished:m,isRegistrationClosed:p,isRegistrationUpcoming:f,localTime:i,timeZone:(0,a.Md)(null==e?void 0:e.timeZone)}}},91855:(e,t,r)=>{r.d(t,{z:()=>l});let l=e=>{switch(null==e?void 0:e.toLowerCase()){case"bye":return{label:"Bye",description:"Bye – A player automatically advances to the next round without playing, usually due to an uneven number of participants in the draw. Byes are often given to higher-seeded players as a reward for their ranking"};case"w/o":return{label:"W/O",description:"W/O (Walkover) – A player wins a match by default because their opponent withdraws before the match starts, often due to injury, illness, or other reasons."};case"ret":return{label:"RET",description:"RET (Retirement) - A player is unable to continue a match due to injury, illness, or other reasons, and their opponent is declared the winner."};case"disq":return{label:"DISQ",description:"DISQ (Disqualification) – A player is removed from the match due to rule violations, and their opponent is declared the winner."};default:return null}}},97630:(e,t,r)=>{r.d(t,{A:()=>c});var l=r(21398),a=r(78319),n=r(72557),i=r(69653),s=r(5998),o=r(70429),d=r(77061);let c=e=>{var t,r;let{id:c}=e,u=(0,s.k)(),{data:m,loading:p}=(0,a.D4u)({variables:{duprId:c},skip:!c}),f=null==m||null==(r=m.getRatingByDUPRId)||null==(t=r.result)?void 0:t.ratings;if(p)return(0,l.jsx)("div",{className:"flex gap-2",children:Array.from({length:2}).map((e,t)=>(0,l.jsx)(n.A,{className:"py-2 px-3.5 flex-1 border-none justify-center flex w-[158px] h-[76px]",skeleton:!0},t))});if(!f)return null;let h={rating:f.singles,reliability:f.singlesReliabilityScore},x={rating:f.doubles,reliability:f.doublesReliabilityScore},v=[{label:u("dupr.singles"),icon:(0,l.jsx)(o.Q,{size:14}),rating:h.rating,reliability:h.reliability,color:"#F3AF3D",bgColor:"#F3AF3D1A"},{label:u("dupr.doubles"),icon:(0,l.jsx)(d.a,{size:14}),rating:x.rating,reliability:x.reliability,color:"#E25242",bgColor:"#E252421A"}];if(!v.every(e=>!e.rating))return(0,l.jsx)("div",{className:"flex gap-2 mb-2",children:v.map(e=>{var t;return(0,l.jsx)(n.A,{className:"py-2 px-3.5 flex-1 border-none justify-center flex w-[158px] h-[55px]",style:{background:e.bgColor},children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)("div",{className:"flex flex-col items-center gap-0.5",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1",style:{color:e.color},children:[e.icon,(0,l.jsx)("p",{className:"font-body-12-400",children:e.label})]}),(0,l.jsx)("p",{className:"font-body-18-700",children:e.rating})]}),(0,l.jsx)(i.A,{size:45,value:e.reliability,maxValue:100,label:"".concat(null!=(t=e.reliability)?t:"0"),color:e.color})]})},e.label)})})}}}]);

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.