81 lines
3.9 KiB
JavaScript
81 lines
3.9 KiB
JavaScript
/* Metro module 7411; source: unknown; dependencies: [77, 7374, 7397, 7369, 7384] */
|
|
import * as Module00077Module from './module-00077.js'; /* Metro dependency 77 */
|
|
import * as SEMANTIC_ATTRIBUTE_Module from './module-07384-SEMANTIC_ATTRIBUTE_.js'; /* Metro dependency 7384 */
|
|
|
|
function _fun59729(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7589:6, offset: 0x016f0fb3, size: 92 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.setMeasurement = setMeasurement_59730;
|
|
exports.timedEventsToMeasurements = function(a0) {
|
|
if (a0) {
|
|
if (a0.length !== 0) {
|
|
a0.forEach(_fun59732);
|
|
return {};
|
|
}
|
|
}
|
|
};
|
|
function setMeasurement_59730(a0, a1, a2) { // fn#59730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7589:110, offset: 0x016f100f, 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(7374) /* metro dependency 7374 */;
|
|
value = value.getActiveSpan();
|
|
r5 = value;
|
|
}
|
|
} else {
|
|
value = require(7374) /* metro dependency 7374 */;
|
|
value = value.getActiveSpan();
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
value = require(7374) /* metro dependency 7374 */;
|
|
value = value.getRootSpan(r5);
|
|
r3 = value;
|
|
} else {
|
|
r3 = r5;
|
|
}
|
|
if (r3) {
|
|
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
(require(7369) /* metro dependency 7369 */).logger.log('[Measurement] Setting measurement on root span: ' + a0 + ' = ' + a1 + ' ' + a2);
|
|
}
|
|
addEvent = r3.addEvent;
|
|
binding = Module00077Module;
|
|
Reflect.apply(addEvent, r3, [a0, binding(binding({},
|
|
(require(7384) /* metro dependency 7384 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, a1),
|
|
(require(7384) /* metro dependency 7384 */).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, a2)]);
|
|
}
|
|
}
|
|
|
|
function timedEventsToMeasurements_59731(a0) { // fn#59731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7589:526, offset: 0x016f113c, size: 46 bytes, params: 2, frame: 12
|
|
if (a0) {
|
|
if (a0.length !== 0) {
|
|
a0.forEach(_fun59732);
|
|
return {};
|
|
}
|
|
}
|
|
function _fun59732(a0) { // fn#59732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7589:611, offset: 0x00d64814, size: 125 bytes, params: 2, frame: 15
|
|
const r3 = a0.attributes || ({});
|
|
const value = environment.__proto__;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT = (SEMANTIC_ATTRIBUTE_Module).SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT;
|
|
const property = r3[SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT];
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE = (SEMANTIC_ATTRIBUTE_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(_fun59729, 7411, [77, 7374, 7397, 7369,
|
|
7384]) /* metro module 7411, dependencies: [77, 7374, 7397, 7369, 7384] */;
|