{"version":3,"file":"zoomv.4617.min.js?t=72fab1ac9b8db04777ad","mappings":"iiCAwBA,QAxBeA,GACb,SAAAC,EAAYC,GAAI,IAAAC,EAAA,M,4FAAAC,CAAA,KAAAH,GAAAI,EAAA,qBASD,WACbC,OAAOC,iBAAiB,SAAUJ,EAAKK,eACzC,IAACH,EAAA,uBAEgB,WACXF,EAAKM,OAAOC,OACdP,EAAKD,GAAGS,MAAMC,YACZ,iBAAgB,GAAAC,OACbV,EAAKM,OAAOC,MAAMI,aAAY,MAGvC,IAnBEC,KAAKb,GAAKA,EACVa,KAAKN,OAAS,CACZC,MAAOR,EAAGc,cAAc,uBAE1BD,KAAKP,iBACLO,KAAKE,cACP,G","sources":["webpack://@hero-digital/zoom/./src/components/modules/EbookHero/EbookHero.js"],"sourcesContent":["class EbookHero {\r\n constructor(el) {\r\n this.el = el\r\n this.domMap = {\r\n image: el.querySelector('.ebook-hero__image')\r\n }\r\n this.setImageHeight()\r\n this.addListeners()\r\n }\r\n\r\n addListeners = () => {\r\n window.addEventListener('resize', this.setImageHeight)\r\n }\r\n\r\n setImageHeight = () => {\r\n if (this.domMap.image) {\r\n this.el.style.setProperty(\r\n '--image-height',\r\n `${this.domMap.image.clientHeight}px`\r\n )\r\n }\r\n }\r\n}\r\n\r\nexport default EbookHero\r\n"],"names":["_createClass","EbookHero","el","_this","_classCallCheck","_defineProperty","window","addEventListener","setImageHeight","domMap","image","style","setProperty","concat","clientHeight","this","querySelector","addListeners"],"sourceRoot":""}