Ë
    ûûàgž  ã                   ór   — d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	  G d„ de«      Z
 G d„ d	e	«      ZegZy
)é    )ÚEmailAddress)Ú3convert_to_python_bool_if_value_is_json_string_bool)ÚAmazonCognitoOAuth2Adapter)ÚProviderAccount)ÚOAuth2Providerc                   ó   — e Zd Zd„ Zd„ Zy)ÚAmazonCognitoAccountc                 óL   — | j                   j                  j                  d«      S )NÚpicture©ÚaccountÚ
extra_dataÚget©Úselfs    úu/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/allauth/socialaccount/providers/amazon_cognito/provider.pyÚget_avatar_urlz#AmazonCognitoAccount.get_avatar_url   ó   € Ø�|‰|×&Ñ&×*Ñ*¨9Ó5Ð5ó    c                 óL   — | j                   j                  j                  d«      S )NÚprofiler   r   s    r   Úget_profile_urlz$AmazonCognitoAccount.get_profile_url   r   r   N)Ú__name__Ú
__module__Ú__qualname__r   r   © r   r   r	   r	      s   „ ò6ó6r   r	   c                   óV   ‡ — e Zd ZdZdZeZeZd„ Z	d„ Z
d„ Zd„ Zd„ Zeˆ fd„«       Zˆ xZS )	ÚAmazonCognitoProviderÚamazon_cognitozAmazon Cognitoc                 ó   — t        |d   «      S )NÚsub)Ústr©r   Údatas     r   Úextract_uidz!AmazonCognitoProvider.extract_uid   s   € Ü�4˜‘;ÓÐr   c                 óh   — |j                  d«      |j                  d«      |j                  d«      dœS )NÚemailÚ
given_nameÚfamily_name)r'   Ú
first_nameÚ	last_name)r   r#   s     r   Úextract_common_fieldsz+AmazonCognitoProvider.extract_common_fields   s0   € à—X‘X˜gÓ&ØŸ(™( <Ó0ØŸ™ -Ó0ñ
ð 	
r   c                 ó
   — g d¢S )N)Úopenidr   r'   r   r   s    r   Úget_default_scopez'AmazonCognitoProvider.get_default_scope$   s   € Ú-Ð-r   c                 ó€   — |j                  d«      }t        |j                  dd«      «      }|rt        ||d¬«      gS g S )Nr'   Úemail_verifiedFT)r'   ÚverifiedÚprimary)r   r   r   )r   r$   r'   r2   s       r   Úextract_email_addressesz-AmazonCognitoProvider.extract_email_addresses'   sN   € Ø—‘˜Ó!ˆÜFØ�H‰HÐ% uÓ-ó
ˆñ ô  °À$ÔGÐHð	
ð ð	
r   c                 ó^   — t        |«      }|j                  d«      }|�t        d«      |d<   |S )NÚphone_number_verified)Údictr   r   )r   r$   Úretr6   s       r   Úextract_extra_dataz(AmazonCognitoProvider.extract_extra_data3   s>   € Ü�4‹jˆØ $§¡Ð)@Ó AÐØ Ð,äCØ+óð Ð'Ñ(ð
 ˆ
r   c                 óH   •— t         t        | �  «       j                  dd«      S )NÚ_ú-)Úsuperr   Úget_slugÚreplace)ÚclsÚ	__class__s    €r   r>   zAmazonCognitoProvider.get_slug>   s#   ø€ ô Ô*¨CÑ9Ó;×CÑCÀCÈÓMÐMr   )r   r   r   ÚidÚnamer	   Úaccount_classr   Úoauth2_adapter_classr%   r,   r/   r4   r9   Úclassmethodr>   Ú__classcell__)rA   s   @r   r   r      sG   ø„ Ø	€BØ€DØ(€MØ5Ðò ò
ò.ò

ò	ð óNó ôNr   r   N)Úallauth.account.modelsr   Ú4allauth.socialaccount.providers.amazon_cognito.utilsr   Ú4allauth.socialaccount.providers.amazon_cognito.viewsr   Ú$allauth.socialaccount.providers.baser   Ú/allauth.socialaccount.providers.oauth2.providerr   r	   r   Úprovider_classesr   r   r   ú<module>rN      sA   ðÝ /õõõ AÝ Jô6˜?ô 6ô.N˜Nô .Nðb *Ð*Ñ r   