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

99 lines
4.6 KiB
TypeScript
Raw Normal View History

2026-08-04 08:36:32 +00:00
// Module ID: 12357
// Function ID: 12358
2026-07-23 10:11:24 +00:00
// Name: CollectionItem
2026-08-04 08:36:32 +00:00
// Dependencies: [19, 17, 21, 4285, 712, 12265, 12353, 4281, 2]
2026-07-23 10:11:24 +00:00
// Exports: default
2026-08-04 08:36:32 +00:00
// Module 12357 (CollectionItem)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
let obj1;
2026-07-23 10:11:24 +00:00
const require = arg1;
function CollectionItem(arg0) {
let componentConfig;
let resolveFieldValue;
({ componentConfig, resolveFieldValue } = arg0);
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
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-04 08:36:32 +00:00
const items = [require(12265) /* resolvedValuesFromUserApplicationIdentityProfile */.ResolvedValueType.MEDIA];
2026-07-23 10:11:24 +00:00
const fieldValue = resolveFieldValue(image, items);
2026-08-04 08:36:32 +00:00
let obj = require(12265) /* resolvedValuesFromUserApplicationIdentityProfile */;
2026-07-23 10:11:24 +00:00
const singleStringOrSkeleton = obj.resolveSingleStringOrSkeleton(componentConfig, "name", resolveFieldValue);
2026-08-04 08:36:32 +00:00
let obj1 = require(12265) /* 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-08-04 08:36:32 +00:00
tmp11 = callback(tmp3(12353).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-08-04 08:36:32 +00:00
let tmp12Result = tmp12(tmp3(4281).Text, obj4);
2026-07-23 10:11:24 +00:00
} else {
2026-08-04 08:36:32 +00:00
tmp12Result = tmp12(tmp3(12353).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-08-04 08:36:32 +00:00
tmp12Result = tmp12(tmp3(4281).Text, obj5);
2026-07-23 10:11:24 +00:00
} else {
2026-08-04 08:36:32 +00:00
tmp12Result = tmp12(tmp3(12353).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-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 };
createCacheKey = { flexDirection: "row", flexWrap: "wrap", rowGap: require("Themes").space.PX_16, columnGap: require("Themes").space.PX_16 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { width: "47%", flexDirection: "row", alignItems: "center", gap: require("Themes").space.PX_12 };
obj1 = { width: "47%", flexDirection: "row", alignItems: "center", gap: require("Themes").space.PX_12 };
createCacheKey[2] = { width: 48, height: 48, borderRadius: require("Themes").radii.sm, overflow: "hidden", backgroundColor: require("Themes").colors.BACKGROUND_MOD_SUBTLE };
let obj2 = { width: 48, height: 48, borderRadius: require("Themes").radii.sm, overflow: "hidden", backgroundColor: require("Themes").colors.BACKGROUND_MOD_SUBTLE };
createCacheKey[3] = { flex: 1, gap: require("Themes").space.PX_4, minWidth: 0 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
let obj3 = { flex: 1, gap: require("Themes").space.PX_4, minWidth: 0 };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/application_widget/native/UserProfileApplicationWidgetBottomCollectionLayout.tsx");
export default function UserProfileApplicationWidgetBottomCollectionLayout(arg0) {
let bottomConfig;
let resolveFieldValue;
({ bottomConfig, resolveFieldValue } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { style: createCacheKey().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);
};