!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]="c0a01265-3f38-4d6b-88bc-2dea04983b4b",e._sentryDebugIdIdentifier="sentry-dbid-c0a01265-3f38-4d6b-88bc-2dea04983b4b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88620],{25766:(e,s,t)=>{var l,r;t.d(s,{V:()=>l,k:()=>r}),function(e){e.Possible="possible",e.Confirmed="confirmed"}(l||(l={})),function(e){e.Performance="performance",e.Distance="distance",e.Club="club",e.Nationality="nationality",e.Age="age",e.MarketValue="marketValue",e.Height="height"}(r||(r={}))},27936:(e,s,t)=>{t.d(s,{w:()=>o});var l=t(6029),r=t(90248),n=t(18970),i=t(50677),a=t(91113);let o=e=>{let{id:s,children:t}=e;return(0,l.jsx)(n.Ws.Consumer,{children:e=>{let n=(0,a.O)(i,s,e);return(0,l.jsx)(r.A,{id:n,children:e=>n===String(e)?null:"function"==typeof t?t(e):(0,l.jsx)(l.Fragment,{children:e})})}})}},38709:(e,s,t)=>{t.d(s,{k:()=>l.k});var l=t(25766)},39836:(e,s,t)=>{t.d(s,{M:()=>b});var l=t(6029),r=t(53192),n=t(25766),i=t(94400),a=t(91603),o=t(98914),d=t(19501),u=t(22375),c=t(54529),f=t(76356),p=t(55729),x=t(90248),h=t(18970),v=t(30821),g=t(53960),y=t(48827),m=t(44793),j=t(99764);let b=e=>{var s,t,b,_,k,C;let{player:S,hasRating:w,rating:V,playerPerformanceRatingCategories:P}=e,{event:G}=(0,p.useContext)(h.y$),{playerCharacteristicChip:N,playerPerformanceRatingCategory:I}=(0,p.useContext)(y.h),D=(()=>{var e,s,t,l;switch(N){case n.k.Age:return null==(e=S.player)?void 0:e.dateOfBirthTimestamp;case n.k.MarketValue:return null==(s=S.player)?void 0:s.proposedMarketValueRaw;case n.k.Height:return null==(t=S.player)?void 0:t.height;case n.k.Distance:return"statistics"in S?null==(l=S.statistics)?void 0:l.kilometersCovered:void 0;default:return}})();if(N===n.k.Performance)if(void 0===I)return w&&void 0!==V?(0,l.jsx)(i.A,{rating:V,format:w?"box":"sideBox"}):null;else{if(!("statistics"in S)||!(null==(s=S.statistics)?void 0:s.minutesPlayed)||!P)return null;let e=j.g7[I];if(!e)return null;let r=null==(t=S.statistics)?void 0:t[e],n=P.map(e=>{var s;return{key:e,value:(0,j.IU)(e,null!=(s=S.statistics)?s:{})}});return(0,l.jsxs)(f.BJ,{gap:"2xs",justify:"flex-end",children:[n.map(e=>(0,l.jsxs)(f.so,{align:"center",gap:"2xs",justify:"flex-end",children:[(0,l.jsx)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",lineHeight:1,children:(0,l.jsx)(x.A,{id:j.hm[e.key]})}),(0,l.jsx)(c.EY,{textStyle:"assistive.default",lineHeight:1,children:(0,j._E)(e.key,e.value)})]},e.key)),(0,l.jsx)(f.so,{w:"100%",justify:"flex-end",children:(0,l.jsx)(m.X,{rating:r,type:"secondary"})})]})}return[n.k.Club,n.k.Nationality].includes(N)?(0,l.jsxs)(f.so,{justify:"center",align:"center",children:[N===n.k.Club&&"teamId"in S&&S.teamId&&(0,l.jsx)(a.p,{id:S.teamId,size:24}),N===n.k.Nationality&&(null==(_=S.player)||null==(b=_.country)?void 0:b.alpha2)&&(0,l.jsx)(r.w,{alpha2:null==(C=S.player)||null==(k=C.country)?void 0:k.alpha2,size:24})]}):(0,l.jsx)(c.EY,{display:"block",color:D?void 0:"neutrals.nLv1",children:D?(0,l.jsxs)(l.Fragment,{children:[N===n.k.Age&&(0,l.jsxs)(l.Fragment,{children:[(0,u.Dr)(D,G.startTimestamp)," ",(0,l.jsx)(x.A,{id:"years_shorter",values:{n:(0,u.Dr)(D,G.startTimestamp)}})]}),N===n.k.MarketValue&&(0,l.jsx)(g.o,{parsedMoney:(0,d.oaz)(D)}),N===n.k.Height&&(0,l.jsx)(v.Z,{value:D,fromUnit:"cm"}),N===n.k.Distance&&(0,l.jsx)(l.Fragment,{children:"".concat((0,o.M)(D,1)," km")})]}):"-"})}},40237:(e,s,t)=>{t.d(s,{G:()=>l.A,p:()=>r.p});var l=t(94400),r=t(91603)},44793:(e,s,t)=>{t.d(s,{X:()=>d});var l=t(6029),r=t(76356),n=t(93338),i=t(62042);let a=(0,r.I4)("div",(0,i.Fj)({base:{w:"[52px]",h:"sm"},variants:{type:{primary:{bg:"onColor.secondary"},secondary:{bg:"surface.s2"}},hasValue:{true:{}}},compoundVariants:[{type:"primary",hasValue:!0,css:{bg:"onColor.primary",border:"1px solid {colors.onColor.primary}"}}]}));var o=t(99764);let d=e=>{let{rating:s,type:t="primary"}=e,i=void 0!==s;return(0,l.jsx)(a,{type:t,hasValue:i,children:(0,l.jsx)(r.az,{h:"100%",style:{width:i?(0,o.jN)(s):"0%",backgroundColor:i?n.S.var((0,o.Zm)(s)):"transparent"}})})}},48827:(e,s,t)=>{t.d(s,{V:()=>a,h:()=>i});var l=t(6029),r=t(38709),n=t(55729);let i=(0,n.createContext)({playerCharacteristicChip:r.k.Performance,setPlayerCharacteristicChip:()=>{},playerPerformanceRatingCategory:void 0,setPlayerPerformanceRatingCategory:()=>{}}),a=e=>{let{children:s}=e,[t,a]=(0,n.useState)(r.k.Performance),[o,d]=(0,n.useState)(void 0);return(0,l.jsx)(i,{value:{playerCharacteristicChip:t,setPlayerCharacteristicChip:a,playerPerformanceRatingCategory:o,setPlayerPerformanceRatingCategory:d},children:s})}},99764:(e,s,t)=>{t.d(s,{IU:()=>d,N$:()=>p,Zm:()=>c,_E:()=>u,g7:()=>o,hm:()=>a,jN:()=>f});var l=t(86903),r=t(96861);let n={[r.V7.Shot]:["expectedGoals","expectedGoalsOnTarget"],[r.V7.Pass]:["expectedAssists","accuratePass"],[r.V7.Dribble]:["wonContest","touches"],[r.V7.Defensive]:["defensiveContributions","duelWon"]},i={[r.V7.Shot]:["totalShots","onTargetScoringAttempt"],[r.V7.Pass]:["accuratePass","keyPass"],[r.V7.Dribble]:[],[r.V7.Defensive]:[]},a={expectedGoals:"football_expected_goals_short",expectedGoalsOnTarget:"football_expected_goals_on_target_short",totalShots:"football_total_shots_short",onTargetScoringAttempt:"football_shots_on_target_short",expectedAssists:"football_expected_assists_short",accuratePass:"football_accurate_passes_short",keyPass:"football_key_passes_short",wonContest:"football_successful_dribbles_short",touches:"football_touches_short",defensiveContributions:"football_defensive_contributions_short",duelWon:"football_duels_won_short"},o={[r.V7.Shot]:"shotValueNormalized",[r.V7.Pass]:"passValueNormalized",[r.V7.Dribble]:"dribbleValueNormalized",[r.V7.Defensive]:"defensiveValueNormalized"},d=(e,s)=>{if("defensiveContributions"===e){let e=(null==s?void 0:s.minutesPlayed)>0,t=((null==s?void 0:s.wonTackle)||0)+((null==s?void 0:s.totalClearance)||0)+((null==s?void 0:s.outfielderBlock)||0)+((null==s?void 0:s.interceptionWon)||0)+((null==s?void 0:s.ballRecovery)||0);return t>0?t:e?0:void 0}return"duelWon"===e?(null==s?void 0:s.duelWon)?null==s?void 0:s.duelWon:(null==s?void 0:s.duelLost)>0?0:void 0:"wonContest"===e?(null==s?void 0:s.wonContest)?null==s?void 0:s.wonContest:(null==s?void 0:s.totalContest)>0?0:void 0:"totalShots"===e?(null==s?void 0:s.totalShots)||void 0:s[e]},u=(e,s)=>void 0===s?"-":["expectedGoals","expectedGoalsOnTarget","expectedAssists"].includes(e)?"".concat((0,l.M)(s,2)):s.toString(),c=e=>{for(let{limit:s,color:t}of[{limit:-.5,color:"colors.rating.s10"},{limit:0,color:"colors.rating.s60"},{limit:.25,color:"colors.rating.s65"},{limit:.5,color:"colors.rating.s70"},{limit:.75,color:"colors.rating.s80"},{limit:1,color:"colors.rating.s90"}])if(e{let s=(e+1)/2;return"".concat(100*(s<=.1?.1:s),"%")},p=(e,s)=>{if(void 0===s)return[];let t=n[s],l=i[s];return e.some(e=>!!e.statistics&&(s===r.V7.Pass?null==t?void 0:t.every(s=>{var t,l;return(null==(t=e.statistics)?void 0:t[s])!==void 0&&(null==(l=e.statistics)?void 0:l[s])!==null}):null==t?void 0:t.some(s=>{var t,l;return(null==(t=e.statistics)?void 0:t[s])!==void 0&&(null==(l=e.statistics)?void 0:l[s])!==null})))?t:l}},99913:(e,s,t)=>{t.d(s,{Ck:()=>_,PM:()=>w,RV:()=>b,Sb:()=>S,cW:()=>C});var l=t(6029),r=t(10292),n=t(19501),i=t(54529),a=t(62042),o=t(76356),d=t(55729),u=t(90248),c=t(46222),f=t(18970),p=t(52466),x=t(6813),h=t(64006),v=t(94156),g=t(39836);let y={[n.evQ.Missing]:"error.default",[n.evQ.Doubtful]:"sofaSingles.value"},m=(0,a.Fj)({base:{ml:"2xs",textStyle:"assistive.default"},variants:{type:{missing:{color:"status.error.default"},doubtful:{color:"status.alert.default"}}}}),j=(0,o.I4)(i.EY,m),b=(e,s)=>s===n.s2G.OnLoan?"missingplayer.onloan":e===n.evQ.Missing?-1!==[n.s2G.Suspended,n.s2G.YellowCard,n.s2G.YellowRedCard,n.s2G.RedCard].indexOf(s)?"player_status_suspended":"injury_status_out":"injury_status_doubtful";function _(e){let{missingPlayer:s}=e;return(0,l.jsxs)(o.so,{align:"center",w:"fit",mt:"xs",children:[(e=>{let s=y[e.type];switch(e.reason){case n.s2G.Injured:case n.s2G.Ill:return(0,l.jsx)(p.NcS,{icon:"cross",fill:s});case n.s2G.Suspended:return(0,l.jsx)(p.NcS,{icon:"suspended",fill:s});case n.s2G.YellowCard:return(0,l.jsx)(p.NcS,{icon:"card",fill:"scoreRating.s65"});case n.s2G.YellowRedCard:return(0,l.jsx)(p.NcS,{icon:"card-double-yellow"});case n.s2G.RedCard:return(0,l.jsx)(p.NcS,{icon:"card",fill:"error.default"});case n.s2G.OnLoan:return(0,l.jsx)(p.NcS,{icon:"on-loan",fill:s});case n.s2G.Other:default:return(0,l.jsx)(p.NcS,{icon:"player",fill:s})}})(s),(0,l.jsx)(j,{type:s.type===n.evQ.Missing?"missing":"doubtful",children:(0,l.jsx)(u.A,{id:b(s.type,s.reason)})})]})}function k(e){let{missingPlayer:s,isLast:t}=e,n=(0,d.useContext)(f.Ws);return(0,l.jsx)(h.uc,{player:s.player,sportSlug:n,children:(0,l.jsxs)(o.so,{_hover:{bg:"surface.s2"},cursor:"pointer",align:"center",px:"lg",children:[(0,l.jsx)(o.az,{pr:"lg",py:"sm",children:(0,l.jsx)(r.t,{size:40,id:s.player.id,name:s.player.name})}),(0,l.jsx)(o.so,{borderBottom:t?void 0:"onSurface.nLv4",align:"center",flexGrow:1,flexShrink:1,mr:"lg",children:(0,l.jsxs)(o.az,{flexGrow:1,flexShrink:1,children:[(0,l.jsx)(i.EY,{display:"block",color:"neutrals.nLv1",mr:"xs",children:(0,l.jsx)(v.c,{entity:s.player})}),(0,l.jsx)(_,{missingPlayer:s})]})}),(0,l.jsx)(g.M,{player:s})]})})}function C(e){let{missingPlayers:s}=e;return(null==s?void 0:s.length)?(0,l.jsx)(l.Fragment,{children:s.map((e,t)=>(0,l.jsx)(k,{missingPlayer:e,isLast:t===s.length-1},e.player.id))}):(0,l.jsx)(x.p,{graphic:"no-data",descriptionMessageId:"no_missing_players"})}function S(e){let{missingPlayers:s}=e;return(null==s?void 0:s.length)?(0,l.jsxs)(c.Zp,{children:[(0,l.jsx)(c.Zp.Header,{titleId:"injuries_and_suspensions",as:"h4"}),(0,l.jsx)(C,{missingPlayers:s}),(0,l.jsx)(c.Zp.Footer,{defaultHeight:"sm"})]}):null}function w(e){let{left:s,right:t}=e,r=s&&s.length>0,n=t&&t.length>0;return r||n?(0,l.jsxs)(c.Zp,{variant:"mobile-only",children:[(0,l.jsx)(c.Zp.Header,{titleId:"injuries_and_suspensions"}),(0,l.jsxs)(o.so,{pt:"sm",pb:"md",children:[(0,l.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,l.jsx)(C,{missingPlayers:s})}),(0,l.jsx)(o.az,{w:"[1px]",bg:"neutrals.nLv4",mt:"sm",mb:"md",mx:"sm"}),(0,l.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"1/2",children:(0,l.jsx)(C,{missingPlayers:t})})]})]}):null}}}]);