PageSourceSearch

https://folsomfieldevents.com/_nuxt/Co-zLA7R2.js

js folsomfieldevents.com collected 2026-09-29 11:45:02 UTC 7,834 bytes, 1 lines download raw bytes

1import{n as e}from"./CU89Zi3L.js";import{cn as t,dn as n,fn as r,gn as i,hn as a,ln as o,mn as s,on as c,pn as l,sn as u,un as d}from"./BF2bkrIi.js";var f=class{fetch;resource=`/api/v2/game-center`;constructor({fetch:e}){this.fetch=e}async getLayout(e){return this.fetch(`${this.resource}/${e}/layout`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?o(e):null).catch(e=>(console.error(`[GameCenterRepo] getLayout() Request Failed`,e),null))}async getGameHero(e){return this.fetch(`${this.resource}/${e}/hero`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?u(e):null).catch(e=>(console.error(`[GameCenterRepo] getGameHero() Request Failed`,e),null))}async getGameGalleryInfo(e){return this.fetch(`${this.resource}/${e}/gallery`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?c(e):null).catch(e=>(console.error(`[GameCenterRepo] getGameGalleryInfo() Request Failed`,e),null))}async getStories(e){return this.fetch(`${this.resource}/${e}/stories`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?a(e):null).catch(e=>(console.error(`[GameCenterRepo] getStories() Request Failed`,e),null))}async getGameInfo(e){return this.fetch(`${this.resource}/${e}/game-info`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?t(e):null).catch(e=>(console.error(`[GameCenterRepo] getGameInfo() Request Failed`,e),null))}async getOpponentHistory(e){return this.fetch(`${this.resource}/${e}/opponent-history`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?r(e):null).catch(e=>(console.error(`[GameCenterRepo] getOpponentHistory() Request Failed`,e),null))}async getNextGame(e){return this.fetch(`${this.resource}/${e}/next-game`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?n(e):null).catch(e=>(console.error(`[GameCenterRepo] getNextGame() Request Failed`,e),null))}async getPromoGroups(e){return this.fetch(`${this.resource}/promo-group/${e}`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?.promoItems?.length?e.promoItems.map(e=>l(e)):null).catch(e=>(console.error(`[GameCenterRepo] getPromoGroups() Request Failed`,e),null))}async getLiveGames(){return this.fetch(`${this.resource}/games`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?.length?e.map(e=>d(e)):null).catch(e=>(console.error(`[GameCenterRepo] getLiveGames() Request Failed`,e),null))}async getSchools(){try{let e=await $fetch(`https://services.sidearmsports.com/services/globalopponentlookup.ashx`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}});return e?s(e):null}catch(e){return console.error(`[GameCenterRepo] getSchools() Request Failed`,e),null}}async getTeamColors(e){try{let t=await $fetch(`https://services.sidearmsports.com/services/sidearm_client_colors.ashx?id=${e}`,{timeout:5e3,onResponse:({response:e})=>{e.status===204&&(e._data=null)}});return t?i(t):null}catch(e){return console.error(`[GameCenterRepo] getTeamColors() Request Failed`,e),null}}},p=()=>`__liveGames__`,m=e(`game-center`,{state:()=>({layout:{},isLoadingLayout:{},stories:{},isLoadingStories:{},gameInfo:{},isLoadingGameInfo:{},opponentHistory:{},isLoadingOpponentHistory:{},nextGame:{},isLoadingNextGame:{},gameHero:{},gameLiveStats:{},promoGroups:{},isLoadingPromoGroups:{},liveGames:{},isLoadingLiveGames:{},gameGalleryInfo:{},teamColors:{},isLoadingTeamColors:{},schools:null,isLoadingSchools:!1}),actions:{clearAllData(){this.layout={},this.isLoadingLayout={},this.stories={},this.isLoadingStories={},this.gameInfo={},this.isLoadingGameInfo={},this.opponentHistory={},this.isLoadingOpponentHistory={},this.nextGame={},this.isLoadingNextGame={},this.gameHero={},this.gameLiveStats={},this.promoGroups={},this.isLoadingPromoGroups={},this.liveGames={},this.isLoadingLiveGames={},this.gameGalleryInfo={},this.teamColors={},this.isLoadingTeamColors={},this.schools=null,this.isLoadingSchools=!1,console.log(`Cleared all game center store data`)},async fetchLayout({gameId:e,fetch:t}){if(!(e in this.layout)){this.isLoadingLayout[e]=!0;let n=await new f({fetch:t}).getLayout(e);this.layout[e]=n,this.isLoadingLayout[e]=!1}},async fetchGameGalleryInfo({gameId:e,fetch:t}){if(!(e in this.gameGalleryInfo)){let n=await new f({fetch:t}).getGameGalleryInfo(e);this.gameGalleryInfo[e]=n}},async fetchStories({gameId:e,fetch:t}){if(!(e in this.stories)){this.isLoadingStories[e]=!0;let n=await new f({fetch:t}).getStories(e);this.stories[e]=n,this.isLoadingStories[e]=!1}},async fetchGameInfo({gameId:e,fetch:t}){if(!(e in this.gameInfo)){this.isLoadingGameInfo[e]=!0;let n=await new f({fetch:t}).getGameInfo(e);this.gameInfo[e]=n,this.isLoadingGameInfo[e]=!1}},async fetchGameHero({gameId:e,fetch:t}){if(!(e in this.gameHero)){let n=await new f({fetch:t}).getGameHero(e);this.gameHero[e]=n}},async fetchOpponentHistory({gameId:e,fetch:t}){if(!(e in this.opponentHistory)){this.isLoadingOpponentHistory[e]=!0;let n=await new f({fetch:t}).getOpponentHistory(e);this.opponentHistory[e]=n,this.isLoadingOpponentHistory[e]=!1}
1},async fetchNextGame({gameId:e,fetch:t}){if(!(e in this.nextGame)){this.isLoadingNextGame[e]=!0;let n=await new f({fetch:t}).getNextGame(e);this.nextGame[e]=n,this.isLoadingNextGame[e]=!1}},async fetchPromoGroups({promoGroupId:e,fetch:t}){if(!(e in this.promoGroups)){this.isLoadingPromoGroups[e]=!0;let n=await new f({fetch:t}).getPromoGroups(e);this.promoGroups[e]=n,this.isLoadingPromoGroups[e]=!1}},async fetchLiveGames({fetch:e}){let t=p();t in this.liveGames||(this.isLoadingLiveGames[t]=!0);let n=await new f({fetch:e}).getLiveGames();this.liveGames[t]=n,t in this.liveGames&&(this.isLoadingLiveGames[t]=!1)},async fetchTeamColors({clientId:e,fetch:t}){if(!(e in this.teamColors)){this.isLoadingTeamColors[e]=!0;let n=await new f({fetch:t}).getTeamColors(e);this.teamColors[e]=n,this.isLoadingTeamColors[e]=!1}},async fetchSchools({fetch:e}){if(!this.schools){this.isLoadingSchools=!0;let t=await new f({fetch:e}).getSchools();this.schools=t,this.isLoadingSchools=!1}}},getters:{getLayout:e=>t=>t in e.layout&&e.layout[t]?e.layout[t]:null,getGameHero:e=>t=>e.gameHero[t]??null,getGameGalleryInfo:e=>t=>e.gameGalleryInfo[t]??null,getStories:e=>t=>t in e.stories&&e.stories[t]?e.stories[t]:null,getLoadingStoriesFlag:e=>t=>t in e.isLoadingStories?e.isLoadingStories[t]??!1:!1,getGameInfo:e=>t=>t in e.gameInfo&&e.gameInfo[t]?e.gameInfo[t]:null,getLoadingGameInfoFlag:e=>t=>t in e.isLoadingGameInfo?e.isLoadingGameInfo[t]??!1:!1,getOpponentHistory:e=>t=>t in e.opponentHistory&&e.opponentHistory[t]?e.opponentHistory[t]:null,getLoadingOpponentHistoryFlag:e=>t=>t in e.isLoadingOpponentHistory?e.isLoadingOpponentHistory[t]??!1:!1,getNextGame:e=>t=>t in e.nextGame&&e.nextGame[t]?e.nextGame[t]:null,getLoadingNextGameFlag:e=>t=>t in e.isLoadingNextGame?e.isLoadingNextGame[t]??!1:!1,getPromoGroups:e=>t=>t in e.promoGroups&&e.promoGroups[t]?e.promoGroups[t]:null,getLoadingPromoGroupsFlag:e=>t=>t in e.isLoadingPromoGroups?e.isLoadingPromoGroups[t]??!1:!1,getLiveGames:e=>{let t=p();return t in e.liveGames&&e.liveGames[t]?e.liveGames[t]:null},liveGamesAvailable(e){let t=p();return!!(t in e.liveGames&&e.liveGames[t]&&e.liveGames[t]?.length)},getLiveGameById:e=>t=>{let n=p();if(n in e.liveGames&&e.liveGames[n]?.length)return e.liveGames[n]?.find(e=>e.id===t)},getLoadingLiveGamesFlag:e=>{let t=p();return t in e.isLoadingLiveGames?e.isLoadingLiveGames[t]??!1:!1},getTeamColors:e=>t=>t in e.teamColors&&e.teamColors[t]?e.teamColors[t]:null,getLoadingTeamColorsFlag:e=>t=>t in e.isLoadingTeamColors?e.isLoadingTeamColors[t]??!1:!1,getSchools:e=>e.schools,getLoadingSchoolsFlag:e=>e.isLoadingSchools??!1}});export{m as t};

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.