o
    d
                     @   s$   d dl mZmZ G dd deZdS )    )	Component_explicitize_argsc                       sP   e Zd ZdZg ZdgZdZd Zee	j
e	je	je	je	je	jf fdd	Z  ZS )Locationa  A Location component.
    Update and track the current window.location object through the window.history state.
    Use in conjunction with the `dash_core_components.Link` component to make apps with multiple pages.

    Keyword arguments:

    - id (string; required):
        The ID of this component, used to identify dash components in
        callbacks. The ID needs to be unique across all of the components
        in an app.

    - hash (string; optional):
        hash in window.location - e.g., "#myhash".

    - href (string; optional):
        href in window.location - e.g.,
        "/my/full/pathname?myargument=1#myhash".

    - pathname (string; optional):
        pathname in window.location - e.g., "/my/full/pathname".

    - refresh (a value equal to: 'callback-nav' | boolean; default True):
        Use `True` to navigate outside the Dash app or to manually refresh
        a page. Use `False` if the same callback that updates the Location
        component is also updating the page content - typically used in
        multi-page apps that do not use Pages. Use 'callback-nav' if you
        are updating the URL in a callback, or a different callback will
        respond to the new Location with updated content. This is typical
        with multi-page apps that use Pages. This will allow for
        navigating to a new page without refreshing the page.

    - search (string; optional):
        search in window.location - e.g., "?myargument=1".childrendash_core_componentsc                    s   g d| _ g | _g d| _g | _|d}t   |  fdd|D }	dD ]}
|
|	vr6td|
 d q(tt	| j
di |	 d S )	N)idhashhrefpathnamerefreshsearch_explicit_argsc                    s   i | ]}| | qS  r   ).0k_localsr   V/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/dash/dcc/Location.py
<dictcomp>G   s    z%Location.__init__.<locals>.<dictcomp>)r   zRequired argument `z` was not specified.r   )_prop_names_valid_wildcard_attributesavailable_propertiesavailable_wildcard_propertiespoplocalsupdate	TypeErrorsuperr   __init__)selfr   r
   r   r   r	   r   kwargsr   argsr   	__class__r   r   r   .   s   



zLocation.__init__)__name__
__module____qualname____doc___children_props_base_nodes
_namespace_typer   r   REQUIRED	UNDEFINEDr   __classcell__r   r   r"   r   r      s    "r   N)dash.development.base_componentr   r   r   r   r   r   r   <module>   s   