import { useAgentInlineDialogState } from "./useAgentInlineDialogState";
import { useAgentPendingDialogRecovery } from "./useAgentPendingDialogRecovery";
import { useAgentQuestionnaireDialogRecovery } from "./useAgentQuestionnaireDialogRecovery";
import { useAgentSummaryQuestionnaireScroll } from "./useAgentSummaryQuestionnaireScroll";
export function useAgentInlineDialogPipeline(input) {
    const { inlineDialogState, summaryScroll, questionnaireRecovery, pendingRecovery, } = input;
    const dialogState = useAgentInlineDialogState(inlineDialogState);
    useAgentSummaryQuestionnaireScroll({
        ...summaryScroll,
        isQuestionnaireDialogOpen: dialogState.isQuestionnaireDialogOpen,
    });
    const recoverPendingQuestionnaireDialog = useAgentQuestionnaireDialogRecovery({
        ...questionnaireRecovery,
        setActiveInlineDialog: dialogState.setActiveInlineDialog,
    });
    const { schedulePendingDialogReplay } = useAgentPendingDialogRecovery({
        ...pendingRecovery,
        activeInlineDialog: dialogState.activeInlineDialog,
        activeInlineDialogRef: dialogState.activeInlineDialogRef,
        terminalInstanceIdRef: dialogState.dialogTerminalInstanceIdRef,
        recoverPendingDialog: recoverPendingQuestionnaireDialog,
    });
    return {
        ...dialogState,
        schedulePendingDialogReplay,
    };
}
//# sourceMappingURL=useAgentInlineDialogPipeline.js.map