a
    RýIh¹  ã                   @   sH   d dl mZ d dlmZ G dd„ deƒZG dd„ dƒZG dd„ dƒZd	S )
é    )ÚEnum)ÚOptionalc                   @   s   e Zd ZdZdZdS )Ú
LoginStateZSignInZSignUpN)Ú__name__Ú
__module__Ú__qualname__ZSIGN_INZSIGN_UP© r   r   úa/var/www/html/venv_bot_3.9/lib/python3.9/site-packages/selenium/webdriver/common/fedcm/account.pyr      s   r   c                   @   s4   e Zd Zdd„ Zee dœdd„Zddœdd„ZdS )	Ú_AccountDescriptorc                 C   s
   || _ d S ©N)Úname)Úselfr   r   r   r	   Ú__init__   s    z_AccountDescriptor.__init__)Úreturnc                 C   s   |j  | j¡S r   )Ú_account_dataÚgetr   )r   ÚobjÚclsr   r   r	   Ú__get__   s    z_AccountDescriptor.__get__Nc                 C   s   t dƒ‚d S )NzCannot set readonly attribute)ÚAttributeError)r   r   Úvaluer   r   r	   Ú__set__"   s    z_AccountDescriptor.__set__)r   r   r   r   r   Ústrr   r   r   r   r   r	   r
      s   r
   c                   @   s`   e Zd ZdZedƒZedƒZedƒZedƒZedƒZ	edƒZ
edƒZed	ƒZed
ƒZdd„ ZdS )ÚAccountzÌRepresents an account displayed in a FedCM account list.

    See: https://w3c-fedid.github.io/FedCM/#dictdef-identityprovideraccount
         https://w3c-fedid.github.io/FedCM/#webdriver-accountlist
    Z	accountIdÚemailr   Z	givenNameZ
pictureUrlZidpConfigUrlZtermsOfServiceUrlZprivacyPolicyUrlZ
loginStatec                 C   s
   || _ d S r   )r   )r   Zaccount_datar   r   r	   r   7   s    zAccount.__init__N)r   r   r   Ú__doc__r
   Z
account_idr   r   Z
given_nameZpicture_urlZidp_config_urlZterms_of_service_urlZprivacy_policy_urlZlogin_stater   r   r   r   r	   r   &   s   r   N)Úenumr   Útypingr   r   r
   r   r   r   r   r	   Ú<module>   s   