{"version":3,"sources":["components/header/_4/header.js"],"names":["AppHeader","Component","constructor","el","searchOpener","$find","loginOpener","navOpener","addEventListeners","openSearch","EventBus","getInstance","dispatchEvent","openLogin","addEventListener","e","stopPropagation"],"mappings":"aAAA,KAAMA,CAAAA,SAAN,QAAwBC,CAAAA,SAAU,CACjCC,WAAW,CAACC,EAAD,CAAK,CACf,MAAMA,EAAN,EACA,KAAKC,YAAL,CAAoB,KAAKC,KAAL,CAAW,sBAAX,CAApB,CACA,KAAKC,WAAL,CAAmB,KAAKD,KAAL,CAAW,qBAAX,CAAnB,CACA,KAAKE,SAAL,CAAiB,KAAKF,KAAL,CAAW,mBAAX,CAAjB,CACA,KAAKG,iBAAL,EACA,CAEDC,UAAU,EAAG,CACZC,QAAQ,CAACC,WAAT,GAAuBC,aAAvB,CAAqC,sBAArC,CACA,CAEDC,SAAS,EAAG,CACXH,QAAQ,CAACC,WAAT,GAAuBC,aAAvB,CAAqC,eAArC,CAAsD,aAAtD,CACA,CAEDJ,iBAAiB,EAAG,CACnB,KAAKJ,YAAL,EAAqB,KAAKA,YAAL,CAAkBU,gBAAlB,CAAmC,OAAnC,CAA4C,IAAM,KAAKL,UAAL,EAAlD,CAArB,CACA,KAAKH,WAAL,EAAoB,KAAKA,WAAL,CAAiBQ,gBAAjB,CAAkC,OAAlC,CAA2C,IAAM,KAAKD,SAAL,EAAjD,CAApB,CACA,KAAKN,SAAL,CAAeO,gBAAf,CAAgC,OAAhC,CAAyCC,CAAC,EAAI,CAC7CA,CAAC,CAACC,eAAF,GACAN,QAAQ,CAACC,WAAT,GAAuBC,aAAvB,CAAqC,oBAArC,CACA,CAHD,CAIA,CAxBgC","sourcesContent":["class AppHeader extends Component {\n\tconstructor(el) {\n\t\tsuper(el);\n\t\tthis.searchOpener = this.$find('[data-search-opener]');\n\t\tthis.loginOpener = this.$find('[data-login-opener]');\n\t\tthis.navOpener = this.$find('[data-nav-opener]');\n\t\tthis.addEventListeners();\n\t}\n\n\topenSearch() {\n\t\tEventBus.getInstance().dispatchEvent('showQuickSearchModal');\n\t}\n\n\topenLogin() {\n\t\tEventBus.getInstance().dispatchEvent('showBasePopup', 'login-popup');\n\t}\n\n\taddEventListeners() {\n\t\tthis.searchOpener && this.searchOpener.addEventListener('click', () => this.openSearch());\n\t\tthis.loginOpener && this.loginOpener.addEventListener('click', () => this.openLogin());\n\t\tthis.navOpener.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\tEventBus.getInstance().dispatchEvent('mainNavigationOpen');\n\t\t});\n\t}\n}"],"file":"header.min.js"}