decord/source/design/void/EmptyState/native/EmptyState.tsx

82 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 13169
// Function ID: 13170
2026-07-20 16:05:17 +00:00
// Name: EmptyState
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 17, 21, 4189, 712, 4035, 4185, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 13169 (EmptyState)
import "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
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 = { container: null, emptyImage: null, emptyTitle: null, emptyBody: null };
createCacheKey = { flex: 1, justifyContent: "center", alignItems: "center", paddingHorizontal: 36, paddingBottom: 80, backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOWER };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flex: 1, maxWidth: 300, maxHeight: 200 };
createCacheKey[2] = { marginTop: 20, textTransform: "uppercase" };
createCacheKey[3] = { textAlign: "center", marginTop: 8 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("design/void/EmptyState/native/EmptyState.tsx");
2026-07-20 16:05:17 +00:00
export default function EmptyState(Illustration) {
let body;
let bodyStyle;
let children;
let title;
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
require(4035) /* AccessibilityAnnouncer */;
2026-07-20 16:05:17 +00:00
if (null != Illustration.Illustration) {
2026-07-29 08:29:29 +00:00
let obj = { accessible: false, importantForAccessibility: "no", accessibilityRole: "none", resizeMode: "contain", style: null };
2026-07-20 16:05:17 +00:00
const items = [tmp.emptyImage, Illustration.imageStyle];
2026-07-29 08:29:29 +00:00
obj[4] = items;
let tmp8Result = callback(Illustration.Illustration, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp8Result = null;
if (tmp6) {
obj = { resizeMode: "contain", source: null, style: null };
obj[1] = tmp2(4035).isThemeLight(tmp5) ? Illustration.lightSource : Illustration.darkSource;
2026-07-20 16:05:17 +00:00
const items1 = [tmp.emptyImage, Illustration.imageStyle];
2026-07-29 08:29:29 +00:00
obj[2] = items1;
tmp8Result = callback(closure_3, obj);
const tmp2Result = tmp2(4035);
const tmp8 = callback;
const tmp9 = closure_3;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp6 = null != Illustration.lightSource && null != Illustration.darkSource;
2026-07-20 16:05:17 +00:00
}
({ body, title } = Illustration);
2026-07-29 08:29:29 +00:00
const obj1 = { style: items2, accessible: true, children: null };
2026-07-23 10:11:24 +00:00
items2 = [tmp.container, Illustration.style];
2026-07-29 08:29:29 +00:00
const items3 = [tmp8Result, , , ];
2026-07-20 16:05:17 +00:00
let tmp14 = null;
({ children, bodyStyle } = Illustration);
if (null != title) {
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "heading-lg/semibold", color: "mobile-text-heading-primary", maxFontSizeMultiplier: 2, style: null, children: null };
2026-07-20 16:05:17 +00:00
const items4 = [tmp.emptyTitle, tmp11];
2026-07-29 08:29:29 +00:00
obj2[3] = items4;
obj2[4] = title;
tmp14 = callback(tmp2(4185).Text, obj2);
2026-07-20 16:05:17 +00:00
}
items3[1] = tmp14;
2026-07-29 08:29:29 +00:00
let tmp16 = null;
2026-07-20 16:05:17 +00:00
if (null != body) {
2026-07-29 08:29:29 +00:00
const obj3 = { variant: "text-md/medium", color: "text-muted", maxFontSizeMultiplier: 2, style: null, children: null };
2026-07-20 16:05:17 +00:00
const items5 = [tmp.emptyBody, bodyStyle];
2026-07-29 08:29:29 +00:00
obj3[3] = items5;
obj3[4] = body;
tmp16 = callback(tmp2(4185).Text, obj3);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items3[2] = tmp16;
2026-07-20 16:05:17 +00:00
items3[3] = children;
2026-07-29 08:29:29 +00:00
obj1[2] = items3;
return closure_5(closure_2, obj1);
2026-07-20 16:05:17 +00:00
};