/* Metro module 16201; source: modules/safety_flows/native/SafetyFlowsModal.tsx; dependencies: [57, 31, 33, 5280, 16199, 16202, 16207, 5282, 16209, 16211, 16212, 16213, 16204, 16203, 12805, 2] */ import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */ import OverviewScreen from './OverviewScreen.tsx'; /* Metro dependency 16202 */ import EnterEmailScreen from './tasks/EnterEmailScreen.tsx'; /* Metro dependency 16207 */ import VerifyEmailScreen from './tasks/VerifyEmailScreen.tsx'; /* Metro dependency 16209 */ import UpdateAppScreen from './UpdateAppScreen.tsx'; /* Metro dependency 16211 */ import AgeVerificationScreen from './tasks/AgeVerificationScreen.tsx'; /* Metro dependency 16212 */ import ErrorScreen from './ErrorScreen.tsx'; /* Metro dependency 16213 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */ import * as StepModalNativeModule from '../../../design/components/Modal/native/StepModal.native.tsx'; /* Metro dependency 12805 */ import * as TypesModule from '../types.tsx'; /* Metro dependency 16199 */ import * as SafetyFlowsTaskContextModule from '../SafetyFlowsTaskContext.tsx'; /* Metro dependency 16203 */ import * as SafetyFlowsUtilsModule from './SafetyFlowsUtils.tsx'; /* Metro dependency 16204 */ function _fun125210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:6, offset: 0x025d142c, size: 158 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/safety_flows/native/SafetyFlowsModal.tsx'); exports.default = SafetyFlowsModal; function SafetyFlowsModal({task, initialScreen}) { // fn#125211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:223, offset: 0x025d14ca, size: 228 bytes, params: 2, frame: 19 const [property, env0_1] = Module00057(ReactModule.useState(task), 2); const value4 = SafetyFlowsModalUseScreens(); const value5 = ReactModule.useMemo(_fun125230, [property]); const value6 = ReactModule.useMemo(_fun125233, [property]); const SafetyFlowTaskContext = (SafetyFlowsTaskContextModule).SafetyFlowTaskContext; const Provider = SafetyFlowTaskContext.Provider; const StepModal = (StepModalNativeModule).StepModal; return ( ); function SafetyFlowsModalUseScreens() { // fn#125212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:320, owner: SafetyFlowsModal.useScreens, offset: 0x025d15ae, size: 52 bytes, params: 1, frame: 13 var environment; const value = environment.__proto__; return (NavigatorNativeModule).useNavigatorScreens(_fun125213, []); function _fun125213() { // fn#125213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:378, offset: 0x025d15e2, size: 416 bytes, params: 1, frame: 18 var environment; const object = {}; const value = environment.__proto__.__proto__; const SafetyFlowScreens = (TypesModule).SafetyFlowScreens; const OVERVIEW = SafetyFlowScreens.OVERVIEW; object[OVERVIEW] = {headerLeft: function() { return null; }, headerShown: false, render: render_125215}; const ENTER_EMAIL = SafetyFlowScreens.ENTER_EMAIL; object[ENTER_EMAIL] = {headerLeft: function() { return null; }, headerTitle: function() { return null; }, render: render_125218}; const VERIFY_EMAIL = SafetyFlowScreens.VERIFY_EMAIL; const object4 = {}; object4.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton(); object4.headerTitle = function() { return null; }; object4.render = render_125220; object[VERIFY_EMAIL] = object4; const UPDATE_APP = SafetyFlowScreens.UPDATE_APP; object[UPDATE_APP] = {headerLeft: function() { return null; }, headerTitle: function() { return null; }, render: render_125223}; const AGE_VERIFICATION = SafetyFlowScreens.AGE_VERIFICATION; object[AGE_VERIFICATION] = {headerLeft: function() { return null; }, headerTitle: function() { return null; }, render: render_125226}; const ERROR = SafetyFlowScreens.ERROR; object[ERROR] = {headerLeft: function() { return null; }, headerTitle: function() { return null; }, render: render_125229}; return object; function render_125215() { // fn#125215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:464, offset: 0x025d1782, size: 39 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__; return ((Component) => )(OverviewScreen); } function render_125218() { // fn#125218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:572, offset: 0x025d17a9, size: 39 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__; return ((Component) => )(EnterEmailScreen); } function render_125220() { // fn#125220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:702, offset: 0x025d17d0, size: 39 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__; return ((Component) => )(VerifyEmailScreen); } function render_125223() { // fn#125223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:809, offset: 0x025d17f7, size: 39 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__; return ((Component) => )(UpdateAppScreen); } function render_125226() { // fn#125226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:922, offset: 0x025d181e, size: 39 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__; return ((Component) => )(AgeVerificationScreen); } function render_125229() { // fn#125229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1025, offset: 0x025d1845, size: 39 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__; return ((Component) => )(ErrorScreen); } } } function _fun125230() { // fn#125230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1068, offset: 0x025d186c, size: 102 bytes, params: 1, frame: 13 var r0; var value; if (env0_0?.flow_context == null) { r0 = []; } else { value = env0_0.flow_context.tasks.map(_fun125231); value = value.filter(function(a0) { return a0 != null; }); value = value.flat(); r0 = value; } return r0; function _fun125231({task_type}) { // fn#125231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1139, offset: 0x025d18d2, size: 47 bytes, params: 2, frame: 11 const value = environment.__proto__.__proto__; return (SafetyFlowsUtilsModule).getScreensForTaskType(task_type); } } function _fun125233() { // fn#125233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1235, offset: 0x025d1901, size: 25 bytes, params: 1, frame: 3 return {task: env0_0, setTask: env0_1}; } } } global.__d(_fun125210, 16201, [57, 31, 33, 5280, 16199, 16202, 16207, 5282, 16209, 16211, 16212, 16213, 16204, 16203, 12805, 2]) /* metro module 16201, dependencies: [57, 31, 33, 5280, 16199, 16202, 16207, 5282, 16209, 16211, 16212, 16213, 16204, 16203, 12805, 2] */;