{"version":3,"file":"js/3098-e8ad0023e631d919c693.chunk.js","mappings":"8HAAe,MAAMA,EACnBC,YAAYC,GACVC,KAAKC,GAAKF,EAAQE,EACpB,CAEAC,SACE,MACMC,EAAW,WADJC,OAAOC,SAASC,SAASC,QAAQ,WAAY,QAG1DP,KAAKC,GAAGO,iBAAiBL,GAAUM,SAASR,IAC1CA,EAAGS,UAAUC,IAAI,UAAU,GAE/B,E","sources":["webpack://endrun/./app/javascript/app/static-pages/menu.js"],"sourcesContent":["export default class StaticMenu {\n constructor(options) {\n this.el = options.el;\n }\n\n render() {\n const path = window.location.pathname.replace(/^\\/|\\/$/g, '');\n const selector = `[href=\"/${path}\"]`;\n\n this.el.querySelectorAll(selector).forEach((el) => {\n el.classList.add('current');\n });\n }\n}\n"],"names":["StaticMenu","constructor","options","this","el","render","selector","window","location","pathname","replace","querySelectorAll","forEach","classList","add"],"sourceRoot":""}