
    Mf
                     2    d dl mZmZ  G d de          ZdS )    )	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        e	j        e	j        f fd	            Z x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                 R   g d| _         g | _        g d| _        g | _        |                    d          }t                                          |           fd|D             }	dD ]}
|
|	vrt          d|
z   dz              t          t          |           j
        di |	 d S )N)idhashhrefpathnamerefreshsearch_explicit_argsc                 "    i | ]}||         S  r   ).0k_localss     P/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/dash/dcc/Location.py
<dictcomp>z%Location.__init__.<locals>.<dictcomp>G   s    666!71:666    )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   r   	__class__s              @r   r"   zLocation.__init__.   s     SRR*,'%
 %
 %
! .0*$455((v6666~666 	T 	TA}} 5 9<R RSSS  	'h&.......r   )__name__
__module____qualname____doc___children_props_base_nodes
_namespace_typer   r   REQUIRED	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>r3      s^    I H H H H H H HG/ G/ G/ G/ G/y G/ G/ G/ G/ G/r   