1(window.wpJsonpPaskit=window.wpJsonpPaskit||[]).push([[35],{10:(function(module,__webpack_exports__,__webpack_require__){"use strict";var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),eventHandlers=[],previousBreakpoint=null;function getBreakpoints(){return window.getComputedStyle(document.documentElement,":before").getPropertyValue("content").replace(/"/g,"").split(",")}function getBreakpoint(){return window.getComputedStyle(document.documentElement,":after").getPropertyValue("content").replace(/"/g,"")}jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on("resize",function(event){var currentBreakpoint=getBreakpoint();previousBreakpoint!==currentBreakpoint&&eventHandlers.forEach(function(eventHandler){eventHandler(event,{previous:previousBreakpoint,current:currentBreakpoint})}),previousBreakpoint=currentBreakpoint});function isLessThanBreakpoint(breakpoint){var inclusive=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,breakpoints=getBreakpoints(),currentBreakpoint=getBreakpoint(),comparison=breakpoints.indexOf(currentBreakpoint)-breakpoints.indexOf(breakpoint);return inclusive?comparison<=0:comparison<0}function isGreaterThanBreakpoint(breakpoint){var inclusive=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,breakpoints=getBreakpoints(),currentBreakpoint=getBreakpoint(),comparison=breakpoints.indexOf(currentBreakpoint)-breakpoints.indexOf(breakpoint);return inclusive?comparison>=0:comparison>0}function isBreakpoint(){for(var currentBreakpoint=getBreakpoint(),_len=arguments.length,breakpoints=new Array(_len),_key=0;_key<_len;_key++)breakpoints[_key]=arguments[_key];return breakpoints.some(function(breakpoint){return breakpoint===currentBreakpoint})}function onBreakpointChange(eventHandler){eventHandlers.indexOf(eventHandler)===-1&&eventHandlers.push(eventHandler)}function offBreakpointChange(eventHandler){var index=eventHandlers.indexOf(eventHandler);index!==-1&&eventHandlers.splice(index,1)}__webpack_exports__.a={isLessThanBreakpoint:isLessThanBreakpoint,isGreaterThanBreakpoint:isGreaterThanBreakpoint,isBreakpoint:isBreakpoint,onBreakpointChange:onBreakpointChange,offBreakpointChange:offBreakpointChange}}),13:(function(module,exports){module.exports=debounce;function debounce(fn,delay,at_start,guarantee){var timeout,args,self;return function(){if(self=this,args=Array.prototype.slice.call(arguments),timeout&&(at_start||guarantee))return;if(!at_start)return clear(),timeout=setTimeout(run,delay),timeout;timeout=setTimeout(clear,delay),fn.apply(self,args);function run(){clear(),fn.apply(self,args)}function clear(){clearTimeout(timeout),timeout=null}}}}),69:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",function(){return StaticSlideshow});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),just_debounce__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(13),just_debounce__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(just_debounce__WEBPACK_IMPORTED_MODULE_1__),flickity__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(18),flickity__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(flickity__WEBPACK_IMPORTED_MODULE_2__),_Layout__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(10),_helpers_LoadInAnimations__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4);function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var StaticSlideshow=(function(){function StaticSlideshow2(section){_classCallCheck(this,StaticSlideshow2),this.el=section.el,this.settings=section.data,this.$window=jquery__WEBPACK_IMPORTED_MODULE_0___default()(window),this.carousel=this.el.querySelector(".slideshow"),this.slides=".slideshow-slide",this.container=this.el.querySelector(".slideshow-height-fullscreen"),this.isFullscreen=!!this.container,this.selectBlockOnLoad=!0,this.continueAutoplay=!0,this.stopAutoplay=!1,this.autoplayTimeout=0,this.$firstSlideImage=null,this.flickity=null,this.flickityOptions=null,this._initFlickity=this._initFlickity.bind(this),this.carousel&&this.carousel.querySelectorAll(this.slides).length>1&&this._initSlider()}return _createClass(StaticSlideshow2,[{key:"_initSlider",value:function(){var _this=this;this.flickityOptions={autoPlay:this.settings.enable_autoplay?this.settings.autoplay_duration*1e3:!1,setGallerySize:!this.isFullscreen,pauseAutoPlayOnHover:!1,accessibility:!0,adaptiveHeight:!0,cellAlign:"left",cellSelector:this.slides,contain:!0,wrapAround:!0,arrowShape:{x0:10,x1:60,y1:50,x2:65,y2:45,x3:20}},this._initFlickity(),this.$firstSlideImage=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.slides,this.carousel).find("img[data-rimg]").first(),this.$firstSlideImage.one("rimg:load",function(){_this.flickity&&_this.flickity.resize(),_this._slideshowHeight(),_this._positionDots(),_this._changeArrowColors()})}},{key:"_initFlickity",value:function(){var _this2=this;this.flickity=new flickity__WEBPACK_IMPORTED_MODULE_2___default.a(this.carousel,this.flickityOptions),this.flickity.resize(),this._slideshowHeight(),this._positionDots(),this._changeArrowColors(),this.$window.on("resize.slideshow",just_debounce__WEBPACK_IMPORTED_MODULE_1___default()(function(){_this2._slideshowHeight(),_this2._positionDots(),_this2._changeArrowColors()}));var slideEls=this.carousel.querySelectorAll(this.slides);Object(_helpers_LoadInAnimations__WEBPACK_IMPORTED_MODULE_4__.c)(slideEls),Object(_helpers_LoadInAnimations__WEBPACK_IMPORTED_MODULE_4__.b)([slideEls[0]]),this.flickity.on("change",function(index){setTimeout(function(){Object(_helpers_LoadInAnimations__WEBPACK_IMPORTED_MODULE_4__.d)(Array.prototype.filter.call(slideEls,function(el,i){return i!==index}))},100),setTimeout(function(){Object(_helpers_LoadInAnimations__WEBPACK_IMPORTED_MODULE_4__.b)([slideEls[index]])},150)}),this.flickity.on("select",function(){_this2._slideshowHeight(),_this2._positionDots(),_this2._changeArrowColors(),_this2.selectBlockOnLoad=!1,_this2.settings.enable_autoplay&&!_this2.stopAutoplay&&(_this2.flickity.pausePlayer(),_this2.continueAutoplay?_this2.autoplayTimeout=0:_this2.autoplayTimeout=1e4,_this2.continueAutoplay=!0,setTimeout(function(){_this2.flickity.playPlayer()},_this2.autoplayTimeout))}),this.flickity.on("dragStart",function(){_this2.continueAutoplay=!1}),this.stopAutoplaying=function(){_this2.stopAutoplay=!0,_this2.flickity.stopPlayer()},this.slideElements=this.el.querySelectorAll(this.slides),this.slideElements.forEac
1h(function(slide){slide.addEventListener("focusin",function(){_this2.stopAutoplaying();var $slides=jquery__WEBPACK_IMPORTED_MODULE_0___default()(_this2.slides),$slide=jquery__WEBPACK_IMPORTED_MODULE_0___default()(slide),slideIndex=$slides.index($slide);_this2.flickity.select(slideIndex,!1,!0)})}),this.liveregion=document.createElement("div"),this.liveregion.setAttribute("aria-live","polite"),this.liveregion.setAttribute("class","live-region visually-hidden"),this.el.appendChild(this.liveregion),this.handleManualSlideChange=function(){_this2.stopAutoplaying(),_this2.liveregion.textContent="Slide autoplay stopped.\n On slide ".concat(_this2.flickity.selectedIndex+1," of ").concat(_this2.flickity.slides.length)},this.el.querySelector(".flickity-prev-next-button.next").addEventListener("click",this.handleManualSlideChange),this.el.querySelector(".flickity-prev-next-button.previous").addEventListener("click",this.handleManualSlideChange)}},{key:"_positionDots",value:function(){var pageDots=this.el.querySelector(".flickity-page-dots"),top="auto";if(_Layout__WEBPACK_IMPORTED_MODULE_3__.a.isLessThanBreakpoint("S")&&!this.isFullscreen){var content=this.flickity.selectedElement.querySelector(".slideshow-slide-content"),height=this.flickity.selectedElement.querySelector(".slideshow-background").offsetHeight,dotGutter=5;if(content)top="".concat(height+dotGutter,"px");else{var pageDotsHeight=pageDots.offsetHeight,dotBottomGutter=20;top="".concat(height-(pageDotsHeight+dotBottomGutter),"px")}}pageDots.style.top=top}},{key:"_changeArrowColors",value:function(){var currentColor=this.flickity.selectedElement.querySelector(".slideshow-background").dataset,dots=this.el.querySelectorAll(".flickity-page-dots .dot");_Layout__WEBPACK_IMPORTED_MODULE_3__.a.isLessThanBreakpoint("S")&&!this.isFullscreen?currentColor=currentColor.themecolor:currentColor=currentColor.slidecolor,this.el.querySelector(".flickity-prev-next-button.previous svg").style.fill=currentColor,this.el.querySelector(".flickity-prev-next-button.next svg").style.fill=currentColor;for(var i=0;i<dots.length;i++)dots[i].style.background=currentColor}},{key:"_slideshowHeight",value:function(){if(this.isFullscreen){var offsetHeight=document.querySelector("[data-site-header]").getBoundingClientRect().height,announcement=document.querySelector(".site-announcement");announcement&&(offsetHeight+=announcement.getBoundingClientRect().height),this.el.querySelector(".flickity-viewport").style.height="calc(100vh - ".concat(offsetHeight,"px)"),this.container.style.height="calc(100vh - ".concat(offsetHeight,"px)")}}},{key:"onSectionUnload",value:function(){this._destroyFlickity(),this.$window.off(".slideshow"),this.$firstSlideImage.off("rimg:load")}},{key:"_destroyFlickity",value:function(){this.flickity&&this.flickity.destroy()}},{key:"onSectionBlockSelect",value:function(block){var _this3=this;setTimeout(function(){_this3.flickity.resize()},100);var $slides=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.slides),$slide=jquery__WEBPACK_IMPORTED_MODULE_0___default()(block.el),slideIndex=$slides.index($slide);this.settings.enable_autoplay&&(this.stopAutoplay=!0,this.flickity.pausePlayer()),!$slide.hasClass("is-selected")&&!this.selectBlockOnLoad?this.flickity.select(slideIndex,!1,!1):this.selectBlockOnLoad&&this.flickity.select(slideIndex,!1,!0)}},{key:"onSectionBlockDeselect",value:function(){this.settings.enable_autoplay&&(this.stopAutoplay=!1,this.flickity.playPlayer())}}]),StaticSlideshow2})()})}]); 2//# sourceMappingURL=/cdn/shop/t/2/assets/StaticSlideshow.bundle.js.map?v=101249449729397961211600193836
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.