!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]="b8ebc779-5df5-4863-a05b-f979ac17cf7a",e._sentryDebugIdIdentifier="sentry-dbid-b8ebc779-5df5-4863-a05b-f979ac17cf7a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9561],{5276:(e,s,n)=>{n.d(s,{Ck:()=>h,PM:()=>_,RV:()=>j,Sb:()=>b});var t=n(6029),l=n(10292),a=n(21377),i=n(41249),r=n(55729),o=n(90248),d=n(65789),c=n(62859),u=n(54409),x=n(76868),f=n(70591),p=n(24159);let m={[a.evQ.Missing]:"error.default",[a.evQ.Doubtful]:"sofaSingles.value"},y=e=>{let s=m[e.type];switch(e.reason){case a.s2G.Injured:case a.s2G.Ill:return(0,t.jsx)(u.NcS,{icon:"cross",fill:s});case a.s2G.Suspended:return(0,t.jsx)(u.NcS,{icon:"suspended",fill:s});case a.s2G.YellowCard:return(0,t.jsx)(u.NcS,{icon:"card",fill:"scoreRating.s65"});case a.s2G.YellowRedCard:return(0,t.jsx)(u.NcS,{icon:"card-double-yellow"});case a.s2G.RedCard:return(0,t.jsx)(u.NcS,{icon:"card",fill:"error.default"});case a.s2G.OnLoan:return(0,t.jsx)(u.NcS,{icon:"on-loan",fill:s});case a.s2G.Other:default:return(0,t.jsx)(u.NcS,{icon:"player",fill:s})}},j=(e,s)=>s===a.s2G.OnLoan?"missingplayer.onloan":e===a.evQ.Missing?-1!==[a.s2G.Suspended,a.s2G.YellowCard,a.s2G.YellowRedCard,a.s2G.RedCard].indexOf(s)?"player_status_suspended":"injury_status_out":"injury_status_doubtful";function h(e){let{missingPlayer:s}=e,n=m[s.type];return(0,t.jsxs)(i.so,{align:"center",w:"fit-content",mt:"xs",children:[y(s),(0,t.jsx)(i.EY,{ml:2,lineHeight:"100%",font:"assistive.default",color:n,as:"div",children:(0,t.jsx)(o.A,{id:j(s.type,s.reason)})})]})}function v(e){let{missingPlayer:s,isLast:n}=e,a=(0,r.useContext)(c.Ws);return(0,t.jsx)(f.uc,{player:s.player,sportSlug:a,children:(0,t.jsxs)(i.so,{hoverBg:"surface.s2",cursor:"pointer",children:[(0,t.jsx)(i.az,{px:"lg",py:"sm",children:(0,t.jsx)(l.t,{size:40,id:s.player.id,name:s.player.name})}),(0,t.jsx)(i.so,{borderBottom:n?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:(0,t.jsxs)(i.az,{flex:"1 1 auto",children:[(0,t.jsx)(i.EY,{block:!0,font:"body.medium",color:"onSurface.nLv1",mr:"xs",children:(0,t.jsx)(p.c,{entity:s.player})}),(0,t.jsx)(h,{missingPlayer:s})]})})]})})}function g(e){let{missingPlayers:s}=e;return(null==s?void 0:s.length)?(0,t.jsx)(t.Fragment,{children:s.map((e,n)=>(0,t.jsx)(v,{missingPlayer:e,isLast:n===s.length-1},e.player.id))}):(0,t.jsx)(x.p,{graphic:"no-data",descriptionMessageId:"no_missing_players"})}function b(e){let{missingPlayers:s}=e;return(null==s?void 0:s.length)?(0,t.jsxs)(d.Zp,{isInverseDesktop:!0,children:[(0,t.jsx)(d.Zp.Header,{titleId:"injuries_and_suspensions",as:"h4"}),(0,t.jsx)(g,{missingPlayers:s}),(0,t.jsx)(d.Zp.Footer,{defaultHeight:"sm"})]}):null}function _(e){let{left:s,right:n}=e,l=s&&s.length>0,a=n&&n.length>0;return l||a?(0,t.jsxs)(d.Zp,{isInverseDesktop:!0,children:[(0,t.jsx)(d.Zp.Header,{titleId:"injuries_and_suspensions"}),(0,t.jsxs)(i.so,{pt:"sm",pb:"md",children:[(0,t.jsx)(i.az,{flex:"1 1 50%",children:(0,t.jsx)(g,{missingPlayers:s})}),(0,t.jsx)(i.cG,{mt:"sm",mb:"md",vertical:!0,mx:"sm"}),(0,t.jsx)(i.az,{flex:"1 1 50%",children:(0,t.jsx)(g,{missingPlayers:n})})]})]}):null}},8157:(e,s,n)=>{n.d(s,{A:()=>c});var t=n(6029),l=n(21377),a=n(41249),i=n(82203),r=n.n(i),o=n(90248),d=n(38081);function c(e){let{roundPlayer:s,playerActions:n}=e,{fantasyCompetition:i}=(0,d.C)(),c=(null==i?void 0:i.type)===l.s9G.Seasonal;return(0,t.jsxs)(a.so,{justify:"space-between",align:"center",p:"lg",children:[(0,t.jsx)(r(),{href:"/player/".concat(s.fantasyPlayer.player.slug,"/").concat(s.fantasyPlayer.player.id),target:"_blank",children:(0,t.jsx)(a.EY,{font:"display.small",color:"primary.default",cursor:"pointer",children:(0,t.jsx)(o.A,{id:"view_player_details"})})}),!!n.compare&&c&&(0,t.jsx)(a.$n,{style:{borderRadius:16},onClick:()=>{var e;return null==(e=n.compare)?void 0:e.call(n,s)},children:(0,t.jsx)(o.A,{id:"compare"})})]})}},12471:(e,s,n)=>{n.d(s,{D:()=>l,E:()=>a});var t=n(21377);let l={[t.uvd.VeryHard]:"scoreRating.s10",[t.uvd.Hard]:"scoreRating.s60",[t.uvd.Medium]:"scoreRating.s65",[t.uvd.Easy]:"scoreRating.s70",[t.uvd.VeryEasy]:"scoreRating.s80"},a={[t.uvd.VeryHard]:5,[t.uvd.Hard]:4,[t.uvd.Medium]:3,[t.uvd.Easy]:2,[t.uvd.VeryEasy]:1}},17474:(e,s,n)=>{n.d(s,{Y:()=>i});var t=n(6029),l=n(94446),a=n(41249);function i(e){let{fantasyPlayerId:s,teamId:n,playerSize:i=32,teamSize:r=16}=e;return(0,t.jsxs)(a.az,{position:"relative",h:i,w:i,children:[(0,t.jsx)(l.t,{size:i,id:s,isFantasy:!0}),(0,t.jsx)(a.az,{position:"absolute",bottom:"0",left:"0",h:r,w:r,children:(0,t.jsx)(l.p,{id:n,size:r,isFantasy:!0})})]})}},34148:(e,s,n)=>{n.d(s,{A:()=>u});var t=n(6029),l=n(87827),a=n(21377),i=n(41249),r=n(90248),o=n(38081),d=n(96299);let c=e=>{let{titleId:s,value:n,position:l,count:a}=e;return(0,t.jsxs)(i.az,{py:"sm",children:[(0,t.jsx)(i.EY,{color:"onSurface.nLv3",font:"assistive.micro",textTransform:"uppercase",align:"center",block:!0,children:(0,t.jsx)(r.A,{id:s})}),(0,t.jsx)(i.EY,{font:"display.large",align:"center",block:!0,children:n||"-"}),(0,t.jsx)(i.EY,{color:"onSurface.nLv3",font:"assistive.micro",textTransform:"uppercase",align:"center",block:!0,children:(0,t.jsx)(r.A,{id:"rank_out_of",values:{rank:null!=l?l:"-",totalCount:null!=a?a:"-"}})})]})};function u(e){var s;let{player:n}=e,{fantasyCompetition:r}=(0,o.C)(),u=(null==r?void 0:r.type)===a.s9G.Seasonal,{averageScore:x,form:f,ownedPercentage:p,totalScore:m}=n.fantasyPlayer;return(0,t.jsx)(i.az,{px:"lg",children:u?(0,t.jsxs)(i.so,{bg:"surface.s2",br:"sm",justify:"space-evenly",align:"center",children:[(0,t.jsx)(c,{titleId:"pts_per_match",value:(0,d.Q_)(a.qbx.AveragePoints,x),position:n.fantasyPlayer.averageScoreRank,count:n.fantasyPlayer.totalPlayersOnPosition}),(0,t.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,t.jsx)(c,{titleId:"player_form",value:(0,d.Q_)(a.qbx.Form,f),position:n.fantasyPlayer.formRank,count:n.fantasyPlayer.totalPlayersOnPosition}),(0,t.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,t.jsx)(c,{titleId:"selected",value:(0,d.Q_)(a.qbx.SelectedPercentage,p),position:n.fantasyPlayer.ownedRank,count:n.fantasyPlayer.totalPlayersOnPosition}),(0,t.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,t.jsx)(c,{titleId:"details.total",value:(0,d.Q_)(a.qbx.TotalPoints,m),position:n.fantasyPlayer.totalScoreRank,count:n.fantasyPlayer.totalPlayersOnPosition})]}):(0,t.jsxs)(i.so,{bg:"surface.s2",br:"sm",justify:"space-evenly",align:"center",children:[(0,t.jsx)(c,{titleId:"fantasy_expected_fantasy_points_short",value:null==(s=n.expectedPoints)?void 0:s.toFixed(1),position:n.expectedPointsRank,count:n.fantasyPlayer.totalPlayersOnPosition}),(0,t.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,t.jsx)(c,{titleId:"fantasy_elite_faceoff_avg_sofascore_rating",value:(0,t.jsx)(i.az,{py:"xs",children:(0,t.jsx)(l.G,{format:"sideBox",rating:n.averageRating})}),position:n.averageRatingRank,count:n.fantasyPlayer.totalPlayersOnPosition}),(0,t.jsx)(i.az,{h:24,w:1,bg:"onSurface.nLv4"}),(0,t.jsx)(c,{titleId:"selected",value:(0,d.Q_)(a.qbx.SelectedPercentage,p),position:n.fantasyPlayer.ownedRank,count:n.fantasyPlayer.totalPlayersOnPosition})]})})}},38081:(e,s,n)=>{n.d(s,{C:()=>r,S:()=>i});var t=n(6029),l=n(55729);let a=(0,l.createContext)({fantasyCompetition:void 0}),i=e=>{let{children:s,fantasyCompetition:n}=e;return(0,t.jsx)(a.Provider,{value:{fantasyCompetition:n},children:s})},r=()=>(0,l.useContext)(a)},51942:(e,s,n)=>{n.d(s,{GE:()=>R,cZ:()=>X,DT:()=>q,eM:()=>A,Q_:()=>t.Q_,nP:()=>t.nP,tc:()=>t.tc,KU:()=>t.KU,e8:()=>t.e8,aH:()=>t.aH});var t=n(96299),l=n(6029),a=n(21377),i=n(41249),r=n(90248),o=n(54409),d=n(77530),c=n(38081),u=n(76410),x=n(8157),f=n(33144),p=n(4967),m=n(90510),y=n(45860),j=n(76868),h=n(47550),v=n(81213);let g=e=>{let{fixtures:s,isPast:n}=e,t=!s.some(e=>!e.score&&0!==e.score),a=t?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||n?(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:[t?(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||n?(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:n,isPast:t}=e,a=Array.from(new Set(n.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})}),n.length?(0,l.jsx)(i.so,{direction:["column","row"],style:{gap:8},children:a.map(e=>(0,l.jsx)(g,{fixtures:n.filter(s=>s.fantasyRound.sequence===e),isPast:t},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,n;let{fantasyPlayerId:t}=e,{data:r,isLoading:o}=(0,y.Ay)(a.lVT.playerFormAndFixtures(t));return o?(0,l.jsx)(i.az,{h:[256,192]}):(null==r||null==(s=r.form)?void 0:s.length)||(null==r||null==(n=r.fixtures)?void 0:n.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=n(34148),w=n(87827),k=n(55729),P=n(22648),E=n(56075),z=n(94493),Y=n(65078);function C(e){let{fixture:s,total:n,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,t.Q_)(a.qbx.TotalPoints,n);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||n||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 R=e=>{let{fixture:s,points:n,achievedStatsOnly:t,isOnColor:d,showLabels:c=!0,sortByPoints:u=!1,statsLimit:x}=e,[f,p]=(0,k.useState)(!1),m=((null==n?void 0:n.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==n?void 0:n.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)(C,{fixture:s,total:null==n?void 0:n.total,hasStats:!!(null==n?void 0:n.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)(w.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)}),!t&&(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 A(e){let{userRoundPlayer:s,fantasyRound:n,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,E.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,t.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)(P.a,{})}):(0,l.jsx)(i.az,{minH:o?void 0:[500,458],p:"lg",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:n,isShort:!0}):(0,l.jsx)(r.A,{id:"fantasy_elite_faceoff_round",values:{n:n.sequence}})})]}),(s.fixtures||[]).map((e,s)=>{let n=null==f?void 0:f[s];return(0,l.jsx)(R,{fixture:e,points:(null==n?void 0:n.status)==="fulfilled"?n.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=n(40237);let L=e=>{let{form:s,player:n}=e,{leftTeam:t,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==t?void 0:t.id)===n.team.id&&d>c||d&&c&&(null==a?void 0:a.id)===n.team.id&&d(0,l.jsx)(L,{form:e,player:t},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:t.expectedPoints}),(null==g||null==(n=g.fixtures)?void 0:n[0].fixtureDifficulty)&&!b&&(0,l.jsx)(v.U,{difficulty:g.fixtures[0].fixtureDifficulty})]})]})]})]})}let T=e=>{let{icon:s,bg:n,labelId:t,onClick:a}=e;return(0,l.jsxs)(i.az,{w:144,onClick:a,cursor:"pointer",children:[(0,l.jsx)(i.so,{mx:"auto",bg:n,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:t})})]})};function X(e){var s,n;let{player:t,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:t,playerActions:r}),(0,l.jsx)(S.A,{player:t}),t.isLocked&&(null==(s=t.fixtures)?void 0:s.length)&&f?(0,l.jsx)(A,{userRoundPlayer:t,fantasyRound:f}):y?(0,l.jsx)(_,{fantasyPlayerId:t.fantasyPlayer.id}):f?(0,l.jsxs)(i.az,{p:"lg",children:[(0,l.jsx)(F,{fixture:null==(n=t.fixtures)?void 0:n[0],fantasyRound:f,player:t}),(0,l.jsx)(d.w,{my:"md"})]}):null,!t.isLocked&&(0,l.jsxs)(i.so,{justify:"center",pt:"lg",children:[r.makeCaptain&&!t.substitute&&!t.captain&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"make_captain"}),r.makeCaptain(t,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(t,p)},labelId:t.substitute?"substitution_in_short":"substitution_out_short",bg:t.substitute?"success.default":"sofaSingles.value",icon:t.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&&(t.state===a.zXX.Removed||t.state===a.zXX.JustAdded)&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"restore"}),r.restore(t,p)},labelId:"restore_player",bg:"primary.default",icon:(0,l.jsx)(o.H42,{fill:"onColor.primary",w:16,h:16})}),r.remove&&t.state!==a.zXX.Removed&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"remove"}),r.remove(t,p)},labelId:"remove_player",bg:"error.default",icon:(0,l.jsx)(o.CA7,{fill:"onColor.primary",w:16,h:16})}),r.replace&&t.state===a.zXX.Removed&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"select_replacement"}),r.replace(t,p)},labelId:"select_replacement",bg:"error.default",icon:(0,l.jsx)(o.R2C,{fill:"onColor.primary",w:16,h:16})}),r.transfer&&t.state!==a.zXX.Removed&&t.state!==a.zXX.JustAdded&&(0,l.jsx)(T,{onClick:()=>{(0,u.nW)({action:"player_modal",type:"transfer"}),r.transfer(t,p)},labelId:"transfer_out",bg:"error.default",icon:(0,l.jsx)(o.R2C,{fill:"onColor.primary",w:16,h:16})})]})]})}var D=n(17474),G=n(5276),H=n(54917);function q(e){let{roundPlayer:s}=e,{fantasyCompetition:n}=(0,c.C)(),r=(null==n?void 0:n.type)===a.s9G.Seasonal,{team:d,price:u,fantasyPlayer:x}=s,{position:f,player:p}=s.fantasyPlayer,{missingType:m,missingReason:y}=(0,t.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,t.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)(H.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,G.RV)(m,y||0):void 0,minW:112,size:[16,16],font:["body.small","body.small"],py:["xs",0],mt:"xs"})]})]})}},56075:(e,s,n)=>{n.d(s,{P:()=>i,n:()=>a});var t=n(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)||"",n=(null==e?void 0:e.chatRole)==="admin",t=null==s?void 0:s.includes("@sofascore.com"),a=l.includes(s);return n||t||a},i=e=>Promise.allSettled(e.map(e=>(0,t.TtD)(e)))},77530:(e,s,n)=>{n.d(s,{w:()=>x});var t=n(6029),l=n(21377),a=n(41249),i=n(82203),r=n.n(i),o=n(90248),d=n(54409),c=n(38081),u=n(76410);function x(e){let{elevation:s=2,...n}=e,{fantasyCompetition:i}=(0,c.C)();return(0,t.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,t.jsx)(a.az,{...n,children:(0,t.jsxs)(a.so,{p:"md",bg:"surface.s1",elevation:s,br:"md",justify:"space-between",align:"center",children:[(0,t.jsxs)(a.so,{align:"center",gap:"sm",children:[(0,t.jsx)(d.G_L,{minW:24,fill:"onSurface.nLv3"}),(0,t.jsx)(a.EY,{font:"body.mediumParagraph",children:(0,t.jsx)(o.A,{id:"fantasy_learn_how_to_play"})})]}),(0,t.jsx)(d.zQC,{minW:24,icon:"chevron-right",fill:"primary.default"})]})})})}},81213:(e,s,n)=>{n.d(s,{U:()=>i});var t=n(6029),l=n(41249),a=n(12471);function i(e){let{difficulty:s}=e;return(0,t.jsx)(l.az,{w:20,h:20,br:"50%",bg:a.D[s],children:(0,t.jsx)(l.EY,{font:"assistive.default",lineHeight:"20px",align:"center",color:"onColor.primary",block:!0,children:a.E[s]})})}},94493:(e,s,n)=>{n.d(s,{w:()=>o});var t=n(6029),l=n(90248),a=n(62859),i=n(50677),r=n(27892);let o=e=>{let{id:s,children:n}=e;return(0,t.jsx)(a.Ws.Consumer,{children:e=>{let a=(0,r.O)(i,s,e);return(0,t.jsx)(l.A,{id:a,children:e=>a===String(e)?null:"function"==typeof n?n(e):(0,t.jsx)(t.Fragment,{children:e})})}})}},96299:(e,s,n)=>{n.d(s,{Q_:()=>c,nP:()=>a,tc:()=>i,KU:()=>r,e8:()=>o,aH:()=>d});var t=n(21377),l=n(57258);let a=e=>e===t.evQ.Doubtful?"sofaSingles.value":e===t.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&&[t.zXX.Disabled,t.zXX.JustAddedDisabled,t.zXX.RemovedDisabled].includes(e),o=e=>e&&[t.zXX.Removed,t.zXX.RemovedSwapAvailable,t.zXX.RemovedDisabled].includes(e),d=e=>{var s,n;return e.isLocked&&!e.score&&(null==(s=e.fixtures)?void 0:s.some(e=>!!e.playerFixtureStatus))&&!(null==(n=e.fixtures)?void 0:n.some(e=>e.playerFixtureStatus&&e.playerFixtureStatus!==t.$EV.NotInSquad))},c=(e,s)=>{let n=[t.qbx.Price,t.qbx.Form,t.qbx.AveragePoints,t.qbx.SelectedPercentage,t.qbx.ExpectedPoints].includes(e),a=e===t.qbx.Price?l.lU:"",i=e===t.qbx.SelectedPercentage?"%":e===t.qbx.Price?"M":"";i=e===t.qbx.ExpectedPoints?" xFP":i;let r="number"==typeof s&&n?s.toFixed(l.J$):s,o="".concat(a).concat(r).concat(i);return void 0!==s?o:"-"}}}]);