2026-07-20 16:05:17 +00:00
// Module ID: 1143
2026-07-25 08:10:48 +00:00
// Function ID: 13030
2026-07-20 16:05:17 +00:00
// Name: isDeadlineExceeded
2026-07-23 10:11:24 +00:00
// Dependencies: [77, 1144, 794, 977, 1131, 1132, 1134, 1136, 1145, 1133]
2026-07-20 16:05:17 +00:00
// Exports: timeToDisplayIntegration
// Module 1143 (isDeadlineExceeded)
2026-07-23 10:11:24 +00:00
import _defineProperty from "_defineProperty" ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
let fn = this ;
if ( this ) {
fn = this . _ _awaiter ;
}
if ( ! fn ) {
fn = ( arg0 , arg1 , arg2 , arg3 ) => {
let _Promise = arg2 ;
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
let closure _1 = arg1 ;
let closure _3 = arg3 ;
2026-07-20 16:05:17 +00:00
if ( ! arg2 ) {
_Promise = Promise ;
}
_Promise = new _Promise ( ( arg0 , arg1 ) => {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
let closure _1 = arg1 ;
2026-07-20 16:05:17 +00:00
function fulfilled ( arg0 ) {
step ( iter . next ( arg0 ) ) ;
}
2026-07-23 10:11:24 +00:00
let iter = function rejected ( arg0 ) {
2026-07-20 16:05:17 +00:00
step ( iter . throw ( arg0 ) ) ;
} ;
function step ( iter ) {
if ( iter . done ) {
2026-07-23 10:11:24 +00:00
callback ( iter . value ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
( function adopt ( value ) {
2026-07-20 16:05:17 +00:00
let tmp = value ;
2026-07-23 10:11:24 +00:00
let closure _0 = value ;
if ( ! ( value instanceof fulfilled ) ) {
const prototype = fulfilled . prototype ;
tmp = new fulfilled ( ( arg0 ) => {
arg0 ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( iter . value ) . then ( fulfilled , iter ) ;
const promise = ( function adopt ( value ) {
2026-07-20 16:05:17 +00:00
let tmp = value ;
2026-07-23 10:11:24 +00:00
let closure _0 = value ;
if ( ! ( value instanceof fulfilled ) ) {
const prototype = fulfilled . prototype ;
tmp = new fulfilled ( ( arg0 ) => {
arg0 ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( iter . value ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
let items = closure _1 ;
if ( ! closure _1 ) {
2026-07-20 16:05:17 +00:00
items = [ ] ;
}
2026-07-23 10:11:24 +00:00
iter = iter . apply ( closure _0 , items ) ;
2026-07-20 16:05:17 +00:00
step ( iter . next ( ) ) ;
} ) ;
return _Promise ;
} ;
}
2026-07-23 10:11:24 +00:00
const TimeToDisplay = "TimeToDisplay" ;
2026-07-20 16:05:17 +00:00
function isDeadlineExceeded ( arg0 ) {
return arg0 > 30000 ;
}
export const INTEGRATION _NAME = "TimeToDisplay" ;
export const timeToDisplayIntegration = function timeToDisplayIntegration ( ) {
2026-07-23 10:11:24 +00:00
let c0 = false ;
2026-07-20 16:05:17 +00:00
return {
2026-07-23 10:11:24 +00:00
name : TimeToDisplay ,
2026-07-20 16:05:17 +00:00
afterAllSetup ( getIntegrationByName ) {
2026-07-23 10:11:24 +00:00
const reactNavigationIntegration = callback ( outer1 _1 [ 1 ] ) . getReactNavigationIntegration ( getIntegrationByName ) ;
2026-07-20 16:05:17 +00:00
let prop ;
if ( null !== reactNavigationIntegration ) {
if ( undefined !== reactNavigationIntegration ) {
prop = reactNavigationIntegration . options . enableTimeToInitialDisplayForPreloadedRoutes ;
}
}
2026-07-23 10:11:24 +00:00
let closure _0 = null !== prop && undefined !== prop && prop ;
2026-07-20 16:05:17 +00:00
} ,
processEvent ( arg0 ) {
let closure _0 = arg0 ;
2026-07-23 10:11:24 +00:00
return outer1 _3 ( undefined , undefined , undefined , function * ( ) {
if ( "transaction" !== outer1 _0 . type ) {
return outer1 _0 ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let contexts = outer1 _0 . contexts ;
2026-07-20 16:05:17 +00:00
let trace ;
if ( null !== contexts ) {
if ( undefined !== contexts ) {
trace = contexts . trace ;
}
}
let span _id ;
if ( null !== trace ) {
if ( undefined !== trace ) {
span _id = trace . span _id ;
}
}
if ( span _id ) {
2026-07-23 10:11:24 +00:00
let start _timestamp = outer1 _0 . start _timestamp ;
2026-07-20 16:05:17 +00:00
if ( start _timestamp ) {
2026-07-23 10:11:24 +00:00
let spans = outer1 _0 . spans ;
2026-07-20 16:05:17 +00:00
if ( ! spans ) {
spans = [ ] ;
}
2026-07-23 10:11:24 +00:00
outer1 _0 . spans = spans ;
let measurements = outer1 _0 . measurements ;
2026-07-20 16:05:17 +00:00
if ( ! measurements ) {
measurements = { } ;
}
2026-07-23 10:11:24 +00:00
outer1 _0 . measurements = measurements ;
let obj = { event : outer1 _0 , rootSpanId : span _id , transactionStartTimestampSeconds : start _timestamp , enableTimeToInitialDisplayForPreloadedRoutes : closure _0 } ;
const tmp20 = yield ( function addTimeToInitialDisplay ( arg0 ) {
let closure _1 ;
let _defineProperty ;
let closure _3 ;
let closure _4 ;
( { event : closure _1 , rootSpanId : _defineProperty , transactionStartTimestampSeconds : closure _3 , enableTimeToInitialDisplayForPreloadedRoutes : closure _4 } = arg0 ) ;
return outer4 _3 ( this , undefined , undefined , function * ( ) {
2026-07-20 16:05:17 +00:00
let concat ;
2026-07-23 10:11:24 +00:00
let NATIVE = callback ( outer6 _1 [ 3 ] ) . NATIVE ;
2026-07-20 16:05:17 +00:00
let str7Result = globalThis ;
2026-07-23 10:11:24 +00:00
const tmp3 = yield NATIVE . popTimeToDisplayFor ( "ttid-" + outer1 _2 ) ;
let spans = outer1 _1 . spans ;
2026-07-20 16:05:17 +00:00
if ( ! spans ) {
spans = [ ] ;
}
2026-07-23 10:11:24 +00:00
outer1 _1 . spans = spans ;
spans = outer1 _1 . spans ;
let outer1 _0 = spans ;
2026-07-20 16:05:17 +00:00
let found ;
if ( null !== spans ) {
2026-07-23 10:11:24 +00:00
if ( concat !== outer1 _0 ) {
found = outer1 _0 . find ( ( ) => { ... } ) ;
2026-07-20 16:05:17 +00:00
}
}
if ( found ) {
if ( concat === found . status ) {
if ( ! tmp3 ) {
2026-07-23 10:11:24 +00:00
let debug = callback ( outer6 _1 [ 2 ] ) . debug ;
let _HermesInternal = HermesInternal ;
debug . log ( "[" + outer6 _4 + "] Ttid span already exists and is ok." , found ) ;
2026-07-20 16:05:17 +00:00
return found ;
}
}
}
if ( ! tmp3 ) {
2026-07-23 10:11:24 +00:00
let debug2 = callback ( outer6 _1 [ 2 ] ) . debug ;
let _HermesInternal2 = HermesInternal ;
debug2 . log ( "[" + outer6 _4 + "] No manual ttid end timestamp found for span " + outer1 _2 + "." ) ;
let obj = { event : outer1 _1 , rootSpanId : outer1 _2 , transactionStartTimestampSeconds : outer1 _3 , enableTimeToInitialDisplayForPreloadedRoutes : outer1 _4 } ;
( function addAutomaticTimeToInitialDisplay ( ) { ... } ) ( obj ) ;
2026-07-20 16:05:17 +00:00
}
let str7 = null == found ;
let status ;
if ( ! str7 ) {
status = found . status ;
}
if ( ! status ) {
2026-07-23 10:11:24 +00:00
obj = { op : callback ( outer6 _1 [ 4 ] ) . UI _LOAD _INITIAL _DISPLAY , description : "Time To Initial Display" , start _timestamp : outer1 _3 , timestamp : tmp3 , origin : callback ( outer6 _1 [ 6 ] ) . SPAN _ORIGIN _MANUAL _UI _TIME _TO _DISPLAY , parent _span _id : outer1 _2 , data : outer6 _2 ( { } , callback ( outer6 _1 [ 7 ] ) . SPAN _THREAD _NAME , callback ( outer6 _1 [ 7 ] ) . SPAN _THREAD _NAME _JAVASCRIPT ) } ;
let spanJSON = callback ( outer6 _1 [ 5 ] ) . createSpanJSON ( obj ) ;
const debug3 = callback ( outer6 _1 [ 2 ] ) . debug ;
let _HermesInternal3 = HermesInternal ;
debug3 . log ( "[" + outer6 _4 + "] Added ttid span to transaction." , spanJSON ) ;
const spans1 = outer1 _1 . spans ;
2026-07-20 16:05:17 +00:00
spans1 . push ( spanJSON ) ;
2026-07-23 10:11:24 +00:00
let obj2 = callback ( outer6 _1 [ 5 ] ) ;
2026-07-20 16:05:17 +00:00
} else {
str7 = "ok" ;
}
found . status = str7 ;
found . timestamp = tmp3 ;
2026-07-23 10:11:24 +00:00
const debug4 = callback ( outer6 _1 [ 2 ] ) . debug ;
2026-07-20 16:05:17 +00:00
str7 = debug4 . log ;
concat = str7Result . HermesInternal . concat ;
2026-07-23 10:11:24 +00:00
str7Result = str7 ( concat ( outer6 _4 , "] Updated existing ttid span." ) , found ) ;
2026-07-20 16:05:17 +00:00
spanJSON = found ;
} ) ;
2026-07-23 10:11:24 +00:00
} ) ( obj ) ;
obj = { event : outer1 _0 , rootSpanId : span _id , transactionStartTimestampSeconds : start _timestamp , ttidSpan : tmp20 } ;
const tmp22 = yield ( function addTimeToFullDisplay ( arg0 ) {
let closure _1 ;
let _defineProperty ;
let closure _3 ;
let closure _4 ;
( { event : closure _1 , rootSpanId : _defineProperty , transactionStartTimestampSeconds : closure _3 , ttidSpan : closure _4 } = arg0 ) ;
return outer4 _3 ( this , undefined , undefined , function * ( ) {
const NATIVE = callback ( outer6 _1 [ 3 ] ) . NATIVE ;
const tmp = yield NATIVE . popTimeToDisplayFor ( "ttfd-" + outer1 _2 ) ;
if ( outer1 _4 ) {
2026-07-20 16:05:17 +00:00
if ( tmp ) {
2026-07-23 10:11:24 +00:00
let spans = outer1 _1 . spans ;
2026-07-20 16:05:17 +00:00
if ( ! spans ) {
spans = [ ] ;
}
2026-07-23 10:11:24 +00:00
outer1 _1 . spans = spans ;
spans = outer1 _1 . spans ;
const outer1 _0 = spans ;
2026-07-20 16:05:17 +00:00
let found ;
if ( null !== spans ) {
2026-07-23 10:11:24 +00:00
if ( undefined !== outer1 _0 ) {
found = outer1 _0 . find ( ( ) => { ... } ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
let timestamp = outer1 _4 . timestamp ;
2026-07-20 16:05:17 +00:00
if ( timestamp ) {
2026-07-23 10:11:24 +00:00
timestamp = tmp < outer1 _4 . timestamp ;
2026-07-20 16:05:17 +00:00
}
if ( timestamp ) {
2026-07-23 10:11:24 +00:00
timestamp = outer1 _4 . timestamp ;
2026-07-20 16:05:17 +00:00
}
let timestamp2 = tmp ;
if ( timestamp ) {
2026-07-23 10:11:24 +00:00
timestamp2 = outer1 _4 . timestamp ;
2026-07-20 16:05:17 +00:00
}
let status ;
2026-07-23 10:11:24 +00:00
const result = 1000 * ( timestamp2 - outer1 _3 ) ;
2026-07-20 16:05:17 +00:00
if ( null != found ) {
status = found . status ;
}
if ( status ) {
if ( "ok" !== found . status ) {
found . status = "ok" ;
found . timestamp = timestamp2 ;
2026-07-23 10:11:24 +00:00
const debug2 = callback ( outer6 _1 [ 2 ] ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug2 . log ( "[" + outer6 _4 + "] Updated existing ttfd span." , found ) ;
2026-07-20 16:05:17 +00:00
let spanJSON = found ;
}
return spanJSON ;
}
2026-07-23 10:11:24 +00:00
let obj = callback ( outer6 _1 [ 5 ] ) ;
2026-07-20 16:05:17 +00:00
obj = { } ;
let str2 = "ok" ;
2026-07-23 10:11:24 +00:00
if ( outer6 _5 ( result ) ) {
2026-07-20 16:05:17 +00:00
str2 = "deadline_exceeded" ;
}
obj . status = str2 ;
2026-07-23 10:11:24 +00:00
obj . op = callback ( outer6 _1 [ 4 ] ) . UI _LOAD _FULL _DISPLAY ;
2026-07-20 16:05:17 +00:00
obj . description = "Time To Full Display" ;
2026-07-23 10:11:24 +00:00
obj . start _timestamp = outer1 _3 ;
2026-07-20 16:05:17 +00:00
obj . timestamp = timestamp2 ;
2026-07-23 10:11:24 +00:00
obj . origin = callback ( outer6 _1 [ 6 ] ) . SPAN _ORIGIN _MANUAL _UI _TIME _TO _DISPLAY ;
obj . parent _span _id = outer1 _2 ;
obj . data = outer6 _2 ( { } , callback ( outer6 _1 [ 7 ] ) . SPAN _THREAD _NAME , callback ( outer6 _1 [ 7 ] ) . SPAN _THREAD _NAME _JAVASCRIPT ) ;
2026-07-20 16:05:17 +00:00
spanJSON = obj . createSpanJSON ( obj ) ;
2026-07-23 10:11:24 +00:00
const debug = callback ( outer6 _1 [ 2 ] ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
2026-07-23 10:11:24 +00:00
debug . log ( "[" + outer6 _4 + "] Added ttfd span to transaction." , spanJSON ) ;
const spans1 = outer1 _1 . spans ;
2026-07-20 16:05:17 +00:00
spans1 . push ( spanJSON ) ;
2026-07-23 10:11:24 +00:00
const tmp2 = outer1 _1 ;
2026-07-20 16:05:17 +00:00
}
}
} ) ;
2026-07-23 10:11:24 +00:00
} ) ( obj ) ;
2026-07-20 16:05:17 +00:00
start _timestamp = undefined ;
if ( null != tmp20 ) {
start _timestamp = tmp20 . start _timestamp ;
}
if ( start _timestamp ) {
let timestamp ;
if ( null != tmp20 ) {
timestamp = tmp20 . timestamp ;
}
start _timestamp = timestamp ;
}
if ( start _timestamp ) {
const obj1 = { value : 1000 * ( tmp20 . timestamp - tmp20 . start _timestamp ) , unit : "millisecond" } ;
2026-07-23 10:11:24 +00:00
outer1 _0 . measurements . time _to _initial _display = obj1 ;
2026-07-20 16:05:17 +00:00
}
let start _timestamp1 ;
if ( null != tmp22 ) {
start _timestamp1 = tmp22 . start _timestamp ;
}
if ( start _timestamp1 ) {
let timestamp1 ;
if ( null != tmp22 ) {
timestamp1 = tmp22 . timestamp ;
}
if ( timestamp1 ) {
2026-07-23 10:11:24 +00:00
let result = 1000 * ( tmp22 . timestamp - tmp22 . start _timestamp ) ;
measurements = outer1 _0 . measurements ;
if ( outer3 _5 ( result ) ) {
2026-07-20 16:05:17 +00:00
if ( measurements . time _to _initial _display ) {
2026-07-23 10:11:24 +00:00
outer1 _0 . measurements . time _to _full _display = outer1 _0 . measurements . time _to _initial _display ;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-23 10:11:24 +00:00
let obj2 = { value : result , unit : "millisecond" } ;
2026-07-20 16:05:17 +00:00
measurements . time _to _full _display = obj2 ;
}
}
}
let timestamp2 ;
if ( null != tmp20 ) {
timestamp2 = tmp20 . timestamp ;
}
let num6 = - 1 ;
if ( null !== timestamp2 ) {
num6 = - 1 ;
if ( undefined !== timestamp2 ) {
num6 = timestamp2 ;
}
}
let timestamp3 ;
if ( null != tmp22 ) {
timestamp3 = tmp22 . timestamp ;
}
let num7 = - 1 ;
if ( null !== timestamp3 ) {
num7 = - 1 ;
if ( undefined !== timestamp3 ) {
num7 = timestamp3 ;
}
}
2026-07-23 10:11:24 +00:00
timestamp = outer1 _0 . timestamp ;
2026-07-20 16:05:17 +00:00
let num8 = - 1 ;
if ( null !== timestamp ) {
num8 = - 1 ;
if ( undefined !== timestamp ) {
num8 = timestamp ;
}
}
const bound = Math . max ( num6 , num7 , num8 ) ;
if ( - 1 !== bound ) {
2026-07-23 10:11:24 +00:00
outer1 _0 . timestamp = bound ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
return outer1 _0 ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let debug2 = callback ( outer3 _1 [ 2 ] ) . debug ;
let _HermesInternal2 = HermesInternal ;
debug2 . warn ( "[" + outer3 _4 + "] No transaction start timestamp found in transaction." ) ;
return outer1 _0 ;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-23 10:11:24 +00:00
let debug = callback ( outer3 _1 [ 2 ] ) . debug ;
let _HermesInternal = HermesInternal ;
debug . warn ( "[" + outer3 _4 + "] No root span id found in transaction." ) ;
return outer1 _0 ;
2026-07-20 16:05:17 +00:00
}
}
} ) ;
}
} ;
} ;