117 lines
6.0 KiB
React
117 lines
6.0 KiB
React
/* Metro module 7815; source: unknown; dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 7757, 7816, 7759, 7768] */
|
|
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 Module07768 from './module-07768.js'; /* Metro dependency 7768 */
|
|
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 */
|
|
import * as Module07759Module from './module-07759.js'; /* Metro dependency 7759 */
|
|
|
|
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});
|
|
ReactModule;
|
|
const env0_10 = RegExp('\\s+', '');
|
|
let value = Module07768;
|
|
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 SvgImage2 = SvgImage;
|
|
Inherits(SvgImage2, a0);
|
|
return CreateClass(SvgImage2, [{key: 'render', value: value_62483}]);
|
|
function SvgImage() { // fn#62482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7993:433, offset: 0x0102b796, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_3(this, SvgImage);
|
|
const value3 = env1_6(SvgImage);
|
|
return env1_5(this, _isNativeReflectConstruct_62478() ? global.Reflect.construct(value3, arguments,
|
|
env1_6(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
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 object = {x: x, y: y, width: width, height: height, onLoad: onLoad};
|
|
object.meetOrSlice = (require(7757) /* metro dependency 7757 */).meetOrSliceTypes[property2] || value;
|
|
property = (require(7757) /* metro dependency 7757 */).alignEnum[property];
|
|
object.align = property || 'xMidYMid';
|
|
object.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 object3 = {ref: ref_62484};
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [object3, Module07759Module.withoutXY(this, props),
|
|
object])} />)(value);
|
|
function value_62483Ref(a0) { // fn#62484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7993:1094, owner: value_62483.ref, offset: 0x01b51c54, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0.refMethod(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun62477, 7815, [6, 7, 15, 17, 18, 31, 27, 33, 7757, 7816, 7759,
|
|
7768]) /* metro module 7815, dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 7757, 7816, 7759, 7768] */;
|