/* Metro module 14846; source: modules/icymi/ICYMIPopularGuildsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1867, 1418, 6946, 566, 694, 2] */ 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}); const env0_2 = importDefault(6) /* metro dependency 6 */; const env0_3 = importDefault(7) /* metro dependency 7 */; const env0_4 = importDefault(15) /* metro dependency 15 */; const env0_5 = importDefault(17) /* metro dependency 17 */; const env0_6 = importDefault(18) /* metro dependency 18 */; const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */; let env0_8 = []; let env0_9 = []; const Store = (importDefault(566) /* metro dependency 566: 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; }}); (require(2) /* metro dependency 2 */).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 closure = ICYMIPopularGuildsStore; env0_6(closure, a0); return env0_3(closure, [{key: 'initialize', value: function() { this.waitFor(GuildStore); }}, {key: 'getOnboardingCategoryIds', value: value_112157}, {key: 'getOnboardingGuilds', value: value_112158}, {key: 'getCurrentOnboardingGuildOffset', value: value_112159}]); } 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; const guildDiscoveryUtilsModule = require(6946) /* metro dependency 6946: GuildDiscoveryUtils */; 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); }