/* Metro module 9724; source: modules/channel/ChannelMemberCountStore.tsx; dependencies: [6, 7, 15, 17, 18, 4257, 1379, 21, 566, 694, 2] */ function _fun76400(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9910:6, offset: 0x01dce548, size: 384 bytes, params: 8, frame: 19 let 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 gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; Object = global.Object; const env0_9 = Object.freeze({'online': null, 'total': null}); const env0_10 = {}; const env0_11 = {}; const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore; let value = _fun76404(PersistedStore); value.displayName = 'ChannelMemberCountStore'; value.persistKey = 'channelMemberCounts'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: CONNECTION_OPEN_76410, CHANNEL_MEMBER_COUNT_UPDATE: CHANNEL_MEMBER_COUNT_UPDATE}); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/ChannelMemberCountStore.tsx'); exports.default = value; } function _isNativeReflectConstruct_76401() { // fn#76401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9910:168, offset: 0x01dce6c8, 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_76401_isNativeReflectConstruct = function() { return !!result; })(); } function _fun76404(a0) { // fn#76404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9910:430, offset: 0x01dce72a, size: 147 bytes, params: 2, frame: 16 const closure = ChannelMemberCountStore; env0_6(closure, a0); return env0_3(closure, [{key: 'initialize', value: value_76406}, {key: 'getState', value: value_76407}, {key: 'getMemberCount', value: value_76408}, {key: 'requestCount', value: value_76409}]); } function CONNECTION_OPEN_76410() { // fn#76410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9910:1191, offset: 0x01dce83b, size: 114 bytes, params: 1, frame: 14 var socket; if (env0_12 != null) { socket = GatewayConnectionStore.getSocket(); socket.requestChannelMemberCount(env0_12.guildId, env0_12.channelId); } (importDefault(21) /* metro dependency 21: SnowflakeUtils */).keys(env0_11).forEach(_fun76411); } function CHANNEL_MEMBER_COUNT_UPDATE({channelId, online, total}) { // fn#76412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9910:1391, offset: 0x01dce8ad, size: 63 bytes, params: 2, frame: 6 if (!(online == null && total == null)) { env0_11[channelId] = {online: online, total: total}; } return true; } function value_76406(a0) { // fn#76406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9910:775, offset: 0x01dce7bd, size: 47 bytes, params: 2, frame: 15 const value = a0; this.waitFor(GatewayConnectionStore, ChannelStore); env1_11 = value ?? env1_10; } function value_76408(a0) { // fn#76408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9910:893, offset: 0x01dce7ec, size: 26 bytes, params: 2, frame: 3 return env1_11[a0] ?? env1_9; } function value_76409(a0, a1) { // fn#76409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9910:965, offset: 0x01dce806, size: 53 bytes, params: 3, frame: 13 const object = {guildId: a0, channelId: a1}; const value = environment.__proto__; GatewayConnectionStore.getSocket().requestChannelMemberCount(a0, a1); }