189 lines
8.5 KiB
React
189 lines
8.5 KiB
React
/* Metro module 1194; source: unknown; dependencies: [1010, 820, 1032, 1195] */
|
|
function _fun13240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1321:6, offset: 0x00de4aa6, size: 66 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.getDefaultIntegrations = getDefaultIntegrations_13241;
|
|
}
|
|
|
|
function getDefaultIntegrations_13241(a0) { // fn#13241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1321:117, offset: 0x00de4ae8, size: 1707 bytes, params: 2, frame: 22
|
|
var moduleValue3;
|
|
var moduleValue4;
|
|
var moduleValue5;
|
|
var moduleValue6;
|
|
var moduleValue17;
|
|
var moduleValue18;
|
|
var moduleValue19;
|
|
var moduleValue20;
|
|
var moduleValue21;
|
|
var moduleValue22;
|
|
var moduleValue23;
|
|
var moduleValue24;
|
|
var moduleValue26;
|
|
var moduleValue27;
|
|
var moduleValue28;
|
|
var moduleValue29;
|
|
var moduleValue30;
|
|
var moduleValue31;
|
|
var moduleValue33;
|
|
var moduleValue35;
|
|
const items2 = [];
|
|
const value2 = undefined;
|
|
const value3 = (require(1010) /* metro dependency 1010 */).notWeb();
|
|
let push = items2.push;
|
|
const moduleValue2 = require(820) /* metro dependency 820 */;
|
|
if (value3) {
|
|
Reflect.apply(push, items2,
|
|
[moduleValue2.reactNativeErrorHandlersIntegration({patchGlobalPromise: a0.patchGlobalPromise})]);
|
|
push = items2.push;
|
|
moduleValue6 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue6.nativeLinkedErrorsIntegration()]);
|
|
} else {
|
|
Reflect.apply(push, items2, [moduleValue2.browserApiErrorsIntegration()]);
|
|
push = items2.push;
|
|
moduleValue3 = require(820) /* metro dependency 820 */;
|
|
Reflect.apply(push, items2, [moduleValue3.browserGlobalHandlersIntegration()]);
|
|
push = items2.push;
|
|
moduleValue4 = require(820) /* metro dependency 820 */;
|
|
Reflect.apply(push, items2, [moduleValue4.browserLinkedErrorsIntegration()]);
|
|
if (a0.enableAutoSessionTracking) {
|
|
push = items2.push;
|
|
moduleValue5 = require(1032) /* metro dependency 1032 */;
|
|
Reflect.apply(push, items2, [moduleValue5.browserSessionIntegration()]);
|
|
}
|
|
}
|
|
push = items2.push;
|
|
const moduleValue7 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue7.inboundFiltersIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue8 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue8.functionToStringIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue9 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue9.breadcrumbsIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue10 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue10.dedupeIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue11 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue11.httpContextIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue12 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue12.nativeReleaseIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue13 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue13.eventOriginIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue14 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue14.sdkInfoIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue15 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue15.reactNativeInfoIntegration()]);
|
|
push = items2.push;
|
|
const moduleValue16 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue16.createReactNativeRewriteFrames()]);
|
|
if (a0.enableNative) {
|
|
push = items2.push;
|
|
moduleValue17 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue17.deviceContextIntegration()]);
|
|
push = items2.push;
|
|
moduleValue18 = require(820) /* metro dependency 820 */;
|
|
Reflect.apply(push, items2, [moduleValue18.modulesLoaderIntegration()]);
|
|
if (a0.enableLogs && a0.logsOrigin !== 'native') {
|
|
push = items2.push;
|
|
moduleValue19 = require(820) /* metro dependency 820 */;
|
|
Reflect.apply(push, items2, [moduleValue19.logEnricherIntegration()]);
|
|
push = items2.push;
|
|
moduleValue20 = require(1032) /* metro dependency 1032 */;
|
|
Reflect.apply(push, items2, [moduleValue20.consoleLoggingIntegration()]);
|
|
}
|
|
if (a0.attachScreenshot) {
|
|
push = items2.push;
|
|
moduleValue21 = require(820) /* metro dependency 820 */;
|
|
Reflect.apply(push, items2, [moduleValue21.screenshotIntegration()]);
|
|
}
|
|
if (a0.attachViewHierarchy) {
|
|
push = items2.push;
|
|
moduleValue22 = require(820) /* metro dependency 820 */;
|
|
Reflect.apply(push, items2, [moduleValue22.viewHierarchyIntegration()]);
|
|
}
|
|
if (typeof a0.profilesSampleRate === 'number') {
|
|
push = items2.push;
|
|
moduleValue23 = require(820) /* metro dependency 820 */;
|
|
Reflect.apply(push, items2, [moduleValue23.hermesProfilingIntegration()]);
|
|
}
|
|
}
|
|
let r2 = typeof a0.tracesSampleRate === 'number' || typeof a0.tracesSampler === 'function';
|
|
let r3 = r2 && a0.enableAppStartTracking && a0.enableNative;
|
|
if (r3) {
|
|
push = items2.push;
|
|
moduleValue24 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue24.appStartIntegration()]);
|
|
}
|
|
const moduleValue25 = moduleValue2;
|
|
const nativeFramesIntegrations = moduleValue25.createNativeFramesIntegrations(r2 && a0.enableNativeFramesTracking && a0.enableNative);
|
|
if (nativeFramesIntegrations) {
|
|
items2.push(nativeFramesIntegrations);
|
|
}
|
|
if (r2 && a0.enableStallTracking) {
|
|
push = items2.push;
|
|
moduleValue26 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue26.stallTrackingIntegration()]);
|
|
}
|
|
if (r2 && a0.enableUserInteractionTracing) {
|
|
push = items2.push;
|
|
moduleValue27 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue27.userInteractionIntegration()]);
|
|
}
|
|
if (r2 && a0.enableAutoPerformanceTracing) {
|
|
push = items2.push;
|
|
moduleValue28 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue28.appRegistryIntegration()]);
|
|
push = items2.push;
|
|
moduleValue29 = require(1195) /* metro dependency 1195 */;
|
|
Reflect.apply(push, items2, [moduleValue29.reactNativeTracingIntegration()]);
|
|
}
|
|
if (r2) {
|
|
push = items2.push;
|
|
moduleValue30 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue30.timeToDisplayIntegration()]);
|
|
}
|
|
if (a0.enableCaptureFailedRequests) {
|
|
push = items2.push;
|
|
moduleValue31 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue31.httpClientIntegration()]);
|
|
}
|
|
push = items2.push;
|
|
const moduleValue32 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue32.expoContextIntegration()]);
|
|
let spotlight = a0.spotlight;
|
|
if (spotlight) {
|
|
spotlight = a0.spotlight;
|
|
spotlight = typeof spotlight !== 'string' ? value2 : a0.spotlight;
|
|
push = items2.push;
|
|
moduleValue33 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue33.spotlightIntegration({sidecarUrl: spotlight})]);
|
|
}
|
|
r2 = typeof a0.replaysOnErrorSampleRate === 'number' || typeof a0.replaysSessionSampleRate === 'number';
|
|
let _experiments = a0._experiments;
|
|
r3 = _experiments && typeof a0._experiments.replaysOnErrorSampleRate === 'number';
|
|
r3 = !r3 ? a0._experiments && typeof a0._experiments.replaysSessionSampleRate === 'number' : r3;
|
|
if (!r2 && r3) {
|
|
_experiments = a0._experiments;
|
|
a0.replaysOnErrorSampleRate = _experiments === null || value2 === _experiments ? value2 : _experiments.replaysOnErrorSampleRate;
|
|
_experiments = a0._experiments;
|
|
a0.replaysSessionSampleRate = _experiments === null || value2 === _experiments ? value2 : _experiments.replaysSessionSampleRate;
|
|
}
|
|
r2 = (!r2 ? r3 : r2) && (require(1010) /* metro dependency 1010 */).notWeb();
|
|
if (r2) {
|
|
push = items2.push;
|
|
moduleValue35 = moduleValue2;
|
|
Reflect.apply(push, items2, [moduleValue35.mobileReplayIntegration()]);
|
|
}
|
|
push = items2.push;
|
|
const value = moduleValue2;
|
|
Reflect.apply(push, items2, [value.primitiveTagIntegration()]);
|
|
return items2;
|
|
}
|
|
|