decord/source/modules/collectibles/native/ProfileEffectSampleV2.tsx

58 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9245
// Function ID: 9246
2026-07-20 16:05:17 +00:00
// Name: ProfileEffectSample
2026-08-24 06:08:38 +00:00
// Dependencies: [17, 9244, 21, 4668, 712, 5454, 9246, 9247, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 9245 (ProfileEffectSample)
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import ThemesDefault from "Themes" /* 712 */;
import preloadDefault from "preload" /* 5454 */;
import SAMPLE_PROFILE_ASPECT_RATIO from "SAMPLE_PROFILE_ASPECT_RATIO" /* 9244 */;
import metadataDefault from "metadata" /* 9246 */;
import StaticEffectDefault from "StaticEffect" /* 9247 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const View = get_ActivityIndicator.View;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
let obj = { profileContainer: { position: "absolute", display: "flex", height: "100%", width: "100%" }, profileBackground: null, sampleProfileImage: null, profileBorder: null };
2026-08-24 06:08:38 +00:00
obj = { backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_SUBTLE };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-08-24 06:08:38 +00:00
obj[2] = { aspectRatio: SAMPLE_PROFILE_ASPECT_RATIO.SAMPLE_PROFILE_ASPECT_RATIO };
obj[3] = { position: "absolute", height: "100%", width: "100%", borderWidth: 1, borderColor: ThemesDefault.colors.BORDER_MUTED };
2026-07-29 08:29:29 +00:00
let closure_5 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
let obj1 = { position: "absolute", height: "100%", width: "100%", borderWidth: 1, borderColor: ThemesDefault.colors.BORDER_MUTED };
const result = set.fileFinishedImporting("modules/collectibles/native/ProfileEffectSampleV2.tsx");
2026-07-20 16:05:17 +00:00
export default function ProfileEffectSample(hideBackground) {
let flag = hideBackground.hideBackground;
if (flag === undefined) {
flag = false;
}
const tmp = callback2();
const items = [tmp.profileContainer, ];
let profileBackground = !flag;
2026-07-29 08:29:29 +00:00
if (!flag) {
2026-07-20 16:05:17 +00:00
profileBackground = tmp.profileBackground;
}
2026-07-29 08:29:29 +00:00
let obj = { style: items, children: null };
2026-07-20 16:05:17 +00:00
items[1] = profileBackground;
2026-07-29 08:29:29 +00:00
obj = { style: items1, source: null, accessible: false, resizeMode: "cover" };
2026-07-23 10:11:24 +00:00
items1 = [tmp.sampleProfileImage];
2026-08-24 06:08:38 +00:00
obj = { uri: metadataDefault };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-08-24 06:08:38 +00:00
const items2 = [callback(preloadDefault, obj), , ];
2026-07-29 08:29:29 +00:00
let tmp4Result = !flag;
if (!flag) {
2026-08-24 06:08:38 +00:00
obj1 = { style: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.profileBorder;
tmp4Result = tmp4(tmp3, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[1] = tmp4Result;
2026-08-24 06:08:38 +00:00
items2[2] = callback(StaticEffectDefault, { skuId: hideBackground.item.skuId, bannerAdjustment: 0, useThumbnail: true });
2026-07-29 08:29:29 +00:00
obj[1] = items2;
2026-07-20 16:05:17 +00:00
return closure_4(View, obj);
};