This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,43 @@
// 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;