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

363 lines
14 KiB
React

/* Metro module 376; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 99, 100, 358, 348, 357] */
function _fun5594(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:6, offset: 0x00ce0a3a, size: 246 bytes, params: 8, frame: 18
const mapTransforms = function(a0, a1) {
var env0_0 = a1;
return a0.map(_fun5601);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(102) /* metro dependency 102 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const env0_8 = importDefault(99) /* metro dependency 99 */;
const env0_9 = (importDefault(100) /* metro dependency 100 */)('nodes');
exports.default = _fun5603(importDefault(357) /* metro dependency 357 */);
}
function _isNativeReflectConstruct_5595() { // fn#5595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:169, offset: 0x00ce0b30, 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_5595_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_5598(a0, a1, a2, a3) { // fn#5598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:388, offset: 0x00ce0b8e, size: 99 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
const binding = env0_6;
value = env0_5(1 & 3 ? value.prototype : value);
value = binding(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun5599 : value;
}
function mapTransforms(a0, a1) { // fn#5600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:2603, offset: 0x00ce0bf1, size: 29 bytes, params: 3, frame: 11
const env0_0 = a1;
return a0.map(_fun5601);
}
function _fun5603(a0) { // fn#5603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:547, offset: 0x00ce0d51, size: 234 bytes, params: 2, frame: 17
const closure = AnimatedTransform;
env0_7(closure, a0);
return env0_3(closure, [{key: '__makeNative', value: value_5605}, {key: '__getValue', value: function() {
return mapTransforms(this._transforms, _fun5607);
}}, {key: '__getValueWithStaticTransforms', value: function(a0) {
var env0_0 = [];
var mapTransformsBinding = mapTransforms;
mapTransformsBinding(this._transforms, _fun5609);
return mapTransformsBinding(a0, _fun5610);
}}, {key: '__getAnimatedValue', value: function() {
return mapTransforms(this._transforms, _fun5612);
}}, {key: '__attach', value: value_5613}, {key: '__detach', value: value_5614}, {key: '__getNativeConfig',
value: value_5615}], [{key: 'from', value: value_5616}]);
}
function _fun5601(a0) { // fn#5601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:2645, offset: 0x00ce0c0e, size: 271 bytes, params: 2, frame: 38
var r11;
var r23;
var r27;
var propertyName;
var propertyName2;
var property;
var Array;
var isArray;
var object3;
var properties4;
var properties5;
var properties6;
var propertyName3;
var propertyName4;
var property2;
var moduleValue;
var map;
const object4 = {};
for (propertyName in a0) {
property = a0[propertyName];
if (property instanceof (importDefault(358) /* metro dependency 358 */)) {
object4[propertyName] = require(property);
r11 = propertyName2;
} else {
Array = global.Array;
isArray = Array.isArray;
if (Reflect.apply(isArray, Array, [property])) {
map = property.map;
object4[propertyName] = Reflect.apply(map, property, [_fun5602]);
r11 = propertyName2;
} else if (typeof property === 'object') {
object3 = {};
properties4 = Object.keys(property);
properties5 = 0;
properties6 = properties4.length;
if (properties4 === undefined) {
continue;
}
r23 = properties5;
while (true) {
propertyName3 = properties4[r23];
propertyName4 = r23 + 1;
if (propertyName3 === undefined) {
break;
}
property2 = property[propertyName3];
if (!(property2 instanceof (importDefault(358) /* metro dependency 358 */))) {
r27 = property2;
continue;
}
moduleValue = require(property2);
r27 = moduleValue;
object3[propertyName3] = r27;
r23 = propertyName4;
}
object4[propertyName] = object3;
r11 = propertyName2;
} else {
object4[propertyName] = property;
r11 = propertyName2;
}
}
}
return object4;
}
function AnimatedTransform(a0, a1, a2) { // fn#5604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:559, offset: 0x00ce0e3b, size: 178 bytes, params: 4, frame: 20
const value = environment.__proto__;
let binding = env1_2;
binding(this, AnimatedTransform);
const items = [a2];
const value3 = env1_5(AnimatedTransform);
const value6 = env1_4(this, _isNativeReflectConstruct_5595() ? global.Reflect.construct(value3, items,
env1_5(this).constructor) : value3.apply(this, items));
const Object = global.Object;
const defineProperty = Object.defineProperty;
binding = env1_9;
Reflect.apply(defineProperty, Object, [value6, binding, {writable: true, value: undefined}]);
env1_8(value6, binding)[binding] = a0;
value6._transforms = a1;
return value6;
}
function value_5605(a0) { // fn#5605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:955, offset: 0x00ce0eed, size: 107 bytes, params: 2, frame: 20
var r2;
var property2;
var value3;
const value = environment.__proto__;
const binding = env1_8;
const binding2 = env1_9;
const property = binding(this, binding2)[binding2];
const length = property.length;
const value2 = 0;
if (value2 < length) {
for (r2 = value2; true; r2 = value3) {
property2 = property[r2];
property2.__makeNative(a0);
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value3 < length)) {
break;
}
}
}
_superPropGet_5598(AnimatedTransform, '__makeNative', this, 3)([a0]);
}
function value_5606() { // fn#5606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:1134, offset: 0x00ce0f58, size: 33 bytes, params: 1, frame: 13
return mapTransforms(this._transforms, function(a0) {
return a0.__getValue();
});
}
function value_5608(a0) { // fn#5608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:1278, offset: 0x00ce0f79, size: 55 bytes, params: 2, frame: 14
const env0_0 = [];
const mapTransformsBinding = mapTransforms;
mapTransformsBinding(this._transforms, _fun5609);
return mapTransformsBinding(a0, _fun5610);
}
function value_5611() { // fn#5611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:1489, offset: 0x00ce0fe5, size: 33 bytes, params: 1, frame: 13
return mapTransforms(this._transforms, function(a0) {
return a0.__getAnimatedValue();
});
}
function value_5613() { // fn#5613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:1627, offset: 0x00ce1006, size: 100 bytes, params: 1, frame: 19
var r2;
var property2;
var value3;
const value = environment.__proto__;
const binding = env1_8;
const binding2 = env1_9;
const property = binding(this, binding2)[binding2];
const length = property.length;
const value2 = 0;
if (value2 < length) {
for (r2 = value2; true; r2 = value3) {
property2 = property[r2];
property2.__addChild(this);
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value3 < length)) {
break;
}
}
}
_superPropGet_5598(AnimatedTransform, '__attach', this, 3)([]);
}
function value_5614() { // fn#5614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:1795, offset: 0x00ce106a, size: 100 bytes, params: 1, frame: 19
var r2;
var property2;
var value3;
const value = environment.__proto__;
const binding = env1_8;
const binding2 = env1_9;
const property = binding(this, binding2)[binding2];
const length = property.length;
const value2 = 0;
if (value2 < length) {
for (r2 = value2; true; r2 = value3) {
property2 = property[r2];
property2.__removeChild(this);
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value3 < length)) {
break;
}
}
}
_superPropGet_5598(AnimatedTransform, '__detach', this, 3)([]);
}
function value_5615() { // fn#5615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:1975, offset: 0x00ce10ce, size: 275 bytes, params: 1, frame: 35
var r10;
var r17;
var property;
var propertyName;
var propertyName2;
var property2;
var push;
var object3;
const items2 = [];
const _transforms = this._transforms;
const length = _transforms.length;
let value = 0;
if (value < length) {
r10 = value;
while (true) {
property = _transforms[r10];
for (propertyName in property) {
property2 = property[propertyName];
value = property2 instanceof (importDefault(358) /* metro dependency 358 */);
push = items2.push;
object3 = {};
if (value) {
object3.type = 'animated';
object3.property = propertyName;
object3.nodeTag = property2.__getNativeTag();
Reflect.apply(push, items2, [object3]);
r17 = propertyName2;
} else {
object3.type = 'static';
object3.property = propertyName;
value = importDefault(348) /* metro dependency 348 */;
object3.value = value.transformDataType(property2);
Reflect.apply(push, items2, [object3]);
r17 = propertyName2;
}
}
value = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
if (value < length) {
r10 = value;
continue;
}
break;
}
}
const object4 = {type: 'transform', transforms: items2};
object4.debugID = this.__getDebugID();
return object4;
}
function value_5616(a0) { // fn#5616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:2342, offset: 0x00ce11e1, size: 196 bytes, params: 2, frame: 29
var r1;
var r13;
var property;
var propertyName;
var propertyName2;
var property2;
var value4;
const value = a0;
const Array = global.Array;
const r9 = Array.isArray(value) ? value : [];
const items2 = [];
const length = r9.length;
const value2 = 0;
if (value2 < length) {
r1 = value2;
while (true) {
property = r9[r1];
for (propertyName in property) {
property2 = property[propertyName];
if (!(property2 instanceof (importDefault(358) /* metro dependency 358 */))) {
r13 = propertyName2;
continue;
}
items2.push(property2);
r13 = propertyName2;
}
value4 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (value4 < length) {
r1 = value4;
continue;
}
break;
}
}
return value2 === items2.length ? null : new AnimatedTransform(items2, value);
}
function _fun5602(a0) { // fn#5602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:2764, offset: 0x00ce0d1d, size: 52 bytes, params: 2, frame: 12
var r0;
var value3;
let value = a0;
if (value instanceof (importDefault(358) /* metro dependency 358 */)) {
value3 = environment.__proto__;
value = require(value);
r0 = value;
} else {
r0 = value;
}
return r0;
}
function _fun5609(a0) { // fn#5609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:1369, offset: 0x00ce0fb0, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
binding.push(a0.__getValue());
}
function _fun5610() { // fn#5610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:417:1424, offset: 0x00ce0fd2, size: 19 bytes, params: 1, frame: 9
return env0_0.shift();
}