decord/source/modules/guild_sidebar/native/VoiceChannelUserLimit.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

57 lines
3.9 KiB
TypeScript

// Module ID: 16250
// Function ID: 16251
// Name: VoiceChannelUserLimit
// Dependencies: [19, 17, 21, 4638, 576, 1177, 13898, 4634, 2]
// Module 16250 (VoiceChannelUserLimit)
import nativeDefault from "native" /* 576 */;
import native from "native" /* 1177 */;
import Text_Text from "Text/Text" /* 4634 */;
import _modDef13898 from "module_13898" /* 13898 */;
import noop from "module_19" /* 19 */;
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
const createStyles = fn(4638);
let rect = { videoIcon: null, wrapper: null, left: null, mid: null, right: null };
let size = { height: 16, width: 16, marginRight: 4, tintColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_ICON };
rect.videoIcon = size;
rect.wrapper = { backgroundColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND, alignItems: "center", flexDirection: "row", borderRadius: 10, borderWidth: nativeDefault.modules.mobile.VOICE_CHANNEL_USER_LIMIT_BORDER_WIDTH, borderColor: nativeDefault.colors.BORDER_SUBTLE, overflow: "hidden" };
let obj = { backgroundColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND, alignItems: "center", flexDirection: "row", borderRadius: 10, borderWidth: nativeDefault.modules.mobile.VOICE_CHANNEL_USER_LIMIT_BORDER_WIDTH, borderColor: nativeDefault.colors.BORDER_SUBTLE, overflow: "hidden" };
rect.left = { height: 20, flexDirection: "row", paddingLeft: 6, alignItems: "center", justifyContent: "center", backgroundColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND };
let obj3 = { height: 20, flexDirection: "row", paddingLeft: 6, alignItems: "center", justifyContent: "center", backgroundColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND };
rect.mid = { borderTopWidth: 20, borderBottomWidth: 0, borderTopColor: "transparent", borderBottomColor: "transparent", borderRightWidth: 6, borderRightColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND, paddingRight: 2 };
let obj4 = { borderTopWidth: 20, borderBottomWidth: 0, borderTopColor: "transparent", borderBottomColor: "transparent", borderRightWidth: 6, borderRightColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND, paddingRight: 2 };
rect.right = { height: 20, flexDirection: "row", paddingRight: 6, paddingLeft: 2, alignItems: "center", justifyContent: "center", backgroundColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND };
let closure_6 = createStyles.createStyles(rect);
let obj5 = { height: 20, flexDirection: "row", paddingRight: 6, paddingLeft: 2, alignItems: "center", justifyContent: "center", backgroundColor: nativeDefault.colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND };
size = fn(2);
const result = size.fileFinishedImporting("modules/guild_sidebar/native/VoiceChannelUserLimit.tsx");
export default noop.memo(function VoiceChannelUserLimit(videoLimit) {
({ users, total } = videoLimit);
const rect = closure_6();
const obj = { style: rect.wrapper, children: null };
const obj2 = { style: rect.left, children: null };
let tmp3 = null;
if (videoLimit.videoLimit) {
const obj3 = { source: _modDef13898, size: native.Icon.Sizes.REFRESH_SMALL_16, style: rect.videoIcon };
tmp3 = React4(native.Icon, obj3);
}
const items = [tmp3, ];
const obj4 = { variant: "text-xs/medium", lineClamp: 1, color: "voice-channel-user-limit-text", children: users.toString().padStart(2, "0") };
items[1] = React4(Text_Text.Text, obj4);
obj2.children = items;
const items1 = [hasOwnProperty(View, obj2), React4(View, { style: rect.mid }), ];
const obj6 = { style: rect.right, children: null };
const obj7 = { variant: "text-xs/medium", lineClamp: 1, color: "voice-channel-user-limit-text", children: null };
const obj5 = { style: rect.mid };
const str = users.toString();
obj7.children = total.toString().padStart(2, "0");
obj6.children = React4(Text_Text.Text, obj7);
items1[2] = React4(View, obj6);
obj.children = items1;
return hasOwnProperty(View, obj);
});