
    vKg                     <    S SK Jr  S SK Jr  SSKJr   " S S5      rg)    )List)Optional   )Accountc                       \ rS rSrSrSrSrSS jr\S\	\
   4S j5       r\S\
4S	 j5       r\S\	\
   4S
 j5       rS\\   4S jrS\SS4S jrSS jrSS jrSrg)Dialog   z6Represents a FedCM dialog that can be interacted with.AccountChooserAutoReauthnreturnNc                     Xl         g )N_driver)selfdrivers     f/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/selenium/webdriver/common/fedcm/dialog.py__init__Dialog.__init__   s        c                 B    U R                   R                  R                  $ )z2Gets the type of the dialog currently being shown.)r   fedcmdialog_typer   s    r   typeDialog.type!   s     ||!!---r   c                 B    U R                   R                  R                  $ )zGets the title of the dialog.)r   r   titler   s    r   r   Dialog.title&   s     ||!!'''r   c                 v    U R                   R                  R                  nU(       a  UR                  S5      $ S$ )z Gets the subtitle of the dialog.subtitleN)r   r   r    get)r   results     r   r    Dialog.subtitle+   s/     ##,,)/vzz*%9T9r   c                     U R                   R                  R                  nU Vs/ sH  n[        U5      PM     sn$ s  snf )z.Gets the list of accounts shown in the dialog.)r   r   account_listr   )r   accountsaccounts      r   get_accountsDialog.get_accounts1   s4    <<%%22089W 999s   <indexc                 N    U R                   R                  R                  U5        g)z,Selects an account from the dialog by index.N)r   r   select_account)r   r*   s     r   r,   Dialog.select_account6   s    ))%0r   c                 L    U R                   R                  R                  5         g)z)Clicks the continue button in the dialog.N)r   r   acceptr   s    r   r/   Dialog.accept:   s    !!#r   c                 L    U R                   R                  R                  5         g)zCancels/dismisses the dialog.N)r   r   dismissr   s    r   r2   Dialog.dismiss>   s    ""$r   r   )r   N)__name__
__module____qualname____firstlineno____doc__DIALOG_TYPE_ACCOUNT_LISTDIALOG_TYPE_AUTO_REAUTHr   propertyr   strr   r   r    r   r   r(   intr,   r/   r2   __static_attributes__ r   r   r   r      s    @/+ .hsm . . (s ( ( :(3- : :
:d7m :
1C 1D 1$%r   r   N)typingr   r   r'   r   r   r?   r   r   <module>rA      s   $   (% (%r   