Files
discord-decomp/_bundle/FadeIn.js
T
2026-11-01 12:12:55 +02:00

619 lines
21 KiB
JavaScript

// Metro module 1725 (f1726).
import _classCallCheck from "./_classCallCheck";
import _createClass from "./_createClass";
import _possibleConstructorReturn from "./_possibleConstructorReturn";
import _getPrototypeOf from "./_getPrototypeOf";
import _inherits from "./_inherits";
import { ComplexAnimationBuilder } from "./Module1676";
let c1376_5, c1376_6, c1376_7, c1376_8, c1376_9, c1376_10, c1376_11, c1376_12, c1376_13, c1376_14;
let FadeIn;
let FadeInRight;
let FadeInLeft;
let FadeInUp;
let FadeInDown;
let FadeOut;
let FadeOutRight;
let FadeOutLeft;
let FadeOutUp;
let FadeOutDown;
let env1376 = {};
env1376[4] = function _isNativeReflectConstruct() {
let c13181_0;
try {
c13181_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
} catch ($e) {}
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
return !!c13181_0;
};
env1376[4] = _isNativeReflectConstruct2;
return _isNativeReflectConstruct2();
};
c1376_5 = {
code: "function pnpm_FadeTs1(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config))},initialValues:{opacity:0,...initialValues},callback:callback};}"
};
FadeIn = function FadeIn(...args) {
_classCallCheck(this, FadeIn);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeIn);
const _this = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this.build = () => {
const delayFunction = _this.getDelayFunction();
const [animation, config] = _this.getAnimationAndConfig();
let c28955_1 = animation;
let c28955_2 = config;
const { callbackV, initialValues } = _this;
const delay = _this.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction(delay, c28955_1(1, c28955_2))
},
initialValues: {
opacity: 0,
...initialValues
},
callback: callbackV
};
};
r18.__closure = {
delayFunction,
delay,
animation,
config,
initialValues,
callback: callbackV
};
r18.__workletHash = 4187624806586;
r18.__initData = c1376_5;
return r18;
};
return _this;
};
_inherits(FadeIn, ComplexAnimationBuilder);
const r12 = _createClass(FadeIn, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeIn.prototype
};
const r4 = FadeIn.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r12.presetName = "FadeIn";
c1376_6 = {
code: "function pnpm_FadeTs2(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{translateX:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{translateX:25}],...initialValues},callback:callback};}"
};
FadeInRight = function FadeInRight(...args) {
_classCallCheck(this, FadeInRight);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeInRight);
const _this2 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this2.build = () => {
const delayFunction2 = _this2.getDelayFunction();
const [animation, config] = _this2.getAnimationAndConfig();
let c28956_1 = animation;
let c28956_2 = config;
const { callbackV: callbackV2, initialValues: initialValues2 } = _this2;
const delay2 = _this2.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction2(delay2, c28956_1(1, c28956_2)),
transform: [{
translateX: delayFunction2(delay2, c28956_1(0, c28956_2))
}]
},
initialValues: {
opacity: 0,
transform: [{
translateX: 25
}],
...initialValues2
},
callback: callbackV2
};
};
r18.__closure = {
delayFunction: delayFunction2,
delay: delay2,
animation,
config,
initialValues: initialValues2,
callback: callbackV2
};
r18.__workletHash = 5328703857616;
r18.__initData = c1376_6;
return r18;
};
return _this2;
};
_inherits(FadeInRight, ComplexAnimationBuilder);
const r11 = _createClass(FadeInRight, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeInRight.prototype
};
const r4 = FadeInRight.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r11.presetName = "FadeInRight";
c1376_7 = {
code: "function pnpm_FadeTs3(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{translateX:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{translateX:-25}],...initialValues},callback:callback};}"
};
FadeInLeft = function FadeInLeft(...args) {
_classCallCheck(this, FadeInLeft);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeInLeft);
const _this3 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this3.build = () => {
const delayFunction3 = _this3.getDelayFunction();
const [animation, config] = _this3.getAnimationAndConfig();
let c28957_1 = animation;
let c28957_2 = config;
const { callbackV: callbackV3, initialValues: initialValues3 } = _this3;
const delay3 = _this3.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction3(delay3, c28957_1(1, c28957_2)),
transform: [{
translateX: delayFunction3(delay3, c28957_1(0, c28957_2))
}]
},
initialValues: {
opacity: 0,
transform: [{
translateX: -25
}],
...initialValues3
},
callback: callbackV3
};
};
r18.__closure = {
delayFunction: delayFunction3,
delay: delay3,
animation,
config,
initialValues: initialValues3,
callback: callbackV3
};
r18.__workletHash = 3876464806620;
r18.__initData = c1376_7;
return r18;
};
return _this3;
};
_inherits(FadeInLeft, ComplexAnimationBuilder);
const r10 = _createClass(FadeInLeft, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeInLeft.prototype
};
const r4 = FadeInLeft.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r10.presetName = "FadeInLeft";
c1376_8 = {
code: "function pnpm_FadeTs4(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{translateY:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{translateY:-25}],...initialValues},callback:callback};}"
};
FadeInUp = function FadeInUp(...args) {
_classCallCheck(this, FadeInUp);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeInUp);
const _this4 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this4.build = () => {
const delayFunction4 = _this4.getDelayFunction();
const [animation, config] = _this4.getAnimationAndConfig();
let c28958_1 = animation;
let c28958_2 = config;
const { callbackV: callbackV4, initialValues: initialValues4 } = _this4;
const delay4 = _this4.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction4(delay4, c28958_1(1, c28958_2)),
transform: [{
translateY: delayFunction4(delay4, c28958_1(0, c28958_2))
}]
},
initialValues: {
opacity: 0,
transform: [{
translateY: -25
}],
...initialValues4
},
callback: callbackV4
};
};
r18.__closure = {
delayFunction: delayFunction4,
delay: delay4,
animation,
config,
initialValues: initialValues4,
callback: callbackV4
};
r18.__workletHash = 14652570092763;
r18.__initData = c1376_8;
return r18;
};
return _this4;
};
_inherits(FadeInUp, ComplexAnimationBuilder);
const r9 = _createClass(FadeInUp, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeInUp.prototype
};
const r4 = FadeInUp.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r9.presetName = "FadeInUp";
c1376_9 = {
code: "function pnpm_FadeTs5(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{translateY:delayFunction(delay,animation(0,config))}]},initialValues:{opacity:0,transform:[{translateY:25}],...initialValues},callback:callback};}"
};
FadeInDown = function FadeInDown(...args) {
_classCallCheck(this, FadeInDown);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeInDown);
const _this5 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this5.build = () => {
const delayFunction5 = _this5.getDelayFunction();
const [animation, config] = _this5.getAnimationAndConfig();
let c28959_1 = animation;
let c28959_2 = config;
const { callbackV: callbackV5, initialValues: initialValues5 } = _this5;
const delay5 = _this5.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction5(delay5, c28959_1(1, c28959_2)),
transform: [{
translateY: delayFunction5(delay5, c28959_1(0, c28959_2))
}]
},
initialValues: {
opacity: 0,
transform: [{
translateY: 25
}],
...initialValues5
},
callback: callbackV5
};
};
r18.__closure = {
delayFunction: delayFunction5,
delay: delay5,
animation,
config,
initialValues: initialValues5,
callback: callbackV5
};
r18.__workletHash = 3370389664855;
r18.__initData = c1376_9;
return r18;
};
return _this5;
};
_inherits(FadeInDown, ComplexAnimationBuilder);
const r86 = _createClass(FadeInDown, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeInDown.prototype
};
const r4 = FadeInDown.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r86.presetName = "FadeInDown";
c1376_10 = {
code: "function pnpm_FadeTs6(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config))},initialValues:{opacity:1,...initialValues},callback:callback};}"
};
FadeOut = function FadeOut(...args) {
_classCallCheck(this, FadeOut);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeOut);
const _this6 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this6.build = () => {
const delayFunction6 = _this6.getDelayFunction();
const [animation, config] = _this6.getAnimationAndConfig();
let c28960_1 = animation;
let c28960_2 = config;
const { callbackV: callbackV6, initialValues: initialValues6 } = _this6;
const delay6 = _this6.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction6(delay6, c28960_1(0, c28960_2))
},
initialValues: {
opacity: 1,
...initialValues6
},
callback: callbackV6
};
};
r18.__closure = {
delayFunction: delayFunction6,
delay: delay6,
animation,
config,
initialValues: initialValues6,
callback: callbackV6
};
r18.__workletHash = 12496093665501;
r18.__initData = c1376_10;
return r18;
};
return _this6;
};
_inherits(FadeOut, ComplexAnimationBuilder);
const r98 = _createClass(FadeOut, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeOut.prototype
};
const r4 = FadeOut.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r98.presetName = "FadeOut";
c1376_11 = {
code: "function pnpm_FadeTs7(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateX:delayFunction(delay,animation(25,config))}]},initialValues:{opacity:1,transform:[{translateX:0}],...initialValues},callback:callback};}"
};
FadeOutRight = function FadeOutRight(...args) {
_classCallCheck(this, FadeOutRight);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeOutRight);
const _this7 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this7.build = () => {
const delayFunction7 = _this7.getDelayFunction();
const [animation, config] = _this7.getAnimationAndConfig();
let c28961_1 = animation;
let c28961_2 = config;
const { callbackV: callbackV7, initialValues: initialValues7 } = _this7;
const delay7 = _this7.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction7(delay7, c28961_1(0, c28961_2)),
transform: [{
translateX: delayFunction7(delay7, c28961_1(25, c28961_2))
}]
},
initialValues: {
opacity: 1,
transform: [{
translateX: 0
}],
...initialValues7
},
callback: callbackV7
};
};
r18.__closure = {
delayFunction: delayFunction7,
delay: delay7,
animation,
config,
initialValues: initialValues7,
callback: callbackV7
};
r18.__workletHash = 8966511332149;
r18.__initData = c1376_11;
return r18;
};
return _this7;
};
_inherits(FadeOutRight, ComplexAnimationBuilder);
const r110 = _createClass(FadeOutRight, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeOutRight.prototype
};
const r4 = FadeOutRight.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r110.presetName = "FadeOutRight";
c1376_12 = {
code: "function pnpm_FadeTs8(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateX:delayFunction(delay,animation(-25,config))}]},initialValues:{opacity:1,transform:[{translateX:0}],...initialValues},callback:callback};}"
};
FadeOutLeft = function FadeOutLeft(...args) {
_classCallCheck(this, FadeOutLeft);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeOutLeft);
const _this8 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this8.build = () => {
const delayFunction8 = _this8.getDelayFunction();
const [animation, config] = _this8.getAnimationAndConfig();
let c28962_1 = animation;
let c28962_2 = config;
const { callbackV: callbackV8, initialValues: initialValues8 } = _this8;
const delay8 = _this8.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction8(delay8, c28962_1(0, c28962_2)),
transform: [{
translateX: delayFunction8(delay8, c28962_1(-25, c28962_2))
}]
},
initialValues: {
opacity: 1,
transform: [{
translateX: 0
}],
...initialValues8
},
callback: callbackV8
};
};
r18.__closure = {
delayFunction: delayFunction8,
delay: delay8,
animation,
config,
initialValues: initialValues8,
callback: callbackV8
};
r18.__workletHash = 7570822684087;
r18.__initData = c1376_12;
return r18;
};
return _this8;
};
_inherits(FadeOutLeft, ComplexAnimationBuilder);
const r121 = _createClass(FadeOutLeft, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeOutLeft.prototype
};
const r4 = FadeOutLeft.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r121.presetName = "FadeOutLeft";
c1376_13 = {
code: "function pnpm_FadeTs9(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateY:delayFunction(delay,animation(-25,config))}]},initialValues:{opacity:1,transform:[{translateY:0}],...initialValues},callback:callback};}"
};
FadeOutUp = function FadeOutUp(...args) {
_classCallCheck(this, FadeOutUp);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeOutUp);
const _this9 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this9.build = () => {
const delayFunction9 = _this9.getDelayFunction();
const [animation, config] = _this9.getAnimationAndConfig();
let c28963_1 = animation;
let c28963_2 = config;
const { callbackV: callbackV9, initialValues: initialValues9 } = _this9;
const delay9 = _this9.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction9(delay9, c28963_1(0, c28963_2)),
transform: [{
translateY: delayFunction9(delay9, c28963_1(-25, c28963_2))
}]
},
initialValues: {
opacity: 1,
transform: [{
translateY: 0
}],
...initialValues9
},
callback: callbackV9
};
};
r18.__closure = {
delayFunction: delayFunction9,
delay: delay9,
animation,
config,
initialValues: initialValues9,
callback: callbackV9
};
r18.__workletHash = 7080775562358;
r18.__initData = c1376_13;
return r18;
};
return _this9;
};
_inherits(FadeOutUp, ComplexAnimationBuilder);
const r132 = _createClass(FadeOutUp, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeOutUp.prototype
};
const r4 = FadeOutUp.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r132.presetName = "FadeOutUp";
c1376_14 = {
code: "function pnpm_FadeTs10(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateY:delayFunction(delay,animation(25,config))}]},initialValues:{opacity:1,transform:[{translateY:0}],...initialValues},callback:callback};}"
};
FadeOutDown = function FadeOutDown(...args) {
_classCallCheck(this, FadeOutDown);
const r10 = [...args];
const r9 = _getPrototypeOf(FadeOutDown);
const _this10 = _possibleConstructorReturn(this, (0, env1376[4])() ? Reflect.construct(r9, r10, _getPrototypeOf(this).constructor) : r9.apply(this, r10));
_this10.build = () => {
const delayFunction10 = _this10.getDelayFunction();
const [animation, config] = _this10.getAnimationAndConfig();
let c28964_1 = animation;
let c28964_2 = config;
const { callbackV: callbackV10, initialValues: initialValues10 } = _this10;
const delay10 = _this10.getDelay();
const r18 = function t() {
return {
animations: {
opacity: delayFunction10(delay10, c28964_1(0, c28964_2)),
transform: [{
translateY: delayFunction10(delay10, c28964_1(25, c28964_2))
}]
},
initialValues: {
opacity: 1,
transform: [{
translateY: 0
}],
...initialValues10
},
callback: callbackV10
};
};
r18.__closure = {
delayFunction: delayFunction10,
delay: delay10,
animation,
config,
initialValues: initialValues10,
callback: callbackV10
};
r18.__workletHash = 4897427935171;
r18.__initData = c1376_14;
return r18;
};
return _this10;
};
_inherits(FadeOutDown, ComplexAnimationBuilder);
const r144 = _createClass(FadeOutDown, null, [{
key: "createInstance",
value: function createInstance() {
const r3 = {
__proto__: FadeOutDown.prototype
};
const r4 = FadeOutDown.call(r3);
return r4 instanceof Object ? r4 : r3;
}
}]);
r144.presetName = "FadeOutDown";
export { r12 as FadeIn };
export { r11 as FadeInRight };
export { r10 as FadeInLeft };
export { r9 as FadeInUp };
export { r86 as FadeInDown };
export { r98 as FadeOut };
export { r110 as FadeOutRight };
export { r121 as FadeOutLeft };
export { r132 as FadeOutUp };
export { r144 as FadeOutDown };