{"version":3,"sources":["components/header/_web1/header.js"],"names":["AppHeader","Component","constructor","el","searchOpener","$el","querySelector","loginOpener","navOpener","headerOffset","offsetTop","window","scrollY","lastScroll","contactMenu","addEventListeners","openSearch","EventBus","getInstance","dispatchEvent","openLogin","addEventListener","e","stopPropagation","currentTarget","classList","add","remove"],"mappings":"aAAA,KAAMA,CAAAA,SAAN,QAAwBC,CAAAA,SAAU,CAC9BC,WAAW,CAACC,EAAD,CAAK,CACZ,MAAMA,EAAN,EACA,KAAKC,YAAL,CAAoB,KAAKC,GAAL,CAASC,aAAT,CAAuB,sBAAvB,CAApB,CACA,KAAKC,WAAL,CAAmB,KAAKF,GAAL,CAASC,aAAT,CAAuB,qBAAvB,CAAnB,CACA,KAAKE,SAAL,CAAiB,KAAKH,GAAL,CAASC,aAAT,CAAuB,mBAAvB,CAAjB,CACA,KAAKG,YAAL,CAAoB,KAAKJ,GAAL,CAASK,SAAT,CAAqBC,MAAM,CAACC,OAAhD,CACA,KAAKC,UAAL,CAAkB,CAAlB,CAEA,KAAKC,WAAL,CAAmB,KAAKT,GAAL,CAASC,aAAT,CAAuB,4BAAvB,CAAnB,CACA,KAAKS,iBAAL,EACH,CAEDC,UAAU,EAAG,CACTC,QAAQ,CAACC,WAAT,GAAuBC,aAAvB,CAAqC,sBAArC,CACH,CAEDC,SAAS,EAAG,CACRH,QAAQ,CAACC,WAAT,GAAuBC,aAAvB,CAAqC,eAArC,CAAsD,aAAtD,CACH,CAEDJ,iBAAiB,EAAG,CAChB,KAAKX,YAAL,EAAqB,KAAKA,YAAL,CAAkBiB,gBAAlB,CAAmC,OAAnC,CAA4C,IAAM,KAAKL,UAAL,EAAlD,CAArB,CACA,KAAKT,WAAL,EAAoB,KAAKA,WAAL,CAAiBc,gBAAjB,CAAkC,OAAlC,CAA2C,IAAM,KAAKD,SAAL,EAAjD,CAApB,CACA,KAAKZ,SAAL,CAAea,gBAAf,CAAgC,OAAhC,CAAyCC,CAAC,EAAI,CAC1CA,CAAC,CAACC,eAAF,GACAN,QAAQ,CAACC,WAAT,GAAuBC,aAAvB,CAAqC,oBAArC,CACH,CAHD,EAKA,KAAKL,WAAL,EAAoB,KAAKA,WAAL,CAAiBO,gBAAjB,CAAkC,WAAlC,CAAgDC,CAAD,EAAO,CACtEA,CAAC,CAACE,aAAF,CAAgBC,SAAhB,CAA0BC,GAA1B,CAA8B,QAA9B,CACH,CAFmB,CAApB,CAGA,KAAKZ,WAAL,EAAoB,KAAKA,WAAL,CAAiBO,gBAAjB,CAAkC,YAAlC,CAAiDC,CAAD,EAAO,CACvEA,CAAC,CAACE,aAAF,CAAgBC,SAAhB,CAA0BE,MAA1B,CAAiC,QAAjC,CACH,CAFmB,CAGvB,CAnC6B","sourcesContent":["class AppHeader extends Component {\r\n constructor(el) {\r\n super(el);\r\n this.searchOpener = this.$el.querySelector('[data-search-opener]');\r\n this.loginOpener = this.$el.querySelector('[data-login-opener]');\r\n this.navOpener = this.$el.querySelector('[data-nav-opener]');\r\n this.headerOffset = this.$el.offsetTop - window.scrollY;\r\n this.lastScroll = 0;\r\n\r\n this.contactMenu = this.$el.querySelector('[data-header-contact-menu]');\r\n this.addEventListeners();\r\n }\r\n\r\n openSearch() {\r\n EventBus.getInstance().dispatchEvent('showQuickSearchModal');\r\n }\r\n\r\n openLogin() {\r\n EventBus.getInstance().dispatchEvent('showBasePopup', 'login-popup');\r\n }\r\n\r\n addEventListeners() {\r\n this.searchOpener && this.searchOpener.addEventListener('click', () => this.openSearch());\r\n this.loginOpener && this.loginOpener.addEventListener('click', () => this.openLogin());\r\n this.navOpener.addEventListener('click', e => {\r\n e.stopPropagation();\r\n EventBus.getInstance().dispatchEvent('mainNavigationOpen');\r\n });\r\n\r\n this.contactMenu && this.contactMenu.addEventListener('mouseover', (e) => {\r\n e.currentTarget.classList.add('active');\r\n });\r\n this.contactMenu && this.contactMenu.addEventListener('mouseleave', (e) => {\r\n e.currentTarget.classList.remove('active');\r\n });\r\n }\r\n\r\n}"],"file":"header.min.js"}