text: !function(){function i(i,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{wHD8:function(t,o,n){"use strict";n.r(o),n.d(o,"ion_img",(function(){return r}));var e=n("c1op");n("AfW+");var r=function(){function t(i){var o=this;!function(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Object(e.l)(this,i),this.onLoad=function(){o.ionImgDidLoad.emit()},this.onError=function(){o.ionError.emit()},this.ionImgWillLoad=Object(e.e)(this,"ionImgWillLoad",7),this.ionImgDidLoad=Object(e.e)(this,"ionImgDidLoad",7),this.ionError=Object(e.e)(this,"ionError",7)}var o,n,r;return o=t,r=[{key:"watchers",get:function(){return{src:["srcChanged"]}}},{key:"style",get:function(){return":host{-o-object-fit:contain;object-fit:contain}:host,img{display:block}img{width:100%;height:100%;-o-object-fit:inherit;object-fit:inherit;-o-object-position:inherit;object-position:inherit}"}}],(n=[{key:"srcChanged",value:function(){this.addIO()}},{key:"componentDidLoad",value:function(){this.addIO()}},{key:"addIO",value:function(){var i=this;void 0!==this.src&&("IntersectionObserver"in window?(this.removeIO(),this.io=new IntersectionObserver((function(t){t[0].isIntersecting&&(i.load(),i.removeIO())})),this.io.observe(this.el)):setTimeout((function(){return i.load()}),200))}},{key:"load",value:function(){this.loadError=this.onError,this.loadSrc=this.src,this.ionImgWillLoad.emit()}},{key:"removeIO",value:function(){this.io&&(this.io.disconnect(),this.io=void 0)}},{key:"render",value:function(){return Object(e.i)(e.a,{class:Object(e.d)(this)},Object(e.i)("img",{decoding:"async",src:this.loadSrc,alt:this.alt,onLoad:this.onLoad,onError:this.loadError}))}},{key:"el",get:function(){return Object(e.f)(this)}}])&&i(o.prototype,n),r&&i(o,r),t}()}}])}();