{"version":3,"sources":["webpack://[name]/./src/js/components/NewBrandsComponent.js"],"names":["NewBrandsComponent","_BaseComponent","element","_this","_classCallCheck","_callSuper","$el","querySelectorAll","forEach","item","addEventListener","complete","naturalWidth","src","window","fair","smallLogo","replace","_inherits","_createClass","BaseComponent"],"mappings":"keAAuD,IAElCA,EAAkB,SAAAC,GAErC,SAAAD,EAAYE,GAAS,IAAAC,EAgBhB,OAhBgBC,IAAA,KAAAJ,IACnBG,EAAAE,EAAA,KAAAL,EAAA,CAAME,KAEDI,IAAIC,iBAAiB,OAAOC,SAAQ,SAAAC,GACvCA,EAAKC,iBAAiB,cAAc,WAE9BD,EAAKE,eAA0C,IAAtBF,EAAKG,cAAkCH,EAAKG,aAAe,IAGxFH,EAAKC,iBAAiB,SAAS,WAG7BD,EAAKI,IAAMC,OAAOC,KAAKC,aAEzBP,EAAKI,IAAMJ,EAAKI,IAAII,QAAQ,gCAAiC,qBAE9Dd,EACJ,OAAAe,IAAAlB,EAAAC,GAAAkB,IAAAnB,GAnBoC,C,OAASoB","file":"js/component-NewBrandsComponent-js.chunks.js","sourcesContent":["import BaseComponent from '../abstracts/BaseComponent';\n\nexport default class NewBrandsComponent extends BaseComponent {\n\n constructor(element) {\n super(element);\n\n this.$el.querySelectorAll('img').forEach(item => {\n item.addEventListener('lazyloaded', () => {\n // console.log('lazyloaded')\n if (item.complete && (typeof item.naturalWidth !== 'undefined') && (item.naturalWidth > 0)) {\n return;\n }\n item.addEventListener('error', () => {\n // console.log('error');\n // item.outerHTML = '<div>' + item.alt + '</div>';\n item.src = window.fair.smallLogo;\n })\n item.src = item.src.replace(/\\/resolutions\\/res-l100x100\\//, '/original/');\n });\n });\n }\n}\n"],"sourceRoot":""}