
    qho                     :    S SK Jr  SSKJr  SSKJr  S r\" SS9rg	)
    wraps   )PARTIAL_TOKEN_SESSION_NAME   )partial_preparec                    ^  U 4S jnU$ )a  Wraps func to behave like a partial pipeline step, any output
that's not None or {} will be considered a response object and
will be returned to user.

The pipeline function will receive a current_partial object, it
contains the partial pipeline data and a token that is used to
identify it when it's continued, this is useful to build links
with the token.

The default value for this parameter is partial_token, but can be
overridden by SOCIAL_AUTH_PARTIAL_PIPELINE_TOKEN_NAME setting.

The token is also stored in the session under the
PARTIAL_TOKEN_SESSION_NAME (partial_pipeline_token) key when the
save_to_session parameter is True.
c                 4   >^  [        T 5      U U4S j5       nU$ )Nc                   > [        XU/UQ70 UD6nT" UU UUUS.UD6=(       d    0 n[        U[        5      (       dL  U R                  R                  R                  U5        T(       a   U R                  [        UR                  5        U$ )N)strategybackendpipeline_indexcurrent_partial)	r   
isinstancedictstoragepartialstoresession_setr   token)	r   r   r   argskwargsr   outfuncsave_to_sessions	          N/var/www/html/env/lib/python3.13/site-packages/social_core/pipeline/partial.pywrapper0partial_step.<locals>.decorator.<locals>.wrapper   s    ->48<BO
 
 	 &##1$3	     c4((  ((..?"((2O4I4I J    r   )r   r   r   s   ` r   	decoratorpartial_step.<locals>.decorator   s     	t	 
	2 r    )r   r    s   ` r   partial_stepr#      s    $: r   T)r   N)	functoolsr   utilsr   r   r#   r   r"   r   r   <module>r&      s      . "/f t
,r   