// Module ID: 15916 // Function ID: 15917 // Dependencies: [19, 4451, 21, 4263, 9556, 4255, 712, 15902, 15319, 14428, 11, 4671, 15903, 4797, 15915, 15906, 9676, 3933, 4445, 2] // Module 15916 import importAllResult from "set"; import { UnreadSetting } from "ReadStateTypes"; import { jsx } from "jsxProd"; import createCacheKey from "createCacheKey"; const require = arg1; let c3 = importAllResult; let obj = { pressable: { flex: 1 }, pressableUnderlayColor: null }; obj = { backgroundColor: require("Themes").colors.INTERACTIVE_BACKGROUND_ACTIVE }; obj[1] = obj; let closure_6 = createCacheKey.createStyles(obj); const memoResult = importAllResult.memo(function DMChannel(navigationReplace) { let channel; let mentionCount; let muted; let unread; ({ channel, muted } = navigationReplace); if (muted === undefined) { muted = false; } let flag = navigationReplace.navigationReplace; if (flag === undefined) { flag = false; } const tmp = callback(); let obj = channel(15319); const baseChannelUnreadBadgeState = obj.useBaseChannelUnreadBadgeState(channel, muted); ({ unread, mentionCount } = baseChannelUnreadBadgeState); const tmp7 = flag(14428)(channel, { unread }); let extractTimestampResult; if (null != tmp7) { let tmp2Result = tmp2(11); extractTimestampResult = tmp2Result.extractTimestamp(tmp7.id); } let str = "text-muted"; if (unread) { str = "text-muted"; if (!muted) { str = "text-default"; } } const tmp4 = flag(15902)(); const fontScale = channel(4671).useFontScale(); tmp2Result = tmp2(15903); obj = { style: items, underlayColor: tmp.pressableUnderlayColor.backgroundColor }; items = [tmp.pressable, { borderRadius: tmp4.container.borderRadius }]; obj = { onPress: null, onLongPress: null }; const items1 = [channel.id, flag]; obj[0] = importAllResult.useCallback(() => { let obj = channel(outer1_2[3]); obj = { navigationReplace: flag }; obj.transitionToChannel(channel.id, obj); }, items1); const items2 = [channel.id]; obj[1] = importAllResult.useCallback(() => channel(outer1_2[4]).openChannelLongPressActionSheet(channel.id), items2); const merged = Object.assign(obj); const obj1 = { channel, unread, resolvedUnreadSetting: UnreadSetting.ALL_MESSAGES, muted, mentionCount, unreadBadge: null, subtitle: null, latestMessageTimestamp: null, channelName: null, fontScale: null }; const tmp5Result = channel(4671); obj1[5] = jsx(flag(15906), { unread, resolvedUnreadSetting: UnreadSetting.ALL_MESSAGES, muted }); let tmp11Result = null != tmp7; if (tmp11Result) { const obj3 = { channel: null, message: null, color: null, muted: null, layout: null }; obj3[0] = channel; obj3[1] = tmp7; obj3[2] = str; obj3[3] = muted; obj3[4] = tmp5(3933).ChannelListLayoutTypes.COMPACT; tmp11Result = tmp11(tmp5(9676).ChannelRowPreview, obj3); } obj1[6] = tmp11Result; obj1[7] = extractTimestampResult; obj1[8] = flag(4445)(channel); obj1[9] = fontScale; obj.children = flag(15915)(obj1); return tmp2Result(jsx(channel(4797).PressableHighlight, { onPress: null, onLongPress: null })); }); const result = require("jsxProd").fileFinishedImporting("modules/launchpad/native/shared/DMChannel.tsx"); export default memoResult;