Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
167 lines
5.5 KiB
TypeScript
167 lines
5.5 KiB
TypeScript
// Module ID: 8657
|
|
// Function ID: 8658
|
|
// Name: ManualReviewActionCreators
|
|
// Dependencies: [5, 502, 1074, 8464, 1090, 1272, 8483, 8476, 8469, 2]
|
|
// Exports: handleManualReviewCta, invalidateManualReviewCache
|
|
|
|
// Module 8657 (ManualReviewActionCreators)
|
|
import DurationsDefault from "Durations" /* 1090 */;
|
|
import HTTPUtils from "HTTPUtils" /* 1272 */;
|
|
import SafetyHubUtils from "SafetyHubUtils" /* 8483 */;
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
|
|
|
require = fn;
|
|
let closure_9 = async function _requestManualReview() {
|
|
const HTTP = HTTPUtils.HTTP;
|
|
await HTTP.post({ url: constants.AGE_VERIFICATION_MANUAL_REVIEW, rejectWithError: true });
|
|
return arg1.body;
|
|
};
|
|
let closure_10 = async function _requestManualReviewSuspendedUser() {
|
|
suspendedUserToken = suspendedUserToken.getSuspendedUserToken();
|
|
const HTTP = HTTPUtils.HTTP;
|
|
const request = { url: constants.AGE_VERIFICATION_SUSPENDED_MANUAL_REVIEW, body: { token: suspendedUserToken }, rejectWithError: true };
|
|
await HTTP.post(request);
|
|
return arg1.body;
|
|
};
|
|
let closure_14 = async function _handleManualReviewCta(arg0, value) {
|
|
if (c5 === 2) {
|
|
c5 = 3;
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
} else if (tmp7 === 3) {
|
|
if (arg0 === 1) {
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
const obj5 = { value, done: true };
|
|
return obj5;
|
|
} else {
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} else {
|
|
try {
|
|
c5 = 2;
|
|
if (0 === c4) {
|
|
if (arg0 === 1) {
|
|
c5 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c5 = 3;
|
|
const obj7 = { value, done: true };
|
|
return obj7;
|
|
} else {
|
|
closure_1 = tmp4;
|
|
closure_0 = tmp8;
|
|
closure_128_0 = undefined;
|
|
if (c11) {
|
|
c5 = 3;
|
|
} else {
|
|
c11 = true;
|
|
c3 = 2;
|
|
closure_128_0 = closure_2_12;
|
|
let tmp23 = null == closure_128_0;
|
|
if (!tmp23) {
|
|
const _Date2 = Date;
|
|
tmp23 = Date.now() - map1 >= MINUTE;
|
|
}
|
|
if (tmp23) {
|
|
if (obj6.isCurrentUserSuspended()) {
|
|
(function requestManualReviewSuspendedUser() {
|
|
const self = this;
|
|
const apply = closure_1_10.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
})();
|
|
} else {
|
|
(function requestManualReview() {
|
|
const self = this;
|
|
const apply = closure_1_9.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
})();
|
|
}
|
|
c4 = 3;
|
|
c5 = 1;
|
|
obj6 = SafetyHubUtils;
|
|
} else if (closure_128_0.status !== closure_129_7.DECIDED_TEEN) {
|
|
const result = closure_129_1(closure_129_2[7]).showManualReviewWebview(closure_128_0.verification_webview_url);
|
|
c3 = 1;
|
|
const obj3 = closure_129_1(closure_129_2[7]);
|
|
}
|
|
}
|
|
const result1 = closure_129_1(closure_129_2[7]).showManualReviewDecidedTeenModal();
|
|
c3 = 0;
|
|
closure_129_11 = false;
|
|
c5 = 3;
|
|
const obj8 = { value: undefined, done: true };
|
|
return obj8;
|
|
}
|
|
} else if (1 === tmp8) {
|
|
c3 = 0;
|
|
closure_129_11 = false;
|
|
throw closure_2;
|
|
} else if (2 === tmp8) {
|
|
c3 = 1;
|
|
closure_129_1(closure_129_2[8]).showFailedToast(closure_129_6.TIGGER_PAWTECT_ERROR);
|
|
const obj2 = closure_129_1(closure_129_2[8]);
|
|
} else if (arg0 === 1) {
|
|
c5 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c3 = 0;
|
|
closure_129_11 = false;
|
|
c5 = 3;
|
|
const obj = { value, done: true };
|
|
return obj;
|
|
} else {
|
|
closure_128_0 = value;
|
|
closure_129_12 = closure_128_0;
|
|
const _Date = Date;
|
|
closure_129_13 = Date.now();
|
|
}
|
|
c3 = 0;
|
|
closure_129_11 = false;
|
|
} catch (tmp46) {
|
|
closure_2 = tmp46;
|
|
if (tmp5 === c3) {
|
|
c5 = tmp3;
|
|
throw tmp46;
|
|
} else if (tmp2 === tmp48) {
|
|
c4 = tmp2;
|
|
} else {
|
|
c4 = tmp;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
const Endpoints = fn(1074).Endpoints;
|
|
const SafetyToastType = fn(8464).SafetyToastType;
|
|
const ManualReviewStatus = { IN_PROGRESS: "in_progress", DECIDED_TEEN: "decided_teen" };
|
|
const MINUTE = DurationsDefault.Millis.MINUTE;
|
|
let c11 = false;
|
|
let c12 = null;
|
|
let c13 = 0;
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/age_assurance/ManualReviewActionCreators.tsx");
|
|
|
|
export { ManualReviewStatus };
|
|
export function invalidateManualReviewCache() {
|
|
c12 = null;
|
|
}
|
|
export const handleManualReviewCta = function handleManualReviewCta() {
|
|
const self = this;
|
|
const apply = closure_14.apply;
|
|
if (typeof apply === "unknown") {
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
} else {
|
|
applyArgumentsResult = apply(self, arguments);
|
|
}
|
|
return applyArgumentsResult;
|
|
};
|