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

119 lines
6.4 KiB
TypeScript

/* Metro module 14846; source: modules/icymi/ICYMIPopularGuildsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1867, 1418, 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 GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as GuildDiscoveryUtilsModule from '../../utils/GuildDiscoveryUtils.tsx'; /* Metro dependency 6946 */
function _fun112150(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:6, offset: 0x023bcfc3, size: 323 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let env0_8 = [];
let env0_9 = [];
const Store = (Flux).Store;
let value = _fun112154(Store);
value.displayName = 'ICYMIPopularGuildsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{LOAD_ICYMI_POPULAR_GUILDS: LOAD_ICYMI_POPULAR_GUILDS, LOGOUT: function() {
env0_8 = [];
env0_9 = [];
env0_10 = 0;
}});
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIPopularGuildsStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_112151() { // fn#112151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:158, offset: 0x023bd106, 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_112151_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun112154(a0) { // fn#112154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:375, offset: 0x023bd168, size: 153 bytes, params: 2, frame: 16
const ICYMIPopularGuildsStore2 = ICYMIPopularGuildsStore;
Inherits(ICYMIPopularGuildsStore2, a0);
return CreateClass(ICYMIPopularGuildsStore2, [{key: 'initialize', value: function() {
this.waitFor(GuildStore);
}}, {key: 'getOnboardingCategoryIds', value: value_112157}, {key: 'getOnboardingGuilds', value: value_112158},
{key: 'getCurrentOnboardingGuildOffset', value: value_112159}]);
function ICYMIPopularGuildsStore() { // fn#112155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:387, offset: 0x00ff71a7, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, ICYMIPopularGuildsStore);
const value3 = env1_5(ICYMIPopularGuildsStore);
return env1_4(this, _isNativeReflectConstruct_112151() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_112157() { // fn#112157, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_112158() { // fn#112158, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_112159() { // fn#112159, offset: 0x00fbd9ec, size: 9 bytes, params: 1, frame: 1
return env1_10;
}
}
function LOAD_ICYMI_POPULAR_GUILDS({categoryIds, guilds, offset}) { // fn#112160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1036, offset: 0x023bd201, size: 229 bytes, params: 2, frame: 21
env0_9 = offset === 0 ? [] : env0_9;
let Set = global.Set;
const binding = env0_9;
let set = new Set(binding.map(function(a0) {
return a0.id;
}));
Set = global.Set;
set = new Set(GuildStore.getGuildIds());
const value9 = guilds.map(_fun112162).filter(_fun112163);
const binding2 = env0_9;
const items2 = [];
arraySpread(items2, value9, arraySpread(items2, binding2, 0, binding), binding);
function _fun112162(a0) { // fn#112162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1198, offset: 0x023bd2e6, size: 64 bytes, params: 2, frame: 14
let value = environment.__proto__;
value = require(1418) /* metro dependency 1418: GuildRecordUtils */;
const fromClientDiscoverableGuild = value.fromClientDiscoverableGuild;
return Reflect.apply(fromClientDiscoverableGuild, value, [GuildDiscoveryUtilsModule.makeDiscoverableGuild(a0)]);
}
function _fun112163(a0) { // fn#112163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1281, offset: 0x023bd326, size: 55 bytes, params: 2, frame: 13
const binding = env0_1;
return !binding.has(a0.id) && !env0_0.has(a0.id);
}
}
}
global.__d(_fun112150, 14846, [6, 7, 15, 17, 18, 1867, 1418, 6946, 566, 694,
2]) /* metro module 14846, dependencies: [6, 7, 15, 17, 18, 1867, 1418, 6946, 566, 694, 2] */;