// Metro module 6781 (f6782). import { Endpoints } from "../../Constants"; import { HTTP } from "../../_bundle/sendRequest"; import Module6782 from "../../_bundle/Module6782"; export async function requestGoogleWalletVerification() { return (await HTTP.post({ url: Endpoints.GOOGLE_WALLET_REQUEST, body: {}, rejectWithError: true, failImmediatelyWhenRateLimited: true })).body; } export async function verifyGoogleWalletCredential(credential_json) { await HTTP.post({ url: Endpoints.GOOGLE_WALLET_VERIFY, body: { credential_json }, rejectWithError: true, failImmediatelyWhenRateLimited: true }); } export async function checkGoogleWalletAvailable() { let r16, isAvailable; let c26004_2 = 0; L12: { try { c26004_2 = 1; r16 = Module6782 != null; if (r16) { isAvailable = await Module6782.isAvailable(); c26004_2 = 0; break L12; } c26004_2 = 0; } catch ($e) { let r23 = $e; if (c26004_2 !== 0) { while (true) { try { c26004_2 = 0; } catch ($e) { r23 = $e; if (c26004_2 === 0) { break; } continue; } return false; } } throw r23; } return r16; } return isAvailable; } export async function getGoogleWalletCredential(c26005_0) { if (Module6782 == null) { throw new Error("Digital credential module is not available"); } return await Module6782.getCredential(c26005_0); }