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EANwBA,IAChB+B,OAAOqH,sBAA0B5E,SAAS6E,cAC9CrJ,EAAGqC,UAAUI,IAAI,OACnB,ECHe,EAAC6G,EAAK,YASrB9E,SAASpC,iBAAiB,oBAAoB,KAP5CkH,IAWKvH,OAAOwH,iBAWK,IAAIC,kBATHC,IAChB,IAAK,IAAIvH,EAAI,EAAGwH,EAAMD,EAAc3I,OAAQoB,EAAIwH,EAAKxH,IACnD,GAA8B,cAA1BuH,EAAcvH,GAAGyH,KAAsB,CAX/CL,IAaM,KACF,CACF,IAMOM,QAAQpF,SAASqF,eAAe,kBAF1B,CAAEC,WAAW,EAAMC,SAAS,GAEwB,IAClE,EAAM,ECOX,EAXmB,KACjB,EAAW,EAAW,mBACtB,EAAW,EAAgB,QAC3B,EAAW,EAAY,gBACvB,EAAW,EAAc,iBAAiB,G","sources":["webpack:///../node_modules/a11y-accordion-tabs/a11y-accordion-tabs.js","webpack:///../node_modules/dom-select/index.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///./stories/components/accordion-tabs/accordion-tabs.init.js","webpack:///./stories/components/global-header/global-header.init.js","webpack:///./stories/blocks/menu-toggle/menu-toggle.init.js","webpack:///./js/lib/initModule.js","webpack:///./js/lib/detectIE11.js","webpack:///./js/lib/domReady.js","webpack:///./js/browser.js"],"sourcesContent":["/*\n* Accessible AccordionTabs, by Matthias Ott (@m_ott)\n*\n* Based on the work of @stowball (https://codepen.io/stowball/pen/xVWwWe)\n*\n*/\n(function () {\n\n 'use strict';\n\n function AccordionTabs (el, options) {\n\n if (!el) {\n return;\n }\n\n this.el = el;\n this.tabTriggers = this.el.getElementsByClassName('js-tabs-trigger');\n this.tabPanels = this.el.getElementsByClassName('js-tabs-panel');\n this.accordionTriggers = this.el.getElementsByClassName('js-accordion-trigger');\n\n this.options = this._extend({\n breakpoint: 640,\n tabsAllowed: true,\n selectedTab: 0,\n startCollapsed: false\n }, options);\n\n if(el.getAttribute('data-tabs-allowed') == \"true\"){\n this.options.tabsAllowed = true;\n } else if (el.getAttribute('data-tabs-allowed') == \"false\") {\n this.options.tabsAllowed = false;\n }\n\n if(el.getAttribute('data-breakpoint')){\n this.options.breakpoint = parseInt(el.getAttribute('data-breakpoint'));\n }\n\n if(el.getAttribute('data-selected-tab')){\n this.options.selectedTab = parseInt(el.getAttribute('data-selected-tab'));\n }\n\n if(el.getAttribute('data-start-collapsed') == \"true\"){\n this.options.startCollapsed = true;\n } else if (el.getAttribute('data-start-collapsed') == \"false\") {\n this.options.startCollapsed = false;\n }\n\n if (this.tabTriggers.length === 0 || this.tabTriggers.length !== this.tabPanels.length) {\n return;\n }\n\n this._init();\n }\n\n AccordionTabs.prototype._init = function () {\n\n var _this = this;\n\n this.tabTriggersLength = this.tabTriggers.length;\n this.accordionTriggersLength = this.accordionTriggers.length;\n this.selectedTab = 0;\n this.prevSelectedTab = null;\n this.clickListener = this._clickEvent.bind(this);\n this.keydownListener = this._keydownEvent.bind(this);\n this.keys = {\n prev: 37,\n next: 39,\n space: 32,\n enter: 13\n };\n\n if(window.innerWidth >= this.options.breakpoint && this.options.tabsAllowed) {\n this.isAccordion = false;\n } else {\n this.isAccordion = true;\n }\n\n for (var i = 0; i < this.tabTriggersLength; i++) {\n this.tabTriggers[i].index = i;\n this.tabTriggers[i].addEventListener('click', this.clickListener, false);\n this.tabTriggers[i].addEventListener('keydown', this.keydownListener, false);\n\n if (this.tabTriggers[i].classList.contains('is-selected')) {\n this.selectedTab = i;\n }\n\n this._hide(i);\n }\n\n for (var i = 0; i < this.accordionTriggersLength; i++) {\n this.accordionTriggers[i].index = i;\n this.accordionTriggers[i].addEventListener('click', this.clickListener, false);\n this.accordionTriggers[i].addEventListener('keydown', this.keydownListener, false);\n\n if (this.accordionTriggers[i].classList.contains('is-selected')) {\n this.selectedTab = i;\n }\n }\n\n if (!isNaN(this.options.selectedTab)) {\n this.selectedTab = this.options.selectedTab < this.tabTriggersLength ? this.options.selectedTab : this.tabTriggersLength - 1;\n }\n\n this.el.classList.add('is-initialized');\n if (this.options.tabsAllowed) {\n this.el.classList.add('tabs-allowed');\n }\n\n // If the accordion should not start collapsed, open the first element\n if(!this.options.startCollapsed || !this.isAccordion){\n this.selectTab(this.selectedTab, false);\n }\n\n var resizeTabs = this._debounce(function() {\n // This gets delayed for performance reasons\n if(window.innerWidth >= _this.options.breakpoint && _this.options.tabsAllowed) {\n _this.isAccordion = false;\n if (_this.options.tabsAllowed) {\n _this.el.classList.add('tabs-allowed');\n }\n _this.selectTab(_this.selectedTab);\n } else {\n _this.isAccordion = true;\n _this.el.classList.remove('tabs-allowed');\n if(!_this.options.startCollapsed){\n _this.selectTab(_this.selectedTab);\n }\n }\n\n }, 50);\n\n window.addEventListener('resize', resizeTabs);\n\n };\n\n AccordionTabs.prototype._clickEvent = function (e) {\n\n e.preventDefault();\n\n var closestTrigger = this._getClosest(e.target, '.js-tabs-trigger');\n var closestTab = 0;\n\n if (closestTrigger == null) {\n closestTrigger = this._getClosest(e.target, '.js-accordion-trigger');\n closestTab = this._getClosest(closestTrigger, '.js-tabs-panel');\n this.isAccordion = true;\n } else {\n this.isAccordion = false;\n }\n\n var targetIndex = e.target.index != null ? e.target.index : closestTab.index;\n\n if (targetIndex === this.selectedTab && !this.isAccordion) {\n return;\n }\n\n this.selectTab(targetIndex, true);\n };\n\n AccordionTabs.prototype._keydownEvent = function (e) {\n\n var targetIndex;\n\n if (e.keyCode === this.keys.prev || e.keyCode === this.keys.next || e.keyCode === this.keys.space || e.keyCode === this.keys.enter) {\n e.preventDefault();\n }\n else {\n return;\n }\n\n if (e.keyCode === this.keys.prev && e.target.index > 0 && !this.isAccordion) {\n targetIndex = e.target.index - 1;\n }\n else if (e.keyCode === this.keys.next && e.target.index < this.tabTriggersLength - 1 && !this.isAccordion) {\n targetIndex = e.target.index + 1;\n }\n else if (e.keyCode === this.keys.space || e.keyCode === this.keys.enter) {\n targetIndex = e.target.index;\n }\n else {\n return;\n }\n\n this.selectTab(targetIndex, true);\n };\n\n AccordionTabs.prototype._show = function (index, userInvoked) {\n\n this.tabPanels[index].removeAttribute('tabindex');\n\n this.tabTriggers[index].removeAttribute('tabindex');\n this.tabTriggers[index].classList.add('is-selected');\n this.tabTriggers[index].setAttribute('aria-selected', true);\n\n this.accordionTriggers[index].setAttribute('aria-expanded', true);\n\n var panelContent = this.tabPanels[index].getElementsByClassName(\"content\")[0];\n panelContent.setAttribute('aria-hidden', false);\n panelContent.classList.remove('is-hidden');\n panelContent.classList.add('is-open');\n\n this.tabPanels[index].classList.remove('is-hidden');\n this.tabPanels[index].classList.add('is-open');\n\n if (userInvoked) {\n this.tabTriggers[index].focus();\n }\n };\n\n AccordionTabs.prototype._hide = function (index) {\n\n this.tabTriggers[index].classList.remove('is-selected');\n this.tabTriggers[index].setAttribute('aria-selected', false);\n this.tabTriggers[index].setAttribute('tabindex', -1);\n\n this.accordionTriggers[index].setAttribute('aria-expanded', false);\n\n var panelContent = this.tabPanels[index].getElementsByClassName(\"content\")[0];\n panelContent.setAttribute('aria-hidden', true);\n panelContent.classList.remove('is-open');\n panelContent.classList.add('is-hidden');\n\n this.tabPanels[index].classList.remove('is-open');\n this.tabPanels[index].classList.add('is-hidden');\n this.tabPanels[index].setAttribute('tabindex', -1);\n };\n\n AccordionTabs.prototype.selectTab = function (index, userInvoked) {\n\n if (index === null) {\n if(this.isAccordion) {\n return;\n } else {\n index = 0;\n }\n }\n\n if(!this.tabPanels[index].classList.contains('is-hidden') && userInvoked) {\n\n if (index === this.selectedTab) {\n this.selectedTab = null;\n } else {\n this.selectedTab = null;\n this.prevSelectedTab = index;\n }\n\n this._hide(index);\n\n return;\n }\n\n if (this.isAccordion) {\n\n this.prevSelectedTab = this.selectedTab;\n this.selectedTab = index;\n\n } else {\n if (this.prevSelectedTab === null || !this.isAccordion) {\n for (var i = 0; i < this.tabTriggersLength; i++) {\n if (i !== index) {\n this._hide(i);\n }\n }\n }\n else {\n this._hide(this.selectedTab);\n }\n\n this.prevSelectedTab = this.selectedTab;\n this.selectedTab = index;\n }\n\n this._show(this.selectedTab, userInvoked);\n\n };\n\n AccordionTabs.prototype.destroy = function () {\n\n for (var i = 0; i < this.tabTriggersLength; i++) {\n this.tabTriggers[i].classList.remove('is-selected');\n this.tabTriggers[i].removeAttribute('aria-selected');\n this.tabTriggers[i].removeAttribute('tabindex');\n\n this.tabPanels[i].classList.remove('is-hidden');\n this.tabPanels[i].removeAttribute('aria-hidden');\n this.tabPanels[i].removeAttribute('tabindex');\n\n this.tabTriggers[i].removeEventListener('click', this.clickListener, false);\n this.tabTriggers[i].removeEventListener('keydown', this.keydownListener, false);\n\n delete this.tabTriggers[i].index;\n }\n\n this.el.classList.remove('is-initialized');\n };\n\n /**\n * Get the closest matching element up the DOM tree.\n * @private\n * @param {Element} elem Starting element\n * @param {String} selector Selector to match against\n * @return {Boolean|Element} Returns null if not match found\n */\n AccordionTabs.prototype._getClosest = function ( elem, selector ) {\n\n // Element.matches() polyfill\n if (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.oMatchesSelector ||\n Element.prototype.webkitMatchesSelector ||\n function(s) {\n var matches = (this.document || this.ownerDocument).querySelectorAll(s),\n i = matches.length;\n while (--i >= 0 && matches.item(i) !== this) {}\n return i > -1;\n };\n }\n\n // Get closest match\n for ( ; elem && elem !== document; elem = elem.parentNode ) {\n if ( elem.matches( selector ) ) return elem;\n }\n\n return null;\n\n };\n\n // Pass in the objects to merge as arguments.\n // For a deep extend, set the first argument to `true`.\n AccordionTabs.prototype._extend = function () {\n\n // Variables\n var extended = {};\n var deep = false;\n var i = 0;\n var length = arguments.length;\n\n // Check if a deep merge\n if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) {\n deep = arguments[0];\n i++;\n }\n\n // Merge the object into the extended object\n var merge = function (obj) {\n for ( var prop in obj ) {\n if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) {\n // If deep merge and property is an object, merge properties\n if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) {\n extended[prop] = extend( true, extended[prop], obj[prop] );\n } else {\n extended[prop] = obj[prop];\n }\n }\n }\n };\n\n // Loop through each object and conduct a merge\n for ( ; i < length; i++ ) {\n var obj = arguments[i];\n merge(obj);\n }\n\n return extended;\n\n };\n\n // Returns a function, that, as long as it continues to be invoked, will not\n // be triggered. The function will be called after it stops being called for\n // N milliseconds. If `immediate` is passed, trigger the function on the\n // leading edge, instead of the trailing.\n AccordionTabs.prototype._debounce = function (func, wait, immediate) {\n var timeout;\n return function() {\n var context = this, args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) { func.apply(context, args); };\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) { func.apply(context, args) };\n };\n };\n\n var slice = Array.prototype.slice;\n\n function $(expr, con) {\n return typeof expr === \"string\" ? (con || document).querySelector(expr) : expr || null;\n }\n\n function $$(expr, con) {\n return slice.call((con || document).querySelectorAll(expr));\n }\n\n // Initialization\n\n function init() {\n $$(\".js-tabs\").forEach(function (input) {\n new AccordionTabs(input);\n });\n }\n\n // Are we in a browser? Check for Document constructor\n if (typeof Document !== \"undefined\") {\n // DOM already loaded?\n if (document.readyState !== \"loading\") {\n init();\n }\n else {\n // Wait for it\n document.addEventListener(\"DOMContentLoaded\", init);\n }\n }\n\n // Export on self when in a browser\n if (typeof self !== \"undefined\") {\n self.AccordionTabs = AccordionTabs;\n }\n\n // Expose as a CJS module\n if (typeof module === \"object\" && module.exports) {\n module.exports = AccordionTabs;\n }\n\n return AccordionTabs;\n\n})();\n","module.exports = one;\nmodule.exports.all = all;\n\nfunction one (selector, parent) {\n parent || (parent = document);\n return parent.querySelector(selector);\n}\n\nfunction all (selector, parent) {\n parent || (parent = document);\n var selection = parent.querySelectorAll(selector);\n return Array.prototype.slice.call(selection);\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","import AccordionTabs from 'a11y-accordion-tabs';\n\nexport const Accordion = (el) => {\n const addEvents = () => {\n new AccordionTabs(el);\n }\n\n const init = () => {\n addEvents();\n };\n\n init();\n};\n\nexport default Accordion;\n","import select from 'dom-select';\n\nexport const GlobalHeader = (el) => {\n const ui = {\n el,\n body: select('body'),\n pageshell: select('.pageshell'),\n searchInput: select('.global-nav__search .input'),\n globalNav: select('.global-nav'),\n toggles: select.all('.nav-item', document),\n };\n\n const handleBodyScroll = () => {\n let lastScrollTop = 0;\n\n window.addEventListener(\"scroll\", function(){ \n let st = window.pageYOffset || document.documentElement.scrollTop; \n if (st > lastScrollTop){\n // down scroll code\n if (st > 60) {\n ui.pageshell.classList.add('scrolled-down');\n ui.pageshell.classList.remove('scrolled-up');\n }\n } else {\n // up scroll code\n ui.pageshell.classList.add('scrolled-up');\n ui.pageshell.classList.remove('scrolled-down');\n\n if (st === 0) {\n ui.pageshell.classList.remove('scrolled-down');\n ui.pageshell.classList.remove('scrolled-up');\n }\n }\n // For Mobile or negative scrolling\n lastScrollTop = st <= 0 ? 0 : st;\n }, \n false\n );\n }\n\n const addEvents = () => {\n handleBodyScroll();\n };\n\n const init = () => {\n addEvents();\n };\n\n init();\n};\n\nexport default GlobalHeader;\n","import select from 'dom-select';\n\nexport const MenuToggle = (el) => {\n const ui = {\n el,\n nav: select('.js-navigation', document),\n body: select('body', document),\n };\n\n // console.log(ui);\n\n const handleToggle = () => {\n ui.el.classList.toggle('is-active');\n ui.body.classList.toggle('nav-active');\n\n try {\n ui.nav.classList.toggle('is-active');\n ui.body.classList.toggle('nav-open');\n } catch {\n console.log('global-header not found');\n }\n };\n\n const addEvents = () => {\n ui.el.addEventListener('click', () => {\n handleToggle();\n });\n }\n\n const init = () => {\n addEvents();\n };\n\n init();\n};\n\nexport default MenuToggle;\n","import select from 'dom-select';\n\nconst initModule = (method, selector) => {\n select.all(selector, document)\n .forEach((el) => {\n method(el);\n });\n};\n\nexport default initModule;\n","const addIeBodyClass = (el) => {\n if (!!window.MSInputMethodContext && !!document.documentMode) {\n el.classList.add('ie11');\n }\n};\n\nexport default addIeBodyClass;\n","const domReady = (cb = () => {}) => {\n function runOnInit() {\n cb();\n }\n\n function runOnPageChange() {\n cb();\n }\n\n document.addEventListener('DOMContentLoaded', () => {\n runOnInit();\n\n // we only need to run callback() when in Storybook\n if (!window.isTurnStorybook) return;\n\n const callback = (mutationsList) => {\n for (let i = 0, len = mutationsList.length; i < len; i++) {\n if (mutationsList[i].type === 'childList') {\n runOnPageChange();\n break;\n }\n }\n };\n\n const observer = new MutationObserver(callback);\n const config = { childList: true, subtree: false };\n\n observer.observe(document.getElementById('storybook-root'), config);\n }, false);\n};\n\nexport default domReady;\n","import Accordion from '../stories/components/accordion-tabs/accordion-tabs.init';\nimport GlobalHeader from '../stories/components/global-header/global-header.init';\nimport menuToggle from '../stories/blocks/menu-toggle/menu-toggle.init';\n\nimport domReady from './lib/domReady';\nimport initModule from './lib/initModule';\nimport addIeBodyClass from './lib/detectIE11';\n\n// Intialize scripts here requiring DOM access.\n//\n// Any modules imported here should export a function\n// that takes a node as its only parameter.\n// Import the module then initialize it below inside\n// domScripts(), calling initModule() and passing in\n// the function and a selector that aligns with the element\n// you want to pass into the module.\n// initModule() calls the method on each instance\n// of the selector passed, so your script can assume\n// it is working on a unique DOM node.\n//\n// example:\n// import coolThing from '../ui/blocks/CoolThing/cool-thing.init';\n// initModule(coolThing, '.cool-thing');\n\nconst domScripts = () => {\n initModule(Accordion, '.accordion-tabs');\n initModule(addIeBodyClass, 'body');\n initModule(menuToggle, '.menu-toggle');\n initModule(GlobalHeader, '.global-header');\n};\n\n// domReady ensures our scripts fire inside Storybook\n// even when navigating component to component,\n// calling the passed function on DOMContentLoaded\n// and each time the page changes, using MutationObserver\ndomReady(domScripts);\n"],"names":["AccordionTabs","el","options","this","tabTriggers","getElementsByClassName","tabPanels","accordionTriggers","_extend","breakpoint","tabsAllowed","selectedTab","startCollapsed","getAttribute","parseInt","length","_init","prototype","_this","tabTriggersLength","accordionTriggersLength","prevSelectedTab","clickListener","_clickEvent","bind","keydownListener","_keydownEvent","keys","prev","next","space","enter","window","innerWidth","isAccordion","i","index","addEventListener","classList","contains","_hide","isNaN","add","selectTab","resizeTabs","_debounce","remove","e","preventDefault","closestTrigger","_getClosest","target","closestTab","targetIndex","keyCode","_show","userInvoked","removeAttribute","setAttribute","panelContent","focus","destroy","removeEventListener","elem","selector","Element","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","s","document","ownerDocument","querySelectorAll","item","parentNode","extended","deep","arguments","Object","toString","call","merge","obj","prop","hasOwnProperty","extend","func","wait","immediate","timeout","context","args","callNow","clearTimeout","setTimeout","apply","slice","Array","init","forEach","input","Document","readyState","self","module","exports","parent","querySelector","all","selection","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","defineProperty","enumerable","get","ui","body","select","pageshell","searchInput","globalNav","toggles","handleBodyScroll","lastScrollTop","st","pageYOffset","documentElement","scrollTop","nav","handleToggle","toggle","console","log","method","MSInputMethodContext","documentMode","cb","isTurnStorybook","MutationObserver","mutationsList","len","type","observe","getElementById","childList","subtree"],"sourceRoot":""}