"use strict";(self.webpackChunkgulp_template=self.webpackChunkgulp_template||[]).push([[3216,6531],{3218:function(e,t,n){function i(){const e=document.body,t=window.innerWidth-e.clientWidth;if(e.style.transition="margin-right 0.3s easy-in-out",e.style.marginRight=`${t}px`,e.style.overflow="hidden",!window.matchMedia("(min-width: 996px)").matches){const t=window.pageYOffset;e.style.top=-t+"px",e.style.position="fixed",e.style.width="100%"}}function o(){const e=document.body;if(e.style.transition="margin-right 0s easy-in-out",e.style.marginRight="0",e.style.overflow="unset",!window.matchMedia("(min-width: 996px)").matches){const t=Math.abs(parseInt(e.style.top||0,10));e.style.position="static",e.style.width="auto",e.style.removeProperty("top"),window.scrollTo(0,t||0)}}n.d(t,{$:function(){return i},W:function(){return o}})},2048:function(e,t,n){n.d(t,{A:function(){return o}});var i=n(3218);function o(e,t=!0){const n=document.querySelector(".js-loader");n&&(t?n.classList.add("loader-fixed"):n.classList.remove("loader-fixed"),n.classList.toggle(e),n.classList.contains("loader-fixed")&&(n.classList.contains("show-global")?(0,i.$)():(0,i.W)()))}},6531:function(e,t,n){n.r(t),n.d(t,{default:function(){return a}});var i=n(5914);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{window.matchMedia("(min-width: 996px)").matches?n.classList.contains(`${t}--mobile`)||new i.Ay(n,r({modules:[i.Vx,i.dK,i.dF],navigation:{nextEl:".slider-button-next",prevEl:".slider-button-prev"},on:{init(e){e.isLocked&&(e.navigation&&e.navigation.nextEl&&e.navigation.prevEl&&(e.navigation.nextEl.style.display="none",e.navigation.prevEl.style.display="none"),e.pagination&&e.pagination.el&&(e.pagination.el.style.display="none")),e.slides&&e.slides.forEach(((e,t)=>{e.setAttribute("data-slide-index",t)}))}}},e)):n.classList.contains(`${t}--desktop`)||new i.Ay(n,r({modules:[i.Vx,i.dK,i.dF],navigation:{nextEl:".slider-button-next",prevEl:".slider-button-prev"},on:{init(e){e.slides&&e.slides.forEach(((e,t)=>{e.setAttribute("data-slide-index",t)}))}}},e))}))}},7305:function(e,t,n){n.d(t,{A:function(){return d}});var i=n(5914);function o(e,t,n,i,o,r){if(e.crossOrigin||(e.crossOrigin="anonymous"),e.complete){const t=e.src;e.src="",e.src=t}const a=()=>{const a=document.createElement("canvas");a.width=document.body.clientWidth,a.height=window.innerHeight;const d="100%"!==i?i:a.width,c=a.getContext("2d");l(c,e,0,0,a.width,a.height);try{const e=c.getImageData(t,n,d,o).data;r(Math.round(100*s(e)/255))}catch(e){console.error("CORS error:",e),r(50)}};e.complete?a():(e.onload=a,e.onerror=e=>{console.error("imageEL.onerror",e),r(50)})}const r=e=>(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4,a=(e,t,n)=>.212655*r(e)+.715158*r(t)+.072187*r(n),s=e=>{for(var t=0,n=0;n{2===arguments.length&&(n=i=0,o=e.canvas.width,r=e.canvas.height),(a="number"==typeof a?a:.5)<0&&(a=0),(s="number"==typeof s?s:.5)<0&&(s=0),a>1&&(a=1),s>1&&(s=1);var l,d,c,u,h=t.naturalWidth,f=t.naturalHeight,p=Math.min(o/h,r/f),y=h*p,m=f*p,g=1;yh&&(c=h),u>f&&(u=f),e.drawImage(t,l,d,c,u,n,i,o,r)};function d(){let e=null;window.addEventListener("resize",(()=>{e=null}));const t=(t,i)=>{if(window.matchMedia("(min-width: 996px)").matches){const o=document.querySelector("header .js-navigation"),r=t.slides[t.activeIndex],a=r?r.querySelector("img"):null,s=r.querySelector(".index-banner-slider__slide-info"),l=a.complete&&0!==a.naturalHeight;if(!a)return o.classList.remove("navigation__fixed--light"),void s.classList.remove("index-banner-slider__slide-info--light");l?null===e&&"transitionEnd"===i?(e=n(s),e(o,a,s)):"transitionStart"===i&&e&&e(o,a,s):a.onload=()=>{null===e&&"transitionEnd"===i?(e=n(s),e(o,a,s)):"transitionStart"===i&&e&&e(o,a,s)}}},n=t=>{let{x:n,y:i,width:r,height:a}=t.getBoundingClientRect();return(t,s,l)=>{n<0?e=null:(o(s,0,0,"100%",100,(e=>{e<70?t.classList.add("navigation__fixed--light"):t.classList.remove("navigation__fixed--light")})),o(s,n,i,r,a,(e=>{e<70?l.classList.add("index-banner-slider__slide-info--light"):l.classList.remove("index-banner-slider__slide-info--light")})))}},r=new i.Ay(".js-index-banner-slider",{modules:[i.Vx,i.Ij,i.dF],autoHeight:!0,loop:!0,autoplay:{delay:5e3},slidesPerView:1,preloadImages:!1,lazy:{enabled:!0,loadPrevNext:!0},on:{init:function(e){const t=e.slides[e.activeIndex];if(t){const n=window.matchMedia("(min-width: 996px)").matches?".js-header-video":".js-header-video-mobile";t.querySelector(n)&&(e.autoplay.stop(),setTimeout((()=>{e.autoplay.start()}),1e4))}e.isLocked&&e.navigation&&e.navigation.nextEl&&e.navigation.prevEl&&(e.navigation.nextEl.style.display="none",e.navigation.prevEl.style.display="none")},transitionStart:function(){t(this,"transitionStart")},transitionEnd:function(){t(this,"transitionEnd")}},breakpoints:{996:{autoHeight:!1,navigation:{nextEl:".slider-button-next",prevEl:".slider-button-prev"}}}});r.on("slideChange",(function(e){const t=e.slides[e.activeIndex];if(t){const n=window.matchMedia("(min-width: 996px)").matches?".js-header-video":".js-header-video-mobile";t.querySelector(n)&&(e.autoplay.stop(),setTimeout((()=>{e.autoplay.start()}),1e4))}}))}},5158:function(e,t,n){n.d(t,{A:function(){return r}});var i=n(5914);function o(e){const t=e.slides[e.realIndex],n=t.querySelector(".js-slide-link"),i=document.querySelector(".js-slide-article");i&&(t.dataset.article?(i.innerText=t.dataset.article,i.setAttribute("href",n.getAttribute("href")),i.parentElement.style.display="inline"):i.parentElement.style.display="none")}function r(){new i.Ay(".js-interior-ideas-slider",{modules:[i.Vx,i.dK,i.dF],slidesPerView:1,preloadImages:!1,lazy:{enabled:!0,loadPrevNext:!0},navigation:{nextEl:".interior-ideas-slider__button-next",prevEl:".interior-ideas-slider__button-prev"},pagination:{el:".swiper-pagination",type:"fraction"},on:{init:function(e){if(!window.matchMedia("(min-width: 996px)").matches){const t=e.slides.map((e=>e.querySelector(".interior-ideas-slider__slide-wrapper")));t.forEach((e=>{e.scrollLeft=(e.scrollWidth-e.clientWidth)/2}))}o(e)},slideChange:function(e){o(e)}}})}},4348:function(e,t,n){n.a(e,(async function(e,t){try{if(document.querySelector("body.kz")){const{scrollToBlockSubHeader:e}=await n.e(3025).then(n.bind(n,3025));e("#shops-kz",".where-to-buy");const t=document.querySelectorAll(".js-where-to-buy-kz");for(const n of t)n.addEventListener("click",(()=>{e("#shops-kz",".where-to-buy")}))}t()}catch(e){t(e)}}),1)},7028:function(e,t,n){n.a(e,(async function(e,t){try{var i=n(5158),o=n(7305),r=n(6531),a=n(4348),s=n(2048),l=e([a]);function d(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(e){d(r,i,o,a,s,"next",e)}function s(e){d(r,i,o,a,s,"throw",e)}a(void 0)}))}}a=(l.then?(await l)():l)[0],window.addEventListener("DOMContentLoaded",(()=>{const e=function(){var e=c((function*(){if(document.querySelector(".js-dialog-reg-fiz")){const[e,t]=yield Promise.all([Promise.all([n.e(8096),n.e(7820)]).then(n.bind(n,7820)),Promise.all([n.e(8096),n.e(5994)]).then(n.bind(n,5994))]);t.default(),e.default()}}));return function(){return e.apply(this,arguments)}}(),t=function(){var e=c((function*(){if(window.smartCaptcha)return;if(!document.querySelectorAll(".js-reg-form-steps").length)return;(0,s.A)("show-global",!1);const{default:e}=yield n.e(1608).then(n.bind(n,1608));e.init({onLoad:()=>{(0,s.A)("show-global",!1)}})}));return function(){return e.apply(this,arguments)}}();window.addEventListener("load",t,{once:!0}),document.addEventListener("click",(function e(n){n.target.closest(".js-short-reg")&&(t(),document.removeEventListener("click",e))})),(0,r.default)({loop:!0,slidesPerView:1,spaceBetween:20,preloadImages:!1,lazy:{loadPrevNext:!0},breakpoints:{996:{slidesPerView:"auto",loopedSlides:5,loopedSlidesLimit:!1,navigation:{nextEl:".slider-button-next",prevEl:".slider-button-prev"}}}},"js-products-slider"),(0,o.A)(),(0,i.A)(),e()})),t()}catch(u){t(u)}}))}},function(e){e.O(0,[8096],(function(){return e(e.s=7028)})),e.O()}]);