decord/source/modules/collectibles/native/AvatarDecorationSampleV2.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

59 lines
2.4 KiB
TypeScript

// Module ID: 8951
// Function ID: 8952
// Name: AvatarDecorationSampleV2
// Dependencies: [19, 17, 21, 4638, 576, 38, 1890, 8952, 8953, 2]
// Exports: default
// Module 8951 (AvatarDecorationSampleV2)
import _modDef38 from "module_38" /* 38 */;
import nativeDefault from "native" /* 576 */;
import CollectiblesItemType from "CollectiblesItemType" /* 1890 */;
import CutoutableAvatarDecorationDefault from "CutoutableAvatarDecoration" /* 8953 */;
import noop from "module_19" /* 19 */;
require = fn;
get_ActivityIndicator = fn(17);
({ Image: c3, View: closure_4 } = get_ActivityIndicator);
const jsxProd = fn(21);
({ jsx: hasOwnProperty, Fragment: metroRequire, jsxs: closure_7 } = jsxProd);
let c8 = 0.8333333333333334;
const createStyles = fn(4638);
let closure_9 = createStyles.createStyles((arg0) => {
const obj = { avatar: null, solidAvatar: null, avatarDecoration: null };
const size = { position: "absolute", height: arg0 * c8, width: arg0 * c8, borderRadius: arg0 * c8 / 2, opacity: 0.8, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOWER };
obj.avatar = size;
obj.solidAvatar = { opacity: 1 };
obj.avatarDecoration = { position: "absolute" };
return obj;
});
let size = fn(2);
const result = size.fileFinishedImporting("modules/collectibles/native/AvatarDecorationSampleV2.tsx");
export default function AvatarDecorationSampleV2(arg0) {
({ item, size, avatarSource } = arg0);
({ animate, threeTierBundle } = arg0);
const tmp = closure_9(size);
_modDef38(item.type === CollectiblesItemType.CollectiblesItemType.AVATAR_DECORATION, "Item must be Avatar Decoration");
const items = [tmp.avatar, ];
let solidAvatar = null != avatarSource;
if (!solidAvatar) {
solidAvatar = true === threeTierBundle;
}
if (solidAvatar) {
solidAvatar = tmp.solidAvatar;
}
const obj = { style: items, resizeMode: "contain", source: null, accessible: false };
items[1] = solidAvatar;
if (null == avatarSource) {
avatarSource = tmp2(8952);
}
const obj2 = { children: null };
obj.source = avatarSource;
const items1 = [hasOwnProperty(React3, obj), ];
const tmp6 = React5;
const tmp7 = timestampProducer;
items1[1] = hasOwnProperty(React4, { style: tmp.avatarDecoration, accessibilityLabel: item.label, children: hasOwnProperty(CutoutableAvatarDecorationDefault, { avatarDecoration: item, size, animate }) });
obj2.children = items1;
return tmp6(tmp7, obj2);
};
export const avatarPlaceholderSizeRatio = 0.8333333333333334;