2026-07-20 16:05:17 +00:00
// Module ID: 1183
2026-07-25 08:10:48 +00:00
// Function ID: 13483
2026-07-20 16:05:17 +00:00
// Name: warn
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 27, 978, 794, 42]
2026-07-20 16:05:17 +00:00
// Module 1183 (warn)
2026-07-23 10:11:24 +00:00
import result from "result" ;
import get _ActivityIndicator from "get ActivityIndicator" ;
import isHermesEnabled from "isHermesEnabled" ;
import { debug } from "registerSpanErrorInstrumentation" ;
let closure _1 ;
let closure _2 ;
( { UIManager : closure _1 , View : closure _2 } = get _ActivityIndicator ) ;
2026-07-20 16:05:17 +00:00
function warn ( arg0 ) {
2026-07-23 10:11:24 +00:00
let result = arg0 ;
2026-07-20 16:05:17 +00:00
const timerId = setTimeout ( ( ) => {
2026-07-23 10:11:24 +00:00
console . warn ( "[SentrySessionReplay] " + result + " component is not supported on the current platform. If " + result + " should be supported, please ensure that the application build is up to date." ) ;
2026-07-20 16:05:17 +00:00
} , 0 ) ;
}
class MaskFallback {
constructor ( arg0 ) {
tmp = warn ( "Mask" ) ;
2026-07-23 10:11:24 +00:00
return result . createElement ( View , Object . assign ( { } , global ) ) ;
2026-07-20 16:05:17 +00:00
}
}
class UnmaskFallback {
constructor ( arg0 ) {
tmp = warn ( "Unmask" ) ;
2026-07-23 10:11:24 +00:00
return result . createElement ( View , Object . assign ( { } , global ) ) ;
2026-07-20 16:05:17 +00:00
}
}
function hasViewManagerConfig ( RNSentryReplayMask ) {
2026-07-23 10:11:24 +00:00
hasViewManagerConfig = hasViewManagerConfig . hasViewManagerConfig ;
2026-07-20 16:05:17 +00:00
let callResult ;
if ( null !== hasViewManagerConfig ) {
if ( undefined !== hasViewManagerConfig ) {
callResult = hasViewManagerConfig . call ( hasViewManagerConfig , RNSentryReplayMask ) ;
}
}
return callResult ;
}
2026-07-23 10:11:24 +00:00
if ( ! isHermesEnabled . isExpoGo ( ) ) {
2026-07-20 16:05:17 +00:00
if ( hasViewManagerConfig ( "RNSentryReplayMask" ) ) {
2026-07-23 10:11:24 +00:00
let value = require ( "get" ) . get ( "RNSentryReplayMask" , ( ) => ( { uiViewClassName : "RNSentryReplayMask" } ) ) ;
const obj2 = require ( "get" ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! obj3 . isExpoGo ( ) ) {
if ( hasViewManagerConfig ( "RNSentryReplayUnmask" ) ) {
2026-07-23 10:11:24 +00:00
value = require ( "get" ) . get ( "RNSentryReplayUnmask" , ( ) => ( { uiViewClassName : "RNSentryReplayUnmask" } ) ) ;
const obj4 = require ( "get" ) ;
2026-07-20 16:05:17 +00:00
}
exports . Mask = value ;
exports . Unmask = value ;
exports . MaskFallback = MaskFallback ;
exports . UnmaskFallback = UnmaskFallback ;
}
2026-07-23 10:11:24 +00:00
const debug2 = require ( "registerSpanErrorInstrumentation" ) . debug ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
debug2 . warn ( "[SentrySessionReplay] Can't load " + "RNSentryReplayUnmask" + "." ) ;
value = UnmaskFallback ;
2026-07-23 10:11:24 +00:00
obj3 = require ( "isHermesEnabled" ) ;
2026-07-20 16:05:17 +00:00
}
debug . warn ( "[SentrySessionReplay] Can't load " + "RNSentryReplayMask" + "." ) ;
value = MaskFallback ;