/* Metro module 5410; source: unknown; dependencies: [29, 31, 27, 33, 1588, 5411, 5408, 5413, 5414] */ import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */ import Module05408 from './module-05408.js'; /* Metro dependency 5408 */ import Module05411 from './module-05411.js'; /* Metro dependency 5411 */ import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */ import * as Module01588Module from './module-01588.js'; /* Metro dependency 1588 */ function _fun47714(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5588:6, offset: 0x011ca1e7, size: 305 bytes, params: 8, frame: 19 const env0_0 = require; const env0_3 = ['height', 'minHeight', 'maxHeight', 'backgroundColor', 'borderBottomColor', 'borderBottomEndRadius', 'borderBottomLeftRadius', 'borderBottomRightRadius', 'borderBottomStartRadius', 'borderBottomWidth', 'borderColor', 'borderEndColor', 'borderEndWidth', 'borderLeftColor', 'borderLeftWidth', 'borderRadius', 'borderRightColor', 'borderRightWidth', 'borderStartColor', 'borderStartWidth', 'borderStyle', 'borderTopColor', 'borderTopEndRadius', 'borderTopLeftRadius', 'borderTopRightRadius', 'borderTopStartRadius', 'borderTopWidth', 'borderWidth', 'boxShadow', 'elevation', 'shadowColor', 'shadowOffset', 'shadowOpacity', 'shadowRadius', 'opacity', 'transform']; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactNativeModule; const env0_6 = value.Animated; value.Platform; const StyleSheet = value.StyleSheet; const env0_8 = value.View; value = require(33) /* metro dependency 33 */; const env0_9 = value.jsx; const env0_10 = value.jsxs; const env0_11 = StyleSheet.create({content: {'flex': 1, 'flexDirection': 'row', 'alignItems': 'stretch'}, title: {'marginHorizontal': 16, 'justifyContent': 'center'}, left: {'justifyContent': 'center', 'alignItems': 'flex-start'}, right: {'justifyContent': 'center', 'alignItems': 'flex-end'}, expand: {'flexGrow': 1, 'flexBasis': 0}}); exports.default = Header_47715; function Header_47715({layout, modal, title, headerTitle, headerTitleAlign, headerLeft, headerLeftLabelVisible, headerTransparent, headerTintColor, headerBackground, headerRight, headerTitleAllowFontScaling, headerTitleStyle, headerLeftContainerStyle, headerRightContainerStyle, headerTitleContainerStyle, headerBackgroundContainerStyle, headerStyle, headerShadowVisible, headerPressColor, headerPressOpacity, headerStatusBarHeight}) { // fn#47715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5588:1114, offset: 0x011ca318, size: 1565 bytes, params: 2, frame: 72 var r18; var r35; var r31; var propertyName; var propertyName2; var Math; const value2 = (Module01588Module).useSafeAreaInsets(); const value3 = (Module01588Module).useSafeAreaFrame(); let binding = ReactModule; const value4 = binding.useContext(Module05411); const top = value2.top; const r30 = layout !== undefined ? layout : value3; const r7 = modal !== undefined && modal; let r28 = headerTitleAlign === undefined ? 'left' : headerTitleAlign; const r12 = headerStatusBarHeight !== undefined ? headerStatusBarHeight : value4 ? 0 : top; const value8 = (Module05408)(r30, r7, r12); const value9 = StyleSheet.flatten(headerStyle || ({})); const height = value9.height; const r27 = height !== undefined ? height : value8; const minHeight = value9.minHeight; const maxHeight = value9.maxHeight; const backgroundColor = value9.backgroundColor; const borderBottomColor = value9.borderBottomColor; const borderBottomEndRadius = value9.borderBottomEndRadius; const borderBottomLeftRadius = value9.borderBottomLeftRadius; const borderBottomRightRadius = value9.borderBottomRightRadius; const borderBottomStartRadius = value9.borderBottomStartRadius; const borderBottomWidth = value9.borderBottomWidth; const borderColor = value9.borderColor; const borderEndColor = value9.borderEndColor; const borderEndWidth = value9.borderEndWidth; const borderLeftColor = value9.borderLeftColor; const borderLeftWidth = value9.borderLeftWidth; const borderRadius = value9.borderRadius; const borderRightColor = value9.borderRightColor; const borderRightWidth = value9.borderRightWidth; const borderStartColor = value9.borderStartColor; const borderStartWidth = value9.borderStartWidth; const borderStyle = value9.borderStyle; const borderTopColor = value9.borderTopColor; const borderTopEndRadius = value9.borderTopEndRadius; const borderTopLeftRadius = value9.borderTopLeftRadius; const borderTopRightRadius = value9.borderTopRightRadius; const borderTopStartRadius = value9.borderTopStartRadius; const borderTopWidth = value9.borderTopWidth; const borderWidth = value9.borderWidth; const boxShadow = value9.boxShadow; const elevation = value9.elevation; const shadowColor = value9.shadowColor; const shadowOffset = value9.shadowOffset; const shadowOpacity = value9.shadowOpacity; const shadowRadius = value9.shadowRadius; const opacity = value9.opacity; const transform = value9.transform; ObjectWithoutProperties(value9, env0_3); const object = {backgroundColor: backgroundColor, borderBottomColor: borderBottomColor, borderBottomEndRadius: borderBottomEndRadius, borderBottomLeftRadius: borderBottomLeftRadius, borderBottomRightRadius: borderBottomRightRadius, borderBottomStartRadius: borderBottomStartRadius, borderBottomWidth: borderBottomWidth, borderColor: borderColor, borderEndColor: borderEndColor, borderEndWidth: borderEndWidth, borderLeftColor: borderLeftColor, borderLeftWidth: borderLeftWidth, borderRadius: borderRadius, borderRightColor: borderRightColor, borderRightWidth: borderRightWidth, borderStartColor: borderStartColor, borderStartWidth: borderStartWidth, borderStyle: borderStyle, borderTopColor: borderTopColor, borderTopEndRadius: borderTopEndRadius, borderTopLeftRadius: borderTopLeftRadius, borderTopRightRadius: borderTopRightRadius, borderTopStartRadius: borderTopStartRadius, borderTopWidth: borderTopWidth, borderWidth: borderWidth, boxShadow: boxShadow, elevation: elevation, shadowColor: shadowColor, shadowOffset: shadowOffset, shadowOpacity: shadowOpacity, shadowRadius: shadowRadius, opacity: opacity, transform: transform}; for (propertyName in object) { if (object[propertyName] !== undefined) { r18 = propertyName2; continue; } delete object[propertyName]; r18 = propertyName2; } const items2 = [object]; items2[1] = headerShadowVisible === false && ({'elevation': 0, 'shadowOpacity': 0, 'borderBottomWidth': 0}); const r29 = headerLeft ? headerLeft({tintColor: headerTintColor, pressColor: headerPressColor, pressOpacity: headerPressOpacity, labelVisible: headerLeftLabelVisible}) : null; const r15 = headerRight ? headerRight({tintColor: headerTintColor, pressColor: headerPressColor, pressOpacity: headerPressOpacity}) : null; const r21 = typeof headerTitle === 'function' ? headerTitle : _fun47716; const Fragment = ReactModule.Fragment; const View2 = Animated.View; const view = ( { headerBackground ? headerBackground({style: items2}) : ( headerTransparent ? null : ((Component) => )(importDefault(5414) /* metro dependency 5414 */) ) } ); const View3 = Animated.View; const items4 = [{height: r27, minHeight: minHeight, maxHeight: maxHeight, opacity: opacity, transform: transform}]; const view2 = ; binding = env0_11; const content = binding.content; const View4 = Animated.View; const value18 = r28 === 'center'; const items7 = [ {r29} , ]; const View5 = Animated.View; const items8 = [env0_11.title]; const width = r30.width; if (value18) { r31 = r29 ? headerLeftLabelVisible === false ? 32 : 80 : 16; Math = global.Math; r28 = width - 2 * (r31 + Math.max(value2.left, value2.right)); } else { r35 = r29 ? 72 : 16; r28 = r15 ? 72 : 16; r28 = width - (r35 + r28 + value2.left - value2.right); } items8[1] = {maxWidth: r28}; items8[2] = headerTitleContainerStyle; items7[1] = ( {r21({children: title, allowFontScaling: headerTitleAllowFontScaling, tintColor: headerTintColor, style: headerTitleStyle})} ); const View6 = Animated.View; binding = env0_11; items7[2] = ( {r15} ); return ( {view} {view2} {items7} ); function _fun47716(a0) { // fn#47716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5588:3465, offset: 0x011b5654, size: 61 bytes, params: 2, frame: 16 let value = environment.__proto__; value = importDefault(5413) /* metro dependency 5413 */; const Object = global.Object; return ((Component) => )(value); } } } global.__d(_fun47714, 5410, [29, 31, 27, 33, 1588, 5411, 5408, 5413, 5414]) /* metro module 5410, dependencies: [29, 31, 27, 33, 1588, 5411, 5408, 5413, 5414] */;