{% from "/macros/profile-image.html" import productImageMedium %} {% from "/macros/profile/profile-navigation.html" import profileNavigation %} {% from "/macros/profile/profile-action-button.html" import productActionButton %} {% macro bundleHeadCard(card, badges, ribbon, navigation, actions) %}
{% for image in card.images %} {{ productImageMedium(image, null, ribbon, 'card__image-item') }} {% endfor %}

{{ card.title }}

{{ card.description }}
{% if badges and badges.list and badges.list.length %} {% for badge in badges.list %} {{ badge.label }} {% endfor %} {% endif %}
{% set smallCTAOptions = { buttonSize: 'small', isAddToCartStyle: true } %} {% set largeCTAOptions = { buttonSize: 'large', isAddToCartStyle: true } %} {% if actions.items.length > 2 %}
{% for action in actions.items %} {{ productActionButton(action, largeCTAOptions) }} {% endfor %}
{% for action in actions.items %} {{ productActionButton(action, smallCTAOptions) }} {% endfor %}
{% else %} {% for action in actions.items %} {{ productActionButton(action, largeCTAOptions) }} {% endfor %} {% endif %}

{{ actions.caption.text | safe }}

{{ profileNavigation(navigation.items, actions) }}
{% endmacro %}