PageSourceSearch

https://siusalukis.com/_nuxt/oQPVSlJP.js

js siusalukis.com collected 2026-10-02 04:49:39 UTC 1,837 bytes, 1 lines download raw bytes

1import{n as e}from"./CU89Zi3L.js";function t(e){return{abbreviation:e.abbrev,facebook:e.facebookPage||null,gender:e.globalSportGender||null,global_sport_id:e.globalSportId,global_sport_shortname:e.globalSportShortName??null,global_sport_name_slug:e.globalSportNameSlug,id:e.id,instagram:e.instagramName||null,non_sport:e.nonSport||!1,pinterest:e.pinterestName||null,shortname:e.shortName,title:e.title,tickets:e.ticketsLink||null,twitter:e.twitterName||null,youtube:e.youtubeName||null,rosterId:e.rosterId||void 0,scheduleId:e.scheduleId||void 0,displayOpponentHistory:e.displayOpponentHistory||!1,short_title:null,url:null}}var n=class{fetch;resource=`/api/v2/Sports`;constructor({fetch:e}){this.fetch=e}async get(){return this.fetch(this.resource).then(e=>e?e.map(e=>t(e)):[]).catch(e=>(console.error(`[SportRepo] get() mapping Failed`,e),[]))}},r=e(`sports`,{state:()=>({sports:[],currentSport:void 0}),actions:{async fetchSports({fetch:e}){if(this.sports.length===0){let t=await new n({fetch:e}).get();this.sports=t}},setCurrentSport(e){(!this.currentSport&&e||this.currentSport&&!e||this.currentSport?.id!==e?.id)&&(this.currentSport=e)},setCurrentSportById(e){let t=this.sports?.find(t=>t.id===e)??void 0;this.setCurrentSport(t)}},getters:{getSports:e=>e.sports,getRealSports:e=>e.sports.filter(e=>!e.non_sport),getSportById:e=>t=>e.sports.find(e=>e.id===t),getCurrentSport:e=>e.currentSport,getSportByGlobalSlug:e=>t=>e.sports.find(e=>e.global_sport_name_slug?.length&&e.global_sport_name_slug===t),getSportByShortName:e=>t=>e.sports.find(e=>e.shortname?.length&&e.shortname===t),getSportByGlobalSlugOrShortname(){return e=>{let t=this.getSportByGlobalSlug(e);return t||=this.getSportByShortName(e),t}},getRealSportsSortedByTitle(){return this.getRealSports?.sort((e,t)=>e.title&&t.title&&e.title>t.title?1:-1)}}});export{r 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.