decord/source/components_native/common/ImageWithPlaceholder.tsx

52 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8697
// Function ID: 68734
2026-07-20 16:05:17 +00:00
// Name: ImagePlaceholderVersions
2026-07-24 07:16:23 +00:00
// Dependencies: [27, 33, 477, 8698, 5085, 2]
2026-07-20 16:05:17 +00:00
// Exports: ImageWithPlaceholder
2026-07-24 07:16:23 +00:00
// Module 8697 (ImagePlaceholderVersions)
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import { jsx } from "jsxProd";
import set from "set";
import set from "set";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const View = get_ActivityIndicator.View;
2026-07-20 16:05:17 +00:00
let closure_4 = { flex: 1 };
2026-07-23 10:11:24 +00:00
let obj = { THUMBHASH: 1, [1]: "THUMBHASH" };
if (set.isAndroid()) {
let importDefaultResult = require("__INTERNAL_VIEW_CONFIG");
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
importDefaultResult = get_ActivityIndicator.requireNativeComponent("DCDImageWithThumbhashPlaceholderView");
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const result = set.fileFinishedImporting("components_native/common/ImageWithPlaceholder.tsx");
2026-07-20 16:05:17 +00:00
export const ImagePlaceholderVersions = obj;
export const ImageWithPlaceholder = function ImageWithPlaceholder(arg0) {
let alt;
let placeholder;
let placeholderVersion;
let style;
let uri;
({ uri, placeholder, placeholderVersion, alt, style } = arg0);
2026-07-23 10:11:24 +00:00
let obj = { uri: 0, placeholder: 0, placeholderVersion: 0, alt: 0, style: 0 };
2026-07-20 16:05:17 +00:00
Object.setPrototypeOf(null);
const merged = Object.assign(arg0, obj);
if (null != placeholder) {
if (placeholderVersion === obj.THUMBHASH) {
obj = {};
const merged1 = Object.assign(merged);
obj["style"] = style;
obj["uri"] = uri;
obj["placeholder"] = placeholder;
obj["placeholderVersion"] = placeholderVersion;
obj["alt"] = alt;
2026-07-23 10:11:24 +00:00
let tmp5 = <closure_6 />;
2026-07-20 16:05:17 +00:00
}
return tmp5;
}
obj = { style };
const merged2 = Object.assign(merged);
2026-07-23 10:11:24 +00:00
obj["children"] = jsx(importDefault(5085), { style: closure_4, resizeMode: "cover", source: { uri }, alt });
tmp5 = <View style={style} />;
2026-07-20 16:05:17 +00:00
};