decord/source/modules/guild_sidebar/native/VoiceUserSummary.tsx

67 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 15037
// Function ID: 114609
2026-07-20 16:05:17 +00:00
// Name: VOICE_USER_SUMMARY_HEIGHT
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 33, 1273, 4131, 8757, 8756, 4655, 4659, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 15037 (VOICE_USER_SUMMARY_HEIGHT)
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
import importAllResult from "result";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_4;
let closure_5;
const require = arg1;
({ jsx: closure_4, jsxs: closure_5 } = jsxProd);
let closure_6 = Object.freeze({ direction: require("Button").CutoutDirection.RIGHT, inset: -2 });
let closure_7 = _createForOfIteratorHelperLoose.createStyles({ container: { flexDirection: "row", alignItems: "center", paddingHorizontal: 16, height: 40 }, containerNoPadding: { flexDirection: "row", alignItems: "center", height: 40 }, iconContainer: { height: 40 }, redesignChannelIcon: { marginRight: 4 }, overflow: { height: 20, paddingHorizontal: 4, paddingVertical: 0, display: "flex", flexDirection: "row", alignItems: "center" }, transparentBorder: { borderColor: "transparent" } });
let obj = { direction: require("Button").CutoutDirection.RIGHT, inset: -2 };
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo((guildId) => {
let max;
let noPadding;
let renderIcon;
let stageIcon;
let users;
2026-07-23 10:11:24 +00:00
guildId = guildId.guildId;
2026-07-20 16:05:17 +00:00
({ users, max, renderIcon, noPadding, stageIcon } = guildId);
const tmp = callback2();
let transparentBorder = null;
2026-07-25 08:10:48 +00:00
if (importDefault(8757)()) {
2026-07-20 16:05:17 +00:00
transparentBorder = tmp.transparentBorder;
}
2026-07-25 08:10:48 +00:00
let obj = guildId(8756);
2026-07-20 16:05:17 +00:00
obj = {};
const items = [noPadding ? tmp.containerNoPadding : tmp.container, obj.useClientThemesOverride()];
obj.style = items;
if (renderIcon) {
if (stageIcon) {
2026-07-25 08:10:48 +00:00
let VoiceNormalIcon = guildId(4655).StageIcon;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj = { size: "sm", color: "channel-icon", style: tmp.redesignChannelIcon };
2026-07-20 16:05:17 +00:00
const items1 = [tmp5(VoiceNormalIcon, obj), ];
const obj1 = { offsetAmount: -6, style: tmp.iconContainer };
const items2 = [tmp.overflow, transparentBorder];
obj1.overflowStyle = items2;
2026-07-23 10:11:24 +00:00
obj1.overflowComponent = guildId(1273).OverflowTextSmall;
2026-07-20 16:05:17 +00:00
obj1.items = users;
obj1.max = max;
obj1.renderItem = function renderItem(user) {
2026-07-23 10:11:24 +00:00
const obj = { user, guildId, size: guildId(outer1_2[3]).AvatarSizes.XSMALL_20 };
2026-07-20 16:05:17 +00:00
let tmp2;
if (!arg1) {
2026-07-23 10:11:24 +00:00
tmp2 = outer1_6;
2026-07-20 16:05:17 +00:00
}
obj.cutout = tmp2;
2026-07-23 10:11:24 +00:00
return outer1_4(guildId(outer1_2[3]).CutoutableAvatarImage, obj);
2026-07-20 16:05:17 +00:00
};
2026-07-23 10:11:24 +00:00
items1[1] = callback(guildId(1273).SummarizedIconRow, obj1);
2026-07-20 16:05:17 +00:00
obj.children = items1;
return tmp3(tmp4, obj);
}
2026-07-25 08:10:48 +00:00
VoiceNormalIcon = guildId(4659).VoiceNormalIcon;
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/guild_sidebar/native/VoiceUserSummary.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;
export const VOICE_USER_SUMMARY_HEIGHT = 40;