
    )Jfa                     t    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
d	S )
    )EmailAddress)app_settings)ProviderAccount)OAuth2Providerc                       e Zd Zd ZdS )WahooAccountc                     dS )Nz"https://api.wahooligan.com/v1/user )selfs    q/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/socialaccount/providers/wahoo/provider.pyget_profile_urlzWahooAccount.get_profile_url   s    33    N)__name__
__module____qualname__r   r
   r   r   r   r      s#        4 4 4 4 4r   r   c                   <     e Zd ZdZdZeZd Z fdZd Z	d Z
 xZS )WahooProviderwahooWahooc                 ,    t          |d                   S )Nid)str)r   datas     r   extract_uidzWahooProvider.extract_uid   s    4:r   c           	      J   t          t          |                               |          }|                    |                    d          |                    d          |                    d          |                    d          |                    d                     |S )Nheightweightfirstlastbirth)r   r   r   r   r    )superr   extract_common_fieldsupdateget)r   r   extra_common	__class__s      r   r"   z#WahooProvider.extract_common_fields   s    ]D11GGMM88H%%88H%%((7##&!!((7## 	 	
 	
 	
 r   c                 R    t          |                    d          dd          }|gS )NemailTF)r(   primaryverified)r   r$   )r   r   r(   s      r   extract_email_addressesz%WahooProvider.extract_email_addresses    s4    ((7##
 
 

 wr   c                 N    dg}t           j        r|                    d           |S )N	user_readr(   )r   QUERY_EMAILappend)r   scopes     r   get_default_scopezWahooProvider.get_default_scope(   s+    # 	"LL!!!r   )r   r   r   r   namer   account_classr   r"   r+   r1   __classcell__)r&   s   @r   r   r      st        	BD M  
 
 
 
 
        r   r   N)allauth.account.modelsr   allauth.socialaccountr   $allauth.socialaccount.providers.baser   /allauth.socialaccount.providers.oauth2.providerr   r   r   provider_classesr
   r   r   <module>r:      s    / / / / / / . . . . . . @ @ @ @ @ @ J J J J J J4 4 4 4 4? 4 4 4
         N      F "?   r   