
    wi                        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rddlmZ  e
             G 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                  N     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%Z x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   boolr   r   r   list[str] | str | Noner   r   (int | str | tuple[int | str, ...] | Noner   r   
int | Noner    c                   t          j        d           t                                          |||||||||	|
||||||           d S )NzThe `gr.LogoutButton` component is deprecated. Please use `gr.LoginButton` instead which handles both the login and logout processes.r   )warningswarnsuper__init__)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    	__class__s                    o/root/.openclaw/workspace/chatterbox_venv_py311/lib/python3.11/site-packages/gradio/components/logout_button.pyr/   zLogoutButton.__init__   s|    , 	 T	
 	
 	
 	#%-! 	 	
 	
 	
 	
 	
    )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_templater/   __classcell__)r1   s   @r2   r   r      s          K *
 '+JN;F$(T/ "/38<3: $)*
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
r3   r   )r7   
__future__r   r,   collections.abcr   typingr   r   gradio_client.documentationr   gradio.componentsr   r	   r
   r    r3   r2   <module>r@      s    H H " " " " " "  $ $ $ $ $ $ ) ) ) ) ) ) ) ) 0 0 0 0 0 0 / / / / / / / / ('''''' 
4
 4
 4
 4
 4
6 4
 4
 4
 4
 4
r3   