# pylint: disable=import-error

from django_recaptcha.widgets import (
    ReCaptchaV2Checkbox,
    ReCaptchaV2Invisible,
    ReCaptchaV3,
)

from .constants import RECAPTCHA_VERSION

RECAPTCHA_CHOICES = {
    "v2": ReCaptchaV2Checkbox,
    "v2-invisible": ReCaptchaV2Invisible,
    "v3": ReCaptchaV3(action="form"),
}

RECAPTCHA_WIDGET = RECAPTCHA_CHOICES.get(RECAPTCHA_VERSION, ReCaptchaV2Checkbox)
