"use strict";(self.webpackChunkgulp_template=self.webpackChunkgulp_template||[]).push([[1081],{2936:function(e,t,n){n.d(t,{A:function(){return i}});var s=n(7371);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){for(var t=1;t{var o;const i=t.hasAttribute("data-select-with-search"),c=null===(o=t.closest(".js-select-wrapper"))||void 0===o?void 0:o.querySelector(".js-select-name"),l=new s(t,r({sortField:function(e,t){var n=this.items[e.id],s=this.items[t.id];return n.text.localeCompare(s.text)},maxOptions:500,render:{no_results:()=>'
Ничего не найдено
'},plugins:i?["dropdown_input"]:[],onInitialize:function(){i&&function(e,t){const n=t.querySelector(".dropdown-input-wrap");if(!n)return;const s=e.control_input;s.classList.add("input-base__input","js-input-base"),n.innerHTML='\n
\n \n \n
\n ',n.querySelector(".input-base__label").append(s),n.querySelector(".js-clear-button").addEventListener("click",(()=>{e.setTextboxValue(""),e.refreshOptions(!1),s.focus()}))}(this,this.dropdown)}},e));c&&c.addEventListener("click",(function(){l.focus()})),t.addEventListener("change",(function(){const e=t.closest(".select-wrapper");e&&e.classList.contains("error")&&e.classList.remove("error"),e&&e.classList.contains("success")&&e.classList.remove("success")})),n.push(l)})),n}},3629:function(e,t,n){n.d(t,{l:function(){return s}});const s=()=>{const e=document.querySelector(".js-loader-wrap"),t=document.body,n=window.innerWidth-t.clientWidth;return{start(){if(e.classList.add("active"),t.style.transition="margin-right 0.3s easy-in-out",t.style.marginRight=`${n}px`,t.style.overflow="hidden",t.style.pointerEvents="none",!window.matchMedia("(min-width: 996px)").matches){const e=window.pageYOffset;t.style.top=-e+"px",t.style.position="fixed",t.style.width="100%"}},remove(){if(e.classList.remove("active"),e.classList.contains("solid")&&e.classList.remove("solid"),t.style.transition="margin-right 0s easy-in-out",t.style.marginRight="0",t.style.overflow="unset",t.style.pointerEvents="inherit",!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)}}}}},6521:function(e,t,n){var s=n(2936);const o={"а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"e","ж":"zh","з":"z","и":"i","й":"y","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sch","ь":"","ы":"y","ъ":"","э":"e","ю":"yu","я":"ya"};function r(e){let t="";for(let n=0;n{const e=document.querySelector(".js-rrc-search"),t=document.querySelector(".js-rrc-table");if(e&&t){const n=t.querySelector(".js-rrc-table-body"),s=t.querySelectorAll(".js-rrc-table-row");n&&s.length&&e.addEventListener("input",(function(){if(this.value.trim()){const e=r(this.value.trim()),t=Array.from(s).filter((t=>{var n,s;const o=null===(n=t.querySelector(".js-rrc-search-manufacture"))||void 0===n?void 0:n.dataset.name,r=null===(s=t.querySelector(".js-rrc-search-collection"))||void 0===s?void 0:s.dataset.name;return!(!o&&!r)&&(o.toLowerCase().includes(this.value.trim().toLowerCase())||r.toLowerCase().includes(this.value.trim().toLowerCase())||o.toLowerCase().includes(e)||r.toLowerCase().includes(e))}));if(t.length)n.replaceChildren(...t);else{const e=document.createElement("div");e.classList.add("specifications-table__row","specifications-table__row--empty"),e.innerText="По вашему запросу ничего не найдено",n.replaceChildren(e)}}else n.replaceChildren(...s)}))}if((0,s.A)(),window.matchMedia("(min-width: 996px)").matches){const e=document.querySelector(".js-table-wrapper");if(e){new i.A(e,{autoHide:!1});const t=e.querySelector(".simplebar-track.simplebar-horizontal"),n=e.querySelector(".specifications-table__row--head");t&&n&&(t.style.top=n.clientHeight-10+"px")}}else!function(){const e=document.querySelector(".js-toggle-parent");e&&e.addEventListener("click",(function(e){if(!e.target.closest(".js-toggle"))return;const t=e.target.closest(".js-toggle").parentElement,n=t.querySelector(".js-toggle-content");t.classList.toggle("active"),t.classList.contains("active")?n.style.maxHeight=`${n.scrollHeight}px`:n.style.maxHeight=0}))}();!function(){const e=document.querySelector(".js-catalog-infinity-scroll");if(!e)return;let t=2;const n=new IntersectionObserver((([e],n)=>{e.isIntersecting&&(n.unobserve(e.target),o(t++))}),{threshold:.1}),s=t=>{e.insertAdjacentHTML("beforeend",t),e.lastElementChild&&n.observe(e.lastElementChild)},o=function(){var e,n=(e=function*(){const e=function(e){let t="";const n=document.location.origin,s=document.location.pathname,o=document.location.search;return t=o?`${n}${s||""}${o}&page=${e}`:`${n}${s||""}?page=${e}`,isMobile&&(t=`${t}&isMobile=Y`),t}(t);try{let t=null;a(!0);const n=yield fetch(e);n.ok&&(t=yield n.text()),t&&(yield s(t))}catch(e){console.log("ERROR",e)}finally{a(!1)}},function(){var t=this,n=arguments;return new Promise((function(s,o){var r=e.apply(t,n);function i(e){l(r,s,o,i,c,"next",e)}function c(e){l(r,s,o,i,c,"throw",e)}i(void 0)}))});return function(){return n.apply(this,arguments)}}();o()}(),(0,c.l)().remove()}))}},function(e){e.O(0,[8096],(function(){return e(e.s=6521)})),e.O()}]);