2026-09-11 10:30:06 +00:00
|
|
|
// Module ID: 10985
|
|
|
|
|
// Function ID: 10986
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: UserProfileVoiceActivityIcon
|
2026-09-11 10:30:06 +00:00
|
|
|
// Dependencies: [19, 4245, 1085, 21, 504, 7955, 5114, 5148, 5149, 5151, 5150, 5153, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-11 10:30:06 +00:00
|
|
|
// Module 10985 (UserProfileVoiceActivityIcon)
|
|
|
|
|
import isRoleRequiredDefault from "isRoleRequired" /* 5114 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-11 10:30:06 +00:00
|
|
|
import PermissionStore from "PermissionStore" /* 4245 */;
|
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-11 10:30:06 +00:00
|
|
|
let tmp8Result = jsx(tmp2(5148).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-11 10:30:06 +00:00
|
|
|
tmp8Result = jsx(tmp2(5149).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-11 10:30:06 +00:00
|
|
|
tmp8Result = tmp8(tmp2(5151).VoiceWarningIcon, obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp6) {
|
2026-09-11 10:30:06 +00:00
|
|
|
let VoiceNormalIcon = tmp2(5150).VoiceLockIcon;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-11 10:30:06 +00:00
|
|
|
VoiceNormalIcon = tmp2(5153).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-11 10:30:06 +00:00
|
|
|
return jsx(channel(7955).PhoneCallIcon, {});
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|