
    ^i                     n    d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	 erddl
mZ ddlmZ  G d d	e      Zy
)zUModule contains the main message window :class:`~prompt_toolkit.container.Container`.    )TYPE_CHECKING)ConditionalContainerWindow)FormattedTextControl)LayoutDimension)FilterOrBool)AnyFormattedTextc                   >     e Zd ZdZ	 	 ddddddededd	f
 fd
Z xZS )MessageWindowa~  Main window to display question to the user.

    Args:
        message: The message to display in the terminal.
        filter: Condition that this message window should be displayed.
            Use a loading condition to only display this window while its not loading.
        wrap_lines: Enable line wrapping if the message is too long.
        show_cursor: Display cursor.
    messager	   filterr   
wrap_linesshow_cursorreturnNc           
          t         |   t        d|st        j                  d      nd t        ||      |dd||       y )N   )r   T)heightcontentr   dont_extend_height)r   r    )super__init__r   r   exactr   )selfr   r   r   r   kwargs	__class__s         g/mnt/e/genesis-system/.venvs/browser-army/lib/python3.12/site-packages/InquirerPy/containers/message.pyr   zMessageWindow.__init__   sU     	 7A,,Q/t,W+N%#'	
   	 		
    )TT)__name__
__module____qualname____doc__boolr   __classcell__)r   s   @r   r   r      sJ       
#
 
 	

 
 

 
r   r   N)r"   typingr    prompt_toolkit.layout.containersr   r   prompt_toolkit.layout.controlsr   prompt_toolkit.layout.dimensionr   prompt_toolkit.filters.baser   "prompt_toolkit.formatted_text.baser	   r   r   r   r   <module>r+      s*    [   I ? ;8C
( 
r   