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

74 lines
3.2 KiB
React

/* Metro module 220; source: unknown; dependencies: [6, 7, 15, 17, 18, 201] */
function _fun3055(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:245:6, offset: 0x00c90234, 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 = _fun3059(importDefault(201) /* metro dependency 201 */);
}
function _isNativeReflectConstruct_3056() { // fn#3056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:245:148, offset: 0x00c902d7, 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_3056_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun3059(a0) { // fn#3059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:245:373, offset: 0x00c90335, size: 114 bytes, params: 2, frame: 16
const closure = MessageEvent;
env0_4(closure, a0);
return env0_1(closure, [{key: 'data', get: function() {
return this._data;
}}, {key: 'origin', get: function() {
return this._origin;
}}, {key: 'lastEventId', get: function() {
return this._lastEventId;
}}]);
}
function MessageEvent(a0, a1) { // fn#3060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:245:385, offset: 0x00c903a7, size: 237 bytes, params: 3, frame: 20
let value = environment.__proto__;
const binding = env1_0;
const value3 = undefined;
binding(this, MessageEvent);
const items2 = [a0, a1];
const value4 = env1_3(MessageEvent);
value = env1_2(this, _isNativeReflectConstruct_3056() ? global.Reflect.construct(value4, items2,
env1_3(this).constructor) : value4.apply(this, items2));
value._data = a1 == null ? value3 : a1.data;
let String = global.String;
const origin = a1 == null ? value3 : a1.origin;
const value5 = '';
value._origin = String(origin ?? value5);
String = global.String;
value._lastEventId = String((a1 == null ? value3 : a1.lastEventId) ?? value5);
return value;
}