{% set brickAttributes = product.getTeaserAttributes() %}
{% set teaserAttribute1 = brickAttributes['attribute1']|default(null) %}
{% set teaserAttribute2 = brickAttributes['attribute2']|default(null) %}
<article class="product-teaser shadow stretch-link border-radius-4">
<div class="product-teaser__container-img">
<div class="ratio ratio-4x3">
{% if product.mainImage %}
{{ product.mainImage.getThumbnail('product-teaser').getHTML({
imgAttributes: {
'class': 'ratio-item js-lazy-img product-teaser__img'
},
'lowQualityPlaceholder': true
})|raw }}
{% endif %}
</div>
</div>
<div class="product-teaser__content">
<div class="d-flex flex-column">
<span class="product-teaser__title">{{ 'product.teaser.Model'|trans }}</span>
{% if product.brand %}
<span class="product-teaser__data product-teaser__data--bold">
{{ (product.brand.title ?: product.brand.internalBrandName) ~ ' ' ~ product.title }}
</span>
{% endif %}
</div>
<div class="product-teaser__container d-flex">
{% for key, attribute in brickAttributes %}
{% if attribute %}
<div class="{{ loop.index != 1 ? 'product-teaser__info-right' }} flex-column d-flex">
<div class="d-flex flex-column pe-2">
<span class="product-teaser__title">{{ ('product.detail.' ~ key)|trans }}</span>
{% set tk_prefix = '' %}
{% set internalBrand = internalBrand ?? product.internalBrand ?? '' %}
{% if key == 'manual.throughput' %}
{% set tk_prefix = 'product.detail.' ~ internalBrand ~ ".throughput" ~ '-prefix' %}
{% endif %}
<span class="product-teaser__data">
{{ ((tk_prefix == tk_prefix|trans) and (not app.request.get('pimcore_debug_translations'))) ? '' : document.property('swiss') ? (tk_prefix|trans)|replace({'ß': 'ss'})|raw : tk_prefix|trans|raw }}
{{ attribute }} {{ ('product.detail.' ~ key ~ '-suffix')|trans }}
</span>
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class="product-teaser__container-link d-flex">
<a class="text-gradient-primary product-teaser__category">{{ product.category.getDisplayTitle(app.request.locale) ?? product.category.getTitle(app.request.locale) }}</a>
<a href="{{ linkGenerator(product) }}"
class="btn btn-dark stretch-link__link"
data-event-tracking-event="select_product"
data-event-tracking-product_brand=" {{ product.brand.title ?: product.brand.internalBrandName }}"
data-event-tracking-product_variant="{{ product.title }}"
data-event-tracking-product_category="{{ product.category.getDisplayTitle(app.request.locale) ?? product.category.getTitle(app.request.locale) }}"
data-event-tracking-link_url="{{ elements_host_url() ~ linkGenerator(product) }}">
{{ 'product.teaser.Detail'|trans }}
</a>
</div>
</div>
</article>