decord/source/modules/game_claim/UnclaimedGamesStore.tsx

66 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15518
// Function ID: 15519
2026-07-29 08:29:29 +00:00
// Name: getMap
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 15518 (getMap)
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = null;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class UnclaimedGamesStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = UnclaimedGamesStore.prototype;
prototype["getMap"] = function getMap() {
return c0;
};
prototype["getUnclaimedGameIdsForGuild"] = function getUnclaimedGameIdsForGuild(arg0) {
let items;
if (c0 != null) {
items = tmp[arg0];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (items == null) {
items = [];
}
return items;
};
prototype["hasUnclaimedGames"] = function hasUnclaimedGames(arg0) {
let tmp2;
if (c0 != null) {
tmp2 = tmp[arg0];
}
let tmp4 = null != tmp2;
if (tmp4) {
tmp4 = tmp2.length > 0;
}
return tmp4;
};
prototype["getGuildIdsWithUnclaimedGames"] = function getGuildIdsWithUnclaimedGames() {
if (null == closure_0) {
return [];
} else {
const _Object = Object;
const keys = Object.keys(closure_0);
return keys.filter((arg0) => {
let items = table[arg0];
if (items == null) {
2026-07-20 16:05:17 +00:00
items = [];
}
2026-07-29 08:29:29 +00:00
return items.length > 0;
});
}
};
UnclaimedGamesStore.displayName = "UnclaimedGamesStore";
2026-08-24 06:08:38 +00:00
const unclaimedGamesStore = new UnclaimedGamesStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
LOGOUT: function handleLogout() {
2026-08-24 06:08:38 +00:00
c0 = null;
2026-07-20 16:05:17 +00:00
},
UNCLAIMED_GAMES_FETCH_SUCCESS: function handleFetchSuccess(guildIdToGameIds) {
guildIdToGameIds = guildIdToGameIds.guildIdToGameIds;
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("modules/game_claim/UnclaimedGamesStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default unclaimedGamesStore;