!function(){return function t(e,i,s){function o(n,h){if(!i[n]){if(!e[n]){var r="function"==typeof require&&require;if(!h&&r)return r(n,!0);if(a)return a(n,!0);var l=new Error("Cannot find module '"+n+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[n]={exports:{}};e[n][0].call(c.exports,function(t){return o(e[n][1][t]||t)},c,c.exports,t,e,i,s)}return i[n].exports}for(var a="function"==typeof require&&require,n=0;n0),this.el.hbox.classList.toggle("sticky-header-state-reset",t<=0)):t30||t<2*this.resetBottomEdge)?this.singleRowReset("slow"):"up"===this.direction&&(this.startScrollingUp-t>30||t<2*this.resetBottomEdge)&&this.singleRowStick():(this.el.hbox.classList.toggle("sticky-header-state-stuck",t>0),this.el.hbox.classList.toggle("sticky-header-state-reset",t<=0)),document.body.classList.toggle("vamtam-scrolled",t>0))},o.prototype.singleRowReset=function(t){if(t=t||"fast",this.active&&!this.el.hbox.classList.contains("sticky-header-state-reset")&&!this.singleRowResetStarted){this.singleRowResetStarted=!0;var e=function(){vamtamgs.TweenLite.set(this.el.hbox,{position:"absolute",y:0,x:this.hboxLeft}),this.el.hbox.classList.add("sticky-header-state-reset"),this.el.hbox.classList.remove("sticky-header-state-stuck"),this.singleRowResetStarted=!1}.bind(this);window.vamtam_greensock_wait(function(){vamtamgs.TweenLite.killTweensOf(this.el.hbox),"fast"===t?e():"slow"===t&&vamtamgs.TweenLite.to(this.el.hbox,.15,{y:-this.hboxHeight,ease:vamtamgs.Power4.easeOut,onComplete:e})}.bind(this))}},o.prototype.singleRowStick=function(){!this.active||this.el.hbox.classList.contains("sticky-header-state-stuck")||this.singleRowResetStarted||(this.el.hbox.classList.add("sticky-header-state-stuck"),this.el.hbox.classList.remove("sticky-header-state-reset"),window.vamtam_greensock_wait(function(){vamtamgs.TweenLite.killTweensOf(this.el.hbox),vamtamgs.TweenLite.fromTo(this.el.hbox,.2,{position:"fixed",top:s.admin_bar_fix,y:-this.hboxHeight,x:this.hboxOffset.left},{y:-this.topNavHeight-("double"===this.layout?this.logoWrapperHeight:0),ease:vamtamgs.Power4.easeOut})}.bind(this)))},document.addEventListener("DOMContentLoaded",function(){s.stickyHeader=new o,vamtam_greensock_wait(function(){s.addScrollHandler(s.stickyHeader)})})},{}]},{},[1]);