2026-07-20 16:05:17 +00:00
// Module ID: 1141
2026-07-25 08:10:48 +00:00
// Function ID: 13017
2026-07-20 16:05:17 +00:00
// Name: userInteractionIntegration
2026-07-23 10:11:24 +00:00
// Dependencies: [794, 1142, 1136, 1134, 1137]
2026-07-20 16:05:17 +00:00
// Module 1141 (userInteractionIntegration)
2026-07-23 10:11:24 +00:00
const require = arg1 ;
const dependencyMap = arg6 ;
2026-07-20 16:05:17 +00:00
arg5 . userInteractionIntegration = function userInteractionIntegration ( ) {
return { name : "UserInteraction" } ;
} ;
arg5 . startUserInteractionSpan = function startUserInteractionSpan ( arg0 ) {
let elementId ;
let op ;
2026-07-23 10:11:24 +00:00
let obj = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
const client = obj . getClient ( ) ;
if ( client ) {
2026-07-23 10:11:24 +00:00
const currentReactNativeTracingIntegration = require ( 1142 ) /* getDefaultTracePropagationTargets */ . getCurrentReactNativeTracingIntegration ( ) ;
2026-07-20 16:05:17 +00:00
if ( currentReactNativeTracingIntegration ) {
( { elementId , op } = arg0 ) ;
if ( client . getOptions ( ) . enableUserInteractionTracing ) {
if ( elementId ) {
2026-07-23 10:11:24 +00:00
const obj4 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
if ( currentReactNativeTracingIntegration . state . currentRoute ) {
const activeSpan = obj4 . getActiveSpan ( ) ;
let tmp21 = activeSpan ;
if ( activeSpan ) {
2026-07-23 10:11:24 +00:00
tmp21 = ! require ( 1136 ) /* getDefaultIdleNavigationSpanOptions */ . isSentryInteractionSpan ( activeSpan ) ;
const obj5 = require ( 1136 ) /* getDefaultIdleNavigationSpanOptions */ ;
2026-07-20 16:05:17 +00:00
}
if ( activeSpan ) {
if ( tmp21 ) {
2026-07-23 10:11:24 +00:00
const debug7 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal8 = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug7 . warn ( "[" + "UserInteraction" + "] Did not create " + op + " transaction because active transaction " + require ( 794 ) /* registerSpanErrorInstrumentation */ . spanToJSON ( activeSpan ) . description + " exists on the scope." ) ;
const obj15 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
}
const _HermesInternal5 = HermesInternal ;
const combined = "" + currentReactNativeTracingIntegration . state . currentRoute + "." + elementId ;
if ( activeSpan ) {
if ( obj6 . spanToJSON ( activeSpan ) . description === combined ) {
if ( obj16 . spanToJSON ( activeSpan ) . op === op ) {
2026-07-23 10:11:24 +00:00
const debug5 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal6 = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug5 . warn ( "[" + "UserInteraction" + "] Did not create " + op + " transaction because it the same transaction " + require ( 794 ) /* registerSpanErrorInstrumentation */ . spanToJSON ( activeSpan ) . description + " already exists on the scope." ) ;
const obj7 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj16 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj6 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const currentScope = require ( 794 ) /* registerSpanErrorInstrumentation */ . getCurrentScope ( ) ;
2026-07-20 16:05:17 +00:00
obj = { name : combined , op , scope : currentScope } ;
2026-07-23 10:11:24 +00:00
const obj8 = require ( 794 ) /* registerSpanErrorInstrumentation */ ;
const result = require ( 1136 ) /* getDefaultIdleNavigationSpanOptions */ . clearActiveSpanFromScope ( currentScope ) ;
const obj10 = require ( 1136 ) /* getDefaultIdleNavigationSpanOptions */ ;
2026-07-20 16:05:17 +00:00
obj = { idleTimeout : currentReactNativeTracingIntegration . options . idleTimeoutMs , finalTimeout : currentReactNativeTracingIntegration . options . finalTimeoutMs } ;
2026-07-23 10:11:24 +00:00
const startIdleSpanResult = require ( 1136 ) /* getDefaultIdleNavigationSpanOptions */ . startIdleSpan ( obj , obj ) ;
const attr = startIdleSpanResult . setAttribute ( require ( 794 ) /* registerSpanErrorInstrumentation */ . SEMANTIC _ATTRIBUTE _SENTRY _ORIGIN , require ( 1134 ) . SPAN _ORIGIN _MANUAL _INTERACTION ) ;
const obj11 = require ( 1136 ) /* getDefaultIdleNavigationSpanOptions */ ;
const result1 = require ( 1137 ) /* discardEmptyNavigationSpan */ . onlySampleIfChildSpans ( client , startIdleSpanResult ) ;
const debug6 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal7 = HermesInternal ;
debug6 . log ( "[" + "UserInteraction" + "] User Interaction Tracing Created " + op + " transaction " + combined + "." ) ;
return startIdleSpanResult ;
} else {
const debug4 = obj4 . debug ;
const _HermesInternal4 = HermesInternal ;
debug4 . log ( "[" + "UserInteraction" + "] User Interaction Tracing can not create transaction without a current route." ) ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug3 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal3 = HermesInternal ;
debug3 . log ( "[" + "UserInteraction" + "] User Interaction Tracing can not create transaction with undefined elementId." ) ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug2 = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
debug2 . log ( "[" + "UserInteraction" + "] User Interaction Tracing is disabled." ) ;
}
} else {
2026-07-23 10:11:24 +00:00
const debug = require ( 794 ) /* registerSpanErrorInstrumentation */ . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
debug . log ( "[" + "UserInteraction" + "] Tracing integration is not available. Can not start user interaction span." ) ;
}
2026-07-23 10:11:24 +00:00
const obj3 = require ( 1142 ) /* getDefaultTracePropagationTargets */ ;
2026-07-20 16:05:17 +00:00
}
} ;