/* Metro module 8849; source: modules/user_profile/native/UserProfileVoiceActivityIcon.tsx; dependencies: [31, 3784, 482, 33, 566, 8850, 5107, 6706, 6707, 6709, 6708, 6711, 2] */ import PermissionStore from '../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as ConstantsModule from '../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */ import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ function _fun69024(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9034:6, offset: 0x01c65707, size: 176 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; (FileImportTrackerModule).fileFinishedImporting('modules/user_profile/native/UserProfileVoiceActivityIcon.tsx'); exports.default = UserProfileVoiceActivityIcon; function UserProfileVoiceActivityIcon(a0) { // fn#69025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9034:255, offset: 0x01c657b7, size: 454 bytes, params: 2, frame: 19 const channel = a0.channel; const value = Object.create(null); value.channel = 0; const value2 = copyDataProperties({}, a0, value, undefined); const value4 = (FluxModule).useStateFromStores([PermissionStore], _fun69026); if (channel.isDM()) { const PhoneCallIcon = (require(8850) /* metro dependency 8850: PhoneCallIcon */).PhoneCallIcon; return ; } if (channel.isGroupDM()) { const PhoneCallIcon2 = (require(8850) /* metro dependency 8850: PhoneCallIcon */).PhoneCallIcon; return ; } const isGuildStageVoice2 = channel.isGuildStageVoice(); let r1 = value4 ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(channel) : !value4; if (isGuildStageVoice2 && r1) { const StageLockIcon = (require(6706) /* metro dependency 6706: StageLockIcon */).StageLockIcon; r1 = ; } else if (isGuildStageVoice2) { const StageIcon = (require(6707) /* metro dependency 6707: StageIcon */).StageIcon; r1 = ; } else if (channel.isNSFW()) { const VoiceWarningIcon = (require(6709) /* metro dependency 6709: VoiceWarningIcon */).VoiceWarningIcon; r1 = ; } else { r1 = ((Component) => )(r1 ? (require(6708) /* metro dependency 6708: VoiceLockIcon */).VoiceLockIcon : (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon); } return r1; function _fun69026() { // fn#69026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9034:349, offset: 0x01c6597d, size: 55 bytes, params: 1, frame: 14 return channel.isPrivate() || PermissionStore.can(Permissions.CONNECT, channel); } } } global.__d(_fun69024, 8849, [31, 3784, 482, 33, 566, 8850, 5107, 6706, 6707, 6709, 6708, 6711, 2]) /* metro module 8849, dependencies: [31, 3784, 482, 33, 566, 8850, 5107, 6706, 6707, 6709, 6708, 6711, 2] */;