/* Metro module 9293; source: modules/rtc/hooks/useIsSecureFramesUIEnabled.tsx; dependencies: [1379, 4294, 9277, 566, 2] */ function _fun72678(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9479:6, offset: 0x01d4e3e9, size: 152 bytes, params: 8, frame: 19 let env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */; const env0_4 = (require(9277) /* metro dependency 9277: SecureFramesConstants */).END_TO_END_ENCRYPTION_DISABLED; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useIsSecureFramesUIEnabled.tsx'); exports.useIsSecureFramesUIEnabled = function({channelId}) { var env0_0 = channelId; return require(dependencyMap[3]).useStateFromStores([RTCConnectionStore, ChannelStore], _fun72680, [channelId]); }; } function useIsSecureFramesUIEnabled({channelId}) { // fn#72679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9479:268, offset: 0x01d4e481, size: 88 bytes, params: 2, frame: 17 return (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore, ChannelStore], _fun72680, [channelId]); } function _fun72680() { // fn#72680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9479:360, offset: 0x01d4e4d9, size: 226 bytes, params: 1, frame: 18 var r1; var r0; var r7; var version; var item3; var value4; var channel; var secureFramesState; const channelIdBinding = channelId; const value = environment.__proto__; const items2 = [RTCConnectionStore]; items2[1] = ChannelStore; const value2 = undefined; const iterator = (items2 !== value2 ? items2 : [RTCConnectionStore, ChannelStore])[Symbol.iterator](); const iterator2 = iterator.next; let item2 = Reflect.apply(iterator2, iterator, []); let item = item2.value; item2 = item2.done ? undefined : iterator; const value3 = item2 === value2; const r5 = value3 ? value2 : item; if (value3) { r0 = item2; r1 = value3; r7 = value2; } else { item3 = Reflect.apply(iterator2, item2, []); item = item3.value; item3 = item3.done ? undefined : item2; value4 = item3 === value2; if (value4) { r0 = item3; r1 = value4; r7 = value2; } else { r0 = item3; r1 = value4; r7 = item; } } if (!r1) { r0.return(); } const value5 = false; if (channelIdBinding == null) { r0 = value5; } else if (r5.getChannelId() !== channelIdBinding) { r0 = value5; } else { channel = r7.getChannel(channelIdBinding); if (channel == null) { r0 = value5; } else if (channel.isGuildStageVoice()) { r0 = value5; } else { secureFramesState = r5.getSecureFramesState(); version = secureFramesState == null ? value2 : secureFramesState.version; r0 = version != null && version !== END_TO_END_ENCRYPTION_DISABLED; } } return r0; }