decord/source/1787__isNativeReflectConstruct.js

90 lines
3.8 KiB
JavaScript
Raw Normal View History

2026-08-11 06:20:06 +00:00
// Module ID: 1787
// Function ID: 1788
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-15 05:55:55 +00:00
// Dependencies: [32, 41, 42, 93, 95, 98, 1724]
2026-07-29 08:29:29 +00:00
2026-08-11 06:20:06 +00:00
// Module 1787 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import _inheritsDefault from "_inherits" /* 98 */;
import LinearTransition from "_slicedToArray" /* 32 */;
import closure_1 from "_classCallCheck" /* 41 */;
import closure_2 from "_possibleConstructorReturn" /* 93 */;
import closure_3 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
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_5 = { code: "function pnpm_LinearTransitionTs1(values){const{delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,animation(values.targetOriginX,config)),originY:delayFunction(delay,animation(values.targetOriginY,config)),width:delayFunction(delay,animation(values.targetWidth,config)),height:delayFunction(delay,animation(values.targetHeight,config))},callback:callback};}" };
class LinearTransition {
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_1(this, closure_0);
2026-07-29 08:29:29 +00:00
items1 = [...items];
2026-08-24 06:08:38 +00:00
tmp2 = closure_3;
obj = closure_3(closure_0);
tmp3 = closure_2;
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-07-29 08:29:29 +00:00
tmp3Result.build = () => {
delayFunction = delayFunction.getDelayFunction();
2026-08-24 06:08:38 +00:00
const tmp2 = callback(delayFunction.getAnimationAndConfig(), 2);
2026-08-15 05:55:55 +00:00
const first = tmp2[0];
2026-08-24 06:08:38 +00:00
closure_2 = tmp4;
2026-07-29 08:29:29 +00:00
const callbackV = delayFunction.callbackV;
const delay = delayFunction.getDelay();
2026-08-15 05:55:55 +00:00
const fn = function t(currentOriginX) {
2026-07-29 08:29:29 +00:00
obj = { initialValues: obj, animations: null, callback: null };
obj = { originX: currentOriginX.currentOriginX, originY: currentOriginX.currentOriginY, width: currentOriginX.currentWidth, height: currentOriginX.currentHeight };
2026-08-24 06:08:38 +00:00
obj = { originX: delayFunction(delay, first(currentOriginX.targetOriginX, closure_2)), originY: delayFunction(delay, first(currentOriginX.targetOriginY, closure_2)), width: delayFunction(delay, first(currentOriginX.targetWidth, closure_2)), height: delayFunction(delay, first(currentOriginX.targetHeight, closure_2)) };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
obj[2] = callbackV;
return obj;
};
2026-08-15 05:55:55 +00:00
fn.__closure = { delayFunction, delay, animation: first, config: tmp2[1], callback: callbackV };
fn.__workletHash = 16224579837767;
2026-08-24 06:08:38 +00:00
fn.__initData = closure_1_5;
2026-07-29 08:29:29 +00:00
return fn;
};
return tmp3Result;
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault(LinearTransition, require("BaseAnimationBuilder").ComplexAnimationBuilder);
2026-08-15 05:55:55 +00:00
let items = [
2026-07-29 08:29:29 +00:00
{
2026-08-15 05:55:55 +00:00
key: "createInstance",
value: function createInstance() {
return LinearTransition();
2026-07-29 08:29:29 +00:00
}
}
];
2026-08-15 05:55:55 +00:00
const importDefaultResultResult = importDefaultResult(LinearTransition, null, items);
importDefaultResultResult.presetName = "LinearTransition";
2026-07-29 08:29:29 +00:00
2026-08-15 05:55:55 +00:00
export const LinearTransition = importDefaultResultResult;
export const Layout = importDefaultResultResult;