decord/alpha/source/utils/BraintreeUtils.tsx

72 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-10-03 08:58:59 +00:00
// Module ID: 4544
// Function ID: 4545
// Name: BraintreeUtils
2026-10-03 08:58:59 +00:00
// Dependencies: [4545, 1085, 4546, 4549, 1987, 4549, 2]
2026-07-29 08:29:29 +00:00
// Exports: collectDeviceData, getBraintreeSDK
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
// Module 4544 (BraintreeUtils)
import Constants from "Constants" /* 1085 */;
import core_CodeSplittingUtils from "core/CodeSplittingUtils" /* 4546 */;
import BraintreeStore from "BraintreeStore" /* 4545 */;
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-05 08:00:40 +00:00
const f88669 = (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;
const obj2 = { createPromise, webpackId: 4549 };
const importWithRetryResult = obj.importWithRetry(obj2);
2026-10-05 08:00:40 +00:00
return importWithRetryResult.then(f88669);
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-03 08:58:59 +00:00
let obj2 = { createPromise, webpackId: 4549 };
const obj3 = core_CodeSplittingUtils;
let importWithRetryResult = obj3.importWithRetry(obj2);
2026-10-05 08:00:40 +00:00
let nextPromise = importWithRetryResult.then(f88669);
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-05 08:00:40 +00:00
let nextPromise = importWithRetryResult.then(f88669);
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;
const obj4 = { createPromise, webpackId: 4549 };
const importWithRetryResult1 = obj.importWithRetry(obj4);
2026-10-05 08:00:40 +00:00
const nextPromise2 = importWithRetryResult1.then(f88669);
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
};