/* Metro module 5091; source: stores/CollapsedVoiceChannelStore.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 21, 566, 694, 2] */ function _fun44219(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:6, offset: 0x0116aa35, size: 320 bytes, params: 8, frame: 19 const closure = CONNECTION_OPEN_44223; 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 channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; object = {}; const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore; let value = _fun44225(PersistedStore); value.displayName = 'CollapsedVoiceChannelStore'; value.persistKey = 'collapsedChannels'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: closure, OVERLAY_INITIALIZE: closure, CHANNEL_COLLAPSE: CHANNEL_COLLAPSE_44231}); (require(2) /* metro dependency 2 */).fileFinishedImporting('stores/CollapsedVoiceChannelStore.tsx'); exports.default = value; } function _isNativeReflectConstruct_44220() { // fn#44220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:158, offset: 0x0116ab75, size: 94 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_44220_isNativeReflectConstruct = function() { return !!result; })(); } function CONNECTION_OPEN_44223() { // fn#44223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:364, offset: 0x0116abd3, size: 58 bytes, params: 1, frame: 12 (importDefault(21) /* metro dependency 21: SnowflakeUtils */).keys(env0_9).forEach(_fun44224); } function _fun44225(a0) { // fn#44225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:469, offset: 0x0116ac33, size: 139 bytes, params: 2, frame: 16 const closure = CollapsedVoiceChannelStore; env0_6(closure, a0); return env0_3(closure, [{key: 'initialize', value: value_44227}, {key: 'getState', value: value_44228}, {key: 'getCollapsed', value: value_44229}, {key: 'isCollapsed', value: value_44230}]); } function CHANNEL_COLLAPSE_44231({channelId}) { // fn#44231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:1238, offset: 0x0116acfd, size: 59 bytes, params: 2, frame: 13 var r3; var value2; const property = env0_9[channelId]; const binding = env0_9; if (property) { delete binding[channelId]; r3 = property; } else { value2 = true; binding[channelId] = value2; r3 = value2; } copyDataProperties({}, env0_9, r3); } function _fun44224(a0) { // fn#44224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:421, offset: 0x0116ac0d, size: 38 bytes, params: 2, frame: 12 if (ChannelStore.getChannel(a0) == null) { delete env1_9[a0]; } } function value_44227(a0) { // fn#44227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:829, offset: 0x0116acbe, size: 42 bytes, params: 2, frame: 13 const value = a0; this.waitFor(ChannelStore); env1_9 = value ?? env1_8; } function value_44230(a0) { // fn#44230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:990, offset: 0x0116ace8, size: 21 bytes, params: 2, frame: 2 const value = environment.__proto__; return env1_9[a0] || false; }