Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
229 lines
7.9 KiB
TypeScript
229 lines
7.9 KiB
TypeScript
// Module ID: 8712
|
|
// Function ID: 8713
|
|
// Name: ManualReviewFallbackGate
|
|
// Dependencies: [5, 8713, 8695, 8714, 577, 8715, 2]
|
|
// Exports: shouldShowManualReviewFallback
|
|
|
|
// Module 8712 (ManualReviewFallbackGate)
|
|
import SafetyHubUtils from "SafetyHubUtils" /* 8695 */;
|
|
import AgeVerificationMethodsV2 from "AgeVerificationMethodsV2" /* 8714 */;
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
|
|
require = fn;
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/age_assurance/ManualReviewFallbackGate.tsx");
|
|
|
|
export const shouldShowManualReviewFallback = function shouldShowManualReviewFallback(AUTOMATED_UNDERAGE_APPEALS) {
|
|
if (obj.isManualAgeAssuranceFallbackEnabled(AUTOMATED_UNDERAGE_APPEALS)) {
|
|
if (null == cleanupPromise) {
|
|
cleanupPromise = asyncGeneratorStep(async (arg0, value) => {
|
|
if (c4 === 2) {
|
|
c4 = 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 {
|
|
c4 = 2;
|
|
if (0 === c3) {
|
|
if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c4 = 3;
|
|
const obj4 = { value, done: true };
|
|
return obj4;
|
|
} else {
|
|
closure_1 = tmp3;
|
|
closure_0 = tmp7;
|
|
closure_128_0 = undefined;
|
|
c2 = 1;
|
|
const result = SafetyHubUtils.isCurrentUserSuspended();
|
|
const obj13 = AgeVerificationMethodsV2;
|
|
if (result) {
|
|
c3 = 3;
|
|
c4 = 1;
|
|
const obj6 = { value: obj13.fetchAgeVerificationMethodsV2SuspendedUser(), done: false };
|
|
return obj6;
|
|
} else {
|
|
c3 = 2;
|
|
c4 = 1;
|
|
const obj7 = { value: obj13.fetchAgeVerificationMethodsV2(), done: false };
|
|
return obj7;
|
|
}
|
|
}
|
|
} else if (1 === tmp7) {
|
|
c2 = 0;
|
|
c4 = 3;
|
|
return { value: false, done: true };
|
|
} else {
|
|
if (2 === tmp7) {
|
|
if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c2 = 0;
|
|
c4 = 3;
|
|
const obj8 = { value, done: true };
|
|
return obj8;
|
|
}
|
|
} else {
|
|
if (3 === tmp7) {
|
|
if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c2 = 0;
|
|
c4 = 3;
|
|
const obj9 = { value, done: true };
|
|
return obj9;
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw value;
|
|
} else if (arg0 !== 2) {
|
|
c2 = 0;
|
|
c4 = 3;
|
|
}
|
|
c2 = 0;
|
|
c4 = 3;
|
|
const obj = { value, done: true };
|
|
return obj;
|
|
}
|
|
closure_128_0 = value;
|
|
const obj10 = { type: "AGE_VERIFICATION_METHODS_V2_LOAD_SUCCESS", methods: closure_128_0.methods, footerMessage: closure_128_0.footerMessage, outageBannerMessage: closure_128_0.outageBannerMessage };
|
|
closure_129_1(closure_129_2[4]).dispatch(obj10);
|
|
if (null == closure_128_0.outageBannerMessage) {
|
|
c3 = 4;
|
|
c4 = 1;
|
|
const obj11 = { value: closure_129_0(closure_129_2[5]).getAvailableMethodsV2(closure_128_0.methods), done: false };
|
|
return obj11;
|
|
}
|
|
const obj3 = closure_129_1(closure_129_2[4]);
|
|
}
|
|
} catch (tmp23) {
|
|
if (tmp4 === c2) {
|
|
c4 = tmp2;
|
|
throw tmp23;
|
|
} else {
|
|
c3 = tmp;
|
|
}
|
|
}
|
|
}
|
|
})().finally(() => {
|
|
c4 = null;
|
|
});
|
|
const promise = (async (arg0, value) => {
|
|
if (c4 === 2) {
|
|
c4 = 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 {
|
|
c4 = 2;
|
|
if (0 === c3) {
|
|
if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c4 = 3;
|
|
const obj4 = { value, done: true };
|
|
return obj4;
|
|
} else {
|
|
closure_1 = tmp3;
|
|
closure_0 = tmp7;
|
|
closure_128_0 = undefined;
|
|
c2 = 1;
|
|
const result = SafetyHubUtils.isCurrentUserSuspended();
|
|
const obj13 = AgeVerificationMethodsV2;
|
|
if (result) {
|
|
c3 = 3;
|
|
c4 = 1;
|
|
const obj6 = { value: obj13.fetchAgeVerificationMethodsV2SuspendedUser(), done: false };
|
|
return obj6;
|
|
} else {
|
|
c3 = 2;
|
|
c4 = 1;
|
|
const obj7 = { value: obj13.fetchAgeVerificationMethodsV2(), done: false };
|
|
return obj7;
|
|
}
|
|
}
|
|
} else if (1 === tmp7) {
|
|
c2 = 0;
|
|
c4 = 3;
|
|
return { value: false, done: true };
|
|
} else {
|
|
if (2 === tmp7) {
|
|
if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c2 = 0;
|
|
c4 = 3;
|
|
const obj8 = { value, done: true };
|
|
return obj8;
|
|
}
|
|
} else {
|
|
if (3 === tmp7) {
|
|
if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c2 = 0;
|
|
c4 = 3;
|
|
const obj9 = { value, done: true };
|
|
return obj9;
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw value;
|
|
} else if (arg0 !== 2) {
|
|
c2 = 0;
|
|
c4 = 3;
|
|
}
|
|
c2 = 0;
|
|
c4 = 3;
|
|
const obj = { value, done: true };
|
|
return obj;
|
|
}
|
|
closure_128_0 = value;
|
|
const obj10 = { type: "AGE_VERIFICATION_METHODS_V2_LOAD_SUCCESS", methods: closure_128_0.methods, footerMessage: closure_128_0.footerMessage, outageBannerMessage: closure_128_0.outageBannerMessage };
|
|
closure_129_1(closure_129_2[4]).dispatch(obj10);
|
|
if (null == closure_128_0.outageBannerMessage) {
|
|
c3 = 4;
|
|
c4 = 1;
|
|
const obj11 = { value: closure_129_0(closure_129_2[5]).getAvailableMethodsV2(closure_128_0.methods), done: false };
|
|
return obj11;
|
|
}
|
|
const obj3 = closure_129_1(closure_129_2[4]);
|
|
}
|
|
} catch (tmp23) {
|
|
if (tmp4 === c2) {
|
|
c4 = tmp2;
|
|
throw tmp23;
|
|
} else {
|
|
c3 = tmp;
|
|
}
|
|
}
|
|
}
|
|
})();
|
|
}
|
|
} else {
|
|
return Promise.resolve(false);
|
|
}
|
|
};
|