// Module ID: 8881 // Function ID: 8882 // Name: useSimilarGames // Dependencies: [1916, 1371, 8766, 8765, 7309, 504, 8681, 5111, 2] // Exports: default // Module 8881 (useSimilarGames) import closure_2 from "createGamesFromMessage" /* 1916 */; import closure_3 from "mergeGuildAvatar" /* 1371 */; import { SIMILAR_GAMES_BLOCKED_GAME_IDS as closure_4 } from "set" /* 8766 */; const require = arg1; let closure_5 = []; let closure_6 = []; const result = require("set").fileFinishedImporting("modules/game_profile/hooks/useSimilarGames.tsx"); export default function useSimilarGames(arg0) { const hasItem = set.has(arg0); let obj = data(8765); const similarGameIds = obj.useSimilarGameIds(arg0, !hasItem); ({ data, isLoading, error } = similarGameIds); if (hasItem) { let tmp7 = closure_5; } else { tmp7 = data; } data = tmp7; let tmp3Result = tmp3(7309); const games = tmp3Result.useGames(tmp7); tmp3Result = tmp3(504); const items = [closure_2]; const items1 = [tmp7]; const stateFromStores = tmp3Result.useStateFromStores(items, () => data.some((closure_0) => null == game.getGame(closure_0) && !game.hasNoData(closure_0) && !game.didFetchingFail(closure_0)), items1); data(504); const items2 = [closure_2, closure_3]; [][0] = tmp7; if (hasItem) { obj = { isFetching: false, similarGames: null }; obj[1] = closure_6; } else { obj = { isFetching: null, similarGames: null }; obj[0] = null == error && null == data || isLoading || stateFromStores; obj[1] = tmp11; const tmp13 = null == error && null == data || isLoading || stateFromStores; } return obj; };