').appendTo($(l).find(".notification-product__photo")),$(l).find(".notification-product__title").html(d.title),$(l).find(".notification-product__price").html(Shop.money.format(d.sale_price)),$(l).find(".notification-product__count").text(c+" "+Shop.units.getName(d.product.unit)+"."),$(l).addClass("is-show-fullscreen")}})),$(document).ready((function(){$(l).find(".js-hide-notification").on("click",(function(){$(l).removeClass("is-show-fullscreen")})),$(l).on("click",(function(e){$(e.target).closest(l+" .layout__content").length||$(l).removeClass("is-show-fullscreen")}))})),$(document).off("close-preview-widget:editor",closePreviewWidgetEditor),$(document).on("close-preview-widget:editor",closePreviewWidgetEditor),d.each((function(e,t){$(t).on("open-preview-widget:editor",(function(e){$(t).addClass("is-show-fullscreen")}))}))}catch(u){}try{let h=".widget-type_system_widget_v4_preorder_1",f=$(".widget-type_system_widget_v4_preorder_1");function closePreviewWidgetEditor(e){$(h).removeClass("is-show-fullscreen")}$((function(){EventBus.subscribe("show-preorder:insales:ui_product",(e=>{let t=$(h).find('[name="content"]'),s=t.data("preorderProductLabel"),i=t.data("preorderVariantLabel"),n=s+e.product;e.variant&&(n+=""+i+e.variant),$(h).find('[name="content"]').val(n),$(h).addClass("is-show-fullscreen")})),$(document).ready((function(){$(h).find(".js-hide-preorder").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")}))})),EventBus.subscribe("send-feedback:insales:ui_feedback",(e=>{e.form.addClass("is-sended"),setTimeout((function(){e.form.removeClass("is-sended"),$(h).removeClass("is-show-fullscreen")}),5e3)}))})),$(document).off("close-preview-widget:editor",closePreviewWidgetEditor),$(document).on("close-preview-widget:editor",closePreviewWidgetEditor),f.each((function(e,t){$(t).on("open-preview-widget:editor",(function(e){$(t).addClass("is-show-fullscreen")}))}))}catch(_){}try{let m,g=$(".widget-type_system_widget_v4_button_on_top_1");function showButtonOnTop(e){$(window).scrollTop()>=$(window).height()?e.addClass("is-show"):e.removeClass("is-show")}g.find(".js-go-top-page").on("click",(function(){return $("html, body").animate({scrollTop:0},500),!1})),$(window).on("scroll",(function(){clearTimeout(m),m=setTimeout((function(){showButtonOnTop(g.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(p){}try{let w=$(".widget-type_system_widget_v4_cart_fixed_button_1");$((function(){"/new_order"==window.location.pathname&&w.find(".js-cart-fixed-btn").addClass("is-no-visible"),w.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(v){}try{let b=$(".widget-type_system_widget_v4_bottom_navigation_bar_1");$((function(){let e=window.location.pathname;-1!==e.indexOf("client_account")&&b.find(".navigation-bar__item-profile").addClass("is-active is-cur-page"),b.find("[data-show-navigation-bar-panel]").on("click",(function(){let e=$(this),t=e.data("showNavigationBarPanel"),s=b.find('[data-navigation-bar-panel="'+t+'"]');if(s.is(".is-show"))bodyScrollLock.clearAllBodyScrollLocks(),s.removeClass("is-show"),$("header").css("display","block"),e.removeClass("is-active"),b.find(".navigation-bar__item.is-cur-page").addClass("is-active");else{let i=s.get(0);i&&bodyScrollLock.disableBodyScroll(i),$("header").css("display","none");let n=e.parents(".layout").innerHeight();b.find("[data-navigation-bar-panel].is-show").removeClass("is-show"),s.css("bottom",n).addClass("is-show"),"search"==t&&setTimeout((function(){s.find("[data-search-field]").focus()}),500),b.find(".navigation-bar__item.is-active").removeClass("is-active"),e.addClass("is-active")}})),b.find(".navigation-bar__item-home").on("click",(function(){"/"==e&&(b.find(".navigation-bar-panel.is-show").removeClass("is-show"),b.find(".navigation-bar__item.is-active").removeClass("is-active"),b.find(".navigation-bar__item.is-cur-page").addClass("is-active"))})),b.find(".js-hide-navigation-bar-panel").on("click",(function(){b.find("[data-navigation-bar-panel].is-show").removeClass("is-show"),b.find(".navigation-bar__item.is-active").removeClass("is-active"),b.find(".navigation-bar__item.is-cur-page").addClass("is-active"),bodyScrollLock.clearAllBodyScrollLocks(),$("header").css("display","block")})),b.find(".collections__menu .is-current").addClass("is-show"),b.find(".js-show-submenu").on("click",(function(){$(this).parents(".collections__item:first").toggleClass("is-show")})),b.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(y){}try{let C=".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 s=$(C).offset().top+2*$(C).find(".layout__content").height();function i(){return $(window).width()<=t}$(C).find("#header-with-left-menu").hasClass("is-editor")&&$(window).on("resize",(()=>{s=$(C).offset().top+2*$(C).find(".layout__content").height()})),$((function(){function n(e){let t=e.find(".header-cat-menu");t.hasClass("is-desktop")&&($(C).find(".m-cat-menu__show-next-level").on("mouseenter",(function e(){if(t.hasClass("is-mobile"))return $(C).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`))}))})),$(C).find(".m-cat-menu__show-next-level").on("mouseleave",(function e(){if(t.hasClass("is-mobile"))return $(C).find(".is-mobile .m-cat-menu__show-next-level").off("mouseleave",e),!1;function s(){return t.find(".m-cat-menu > ul").height()<=$(window).height()-t[0].getBoundingClientRect().top&&t.hasClass("_show")?"100vh":"auto"}let i=$(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(){i=t&&new InsalesCutList($(C).find(".js-cut-list"),{moreBtnTitle:'',alwaysVisibleElem:".is-current"}),$(window).on("load",(function(){$(C).find(".js-cut-list").resize()})),$(C).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")})),$(C).find(".js-show-touch-submenu").on("click",(function(){let e=$(this).parents(".header__collections-item:last"),s=$(this).parents(".header__collections-item:first"),i=s.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")})):$(C).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")}))),s.toggleClass("is-show"),i.length&&i.offset().left+i.innerWidth()>$(window).width()&&i.addClass("is-right")})),$(document).on("click",(function(e){$(e.target).closest(".header__collections").length||$(window).width()>=t&&"side-panel"!=$(C).css("--catalog-location")&&$(C).find(".header__collections-item").removeClass("is-show is-right")})),$(C).find(".cut-list__drop-toggle").on("click",(function(){$(window).width()>=t&&$(C).find(".header__collections-item").removeClass("is-show is-right")})),$(C).find(".js-start-search").on("click",(function(){$(C).find(".header__search-form")[0].submit()})),$(C).find(".js-show-side-panel").on("click",(function(){$(C).find(".header-overlay").addClass("is-show"),$(C).find(".side-panel").addClass("is-show"),$(C).find(".side-panel").css("visibility","")})),$(C).find(".js-hide-side-panel").on("click",(function(){$(C).find(".header-overlay").removeClass("is-show"),$(C).find(".side-panel").removeClass("is-show")})),$(C).find(".js-toggle-languages-list").on("click",(function(){$(this).parents(".header__area-languages").toggleClass("is-show")})),$(C).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(i()){let t=e.find(".header-cat-menu").get(0);t&&bodyScrollLock.disableBodyScroll(t)}}else i()&&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<=s&&$("html, body").animate({scrollTop:0},300),setTimeout((()=>{const e=t.parents(".layout__content:first"),s=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 - ${s}px)`}else if(t.hasClass("_show")&&(c>=a-o||c<=a-o))return`calc(${a}px - ${o}px)`;return"auto"};i()?(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:s})):(t.find(".m-cat-menu").css({height:l()+s}),t.css({height:l(),top:e.css("height"),maxHeight:r}))}),0),t.toggleClass(["_show","_hide"]),i())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")),s=t.find(".header-cat-menu");if($(e.target).closest(".js-toggle-cat-menu").length||$(e.target).closest(".m-cat-menu").length)return;let i=t.find(".js-toggle-cat-menu");s.hasClass("_show")&&(s.removeClass("_show").addClass("_hide"),bodyScrollLock.clearAllBodyScrollLocks()),s.hasClass("_hide")&&(i.children("span.icon-times").removeClass("_show").addClass("_hide"),i.children("span.icon-bars").removeClass("_hide").addClass("_show"))}))})),$(window).on("load",(function(){$(C).find(".js-cut-list-collections").resize(),$(C).find(".side-panel").css("visibility","")})),$(window).on("scroll",function(e){let t;return function(){clearTimeout(t),t=setTimeout(e,0)}}((function(){let e=$(C).find(".header").height();function t(){let e=$(C).attr("style").replace(/:\s/g,":");$(C).attr("style",e)}i()&&(window.pageYOffset>=s&&!$(C).find(".header").hasClass("sticky")&&($(C).css({opacity:0}),$(C).stop(!0,!0).animate({opacity:1},300),$(C).find(".header__area-logo, .header__area-search").stop(!0,!0).animate({transform:"translateY(-200%)"},{duration:300,queue:!1,step:function(){$(C).find(".header__area-logo, .header__area-search").hide(),$(C).find(".header__content").css("grid-template-areas",'"burger controls"'),$(C).find(".header__content").css("grid-template-columns","1fr"),$(C).find(".header__area-controls").css("height","62px"),$(C).find(".header").addClass("sticky"),$(C).find(".filling-block").css("height",e),t()}})),window.pageYOffset<=s&&$(C).find(".header").hasClass("sticky")&&($(C).stop(!0,!0).animate({opacity:1},300),$(C).find(".header__area-logo, .header__area-search").stop(!0,!0).animate({transform:"translateY(200%)"},{duration:300,queue:!1,step:function(){$(C).find(".header__area-logo, .header__area-search").show(),$(C).find(".header__content").removeAttr("style"),$(C).find(".header__area-controls").css("height","auto"),$(C).find(".header").removeClass("sticky"),$(C).find(".filling-block").css("height",0),t()}})))}))),EventBus.subscribe(["widget:input-setting:insales:system:editor","widget:change-setting:insales:system:editor"],(()=>{$(C).find(".js-cut-list-collections").resize(),$(C).find(".header__search").removeClass("is-show"),$(C).find(".header__logo").removeClass("is-hide")}))}))}catch(k){}try{let x=$(".widget-type_system_widget_v4_banner_top_1_1");$((function(){x.ready((function(){x.each((function(){let e,t,s=$(this);e=s.find(".banner-top").data("id-desktop"),t=s.find(`[data-id-desktop="${e}"]`),t.length&&(Cookies.get(e)?t.hasClass("editor-mode")&&s.addClass("is-show-fullscreen"):s.addClass("is-show-fullscreen"),t.find(".js-banner-top-close").on("click",(function(t){t.preventDefault(),s.removeClass("is-show-fullscreen"),Cookies.set(e,!0,{expires:365,path:"/"})})))}))}))}))}catch(B){} ЗаявкаВаше имя:Контактный телефон:Согласие на обработку персональных данныхЯ ознакомлен и согласен с условиями оферты и политики конфиденциальности.Комментарий:
Я ознакомлен и согласен с условиями оферты и политики конфиденциальности.