/* Metro module 15345; source: modules/launchpad/native/shared/renderChannelItem.tsx; dependencies: [31, 27, 1867, 3793, 1878, 4865, 33, 9122, 4501, 697, 15332, 566, 6819, 11727, 4788, 15334, 9719, 15337, 4805, 2] */ function _fun117291(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15542:6, offset: 0x024ad8d4, size: 305 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 guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */; const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; const env0_7 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting; const value = require(33) /* metro dependency 33 */; const env0_8 = value.jsx; const env0_9 = value.Fragment; const env0_10 = value.jsxs; const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() { var object2 = {'position': 'absolute', 'zIndex': 1, 'bottom': -4, 'right': -4, 'borderColor': null, 'borderWidth': 2, 'borderRadius': 6}; object2.borderColor = importDefault(dependencyMap[9]).colors.BACKGROUND_BASE_LOW; return {guildBadgeIcon: object2}; }); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/shared/renderChannelItem.tsx'); exports.default = renderChannelItem_117295; exports.getChannelAccessibilityProps = getChannelAccessibilityProps_117296; } function LaunchpadChannelIcon_117292({channel}) { // fn#117292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15542:392, offset: 0x024ada05, size: 252 bytes, params: 2, frame: 25 const styles = useStyles(); const value2 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)(); const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() { return GuildStore.getGuild(channel.guild_id); }); const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9; const view = {((Component) => )(importDefault(6819) /* metro dependency 6819: GuildIcon */)}; const ChannelIcon = (require(11727) /* metro dependency 11727: AppLauncherChannelListActionSheet */).ChannelIcon; return ( <> {view} ); } function renderChannelItem_117295({channel, channelCategoryName, subtitle, unreadBadge, mentionBadge, locked, unread, resolvedUnreadSetting = UnreadSetting.ONLY_MENTIONS, live, muted, latestMessageTimestamp, end, connected, mentionCount, channelName, fontScale, isSubscriptionGated, needSubscriptionToAccess}) { // fn#117295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15542:798, offset: 0x024adb42, size: 702 bytes, params: 2, frame: 44 var r26; var moduleValue2; locked = !(locked === undefined) && locked; unread = !(unread === undefined) && unread; live = !(live === undefined) && live; muted = !(muted === undefined) && muted; isSubscriptionGated = !(isSubscriptionGated === undefined) && isSubscriptionGated; needSubscriptionToAccess = !(needSubscriptionToAccess === undefined) && needSubscriptionToAccess; const r21 = latestMessageTimestamp == null || muted ? null : (require(4788) /* metro dependency 4788: NotificationCenterUtils */).getRelativeTimestamp(latestMessageTimestamp); const value5 = (importDefault(15332) /* metro dependency 15332: getLayoutStyles */)(); const defaultImport = importDefault(15334) /* metro dependency 15334: renderChannelWrapper */; const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9; const items2 = [unreadBadge]; const object = {'position': 'relative', 'borderRadius': null, 'justifyContent': 'center', 'alignItems': 'center', 'flexShrink': 0, 'flexGrow': 0}; object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; object.width = value5.icon.wrapper.size; object.height = value5.icon.wrapper.size; copyDataProperties(object, value5.icon.margin, undefined); items2[1] = {channel.isGroupDM() ? ((Component) => )(importDefault(9719) /* metro dependency 9719: GroupDMAvatar */) : }; const defaultImport3 = importDefault(15337) /* metro dependency 15337: renderChannelContent */; if (channelName != null) { r26 = channelName; } else { moduleValue2 = require(4805) /* metro dependency 4805: useChannelName */; r26 = moduleValue2.computeChannelName(channel, UserStore, RelationshipStore); } items2[2] = defaultImport3({name: r26, subtitle: subtitle, unread: unread, resolvedUnreadSetting: resolvedUnreadSetting, muted: muted, lastMessageTimestampString: r21, channel: channel, channelCategoryName: channelCategoryName, locked: locked, connected: connected, live: live, mentionCount: mentionCount, mentionBadge: mentionBadge, isSubscriptionGated: isSubscriptionGated, needSubscriptionToAccess: needSubscriptionToAccess}); items2[3] = end != null ? {end} : null; return defaultImport(<>{items2}, {fontScale: fontScale}); } function getChannelAccessibilityProps_117296({channel, unread, mentionCount, voiceStates, embeddedActivitiesCount}) { // fn#117296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15542:1922, offset: 0x024ade00, size: 108 bytes, params: 2, frame: 17 const object2 = {'accessible': true, 'accessibilityRole': 'button'}; object2.accessibilityLabel = (importDefault(9122) /* metro dependency 9122: getChannelA11yLabel */)({channel: channel, unread: unread, mentionCount: mentionCount, voiceStates: voiceStates, embeddedActivitiesCount: embeddedActivitiesCount}); return object2; }