204 lines
9.1 KiB
React
204 lines
9.1 KiB
React
/* Metro module 1153; source: unknown; dependencies: [57, 77, 1032, 826] */
|
|
function _fun12771(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1280:6, offset: 0x00dd4f78, size: 118 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const routeMatchToParamSpanAttributes = function(a0) {
|
|
var object = {};
|
|
if (a0) {
|
|
var env0_0 = object;
|
|
global.Object.entries(a0.params).forEach(_fun12773);
|
|
}
|
|
return object;
|
|
};
|
|
const env0_2 = require(57) /* metro dependency 57 */;
|
|
const env0_3 = require(77) /* metro dependency 77 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.tanstackRouterBrowserTracingIntegration = tanstackRouterBrowserTracingIntegration;
|
|
}
|
|
|
|
function routeMatchToParamSpanAttributes(a0) { // fn#12772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1280:54, offset: 0x00dd4fee, size: 58 bytes, params: 2, frame: 13
|
|
var Object;
|
|
if (a0) {
|
|
Object = global.Object;
|
|
Object.entries(a0.params).forEach(_fun12773);
|
|
}
|
|
return {};
|
|
}
|
|
|
|
function tanstackRouterBrowserTracingIntegration(a0) { // fn#12774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1280:388, offset: 0x00dd50ab, size: 183 bytes, params: 2, frame: 20
|
|
const r3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
const env0_0 = a0;
|
|
var value;
|
|
const browserTracingIntegration = (require(1032) /* metro dependency 1032 */).browserTracingIntegration;
|
|
let Object = global.Object;
|
|
value = Reflect.apply(browserTracingIntegration, value, [Object.assign({}, r3, {'instrumentNavigation': false,
|
|
'instrumentPageLoad': false})]);
|
|
const instrumentPageLoad = r3.instrumentPageLoad;
|
|
const env0_2 = instrumentPageLoad === undefined || instrumentPageLoad;
|
|
const instrumentNavigation = r3.instrumentNavigation;
|
|
const env0_3 = instrumentNavigation === undefined || instrumentNavigation;
|
|
Object = global.Object;
|
|
return Object.assign({}, value, {afterAllSetup: afterAllSetup});
|
|
}
|
|
|
|
function _fun12773(a0) { // fn#12773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1280:163, offset: 0x00dd5028, size: 131 bytes, params: 2, frame: 17
|
|
let value = environment.__proto__;
|
|
value = env1_2(a0, 2);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
env0_0['url.path.params.' + property] = property2;
|
|
env0_0['url.path.parameter.' + property] = property2;
|
|
env0_0['params.' + property] = property2;
|
|
}
|
|
|
|
function tanstackRouterBrowserTracingIntegrationAfterAllSetup(a0) { // fn#12775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1280:734, owner: tanstackRouterBrowserTracingIntegration.afterAllSetup, offset: 0x00dd5162, size: 413 bytes, params: 2, frame: 28
|
|
var r11;
|
|
var r8;
|
|
var matchRoutes;
|
|
var pathname;
|
|
var options;
|
|
var value4;
|
|
var property;
|
|
var moduleValue;
|
|
var startBrowserTracingPageLoadSpan;
|
|
var object2;
|
|
var Object;
|
|
var assign;
|
|
var value6;
|
|
var SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
const env0_0 = a0;
|
|
let binding = env0_1;
|
|
binding.afterAllSetup(a0);
|
|
const value3 = undefined;
|
|
const WINDOW = (require(1032) /* metro dependency 1032 */).WINDOW;
|
|
const location = WINDOW.location;
|
|
if (env0_2) {
|
|
if (location) {
|
|
binding = env0_0;
|
|
matchRoutes = binding.matchRoutes;
|
|
pathname = location.pathname;
|
|
options = env0_0.options;
|
|
value4 = Reflect.apply(matchRoutes, binding, [pathname, options.parseSearch(location.search),
|
|
{'preload': false,
|
|
'throwOnError': false}]);
|
|
property = value4[value4.length - 1];
|
|
r11 = (property == null ? value3 : property.routeId) === '__root__' ? value3 : property;
|
|
moduleValue = require(1032) /* metro dependency 1032 */;
|
|
startBrowserTracingPageLoadSpan = moduleValue.startBrowserTracingPageLoadSpan;
|
|
object2 = {};
|
|
r8 = r11 ? r11.routeId : location.pathname;
|
|
object2.name = r8;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
binding = env1_3;
|
|
value6 = binding(binding({}, (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_OP,
|
|
'pageload'),
|
|
(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
'auto.pageload.react.tanstack_router');
|
|
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
r8 = r11 ? 'route' : 'url';
|
|
object2.attributes = Reflect.apply(assign, Object, [binding(value6, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, r8),
|
|
routeMatchToParamSpanAttributes(r11)]);
|
|
Reflect.apply(startBrowserTracingPageLoadSpan, moduleValue, [a0, object2]);
|
|
}
|
|
}
|
|
if (env0_3) {
|
|
env0_0.subscribe('onBeforeNavigate', _fun12776);
|
|
}
|
|
return value3;
|
|
}
|
|
|
|
function _fun12776(a0) { // fn#12776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1280:1343, offset: 0x00dd52ff, size: 381 bytes, params: 2, frame: 25
|
|
var environment;
|
|
var r11;
|
|
var toLocation;
|
|
var value;
|
|
var binding;
|
|
var matchRoutes;
|
|
var pathname;
|
|
var value2;
|
|
var property;
|
|
var value3;
|
|
var value4;
|
|
var location;
|
|
var moduleValue;
|
|
var startBrowserTracingNavigationSpan;
|
|
var object2;
|
|
var binding2;
|
|
if (a0.fromLocation) {
|
|
toLocation = a0.toLocation;
|
|
if (toLocation.state !== a0.fromLocation.state) {
|
|
value = environment.__proto__;
|
|
binding = env1_0;
|
|
matchRoutes = binding.matchRoutes;
|
|
toLocation = a0.toLocation;
|
|
pathname = toLocation.pathname;
|
|
toLocation = a0.toLocation;
|
|
value2 = Reflect.apply(matchRoutes, binding, [pathname, toLocation.search, {'preload': false,
|
|
'throwOnError': false}]);
|
|
property = value2[value2.length - 1];
|
|
value3 = undefined;
|
|
r11 = (property == null ? value3 : property.routeId) === '__root__' ? value3 : property;
|
|
value4 = environment.__proto__.__proto__;
|
|
location = (require(1032) /* metro dependency 1032 */).WINDOW.location;
|
|
moduleValue = require(1032) /* metro dependency 1032 */;
|
|
startBrowserTracingNavigationSpan = moduleValue.startBrowserTracingNavigationSpan;
|
|
binding = env0_0;
|
|
object2 = {};
|
|
object2.name = r11 ? r11.routeId : location.pathname;
|
|
binding2 = env2_3;
|
|
object2.attributes = binding2(binding2(binding2({},
|
|
(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_OP, 'navigation'),
|
|
(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
'auto.navigation.react.tanstack_router'),
|
|
(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, r11 ? 'route' : 'url');
|
|
var env0_0 = Reflect.apply(startBrowserTracingNavigationSpan, moduleValue, [binding, object2]);
|
|
binding = env1_0;
|
|
var env0_1 = binding.subscribe('onResolved', _fun12777);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun12777(a0) { // fn#12777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1280:1917, offset: 0x00dd547c, size: 227 bytes, params: 2, frame: 19
|
|
var r4;
|
|
var value3;
|
|
var binding;
|
|
var matchRoutes;
|
|
var toLocation;
|
|
var pathname;
|
|
var value4;
|
|
var property;
|
|
var setAttribute;
|
|
var value5;
|
|
const value2 = undefined;
|
|
env0_1();
|
|
if (env0_0) {
|
|
value3 = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
matchRoutes = binding.matchRoutes;
|
|
toLocation = a0.toLocation;
|
|
pathname = toLocation.pathname;
|
|
toLocation = a0.toLocation;
|
|
value4 = Reflect.apply(matchRoutes, binding, [pathname, toLocation.search, {'preload': false,
|
|
'throwOnError': false}]);
|
|
property = value4[value4.length - 1];
|
|
r4 = (property == null ? value2 : property.routeId) === '__root__' ? value2 : property;
|
|
if (r4) {
|
|
binding = env0_0;
|
|
binding.updateName(r4.routeId);
|
|
binding = env0_0;
|
|
setAttribute = binding.setAttribute;
|
|
value5 = environment.__proto__.__proto__.__proto__;
|
|
Reflect.apply(setAttribute, binding,
|
|
[(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
|
|
'route']);
|
|
binding = env0_0;
|
|
binding.setAttributes(routeMatchToParamSpanAttributes(r4));
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|