Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
88 lines
3.7 KiB
JavaScript
88 lines
3.7 KiB
JavaScript
// Module ID: 1769
|
|
// Function ID: 1770
|
|
// Dependencies: [32, 41, 42, 93, 95, 98, 1706]
|
|
|
|
// Module 1769
|
|
import _slicedToArray_mod from "module_32" /* 32 */;
|
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import c2 from "_possibleConstructorReturn" /* 93 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
import _inherits 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 _slicedToArray = _slicedToArray_mod;
|
|
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 {
|
|
constructor() {
|
|
self = this;
|
|
items = [...arguments];
|
|
closure_0 = undefined;
|
|
tmp = closure_1(this, LinearTransition);
|
|
items1 = [...items];
|
|
tmp2 = closure_3;
|
|
obj = closure_3(LinearTransition);
|
|
tmp3 = c2;
|
|
if (closure_4()) {
|
|
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 = () => {
|
|
const delayFunction = closure_0.getDelayFunction();
|
|
const tmp2 = _slicedToArray(closure_0.getAnimationAndConfig(), 2);
|
|
const animation = tmp2[0];
|
|
closure_2 = tmp4;
|
|
const callbackV = closure_0.callbackV;
|
|
const delay = closure_0.getDelay();
|
|
const fn = function t(originX) {
|
|
const obj = { initialValues: { originX: originX.currentOriginX, originY: originX.currentOriginY, width: originX.currentWidth, height: originX.currentHeight }, animations: null, callback: null };
|
|
const size = { originX: delayFunction(delay, first(originX.targetOriginX, closure_2)), originY: delayFunction(delay, first(originX.targetOriginY, closure_2)), width: delayFunction(delay, first(originX.targetWidth, closure_2)), height: delayFunction(delay, first(originX.targetHeight, closure_2)) };
|
|
obj.animations = size;
|
|
obj.callback = callbackV;
|
|
return obj;
|
|
};
|
|
fn.__closure = { delayFunction, delay, animation, config: tmp2[1], callback: callbackV };
|
|
fn.__workletHash = 16224579837767;
|
|
fn.__initData = __initData;
|
|
return fn;
|
|
};
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
_slicedToArray = LinearTransition;
|
|
_inherits(LinearTransition, fn(1706).ComplexAnimationBuilder);
|
|
const entry = {
|
|
key: "createInstance",
|
|
value: function createInstance() {
|
|
return _slicedToArray();
|
|
}
|
|
};
|
|
let items = [entry];
|
|
const importDefaultResultResult = _createClass(LinearTransition, null, items);
|
|
importDefaultResultResult.presetName = "LinearTransition";
|
|
|
|
export const LinearTransition = importDefaultResultResult;
|
|
export const Layout = importDefaultResultResult;
|