{"version":3,"file":"static/js/29675.80320c31.chunk.js","mappings":"+OAIA,MAAMA,GAAiBC,E,SAAAA,GAAgB,kBAEjCC,EAAsBF,EAAe,cAC9BG,GAA8BC,EAAAA,EAAAA,IACzC,CAACF,IACDG,GAAcA,EAAWC,WAEdC,EAAoBP,EAAe,kBAEnCQ,EAAkBR,EAAe,gBACjCS,GAA4BL,EAAAA,EAAAA,IACvC,CAACF,IACDG,GAAcA,EAAWK,SAEdC,GAAiCP,EAAAA,EAAAA,IAC5C,CAACF,IACDG,GAAcA,EAAWO,cAEdC,GAA4CT,EAAAA,EAAAA,IACvD,CAACF,IACDG,GAAcA,EAAWS,yBAEdC,EAAoCf,EAC/C,kCAEWgB,EAAmChB,EAC9C,iCAEWiB,EAA2BjB,EAAe,yBAC1CkB,EAAuBlB,EAAe,qBACtCmB,EAAiBnB,EAAe,eAChCoB,GAAiBhB,EAAAA,EAAAA,IAC5B,CAACe,IACD,WAA2C,IAA1CE,EAA+BC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EAClC,OAAOG,OAAOC,OAAOL,GAClBM,QAAOC,GAAYA,EAASC,SAC5BC,QAAO,CAACC,EAAKH,IACPA,EAASI,MAIdD,EAAIH,EAASI,KAAKC,mBAAqBL,EAEhCG,GALEA,GAMR,CAAC,EACR,G","sources":["store/selectors/new-casino.ts"],"sourcesContent":["import { createSelector } from 'reselect';\nimport { getSelectorRoot } from 'utils/selectors';\nimport { ICasinoCachedGames } from 'interfaces/casino-data';\n\nconst getCasinoStore = getSelectorRoot('newCasinoStore');\n\nconst getCasinoCategories = getCasinoStore('categories');\nexport const getCasinoOriginalCategories = createSelector(\n [getCasinoCategories],\n categories => categories.original\n);\nexport const getEnhancedParams = getCasinoStore('enhancedParams');\n\nexport const getGamesConfigs = getCasinoStore('gamesConfigs');\nexport const getCasinoCustomCategories = createSelector(\n [getCasinoCategories],\n categories => categories.custom\n);\nexport const getCasinoOriginalCategoriesSet = createSelector(\n [getCasinoCategories],\n categories => categories.originalSet\n);\nexport const getCasinoOriginalCategoriesSetLeftSideBar = createSelector(\n [getCasinoCategories],\n categories => categories.originalSetLeftSideBar\n);\nexport const getCanRequestCategoriesNestedData = getCasinoStore(\n 'canRequestCategoriesNestedData'\n);\nexport const getCanRequestProvidersNestedData = getCasinoStore(\n 'canRequestProvidersNestedData'\n);\nexport const getLastPlayedCatSettings = getCasinoStore('lastPlayedCatSettings');\nexport const getCategoryCustomIds = getCasinoStore('categoryCustomIds');\nexport const getCachedGames = getCasinoStore('cachedGames');\nexport const getActiveGames = createSelector(\n [getCachedGames],\n (cachedGames: ICasinoCachedGames = {}) => {\n return Object.values(cachedGames)\n .filter(gameData => gameData.active)\n .reduce((acc, gameData) => {\n if (!gameData.data) {\n return acc;\n }\n\n acc[gameData.data.extearnal_game_id] = gameData;\n\n return acc;\n }, {} as ICasinoCachedGames);\n }\n);\n"],"names":["getCasinoStore","getSelectorRoot","getCasinoCategories","getCasinoOriginalCategories","createSelector","categories","original","getEnhancedParams","getGamesConfigs","getCasinoCustomCategories","custom","getCasinoOriginalCategoriesSet","originalSet","getCasinoOriginalCategoriesSetLeftSideBar","originalSetLeftSideBar","getCanRequestCategoriesNestedData","getCanRequestProvidersNestedData","getLastPlayedCatSettings","getCategoryCustomIds","getCachedGames","getActiveGames","cachedGames","arguments","length","undefined","Object","values","filter","gameData","active","reduce","acc","data","extearnal_game_id"],"sourceRoot":""}