Files
discord-decomp/sources/by-id/module-01731.jsx
T
2026-07-27 16:20:00 +03:00

367 lines
19 KiB
React

/* Metro module 1731; source: unknown; dependencies: [57, 6, 7, 15, 17, 18, 1682, 1680] */
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});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
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 = (require(1680) /* metro dependency 1680 */).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 _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 closure = LightSpeedInRight;
env0_7(closure, a0);
return env0_4(closure, null, [{key: 'createInstance', value: value_18977}]);
}
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 closure = LightSpeedInLeft;
env0_7(closure, a0);
return env0_4(closure, null, [{key: 'createInstance', value: value_18982}]);
}
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 closure = LightSpeedOutRight;
env0_7(closure, a0);
return env0_4(closure, null, [{key: 'createInstance', value: value_18987}]);
}
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 closure = LightSpeedOutLeft;
env0_7(closure, a0);
return env0_4(closure, null, [{key: 'createInstance', value: value_18992}]);
}
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;
return value;
}
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;
return value;
}
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;
return value;
}
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;
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 = env0_0.getDelayFunction();
var env0_0 = delayFunction;
const value5 = env2_2(env0_0.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = env0_0.getDelay();
const duration = env0_0.getDuration();
const callbackV = env0_0.callbackV;
const initialValues = env0_0.initialValues;
const closure = pnpm_LightspeedTs1;
const object2 = {delayFunction: delayFunction, delay: delay};
object2.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
object2.duration = duration;
object2.animation = property;
object2.config = property2;
object2.withSequence = (require(1682) /* metro dependency 1682 */).withSequence;
object2.initialValues = initialValues;
object2.callback = callbackV;
closure.__closure = object2;
closure.__workletHash = 14533434616043;
closure.__initData = env2_8;
return closure;
}
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 = env0_0.getDelayFunction();
var env0_0 = delayFunction;
const value5 = env2_2(env0_0.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = env0_0.getDelay();
const duration = env0_0.getDuration();
const callbackV = env0_0.callbackV;
const initialValues = env0_0.initialValues;
const closure = pnpm_LightspeedTs2;
const object2 = {delayFunction: delayFunction, delay: delay};
object2.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
object2.duration = duration;
object2.animation = property;
object2.config = property2;
object2.withSequence = (require(1682) /* metro dependency 1682 */).withSequence;
object2.initialValues = initialValues;
object2.callback = callbackV;
closure.__closure = object2;
closure.__workletHash = 7816705328872;
closure.__initData = env2_9;
return closure;
}
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 = env0_0.getDelayFunction();
var env0_0 = delayFunction;
const value5 = env2_2(env0_0.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = env0_0.getDelay();
const callbackV = env0_0.callbackV;
const initialValues = env0_0.initialValues;
const closure = pnpm_LightspeedTs3;
closure.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
closure.__workletHash = 222611120175;
closure.__initData = env2_10;
return closure;
}
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 = env0_0.getDelayFunction();
var env0_0 = delayFunction;
const value5 = env2_2(env0_0.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = env0_0.getDelay();
const callbackV = env0_0.callbackV;
const initialValues = env0_0.initialValues;
const closure = pnpm_LightspeedTs4;
closure.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
closure.__workletHash = 766058259752;
closure.__initData = env2_11;
return closure;
}
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 object = {};
const binding = env0_0;
const binding2 = env0_3;
const moduleValue = require(1682) /* metro dependency 1682 */;
const withTiming = moduleValue.withTiming;
const binding3 = env0_4;
object.opacity = binding(binding2, Reflect.apply(withTiming, moduleValue, [1, {duration: binding3}]));
const object3 = {};
const binding4 = env0_1;
let Object = global.Object;
object3.translateX = binding(binding2, binding4(0, Object.assign({}, env0_2, {duration: 0.7 * binding3})));
const items2 = [object3];
const object5 = {};
const moduleValue2 = moduleValue;
const withSequence = moduleValue2.withSequence;
const moduleValue3 = moduleValue;
const value4 = moduleValue3.withTiming('10deg', {duration: 0.7 * binding3});
const moduleValue4 = moduleValue;
const value5 = moduleValue4.withTiming('-5deg', {duration: 0.15 * binding3});
const moduleValue5 = moduleValue;
object5.skewX = binding(binding2, Reflect.apply(withSequence, moduleValue2, [value4, value5,
moduleValue5.withTiming('0deg', {duration: 0.15 * binding3})]));
items2[1] = object5;
object.transform = items2;
Object = global.Object;
return {animations: object, initialValues: Object.assign({opacity: 0, transform: [{translateX: windowWidth},
{skewX: '-45deg'}]}, initialValues), callback: callbackV};
}
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 object = {};
const binding = env0_0;
const binding2 = env0_3;
const moduleValue = require(1682) /* metro dependency 1682 */;
const withTiming = moduleValue.withTiming;
const binding3 = env0_4;
object.opacity = binding(binding2, Reflect.apply(withTiming, moduleValue, [1, {duration: binding3}]));
const object3 = {};
const binding4 = env0_1;
let Object = global.Object;
object3.translateX = binding(binding2, binding4(0, Object.assign({}, env0_2, {duration: 0.7 * binding3})));
const items2 = [object3];
const object5 = {};
const moduleValue2 = moduleValue;
const withSequence = moduleValue2.withSequence;
const moduleValue3 = moduleValue;
const value4 = moduleValue3.withTiming('-10deg', {duration: 0.7 * binding3});
const moduleValue4 = moduleValue;
const value5 = moduleValue4.withTiming('5deg', {duration: 0.15 * binding3});
const moduleValue5 = moduleValue;
object5.skewX = binding(binding2, Reflect.apply(withSequence, moduleValue2, [value4, value5,
moduleValue5.withTiming('0deg', {duration: 0.15 * binding3})]));
items2[1] = object5;
object.transform = items2;
Object = global.Object;
return {animations: object, initialValues: Object.assign({opacity: 0, transform: [{translateX: -windowWidth},
{skewX: '45deg'}]}, initialValues), callback: callbackV};
}
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 object = {};
const binding = env0_0;
const binding2 = env0_3;
const binding3 = env0_1;
const binding4 = env0_2;
object.opacity = binding(binding2, binding3(0, binding4));
const object4 = {};
object4.translateX = binding(binding2, binding3(windowWidth, binding4));
const items2 = [object4];
items2[1] = {skewX: binding(binding2, binding3('-45deg', binding4))};
object.transform = items2;
const Object = global.Object;
return {animations: object, initialValues: Object.assign({opacity: 1, transform: [{translateX: 0},
{skewX: '0deg'}]}, initialValues), callback: callbackV};
}
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 object = {};
const binding = env0_0;
const binding2 = env0_3;
const binding3 = env0_1;
const binding4 = env0_2;
object.opacity = binding(binding2, binding3(0, binding4));
const object4 = {};
object4.translateX = binding(binding2, binding3(-windowWidth, binding4));
const items2 = [object4];
items2[1] = {skewX: binding(binding2, binding3('45deg', binding4))};
object.transform = items2;
const Object = global.Object;
return {animations: object, initialValues: Object.assign({opacity: 1, transform: [{translateX: 0},
{skewX: '0deg'}]}, initialValues), callback: callbackV};
}