import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from "react";
import { ChatControls, ChatLayout } from "./ChatLayout.js";
import { ChatFooterPane } from "./ChatFooterPane.js";
import { ChatInputStack } from "./ChatInputStack.js";
import { ChatLivePane } from "./ChatLivePane.js";
import { TranscriptViewport } from "./TranscriptViewport.js";
import { QueueIndicator } from "./QueueIndicator.js";
import { InputArea } from "./InputArea.js";
import { FooterStatusRow } from "./FooterStatusRow.js";
export function ChatScreen({ columns, liveItems, renderItem, isRunning, visibleStreamingText, streamingThinking, thinkingMs, reserveStreamingSpacing, renderMarkdown, measuredLiveAreaRows, fullscreen, rows, transcriptLines, viewportRows, assistantMarginTop, streamingContinuation, controlsRef, hiddenQueuedCount, queueIndicatorMarginTop, theme, statusSlotVisible, activityVisible, stallStatusVisible, liveToolFeed, doneStatus, activityPhase, elapsedMs, runStartRef, isThinking, thinkingLevel, tokenEstimate, charCountRef, realTokensAccumRef, lastUserMessage, activeToolNames, retryInfo, planDone, planTotal, formatDuration, inputControls, taskPicker, overlay, onModelSelect, onModelCancel, loggedInProviders, currentModel, currentProvider, onThemeSelect, onThemeCancel, currentTheme, contextUsed, contextWindowOptions, displayedCwd, gitBranch, planMode, exitPending, footerStatusLayout, backgroundTasks, taskBarFocused, taskBarExpanded, selectedTaskIndex, onTaskBarExpand, onTaskBarCollapse, onTaskKill, onTaskBarExit, onTaskNavigate, }) {
    return (_jsxs(ChatLayout, { columns: columns, rows: fullscreen ? rows : undefined, children: [fullscreen ? (_jsx(TranscriptViewport, { lines: transcriptLines, columns: columns, viewportRows: viewportRows })) : (_jsx(ChatLivePane, { liveItems: liveItems, renderItem: renderItem, isRunning: isRunning, visibleStreamingText: visibleStreamingText, streamingThinking: streamingThinking, thinkingMs: thinkingMs, reserveStreamingSpacing: reserveStreamingSpacing, renderMarkdown: renderMarkdown, measuredLiveAreaRows: measuredLiveAreaRows, assistantMarginTop: assistantMarginTop, streamingContinuation: streamingContinuation })), _jsxs(ChatControls, { controlsRef: controlsRef, children: [_jsx(QueueIndicator, { hiddenQueuedCount: hiddenQueuedCount, marginTop: queueIndicatorMarginTop, theme: theme }), _jsx(ChatInputStack, { columns: columns, theme: theme, statusSlotVisible: statusSlotVisible, activityVisible: activityVisible, stallStatusVisible: stallStatusVisible, liveToolFeed: liveToolFeed, doneStatus: doneStatus, activityPhase: activityPhase, elapsedMs: elapsedMs, runStartRef: runStartRef, thinkingMs: thinkingMs, isThinking: isThinking, thinkingLevel: thinkingLevel, tokenEstimate: tokenEstimate, charCountRef: charCountRef, realTokensAccumRef: realTokensAccumRef, lastUserMessage: lastUserMessage, activeToolNames: activeToolNames, retryInfo: retryInfo, planDone: planDone, planTotal: planTotal, renderMarkdown: renderMarkdown, formatDuration: formatDuration }), _jsx(InputArea, { onSubmit: inputControls.onSubmit, onAbort: inputControls.onAbort, injectText: inputControls.injectText, disabled: isRunning, isActive: inputControls.inputActive, onDownAtEnd: inputControls.onDownAtEnd, onShiftTab: inputControls.onShiftTab, onToggleTasks: inputControls.onToggleTasks, taskPickerOpen: taskPicker.open, tasks: taskPicker.tasks, onCloseTaskPicker: taskPicker.onClose, onStartTask: taskPicker.onStart, onRunAllTasks: taskPicker.onRunAll, onDeleteTask: taskPicker.onDelete, onToggleSkills: inputControls.onToggleSkills, onTogglePixel: inputControls.onTogglePixel, onToggleMarkdown: inputControls.onToggleMarkdown, cwd: inputControls.cwd, commands: inputControls.commands, mouseScroll: inputControls.mouseScroll, onScroll: inputControls.onScroll }), _jsx(ChatFooterPane, { overlay: overlay, onModelSelect: onModelSelect, onModelCancel: onModelCancel, loggedInProviders: loggedInProviders, currentModel: currentModel, currentProvider: currentProvider, onThemeSelect: onThemeSelect, onThemeCancel: onThemeCancel, currentTheme: currentTheme, contextUsed: contextUsed, contextWindowOptions: contextWindowOptions, displayedCwd: displayedCwd, gitBranch: gitBranch, thinkingLevel: thinkingLevel, planMode: planMode, exitPending: exitPending, renderMarkdown: renderMarkdown }), _jsx(FooterStatusRow, { columns: columns, layout: footerStatusLayout, tasks: backgroundTasks, focused: taskBarFocused, expanded: taskBarExpanded, selectedIndex: selectedTaskIndex, onExpand: onTaskBarExpand, onCollapse: onTaskBarCollapse, onKill: onTaskKill, onExit: onTaskBarExit, onNavigate: onTaskNavigate, theme: theme })] })] }));
}
//# sourceMappingURL=ChatScreen.js.map