/* Metro module 5475; source: components_native/common/FastImage.tsx; dependencies: [31, 27, 33, 4501, 4567, 4020, 5476, 5477, 477, 2] */ import RequireNativeComponentOrDefaultNative from '../../utils/native/requireNativeComponentOrDefault.native.tsx'; /* Metro dependency 4567 */ 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 JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as PlatformUtilsModule from '../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */ import * as FabricUtilsModule from '../../utils/native/FabricUtils.tsx'; /* Metro dependency 4020 */ import * as CreateStylesModule from '../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ function _fun48093(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5653:6, offset: 0x011dc0cc, size: 336 bytes, params: 8, frame: 25 let env0_0 = require; const FastImageAndroid2 = FastImageAndroid; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const Image = ReactNativeModule.Image; const env0_6 = (CreateStylesModule).createStyles({base: {overflow: 'hidden'}}); const env0_7 = (RequireNativeComponentOrDefaultNative)({'componentName': 'DCDFastImageView', 'componentMissingFallbackInstance': null, 'warnWhenMissing': false, componentMissingFallbackInstance: Image}); value = value.memo(_fun48095); Object = global.Object; value = Object.assign(value, {preload: function(a0) { var env0_0 = a0; var Promise = global.Promise; var Promise2 = global.Promise; var items = [new Promise2(_fun48097)]; var Promise3 = global.Promise; items[1] = new Promise3(_fun48098); return Promise.race(items); }}); FastImageAndroid2.preload = preload_48099; const r1 = PlatformUtilsModule.isAndroid() ? FastImageAndroid2 : value; (FileImportTrackerModule).fileFinishedImporting('components_native/common/FastImage.tsx'); exports.default = r1; function FastImageAndroid(a0) { // fn#48094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5653:903, offset: 0x011dc21c, size: 62 bytes, params: 2, frame: 14 return ( ); } function _fun48095(a0) { // fn#48095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5653:319, offset: 0x011dc25a, size: 356 bytes, params: 2, frame: 24 var r5; var moduleValue2; const value2 = undefined; const styles = useStyles(); const source = a0.source; const style = a0.style; const placeholder = a0.placeholder; const enableAnimation = a0.enableAnimation; const r10 = value2 === enableAnimation || enableAnimation; const paused = a0.paused; const fade = a0.fade; const r8 = value2 === fade || fade; const usesSmallCache = a0.usesSmallCache; const r7 = value2 !== usesSmallCache && usesSmallCache; if (typeof source === 'number') { return ; } if (FabricUtilsModule.isFabric()) { moduleValue2 = require(5476) /* metro dependency 5476: FastImageFabricExperiment */; r5 = moduleValue2.getFastImageFabricEnabled() ? importDefault(5477) /* metro dependency 5477: FastImageFabricNativeComponent */ : env0_7; } else { r5 = env0_7; } const value6 = null; const r6 = value6 != placeholder ? Image.resolveAssetSource(placeholder) : value6; return ((Component) => )(r5); } function preload_48096(a0) { // fn#48096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5653:787, offset: 0x011dc3be, size: 104 bytes, params: 2, frame: 15 const env0_0 = a0; const Promise = global.Promise; const race = Promise.race; const Promise2 = global.Promise; const items2 = [new Promise2(_fun48097)]; const Promise3 = global.Promise; items2[1] = new Promise3(function(a0) { return (0, global.setTimeout)(a0, 2000); }); return Reflect.apply(race, Promise, [items2]); function _fun48097(a0) { // fn#48097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5653:817, offset: 0x011dc426, size: 41 bytes, params: 2, frame: 13 const DCDFastImageViewManager = NativeModules.DCDFastImageViewManager; DCDFastImageViewManager.preload(env0_0, a0); } } function preload_48099(a0) { // fn#48099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5653:1019, offset: 0x011dc46a, size: 41 bytes, params: 2, frame: 11 return Image.prefetch(a0).catch(function() { }); } } function _fun48098(a0) { // fn#48098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5653:876, offset: 0x011dc44f, size: 27 bytes, params: 2, frame: 13 return global.setTimeout(a0, 2000); } global.__d(_fun48093, 5475, [31, 27, 33, 4501, 4567, 4020, 5476, 5477, 477, 2]) /* metro module 5475, dependencies: [31, 27, 33, 4501, 4567, 4020, 5476, 5477, 477, 2] */;