165 lines
7.3 KiB
React
165 lines
7.3 KiB
React
/* Metro module 5390; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 27, 31, 33, 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});
|
|
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
|
const env0_5 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_7 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_8 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
|
let value = require(27) /* metro dependency 27 */;
|
|
const env0_10 = value.Animated;
|
|
const env0_11 = value.Easing;
|
|
const env0_12 = value.StyleSheet;
|
|
const env0_13 = value.View;
|
|
importAll(31) /* metro dependency 31 */;
|
|
const Component = (require(31) /* metro dependency 31 */).Component;
|
|
const env0_14 = (require(33) /* metro dependency 33 */).jsx;
|
|
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 closure = TouchableOpacity_47575;
|
|
env0_9(closure, a0);
|
|
return env0_6(closure, [{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 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 = importDefault(5388) /* metro dependency 5388 */;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object2 = {};
|
|
object2.style = [r10, {opacity: this.opacity}];
|
|
object2.onStateChange = this.onStateChange;
|
|
object2.children = this.props.children || <View />;
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [{}, value2, object2])} />)(defaultImport);
|
|
}
|
|
|
|
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 = (require(5388) /* metro dependency 5388 */).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);
|
|
}
|
|
}
|
|
|