{% spaceless %}
{% block card_media %}
{{ cardMedia }}
{% endblock %}
{% endspaceless %}
{% endif %}
{% if block('card_body') is not empty %}
<{{ contentTag }} class="{{ "#{baseClass}__body" }}">{% spaceless %}
{% block card_body %}
{% for key,item in _items if item.pattern in _allowedCardBodyItems %}
{% if item.pattern %}
{% include pattern_template(item.pattern) with item only %}
{% elseif key != "content" %}
{% include pattern_template(key) with item only %}
{% else %}
{{ item }}
{% endif %}
{% endfor %}
{% endblock card_body %}
{% endspaceless %}{{ contentTag }}>
{% endif %}
{% if block('card_footer') is not empty %}
{% spaceless %}
{% block card_footer %}
{% for item in _items if item.pattern in _allowedCardFooterItems %}
{% set paramOverrides = {
align: "start",
style: "text",
width: "full",
} %}
{% if item.icon == null %}
{% if item.external == true %}
{% set iconOverrides = {
icon: {
name: "external-link"
}
} %}
{% else %}
{% set iconOverrides = {
icon: {
name: "chevron-right"
}
} %}
{% endif %}
{% endif %}
{% if item.pattern %}
{% set item = item | merge(paramOverrides) %}
{# if icon default data set, merge that in as well #}
{% if iconOverrides %}
{% set item = item | merge(iconOverrides) %}
{% endif %}
{% include pattern_template(item.pattern) with item only %}
{% else %}
{{ item }}
{% endif %}
{% endfor %}
{% endblock card_footer %}
{% endspaceless %}
{% endif %}
{{ tag }}>