decord/source/1666__isNativeReflectConstruct.js
2026-07-21 22:01:30 +00:00

245 lines
7 KiB
JavaScript

// Module ID: 1666
// Function ID: 18472
// Name: _isNativeReflectConstruct
// Dependencies: []
// Module 1666 (_isNativeReflectConstruct)
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
let closure_2 = importDefault(dependencyMap[0]);
let closure_3 = importDefault(dependencyMap[1]);
let closure_4 = importDefault(dependencyMap[2]);
let closure_5 = importDefault(dependencyMap[3]);
let closure_6 = importDefault(dependencyMap[4]);
export const ComplexAnimationBuilder = (BaseAnimationBuilder) => {
class ComplexAnimationBuilder {
constructor() {
self = this;
tmp = closure_2(this, ComplexAnimationBuilder);
obj = closure_5(ComplexAnimationBuilder);
tmp2 = closure_4;
if (closure_7()) {
tmp6 = globalThis;
_Reflect = Reflect;
tmp7 = closure_5;
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, closure_5(self).constructor);
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
const arg1 = ComplexAnimationBuilder;
callback2(ComplexAnimationBuilder, BaseAnimationBuilder);
let obj = {
key: "easing",
value: function easing(easingV) {
this.easingV = easingV;
return this;
}
};
const items = [obj, , , , , , , , , , , ];
obj = {
key: "rotate",
value: function rotate(rotateV) {
this.rotateV = rotateV;
return this;
}
};
items[1] = obj;
obj = {
key: "springify",
value: function springify(durationV) {
this.durationV = durationV;
this.type = ComplexAnimationBuilder(closure_1[5]).withSpring;
return this;
}
};
items[2] = obj;
items[3] = {
key: "dampingRatio",
value: function dampingRatio(dampingRatioV) {
this.dampingRatioV = dampingRatioV;
return this;
}
};
items[4] = {
key: "damping",
value: function damping(dampingV) {
this.dampingV = dampingV;
return this;
}
};
items[5] = {
key: "mass",
value: function mass(massV) {
this.massV = massV;
return this;
}
};
items[6] = {
key: "stiffness",
value: function stiffness(stiffnessV) {
this.stiffnessV = stiffnessV;
return this;
}
};
items[7] = {
key: "overshootClamping",
value: function overshootClamping(overshootClampingV) {
this.overshootClampingV = overshootClampingV;
return this;
}
};
items[8] = {
key: "restDisplacementThreshold",
value: function restDisplacementThreshold(restDisplacementThresholdV) {
this.restDisplacementThresholdV = restDisplacementThresholdV;
return this;
}
};
items[9] = {
key: "restSpeedThreshold",
value: function restSpeedThreshold(restSpeedThresholdV) {
this.restSpeedThresholdV = restSpeedThresholdV;
return this;
}
};
items[10] = {
key: "withInitialValues",
value: function withInitialValues(initialValues) {
this.initialValues = initialValues;
return this;
}
};
items[11] = {
key: "getAnimationAndConfig",
value: function getAnimationAndConfig() {
let dampingRatioV;
let dampingV;
let durationV;
let easingV;
let massV;
let overshootClampingV;
let restDisplacementThresholdV;
let restSpeedThresholdV;
let rotateV;
let stiffnessV;
const self = this;
function maybeSetConfigValue(easingV, easing) {
if (easingV) {
obj[easing] = easingV;
}
}
({ durationV, easingV, rotateV } = this);
if (this.type) {
let withTiming = self.type;
} else {
withTiming = ComplexAnimationBuilder(maybeSetConfigValue[5]).withTiming;
}
const obj = {};
const ComplexAnimationBuilder = obj;
({ dampingV, dampingRatioV, massV, stiffnessV, overshootClampingV, restDisplacementThresholdV, restSpeedThresholdV } = self);
if (withTiming === ComplexAnimationBuilder(maybeSetConfigValue[5]).withTiming) {
maybeSetConfigValue(easingV, "easing");
}
const items = [{ variableName: "damping", value: dampingV }, { variableName: "dampingRatio", value: dampingRatioV }, { variableName: "mass", value: massV }, { variableName: "stiffness", value: stiffnessV }, { variableName: "overshootClamping", value: overshootClampingV }, { variableName: "restDisplacementThreshold", value: restDisplacementThresholdV }, { variableName: "restSpeedThreshold", value: restSpeedThresholdV }, { variableName: "duration", value: durationV }, { variableName: "rotate", value: rotateV }];
const item = items.forEach((value) => {
maybeSetConfigValue(value.value, value.variableName);
});
const items1 = [withTiming, obj];
return items1;
}
};
const items1 = [
{
key: "easing",
value: function easing(arg0) {
const instance = this.createInstance();
return instance.easing(arg0);
}
},
{
key: "rotate",
value: function rotate(arg0) {
const instance = this.createInstance();
return instance.rotate(arg0);
}
},
{
key: "springify",
value: function springify(arg0) {
const instance = this.createInstance();
return instance.springify(arg0);
}
},
{
key: "dampingRatio",
value: function dampingRatio(arg0) {
const instance = this.createInstance();
return instance.dampingRatio(arg0);
}
},
{
key: "damping",
value: function damping(arg0) {
const instance = this.createInstance();
return instance.damping(arg0);
}
},
{
key: "mass",
value: function mass(arg0) {
const instance = this.createInstance();
return instance.mass(arg0);
}
},
{
key: "stiffness",
value: function stiffness(arg0) {
const instance = this.createInstance();
return instance.stiffness(arg0);
}
},
{
key: "overshootClamping",
value: function overshootClamping(arg0) {
const instance = this.createInstance();
return instance.overshootClamping(arg0);
}
},
{
key: "restDisplacementThreshold",
value: function restDisplacementThreshold(arg0) {
const instance = this.createInstance();
return instance.restDisplacementThreshold(arg0);
}
},
{
key: "restSpeedThreshold",
value: function restSpeedThreshold(arg0) {
const instance = this.createInstance();
return instance.restSpeedThreshold(arg0);
}
},
{
key: "withInitialValues",
value: function withInitialValues(arg0) {
const instance = this.createInstance();
return instance.withInitialValues(arg0);
}
}
];
return callback(ComplexAnimationBuilder, items, items1);
}(arg1(dependencyMap[6]).BaseAnimationBuilder);