// Module ID: 17083 // Function ID: 17084 // Name: _openSafetyFlow // Dependencies: [5, 1385, 676, 17084, 5260, 17085, 17086, 17087, 2007, 2] // Exports: openSafetyFlow // Module 17083 (_openSafetyFlow) import SAFETY_FLOWS_MODAL_KEY from "SAFETY_FLOWS_MODAL_KEY"; import handleRequiredAction from "handleRequiredAction"; import { UserRequiredActions } from "ME"; const require = arg1; function _openSafetyFlow() { const self = this; const tmp = callback(() => { let closure_0 = arg0; let c6 = 0; let c7 = 0; let c5 = 0; const iter = (function*() { if (c7 === 2) { c7 = 3; HermesBuiltin.throwTypeError(); } else if (tmp6 === 3) { if (arg0 === 1) { throw arg1; } else if (arg0 === 2) { let obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { return { value: "HermesInternal", done: "HermesInternal" }; } } else { try { c7 = 2; if (0 === c6) { if (arg0 === 1) { c7 = 3; throw arg1; } else if (arg0 === 2) { c7 = 3; obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { let SAFETY_FLOWS_MODAL_KEY = tmp3; let closure_2 = tmp7; let requiredAction; let obj1 = requiredAction; if (requiredAction === undefined) { obj1 = {}; } requiredAction = obj1.requiredAction; let callback; closure_2 = undefined; c6 = 1; c7 = 1; return { value: "ct", done: true }; } } else { if (1 === tmp7) { if (arg0 === 1) { c7 = 3; throw arg1; } else if (arg0 === 2) { c7 = 3; const obj2 = { value: null, done: true }; obj2[0] = arg1; return obj2; } else { callback = requiredAction; if (requiredAction == null) { callback = action.getAction(); } if (callback === constants.REQUIRE_SAFETY_FLOWS) { constants = 1; let obj4 = requiredAction(closure_2[6]); c6 = 3; c7 = 1; let obj3 = { value: null, done: false }; obj3[0] = obj4.getCurrentTask(); return obj3; } else { obj3 = callback(closure_2[4]); obj3.popWithKey(requiredAction(closure_2[5]).SAFETY_FLOWS_MODAL_KEY); } } } else { if (2 === tmp7) { constants = 0; obj1 = callback(closure_2[4]); obj4 = { task: null, initialScreen: null }; obj4[1] = requiredAction(closure_2[3]).SafetyFlowScreens.ERROR; obj1.pushLazy(requiredAction(closure_2[8])(closure_2[7], closure_2.paths), obj4, requiredAction(closure_2[5]).SAFETY_FLOWS_MODAL_KEY); const tmp16 = requiredAction(closure_2[8])(closure_2[7], closure_2.paths); } else if (arg0 === 1) { c7 = 3; throw arg1; } else if (arg0 === 2) { constants = 0; c7 = 3; obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { callback = arg1; if (null != callback) { closure_2 = (function getInitialScreenForTask(closure_1) { if (closure_1.task_type === requiredAction(table[3]).TaskType.AGE_VERIFICATION) { let UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.AGE_VERIFICATION; } else if (closure_1.task_type === tmp(tmp2[3]).TaskType.PARENTAL_CONSENT_CONNECTION) { UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.PARENTAL_CONSENT_CONNECTION; } else if (null != tmp(tmp2[3]).TASK_TYPE_TO_SCREENS[closure_1.task_type]) { UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.OVERVIEW; } else { UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.UPDATE_APP; } return UPDATE_APP; })(callback); const obj5 = { task: null, initialScreen: null }; obj5[0] = callback; obj5[1] = closure_2; const obj11 = callback(closure_2[4]); obj11.pushLazy(requiredAction(closure_2[8])(closure_2[7], closure_2.paths), obj5, requiredAction(closure_2[5]).SAFETY_FLOWS_MODAL_KEY); constants = 0; const tmp56 = requiredAction(closure_2[8])(closure_2[7], closure_2.paths); } } constants = 0; c7 = 3; return { value: "HermesInternal", done: "HermesInternal" }; } c7 = 3; } } catch (tmp36) { action = tmp36; if (tmp4 === constants) { c7 = tmp2; throw tmp36; } else { c6 = tmp; } } } })(); iter.next(); return iter; }); const _openSafetyFlow = tmp; const apply = tmp.apply; if (typeof apply === "unknown") { let applyArgumentsResult = HermesBuiltin.applyArguments(self); } else { applyArgumentsResult = apply(self, arguments); } return applyArgumentsResult; } const result = require("ME").fileFinishedImporting("modules/safety_flows/openSafetyFlow.native.tsx"); export const openSafetyFlow = function openSafetyFlow(arg0) { const self = this; const apply = _openSafetyFlow.apply; if (typeof apply === "unknown") { let applyArgumentsResult = HermesBuiltin.applyArguments(self); } else { applyArgumentsResult = apply(self, arguments); } return applyArgumentsResult; };