1!function(e){var t,n=window.megashop,o=n.config,i=n.translate,a=n.ResponsiveUtil,r=n.ComponentRegistry,s=n.Update,c=n.QueryUtil={parse:function(e){var t=document.createElement("a");t.href=e;var n=t.search.substring(1);if(0===n.length)return[];for(var o=n.split("&"),i=[],a=0;a<o.length;a++){var r=o[a].split("=");i.push({name:decodeURIComponent(r[0]),value:decodeURIComponent(r[1])})}return i},clear:function(e){return e.split("?")[0]},serialize:function(t){return e.param(t)}},l=n.MetaThemeColorUtil={setColor:function(t){e('meta[name="theme-color"]').attr("content",t)},resetColor:function(){e('meta[name="theme-color"]').attr("content","#FFFFFF")}},d=n.ScrollUtil={scrollToTop:function(e){e=e||0,d.getScrollTop()<=e||d.scrollTo(e)},scrollToBottom:function(e){(e=e||0)<=d.getScrollTop()||d.scrollTo(e)},scrollTo:function(t){var n=e("html, body");t=t||0;var o=d.getScrollTop();Math.abs(o-t)>400&&n.scrollTop(t+400*Math.sign(o-t)),n.animate({scrollTop:t},300,"swing",function(){n.scrollTop(t)})},getScrollTop:function(){return e(window).scrollTop()}},u=(n.FlyUtil={flyImage:function(t,n,o){o||(o={});var i=e.Deferred(),a=t.clone().addClass("image-flying");return a.css(e.extend({position:"absolute",left:t.offset().left,top:t.offset().top,width:t.width(),height:t.height(),zIndex:10},o)),a.appendTo(document.body),a.animate({left:n.offset().left,top:n.offset().top,height:0,width:0,opacity:0},1e3,function(){a.remove(),i.resolve()}),i}},n.InfoPanelUtil=(t=null,{showMessage:function(t){var n=e(o.commons.info_panel_html);n.find(".c-info-panel__content-container").html(t),u.open(n,!0)},open:function(n){clearTimeout(t);var o=e(".c-custom-panel-container"),i=C(o);i.setContent(n),i.open(),t=setTimeout(function(){u.close()},5e3)},close:function(){clearTimeout(t);var n=e(".c-custom-panel-container");C(n).close()}}));n.PluralUtil={plural:function(e,t){return parseInt(e/10)%10!=1&&1<=e%10&&e%10<=4?e%10==1?t[0]:t[1]:t[2]}};n.PageSeparatorBuilder={create:function(t){var n=e('<div class="c-page-separator"></div>'),o=e('<span class="c-page-separator__inner"></span>');return n.append(o),o.text(t),n}};n.CookieSet=function(t,n){var i={is_stored:!1,state:null},a={list:function(){if(!i.is_stored){var n=e.cookie(t)||"";0===n.length?i.state=[]:i.state=n.split(","),i.is_stored=!0}return i.state},count:function(){return a.list().length},store:function(n){0===n.length?e.removeCookie(t,{expires:31,path:o.commons.wa_url}):e.cookie(t,n.join(","),{expires:31,path:o.commons.wa_url}),i.is_stored=!1},has:function(e){return e=e.toString(),-1!==a.list().indexOf(e)},add:function(e){if(e=e.toString(),!a.has(e)){var t=a.list();t.push(e),a.store(t),a.update({action:"add",value:e})}},remove:function(e){if(e=e.toString(),a.has(e)){var t=a.list();t.splice(t.indexOf(e),1),a.store(t),a.update({action:"remove",value:e})}},update:function(e){"function"==typeof n&&n(e)}};return a};n.TouchLockUtil={lock:function(e){if(e.length){var t=e.get(0),n={last_touch_y:null,handleTouchStart:function(e){a.isTabletMax()&&1===e.targetTouches.length&&(n.last_touch_y=e.targetTouches[0].clientY)},handleTouchMove:function(e){if(a.isTabletMax()&&1===e.targetTouches.length){var t=e.targetTouches[0].clientY-n.last_touch_y;0===this.scrollTop&&t>0&&e.preventDefault(),this.scrollHeight-this.scrollTop<=this.clientHeight&&t<0&&e.preventDefault()}}};t.addEventListener("touchmove",n.handleTouchMove,{passive:!1}),t.addEventListener("touchstart",n.handleTouchStart,{passive:!1})}}};var f,p,_=n.ScrollLockUtil={lock:function(e){e.data("scroll-locked-backup",e.css("overflow")),e.data("is-scroll-locked",!0),e.css("overflow","hidden")},unlock:function(e){e.css("overflow",e.data("scroll-locked-backup")),e.data("is-scroll-locked",""),e.data("scroll-locked-backup",null)},lockPage:function(){this.lock(e("html"))},unlockPage:function(){this.unlock(e("html"))}},h=n.ModalUtil=(f=null,p={openAjax:function(e,t,n,o){p.open({items:{type:"ajax",src:e}},t,n,o)},openContent:function(t,n,o){t=e('<div class="c-magnific-popup__content-wrapper"></div>').html(t),p.open({items:{type:"inline",src:t}},void 0,n,o)}
1,open:function(t,i,a,r){var s=e.extend({tLoading:o.commons.svg.spinner,removalDelay:200,mainClass:"c-magnific-popup",showCloseBtn:!1,autoFocusLast:!1,fixedBgPos:!0,fixedContentPos:!0,callbacks:{parseAjax:function(t){i&&(t.data=i(t.data)),t.data=e('<div class="c-magnific-popup__content-wrapper"></div>').append(t.data)},ajaxContentAdded:function(){n.Update(e.magnificPopup.instance.container),"function"==typeof a&&a()},afterChange:function(){setTimeout(function(){n.Update(e.magnificPopup.instance.container),"function"==typeof a&&a()},0)},close:function(){"function"==typeof r&&r()}}},t);cancelAnimationFrame(f),e.magnificPopup.instance.isOpen?(e.magnificPopup.close(),setTimeout(function(){cancelAnimationFrame(f),e.magnificPopup.open(s)},200)):e.magnificPopup.open(s)},close:function(){cancelAnimationFrame(f),f=requestAnimationFrame(function(){e.magnificPopup.close()})}},e.magnificPopup.instance._onFocusIn=function(t){if(0===e(t.target).closest(".l-index").length)return!0;e.magnificPopup.proto._onFocusIn.call(this,t)},p),g=n.HistoryUtil=(window.history&&(window.history.scrollRestoration="auto"),{replaceState:function(e,t,n){window.history&&window.history.replaceState&&window.history.replaceState(e,t,n)},isReload:function(){return window.performance&&window.performance.getEntriesByType("navigation").length>0?"reload"===window.performance.getEntriesByType("navigation")[0].type:1===window.performance.navigation.type},disableScrollRestoration:function(){window.history&&(window.history.scrollRestoration="manual")}}),m=n.LinkUtil={create:function(e){var t=document.createElement("a");return t.href=e,t}},v=n.Dropdown=r.register(function(e){return e.select(".c-dropdown")},function(t,n){var i="mouseenter";t.hasClass("c-dropdown_click")&&(i="click"),"ontouchstart"in window&&(i="touchstart");var a={leave_timeout_id:null,initGlobalEventListeners:function(){e(document).on("click",a.handleDocumentClick)},destroyGlobalEventListeners:function(){e(document).off("click",a.handleDocumentClick)},initEventListeners:function(){t.on(i,function(t){("touchstart"===t.type||"click"===t.type&&n.isClicking())&&n.isOpen()&&0===e(t.target).closest(".c-dropdown__dropdown").length?(clearTimeout(a.leave_timeout_id),n.close()):(clearTimeout(a.leave_timeout_id),n.open())}),n.isClicking()||t.on("mouseleave",function(){a.leave_timeout_id=setTimeout(function(){n.close()},o.commons.catalog_onleave_timeout)}),t.find(".c-dropdown__dropdown").cssAnimation("c-dropdown__dropdown_animated")},handleDocumentClick:function(o){0===e(o.target).closest(t).length&&(clearTimeout(a.leave_timeout_id),n.close())}};return e.extend(n,{isOpen:function(){return t.hasClass("c-dropdown_open")},open:function(){n.isOpen()||(t.addClass("c-dropdown_open"),t.find(".c-dropdown__dropdown").runCssAnimation("c-dropdown__dropdown_open-animation"),t.trigger("open@megashop:c-dropdown"))},close:function(){n.isOpen()&&(t.removeClass("c-dropdown_open"),t.find(".c-dropdown__dropdown").runCssAnimation("c-dropdown__dropdown_close-animation"),t.trigger("close@megashop:c-dropdown"))},isClicking:function(){return t.hasClass("c-dropdown_click")}}),a.initGlobalEventListeners(),a.initEventListeners(),function(){a.destroyGlobalEventListeners()}});n.Counter=r.register(function(e){return e.select(".c-counter")},function(t,n){e.extend(n,{changeCount:function(e){t.text(e),t.toggleClass("c-counter_empty",0===e)}})}),n.ToggleBlock=r.register(function(e){return e.select(".c-toggle-block")},function(t,n){e.extend(n,{initEventListeners:function(){n.getButton().on("click",function(){t.toggleClass("c-toggle-block_active"),t.trigger("toggle")})},getButton:function(){return t.find(".c-toggle-block__button").filter(function(){return e(this).closest(".c-toggle-block").is(t)})}}),n.initEventListeners()}),n.AccordionBlock=r.register(function(e){return e.select(".c-accordion-block")},function(t,n){var o={initEventListeners:function(){o.getButton().on("click",function(){n.toggle()})},getButton:function(){return t.find(".c-accordion-block__button").filter(function(){return e(this).closest(".c-accordion-block").is(t)})},getContent:function(){return t.find(".c-accordion-block__content").filter(function(){return e(this).closest(".c-accordion-block").is(t)})}};e.extend(n,{isOpen:function(){return t.hasClass("c-accordion-block_o
1pen")},open:function(){o.getContent().stop(!0,!0).animate({height:"show"},300,function(){t.removeClass("c-accordion-block_in-process-open"),t.offset()}),t.removeClass("c-accordion-block_in-process-close"),t.offset(),t.addClass("c-accordion-block_open"),t.addClass("c-accordion-block_in-process-open")},close:function(){o.getContent().stop(!0,!0).animate({height:"hide"},300,function(){t.removeClass("c-accordion-block_in-process-close"),t.offset()}),t.removeClass("c-accordion-block_in-process-open"),t.offset(),t.removeClass("c-accordion-block_open"),t.addClass("c-accordion-block_in-process-close")},toggle:function(){n.isOpen()?n.close():n.open()}}),o.initEventListeners()});var b=n.SlideDownUtil={show:function(t){var n=e.Deferred();return t.stop(!0,!0),t.offset(),t.animate({height:"show"},300,function(){n.resolve()}),n},hide:function(t){var n=e.Deferred();return t.stop(!0,!0),t.offset(),t.animate({height:"hide"},300,function(){n.resolve()}),n},toggle:function(e){return e.is(":visible")?b.hide(e):b.show(e)}};n.RangeSlider=r.register(function(e){return e.select(".c-range-slider")},function(t,n){e.extend(n,{initSlider:function(){var e=n.getMin(),o=n.getMax(),i=n.getSlider(),a=n.getMinBound(),r=n.getMaxBound(),s=n.handleNumber(e.val(),a,[a,r]),c=n.handleNumber(o.val(),r,[s,r]),l=1;if(t.data("step"))l=parseFloat(t.data("step"));else{var d=r-a;if(Math.round(a)!=a||Math.round(r)!=r){l=d/10;for(var u=0;l<1;)l*=10,u+=1;l=Math.pow(10,-u),(u=Math.round(1e5*Math.abs(Math.round(a)-a))/1e5)&&u<l&&(l=u),(u=Math.round(1e5*Math.abs(Math.round(r)-r))/1e5)&&u<l&&(l=u)}}i.slider({range:!0,min:a,max:r,values:[s,c],step:l,slide:function(t,n){n.values[0]===a?e.val(""):e.val(n.values[0]),n.values[1]===r?o.val(""):o.val(n.values[1])},stop:function(t,n){0===n.handleIndex?e.trigger("change"):1===n.handleIndex&&o.trigger("change")}})},initEventListeners:function(){var t=n.getMin(),o=n.getMax(),i=n.getSlider(),a=n.getMinBound(),r=n.getMaxBound();t.on("input",function(){var t=i.slider("values");t[0]=n.handleNumber(e(this).val(),a,[a,t[1]]),i.slider("values",t)}),t.on("focus",function(){""===t.val()&&t.val(a)}),t.on("blur change",function(){var o=i.slider("values"),r=n.handleNumber(e(this).val(),a,[a,o[1]]);r===a?t.val(""):t.val(r),o[0]=r,i.slider("values",o)}),o.on("input",function(){var t=i.slider("values");t[1]=n.handleNumber(e(this).val(),r,[t[0],r]),i.slider("values",t)}),o.on("focus",function(){""===o.val()&&o.val(r)}),o.on("blur change",function(){var t=i.slider("values"),a=n.handleNumber(e(this).val(),r,[t[0],r]);a===r?o.val(""):o.val(a),t[1]=a,i.slider("values",t)})},getSlider:function(){return t.find(".c-range-slider__slider")},getMin:function(){return t.find(".c-range-slider__input_min")},getMax:function(){return t.find(".c-range-slider__input_max")},getMinBound:function(){return+t.data("min")},getMaxBound:function(){return+t.data("max")},handleNumber:function(e,t,n){return""===e&&(e=NaN),e=+e,isNaN(e)?t:e=Math.max(n[0],Math.min(n[1],e))}}),n.initSlider(),n.initEventListeners()}),n.ViewportControl=r.register(function(e){return e.select(".c-viewport-control")},function(t,n){var o=e(window),i=!1;e.extend(n,{initEventListeners:function(){e(window).on("scroll",n.handleView)},destruct:function(){e(window).off("scroll",n.handleView)},handleView:function(){if(i){var e=o.height(),n=o.scrollTop(),a=t.position();a.top<n+e?t.trigger("view"):a.top-500<n+e&&t.trigger("pre_view")}},unwatch:function(){i=!1},watch:function(){i=!0,n.handleView()}}),n.initEventListeners(),setTimeout(function(){n.handleView()},0)}),n.LazyLoad=r.register(function(e){return e.select(".c-lazy-load")},function(t,n){var o={page:1,count_pages:t.data("count_pages"),is_watch:!1,current_xhr:null,initGlobalEventListeners:function(){e(window).on("scroll",o.handleScroll)},destroyGlobalEventListeners:function(){e(window).off("scroll",o.handleScroll)},handleScroll:function(){o.checkScroll()},checkScroll:function(){if(o.is_watch){var i=e(window),a=i.height(),r=i.scrollTop();t.position().top+t.height()-500<r+a&&(n.unwatch(),o.fetchNextPage().then(function(){o.page===o.count_pages?t.trigger("done@megashop:c-lazy-load",arguments):n.watch()},function(){n.watch()}))}},fetchNextPage:function(){o.current_xhr&&(o.current_xhr.abort(),o.current_xhr=null);var n=o.page+1,i=window.location.toString(),a=c.parse(i);a.push({name:"_",value:Date.now()}),n&&(a=a.filter(function(e){return"page"!==e.name})).push({name:"page",value:n});var r=document.createElement("a");
1r.href=i,r.search=c.serialize(a),t.trigger("loading@megashop:c-lazy-load",arguments);var s=e.ajax({url:r.toString()});return s.then(function(){o.page=n,t.trigger("loaded@megashop:c-lazy-load",arguments)},function(){t.trigger("error@megashop:c-lazy-load",arguments)}),s}};return e.extend(n,{getPage:function(){return o.page},getCountPages:function(){return o.count_pages},watch:function(){o.is_watch=!0,o.checkScroll()},unwatch:function(){o.is_watch=!1}}),o.initGlobalEventListeners(),function(){o.destroyGlobalEventListeners()}}),n.AuthAdapter=r.register(function(e){return e.select(".c-auth-adapter")},function(t,n){e.extend(n,{initEventListeners:function(){t.on("click",function(t){t.preventDefault();var n=e(this).attr("href");if(n){var o=(screen.width-600)/2,i=(screen.height-500)/2;window.open(n,"oauth","width=600,height=500,left="+o+",top="+i+",status=no,toolbar=no,menubar=no")}})}}),n.initEventListeners()}),n.LoginLink=r.register(function(e){return e.select(".c-login-link")},function(t,n){e.extend(n,{initEventListeners:function(){t.on("click",function(t){a.isDesktopMin()&&(t.preventDefault(),h.openAjax(o.commons.login_url+"?modal=1",function(t){return e(t).find(".c-login-page")}))})}}),n.initEventListeners()}),n.SignupLink=r.register(function(e){return e.select(".c-signup-link")},function(t,n){e.extend(n,{initEventListeners:function(){t.on("click",function(t){a.isDesktopMin()&&(t.preventDefault(),h.openAjax(o.commons.signup_url+"?modal=1",function(t){return e(t).find(".c-signup-page").get(0).outerHTML}))})}}),n.initEventListeners()});var w=n.Tabs=r.register(function(e){return e.select(".c-tabs")},function(t,n){e.extend(n,{initEventListeners:function(){t.hasClass("c-tabs_links")||t.on("click",".c-tabs__tab",function(){var t=n.getTabs(),o=e(this);n.selectTab(t.index(o))})},selectTab:function(e){if(n.getIndex()!==e){var o=n.getTabs(),i=o.eq(e);o.removeClass("c-tabs__tab_selected"),i.addClass("c-tabs__tab_selected"),t.trigger("select_tab")}},getIndex:function(){return n.getTabs().filter(".c-tabs__tab_selected").index()},getTabs:function(){return t.find(".c-tabs__tab")}}),n.initEventListeners()});n.Blocks=r.register(function(e){return e.select(".c-blocks")},function(t,n){e.extend(n,{initEventListeners:function(){e(document).on("click","a",function(){if(a.isDesktopMin()&&this.toString()===window.location.toString()&&this.hash){var e=n.getBlockBySlug(this.hash.substr(1));-1!==e&&(n.selectBlock(e),n.scrollTo(e))}}),e(window).on("hashchange",function(){if(a.isDesktopMin()&&window.location.hash){var e=n.getBlockBySlug(window.location.hash.substr(1));-1!==e&&(n.selectBlock(e),n.scrollTo(e))}})},initBlocks:function(){n.getBlocks().each(function(){var t=e(this),o=t.index();if(window.location.hash==="#"+t.data("slug"))return g.isReload()||(n.selectBlock(o),n.scrollTo(o)),!1})},getBlocks:function(){return t.find(".c-blocks__item")},getBlock:function(e){return n.getBlocks().eq(e)},selectBlock:function(e){var t=n.getBlock(e).data("slug")||"";t&&(0===e?g.replaceState(null,null,window.location.pathname):g.replaceState(null,null,"#"+t))},scrollTo:function(e){var t=n.getBlock(e);g.disableScrollRestoration();var o=t.offset().top;d.scrollTo(o-30)},getBlockBySlug:function(t){var o=-1;return n.getBlocks().each(function(){var n=e(this),i=n.index(),a=n.data("slug")||"";if(t===a)return o=i,!1}),o}}),n.initBlocks(),n.initEventListeners()}),n.ContentTabs=r.register(function(e){return e.select(".c-content-tabs")},function(t,n){t.hasClass(".c-content-tabs_decorate")||(e.extend(n,{initEventListeners:function(){t.find(".c-content-tabs__tabs").on("select_tab",function(){var t=e(this),o=w(t);n.selectTab(o.getIndex())}),e(document).on("click","a",function(){if(a.isDesktopMin()&&this.toString()===window.location.toString()&&this.hash){var e=n.getTabBySlug(this.hash.substr(1));-1!==e&&(n.selectTab(e),n.scrollTo())}}),e(window).on("hashchange",function(){if(a.isDesktopMin()&&window.location.hash){var e=n.getTabBySlug(window.location.hash.substr(1));-1!==e&&(n.selectTab(e),n.scrollTo())}})},initTabs:function(){n.getContents().each(function(){var t=e(this),o=t.index();if(window.location.hash==="#"+t.data("slug"))return 0!==o&&n.getTabsInstance().selectTab(o),g.isReload()||n.scrollTo(),!1})},selectTab:function(e){n.getTabsInstance().selectTab(e);var t=n.getContents(),o=t.eq(e),i=o.data("slug")||"";i&&(0===e?g.replaceState(null,null,window.location.pathname):g.replaceState(null,null,"#"+i)),t.removeClass("c-content-tabs__content_selected"),o.addClass("c-content-tabs__content_selected")},getTabBySlug:function(t){var o=-1;return n.getContents().each(function(){var n=e(this),i=n.index(),a=n.data("slug")||"";if(t===a)return o=i,!1}),o},scrollTo:function(){g.disableScrollRestoration();var e=t.offset().top;d.scrollTo(e-30)},getTabsInstance:function(){return w(t.find(".c-content-tabs__tabs"))},getContents:function(){return t.find(".c-content-tabs__content")}}),n.initEventListeners(),n.initTabs())}),n.MyProfile=r.register(function(e){return e.select(".c-my-profile")},function(t,n){e.extend(n,{initDom:function(){n.initPasswordField(),n.initPhotoField()},initPasswordField:function(){var n=e('<div class="c-my-profile__change-password-box wa-field c-field"><div class="c-field__label c-field__label_empty"></div><div class="c-field__content"></div></div>');n.find(".c-field__content").append(e('<span class="c-my-profile__change-password-button c-pseudo-link">'+i("СмениÑÑ Ð¿Ð°ÑолÑ")+"</span>")),t.find(".wa-field-password").addClass("c-my-profile__password-field").before(n)},initPhotoField:function(){var n=t.find(".wa-field-photo"),i=n.find(".wa-value"),a=e('<span class="c-my-profile-photo-input"><span class="c-my-profile-photo-input__photo-box"><span class="c-my-profile-photo-input__delete-button"></span></span><span class="c-my-profile-photo-input__input-box"></span></span>'),r=e(o.commons.svg.trash);r.addClass("c-my-profile-photo-input__delete-icon"),a.find(".c-my-profile-photo-input__delete-button").append(r);var s=a.find(".c-my-profile-photo-input__photo-box"),c=a.find(".c-my-profile-photo-input__input-box");s.append(i.find('img, input[type="hidden"]')),c.append(i.contents());var l=s.find("img:last"),d=s.find("img:first").not(l),u=s.find("input");l.addClass("c-my-profile-photo-input__default-photo"),d.addClass("c-my-profile-photo-input__user-photo"),u.addClass("c-my-profile-photo-input__user-photo-input"),n.addClass("c-my-profile__photo-field"),i.append(a),k(a)},initEventListeners:function(){t.find(".c-my-profile__edit-button").on("click",function(){t.addClass("c-my-profile_edit"),t.removeClass("c-my-profile_success"),t.removeClass("c-my-profile_change-password")}),t.find(".c-my-profile__cancel-button").on("click",function(){t.removeClass("c-my-profile_edit")}),t.find(".c-my-profile__change-password-button").on("click",function(){t.addClass("c-my-profile_change-password")})}}),n.initDom(),n.initEventListeners()});var k=n.MyProfilePhotoInput=r.register(function(e){return e.select(".c-my-profile-photo-input")},function(t,n){e.extend(n,{initEventListeners:function(){var e=n.getPhotoBox(),o=e.find("img:first"),i=e.find("img:last"),a=e.find("input"),r=t.find(".c-my-profile-photo-input__delete-button");t.toggleClass("c-my-profile-photo-input_empty",o.is(i)),r.on("click",function(){a.val(""),t.addClass("c-my-profile-photo-input_empty")})},getPhotoBox:function(){return t.find(".c-my-profile-photo-input__photo-box")}
1,getFileBox:function(){return t.find(".c-my-profile-photo-input__photo-box")}}),n.initEventListeners()});n.AjaxForm=r.register(function(e){return e.select(".c-ajax-form")},function(t,n){var o=e();e.extend(n,{initEventListeners:function(){t.on("click",function(n){var i=e(n.target);i.is(":submit")&&((o=e('<input class="c-ajax-form__submit-input" type="hidden" />')).attr("name",i.attr("name")),o.val(i.val()),t.append(o))}),t.on("submit",function(o){o.preventDefault();var i=e.Event("before_submit@megashop:c-ajax-form");t.trigger(i),i.isDefaultPrevented()||n.submit()})},submit:function(){var n,i,a=t.serialize(),r=m.create(t.attr("action")||"").toString(),s=(n=e.ajaxSettings.xhr(),i=n.setRequestHeader,n.setRequestHeader=function(e,n){"X-Requested-With"==e&&void 0!==t.data("remove-header")||i.call(this,e,n)},n),c={url:r,method:t.attr("method")||"get",data:a,xhr:function(){return s},complete:function(){t.trigger("complete@megashop:c-ajax-form",arguments)}};if(t.hasClass("add-review-form")){var l=t.serializeArray();a=new FormData,e.each(l,function(){var t=e(this)[0];a.append(t.name,t.value)});var d=t.find(".c-add-images-section");if(d.length){var u=d.data("controller").getSerializedArray();e.each(u,function(e,t){a.append(t.name,t.value)})}c.processData=!1,c.contentType=!1,c.data=a}return o.remove(),t.addClass("loading"),e.ajax(c).then(function(e){var n=s.responseURL||s.getResponseHeader("X-Request-URL");(n=n&&m.create(n).toString())&&n!==r?window.location=n:t.trigger("success@megashop:c-ajax-form",arguments),t.removeClass("loading")},function(){t.trigger("error@megashop:c-ajax-form",arguments),t.removeClass("loading")})}}),n.initEventListeners()});n.SliderBlock=r.register(function(e){return e.select(".c-slider-block")},function(e){(function(){e.find(".c-slider-block__prev-button").on("click",function(){e.trigger("slide_prev@megashop:c-slider-block")}),e.find(".c-slider-block__next-button").on("click",function(){e.trigger("slide_next@megashop:c-slider-block")})})()}),n.Modal=r.register(function(e){return e.select(".c-modal")},function(t,n){e.extend(n,{initEventListeners:function(){t.find(".c-modal__close").on("click",function(){h.close()})}}),n.initEventListeners()}),n.Slider=r.register(function(e){return e.select(".c-slider")},function(t){var o={effect:t.data("effect"),autoplay:t.data("autoplay"),autoplay_delay:t.data("autoplay_delay"),autoheight:t.data("autoheight"),is_products:t.data("is-products"),image_size:t.data("image_size"),initSwiper:function(){if(!(t.find(".c-slider__slide").length<=1)){var i=t.find(".c-slide__background-image.c-swiper-lazy");if(i.length>0&&n.MatchMedia("(max-width: 1199px)")){var a=o.image_size;if(n.MatchMedia("(max-width: 425px)")){var r=1;"undefined"!=typeof window&&window.devicePixelRatio>1&&(r=2),a=500*r}i.each(function(){var t=e(this),n=e(t).data("src").replace(/^(.*\/*\.)(.*)(\..*)$/,"$1"+a+"$3");e(t).attr("data-src",n)})}var c=!1;o.autoplay&&(c={delay:1e3*o.autoplay_delay});var l=!1;o.autoheight&&(l=!0);var d=new Swiper(t.get(0),{loop:!0,effect:o.effect,autoplay:c,parallax:!0,speed:1e3,autoHeight:l,pagination:{el:".c-slider__dots",type:"bullets",clickable:!0,bulletClass:"c-slider__dot",bulletActiveClass:"c-slider__dot_active",modifierClass:"c-slider__dots_"},navigation:{prevEl:t.find(".c-slider__prev-arrow").get(0),nextEl:t.find(".c-slider__next-arrow").get(0)},lazy:{loadPrevNext:l||o.is_products,loadPrevNextAmount:1,elementClass:"c-swiper-lazy"}});e(document).trigger("swiper_lazyload@megashop:global",d),d.on("slideChange",function(){var n=e(d.slides[d.activeIndex]).find(".c-slide"),o=n.css("color"),i=n.css("backgroundColor");t.css("color",o),t.css("backgroundColor",i),s(t)})}}};o.initSwiper()}),n.RatingSelect=r.register(function(e){return e.select(".c-rating-select")},function(t,n){e.extend(n,{initStars:function(){var o=n.getValue();o&&t.find(".c-rating-select__star").each(function(){var t=e(this);+t.data("value")==+o&&n.selectStar(t)})},initEventListeners:function(){t.find(".c-rating-select__stars").on("mouseenter",function(){t.addClass("c-rating-select_hover")}),t.find(".c-rating-select__stars").on("mouseleave",function(){t.removeClass("c-rating-select_hover")}),t.find(".c-rating-select__star").on("mouseenter",function(){var t=e(this),o=t.siblings(),i=t.prevAll().add(t);o.removeClass("c-rating-select__star_hover"),i.addClass("c-rating-select__star_hover"),n.setHoverValueText(t.data("text"))}),t.find(".c-rating-select__star").on("click",function(){var t=e(this);n.selectStar(t)})},selectStar:function(e){var t=e.siblings(),o=e.prevAll().add(e);t.removeClass("c-rating-select__star_active"),o.addClass("c-rating-select__star_active"),n.setActiveValueText(e.data("text")),n.setValue(e.data("value"))},getValue:function(){return t.find(".c-rating-select__input").val()},setValue:function(e){return t.find(".c-rating-select__input").val(e)},setHoverValueText:function(e){t.find(".c-rating-select__hover-value").text(e)},setActiveValueText:function(e){t.find(".c-rating-select__active-value").text(e)}}),n.initStars(),n.initEventListeners()}),n.FormField=r.register(function(e){return e.select(".c-form-field")},function(t,n){var o={name:t.data("field_name"),isRequired:function(){return t.hasClass("wa-required")},workupField:function(){this.isRequired()&&(t.addClass("c-form-field_required"),s(t))},initGlobalEventListeners:function(){e(document).on("success@megashop:c-ajax-form",".c-ajax-form",o.handleAjaxFormSuccess)},destroyGlobalEventListeners:function(){e(document).off("success@megashop:c-ajax-form",".c-ajax-form",o.handleAjaxFormSuccess)},handleAjaxFormSuccess:function(o,i){var a=e(this);if(0!==t.closest(a).length)if("fail"===i.status){var r=null;if(i.errors)if(i.errors.length){var s=i.errors.find(function(e){return!!e[n.getName()]});s&&(r=s[n.getName()])}else r=i.errors[n.getName()];n.setError(r)}else n.setError("")}};return e.extend(n,{getName:function(){return o.name},setError:function(n){t.find(".c-form-field__error-container").remove();var o=e('<div class="c-form-field__error-container"></div>'),i=t.find(".c-input-text"),a=t.find(".c-textarea");i.removeClass("c-input-text_error"),a.removeClass("c-textarea_error"),n&&(o.html(n),t.find(".c-form-field__content-container").append(o),i.addClass("c-input-text_error"),a.addClass("c-textarea_error"))}}),o.initGlobalEventListeners(),o.workupField(),function(){o.destroyGlobalEventListeners()}}),n.Breadcrumbs=r.register(function(e){return e.select(".c-breadcrumbs")},function(t,o){e.extend(o,{initBrothers:function(){n.breadcrumbs_plugin&&t.find(".c-breadcrumbs__brothers-button").each(function(){var t=e(this).closest(".c-breadcrumbs__item"),o=t.index(),i=n.breadcrumbs_plugin.breadcrumbs[o];if(o===n.breadcrumbs_plugin.breadcrumbs.length&&(i=n.breadcrumbs_plugin.current_page_item),i){var a=e('<div class="c-breadcrumbs__brothers-dropdown"></div>');
1i.brothers.forEach(function(t){var n=e('<a class="c-breadcrumbs__brother c-link"></a>');n.text(t.name),n.attr("href",t.frontend_url),a.append(n)}),t.append(a)}})},initEventListeners:function(){n.breadcrumbs_plugin&&(t.find(".c-breadcrumbs__brothers-button").on("click",function(){e(this).closest(".c-breadcrumbs__item").addClass("c-breadcrumbs__item_show-brothers")}),e(document).on("click",function(n){t.find(".c-breadcrumbs__item").each(function(){var t=e(this);0===e(n.target).closest(t).length&&t.removeClass("c-breadcrumbs__item_show-brothers")})}),n.breadcrumbs_plugin.show_subcategories_on_hover&&!a.isTabletMax()&&t.find(".c-breadcrumbs__item:has(.c-breadcrumbs__brothers-dropdown)").each(function(){var t=null,n=e(this);e(this).on("mouseenter",function(){clearTimeout(t),n.addClass("c-breadcrumbs__item_show-brothers"),n.siblings().removeClass("c-breadcrumbs__item_show-brothers")}).on("mouseleave",function(){t=setTimeout(function(){n.removeClass("c-breadcrumbs__item_show-brothers")},500)})}))}}),o.initBrothers(),o.initEventListeners()}),n.UpButton=r.register(function(e){return e.select(".c-up-button")},function(t,n){var o=null,i=function(){var n=e(".l-header");t.toggleClass("c-up-button_show",e(window).scrollTop()>n.outerHeight())};e.extend(n,{updateState:function(){cancelAnimationFrame(o),o=requestAnimationFrame(i)}}),e(window).on("scroll",function(){n.updateState()}),t.on("click",function(){d.scrollTo(0)}),n.updateState()}),n.InfoPanel=r.register(function(e){return e.select(".c-info-panel")},function(t){t.find(".c-info-panel__close-button").on("click",function(){e(this).closest(".c-info-panel-container").each(function(){C(e(this)).close()}),t.trigger("close@megashop:c-info-panel")})});var C=n.InfoPanelContainer=r.register(function(e){return e.select(".c-info-panel-container")},function(t,o){e.extend(o,{open:function(){t.removeClass("c-info-panel-container_close"),t.offset(),t.addClass("c-info-panel-container_open")},close:function(){t.removeClass("c-info-panel-container_open"),t.offset(),t.addClass("c-info-panel-container_close")},setContent:function(e){t.html(e),n.Update(t)}})});n.CookiePanel=r.register(function(e){return e.select(".c-cookie-panel")},function(t){t.find(".c-cookie-panel__close-button").on("click",function(){var t=e(this).closest(".c-info-panel-container");C(t).close(),e.cookie("cookie_agree",1,{expires:31,path:o.commons.wa_url})})}),n.LoginModal=r.register(function(e){return e.select(".c-login-modal")},function(t){var n={isOnetime:function(){return t.find(".wa-request-onetime-password-button").length},initType:function(){this.isOnetime()?t.addClass("c-login-modal_onetime"):t.addClass("c-login-modal_general")},initNavButtons:function(){var o=t.find(".c-login-page__nav-buttons");if(o.addClass("c-login-modal__nav-buttons"),o.find("a").removeClass("c-button_style_transparent").addClass("c-button_style_light c-login-modal__nav-button"),n.isOnetime()){var i=t.find(".wa-request-onetime-password-button-wrapper");i.addClass("c-login-modal__nav-button c-login-modal__nav-button_fake"),i.find(".wa-request-onetime-password-button").addClass("c-button_style_light"),t.find(".wa-login-submit").addClass("c-login-modal__nav-button c-button_style_light")}else t.find(":submit").each(function(n){var o=e(this),i=e('<div class="wa-submit"></div>');o.after(i);var a=e('<div class="c-login-modal__submit-line"></div>'),r=e('<div class="c-login-modal__submit-line-button"></div>');t.find(".wa-field-remember-me").eq(n).each(function(){var t=e(this);e('<div class="c-login-modal__submit-line-checkbox"></div>').append(t).appendTo(a)}),r.append(o).appendTo(a),a.appendTo(i)})},initForm:function(){var e=t.find("form");e.attr("action",e.attr("action")+"?modal=1")}};n.initType(),n.initNavButtons(),n.initForm()}),n.SignupModal=r.register(function(e){return e.select(".c-signup-modal")},function(e){(function(){var t=e.find(".c-signup-page__login-button").removeClass("c-signup-page__login-button c-button_style_transparent").addClass("c-signup-modal__login-button c-button_style_light c-button_wide");t.parent().prepend(t)})()}),n.HeaderBottomBarLinks=r.register(function(e){return e.select(".c-header-bottom-bar-links")},function(t,n){var o=function(){t.on("open@megashop:c-dropdown",".c-dropdown",function(){var n=e(this);t.find(".c-dropdown_open").not(n).each(function(){v(e(this)).close()}),n.children(".c-button").addClass("c-button_active"),t.trigger("open@megashop:c-header-bottom-bar-links")}),t.on("close@megashop:c-dropdown",".c-dropdown",function(){e(this).children(".c-button").removeClass("c-button_active"),t.trigger("close@megashop:c-header-bottom-bar-links")})};e.extend(n,{closeDropdowns:function(){t.find(".c-dropdown").each(function(){v(e(this)).close()})}}),o()}),n.ListTabs=r.register(function(e){return e.select(".list-tabs")},function(t){var n={tab_open:"list-tabs__item_opened",initEventListeners:function(){t.on("click",".js-list-tabs__toggle",function(t){t.preventDefault();var o=e(this).closest(".list-tabs__item");o.hasClass(n.tab_open)?o.removeClass(n.tab_open):o.addClass(n.tab_open)})}};n.initEventListeners()}),n.YtVideo=r.register(function(e){return e.select(".c-yt-video")},function(t){new IntersectionObserver(function(t,n){t.forEach(function(t){if(t.isIntersecting){var o=e(t.target),i=o.attr("data-src"),a=o.attr("data-width"),r=o.attr("data-height");o.html('<iframe src="'+i+'" width="'+a+'" height="'+r+'" allowfullscreen ></iframe>'),n.unobserve(o[0])}})}).observe(t[0])}),n.ResponsiveWatcherAdapter=r.register(function(e){return e.select(".js-r-markup")},function(t,o){e.extend(o,{init:function(){o.responsiveMethod(),e(window).on("resize",o.onResize)},isDomChanged:!1,onResize:function(){o.responsiveMethod()},responsiveMethod:function(){if(window.innerWidth<1199&&!o.isDomChanged){var i=t.parent();t.replaceWith(e(t.data("markup"))),o.isDomChanged=!0,e(window).off("resize",o.onResize),e(function(){n.Update(i)})}}}),o.init()}),n.ResponsiveHeaderMenuAdapter=r.register(function(e){return e.select(".js-r-header-menu")},function(t,o){var i=t.find(".js-r-header-menu__dropdown"),a=t.find(".js-r-header-menu__tiggle"),r=t.find(".js-r-header-menu__dropdown-close"),s=t.hasClass("js-r-header-menu_catalog");e.extend(o,{initEventListeners:function(){a.on("click",function(e){e.preventDefault(),i.hasClass("r-header-menu__dropdown_open")?o.close():(s&&t.find(".js-r-header-catalog__toggle").trigger("click"),o.open())}),r.on("click",function(){o.close()}),e(document).on("click",function(t){n.MatchMedia("only screen and (max-width: 1199px)")&&0===e(t.target).closest(".
1js-r-header-menu").length&&o.close()})},open:function(){this.isOpen()||(t.trigger("open@megashop:r-header-menu"),i.show(),window.setTimeout(function(){i.addClass("r-header-menu__dropdown_open")},50),_.lockPage())},close:function(){this.isOpen()&&(t.trigger("close@megashop:r-header-menu"),i.removeClass("r-header-menu__dropdown_open"),window.setTimeout(function(){i.hide()},50),_.unlockPage())},isOpen:function(){return i.hasClass("r-header-menu__dropdown_open")}}),o.initEventListeners()}),n.ResponsiveHeaderSearchAdapter=r.register(function(e){return e.select(".js-r-header__list-item-link_search-toggle")},function(t,n){var o=t.closest(".js-r-header");e.extend(n,{initEventListeners:function(){t.on("click",function(i){i.preventDefault(),n.getSearchForm().length||(o.append(e(t.data("search-form-tpl"))),o.find(".js-r-search-form__close").on("click",function(){n.close()}),o.find(".r-search-form__button").on("click",function(){o.find(".searchpro__field-button").trigger("click")})),n.open()})},getSearchForm:function(){return o.find(".js-r-search-form")},open:function(){n.getSearchForm().addClass("r-search-form_open")},close:function(){n.getSearchForm().removeClass("r-search-form_open")}}),n.initEventListeners()}),n.ResponsiveHeaderCatalogAdapter=r.register(function(e){return e.select(".js-r-header-catalog__toggle")},function(t,o){var i=t.closest(".js-r-header-menu__dropdown"),a=0;e.extend(o,{categories:{0:{name:"ÐаÑалог ÑоваÑов"}},initEventListeners:function(){t.on("click",function(e){e.preventDefault(),o.open()}),e(document).on("click",".js-r-subdropdown__header-close",function(){o.close()}),e(document).on("click",".js-r-header-menu__catalog .list-rows__item",function(t){var n=e(this),i=n.attr("href"),r=n.find(".list-rows__item-name").text(),s=n.parent(),c=o.getParentItem(),l=n.next("ul"),d=l.data("category-id"),u=n.closest("ul").data("category-id");l.length>0&&(t.preventDefault(),o.setCategoryObject(d,u,r),a=d,o.toggleBackBtn(),n.addClass("list-rows__item_opened"),s.siblings().not(c).hide(),o.getSubdropdown().addClass("r-subdropdown_category"),o.getSubdropdownTitle().text(r),c.find(".list-rows__item").attr("href",i))}),e(document).on("click",".js-r-subdropdown__header-back",function(){if(0!==a){var e=o.getSubdropdown().find(".list-rows__item[data-category_id="+a+"]"),t=e.parent(),n=o.getParentItem();0===(a=o.categories[a].parent)&&(o.getSubdropdown().removeClass("r-subdropdown_category"),o.toggleBackBtn()),e.removeClass("list-rows__item_opened"),t.siblings().not(n).show(),o.getSubdropdownTitle().text(o.categories[a].name)}else o.close();return!1})},setCategoryObject:function(e,t,n){void 0===o.categories[e]&&(o.categories[e]={current:e,parent:t,name:n})},getSubdropdown:function(){return i.find(".js-r-header-menu__catalog")},getSubdropdownTitle:function(){return o.getSubdropdown().find(".r-subdropdown__header-title")},getParentItem:function(){return o.getSubdropdown().find(".r-header-menu__dropdown-list_parent")},catalogIsMain:function(){return o.getSubdropdown().hasClass("r-subdropdown_catalog")},toggleBackBtn:function(){o.catalogIsMain()&&(0!==a?o.getSubdropdown().find(".r-subdropdown__header-back").removeClass("r-subdropdown__header-back_hide"):o.getSubdropdown().find(".r-subdropdown__header-back").addClass("r-subdropdown__header-back_hide"))},open:function(){o.getSubdropdown().addClass("r-subdropdown_open"),l.setColor("#fafafa")},close:function(){o.getSubdropdown().removeClass("r-subdropdown_open"),n.MetaThemeColorUtil.resetColor()}}),o.initEventListeners()}),n.ResponsiveHeaderBrandsAdapter=r.register(function(e){return e.select(".js-r-header-brands__toggle")},function(t,o){var i=t.closest(".js-r-header-menu__dropdown");e.extend(o,{initEventListeners:function(){t.on("click",function(e){e.preventDefault(),o.open()}),e(document).on("click",".js-r-subdropdown__header-close",function(){o.close()}),e(document).on("click",".js-r-subdropdown__header-back",function(){return o.close(),!1})},getSubdropdown:function(){return i.find(".js-r-header-menu__brands")},open:function(){o.getSubdropdown().addClass("r-subdropdown_open"),l.setColor("#fafafa")},close:function(){o.getSubdropdown().removeClass("r-subdropdown_open"),n.MetaThemeColorUtil.resetColor()}}),o.initEventListeners()}),n.ResponsiveSelectLinksAdapter=r.register(function(e){return e.select("select.js-r-select-links")},function(t,n){e.extend(n,{initEventListeners:function(){t.on("change",function(t){t.preventDefault();var n=e(this).val();n&&(window.location.href=n)})}}),n.initEventListeners()}),n.Countdown=r.register(function(e){return e.select(".c-countdown")},function(e){var t={datetime:e.data("datetime"),initCountdown:function(){e.countdown(t.datetime,function(t){e.find(".c-countdown__text").text(t.strftime("%D:%H:%M:%S"))})}};t.initCountdown(),e.addClass("c-countdown_js-is-init")}),n.ResponsiveTabs=r.register(function(e){return e.select(".c-responsive-tabs")},function(t,n){var o={initTabs:function(){t.find(".c-responsive-tabs__tab-container").each(function(){var t=e(this),i=t.index();if(window.location.hash==="#"+t.data("slug"))return 0!==i&&n.openTab(i),g.isReload()||o.scrollTo(i),!1})},initEventListeners:function(){t.find(".c-responsive-tabs__tab-header-container").on("click",function(){var t=e(this).closest(".c-responsive-tabs__tab-container");n.toggleTab(t.index()),o.scrollTo(t.index())})},initGlobalEventListeners:function(){e(document).on("click","a",function(){if(a.isTabletMax()&&this.toString()===window.location.toString()&&this.hash){var e=o.getTabBySlug(this.hash.substr(1));-1!==e&&(n.openTab(e),o.scrollTo(e))}}),e(window).on("hashchange",function(){if(a.isTabletMax()&&window.location.hash){var e=o.getTabBySlug(window.location.hash.substr(1));-1!==e&&(n.openTab(e),o.scrollTo(e))}})},getTabBySlug:function(n){var o=t.find(".c-responsive-tabs__tab-container"),i=-1;return o.each(function(){var t=e(this),o=t.index(),a=t.data("slug")||"";if(n===a)return i=o,!1}),i},scrollTo:function(e){var n=t.find(".c-responsive-tabs__tab-container").eq(e);d.scrollTo(n.offset().top-60)}};e.extend(n,{isOpen:function(e){return t.find(".c-responsive-tabs__tab-container").eq(e).hasClass("c-responsive-tabs__tab-container_selected")},toggleTab:function(e){n.isOpen(e)?n.closeTab(e):n.openTab(e)},openTab:function(e){var n=t.find(".c-responsive-tabs__tab-container"),o=n.eq(e);n.filter(".c-responsive-tabs__tab-container_selected").not(o).removeClass("c-responsive-tabs__tab-container_selected"),o.addClass("c-responsive-tabs__tab-container_selected"),o.get(0).offsetTop;var i=o.data("slug")||"";i&&(0===e?g.replaceState(null,null,window.location.pathname):g.replaceState(null,null,"#"+i))},closeTab:function(e){return t.find(".c-responsive-tabs__tab-container").eq(e).removeClass("c-responsive-tabs__tab-container_selected")}}),o.initTabs(),o.initEventListeners(),o.initGlobalEventListeners()}),n.ResponsiveSocialButton=r.register(function(e){return e.select(".c-responsive-social-button")},function(t){var n={modal:t.data("modal"),initEventListeners:function(){t.on("click",function(){if(void 0===window.Ya||void 0!==window.Ya&&void 0===window.Ya.share2){var t=e.getScript("https://yastatic.net/es5-shim
1s/0.0.2/es5-shims.min.js"),i=e.getScript("https://yastatic.net/share2/share.js");"yastatic"!==o.commons.ya_share_source&&(t=e.getScript("https://cdn.jsdelivr.net/npm/yandex-share2/share.js"),i=!0),e.when(t,i,e.Deferred(function(t){e(t.resolve)})).done(function(){n.openModal()})}else n.openModal()})},openModal:function(){h.openContent(n.modal)}};n.initEventListeners()}),n.YaShare2=r.register(function(e){return e.select(".c-ya-share2")},function(e){e.hasClass("ya-share2_inited")||void 0===window.Ya||void 0!==window.Ya&&void 0===window.Ya.share2||window.Ya.share2(e.get(0))}),n.BannerPanel=r.register(function(e){return e.select(".c-banner-panel")},function(t){var n={banner_hash:t.data("banner_hash"),initEventListeners:function(){t.on("close@megashop:c-info-panel",function(){e.cookie("banner_hash",n.banner_hash),t.remove()})}};n.initEventListeners()}),n.MailerDecorator=r.register(function(e){return e.select(".c-mailer-decorator")},function(t){(function(){var o=e('<span class="c-inline-field"><span class="c-inline-field__content"></span>
1<span class="c-inline-field__policy r-hidden-desktop"></span><span class="c-inline-field__button"></span></span>');t.find('[name="subscriber[email]"]').each(function(){var t=e(this);t.addClass("c-mailer-decorator__email-input"),t.addClass("c-input-text").removeClass("wa-fill"),t.closest(".wa-field").replace(o),o.find(".c-inline-field__content").append(t)}),t.find(".wa-submit").each(function(){var t=e(this).closest(".wa-field"),n=t.clone();t.addClass("c-mailer-decorator__r-button-container"),o.find(".c-inline-field__button").append(n)});var i=t.find(".wa-errormsg");i.addClass("c-mailer-decorator__error"),i.closest(".l-form__field").addClass("c-mailer-decorator__error-field"),n.Update(t)})(),t.addClass("c-mailer-decorator_js-is-init")}),n.MailerPostDecorator=r.register(function(e){return e.select(".c-mailer-post-decorator")},function(t){(function(){var o=e('<span class="c-inline-field"><span class="c-inline-field__content"></span><span class="c-inline-field__button"></span></span>');t.find('[name="subscriber[email]"]').each(function(){var t=e(this);t.addClass("c-input-text").removeClass("wa-fill"),t.closest(".wa-field").replace(o),o.find(".c-inline-field__content").append(t)}),t.find(".wa-submit").each(function(){var t=e(this).closest(".wa-field"),n=t.clone();t.addClass("c-mailer-post-decorator__r-button-container"),o.find(".c-inline-field__button").append(n)}),n.Update(t)})(),t.addClass("c-mailer-post-decorator_js-is-init")}),n.RowValue=r.register(function(e){return e.select(".c-row-value")},function(t,n){e.extend(n,{setValue:function(e){t.find(".c-row-value__value-text").html(e)}})}),n.ResponsiveRegionButton=r.register(function(e){return e.select(".r-region-button")},function(t){(function(){t.on("click",function(){e(".r-regions-decorator .shop-regions__trigger-show-window:first").trigger("click")})})()});n.SocialBlock=r.register(function(e){return e.select(".c-social-block")},function(t,n){e.extend(n,{initEventListeners:function(){var n=t.find(".c-social-block__tab"),o=t.find(".c-social-block__content");n.on("click",function(){var t=e(this),i=o.eq(t.index());n.removeClass("c-social-block__tab_active"),o.removeClass("c-social-block__content_active"),t.addClass("c-social-block__tab_active"),i.addClass("c-social-block__content_active")})}}),n.initEventListeners()});n.Modal=r.register(function(e){return e.select(".c-tooltip")},function(t,n){e.extend(n,{initEventListeners:function(){e(document).on("r-filters_opened@megashop:global",function(){n.setStyles()})},setStyles:function(){var e=t.find(".c-tooltip__content");e.hasClass("c-tooltip__content_show-m")&&(e.outerWidth()/2>t.offset().left&&e.addClass("c-tooltip__content_align-right"))}}),n.initEventListeners(),n.setStyles()}),e.widget("ui.autocomplete",e.ui.autocomplete,{_create:function(){e(this.element).data("megashop_autocomplete",this),this._superApply(arguments)},classes:{"ui-autocomplete":"c-autocomplete"},_resizeMenu:function(){this.menu.element.outerWidth(this.element.outerWidth())}}),e.datepicker.dpDiv.addClass("c-datepicker"),e.datepicker.setDefaults({closeText:"ÐакÑÑÑÑ",prevText:"<ÐÑед",nextText:"След>",currentText:"СегоднÑ",monthNames:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"],monthNamesShort:["Янв","Фев","ÐаÑ","ÐпÑ","Ðай","ÐÑн","ÐÑл","Ðвг","Сен","ÐкÑ","ÐоÑ","Ðек"],dayNames:["воÑкÑеÑенÑе","понеделÑник","вÑоÑник","ÑÑеда","ÑеÑвеÑг","пÑÑниÑа","ÑÑббоÑа"],dayNamesShort:["вÑк","пнд","вÑÑ","ÑÑд","ÑÑв","пÑн","ÑбÑ"],dayNamesMin:["ÐÑ","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],weekHeader:"Ðед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""});var x=e.datepicker.__proto__._updateDatepicker;e.datepicker.__proto__._updateDatepicker=function(){x.apply(this,arguments);var t=e(o.commons.svg.arrow_left);t.addClass("c-datepicker__arrow-icon");var n=e(o.commons.svg.arrow_right);
1n.addClass("c-datepicker__arrow-icon"),e.datepicker.dpDiv.find(".ui-datepicker-prev").addClass("l-image-box l-image-box_fill").html(t),e.datepicker.dpDiv.find(".ui-datepicker-next").addClass("l-image-box l-image-box_fill").html(n)},e.extend(e.ui.autocomplete.prototype.options,{position:{my:"left top+5",at:"left bottom",collision:"none"},open:function(){var t=e(this).data("megashop_autocomplete");t.menu.activeMenu.removeClass("c-autocomplete_close"),t.menu.activeMenu.offset(),t.menu.activeMenu.addClass("c-autocomplete_open")},close:function(){var t=e(this).data("megashop_autocomplete");t.menu.activeMenu.removeClass("c-autocomplete_open"),t.menu.activeMenu.offset(),t.menu.activeMenu.addClass("c-autocomplete_close")}}),e.extend(e.ui.autocomplete.prototype.options.classes,{"ui-autocomplete":"c-autocomplete"}),e.magnificPopup.instance._onFocusIn=function(t){if(0===e(t.target).closest(".l-index").length)return!0;e.magnificPopup.proto._onFocusIn.call(this,t)},e(function(){n.Update()})}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.