decord/source/modules/user_profile/native/UserProfileSection.tsx

75 lines
2.9 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 11407
// Function ID: 11408
2026-07-20 16:05:17 +00:00
// Name: UserProfileSection
2026-09-03 10:05:34 +00:00
// Dependencies: [19, 17, 21, 4478, 709, 4204, 5984, 4326, 8382, 4474, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-03 10:05:34 +00:00
// Module 11407 (UserProfileSection)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
2026-09-02 09:53:35 +00:00
import ThemesDefault from "Themes" /* 709 */;
2026-09-01 10:26:29 +00:00
import ManaContext from "ManaContext" /* 4204 */;
2026-09-03 10:05:34 +00:00
import useProfileThemeValues from "useProfileThemeValues" /* 5984 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
createCacheKey = { titleContainer: { flexDirection: "row", marginBottom: 12, justifyContent: "space-between" }, title: { flexDirection: "row" }, section: { marginHorizontal: 12, marginTop: 12, marginBottom: 8 }, contentContainer: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { borderWidth: 1, borderRadius: ThemesDefault.radii.sm, borderColor: ThemesDefault.colors.BORDER_SUBTLE };
2026-07-29 08:29:29 +00:00
createCacheKey[3] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_5 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileSection.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileSection(title) {
title = title.title;
({ headerIcon, trailingIcon, showContainer, children, style } = title);
2026-07-29 08:29:29 +00:00
const merged = Object.assign(title, Object.create(null));
2026-08-24 06:08:38 +00:00
const tmp2 = callback2();
let obj = ManaContext;
2026-07-29 08:29:29 +00:00
const themeContext = obj.useThemeContext();
({ theme, primaryColor } = themeContext);
2026-08-24 06:08:38 +00:00
obj1 = useProfileThemeValues;
2026-07-29 08:29:29 +00:00
const profileThemeValues = obj1.useProfileThemeValues(theme);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(tmp2.contentContainer);
if (null != primaryColor) {
2026-07-20 16:05:17 +00:00
if (null != profileThemeValues) {
2026-09-03 10:05:34 +00:00
let borderColor = tmp3(4326).hexOpacityToRgba(tmp3(8382).DIVIDER_COLORS[theme], profileThemeValues.dividerOpacity);
2026-09-01 10:26:29 +00:00
const tmp3Result = tmp3(4326);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj.borderColor = borderColor;
obj = { style: null };
const items = [tmp2.section, style];
obj[0] = items;
2026-07-20 16:05:17 +00:00
const merged2 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
let tmp8Result = null;
2026-07-20 16:05:17 +00:00
if (null != title) {
2026-07-29 08:29:29 +00:00
obj1 = { style: null, children: null };
obj1[0] = tmp2.titleContainer;
const obj2 = { style: null, children: null };
obj2[0] = tmp2.title;
const obj3 = { variant: "eyebrow", accessibilityRole: "header", children: null };
obj3[2] = title;
2026-09-01 10:26:29 +00:00
const items1 = [callback(tmp3(4474).Text, obj3), headerIcon];
2026-07-29 08:29:29 +00:00
obj2[1] = items1;
const items2 = [tmp8(tmp9, obj2), trailingIcon];
obj1[1] = items2;
tmp8Result = tmp8(tmp9, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items3 = [tmp8Result, ];
let tmp16 = null;
2026-07-20 16:05:17 +00:00
if (showContainer) {
2026-07-29 08:29:29 +00:00
tmp16 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj4 = { style: null, children: null };
obj4[0] = tmp16;
obj4[1] = children;
2026-07-20 16:05:17 +00:00
items3[1] = callback(View, obj4);
2026-07-29 08:29:29 +00:00
obj.children = items3;
return closure_4(View, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
borderColor = tmp2.contentContainer.borderColor;
2026-07-20 16:05:17 +00:00
};