Files
discord-decomp/sources/modules/guild/BasicGuildActionCreators.tsx
T
2026-07-27 16:20:00 +03:00

378 lines
13 KiB
TypeScript

/* Metro module 16161; source: modules/guild/BasicGuildActionCreators.tsx; dependencies: [5, 1867, 8200, 661, 694, 507, 2] */
function _fun124914(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16369:6, offset: 0x025c7221, size: 213 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const basicGuildStore = importDefault(8200) /* metro dependency 8200: BasicGuildStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const Set = global.Set;
const set = new Set();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild/BasicGuildActionCreators.tsx');
exports.fetchBasicGuild = function() {
return _fetchBasicGuild.apply(this, arguments);
};
}
function _fetchBasicGuild() { // fn#124915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16369:156, offset: 0x025c72f6, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun124917).apply(this, arguments);
}
function* _fun124917(a0) { // fn#124917, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16369:211, offset: 0x025c7333, size: 404 bytes, params: 2, frame: 19
var value;
var value2;
var binding;
var getGuild;
var value3;
var getGuildOrStatus;
var has;
var value4;
var dispatch;
var object2;
var add;
var binding2;
var property;
var value5;
var HTTP;
var get;
var GUILD_BASIC;
var value6;
var value7;
var value8;
var value9;
var body;
var binding3;
var value10;
var error;
var binding4;
var value11;
exceptionLanding52: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__.__proto__;
binding = env2_4;
getGuild = binding.getGuild;
value3 = Reflect.apply(getGuild, binding, [a0]);
if (value3 == null) {
binding = env2_5;
getGuildOrStatus = binding.getGuildOrStatus;
reducibleJoin53: while (true) {
if (Reflect.apply(getGuildOrStatus, binding, [a0]) != null) {
break reducibleJoin53;
}
binding = env2_7;
has = binding.has;
if (Reflect.apply(has, binding, [a0])) {
break reducibleJoin53;
}
binding = env2_1;
value4 = binding(env2_2[4]);
dispatch = value4.dispatch;
object2 = {type: 'BASIC_GUILD_FETCH', guildId: a0};
Reflect.apply(dispatch, value4, [object2]);
binding = env2_7;
add = binding.add;
Reflect.apply(add, binding, [a0]);
reducibleJoin6: while (true) {
reduciblePort51: while (true) {
exceptionLanding39: while (true) {
try {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
break reducibleJoin6;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding52;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding52;
}
try {
property = binding4[4];
} catch (error) {
break exceptionLanding52;
}
try {
value11 = binding(property);
} catch (error) {
break exceptionLanding52;
}
try {
dispatch = value11.dispatch;
} catch (error) {
break exceptionLanding52;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding52;
}
try {
object2.type = 'BASIC_GUILD_FETCH_FAILURE';
} catch (error) {
break exceptionLanding52;
}
try {
object2.guildId = a0;
} catch (error) {
break exceptionLanding52;
}
try {
Reflect.apply(dispatch, value11, [object2]);
} catch (error) {
break exceptionLanding52;
}
break reduciblePort51;
}
binding = env2_7;
binding.delete(a0);
break reducibleJoin53;
}
try {
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
property = binding2[5];
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
value5 = binding(property);
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
HTTP = value5.HTTP;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
get = HTTP.get;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object2 = {};
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
binding = env2_6;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
GUILD_BASIC = binding.GUILD_BASIC;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
value6 = Reflect.apply(GUILD_BASIC, binding, [a0]);
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object2.url = value6;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object2.rejectWithError = true;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
value7 = Reflect.apply(get, HTTP, [object2]);
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
yield value7;
try {
try {
value8 = undefined;
value9 = false;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
if (value9) {
env2_7.delete(a0);
return value8;
}
try {
try {
body = value8.body;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
property = binding3[4];
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
value10 = binding(property);
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
dispatch = value10.dispatch;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object2 = {};
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object2.type = 'BASIC_GUILD_FETCH_SUCCESS';
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object2.guildId = a0;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object2.guildInfo = body;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
Reflect.apply(dispatch, value10, [object2]);
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
binding = env2_7;
binding.delete(a0);
break reducibleJoin53;
}
}
return undefined;
}
env2_7.delete(a0);
throw error;
}