{"version":3,"file":"header-CgKG8BUE.js","sources":["../../../../../../HFC.Optimizely.FrontEnd/src/scripts/modules/header.ts"],"sourcesContent":["import { Component } from '@verndale/core';\n\nclass Header extends Component {\n setupDefaults() {\n this.dom = {};\n }\n\n addListeners() {\n const stick = this.el.dataset.sticky;\n\n if (stick === 'true') {\n this.el.classList.add('stick');\n window.addEventListener('scroll', () => {\n if (window.scrollY > 10) {\n this.el.classList.add('shadow');\n } else {\n this.el.classList.remove('shadow');\n }\n });\n }\n }\n}\n\nexport default Header;\n"],"names":["Header","Component"],"mappings":"qCAEA,MAAMA,UAAeC,CAAU,CAC7B,eAAgB,CACd,KAAK,IAAM,EACb,CAEA,cAAe,CACC,KAAK,GAAG,QAAQ,SAEhB,SACP,KAAA,GAAG,UAAU,IAAI,OAAO,EACtB,OAAA,iBAAiB,SAAU,IAAM,CAClC,OAAO,QAAU,GACd,KAAA,GAAG,UAAU,IAAI,QAAQ,EAEzB,KAAA,GAAG,UAAU,OAAO,QAAQ,CACnC,CACD,EAEL,CACF"}