!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;n<s.length;n++)o(s[n]);return o}}()({1:[function(t,e,i){"use strict";var s,o;s=window.VAMTAM,(o=function(){var t=this;if(!this.setupElements())return!1;window.addEventListener("resize",window.VAMTAM.debounce(function(){requestAnimationFrame(function(){t.active&&t.winWidth&&window.innerWidth!==t.winWidth&&(t.destroy(),requestAnimationFrame(function(){t.init()}))})},100),!1),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){e.partial.id&&-1!==["header-layout-selective","header-height"].indexOf(e.partial.id)&&t.rebuild()})}).prototype.rebuild=function(){var t=this;requestAnimationFrame(function(){t.destroy(),setTimeout(function(){requestAnimationFrame(function(){t.setupElements(),t.init()})},100)})},o.prototype.setupElements=function(){return this.el={hbox:document.getElementsByClassName("fixed-header-box")[0],header:document.querySelector("header.main-header"),main:document.getElementById("main"),topNav:document.getElementsByClassName("top-nav")[0]},!!(this.el.hbox&&this.el.header&&this.el.main)&&(this.prevPos=0,this.el.logoWrapper=this.el.hbox.getElementsByClassName("logo-wrapper")[0],this.layout=this.el.header.classList.contains("layout-logo-menu")?"single":this.el.header.classList.contains("layout-overlay-menu")?"overlay":"double",this.typeOver=document.body.classList.contains("sticky-header-type-over"),!0)},o.prototype.canActivate=function(){return!this.active&&(document.body.classList.contains("sticky-header")||document.body.classList.contains("had-sticky-header"))&&!document.body.classList.contains("fl-builder-active")&&!VAMTAM_FRONT.is_mobile&&!window.matchMedia("(max-width: "+VAMTAM_FRONT.mobile_header_breakpoint+")").matches&&!document.body.classList.contains("sticky-header-type-below")&&this.el.hbox&&!s.MEDIA.fallback},o.prototype.init=function(){var t=this;if(this.canActivate()){this.winWidth=window.innerWidth,this.hboxWidth=this.el.hbox.offsetWidth,this.hboxHeight=this.el.hbox.offsetHeight,this.topNavHeight=this.el.topNav?this.el.topNav.offsetHeight:0,this.logoWrapperHeight=this.el.logoWrapper.offsetHeight,this.hboxOffset=s.offset(this.el.hbox),this.hboxLeft=this.hboxOffset.left;var e=this.typeOver?this.topNavHeight:this.hboxHeight;if(this.el.hboxFiller=this.el.hbox.cloneNode(!1),Object.assign(this.el.hboxFiller.style,{height:e+"px",zIndex:1}),this.el.hboxFiller.classList.add("hbox-filler"),this.el.hbox.after(this.el.hboxFiller),Object.assign(this.el.hbox.style,{position:"overlay"===this.layout?"fixed":"absolute",top:s.admin_bar_fix+"px",left:0,width:this.hboxWidth+"px",height:"","will-change":"transform",transform:"translateX("+this.hboxLeft+"px)"}),requestAnimationFrame(function(){t.hboxHeight=t.el.hbox.offsetHeight,t.resetBottomEdge=Math.max(t.hboxHeight,t.el.header.offsetHeight)+t.hboxOffset.top,t.active=!0}),this.el.topNav){var i=document.createElement("div");i.id="top-nav-wrapper-filler",i.style.height=this.topNavHeight+"px",this.el.hboxFiller.appendChild(i)}}else document.body.classList.contains("sticky-header")&&(document.body.classList.remove("sticky-header"),document.body.classList.add("had-sticky-header"),this.el.hbox&&"0px"===this.el.hbox.style.height&&(this.el.hbox.style.height="auto"))},o.prototype.destroy=function(){this.active&&(this.el.hboxFiller&&this.el.hboxFiller.remove(),Object.assign(this.el.hbox.style,{position:"",top:"",left:"",width:"","will-change":"",transform:""}),document.body.classList.contains("had-sticky-header")&&(document.body.classList.add("sticky-header"),document.body.classList.remove("had-sticky-header")),this.active=!1)},o.prototype.measure=function(t){this.active&&"overlay"!==this.layout&&("blockStickyHeaderAnimation"in s&&s.blockStickyHeaderAnimation||(this.direction=this.prevPos===t?"-":this.prevPos<t?"down":"up","up"===this.direction&&void 0===this.startScrollingUp?this.startScrollingUp=t:"down"===this.direction&&(this.startScrollingUp=void 0),"down"===this.direction&&void 0===this.startScrollingDown?this.startScrollingDown=t:"up"===this.direction&&(this.startScrollingDown=void 0),this.prevPos=t))},o.prototype.mutate=function(t){this.active&&("overlay"!==this.layout?document.body.classList.contains("no-sticky-header-animation")||document.body.classList.contains("no-sticky-header-animation-tmp")?document.body.classList.contains("no-sticky-header-animation")&&(Object.assign(this.el.hbox.style,{position:"fixed",top:s.admin_bar_fix+"px",transform:""}),this.el.hbox.classList.toggle("sticky-header-state-stuck",t>0),this.el.hbox.classList.toggle("sticky-header-state-reset",t<=0)):t<this.resetBottomEdge+200?this.singleRowReset("fast"):"down"===this.direction&&(t-this.startScrollingDown>30||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]);