(window.blocksyJsonP=window.blocksyJsonP||[]).push([[20],{45:function(t,e,r){"use strict";r.r(e),r.d(e,"mount",(function(){return l}));var n=r(16),i=r(3),o=r.n(i);function c(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e .ct-image-container")).map((function(e){return e.addEventListener("click",(function(r){r.preventDefault(),window.PhotoSwipe&&function(e){var r=o()(".pswp")[0],n=o()(e),i=c(e.closest(".ct-product-view").querySelectorAll(".flexy-items .ct-image-container img, .ct-product-view > .ct-image-container img")).map((function(t){return{src:t.src,w:t.width,h:t.height,title:t.getAttribute("title")}})),l=o.a.extend({index:o()(n).index(),addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].textContent=t.title,!0):(e.children[0].textContent="",!1)}},t);new PhotoSwipe(r,PhotoSwipeUI_Default,i,l).init()}(e)}))}));var e=function(){return c(document.querySelectorAll('.flexy-container[data-flexy*="no"]')).map((function(t){t=t.parentNode;var e=new n.a(t.querySelector(".flexy-items"),{flexyAttributeEl:t.querySelector(".flexy-container"),elementsThatDoNotStartDrag:[".twentytwenty-handle"],pillsContainerSelector:t.querySelector(".flexy-pills"),scaleRotateEffect:!1,wrapAroundMode:"viewport"===t.querySelector(".flexy-container").dataset.wrap?"viewport":"container"});t.flexy=e}))};if(e(),ctEvents.on("ct:flexy:update",(function(){e()})),o.a&&o.a.fn&&o.a.fn.wc_variations_image_update){var r=o.a.fn.wc_variations_image_update;o.a.fn.wc_variations_image_update=function(t){if(t){if(this[0].closest(".product").querySelector(".flexy-pills")){var e=this[0].closest(".product").querySelector('.flexy-items [srcset*="'.concat(t.image.src,'"]'));if(e){var n=this[0].closest(".product").querySelector(".flexy-pills").children[c(this[0].closest(".product").querySelector(".flexy-items").children).indexOf(e.closest("div"))];n&&n.click()}}}else this[0].closest(".product").querySelector(".flexy-pills")&&this[0].closest(".product").querySelector(".flexy-pills").firstElementChild.click();r&&r.apply(this,arguments)}}}}}]);