decord/source/modules/collectibles/native/ProfileEffectSampleV2.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

57 lines
2.4 KiB
TypeScript

// Module ID: 8799
// Function ID: 8800
// Name: ProfileEffectSample
// Dependencies: [17, 8798, 21, 4560, 576, 5587, 8800, 8801, 2]
// Exports: default
// Module 8799 (ProfileEffectSample)
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import ThemesDefault from "Themes" /* 576 */;
import preloadDefault from "preload" /* 5587 */;
import SAMPLE_PROFILE_ASPECT_RATIO from "SAMPLE_PROFILE_ASPECT_RATIO" /* 8798 */;
import metadataDefault from "metadata" /* 8800 */;
import StaticEffectDefault from "StaticEffect" /* 8801 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
const View = get_ActivityIndicator.View;
({ jsx: c3, jsxs: c4 } = jsxProd);
let obj = { profileContainer: { position: "absolute", display: "flex", height: "100%", width: "100%" }, profileBackground: null, sampleProfileImage: null, profileBorder: null };
obj = { backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_SUBTLE };
obj[1] = obj;
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 };
let closure_5 = createCacheKey.createStyles(obj);
let obj1 = { position: "absolute", height: "100%", width: "100%", borderWidth: 1, borderColor: ThemesDefault.colors.BORDER_MUTED };
const result = set.fileFinishedImporting("modules/collectibles/native/ProfileEffectSampleV2.tsx");
export default function ProfileEffectSample(hideBackground) {
let flag = hideBackground.hideBackground;
if (flag === undefined) {
flag = false;
}
const tmp = callback2();
const items = [tmp.profileContainer, ];
let profileBackground = !flag;
if (!flag) {
profileBackground = tmp.profileBackground;
}
let obj = { style: items, children: null };
items[1] = profileBackground;
obj = { style: items1, source: null, accessible: false, resizeMode: "cover" };
items1 = [tmp.sampleProfileImage];
obj = { uri: metadataDefault };
obj[1] = obj;
const items2 = [callback(preloadDefault, obj), , ];
let tmp4Result = !flag;
if (!flag) {
obj1 = { style: null };
obj1[0] = tmp.profileBorder;
tmp4Result = tmp4(tmp3, obj1);
}
items2[1] = tmp4Result;
items2[2] = callback(StaticEffectDefault, { skuId: hideBackground.item.skuId, bannerAdjustment: 0, useThumbnail: true });
obj[1] = items2;
return closure_4(View, obj);
};