decord/source/modules/activity_status/native/VoiceActivityStatus.tsx

84 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 9546
// Function ID: 9547
2026-07-20 16:05:17 +00:00
// Name: VoiceActivityStatus
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 21, 4255, 9547, 9536, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 9546 (VoiceActivityStatus)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c3, Fragment: c4, jsxs: c5 } = jsxProd);
let closure_6 = createCacheKey.createStyles({ icon: { flexShrink: 0 } });
const result = require("createCacheKey").fileFinishedImporting("modules/activity_status/native/VoiceActivityStatus.tsx");
2026-07-20 16:05:17 +00:00
export default function VoiceActivityStatus(hideText) {
let channel;
let hideIcon;
let maxFontSizeMultiplier;
let textStyle;
({ channel, textStyle, maxFontSizeMultiplier, hideIcon } = hideText);
if (hideIcon === undefined) {
hideIcon = false;
}
let flag = hideText.hideText;
if (flag === undefined) {
flag = false;
}
if (!hideIcon) {
let tmp5 = !hideIcon;
2026-07-29 08:29:29 +00:00
if (!hideIcon) {
let obj = { channel: null, size: "xxs", color: "status-positive", style: null };
obj[0] = channel;
2026-07-20 16:05:17 +00:00
const items = [tmp.icon, hideText.iconStyle];
2026-07-29 08:29:29 +00:00
obj[3] = items;
2026-08-05 07:35:12 +00:00
tmp5 = callback(importDefault(9547), obj);
2026-07-20 16:05:17 +00:00
}
const items1 = [tmp5, ];
2026-07-29 08:29:29 +00:00
if (flag) {
obj = { children: null };
2026-07-20 16:05:17 +00:00
items1[1] = tmp9;
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-07-20 16:05:17 +00:00
let tmp3Result = tmp3(tmp4, obj);
} else {
if (!channel.isDM()) {
if (!channel.isGroupDM()) {
2026-08-05 07:35:12 +00:00
const tmp14 = importDefault(9536);
2026-07-29 08:29:29 +00:00
obj = { style: null, maxFontSizeMultiplier: null, children: null };
obj[0] = textStyle;
obj[1] = maxFontSizeMultiplier;
const intl = require(1236) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const string = intl.string;
2026-07-29 08:29:29 +00:00
const t = require(1236) /* getSystemLocale */.t;
2026-07-20 16:05:17 +00:00
if (isGuildStageVoiceResult) {
2026-07-29 08:29:29 +00:00
obj[2] = string(t.QygGCN);
2026-07-20 16:05:17 +00:00
let tmp11Result = tmp11(tmp14, obj);
} else {
2026-07-29 08:29:29 +00:00
obj[2] = string(t.msxteM);
2026-07-20 16:05:17 +00:00
tmp11Result = tmp11(tmp14, obj);
}
2026-07-23 10:11:24 +00:00
isGuildStageVoiceResult = channel.isGuildStageVoice();
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const obj1 = { style: null, maxFontSizeMultiplier: null, children: null };
obj1[0] = textStyle;
obj1[1] = maxFontSizeMultiplier;
textStyle = require;
maxFontSizeMultiplier = require(1236) /* getSystemLocale */.intl;
obj1[2] = maxFontSizeMultiplier.string(require(1236) /* getSystemLocale */.t["9FaEzi"]);
2026-08-05 07:35:12 +00:00
tmp11Result = callback(importDefault(9536), obj1);
const tmp20 = importDefault(9536);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp3 = closure_5;
tmp4 = closure_4;
2026-07-20 16:05:17 +00:00
} else {
tmp3Result = null;
}
return tmp3Result;
};