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