{% sw_extends '@Storefront/storefront/element/cms-element-image-gallery.html.twig' %}
{% block element_image_gallery_alignment %}
{% if page.product.media %}
{% set mediaItems = [] %}
{% for image in page.product.media %}
{% set mediaItems = mediaItems|merge([image.media]) %}
{% endfor %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block element_image_gallery_inner_thumbnails_item_inner %}
{% if image.translated.link and (image.type == 'youtube' or image.type == 'vimeo') %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
{% set previewImageLoading = config('AcrisProductVideoCS.config').previewImageLoading %}
{% set previewImageUrl = null %}
{% if image.extensions.acrisProductVideoPreviewImage and image.extensions.acrisProductVideoPreviewImage.media %}
{% set previewImageUrl = image.extensions.acrisProductVideoPreviewImage.media.url %}
{% endif %}
{% set customImg = false %}
{% if previewImageLoading == 'cookie' %}
{% set customImg = true %}
{% endif %}
{% if image.type == 'youtube' %}
{% set productVideoImg = 'https://i.ytimg.com/vi/' ~ image.translated.link|split('/')|last|split('?')|first|trim ~ '/hqdefault.jpg' %}
{% else %}
{% if metaUrlData.vimeoImageUrl %}
{% set productVideoImg = metaUrlData.vimeoImageUrl %}
{% else %}
{% set productVideoImg = 'https://vumbnail.com/' ~''~ image.translated.link|split('/')|last|split('?')|first|trim ~''~ '.jpg' %}
{% endif %}
{% endif %}
<div class="gallery-slider-thumbnails-item-inner">
<img class="gallery-slider-thumbnails-image element-product-video-image-id-{{ image.id }}" {% if customImg != true %}src="{{ productVideoImg }}"{% endif %} title="{{ metaUrlData['title'] }}" alt="{{ metaUrlData['description'] }}">
</div>
{% elseif image.translated.embedCode and image.type == 'embed' %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
{% set productVideoImg = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wEEEAALAAsACwALAAwACwANAA4ADgANABIAEwARABMAEgAaABgAFgAWABgAGgAnABwAHgAcAB4AHAAnADwAJQArACUAJQArACUAPAA1AEAANAAwADQAQAA1AF8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qfeLctWKRxdUZh7hfCZfUMeFZR7zfEFJFBpAu3WOuDQxMbtGpPtIGGpKZ7XiX6aPLH6Gl7P/Tg5dASTdxje2DrP4jDZbFbguwP0ON7Pjfjjez43443s+N+ON7Pjfjg5bNc2dMb2z9ZPE43tn6yeJxvbP1k8Tje2frJ4nG9s/WTxON7Z+snicLlkl+E6ge7Tjez43443s+N+ON7Pjfjjez43443tg6z+IxvbB1n8Rhcvp1Nztm7zj9DS9n/AKcLTU6iwiT6i+FjRL7VFW/sFv8AoFP/xAAUEQEAAAAAAAAAAAAAAAAAAACw/9oACAECAQE/AHz/AP/EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AfP8A/9k=' %}
<div class="gallery-slider-thumbnails-item-inner">
<img class="gallery-slider-thumbnails-image" src="{{ productVideoImg }}" title="{{ metaUrlData['title'] }}" alt="{{ metaUrlData['description'] }}">
</div>
{% elseif image.type == 'media' %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
{% set productVideoImg = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wEEEAALAAsACwALAAwACwANAA4ADgANABIAEwARABMAEgAaABgAFgAWABgAGgAnABwAHgAcAB4AHAAnADwAJQArACUAJQArACUAPAA1AEAANAAwADQAQAA1AF8ASgBCAEIASgBfAG0AXABXAFwAbQCEAHYAdgCEAKcAngCnANoA2gElEQALAAsACwALAAwACwANAA4ADgANABIAEwARABMAEgAaABgAFgAWABgAGgAnABwAHgAcAB4AHAAnADwAJQArACUAJQArACUAPAA1AEAANAAwADQAQAA1AF8ASgBCAEIASgBfAG0AXABXAFwAbQCEAHYAdgCEAKcAngCnANoA2gEl/8IAEQgDiwRuAwEiAAIRAQMRAf/EABwAAQABBQEBAAAAAAAAAAAAAAAFAgMEBgcIAf/aAAgBAQAAAACMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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8AfP8A/9k=' %}
<div class="gallery-slider-thumbnails-item-inner">
<video class="acris-product-video-iframe">
<source src="{{ image.media.url }}" type="video/mp4">
</video>
</div>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block element_image_gallery_inner_zoom_modal_thumbnails_item %}
{% if image.translated.link and image.type %}
{#{% set productVideoImg = 'https://img.youtube.com/vi/' ~ image.link|split('/')|last|split('?')|first|trim ~ '/2.jpg' %}
<div class="gallery-slider-thumbnails-item-inner">
<img class="gallery-slider-thumbnails-image" src="{{ productVideoImg }}">
</div>#}
{% elseif image.type == 'media' %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block element_image_gallery_inner_item %}
{% if image.translated.link and (image.type == 'youtube' or image.type == 'vimeo') %}
{% set noCookie = image.translated.link|split('youtube-nocookie.com') %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
{% set loadVideoAfterClick = 'loadNow' %}
{% if config('AcrisProductVideoCS.config').loadVideosAfterClick == true %}
{% set loadVideoAfterClick = 'loadAfter' %}
{% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-youtube-load-after.html.twig' with {
isImageGallery: true
}
%}
{% else %}
<div class="gallery-slider-item-container">
{% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-youtube.html.twig' with {
isImageGallery: true
} %}
</div>
{% endif %}
{% elseif image.translated.embedCode and image.type == 'embed' %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
<div class="gallery-slider-item-container">
{% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-embed.html.twig' with {
isImageGallery: true
} %}
</div>
{% elseif image.type == 'media' %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
<div class="gallery-slider-item-container">
{% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/video-media.html.twig' with {
isImageGallery: true
} %}
</div>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block element_image_gallery_inner_single %}
{% set image = mediaItems|first %}
{% if image.translated.link and (image.type == 'youtube' or image.type == 'vimeo') %}
{% set noCookie = image.translated.link|split('youtube-nocookie.com') %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
{% set loadVideoAfterClick = 'loadNow' %}
{% if config('AcrisProductVideoCS.config').loadVideosAfterClick == true %}
{% set loadVideoAfterClick = 'loadAfter' %}
{% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-youtube-load-after.html.twig' %}
{% else %}
{% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-youtube.html.twig' %}
{% endif %}
{% elseif image.translated.embedCode and image.type == 'embed' %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
{% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-embed.html.twig' %}
{% elseif image.type == 'media' %}
{% if image.metaData %}
{% set metaUrlData = image.metaData %}
{% endif %}
{% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/video-media.html.twig' %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block element_image_gallery_inner_zoom_modal_slider_item %}
{% if (image.translated.link and image.type) or (image.type and image.type == 'media') %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}