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Ac,EAAO5D,SAAS6D,uBAAuB,sBAG3C,IAAKf,EAAI,EAAGA,EAAIc,EAAKb,OAAQD,IAC3Bc,EAAKd,GAAGtB,iBAAiB,SAAS,WAChCsC,KAAKrC,UAAUC,OAAO,UACtB,IAAIqC,EAAUD,KAAKE,mBACfD,EAAQzD,MAAMa,UAChB4C,EAAQzD,MAAMa,UAAY,KAE1B4C,EAAQzD,MAAMa,UAAY4C,EAAQE,aAAe,IAErD,G","sources":["webpack://web/./design-system/layout/mainheader/mainheader.js","webpack://web/./design-system/components/hamburger/hamburger.js","webpack://web/./design-system/components/gallery/gallery.js","webpack://web/./design-system/components/collapsible/collapsible.js"],"sourcesContent":["window.lastWidth = 0;\n\nwindow.onload = function () {\n updateNavPos();\n window.lastWidth = window.innerWidth;\n};\n\nwindow.onresize = function () {\n updateNavPos();\n window.lastWidth = window.innerWidth;\n};\n\nfunction updateNavPos() {\n // Get the floating navigation element\n const navigation = document.querySelector(\".floating-nav\");\n\n // Calculate the height of the navigation\n const navigationHeight = navigation.offsetHeight;\n\n // Get the active menu area element\n const menuArea = document.querySelector(\".menu-area.is-active\");\n\n // Get the menu area element\n const menuAreaPos = document.querySelector(\".menu-area\");\n\n const layoutContainer = document.querySelector(\".layout-container\");\n\n // Set the body's top margin to accommodate the navigation height\n // NOTE: this is no longer necessary because it's explicitly set in CSS\n layoutContainer.style.paddingTop = navigationHeight + \"px\";\n\n // Position the navigation element relative to the header\n navigation.style.left =\n document.querySelector(\".region-header\").getBoundingClientRect().left +\n \"px\";\n navigation.style.width =\n document.querySelector(\".region-header\").getBoundingClientRect().width +\n \"px\";\n\n // play games with the menu styles when transitioning between mobile and desktop\n if (menuAreaPos) {\n const navPos = navigation.getBoundingClientRect();\n menuAreaPos.style.top = navPos.top + navPos.height + \"px\";\n if (window.innerWidth >= 1024) {\n menuAreaPos.style.top = null;\n menuAreaPos.style.transition = null;\n }\n }\n\n // Check if there is an active menu area\n if (menuArea) {\n // Get the bounding rectangle of the menu area\n const menuAreaRect = menuArea.getBoundingClientRect();\n\n // Check if the menu area is partially hidden at the bottom of the viewport\n if (window.innerHeight < menuAreaRect.top + menuAreaRect.height) {\n // Set the max height of the menu area to fit within the remaining viewport height\n menuArea.style.maxHeight =\n window.innerHeight - menuAreaRect.top - 5 + \"px\";\n } else {\n // Remove the inline style from the menu area\n menuArea.style.maxHeight = null;\n }\n }\n}\n","// Select the hamburger menu and menu area elements\nconst hamburger = document.querySelector('.hamburger');\nconst menuArea = document.querySelector('.menu-area');\n\n// Add event listener for click on the hamburger menu\nhamburger.addEventListener('click', () => {\n // Toggle the 'is-active' class on the hamburger menu\n hamburger.classList.toggle('is-active');\n\n // Remove inline styles from the menu area\n menuArea.style.maxHeight= null;\n menuArea.style.transition= \"max-height 0.5s\";\n\n // Check if hamburger menu is active\n if (hamburger.classList.contains('is-active')) {\n // Add the 'is-active' class to the menu area\n menuArea.classList.add('is-active');\n\n // Get the menu area with the 'is-active' class\n const menuArea2 = document.querySelector('.menu-area.is-active');\n\n // Check if the menu area exists\n if (menuArea2) {\n // Get the bounding rectangle of the menu area\n const trect = menuArea2.getBoundingClientRect();\n\n // Set the max height of the menu area to fit within the remaining viewport height\n menuArea2.style.maxHeight = ((window.innerHeight - trect.top) - 5) + \"px\";\n }\n } else {\n // Remove the 'is-active' class from the menu area\n menuArea.classList.remove('is-active');\n }\n});\n\n// Select all submenus within the menu area\nconst submenus = document.querySelectorAll('.menu-area .menu-item--expanded');\n\n// Loop through each submenu and add click event listener to its parent link\nsubmenus.forEach((mitem) => {\n const plink = mitem.querySelector('a');\n plink.addEventListener('click', (e) => {\n e.preventDefault();\n\n // Get the submenu element\n const telem = mitem.querySelector('.menu');\n\n // Get the link element\n const tlink = mitem.querySelector('a');\n\n // Check if the submenu is expanded\n if (parseInt(window.getComputedStyle(telem).maxHeight) > 0) {\n // Collapse the submenu\n telem.style.maxHeight = '0px';\n telem.classList.remove('opened');\n tlink.classList.remove('opened');\n } else {\n // close all of the menus\n submenus.forEach((mitem2) => {\n const telem2 = mitem2.querySelector('.menu');\n telem2.style.maxHeight = '0px';\n telem2.classList.remove('opened');\n const tlink2 = mitem2.querySelector('a');\n tlink2.classList.remove('opened');\n });\n\n // Expand the submenu\n var getheight= telem.querySelectorAll(\"li\");\n// telem.style.maxHeight = ((40 * getheight.length) + 50) + \"px\"; //'700px';\n\n var totalHeight = 0;\n\n // Calculate the total height of all li elements\n for (var i = 0; i < getheight.length; i++) {\n totalHeight += getheight[i].offsetHeight + 15;\n }\n totalHeight+=50;\n // Set the maxHeight of telem to the total height of the li elements\n telem.style.maxHeight = (totalHeight) + \"px\";\n\n telem.classList.add('opened');\n tlink.classList.add('opened');\n\n // Get the menu area with the 'is-active' class\n const menuArea2 = document.querySelector('.menu-area.is-active');\n\n // Check if the menu area exists\n if (menuArea2) {\n // Get the bounding rectangle of the menu area\n const trect = menuArea2.getBoundingClientRect();\n\n // Set the max height of the menu area to fit within the remaining viewport height\n menuArea2.style.maxHeight = ((window.innerHeight - trect.top) - 5) + \"px\";\n }\n }\n\n return false;\n });\n});\n\n","(function ($, Drupal) {\n Drupal.behaviors.glightbox = {\n attach: function (context, settings) {\n const lightbox = GLightbox({\n touchNavigation: true,\n loop: true,\n autoplayVideos: true\n });\n },\n};\n})(jQuery, Drupal);\n","var coll = document.getElementsByClassName(\"collapsible-button\");\nvar i;\n\nfor (i = 0; i < coll.length; i++) {\n coll[i].addEventListener(\"click\", function() {\n this.classList.toggle(\"active\");\n var content = this.nextElementSibling;\n if (content.style.maxHeight){\n content.style.maxHeight = null;\n } else {\n content.style.maxHeight = content.scrollHeight + \"px\";\n }\n });\n}"],"names":["updateNavPos","navigation","document","querySelector","navigationHeight","offsetHeight","menuArea","menuAreaPos","style","paddingTop","left","getBoundingClientRect","width","navPos","top","height","window","innerWidth","transition","menuAreaRect","innerHeight","maxHeight","lastWidth","onload","onresize","hamburger","addEventListener","classList","toggle","contains","add","menuArea2","trect","remove","submenus","querySelectorAll","forEach","mitem","e","preventDefault","telem","tlink","parseInt","getComputedStyle","mitem2","telem2","getheight","totalHeight","i","length","$","Drupal","behaviors","glightbox","attach","context","settings","GLightbox","touchNavigation","loop","autoplayVideos","jQuery","coll","getElementsByClassName","this","content","nextElementSibling","scrollHeight"],"sourceRoot":""}