111 lines
5.9 KiB
React
111 lines
5.9 KiB
React
/* Metro module 5387; 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 * 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 */
|
|
|
|
function _fun47534(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5565:6, offset: 0x011c35fb, size: 374 bytes, params: 8, frame: 21
|
|
const env0_2 = ['style'];
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const Component = (ReactModule).Component;
|
|
const value = _fun47538(Component);
|
|
Object = global.Object;
|
|
value.defaultProps = Object.assign({}, (importDefault(5388) /* metro dependency 5388 */).defaultProps,
|
|
{useForeground: true, extraButtonProps: {rippleColor: null}});
|
|
value.SelectableBackground = function(a0) {
|
|
return {'type': 'ThemeAttrAndroid', 'attribute': 'selectableItemBackground', rippleRadius: a0};
|
|
};
|
|
value.SelectableBackgroundBorderless = function(a0) {
|
|
return {'type': 'ThemeAttrAndroid', 'attribute': 'selectableItemBackgroundBorderless', rippleRadius: a0};
|
|
};
|
|
value.Ripple = function(a0, a1, a2) {
|
|
return {type: 'RippleAndroid', color: a0, borderless: a1, rippleRadius: a2};
|
|
};
|
|
value.canUseNativeForeground = function() {
|
|
return Platform.Version >= 23;
|
|
};
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_47535() { // fn#47535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5565:237, offset: 0x011c3771, 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_47535_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun47538(a0) { // fn#47538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5565:462, offset: 0x011c37cf, size: 93 bytes, params: 2, frame: 16
|
|
const TouchableNativeFeedback_475392 = TouchableNativeFeedback_47539;
|
|
Inherits(TouchableNativeFeedback_475392, a0);
|
|
return CreateClass(TouchableNativeFeedback_475392, [{key: 'getExtraButtonProps', value: function() {
|
|
var object = {};
|
|
var background = this.props.background;
|
|
if (background) {
|
|
if (background.type === 'RippleAndroid') {
|
|
object.borderless = background.borderless;
|
|
object.rippleColor = background.color;
|
|
} else if (background.type === 'ThemeAttrAndroid') {
|
|
object.borderless = background.attribute === 'selectableItemBackgroundBorderless';
|
|
}
|
|
object.rippleRadius = background.rippleRadius;
|
|
}
|
|
object.foreground = this.props.useForeground;
|
|
return object;
|
|
}}, {key: 'render', value: value_47541}]);
|
|
function TouchableNativeFeedback_47539() { // fn#47539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5565:474, offset: 0x011c382c, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_4(this, TouchableNativeFeedback_47539);
|
|
const value3 = env1_7(TouchableNativeFeedback_47539);
|
|
return env1_6(this, _isNativeReflectConstruct_47535() ? global.Reflect.construct(value3, arguments,
|
|
env1_7(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_47541() { // fn#47541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5565:1154, offset: 0x011c391c, size: 115 bytes, params: 1, frame: 19
|
|
const props = this.props;
|
|
const style = props.style;
|
|
const r0 = style !== undefined ? style : {};
|
|
let value = environment.__proto__;
|
|
const value2 = env1_3(props, env1_2);
|
|
value = importDefault(5388) /* metro dependency 5388 */;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object = {style: r0};
|
|
object.extraButtonProps = this.getExtraButtonProps();
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [{}, value2, object])} />)(value);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun47534, 5387, [29, 6, 7, 15, 17, 18, 27, 31, 33,
|
|
5388]) /* metro module 5387, dependencies: [29, 6, 7, 15, 17, 18, 27, 31, 33, 5388] */;
|