Files
2026-07-28 01:06:53 +03:00

192 lines
9.0 KiB
React

/* Metro module 4590; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 4591] */
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 React from './module-00031-React.js'; /* Metro dependency 31 */
import LinearGradient3 from './module-04591-LinearGradient.js'; /* Metro dependency 4591 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
function _fun38913(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4768:6, offset: 0x010d0ef8, size: 352 bytes, params: 8, frame: 19
const env0_3 = ['children', 'colors', 'end', 'locations', 'useAngle', 'angleCenter', 'angle', 'start', 'style'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
const Component = value.Component;
const env0_10 = value.createRef;
React;
value = require(27) /* metro dependency 27 */;
const env0_11 = value.processColor;
const env0_12 = value.StyleSheet;
const env0_13 = value.View;
value = require(33) /* metro dependency 33 */;
const env0_14 = value.jsx;
const env0_15 = value.jsxs;
const convertPoint = function(a0, a1) {
var r0;
var value = a1;
if (global.Array.isArray(value)) {
global.console.warn("LinearGradient '" + a0 + "' property should be an object with fields 'x' and 'y', Array type is deprecated.");
r0 = {x: value[0], y: value[1]};
} else {
r0 = value;
}
return r0;
};
value = _fun38918(Component);
value.defaultProps = {start: {'x': 0.5, 'y': 0}, end: {'x': 0.5, 'y': 1}};
exports.default = value;
function _isNativeReflectConstruct_38914() { // fn#38914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4768:379, offset: 0x010d1058, 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_38914_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun38918(a0) { // fn#38918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4768:796, offset: 0x010d111d, size: 91 bytes, params: 2, frame: 16
const LinearGradient2 = LinearGradient;
Inherits(LinearGradient2, a0);
return CreateClass(LinearGradient2, [{key: 'setNativeProps', value: function(a0) {
this.gradientRef.current.setNativeProps(a0);
}}, {key: 'render', value: value_38921}]);
function LinearGradient() { // fn#38919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4768:808, offset: 0x010d1178, size: 204 bytes, params: 1, frame: 20
var r3;
var r6;
var r0;
var value7;
var Reflect;
var construct;
let binding = env1_5;
binding(this, LinearGradient);
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
r3 = value6;
reducibleLoop1: while (true) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (value7 < length) {
r3 = value7;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
const value8 = [].concat(array);
const value9 = env1_8(LinearGradient);
binding = env1_7;
if (_isNativeReflectConstruct_38914()) {
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_8(this).constructor]);
} else {
r0 = value9.apply(this, value8);
}
const value12 = binding(this, r0);
value12.gradientRef = createRef();
return value12;
}
function value_38921() { // fn#38921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4768:1294, offset: 0x010d1264, size: 545 bytes, params: 1, frame: 35
var environment;
const props = this.props;
const children = props.children;
const colors = props.colors;
const end = props.end;
const locations = props.locations;
const useAngle = props.useAngle;
const angleCenter = props.angleCenter;
const angle = props.angle;
const start = props.start;
const style = props.style;
const value = environment.__proto__;
const value2 = env1_4(props, env1_3);
let r1 = colors && locations && colors.length !== locations.length;
if (r1) {
global.console.warn('LinearGradient colors and locations props should be arrays of the same length');
}
r1 = StyleSheet.flatten(style) || ({});
let borderRadius = r1.borderRadius;
borderRadius = !borderRadius ? 0 : borderRadius;
const value6 = ((a0) => {
var env0_0 = a0;
return _fun38923;
})(borderRadius);
const items2 = [value6(r1.borderTopLeftRadius)];
items2[1] = value6(r1.borderTopLeftRadius);
items2[2] = value6(r1.borderTopRightRadius);
items2[3] = value6(r1.borderTopRightRadius);
items2[4] = value6(r1.borderBottomRightRadius);
items2[5] = value6(r1.borderBottomRightRadius);
items2[6] = value6(r1.borderBottomLeftRadius);
items2[7] = value6(r1.borderBottomLeftRadius);
const Object = global.Object;
const assign = Object.assign;
const object = {};
object.ref = this.gradientRef;
const object2 = {style: style};
const defaultImport = LinearGradient3;
const convertPointBinding = convertPoint;
object2.children = [
((Component) => <Component style={{'position': 'absolute', 'top': 0, 'left': 0, 'bottom': 0,
'right': 0}} colors={env1_0.RN$Bridgeless ? colors : colors.map(processColor)} startPoint={convertPointBinding('start',
start)} endPoint={convertPointBinding('end', end)} locations={locations ? locations.slice(0,
colors.length) : null} useAngle={useAngle} angleCenter={convertPoint('angleCenter',
angleCenter)} angle={angle} borderRadii={items2} />)(defaultImport),
children,
];
return <View {...Reflect.apply(assign, Object, [object, value2, object2])} />;
function validNumber(a0) { // fn#38922, owner: value_38921.validNumber, offset: 0x010d1485, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun38923;
function _fun38923(a0) { // fn#38923, offset: 0x010d1495, size: 23 bytes, params: 2, frame: 3
const value = a0;
return typeof value === 'number' ? value : env0_0;
}
}
}
}
}
global.__d(_fun38913, 4590, [29, 6, 7, 15, 17, 18, 31, 27, 33,
4591]) /* metro module 4590, dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 4591] */;