o
    äeØ
  ã                   @  s‚   d Z ddlmZ ddlmZmZmZ ddlmZm	Z	 ddl
mZ ddlmZmZ ddlmZ e	dƒ eƒ G d	d
„ d
eeeƒƒZdS )zgr.HTML() component.é    )Úannotations)ÚAnyÚCallableÚLiteral)ÚdocumentÚset_documentation_group)ÚStringSerializable)ÚIOComponentÚ	_Keywords)Ú
ChangeableÚ	componentc                   @  sP   e Zd ZdZ	ddddddddœddd„Zdd„ Zeejdddfddd„ƒZ	dS )ÚHTMLzÎ
    Used to display arbitrary HTML output.
    Preprocessing: this component does *not* accept input.
    Postprocessing: expects a valid HTML {str}.

    Demos: text_analysis
    Guides: key-features
    Ú NT)ÚlabelÚeveryÚ
show_labelÚvisibleÚelem_idÚelem_classesÚvalueústr | Callabler   ú
str | Noner   úfloat | Noner   úbool | Noner   Úboolr   r   úlist[str] | str | Nonec          	   
   K  s&   t j| f|||||||dœ|¤Ž dS )a{  
        Parameters:
            value: Default value. If callable, the function will be called whenever the app loads to set the initial value of the component.
            label: component name in interface.
            every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. Queue must be enabled. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.
            show_label: if True, will display label.
            visible: If False, component will be hidden.
            elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
            elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
        )r   r   r   r   r   r   r   N)r	   Ú__init__)	Úselfr   r   r   r   r   r   r   Úkwargs© r   úFD:\Projects\ConvertPro\env\Lib\site-packages\gradio/components/html.pyr      s   ÿø	
÷zHTML.__init__c                 C  s   d| j it | ¡¥S )Nr   )r   r	   Ú
get_config)r   r   r   r    r!   =   s   ÿþzHTML.get_configú(Any | Literal[_Keywords.NO_VALUE] | Nonec                 C  s   |||| ddœ}|S )NÚupdate)r   r   r   r   Z__type__r   )r   r   r   r   Zupdated_configr   r   r    r#   C   s   ûzHTML.update)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__r   r!   Ústaticmethodr
   ZNO_VALUEr#   r   r   r   r    r      s$    þ÷"ür   N)r'   Ú
__future__r   Útypingr   r   r   Zgradio_client.documentationr   r   Zgradio_client.serializingr   Zgradio.components.baser	   r
   Zgradio.eventsr   r   r   r   r   r    Ú<module>   s    