!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="57aa2652-836e-41f0-aecc-af9bcdf2b051",e._sentryDebugIdIdentifier="sentry-dbid-57aa2652-836e-41f0-aecc-af9bcdf2b051")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5853],{6675:(e,t,a)=>{"use strict";a.d(t,{T2:()=>u,N9:()=>h,Od:()=>f,Vd:()=>y}),a(72653);var r=a(6029),n=a(21377),s=a(4967),i=a(95669),o=a.n(i),l=a(947),c=a(58771),d=a(26331),m=a(73088),p=a(97047);function u(e){var t;let{manager:a}=e,i=(0,l.A)(),u=(0,d.A)(),g=a.dateOfBirthTimestamp,h={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:i.formatMessage({id:"sport.".concat(a.sport.slug)}),item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(u,"eventList",{sport:a.sport.slug}).route)},{"@type":"ListItem",position:2,name:a.name}]},x={"@context":"https://schema.org","@type":"Person",name:a.name,birthDate:g?s.pp(g).toISOString():void 0,url:"https://www.sofascore.com/manager/".concat(a.slug,"/").concat(a.id),nationality:a.country&&{"@type":"Country",name:a.country.name},affiliation:(null==(t=a.teams)?void 0:t[0])&&{"@type":"Organization",name:a.teams[0].name,sameAs:(0,p.WG)(a.teams[0].id,u)}};return(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)(h)}),",",(0,r.jsx)("script",{...(0,c.QQ)(x)}),","]})}var g=a(84942);function h(e){let{player:t}=e,a=(0,l.A)(),i=(0,d.A)(),u=(0,g.s)(t,i),h=t.dateOfBirthTimestamp,x=t.team.primaryUniqueTournament,y=1,f=[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(t.team.sport.slug)}),item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(i,"eventList",{sport:t.team.sport.slug}).route)}];x&&(f.push({"@type":"ListItem",position:++y,name:a.formatMessage({id:x.category.slug}),item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(i,"eventList.category",{sport:x.category.sport.slug,category:x.category.slug}).route)}),f.push({"@type":"ListItem",position:++y,name:x.name,item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(i,"uniqueTournament",{sport:x.category.sport.slug,category:x.category.slug,tournament:x.slug,id:x.id}).route)})),f.push({"@type":"ListItem",position:++y,name:u});let j={"@context":"https://schema.org","@type":"Person",name:u,birthDate:h?s.pp(h).toISOString():void 0,url:"https://www.sofascore.com/player/".concat(t.slug,"/").concat(t.id),nationality:t.country&&{"@type":"Country",name:t.country.name},affiliation:t.team&&{"@type":"Organization",name:t.team.name,sameAs:(0,p.WG)(t.team.id,i)},gender:(0,p.o_)(t.team.gender),height:t.height?"".concat(t.height," cm"):void 0,sameAs:(0,p.YL)(t.id,i)};return(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:f})}),",",(0,r.jsx)("script",{...(0,c.QQ)(j)}),","]})}var x=a(85905);function y(e){var t,a,i,u;let{team:h,players:y}=e,f=(0,l.A)(),j=(0,d.A)(),v=(0,g.s)(h,j);if(h.type!==n.YVh.Regular)return null;let w=h.sport,b=(null==(t=h.venue)?void 0:t.country.alpha2)||h.country.alpha2||h.category.alpha2||(null==(a=h.primaryUniqueTournament)?void 0:a.category.alpha2),_=(0,p.o_)(h.gender),k=h.foundationDateTimestamp,T=h.primaryUniqueTournament,L=1,C=[{"@type":"ListItem",position:1,name:f.formatMessage({id:"sport.".concat(w.slug)}),item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(j,"eventList",{sport:w.slug}).route)},{"@type":"ListItem",position:++L,name:f.formatMessage({id:h.category.slug}),item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(j,"eventList.category",{sport:h.category.sport.slug,category:h.category.slug}).route)}];T&&C.push({"@type":"ListItem",position:++L,name:T.name,item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(j,"uniqueTournament",{sport:T.category.sport.slug,category:T.category.slug,tournament:T.slug,id:T.id}).route)}),C.push({"@type":"ListItem",position:++L,name:v});let S={"@context":"https://schema.org","@type":"SportsTeam",name:h.fullName,sport:h.sport.name,gender:_,foundingDate:k?s.pp(k).toISOString():void 0,logo:n.cWY.image(h.id),url:"https://www.sofascore.com/team/".concat(h.sport.slug,"/").concat(h.slug,"/").concat(h.id),sameAs:(0,p.WG)(h.id,j)};return h.manager&&(S.coach={"@type":"Person",name:h.manager.name}),y&&(0,x.TE)(w,y)&&(S.athlete=y.players.map(e=>{let t=e.player,a=t.dateOfBirthTimestamp;return{"@type":"Person",name:(0,g.s)(t,j),birthDate:a?s.pp(a).toISOString():void 0,nationality:t.country&&{"@type":"Country",name:t.country.name},gender:_,sameAs:(0,p.YL)(t.id,j)}})),b&&(S.address={"@type":"PostalAddress",addressCountry:(0,p.lE)(b),addressLocality:null==(u=h.venue)||null==(i=u.city)?void 0:i.name}),T&&(S.memberOf={"@type":"SportsOrganization",name:T.name,sameAs:(0,p._z)(T.id,j)}),(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:C})}),",",(0,r.jsx)("script",{...(0,c.QQ)(S)}),","]})}function f(e){let{referee:t}=e,a=(0,l.A)(),i=(0,d.A)(),p=t.dateOfBirthTimestamp,u={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(t.sport.slug)}),item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(i,"eventList",{sport:t.sport.slug}).route)},{"@type":"ListItem",position:2,name:t.name}]},g={"@context":"https://schema.org","@type":"Person",name:t.name,birthDate:p?s.pp(p).toISOString():void 0,url:"https://www.sofascore.com/referee/".concat(t.slug,"/").concat(t.id),nationality:t.country&&{"@type":"Country",name:t.country.name}};return(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)(u)}),",",(0,r.jsx)("script",{...(0,c.QQ)(g)}),","]})}},43381:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/manager",function(){return a(75005)}])},55803:(e,t,a)=>{"use strict";a.d(t,{E:()=>r});let r=(0,a(76356).I4)("div",{base:{bg:"surface.s1",border:"1px solid surface.s2",br:"lg",p:"lg",elevation:"2","& a":{color:"primary.default"},"& p":{margin:"0",paddingTop:"sm",paddingBottom:"md"},"& ul":{margin:"0",paddingBottom:"md",listStyleType:"none","& > li":{display:"flex","&:before":{content:"- ",marginRight:"sm"},"& + li":{marginTop:"sm"}}}}})},58775:(e,t,a)=>{"use strict";a.d(t,{d:()=>l});var r=a(6029),n=a(95083),s=a(76356),i=a(90248),o=a(54409);let l=e=>{let{isOpen:t,onClick:a}=e;return(0,r.jsx)(s.so,{align:"center",justify:"center",p:"lg",children:(0,r.jsx)(s.I4.button,{onClick:a,padding:"0",cursor:"pointer",children:(0,r.jsxs)(s.so,{align:"center",children:[(0,r.jsx)(n.EY,{lineHeight:"16px",textStyle:"display.small",color:"primary.default",children:(0,r.jsx)(i.A,{id:t?"show_less":"show_more"})}),t?(0,r.jsx)(o.t8v,{fill:"primary.default",ml:"xs"}):(0,r.jsx)(o.QtO,{fill:"primary.default",ml:"xs"})]})})})}},72653:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var r=a(6029),n=a(21377),s=a(4967),i=a(95669),o=a.n(i),l=a(947),c=a(58771),d=a(26331),m=a(73088),p=a(97047);let u=(e,t,a)=>e.type===n.YVh.Person?{"@type":"Person",name:e.name}:{"@type":"SportsTeam",sport:t.name,name:e.name,logo:n.cWY.image(e.id),url:"https://www.sofascore.com/team/".concat(t.slug,"/").concat(e.slug,"/").concat(e.id),sameAs:(0,p.WG)(e.id,a)},g=(e,t)=>{var a,r,n,s,i;let o=(null==(a=e.tournament.uniqueTournament)?void 0:a.name)||e.tournament.name,l=(null==(r=e.season)?void 0:r.year)||(null==(n=e.season)?void 0:n.name)||t.getFullYear()||"",c=(e.tournament.roundPrefix||"")+" "+((null==(s=e.roundInfo)?void 0:s.name)||((null==(i=e.roundInfo)?void 0:i.round)?"Round ".concat(e.roundInfo.round):""));return"".concat(o," ").concat(l," ").concat(c.trim()).trim()},h=e=>{switch(e.status.type){case n.XUj.Canceled:case n.XUj.Suspended:return"EventCancelled";case n.XUj.Postponed:return"EventPostponed";default:return"EventScheduled"}};function x(e){let{event:t}=e,a=(0,l.A)(),i=(0,d.A)(),x=t.tournament.category.sport,y=s.pp(t.startTimestamp),f=g(t,y),j=t.tournament.category,v=t.tournament.uniqueTournament,w=1,b=[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(x.slug)}),item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(i,"eventList",{sport:x.slug}).route)},{"@type":"ListItem",position:++w,name:a.formatMessage({id:j.slug}),item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(i,"eventList.category",{sport:j.sport.slug,category:j.slug}).route)}];v&&b.push({"@type":"ListItem",position:++w,name:v.name,item:"".concat(n.VTF).concat(m.z.getTranslatedRoute(i,"uniqueTournament",{sport:v.category.sport.slug,category:v.category.slug,tournament:v.slug,id:v.id}).route)}),b.push({"@type":"ListItem",position:++w,name:"".concat(t.homeTeam.name," - ").concat(t.awayTeam.name)});let _={"@context":"https://schema.org","@type":"SportsEvent",name:"".concat(t.homeTeam.name," vs ").concat(t.awayTeam.name),eventStatus:h(t),description:f,homeTeam:u(t.homeTeam,x,i),awayTeam:u(t.awayTeam,x,i),startDate:y.toISOString(),sport:x.name};if(t.venue){var k,T,L;_.location=[{"@type":"Place",name:null==(k=t.venue)?void 0:k.stadium.name,maximumAttendeeCapacity:null==(T=t.venue)?void 0:T.stadium.capacity,address:{"@type":"PronounceableText"}}],t.venue.city.name&&_.location.concat({"@type":"Place",name:t.venue.city.name}),t.venue.country.alpha2&&_.location.concat({"@type":"Country",name:(0,p.lE)(null==(L=t.venue)?void 0:L.country.alpha2)})}else t.tournament.category.alpha2&&(_.location={"@type":"Country",name:(0,p.lE)(t.tournament.category.alpha2)});return(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:b})}),",",(0,r.jsx)("script",{...(0,c.QQ)(_)}),","]})}},75005:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>ej});var r=a(6029),n=a(21377),s=a(95669),i=a.n(s),o=a(19451),l=a(50417),c=a(26331),d=a(73088),m=a(42678),p=a(62859),u=a(14861),g=a(29129),h=a(53486),x=a(93471),y=a(8973),f=a(55729),j=a(55803),v=a(65789),w=a(84942),b=a(52951);function _(e){let{manager:t}=e,{seoContent:a}=(0,f.useContext)(b.xV),n=(0,w.z)(t);return(null==a?void 0:a.about)?(0,r.jsxs)(v.Zp,{children:[(0,r.jsx)(v.Zp.Header,{titleId:"manager.about",values:{manager:n}}),(0,r.jsx)(j.E,{p:"lg",children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:a.about},"data-qa-id":"seo-about"})})]}):null}var k=a(41249),T=a(90248),L=a(33752),C=a(27289),S=a(70591);function A(e){let{manager:t}=e,{seoContent:a}=(0,f.useContext)(b.xV);return(0,r.jsxs)(L.B,{children:[(0,r.jsx)(L.B.Item,{children:(0,r.jsx)(S.di,{translatedParams:{sport:t.sport.slug},children:(0,r.jsx)(C.o,{sportSlug:t.sport.slug})})}),(0,r.jsx)(L.B.Item,{children:(0,r.jsx)(k.EY,{color:"onSurface.nLv3",font:"assistive.default",fontWeight:"bold",children:(0,r.jsx)(T.A,{id:"manager"})})}),(0,r.jsx)(L.B.Title,{children:(null==a?void 0:a.heading)||"".concat(t.name," - Sofascore")})]})}var E=a(71024),I=a.n(E),P=a(75751),z=a(98516),H=a(33144),F=a(90510),B=a(58775),D=a(94604);let M=e=>{let{startTimestamp:t,endTimestamp:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F.XU,{value:1e3*t,month:"numeric",year:"numeric"}),a&&a5?[...t.careerHistory].splice(0,5):t.careerHistory;return(0,r.jsxs)(k.az,{children:[(0,r.jsxs)(k.so,{p:"lg",pb:"sm",justify:"space-between",align:"center",children:[(0,r.jsx)(k.EY,{font:"assistive.default",color:"onSurface.nLv1",children:(0,r.jsx)(T.A,{id:"manager.career"})}),(0,r.jsx)(k.EY,{font:"body.small",color:"onSurface.nLv3",children:(0,r.jsx)(T.A,{id:"manager.pointsPerMatchLong"})})]}),s.map((e,t)=>(0,r.jsx)(Y,{period:e,isLast:t===s.length-1},"".concat(e.startTimestamp,"-").concat(e.team&&e.team.id))),t.careerHistory.length>5&&(0,r.jsx)(B.d,{isOpen:a,onClick:()=>n(e=>!e)})]})}let Q=I()(()=>Promise.all([a.e(3170),a.e(7462),a.e(3307)]).then(a.bind(a,23307)),{loadableGenerated:{webpack:()=>[23307]},ssr:!1,loading:()=>(0,r.jsx)(k.az,{h:162})}),R=e=>{let{showCareerHistory:t,managerCareerHistory:a,managerDetails:n}=e;if(!t)return null;let s=function(e){let t=e.manager&&e.manager.performance;return t?(0,z.M)(t.totalPoints/t.total,2):""}(n);return(0,r.jsx)(P.t,{tag:"ManagerCareerHistory",children:(0,r.jsxs)(v.Zp,{children:[(0,r.jsx)(v.Zp.Header,{titleId:"manager.careerHistory",as:"h3"}),(0,r.jsxs)(k.so,{direction:["column","row"],children:[(0,r.jsxs)(k.az,{w:["100%","50%"],pb:"lg",children:[(0,r.jsx)(Q,{managerDetails:n,managerCareerHistory:a}),(0,r.jsxs)(k.az,{children:[(0,r.jsxs)(k.so,{px:"lg",align:"center",children:[(0,r.jsx)(k.az,{h:4,w:24,bg:"secondary.default",mr:"sm"}),(0,r.jsx)(k.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,r.jsx)(T.A,{id:"manager.averagePointsDescription"})})]}),(0,r.jsxs)(k.so,{align:"center",h:32,justify:"space-between",px:"lg",children:[(0,r.jsxs)(k.so,{align:"center",children:[(0,r.jsx)(k.az,{h:4,w:11,bg:"error.default",mr:2}),(0,r.jsx)(k.az,{h:4,w:11,bg:"error.default",mr:"sm"}),(0,r.jsx)(k.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,r.jsx)(T.A,{id:"manager.averagePointsTotalDescription"})})]}),(0,r.jsx)(k.EY,{font:"assistive.default",color:"onSurface.nLv3",children:s})]})]})]}),(0,r.jsx)(k.az,{w:["100%","50%"],pb:"sm",children:(0,r.jsx)(O,{managerCareerHistory:a})})]})]})})};var W=a(4967),V=a(95083),U=a(947),G=a(55938);let N=e=>{let{inLine:t,label:a,value:n,children:s}=e;return n||s?(0,r.jsxs)(k.az,{w:t?"auto":"33%",pt:"md",pb:10,px:"lg",children:[(0,r.jsx)(k.EY,{font:"assistive.micro",color:"onSurface.nLv3",align:"center",mb:"xxs",as:"div",textTransform:"uppercase",children:a}),(0,r.jsx)(k.EY,{font:"display.medium",color:"onSurface.nLv1",align:"center",as:"div",children:n||s})]}):null},X=e=>Number(e)>12?"".concat(e,"%"):"",K=e=>{var t,a;let{manager:n,inLine:s}=e,i=(0,U.A)(),o=(0,f.useContext)(p.Ws),l=n.dateOfBirthTimestamp?(0,r.jsx)(F.XU,{value:new Date(1e3*n.dateOfBirthTimestamp),...W.or.dateWithShortMonth,timeZone:"UTC"}):null;return(0,r.jsxs)(r.Fragment,{children:[n.teams&&n.teams.map(e=>(0,r.jsx)(S.gT,{sport:n.sport.slug,team:e,children:(0,r.jsxs)(k.so,{px:"lg",py:"sm",gap:"lg",align:"center",children:[(0,r.jsx)(H.p,{id:e.id,name:e.name,size:40,national:e.national}),(0,r.jsx)(k.EY,{font:"display.medium",color:"onSurface.nLv1",as:"div",children:(0,r.jsx)(D.Rm,{team:e})})]})},e.id)),!n.team&&!n.dateOfDeathTimestamp&&(0,r.jsxs)(k.so,{px:"lg",py:"sm",gap:"lg",align:"center",borderBottom:"onSurface.nLv4",children:[(0,r.jsx)(H.p,{id:-1,size:40}),(0,r.jsx)(k.EY,{font:"display.medium",color:"onSurface.nLv1",as:"div",children:(0,r.jsx)(T.A,{id:"player.noTeam"})})]}),(0,r.jsxs)(k.so,{wrap:"wrap",children:[(null==(t=n.country)?void 0:t.alpha2)&&(0,r.jsx)(N,{label:(0,r.jsx)(T.A,{id:"nationality"}),inLine:s,children:(0,r.jsxs)(k.so,{align:"center",justify:"center",gap:"xs",children:[(0,r.jsx)(k._V,{src:"/static/images/flags/".concat(n.country.alpha2.toLowerCase(),".png"),width:16,height:16,br:"50%",loading:"lazy",alt:n.country.alpha2}),(0,r.jsx)("span",{children:(0,G.KH)(n.country.alpha2)})]})}),l&&n.dateOfDeathTimestamp&&(0,r.jsx)(N,{inLine:s,label:l,value:(0,r.jsx)(T.A,{id:"deceasedYear",values:{year:(0,r.jsx)(F.XU,{value:1e3*n.dateOfDeathTimestamp,year:"numeric"})}})}),l&&n.dateOfBirthTimestamp&&!n.dateOfDeathTimestamp&&(0,r.jsx)(N,{inLine:s,label:l,value:"".concat((0,W.KW)(n.dateOfBirthTimestamp)," ").concat(i.formatMessage({id:"years_short"}))}),n.preferredFormation&&(0,r.jsx)(N,{inLine:s,label:(0,r.jsx)(T.A,{id:"manager.prefFormation"}),value:n.preferredFormation}),(null==(a=n.performance)?void 0:a.total)&&(0,r.jsx)(N,{inLine:s,label:(0,r.jsx)(T.A,{id:"games",values:{sport:o}}),value:n.performance.total}),n.performance&&(0,r.jsx)(N,{inLine:s,label:(0,r.jsx)(T.A,{id:"manager.pointsPerMatch"}),value:(0,z.M)(n.performance.totalPoints/n.performance.total,2)})]})]})},q=e=>{let{performance:t}=e,a=Math.round(t.wins/t.total*100),n=Math.round(t.losses/t.total*100),s=100-a-n,i=a.toString(),o=s.toString(),l=n.toString();return(0,r.jsxs)(v.Zp,{isInverseDesktop:!0,children:[(0,r.jsx)(v.Zp.Header,{titleId:"manager.performance",as:"h3"}),(0,r.jsxs)(k.az,{p:"sm",children:[(0,r.jsxs)(k.so,{justify:"space-between",mb:"xs",children:[(0,r.jsx)(k.EY,{font:"body.medium",color:"secondary.default",children:t.wins}),(0,r.jsx)(k.EY,{font:"body.medium",color:"onSurface.nLv3",children:t.draws}),(0,r.jsx)(k.EY,{font:"body.medium",color:"error.default",children:t.losses})]}),(0,r.jsxs)(k.so,{h:28,br:"sm",overflow:"hidden",children:[(0,r.jsx)(k.az,{w:"".concat(i,"%"),bg:"secondary.default",px:"0"!==i?"sm":0,children:(0,r.jsx)(k.EY,{lineHeight:"28px",font:"display.small",color:"surface.s1",children:X(i)})}),(0,r.jsx)(k.az,{w:"".concat(o,"%"),bg:"onSurface.nLv3",px:"0"!==o?"sm":0,textAlign:"center",children:(0,r.jsx)(k.EY,{lineHeight:"28px",font:"display.small",color:"surface.s1",children:X(o)})}),(0,r.jsx)(k.az,{w:"".concat(l,"%"),bg:"error.default",px:"0"!==l?"sm":0,textAlign:"right",children:(0,r.jsx)(k.EY,{lineHeight:"28px",font:"display.small",color:"surface.s1",children:X(l)})})]})]})]})},Z=e=>{let{managerDetails:t}=e,{manager:a}=t,{isMobile:n}=(0,V.$c)();return(0,r.jsx)(v.HH,{isCard:!n,children:(0,r.jsxs)(k.so,{direction:["column","row"],gap:"sm",p:[0,"sm"],children:[(0,r.jsx)(k.az,{w:a.performance?["100%","50%"]:["100%","100%"],children:(0,r.jsx)(v.Zp,{isInverseDesktop:!0,children:(0,r.jsx)(K,{manager:a,inLine:!a.performance})})}),a.performance&&(0,r.jsx)(k.az,{w:["100%","50%"],children:(0,r.jsx)(q,{performance:a.performance})})]})})};var $=a(69435),J=a(54409),ee=a(42901);let et=e=>{let{id:t,slug:a}=e,{isMobile:n}=(0,V.$c)();return(0,r.jsx)(S.N_,{routeKey:"player",params:{id:t,slug:a},children:(0,r.jsxs)(k.so,{px:"md",py:"xs",bg:["primary.default","overlay.darken1"],align:"center",w:"fit-content",br:"lg",children:[(0,r.jsx)(k.EY,{lineHeight:"16px",font:"assistive.default",c:["surface.s1","onColor.primary"],mr:"xxs",children:(0,r.jsx)(T.A,{id:"player.profile"})}),(0,r.jsx)(J.CCT,{fill:n?"surface.s1":"onColor.primary"})]})})};function ea(e){var t,a;let{manager:n,slug:s}=e,i=(0,w.z)(n),o=null==(a=n.country)||null==(t=a.alpha2)?void 0:t.toLowerCase();return(0,r.jsx)(k.az,{bg:["surface.s1","transparent"],children:(0,r.jsxs)(ee.z,{bgImageSrc:o?"/static/images/flags/".concat(o,".png"):void 0,flexProps:{px:["lg","xl"],py:["lg","xl"],gap:["lg","xl"],align:"center"},children:[(0,r.jsx)(k.az,{h:[48,112],w:[48,112],border:"onSurface.nLv4",br:"50%",children:(0,r.jsx)($.d,{id:n.id,name:i,w:"100%",h:"100%",grayscale:!!n.dateOfDeathTimestamp})}),(0,r.jsxs)(k.az,{children:[(0,r.jsxs)(k.so,{align:"baseline",mb:["xxs","sm"],children:[(0,r.jsx)(k.EY,{font:["display.large","display.extraLarge"],c:["onSurface.nLv1","onColor.primary"],m:0,as:"h2",children:i}),(0,r.jsx)(k.az,{display:["none","block"],ml:"sm",children:(0,r.jsx)(k.EY,{font:"display.medium",color:"onColor.secondary",children:(0,r.jsx)(T.A,{id:"manager"})})})]}),n.formerPlayerId&&(0,r.jsx)(et,{id:n.formerPlayerId,slug:s})]})]})})}function er(e){let{managerDetails:t,managerCareerHistory:a,showCareerHistory:s,id:i,slug:o}=e;return(0,r.jsx)(p.Ws.Provider,{value:t.manager.sport.slug||n.QCR.Football,children:(0,r.jsxs)(g.Ay,{pb:"md",children:[(0,r.jsx)(A,{manager:t.manager}),(0,r.jsxs)(g.xA,{children:[(0,r.jsxs)(g.fv,{grow:2,children:[(0,r.jsx)(ea,{manager:t.manager,slug:o}),(0,r.jsx)(Z,{managerDetails:t}),(0,r.jsx)(R,{managerCareerHistory:a,managerDetails:t,showCareerHistory:s},t.manager.id),(0,r.jsx)(h.MC.Provider,{value:{isShort:!0,location:y.y.MatchesSection},children:(0,r.jsx)(x.A,{entity:n.wNW.Manager,id:i})})]}),(0,r.jsxs)(g.fv,{grow:1,children:[(0,r.jsx)(u.i,{id:"manager.DESKTOP_SIDEBAR"}),(0,r.jsx)(_,{manager:t.manager})]})]})]})})}var en=a(96913),es=a(28132),ei=a(19168),eo=a(30479);function el(e){let{managerDetails:t,managerCareerHistory:a,showCareerHistory:n}=e;return(0,r.jsx)(k.tU.Panel,{tabKey:es.H.Details,children:(0,r.jsxs)(v.BU,{children:[(0,r.jsx)(Z,{managerDetails:t}),(0,r.jsx)(R,{managerCareerHistory:a,managerDetails:t,showCareerHistory:n},t.manager.id),(0,r.jsx)(_,{manager:t.manager})]})})}var ec=a(60988);let ed=I()(()=>a.e(5151).then(a.bind(a,45151)),{loadableGenerated:{webpack:()=>[45151]}});function em(e){let{id:t}=e;return(0,r.jsx)(k.tU.Panel,{tabKey:es.H.Matches,children:(0,r.jsx)(ec.MC.Provider,{value:{isShort:!0,location:y.y.MatchesSection},children:(0,r.jsx)(ed,{entity:n.wNW.Manager,id:t})})})}function ep(e){let{managerDetails:t,managerCareerHistory:a,showCareerHistory:n,id:s,slug:i}=e,[l,c]=(0,eo.Ay)({routeKey:o.xW.Manager,params:{slug:t.manager.slug,id:t.manager.id}}),d=[{tabKey:es.H.Details,item:"details"},{tabKey:es.H.Matches,item:"matches",values:{sport:(0,ei.ap)(t.manager.sport.slug)}}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A,{manager:t.manager}),(0,r.jsx)(ea,{manager:t.manager,slug:i}),(0,r.jsxs)(en.A,{id:t.manager.id,location:en.m.ManagerPage,initialTabKey:(null==l?void 0:l.tab)||es.H.Details,customControls:[(null==l?void 0:l.tab)||es.H.Details,e=>c("tab",e)],tabs:d,children:[(0,r.jsx)(el,{managerDetails:t,managerCareerHistory:a,showCareerHistory:n}),(0,r.jsx)(em,{id:s})]})]})}let eu=function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.$B,{children:(0,r.jsx)(ep,{...e})}),(0,r.jsx)(m.h6,{children:(0,r.jsx)(er,{...e})})]})};var eg=a(6675),eh=a(71937),ex=a(25862),ey=a(65097);function ef(e){var t,a;let{id:n,slug:s,managerDetails:o,managerCareerHistory:m,seoContent:p,error:u}=e,g=(0,c.A)();return u?(0,r.jsx)(ey.default,{statusCode:u.code}):(0,r.jsxs)(b.an,{value:{seoContent:p},children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(d.z.getTranslatedCanonicalRoute(g,"manager",{id:n,slug:s}).route)}),(0,l.v)(o.manager.sport.slug,g)&&(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,r.jsx)(eg.T2,{manager:o.manager}),(0,r.jsx)(b.Ay,{metaKey:"manager",values:{manager:o.manager.name,team:null!=(a=null==(t=o.manager.team)?void 0:t.name)?a:""}}),(0,r.jsx)(eu,{id:+n,managerCareerHistory:m,managerDetails:o,showCareerHistory:m.careerHistory.length>0,slug:s})]})}ef.getInitialProps=eh.A.getInitialPageProps(e=>async t=>{let{req:a,res:r,query:s,...i}=t,l=a?a._originalUrl:i.asPath,c=d.z.getCurrentLocale(l),m="",p="";a&&(m=a.params.id,p=a.params.slug),s&&s.id&&s.slug&&(m=s.id,p=s.slug);let[u,g,h]=await Promise.allSettled([n.QXc.fetchManagerDetails(+m),n.sdF.getSeoContent(n.wNW.Manager,m,c),n.QXc.fetchManagerCareerHistory(+m)]);try{if("rejected"===u.status)throw Error();let t=u.value,a="fulfilled"===h.status?h.value:{careerHistory:[]},n="fulfilled"===g.status?g.value.content:void 0,s=t.manager,i=s.sport.slug;if(-1===o.Hk.indexOf(i))throw Error("Unsupported sport");let l=s.id,x=s.slug;return r&&(x!==p||l!==Number(m))&&(r.writeHead(301,{Location:d.z.getTranslatedRoute(c,"manager",{id:l,slug:s.slug}).route}),r.end()),e.dispatch((0,ex.Vy)(i)),{id:m,managerDetails:t,managerCareerHistory:a,slug:p,seoContent:n}}catch(e){return r&&(r.statusCode=404),{error:{code:404}}}});let ej=ef},97047:(e,t,a)=>{"use strict";a.d(t,{WG:()=>c,YL:()=>m,_z:()=>d,lE:()=>n,o_:()=>s});let r={EN:"GB",SX:"GB",WA:"GB",NX:"GB"},n=e=>e&&(r[e]||e),s=e=>{if(e)return"M"===e?"Male":"F"===e?"Female":void 0},i={en:{35:"https://en.wikipedia.org/wiki/Manchester_United_F.C.",38:"https://en.wikipedia.org/wiki/Chelsea_F.C.",1644:"https://en.wikipedia.org/wiki/Paris_Saint-Germain_F.C.",2351:"https://en.wikipedia.org/wiki/Rangers_F.C.",2687:"https://en.wikipedia.org/wiki/Juventus_F.C.",2817:"https://en.wikipedia.org/wiki/FC_Barcelona"},pt:{1963:"https://pt.wikipedia.org/wiki/Sociedade_Esportiva_Palmeiras",1966:"https://pt.wikipedia.org/wiki/Sport_Club_Internacional",5926:"https://pt.wikipedia.org/wiki/Gr%C3%AAmio_Foot-Ball_Porto_Alegrense",5981:"https://pt.wikipedia.org/wiki/Clube_de_Regatas_do_Flamengo"}},o={en:{7:"https://en.wikipedia.org/wiki/UEFA_Champions_League",8:"https://en.wikipedia.org/wiki/La_Liga",17:"https://en.wikipedia.org/wiki/Premier_League",19:"https://en.wikipedia.org/wiki/FA_Cup",23:"https://en.wikipedia.org/wiki/Serie_A",34:"https://en.wikipedia.org/wiki/Ligue_1",36:"https://en.wikipedia.org/wiki/Scottish_Premiership",328:"https://en.wikipedia.org/wiki/Coppa_Italia",329:"https://en.wikipedia.org/wiki/Copa_del_Rey",332:"https://en.wikipedia.org/wiki/Scottish_League_Cup",335:"https://en.wikipedia.org/wiki/Coupe_de_France",347:"https://en.wikipedia.org/wiki/Scottish_Cup"},pt:{325:"https://pt.wikipedia.org/wiki/Campeonato_Brasileiro_de_Futebol",373:"https://pt.wikipedia.org/wiki/Copa_do_Brasil_de_Futebol",384:"https://pt.wikipedia.org/wiki/Copa_Libertadores_da_Am%C3%A9rica"}},l={pt:{358554:"https://pt.wikipedia.org/wiki/Gabriel_Barbosa",32891:"https://pt.wikipedia.org/wiki/Mauricio_Isla",840219:"https://pt.wikipedia.org/wiki/Pedro_Guilherme_Abreu_dos_Santos",795291:"https://pt.wikipedia.org/wiki/Bruno_Henrique_Pinto",822526:"https://en.wikipedia.org/wiki/Gabriel_Batista",950454:"https://pt.wikipedia.org/wiki/Hugo_de_Souza_Nogueira",804703:"https://pt.wikipedia.org/wiki/Bruno_Viana_Willemen_da_Silva",333587:"https://pt.wikipedia.org/wiki/Giorgian_De_Arrascaeta",242213:"https://pt.wikipedia.org/wiki/Willian_Ar%C3%A3o"}},c=(e,t)=>{var a;return null==(a=i[t])?void 0:a[e]},d=(e,t)=>{var a;return null==(a=o[t])?void 0:a[e]},m=(e,t)=>{var a;return null==(a=l[t])?void 0:a[e]}}},e=>{var t=t=>e(e.s=t);e.O(0,[4092,8446,6591,395,4632,6618,2111,756,3797,2062,5938,1105,3338,3752,364,2905,9347,7256,1254,574,3231,9623,7717,323,5905,636,6593,8792],()=>t(43381)),_N_E=e.O()}]);