Files
discord-decomp/sources/by-id/module-00834.js
T
2026-07-28 01:06:53 +03:00

54 lines
2.4 KiB
JavaScript

/* Metro module 834; source: unknown; dependencies: [830, 835] */
import * as GLOBAL_OBJModule from './module-00830-GLOBAL_OBJ.js'; /* Metro dependency 830 */
import * as SDK_VERSIONModule from './module-00835-SDK_VERSION.js'; /* Metro dependency 835 */
function _fun9051(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:961:6, offset: 0x00d5bf57, size: 104 bytes, params: 8, frame: 18
const env0_0 = require;
const closure = function(a0) {
var r2;
var r0;
var property = a0.__SENTRY__;
r2 = property || ({});
a0.__SENTRY__ = r2;
r2.version = r2.version || require(dependencyMap[1]).SDK_VERSION;
property = require(dependencyMap[1]).SDK_VERSION;
r0 = r2[require(dependencyMap[1]).SDK_VERSION] || ({});
r2[property] = r0;
return r0;
};
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.getGlobalSingleton = getGlobalSingleton;
exports.getMainCarrier = function() {
getSentryCarrier(require(dependencyMap[0]).GLOBAL_OBJ);
return require(dependencyMap[0]).GLOBAL_OBJ;
};
exports.getSentryCarrier = closure;
function getGlobalSingleton(a0, a1) { // fn#9053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:961:275, offset: 0x00d5c03e, size: 156 bytes, params: 3, frame: 15
var value;
const GLOBAL_OBJ = (GLOBAL_OBJModule).GLOBAL_OBJ;
let r0 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : GLOBAL_OBJ;
const r1 = r0.__SENTRY__ || ({});
r0.__SENTRY__ = r1;
const SDK_VERSION = (SDK_VERSIONModule).SDK_VERSION;
const SDK_VERSION2 = (SDK_VERSIONModule).SDK_VERSION;
let property = r1[SDK_VERSION2];
const r2 = property || ({});
r1[SDK_VERSION] = r2;
property = r2[a0];
if (property) {
r0 = property;
} else {
value = a1();
r2[a0] = value;
r0 = value;
}
return r0;
}
}
global.__d(_fun9051, 834, [830, 835]) /* metro module 834, dependencies: [830, 835] */;