112 lines
6.2 KiB
TypeScript
112 lines
6.2 KiB
TypeScript
/* Metro module 8200; source: modules/guild/BasicGuildStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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_6 = {};
|
|
const Store = (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});
|
|
(FileImportTrackerModule).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 BasicGuildStore2 = BasicGuildStore;
|
|
Inherits(BasicGuildStore2, a0);
|
|
return CreateClass(BasicGuildStore2, [{key: 'getGuild', value: value_65725}, {key: 'isGuildFetching',
|
|
value: value_65726}, {key: 'getGuildOrStatus', value: value_65727}, {key: 'getVersion', value: value_65728}]);
|
|
function BasicGuildStore() { // fn#65724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:372, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, BasicGuildStore);
|
|
const value3 = env1_3(BasicGuildStore);
|
|
return env1_2(this, _isNativeReflectConstruct_65720() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
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';
|
|
}
|
|
|
|
function value_65727(a0) { // fn#65727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8385:854, offset: 0x00fbe09c, size: 16 bytes, params: 2, frame: 2
|
|
return env1_6[a0];
|
|
}
|
|
|
|
function value_65728() { // fn#65728, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
|
|
return env1_5;
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun65719, 8200, [6, 7, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 8200, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
|