"use strict";(self.blocksyJsonP=self.blocksyJsonP||[]).push([[726],{6726:function(e,t,r){r.r(t),r.d(t,{Flexy:function(){return l.D},mount:function(){return w}});var n=r(5311),o=r.n(n),l=r(8315),a=r(2243),i=r.n(a);let c=null,s=matchMedia("all and (max-width: 689px)"),u=matchMedia("all and (max-width: 999px)");const f=function(){c=s.matches?"mobile":u.matches?"tablet":"desktop"};f(),s.addListener((function(){return f()})),u.addListener((function(){return f()}));const y=function(e){return e&&"[object Function]"==={}.toString.call(e)?e():e};function p(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const w=function(e,t){t=d({event:null,flexyOptions:{}},t);let r=e;if((e=y(e)).flexy)return e.flexy;let n=e.querySelector(".flexy-pills [data-flexy]"),a=e.querySelector(".flexy .flexy-arrow-prev"),s=e.querySelector(".flexy .flexy-arrow-next");const u=e.closest('[class*="ct-suggested-products"]');u&&(a=u.querySelector(".ct-arrow-prev"),s=u.querySelector(".ct-arrow-next"));const f=t.event&&"touchstart"===t.event.type&&t.event.target.closest(".flexy-pills > * > *");if(t.event&&"mouseover"===t.event.type&&t.event.target.closest(".flexy-pills > * > *")&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)){const e=t.event.target.closest(".flexy-pills > * > *");setTimeout((function(){e.click()}))}const p=new l.D((function(){const e=y(r);return e?e.querySelector(".flexy-items"):null}),d(d(d(d({flexyAttributeEl:r,elementsThatDoNotStartDrag:[".twentytwenty-handle"]},t.event&&"touchstart"===t.event.type&&!f?{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:s,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){i().trigger("blocksy:frontend:flexy:slide-change",{instance:e,payload:t})}},t.flexyOptions||{}));if(n){const e=new l.D(n,d(d({elementsThatDoNotStartDrag:[".twentytwenty-handle"],wrapAroundMode:"viewport"===n.dataset.wrap?"viewport":"container"},t.event&&"touchstart"===t.event.type&&f?{initialDragEvent:t.event}:{}),{},{leftArrow:n.parentNode.querySelector(".flexy-arrow-prev"),rightArrow:n.parentNode.querySelector(".flexy-arrow-next")},n.closest(".thumbs-left")&&"mobile"!==function(){let{withTablet:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?c:"tablet"===c?"mobile":c}({withTablet:!0})?{orientation:"vertical"}:{}));n.flexy=e}return e.flexy=p,p}}}]);