2026-08-15 05:55:55 +00:00
// Module ID: 1800
// Function ID: 1801
2026-07-29 08:29:29 +00:00
// Name: isAnimated
2026-08-15 05:55:55 +00:00
// Dependencies: [1679, 1665]
2026-07-29 08:29:29 +00:00
2026-08-15 05:55:55 +00:00
// Module 1800 (isAnimated)
2026-07-29 08:29:29 +00:00
let isAnimated = arg1 ;
let dependencyMap = arg6 ;
isAnimated = function isAnimated ( arr ) {
if ( Array . isArray ( arr ) ) {
let someResult = arr . some ( isAnimated ) ;
} else {
2026-08-04 21:03:28 +00:00
someResult = typeof arr === "object" ;
if ( typeof arr === "object" ) {
2026-07-29 08:29:29 +00:00
someResult = null !== arr ;
}
if ( someResult ) {
let someResult1 = undefined !== arr . onFrame ;
if ( ! someResult1 ) {
const _Object = Object ;
const values = Object . values ( arr ) ;
someResult1 = values . some ( isAnimated ) ;
}
someResult = someResult1 ;
}
}
return someResult ;
} ;
isAnimated . _ _closure = { } ;
isAnimated . _ _workletHash = 4296700641760 ;
isAnimated . _ _initData = { code : "function isAnimated_Pnpm_utilsTs1(prop){const isAnimated_Pnpm_utilsTs1=this._recur;if(Array.isArray(prop)){return prop.some(isAnimated_Pnpm_utilsTs1);}else if(typeof prop==='object'&&prop!==null){if(prop.onFrame!==undefined){return true;}else{return Object.values(prop).some(isAnimated_Pnpm_utilsTs1);}}return false;}" } ;
function shallowEqual ( arg0 , arg1 ) {
const keys = Object . keys ( arg0 ) ;
if ( keys . length !== Object . keys ( arg1 ) . length ) {
return false ;
} else {
let num = 0 ;
if ( 0 < keys . length ) {
while ( arg0 [ keys [ num ] ] === arg1 [ keys [ num ] ] ) {
num = num + 1 ;
}
return false ;
}
return true ;
}
}
shallowEqual . _ _closure = { } ;
shallowEqual . _ _workletHash = 6945711106539 ;
shallowEqual . _ _initData = { code : "function shallowEqual_Pnpm_utilsTs2(a,b){const aKeys=Object.keys(a);const bKeys=Object.keys(b);if(aKeys.length!==bKeys.length){return false;}for(let i=0;i<aKeys.length;i++){if(a[aKeys[i]]!==b[aKeys[i]]){return false;}}return true;}" } ;
2026-08-04 21:03:28 +00:00
function validateAnimatedStyles ( obj ) {
if ( typeof obj !== "object" ) {
2026-07-29 08:29:29 +00:00
const _HermesInternal = HermesInternal ;
2026-08-15 05:55:55 +00:00
const reanimatedError = new isAnimated ( 1665 ) . ReanimatedError ( "`useAnimatedStyle` has to return an object, found " + typeof obj + " instead." ) ;
2026-07-29 08:29:29 +00:00
throw reanimatedError ;
} else {
const _Array = Array ;
2026-08-04 21:03:28 +00:00
if ( Array . isArray ( obj ) ) {
2026-08-15 05:55:55 +00:00
const reanimatedError1 = new isAnimated ( 1665 ) . ReanimatedError ( "`useAnimatedStyle` has to return an object and cannot return static styles combined with dynamic ones. Please do merging where a component receives props." ) ;
2026-07-29 08:29:29 +00:00
throw reanimatedError1 ;
}
}
}
validateAnimatedStyles . _ _closure = { } ;
validateAnimatedStyles . _ _workletHash = 9250446401049 ;
validateAnimatedStyles . _ _initData = { code : "function validateAnimatedStyles_Pnpm_utilsTs3(styles){if(typeof styles!=='object'){throw new ReanimatedError(\"`useAnimatedStyle` has to return an object, found \"+typeof styles+\" instead.\");}else if(Array.isArray(styles)){throw new ReanimatedError('`useAnimatedStyle` has to return an object and cannot return static styles combined with dynamic ones. Please do merging where a component receives props.');}}" } ;
arg5 . buildWorkletsHash = function buildWorkletsHash ( items1 ) {
const values = Object . values ( items1 ) ;
return values . reduce ( ( arg0 , _ _workletHash ) => arg0 + _ _workletHash . _ _workletHash . toString ( ) , "" ) ;
} ;
2026-08-08 06:10:11 +00:00
arg5 . buildDependencies = function buildDependencies ( arr , memoizedGestureCallbacks ) {
let values = Object . values ( memoizedGestureCallbacks ) ;
2026-07-29 08:29:29 +00:00
const found = values . filter ( ( arg0 ) => undefined !== arg0 ) ;
let tmp2 = found ;
if ( arr ) {
const _Object = Object ;
values = Object . values ( found ) ;
arr . push ( values . reduce ( ( arg0 , _ _workletHash ) => arg0 + _ _workletHash . _ _workletHash . toString ( ) , "" ) ) ;
tmp2 = arr ;
}
return tmp2 ;
} ;
arg5 . areDependenciesEqual = function areDependenciesEqual ( dependencies , savedDependencies ) {
2026-08-04 21:03:28 +00:00
if ( typeof Object . is === "function" ) {
2026-07-29 08:29:29 +00:00
const _Object = Object ;
} else {
is = function is ( arg0 , arg1 ) {
let tmp = arg0 === arg1 ;
if ( tmp ) {
let tmp2 = 0 !== arg0 ;
if ( ! tmp2 ) {
tmp2 = 1 / arg0 === 1 / arg1 ;
}
tmp = tmp2 ;
}
if ( ! tmp ) {
const _Number = Number ;
let isNaNResult = Number . isNaN ( arg0 ) ;
if ( isNaNResult ) {
const _Number2 = Number ;
isNaNResult = Number . isNaN ( arg1 ) ;
}
tmp = isNaNResult ;
}
return tmp ;
} ;
}
let flag = false ;
if ( dependencies ) {
flag = false ;
if ( savedDependencies ) {
flag = false ;
if ( savedDependencies . length === dependencies . length ) {
let num = 0 ;
flag = true ;
if ( 0 < savedDependencies . length ) {
while ( true ) {
let tmp2 = dependencies [ num ] ;
let tmp3 = savedDependencies [ num ] ;
let tmp4 = num ;
if ( is ( tmp2 , tmp3 ) ) {
let sum = num + 1 ;
num = sum ;
flag = true ;
if ( sum >= savedDependencies . length ) {
break ;
}
} else {
let tmp5 = isAnimated ;
let tmp6 = dependencyMap ;
2026-08-15 05:55:55 +00:00
let obj = isAnimated ( 1679 ) ;
2026-07-29 08:29:29 +00:00
flag = false ;
if ( ! obj . isWorkletFunction ( tmp2 ) ) {
break ;
} else {
2026-08-15 05:55:55 +00:00
let tmp5Result = tmp5 ( 1679 ) ;
2026-07-29 08:29:29 +00:00
flag = false ;
if ( ! tmp5Result . isWorkletFunction ( tmp3 ) ) {
break ;
} else {
isAnimated = tmp2 ;
dependencyMap = tmp3 ;
let flag2 = false ;
if ( tmp2 . _ _workletHash === tmp3 . _ _workletHash ) {
let _Object2 = Object ;
let keys = Object . keys ( tmp2 . _ _closure ) ;
let _Object3 = Object ;
let tmp7 = keys . length === Object . keys ( tmp3 . _ _closure ) . length && keys . every ( ( arg0 ) => {
2026-08-24 06:08:38 +00:00
let tmp2 = arg0 in _ _closure2 . _ _closure ;
2026-07-29 08:29:29 +00:00
if ( tmp2 ) {
2026-08-24 06:08:38 +00:00
tmp2 = _ _closure . _ _closure [ arg0 ] === tmp . _ _closure [ arg0 ] ;
2026-07-29 08:29:29 +00:00
}
return tmp2 ;
} ) ;
flag2 = tmp7 ;
}
flag = false ;
if ( ! flag2 ) {
break ;
}
}
}
}
break ;
}
}
}
}
}
return flag ;
} ;
arg5 . isAnimated = isAnimated ;
arg5 . shallowEqual = shallowEqual ;
arg5 . validateAnimatedStyles = validateAnimatedStyles ;