// Metro module 133 (f134). import _classCallCheck from "./_classCallCheck"; import _createClass from "./_createClass"; import { COMPOSED_PATH_KEY, CURRENT_TARGET_KEY, EVENT_PHASE_KEY, IN_PASSIVE_LISTENER_FLAG_KEY, IS_TRUSTED_KEY, STOP_IMMEDIATE_PROPAGATION_FLAG_KEY, STOP_PROPAGATION_FLAG_KEY, TARGET_KEY, EVENT_INIT_TIMESTAMP_KEY, getCurrentTarget, getEventPhase, getIsTrusted, getTarget, getComposedPath, getInPassiveListenerFlag, setStopPropagationFlag, setStopImmediatePropagationFlag } from "./Module134"; import { setPlatformObject } from "./Module126"; let env130 = {}; const Event2 = function(a0, a1) { _classCallCheck(this, Event2); this._defaultPrevented = false; this[COMPOSED_PATH_KEY] = []; this[CURRENT_TARGET_KEY] = null; this[EVENT_PHASE_KEY] = Event2.NONE; this[IN_PASSIVE_LISTENER_FLAG_KEY] = false; this[IS_TRUSTED_KEY] = false; this[STOP_IMMEDIATE_PROPAGATION_FLAG_KEY] = false; this[STOP_PROPAGATION_FLAG_KEY] = false; this[TARGET_KEY] = null; if (arguments.length < 1) { throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present."); } if (a1 != null && typeof a1 !== "object" && typeof a1 !== "function") { throw new TypeError("Failed to construct 'Event': The provided value is not of type 'EventInit'."); } this._type = String(a0); this._bubbles = Boolean(a1?.bubbles); this._cancelable = Boolean(a1?.cancelable); this._composed = Boolean(a1?.composed); let _timeStamp = a1 == null ? void 0 : a1[EVENT_INIT_TIMESTAMP_KEY]; if (_timeStamp === void 0) { _timeStamp = performance.now(); } this._timeStamp = _timeStamp; }; const r47 = _createClass(Event2, [{ key: "bubbles", get: function get() { return this._bubbles; } }, { key: "cancelable", get: function get() { return this._cancelable; } }, { key: "composed", get: function get() { return this._composed; } }, { key: "currentTarget", get: function get() { return getCurrentTarget(this); } }, { key: "defaultPrevented", get: function get() { return this._defaultPrevented; } }, { key: "eventPhase", get: function get() { return getEventPhase(this); } }, { key: "isTrusted", get: function get() { return getIsTrusted(this); } }, { key: "target", get: function get() { return getTarget(this); } }, { key: "timeStamp", get: function get() { return this._timeStamp; } }, { key: "type", get: function get() { return this._type; } }, { key: "composedPath", value: function composedPath() { return getComposedPath(this).slice(); } }, { key: "preventDefault", value: function preventDefault() { if (this._cancelable) { if (getInPassiveListenerFlag(this)) { console.error(new Error("Unable to preventDefault inside passive event listener invocation.")); } else { this._defaultPrevented = true; } } } }, { key: "stopImmediatePropagation", value: function stopImmediatePropagation() { setStopPropagationFlag(this, true); setStopImmediatePropagationFlag(this, true); } }, { key: "stopPropagation", value: function stopPropagation() { setStopPropagationFlag(this, true); } }]); Object.defineProperty(r47, "NONE", { enumerable: true, value: 0 }); Object.defineProperty(r47.prototype, "NONE", { enumerable: true, value: 0 }); Object.defineProperty(r47, "CAPTURING_PHASE", { enumerable: true, value: 1 }); Object.defineProperty(r47.prototype, "CAPTURING_PHASE", { enumerable: true, value: 1 }); Object.defineProperty(r47, "AT_TARGET", { enumerable: true, value: 2 }); Object.defineProperty(r47.prototype, "AT_TARGET", { enumerable: true, value: 2 }); Object.defineProperty(r47, "BUBBLING_PHASE", { enumerable: true, value: 3 }); Object.defineProperty(r47.prototype, "BUBBLING_PHASE", { enumerable: true, value: 3 }); setPlatformObject(r47); export default r47;