
    $g                     *    d dl mZmZ  G d de      Zy)    )	Component_explicitize_argsc                        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 | _        |j	                  d      }t               }|j                  |       |D ci c]  }|||   
 }	}t        t        | &  di |	 y c c}w )N)idbase64datatype_explicit_args )
_prop_names_valid_wildcard_attributesavailable_propertiesavailable_wildcard_propertiespoplocalsupdatesuperr   __init__)selfr
   r   r   r   kwargsr   _localskargs	__class__s             N/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/dash/dcc/Download.pyr   zDownload.__init__.   sy     <*,'$D!-/*$45(v'56!71:66h&.. 7s   A5)__name__
__module____qualname____doc___children_props_base_nodes
_namespace_typer   r   	UNDEFINEDr   __classcell__)r   s   @r   r   r      sY     D O,K'JE   ""  / /    r   N)dash.development.base_componentr   r   r   r   r*   r   <module>r,      s    I:/y :/r*   