Files
discord-decomp/sources/by-id/module-01731-LightSpeed.js
T
2026-07-28 01:06:53 +03:00

394 lines
25 KiB
JavaScript

/* Metro module 1731; source: unknown; dependencies: [57, 6, 7, 15, 17, 18, 1682, 1680] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
import * as Module01680Module from './module-01680.js'; /* Metro dependency 1680 */
import * as Module01682Module from './module-01682.js'; /* Metro dependency 1682 */
function _fun18968(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:6, offset: 0x00e9b934, size: 402 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {code: "function pnpm_LightspeedTs1(values){const{delayFunction,delay,withTiming,duration,animation,config,withSequence,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,withTiming(1,{duration:duration})),transform:[{translateX:delayFunction(delay,animation(0,{...config,duration:duration*0.7}))},{skewX:delayFunction(delay,withSequence(withTiming('10deg',{duration:duration*0.7}),withTiming('-5deg',{duration:duration*0.15}),withTiming('0deg',{duration:duration*0.15})))}]},initialValues:{opacity:0,transform:[{translateX:values.windowWidth},{skewX:'-45deg'}],...initialValues},callback:callback};}"};
const ComplexAnimationBuilder = (Module01680Module).ComplexAnimationBuilder;
const value = _fun18973(ComplexAnimationBuilder);
value.presetName = 'LightSpeedInRight';
object = {code: "function pnpm_LightspeedTs2(values){const{delayFunction,delay,withTiming,duration,animation,config,withSequence,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,withTiming(1,{duration:duration})),transform:[{translateX:delayFunction(delay,animation(0,{...config,duration:duration*0.7}))},{skewX:delayFunction(delay,withSequence(withTiming('-10deg',{duration:duration*0.7}),withTiming('5deg',{duration:duration*0.15}),withTiming('0deg',{duration:duration*0.15})))}]},initialValues:{opacity:0,transform:[{translateX:-values.windowWidth},{skewX:'45deg'}],...initialValues},callback:callback};}"};
const value2 = _fun18978(ComplexAnimationBuilder);
value2.presetName = 'LightSpeedInLeft';
object = {code: "function pnpm_LightspeedTs3(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateX:delayFunction(delay,animation(values.windowWidth,config))},{skewX:delayFunction(delay,animation('-45deg',config))}]},initialValues:{opacity:1,transform:[{translateX:0},{skewX:'0deg'}],...initialValues},callback:callback};}"};
const value3 = _fun18983(ComplexAnimationBuilder);
value3.presetName = 'LightSpeedOutRight';
object = {code: "function pnpm_LightspeedTs4(values){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{translateX:delayFunction(delay,animation(-values.windowWidth,config))},{skewX:delayFunction(delay,animation('45deg',config))}]},initialValues:{opacity:1,transform:[{translateX:0},{skewX:'0deg'}],...initialValues},callback:callback};}"};
const value4 = _fun18988(ComplexAnimationBuilder);
value4.presetName = 'LightSpeedOutLeft';
exports.LightSpeedInRight = value;
exports.LightSpeedInLeft = value2;
exports.LightSpeedOutRight = value3;
exports.LightSpeedOutLeft = value4;
function _callSuper_18969(a0, a1, a2) { // fn#18969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:158, offset: 0x00e9bac6, size: 100 bytes, params: 4, frame: 20
var r0;
var Reflect;
let value = a2;
const value3 = Module00017(a1);
if (_isNativeReflectConstruct_18970()) {
Reflect = global.Reflect;
value = Reflect.construct(value3, value || [], Module00017(a0).constructor);
r0 = value;
} else {
value = value3.apply(a0, value);
r0 = value;
}
return PossibleConstructorReturn(a0, r0);
}
function _isNativeReflectConstruct_18970() { // fn#18970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:289, offset: 0x00e9bb2a, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_18970_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun18973(a0) { // fn#18973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:1153, offset: 0x00e9bb88, size: 71 bytes, params: 2, frame: 16
const LightSpeedInRight2 = LightSpeedInRight;
Inherits(LightSpeedInRight2, a0);
return CreateClass(LightSpeedInRight2, null, [{key: 'createInstance', value: value_18977}]);
function LightSpeedInRight() { // fn#18974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:1165, offset: 0x00e9bbcf, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_3(this, LightSpeedInRight);
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
for (r3 = value6; true; r3 = value7) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (!(value7 < length)) {
break;
}
}
}
const _callSuper_18969Binding = _callSuper_18969;
const items2 = [];
value = _callSuper_18969Binding(this, LightSpeedInRight, items2.concat(array));
value.build = build_18975;
return value;
function LightSpeedInRightBuild() { // fn#18975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:1362, owner: LightSpeedInRight.build, offset: 0x00e9bc54, size: 264 bytes, params: 1, frame: 22
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_2(delayFunction2.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = delayFunction2.getDelay();
const duration = delayFunction2.getDuration();
const callbackV = delayFunction2.callbackV;
const initialValues = delayFunction2.initialValues;
const pnpm_LightspeedTs12 = pnpm_LightspeedTs1;
const object = {delayFunction: delayFunction, delay: delay};
object.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
object.duration = duration;
object.animation = property;
object.config = property2;
object.withSequence = (require(1682) /* metro dependency 1682 */).withSequence;
object.initialValues = initialValues;
object.callback = callbackV;
pnpm_LightspeedTs12.__closure = object;
pnpm_LightspeedTs12.__workletHash = 14533434616043;
pnpm_LightspeedTs12.__initData = env2_8;
return pnpm_LightspeedTs12;
function pnpm_LightspeedTs1({windowWidth}) { // fn#18976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:1527, owner: LightSpeedInRight.build.pnpm_LightspeedTs1, offset: 0x00e9bd5c, size: 407 bytes, params: 2, frame: 32
const object2 = {};
const binding = env0_0;
const withTiming = Module01682Module.withTiming;
object2.opacity = binding(ClassCallCheck, Reflect.apply(withTiming, Module01682Module, [1, {duration: CreateClass}]));
const object4 = {};
const binding4 = env0_1;
let Object = global.Object;
object4.translateX = binding(ClassCallCheck, binding4(0, Object.assign({}, Module00057, {duration: 0.7 * CreateClass})));
const items2 = [object4];
const object6 = {};
const withSequence = Module01682Module.withSequence;
const value4 = Module01682Module.withTiming('10deg', {duration: 0.7 * CreateClass});
const value5 = Module01682Module.withTiming('-5deg', {duration: 0.15 * CreateClass});
object6.skewX = binding(ClassCallCheck, Reflect.apply(withSequence, Module01682Module, [value4, value5,
Module01682Module.withTiming('0deg', {duration: 0.15 * CreateClass})]));
items2[1] = object6;
object2.transform = items2;
Object = global.Object;
return {animations: object2, initialValues: Object.assign({opacity: 0, transform: [{translateX: windowWidth},
{skewX: '-45deg'}]}, initialValues), callback: callbackV};
}
}
}
function value_18977() { // fn#18977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:2271, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(LightSpeedInRight.prototype, {constructor: {value: LightSpeedInRight}});
const lightSpeedInRight = new LightSpeedInRight();
return lightSpeedInRight instanceof Object ? lightSpeedInRight : value;
}
}
function _fun18978(a0) { // fn#18978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:3042, offset: 0x00e9bef3, size: 71 bytes, params: 2, frame: 16
const LightSpeedInLeft2 = LightSpeedInLeft;
Inherits(LightSpeedInLeft2, a0);
return CreateClass(LightSpeedInLeft2, null, [{key: 'createInstance', value: value_18982}]);
function LightSpeedInLeft() { // fn#18979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:3054, offset: 0x00e9bf3a, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_3(this, LightSpeedInLeft);
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
for (r3 = value6; true; r3 = value7) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (!(value7 < length)) {
break;
}
}
}
const _callSuper_18969Binding = _callSuper_18969;
const items2 = [];
value = _callSuper_18969Binding(this, LightSpeedInLeft, items2.concat(array));
value.build = build_18980;
return value;
function LightSpeedInLeftBuild() { // fn#18980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:3248, owner: LightSpeedInLeft.build, offset: 0x00e9bfbf, size: 264 bytes, params: 1, frame: 22
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_2(delayFunction2.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = delayFunction2.getDelay();
const duration = delayFunction2.getDuration();
const callbackV = delayFunction2.callbackV;
const initialValues = delayFunction2.initialValues;
const pnpm_LightspeedTs22 = pnpm_LightspeedTs2;
const object = {delayFunction: delayFunction, delay: delay};
object.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
object.duration = duration;
object.animation = property;
object.config = property2;
object.withSequence = (require(1682) /* metro dependency 1682 */).withSequence;
object.initialValues = initialValues;
object.callback = callbackV;
pnpm_LightspeedTs22.__closure = object;
pnpm_LightspeedTs22.__workletHash = 7816705328872;
pnpm_LightspeedTs22.__initData = env2_9;
return pnpm_LightspeedTs22;
function pnpm_LightspeedTs2({windowWidth}) { // fn#18981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:3413, owner: LightSpeedInLeft.build.pnpm_LightspeedTs2, offset: 0x00e9c0c7, size: 410 bytes, params: 2, frame: 32
const object2 = {};
const binding = env0_0;
const withTiming = Module01682Module.withTiming;
object2.opacity = binding(ClassCallCheck, Reflect.apply(withTiming, Module01682Module, [1, {duration: CreateClass}]));
const object4 = {};
const binding4 = env0_1;
let Object = global.Object;
object4.translateX = binding(ClassCallCheck, binding4(0, Object.assign({}, Module00057, {duration: 0.7 * CreateClass})));
const items2 = [object4];
const object6 = {};
const withSequence = Module01682Module.withSequence;
const value4 = Module01682Module.withTiming('-10deg', {duration: 0.7 * CreateClass});
const value5 = Module01682Module.withTiming('5deg', {duration: 0.15 * CreateClass});
object6.skewX = binding(ClassCallCheck, Reflect.apply(withSequence, Module01682Module, [value4, value5,
Module01682Module.withTiming('0deg', {duration: 0.15 * CreateClass})]));
items2[1] = object6;
object2.transform = items2;
Object = global.Object;
return {animations: object2, initialValues: Object.assign({opacity: 0, transform: [{translateX: -windowWidth},
{skewX: '45deg'}]}, initialValues), callback: callbackV};
}
}
}
function value_18982() { // fn#18982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:4155, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(LightSpeedInLeft.prototype, {constructor: {value: LightSpeedInLeft}});
const lightSpeedInLeft = new LightSpeedInLeft();
return lightSpeedInLeft instanceof Object ? lightSpeedInLeft : value;
}
}
function _fun18983(a0) { // fn#18983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:4728, offset: 0x00e9c261, size: 71 bytes, params: 2, frame: 16
const LightSpeedOutRight2 = LightSpeedOutRight;
Inherits(LightSpeedOutRight2, a0);
return CreateClass(LightSpeedOutRight2, null, [{key: 'createInstance', value: value_18987}]);
function LightSpeedOutRight() { // fn#18984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:4740, offset: 0x00e9c2a8, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_3(this, LightSpeedOutRight);
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
for (r3 = value6; true; r3 = value7) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (!(value7 < length)) {
break;
}
}
}
const _callSuper_18969Binding = _callSuper_18969;
const items2 = [];
value = _callSuper_18969Binding(this, LightSpeedOutRight, items2.concat(array));
value.build = build_18985;
return value;
function LightSpeedOutRightBuild() { // fn#18985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:4940, owner: LightSpeedOutRight.build, offset: 0x00e9c32d, size: 193 bytes, params: 1, frame: 18
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_2(delayFunction2.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = delayFunction2.getDelay();
const callbackV = delayFunction2.callbackV;
const initialValues = delayFunction2.initialValues;
const pnpm_LightspeedTs32 = pnpm_LightspeedTs3;
pnpm_LightspeedTs32.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
pnpm_LightspeedTs32.__workletHash = 222611120175;
pnpm_LightspeedTs32.__initData = env2_10;
return pnpm_LightspeedTs32;
function pnpm_LightspeedTs3({windowWidth}) { // fn#18986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:5087, owner: LightSpeedOutRight.build.pnpm_LightspeedTs3, offset: 0x00e9c3ee, size: 201 bytes, params: 2, frame: 21
const object2 = {};
const binding = env0_0;
const binding3 = env0_1;
object2.opacity = binding(ClassCallCheck, binding3(0, Module00057));
const object3 = {};
object3.translateX = binding(ClassCallCheck, binding3(windowWidth, Module00057));
const items2 = [object3];
items2[1] = {skewX: binding(ClassCallCheck, binding3('-45deg', Module00057))};
object2.transform = items2;
const Object = global.Object;
return {animations: object2, initialValues: Object.assign({opacity: 1, transform: [{translateX: 0},
{skewX: '0deg'}]}, initialValues), callback: callbackV};
}
}
}
function value_18987() { // fn#18987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:5552, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(LightSpeedOutRight.prototype, {constructor: {value: LightSpeedOutRight}});
const lightSpeedOutRight = new LightSpeedOutRight();
return lightSpeedOutRight instanceof Object ? lightSpeedOutRight : value;
}
}
function _fun18988(a0) { // fn#18988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:6129, offset: 0x00e9c4b7, size: 71 bytes, params: 2, frame: 16
const LightSpeedOutLeft2 = LightSpeedOutLeft;
Inherits(LightSpeedOutLeft2, a0);
return CreateClass(LightSpeedOutLeft2, null, [{key: 'createInstance', value: value_18992}]);
function LightSpeedOutLeft() { // fn#18989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:6141, offset: 0x00e9c4fe, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_3(this, LightSpeedOutLeft);
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
for (r3 = value6; true; r3 = value7) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (!(value7 < length)) {
break;
}
}
}
const _callSuper_18969Binding = _callSuper_18969;
const items2 = [];
value = _callSuper_18969Binding(this, LightSpeedOutLeft, items2.concat(array));
value.build = build_18990;
return value;
function LightSpeedOutLeftBuild() { // fn#18990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:6338, owner: LightSpeedOutLeft.build, offset: 0x00e9c583, size: 193 bytes, params: 1, frame: 18
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_2(delayFunction2.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = delayFunction2.getDelay();
const callbackV = delayFunction2.callbackV;
const initialValues = delayFunction2.initialValues;
const pnpm_LightspeedTs42 = pnpm_LightspeedTs4;
pnpm_LightspeedTs42.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
pnpm_LightspeedTs42.__workletHash = 766058259752;
pnpm_LightspeedTs42.__initData = env2_11;
return pnpm_LightspeedTs42;
function pnpm_LightspeedTs4({windowWidth}) { // fn#18991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:6485, owner: LightSpeedOutLeft.build.pnpm_LightspeedTs4, offset: 0x00e9c644, size: 204 bytes, params: 2, frame: 21
const object2 = {};
const binding = env0_0;
const binding3 = env0_1;
object2.opacity = binding(ClassCallCheck, binding3(0, Module00057));
const object3 = {};
object3.translateX = binding(ClassCallCheck, binding3(-windowWidth, Module00057));
const items2 = [object3];
items2[1] = {skewX: binding(ClassCallCheck, binding3('45deg', Module00057))};
object2.transform = items2;
const Object = global.Object;
return {animations: object2, initialValues: Object.assign({opacity: 1, transform: [{translateX: 0},
{skewX: '0deg'}]}, initialValues), callback: callbackV};
}
}
}
function value_18992() { // fn#18992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1858:6948, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(LightSpeedOutLeft.prototype, {constructor: {value: LightSpeedOutLeft}});
const lightSpeedOutLeft = new LightSpeedOutLeft();
return lightSpeedOutLeft instanceof Object ? lightSpeedOutLeft : value;
}
}
}
global.__d(_fun18968, 1731, [57, 6, 7, 15, 17, 18, 1682,
1680]) /* metro module 1731, dependencies: [57, 6, 7, 15, 17, 18, 1682, 1680] */;