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

76 lines
3.7 KiB
JavaScript

/* Metro module 220; source: unknown; dependencies: [6, 7, 15, 17, 18, 201] */
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 */
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});
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 MessageEvent2 = MessageEvent;
Inherits(MessageEvent2, a0);
return CreateClass(MessageEvent2, [{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;
}
}
}
global.__d(_fun3055, 220, [6, 7, 15, 17, 18, 201]) /* metro module 220, dependencies: [6, 7, 15, 17, 18, 201] */;