{"version":3,"sources":["components/navigation/@common/navigation.js"],"names":["AppNavigationBase","Component","constructor","el","closer","$find","subNavOpeners","$findAll","addEventListeners","openNav","$el","classList","add","document","body","closeNav","remove","toggleSubNav","opener","toggle","nextElementSibling","addEventListener","forEach","EventBus","getInstance","e","contains","target"],"mappings":"aAAA,KAAMA,CAAAA,iBAAN,QAAgCC,CAAAA,SAAU,CACzCC,WAAW,CAACC,EAAD,CAAK,CACf,MAAMA,EAAN,EACA,KAAKC,MAAL,CAAc,KAAKC,KAAL,CAAW,eAAX,CAAd,CACA,KAAKC,aAAL,CAAqB,KAAKC,QAAL,CAAc,eAAd,CAArB,CACA,KAAKC,iBAAL,EACA,CAEDC,OAAO,EAAG,CACT,KAAKC,GAAL,CAASC,SAAT,CAAmBC,GAAnB,CAAuB,WAAvB,EACAC,QAAQ,CAACC,IAAT,CAAcH,SAAd,CAAwBC,GAAxB,CAA4B,mBAA5B,CACA,CAEDG,QAAQ,EAAG,CACV,KAAKL,GAAL,CAASC,SAAT,CAAmBK,MAAnB,CAA0B,WAA1B,EACAH,QAAQ,CAACC,IAAT,CAAcH,SAAd,CAAwBK,MAAxB,CAA+B,mBAA/B,CACA,CAEDC,YAAY,CAACC,MAAD,CAAS,CACpBA,MAAM,CAACP,SAAP,CAAiBQ,MAAjB,CAAwB,WAAxB,EACAD,MAAM,CAACE,kBAAP,CAA0BT,SAA1B,CAAoCQ,MAApC,CAA2C,WAA3C,CACA,CAEDX,iBAAiB,EAAG,CACnB,KAAKJ,MAAL,CAAYiB,gBAAZ,CAA6B,OAA7B,CAAsC,IAAM,KAAKN,QAAL,EAA5C,EACA,KAAKT,aAAL,CAAmBgB,OAAnB,CAA2BJ,MAAM,EAAIA,MAAM,CAACG,gBAAP,CAAwB,OAAxB,CAAiC,IAAM,KAAKJ,YAAL,CAAkBC,MAAlB,CAAvC,CAArC,EACAK,QAAQ,CAACC,WAAT,GAAuBH,gBAAvB,CAAwC,oBAAxC,CAA8D,IAAM,KAAKZ,OAAL,EAApE,EACAI,QAAQ,CAACQ,gBAAT,CAA0B,OAA1B,CAAmCI,CAAC,EAAI,CACvC,GAAI,CAAC,KAAKf,GAAL,CAASgB,QAAT,CAAkBD,CAAC,CAACE,MAApB,CAAL,CAAkC,CACjC,KAAKZ,QAAL,EACA,CACD,CAJD,CAKA,CAhCwC","sourcesContent":["class AppNavigationBase extends Component {\r\n\tconstructor(el) {\r\n\t\tsuper(el);\r\n\t\tthis.closer = this.$find('[data-closer]');\r\n\t\tthis.subNavOpeners = this.$findAll('[data-opener]');\r\n\t\tthis.addEventListeners();\r\n\t}\r\n\r\n\topenNav() {\r\n\t\tthis.$el.classList.add('is-opened');\r\n\t\tdocument.body.classList.add('is-not-overflowed');\r\n\t}\r\n\r\n\tcloseNav() {\r\n\t\tthis.$el.classList.remove('is-opened');\r\n\t\tdocument.body.classList.remove('is-not-overflowed');\r\n\t}\r\n\r\n\ttoggleSubNav(opener) {\r\n\t\topener.classList.toggle('is-opened');\r\n\t\topener.nextElementSibling.classList.toggle('is-opened');\r\n\t}\r\n\r\n\taddEventListeners() {\r\n\t\tthis.closer.addEventListener('click', () => this.closeNav());\r\n\t\tthis.subNavOpeners.forEach(opener => opener.addEventListener('click', () => this.toggleSubNav(opener)));\r\n\t\tEventBus.getInstance().addEventListener('mainNavigationOpen', () => this.openNav());\r\n\t\tdocument.addEventListener('click', e => {\r\n\t\t\tif (!this.$el.contains(e.target)) {\r\n\t\t\t\tthis.closeNav();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}"],"file":"navigation.min.js"}