
    i
                        d Z ddlmZ ddlmZmZmZmZ ddlm	Z	 ddl
mZ ddlmZ erdd	lmZ dd
lmZ  eddd          ZdZ G d de	e                   ZdS )a:  
The MIT License (MIT)

Copyright (c) 2015-present Rapptz

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
    )annotations)TYPE_CHECKINGLiteralOptionalTypeVar   )Item   )TextDisplay)ComponentType)Self)
LayoutViewVr   T)bound	covariantc                       e Zd ZdZdZddd fdZd Zed             Zedd            Z	ddZ
edd            Z xZS )r   a  Represents a UI text display.

    This is a top-level layout component that can only be used on :class:`LayoutView`,
    :class:`Section`, :class:`Container`, or :class:`Modal`.

    .. versionadded:: 2.6

    Parameters
    ----------
    content: :class:`str`
        The content of this text display. Up to 4000 characters.
    id: Optional[:class:`int`]
        The ID of this component. This must be unique across the view.
    )contentN)idr   strr   Optional[int]returnNonec               d    t                                                       || _        || _        d S N)super__init__r   r   )selfr   r   	__class__s      X/usr/local/lib/hermes-agent/venv/lib/python3.11/site-packages/discord/ui/text_display.pyr   zTextDisplay.__init__=   s+    #    c                P    | j         j        | j        d}| j        
| j        |d<   |S )N)typer   r   )r"   valuer   r   )r   bases     r   to_component_dictzTextDisplay.to_component_dictB   s4    IO|
 
 7DJr    c                    dS )N    r   s    r   widthzTextDisplay.widthK   s    qr    #Literal[ComponentType.text_display]c                    t           j        S r   )r   text_displayr)   s    r   r"   zTextDisplay.typeO   s    ))r    boolc                    dS )NTr(   r)   s    r   _is_v2zTextDisplay._is_v2S   s    tr    	componentTextDisplayComponentr   c                0     | |j         |j                  S )Nr   r   r4   )clsr1   s     r   from_componentzTextDisplay.from_componentV   s&    s%|
 
 
 	
r    )r   r   r   r   r   r   )r   r+   )r   r.   )r1   r2   r   r   )__name__
__module____qualname____doc__	__slots__r   r%   propertyr*   r"   r0   classmethodr6   __classcell__)r   s   @r   r   r   +   s          I<@        
     X * * * X*    
 
 
 [
 
 
 
 
r    r   N)r:   
__future__r   typingr   r   r   r   itemr	   
componentsr   r2   enumsr   typing_extensionsr   viewr   r   __all__r(   r    r   <module>rG      s    0 # " " " " " < < < < < < < < < < < <       < < < < < < ! ! ! ! ! ! !&&&&&&      GC|t444
0
 0
 0
 0
 0
$q' 0
 0
 0
 0
 0
r    