// Module ID: 16842 // Function ID: 16843 // Name: PortalKeyboardRendererComponent // Dependencies: [19, 1957, 21, 7295, 1609, 12130, 9502, 16843, 16849, 2] // Module 16842 (PortalKeyboardRendererComponent) import FakePlaceholderPrivateChannel from "FakePlaceholderPrivateChannel" /* 7295 */; import noop from "module_19" /* 19 */; import ChannelStore from "ChannelStore" /* 1957 */; require = fn; const jsx = fn(21).jsx; const size = fn(2); const result = size.fileFinishedImporting("modules/keyboard/native/PortalKeyboardRendererComponent.tsx"); export default noop.memo(function PortalKeyboardRendererComponent(item) { item = item.item; const channelId = item.channelId; ({ chatInputRef, type } = item); ({ state, cleanUp } = item); const channel = ChannelStore.getChannel(channelId); const items = [channel, channelId]; const memo = noop.useMemo(() => { if (channelId !== FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) { let FAKE_PLACEHOLDER_PRIVATE_CHANNEL = channel; } else { FAKE_PLACEHOLDER_PRIVATE_CHANNEL = FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL; } return FAKE_PLACEHOLDER_PRIVATE_CHANNEL; }, items); const items1 = [memo]; const memo1 = noop.useMemo(() => { let tmp2; if (null != memo) { const obj = { channel: tmp, type: "channel" }; tmp2 = obj; } return tmp2; }, items1); if (null != memo) { if (undefined !== memo1) { if (channelId(memo[4]).KeyboardTypes.APP_LAUNCHER === type) { const obj2 = { context: memo1, chatInputRef, onClose: cleanUp, transitionState: state, entrypoint: tmp11(tmp12[6]).AppLauncherEntrypoint.TEXT }; return jsx(channel(tmp12[5]), { context: memo1, chatInputRef, onClose: cleanUp, transitionState: state, entrypoint: tmp11(tmp12[6]).AppLauncherEntrypoint.TEXT }); } else if (tmp11(tmp12[4]).KeyboardTypes.MEDIA === type) { const obj3 = { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state }; return jsx(channel(tmp12[7]), { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state }); } else if (tmp11(tmp12[4]).KeyboardTypes.EXPRESSION === type) { let obj = { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state }; return jsx(channel(tmp12[8]), { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state }); } else { return null; } } } return null; });