decord/source/modules/safety_hub/AutomatedUnderageAppealModalActionCreators.native.tsx

63 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11117
// Function ID: 11118
// Dependencies: [5, 5443, 5432, 21, 709, 4346, 11118, 2008, 5265, 6725, 5259, 11106, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 11117
import dispatcherDefault from "dispatcher" /* 709 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2008 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4346 */;
import _modDef5265 from "module_5265" /* 5265 */;
import closure_3 from "asyncGeneratorStep" /* 5 */;
import SafetyHubView from "SafetyHubView" /* 5443 */;
import { AGE_VERIFICATION_GET_STARTED_MODAL_KEY as closure_6 } from "set" /* 5432 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ AGE_APPEAL_ACTION_SHEET_NAME: c4, AGE_CHECK_POLL_DELAY_MS: c5 } = SafetyHubView);
2026-07-23 10:11:24 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
open(classificationId, onClose) {
2026-08-24 06:08:38 +00:00
obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj.dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_OPEN" });
obj = { classificationId, onClose };
2026-08-24 06:08:38 +00:00
ACTION_SHEET_HEIGHT_HALFDefault.openLazy(asyncRequireImpl(11118, dependencyMap.paths), closure_4, obj);
2026-07-20 16:05:17 +00:00
},
2026-07-29 08:29:29 +00:00
openV2(arg0, onClose) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
importDefault = onClose;
obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj.dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_OPEN" });
obj = { onClose };
2026-08-24 06:08:38 +00:00
_modDef5265.pushLazy(callback(function*() {
closure_0 = tmp2;
yield closure_1_0(paths[7])(paths[9], paths.paths);
2026-08-04 21:03:28 +00:00
closure_0 = arg1.default;
2026-08-24 06:08:38 +00:00
return () => closure_2_7(closure_0, {
2026-08-04 21:03:28 +00:00
classificationId: closure_0,
2026-08-24 06:08:38 +00:00
entryPoint: closure_2_0(table[10]).AgeVerificationModalEntryPoint.AUTOMATED_UNDERAGE_APPEALS,
2026-08-04 21:03:28 +00:00
isRetry: false,
useEmbeddedMethods: true,
onComplete() {
2026-08-24 06:08:38 +00:00
closure_1_8.success();
2026-08-04 21:03:28 +00:00
if (closure_1 != null) {
closure_1();
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
const result = closure_1_8.start_verification_check();
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
});
2026-07-29 08:29:29 +00:00
}), obj, closure_6);
2026-07-20 16:05:17 +00:00
},
close() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_CLOSE" });
2026-07-20 16:05:17 +00:00
},
success() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_SUBMIT_SUCCESS" });
2026-07-20 16:05:17 +00:00
},
start_verification_check() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_START_POLL" });
2026-07-29 08:29:29 +00:00
const timerId = setTimeout(() => callback(table[11]).checkSuspendedUserAgeVerification(), closure_5);
2026-07-20 16:05:17 +00:00
}
};
2026-07-29 08:29:29 +00:00
let result = require("set").fileFinishedImporting("modules/safety_hub/AutomatedUnderageAppealModalActionCreators.native.tsx");
2026-07-20 16:05:17 +00:00
export default obj;