/* 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] */ 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}); const env0_3 = importDefault(57) /* metro dependency 57 */; const env0_4 = importAll(31) /* metro dependency 31 */; const env0_5 = (require(33) /* metro dependency 33 */).jsx; (require(2) /* metro dependency 2 */).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 binding = env0_4; const [property, env0_1] = env0_3(binding.useState(task), 2); const value4 = SafetyFlowsModalUseScreens(); const value5 = binding.useMemo(_fun125230, [property]); const value6 = binding.useMemo(_fun125233, [property]); const SafetyFlowTaskContext = (require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */).SafetyFlowTaskContext; const Provider = SafetyFlowTaskContext.Provider; const StepModal = (require(12805) /* metro dependency 12805: StepModalNative */).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 (require(5280) /* metro dependency 5280: NavigatorNative */).useNavigatorScreens(_fun125213, []); } 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 _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}; } 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 object2 = {}; const value = environment.__proto__.__proto__; const SafetyFlowScreens = (require(16199) /* metro dependency 16199: types */).SafetyFlowScreens; const OVERVIEW = SafetyFlowScreens.OVERVIEW; object2[OVERVIEW] = {headerLeft: function() { return null; }, headerShown: false, render: render_125215}; const ENTER_EMAIL = SafetyFlowScreens.ENTER_EMAIL; object2[ENTER_EMAIL] = {headerLeft: function() { return null; }, headerTitle: function() { return null; }, render: render_125218}; const VERIFY_EMAIL = SafetyFlowScreens.VERIFY_EMAIL; const object3 = {}; object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton(); object3.headerTitle = function() { return null; }; object3.render = render_125220; object2[VERIFY_EMAIL] = object3; const UPDATE_APP = SafetyFlowScreens.UPDATE_APP; object2[UPDATE_APP] = {headerLeft: function() { return null; }, headerTitle: function() { return null; }, render: render_125223}; const AGE_VERIFICATION = SafetyFlowScreens.AGE_VERIFICATION; object2[AGE_VERIFICATION] = {headerLeft: function() { return null; }, headerTitle: function() { return null; }, render: render_125226}; const ERROR = SafetyFlowScreens.ERROR; object2[ERROR] = {headerLeft: function() { return null; }, headerTitle: function() { return null; }, render: render_125229}; return object2; } 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 (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).getScreensForTaskType(task_type); } 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) => )(importDefault(16202) /* metro dependency 16202: 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) => )(importDefault(16207) /* metro dependency 16207: 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) => )(importDefault(16209) /* metro dependency 16209: 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) => )(importDefault(16211) /* metro dependency 16211: 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) => )(importDefault(16212) /* metro dependency 16212: 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) => )(importDefault(16213) /* metro dependency 16213: ErrorScreen */); }