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

79 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9013
2026-07-27 11:26:19 +00:00
// Function ID: 70913
2026-07-20 16:05:17 +00:00
// Name: VoiceActivityStatus
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 33, 4131, 9014, 9003, 1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 9013 (VoiceActivityStatus)
2026-07-23 10:11:24 +00:00
import "result";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_3;
let closure_4;
let closure_5;
const require = arg1;
({ jsx: closure_3, Fragment: closure_4, jsxs: closure_5 } = jsxProd);
let closure_6 = _createForOfIteratorHelperLoose.createStyles({ icon: { flexShrink: 0 } });
const result = require("_createForOfIteratorHelperLoose").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 obj = {};
let tmp5 = !hideIcon;
if (tmp5) {
2026-07-23 10:11:24 +00:00
obj = { channel, size: "xxs", color: "status-positive" };
2026-07-20 16:05:17 +00:00
const items = [tmp.icon, hideText.iconStyle];
obj.style = items;
2026-07-25 08:10:48 +00:00
tmp5 = callback(importDefault(9014), obj);
2026-07-20 16:05:17 +00:00
}
const items1 = [tmp5, ];
if (!!flag) {
items1[1] = tmp9;
obj.children = items1;
let tmp3Result = tmp3(tmp4, obj);
} else {
if (!channel.isDM()) {
if (!channel.isGroupDM()) {
2026-07-25 08:10:48 +00:00
const tmp14 = importDefault(9003);
2026-07-20 16:05:17 +00:00
obj = { style: textStyle, maxFontSizeMultiplier };
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const string = intl.string;
2026-07-23 10:11:24 +00:00
const t = require(1212) /* getSystemLocale */.t;
2026-07-20 16:05:17 +00:00
if (isGuildStageVoiceResult) {
obj.children = string(t.QygGCN);
let tmp11Result = tmp11(tmp14, obj);
} else {
obj.children = string(t.msxteM);
tmp11Result = tmp11(tmp14, obj);
}
2026-07-23 10:11:24 +00:00
isGuildStageVoiceResult = channel.isGuildStageVoice();
2026-07-20 16:05:17 +00:00
}
}
const obj1 = { style: textStyle, maxFontSizeMultiplier };
2026-07-23 10:11:24 +00:00
textStyle = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
maxFontSizeMultiplier = textStyle.string;
2026-07-23 10:11:24 +00:00
obj1.children = maxFontSizeMultiplier(require(1212) /* getSystemLocale */.t["9FaEzi"]);
2026-07-25 08:10:48 +00:00
tmp11Result = callback(importDefault(9003), obj1);
const tmp20 = importDefault(9003);
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;
};