2026-07-20 16:05:17 +00:00
// Module ID: 372
// Function ID: 5521
// Name: Animation
2026-07-23 10:11:24 +00:00
// Dependencies: [65, 6, 7, 99, 100, 348, 373, 79]
2026-07-20 16:05:17 +00:00
// Module 372 (Animation)
2026-07-23 10:11:24 +00:00
import _toConsumableArray from "_toConsumableArray" ;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import javaScriptFlagGetter from "javaScriptFlagGetter" ;
import _classPrivateFieldBase from "_classPrivateFieldBase" ;
import importDefaultResult from "_classPrivateFieldKey" ;
let c7 = 1 ;
2026-07-20 16:05:17 +00:00
let closure _8 = importDefaultResult ( "nativeID" ) ;
let closure _9 = importDefaultResult ( "onEnd" ) ;
let closure _10 = importDefaultResult ( "useNativeDriver" ) ;
2026-07-23 10:11:24 +00:00
export default ( ( ) => {
2026-07-20 16:05:17 +00:00
class Animation {
constructor ( arg0 ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1 _4 ( this , Animation ) ;
definePropertyResult = Object . defineProperty ( this , outer1 _8 , { writable : true , value : undefined } ) ;
definePropertyResult1 = Object . defineProperty ( this , outer1 _9 , { writable : true , value : undefined } ) ;
definePropertyResult2 = Object . defineProperty ( this , outer1 _10 , { writable : true , value : undefined } ) ;
tmp5 = outer1 _6 ( this , outer1 _10 ) ;
obj = Animation ( outer1 _2 [ 5 ] ) ;
tmp5 [ outer1 _10 ] = obj . shouldUseNativeDriver ( arg0 ) ;
2026-07-20 16:05:17 +00:00
this . _ _active = false ;
isInteraction = arg0 . isInteraction ;
if ( null == isInteraction ) {
2026-07-23 10:11:24 +00:00
tmp6 = outer1 _6 ;
tmp7 = outer1 _10 ;
isInteraction = ! outer1 _6 ( self , outer1 _10 ) [ outer1 _10 ] ;
2026-07-20 16:05:17 +00:00
}
self . _ _isInteraction = isInteraction ;
( { isLooping : self . _ _isLooping , iterations } = arg0 ) ;
num = 1 ;
if ( null != iterations ) {
num = iterations ;
}
self . _ _iterations = num ;
return ;
}
}
let obj = {
key : "start" ,
value : function start ( arg0 , arg1 , arg2 , arg3 , _ _isNative ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( ! outer1 _6 ( this , outer1 _10 ) [ outer1 _10 ] ) {
2026-07-20 16:05:17 +00:00
if ( true === _ _isNative . _ _isNative ) {
const _Error = Error ;
const error = new Error ( "Attempting to run JS driven animation on animated node that has been moved to \"native\" earlier by starting an animation with `useNativeDriver: true`" ) ;
throw error ;
}
}
2026-07-23 10:11:24 +00:00
outer1 _6 ( self , outer1 _9 ) [ outer1 _9 ] = arg2 ;
2026-07-20 16:05:17 +00:00
self . _ _active = true ;
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , , , , , , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "stop" ,
value : function stop ( ) {
const self = this ;
2026-07-23 10:11:24 +00:00
if ( null != outer1 _6 ( this , outer1 _8 ) [ outer1 _8 ] ) {
const tmp3 = outer1 _6 ( self , outer1 _8 ) [ outer1 _8 ] ;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
const combined = "" + tmp3 + ":stopAnimation" ;
2026-07-23 10:11:24 +00:00
const API = Animation ( outer1 _2 [ 5 ] ) . API ;
2026-07-20 16:05:17 +00:00
const result = API . setWaitingForIdentifier ( combined ) ;
2026-07-23 10:11:24 +00:00
const API2 = Animation ( outer1 _2 [ 5 ] ) . API ;
2026-07-20 16:05:17 +00:00
API2 . stopAnimation ( tmp3 ) ;
2026-07-23 10:11:24 +00:00
const API3 = Animation ( outer1 _2 [ 5 ] ) . API ;
2026-07-20 16:05:17 +00:00
const result1 = API3 . unsetWaitingForIdentifier ( combined ) ;
}
self . _ _active = false ;
}
} ;
items [ 1 ] = obj ;
obj = {
key : "__getNativeAnimationConfig" ,
value : function _ _getNativeAnimationConfig ( ) {
const error = new Error ( "This animation type cannot be offloaded to native" ) ;
throw error ;
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "__findAnimatedPropsNodes" ,
2026-07-23 10:11:24 +00:00
value : function _ _findAnimatedPropsNodes ( closure _0 ) {
2026-07-20 16:05:17 +00:00
const self = this ;
const items = [ ] ;
2026-07-23 10:11:24 +00:00
if ( closure _0 instanceof Animation ( outer1 _2 [ 6 ] ) ) {
items . push ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
return items ;
} else {
2026-07-23 10:11:24 +00:00
const _ _getChildrenResult = closure _0 . _ _getChildren ( ) ;
2026-07-20 16:05:17 +00:00
for ( const item10014 of _ _getChildrenResult ) {
let tmp3 = items ;
let push = items . push ;
2026-07-23 10:11:24 +00:00
let tmp4 = outer1 _3 ;
let applyResult = push . apply ( items , outer1 _3 ( self . _ _findAnimatedPropsNodes ( item10014 ) ) ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
return items ;
}
}
} ;
items [ 4 ] = {
key : "__startAnimationIfNative" ,
2026-07-23 10:11:24 +00:00
value : function _ _startAnimationIfNative ( closure _0 ) {
2026-07-20 16:05:17 +00:00
let self = this ;
self = this ;
2026-07-23 10:11:24 +00:00
if ( outer1 _6 ( this , outer1 _10 ) [ outer1 _10 ] ) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
2026-07-23 10:11:24 +00:00
const combined = "" + outer1 _7 + ":startAnimation" ;
outer1 _7 = outer1 _7 + 1 ;
const API = Animation ( outer1 _2 [ 5 ] ) . API ;
let result = API . setWaitingForIdentifier ( combined ) ;
let result1 = self . _ _getNativeAnimationConfig ( ) ;
2026-07-20 16:05:17 +00:00
obj . _ _makeNative ( result1 . platformConfig ) ;
2026-07-23 10:11:24 +00:00
const tmp14 = outer1 _6 ( self , outer1 _8 ) ;
tmp14 [ outer1 _8 ] = Animation ( outer1 _2 [ 5 ] ) . generateNewAnimationId ( ) ;
const API2 = Animation ( outer1 _2 [ 5 ] ) . API ;
API2 . startAnimatingNode ( outer1 _6 ( self , outer1 _8 ) [ outer1 _8 ] , obj . _ _getNativeTag ( ) , result1 , ( value ) => {
2026-07-20 16:05:17 +00:00
self . _ _notifyAnimationEnd ( value ) ;
value = value . value ;
if ( null != value ) {
2026-07-23 10:11:24 +00:00
const result = closure _0 . _ _onAnimatedValueUpdateReceived ( value , tmp2 ) ;
2026-07-20 16:05:17 +00:00
if ( obj2 . cxxNativeAnimatedEnabled ( ) ) {
2026-07-23 10:11:24 +00:00
const obj = outer2 _1 ( outer2 _2 [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const result1 = self . _ _findAnimatedPropsNodes ( closure _0 ) ;
2026-07-20 16:05:17 +00:00
const item = result1 . forEach ( ( update ) => update . update ( ) ) ;
2026-07-23 10:11:24 +00:00
obj2 = outer2 _1 ( outer2 _2 [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
2026-07-23 10:11:24 +00:00
const API3 = Animation ( outer1 _2 [ 5 ] ) . API ;
2026-07-20 16:05:17 +00:00
const result2 = API3 . unsetWaitingForIdentifier ( combined ) ;
return true ;
} else {
return false ;
}
}
} ;
items [ 5 ] = {
key : "__notifyAnimationEnd" ,
value : function _ _notifyAnimationEnd ( value ) {
2026-07-23 10:11:24 +00:00
const tmp = outer1 _6 ( this , outer1 _9 ) [ outer1 _9 ] ;
2026-07-20 16:05:17 +00:00
if ( null != tmp ) {
2026-07-23 10:11:24 +00:00
outer1 _6 ( this , outer1 _9 ) [ outer1 _9 ] = null ;
2026-07-20 16:05:17 +00:00
tmp ( value ) ;
}
}
} ;
items [ 6 ] = {
key : "__getDebugID" ,
value : function _ _getDebugID ( ) {
}
} ;
return callback ( Animation , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;