2026-07-29 08:29:29 +00:00
// Module ID: 1197
// Function ID: 1198
// Name: _isNativeReflectConstruct
// Dependencies: [93, 95, 98, 41, 42, 1198, 1002, 817]
// Exports: hideFeedbackButton, hideScreenshotButton, resetFeedbackButtonManager, resetFeedbackWidgetManager, resetScreenshotButtonManager, showFeedbackButton, showFeedbackWidget, showScreenshotButton
// Module 1197 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import closure _2 from "_possibleConstructorReturn" /* 93 */ ;
import closure _3 from "_getPrototypeOf" /* 95 */ ;
import importDefaultResult from "_inherits" /* 98 */ ;
import closure _4 from "_classCallCheck" /* 41 */ ;
import importDefaultResult1 from "_createClass" /* 42 */ ;
2026-07-29 08:29:29 +00:00
let ScreenshotButtonManager = arg1 ;
function _isNativeReflectConstruct ( ) {
try {
const _Boolean = Boolean ;
const call = valueOf . call ;
const _Reflect = Reflect ;
const _Boolean2 = Boolean ;
if ( typeof call === "unknown" ) {
let callResult = valueOf ( ) ;
} else {
callResult = call ( constructResult ) ;
}
2026-08-24 06:08:38 +00:00
closure _0 = ! callResult ;
_isNativeReflectConstruct = function _isNativeReflectConstruct ( ) {
2026-07-29 08:29:29 +00:00
return closure _0 ;
2026-08-24 06:08:38 +00:00
} ;
2026-07-29 08:29:29 +00:00
return _isNativeReflectConstruct ( ) ;
} catch ( err ) {
}
}
function NOOP _SET _VISIBILITY ( ) {
}
class FeedbackManager {
constructor ( ) {
2026-08-24 06:08:38 +00:00
tmp = closure _4 ( this , ScreenshotButtonManager ) ;
2026-07-29 08:29:29 +00:00
return ;
}
}
ScreenshotButtonManager = FeedbackManager ;
let obj = {
key : "_feedbackComponentName" ,
get ( ) {
2026-08-24 06:08:38 +00:00
error = new Error ( "Subclasses must override feedbackComponentName" ) ;
2026-07-29 08:29:29 +00:00
throw error ;
}
} ;
const items = [
obj ,
{
key : "initialize" ,
value : function initialize ( _setVisibility ) {
this . _setVisibility = _setVisibility ;
}
} ,
{
key : "reset" ,
value : function reset ( ) {
}
} ,
{
key : "show" ,
value : function show ( ) {
const self = this ;
if ( this . _setVisibility !== NOOP _SET _VISIBILITY ) {
self . _isVisible = true ;
self . _setVisibility ( true ) ;
} else {
const _console = console ;
const _HermesInternal = HermesInternal ;
console . warn ( "[Sentry] " + self . _feedbackComponentName + " requires 'Sentry.wrap(RootComponent)' to be called before 'show" + self . _feedbackComponentName + "()'." ) ;
}
}
} ,
{
key : "hide" ,
value : function hide ( ) {
const self = this ;
if ( this . _setVisibility !== NOOP _SET _VISIBILITY ) {
self . _isVisible = false ;
self . _setVisibility ( false ) ;
} else {
const _console = console ;
const _HermesInternal = HermesInternal ;
console . warn ( "[Sentry] " + self . _feedbackComponentName + " requires 'Sentry.wrap(RootComponent)' before interacting with the widget." ) ;
}
}
} ,
{
key : "isFormVisible" ,
value : function isFormVisible ( ) {
return this . _isVisible ;
}
}
] ;
const importDefaultResult1Result = importDefaultResult1 ( FeedbackManager , null , items ) ;
importDefaultResult1Result . _isVisible = false ;
class FeedbackWidgetManager {
constructor ( ) {
self = this ;
2026-08-24 06:08:38 +00:00
tmp = closure _4 ( this , ScreenshotButtonManager ) ;
tmp2 = closure _3 ;
obj = closure _3 ( ScreenshotButtonManager ) ;
tmp3 = closure _2 ;
2026-07-29 08:29:29 +00:00
if ( _isNativeReflectConstruct ( ) ) {
tmp7 = globalThis ;
_Reflect = Reflect ;
tmp8 = arguments ;
constructResult = Reflect . construct ( obj , arguments , tmp2 ( self ) . constructor ) ;
} else {
tmp4 = arguments ;
tmp5 = arguments ;
constructResult = obj ( ... arguments ) ;
}
return tmp3 ( self , constructResult ) ;
}
}
ScreenshotButtonManager = FeedbackWidgetManager ;
importDefaultResult ( FeedbackWidgetManager , importDefaultResult1Result ) ;
obj = {
key : "_feedbackComponentName" ,
get ( ) {
return "FeedbackWidget" ;
}
} ;
const items1 = [ obj ] ;
const importDefaultResult1Result1 = importDefaultResult1 ( FeedbackWidgetManager , null , items1 ) ;
class FeedbackButtonManager {
constructor ( ) {
self = this ;
2026-08-24 06:08:38 +00:00
tmp = closure _4 ( this , ScreenshotButtonManager ) ;
tmp2 = closure _3 ;
obj = closure _3 ( ScreenshotButtonManager ) ;
tmp3 = closure _2 ;
2026-07-29 08:29:29 +00:00
if ( _isNativeReflectConstruct ( ) ) {
tmp7 = globalThis ;
_Reflect = Reflect ;
tmp8 = arguments ;
constructResult = Reflect . construct ( obj , arguments , tmp2 ( self ) . constructor ) ;
} else {
tmp4 = arguments ;
tmp5 = arguments ;
constructResult = obj ( ... arguments ) ;
}
return tmp3 ( self , constructResult ) ;
}
}
ScreenshotButtonManager = FeedbackButtonManager ;
importDefaultResult ( FeedbackButtonManager , importDefaultResult1Result ) ;
obj = {
key : "_feedbackComponentName" ,
get ( ) {
return "FeedbackButton" ;
}
} ;
const items2 = [ obj ] ;
const importDefaultResult1Result2 = importDefaultResult1 ( FeedbackButtonManager , null , items2 ) ;
class ScreenshotButtonManager {
constructor ( ) {
self = this ;
2026-08-24 06:08:38 +00:00
tmp = closure _4 ( this , ScreenshotButtonManager ) ;
tmp2 = closure _3 ;
obj = closure _3 ( ScreenshotButtonManager ) ;
tmp3 = closure _2 ;
2026-07-29 08:29:29 +00:00
if ( _isNativeReflectConstruct ( ) ) {
tmp7 = globalThis ;
_Reflect = Reflect ;
tmp8 = arguments ;
constructResult = Reflect . construct ( obj , arguments , tmp2 ( self ) . constructor ) ;
} else {
tmp4 = arguments ;
tmp5 = arguments ;
constructResult = obj ( ... arguments ) ;
}
return tmp3 ( self , constructResult ) ;
}
}
importDefaultResult ( ScreenshotButtonManager , importDefaultResult1Result ) ;
const items3 = [
{
key : "_feedbackComponentName" ,
get ( ) {
return "ScreenshotButton" ;
}
}
] ;
const importDefaultResult1Result3 = importDefaultResult1 ( ScreenshotButtonManager , null , items3 ) ;
export const PULL _DOWN _CLOSE _THRESHOLD = 200 ;
export const SLIDE _ANIMATION _DURATION = 200 ;
export const BACKGROUND _ANIMATION _DURATION = 200 ;
export const FeedbackWidgetManager = importDefaultResult1Result1 ;
export const FeedbackButtonManager = importDefaultResult1Result2 ;
export const ScreenshotButtonManager = importDefaultResult1Result3 ;
export const showFeedbackButton = ( ) => {
const result = ScreenshotButtonManager ( 1198 ) . lazyLoadAutoInjectFeedbackButtonIntegration ( ) ;
importDefaultResult1Result2 . show ( ) ;
} ;
export const hideFeedbackButton = ( ) => {
importDefaultResult1Result2 . hide ( ) ;
} ;
export const showFeedbackWidget = ( ) => {
const result = ScreenshotButtonManager ( 1198 ) . lazyLoadAutoInjectFeedbackIntegration ( ) ;
importDefaultResult1Result1 . show ( ) ;
} ;
export const showScreenshotButton = ( ) => {
if ( obj . isWeb ( ) ) {
const debug = tmp ( 817 ) . debug ;
debug . warn ( "ScreenshotButton is not supported on Web." ) ;
} else {
const result = tmp ( 1198 ) . lazyLoadAutoInjectScreenshotButtonIntegration ( ) ;
importDefaultResult1Result3 . show ( ) ;
const tmpResult = tmp ( 1198 ) ;
}
} ;
export const hideScreenshotButton = ( ) => {
importDefaultResult1Result3 . hide ( ) ;
} ;
export const resetFeedbackButtonManager = ( ) => {
importDefaultResult1Result2 . reset ( ) ;
} ;
export const resetFeedbackWidgetManager = ( ) => {
importDefaultResult1Result1 . reset ( ) ;
} ;
export const resetScreenshotButtonManager = ( ) => {
importDefaultResult1Result3 . reset ( ) ;
} ;