Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
184 lines
6.5 KiB
TypeScript
184 lines
6.5 KiB
TypeScript
// Module ID: 18326
|
|
// Function ID: 18327
|
|
// Name: openSafetyFlow
|
|
// Dependencies: [5, 2035, 1074, 18327, 4991, 18328, 18329, 17870, 18330, 1980, 2]
|
|
// Exports: openSafetyFlow
|
|
|
|
// Module 18326 (openSafetyFlow)
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
import UserRequiredActionStore from "UserRequiredActionStore" /* 2035 */;
|
|
|
|
const require = fn;
|
|
let closure_6 = async function _openSafetyFlow(arg0, value) {
|
|
if (c7 === 2) {
|
|
c7 = 3;
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
} else if (tmp6 === 3) {
|
|
if (arg0 === 1) {
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
const obj3 = { value, done: true };
|
|
return obj3;
|
|
} else {
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} else {
|
|
try {
|
|
c7 = 2;
|
|
if (0 === c6) {
|
|
if (arg0 === 1) {
|
|
c7 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c7 = 3;
|
|
const obj4 = { value, done: true };
|
|
return obj4;
|
|
} else {
|
|
closure_3 = tmp3;
|
|
closure_2 = tmp7;
|
|
let requiredAction;
|
|
let obj6 = closure_0;
|
|
if (closure_0 === undefined) {
|
|
obj6 = {};
|
|
}
|
|
requiredAction = obj6.requiredAction;
|
|
closure_130_1 = undefined;
|
|
closure_130_2 = undefined;
|
|
c6 = 1;
|
|
c7 = 1;
|
|
return { value: "PX_16", done: true };
|
|
}
|
|
} else {
|
|
if (1 === tmp7) {
|
|
if (arg0 === 1) {
|
|
c7 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c7 = 3;
|
|
const obj8 = { value, done: true };
|
|
return obj8;
|
|
} else {
|
|
let action = requiredAction;
|
|
if (requiredAction == null) {
|
|
action = closure_131_4.getAction();
|
|
}
|
|
if (action === closure_131_5.REQUIRE_SAFETY_FLOWS) {
|
|
c5 = 1;
|
|
c6 = 3;
|
|
c7 = 1;
|
|
const obj9 = { value: closure_131_0(closure_131_2[6]).getCurrentTask(), done: false };
|
|
return obj9;
|
|
} else {
|
|
closure_131_1(closure_131_2[4]).popWithKey(closure_131_0(closure_131_2[5]).SAFETY_FLOWS_MODAL_KEY);
|
|
const obj12 = closure_131_1(closure_131_2[4]);
|
|
}
|
|
}
|
|
} else {
|
|
if (2 === tmp7) {
|
|
c5 = 0;
|
|
const obj11 = { task: null, initialScreen: null };
|
|
const obj10 = closure_131_1(closure_131_2[4]);
|
|
obj11.initialScreen = closure_131_0(closure_131_2[3]).SafetyFlowScreens.ERROR;
|
|
obj10.pushLazy(closure_131_0(closure_131_2[9])(closure_131_2[8], closure_131_2.paths), obj11, closure_131_0(closure_131_2[5]).SAFETY_FLOWS_MODAL_KEY);
|
|
const tmp38 = closure_131_0(closure_131_2[9])(closure_131_2[8], closure_131_2.paths);
|
|
} else {
|
|
if (3 === tmp7) {
|
|
if (arg0 === 1) {
|
|
c7 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c5 = 0;
|
|
c7 = 3;
|
|
const obj14 = { value, done: true };
|
|
return obj14;
|
|
} else {
|
|
closure_130_1 = value;
|
|
if (null == closure_130_1) {
|
|
c5 = 0;
|
|
c7 = 3;
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
}
|
|
} else if (4 === tmp7) {
|
|
if (arg0 === 1) {
|
|
c7 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c5 = 0;
|
|
c7 = 3;
|
|
const obj15 = { value, done: true };
|
|
return obj15;
|
|
} else {
|
|
c6 = 5;
|
|
c7 = 1;
|
|
const obj16 = { value: closure_131_0(closure_131_2[6]).getCurrentTask(), done: false };
|
|
return obj16;
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c7 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c5 = 0;
|
|
c7 = 3;
|
|
const obj = { value, done: true };
|
|
return obj;
|
|
} else {
|
|
closure_130_1 = value;
|
|
if (null == value) {
|
|
c5 = 0;
|
|
c7 = 3;
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
}
|
|
closure_130_2 = (function getInitialScreenForTask(task_type) {
|
|
if (task_type.task_type === closure_1_0(closure_1_2[3]).TaskType.AGE_VERIFICATION) {
|
|
let UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.AGE_VERIFICATION;
|
|
} else if (task_type.task_type === tmp(tmp2[3]).TaskType.PARENTAL_CONSENT_CONNECTION) {
|
|
UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.PARENTAL_CONSENT_CONNECTION;
|
|
} else if (task_type.task_type === tmp(tmp2[3]).TaskType.APP_STORE_PARENTAL_REVOCATION) {
|
|
UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.APP_STORE_PARENTAL_REVOCATION;
|
|
} else if (null != tmp(tmp2[3]).TASK_TYPE_TO_SCREENS[task_type.task_type]) {
|
|
UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.OVERVIEW;
|
|
} else {
|
|
UPDATE_APP = tmp(tmp2[3]).SafetyFlowScreens.UPDATE_APP;
|
|
}
|
|
return UPDATE_APP;
|
|
})(closure_130_1);
|
|
const obj17 = { task: closure_130_1, initialScreen: closure_130_2 };
|
|
const obj5 = closure_131_1(closure_131_2[4]);
|
|
obj5.pushLazy(closure_131_0(closure_131_2[9])(closure_131_2[8], closure_131_2.paths), obj17, closure_131_0(closure_131_2[5]).SAFETY_FLOWS_MODAL_KEY);
|
|
c5 = 0;
|
|
const tmp21 = closure_131_0(closure_131_2[9])(closure_131_2[8], closure_131_2.paths);
|
|
}
|
|
c6 = 4;
|
|
c7 = 1;
|
|
const obj18 = { value: closure_131_0(closure_131_2[7]).settleAppStoreAgeSignalReport(), done: false };
|
|
return obj18;
|
|
}
|
|
c7 = 3;
|
|
}
|
|
} catch (tmp58) {
|
|
closure_4 = tmp58;
|
|
if (tmp4 === c5) {
|
|
c7 = tmp2;
|
|
throw tmp58;
|
|
} else {
|
|
c6 = tmp;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
const UserRequiredActions = fn(1074).UserRequiredActions;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/safety_flows/openSafetyFlow.native.tsx");
|
|
|
|
export const openSafetyFlow = function openSafetyFlow() {
|
|
const self = this;
|
|
const apply = closure_6.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
};
|