PageSourceSearch

https://unhwildcats.com/_nuxt/DvyXHYjS2.js

js unhwildcats.com collected 2026-10-02 05:33:01 UTC 3,700 bytes, 1 lines download raw bytes

1import{nt as e,w as t,wt as n,zt as r}from"./BaBhFZm2.js";import{n as i}from"./CU89Zi3L.js";import{t as a}from"./oQPVSlJP.js";import{nt as o}from"./DGJ9b2SS.js";import{I as s,Pt as c,t as l}from"./LIghdAs5.js";var u=e=>{let t=`props`in e?e.props:e;return{sportId:`sport_id`in t?t.sport_id==`0`?void 0:t.sport_id:`sportId`in t?t.sportId:void 0,locationIndicator:`extra`in t&&t.extra?.location_indicator?t.extra.location_indicator:`locationIndicator`in t?t.locationIndicator:void 0,gameId:`extra`in t&&t.extra?.game_id?t.extra.game_id:`gameId`in t?t.gameId:void 0,spotLight:`extra`in t&&t.extra?.spotlight?t.extra.spotlight:`spotLight`in t?t.spotLight:void 0,streamingProvider:`extra`in t&&t.extra?.streaming_provider?t.extra.streaming_provider:`streamingProvider`in t?t.streamingProvider:void 0,ticketedOnly:`ticketedOnly`in t?t.ticketedOnly:void 0,withCoverageOnly:`withCoverageOnly`in t?t.withCoverageOnly:void 0,groupedByDates:`groupedByDates`in t?t.groupedByDates:void 0,startDate:`startDate`in t?t.startDate:void 0,endDate:`endDate`in t?t.endDate:void 0,pageIndex:`pageIndex`in t?t.pageIndex:void 0,pageSize:`pageSize`in t?t.pageSize:void 0}},d=class{fetch;resource=`/api/v2.1/EventsResults/upcoming`;constructor({fetch:e}){this.fetch=e}async get(e){let t=u(e),n=`props`in e&&`start`in e.props?e.props.start:void 0,r=`props`in e&&`count`in e.props?e.props.count:void 0,i;return(n||r)&&(i=new l(n,r),t.pageIndex=i.pageIndex,t.pageSize=i.pageSize),this.fetch(this.resource,{params:t}).then(e=>{if(!e)return[];let t=e.items?.map(e=>c(e));return i?i.getData(t):t}).catch(e=>(console.error(`[EventRepo] get() Request error caught`,e),[]))}},f=class{fetch;resource=`/api/v2/LiveStats`;constructor({fetch:e}){this.fetch=e}async getLiveStats(){return this.fetch(this.resource,{timeout:5e3}).then(e=>s(e?.Games??[])).catch(e=>(console.error(`[LiveStatsRepo] getLiveStats() Request error failed`,e),null))}async getGameLiveStats(e){return this.fetch(`${this.resource}/details`,{params:{gameId:e},timeout:5e3}).then(e=>e).catch(e=>(console.error(`[LiveStatsRepo] getGameLiveStats() Request error failed`,e),null))}},p=i(`live-stats`,{state:()=>({liveStats:null,detailedLiveStats:{},isLoading:!1}),actions:{async fetchLiveStats({fetch:e}){if(!this?.liveStats){let t=await new f({fetch:e}).getLiveStats();this.liveStats=t}},async fetchDetailedLiveStats({gameId:e,fetch:t}){let n=o(`gameId_${e}`);if(!(n in this.detailedLiveStats)){let r=await new f({fetch:t}).getGameLiveStats(e);this.detailedLiveStats[n]=r}}},getters:{getLiveStats(e){return e.liveStats},getLoadingFlag(e){return e.isLoading},statsAvailable(e){return!!(e.liveStats&&Object.keys(e.liveStats)?.length)},getLiveStatsByGameId:e=>t=>{if(e.liveStats&&t in e.liveStats&&e.liveStats[t]&&e.liveStats[t]?.HasStarted&&!e.liveStats[t]?.IsComplete)return e.liveStats[t]},getDetailedLiveStatsByGameId:e=>t=>{let n=o(`gameId_${t}`);return n in e.detailedLiveStats?e.detailedLiveStats[n]:null}}}),m=(i,o,s,c)=>{let l=a(),u={abbreviation:`All`,facebook:null,gender:null,global_sport_id:null,global_sport_shortname:null,global_sport_name_slug:null,id:0,instagram:null,non_sport:!1,pinterest:null,short_title:`All`,shortname:`all`,tickets:null,title:i.defaultSportTitle||`Choose Sport`,twitter:null,url:null,youtube:null},d=r(Object.assign({},u)),f=t(()=>{let e=l.getRealSports;return e&&e.length?[Object.assign({},u),...e]:[]}),p=e=>{if(d.value&&e&&e.target){let t=Number.parseInt(e.target.value);m(t),o.value=t,s(c)}},m=e=>{let t=f.value.find(t=>t.id==e);t?d.value=Object.assign({},t):d.value=Object.assign({},f.value[0])};return e(async()=>{i.sportId&&m(i.sportId),n(()=>i.sportId,m)}),{sports:f,selectedSport:d,updateSport:p}};export{p as n,d as r,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.