decord/source/modules/safety_flows/native/SafetyFlowTaskScreen.tsx

82 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 16735
// Function ID: 16736
2026-07-20 16:05:17 +00:00
// Name: SafetyFlowTaskScreen
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 21, 4193, 6788, 6789, 4602, 4189, 11134, 16733, 9941, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-31 08:44:05 +00:00
// Module 16735 (SafetyFlowTaskScreen)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
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;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
let closure_5 = createCacheKey.createStyles({ header: { textAlign: "center" } });
const result = require("createCacheKey").fileFinishedImporting("modules/safety_flows/native/SafetyFlowTaskScreen.tsx");
2026-07-20 16:05:17 +00:00
export default function SafetyFlowTaskScreen(action) {
let ImageComponent;
let children;
let footer;
let onAction;
let submitting;
let subtitle;
let subtitleColor;
let withLogout;
({ ImageComponent, subtitle, subtitleColor } = action);
if (subtitleColor === undefined) {
subtitleColor = "text-strong";
}
action = action.action;
if (action === undefined) {
action = null;
}
({ footer, withLogout, onAction, children, submitting } = action);
if (withLogout === undefined) {
withLogout = true;
}
const tmp2 = callback2();
2026-07-29 08:29:29 +00:00
let tmp6 = null != ImageComponent;
if (tmp6) {
tmp6 = ImageComponent;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items = [tmp6, , ];
let obj = { accessibilityRole: "header", variant: "heading-xl/bold", color: "mobile-text-heading-primary", style: tmp2.header, children: action.title };
2026-07-31 08:44:05 +00:00
items[1] = callback(require(4189) /* Text */.Text, obj);
2026-07-29 08:29:29 +00:00
let tmp7Result = null != subtitle;
if (tmp7Result) {
obj = { variant: "text-md/medium", color: null, style: null, children: null };
obj[1] = subtitleColor;
obj[2] = tmp2.header;
obj[3] = subtitle;
2026-07-31 08:44:05 +00:00
tmp7Result = tmp7(tmp4(4189).Text, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { children: null };
items[2] = tmp7Result;
2026-07-31 08:44:05 +00:00
const items1 = [closure_4(require(4602) /* Stack */.Stack, { align: "center", justify: "center", spacing: 8, children: items }), children];
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-07-31 08:44:05 +00:00
children = [closure_4(require(6789) /* ModalContent */.ModalContent, obj), ];
2026-07-20 16:05:17 +00:00
if (undefined === footer) {
if (withLogout) {
2026-07-31 08:44:05 +00:00
withLogout = tmp7(importDefault(16733), {});
2026-07-20 16:05:17 +00:00
}
const items3 = [withLogout, ];
2026-07-29 08:29:29 +00:00
tmp7Result = null != action;
if (tmp7Result) {
const obj1 = { variant: "primary", text: null, onPress: null, loading: null };
obj1[1] = action;
obj1[2] = onAction;
obj1[3] = submitting;
2026-07-31 08:44:05 +00:00
tmp7Result = tmp7(tmp4(9941).ModalActionButton, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = { children: null };
items3[1] = tmp7Result;
obj2[0] = items3;
2026-07-31 08:44:05 +00:00
footer = tmp3(tmp4(11134).ModalFooter, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
children[1] = footer;
2026-07-31 08:44:05 +00:00
return closure_4(require(6788) /* ModalScreen */.ModalScreen, { children });
2026-07-20 16:05:17 +00:00
};