/* Metro module 282; source: unknown; dependencies: [6, 7, 283, 284, 44, 285, 46, 288] */ function _fun4407(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:6, offset: 0x00cc1f8c, size: 312 bytes, params: 8, frame: 19 const env0_0 = require; const normalizeDelay = function(a0) { var r3; var r2; var value = a0; var value2 = 0; r3 = arguments.length > 1 ? arguments[1] === undefined ? value2 : arguments[1] : value2; r2 = arguments.length > 2 ? arguments[2] === undefined ? value2 : arguments[2] : value2; var Math = global.Math; var max = Math.max; r2 = value ?? r2; return Reflect.apply(max, Math, [r3, r2]); }; const convertPointerEventToMouseEvent = function(a0) { var property = a0.nativeEvent; var clientX = property.clientX; property = property.clientY; var Object = global.Object; return Object.assign({}, a0, {nativeEvent: {clientX: clientX, clientY: property, pageX: clientX, pageY: property, timestamp: a0.timeStamp}}); }; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(6) /* metro dependency 6 */; const env0_4 = importDefault(7) /* metro dependency 7 */; Object = global.Object; const env0_5 = Object.freeze({NOT_RESPONDER: {'DELAY': 'ERROR', 'RESPONDER_GRANT': 'RESPONDER_INACTIVE_PRESS_IN', 'RESPONDER_RELEASE': 'ERROR', 'RESPONDER_TERMINATED': 'ERROR', 'ENTER_PRESS_RECT': 'ERROR', 'LEAVE_PRESS_RECT': 'ERROR', 'LONG_PRESS_DETECTED': 'ERROR'}, RESPONDER_INACTIVE_PRESS_IN: {'DELAY': 'RESPONDER_ACTIVE_PRESS_IN', 'RESPONDER_GRANT': 'ERROR', 'RESPONDER_RELEASE': 'NOT_RESPONDER', 'RESPONDER_TERMINATED': 'NOT_RESPONDER', 'ENTER_PRESS_RECT': 'RESPONDER_INACTIVE_PRESS_IN', 'LEAVE_PRESS_RECT': 'RESPONDER_INACTIVE_PRESS_OUT', 'LONG_PRESS_DETECTED': 'ERROR'}, RESPONDER_INACTIVE_PRESS_OUT: {'DELAY': 'RESPONDER_ACTIVE_PRESS_OUT', 'RESPONDER_GRANT': 'ERROR', 'RESPONDER_RELEASE': 'NOT_RESPONDER', 'RESPONDER_TERMINATED': 'NOT_RESPONDER', 'ENTER_PRESS_RECT': 'RESPONDER_INACTIVE_PRESS_IN', 'LEAVE_PRESS_RECT': 'RESPONDER_INACTIVE_PRESS_OUT', 'LONG_PRESS_DETECTED': 'ERROR'}, RESPONDER_ACTIVE_PRESS_IN: {'DELAY': 'ERROR', 'RESPONDER_GRANT': 'ERROR', 'RESPONDER_RELEASE': 'NOT_RESPONDER', 'RESPONDER_TERMINATED': 'NOT_RESPONDER', 'ENTER_PRESS_RECT': 'RESPONDER_ACTIVE_PRESS_IN', 'LEAVE_PRESS_RECT': 'RESPONDER_ACTIVE_PRESS_OUT', 'LONG_PRESS_DETECTED': 'RESPONDER_ACTIVE_LONG_PRESS_IN'}, RESPONDER_ACTIVE_PRESS_OUT: {'DELAY': 'ERROR', 'RESPONDER_GRANT': 'ERROR', 'RESPONDER_RELEASE': 'NOT_RESPONDER', 'RESPONDER_TERMINATED': 'NOT_RESPONDER', 'ENTER_PRESS_RECT': 'RESPONDER_ACTIVE_PRESS_IN', 'LEAVE_PRESS_RECT': 'RESPONDER_ACTIVE_PRESS_OUT', 'LONG_PRESS_DETECTED': 'ERROR'}, RESPONDER_ACTIVE_LONG_PRESS_IN: {'DELAY': 'ERROR', 'RESPONDER_GRANT': 'ERROR', 'RESPONDER_RELEASE': 'NOT_RESPONDER', 'RESPONDER_TERMINATED': 'NOT_RESPONDER', 'ENTER_PRESS_RECT': 'RESPONDER_ACTIVE_LONG_PRESS_IN', 'LEAVE_PRESS_RECT': 'RESPONDER_ACTIVE_LONG_PRESS_OUT', 'LONG_PRESS_DETECTED': 'RESPONDER_ACTIVE_LONG_PRESS_IN'}, RESPONDER_ACTIVE_LONG_PRESS_OUT: {'DELAY': 'ERROR', 'RESPONDER_GRANT': 'ERROR', 'RESPONDER_RELEASE': 'NOT_RESPONDER', 'RESPONDER_TERMINATED': 'NOT_RESPONDER', 'ENTER_PRESS_RECT': 'RESPONDER_ACTIVE_LONG_PRESS_IN', 'LEAVE_PRESS_RECT': 'RESPONDER_ACTIVE_LONG_PRESS_OUT', 'LONG_PRESS_DETECTED': 'ERROR'}, ERROR: {'DELAY': 'NOT_RESPONDER', 'RESPONDER_GRANT': 'RESPONDER_INACTIVE_PRESS_IN', 'RESPONDER_RELEASE': 'NOT_RESPONDER', 'RESPONDER_TERMINATED': 'NOT_RESPONDER', 'ENTER_PRESS_RECT': 'NOT_RESPONDER', 'LEAVE_PRESS_RECT': 'NOT_RESPONDER', 'LONG_PRESS_DETECTED': 'NOT_RESPONDER'}}); const isActiveSignal = function(a0) { return a0 === 'RESPONDER_ACTIVE_PRESS_IN' || a0 === 'RESPONDER_ACTIVE_LONG_PRESS_IN'; }; const isActivationSignal = function(a0) { return a0 === 'RESPONDER_ACTIVE_PRESS_OUT' || a0 === 'RESPONDER_ACTIVE_PRESS_IN'; }; const isPressInSignal = function(a0) { var r0; r0 = a0 === 'RESPONDER_INACTIVE_PRESS_IN' || a0 === 'RESPONDER_ACTIVE_PRESS_IN'; r0 = !r0 ? a0 === 'RESPONDER_ACTIVE_LONG_PRESS_IN' : r0; return r0; }; let value = _fun4413(); const getTouchFromPressEvent = function(a0) { var property = a0.nativeEvent; var changedTouches = property.changedTouches; property = property.touches; return property == null ? changedTouches == null ? a0.nativeEvent : changedTouches.length > 0 ? changedTouches[0] : a0.nativeEvent : property.length > 0 ? property[0] : changedTouches == null ? a0.nativeEvent : changedTouches.length > 0 ? changedTouches[0] : a0.nativeEvent; }; exports.default = value; } function _fun4413() { // fn#4413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:2646, offset: 0x00cc21cb, size: 430 bytes, params: 1, frame: 16 return env0_4(Pressability, [{key: 'configure', value: function(a0) { this._config = a0; }}, {key: 'reset', value: function() { this._cancelHoverInDelayTimeout(); this._cancelHoverOutDelayTimeout(); this._cancelLongPressDelayTimeout(); this._cancelPressDelayTimeout(); this._cancelPressOutDelayTimeout(); var Object = global.Object; this._config = Object.freeze({}); }}, {key: 'getEventHandlers', value: function() { if (this._eventHandlers == null) { this._eventHandlers = this._createEventHandlers(); } return this._eventHandlers; }}, {key: '_createEventHandlers', value: value_4419}, {key: '_receiveSignal', value: value_4435}, {key: '_performTransitionSideEffects', value: value_4437}, {key: '_activate', value: value_4438}, {key: '_deactivate', value: value_4439}, {key: '_measureResponderRegion', value: value_4441}, {key: '_isTouchWithinResponderRegion', value: value_4442}, {key: '_handleLongPress', value: function(a0) { if (!(this._touchState !== 'RESPONDER_ACTIVE_PRESS_IN' && this._touchState !== 'RESPONDER_ACTIVE_LONG_PRESS_IN')) { this._receiveSignal('LONG_PRESS_DETECTED', a0); } }}, {key: '_cancelHoverInDelayTimeout', value: function() { if (this._hoverInDelayTimeout != null) { global.clearTimeout(this._hoverInDelayTimeout); this._hoverInDelayTimeout = null; } }}, {key: '_cancelHoverOutDelayTimeout', value: function() { if (this._hoverOutDelayTimeout != null) { global.clearTimeout(this._hoverOutDelayTimeout); this._hoverOutDelayTimeout = null; } }}, {key: '_cancelLongPressDelayTimeout', value: function() { if (this._longPressDelayTimeout != null) { global.clearTimeout(this._longPressDelayTimeout); this._longPressDelayTimeout = null; } }}, {key: '_cancelPressDelayTimeout', value: function() { if (this._pressDelayTimeout != null) { global.clearTimeout(this._pressDelayTimeout); this._pressDelayTimeout = null; } }}, {key: '_cancelPressOutDelayTimeout', value: function() { if (this._pressOutDelayTimeout != null) { global.clearTimeout(this._pressOutDelayTimeout); this._pressOutDelayTimeout = null; } }}], [{key: 'setLongPressDeactivationDistance', value: function(a0) { env1_9 = a0; }}]); } function Pressability(a0) { // fn#4414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:2667, offset: 0x00cc2379, size: 126 bytes, params: 2, frame: 14 env1_3(this, Pressability); this._eventHandlers = null; this._hoverInDelayTimeout = null; this._hoverOutDelayTimeout = null; this._isHovered = false; this._longPressDelayTimeout = null; this._pressDelayTimeout = null; this._pressOutDelayTimeout = null; this._responderID = null; this._responderRegion = null; this._touchState = 'NOT_RESPONDER'; this._measureCallback = _measureCallback; this.configure(a0); } function value_4419() { // fn#4419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:3652, offset: 0x00cc24e0, size: 276 bytes, params: 1, frame: 20 var environment; var object4; var _config; var onHoverIn; var onHoverOut; const object5 = {onBlur: onBlur_4420, onFocus: onFocus_4421}; const object6 = {onStartShouldSetResponder: onStartShouldSetResponder, onResponderGrant: onResponderGrant_4423, onResponderMove: onResponderMove_4426, onResponderRelease: onResponderRelease_4427, onResponderTerminate: onResponderTerminate_4428, onResponderTerminationRequest: onResponderTerminationRequest, onClick: onClick_4430}; let value = environment.__proto__; value = importDefault(283) /* metro dependency 283 */; if (value.shouldPressibilityUseW3CPointerEventsForHover()) { object4 = {onPointerEnter: undefined, onPointerLeave: undefined}; _config = this._config; onHoverIn = _config.onHoverIn; onHoverOut = _config.onHoverOut; if (onHoverIn != null) { object4.onPointerEnter = onPointerEnter; } if (onHoverOut != null) { object4.onPointerLeave = onPointerLeave; } return global.Object.assign({}, object5, object6, object4); } const Object = global.Object; return Object.assign({}, object5, object6, null); } function value_4435(a0, a1) { // fn#4435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:6500, offset: 0x00cc2b18, size: 262 bytes, params: 3, frame: 23 var environment; var value; const env0_0 = a0; const env0_1 = a1; if (a1.nativeEvent.timestamp != null) { value = environment.__proto__; value = importDefault(284) /* metro dependency 284 */; value.emitEvent(_fun4436); } const _touchState = this._touchState; value = environment.__proto__; const property = env1_5[_touchState]; const value2 = undefined; const r1 = property == null ? value2 : property[a0]; let _responderID = this._responderID; let r8 = _responderID == null && a0 === 'RESPONDER_RELEASE'; if (!r8) { value = importDefault(44) /* metro dependency 44 */; r8 = r1 != null && r1 !== 'ERROR'; _responderID = this._responderID; _responderID = typeof _responderID !== 'number' ? '<>' : this._responderID; value(r8, 'Pressability: Invalid signal `%s` for state `%s` on responder: %s', a0, _touchState, _responderID); if (_touchState !== r1) { this._performTransitionSideEffects(_touchState, r1, a0, a1); this._touchState = r1; } } return value2; } function value_4437(a0, a1, a2, a3) { // fn#4437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:7053, offset: 0x00cc2c43, size: 375 bytes, params: 5, frame: 18 var _config; var onLongPress; var onPress; if (a2 === 'RESPONDER_TERMINATED' || a2 === 'RESPONDER_RELEASE') { this._touchActivatePosition = null; this._cancelLongPressDelayTimeout(); } let r1 = a0 === 'NOT_RESPONDER' && a1 === 'RESPONDER_INACTIVE_PRESS_IN'; value = environment.__proto__; r1 = !r1 ? !isActivationSignal(a0) && isActivationSignal(a1) : r1; if (r1) { this._measureResponderRegion(); } if (isPressInSignal(a0)) { if (a2 === 'LONG_PRESS_DETECTED') { onLongPress = this._config.onLongPress; if (onLongPress != null) { onLongPress(a3); } } } const isActiveSignalBinding = isActiveSignal; const isActiveSignal2 = isActiveSignalBinding(a0); const isActiveSignal3 = isActiveSignalBinding(a1); if (isActiveSignal2) { if (isActiveSignal2 && !isActiveSignal3) { this._deactivate(a3); } } else if (isActiveSignal3) { this._activate(a3); } else if (isActiveSignal2 && !isActiveSignal3) { this._deactivate(a3); } if (isPressInSignal(a0)) { if (a2 === 'RESPONDER_RELEASE') { if (!(isActiveSignal3 || isActiveSignal2)) { this._activate(a3); this._deactivate(a3); } _config = this._config; onLongPress = _config.onLongPress; onPress = _config.onPress; if (onPress != null) { if (!(onLongPress != null && a0 === 'RESPONDER_ACTIVE_LONG_PRESS_IN')) { if (_config.android_disableSound !== true) { (importDefault(285) /* metro dependency 285 */).playTouchSound(); } onPress(a3); } } } } this._cancelPressDelayTimeout(); } function value_4438(a0) { // fn#4438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:7837, offset: 0x00cc2dba, size: 98 bytes, params: 2, frame: 15 const onPressIn = this._config.onPressIn; let value = environment.__proto__; value = getTouchFromPressEvent(a0); this._touchActivatePosition = {pageX: value.pageX, pageY: value.pageY}; const Date = global.Date; this._touchActivateTime = Date.now(); if (onPressIn != null) { onPressIn(a0); } } function value_4439(a0) { // fn#4439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:8037, offset: 0x00cc2e1c, size: 205 bytes, params: 2, frame: 24 var environment; var value; var normalizeDelayBinding; var minPressDuration; var value2; var value3; var value5; var Math; var max; var value6; const env0_0 = a0; let _config = this._config; const onPressOut = _config.onPressOut; if (onPressOut != null) { value = environment.__proto__; normalizeDelayBinding = normalizeDelay; _config = this._config; minPressDuration = _config.minPressDuration; value2 = 0; value3 = normalizeDelayBinding(minPressDuration, value2, 130); value5 = global.Date.now() - (this._touchActivateTime ?? value2); Math = global.Math; max = Math.max; value6 = value3 - value5; normalizeDelayBinding = normalizeDelay; _config = this._config; value = Reflect.apply(max, Math, [value6, normalizeDelayBinding(_config.delayPressOut)]); if (value > value2) { a0.persist(); this._pressOutDelayTimeout = global.setTimeout(_fun4440, value); } else { onPressOut(a0); } } this._touchActivateTime = null; } function value_4441() { // fn#4441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:8426, offset: 0x00cc2efd, size: 113 bytes, params: 1, frame: 14 var value; let _responderID = this._responderID; if (_responderID != null) { _responderID = this._responderID; if (typeof _responderID === 'number') { value = environment.__proto__; value = importDefault(46) /* metro dependency 46 */; value.measure(this._responderID, this._measureCallback); } else { _responderID = this._responderID; _responderID.measure(this._measureCallback, true); } } } function value_4442(a0, {bottom, left, right, top}) { // fn#4442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:8677, offset: 0x00cc2f6e, size: 398 bytes, params: 3, frame: 23 var r11; var r10; var r3; var r0; var r2; var r4; var r5; var r9; let value = environment.__proto__; value = undefined; const moduleValue = require(288) /* metro dependency 288 */; const value2 = moduleValue.normalizeRect(this._config.hitSlop); const moduleValue2 = moduleValue; const value3 = moduleValue2.normalizeRect(this._config.pressRectOffset); if (value2 == null) { r2 = bottom; r4 = top; r5 = left; r9 = right; } else { r11 = value2.bottom == null ? bottom : bottom + value2.bottom; r10 = value2.left == null ? left : left - value2.left; r3 = value2.right == null ? right : right + value2.right; r0 = value2.top == null ? top : top - value2.top; r2 = r11; r4 = r0; r5 = r10; r9 = r3; } const value9 = r2 + ((value3 == null ? value : value3.bottom) ?? 30); const value11 = r5 - ((value3 == null ? value : value3.left) ?? 20); const value12 = r9 + ((value3 == null ? value : value3.right) ?? 20); value = r4 - ((value3 == null ? value : value3.top) ?? 20); return a0.pageX > value11 && a0.pageX < value12 && a0.pageY > value && a0.pageY < value9; } function _measureCallback(a0, a1, a2, a3, a4, a5) { // fn#4415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:3030, owner: Pressability._measureCallback, offset: 0x00cc23f7, size: 94 bytes, params: 7, frame: 7 const value = a0; const value2 = a1; const value3 = a2; const value4 = a3; const value5 = a4; const value6 = a5; let r0 = value || value2; r0 = !r0 ? value3 : r0; r0 = !r0 ? value4 : r0; r0 = !r0 ? value5 : r0; r0 = !r0 ? value6 : r0; if (r0) { env0_0._responderRegion = {bottom: value6 + value4, left: value5, right: value5 + value3, top: value6}; } } function value_4419OnBlur(a0) { // fn#4420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:3705, owner: value_4419.onBlur, offset: 0x00cc25f4, size: 39 bytes, params: 2, frame: 11 const onBlur = env0_0._config.onBlur; if (onBlur != null) { onBlur(a0); } } function value_4419OnFocus(a0) { // fn#4421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:3785, owner: value_4419.onFocus, offset: 0x00cc261b, size: 39 bytes, params: 2, frame: 11 const onFocus = env0_0._config.onFocus; if (onFocus != null) { onFocus(a0); } } function value_4419OnStartShouldSetResponder() { // fn#4422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:3892, owner: value_4419.onStartShouldSetResponder, offset: 0x00cc2642, size: 35 bytes, params: 1, frame: 3 const value = !env0_0._config.disabled; return value == null || value; } function value_4419OnResponderGrant(a0) { // fn#4423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:3993, owner: value_4419.onResponderGrant, offset: 0x00cc2665, size: 246 bytes, params: 2, frame: 19 const env0_0 = a0; a0.persist(); let binding = env0_0; binding._cancelPressOutDelayTimeout(); binding._responderID = a0.currentTarget; binding._touchState = 'NOT_RESPONDER'; binding._receiveSignal('RESPONDER_GRANT', a0); const value3 = normalizeDelay(binding._config.delayPressIn); if (value3 > 0) { env0_0._pressDelayTimeout = global.setTimeout(_fun4424, value3); } else { env0_0._receiveSignal('DELAY', a0); } normalizeDelayBinding = normalizeDelay; binding = env0_0; let value = normalizeDelayBinding(binding._config.delayLongPress, 10, 500 - value3); const setTimeout = global.setTimeout; value += value3; binding._longPressDelayTimeout = setTimeout(_fun4425, value); return binding._config.blockNativeResponder === true; } function value_4419OnResponderMove(a0) { // fn#4426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:4512, owner: value_4419.onResponderMove, offset: 0x00cc279a, size: 282 bytes, params: 2, frame: 18 var binding; var value4; const onPressMove = env0_0._config.onPressMove; if (onPressMove != null) { onPressMove(a0); } const _responderRegion = env0_0._responderRegion; if (_responderRegion != null) { var touchFromPressEvent = getTouchFromPressEvent(a0); if (touchFromPressEvent == null) { binding = env0_0; binding._cancelLongPressDelayTimeout(); binding._receiveSignal('LEAVE_PRESS_RECT', a0); return undefined; } var _touchActivatePosition = env0_0._touchActivatePosition; if (_touchActivatePosition != null) { binding = env0_0; _touchActivatePosition = binding._touchActivatePosition; value4 = _touchActivatePosition.pageX - touchFromPressEvent.pageX; _touchActivatePosition = binding._touchActivatePosition; if (global.Math.hypot(value4, _touchActivatePosition.pageY - touchFromPressEvent.pageY) > env2_9) { env0_0._cancelLongPressDelayTimeout(); } } binding = env0_0; var value7 = binding._isTouchWithinResponderRegion(touchFromPressEvent, _responderRegion); binding = env0_0; if (value7) { binding._receiveSignal('ENTER_PRESS_RECT', a0); } else { binding._cancelLongPressDelayTimeout(); binding._receiveSignal('LEAVE_PRESS_RECT', a0); } } } function value_4419OnResponderRelease(a0) { // fn#4427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:5069, owner: value_4419.onResponderRelease, offset: 0x00cc28b4, size: 30 bytes, params: 2, frame: 13 env0_0._receiveSignal('RESPONDER_RELEASE', a0); } function value_4419OnResponderTerminate(a0) { // fn#4428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:5162, owner: value_4419.onResponderTerminate, offset: 0x00cc28d2, size: 30 bytes, params: 2, frame: 13 env0_0._receiveSignal('RESPONDER_TERMINATED', a0); } function onResponderTerminationRequest() { // fn#4429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:5269, owner: value_4419.onResponderTerminationRequest, offset: 0x00cc28f0, size: 33 bytes, params: 1, frame: 3 const cancelable = env0_0._config.cancelable; return cancelable == null || cancelable; } function value_4419OnClick(a0) { // fn#4430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:5364, owner: value_4419.onClick, offset: 0x00cc2911, size: 147 bytes, params: 2, frame: 14 var nativeEvent; var value; var _config; var onPress; if (a0 == null) { value = undefined; if ((a0 == null ? value : a0.currentTarget) === (a0 == null ? value : a0.target)) { _config = env0_0._config; onPress = _config.onPress; if (onPress != null && _config.disabled !== true) { onPress(a0); } } else if (a0 != null) { a0.stopPropagation(); } } else { nativeEvent = a0.nativeEvent; if (nativeEvent == null) { value = undefined; if ((a0 == null ? value : a0.currentTarget) === (a0 == null ? value : a0.target)) { _config = env0_0._config; onPress = _config.onPress; if (onPress != null && _config.disabled !== true) { onPress(a0); } } else if (a0 != null) { a0.stopPropagation(); } } else if (nativeEvent.hasOwnProperty == null) { value = undefined; if ((a0 == null ? value : a0.currentTarget) === (a0 == null ? value : a0.target)) { _config = env0_0._config; onPress = _config.onPress; if (onPress != null && _config.disabled !== true) { onPress(a0); } } else if (a0 != null) { a0.stopPropagation(); } } else if (!nativeEvent.hasOwnProperty('pointerType')) { value = undefined; if ((a0 == null ? value : a0.currentTarget) === (a0 == null ? value : a0.target)) { _config = env0_0._config; onPress = _config.onPress; if (onPress != null && _config.disabled !== true) { onPress(a0); } } else if (a0 != null) { a0.stopPropagation(); } } } } function onPointerEnter(a0) { // fn#4431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:5838, owner: value_4419.onPointerEnter, offset: 0x00cc29a4, size: 143 bytes, params: 2, frame: 16 var environment; var value2; var value3; const env0_0 = a0; const binding = env0_0; binding._isHovered = true; binding._cancelHoverOutDelayTimeout(); if (onHoverIn != null) { value2 = environment.__proto__.__proto__; value3 = normalizeDelay(env0_0._config.delayHoverIn); if (value3 > 0) { a0.persist(); env0_0._hoverInDelayTimeout = global.setTimeout(_fun4432, value3); } else { onHoverIn(convertPointerEventToMouseEvent(a0)); } } } function onPointerLeave(a0) { // fn#4433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:6130, owner: value_4419.onPointerLeave, offset: 0x00cc2a56, size: 159 bytes, params: 2, frame: 16 var environment; var binding; var value2; var value3; const env0_0 = a0; if (env0_0._isHovered) { binding = env0_0; binding._isHovered = false; binding._cancelHoverInDelayTimeout(); if (onHoverOut != null) { value2 = environment.__proto__.__proto__; value3 = normalizeDelay(env0_0._config.delayHoverOut); if (value3 > 0) { a0.persist(); env0_0._hoverOutDelayTimeout = global.setTimeout(_fun4434, value3); } else { onHoverOut(convertPointerEventToMouseEvent(a0)); } } } } function _fun4436() { // fn#4436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:6585, offset: 0x00cc2c1e, size: 37 bytes, params: 1, frame: 3 return {signal: env0_0, nativeTimestamp: require.nativeEvent.timestamp}; } function _fun4424() { // fn#4424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:4247, offset: 0x00cc275b, size: 34 bytes, params: 1, frame: 13 env1_0._receiveSignal('DELAY', env0_0); } function _fun4425() { // fn#4425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:4419, offset: 0x00cc277d, size: 29 bytes, params: 1, frame: 11 env1_0._handleLongPress(env0_0); } function _fun4432() { // fn#4432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:6007, offset: 0x00cc2a33, size: 35 bytes, params: 1, frame: 12 onHoverIn(convertPointerEventToMouseEvent(env0_0)); } function _fun4434() { // fn#4434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:323:6316, offset: 0x00cc2af5, size: 35 bytes, params: 1, frame: 12 onHoverOut(convertPointerEventToMouseEvent(env0_0)); }