/*! For license information please see 74183.2330e18cdc44b52e.js.LICENSE.txt */
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[74183],{74183:(i,t,e)=>{e.r(t),e.d(t,{ion_img:()=>n});var o=e(96317),r=e(81559),s=e(74346);const n=class{constructor(i){(0,o.r)(this,i),this.ionImgWillLoad=(0,o.c)(this,"ionImgWillLoad",7),this.ionImgDidLoad=(0,o.c)(this,"ionImgDidLoad",7),this.ionError=(0,o.c)(this,"ionError",7),this.inheritedAttributes={},this.onLoad=()=>{this.ionImgDidLoad.emit()},this.onError=()=>{this.ionError.emit()},this.loadSrc=void 0,this.loadError=void 0,this.alt=void 0,this.src=void 0}srcChanged(){this.addIO()}componentWillLoad(){this.inheritedAttributes=(0,r.h)(this.el,["draggable"])}componentDidLoad(){this.addIO()}addIO(){void 0!==this.src&&("undefined"!=typeof window&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype?(this.removeIO(),this.io=new IntersectionObserver((i=>{i[i.length-1].isIntersecting&&(this.load(),this.removeIO())})),this.io.observe(this.el)):setTimeout((()=>this.load()),200))}load(){this.loadError=this.onError,this.loadSrc=this.src,this.ionImgWillLoad.emit()}removeIO(){this.io&&(this.io.disconnect(),this.io=void 0)}render(){const{loadSrc:i,alt:t,onLoad:e,loadError:r,inheritedAttributes:n}=this,{draggable:a}=n;return(0,o.h)(o.e,{key:"da600442894427dee1974a28e545613afac69fca",class:(0,s.b)(this)},(0,o.h)("img",{key:"16df0c7069af86c0fa7ce5af598bc0f63b4eb71a",decoding:"async",src:i,alt:t,onLoad:e,onError:r,part:"image",draggable:isDraggable(a)}))}get el(){return(0,o.f)(this)}static get watchers(){return{src:["srcChanged"]}}},isDraggable=i=>{switch(i){case"true":return!0;case"false":return!1;default:return}};n.style=":host{display:block;-o-object-fit:contain;object-fit:contain}img{display:block;width:100%;height:100%;-o-object-fit:inherit;object-fit:inherit;-o-object-position:inherit;object-position:inherit}"}}]);