decord/source/modules/guild_profile/GuildPopoutActionCreators.tsx
2026-08-13 07:00:46 +00:00

72 lines
2.2 KiB
TypeScript

// Module ID: 13384
// Function ID: 13385
// Name: _fetchGuildForPopout
// Dependencies: [5, 676, 709, 530, 2]
// Exports: fetchGuildForPopout
// Module 13384 (_fetchGuildForPopout)
import asyncGeneratorStep from "asyncGeneratorStep";
import { Endpoints } from "ME";
const require = arg1;
function _fetchGuildForPopout() {
const self = this;
const tmp = callback((arg0) => {
let closure_0 = arg0;
let c5 = 0;
let c6 = 0;
let c4 = 0;
return (function*(arg0) {
const dependencyMap = tmp3;
const obj1 = { type: "GUILD_POPOUT_FETCH_START", guildId: null };
obj1[1] = callback;
outer1_1(outer1_2[2]).dispatch(obj1);
let c4 = 1;
const HTTP = callback(outer1_2[3]).HTTP;
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);
let c6 = 3;
} else if (arg0 === 1) {
c6 = 3;
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;
}
c4 = 0;
return arg1;
})();
});
const _fetchGuildForPopout = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
const result = require("dispatcher").fileFinishedImporting("modules/guild_profile/GuildPopoutActionCreators.tsx");
export const fetchGuildForPopout = function fetchGuildForPopout(id) {
const self = this;
const apply = _fetchGuildForPopout.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};