decord/source/modules/age_assurance/AgeVerificationMethodsV2.tsx

85 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6600
// Function ID: 6601
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-24 06:08:38 +00:00
// Module 6600 (_fetchAgeVerificationMethodsV)
import closure_2 from "asyncGeneratorStep" /* 5 */;
import { Endpoints } from "ME" /* 676 */;
2026-07-24 07:16:23 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
function _fetchAgeVerificationMethodsV() {
const self = this;
const tmp = callback(function*() {
2026-08-24 06:08:38 +00:00
closure_1 = tmp4;
const HTTP = closure_1_0(closure_1_1[2]).HTTP;
obj1 = { url: null, rejectWithError: true };
2026-08-11 06:20:06 +00:00
obj1[0] = obj.AGE_VERIFICATION_METHODS_V2;
2026-08-04 21:03:28 +00:00
yield HTTP.get(obj1);
2026-08-11 06:20:06 +00:00
let body = arg1.body;
const methods = body.methods;
obj[0] = methods.map((method) => {
2026-08-24 06:08:38 +00:00
let obj = { method: method.method, vendor: method.vendor, title: method.title, description: method.description, providedBy: null, icon: null, externalWindow: 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-24 06:08:38 +00:00
let external_window = method.external_window;
if (external_window == null) {
external_window = null;
}
obj[6] = external_window;
2026-08-04 21:03:28 +00:00
return obj;
});
2026-08-11 06:20:06 +00:00
const footer_message = body.footer_message;
body = footer_message;
if (footer_message == null) {
body = null;
}
obj[1] = body;
return obj;
2026-07-24 07:16:23 +00:00
});
2026-08-24 06:08:38 +00:00
closure_4 = tmp;
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
const result = require("set").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
};