
    lKjh              	       B    d Z ddlmZmZ erddlmZ ddedededdfd	Zy
)z8Cyclopts panel utilities for Rich-based terminal output.    )TYPE_CHECKINGAnyPanelmessagetitlestylereturnr   c                     ddl m} ddlm} ddlm} t        t        | dd            st        t        | dd            r| }n |t        |       d      } |||||j                  d	d
      }|S )u  Create a :class:`~rich.panel.Panel` with a consistent style.

    The resulting panel can be displayed using a :class:`~rich.console.Console`.

    .. code-block:: text

        ╭─ Title ──────────────────────────────────╮
        │ Message content here.                    │
        ╰──────────────────────────────────────────╯

    Parameters
    ----------
    message: Any
        The body of the panel will be filled with the stringified version of the message.
    title: str
        Title of the panel that appears in the top-left corner.
    style: str
        Rich `style <https://rich.readthedocs.io/en/stable/style.html>`_ for the panel border.

    Returns
    -------
    ~rich.panel.Panel
        Formatted panel object.
    r   )boxr   )Text__rich__N__rich_console__defaultTleft)r   r	   r   expandtitle_align)
richr   
rich.panelr   	rich.textr   callablegetattrstrROUNDED)r   r   r	   r   r   r   
renderablepanels           _/Users/ahmed/devFolder/Ultron/claude-voice/.venv/lib/python3.12/site-packages/cyclopts/panel.pyCycloptsPanelr   	   sl    2  T23xQcei@j7k
#g,	2
KKE L    N)Errorred)__doc__typingr   r   r   r   r   r    r   r   <module>r%      s2    > % *3 *s *S *W *r   