import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import { Splitter } from "../../../ui/Splitter";
import { AgentParentLink } from "./AgentParentLink";
import { AgentPromptComposer, } from "./AgentPromptComposer";
export function AgentTerminalFullLayout({ className, parentAgentId, simpleMode, onBackToParent, readOnlyAccessNotice, upperContent, inlineDialog, isQuestionnaireDialogOpen, compact, promptComposerProps, promptControls, showStatusBar, hideBottomControls, isMobile, statusBarContent, trayOverlay, dropHandlers, }) {
    const showQuestionnaireSplitter = isQuestionnaireDialogOpen && !!inlineDialog;
    const content = showQuestionnaireSplitter ? (_jsx(Splitter, { panels: [
            {
                name: "conversation",
                defaultSize: 65,
                content: upperContent,
            },
            {
                name: "questionnaire",
                defaultSize: 35,
                content: inlineDialog,
            },
        ], direction: "vertical", localStorageKey: compact
            ? "agent-terminal-compact-questionnaire-splitter"
            : "agent-terminal-questionnaire-splitter", className: "min-h-0 flex-1", splitterClassName: "bg-neutral-grey-10 hover:bg-neutral-grey-10" })) : (_jsxs(_Fragment, { children: [upperContent, inlineDialog] }));
    return (_jsxs("div", { className: `flex h-full min-h-0 flex-col ${className || ""}`, children: [_jsx(AgentParentLink, { parentAgentId: parentAgentId, simpleMode: simpleMode, onBack: onBackToParent }), readOnlyAccessNotice, content, _jsxs(AgentPromptComposer, { ...promptComposerProps, trayOverlay: trayOverlay, dropHandlers: dropHandlers, className: simpleMode ? "pb-10" : undefined, children: [promptControls, (showStatusBar ?? !hideBottomControls) && !simpleMode && !isMobile
                        ? statusBarContent
                        : null] })] }));
}
//# sourceMappingURL=AgentTerminalFullLayout.js.map