1(window.webpackJsonp=window.webpackJsonp||[]).push([[83],{178:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=e(66);var h=function(){function t(i){var e=this;!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.html=i;var h=(0,a.getUrlQueryParams)().print;this.isPrintUrl=!!h,this.matchMedia={desktop:{media:window.matchMedia("(min-width: 1024px)"),urlImage:this.html.dataset.desktop,isActive:!1},tablet:{media:window.matchMedia("(min-width: 768px) and (max-width: 1023px)"),urlImage:this.html.dataset.tablet,isActive:!1},mobile:{media:window.matchMedia("(min-width: 0) and (max-width: 767px)"),urlImage:this.html.dataset.mobile,isActive:!1},print:{media:window.matchMedia("print"),urlImage:this.html.dataset.tablet,isActive:!0}},this.handleScroll=this.handleScroll.bind(this),this.isPrintUrl?this.loadLazyImage("print"):"true"===this.html.dataset.scroll?this.shouldImgBeVisible(200)?this.loopMediaMatches():window.addEventListener("scroll",this.handleScroll):window.addEventListener("load",(function(){e.loopMediaMatches()}))}return t.prototype.handleScroll=function(){this.shouldImgBeVisible()&&this.loopMediaMatches()},t.prototype.shouldImgBeVisible=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.html,e=t+window.innerHeight,a=i.getBoundingClientRect().top;return a<e},t.prototype.loopMediaMatches=function(){for(var t=Object.keys(this.matchMedia),i=0;i<t.length;i+=1){var e=this.matchMedia[t[i]].media;this.checkForActiveMedia(e)}},t.prototype.checkForActiveMedia=function(t){for(var i=Object.keys(this.matchMedia),e=0;e<i.length;e+=1){if(this.matchMedia[i[e]].isActive=this.matchMedia[i[e]].media.matches,t.media===this.matchMedia[i[e]].media.media&&this.matchMedia[i[e]].isActive){this.loadLazyImage(i[e]);break}}},t.prototype.loadLazyImage=function(t){var i=this,e=this.matchMedia[t].urlImage;this.matchMedia[t].image=new Image,this.matchMedia[t].image.src=e,this.matchMedia[t].image.onload=function(){(0,a.addClass)(i.html,"has-loaded"),i.html.style.backgroundImage="url('"+i.matchMedia[t].image.src+"')",window.removeEventListener("scroll",i.handleScroll)}},t}();i.default=h}}]);
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.