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CAAG,CAC5B,OAAQ,SAAU,CAAO,CAAE,CAAQ,EACjC,EAAK,aAAc,4BAA6B,GAAS,OAAO,CAC9D,SAAU,CAAO,EACf,IAAM,EAAc,SAAS,aAAa,CAAC,UAC3C,EAAY,SAAS,CAAC,GAAG,CAAC,SAC1B,EAAY,YAAY,CAAC,OAAQ,UACjC,EAAY,YAAY,CAAC,eAAgB,SACzC,EAAY,YAAY,CAAC,aAAc,SACvC,EAAY,OAAO,CAAG,WACpB,EAAQ,SAAS,CAAC,MAAM,CAAC,OAC3B,EACA,IAAM,EAAY,SAAS,aAAa,CAAC,QACzC,EAAU,YAAY,CAAC,cAAe,QACtC,EAAU,SAAS,CAAG,UACtB,EAAY,WAAW,CAAC,GACxB,IAAM,EAAW,EAAQ,aAAa,CAAC,aACvC,EAAS,YAAY,CAAC,EAAa,EAAS,UAAU,EAEtD,EAAQ,SAAS,CAAC,GAAG,CAAC,QACtB,WAAW,WAAY,EAAQ,SAAS,CAAC,MAAM,CAAC,OAAS,EAAG,IAC9D,EAEJ,CACF,C,C","sources":["","js/drupal-behaviors.js","templates/design-system/organisms/header/display/accessible-menu.js","templates/design-system/organisms/header/display/mobile-menu.js","templates/design-system/organisms/blocks/tabbed-content/display/tabbed-content.js","js/theme.js"],"sourcesContent":["(() => {\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequirea8a5\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequirea8a5\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"4aaSI\", function(module, exports) {\n/**\n * @file\n * Theme behavior overrides.\n * These overrides are processed by Parcel.\n */ \nvar $bsteN = parcelRequire(\"bsteN\");\n\nvar $4uwyp = parcelRequire(\"4uwyp\");\n\nvar $bx34p = parcelRequire(\"bx34p\");\n(function(Drupal1) {\n \"use strict\";\n /**\n\t * Behavior description.\n\t */ Drupal1.behaviors.Motif = {\n attach: function(context, settings) {\n if (context == document) {\n (0, $bsteN.initAccessibleMenu)(context);\n (0, $4uwyp.initMobileMenu)(context);\n (0, $bx34p.initTabbedContent)(context);\n for(let i = 0; i < document.links.length; i++){\n const link = document.links[i];\n if (link.hostname == \"eearth.io\") // Automatically rewrite hard-coded links to the current domain.\n link.hostname = window.location.hostname;\n else if (link.hostname != window.location.hostname) {\n // Automatically open external links in new tab.\n link.target = \"_blank\";\n link.rel = \"noopener\";\n }\n }\n }\n }\n };\n})(Drupal);\n\n});\nparcelRegister(\"bsteN\", function(module, exports) {\n\n$parcel$export(module.exports, \"initAccessibleMenu\", () => $8578fd3348ef8a7d$export$1d453331399fa824);\n/* Accessible menu functions for Desktop */ function $8578fd3348ef8a7d$export$1d453331399fa824(context) {\n // Selecting the main wrapper of the accessible menus\n const menuWrappers = document.querySelectorAll(\".accessible-menu\");\n // Function to toggle the visibility of a submenu\n function toggleSubnav(li, isOpen = null) {\n // Determine whether to open or close the submenu\n const shouldBeOpen = isOpen !== null ? isOpen : !li.classList.contains(\"open\");\n // Toggle the open class and aria-expanded attribute\n li.classList.toggle(\"open\", shouldBeOpen);\n const btn = li.querySelector(\"button\");\n btn.classList.toggle(\"open\");\n // Add context to screen reader text label.\n const activatingA = li.querySelector(\"a\");\n btn.setAttribute(\"aria-expanded\", shouldBeOpen);\n // Update the screen reader text based on submenu state\n const screenReaderText = btn.querySelector(\".screen-reader-text\");\n if (!screenReaderText) return;\n screenReaderText.textContent = `${shouldBeOpen ? \"Close\" : \"Open\"} submenu for \\u{201C}${activatingA.textContent}`;\n }\n // Function to close all open submenus\n function closeAllSubmenus() {\n document.querySelectorAll(\".menu-item-has-children.open\").forEach((li)=>toggleSubnav(li, false));\n }\n // Function to set the label on submenus with children\n function setSubmenuLabel(submenu) {\n const activatingA = submenu.querySelector(\"a\");\n /* Sets submenu button label, inserts it into a sr-only span in the btn. */ const buttonLabel = `Open submenu for \\u{201C}${activatingA.textContent}\\u{201D}`;\n const btn = submenu.getElementsByTagName(\"button\");\n // Create span element\n const span = document.createElement(\"span\");\n span.classList.add(\"sr-only\", \"screen-reader-text\");\n span.textContent = buttonLabel;\n // Insert span into button\n if (btn[0]) btn[0].appendChild(span);\n }\n // Loop through each menu wrapper to add event listeners and submenu labels\n for (const menuWrapper of menuWrappers){\n // Event for handling clicks on submenu buttons\n menuWrapper.addEventListener(\"click\", (event)=>{\n const button = event.target.closest(\".btn-nav-dropdown\");\n if (button) {\n event.stopPropagation();\n const li = button.closest(\".menu-item-has-children\");\n toggleSubnav(li);\n }\n });\n // Handling focus change to close submenus when focus moves out of them\n menuWrapper.addEventListener(\"focusin\", (event)=>{\n if (!event.target.closest(\".menu-item-has-children.open\")) closeAllSubmenus();\n });\n /**\n\t\t * Close when user clicks outside of the submenu.\n\t\t *\n\t\t * @param {object} links - Submenus.\n\t\t */ document.addEventListener(\"click\", (event)=>{\n if (!event.target.classList.contains(\"menu-main--submenu\")) closeAllSubmenus();\n });\n // Adding keyboard navigation support (Escape key to close submenus)\n menuWrapper.addEventListener(\"keydown\", (event)=>{\n if (event.key === \"Escape\") closeAllSubmenus();\n });\n // Set label on submenus with children\n for (const submenu of menuWrapper.querySelectorAll(\".menu-item-has-children\"))setSubmenuLabel(submenu);\n }\n}\n\n});\n\nparcelRegister(\"4uwyp\", function(module, exports) {\n\n$parcel$export(module.exports, \"initMobileMenu\", () => $3453374a8d4046ff$export$b61d4be8ddba9539);\nfunction $3453374a8d4046ff$export$b61d4be8ddba9539(context) {\n // Selecting elements for mobile menu functionality\n const mobileMenu = document.getElementById(\"nav-main--mobile--wrapper\");\n const btnCloseMenu = document.getElementById(\"btn-menu-mobile--close\");\n const btnOpenMenu = document.getElementById(\"btn-menu-mobile--open\");\n // Function to toggle the mobile navigation menu\n const toggleMobileMenu = (isOpen)=>{\n console.log(isOpen);\n // Toggle the open class and set focus to the appropriate button\n mobileMenu.classList.toggle(\"open\", isOpen);\n (isOpen ? mobileMenu : btnOpenMenu).focus();\n };\n // Event listeners for opening and closing the mobile menu\n btnOpenMenu.addEventListener(\"click\", ()=>toggleMobileMenu(true));\n btnCloseMenu.addEventListener(\"click\", ()=>toggleMobileMenu(false));\n // Close mobile menu with Escape key\n document.addEventListener(\"keydown\", (event)=>{\n if (event.key === \"Escape\" && mobileMenu.classList.contains(\"open\")) toggleMobileMenu(false);\n });\n}\n\n});\n\nparcelRegister(\"bx34p\", function(module, exports) {\n\n$parcel$export(module.exports, \"initTabbedContent\", () => $8655286e176f251b$export$16460fcc14781f4b);\n/* Accessible menu functions for Desktop */ function $8655286e176f251b$export$16460fcc14781f4b(context) {\n // Selecting all tab btns and content.\n const tabTitleBtns = document.querySelectorAll(\".btn--tabbed-content-title\");\n const allTabContent = document.querySelectorAll(\".tabbed-content-content-item\");\n // Function to close all open tabs.\n function closeAllTabs() {\n allTabContent.forEach((tab)=>{\n tab.classList.remove(\"open\", \"open-on-page-load\");\n });\n tabTitleBtns.forEach((btn)=>{\n btn.classList.remove(\"open\", \"open-on-page-load\");\n });\n }\n // Loop through each tab button to add event listeners and open the corresponding tab content.\n for (const tabTitleBtn of tabTitleBtns)// Event for handling clicks on submenu buttons\n tabTitleBtn.addEventListener(\"click\", (event)=>{\n // event.stopPropagation();\n closeAllTabs();\n tabTitleBtn.classList.add(\"open\");\n const dataId = tabTitleBtn.getAttribute(\"data-paragraph-id\");\n for (const tab of allTabContent)if (tab.hasAttribute(\"data-paragraph-id\") && tab.getAttribute(\"data-paragraph-id\") === dataId) tab.classList.add(\"open\");\n });\n}\n\n});\n\n\nparcelRequire(\"4aaSI\");\n((Drupal1, once1)=>{\n Drupal1.behaviors.gsMessages = {\n attach: function(context, settings) {\n once1(\"gsMessages\", \"div[data-drupal-messages]\", context).forEach(function(element) {\n const closeButton = document.createElement(\"button\");\n closeButton.classList.add(\"close\");\n closeButton.setAttribute(\"type\", \"button\");\n closeButton.setAttribute(\"data-dismiss\", \"alert\");\n closeButton.setAttribute(\"aria-label\", \"Close\");\n closeButton.onclick = function() {\n element.classList.remove(\"show\");\n };\n const closeIcon = document.createElement(\"span\");\n closeIcon.setAttribute(\"aria-hidden\", \"true\");\n closeIcon.innerHTML = \"×\";\n closeButton.appendChild(closeIcon);\n const messages = element.querySelector(\".messages\");\n messages.insertBefore(closeButton, messages.firstChild);\n element.classList.add(\"show\");\n setTimeout(function() {\n element.classList.remove(\"show\");\n }, 10000);\n });\n }\n };\n})(Drupal, once);\n\n})();\n//# sourceMappingURL=theme.js.map\n","/**\n * @file\n * Theme behavior overrides.\n * These overrides are processed by Parcel.\n */\n\nimport { initAccessibleMenu } from \"../templates/design-system/organisms/header/display/accessible-menu\";\nimport { initMobileMenu } from \"../templates/design-system/organisms/header/display/mobile-menu\";\nimport { initTabbedContent } from \"../templates/design-system/organisms/blocks/tabbed-content/display/tabbed-content\";\n\n(function (Drupal,) {\n\t\"use strict\";\n\n\t/**\n\t * Behavior description.\n\t */\n\tDrupal.behaviors.Motif = {\n\t\tattach: function (context, settings) {\n\t\t\tif (context == document) {\n\t\t\t\tinitAccessibleMenu(context);\n\t\t\t\tinitMobileMenu(context);\n\t\t\t\tinitTabbedContent(context);\n\n\t\t\t\tfor (let i = 0; i < document.links.length; i++) {\n\t\t\t\t\tconst link = document.links[i];\n\t\t\t\t\tif (link.hostname == 'eearth.io') {\n\t\t\t\t\t\t// Automatically rewrite hard-coded links to the current domain.\n\t\t\t\t\t\tlink.hostname = window.location.hostname;\n\t\t\t\t\t}\n\t\t\t\t\telse if (link.hostname != window.location.hostname) {\n\t\t\t\t\t\t// Automatically open external links in new tab.\n\t\t\t\t\t\tlink.target = '_blank';\n\t\t\t\t\t\tlink.rel = 'noopener';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t};\n})(Drupal);\n\n","/* Accessible menu functions for Desktop */\n\nexport function initAccessibleMenu(context) {\n\t// Selecting the main wrapper of the accessible menus\n\tconst menuWrappers = document.querySelectorAll('.accessible-menu');\n\n\t// Function to toggle the visibility of a submenu\n\tfunction toggleSubnav(li, isOpen = null) {\n\t\t// Determine whether to open or close the submenu\n\t\tconst shouldBeOpen = isOpen !== null ? isOpen : !li.classList.contains('open');\n\t\t// Toggle the open class and aria-expanded attribute\n\t\tli.classList.toggle('open', shouldBeOpen);\n\t\tconst btn = li.querySelector('button');\n\t\tbtn.classList.toggle(\"open\");\n\t\t// Add context to screen reader text label.\n\t\tconst activatingA = li.querySelector(\"a\");\n\t\tbtn.setAttribute('aria-expanded', shouldBeOpen);\n\t\t// Update the screen reader text based on submenu state\n\t\tconst screenReaderText = btn.querySelector('.screen-reader-text');\n\t\tif (!screenReaderText) return;\n\t\tscreenReaderText.textContent = `${shouldBeOpen ? 'Close' : 'Open'} submenu for “${activatingA.textContent}`;\n\t}\n\n\t// Function to close all open submenus\n\tfunction closeAllSubmenus() {\n\t\tdocument.querySelectorAll('.menu-item-has-children.open').forEach(li => toggleSubnav(li, false));\n\t}\n\n\t// Function to set the label on submenus with children\n\tfunction setSubmenuLabel(submenu) {\n\t\tconst activatingA = submenu.querySelector(\"a\");\n\t\t/* Sets submenu button label, inserts it into a sr-only span in the btn. */\n\t\tconst buttonLabel = `Open submenu for “${activatingA.textContent}”`;\n\t\tconst btn = submenu.getElementsByTagName('button');\n\t\t// Create span element\n\t\tconst span = document.createElement('span');\n\t\tspan.classList.add('sr-only', 'screen-reader-text');\n\t\tspan.textContent = buttonLabel;\n\t\t// Insert span into button\n\t\tif (btn[0]) {\n\t\t\tbtn[0].appendChild(span);\n\t\t}\n\t}\n\n\t// Loop through each menu wrapper to add event listeners and submenu labels\n\tfor (const menuWrapper of menuWrappers) {\n\t\t// Event for handling clicks on submenu buttons\n\t\tmenuWrapper.addEventListener('click', event => {\n\t\t\tconst button = event.target.closest('.btn-nav-dropdown');\n\t\t\tif (button) {\n\t\t\t\tevent.stopPropagation();\n\t\t\t\tconst li = button.closest('.menu-item-has-children');\n\t\t\t\ttoggleSubnav(li);\n\t\t\t}\n\t\t});\n\n\t\t// Handling focus change to close submenus when focus moves out of them\n\t\tmenuWrapper.addEventListener('focusin', event => {\n\t\t\tif (!event.target.closest('.menu-item-has-children.open')) {\n\t\t\t\tcloseAllSubmenus();\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Close when user clicks outside of the submenu.\n\t\t *\n\t\t * @param {object} links - Submenus.\n\t\t */\n\t\tdocument.addEventListener(\"click\", (event) => {\n\t\t\tif (\n\t\t\t\t!event.target.classList.contains(\"menu-main--submenu\")\n\t\t\t) {\n\t\t\t\tcloseAllSubmenus();\n\t\t\t}\n\t\t});\n\n\t\t// Adding keyboard navigation support (Escape key to close submenus)\n\t\tmenuWrapper.addEventListener('keydown', event => {\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\tcloseAllSubmenus();\n\t\t\t}\n\t\t});\n\n\t\t// Set label on submenus with children\n\t\tfor (const submenu of menuWrapper.querySelectorAll('.menu-item-has-children')) {\n\t\t\tsetSubmenuLabel(submenu);\n\t\t}\n\t}\n}\n","export function initMobileMenu(context) {\n\t// Selecting elements for mobile menu functionality\n\tconst mobileMenu = document.getElementById('nav-main--mobile--wrapper');\n\tconst btnCloseMenu = document.getElementById('btn-menu-mobile--close');\n\tconst btnOpenMenu = document.getElementById('btn-menu-mobile--open');\n\n\t// Function to toggle the mobile navigation menu\n\tconst toggleMobileMenu = (isOpen) => {\n\t\tconsole.log(isOpen);\n\t\t// Toggle the open class and set focus to the appropriate button\n\t\tmobileMenu.classList.toggle('open', isOpen);\n\t\t(isOpen ? mobileMenu : btnOpenMenu).focus();\n\t};\n\n\t// Event listeners for opening and closing the mobile menu\n\tbtnOpenMenu.addEventListener('click', () => toggleMobileMenu(true));\n\tbtnCloseMenu.addEventListener('click', () => toggleMobileMenu(false));\n\n\t// Close mobile menu with Escape key\n\tdocument.addEventListener('keydown', event => {\n\t\tif (event.key === 'Escape' && mobileMenu.classList.contains('open')) {\n\t\t\ttoggleMobileMenu(false);\n\t\t}\n\t});\n}\n","/* Accessible menu functions for Desktop */\n\nexport function initTabbedContent(context) {\n\t// Selecting all tab btns and content.\n\tconst tabTitleBtns = document.querySelectorAll('.btn--tabbed-content-title');\n\tconst allTabContent = document.querySelectorAll('.tabbed-content-content-item');\n\n\t// Function to close all open tabs.\n\tfunction closeAllTabs() {\n\t\tallTabContent.forEach((tab) => {\n\t\t\ttab.classList.remove('open', 'open-on-page-load');\n\t\t});\n\t\ttabTitleBtns.forEach((btn) => {\n\t\t\tbtn.classList.remove('open', 'open-on-page-load');\n\t\t});\n\t}\n\n\t// Loop through each tab button to add event listeners and open the corresponding tab content.\n\tfor (const tabTitleBtn of tabTitleBtns) {\n\t\t// Event for handling clicks on submenu buttons\n\t\ttabTitleBtn.addEventListener('click', event => {\n\t\t\t// event.stopPropagation();\n\t\t\tcloseAllTabs();\n\t\t\ttabTitleBtn.classList.add('open');\n\t\t\tconst dataId = tabTitleBtn.getAttribute('data-paragraph-id');\n\t\t\tfor ( const tab of allTabContent ) {\n\t\t\t\tif (tab.hasAttribute('data-paragraph-id') && tab.getAttribute('data-paragraph-id') === dataId) {\n\t\t\t\t\ttab.classList.add('open');\n\t\t\t\t}\n\t\t\t};\n\t\t});\n\t}\n\n}\n","import \"./drupal-behaviors\";\n\n((Drupal, once) => {\n Drupal.behaviors.gsMessages = {\n attach: function (context, settings) {\n once('gsMessages', 'div[data-drupal-messages]', context).forEach(\n function (element) {\n const closeButton = document.createElement('button');\n closeButton.classList.add('close');\n closeButton.setAttribute('type', 'button');\n closeButton.setAttribute('data-dismiss', 'alert');\n closeButton.setAttribute('aria-label', 'Close');\n closeButton.onclick = function() {\n element.classList.remove('show');\n };\n const closeIcon = document.createElement('span');\n closeIcon.setAttribute('aria-hidden', 'true');\n closeIcon.innerHTML = '×';\n closeButton.appendChild(closeIcon);\n const messages = element.querySelector('.messages');\n messages.insertBefore(closeButton, messages.firstChild);\n\n element.classList.add('show');\n setTimeout(function(){ element.classList.remove('show'); }, 10000);\n }\n ); \n }\n }\n})(Drupal, once);"],"names":["$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","Drupal1","once1","$parcel$global","globalThis","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","$bsteN","$4uwyp","$bx34p","Drupal","behaviors","Motif","attach","context","settings","document","initAccessibleMenu","initMobileMenu","initTabbedContent","i","links","length","link","hostname","window","location","target","rel","$8578fd3348ef8a7d$export$1d453331399fa824","toggleSubnav","li","isOpen","shouldBeOpen","classList","contains","toggle","btn","querySelector","activatingA","setAttribute","screenReaderText","textContent","closeAllSubmenus","querySelectorAll","forEach","menuWrapper","submenu","addEventListener","event","button","closest","stopPropagation","key","setSubmenuLabel","buttonLabel","getElementsByTagName","span","createElement","add","appendChild","$3453374a8d4046ff$export$b61d4be8ddba9539","mobileMenu","getElementById","btnCloseMenu","btnOpenMenu","toggleMobileMenu","console","log","focus","$8655286e176f251b$export$16460fcc14781f4b","tabTitleBtns","allTabContent","tabTitleBtn","tab","remove","dataId","getAttribute","hasAttribute","once","gsMessages","element","closeButton","onclick","closeIcon","innerHTML","messages","insertBefore","firstChild","setTimeout"],"version":3,"file":"theme.js.map"}