142 lines
6.6 KiB
React
142 lines
6.6 KiB
React
/* Metro module 5303; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33] */
|
|
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 _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 requireNativeComponent = ReactNativeModule.requireNativeComponent;
|
|
const env0_12 = requireNativeComponent('RNCMaskedView');
|
|
const Component = ReactModule.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 MaskedView_470172 = MaskedView_47017;
|
|
Inherits(MaskedView_470172, a0);
|
|
return CreateClass(MaskedView_470172, [{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;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun47012, 5303, [29, 6, 7, 15, 17, 18, 31, 27,
|
|
33]) /* metro module 5303, dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33] */;
|