decord/source/modules/guild_profile/GuildPopoutActionCreators.tsx

73 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13487
// Function ID: 13488
2026-07-20 16:05:17 +00:00
// Name: _fetchGuildForPopout
2026-07-29 08:29:29 +00:00
// Dependencies: [5, 676, 709, 530, 2]
2026-07-20 16:05:17 +00:00
// Exports: fetchGuildForPopout
2026-08-24 06:08:38 +00:00
// Module 13487 (_fetchGuildForPopout)
import closure_3 from "asyncGeneratorStep" /* 5 */;
import { Endpoints } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function _fetchGuildForPopout() {
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) {
2026-08-24 06:08:38 +00:00
dependencyMap = tmp3;
obj1 = { type: "GUILD_POPOUT_FETCH_START", guildId: null };
2026-08-04 21:03:28 +00:00
obj1[1] = callback;
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[2]).dispatch(obj1);
c4 = 1;
const HTTP = callback(closure_1_2[3]).HTTP;
2026-08-04 21:03:28 +00:00
const obj2 = { url: null, oldFormErrors: true, rejectWithError: true };
obj2[0] = c4.GUILD_PREVIEW(callback);
yield HTTP.get(obj2);
if (1 === tmp7) {
c4 = 0;
const obj3 = lib(709);
const obj4 = { type: "GUILD_POPOUT_FETCH_FAILURE", guildId: null };
obj4[1] = callback;
obj3.dispatch(obj4);
2026-08-24 06:08:38 +00:00
c6 = 3;
2026-08-04 21:03:28 +00:00
} else if (arg0 === 1) {
2026-07-29 08:29:29 +00:00
c6 = 3;
2026-08-04 21:03:28 +00:00
throw arg1;
} else if (arg0 !== 2) {
lib = arg1;
const obj = lib(709);
const obj5 = { type: "GUILD_POPOUT_FETCH_SUCCESS", guildId: null, guild: null };
obj5[1] = callback;
obj5[2] = lib.body;
obj.dispatch(obj5);
c4 = 0;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
c4 = 0;
return arg1;
2026-07-29 08:29:29 +00:00
})();
});
2026-08-24 06:08:38 +00:00
closure_5 = 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-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/guild_profile/GuildPopoutActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const fetchGuildForPopout = function fetchGuildForPopout(id) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _fetchGuildForPopout.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
};