/* Metro module 4590; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 4591] */ 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}); const env0_4 = importDefault(29) /* metro dependency 29 */; const env0_5 = importDefault(6) /* metro dependency 6 */; const env0_6 = importDefault(7) /* metro dependency 7 */; const env0_7 = importDefault(15) /* metro dependency 15 */; const env0_8 = importDefault(17) /* metro dependency 17 */; const env0_9 = importDefault(18) /* metro dependency 18 */; let value = require(31) /* metro dependency 31 */; const Component = value.Component; const env0_10 = value.createRef; importDefault(31) /* metro dependency 31 */; 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 closure = LinearGradient; env0_9(closure, a0); return env0_6(closure, [{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 items = [value6(r1.borderTopLeftRadius)]; items[1] = value6(r1.borderTopLeftRadius); items[2] = value6(r1.borderTopRightRadius); items[3] = value6(r1.borderTopRightRadius); items[4] = value6(r1.borderBottomRightRadius); items[5] = value6(r1.borderBottomRightRadius); items[6] = value6(r1.borderBottomLeftRadius); items[7] = value6(r1.borderBottomLeftRadius); const Object = global.Object; const assign = Object.assign; const object4 = {}; object4.ref = this.gradientRef; const object5 = {style: style}; const defaultImport = importDefault(4591) /* metro dependency 4591 */; const convertPointBinding = convertPoint; object5.children = [((Component) => )(defaultImport), children]; return ; } 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; }