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

70 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 15392
// Function ID: 15393
2026-07-20 16:05:17 +00:00
// Name: VOICE_USER_SUMMARY_HEIGHT
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 21, 1297, 4661, 8502, 8501, 6892, 6896, 2]
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 15392 (VOICE_USER_SUMMARY_HEIGHT)
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
2026-07-23 10:11:24 +00:00
let closure_6 = Object.freeze({ direction: require("Button").CutoutDirection.RIGHT, inset: -2 });
2026-07-29 08:29:29 +00:00
let closure_7 = createCacheKey.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" } });
2026-07-23 10:11:24 +00:00
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);
2026-07-29 08:29:29 +00:00
const tmp = callback();
2026-07-20 16:05:17 +00:00
let transparentBorder = null;
2026-08-15 05:55:55 +00:00
if (importDefault(8502)()) {
2026-07-20 16:05:17 +00:00
transparentBorder = tmp.transparentBorder;
}
2026-08-15 05:55:55 +00:00
let obj = guildId(8501);
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items = [noPadding ? tmp.containerNoPadding : tmp.container, obj.useClientThemesOverride()];
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-07-20 16:05:17 +00:00
if (renderIcon) {
if (stageIcon) {
2026-08-15 05:55:55 +00:00
let VoiceNormalIcon = tmp4(6892).StageIcon;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { size: "sm", color: "channel-icon", style: null };
obj[2] = tmp.redesignChannelIcon;
const items1 = [tmp7(VoiceNormalIcon, obj), ];
const obj1 = { offsetAmount: -6, style: null, overflowStyle: null, overflowComponent: null, items: null, max: null, renderItem: null };
obj1[1] = tmp.iconContainer;
2026-07-20 16:05:17 +00:00
const items2 = [tmp.overflow, transparentBorder];
2026-07-29 08:29:29 +00:00
obj1[2] = items2;
obj1[3] = tmp4(1297).OverflowTextSmall;
obj1[4] = users;
obj1[5] = max;
obj1[6] = function renderItem(user) {
const obj = { user, guildId, size: null, cutout: null };
obj[2] = 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
}
2026-07-29 08:29:29 +00:00
obj[3] = 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-29 08:29:29 +00:00
items1[1] = tmp7(tmp4(1297).SummarizedIconRow, obj1);
obj[1] = items1;
return tmp5(tmp6, obj);
2026-07-20 16:05:17 +00:00
}
2026-08-15 05:55:55 +00:00
VoiceNormalIcon = tmp4(6896).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;