1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,890026,e=>{"use strict";var a=e.i(391398),t=e.i(191788),l=e.i(151183),s=e.i(293686),r=e.i(382907),i=e.i(753002),n=e.i(760814),o=e.i(802906);let d=n.default.div.withConfig({displayName:"league-select.styles__Container",componentId:"sc-891bec85-0"})` 2 display: flex; 3`,u=n.default.div.withConfig({displayName:"league-select.styles__Control",componentId:"sc-891bec85-1"})` 4 flex-grow: 1; 5`,c=n.default.div.withConfig({displayName:"league-select.styles__Actions",componentId:"sc-891bec85-2"})` 6 display: flex; 7`,g=n.default.div.withConfig({displayName:"league-select.styles__Action",componentId:"sc-891bec85-3"})` 8 display: flex; 9`,m=n.default.button.withConfig({displayName:"league-select.styles__Button",componentId:"sc-891bec85-4"})` 10 margin-left: ${o.spacing.md}px; 11`,p=n.default.span.withConfig({displayName:"league-select.styles__ButtonLabel",componentId:"sc-891bec85-5"})` 12 13`,f=n.default.div.withConfig({displayName:"league-select.styles__IconContainer",componentId:"sc-891bec85-6"})` 14 15`;e.s(["LeagueSelect",0,({leagues:e=[],label:n=null,value:o=null,isDisabled:h=!1,defaultOptionLabel:_="League",defaultOptionValue:E="-1",showDefaultOption:y=!0,showRefreshButton:x=!1,showRefreshButtonLabel:T=!1,showRefreshButtonIcon:b=!0,theme:I="light",handleChange:R=(e,a)=>null,handleRefresh:L=e=>null})=>{let[C,N]=(0,t.useState)(E);return((0,t.useEffect)(()=>{N(E)},[e,E]),(0,t.useEffect)(()=>{o&&o!=C&&N(o)},[o,C]),e)?(0,a.jsxs)(d,{children:[(0,a.jsx)(u,{children:(0,a.jsxs)(l.default,{label:n,value:C,defaultValue:E,disabled:h,onChange:(e,a)=>{N(e.target.value),R(e,a)},style:{width:"100%",color:I===i.THEMES.DARK?i.colours.text.secondary:i.colours.text.primary,border:I===i.THEMES.DARK?`2px solid ${i.colours.text.secondary}`:"",borderRadius:0},children:[y&&(0,a.jsx)(s.default,{value:E,children:_}),e.map((e,t)=>{if(e.leagueId)return(0,a.jsx)(s.default,{value:e.leagueId.toString(),className:`option option-${t} branch-${e.leagueId}`,children:e.alternateLeagueName?e.alternateLeagueName:e.leagueName},`item-${t}`)})]})}),x&&(0,a.jsx)(c,{children:(0,a.jsx)(g,{children:(0,a.jsxs)(m,{onClick:e=>{L(e)},disabled:h,children:[T&&(0,a.jsx)(p,{children:"Refresh"}),b&&(0,a.jsx)(f,{children:(0,a.jsx)(r.default,{})})]})})})]}):null}],890026)},913692,e=>{"use strict";var a=e.i(451400),t=e.i(649461);let l=e=>e[t.KEY],s=(0,a.createSelector)([l],e=>e.currentLeague),r=(0,a.createSelector)([l],e=>e.currentLeagueDay),i=(0,a.createSelector)([l],e=>e.currentLeagueDays),n=(0,a.createSelector)([l],e=>e.currentLeagueTable),o=(0,a.createSelector)([l],e=>e.currentLeagueTables),d=(0,a.createSelector)([l],e=>e.currentLeagueFixtures),u=(0,a.createSelector)([l],e=>e.currentDivision),c=(0,a.createSelector)([l],e=>e.currentDivisions),g=(0,a.createSelector)([l],e=>e.currentLeagueCupTable),m=(0,a.createSelector)([l],e=>e.currentLeagueCupTables);(0,a.createSelector)([l],e=>e.currentLeagueCupTeamResult),(0,a.createSelector)([l],e=>e.currentLeagueCupTeamResults);let p=(0,a.createSelector)([l],e=>e.currentLeagueCupTeamResultsMulti),f=(0,a.createSelector)([l],e=>e.currentFairPlayLeagueTable);(0,a.createSelector)([l],e=>e.currentFairPlayLeagueTables);let h=(0,a.createSelector)([l],e=>e.currentFairPlayLeagueTeam),_=(0,a.createSelector)([l],e=>e.currentFairPlayLeagueTeamResults);(0,a.createSelector)([l],e=>e.currentFairPlayLeagueTeamResultsMulti);let E=(0,a.createSelector)([l],e=>e.currentFixtureDetail),y=(0,a.createSelector)([l],e=>e.isLoading),x=(0,a.createSelector)([l],e=>e.error);e.s(["selectCurrentDivision",0,u,"selectCurrentDivisions",0,c,"selectCurrentFairPlayLeagueTable",0,f,"selectCurrentFairPlayLeagueTeam",0,h,"selectCurrentFairPlayLeagueTeamResults",0,_,"selectCurrentFixtureDetail",0,E,"selectCurrentLeague",0,s,"selectCurrentLeagueCupTable",0,g,"selectCurrentLeagueCupTables",0,m,"selectCurrentLeagueCupTeamResultsMulti",0,p,"selectCurrentLeagueDay",0,r,"selectCurrentLeagueDays",0,i,"selectCurrentLeagueFixtures",0,d,"selectCurrentLeagueTable",0,n,"selectCurrentLeagueTables",0,o,"selectError",0,x,"selectIsLoading",0,y])},293686,e=>{"use strict";e.i(350461);var a=e.i(191788),t=e.i(56206),l=e.i(600961),s=e.i(400410),r=e.i(322138),i=e.i(314654),n=e.i(248157),o=e.i(231670),d=e.i(973942),u=e.i(652445),c=e.i(244480),g=e.i(713149),m=e.i(46739);let p=(0,g.default)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),f=(0,g.default)("MuiListItemIcon",["root","alignItemsFlexStart"]),h=(0,g.default)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function _(e){return(0,m.default)("MuiMenuItem",e)}let E=(0,g.default)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var y=e.i(391398);let x=(0,r.styled)(d.default,{shouldForwardProp:e=>(0,s.default)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,a)=>{let{ownerState:t}=e;
15return[a.root,t.dense&&a.dense,t.divider&&a.divider,!t.disableGutters&&a.gutters]}})((0,i.default)(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${E.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${E.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${E.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${E.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${E.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${p.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${p.inset}`]:{marginLeft:52},[`& .${h.root}`]:{marginTop:0,marginBottom:0},[`& .${h.inset}`]:{paddingLeft:36},[`& .${f.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${f.root} svg`]:{fontSize:"1.25rem"}}}]}))),T=a.forwardRef(function(e,s){let r,i=(0,n.useDefaultProps)({props:e,name:"MuiMenuItem"}),{autoFocus:d=!1,component:g="li",dense:m=!1,divider:p=!1,disableGutters:f=!1,focusVisibleClassName:h,role:E="menuitem",tabIndex:T,className:b,...I}=i,R=a.useContext(o.default),L=a.useMemo(()=>({dense:m||R.dense||!1,disableGutters:f}),[R.dense,m,f]),C=a.useRef(null);(0,u.default)(()=>{d&&C.current&&C.current.focus()},[d]);let N={...i,dense:L.dense,divider:p,disableGutters:f},S=(e=>{let{disabled:a,dense:t,divider:s,disableGutters:r,selected:i,classes:n}=e,o=(0,l.default)({root:["root",t&&"dense",a&&"disabled",!r&&"gutters",s&&"divider",i&&"selected"]},_,n);return{...n,...o}})(i),P=(0,c.default)(C,s);return i.disabled||(r=void 0!==T?T:-1),(0,y.jsx)(o.default.Provider,{value:L,children:(0,y.jsx)(x,{ref:P,role:E,tabIndex:r,component:g,focusVisibleClassName:(0,t.default)(S.focusVisible,h),className:(0,t.default)(S.root,b),...I,ownerState:N,classes:S})})});e.s(["default",0,T],293686)},382907,665418,e=>{"use strict";var a=e.i(781289),t=e.i(391398);let l=(0,a.default)((0,t.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");e.s(["default",0,l],382907);var s=e.i(151183);e.s(["Select",()=>s.default],665418)},418079,e=>{"use strict";var a=e.i(430710);let t="/leagues",l="/fixtures",s={BRANCH_ID:"{branchId}",FIXTURE_ID:"{fixtureId}",LEAGUE_ID:"{leagueId}",LEAGUE_CUP_ID:"{leagueCupId}",FAIR_PLAY_LEAGUE_ID:"{fairPlayLeagueId}"},r={GET_LEAGUES:`${a.BASE_URI}/${s.BRANCH_ID}/leagues`,GET_LEAGUE_TABLES:`${t}/${s.LEAGUE_ID}/table`,GET_LEAGUE_FIXTURES:`${t}/${s.LEAGUE_ID}/fixtures`,GET_LEAGUE_CUP_TABLE:`${t}/cup`,GET_LEAGUE_CUP_TEAM_RESULTS:`${t}/cup/${s.LEAGUE_CUP_ID}/teamresults`,GET_FAIR_PLAY_LEAGUE_TABLE:`${t}/fairplay`,GET_FAIR_PLAY_LEAGUE_TEAM_RESULTS:`${t}/fairplay/${s.FAIR_PLAY_LEAGUE_ID}/teamresults`,GET_FIXTURE_DETAIL:`${l}/${s.BRANCH_ID}/${s.FIXTURE_ID}`};e.s(["FIXTURES_BASE_URI",0,l,"URIS",0,r,"URI_PLACEHOLDERS",0,s])},254674,93445,e=>{"use strict";var a=e.i(792042),t=e.i(523986),l=e.i(653162);function s(e,a,t){return(0,l.addMonths)(e,-a,t)}e.s(["default",0,s,"subMonths",()=>s],93445);var r=e.i(77412),i=e.i(279607),n=e.i(270808),o=e.i(146497),d=e.i(418079);let u=e=>({});var c=e.i(460199),g=e.i(883063);let m=e=>new Promise((a,t)=>{if(o.SETTINGS.useMocks){let l={};l||t(`Leagues not found for args: ${e}`),a(l);return}(0,r.createProxyRequestAsync)({url:d.URIS.GET_LEAGUES.replace(d.URI_P
15LACEHOLDERS.BRANCH_ID,e.branchId?.toString()),method:i.TYPES.GET,headers:{[n.PROXY_TYPE_HEADER_KEY]:n.PROXY_REQ_TYPES.API}}).then(e=>{a(e.data)}).catch(e=>{t((0,c.getProxyError)(e))})}),p=e=>new Promise((t,l)=>{if(o.SETTINGS.useMocks){let a={};a||l(`League Fixtures not found for args: ${e}`),t(a);return}let u=(0,g.zeroDtTime)({dt:new Date(Date.now()),zeroHrs:!1}),m=e?.fromDate?e.fromDate:s(u,1),p=e?.toDate?e.toDate:u;(0,r.createProxyRequestAsync)({url:d.URIS.GET_LEAGUE_FIXTURES.replace(d.URI_PLACEHOLDERS.LEAGUE_ID,e.leagueId?.toString()),method:i.TYPES.GET,params:{...e,fromDate:(0,a.default)(m,"yyyy-MM-dd'T'HH:mm"),toDate:(0,a.default)(p,"yyyy-MM-dd'T'HH:mm")},headers:{[n.PROXY_TYPE_HEADER_KEY]:n.PROXY_REQ_TYPES.API}}).then(e=>{t(e.data)}).catch(e=>{l((0,c.getProxyError)(e))})}),f=async e=>new Promise((a,l)=>{if(!e){console.error("Missing required paramater: config"),l([]);return}let s=[],r=[],i=[];return m({branchId:e?.branch?.id||e?.branch?.smartCentreNumber||e.branchId}).then(a=>{if(a?.leagueDays?.length)for(let t of a.leagueDays){let a=e.leagueConfigs?e.leagueConfigs.filter(e=>e.leagueId):[],l=a.length?a[0]:null,s=l?t.leagues.filter(e=>l.leagueId==e.leagueId):t.leagues;s?.length&&(r=[...r,...s],l&&(i=[...i,l]))}}).then(()=>{if(r?.length)for(let a of r){let l=e.leagueConfigs?.length?e.leagueConfigs.find(e=>e.leagueId===a.leagueId):null,r=l?.fromDate?.length?(0,t.default)(l.fromDate):void 0,n=l?.toDate?.length?(0,t.default)(l.toDate):void 0;s.push(p({leagueId:a.leagueId,fromDate:r,toDate:n}).then(e=>{if(!e?.leagueMatch?.divisions?.length)return[];let t=i?.length?i.filter(e=>e.leagueId==a.leagueId):[],l=t?.length?t[0]:null,s=l&&l.divisionIds?.length?e.leagueMatch.divisions.filter(e=>l.divisionIds?.includes(e.id)):e.leagueMatch.divisions;return s?.length?s:[]}).catch(e=>{console.error(e)}))}}).then(()=>Promise.all(s)).then(e=>a(e?.length?e.flat():[])).catch(e=>{console.error(e)})}),h=async e=>new Promise((a,t)=>{if(!e?.length){console.error("Missing required parameter: configs"),t([]);return}a(Promise.all(e.map(e=>f(e))))}),_=e=>new Promise((a,t)=>{if(o.SETTINGS.useMocks){let l={};l||t(`League Cup Team Results not found for args: ${e}`),a(l);return}(0,r.createProxyRequestAsync)({url:d.URIS.GET_LEAGUE_CUP_TEAM_RESULTS.replace(d.URI_PLACEHOLDERS.LEAGUE_CUP_ID,e.leagueCupId.toString()),method:i.TYPES.GET,params:{teamName:e.teamName},headers:{[n.PROXY_TYPE_HEADER_KEY]:n.PROXY_REQ_TYPES.API}}).then(e=>{a(e.data)}).catch(e=>{t((0,c.getProxyError)(e))})}),E=async e=>new Promise((a,t)=>{if(!e?.length){console.error("Missing required parameter: configs"),t([]);return}a(Promise.all(e.map(e=>_(e))))});e.s(["fixtureDetailTransform",0,e=>e,"getDivisionsMany",0,h,"getFairPlayLeagueTable",0,e=>new Promise((a,t)=>{if(o.SETTINGS.useMocks){let l=u(e);l||t(`Fair Play League Table not found for args: ${e}`),a(l);return}(0,r.createProxyRequestAsync)({url:d.URIS.GET_FAIR_PLAY_LEAGUE_TABLE,method:i.TYPES.GET,params:e,headers:{[n.PROXY_TYPE_HEADER_KEY]:n.PROXY_REQ_TYPES.API}}).then(e=>{a(e.data)}).catch(e=>{t((0,c.getProxyError)(e))})}),"getFairPlayLeagueTableTransform",0,e=>e,"getFairPlayLeagueTeamResults",0,e=>new Promise((a,t)=>{if(o.SETTINGS.useMocks){let l=u(e);l||t(`Fair Play League Team Results not found for args: ${e}`),a(l);return}(0,r.createProxyRequestAsync)({url:d.URIS.GET_FAIR_PLAY_LEAGUE_TEAM_RESULTS.replace(d.URI_PLACEHOLDERS.FAIR_PLAY_LEAGUE_ID,e.fairPlayLeagueId.toString()),method:i.TYPES.GET,params:e,headers:{[n.PROXY_TYPE_HEADER_KEY]:n.PROXY_REQ_TYPES.API}}).then(e=>{a(e.data)}).catch(e=>{t((0,c.getProxyError)(e))})}),"getFairPlayLeagueTeamResultsTransform",0,e=>e,"getFixtureDetail",0,e=>new Promise((a,t)=>{if(o.SETTINGS.useMocks){let l={};l||t(`Fixture Detail not found for args: ${e}`),a(l);return}let l=d.URIS.GET_FIXTURE_DETAIL.replace(d.URI_PLACEHOLDERS.BRANCH_ID,e.branchId?.toString()).replace(d.URI_PLACEHOLDERS.FIXTURE_ID,e.fixtureId?.toString());(0,r.createProxyRequestAsync)({url:l,method:i.TYPES.GET,headers:{[n.PROXY_TYPE_HEADER_KEY]:n.PROXY_REQ_TYPES.API}}).then(e=>{a(e.data)}).catch(e=>{t((0,c.getProxyError)(e))})}),"getLeagueCupTables",0,e=>new Promise((a,t)=>{if(o.SETTINGS.useMocks){let l={};l||t(`League Cup Tables not found for args: ${e}`),a(l);return}(0,r.createProxyRequestAsync)({url:d.URIS.GET_LEAGUE_CUP_TABLE,method:i.TYPES.GET,params:{branchId:e.branchId,checkDate:e.checkDate,pageNumber:e.pageNumber},headers:{[n.PROXY_TYPE_HEADER_KEY]:n.PROXY_REQ_TYPES.API}}).then(e=>{a(e.data)}).catch(e=>{t((0,c.getProxyError)(e))})}),"getLeagueCupTeamResults",0,_,"getLeagueCupTeamResultsMany",0,E,"getLeagueCupTeamResultsManyTransform",0,e=>e,"getLeagueFixtures",0,p,"getLeagueTables",0,e=>new Promise((a,t)=>{if(o.SETTINGS.useMocks){let l={};l||t(`League Tables not found for args: ${e}`),a(l);return}(0,r.createProxyRequestAsync)({url:d.URIS.GET_LEAGUE_TABLES.replace(d.URI_P
15LACEHOLDERS.LEAGUE_ID,e.leagueId?.toString()),method:i.TYPES.GET,headers:{[n.PROXY_TYPE_HEADER_KEY]:n.PROXY_REQ_TYPES.API}}).then(e=>{a(e.data)}).catch(e=>{t((0,c.getProxyError)(e))})}),"getLeagues",0,m,"leagueCupTablesResponseTransform",0,e=>e,"leagueCupTeamResultsResponseTransform",0,e=>e,"leagueFixturesTransform",0,e=>e,"leagueTablesTransform",0,e=>e],254674)},584547,e=>{"use strict";e.s(["SETTINGS",0,{LEAGUE_REPORTS_BASE_URI:"https://reports.goalsfootball.co.uk"}])},17637,e=>{"use strict";let a="/corporate",t={WEBCODE:"{webCode}"},l={INDEX:`${a}`,RESULTS:`${a}/${t.WEBCODE}`,DOWNLOAD_TOURNAMENT_REPORT:"/tournaments/data/download",DOWNLOAD_ALL_TOURNAMENT_REPORTS:"/tournaments/data/download-all"};e.s(["QUERY_PARAM_KEYS",0,{DIVISION_ID:"divisionId",TOURNAMENT_ID:"tournamentId",LEAGUE_ID:"leagueId",REPORT_TYPE:"reportType",WEBCODE:"webCode"},"URIS",0,l,"URI_PLACEHOLDERS",0,t])},574331,e=>{"use strict";e.i(584547);var a=e.i(17637),t=e.i(494716),l=e.i(109854);e.s(["getDownloadAllLink",0,e=>`${(0,t.getApiBaseUrl)()}/api${a.URIS.DOWNLOAD_ALL_TOURNAMENT_REPORTS}?${a.QUERY_PARAM_KEYS.WEBCODE}=${e}`,"getTournamentReportLink",0,e=>{let t=`/api${a.URIS.DOWNLOAD_TOURNAMENT_REPORT}`;return e?.divisionId&&(t+=`?${a.QUERY_PARAM_KEYS.DIVISION_ID}=${e.divisionId}`),e?.leagueId&&(t+=`${t.includes("?")?"&":"?"}${a.QUERY_PARAM_KEYS.LEAGUE_ID}=${e.leagueId}`),e?.tournamentId&&(t+=`${t.includes("?")?"&":"?"}${a.QUERY_PARAM_KEYS.TOURNAMENT_ID}=${e.tournamentId}`),e?.reportType&&(t+=`${t.includes("?")?"&":"?"}${a.QUERY_PARAM_KEYS.REPORT_TYPE}=${e.reportType}`),t},"isTournamentSelectedByParams",0,(e,a)=>(0,l.getAsSlug)(e.name)===a?.tournamentSlug||`${e.id}`===a?.tournamentId])},805315,e=>{"use strict";var a=e.i(391398),t=e.i(203828),l=e.i(853302),s=e.i(760814),r=e.i(818506),i=e.i(438999),n=e.i(271361),o=e.i(753002),d=e.i(150268),u=e.i(802906),c=e.i(243952);(0,s.default)(r.default).withConfig({displayName:"league-table.styles__Container",componentId:"sc-740bc4da-0"})` 16 17`;let g=(0,s.default)(i.default).withConfig({displayName:"league-table.styles__Row",componentId:"sc-740bc4da-1"})` 18 align-items:center; 19`,m=(0,s.default)(n.default).withConfig({displayName:"league-table.styles__Col",componentId:"sc-740bc4da-2"})` 20 21`,p=s.default.div.withConfig({displayName:"league-table.styles__BlockContainer",componentId:"sc-740bc4da-3"})` 22 23`,f=s.default.div.withConfig({displayName:"league-table.styles__LeagueHeaders",componentId:"sc-740bc4da-4"})` 24 ${e=>(0,c.padding)(`${e.padLeagueHeaders?`0 ${u.spacing.xxxl}px`:"0"}`)} 25 background:yellow; 26 color:black; 27 28 @media (max-width: 576px) { 29 ${e=>(0,c.padding)(`${e.padLeagueHeaders?`0 ${u.spacing.md}px`:"0"}`)} 30 } 31`,h=s.default.div.withConfig({displayName:"league-table.styles__LeagueDayHeader",componentId:"sc-740bc4da-5"})` 32 33`,_=s.default.h3.withConfig({displayName:"league-table.styles__LeagueDayHeaderTitle",componentId:"sc-740bc4da-6"})` 34 padding-bottom: 0; 35`,E=s.default.div.withConfig({displayName:"league-table.styles__LeagueHeader",componentId:"sc-740bc4da-7"})` 36 37`;s.default.div.withConfig({displayName:"league-table.styles__LeagueTableHeader",componentId:"sc-740bc4da-8"})` 38 39`;let y=s.default.h4.withConfig({displayName:"league-table.styles__LeagueHeaderTitle",componentId:"sc-740bc4da-9"})` 40 font-family:"Dharma Gothic M W01 ExBold It"; 41 ${(0,c.fontSize)(`${d.fontSizes.h3Lg}px`)} 42 letter-spacing:0; 43 font-size:2rem; 44 text-transform:uppercase; 45 padding-top:0.5em; 46`,x=s.default.div.withConfig({displayName:"league-table.styles__LeagueDivisionNoticeboardContainer",componentId:"sc-740bc4da-10"})` 47 .button { 48 ${(0,c.marginBottom)(`${u.spacing.md}px`)} 49 background-color: ${o.colours.bg.black}; 50 51 span { 52 color: ${o.colours.text.secondary}; 53 } 54 55 &:hover { 56 background-color: ${o.colours.bg.white}; 57 58 span { 59 color: ${o.colours.text.primary}; 60 } 61 } 62 } 63`,T=s.default.a.withConfig({displayName:"league-table.styles__LeagueDivisionNoticeboardDownloadButton",componentId:"sc-740bc4da-11"})` 64 ${(0,c.borderRadius)(`${u.spacing.xl}px`)} 65 color: ${o.colours.text.secondary}; 66 overflow: hidden; 67 68 &, 69 &:visited { 70 color: ${o.colours.text.secondary}; 71 } 72 73 &:hover, 74 &:visited:hover { 75 color: ${o.colours.text.primary}; 76 } 77`,b=s.default.div.withConfig({displayName:"league-table.styles__HeaderContainer",componentId:"sc-740bc4da-12"})` 78 ${(0,c.padding)(`0 ${u.spacing.xl}px 0 ${u.spacing.xxxl}px`)} 79 background-color: ${o.colours.bg.tableHeader}; 80 81 span{ 82 font-family:"Dharma Gothic M W01 ExBold It"; 83 font-size:2rem; 84 } 85 86 @media(max-width: 576px) { 87 ${(0,c.padding)(`0 ${u.spacing.md}px 0 ${u.spacing.md}px`)} 88 } 89`,I=s.default.div.withConfig({displayName:"league-table.styles__Header",componentId:"sc-740bc4da-13"})` 90 ${(0,c.padding)(`${u.spacing.sm}px 0`)} 91 text-transform: uppercase; 92 line-height: 1; 93 color: ${o.colours.text.primary}; 94`,R=(0,s.default)(g).withConfig({displayName:"league-table.styles__HeaderRow",componentId:"sc-740bc4da-14"})` 95 96`;s.default.h4.withConfig({displayName:"league-table.styles__Title",componentId:"sc-740bc4da-15"})` 97 98`;let L=s.default.div.withConfig({displayName:"league-table.styles__Body",componentId:"sc-740bc4da-16"})` 99 ${(0,c.margin)(`0 ${u.spacing.xl}px 0 ${u.spacing.xxxl}px`)} 100 ${(0,c.fontSize)(`${d.fontSizes.h4}px`)} 101 102 @media (max-width: 576px) { 103 ${(0,c.margin)(`0 ${u.spacing.md}px 0 ${u.spacing.md}px`)} 104 } 105`,C=s.default.div.withConfig({displayName:"league-table.styles__Footer",componentId:"sc-740bc4da-17"})` 106 107`;s.default.div.withConfig({displayName:"league-table.styles__CellInner",componentId:"sc-740bc4da-18"})` 108 109`;let N=s.default.span.withConfig({displayName:"league-table.styles__Value",componentId:"sc-740bc4da-19"})` 110 111`,S=(0,s.default)(m).withConfig({displayName:"league-table.styles__Cells",componentId:"sc-740bc4da-20"})` 112line-height:1; 113`;(0,s.default)(m).withConfig({displayName:"league-table.styles__CellsHeaderCol",componentId:"sc-740bc4da-21"})` 114 115`;let P=(0,s.default)(S).withConfig({displayName:"league-table.styles__CellsHeader",componentId:"sc-740bc4da-22"})` 116 align-items: center; 117 font-family: ${d.fonts.heading}; 118 ${(0,c.fontSize)(`${d.fontSizes.h3Md}px`)} 119`,A=(0,s.default)(m).withConfig({displayName:"league-table.styles__Cell",componentId:"sc-740bc4da-23"})` 120 text-align:center; 121 font-family: "Proxima N W01 Xbold", "fallback-font2",sans-serif; 122 @media (max-width:991px){ 123 padding:0; 124 &:nth-child(5), &:nth-child(6), &:nth-child(7){ 125 display:none; 126 } 127 &:nth-child(1){ 128 } 129 130 } 131`,D=(0,s.default)(A).withConfig({displayName:"league-table.styles__PositionTeam",componentId:"sc-740bc4da-24"})` 132 max-width: ${100/3}%; 133 display: flex; 134 text-align: left; 135 136 @media(max-width: 576px) { 137 max-width:55%; 138 139 140 141 ${(0,c.padding)(`0 ${u.spacing.sm}px`)} 142 } 143`,w=(0,s.default)(D).withConfig({displayName:"league-table.styles__PositionTeamHeader",componentId:"sc-740bc4da-25"})` 144 width: ${100/3}%; 145 align-items: center; 146 justify-content: flex-start; 147 font-family: ${d.fonts.heading}; 148 ${(0,c.fontSize)(`${d.fontSizes.h3Md}px`)} 149 line-height: 0.8; 150 151 @media(max-width: 576px) { 152 width: auto; 153 max-width: 100%; 154 } 155`,$=(0,s.default)(N).withConfig({displayName:"league-table.styles__TeamHeader",componentId:"sc-740bc4da-26"})` 156 flex-grow: 1; 157 text-align: ${e=>e.showOrdinalTableHeader?"center":"left"}; 158 159 160`,v=(0,s.default)(A).withConfig({displayName:"league-table.styles__Position",componentId:"sc-740bc4da-27"})` 161 min-width: 60px; 162 max-width: 60px; 163 font-family: ${d.fonts.heading}; 164 ${(0,c.fontSize)(`${d.fontSizes.h3Md}px`)} 165 font-weight: 600; 166 line-height: 0.85; 167 text-align: left; 168 display: block; 169 font-size:1.6rem; 170 171 &:after{ 172 content:"."; 173 } 174 175 @media (max-width: 567px) { 176 min-width: initial; 177 max-width: initial; 178 flex-grow: 0; 179 } 180`,U=(0,s.default)(A).withConfig({displayName:"league-table.styles__Team",componentId:"sc-740bc4da-28"})` 181 font-family: ${d.fonts.heading}; 182 line-height:1; 183 width:auto; 184 185 text-align: left; 186 text-transform: uppercase; 187 display: block; 188span{ 189 font-size:2rem; 190line-height:1; 191} 192 @media (max-width: 576px) { 193 flex-grow: 1; 194span{ 195 font-size:1.6rem; 196} 197 } 198`,G=(0,s.default)(A).withConfig({displayName:"league-table.styles__Played",componentId:"sc-740bc4da-29"})` 199 200`,j=(0,s.default)(A).withConfig({displayName:"league-table.styles__Wins",componentId:"sc-740bc4da-30"})` 201 202`,Y=(0,s.default)(A).withConfig({displayName:"league-table.styles__Draws",componentId:"sc-740bc4da-31"})` 203 204`,F=(0,s.default)(A).withConfig({displayName:"league-table.styles__Losses",componentId:"sc-740bc4da-32"})` 205 206`,O=(0,s.default)(A).withConfig({displayName:"league-table.styles__GoalsFor",componentId:"sc-740bc4da-33"})` 207 208`,M=(0,s.default)(A).withConfig({displayName:"league-table.styles__GoalsAgainst",componentId:"sc-740bc4da-34"})` 209 210`,H=(0,s.default)(A).withConfig({displayName:"league-table.styles__GoalDifference",componentId:"sc-740bc4da-35"})` 211 212`,B=(0,s.default)(A).withConfig({displayName:"league-table.styles__Points",componentId:"sc-740bc4da-36"})` 213 214`;(0,s.default)(A).withConfig({displayName:"league-table.styles__RecentFormTeamComparator",componentId:"sc-740bc4da-37"})` 215 min-width: 50%; 216 display: flex; 217 218 @media (max-width: 576px) { 219 display: block; 220 } 221`,(0,s.default)(A).withConfig({displayName:"league-table.styles__RecentForm",componentId:"sc-740bc4da-38"})` 222 223`,s.default.div.withConfig({displayName:"league-table.styles__RecentFormContainer",componentId:"sc-740bc4da-39"})` 224 ${(0,c.padding)(`${u.spacing.sm}px`)} 225`,(0,s.default)(A).withConfig({displayName:"league-table.styles__TeamComparator",componentId:"sc-740bc4da-40"})` 226 227`,s.default.div.withConfig({displayName:"league-table.styles__TeamComparatorContainer",componentId:"sc-740bc4da-41"})` 228 ${(0,c.padding)(`${u.spacing.sm}px`)} 229`;let k=s.default.div.withConfig({displayName:"league-table-row.styles__BlockContainer",componentId:"sc-5961aa07-0"})` 230 231`,W=s.default.div.withConfig({displayName:"league-table-row.styles__BlockContainerInner",componentId:"sc-5961aa07-1"})` 232 ${(0,c.padding)(`${u.spacing.md}px 0`)} 233 display: flex; 234 align-items: center; 235 border-bottom: ${e=>
235e.isLast?"none":`1px solid ${o.colours.ui.borderDark}`}; 236 237 @media(max-width: 567px) { 238 239 } 240`,K=({row:e,showOrdinalSuffix:t=!1,showRecentForm:s=!1,showTeamComparator:r=!1,padPosition:i=!0,isLast:n=!1})=>{if(!e)return null;let{vTeamId:o,position:d,name:u,played:c,won:m,drawn:p,lost:f,goalsFor:h,goalsAgainst:_,goalDifference:E,points:y}=e;return(0,a.jsx)(k,{className:`league-table-row teamId-${o}`,isLast:n,children:(0,a.jsxs)(W,{isLast:n,children:[(0,a.jsx)(D,{padPosition:i,className:"cells pos-team",children:(0,a.jsxs)(g,{children:[(0,a.jsx)(v,{className:"pos cell",children:(0,a.jsx)(N,{className:"value",children:`${d}${t?(0,l.getOrdinalSuffix)(d):""}`})}),(0,a.jsx)(U,{className:"team cell",children:(0,a.jsx)(N,{className:"value",children:u})})]})}),(0,a.jsx)(S,{className:"cells",children:(0,a.jsxs)(g,{children:[(0,a.jsx)(G,{className:"cell",children:(0,a.jsx)(N,{className:"value",children:c})}),(0,a.jsx)(j,{className:"cell",children:(0,a.jsx)(N,{className:"value",children:m})}),(0,a.jsx)(Y,{className:"cell",children:(0,a.jsx)(N,{className:"value",children:p})}),(0,a.jsx)(F,{className:"cell",children:(0,a.jsx)(N,{className:"value",children:f})}),(0,a.jsx)(O,{className:"cell",children:(0,a.jsx)(N,{className:"value",children:h})}),(0,a.jsx)(M,{className:"cell",children:(0,a.jsx)(N,{className:"value",children:_})}),(0,a.jsx)(H,{className:"cell",children:(0,a.jsx)(N,{className:"value",children:E})}),(0,a.jsx)(B,{className:"cell",children:(0,a.jsx)(N,{className:"value",children:y})})]})})]})})};var X=e.i(574331);e.s(["LeagueTable",0,({leagueDay:e=null,league:l=null,table:s=null,rows:r=[],showLeagueDayHeader:i=!0,showLeagueHeader:n=!0,showOrdinalTableHeader:o=!0,showRecentForm:d=!1,showTeamComparator:u=!1,showDivisionNoticeboardDownloadButton:c=!1,padLeagueHeaders:m=!1,padPosition:S=!0,padBody:A=!0})=>{if((0,t.useRouter)(),!s&&!r?.length)return null;let{name:D=null,dayOfWeek:U=null}=e||{},{leagueId:k=-1,leagueName:W=null,alternateLeagueName:z=null}=l||{},{id:Q=-1,name:V=null}=s||{};return(0,a.jsxs)(p,{className:"league-table",children:[i||n||c?(0,a.jsxs)(f,{padLeagueHeaders:m,className:"league-headers",children:[e&&i&&(0,a.jsx)(h,{className:"league-day-header",children:(0,a.jsx)(_,{className:"title",children:D})}),l&&n&&(0,a.jsx)(E,{className:"league-header",children:(0,a.jsx)(y,{className:"title",children:`${V}${z?` - ${z}`:""}`})}),c?(0,a.jsx)(x,{className:"noticeboard-container",children:(0,a.jsx)(T,{href:(0,X.getTournamentReportLink)({leagueId:k,divisionId:Q,reportType:"division-table"}),target:"_blank",className:"button download",onClick:e=>{if(Q<0||k<0)return void console.error(`Could not open League Table Division Noticeboard download link for lid: ${k} and did: ${Q}`)},children:"Download"})}):null]}):null,(0,a.jsx)(b,{className:"league-table-headers-container",children:(0,a.jsx)(I,{className:"league-table-headers",children:(0,a.jsxs)(R,{children:[(0,a.jsxs)(w,{padPosition:S,className:"pos-team-header cells-header",children:[o?(0,a.jsx)(v,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"#"})}):null,(0,a.jsx)($,{showOrdinalTableHeader:o,className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"Team"})})]}),(0,a.jsx)(P,{className:"cells cells-header",children:(0,a.jsxs)(g,{children:[(0,a.jsx)(G,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"P"})}),(0,a.jsx)(j,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"W"})}),(0,a.jsx)(Y,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"D"})}),(0,a.jsx)(F,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"L"})}),(0,a.jsx)(O,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"GF"})}),(0,a.jsx)(M,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"GA"})}),(0,a.jsx)(H,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"GD"})}),(0,a.jsx)(B,{className:"league-table-header",children:(0,a.jsx)(N,{className:"value",children:"PTS"})})]})})]})})}),(0,a.jsx)(L,{padBody:A,className:"league-table-body",children:r?.length&&r.map((e,t)=>(0,a.jsx)(K,{row:e,showRecentForm:d,showTeamComparator:u,padPosition:S,isLast:t===r.length-1},`item-${t}`))}),(0,a.jsx)(C,{})]})}],805315)},995458,147691,e=>{"use strict";var a=e.i(503316);let t={SUCCESS:"SUCCESS",WARNING:"WARNING",INFO:"INFO",DANGER:"DANGER",WHITE_BLACK:"WHITE_BLACK",GREY_BLACK:"GREY_BLACK"};e.s(["TYPES",0,t,"TYPE_BG_COLOURS",0,{SUCCESS:"#19aa5a",WARNING:"#eca900",INFO:"#00a5ec",DANGER:"#ec0027",WHITE_BLACK:"#ffffff",GREY_BLACK:"#a4a4a4"},"TYPE_TEXT_COLOURS",0,{SUCCESS:"#ffffff",WARNING:"#ffffff",INFO:"#ffffff",DANGER:"#ffffff",WHITE_BLACK:"#000000",GREY_BLACK:"#000000"}],147691);var l=e.i(523986);let s=(e,a)=>{if(!e)return null;let{leagueCupTeamTable:t}=e,{leagueCupTeamResults:l,teamName:s}=t,r=l?.length?l.map(e=>({...e,name:s})):[];return{leagueCup:a,leagueCupResultsTable:t,team:{name:s},teamResults:r}},r=(e,a,t)=>e?{teamId:e.teamID,teamName:e.teamName,row:e,branchId:t,fairPlayLeagueId:a}:null;e.s(["getFixtureResultTypeForPoints",0,e=>{switch(e){case 0:return a.FixtureResultType.LOSS;case 1:return a.FixtureResultType.DRAW;case 3:return a.FixtureResultType.WIN;default:return a.FixtureResultType.UNPLAYED}},"getFixtureResultTypeForTeamId",0,(e,t)=>{let{matchDate:s=null,team1:r=null,team1Score:i=-1,team2:n=null,team2Score:o=-1}=e||{},d=new Date(Date.now()),u=s?(0,l.default)(s):d;return e&&t&&r&&n?u>d?a.FixtureResultType.UNPLAYED:((e,t,l=!1)=>e===t?a.FixtureResultType.DRAW:e>t&&!l?a.FixtureResultType.WIN:a.FixtureResultType.LOSS)(i,o,r?.id!==t):a.FixtureResultType.NOT_APPLICABLE},"getFixtureResultTypeLabel",0,e=>(e?a.FixtureResultTypeLabels[e]:null)||null,"getLeagueDayForLeague",0,(e,a)=>{if(e&&a?.length){for(let t of a)if(t.leagues.filter(a=>a.leagueId===e.leagueId)?.length)return t}return null},"getLeagueTeamsFromFairPlayTable",0,(e,a)=>{if(!e?.fairPlayTeams?.length)return[];let t=[];for(let l of e.fairPlayTeams){let s=r(l,e.fairPlayLeagueId,a);
240s&&t.push(s)}return t},"getLeaguesFromLeagueDays",0,e=>{let a=[];if(!e?.length)return a;for(let t of e)t.leagues?.length&&(a=[...a,...t.leagues]);return a},"getRibbonTypeForResultType",0,e=>{if(e)switch(e){case a.FixtureResultType.WIN:return t.SUCCESS;case a.FixtureResultType.LOSS:return t.DANGER;case a.FixtureResultType.DRAW:return t.GREY_BLACK}return t.INFO},"sortFixtureGroupsByDate",0,e=>e?.length?e.sort((e,a)=>{let t=e?.matches?.length?(0,l.default)(e.matches[0].matchDate):new Date(Date.now()),s=a?.matches?.length?(0,l.default)(a.matches[0].matchDate):new Date(Date.now());return t<s?-1:+(t>s)}):e,"transformFairPlayLeagueTableRowToTeam",0,r,"transformLeagueCupTeamResultResponsesToGroups",0,(e=[],a)=>{if(!e?.length)return[];let t=[];for(let l of e){let e=s(l,a);e&&t.push(e)}return t}],995458)}]);
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.