!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]="37cd99a5-3b2f-4670-b99e-b18fe8939986",e._sentryDebugIdIdentifier="sentry-dbid-37cd99a5-3b2f-4670-b99e-b18fe8939986")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[48702,57632],{6354:(e,t,r)=>{r.d(t,{O:()=>n});let n=(0,r(55729).createContext)({})},31653:(e,t,r)=>{r.d(t,{Az:()=>s,Ci:()=>a});var n=r(21377);r(62827);let s=e=>e===n.QCR.Volleyball?[{label:"volleyball_points",value:"pointsTotal"},{label:"volleyball_attack",value:"attackPoints"},{label:"volleyball_aces",value:"aces"},{label:"volleyball_blocks",value:"blockPoints"}]:e===n.QCR.Basketball?[{label:"rating",value:"rating"},{label:"points",value:"points"},{label:"rebounds",value:"rebounds"},{label:"football_assists",value:"assists"},{label:"blocks",value:"blocks"},{label:"steals",value:"steals"}]:[],a=e=>e===n.QCR.Basketball?"rating":e===n.QCR.Volleyball?"pointsTotal":void 0},42525:(e,t,r)=>{r.d(t,{C:()=>m,P:()=>x});var n=r(6029),s=r(28349),a=r(76356),l=r(93338),i=r(55729),o=r(90248),d=r(54409),c=r(62827);let u=(0,a.I4)("input",{base:{width:"100%",height:"2xl",paddingInlineEnd:"3xl",bg:"surface.s2",textStyle:"assistive.default",color:"neutrals.nLv3",border:"1px solid",borderColor:"neutrals.nLv4",borderRadius:"sm",textOverflow:"ellipsis",outline:"none",cursor:"pointer",transitionProperty:"[box-shadow, background-color]",transitionDuration:"[300ms]",_focus:{outline:"none",bg:"neutral.highlight",boxShadow:"[0 0 0 3px]",boxShadowColor:"neutral.highlight"}}});function x(e){let{embedString:t,onToggle:r}=e,[x,m]=(0,i.useState)(!1),h=(0,i.useCallback)(async e=>{x||(m(!0),setTimeout(()=>{m(!1)},3e3),"writeText"in window.navigator.clipboard?(await window.navigator.clipboard.writeText(t),(0,c.MZ)((0,n.jsxs)(a.so,{align:"center",children:[(0,n.jsx)(d.G_L,{fill:"surface.s1",mr:"lg"}),(0,n.jsx)(s.EY,{display:"block",color:"surface.s1",textStyle:"display.small",children:(0,n.jsx)(o.A,{id:"basic.copiedToClipboard"})})]}))):(e.currentTarget.focus(),e.currentTarget.select()))},[t,x]);return(0,n.jsxs)(a.az,{position:"relative",mx:{base:"[0px]",md:"xs"},my:"xs",children:[(0,n.jsx)(u,{id:t,type:"text",readOnly:!0,value:t,onClick:h,onBlur:r}),(0,n.jsx)("label",{htmlFor:t,children:(0,n.jsx)(d.i2C,{width:"24",height:"24",fill:l.S.var("colors.action.primary.default"),style:{position:"absolute",top:4,right:8,cursor:"pointer"}})})]})}function m(e){let{id:t,callToAction:r,embedString:o,inverted:c,inHeader:u,onCallToActionClick:m,...h}=e,[p,f]=(0,i.useState)(!1),{isMobile:v}=(0,s.$c)();return(0,i.useEffect)(()=>{f(!1)},[t]),v?null:(0,n.jsx)(a.az,{px:"sm",mt:"sm",...h,children:(0,n.jsxs)(a.az,{cursor:"pointer",bg:{md:c?void 0:"surface.s2"},_hover:{bg:u?"primary.highlight":void 0},br:"sm",p:{md:u?"xs":"sm"},children:[(0,n.jsxs)(a.so,{justify:"flex-end",align:"center",onClick:()=>{f(!p),null==m||m()},children:[(0,n.jsx)(s.EY,{color:c?"onColor.primary":"action.primary.default",pt:"sm",px:"sm",pb:u&&p?"xs":"sm",textStyle:{base:"assistive.default",md:"display.small"},display:"block",children:r}),(0,n.jsx)(a.az,{flexShrink:0,children:(0,n.jsx)(d.zQC,{icon:p?"chevron-up":"chevron-down",width:24,height:24,fill:c?l.S.var("colors.onColor.primary"):l.S.var("colors.action.primary.default"),mx:"xs"})})]}),p&&(0,n.jsx)(x,{embedString:o})]})})}},48702:(e,t,r)=>{r.d(t,{e:()=>n});let n=(0,r(55729).createContext)({})},54686:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(6029),s=r(18612),a=r(21377),l=r(99064);let i=e=>{let{start:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"16",y:t+12,width:"38",height:"10"}),(0,n.jsx)("rect",{x:"16",y:t+24,width:"38",height:"10"}),(0,n.jsx)("rect",{x:"68",y:t+8,width:"1",height:"28"}),(0,n.jsx)("rect",{x:"79",y:t+8,rx:"2",ry:"2",width:148,height:"12"}),(0,n.jsx)("rect",{x:"79",y:t+24,rx:"2",ry:"2",width:172,height:"12"})]})},o=e=>{let{start:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"34",cy:t+22,r:"16"}),(0,n.jsx)("rect",{x:"68",y:t+8,rx:"2",ry:"2",width:56,height:"12"}),(0,n.jsx)("rect",{x:"68",y:t+24,rx:"2",ry:"2",width:220,height:"12"}),(0,n.jsx)(i,{start:t+44}),(0,n.jsx)("rect",{x:0,y:t+88+4,height:1,width:991})]})};function d(e){let{sport:t,initialEventCount:r=9,isHomePage:i}=e;return(0,n.jsx)(l.az,{overflow:"hidden",children:(0,n.jsx)(s.D,{height:i?t===a.QCR.Football?3500:1024:96*r,uniqueKey:"list-cl",children:Array.from({length:r}).map((e,t)=>(0,n.jsx)(o,{start:99*t+0},t))})})}},56628:(e,t,r)=>{r.d(t,{a:()=>d});var n=r(6029),s=r(76356),a=r(99064),l=r(90248),i=r(69559),o=r(31653);let d=e=>{let{statisticFilter:t,setStatisticFilter:r}=e,d=(0,i.o)(),c=(0,o.Az)(d);return 0!==c.length&&t&&r?(0,n.jsx)(s.az,{px:{md:"md"},children:(0,n.jsx)(a.tU,{variant:"quaternary",value:t,onChange:e=>r(e),children:(0,n.jsx)(a.tU.List,{pt:"md",pb:"xs",children:c.map(e=>(0,n.jsx)(a.tU.Tab,{tabKey:e.value,children:(0,n.jsx)(l.A,{id:e.label})},e.value))})})}):null}},73463:(e,t,r)=>{r.d(t,{A:()=>k});var n=r(6029),s=r(21377),a=r(28349),l=r(76356),i=r(55729),o=r(90248),d=r(48683),c=r(62859),u=r(54409),x=r(75751),m=r(95211),h=r(75508),p=r(26413),f=r(62827),v=r(99064);let y={singles:"tennis_singles",doubles:"tennis_doubles",all:"basic.all"},b=e=>{let{onTabChange:t,value:r}=e;return(0,n.jsx)(v.tU,{variant:"quaternary",value:r,onChange:t,children:(0,n.jsx)(v.tU.List,{px:"lg",py:"sm",children:Object.values(s.nJ5).map(e=>(0,n.jsx)(v.tU.Tab,{tabKey:e,children:(0,n.jsx)(o.A,{id:y[e]})},"tab-".concat(e)))})})};var j=r(31653),g=r(6354),w=r(56628),T=r(99325);let C=e=>{let{listRef:t,hasPreviousPage:r,hasNextPage:d,toNextPage:x,toPreviousPage:m,events:p,eventCell:f,isPlayer:v,descending:y,transfers:j,children:T,setMatchesTypeFilter:C,matchesTypeFilter:k,statisticFilter:S,setStatisticFilter:D}=e,{isMobile:F}=(0,a.$c)(),I=(0,i.useContext)(c.Ws),E=(0,i.useContext)(g.O),_=E.editor&&E.seasonId&&E.uniqueTournamentId,z=v?p.filter(e=>!e.isAwarded):p;return(0,n.jsxs)("div",{ref:t,children:[I===s.QCR.Tennis&&C&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.cG,{color:"neutrals.nLv4",borderBlockEndStyle:"solid"}),(0,n.jsx)(b,{value:null!=k?k:s.nJ5.All,onTabChange:e=>{null==C||C(e===s.nJ5.All?void 0:e)}}),!F&&(0,n.jsx)(l.cG,{color:"neutrals.nLv4",borderBlockEndStyle:"solid"})]}),(r||d)&&(0,n.jsxs)(l.so,{py:"sm",px:"lg",justify:"space-between",minH:"[50px]",children:[(0,n.jsx)(l.az,{children:r&&(0,n.jsxs)(a.$n,{variant:"outline",h:"2xl",py:"xs",px:"sm",onClick:m,children:[(0,n.jsx)(u.pa2,{fill:"primary.default",mr:"xs"}),(0,n.jsx)(a.EY,{textStyle:"action.button.secondary",color:"primary.default",children:(0,n.jsx)(o.A,{id:"previous"})})]})}),(0,n.jsx)(l.az,{children:d&&(0,n.jsxs)(a.$n,{variant:"outline",h:"2xl",py:"xs",px:"sm",onClick:x,children:[(0,n.jsx)(a.EY,{textStyle:"action.button.secondary",color:"primary.default",children:(0,n.jsx)(o.A,{id:"next"})}),(0,n.jsx)(u.CCT,{fill:"primary.default",ml:"xs"})]})})]}),(0,n.jsx)(l.cG,{color:"neutrals.nLv4",borderBlockEndStyle:"solid"}),(0,n.jsx)(w.a,{statisticFilter:S,setStatisticFilter:D}),(0,n.jsxs)(l.az,{minH:{base:"auto",md:"[600px]"},pt:"2xs",pb:{base:"sm",md:_?"sm":"3xl"},br:{mdDown:"lg"},children:[(0,n.jsx)(h.b,{events:z,isMobile:F,eventCell:f,isEventCellFactory:v,transfers:j,descending:y}),T]})]})};function k(e){let{entity:t,id:r,seasonId:a,player:o,transfers:u,hasSingles:h,hasDoubles:v,hideHeader:y}=e,b=(0,i.useContext)(c.Ws),[w,k]=(0,i.useState)(void 0),[S,D]=(0,i.useState)(()=>(0,j.Ci)(b)),F=(0,i.useContext)(g.O),I=F.editor&&F.seasonId&&F.uniqueTournamentId,E=110*!!I,_=(0,i.useRef)(null),z=e=>{let{managedTeamMap:n,playedForTeamMap:a}=e;return(e,l)=>t===s.wNW.Team?e===r:t===s.wNW.Manager&&n&&l?e===n[l]:t===s.wNW.Player&&!!a&&!!l&&e===a[l]},A=(e,r,n,a,l)=>t===s.wNW.Team&&r?(0,m.ey)({isReferenceTeamId:z({playedForTeamMap:r})}):t===s.wNW.Manager&&n?(0,m.ey)({isReferenceTeamId:z({managedTeamMap:n}),incidentsMap:l,entity:t}):t===s.wNW.Player?t=>{var n;return(0,m.G)({selectedStatistic:S,statistics:null==e?void 0:e[t],isOnBench:null!=(n=null==a?void 0:a[t])&&n,playedFor:r?r[t]:void 0,incidents:l?l[t]:void 0,player:o,isReferenceTeamId:z({playedForTeamMap:r})})}:m.gY,N=t===s.wNW.Player,R=[s.wNW.Team,s.wNW.Player,s.wNW.Manager,s.wNW.UniqueTournament,s.wNW.Tournament,s.wNW.Referee].includes(t);return(0,i.useEffect)(()=>{D((0,j.Ci)(b))},[b]),(0,n.jsx)(x.t,{tag:"EventListContainer",children:(0,n.jsx)(p.w,{entity:t,id:r,seasonId:a,matchesTypeFilter:h&&v?w:void 0,children:e=>{let{events:t,toNextPage:r,toPreviousPage:s,hasNextPage:a,hasPreviousPage:i,managedTeamMap:o,statisticsMap:c,playedForTeamMap:x,incidentsMap:m,onBenchMap:p,page:j}=e,g=A(c,x,o,p,m);return(0,n.jsxs)(d.Zp,{variant:y?"never":"desktop-only",children:[!y&&(0,n.jsx)(d.Zp.Header,{titleId:"matches",values:{sport:(0,f.ap)(b)},visibility:"desktop-only"}),(0,n.jsx)(C,{listRef:_,hasPreviousPage:i,hasNextPage:a,toNextPage:r,toPreviousPage:s,events:t,eventCell:g,isPlayer:N,transfers:u,matchesTypeFilter:h&&v?w:void 0,setMatchesTypeFilter:h&&v?k:void 0,descending:R&&j<=0,statisticFilter:S,setStatisticFilter:D,children:I&&(0,n.jsx)(l.az,{style:{height:E},p:"sm",children:(0,n.jsx)(T.G,{tournamentId:F.uniqueTournamentId,seasonId:F.seasonId})})})]})}})})}},75508:(e,t,r)=>{r.d(t,{b:()=>p});var n=r(6029),s=r(99064),a=r(48683),l=r(95211),i=r(54686),o=r(33144),d=r(4967),c=r(90510),u=r(54409),x=r(82967);let m=e=>{var t,r,a,l;let{transfers:i,firstEventTimestamp:m,secondEventTimestamp:h,descending:p}=e;if(!i)return null;let f=i.find(e=>p?e.transferDateTimestamp<=m&&e.transferDateTimestamp>=h:e.transferDateTimestamp>=m&&e.transferDateTimestamp<=h);return(0,n.jsxs)(s.az,{id:"player-transfer",display:f?"box":"none",mt:"sm",children:[(0,n.jsx)(s.so,{w:"100%",align:"end",px:"md",justify:"center",children:(0,n.jsx)(o.p,{id:p?null==f||null==(t=f.transferTo)?void 0:t.id:null==f||null==(r=f.transferFrom)?void 0:r.id,size:32,mx:"auto"})}),(0,n.jsxs)(s.so,{w:"100%",align:"center",position:"relative",children:[(null==f?void 0:f.transferDateTimestamp)&&(0,n.jsx)(s.EY,{color:"onSurface.nLv3",fontSize:12,as:"div",position:"absolute",left:"md",bottom:"lg",children:(0,n.jsx)(c.XU,{value:new Date((null==f?void 0:f.transferDateTimestamp)*1e3),...d.or.fullDate})}),(0,n.jsx)(s.cG,{color:"onSurface.nLv4",w:"100%"}),(0,n.jsx)(s.az,{w:24,h:24,style:{transform:"\n rotate(".concat(180*!!p,"deg)")},children:(0,n.jsx)(u.QFN,{fill:"onSurface.nLv1",width:24,height:24})}),f&&(0,n.jsxs)(s.so,{position:"absolute",right:"md",bottom:"lg",children:[(0,n.jsx)(s.EY,{color:"onSurface.nLv3",fontSize:12,as:"div",mr:"sm",children:(0,n.jsx)(x.u,{transfer:f})}),(0,n.jsx)(s.EY,{fontSize:12,color:"secondary.default",as:"div",children:f.transferFeeDescription})]}),(0,n.jsx)(s.cG,{color:"onSurface.nLv4",w:"100%"})]}),(0,n.jsx)(s.so,{w:"100%",align:"end",px:"md",position:"relative",justify:"center",children:(0,n.jsx)(o.p,{id:p?null==f||null==(a=f.transferFrom)?void 0:a.id:null==f||null==(l=f.transferTo)?void 0:l.id,size:32,mx:"auto"})})]})};var h=r(31254);function p(e){let{events:t,header:r,descending:o,isMobile:d,isNarrow:c,isShort:u,transfers:x,eventCell:p,isEventCellFactory:f,triggerIndex:v,triggerRef:y,hideHeader:b,location:j,asCards:g,numberOfEvents:w}=e,T=r||h.sm;if(!t||!t.length)return(0,n.jsx)(i.A,{initialEventCount:w});let C=t.sort((e,t)=>o?e.startTimestamp>=t.startTimestamp?-1:1:e.startTimestamp>=t.startTimestamp?1:-1).slice(0,w),k=[];return C.forEach((e,t)=>{let r=e.tournament.id;k.length&&k[k.length-1].tournamentId===r?k[k.length-1].events.push(e):k.push({tournamentId:e.tournament.id,events:[e],startIndex:t})}),(0,n.jsx)(s.so,{direction:"column",p:g?"sm":void 0,gap:g?"sm":void 0,children:k.map((e,r)=>(0,n.jsx)(a.Zp,{variant:g?void 0:"never",children:(0,n.jsx)(s.az,{pb:g?"sm":void 0,pt:g?"xs":void 0,children:e.events.map((r,a)=>{var i;let h=f&&"function"==typeof p?p(r.id):p||l.gY;return(0,n.jsxs)(s.az,{ref:a+e.startIndex===v?y:void 0,children:[0===a&&!b&&(0,n.jsx)(T,{tournament:r.tournament,sport:r.tournament.category.sport,startTimestamp:r.startTimestamp}),(0,n.jsx)(h,{event:r,isMobile:d,isNarrow:c,isShort:u,location:j}),(0,n.jsx)(m,{transfers:x,firstEventTimestamp:r.startTimestamp,secondEventTimestamp:null==(i=t[a+1])?void 0:i.startTimestamp,descending:o})]},r.id)})})},"".concat(e.tournamentId,"-").concat(r)))})}},79387:(e,t,r)=>{r.d(t,{C:()=>n.C});var n=r(42525)},82967:(e,t,r)=>{r.d(t,{N:()=>o,u:()=>d});var n=r(6029),s=r(21377),a=r(90248),l=r(85685);let i={1:"transfer_loan",2:"transfer_end_of_loan",3:"transfer_transfer",4:"player.endOfCareer",5:"player.draft",6:"player.released",7:"player.signed"},o=e=>{let{transfer:t}=e;if(void 0!==t.transferFeeRaw&&t.transferFeeRaw.value>0)return(0,n.jsx)(l.o,{parsedMoney:(0,s.oaz)(t.transferFeeRaw)});switch(t.type){case s.uDD.Draft:if(void 0===t.round||void 0===t.pick)return null;return(0,n.jsx)(a.A,{id:"player.draftInfo",values:{round:t.round,pick:t.pick}});case s.uDD.EndOfLoan:case s.uDD.EndOfCareer:return null;case s.uDD.Transfer:if(void 0!==t.transferFeeRaw&&0===t.transferFeeRaw.value&&"Free"===t.transferFeeDescription)return(0,n.jsx)(a.A,{id:"transfer_free"});if(void 0===t.transferFeeDescription||"Unknown"===t.transferFeeDescription)return(0,n.jsx)(a.A,{id:"player.transfer.unknown"});return null;default:return null}},d=e=>{let{transfer:t}=e;return(0,n.jsx)(a.A,{id:i[t.type]})}},99325:(e,t,r)=>{r.d(t,{G:()=>d});var n=r(6029),s=r(21377),a=r(947),l=r(90248),i=r(79387),o=r(19451);let d=e=>{let{tournamentId:t,seasonId:r}=e,{locale:d}=(0,a.A)(),c=(0,o.vf)(d),u="".concat(s.yuv).concat(c?"/".concat(c):"","/embed/unique-tournament/").concat(t,"/season/").concat(r,"/editorFixtures"),x="sofa-fixtures-embed-".concat(t,"-").concat(r),m='');return(0,n.jsx)(i.C,{callToAction:(0,n.jsx)(l.A,{id:"fixtures.embedCTA"}),embedString:m})}}}]);