decord/source/components_native/common/ViewEmptyState.tsx

61 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 9235
2026-07-21 22:01:30 +00:00
// Function ID: 72238
2026-07-20 16:05:17 +00:00
// Name: ViewEmptyState
2026-07-21 22:01:30 +00:00
// Dependencies: [0, 0, 4294967295, 0, 4294967295, 0, 0, 0, 0]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-21 06:55:02 +00:00
// Module 9235 (ViewEmptyState)
2026-07-21 22:01:30 +00:00
import "result";
import result from "result";
import result from "result";
import result from "result";
({ View: closure_2, Image: closure_3 } = result);
2026-07-20 16:05:17 +00:00
const Fonts = arg1(dependencyMap[2]).Fonts;
2026-07-21 22:01:30 +00:00
({ jsx: closure_4, jsxs: closure_5 } = result);
2026-07-20 16:05:17 +00:00
let obj = arg1(dependencyMap[4]);
2026-07-21 22:01:30 +00:00
obj = { emptyContainer: { 9223372036854775807: null, height: null, backgroundColor: null, borderWidth: null }, emptyImage: {}, fixOpticalIllusion: {} };
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-21 22:01:30 +00:00
const merged = Object.assign(require("result")(Fonts.DISPLAY_SEMIBOLD, require("result").colors.MOBILE_TEXT_HEADING_PRIMARY, 18));
2026-07-20 16:05:17 +00:00
obj["textAlign"] = "center";
obj["marginTop"] = 32;
obj["opacity"] = 0.8;
obj.emptyLabel = obj;
2026-07-21 06:55:02 +00:00
obj.emptyText = { fontFamily: Fonts.PRIMARY_MEDIUM };
2026-07-20 16:05:17 +00:00
let closure_6 = obj.createStyles(obj);
2026-07-21 22:01:30 +00:00
result = result.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);
const tmp = callback2();
let obj = { style: items };
const items = [tmp.emptyContainer, style];
obj = { style: tmp.fixOpticalIllusion };
obj = { resizeMode: "contain", source, style: tmp.emptyImage };
const items1 = [callback(closure_3, obj), , ];
let tmp5 = null;
if (null != label) {
const obj1 = { style: tmp.emptyLabel, children: label.toUpperCase() };
tmp5 = callback(arg1(dependencyMap[7]).LegacyText, obj1);
}
items1[1] = tmp5;
let tmp9 = null;
if (null != text) {
const obj2 = {};
const items2 = [, ];
({ emptyLabel: arr3[0], emptyText: arr3[1] } = tmp);
obj2.style = items2;
obj2.children = text;
tmp9 = callback(arg1(dependencyMap[7]).LegacyText, obj2);
}
items1[2] = tmp9;
obj.children = items1;
obj.children = closure_5(closure_2, obj);
return callback(closure_2, obj);
};