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

159 lines
9.1 KiB
JavaScript

/* Metro module 201; source: unknown; dependencies: [6, 7, 202, 129] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as Module00129Module from './module-00129.js'; /* Metro dependency 129 */
import * as Module00202Module from './module-00202.js'; /* Metro dependency 202 */
function _fun2856(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:6, offset: 0x00c8b20d, size: 387 bytes, params: 8, frame: 21
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = _fun2857();
Object = global.Object;
Object.defineProperty(value, 'NONE', {'enumerable': true, 'value': 0});
Object = global.Object;
Object.defineProperty(value.prototype, 'NONE', {'enumerable': true, 'value': 0});
Object = global.Object;
Object.defineProperty(value, 'CAPTURING_PHASE', {'enumerable': true, 'value': 1});
Object = global.Object;
Object.defineProperty(value.prototype, 'CAPTURING_PHASE', {'enumerable': true, 'value': 1});
Object = global.Object;
Object.defineProperty(value, 'AT_TARGET', {'enumerable': true, 'value': 2});
Object = global.Object;
Object.defineProperty(value.prototype, 'AT_TARGET', {'enumerable': true, 'value': 2});
Object = global.Object;
Object.defineProperty(value, 'BUBBLING_PHASE', {'enumerable': true, 'value': 3});
Object = global.Object;
Object.defineProperty(value.prototype, 'BUBBLING_PHASE', {'enumerable': true, 'value': 3});
(Module00129Module).setPlatformObject(value);
exports.default = value;
function _fun2857() { // fn#2857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:118, offset: 0x00c8b390, size: 354 bytes, params: 1, frame: 15
return CreateClass(Event, [{key: 'bubbles', get: function() {
return this._bubbles;
}}, {key: 'cancelable', get: function() {
return this._cancelable;
}}, {key: 'composed', get: function() {
return this._composed;
}}, {key: 'currentTarget', get: get_2862}, {key: 'defaultPrevented', get: function() {
return this._defaultPrevented;
}}, {key: 'eventPhase', get: get_2864}, {key: 'isTrusted', get: get_2865}, {key: 'target', get: get_2866},
{key: 'timeStamp', get: function() {
return this._timeStamp;
}}, {key: 'type', get: function() {
return this._type;
}}, {key: 'composedPath', value: value_2869}, {key: 'preventDefault', value: value_2870},
{key: 'stopImmediatePropagation', value: value_2871}, {key: 'stopPropagation', value: value_2872}]);
function Event(a0, a1) { // fn#2858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:139, offset: 0x00c8b4f2, size: 458 bytes, params: 3, frame: 21
var Boolean;
const value = undefined;
env1_2(this, Event);
this._defaultPrevented = false;
const performance = global.performance;
this._timeStamp = performance.now();
const COMPOSED_PATH_KEY = (Module00202Module).COMPOSED_PATH_KEY;
this[COMPOSED_PATH_KEY] = [];
const CURRENT_TARGET_KEY = (Module00202Module).CURRENT_TARGET_KEY;
this[CURRENT_TARGET_KEY] = null;
const EVENT_PHASE_KEY = (Module00202Module).EVENT_PHASE_KEY;
const NONE = Event.NONE;
this[EVENT_PHASE_KEY] = NONE;
const IN_PASSIVE_LISTENER_FLAG_KEY = (Module00202Module).IN_PASSIVE_LISTENER_FLAG_KEY;
this[IN_PASSIVE_LISTENER_FLAG_KEY] = false;
const IS_TRUSTED_KEY = (Module00202Module).IS_TRUSTED_KEY;
this[IS_TRUSTED_KEY] = false;
const STOP_IMMEDIATE_PROPAGATION_FLAG_KEY = (Module00202Module).STOP_IMMEDIATE_PROPAGATION_FLAG_KEY;
this[STOP_IMMEDIATE_PROPAGATION_FLAG_KEY] = false;
const STOP_PROPAGATION_FLAG_KEY = (Module00202Module).STOP_PROPAGATION_FLAG_KEY;
this[STOP_PROPAGATION_FLAG_KEY] = false;
const TARGET_KEY = (Module00202Module).TARGET_KEY;
this[TARGET_KEY] = null;
if (arguments.length < 1) {
throw new global.TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.");
}
const value4 = typeof a1;
if (a1 == null) {
this._type = global.String(a0);
} else {
if (value4 === 'object') {
this._type = global.String(a0);
Boolean = global.Boolean;
this._bubbles = Boolean(a1 == null ? value : a1.bubbles);
Boolean = global.Boolean;
this._cancelable = Boolean(a1 == null ? value : a1.cancelable);
Boolean = global.Boolean;
this._composed = Boolean(a1 == null ? value : a1.composed);
return value;
}
if (value4 !== 'function') {
throw new global.TypeError("Failed to construct 'Event': The provided value is not of type 'EventInit'.");
}
this._type = global.String(a0);
}
Boolean = global.Boolean;
this._bubbles = Boolean(a1 == null ? value : a1.bubbles);
Boolean = global.Boolean;
this._cancelable = Boolean(a1 == null ? value : a1.cancelable);
Boolean = global.Boolean;
this._composed = Boolean(a1 == null ? value : a1.composed);
return value;
}
function get_2862() { // fn#2862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:1201, offset: 0x00c8b6dd, size: 41 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (Module00202Module).getCurrentTarget(this);
}
function get_2864() { // fn#2864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:1353, offset: 0x00c8b711, size: 41 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (Module00202Module).getEventPhase(this);
}
function get_2865() { // fn#2865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:1426, offset: 0x00c8b73a, size: 41 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (Module00202Module).getIsTrusted(this);
}
function get_2866() { // fn#2866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:1495, offset: 0x00c8b763, size: 41 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (Module00202Module).getTarget(this);
}
function value_2869() { // fn#2869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:1681, offset: 0x00c8b7a2, size: 50 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = require(202) /* metro dependency 202 */;
value = value.getComposedPath(this);
return value.slice();
}
function value_2870() { // fn#2870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:1780, offset: 0x00c8b7d4, size: 115 bytes, params: 1, frame: 13
var value;
var console;
if (this._cancelable) {
value = environment.__proto__;
value = require(202) /* metro dependency 202 */;
if (value.getInPassiveListenerFlag(this)) {
console = global.console;
console.error(new global.Error('Unable to preventDefault inside passive event listener invocation.'));
} else {
this._defaultPrevented = true;
}
}
}
function value_2871() { // fn#2871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:2026, offset: 0x00c8b847, size: 65 bytes, params: 1, frame: 17
const value = environment.__proto__;
(Module00202Module).setStopPropagationFlag(this, true);
(Module00202Module).setStopImmediatePropagationFlag(this, true);
}
function value_2872() { // fn#2872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:226:2182, offset: 0x00c8b888, size: 44 bytes, params: 1, frame: 14
const value = environment.__proto__;
(Module00202Module).setStopPropagationFlag(this, true);
}
}
}
global.__d(_fun2856, 201, [6, 7, 202, 129]) /* metro module 201, dependencies: [6, 7, 202, 129] */;