/* Metro module 10903; source: components_native/ChannelContainer.tsx; dependencies: [31, 27, 3785, 1379, 1934, 661, 1376, 33, 4501, 4010, 10904, 566, 10659, 6266, 3968, 1365, 11259, 11260, 10749, 2] */ function _fun83461(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11089:6, offset: 0x01f1b92d, size: 321 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importAll(31) /* metro dependency 31 */; const env0_4 = (require(27) /* metro dependency 27 */).View; const lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */; const env0_8 = (require(661) /* metro dependency 661: Constants */).ChannelTypes; const env0_9 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType; const value = require(33) /* metro dependency 33 */; const env0_10 = value.jsx; const env0_11 = value.jsxs; const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'position': 'absolute', 'left': 0, 'right': 0, 'backgroundColor': 'transparent', 'marginTop': 8}}); (require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/ChannelContainer.tsx'); exports.ChannelContainer = ChannelContainer; } function NotificationsContainer() { // fn#83462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11089:351, offset: 0x01f1ba6e, size: 111 bytes, params: 1, frame: 18 var r0; var value; const styles = useStyles(); if ((importDefault(4010) /* metro dependency 4010: useChatLayout */)().isChatBesideChannelList) { var viewBindingProps = {style: styles.container}; value = importDefault(10904) /* metro dependency 10904: Notifications */; value = {((Component) => )(value)}; r0 = value; } else { r0 = null; } return r0; } function ChannelContainer({guildId, channelId, children}) { // fn#83463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11089:582, offset: 0x01f1badd, size: 553 bytes, params: 2, frame: 25 const {channel, voiceChannelId, isStageChannel} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([SelectedChannelStore, ChannelStore], _fun83464); let r8 = isStageChannel ? (importDefault(10659) /* metro dependency 10659: useCanSpeakInChannel */)(voiceChannelId) : !isStageChannel; const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LurkingStore], _fun83465); const r12 = channel != null && channel.isPrivate(); const value9 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(r12); value9.useEffect(_fun83466, [channelId, (importDefault(6266) /* metro dependency 6266: usePrevious */)(channelId), r12, value9]); const value11 = (require(11259) /* metro dependency 11259: useChannelStylesShared */).useChannelStyles(); const scene = value11.scene; const flex = value11.flex; const type = channel?.type; const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT; const r10 = type !== GUILD_ANNOUNCEMENT ? null : value6 ? ((Component) => )(importDefault(11260) /* metro dependency 11260: AnnouncementChannelLurkerBar */) : null; r8 = r8 && ((Component) => )(importDefault(10749) /* metro dependency 10749: CallPTTButton */); return ( {r10} {children} {r8} ); } function _fun83464() { // fn#83464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11089:691, offset: 0x01f1bd06, size: 102 bytes, params: 1, frame: 14 var r1; let value = environment.__proto__; const voiceChannelId = SelectedChannelStore.getVoiceChannelId(); const object2 = {}; object2.channel = ChannelStore.getChannel(channelId); object2.voiceChannelId = voiceChannelId; const Boolean = global.Boolean; value = ChannelStore.getChannel(voiceChannelId); if (value == null) { r1 = undefined; } else { value = value.isGuildStageVoice(); r1 = value; } object2.isStageChannel = Boolean(r1); return object2; } function _fun83465() { // fn#83465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11089:964, offset: 0x01f1bd6c, size: 40 bytes, params: 1, frame: 12 return guildId != null && LurkingStore.isLurking(guildId); } function _fun83466() { // fn#83466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11089:1060, offset: 0x01f1bd94, size: 134 bytes, params: 1, frame: 16 var r1; var moduleValue; var value; let r0 = env0_3 && !env0_2; if (!r0) { r1 = env0_3 && env0_2; r1 = r1 && channelId !== env0_4; r0 = r1; } if (r0) { value = environment.__proto__; moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */; moduleValue.UNSAFE_markDismissibleContentAsDismissed((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.ACTIVITY_GDM_CALL_TOOLTIP, {dismissAction: ContentDismissActionType.AUTO}); } }