/* Metro module 295; source: unknown; dependencies: [6, 7, 15, 17, 18, 31, 296, 298, 38, 44] */ function _fun4512(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:6, offset: 0x00cc4e70, size: 328 bytes, params: 8, frame: 23 const closure = createStackEntry; 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 */; const Component = (importAll(31) /* metro dependency 31 */).Component; const value = _fun4517(Component); value._propsStack = []; const value2 = importDefault(296) /* metro dependency 296 */; let getConstants = value2.getConstants; const DEFAULT_BACKGROUND_COLOR = Reflect.apply(getConstants, value2, []).DEFAULT_BACKGROUND_COLOR; value._defaultProps = closure({'backgroundColor': null, 'barStyle': 'default', 'translucent': false, 'hidden': false, 'networkActivityIndicatorVisible': false, backgroundColor: DEFAULT_BACKGROUND_COLOR ?? 'black'}); value._updateImmediate = null; value._currentValues = null; const value4 = value2; getConstants = value4.getConstants; const HEIGHT = Reflect.apply(getConstants, value4, []).HEIGHT; value.currentHeight = HEIGHT; value._updatePropsStack = _updatePropsStack; exports.default = value; } function _isNativeReflectConstruct_4513() { // fn#4513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:156, offset: 0x00cc4fb8, 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_4513_isNativeReflectConstruct = function() { return !!result; })(); } function createStackEntry(a0) { // fn#4516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:375, offset: 0x00cc5016, size: 189 bytes, params: 2, frame: 8 const animated = a0.animated; const value = null; const r5 = value != animated && animated; const showHideTransition = a0.showHideTransition; return {backgroundColor: value != a0.backgroundColor ? {value: a0.backgroundColor, animated: r5} : value, barStyle: value != a0.barStyle ? {value: a0.barStyle, animated: r5} : value, translucent: a0.translucent, hidden: value != a0.hidden ? {value: a0.hidden, animated: r5, transition: value != showHideTransition ? showHideTransition : 'fade'} : value, networkActivityIndicatorVisible: a0.networkActivityIndicatorVisible}; } function _fun4517(a0) { // fn#4517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:797, offset: 0x00cc50d3, size: 328 bytes, params: 2, frame: 18 const closure = StatusBar; env0_7(closure, a0); return env0_4(closure, [{key: 'componentDidMount', value: function() { this._stackEntry = StatusBar.pushStackEntry(this.props); }}, {key: 'componentWillUnmount', value: value_4520}, {key: 'componentDidUpdate', value: value_4521}, {key: 'render', value: function() { return null; }}], [{key: 'setHidden', value: value_4523}, {key: 'setBarStyle', value: value_4524}, {key: 'setNetworkActivityIndicatorVisible', value: function(a0) { global.console.warn('`setNetworkActivityIndicatorVisible` is only available on iOS'); }}, {key: 'setBackgroundColor', value: value_4526}, {key: 'setTranslucent', value: value_4527}, {key: 'pushStackEntry', value: value_4528}, {key: 'popStackEntry', value: function(a0) { var value2 = StatusBar._propsStack.indexOf(a0); if (value2 !== -1) { StatusBar._propsStack.splice(value2, 1); } StatusBar._updatePropsStack(); }}, {key: 'replaceStackEntry', value: value_4530}]); } function _updatePropsStack() { // fn#4531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:3386, offset: 0x00cc55e0, size: 54 bytes, params: 1, frame: 13 const clearImmediate = global.clearImmediate; const binding = env0_2; clearImmediate(binding._updateImmediate); binding._updateImmediate = global.setImmediate(_fun4532); } function StatusBar() { // fn#4518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:809, offset: 0x00cc521b, size: 195 bytes, params: 1, frame: 20 var r1; var r5; var r0; var value7; var Reflect; var construct; let value = environment.__proto__; let binding = env1_3; binding(this, StatusBar); const length = arguments.length; const Array = global.Array; const array = new Array(length); const value6 = 0; if (value6 < length) { r1 = value6; reducibleLoop1: while (true) { array[r1] = arguments[r1]; value7 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; if (value7 < length) { r1 = value7; continue reducibleLoop1; } break reducibleLoop1; } } const value8 = [].concat(array); const value9 = env1_6(StatusBar); binding = env1_5; if (_isNativeReflectConstruct_4513()) { Reflect = global.Reflect; construct = Reflect.construct; reducibleJoin6: while (true) { if (value8) { r5 = value8; break reducibleJoin6; } r5 = []; break reducibleJoin6; } r0 = Reflect.apply(construct, Reflect, [value9, r5, env1_6(this).constructor]); } else { r0 = value9.apply(this, value8); } value = binding(this, r0); value._stackEntry = null; return value; } function value_4520() { // fn#4520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:1301, offset: 0x00cc5302, size: 43 bytes, params: 1, frame: 11 if (this._stackEntry != null) { StatusBar.popStackEntry(this._stackEntry); } } function value_4521() { // fn#4521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:1433, offset: 0x00cc532d, size: 55 bytes, params: 1, frame: 14 if (this._stackEntry != null) { this._stackEntry = StatusBar.replaceStackEntry(this._stackEntry, this.props); } } function value_4523(a0, a1) { // fn#4523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:1642, offset: 0x00cc5364, size: 66 bytes, params: 3, frame: 12 StatusBar._defaultProps.hidden.value = a0; const value = environment.__proto__; (importDefault(296) /* metro dependency 296 */).setHidden(a0); } function value_4524(a0, a1) { // fn#4524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:1765, offset: 0x00cc53a6, size: 66 bytes, params: 3, frame: 12 StatusBar._defaultProps.barStyle.value = a0; const value = environment.__proto__; (importDefault(296) /* metro dependency 296 */).setStyle(a0); } function value_4526(a0, a1) { // fn#4526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:2069, offset: 0x00cc5404, size: 200 bytes, params: 3, frame: 19 var console; const r4 = a1 || false; StatusBar._defaultProps.backgroundColor.value = a0; value = environment.__proto__; const value2 = (importDefault(38) /* metro dependency 38 */)(a0); if (value2 != null) { value = importDefault(44) /* metro dependency 44 */; value(typeof value2 === 'number', 'Unexpected color given for StatusBar.setBackgroundColor'); value = importDefault(296) /* metro dependency 296 */; value.setColor(value2, r4); } else { console = global.console; console.warn('`StatusBar.setBackgroundColor`: Color ' + global.String(a0) + ' parsed to null or undefined'); } } function value_4527(a0) { // fn#4527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:2420, offset: 0x00cc54cc, size: 60 bytes, params: 2, frame: 12 StatusBar._defaultProps.translucent = a0; const value = environment.__proto__; (importDefault(296) /* metro dependency 296 */).setTranslucent(a0); } function value_4528(a0) { // fn#4528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:2541, offset: 0x00cc5508, size: 52 bytes, params: 2, frame: 12 let value = environment.__proto__; value = createStackEntry(a0); StatusBar._propsStack.push(value); StatusBar._updatePropsStack(); return value; } function value_4530(a0, a1) { // fn#4530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:2862, offset: 0x00cc558c, size: 84 bytes, params: 3, frame: 13 let value = environment.__proto__; value = createStackEntry(a1); const value3 = StatusBar._propsStack.indexOf(a0); if (value3 !== -1) { StatusBar._propsStack[value3] = value; } StatusBar._updatePropsStack(); return value; } function _fun4532() { // fn#4532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:3465, offset: 0x00cc5616, size: 415 bytes, params: 1, frame: 21 var r7; var r3; var defaultImport4; var console; var hidden; var defaultImport5; var defaultImport6; const {_currentValues, _propsStack, _defaultProps} = env1_2; const value2 = undefined; const value3 = ((a0, a1) => { var Object = global.Object; return a0.reduce(_fun4534, Object.assign({}, a1)); })(_propsStack, _defaultProps); const defaultImport = importDefault(296) /* metro dependency 296 */; defaultImport.setStyle(value3.barStyle.value); const value6 = (importDefault(38) /* metro dependency 38 */)(value3.backgroundColor.value); if (value6 == null) { console = global.console; console.warn('`StatusBar._updatePropsStack`: Color ' + value3.backgroundColor.value + ' parsed to null or undefined'); } else { (importDefault(44) /* metro dependency 44 */)(typeof value6 === 'number', 'Unexpected color given in StatusBar._updatePropsStack'); defaultImport4 = defaultImport; defaultImport4.setColor(value6, value3.backgroundColor.animated); } if (_currentValues) { hidden = _currentValues.hidden; r7 = hidden == null ? value2 : hidden.value; hidden = value3.hidden; r3 = r7 === hidden.value; } else { r3 = _currentValues; } if (!r3) { defaultImport5 = defaultImport; defaultImport5.setHidden(value3.hidden.value); } if (!(_currentValues && _currentValues.translucent === value3.translucent && !value3.translucent)) { defaultImport6 = defaultImport; defaultImport6.setTranslucent(value3.translucent); } env1_2._currentValues = value3; return value2; } function mergePropsStack(a0, a1) { // fn#4533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:336:3503, offset: 0x00cc57b5, size: 48 bytes, params: 3, frame: 15 const reduce = a0.reduce; const Object = global.Object; return Reflect.apply(reduce, a0, [function(a0, a1) { var r4; var propertyName; var propertyName2; for (propertyName in a1) { if (a1[propertyName] == null) { r4 = propertyName2; continue; } a0[propertyName] = a1[propertyName]; r4 = propertyName2; } return a0; }, Object.assign({}, a1)]); }