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

132 lines
3.9 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 17212
// Function ID: 17213
2026-07-20 16:05:17 +00:00
// Name: SafetyFlowsModal
2026-08-25 06:04:03 +00:00
// Dependencies: [32, 19, 21, 5889, 17209, 17213, 17217, 5376, 17219, 17221, 17222, 17223, 17224, 17229, 17230, 17215, 17214, 13631, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 17212 (SafetyFlowsModal)
2026-08-24 06:08:38 +00:00
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/safety_flows/native/SafetyFlowsModal.tsx");
2026-07-20 16:05:17 +00:00
export default function SafetyFlowsModal(initialRouteName) {
2026-07-29 08:29:29 +00:00
let first;
2026-08-24 06:08:38 +00:00
closure_1 = undefined;
2026-07-20 16:05:17 +00:00
const tmp = callback(React.useState(initialRouteName.task), 2);
2026-07-29 08:29:29 +00:00
first = tmp[0];
closure_1 = tmp[1];
2026-08-25 06:04:03 +00:00
let obj = first(5889);
2026-08-24 06:08:38 +00:00
const items = [first];
2026-07-29 08:29:29 +00:00
const navigatorScreens = obj.useNavigatorScreens(() => {
obj = { [closure_0(closure_2[4]).SafetyFlowScreens.OVERVIEW]: obj, [closure_0(closure_2[4]).SafetyFlowScreens.ENTER_EMAIL]: obj };
obj = {
headerLeft() {
return null;
},
headerShown: false,
render() {
2026-08-25 06:04:03 +00:00
return callback3(callback2(17213), {});
2026-07-29 08:29:29 +00:00
}
};
obj = {
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
2026-08-25 06:04:03 +00:00
return callback3(callback2(17217), {});
2026-07-29 08:29:29 +00:00
}
};
2026-08-24 06:08:38 +00:00
obj1 = {
2026-08-25 06:04:03 +00:00
headerLeft: first(5376).getHeaderBackButton(),
2026-08-24 06:08:38 +00:00
headerTitle() {
return null;
},
render() {
2026-08-25 06:04:03 +00:00
return callback3(callback2(17219), {});
2026-08-24 06:08:38 +00:00
}
2026-07-29 08:29:29 +00:00
};
2026-08-25 06:04:03 +00:00
obj[first(17209).SafetyFlowScreens.VERIFY_EMAIL] = obj1;
obj[first(17209).SafetyFlowScreens.UPDATE_APP] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
2026-08-25 06:04:03 +00:00
return callback3(callback2(17221), {});
2026-07-29 08:29:29 +00:00
}
};
2026-08-25 06:04:03 +00:00
obj[first(17209).SafetyFlowScreens.AGE_VERIFICATION] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
2026-08-25 06:04:03 +00:00
return callback3(callback2(17222), {});
2026-07-29 08:29:29 +00:00
}
};
2026-08-25 06:04:03 +00:00
obj[first(17209).SafetyFlowScreens.PARENTAL_CONSENT_CONNECTION] = {
2026-07-29 08:29:29 +00:00
headerShown: false,
customNavbar() {
2026-08-25 06:04:03 +00:00
return callback3(callback(17223).ParentalConsentConnectionNavbar, {});
2026-07-29 08:29:29 +00:00
},
render() {
2026-08-25 06:04:03 +00:00
return callback3(callback2(17224), {});
2026-08-24 06:08:38 +00:00
}
};
2026-08-25 06:04:03 +00:00
obj[first(17209).SafetyFlowScreens.APP_STORE_PARENTAL_REVOCATION] = {
2026-08-24 06:08:38 +00:00
headerShown: false,
render() {
2026-08-25 06:04:03 +00:00
return callback3(callback2(17229), {});
2026-07-29 08:29:29 +00:00
}
};
2026-08-25 06:04:03 +00:00
obj[first(17209).SafetyFlowScreens.ERROR] = {
2026-07-29 08:29:29 +00:00
headerLeft() {
return null;
},
headerTitle() {
return null;
},
render() {
2026-08-25 06:04:03 +00:00
return callback3(callback2(17230), {});
2026-07-29 08:29:29 +00:00
}
};
return obj;
}, []);
2026-07-20 16:05:17 +00:00
const items1 = [first];
const memo = React.useMemo(() => {
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) => callback(table[15]).getScreensForTaskType(task_type.task_type));
const found = mapped.filter((arg0) => null != arg0);
let flatResult = found.flat();
} else {
flatResult = [];
const tmp3 = first;
const tmp4 = closure_1_2;
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 = React.useMemo(() => ({ task: first, setTask: closure_1 }), items1);
2026-08-25 06:04:03 +00:00
obj = { value: memo1, children: jsx(first(13631).StepModal, { initialRouteName: initialRouteName.initialScreen, screens: navigatorScreens, steps: memo }) };
return jsx(first(17214).SafetyFlowTaskContext.Provider, { value: memo1, children: jsx(first(13631).StepModal, { initialRouteName: initialRouteName.initialScreen, screens: navigatorScreens, steps: memo }) });
2026-07-20 16:05:17 +00:00
};