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

91 lines
4.4 KiB
TypeScript

/* Metro module 8200; source: modules/guild/BasicGuildStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
function _fun65719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:6, offset: 0x01bdb68b, size: 305 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const env0_6 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
let value = _fun65723(Store);
value.displayName = 'BasicGuildStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {BASIC_GUILD_FETCH: BASIC_GUILD_FETCH,
BASIC_GUILD_FETCH_SUCCESS: BASIC_GUILD_FETCH_SUCCESS, BASIC_GUILD_FETCH_FAILURE: BASIC_GUILD_FETCH_FAILURE});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild/BasicGuildStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_65720() { // fn#65720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:148, offset: 0x01bdb7bc, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_65720_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun65723(a0) { // fn#65723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:360, offset: 0x01bdb81e, size: 151 bytes, params: 2, frame: 16
const closure = BasicGuildStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'getGuild', value: value_65725}, {key: 'isGuildFetching', value: value_65726},
{key: 'getGuildOrStatus', value: value_65727}, {key: 'getVersion', value: value_65728}]);
}
function BASIC_GUILD_FETCH({guildId}) { // fn#65729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:1015, offset: 0x01bdb90b, size: 33 bytes, params: 2, frame: 4
env0_6[guildId] = {type: 'loading'};
return false;
}
function BASIC_GUILD_FETCH_SUCCESS({guildId, guildInfo}) { // fn#65730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:1116, offset: 0x01bdb92c, size: 40 bytes, params: 2, frame: 4
let binding = env0_6;
binding[guildId] = guildInfo;
binding = env0_5;
env0_5 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
}
function BASIC_GUILD_FETCH_FAILURE({guildId}) { // fn#65731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:1213, offset: 0x01bdb954, size: 35 bytes, params: 2, frame: 4
env0_6[guildId] = {type: 'failed'};
return false;
}
function value_65725(a0) { // fn#65725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:663, offset: 0x01bdb8b5, size: 37 bytes, params: 2, frame: 2
const property = env1_6[a0];
if (property == null) {
return undefined;
}
if ('type' in property) {
return undefined;
}
return property;
}
function value_65726(a0) { // fn#65726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:752, offset: 0x01bdb8da, size: 49 bytes, params: 2, frame: 3
const value = environment.__proto__;
const property = env1_6[a0];
return property != null && 'type' in property && property.type === 'loading';
}