decord/source/1162_getDefaultIntegrations.js

193 lines
8.7 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1162
2026-07-24 07:16:23 +00:00
// Function ID: 13208
2026-07-20 16:05:17 +00:00
// Name: getDefaultIntegrations
2026-07-23 10:11:24 +00:00
// Dependencies: [978, 788, 1000, 1163]
2026-07-20 16:05:17 +00:00
// Module 1162 (getDefaultIntegrations)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
arg5.getDefaultIntegrations = function getDefaultIntegrations(patchGlobalPromise) {
const items = [];
2026-07-23 10:11:24 +00:00
let obj = require(978) /* isHermesEnabled */;
2026-07-20 16:05:17 +00:00
const push = items.push;
2026-07-23 10:11:24 +00:00
const obj2 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
if (notWebResult) {
obj = { patchGlobalPromise: patchGlobalPromise.patchGlobalPromise };
push(obj2.reactNativeErrorHandlersIntegration(obj));
2026-07-23 10:11:24 +00:00
let tmp2Result = tmp2(788);
2026-07-20 16:05:17 +00:00
items.push(tmp2Result.nativeLinkedErrorsIntegration());
} else {
push(obj2.browserApiErrorsIntegration());
2026-07-23 10:11:24 +00:00
tmp2Result = tmp2(788);
2026-07-20 16:05:17 +00:00
items.push(tmp2Result.browserGlobalHandlersIntegration());
2026-07-23 10:11:24 +00:00
items.push(tmp2(788).browserLinkedErrorsIntegration());
2026-07-20 16:05:17 +00:00
if (patchGlobalPromise.enableAutoSessionTracking) {
2026-07-23 10:11:24 +00:00
items.push(require(1000) /* keys */.browserSessionIntegration());
const obj5 = require(1000) /* keys */;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp2Result1 = tmp2(788);
}
notWebResult = obj.notWeb();
items.push(require(788) /* debugSymbolicatorIntegration */.inboundFiltersIntegration());
const obj8 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.functionToStringIntegration());
const obj9 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.breadcrumbsIntegration());
const obj10 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.dedupeIntegration());
const obj11 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.httpContextIntegration());
const obj12 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.nativeReleaseIntegration());
const obj13 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.eventOriginIntegration());
const obj14 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.sdkInfoIntegration());
const obj15 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.reactNativeInfoIntegration());
const obj16 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.createReactNativeRewriteFrames());
2026-07-20 16:05:17 +00:00
if (patchGlobalPromise.enableNative) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.deviceContextIntegration());
const obj18 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.modulesLoaderIntegration());
2026-07-20 16:05:17 +00:00
let enableLogs = patchGlobalPromise.enableLogs;
if (enableLogs) {
enableLogs = "native" !== patchGlobalPromise.logsOrigin;
}
if (enableLogs) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.logEnricherIntegration());
const obj20 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(1000) /* keys */.consoleLoggingIntegration());
const obj21 = require(1000) /* keys */;
2026-07-20 16:05:17 +00:00
}
if (patchGlobalPromise.attachScreenshot) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.screenshotIntegration());
const obj22 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
if (patchGlobalPromise.attachViewHierarchy) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.viewHierarchyIntegration());
const obj23 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
if ("number" === typeof patchGlobalPromise.profilesSampleRate) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.hermesProfilingIntegration());
const obj24 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj19 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
let tmp39 = "number" === typeof patchGlobalPromise.tracesSampleRate;
if (!tmp39) {
tmp39 = "function" === typeof patchGlobalPromise.tracesSampler;
}
let enableNative = tmp39;
if (tmp39) {
enableNative = patchGlobalPromise.enableAppStartTracking;
}
if (enableNative) {
enableNative = patchGlobalPromise.enableNative;
}
if (enableNative) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.appStartIntegration());
const obj25 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj17 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
let enableNative2 = tmp39;
if (tmp39) {
enableNative2 = patchGlobalPromise.enableNativeFramesTracking;
}
if (enableNative2) {
enableNative2 = patchGlobalPromise.enableNative;
}
2026-07-23 10:11:24 +00:00
const nativeFramesIntegrations = require(788) /* debugSymbolicatorIntegration */.createNativeFramesIntegrations(enableNative2);
2026-07-20 16:05:17 +00:00
if (nativeFramesIntegrations) {
items.push(nativeFramesIntegrations);
}
let enableStallTracking = tmp39;
if (tmp39) {
enableStallTracking = patchGlobalPromise.enableStallTracking;
}
if (enableStallTracking) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.stallTrackingIntegration());
const obj27 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
let enableUserInteractionTracing = tmp39;
if (tmp39) {
enableUserInteractionTracing = patchGlobalPromise.enableUserInteractionTracing;
}
if (enableUserInteractionTracing) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.userInteractionIntegration());
const obj28 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
let enableAutoPerformanceTracing = tmp39;
if (tmp39) {
enableAutoPerformanceTracing = patchGlobalPromise.enableAutoPerformanceTracing;
}
if (enableAutoPerformanceTracing) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.appRegistryIntegration());
const obj29 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(1163) /* reactNativeTracingIntegration */.reactNativeTracingIntegration());
const obj30 = require(1163) /* reactNativeTracingIntegration */;
2026-07-20 16:05:17 +00:00
}
if (tmp39) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.timeToDisplayIntegration());
const obj31 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
if (patchGlobalPromise.enableCaptureFailedRequests) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.httpClientIntegration());
const obj32 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj26 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.expoContextIntegration());
2026-07-20 16:05:17 +00:00
if (patchGlobalPromise.spotlight) {
let spotlight;
if ("string" === typeof patchGlobalPromise.spotlight) {
spotlight = patchGlobalPromise.spotlight;
}
obj = { sidecarUrl: spotlight };
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.spotlightIntegration(obj));
const obj34 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
let notWebResult1 = "number" === typeof patchGlobalPromise.replaysOnErrorSampleRate || "number" === typeof patchGlobalPromise.replaysSessionSampleRate;
let tmp67 = patchGlobalPromise._experiments && "number" === typeof patchGlobalPromise._experiments.replaysOnErrorSampleRate;
if (!tmp67) {
tmp67 = patchGlobalPromise._experiments && "number" === typeof patchGlobalPromise._experiments.replaysSessionSampleRate;
const tmp68 = patchGlobalPromise._experiments && "number" === typeof patchGlobalPromise._experiments.replaysSessionSampleRate;
}
let tmp69 = !notWebResult1;
if (!notWebResult1) {
tmp69 = tmp67;
}
if (tmp69) {
const _experiments = patchGlobalPromise._experiments;
let prop;
if (null !== _experiments) {
if (undefined !== _experiments) {
prop = _experiments.replaysOnErrorSampleRate;
}
}
patchGlobalPromise.replaysOnErrorSampleRate = prop;
const _experiments2 = patchGlobalPromise._experiments;
let prop1;
if (null !== _experiments2) {
if (undefined !== _experiments2) {
prop1 = _experiments2.replaysSessionSampleRate;
}
}
patchGlobalPromise.replaysSessionSampleRate = prop1;
}
if (!notWebResult1) {
notWebResult1 = tmp67;
}
if (notWebResult1) {
2026-07-23 10:11:24 +00:00
notWebResult1 = require(978) /* isHermesEnabled */.notWeb();
const obj36 = require(978) /* isHermesEnabled */;
2026-07-20 16:05:17 +00:00
}
if (notWebResult1) {
2026-07-23 10:11:24 +00:00
items.push(require(788) /* debugSymbolicatorIntegration */.mobileReplayIntegration());
const obj37 = require(788) /* debugSymbolicatorIntegration */;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj33 = require(788) /* debugSymbolicatorIntegration */;
items.push(require(788) /* debugSymbolicatorIntegration */.primitiveTagIntegration());
2026-07-20 16:05:17 +00:00
return items;
};