decord/source/components_native/common/ViewEmptyState.tsx

63 lines
2.5 KiB
TypeScript
Raw Normal View History

// Module ID: 7053
// Function ID: 7054
2026-07-20 16:05:17 +00:00
// Name: ViewEmptyState
// Dependencies: [19, 17, 1074, 21, 4560, 5524, 576, 1178, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 7053 (ViewEmptyState)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import Button from "Button" /* 1178 */;
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { Fonts } from "ME" /* 1074 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
import importDefaultResult from "createTextStyle" /* 5524 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
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 = {};
2026-08-24 06:08:38 +00:00
const merged = Object.assign(importDefaultResult(Fonts.DISPLAY_SEMIBOLD, ThemesDefault.colors.MOBILE_TEXT_HEADING_PRIMARY, 18));
2026-07-29 08:29:29 +00:00
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" };
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("components_native/common/ViewEmptyState.tsx");
2026-07-20 16:05:17 +00:00
export default function ViewEmptyState(arg0) {
({ label, text } = arg0);
({ source, style } = arg0);
2026-08-24 06:08:38 +00:00
const tmp = callback2();
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
obj1 = { style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.emptyLabel;
obj1[1] = label.toUpperCase();
2026-08-24 06:08:38 +00:00
tmp2Result = tmp2(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;
2026-08-24 06:08:38 +00:00
tmp2Result = tmp2(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);
};