decord/beta/source/utils/BraintreeUtils.tsx

72 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 4507
// Function ID: 4508
// Name: BraintreeUtils
2026-10-02 13:37:24 +00:00
// Dependencies: [4508, 1086, 4509, 4512, 1987, 4512, 2]
// Exports: collectDeviceData, getBraintreeSDK
2026-10-02 13:37:24 +00:00
// Module 4507 (BraintreeUtils)
import Constants from "Constants" /* 1086 */;
import core_CodeSplittingUtils from "core/CodeSplittingUtils" /* 4509 */;
import BraintreeStore from "BraintreeStore" /* 4508 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let dataCollector;
function createPromise() {
return closure_1_0(paths[4])(paths[3], paths.paths);
}
2026-10-02 13:37:24 +00:00
const f87575 = (result) => result.default;
2026-10-01 14:13:23 +00:00
const PaymentSettings = Constants.PaymentSettings;
const result = size.fileFinishedImporting("utils/BraintreeUtils.tsx");
export const getBraintreeSDK = function getBraintreeSDK() {
2026-10-01 14:13:23 +00:00
const obj = core_CodeSplittingUtils;
2026-10-02 13:37:24 +00:00
const obj2 = { createPromise, webpackId: 4512 };
2026-10-01 14:13:23 +00:00
const importWithRetryResult = obj.importWithRetry(obj2);
2026-10-02 13:37:24 +00:00
return importWithRetryResult.then(f87575);
};
export const collectDeviceData = function collectDeviceData() {
2026-10-01 14:13:23 +00:00
let nextPromise1;
let client = BraintreeStore.getClient();
if (null == client) {
2026-10-02 13:37:24 +00:00
let obj2 = { createPromise, webpackId: 4512 };
2026-10-01 14:13:23 +00:00
const obj3 = core_CodeSplittingUtils;
let importWithRetryResult = obj3.importWithRetry(obj2);
2026-10-02 13:37:24 +00:00
let nextPromise = importWithRetryResult.then(f87575);
2026-10-01 14:13:23 +00:00
nextPromise1 = nextPromise.then((client) => {
client = client.client;
let obj = { authorization: constants.BRAINTREE.KEY };
2026-10-01 14:13:23 +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-02 13:37:24 +00:00
let nextPromise = importWithRetryResult.then(f87575);
2026-10-01 14:13:23 +00:00
return nextPromise.then((dataCollector) => {
dataCollector = dataCollector.dataCollector;
const obj = { client };
2026-10-01 14:13:23 +00:00
const obj2 = dataCollector.create(obj);
const nextPromise = obj2.then((deviceData) => deviceData.deviceData);
return nextPromise.catch(() => null);
});
2026-10-01 14:13:23 +00:00
});
return nextPromise.catch(() => null);
});
} else {
2026-10-01 14:13:23 +00:00
let obj = core_CodeSplittingUtils;
2026-10-02 13:37:24 +00:00
const obj4 = { createPromise, webpackId: 4512 };
2026-10-01 14:13:23 +00:00
const importWithRetryResult1 = obj.importWithRetry(obj4);
2026-10-02 13:37:24 +00:00
const nextPromise2 = importWithRetryResult1.then(f87575);
2026-10-01 14:13:23 +00:00
nextPromise1 = nextPromise2.then((dataCollector) => {
dataCollector = dataCollector.dataCollector;
const obj = { client };
2026-10-01 14:13:23 +00:00
const obj2 = dataCollector.create(obj);
const nextPromise = obj2.then((deviceData) => deviceData.deviceData);
return nextPromise.catch(() => null);
});
}
return nextPromise1;
};