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C,GAAK,kBAAoBmF,EAASE,QAAQtH,IAAK,gBAC9C,MAAM,IAAImH,MAAO,uBAGlB,MAAMI,QAAaH,EAASG,OAE5B,IAAOA,EACN,MAAM,IAAIJ,MAAO,6BAGlB,MACMrO,GADW,IAAI0O,WACGC,gBAAiBF,EAAM,iBACzCG,EAAWrG,MAAMC,KAAMxI,EAAIyI,iBAAkB,WAAayD,KAAK2C,GAAUA,EAAO9N,WAAW+N,YAAaD,KACxGE,EAAW/O,EAAI6I,cAAe,OAEpC,CACC,SACA,QACA,QACA,QACA,aACCrE,SAASwK,IACV,GAAK3G,EAAI4G,aAAcD,GACtB,OAASA,GACR,IAAK,YAEJD,EAAIpJ,UAAUC,IAAKyC,EAAI1C,WACxB,MACA,IAAK,QAEJ0C,EAAI4G,aAAc,SAAUnJ,MAAO,KAAMtB,SAAW0K,IACnD,MAAQ/H,EAAMK,GAAU0H,EAAKpJ,MAAM,KAE9BqB,GAAQK,IACZuH,EAAIjG,MAAO3B,GAASK,EACrB,IAEF,MACA,QAECuH,EAAII,aAAcH,EAAW3G,EAAI4G,aAAcD,IAGlD,IAGD3G,EAAItH,WAAWqO,aAAcL,EAAK1G,GAElCuG,EAAQpK,SAASqK,IAChB,MAAMQ,EAAYxP,SAASyP,cAAe,UAC1CD,EAAUE,UAAYV,EAAOU,UAAUC,QAAS,eAAgB,IAAKA,QAAS,SAAU,IACxFnH,EAAItH,WAAW0O,YAAaJ,EAAW,IAGxChH,EAAItH,WAAW+N,YAAazG,EAC7B,CAAE,MAAQqH,GACTC,QAAQD,MAAOA,EAChB,CACD","sources":["webpack://welocalize-theme/./node_modules/headroom.js/dist/headroom.js","webpack://welocalize-theme/webpack/bootstrap","webpack://welocalize-theme/webpack/runtime/define property getters","webpack://welocalize-theme/webpack/runtime/hasOwnProperty shorthand","webpack://welocalize-theme/webpack/runtime/make namespace object","webpack://welocalize-theme/./assets/js/base/_focus-within.js","webpack://welocalize-theme/./assets/js/base/_object-fit-cover.js","webpack://welocalize-theme/./assets/js/base/_tabIndex.js","webpack://welocalize-theme/./assets/js/modules/_masthead.js","webpack://welocalize-theme/./assets/js/scripts.js","webpack://welocalize-theme/./assets/js/base/_throttle.js"],"sourcesContent":["/*!\n * headroom.js v0.12.0 - Give your page some headroom. Hide your header until you need it\n * Copyright (c) 2020 Nick Williams - http://wicky.nillia.ms/headroom.js\n * License: MIT\n */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.Headroom = factory());\n}(this, function () { 'use strict';\n\n function isBrowser() {\n return typeof window !== \"undefined\";\n }\n\n /**\n * Used to detect browser support for adding an event listener with options\n * Credit: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n */\n function passiveEventsSupported() {\n var supported = false;\n\n try {\n var options = {\n // eslint-disable-next-line getter-return\n get passive() {\n supported = true;\n }\n };\n window.addEventListener(\"test\", options, options);\n window.removeEventListener(\"test\", options, options);\n } catch (err) {\n supported = false;\n }\n\n return supported;\n }\n\n function isSupported() {\n return !!(\n isBrowser() &&\n function() {}.bind &&\n \"classList\" in document.documentElement &&\n Object.assign &&\n Object.keys &&\n requestAnimationFrame\n );\n }\n\n function isDocument(obj) {\n return obj.nodeType === 9; // Node.DOCUMENT_NODE === 9\n }\n\n function isWindow(obj) {\n // `obj === window` or `obj instanceof Window` is not sufficient,\n // as the obj may be the window of an iframe.\n return obj && obj.document && isDocument(obj.document);\n }\n\n function windowScroller(win) {\n var doc = win.document;\n var body = doc.body;\n var html = doc.documentElement;\n\n return {\n /**\n * @see http://james.padolsey.com/javascript/get-document-height-cross-browser/\n * @return {Number} the scroll height of the document in pixels\n */\n scrollHeight: function() {\n return Math.max(\n body.scrollHeight,\n html.scrollHeight,\n body.offsetHeight,\n html.offsetHeight,\n body.clientHeight,\n html.clientHeight\n );\n },\n\n /**\n * @see http://andylangton.co.uk/blog/development/get-viewport-size-width-and-height-javascript\n * @return {Number} the height of the viewport in pixels\n */\n height: function() {\n return win.innerHeight || html.clientHeight || body.clientHeight;\n },\n\n /**\n * Gets the Y scroll position\n * @return {Number} pixels the page has scrolled along the Y-axis\n */\n scrollY: function() {\n if (win.pageYOffset !== undefined) {\n return win.pageYOffset;\n }\n\n return (html || body.parentNode || body).scrollTop;\n }\n };\n }\n\n function elementScroller(element) {\n return {\n /**\n * @return {Number} the scroll height of the element in pixels\n */\n scrollHeight: function() {\n return Math.max(\n element.scrollHeight,\n element.offsetHeight,\n element.clientHeight\n );\n },\n\n /**\n * @return {Number} the height of the element in pixels\n */\n height: function() {\n return Math.max(element.offsetHeight, element.clientHeight);\n },\n\n /**\n * Gets the Y scroll position\n * @return {Number} pixels the element has scrolled along the Y-axis\n */\n scrollY: function() {\n return element.scrollTop;\n }\n };\n }\n\n function createScroller(element) {\n return isWindow(element) ? windowScroller(element) : elementScroller(element);\n }\n\n /**\n * @param element EventTarget\n */\n function trackScroll(element, options, callback) {\n var isPassiveSupported = passiveEventsSupported();\n var rafId;\n var scrolled = false;\n var scroller = createScroller(element);\n var lastScrollY = scroller.scrollY();\n var details = {};\n\n function update() {\n var scrollY = Math.round(scroller.scrollY());\n var height = scroller.height();\n var scrollHeight = scroller.scrollHeight();\n\n // reuse object for less memory churn\n details.scrollY = scrollY;\n details.lastScrollY = lastScrollY;\n details.direction = scrollY > lastScrollY ? \"down\" : \"up\";\n details.distance = Math.abs(scrollY - lastScrollY);\n details.isOutOfBounds = scrollY < 0 || scrollY + height > scrollHeight;\n details.top = scrollY <= options.offset[details.direction];\n details.bottom = scrollY + height >= scrollHeight;\n details.toleranceExceeded =\n details.distance > options.tolerance[details.direction];\n\n callback(details);\n\n lastScrollY = scrollY;\n scrolled = false;\n }\n\n function handleScroll() {\n if (!scrolled) {\n scrolled = true;\n rafId = requestAnimationFrame(update);\n }\n }\n\n var eventOptions = isPassiveSupported\n ? { passive: true, capture: false }\n : false;\n\n element.addEventListener(\"scroll\", handleScroll, eventOptions);\n update();\n\n return {\n destroy: function() {\n cancelAnimationFrame(rafId);\n element.removeEventListener(\"scroll\", handleScroll, eventOptions);\n }\n };\n }\n\n function normalizeUpDown(t) {\n return t === Object(t) ? t : { down: t, up: t };\n }\n\n /**\n * UI enhancement for fixed headers.\n * Hides header when scrolling down\n * Shows header when scrolling up\n * @constructor\n * @param {DOMElement} elem the header element\n * @param {Object} options options for the widget\n */\n function Headroom(elem, options) {\n options = options || {};\n Object.assign(this, Headroom.options, options);\n this.classes = Object.assign({}, Headroom.options.classes, options.classes);\n\n this.elem = elem;\n this.tolerance = normalizeUpDown(this.tolerance);\n this.offset = normalizeUpDown(this.offset);\n this.initialised = false;\n this.frozen = false;\n }\n Headroom.prototype = {\n constructor: Headroom,\n\n /**\n * Start listening to scrolling\n * @public\n */\n init: function() {\n if (Headroom.cutsTheMustard && !this.initialised) {\n this.addClass(\"initial\");\n this.initialised = true;\n\n // defer event registration to handle browser\n // potentially restoring previous scroll position\n setTimeout(\n function(self) {\n self.scrollTracker = trackScroll(\n self.scroller,\n { offset: self.offset, tolerance: self.tolerance },\n self.update.bind(self)\n );\n },\n 100,\n this\n );\n }\n\n return this;\n },\n\n /**\n * Destroy the widget, clearing up after itself\n * @public\n */\n destroy: function() {\n this.initialised = false;\n Object.keys(this.classes).forEach(this.removeClass, this);\n this.scrollTracker.destroy();\n },\n\n /**\n * Unpin the element\n * @public\n */\n unpin: function() {\n if (this.hasClass(\"pinned\") || !this.hasClass(\"unpinned\")) {\n this.addClass(\"unpinned\");\n this.removeClass(\"pinned\");\n\n if (this.onUnpin) {\n this.onUnpin.call(this);\n }\n }\n },\n\n /**\n * Pin the element\n * @public\n */\n pin: function() {\n if (this.hasClass(\"unpinned\")) {\n this.addClass(\"pinned\");\n this.removeClass(\"unpinned\");\n\n if (this.onPin) {\n this.onPin.call(this);\n }\n }\n },\n\n /**\n * Freezes the current state of the widget\n * @public\n */\n freeze: function() {\n this.frozen = true;\n this.addClass(\"frozen\");\n },\n\n /**\n * Re-enables the default behaviour of the widget\n * @public\n */\n unfreeze: function() {\n this.frozen = false;\n this.removeClass(\"frozen\");\n },\n\n top: function() {\n if (!this.hasClass(\"top\")) {\n this.addClass(\"top\");\n this.removeClass(\"notTop\");\n\n if (this.onTop) {\n this.onTop.call(this);\n }\n }\n },\n\n notTop: function() {\n if (!this.hasClass(\"notTop\")) {\n this.addClass(\"notTop\");\n this.removeClass(\"top\");\n\n if (this.onNotTop) {\n this.onNotTop.call(this);\n }\n }\n },\n\n bottom: function() {\n if (!this.hasClass(\"bottom\")) {\n this.addClass(\"bottom\");\n this.removeClass(\"notBottom\");\n\n if (this.onBottom) {\n this.onBottom.call(this);\n }\n }\n },\n\n notBottom: function() {\n if (!this.hasClass(\"notBottom\")) {\n this.addClass(\"notBottom\");\n this.removeClass(\"bottom\");\n\n if (this.onNotBottom) {\n this.onNotBottom.call(this);\n }\n }\n },\n\n shouldUnpin: function(details) {\n var scrollingDown = details.direction === \"down\";\n\n return scrollingDown && !details.top && details.toleranceExceeded;\n },\n\n shouldPin: function(details) {\n var scrollingUp = details.direction === \"up\";\n\n return (scrollingUp && details.toleranceExceeded) || details.top;\n },\n\n addClass: function(className) {\n this.elem.classList.add.apply(\n this.elem.classList,\n this.classes[className].split(\" \")\n );\n },\n\n removeClass: function(className) {\n this.elem.classList.remove.apply(\n this.elem.classList,\n this.classes[className].split(\" \")\n );\n },\n\n hasClass: function(className) {\n return this.classes[className].split(\" \").every(function(cls) {\n return this.classList.contains(cls);\n }, this.elem);\n },\n\n update: function(details) {\n if (details.isOutOfBounds) {\n // Ignore bouncy scrolling in OSX\n return;\n }\n\n if (this.frozen === true) {\n return;\n }\n\n if (details.top) {\n this.top();\n } else {\n this.notTop();\n }\n\n if (details.bottom) {\n this.bottom();\n } else {\n this.notBottom();\n }\n\n if (this.shouldUnpin(details)) {\n this.unpin();\n } else if (this.shouldPin(details)) {\n this.pin();\n }\n }\n };\n\n /**\n * Default options\n * @type {Object}\n */\n Headroom.options = {\n tolerance: {\n up: 0,\n down: 0\n },\n offset: 0,\n scroller: isBrowser() ? window : null,\n classes: {\n frozen: \"headroom--frozen\",\n pinned: \"headroom--pinned\",\n unpinned: \"headroom--unpinned\",\n top: \"headroom--top\",\n notTop: \"headroom--not-top\",\n bottom: \"headroom--bottom\",\n notBottom: \"headroom--not-bottom\",\n initial: \"headroom\"\n }\n };\n\n Headroom.cutsTheMustard = isSupported();\n\n return Headroom;\n\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].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\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); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","class FocusWithin {\n\tconstructor(node, className) {\n\t\tthis.node = node;\n\t\tthis.className = className;\n\t\tthis.focused = false;\n\n\t\t// add events with capturing cause focus/blur don't bubble\n\t\tthis.node.addEventListener('focus', this.focus.bind(this), true);\n\t\tthis.node.addEventListener('blur', this.blur.bind(this), true);\n\t}\n\n\ttoggle() {\n\t\treturn this.focused ? this.blur() : this.focus();\n\t}\n\n\tfocus() {\n\t\tthis.focused = true;\n\t\tthis.node.classList.add(this.className);\n\n\t\tthis.node.dispatchEvent(new CustomEvent('site:focus-within:focus'));\n\t}\n\n\tblur() {\n\t\tthis.focused = false;\n\t\tthis.node.classList.remove(this.className);\n\n\t\tthis.node.dispatchEvent(new CustomEvent('site:focus-within:blur'));\n\t}\n}\n\nexport default function ( node, className = 'focus-within' ) {\n\t// pass dom element directly\n\tif ( node instanceof HTMLElement ) {\n\t\treturn new FocusWithin(node, className);\n\t}\n\n\t// pass selector\n\tif ( typeof node === 'string' ) {\n\t\tnode = document.querySelectorAll(node);\n\t}\n\n\t// convert to Array if not an array\n\tif (!Array.isArray(node)) {\n\t\tnode = Array.from(node);\n\t}\n\n\t// convert to FocusWithin objects\n\treturn node.map((n) => new FocusWithin(n, className));\n}\n","/**\n * IE11 Fix to convert object-fit: cover to background-size: cover\n *\n * @param {string|NodeList|Array} nodes\n * @param {string} img the img selector\n * @param {string} position the background position to use\n */\nexport default function objectFitCover( nodes = '.object-fit-cover', img = 'img', position = 'center' ) {\n\tif ( typeof nodes === 'string' ) {\n\t\tnodes = Array.from( document.querySelectorAll( nodes ) );\n\t}\n\n\tif ( ! nodes.length ) {\n\t\treturn;\n\t}\n\n\tfor ( let i = 0, nodesLength = nodes.length; i < nodesLength; i++ ) {\n\t\tlet imgNode = nodes[i].querySelector( img );\n\n\t\tif ( ! imgNode ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tnodes[i].style.backgroundPosition = position;\n\t\tnodes[i].style.backgroundSize = 'cover';\n\t\tnodes[i].style.backgroundImage = `url(${imgNode.currentSrc || imgNode.src})`;\n\t\timgNode.style.display = 'none';\n\t}\n}\n\nif ( document.readyState.match(/complete|loaded/) ) {\n\tobjectFitCover();\n} else {\n\tdocument.addEventListener('DOMContentLoaded', objectFitCover);\n}\n","/**\n * Array of selectors that are tab index capable\n */\nexport const tabCapable = [\n\t'select',\n\t'input',\n\t'textarea',\n\t'button',\n\t'a',\n\t'iframe',\n\t'object',\n\t'embed',\n\t'*[contenteditable]',\n\t'*[tabindex]',\n];\n\n/**\n * Disable nodes tabIndex while saving the previous tabIndex value in node.dataset\n *\n * @param {string} exclude query selector to filter disabling items\n * @param {HTMLElement} scope Defaults to document\n * @returns {array}\n */\nexport function disable( exclude = null, scope = document ) {\n\tscope = scope || document;\n\n\tlet nodes = Array.from( scope.querySelectorAll( tabCapable.join( ', ' ) ) );\n\n\tif ( exclude ) {\n\t\tnodes = nodes.filter( node => ! node.matches( exclude ) && ! node.closest( exclude ) );\n\t}\n\n\tnodes.forEach( node => {\n\t\tif ( node.tabIndex && node.tabIndex !== '-1' ) {\n\t\t\tnode.dataset.tabIndex = node.tabIndex;\n\t\t}\n\n\t\tnode.tabIndex = '-1'\n\t} );\n\n\treturn nodes;\n}\n\n/**\n * Enable nodes tabIndex by restoring a previously saved tabIndex or removing it entirely\n *\n * @param {string} exclude query selector to filter disabling items\n * @param {HTMLElement} scope Defaults to document\n * @returns {array}\n */\nexport function enable( exclude = null, scope = document ) {\n\tlet nodes = Array.from( scope.querySelectorAll( tabCapable.join( ', ' ) ) );\n\n\tif ( exclude ) {\n\t\tnodes = nodes.filter( node => ! node.matches( exclude ) && ! node.closest( exclude ) );\n\t}\n\n\tnodes.forEach( node => {\n\t\tif ( node.dataset.tabIndex ) {\n\t\t\tnode.tabIndex = node.dataset.tabIndex;\n\t\t} else {\n\t\t\tnode.removeAttribute( 'tabIndex' );\n\t\t}\n\t} );\n\n\treturn nodes;\n}\n\nexport default {\n\ttabCapable,\n\tenable,\n\tdisable,\n}\n","import Headroom from 'headroom.js';\nimport { enable, disable } from '../base/_tabIndex.js';\n\nclass MastheadParent {\n\tconstructor(node, controller) {\n\t\tthis.node = node;\n\t\tthis.controller = controller;\n\n\t\tif (!this.node) {\n\t\t\treturn;\n\t\t}\n\n\t\t// stores the timeout id of the enter hover intent\n\t\tthis.enterTimeout = null;\n\n\t\t// stores the timeout of the leave hover intent\n\t\tthis.leaveTimeout = null;\n\n\t\t// is the current item active\n\t\tthis.active = false;\n\n\t\t// reference the direct child link in case we need to preventDefault on click\n\t\tthis.link = this.node.querySelector(':scope > .masthead__link');\n\n\t\t// does this item have a back button on the mobile menu\n\t\tthis.back = this.node.querySelector('.masthead__back');\n\n\t\t// what types of pointer events are 'hoverable'\n\t\tthis.hoverTypes = ['mouse', 'pen'];\n\n\t\t// trigger the enter hover intent depending on the pointer type\n\t\tconst onPointerEnter = (e) => {\n\t\t\tif (this.hoverTypes.includes(e.pointerType) && 'hover' === this.controller.getPointerMode()) {\n\t\t\t\tif (typeof this.leaveTimeout === 'number') {\n\t\t\t\t\twindow.clearTimeout(this.leaveTimeout);\n\t\t\t\t\tthis.leaveTimeout = null;\n\t\t\t\t}\n\n\t\t\t\tthis.enterTimeout = setTimeout(() => this.activate(), this.controller.hoverDelay);\n\t\t\t}\n\t\t};\n\n\t\t// trigger the leave hover intent depending on the pointer type\n\t\tconst onPointerLeave = (e) => {\n\t\t\tif (this.hoverTypes.includes(e.pointerType) && 'hover' === this.controller.getPointerMode()) {\n\t\t\t\tif (typeof this.enterTimeout === 'number') {\n\t\t\t\t\twindow.clearTimeout(this.enterTimeout);\n\t\t\t\t\tthis.enterTimeout = null;\n\t\t\t\t}\n\n\t\t\t\tthis.leaveTimeout = window.setTimeout(() => this.deactivate(), this.controller.hoverDelay);\n\t\t\t}\n\t\t};\n\n\t\t// store the last pointer type on pointerup so we can potentially preventDefault onClick\n\t\tconst onPointerUp = (e) => {\n\t\t\tthis.pointerType = e.pointerType ?? null;\n\t\t};\n\n\t\t// if not in hover mode, or we're not a hoverable type, simply toggle instead of following the link\n\t\tconst onClick = (e) => {\n\t\t\tif ('hover' !== this.controller.getPointerMode() || !this.hoverTypes.includes(this.pointerType)) {\n\t\t\t\te.preventDefault();\n\t\t\t\tthis.toggle();\n\t\t\t}\n\n\t\t\tif (this.pointerType) {\n\t\t\t\tdelete this.pointerType;\n\t\t\t}\n\t\t};\n\n\t\t// when a element outside of this node is focused, close this menu\n\t\tconst onFocus = () => {\n\t\t\tlet target = document.activeElement;\n\n\t\t\twhile (target && target.parentNode) {\n\t\t\t\tif (target === this.node) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttarget = target.parentNode;\n\t\t\t}\n\n\t\t\tthis.deactivate();\n\t\t};\n\n\t\tthis.node.addEventListener('pointerenter', onPointerEnter);\n\t\tthis.node.addEventListener('pointerleave', onPointerLeave);\n\t\tthis.node.addEventListener('pointerup', onPointerUp);\n\t\tdocument.body.addEventListener('focus', onFocus, true);\n\n\t\tif (this.back) {\n\t\t\tthis.back.addEventListener('click', this.deactivate.bind(this));\n\t\t}\n\n\t\tif (this.link) {\n\t\t\tthis.link.addEventListener('click', onClick);\n\t\t}\n\t}\n\n\t/**\n\t * Toggle this dropdown menu state\n\t */\n\ttoggle() {\n\t\tthis.active ? this.deactivate() : this.activate();\n\t}\n\n\t/**\n\t * Activate this dropdown menu state\n\t */\n\tactivate() {\n\t\tif (!this.active) {\n\t\t\tthis.active = true;\n\t\t\tthis.controller.deactivate(this);\n\t\t\tthis.node.classList.add(this.controller.parentActiveClass);\n\t\t\tthis.node.dispatchEvent(new Event( 'masthead:activate', { bubbles: true } ) );\n\t\t}\n\t}\n\n\t/**\n\t * Deactivate this dropdown menu state\n\t */\n\tdeactivate() {\n\t\tif (this.active) {\n\t\t\tthis.active = false;\n\t\t\tthis.node.classList.remove(this.controller.parentActiveClass);\n\t\t\tthis.node.dispatchEvent(new Event( 'masthead:deactivate', { bubbles: true } ) );\n\t\t}\n\t}\n}\n\nclass Masthead {\n\tconstructor() {\n\t\tthis.node = document.querySelector('.masthead');\n\n\t\tif (!this.node) {\n\t\t\treturn;\n\t\t}\n\n\t\t// no mode by default (can be search|menu)\n\t\tthis.mode = null;\n\n\t\t// what mouse/pen mode do we want to operate under - hover or click\n\t\tthis.pointerMode = this.node.dataset.pointerMode || 'hover';\n\n\t\t// the delay used for hover-intent\n\t\tthis.hoverDelay = 200;\n\n\t\t// the item active class\n\t\tthis.parentActiveClass = 'masthead__item--active';\n\n\t\t// node references for interaction\n\t\tthis.nav = this.node.querySelector('.masthead__nav');\n\t\tthis.menuIcon = this.node.querySelector('.masthead__menu-icon');\n\t\tthis.search = this.node.querySelector('.masthead__search');\n\t\tthis.searchIcon = this.node.querySelector('.masthead__search-icon');\n\t\tthis.closeIcon = this.node.querySelector('.masthead__close-icon');\n\t\tthis.language = this.node.querySelector('.masthead__language');\n\n\t\t// at what media query is the mobile menu triggered - update this value to match whatever is used in _masthead.scss\n\t\tthis.mobileMediaQuery = '(max-width: 48em)';\n\n\t\t// initialize menu items that are parents\n\t\tthis.parents = Array.from(this.node.querySelectorAll('.masthead__item--depth-0.masthead__item--has-children')).map((node) => {\n\t\t\treturn new MastheadParent(node, this);\n\t\t});\n\n\t\t// initialize the language parent class\n\t\tif (this.language) {\n\t\t\tthis.languageParent = new MastheadParent(this.language, this);\n\t\t\tthis.languageParent.node.addEventListener( 'masthead:activate', () => this.node.classList.add( 'masthead--mode-language' ) );\n\t\t\tthis.languageParent.node.addEventListener( 'masthead:deactivate', () => this.node.classList.remove( 'masthead--mode-language' ) );\n\t\t}\n\n\t\t// headroom sticky hide configuration - @see https://www.npmjs.com/package/headroom.js\n\t\tthis.headroom = new Headroom(this.node, {\n\t\t\ttolerance: {\n\t\t\t\tup: 7,\n\t\t\t\tdown: 5,\n\t\t\t},\n\t\t\tclasses: {\n\t\t\t\tinitial: 'masthead',\n\t\t\t\tpinned: 'masthead--pinned',\n\t\t\t\tunpinned: 'masthead--unpinned',\n\t\t\t\ttop: 'masthead--top',\n\t\t\t\tnotTop: 'masthead--not-top',\n\t\t\t\tbottom: 'masthead--bottom',\n\t\t\t\tnotBottom: 'masthead--not-bottom',\n\t\t\t\tfrozen: 'masthead--frozen',\n\t\t\t},\n\t\t});\n\t\tthis.headroom.init();\n\t\tthis.headroom.update(this.headroom);\n\n\t\t// deactivate the mode of the menu on escape key\n\t\tconst onKeyUp = (e) => {\n\t\t\tswitch (e.key) {\n\t\t\t\tcase 'Escape':\n\t\t\t\t\tif (this.mode) {\n\t\t\t\t\t\tthis.setMode('');\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t};\n\n\t\t// deactivate mode when clicking outside of the masthead\n\t\tconst onClick = (e) => {\n\t\t\tlet target = e.target;\n\n\t\t\twhile (target.parentNode) {\n\t\t\t\tif (target === this.nav) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttarget = target.parentNode;\n\t\t\t}\n\n\t\t\tthis.deactivate();\n\t\t};\n\n\t\tdisable(null, this.search);\n\n\t\tthis.node.addEventListener('keyup', onKeyUp);\n\n\t\tif ( this.searchIcon ) {\n\t\t\tthis.searchIcon.addEventListener('click', (e) => {\n\t\t\t\te.stopPropagation();\n\t\t\t\tthis.toggleMode('search');\n\t\t\t});\n\t\t}\n\n\t\tif ( this.menuIcon ) {\n\t\t\tthis.menuIcon.addEventListener('click', (e) => {\n\t\t\t\te.stopPropagation();\n\t\t\t\tthis.toggleMode('menu');\n\t\t\t});\n\t\t}\n\n\t\tif ( this.closeIcon ) {\n\t\t\tthis.closeIcon.addEventListener('click', (e) => {\n\t\t\t\te.stopPropagation();\n\t\t\t\tthis.setMode();\n\t\t\t});\n\t\t}\n\n\t\tdocument.body.addEventListener('click', onClick);\n\t}\n\n\t/**\n\t * Deactivate all dropdown menus (optionally exclude one menu)\n\t *\n\t * @param {MastheadParent} exclude\n\t */\n\tdeactivate(exclude) {\n\t\tthis.parents.forEach((parent) => {\n\t\t\tif (!exclude || parent !== exclude) {\n\t\t\t\tparent.deactivate();\n\t\t\t}\n\t\t});\n\n\t\tif (!window.matchMedia(this.mobileMediaQuery).matches) {\n\t\t\tthis.setMode('');\n\t\t}\n\t}\n\n\t/**\n\t * Set the interactive mode of the masthead\n\t *\n\t * @param {string} mode search|menu\n\t * @returns void\n\t */\n\tsetMode(mode = '') {\n\t\tif (this.mode && mode !== this.mode) {\n\t\t\tconst lastMode = this.mode;\n\n\t\t\tif ('search' === lastMode) {\n\t\t\t\tdisable(null, this.search);\n\n\t\t\t\tconst onTransitionEnd = () => {\n\t\t\t\t\tthis.search.hidden = true;\n\t\t\t\t\tthis.search.removeEventListener('transitionend', onTransitionEnd);\n\n\t\t\t\t\tif (!this.node.classList.contains('masthead--search-overlay')) {\n\t\t\t\t\t\tthis.nav.classList.remove('masthead__nav--search');\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tthis.search.addEventListener('transitionend', onTransitionEnd);\n\t\t\t}\n\n\t\t\tthis.node.classList.remove(`masthead--mode-${lastMode}`);\n\t\t\tdocument.documentElement.classList.remove('has-masthead-mode', `has-masthead--mode-${lastMode}`);\n\t\t}\n\n\t\tthis.mode = mode;\n\n\t\tif (mode) {\n\t\t\tif ('search' === this.mode) {\n\t\t\t\tenable(null, this.search);\n\t\t\t\tthis.search.removeAttribute('hidden');\n\t\t\t\tconst input = this.search.querySelector('input');\n\n\t\t\t\tif (input) {\n\t\t\t\t\tinput.focus();\n\t\t\t\t}\n\n\t\t\t\tif (!this.node.classList.contains('masthead--search-overlay')) {\n\t\t\t\t\tthis.nav.classList.add('masthead__nav--search');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.node.classList.add(`masthead--mode-${this.mode}`);\n\t\t\t\tdocument.documentElement.classList.add('has-masthead-mode', `has-masthead--mode-${mode}`);\n\t\t\t}, 10);\n\t\t}\n\n\t\tthis.node.dispatchEvent(new Event('masthead:mode', { detail: this }));\n\t}\n\n\t/**\n\t * Toggle the interactive mode of the masthead\n\t *\n\t * @param {string} mode search|menu\n\t * @returns void\n\t */\n\ttoggleMode(mode) {\n\t\tthis.setMode(this.mode === mode ? '' : mode);\n\t}\n\n\t/**\n\t * Gets the mode of the pointerType of how the dropdowns should react to pointer events\n\t *\n\t * - mobile view should always be click based even with mouse/pen pointer events\n\t * - update the breakpoint\n\t *\n\t * @returns string hover|click\n\t */\n\tgetPointerMode() {\n\t\tif ('hover' === this.pointerMode && window.matchMedia(this.mobileMediaQuery).matches) {\n\t\t\treturn 'click';\n\t\t}\n\n\t\treturn this.pointerMode;\n\t}\n}\n\nexport default new Masthead();\n","import throttle from './base/_throttle.js';\nimport focusWithin from './base/_focus-within.js';\nimport './base/_object-fit-cover.js';\nimport './modules/_masthead.js';\n\nclass Scripts {\n\tconstructor() {\n\t\tdocument.addEventListener( 'DOMContentLoaded', this.ready.bind( this ) );\n\t\twindow.addEventListener( 'resize', throttle( this.resize.bind( this ), 25 ) );\n\t\tthis.resize();\n\t}\n\n\tready() {\n\t\tfocusWithin( 'label, form, fieldset' );\n\t\tthis.fetchSvgs();\n\t}\n\n\tresize() {\n\t\tif ( ! document.body ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// using this to allow css to know if it should exclude the scroll bar in calc's\n\t\tif ( window.innerWidth === document.body.clientWidth ) {\n\t\t\tdocument.documentElement.classList.remove( 'has-scrollbar' );\n\t\t} else {\n\t\t\tdocument.documentElement.classList.add( 'has-scrollbar' );\n\t\t}\n\t}\n\n\tfetchSvgs( selector = '.image-svg-replace', scope = document ) {\n\t\tscope.querySelectorAll( selector ).forEach( img => this.fetchSvg( img ) );\n\t}\n\n\tasync fetchSvg( img ) {\n\t\ttry {\n\t\t\tif ( ! img || ! img.src ) {\n\t\t\t\tthrow new Error( 'Invalid svg image tag' );\n\t\t\t}\n\n\t\t\tconst response = await window.fetch( img.src );\n\n\t\t\tif ( 'image/svg+xml' !== response.headers.get( 'content-type' ) ) {\n\t\t\t\tthrow new Error( 'Response is not svg' );\n\t\t\t}\n\n\t\t\tconst text = await response.text();\n\n\t\t\tif ( ! text ) {\n\t\t\t\tthrow new Error( 'Empty svg - not replacing' );\n\t\t\t}\n\n\t\t\tconst parser = new DOMParser();\n\t\t\tconst doc = parser.parseFromString( text, 'image/svg+xml' );\n\t\t\tconst scripts = Array.from( doc.querySelectorAll( 'script' ) ).map( script => script.parentNode.removeChild( script ) );\n\t\t\tconst svg = doc.querySelector( 'svg' );\n\n\t\t\t[\n\t\t\t\t'height',\n\t\t\t\t'width',\n\t\t\t\t'class',\n\t\t\t\t'style',\n\t\t\t\t'className',\n\t\t\t].forEach( attribute => {\n\t\t\t\tif ( img.getAttribute( attribute ) ) {\n\t\t\t\t\tswitch ( attribute ) {\n\t\t\t\t\t\tcase 'className':\n\t\t\t\t\t\t\t// merge class names\n\t\t\t\t\t\t\tsvg.classList.add( img.classList );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'style':\n\t\t\t\t\t\t\t// merge and overwrite inline styles\n\t\t\t\t\t\t\timg.getAttribute( 'style' ).split( ';' ).forEach( ( stmt ) => {\n\t\t\t\t\t\t\t\tconst [ prop, value ] = stmt.split(':');\n\n\t\t\t\t\t\t\t\tif ( prop && value ) {\n\t\t\t\t\t\t\t\t\tsvg.style[ prop ] = value;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t// overwrite attributes\n\t\t\t\t\t\t\tsvg.setAttribute( attribute, img.getAttribute( attribute ) );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\timg.parentNode.insertBefore( svg, img );\n\n\t\t\tscripts.forEach( script => {\n\t\t\t\tconst svgScript = document.createElement( 'script' );\n\t\t\t\tsvgScript.innerHTML = script.innerHTML.replace( /^$/, '' );\n\t\t\t\timg.parentNode.appendChild( svgScript );\n\t\t\t} );\n\n\t\t\timg.parentNode.removeChild( img );\n\t\t} catch ( error ) {\n\t\t\tconsole.error( error );\n\t\t}\n\t}\n}\n\nexport default new Scripts;\n","export default function (fn, time = 50) {\n\tlet timer = null;\n\n\tfunction throttledFn(...args) {\n\t\tif (!timer) {\n\t\t\ttimer = setTimeout(() => {\n\t\t\t\tfn(...args);\n\t\t\t\ttimer = null;\n\t\t\t}, time)\n\t\t}\n\t}\n\n\tthrottledFn.cancel = () => {\n\t\tclearTimeout(timer);\n\t\ttimer = null;\n\t}\n\n\treturn throttledFn;\n}\n"],"names":["module","exports","isBrowser","window","createScroller","element","obj","document","nodeType","isDocument","doc","win","body","html","documentElement","scrollHeight","Math","max","offsetHeight","clientHeight","height","innerHeight","scrollY","undefined","pageYOffset","parentNode","scrollTop","elementScroller","trackScroll","options","callback","rafId","isPassiveSupported","supported","passive","addEventListener","removeEventListener","err","passiveEventsSupported","scrolled","scroller","lastScrollY","details","update","round","direction","distance","abs","isOutOfBounds","top","offset","bottom","toleranceExceeded","tolerance","handleScroll","requestAnimationFrame","eventOptions","capture","destroy","cancelAnimationFrame","normalizeUpDown","t","Object","down","up","Headroom","elem","assign","this","classes","initialised","frozen","prototype","constructor","init","cutsTheMustard","addClass","setTimeout","self","scrollTracker","bind","keys","forEach","removeClass","unpin","hasClass","onUnpin","call","pin","onPin","freeze","unfreeze","onTop","notTop","onNotTop","onBottom","notBottom","onNotBottom","shouldUnpin","shouldPin","className","classList","add","apply","split","remove","every","cls","contains","pinned","unpinned","initial","factory","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","d","definition","key","o","defineProperty","enumerable","get","prop","hasOwnProperty","r","Symbol","toStringTag","value","FocusWithin","node","focused","focus","blur","toggle","dispatchEvent","CustomEvent","objectFitCover","nodes","arguments","length","img","position","Array","from","querySelectorAll","i","nodesLength","imgNode","querySelector","style","backgroundPosition","backgroundSize","backgroundImage","currentSrc","src","display","readyState","match","tabCapable","disable","exclude","scope","join","filter","matches","closest","tabIndex","dataset","MastheadParent","controller","enterTimeout","leaveTimeout","active","link","back","hoverTypes","e","includes","pointerType","getPointerMode","clearTimeout","activate","hoverDelay","deactivate","onFocus","target","activeElement","preventDefault","parentActiveClass","Event","bubbles","mode","pointerMode","nav","menuIcon","search","searchIcon","closeIcon","language","mobileMediaQuery","parents","map","languageParent","headroom","setMode","stopPropagation","toggleMode","parent","matchMedia","lastMode","onTransitionEnd","hidden","removeAttribute","enable","input","detail","ready","fn","time","timer","throttledFn","_len","args","_key","cancel","throttle","resize","HTMLElement","isArray","n","focusWithin","fetchSvgs","innerWidth","clientWidth","selector","fetchSvg","Error","response","fetch","headers","text","DOMParser","parseFromString","scripts","script","removeChild","svg","attribute","getAttribute","stmt","setAttribute","insertBefore","svgScript","createElement","innerHTML","replace","appendChild","error","console"],"sourceRoot":""}