/* Metro module 319; source: unknown; dependencies: [29, 5, 31, 33, 320, 322, 90, 147, 323, 324, 327, 328, 253] */ function _fun4861(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:6, offset: 0x00ccf4e1, size: 345 bytes, params: 8, frame: 20 var r1; let env0_0 = require; const closure = prefetch; const env0_3 = ['ref']; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_4 = importDefault(29) /* metro dependency 29 */; const env0_5 = importDefault(5) /* metro dependency 5 */; importAll(31) /* metro dependency 31 */; const env0_6 = (require(33) /* metro dependency 33 */).jsx; const closure2 = BaseImage; let value = require(324) /* metro dependency 324 */; value = value.unstable_getImageComponentDecorator(); if (value == null) { r1 = closure2; } else { value = value(closure2); r1 = value; } r1.displayName = 'Image'; r1.getSize = function(a0, a1, a2) { var value = a2; var env0_0 = a0; var env0_1 = a1; var value3 = importDefault(dependencyMap[4]).getSize(a0); if (typeof a1 !== 'function') { return value3; } var value4 = value3.then(_fun4869); value4.catch(value || _fun4870); }; r1.getSizeWithHeaders = function(a0, a1, a2, a3) { var value = a3; var env0_0 = a0; var env0_1 = a2; var value3 = importDefault(dependencyMap[4]).getSizeWithHeaders(a0, a1); if (typeof a2 !== 'function') { return value3; } var value4 = value3.then(_fun4872); value4.catch(value || _fun4873); }; r1.prefetch = closure; r1.prefetchWithMetadata = function(a0, a1, a2, a3) { return prefetch(a0, a3); }; r1.abortPrefetch = abortPrefetch; r1.queryCache = function(a0) { return _queryCache.apply(this, arguments); }; r1.resolveAssetSource = importDefault(90) /* metro dependency 90 */; const env0_8 = (importDefault(253) /* metro dependency 253 */).create({base: {overflow: 'hidden'}}); exports.default = r1; } function prefetch(a0, a1) { // fn#4862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:158, offset: 0x00ccf63a, size: 69 bytes, params: 3, frame: 13 const binding = env0_7; const value2 = typeof binding === 'bigint' ? binding : +binding; env0_7 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1; if (a1) { a1(value2); } return (importDefault(320) /* metro dependency 320 */).prefetchImage(a0, value2); } function _queryCache() { // fn#4863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:272, offset: 0x00ccf67f, size: 48 bytes, params: 1, frame: 14 return env0_5(_fun4865).apply(this, arguments); } function BaseImage(a0) { // fn#4866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:391, offset: 0x00ccf6ec, size: 1055 bytes, params: 2, frame: 29 var width; var height; var items; var r12; const ref = a0.ref; const binding = env0_4; const value2 = undefined; const value3 = binding(a0, env0_3); const r14 = (require(322) /* metro dependency 322 */).getImageSourcesFromImageProps(value3) || ({uri: value2, width: value2, height: value2}); const value5 = (importDefault(90) /* metro dependency 90 */)(value3.defaultSource); const value6 = (importDefault(90) /* metro dependency 90 */)(value3.loadingIndicatorSource); const children = value3.children; const value7 = null; if (value7 != children) { throw new global.Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.'); } if (value7 != value3.defaultSource) { if (value7 != value3.loadingIndicatorSource) { throw new global.Error('The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.'); } } const Array = global.Array; if (Array.isArray(r14)) { items = [env0_8.base, value3.style]; r12 = r14; } else { if (r14.uri === '') { global.console.warn('source.uri should not be an empty string'); } width = r14.width; width = value7 == width ? value3.width : width; height = r14.height; height = value7 == height ? value3.height : height; items = [{width: width, height: height}, env0_8.base, value3.style]; r12 = [r14]; } const onLoadStart = value3.onLoadStart; const onLoad = value3.onLoad; const onLoadEnd = value3.onLoadEnd; const onError = value3.onError; const Object = global.Object; const assign = Object.assign; const object3 = {style: items}; let r13 = onLoadStart || onLoad; r13 = !r13 ? onLoadEnd : r13; r13 = !r13 ? onError : r13; object3.shouldNotifyLoadEvents = !!r13; object3.src = r12; object3.source = r12; object3.headers = (value7 == r14 || value7 == r14[0] ? value2 : r14[0].headers) || (value7 == r14 ? value2 : r14.headers); object3.defaultSource = value5 || value7; object3.loadingIndicatorSrc = value6 || value7; let property = value3['aria-label']; let r1 = value7 != property ? property : value3.accessibilityLabel; r1 = value7 == r1 ? value3.alt : r1; object3.accessibilityLabel = r1; r1 = value7 == value3 ? value2 : value3['aria-labelledby']; r1 = value7 == r1 ? value7 == value3 ? value2 : value3.accessibilityLabelledBy : r1; object3.accessibilityLabelledBy = r1; object3.accessible = value2 !== value3.alt || value3.accessible; const object4 = {}; property = value3['aria-busy']; object4.busy = value7 != property ? property : value7 == value3.accessibilityState ? value2 : value3.accessibilityState.busy; property = value3['aria-checked']; object4.checked = value7 != property ? property : value7 == value3.accessibilityState ? value2 : value3.accessibilityState.checked; property = value3['aria-disabled']; object4.disabled = value7 != property ? property : value7 == value3.accessibilityState ? value2 : value3.accessibilityState.disabled; property = value3['aria-expanded']; object4.expanded = value7 != property ? property : value7 == value3.accessibilityState ? value2 : value3.accessibilityState.expanded; property = value3['aria-selected']; object4.selected = value7 != property ? property : value7 == value3.accessibilityState ? value2 : value3.accessibilityState.selected; object3.accessibilityState = object4; const env0_0 = Reflect.apply(assign, Object, [{}, value3, object3]); const value9 = (importDefault(147) /* metro dependency 147 */)(items); const moduleValue2 = require(323) /* metro dependency 323 */; r1 = moduleValue2.convertObjectFitToResizeMode(value7 == value9 ? value2 : value9.objectFit) || value3.resizeMode; r1 = !r1 ? value7 == value9 ? value2 : value9.resizeMode : r1; if (r1) { } const env0_2 = (require(324) /* metro dependency 324 */).useWrapRefWithImageAttachedCallbacks(ref); const Consumer = (importDefault(327) /* metro dependency 327 */).Consumer; return ( {children_4867} ); } function getSize(a0, a1, a2) { // fn#4868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:2700, offset: 0x00ccfb91, size: 104 bytes, params: 4, frame: 15 const value = a2; const env0_0 = a0; const env0_1 = a1; const size = (importDefault(320) /* metro dependency 320 */).getSize(a0); if (typeof a1 !== 'function') { return size; } const value4 = size.then(function(a0) { return require(a0.width, a0.height); }); value4.catch(value || _fun4870); } function getSizeWithHeaders(a0, a1, a2, a3) { // fn#4871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:2925, offset: 0x00ccfc3e, size: 108 bytes, params: 5, frame: 17 const value = a3; const env0_0 = a0; const env0_1 = a2; const sizeWithHeaders = (importDefault(320) /* metro dependency 320 */).getSizeWithHeaders(a0, a1); if (typeof a2 !== 'function') { return sizeWithHeaders; } const value4 = sizeWithHeaders.then(function(a0) { return importDefault(a0.width, a0.height); }); value4.catch(value || _fun4873); } function abortPrefetch(a0) { // fn#4875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:3275, offset: 0x00ccfcc1, size: 41 bytes, params: 2, frame: 12 (importDefault(320) /* metro dependency 320 */).abortRequest(a0); } function* _fun4865(a0) { // fn#4865, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:317, offset: 0x00ccf6b8, size: 52 bytes, params: 2, frame: 12 if (false) { return undefined; } value = environment.__proto__.__proto__; return env2_1(env2_2[4]).queryCache(a0); } function BaseImageChildren(a0) { // fn#4867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:2447, owner: BaseImage.children, offset: 0x00ccfb0b, size: 134 bytes, params: 2, frame: 19 const r7 = a0 !== null ? global.Object.assign({}, env0_0, {internal_analyticTag: a0}) : env0_0; let value = environment.__proto__; value = importDefault(328) /* metro dependency 328 */; const Object = global.Object; return ((Component) => )(value); } function _fun4870() { // fn#4870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:360:2841, offset: 0x00ccfc17, size: 39 bytes, params: 1, frame: 12 global.console.warn('Failed to get size for image: ' + env0_0); }