2026-08-11 06:20:06 +00:00
// Module ID: 1784
// Function ID: 1785
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-15 05:55:55 +00:00
// Dependencies: [41, 42, 93, 95, 98, 1773, 1726, 1658, 1724]
// Exports: combineTransition
2026-07-29 08:29:29 +00:00
2026-08-11 06:20:06 +00:00
// Module 1784 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import _inheritsDefault from "_inherits" /* 98 */ ;
import closure _2 from "_classCallCheck" /* 41 */ ;
import closure _3 from "_possibleConstructorReturn" /* 93 */ ;
import closure _4 from "_getPrototypeOf" /* 95 */ ;
import importDefaultResult from "_createClass" /* 42 */ ;
2026-07-29 08:29:29 +00:00
2026-08-15 05:55:55 +00:00
const EntryExitTransition = arg1 ;
2026-07-29 08:29:29 +00:00
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 ) {
}
}
2026-08-15 05:55:55 +00:00
let closure _6 = { code : "function pnpm_EntryExitTransitionTs1(values){const{enteringAnimation,exitingAnimation,delayFunction,delay,withSequence,withTiming,exitingDuration,logger,callback}=this.__closure;const enteringValues=enteringAnimation(values);const exitingValues=exitingAnimation(values);const animations={transform:[]};for(const prop of Object.keys(exitingValues.animations)){if(prop==='transform'){if(!Array.isArray(exitingValues.animations.transform)){continue;}exitingValues.animations.transform.forEach(function(value,index){for(const transformProp of Object.keys(value)){animations.transform.push({[transformProp]:delayFunction(delay,withSequence(value[transformProp],withTiming(exitingValues.initialValues.transform?exitingValues.initialValues.transform[index][transformProp]:0,{duration:0})))});}});}else{const sequence=enteringValues.animations[prop]!==undefined?[exitingValues.animations[prop],withTiming(enteringValues.initialValues[prop],{duration:0}),enteringValues.animations[prop]]:[exitingValues.animations[prop],withTiming(Object.keys(values).includes(prop)?values[prop]:exitingValues.initialValues[prop],{duration:0})];animations[prop]=delayFunction(delay,withSequence(...sequence));}}for(const prop of Object.keys(enteringValues.animations)){if(prop==='transform'){if(!Array.isArray(enteringValues.animations.transform)){continue;}enteringValues.animations.transform.forEach(function(value,index){for(const transformProp of Object.keys(value)){animations.transform.push({[transformProp]:delayFunction(delay+exitingDuration,withSequence(withTiming(enteringValues.initialValues.transform?enteringValues.initialValues.transform[index][transformProp]:0,{duration:exitingDuration}),value[transformProp]))});}});}else if(animations[prop]!==undefined){continue;}else{animations[prop]=delayFunction(delay,withSequence(withTiming(enteringValues.initialValues[prop],{duration:0}),enteringValues.animations[prop]));}}const mergedTransform=(Array.isArray(exitingValues.initialValues.transform)?exitingValues.initialValues.transform:[]).concat((Array.isArray(enteringValues.animations.transform)?enteringValues.animations.transform:[]).map(function(value){const objectKeys=Object.keys(value);if((objectKeys===null||objectKeys===void 0?void 0:objectKeys.length)<1){logger.error(\"${value} is not a valid Transform object\");return value;}const transformProp=objectKeys[0];const current=value[transformProp].current;if(typeof current==='string'){if(current.includes('deg')){return{[transformProp]:'0deg'};}else{return{[transformProp]:'0'};}}else if(transformProp.includes('translate')){return{[transformProp]:0};}else{return{[transformProp]:1};}}));return{initialValues:{...exitingValues.initialValues,originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight,transform:mergedTransform},animations:{originX:delayFunction(delay+exitingDuration,withTiming(values.targetOriginX,{duration:exitingDuration})),originY:delayFunction(delay+exitingDuration,withTiming(values.targetOriginY,{duration:exitingDuration})),width:delayFunction(delay+exitingDuration,withTiming(values.targetWidth,{duration:exitingDuration})),height:delayFunction(delay+exitingDuration,withTiming(values.targetHeight,{duration:exitingDuration})),...animations},callback:callback};}" } ;
class EntryExitTransition {
2026-07-29 08:29:29 +00:00
constructor ( ) {
self = this ;
items = [ ... arguments ] ;
2026-08-24 06:08:38 +00:00
closure _0 = undefined ;
tmp = closure _2 ( this , closure _0 ) ;
2026-07-29 08:29:29 +00:00
items1 = [ ... items ] ;
2026-08-24 06:08:38 +00:00
tmp2 = closure _4 ;
obj = closure _4 ( closure _0 ) ;
tmp3 = closure _3 ;
2026-07-29 08:29:29 +00:00
if ( _isNativeReflectConstruct ( ) ) {
tmp5 = globalThis ;
_Reflect = Reflect ;
constructResult = Reflect . construct ( obj , items1 , tmp2 ( self ) . constructor ) ;
} else {
constructResult = obj . apply ( self , items1 ) ;
}
tmp3Result = tmp3 ( self , constructResult ) ;
2026-08-24 06:08:38 +00:00
closure _0 = tmp3Result ;
2026-08-15 05:55:55 +00:00
tmp3Result . enteringV = require ( "_isNativeReflectConstruct" ) . FadeIn ;
tmp3Result . exitingV = require ( "_isNativeReflectConstruct" ) . FadeOut ;
2026-07-29 08:29:29 +00:00
tmp3Result . build = ( ) => {
delayFunction = delayFunction . getDelayFunction ( ) ;
2026-08-24 06:08:38 +00:00
const callbackV = delayFunction . callbackV ;
2026-07-29 08:29:29 +00:00
const delay = delayFunction . getDelay ( ) ;
2026-08-15 05:55:55 +00:00
const enteringV = delayFunction . enteringV ;
const buildResult = enteringV . build ( ) ;
2026-08-24 06:08:38 +00:00
closure _3 = buildResult ;
2026-08-15 05:55:55 +00:00
const exitingV = delayFunction . exitingV ;
const buildResult1 = exitingV . build ( ) ;
const exitingV2 = delayFunction . exitingV ;
const duration = exitingV2 . getDuration ( ) ;
const fn = function n ( targetOriginX ) {
const tmp = buildResult ( targetOriginX ) ;
2026-08-24 06:08:38 +00:00
delayFunction = tmp ;
2026-08-15 05:55:55 +00:00
let tmp2 = buildResult1 ( targetOriginX ) ;
2026-08-24 06:08:38 +00:00
closure _1 = tmp2 ;
2026-08-15 05:55:55 +00:00
let obj = { transform : [ ] } ;
let keys = Object . keys ( tmp2 . animations ) ;
const iter = keys [ Symbol . iterator ] ( ) ;
const nextResult = iter . next ( ) ;
while ( iter !== undefined ) {
let tmp5 = nextResult ;
if ( "transform" === nextResult ) {
let _Array = Array ;
if ( Array . isArray ( tmp2 . animations . transform ) ) {
let transform = tmp2 . animations . transform ;
let item = transform . forEach ( ( arg0 , arg1 ) => {
const keys = Object . keys ( arg0 ) ;
for ( const item10011 of keys ) {
let tmp3 = obj ;
let transform = obj . transform ;
let tmp6 = delayFunction ;
let tmp7 = callbackV ;
let tmp2 = item10011 ;
let tmp4 = closure _0 ;
let tmp5 = obj ;
2026-08-24 06:08:38 +00:00
obj = delayFunction ( callbackV [ 6 ] ) ;
2026-08-15 05:55:55 +00:00
let obj2 = delayFunction ( callbackV [ 6 ] ) ;
let num = 0 ;
2026-08-24 06:08:38 +00:00
if ( closure _1 . initialValues . transform ) {
2026-08-15 05:55:55 +00:00
let tmp8 = item10011 ;
2026-08-24 06:08:38 +00:00
num = closure _1 . initialValues . transform [ arg1 ] [ tmp2 ] ;
2026-08-15 05:55:55 +00:00
}
obj = { } ;
obj [ item10011 ] = tmp4 ( tmp5 , obj . withSequence ( arg0 [ item10011 ] , obj2 . withTiming ( num , { duration : 0 } ) ) ) ;
let arr = transform . push ( obj ) ;
continue ;
}
} ) ;
}
continue ;
} else {
let tmp45 = nextResult ;
if ( undefined !== tmp . animations [ tmp5 ] ) {
let tmp12 = nextResult ;
let items = [ tmp2 . animations [ tmp5 ] , , ] ;
let tmp13 = delayFunction ;
let tmp14 = callbackV ;
let obj3 = delayFunction ( callbackV [ 6 ] ) ;
items [ 1 ] = obj3 . withTiming ( tmp . initialValues [ tmp5 ] , { duration : 0 } ) ;
items [ 2 ] = tmp . animations [ tmp5 ] ;
let items1 = items ;
} else {
let tmp6 = nextResult ;
items1 = [ tmp2 . animations [ tmp5 ] , ] ;
let tmp7 = delayFunction ;
let tmp8 = callbackV ;
2026-08-24 06:08:38 +00:00
obj1 = delayFunction ( callbackV [ 6 ] ) ;
2026-08-15 05:55:55 +00:00
let _Object = Object ;
let keys1 = Object . keys ( targetOriginX ) ;
if ( keys1 . includes ( tmp5 ) ) {
let tmp11 = nextResult ;
let tmp10 = targetOriginX [ tmp5 ] ;
} else {
let tmp9 = nextResult ;
tmp10 = tmp2 . initialValues [ tmp5 ] ;
}
items1 [ 1 ] = obj1 . withTiming ( tmp10 , { duration : 0 } ) ;
}
let tmp15 = nextResult ;
let tmp16 = delayFunction ;
let tmp17 = obj ;
let tmp18 = delayFunction ;
let tmp19 = callbackV ;
let tmp20 = delayFunction ( callbackV [ 6 ] ) ;
let withSequence = tmp20 . withSequence ;
let items2 = [ ] ;
let tmp21 = items2 ;
let tmp22 = items1 ;
let num = 0 ;
let arraySpreadResult = HermesBuiltin . arraySpread ( items1 , 0 ) ;
let tmp24 = withSequence ;
let tmp25 = items2 ;
let tmp26 = tmp20 ;
obj [ tmp5 ] = delayFunction ( obj , HermesBuiltin . apply ( items2 , tmp20 ) ) ;
}
continue ;
}
const keys2 = Object . keys ( tmp . animations ) ;
for ( const item10093 of keys2 ) {
let tmp29 = item10093 ;
if ( "transform" === item10093 ) {
let _Array2 = Array ;
if ( Array . isArray ( tmp . animations . transform ) ) {
let transform1 = tmp . animations . transform ;
let item1 = transform1 . forEach ( ( arg0 , arg1 ) => {
const keys = Object . keys ( arg0 ) ;
for ( const item10011 of keys ) {
let tmp2 = item10011 ;
let tmp3 = obj ;
let transform = obj . transform ;
let tmp5 = obj ;
let tmp8 = delayFunction ;
let tmp9 = callbackV ;
2026-08-24 06:08:38 +00:00
let tmp4 = lib ;
let tmp6 = closure _1 _5 ;
let sum = obj + closure _1 _5 ;
obj = delayFunction ( callbackV [ 6 ] ) ;
2026-08-15 05:55:55 +00:00
let obj2 = delayFunction ( callbackV [ 6 ] ) ;
let num = 0 ;
2026-08-24 06:08:38 +00:00
if ( lib . initialValues . transform ) {
2026-08-15 05:55:55 +00:00
let tmp10 = item10011 ;
2026-08-24 06:08:38 +00:00
num = lib . initialValues . transform [ arg1 ] [ tmp2 ] ;
2026-08-15 05:55:55 +00:00
}
obj = { } ;
obj = { duration : null } ;
obj [ 0 ] = tmp6 ;
let tmp11 = item10011 ;
obj [ item10011 ] = tmp4 ( sum , obj . withSequence ( obj2 . withTiming ( num , obj ) , arg0 [ tmp2 ] ) ) ;
let arr = transform . push ( obj ) ;
continue ;
}
} ) ;
continue ;
}
continue ;
} else {
let tmp46 = item10093 ;
if ( undefined !== obj [ tmp29 ] ) {
continue ;
} else {
let tmp30 = item10093 ;
let tmp31 = delayFunction ;
let tmp32 = obj ;
let tmp33 = delayFunction ;
let tmp34 = callbackV ;
let obj4 = delayFunction ( callbackV [ 6 ] ) ;
let tmp35 = delayFunction ;
let tmp36 = callbackV ;
let obj5 = delayFunction ( callbackV [ 6 ] ) ;
obj [ tmp29 ] = delayFunction ( obj , obj4 . withSequence ( obj5 . withTiming ( tmp . initialValues [ tmp29 ] , { duration : 0 } ) , tmp . animations [ tmp29 ] ) ) ;
}
}
continue ;
}
if ( Array . isArray ( tmp2 . initialValues . transform ) ) {
let transform2 = tmp2 . initialValues . transform ;
} else {
transform2 = [ ] ;
}
if ( Array . isArray ( tmp . animations . transform ) ) {
let transform3 = tmp . animations . transform ;
} else {
transform3 = [ ] ;
}
obj = { initialValues : null , animations : null , callback : null } ;
obj = { } ;
const combined = transform2 . concat ( transform3 . map ( ( arg0 ) => {
const keys = Object . keys ( arg0 ) ;
let length ;
if ( keys != null ) {
length = keys . length ;
}
if ( length < 1 ) {
2026-08-24 06:08:38 +00:00
const logger = lib ( closure _1 [ 7 ] ) . logger ;
2026-08-15 05:55:55 +00:00
logger . error ( "${value} is not a valid Transform object" ) ;
return arg0 ;
} else {
const first = keys [ 0 ] ;
const current = arg0 [ first ] . current ;
if ( typeof current === "string" ) {
2026-08-24 06:08:38 +00:00
obj = { } ;
2026-08-15 05:55:55 +00:00
if ( current . includes ( "deg" ) ) {
obj [ first ] = "0deg" ;
let tmp3 = obj ;
} else {
obj [ first ] = "0" ;
tmp3 = obj ;
}
} else {
obj = { } ;
if ( first . includes ( "translate" ) ) {
obj [ first ] = 0 ;
2026-08-24 06:08:38 +00:00
let tmp2 = obj ;
2026-08-15 05:55:55 +00:00
} else {
obj [ first ] = 1 ;
tmp2 = obj ;
}
return tmp2 ;
}
}
} ) ) ;
const merged = Object . assign ( tmp2 . initialValues ) ;
( { currentOriginX : obj8 . originX , currentOriginY : obj8 . originY , currentWidth : obj8 . width , currentHeight : obj8 . height } = targetOriginX ) ;
obj . transform = combined ;
obj [ 0 ] = obj ;
2026-08-24 06:08:38 +00:00
obj1 = { originX : delayFunction ( sum , delayFunction ( callbackV [ 6 ] ) . withTiming ( targetOriginX . targetOriginX , { duration } ) ) , originY : null , width : null , height : null } ;
sum = obj + duration ;
2026-08-15 05:55:55 +00:00
const sum1 = obj + duration ;
const obj10 = delayFunction ( callbackV [ 6 ] ) ;
let obj2 = { duration } ;
obj3 = { duration } ;
obj1 [ 1 ] = delayFunction ( sum1 , delayFunction ( callbackV [ 6 ] ) . withTiming ( targetOriginX . targetOriginY , obj3 ) ) ;
const sum2 = obj + duration ;
const obj12 = delayFunction ( callbackV [ 6 ] ) ;
obj4 = { duration } ;
obj1 [ 2 ] = delayFunction ( sum2 , delayFunction ( callbackV [ 6 ] ) . withTiming ( targetOriginX . targetWidth , obj4 ) ) ;
const sum3 = obj + duration ;
const obj14 = delayFunction ( callbackV [ 6 ] ) ;
obj5 = { duration } ;
obj1 [ 3 ] = delayFunction ( sum3 , delayFunction ( callbackV [ 6 ] ) . withTiming ( targetOriginX . targetHeight , obj5 ) ) ;
const merged1 = Object . assign ( obj ) ;
obj [ 1 ] = obj1 ;
2026-08-24 06:08:38 +00:00
obj [ 2 ] = closure _1 ;
2026-07-29 08:29:29 +00:00
return obj ;
} ;
2026-08-24 06:08:38 +00:00
fn . _ _closure = { enteringAnimation : buildResult , exitingAnimation : buildResult1 , delayFunction , delay , withSequence : callback ( closure _1 _1 [ 6 ] ) . withSequence , withTiming : callback ( closure _1 _1 [ 6 ] ) . withTiming , exitingDuration : duration , logger : callback ( closure _1 _1 [ 7 ] ) . logger , callback : callbackV } ;
2026-08-15 05:55:55 +00:00
fn . _ _workletHash = 15677837188414 ;
2026-08-24 06:08:38 +00:00
fn . _ _initData = closure _1 _6 ;
2026-07-29 08:29:29 +00:00
return fn ;
} ;
return tmp3Result ;
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault ( EntryExitTransition , require ( "BaseAnimationBuilder" ) . BaseAnimationBuilder ) ;
2026-08-15 05:55:55 +00:00
let obj = {
key : "entering" ,
value : function entering ( enteringV ) {
this . enteringV = enteringV ;
return this ;
}
} ;
2026-07-29 08:29:29 +00:00
let items = [
2026-08-15 05:55:55 +00:00
obj ,
{
key : "exiting" ,
value : function exiting ( exitingV ) {
this . exitingV = exitingV ;
return this ;
}
}
] ;
obj = {
key : "createInstance" ,
value : function createInstance ( ) {
return EntryExitTransition ( ) ;
}
} ;
let items1 = [
obj ,
{
key : "entering" ,
value : function entering ( arg0 ) {
const instance = this . createInstance ( ) ;
return instance . entering ( arg0 ) ;
}
} ,
2026-07-29 08:29:29 +00:00
{
2026-08-15 05:55:55 +00:00
key : "exiting" ,
value : function exiting ( arg0 ) {
const instance = this . createInstance ( ) ;
return instance . exiting ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
}
] ;
2026-08-15 05:55:55 +00:00
const importDefaultResultResult = importDefaultResult ( EntryExitTransition , items , items1 ) ;
const error = importDefaultResultResult ;
importDefaultResultResult . presetName = "EntryExitTransition" ;
2026-07-29 08:29:29 +00:00
2026-08-15 05:55:55 +00:00
export const EntryExitTransition = importDefaultResultResult ;
export const combineTransition = function combineTransition ( arg0 , arg1 ) {
return importDefaultResultResult . entering ( arg1 ) . exiting ( arg0 ) ;
} ;