
    Mf                     2    d dl mZmZ  G d de          ZdS )    )	Component_explicitize_argsc                   v     e Zd ZdZg ZdgZdZd Zee	j
        e	j
        e	j
        e	j
        f fd	            Z xZS )Downloada  A Download component.
    The Download component opens a download dialog when the data property changes.

    Keyword arguments:

    - id (string; optional):
        The ID of this component, used to identify dash components in
        callbacks.

    - base64 (boolean; default False):
        Default value for base64, used when not set as part of the data
        property.

    - data (dict; optional):
        On change, a download is invoked.

        `data` is a dict with keys:

        - base64 (boolean; optional):
            Set to True, when data is base64 encoded.

        - content (string; required):
            File content.

        - filename (string; required):
            Suggested filename in the download dialogue.

        - type (string; optional):
            Blob type, usually a MIME-type.

    - type (string; default 'text/plain'):
        Default value for type, used when not set as part of the data
        property.childrendash_core_componentsc                    g d| _         g | _        g d| _        g | _        |                    d          }t                                          |           fd|D             } t          t          |           j	        di | d S )N)idbase64datatype_explicit_argsc                 "    i | ]}||         S  r   ).0k_localss     P/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/dash/dcc/Download.py
<dictcomp>z%Download.__init__.<locals>.<dictcomp>>   s    666!71:666    r   )
_prop_names_valid_wildcard_attributesavailable_propertiesavailable_wildcard_propertiespoplocalsupdatesuperr   __init__)
selfr
   r   r   r   kwargsr   argsr   	__class__s
           @r   r   zDownload.__init__.   s     <;;*,'$D$D$D!-/*$455((v6666~666&h&.......r   )__name__
__module____qualname____doc___children_props_base_nodes
_namespace_typer   r   	UNDEFINEDr   __classcell__)r#   s   @r   r   r      s           D O,K'JE  " / / / / / / / / / /r   r   N)dash.development.base_componentr   r   r   r   r   r   <module>r/      sT    I H H H H H H H:/ :/ :/ :/ :/y :/ :/ :/ :/ :/r   