').appendTo($(h).find(".notification-product__photo")),$(h).find(".notification-product__title").html(d.title),$(h).find(".notification-product__price").html(Shop.money.format(d.sale_price)),$(h).find(".notification-product__count").text(r+" "+Shop.units.getName(d.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),f.each((function(e,t){$(t).on("open-preview-widget:editor",(function(e){$(t).addClass("is-show-fullscreen")}))}))}catch(m){}try{let p=".widget-type_system_widget_v4_preorder_1",_=$(".widget-type_system_widget_v4_preorder_1");function closePreviewWidgetEditor(e){$(p).removeClass("is-show-fullscreen")}$((function(){EventBus.subscribe("show-preorder:insales:ui_product",(e=>{let t=$(p).find('[name="content"]'),i=t.data("preorderProductLabel"),s=t.data("preorderVariantLabel"),n=i+e.product;e.variant&&(n+=""+s+e.variant),$(p).find('[name="content"]').val(n),$(p).addClass("is-show-fullscreen")})),$(document).ready((function(){$(p).find(".js-hide-preorder").on("click",(function(){$(p).removeClass("is-show-fullscreen")})),$(p).on("click",(function(e){$(e.target).closest(p+" .layout__content").length||$(p).removeClass("is-show-fullscreen")}))})),EventBus.subscribe("send-feedback:insales:ui_feedback",(e=>{e.form.addClass("is-sended"),setTimeout((function(){e.form.removeClass("is-sended"),$(p).removeClass("is-show-fullscreen")}),5e3)}))})),$(document).off("close-preview-widget:editor",closePreviewWidgetEditor),$(document).on("close-preview-widget:editor",closePreviewWidgetEditor),_.each((function(e,t){$(t).on("open-preview-widget:editor",(function(e){$(t).addClass("is-show-fullscreen")}))}))}catch(g){}try{let w,v=$(".widget-type_system_widget_v4_button_on_top_1");function showButtonOnTop(e){$(window).scrollTop()>=$(window).height()?e.addClass("is-show"):e.removeClass("is-show")}v.find(".js-go-top-page").on("click",(function(){return $("html, body").animate({scrollTop:0},500),!1})),$(window).on("scroll",(function(){clearTimeout(w),w=setTimeout((function(){showButtonOnTop(v.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(b){}try{let y=$(".widget-type_system_widget_v4_cart_fixed_button_1");$((function(){"/new_order"==window.location.pathname&&y.find(".js-cart-fixed-btn").addClass("is-no-visible"),y.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(C){}try{let k=$(".widget-type_system_widget_v4_bottom_navigation_bar_1");$((function(){let e=window.location.pathname;-1!==e.indexOf("client_account")&&k.find(".navigation-bar__item-profile").addClass("is-active is-cur-page"),k.find("[data-show-navigation-bar-panel]").on("click",(function(){let e=$(this),t=e.data("showNavigationBarPanel"),i=k.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"),k.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();k.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),k.find(".navigation-bar__item.is-active").removeClass("is-active"),e.addClass("is-active")}})),k.find(".navigation-bar__item-home").on("click",(function(){"/"==e&&(k.find(".navigation-bar-panel.is-show").removeClass("is-show"),k.find(".navigation-bar__item.is-active").removeClass("is-active"),k.find(".navigation-bar__item.is-cur-page").addClass("is-active"))})),k.find(".js-hide-navigation-bar-panel").on("click",(function(){k.find("[data-navigation-bar-panel].is-show").removeClass("is-show"),k.find(".navigation-bar__item.is-active").removeClass("is-active"),k.find(".navigation-bar__item.is-cur-page").addClass("is-active"),bodyScrollLock.clearAllBodyScrollLocks(),$("header").css("display","block")})),k.find(".collections__menu .is-current").addClass("is-show"),k.find(".js-show-submenu").on("click",(function(){$(this).parents(".collections__item:first").toggleClass("is-show")})),k.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(x){}try{let E=".widget-type_system_widget_v4_article_products_5",B=$(".widget-type_system_widget_v4_article_products_5");$((function(){function e(e,t,s){let n=0;return 0===e.width()?"auto":(e.is("[data-mobile-right-padding]")&&i()&&(n=parseInt(e.data("mobileRightPadding"))+s),Math.floor((e.width()+s-n)/(t+s)))}function t(e){e[0].splide.length<=e[0].splide.options.perPage?e[0].splide.options={drag:!1}:e[0].splide.options={drag:!0}}function i(){return $(window).width()<=767}!(!("ontouchstart"in window)&&!navigator.msMaxTouchPoints)&&$(E).find(".product-preview").addClass("is-touch"),$((function(){B.find(".js-special-products").each((function(){let s=$(this).find(".js-special-products-slider"),n=160,o=130,a=30,r=15,c=50;s.is("[data-slide-min-width]")?n=parseInt(s.attr("data-slide-min-width")):s.attr("data-slide-min-width",n),s.is("[data-slide-min-width-mobile]")?o=parseInt(s.attr("data-slide-min-width-mobile")):s.attr("data-slide-min-width-mobile",o),s.is("[data-slide-gap]")?a=parseInt(s.attr("data-slide-gap")):s.attr("data-slide-gap",a),s.is("[data-slide-gap-mobile]")?r=parseInt(s.attr("data-slide-gap-mobile")):s.attr("data-slide-gap-mobile",r),s.is("[data-mobile-right-padding]")?c=parseInt(s.attr("data-mobile-right-padding")):s.attr("data-mobile-right-padding",c);let d=i()?o:n,l=i()?r:a,u=s.parents(".layout").css("--layout-side-padding"),h=`${c+l}px`;s[0].splide=new Splide(s[0],{perPage:e(s,d,l),gap:l,perMove:1,breakpoints:{768:{padding:{left:u,right:h}}}}),$(window).on("resize",(function(){let n=parseInt(s.attr("data-slide-min-width")),o=parseInt(s.attr("data-slide-min-width-mobile")),a=parseInt(s.attr("data-slide-gap")),r=parseInt(s.attr("data-slide-gap-mobile")),c=parseInt(s.attr("data-mobile-right-padding")),d=i()?o:n,l=i()?r:a;if(i()){let t=s.parents(".layout").css("--layout-side-padding"),i=`${c+l}px`;s[0].splide.options={gap:l,perPage:e(s,d,l),padding:{left:t,right:i}}}else s[0].splide.options={gap:l,perPage:e(s,d,l)};t(s)})),s[0].splide.on("arrows:updated",(function(){let e=s.parents(".js-special-products"),t=e.find(".special-products__slider-arrow-prev"),i=e.find(".special-products__slider-arrow-next");!0===e.find(".splide__arrow--prev").prop("disabled")?t.addClass("is-disabled"):t.removeClass("is-disabled"),!0===e.find(".splide__arrow--next").prop("disabled")?i.addClass("is-disabled"):i.removeClass("is-disabled")})),s[0].splide.on("mounted updated",(function(){!function(e){let t=e[0].splide,i=e.parents(".js-special-products").find(".special-products__slider-arrow");t.length<=t.options.perPage?(i.addClass("is-hide"),e.addClass("is-hide-paging")):(i.removeClass("is-hide"),e.removeClass("is-hide-paging"))}(s)})),s[0].splide.on("mounted",(function(){t(s)})),s[0].splide.mount(),B.find(".js-move-slide").on("click",(function(){let e=$(this).parents(".js-special-products").find(".js-special-products-slider");if(e.length){let t=e[0].splide;$(this).is(".special-products__slider-arrow-prev")&&t.go("-"),$(this).is(".special-products__slider-arrow-next")&&t.go("+")}}))})),EventBus.subscribe("change_variant:insales:product",(function(e){let t=!!$(e.action.product[0]).parents(".modal-product-preview.is-open").length;e.action&&e.action.product&&e.first_image.url&&t&&$(e.action.product[0]).find(".product-preview__photo img").attr("src",e.first_image.medium_url)})),EventBus.subscribe(["widget:input-setting:insales:system:editor","widget:change-setting:insales:system:editor"],(s=>{B.each((function(n,o){if(s.widget_id==$(o).parents(".editable-widget").data("widgetId")){let n=$('[data-widget-id="'+s.widget_id+'"] .js-special-products-slider');n.length&&n.each((function(){!function(s,n){let o=s[0].splide,a=parseInt(s.attr("data-slide-min-width")),r=parseInt(s.attr("data-slide-min-width-mobile")),c=parseInt(s.attr("data-slide-gap")),d=parseInt(s.attr("data-slide-gap-mobile")),l=parseInt(s.attr("data-mobile-right-padding"));if("slide-width"==n.setting_name){let t=parseInt(n.value);if(s.attr("data-slide-min-width",t),!i()){let i=e(s,t,c);o.options={perPage:i}}}else if("slide-width-mobile"==n.setting_name){let t=parseInt(n.value);if(s.attr("data-slide-min-width-mobile",t),i()){let i=e(s,t,d);o.options={perPage:i}}}else if("slide-gap"==n.setting_name){let t=parseInt(n.value),r=e(s,a,t);s.attr("data-slide-gap",t),i()||(o.options={gap:t,perPage:r})}else if("slide-gap-mobile"==n.setting_name){let t=parseInt(n.value),a=e(s,r,t);if(s.attr("data-slide-gap-mobile",t),i()){let e=s.parents(".layout").css("--layout-side-padding"),i=`${l+t}px`;o.options={gap:t,perPage:a,padding:{left:e,right:i}}}}else setTimeout((function(){let t=i()?r:a,n=i()?d:c,l=e(s,t,n);o.options={perPage:l}}),0);t(s)}($(this),s)}))}}))}))}))}))}catch(j){}try{let I=".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=$(I).offset().top+2*$(I).find(".layout__content").height();function s(){return $(window).width()<=t}$(I).find("#header-with-left-menu").hasClass("is-editor")&&$(window).on("resize",(()=>{i=$(I).offset().top+2*$(I).find(".layout__content").height()})),$((function(){function n(e){let t=e.find(".header-cat-menu");t.hasClass("is-desktop")&&($(I).find(".m-cat-menu__show-next-level").on("mouseenter",(function e(){if(t.hasClass("is-mobile"))return $(I).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`))}))})),$(I).find(".m-cat-menu__show-next-level").on("mouseleave",(function e(){if(t.hasClass("is-mobile"))return $(I).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($(I).find(".js-cut-list"),{moreBtnTitle:'',alwaysVisibleElem:".is-current"}),$(window).on("load",(function(){$(I).find(".js-cut-list").resize()})),$(I).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")})),$(I).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")})):$(I).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"!=$(I).css("--catalog-location")&&$(I).find(".header__collections-item").removeClass("is-show is-right")})),$(I).find(".cut-list__drop-toggle").on("click",(function(){$(window).width()>=t&&$(I).find(".header__collections-item").removeClass("is-show is-right")})),$(I).find(".js-start-search").on("click",(function(){$(I).find(".header__search-form")[0].submit()})),$(I).find(".js-show-side-panel").on("click",(function(){$(I).find(".header-overlay").addClass("is-show"),$(I).find(".side-panel").addClass("is-show"),$(I).find(".side-panel").css("visibility","")})),$(I).find(".js-hide-side-panel").on("click",(function(){$(I).find(".header-overlay").removeClass("is-show"),$(I).find(".side-panel").removeClass("is-show")})),$(I).find(".js-toggle-languages-list").on("click",(function(){$(this).parents(".header__area-languages").toggleClass("is-show")})),$(I).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,r=t.find(".m-cat-menu > ul").height(),c=$(window).height()-e.offset().top-parseInt(e.css("height")),d=()=>{if(n.hasClass("sticky")){if(r>=a-o||r<=a-o)return`calc(${a}px - ${i}px)`}else if(t.hasClass("_show")&&(r>=a-o||r<=a-o))return`calc(${a}px - ${o}px)`;return"auto"};s()?(r<=a-o&&t.hasClass("_show")?t.find(".m-cat-menu").css({height:d()}):t.find(".m-cat-menu").css({"overflow-y":"scroll"}),t.css({height:d(),top:i})):(t.find(".m-cat-menu").css({height:d()+i}),t.css({height:d(),top:e.css("height"),maxHeight:c}))}),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(){$(I).find(".js-cut-list-collections").resize(),$(I).find(".side-panel").css("visibility","")})),$(window).on("scroll",function(e){let t;return function(){clearTimeout(t),t=setTimeout(e,0)}}((function(){let e=$(I).find(".header").height();function t(){let e=$(I).attr("style").replace(/:\s/g,":");$(I).attr("style",e)}s()&&(window.pageYOffset>=i&&!$(I).find(".header").hasClass("sticky")&&($(I).css({opacity:0}),$(I).stop(!0,!0).animate({opacity:1},300),$(I).find(".header__area-logo, .header__area-search").stop(!0,!0).animate({transform:"translateY(-200%)"},{duration:300,queue:!1,step:function(){$(I).find(".header__area-logo, .header__area-search").hide(),$(I).find(".header__content").css("grid-template-areas",'"burger controls"'),$(I).find(".header__content").css("grid-template-columns","1fr"),$(I).find(".header__area-controls").css("height","62px"),$(I).find(".header").addClass("sticky"),$(I).find(".filling-block").css("height",e),t()}})),window.pageYOffset<=i&&$(I).find(".header").hasClass("sticky")&&($(I).stop(!0,!0).animate({opacity:1},300),$(I).find(".header__area-logo, .header__area-search").stop(!0,!0).animate({transform:"translateY(200%)"},{duration:300,queue:!1,step:function(){$(I).find(".header__area-logo, .header__area-search").show(),$(I).find(".header__content").removeAttr("style"),$(I).find(".header__area-controls").css("height","auto"),$(I).find(".header").removeClass("sticky"),$(I).find(".filling-block").css("height",0),t()}})))}))),EventBus.subscribe(["widget:input-setting:insales:system:editor","widget:change-setting:insales:system:editor"],(()=>{$(I).find(".js-cut-list-collections").resize(),$(I).find(".header__search").removeClass("is-show"),$(I).find(".header__logo").removeClass("is-hide")}))}))}catch(A){}try{let S=$(".widget-type_system_widget_v4_banner_top_1_1");$((function(){S.ready((function(){S.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(P){} ЗаявкаВаше имя:Контактный телефон:Согласие на обработку персональных данныхЯ ознакомлен и согласен с условиями оферты и политики конфиденциальности.Комментарий:
Я ознакомлен и согласен с условиями оферты и политики конфиденциальности.