!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]="3b89e464-70f7-41c3-b14a-3d55d7bf9df2",e._sentryDebugIdIdentifier="sentry-dbid-3b89e464-70f7-41c3-b14a-3d55d7bf9df2")}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),a=t(21377),l=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)===a.s9G.Seasonal;return(0,n.jsxs)(l.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)(l.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)(l.$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:()=>a,E:()=>l});var n=t(21377);let a={[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"},l={[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),a=t(94446),l=t(99064);function i(e){let{fantasyPlayerId:s,teamId:t,playerSize:i=32,teamSize:r=16}=e;return(0,n.jsxs)(l.az,{position:"relative",h:i,w:i,children:[(0,n.jsx)(a.t,{size:i,id:s,isFantasy:!0}),(0,n.jsx)(l.az,{position:"absolute",bottom:"0",left:"0",h:r,w:r,children:(0,n.jsx)(a.p,{id:t,size:r,isFantasy:!0})})]})}},34148:(e,s,t)=>{t.d(s,{A:()=>u});var n=t(6029),a=t(87827),l=t(21377),i=t(99064),r=t(90248),o=t(38081),d=t(96299);let c=e=>{let{titleId:s,value:t,position:a,count:l}=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!=a?a:"-",totalCount:null!=l?l:"-"}})})]})};function u(e){var s;let{player:t}=e,{fantasyCompetition:r}=(0,o.C)(),u=(null==r?void 0:r.type)===l.s9G.Seasonal,{averageScore:x,form:f,ownedPercentage:p,totalScore:y}=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_)(l.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_)(l.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_)(l.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_)(l.qbx.TotalPoints,y),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)(a.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_)(l.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),a=t(55729);let l=(0,a.createContext)({fantasyCompetition:void 0,branding:void 0}),i=e=>{let{children:s,fantasyCompetition:t,branding:a}=e;return(0,n.jsx)(l.Provider,{value:{fantasyCompetition:t,branding:a},children:s})},r=()=>(0,a.useContext)(l)},51942:(e,s,t)=>{t.d(s,{GE:()=>I,cZ:()=>q,DT:()=>U,eM:()=>L,Q_:()=>n.Q_,nP:()=>n.nP,tc:()=>n.tc,KU:()=>n.KU,e8:()=>n.e8,aH:()=>n.aH});var n=t(96299),a=t(6029),l=t(21377),i=t(4967),r=t(28349),o=t(76356),d=t(90248),c=t(54409),u=t(77530),x=t(38081),f=t(61836),p=t(8157),y=t(33144),m=t(99064),j=t(90510),h=t(45860),v=t(76868),g=t(99326),b=t(81213);let _=e=>{let{fixtures:s,isPast:t}=e,n=!s.some(e=>!e.score&&0!==e.score),l=n?s.reduce((e,s)=>e+(s.score||0),0):void 0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(m.az,{display:["block","none"],w:"100%",bg:"surface.sp",br:"sm",p:"xs",children:[(0,a.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",mb:"xs",block:!0,children:(0,a.jsx)(g.f5,{fantasyRound:s[0].fantasyRound,isShort:!0})}),s.map((e,s)=>(0,a.jsxs)(m.so,{align:"center",children:[(0,a.jsx)(y.p,{id:e.team.id,size:24,isFantasy:!0}),(0,a.jsx)(m.az,{grow:1,children:(0,a.jsx)(m.EY,{font:"display.small",ml:"sm",children:"".concat(e.team.nameCode," (").concat(e.locationType,")")})}),(0,a.jsx)(m.EY,{font:"display.small",children:e.score||0===e.score||t?(0,a.jsxs)(m.EY,{font:"display.small",textTransform:"lowercase",children:[e.score||0,(0,a.jsx)(d.A,{id:"Pts"})]}):e.fixtureDifficulty?(0,a.jsx)(b.U,{difficulty:e.fixtureDifficulty}):(0,a.jsx)(j.XU,{value:1e3*e.eventStartTimestamp,...i.or.dateWithShortMonthOnly})})]},"".concat(e.team.id,"-").concat(s)))]}),(0,a.jsxs)(m.az,{display:["none","block"],w:"33.33%",bg:"surface.sp",br:"sm",p:"sm",children:[n?(0,a.jsxs)(m.EY,{font:"display.small",align:"center",block:!0,textTransform:"lowercase",children:[l,(0,a.jsx)(d.A,{id:"Pts"})]}):(0,a.jsx)(m.so,{justify:"center",gap:"md",children:s.map((e,s)=>(0,a.jsx)(m.EY,{font:"display.small",align:"center",block:!0,children:e.score||0===e.score||t?(0,a.jsxs)(m.EY,{font:"display.small",textTransform:"lowercase",children:[e.score||0,(0,a.jsx)(d.A,{id:"Pts"})]}):e.fixtureDifficulty?(0,a.jsx)(b.U,{difficulty:e.fixtureDifficulty}):(0,a.jsx)(j.XU,{value:1e3*e.eventStartTimestamp,...i.or.dateWithShortMonthOnly})},"".concat(e.team.id,"-").concat(s)))}),(0,a.jsx)(m.so,{justify:"center",gap:"md",p:"sm",children:s.map((e,s)=>(0,a.jsx)(y.p,{id:e.team.id,size:24,isFantasy:!0},"".concat(e.team.id,"-").concat(s)))}),(0,a.jsx)(m.EY,{align:"center",font:"assistive.default",color:"onSurface.nLv3",block:!0,children:(0,a.jsx)(g.f5,{fantasyRound:s[0].fantasyRound,isShort:!0})}),(0,a.jsx)(m.EY,{align:"center",font:"display.small",block:!0,children:s.map(e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.EY,{children:e.team.nameCode}),"H"===e.locationType?(0,a.jsx)(c.Hoe,{outlined:!0,h:"16px",mt:"-1px",fill:"onSurface.nLv1"}):"A"===e.locationType?(0,a.jsx)(c.IA5,{h:"16px",mt:"-1px",fill:"onSurface.nLv1"}):""]}))})]})]})},S=e=>{let{titleId:s,fixtures:t,isPast:n}=e,l=Array.from(new Set(t.map(e=>e.fantasyRound.sequence))).sort((e,s)=>e-s);return(0,a.jsxs)(m.az,{w:"50%",bg:"surface.s2",br:"md",p:"sm",children:[(0,a.jsx)(m.EY,{font:"display.medium",mb:"lg",block:!0,children:(0,a.jsx)(d.A,{id:s})}),t.length?(0,a.jsx)(m.so,{direction:["column","row"],style:{gap:8},children:l.map(e=>(0,a.jsx)(_,{fixtures:t.filter(s=>s.fantasyRound.sequence===e),isPast:n},e))}):(0,a.jsx)(v.p,{graphic:"match-shotmap",descriptionMessageId:"basic.noEvents"})]})};function w(e){var s,t;let{fantasyPlayerId:n}=e,{data:i,isLoading:r}=(0,h.Ay)(l.lVT.playerFormAndFixtures(n));return r?(0,a.jsx)(m.az,{h:[256,192]}):(null==i||null==(s=i.form)?void 0:s.length)||(null==i||null==(t=i.fixtures)?void 0:t.length)?(0,a.jsxs)(m.so,{px:"lg",gap:"lg",my:"lg",children:[(0,a.jsx)(S,{titleId:"player_form",fixtures:i.form||[],isPast:!0}),(0,a.jsx)(S,{titleId:"basic.fixtures",fixtures:i.fixtures||[]})]}):null}var E=t(34148),P=t(87827),k=t(55729),z=t(22648),Y=t(56075),A=t(94493),C=t(65078);function R(e){let{fixture:s,total:t,hasStats:r}=e,{event:o,leftTeam:u,rightTeam:x,leftScore:f,rightScore:p}=(0,C.mJ)(s.eventId,{shouldRefresh:!0});if(!o)return null;let h=o.homeTeam.id===x.id,v="".concat(u.shortName||u.name).concat(h?" @":" - ").concat(x.shortName||x.name),g=(0,n.Q_)(l.qbx.TotalPoints,t);return(0,a.jsx)(m.az,{px:"sm",children:(0,a.jsxs)(m.so,{p:"sm",bg:"surface.s1",br:"sm",align:"center",justify:"space-between",children:[(0,a.jsxs)(m.az,{children:[(0,a.jsx)(m.EY,{font:"display.small",block:!0,children:v}),(0,a.jsxs)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",mb:"xs",block:!0,children:[(0,a.jsx)(j.XU,{value:1e3*o.startTimestamp,...i.or.dateWithShortMonthOnly}),", ",(0,a.jsx)(j.ib,{value:1e3*o.startTimestamp})]}),(0,a.jsxs)(m.so,{bg:"onSurface.nLv5",br:"xs",py:"xs",px:"sm",w:"fit-content",children:[(0,a.jsx)(y.p,{size:16,id:u.id,name:u.name,isFantasy:!0}),(0,a.jsx)(m.EY,{lineHeight:"16px",font:"display.small",px:"sm",children:"number"==typeof(null==f?void 0:f.display)&&"number"==typeof(null==p?void 0:p.display)?"".concat(f.display," - ").concat(p.display):"-"}),(0,a.jsx)(y.p,{size:16,id:x.id,name:x.name,isFantasy:!0})]})]}),r||t||s.playerFixtureStatus!==l.$EV.Substitute?(0,a.jsxs)(m.EY,{font:"display.large",textTransform:"lowercase",children:[s.playerFixtureStatus===l.$EV.NotInSquad?(0,a.jsx)("s",{children:g}):g,(0,a.jsx)(d.A,{id:"fantasy_points_short"})]}):(0,a.jsx)(c.IKQ,{fill:"onSurface.nLv3"})]})})}let I=e=>{let{fixture:s,points:t,achievedStatsOnly:n,isOnColor:i,showLabels:r=!0,sortByPoints:o=!1,statsLimit:u}=e,[x,f]=(0,k.useState)(!1),p=((null==t?void 0:t.statistics)||[]).filter(e=>"rating"===e.key||e.points);p=o?p.sort((e,s)=>s.points-e.points):p,p=u?p.slice(0,u):p;let y=((null==t?void 0:t.statistics)||[]).filter(e=>"rating"!==e.key&&!e.points),j=s.playerFixtureStatus===l.$EV.Substitute?"player_benched_reason":"player_did_not_play",h=i?"onColor.secondary":"onSurface.nLv3";return(0,a.jsxs)(m.az,{children:[(0,a.jsx)(m.az,{mb:"lg",pt:"sm",children:(0,a.jsx)(R,{fixture:s,total:null==t?void 0:t.total,hasStats:!!(null==t?void 0:t.statistics.length)})}),p.length?(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsxs)(m.so,{px:"lg",justify:"space-between",py:"xs",children:[(0,a.jsx)(m.EY,{font:"assistive.default",color:h,ellipsis:!0,children:(0,a.jsx)(d.A,{id:"statistics_short"})}),(0,a.jsxs)(m.so,{children:[(0,a.jsx)(m.EY,{font:"assistive.default",color:h,w:100,align:"center",children:(0,a.jsx)(d.A,{id:"value"})}),(0,a.jsx)(m.EY,{font:"assistive.default",color:h,w:24,align:"center",block:!0,textTransform:"capitalize",children:(0,a.jsx)(d.A,{id:"fantasy_points_short"})})]})]}),[...p,...x?y:[]].map(e=>{let s=i?"onColor.primary":e.points||"rating"===e.key?"onSurface.nLv1":"onSurface.nLv3";return(0,a.jsxs)(m.so,{px:"lg",justify:"space-between",py:"md",children:[(0,a.jsx)(m.EY,{color:s,ellipsis:!0,children:(0,a.jsx)(A.w,{id:e.key})}),(0,a.jsxs)(m.so,{children:["rating"===e.key?(0,a.jsx)(m.so,{w:100,justify:"center",position:"relative",children:(0,a.jsx)(m.az,{position:"absolute",top:"-5px",children:(0,a.jsx)(P.G,{rating:e.value})})}):(0,a.jsx)(m.EY,{color:s,w:100,align:"center",children:e.value}),(0,a.jsx)(m.EY,{color:s,w:24,align:"center",block:!0,children:e.points})]})]},e.key)}),!n&&(0,a.jsxs)(m.so,{p:"sm",justify:"center",align:"center",cursor:"pointer",onClick:()=>f(e=>!e),children:[(0,a.jsx)(m.EY,{font:"display.small",color:"primary.default",mr:"xs",children:x?(0,a.jsx)(d.A,{id:"show_less"}):(0,a.jsx)(d.A,{id:"show_more"})}),x?(0,a.jsx)(c.t8v,{fill:"primary.default"}):(0,a.jsx)(c.QtO,{fill:"primary.default"})]})]}):(0,a.jsx)(v.p,{graphic:"match-shotmap",descriptionMessageId:j})]})};function L(e){let{userRoundPlayer:s,fantasyRound:t,achievedStatsOnly:i}=e,{fantasyCompetition:r}=(0,x.C)(),o=(null==r?void 0:r.type)===l.s9G.Seasonal,c=(s.fixtures||[]).map(e=>e.eventId).map(e=>l.lVT.eventPointsBreakdown(e,s.fantasyPlayer.player.id)),{data:u,isLoading:f}=(0,h.Ay)(c,Y.P,{refreshInterval:3e4}),p=(u||[]).some(e=>{var s;return"fulfilled"===e.status&&"number"==typeof(null==(s=e.value.points)?void 0:s.total)}),y=(0,n.aH)(s),j=p?s.score:"-";return f?(0,a.jsx)(m.so,{h:i?396:500,justify:"center",align:"center",children:(0,a.jsx)(z.a,{})}):(0,a.jsx)(m.az,{minH:i?void 0:[500,458],children:(0,a.jsxs)(m.az,{bg:"surface.s2",br:"lg",children:[(0,a.jsxs)(m.az,{children:[!i&&(0,a.jsxs)(m.az,{px:"lg",pt:"lg",pb:"sm",children:[(0,a.jsx)(m.EY,{font:"display.medium",block:!0,children:(0,a.jsx)(d.A,{id:"points_breakdown"})}),(0,a.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",children:o?(0,a.jsx)(g.f5,{fantasyRound:t,isShort:!0}):(0,a.jsx)(d.A,{id:"fantasy_elite_faceoff_round",values:{n:t.sequence}})})]}),(s.fixtures||[]).map((e,s)=>{let t=null==u?void 0:u[s];return(0,a.jsx)(I,{fixture:e,points:(null==t?void 0:t.status)==="fulfilled"?t.value.points:void 0,achievedStatsOnly:i},e.eventId)})]}),!i&&(0,a.jsxs)(m.so,{p:"lg",justify:"space-between",align:"center",children:[(0,a.jsxs)(m.so,{direction:"column",children:[(0,a.jsx)(m.EY,{font:"display.medium",mr:"lg",children:(0,a.jsx)(d.A,{id:"total_points"})}),s.captain&&(0,a.jsxs)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",children:[(0,a.jsx)(d.A,{id:"fantasy_optimise_captain"})," ","(x".concat(s.tripleCapitain?3:2,")")]})]}),(0,a.jsx)(m.EY,{font:"display.medium",textTransform:"lowercase",children:y?(0,a.jsxs)("s",{children:[j,(0,a.jsx)(d.A,{id:"fantasy_points_short"})]}):(0,a.jsxs)(a.Fragment,{children:[j,(0,a.jsx)(d.A,{id:"fantasy_points_short"})]})})]})]})})}var T=t(40237);let F=e=>{let{form:s,player:t}=e,{leftTeam:n,rightTeam:l,leftScore:r,rightScore:o}=(0,C.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==l?void 0:l.id)===t.team.id&&d(0,a.jsx)(F,{form:e,player:n},e.eventCustomId))]}),(0,a.jsxs)(m.az,{children:[(0,a.jsxs)(m.so,{justify:"space-between",align:"center",mb:"md",children:[(0,a.jsx)(m.EY,{font:"display.small",children:(0,a.jsx)(d.A,{id:"basic.fixtures"})}),(0,a.jsxs)(m.so,{gap:"md",children:[(0,a.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,a.jsx)(d.A,{id:"fantasy_expected_fantasy_points_short"})}),(0,a.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,a.jsx)(d.A,{id:"fixtureDifficultyRating.short"})})]})]}),(0,a.jsxs)(m.so,{justify:"space-between",children:[(0,a.jsxs)(m.so,{align:"center",gap:"md",children:[(0,a.jsxs)(m.so,{direction:"column",children:[(0,a.jsx)(m.EY,{font:"display.small",children:(0,a.jsx)(g.f5,{fantasyRound:o,isShort:!0,isWeekly:!0})}),(null==c?void 0:c.startTimestamp)&&(0,a.jsx)(m.EY,{children:(0,a.jsx)(j.XU,{value:(null==c?void 0:c.startTimestamp)*1e3,...i.or.fullDateTime})})]}),(0,a.jsxs)(m.so,{bg:"onSurface.nLv5",br:"xs",py:"xs",px:"sm",w:"fit-content",children:[(0,a.jsx)(T.p,{size:16,id:null==u?void 0:u.id,name:null==u?void 0:u.name,isFantasy:!0}),(0,a.jsx)(m.EY,{lineHeight:"16px",font:"display.small",px:"sm",children:"number"==typeof(null==f?void 0:f.display)&&"number"==typeof(null==p?void 0:p.display)?"".concat(f.display," - ").concat(p.display):"-"}),(0,a.jsx)(T.p,{size:16,id:null==x?void 0:x.id,name:null==x?void 0:x.name,isFantasy:!0})]})]}),(0,a.jsxs)(m.so,{align:"center",gap:"md",children:[(0,a.jsx)(m.EY,{font:"display.medium",children:n.expectedPoints}),(null==y||null==(t=y.fixtures)?void 0:t[0].fixtureDifficulty)&&!v&&(0,a.jsx)(b.U,{difficulty:y.fixtures[0].fixtureDifficulty})]})]})]})]})}let D=e=>{let{icon:s,bg:t,labelId:n,onClick:l}=e;return(0,a.jsxs)(o.az,{w:"[144]",onClick:l,cursor:"pointer",children:[(0,a.jsx)(o.so,{mx:"auto",bg:t,br:"50%",h:"[48]",w:"[48]",align:"center",justify:"center",children:s}),(0,a.jsx)(r.EY,{mt:"sm",textAlign:"center",display:"block",children:(0,a.jsx)(d.A,{id:n})})]})};function q(e){var s,t;let{player:n,playerActions:d,fantasyRound:y,closeModal:m}=e,{fantasyCompetition:j}=(0,x.C)(),h=(null==j?void 0:j.type)===l.s9G.Seasonal,v=(0,i.ZV)(),g=null==y?void 0:y.endTimestamp,b=null==y?void 0:y.deadlineTimestamp,_=null==y?void 0:y.isPlaceholderRound,S=!!g&&g{(0,f.nW)({action:"player_modal",type:"make_captain"}),d.makeCaptain(n,m)},labelId:"make_captain",bg:"primary.default",icon:(0,a.jsx)(r.EY,{h:"[24px]",lineHeight:"24px",textStyle:"display.medium",color:"onColor.primary",display:"block",children:"C"})}),d.substitute&&(0,a.jsx)(D,{onClick:()=>{(0,f.nW)({action:"player_modal",type:"substitute"}),d.substitute(n,m)},labelId:n.substitute?"substitution_in_short":"substitution_out_short",bg:n.substitute?"status.success.default":"status.val",icon:n.substitute?(0,a.jsx)(c.G4W,{fill:"onColor.primary",w:16,h:16}):(0,a.jsx)(c.R2C,{fill:"onColor.primary",w:16,h:16})}),d.restore&&(n.state===l.zXX.Removed||n.state===l.zXX.JustAdded)&&(0,a.jsx)(D,{onClick:()=>{(0,f.nW)({action:"player_modal",type:"restore"}),d.restore(n,m)},labelId:"restore_player",bg:"primary.default",icon:(0,a.jsx)(c.H42,{fill:"onColor.primary",w:16,h:16})}),d.remove&&n.state!==l.zXX.Removed&&(0,a.jsx)(D,{onClick:()=>{(0,f.nW)({action:"player_modal",type:"remove"}),d.remove(n,m)},labelId:"remove_player",bg:"status.error.default",icon:(0,a.jsx)(c.CA7,{fill:"onColor.primary",w:16,h:16})}),d.replace&&n.state===l.zXX.Removed&&(0,a.jsx)(D,{onClick:()=>{(0,f.nW)({action:"player_modal",type:"select_replacement"}),d.replace(n,m)},labelId:"select_replacement",bg:"status.error.default",icon:(0,a.jsx)(c.R2C,{fill:"onColor.primary",w:16,h:16})}),!S&&d.transfer&&n.state!==l.zXX.Removed&&n.state!==l.zXX.JustAdded&&(0,a.jsx)(D,{onClick:()=>{(0,f.nW)({action:"player_modal",type:"transfer"}),d.transfer(n,m)},labelId:"transfer_out",bg:"status.error.default",icon:(0,a.jsx)(c.R2C,{fill:"onColor.primary",w:16,h:16})})]})]})}var W=t(17474),H=t(5276),Q=t(54917);function U(e){let{roundPlayer:s}=e,{fantasyCompetition:t}=(0,x.C)(),i=(null==t?void 0:t.type)===l.s9G.Seasonal,{team:r,price:o,fantasyPlayer:d}=s,{position:u,player:f}=s.fantasyPlayer,{missingType:p,missingReason:y}=(0,n.tc)(s.fixtures);return(0,a.jsxs)(m.so,{px:"lg",pb:"lg",pt:["sm","lg"],align:"center",borderBottom:"onSurface.nLv4",children:[(0,a.jsx)(W.Y,{fantasyPlayerId:d.id,teamId:r.id,playerSize:64,teamSize:24}),(0,a.jsxs)(m.az,{w:"calc(100% - 72px)",ml:"lg",children:[(0,a.jsxs)(m.so,{w:"100%",children:[(0,a.jsx)(m.EY,{maxW:"calc(100% - 28px)",font:"display.large",ellipsis:!0,block:!0,children:f.name}),s.captain&&(0,a.jsx)(m.az,{w:24,h:24,ml:"xs",children:s.tripleCapitain?(0,a.jsx)(c.WYx,{width:24,height:24}):(0,a.jsx)(c.Sic,{width:24,height:24})})]}),(0,a.jsxs)(m.so,{align:"center",children:[i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.EY,{font:"display.small",color:"onSurface.nLv3",block:!0,children:(0,n.Q_)(l.qbx.Price,o)}),(0,a.jsx)(m.az,{w:4,h:4,br:"50%",mx:"sm",bg:"onSurface.nLv3"})]}),(0,a.jsx)(m.EY,{font:"display.small",color:"onSurface.nLv3",block:!0,children:(0,a.jsx)(Q.F,{id:u||"-"})})]}),(0,a.jsx)(g.N5,{w:"fit-content",br:"sm",color:p===l.evQ.Missing?"error.default":"sofaSingles.value",messageId:p?(0,H.RV)(p,y||0):void 0,minW:112,size:[16,16],font:["body.small","body.small"],py:["xs",0],mt:"xs"})]})]})}},77530:(e,s,t)=>{t.d(s,{w:()=>x});var n=t(6029),a=t(21377),l=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)===a.s9G.Seasonal?"/fantasy/rules":"/fantasy/elite-faceoff-rules",target:"_blank",onClick:()=>(0,u.nW)({action:"rules_click"}),children:(0,n.jsx)(l.az,{...t,children:(0,n.jsxs)(l.so,{p:"md",bg:"surface.s1",elevation:s,br:"md",justify:"space-between",align:"center",children:[(0,n.jsxs)(l.so,{align:"center",gap:"sm",children:[(0,n.jsx)(d.G_L,{minW:24,fill:"onSurface.nLv3"}),(0,n.jsx)(l.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),a=t(99064),l=t(12471);function i(e){let{difficulty:s}=e;return(0,n.jsx)(a.az,{w:20,h:20,br:"50%",bg:l.D[s],children:(0,n.jsx)(a.EY,{font:"assistive.default",lineHeight:"20px",align:"center",color:"onColor.primary",block:!0,children:l.E[s]})})}},96299:(e,s,t)=>{t.d(s,{Q_:()=>c,nP:()=>l,tc:()=>i,KU:()=>r,e8:()=>o,aH:()=>d});var n=t(21377),a=t(57258);let l=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),l=e===n.qbx.Price?a.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(a.J$):s,o="".concat(l).concat(r).concat(i);return void 0!==s?o:"-"}}}]);