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

77 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13548
// Function ID: 13549
2026-07-20 16:05:17 +00:00
// Name: EmptyState
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 4668, 712, 1363, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 13548 (EmptyState)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1363 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
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 = { container: null, emptyImage: null, emptyTitle: null, emptyBody: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flex: 1, justifyContent: "center", alignItems: "center", paddingHorizontal: 36, paddingBottom: 80, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWER };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flex: 1, maxWidth: 300, maxHeight: 200 };
createCacheKey[2] = { marginTop: 20, textTransform: "uppercase" };
createCacheKey[3] = { textAlign: "center", marginTop: 8 };
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("design/void/EmptyState/native/EmptyState.tsx");
2026-07-20 16:05:17 +00:00
export default function EmptyState(Illustration) {
2026-08-24 06:08:38 +00:00
const tmp = callback2();
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 };
2026-08-11 06:20:06 +00:00
obj[1] = tmp2(1363).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);
2026-08-11 06:20:06 +00:00
const tmp2Result = tmp2(1363);
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
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;
2026-08-24 06:08:38 +00:00
tmp14 = callback(tmp2(4739).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;
2026-08-24 06:08:38 +00:00
tmp16 = callback(tmp2(4739).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
};