1/*! 2 * vue-lazy-images v1.4.6 3 * (c) 2018 LowesYang 4 * Released under the MIT License. 5 */ 6!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueLazyImages=t():e.VueLazyImages=t()}(this,(function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=64)}({63:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(67),i=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.init(t)}return o(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.images=[],this.scrollParent=new WeakSet,this.options=e,this.eventsList=e.eventsList||i}},{key:"addImage",value:function(e){if(e.tagName&&"img"===e.tagName.toLowerCase()){var t=(0,r.getScrollParent)(e);if(t){var n={el:e,scrollParent:t};this.images.push(n),this.initListener(t)}}}},{key:"removeImage",value:function(e){var t=this.images.findIndex((function(t){return t.el===e}));this.images.splice(t,1)}},{key:"initListener",value:function(e){var t=this,n=void 0;if(n=this.options.throttle?(0,r.throttle)(this.loadImage,this.options.throttle):this.options.debounce?(0,r.debounce)(this.loadImage,this.options.debounce):this.loadImage,!this.scrollParent.has(e)){var o=(0,r.getStyle)(e,"position");""!==o&&"static"!==o||(e.style.position="relative"),this.scrollParent.add(e),this.eventsList.forEach((function(o){e.addEventListener(o,n.bind(t))}))}}},{key:"loadImage",value:function(){for(var e=this,t=this.images,n=0;n<t.length;n++)!function(o){var i=t[o].scrollParent,a=t[o].el;if((0,r.checkInView)(a,i,e.options.offset)){var s=a.dataset.src;s||console.error(a+" has no attribute 'data-src'!");var l=new Image;l.src=s,l.onload=function(){a.src=s,l=null},t.splice(o--,1)}n=o}(n)}}]),e}();t.default=a},64:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.VueLazyImage=t.install=void 0;var r=o(n(65)),i=o(n(63)),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component("lazy-image",r.default),t.offset=parseInt(t.offset,10)||0;var n=new i.default(t);e.prototype.$lazyImages=n};t.default={install:a,VueLazyImage:r.default},t.install=a,t.VueLazyImage=r.default},65:function(e,t,n){var o=n(94)(n(66),n(95),null,null);o.options.__file="F:\\website\\vue-lazyload-images\\src\\VueLazyImage.vue",o.esModule&&Object.keys(o.esModule).some((function(e){return"default"!==e&&"__esModule"!==e}))&&console.error("named exports are not supported in *.vue files."),o.options.functional&&console.error("[vue-loader] VueLazyImage.vue: functional components are not supported with templates, they should use render functions."),e.exports=o.exports},66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{show:!1}},computed:{_class:function(){var e=void 0;return this.show&&(e=this.imgClass instanceof Array?this.imgClass.concat(["show"]):this.imgClass+" show"),e}},mounted:function(){var e=this;this.$lazyImages.addImage(this.$refs.target),this.$refs.target.onload=function(){e.show=!0},this.$lazyImages.loadImage()},beforeDestroy:function(){this.$lazyImages.removeImage(this.$refs.target)},props:{imgAlt:{type:String,default:""},src:{type:String,required:!0},placeholder:String,imgClass:{type:[Array,String],default:""}}}},67:function(e,t,n){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){return e&&e!==window?(window.ActiveXObject||"ActiveXObject"in window?e.currentStyle[t]:getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t])||e.style[t]:null},r=function(e){return/scroll|auto/.test(o(e,"overflow")+o(e,"overflow-y")+o(e,"overflow-x"))};t.getScrollParent=function(e){if(!(e instanceof HTMLElement))return console.error(e+" is not an HTMLElement"),null;for(var t=e;t&&t!==document.body&&t!==document.documentElement;){if(!t.parentNode)return null;if(r(t))return t;t=t.parentNode}return window},t.getStyle=o,t.checkOverflow=r,t.checkInView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=void 0,i=void 0,a=0,s=0,l=void 0;r=document.documentElement.clientHeight||document.body.clientHeight,i=document.documentElement.clientWidth||document.body.clientWidth;var u,c,f,d,p;if(u=(p=e.getBoundingClientRect()).top-n,c=p.left-n,d=p.bottom+n,f=p.right+n,l=u<r&&d>0&&c<i&&f>0,t!==window){var h=t.scrollTop,m=t.scrollLeft,v=e.offsetWidth,g=e.offsetHeight;for(r=t.clientHeight,i=t.clientWidth;e&&e!==t;){var y=parseInt(o(e,"border-width"))||0;a+=e.offsetTop+y,s+=e.offsetLeft+y,e=e.offsetParent}l=l&&h+r>a-n&&a+g+n>h&&m+i>s-n&&s+v+n>m}return l},t.throttle=function(e,t){var n=0,o=void 0;return!t||t<=0?e:function(){var r=Date.now();r-n>t?(n=r,e.apply(this,arguments)):(clearTimeout(o),o=setTimeout(e.bind.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t-(r-n)))}},t.debounce=function(e,t){var n=void 0;return!t||t<=0?e:function(){clearTimeout(n),n=setTimeout(e.bind.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t)}}},94:function(e,t){e.exports=function(e,t,n,o){var r,i=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(r=e,i=e.default);var s="function"==typeof i?i.options:i;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),o){var l=Object.create(s.computed||null);Object.keys(o).forEach((function(e){var t=o[e];l[e]=function(){return t}})),s.computed=l}return{esModule:r,exports:i,options:s}}},95:function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("img",{ref:"target",class:e._class,attrs:{"data-src":e.src,src:e.placeholder,width:"100%",height:"100%",alt:e.imgAlt}})])},staticRenderFns:[]},e.exports.render._withStripped=!0}})})); 7//# sourceMappingURL=VueLazyImages.min.js.map
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.