decord/source/utils/BraintreeUtils.tsx

76 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4058
// Function ID: 4059
2026-07-20 16:05:17 +00:00
// Name: getBraintreeSDK
2026-08-24 06:08:38 +00:00
// Dependencies: [4059, 676, 4060, 4063, 2008, 4063, 2]
2026-07-29 08:29:29 +00:00
// Exports: collectDeviceData, getBraintreeSDK
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 4058 (getBraintreeSDK)
import _mod4060 from "module_4060" /* 4060 */;
import closure_2 from "getClient" /* 4059 */;
import { PaymentSettings } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").fileFinishedImporting("utils/BraintreeUtils.tsx");
2026-07-29 08:29:29 +00:00
export const getBraintreeSDK = function getBraintreeSDK() {
2026-08-24 06:08:38 +00:00
let obj = _mod4060;
2026-07-20 16:05:17 +00:00
obj = {
createPromise() {
2026-07-29 08:29:29 +00:00
return callback(paths[4])(paths[3], paths.paths);
2026-07-20 16:05:17 +00:00
},
2026-08-24 06:08:38 +00:00
webpackId: 4063
2026-07-20 16:05:17 +00:00
};
return obj.importWithRetry(obj).then((arg0) => arg0.default);
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const collectDeviceData = function collectDeviceData() {
2026-07-23 10:11:24 +00:00
client = client.getClient();
2026-07-20 16:05:17 +00:00
if (null == client) {
2026-07-29 08:29:29 +00:00
let obj = { createPromise: null, webpackId: null };
obj[0] = function createPromise() {
return callback(paths[4])(paths[3], paths.paths);
};
2026-08-24 06:08:38 +00:00
obj[1] = 4063;
const obj3 = client(4060);
let importWithRetryResult = client(4060).importWithRetry(obj);
let nextPromise1 = client(4060).importWithRetry(obj).then((arg0) => arg0.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 };
2026-07-20 16:05:17 +00:00
obj = client.create(obj);
2026-07-29 08:29:29 +00:00
return obj.then((arg0) => {
const callback = arg0;
2026-08-24 06:08:38 +00:00
let obj = callback(4060);
2026-07-29 08:29:29 +00:00
obj = {
createPromise() {
return callback(paths[4])(paths[3], paths.paths);
},
2026-08-24 06:08:38 +00:00
webpackId: 4063
2026-07-29 08:29:29 +00:00
};
const importWithRetryResult = obj.importWithRetry(obj);
return obj.importWithRetry(obj).then((arg0) => arg0.default).then((dataCollector) => {
dataCollector = dataCollector.dataCollector;
let obj = { client: closure_0 };
obj = dataCollector.create(obj);
return obj.then((deviceData) => deviceData.deviceData).catch(() => null);
});
}).catch(() => null);
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const nextPromise = client(4060).importWithRetry(obj).then((arg0) => arg0.default);
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
obj = client(4060);
2026-07-29 08:29:29 +00:00
obj = { createPromise: null, webpackId: null };
obj[0] = function createPromise() {
return callback(paths[4])(paths[3], paths.paths);
};
2026-08-24 06:08:38 +00:00
obj[1] = 4063;
2026-07-29 08:29:29 +00:00
const importWithRetryResult1 = obj.importWithRetry(obj);
nextPromise1 = obj.importWithRetry(obj).then((arg0) => arg0.default).then((dataCollector) => {
dataCollector = dataCollector.dataCollector;
let obj = { client: closure_0 };
obj = dataCollector.create(obj);
return obj.then((deviceData) => deviceData.deviceData).catch(() => null);
});
const nextPromise2 = obj.importWithRetry(obj).then((arg0) => arg0.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
};