99 lines
4.6 KiB
React
99 lines
4.6 KiB
React
/* Metro module 5387; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 27, 31, 33, 5388] */
|
|
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});
|
|
const env0_3 = importDefault(29) /* metro dependency 29 */;
|
|
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
|
const env0_9 = (require(27) /* metro dependency 27 */).Platform;
|
|
importAll(31) /* metro dependency 31 */;
|
|
const Component = (require(31) /* metro dependency 31 */).Component;
|
|
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
|
|
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 closure = TouchableNativeFeedback_47539;
|
|
env0_8(closure, a0);
|
|
return env0_5(closure, [{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 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 object2 = {style: r0};
|
|
object2.extraButtonProps = this.getExtraButtonProps();
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [{}, value2, object2])} />)(value);
|
|
}
|
|
|