"use strict";__define("pages/common/mobile-nav-options",["lib/dom/sigil","lib/tp/throttle","lib/tp/debounce","lib/tp/isObject"],function(a,b,c,d){var e=(a("lib/dom/sigil"),a("lib/tp/throttle")),f=void 0;b.exports={makeSticky:function(a,b){var c=document.getElementById("overhead"),d=a.getBoundingClientRect(),g=d.top+window.pageYOffset-d.height;b&&!f&&(f=document.createElement("div"),f.style.position="fixed",f.style.width="100%",f.style.display="none",f.style.zIndex=101,f.style.top="-10px",f.addEventListener("click",function(){return!1},!0),document.body.appendChild(f));var h=0;window.addEventListener("scroll",e(function(){var b=window.pageYOffset<=700;h>window.pageYOffset&&(b=!0);var d=c.classList.contains("relative");if(d){var e=document.getElementById("smartbanner");if(e){var i=e.getBoundingClientRect();window.pageYOffset>i.height?c.style.position="fixed":c.style.position=""}}else c.style.position="";window.pageYOffset>g?(a.classList.add("fixed"),a.style.top=b?c.offsetHeight+"px":0,f&&(f.style.display="block",f.style.height=b?c.offsetHeight+a.offsetHeight+10+"px":a.offsetHeight+10+"px")):(a.classList.remove("fixed"),a.style.top="auto",f&&(f.style.display="none")),c.style.top=b?0:-c.offsetHeight+"px",h=window.pageYOffset},50))}}});