{% block component_captcha_base %}
{% if formId is not defined %}
{% set formId = random() %}
{% endif %}
{% set captchas = config('core.basicInformation.activeCaptchasV2') %}
{% if captchas is defined and captchas is not empty %}
{% for capchaKey, captcha in captchas %}
{% if captcha.isActive %}
{% sw_include '@Storefront/storefront/component/captcha/%s.html.twig'|format(capchaKey)
with {
additionalClass: additionalClass,
formId: 'form-%s' | format(formId)
}
%}
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}