{"version":3,"sources":["app-footer.js"],"names":["AppFooter","constructor","container","options","this","Object","assign","document","querySelector","locations","querySelectorAll","forEach","location","addEventListener","onClickLocation","bind","event","currentTarget","classList","contains","remove","loc","add"],"mappings":"qBAAqBA,UACnBC,YAAYC,EAAWC,GAIrBC,KAAKD,QAAUE,OAAOC,OAAO,GAHN,GAG0BH,CAAO,EACxDC,KAAKF,UAAYK,SAASC,cAAcN,CAAS,EACjDE,KAAKK,UAAYL,KAAKF,UAAUQ,iBAAiB,WAAW,EAE5DN,KAAKK,UAAUE,QAAQC,IACrBA,EAASC,iBAAiB,QAAST,KAAKU,gBAAgBC,KAAKX,IAAI,CAAC,CACpE,CAAC,CACH,CAEAU,gBAAgBE,GACRJ,EAAWI,EAAMC,cAEnBL,EAASM,UAAUC,SAAS,QAAQ,EACtCP,EAASM,UAAUE,OAAO,QAAQ,GAElChB,KAAKK,UAAUE,QAAQU,GAAOA,EAAIH,UAAUE,OAAO,QAAQ,CAAC,EAC5DR,EAASM,UAAUI,IAAI,QAAQ,EAEnC,CACF","file":"app-footer.min.js","sourcesContent":["export default class AppFooter {\r\n constructor(container, options) {\r\n const defaultOptions = {\r\n }\r\n\r\n this.options = Object.assign({}, defaultOptions, options)\r\n this.container = document.querySelector(container)\r\n this.locations = this.container.querySelectorAll('.location')\r\n\r\n this.locations.forEach(location => {\r\n location.addEventListener('click', this.onClickLocation.bind(this))\r\n })\r\n }\r\n\r\n onClickLocation(event) {\r\n const location = event.currentTarget\r\n\r\n if (location.classList.contains('active')) {\r\n location.classList.remove('active')\r\n } else {\r\n this.locations.forEach(loc => loc.classList.remove('active'))\r\n location.classList.add('active')\r\n }\r\n }\r\n}"]}