{"version":3,"sources":["webpack:////Users/owenli/Documents/workspace/awi-wool-fe/src/views/widgets/siteFooterLinksWidget/js/siteFooterLinksWidget.js"],"names":["CLS","SiteFooterLinksWidget","_createClass","element","_this","this","_classCallCheck","$element","$","$sitemapButton","find","concat","$siteFooterWidget","parents","$siteFooterSitemapWidget","on","trigger","attr","addClass","removeClass"],"mappings":"i4BAAA,IACMA,EAAM,wBAECC,4GAAqBC,CACjC,SAAAD,EAAYE,GAAS,IAAAC,EAAAC,kGAAAC,CAAAD,KAAAJ,GACpBI,KAAKF,QAAUA,EACfE,KAAKE,SAAWC,EAAEL,GAElBE,KAAKI,eAAiBJ,KAAKE,SAASG,KAAI,IAAAC,OAAKX,EAAG,mBAChDK,KAAKO,kBAAoBP,KAAKE,SAASM,QAAQ,qBAC/CR,KAAKS,yBAA2BT,KAAKO,kBAAkBF,KAAK,4BAE5DL,KAAKI,eAAeM,GAAG,QAAS,WAC/BX,EAAKQ,kBAAkBI,QAAO,iDAG/BX,KAAKE,SAASQ,GAAE,GAAAJ,OAAIX,EAAG,8BAA8B,WACK,UAAtDI,EAAKU,yBAAyBG,KAAK,eACrCb,EAAKK,eAAeS,SAAQ,GAAAP,OAAIX,EAAG,2BAGnCI,EAAKK,eAAeU,YAAW,GAAAR,OAAIX,EAAG","file":"widget-25.430117f348aedc9992ce.js","sourcesContent":["const NS = 'SiteFooterLinksWidget';\nconst CLS = 'siteFooterLinksWidget';\n\nexport class SiteFooterLinksWidget {\n\tconstructor(element) {\n\t\tthis.element = element;\n\t\tthis.$element = $(element);\n\n\t\tthis.$sitemapButton = this.$element.find(`.${CLS}-link--sitemap`);\n\t\tthis.$siteFooterWidget = this.$element.parents('.siteFooterWidget');\n\t\tthis.$siteFooterSitemapWidget = this.$siteFooterWidget.find('.siteFooterSitemapWidget');\n\n\t\tthis.$sitemapButton.on('click', () => {\n\t\t\tthis.$siteFooterWidget.trigger(`siteFooterWidget.toggleSiteFooterSitemap`, {});\n\t\t});\n\n\t\tthis.$element.on(`${CLS}.sitemapButton.toggleClass`, () => {\n\t\t\tif(this.$siteFooterSitemapWidget.attr('data-closed') === 'false') {\n\t\t\t\tthis.$sitemapButton.addClass(`${CLS}-link--sitemap--active`);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.$sitemapButton.removeClass(`${CLS}-link--sitemap--active`);\n\t\t\t}\n\t\t});\n\t}\n}\n"],"sourceRoot":""}