130 lines
7.4 KiB
TypeScript
130 lines
7.4 KiB
TypeScript
/* Metro module 12694; source: modules/guild_profile/GuildPopoutStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 6946, 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 AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as GuildDiscoveryUtilsModule from '../../utils/GuildDiscoveryUtils.tsx'; /* Metro dependency 6946 */
|
|
|
|
function _fun97266(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:6, offset: 0x02179d56, size: 380 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {UNSET: 'unset', FETCHING: 'fetching', FAILED: 'failed', SUCCEEDED: 'succeeded'};
|
|
object = {guilds: {}};
|
|
const Store = (Flux).Store;
|
|
let value = _fun97270(Store);
|
|
value.displayName = 'GuildPopoutStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{GUILD_POPOUT_FETCH_START: GUILD_POPOUT_FETCH_START, GUILD_POPOUT_FETCH_SUCCESS: GUILD_POPOUT_FETCH_SUCCESS,
|
|
GUILD_POPOUT_FETCH_FAILURE: GUILD_POPOUT_FETCH_FAILURE});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/guild_profile/GuildPopoutStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_97267() { // fn#97267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:158, offset: 0x02179ed2, 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_97267_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun97270(a0) { // fn#97270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:486, offset: 0x02179f34, size: 149 bytes, params: 2, frame: 16
|
|
const GuildPopoutStore2 = GuildPopoutStore;
|
|
Inherits(GuildPopoutStore2, a0);
|
|
return CreateClass(GuildPopoutStore2, [{key: 'initialize', value: function() {
|
|
this.waitFor(AuthenticationStore);
|
|
}}, {key: 'isFetchingGuild', value: value_97273}, {key: 'getGuild', value: value_97274}, {key: 'hasFetchFailed',
|
|
value: value_97275}]);
|
|
function GuildPopoutStore() { // fn#97271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:498, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_2(this, GuildPopoutStore);
|
|
const value3 = env1_5(GuildPopoutStore);
|
|
return env1_4(this, _isNativeReflectConstruct_97267() ? global.Reflect.construct(value3, arguments,
|
|
env1_5(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_97273(a0) { // fn#97273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:854, offset: 0x02179fc9, size: 51 bytes, params: 2, frame: 4
|
|
const value = environment.__proto__;
|
|
const property = env1_9.guilds[a0];
|
|
return property != null && property.fetchState === env1_8.FETCHING;
|
|
}
|
|
|
|
function value_97274(a0) { // fn#97274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:950, offset: 0x02179ffc, size: 36 bytes, params: 2, frame: 3
|
|
let value = environment.__proto__;
|
|
const property = env1_9.guilds[a0];
|
|
value = null;
|
|
return value != property ? property.guild : value;
|
|
}
|
|
|
|
function value_97275(a0) { // fn#97275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:1038, offset: 0x0217a020, size: 51 bytes, params: 2, frame: 4
|
|
const value = environment.__proto__;
|
|
const property = env1_9.guilds[a0];
|
|
return property != null && property.fetchState === env1_8.FAILED;
|
|
}
|
|
|
|
}
|
|
|
|
function GUILD_POPOUT_FETCH_START({guildId}) { // fn#97276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:1207, offset: 0x0217a053, size: 67 bytes, params: 2, frame: 14
|
|
const binding = env0_9;
|
|
const guilds = binding.guilds;
|
|
const object = {};
|
|
const guilds2 = binding.guilds;
|
|
copyDataProperties(object, guilds2[guildId], guilds2);
|
|
const FETCHING = env0_8.FETCHING;
|
|
object['fetchState'] = FETCHING;
|
|
guilds[guildId] = object;
|
|
}
|
|
|
|
function GUILD_POPOUT_FETCH_SUCCESS({guildId, guild}) { // fn#97277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:1325, offset: 0x0217a096, size: 112 bytes, params: 2, frame: 16
|
|
const discoverableGuild = (GuildDiscoveryUtilsModule).makeDiscoverableGuild(guild);
|
|
const binding = env0_9;
|
|
const guilds = binding.guilds;
|
|
const object = {};
|
|
copyDataProperties(object, binding.guilds[guildId], discoverableGuild);
|
|
object['guild'] = discoverableGuild;
|
|
const SUCCEEDED = env0_8.SUCCEEDED;
|
|
object['fetchState'] = SUCCEEDED;
|
|
guilds[guildId] = object;
|
|
}
|
|
|
|
function GUILD_POPOUT_FETCH_FAILURE({guildId}) { // fn#97278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:1501, offset: 0x0217a106, size: 67 bytes, params: 2, frame: 14
|
|
const binding = env0_9;
|
|
const guilds = binding.guilds;
|
|
const object = {};
|
|
const guilds2 = binding.guilds;
|
|
copyDataProperties(object, guilds2[guildId], guilds2);
|
|
const FAILED = env0_8.FAILED;
|
|
object['fetchState'] = FAILED;
|
|
guilds[guildId] = object;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun97266, 12694, [6, 7, 15, 17, 18, 1226, 6946, 566, 694,
|
|
2]) /* metro module 12694, dependencies: [6, 7, 15, 17, 18, 1226, 6946, 566, 694, 2] */;
|