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

332 lines
19 KiB
JavaScript

/* Metro module 1736; source: unknown; dependencies: [57, 6, 7, 15, 17, 18, 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 */
function _fun19123(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:6, offset: 0x00ea041d, size: 394 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {code: 'function pnpm_StretchTs1(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scaleX:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{scaleX:0}],...initialValues},callback:callback};}'};
const ComplexAnimationBuilder = (Module01680Module).ComplexAnimationBuilder;
const value = _fun19128(ComplexAnimationBuilder);
value.presetName = 'StretchInX';
object = {code: 'function pnpm_StretchTs2(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scaleY:delayFunction(delay,animation(1,config))}]},initialValues:{transform:[{scaleY:0}],...initialValues},callback:callback};}'};
const value2 = _fun19133(ComplexAnimationBuilder);
value2.presetName = 'StretchInY';
object = {code: 'function pnpm_StretchTs3(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scaleX:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{scaleX:1}],...initialValues},callback:callback};}'};
const value3 = _fun19138(ComplexAnimationBuilder);
value3.presetName = 'StretchOutX';
object = {code: 'function pnpm_StretchTs4(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{transform:[{scaleY:delayFunction(delay,animation(0,config))}]},initialValues:{transform:[{scaleY:1}],...initialValues},callback:callback};}'};
const value4 = _fun19143(ComplexAnimationBuilder);
value4.presetName = 'StretchOutY';
exports.StretchInX = value;
exports.StretchInY = value2;
exports.StretchOutX = value3;
exports.StretchOutY = value4;
function _callSuper_19124(a0, a1, a2) { // fn#19124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:158, offset: 0x00e23cbe, size: 100 bytes, params: 4, frame: 20
var r0;
var Reflect;
let value = a2;
const value3 = Module00017(a1);
if (_isNativeReflectConstruct_19125()) {
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_19125() { // fn#19125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:289, offset: 0x00ea05a7, 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_19125_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun19128(a0) { // fn#19128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:793, offset: 0x00ea0605, size: 71 bytes, params: 2, frame: 16
const StretchInX2 = StretchInX;
Inherits(StretchInX2, a0);
return CreateClass(StretchInX2, null, [{key: 'createInstance', value: value_19132}]);
function StretchInX() { // fn#19129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:805, offset: 0x00ea064c, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_1(this, StretchInX);
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_19124Binding = _callSuper_19124;
const items2 = [];
value = _callSuper_19124Binding(this, StretchInX, items2.concat(array));
value.build = build_19130;
return value;
function StretchInXBuild() { // fn#19130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:981, owner: StretchInX.build, offset: 0x00ea06d1, size: 193 bytes, params: 1, frame: 18
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_0(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_StretchTs12 = pnpm_StretchTs1;
pnpm_StretchTs12.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
pnpm_StretchTs12.__workletHash = 8236429657427;
pnpm_StretchTs12.__initData = env2_6;
return pnpm_StretchTs12;
function pnpm_StretchTs1() { // fn#19131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:1128, owner: StretchInX.build.pnpm_StretchTs1, offset: 0x00ea0792, size: 126 bytes, params: 1, frame: 19
const object2 = {};
object2.scaleX = Module00057(PossibleConstructorReturn, ClassCallCheck(1, CreateClass));
const Object = global.Object;
return {animations: {transform: [object2]}, initialValues: Object.assign({transform: [{scaleX: 0}]}, initialValues),
callback: callbackV};
}
}
}
function value_19132() { // fn#19132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:1482, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(StretchInX.prototype, {constructor: {value: StretchInX}});
const stretchInX = new StretchInX();
return stretchInX instanceof Object ? stretchInX : value;
}
}
function _fun19133(a0) { // fn#19133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:1879, offset: 0x00ea0810, size: 71 bytes, params: 2, frame: 16
const StretchInY2 = StretchInY;
Inherits(StretchInY2, a0);
return CreateClass(StretchInY2, null, [{key: 'createInstance', value: value_19137}]);
function StretchInY() { // fn#19134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:1891, offset: 0x00ea0857, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_1(this, StretchInY);
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_19124Binding = _callSuper_19124;
const items2 = [];
value = _callSuper_19124Binding(this, StretchInY, items2.concat(array));
value.build = build_19135;
return value;
function StretchInYBuild() { // fn#19135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:2067, owner: StretchInY.build, offset: 0x00ea08dc, size: 193 bytes, params: 1, frame: 18
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_0(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_StretchTs22 = pnpm_StretchTs2;
pnpm_StretchTs22.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
pnpm_StretchTs22.__workletHash = 15758510181808;
pnpm_StretchTs22.__initData = env2_7;
return pnpm_StretchTs22;
function pnpm_StretchTs2() { // fn#19136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:2214, owner: StretchInY.build.pnpm_StretchTs2, offset: 0x00ea099d, size: 126 bytes, params: 1, frame: 19
const object2 = {};
object2.scaleY = Module00057(PossibleConstructorReturn, ClassCallCheck(1, CreateClass));
const Object = global.Object;
return {animations: {transform: [object2]}, initialValues: Object.assign({transform: [{scaleY: 0}]}, initialValues),
callback: callbackV};
}
}
}
function value_19137() { // fn#19137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:2568, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(StretchInY.prototype, {constructor: {value: StretchInY}});
const stretchInY = new StretchInY();
return stretchInY instanceof Object ? stretchInY : value;
}
}
function _fun19138(a0) { // fn#19138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:2965, offset: 0x00ea0a1b, size: 71 bytes, params: 2, frame: 16
const StretchOutX2 = StretchOutX;
Inherits(StretchOutX2, a0);
return CreateClass(StretchOutX2, null, [{key: 'createInstance', value: value_19142}]);
function StretchOutX() { // fn#19139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:2977, offset: 0x00ea0a62, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_1(this, StretchOutX);
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_19124Binding = _callSuper_19124;
const items2 = [];
value = _callSuper_19124Binding(this, StretchOutX, items2.concat(array));
value.build = build_19140;
return value;
function StretchOutXBuild() { // fn#19140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:3156, owner: StretchOutX.build, offset: 0x00ea0ae7, size: 193 bytes, params: 1, frame: 18
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_0(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_StretchTs32 = pnpm_StretchTs3;
pnpm_StretchTs32.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
pnpm_StretchTs32.__workletHash = 2374207350737;
pnpm_StretchTs32.__initData = env2_8;
return pnpm_StretchTs32;
function pnpm_StretchTs3() { // fn#19141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:3303, owner: StretchOutX.build.pnpm_StretchTs3, offset: 0x00ea0ba8, size: 126 bytes, params: 1, frame: 19
const object2 = {};
object2.scaleX = Module00057(PossibleConstructorReturn, ClassCallCheck(0, CreateClass));
const Object = global.Object;
return {animations: {transform: [object2]}, initialValues: Object.assign({transform: [{scaleX: 1}]}, initialValues),
callback: callbackV};
}
}
}
function value_19142() { // fn#19142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:3659, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(StretchOutX.prototype, {constructor: {value: StretchOutX}});
const stretchOutX = new StretchOutX();
return stretchOutX instanceof Object ? stretchOutX : value;
}
}
function _fun19143(a0) { // fn#19143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:4058, offset: 0x00ea0c26, size: 71 bytes, params: 2, frame: 16
const StretchOutY2 = StretchOutY;
Inherits(StretchOutY2, a0);
return CreateClass(StretchOutY2, null, [{key: 'createInstance', value: value_19147}]);
function StretchOutY() { // fn#19144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:4070, offset: 0x00ea0c6d, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_1(this, StretchOutY);
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_19124Binding = _callSuper_19124;
const items2 = [];
value = _callSuper_19124Binding(this, StretchOutY, items2.concat(array));
value.build = build_19145;
return value;
function StretchOutYBuild() { // fn#19145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:4249, owner: StretchOutY.build, offset: 0x00ea0cf2, size: 193 bytes, params: 1, frame: 18
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_0(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_StretchTs42 = pnpm_StretchTs4;
pnpm_StretchTs42.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
pnpm_StretchTs42.__workletHash = 3228047902646;
pnpm_StretchTs42.__initData = env2_9;
return pnpm_StretchTs42;
function pnpm_StretchTs4() { // fn#19146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:4396, owner: StretchOutY.build.pnpm_StretchTs4, offset: 0x00ea0db3, size: 126 bytes, params: 1, frame: 19
const object2 = {};
object2.scaleY = Module00057(PossibleConstructorReturn, ClassCallCheck(0, CreateClass));
const Object = global.Object;
return {animations: {transform: [object2]}, initialValues: Object.assign({transform: [{scaleY: 1}]}, initialValues),
callback: callbackV};
}
}
}
function value_19147() { // fn#19147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1863:4752, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(StretchOutY.prototype, {constructor: {value: StretchOutY}});
const stretchOutY = new StretchOutY();
return stretchOutY instanceof Object ? stretchOutY : value;
}
}
}
global.__d(_fun19123, 1736, [57, 6, 7, 15, 17, 18,
1680]) /* metro module 1736, dependencies: [57, 6, 7, 15, 17, 18, 1680] */;