PageSourceSearch

https://www.ntfc.co.uk/_nuxt/C1vjThGM.js

js ntfc.co.uk collected 2026-09-24 22:31:48 UTC 1,659 bytes, 1 lines download raw bytes

1import{A as u,z as y,G as b,k as f,C as g}from"./usx7zruX.js";const C=u("club",()=>{const{$gc:i}=y(),a=f(),r=a.public.club.sport,p=a.public.club.features.multiClub?"multiClub":r,s=g({clubType:p,seasons:[],competitions:[],teams:[],promises:{seasons:null,competitions:null,teams:null}}),c=async()=>s.clubType!=="multiClub"?[]:(s.promises.seasons||(s.promises.seasons=new Promise(o=>{(async()=>{try{if(s.clubType!=="multiClub")return void o([]);const e=await i()[s.clubType].web().getSeasons();s.seasons=e,o(e)}catch(e){console.error("Error fetching seasons:",e),o([])}finally{s.promises.seasons=null}})()})),s.promises.seasons),l=async()=>s.clubType!=="multiClub"?[]:(s.promises.competitions||(s.promises.competitions=new Promise(o=>{(async()=>{try{if(s.clubType!=="multiClub")return void o([]);const e=await i()[s.clubType].web().getCompetitions();s.competitions=e,o(e)}catch(e){console.error("Error fetching competitions:",e),o([])}finally{s.promises.competitions=null}})()})),s.promises.competitions),m=async(o,e)=>(s.promises.teams=new Promise(n=>{(async()=>{try{if(s.clubType!=="multiClub")return void n([]);const t=await i()[s.clubType].web().getTeams({page:{}},o&&e?{seasonID:o,competitionID:e}:void 0);s.teams=t,n(t)}catch(t){console.error("Error fetching teams:",t),n([])}finally{s.promises.teams=null}})()}),s.promises.teams);return{...b(s),fetchSeasons:c,fetchCompetitions:l,fetchTeams:m,getSeasons:async()=>(s.seasons.length===0&&await c(),s.seasons),getCompetitions:async()=>(s.competitions.length===0&&await l(),s.competitions),getTeams:async(o,e)=>await m(o,e),getCompetitionById:o=>s.competitions.find(e=>e.competitionID===o)}});export{C as u};

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.