PageSourceSearch

https://www.casino.us/_nuxt/BgWJYXWU.js

js casino.us collected 2026-09-25 20:13:09 UTC 6,567 bytes, 1 lines download raw bytes

1import{f,J as i}from"./C_VzGqEg.js";import{l as M,t as v}from"./NnXrcQGe.js";async function c(e,t=!0){if(!e?.length)return[];const s=t?"games":"providers";return Promise.all(e.map(async r=>{if(!r.name)return{...r,supplement:null};const a=await M(`${s}/${v(r.name)}`);return{...r,supplement:a}}))}const F=e=>{const t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")},C=f("arcade",{state:()=>({useLocale:"en-US",filteringMetadata:{},themes:[],features:[],providers:[],currentProvider:null,partnersToplistWithGames:[],liveDealerTokenData:{},mostPopularGames:[],modalGame:{open:!1,game:{},partner:{}},modalSearch:{open:!1,searchInput:""},modalFilters:{open:!1},globalGames:[],currentFilters:{gameTypes:[]},games:[],realMoneyWins:[],totalGames:0,gamesByType:{},gameById:{},jackpotGames:[],jackpotGamesHotCold:[],jackpotGameData:[]}),getters:{getMostPopularGames:e=>e.mostPopularGames,gameTypesArray:e=>{const t=e.filteringMetadata.gameTypes||{};return Object.keys(t).length?Object.keys(t).map(s=>({id:s,name:t[s]})):[]},providerById:e=>t=>e.providers.find(s=>s.id===t)||null,modalGameData:e=>e.modalGame,modalSearchData:e=>e.modalSearch,modalFiltersData:e=>e.modalFilters,getProviderById:e=>t=>e.providers.find(s=>s.id===t),getFilterByName:e=>t=>e.filteringMetadata[t]||{},totalGamesFormated:e=>(Math.floor(e.totalGames/1e3)*1e3).toLocaleString(e.useLocale),getGamesByType:e=>t=>e.gamesByType[t],currentPageGame:e=>e.gameById,jackpotGame:e=>e.jackpotGameData[0]},actions:{setUseLocale(e){this.useLocale=e},setArcadeMetaData(e){this.filteringMetadata=e},setArcadeThemes(e){this.themes=e},setArcadeFeatures(e){this.features=e},setProviders(e){this.providers=e},setCurrentProvider(e){this.currentProvider=this.providers?.find(t=>t.id===e)??null},setOpenModalGame(e){this.modalGame.game=e?.game||{},"partner"in e&&(this.modalGame.partner=e?.partner||{}),this.modalGame.open=!0},setOpenModalSearch(){this.modalSearch.open=!0},setOpenModalFilters(){this.modalFilters.open=!0},setMostPopularGames(e){this.mostPopularGames=e},setCloseModalGame(){this.modalGame.open=!1,this.modalGame.game={},this.modalGame.partner={}},setCloseModalSearch(){this.modalSearch.open=!1,this.modalSearch.globalGames=[]},setCloseModalFilters(){this.modalFilters.open=!1},setGames(e){this.games=e},setLiveDealerToken(e){this.liveDealerTokenData=e},setCurrentFilters(e){this.currentFilters=e},setRealMoneyWins(e){this.realMoneyWins=e},setTotalGames(e){this.totalGames=e},setGamesByType(e){this.gamesByType={...this.gamesByType,...e}},setGameById(e){this.gameById=e},setJackpotGames(e){this.jackpotGames=e},setJackpotGamesHotColdState(e){this.jackpotGamesHotCold=e},setJackpotGame(e){this.jackpotGameData=e},setModalSearchInput(e){this.modalSearch.searchInput=e||""},setGlobalGames(e){this.globalGames=e},setUSeLocale(e){this.setUseLocale(e)},async getFilteringMetadata(){if(!Object.keys(this.filteringMetadata)?.length)try{const e=await this.$http.get("/api/arcade/filters/");this.setArcadeMetaData(e?.data)}catch({message:e}){console.error("Unable to getFilteringMetadata:",e)}},async getThemes(){const e=await this.$http.get("/api/arcade/getPropertyValues/Themes");this.setArcadeThemes(e?.data)},async getFeatures(){const e=await this.$http.get("/api/arcade/getPropertyValues/Bonus%20Game%20Feature");this.setArcadeFeatures(e?.data)},async getProviders(){if(!this.providers.length)try{const e=await this.$http.get("/api/arcade/providers/"),t=await i.getFilteredProviders(e?.data),s=await c(t,!1)||t;this.setProviders(s)}catch(e){if(this.$http.isCancel&&this.$http.isCancel(e)){console.debug("Skipped duplicate getProviders request:",e.message),this.setProviders([]);return}console.error("Unable to getProviders:",e.message||e),this.setProviders([])}},async getTotalGames(){const{data:e=[]}=await this.$http.get("/api/arcade/gamesByConditions/",{pageSize:1});Object.keys(e).includes("rowsFound")&&this.setTotalGames(e?.rowsFound)},openModalGame(e){this.setOpenModalGame(e)},openModalSearch(){this.setOpenModalSearch()},openModalFilters(){this.setOpenModalFilters()},closeModalGame(){this.setCloseModalGame()},closeModalSearch(){this.setCloseModalSearch()},closeModalFilters(){this.setCloseModalFilters()},async getGamesByCondition({supplement:e=!1,options:t={},withMetaData:s=!1,jackpots:r=!1}={}){try{let a=[];const o=t?.gameTypes?.length?t?.gameTypes[0]?.name||t?.gameTypes[0]:!1,d=await $fetch("/api/arcade/gamesByConditions/",{query:{...t,...i.getExclusionQueryParams()}}),n=i.handleJackpotsAndFormat(d,!1);return a=e?await c(n?.results,!0):s?n:n?.results,r&&!this.jackpotGames?.length&&this.setJackpotGames(a),o&&!this.gamesByType[o||"default"]?.length&&this.setGamesByType(o?{[o]:a}:{default:a}),this.setGames(a),a}catch(a){console.error("Error in getGamesByCondition:",a)}},async getGameById({supplement:e=!1,options:t={},jackpotGame:s=!1}={}){try{let r=[];const a=await $fetch(`/api/arcade/games/id/${t.id}`,{query:i.getExclusionQueryParams()});if(!a)return this.setGameById({}),[];const o=i.handleJackpotsAndFormat(a,!0);return r=e?await c([o]):[o],this.setGameById(r[0]),o?.jackpots?.length&&s&&await this.setJackpotGamesHotCold({j
1ackpotGamesHotCold:[o],gamePage:s}),r}catch(r){console.error("Error in getGamesByCondition:",r)}},async getLiveDealerToken(){const{data:e}=await this.$http.post("/api/live-dealer-auth");this.setLiveDealerToken(e?.token)},updateCurrentFilters(e){this.setCurrentFilters(e)},async getRealMoneyWins(e=!1){try{const t=await $fetch("/api/arcade/getRealMoneyWins/",{query:i.getExclusionQueryParams()}),s=i.getGameIdsFromRealMoneyWins(t),r=await this.getGamesByCondition({options:{ids:s.ids}}),a=i.getFormatedRealMoneyWinsResponse(t,r);return this.setRealMoneyWins(a.results||[]),e?a:a.results||[]}catch(t){console.error("Error in getRealMoneyWins:",t)}},async setJackpotGamesHotCold({jackpotGamesHotCold:e,gamePage:t=!1}){const{API_ARCADE:s}=this.$config;if(!this.jackpotGamesHotCold?.length){let r=await i.fetchAllJackpots(e,this.$http,s);r=r.map(a=>{const o=a?.jackpotsData?.hotAndCold||{},d=o.averageWinFrequency||0,n=d/1e3,p=d>0?parseInt((n/86400).toFixed(0)):0,u=o.secondsSinceLastWin||0,h=parseInt((u/86400).toFixed(0),10);let l=h-p;l=l>0?`+${l}`:`${l}`;const y=o.temperature||0,m=o.temperatureMin||0,g=o.temperatureMax||1,G=g-m!==0?(y-m)*100/(g-m):0;return{...a,hotAndColdDerived:{averageTime:p,daysSinceLastWin1:h,daysSinceLastWin2:l,temperaturePercentage:G,averagePrizeAmount:o.averagePrizeAmount?F(o.averagePrizeAmount):null}}}),t?this.setJackpotGame(r):this.setJackpotGamesHotColdState(r)}}}});export{F as n,C as u};

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.