o
    h8                     @   sR  d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZmZmZmZmZ G dd	 d	eejZG d
d deejZG dd de	ejZG dd deejZG dd deejZG dd dejZG dd dejZG dd deejZG dd deejZG dd deejZG dd deejZG dd dejZd S )!    )BaseSignupForm)inputs)AuthenticateForm)Authenticator)GenerateRecoveryCodesForm)ActivateTOTPForm)AddWebAuthnFormAuthenticateWebAuthnFormLoginWebAuthnFormReauthenticateWebAuthnFormSignupWebAuthnFormc                   @      e Zd ZdS )AuthenticateInputN__name__
__module____qualname__ r   r   R/var/www/html/pos/venv/lib/python3.10/site-packages/allauth/headless/mfa/inputs.pyr          r   c                   @   r   )ActivateTOTPInputNr   r   r   r   r   r      r   r   c                   @   r   )GenerateRecoveryCodesInputNr   r   r   r   r   r      r   r   c                   @   r   )AddWebAuthnInputNr   r   r   r   r   r      r   r   c                   @   r   )CreateWebAuthnInputNr   r   r   r   r   r       r   r   c                       s<   e Zd Zejej dZej	dddZ
 fddZ  ZS )UpdateWebAuthnInputquerysetTd   )required
max_lengthc                    @   | d| _t j|i | tjj| jtjjd| j	d _
d S )Nuserr!   typeidpopr!   super__init__r   objectsfilterTypeWEBAUTHNfieldsr   selfargskwargs	__class__r   r   r(   (   
   
zUpdateWebAuthnInput.__init__)r   r   r   r   ModelChoiceFieldr   r)   noner$   	CharFieldnamer(   __classcell__r   r   r2   r   r   $   s    r   c                       s.   e Zd Zejej dZ fddZ	  Z
S )DeleteWebAuthnInputr   c                    r    )Nr!   r"   authenticatorsr%   r.   r2   r   r   r(   5   r4   zDeleteWebAuthnInput.__init__)r   r   r   r   ModelMultipleChoiceFieldr   r)   r6   r;   r(   r9   r   r   r2   r   r:   0   s
    r:   c                   @   r   )ReauthenticateWebAuthnInputNr   r   r   r   r   r=   =   r   r=   c                   @   r   )AuthenticateWebAuthnInputNr   r   r   r   r   r>   A   r   r>   c                   @   r   )LoginWebAuthnInputNr   r   r   r   r   r?   E   r   r?   c                   @   r   )SignupWebAuthnInputNr   r   r   r   r   r@   I   r   r@   c                   @   s   e Zd ZejddZdS )
TrustInputF)r   N)r   r   r   r   BooleanFieldtrustr   r   r   r   rA   M   s    rA   N)allauth.account.formsr   !allauth.headless.internal.restkitr   allauth.mfa.base.formsr   allauth.mfa.modelsr    allauth.mfa.recovery_codes.formsr   allauth.mfa.totp.formsr   allauth.mfa.webauthn.formsr   r	   r
   r   r   Inputr   r   r   r   r   r   r:   r=   r>   r?   r@   rA   r   r   r   r   <module>   s&    	