1+function($){"use strict";var $menu=$("#caritasMenu");var $breadcrumb=$("body").find(".breadcrumb");var keyTabs=9;var keyEnter=13;var keyEsc=27;var keyUp=38;var keyRight=39;var keyDown=40;var keyLeft=37;function usingKeyboard(){document.body.classList.remove("using-mouse");document.body.classList.add("using-keyboard")}function usingMouse(){document.body.classList.add("using-mouse");document.body.classList.remove("using-keyboard")}var swiperSlider=document.querySelectorAll(".swiper-container");var elementClicked=false;for(var i=0;swiperSlider.length>i;i++){swiperSlider[i].addEventListener("click",function handleClick(){if(document.body.classList.contains("using-keyboard")){usingMouse()}if(elementClicked){usingMouse()}elementClicked=true})}document.body.addEventListener("mousedown",function(){usingMouse()});document.body.addEventListener("keydown",function(event){usingKeyboard()});$(window).keyup(function(e){var code=e.keyCode?e.keyCode:e.which;if(code==keyEnter&&$(".ik-volunteeractivity-form-20 .collapse-btn:focus").length){$(".ik-volunteeractivity-form-20 .collapse-btn:focus").each(function(){$("#collapse-area").find(".vollunteers-wrapper:first-child .selectpicker-button").focus()})}if(code==keyTabs&&$(".using-keyboard #contentwrapper .card.element-item a:focus, .using-keyboard #contentwrapper .card-to-focus.element-item a:focus, .using-keyboard #contentwrapper .news-teaser-item .news-text a").length){$(".using-keyboard #contentwrapper .card.element-item a, .using-keyboard #contentwrapper .card-to-focus.element-item a, .using-keyboard #contentwrapper .news-teaser-item .news-text a").focus(function(){$(this).closest(".element-item, .news-teaser-item").addClass("focused")});$(".using-keyboard #contentwrapper .card.element-item a, .using-keyboard #contentwrapper .card-to-focus.element-item a, .using-keyboard #contentwrapper .news-teaser-item .news-text a").blur(function(){$(this).closest(".element-item, .news-teaser-item").removeClass("focused")})}if(code==keyTabs&&$(".using-keyboard #contentwrapper .tb-surface.tp-lg-bottom .tbt-teaser-link").length){$(".using-keyboard #contentwrapper .tb-surface.tp-lg-bottom .tbt-teaser-link").focus(function(){$(this).closest(".tb-surface.tp-lg-bottom").addClass("focused")});$(".using-keyboard #contentwrapper .tb-surface.tp-lg-bottom .tbt-teaser-link").blur(function(){$(this).closest(".tb-surface.tp-lg-bottom").removeClass("focused")})}if(code==keyTabs&&$(".using-keyboard #contentwrapper .custom-file-input").length){$(".using-keyboard #contentwrapper .custom-file-input").focus(function(){$(this).closest(".custom-file-container").addClass("focused")});$(".using-keyboard #contentwrapper .custom-file-input").blur(function(){$(this).closest(".custom-file-container").removeClass("focused")})}if(code==keyTabs&&$('.using-keyboard .contact-sticky .sticky-container a[tabindex="0"]').length){$('.using-keyboard .contact-sticky .sticky-container a[tabindex="0"]').focus(function(){$(this).closest(".using-keyboard .contact-sticky").addClass("sticky-focused")});$('.using-keyboard .contact-sticky .sticky-container a[tabindex="0"]').blur(function(){$(this).closest(".using-keyboard .contact-sticky").removeClass("sticky-focused")})}if(code==keyTabs&&$('.using-keyboard .sm-dropdown-item[tabindex="0"]').length){$('.using-keyboard .sm-dropdown-item[tabindex="0"]').focus(function(){$(this).closest(".using-keyboard .sm-menu-item").addClass("focused")});$('.using-keyboard .sm-dropdown-item[tabindex="0"]').blur(function(){$(this).closest(".using-keyboard .sm-menu-item").removeClass("focused")})}if(code==keyTabs&&$('.using-keyboard.sticky-overflow .accessibility-navbar ul li a[tabindex="0"]:focus').length||code==keyTabs&&$('.using-keyboard.sticky-overflow .breadcrumb li.breadcrumb-item a[tabindex="0"]:focus').length){$('.using-keyboard.sticky-overflow .accessibility-navbar ul li a[tabindex="0"], .using-keyboard.sticky-overflow .breadcrumb li.breadcrumb-item a[tabindex="0"]').focus(function(){closeStickyContact()})}});if(document.querySelector("nav")!==null){var accessibilityTabNavigation=function accessibilityTabNavigation(){var accessibilityTabNavVisible="accessibilityTabNav-visible";document.addEventListener("keyup",accessibilityTabNav);function accessibilityTabNav(e){if(e.keyCode===keyTabs){if($(e.target).hasClass("hashtag")&&$("body").hasClass("using-keyboard")){$(".navbar-container").addClass(accessibilityTabNavVisible)}else{$(".navbar-container").removeClass(accessibilityTabNavVisible)}}}var accessibilityLinkToNavigation=document.getElementById("access-quicklink-menu");accessibilityLinkToNavigation.addEventListener("keyup",function(event){if(event.keyCode===keyEnter){event.preventDefault();accessibilityLinkToNavigation.click();$(".navbar-container").removeClass(accessibilityTabNavVisible)}});document.getElementById("access-quicklink-menu").onclick=function(){toggleNavigation()};function toggleNavigation(){$menu.each(function(){$(this).find(".navbar-nav .navbar-item").first().focus()})}$("#accessibilityTabNav .hashtag").keypress(function(event){if(event.which==keyEnter){if($(event.target).hasClass("hashtag")&&!$(event.target).hasClass("access-quicklink-menu")){$(".navbar-container").removeClass(accessibilityTabNavVisible);var windowLocation=$(event.target).find("a").attr("href");event.preventDefault();var hash=windowLocation;$("html, body").animate({scrollTop:$(hash).offset().top},800,function(){window.location.hash=hash})}}})};function closeNavigation(){$(".navbar-item").removeClass("nav-item-focused").blur();$(".dropdown-menu-level-zero").removeClass("dropdown-menu-level-one-focus dropdown-menu-level-two-focus");$(".showed-one, .showed-two").removeClass("showed-one showed-two");$(".dropdown-menu").removeClass("opened-one opened-two");$(".navbar-item").blur()}var navArrowKeys=function navArrowKeys(){document.addEventListener("keydown",handleNavbaritemFocusTransfer);function handleNavbaritemFocusTransfer(e){var focusableNavbaritemElements=document.querySelectorAll(".using-keyboard .navbar-expand-lg .navbar-nav > .navbar-item");var focusable=_toConsumableArray(focusableNavbaritemElements);var index=focusable.indexOf(document.activeElement);var nextIndex=0;if($(e.target).hasClass("navbar-item")){if(e.keyCode===keyLeft){e.preventDefault();nextIndex=index>0?index-1:0;if(focusableNavbaritemElements[nextIndex]){focusableNavbaritemElements[nextIndex].focus()}}else if(e.keyCode===keyRight){e.preventDefault();
1nextIndex=index+1<focusable.length?index+1:index;if(focusableNavbaritemElements[nextIndex]){focusableNavbaritemElements[nextIndex].focus()}}}}document.addEventListener("keydown",handleDropdownMenuFocusTransfer);function handleDropdownMenuFocusTransfer(e){if($(e.target).hasClass("dropdown-list")||$(e.target).hasClass("nav-item-focused")||$(e.target).hasClass("sub-dropdown")){var focusableDropdownMenuItemElements=document.querySelectorAll(".using-keyboard .navbar-expand-lg .navbar-nav .nav-item-focused > .dropdown-menu > li");var focusable=_toConsumableArray(focusableDropdownMenuItemElements);var index=focusable.indexOf(document.activeElement);var nextIndex=0;if(e.keyCode===keyUp){e.preventDefault();nextIndex=index>0?index-1:0;if(focusableDropdownMenuItemElements[nextIndex]){focusableDropdownMenuItemElements[nextIndex].focus()}if(index===0){$(e.target).closest(".nav-item-focused").focus();focusableDropdownMenuItemElements[index].blur()}}else if(e.keyCode===keyDown){e.preventDefault();nextIndex=index+1<focusable.length?index+1:index;if($(e.target).hasClass("nav-item-focused")){$(e.target).find(".dropdown-menu > li:not(.toggler-back)").first().focus()}else if(focusableDropdownMenuItemElements[nextIndex]){focusableDropdownMenuItemElements[nextIndex].focus()}}else if(e.keyCode===keyRight&&$(e.target).hasClass("sub-dropdown")){e.preventDefault();$(e.target).closest(".dropdown-menu-level-zero").addClass("dropdown-menu-level-one-focus");$(e.target).addClass("showed-one");$(e.target).find(".dropdown-menu").first().addClass("opened-one");$(e.target).blur();$(".opened-one").find(".dropdown-list-2").first().focus()}}else if(e.keyCode===keyTabs&&$(e.target).hasClass("toggler-last-child")){var focusableDropdownMenuItemElements=document.querySelectorAll(".using-keyboard .navbar-expand-lg .navbar-nav .nav-item-focused > .dropdown-menu > li");var focusable=_toConsumableArray(focusableDropdownMenuItemElements);var index=focusable.indexOf(document.activeElement);var nextIndex=0;e.preventDefault();var navParent=$(e.target).closest(".nav-level-1");if(navParent.hasClass("nav-level-1-last")){closeNavigation()}else{navParent.next().focus()}}else if($(e.target).hasClass("dropdown-list-2")){var _focusableDropdownMenuItemElements=document.querySelectorAll(".using-keyboard .navbar-expand-lg .navbar-nav .nav-item-focused > .dropdown-menu > li.showed-one > .dropdown-menu.opened-one > li:not(.toggler-back)");var _focusable=_toConsumableArray(_focusableDropdownMenuItemElements);var _index=_focusable.indexOf(document.activeElement);var _nextIndex=0;if(e.keyCode===keyUp){e.preventDefault();_nextIndex=_index>0?_index-1:0;if(_focusableDropdownMenuItemElements[_nextIndex]){_focusableDropdownMenuItemElements[_nextIndex].focus()}}else if(e.keyCode===keyDown){e.preventDefault();_nextIndex=_index+1<_focusable.length?_index+1:_index;if($(e.target).hasClass("nav-item-focused")){$(e.target).find(".dropdown-menu > li:not(.toggler-back)").first().focus()}else if(_focusableDropdownMenuItemElements[_nextIndex]){_focusableDropdownMenuItemElements[_nextIndex].focus()}}else if(e.keyCode===keyRight&&$(e.target).hasClass("dropdown-submenu")){e.preventDefault();$(e.target).closest(".dropdown-menu-level-zero").addClass("dropdown-menu-level-two-focus");$(e.target).addClass("showed-two");$(e.target).find(".dropdown-menu").first().addClass("opened-two");$(e.target).blur();$(".opened-two").find(".dropdown-list-3").first().focus()}else if(e.keyCode===keyTabs&&$(e.target).hasClass("dropdown-list-2 nav-item-last-child")){e.preventDefault();$(".opened-one > .toggler-back").focus()}else if(_index===0){if(e.keyCode===keyLeft){$(e.target).blur();$(e.target).closest(".showed-one").removeClass("showed-one").focus();$(e.target).closest(".dropdown-menu").removeClass("opened-one");$(e.target).closest(".dropdown-menu-level-zero").removeClass("dropdown-menu-level-one-focus")}}}else if(e.keyCode===keyTabs&&$(e.target).hasClass("toggler-last-child-2")){e.preventDefault();$(".opened-one > .toggler-back").focus()}else if($(e.target).hasClass("dropdown-list-3")){var _focusableDropdownMenuItemElements2=document.querySelectorAll(".using-keyboard .navbar-expand-lg .navbar-nav .nav-item-focused > .dropdown-menu > li.showed-one > .dropdown-menu.opened-one > li.showed-two > .opened-two > li:not(.toggler-back) ");var _focusable2=_toConsumableArray(_focusableDropdownMenuItemElements2);var _index2=_focusable2.indexOf(document.activeElement);var _nextIndex2=0;if(e.keyCode===keyUp){e.preventDefault();_nextIndex2=_index2>0?_index2-1:0;if(_focusableDropdownMenuItemElements2[_nextIndex2]){_focusableDropdownMenuItemElements2[_nextIndex2].focus()}}else if(e.keyCode===keyDown){e.preventDefault();_nextIndex2=_index2+1<_focusable2.length?_index2+1:_index2;if($(e.target).hasClass("nav-item-focused")){$(e.target).find(".dropdown-menu > li:not(.toggler-back)").first().focus()}else if(_focusableDropdownMenuItemElements2[_nextIndex2]){_focusableDropdownMenuItemElements2[_nextIndex2].focus()}}else if(e.keyCode===keyTabs&&$(e.target).hasClass("dropdown-list-3 nav-item-last-child")){e.preventDefault();$(".opened-two > .toggler-back").focus()}else if(_index2===0){if(e.keyCode===keyLeft){$(e.target).blur();$(e.target).closest(".dropdown-menu-level-zero").removeClass("dropdown-menu-level-two-focus");$(e.target).closest(".showed-two").removeClass("showed-two").focus();$(e.target).closest(".dropdown-menu").removeClass("opened-two")}}}else if(e.keyCode===keyTabs&&$(e.target).hasClass("toggler-last-child-3")){var _focusableDropdownMenuItemElements=document.querySelectorAll(".using-keyboard .navbar-expand-lg .navbar-nav .nav-item-focused > .dropdown-menu > li.showed-one > .dropdown-menu.opened-one > li:not(.toggler-back)");var _focusable=_toConsumableArray(_focusableDropdownMenuItemElements);var _index=_focusable.indexOf(document.activeElement);var _nextIndex=0;e.preventDefault();$(".opened-two > .toggler-back").focus()}}};accessibilityTabNavigation();navArrowKeys();$(document).on("mouseup keydown",function(e){if(!$menu.is(e.target)&&$menu.has(e.target).length===0||e.keyCode===keyEsc){closeNavigation()}});if($(".breadcrumb li").length){$(".breadcrumb > li:not(:nth-last-child(2)):not(:nth-last-child(3)):not(:last-of-type)").each(function(){$(this).addClass("breadcrumb-d-none")});$breadcrumb.find("li:not(.breadcrumb-d-none)").each(function(){$(this).addClass("breadcrumb-d-block");$(".breadcrumb-d-block").each(function(i){var breadcrumbItemId=i+1;$(this).attr("id","breadcrumb-item-"+breadcrumbItemId)})});$(document).on("keyup",function(e){if(e.keyCode===keyEsc){closeNavigation();if($(".langselect-item:first-of-type").length){$(".navbar-item").blur();$(".langselect-item:first-of-type a").focus()}else if($(".breadcrumb > li").length){$breadcrumb.addClass("slideInDown").removeClass("slideInUp");$(".navbar-item").blur();$("#breadcrumb-item-1").find("a").focus()}}})}else{$(document).on("keyup",function(e){if(e.keyCode===keyEsc){closeNavigation()}})}$(".navbar-item").each(function(){$(this).focus(function(){$(".navbar-item").removeClass("nav-item-focused");$(this).addClass("nav-item-focused")})});$(document).on("keypress",function(e){if(e.which==keyEnter){if($(e.target).hasClass("nav-item")||$(e.target).hasClass("dropdown-list")){var windowLocation=$(e.target).find("a:not(.toggler)").attr("href");if(windowLocation==="javascript:;"){console.log("toggler")}else{window.location=windowLocation}}else if($(e.target).hasClass("navbar-brand")){var windowLocation=$(e.target).attr("href");window.location=windowLocation}}});
1if($(".navbar-item.nav-level-1").length){$(".navbar-item.nav-level-1").each(function(i){var lastChild=$(".navbar-item.nav-level-1").length;var navLevelOneId=i+1;$(this).attr("id","nav-level-1-"+navLevelOneId);$("#nav-level-1-"+lastChild).addClass("nav-level-1-last")})}if($(".navbar.navbar-expand-lg .navbar-nav .dropdown-menu").length){$(".navbar.navbar-expand-lg .navbar-nav .dropdown-menu").each(function(){var listLastChild=$(this).find("li:last-child");listLastChild.each(function(){$(this).addClass("nav-item-last-child");if($(this).hasClass("custom-dropdown")){$(this).removeClass("nav-item-last-child").addClass("custom-dropdown-last-child").find(".toggler").addClass("toggler-last-child");if($(".custom-dropdown-last-child").hasClass("dropdown-list-2")){$(this).addClass("custom-dropdown-last-child-2").find(".toggler").addClass("toggler-last-child-2").removeClass("toggler-last-child")}else if($(".custom-dropdown-last-child").hasClass("dropdown-list-3")){$(this).addClass("custom-dropdown-last-child-3").find(".toggler").addClass("toggler-last-child-3").removeClass("toggler-last-child")}}if($(this).hasClass("toggler-back")){$(this).removeClass("nav-item-last-child").prev(".nav-item").addClass("nav-item-last-child level-1-last-child");$(".level-1-last-child").each(function(){if($(this).hasClass("custom-dropdown")){$(this).removeClass("nav-item-last-child").addClass("custom-dropdown-last-child").find(".toggler").addClass("toggler-last-child")}})}})})}$(window).keyup(function(e){var code=e.keyCode?e.keyCode:e.which;if(code==keyEnter&&$(".custom-toggler-back-one:focus").length||code==keyTabs&&$(".custom-toggler-back-one:focus").length){$(".custom-toggler-back-one:focus").each(function(){var listParent=$(this);listParent.blur();listParent.closest(".showed-one").removeClass("showed-one").focus();listParent.closest(".dropdown-menu").removeClass("opened-one");listParent.closest(".dropdown-menu-level-zero").removeClass("dropdown-menu-level-one-focus")})}else if(code==keyEnter&&$(".custom-toggler-back-two:focus").length||code==keyTabs&&$(".custom-toggler-back-two:focus").length){$(".custom-toggler-back-two:focus").each(function(){var listParent=$(this);listParent.blur();listParent.closest(".dropdown-menu-level-zero").removeClass("dropdown-menu-level-two-focus");listParent.closest(".showed-two").removeClass("showed-two").focus();listParent.closest(".dropdown-menu").removeClass("opened-two")})}else if(code==keyEnter&&$(".custom-toggler:focus").length){$(".custom-toggler:focus").each(function(){var listParent=$(this).closest(".sub-dropdown");listParent.closest(".dropdown-menu-level-zero").addClass("dropdown-menu-level-one-focus");listParent.addClass("showed-one");listParent.find(".dropdown-menu").first().addClass("opened-one");listParent.blur();$(".opened-one").find(".dropdown-list-2").first().focus()})}else if(code==keyEnter&&$(".custom-toggler-sub:focus").length){$(".custom-toggler-sub:focus").each(function(){var listParent=$(this).closest(".dropdown-submenu");listParent.closest(".dropdown-menu-level-zero").addClass("dropdown-menu-level-two-focus");listParent.addClass("showed-two");listParent.find(".dropdown-menu").first().addClass("opened-two");listParent.blur();$(".opened-two").find(".dropdown-list-3").first().focus()})}else if(code==keyEnter&&$(".langselect-item:focus").length){$(".langselect-item:focus").each(function(){var windowLocation=$(this).find("a").attr("href");window.location=windowLocation})}else if(code==keyTabs&&$(".langselect-item:focus").length||code==keyTabs&&$(".breadcrumb-item:first-of-type a:focus").length){closeNavigation()}else if(code==keyEnter&&$(".sm-menu-item:focus").length){$(".sm-menu-item:focus").each(function(){var windowLocation=$(this).find("a").attr("href");window.location=windowLocation})}else if(code==keyEnter&&$(".ik-volunteeractivity-form-20 .collapse-btn:focus").length){$(".ik-volunteeractivity-form-20 .collapse-btn:focus").each(function(){$("#collapse-area").find(".vollunteers-wrapper:first-child .selectpicker-button").focus()})}});var mobileToggler=document.querySelectorAll(".navbar.navbar-expand-lg .navbar-nav > .nav-item .toggler-item");if(mobileToggler.length){function switchMobileTogglerTabindex(){for(var i=0;mobileToggler.length>i;i++){if(window.matchMedia("(min-width:992px)").matches){mobileToggler[i].setAttribute("tabindex","-1")}else{mobileToggler[i].setAttribute("tabindex","0")}}}switchMobileTogglerTabindex();window.addEventListener("resize",switchMobileTogglerTabindex)}}}(window.jQuery);const socialItems=document.querySelectorAll(".social-list-item");
1if(socialItems.length){socialItems.forEach(item=>{item.addEventListener("keydown",e=>{if(e.key==="Enter"||e.keyCode===13){const link=item.querySelector("a");if(link){link.click()}}})})} 2//# sourceMappingURL=accessibility.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.