// Module ID: 7978 // Function ID: 7979 // Name: _fetchAgeVerificationMethodsV // Dependencies: [5, 676, 530, 2] // Exports: fetchAgeVerificationMethodsV2 // Module 7978 (_fetchAgeVerificationMethodsV) import closure_2 from "asyncGeneratorStep" /* 5 */; import { Endpoints } from "ME" /* 676 */; const require = arg1; function _fetchAgeVerificationMethodsV() { const self = this; const tmp = callback(function*() { closure_1 = tmp4; const HTTP = closure_1_0(closure_1_1[2]).HTTP; 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, externalWindow: 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; let external_window = method.external_window; if (external_window == null) { external_window = null; } obj[6] = external_window; return obj; }); const footer_message = body.footer_message; body = footer_message; if (footer_message == null) { body = null; } obj[1] = body; return obj; }); closure_4 = tmp; const apply = tmp.apply; if (typeof apply === "unknown") { let applyArgumentsResult = HermesBuiltin.applyArguments(self); } else { applyArgumentsResult = apply(self, arguments); } return applyArgumentsResult; } const result = require("set").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; };