{% if moduleProductViewedAll.exibeModule %}
  <section>
    <div class="ftr-in-space--l">
      <span class="ftr-text--s ftr-text--upper">{{ heading_title }}</span>
    </div>
    {% if grid %}
    <div class="ftr-no-scroller">
      <div class="ftr-scroller">
          {{ moduleProductViewedAll.html }}
      </div>
    </div>
    {% else %}
    <div class="ftr-js-scroller--accordion ftr-js-load-slide" onload="productModules.push({element: this, name: 'slide-product_viewed_all'})">
      <div class="ftr-scroller ftr-js-scroller" data-module-name="product_viewed_all" data-quantity="{{moduleProductViewedAll.productsCount}}">
        {% set boxQuantity = moduleProductViewedAll.productsCount < 24 ? moduleProductViewedAll.productsCount : 24 %}
        {% for i in 1..boxQuantity %}
          <div class="ftr-grid__card ftr-product-card"></div>
        {% endfor %}
      </div>
    </div>
    {% endif %}
  </section>
{% endif %}
