').appendTo($(h).find(".notification-product__photo")),$(h).find(".notification-product__title").html(l.title),$(h).find(".notification-product__price").html(Shop.money.format(l.sale_price)),$(h).find(".notification-product__count").text(c+" "+Shop.units.getName(l.product.unit)+"."),$(h).addClass("is-show-fullscreen")}})),$(document).ready((function(){$(h).find(".js-hide-notification").on("click",(function(){$(h).removeClass("is-show-fullscreen")})),$(h).on("click",(function(e){$(e.target).closest(h+" .layout__content").length||$(h).removeClass("is-show-fullscreen")}))})),$(document).off("close-preview-widget:editor",closePreviewWidgetEditor),$(document).on("close-preview-widget:editor",closePreviewWidgetEditor),m.each((function(e,t){$(t).on("open-preview-widget:editor",(function(e){$(t).addClass("is-show-fullscreen")}))}))}catch(_){}try{let g=".widget-type_system_widget_v4_preorder_1",p=$(".widget-type_system_widget_v4_preorder_1");function closePreviewWidgetEditor(e){$(g).removeClass("is-show-fullscreen")}$((function(){EventBus.subscribe("show-preorder:insales:ui_product",(e=>{let t=$(g).find('[name="content"]'),i=t.data("preorderProductLabel"),s=t.data("preorderVariantLabel"),n=i+e.product;e.variant&&(n+=""+s+e.variant),$(g).find('[name="content"]').val(n),$(g).addClass("is-show-fullscreen")})),$(document).ready((function(){$(g).find(".js-hide-preorder").on("click",(function(){$(g).removeClass("is-show-fullscreen")})),$(g).on("click",(function(e){$(e.target).closest(g+" .layout__content").length||$(g).removeClass("is-show-fullscreen")}))})),EventBus.subscribe("send-feedback:insales:ui_feedback",(e=>{e.form.addClass("is-sended"),setTimeout((function(){e.form.removeClass("is-sended"),$(g).removeClass("is-show-fullscreen")}),5e3)}))})),$(document).off("close-preview-widget:editor",closePreviewWidgetEditor),$(document).on("close-preview-widget:editor",closePreviewWidgetEditor),p.each((function(e,t){$(t).on("open-preview-widget:editor",(function(e){$(t).addClass("is-show-fullscreen")}))}))}catch(w){}try{let v,b=$(".widget-type_system_widget_v4_button_on_top_1");function showButtonOnTop(e){$(window).scrollTop()>=$(window).height()?e.addClass("is-show"):e.removeClass("is-show")}b.find(".js-go-top-page").on("click",(function(){return $("html, body").animate({scrollTop:0},500),!1})),$(window).on("scroll",(function(){clearTimeout(v),v=setTimeout((function(){showButtonOnTop(b.find(".js-go-top-page"))}),50)})),$((function(){EventBus.subscribe(["widget:input-setting:insales:system:editor","widget:change-setting:insales:system:editor"],(e=>{"icon-view"==e.setting_name&&$('[data-widget-id="'+e.widget_id+'"] .js-go-top-page').find("> span").removeClass().addClass(e.value)}))}))}catch(y){}try{let C=$(".widget-type_system_widget_v4_cart_fixed_button_1");$((function(){"/new_order"==window.location.pathname&&C.find(".js-cart-fixed-btn").addClass("is-no-visible"),C.each((function(){let e=$(this).find(".js-cart-fixed-btn"),t=e.data("button-type");if("onscroll"===t){let t;$(window).on("scroll",(function(){clearTimeout(t),t=setTimeout((function(){var t;t=e,$(window).scrollTop()>=100?t.addClass("is-show"):t.removeClass("is-show")}),50)}))}"addcart"===t&&EventBus.subscribe(["order_ready:insales:cart","update_items:insales:cart:light"],(t=>{0==t.order_lines.length?e.removeClass("is-show"):e.addClass("is-show")}))}))}))}catch(k){}try{let x=$(".widget-type_system_widget_v4_bottom_navigation_bar_1");$((function(){let e=window.location.pathname;-1!==e.indexOf("client_account")&&x.find(".navigation-bar__item-profile").addClass("is-active is-cur-page"),x.find("[data-show-navigation-bar-panel]").on("click",(function(){let e=$(this),t=e.data("showNavigationBarPanel"),i=x.find('[data-navigation-bar-panel="'+t+'"]');if(i.is(".is-show"))bodyScrollLock.clearAllBodyScrollLocks(),i.removeClass("is-show"),$("header").css("display","block"),e.removeClass("is-active"),x.find(".navigation-bar__item.is-cur-page").addClass("is-active");else{let s=i.get(0);s&&bodyScrollLock.disableBodyScroll(s),$("header").css("display","none");let n=e.parents(".layout").innerHeight();x.find("[data-navigation-bar-panel].is-show").removeClass("is-show"),i.css("bottom",n).addClass("is-show"),"search"==t&&setTimeout((function(){i.find("[data-search-field]").focus()}),500),x.find(".navigation-bar__item.is-active").removeClass("is-active"),e.addClass("is-active")}})),x.find(".navigation-bar__item-home").on("click",(function(){"/"==e&&(x.find(".navigation-bar-panel.is-show").removeClass("is-show"),x.find(".navigation-bar__item.is-active").removeClass("is-active"),x.find(".navigation-bar__item.is-cur-page").addClass("is-active"))})),x.find(".js-hide-navigation-bar-panel").on("click",(function(){x.find("[data-navigation-bar-panel].is-show").removeClass("is-show"),x.find(".navigation-bar__item.is-active").removeClass("is-active"),x.find(".navigation-bar__item.is-cur-page").addClass("is-active"),bodyScrollLock.clearAllBodyScrollLocks(),$("header").css("display","block")})),x.find(".collections__menu .is-current").addClass("is-show"),x.find(".js-show-submenu").on("click",(function(){$(this).parents(".collections__item:first").toggleClass("is-show")})),x.find(".js-show-collections-search").on("click",(function(){let e=$(this).parents(".collections-search");e.toggleClass("is-show"),e.is(".is-show")&&setTimeout((function(){e.find(".collections-search__field").focus()}),50)}))}))}catch(j){}try{let S=$(".widget-type_system_widget_v4_sidebar_filter_3");$((function(){S.each((function(e,t){function i(e){let i=$(t).find("form.filter.live-submit");i&&i.submit()}function s(e){let t=5;const i=e.querySelectorAll(".filter-item__list-item.ajax-filter-item-checked").length;if(i>=5)t=-1;else if(i>0){const s=e.querySelectorAll(".filter-item__list-item:nth-child(-n+5)");for(let e=0,n=0;eo?s.prop("disabled",!1):s.prop("disabled",!0),t0||$(t).find(".filter-range__field:not(:disabled)").length>0)&&e.find(".js-show-mobile-filter, .filter__head-reset").addClass("is-active-filters"),function(e){const t=e.find(".filter-item__list");for(const e of t)e.dataset.childrenVisible=s(e)}(e),function(e){e.on("change",(e=>{if(1==e.target.classList.contains("filter-option__field")){const t=e.target.closest(".filter-item__list-item"),i=e.target.closest(".filter-item__list");t.classList.toggle("ajax-filter-item-checked",e.target.checked),i.dataset.childrenVisible=s(i)}}))}(e),function(e){e.on("click",(e=>{!0===e.target.hasAttribute("data-ajax-filter-view-all-btn")||!0===e.target.hasAttribute("data-ajax-filter-hide-all-btn")&&function(e){const t=e.closest(".filter-item__content").querySelector(".filter-item__list");t.dataset.childrenVisible=s(t)}(e.target)}))}(e)}})),EventBus.subscribe("filter-item-loaded:ui-ajax-filter",(function(e){const t=e&&e.filterItem;if(t){if(e.checked&&e.checked.length){const i=e.checked.map((e=>`input[value='${e}']`)).join(", ");t.querySelectorAll(i).forEach((e=>{e.checked=!0,e.closest(".filter-item__list-item").classList.add("ajax-filter-item-checked")}))}e.classList&&e.classList.length&&t.classList.add(...e.classList);const i=t.querySelector(".filter-item__list");i.dataset.childrenVisible=s(i)}}))}))}))}catch(A){}try{let E=".widget-type_system_widget_v4_header_8";$(".widget-type_system_widget_v4_header_8"),$((function(){const e=!(!("ontouchstart"in window)&&!navigator.msMaxTouchPoints),t=768;let i=$(E).offset().top+2*$(E).find(".layout__content").height();function s(){return $(window).width()<=t}$(E).find("#header-with-left-menu").hasClass("is-editor")&&$(window).on("resize",(()=>{i=$(E).offset().top+2*$(E).find(".layout__content").height()})),$((function(){function n(e){let t=e.find(".header-cat-menu");t.hasClass("is-desktop")&&($(E).find(".m-cat-menu__show-next-level").on("mouseenter",(function e(){if(t.hasClass("is-mobile"))return $(E).find(".is-mobile .m-cat-menu__show-next-level").off("mouseenter",e),!1;$(this).children(".m-cat-menu__wrapper").removeAttr("style"),$(this).children(".m-cat-menu__wrapper, .m-cat-menu").stop(!0,!0).delay(500).show(0,(()=>{$(this).children(".m-cat-menu__wrapper").get(0).scrollHeight>t.height()&&(t.css("height",`${$(this).children(".m-cat-menu__wrapper").get(0).scrollHeight}px`),t.find(".m-cat-menu").css("height",`${$(this).children(".m-cat-menu__wrapper").get(0).scrollHeight}px`))}))})),$(E).find(".m-cat-menu__show-next-level").on("mouseleave",(function e(){if(t.hasClass("is-mobile"))return $(E).find(".is-mobile .m-cat-menu__show-next-level").off("mouseleave",e),!1;function i(){return t.find(".m-cat-menu > ul").height()<=$(window).height()-t[0].getBoundingClientRect().top&&t.hasClass("_show")?"100vh":"auto"}let s=$(this).closest(".m-cat-menu__list").get(0).scrollHeight,n=$(this).find(".m-cat-menu__list").get(0).scrollHeight;$(this).children(".m-cat-menu__wrapper").stop(!0,!0).delay(500).hide(0,(function(){s=t&&new InsalesCutList($(E).find(".js-cut-list"),{moreBtnTitle:'',alwaysVisibleElem:".is-current"}),$(window).on("load",(function(){$(E).find(".js-cut-list").resize()})),$(E).find(".header__collections .is-current").length&&($(window).width() .header__collections-submenu");e.length&&e.offset().left+e.innerWidth()>$(window).width()&&e.addClass("is-right")}),(function(){$(this).find("> .header__collections-submenu").removeClass("is-right")})),$(E).find(".js-show-touch-submenu").on("click",(function(){let e=$(this).parents(".header__collections-item:last"),i=$(this).parents(".header__collections-item:first"),s=i.find("> .header__collections-submenu");$(window).width()>=t&&($(this).parents(".cut-list__more-content").length?$(this).parents(".cut-list__more-content").find("> .header__collections-item.is-show").each((function(){0==$(this).is(e)&&$(this).removeClass("is-show is-right").find(".header__collections-item.is-show").removeClass("is-show is-right")})):$(E).find(".header__collections > .header__collections-item.is-show").each((function(){0==$(this).is(e)&&$(this).removeClass("is-show is-right").find(".header__collections-item.is-show").removeClass("is-show is-right")}))),i.toggleClass("is-show"),s.length&&s.offset().left+s.innerWidth()>$(window).width()&&s.addClass("is-right")})),$(document).on("click",(function(e){$(e.target).closest(".header__collections").length||$(window).width()>=t&&"side-panel"!=$(E).css("--catalog-location")&&$(E).find(".header__collections-item").removeClass("is-show is-right")})),$(E).find(".cut-list__drop-toggle").on("click",(function(){$(window).width()>=t&&$(E).find(".header__collections-item").removeClass("is-show is-right")})),$(E).find(".js-start-search").on("click",(function(){$(E).find(".header__search-form")[0].submit()})),$(E).find(".js-show-side-panel").on("click",(function(){$(E).find(".header-overlay").addClass("is-show"),$(E).find(".side-panel").addClass("is-show"),$(E).find(".side-panel").css("visibility","")})),$(E).find(".js-hide-side-panel").on("click",(function(){$(E).find(".header-overlay").removeClass("is-show"),$(E).find(".side-panel").removeClass("is-show")})),$(E).find(".js-toggle-languages-list").on("click",(function(){$(this).parents(".header__area-languages").toggleClass("is-show")})),$(E).find(".js-toggle-cat-menu").on("click",(function(){let e=$(this).closest(".layout"),t=e.find(".header-cat-menu"),n=e.find(".header");if($(this).children("span").toggleClass(["_show","_hide"]),$(this).children("span").hasClass("_show")&&(a(e),e.on("resize",(function(){a(e)}))),$(this).children("span.icon-bars").is("._hide")){if(s()){let t=e.find(".header-cat-menu").get(0);t&&bodyScrollLock.disableBodyScroll(t)}}else s()&&bodyScrollLock.clearAllBodyScrollLocks();if($(this).children("span.icon-bars").is("._hide")){let t=e.find(".header-cat-menu").get(0);t&&(bodyScrollLock.disableBodyScroll(t),$(window).width()>=1024&&($("body").css("padding-right","calc(15px - (100vw - 100%))"),$('[data-fixed-panels="top"]').css("padding-right","calc(15px - (100vw - 100%))")))}else bodyScrollLock.clearAllBodyScrollLocks(),$(window).width()>=1024&&($("body").css("padding-right",0),$('[data-fixed-panels="top"]').css("padding-right","0"));if(window.pageYOffset<=i&&$("html, body").animate({scrollTop:0},300),setTimeout((()=>{const e=t.parents(".layout__content:first"),i=parseInt(n.css("height")),o=parseInt(e.css("height")),a=window.innerHeight,c=t.find(".m-cat-menu > ul").height(),r=$(window).height()-e.offset().top-parseInt(e.css("height")),l=()=>{if(n.hasClass("sticky")){if(c>=a-o||c<=a-o)return`calc(${a}px - ${i}px)`}else if(t.hasClass("_show")&&(c>=a-o||c<=a-o))return`calc(${a}px - ${o}px)`;return"auto"};s()?(c<=a-o&&t.hasClass("_show")?t.find(".m-cat-menu").css({height:l()}):t.find(".m-cat-menu").css({"overflow-y":"scroll"}),t.css({height:l(),top:i})):(t.find(".m-cat-menu").css({height:l()+i}),t.css({height:l(),top:e.css("height"),maxHeight:r}))}),0),t.toggleClass(["_show","_hide"]),s())t.find(".m-cat-menu").css({paddingLeft:"15px"});else{let e=t.parent().offset().left;t.find(".m-cat-menu").css({paddingLeft:e})}t.hasClass("_hide")&&(t.removeAttr("style"),t.find(".m-cat-menu, .m-cat-menu__wrapper").removeAttr("style"))})),$(document).on("click",(function(e){let t=$(e.target.closest(".layout")),i=t.find(".header-cat-menu");if($(e.target).closest(".js-toggle-cat-menu").length||$(e.target).closest(".m-cat-menu").length)return;let s=t.find(".js-toggle-cat-menu");i.hasClass("_show")&&(i.removeClass("_show").addClass("_hide"),bodyScrollLock.clearAllBodyScrollLocks()),i.hasClass("_hide")&&(s.children("span.icon-times").removeClass("_show").addClass("_hide"),s.children("span.icon-bars").removeClass("_hide").addClass("_show"))}))})),$(window).on("load",(function(){$(E).find(".js-cut-list-collections").resize(),$(E).find(".side-panel").css("visibility","")})),$(window).on("scroll",function(e){let t;return function(){clearTimeout(t),t=setTimeout(e,0)}}((function(){let e=$(E).find(".header").height();function t(){let e=$(E).attr("style").replace(/:\s/g,":");$(E).attr("style",e)}s()&&(window.pageYOffset>=i&&!$(E).find(".header").hasClass("sticky")&&($(E).css({opacity:0}),$(E).stop(!0,!0).animate({opacity:1},300),$(E).find(".header__area-logo, .header__area-search").stop(!0,!0).animate({transform:"translateY(-200%)"},{duration:300,queue:!1,step:function(){$(E).find(".header__area-logo, .header__area-search").hide(),$(E).find(".header__content").css("grid-template-areas",'"burger controls"'),$(E).find(".header__content").css("grid-template-columns","1fr"),$(E).find(".header__area-controls").css("height","62px"),$(E).find(".header").addClass("sticky"),$(E).find(".filling-block").css("height",e),t()}})),window.pageYOffset<=i&&$(E).find(".header").hasClass("sticky")&&($(E).stop(!0,!0).animate({opacity:1},300),$(E).find(".header__area-logo, .header__area-search").stop(!0,!0).animate({transform:"translateY(200%)"},{duration:300,queue:!1,step:function(){$(E).find(".header__area-logo, .header__area-search").show(),$(E).find(".header__content").removeAttr("style"),$(E).find(".header__area-controls").css("height","auto"),$(E).find(".header").removeClass("sticky"),$(E).find(".filling-block").css("height",0),t()}})))}))),EventBus.subscribe(["widget:input-setting:insales:system:editor","widget:change-setting:insales:system:editor"],(()=>{$(E).find(".js-cut-list-collections").resize(),$(E).find(".header__search").removeClass("is-show"),$(E).find(".header__logo").removeClass("is-hide")}))}))}catch(B){}try{let L=$(".widget-type_system_widget_v4_banner_top_1_1");$((function(){L.ready((function(){L.each((function(){let e,t,i=$(this);e=i.find(".banner-top").data("id-desktop"),t=i.find(`[data-id-desktop="${e}"]`),t.length&&(Cookies.get(e)?t.hasClass("editor-mode")&&i.addClass("is-show-fullscreen"):i.addClass("is-show-fullscreen"),t.find(".js-banner-top-close").on("click",(function(t){t.preventDefault(),i.removeClass("is-show-fullscreen"),Cookies.set(e,!0,{expires:365,path:"/"})})))}))}))}))}catch(I){} ЗаявкаВаше имя:Контактный телефон:Согласие на обработку персональных данныхЯ ознакомлен и согласен с условиями оферты и политики конфиденциальности.Комментарий:
Я ознакомлен и согласен с условиями оферты и политики конфиденциальности.