{"version":3,"file":"scripts.min.js","sources":["../../../assets/js/base/_throttle.js","../../../assets/js/base/_focus-within.js","../../../assets/js/base/_dropdownEvent.js","../../../assets/js/base/_traverse.js","../../../assets/js/modules/_header.js","../../../assets/js/modules/_flyout.js","../../../assets/js/modules/_split-header.js","../../../assets/js/modules/_search.js","../../../assets/js/base/_object-fit-cover.js","../../../assets/js/scripts.js"],"sourcesContent":["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","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 * This class fires events for dropdown menus\n *\n * - supports PointerEvents\n * - supports HoverIntent\n * - prevents following the first link on touch/keyboard click unless already opened\n * - deactivates when blurred for any event\n *\n * Use this by either passing callbacks.activate, callbacks:deactivate, * or by\n * listening for the dropdown:activate or dropdown:deactivate events on the\n * passed node\n *\n * Events Example:\n * ```\n * dropdownEvent(node);\n * node.addEventListener('dropdown:activate', () => {\n * // add dropdown classes\n * });\n * node.addEventListener('dropdown:deactivate', () => {\n * // remove dropdown classes\n * });\n * ```\n\n * Callbacks Example:\n * ```\n * dropdownEvent(node, {\n * activate: function() {\n * // add dropdown classes\n * },\n * deactivate: function() {\n * // remove dropdown classes\n * },\n * });\n * ```\n *\n * jQuery events example\n * ```\n * jQuery('selector').dropdownEvent().on('dropdown:activate', function() {\n * // add dropdown classes\n * }).on('dropdown:deactivate', function() {\n * // remove dropdown classes\n * });\n * ```\n *\n * jQuery callbacks example\n * ```\n * jQuery('selector').dropdownEvent({\n * activate: function() {\n * // add dropdown classes\n * },\n * deactivate: function() {\n * // remove dropdown classes\n * }\n * });\n * ```\n *\n * @class\n */\nimport { focusable } from \"./_traverse\";\n\nexport class DropdownEvent {\n\t/**\n\t *\n\t * @param HTMLElement node\n\t * @param {Object} opts\n\t * @param {Integer} [opts.delay=200] - the hover intent delay on mouse events\n\t * @param {Function} opts.activate - the callback function for activate\n\t * @param {Function} opts.deactivate - the callback function for deactivate\n\t * @param {String} [opts.activateEvent=dropdown:activate] - the name of the activate event to listen to\n\t * @param {String} [opts.deactivateEvent=dropdown:deactivate] - the name of the deactivate event to listen to\n\t */\n\tconstructor(node, opts = {}) {\n\t\tthis.node = node;\n\t\tthis.opts = {\n\t\t\tdelay: 200,\n\t\t\tactivate: () => {},\n\t\t\tdeactivate: () => {},\n\t\t\tactivateEvent: 'dropdown:activate',\n\t\t\tdeactivateEvent: 'dropdown:deactivate',\n\t\t};\n\n\t\tfor (let opt in opts) {\n\t\t\tif (opts.hasOwnProperty(opt)) {\n\t\t\t\tthis.opts[opt] = opts[opt];\n\t\t\t}\n\t\t}\n\n\t\tthis.active = false;\n\t\tthis.enterTimeout = null;\n\t\tthis.leaveTimeout = null;\n\n\t\t// prevents the click event from following links (used by touch/keyboard handlers)\n\t\tconst preventClickEvent = function(e) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\tthis.removeEventListener('click', preventClickEvent);\n\t\t}\n\n\t\t// activate if the event target is a child link\n\t\tconst maybeActivate = (e, focus = false) => {\n\t\t\tif (this.active) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tlet target = e.target;\n\t\t\twhile(target.parentNode && target !== this.node) {\n\t\t\t\tif (target.tagName === 'A') {\n\t\t\t\t\ttarget.addEventListener('click', preventClickEvent);\n\t\t\t\t}\n\n\t\t\t\ttarget = target.parentNode;\n\t\t\t}\n\n\t\t\tthis.activate(e, focus);\n\t\t\treturn true;\n\t\t}\n\n\t\t// activate on mouse enter and apply delay\n\t\tconst mouseenter = (e) => {\n\t\t\tif (typeof this.leaveTimeout === 'number') {\n\t\t\t\treturn window.clearTimeout(this.leaveTimeout);\n\t\t\t}\n\n\t\t\tthis.enterTimeout = setTimeout(() => {\n\t\t\t\tthis.activate(e);\n\t\t\t}, this.opts.delay);\n\t\t}\n\n\t\t// deactivate on mouse leave and apply delay\n\t\tconst mouseleave = (e) => {\n\t\t\tif (typeof this.enterTimeout === 'number') {\n\t\t\t\treturn window.clearTimeout(this.enterTimeout);\n\t\t\t}\n\n\t\t\tthis.leaveTimeout = window.setTimeout(() => {\n\t\t\t\tthis.deactivate(e);\n\t\t\t}, this.opts.delay);\n\t\t}\n\n\t\t// handle the touch start event\n\t\tconst touchstart = (e) => {\n\t\t\treturn maybeActivate(e, true);\n\t\t}\n\n\t\t// handle the keypress event\n\t\tconst keypress = (e) => {\n\t\t\tif ( 'enter' === e.key.toLowerCase() ) {\n\t\t\t\treturn maybeActivate(e);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\n\t\t// handle the pointer enter and route to touch/mouse event ( treats pen events as mouse )\n\t\tconst pointerenter = (e) => {\n\t\t\treturn 'touch' === e.pointerType ? touchstart(e) : mouseenter(e);\n\t\t}\n\n\t\t// handle the pointer leave and route to touch/mouse event ( treats pen events as mouse )\n\t\tconst pointerleave = (e) => {\n\t\t\treturn 'touch' === e.pointerType ? touchstart(e) : mouseleave(e);\n\t\t}\n\n\t\t// on captured blur detect if the event target is a child of this.node, if not, deactivate\n\t\tconst blur = () => {\n\t\t\tif ( ! this.active ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tlet target = document.activeElement;\n\t\t\t\twhile ( target && target.parentNode ) {\n\t\t\t\t\tif ( target === this.node ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\ttarget = target.parentNode;\n\t\t\t\t}\n\n\t\t\t\tthis.deactivate();\n\t\t\t}, 0);\n\t\t}\n\n\t\tif ( window.PointerEvent ) {\n\t\t\t// add pointer events\n\t\t\tthis.node.addEventListener('pointerenter', pointerenter);\n\t\t\tthis.node.addEventListener('pointerleave', pointerleave);\n\t\t} else {\n\t\t\t// no pointer events - use mouse/touch events directly\n\t\t\tthis.node.addEventListener('touchstart', touchstart);\n\t\t\tthis.node.addEventListener('mouseenter', mouseenter);\n\t\t\tthis.node.addEventListener('mouseleave', mouseleave);\n\t\t}\n\n\t\t// add keypress/blur events\n\t\tthis.node.addEventListener('keypress', keypress);\n\t\tthis.node.addEventListener('blur', blur, true); // capture\n\t}\n\n\t/**\n\t* Activates the dropdown and fires the callback/event\n\t*\n\t* @param {Object} e - passed along to the callback/event as detail\n\t* @param {boolean} focus - should the first focusable element be focused\n\t*/\n\tactivate(e = {}, focus = false) {\n\t\tthis.active = true;\n\n\t\tif (typeof this.enterTimeout === 'number') {\n\t\t\twindow.clearTimeout(this.enterTimeout);\n\t\t\tthis.enterTimeout = null;\n\t\t}\n\n\t\tif (focus) {\n\t\t\tfocusable(this.node);\n\t\t}\n\n\t\tif (typeof this.opts.activate === 'function') {\n\t\t\tthis.opts.activate.call(this.node, e);\n\t\t}\n\n\t\tif (typeof this.opts.activateEvent === 'string') {\n\t\t\tthis.dispatchEvent(this.opts.activateEvent);\n\t\t}\n\t}\n\n\t/**\n\t * Deactivates the dropdown and fires the callback/event\n\t *\n\t * @param {Object} e - passed along to the callback/event as detail\n\t */\n\tdeactivate(e = {}) {\n\t\tthis.active = false;\n\n\t\tif (typeof this.leaveTimeout === 'number') {\n\t\t\twindow.clearTimeout(this.leaveTimeout);\n\t\t\tthis.leaveTimeout = null;\n\t\t}\n\n\t\tif (typeof this.opts.deactivate === 'function') {\n\t\t\tthis.opts.deactivate.call(this.node, e);\n\t\t}\n\n\t\tif (typeof this.opts.deactivateEvent === 'string') {\n\t\t\tthis.dispatchEvent(this.opts.deactivateEvent);\n\t\t}\n\t}\n\n\tdispatchEvent(eventName, node = this.node) {\n\t\tlet event;\n\t\tif (typeof window.Event === 'function') {\n\t\t\tevent = new Event(eventName);\n\t\t} else {\n\t\t\tevent = document.createEvent('Event');\n\t\t\tevent.initEvent(eventName, true, false);\n\t\t}\n\n\t\tnode.dispatchEvent(event);\n\t}\n}\n\n/**\n * This is a factory for the DropdownEvent class that supports nodelists/arrays/selectors\n *\n * @param {HTMLElement|String|NodeList|Array} node\n * @param {opts} opts - see DropdownEvent\n * @return mixed DropdownEvent|Array|false\n *\n * @uses DropdownEvent\n * @uses Array.from\n * @uses Array.isArray\n */\nexport function dropdownEvent(node, opts = {}) {\n\tif (node instanceof HTMLElement) {\n\t\treturn new DropdownEvent(node, opts);\n\t}\n\n\tconst nodes = (typeof node === 'string') ? Array.from(document.querySelectorAll(node)) : (node.length) ? Array.from(node) : [];\n\n\tif (Array.isArray(nodes)) {\n\t\treturn nodes.map((n) => new DropdownEvent(n, opts));\n\t}\n\n\treturn false;\n}\n\n/**\n * Add a jQuery function for those who prefer that way\n */\nif (typeof window.jQuery === 'function') {\n\twindow.jQuery.fn.dropdownEvent = function(opts) {\n\t\treturn this.each(function() {\n\t\t\tconst $this = window.jQuery(this);\n\t\t\t$this.data('dropdownEvent', new DropdownEvent(this, opts));\n\t\t});\n\t};\n}\n\nexport default dropdownEvent;\n","export function children( node, selector = null ) {\n\tlet children = Array.from( node.children );\n\n\tif ( selector ) {\n\t\tchildren = children.filter( child => child.matches( selector ) );\n\t}\n\n\treturn children;\n}\n\nexport function focusable( node ) {\n\tconst focusableNode = node.querySelector( [\n\t\t'a[href]',\n\t\t'[contenteditable]',\n\t\t'input:not([disabled])',\n\t\t'select:not([disabled])',\n\t\t'button:not([disabled])',\n\t\t'textarea:not([disabled])',\n\t\t'[tabIndex]:not([tabIndex=\"-1\"])',\n\t].join(', ') );\n\n\tif ( focusableNode ) {\n\t\tfocusableNode.focus();\n\t}\n\n\treturn focusableNode;\n}\n","//import Headroom from 'headroom.js';\nimport dropdownEvent from \"../base/_dropdownEvent.js\";\n\nexport default class Header {\n\tconstructor(node = \"header.wp-block-template-part\") {\n\t\tthis.node = typeof node === \"string\" ? document.querySelector(node) : node;\n\n\t\tif (document.body.classList.contains(\"home\")) {\n\t\t\tthis.headerBackground();\n\t\t\twindow.addEventListener(\"scroll\", () => {\n\t\t\t\tthis.headerBackground();\n\t\t\t});\n\t\t}\n\n\t\tif (!this.node instanceof HTMLElement) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isGreater992 = document.body.clientWidth >= 992;\n\n\t\tconst matchMedia = window.matchMedia(\"(min-width: 992px)\");\n\n\t\tmatchMedia.addEventListener(\"change\", () => {\n\t\t\tthis.isGreater992 = document.body.clientWidth >= 992;\n\t\t});\n\n\t\tthis.desktopMenu();\n\t}\n\n\theaderBackground() {\n\t\tif (window.scrollY == 0) {\n\t\t\tthis.node.classList.add(\"site-header--reverse\");\n\t\t\tthis.node.dataset.isTop = \"true\";\n\t\t} else {\n\t\t\tthis.node.classList.remove(\"site-header--reverse\");\n\t\t\tthis.node.dataset.isTop = \"false\";\n\t\t}\n\t}\n\n\tdesktopMenu() {\n\t\t// dropdowns\n\t\tconst intentActivate = (e) => {\n\t\t\tif (this.isGreater992) {\n\t\t\t\tdocument.body.classList.add(\"fixed\");\n\t\t\t\tdocument.body.dataset.isOpenMenu = \"true\";\n\t\t\t\tthis.node.classList.remove(\"site-header--reverse\");\n\n\t\t\t\tthis.node\n\t\t\t\t\t.querySelector(\".site-search\")\n\t\t\t\t\t.classList.remove(\"site-search--opened\");\n\t\t\t\tthis.node\n\t\t\t\t\t.querySelector(\".site-search__content\")\n\t\t\t\t\t.classList.remove(\"site-search__content--opened\");\n\t\t\t\tArray.from(e.target.children)\n\t\t\t\t\t.filter((node) => node.classList.contains(\"nav__menu-sub\"))\n\t\t\t\t\t.forEach((node) => node.classList.add(\"nav__menu-sub--opened\"));\n\t\t\t}\n\t\t};\n\n\t\tconst intentDeactivate = (e) => {\n\t\t\tif (this.isGreater992) {\n\t\t\t\tdocument.body.classList.remove(\"fixed\");\n\t\t\t\tdocument.body.dataset.isOpenMenu = \"false\";\n\t\t\t\tif (this.node.dataset.isTop === \"true\") {\n\t\t\t\t\tthis.node.classList.add(\"site-header--reverse\");\n\t\t\t\t}\n\t\t\t\tthis.node\n\t\t\t\t\t.querySelector(\".nav__menu\")\n\t\t\t\t\t.classList.remove(\"nav__menu--has-toggle-active\");\n\t\t\t\tArray.from(e.target.children)\n\t\t\t\t\t.filter((node) => node.classList.contains(\"nav__menu-sub\"))\n\t\t\t\t\t.forEach((node) => node.classList.remove(\"nav__menu-sub--opened\"));\n\t\t\t\tArray.from(e.target.children)\n\t\t\t\t\t.filter((node) => node.classList.contains(\"nav__menu-toggle\"))\n\t\t\t\t\t.forEach((node) => node.classList.remove(\"toggle-btn--menu--active\"));\n\t\t\t}\n\t\t};\n\n\t\tArray.from(this.node.querySelectorAll(\".nav__menu-item--has-sub\")).forEach(\n\t\t\t(node) => {\n\t\t\t\tdropdownEvent(node);\n\t\t\t\tnode.addEventListener(\"dropdown:activate\", intentActivate);\n\t\t\t\tnode.addEventListener(\"dropdown:deactivate\", intentDeactivate);\n\t\t\t}\n\t\t);\n\t}\n}\n// if mobile and switch to 992, and nav was open, need to remove fixed body class, remove nav--opened class, remove nav__content--opened\n","export default class Flyout {\n\tconstructor() {\n\t\tthis.node = document.querySelector(\".nav--primary\");\n\n\t\tif (!this.node) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.classes = {\n\t\t\tbodyOpened: \"fixed\",\n\t\t\tcontentOpened: \"nav__content--opened\",\n\t\t\tmenuOpened: \"nav__menu-sub--opened\",\n\t\t\topened: \"nav--opened\",\n\t\t\ttoggleActive: \"toggle-btn--menu--active\",\n\t\t\tnavHasToggleActive: \"nav__menu--has-toggle-active\",\n\t\t};\n\n\t\tthis.toggleMenu = this.node.querySelector(\".toggle-btn--menu\");\n\t\tthis.content = this.node.querySelector(\".nav__content\");\n\t\tthis.nav = this.node.querySelector(\".nav__menu\");\n\t\tthis.backs = this.node.querySelectorAll(\".nav__menu-return\");\n\t\tthis.toggles = this.node.querySelectorAll(\".nav__menu-toggle\");\n\n\t\tthis.modes = [\"menu\"];\n\t\tthis.setMode(\"menu\");\n\n\t\tif (this.toggleMenu) {\n\t\t\tthis.toggleMenu.addEventListener(\"click\", () => {\n\t\t\t\tif (this.node.classList.contains(this.classes.opened)) {\n\t\t\t\t\t// close\n\t\t\t\t\tthis.close();\n\t\t\t\t} else {\n\t\t\t\t\t// open\n\t\t\t\t\tthis.open(\"menu\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t//search close .site-search site-search--opened\n\t\tdocument.querySelector(\".site-search\").addEventListener(\"click\", () => {\n\t\t\tif (this.node.classList.contains(this.classes.opened)) {\n\t\t\t\t// close\n\t\t\t\tthis.close();\n\t\t\t\tdocument.body.classList.add(this.classes.bodyOpened);\n\t\t\t}\n\t\t});\n\n\t\t// handle esc/tab keys\n\t\tthis.handleKeyup = (e) => {\n\t\t\tif (this.opened) {\n\t\t\t\tif (e.key === \"Escape\") {\n\t\t\t\t\treturn this.close();\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\te.key === \"Tab\" &&\n\t\t\t\t\t!document.activeElement.closest(\".nav--primary\")\n\t\t\t\t) {\n\t\t\t\t\t// close the flyout when you tab out of it (if possible)\n\t\t\t\t\treturn this.close();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// handle close\n\t\tthis.node.addEventListener(\"click\", (e) => {\n\t\t\tif (e.target.closest(\".nav--primary\")) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.close();\n\t\t});\n\n\t\tconst openSubmenu = (navItem) => {\n\t\t\tif (!navItem) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst submenu = navItem.querySelector(\".nav__menu-sub\");\n\t\t\tconst toggle = navItem.querySelector(\".nav__menu-toggle\");\n\n\t\t\tif (document.body.clientWidth >= 992) {\n\t\t\t\tdocument.body.classList.add(this.classes.bodyOpened);\n\t\t\t}\n\n\t\t\tthis.nav.classList.add(this.classes.navHasToggleActive);\n\t\t\ttoggle.classList.add(this.classes.toggleActive);\n\t\t\tsubmenu.classList.add(this.classes.menuOpened);\n\t\t\tsubmenu.style.height = `${submenu.scrollHeight}px`;\n\n\t\t\tsubmenu.querySelectorAll(\"a, button\").forEach((node) => {\n\t\t\t\tif (node.dataset.tabIndex) {\n\t\t\t\t\tnode.tabIndex = node.dataset.tabIndex;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthis.content.scrollTo(0, 0);\n\t\t};\n\n\t\tconst closeSubmenu = (navItem) => {\n\t\t\tif (!navItem) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconsole.log(\"close\");\n\t\t\tconst submenu = navItem.querySelector(\".nav__menu-sub\");\n\t\t\tconst toggle = navItem.querySelector(\".nav__menu-toggle\");\n\n\t\t\tif (document.body.clientWidth >= 992) {\n\t\t\t\tdocument.body.classList.remove(this.classes.bodyOpened);\n\t\t\t}\n\n\t\t\tthis.nav.classList.remove(this.classes.navHasToggleActive);\n\t\t\tconsole.log(this.nav);\n\t\t\ttoggle.classList.remove(this.classes.toggleActive);\n\t\t\tsubmenu.classList.remove(this.classes.menuOpened);\n\t\t\tsubmenu.style.height = \"\";\n\n\t\t\tsubmenu.querySelectorAll(\"a, button\").forEach((node) => {\n\t\t\t\tnode.tabIndex = -1;\n\t\t\t});\n\n\t\t\tthis.content.scrollTo(0, 0);\n\t\t};\n\n\t\tthis.node\n\t\t\t.querySelectorAll(\".nav__menu-sub a, .nav__menu-sub button\")\n\t\t\t.forEach((node) => {\n\t\t\t\tnode.dataset.tabIndex = node.tabIndex;\n\t\t\t\tnode.tabIndex = -1;\n\t\t\t});\n\n\t\tthis.backs.forEach((back) => {\n\t\t\tback.addEventListener(\"click\", () =>\n\t\t\t\tcloseSubmenu(back.closest(\".nav__menu-item\"))\n\t\t\t);\n\t\t});\n\n\t\tthis.toggles.forEach((toggle) => {\n\t\t\ttoggle.addEventListener(\"click\", () => {\n\t\t\t\tconst item = toggle.closest(\".nav__menu-item\");\n\n\t\t\t\tif (toggle.classList.contains(this.classes.toggleActive)) {\n\t\t\t\t\t// close\n\t\t\t\t\tcloseSubmenu(item);\n\t\t\t\t} else {\n\t\t\t\t\t// open\n\t\t\t\t\topenSubmenu(item);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\topen(mode) {\n\t\tthis.opened = true;\n\t\tthis.node.style.display = \"block\";\n\t\tdocument.body.classList.add(this.classes.bodyOpened);\n\t\tdocument.addEventListener(\"keyup\", this.handleKeyup);\n\n\t\tthis.disableTabs();\n\n\t\tthis.previousActiveElement = document.activeElement;\n\n\t\trequestAnimationFrame(() =>\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\tthis.node.classList.add(this.classes.opened);\n\t\t\t\tthis.content.classList.add(this.classes.contentOpened);\n\n\t\t\t\t// if (this.mode === 'search' && this.searchInput) {\n\t\t\t\t// \tthis.searchInput.focus();\n\t\t\t\t// } else\n\t\t\t\t// if ( this.closer ) {\n\t\t\t\t// \tthis.closer.focus();\n\t\t\t\t// }\n\n\t\t\t\tthis.node.dispatchEvent(\n\t\t\t\t\tnew CustomEvent(\"flyout:open\", { bubbles: true, cancelable: false })\n\t\t\t\t);\n\t\t\t})\n\t\t);\n\t}\n\n\tclose() {\n\t\tthis.opened = false;\n\t\tdocument.removeEventListener(\"keyup\", this.handleKeyup);\n\n\t\tconst onTransitionEnd = (e) => {\n\t\t\tthis.content.removeEventListener(\"transitionend\", onTransitionEnd);\n\n\t\t\tthis.node.style.display = \"\";\n\t\t\tif (\n\t\t\t\t!document\n\t\t\t\t\t.querySelector(\".site-search\")\n\t\t\t\t\t.classList.contains(\"site-search--opened\")\n\t\t\t) {\n\t\t\t\tdocument.body.classList.remove(this.classes.bodyOpened);\n\t\t\t}\n\n\t\t\tthis.node.classList.remove(this.classes.opened);\n\n\t\t\tif (this.previousActiveElement) {\n\t\t\t\tthis.previousActiveElement.focus();\n\t\t\t}\n\n\t\t\tthis.enableTabs();\n\n\t\t\tthis.node.dispatchEvent(\n\t\t\t\tnew CustomEvent(\"flyout:close\", { bubbles: true, cancelable: false })\n\t\t\t);\n\t\t};\n\n\t\tthis.content.addEventListener(\"transitionend\", onTransitionEnd);\n\t\tthis.content.classList.remove(this.classes.contentOpened);\n\t}\n\n\tsetMode(mode = \"menu\") {\n\t\tthis.mode = mode;\n\n\t\tthis.modes.forEach((m) => {\n\t\t\tif (mode === m) {\n\t\t\t\tthis.node.classList.add(`flyout--${m}`);\n\t\t\t} else {\n\t\t\t\tthis.node.classList.remove(`flyout--${m}`);\n\t\t\t}\n\t\t});\n\n\t\treturn this.mode;\n\t}\n\n\tgetTabs(scope = document) {\n\t\treturn Array.from(\n\t\t\tscope.querySelectorAll(\n\t\t\t\t[\n\t\t\t\t\t\"select\",\n\t\t\t\t\t\"input\",\n\t\t\t\t\t\"textarea\",\n\t\t\t\t\t\"button\",\n\t\t\t\t\t\"a\",\n\t\t\t\t\t\"iframe\",\n\t\t\t\t\t\"object\",\n\t\t\t\t\t\"embed\",\n\t\t\t\t\t\"*[contenteditable]\",\n\t\t\t\t\t\"*[tabindex]\",\n\t\t\t\t].join(\", \")\n\t\t\t)\n\t\t).filter((node) => {\n\t\t\treturn !node.closest(\".nav--primary\");\n\t\t});\n\t}\n\n\tdisableTabs() {\n\t\tconst tabs = this.getTabs();\n\n\t\ttabs.forEach((node) => {\n\t\t\tlet prevTabIndex = node.getAttribute(\"tabIndex\");\n\t\t\tif (prevTabIndex) {\n\t\t\t\tnode.setAttribute(\"data-tab-index\", prevTabIndex);\n\t\t\t}\n\n\t\t\tnode.setAttribute(\"tabIndex\", \"-1\");\n\t\t});\n\n\t\treturn tabs;\n\t}\n\n\tenableTabs() {\n\t\tconst tabs = this.getTabs();\n\n\t\ttabs.forEach((node) => {\n\t\t\tlet prevTabIndex = node.getAttribute(\"data-tab-index\");\n\t\t\tif (prevTabIndex) {\n\t\t\t\tnode.setAttribute(\"tabIndex\", prevTabIndex);\n\t\t\t\tnode.removeAttribute(\"data-tab-index\");\n\t\t\t} else {\n\t\t\t\tnode.removeAttribute(\"tabIndex\");\n\t\t\t}\n\t\t});\n\n\t\treturn tabs;\n\t}\n}\n","import throttle from '../base/_throttle.js';\nexport default class SplitHeader {\n\tconstructor() {\n\t\tthis.node = document.querySelector('.split-header');\n\t\tthis.figure = document.querySelector('.split-header__figure');\n\n\t\tif (!this.figure) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet headerheight = this.node.offsetHeight;\n\t\tthis.figure.style.setProperty('--height', headerheight + 'px');\n\t\twindow.addEventListener('resize', throttle(this.widthCheck.bind(this), 25));\n\t}\n\n\twidthCheck = () => {\n\t\tif (!this.figure) {\n\t\t\treturn;\n\t\t}\n\t\tthis.headerheight = this.node.offsetHeight;\n\n\t}\n}\n","export default class Search {\n\tconstructor() {\n\t\tthis.node = document.querySelector(\".site-search\");\n\n\t\tif (!this.node) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.classes = {\n\t\t\tbodyOpened: \"fixed\",\n\t\t\topened: \"site-search--opened\",\n\t\t\tcontentOpened: \"site-search__content--opened\",\n\t\t};\n\n\t\tthis.toggleSearch = this.node.querySelector(\".toggle-btn--search\");\n\t\tthis.content = this.node.querySelector(\".site-search__content\");\n\n\t\tif (this.toggleSearch) {\n\t\t\tthis.toggleSearch.addEventListener(\"click\", () => {\n\t\t\t\tif (this.node.classList.contains(this.classes.opened)) {\n\t\t\t\t\t// close\n\t\t\t\t\tthis.close();\n\t\t\t\t} else {\n\t\t\t\t\t// open\n\t\t\t\t\tthis.open();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t//search close .site-search site-search--opened\n\t\tdocument\n\t\t\t.querySelector(\".toggle-btn--menu\")\n\t\t\t.addEventListener(\"click\", () => {\n\t\t\t\tif (this.node.classList.contains(this.classes.opened)) {\n\t\t\t\t\t// close\n\t\t\t\t\tthis.close();\n\t\t\t\t\tdocument.body.classList.add(this.classes.bodyOpened);\n\t\t\t\t}\n\t\t\t});\n\n\t\t// handle esc/tab keys\n\t\tthis.handleKeyup = (e) => {\n\t\t\tif (this.opened) {\n\t\t\t\tif (e.key === \"Escape\") {\n\t\t\t\t\tconsole.log(\"escape\");\n\t\t\t\t\treturn this.close();\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\te.key === \"Tab\" &&\n\t\t\t\t\t!document.activeElement.closest(\".site-search\")\n\t\t\t\t) {\n\t\t\t\t\tconsole.log(\"other key close\");\n\t\t\t\t\t// close the flyout when you tab out of it (if possible)\n\t\t\t\t\treturn this.close();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// handle close\n\t\tthis.node.addEventListener(\"click\", (e) => {\n\t\t\tif (e.target.closest(\".site-search\")) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconsole.log(\"handle close\");\n\n\t\t\tthis.close();\n\t\t});\n\t}\n\topen() {\n\t\tconsole.log(\"open function\");\n\t\t// if (mode) {\n\t\t// \tthis.setMode(mode);\n\t\t// }\n\n\t\tthis.opened = true;\n\t\tthis.node.style.display = \"block\";\n\t\tdocument.body.classList.add(this.classes.bodyOpened);\n\t\tdocument.addEventListener(\"keyup\", this.handleKeyup);\n\n\t\tthis.disableTabs();\n\n\t\tthis.previousActiveElement = document.activeElement;\n\n\t\trequestAnimationFrame(() =>\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\tconsole.log(\"open function request animation\");\n\t\t\t\tthis.node.classList.add(this.classes.opened);\n\t\t\t\tthis.content.classList.add(this.classes.contentOpened);\n\n\t\t\t\t// if (this.mode === 'search' && this.searchInput) {\n\t\t\t\t// \tthis.searchInput.focus();\n\t\t\t\t// } else\n\t\t\t\t// if ( this.closer ) {\n\t\t\t\t// \tthis.closer.focus();\n\t\t\t\t// }\n\n\t\t\t\tthis.node.dispatchEvent(\n\t\t\t\t\tnew CustomEvent(\"search:open\", { bubbles: true, cancelable: false })\n\t\t\t\t);\n\t\t\t})\n\t\t);\n\t}\n\tclose() {\n\t\tconsole.log(\"closign?\");\n\t\tthis.opened = false;\n\t\tdocument.removeEventListener(\"keyup\", this.handleKeyup);\n\t\t//const onTransitionEnd = (e) => {\n\t\tconsole.log(\"close function transitionend\");\n\t\t//this.content.removeEventListener('transitionend', onTransitionEnd);\n\n\t\tthis.node.style.display = \"\";\n\n\t\tdocument.body.classList.remove(this.classes.bodyOpened);\n\n\t\tthis.node.classList.remove(this.classes.opened);\n\n\t\tif (this.previousActiveElement) {\n\t\t\tthis.previousActiveElement.focus();\n\t\t}\n\n\t\tthis.enableTabs();\n\n\t\tthis.node.dispatchEvent(\n\t\t\tnew CustomEvent(\"search:close\", { bubbles: true, cancelable: false })\n\t\t);\n\t\t//}\n\t\tconsole.log(\"closing2\");\n\t\t//this.content.addEventListener('transitionend', onTransitionEnd);\n\t\tthis.content.classList.remove(this.classes.contentOpened);\n\t}\n\n\tgetTabs(scope = document) {\n\t\treturn Array.from(\n\t\t\tscope.querySelectorAll(\n\t\t\t\t[\n\t\t\t\t\t\"select\",\n\t\t\t\t\t\"input\",\n\t\t\t\t\t\"textarea\",\n\t\t\t\t\t\"button\",\n\t\t\t\t\t\"a\",\n\t\t\t\t\t\"iframe\",\n\t\t\t\t\t\"object\",\n\t\t\t\t\t\"embed\",\n\t\t\t\t\t\"*[contenteditable]\",\n\t\t\t\t\t\"*[tabindex]\",\n\t\t\t\t].join(\", \")\n\t\t\t)\n\t\t).filter((node) => {\n\t\t\treturn !node.closest(\".site-search\");\n\t\t});\n\t}\n\n\tdisableTabs() {\n\t\tconst tabs = this.getTabs();\n\n\t\ttabs.forEach((node) => {\n\t\t\tlet prevTabIndex = node.getAttribute(\"tabIndex\");\n\t\t\tif (prevTabIndex) {\n\t\t\t\tnode.setAttribute(\"data-tab-index\", prevTabIndex);\n\t\t\t}\n\n\t\t\tnode.setAttribute(\"tabIndex\", \"-1\");\n\t\t});\n\n\t\treturn tabs;\n\t}\n\n\tenableTabs() {\n\t\tconst tabs = this.getTabs();\n\n\t\ttabs.forEach((node) => {\n\t\t\tlet prevTabIndex = node.getAttribute(\"data-tab-index\");\n\t\t\tif (prevTabIndex) {\n\t\t\t\tnode.setAttribute(\"tabIndex\", prevTabIndex);\n\t\t\t\tnode.removeAttribute(\"data-tab-index\");\n\t\t\t} else {\n\t\t\t\tnode.removeAttribute(\"tabIndex\");\n\t\t\t}\n\t\t});\n\n\t\treturn tabs;\n\t}\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","import throttle from \"./base/_throttle.js\";\nimport focusWithin from \"./base/_focus-within.js\";\nimport Header from \"./modules/_header.js\";\nimport Flyout from \"./modules/_flyout.js\";\nimport SplitHeader from \"./modules/_split-header.js\";\nimport Search from \"./modules/_search.js\";\n\nimport \"./base/_object-fit-cover.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\n\t\tthis.header = new Header();\n\t\tthis.flyout = new Flyout();\n\t\tthis.splitHeader = new SplitHeader();\n\t\tthis.search = new Search();\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\nexport default new Scripts();\n"],"names":["throttle","fn","time","timer","throttledFn","args","setTimeout","cancel","clearTimeout","FocusWithin","constructor","node","className","this","focused","addEventListener","focus","bind","blur","toggle","classList","add","dispatchEvent","CustomEvent","remove","DropdownEvent","opts","delay","activate","deactivate","activateEvent","deactivateEvent","opt","hasOwnProperty","active","enterTimeout","leaveTimeout","preventClickEvent","e","preventDefault","stopPropagation","removeEventListener","maybeActivate","target","parentNode","tagName","mouseenter","window","mouseleave","touchstart","pointerenter","pointerType","pointerleave","PointerEvent","key","toLowerCase","document","activeElement","focusableNode","querySelector","join","focusable","call","eventName","event","Event","createEvent","initEvent","jQuery","dropdownEvent","each","data","Header","body","contains","headerBackground","HTMLElement","isGreater992","clientWidth","matchMedia","desktopMenu","scrollY","dataset","isTop","intentActivate","isOpenMenu","Array","from","children","filter","forEach","intentDeactivate","querySelectorAll","nodes","length","isArray","map","n","Flyout","classes","bodyOpened","contentOpened","menuOpened","opened","toggleActive","navHasToggleActive","toggleMenu","content","nav","backs","toggles","modes","setMode","close","open","handleKeyup","closest","openSubmenu","navItem","submenu","style","height","scrollHeight","tabIndex","scrollTo","closeSubmenu","console","log","back","item","mode","display","disableTabs","previousActiveElement","requestAnimationFrame","bubbles","cancelable","onTransitionEnd","enableTabs","m","getTabs","scope","tabs","prevTabIndex","getAttribute","setAttribute","removeAttribute","SplitHeader","figure","headerheight","offsetHeight","setProperty","widthCheck","Search","toggleSearch","objectFitCover","img","position","i","nodesLength","imgNode","backgroundPosition","backgroundSize","backgroundImage","currentSrc","src","readyState","match","ready","resize","focusWithin","header","flyout","splitHeader","search","innerWidth","documentElement"],"mappings":"+DAAe,SAAAA,EAAUC,EAAIC,EAAO,IACnC,IAAIC,EAAQ,KAEZ,SAASC,KAAeC,GAClBF,IACJA,EAAQG,YAAW,KAClBL,KAAMI,GACNF,EAAQ,IAAI,GACVD,GAEL,CAOA,OALAE,EAAYG,OAAS,KACpBC,aAAaL,GACbA,EAAQ,IAAI,EAGNC,CACR,CClBA,MAAMK,EACLC,WAAAA,CAAYC,EAAMC,GACjBC,KAAKF,KAAOA,EACZE,KAAKD,UAAYA,EACjBC,KAAKC,SAAU,EAGfD,KAAKF,KAAKI,iBAAiB,QAASF,KAAKG,MAAMC,KAAKJ,OAAO,GAC3DA,KAAKF,KAAKI,iBAAiB,OAAQF,KAAKK,KAAKD,KAAKJ,OAAO,EAC1D,CAEAM,MAAAA,GACC,O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