/* Metro module 5475; source: components_native/common/FastImage.tsx; dependencies: [31, 27, 33, 4501, 4567, 4020, 5476, 5477, 477, 2] */ 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 closure = FastImageAndroid; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = importAll(31) /* metro dependency 31 */; const value2 = require(27) /* metro dependency 27 */; const Image = value2.Image; const env0_4 = value2.NativeModules; const env0_5 = (require(33) /* metro dependency 33 */).jsx; const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({base: {overflow: 'hidden'}}); const env0_7 = (importDefault(4567) /* metro dependency 4567: 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); }}); closure.preload = preload_48099; const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */; const r1 = platformUtilsModule.isAndroid() ? closure : value; (require(2) /* metro dependency 2 */).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 ; } const fabricUtilsModule = require(4020) /* metro dependency 4020: FabricUtils */; 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 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 _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); }