PageSourceSearch

https://gwusports.com/_nuxt/zSNXzeCh.js

js gwusports.com collected 2026-10-02 08:04:42 UTC 3,601 bytes, 1 lines download raw bytes

1import{n as e}from"./CU89Zi3L.js";import{nt as t,st as n}from"./DGJ9b2SS.js";import{Mt as r,jt as i}from"./CmSXiIdi.js";var a=class{fetch;constructor({fetch:e}){this.fetch=e}async getLatestMoments(e){let t=e.id?`sportIdId=${e.id}&`:``;return this.fetch(`/api/v2/WePlayed/latest?${t}$pageIndex=${e.page}&$pageSize=${e.count}`).then(e=>e?i(e):null).catch(e=>(console.error(`[WePlayedRepo] getLatestMoments() Request error caught `,e),null))}async getPlayerMoments(e){return this.fetch(`/api/v2/WePlayed/player?playerId=${e.id}&$pageIndex=${e.page}&$pageSize=${e.count}`).then(e=>e?i(e):null).catch(e=>(console.error(`[WePlayedRepo] getPlayerMoments() Request error caught `,e),null))}async getSportMoments(e){return this.fetch(`/api/v2/WePlayed/sport?sportId=${e.id}&$pageIndex=${e.page}&$pageSize=${e.count}`).then(e=>e?i(e):null).catch(e=>(console.error(`[WePlayedRepo] getSportMoments() Request error caught `,e),null))}async getGameMoments(e){return this.fetch(`/api/v2/WePlayed/game?gameId=${e.id}&$pageIndex=${e.page}&$pageSize=${e.count}`).then(e=>e?i(e):null).catch(e=>(console.error(`[WePlayedRepo] getGameMoments() Request error caught `,e),null))}async getTrendingMoments(e){return this.fetch(`/api/v2/WePlayed/trending?sportId=${e.id}&$pageIndex=${e.page}&$pageSize=${e.count}`).then(e=>e?i(e):null).catch(e=>(console.error(`[WePlayedRepo] getTrendingMoments() Request error caught `,e),null))}async getWidgetSetup(e){return $fetch(`https://cached-api.weplayed.com/api/viewing/v0/widget/?page=${e}`).then(e=>e?r(e):null).catch(e=>(console.error(`[WePlayedRepo] getWidgetSetup() Request error caught `,e),null))}},o=e(`wePlayed`,{state:()=>({playerMoments:{},sportMoments:{},gameMoments:{},trendingMoments:{},latestMoments:{},widgetSetup:{}}),actions:{async fetchLatestMoments({payload:e,fetch:t}){let n=await new a({fetch:t}).getLatestMoments(e),r=e.id?.toString()??`0`;n?.page&&n?.items?.length&&n.page>1&&r in this.latestMoments&&(n.items=[...this.latestMoments[r]?.items??[],...n.items]),this.latestMoments[r]=n},async fetchPlayerMoments({payload:e,fetch:t}){let n=await new a({fetch:t}).getPlayerMoments(e),r=e.id?.toString()??`0`;n?.page&&n?.items?.length&&n.page>1&&r in this.playerMoments&&(n.items=[...this.playerMoments[r]?.items??[],...n.items]),this.playerMoments[r]=n},async fetchSportMoments({payload:e,fetch:t}){let n=await new a({fetch:t}).getSportMoments(e),r=e.id?.toString()??`0`;n?.page&&n?.items?.length&&n.page>1&&r in this.sportMoments&&(n.items=[...this.sportMoments[r]?.items??[],...n.items]),this.sportMoments[r]=n},async fetchGameMoments({payload:e,fetch:t}){let n=await new a({fetch:t}).getGameMoments(e),r=e.id?.toString()??`0`;n?.page&&n?.items?.length&&n.page>1&&r in this.gameMoments&&(n.items=[...this.gameMoments[r]?.items??[],...n.items]),this.gameMoments[r]=n},async fetchTrendingMoments({payload:e,fetch:t}){let n=await new a({fetch:t}).getTrendingMoments(e),r=e.id?.toString()??`0`;n?.page&&n?.items?.length&&n.page>1&&r in this.trendingMoments&&(n.items=[...this.trendingMoments[r]?.items??[],...n.items]),this.trendingMoments[r]=n},async fetchWidgetSetup({payload:e,fetch:r}){let i=t(e);try{if(!(i in this.widgetSetup)){let t=await new a({fetch:r}).getWidgetSetup(e);t&&(this.widgetSetup[i]=t)}}catch(e){n.error(`WePlayedModule`,e)}}},getters:{getPlayerMoments:e=>t=>e.playerMoments[t],getSportMoments:e=>t=>e.sportMoments[t],getGameMoments:e=>t=>e.gameMoments[t],getTrendingMoments:e=>t=>e.trendingMoments[t],getLatestMoments:e=>t=>e.latestMoments[t],getWidgetSetup:e=>n=>{let r=t(n);return r in e.widgetSetup?e.widgetSetup[r]:null}}});export{o 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.