2026-07-29 08:29:29 +00:00
// Module ID: 357
// Function ID: 358
// Name: set
// Dependencies: [358, 361, 27, 70, 38, 92, 209]
// Module 357 (set)
2026-08-24 06:08:38 +00:00
import shouldUseTurboAnimatedModuleDefault from "shouldUseTurboAnimatedModule" /* 361 */ ;
import importDefaultResult from "shouldUseTurboAnimatedModule" /* 358 */ ;
import importAllResult1 from "javaScriptFlagGetter" /* 27 */ ;
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
let closure _0 = importDefault ;
2026-07-29 08:29:29 +00:00
if ( importDefaultResult == null ) {
2026-08-24 06:08:38 +00:00
importDefaultResult = shouldUseTurboAnimatedModuleDefault ;
2026-07-29 08:29:29 +00:00
}
let c4 = importDefaultResult ;
let c5 = 1 ;
let c6 = 1 ;
const set = new Set ( ) ;
let c8 = false ;
let closure _9 = [ ] ;
let closure _10 = [ ] ;
let prop ;
if ( importDefaultResult != null ) {
prop = importDefaultResult . queueAndExecuteBatchedOperations ;
}
let result = null != prop ;
if ( result ) {
2026-08-24 06:08:38 +00:00
result = importAllResult1 . animatedShouldUseSingleOp ( ) ;
const importAllResult = importAllResult1 ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
let closure _11 = null ;
2026-07-29 08:29:29 +00:00
let closure _12 = { } ;
let closure _13 = { } ;
let c14 = null ;
let c15 = null ;
2026-08-24 06:08:38 +00:00
const result1 = importAllResult1 . cxxNativeAnimatedEnabled ( ) ;
let result2 = importAllResult1 . cxxNativeAnimatedEnabled ( ) ;
2026-07-29 08:29:29 +00:00
if ( result2 ) {
2026-08-24 06:08:38 +00:00
result2 = importAllResult1 . useSharedAnimatedBackend ( ) ;
const importAllResult3 = importAllResult1 ;
2026-07-29 08:29:29 +00:00
}
let items = [ "createAnimatedNode" , "updateAnimatedNodeConfig" , "getValue" , "startListeningToAnimatedNodeValue" , "stopListeningToAnimatedNodeValue" , "connectAnimatedNodes" , "disconnectAnimatedNodes" , "startAnimatingNode" , "stopAnimation" , "setAnimatedNodeValue" , "setAnimatedNodeOffset" , "flattenAnimatedNodeOffset" , "extractAnimatedNodeOffset" , "connectAnimatedNodeToView" , "disconnectAnimatedNodeFromView" , "restoreDefaultValues" , "dropAnimatedNode" , "addAnimatedEventToView" , "removeAnimatedEventFromView" , "addListener" , "removeListener" ] ;
if ( result2 ) {
items . push ( "connectAnimatedNodeToShadowNodeFamily" ) ;
}
let obj = { } ;
if ( result ) {
let num3 = 0 ;
let num4 = 0 ;
if ( tmp9 ) {
do {
2026-08-24 06:08:38 +00:00
closure _0 = num3 + 1 ;
2026-07-29 08:29:29 +00:00
obj [ items [ num3 ] ] = ( ) => {
const items = [ closure _0 , ... HermesBuiltin . copyRestArgs ( ) ] ;
2026-08-24 06:08:38 +00:00
closure _10 . push . apply ( items ) ;
if ( result1 ) {
2026-07-29 08:29:29 +00:00
const _clearImmediate = clearImmediate ;
2026-08-24 06:08:38 +00:00
clearImmediate ( immediate ) ;
2026-07-29 08:29:29 +00:00
const _setImmediate = setImmediate ;
2026-08-24 06:08:38 +00:00
immediate = setImmediate ( obj . flushQueue ) ;
2026-07-29 08:29:29 +00:00
}
} ;
num3 = num4 + 1 ;
num4 = num3 ;
} while ( num3 < length ) ;
}
} else {
let num = 0 ;
let num2 = 0 ;
if ( tmp9 ) {
do {
let tmp10 = items [ num ] ;
2026-08-24 06:08:38 +00:00
closure _0 = tmp10 ;
2026-07-29 08:29:29 +00:00
obj [ tmp10 ] = ( ) => {
const items = [ ... arguments ] ;
2026-08-24 06:08:38 +00:00
closure _1 = undefined ;
const tmp = callback ( 70 ) ( importDefaultResult ) [ items ] ;
closure _1 = tmp ;
if ( ! c8 ) {
if ( 0 === arr . length ) {
if ( result1 ) {
arr = arr . push ( ( ) => callback ( ... items ) ) ;
2026-07-29 08:29:29 +00:00
const _clearImmediate = clearImmediate ;
2026-08-24 06:08:38 +00:00
clearImmediate ( immediate ) ;
2026-07-29 08:29:29 +00:00
const _setImmediate = setImmediate ;
2026-08-24 06:08:38 +00:00
immediate = setImmediate ( obj . flushQueue ) ;
2026-07-29 08:29:29 +00:00
} else {
const items1 = [ ] ;
HermesBuiltin . arraySpread ( items , 0 ) ;
HermesBuiltin . apply ( items1 , undefined ) ;
}
}
}
2026-08-24 06:08:38 +00:00
arr = arr . push ( ( ) => callback ( ... items ) ) ;
2026-07-29 08:29:29 +00:00
} ;
num = num2 + 1 ;
num2 = num ;
} while ( num < length ) ;
}
}
obj = {
addAnimatedEventToView ( c4 , closure _0 , arg2 ) {
const result = obj . addAnimatedEventToView ( c4 , closure _0 , arg2 ) ;
} ,
connectAnimatedNodes ( _ _getNativeTagResult , arg1 ) {
obj . connectAnimatedNodes ( _ _getNativeTagResult , arg1 ) ;
} ,
connectAnimatedNodeToShadowNodeFamily ( self , nodeFromPublicInstance ) {
const connectAnimatedNodeToShadowNodeFamily = obj . connectAnimatedNodeToShadowNodeFamily ;
if ( connectAnimatedNodeToShadowNodeFamily != null ) {
const result = connectAnimatedNodeToShadowNodeFamily ( self , nodeFromPublicInstance ) ;
}
} ,
connectAnimatedNodeToView ( self , findNodeHandleResult ) {
const result = obj . connectAnimatedNodeToView ( self , findNodeHandleResult ) ;
} ,
createAnimatedNode ( newNodeTag , _ _getNativeConfigResult ) {
if ( _ _getNativeConfigResult . disableBatchingForNativeCreate ) {
if ( closure _4 != null ) {
const animatedNode = obj . createAnimatedNode ( newNodeTag , _ _getNativeConfigResult ) ;
}
} else {
const animatedNode1 = obj . createAnimatedNode ( newNodeTag , _ _getNativeConfigResult ) ;
}
} ,
disableQueue ( ) {
2026-08-24 06:08:38 +00:00
callback ( 38 ) ( closure _4 , "Native animated module is not available" ) ;
obj = importAllResult1 ;
2026-07-29 08:29:29 +00:00
if ( obj . animatedShouldDebounceQueueFlush ( ) ) {
const _clearImmediate = clearImmediate ;
clearImmediate ( immediate ) ;
const _setImmediate = setImmediate ;
immediate = setImmediate ( obj . flushQueue ) ;
} else {
obj . flushQueue ( ) ;
}
} ,
disconnectAnimatedNodeFromView ( self , connectedViewTag ) {
const result = obj . disconnectAnimatedNodeFromView ( self , connectedViewTag ) ;
} ,
disconnectAnimatedNodes ( _ _getNativeTagResult , arg1 ) {
const result = obj . disconnectAnimatedNodes ( _ _getNativeTagResult , arg1 ) ;
} ,
dropAnimatedNode ( _ _nativeTag ) {
obj . dropAnimatedNode ( _ _nativeTag ) ;
} ,
extractAnimatedNodeOffset ( self ) {
const result = obj . extractAnimatedNodeOffset ( self ) ;
} ,
flattenAnimatedNodeOffset ( self ) {
const result = obj . flattenAnimatedNodeOffset ( self ) ;
} ,
flushQueue : result ? ( ( ) => {
2026-08-24 06:08:38 +00:00
callback ( 38 ) ( closure _4 , "Native animated module is not available" ) ;
c11 = null ;
if ( 0 !== closure _10 . length ) {
2026-07-29 08:29:29 +00:00
if ( ! closure _14 ) {
let tmpResult = tmp ( 92 ) ;
closure _14 = tmpResult . addListener ( "onNativeAnimatedModuleGetValue" , ( value ) => {
if ( table [ value . tag ] ) {
tmp3 ( value . value ) ;
delete tmp [ tmp2 ] ;
}
} ) ;
tmpResult = tmp ( 92 ) ;
2026-08-24 06:08:38 +00:00
closure _15 = tmpResult . addListener ( "onNativeAnimatedModuleAnimationFinished" , ( arg0 ) => {
2026-07-29 08:29:29 +00:00
let tmp3 = arg0 ;
if ( ! Array . isArray ( arg0 ) ) {
const items = [ arg0 ] ;
tmp3 = items ;
}
for ( const item10014 of tmp3 ) {
let animationId = item10014 . animationId ;
let tmp5 = animationId ;
let tmp6 = table2 ;
let tmp7 = table2 [ animationId ] ;
if ( tmp7 ) {
let tmp9 = tmp7 ;
let tmp10 = item10014 ;
let tmp8Result = tmp8 ( tmp4 ) ;
let tmp12 = animationId ;
delete tmp2 [ tmp ] ;
}
continue ;
}
} ) ;
}
if ( tmp3 != null ) {
const queueAndExecuteBatchedOperations = tmp3 . queueAndExecuteBatchedOperations ;
if ( queueAndExecuteBatchedOperations != null ) {
const result = queueAndExecuteBatchedOperations ( tmp5 ) ;
}
}
tmp5 . length = 0 ;
}
} ) : ( ( ) => {
2026-08-24 06:08:38 +00:00
callback ( 38 ) ( closure _4 , "Native animated module is not available" ) ;
c11 = null ;
if ( 0 !== arr . length ) {
2026-07-29 08:29:29 +00:00
if ( tmp != null ) {
const startOperationBatch = tmp . startOperationBatch ;
if ( startOperationBatch != null ) {
startOperationBatch ( ) ;
}
}
let num2 = 0 ;
if ( 0 < arr . length ) {
do {
2026-08-24 06:08:38 +00:00
let tmp4 = arr ;
let tmp5 = arr [ num2 ] ( ) ;
2026-07-29 08:29:29 +00:00
num2 = num2 + 1 ;
} while ( num2 < length ) ;
}
arr . length = 0 ;
if ( closure _4 != null ) {
const finishOperationBatch = tmp6 . finishOperationBatch ;
if ( finishOperationBatch != null ) {
finishOperationBatch ( ) ;
}
}
tmp6 = closure _4 ;
}
} ) ,
getValue : result ? ( ( arg0 , arg1 ) => {
if ( arg1 ) {
closure _12 [ arg0 ] = arg1 ;
}
const value = obj . getValue ( arg0 ) ;
} ) : ( ( arg0 , arg1 ) => {
const value = obj . getValue ( arg0 , arg1 ) ;
} ) ,
removeAnimatedEventFromView ( closure _4 , closure _0 , animatedValueTag ) {
const result = obj . removeAnimatedEventFromView ( closure _4 , closure _0 , animatedValueTag ) ;
} ,
restoreDefaultValues ( self ) {
const restoreDefaultValues = obj . restoreDefaultValues ;
if ( restoreDefaultValues != null ) {
restoreDefaultValues ( self ) ;
}
} ,
setAnimatedNodeOffset ( self , _offset ) {
const result = obj . setAnimatedNodeOffset ( self , _offset ) ;
} ,
setAnimatedNodeValue ( self , _startingValue ) {
obj . setAnimatedNodeValue ( self , _startingValue ) ;
} ,
setWaitingForIdentifier ( combined ) {
if ( ! result1 ) {
set . add ( combined ) ;
2026-08-24 06:08:38 +00:00
c8 = true ;
obj = importAllResult1 ;
2026-07-29 08:29:29 +00:00
if ( tmp6 ) {
const _clearImmediate = clearImmediate ;
2026-08-24 06:08:38 +00:00
clearImmediate ( closure _11 ) ;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
tmp6 = importAllResult1 . animatedShouldDebounceQueueFlush ( ) && closure _11 ;
2026-07-29 08:29:29 +00:00
}
} ,
startAnimatingNode : result ? ( ( arg0 , arg1 , arg2 , arg3 ) => {
if ( arg3 ) {
closure _13 [ arg0 ] = arg3 ;
}
obj . startAnimatingNode ( arg0 , arg1 , arg2 ) ;
} ) : ( ( arg0 , arg1 , arg2 , arg3 ) => {
obj . startAnimatingNode ( arg0 , arg1 , arg2 , arg3 ) ;
} ) ,
startListeningToAnimatedNodeValue ( _ _getNativeTagResult ) {
const result = obj . startListeningToAnimatedNodeValue ( _ _getNativeTagResult ) ;
} ,
stopAnimation ( arg0 ) {
obj . stopAnimation ( arg0 ) ;
} ,
stopListeningToAnimatedNodeValue ( closure _1 ) {
const result = obj . stopListeningToAnimatedNodeValue ( closure _1 ) ;
} ,
unsetWaitingForIdentifier ( combined ) {
if ( ! result1 ) {
set . delete ( combined ) ;
if ( 0 === set . size ) {
2026-08-24 06:08:38 +00:00
c8 = false ;
2026-07-29 08:29:29 +00:00
obj . disableQueue ( ) ;
}
}
} ,
updateAnimatedNodeConfig ( arg0 , self ) {
const updateAnimatedNodeConfig = obj . updateAnimatedNodeConfig ;
if ( updateAnimatedNodeConfig != null ) {
const result = updateAnimatedNodeConfig ( arg0 , self ) ;
}
}
} ;
let c19 = false ;
const obj1 = {
API : obj ,
assertNativeAnimatedModule ( ) {
2026-08-24 06:08:38 +00:00
callback ( 38 ) ( closure _4 , "Native animated module is not available" ) ;
2026-07-29 08:29:29 +00:00
} ,
generateNewAnimationId ( ) {
2026-08-24 06:08:38 +00:00
closure _6 = tmp + 1 ;
2026-07-29 08:29:29 +00:00
return + closure _6 ;
} ,
generateNewNodeTag ( ) {
2026-08-24 06:08:38 +00:00
closure _5 = tmp + 1 ;
2026-07-29 08:29:29 +00:00
return + closure _5 ;
}
} ;
Object . defineProperty ( obj1 , "nativeEventEmitter" , {
get : ( ) => {
let tmp = closure _3 ;
if ( ! closure _3 ) {
2026-08-24 06:08:38 +00:00
const tmp7 = new callback ( 209 ) ( null ) ;
2026-07-29 08:29:29 +00:00
closure _3 = tmp7 ;
tmp = tmp7 ;
}
return tmp ;
} ,
set : undefined
} ) ;
obj1 . shouldSignalBatch = result1 ;
obj1 . shouldUseNativeDriver = function shouldUseNativeDriver ( useNativeDriver ) {
if ( null == useNativeDriver . useNativeDriver ) {
const _console = console ;
console . warn ( "Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`" ) ;
}
if ( true === useNativeDriver . useNativeDriver ) {
if ( ! closure _4 ) {
let flag = false ;
if ( ! c19 ) {
const _console2 = console ;
console . warn ( "Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md" ) ;
c19 = true ;
flag = false ;
}
}
return flag ;
}
flag = useNativeDriver . useNativeDriver || false ;
} ;
obj1 . transformDataType = function transformDataType ( str ) {
2026-08-04 21:03:28 +00:00
if ( typeof str !== "string" ) {
2026-07-29 08:29:29 +00:00
return str ;
} else if ( str . endsWith ( "deg" ) ) {
const _parseFloat2 = parseFloat ;
const _Math = Math ;
let result = ( parseFloat ( str ) || 0 ) * Math . PI / 180 ;
const tmp5 = parseFloat ( str ) || 0 ;
} else {
result = str ;
if ( str . endsWith ( "rad" ) ) {
const _parseFloat = parseFloat ;
result = parseFloat ( str ) || 0 ;
const tmp3 = parseFloat ( str ) || 0 ;
}
}
} ;
export default obj1 ;