
    )Jf                     h    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 )	    )STORE_TOKENS)ProviderAccount)OAuth2Providerc                   *     e Zd Zd Zd Z fdZ xZS )EveOnlineAccountc                 h    d                     | j        j                            d                    S )Nz.https://gate.eveonline.com/Profile/{char_name}CharacterName)	char_nameformataccount
extra_datagetselfs    u/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/socialaccount/providers/eveonline/provider.pyget_profile_urlz EveOnlineAccount.get_profile_url   s6    ?FFl-11/BB G 
 
 	
    c                 j    d                     | j        j                            dd                    S )Nz7https://image.eveonline.com/Character/{char_id}_128.jpgCharacterID   )char_idr   r   s    r   get_avatar_urlzEveOnlineAccount.get_avatar_url   s8    IQQL+//qAA R 
 
 	
r   c                    t          t          |                                           }t          d | j        j                            dd           | j        j                            dd           |fD                       S )Nc              3      K   | ]}||V  	d S )N ).0values     r   	<genexpr>z*EveOnlineAccount.to_str.<locals>.<genexpr>   s8       
 

    !   
 
r   r	   r   )superr   to_strnextr   r   r   )r   dflt	__class__s     r   r!   zEveOnlineAccount.to_str   s    %t,,3355 
 
 '++OTBB'++M4@@
 
 
 
 
 	
r   )__name__
__module____qualname__r   r   r!   __classcell__)r$   s   @r   r   r      sV        
 
 


 
 



 

 

 

 

 

 

 

 

r   r   c                   ,    e Zd ZdZdZeZd Zd Zd Z	dS )EveOnlineProvider	eveonlinez
EVE Onlinec                 B    g }t           r|                    d           |S )N
publicData)r   append)r   scopess     r   get_default_scopez#EveOnlineProvider.get_default_scope#   s&     	(MM,'''r   c                 ,    t          |d                   S )NCharacterOwnerHash)strr   datas     r   extract_uidzEveOnlineProvider.extract_uid)   s    4,-...r   c                 H    t          |                    d                    S )Nr	   )name)dictr   r4   s     r   extract_common_fieldsz'EveOnlineProvider.extract_common_fields,   s    /223333r   N)
r%   r&   r'   idr8   r   account_classr0   r6   r:   r   r   r   r*   r*      sP        	BD$M  / / /4 4 4 4 4r   r*   N)	"allauth.socialaccount.app_settingsr   $allauth.socialaccount.providers.baser   /allauth.socialaccount.providers.oauth2.providerr   r   r*   provider_classesr   r   r   <module>rA      s    ; ; ; ; ; ; @ @ @ @ @ @ J J J J J J
 
 
 
 
 
 
 
04 4 4 4 4 4 4 4$ &&   r   