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

108 lines
3.3 KiB
TypeScript
Raw Normal View History

// Module ID: 18021
// Function ID: 18022
2026-07-20 16:05:17 +00:00
// Name: SafetyFlowsModal
// Dependencies: [32, 19, 21, 7107, 18018, 18022, 18026, 5709, 18028, 18030, 18031, 18032, 18033, 18038, 18039, 18024, 18023, 14272, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 18021 (SafetyFlowsModal)
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = fn;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/safety_flows/native/SafetyFlowsModal.tsx");
2026-07-20 16:05:17 +00:00
export default function SafetyFlowsModal(initialRouteName) {
task = undefined;
setTask = undefined;
[task, setTask] = noop.useState(initialRouteName.task);
const items = [task];
const navigatorScreens = task(7107).useNavigatorScreens(() => {
const obj = { [closure_1_0(closure_1_2[4]).SafetyFlowScreens.OVERVIEW]: obj2, [closure_1_0(closure_1_2[4]).SafetyFlowScreens.ENTER_EMAIL]: obj3 };
const obj4 = {
headerLeft: first(5709).getHeaderBackButton(),
2026-08-24 06:08:38 +00:00
headerTitle() {
return null;
},
render() {
return closure_1_5(setTask(18028), {});
2026-08-24 06:08:38 +00:00
}
2026-07-29 08:29:29 +00:00
};
obj[first(18018).SafetyFlowScreens.VERIFY_EMAIL] = obj4;
obj[first(18018).SafetyFlowScreens.UPDATE_APP] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
return closure_1_5(setTask(18030), {});
2026-07-29 08:29:29 +00:00
}
};
obj[first(18018).SafetyFlowScreens.AGE_VERIFICATION] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
return closure_1_5(setTask(18031), {});
2026-07-29 08:29:29 +00:00
}
};
obj[first(18018).SafetyFlowScreens.PARENTAL_CONSENT_CONNECTION] = {
2026-07-29 08:29:29 +00:00
headerShown: false,
customNavbar() {
return closure_1_5(task(18032).ParentalConsentConnectionNavbar, {});
2026-07-29 08:29:29 +00:00
},
render() {
return closure_1_5(setTask(18033), {});
2026-08-24 06:08:38 +00:00
}
};
obj[first(18018).SafetyFlowScreens.APP_STORE_PARENTAL_REVOCATION] = {
2026-08-24 06:08:38 +00:00
headerShown: false,
render() {
return closure_1_5(setTask(18038), {});
2026-07-29 08:29:29 +00:00
}
};
obj[first(18018).SafetyFlowScreens.ERROR] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
return closure_1_5(setTask(18039), {});
2026-07-29 08:29:29 +00:00
}
};
return obj;
}, []);
const items1 = [task];
const memo = noop.useMemo(() => {
2026-07-20 16:05:17 +00:00
let flow_context;
2026-07-29 08:29:29 +00:00
if (first != null) {
flow_context = tmp.flow_context;
2026-07-20 16:05:17 +00:00
}
if (null == flow_context) {
return [];
} else {
2026-07-29 08:29:29 +00:00
const tasks = tmp.flow_context.tasks;
2026-08-24 06:08:38 +00:00
if (1 !== tasks.length) {
const tasks1 = tmp.flow_context.tasks;
const mapped = tasks1.map((task_type) => task(dependencyMap[15]).getScreensForTaskType(task_type.task_type));
const found = mapped.filter((item) => null != item);
2026-08-24 06:08:38 +00:00
let flatResult = found.flat();
} else {
flatResult = [];
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
return flatResult;
2026-07-20 16:05:17 +00:00
}
}, items);
const memo1 = noop.useMemo(() => ({ task, setTask }), items1);
let obj = task(7107);
return jsx(task(18023).SafetyFlowTaskContext.Provider, { value: memo1, children: jsx(task(14272).StepModal, { initialRouteName: initialRouteName.initialScreen, screens: navigatorScreens, steps: memo }) });
2026-07-20 16:05:17 +00:00
};