41 lines
1.8 KiB
JavaScript
41 lines
1.8 KiB
JavaScript
// Module ID: 10068
|
|
// Function ID: 10069
|
|
// Name: dealWithAnimation
|
|
// Dependencies: [1634]
|
|
|
|
// Module 10068 (dealWithAnimation)
|
|
const require = arg1;
|
|
const dependencyMap = arg6;
|
|
let closure_2 = { code: "function pnpm_dealWithAnimationTs2(isFinished){const{cb}=this.__closure;return cb(isFinished);}" };
|
|
let closure_3 = { code: "function pnpm_dealWithAnimationTs3(isFinished){const{cb}=this.__closure;return cb(isFinished);}" };
|
|
function dealWithAnimation(type) {
|
|
let closure_0 = type;
|
|
type = type.type;
|
|
if ("spring" === type) {
|
|
return (value, cb) => {
|
|
const type = cb;
|
|
const fn = function o(arg0) {
|
|
return cb(arg0);
|
|
};
|
|
fn.__closure = { cb };
|
|
fn.__workletHash = 5381689684735;
|
|
fn.__initData = outer1_2;
|
|
return type(outer1_1[0]).withSpring(value, type.config, fn);
|
|
};
|
|
} else {
|
|
return "timing" === type ? ((value, cb) => {
|
|
const type = cb;
|
|
const fn = function o(arg0) {
|
|
return cb(arg0);
|
|
};
|
|
fn.__closure = { cb };
|
|
fn.__workletHash = 457847741022;
|
|
fn.__initData = outer1_3;
|
|
return type(outer1_1[0]).withTiming(value, type.config, fn);
|
|
}) : undefined;
|
|
}
|
|
}
|
|
dealWithAnimation.__closure = { withSpring: require("cancelAnimation").withSpring, withTiming: require("cancelAnimation").withTiming };
|
|
dealWithAnimation.__workletHash = 2113361159301;
|
|
dealWithAnimation.__initData = { code: "function dealWithAnimation_Pnpm_dealWithAnimationTs1(withAnimation){const{withSpring,withTiming}=this.__closure;switch(withAnimation.type){case\"spring\":return function(value,cb){return withSpring(value,withAnimation.config,function(isFinished){return cb(isFinished);});};case\"timing\":return function(value,cb){return withTiming(value,withAnimation.config,function(isFinished){return cb(isFinished);});};}}" };
|
|
arg5.dealWithAnimation = dealWithAnimation;
|