/* Metro module 5390; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 27, 31, 33, 5388] */ 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 TOUCHABLE_STATE2 from './module-05388-TOUCHABLE_STATE.jsx'; /* Metro dependency 5388 */ import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as TOUCHABLE_STATEModule from './module-05388-TOUCHABLE_STATE.jsx'; /* Metro dependency 5388 */ function _fun47570(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5568:6, offset: 0x011c46cd, size: 359 bytes, params: 8, frame: 20 const env0_0 = require; const env0_3 = ['style']; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactNativeModule; const env0_10 = value.Animated; const env0_11 = value.Easing; const env0_12 = value.StyleSheet; const env0_13 = value.View; ReactModule; const Component = (ReactModule).Component; value = _fun47574(Component); Object = global.Object; value.defaultProps = Object.assign({}, (importDefault(5388) /* metro dependency 5388 */).defaultProps, {activeOpacity: 0.2}); exports.default = value; function _isNativeReflectConstruct_47571() { // fn#47571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5568:276, offset: 0x011c4834, 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_47571_isNativeReflectConstruct = function() { return !!result; })(); } function _fun47574(a0) { // fn#47574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5568:501, offset: 0x011c4892, size: 68 bytes, params: 2, frame: 15 const TouchableOpacity_475752 = TouchableOpacity_47575; Inherits(TouchableOpacity_475752, a0); return CreateClass(TouchableOpacity_475752, [{key: 'render', value: value_47579}]); function TouchableOpacity_47575() { // fn#47575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5568:513, offset: 0x011c48d6, size: 275 bytes, params: 1, frame: 21 var environment; var r3; var r7; var r0; var value7; var Reflect; var construct; let value = environment.__proto__; let binding = env1_5; binding(this, TouchableOpacity_47575); const length = arguments.length; const Array = global.Array; const array = new Array(length); const value6 = 0; if (value6 < length) { r3 = value6; reducibleLoop1: while (true) { array[r3] = arguments[r3]; value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value7 < length) { r3 = value7; continue reducibleLoop1; } break reducibleLoop1; } } const value8 = [].concat(array); const value9 = env1_8(TouchableOpacity_47575); binding = env1_7; if (_isNativeReflectConstruct_47571()) { Reflect = global.Reflect; construct = Reflect.construct; reducibleJoin6: while (true) { if (value8) { r7 = value8; break reducibleJoin6; } r7 = []; break reducibleJoin6; } r0 = Reflect.apply(construct, Reflect, [value9, r7, env1_8(this).constructor]); } else { r0 = value9.apply(this, value8); } const value12 = binding(this, r0); value12.getChildStyleOpacityWithDefault = getChildStyleOpacityWithDefault; const Value = Animated.Value; value = value12.getChildStyleOpacityWithDefault(); value = new Value(value); value12.opacity = value; value12.setOpacityTo = setOpacityTo; value12.onStateChange = onStateChange; return value12; function getChildStyleOpacityWithDefault() { // fn#47576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5568:854, owner: TouchableOpacity_47575.getChildStyleOpacityWithDefault, offset: 0x011c49e9, size: 73 bytes, params: 1, frame: 11 const value = environment.__proto__.__proto__; const r1 = StyleSheet.flatten(env0_0.props.style) || ({}); return r1.opacity == null ? 1 : r1.opacity.valueOf(); } function setOpacityTo(a0, a1) { // fn#47577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5568:1020, owner: TouchableOpacity_47575.setOpacityTo, offset: 0x011c4a32, size: 119 bytes, params: 3, frame: 17 const value = environment.__proto__.__proto__; const timing = Animated.timing; const opacity = env0_0.opacity; const useNativeAnimations = env0_0.props.useNativeAnimations; Reflect.apply(timing, Animated, [opacity, {toValue: a0, duration: a1, easing: Easing.inOut(Easing.quad), useNativeDriver: useNativeAnimations == null || useNativeAnimations}]).start(); } function TouchableOpacity_47575OnStateChange(a0, a1) { // fn#47578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5568:1188, owner: TouchableOpacity_47575.onStateChange, offset: 0x011c4aa9, size: 192 bytes, params: 3, frame: 15 var binding; const value = environment.__proto__.__proto__; const TOUCHABLE_STATE = (TOUCHABLE_STATEModule).TOUCHABLE_STATE; const BEGAN = TOUCHABLE_STATE.BEGAN; if (a1 === BEGAN) { binding = env0_0; binding.setOpacityTo(env0_0.props.activeOpacity, 0); } else if (!(a1 !== TOUCHABLE_STATE.UNDETERMINED && a1 !== TOUCHABLE_STATE.MOVED_OUTSIDE)) { binding = env0_0; binding.setOpacityTo(env0_0.getChildStyleOpacityWithDefault(), 150); } } } function value_47579() { // fn#47579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5568:1489, offset: 0x011c4b69, size: 177 bytes, params: 1, frame: 22 const props = this.props; const style = props.style; const r10 = style !== undefined ? style : {}; const value = environment.__proto__; const value2 = env1_4(props, env1_3); const defaultImport = TOUCHABLE_STATE2; const Object = global.Object; const assign = Object.assign; const object = {}; object.style = [r10, {opacity: this.opacity}]; object.onStateChange = this.onStateChange; object.children = this.props.children || ; return ((Component) => )(defaultImport); } } } global.__d(_fun47570, 5390, [29, 6, 7, 15, 17, 18, 27, 31, 33, 5388]) /* metro module 5390, dependencies: [29, 6, 7, 15, 17, 18, 27, 31, 33, 5388] */;