decord/source/modules/application_widget/native/UserProfileApplicationWidgetBottomStatsLayout.tsx

61 lines
2.8 KiB
TypeScript
Raw Normal View History

// Module ID: 9150
// Function ID: 9151
2026-07-23 10:11:24 +00:00
// Name: UserProfileApplicationWidgetBottomStatsLayout
// Dependencies: [19, 17, 21, 4639, 576, 9058, 9145, 4635, 9146, 2]
2026-07-23 10:11:24 +00:00
// Exports: default
// Module 9150 (UserProfileApplicationWidgetBottomStatsLayout)
import nativeDefault from "native" /* 576 */;
import resolvedValuesFromUserApplicationIdentityProfile from "resolvedValuesFromUserApplicationIdentityProfile" /* 9058 */;
import UserProfileApplicationWidgetFieldUtils from "UserProfileApplicationWidgetFieldUtils" /* 9145 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: c3, jsxs: closure_4 } = jsxProd);
const createStyles = fn(4639);
let obj2 = { statsGrid: { flexDirection: "row", flexWrap: "wrap", rowGap: nativeDefault.space.PX_16, columnGap: nativeDefault.space.PX_12 }, stat: null };
let obj3 = { flexDirection: "row", flexWrap: "wrap", rowGap: nativeDefault.space.PX_16, columnGap: nativeDefault.space.PX_12 };
obj2.stat = { width: "47%", gap: nativeDefault.space.PX_4 };
let closure_5 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/application_widget/native/UserProfileApplicationWidgetBottomStatsLayout.tsx");
2026-07-23 10:11:24 +00:00
export default function UserProfileApplicationWidgetBottomStatsLayout(arg0) {
({ bottomConfig: require, resolveFieldValue: dependencyMap, numberFormat: View } = arg0);
const tmp = closure_5();
const stat = tmp;
2026-07-23 10:11:24 +00:00
let items = [1, 2, 3, 4, 5, 6];
const mapped = items.map((item) => resolvedValuesFromUserApplicationIdentityProfile.resolveStatComponentValues(components.components["stat_" + item], dependencyMap, View, UserProfileApplicationWidgetFieldUtils.formatDurationNarrow, true));
return stat(View, {
2026-07-23 10:11:24 +00:00
style: tmp.statsGrid,
children: mapped.map((item, index) => {
let iter = item;
if (null == item) {
2026-07-23 10:11:24 +00:00
return tmp;
} else {
const obj = { style: stat.stat, children: null };
let Text = require;
const obj2 = { field: iter.value, variant: "text-sm/medium", color: "text-default", skeletonWidthChars: 8 };
const items = [React3(UserProfileApplicationWidgetFieldUtils.FieldText, obj2), ];
2026-07-23 10:11:24 +00:00
if ("value" === iter.label.status) {
Text = Text(4635).Text;
const obj3 = { variant: "text-xs/normal", color: "text-muted", children: null };
2026-07-23 10:11:24 +00:00
iter = iter.label.text;
obj3.children = iter;
let tmp5Result = tmp5(Text, obj3);
2026-07-23 10:11:24 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp5Result = null;
2026-07-23 10:11:24 +00:00
if ("skeleton" === iter.label.status) {
tmp5Result = tmp5(Text(9146).TextSkeleton, { variant: "text-xs/normal", widthChars: 6 });
2026-07-23 10:11:24 +00:00
}
}
2026-07-29 08:29:29 +00:00
items[1] = tmp5Result;
obj.children = items;
React4(View, obj, index);
2026-07-23 10:11:24 +00:00
}
})
});
};