1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2window.dataLayer=window.dataLayer||[];(function($,Drupal,once,drupalSettings,cookies){'use strict';drupalSettings.google_tag_events=drupalSettings.google_tag_events||{};drupalSettings.google_tag_events.gtmEvents=drupalSettings.google_tag_events.gtmEvents||{};drupalSettings.google_tag_events.enabled=drupalSettings.google_tag_events.enabled||false;function pushQueuedEvents(){var enabled=drupalSettings.google_tag_events.enabled;if(!enabled||enabled.length===0)return;var weights=drupalSettings.google_tag_events.weights||{},eventsOrder=[];for(var index in drupalSettings.google_tag_events.gtmEvents){if(!Object.prototype.hasOwnProperty.call(drupalSettings.google_tag_events.gtmEvents,index))continue;eventsOrder.push({'weight':weights[index]||0,'name':index});}eventsOrder.sort(function(a,b){return a.weight-b.weight;});for(var i=0;i<eventsOrder.length;i++){var name=eventsOrder[i].name,event=drupalSettings.google_tag_events.gtmEvents[name];window.dataLayer.push(event);delete drupalSettings.google_tag_events.gtmEvents[name];}
2if(cookies)cookies.remove('STYXKEY_gte_ptsc_google_tag_events',{path:"/",domain:window.location.host});}Drupal.behaviors.google_tag_events={attach:function(context,settings){once('processed',"[data-selector='google_tag_events']").forEach(function(el){var $el=$(el),events=JSON.parse($el.html());$.extend(drupalSettings.google_tag_events.gtmEvents,events);});pushQueuedEvents();}};if(Drupal.AjaxCommands)Drupal.AjaxCommands.prototype.googleTagEventsSettings=function(ajax,response){if(response.merge)$.extend(true,drupalSettings,response.settings);else{if(ajax)ajax.settings=response.settings;}Drupal.attachBehaviors(document,drupalSettings);};}(jQuery,Drupal,once,drupalSettings,window.Cookies));; 3"use strict";!function(o,s,d){function u(t,e){var o=new e({includedRegionCodes:["ch"],includedPrimaryTypes:["locality"]});function n(e){t.value=e||"",t.dispatchEvent(new Event("change",{bubbles:!0}));}o.className="proximity-filter-city-autocomplete",t.type="hidden",t.parentNode.insertBefore(o,t.nextSibling),t.value&&(o.value=t.value),o.addEventListener("input",function(){n(o.value);}),o.addEventListener("gmp-select",function(e){var t=e.placePrediction.toPlace();t.fetchFields({fields:["displayName"]}).then(function(){n(t.displayName);});});}function h(e){google.maps.places&&google.maps.places.Autocomplete&&new google.maps.places.Autocomplete(e,{componentRestrictions:{country:"ch"},types:["locality"],fields:["name"]});}o.behaviors.redcross={attach:function(e,t){s(e);var o=s("body"),n=0;s(window).on("scroll",function(){var e=s(this).scrollTop();0<e||0<n?o.addClass("is-sticky-header"):o.removeClass("is-sticky-header"),e<n||e<300||n<1?o.removeClass("sticky-header-hide"):o.addClass("sticky-header-hide"),n=e;}),s(d("region_navigation",".region-navigation",e)).each(function(){var e=s(this),t=e.find(".open-menu-btn");0<e.find(".menu-link-content, .menu a, nav a").length?(t.bind("click",function(){return o.addClass("navigation-expand"),o.addClass("disabled-scroll"),!1;}),o.find(".close-menu-btn").bind("click",function(){return o.removeClass("navigation-expand"),o.removeClass("disabled-scroll"),!1;})):t.hide();}),s(d("search_block",".search-block-wrapper",e)).each(function(){s(this);s(this).find(".search-button ").bind("click",function(){return o.toggleClass("search-block-expand"),!1;});}),s('.layout-container a[href^="http"]').not('[href*="'+location.host+'"]').attr("target","_blank");var a=!0,i=!1,c=void 0;try{for(var l=document.querySelectorAll(".layout-container a")[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var r=r.value;r.href.match(/\.pdf$/i)&&(r.target="_blank");}}catch(e){i=!0,c=e;}finally{try{!a&&l.return&&l.return();}finally{if(i)throw c;}}s(d("click-process","*[data-click]",e)).each(function(){var e=s(this),t=e.find(e.attr("data-click"));t.length&&e.bind("click",function(){s(t)[0].click();}).addClass("clickable");}),s(d("links-toggle-process",".links-toggle",e)).bind("click",function(){s(this).closest(".block").toggleClass("links-expand");});}},o.behaviors.smoothScrollTop={attach:function(e,t){s(d("smooth-scroll-once","a.smooth-scroll")).on("click",function(e){e.preventDefault(),"#top"===s(this).attr("href")&&o.behaviors.smoothScroll.to(s("html"));});}},o.behaviors.smoothScroll={to:function(e){e=e.offset().top-120;e<0&&(e=0),s("html, body").animate({scrollTop:e},"slow");}},o.behaviors.googleAutosuggestion={attach:function(e,t){var o,n,a,i,c=d("initiateAutocomplete",'[name="proximity_filter_city"]',e);function l(){return "undefined"!=typeof google&&void 0!==google.maps&&"function"==typeof google.maps.importLibrary;}function r(){google.maps.importLibrary("places").then(o).catch(n);}c.length&&(o=function(t){c.forEach(function(e){t&&t.PlaceAutocompleteElement?u(e,t.PlaceAutocompleteElement):h(e);});},n=function(){c.forEach(h);},i=0,l()?r():a=setInterval(function(){return l()?(clearInterval(a),void r()):void (1e4<=(i+=100)&&(clearInterval(a),n()));},100));}};}(Drupal,jQuery,once);; 4"use strict";!function(e,a,i){e.behaviors.redcrossMainMenu={attach:function(e,n){a(e);var s=this;a(i("main-navigation-process","#block-redcross-main-menu",e)).each(function(){var n,o=a(this);o.find("li.menu-item--expanded > a, li.menu-item--expanded > span").append('<i class="icon-arrow-right"></i>'),o.find("li.menu-item--expanded > a > i, li.menu-item--expanded > span").bind("click",function(){var e=a(this).closest("li");return e.hasClass("expand")?(e.removeClass("expand"),a(".mega-description",e).slide
4Up(400),a(".menu-wrapper > ul",e).slideUp(400),a("> ul",e).slideUp(400)):(e.addClass("expand"),a(".mega-description",e).slideDown(400),a(".menu-wrapper > ul",e).slideDown(400),a("> ul",e).slideDown(400)),!1;}),"ontouchstart" in window||window.DocumentTouch&&document instanceof window.DocumentTouch?(o.find("> ul.menu > li > a").bind("touchstart",function(e){var n=a(this).parent(),i="1"==s.isMobileNav();if(n.hasClass("d-hover")||(a("li.d-hover",n.parent()).removeClass("d-hover"),n.addClass("d-hover")),!a(this).hasClass("clicked")&&!i)return o.find("a.clicked").removeClass("clicked"),a(this).addClass("clicked"),e.preventDefault(),!1;}),a(document).bind("click",function(e){!a(e.target).closest("#block-redcross-main-menu").length&&a("#block-redcross-main-menu li.d-hover").length&&a("#block-redcross-main-menu li.d-hover").removeClass("d-hover");})):o.find("> ul.menu > li.menu-item--expanded").hover(function(){var e=a(this);clearTimeout(n),a(e).find("ul.menu").length&&(n=setTimeout(function(){a("li.d-hover",a(e).parent()).removeClass("d-hover"),a(e).addClass("d-hover");},200));},function(){var e=a(this);clearTimeout(n),a(e).find("ul.menu").length&&(n=setTimeout(function(){a(e).removeClass("d-hover");},500));});});},isMobileNav:function(){return window.getComputedStyle(document.body).getPropertyValue("--mobile-nav").trim();}};}(Drupal,jQuery,once);; 5"use strict";!function(e,i){e.behaviors.redcrossNodeFront={attach:function(e){var r=i(".slider-wrapper.splide .splide__slide").length;new Splide(".slider-wrapper.splide",{type:"fade",perPage:1,perMove:1,arrows:1<r,pagination:1<r,autoplay:!0,rewind:!0,interval:6e3,pauseOnHover:!1,direction:"ltr"}).mount();}};}(Drupal,(drupalSettings,jQuery));;
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.