{"version":3,"sources":["webpack:///./widgets/siteHeader.js","webpack:///./widgets/siteHeaderWoolLab.js","webpack:///./loadWg/searchBar.js"],"names":["WG","$win","$","window","$doc","document","SiteHeader","$el","_classCallCheck","this","key","value","setSiteHeader","setSearchBar","setSticky","addClass","onResizeAdjustHeaderContentWidth","setHeaderBottomFix","setupMegaMenu","setupSubMenu","headerWrap","querySelector","firstElement","children","firstEleHeight","clientHeight","className","indexOf","style","marginBottom","top","resize","addTopSpacing","wg","navBarToggle","find","megaMenu","mmBackBtn","on","e","toggleClass","removeClass","loadSearchBar","body","then","init","stickyToggle","sticky","stickyWrapper","scrollElement","stickyHeight","outerHeight","stickyTop","offset","scrollTop","height","setTimeout","each","before","duration","arguments","length","undefined","nav","content","logo","logoWidth","width","paddingForLogoLeftSide","paddingForLogoBothSides","logoDisplayedArea","logoWrapperWidth","css","overflow","utils","getWindowWidth","animate","left","stop","_this2","isOnMobile","hasClass","expandHeader","minifyHeader","_this","$logoHit","$homePage","scrollPercent","scrollPercentRounded","Math","round","mainOffset","trigger","This","hide","$hb","preventDefault","stopPropagation","megaMenuContent","slideDown","winBottom","megaMenuContentOffset","megaMenuContentOuterHeight","posDiff","scrollAdjust","mainContent","padTop","concat","$userMenu","setInterval","transformValues","transform","transformArr","replace","split","x","y","z","$wg","currentList","closest","not","prev","show","SiteHeaderWoolLab","setSiteHeaderWoolLab","$parentEl","isList","SearchBar","$wgCol","querySelectorAll","instances","Array","from","forEach","i","push","error","Promise","reject"],"mappings":"m3BAIA,IAEMA,EAAK,eASLC,EAAOC,EAAEC,QACTC,EAAOF,EAAEG,UAEFC,EAAU,WAIrB,O,EAHD,SAAAA,EAAYC,I,4FAAKC,CAAA,KAAAF,GAEhBG,KAAKF,IAAML,EAAEK,K,EACb,EAAAG,IAAA,OAAAC,MAED,WAECF,KAAKG,gBACLH,KAAKI,eACLJ,KAAKK,YACLZ,EAAE,eAAea,SAAS,YAG1BN,KAAKO,mCACLP,KAAKQ,qBACLR,KAAKS,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,GAAK,OAAIA,EAAM,0DApBhBC,QAAQC,OAAO,oDARxB","file":"72.js","sourcesContent":["/* eslint-disable no-unused-vars */\n/* eslint-disable max-len */\n/* eslint-disable no-invalid-this */\n// CONSTANTS are all caps.\nconst NS = 'SiteHeader';\nconst CLS = 'siteHeader';\nconst WG = '.' + CLS + '-';\n\n// Import stuff here if you need to or even better to import them dynamically\n// for ex. of dynamic import check out src/scripts/loadWg/siteHeader.js using Webpack dynamic imports as chunks.\n// import $ from 'jquery'\n\nimport {loadSearchBar} from '../loadWg/searchBar';\nimport utils from '../utils';\n\nconst $win = $(window);\nconst $doc = $(document);\n\nexport class SiteHeader {\n\tconstructor($el) {\n\t\t// $el is the widget node return by the loadSiteHeader function\n\t\tthis.$el = $($el);\n\t}\n\n\tinit() {\n\t\t// this.checkMinified();\n\t\tthis.setSiteHeader();\n\t\tthis.setSearchBar();\n\t\tthis.setSticky();\n\t\t$('.siteHeader').addClass('is-ready');\n\t\t// this.setAnimations();\n\t\t// this.onScrollMinify();\n\t\tthis.onResizeAdjustHeaderContentWidth();\n\t\tthis.setHeaderBottomFix();\n\t\tthis.setupMegaMenu();\n\t\tthis.setupSubMenu();\n\t\t// this.checkAccMenuToggle();\n\t}\n\n\tsetHeaderBottomFix() {\n\t\tconst headerWrap = document.querySelector('.homePage-headerWrap');\n\n\t\tif (headerWrap) {\n\t\t\tconst firstElement = document.querySelector('#mainContent').children[0];\n\t\t\tlet firstEleHeight = firstElement.clientHeight + 'px';\n\n\t\t\tif (firstElement.className.indexOf('homeHero') === -1) {\n\t\t\t\tdocument.querySelector('#mainContent').children[0].style.marginBottom = '60px';\n\t\t\t}\n\n\t\t\theaderWrap.style.top = firstEleHeight;\n\t\t\t$(window).resize(function() {\n\t\t\t\tfirstEleHeight = firstElement.clientHeight + 'px';\n\t\t\t\theaderWrap.style.top = firstEleHeight;\n\t\t\t});\n\t\t} else {\n\t\t\tthis.addTopSpacing();\n\t\t}\n\t}\n\n\tsetSiteHeader() {\n\t\t// Add Some logic here\n\t\tconst wg = this.$el;\n\t\tconst navBarToggle = this.$el.find(WG + 'navbarToggle');\n\t\tconst megaMenu = this.$el.find(WG + 'megaMenu');\n\t\tconst mmBackBtn = this.$el.find(WG + 'mmBackBtn');\n\n\t\tnavBarToggle.on('click', function(e) {\n\t\t\twg.toggleClass('is-mbExpanded');\n\t\t\t$(this).toggleClass('is-collapsed');\n\t\t});\n\n\t\tmmBackBtn.on('click', function(e) {\n\t\t\t// e.stopPropagation();\n\t\t\tmegaMenu.removeClass('is-megaMenuOpen');\n\t\t});\n\t}\n\n\tsetSearchBar() {\n\t\tloadSearchBar(document.body).then((wg) => {\n\t\t\twg ? wg.init() : '';\n\t\t});\n\t}\n\n\tsetSticky() {\n\t\t// let This = this;\n\t\tlet stickyToggle = function(sticky, stickyWrapper, scrollElement) {\n\t\t\tlet stickyHeight = sticky.outerHeight();\n\t\t\tlet stickyTop = stickyWrapper.offset().top;\n\n\t\t\tif (scrollElement.scrollTop() >= stickyTop) {\n\t\t\t\tstickyWrapper.height(stickyHeight);\n\t\t\t\tsticky.addClass('is-sticky');\n\t\t\t} else {\n\t\t\t\tsticky.removeClass('is-sticky');\n\t\t\t\tstickyWrapper.height('auto');\n\t\t\t}\n\n\t\t\t// on mobile, always stick?\n\t\t\t// if (This.isOnMobile()) {\n\t\t\t// \tstickyWrapper.height(stickyHeight);\n\t\t\t// \tsticky.addClass('is-sticky');\n\t\t\t// }\n\t\t};\n\n\t\t// needs to timeout to avoid double call (which happens intermittently)\n\t\tsetTimeout(() => {\n\t\t\t// Find all data-toggle=\"sticky-onscroll\" elements\n\t\t\t$('[data-toggle=\"sticky-onscroll\"]').each(function() {\n\t\t\t\tlet sticky = $(this);\n\t\t\t\tlet stickyWrapper = $('