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

53 lines
3.3 KiB
TypeScript

/* Metro module 14643; source: modules/premium/powerups/native/GuildPowerupsImage.tsx; dependencies: [4502, 33, 4501, 566, 478, 7601, 5475, 2] */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../../external/discord_common/js/shared/utils/PlatformUtils.tsx'; /* Metro dependency 478 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun110643(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14840:6, offset: 0x02381181, size: 186 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_5 = (CreateStylesModule).createStyles({image: {'width': '75%',
'height': '100%', 'alignSelf': 'center', 'resizeMode': 'contain'}});
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsImage.tsx');
exports.default = GuildPowerupsImage;
function GuildPowerupsImage({imageUrl, isAnimated, style}) { // fn#110644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14840:318, offset: 0x0238123b, size: 248 bytes, params: 2, frame: 21
var r0;
isAnimated = isAnimated === undefined || isAnimated;
var value;
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
if (PlatformUtilsModule.isAndroid()) {
if (isAnimated) {
if (useReducedMotion) {
value = importDefault(5475) /* metro dependency 5475: FastImage */;
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
r0 = value;
} else {
value = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
value = ((Component) => <Component style={[styles.image, style]} url={imageUrl} />)(value);
r0 = value;
}
} else {
value = importDefault(5475) /* metro dependency 5475: FastImage */;
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
r0 = value;
}
} else {
value = importDefault(5475) /* metro dependency 5475: FastImage */;
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
r0 = value;
}
return r0;
}
}
global.__d(_fun110643, 14643, [4502, 33, 4501, 566, 478, 7601, 5475,
2]) /* metro module 14643, dependencies: [4502, 33, 4501, 566, 478, 7601, 5475, 2] */;