
    ,i                     0    d dl mZ d dlmZ  G d d      Zy)    )Optional)Accountc                       e Zd ZdZdZdZddZedee	   fd       Z
ede	fd       Zedee	   fd	       Zdee   fd
ZdeddfdZddZddZy)Dialogz6Represents a FedCM dialog that can be interacted with.AccountChooserAutoReauthnreturnNc                     || _         y )N)_driver)selfdrivers     u/var/www/system.tvplus.app.br/jogos/scrap/venv/lib/python3.12/site-packages/selenium/webdriver/common/fedcm/dialog.py__init__zDialog.__init__   s	        c                 B    | j                   j                  j                  S )z2Gets the type of the dialog currently being shown.)r   fedcmdialog_typer   s    r   typezDialog.type    s     ||!!---r   c                 B    | j                   j                  j                  S )zGets the title of the dialog.)r   r   titler   s    r   r   zDialog.title%   s     ||!!'''r   c                 l    | j                   j                  j                  }|r|j                  d      S dS )z Gets the subtitle of the dialog.subtitleN)r   r   r   get)r   results     r   r   zDialog.subtitle*   s/     ##,,)/vzz*%9T9r   c                 ~    | j                   j                  j                  }|D cg c]  }t        |       c}S c c}w )z.Gets the list of accounts shown in the dialog.)r   r   account_listr   )r   accountsaccounts      r   get_accountszDialog.get_accounts0   s0    <<%%22089W 999s   :indexc                 N    | j                   j                  j                  |       y)z,Selects an account from the dialog by index.N)r   r   select_account)r   r!   s     r   r#   zDialog.select_account5   s    ))%0r   c                 L    | j                   j                  j                          y)z)Clicks the continue button in the dialog.N)r   r   acceptr   s    r   r%   zDialog.accept9   s    !!#r   c                 L    | j                   j                  j                          y)zCancels/dismisses the dialog.N)r   r   dismissr   s    r   r'   zDialog.dismiss=   s    ""$r   )r	   N)__name__
__module____qualname____doc__DIALOG_TYPE_ACCOUNT_LISTDIALOG_TYPE_AUTO_REAUTHr   propertyr   strr   r   r   listr   r    intr#   r%   r'    r   r   r   r      s    @/+ .hsm . . (s ( ( :(3- : :
:d7m :
1C 1D 1$%r   r   N)typingr   'selenium.webdriver.common.fedcm.accountr   r   r2   r   r   <module>r5      s   $  ;(% (%r   