1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3174],{91555:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/football/league-tables/[competitionName]/[competitionId]/season/[seasonName]/[seasonId]",function(){return t(7951)}])},22563:function(n,e,t){"use strict";var o=t(4111),i=t(51438),r=t(52951),a=t(14924),s=t(88029),l=t(26042),u=t(69396),c=t(99534),d=t(7297),p=t(5950),m=t(85893),f=t(67294),h=t(45697),g=t.n(h),b=t(41664),v=t.n(b),y=t(50191),x=t(26093),w=t(97896),Z=t(9194),N=t(27603);function I(){var n=(0,d.Z)(["\n ",";\n ",";\n fill: ",";\n"]);return I=function(){return n},n}function _(){var n=(0,d.Z)(["\n ","\n\n font-family: ",";\n\n .dropdown-value {\n color: ",";\n }\n\n .dropdown-link {\n text-decoration: none;\n margin: 20px;\n }\n\n .not-focused-dropdown-option {\n background-color: white;\n }\n\n .focused-dropdown-option {\n background-color: ",";\n }\n\n .caret-icon {\n position: absolute;\n z-index: ",";\n top: 50%;\n transform: translateY(-45%);\n right: 10px;\n width: 12px;\n }\n"]);return _=function(){return n},n}function S(){var n=(0,d.Z)(["\n padding: 0;\n\n .sort-dropdown {\n font-family: ",";\n color: ",";\n }\n\n .dropdown-sort {\n &__menu {\n font-size: ",";\n color: ",";\n padding-left: ",";\n }\n &__single-value {\n font-size: ",";\n color: ",";\n padding-left: ",";\n }\n &__placeholder {\n font-size: ",";\n padding-left: ",";\n color: ",";\n }\n &__control {\n line-height: 14px;\n height: 18px;\n border: none;\n\n &--is-focused {\n border: none;\n box-shadow: none;\n }\n }\n &__option {\n background-color: white;\n color: ",";\n\n &--is-focused {\n background-color: ",";\n }\n }\n }\n"]);return S=function(){return n},n}var T=N.ZP.span.withConfig({displayName:"Dropdown__Indicator",componentId:"sc-ae427976-0"})(I(),function(n){return n.minimalStyle?"position: absolute;":""},function(n){return n.minimalStyle?"left: 8px;":""},function(n){return n.theme.colours.brandColours.royalBlue}),j=(0,N.ZP)(x.ZP).withConfig({displayName:"Dropdown__BaseSelect",componentId:"sc-ae427976-1"})(_(),function(n){return n.zIndex?"z-index: ".concat(n.zIndex,";"):""},function(n){return n.theme.fonts.family.bodyCopyRegular},function(n){return n.theme.colours.textSecondary},function(n){return n.theme.colours.componentBackground},function(n){return n.theme.layout.zIndex.dropDownCaretIcon});j.displayName="BaseSelect";var C=(0,N.ZP)(j).withConfig({displayName:"Dropdown__MinimalSelect",componentId:"sc-ae427976-2"})(S(),function(n){return n.theme.fonts.family.bodyCopyMedium},function(n){return n.theme.colours.textPrimary},function(n){return n.theme.fonts.size.small},function(n){return n.theme.colours.textPrimary},function(n){return n.theme.sizes.largeGap},function(n){return n.theme.fonts.size.small},function(n){return n.theme.colours.textPrimary},function(n){return n.theme.sizes.largeGap},function(n){return n.theme.fonts.size.small},function(n){return n.theme.sizes.largeGap},function(n){return n.theme.colours.textPrimary},function(n){return n.theme.colours.textSecondary},function(n){return n.theme.colours.componentBackground});C.displayName="MinimalSelect";var P=function(n){(0,s.Z)(t,n);var e=(0,p.Z)(t);function t(){var n;return(0,i.Z)(this,t),n=e.apply(this,arguments),(0,a.Z)((0,o.Z)(n),"singleValue",function(n){var e=n.children,t=(0,c.Z)(n,["children"]);return(0,m.jsx)(w.F.SingleValue,(0,u.Z)((0,l.Z)({},t),{className:"dropdown-value",children:e}))}),(0,a.Z)((0,o.Z)(n),"handleChange",function(e){var t=e.value;t&&n.props.onChange&&n.props.onChange(t)}),(0,a.Z)((0,o.Z)(n),"dropdownIndicator",function(e){return(0,m.jsx)(T,{minimalStyle:n.props.minimalStyle,children:w.F.DropdownIndicator&&(0,m.jsx)(w.F.DropdownIndicator,(0,u.Z)((0,l.Z)({},e),{children:(0,m.jsx)(y.Z,{className:"caret-icon",type:"line",direction:"down"})}))})}),(0,a.Z)((0,o.Z)(n),"option",function(e){var t={};n.props.shouldNavigate&&(t.href=e.data.href,t.as=e.data.as);var o=e.isFocused?"focused-dropdown-option":"not-focused-dropdown-option",i=(0,m.jsx)(w.F.Option,(0,u.Z)((0,l.Z)({},e),{className:"".concat(o," dropdown-value")}));return n.props.shouldNavigate?(0,m.jsx)(v(),(0,u.Z)((0,l.Z)({},t),{children:(0,m.jsx)("a",{className:"dropdown-link",children:i})})):i}
1),(0,a.Z)((0,o.Z)(n),"noOptionsMessage",function(){if(n.props.noOptionsMessage)return n.props.noOptionsMessage;var e=n.props.title.toLowerCase()||"options";return"No ".concat(e," found")}),n}return(0,r.Z)(t,[{key:"render",value:function(){var n=this,e=function(n){return n.label},t=(0,Z.c)({stringify:e}),o={components:{IndicatorSeparator:function(){return null},DropdownIndicator:this.dropdownIndicator,Option:this.option,SingleValue:this.singleValue},options:this.props.options.map(function(n){return{value:n.value,label:n.text,href:n.href,as:n.as}}),menuShouldScrollIntoView:!0,onChange:this.handleChange,isSearchable:!1,noOptionsMessage:this.noOptionsMessage,className:this.props.className+" dropdown",filterOption:t,classNamePrefix:this.props.classNamePrefix,value:this.props.value,zIndex:this.props.zIndex},i=o.options.find(function(e){return e.value==n.props.value});return(this.props.showSelected&&i?o.placeholder=i.label:o.placeholder=this.props.title,this.props.minimalStyle)?(0,m.jsx)(C,(0,l.Z)({},o)):this.props.narrowStyle?(0,m.jsx)(j,(0,u.Z)((0,l.Z)({},o),{styles:{control:function(n){return(0,u.Z)((0,l.Z)({},n),{height:25,minHeight:25})}}})):(0,m.jsx)(j,(0,l.Z)({},o))}}]),t}(f.Component);(0,a.Z)(P,"propTypes",{options:g().arrayOf(g().shape({href:g().oneOfType([g().string,g().shape({href:g().string,query:g().object}),]),as:g().string,value:g().string,onSelect:g().func,text:g().string.isRequired})).isRequired,title:g().string,className:g().string,onChange:g().func,shouldNavigate:g().bool,showSelected:g().bool,noOptionsMessage:g().string,classNamePrefix:g().string,minimalStyle:g().bool,zIndex:g().number,value:g().string,narrowStyle:g().bool}),(0,a.Z)(P,"defaultProps",{classNamePrefix:""}),e.ZP=P},16561:function(n,e,t){"use strict";var o=t(7297),i=t(27603);function r(){var n=(0,o.Z)(["\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n @media (min-width: ",") {\n border-radius: ",";\n }\n"]);return r=function(){return n},n}var a=i.ZP.div.withConfig({displayName:"DropdownWrapper",componentId:"sc-d558fe45-0"})(r(),function(n){return n.theme.colours.componentBackground},function(n){return n.theme.sizes.largeGap},function(n){return n.theme.sizes.largeGap},function(n){return n.theme.breakpoints.maxMobileWidth},function(n){return n.theme.sizes.border.mediumRadius});e.Z=a},7951:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return E},default:function(){return W}});var o=t(85893),i=t(67294),r=t(56404),a=t(18897),s=t(69125),l=t(86370),u=t(96486),c=t(25925),d=t(86850),p=t(91609),m=t(7297),f=t(45697),h=t.n(f),g=t(27603),b=t(90283),v=t(14917),y=t(71695),x=t(85313),w=t(22563),Z=function(n){return n.replace(/season/i,"").trim()},N=function(n){var e=n.competitionId,t=n.competitionName,i=n.seasonId,r=n.isMobile,a=void 0!==r&&r,s=(0,y.Z)({path:"/football/v2/competitions/".concat(e,"/seasons")}),l=[],u=null;s&&s.data&&(u=s.data.find(function(n){return!0===n.current_season}).id,l=s.data.map(function(n){var o,i,r,s,l,c,d=(o=n.name,(0,x.Uu)(Z(o).replace("/","-"))),p=n.id;return{href:p===(c=u)?{pathname:"/football/league-tables/[competitionName]/[competitionId]",query:{competitionName:t,competitionId:e}}:{pathname:"/football/league-tables/[competitionName]/[competitionId]/season/[seasonName]/[seasonId]",query:{competitionName:t,competitionId:e,seasonName:d,seasonId:p}},value:n.id,text:a?Z(n.name):n.name}}));var c=i||l[0]&&l[0].value;return(0,o.jsx)(w.ZP,{title:"Season",options:l,shouldNavigate:!0,minimalStyle:a,classNamePrefix:"dropdown-sort",showSelected:!0,value:"".concat(c)})};N.propTypes={competitionId:h().number,competitionName:h().string,seasonId:h().number,isMobile:h().bool};var I=t(11010),_=t(16561);function S(){var n=(0,m.Z)(["\n font-family: ",";\n font-size: ",";\n color: ",";\n padding: ",";\n"]);return S=function(){return n},n}function T(){var n=(0,m.Z)(["\n margin-bottom: 0;\n"]);return T=function(){return n},n}g.ZP.div.withConfig({displayName:"LeagueTables__MissingTableText",componentId:"sc-d6a06256-0"})(S(),function(n){return n.theme.fonts.family.bodyCopyLight},function(n){return n.theme.fonts.size.large},function(n){return n.theme.colours.textPrimaryLighter},function(n){return n.theme.sizes.mediumLargeGap});var j=(0,g.ZP)(_.Z).withConfig({displayName:"LeagueTables__CompetitionDropdownWrapper",componentId:"sc-d6a06256-1"})(T()),C=function(n){var e=n.listToShow,t=n.children,r=(0,i.useContext)(g.Ni),a=[];return e&&(a=e.map(function(n){return{as:"/football/league-tables/".concat((0,x.Uu)(n.name),"/").concat(n.competition_reference.id),href:"/football/league-tables/[competitionName]/[competitionId]",text:n.name}})),a.length>
10&&(a[0].alternatives=[{href:"/football/league-tables",isIndex:!0},]),(0,o.jsxs)("div",{children:[a.length>0&&(0,o.jsx)(j,{children:(0,o.jsx)(w.ZP,{title:"COMPETITIONS",options:a,shouldNavigate:!0,className:"competitions-dropdown",zIndex:r.layout.zIndex.footballDropdownFirst})}),t]})};function P(){var n=(0,m.Z)(["\n margin: 0 ",";\n @media (min-width: ",") {\n margin: 0;\n }\n"]);return P=function(){return n},n}function z(){var n=(0,m.Z)(["\n font-family: ",";\n font-size: ",";\n color: ",";\n padding: ",";\n"]);return z=function(){return n},n}function k(){var n=(0,m.Z)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n "]);return k=function(){return n},n}function L(){var n=(0,m.Z)(["\n ",";\n margin: ",";\n"]);return L=function(){return n},n}function M(){var n=(0,m.Z)(["\n width: ",";\n"]);return M=function(){return n},n}C.propTypes={listToShow:h().array,children:h().node.isRequired};var O=g.ZP.div.withConfig({displayName:"SingleLeagueTable__TableWrapper",componentId:"sc-2e9c24d1-0"})(P(),function(n){return n.theme.sizes.mediumLargeGap},function(n){return n.theme.breakpoints.layoutBreakWidth}),D=g.ZP.div.withConfig({displayName:"SingleLeagueTable__MissingTableText",componentId:"sc-2e9c24d1-1"})(z(),function(n){return n.theme.fonts.family.bodyCopyLight},function(n){return n.theme.fonts.size.large},function(n){return n.theme.colours.textPrimaryLighter},function(n){return n.theme.sizes.mediumLargeGap}),G=g.ZP.div.withConfig({displayName:"SingleLeagueTable__ControlsWrapper",componentId:"sc-2e9c24d1-2"})(L(),function(n){return n.isMobile||(0,g.iv)(k())},function(n){return n.theme.sizes.mediumLargeGap}),q=g.ZP.div.withConfig({displayName:"SingleLeagueTable__SeasonDropdownWrapper",componentId:"sc-2e9c24d1-3"})(M(),function(n){return n.isMobile?"100px":"250px"}),F=function(n){var e=n.tableTitle,t=n.listToShow,r=n.leagueTableData,a=n.competitionType,s=n.params,l=void 0===s?{}
1:s,u=n.isCurrentSeason,c=void 0===u||u,d=(0,b.$)(),p=(0,i.useState)("all"),m=p[0],f=p[1],h=l.competitionId,y=l.competitionName,x=l.seasonId,w=(0,i.useContext)(g.Ni),Z=r.home&&r.away&&r.home.length>0&&r.away.length>0,_=r[m],S=_&&_.length>0,T="all"==m?r.qualifications:[],j="all"==m?r.table_key:"",P=(0,o.jsx)(q,{isMobile:d.mobile,children:(0,o.jsx)(N,{competitionId:h,competitionName:y,seasonId:x,isMobile:d.mobile,zIndex:w.layout.zIndex.footballDropdownFirst})}),z=Z&&c?(0,o.jsx)(I.ZP,{buttons:[{text:"All",value:"all",isIndex:!0},{text:"Home",value:"home"},{text:"Away",value:"away"},],value:m,joined:d.mobile,onChange:function(n,e){return f(e.value)}}):(0,o.jsx)("div",{});return(0,o.jsxs)(C,{listToShow:t,children:[(0,o.jsxs)(G,{isMobile:d.mobile,children:[z,!d.mobile&&P]}),(0,o.jsx)(O,{children:S?(0,o.jsx)(v.ZP,{leagueData:_,leagueName:e,leagueType:m,qualifications:T,tableKey:j,competitionType:a,seasonPicker:d.mobile?P:null,isCurrentSeason:c}):(0,o.jsxs)(D,{children:["There is no league data available for ",e," at the moment."]})})]})};F.propTypes={tableTitle:h().string,listToShow:h().array,leagueTableData:h().object.isRequired,competitionType:h().string,params:h().object,isCurrentSeason:h().bool};var B=function(n){var e,t,i,m,f=n.competitionList,h=n.leagueTableData,g=n.params,b=n.competitionType,v=n.hasError;if(v||!f)e=(0,o.jsx)("div",{className:"default-no-article",children:(0,o.jsx)("p",{children:"Competition tables currently unavailable. Please check back later."})});else{var y=(0,u.get)(g,"competitionId",!1);m=(0,u.get)(g,"seasonName",!1);var x=f.filter(function(n){return n.show_tables}).sort(function(n,e){return n.sort_order-e.sort_order});t=y?x.filter(function(n){return n.competition_reference.id==y})[0]:x[0],i=(0,l.s)(t.name),e=(0,o.jsx)(F,{tableTitle:i,listToShow:x,competitionList:f,leagueTableData:h,params:g,competitionType:b,isCurrentSeason:!1})}var w="Football - Sporting Life",Z="League table";return v||(w="".concat(i," ").concat(m," Season | Sporting Life"),Z="Get the ".concat(i," for the ").concat(m," season, find out who won and where the other teams finished.")),(0,o.jsxs)(a.ZP,{sport:"football",title:w,description:Z,children:[(0,o.jsx)(c.Z,{children:v?(0,s.Z)():e}),(0,o.jsx)(d.Z,{children:(0,o.jsx)(r.Z,{sport:"football",content:p.uL})})]})};B.propTypes={};var E=!0,W=B},87462:function(n,e,t){"use strict";function o(){return(o=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)({}).hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n}).apply(null,arguments)}t.d(e,{Z:function(){return o}})}},function(n){n.O(0,[6093,8897,4676,4945,5311,9774,2888,179],function(){return n(n.s=91555)}),_N_E=n.O()}]);
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.