{# Make the component not only compatible with Storyblok "Image (old)" type but also with the newer "Asset" type: #}{% if src is defined and src.filename is defined %}{% set asset = src %}{% set srcFocus = src.focus %}{% set src = src.filename %}{% endif %}{% if static|default(null) or not ('//' in src|default) %}<picture class="image"><img src="{{ src|default }}" alt="{{ alt|default(asset.alt|default) }}" class="image__src {{ class|default }}" {{ attributes|default([])|getAttributes }}></picture>{% else %}<image-wrapperbase-url="{{ imageservice }}"src-url="{{ src|default }}"css-class="{{ class|default }}"alt="{{ alt|default }}"attributes="{{ attributes|default([])|json_encode }}"{% if lazyload is defined and lazyload == false %} no-lazy-load{% endif %}{% if resize is defined and resize == false %} no-resize{% endif %}object-fit="{{ objectFit|default('width') }}"focus="{{ srcFocus|default }}":width="{{ width|default('null') }}":height="{{ height|default('null') }}"></image-wrapper>{% if imageSimilar|default(false) %}<span class="imagesimilar">{{ "product_image_similar"|trans }}</span>{% endif %}<noscript><picture><img src="{{ src|default }}" alt="{{ alt|default }}" class="image__src {{ class|default }}"></picture></noscript>{% endif %}