decord/source/modules/age_assurance/AgeVerificationMethodsV2.tsx

101 lines
3 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 6785
// Function ID: 6786
2026-07-24 07:16:23 +00:00
// Name: _fetchAgeVerificationMethodsV
2026-07-31 08:44:05 +00:00
// Dependencies: [5, 676, 530, 2]
2026-07-24 07:16:23 +00:00
// Exports: fetchAgeVerificationMethodsV2
2026-07-31 08:44:05 +00:00
// Module 6785 (_fetchAgeVerificationMethodsV)
import asyncGeneratorStep from "asyncGeneratorStep";
2026-07-24 07:16:23 +00:00
import { Endpoints } from "ME";
const require = arg1;
2026-07-29 08:29:29 +00:00
function _fetchAgeVerificationMethodsV() {
const self = this;
const tmp = callback(function*() {
if (c2 === 2) {
c2 = 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 {
c2 = 2;
if (0 === table) {
if (arg0 === 1) {
c2 = 3;
throw arg1;
} else if (arg0 === 2) {
c2 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
let closure_0 = tmp2;
2026-07-31 08:44:05 +00:00
const HTTP = outer1_0(table[2]).HTTP;
2026-07-29 08:29:29 +00:00
const obj1 = { url: null, rejectWithError: true };
obj1[0] = outer1_3.AGE_VERIFICATION_METHODS_V2;
table = 1;
c2 = 1;
const obj2 = { value: null, done: false };
obj2[0] = HTTP.get(obj1);
return obj2;
}
} else if (arg0 === 1) {
c2 = 3;
throw arg1;
} else if (arg0 === 2) {
c2 = 3;
const obj3 = { value: null, done: true };
obj3[0] = arg1;
return obj3;
} else {
const methods = arg1.body.methods;
c2 = 3;
obj = { value: null, done: true };
obj[0] = methods.map((method) => {
const obj = { method: method.method, vendor: method.vendor, title: method.title, description: method.description, providedBy: null };
let provided_by = method.provided_by;
if (provided_by == null) {
provided_by = null;
}
obj[4] = provided_by;
return obj;
});
return obj;
}
} catch (tmp9) {
c2 = tmp;
throw tmp9;
}
2026-07-24 07:16:23 +00:00
}
});
2026-07-29 08:29:29 +00:00
const _fetchAgeVerificationMethodsV = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-24 07:16:23 +00:00
}
2026-07-31 08:44:05 +00:00
const result = require("sendRequest").fileFinishedImporting("modules/age_assurance/AgeVerificationMethodsV2.tsx");
2026-07-24 07:16:23 +00:00
export const fetchAgeVerificationMethodsV2 = function fetchAgeVerificationMethodsV2() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _fetchAgeVerificationMethodsV.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-24 07:16:23 +00:00
};