/* Metro module 12085; source: modules/voice_calls/native/VoiceActionSheetManager.tsx; dependencies: [6, 7, 15, 17, 18, 4259, 4297, 694, 7709, 4561, 2] */ function _fun92859(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12271:6, offset: 0x0209c013, size: 262 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(6) /* metro dependency 6 */; const env0_4 = importDefault(7) /* metro dependency 7 */; const env0_5 = importDefault(15) /* metro dependency 15 */; const env0_6 = importDefault(17) /* metro dependency 17 */; const env0_7 = importDefault(18) /* metro dependency 18 */; const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */; const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */; let value = importDefault(4561) /* metro dependency 4561: LifecycleManager */; value = _fun92863(value); value = new value(); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_calls/native/VoiceActionSheetManager.tsx'); exports.default = value; } function _isNativeReflectConstruct_92860() { // fn#92860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12271:168, offset: 0x0209c119, 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_92860_isNativeReflectConstruct = function() { return !!result; })(); } function _fun92863(a0) { // fn#92863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12271:371, offset: 0x0209c17b, size: 97 bytes, params: 2, frame: 16 const closure = VoiceActionSheetManager; env0_7(closure, a0); return env0_4(closure, [{key: '_initialize', value: function(a0) { this.channel = a0; VoiceStateStore.addChangeListener(this.handleOpenChannelCallModal); MediaEngineStore.addChangeListener(this.handleOpenChannelCallModal); }}, {key: '_terminate', value: function() { VoiceStateStore.removeChangeListener(this.handleOpenChannelCallModal); MediaEngineStore.removeChangeListener(this.handleOpenChannelCallModal); }}]); } function VoiceActionSheetManager(a0) { // fn#92864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12271:383, offset: 0x0209c1dc, size: 153 bytes, params: 2, frame: 20 var r0; var Reflect; let value = copyRestArgs(0, undefined); let binding = env1_3; binding(this, VoiceActionSheetManager); const items2 = []; arraySpread(items2, value, 0, items2); value = env1_6(VoiceActionSheetManager); binding = env1_5; if (_isNativeReflectConstruct_92860()) { Reflect = global.Reflect; value = Reflect.construct(value, items2, env1_6(this).constructor); r0 = value; } else { value = value.apply(this, items2); r0 = value; } value = binding(this, r0); value.channel = null; value.handleOpenChannelCallModal = handleOpenChannelCallModal; return value; } function handleOpenChannelCallModal() { // fn#92865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12271:682, owner: VoiceActionSheetManager.handleOpenChannelCallModal, offset: 0x0209c275, size: 85 bytes, params: 1, frame: 13 var environment; var value2; const channel = env0_0.channel; var env0_0 = channel; if (channel != null) { value2 = environment.__proto__.__proto__; (importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun92866); env0_0.terminate(); } } function _fun92866() { // fn#92866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12271:727, offset: 0x0209c2ca, size: 65 bytes, params: 1, frame: 15 let value = environment.__proto__.__proto__.__proto__; value = require(7709) /* metro dependency 7709: PrivateChannelCallUtils */; const dismissVoiceChannelScreens = value.dismissVoiceChannelScreens; const channelBinding = channel; Reflect.apply(dismissVoiceChannelScreens, value, [channelBinding]); (require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).openChannelCallModal(channelBinding); }