o
    ۷i]	                     @  sz   d Z ddlmZ ddlZddlmZ ddlmZmZ ddl	m
Z
 ddlmZmZ er0ddlmZ e
 G d	d
 d
eZdS )zBPredefined button to sign out from Hugging Face in a Gradio Space.    )annotationsN)Sequence)TYPE_CHECKINGLiteral)document)Button	Component)Timerc                      sL   e Zd ZdZdZ	d(ddddddddddddd	d
ddd) fd&d'Z  ZS )*LogoutButtonz
    Creates a Button to log out a user from a Space using OAuth.

    Note: `LogoutButton` component is deprecated. Please use `gr.LoginButton` instead
          which handles both the login and logout processes.
    TLogoutN	secondarylgzAhttps://huggingface.co/front/assets/huggingface_logo-noborder.svgz/gradio_api/logoutvaluer   everyinputsvariantsizeiconlinkvisibleinteractiveelem_idelem_classesrenderkeypreserved_by_keyscale	min_widthstrr   Timer | float | Noner   7Component | Sequence[Component] | set[Component] | Noner   'Literal['primary', 'secondary', 'stop']r   Literal['sm', 'lg']r   
str | Noner   r   bool | Literal['hidden']r   boolr   r   list[str] | str | Noner   r   (int | str | tuple[int | str, ...] | Noner   r   
int | Noner   c                  sD   t jdtdd t j|f||||||||	|
||||||d d S )NzThe 'gr.LogoutButton' component will be removed in Gradio 6.0. You will need to use 'gr.LoginButton' instead, which handles both the login and logout processes.   )
stacklevelr   )warningswarnDeprecationWarningsuper__init__)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   	__class__ U/home/ubuntu/vllm_env/lib/python3.10/site-packages/gradio/components/logout_button.pyr0      s0   zLogoutButton.__init__)r   ) r   r   r   r    r   r!   r   r"   r   r#   r   r$   r   r$   r   r%   r   r&   r   r$   r   r'   r   r&   r   r(   r   r'   r   r)   r   r)   )__name__
__module____qualname____doc__is_templater0   __classcell__r4   r4   r2   r5   r
      s*    r
   )r9   
__future__r   r,   collections.abcr   typingr   r   gradio_client.documentationr   gradio.componentsr   r   r	   r
   r4   r4   r4   r5   <module>   s    