/* Metro module 14697; source: modules/guild_sidebar/native/ChannelBadge.tsx; dependencies: [31, 27, 1949, 33, 4501, 632, 14698, 11819, 4573, 1856, 2] */ function _fun110877(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14894:6, offset: 0x0238acc2, size: 208 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); importAll(31) /* metro dependency 31 */; const env0_3 = (require(27) /* metro dependency 27 */).View; const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */; const env0_5 = (require(33) /* metro dependency 33 */).jsx; const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() { return {channelInfoContainer: {paddingStart: 4}}; }); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/ChannelBadge.tsx'); exports.default = ChannelBadge; } function ChannelBadge({mentionCount, isMentionLowImportance, isNewChannel, postsWithUnreadsCount, muted}) { // fn#110879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14894:305, offset: 0x0238ada5, size: 394 bytes, params: 2, frame: 25 var r0; const Text = (require(4573) /* metro dependency 4573: Text */).Text; var value; const styles = useStyles(); const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore], function() { return LocaleStore.locale; }); if (mentionCount == null) { if (isNewChannel) { var viewBindingProps = {style: styles.channelInfoContainer}; value = importDefault(11819) /* metro dependency 11819: NewBadge */; value = {((Component) => )(value)}; r0 = value; } else if (muted != null) { if (muted) { r0 = null; } else if (postsWithUnreadsCount != null) { if (postsWithUnreadsCount > 0) { var viewBindingProps = {style: styles.channelInfoContainer}; value = require(1856) /* metro dependency 1856: NumberUtils */; value = {value.humanizeValue(postsWithUnreadsCount, locale)}; r0 = value; } else { r0 = null; } } else { r0 = null; } } else { r0 = null; } } else if (mentionCount > 0) { var viewBindingProps = {style: styles.channelInfoContainer}; value = importDefault(14698) /* metro dependency 14698: MentionsBadge */; value = {((Component) => )(value)}; r0 = value; } else if (isNewChannel) { var viewBindingProps = {style: styles.channelInfoContainer}; value = importDefault(11819) /* metro dependency 11819: NewBadge */; value = {((Component) => )(value)}; r0 = value; } else if (muted != null) { if (muted) { r0 = null; } else if (postsWithUnreadsCount != null) { if (postsWithUnreadsCount > 0) { var viewBindingProps = {style: styles.channelInfoContainer}; value = require(1856) /* metro dependency 1856: NumberUtils */; value = {value.humanizeValue(postsWithUnreadsCount, locale)}; r0 = value; } else { r0 = null; } } else { r0 = null; } } else { r0 = null; } return r0; }