"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[229],{229(e,t,r){r.r(t),r.d(t,{Flexy:function(){return l.r},mount:function(){return y}});var n=r(8043),o=r.n(n),l=r(3071),a=r(2151),s=r.n(a),c=r(3793),i=r(1610),u=r(9948);const y=function(e,t){t={event:null,flexyOptions:{},...t};let r=e;if((e=(0,u.F)(e)).flexy)return e.flexy;let n=e.querySelector(".flexy-pills [data-flexy]"),a=e.querySelector(".flexy .flexy-arrow-prev"),y=e.querySelector(".flexy .flexy-arrow-next");const f=e.closest('[class*="ct-suggested-products"]');f&&(a=f.querySelector(".ct-arrow-prev"),y=f.querySelector(".ct-arrow-next"));const p=".flexy-pills > * > *",v=t.event&&"touchstart"===t.event.type&&t.event.target.closest(p);if(t.event&&"mouseover"===t.event.type&&(0,i.C)()){let e=t.event.target.closest(p);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 x=new l.r(function(){const e=(0,u.F)(r);return e?e.querySelector(".flexy-items"):null},{flexyAttributeEl:r,elementsThatDoNotStartDrag:[".twentytwenty-handle"],...t.event&&"touchstart"===t.event.type&&!v?{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:y,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&&v?{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"!==(0,c.U)({withTablet:!0})?{orientation:"vertical"}:{}});n.flexy=e}return e.flexy=x,x}},9948(e,t,r){r.d(t,{F:function(){return n}});const n=function(e){return e&&"[object Function]"==={}.toString.call(e)?e():e}}}]);