265 lines
13 KiB
React
265 lines
13 KiB
React
/* Metro module 7748; source: unknown; dependencies: [65, 29, 6, 7, 15, 17, 18, 31, 27, 33, 7749, 7750, 7751, 7752, 7756, 7757, 7758, 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 ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import Module00065 from './module-00065.js'; /* Metro dependency 65 */
|
|
import Module07751 from './module-07751.js'; /* Metro dependency 7751 */
|
|
import __INTERNAL_VIEW_CONFIG from './module-07756-__INTERNAL_VIEW_CONFIG.js'; /* Metro dependency 7756 */
|
|
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 _fun61981(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:6, offset: 0x01b514b3, size: 368 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const env0_3 = ['style', 'opacity', 'viewBox', 'children', 'onLayout', 'preserveAspectRatio'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = ReactNativeModule;
|
|
const env0_11 = value.findNodeHandle;
|
|
value.Platform;
|
|
const StyleSheet = value.StyleSheet;
|
|
const env0_14 = StyleSheet.create({svg: {'backgroundColor': 'transparent', 'borderWidth': 0}}).svg;
|
|
value = importDefault(7768) /* metro dependency 7768 */;
|
|
value = _fun61985(value);
|
|
value.displayName = 'Svg';
|
|
value.defaultProps = {preserveAspectRatio: 'xMidYMid meet'};
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_61982() { // fn#61982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:329, offset: 0x01b51623, 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_61982_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun61985(a0) { // fn#61985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:622, offset: 0x01b51681, size: 68 bytes, params: 2, frame: 15
|
|
const Svg2 = Svg;
|
|
Inherits(Svg2, a0);
|
|
return CreateClass(Svg2, [{key: 'render', value: value_61992}]);
|
|
function Svg() { // fn#61986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:634, offset: 0x01b516c5, size: 248 bytes, params: 1, frame: 21
|
|
var environment;
|
|
var r2;
|
|
var r6;
|
|
var r0;
|
|
var value7;
|
|
var Reflect;
|
|
var construct;
|
|
let value = environment.__proto__;
|
|
let binding = env1_6;
|
|
binding(this, Svg);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value6 = 0;
|
|
if (value6 < length) {
|
|
r2 = value6;
|
|
reducibleLoop1: while (true) {
|
|
array[r2] = arguments[r2];
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value7 < length) {
|
|
r2 = value7;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const value8 = [].concat(array);
|
|
const value9 = env1_9(Svg);
|
|
binding = env1_8;
|
|
if (_isNativeReflectConstruct_61982()) {
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
reducibleJoin6: while (true) {
|
|
if (value8) {
|
|
r6 = value8;
|
|
break reducibleJoin6;
|
|
}
|
|
r6 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
r0 = Reflect.apply(construct, Reflect, [value9, r6, env1_9(this).constructor]);
|
|
} else {
|
|
r0 = value9.apply(this, value8);
|
|
}
|
|
value = binding(this, r0);
|
|
value.measureInWindow = measureInWindow_61987;
|
|
value.measure = measure_61988;
|
|
value.measureLayout = measureLayout_61989;
|
|
value.setNativeProps = setNativeProps_61990;
|
|
value.toDataURL = toDataURL;
|
|
return value;
|
|
function SvgMeasureInWindow(a0) { // fn#61987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:920, owner: Svg.measureInWindow, offset: 0x01b517bd, size: 34 bytes, params: 2, frame: 11
|
|
const root = env0_0.root;
|
|
if (root) {
|
|
root.measureInWindow(a0);
|
|
}
|
|
}
|
|
|
|
function SvgMeasure(a0) { // fn#61988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:980, owner: Svg.measure, offset: 0x01b517df, size: 34 bytes, params: 2, frame: 11
|
|
const root = env0_0.root;
|
|
if (root) {
|
|
root.measure(a0);
|
|
}
|
|
}
|
|
|
|
function SvgMeasureLayout(a0, a1, a2) { // fn#61989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:1038, owner: Svg.measureLayout, offset: 0x01b51801, size: 42 bytes, params: 4, frame: 15
|
|
const root = env0_0.root;
|
|
if (root) {
|
|
root.measureLayout(a0, a1, a2);
|
|
}
|
|
}
|
|
|
|
function SvgSetNativeProps(a0) { // fn#61990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:1111, owner: Svg.setNativeProps, offset: 0x01b5182b, size: 34 bytes, params: 2, frame: 11
|
|
const root = env0_0.root;
|
|
if (root) {
|
|
root.setNativeProps(a0);
|
|
}
|
|
}
|
|
|
|
function toDataURL(a0, a1) { // fn#61991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:1172, owner: Svg.toDataURL, offset: 0x01b5184d, size: 78 bytes, params: 3, frame: 16
|
|
var value;
|
|
if (a0) {
|
|
value = environment.__proto__.__proto__;
|
|
(require(7749) /* metro dependency 7749 */).default.toDataURL(findNodeHandle(env0_0.root), a1, a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function value_61992() { // fn#61992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:1289, offset: 0x01b5189b, size: 953 bytes, params: 1, frame: 48
|
|
var environment;
|
|
var r6;
|
|
var r30;
|
|
var r33;
|
|
var r31;
|
|
var value8;
|
|
var parseInt;
|
|
var int;
|
|
var int2;
|
|
const props = this.props;
|
|
const style = props.style;
|
|
const opacity = props.opacity;
|
|
const viewBox = props.viewBox;
|
|
const children = props.children;
|
|
const onLayout = props.onLayout;
|
|
const preserveAspectRatio = props.preserveAspectRatio;
|
|
let value = environment.__proto__;
|
|
const value2 = env1_5(props, env1_3);
|
|
let Object = global.Object;
|
|
let assign = Object.assign;
|
|
const Array = global.Array;
|
|
let {width, height, focusable, transform, font, fill, fillOpacity, fillRule, stroke, strokeWidth, strokeOpacity,
|
|
strokeDasharray, strokeDashoffset, strokeLinecap, strokeLinejoin, strokeMiterlimit,
|
|
position} = Reflect.apply(assign, Object, [{}, Array.isArray(style) ? global.Object.assign.apply(global.Object,
|
|
[{}].concat(env1_4(style))) : style, value2]);
|
|
if (width === undefined && height === undefined && position !== 'absolute') {
|
|
value8 = '100%';
|
|
r6 = value8;
|
|
width = value8;
|
|
} else {
|
|
r6 = height;
|
|
}
|
|
const Boolean = global.Boolean;
|
|
value2.focusable = Boolean(focusable) && focusable !== 'false';
|
|
let object = [svg];
|
|
if (style) {
|
|
object.push(style);
|
|
}
|
|
const object2 = {};
|
|
let r28 = opacity != null ? (importDefault(7750) /* metro dependency 7750 */)(opacity) : global.NaN;
|
|
let isNaN = global.isNaN;
|
|
if (isNaN(r28)) {
|
|
r30 = false;
|
|
} else {
|
|
object2.opacity = r28;
|
|
r30 = true;
|
|
}
|
|
if (width) {
|
|
if (r6) {
|
|
parseInt = global.parseInt;
|
|
int = parseInt(width, 10);
|
|
parseInt = global.parseInt;
|
|
int2 = parseInt(r6, 10);
|
|
isNaN = global.isNaN;
|
|
r33 = isNaN(int) || width[width.length - 1] === '%';
|
|
isNaN = global.isNaN;
|
|
r31 = isNaN(int2) || r6[r6.length - 1] === '%';
|
|
object2.width = r33 ? width : int;
|
|
object2.height = r31 ? r6 : int2;
|
|
object2.flex = 0;
|
|
r28 = true;
|
|
} else {
|
|
r28 = r30;
|
|
}
|
|
} else {
|
|
r28 = r30;
|
|
}
|
|
if (r28) {
|
|
object.push(object2);
|
|
}
|
|
value2.style = object.length > 1 ? object : svg;
|
|
if (width != null) {
|
|
value2.bbWidth = width;
|
|
}
|
|
if (r6 != null) {
|
|
value2.bbHeight = r6;
|
|
}
|
|
(Module07751)(value2, value2, this);
|
|
Object = global.Object;
|
|
const value18 = Object.assign({}, StyleSheet.flatten(style));
|
|
if (transform) {
|
|
if (value18.transform) {
|
|
value2.transform = value18.transform;
|
|
value18.transform = undefined;
|
|
}
|
|
value2.transform = (require(7752) /* metro dependency 7752 */).extractTransformSvgView(value2);
|
|
}
|
|
const defaultImport = __INTERNAL_VIEW_CONFIG;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object = {ref: ref_61993};
|
|
value = importDefault(7757) /* metro dependency 7757 */;
|
|
value = value({viewBox: viewBox, preserveAspectRatio: preserveAspectRatio});
|
|
const object4 = {};
|
|
object4.children = ((Component) => <Component children={children} style={value18} font={font} fill={fill} fillOpacity={fillOpacity} fillRule={fillRule} stroke={stroke} strokeWidth={strokeWidth} strokeOpacity={strokeOpacity} strokeDasharray={strokeDasharray} strokeDashoffset={strokeDashoffset} strokeLinecap={strokeLinecap} strokeLinejoin={strokeLinejoin} strokeMiterlimit={strokeMiterlimit} onLayout={onLayout} />)(importDefault(7758) /* metro dependency 7758 */);
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [{}, value2, object, value,
|
|
object4])} />)(defaultImport);
|
|
function value_61992Ref(a0) { // fn#61993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7926:2407, owner: value_61992.ref, offset: 0x01b51c54, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0.refMethod(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun61981, 7748, [65, 29, 6, 7, 15, 17, 18, 31, 27, 33, 7749, 7750, 7751, 7752, 7756, 7757, 7758,
|
|
7768]) /* metro module 7748, dependencies: [65, 29, 6, 7, 15, 17, 18, 31, 27, 33, 7749, 7750, 7751, 7752, 7756, 7757, 7758, 7768] */;
|