2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 10926
|
|
|
|
|
// Function ID: 10927
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: UserProfileVoiceActivityIcon
|
2026-09-10 05:38:07 +00:00
|
|
|
// Dependencies: [19, 4212, 1085, 21, 504, 7894, 5076, 5110, 5111, 5113, 5112, 5115, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 10926 (UserProfileVoiceActivityIcon)
|
|
|
|
|
import isRoleRequiredDefault from "isRoleRequired" /* 5076 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
import PermissionStore from "PermissionStore" /* 4212 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = fn;
|
|
|
|
|
const Permissions = fn(1085).Permissions;
|
|
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileVoiceActivityIcon.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function UserProfileVoiceActivityIcon(channel) {
|
|
|
|
|
channel = channel.channel;
|
2026-09-10 05:38:07 +00:00
|
|
|
const merged = Object.assign(channel, Object.assign({ channel: 0 }));
|
|
|
|
|
const items = [PermissionStore];
|
|
|
|
|
const stateFromStores = channel(504).useStateFromStores(items, () => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let isPrivateResult = channel.isPrivate();
|
|
|
|
|
if (!isPrivateResult) {
|
2026-09-10 05:38:07 +00:00
|
|
|
isPrivateResult = PermissionStore.can(Permissions.CONNECT, channel);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return isPrivateResult;
|
|
|
|
|
});
|
|
|
|
|
if (!channel.isDM()) {
|
|
|
|
|
if (!channel.isGroupDM()) {
|
|
|
|
|
const isGuildStageVoiceResult = channel.isGuildStageVoice();
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp6 = !stateFromStores;
|
|
|
|
|
if (stateFromStores) {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp6 = isRoleRequiredDefault(channel);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (isGuildStageVoiceResult) {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp6) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged1 = Object.assign(merged);
|
2026-09-10 05:38:07 +00:00
|
|
|
let tmp8Result = jsx(tmp2(5110).StageLockIcon, {});
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp8Result;
|
|
|
|
|
}
|
|
|
|
|
if (isGuildStageVoiceResult) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj3 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged2 = Object.assign(merged);
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp8Result = jsx(tmp2(5111).StageIcon, {});
|
2026-07-20 16:05:17 +00:00
|
|
|
} else if (channel.isNSFW()) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj4 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged3 = Object.assign(merged);
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp8Result = tmp8(tmp2(5113).VoiceWarningIcon, obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp6) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let VoiceNormalIcon = tmp2(5112).VoiceLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
VoiceNormalIcon = tmp2(5115).VoiceNormalIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj5 = {};
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged4 = Object.assign(merged);
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp8Result = tmp8(VoiceNormalIcon, obj5);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const merged5 = Object.assign(merged);
|
2026-09-10 05:38:07 +00:00
|
|
|
return jsx(channel(7894).PhoneCallIcon, {});
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|