decord/source/modules/age_assurance/AgeVerificationMethodsV2.tsx
2026-08-12 06:57:52 +00:00

79 lines
2.4 KiB
TypeScript

// Module ID: 7872
// Function ID: 7873
// Name: _fetchAgeVerificationMethodsV
// Dependencies: [5, 676, 530, 2]
// Exports: fetchAgeVerificationMethodsV2
// Module 7872 (_fetchAgeVerificationMethodsV)
import asyncGeneratorStep from "asyncGeneratorStep";
import { Endpoints } from "ME";
const require = arg1;
function _fetchAgeVerificationMethodsV() {
const self = this;
const tmp = callback(function*() {
let closure_1 = tmp4;
const HTTP = outer1_0(outer1_1[2]).HTTP;
const obj1 = { url: null, rejectWithError: true };
obj1[0] = obj.AGE_VERIFICATION_METHODS_V2;
yield HTTP.get(obj1);
let body = arg1.body;
const methods = body.methods;
obj[0] = methods.map((method) => {
let obj = { method: method.method, vendor: method.vendor, title: method.title, description: method.description, providedBy: null, icon: null };
let provided_by = method.provided_by;
if (provided_by == null) {
provided_by = null;
}
obj[4] = provided_by;
let icon = method.icon;
if (icon == null) {
icon = null;
}
let tmp3 = null;
if (null != icon) {
obj = { paths: null };
const paths = icon.paths;
obj[0] = paths.map((d) => {
const obj = { d: d.d, fillRule: null };
let str;
if ("evenodd" === d.fill_rule) {
str = "evenodd";
}
obj[1] = str;
return obj;
});
tmp3 = obj;
}
obj[5] = tmp3;
return obj;
});
const footer_message = body.footer_message;
body = footer_message;
if (footer_message == null) {
body = null;
}
obj[1] = body;
return obj;
});
const _fetchAgeVerificationMethodsV = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
const result = require("sendRequest").fileFinishedImporting("modules/age_assurance/AgeVerificationMethodsV2.tsx");
export const fetchAgeVerificationMethodsV2 = function fetchAgeVerificationMethodsV2() {
const self = this;
const apply = _fetchAgeVerificationMethodsV.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};