"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[229],{229:function(e,t,r){r.r(t),r.d(t,{Flexy:function(){return a.r},mount:function(){return v}});var n=r(4705),o=r(8043),l=r.n(o),a=r(3071),c=r(2151),s=r.n(c),i=r(3793),y=r(1610),u=r(9948);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const v=function(e,t){t=p({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]"),o=e.querySelector(".flexy .flexy-arrow-prev"),c=e.querySelector(".flexy .flexy-arrow-next");const f=e.closest('[class*="ct-suggested-products"]');f&&(o=f.querySelector(".ct-arrow-prev"),c=f.querySelector(".ct-arrow-next"));const v=".flexy-pills > * > *",w=t.event&&"touchstart"===t.event.type&&t.event.target.closest(v);if(t.event&&"mouseover"===t.event.type&&(0,y.C)()){let e=t.event.target.closest(v);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 g=new a.r(function(){const e=(0,u.F)(r);return e?e.querySelector(".flexy-items"):null},p(p(p(p({flexyAttributeEl:r,elementsThatDoNotStartDrag:[".twentytwenty-handle"]},t.event&&"touchstart"===t.event.type&&!w?{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:o,rightArrow:c,scaleRotateEffect:!1,onDragStart:function(e){e.target.closest(".flexy-items")&&Array.from(e.target.closest(".flexy-items").querySelectorAll(".zoomImg")).map(function(e){l()(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 a.r(n,p(p({elementsThatDoNotStartDrag:[".twentytwenty-handle"],wrapAroundMode:"viewport"===n.dataset.wrap?"viewport":"container"},t.event&&"touchstart"===t.event.type&&w?{initialDragEvent:t.event}:{}),{},{leftArrow:n.parentNode.querySelector(".flexy-arrow-prev"),rightArrow:n.parentNode.querySelector(".flexy-arrow-next")},n.closest(".thumbs-left")&&"mobile"!==(0,i.U)({withTablet:!0})?{orientation:"vertical"}:{}));n.flexy=e}return e.flexy=g,g}},9948:function(e,t,r){r.d(t,{F:function(){return n}});const n=function(e){return e&&"[object Function]"==={}.toString.call(e)?e():e}}}]);