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

100 lines
6.5 KiB
JavaScript

/* Metro module 1174; source: unknown; dependencies: [1010, 1168, 823, 1032, 826] */
import * as Module00823Module from './module-00823.js'; /* Metro dependency 823 */
import * as Module01010Module from './module-01010.js'; /* Metro dependency 1010 */
import * as moduleValue3 from './module-01032.js'; /* Metro dependency 1032 */
import * as Module01168Module from './module-01168.js'; /* Metro dependency 1168 */
function _fun13046(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1301:6, offset: 0x00ddf317, size: 172 bytes, params: 8, frame: 19
const env0_0 = require;
const getReactNativeTracingIntegration2 = getReactNativeTracingIntegration;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {'traceFetch': null, 'traceXHR': true, 'enableHTTPTimings': true};
object.traceFetch = !!Module01010Module.isWeb();
exports.INTEGRATION_NAME = 'ReactNativeTracing';
exports.defaultReactNativeTracingOptions = object;
exports.reactNativeTracingIntegration = reactNativeTracingIntegration;
exports.getCurrentReactNativeTracingIntegration = function() {
var value2 = require(dependencyMap[4]).getClient();
if (value2) {
return getReactNativeTracingIntegration(value2);
}
};
exports.getReactNativeTracingIntegration = getReactNativeTracingIntegration2;
function getDefaultTracePropagationTargets() { // fn#13047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1301:119, offset: 0x00ddf3c3, size: 63 bytes, params: 1, frame: 11
if (Module01010Module.isWeb()) {
return undefined;
}
return [RegExp('.*', '')];
}
function getReactNativeTracingIntegration(a0) { // fn#13048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1301:267, offset: 0x00ddf402, size: 23 bytes, params: 2, frame: 11
return a0.getIntegrationByName(env0_2);
}
function reactNativeTracingIntegration() { // fn#13049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1301:435, offset: 0x00ddf419, size: 364 bytes, params: 1, frame: 23
const defaultIdleOptions = (Module01168Module).defaultIdleOptions;
const value = undefined;
const r9 = arguments.length > 0 && value !== arguments[0] ? arguments[0] : {};
const object = {currentRoute: value};
const Object = global.Object;
const assign = Object.assign;
const Object2 = global.Object;
const assign2 = Object2.assign;
const Object3 = global.Object;
const value4 = Reflect.apply(assign2, Object2, [Object3.assign({}, env0_3), r9]);
const beforeStartSpan = r9.beforeStartSpan;
const finalTimeoutMs = r9.finalTimeoutMs;
const idleTimeoutMs = r9.idleTimeoutMs;
const value5 = Reflect.apply(assign, Object, [value4, {beforeStartSpan: beforeStartSpan === null ? function(a0) {
return a0;
} : value !== beforeStartSpan ? beforeStartSpan : _fun13050,
finalTimeoutMs: finalTimeoutMs === null ? defaultIdleOptions.finalTimeout : value !== finalTimeoutMs ? finalTimeoutMs : defaultIdleOptions.finalTimeout,
idleTimeoutMs: idleTimeoutMs === null ? defaultIdleOptions.idleTimeout : value !== idleTimeoutMs ? idleTimeoutMs : defaultIdleOptions.idleTimeout}]);
const shouldCreateSpanForRequest = value5.shouldCreateSpanForRequest;
const shouldCreateSpanForRequest2 = shouldCreateSpanForRequest;
const devServer = (Module00823Module).getDevServer();
value5.shouldCreateSpanForRequest = value === (devServer === null || value === devServer ? value : devServer.url) ? shouldCreateSpanForRequest : _fun13051;
return {name: shouldCreateSpanForRequest2, setup: setup_13052, processEvent: processEvent_13053, options: value5,
state: object, setCurrentRoute: setCurrentRoute};
function _fun13051(a0) { // fn#13051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1301:1007, offset: 0x00ddf585, size: 53 bytes, params: 2, frame: 13
return !a0.startsWith(url) && (shouldCreateSpanForRequest ? shouldCreateSpanForRequest(a0) : !shouldCreateSpanForRequest);
}
function reactNativeTracingIntegrationSetup(a0) { // fn#13052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1301:1106, owner: reactNativeTracingIntegration.setup, offset: 0x00ddf5ba, size: 167 bytes, params: 2, frame: 17
const value = environment.__proto__;
(Module01168Module).addDefaultOpForSpanFrom(a0);
(Module01168Module).addThreadInfoToSpan(a0);
const instrumentOutgoingRequests = moduleValue3.instrumentOutgoingRequests;
const object = {};
object.traceFetch = env0_1.traceFetch;
object.traceXHR = env0_1.traceXHR;
object.shouldCreateSpanForRequest = env0_1.shouldCreateSpanForRequest;
const getOptions = a0.getOptions;
object.tracePropagationTargets = Reflect.apply(getOptions, a0,
[]).tracePropagationTargets || getDefaultTracePropagationTargets();
Reflect.apply(instrumentOutgoingRequests, moduleValue3, [a0, object]);
}
function reactNativeTracingIntegrationProcessEvent(a0) { // fn#13053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1301:1444, owner: reactNativeTracingIntegration.processEvent, offset: 0x00ddf661, size: 101 bytes, params: 2, frame: 16
if (a0.contexts && env0_0.currentRoute) {
a0.contexts.app = global.Object.assign({view_names: [env0_0.currentRoute]}, a0.contexts.app);
}
return a0;
}
function setCurrentRoute(a0) { // fn#13054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1301:1618, owner: reactNativeTracingIntegration.setCurrentRoute, offset: 0x00ddf6c6, size: 20 bytes, params: 2, frame: 2
env0_0.currentRoute = a0;
}
}
}
function _fun13050(a0) { // fn#13050, offset: 0x00c37049, size: 5 bytes, params: 2, frame: 1
return a0;
}
global.__d(_fun13046, 1174, [1010, 1168, 823, 1032,
826]) /* metro module 1174, dependencies: [1010, 1168, 823, 1032, 826] */;