Files
discord-decomp/sources/modules/guild/BasicGuildActionCreators.tsx
T
2026-07-28 01:06:53 +03:00

382 lines
16 KiB
TypeScript

/* Metro module 16161; source: modules/guild/BasicGuildActionCreators.tsx; dependencies: [5, 1867, 8200, 661, 694, 507, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import BasicGuildStore from './BasicGuildStore.tsx'; /* Metro dependency 8200 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
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 Set = global.Set;
const set = new Set();
(FileImportTrackerModule).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 Module00005(_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 object;
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;
object = {type: 'BASIC_GUILD_FETCH', guildId: a0};
Reflect.apply(dispatch, value4, [object]);
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 {
object = {};
} catch (error) {
break exceptionLanding52;
}
try {
object.type = 'BASIC_GUILD_FETCH_FAILURE';
} catch (error) {
break exceptionLanding52;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding52;
}
try {
Reflect.apply(dispatch, value11, [object]);
} 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 {
object = {};
} 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 {
object.url = value6;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object.rejectWithError = true;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
value7 = Reflect.apply(get, HTTP, [object]);
} 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 {
object = {};
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object.type = 'BASIC_GUILD_FETCH_SUCCESS';
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
object.guildInfo = body;
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
try {
try {
Reflect.apply(dispatch, value10, [object]);
} catch (error) {
break exceptionLanding39;
}
} catch (error) {
break exceptionLanding52;
}
binding = env2_7;
binding.delete(a0);
break reducibleJoin53;
}
}
return undefined;
}
env2_7.delete(a0);
throw error;
}
}
}
global.__d(_fun124914, 16161, [5, 1867, 8200, 661, 694, 507,
2]) /* metro module 16161, dependencies: [5, 1867, 8200, 661, 694, 507, 2] */;