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

60 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 15477
// Function ID: 15478
// Dependencies: [19, 17, 21, 4380, 712, 1297, 13259, 4376, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 15477
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import Button from "Button" /* 1297 */;
2026-08-25 06:04:03 +00:00
import Text from "Text" /* 4376 */;
import registerAssetDefault from "registerAsset" /* 13259 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
let obj = { videoIcon: null, wrapper: null, left: null, mid: null, right: null };
2026-08-24 06:08:38 +00:00
obj = { height: 16, width: 16, marginRight: 4, tintColor: ThemesDefault.colors.VOICE_CHANNEL_USER_LIMIT_ICON };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
createCacheKey = { backgroundColor: ThemesDefault.colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND, alignItems: "center", flexDirection: "row", borderRadius: 10, borderWidth: ThemesDefault.modules.mobile.VOICE_CHANNEL_USER_LIMIT_BORDER_WIDTH, borderColor: ThemesDefault.colors.BORDER_SUBTLE, overflow: "hidden" };
2026-07-29 08:29:29 +00:00
obj[1] = createCacheKey;
2026-08-24 06:08:38 +00:00
obj[2] = { height: 20, flexDirection: "row", paddingLeft: 6, alignItems: "center", justifyContent: "center", backgroundColor: ThemesDefault.colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND };
let obj2 = { height: 20, flexDirection: "row", paddingLeft: 6, alignItems: "center", justifyContent: "center", backgroundColor: ThemesDefault.colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND };
obj[3] = { borderTopWidth: 20, borderBottomWidth: 0, borderTopColor: "transparent", borderBottomColor: "transparent", borderRightWidth: 6, borderRightColor: ThemesDefault.colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND, paddingRight: 2 };
let obj3 = { borderTopWidth: 20, borderBottomWidth: 0, borderTopColor: "transparent", borderBottomColor: "transparent", borderRightWidth: 6, borderRightColor: ThemesDefault.colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND, paddingRight: 2 };
obj[4] = { height: 20, flexDirection: "row", paddingRight: 6, paddingLeft: 2, alignItems: "center", justifyContent: "center", backgroundColor: ThemesDefault.colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND };
2026-07-29 08:29:29 +00:00
let closure_6 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
let obj4 = { height: 20, flexDirection: "row", paddingRight: 6, paddingLeft: 2, alignItems: "center", justifyContent: "center", backgroundColor: ThemesDefault.colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND };
2026-07-29 08:29:29 +00:00
const memoResult = importAllResult.memo(function VoiceChannelUserLimit(videoLimit) {
2026-07-20 16:05:17 +00:00
({ users, total } = videoLimit);
const rect = callback2();
2026-07-29 08:29:29 +00:00
let obj = { style: rect.wrapper, children: null };
obj = { style: rect.left, children: null };
2026-07-20 16:05:17 +00:00
let tmp3 = null;
if (videoLimit.videoLimit) {
2026-07-29 08:29:29 +00:00
obj = { source: null, size: null, style: null };
2026-08-24 06:08:38 +00:00
obj[0] = registerAssetDefault;
obj[1] = Button.Icon.Sizes.REFRESH_SMALL_16;
2026-07-29 08:29:29 +00:00
obj[2] = rect.videoIcon;
2026-08-24 06:08:38 +00:00
tmp3 = callback(Button.Icon, obj);
2026-07-20 16:05:17 +00:00
}
const items = [tmp3, ];
2026-08-24 06:08:38 +00:00
obj1 = { variant: "text-xs/medium", lineClamp: 1, color: "voice-channel-user-limit-text", children: users.toString().padStart(2, "0") };
items[1] = callback(Text.Text, obj1);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
const items1 = [closure_5(View, obj), callback(View, { style: rect.mid }), ];
2026-07-29 08:29:29 +00:00
const obj3 = { style: rect.right, children: null };
const obj4 = { variant: "text-xs/medium", lineClamp: 1, color: "voice-channel-user-limit-text", children: null };
2026-07-20 16:05:17 +00:00
const obj2 = { style: rect.mid };
const str = users.toString();
2026-07-29 08:29:29 +00:00
obj4[3] = total.toString().padStart(2, "0");
2026-08-24 06:08:38 +00:00
obj3[1] = callback(Text.Text, obj4);
2026-07-20 16:05:17 +00:00
items1[2] = callback(View, obj3);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-20 16:05:17 +00:00
return closure_5(View, obj);
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/guild_sidebar/native/VoiceChannelUserLimit.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;