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

61 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 15382
// Function ID: 15383
// Dependencies: [19, 17, 21, 4661, 712, 1297, 12671, 4734, 2]
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 15382
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 createCacheKey from "createCacheKey";
import importAllResult from "noop";
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);
let obj = { videoIcon: null, wrapper: null, left: null, mid: null, right: null };
obj = { height: 16, width: 16, marginRight: 4, tintColor: require("Themes").colors.VOICE_CHANNEL_USER_LIMIT_ICON };
obj[0] = obj;
createCacheKey = { backgroundColor: require("Themes").colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND, alignItems: "center", flexDirection: "row", borderRadius: 10, borderWidth: require("Themes").modules.mobile.VOICE_CHANNEL_USER_LIMIT_BORDER_WIDTH, borderColor: require("Themes").colors.BORDER_SUBTLE, overflow: "hidden" };
obj[1] = createCacheKey;
obj[2] = { height: 20, flexDirection: "row", paddingLeft: 6, alignItems: "center", justifyContent: "center", backgroundColor: require("Themes").colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND };
let obj2 = { height: 20, flexDirection: "row", paddingLeft: 6, alignItems: "center", justifyContent: "center", backgroundColor: require("Themes").colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND };
obj[3] = { borderTopWidth: 20, borderBottomWidth: 0, borderTopColor: "transparent", borderBottomColor: "transparent", borderRightWidth: 6, borderRightColor: require("Themes").colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND, paddingRight: 2 };
let obj3 = { borderTopWidth: 20, borderBottomWidth: 0, borderTopColor: "transparent", borderBottomColor: "transparent", borderRightWidth: 6, borderRightColor: require("Themes").colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND, paddingRight: 2 };
obj[4] = { height: 20, flexDirection: "row", paddingRight: 6, paddingLeft: 2, alignItems: "center", justifyContent: "center", backgroundColor: require("Themes").colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND };
let closure_6 = createCacheKey.createStyles(obj);
let obj4 = { height: 20, flexDirection: "row", paddingRight: 6, paddingLeft: 2, alignItems: "center", justifyContent: "center", backgroundColor: require("Themes").colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND };
const memoResult = importAllResult.memo(function VoiceChannelUserLimit(videoLimit) {
2026-07-20 16:05:17 +00:00
let total;
let users;
({ 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-15 05:55:55 +00:00
obj[0] = importDefault(12671);
2026-07-29 08:29:29 +00:00
obj[1] = require(1297) /* Button */.Icon.Sizes.REFRESH_SMALL_16;
obj[2] = rect.videoIcon;
tmp3 = callback(require(1297) /* Button */.Icon, obj);
2026-07-20 16:05:17 +00:00
}
const items = [tmp3, ];
2026-07-29 08:29:29 +00:00
const obj1 = { variant: "text-xs/medium", lineClamp: 1, color: "voice-channel-user-limit-text", children: null };
obj1[3] = users.toString().padStart(2, "0");
2026-08-15 05:55:55 +00:00
items[1] = callback(require(4734) /* 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-15 05:55:55 +00:00
obj3[1] = callback(require(4734) /* 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-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/guild_sidebar/native/VoiceChannelUserLimit.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;