/* Metro module 281; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 282, 117, 115, 38, 44] */ 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 */ import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */ import Module00038 from './module-00038.js'; /* Metro dependency 38 */ import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as Module00117Module from './module-00117.js'; /* Metro dependency 117 */ function _fun4386(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:6, offset: 0x00cc1368, size: 324 bytes, params: 8, frame: 19 const env0_0 = require; const env0_3 = ['onBlur', 'onFocus']; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; (JsxRuntimeModule).jsx; const Component = value.Component; value = _fun4390(Component); value.SelectableBackground = function(a0) { return {'type': 'ThemeAttrAndroid', 'attribute': 'selectableItemBackground', rippleRadius: a0}; }; value.SelectableBackgroundBorderless = function(a0) { return {'type': 'ThemeAttrAndroid', 'attribute': 'selectableItemBackgroundBorderless', rippleRadius: a0}; }; value.Ripple = Ripple; value.canUseNativeForeground = function() { return true; }; value.displayName = 'TouchableNativeFeedback'; exports.default = value; function _isNativeReflectConstruct_4387() { // fn#4387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:230, offset: 0x00cc14ac, 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_4387_isNativeReflectConstruct = function() { return !!result; })(); } function _fun4390(a0) { // fn#4390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:455, offset: 0x00cc150a, size: 206 bytes, params: 2, frame: 16 const TouchableNativeFeedback2 = TouchableNativeFeedback; Inherits(TouchableNativeFeedback2, a0); return CreateClass(TouchableNativeFeedback2, [{key: '_createPressabilityConfig', value: value_4392}, {key: '_dispatchPressedStateChange', value: function(a0) { var hostInstance_DEPRECATED = require(dependencyMap[9]).findHostInstance_DEPRECATED(this); if (hostInstance_DEPRECATED == null) { global.console.warn('Touchable: Unable to find HostComponent instance. Has your Touchable component been unmounted?'); } else { require(dependencyMap[10]).Commands.setPressed(hostInstance_DEPRECATED, a0); } }}, {key: '_dispatchHotspotUpdate', value: value_4397}, {key: 'render', value: value_4398}, {key: 'componentDidUpdate', value: function(a0, a1) { this.state.pressability.configure(this._createPressabilityConfig()); }}, {key: 'componentDidMount', value: function() { this.state.pressability.configure(this._createPressabilityConfig()); }}, {key: 'componentWillUnmount', value: function() { this.state.pressability.reset(); }}]); function TouchableNativeFeedback() { // fn#4391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:467, offset: 0x00cc15d8, size: 253 bytes, params: 1, frame: 20 var r1; var r6; var r0; var value7; var Reflect; var construct; let value = environment.__proto__; let binding = env1_5; binding(this, TouchableNativeFeedback); const length = arguments.length; const Array = global.Array; const array = new Array(length); const value6 = 0; if (value6 < length) { r1 = value6; reducibleLoop1: while (true) { array[r1] = arguments[r1]; value7 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; if (value7 < length) { r1 = value7; continue reducibleLoop1; } break reducibleLoop1; } } const value8 = [].concat(array); const value9 = env1_8(TouchableNativeFeedback); binding = env1_7; if (_isNativeReflectConstruct_4387()) { Reflect = global.Reflect; construct = Reflect.construct; reducibleJoin6: while (true) { if (value8) { r6 = value8; break reducibleJoin6; } r6 = []; break reducibleJoin6; } r0 = Reflect.apply(construct, Reflect, [value9, r6, env1_8(this).constructor]); } else { r0 = value9.apply(this, value8); } const value12 = binding(this, r0); value = importDefault(282) /* metro dependency 282 */; value = new value(value12._createPressabilityConfig()); value12.state = {pressability: value}; return value12; } function value_4392() { // fn#4392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:966, offset: 0x00cc16d5, size: 268 bytes, params: 1, frame: 7 let r3 = this.props['aria-disabled'] ?? this.props.accessibilityState?.disabled; r3 = this.props.disabled ?? r3; return {cancelable: !this.props.rejectResponderTermination, disabled: r3, hitSlop: this.props.hitSlop, delayLongPress: this.props.delayLongPress, delayPressIn: this.props.delayPressIn, delayPressOut: this.props.delayPressOut, minPressDuration: 0, pressRectOffset: this.props.pressRetentionOffset, android_disableSound: this.props.touchSoundDisabled, onLongPress: this.props.onLongPress, onPress: this.props.onPress, onPressIn: onPressIn, onPressMove: onPressMove, onPressOut: onPressOut}; function onPressIn(a0) { // fn#4393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:1566, owner: value_4392.onPressIn, offset: 0x00cc17e1, size: 75 bytes, params: 2, frame: 13 const binding = env0_0; binding._dispatchHotspotUpdate(a0); binding._dispatchPressedStateChange(true); if (binding.props.onPressIn != null) { env0_0.props.onPressIn(a0); } } function onPressMove(a0) { // fn#4394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:1709, owner: value_4392.onPressMove, offset: 0x00cc182c, size: 25 bytes, params: 2, frame: 11 env0_0._dispatchHotspotUpdate(a0); } function onPressOut(a0) { // fn#4395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:1773, owner: value_4392.onPressOut, offset: 0x00cc1845, size: 64 bytes, params: 2, frame: 12 const binding = env0_0; binding._dispatchPressedStateChange(false); if (binding.props.onPressOut != null) { env0_0.props.onPressOut(a0); } } } function value_4397({nativeEvent}) { // fn#4397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:2202, offset: 0x00cc18f7, size: 157 bytes, params: 2, frame: 20 var Commands; const locationX = nativeEvent.locationX; const locationY = nativeEvent.locationY; let value = environment.__proto__; const hostInstance_DEPRECATED = (Module00117Module).findHostInstance_DEPRECATED(this); if (hostInstance_DEPRECATED == null) { global.console.warn('Touchable: Unable to find HostComponent instance. Has your Touchable component been unmounted?'); } else { Commands = (require(115) /* metro dependency 115 */).Commands; value = 0; Commands.hotspotUpdate(hostInstance_DEPRECATED, locationX ?? value, locationY ?? value); } } function value_4398() { // fn#4398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:2529, offset: 0x00cc1994, size: 1260 bytes, params: 1, frame: 30 let value = environment.__proto__; const Children = env1_10.Children; const value2 = Children.only(this.props.children); const items3 = [value2.props.children]; const eventHandlers = this.state.pressability.getEventHandlers(); eventHandlers.onBlur; eventHandlers.onFocus; const binding = env1_4; const value4 = undefined; const value5 = binding(eventHandlers, env1_3); const object = {}; object.busy = this.props['aria-busy'] ?? (this.props.accessibilityState == null ? value4 : this.props.accessibilityState.busy); object.checked = this.props['aria-checked'] ?? (this.props.accessibilityState == null ? value4 : this.props.accessibilityState.checked); object.disabled = this.props['aria-disabled'] ?? (this.props.accessibilityState == null ? value4 : this.props.accessibilityState.disabled); object.expanded = this.props['aria-expanded'] ?? (this.props.accessibilityState == null ? value4 : this.props.accessibilityState.expanded); object.selected = this.props['aria-selected'] ?? (this.props.accessibilityState == null ? value4 : this.props.accessibilityState.selected); const r15 = this.props.disabled == null ? object : global.Object.assign({}, object, {disabled: this.props.disabled}); const object3 = {}; object3.max = this.props['aria-valuemax'] ?? (this.props.accessibilityValue == null ? value4 : this.props.accessibilityValue.max); object3.min = this.props['aria-valuemin'] ?? (this.props.accessibilityValue == null ? value4 : this.props.accessibilityValue.min); object3.now = this.props['aria-valuenow'] ?? (this.props.accessibilityValue == null ? value4 : this.props.accessibilityValue.now); object3.text = this.props['aria-valuetext'] ?? (this.props.accessibilityValue == null ? value4 : this.props.accessibilityValue.text); const r11 = this.props['aria-live'] === 'off' ? 'none' : this.props['aria-live'] ?? this.props.accessibilityLiveRegion; const r17 = this.props['aria-label'] ?? this.props.accessibilityLabel; const cloneElementBinding = cloneElement; const apply = cloneElementBinding.apply; const items2 = [value2]; const Object = global.Object; const assign = Object.assign; const getBackgroundPropBinding = getBackgroundProp; const r7 = value4 === this.props.background ? TouchableNativeFeedback.SelectableBackground() : this.props.background; const useForeground = this.props.useForeground; value = getBackgroundPropBinding(r7, useForeground === true); const accessibilityHint = this.props.accessibilityHint; items2[1] = Reflect.apply(assign, Object, [{}, value5, value, {accessible: this.props.accessible !== false, accessibilityHint: accessibilityHint, accessibilityLanguage: this.props.accessibilityLanguage, accessibilityLabel: r17, accessibilityRole: this.props.accessibilityRole, accessibilityState: r15, accessibilityActions: this.props.accessibilityActions, onAccessibilityAction: this.props.onAccessibilityAction, accessibilityValue: object3, importantForAccessibility: this.props['aria-hidden'] === true ? 'no-hide-descendants' : this.props.importantForAccessibility, accessibilityViewIsModal: this.props['aria-modal'] ?? this.props.accessibilityViewIsModal, accessibilityLiveRegion: r11, accessibilityElementsHidden: this.props['aria-hidden'] ?? this.props.accessibilityElementsHidden, hasTVPreferredFocus: this.props.hasTVPreferredFocus, hitSlop: this.props.hitSlop, focusable: this.props.focusable !== false && value4 !== this.props.onPress && !this.props.disabled, nativeID: this.props.id ?? this.props.nativeID, nextFocusDown: this.props.nextFocusDown, nextFocusForward: this.props.nextFocusForward, nextFocusLeft: this.props.nextFocusLeft, nextFocusRight: this.props.nextFocusRight, nextFocusUp: this.props.nextFocusUp, onLayout: this.props.onLayout, testID: this.props.testID}]); return Reflect.apply(apply, cloneElementBinding, [value4, items2.concat(items3)]); } } function Ripple(a0, a1, a2) { // fn#4404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:5953, offset: 0x00cc1eeb, size: 111 bytes, params: 4, frame: 15 let value = Module00038; value = value(a0); (importDefault(44) /* metro dependency 44 */)(value == null || typeof value === 'number', 'Unexpected color given for Ripple color'); return {type: 'RippleAndroid', color: value, borderless: a1, rippleRadius: a2}; } function getBackgroundProp(a0, a1) { // fn#4406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:322:6202, offset: 0x00cc1f5a, size: 50 bytes, params: 3, frame: 10 return a1 && env0_12.canUseNativeForeground() ? {nativeForegroundAndroid: a0} : {nativeBackgroundAndroid: a0}; } } global.__d(_fun4386, 281, [29, 6, 7, 15, 17, 18, 31, 33, 282, 117, 115, 38, 44]) /* metro module 281, dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 282, 117, 115, 38, 44] */;