decord/beta/source/modules/parent_tools/FamilyCenterModalRequestRouting.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

111 lines
3.6 KiB
TypeScript

// Module ID: 12046
// Function ID: 12047
// Name: FamilyCenterModalRequestRouting
// Dependencies: [5, 7785, 7786, 2]
// Exports: resolveConnectionPrereqTarget
// Module 12046 (FamilyCenterModalRequestRouting)
import FamilyCenterActionCreatorsDefault from "FamilyCenterActionCreators" /* 7786 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
function getConnectionPrereqTarget(teen_identity) {
if ("ready" in teen_identity) {
const obj2 = { section: frozen.REQUEST, params: null };
const obj3 = { teenIdentity: teen_identity.teen_identity };
obj2.params = obj3;
let tmp = obj2;
} else if ("invalid_link_code" in teen_identity) {
const obj4 = { section: frozen.INVALID_CODE };
tmp = obj4;
} else if ("verified_teen_blocked" in teen_identity) {
const obj5 = { section: frozen.MUST_BE_ADULT };
tmp = obj5;
} else if ("requires_adult_verification" in teen_identity) {
obj = { section: frozen.CONFIRM_AGE, params: null };
const obj6 = { teenIdentity: teen_identity.teen_identity };
obj.params = obj6;
tmp = obj;
} else {
tmp = obj;
}
return tmp;
}
let closure_6 = async function _resolveConnectionPrereqTarget(arg0, value) {
if (c6 === 2) {
c6 = 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 obj2 = { value, done: true };
return obj2;
} else {
return { value: "IconComponent", done: null };
}
} else {
try {
c6 = 2;
if (0 === c5) {
if (arg0 === 1) {
c6 = 3;
throw value;
} else if (arg0 === 2) {
c6 = 3;
const obj3 = { value, done: true };
return obj3;
} else {
closure_3 = tmp3;
c4 = 1;
asyncGeneratorStep = getConnectionPrereqTarget;
c5 = 2;
c6 = 1;
const obj5 = { value: FamilyCenterActionCreatorsDefault.getConnectionPrerequisites(closure_0, closure_1), done: false };
return obj5;
}
} else if (1 === tmp7) {
c4 = 0;
c6 = 3;
const obj6 = { value: closure_131_4, done: true };
return obj6;
} else if (arg0 === 1) {
c6 = 3;
throw value;
} else if (arg0 === 2) {
c4 = 0;
c6 = 3;
const obj7 = { value, done: true };
return obj7;
} else {
c4 = 0;
c6 = 3;
obj = { value: asyncGeneratorStep(value), done: true };
return obj;
}
} catch (tmp15) {
if (tmp4 === c4) {
c6 = tmp2;
throw tmp15;
} else {
c5 = tmp;
}
}
}
};
const frozen = Object.freeze({ PREREQ_LOADING: "PREREQ_LOADING", CONFIRM_AGE: "CONFIRM_AGE", VERIFYING: "VERIFYING", REQUEST: "REQUEST", SENT: "SENT", ERROR: "ERROR", INVALID_CODE: "INVALID_CODE", MUST_BE_ADULT: "MUST_BE_ADULT", TEEN_SCAN: "TEEN_SCAN" });
let obj = { section: frozen.ERROR, params: { failureCode: fn(7785).FamilyCenterFailureCode.GENERIC_ERROR } };
const size = fn(2);
const result = size.fileFinishedImporting("modules/parent_tools/FamilyCenterModalRequestRouting.tsx");
export const FamilyCenterModalRequestSections = frozen;
export { getConnectionPrereqTarget };
export const resolveConnectionPrereqTarget = function resolveConnectionPrereqTarget() {
const self = this;
const apply = closure_6.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};