// Metro module 15163 (f15164). import Module589 from "../../_bundle/Module589"; import Dispatcher from "../../Dispatcher"; let guildIdToGameIds = null; class UnclaimedGamesStore extends Module589.Store { static displayName = "UnclaimedGamesStore"; getMap() { return guildIdToGameIds; } getUnclaimedGameIdsForGuild(a0) { let r5 = guildIdToGameIds == null ? void 0 : guildIdToGameIds[a0]; if (r5 == null) { r5 = []; } return r5; } hasUnclaimedGames(a0) { const r6 = guildIdToGameIds == null ? void 0 : guildIdToGameIds[a0]; return r6 != null && r6.length > 0; } getGuildIdsWithUnclaimedGames() { if (guildIdToGameIds == null) { return []; } const guildIdToGameIds2 = guildIdToGameIds; return Object.keys(guildIdToGameIds2).filter((item) => { let r5 = guildIdToGameIds2[item]; if (r5 == null) { r5 = []; } return r5.length > 0; }); } } const unclaimedGamesStore = new UnclaimedGamesStore(Dispatcher, { LOGOUT: function handleLogout() { guildIdToGameIds = null; }, UNCLAIMED_GAMES_FETCH_SUCCESS: function handleFetchSuccess(a0) { guildIdToGameIds = a0.guildIdToGameIds; } }); export default unclaimedGamesStore;