139 lines
5.5 KiB
React
139 lines
5.5 KiB
React
/* Metro module 5303; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33] */
|
|
function _fun47012(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5481:6, offset: 0x011b624d, size: 291 bytes, params: 8, frame: 19
|
|
const env0_0 = ['maskElement', 'children'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_1 = importDefault(29) /* metro dependency 29 */;
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
|
const value = importAll(31) /* metro dependency 31 */;
|
|
const value2 = require(27) /* metro dependency 27 */;
|
|
const env0_8 = value2.View;
|
|
const env0_9 = value2.StyleSheet;
|
|
const requireNativeComponent = value2.requireNativeComponent;
|
|
const value3 = require(33) /* metro dependency 33 */;
|
|
const env0_10 = value3.jsx;
|
|
const env0_11 = value3.jsxs;
|
|
const env0_12 = requireNativeComponent('RNCMaskedView');
|
|
const Component = value.Component;
|
|
exports.default = _fun47016(Component);
|
|
}
|
|
|
|
function _isNativeReflectConstruct_47013() { // fn#47013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5481:289, offset: 0x011b6370, 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_47013_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun47016(a0) { // fn#47016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5481:535, offset: 0x011b63ce, size: 68 bytes, params: 2, frame: 15
|
|
const closure = MaskedView_47017;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, [{key: 'render', value: value_47018}]);
|
|
}
|
|
|
|
function MaskedView_47017() { // fn#47017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5481:547, offset: 0x011b6412, size: 195 bytes, params: 1, frame: 20
|
|
var r1;
|
|
var r5;
|
|
var r0;
|
|
var value7;
|
|
var Reflect;
|
|
var construct;
|
|
let value = environment.__proto__;
|
|
let binding = env1_2;
|
|
binding(this, MaskedView_47017);
|
|
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_5(MaskedView_47017);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_47013()) {
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
reducibleJoin6: while (true) {
|
|
if (value8) {
|
|
r5 = value8;
|
|
break reducibleJoin6;
|
|
}
|
|
r5 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
r0 = Reflect.apply(construct, Reflect, [value9, r5, env1_5(this).constructor]);
|
|
} else {
|
|
r0 = value9.apply(this, value8);
|
|
}
|
|
value = binding(this, r0);
|
|
value._hasWarnedInvalidRenderMask = false;
|
|
return value;
|
|
}
|
|
|
|
function value_47018() { // fn#47018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5481:928, offset: 0x011b64d5, size: 240 bytes, params: 1, frame: 25
|
|
var r0;
|
|
var Object;
|
|
var assign;
|
|
const props = this.props;
|
|
const maskElement = props.maskElement;
|
|
const children = props.children;
|
|
let value = environment.__proto__;
|
|
let binding = env1_1;
|
|
const value2 = binding(props, env1_0);
|
|
if (Reflect.apply(env1_7.isValidElement, binding, [maskElement])) {
|
|
binding = env1_12;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
value = <View pointerEvents="none" style={StyleSheet.absoluteFill}>{maskElement}</View>;
|
|
value = ((Component) => <Component {...Reflect.apply(assign, Object, [{}, value2, {children: [value,
|
|
children]}])} />)(binding);
|
|
r0 = value;
|
|
} else {
|
|
if (!this._hasWarnedInvalidRenderMask) {
|
|
global.console.warn('MaskedView: Invalid `maskElement` prop was passed to MaskedView. Expected a React Element. No mask will render.');
|
|
this._hasWarnedInvalidRenderMask = true;
|
|
}
|
|
Object = global.Object;
|
|
r0 = <View {...Object.assign({}, value2, {children: children})} />;
|
|
}
|
|
return r0;
|
|
}
|
|
|