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

125 lines
5.4 KiB
React

/* Metro module 363; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 358, 347, 354, 357] */
function _fun5377(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:404:6, offset: 0x00cdab6d, size: 196 bytes, params: 8, frame: 18
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 */;
exports.default = _fun5383(importDefault(357) /* metro dependency 357 */);
}
function _isNativeReflectConstruct_5378() { // fn#5378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:404:160, offset: 0x00cdac31, 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_5378_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_5381(a0, a1, a2, a3) { // fn#5381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:404:379, offset: 0x00cdac8f, 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 : _fun5382 : value;
}
function _fun5383(a0) { // fn#5383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:404:519, offset: 0x00cdacf2, size: 183 bytes, params: 2, frame: 16
const closure = AnimatedDivision;
env0_7(closure, a0);
return env0_3(closure, [{key: '__makeNative', value: value_5385}, {key: '__getValue', value: function() {
var r0;
var value = this._a.__getValue();
var value2 = this._b.__getValue();
var value3 = 0;
if (value3 === value2) {
if (this._warnedAboutDivideByZero) {
r0 = value3;
} else {
global.console.error('Detected division by zero in AnimatedDivision');
this._warnedAboutDivideByZero = true;
r0 = value3;
}
} else {
this._warnedAboutDivideByZero = false;
value /= value2;
r0 = value;
}
return r0;
}}, {key: 'interpolate', value: value_5387}, {key: '__attach', value: value_5388}, {key: '__detach',
value: value_5389}, {key: '__getNativeConfig', value: function() {
var object = {type: 'division'};
var items = [this._a.__getNativeTag()];
items[1] = this._b.__getNativeTag();
object.input = items;
object.debugID = this.__getDebugID();
return object;
}}]);
}
function AnimatedDivision(a0, a1, a2) { // fn#5384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:404:531, offset: 0x00cdada9, size: 331 bytes, params: 4, frame: 22
var r1;
let value = a0;
const value2 = a1;
env1_2(this, AnimatedDivision);
const items2 = [a2];
const value5 = env1_5(AnimatedDivision);
const value8 = env1_4(this, _isNativeReflectConstruct_5378() ? global.Reflect.construct(value5, items2,
env1_5(this).constructor) : value5.apply(this, items2));
value8._warnedAboutDivideByZero = false;
if (value2 === 0 || value2 instanceof (importDefault(358) /* metro dependency 358 */) && value2.__getValue() === 0) {
global.console.error('Detected potential division by zero in AnimatedDivision');
}
if (typeof value !== 'number') {
r1 = value;
} else {
value = new (importDefault(347) /* metro dependency 347 */)(value);
r1 = value;
}
value8._a = r1;
if (typeof value2 !== 'number') {
r1 = value2;
} else {
value = importDefault(347) /* metro dependency 347 */;
value = new value(value2);
r1 = value;
}
value8._b = r1;
return value8;
}
function value_5387(a0) { // fn#5387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:404:1520, offset: 0x00cdaf5a, size: 53 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = importDefault(354) /* metro dependency 354 */;
const value2 = Object.create(value.prototype, {constructor: {value: value}});
value = new value(this, a0);
return value instanceof Object ? value : value2;
}