!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f483c0d4-6b35-49dc-849e-498d422eb994",e._sentryDebugIdIdentifier="sentry-dbid-f483c0d4-6b35-49dc-849e-498d422eb994")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7256],{11998:(e,s,n)=>{n.d(s,{n:()=>a});var r=n(6029),i=n(41249),l=n(65789);function a(){return(0,r.jsxs)(l.Zp,{children:[(0,r.jsx)(l.Zp.Header,{titleId:"media"}),(0,r.jsx)(i.az,{h:800})]})}},18040:(e,s,n)=>{n.d(s,{O:()=>t});var r=n(6029),i=n(95083),l=n(41249),a=n(12153);let t=e=>{let{routeKey:s,query:n,Icon:t,params:o,children:d}=e,{isMobile:c,isDesktopLarge:u}=(0,i.$c)();return(0,r.jsx)(a.A,{routeKey:s,query:n,params:o,children:(0,r.jsxs)(l.so,{py:["xs","xs","sm"],px:["md","md","lg"],bg:["primary.default","overlay.darken1"],align:"center",br:"lg",mr:"sm",gap:["xxs","xxs","sm"],children:[(0,r.jsx)(l.EY,{lineHeight:"1 !important",font:["assistive.default","assistive.default","button.primary"],textTransform:u?"uppercase":void 0,c:["surface.s1","onColor.primary"],mr:"xxs",children:d}),(0,r.jsx)(l.az,{shrink:0,w:[14,14,16],children:(0,r.jsx)(t,{fill:c?"surface.s1":"onColor.primary",w:16,h:16})})]})})}},23166:(e,s,n)=>{n.d(s,{C4:()=>x,Ik:()=>c,Xj:()=>u,hA:()=>p,q6:()=>m});var r=n(6029),i=n(49519),l=n(41249),a=n(90248),t=n(44595),o=n(54917),d=n(55938);let c=e=>{let{position:s,extended:n,placeholder:i,groupPosition:a,noColor:d}=e;return s||i?(0,r.jsx)(l.EY,{font:"display.small",color:(0,t.mh)(d?void 0:a||s),ellipsis:!0,children:s?(0,r.jsx)(o.F,{id:s,short:!n}):"-"}):null},u=e=>{let{teamId:s,teamCodeName:n,font:a,color:t,placeholder:o}=e;return s&&n||o?s&&n?(0,r.jsxs)(l.so,{align:"center",children:[(0,r.jsx)(i.p,{id:s,name:n,size:16}),(0,r.jsx)(l.EY,{lineHeight:"16px",font:a||"body.medium",color:t||"onSurface.nLv1",ml:"xs",children:n})]}):(0,r.jsx)(l.EY,{lineHeight:"16px",font:a||"body.medium",color:t||"onSurface.nLv1",children:"-"}):null},p=e=>{let{alpha2:s,color:n,font:a,placeholder:t}=e;return s||t?s?(0,r.jsxs)(l.so,{align:"center",children:[(0,r.jsx)(i.w,{size:16,alpha2:s,name:s}),(0,r.jsx)(l.EY,{lineHeight:"16px",font:a||"body.medium",color:n||"onSurface.nLv1",ml:"xs",children:(0,d.KH)(s)})]}):(0,r.jsx)(l.EY,{lineHeight:"16px",font:a||"body.medium",color:n||"onSurface.nLv1",children:"-"}):null},x=e=>{let{absolute:s,jerseyNumber:n}=e;return(0,r.jsx)(l.az,{position:s?"absolute":"static",bottom:0,right:0,w:24,h:24,br:"50%",bg:"neutral.variant",children:(0,r.jsx)(l.EY,{lineHeight:"24px",font:"display.small",color:"surface.s1",align:"center",as:"div",children:n&&"undefined"!==n?n:"-"})})},m=e=>{let{color:s,isDetailedPositionSport:n,mainPosition:i,position:t}=e;return(0,r.jsx)(l.az,{children:n?(0,r.jsx)(l.EY,{font:"display.small",color:s,children:(0,r.jsx)(a.A,{id:i})}):t&&"undefined"!==t?(0,r.jsx)(c,{position:t,extended:!0}):(0,r.jsx)(l.EY,{font:"display.small",color:s,children:(0,r.jsx)(a.A,{id:"player.position.unknown"})})})}},56566:(e,s,n)=>{n.d(s,{A:()=>u,y:()=>c});var r=n(6029),i=n(41249),l=n(55729),a=n(41735),t=n(65789),o=n(52951),d=n(24159);let c=a.default.div.withConfig({componentId:"sc-649cdb1d-0"})(["span{color:"," !important;}ins,a{color:",";text-decoration:none;&:hover{opacity:0.7;}}h2,h3,h4{font:",";}p{font:",";}"],e=>e.theme.colors.onSurface.nLv1,e=>e.theme.colors.primary.default,e=>e.theme.typography.font.display.medium,e=>e.theme.typography.font.body.mediumParagraph),u=function(e){let{player:s}=e,{seoContent:n}=(0,l.useContext)(o.xV);return!s.deceased&&(null==n?void 0:n.about)?(0,r.jsxs)(t.Zp,{"data-qa-id":"seo-about",children:[(0,r.jsx)(t.Zp.Header,{title:(0,r.jsx)(d.c,{entity:s}),as:"h3"}),(0,r.jsx)(i.az,{p:"lg",pt:"0",children:(0,r.jsx)(c,{dangerouslySetInnerHTML:{__html:n.about}})})]}):null}},62927:(e,s,n)=>{n.r(s),n.d(s,{default:()=>D});var r=n(6029),i=n(95083),l=n(41249),a=n(55729),t=n(947),o=n(65789),d=n(69435),c=n(90248),u=n(62859),p=n(44595),x=n(10292),m=n(54409),j=n(70591),h=n(24159),y=n(23166),f=n(63869);function g(e){var s;let{teamPlayer:{player:n},groupPosition:i,coloredPosition:t}=e,{national:o}=(0,a.useContext)(f.f),d=void 0!==n.jerseyNumber&&!o;return(0,r.jsx)(j.uc,{player:n,sportSlug:n.team.sport.slug,children:(0,r.jsxs)(l.so,{w:134,minH:164,br:"sm",pt:n.injury?void 0:"md",bg:"surface.s2",direction:"column",justify:"space-between",cursor:"pointer",children:[n.injury&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.az,{backgroundColor:"error.default",w:"100%",h:"xs",br:"sm sm 0 0"}),(0,r.jsx)(m.gT,{fill:"error.default",ml:"sm",mt:"sm",position:"absolute"})]}),(0,r.jsxs)(l.az,{position:"relative",w:64,h:64,mx:"auto",children:[(0,r.jsx)(x.t,{id:n.id,name:n.name,size:64}),d&&(0,r.jsx)(y.C4,{jerseyNumber:n.jerseyNumber,absolute:!0})]}),(0,r.jsx)(l.so,{w:"100%",h:"36px",justify:"center",align:"center",children:(0,r.jsx)(l.EY,{mx:"sm",font:"display.small",color:"onSurface.nLv1",align:"center",lineClamp:2,as:"div",children:(0,r.jsx)(h.c,{entity:n})})}),(0,r.jsxs)(l.so,{h:32,bg:"surface.s2",p:"sm",br:"0 0 8px 8px",justify:"space-between",children:[n.position?(0,r.jsx)(y.Ik,{position:n.position,groupPosition:i,noColor:!t}):(0,r.jsx)("div",{}),o&&(0,r.jsx)(y.Xj,{teamId:n.team.id,teamCodeName:n.team.nameCode}),!o&&(0,r.jsx)(y.hA,{alpha2:null==(s=n.country)?void 0:s.alpha2})]})]})})}var v=n(50774);let b=e=>{let{mainPosition:s,players:n,sport:i}=e;if(!n.length)return null;let a=p.FG.includes(i),t=p.jT.includes(i),o=n[0].player.position,d=(0,p.mh)(a?s:o);return(0,r.jsxs)(l.az,{children:[t&&(0,r.jsx)(l.az,{px:"lg",pt:"lg",children:(0,r.jsx)(y.q6,{color:d,position:o,isDetailedPositionSport:a,mainPosition:s})}),(0,r.jsx)(l.so,{px:"md",wrap:"wrap",py:"xs",children:n.map(e=>(0,r.jsx)(l.az,{p:"xs",children:(0,r.jsx)(g,{teamPlayer:e,groupPosition:a?s:void 0,coloredPosition:t})},e.player.id))})]})};function w(e){let{staffMember:s}=e;return(0,r.jsxs)(l.so,{w:134,minH:164,br:"sm",pt:"md",bg:"surface.s2",direction:"column",justify:"space-between",children:[(0,r.jsx)(l.az,{position:"relative",border:"onSurface.nLv4",br:"50%",w:64,h:64,mx:"auto",children:(0,r.jsx)(d.d,{id:null==s?void 0:s.id,name:s.name,size:64})}),(0,r.jsx)(l.EY,{my:"md",px:"sm",font:"display.small",color:"onSurface.nLv1",align:"center",lineClamp:2,as:"div",children:s.name}),(0,r.jsx)(l.so,{h:32,bg:"surface.s2",p:"sm",br:"0 0 8px 8px",justify:"space-between",children:(0,r.jsx)(l.EY,{font:"display.small",color:"onSurface.nLv3",ellipsis:!0,children:(0,r.jsx)(v.A,{role:s.role})})})]})}function I(e){let{players:s,supportStaff:n}=e,i=(0,a.useContext)(u.Ws),t=p.jT.includes(i)?(0,p.GM)(s,i):{players:s};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.az,{pb:"sm",children:Object.keys(t).map(e=>(0,r.jsx)(b,{mainPosition:e,players:t[e],sport:i},e))}),n.length>0&&(0,r.jsxs)(l.az,{pb:"sm",p:"xs",children:[(0,r.jsx)(l.EY,{as:"div",h:"40px",pt:"14px",px:"lg",font:"display.small",color:"onSurface.nLv1",children:(0,r.jsx)(c.A,{id:"support_staff"})}),(0,r.jsx)(l.so,{px:"md",wrap:"wrap",py:"xs",children:n.map(e=>(0,r.jsx)(l.az,{p:"xs",children:(0,r.jsx)(w,{staffMember:e})},e.id))})]})]})}var S=n(4967),_=n(70862),C=function(e){return e.Players="players",e.Position="position",e.Age="age",e.Nationality="nationality.short",e.Team="team",e.Support_Staff="support_staff",e}({});let T=e=>{let{staffMember:s,postionColSpan:n}=e;return(0,r.jsxs)(l.XI.Row,{bg:"surface.s1",hoverBg:"surface.s2",children:[(0,r.jsx)(l.XI.Cell,{children:(0,r.jsx)(l.so,{h:32,gap:"lg",align:"center",px:"lg",children:(0,r.jsx)(l.EY,{lineHeight:"24px",font:"body.medium",children:s.name})})}),(0,r.jsx)(l.XI.Cell,{colSpan:n,children:(0,r.jsx)(l.so,{h:32,justify:"center",align:"center",px:"lg",children:(0,r.jsx)(l.EY,{font:"display.small",color:"onSurface.nLv3",ellipsis:!0,children:(0,r.jsx)(v.A,{role:s.role})})})})]})},Y=e=>{var s;let{teamPlayer:n,shownColumns:i}=e,{player:t}=n,o=(0,a.useContext)(u.Ws),{national:d}=(0,a.useContext)(f.f),c=p.jT.includes(o),x=p.FG.includes(o)?(0,p.c7)(t.position,o):void 0;return(0,r.jsxs)(l.XI.Row,{bg:"surface.s1",hoverBg:"surface.s2",children:[i.includes("players")&&(0,r.jsx)(l.XI.Cell,{children:(0,r.jsx)(j.uc,{player:t,sportSlug:t.team.sport.slug,children:(0,r.jsxs)(l.so,{h:32,children:[t.injury&&(0,r.jsx)(l.so,{h:"100%",w:"4px",backgroundColor:"error.default"}),(0,r.jsxs)(l.so,{gap:"lg",h:"100%",align:"center",px:t.injury?"md":"lg",children:[d?null:t.jerseyNumber?(0,r.jsx)(y.C4,{jerseyNumber:t.jerseyNumber}):(0,r.jsx)(l.az,{w:"24",h:"24"}),(0,r.jsx)(l.EY,{lineHeight:"24px",font:"body.medium",children:(0,r.jsx)(h.c,{entity:t})}),t.injury&&(0,r.jsxs)(l.so,{h:"100%",align:"center",children:[(0,r.jsx)(m.gT,{fill:"error.default"}),(0,r.jsx)(l.EY,{lineHeight:"24px",ml:"xs",color:"error.default",font:"assistive.default",children:(0,r.jsx)(_.o,{id:t.injury.status})})]})]})]})})}),i.includes("position")&&(0,r.jsx)(l.XI.Cell,{children:(0,r.jsx)(l.so,{h:32,justify:"center",align:"center",px:"lg",children:(0,r.jsx)(y.Ik,{position:t.position,groupPosition:x,extended:!0,placeholder:!0,noColor:!c})})}),i.includes("age")&&(0,r.jsx)(l.XI.Cell,{children:(0,r.jsx)(l.so,{h:32,justify:"center",align:"center",px:"lg",children:(0,r.jsx)(l.EY,{lineHeight:"16px",font:"body.medium",color:"onSurface.nLv1",as:"div",align:"center",children:t.dateOfBirthTimestamp?(0,r.jsx)(r.Fragment,{children:(0,S.KW)(t.dateOfBirthTimestamp)}):"-"})})}),i.includes("nationality.short")&&(0,r.jsx)(l.XI.Cell,{children:(0,r.jsx)(l.so,{h:32,justify:"center",align:"center",px:"lg",children:(0,r.jsx)(y.hA,{alpha2:null==(s=t.country)?void 0:s.alpha2,placeholder:!0})})}),i.includes("team")&&(0,r.jsx)(l.XI.Cell,{children:(0,r.jsx)(l.so,{h:32,justify:"center",align:"center",px:"lg",children:(0,r.jsx)(y.Xj,{teamId:t.team.id,teamCodeName:t.team.nameCode,placeholder:!0})})})]})},k=e=>{let{players:s,column:n}=e,r="";switch(n){case C.Players:r="name";break;case C.Nationality:r="country.alpha2";break;case C.Age:r="dateOfBirthTimestamp";break;default:r=n}return s.some(e=>{let{player:s}=e;return!!(null==s?void 0:s[r])})},E=e=>{let{players:s,isNational:n}=e,r=[C.Players,C.Position,C.Age,n?C.Team:C.Nationality],i=[];return r.forEach(e=>{k({players:s,column:e})&&i.push(e)}),i},L=e=>{let{messageId:s,align:n="center",...i}=e;return(0,r.jsx)(l.XI.HeadCell,{px:"lg",...i,children:(0,r.jsx)(l.EY,{lineHeight:"40px",font:"body.medium",color:"onSurface.nLv1",align:n,as:"div",children:(0,r.jsx)(c.A,{id:s})})})};function z(e){let{players:s,supportStaff:n}=e,{national:i}=(0,a.useContext)(f.f),t=E({players:s,isNational:i});return(0,r.jsx)(l.az,{py:"lg",children:(0,r.jsxs)(l.XI,{w:"100%",children:[(0,r.jsx)(l.XI.Head,{children:(0,r.jsxs)(l.XI.Row,{children:[t.includes(C.Players)&&(0,r.jsx)(L,{messageId:"players",align:"left"}),t.includes(C.Position)&&(0,r.jsx)(L,{messageId:"position"}),t.includes(C.Age)&&(0,r.jsx)(L,{messageId:"age"}),t.includes(C.Nationality)&&(0,r.jsx)(L,{messageId:"nationality"}),t.includes(C.Team)&&(0,r.jsx)(L,{messageId:"team"})]})}),s.map(e=>(0,r.jsx)(Y,{teamPlayer:e,shownColumns:t},e.player.id)),n.length>0&&(0,r.jsx)(l.XI.Head,{children:(0,r.jsxs)(l.XI.Row,{children:[(0,r.jsx)(L,{messageId:"support_staff",align:"left"}),(0,r.jsx)(L,{messageId:"position",colSpan:t.length-1})]})}),n.map(e=>(0,r.jsx)(T,{staffMember:e,postionColSpan:t.length-1},e.id))]})})}var H=n(21377),A=n(26331),P=n(33243),N=n(84942),B=n(46009),q=n(8973),X=n(54917);let Z=e=>{var s;let{teamPlayer:n,isLast:i,isDetailedPositionSport:t}=e,{national:o}=(0,a.useContext)(f.f),{player:d}=n,u=H.USm.includes(d.team.sport.slug);return(0,r.jsx)(j.uc,{player:d,sportSlug:d.team.sport.slug,children:(0,r.jsxs)(l.so,{align:"center",cursor:"pointer",children:[(0,r.jsx)(x.t,{id:d.id,name:d.name,size:40,mx:"lg"}),(0,r.jsxs)(l.so,{grow:1,h:"100%",p:"10px lg 10px 0",borderBottom:i?"transparent":"onSurface.nLv4",direction:"row",justify:"space-between",align:"center",children:[(0,r.jsxs)(l.so,{direction:"column",justify:"center",gap:"xs",children:[(0,r.jsx)(l.EY,{font:"body.medium",color:"onSurface.nLv1",as:"div",children:(0,r.jsx)(h.c,{entity:d})}),(0,r.jsxs)(l.so,{gap:"sm",align:"center",children:[!o&&d.jerseyNumber&&"undefined"!==d.jerseyNumber&&(0,r.jsx)(l.EY,{lineHeight:"16px",font:"assistive.default",color:"onSurface.nLv3",children:d.jerseyNumber}),d.dateOfBirthTimestamp&&(0,r.jsxs)(l.EY,{lineHeight:"16px",font:"assistive.default",color:"onSurface.nLv3",children:[(0,S.KW)(d.dateOfBirthTimestamp)," ",(0,r.jsx)(c.A,{id:"years_short"})]}),t&&d.position&&(0,r.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,r.jsx)(X.F,{id:d.position})}),o&&(0,r.jsx)(y.Xj,{teamId:d.team.id,teamCodeName:d.team.nameCode,color:"onSurface.nLv3",font:"assistive.default"}),!o&&(0,r.jsx)(y.hA,{alpha2:null==(s=d.country)?void 0:s.alpha2,color:"onSurface.nLv3",font:"assistive.default"})]}),d.injury&&(0,r.jsxs)(l.so,{align:"center",children:[(0,r.jsx)(m.gT,{fill:"error.default"}),(0,r.jsx)(l.EY,{ml:"xs",lineHeight:"12px",color:"error.default",font:"assistive.default",children:(0,r.jsx)(_.o,{id:d.injury.status})})]})]}),u&&(0,r.jsx)(B.e,{entity:H.bq7.Players,id:d.id,location:q.y.EventHeader,type:q.b.Player})]})]})})},O=e=>{var s;let{manager:n}=e,i=(0,A.A)();return n&&(null==n?void 0:n.id)&&(null==n?void 0:n.name)?(0,r.jsx)(o.Zp,{children:(0,r.jsx)(j.yI,{manager:n,children:(0,r.jsxs)(l.so,{align:"center",px:"lg",py:"md",children:[(0,r.jsx)(l.az,{w:40,h:40,br:"50%",border:"onSurface.nLv4",children:(0,r.jsx)(d.d,{id:n.id,style:{width:"100%",height:"100%"}})}),(0,r.jsxs)(l.az,{ml:"lg",children:[(0,r.jsx)(l.EY,{font:"display.medium",color:"onSurface.nLv1",as:"div",children:(0,N.s)(n,i)}),(0,r.jsxs)(l.so,{gap:"sm",align:"center",children:[(0,r.jsx)(l.EY,{lineHeight:"16px",font:"assistive.default",color:"onSurface.nLv3",as:"div",children:(0,r.jsx)(c.A,{id:"team_coach"})}),(0,r.jsx)(y.hA,{alpha2:null==(s=n.country)?void 0:s.alpha2,color:"onSurface.nLv3",font:"assistive.default"})]})]})]})})}):(0,r.jsx)(l.az,{w:"100%"})},R=e=>{let{mainPosition:s,players:n,sport:i}=e;if(!n.length)return null;let a=p.FG.includes(i),t=n[0].player.position,d=(0,p.mh)(a?s:t);return(0,r.jsx)(o.Zp,{children:(0,r.jsxs)(l.az,{py:"md",children:[p.jT.includes(i)&&(0,r.jsxs)(l.so,{pb:"sm",align:"center",children:[(0,r.jsx)(l.az,{bg:d,w:4,h:48,mr:"lg"}),(0,r.jsx)(y.q6,{color:d,position:t,isDetailedPositionSport:a,mainPosition:s})]}),n.map((e,s)=>(0,r.jsx)(Z,{teamPlayer:e,isLast:s===n.length-1,isDetailedPositionSport:a||i===H.QCR.Basketball||i===H.QCR.Cricket},e.player.id))]})})};function F(e){let{players:s,manager:n,supportStaff:i}=e,t=(0,a.useContext)(u.Ws),o=p.jT.includes(t)?(0,p.GM)(s,t):{players:s};return(0,r.jsxs)(l.so,{direction:"column",gap:"sm",children:[(0,r.jsx)(O,{manager:n}),Object.keys(o).map(e=>(0,r.jsx)(R,{mainPosition:e,players:o[e],sport:t},e)),i.length>0&&(0,r.jsxs)(l.az,{mt:22,pb:"sm",children:[(0,r.jsx)(l.so,{px:"lg",mb:"sm",children:(0,r.jsx)(l.EY,{h:20,font:"display.medium",color:"onSurface.nLv1",children:(0,r.jsx)(c.A,{id:"support_staff"})})}),(0,r.jsx)(P.A,{supportStaff:i})]})]})}var M=function(e){return e.BoxViewOpt="box",e.ListViewOpt="list",e}(M||{});let W="players";function D(e){let{players:s,supportStaff:n,manager:d}=e,c=(0,t.A)(),[u,p]=(0,a.useState)("box"),[x]=(0,a.useState)(Math.random()),{isMobile:m}=(0,i.$c)();return((0,a.useEffect)(()=>{m||"box"===u||p("box")},[m]),s.length)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.az,{display:["none","block"],children:(0,r.jsxs)(o.Zp,{children:[(0,r.jsx)(o.Zp.Header,{titleId:"players"}),(0,r.jsxs)(l.so,{mb:"xxs",children:[(0,r.jsx)(l.a,{id:"boxTeamPlayers-".concat(x),name:W,label:c.formatMessage({id:"box_view"}),value:"box",checked:"box"===u,onChange:()=>p("box"),gap:"lg",px:"lg",py:"md"}),(0,r.jsx)(l.a,{id:"listTeamPlayers-".concat(x),name:W,label:c.formatMessage({id:"list_view"}),value:"list",checked:"list"===u,onChange:()=>p("list"),gap:"lg",px:"lg",py:"md"})]}),"box"===u?(0,r.jsx)(I,{players:s,supportStaff:n}):(0,r.jsx)(z,{players:s,supportStaff:n})]})}),(0,r.jsx)(l.az,{display:["block","none"],children:(0,r.jsx)(F,{players:s,manager:d,supportStaff:n})})]}):null}},63869:(e,s,n)=>{n.d(s,{f:()=>i});let r=(0,n(55729).createContext)({});r.displayName="TeamContext";let i=r},66902:(e,s,n)=>{n.d(s,{Im:()=>c,Y9:()=>_,zY:()=>E,cZ:()=>R,fS:()=>M.f,Ay:()=>F.default});var r=n(6029),i=n(41249),l=n(55729),a=n(65789),t=n(52951),o=n(56566),d=n(91811);function c(e){let{team:s}=e,{seoContent:n}=(0,l.useContext)(t.xV),c=(0,d.n)(s);return(null==n?void 0:n.about)?(0,r.jsxs)(a.Zp,{"data-qa-id":"seo-about",children:[(0,r.jsx)(a.Zp.Header,{titleId:"team.about",values:{team:c},as:"h3"}),(0,r.jsx)(i.az,{px:"lg",pb:"lg",children:(0,r.jsx)(o.y,{dangerouslySetInnerHTML:{__html:n.about}})})]}):null}var u=n(49519),p=n(21377),x=n(95083),m=n(90248),j=n(18040),h=n(54409),y=n(42901),f=n(98449),g=n(46009),v=n(64073),b=n(8973),w=n(94604);let I=e=>{var s,n,r;return e.type===p.YVh.Person&&e.country.alpha2?"/static/images/flags/".concat(null==(r=e.country)||null==(n=r.alpha2)?void 0:n.toLowerCase(),".png"):e.sport.slug===p.QCR.Minifootball&&(null==(s=e.primaryUniqueTournament)?void 0:s.id)?p.V3t.image(e.primaryUniqueTournament.id):p.cWY.image(e.id)},S=e=>{let{id:s,sport:n,hasStatisticsSeasons:i}=e,l=n===p.QCR.Tennis;return i?(0,r.jsx)(j.O,{routeKey:"team.compare",query:{leftTeamId:s},params:{sport:n},Icon:l?h.cSg:h.l3$,children:(0,r.jsx)(m.A,{id:"compare"})}):null};function _(e){var s;let{team:n,hasStatisticsSeasons:l}=e,{isDesktop:a}=(0,x.$c)(),t=n.type===p.YVh.Person,o=n.sport.slug,d=[p.QCR.Football,p.QCR.Basketball,p.QCR.Tennis].includes(o);return(0,r.jsx)(i.az,{bg:"surface.s1",br:[void 0,"xl"],py:["lg",0],children:(0,r.jsx)(y.z,{bgImageSrc:I(n),flexProps:{py:[0,"lg"]},children:(0,r.jsxs)(i.so,{w:"100%",grow:1,align:"center",px:"lg",children:[(0,r.jsxs)(i.so,{grow:1,align:"center",maxW:["100%",void 0],children:[(0,r.jsx)(i.az,{br:[0,"xs"],w:[48,112],h:[48,112],ml:[0,"sm"],mr:["lg","xl"],bg:t?void 0:[void 0,"surface.s1"],elevation:t?void 0:[void 0,2],children:(0,r.jsx)(u.p,{id:n.id,name:n.name,w:[48,t?110:88],h:[48,t?110:88],m:[0,t?0:"md"],grayscale:null==(s=n.playerTeamInfo)?void 0:s.deceased,style:{verticalAlign:"top"}})}),(0,r.jsxs)(i.so,{flex:"1 1 auto",direction:"column",align:"flex-start",maxW:["calc(100% - 64px)",200,"100%"],mr:[0,"lg"],gap:["xs","sm"],w:"100%",children:[(0,r.jsxs)(i.so,{gap:"sm",align:"center",children:[(0,r.jsx)(i.EY,{as:"h2",m:0,font:["display.large","display.extraLarge"],c:["onSurface.nLv1","onColor.primary"],w:"100%",children:(0,r.jsx)(w.Rm,{team:n,full:!0})}),a&&(0,r.jsx)(g.e,{id:n.id,entity:p.bq7.Teams,location:b.y.Header,type:b.b.Team,isOnOverlay:!0})]}),!t&&!n.national&&n.country.name&&(0,r.jsxs)(i.so,{align:"center",gap:["xs","sm"],children:[(0,r.jsx)(u.w,{alpha2:n.country.alpha2,name:n.country.name,w:[16,32],h:[16,32]}),(0,r.jsx)(i.EY,{font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],children:(0,r.jsx)(f.m,{slug:n.country.slug||"",name:n.country.name})})]}),d&&(0,r.jsx)(S,{id:n.id,sport:o,hasStatisticsSeasons:l})]})]}),a?(0,r.jsx)(i.so,{children:(0,r.jsxs)(v.K,{id:n.id,name:(0,r.jsx)(w.Rm,{team:n}),entity:p.bq7.Teams,type:b.b.Team,children:[(0,r.jsx)(u.p,{id:n.id,name:n.name,w:32,h:32,mr:"sm",style:{verticalAlign:"top"}}),(0,r.jsx)(i.EY,{font:"display.medium",color:"primary.default",mr:"sm",children:(0,r.jsx)(w.Rm,{team:n})})]})}):(0,r.jsx)(g.e,{id:n.id,entity:p.bq7.Teams,location:b.y.Header,type:b.b.Team})]})})})}var C=n(33752),T=n(70591),Y=n(27289),k=n(52695);function E(e){let{sport:s,uniqueTournament:n,category:a,teamName:o}=e,{seoContent:d}=(0,l.useContext)(t.xV);return(0,r.jsx)(i.az,{bg:["surface.s1","transparent"],children:(0,r.jsxs)(C.B,{children:[(0,r.jsx)(C.B.Item,{children:(0,r.jsx)(T.di,{translatedParams:{sport:s.slug},children:(0,r.jsx)(Y.o,{sportSlug:s.slug})})}),(0,r.jsx)(C.B.Item,{children:(0,r.jsx)(T.Z6,{category:a,children:(0,r.jsx)(f.m,{...a})})}),n?(0,r.jsx)(C.B.Item,{children:(0,r.jsx)(T.tQ,{tournament:n,children:(0,r.jsx)(k.O,{uniqueTournament:n})})}):null,(0,r.jsx)(C.B.Title,{children:(null==d?void 0:d.heading)||"".concat(o," - Sofascore")})]})})}var L=n(4967),z=n(21501),H=n(947),A=n(90510),P=n(3518),N=n(55938),B=n(45860),q=n(54053);function X(e){var s;let{id:n}=e,[a,t]=(0,l.useState)(!1),o=(0,H.A)(),{data:d,isLoading:c}=(0,B.Ay)(p.cWY.recentUniqueTournaments(n));if(!(null==d||null==(s=d.uniqueTournaments)?void 0:s.length))return c?(0,r.jsx)(i.az,{h:32}):null;let u=[...d.uniqueTournaments].reverse(),x=u[0].name;return u[0].round&&(x+=", "+(u[0].winner?o.formatMessage({id:"winner"}):u[0].round)),(0,r.jsxs)(i.so,{h:32,px:"lg",py:"sm",justify:"space-between",position:"relative",children:[(0,r.jsxs)(i.az,{position:"relative",grow:1,children:[(0,r.jsx)(i.az,{cursor:"pointer",onClick:()=>t(!0),children:(0,r.jsxs)(i.EY,{lineHeight:"16px",font:"body.medium",color:"primary.default",hover:!0,ellipsis:!0,children:[(0,r.jsx)(m.A,{id:"basic.previous"}),(0,r.jsx)(h.HW5,{ml:"xs",w:16,h:16,fill:"primary.default"})]})}),a&&(0,r.jsx)(q.A,{header:"tennis.previousTournaments",isOpen:a,setIsOpen:t,children:(0,r.jsx)(i.az,{w:["100%",320],pb:"sm",children:u.map(e=>(0,r.jsx)(T.tQ,{tournament:e.uniqueTournament,children:(0,r.jsxs)(i.so,{w:"100%",cursor:"pointer",hoverBg:"surface.s2",p:"lg",justify:"space-between",children:[(0,r.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",maxW:"50%",ellipsis:!0,as:"div",children:(0,r.jsx)(k.O,{uniqueTournament:e.uniqueTournament})}),(0,r.jsxs)(i.so,{w:"50%",justify:"flex-end",children:[(0,r.jsx)(i.EY,{maxW:"calc(100% - 28px)",font:"body.medium",color:"primary.default",ellipsis:!0,as:"div",hover:!0,children:e.winner?o.formatMessage({id:"winner"}):e.round||""}),(0,r.jsx)(h.CCT,{fill:"primary.default",ml:"xs"})]})]})},e.id))})})]}),(0,r.jsx)(i.EY,{pl:"lg",font:"body.medium",color:"onSurface.nLv1",lineClamp:1,children:x})]})}let Z=e=>{let{id:s,label:n,value:l,uppercase:a}=e;return l?(0,r.jsxs)(i.so,{px:"lg",py:["sm","md"],minW:140,w:["100%","auto"],justify:["space-between","center"],direction:["row","column"],children:[(0,r.jsx)(i.EY,{font:["body.medium","assistive.micro"],c:["onSurface.nLv1","onSurface.nLv3"],align:"center",mb:"xxs",textTransform:a?"uppercase":void 0,as:"div",children:n||(0,r.jsx)(m.A,{id:s})}),(0,r.jsx)(i.EY,{font:["body.medium","display.medium"],color:"onSurface.nLv1",align:"center",textTransform:a?"uppercase":void 0,as:"div",children:l})]}):null};function O(e){let{messageId:s,value:n,children:l}=e;return n||l?(0,r.jsxs)(i.so,{w:"100%",px:"lg",py:"sm",justify:"space-between",children:[(0,r.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,r.jsx)(m.A,{id:s})}),!l&&(0,r.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",children:n}),!n&&l]}):null}function R(e){let{fullName:s,teamId:n,country:{alpha2:l},playerInfo:{height:t,birthDateTimestamp:o,plays:d,prizeCurrentRaw:c,prizeTotalRaw:u,turnedPro:j,residence:h,birthplace:y,number:f},ranking:g,driverHistory:v}=e,b=(0,H.A)(),{isMobile:w}=(0,x.$c)(),I=(0,z.hX)(),S=w&&!I,_=!!d&&Object.keys(p.u41).some(e=>p.u41[e]===d),C=c&&(0,p.oaz)(c),Y=u&&(0,p.oaz)(u),k=C||Y,E=(null==g?void 0:g.type)&&p.ruz[g.type],B=(null==g?void 0:g.bestRanking)||(null==g?void 0:g.ranking),q=(null==g?void 0:g.type)===p.sqH.AtpSingles||(null==g?void 0:g.type)===p.sqH.AtpSinglesLive;return(0,r.jsxs)(a.HH,{isCard:!S,children:[!S&&(0,r.jsx)(a.Zp.Header,{titleId:"team.playerInfo"}),(0,r.jsxs)(i.so,{direction:["column","row"],p:[0,"sm"],gap:"sm",children:[(0,r.jsx)(i.so,{w:["100%",B||k?"50%":"100%"],direction:"column",gap:"sm",children:(0,r.jsxs)(a.Zp,{isInverseDesktop:!0,children:[S&&(0,r.jsx)(a.Zp.Header,{titleId:"basic.profile"}),(0,r.jsxs)(i.so,{py:"sm",justify:"center",align:"center",wrap:"wrap",direction:["column","row"],children:[S&&(0,r.jsx)(O,{messageId:"basic.fullName",value:s}),!!l&&(0,r.jsx)(Z,{id:S?"country":"nationality",value:(0,r.jsxs)(i.so,{justify:"center",align:"center",gap:"xs",children:[(0,r.jsx)(i._V,{src:"/static/images/flags/".concat(l.toLowerCase(),".png"),width:16,height:16,br:"50%",alt:l}),(0,r.jsx)("div",{children:(0,N.KH)(l)})]}),uppercase:!S}),S&&(0,r.jsx)(O,{messageId:"basic.residence",value:h}),S&&(0,r.jsx)(O,{messageId:"basic.birthplace",value:y}),!!o&&(0,r.jsx)(Z,{label:S?void 0:(0,r.jsx)(A.XU,{value:new Date(1e3*o),timeZone:"UTC",...L.or.dateWithShortMonth}),id:S?"age":void 0,value:(0,r.jsxs)(r.Fragment,{children:["".concat((0,L.KW)(o)," "),!S&&(0,r.jsx)(m.A,{id:"years_short"}),S&&(0,r.jsxs)(r.Fragment,{children:[" (",(0,r.jsx)(A.XU,{value:new Date(1e3*o),timeZone:"UTC",...L.or.dateWithShortMonth}),")"]})]}),uppercase:!S}),!f&&!!t&&(0,r.jsx)(Z,{id:"player_height",value:(0,r.jsx)(i.EY,{style:{font:"inherit"},textTransform:"lowercase",children:(0,r.jsx)(P.Z,{value:t,fromUnit:"m"})}),uppercase:!S}),!!f&&(0,r.jsx)(Z,{id:"helmet.number",value:f,uppercase:!S}),_&&(0,r.jsx)(Z,{id:"playerInfo.plays",value:(0,r.jsx)(m.A,{id:"playerInfo.full.".concat(d)}),uppercase:!S}),j&&(0,r.jsx)(Z,{id:"playerInfo.turnedPro",value:j,uppercase:!S}),(h||y||v)&&(0,r.jsxs)(r.Fragment,{children:[!S&&(0,r.jsx)(O,{messageId:"basic.residence",value:h}),!S&&(0,r.jsx)(O,{messageId:"basic.birthplace",value:y}),(0,r.jsx)(O,{messageId:"team.championshipTitles",value:null==v?void 0:v.total[0].worldChampionshipTitles}),(0,r.jsx)(O,{messageId:"gp.starts",value:null==v?void 0:v.total[0].racesStarted}),(0,r.jsx)(O,{messageId:"podiums",value:null==v?void 0:v.total[0].podiums}),(0,r.jsx)(O,{messageId:"wins",value:null==v?void 0:v.total[0].victories}),(0,r.jsx)(O,{messageId:"polePositions",value:null==v?void 0:v.total[0].polePositions})]})]})]})}),(B||k)&&(0,r.jsxs)(i.so,{w:["100%","50%"],direction:"column",gap:"sm",children:[B&&(0,r.jsxs)(a.Zp,{isInverseDesktop:!0,children:[E&&(0,r.jsx)(a.Zp.Header,{title:E}),(0,r.jsxs)(i.az,{pb:["sm","lg"],children:[(0,r.jsx)(O,{messageId:"team.careerHigh",value:null==g?void 0:g.bestRanking}),(null==g?void 0:g.ranking)&&(null==g?void 0:g.points)&&(0,r.jsx)(O,{messageId:"team.currentRank",children:(0,r.jsx)(T.N_,{routeKey:"rankings",params:{sport:"tennis",category:"".concat(q?"atp":"wta")},hash:String(n),children:(0,r.jsx)(i.EY,{font:"body.medium",color:E?"primary.default":"onSurface.nLv1",hover:!0,style:{cursor:"pointer"},children:"".concat(null==g?void 0:g.ranking,". (").concat((null==g?void 0:g.points)?(null==g?void 0:g.points)+" "+b.formatMessage({id:"pts"}):"",")")})})}),(0,r.jsx)(X,{id:n})]})]}),k&&(0,r.jsxs)(a.Zp,{isInverseDesktop:!0,children:[(0,r.jsx)(a.Zp.Header,{titleId:"prizeMoney"}),(0,r.jsxs)(i.az,{pb:["sm","lg"],children:[!!C&&(0,r.jsx)(O,{messageId:"playerInfo.thisYear",value:"".concat(C.parsedValue).concat(C.measure||""," ").concat(C.currencySign)}),!!Y&&(0,r.jsx)(O,{messageId:"playerInfo.careerTotal",value:"".concat(Y.parsedValue).concat(Y.measure||""," ").concat(Y.currencySign)})]})]})]})]})]})}var F=n(62927),M=n(63869)},70862:(e,s,n)=>{n.d(s,{o:()=>t});var r=n(6029),i=n(90248);let l=JSON.parse('{"dayToDay":"injury_day_to_day","outForSeason":"injury_season","outIndefinitely":"injury_indefinitely","unknown":"injury_unknown","injuredReserve":"injury_reserve","Undisclosed":"injury_undisclosed","Abdominal":"injury_abdominal","Knee":"injury_knee","Leg":"injury_leg","Blood Clotting":"injury_blood_clotting","Lower Body":"injury_lower_body","Lower-Body":"injury_lower_body","Foot":"injury_foot","Illness":"injury_illness","Neck":"injury_neck","Wrist":"injury_wrist","Concussion":"injury_concussion","Personal":"injury_personal","Pectoral Muscle":"injury_pectoral_muscle","Shoulder":"injury_shoulder","Shouler":"injury_shoulder","Clavicle Fracture":"injury_clavicle_fracture","Back":"injury_back","Achilles":"injury_achilles","Concussion Protocol":"injury_concussion_protocol","Hand":"injury_hand","Groin":"injury_groin","Pectoral":"injury_pectoral","Jaw":"injury_jaw","Head":"injury_head","Upper body":"injury_upper_body","Upper-Body":"injury_upper_body","Upper Body":"injury_upper_body","Hip":"injury_hip","Ankle":"injury_ankle","Mid-Body":"injury_mid_body","Finger":"injury_finger","Nose":"injury_nose"}');var a=n(27892);let t=e=>{let{id:s}=e;return(0,r.jsx)(i.A,{id:(0,a.O)(l,s)})}},80593:(e,s,n)=>{n.d(s,{A:()=>a});var r=n(6029),i=n(55729),l=n(12153);let a=(0,i.forwardRef)((e,s)=>{let{venue:n,children:i,...a}=e;return n&&!n.hidden&&n.country.slug?(0,r.jsx)(l.A,{...a,routeKey:"venue",params:{country:n.country.slug,slug:n.slug,id:n.id},ref:s,children:i}):(0,r.jsx)(r.Fragment,{children:i})})},91811:(e,s,n)=>{n.d(s,{T:()=>l,n:()=>i});var r=n(21377);function i(e){return e.fullName?e.fullName.split(",").reverse().map(e=>e.trim()).join(" "):e.name}function l(e,s){return e.slug===r.QCR.Football?s.players.length>10:s.players.length>4}}}]);