"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[778],{9778(e,t,r){r.r(t),r.d(t,{Flexy:function(){return l.r},mount:function(){return p}});var n=r(1669),o=r.n(n),l=r(3071),a=r(8113),s=r.n(a);let i=null,c=matchMedia("all and (max-width: 689px)"),u=matchMedia("all and (max-width: 999px)");const y=function(){i=c.matches?"mobile":u.matches?"tablet":"desktop"};y(),c.addListener(function(){return y()}),u.addListener(function(){return y()});const f=function({withTablet:e=!1}={}){return e?i:"tablet"===i?"mobile":i},d=function(e){return e&&"[object Function]"==={}.toString.call(e)?e():e},p=function(e,t){t={event:null,flexyOptions:{},...t};let r=e;if((e=d(e)).flexy)return e.flexy;let n=e.querySelector(".flexy-pills [data-flexy]"),a=e.querySelector(".flexy .flexy-arrow-prev"),i=e.querySelector(".flexy .flexy-arrow-next");const c=e.closest('[class*="ct-suggested-products"]');c&&(a=c.querySelector(".ct-arrow-prev"),i=c.querySelector(".ct-arrow-next"));const u=".flexy-pills > * > *",y=t.event&&"touchstart"===t.event.type&&t.event.target.closest(u);if(t.event&&"mouseover"===t.event.type&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)){let e=t.event.target.closest(u);const r=".flexy-arrow-prev, .flexy-arrow-next";e||(e=t.event.target.closest(r)),!e&&t.event.target.matches(r)&&(e=t.event.target),e&&setTimeout(function(){e.click();const t=new AbortController;e.addEventListener("click",function(e){e.isTrusted&&(e.preventDefault(),t.abort())},{signal:t.signal}),setTimeout(function(){return t.abort()},500)})}const p=new l.r(function(){const e=d(r);return e?e.querySelector(".flexy-items"):null},{flexyAttributeEl:r,elementsThatDoNotStartDrag:[".twentytwenty-handle"],...t.event&&"touchstart"===t.event.type&&!y?{initialDragEvent:t.event}:{},autoplay:!!(Object.keys(e.dataset).indexOf("autoplay")>-1&&parseInt(e.dataset.autoplay,10))&&e.dataset.autoplay,...e.querySelector(".flexy-pills")?{pillsContainerSelector:e.querySelector(".flexy-pills").firstElementChild}:{},leftArrow:a,rightArrow:i,scaleRotateEffect:!1,onDragStart:function(e){e.target.closest(".flexy-items")&&Array.from(e.target.closest(".flexy-items").querySelectorAll(".zoomImg")).map(function(e){o()(e).stop().fadeTo(120,0)})},wrapAroundMode:"viewport"===e.dataset.wrap?"viewport":"container",...n?{pillsFlexyInstance:n}:{},onSlideChange:function(e,t){s().trigger("blocksy:frontend:flexy:slide-change",{instance:e,payload:t})},...t.flexyOptions||{}});if(n){const e=new l.r(n,{elementsThatDoNotStartDrag:[".twentytwenty-handle"],wrapAroundMode:"viewport"===n.dataset.wrap?"viewport":"container",...t.event&&"touchstart"===t.event.type&&y?{initialDragEvent:t.event}:{},leftArrow:n.parentNode.querySelector(".flexy-arrow-prev"),rightArrow:n.parentNode.querySelector(".flexy-arrow-next"),..."left"===n.closest(".woocommerce-product-gallery")?.dataset.thumbs&&"mobile"!==f({withTablet:!0})?{orientation:"vertical"}:{}});n.flexy=e}return e.flexy=p,p}}}]);