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

108 lines
3.3 KiB
TypeScript
Raw Normal View History

// Module ID: 17982
// Function ID: 17983
2026-07-20 16:05:17 +00:00
// Name: SafetyFlowsModal
// Dependencies: [32, 19, 21, 7103, 17979, 17983, 17987, 5705, 17989, 17991, 17992, 17993, 17994, 17999, 18000, 17985, 17984, 14262, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 17982 (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(7103).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(5705).getHeaderBackButton(),
2026-08-24 06:08:38 +00:00
headerTitle() {
return null;
},
render() {
return closure_1_5(setTask(17989), {});
2026-08-24 06:08:38 +00:00
}
2026-07-29 08:29:29 +00:00
};
obj[first(17979).SafetyFlowScreens.VERIFY_EMAIL] = obj4;
obj[first(17979).SafetyFlowScreens.UPDATE_APP] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
return closure_1_5(setTask(17991), {});
2026-07-29 08:29:29 +00:00
}
};
obj[first(17979).SafetyFlowScreens.AGE_VERIFICATION] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
return closure_1_5(setTask(17992), {});
2026-07-29 08:29:29 +00:00
}
};
obj[first(17979).SafetyFlowScreens.PARENTAL_CONSENT_CONNECTION] = {
2026-07-29 08:29:29 +00:00
headerShown: false,
customNavbar() {
return closure_1_5(task(17993).ParentalConsentConnectionNavbar, {});
2026-07-29 08:29:29 +00:00
},
render() {
return closure_1_5(setTask(17994), {});
2026-08-24 06:08:38 +00:00
}
};
obj[first(17979).SafetyFlowScreens.APP_STORE_PARENTAL_REVOCATION] = {
2026-08-24 06:08:38 +00:00
headerShown: false,
render() {
return closure_1_5(setTask(17999), {});
2026-07-29 08:29:29 +00:00
}
};
obj[first(17979).SafetyFlowScreens.ERROR] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
return closure_1_5(setTask(18000), {});
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(7103);
return jsx(task(17984).SafetyFlowTaskContext.Provider, { value: memo1, children: jsx(task(14262).StepModal, { initialRouteName: initialRouteName.initialScreen, screens: navigatorScreens, steps: memo }) });
2026-07-20 16:05:17 +00:00
};