decord/source/modules/safety_hub/AutomatedUnderageAppealModalActionCreators.native.tsx
2026-07-29 08:29:29 +00:00

110 lines
3.7 KiB
TypeScript

// Module ID: 11084
// Function ID: 11085
// Dependencies: [5, 6756, 6748, 21, 709, 4157, 11085, 1959, 4395, 7618, 6749, 11078, 2]
// Module 11084
import ACTION_SHEET_HEIGHT_HALF from "ACTION_SHEET_HEIGHT_HALF";
import SafetyHubView from "SafetyHubView";
import { AGE_VERIFICATION_GET_STARTED_MODAL_KEY as closure_6 } from "set";
import { jsx } from "jsxProd";
let c4;
let c5;
const require = arg1;
({ AGE_APPEAL_ACTION_SHEET_NAME: c4, AGE_CHECK_POLL_DELAY_MS: c5 } = SafetyHubView);
let obj = {
open(classificationId, onClose) {
let obj = importDefault(709);
obj.dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_OPEN" });
obj = { classificationId, onClose };
importDefault(4157).openLazy(require(1959) /* asyncRequireImpl */(11085, dependencyMap.paths), closure_4, obj);
},
openV2(arg0, onClose) {
let closure_0 = arg0;
const importDefault = onClose;
let obj = importDefault(709);
obj.dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_OPEN" });
obj = { onClose };
importDefault(4395).pushLazy(callback(function*() {
if (paths === 2) {
paths = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 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: null };
}
} else {
try {
paths = 2;
if (0 === c1) {
if (arg0 === 1) {
paths = 3;
throw arg1;
} else if (arg0 === 2) {
paths = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
let closure_0 = tmp2;
closure_0 = undefined;
c1 = 1;
paths = 1;
const obj1 = { value: null, done: false };
obj1[0] = outer1_0(paths[7])(paths[9], paths.paths);
return obj1;
}
} else if (arg0 === 1) {
paths = 3;
throw arg1;
} else if (arg0 === 2) {
paths = 3;
const obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
closure_0 = arg1.default;
paths = 3;
obj = { value: null, done: true };
obj[0] = () => outer2_7(closure_0, {
classificationId: closure_0,
entryPoint: outer2_0(table[10]).AgeVerificationModalEntryPoint.AUTOMATED_UNDERAGE_APPEALS,
isRetry: false,
useEmbeddedMethods: true,
onComplete() {
outer1_8.success();
if (closure_1 != null) {
closure_1();
}
const result = outer1_8.start_verification_check();
}
});
return obj;
}
} catch (tmp9) {
paths = tmp;
throw tmp9;
}
}
}), obj, closure_6);
},
close() {
importDefault(709).dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_CLOSE" });
},
success() {
importDefault(709).dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_SUBMIT_SUCCESS" });
},
start_verification_check() {
importDefault(709).dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_START_POLL" });
const timerId = setTimeout(() => callback(table[11]).checkSuspendedUserAgeVerification(), closure_5);
}
};
let result = require("set").fileFinishedImporting("modules/safety_hub/AutomatedUnderageAppealModalActionCreators.native.tsx");
export default obj;