PageSourceSearch

https://floridagators.com/_nuxt/DJ0x5a6r2.js

js floridagators.com collected 2026-10-02 03:46:20 UTC 8,666 bytes, 1 lines download raw bytes

1import{n as e}from"./CU89Zi3L.js";import{nt as t}from"./DGJ9b2SS.js";import{C as n,En as r,F as i,I as a,Jn as o,Kn as s,Ln as c,Nt as l,Yn as u,c as d,h as f,jt as p,m,qn as h,vt as g,x as _}from"./1wMlAD5r.js";import{t as v}from"./BlgvENqH.js";import{t as y}from"./D4jAZI6Q.js";var b=e=>{let{props:t}=e,{pageSize:n}=d(t.count,t.start),r=`extra`in t?t.extra:void 0,i={pageSize:n,sportId:t.sport_id,featured:r?.featured,writerId:r?.writer_id};return e.after&&(i.after=e.after),{params:i}},x=e=>e.storyId?`/api/v2.1/stories/${e.storyId}/next?sportId=${e.sportId}`:e.hidden?`/api/v2/Hidden/stories/${e.date}/${e.storySlug}?t=${Date.now()}`:`/api/v2.1/stories/${e.date}/${e.storySlug}`,S=class{fetch;resource=`/api/v2.1/stories`;constructor({fetch:e}){this.fetch=e}async get(e){let{params:t}=b(e),n=e?.customCdnIdentifier??``,r=e.bucket??``;return this.fetch(this.resource,{params:t}).then(e=>e?{stories:e.items.map(e=>s(e,n,r)),after:e.after??void 0}:{stories:[],after:void 0}).catch(e=>(console.error(`[StoryRepo] get() Mapping Failed`,e),{stories:[],after:void 0}))}async getStoryContent(e){let t=x(e);return this.fetch(t,{onResponse:({response:e})=>{e.status===204&&(e._data=null)}}).then(e=>e?h(e):null).catch(e=>(console.error(`[StoryRepo] getStoryContent() Request Failed`,e),null))}async getStoryGames(e){return this.fetch(`${this.resource}/${e.storyId}/games`).then(e=>e?.map(e=>c(e))??[]).catch(e=>(console.error(`Request Failed`,e),[]))}async getStoryNextGame(e){return this.fetch(`${this.resource}/${e}/next-game`).then(e=>e?o(e):null).catch(e=>(console.error(`[StoryRepo] getStoryNextGame() Request Failed`,e),null))}async getSettings(){return this.fetch(`${this.resource}/settings`).then(e=>e?u(e):null).catch(e=>(console.error(`[StoryRepo] getSettings() Request Failed`,e),null))}},C=class{fetch;url=`/api/v2/Stats`;allowedSports=[`baseball`,`basketball`,`field-hockey`,`football`,`hockey`,`lacrosse`,`softball`,`soccer`,`volleyball`,`wpolo`];constructor({fetch:e}){this.fetch=e}async get({payload:e}){return this.allowedSports.includes(e.sportShortName)?this.fetch(`${this.url}/${e.sportShortName}/game-leaders`,{params:{storyId:e.storyId}}).then(t=>{if(!t.length)return[];switch(e.sportShortName){case`baseball`:case`softball`:return m(t);case`basketball`:return f(t);case`football`:return n(t);case`field-hockey`:return _(t);case`hockey`:return i(t);case`lacrosse`:return a(t);case`soccer`:return g(t);case`volleyball`:return p(t);case`wpolo`:return l(t);default:return t??[]}}).catch(e=>(console.error(`[GameLeadersRepo] get() error`,e),[])):(console.warn(`There is not endpoint for the sport's shortname given: ${e.sportShortName}`),[])}},w=class{fetch;url=`/api/v2/Stats`;constructor({fetch:e}){this.fetch=e}async getGamesTeamsStats(e){return this.fetch(`${this.url}/${e.sport}/game-teams`,{params:{storyId:e.storyId,gameId:e.gameId}}).then(t=>t&&t.length?t.map(t=>r({data:t,sport:e?.sport??``})):[]).catch(e=>(console.error(`[GamesTeamsStatsRepo] getGamesTeamsStats() error`,e),null))}},T=e(`story`,{state:()=>({stories:{},preloadedStories:{},paginationCursor:{},basePageSize:{},isLoadingMore:{},isLoading:{},moreToLoad:{},storyContent:{},storyGames:{},isLoadingStoryGames:!1,storyGameLeaders:{},isLoadingStoryGameLeaders:!1,storyGamesTeamsStats:{},isLoadingStoryGamesTeamsStats:{},isStoryContentUnsafeHtml:{},storyNextGame:{},isLoadingStoryNextGame:!0,storyContentLoading:{},nextStory:null,storySettings:null,defaultSportTemplate:null,preloadedTemplates:{}}),actions:{async fetchStories(e){let{fetch:t,...n}=e,{hash:r,props:i}=n;if(r in this.preloadedStories)return;this.isLoading[r]=!0,this.paginationCursor[r]={after:void 0},this.basePageSize[r]={count:i.count??0,start:i.start??0},this.moreToLoad[r]=!0;let a=y().bucket,o=v().getGoogle360Settings?.customCdnIdentifier??``,s={...e,...this.paginationCursor[r],customCdnIdentifier:o,bucket:a};try{let e=await new S({fetch:t}).get(s);this.preloadedStories[r]=e.stories??[],this.paginationCursor[r]={after:e.after??void 0};let n=i.count??10,a=i.start??0,o=n+a;this.stories[r]=this.preloadedStories[r]?.slice(a,o)??[],(!e.stories?.length||!e.after)&&(this.moreToLoad[r]=!1),e.stories?.length&&e.stories.forEac
1h(e=>{this.setPreloadedTemplate({url:e.url,type:e.type,contentTemplate:e.content_template})})}finally{this.isLoading[r]=!1}},async fetchMoreStories(e){let{fetch:t,...n}=e,{hash:r,props:i}=n,a=(i.count??10)+(i.start??0),o=this.preloadedStories[r]?.length??0,s=this.basePageSize[r]??{count:i.count??0,start:i.start??0};if(o>=a){this.stories[r]=this.preloadedStories[r]?.slice(s.start,a)??[];return}let c=this.paginationCursor[r];if(!c?.after){this.moreToLoad[r]=!1;return}let l=y().bucket,u=v().getGoogle360Settings?.customCdnIdentifier??``;this.isLoadingMore[r]=!0;try{this.preloadedStories[r]||(this.preloadedStories[r]=[]);let n=c.after;for(;this.preloadedStories[r].length<a&&n;){let a={...e,props:{...i,count:s.count,start:s.start},after:n,customCdnIdentifier:u,bucket:l},o=await new S({fetch:t}).get(a),c=o.stories??[],d=o.after??void 0;if(this.preloadedStories[r].push(...c),this.paginationCursor[r]={after:d},c.forEach(e=>{this.setPreloadedTemplate({url:e.url,type:e.type,contentTemplate:e.content_template})}),!c.length||!d||d===n){this.moreToLoad[r]=!1;break}n=d}this.stories[r]=this.preloadedStories[r]?.slice(s.start,a)??[]}finally{this.isLoadingMore[r]=!1}},async fetchStoryContent({payload:e,fetch:n}){let r=t(e);if(!(r in this.storyContent)){this.storyContentLoading[r]=!0;let t=await new S({fetch:n}).getStoryContent(e);this.storyContent[r]=t,this.storyContentLoading[r]=!1}},async fetchStoryGames(e){let{fetch:n,...r}=e,i=t(r);if(!(i in this.storyGames)){this.isLoadingStoryGames=!0;let e=await new S({fetch:n}).getStoryGames(r);this.storyGames[i]=e,this.isLoadingStoryGames=!1}},async fetchStoryGameLeaders({payload:e,fetch:n}){let r=t(e);if(!(r in this.storyGameLeaders)){this.isLoadingStoryGameLeaders=!0;let t=await new C({fetch:n}).get({payload:e});this.storyGameLeaders[r]=t,this.isLoadingStoryGameLeaders=!1}},async fetchStoryGamesTeamsStats({payload:e,fetch:n}){let r=t(e);if(!(r in this.storyGamesTeamsStats)){this.isLoadingStoryGamesTeamsStats[r]=!0;let t=await new w({fetch:n}).getGamesTeamsStats(e);this.storyGamesTeamsStats[r]=t,this.isLoadingStoryGamesTeamsStats[r]=!1}},async fetchStoryNextGame({payload:e,fetch:n}){let r=t(e);if(!(r in this.storyNextGame)){this.isLoadingStoryNextGame=!0;let t=await new S({fetch:n}).getStoryNextGame(e);this.storyNextGame[r]=t,this.isLoadingStoryNextGame=!1}},async fetchSettings({fetch:e}){if(!this.storySettings){let t=await new S({fetch:e}).getSettings();this.storySettings=t}},setNextStory(e){this.nextStory=e},setStoryBodyContent(e,n){let r=t(e);r in this.storyContent&&this.storyContent[r]?.content&&n&&n?.length&&(this.storyContent[r].content=n)},setStoryIsUnsafeHtml(e,n){let r=t(e);this.isStoryContentUnsafeHtml[r]=n},setDefaultSportTemplate(e){(!this.defaultSportTemplate&&e||this.defaultSportTemplate&&!e||this.defaultSportTemplate!==e)&&(this.defaultSportTemplate=e)},setPreloadedTemplate(e){!(e.url in this.preloadedTemplates)&&e.contentTemplate&&(this.preloadedTemplates[e.url]={type:e.type,contentTemplate:e.contentTemplate})}},getters:{getStories:e=>t=>{let n=t;return n in e.stories&&e.stories[n]?e.stories[n]:[]},getLoadingMoreFlag:e=>t=>t in e.isLoadingMore?e.isLoadingMore[t]??!1:!1,getLoadingFlag:e=>t=>t in e.isLoading?e.isLoading[t]??!1:!1,getMoreToLoad:e=>t=>t in e.moreToLoad?e.moreToLoad[t]??!0:!0,getStoryContent:e=>n=>{let r=t(n);return r in e.storyContent?e.storyContent[r]??null:null},getContentLoadingFlag:e=>n=>{let r=t(n);return r in e.storyContentLoading?e.storyContentLoading[r]??!1:!1},getIsStoryContentUnsafeHtml:e=>n=>{let r=t(n);return r in e.isStoryContentUnsafeHtml?e.isStoryContentUnsafeHtml[r]??!1:!1},getStoryGames:e=>n=>{let r=t(n);return r in e.storyGames?e.storyGames[r]:[]},getLoadingFlagForStoryGameLeaders:e=>e.isLoadingStoryGameLeaders,getStoryGameLeaders:e=>n=>{let r=t(n);return r in e.storyGameLeaders?e.storyGameLeaders[r]:[]},getLoadingFlagForStoryGamesTeamsStats:e=>n=>{let r=t(n);return r in e.isLoadingStoryGamesTeamsStats?e.isLoadingStoryGamesTeamsStats[r]??!1:!1},getStoryGamesTeamsStats:e=>n=>{let r=t(n);return r in e.storyGamesTeamsStats?e.storyGamesTeamsStats[r]??null:null}
1,getLoadingFlagForStoryNextGame:e=>e.isLoadingStoryNextGame,getStoryNextGame:e=>n=>{let r=t(n);return r in e.storyNextGame?e.storyNextGame[r]:null},getSettings(e){return e.storySettings},getNextStory(e){return e.nextStory},getDefaultSportTemplate(e){return e.defaultSportTemplate},getPreloadedTemplateByUrl:e=>t=>t in e.preloadedTemplates?e.preloadedTemplates[t]:null}});export{T 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.