"use strict";(self.webpackChunkgulp_template=self.webpackChunkgulp_template||[]).push([[7817],{2277:function(e,t,n){var i=n(4278),o=n(4228);window.addEventListener("load",()=>{i.A.checkIsMobile()&&function(e,t,n){["start","center","end"].includes(n)&&window.location.href.includes(e)&&setTimeout(()=>{const i=document.querySelector(e)||document.querySelector(t);i&&i.scrollIntoView({block:n,behavior:"smooth"})},300)}("#fitting",".catalog-actions","center"),window.matchMedia("(min-width: 996px)").matches&&(0,o.g)()})},4228:function(e,t,n){function i(){const e=document.querySelector(".js-navigation"),t=document.querySelector(".wrapper"),n=document.querySelector(".js-header-actions");let i=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-top")),o=window.scrollY;function r(){0===i&&(i=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-top"))),o>100&&!n.classList.contains("fixed")&&(t.style.paddingTop=`${i+n.clientHeight}px`,n.classList.add("fixed")),o<=100&&n.classList.contains("fixed")&&(t.style.paddingTop=`${i}px`,n.classList.remove("fixed"))}t&&e&&n&&(n.style.top=e.clientHeight-2+"px",r(),window.addEventListener("scroll",function(){n.style.top=e.clientHeight-2+"px",o=window.scrollY,r()},{passive:!0}))}n.d(t,{g:function(){return i}})},4278:function(e,t){t.A={Android(){return navigator.userAgent.match(/Android/i)},BlackBerry(){return navigator.userAgent.match(/BlackBerry/i)},iOS(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera(){return navigator.userAgent.match(/Opera Mini/i)},Windows(){return navigator.userAgent.match(/IEMobile/i)},resizeIsMobile(){const e=window.innerWidth<475;return window.addEventListener("resize",()=>window.innerWidth<475),e},resizeIsTablet(){const e=window.innerWidth<996;return window.addEventListener("resize",()=>window.innerWidth<996&&window.innerWidth>475),e},checkIsMobile(){return Boolean((this.Android()||this.BlackBerry()||this.iOS()||this.Opera()||this.Windows())&&window.innerWidth<995.98)}}}},function(e){e(e.s=2277)}]);