// Metro module 3851 (f3852). import BraintreeStore from "../stores/billing/BraintreeStore"; import { PaymentSettings } from "../Constants"; import { importWithRetry } from "../modules/core/CodeSplittingUtils"; function $mk72881() { return (a0) => a0.default; } function $mk72882($env) { return (a0) => a0.dataCollector.create({ client: $env[0] }).then((result) => result.deviceData).catch(() => null); } let $mk72880 = function() { return () => import("../_bundle/Module3856"); }; export function getBraintreeSDK() { return importWithRetry({ createPromise: $mk72880(), webpackId: dependencyMap[5] }).then($mk72881()); } export function collectDeviceData() { let r21; const client = BraintreeStore.getClient(); if (client == null) { r21 = importWithRetry({ createPromise: $mk72880(), webpackId: dependencyMap[5] }).then($mk72881()).then((result) => result.client.create({ authorization: PaymentSettings.BRAINTREE.KEY }).then((result) => { let env29052; const r1 = env29052 = {}; env29052[0] = result; return importWithRetry({ createPromise: $mk72880(), webpackId: dependencyMap[5] }).then($mk72881()).then($mk72882(r1)); }).catch(() => null)); } else { let env13685; const r9 = env13685 = {}; env13685[0] = client; r21 = importWithRetry({ createPromise: $mk72880(), webpackId: dependencyMap[5] }).then($mk72881()).then($mk72882(r9)); } return r21; }