decord/source/modules/age_assurance/AgeVerificationMethodsV2.tsx

72 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 7754
// Function ID: 7755
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-08-06 08:05:19 +00:00
// Module 7754 (_fetchAgeVerificationMethodsV)
2026-07-31 08:44:05 +00:00
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*() {
2026-08-04 21:03:28 +00:00
let closure_0 = tmp2;
const HTTP = outer1_0(table[2]).HTTP;
const obj1 = { url: null, rejectWithError: true };
obj1[0] = outer1_3.AGE_VERIFICATION_METHODS_V2;
yield HTTP.get(obj1);
const methods = arg1.body.methods;
return methods.map((method) => {
2026-08-06 08:05:19 +00:00
let obj = { method: method.method, vendor: method.vendor, title: method.title, description: method.description, providedBy: null, icon: null };
2026-08-04 21:03:28 +00:00
let provided_by = method.provided_by;
if (provided_by == null) {
provided_by = null;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
obj[4] = provided_by;
2026-08-06 08:05:19 +00:00
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;
2026-08-04 21:03:28 +00:00
return obj;
});
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
};