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

110 lines
3.6 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 13547
// Function ID: 13548
2026-07-20 16:05:17 +00:00
// Name: EmptyState
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 676, 21, 4661, 6782, 712, 8115, 4745, 1363, 2]
2026-07-20 16:05:17 +00:00
// Exports: ThemedEmptyState
2026-08-15 05:55:55 +00:00
// Module 13547 (EmptyState)
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";
import importDefaultResult1 from "createTextStyle";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-20 16:05:17 +00:00
class EmptyState {
constructor(arg0) {
({ source, title, callToAction } = global);
({ body, containerStyle, imageStyle, titleStyle, bodyStyle } = global);
2026-07-29 08:29:29 +00:00
tmp = jsxs();
tmp3 = View;
obj = { style: items, children: null };
2026-07-20 16:05:17 +00:00
items = [, ];
items[0] = tmp.container;
items[1] = containerStyle;
tmp4 = null;
tmp2 = jsxs;
if (null != source) {
tmp5 = jsx;
tmp6 = Image;
2026-07-29 08:29:29 +00:00
obj = { source: null, style: null };
obj[0] = source;
2026-07-20 16:05:17 +00:00
items1 = [, ];
items1[0] = tmp.image;
items1[1] = imageStyle;
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-20 16:05:17 +00:00
tmp4 = jsx(Image, obj);
}
items2 = [, , , ];
items2[0] = tmp4;
tmp7 = null;
if (null != title) {
tmp8 = jsx;
2026-07-23 10:11:24 +00:00
tmp9 = closure_1;
tmp10 = closure_2;
2026-07-29 08:29:29 +00:00
obj1 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
items3 = [, ];
items3[0] = tmp.title;
items3[1] = titleStyle;
2026-07-29 08:29:29 +00:00
obj1[0] = items3;
obj1[1] = title;
2026-08-15 05:55:55 +00:00
tmp7 = jsx(require("module_8115"), obj1);
2026-07-20 16:05:17 +00:00
}
items2[1] = tmp7;
2026-07-29 08:29:29 +00:00
tmp11 = jsx;
tmp12 = closure_2;
2026-07-20 16:05:17 +00:00
items4 = [, ];
items4[0] = tmp.body;
items4[1] = bodyStyle;
2026-08-15 05:55:55 +00:00
items2[2] = jsx(require("module_8115"), { style: items4, children: body });
2026-07-29 08:29:29 +00:00
tmp11Result = null;
2026-07-20 16:05:17 +00:00
if (null != callToAction) {
2026-07-29 08:29:29 +00:00
obj2 = { style: null, children: null };
obj2[0] = tmp.cta;
tmp14 = closure_0;
obj3 = { shrink: true, text: null, onPress: null, size: "sm" };
({ label: obj5[1], onPress: obj5[2] } = callToAction);
obj2[1] = tmp11(require("Button").Button, obj3);
tmp11Result = tmp11(tmp3, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[3] = tmp11Result;
obj[1] = items2;
2026-07-20 16:05:17 +00:00
return tmp2(tmp3, obj);
}
}
2026-07-29 08:29:29 +00:00
({ View: c3, Image: c4 } = get_ActivityIndicator);
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { container: { alignItems: "center", justifyContent: "center", padding: 16 }, title: null, body: null, image: null, cta: null };
createCacheKey = {};
let merged = Object.assign(require("createTextStyle")(Fonts.DISPLAY_SEMIBOLD, require("Themes").colors.MOBILE_TEXT_HEADING_PRIMARY, 16));
createCacheKey.textAlign = "center";
createCacheKey.marginBottom = 8;
createCacheKey[1] = createCacheKey;
2026-07-23 10:11:24 +00:00
let obj1 = {};
2026-07-29 08:29:29 +00:00
let merged1 = Object.assign(require("createTextStyle")(Fonts.PRIMARY_MEDIUM, require("Themes").colors.TEXT_SUBTLE, 14));
obj1.textAlign = "center";
createCacheKey[2] = obj1;
createCacheKey[3] = { marginBottom: 32 };
createCacheKey[4] = { alignSelf: "center", marginTop: 16 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("design/void/RefreshEmptyState/native/RefreshEmptyState.tsx");
2026-07-20 16:05:17 +00:00
export default EmptyState;
export const ThemedEmptyState = function ThemedEmptyState(darkSource) {
let lightSource = darkSource.darkSource;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(darkSource, Object.create(null));
2026-08-11 06:20:06 +00:00
let obj = require(1363) /* AccessibilityAnnouncer */;
2026-07-20 16:05:17 +00:00
if (obj2.isThemeLight(obj.useThemeContext().theme)) {
lightSource = darkSource.lightSource;
}
obj = { source: lightSource };
const merged1 = Object.assign(merged);
return callback(EmptyState, obj);
};