49 lines
3.1 KiB
TypeScript
49 lines
3.1 KiB
TypeScript
/* Metro module 8849; source: modules/user_profile/native/UserProfileVoiceActivityIcon.tsx; dependencies: [31, 3784, 482, 33, 566, 8850, 5107, 6706, 6707, 6709, 6708, 6711, 2] */
|
|
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});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
|
const env0_4 = (require(482) /* metro dependency 482: Constants */).Permissions;
|
|
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).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 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun69026);
|
|
if (channel.isDM()) {
|
|
const PhoneCallIcon = (require(8850) /* metro dependency 8850: PhoneCallIcon */).PhoneCallIcon;
|
|
return <PhoneCallIcon {...value2} />;
|
|
}
|
|
if (channel.isGroupDM()) {
|
|
const PhoneCallIcon2 = (require(8850) /* metro dependency 8850: PhoneCallIcon */).PhoneCallIcon;
|
|
return <PhoneCallIcon2 {...value2} />;
|
|
}
|
|
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 = <StageLockIcon {...value2} />;
|
|
} else if (isGuildStageVoice2) {
|
|
const StageIcon = (require(6707) /* metro dependency 6707: StageIcon */).StageIcon;
|
|
r1 = <StageIcon {...value2} />;
|
|
} else if (channel.isNSFW()) {
|
|
const VoiceWarningIcon = (require(6709) /* metro dependency 6709: VoiceWarningIcon */).VoiceWarningIcon;
|
|
r1 = <VoiceWarningIcon {...value2} />;
|
|
} else {
|
|
r1 = ((Component) => <Component {...value2} />)(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);
|
|
}
|
|
|