// Module ID: 4434 // Function ID: 4435 // Name: BraintreeUtils // Dependencies: [4435, 1078, 4436, 4439, 1984, 4439, 2] // Exports: collectDeviceData, getBraintreeSDK // Module 4434 (BraintreeUtils) import core_CodeSplittingUtils from "core/CodeSplittingUtils" /* 4436 */; import BraintreeStore from "BraintreeStore" /* 4435 */; require = fn; const PaymentSettings = fn(1078).PaymentSettings; const size = fn(2); const result = size.fileFinishedImporting("utils/BraintreeUtils.tsx"); export const getBraintreeSDK = function getBraintreeSDK() { const obj2 = { createPromise() { return client(paths[4])(paths[3], paths.paths); }, webpackId: 4439 }; return core_CodeSplittingUtils.importWithRetry({ createPromise() { return client(paths[4])(paths[3], paths.paths); }, webpackId: 4439 }).then((result) => result.default); }; export const collectDeviceData = function collectDeviceData() { let client = BraintreeStore.getClient(); if (null == client) { let obj2 = { createPromise() { return client(paths[4])(paths[3], paths.paths); }, webpackId: 4439 }; let importWithRetryResult = core_CodeSplittingUtils.importWithRetry(obj2); let nextPromise1 = core_CodeSplittingUtils.importWithRetry(obj2).then((result) => result.default).then((client) => { client = client.client; let obj = { authorization: constants.BRAINTREE.KEY }; let obj2 = client.create({ authorization: constants.BRAINTREE.KEY }); return client.create({ authorization: constants.BRAINTREE.KEY }).then((result) => { client = result; let obj = client(4436); let obj2 = { createPromise() { return client(paths[4])(paths[3], paths.paths); }, webpackId: 4439 }; const importWithRetryResult = client(4436).importWithRetry({ createPromise() { return client(paths[4])(paths[3], paths.paths); }, webpackId: 4439 }); return client(4436).importWithRetry({ createPromise() { return client(paths[4])(paths[3], paths.paths); }, webpackId: 4439 }).then((result) => result.default).then((dataCollector) => { dataCollector = dataCollector.dataCollector; const obj = { client }; const obj2 = dataCollector.create({ client }); return dataCollector.create({ client }).then((deviceData) => deviceData.deviceData).catch(() => null); }); }).catch(() => null); }); const nextPromise = core_CodeSplittingUtils.importWithRetry(obj2).then((result) => result.default); } else { const obj4 = { createPromise() { return client(paths[4])(paths[3], paths.paths); }, webpackId: 4439 }; const importWithRetryResult1 = core_CodeSplittingUtils.importWithRetry(obj4); nextPromise1 = core_CodeSplittingUtils.importWithRetry(obj4).then((result) => result.default).then((dataCollector) => { dataCollector = dataCollector.dataCollector; const obj = { client }; const obj2 = dataCollector.create({ client }); return dataCollector.create({ client }).then((deviceData) => deviceData.deviceData).catch(() => null); }); const nextPromise2 = core_CodeSplittingUtils.importWithRetry(obj4).then((result) => result.default); } return nextPromise1; };