2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 5899
|
|
|
|
|
// Function ID: 5900
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: FastImage
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [19, 17, 21, 4836, 5900, 1364, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 5899 (FastImage)
|
2026-10-01 14:13:23 +00:00
|
|
|
import Fragment from "Fragment" /* 21 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import FastImageNativeComponentDefault from "FastImageNativeComponent" /* 5900 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import react_native from "react-native" /* 17 */;
|
|
|
|
|
import createStyles from "createStyles" /* 4836 */;
|
|
|
|
|
import PlatformUtils from "PlatformUtils" /* 1364 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let style;
|
|
|
|
|
|
|
|
|
|
let c2;
|
|
|
|
|
let c3;
|
2026-09-26 17:57:22 +00:00
|
|
|
class FastImageAndroid {
|
2026-10-01 14:13:23 +00:00
|
|
|
constructor(placeholder) {
|
|
|
|
|
const merged = Object.assign(placeholder);
|
|
|
|
|
return <React2 defaultSource={arg0.placeholder} fadeDuration={0} />;
|
2026-09-26 17:57:22 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
({ Image: c2, NativeModules: c3 } = react_native);
|
|
|
|
|
const jsx = Fragment.jsx;
|
2026-09-26 17:57:22 +00:00
|
|
|
let closure_5 = createStyles.createStyles({ base: { overflow: "hidden" } });
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj = {
|
|
|
|
|
preload(arg0) {
|
|
|
|
|
const f81178 = (arg0) => {
|
|
|
|
|
c3 = c3.ImageManager;
|
|
|
|
|
c3.preload(closure_0, arg0);
|
|
|
|
|
};
|
|
|
|
|
const f81179 = (arg0) => setTimeout(arg0, num);
|
|
|
|
|
let closure_0 = arg0;
|
|
|
|
|
let num = arg1;
|
|
|
|
|
if (arg1 === undefined) {
|
|
|
|
|
num = 2000;
|
|
|
|
|
}
|
|
|
|
|
const items = [new Promise(f81178), ];
|
|
|
|
|
new Promise(f81178);
|
|
|
|
|
items[1] = new Promise(f81179);
|
|
|
|
|
new Promise(f81179);
|
|
|
|
|
return race(items);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
let merged = Object.assign(react.memo((style) => {
|
|
|
|
|
let enableAnimation;
|
|
|
|
|
let first;
|
|
|
|
|
let items;
|
|
|
|
|
let manualPlayback;
|
|
|
|
|
let paused;
|
|
|
|
|
let placeholder;
|
|
|
|
|
let source;
|
|
|
|
|
let uri;
|
|
|
|
|
({ source, placeholder, enableAnimation } = style);
|
2026-09-18 19:45:33 +00:00
|
|
|
let tmp2 = undefined === enableAnimation;
|
2026-10-01 14:13:23 +00:00
|
|
|
style = style.style;
|
|
|
|
|
const tmp = closure_5();
|
2026-09-18 19:45:33 +00:00
|
|
|
if (!tmp2) {
|
|
|
|
|
tmp2 = enableAnimation;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const fade = style.fade;
|
2026-09-18 19:45:33 +00:00
|
|
|
let tmp3 = undefined === fade;
|
2026-10-01 14:13:23 +00:00
|
|
|
({ paused, manualPlayback } = style);
|
2026-09-18 19:45:33 +00:00
|
|
|
if (!tmp3) {
|
|
|
|
|
tmp3 = fade;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const usesSmallCache = style.usesSmallCache;
|
|
|
|
|
const tmp4 = undefined !== usesSmallCache && usesSmallCache;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (typeof source === "number") {
|
2026-10-01 14:13:23 +00:00
|
|
|
const merged = Object.assign(style);
|
2026-09-26 17:57:22 +00:00
|
|
|
return <React2 />;
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
|
|
|
|
let assetSource = null;
|
|
|
|
|
if (null != placeholder) {
|
2026-09-26 17:57:22 +00:00
|
|
|
assetSource = React2.resolveAssetSource(placeholder);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = { source: first, style: items, placeholder: uri, enableAnimation: tmp2, paused, manualPlayback, fade: tmp3, usesSmallCache: tmp4 };
|
|
|
|
|
const tmp10 = FastImageNativeComponentDefault;
|
|
|
|
|
const merged1 = Object.assign(style);
|
2026-09-28 16:18:32 +00:00
|
|
|
const _Array = Array;
|
2026-10-01 14:13:23 +00:00
|
|
|
first = source;
|
|
|
|
|
const tmp7 = jsx;
|
2026-09-28 16:18:32 +00:00
|
|
|
if (Array.isArray(source)) {
|
|
|
|
|
first = source[0];
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
items = [tmp.base, style];
|
|
|
|
|
uri = undefined;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (assetSource != null) {
|
|
|
|
|
uri = assetSource.uri;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
return tmp7(tmp10, obj);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
}), obj);
|
|
|
|
|
FastImageAndroid.preload = function(arg0, arg1) {
|
|
|
|
|
const f81181 = (arg0) => setTimeout(arg0, closure_0);
|
|
|
|
|
let closure_0 = arg1;
|
|
|
|
|
const prefetchResult = React2.prefetch(arg0);
|
|
|
|
|
const catchPromise = prefetchResult.catch(() => {
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
});
|
2026-10-01 14:13:23 +00:00
|
|
|
let raceResult = catchPromise;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != arg1) {
|
|
|
|
|
const items = [catchPromise, ];
|
2026-10-01 14:13:23 +00:00
|
|
|
const self = this;
|
|
|
|
|
const self2 = this;
|
|
|
|
|
items[1] = new Promise(f81181);
|
|
|
|
|
const promise = new Promise(f81181);
|
|
|
|
|
raceResult = race(items);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
return raceResult;
|
2026-09-18 19:45:33 +00:00
|
|
|
};
|
|
|
|
|
if (PlatformUtils.isAndroid()) {
|
2026-09-26 17:57:22 +00:00
|
|
|
merged = FastImageAndroid;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
const result = size.fileFinishedImporting("components_native/common/FastImage.tsx");
|
|
|
|
|
|
|
|
|
|
export default merged;
|