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

81 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 16613
// Function ID: 129546
2026-07-20 16:05:17 +00:00
// Name: SafetyFlowTaskScreen
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 33, 4130, 7613, 7614, 4541, 4126, 11098, 16611, 9937, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 16613 (SafetyFlowTaskScreen)
2026-07-23 10:11:24 +00:00
import "result";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_3;
let closure_4;
const require = arg1;
({ jsx: closure_3, jsxs: closure_4 } = jsxProd);
let closure_5 = _createForOfIteratorHelperLoose.createStyles({ header: { textAlign: "center" } });
const result = require("_createForOfIteratorHelperLoose").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();
let obj = {};
obj = {};
2026-07-23 10:11:24 +00:00
obj = { align: "center", justify: "center", spacing: 8 };
2026-07-20 16:05:17 +00:00
let tmp4 = null != ImageComponent;
if (tmp4) {
tmp4 = ImageComponent;
}
2026-07-23 10:11:24 +00:00
const items = [tmp4, , ];
const obj1 = { accessibilityRole: "header", variant: "heading-xl/bold", color: "mobile-text-heading-primary", style: tmp2.header, children: action.title };
items[1] = callback(require(4126) /* Text */.Text, obj1);
2026-07-20 16:05:17 +00:00
let tmp5 = null != subtitle;
if (tmp5) {
const obj2 = { variant: "text-md/medium", color: subtitleColor, style: tmp2.header, children: subtitle };
2026-07-24 07:16:23 +00:00
tmp5 = callback(require(4126) /* Text */.Text, obj2);
2026-07-20 16:05:17 +00:00
}
items[2] = tmp5;
obj.children = items;
2026-07-23 10:11:24 +00:00
const items1 = [closure_4(require(4541) /* Stack */.Stack, obj), children];
2026-07-20 16:05:17 +00:00
obj.children = items1;
2026-07-24 07:16:23 +00:00
const items2 = [closure_4(require(7614) /* ModalContent */.ModalContent, obj), ];
2026-07-20 16:05:17 +00:00
if (undefined === footer) {
const obj3 = {};
if (withLogout) {
2026-07-24 07:16:23 +00:00
withLogout = callback(importDefault(16611), {});
2026-07-20 16:05:17 +00:00
}
const items3 = [withLogout, ];
let tmp12 = null != action;
if (tmp12) {
const obj4 = { variant: "primary", text: action, onPress: onAction, loading: submitting };
2026-07-24 07:16:23 +00:00
tmp12 = callback(require(9937) /* ModalActionButton */.ModalActionButton, obj4);
2026-07-20 16:05:17 +00:00
}
items3[1] = tmp12;
obj3.children = items3;
2026-07-24 07:16:23 +00:00
footer = closure_4(require(11098) /* ModalFooter */.ModalFooter, obj3);
2026-07-20 16:05:17 +00:00
const tmp16 = closure_4;
}
items2[1] = footer;
obj.children = items2;
2026-07-24 07:16:23 +00:00
return closure_4(require(7613) /* ModalScreen */.ModalScreen, obj);
2026-07-20 16:05:17 +00:00
};