100 lines
4.3 KiB
React
100 lines
4.3 KiB
React
/* Metro module 7815; source: unknown; dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 7757, 7816, 7759, 7768] */
|
|
function _fun62477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7993:6, offset: 0x01b5ea48, size: 284 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_8 = (require(27) /* metro dependency 27 */).Image;
|
|
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
|
const env0_10 = RegExp('\\s+', '');
|
|
let value = importDefault(7768) /* metro dependency 7768 */;
|
|
value = _fun62481(value);
|
|
value.displayName = 'Image';
|
|
value.defaultProps = {'x': 0, 'y': 0, 'width': 0, 'height': 0, 'preserveAspectRatio': 'xMidYMid meet'};
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_62478() { // fn#62478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7993:188, offset: 0x01b5eb64, 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_62478_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun62481(a0) { // fn#62481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7993:421, offset: 0x01b5ebc2, size: 68 bytes, params: 2, frame: 15
|
|
const closure = SvgImage;
|
|
env0_7(closure, a0);
|
|
return env0_4(closure, [{key: 'render', value: value_62483}]);
|
|
}
|
|
|
|
function value_62483() { // fn#62483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7993:687, offset: 0x01b5ec06, size: 362 bytes, params: 1, frame: 24
|
|
var environment;
|
|
var r7;
|
|
var value;
|
|
var split;
|
|
var value2;
|
|
const props = this.props;
|
|
const preserveAspectRatio = props.preserveAspectRatio;
|
|
const x = props.x;
|
|
const y = props.y;
|
|
const width = props.width;
|
|
const height = props.height;
|
|
const xlinkHref = props.xlinkHref;
|
|
const href = props.href;
|
|
const r11 = href !== undefined ? href : xlinkHref;
|
|
const onLoad = props.onLoad;
|
|
if (preserveAspectRatio) {
|
|
value = preserveAspectRatio.trim();
|
|
split = value.split;
|
|
value2 = environment.__proto__;
|
|
value = Reflect.apply(split, value, [env1_10]);
|
|
r7 = value;
|
|
} else {
|
|
r7 = [];
|
|
}
|
|
value = 0;
|
|
let property = r7[value];
|
|
const property2 = r7[1];
|
|
const object2 = {x: x, y: y, width: width, height: height, onLoad: onLoad};
|
|
object2.meetOrSlice = (require(7757) /* metro dependency 7757 */).meetOrSliceTypes[property2] || value;
|
|
property = (require(7757) /* metro dependency 7757 */).alignEnum[property];
|
|
object2.align = property || 'xMidYMid';
|
|
object2.src = r11 ? Image.resolveAssetSource(typeof r11 !== 'string' ? r11 : {uri: r11}) : null;
|
|
value = importDefault(7816) /* metro dependency 7816 */;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object4 = {ref: ref_62484};
|
|
const moduleValue = require(7759) /* metro dependency 7759 */;
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [object4, moduleValue.withoutXY(this, props),
|
|
object2])} />)(value);
|
|
}
|
|
|