{"version":3,"sources":["webpack://@verndale/toolkit/./src/js/modules/BlogBanner.js"],"names":[],"mappings":"mJAEA,eAAqB,KAAU,CAC7B,eAAgB,CACd,KAAK,IAAM,CACT,OAAQ,SAAS,cAAc,gBAC/B,OAAQ,SAAS,cAAc,WAEjC,KAAK,iBAGP,cAAe,CACb,OAAO,iBAAiB,SAAU,KAAK,eAAe,KAAK,OACxD,KAAK,IAAI,QACV,GAAI,gBAAe,KAAK,eAAe,KAAK,OAAO,QAAQ,KAAK,IAAI,QAIxE,gBAAiB,CACf,GAAG,KAAK,IAAI,OAAQ,CACpB,KAAM,GAAe,KAAK,IAAI,OAAO,aACrC,KAAK,IAAI,OAAO,MAAM,IAAM,GAAG,UAE7B,MAAK,IAAI,OAAO,MAAM,IAAM,SAMlC,UAAe","file":"scripts/3976.12f3eb83035a7bd7a211.js","sourcesContent":["import { Component } from '@verndale/core';\n\nclass Module extends Component {\n setupDefaults() {\n this.dom = {\n banner: document.querySelector('.blog-banner'),\n header: document.querySelector('header')\n };\n this.setupBannerTop();\n }\n\n addListeners() {\n window.addEventListener('resize', this.setupBannerTop.bind(this));\n if(this.dom.header) {\n new ResizeObserver(this.setupBannerTop.bind(this)).observe(this.dom.header);\n }\n }\n\n setupBannerTop() {\n if(this.dom.header) {\n const headerHeight = this.dom.header.offsetHeight;\n this.dom.banner.style.top = `${headerHeight}px`;\n } else {\n this.dom.banner.style.top = '110px';\n }\n }\n \n}\n\nexport default Module;\n"],"sourceRoot":""}