{"version":3,"sources":["webpack:///./widgets/siteFooter.js","webpack:///./widgets/siteFooterWoolLab.js"],"names":["WG","SiteFooter","$el","_classCallCheck","this","key","value","showButtonFooter","$wg","$","$selectedLangItem","find","$langToggle","length","$langItems","eq","addClass","text","$siteFooterSiteMap","$linkMore","on","trigger","attr","removeClass","window","utils","checkBP","scrollTop","SiteFooterWoolLab"],"mappings":"02BAAA,IAEMA,EAAK,eAIEC,EAAU,WAGrB,O,EAFD,SAAAA,EAAYC,I,4FAAKC,CAAA,KAAAF,GAChBG,KAAKF,IAAMA,I,EACX,EAAAG,IAAA,OAAAC,MAED,WACCF,KAAKG,mBAEL,IAAMC,EAAMC,EAAEL,KAAKF,KACfQ,EAAoBF,EAAIG,KAAKX,EAAG,wBAC9BY,EAAcJ,EAAIG,KAAKX,EAAG,cAGhC,IAAKU,EAAkBG,OAAQ,CAC9B,IAAIC,EAAaN,EAAIG,KAAKX,EAAG,YAC1Bc,EAAWD,SACbH,EAAoBI,EAAWC,GAAG,IAChBC,SAAS,eAI1BN,GAAmBE,EAAYK,KAAMP,EAAkBO,QAE1D,IAAIC,EAAqBV,EAAIG,KAAK,sBAC9BQ,EAAYX,EAAIG,KAAKX,EAAG,cAE5BmB,EAAUC,GAAG,SAAS,WACrBF,EAAmBG,QAAQ,2BAA4B,OAGxDb,EAAIY,GAAG,wCAAwC,WACA,UAA3CF,EAAmBI,KAAK,eAC1BH,EAAUH,SAAS,UAGnBG,EAAUI,YAAY,eAKzB,CAAAlB,IAAA,mBAAAC,MACA,WACC,IAAIE,EAAMC,EAAEL,KAAKF,KAGjBO,EAAEe,QAAQJ,GAAG,UAAU,WAClBK,IAAMC,QAAQ,QACdjB,EAAEe,QAAQG,YAAc,IAC1BnB,EAAIQ,SALgB,gBAOpBR,EAAIe,YAPgB,oBAYvBd,EAAEe,QAAQJ,GAAG,UAAU,WACnBK,IAAMC,QAAQ,OAChBlB,EAAIe,YAdiB,wB,0FA3CF,I,w0BCNvB,IAEMvB,EAAK,sBAIE4B,EAAiB,WAG5B,O,EAFD,SAAAA,EAAY1B,I,4FAAKC,CAAA,KAAAyB,GAChBxB,KAAKF,IAAMA,I,EACX,EAAAG,IAAA,OAAAC,MAED,WACCF,KAAKG,mBAEL,IAAMC,EAAMC,EAAEL,KAAKF,KACfQ,EAAoBF,EAAIG,KAAKX,EAAG,wBAC9BY,EAAcJ,EAAIG,KAAKX,EAAG,cAGhC,IAAKU,EAAkBG,OAAQ,CAC9B,IAAIC,EAAaN,EAAIG,KAAKX,EAAG,YAC1Bc,EAAWD,SACbH,EAAoBI,EAAWC,GAAG,IAChBC,SAAS,eAI1BN,GAAmBE,EAAYK,KAAMP,EAAkBO,QAE1D,IAAIC,EAAqBV,EAAIG,KAAK,sBAC9BQ,EAAYX,EAAIG,KAAKX,EAAG,cAE5BmB,EAAUC,GAAG,SAAS,WACrBF,EAAmBG,QAAQ,2BAA4B,OAGxDb,EAAIY,GAAG,wCAAwC,WACA,UAA3CF,EAAmBI,KAAK,eAC1BH,EAAUH,SAAS,UAGnBG,EAAUI,YAAY,eAKzB,CAAAlB,IAAA,mBAAAC,MACA,WACC,IAAIE,EAAMC,EAAEL,KAAKF,KAGjBO,EAAEe,QAAQJ,GAAG,UAAU,WAClBK,IAAMC,QAAQ,QACdjB,EAAEe,QAAQG,YAAc,IAC1BnB,EAAIQ,SALgB,gBAOpBR,EAAIe,YAPgB,oBAYvBd,EAAEe,QAAQJ,GAAG,UAAU,WACnBK,IAAMC,QAAQ,OAChBlB,EAAIe,YAdiB,wB,0FA3CK,I","file":"70.js","sourcesContent":["const NS = 'SiteFooter';\nconst CLS = 'siteFooter';\nconst WG = '.' + CLS + '-';\n\nimport utils from '../utils';\n\nexport class SiteFooter {\n\tconstructor($el) {\n\t\tthis.$el = $el;\n\t}\n\n\tinit() {\n\t\tthis.showButtonFooter();\n\n\t\tconst $wg = $(this.$el);\n\t\tlet $selectedLangItem = $wg.find(WG+'langItem.is-selected');\n\t\tconst $langToggle = $wg.find(WG+'langToggle');\n\n\t\t// if none selected picks first one\n\t\tif (!$selectedLangItem.length) {\n\t\t\tlet $langItems = $wg.find(WG+'langItem');\n\t\t\tif($langItems.length) {\n\t\t\t\t$selectedLangItem = $langItems.eq(0);\n\t\t\t\t$selectedLangItem.addClass('is-selected');\n\t\t\t}\n\t\t}\n\n\t\tif($selectedLangItem) $langToggle.text( $selectedLangItem.text() );\n\n\t\tlet $siteFooterSiteMap = $wg.find('.siteFooterSitemap');\n\t\tlet $linkMore = $wg.find(WG+'link--more');\n\n\t\t$linkMore.on('click', () => {\n\t\t\t$siteFooterSiteMap.trigger('siteFooterSitemap.toggle', {});\n\t\t});\n\n\t\t$wg.on('siteFooter.sitemapButton.toggleClass', () => {\n\t\t\tif($siteFooterSiteMap.attr('data-closed') === 'false') {\n\t\t\t\t$linkMore.addClass(`active`);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$linkMore.removeClass(`active`);\n\t\t\t}\n\t\t});\n\t}\n\n\t// button share, back to top, and reading tab will show on scroll\n\tshowButtonFooter() {\n\t\tlet $wg = $(this.$el);\n\t\tconst clsHasScrolled = 'has-scrolled';\n\n\t\t$(window).on('scroll', () => {\n\t\t\tif(!utils.checkBP('tp')) {\n\t\t\t\tif($(window).scrollTop() > 100) {\n\t\t\t\t\t$wg.addClass(clsHasScrolled);\n\t\t\t\t} else {\n\t\t\t\t\t$wg.removeClass(clsHasScrolled);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t$(window).on('resize', () => {\n\t\t\tif(utils.checkBP('tp')) {\n\t\t\t\t$wg.removeClass(clsHasScrolled);\n\t\t\t}\n\t\t});\n\t}\n}\n","const NS = 'SiteFooterWoolLab';\nconst CLS = 'siteFooterWoolLab';\nconst WG = '.' + CLS + '-';\n\nimport utils from '../utils';\n\nexport class SiteFooterWoolLab {\n\tconstructor($el) {\n\t\tthis.$el = $el;\n\t}\n\n\tinit() {\n\t\tthis.showButtonFooter();\n\n\t\tconst $wg = $(this.$el);\n\t\tlet $selectedLangItem = $wg.find(WG+'langItem.is-selected');\n\t\tconst $langToggle = $wg.find(WG+'langToggle');\n\n\t\t// if none selected picks first one\n\t\tif (!$selectedLangItem.length) {\n\t\t\tlet $langItems = $wg.find(WG+'langItem');\n\t\t\tif($langItems.length) {\n\t\t\t\t$selectedLangItem = $langItems.eq(0);\n\t\t\t\t$selectedLangItem.addClass('is-selected');\n\t\t\t}\n\t\t}\n\n\t\tif($selectedLangItem) $langToggle.text( $selectedLangItem.text() );\n\n\t\tlet $siteFooterSiteMap = $wg.find('.siteFooterSitemap');\n\t\tlet $linkMore = $wg.find(WG+'link--more');\n\n\t\t$linkMore.on('click', () => {\n\t\t\t$siteFooterSiteMap.trigger('siteFooterSitemap.toggle', {});\n\t\t});\n\n\t\t$wg.on('siteFooter.sitemapButton.toggleClass', () => {\n\t\t\tif($siteFooterSiteMap.attr('data-closed') === 'false') {\n\t\t\t\t$linkMore.addClass(`active`);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$linkMore.removeClass(`active`);\n\t\t\t}\n\t\t});\n\t}\n\n\t// button share, back to top, and reading tab will show on scroll\n\tshowButtonFooter() {\n\t\tlet $wg = $(this.$el);\n\t\tconst clsHasScrolled = 'has-scrolled';\n\n\t\t$(window).on('scroll', () => {\n\t\t\tif(!utils.checkBP('tp')) {\n\t\t\t\tif($(window).scrollTop() > 100) {\n\t\t\t\t\t$wg.addClass(clsHasScrolled);\n\t\t\t\t} else {\n\t\t\t\t\t$wg.removeClass(clsHasScrolled);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t$(window).on('resize', () => {\n\t\t\tif(utils.checkBP('tp')) {\n\t\t\t\t$wg.removeClass(clsHasScrolled);\n\t\t\t}\n\t\t});\n\t}\n}\n"],"sourceRoot":""}