!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";n.r(t);window.deployHash&&"string"==typeof deployHash&&deployHash;function r(){document.querySelector(".nav").addEventListener("click",(function(e){window.innerWidth<=1215&&function e(t,n,r){return t.parentNode!==document.documentElement&&!t.parentNode.matches(r)&&(!!t.parentNode.matches(n)||void e(t.parentNode,n))}(e.target,".nav__item--dropdown")&&e.target.parentNode.querySelector("ul").classList.toggle("active")}))}document.addEventListener("DOMContentLoaded",(function(){window.addEventListener("load",(function(){if(document.querySelector(".order-page"))return!1;var e=document.querySelector(".header__content"),t={position:null},n=document.documentElement.classList.contains("order-page-wrapper");window.addEventListener("scroll",(function(r){var o=document.querySelector(".hamburger").classList.contains("is-active");window.innerWidth>1215?window.scrollY>250?e.classList.add("sticky"):e.classList.remove("sticky"):window.scrollY>50&&!n&&!o&&(t.position>window.scrollY?(e.classList.remove("hidden"),e.classList.add("visible")):(e.classList.remove("visible"),e.classList.add("hidden")),t.position=window.scrollY)}))})),function(){var e=document.querySelector(".js-hamburger");if(!e)return!1;var t=document.querySelector(".header__nav");t.querySelector("ul"),"hidden"===getComputedStyle(t).visibility&&t.setAttribute("aria-hidden",!0);var n=function(){e.classList.toggle("is-active"),t.classList.toggle("is-active"),document.documentElement.classList.toggle("no-scroll"),document.body.classList.toggle("no-scroll"),t.classList.contains("is-active")?(t.setAttribute("aria-hidden",!1),e.setAttribute("aria-expanded",!0),t.style.height="".concat(window.innerHeight,"px"),t.addEventListener("click",r)):(t.setAttribute("aria-hidden",!0),e.setAttribute("aria-expanded",!1),t.style.height="",t.removeEventListener("click",r))},r=function(e){return e.target===t&&n()};e.addEventListener("click",n)}(),document.querySelector(".nav")&&r()}))}]);
//# sourceMappingURL=header.js.map