/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ (function(Drupal,once){'use strict';Drupal.behaviors.glimpsMobileMenu={attach:function attach(context,settings){once('glimpsMobileMenu','#openmobile',context).forEach(function(element){element.addEventListener('click',(event)=>{element.classList.toggle('show');document.querySelector('.block--globalnavigationright').classList.toggle('show');});});}};Drupal.behaviors.glimpsSearchFilters={attach:function attach(context,settings){once('glimpsSearchFilters','.mobile-filters-menu',context).forEach(function(element){element.addEventListener('click',(event)=>{document.querySelector('.sidebar-search').classList.add('mobile-menu');});});once('glimpsSearchFiltersClose','.btn-close',context).forEach(function(element){element.addEventListener('click',(event)=>{document.querySelector('.sidebar-search').classList.remove('mobile-menu');});});}};Drupal.behaviors.showMoreMenu={attach:function attach(context,settings){once('showMoreMenu','.page-header-menu-main',context).forEach(function(){function handleNavigationResize(){const divElement=document.querySelector('.block--mainnavigation');const originalWidth=divElement.offsetWidth;const originalOverflow=divElement.style.overflow;divElement.style.overflow='visible';const divWidth=divElement.offsetWidth;divElement.style.overflow=originalOverflow;const ulElement=divElement.querySelector('.block--mainnavigation > ul');const moremenuarrowElement=ulElement.querySelector('.moremenuarrow');if(divWidth>originalWidth&&!moremenuarrowElement){const newDiv=document.createElement('div');newDiv.className='moremenuarrow';ulElement.appendChild(newDiv);ulElement.classList.add('pe-6');}else{if(divWidth<=originalWidth&&moremenuarrowElement){moremenuarrowElement.remove();ulElement.classList.remove('pe-6');}}}window.addEventListener('load',handleNavigationResize);window.addEventListener('resize',handleNavigationResize);});}};})(Drupal,once);; /* @license MIT https://github.com/michalsnik/aos/blob/master/LICENSE */ (function($,_,Drupal,drupalSettings){"use strict";Drupal.behaviors.scrollEffectsInit={attach:function(context,settings){AOS.init();}};})(window.jQuery,window._,window.Drupal,window.drupalSettings);; /* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ (function(Drupal,drupalSettings){"use strict";drupalSettings.antibot=drupalSettings.antibot||{};Drupal.antibot={};Drupal.behaviors.antibot={attach:function(context,settings){drupalSettings=settings;drupalSettings.antibot.human=false;document.body.addEventListener('mousemove',function(){Drupal.antibot.unlockForms();});document.body.addEventListener('touchmove',function(){Drupal.antibot.unlockForms();});document.body.addEventListener('keydown',function(e){if((e.code=='Tab')||(e.code=='Enter'))Drupal.antibot.unlockForms();});}};Drupal.antibot.unlockForms=function(){if(!drupalSettings.antibot.human){if(drupalSettings.antibot.forms!=undefined)Object.values(drupalSettings.antibot.forms).forEach(function(config){const form=document.getElementById(config.id);if(form){form.setAttribute('action',form.getAttribute('data-action'));const input=form.querySelector('input[name="antibot_key"]');if(input)input.value=config.key.split("").reverse().join("").match(/.{1,2}/g).map((value)=>value.split("").reverse().join("")).join("");}});drupalSettings.antibot.human=true;}};})(Drupal,drupalSettings);; (function($,Drupal){function DropButton(dropbutton,settings){const options=$.extend({title:Drupal.t('List additional actions')},settings);const $dropbutton=$(dropbutton);this.$dropbutton=$dropbutton;this.$list=$dropbutton.find('.dropbutton');this.$actions=this.$list.find('li').addClass('dropbutton-action');if(this.$actions.length>1){const $primary=this.$actions.slice(0,1);const $secondary=this.$actions.slice(1);$secondary.addClass('secondary-action');$primary.after(Drupal.theme('dropbuttonToggle',options));this.$dropbutton.addClass('dropbutton-multiple').on({'mouseleave.dropbutton':this.hoverOut.bind(this),'mouseenter.dropbutton':this.hoverIn.bind(this),'focusout.dropbutton':this.focusOut.bind(this),'focusin.dropbutton':this.focusIn.bind(this)});}else this.$dropbutton.addClass('dropbutton-single');}function dropbuttonClickHandler(e){e.preventDefault();$(e.target).closest('.dropbutton-wrapper').toggleClass('open');}Drupal.behaviors.dropButton={attach(context,settings){const dropbuttons=once('dropbutton','.dropbutton-wrapper',context);if(dropbuttons.length){const body=once('dropbutton-click','body');if(body.length)$(body).on('click','.dropbutton-toggle',dropbuttonClickHandler);dropbuttons.forEach((dropbutton)=>{DropButton.dropbuttons.push(new DropButton(dropbutton,settings.dropbutton));});}}};$.extend(DropButton,{dropbuttons:[]});$.extend(DropButton.prototype,{toggle(show){const isBool=typeof show==='boolean';show=isBool?show:!this.$dropbutton.hasClass('open');this.$dropbutton.toggleClass('open',show);},hoverIn(){if(this.timerID)window.clearTimeout(this.timerID);},hoverOut(){this.timerID=window.setTimeout(this.close.bind(this),500);},open(){this.toggle(true);},close(){this.toggle(false);},focusOut(e){this.hoverOut.call(this,e);},focusIn(e){this.hoverIn.call(this,e);}});$.extend(Drupal.theme,{dropbuttonToggle(options){return `
`;}});Drupal.DropButton=DropButton;})(jQuery,Drupal);;