decord/source/components_native/common/ViewEmptyState.tsx

68 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 9249
// Function ID: 9250
2026-07-20 16:05:17 +00:00
// Name: ViewEmptyState
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 17, 676, 21, 4193, 5113, 712, 1297, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-31 08:44:05 +00:00
// Module 9249 (ViewEmptyState)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import { Fonts } from "ME";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
import importDefaultResult from "createTextStyle";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
let obj1;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ View: obj1, Image: c3 } = get_ActivityIndicator);
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { emptyContainer: { flex: 1, justifyContent: "center", alignItems: "center", marginHorizontal: 36 }, emptyImage: { width: 170, height: 130 }, fixOpticalIllusion: { marginTop: -50, alignItems: "center" }, emptyLabel: null, emptyText: null };
createCacheKey = {};
const merged = Object.assign(require("createTextStyle")(Fonts.DISPLAY_SEMIBOLD, require("Themes").colors.MOBILE_TEXT_HEADING_PRIMARY, 18));
createCacheKey.textAlign = "center";
createCacheKey.marginTop = 32;
createCacheKey.opacity = 0.8;
createCacheKey[3] = createCacheKey;
createCacheKey[4] = { fontFamily: Fonts.PRIMARY_MEDIUM, fontSize: 13, marginTop: 8, marginHorizontal: 10, opacity: 0.6, fontWeight: "400" };
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("components_native/common/ViewEmptyState.tsx");
2026-07-20 16:05:17 +00:00
export default function ViewEmptyState(arg0) {
let label;
let source;
let style;
let text;
({ label, text } = arg0);
({ source, style } = arg0);
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.emptyContainer, style];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.fixOpticalIllusion, children: null };
2026-07-20 16:05:17 +00:00
obj = { resizeMode: "contain", source, style: tmp.emptyImage };
const items1 = [callback(closure_3, obj), , ];
2026-07-29 08:29:29 +00:00
let tmp2Result = null;
2026-07-20 16:05:17 +00:00
if (null != label) {
2026-07-29 08:29:29 +00:00
const obj1 = { style: null, children: null };
obj1[0] = tmp.emptyLabel;
obj1[1] = label.toUpperCase();
tmp2Result = tmp2(require(1297) /* Button */.LegacyText, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items1[1] = tmp2Result;
tmp2Result = null;
2026-07-20 16:05:17 +00:00
if (null != text) {
2026-07-29 08:29:29 +00:00
const obj2 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items2 = [, ];
({ emptyLabel: arr3[0], emptyText: arr3[1] } = tmp);
2026-07-29 08:29:29 +00:00
obj2[0] = items2;
obj2[1] = text;
tmp2Result = tmp2(require(1297) /* Button */.LegacyText, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items1[2] = tmp2Result;
obj[1] = items1;
obj[1] = closure_5(closure_2, obj);
2026-07-20 16:05:17 +00:00
return callback(closure_2, obj);
};