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

73 lines
3.2 KiB
React

/* Metro module 207; source: unknown; dependencies: [6, 7, 15, 17, 18, 201] */
function _fun2922(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:232:6, offset: 0x00c8c7f5, size: 163 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
exports.default = _fun2926(importDefault(201) /* metro dependency 201 */);
}
function _isNativeReflectConstruct_2923() { // fn#2923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:232:148, offset: 0x00c8c898, 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_2923_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun2926(a0) { // fn#2926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:232:373, offset: 0x00c8c8f6, size: 114 bytes, params: 2, frame: 16
const closure = ProgressEvent;
env0_4(closure, a0);
return env0_1(closure, [{key: 'lengthComputable', get: function() {
return this._lengthComputable;
}}, {key: 'loaded', get: function() {
return this._loaded;
}}, {key: 'total', get: function() {
return this._total;
}}]);
}
function ProgressEvent(a0, a1) { // fn#2927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:232:385, offset: 0x00c8c968, size: 232 bytes, params: 3, frame: 20
let value = environment.__proto__;
const binding = env1_0;
const value3 = undefined;
binding(this, ProgressEvent);
const items2 = [a0, a1];
const value4 = env1_3(ProgressEvent);
value = env1_2(this, _isNativeReflectConstruct_2923() ? global.Reflect.construct(value4, items2,
env1_3(this).constructor) : value4.apply(this, items2));
const Boolean = global.Boolean;
value._lengthComputable = Boolean(a1 == null ? value3 : a1.lengthComputable);
let Number = global.Number;
value._loaded = Number(a1 == null ? value3 : a1.loaded) || 0;
Number = global.Number;
value._total = Number(a1 == null ? value3 : a1.total) || 0;
return value;
}