1(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{23:(function(module,__webpack_exports__,__webpack_require__){"use strict";var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),eventHandlers=[],previousBreakpoint=null;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 isBreakpoint(breakpoint){return getBreakpoint()===breakpoint}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={isBreakpoint:isBreakpoint,onBreakpointChange:onBreakpointChange,offBreakpointChange:offBreakpointChange}}),65:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",function(){return DynamicPromoBlocks});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),_Layout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23);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 adjustHeight=function(block){var $block=jquery__WEBPACK_IMPORTED_MODULE_0___default()(block),$wrapper=$block.find(".promo-block--content-wrapper"),padding=window.getComputedStyle($block[0],null).getPropertyValue("padding-top").replace("px","");$block.innerHeight()-padding*2<$wrapper.innerHeight()&&($block.css({height:"".concat($wrapper.innerHeight()+padding*2,"px")}),$wrapper.css({transform:"none",top:"auto"}))},resetHeight=function(block){var $block=jquery__WEBPACK_IMPORTED_MODULE_0___default()(block),$wrapper=$block.find(".promo-block--content-wrapper");$block.css({height:""}),$wrapper.css({transform:"",top:""})},DynamicPromoBlocks=(function(){function DynamicPromoBlocks2(section){var _this=this;_classCallCheck(this,DynamicPromoBlocks2),this.$el=jquery__WEBPACK_IMPORTED_MODULE_0___default()(section.el),this.content="[data-promo-block-content]",this.expandedClass="promo-block--expanded",this.compressBlocks=section.data.compress_blocks,this.layoutHandler=this.onBreakpointChange.bind(this),_Layout__WEBPACK_IMPORTED_MODULE_1__.a.onBreakpointChange(this.layoutHandler),this._blockInteraction=this._blockInteraction.bind(this),this.$el.on("click.promo-block",this.content,this._blockInteraction),!this.compressBlocks&&_Layout__WEBPACK_IMPORTED_MODULE_1__.a.isBreakpoint("XS")&&this.$el.find(this.content).each(function(index,block){adjustHeight(block)}),this.compressBlocks||jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on("resize",function(){_this.$el.find(_this.content).each(function(index,block){_Layout__WEBPACK_IMPORTED_MODULE_1__.a.isBreakpoint("XS")?adjustHeight(block):resetHeight(block)})})}return _createClass(DynamicPromoBlocks2,[{key:"onBreakpointChange",value:function(){var _this2=this;_Layout__WEBPACK_IMPORTED_MODULE_1__.a.isBreakpoint("XS")?this.compressBlocks||this.$el.find(this.content).each(function(index,block){adjustHeight(block)}):(this.$el.find(".".concat(this.expandedClass)).each(function(i,content){_this2._collapse(content)}),this.$el.find(this.content).each(function(index,block){resetHeight(block)}))}},{key:"onSectionUnload",value:function(){this.$el.off(".promo-block"),_Layout__WEBPACK_IMPORTED_MODULE_1__.a.offBreakp
1ointChange(this.layoutHandler)}},{key:"onSectionBlockSelect",value:function(block){_Layout__WEBPACK_IMPORTED_MODULE_1__.a.isBreakpoint("XS")&&this._expand(block.el.querySelector(this.content))}},{key:"onSectionBlockDeselect",value:function(block){_Layout__WEBPACK_IMPORTED_MODULE_1__.a.isBreakpoint("XS")&&this._collapse(block.el.querySelector(this.content))}},{key:"_blockInteraction",value:function(event){var content=event.currentTarget,clicked=content.getAttribute("data-clicked");clicked||!_Layout__WEBPACK_IMPORTED_MODULE_1__.a.isBreakpoint("XS")||!this.compressBlocks||(event.preventDefault(),content.setAttribute("data-clicked","clicked"),this._expand(content))}},{key:"_expand",value:function(content){var _this3=this;if(this.compressBlocks){var $content=jquery__WEBPACK_IMPORTED_MODULE_0___default()(content);$content.addClass("animating animating-in").one("trend",function(){$content.removeClass("animating animating-in").addClass(_this3.expandedClass).off("trend"),adjustHeight($content)})}}},{key:"_collapse",value:function(content){var _this4=this;if(this.compressBlocks){var $content=jquery__WEBPACK_IMPORTED_MODULE_0___default()(content);$content.addClass("animating animating-out").one("trend",function(){$content.removeClass("animating animating-out ".concat(_this4.expandedClass)).off("trend"),content.removeAttribute("data-clicked"),resetHeight($content)})}}}]),DynamicPromoBlocks2})()})}]); 2//# sourceMappingURL=/cdn/shop/t/22/assets/DynamicPromoBlocks.bundle.js.map?v=161825061883283586091759165399
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.