Files
2026-07-28 01:06:53 +03:00

58 lines
3.9 KiB
TypeScript

/* Metro module 7596; source: modules/collectibles/native/AvatarDecorationSampleV2.tsx; dependencies: [31, 27, 33, 4501, 697, 44, 1904, 7597, 7598, 2] */
import Module00044 from '../../../by-id/module-00044.js'; /* Metro dependency 44 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun60917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7774:6, offset: 0x01714d1b, size: 233 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.Image;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.Fragment;
const env0_7 = value.jsxs;
const env0_8 = (CreateStylesModule).createStyles(_fun60918);
(FileImportTrackerModule).fileFinishedImporting('modules/collectibles/native/AvatarDecorationSampleV2.tsx');
exports.default = _default_60919;
exports.avatarPlaceholderSizeRatio = 0.8333333333333334;
function _fun60918(a0) { // fn#60918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7774:217, offset: 0x01714e04, size: 142 bytes, params: 2, frame: 14
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
return {avatar: {position: 'absolute', height: a0 * 0.8333333333333334, width: a0 * 0.8333333333333334,
borderRadius: a0 * 0.8333333333333334 / 2, opacity: 0.8, backgroundColor: BACKGROUND_BASE_LOWER}, solidAvatar: {opacity: 1}, avatarDecoration: {position: 'absolute'}};
}
function _default_60919({item, size, avatarSource, animate, threeTierBundle}) { // fn#60919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7774:431, offset: 0x01714e92, size: 333 bytes, params: 2, frame: 27
const styles = useStyles(size);
const defaultImport = Module00044;
const type = item.type;
const CollectiblesItemType = (CollectiblesItemTypeModule).CollectiblesItemType;
const AVATAR_DECORATION = CollectiblesItemType.AVATAR_DECORATION;
defaultImport(type === AVATAR_DECORATION, 'Item must be Avatar Decoration');
return (
<>
<Image
style={[styles.avatar, (avatarSource != null || threeTierBundle === true) && styles.solidAvatar]}
resizeMode="contain"
source={avatarSource ?? (importDefault(7597) /* metro dependency 7597 */)}
accessible={false}
/>
<View style={styles.avatarDecoration} accessibilityLabel={item.label}>
{((Component) => <Component avatarDecoration={item} size={size} animate={animate} />)(importDefault(7598) /* metro dependency 7598: CutoutableAvatarDecoration */)}
</View>
</>
);
}
}
global.__d(_fun60917, 7596, [31, 27, 33, 4501, 697, 44, 1904, 7597, 7598,
2]) /* metro module 7596, dependencies: [31, 27, 33, 4501, 697, 44, 1904, 7597, 7598, 2] */;