text: !function(e,t,s){"use strict";var a=e(".js-page-header").find(".js-sticky-header-element"),i=a.offset().top,o=e('<div class="js-sticky-header-placeholder"></div>');if(a.wrap(o),e(window).on("load scroll",function(t){e(this).scrollTop()>=i?a.addClass("header-sticky-wrapper is--stuck"):a.removeClass("header-sticky-wrapper is--stuck")}),null!=s.toolbar){var r=e("#toolbar-bar"),n=e(".toolbar-tray");a.css("top",r.innerHeight()),r.find(".trigger").on("click",function(){n.hasClass("is-active")&&n.hasClass("toolbar-tray-horizontal")?a.css("top",r.innerHeight()):a.css("top",r.innerHeight()+n.innerHeight())}),window.matchMedia(s.toolbar.breakpoints["toolbar.standard"]).matches||r.css({position:"fixed",top:"0"})}t.behaviors.themagStickyHeader={attach:function(t,s){e(window).on("load",function(s){e(t).find(".js-sticky-header-placeholder").css("height",e(".js-sticky-header-element").outerHeight())})}}}(jQuery,Drupal,drupalSettings);