1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8424],{5879:()=>{},22077:(e,a,s)=>{"use strict";s.d(a,{t:()=>d});var t=s(40857),n=s(24181),l=s(3017),i=s(7844);s(5879);var o=(e,a)=>(c(a)?a.map(e=>e.options).flat():a).find(a=>a.value===e)?.text??"",c=e=>!!e.filter(e=>"label"in e).length,d=({options:e,onOptionSelect:a,preselectedOption:s,className:d})=>{let r=c(e),[m,p]=(0,n.useState)(()=>s?o(s,e):r?e[0].options[0].text:e[0].text);return(0,n.useEffect)(()=>{s&&p(o(s,e))},[s]),(0,l.jsxs)("div",{className:i("fco-dropdown",d),children:[(0,l.jsx)("select",{disabled:r?1===e.length&&1===e[0].options.length:1===e.length,className:"fco-dropdown__select",...s?{defaultValue:s}:{},onChange:s=>{a(s),p(o(s.target.value,e))},value:s,children:r?e.map(e=>e.label?(0,l.jsx)("optgroup",{label:e.label,children:e.options.map(({value:e,text:a})=>(0,l.jsx)("option",{value:e,children:a},`fco-dropdown__option ${a}-${e}`))},`fco-dropdown__option-group ${e.label}`):(0,l.jsx)(l.Fragment,{children:e.options.map(({value:e,text:a})=>(0,l.jsx)("option",{value:e,children:a},`fco-dropdown__option ${a}-${e}`))})):e.map(({value:e,text:a})=>(0,l.jsx)("option",{className:"fco-dropdown__option",value:e,children:a},`fco-dropdown__option ${a}-${e}`))}),(0,l.jsxs)("div",{className:"fco-dropdown__display-box",children:[(0,l.jsx)("p",{className:"fco-dropdown__text",children:m}),(0,l.jsx)(t.I,{glyph:"down"})]})]})}},22565:(e,a,s)=>{"use strict";s.d(a,{Eu:()=>t.n,GW:()=>t.r,K8:()=>t.s,N4:()=>t.o,Nu:()=>l,Uu:()=>t.i,aA:()=>n,xq:()=>t.t,yD:()=>t.a});var t=s(83319),n=function(e){return e.PERSON="PERSON",e.MATCH="MATCH",e.COMPETITION="COMPETITION",e.TEAM="TEAM",e.CATEGORY="CATEGORY",e.ARTICLE="ARTICLE",e.BETTER_COLLECTIVE_BETTING_ARTICLE="BETTER_COLLECTIVE_BETTING_ARTICLE",e.BLOG="BLOG",e.GALLERY="GALLERY",e.SLIDELIST="SLIDELIST",e.LINKING="LINKING",e.NEWS_ARCHIVE="NEWS_ARCHIVE",e.GALLERY_ARCHIVE="GALLERY_ARCHIVE",e.SLIDELIST_ARCHIVE="SLIDELIST_ARCHIVE",e.VIDEO_ARCHIVE="VIDEO_ARCHIVE",e.BETTER_COLLECTIVE_BETTING_ARCHIVE="BETTER_COLLECTIVE_BETTING_ARCHIVE",e.WHERE_TO_WATCH_ARCHIVE="WHERE_TO_WATCH_ARCHIVE",e.AUTHOR="AUTHOR",e}({}),l=function(e){return e.FIXTURE="FIXTURE",e.RESULT="RESULT",e.LIVE="LIVE",e.SUSPENDED="SUSPENDED",e.POSTPONED="POSTPONED",e.CANCELLED="CANCELLED",e}({})},31871:()=>{},36472:()=>{},37908:()=>{},58424:(e,a,s)=>{"use strict";s.d(a,{_:()=>I});var t=s(15951),n=s(53420);s(79804);var l=s(52189),i=s(93320),o=s(20359),c=s(33341),d=s(66892),r=s(58865),m=s(22077),p=s(22565),_=s(3017),g=s(7844),h=s.n(g);s(36472);var f=({type:e})=>(0,_.jsx)("span",{className:h()("fco-change-indicator",`fco-change-indicator--${e}`)}),u=s(58877);s(87350);var b=({score:e,context:a})=>{if(void 0===e.teamA||void 0===e.teamB)return null;let s="teamA"===a?"teamB":"teamA",t=(e?.[a]??0)>(e?.[s]??0),n=(e?.[a]??0)===(e?.[s]??0);return(0,_.jsxs)("div",{role:"status",className:h()("fco-standings-score",{"fco-standings-score__win":t,"fco-standings-score__draw":n,"fco-standings-score__lose":!t&&!n}),"aria-label":"Standings score",children:[e[a],"â-â",e[s]]})},E=s(24181);s(37908);var O=["goalsFor","goalsAgainst","form","positionChange"],x=({type:e,row:a,live:s,iconVersion:t})=>{let{teamPlaceholderImageUrl:n}=(0,c.t)();switch(e){case"markerType":return(0,_.jsx)(i.O,{type:a.markerType});case"form":return(0,_.jsx)("div",{className:"fco-standings-table__form",children:a.form.map((e,a)=>(0,E.createElement)(r.s,{...e,iconVersion:t,key:a}))});case"match":{let e=a.match?.status===p.Nu.LIVE,t=a.match&&a.match?.teamA?.id===a?.team?.id?"teamA":"teamB",n=a.match?.score;return s&&e&&n?(0,_.jsx)(b,{score:n,context:t}):null}case"team":return(0,_.jsxs)(d.BP,{rel:a.team.rel,href:a.team.href,onClick:a.team.onClick,className:"fco-standings-table__team",children:[(0,_.jsx)(l._V,{className:"fco-standings-table__team-image",src:a.team.crestPath,alt:a.team.name,width:24,onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=n}}),(0,_.jsx)("span",{className:"fco-standings-table__team-name fco-standings-table__team-name--long",children:a.team.name}),(0,_.jsx)("span",{className:"fco-standings-table__team-name fco-standings-table__team-name--short",children:a.team.shortName||a.team.name})]});case"goalsDifference":return(0,_.jsx)(_.Fragment,{children:a[e]>0?`+${a[e]}`:a[e]});case"positionChange":return a[e]?(0,_.jsx)("span",{className:"fco-standings-table__position-change-indicator",children:(0,_.jsx)(f,{type:a[e]})}):(0,_.jsx)(_.Fragment,{});default:return(0,_.jsx)(_.Fragment,{children:a[e]})}}
1,T=({data:e,selectedTeamsIds:a,columnsToHide:s=O,customHeading:l,onOptionSelect:i,standingsDropdownOptions:c,radioSelect:d,preselectedOption:r,live:p,showFormSwitch:g,iconVersion:f})=>{let b=(0,t.o)(),[T,N]=(0,E.useState)(!1),I=new Set(s);if(g&&T){for(let e of g.columnsToHide)I.add(e);I.delete("form")}else I.add("form");let j=Array.from(I),R=(0,E.useMemo)(()=>Object.fromEntries(Object.entries({markerType:{label:"",suffix:"marker",hideable:j.includes("markerType")},position:{label:b("page.match.standings.table.position"),suffix:"position",hideable:j.includes("position")},positionChange:{suffix:"position-change",hideable:j.includes("positionChange")},team:{label:b("page.match.standings.table.team"),suffix:"team",hideable:j.includes("team")},match:{label:p?b("page.match.standings.table.score"):"",suffix:"score",hideable:j.includes("match")},played:{label:b("page.match.standings.table.played"),suffix:"played",hideable:j.includes("played")},win:{label:b("generic.match.win"),suffix:"win",hideable:j.includes("win")},draw:{label:b("generic.match.draw"),suffix:"draw",hideable:j.includes("draw")},lose:{label:b("generic.match.lose"),suffix:"lose",hideable:j.includes("lose")},goalsFor:{label:b("page.match.standings.table.goalsFor"),suffix:"goals-for",hideable:j.includes("goalsFor")},goalsAgainst:{label:b("page.match.standings.table.goalsAgainst"),suffix:"goals-against",hideable:j.includes("goalsAgainst")},goalsDifference:{label:b("page.match.standings.table.goalsDifference"),suffix:"goals-difference",hideable:j.includes("goalsDifference")},points:{label:b("page.match.standings.table.points"),suffix:"points",hideable:j.includes("points")},form:{label:b("page.match.teamForm.title"),suffix:"form",hideable:j.includes("form")}}).filter(([a])=>"markerType"===a||e.some(e=>void 0!==e[a]))),[e,j,p,b]),v=(0,E.useMemo)(()=>{let e={...R};return l&&(e={customHeading:{label:l.value,suffix:"custom-heading",hideable:!1,colSpan:l.colSpan},...Object.fromEntries(Object.entries(e).slice(l.colSpan))}),e},[j]),A=c&&c.length>0&&i,{radioButtonsLabel:w,onRadioSelect:C,standingRadioOptions:L}=d||{},S=L&&L.length>0&&C;return(0,_.jsxs)("div",{className:"fco-standings-table fco-standings-table__container",children:[(0,_.jsxs)("div",{className:"fco-standings-table__wrapper",children:[p?(0,_.jsx)(n.t,{}):null,g?(0,_.jsx)(o.j,{label:b("generic.form"),value:T,onChange:()=>N(e=>!e),className:h()("fco-standings-table__switch",{"fco-standings-table__switch--hide-on-desktop":g})}):null,A?(0,_.jsx)(m.t,{options:c,onOptionSelect:i,preselectedOption:r}):null,S?(0,_.jsx)(u.t,{options:L,onChange:C,preselectedOption:r,label:w}):null]}),(0,_.jsxs)("table",{className:"fco-standings-table__table",children:[(0,_.jsx)("thead",{children:(0,_.jsx)("tr",{children:Object.entries(v).map(([e,a])=>(0,_.jsx)("th",{className:h()("fco-standings-table__cell","fco-standings-table__cell--head",`fco-standings-table__cell--${a.suffix}`,{"fco-standings-table__cell--hidable":a.hideable}),colSpan:a.colSpan,children:a.label},`head-${e}`))})}),(0,_.jsx)("tbody",{children:e.map(e=>(0,_.jsx)("tr",{className:h()("fco-standings-table__row",{"fco-standings-table__row--selected":a?.includes(e.team.id)}),children:Object.entries(R).map(([a,s])=>(0,_.jsx)("td",{className:h()("fco-standings-table__cell",`fco-standings-table__cell--${s.suffix}`,{"fco-standings-table__cell--hidable":s.hideable}),children:(0,_.jsx)(x,{row:e,type:a,live:p,iconVersion:f})},`body-${a}-${e.team.id}`))},e.team.id))})]})]})};s(31871);var N=({legend:e})=>(0,_.jsx)("div",{className:"fco-standings__legend",children:e.map(({type:e,label:a},s)=>(0,_.jsx)(i.O,{type:e,label:a},`${e}-${s}`))}),I=({tables:e,columnsToHide:a,selectedTeamIds:s,legend:i,legendHeading:o,onOptionSelect:c,standingsDropdownOptions:d,preselectedOption:r,hideLegend:m,showFormSwitch:p,iconVersion:g,radioSelect:h})=>{let f=(0,t.o)();return(0,_.jsxs)("div",{className:"fco-standings",children:[e.map((e,t)=>(0,_.jsxs)(E.Fragment,{children:[(0,_.jsxs)("h3",{className:"fco-standings__title",children:[e.title,e.titleImagePath?(0,_.jsx)(l._V,{src:e.titleImagePath,height:"22"}):null]},`standings-title-${t}
1`),(0,_.jsx)(T,{data:e.data,columnsToHide:a,selectedTeamsIds:s,onOptionSelect:c,standingsDropdownOptions:d,preselectedOption:r,live:e.live,iconVersion:g,showFormSwitch:p,radioSelect:h},`standings-table-${t}`),e.live&&e.lastUpdatedAt?(0,_.jsxs)("div",{className:"fco-standings__last-updated",children:[(0,_.jsx)(n.t,{hideText:!0}),(0,_.jsx)("span",{className:"fco-standings__last-updated-text",children:f("generic.lastUpdated",{param1:e.lastUpdatedAt})})]}):null]},`standings-${t}`)),!m&&o?(0,_.jsx)("h4",{className:"fco-standings__legend",children:o}):null,!m&&(0,_.jsx)(N,{legend:i})]})}},58865:(e,a,s)=>{"use strict";s.d(a,{s:()=>m});var t=s(15951),n=s(40857),l=s(3017),i=s(7844),o=s.n(i);s(65491);var c={w:"fco-match-result-icon__w",l:"fco-match-result-icon__l",d:"fco-match-result-icon__d"},d={w:"generic.match.win",l:"generic.match.lose",d:"generic.match.draw"},r={w:(0,l.jsx)(n.I,{glyph:"win"}),l:(0,l.jsx)(n.I,{glyph:"lose"}),d:(0,l.jsx)(n.I,{glyph:"draw"})},m=({type:e,className:a,iconVersion:s,...n})=>{let i=(0,t.o)();return(0,l.jsx)("div",{...n,className:o()("fco-match-result-icon",c[e],a),children:s?r[e]:i(d[e])})}},58877:(e,a,s)=>{"use strict";s.d(a,{t:()=>l});var t=s(24181),n=s(3017);function l({options:e,onChange:a,preselectedOption:s,label:l}){let[i,o]=(0,t.useState)(s||e[0].value);(0,t.useEffect)(()=>{s&&o(s)},[s]);let c=e=>{o(e.target.value),a&&a(e)};return(0,n.jsx)("fieldset",{className:"fco-radio-buttons",role:"radiogroup","aria-label":l,children:e.map(e=>(0,n.jsxs)("label",{className:`fco-radio-buttons__option ${i===e.value?"fco-radio-buttons__selected":""}`,children:[(0,n.jsx)("input",{className:"fco-radio-buttons__input",type:"radio",value:e.value,checked:i===e.value,onChange:c}),e.text]},e.value))})}s(63141)},63141:()=>{},65491:()=>{},76518:()=>{},87350:()=>{},93320:(e,a,s)=>{"use strict";s.d(a,{O:()=>n,S:()=>l});var t=s(3017);s(76518);var n=({type:e,label:a})=>e?(0,t.jsx)("div",{className:`fco-standings-marker fco-standings-marker--${e.toLowerCase().replace("_","-")}`,children:a?(0,t.jsx)("span",{className:"fco-standings-marker__label",children:a||""}):null}):null,l={PROMOTION_1:"PROMOTION_1",PROMOTION_2:"PROMOTION_2",PROMOTION_3:"PROMOTION_3",PROMOTION_4:"PROMOTION_4",PROMOTION_5:"PROMOTION_5",PROMOTION_6:"PROMOTION_6",RELEGATION_1:"RELEGATION_1",RELEGATION_2:"RELEGATION_2",RELEGATION_3:"RELEGATION_3"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.