2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 7955
|
|
|
|
|
// Function ID: 7956
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: BasicGuildStore
|
2026-10-03 08:58:59 +00:00
|
|
|
// Dependencies: [504, 584, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 7955 (BasicGuildStore)
|
2026-10-03 08:58:59 +00:00
|
|
|
import get_initializedDefault from "get initialized" /* 504 */;
|
|
|
|
|
import DispatcherDefault from "Dispatcher" /* 584 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
let closure_0 = 0;
|
2026-10-03 08:58:59 +00:00
|
|
|
const Store = get_initializedDefault.Store;
|
2026-07-29 08:29:29 +00:00
|
|
|
class BasicGuildStore extends Store {
|
2026-10-03 08:58:59 +00:00
|
|
|
getGuild(arg0) {
|
|
|
|
|
if (null != closure_1[arg0]) {
|
|
|
|
|
if (!("type" in closure_1[arg0])) {
|
|
|
|
|
return closure_1[arg0];
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
isGuildFetching(arg0) {
|
|
|
|
|
return null != tmp && "type" in tmp && "loading" === tmp.type;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
getGuildOrStatus(guild_id) {
|
|
|
|
|
return closure_1[guild_id];
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
getVersion() {
|
|
|
|
|
return closure_0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const prototype = BasicGuildStore.prototype;
|
2026-07-29 08:29:29 +00:00
|
|
|
BasicGuildStore.displayName = "BasicGuildStore";
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = {
|
2026-07-20 16:05:17 +00:00
|
|
|
BASIC_GUILD_FETCH: function handleBasicGuildFetch(guildId) {
|
2026-07-29 08:29:29 +00:00
|
|
|
closure_1[guildId.guildId] = { type: "loading" };
|
2026-07-20 16:05:17 +00:00
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
BASIC_GUILD_FETCH_SUCCESS: function handleBasicGuildFetchSuccess(guildId) {
|
2026-07-29 08:29:29 +00:00
|
|
|
closure_1[guildId.guildId] = guildId.guildInfo;
|
|
|
|
|
closure_0 = closure_0 + 1;
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
BASIC_GUILD_FETCH_FAILURE: function handleBasicGuildFetchFailure(guildId) {
|
2026-07-29 08:29:29 +00:00
|
|
|
closure_1[guildId.guildId] = { type: "failed" };
|
2026-07-20 16:05:17 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
};
|
|
|
|
|
const basicGuildStore = new BasicGuildStore(DispatcherDefault, obj);
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/guild/BasicGuildStore.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default basicGuildStore;
|