Files
2026-07-28 01:06:53 +03:00

76 lines
4.0 KiB
TypeScript

/* Metro module 3818; source: utils/BraintreeUtils.tsx; dependencies: [3819, 661, 3820, 3823, 1962, 3823, 2] */
import BraintreeStore from '../stores/billing/BraintreeStore.tsx'; /* Metro dependency 3819 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun29529(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3945:6, offset: 0x00fc4633, size: 160 bytes, params: 8, frame: 19
const env0_0 = require;
const getBraintreeSDK2 = getBraintreeSDK;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('utils/BraintreeUtils.tsx');
exports.getBraintreeSDK = getBraintreeSDK2;
exports.collectDeviceData = collectDeviceData;
function getBraintreeSDK() { // fn#29530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3945:132, offset: 0x00fc46d3, size: 79 bytes, params: 1, frame: 14
var value;
value = Reflect.apply(require(dependencyMap[2]).importWithRetry, value, [{createPromise: createPromise,
webpackId: dependencyMap[5]}]);
return value.then(function(a0) {
return a0.default;
});
function createPromise() { // fn#29531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3945:205, owner: getBraintreeSDK.createPromise, offset: 0x00fc4722, size: 45 bytes, params: 1, frame: 13
const value = environment.__proto__;
return require(dependencyMap[4])(dependencyMap[3], dependencyMap.paths);
}
}
function getDeviceData(a0) { // fn#29533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3945:273, offset: 0x00fc4759, size: 39 bytes, params: 2, frame: 11
const env0_0 = a0;
return getBraintreeSDK().then(_fun29534);
function _fun29534({dataCollector}) { // fn#29534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3945:330, offset: 0x00fc4780, size: 68 bytes, params: 2, frame: 13
let value = dataCollector.create({client: env0_0});
value = value.then(function(a0) {
return a0.deviceData;
});
return value.catch(function() {
return null;
});
}
}
function collectDeviceData() { // fn#29537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3945:524, offset: 0x00fc47cf, size: 65 bytes, params: 1, frame: 12
var r0;
var value;
const client = BraintreeStore.getClient();
if (client == null) {
value = getBraintreeSDK();
value = value.then(_fun29538);
r0 = value;
} else {
r0 = getDeviceData(client);
}
return r0;
function _fun29538({client}) { // fn#29538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3945:612, offset: 0x00fc4810, size: 80 bytes, params: 2, frame: 13
var environment;
const create = client.create;
let value = environment.__proto__;
const BRAINTREE = PaymentSettings.BRAINTREE;
const KEY = BRAINTREE.KEY;
value = Reflect.apply(create, client, [{authorization: KEY}]);
value = value.then(function(a0) {
return getDeviceData(a0);
});
return value.catch(function() {
return null;
});
}
}
}
global.__d(_fun29529, 3818, [3819, 661, 3820, 3823, 1962, 3823,
2]) /* metro module 3818, dependencies: [3819, 661, 3820, 3823, 1962, 3823, 2] */;