{% block faesslich_slider_slide_type %}
{% block faesslich_slider_picture %}
{% if (mediaUsage == 'picture' and mediaTypeSplit == 'image') or (isCarouselElement and mediaTypeSplit == 'image') and not entry.useYtVideo %}
<div class="faesslich-slider-slide-item--picture">
{% block faesslich_slider_picture_inner %}
<picture>
{% if entry.mediaMobile %}
<source media="(max-width:640px)" srcset="{{ entry.mediaMobileUrl }}">
{% endif %}
{% if entry.mediaTablet %}
<source media="(max-width: 1024px)" srcset="{{ entry.mediaTabletUrl }}">
{% endif %}
<source media="(min-width:1025px)" srcset="{{ entry.mediaUrl }}">
{% sw_thumbnails_faesslich 'product-image-thumbnails' with {
media: media,
sizes: {
'default': '100px',
'xs': '501px',
'sm': '315px',
'md': '427px',
'lg': '333px',
'xl': '284px'
},
attributes: {
'class': 'faesslich-slider-slide-item--picture--image' ,
'alt': (sliderElementTitle ? sliderElementTitle|striptags|e('html_attr') : ""),
'title': (entry.mediaAlt ? entry.mediaAlt|e('html_attr') : sliderElementTitle ? sliderElementTitle|striptags|e('html_attr') : ""),
'alt': (entry.mediaAlt ? entry.mediaAlt|e('html_attr') : sliderElementTitle ? sliderElementTitle|striptags|e('html_attr') : ""),
'style': "object-fit: #{entry.mediaScale}; object-position: #{entry.mediaPosition}"
}
} %}
<picture>
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% block faesslich_slider_overlay %}
<{% if not entry.linkWholeSliderArea %}div{% else %}a href="{{ ctaUrl }}"{% endif %} class="faesslich-slider-slide-item--overlay"{% if sliderElementBgOverlay %} style="background-color: {{ sliderElementBgOverlay }}"{% endif %}>
</{% if not entry.linkWholeSliderArea %}div{% else %}a{% endif %}>
{% endblock %}
{% block faesslich_slider_video %}
{% if mediaTypeSplit == 'video' and not entry.useYtVideo %}
<div class="faesslich-slider-slide-item--video">
<video width="100%" height="100%" autoplay loop playsinline muted preload="auto">
<source src="{{ media.url }}" type="{{ media.mimeType }}"/>
</video>
</div>
{% endif %}
{% endblock %}
{% block faesslich_slider_youtube_video %}
{% if entry.useYtVideo and entry.ytVideoUrl %}
{% set ytUrl = entry.ytVideoUrl|replace({
'www.youtube.com/embed/': 'www.youtube-nocookie.com/embed/',
'www.youtube.com/watch?v=': 'www.youtube-nocookie.com/embed/',
'youtube.com/embed/': 'www.youtube-nocookie.com/embed/',
'youtube.com/watch?v=': 'www.youtube-nocookie.com/embed/',
'youtu.be/': 'www.youtube-nocookie.com/embed/'})
%}
<div class="faesslich-slider-slide-item--yt-video">
<iframe class="faesslich-slider-slide-item--yt-video-iframe lazyload" data-src="{{ ytUrl }}?modestbranding=1&autohide=1&autoplay=1&showinfo=0&controls=0&mute=1" allow="accelerometer; autoplay; muted; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
{% endif %}
{% endblock %}
{% if entry.useMediaInsteadOfProductCover %}
{% block faesslich_slider_additional_image %}{% endblock %}
{% endif %}
{% block faesslich_slider_content %}
{% if sliderElementTopLine or sliderElementTitle or sliderElementDescription or sliderElementDescriptionAdditional or sliderElementCtaText %}
<{% if not entry.linkWholeSliderArea %}div{% else %}a href="{{ ctaUrl }}"{% endif %} class="faesslich-slider-slide-item--content">
{% block faesslich_slider_content_inner %}
<{% if entry.linkWholeArea and not entry.linkWholeSliderArea %}a href="{{ ctaUrl }}"{% else %}div{% endif %}
class="faesslich-slider-slide-item--content-inner{% if not entry.hideBadges %} -badges-visible{% endif %}{% if entry.useProductCoverAsAdditionalMedia %} -additional-image-visible{% endif %}"
{% if entry.textBoxBgColor or entry.textBoxTextColor %} style="
{% if entry.textBoxBgColor %}background-color: {{ entry.textBoxBgColor }};{% endif %}
{% if entry.textBoxTextColor %}color: {{ entry.textBoxTextColor }};{% endif %}
"{% endif %}
>
{% block faesslich_slider_content_inner_upper_headline %}
{% if sliderElementTopLine and not isCarouselElement %}
<div class="slide-item--upper-headline">{{ sliderElementTopLine|raw }}</div>
{% endif %}
{% endblock %}
{% block faesslich_slider_content_inner_headline %}
{% if sliderElementTitle %}
<div class="slide-item--headline">{{ sliderElementTitle|raw }}</div>
{% endif %}
{% endblock %}
{% block faesslich_slider_content_inner_description %}
{% if sliderElementDescription %}
{% if '<' not in sliderElementDescription and '>' not in sliderElementDescription %}<div class="slide-item--paragraph" {% if entry.textBoxTextColor %}style="color: {{ entry.textBoxTextColor }};"{% endif %}>{% endif %}
{% block faesslich_slider_content_inner_description_text %}
{{ sliderElementDescription|raw }}
{% endblock %}
{% if '<' not in sliderElementDescription and '>' not in sliderElementDescription %}</div>{% endif %}
{% endif %}
{% endblock %}
{% block faesslich_slider_content_inner_description_additional %}
{% if sliderElementDescriptionAdditional %}
{% if '<' not in sliderElementDescriptionAdditional and '>' not in sliderElementDescriptionAdditional %}<div class="slide-item--paragraph" {% if entry.textBoxTextColor %}style="color: {{ entry.textBoxTextColor }};"{% endif %}>{% endif %}
{% block faesslich_slider_content_inner_description_additional_text %}
{{ sliderElementDescriptionAdditional|raw }}
{% endblock %}
{% if '<' not in sliderElementDescriptionAdditional and '>' not in sliderElementDescriptionAdditional %}</div>{% endif %}
{% endif %}
{% endblock %}
{% block faesslich_slider_content_inner_cta %}
{% if entry.sliderElementCtaUrl and entry.sliderElementCtaText %}
<div class="slide-item--button-wrapper">
<{% if not entry.linkWholeArea and not entry.linkWholeSliderArea %}a{% else %}span{% endif %}
class="{% if isCarouselElement %}slide-item--inline-cta{% else %}btn btn-{{ entry.sliderElementCtaType }}{% endif %}"
{% if not entry.linkWholeArea %}href="{{ ctaUrl }}"{% endif %}
rel="noopener">
{% block faesslich_slider_content_inner_cta_inner %}
{{ entry.sliderElementCtaText|raw }}
{% endblock %}
</{% if not entry.linkWholeArea and not entry.linkWholeSliderArea %}a{% else %}span{% endif %}>
</div>
{% endif %}
{% endblock %}
{% block faesslich_slider_content_inner_cta2 %}
{% if entry.sliderElementCta2Url and entry.sliderElementCta2Text and entry.showAdditionalCta and not entry.linkWholeArea and not entry.linkWholeSliderArea %}
<div class="slide-item--button-wrapper ml-2">
<a class="{% if isCarouselElement %}slide-item--inline-cta ml-4{% else %}btn btn-{{ entry.sliderElementCta2Type }}{% endif %}"
href="{{ cta2Url }}"
rel="noopener">
{% block faesslich_slider_content_inner_cta2_inner %}
{{ entry.sliderElementCta2Text|raw }}
{% endblock %}
</a>
</div>
{% endif %}
{% endblock %}
</{% if entry.linkWholeArea and not entry.linkWholeSliderArea %}a{% else %}div{% endif %}>
{% endblock %}
</{% if not entry.linkWholeSliderArea %}div{% else %}a{% endif %}>
{% endif %}
{% endblock %}
{% endblock %}