decord/alpha/source/utils/BraintreeUtils.tsx

72 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 4742
// Function ID: 4743
// Name: BraintreeUtils
2026-10-08 09:57:35 +00:00
// Dependencies: [4743, 1085, 4744, 4747, 1999, 4747, 2]
2026-07-29 08:29:29 +00:00
// Exports: collectDeviceData, getBraintreeSDK
2026-07-20 16:05:17 +00:00
2026-10-08 09:57:35 +00:00
// Module 4742 (BraintreeUtils)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-08 09:57:35 +00:00
import core_CodeSplittingUtils from "core/CodeSplittingUtils" /* 4744 */;
import BraintreeStore from "BraintreeStore" /* 4743 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let dataCollector;
function createPromise() {
return closure_1_0(paths[4])(paths[3], paths.paths);
}
2026-10-08 09:57:35 +00:00
const f89893 = (result) => result.default;
2026-10-03 08:58:59 +00:00
const PaymentSettings = Constants.PaymentSettings;
const result = size.fileFinishedImporting("utils/BraintreeUtils.tsx");
2026-07-29 08:29:29 +00:00
export const getBraintreeSDK = function getBraintreeSDK() {
2026-10-03 08:58:59 +00:00
const obj = core_CodeSplittingUtils;
2026-10-08 09:57:35 +00:00
const obj2 = { createPromise, webpackId: 4747 };
2026-10-03 08:58:59 +00:00
const importWithRetryResult = obj.importWithRetry(obj2);
2026-10-08 09:57:35 +00:00
return importWithRetryResult.then(f89893);
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const collectDeviceData = function collectDeviceData() {
2026-10-03 08:58:59 +00:00
let nextPromise1;
let client = BraintreeStore.getClient();
2026-07-20 16:05:17 +00:00
if (null == client) {
2026-10-08 09:57:35 +00:00
let obj2 = { createPromise, webpackId: 4747 };
2026-10-03 08:58:59 +00:00
const obj3 = core_CodeSplittingUtils;
let importWithRetryResult = obj3.importWithRetry(obj2);
2026-10-08 09:57:35 +00:00
let nextPromise = importWithRetryResult.then(f89893);
2026-10-03 08:58:59 +00:00
nextPromise1 = nextPromise.then((client) => {
2026-07-20 16:05:17 +00:00
client = client.client;
2026-07-29 08:29:29 +00:00
let obj = { authorization: constants.BRAINTREE.KEY };
2026-10-03 08:58:59 +00:00
let obj2 = client.create(obj);
let nextPromise = obj2.then((result) => {
let paths;
let closure_0 = result;
let obj = closure_1_0(closure_1_1[2]);
let obj2 = { createPromise, webpackId: closure_1_1[5] };
const importWithRetryResult = obj.importWithRetry(obj2);
2026-10-08 09:57:35 +00:00
let nextPromise = importWithRetryResult.then(f89893);
2026-10-03 08:58:59 +00:00
return nextPromise.then((dataCollector) => {
2026-07-29 08:29:29 +00:00
dataCollector = dataCollector.dataCollector;
const obj = { client };
2026-10-03 08:58:59 +00:00
const obj2 = dataCollector.create(obj);
const nextPromise = obj2.then((deviceData) => deviceData.deviceData);
return nextPromise.catch(() => null);
2026-07-29 08:29:29 +00:00
});
2026-10-03 08:58:59 +00:00
});
return nextPromise.catch(() => null);
2026-07-20 16:05:17 +00:00
});
} else {
2026-10-03 08:58:59 +00:00
let obj = core_CodeSplittingUtils;
2026-10-08 09:57:35 +00:00
const obj4 = { createPromise, webpackId: 4747 };
2026-10-03 08:58:59 +00:00
const importWithRetryResult1 = obj.importWithRetry(obj4);
2026-10-08 09:57:35 +00:00
const nextPromise2 = importWithRetryResult1.then(f89893);
2026-10-03 08:58:59 +00:00
nextPromise1 = nextPromise2.then((dataCollector) => {
2026-07-29 08:29:29 +00:00
dataCollector = dataCollector.dataCollector;
const obj = { client };
2026-10-03 08:58:59 +00:00
const obj2 = dataCollector.create(obj);
const nextPromise = obj2.then((deviceData) => deviceData.deviceData);
return nextPromise.catch(() => null);
2026-07-29 08:29:29 +00:00
});
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return nextPromise1;
2026-07-20 16:05:17 +00:00
};