2026-07-20 16:05:17 +00:00
// Module ID: 1617
2026-07-25 08:10:48 +00:00
// Function ID: 17933
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1618, 31, 27, 33, 1585, 1636, 44, 1677, 1678, 1686, 1688, 1626, 1607, 1689, 1691, 1685, 1669, 1622, 1611, 1593, 1695, 1610, 1679, 1681, 1696, 1697, 1698, 1720, 1721]
2026-07-20 16:05:17 +00:00
// Exports: createAnimatedComponent
// Module 1617 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import result from "result" ;
import getActivityIndicator from "get ActivityIndicator" ;
import setAndForwardRef from "setAndForwardRef" ;
import isWorkletFunction from "isWorkletFunction" ;
import isWorkletEventHandler from "isWorkletEventHandler" ;
import startObservingProgress from "startObservingProgress" ;
import module _1698 from "module_1698" ;
import get _ActivityIndicator from "flattenArray" ;
import { jsx } from "getCurrentReactOwner" ;
import isJest from "isJest" ;
import isJest from "isJest" ;
import isJest from "isJest" ;
import isJest from "isJest" ;
2026-07-20 16:05:17 +00:00
let Platform ;
2026-07-23 10:11:24 +00:00
let closure _10 ;
let closure _9 ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct ( ) {
let closure _0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) => {
} ) ) ;
function _isNativeReflectConstruct ( ) {
return closure _0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
function filterOutAnimatedStyles ( arr ) {
if ( ! arr ) {
return arr ;
} else {
const _Array = Array ;
if ( Array . isArray ( arr ) ) {
const found = arr . filter ( ( arg0 ) => {
let tmp = arg0 ;
if ( arg0 ) {
tmp = "viewDescriptors" in arg0 ;
}
return ! tmp ;
} ) ;
let mapped = found . map ( ( arg0 ) => {
let tmp = arg0 ;
if ( Array . isArray ( arg0 ) ) {
2026-07-23 10:11:24 +00:00
tmp = outer1 _18 ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
} ) ;
} else {
mapped = arr ;
if ( null != arr ) {
mapped = arr ;
if ( arr . viewDescriptors ) {
mapped = { } ;
}
}
}
}
}
2026-07-23 10:11:24 +00:00
( { Platform , processColor : closure _9 , StyleSheet : closure _10 } = get _ActivityIndicator ) ;
isJest = isJest . isWeb ( ) ;
isJest = isJest . isJest ( ) ;
isJest = isJest . isReact19 ( ) ;
isJest = isJest . shouldBeUseWeb ( ) ;
if ( isJest ) {
let result = require ( "startWebLayoutAnimation" ) . configureWebLayoutAnimations ( ) ;
let obj5 = require ( "startWebLayoutAnimation" ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c16 = 0 ;
2026-07-20 16:05:17 +00:00
export const createAnimatedComponent = function createAnimatedComponent ( name ) {
2026-07-23 10:11:24 +00:00
const _require = name ;
2026-07-20 16:05:17 +00:00
const importDefault = arg1 ;
2026-07-23 10:11:24 +00:00
if ( ! isJest ) {
2026-07-20 16:05:17 +00:00
let tmp4 = "function" !== typeof name ;
if ( ! tmp4 ) {
tmp4 = name . prototype && name . prototype . isReactComponent ;
2026-07-23 10:11:24 +00:00
let tmp5 = name . prototype && name . prototype . isReactComponent ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let _HermesInternal = HermesInternal ;
importDefault ( 44 ) ( tmp4 , "Looks like you're passing a function component `" + name . name + "` to `createAnimatedComponent` function which supports only class components. Please wrap your function component with `React.forwardRef()` or use a class component instead." ) ;
let tmp3 = importDefault ( 44 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let tmp8 = ( ( Component ) => {
2026-07-20 16:05:17 +00:00
class AnimatedComponent {
constructor ( arg0 ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer2 _3 ( this , apply ) ;
2026-07-20 16:05:17 +00:00
items = [ ] ;
items [ 0 ] = Component ;
2026-07-23 10:11:24 +00:00
obj = outer2 _6 ( apply ) ;
tmp2 = outer2 _5 ;
if ( outer2 _17 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp4 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp5 = outer2 _6 ;
constructResult = Reflect . construct ( obj , items , outer2 _6 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj . apply ( self , items ) ;
}
tmp2Result = tmp2 ( self , constructResult ) ;
2026-07-23 10:11:24 +00:00
apply = tmp2Result ;
2026-07-20 16:05:17 +00:00
tmp2Result . _styles = null ;
tmp2Result . _isFirstRender = true ;
tmp2Result . jestAnimatedStyle = { value : { } } ;
tmp2Result . jestAnimatedProps = { value : { } } ;
tmp2Result . _componentRef = null ;
tmp2Result . _hasAnimatedRef = false ;
tmp2Result . _componentDOMRef = null ;
tmp2Result . _sharedElementTransition = null ;
2026-07-23 10:11:24 +00:00
tmp6 = closure _1 ( Component [ 12 ] ) ;
2026-07-20 16:05:17 +00:00
tmp6 = new tmp6 ( ) ;
tmp2Result . _jsPropsUpdater = tmp6 ;
2026-07-23 10:11:24 +00:00
inlinePropManager = new closure _0 ( Component [ 13 ] ) . InlinePropManager ( ) ;
2026-07-20 16:05:17 +00:00
tmp2Result . _InlinePropManager = inlinePropManager ;
2026-07-23 10:11:24 +00:00
propsFilter = new closure _0 ( Component [ 14 ] ) . PropsFilter ( ) ;
2026-07-20 16:05:17 +00:00
tmp2Result . _PropsFilter = propsFilter ;
2026-07-23 10:11:24 +00:00
tmp10 = + outer2 _16 ;
outer2 _16 = tmp10 + 1 ;
2026-07-20 16:05:17 +00:00
tmp2Result . reanimatedID = tmp10 ;
tmp2Result . _willUnmount = false ;
tmp2Result . _resolveComponentRef = ( getAnimatableRef ) => {
if ( getAnimatableRef ) {
if ( getAnimatableRef . getAnimatableRef ) {
2026-07-23 10:11:24 +00:00
closure _0 . _hasAnimatedRef = true ;
2026-07-20 16:05:17 +00:00
let animatableRef = getAnimatableRef . getAnimatableRef ( ) ;
}
return animatableRef ;
}
animatableRef = getAnimatableRef ;
2026-07-23 10:11:24 +00:00
if ( outer3 _15 ) {
2026-07-20 16:05:17 +00:00
if ( getAnimatableRef ) {
if ( getAnimatableRef . elementRef ) {
2026-07-23 10:11:24 +00:00
closure _0 . _componentDOMRef = getAnimatableRef . elementRef . current ;
2026-07-20 16:05:17 +00:00
animatableRef = getAnimatableRef ;
}
}
2026-07-23 10:11:24 +00:00
closure _0 . _componentDOMRef = getAnimatableRef ;
2026-07-20 16:05:17 +00:00
animatableRef = getAnimatableRef ;
}
} ;
obj = {
getForwardedRef ( ) {
return tmp2Result . props . forwardedRef ;
} ,
setLocalRef ( arg0 ) {
let entering ;
let sharedTransitionTag ;
if ( arg0 ) {
if ( arg0 !== tmp2Result . _componentRef ) {
tmp2Result . _componentRef = tmp2Result . _resolveComponentRef ( arg0 ) ;
tmp2Result . _viewInfo = undefined ;
}
const props = tmp2Result . props ;
( { entering , sharedTransitionTag } = props ) ;
2026-07-23 10:11:24 +00:00
if ( ! outer3 _15 ) {
const result = tmp2Result ( 1626 ) . enableLayoutAnimations ( true , false ) ;
const obj = tmp2Result ( 1626 ) ;
2026-07-20 16:05:17 +00:00
}
if ( sharedTransitionTag ) {
const result1 = tmp2Result . _configureSharedTransition ( ) ;
}
const context = tmp2Result . context ;
if ( null != context ) {
const current = context . current ;
}
let isFabricResult = ! entering ;
if ( ! isFabricResult ) {
2026-07-23 10:11:24 +00:00
isFabricResult = tmp2Result ( 1585 ) . isFabric ( ) ;
const obj2 = tmp2Result ( 1585 ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! isFabricResult ) {
isFabricResult = current ;
}
if ( ! isFabricResult ) {
2026-07-23 10:11:24 +00:00
isFabricResult = outer3 _12 ;
2026-07-20 16:05:17 +00:00
}
if ( ! isFabricResult ) {
2026-07-23 10:11:24 +00:00
const result2 = tmp2Result . _configureLayoutAnimation ( tmp2Result ( 1607 ) . LayoutAnimationType . ENTERING , tmp2Result . props . entering ) ;
2026-07-20 16:05:17 +00:00
}
}
}
} ;
2026-07-23 10:11:24 +00:00
tmp2Result . _setComponentRef = closure _1 ( Component [ 15 ] ) ( obj ) ;
if ( outer2 _13 ) {
2026-07-20 16:05:17 +00:00
obj1 = { } ;
obj1 . value = { } ;
tmp2Result . jestAnimatedStyle = obj1 ;
obj2 = { } ;
obj2 . value = { } ;
tmp2Result . jestAnimatedProps = obj2 ;
}
tmp2Result . state = { settledProps : { } , reanimatedProps : { } } ;
context = tmp2Result . context ;
current = undefined ;
if ( null != context ) {
current = context . current ;
}
2026-07-23 10:11:24 +00:00
obj6 = closure _0 ( Component [ 9 ] ) ;
2026-07-20 16:05:17 +00:00
tmp12 = obj6 . isFabric ( ) && ! current ;
if ( tmp12 ) {
2026-07-23 10:11:24 +00:00
tmp13 = closure _0 ;
tmp14 = Component ;
2026-07-20 16:05:17 +00:00
num = 17 ;
2026-07-23 10:11:24 +00:00
result = tmp2Result . _configureLayoutAnimation ( closure _0 ( Component [ 17 ] ) . LayoutAnimationType . ENTERING , tmp2Result . props . entering ) ;
2026-07-20 16:05:17 +00:00
}
return tmp2Result ;
}
}
2026-07-23 10:11:24 +00:00
outer1 _7 ( AnimatedComponent , Component ) ;
2026-07-20 16:05:17 +00:00
let obj = {
key : "componentDidMount" ,
value : function componentDidMount ( ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( ! outer2 _12 ) {
const NativeEventsManager = AnimatedComponent ( 1689 ) . NativeEventsManager ;
2026-07-20 16:05:17 +00:00
const prototype = NativeEventsManager . prototype ;
2026-07-23 10:11:24 +00:00
const nativeEventsManager = new NativeEventsManager ( self , outer1 _1 ) ;
2026-07-20 16:05:17 +00:00
self . _NativeEventsManager = nativeEventsManager ;
}
const _NativeEventsManager = self . _NativeEventsManager ;
if ( null != _NativeEventsManager ) {
_NativeEventsManager . attachEvents ( ) ;
}
const _jsPropsUpdater = self . _jsPropsUpdater ;
const result = _jsPropsUpdater . addOnJSPropsChangeListener ( self ) ;
const result1 = self . _attachAnimatedStyles ( ) ;
const _InlinePropManager = self . _InlinePropManager ;
_InlinePropManager . attachInlineProps ( self , self . _getViewInfo ( ) ) ;
const componentViewTag = self . getComponentViewTag ( ) ;
2026-07-23 10:11:24 +00:00
let isFabricResult = AnimatedComponent ( 1585 ) . isFabric ( ) ;
2026-07-20 16:05:17 +00:00
if ( isFabricResult ) {
isFabricResult = - 1 !== componentViewTag ;
}
if ( isFabricResult ) {
2026-07-23 10:11:24 +00:00
const PropsRegistryGarbageCollector = AnimatedComponent ( 1691 ) . PropsRegistryGarbageCollector ;
2026-07-20 16:05:17 +00:00
PropsRegistryGarbageCollector . registerView ( componentViewTag , self ) ;
}
if ( - 1 !== componentViewTag ) {
2026-07-23 10:11:24 +00:00
const ComponentRegistry = AnimatedComponent ( 1685 ) . ComponentRegistry ;
2026-07-20 16:05:17 +00:00
ComponentRegistry . register ( componentViewTag , self ) ;
}
2026-07-23 10:11:24 +00:00
const result2 = self . _configureLayoutAnimation ( AnimatedComponent ( 1607 ) . LayoutAnimationType . LAYOUT , self . props . layout ) ;
const result3 = self . _configureLayoutAnimation ( AnimatedComponent ( 1607 ) . LayoutAnimationType . EXITING , self . props . exiting ) ;
if ( outer2 _12 ) {
2026-07-20 16:05:17 +00:00
if ( self . _componentDOMRef ) {
const _componentDOMRef = self . _componentDOMRef ;
const dummyClone = _componentDOMRef . dummyClone ;
if ( null != dummyClone ) {
if ( dummyClone . firstChild ) {
_componentDOMRef . appendChild ( dummyClone . firstChild ) ;
while ( null != dummyClone ) {
if ( ! dummyClone . firstChild ) {
break ;
}
}
}
}
2026-07-23 10:11:24 +00:00
delete tmp . dummyClone ;
2026-07-20 16:05:17 +00:00
if ( self . props . exiting ) {
2026-07-23 10:11:24 +00:00
AnimatedComponent ( 1636 ) . saveSnapshot ( _componentDOMRef ) ;
const obj2 = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
}
if ( self . props . entering ) {
if ( obj3 . getReducedMotionFromConfig ( self . props . entering ) ) {
self . _isFirstRender = false ;
const entering = self . props . entering ;
const callbackV = entering . callbackV ;
if ( null != callbackV ) {
callbackV . call ( entering , true ) ;
}
} else {
const context = self . context ;
let current ;
if ( null != context ) {
current = context . current ;
}
if ( current ) {
if ( _componentDOMRef . style ) {
_componentDOMRef . style . visibility = "initial" ;
}
} else {
2026-07-23 10:11:24 +00:00
const result4 = AnimatedComponent ( 1636 ) . startWebLayoutAnimation ( self . props , _componentDOMRef , AnimatedComponent ( 1607 ) . LayoutAnimationType . ENTERING ) ;
const obj4 = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
obj3 = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
} else {
self . _isFirstRender = false ;
}
}
}
2026-07-23 10:11:24 +00:00
let _willUnmount = ! outer2 _15 ;
2026-07-20 16:05:17 +00:00
if ( _willUnmount ) {
2026-07-23 10:11:24 +00:00
_willUnmount = AnimatedComponent ( 1585 ) . isFabric ( ) ;
const obj5 = AnimatedComponent ( 1585 ) ;
2026-07-20 16:05:17 +00:00
}
if ( _willUnmount ) {
_willUnmount = self . _willUnmount ;
}
if ( _willUnmount ) {
_willUnmount = "number" === typeof componentViewTag ;
}
if ( _willUnmount ) {
2026-07-23 10:11:24 +00:00
const result5 = AnimatedComponent ( 1626 ) . unmarkNodeAsRemovable ( componentViewTag ) ;
const obj6 = AnimatedComponent ( 1626 ) ;
2026-07-20 16:05:17 +00:00
}
self . _isFirstRender = false ;
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , , , , , , , , , , , , , , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "componentWillUnmount" ,
value : function componentWillUnmount ( ) {
let _componentDOMRef ;
let props ;
const self = this ;
const _NativeEventsManager = this . _NativeEventsManager ;
if ( null != _NativeEventsManager ) {
_NativeEventsManager . detachEvents ( ) ;
}
const _jsPropsUpdater = self . _jsPropsUpdater ;
const result = _jsPropsUpdater . removeOnJSPropsChangeListener ( self ) ;
const componentViewTag = self . getComponentViewTag ( ) ;
2026-07-23 10:11:24 +00:00
let isFabricResult = AnimatedComponent ( 1585 ) . isFabric ( ) ;
2026-07-20 16:05:17 +00:00
if ( isFabricResult ) {
isFabricResult = - 1 !== componentViewTag ;
}
if ( isFabricResult ) {
2026-07-23 10:11:24 +00:00
const PropsRegistryGarbageCollector = AnimatedComponent ( 1691 ) . PropsRegistryGarbageCollector ;
2026-07-20 16:05:17 +00:00
PropsRegistryGarbageCollector . unregisterView ( componentViewTag ) ;
}
self . _detachStyles ( ) ;
const _InlinePropManager = self . _InlinePropManager ;
_InlinePropManager . detachInlineProps ( ) ;
if ( self . props . sharedTransitionTag ) {
const result1 = self . _configureSharedTransition ( true ) ;
}
const _sharedElementTransition = self . _sharedElementTransition ;
if ( null != _sharedElementTransition ) {
_sharedElementTransition . unregisterTransition ( self . getComponentViewTag ( ) , true ) ;
}
const exiting = self . props . exiting ;
if ( - 1 !== componentViewTag ) {
2026-07-23 10:11:24 +00:00
const ComponentRegistry = AnimatedComponent ( 1685 ) . ComponentRegistry ;
2026-07-20 16:05:17 +00:00
ComponentRegistry . unregister ( componentViewTag ) ;
}
2026-07-23 10:11:24 +00:00
if ( outer2 _12 ) {
2026-07-20 16:05:17 +00:00
if ( self . _componentDOMRef ) {
if ( exiting ) {
if ( obj5 . getReducedMotionFromConfig ( exiting ) ) {
if ( null != exiting . callbackV ) {
exiting . callbackV ( true ) ;
}
} else {
2026-07-23 10:11:24 +00:00
const result2 = AnimatedComponent ( 1669 ) . addHTMLMutationObserver ( ) ;
const obj6 = AnimatedComponent ( 1669 ) ;
2026-07-20 16:05:17 +00:00
( { props , _componentDOMRef } = self ) ;
2026-07-23 10:11:24 +00:00
const result3 = AnimatedComponent ( 1636 ) . startWebLayoutAnimation ( props , _componentDOMRef , AnimatedComponent ( 1607 ) . LayoutAnimationType . EXITING ) ;
const obj7 = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj5 = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
}
const _viewInfo = self . _viewInfo ;
2026-07-23 10:11:24 +00:00
let isFabricResult1 = ! outer2 _15 ;
2026-07-20 16:05:17 +00:00
if ( isFabricResult1 ) {
2026-07-23 10:11:24 +00:00
isFabricResult1 = AnimatedComponent ( 1585 ) . isFabric ( ) ;
const obj8 = AnimatedComponent ( 1585 ) ;
2026-07-20 16:05:17 +00:00
}
if ( isFabricResult1 ) {
isFabricResult1 = shadowNodeWrapper ;
}
if ( isFabricResult1 ) {
2026-07-23 10:11:24 +00:00
AnimatedComponent ( 1626 ) . markNodeAsRemovable ( shadowNodeWrapper ) ;
const obj9 = AnimatedComponent ( 1626 ) ;
2026-07-20 16:05:17 +00:00
}
self . _willUnmount = true ;
}
}
if ( exiting ) {
2026-07-23 10:11:24 +00:00
if ( ! outer2 _12 ) {
2026-07-20 16:05:17 +00:00
if ( ! obj2 . isFabric ( ) ) {
if ( "getReduceMotion" in exiting ) {
if ( "function" === typeof exiting . getReduceMotion ) {
2026-07-23 10:11:24 +00:00
let reduceMotionFromConfig = AnimatedComponent ( 1622 ) . getReduceMotionFromConfig ( exiting . getReduceMotion ( ) ) ;
const obj4 = AnimatedComponent ( 1622 ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! reduceMotionFromConfig ) {
2026-07-23 10:11:24 +00:00
const result4 = self . _configureLayoutAnimation ( AnimatedComponent ( 1607 ) . LayoutAnimationType . EXITING , exiting ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
reduceMotionFromConfig = AnimatedComponent ( 1622 ) . getReduceMotionFromConfig ( ) ;
const obj3 = AnimatedComponent ( 1622 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj2 = AnimatedComponent ( 1585 ) ;
2026-07-20 16:05:17 +00:00
}
}
}
} ;
items [ 1 ] = obj ;
obj = {
key : "_syncStylePropsBackToReact" ,
value : function _syncStylePropsBackToReact ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
this . setState ( ( settledProps ) => ( { settledProps : Object . assign ( { } , settledProps . settledProps , closure _0 ) } ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "getComponentViewTag" ,
value : function getComponentViewTag ( ) {
return this . _getViewInfo ( ) . viewTag ;
}
} ;
items [ 4 ] = {
key : "_detachStyles" ,
value : function _detachStyles ( ) {
const self = this ;
const componentViewTag = this . getComponentViewTag ( ) ;
if ( - 1 !== componentViewTag ) {
if ( null !== self . _styles ) {
const _styles = self . _styles ;
for ( const item10012 of _styles ) {
let viewDescriptors = item10012 . viewDescriptors ;
let tmp5 = componentViewTag ;
let removeResult = viewDescriptors . remove ( tmp2 ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
const animatedProps = self . props . animatedProps ;
if ( tmp7 ) {
const viewDescriptors2 = self . props . animatedProps . viewDescriptors ;
viewDescriptors2 . remove ( componentViewTag ) ;
}
2026-07-23 10:11:24 +00:00
tmp7 = null != animatedProps && animatedProps . viewDescriptors ;
2026-07-20 16:05:17 +00:00
}
}
}
} ;
items [ 5 ] = {
key : "_updateFromNative" ,
value : function _updateFromNative ( props ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( null != outer1 _1 ) {
if ( outer1 _1 . setNativeProps ) {
outer1 _1 . setNativeProps ( self . _componentRef , props ) ;
2026-07-20 16:05:17 +00:00
}
}
const _componentRef = self . _componentRef ;
if ( ! tmp2 ) {
_componentRef . setNativeProps ( props ) ;
}
}
} ;
items [ 6 ] = {
key : "_updateReanimatedProps" ,
value : function _updateReanimatedProps ( obj ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( null == outer1 _1 ) {
2026-07-20 16:05:17 +00:00
obj = { } ;
for ( const key10017 in arg0 ) {
let tmp6 = key10017 ;
let tmp7 = arg0 [ key10017 ] ;
if ( "color" === key10017 ) {
if ( tmp7 ) {
if ( "string" === typeof tmp7 ) {
2026-07-23 10:11:24 +00:00
let tmp4 = outer2 _9 ;
let tmp3 = outer2 _9 ( tmp7 ) ;
2026-07-20 16:05:17 +00:00
obj [ key10017 ] = tmp3 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
}
}
if ( "top" != key10017 ) {
if ( "bottom" != key10017 ) {
if ( ! key10017 . startsWith ( "margin" ) ) {
tmp3 = tmp7 ;
}
}
}
}
self . setState ( ( reanimatedProps ) => {
2026-07-23 10:11:24 +00:00
obj = { reanimatedProps : Object . assign ( { } , reanimatedProps . reanimatedProps , obj ) } ;
2026-07-20 16:05:17 +00:00
return obj ;
} ) ;
}
}
} ;
items [ 7 ] = {
key : "_getViewInfo" ,
value : function _getViewInfo ( ) {
let _componentDOMRef ;
let viewConfig ;
let viewName ;
let viewTag ;
const self = this ;
if ( undefined !== this . _viewInfo ) {
return self . _viewInfo ;
} else {
2026-07-23 10:11:24 +00:00
if ( outer2 _15 ) {
2026-07-20 16:05:17 +00:00
( { _componentRef : viewTag , _componentDOMRef } = self ) ;
viewName = null ;
viewConfig = null ;
let shadowNodeWrapperFromRef = null ;
} else {
2026-07-23 10:11:24 +00:00
let obj = AnimatedComponent ( 1611 ) ;
2026-07-20 16:05:17 +00:00
const findHostInstanceResult = obj . findHostInstance ( self ) ;
if ( findHostInstanceResult ) {
2026-07-23 10:11:24 +00:00
let tmp4Result = tmp4 ( 1695 ) ;
2026-07-20 16:05:17 +00:00
const viewInfo = tmp4Result . getViewInfo ( findHostInstanceResult ) ;
( { viewTag , viewName , viewConfig } = viewInfo ) ;
2026-07-23 10:11:24 +00:00
tmp4Result = tmp4 ( 1585 ) ;
2026-07-20 16:05:17 +00:00
shadowNodeWrapperFromRef = null ;
if ( tmp4Result . isFabric ( ) ) {
2026-07-23 10:11:24 +00:00
shadowNodeWrapperFromRef = AnimatedComponent ( 1610 ) . getShadowNodeWrapperFromRef ( self , findHostInstanceResult ) ;
const obj4 = AnimatedComponent ( 1610 ) ;
2026-07-20 16:05:17 +00:00
}
_componentDOMRef = null ;
} else {
2026-07-23 10:11:24 +00:00
const ReanimatedError = tmp4 ( 1593 ) . ReanimatedError ;
2026-07-20 16:05:17 +00:00
const prototype = ReanimatedError . prototype ;
const reanimatedError = new ReanimatedError ( "Cannot find host instance for this component. Maybe it renders nothing?" ) ;
throw reanimatedError ;
}
}
obj = { viewTag , viewName , shadowNodeWrapper : shadowNodeWrapperFromRef , viewConfig } ;
self . _viewInfo = obj ;
if ( _componentDOMRef ) {
self . _viewInfo . DOMElement = _componentDOMRef ;
}
return self . _viewInfo ;
}
}
} ;
items [ 8 ] = {
key : "_attachAnimatedStyles" ,
value : function _attachAnimatedStyles ( ) {
2026-07-23 10:11:24 +00:00
let self = this ;
self = this ;
2026-07-20 16:05:17 +00:00
if ( this . props . style ) {
2026-07-23 10:11:24 +00:00
let obj = AnimatedComponent ( 1679 ) ;
let items = ( function onlyAnimatedStyles ( arr ) {
2026-07-20 16:05:17 +00:00
return arr . filter ( ( viewDescriptors ) => {
viewDescriptors = undefined ;
if ( null != viewDescriptors ) {
viewDescriptors = viewDescriptors . viewDescriptors ;
}
return viewDescriptors ;
} ) ;
2026-07-23 10:11:24 +00:00
} ) ( obj . flattenArray ( self . props . style ) ) ;
2026-07-20 16:05:17 +00:00
} else {
items = [ ] ;
}
const animatedProps = self . props . animatedProps ;
const _styles = self . _styles ;
self . _styles = items ;
const _animatedProps = self . _animatedProps ;
self . _animatedProps = animatedProps ;
const _getViewInfoResult = self . _getViewInfo ( ) ;
const viewTag = _getViewInfoResult . viewTag ;
const viewName = _getViewInfoResult . viewName ;
const shadowNodeWrapper = _getViewInfoResult . shadowNodeWrapper ;
const viewConfig = _getViewInfoResult . viewConfig ;
const animatedProps2 = self . props . animatedProps ;
let viewDescriptors ;
if ( null != animatedProps2 ) {
viewDescriptors = animatedProps2 . viewDescriptors ;
}
if ( ! viewDescriptors ) {
viewDescriptors = items . length ;
}
if ( viewDescriptors ) {
viewDescriptors = viewConfig ;
}
if ( viewDescriptors ) {
2026-07-23 10:11:24 +00:00
AnimatedComponent ( 1681 ) . adaptViewConfig ( viewConfig ) ;
const obj2 = AnimatedComponent ( 1681 ) ;
2026-07-20 16:05:17 +00:00
}
function isStyleAttached ( viewDescriptors ) {
viewDescriptors = viewDescriptors . viewDescriptors ;
return viewDescriptors . has ( viewTag ) ;
}
const tmp8 = null != _styles && items . length === _styles . length && items . every ( ( viewDescriptors ) => {
let tmp = viewDescriptors === _styles [ arg1 ] ;
if ( tmp ) {
tmp = isStyleAttached ( viewDescriptors ) ;
}
return tmp ;
} ) ;
const animatedProps3 = self . props . animatedProps ;
let tmp10 = ! ( null != animatedProps3 && animatedProps3 . viewDescriptors ) ;
if ( ! tmp10 ) {
let hasItem = _animatedProps === self . props . animatedProps ;
if ( hasItem ) {
viewDescriptors = self . props . animatedProps . viewDescriptors ;
hasItem = viewDescriptors . has ( viewTag ) ;
}
tmp10 = hasItem ;
}
if ( ! tmp8 ) {
if ( _styles ) {
function _loop ( item10066 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = item10066 ;
2026-07-20 16:05:17 +00:00
if ( ! items . some ( ( arg0 ) => {
2026-07-23 10:11:24 +00:00
let tmp = arg0 !== closure _0 ;
2026-07-20 16:05:17 +00:00
if ( ! tmp ) {
2026-07-23 10:11:24 +00:00
tmp = ! outer1 _6 ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
return ! tmp ;
} ) ) {
const viewDescriptors = item10066 . viewDescriptors ;
viewDescriptors . remove ( viewTag ) ;
}
}
for ( const item10066 of _styles ) {
let tmp13 = _loop ;
let _loopResult = _loop ( item10066 ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
}
if ( animatedProps ) {
2026-07-23 10:11:24 +00:00
if ( outer2 _13 ) {
2026-07-20 16:05:17 +00:00
let value ;
if ( null != animatedProps ) {
if ( null != animatedProps . initial ) {
value = iter . value ;
}
}
self . jestAnimatedProps . value = Object . assign ( { } , self . jestAnimatedProps . value , value ) ;
if ( tmp17 ) {
animatedProps . jestAnimatedValues . current = self . jestAnimatedProps ;
}
2026-07-23 10:11:24 +00:00
tmp17 = null != animatedProps && animatedProps . jestAnimatedValues ;
2026-07-20 16:05:17 +00:00
}
}
if ( ! tmp8 ) {
const item = set . forEach ( ( viewDescriptors ) => {
viewDescriptors = viewDescriptors . viewDescriptors ;
viewDescriptors . add ( { tag : viewTag , name : viewName , shadowNodeWrapper } , viewDescriptors . styleUpdaterContainer ) ;
2026-07-23 10:11:24 +00:00
if ( outer3 _13 ) {
2026-07-20 16:05:17 +00:00
const _Object = Object ;
self . jestAnimatedStyle . value = Object . assign ( { } , self . jestAnimatedStyle . value , viewDescriptors . initial . value ) ;
viewDescriptors . jestAnimatedValues . current = self . jestAnimatedStyle ;
}
} ) ;
}
let tmp19 = _animatedProps ;
if ( _animatedProps ) {
tmp19 = _animatedProps !== self . props . animatedProps ;
}
if ( tmp19 ) {
const viewDescriptors2 = _animatedProps . viewDescriptors ;
viewDescriptors2 . remove ( viewTag ) ;
}
let viewDescriptors3 = ! tmp10 ;
if ( viewDescriptors3 ) {
const animatedProps4 = self . props . animatedProps ;
viewDescriptors3 = null != animatedProps4 ;
const tmp21 = animatedProps4 ;
}
if ( viewDescriptors3 ) {
viewDescriptors3 = tmp21 . viewDescriptors ;
}
if ( viewDescriptors3 ) {
const viewDescriptors4 = self . props . animatedProps . viewDescriptors ;
obj = { tag : viewTag , name : viewName , shadowNodeWrapper } ;
viewDescriptors4 . add ( obj , self . props . animatedProps . styleUpdaterContainer ) ;
}
}
}
} ;
items [ 9 ] = {
key : "componentDidUpdate" ,
value : function componentDidUpdate ( layout ) {
const self = this ;
2026-07-23 10:11:24 +00:00
const result = this . _configureLayoutAnimation ( AnimatedComponent ( 1607 ) . LayoutAnimationType . LAYOUT , this . props . layout , layout . layout ) ;
const result1 = this . _configureLayoutAnimation ( AnimatedComponent ( 1607 ) . LayoutAnimationType . EXITING , this . props . exiting , layout . exiting ) ;
2026-07-20 16:05:17 +00:00
if ( ! tmp3 ) {
const result2 = self . _configureSharedTransition ( ) ;
}
const _NativeEventsManager = self . _NativeEventsManager ;
if ( null != _NativeEventsManager ) {
_NativeEventsManager . updateEvents ( layout ) ;
}
const result3 = self . _attachAnimatedStyles ( ) ;
const _InlinePropManager = self . _InlinePropManager ;
_InlinePropManager . attachInlineProps ( self , self . _getViewInfo ( ) ) ;
2026-07-23 10:11:24 +00:00
let _componentDOMRef = outer2 _12 ;
if ( outer2 _12 ) {
2026-07-20 16:05:17 +00:00
_componentDOMRef = self . props . exiting ;
}
if ( _componentDOMRef ) {
_componentDOMRef = self . _componentDOMRef ;
}
if ( _componentDOMRef ) {
2026-07-23 10:11:24 +00:00
AnimatedComponent ( 1636 ) . saveSnapshot ( self . _componentDOMRef ) ;
const obj = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( outer2 _12 ) {
2026-07-20 16:05:17 +00:00
if ( arg2 ) {
if ( self . props . layout ) {
if ( obj2 . getReducedMotionFromConfig ( self . props . layout ) ) {
layout = self . props . layout ;
const callbackV = layout . callbackV ;
if ( null != callbackV ) {
callbackV . call ( layout , true ) ;
}
} else {
2026-07-23 10:11:24 +00:00
const result4 = AnimatedComponent ( 1636 ) . tryActivateLayoutTransition ( self . props , self . _componentDOMRef , arg2 ) ;
const obj3 = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj2 = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
}
}
}
}
} ;
items [ 10 ] = {
key : "_configureLayoutAnimation" ,
value : function _configureLayoutAnimation ( EXITING , exiting , exiting2 ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( ! outer2 _12 ) {
2026-07-20 16:05:17 +00:00
if ( exiting !== exiting2 ) {
2026-07-23 10:11:24 +00:00
const obj = AnimatedComponent ( 1696 ) ;
2026-07-20 16:05:17 +00:00
if ( obj2 . isFabric ( ) ) {
2026-07-23 10:11:24 +00:00
if ( EXITING === AnimatedComponent ( 1607 ) . LayoutAnimationType . ENTERING ) {
2026-07-20 16:05:17 +00:00
let reanimatedID = self . reanimatedID ;
}
let maybeBuildResult = tmp ;
if ( tmp ) {
let style ;
2026-07-23 10:11:24 +00:00
if ( EXITING !== AnimatedComponent ( 1607 ) . LayoutAnimationType . LAYOUT ) {
2026-07-20 16:05:17 +00:00
const props = self . props ;
if ( null != props ) {
style = props . style ;
}
}
2026-07-23 10:11:24 +00:00
maybeBuildResult = AnimatedComponent ( 1697 ) . maybeBuild ( tmp , style , AnimatedComponent . displayName ) ;
const obj3 = AnimatedComponent ( 1697 ) ;
2026-07-20 16:05:17 +00:00
}
const result = obj . updateLayoutAnimations ( reanimatedID , EXITING , maybeBuildResult ) ;
}
reanimatedID = self . getComponentViewTag ( ) ;
2026-07-23 10:11:24 +00:00
obj2 = AnimatedComponent ( 1585 ) ;
2026-07-20 16:05:17 +00:00
}
}
}
} ;
items [ 11 ] = {
key : "_configureSharedTransition" ,
value : function _configureSharedTransition ( arg0 ) {
const self = this ;
const tmp = arguments . length > 0 && undefined !== arguments [ 0 ] && arguments [ 0 ] ;
2026-07-23 10:11:24 +00:00
if ( ! outer2 _12 ) {
2026-07-20 16:05:17 +00:00
const sharedTransitionTag = self . props . sharedTransitionTag ;
if ( sharedTransitionTag ) {
let _sharedElementTransition2 = self . props . sharedTransitionStyle ;
if ( null == _sharedElementTransition2 ) {
_sharedElementTransition2 = self . _sharedElementTransition ;
}
if ( null == _sharedElementTransition2 ) {
2026-07-23 10:11:24 +00:00
const SharedTransition = AnimatedComponent ( 1698 ) . SharedTransition ;
2026-07-20 16:05:17 +00:00
const prototype = SharedTransition . prototype ;
_sharedElementTransition2 = new SharedTransition ( ) ;
}
_sharedElementTransition2 . registerTransition ( self . getComponentViewTag ( ) , sharedTransitionTag , tmp ) ;
self . _sharedElementTransition = _sharedElementTransition2 ;
} else {
const _sharedElementTransition = self . _sharedElementTransition ;
if ( null != _sharedElementTransition ) {
_sharedElementTransition . unregisterTransition ( self . getComponentViewTag ( ) , tmp ) ;
}
self . _sharedElementTransition = null ;
}
}
}
} ;
items [ 12 ] = {
key : "_isReducedMotion" ,
value : function _isReducedMotion ( getReduceMotion ) {
if ( getReduceMotion ) {
if ( "getReduceMotion" in getReduceMotion ) {
if ( "function" === typeof getReduceMotion . getReduceMotion ) {
2026-07-23 10:11:24 +00:00
let reduceMotionFromConfig = AnimatedComponent ( 1622 ) . getReduceMotionFromConfig ( getReduceMotion . getReduceMotion ( ) ) ;
const obj2 = AnimatedComponent ( 1622 ) ;
2026-07-20 16:05:17 +00:00
}
return reduceMotionFromConfig ;
}
}
2026-07-23 10:11:24 +00:00
reduceMotionFromConfig = AnimatedComponent ( 1622 ) . getReduceMotionFromConfig ( ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 13 ] = {
key : "getSnapshotBeforeUpdate" ,
value : function getSnapshotBeforeUpdate ( props2 , memoizedState ) {
const self = this ;
let boundingClientRect = null ;
2026-07-23 10:11:24 +00:00
if ( outer2 _12 ) {
2026-07-20 16:05:17 +00:00
boundingClientRect = null ;
if ( self . props . layout ) {
const _componentDOMRef = self . _componentDOMRef ;
boundingClientRect = null ;
if ( null != _componentDOMRef ) {
boundingClientRect = null ;
if ( _componentDOMRef . getBoundingClientRect ) {
const _componentDOMRef2 = self . _componentDOMRef ;
boundingClientRect = _componentDOMRef2 . getBoundingClientRect ( ) ;
}
}
}
}
return boundingClientRect ;
}
} ;
items [ 14 ] = {
key : "render" ,
value : function render ( ) {
const self = this ;
const _PropsFilter = this . _PropsFilter ;
const result = _PropsFilter . filterNonAnimatedProps ( this ) ;
2026-07-23 10:11:24 +00:00
if ( outer2 _13 ) {
2026-07-20 16:05:17 +00:00
( { jestAnimatedStyle : tmp . jestAnimatedStyle , jestAnimatedProps : tmp . jestAnimatedProps } = self ) ;
}
2026-07-23 10:11:24 +00:00
let tmp2 = self . _isFirstRender && outer2 _12 && result . entering ;
2026-07-20 16:05:17 +00:00
if ( tmp2 ) {
2026-07-23 10:11:24 +00:00
let obj = AnimatedComponent ( 1636 ) ;
2026-07-20 16:05:17 +00:00
tmp2 = ! obj . getReducedMotionFromConfig ( result . entering ) ;
}
if ( ! tmp2 ) {
obj = { collapsable : false } ;
const context = self . context ;
let current ;
if ( null != context ) {
current = context . current ;
}
if ( ! current ) {
2026-07-23 10:11:24 +00:00
let obj5 = AnimatedComponent ( 1585 ) ;
2026-07-20 16:05:17 +00:00
if ( obj5 . isFabric ( ) ) {
const _HermesInternal = HermesInternal ;
const combined = "" + self . reanimatedID ;
}
}
2026-07-23 10:11:24 +00:00
if ( outer2 _13 ) {
2026-07-20 16:05:17 +00:00
obj = { } ;
let style2 = self . props . style ;
if ( style2 ) {
2026-07-23 10:11:24 +00:00
style2 = outer2 _18 ( self . props . style ) ;
2026-07-20 16:05:17 +00:00
}
obj . jestInlineStyle = style2 ;
( { jestAnimatedStyle : obj8 . jestAnimatedStyle , jestAnimatedProps : obj8 . jestAnimatedProps } = self ) ;
let obj1 = obj ;
} else {
obj1 = { } ;
}
2026-07-23 10:11:24 +00:00
let obj8 = AnimatedComponent ( 1585 ) ;
2026-07-20 16:05:17 +00:00
if ( obj8 . isFabric ( ) ) {
const _Object3 = Object ;
const _Object4 = Object ;
const obj2 = { nativeID : combined } ;
2026-07-23 10:11:24 +00:00
const obj3 = { style : Object . assign ( { } , outer2 _10 . flatten ( result . style ) , self . state . settledProps ) } ;
2026-07-20 16:05:17 +00:00
const obj4 = { ref : self . _setComponentRef } ;
const _Object5 = Object ;
2026-07-23 10:11:24 +00:00
return outer2 _11 ( AnimatedComponent , Object . assign ( obj2 , result , obj1 , obj3 , self . state . settledProps , self . state . reanimatedProps , obj4 , obj ) ) ;
2026-07-20 16:05:17 +00:00
} else {
const _Object = Object ;
obj5 = { nativeID : combined } ;
const obj6 = { ref : self . _setComponentRef } ;
const _Object2 = Object ;
2026-07-23 10:11:24 +00:00
return outer2 _11 ( AnimatedComponent , Object . assign ( obj5 , result , obj1 , self . state . reanimatedProps , obj6 , obj ) ) ;
2026-07-20 16:05:17 +00:00
}
} else {
const _Array = Array ;
if ( Array . isArray ( result . style ) ) {
let style = result . style ;
const obj7 = { visibility : "hidden" } ;
const items = [ obj7 ] ;
let combined1 = style . concat ( items ) ;
} else {
style = result . style ;
if ( null == style ) {
style = { } ;
}
obj8 = { visibility : "hidden" } ;
combined1 = Object . assign ( { } , style , obj8 ) ;
}
result . style = combined1 ;
}
}
} ;
2026-07-23 10:11:24 +00:00
return outer1 _4 ( AnimatedComponent , items ) ;
} ) ( Component . Component ) ;
2026-07-20 16:05:17 +00:00
const dependencyMap = tmp8 ;
2026-07-23 10:11:24 +00:00
tmp8 . contextType = _require ( 1720 ) . SkipEnteringContext ;
2026-07-20 16:05:17 +00:00
tmp8 . displayName = "AnimatedComponent(" + name . displayName || name . name || "Component" + ")" ;
2026-07-23 10:11:24 +00:00
const componentWithRefResult = _require ( 1721 ) . componentWithRef ( ( arg0 , forwardedRef ) => {
2026-07-20 16:05:17 +00:00
let tmp3 = null ;
if ( null !== forwardedRef ) {
const obj = { forwardedRef } ;
tmp3 = obj ;
}
2026-07-23 10:11:24 +00:00
return outer1 _11 ( closure _2 , Object . assign ( { } , arg0 , tmp3 ) ) ;
2026-07-20 16:05:17 +00:00
} ) ;
componentWithRefResult . displayName = name . displayName || name . name || "Component" ;
return componentWithRefResult ;
} ;