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

82 lines
3.9 KiB
JavaScript

/* Metro module 870; source: unknown; dependencies: [77, 828, 832, 833, 848] */
import * as Module00077Module from './module-00077.js'; /* Metro dependency 77 */
import * as SEMANTIC_Module from './module-00848-SEMANTIC_.js'; /* Metro dependency 848 */
function _fun9353(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:997:6, offset: 0x00d64651, size: 104 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.setMeasurement = setMeasurement;
exports.timedEventsToMeasurements = function(a0) {
if (a0) {
if (a0.length !== 0) {
a0.forEach(_fun9356);
return {};
}
}
};
function setMeasurement(a0, a1, a2) { // fn#9354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:997:122, offset: 0x00d646b9, size: 301 bytes, params: 4, frame: 24
var r5;
var r3;
var value;
var addEvent;
var binding;
if (arguments.length > 3) {
if (arguments[3] !== undefined) {
r5 = arguments[3];
} else {
value = require(828) /* metro dependency 828 */;
value = value.getActiveSpan();
r5 = value;
}
} else {
value = require(828) /* metro dependency 828 */;
value = value.getActiveSpan();
r5 = value;
}
if (r5) {
value = require(828) /* metro dependency 828 */;
value = value.getRootSpan(r5);
r3 = value;
} else {
r3 = r5;
}
if (r3) {
if ((require(832) /* metro dependency 832 */).DEBUG_BUILD) {
(require(833) /* metro dependency 833 */).debug.log('[Measurement] Setting measurement on root span: ' + a0 + ' = ' + a1 + ' ' + a2);
}
addEvent = r3.addEvent;
binding = Module00077Module;
Reflect.apply(addEvent, r3, [a0, binding(binding({},
(require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, a1),
(require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, a2)]);
}
}
function timedEventsToMeasurements(a0) { // fn#9355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:997:537, offset: 0x00d647e6, size: 46 bytes, params: 2, frame: 12
if (a0) {
if (a0.length !== 0) {
a0.forEach(_fun9356);
return {};
}
}
function _fun9356(a0) { // fn#9356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:997:622, offset: 0x00d64814, size: 125 bytes, params: 2, frame: 15
const r3 = a0.attributes || ({});
const value = environment.__proto__;
const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT = (SEMANTIC_Module).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT;
const property = r3[SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT];
const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE = (SEMANTIC_Module).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE;
const property2 = r3[SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];
if (typeof property === 'string' && typeof property2 === 'number') {
env0_0[a0.name] = {value: property2, unit: property};
}
}
}
}
global.__d(_fun9353, 870, [77, 828, 832, 833, 848]) /* metro module 870, dependencies: [77, 828, 832, 833, 848] */;