1092 lines
60 KiB
React
1092 lines
60 KiB
React
/* Metro module 1176; source: unknown; dependencies: [77, 1168, 1009, 826, 1174, 1161, 825, 1166, 1165, 1169, 1177, 1130] */
|
|
function _fun13081(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:6, offset: 0x00de06ce, size: 107 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(77) /* metro dependency 77 */;
|
|
exports.INTEGRATION_NAME = 'ReactNavigation';
|
|
exports.reactNavigationIntegration = reactNavigationIntegration;
|
|
exports.getReactNavigationIntegration = function(a0) {
|
|
return a0.getIntegrationByName('ReactNavigation');
|
|
};
|
|
}
|
|
|
|
function reactNavigationIntegration() { // fn#13082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:176, offset: 0x00de0739, size: 367 bytes, params: 1, frame: 20
|
|
const r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
const routeChangeTimeoutMs = r0.routeChangeTimeoutMs;
|
|
const r7 = routeChangeTimeoutMs === undefined ? 1000 : routeChangeTimeoutMs;
|
|
const enableTimeToInitialDisplay = r0.enableTimeToInitialDisplay;
|
|
const r6 = enableTimeToInitialDisplay !== undefined && enableTimeToInitialDisplay;
|
|
const ignoreEmptyBackNavigationTransactions = r0.ignoreEmptyBackNavigationTransactions;
|
|
const r5 = ignoreEmptyBackNavigationTransactions === undefined || ignoreEmptyBackNavigationTransactions;
|
|
const enableTimeToInitialDisplayForPreloadedRoutes = r0.enableTimeToInitialDisplayForPreloadedRoutes;
|
|
const r4 = enableTimeToInitialDisplayForPreloadedRoutes !== undefined && enableTimeToInitialDisplayForPreloadedRoutes;
|
|
const useDispatchedActionData = r0.useDispatchedActionData;
|
|
const r3 = useDispatchedActionData !== undefined && useDispatchedActionData;
|
|
const useFullPathsForNavigationRoutes = r0.useFullPathsForNavigationRoutes;
|
|
const r2 = useFullPathsForNavigationRoutes !== undefined && useFullPathsForNavigationRoutes;
|
|
const env0_11 = (require(1168) /* metro dependency 1168 */).defaultIdleOptions;
|
|
const env0_13 = [];
|
|
if (r6) {
|
|
(require(1009) /* metro dependency 1009 */).NATIVE.initNativeReactNavigationNewFrameTracking().catch(function(a0) {
|
|
require(dependencyMap[3]).debug.error('' + 'ReactNavigation' + ' Failed to initialize native new frame tracking: ' + a0);
|
|
});
|
|
}
|
|
return {name: 'ReactNavigation', afterAllSetup: afterAllSetup,
|
|
registerNavigationContainer: registerNavigationContainer, options: {routeChangeTimeoutMs: r7,
|
|
enableTimeToInitialDisplay: r6, ignoreEmptyBackNavigationTransactions: r5,
|
|
enableTimeToInitialDisplayForPreloadedRoutes: r4, useDispatchedActionData: r3,
|
|
useFullPathsForNavigationRoutes: r2}};
|
|
}
|
|
|
|
function reactNavigationIntegrationStartIdleNavigationSpan(a0) { // fn#13084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:810, owner: reactNavigationIntegration.startIdleNavigationSpan, offset: 0x00de08fa, size: 1091 bytes, params: 2, frame: 29
|
|
var environment;
|
|
var r8;
|
|
var beforeStartSpan;
|
|
var r7;
|
|
var items;
|
|
var value6;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
var value7;
|
|
var moduleValue;
|
|
var startIdleNavigationSpan;
|
|
var options;
|
|
var moduleValue3;
|
|
var Object;
|
|
var assign;
|
|
var Object2;
|
|
var value11;
|
|
var binding;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
const SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION = (require(1166) /* metro dependency 1166 */).SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION;
|
|
const SEMANTIC_ATTRIBUTE_NAVIGATION_ACTION_TYPE = (require(1165) /* metro dependency 1165 */).SEMANTIC_ATTRIBUTE_NAVIGATION_ACTION_TYPE;
|
|
var moduleValue4;
|
|
var moduleValue6;
|
|
const DEFAULT_NAVIGATION_SPAN_NAME = (require(1168) /* metro dependency 1168 */).DEFAULT_NAVIGATION_SPAN_NAME;
|
|
const NATIVE = (require(1009) /* metro dependency 1009 */).NATIVE;
|
|
var setActiveSpanId;
|
|
var moduleValue8;
|
|
var startInactiveSpan;
|
|
var moduleValue9;
|
|
var value15;
|
|
var value16;
|
|
const value = undefined;
|
|
const r15 = arguments.length > 1 && value !== arguments[1] && arguments[1];
|
|
if (env0_9) {
|
|
if (a0 == null ? value : a0.data.noop) {
|
|
value16 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' Navigation action is a noop, not starting navigation span.');
|
|
} else {
|
|
r8 = env0_9 ? a0 == null ? value : a0.data.action.type : value;
|
|
if (env0_9) {
|
|
if (r8) {
|
|
items = ['PRELOAD', 'SET_PARAMS', 'OPEN_DRAWER', 'CLOSE_DRAWER', 'TOGGLE_DRAWER'];
|
|
if (items.includes(r8)) {
|
|
value15 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' Navigation action is ' + r8 + ', not starting navigation span.');
|
|
} else {
|
|
if (env0_3) {
|
|
value6 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' A transaction was detected that turned out to be a noop, discarding.');
|
|
_discardLatestTransaction();
|
|
reactNavigationIntegrationClearStateChangeTimeout();
|
|
}
|
|
value7 = environment.__proto__;
|
|
moduleValue = require(1168) /* metro dependency 1168 */;
|
|
startIdleNavigationSpan = moduleValue.startIdleNavigationSpan;
|
|
beforeStartSpan = env0_1 == null ? value : env0_1.options.beforeStartSpan;
|
|
if (beforeStartSpan) {
|
|
options = env0_1.options;
|
|
beforeStartSpan = options.beforeStartSpan;
|
|
moduleValue3 = require(1168) /* metro dependency 1168 */;
|
|
r7 = Reflect.apply(beforeStartSpan, options,
|
|
[moduleValue3.getDefaultIdleNavigationSpanOptions()]);
|
|
} else {
|
|
r7 = (require(1168) /* metro dependency 1168 */).getDefaultIdleNavigationSpanOptions();
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
value11 = Reflect.apply(startIdleNavigationSpan, moduleValue, [r7, Reflect.apply(assign, Object,
|
|
[Object2.assign({},
|
|
defaultIdleOptions), {isAppRestart: r15}])]);
|
|
env0_3 = value11;
|
|
if (value11 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
if (env0_3 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_NAVIGATION_ACTION_TYPE, r8);
|
|
}
|
|
if (env0_8) {
|
|
moduleValue4 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue4.ignoreEmptyBackNavigation((require(826) /* metro dependency 826 */).getClient(),
|
|
|
|
env0_3);
|
|
}
|
|
binding = env0_3;
|
|
moduleValue6 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue6.ignoreEmptyRouteChangeTransactions((require(826) /* metro dependency 826 */).getClient(),
|
|
|
|
|
|
binding,
|
|
DEFAULT_NAVIGATION_SPAN_NAME, _fun13085);
|
|
binding = env0_7;
|
|
if (binding && env0_3) {
|
|
setActiveSpanId = NATIVE.setActiveSpanId;
|
|
binding = env0_3;
|
|
Reflect.apply(setActiveSpanId, NATIVE, [binding.spanContext().spanId]);
|
|
moduleValue8 = require(826) /* metro dependency 826 */;
|
|
startInactiveSpan = moduleValue8.startInactiveSpan;
|
|
moduleValue9 = require(826) /* metro dependency 826 */;
|
|
Reflect.apply(startInactiveSpan, moduleValue8, [{'op': 'navigation.processing',
|
|
'name': 'Navigation dispatch to navigation cancelled or screen mounted',
|
|
startTime: moduleValue9.spanToJSON(env0_3).start_timestamp}]).setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
|
|
|
|
|
|
|
|
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
env0_5 = global.setTimeout(_discardLatestTransaction, env0_6);
|
|
}
|
|
} else {
|
|
if (env0_3) {
|
|
value6 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' A transaction was detected that turned out to be a noop, discarding.');
|
|
_discardLatestTransaction();
|
|
reactNavigationIntegrationClearStateChangeTimeout();
|
|
}
|
|
value7 = environment.__proto__;
|
|
moduleValue = require(1168) /* metro dependency 1168 */;
|
|
startIdleNavigationSpan = moduleValue.startIdleNavigationSpan;
|
|
beforeStartSpan = env0_1 == null ? value : env0_1.options.beforeStartSpan;
|
|
if (beforeStartSpan) {
|
|
options = env0_1.options;
|
|
beforeStartSpan = options.beforeStartSpan;
|
|
moduleValue3 = require(1168) /* metro dependency 1168 */;
|
|
r7 = Reflect.apply(beforeStartSpan, options,
|
|
[moduleValue3.getDefaultIdleNavigationSpanOptions()]);
|
|
} else {
|
|
r7 = (require(1168) /* metro dependency 1168 */).getDefaultIdleNavigationSpanOptions();
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
value11 = Reflect.apply(startIdleNavigationSpan, moduleValue, [r7, Reflect.apply(assign, Object,
|
|
[Object2.assign({},
|
|
defaultIdleOptions), {isAppRestart: r15}])]);
|
|
env0_3 = value11;
|
|
if (value11 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
if (env0_3 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_NAVIGATION_ACTION_TYPE, r8);
|
|
}
|
|
if (env0_8) {
|
|
moduleValue4 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue4.ignoreEmptyBackNavigation((require(826) /* metro dependency 826 */).getClient(),
|
|
env0_3);
|
|
}
|
|
binding = env0_3;
|
|
moduleValue6 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue6.ignoreEmptyRouteChangeTransactions((require(826) /* metro dependency 826 */).getClient(),
|
|
|
|
binding,
|
|
DEFAULT_NAVIGATION_SPAN_NAME, _fun13085);
|
|
binding = env0_7;
|
|
if (binding && env0_3) {
|
|
setActiveSpanId = NATIVE.setActiveSpanId;
|
|
binding = env0_3;
|
|
Reflect.apply(setActiveSpanId, NATIVE, [binding.spanContext().spanId]);
|
|
moduleValue8 = require(826) /* metro dependency 826 */;
|
|
startInactiveSpan = moduleValue8.startInactiveSpan;
|
|
moduleValue9 = require(826) /* metro dependency 826 */;
|
|
Reflect.apply(startInactiveSpan, moduleValue8, [{'op': 'navigation.processing',
|
|
'name': 'Navigation dispatch to navigation cancelled or screen mounted',
|
|
startTime: moduleValue9.spanToJSON(env0_3).start_timestamp}]).setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
|
|
|
|
|
|
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
env0_5 = global.setTimeout(_discardLatestTransaction, env0_6);
|
|
}
|
|
} else {
|
|
if (env0_3) {
|
|
value6 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' A transaction was detected that turned out to be a noop, discarding.');
|
|
_discardLatestTransaction();
|
|
reactNavigationIntegrationClearStateChangeTimeout();
|
|
}
|
|
value7 = environment.__proto__;
|
|
moduleValue = require(1168) /* metro dependency 1168 */;
|
|
startIdleNavigationSpan = moduleValue.startIdleNavigationSpan;
|
|
beforeStartSpan = env0_1 == null ? value : env0_1.options.beforeStartSpan;
|
|
if (beforeStartSpan) {
|
|
options = env0_1.options;
|
|
beforeStartSpan = options.beforeStartSpan;
|
|
moduleValue3 = require(1168) /* metro dependency 1168 */;
|
|
r7 = Reflect.apply(beforeStartSpan, options, [moduleValue3.getDefaultIdleNavigationSpanOptions()]);
|
|
} else {
|
|
r7 = (require(1168) /* metro dependency 1168 */).getDefaultIdleNavigationSpanOptions();
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
value11 = Reflect.apply(startIdleNavigationSpan, moduleValue, [r7, Reflect.apply(assign, Object,
|
|
[Object2.assign({},
|
|
defaultIdleOptions), {isAppRestart: r15}])]);
|
|
env0_3 = value11;
|
|
if (value11 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
if (env0_3 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_NAVIGATION_ACTION_TYPE, r8);
|
|
}
|
|
if (env0_8) {
|
|
moduleValue4 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue4.ignoreEmptyBackNavigation((require(826) /* metro dependency 826 */).getClient(),
|
|
env0_3);
|
|
}
|
|
binding = env0_3;
|
|
moduleValue6 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue6.ignoreEmptyRouteChangeTransactions((require(826) /* metro dependency 826 */).getClient(),
|
|
binding,
|
|
DEFAULT_NAVIGATION_SPAN_NAME, _fun13085);
|
|
binding = env0_7;
|
|
if (binding && env0_3) {
|
|
setActiveSpanId = NATIVE.setActiveSpanId;
|
|
binding = env0_3;
|
|
Reflect.apply(setActiveSpanId, NATIVE, [binding.spanContext().spanId]);
|
|
moduleValue8 = require(826) /* metro dependency 826 */;
|
|
startInactiveSpan = moduleValue8.startInactiveSpan;
|
|
moduleValue9 = require(826) /* metro dependency 826 */;
|
|
Reflect.apply(startInactiveSpan, moduleValue8, [{'op': 'navigation.processing',
|
|
'name': 'Navigation dispatch to navigation cancelled or screen mounted',
|
|
startTime: moduleValue9.spanToJSON(env0_3).start_timestamp}]).setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
|
|
|
|
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
env0_5 = global.setTimeout(_discardLatestTransaction, env0_6);
|
|
}
|
|
}
|
|
} else {
|
|
r8 = env0_9 ? a0 == null ? value : a0.data.action.type : value;
|
|
if (env0_9) {
|
|
if (r8) {
|
|
items = ['PRELOAD', 'SET_PARAMS', 'OPEN_DRAWER', 'CLOSE_DRAWER', 'TOGGLE_DRAWER'];
|
|
if (items.includes(r8)) {
|
|
value15 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' Navigation action is ' + r8 + ', not starting navigation span.');
|
|
} else {
|
|
if (env0_3) {
|
|
value6 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' A transaction was detected that turned out to be a noop, discarding.');
|
|
_discardLatestTransaction();
|
|
reactNavigationIntegrationClearStateChangeTimeout();
|
|
}
|
|
value7 = environment.__proto__;
|
|
moduleValue = require(1168) /* metro dependency 1168 */;
|
|
startIdleNavigationSpan = moduleValue.startIdleNavigationSpan;
|
|
beforeStartSpan = env0_1 == null ? value : env0_1.options.beforeStartSpan;
|
|
if (beforeStartSpan) {
|
|
options = env0_1.options;
|
|
beforeStartSpan = options.beforeStartSpan;
|
|
moduleValue3 = require(1168) /* metro dependency 1168 */;
|
|
r7 = Reflect.apply(beforeStartSpan, options,
|
|
[moduleValue3.getDefaultIdleNavigationSpanOptions()]);
|
|
} else {
|
|
r7 = (require(1168) /* metro dependency 1168 */).getDefaultIdleNavigationSpanOptions();
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
value11 = Reflect.apply(startIdleNavigationSpan, moduleValue, [r7, Reflect.apply(assign, Object,
|
|
[Object2.assign({},
|
|
defaultIdleOptions), {isAppRestart: r15}])]);
|
|
env0_3 = value11;
|
|
if (value11 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
if (env0_3 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_NAVIGATION_ACTION_TYPE, r8);
|
|
}
|
|
if (env0_8) {
|
|
moduleValue4 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue4.ignoreEmptyBackNavigation((require(826) /* metro dependency 826 */).getClient(),
|
|
env0_3);
|
|
}
|
|
binding = env0_3;
|
|
moduleValue6 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue6.ignoreEmptyRouteChangeTransactions((require(826) /* metro dependency 826 */).getClient(),
|
|
|
|
binding,
|
|
DEFAULT_NAVIGATION_SPAN_NAME, _fun13085);
|
|
binding = env0_7;
|
|
if (binding && env0_3) {
|
|
setActiveSpanId = NATIVE.setActiveSpanId;
|
|
binding = env0_3;
|
|
Reflect.apply(setActiveSpanId, NATIVE, [binding.spanContext().spanId]);
|
|
moduleValue8 = require(826) /* metro dependency 826 */;
|
|
startInactiveSpan = moduleValue8.startInactiveSpan;
|
|
moduleValue9 = require(826) /* metro dependency 826 */;
|
|
Reflect.apply(startInactiveSpan, moduleValue8, [{'op': 'navigation.processing',
|
|
'name': 'Navigation dispatch to navigation cancelled or screen mounted',
|
|
startTime: moduleValue9.spanToJSON(env0_3).start_timestamp}]).setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
|
|
|
|
|
|
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
env0_5 = global.setTimeout(_discardLatestTransaction, env0_6);
|
|
}
|
|
} else {
|
|
if (env0_3) {
|
|
value6 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' A transaction was detected that turned out to be a noop, discarding.');
|
|
_discardLatestTransaction();
|
|
reactNavigationIntegrationClearStateChangeTimeout();
|
|
}
|
|
value7 = environment.__proto__;
|
|
moduleValue = require(1168) /* metro dependency 1168 */;
|
|
startIdleNavigationSpan = moduleValue.startIdleNavigationSpan;
|
|
beforeStartSpan = env0_1 == null ? value : env0_1.options.beforeStartSpan;
|
|
if (beforeStartSpan) {
|
|
options = env0_1.options;
|
|
beforeStartSpan = options.beforeStartSpan;
|
|
moduleValue3 = require(1168) /* metro dependency 1168 */;
|
|
r7 = Reflect.apply(beforeStartSpan, options, [moduleValue3.getDefaultIdleNavigationSpanOptions()]);
|
|
} else {
|
|
r7 = (require(1168) /* metro dependency 1168 */).getDefaultIdleNavigationSpanOptions();
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
value11 = Reflect.apply(startIdleNavigationSpan, moduleValue, [r7, Reflect.apply(assign, Object,
|
|
[Object2.assign({},
|
|
defaultIdleOptions), {isAppRestart: r15}])]);
|
|
env0_3 = value11;
|
|
if (value11 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
if (env0_3 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_NAVIGATION_ACTION_TYPE, r8);
|
|
}
|
|
if (env0_8) {
|
|
moduleValue4 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue4.ignoreEmptyBackNavigation((require(826) /* metro dependency 826 */).getClient(),
|
|
env0_3);
|
|
}
|
|
binding = env0_3;
|
|
moduleValue6 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue6.ignoreEmptyRouteChangeTransactions((require(826) /* metro dependency 826 */).getClient(),
|
|
binding,
|
|
DEFAULT_NAVIGATION_SPAN_NAME, _fun13085);
|
|
binding = env0_7;
|
|
if (binding && env0_3) {
|
|
setActiveSpanId = NATIVE.setActiveSpanId;
|
|
binding = env0_3;
|
|
Reflect.apply(setActiveSpanId, NATIVE, [binding.spanContext().spanId]);
|
|
moduleValue8 = require(826) /* metro dependency 826 */;
|
|
startInactiveSpan = moduleValue8.startInactiveSpan;
|
|
moduleValue9 = require(826) /* metro dependency 826 */;
|
|
Reflect.apply(startInactiveSpan, moduleValue8, [{'op': 'navigation.processing',
|
|
'name': 'Navigation dispatch to navigation cancelled or screen mounted',
|
|
startTime: moduleValue9.spanToJSON(env0_3).start_timestamp}]).setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
|
|
|
|
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
env0_5 = global.setTimeout(_discardLatestTransaction, env0_6);
|
|
}
|
|
} else {
|
|
if (env0_3) {
|
|
value6 = environment.__proto__;
|
|
debug.log('' + 'ReactNavigation' + ' A transaction was detected that turned out to be a noop, discarding.');
|
|
_discardLatestTransaction();
|
|
reactNavigationIntegrationClearStateChangeTimeout();
|
|
}
|
|
value7 = environment.__proto__;
|
|
moduleValue = require(1168) /* metro dependency 1168 */;
|
|
startIdleNavigationSpan = moduleValue.startIdleNavigationSpan;
|
|
beforeStartSpan = env0_1 == null ? value : env0_1.options.beforeStartSpan;
|
|
if (beforeStartSpan) {
|
|
options = env0_1.options;
|
|
beforeStartSpan = options.beforeStartSpan;
|
|
moduleValue3 = require(1168) /* metro dependency 1168 */;
|
|
r7 = Reflect.apply(beforeStartSpan, options, [moduleValue3.getDefaultIdleNavigationSpanOptions()]);
|
|
} else {
|
|
r7 = (require(1168) /* metro dependency 1168 */).getDefaultIdleNavigationSpanOptions();
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
value11 = Reflect.apply(startIdleNavigationSpan, moduleValue, [r7, Reflect.apply(assign, Object,
|
|
[Object2.assign({},
|
|
defaultIdleOptions), {isAppRestart: r15}])]);
|
|
env0_3 = value11;
|
|
if (value11 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
if (env0_3 != null) {
|
|
env0_3.setAttribute(SEMANTIC_ATTRIBUTE_NAVIGATION_ACTION_TYPE, r8);
|
|
}
|
|
if (env0_8) {
|
|
moduleValue4 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue4.ignoreEmptyBackNavigation((require(826) /* metro dependency 826 */).getClient(), env0_3);
|
|
}
|
|
binding = env0_3;
|
|
moduleValue6 = require(1169) /* metro dependency 1169 */;
|
|
moduleValue6.ignoreEmptyRouteChangeTransactions((require(826) /* metro dependency 826 */).getClient(),
|
|
binding,
|
|
DEFAULT_NAVIGATION_SPAN_NAME, _fun13085);
|
|
binding = env0_7;
|
|
if (binding && env0_3) {
|
|
setActiveSpanId = NATIVE.setActiveSpanId;
|
|
binding = env0_3;
|
|
Reflect.apply(setActiveSpanId, NATIVE, [binding.spanContext().spanId]);
|
|
moduleValue8 = require(826) /* metro dependency 826 */;
|
|
startInactiveSpan = moduleValue8.startInactiveSpan;
|
|
moduleValue9 = require(826) /* metro dependency 826 */;
|
|
Reflect.apply(startInactiveSpan, moduleValue8, [{'op': 'navigation.processing',
|
|
'name': 'Navigation dispatch to navigation cancelled or screen mounted',
|
|
startTime: moduleValue9.spanToJSON(env0_3).start_timestamp}]).setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
|
|
|
|
SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION);
|
|
}
|
|
env0_5 = global.setTimeout(_discardLatestTransaction, env0_6);
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function updateLatestNavigationSpanWithCurrentRoute() { // fn#13086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:2387, owner: reactNavigationIntegration.updateLatestNavigationSpanWithCurrentRoute, offset: 0x00de0d51, size: 1215 bytes, params: 1, frame: 27
|
|
var r7;
|
|
var r15;
|
|
var name;
|
|
var state;
|
|
var r6;
|
|
var r10;
|
|
var key;
|
|
var r4;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
var HermesInternal;
|
|
var concat;
|
|
var currentRoute;
|
|
var log;
|
|
var moduleValue2;
|
|
var addTimeToInitialDisplayFallback;
|
|
var binding4;
|
|
var spanId;
|
|
var NATIVE;
|
|
var key2;
|
|
var binding5;
|
|
var includes;
|
|
var value6;
|
|
var binding6;
|
|
var getState;
|
|
var value7;
|
|
var object;
|
|
var value8;
|
|
var index;
|
|
var routes;
|
|
var property;
|
|
var push;
|
|
var length;
|
|
var join;
|
|
var value9;
|
|
var binding7;
|
|
var updateName;
|
|
var binding8;
|
|
var setStatus;
|
|
const SPAN_STATUS_OK = (require(826) /* metro dependency 826 */).SPAN_STATUS_OK;
|
|
var binding9;
|
|
var end;
|
|
var moduleValue3;
|
|
var spanToJSON;
|
|
var description;
|
|
const DEFAULT_NAVIGATION_SPAN_NAME = (require(1168) /* metro dependency 1168 */).DEFAULT_NAVIGATION_SPAN_NAME;
|
|
var binding10;
|
|
var binding11;
|
|
var setAttributes;
|
|
var binding12;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = (require(1165) /* metro dependency 1165 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_OP = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_OP;
|
|
var addBreadcrumb;
|
|
var setCurrentRoute;
|
|
var pushRecentRouteKeyBinding;
|
|
var Object;
|
|
var assign;
|
|
var Object2;
|
|
var assign2;
|
|
let value = environment.__proto__;
|
|
const value2 = undefined;
|
|
const value3 = (require(826) /* metro dependency 826 */).timestampInSeconds();
|
|
let binding = env0_2;
|
|
if (env0_0) {
|
|
currentRoute = env0_0.getCurrentRoute();
|
|
if (currentRoute) {
|
|
if (env0_3) {
|
|
moduleValue2 = require(1177) /* metro dependency 1177 */;
|
|
addTimeToInitialDisplayFallback = moduleValue2.addTimeToInitialDisplayFallback;
|
|
binding4 = env0_3;
|
|
spanId = binding4.spanContext().spanId;
|
|
NATIVE = (require(1009) /* metro dependency 1009 */).NATIVE;
|
|
Reflect.apply(addTimeToInitialDisplayFallback, moduleValue2, [spanId,
|
|
NATIVE.getNewScreenTimeToDisplay()]);
|
|
reducibleJoin45: while (true) {
|
|
reducibleJoin44: while (true) {
|
|
if (binding) {
|
|
key = binding.key;
|
|
key2 = currentRoute.key;
|
|
if (key === key2) {
|
|
log = debug.log;
|
|
concat = global.HermesInternal.concat;
|
|
Reflect.apply(log, debug,
|
|
['[' + 'ReactNavigation' + '] Navigation state changed, but route is the same as previous.']);
|
|
pushRecentRouteKey(currentRoute.key);
|
|
env0_2 = currentRoute;
|
|
env0_3 = value2;
|
|
return value2;
|
|
}
|
|
binding5 = env0_13;
|
|
includes = binding5.includes;
|
|
key = currentRoute.key;
|
|
value6 = Reflect.apply(includes, binding5, [key]);
|
|
name = currentRoute.name;
|
|
reducibleJoin26: while (true) {
|
|
if (env0_10) {
|
|
binding6 = env0_0;
|
|
getState = binding6.getState;
|
|
value7 = Reflect.apply(getState, binding6, []);
|
|
reducibleJoin23: while (true) {
|
|
if (value7) {
|
|
object = [];
|
|
value8 = 0;
|
|
if (value7) {
|
|
r7 = value7;
|
|
reducibleLoop11: while (true) {
|
|
index = r7.index;
|
|
reducibleJoin13: while (true) {
|
|
if (index === null) {
|
|
r15 = value8;
|
|
break reducibleJoin13;
|
|
}
|
|
if (value2 === index) {
|
|
r15 = value8;
|
|
break reducibleJoin13;
|
|
}
|
|
r15 = index;
|
|
break reducibleJoin13;
|
|
}
|
|
routes = r7.routes;
|
|
property = routes[r15];
|
|
reducibleJoin15: while (true) {
|
|
if (property == null) {
|
|
name = value2;
|
|
break reducibleJoin15;
|
|
}
|
|
name = property.name;
|
|
break reducibleJoin15;
|
|
}
|
|
reducibleJoin17: while (true) {
|
|
if (name) {
|
|
push = object.push;
|
|
name = property.name;
|
|
Reflect.apply(push, object, [name]);
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
reducibleJoin19: while (true) {
|
|
if (property == null) {
|
|
state = value2;
|
|
break reducibleJoin19;
|
|
}
|
|
state = property.state;
|
|
break reducibleJoin19;
|
|
}
|
|
if (state) {
|
|
r7 = state;
|
|
continue reducibleLoop11;
|
|
}
|
|
break reducibleLoop11;
|
|
}
|
|
}
|
|
length = object.length;
|
|
reducibleJoin22: while (true) {
|
|
if (length > value8) {
|
|
join = object.join;
|
|
value9 = Reflect.apply(join, object, ['/']);
|
|
r7 = value9;
|
|
break reducibleJoin22;
|
|
}
|
|
r7 = value2;
|
|
break reducibleJoin22;
|
|
}
|
|
r6 = r7;
|
|
break reducibleJoin23;
|
|
}
|
|
r6 = value2;
|
|
break reducibleJoin23;
|
|
}
|
|
reducibleJoin25: while (true) {
|
|
if (r6) {
|
|
break reducibleJoin25;
|
|
}
|
|
name = currentRoute.name;
|
|
r6 = name;
|
|
break reducibleJoin25;
|
|
}
|
|
r10 = r6;
|
|
break reducibleJoin26;
|
|
}
|
|
r10 = name;
|
|
break reducibleJoin26;
|
|
}
|
|
reducibleJoin28: while (true) {
|
|
if (env0_4 == null) {
|
|
break reducibleJoin28;
|
|
}
|
|
binding7 = env0_4;
|
|
updateName = binding7.updateName;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(updateName, binding7,
|
|
['Navigation dispatch to screen ' + r10 + ' mounted']);
|
|
break reducibleJoin28;
|
|
}
|
|
reducibleJoin30: while (true) {
|
|
if (env0_4 == null) {
|
|
break reducibleJoin30;
|
|
}
|
|
binding8 = env0_4;
|
|
setStatus = binding8.setStatus;
|
|
Reflect.apply(setStatus, binding8, [{code: SPAN_STATUS_OK}]);
|
|
break reducibleJoin30;
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if (env0_4 == null) {
|
|
break reducibleJoin32;
|
|
}
|
|
binding9 = env0_4;
|
|
end = binding9.end;
|
|
Reflect.apply(end, binding9, [value3]);
|
|
break reducibleJoin32;
|
|
}
|
|
env0_4 = value2;
|
|
moduleValue3 = require(826) /* metro dependency 826 */;
|
|
reducibleJoin34: while (true) {
|
|
if (moduleValue3.spanToJSON(env0_3).description !== DEFAULT_NAVIGATION_SPAN_NAME) {
|
|
break reducibleJoin34;
|
|
}
|
|
binding10 = env0_3;
|
|
updateName = binding10.updateName;
|
|
Reflect.apply(updateName, binding10, [r10]);
|
|
break reducibleJoin34;
|
|
}
|
|
binding11 = env0_3;
|
|
setAttributes = binding11.setAttributes;
|
|
binding12 = env1_2;
|
|
object = {};
|
|
object['route.name'] = r10;
|
|
key = currentRoute.key;
|
|
object['route.key'] = key;
|
|
object['route.has_been_seen'] = value6;
|
|
reducibleJoin36: while (true) {
|
|
if (binding == null) {
|
|
name = value2;
|
|
break reducibleJoin36;
|
|
}
|
|
name = binding.name;
|
|
break reducibleJoin36;
|
|
}
|
|
object['previous_route.name'] = name;
|
|
reducibleJoin38: while (true) {
|
|
if (binding == null) {
|
|
key = value2;
|
|
break reducibleJoin38;
|
|
}
|
|
key = binding.key;
|
|
break reducibleJoin38;
|
|
}
|
|
object['previous_route.key'] = key;
|
|
value = binding12(object, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'component');
|
|
Reflect.apply(setAttributes, binding11, [binding12(value, SEMANTIC_ATTRIBUTE_SENTRY_OP,
|
|
'navigation')]);
|
|
reactNavigationIntegrationClearStateChangeTimeout();
|
|
value = require(826) /* metro dependency 826 */;
|
|
addBreadcrumb = value.addBreadcrumb;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
reducibleJoin40: while (true) {
|
|
if (binding == null) {
|
|
name = value2;
|
|
break reducibleJoin40;
|
|
}
|
|
name = binding.name;
|
|
break reducibleJoin40;
|
|
}
|
|
Reflect.apply(addBreadcrumb, value, [{'category': 'navigation', 'type': 'navigation',
|
|
message: 'Navigation to ' + r10, data: {from: name, to: r10}}]);
|
|
reducibleJoin42: while (true) {
|
|
if (env0_1 == null) {
|
|
break reducibleJoin42;
|
|
}
|
|
binding = env0_1;
|
|
setCurrentRoute = binding.setCurrentRoute;
|
|
Reflect.apply(setCurrentRoute, binding, [r10]);
|
|
break reducibleJoin42;
|
|
}
|
|
pushRecentRouteKeyBinding = pushRecentRouteKey;
|
|
key = currentRoute.key;
|
|
pushRecentRouteKeyBinding(key);
|
|
if (env0_10) {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
value = Reflect.apply(assign2, Object2, [{}, currentRoute]);
|
|
value = Reflect.apply(assign, Object, [value, {name: r10}]);
|
|
r4 = value;
|
|
break reducibleJoin44;
|
|
}
|
|
r4 = currentRoute;
|
|
break reducibleJoin44;
|
|
}
|
|
binding5 = env0_13;
|
|
includes = binding5.includes;
|
|
key = currentRoute.key;
|
|
value6 = Reflect.apply(includes, binding5, [key]);
|
|
name = currentRoute.name;
|
|
reducibleJoin26: while (true) {
|
|
if (env0_10) {
|
|
binding6 = env0_0;
|
|
getState = binding6.getState;
|
|
value7 = Reflect.apply(getState, binding6, []);
|
|
reducibleJoin23: while (true) {
|
|
if (value7) {
|
|
object = [];
|
|
value8 = 0;
|
|
if (value7) {
|
|
r7 = value7;
|
|
reducibleLoop11: while (true) {
|
|
index = r7.index;
|
|
reducibleJoin13: while (true) {
|
|
if (index === null) {
|
|
r15 = value8;
|
|
break reducibleJoin13;
|
|
}
|
|
if (value2 === index) {
|
|
r15 = value8;
|
|
break reducibleJoin13;
|
|
}
|
|
r15 = index;
|
|
break reducibleJoin13;
|
|
}
|
|
routes = r7.routes;
|
|
property = routes[r15];
|
|
reducibleJoin15: while (true) {
|
|
if (property == null) {
|
|
name = value2;
|
|
break reducibleJoin15;
|
|
}
|
|
name = property.name;
|
|
break reducibleJoin15;
|
|
}
|
|
reducibleJoin17: while (true) {
|
|
if (name) {
|
|
push = object.push;
|
|
name = property.name;
|
|
Reflect.apply(push, object, [name]);
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
reducibleJoin19: while (true) {
|
|
if (property == null) {
|
|
state = value2;
|
|
break reducibleJoin19;
|
|
}
|
|
state = property.state;
|
|
break reducibleJoin19;
|
|
}
|
|
if (state) {
|
|
r7 = state;
|
|
continue reducibleLoop11;
|
|
}
|
|
break reducibleLoop11;
|
|
}
|
|
}
|
|
length = object.length;
|
|
reducibleJoin22: while (true) {
|
|
if (length > value8) {
|
|
join = object.join;
|
|
value9 = Reflect.apply(join, object, ['/']);
|
|
r7 = value9;
|
|
break reducibleJoin22;
|
|
}
|
|
r7 = value2;
|
|
break reducibleJoin22;
|
|
}
|
|
r6 = r7;
|
|
break reducibleJoin23;
|
|
}
|
|
r6 = value2;
|
|
break reducibleJoin23;
|
|
}
|
|
reducibleJoin25: while (true) {
|
|
if (r6) {
|
|
break reducibleJoin25;
|
|
}
|
|
name = currentRoute.name;
|
|
r6 = name;
|
|
break reducibleJoin25;
|
|
}
|
|
r10 = r6;
|
|
break reducibleJoin26;
|
|
}
|
|
r10 = name;
|
|
break reducibleJoin26;
|
|
}
|
|
reducibleJoin28: while (true) {
|
|
if (env0_4 == null) {
|
|
break reducibleJoin28;
|
|
}
|
|
binding7 = env0_4;
|
|
updateName = binding7.updateName;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(updateName, binding7, ['Navigation dispatch to screen ' + r10 + ' mounted']);
|
|
break reducibleJoin28;
|
|
}
|
|
reducibleJoin30: while (true) {
|
|
if (env0_4 == null) {
|
|
break reducibleJoin30;
|
|
}
|
|
binding8 = env0_4;
|
|
setStatus = binding8.setStatus;
|
|
Reflect.apply(setStatus, binding8, [{code: SPAN_STATUS_OK}]);
|
|
break reducibleJoin30;
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if (env0_4 == null) {
|
|
break reducibleJoin32;
|
|
}
|
|
binding9 = env0_4;
|
|
end = binding9.end;
|
|
Reflect.apply(end, binding9, [value3]);
|
|
break reducibleJoin32;
|
|
}
|
|
env0_4 = value2;
|
|
moduleValue3 = require(826) /* metro dependency 826 */;
|
|
spanToJSON = moduleValue3.spanToJSON;
|
|
description = Reflect.apply(spanToJSON, moduleValue3, [env0_3]).description;
|
|
reducibleJoin34: while (true) {
|
|
if (description !== DEFAULT_NAVIGATION_SPAN_NAME) {
|
|
break reducibleJoin34;
|
|
}
|
|
binding10 = env0_3;
|
|
updateName = binding10.updateName;
|
|
Reflect.apply(updateName, binding10, [r10]);
|
|
break reducibleJoin34;
|
|
}
|
|
binding11 = env0_3;
|
|
setAttributes = binding11.setAttributes;
|
|
binding12 = env1_2;
|
|
object = {};
|
|
object['route.name'] = r10;
|
|
key = currentRoute.key;
|
|
object['route.key'] = key;
|
|
object['route.has_been_seen'] = value6;
|
|
reducibleJoin36: while (true) {
|
|
if (binding == null) {
|
|
name = value2;
|
|
break reducibleJoin36;
|
|
}
|
|
name = binding.name;
|
|
break reducibleJoin36;
|
|
}
|
|
object['previous_route.name'] = name;
|
|
reducibleJoin38: while (true) {
|
|
if (binding == null) {
|
|
key = value2;
|
|
break reducibleJoin38;
|
|
}
|
|
key = binding.key;
|
|
break reducibleJoin38;
|
|
}
|
|
object['previous_route.key'] = key;
|
|
value = binding12(object, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'component');
|
|
Reflect.apply(setAttributes, binding11, [binding12(value, SEMANTIC_ATTRIBUTE_SENTRY_OP,
|
|
'navigation')]);
|
|
reactNavigationIntegrationClearStateChangeTimeout();
|
|
value = require(826) /* metro dependency 826 */;
|
|
addBreadcrumb = value.addBreadcrumb;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
reducibleJoin40: while (true) {
|
|
if (binding == null) {
|
|
name = value2;
|
|
break reducibleJoin40;
|
|
}
|
|
name = binding.name;
|
|
break reducibleJoin40;
|
|
}
|
|
Reflect.apply(addBreadcrumb, value, [{'category': 'navigation', 'type': 'navigation',
|
|
message: 'Navigation to ' + r10, data: {from: name, to: r10}}]);
|
|
reducibleJoin42: while (true) {
|
|
if (env0_1 == null) {
|
|
break reducibleJoin42;
|
|
}
|
|
binding = env0_1;
|
|
setCurrentRoute = binding.setCurrentRoute;
|
|
Reflect.apply(setCurrentRoute, binding, [r10]);
|
|
break reducibleJoin42;
|
|
}
|
|
pushRecentRouteKeyBinding = pushRecentRouteKey;
|
|
key = currentRoute.key;
|
|
pushRecentRouteKeyBinding(key);
|
|
if (env0_10) {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
value = Reflect.apply(assign2, Object2, [{}, currentRoute]);
|
|
value = Reflect.apply(assign, Object, [value, {name: r10}]);
|
|
r4 = value;
|
|
break reducibleJoin44;
|
|
}
|
|
r4 = currentRoute;
|
|
break reducibleJoin44;
|
|
}
|
|
env0_2 = r4;
|
|
env0_3 = value2;
|
|
break reducibleJoin45;
|
|
}
|
|
} else {
|
|
debug.log('[' + 'ReactNavigation' + '] Navigation state changed, but navigation transaction was not started on dispatch.');
|
|
}
|
|
} else {
|
|
debug.log('[' + 'ReactNavigation' + '] Navigation state changed, but no route is rendered.');
|
|
}
|
|
} else {
|
|
debug.warn('' + 'ReactNavigation' + ' Missing navigation container ref. Route transactions will not be sent.');
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function pushRecentRouteKey(a0) { // fn#13087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:4107, owner: reactNavigationIntegration.pushRecentRouteKey, offset: 0x00de1210, size: 71 bytes, params: 2, frame: 13
|
|
let binding = env0_13;
|
|
binding.push(a0);
|
|
if (env0_13.length > 200) {
|
|
binding = env0_13;
|
|
env0_13 = binding.slice(env0_13.length - 200);
|
|
}
|
|
}
|
|
|
|
function _discardLatestTransaction() { // fn#13088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:4191, owner: reactNavigationIntegration._discardLatestTransaction, offset: 0x00de1257, size: 99 bytes, params: 1, frame: 13
|
|
var value2;
|
|
var moduleValue;
|
|
if (env0_3) {
|
|
value2 = environment.__proto__;
|
|
moduleValue = require(1130) /* metro dependency 1130 */;
|
|
if (moduleValue.isSentrySpan(env0_3)) {
|
|
env0_3._sampled = false;
|
|
}
|
|
env0_3.end();
|
|
}
|
|
if (env0_4) {
|
|
}
|
|
}
|
|
|
|
function reactNavigationIntegrationClearStateChangeTimeout() { // fn#13089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:4309, owner: reactNavigationIntegration.clearStateChangeTimeout, offset: 0x00de12ba, size: 36 bytes, params: 1, frame: 12
|
|
if (env0_5 !== undefined) {
|
|
global.clearTimeout(env0_5);
|
|
}
|
|
}
|
|
|
|
function reactNavigationIntegrationAfterAllSetup(a0) { // fn#13090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:4412, owner: reactNavigationIntegration.afterAllSetup, offset: 0x00de12de, size: 198 bytes, params: 2, frame: 14
|
|
var environment;
|
|
var object2;
|
|
var options;
|
|
let value = environment.__proto__;
|
|
const reactNativeTracingIntegration = (require(1174) /* metro dependency 1174 */).getReactNativeTracingIntegration(a0);
|
|
env0_1 = reactNativeTracingIntegration;
|
|
if (reactNativeTracingIntegration) {
|
|
object2 = {};
|
|
options = env0_1.options;
|
|
object2.finalTimeout = options.finalTimeoutMs;
|
|
options = env0_1.options;
|
|
object2.idleTimeout = options.idleTimeoutMs;
|
|
}
|
|
if (!env0_12) {
|
|
value = require(1161) /* metro dependency 1161 */;
|
|
value = value.getAppRegistryIntegration(a0);
|
|
if (!(value === null || value === undefined)) {
|
|
value.onRunApplication(_fun13091);
|
|
}
|
|
reactNavigationIntegrationStartIdleNavigationSpan();
|
|
if (env0_0) {
|
|
updateLatestNavigationSpanWithCurrentRoute();
|
|
}
|
|
}
|
|
}
|
|
|
|
function registerNavigationContainer(a0) { // fn#13092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:4852, owner: reactNavigationIntegration.registerNavigationContainer, offset: 0x00de13ee, size: 516 bytes, params: 2, frame: 21
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
var binding;
|
|
const value = a0;
|
|
const RN_GLOBAL_OBJ = (require(825) /* metro dependency 825 */).RN_GLOBAL_OBJ;
|
|
if (RN_GLOBAL_OBJ.__sentry_rn_v5_registered) {
|
|
debug.log('' + 'ReactNavigation' + ' Instrumentation already exists, but registering again...');
|
|
}
|
|
const moduleValue = require(826) /* metro dependency 826 */;
|
|
const r1 = moduleValue.isPlainObject(value) && 'current' in value ? value.current : value;
|
|
if (env0_0 !== r1) {
|
|
env0_0 = r1;
|
|
if (r1) {
|
|
binding = env0_0;
|
|
binding.addListener('__unsafe_action__', reactNavigationIntegrationStartIdleNavigationSpan);
|
|
binding = env0_0;
|
|
binding.addListener('state', updateLatestNavigationSpanWithCurrentRoute);
|
|
RN_GLOBAL_OBJ.__sentry_rn_v5_registered = true;
|
|
if (!env0_12) {
|
|
if (env0_3) {
|
|
updateLatestNavigationSpanWithCurrentRoute();
|
|
} else {
|
|
debug.log('' + 'ReactNavigation' + ' Navigation container registered, but integration has not been setup yet.');
|
|
}
|
|
}
|
|
} else {
|
|
debug.warn('' + 'ReactNavigation' + ' Received invalid navigation container ref!');
|
|
}
|
|
} else {
|
|
debug.log('' + 'ReactNavigation' + ' Navigation container ref is the same as the one already registered.');
|
|
}
|
|
}
|
|
|
|
function _fun13085() { // fn#13085, offset: 0x00de0d3d, size: 20 bytes, params: 1, frame: 2
|
|
return env1_3 === env0_0;
|
|
}
|
|
|
|
function _fun13091() { // fn#13091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1303:4658, offset: 0x00de13a4, size: 74 bytes, params: 1, frame: 14
|
|
var value2;
|
|
if (env1_12) {
|
|
value2 = environment.__proto__.__proto__;
|
|
(require(826) /* metro dependency 826 */).debug.log('[ReactNavigationIntegration] Starting new idle navigation span based on runApplication call.');
|
|
reactNavigationIntegrationStartIdleNavigationSpan(undefined, true);
|
|
}
|
|
}
|
|
|