83 lines
2.6 KiB
TypeScript
83 lines
2.6 KiB
TypeScript
// Module ID: 9546
|
|
// Function ID: 9547
|
|
// Name: VoiceActivityStatus
|
|
// Dependencies: [19, 21, 4255, 9547, 9536, 1236, 2]
|
|
// Exports: default
|
|
|
|
// Module 9546 (VoiceActivityStatus)
|
|
import "noop";
|
|
import jsxProd from "jsxProd";
|
|
import createCacheKey from "createCacheKey";
|
|
|
|
let c3;
|
|
let c4;
|
|
let c5;
|
|
const require = arg1;
|
|
({ 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");
|
|
|
|
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;
|
|
if (!hideIcon) {
|
|
let obj = { channel: null, size: "xxs", color: "status-positive", style: null };
|
|
obj[0] = channel;
|
|
const items = [tmp.icon, hideText.iconStyle];
|
|
obj[3] = items;
|
|
tmp5 = callback(importDefault(9547), obj);
|
|
}
|
|
const items1 = [tmp5, ];
|
|
if (flag) {
|
|
obj = { children: null };
|
|
items1[1] = tmp9;
|
|
obj[0] = items1;
|
|
let tmp3Result = tmp3(tmp4, obj);
|
|
} else {
|
|
if (!channel.isDM()) {
|
|
if (!channel.isGroupDM()) {
|
|
const tmp14 = importDefault(9536);
|
|
obj = { style: null, maxFontSizeMultiplier: null, children: null };
|
|
obj[0] = textStyle;
|
|
obj[1] = maxFontSizeMultiplier;
|
|
const intl = require(1236) /* getSystemLocale */.intl;
|
|
const string = intl.string;
|
|
const t = require(1236) /* getSystemLocale */.t;
|
|
if (isGuildStageVoiceResult) {
|
|
obj[2] = string(t.QygGCN);
|
|
let tmp11Result = tmp11(tmp14, obj);
|
|
} else {
|
|
obj[2] = string(t.msxteM);
|
|
tmp11Result = tmp11(tmp14, obj);
|
|
}
|
|
isGuildStageVoiceResult = channel.isGuildStageVoice();
|
|
}
|
|
}
|
|
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"]);
|
|
tmp11Result = callback(importDefault(9536), obj1);
|
|
const tmp20 = importDefault(9536);
|
|
}
|
|
tmp3 = closure_5;
|
|
tmp4 = closure_4;
|
|
} else {
|
|
tmp3Result = null;
|
|
}
|
|
return tmp3Result;
|
|
};
|