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

94 lines
4.6 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 12763
// Function ID: 12764
2026-07-23 10:11:24 +00:00
// Name: CollectionItem
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 17, 21, 4478, 712, 12669, 12757, 4474, 2]
2026-07-23 10:11:24 +00:00
// Exports: default
2026-09-01 10:26:29 +00:00
// Module 12763 (CollectionItem)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
2026-09-01 10:26:29 +00:00
import resolvedValuesFromUserApplicationIdentityProfile from "resolvedValuesFromUserApplicationIdentityProfile" /* 12669 */;
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator 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;
2026-07-23 10:11:24 +00:00
function CollectionItem(arg0) {
({ componentConfig, resolveFieldValue } = arg0);
2026-08-24 06:08:38 +00:00
const tmp = callback3();
2026-07-23 10:11:24 +00:00
let image;
2026-07-29 08:29:29 +00:00
if (componentConfig != null) {
2026-07-23 10:11:24 +00:00
image = componentConfig.fields.image;
}
2026-08-24 06:08:38 +00:00
const items = [resolvedValuesFromUserApplicationIdentityProfile.ResolvedValueType.MEDIA];
2026-07-23 10:11:24 +00:00
const fieldValue = resolveFieldValue(image, items);
2026-08-24 06:08:38 +00:00
let obj = resolvedValuesFromUserApplicationIdentityProfile;
2026-07-23 10:11:24 +00:00
const singleStringOrSkeleton = obj.resolveSingleStringOrSkeleton(componentConfig, "name", resolveFieldValue);
2026-08-24 06:08:38 +00:00
obj1 = resolvedValuesFromUserApplicationIdentityProfile;
2026-07-23 10:11:24 +00:00
const singleStringOrSkeleton1 = obj1.resolveSingleStringOrSkeleton(componentConfig, "description", resolveFieldValue);
2026-07-29 08:29:29 +00:00
obj = { style: tmp.item, children: null };
2026-07-23 10:11:24 +00:00
if (null != fieldValue) {
2026-07-29 08:29:29 +00:00
obj = { source: null, style: null, resizeMode: "contain" };
obj1 = { uri: null };
obj1[0] = fieldValue.media.url;
obj[0] = obj1;
obj[1] = tmp.itemImage;
2026-07-23 10:11:24 +00:00
let tmp11 = callback(closure_2, obj);
2026-07-29 08:29:29 +00:00
let tmp12 = callback;
2026-07-23 10:11:24 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj2 = { style: null };
obj2[0] = tmp.itemImage;
2026-09-01 10:26:29 +00:00
tmp11 = callback(tmp3(12757).ImageSkeleton, obj2);
2026-07-29 08:29:29 +00:00
tmp12 = callback;
2026-07-23 10:11:24 +00:00
}
const items1 = [tmp11, ];
2026-07-29 08:29:29 +00:00
const obj3 = { style: tmp.itemContent, children: null };
2026-07-23 10:11:24 +00:00
if ("value" === singleStringOrSkeleton.status) {
2026-07-29 08:29:29 +00:00
const obj4 = { variant: "text-xs/medium", lineClamp: 2, children: null };
obj4[2] = singleStringOrSkeleton.text;
2026-09-01 10:26:29 +00:00
let tmp12Result = tmp12(tmp3(4474).Text, obj4);
2026-07-23 10:11:24 +00:00
} else {
2026-09-01 10:26:29 +00:00
tmp12Result = tmp12(tmp3(12757).TextSkeleton, { variant: "text-xs/medium", widthChars: 6 });
2026-07-23 10:11:24 +00:00
}
2026-07-29 08:29:29 +00:00
const items2 = [tmp12Result, ];
2026-07-23 10:11:24 +00:00
if ("value" === singleStringOrSkeleton1.status) {
2026-07-29 08:29:29 +00:00
const obj5 = { variant: "text-xxs/medium", color: "text-subtle", lineClamp: 2, children: null };
obj5[3] = singleStringOrSkeleton1.text;
2026-09-01 10:26:29 +00:00
tmp12Result = tmp12(tmp3(4474).Text, obj5);
2026-07-23 10:11:24 +00:00
} else {
2026-09-01 10:26:29 +00:00
tmp12Result = tmp12(tmp3(12757).TextSkeleton, { variant: "text-xxs/medium", widthChars: 10 });
2026-07-23 10:11:24 +00:00
}
2026-07-29 08:29:29 +00:00
items2[1] = tmp12Result;
obj3[1] = items2;
2026-07-23 10:11:24 +00:00
items1[1] = closure_5(closure_3, obj3);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-23 10:11:24 +00:00
return closure_5(closure_3, obj);
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ Image: obj1, View: c3 } = get_ActivityIndicator);
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { grid: null, item: null, itemImage: null, itemContent: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flexDirection: "row", flexWrap: "wrap", rowGap: ThemesDefault.space.PX_16, columnGap: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { width: "47%", flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_12 };
obj1 = { width: "47%", flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_12 };
createCacheKey[2] = { width: 48, height: 48, borderRadius: ThemesDefault.radii.sm, overflow: "hidden", backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_SUBTLE };
let obj2 = { width: 48, height: 48, borderRadius: ThemesDefault.radii.sm, overflow: "hidden", backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_SUBTLE };
createCacheKey[3] = { flex: 1, gap: ThemesDefault.space.PX_4, minWidth: 0 };
let closure_6 = createCacheKey.createStyles(createCacheKey);
let obj3 = { flex: 1, gap: ThemesDefault.space.PX_4, minWidth: 0 };
const result = require("set").fileFinishedImporting("modules/application_widget/native/UserProfileApplicationWidgetBottomCollectionLayout.tsx");
2026-07-23 10:11:24 +00:00
export default function UserProfileApplicationWidgetBottomCollectionLayout(arg0) {
({ bottomConfig, resolveFieldValue } = arg0);
2026-08-24 06:08:38 +00:00
let obj = { style: callback3().grid, children: null };
2026-07-23 10:11:24 +00:00
obj = { componentConfig: bottomConfig.components.item_1, resolveFieldValue };
const items = [callback(CollectionItem, obj), , , ];
obj = { componentConfig: bottomConfig.components.item_2, resolveFieldValue };
items[1] = callback(CollectionItem, obj);
items[2] = callback(CollectionItem, { componentConfig: bottomConfig.components.item_3, resolveFieldValue });
items[3] = callback(CollectionItem, { componentConfig: bottomConfig.components.item_4, resolveFieldValue });
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-23 10:11:24 +00:00
return callback2(closure_3, obj);
};