"use strict";(self.webpackChunkgulp_template=self.webpackChunkgulp_template||[]).push([[7624],{3762:function(t,e,n){var o=n(3723);function i(){window.location=window.queryString?`${window.location.origin}${window.location.pathname}?${window.queryString}`:`${window.location.origin}${window.location.pathname}`}var c=n(8254);window.addEventListener("DOMContentLoaded",function(){(0,c.A)(),(0,o.A)(i)})},3218:function(t,e,n){function o(){const t=document.body,e=window.innerWidth-t.clientWidth;if(t.style.transition="margin-right 0.3s easy-in-out",t.style.marginRight=`${e}px`,t.style.overflow="hidden",!window.matchMedia("(min-width: 996px)").matches){const e=window.pageYOffset;t.style.top=-e+"px",t.style.position="fixed",t.style.width="100%"}}function i(){const t=document.body;if(t.style.transition="margin-right 0s easy-in-out",t.style.marginRight="0",t.style.overflow="unset",!window.matchMedia("(min-width: 996px)").matches){const e=Math.abs(parseInt(t.style.top||0,10));t.style.position="static",t.style.width="auto",t.style.removeProperty("top"),window.scrollTo(0,e||0)}}n.d(e,{$:function(){return o},W:function(){return i}})},8254:function(t,e,n){function o(t,e,n,o,i,c,a){try{var s=t[c](a),r=s.value}catch(t){return void n(t)}s.done?e(r):Promise.resolve(r).then(o,i)}function i(){return(t=function*(){const t=document.querySelectorAll(".js-filters-container");t.length&&(t.forEach(t=>{const e=t.querySelectorAll(".js-dropdown");e.length&&e.forEach(t=>{const e=t.querySelectorAll(".js-checkbox"),n=t.querySelector(".js-dropdown-label");e.length&&e.forEach(t=>{t.checked=!1}),c(t,e,n)})}),window.location=`${window.location.origin}${window.location.pathname}`)},function(){var e=this,n=arguments;return new Promise(function(i,c){var a=t.apply(e,n);function s(t){o(a,i,c,s,r,"next",t)}function r(t){o(a,i,c,s,r,"throw",t)}s(void 0)})})();var t}function c(t,e,n){let o=0;e.forEach(t=>{t.checked&&!t.classList.contains("js-checkbox-all")&&(0===o&&(n.innerText=""),o++,o>1&&(n.innerText+=", "),n.innerText+=t.dataset.label)}),o>0&&!t.classList.contains("selected")&&t.classList.add("selected"),0===o&&t.classList.contains("selected")&&(n.innerText=n.dataset.placeholder,t.classList.remove("selected"))}function a(t){const e=new URLSearchParams(window.location.search),n=Object.fromEntries(e.entries()),o=document.querySelector(".js-active-catalogs-button"),i=document.querySelector(".js-archive-catalogs-button");t.forEach(t=>{!Object.keys(n).length&&o&&o.classList.contains("catalog-page-actions__button-catalogs--active")&&i.classList.contains("catalog-page-actions__button-catalogs--active")?t.hasAttribute("disabled")||t.setAttribute("disabled",!0):t.hasAttribute("disabled")&&t.removeAttribute("disabled")})}function s(){const t=document.querySelectorAll(".js-filters-container"),e=document.querySelectorAll(".js-clear-filters"),n=new URLSearchParams(window.location.search),o=Object.fromEntries(n.entries());window.queryString="",e.length&&e.forEach(t=>{t.addEventListener("click",function(){i()})}),t.length&&t.forEach(t=>{const n=t.querySelectorAll(".js-dropdown");let i=null;n.length&&n.forEach(t=>{const n=t.querySelectorAll(".js-checkbox"),s=t.querySelector(".js-dropdown-label");n.length&&(n.forEach(r=>{r.addEventListener("change",function(){this.classList.contains("js-checkbox-all")?this.checked?(o[this.name]=this.value,n.forEach(t=>{t.checked||t.closest("label").classList.contains("checkbox__disabled")||(t.checked=!0,o[t.name]=t.value)})):(delete o[this.name],n.forEach(t=>{t.checked&&(t.checked=!1,delete o[t.name])}),s.innerText=s.getAttribute("data-placeholder")):this.checked?o[this.name]=this.value:delete o[this.name],window.queryString=Object.keys(o).map(t=>t+"="+o[t]).join("&"),c(t,n,s),a(e,window.queryString),t.closest(".js-dialog-filters")||(i&&clearTimeout(i),i=setTimeout(()=>{window.location=window.queryString?`${window.location.origin}${window.location.pathname}?${window.queryString}`:`${window.location.origin}${window.location.pathname}`},600))})}),c(t,n,s),a(e,window.queryString))})}),function(){const t=document.querySelector(".js-active-catalogs-button"),e=document.querySelector(".js-archive-catalogs-button"),n=document.querySelector(".js-active-catalogs"),o=document.querySelector(".js-archive-catalogs"),i=document.querySelectorAll(".js-clear-filters");t&&e&&n&&o&&(t.addEventListener("click",function(){e.classList.add("catalog-page-actions__button-catalogs--active"),e.classList.remove("catalog-page-actions__button-catalogs--active"),n.style.display="block",o.style.display="none",a(i)}),e.addEventListener("click",function(){e.classList.add("catalog-page-actions__button-catalogs--active"),t.classList.remove("catalog-page-actions__button-catalogs--active"),o.style.display="block",n.style.display="none",a(i)}))}()}n.d(e,{A:function(){return s}})},2585:function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var o=n(3218);function i(t,e=null,n=[]){const i=document.querySelector(".js-navigation");t&&(i.classList.contains("navigation__fixed--white")||i.classList.add("navigation__fixed--white"),t.on("show",()=>{(0,o.$)(),e&&e(...n)}),t.on("hide",()=>{(0,o.W)(),t.destroy()}),t.show())}},3723:function(t,e,n){n.d(e,{A:function(){return s}});var o=n(7083),i=n(2585);function c(t,e,n,o,i,c,a){try{var s=t[c](a),r=s.value}catch(t){return void n(t)}s.done?e(r):Promise.resolve(r).then(o,i)}function a(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var a=t.apply(e,n);function s(t){c(a,o,i,s,r,"next",t)}function r(t){c(a,o,i,s,r,"throw",t)}s(void 0)})}}function s(t){const e=document.querySelector(".js-dialog-filters");if(!e)return;const n=document.querySelectorAll(".js-dialog-filters-button"),c=e.querySelector(".js-submit-filters"),s=document.querySelector(".js-show-more-products");c.addEventListener("click",function(){return a(function*(){yield t(),window.showMore||(window.showMore=!0,s&&(button.style.display="inline-block"))})()}),n.forEach(t=>{t.addEventListener("click",function(){if(e){const t=new o.default(e);(0,i.default)(t)}})})}}},function(t){t.O(0,[8096],function(){return t(t.s=3762)}),t.O()}]);