{% set paragraph_classes = [
  'statistic',
] %}
{% set attributes = attributes|default(create_attribute()) %}
{% set attributes = attributes.setAttribute('data-js', 'statistic') %}

{% extends "@ui-paragraph/paragraph.html.twig" %}

{% block paragraph_content %}
  {% if paragraph_field_title %}
    <div class="statistic__title">
      {{ paragraph_field_title }}
    </div>
  {% endif %}

  {% if paragraph_field_stat_number %}
    <div class="statistic__number-group">
      {% if paragraph_field_stat_prefix %}
        <span>{{ paragraph_field_stat_prefix }}</span>
      {% endif %}

      <div class="statistic__number" data-number={{ paragraph_field_stat_number }}>
        <noscript>{{ paragraph_field_stat_number }}</noscript>
      </div>

      {% if paragraph_field_stat_suffix %}
        <span>{{ paragraph_field_stat_suffix }}</span>
      {% endif %}
    </div>
  {% endif %}

  {% if paragraph_field_stat_qualifier %}
    <div class="statistic__qualifier">
      {{ paragraph_field_stat_qualifier }}
    </div>
  {% endif %}





{% endblock %}
