decord/source/modules/guild_profile/GuildPopoutActionCreators.tsx

73 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 13195
// Function ID: 13196
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-05 07:35:12 +00:00
// Module 13195 (_fetchGuildForPopout)
2026-07-23 10:11:24 +00:00
import asyncGeneratorStep from "asyncGeneratorStep";
import { Endpoints } from "ME";
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) => {
let closure_0 = arg0;
let c5 = 0;
let c6 = 0;
let c4 = 0;
return (function*(arg0) {
2026-08-04 21:03:28 +00:00
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) {
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
})();
});
const _fetchGuildForPopout = tmp;
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
const result = require("dispatcher").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
};