!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]="0b8effac-4f87-47bf-8554-614f2cd0e17d",e._sentryDebugIdIdentifier="sentry-dbid-0b8effac-4f87-47bf-8554-614f2cd0e17d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73231],{7079:(e,t,s)=>{s.d(t,{X:()=>D});var l=s(6029),n=s(21377),r=s(28349),i=s(55729),o=s(947),a=s(41735),d=s(33144),c=s(76356),u=s(93338),m=s(81278),x=s(90248),p=s(494),h=s(45860),y=s(54409),g=s(19451),j=s(13266),v=s(10794),f=s(94604),b=s(19135),w=s(62827),k=s(12047),I=s(1949),S=s(13892),T=s(82287),C=s(69435),P=s(67149);let E=e=>{var t;let{row:s,events:o,sport:a,position:m,columnKeys:x,promotionColors:g,isRTL:b}=e,{isNarrowLayout:k,selectedTeamId:E,homeTeamId:A,awayTeamId:D,displayType:L}=(0,i.useContext)(C.P),{isDesktopLarge:R}=(0,r.$c)(),_=(0,p.d4)(v.JV),z=s.team.id,N=!!s.liveMatchWinnerCodeColumn,{texts:Y}=(0,i.useContext)(T.C),{data:F}=(0,h.Ay)(s.promotion?n.oo$.singleEntity(s.promotion.id,_):null),B=(null==F?void 0:F.translation.value)||(null==(t=s.promotion)?void 0:t.text)||Y[z],[M,O]=(0,i.useState)(!1);return(0,l.jsx)(j.gT,{sport:a,team:s.team,children:(0,l.jsxs)(S.fh,{"data-selected":E===z||void 0,team:A===z?"home":D===z?"away":"none",children:[E===z&&(0,l.jsx)(c.az,{position:"absolute",left:"[0px]",w:"xs",h:"100%",bg:"neutral.default"}),(0,l.jsx)(c.az,{children:(0,l.jsx)(c.so,{w:"xl",h:"xl",justify:"center",align:"center",br:"50%",textStyle:"display.small",cursor:"pointer",userSelect:"none",onClick:e=>{e.preventDefault(),e.stopPropagation(),B&&(M||(O(!0),setTimeout(()=>{O(!1)},3e3),(0,w.MZ)((0,l.jsxs)(c.so,{align:"center",children:[(0,l.jsx)(y.G_L,{fill:"surface.s1",mr:"lg"}),(0,l.jsxs)(r.EY,{textStyle:"display.small",color:"surface.s1",display:"block",children:[(0,l.jsx)(f.Rm,{team:s.team,short:!0})," – ".concat(B)]})]}))))},color:g[z]?"surface.s1":"neutrals.nLv1",style:{backgroundColor:g[z]?g[z]:u.S.var("colors.surface.s2")},title:B||void 0,children:m})}),"full"===L&&(!R||k)?null:(0,l.jsx)(d.p,{id:s.team.id,name:s.team.name,w:[32,24],h:[32,24],ml:"sm",style:{verticalAlign:"top"},fallback:(0,l.jsx)(c.I4.img,{src:"/static/images/placeholders/team.svg",width:{base:"2xl",md:"xl"},height:{base:"2xl",md:"xl"},alt:""})}),(0,l.jsx)(c.az,{flexGrow:1,overflow:"auto",children:(0,l.jsxs)(c.so,{align:"center",pl:"sm",overflow:"hidden",w:"100%",children:[(0,l.jsx)(r.EY,{textStyle:"table.medium",color:N?"status.live":"neutrals.nLv1",display:"block",truncate:!0,children:(0,l.jsx)(f.Rm,{team:s.team,short:!0})}),N&&(0,l.jsx)(c.I4.small,{position:"relative",color:"status.live",_after:{content:"''",position:"relative",display:"inline-block",top:"[-1px]",width:"[6px]",height:"[6px]",ml:"xs",br:"50%",bg:"status.live",animation:"pulse 1s ease-in infinite"}})]})}),x.map(e=>{if("last5"===e)return(0,l.jsx)(I.o1,{events:o,referenceId:s.team.id},s.team.id+e);let t=P.oG(e,a,s,b),n=!1;e===s.liveMatchWinnerCodeColumn||"points"===e&&N?n=!0:"percentage"===e&&N&&(n=!0);let i=P.j8(e,a,!1);return(0,l.jsx)(c.az,{children:(0,l.jsx)(r.Ym,{textStyle:"table.medium",color:n?"status.live":"neutrals.nLv1",children:(0,l.jsx)(c.so,{justify:"center",style:{minWidth:i},children:t})})},e)})]})})};function A(e){let{sport:t,columnKeys:s,selectedSeason:n}=e,{isDesktop:i}=(0,r.$c)(),o=(0,m.useRouter)(),a=null==n?void 0:n.year,d=(0,k.Ay)({isInMobileTabs:!0,isSportMenuVisible:!0}),u=[g.xW.OldTeam,g.xW.Team,g.xW.TeamAsPlayer].includes(o.route);return(0,l.jsx)(r.PI,{top:d+48*!!u,isStickingDisabled:i,zIndex:"stickyTertiary",children:e=>(0,l.jsxs)(S.fh,{stuck:e,children:[(0,l.jsx)(c.az,{children:(0,l.jsx)(r.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textAlign:"center",display:"block",w:"xl",children:"#"})}),(0,l.jsx)(c.az,{flexGrow:1,children:(0,l.jsx)(r.EY,{textStyle:"table.medium",color:"neutrals.nLv3",display:"block",pl:"sm",children:(0,l.jsx)(x.A,{id:"team"})})}),s.map(e=>{if("last5"===e)return(0,l.jsx)(c.so,{ml:"sm",wrap:"nowrap",flexBasis:"[120px]",justify:"center",align:"center",children:(0,l.jsx)(c.so,{minW:"2xl",justify:"center",children:(0,l.jsx)(r.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,l.jsx)(b.N,{id:e})})})},"column-key-last5");let s=function(e,t){switch(e){case"pointsCurrSeason":return t;case"pointsPrevSeason":return Number(t)-1;case"pointsPrevPrevSeason":return Number(t)-2;default:return(0,l.jsx)(b.N,{id:e})}}(e,a),n=P.j8(e,t,!1);return(0,l.jsx)(c.az,{children:(0,l.jsx)(r.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textTransform:"points"===e?"uppercase":void 0,children:(0,l.jsx)(c.so,{justify:"center",style:{minWidth:n},children:s})})},e)})]})})}function D(e){let{type:t,table:s,teamEvents:d}=e,c=(0,i.useContext)(C.P),{uniqueTournamentId:u,isNarrowLayout:m,displayType:x,homeTeamId:p,awayTeamId:h,selectedTeamId:y,selectedSeason:g}=c,{isDesktop:j,mediaBreakpoint:v}=(0,r.$c)(),{settings:f}=(0,a.useTheme)(),b=(0,o.A)(),w=s.tournament.category.sport.slug,k=(0,i.useMemo)(()=>{let e=s.rows.reduce((e,t)=>Object.keys(t).length>Object.keys(e).length?t:e,s.rows[0]),l=s.rows.some(e=>0!==Number(e.gamesBehind)),n=s.rows.some(e=>void 0!==e.scoresFor||void 0!==e.scoresAgainst),r=!!(null==g?void 0:g.year)&&s.rows.some(e=>void 0!==e.pointsCurrSeason||void 0!==e.pointsPrevPrevSeason||void 0!==e.pointsPrevPrevSeason);if(e._isPlaceholderRow)return[b.formatMessage({id:"standings_placeholder_data"},{type:t,name:s.name})];let i="xxs"===v||"xs"===v||j&&m;return(0,P.Tx)(e,w,x,m,l,n,r,i,u)},[s.id,w,x,m]),{colors:I}=(0,i.useContext)(T.C),S=(0,i.useMemo)(()=>{let e={homeTeamId:p,awayTeamId:h,selectedTeamId:y};return t===n.lpv.Home&&(delete e.awayTeamId,delete e.homeTeamId,e.selectedTeamId=y),t===n.lpv.Away&&(delete e.awayTeamId,delete e.homeTeamId,e.selectedTeamId=y),e},[p,h,y,t]);return(0,l.jsxs)("div",{style:{width:"100%"},children:[(0,l.jsx)(A,{columnKeys:k,sport:w,selectedSeason:g}),(0,l.jsx)(C.P.Provider,{value:{...c,...S},children:s.rows.map((e,t)=>(0,l.jsx)(E,{columnKeys:k,promotionColors:I,position:t+1,row:e,sport:w,events:d?d[e.team.id]:null,isRTL:"rtl"===f.textDirection},e.id))})]})}},11033:(e,t,s)=>{s.d(t,{K:()=>I,c:()=>S});var l=s(6029),n=s(21377),r=s(28349),i=s(76356),o=s(99064),a=s(55729),d=s(90248),c=s(494),u=s(45860),m=s(10794),x=s(94604),p=s(84942),h=s(13892),y=s(82287);function g(e){let{description:t,transValue:s}=e;return(0,l.jsxs)(h.VY,{children:[t.teamName?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.lC,{original:t.teamName}),":\xa0"]}):null,s||t.text]})}function j(e){let{description:t,locale:s}=e,{data:r}=(0,u.Ay)(n.oo$.singleEntity(t.id,s));return(0,l.jsx)(g,{description:t,transValue:null==r?void 0:r.translation.value})}function v(e){let{promotion:t,locale:s}=e,{data:i}=(0,u.Ay)(n.oo$.singleEntity(t.id,s));return(0,l.jsx)(r.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",lineHeight:1,children:(null==i?void 0:i.translation.value)||t.text})}function f(e){let{descriptions:t,locale:s}=e;return t&&t.length&&s?"en"===s?(0,l.jsx)(l.Fragment,{children:t.map(e=>(0,l.jsx)(g,{description:e},e.id))}):(0,l.jsx)(l.Fragment,{children:t.map(e=>(0,l.jsx)(j,{description:e,locale:s},e.id))}):null}let b=(e,t)=>{let{colors:s}=(0,a.useContext)(y.C),[l,n,r]=(0,a.useMemo)(()=>{let l=[],n=[],r={};return e.rows.forEach(e=>{var i;e.descriptions&&l.push(...e.descriptions.map(s=>({...s,teamName:(0,p.s)(e.team,t)}))),(null==(i=e.promotion)?void 0:i.text)&&!r[e.promotion.id]&&(n.push(e.promotion),r[e.promotion.id]=s[e.team.id])}),[l,n,r]},[e.rows]);return{rowDescriptions:l,rowPromotions:n,promotionColors:r,tieBreakingRules:e.tieBreakingRule?[e.tieBreakingRule]:[]}},w=e=>{let{children:t,defaultOpenedFirstRules:s}=e;return(0,l.jsx)(o.nD,{children:(0,l.jsxs)(o.nD.Item,{bg:"surface.s2",br:"sm",defaultOpened:s,children:[(0,l.jsx)(o.nD.Trigger,{bg:"transparent",children:(0,l.jsx)(r.EY,{textStyle:"display.small",children:(0,l.jsx)(d.A,{id:"rules"})})}),(0,l.jsx)(o.nD.Content,{children:(0,l.jsx)(r.EY,{textStyle:"body.small",display:"block",px:"md",pb:"md",children:t})})]})})},k=e=>{let{locale:t,descriptions:s,rowDescriptions:n,rowPromotions:r,tieBreakingRules:o,promotionColors:a,defaultOpenedFirstRules:d}=e;return(0,l.jsx)(w,{defaultOpenedFirstRules:d,children:(0,l.jsxs)(i.so,{direction:"column",gap:"sm",children:[(0,l.jsx)("div",{children:r.map(e=>(0,l.jsxs)(i.so,{align:"center",h:"xl",children:[(0,l.jsx)(i.so,{justify:"center",align:"center",w:"xl",children:(0,l.jsx)(i.az,{h:"sm",w:"sm",br:"50%",style:{background:a[e.id]}})}),(0,l.jsx)(v,{promotion:e,locale:t})]},e.id))}),(0,l.jsx)(f,{descriptions:n,locale:t}),(0,l.jsx)(f,{descriptions:s,locale:t}),(0,l.jsx)(f,{descriptions:o,locale:t})]})})};function I(e){var t;let s=(0,c.d4)(m.JV),{rowDescriptions:n,rowPromotions:r,tieBreakingRules:i,promotionColors:o}=b(e,s);return n.length||(null==(t=e.descriptions)?void 0:t.length)||i.length||r.length?(0,l.jsx)(k,{locale:s,descriptions:e.descriptions,rowDescriptions:n,rowPromotions:r,tieBreakingRules:i,promotionColors:o,defaultOpenedFirstRules:e.defaultOpenedFirstRules}):null}function S(e){var t;let s=(0,c.d4)(m.JV),{rowDescriptions:n,rowPromotions:r,tieBreakingRules:o,promotionColors:a}=b(e,s);return(n.length||(null==(t=e.descriptions)?void 0:t.length)||o.length)&&0!==r.length?(0,l.jsx)(i.az,{p:"sm",children:(0,l.jsx)(k,{locale:s,descriptions:e.descriptions,rowDescriptions:n,rowPromotions:r,tieBreakingRules:o,promotionColors:a})}):null}},13892:(e,t,s)=>{s.d(t,{FF:()=>a,VY:()=>o,fh:()=>i});var l=s(62042),n=s(76356);let r=(0,l.Fj)({base:{display:"flex",alignItems:"center",position:"relative",textStyle:"table.medium",padding:"sm",height:{base:"4xl",md:"2xl"},_selected:{backgroundColor:"neutral.highlight"},_hover:{backgroundColor:"surface.s2"}},variants:{team:{none:{},home:{backgroundColor:"secondary.highlight",borderStart:"{sizes.xs} solid {colors.secondary.default}",pl:"xs"},away:{backgroundColor:"primary.highlight",borderStart:"{sizes.xs} solid {colors.primary.default}",pl:"xs"}},stuck:{true:{mx:"-sm",px:"lg",backgroundColor:"surface.s1",borderTop:"1px solid {colors.surface.s2}",borderBottom:"1px solid {colors.surface.s2}",elevation:"2"},false:{}}}}),i=(0,n.I4)("div",r),o=(0,n.I4)("p",{base:{margin:"0",padding:"0",whiteSpace:"pre-line","& + &":{marginTop:"xs"}}}),a=(0,n.I4)("div",{base:{"& button":{border:"1px solid {colors.surface.s2}",px:"xs","& svg":{margin:"0"},"& svg:nth-child(2)":{display:"none"}}}})},65457:(e,t,s)=>{s.d(t,{A:()=>u,u:()=>m});var l=s(6029),n=s(21377),r=s(28349),i=s(76356),o=s(99064),a=s(90248),d=s(54409),c=s(13892);function u(e){return e.isNarrowLayout?(0,l.jsx)(c.FF,{children:(0,l.jsx)(o.ms,{items:e.items||[...n.ur4],selectedItem:e.displayType,onSelectedItemChange:t=>{let{selectedItem:s}=t;s&&e.setDisplayType(s)},renderItem:(e,t)=>t?(0,l.jsx)(d.NwX,{fill:"onSurface.nLv1"}):(0,l.jsx)(a.A,{id:"standings."+e}),menuLabel:(0,l.jsx)(a.A,{id:"standings.appearance"}),alignRight:!0,buttonStyle:{width:36,height:36,zIndex:o.Py.Backdrop}})}):null}function m(e){let{displayType:t,setDisplayType:s,items:n,isNarrowLayout:o}=e;return(0,l.jsxs)(i.so,{justify:"space-between",p:"sm",borderBottom:"neutrals.nLv4",children:[(0,l.jsxs)(i.az,{children:[(0,l.jsx)(r.EY,{display:"block",textStyle:"assistive.default",pt:"2xs",children:(0,l.jsx)(a.A,{id:"standings.appearance"})}),(0,l.jsx)(r.EY,{display:"block",textStyle:"body.small",color:"neutrals.nLv3",children:(0,l.jsx)(a.A,{id:"standings.appearance.select"})})]}),(0,l.jsx)(u,{displayType:t,setDisplayType:s,items:n,isNarrowLayout:o})]})}},69435:(e,t,s)=>{s.d(t,{P:()=>r});var l=s(78383),n=s.n(l);let r=(0,s(55729).createContext)({isNarrowLayout:!0,uniqueTournamentId:void 0,seasonId:void 0,displayTypeOptions:void 0,displayType:"short",setDisplayType:n(),standings:[],homeTeamId:void 0,awayTeamId:void 0,selectedTeamId:void 0,hasPerformanceGraphFeature:!1,hasHomeAwayStandings:!1,tournamentId:void 0,selectedSeason:void 0,isStandingsTableEmpty:void 0,setIsStandingsTableEmpty:n()})},82287:(e,t,s)=>{s.d(t,{C:()=>i,R:()=>o});var l=s(6029),n=s(55729),r=s(67149);let i=(0,n.createContext)({colors:{},texts:{}}),o=e=>{let{standings:t,children:s}=e,[o,a]=(0,n.useMemo)(()=>{let e=t.rows.map(e=>({...e.promotion,teamId:e.team.id})).filter(e=>!!e.id);return[(0,r.oB)(e),e.reduce((e,t)=>(e[t.teamId]=t.text,e),{})]},[null==t?void 0:t.id]);return(0,l.jsx)(i.Provider,{value:{colors:o,texts:a},children:s})}}}]);