/* Metro module 7856; source: modules/video_calls/native/useIsFiveButtonLayout.tsx; dependencies: [1379, 1867, 566, 7721, 7857, 7859, 6861, 2] */ import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */ import UseIsRemote from '../../game_console/hooks/useIsRemote.tsx'; /* Metro dependency 6861 */ import UseIsActivitiesAvailableInShelf from '../../activities/useIsActivitiesAvailableInShelf.tsx'; /* Metro dependency 7857 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as VoiceChatHooksModule from '../../voice_chat/VoiceChatHooks.tsx'; /* Metro dependency 7721 */ function _fun62719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8034:6, offset: 0x01b64b5d, size: 132 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/video_calls/native/useIsFiveButtonLayout.tsx'); exports.useIsFiveButtonLayout = useIsFiveButtonLayout; function useIsFiveButtonLayout(a0) { // fn#62720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8034:226, offset: 0x01b64be1, size: 380 bytes, params: 2, frame: 23 const env0_0 = a0; const value2 = undefined; const channel = (FluxModule).useStateFromStores([ChannelStore], _fun62721); const value3 = (VoiceChatHooksModule).useIsConnectedToVoiceChannel(channel); const value4 = null; let guild_id = value4 == channel ? value2 : channel.guild_id; const r12 = value4 != guild_id ? guild_id : value4; const defaultImport = UseIsActivitiesAvailableInShelf; guild_id = value4 == channel ? value2 : channel.guild_id; const value5 = defaultImport(value4 != guild_id ? guild_id : value4, value4 == channel ? value2 : channel.id); const value6 = (FluxModule).useStateFromStores([GuildStore], _fun62722, [r12]); const afkChannelId = value4 == value6 ? value2 : value6.afkChannelId; const r8 = value4 == channel ? value2 : channel.isGuildVoice(); const r4 = value4 != r8 && r8; const value8 = (importDefault(7859) /* metro dependency 7859: useIsPrivateChannelWithEnabledActivities */)(value4 == channel ? value2 : channel.id); const value = (UseIsRemote)(); let r0 = value3 && value5 && (!r4 ? value8 : r4); r0 = r0 && !value && !(afkChannelId === a0); return r0; function _fun62721() { // fn#62721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8034:274, offset: 0x01b64d5d, size: 26 bytes, params: 1, frame: 11 return ChannelStore.getChannel(env0_0); } function _fun62722() { // fn#62722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8034:491, offset: 0x01b64d77, size: 27 bytes, params: 1, frame: 11 return GuildStore.getGuild(env0_1); } } } global.__d(_fun62719, 7856, [1379, 1867, 566, 7721, 7857, 7859, 6861, 2]) /* metro module 7856, dependencies: [1379, 1867, 566, 7721, 7857, 7859, 6861, 2] */;