decord/alpha/source/utils/BraintreeUtils.tsx

91 lines
3.3 KiB
TypeScript
Raw Normal View History

// Module ID: 4533
// Function ID: 4534
// Name: BraintreeUtils
// Dependencies: [4534, 1074, 4535, 4538, 1981, 4538, 2]
2026-07-29 08:29:29 +00:00
// Exports: collectDeviceData, getBraintreeSDK
2026-07-20 16:05:17 +00:00
// Module 4533 (BraintreeUtils)
import core_CodeSplittingUtils from "core/CodeSplittingUtils" /* 4535 */;
import BraintreeStore from "BraintreeStore" /* 4534 */;
2026-07-23 10:11:24 +00:00
require = fn;
const PaymentSettings = fn(1074).PaymentSettings;
const size = fn(2);
const result = size.fileFinishedImporting("utils/BraintreeUtils.tsx");
2026-07-29 08:29:29 +00:00
export const getBraintreeSDK = function getBraintreeSDK() {
const obj2 = {
2026-07-20 16:05:17 +00:00
createPromise() {
return client(paths[4])(paths[3], paths.paths);
2026-07-20 16:05:17 +00:00
},
webpackId: 4538
2026-07-20 16:05:17 +00:00
};
return core_CodeSplittingUtils.importWithRetry({
createPromise() {
return client(paths[4])(paths[3], paths.paths);
},
webpackId: 4538
}).then((result) => result.default);
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const collectDeviceData = function collectDeviceData() {
let client = BraintreeStore.getClient();
2026-07-20 16:05:17 +00:00
if (null == client) {
let obj2 = {
createPromise() {
return client(paths[4])(paths[3], paths.paths);
},
webpackId: 4538
2026-07-29 08:29:29 +00:00
};
let importWithRetryResult = core_CodeSplittingUtils.importWithRetry(obj2);
let nextPromise1 = core_CodeSplittingUtils.importWithRetry(obj2).then((result) => result.default).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 };
let obj2 = client.create({ authorization: constants.BRAINTREE.KEY });
return client.create({ authorization: constants.BRAINTREE.KEY }).then((result) => {
client = result;
let obj = client(4535);
let obj2 = {
2026-07-29 08:29:29 +00:00
createPromise() {
return client(paths[4])(paths[3], paths.paths);
2026-07-29 08:29:29 +00:00
},
webpackId: 4538
2026-07-29 08:29:29 +00:00
};
const importWithRetryResult = client(4535).importWithRetry({
createPromise() {
return client(paths[4])(paths[3], paths.paths);
},
webpackId: 4538
});
return client(4535).importWithRetry({
createPromise() {
return client(paths[4])(paths[3], paths.paths);
},
webpackId: 4538
}).then((result) => result.default).then((dataCollector) => {
2026-07-29 08:29:29 +00:00
dataCollector = dataCollector.dataCollector;
const obj = { client };
const obj2 = dataCollector.create({ client });
return dataCollector.create({ client }).then((deviceData) => deviceData.deviceData).catch(() => null);
2026-07-29 08:29:29 +00:00
});
}).catch(() => null);
2026-07-20 16:05:17 +00:00
});
const nextPromise = core_CodeSplittingUtils.importWithRetry(obj2).then((result) => result.default);
2026-07-20 16:05:17 +00:00
} else {
const obj4 = {
createPromise() {
return client(paths[4])(paths[3], paths.paths);
},
webpackId: 4538
2026-07-29 08:29:29 +00:00
};
const importWithRetryResult1 = core_CodeSplittingUtils.importWithRetry(obj4);
nextPromise1 = core_CodeSplittingUtils.importWithRetry(obj4).then((result) => result.default).then((dataCollector) => {
2026-07-29 08:29:29 +00:00
dataCollector = dataCollector.dataCollector;
const obj = { client };
const obj2 = dataCollector.create({ client });
return dataCollector.create({ client }).then((deviceData) => deviceData.deviceData).catch(() => null);
2026-07-29 08:29:29 +00:00
});
const nextPromise2 = core_CodeSplittingUtils.importWithRetry(obj4).then((result) => result.default);
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
};