Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
53 lines
1.8 KiB
TypeScript
53 lines
1.8 KiB
TypeScript
// Module ID: 13995
|
|
// Function ID: 13996
|
|
// Name: GuildPopoutActionCreators
|
|
// Dependencies: [5, 1074, 573, 1272, 2]
|
|
// Exports: fetchGuildForPopout
|
|
|
|
// Module 13995 (GuildPopoutActionCreators)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import HTTPUtils from "HTTPUtils" /* 1272 */;
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
|
|
require = fn;
|
|
let closure_5 = async function _fetchGuildForPopout(guildId) {
|
|
c5 = 0;
|
|
c6 = 0;
|
|
c4 = 0;
|
|
return (async (arg0, value) => {
|
|
closure_2 = tmp3;
|
|
closure_129_0 = guildId;
|
|
DispatcherDefault.dispatch({ type: "GUILD_POPOUT_FETCH_START", guildId });
|
|
const HTTP = HTTPUtils.HTTP;
|
|
await HTTP.get({ url: Endpoints.GUILD_PREVIEW(guildId), oldFormErrors: true, rejectWithError: true });
|
|
if (1 === tmp7) {
|
|
c4 = 0;
|
|
closure_130_1(closure_130_2[2]).dispatch({ type: "GUILD_POPOUT_FETCH_FAILURE", guildId: closure_129_0 });
|
|
c6 = 3;
|
|
closure_130_1(closure_130_2[2]);
|
|
} else if (arg0 === 1) {
|
|
c6 = 3;
|
|
throw value;
|
|
} else if (arg0 !== 2) {
|
|
closure_129_1 = value;
|
|
closure_130_1(closure_130_2[2]).dispatch({ type: "GUILD_POPOUT_FETCH_SUCCESS", guildId: closure_129_0, guild: closure_129_1.body });
|
|
c4 = 0;
|
|
closure_130_1(closure_130_2[2]);
|
|
}
|
|
return value;
|
|
})();
|
|
};
|
|
const Endpoints = fn(1074).Endpoints;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/guild_profile/GuildPopoutActionCreators.tsx");
|
|
|
|
export const fetchGuildForPopout = function fetchGuildForPopout() {
|
|
const self = this;
|
|
const apply = closure_5.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
};
|