decord/source/1776__isNativeReflectConstruct.js
2026-08-24 06:08:38 +00:00

154 lines
6.1 KiB
JavaScript

// Module ID: 1776
// Function ID: 1777
// Name: _isNativeReflectConstruct
// Dependencies: [32, 41, 42, 93, 95, 98, 1724]
// Module 1776 (_isNativeReflectConstruct)
import PinwheelOut from "_slicedToArray" /* 32 */;
import closure_1 from "_classCallCheck" /* 41 */;
import importDefaultResult from "_createClass" /* 42 */;
import closure_2 from "_possibleConstructorReturn" /* 93 */;
import closure_3 from "_getPrototypeOf" /* 95 */;
import importDefaultResult1 from "_inherits" /* 98 */;
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);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
let closure_5 = { code: "function pnpm_PinwheelTs1(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{scale:delayFunction(delay,animation(1,config))},{rotate:delayFunction(delay,animation('0rad',config))}]},initialValues:{opacity:0,transform:[{scale:0},{rotate:'5rad'}],...initialValues},callback:callback};}" };
class PinwheelIn {
constructor() {
self = this;
items = [...arguments];
closure_0 = undefined;
tmp = closure_1(this, closure_0);
items1 = [...items];
tmp2 = closure_3;
obj = closure_3(closure_0);
tmp3 = closure_2;
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items1);
}
tmp3Result = tmp3(self, constructResult);
closure_0 = tmp3Result;
tmp3Result.build = () => {
delayFunction = delayFunction.getDelayFunction();
const tmp2 = callback(delayFunction.getAnimationAndConfig(), 2);
const first = tmp2[0];
closure_2 = tmp4;
const delay = delayFunction.getDelay();
const callbackV = delayFunction.callbackV;
const initialValues = delayFunction.initialValues;
const fn = function e() {
let obj = { animations: null, initialValues: null, callback: null };
obj = { opacity: delayFunction(delay, first(1, closure_2)), transform: null };
obj = { scale: delayFunction(delay, first(1, closure_2)) };
const items = [obj, { rotate: delayFunction(delay, first("0rad", closure_2)) }];
obj[1] = items;
obj[0] = obj;
const items1 = [{ scale: 0 }, { rotate: "5rad" }];
const merged = Object.assign(initialValues);
obj[1] = { opacity: 0, transform: items1 };
obj[2] = callbackV;
return obj;
};
fn.__closure = { delayFunction, delay, animation: first, config: tmp2[1], initialValues, callback: callbackV };
fn.__workletHash = 8890961567516;
fn.__initData = closure_1_5;
return fn;
};
return tmp3Result;
}
}
PinwheelOut = PinwheelIn;
importDefaultResult1(PinwheelIn, require("BaseAnimationBuilder").ComplexAnimationBuilder);
let obj = {
key: "createInstance",
value: function createInstance() {
return PinwheelOut();
}
};
let items = [obj];
const importDefaultResultResult = importDefaultResult(PinwheelIn, null, items);
importDefaultResultResult.presetName = "PinwheelIn";
let closure_6 = { code: "function pnpm_PinwheelTs2(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{scale:delayFunction(delay,animation(0,config))},{rotate:delayFunction(delay,animation('5rad',config))}]},initialValues:{opacity:1,transform:[{scale:1},{rotate:'0rad'}],...initialValues},callback:callback};}" };
class PinwheelOut {
constructor() {
self = this;
items = [...arguments];
closure_0 = undefined;
tmp = closure_1(this, closure_0);
items1 = [...items];
tmp2 = closure_3;
obj = closure_3(closure_0);
tmp3 = closure_2;
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items1);
}
tmp3Result = tmp3(self, constructResult);
closure_0 = tmp3Result;
tmp3Result.build = () => {
delayFunction = delayFunction.getDelayFunction();
const tmp2 = callback(delayFunction.getAnimationAndConfig(), 2);
const first = tmp2[0];
closure_2 = tmp4;
const delay = delayFunction.getDelay();
const callbackV = delayFunction.callbackV;
const initialValues = delayFunction.initialValues;
const fn = function e() {
let obj = { animations: null, initialValues: null, callback: null };
obj = { opacity: delayFunction(delay, first(0, closure_2)), transform: null };
obj = { scale: delayFunction(delay, first(0, closure_2)) };
const items = [obj, { rotate: delayFunction(delay, first("5rad", closure_2)) }];
obj[1] = items;
obj[0] = obj;
const items1 = [{ scale: 1 }, { rotate: "0rad" }];
const merged = Object.assign(initialValues);
obj[1] = { opacity: 1, transform: items1 };
obj[2] = callbackV;
return obj;
};
fn.__closure = { delayFunction, delay, animation: first, config: tmp2[1], initialValues, callback: callbackV };
fn.__workletHash = 15028563671839;
fn.__initData = closure_1_6;
return fn;
};
return tmp3Result;
}
}
importDefaultResult1(PinwheelOut, require("BaseAnimationBuilder").ComplexAnimationBuilder);
obj = {
key: "createInstance",
value: function createInstance() {
return PinwheelOut();
}
};
let items1 = [obj];
const importDefaultResultResult1 = importDefaultResult(PinwheelOut, null, items1);
importDefaultResultResult1.presetName = "PinwheelOut";
export const PinwheelIn = importDefaultResultResult;
export const PinwheelOut = importDefaultResultResult1;