{% sw_extends '@Storefront/storefront/component/privacy-notice.html.twig' %}
{% block component_privacy_notice %}
<div class="form-text privacy-notice">
{% block component_privacy_dpi %}
{% if config('core.loginRegistration.requireDataProtectionCheckbox') == 1 %}
<wyn-switch
id="acceptedDataProtection"
name="acceptedDataProtection"
class="{% if formViolations.getViolations('/acceptedDataProtection') is not empty %}is-invalid{% endif %}"
{% if data.get('acceptedDataProtection') %}checked{% endif %}
value="1"
required
>
<div>
{% block component_privacy_dpi_label %}
{{ "general.privacyNotice"|trans({
'%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
'%privacyUrl%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
'%tosUrl%': path('frontend.cms.page', { id: config('core.basicInformation.tosPage')} )
})|raw }}
{{ "general.required"|trans|sw_sanitize }}
{% endblock %}
</div>
</wyn-switch>
{% block component_privacy_dpi_checkbox %}
{% endblock %}
{% else %}
<div class="data-protection-information">
{% block component_privacy_label %}
{{ parent() }}
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
{% endblock %}