!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]="7d806cb3-1eb4-4461-9d45-1370377544dd",e._sentryDebugIdIdentifier="sentry-dbid-7d806cb3-1eb4-4461-9d45-1370377544dd")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9561],{8157:(e,s,t)=>{t.d(s,{A:()=>c});var n=t(6029),l=t(21377),a=t(99064),i=t(82203),r=t.n(i),o=t(90248),d=t(38081);function c(e){let{roundPlayer:s,playerActions:t}=e,{fantasyCompetition:i}=(0,d.C)(),c=(null==i?void 0:i.type)===l.s9G.Seasonal;return(0,n.jsxs)(a.so,{justify:"space-between",align:"center",p:"lg",children:[(0,n.jsx)(r(),{href:"/player/".concat(s.fantasyPlayer.player.slug,"/").concat(s.fantasyPlayer.player.id),target:"_blank",children:(0,n.jsx)(a.EY,{font:"display.small",color:"primary.default",cursor:"pointer",children:(0,n.jsx)(o.A,{id:"view_player_details"})})}),!!t.compare&&c&&(0,n.jsx)(a.$n,{style:{borderRadius:16},onClick:()=>{var e;return null==(e=t.compare)?void 0:e.call(t,s)},children:(0,n.jsx)(o.A,{id:"compare"})})]})}},12471:(e,s,t)=>{t.d(s,{D:()=>l,E:()=>a});var n=t(21377);let l={[n.uvd.VeryHard]:"scoreRating.s10",[n.uvd.Hard]:"scoreRating.s60",[n.uvd.Medium]:"scoreRating.s65",[n.uvd.Easy]:"scoreRating.s70",[n.uvd.VeryEasy]:"scoreRating.s80"},a={[n.uvd.VeryHard]:5,[n.uvd.Hard]:4,[n.uvd.Medium]:3,[n.uvd.Easy]:2,[n.uvd.VeryEasy]:1}},17474:(e,s,t)=>{t.d(s,{Y:()=>i});var n=t(6029),l=t(94446),a=t(99064);function i(e){let{fantasyPlayerId:s,teamId:t,playerSize:i=32,teamSize:r=16}=e;return(0,n.jsxs)(a.az,{position:"relative",h:i,w:i,children:[(0,n.jsx)(l.t,{size:i,id:s,isFantasy:!0}),(0,n.jsx)(a.az,{position:"absolute",bottom:"0",left:"0",h:r,w:r,children:(0,n.jsx)(l.p,{id:t,size:r,isFantasy:!0})})]})}},34148:(e,s,t)=>{t.d(s,{A:()=>u});var n=t(6029),l=t(87827),a=t(21377),i=t(99064),r=t(90248),o=t(38081),d=t(96299);let c=e=>{let{titleId:s,value:t,position:l,count:a}=e;return(0,n.jsxs)(i.az,{py:"sm",children:[(0,n.jsx)(i.EY,{color:"onSurface.nLv3",font:"assistive.micro",textTransform:"uppercase",align:"center",block:!0,children:(0,n.jsx)(r.A,{id:s})}),(0,n.jsx)(i.EY,{font:"display.large",align:"center",block:!0,children:t||"-"}),(0,n.jsx)(i.EY,{color:"onSurface.nLv3",font:"assistive.micro",textTransform:"uppercase",align:"center",block:!0,children:(0,n.jsx)(r.A,{id:"rank_out_of",values:{rank:null!=l?l:"-",totalCount:null!=a?a:"-"}})})]})};function u(e){var s;let{player:t}=e,{fantasyCompetition:r}=(0,o.C)(),u=(null==r?void 0:r.type)===a.s9G.Seasonal,{averageScore:x,form:f,ownedPercentage:p,totalScore:m}=t.fantasyPlayer;return(0,n.jsx)(i.az,{px:"lg",children:u?(0,n.jsxs)(i.so,{bg:"surface.s2",br:"sm",justify:"space-evenly",align:"center",children:[(0,n.jsx)(c,{titleId:"pts_per_match",value:(0,d.Q_)(a.qbx.AveragePoints,x),position:t.fantasyPlayer.averageScoreRank,count:t.fantasyPlayer.totalPlayersOnPosition}),(0,n.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,n.jsx)(c,{titleId:"player_form",value:(0,d.Q_)(a.qbx.Form,f),position:t.fantasyPlayer.formRank,count:t.fantasyPlayer.totalPlayersOnPosition}),(0,n.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,n.jsx)(c,{titleId:"selected",value:(0,d.Q_)(a.qbx.SelectedPercentage,p),position:t.fantasyPlayer.ownedRank,count:t.fantasyPlayer.totalPlayersOnPosition}),(0,n.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,n.jsx)(c,{titleId:"details.total",value:(0,d.Q_)(a.qbx.TotalPoints,m),position:t.fantasyPlayer.totalScoreRank,count:t.fantasyPlayer.totalPlayersOnPosition})]}):(0,n.jsxs)(i.so,{bg:"surface.s2",br:"sm",justify:"space-evenly",align:"center",children:[(0,n.jsx)(c,{titleId:"fantasy_expected_fantasy_points_short",value:null==(s=t.expectedPoints)?void 0:s.toFixed(1),position:t.expectedPointsRank,count:t.fantasyPlayer.totalPlayersOnPosition}),(0,n.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,n.jsx)(c,{titleId:"fantasy_elite_faceoff_avg_sofascore_rating",value:(0,n.jsx)(i.az,{py:"xs",children:(0,n.jsx)(l.G,{format:"sideBox",rating:t.averageRating})}),position:t.averageRatingRank,count:t.fantasyPlayer.totalPlayersOnPosition}),(0,n.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,n.jsx)(c,{titleId:"selected",value:(0,d.Q_)(a.qbx.SelectedPercentage,p),position:t.fantasyPlayer.ownedRank,count:t.fantasyPlayer.totalPlayersOnPosition})]})})}},38081:(e,s,t)=>{t.d(s,{C:()=>r,S:()=>i});var n=t(6029),l=t(55729);let a=(0,l.createContext)({fantasyCompetition:void 0,branding:void 0}),i=e=>{let{children:s,fantasyCompetition:t,branding:l}=e;return(0,n.jsx)(a.Provider,{value:{fantasyCompetition:t,branding:l},children:s})},r=()=>(0,l.useContext)(a)},51942:(e,s,t)=>{t.d(s,{GE:()=>C,cZ:()=>X,DT:()=>H,eM:()=>R,Q_:()=>n.Q_,nP:()=>n.nP,tc:()=>n.tc,KU:()=>n.KU,e8:()=>n.e8,aH:()=>n.aH});var n=t(96299),l=t(6029),a=t(21377),i=t(99064),r=t(90248),o=t(54409),d=t(77530),c=t(38081),u=t(61836),x=t(8157),f=t(33144),p=t(4967),m=t(90510),y=t(45860),j=t(76868),h=t(99326),v=t(81213);let g=e=>{let{fixtures:s,isPast:t}=e,n=!s.some(e=>!e.score&&0!==e.score),a=n?s.reduce((e,s)=>e+(s.score||0),0):void 0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i.az,{display:["block","none"],w:"100%",bg:"surface.sp",br:"sm",p:"xs",children:[(0,l.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",mb:"xs",block:!0,children:(0,l.jsx)(h.f5,{fantasyRound:s[0].fantasyRound,isShort:!0})}),s.map((e,s)=>(0,l.jsxs)(i.so,{align:"center",children:[(0,l.jsx)(f.p,{id:e.team.id,size:24,isFantasy:!0}),(0,l.jsx)(i.az,{grow:1,children:(0,l.jsx)(i.EY,{font:"display.small",ml:"sm",children:"".concat(e.team.nameCode," (").concat(e.locationType,")")})}),(0,l.jsx)(i.EY,{font:"display.small",children:e.score||0===e.score||t?(0,l.jsxs)(i.EY,{font:"display.small",textTransform:"lowercase",children:[e.score||0,(0,l.jsx)(r.A,{id:"Pts"})]}):e.fixtureDifficulty?(0,l.jsx)(v.U,{difficulty:e.fixtureDifficulty}):(0,l.jsx)(m.XU,{value:1e3*e.eventStartTimestamp,...p.or.dateWithShortMonthOnly})})]},"".concat(e.team.id,"-").concat(s)))]}),(0,l.jsxs)(i.az,{display:["none","block"],w:"33.33%",bg:"surface.sp",br:"sm",p:"sm",children:[n?(0,l.jsxs)(i.EY,{font:"display.small",align:"center",block:!0,textTransform:"lowercase",children:[a,(0,l.jsx)(r.A,{id:"Pts"})]}):(0,l.jsx)(i.so,{justify:"center",gap:"md",children:s.map((e,s)=>(0,l.jsx)(i.EY,{font:"display.small",align:"center",block:!0,children:e.score||0===e.score||t?(0,l.jsxs)(i.EY,{font:"display.small",textTransform:"lowercase",children:[e.score||0,(0,l.jsx)(r.A,{id:"Pts"})]}):e.fixtureDifficulty?(0,l.jsx)(v.U,{difficulty:e.fixtureDifficulty}):(0,l.jsx)(m.XU,{value:1e3*e.eventStartTimestamp,...p.or.dateWithShortMonthOnly})},"".concat(e.team.id,"-").concat(s)))}),(0,l.jsx)(i.so,{justify:"center",gap:"md",p:"sm",children:s.map((e,s)=>(0,l.jsx)(f.p,{id:e.team.id,size:24,isFantasy:!0},"".concat(e.team.id,"-").concat(s)))}),(0,l.jsx)(i.EY,{align:"center",font:"assistive.default",color:"onSurface.nLv3",block:!0,children:(0,l.jsx)(h.f5,{fantasyRound:s[0].fantasyRound,isShort:!0})}),(0,l.jsx)(i.EY,{align:"center",font:"display.small",block:!0,children:s.map(e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.EY,{children:e.team.nameCode}),"H"===e.locationType?(0,l.jsx)(o.Hoe,{outlined:!0,h:"16px",mt:"-1px",fill:"onSurface.nLv1"}):"A"===e.locationType?(0,l.jsx)(o.IA5,{h:"16px",mt:"-1px",fill:"onSurface.nLv1"}):""]}))})]})]})},b=e=>{let{titleId:s,fixtures:t,isPast:n}=e,a=Array.from(new Set(t.map(e=>e.fantasyRound.sequence))).sort((e,s)=>e-s);return(0,l.jsxs)(i.az,{w:"50%",bg:"surface.s2",br:"md",p:"sm",children:[(0,l.jsx)(i.EY,{font:"display.medium",mb:"lg",block:!0,children:(0,l.jsx)(r.A,{id:s})}),t.length?(0,l.jsx)(i.so,{direction:["column","row"],style:{gap:8},children:a.map(e=>(0,l.jsx)(g,{fixtures:t.filter(s=>s.fantasyRound.sequence===e),isPast:n},e))}):(0,l.jsx)(i.so,{justify:"center",h:100,children:(0,l.jsx)(j.p,{p:"0px",pb:"sm",graphic:"match-shotmap",descriptionMessageId:"basic.noEvents"})})]})};function _(e){var s,t;let{fantasyPlayerId:n}=e,{data:r,isLoading:o}=(0,y.Ay)(a.lVT.playerFormAndFixtures(n));return o?(0,l.jsx)(i.az,{h:[256,192]}):(null==r||null==(s=r.form)?void 0:s.length)||(null==r||null==(t=r.fixtures)?void 0:t.length)?(0,l.jsxs)(i.so,{px:"lg",gap:"lg",my:"lg",children:[(0,l.jsx)(b,{titleId:"player_form",fixtures:r.form||[],isPast:!0}),(0,l.jsx)(b,{titleId:"basic.fixtures",fixtures:r.fixtures||[]})]}):null}var S=t(34148),k=t(87827),w=t(55729),E=t(22648),P=t(56075),z=t(94493),Y=t(65078);function A(e){let{fixture:s,total:t,hasStats:d}=e,{event:c,leftTeam:u,rightTeam:x,leftScore:y,rightScore:j}=(0,Y.mJ)(s.eventId,{shouldRefresh:!0});if(!c)return null;let h=c.homeTeam.id===x.id,v="".concat(u.shortName||u.name).concat(h?" @":" - ").concat(x.shortName||x.name),g=(0,n.Q_)(a.qbx.TotalPoints,t);return(0,l.jsx)(i.az,{px:"sm",children:(0,l.jsxs)(i.so,{p:"sm",bg:"surface.s1",br:"sm",align:"center",justify:"space-between",children:[(0,l.jsxs)(i.az,{children:[(0,l.jsx)(i.EY,{font:"display.small",block:!0,children:v}),(0,l.jsxs)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",mb:"xs",block:!0,children:[(0,l.jsx)(m.XU,{value:1e3*c.startTimestamp,...p.or.dateWithShortMonthOnly}),", ",(0,l.jsx)(m.ib,{value:1e3*c.startTimestamp})]}),(0,l.jsxs)(i.so,{bg:"onSurface.nLv5",br:"xs",py:"xs",px:"sm",w:"fit-content",children:[(0,l.jsx)(f.p,{size:16,id:u.id,name:u.name,isFantasy:!0}),(0,l.jsx)(i.EY,{lineHeight:"16px",font:"display.small",px:"sm",children:"number"==typeof(null==y?void 0:y.display)&&"number"==typeof(null==j?void 0:j.display)?"".concat(y.display," - ").concat(j.display):"-"}),(0,l.jsx)(f.p,{size:16,id:x.id,name:x.name,isFantasy:!0})]})]}),d||t||s.playerFixtureStatus!==a.$EV.Substitute?(0,l.jsxs)(i.EY,{font:"display.large",textTransform:"lowercase",children:[s.playerFixtureStatus===a.$EV.NotInSquad?(0,l.jsx)("s",{children:g}):g,(0,l.jsx)(r.A,{id:"fantasy_points_short"})]}):(0,l.jsx)(o.IKQ,{fill:"onSurface.nLv3"})]})})}let C=e=>{let{fixture:s,points:t,achievedStatsOnly:n,isOnColor:d,showLabels:c=!0,sortByPoints:u=!1,statsLimit:x}=e,[f,p]=(0,w.useState)(!1),m=((null==t?void 0:t.statistics)||[]).filter(e=>"rating"===e.key||e.points);m=u?m.sort((e,s)=>s.points-e.points):m,m=x?m.slice(0,x):m;let y=((null==t?void 0:t.statistics)||[]).filter(e=>"rating"!==e.key&&!e.points),h=s.playerFixtureStatus===a.$EV.Substitute?"player_benched_reason":"player_did_not_play",v=d?"onColor.secondary":"onSurface.nLv3";return(0,l.jsxs)(i.az,{children:[(0,l.jsx)(i.az,{mb:"lg",pt:"sm",children:(0,l.jsx)(A,{fixture:s,total:null==t?void 0:t.total,hasStats:!!(null==t?void 0:t.statistics.length)})}),m.length?(0,l.jsxs)(l.Fragment,{children:[c&&(0,l.jsxs)(i.so,{px:"lg",justify:"space-between",py:"xs",children:[(0,l.jsx)(i.EY,{font:"assistive.default",color:v,ellipsis:!0,children:(0,l.jsx)(r.A,{id:"statistics_short"})}),(0,l.jsxs)(i.so,{children:[(0,l.jsx)(i.EY,{font:"assistive.default",color:v,w:100,align:"center",children:(0,l.jsx)(r.A,{id:"value"})}),(0,l.jsx)(i.EY,{font:"assistive.default",color:v,w:24,align:"center",block:!0,textTransform:"capitalize",children:(0,l.jsx)(r.A,{id:"fantasy_points_short"})})]})]}),[...m,...f?y:[]].map(e=>{let s=d?"onColor.primary":e.points||"rating"===e.key?"onSurface.nLv1":"onSurface.nLv3";return(0,l.jsxs)(i.so,{px:"lg",justify:"space-between",py:"md",children:[(0,l.jsx)(i.EY,{color:s,ellipsis:!0,children:(0,l.jsx)(z.w,{id:e.key})}),(0,l.jsxs)(i.so,{children:["rating"===e.key?(0,l.jsx)(i.so,{w:100,justify:"center",position:"relative",children:(0,l.jsx)(i.az,{position:"absolute",top:"-5px",children:(0,l.jsx)(k.G,{rating:e.value})})}):(0,l.jsx)(i.EY,{color:s,w:100,align:"center",children:e.value}),(0,l.jsx)(i.EY,{color:s,w:24,align:"center",block:!0,children:e.points})]})]},e.key)}),!n&&(0,l.jsxs)(i.so,{p:"sm",justify:"center",align:"center",cursor:"pointer",onClick:()=>p(e=>!e),children:[(0,l.jsx)(i.EY,{font:"display.small",color:"primary.default",mr:"xs",children:f?(0,l.jsx)(r.A,{id:"show_less"}):(0,l.jsx)(r.A,{id:"show_more"})}),f?(0,l.jsx)(o.t8v,{fill:"primary.default"}):(0,l.jsx)(o.QtO,{fill:"primary.default"})]})]}):(0,l.jsx)(i.so,{justify:"center",children:(0,l.jsx)(j.p,{p:"xl",pt:0,graphic:"match-shotmap",descriptionMessageId:h})})]})};function R(e){let{userRoundPlayer:s,fantasyRound:t,achievedStatsOnly:o}=e,{fantasyCompetition:d}=(0,c.C)(),u=(null==d?void 0:d.type)===a.s9G.Seasonal,x=(s.fixtures||[]).map(e=>e.eventId).map(e=>a.lVT.eventPointsBreakdown(e,s.fantasyPlayer.player.id)),{data:f,isLoading:p}=(0,y.Ay)(x,P.P,{refreshInterval:3e4}),m=(f||[]).some(e=>{var s;return"fulfilled"===e.status&&"number"==typeof(null==(s=e.value.points)?void 0:s.total)}),j=(0,n.aH)(s),v=m?s.score:"-";return p?(0,l.jsx)(i.so,{h:o?396:500,justify:"center",align:"center",children:(0,l.jsx)(E.a,{})}):(0,l.jsx)(i.az,{minH:o?void 0:[500,458],children:(0,l.jsxs)(i.az,{bg:"surface.s2",br:"lg",children:[(0,l.jsxs)(i.az,{children:[!o&&(0,l.jsxs)(i.az,{px:"lg",pt:"lg",pb:"sm",children:[(0,l.jsx)(i.EY,{font:"display.medium",block:!0,children:(0,l.jsx)(r.A,{id:"points_breakdown"})}),(0,l.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",children:u?(0,l.jsx)(h.f5,{fantasyRound:t,isShort:!0}):(0,l.jsx)(r.A,{id:"fantasy_elite_faceoff_round",values:{n:t.sequence}})})]}),(s.fixtures||[]).map((e,s)=>{let t=null==f?void 0:f[s];return(0,l.jsx)(C,{fixture:e,points:(null==t?void 0:t.status)==="fulfilled"?t.value.points:void 0,achievedStatsOnly:o},e.eventId)})]}),!o&&(0,l.jsxs)(i.so,{p:"lg",justify:"space-between",align:"center",children:[(0,l.jsxs)(i.so,{direction:"column",children:[(0,l.jsx)(i.EY,{font:"display.medium",mr:"lg",children:(0,l.jsx)(r.A,{id:"total_points"})}),s.captain&&(0,l.jsxs)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",children:[(0,l.jsx)(r.A,{id:"fantasy_optimise_captain"})," ","(x".concat(s.tripleCapitain?3:2,")")]})]}),(0,l.jsx)(i.EY,{font:"display.medium",textTransform:"lowercase",children:j?(0,l.jsxs)("s",{children:[v,(0,l.jsx)(r.A,{id:"fantasy_points_short"})]}):(0,l.jsxs)(l.Fragment,{children:[v,(0,l.jsx)(r.A,{id:"fantasy_points_short"})]})})]})]})})}var I=t(40237);let L=e=>{let{form:s,player:t}=e,{leftTeam:n,rightTeam:a,leftScore:r,rightScore:o}=(0,Y.mJ)(s.eventId,{shouldRefresh:!0}),d=null==r?void 0:r.display,c=null==o?void 0:o.display,u=d===c,x=d&&c&&(null==n?void 0:n.id)===t.team.id&&d>c||d&&c&&(null==a?void 0:a.id)===t.team.id&&d(0,l.jsx)(L,{form:e,player:n},e.eventCustomId))]}),(0,l.jsxs)(i.az,{children:[(0,l.jsxs)(i.so,{justify:"space-between",align:"center",mb:"md",children:[(0,l.jsx)(i.EY,{font:"display.small",children:(0,l.jsx)(r.A,{id:"basic.fixtures"})}),(0,l.jsxs)(i.so,{gap:"md",children:[(0,l.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,l.jsx)(r.A,{id:"fantasy_expected_fantasy_points_short"})}),(0,l.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,l.jsx)(r.A,{id:"fixtureDifficultyRating.short"})})]})]}),(0,l.jsxs)(i.so,{justify:"space-between",children:[(0,l.jsxs)(i.so,{align:"center",gap:"md",children:[(0,l.jsxs)(i.so,{direction:"column",children:[(0,l.jsx)(i.EY,{font:"display.small",children:(0,l.jsx)(h.f5,{fantasyRound:d,isShort:!0,isWeekly:!0})}),(null==c?void 0:c.startTimestamp)&&(0,l.jsx)(i.EY,{children:(0,l.jsx)(m.XU,{value:(null==c?void 0:c.startTimestamp)*1e3,...p.or.fullDateTime})})]}),(0,l.jsxs)(i.so,{bg:"onSurface.nLv5",br:"xs",py:"xs",px:"sm",w:"fit-content",children:[(0,l.jsx)(I.p,{size:16,id:null==u?void 0:u.id,name:null==u?void 0:u.name,isFantasy:!0}),(0,l.jsx)(i.EY,{lineHeight:"16px",font:"display.small",px:"sm",children:"number"==typeof(null==f?void 0:f.display)&&"number"==typeof(null==j?void 0:j.display)?"".concat(f.display," - ").concat(j.display):"-"}),(0,l.jsx)(I.p,{size:16,id:null==x?void 0:x.id,name:null==x?void 0:x.name,isFantasy:!0})]})]}),(0,l.jsxs)(i.so,{align:"center",gap:"md",children:[(0,l.jsx)(i.EY,{font:"display.medium",children:n.expectedPoints}),(null==g||null==(t=g.fixtures)?void 0:t[0].fixtureDifficulty)&&!b&&(0,l.jsx)(v.U,{difficulty:g.fixtures[0].fixtureDifficulty})]})]})]})]})}let T=e=>{let{icon:s,bg:t,labelId:n,onClick:a}=e;return(0,l.jsxs)(i.az,{w:144,onClick:a,cursor:"pointer",children:[(0,l.jsx)(i.so,{mx:"auto",bg:t,br:"50%",h:48,w:48,align:"center",justify:"center",children:s}),(0,l.jsx)(i.EY,{mt:"sm",align:"center",block:!0,children:(0,l.jsx)(r.A,{id:n})})]})};function X(e){var s,t;let{player:n,playerActions:r,fantasyRound:f,closeModal:p}=e,{fantasyCompetition:m}=(0,c.C)(),y=(null==m?void 0:m.type)===a.s9G.Seasonal;return(0,l.jsxs)(i.az,{pb:["xxl",0],children:[(0,l.jsx)(x.A,{roundPlayer:n,playerActions:r}),(0,l.jsx)(S.A,{player:n}),n.isLocked&&(null==(s=n.fixtures)?void 0:s.length)&&f?(0,l.jsx)(i.az,{p:"lg",children:(0,l.jsx)(R,{userRoundPlayer:n,fantasyRound:f})}):y?(0,l.jsx)(_,{fantasyPlayerId:n.fantasyPlayer.id}):f?(0,l.jsxs)(i.az,{p:"lg",children:[(0,l.jsx)(F,{fixture:null==(t=n.fixtures)?void 0:t[0],fantasyRound:f,player:n}),(0,l.jsx)(d.w,{my:"md"})]}):null,!n.isLocked&&(0,l.jsxs)(i.so,{justify:"center",pt:"lg",children:[r.makeCaptain&&!n.substitute&&!n.captain&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"make_captain"}),r.makeCaptain(n,p)},labelId:"make_captain",bg:"primary.default",icon:(0,l.jsx)(i.EY,{h:24,lineHeight:"24px",font:"display.medium",color:"onColor.primary",block:!0,children:"C"})}),r.substitute&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"substitute"}),r.substitute(n,p)},labelId:n.substitute?"substitution_in_short":"substitution_out_short",bg:n.substitute?"success.default":"sofaSingles.value",icon:n.substitute?(0,l.jsx)(o.G4W,{fill:"onColor.primary",w:16,h:16}):(0,l.jsx)(o.R2C,{fill:"onColor.primary",w:16,h:16})}),r.restore&&(n.state===a.zXX.Removed||n.state===a.zXX.JustAdded)&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"restore"}),r.restore(n,p)},labelId:"restore_player",bg:"primary.default",icon:(0,l.jsx)(o.H42,{fill:"onColor.primary",w:16,h:16})}),r.remove&&n.state!==a.zXX.Removed&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"remove"}),r.remove(n,p)},labelId:"remove_player",bg:"error.default",icon:(0,l.jsx)(o.CA7,{fill:"onColor.primary",w:16,h:16})}),r.replace&&n.state===a.zXX.Removed&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"select_replacement"}),r.replace(n,p)},labelId:"select_replacement",bg:"error.default",icon:(0,l.jsx)(o.R2C,{fill:"onColor.primary",w:16,h:16})}),r.transfer&&n.state!==a.zXX.Removed&&n.state!==a.zXX.JustAdded&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"transfer"}),r.transfer(n,p)},labelId:"transfer_out",bg:"error.default",icon:(0,l.jsx)(o.R2C,{fill:"onColor.primary",w:16,h:16})})]})]})}var D=t(17474),q=t(5276),W=t(54917);function H(e){let{roundPlayer:s}=e,{fantasyCompetition:t}=(0,c.C)(),r=(null==t?void 0:t.type)===a.s9G.Seasonal,{team:d,price:u,fantasyPlayer:x}=s,{position:f,player:p}=s.fantasyPlayer,{missingType:m,missingReason:y}=(0,n.tc)(s.fixtures);return(0,l.jsxs)(i.so,{px:"lg",pb:"lg",pt:["sm","lg"],align:"center",borderBottom:"onSurface.nLv4",children:[(0,l.jsx)(D.Y,{fantasyPlayerId:x.id,teamId:d.id,playerSize:64,teamSize:24}),(0,l.jsxs)(i.az,{w:"calc(100% - 72px)",ml:"lg",children:[(0,l.jsxs)(i.so,{w:"100%",children:[(0,l.jsx)(i.EY,{maxW:"calc(100% - 28px)",font:"display.large",ellipsis:!0,block:!0,children:p.name}),s.captain&&(0,l.jsx)(i.az,{w:24,h:24,ml:"xs",children:s.tripleCapitain?(0,l.jsx)(o.WYx,{width:24,height:24}):(0,l.jsx)(o.Sic,{width:24,height:24})})]}),(0,l.jsxs)(i.so,{align:"center",children:[r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.EY,{font:"display.small",color:"onSurface.nLv3",block:!0,children:(0,n.Q_)(a.qbx.Price,u)}),(0,l.jsx)(i.az,{w:4,h:4,br:"50%",mx:"sm",bg:"onSurface.nLv3"})]}),(0,l.jsx)(i.EY,{font:"display.small",color:"onSurface.nLv3",block:!0,children:(0,l.jsx)(W.F,{id:f||"-"})})]}),(0,l.jsx)(h.N5,{w:"fit-content",br:"sm",color:m===a.evQ.Missing?"error.default":"sofaSingles.value",messageId:m?(0,q.RV)(m,y||0):void 0,minW:112,size:[16,16],font:["body.small","body.small"],py:["xs",0],mt:"xs"})]})]})}},56075:(e,s,t)=>{t.d(s,{P:()=>i,n:()=>a});var n=t(21377);let l=["patricia.gale01@gmail.com","petarcorluka86@gmail.com","murtic.alen@gmail.com","marcekcro@gmail.com","testnitest9@gmail.com","hruskarkresimir@gmail.com","testni442@gmail.com","ante.car.susak@gmail.com","antonio.bojo@icloud.com"],a=e=>{let s=(null==e?void 0:e.email)||"",t=(null==e?void 0:e.chatRole)==="admin",n=null==s?void 0:s.includes("@sofascore.com"),a=l.includes(s);return t||n||a},i=e=>Promise.allSettled(e.map(e=>(0,n.TtD)(e)))},77530:(e,s,t)=>{t.d(s,{w:()=>x});var n=t(6029),l=t(21377),a=t(99064),i=t(82203),r=t.n(i),o=t(90248),d=t(54409),c=t(38081),u=t(61836);function x(e){let{elevation:s=2,...t}=e,{fantasyCompetition:i}=(0,c.C)();return(0,n.jsx)(r(),{href:(null==i?void 0:i.type)===l.s9G.Seasonal?"/fantasy/rules":"/fantasy/elite-faceoff-rules",target:"_blank",onClick:()=>(0,u.nW)({action:"rules_click"}),children:(0,n.jsx)(a.az,{...t,children:(0,n.jsxs)(a.so,{p:"md",bg:"surface.s1",elevation:s,br:"md",justify:"space-between",align:"center",children:[(0,n.jsxs)(a.so,{align:"center",gap:"sm",children:[(0,n.jsx)(d.G_L,{minW:24,fill:"onSurface.nLv3"}),(0,n.jsx)(a.EY,{font:"body.mediumParagraph",children:(0,n.jsx)(o.A,{id:"fantasy_learn_how_to_play"})})]}),(0,n.jsx)(d.zQC,{minW:24,icon:"chevron-right",fill:"primary.default"})]})})})}},81213:(e,s,t)=>{t.d(s,{U:()=>i});var n=t(6029),l=t(99064),a=t(12471);function i(e){let{difficulty:s}=e;return(0,n.jsx)(l.az,{w:20,h:20,br:"50%",bg:a.D[s],children:(0,n.jsx)(l.EY,{font:"assistive.default",lineHeight:"20px",align:"center",color:"onColor.primary",block:!0,children:a.E[s]})})}},96299:(e,s,t)=>{t.d(s,{Q_:()=>c,nP:()=>a,tc:()=>i,KU:()=>r,e8:()=>o,aH:()=>d});var n=t(21377),l=t(57258);let a=e=>e===n.evQ.Doubtful?"sofaSingles.value":e===n.evQ.Missing?"error.default":void 0,i=e=>{let s=null==e?void 0:e.find(e=>!!e.missingType);return{missingType:null==s?void 0:s.missingType,missingReason:null==s?void 0:s.missingReason}},r=e=>e&&[n.zXX.Disabled,n.zXX.JustAddedDisabled,n.zXX.RemovedDisabled].includes(e),o=e=>e&&[n.zXX.Removed,n.zXX.RemovedSwapAvailable,n.zXX.RemovedDisabled].includes(e),d=e=>{var s,t;return e.isLocked&&!e.score&&(null==(s=e.fixtures)?void 0:s.some(e=>!!e.playerFixtureStatus))&&!(null==(t=e.fixtures)?void 0:t.some(e=>e.playerFixtureStatus&&e.playerFixtureStatus!==n.$EV.NotInSquad))},c=(e,s)=>{let t=[n.qbx.Price,n.qbx.Form,n.qbx.AveragePoints,n.qbx.SelectedPercentage,n.qbx.ExpectedPoints].includes(e),a=e===n.qbx.Price?l.lU:"",i=e===n.qbx.SelectedPercentage?"%":e===n.qbx.Price?"M":"";i=e===n.qbx.ExpectedPoints?" xFP":i;let r="number"==typeof s&&t?s.toFixed(l.J$):s,o="".concat(a).concat(r).concat(i);return void 0!==s?o:"-"}}}]);