decord/source/modules/guild/BasicGuildActionCreators.tsx

142 lines
4.3 KiB
TypeScript
Raw Normal View History

// Module ID: 17825
// Function ID: 17826
2026-07-20 16:05:17 +00:00
// Name: _fetchBasicGuild
// Dependencies: [5, 1979, 7955, 1074, 573, 1272, 2]
2026-07-20 16:05:17 +00:00
// Exports: fetchBasicGuild
// Module 17825 (_fetchBasicGuild)
2026-08-24 06:08:38 +00:00
import closure_3 from "asyncGeneratorStep" /* 5 */;
import closure_4 from "createGuildRecordFromRust" /* 1979 */;
import closure_5 from "getGuild" /* 7955 */;
import { Endpoints } from "ME" /* 1074 */;
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function _fetchBasicGuild() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
c5 = 0;
c6 = 0;
c4 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, body) {
if (c6 === 2) {
c6 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw body;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = body;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c6 = 2;
if (0 === guildOrStatus) {
if (arg0 === 1) {
c6 = 3;
throw body;
} else if (arg0 === 2) {
c6 = 3;
obj = { value: null, done: true };
obj[0] = body;
return obj;
} else {
2026-08-24 06:08:38 +00:00
dependencyMap = tmp4;
2026-07-29 08:29:29 +00:00
body = tmp8;
body = undefined;
if (null == guild.getGuild(callback)) {
if (null == guildOrStatus.getGuildOrStatus(tmp57)) {
2026-08-24 06:08:38 +00:00
if (!closure_1_7.has(tmp57)) {
let obj5 = closure_1_1(closure_1_2[4]);
obj1 = { type: "BASIC_GUILD_FETCH", guildId: null };
2026-07-29 08:29:29 +00:00
obj1[1] = tmp57;
obj5.dispatch(obj1);
2026-08-24 06:08:38 +00:00
closure_1_7.add(tmp57);
2026-07-29 08:29:29 +00:00
guild = 2;
2026-08-24 06:08:38 +00:00
const HTTP = callback(closure_1_2[5]).HTTP;
2026-07-29 08:29:29 +00:00
const obj2 = { url: null, rejectWithError: true };
obj2[0] = c6.GUILD_BASIC(tmp57);
guildOrStatus = 3;
c6 = 1;
let obj3 = { value: null, done: false };
obj3[0] = HTTP.get(obj2);
return obj3;
}
}
}
c6 = 3;
}
} else if (1 !== tmp8) {
if (2 === tmp8) {
guild = 1;
obj3 = body(573);
2026-07-29 08:29:29 +00:00
const obj4 = { type: "BASIC_GUILD_FETCH_FAILURE", guildId: null };
obj4[1] = callback;
obj3.dispatch(obj4);
} else if (arg0 === 1) {
c6 = 3;
throw body;
} else if (arg0 === 2) {
guild = 0;
set.delete(callback);
c6 = 3;
obj5 = { value: null, done: true };
obj5[0] = body;
return obj5;
} else {
body = body.body;
obj = body(573);
2026-07-29 08:29:29 +00:00
const obj6 = { type: "BASIC_GUILD_FETCH_SUCCESS", guildId: null, guildInfo: null };
obj6[1] = callback;
obj6[2] = body;
obj.dispatch(obj6);
guild = 1;
}
guild = 0;
set.delete(callback);
}
guild = 0;
set.delete(callback);
2026-08-24 06:08:38 +00:00
throw closure_3;
2026-07-29 08:29:29 +00:00
} catch (tmp48) {
2026-08-24 06:08:38 +00:00
closure_3 = tmp48;
2026-07-29 08:29:29 +00:00
if (tmp5 === guild) {
c6 = tmp3;
throw tmp48;
} else if (tmp2 === tmp50) {
guildOrStatus = tmp2;
} else {
guildOrStatus = tmp;
}
}
}
})();
});
2026-08-24 06:08:38 +00:00
closure_8 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let set = new Set();
const result = set.fileFinishedImporting("modules/guild/BasicGuildActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const fetchBasicGuild = function fetchBasicGuild(guild_id) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _fetchBasicGuild.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};