1!function(p){let d=window.novashop,s=d.config,l=d.translate=function(e){return s.language[e]||e},h=(d.requestNextFrame=function(){let t=[],n="zero-timeout-message";return window.addEventListener("message",function(e){e.source===window&&e.data===n&&(e.stopPropagation(),0<t.length)&&t.shift()()},!0),function(e){t.push(e),window.postMessage(n,"*")}}(),p.fn.select=function(e){var t=p(this),n=t.find(e),t=t.filter(e);return 0<n.length&&0<t.length?t.add(t):0<t.length?t:0<n.length?n:p()},p.fn.replace=function(t){0!==this.length&&0!==t.length&&this.each(function(){var e=p(document.createDocumentFragment());e.append(t),this.parentNode&&this.parentNode.replaceChild(e.get(0),this)})},p.fn.onAnimationEnd=function(e,t){function n(e){e.currentTarget===e.target&&"function"==typeof t&&t.apply(this,arguments)}var o=p(this);void 0===t&&(t=e,e=void 0);e?o.on("animationend",e,n):o.on("animationend",n)},p.fn.cssAnimation=function(n){p(this).each(function(){let t=p(this);var e={current_animation_class:null};t.on("animationend",function(e){e.target===e.currentTarget&&(e=t.data("novashop_animation"),t.removeClass(e.current_animation_class),t.removeClass(e.animation_class))}),e.animation_class=n,t.data("novashop_animation",e)})},p.fn.runCssAnimation=function(n){p(this).each(function(){var e=p(this),t=e.data("novashop_animation");t&&(t.current_animation_class&&e.removeClass(t.current_animation_class),t.current_animation_class=n,e.addClass(t.animation_class),e.addClass(t.current_animation_class),e.data("novashop_animation",t))})},d.Update=function(e){e=e||p(document),p(document).trigger("update@novashop:global",[e])}),o=d.OnUpdate=function(n){p(document).on("update@novashop:global",function(e,t){n(t)})},e=d.ComponentRegistry=function(){let a=[],r=(o(function(){a.forEach(function(e){document.body.contains(e)||(p(e).trigger("destruct@novashop:global"),a.splice(a.indexOf(e),1))})}),{hasInstance:function(e,t){return void 0!==r.getInstance(e,t)},getInstance:function(e,t){e=e.get(0);return e.novashop_components=e.novashop_components||new Map,e.novashop_components.get(t)},setInstance:function(e,t,n){e=e.get(0);e.novashop_components=e.novashop_components||new Map,e.novashop_components.set(t,n)}});return{register:function(t,i,e){function n(o){if(1===o.length){if(r.hasInstance(o,i))return r.getInstance(o,i);let e=o.get(0),t={},n=(r.setInstance(o,i,t),a.push(e),i(o,t));return"function"!=typeof n&&"function"!=typeof t.destruct||o.on("destruct@novashop:global",function(){document.body.contains(e)||("function"==typeof n&&n(),"function"==typeof t.destruct&&t.destruct())}),t}console.error("not valid count elements: "+o.length)}return"function"==typeof t&&o(function(e){d.requestNextFrame(function(){t(e).each(function(e,t){d.requestNextFrame(function(){n(p(t))})})})}),n}}}(),c=(d.LazyScript=function(){let n={};return{load:function(e){var t;return n[e]||(t=s.commons.lazy_scripts[e],n[e]=p.getScript(t).fail(function(){delete n[e]})),n[e]}}}(),d.BuildObserverUtil=function(e,t){let a={tagnames:e,types:t,listeners:{nodes:new Map,classes:new Map},isListeningTarget:function(e){return!a.tagnames||-1!==a.tagnames.indexOf(e.tagName)},isListeningMutationType:function(e){return!a.types||-1!==a.types.indexOf(e)},isListeningMutation:function(e){return this.isListeningMutationType(e.type)&&this.isListeningTarget(e.target)},callObserver:function(e,t,n){t(p(n))},compareNodeClassname:function(e,t,n){let o=!1;return o=!(o=e.classList?e.classList.contains(t):p(e).hasClass(t))&&n?new RegExp("\\b"+t+"\\b").test(n):o},handleNodeMutation:function(n,e,o){let i=this;e.forEach(function(e,t){i.compareNodeClassname(n,t,o)&&a.callObserver(t,e,n)})},handleMutation:function(t){if(a.isListeningMutation(t))if("childList"===t.type){var n=a.listeners.nodes;for(let e=0;e<t.addedNodes.length;e++){var o=t.addedNodes[e];1===o.nodeType&&a.handleNodeMutation(o,n)}}else{var e;"attributes"===t.type&&"class"===t.attributeName&&(e=a.listeners.classes,a.handleNodeMutation(t.target,e,t.oldValue))}},handleMutations:function(e){e.forEach(a.handleMutation)}};return{inited:!1,init:function(){new MutationObserver(a.handleMutations).observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),this.inited=!0},watchTag:function(e){-1===a.tagnames.indexOf(e)&&a.tagnames.push(e)},watchType:function(e){-1===a.types.indexOf(e)&&a.types.push(e)},observe:function(e,t){this.inited||this.init(),a.listeners.nodes.set(e,t)},observeClass:function(e,t){this.inited||this.init(),this.watchType("attributes"),a.listeners.classes.set(e,t)},observeComponent:function(e,t){this.observe(e,function(e){t(e)})}}},d.ObserverUtil=d.BuildObserverUtil(["DIV","SPAN","A","BODY","SECTION"],["childList"]),d.HeaderOverlay=e.register(function(e){return e.select(".header-overlay")},function(e){let t={initGlobalEventListeners:function(){p(document).on("open@novashop:sidebar-catalog",".sidebar-catalog",function(){p(this).data("is_overlay_enabled")&&(t.closeExclude("sidebar-catalog"),t.enable())}),p(document).on("close@novashop:sidebar-catalog",".sidebar-catalog",function(){t.disable()}),p(document).on("open@novashop:r-header-menu",".r-header-menu",function(){t.enable()}),p(document).on("close@novashop:r-header-menu",".r-header-menu",function(){t.disable()}),p(document).on("open@novashop:brand-alphabet",".brand-alphabet",function(){t.enable()}),p(document).on("close@novashop:brand-alphabet",".brand-alphabet",function(){t.disable()}),p(document).on("open@novashop:r-header-contacts",".r-header-contacts",function(){t.enable()}),p(document).on("close@novashop:r-header-contacts",".r-header-contacts",function(){t.disable()})},isEnabled:function(){return e.hasClass("header-overlay_enabled")},enable:function(){t.isEnabled()||e.addClass("header-overlay_enabled")},disable:function(){t.isEnabled()&&(e.removeClass("header-overlay_enabled"),e.trigger("disable@novashop:header-overlay"))},closeExclude:function(e){"sidebar-catalog"!==e&&t.closeSidebarCatalog(),"brand-alphabet"!==e&&t.closeBrandAlphabet()},closeSidebarCatalog:function(){p(".sidebar-catalog").each(function(){d.SidebarCatalog(p(this)).close()})},closeBrandAlphabet:function(){p(".sidebar-catalog").each(function(){d.BrandAlphabet(p(this)).close()})}};t.initGlobalEventListeners()}),d.LazyImageSetReady=function(e,t){e.data("srcset")&&e.attr("srcset",e.data("srcset")),e.attr("src",e.data("src"));var n=e.parent("picture");n.length&&n.find("source").each(function(){var e=p(this);e.attr("srcset",e.data("srcset"))}),t&&t.complete?(e.addClass("lazy-image_ready"),p(document).trigger("lazy_image_completed@novashop:global",[t])):e.one("load",function(){e.addClass("lazy-image_ready"),p(document).trigger("lazy_image_completed@novashop:global",[t])})},d.LazyImageObserver=new IntersectionObserver(function(e,n){e.forEach(function(e){var t;e.isIntersecting&&(e=e.target,t=p(e),d.LazyImageSetReady(t,e),n.unobserve(t.get(0)))})},{rootMargin:"300px 400px",threshold:.01}),d.LazyImage=e.register(function(e){return e.select(".lazy-image")},function(e){d.LazyImageObserver.observe(e.get(0))}),d.LazyImageProvider=e.register(function(e){return e.select(".lazy-image-provider")},function(e){var t=e[0];let n=p("<img>");p.each(t.attributes,function(){let e=this.name;"data-width"===this.name&&(e="width"),"data-height"===this.name&&(e="height"),n.attr(e,this.value)}),n.removeClass("lazy-image-provider").addClass("lazy-image"),n.attr("alt",p(t).data("alt")),e.replaceWith(n),p(document).trigger("lazy_image_provide@novashop:global",[n])}),d.MatchMedia=function(e){var t=window.matchMedia;return!(!("function"==typeof t)||!e)&&t(e).matches});var t;d.Responsive=(t=e.register(function(e){return p()}
1,function(o){let e={initGlobalEventListeners:function(){p(window).on("resize",e.update)},destroyGlobalEventListeners:function(){p(window).off("resize",e.update)},update:function(){e.isRender()&&e.render()},isRender:function(){return u.isMobileMax()&&o.hasClass("responsive_mobile-max")||u.isTabletMax()&&o.hasClass("responsive_tablet-max")||u.isTabletMinMax()&&o.hasClass("responsive_tablet-min-max")||u.isDesktopMin()&&o.hasClass("responsive_desktop-min")},render:function(){var e=document.createElement("div");e.innerHTML=o.data("content");let t=document.createDocumentFragment();e.childNodes.forEach(function(e){t.appendChild(e)});e=o.get(0);let n=e.parentNode;n.replaceChild(t,e),p(function(){h(p(n))})}};if(!e.isRender())return e.initGlobalEventListeners(),function(){e.destroyGlobalEventListeners()};e.render()}),d.ObserverUtil.observeComponent("responsive",t),t);let u=d.ResponsiveUtil=function(){let e=null,t=null,n=null,o=null,i=null,a=!1;function r(){e=c("(max-width: 767px)"),t=c("(max-width: 1023px)"),n=c("(min-width: 768px) and (max-width: 1023px)"),o=c("(min-width: 1024px)"),i=c("(min-width: 1200px)"),window.bodyWidth=document.documentElement.offsetWidth,p.cookie("is_mobile",t),!a&&t!=s.commons.is_mobile&&s.commons.is_cookie&&(a=!0,"webcache.googleusercontent.com"!==window.location.host)&&window.location.reload()}return p(window).on("resize",r),r(),{isMobileMax:function(){return e},isTabletMax:function(){return t},isTabletMinMax:function(){return n},isDesktopMin:function(){return o},isDesktopLargeMin:function(){return i},hasNativeSelect:function(){return!(!window.navigator.userAgent.match(/(iPad|iPhone|iPod)/i)||window.navigator.userAgent.match(/(Windows\sPhone)/i))},isIE:function(){return!!window.navigator.userAgent.match(/(?:msie|trident)/i)}}}();if(u.isIE()){let n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){void 0===t?n.apply(this,arguments):t?this.add(e):this.remove(t)}}d.FormDecorator=function(){let t=e.register(function(){return p(".form-decorator")},function(a,e){let r={form_size:a.data("form_size"),field_size:a.data("field_size"),visible:null,decorateParagraphs:function(n){var n=n.find(".form-field__value"),o=n.children("p");if(1<o.length){let e=p('<p class="form-field__subfields"></p>'),t=p('<div class="form-field__subfield"></div>');o.each(function(){t.clone().append(p(this).contents()).appendTo(e)}),o.remove(),n.append(e)}else 0<o.length&&(o.contents().unwrap(),o.remove())},decorateLabels:function(n){n=n.find(".form-field__value");let o=n.children("label");if(o.each(function(){var e=p(this);e.get(0).control||0!==e.find("input").length||p(e.contents()).unwrap()}),0<(o=n.children("label")).length){let e=p('<div class="form-field__labels"></div>'),t=p('<div class="form-field__label"></div>');o.each(function(){t.clone().append(p(this)).appendTo(e)}),n.prepend(e)}},decorateSubFields:function(e){let t=e.find(".form-field__value");var n=t.find(".field").add(t.children("span:not([class]):not([id])"));0<n.length&&(e.addClass("form-field_complex"),n.parent().each(function(){var e=p(this);let o=p('<p class="form-field__subfields"></p>'),i=p('<div class="form-field__subfield"></div>');e.find(".field").add(t.children("span:not([class]):not([id])")).each(function(){var e=p(this),t=(e.addClass("form-field"),e.children("span")),n=t.text(),n=(t.addClass("form-field__name"),":"!==n.substring(-1)&&t.text(n.concat(":")),p('<div class="form-field__value"></div>'));n.append(e.contents()),e.append(t),e.append(n),i.clone().append(e).appendTo(o)}),e.append(o)}))},wrapLabels:function(){var e=a.find("label").filter(function(){return 0===p(this).parents(".wa-field").length});e.wrap('<div class="wa-field"></div>'),e.wrap('<div class="wa-value"></div>')},getWaFields:function(){return a.find(".wa-field").filter(function(){return 0===p(this).parents(".wa-field").length})},decorateWaFields:function(){let n=r.getWaFields();n.parent().each(function(){var e=p(this),t=(e.addClass("form"),r.form_size&&e.addClass("form_size_"+r.form_size),e.children(n));let o=p('<div class="form__fields"></div>'),i=p('<div class="form__fields"></div>'),a=p();t.each(function(){var e,t,n=p(this);1===n.children().length&&n.children().is(".wa-name")?(a=n.children().detach(),n.remove()):(0<a.length&&(n.prepend(a),a=p()),n.addClass("form__field"),e=0<n.has(".wa-submit").length,t=0<n.has(".wa-value.wa-errormsg").length,e||t?n.appendTo(i):n.appendTo(o))});t=0===i.children().length;p('<div class="form__group"></div>').append(o).appendTo(e),t||p('<div class="form__group"></div>').append(i).appendTo(e)}),n.each(function(){var e=p(this);r.decorateWaField(e)})},decorateWaField:function(e){var t=0<e.has(".wa-submit").length,n=0<e.has(".wa-value.wa-errormsg").length,o=0<e.has('input[type="hidden"] + input[type="checkbox"]').length;t||n?r.decorateFormRow(e):(e.addClass("form-field"),r.field_size&&e.addClass("form-field_size_"+r.field_size),o?r.decorateCheckboxField(e):r.decorateFormField(e))},decorateFormRow:function(e){e.addClass("form-row"),r.field_size&&e.addClass("form-row_size_"+r.field_size),e.find(".wa-value.wa-errormsg").addClass("error error_text")}
1,decorateCheckboxField:function(e){e.prepend('<div class="form-field__name-container"></div>');var t=e.find(".wa-value"),e=e.find(".wa-name");t.append(e),t.addClass("form-field__value"),t.find("label:first").parent().is(t)||t.wrapInner("<label></label>")},decorateFormField:function(e){e.find(".wa-name").each(function(){var e=p(this);let t=e.text();0<t.length&&":"!==t.substring(t.length-1)&&(t=t.trim().concat(":"),e.text(t)),e.addClass("form-field__name")}),e.find(".wa-value").addClass("form-field__value"),e.find(".wa-captcha, .wa-captcha-section").addClass("captcha-decorator").each(function(){n(p(this))}),e.find(".wa-error-msg, .errormsg").addClass("form-field__error-container"),r.decorateParagraphs(e),r.decorateLabels(e),r.decorateSubFields(e)}};p.extend(e,{initFields:function(){r.wrapLabels(),r.decorateWaFields(),e.initWaFieldsAddress(),e.initWaFieldBirthday()},initWaFieldsAddress:function(){a.find(".wa-field-address").each(function(){let a=p(this);a.find(".wa-field-address-region").each(function(){let n=p(this);var e=n.find("select");let t=p("<div></div>");e.replaceWith(t),t.append(e);e=e.attr("id");function o(){i.is(":visible")?t.hide():t.show()}let i=n.find("#"+e+"-input");a.find(".wa-field-address-country").on("change",function(){o();var e=n.find(".loading"),t=(e.addClass("form-field__spinner-container"),p(s.commons.svg.spinner));t.find(".svg-icon").width(24),t.find(".svg-icon").height(24),e.append(t)}),p(document).on("shop:data_regions_send",function(){o()}),p(document).on("shop:data_regions_success",function(){o()})})}),a.find(".wa-field-region").each(function(){let e=p(this);var t=e.find("select");t.wrap("<div></div>");let n=t.parent();t=t.attr("id");function o(){i.is(":visible")?n.hide():n.show()}let i=e.find("#"+t+"-input");a.find(".wa-field-country").on("change",function(){o(),e.find(".loading").append(s.commons.svg.spinner)}),p(document).on("shop:data_regions_send",function(){o()}),p(document).on("shop:data_regions_success",function(){o()}),o()})},initWaFieldBirthday:function(){a.find(".wa-field-birthday").each(function(){p(this).addClass("form-field_birthday"),p(this).find("input").attr("placeholder",l("Ðод"))})},initInputText:function(){var e=a.find('input:not([type]), input[type="text"], input[type="password"], input[type="url"], input[type="tel"], input[type="email"]');e.addClass("input-text"),e.filter(".wa-error, .error").addClass("input-text_error"),e.each(function(){var e=p(this);let t=e.closest(".field"),n="";t.length?n=t.children("span, .form-field__name").text():(t=e.closest(".wa-field")).length&&(n=t.find(".wa-name").text()),(n=(n=":"===(n=n.trim()).substring(n.length-1)?n.substring(0,n.length-1):n).trim())&&0===e.closest(".form-field_birthday").length&&e.attr("placeholder",n)})},initTextarea:function(){var e=a.find("textarea");e.addClass("textarea"),e.filter(".wa-error, .error").addClass("textarea_error"),e.each(function(){var e=p(this);let t=e.closest(".field"),n="";t.length?n=t.children("span, .form-field__name").text():(t=e.closest(".wa-field")).length&&(n=t.find(".wa-name").text()),(n=(n=":"===(n=n.trim()).substring(n.length-1)?n.substring(0,n.length-1):n).trim())&&e.attr("placeholder",n)})},initInputFile:function(){d.InputFile.create(a.find('input[type="file"]'))},initSelect:function(){var e=a.find("select").not('[id^="np2_cities_"]').not('[id^="np2_wh_select"]').not('[id^="np2_street_select"]');d.Select.create(e)},initCheckbox:function(){d.Checkbox.create(a.find('input[type="checkbox"]'))},initRadio:function(){d.Radio.create(a.find('input[type="radio"]'))},initButton:function(){var e=a.find('button, input[type="button"], input[type="submit"], input[type="reset"]');e.addClass("button"),e.filter(".transparent").addClass("button_style_transparent")},initLinks:function(){a.find("a").addClass("link")},initPhoneField:function(){a.find(".wa-field-phone input, .wa-phone").attr("type","tel")}}),e.initFields(),e.initLinks(),e.initInputText(),e.initTextarea(),e.initInputFile(),e.initSelect(),e.initCheckbox(),e.initRadio(),e.initButton(),e.initPhoneField(),a.addClass("form-decorator_js-is-init")});return d.ObserverUtil.observe("form-decorator__trigger",function(e){t(e.closest(".form-decorator"))}),t}(),d.ContentDecorator=function(){let t=e.register(function(e){return e.select(".content-decorator")},function(e,t){p.extend(t,{initForm:function(){t.getForm().each(function(){var e=p(this);e.addClass("form-decorator"),d.FormDecorator(e)})},getForm:function(){return e.find("form")}}),t.initForm()});return d.ObserverUtil.observe("content-decorator__trigger",function(e){t(e.closest(".content-decorator"))}),t}(),d.Radio={create:function(e){e.each(function(){var e,t=p(this);let n=s.commons.radio_html;!t.hasClass("radio__control")&&t.is("input")&&(0<t.closest("label").length&&(n=n.replace(/label/,"span")),e=p(n),t.replace(e),t.addClass("radio__control"),e.find(".radio__control").replaceWith(t))})}},d.Checkbox={create:function(e,t=0){e.each(function(){var e,t=p(this);let n=s.commons.checkbox_html;!t.hasClass("checkbox__control")&&t.is("input")&&(0<t.closest("label").length&&(n=n.replace(/label/,"span")),e=p(n),t.replace(e),t.addClass("checkbox__control"),e.find(".checkbox__control").replaceWith(t))})}},d.CheckboxDecorator=(t=e.register(function(e){return e.select(".checkbox-decorator")},function(e){d.Checkbox.create(e),e.removeClass("checkbox-decorator")}),d.ObserverUtil.observeComponent("checkbox-decorator",t),t),d.Select=e.register(function(e){return e.select(".select:not(select)")},function(i){let o={$select:i.find(".select__control"),$selectInput:i.find(".select__box_input input"),tree:null,has_change:!1,request_update:!1,visible:!1,is_clicked:!1,is_change_label:i.data("change-label")??!1,initObserver:function(){new MutationObserver(function(){o.buildTree()}).observe(o.$select.get(0),{subtree:!0,childList:!0}),new MutationObserver(function(e){let t=!1;
1e.forEach(function(e){"id"!==e.attributeName&&(t=!0)}),t&&o.updateTree()}).observe(o.$select.get(0),{subtree:!0,attributes:!0,characterData:!0})},handleMouseUp:function(){o.is_clicked=!1},handleResize:function(){let e=!1;return function(){e||(e=!0,d.requestNextFrame(function(){e=!1,o.updateWidth()},i[0]))}}(),initEventListeners:function(){o.$select.on("refresh",function(e){o.has_change=!0,o.updateTree()}),o.$select.on("change",function(e){o.updateTree(),o.isOpen()&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),o.has_change=!0)}),i.on("mousedown",function(){o.is_clicked=!0}),p(document).on("mouseup",o.handleMouseUp),p(window).on("resize",o.handleResize),o.$select.on("blur",function(e){o.is_clicked?(e.preventDefault(),o.is_clicked=!1,o.$select.focus()):o.close()}),o.$select.on("keydown",function(e){"Enter"!==e.key&&" "!==e.key||e.preventDefault(),"Enter"===e.key&&o.toggle()," "===e.key&&o.open()}),i.on("click",".select__option",function(){var e=p(this).get(0)["novashop_select@node"];!e||e.disabled||e.optgroup&&e.optgroup.disabled||(p(e.control).prop("selected",!0),p(e.control).trigger("change"),o.close())}),0<o.$selectInput.length?(o.$selectInput.on("focus",function(e){e=p(e.target);o.isOpen()||(e.val(""),o.open())}),o.$selectInput.on("blur",function(e){var t,e=p(e.target);o.isOpen()&&(t=o.getSelected(),e.val(t.label),o.close(),setTimeout(()=>{i.find(".select__option").each(function(){p(this).show()})},200))}),o.$selectInput.on("input",function(e){const t=p(e.target);i.find(".select__option").each(function(){var e=p(this);e.hasClass("select__option_disabled")||e.text().toLowerCase().includes(t.val().toLowerCase())?e.show():e.hide()})})):i.on("click",".select__box",function(){o.isOpen()?o.close():o.open()}),i.on("animationstart",function(e){"novashop_select_appear"===e.originalEvent.animationName&&o.updateTree()}),p(window).on("resize",function(){o.updateTree()}),i.find(".select__dropdown").cssAnimation("select__dropdown_animated")},destroyEventListeners:function(){p(document).off("mouseup",o.handleMouseUp),p(window).off("resize",o.handleResize)},getSelected:function(){var e=o.$select.find("option");let t=p();return e.each(function(){p(this).prop("selected")&&(t=p(this))}),0<t.length?t.get(0)["novashop_select@node"]:null},isOpen:function(){return i.hasClass("select_open")},open:function(){var e;o.isOpen()||u.hasNativeSelect()&&0===o.$selectInput.length||(i.addClass("select_open"),(e=i.find(".select__dropdown")).removeClass("select__dropdown_up"),e.get(0).getBoundingClientRect().bottom>window.innerHeight&&e.addClass("select__dropdown_up"),e.runCssAnimation("select__dropdown_open-animation"),o.scrollToSelected())},close:function(){o.isOpen()&&(i.removeClass("select_open"),i.find(".select__dropdown").runCssAnimation("select__dropdown_close-animation"),o.has_change)&&(o.$select.trigger("change"),o.has_change=!1)},toggle:function(){o.isOpen()?o.close():o.open()},updateBox:function(){var e=o.getSelected();e&&(0<o.$selectInput.length?o.$selectInput.val(e.label):o.is_change_label&&i.find(".select__box").find(".select__content").html(e.label))},updateWidth:function(){var e=i.find(".select__dropdown"),t=i.hasClass("select_open"),n=(i.removeClass("select_init"),i.removeClass("select_open"),e.get(0).style.width="",window.bodyWidth);let o=Math.max(e.outerWidth(),i.outerWidth());n=e.get(0).getBoundingClientRect().right+5-n;0<n&&(o-=n),e.outerWidth(o),i.addClass("select_init"),t&&i.addClass("select_open")},buildTree:function(){o.tree=[],o.$select.children().each(function(n){var e=p(this);e.is("option")?o.tree[n]=o.buildNodeFromOption(e):e.is("optgroup")&&(o.tree[n]=o.buildNodeFromOptgroup(e),e.children().each(function(e){var t=p(this);o.tree[n].options[e]=o.buildNodeFromOption(t,o.tree[n])}))}),o.createDropdown(),o.updateBox(),o.updateWidth()},buildNodeFromOption:function(e,t){var n=e.get(0),e={label:e.data("label")||e.html(),value:e.val(),selected:e.prop("selected"),disabled:e.prop("disabled"),control:n,hidden:"none"===e.css("display"),optgroup:t};return n["novashop_select@node"]=e,o.createElementByOptionNode(e),e},buildNodeFromOptgroup:function(e){var t=e.get(0),e={label:e.attr("label"),options:[],disabled:e.prop("disabled"),control:t,hidden:"none"===window.getComputedStyle(t).display};return t["novashop_select@node"]=e,o.createElementByOptgroupNode(e),e},createDropdown:function(){i.find(".select__dropdown").each(function(){var e=p(this);e.empty();let t=p("<div></div>");o.tree.forEach(function(e){if(t.append(e.element),e.options){let t=p(e.element);e.options.forEach(function(e){t.append(e.element)})}}),e.append(t.contents())})},createElementByOptgroupNode:function(e){var t=document.createElement("span"),n=(t.classList.add("select__optgroup"),(e.element=t)["novashop_select@node"]=e,document.createElement("span"));return n.classList.add("select__optgroup-label"),n.innerHTML=e.label,t.appendChild(n),t.classList.toggle("select__optgroup_disabled",e.disabled),t.classList.toggle("select__optgroup_hidden",e.hidden),p(t)},createElementByOptionNode:function(e){var t=document.createElement("span"),t=(t.classList.add("select__option"),t.classList.toggle("select__option_disabled",e.disabled),t.classList.toggle("select__option_selected",e.selected),t.classList.toggle("select__option_hidden",e.hidden),t["novashop_select@node"]=e,t.dataset.value=e.value,t.innerHTML=e.label,p(t));return e.element=t},updateTree:function(){o.request_update||(o.request_update=!0,d.requestNextFrame(function(){let t=
1o.request_update=!1;o.tree.forEach(function(e){e.options?(t=o.updateOptgroupNode(e)||t,e.options.forEach(function(e){t=o.updateOptionNode(e)||t})):t=o.updateOptionNode(e)||t});var e=i.is(":visible");e!==o.visible&&(t=!0,o.visible=e),t&&(o.updateBox(),o.updateWidth(),o.isOpen())&&o.scrollToSelected(),i.prop("disabled")&&o.close()},i[0]))},scrollToSelected:function(){var e,t=o.getSelected();t&&(t=t.element.get(0),(e=i.find(".select__dropdown").get(0)).scrollTop>t.offsetTop?e.scrollTop=t.offsetTop:e.scrollTop+e.clientHeight<t.offsetTop+t.offsetHeight&&(e.scrollTop=t.offsetTop+t.offsetHeight-e.clientHeight))},isChangedOptionByNode:function(e){var t=p(e.control);return e.label!==(t.data("label")||t.html())||e.value!==t.val()||e.disabled!==t.prop("disabled")||e.selected!==t.prop("selected")||e.hidden!==window.getComputedStyle(t.get(0)).display==="none"},updateOptionNode:function(e){var t,n;return!!o.isChangedOptionByNode(e)&&(t=p(e.control),n=p(e.element),e.label=t.data("label")||t.html(),e.value=t.val(),e.disabled=t.prop("disabled"),e.selected=t.prop("selected"),e.hidden="none"===window.getComputedStyle(t.get(0)).display,n.html(e.label),n.toggleClass("select__option_disabled",e.disabled),n.toggleClass("select__option_selected",e.selected),n.toggleClass("select__option_hidden",e.hidden),!0)},isChangedOptgroupByNode:function(e){var t=p(e.control);return e.label!==t.html()||e.disabled!==t.prop("disabled")||e.hidden!==window.getComputedStyle(t.get(0)).display==="none"},updateOptgroupNode:function(e){var t,n;return!!o.isChangedOptgroupByNode(e)&&(t=p(e.control),n=p(e.element),e.label=t.attr("label"),e.disabled=t.prop("disabled"),e.hidden="none"===window.getComputedStyle(t.get(0)).display,n.find(".select__optgroup-label").html(e.label),t.toggleClass("select__optgroup_disabled",e.disabled),t.toggleClass("select__optgroup_hidden",e.hidden),!0)}};return o.initEventListeners(),o.initObserver(),o.buildTree(),function(){o.destroyEventListeners()}}),d.Select.create=function(e,n,o,i,a){e.each(function(){var t=p(this);if(!t.hasClass("select__control")&&t.is("select")){let e=p(s.commons.select_html);(e=a?p(s.commons.select_html_input):e).addClass(i),t.replace(e),t.addClass("select__control"),e.find(".select__control").replaceWith(t),n&&e.addClass("select_size_"+n),o&&e.addClass("select_fill"),d.Select(e)}})},d.SelectDecorator=(t=e.register(function(e){return e.select(".select-decorator")},function(e){d.Select.create(e,e.data("size"),e.data("fill"),e.data("classes")),e.removeClass("select-decorator")}),d.ObserverUtil.observeComponent("select-decorator",t),t),d.InputFile=e.register(function(e){return e.select(".input-file:not(input)")},function(n,e){let t={initEventListeners:function(){n.find(".input-file__button").on("click",function(){n.find(".input-file__control").trigger("click")}),n.find(".input-file__control").on("change",function(){t.updateState()})},updateState:function(){var e=n.find(".input-file__control"),t=n.find(".input-file__file-box"),e=e.get(0).files;0===e.length?t.text(l("Файл не вÑбÑан")):1===e.length?t.text(e[0].name):t.text(l("ЧиÑло Ñайлов")+": "+e.length)}};t.initEventListeners(),t.updateState()}),d.InputFile.create=function(e){e.each(function(){var e,t=p(this);t.hasClass("input-file__control")||t.hasClass("js-file-field")||!t.is('input[type="file"]')||(e=p(s.commons.input_file_html),t.replace(e),t.addClass("input-file__control"),e.find(".input-file__control").replaceWith(t),d.Update(e))})},d.RequiredPlaceholder=function(e,i){i=i||!1,e.each(function(){let n=p(this),o={getPlaceholder:function(){return n.attr("placeholder")},setPlaceholder:function(e){n.attr("placeholder",e)},resetPlaceholder:function(){this.setPlaceholder("")},getPlaceholderNode:function(){return n.parent().find(".required-placeholder")},toggle:function(){o.getPlaceholderNode().toggle(!n.val().length)},init:function(){if(!e.hasClass("suggestions-input")&&this.getPlaceholder()){let e=this.getPlaceholder();/\*$/.test(e)&&(e=e.substr(0,e.length-1).trim()),i&&n.wrap(p('<div class="required-placeholder__wrapper"/>'));var t=p('<span class="required-placeholder"/>');t.append(e),t.append(p('<span class="required-placeholder__mark"/>').html("*")),i&&t.addClass("required-placeholder_wrapped"),n.after(t),o.resetPlaceholder(),n.on("input",o.toggle),o.toggle()}}};o.init()})},d.InputTextRequired=e.register(function(e){return e.select(".input-text_required")},function(e){d.RequiredPlaceholder(e,!0)});var n=d.CaptchaDecorator=e.register(function(e){return e.select(".captcha-decorator")},function(e,t){p.extend(t,{init:function(){e.find("a").addClass("pseudo-link"),e.find(":text").addClass("input-text")},refresh:function(){e.find(".wa-captcha-refresh").trigger("click")}}),t.init()});d.Analytics=function(){let n=s.commons.analytics,o={getGoal:function(e){return n.goals[e]},ymReachGoal:function(e){var t=window["yaCounter"+n.ym_counter],e=o.getGoal(e);t&&e&&t.reachGoal(e.ym)},gaReachGoal:function(e){var t=window.ga,e=o.getGoal(e);t&&e&&t("send","event",e.ga_category,e.ga_action)}};return{reachGoal:function(e){o.ymReachGoal(e),o.gaReachGoal(e)}}}(),d.LoginPage=function(){let t=e.register(function(e){return e.select(".login-page")},function(a){let r={isModal:function(){return a.hasClass("login-modal")},isOnetime:function(){return a.find(".wa-request-onetime-password-button").length},initType:function(){this.isOnetime()?a.addClass("login-page_onetime"):a.addClass("login-page_general")},initButtons:function(){var e=a.find(".wa-submit, .wa-login-form-actions");a.find(".wa-js-new-button-place :submit").addClass("button_wide"),e.find(":submit").addClass("button_fill"),e.contents().filter(function(){return 3===this.nodeType}).remove();let t=e.find("a"),n=(t=t.add(a.find(".wa-login-forgotpassword-url")),r.isOnetime()&&((i=(o=a.find(".wa-request-onetime-password-button-wrapper")).find(".wa-request-onetime-password-button")).removeClass("button_fill"),i.addClass("button_wide"),t=t.add(o)),p('<div class="login-page__nav-buttons"></div>'));var o,i=p('<div class="login-page__additional-buttons"></div>');if(i.append(t),n.append(i),n.appendTo(e),r.isOnetime()||!u.isDesktopMin()||r.isModal()||((o=e.find(":submit")).removeClass("button_fill"),o.addClass("button_wide"),n.prepend(o)),a.find(".wa-buttons-wrapper").each(function(){var e=p(this);e.show(),e.append(n)}),a.find(".wa-signup-url").remove(),r.isOnetime()){let t=a.find(".wa-buttons-wrapper");d.ObserverUtil.observe("wa-login-submit",function(e){e.closest(".wa-buttons-wrapper").is(t)&&!e.closest(".login-page__nav-buttons").length&&n.prepend(e)})}},initAjaxForm:function(){var e=a.find("form");e.each(function(){var e=p(this);e.addClass("ajax-form"),d.AjaxForm(e)}),e.on("success@novashop:ajax-form",function(e,t){t.status||(t=p(t).find(".login-page"),a.replaceWith(t),d.Update(t.parent()))})},initErrors:function(){let t=setInterval(function(){if(window.WaFrontendLogin){let e=window.WaFrontendLogin.prototype.showErrors;window.WaFrontendLogin.prototype.showErrors=function(){e.apply(this,arguments),a.find(".form-field__content-container .wa-error-msg").addClass("form-field__error-container"),a.find(".wa-uncaught-errors .wa-error-msg").addClass("error error_text")},clearInterval(t)}})}};r.initType(),r.initButtons(),r.initAjaxForm(),r.initErrors(),a.addClass("login-page_js-is-init")});return d.ObserverUtil.observe("login-page__trigger",function(e){e.closest("login-page").each(function(){t(p(this))})}),t}(),d.SignupPage=function(){let t=e.register(function(e){return e.select(".signup-page")},function(n){let e=function(){var e=n.find(".wa-submit, .wa-signup-form-actions");e.find(":submit").addClass("button_wide"),e.contents().filter(function(){return 3===this.nodeType}).remove();let t=e.find("a").addClass("signup-page__login-button");t.text(l("ÐÑ
од на ÑайÑ")),n.find(".wa-buttons-wrapper").each(function(){p(this).append(t)}),n.find(".wa-login-url").remove()},t=function(){n.find(".wa-field").each(function(){var e=p(this),t=!!e.data("is-required"),e=e.find(".
1input-text");t&&e.addClass("input-text_required")})},o=function(){if(window.WaSignup){let t=window.WaSignup.prototype.getFormInput;window.WaSignup.prototype.getFormInput=function(){let e=t.apply(this,arguments);return e=(e=e.hasClass("checkbox__control")?e.parents(".label"):e).hasClass("radio__control")?e.parents(".label"):e}}},i=function(){let t=setInterval(function(){if(window.WaSignup){let e=window.WaSignup.prototype.showErrors;window.WaSignup.prototype.showErrors=function(){e.apply(this,arguments),n.find(".form-field__content-container .wa-error-msg").addClass("form-field__error-container"),n.find(".wa-uncaught-errors .wa-error-msg").addClass("error error_text")},clearInterval(t)}})};n.addClass("signup-page_js-is-init"),e(),t(),o(),i()});return d.ObserverUtil.observe("signup-page__trigger",function(e){e.closest("signup-page").each(function(){t(p(this))})}),t}(),d.ForgotpasswordPage=function(){let t=e.register(function(e){return e.find(".forgotpassword-page")},function(t){t.addClass("forgotpassword-page_js-is-init");var e=t.find(".forgotpassword-page__form-decorator");e.addClass("form-decorator");let n=p('<div class="wa-field"><div class="wa-value"></div></div>'),o=(t.find(".wa-forgotpassword-button").each(function(){var e=p(this);e.find(":submit").addClass("wa-submit"),n.find(".wa-value").append(e)}),t.find(".wa-edit-login-link-wrapper").each(function(){var e=p(this);n.find(".wa-value").append(e)}),t.find(".wa-field-login").after(n),setInterval(function(){if(window.WaFrontendForgotPassword){let e=window.WaFrontendForgotPassword.prototype.showErrors;window.WaFrontendForgotPassword.prototype.showErrors=function(){e.apply(this,arguments),t.find(".form-field__content-container .wa-error-msg").addClass("form-field__error-container"),t.find(".wa-uncaught-errors .wa-error-msg").addClass("error error_text")},clearInterval(o)}},100)),i=setInterval(function(){if(window.WaFrontendSetPassword){let e=window.WaFrontendSetPassword.prototype.showErrors;window.WaFrontendSetPassword.prototype.showErrors=function(){e.apply(this,arguments),t.find(".form-field__content-container .wa-error-msg").addClass("form-field__error-container"),t.find(".wa-uncaught-errors .wa-error-msg").addClass("error error_text")},clearInterval(i)}},100);h(e)});return d.ObserverUtil.observe("forgotpassword-page__trigger",function(e){e.closest(".forgotpassword-page").each(function(){t(p(this))})}),t}(),window.novashop.IntersectionUtil=function(){let o=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const t=e.target;for(o.unobserve(t);0<t.novashop_intersection_handler.length;){const n=t.novashop_intersection_handler.pop();d.requestNextFrame(()=>{n.apply(t)})}delete t.novashop_intersection_handler}})},{rootMargin:"350px",threshold:.01});
1return{watch(e,t){e.novashop_intersection_handler||(e.novashop_intersection_handler=[]),e.novashop_intersection_handler.push(t),o.observe(e)}}}(),d.GalleryUtil=function(){let n=document.querySelector(".light-gallery"),o;return{open:function(e,t){t=t||0,n.innerHTML="",e.forEach(e=>{var t=document.createElement("a");t.href=e.src,t.dataset.src=e.src,e.iframe&&(t.dataset.iframe="true"),t.innerHTML=`<img src="${e.thumb||""}" alt="">`,n.appendChild(t)}),o?o.destroy():n.addEventListener("lgBeforeClose",()=>{v.unlockPage()}),v.lockPage(),(o=lightGallery(n,{plugins:[lgThumbnail,lgZoom],thumbnail:!0,preload:2,addClass:"lightGallery-white-theme lg-custom-events",dynamic:!1,zoomFromOrigin:!1,mobileSettings:{controls:!0,showCloseIcon:!0,download:!1}})).openGallery(t)}}}(),p(document).on("swiper_lazyload@novashop:global",function(e,t){let i=null;t.on("slideChange",function(){let n=this,o=n.slides[n.activeIndex];var e=p(o).find(".lazy-image");0<e.length&&(d.LazyImage(e),n.params.autoHeight)&&(i&&p(document).off("lazy_image_completed@novashop:global",i),i=function(e,t){p.contains(o,t)&&n.updateAutoHeight()},p(document).on("lazy_image_completed@novashop:global",i))})});let r=d.QueryUtil={parse:function(e){var t=document.createElement("a"),e=(t.href=e,t.search.substring(1));if(0===e.length)return[];var n=e.split("&"),o=[];for(let e=0;e<n.length;e++){var i=n[e].split("=");o.push({name:decodeURIComponent(i[0]),value:decodeURIComponent(i[1])})}return o},clear:function(e){return e.split("?")[0]},serialize:function(e){return p.param(e)}};var i=d.MetaThemeColorUtil={setColor:function(e){p('meta[name="theme-color"]').attr("content",e)},resetColor:function(){p('meta[name="theme-color"]').attr("content",s.commons.primary_color)}};let a=d.ScrollUtil={scrollToTop:function(e){e=e||0,a.getScrollTop()<=e||a.scrollTo(e)},scrollTo:function(e){let t=p("html, body");e=e||0;var n=a.getScrollTop(),o=p("[data-top-offset-block]");0<o.length&&(e-=o.height()),400<Math.abs(n-e)&&t.scrollTop(e+400*Math.sign(n-e)),t.animate({scrollTop:e},300,"swing",function(){t.scrollTop(e)})},scrollToBlock:function(e){e.trigger("scrollTo@novashop"),this.scrollTo(e.offset().top)},getScrollTop:function(){return p(window).scrollTop()}},g=d.InfoPanelUtil={showMessage:function(e,t){var n=p(s.commons.info_panel_html);n.find(".info-panel-item__content-container").html(e),t&&n.addClass("info-panel-item_error"),g.addItem(n,!0)},addItem:function(e){var t=p(".custom-panel-container");m(t).addItem(e)}},f=d.CartUtil={addByData:function(e){let t=[];p(e).each(function(){var e;"quantity"===this.name&&(e=this.value,this.value=k.formatNumber(e)),t.push(this)});e=p.ajax({url:s.shop.cart_add_url+"?items=1&html=1",method:"post",data:t,dataType:"json"});return e.then(function(){p(document).trigger("shop_cart_add@novashop:global",arguments)}),e},addProductBySkuId:function(e,t,n){t=k.formatNumber(t),e=f.addByData(p.extend({sku_id:e,quantity:t,html:!0},f.formatServices(n)));return e.then(function(){p(document).trigger("shop_cart_add_product@novashop:global",arguments)}),e},addProduct:function(e,t,n){t=k.formatNumber(t),e=f.addByData(p.extend({product_id:e,quantity:t,html:!0},f.formatServices(n)));return e.then(function(){p(document).trigger("shop_cart_add_product@novashop:global",arguments)}),e},addProductByFeatures:function(e,t,n,o){n=k.formatNumber(n),e=f.addByData(p.extend({product_id:e,features:t,quantity:n,html:!0},f.formatServices(o)));return e.then(function(){p(document).trigger("shop_cart_add_product@novashop:global",arguments)}),e},addService:function(e,t,n){e=f.addByData({parent_id:e,service_id:t,service_variant_id:n,html:!0});return e.then(function(){p(document).trigger("shop_cart_add_service@novashop:global",arguments)}),e},updateItem:function(e,t){t=k.formatNumber(t),e=p.ajax({url:s.shop.cart_save_url,method:"post",data:{id:e,quantity:t,html:!0},dataType:"json"});return e.then(function(){p(document).trigger("shop_cart_update@novashop:global",arguments)}),e},updateService:function(e,t){e=p.ajax({url:s.shop.cart_save_url,method:"post",data:{id:e,service_variant_id:t,html:!0},dataType:"json"});return e.then(function(){p(document).trigger("shop_cart_update@novashop:global",arguments)}),e},deleteItem:function(e){e=p.ajax({url:s.shop.cart_delete_url,method:"post",data:{id:e,html:!0},dataType:"json"});return e.then(function(){p(document).trigger("shop_cart_delete@novashop:global",arguments)}),e},clear:function(){var e=p.ajax({url:s.shop.cart_url+"?clear=1",method:"post",dataType:"json"});return e.then(function(){p(document).trigger("shop_cart_clear@novashop:global",arguments)}),e},formatServices:function(e){var t={};return t.services=(e=e||[]).map(function(e){return e.id}),t.service_variants=e.reduce(function(e,t){return e[t.id]=t.variant_id,e},{}),t}};d.InfoPanel=e.register(function(e){return e.select(".info-panel")}
1,function(e){e.find(".info-panel__close-button").on("click",function(){e.trigger("close@novashop:info-panel"),e.remove()})});let _=d.InfoPanelItem=e.register(function(e){return e.select(".info-panel-item")},function(t,n){let o=null,i;t.find(".info-panel-item__close-button").on("click",function(){n.closeItem(t)}),t.on("mouseover",function(){clearTimeout(o)}),t.on("mouseout",function(){o=n.closeItemTimeout(t)}),t.on("touchstart",function(e){i=e.originalEvent.changedTouches[0].clientX}),t.on("touchend",function(e){50<e.originalEvent.changedTouches[0].clientX-i&&n.closeItem(t)}),p.extend(n,{openItem:function(e){e.addClass("info-panel-item_open"),h(t),o=n.closeItemTimeout(e)},closeItemTimeout:function(e){return setTimeout(()=>{n.closeItem(e)},5e3)},closeItem:function(e){e.removeClass("info-panel-item_open"),setTimeout(()=>{e.remove()},200)}})}),m=d.InfoPanelContainer=e.register(function(e){return e.select(".info-panel-container")},function(t,e){p.extend(e,{addItem:function(e){t.append(e),t.offset(),_(e).openItem(e)},close:function(){t.remove()}})});d.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]},getPluralValue:function(e,t){e=s.language.plurals[e];if(void 0!==e)return this.plural(t,e.split(","))}},d.DebounceUtil={debounce(t,n){let o;return function(...e){clearTimeout(o),o=setTimeout(()=>{t(...e)},n)}}};d.PageSeparatorBuilder={create:function(e){var t=p('<div class="page-separator"></div>'),n=p('<span class="page-separator__inner"></span>');return t.append(n),n.text(e),t}},d.CookieSet=function(t,n){let o={is_stored:!1,state:null},i={list:function(){var e;return o.is_stored||(0===(e=p.cookie(t)||"").length?o.state=[]:o.state=e.split(","),o.is_stored=!0),o.state},count:function(){return i.list().length},store:function(e){0===e.length?p.removeCookie(t,{expires:31,path:s.commons.wa_url}):p.cookie(t,e.join(","),{expires:31,path:s.commons.wa_url}),o.is_stored=!1},has:function(e){return e=e.toString(),-1!==i.list().indexOf(e)},add:function(e){var t;e=e.toString(),i.has(e)||((t=i.list()).push(e),i.store(t),i.update({action:"add",value:e}))},remove:function(e){var t;e=e.toString(),i.has(e)&&((t=i.list()).splice(t.indexOf(e),1),i.store(t),i.update({action:"remove",value:e}))},update:function(e){"function"==typeof n&&n(e)}};return i},d.TouchLockUtil={lock:function(e){if(e.length){e=e.get(0);let n={last_touch_y:null,handleTouchStart:function(e){u.isTabletMax()&&1===e.targetTouches.length&&(n.last_touch_y=e.targetTouches[0].clientY)},handleTouchMove:function(e){var t;u.isTabletMax()&&1===e.targetTouches.length&&(t=e.targetTouches[0].clientY-n.last_touch_y,0===this.scrollTop&&0<t&&e.preventDefault(),this.scrollHeight-this.scrollTop<=this.clientHeight)&&t<0&&e.preventDefault()}};e.addEventListener("touchmove",n.handleTouchMove,{passive:!1}),e.addEventListener("touchstart",n.handleTouchStart,{passive:!1})}}};let v=d.ScrollLockUtil=function(){const n=p(".header-floating");return{lock:function(e){var t=window.innerWidth-document.documentElement.clientWidth;(0<t||window.matchMedia("(max-width: 1024px)").matches)&&(e.css("paddingRight",t),e.data("is-scroll-locked",!0),e.css("overflow","hidden"),0<n.length)&&n.css("paddingRight",t)},unlock:function(e){e.css("overflow",""),e.data("is-scroll-locked",""),e.css("paddingRight",""),0<n.length&&n.css("paddingRight","")},lockPage:function(e){this.lock(p("html"))},unlockPage:function(e){this.unlock(p("html"))}}}(),b=d.ModalUtil={close:function(e){void 0===e&&(e=!0),p(".modal").each(function(){let t=p(this),e=null;var n=I(t);"function"==typeof t.data("onClose")&&(e=t.data("onClose")),n.close(),t.on("animationend",function(e){t.remove()}),"function"==typeof e&&e()}),e&&window.setTimeout(function(){p(".modal-wrapper").remove(),v.unlockPage()},200)},open:function(e,t){if(0===e.length)return!1;var n=0<p(".modal").length?200:0;this.close(!1);let o=w(),i=p('<div class="body-children-observer-trigger"></div>'),a=I(e);window.setTimeout(()=>{o.append(e),d.Update(o),o.removeClass("modal-wrapper_loading"),a.show(),p("body").append(i),"function"==typeof t&&t(e),i.remove()},n)},openContent:function(e,t){var t={title:(t="object"!=typeof t?{}:t).title||void 0,classes:t.classes||"",contentClasses:t.contentClasses||"",beforeOpen:t.beforeOpen||void 0,onOpen:t.onOpen||void 0,onClose:t.onClose||void 0,isContentNoHidden:t.isContentNoHidden||!1},n=p(d.config.commons.modal_tpl),e=(n.addClass(t.classes),n.find(".modal__content").addClass(t.contentClasses).toggleClass("modal__content_no-hidden",t.isContentNoHidden).html(e),n.find(".modal__title").first());void 0!==t.title&&null!==t.title&&""!==t.title?e.html(t.title):""===e.text()&&e.remove();let o=null;"function"==typeof t.beforeOpen&&t.beforeOpen(n),p(document).trigger("opening@novashop:modal",n),"function"==typeof t.onOpen&&(o=t.onOpen),this.open(n,o),p(document).trigger("opened@novashop:modal",n),"function"==typeof t.onClose&&n.data("onClose",t.onClose),p(document).trigger("closed@novashop:modal",n)},openAjax:function(e,n,t){let o={title:(t="object"!=typeof t?{}:t).title||void 0,classes:t.classes||"",contentClasses:t.contentClasses||"",beforeOpen:t.beforeOpen||void 0,onOpen:t.onOpen||void 0,onClose:t.onClose||void 0,isContentNoHidden:t.isContentNoHidden||!1};
1t=r.parse(e),t.push({name:"ajax",value:1}),e=r.clear(e)+"?"+r.serialize(t);w(!0);p.get(e,function(e){e=p(e);let t=null;if("function"==typeof n?t=n(e):0===(t=e.find(".ajax-content")).length&&(t=e),0===t.length)return console.error("No content found"),!1;b.openContent(t,o)})}};function w(e){let t=p(".modal-wrapper");return 0===t.length&&(t=p('<div class="modal-wrapper"></div>'),p("body").append(t),v.lockPage(),t.on("touchstart mousedown",function(e){e.target===this&&b.close()})),e&&t.addClass("modal-wrapper_loading"),t}let C=d.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&&0<window.performance.getEntriesByType("navigation").length?"reload"===window.performance.getEntriesByType("navigation")[0].type:1===window.performance.navigation.type},disableScrollRestoration:function(){window.history&&(window.history.scrollRestoration="manual")}}),y=d.LinkUtil={create:function(e){var t=document.createElement("a");return t.href=e,t}},k=d.NumberUtil={validateNumber:function(e,t){let a=t="string"==typeof t?t:""+t;switch(e){case"float":0<=parseFloat(t)&&(a=+parseFloat(t).toFixed(3));break;case"number":{let n=["0","1","2","3","4","5","6","7","8","9",".",","],o=[],i=!1;p.each(t.split(""),function(e,t){"."===t||","===t?(t=".",i||(i=!0,o.push(t))):0<=n.indexOf(t)&&o.push(t)}),a=o.join("");break}case"integer":{let n=["0","1","2","3","4","5","6","7","8","9"],o=[];p.each(t.split(""),function(e,t){0<=n.indexOf(t)&&o.push(t)}),a=o.join("");break}}return a},formatNumber:function(e){var t=parseFloat(e);let n=parseFloat(t.toFixed(3));t<1?2===(o=(e="string"!=typeof e?String(e):e).split(".")).length&&(r=o[1].replace(/^0+/,""),e=x(t,o[1].length-r.length+3).toFixed(8)):e=x(t,3).toFixed(8);var o=e.split(".");if(2===o.length){var i=o[1],a=[],r=[o[0]];if(i.length){for(let e=0;e<i.length;e++){var s=i[i.length-(e+1)];"0"===s&&!a.length||a.push(s)}a.length&&r.push(a.reverse().join(""))}n=parseFloat(r.join("."))}return n}};function x(t,n){if(String(t).includes("e")){var o=String(t).split("e");let e="";return 0<+o[1]+n&&(e="+"),+(Math.round(+o[0]+"e"+e+(+o[1]+n))+"e-"+n)}return+(Math.round(t+"e+"+n)+"e-"+n)}let T=d.Dropdown=e.register(function(e){return e.select(".dropdown")},function(t,n){let e="mouseenter",o=(t.hasClass("dropdown_click")&&(e="click"),"ontouchstart"in window&&(e="touchstart"),t.find(".dropdown__dropdown").first()),i={leave_timeout_id:null,initGlobalEventListeners:function(){p(document).on("click",i.handleDocumentClick)},destroyGlobalEventListeners:function(){p(document).off("click",i.handleDocumentClick)},initEventListeners:function(){t.on(e,function(e){("touchstart"===e.type||"click"===e.type&&n.isClicking())&&n.isOpen()&&0===p(e.target).closest(o).length?(clearTimeout(i.leave_timeout_id),n.close()):(clearTimeout(i.leave_timeout_id),n.open())}),n.isClicking()||t.on("mouseleave",function(){i.leave_timeout_id=setTimeout(function(){n.close(),v.unlockPage()},s.commons.catalog_onleave_timeout)}),o.cssAnimation("dropdown__dropdown_animated")},handleDocumentClick:function(e){0===p(e.target).closest(t).length&&(clearTimeout(i.leave_timeout_id),n.close())}};return p.extend(n,{isOpen:function(){return t.hasClass("dropdown_open")},open:function(){n.isOpen()||(t.addClass("dropdown_open"),o.runCssAnimation("dropdown__dropdown_open-animation"),t.trigger("open@novashop:dropdown"))},close:function(){n.isOpen()&&(t.removeClass("dropdown_open"),o.runCssAnimation("dropdown__dropdown_close-animation"),t.trigger("close@novashop:dropdown"))},isClicking:function(){return t.hasClass("dropdown_click")}}),i.initGlobalEventListeners(),i.initEventListeners(),function(){i.destroyGlobalEventListeners()}}),L=(d.Counter=e.register(function(e){return e.select(".counter")},function(t,e){p.extend(e,{changeCount:function(e){t.text(e),t.toggleClass("counter_empty",0===e)}})}),d.ToggleBlock=e.register(function(e){return e.select(".toggle-block")},function(o){let e={initButton:function(){let n=e.getButton();if(0!==n.length){let e=n.data("default"),t=n.data("active");e=e||n.html(),n.on("click",function(){o.toggleClass("toggle-block_active"),t&&(o.hasClass("toggle-block_active")?n.html(t):n.html(e)),o.trigger("toggle")})}},getButton:function(){return o.find(".toggle-block__button").filter(function(){return p(this).closest(".toggle-block").is(o)})}};e.initButton()}),d.AccordionBlock=e.register(function(e){return e.select(".accordion-block")},function(e,t){let n={initEventListeners:function(){t.isOpen()||n.getContent().hide(),n.getButton().on("click",function(e){e=p(e.target);if(0===e.closest("[data-stop]").length)return"A"===e.get(0).tagName||(t.toggle(
1),!1)})},getButton:function(){return e.find(".accordion-block__button").filter(function(){return p(this).closest(".accordion-block").is(e)})},getContent:function(){return e.find(".accordion-block__content").filter(function(){return p(this).closest(".accordion-block").is(e)})}};p.extend(t,{isOpen:function(){return e.hasClass("accordion-block_open")},open:function(){e.addClass("accordion-block_open"),n.getContent().toggle({easing:"swing",duration:200,display:!0})},close:function(){n.getContent().toggle({easing:"swing",duration:200,display:!1}),e.addClass("accordion-block_in-process"),e.removeClass("accordion-block_open"),setTimeout(()=>{e.removeClass("accordion-block_in-process")},200)},toggle:function(){t.isOpen()?t.close():t.open()}}),n.initEventListeners()}),d.SlideDownUtil={show:function(e){let t=p.Deferred();return e.stop(!0,!0),e.offset(),e.animate({height:"show"},300,function(){t.resolve()}),t},hide:function(e){let t=p.Deferred();return e.stop(!0,!0),e.offset(),e.animate({height:"hide"},300,function(){t.resolve()}),t},toggle:function(e){return e.is(":visible")?L.hide(e):L.show(e)}});d.RangeSlider=e.register(function(e){return e.select(".range-slider")},function(c,d){p.extend(d,{initSlider:function(){let n=d.getMin(),o=d.getMax(),i=d.getSlider(),a=d.getMinBoundNumber(),r=d.getMaxBoundNumber();var e=d.getMinBound(),t=d.getMaxBound(),e=d.handleNumber(n.val(),a,[e,t]),t=d.handleNumber(o.val(),r,[e,t]);let s=1;if(c.data("step"))s=parseFloat(c.data("step"));else{var l=Math.abs(r-a);if(Math.round(a)!=a||Math.round(r)!=r){s=l/10;let e=0;for(;s<1;)s*=10,e+=1;s=Math.pow(10,-e),(e=Math.round(1e5*Math.abs(Math.round(a)-a))/1e5)&&e<s&&(s=e),(e=Math.round(1e5*Math.abs(Math.round(r)-r))/1e5)&&e<s&&(s=e)}}i.html(""),i.on("mousedown",function(e){var t=p(e.target),n=i.find(".ui-slider-handle");t.hasClass(".ui-slider-handle")||(e.clientX<n.get(0).getBoundingClientRect().left?i.slider("instance")._lastChangedValue=0:n.get(1).getBoundingClientRect().right<e.clientX&&(i.slider("instance")._lastChangedValue=1))}),i.on("mousedown",".ui-slider-handle",function(){var e=i.find(".ui-slider-handle");i.slider("instance")._lastChangedValue=e.index(this)}),i.slider({range:!0,classes:{"ui-slider":"range-slider__slider","ui-slider-handle":"range-slider__slider-handle","ui-slider-range":"range-slider__slider-range"},min:a,max:r,values:[e,t],step:s,slide:function(e,t){t.values[0]===a?n.val(""):n.val(t.values[0]),t.values[1]===r?o.val(""):o.val(t.values[1])},stop:function(e,t){0===t.handleIndex?n.trigger("change"):1===t.handleIndex&&o.trigger("change")}})},initEventListeners:function(){let n=d.getMin(),o=d.getMax(),i=d.getSlider(),a=d.getMinBound(),r=d.getMaxBound(),s=d.getMinBound(),l=d.getMaxBound();n.on("input",function(){var e=i.slider("values");e[0]=d.handleNumber(p(this).val(),a,[s,e[1]]),i.slider("values",e)}),n.on("focus",function(){""===n.val()&&n.val(s)}),n.on("blur change",function(){var e=i.slider("values"),t=d.handleNumber(p(this).val(),a,[s,e[1]]);t===a?n.val(""):n.val(t),e[0]=t,i.slider("values",e)}),o.on("input",function(){var e=i.slider("values");e[1]=d.handleNumber(p(this).val(),r,[e[0],l]),i.slider("values",e)}),o.on("focus",function(){""===o.val()&&o.val(l)}),o.on("blur change",function(){var e=i.slider("values"),t=d.handleNumber(p(this).val(),r,[e[0],l]);t===r?o.val(""):o.val(t),e[1]=t,i.slider("values",e)})},getSlider:function(){return c.find(".range-slider__slider")},getMin:function(){return c.find(".range-slider__input_min")},getMax:function(){return c.find(".range-slider__input_max")},getMinBound:function(){return c.data("min")},getMaxBound:function(){return c.data("max")},getMinBoundNumber:function(){return+d.getMinBound()},getMaxBoundNumber:function(){return+d.getMaxBound()},handleNumber:function(e,t,n){return e=+(e=""===e?NaN:e),isNaN(e)?t:(t=n[1],n=n[0],""!==t&&(e=Math.min(e,t)),""!==n?Math.max(e,n):e)}}),d.initSlider(),d.initEventListeners()}),d.ViewportControl=e.register(function(e){return e.select(".viewport-control")},function(o,e){let i=p(window),a=!1,t=!1,n=null;function r(){t||(t=!0,n=requestAnimationFrame(function(){t=!1,e.handleView()}))}p.extend(e,{initEventListeners:function(){p(window).on("scroll",r)},destruct:function(){p(window).off("scroll",r),t&&(cancelAnimationFrame(n),t=!1)},handleView:function(){var e,t,n;a&&(e=i.height(),t=i.scrollTop(),(n=o.position()).top<t+e?o.trigger("view"):n.top-500<t+e&&o.trigger("pre_view"))},unwatch:function(){a=!1},watch:function(){a=!0,e.handleView()}}),e.initEventListeners(),setTimeout(function(){e.handleView()},0)}),d.LazyLoad=e.register(function(e){return e.select(".lazy-load")}
1,function(i,n){let a={page:1,count_pages:i.data("count_pages"),is_watch:!1,current_xhr:null,scheduled:!1,raf_id:null,initGlobalEventListeners:function(){p(window).on("scroll",a.handleScroll)},destroyGlobalEventListeners:function(){p(window).off("scroll",a.handleScroll),a.scheduled&&(cancelAnimationFrame(a.raf_id),a.scheduled=!1)},handleScroll:function(){a.scheduled||(a.scheduled=!0,a.raf_id=requestAnimationFrame(function(){a.scheduled=!1,a.checkScroll()}))},checkScroll:function(){var e,t;a.is_watch&&(e=(t=p(window)).height(),t=t.scrollTop(),i.position().top+i.height()-500<t+e)&&(n.unwatch(),a.fetchNextPage().then(function(){a.page===a.count_pages?i.trigger("done@novashop:lazy-load",arguments):n.watch()},function(){n.watch()}))},fetchNextPage:function(){a.current_xhr&&(a.current_xhr.abort(),a.current_xhr=null);let e=a.page+1;var t=window.location.toString();let n=r.parse(t);n.push({name:"_",value:Date.now()}),e&&(n=n.filter(function(e){return"page"!==e.name})).push({name:"page",value:e});var o=document.createElement("a"),t=(o.href=t,o.search=r.serialize(n),i.trigger("loading@novashop:lazy-load",arguments),p.ajax({url:o.toString()}));return t.then(function(){a.page=e,i.trigger("loaded@novashop:lazy-load",arguments)},function(){i.trigger("error@novashop:lazy-load",arguments)}),t}};return p.extend(n,{getPage:function(){return a.page},getCountPages:function(){return a.count_pages},watch:function(){a.is_watch=!0,a.checkScroll()},unwatch:function(){a.is_watch=!1}}),a.initGlobalEventListeners(),function(){a.destroyGlobalEventListeners()}}),d.AuthAdapter=e.register(function(e){return e.select(".auth-adapter")},function(e,t){p.extend(t,{initEventListeners:function(){e.on("click",function(e){e.preventDefault();var t,n,e=p(this).attr("href");e&&(t=(screen.width-600)/2,n=(screen.height-500)/2,window.open(e,"oauth","width=600,height=500,left="+t+",top="+n+",status=no,toolbar=no,menubar=no"))})}}),t.initEventListeners()}),d.LoginLink=e.register(function(e){return e.select(".login-link")},function(e,t){p.extend(t,{initEventListeners:function(){e.on("click",function(e){e.preventDefault(),d.LazyScript.load("auth_modals").then(function(){b.openAjax(s.commons.login_url+"?modal=1",function(e){return p(e).find(".login-page")},{isContentNoHidden:!0})})})}}),t.initEventListeners()}),d.SignupLink=e.register(function(e){return e.select(".signup-link")},function(e,t){p.extend(t,{initEventListeners:function(){e.on("click",function(e){e.preventDefault(),d.LazyScript.load("auth_modals").then(function(){b.openAjax(s.commons.signup_url+"?modal=1",function(e){return p(e).find(".signup-page").get(0).outerHTML})})})}}),t.initEventListeners()});d.ForgotpasswordLink=e.register(function(e){return e.select(".forgotpassword-link")},function(e){e.on("click",function(e){e.preventDefault(),d.LazyScript.load("auth_modals").then(function(){b.openAjax(s.commons.forgotpassword_url+"?modal=1",function(e){return p(e).find(".forgotpassword-page").get(0).outerHTML},{classes:"modal_all-border"})})})});let E=d.Tabs=e.register(function(e){return e.select(".tabs")},function(n,o){p.extend(o,{init:function(){o.scrollToActive()},initEventListeners:function(){n.hasClass("tabs_links")||n.on("click",".tabs__tab",function(){var e=o.getTabs(),t=p(this);o.selectTab(e.index(t))})},selectTab:function(e){var t;o.getIndex()!==e&&(e=(t=o.getTabs()).eq(e),t.removeClass("tabs__tab_selected"),e.addClass("tabs__tab_selected"),n.trigger("select_tab"),n.offset(),o.scrollToActive())},getIndex:function(){return o.getTabs().filter(".tabs__tab_selected").index()},getTabs:function(){return n.find(".tabs__tab")},scrollToActive:function(){var e=n.get(0),t=n.find(".tabs__tab_selected").get(0);e.scrollWidth>e.clientWidth&&t&&e.scrollTo(t.getBoundingClientRect().left-15,0)}}),o.init(),o.initEventListeners()}),S=(d.Blocks=e.register(function(e){return e.select(".blocks-content")},function(e,i){p.extend(i,{initEventListeners:function(){p(document).on("click","a",function(){var e;u.isDesktopMin()&&this.toString()===window.location.toString()&&this.hash&&-1!==(e=i.getBlockBySlug(this.hash.substr(1)))&&(i.selectBlock(e),i.scrollTo(e))}),p(window).on("hashchange",function(){var e;u.isDesktopMin()&&window.location.hash&&-1!==(e=i.getBlockBySlug(window.location.hash.substr(1)))&&(i.selectBlock(e),i.scrollTo(e))})},initBlocks:function(){i.getBlocks().each(function(){var e=p(this),t=e.index();if(window.location.hash==="#"+e.data("slug"))return C.isReload()||(i.selectBlock(t),i.scrollTo(t)),!1})},getBlocks:function(){return e.find(".blocks-content__item")},getBlock:function(e){return i.getBlocks().eq(e)},selectBlock:function(e){var t=i.getBlock(e).data("slug")||"";t&&(0===e?C.replaceState(null,null,window.location.pathname):C.replaceState(null,null,"#"+t))},scrollTo:function(e){e=i.getBlock(e),C.disableScrollRestoration(),e=e.offset().top;a.scrollTo(e-30)},getBlockBySlug:function(n){let o=-1;return i.getBlocks().each(function(){var e=p(this),t=e.index(),e=e.data("slug")||"";if(n===e)return o=t,!1}),o}}),i.initBlocks(),i.initEventListeners()}),d.ContentTabs=e.register(function(e){return e.select(".content-tabs")},function(t,i){t.hasClass(".content-tabs_decorate")||(p.extend(i,{initEventListeners:function(){t.find(".content-tabs__tabs").on("select_tab",function(){var e=p(this),e=E(e);i.selectTab(e.getIndex())}),p(document).on("click","a",function(){var e;this.toString()===window.location.toString()&&this.hash&&-1!==(e=i.getTabBySlug(this.hash.substr(1)))&&(i.selectTab(e),i.scrollTo())}),p(window).on("hashchange",function(){var e;window.location.hash&&-1!==(e=i.getTabBySlug(window.location.hash.substr(1)))&&(i.selectTab(e),i.scrollTo())})},initTabs:function(){i.getContents().each(function(){var e=p(this),t=e.index();if(window.location.hash==="#"+e.data("slug"))return 0!==t&&i.getTabsInstance().selectTab(t),C.isReload()||i.scrollTo(),!1})},selectTab:function(e){i.getTabsInstance().selectTab(e);var t=i.getContents(),n=t.eq(e),o=n.data("slug")||"";o&&(0===e?C.replaceState(null,null,window.location.pathname):C.replaceState(null,null,"#"+o)),t.removeClass("content-tabs__content_selected"),n.addClass("content-tabs__content_selected")},getTabBySlug:function(n){let o=-1;return i.getContents().each(function(){var e=p(this),t=e.index(),e=e.data("slug")||"";if(n===e)return o=t,!1}),o},scrollTo:function(){C.disableScrollRestoration();var e=t.offset().top;a.scrollTo(e-30)},getTabsInstance:function(){return E(t.find(".content-tabs__tabs"))},getContents:function(){return t.find(".content-tabs__content")}}),i.initEventListeners(),i.initTabs())}),d.SliderBlock=e.register(function(e){return e.select(".slider-block")},function(e){const t=e.find(".tabs"),n=e.find(".slider-block__buttons-container-tab"),o={initEventListeners:function(){t.hasClass("tabs_links")||t.on("click",".tabs__tab",function(){var e=o.getTabs(),t=p(this);o.selectTab(e.index(t))})},selectTab:function(e){o.setActiveNav(e)},getIndex:function(){return o.getTabs().filter(".tabs__tab_selected").index()},getTabs:function(){return t.find(".tabs__tab")},setActiveNav:function(e){n.removeClass("slider-block__buttons-container-tab_selected"),n.filter(`[data-id="${e}"]`).addClass("slider-block__buttons-container-tab_selected")}};o.initEventListeners()}),d.MyProfile=e.register(function(e){return e.select(".my-profile")},function(r,e){p.extend(e,{initDom:function(){e.initPasswordField(),e.initPhotoField()},initPasswordField:function(){var e=p('<div class="my-profile__change-password-box wa-field field"><div class="field__label field__label_empty"></div><div class="field__content"></div></div>');e.find(".field__content").append(p('<span class="my-profile__change-password-button pseudo-link">'+l("СмениÑÑ Ð¿Ð°ÑолÑ")+"</span>")),r.find(".wa-field-password").addClass("my-profile__password-field").before(e)},initPhotoField:function(){var e=r.find(".wa-field-photo"),t=e.find(".wa-value"),n=p('<span class="my-profile-photo-input"><span class="my-profile-photo-input__photo-box"><span class="my-profile-photo-input__delete-button"></span></span><span class="my-profile-photo-input__input-box"></span></span>'),o=p(s.commons.svg.trash),o=(o.addClass("my-profile-photo-input__delete-icon"),n.find(".my-profile-photo-input__delete-button").append(o),n.find(".my-profile-photo-input__photo-box")),i=n.find(".my-profile-photo-input__input-box"),i=(o.append(t.find('img, input[type="hidden"]')),i.append(t.contents()),o.find("img:last")),a=o.find("img:first").not(i),o=o.find("input");i.addClass("my-profile-photo-input__default-photo"),a.addClass("my-profile-photo-input__user-photo"),o.addClass("my-profile-photo-input__user-photo-input"),e.addClass("my-profile__photo-field"),t.append(n),S(n)},initEventListeners:function(){r.find(".my-profile__edit-button").on("click",function(){r.addClass("my-profile_edit"),r.removeClass("my-profile_success"),r.removeClass("my-profile_change-password")}),r.find(".my-profile__cancel-button").on("click",function(){r.removeClass("my-profile_edit")}),r.find(".my-profile__change-password-button").on("click",function(){r.addClass("my-profile_change-password")})}}),e.initDom(),e.initEventListeners()}),d.MyProfilePhotoInput=e.register(function(e){return e.select(".my-profile-photo-input")},function(i,a){p.extend(a,{initEventListeners:function(){var e=a.getPhotoBox(),t=e.find("img:first"),n=e.find("img:last");let o=e.find("input");e=i.find(".my-profile-photo-input__delete-button");i.toggleClass("my-profile-photo-input_empty",t.is(n)),e.on("click",function(){o.val(""),i.addClass("my-profile-photo-input_empty")})},getPhotoBox:function(){return i.find(".my-profile-photo-input__photo-box")}
1}),a.initEventListeners()}));d.AjaxForm=e.register(function(e){return e.select(".ajax-form")},function(r,t){let s=p();p.extend(t,{initEventListeners:function(){r.on("click",function(e){e=p(e.target);e.is(":submit")&&((s=p('<input class="ajax-form__submit-input" type="hidden">')).attr("name",e.attr("name")),s.val(e.val()),r.append(s))}),r.on("submit",function(e){e.preventDefault();e=p.Event("before_submit@novashop:ajax-form");r.trigger(e),e.isDefaultPrevented()||t.submit()})},submit:function(){let o=r.serialize(),n=y.create(r.attr("action")||"").toString(),i=function(){var e=p.ajaxSettings.xhr();let n=e.setRequestHeader;return e.setRequestHeader=function(e,t){"X-Requested-With"==e&&void 0!==r.data("remove-header")||n.call(this,e,t)},e}();var e,t={url:n,method:r.attr("method")||"get",data:o,xhr:function(){return i},complete:function(){r.trigger("complete@novashop:ajax-form",arguments)}},a=r.find('input[type="file"]');return 0<a.length&&(e=r.serializeArray(),o=new FormData,p.each(e,function(){var e=p(this)[0];o.append(e.name,e.value)}),a.each(function(){let n=p(this);var e=n.closest(".add-images-section");0<e.length?(e=e.data("controller").getSerializedArray(),p.each(e,function(e,t){o.append(t.name,t.value)})):0<n[0].files.length&&p(n[0].files).each(function(e,t){o.append(n.attr("name"),t)})}),t.processData=!1,t.contentType=!1,t.data=o),s.remove(),r.addClass("loading"),p.ajax(t).then(function(e){var t=i.responseURL||i.getResponseHeader("X-Request-URL");(t=t&&y.create(t).toString())&&t!==n?window.location=t:r.trigger("success@novashop:ajax-form",arguments),r.removeClass("loading")},function(){r.trigger("error@novashop:ajax-form",arguments),r.removeClass("loading")})}}),t.initEventListeners()});let I=d.Modal=e.register(function(e){return e.select(".modal")},function(e,t){let n=function(){e.find(".modal__close").on("click",function(){b.close()})};p.extend(t,{show:function(){e.addClass("modal_opened")},close:function(){e.removeClass("modal_opened").addClass("modal_closing")}}),n()});d.ModalButtonContent=e.register(function(e){return e.select(".modal-content-button")},function(a){let e={initEventListeners:function(){a.on("click",e.openModal)},openModal:function(e){e.preventDefault();e=a.data("modal-content");if(void 0!==e){var n=a.data("modal-title"),o=a.data("modal-classes"),i=a.data("modal-content-classes");let t=a.data("modal-no-decorate");d.ModalUtil.openContent(e,{title:n||void 0,classes:o||"",contentClasses:i||"",beforeOpen:function(e){void 0===t&&((e=e.find(".modal__content")).addClass("content-decorator"),d.ContentDecorator(e))}})}}};e.initEventListeners()}),d.Slider=e.register(function(e){return e.select(".slider")},function(i){let a={effect:i.data("effect"),autoplay:i.data("autoplay"),autoplay_delay:i.data("autoplay_delay"),autoheight:i.data("autoheight"),image_size:i.data("image_size"),slider_dots:i.find(".slider__dots"),initSwiper:function(){if(!(i.find(".slider__slide").length<=1)){var o=i.find(".slide__background-image.lazy-image");if(0<o.length&&d.MatchMedia("(max-width: 1023px)")){let n=a.image_size;if(d.MatchMedia("(max-width: 425px)")){let e=1;"undefined"!=typeof window&&1<window.devicePixelRatio&&(e=2),n=500*e}o.each(function(){var e=p(this),t=p(e).data("src").replace(/^(.*\/*\.)(.*)(\..*)$/,"$1"+n+"$3");p(e).data("src",t)})}let e=!1,t=(a.autoplay&&(e={delay:1e3*a.autoplay_delay}),!1),n=(a.autoheight&&(t=!0),new Swiper(i.find(".slider__slider").get(0),{loop:!0,effect:a.effect,autoplay:e,parallax:!0,speed:500,autoHeight:t,pagination:{el:".slider__dots",type:"bullets",clickable:!0,bulletClass:"slider__dot",bulletActiveClass:"slider__dot_active",modifierClass:"slider__dots_"},navigation:{prevEl:i.find(".slider__prev-arrow").get(0),nextEl:i.find(".slider__next-arrow").get(0)},on:{autoplayTimeLeft(e,t,n){a.slider_dots.get(0).style.setProperty("--progress",1-n)}}}));p(document).trigger("swiper_lazyload@novashop:global",n),n.on("slideChange",function(){var e=p(n.slides[n.activeIndex]).find(".slide"),t=e.css("color"),e=e.css("backgroundColor");i.css("color",t),i.css("backgroundColor",e),h(i)})}}};a.initSwiper()}),d.RatingSelect=e.register(function(e){return e.select(".rating-select")}
1,function(n,o){p.extend(o,{initStars:function(){let t=o.getValue();t&&n.find(".rating-select__star").each(function(){var e=p(this);+e.data("value")==+t&&o.selectStar(e)})},initEventListeners:function(){n.find(".rating-select__stars").on("mouseenter",function(){n.addClass("rating-select_hover")}),n.find(".rating-select__stars").on("mouseleave",function(){n.removeClass("rating-select_hover")}),n.find(".rating-select__star").on("mouseenter",function(){var e=p(this),t=e.siblings(),n=e.prevAll().add(e);t.removeClass("rating-select__star_hover"),n.addClass("rating-select__star_hover"),o.setHoverValueText(e.data("text"))}),n.find(".rating-select__star").on("click",function(){var e=p(this);o.selectStar(e)})},selectStar:function(e){var t=e.siblings(),n=e.prevAll().add(e);t.removeClass("rating-select__star_active"),n.addClass("rating-select__star_active"),o.setActiveValueText(e.data("text")),o.setValue(e.data("value"))},getValue:function(){return n.find(".rating-select__input").val()},setValue:function(e){return n.find(".rating-select__input").val(e)},setHoverValueText:function(e){n.find(".rating-select__hover-value").text(e)},setActiveValueText:function(e){n.find(".rating-select__active-value").text(e)}}),o.initStars(),o.initEventListeners()}),d.FormField=e.register(function(e){return e.select(".form-field")},function(i,a){let e={name:i.data("field_name"),isRequired:function(){return i.hasClass("wa-required")},workupField:function(){this.isRequired()&&(i.addClass("form-field_required"),h(i))},initGlobalEventListeners:function(){p(document).on("success@novashop:ajax-form",".ajax-form",e.handleAjaxFormSuccess)},destroyGlobalEventListeners:function(){p(document).off("success@novashop:ajax-form",".ajax-form",e.handleAjaxFormSuccess)},handleAjaxFormSuccess:function(e,t){var n=p(this);let o=t;if("object"!=typeof o&&(t=JSON.parse(t)).status&&(o=t),0!==i.closest(n).length)if("fail"!==o.status)a.setError("");else{let e=null;o.errors&&(o.errors.length?(t=o.errors.find(function(e){return!!e[a.getName()]}))&&(e=t[a.getName()]):e=o.errors[a.getName()]),a.setError(e)}}};return p.extend(a,{getName:function(){return e.name},setError:function(e){i.find(".form-field__error-container").remove();var t=p('<div class="form-field__error-container"></div>'),n=i.find(".input-text"),o=i.find(".textarea");n.removeClass("input-text_error"),o.removeClass("textarea_error"),e&&(t.html(e),i.find(".form-field__value").append(t),n.addClass("input-text_error"),o.addClass("textarea_error"))}}),e.initGlobalEventListeners(),e.workupField(),function(){e.destroyGlobalEventListeners()}}),d.Breadcrumbs=e.register(function(e){return e.select(".breadcrumbs")},function(n,e){let i={breadCrumbsData:null,initData:function(){var e=n.find('[name="breadcrumbs_data"]');0<e.length&&(i.breadCrumbsData=JSON.parse(e.val()),e.remove())}};p.extend(e,{initBrothers:function(){null!==i.breadCrumbsData&&n.find(".breadcrumbs__brothers-button").each(function(){var e=p(this).closest(".breadcrumbs__item"),t=e.index();let o=i.breadCrumbsData.breadcrumbs[t];if(o=t===i.breadCrumbsData.breadcrumbs.length?i.breadCrumbsData.current_page_item:o){let n=p('<div class="breadcrumbs__brothers-dropdown"></div>');o.brothers.forEach(function(e){var t=p('<a class="breadcrumbs__brother link"></a>');t.text(e.name),t.attr("href",e.frontend_url),n.append(t)}),e.append(n)}})},initEventListeners:function(){null!==i.breadCrumbsData&&(n.find(".breadcrumbs__brothers-button").on("click",function(){p(this).closest(".breadcrumbs__item").addClass("breadcrumbs__item_show-brothers")}),p(document).on("click",function(t){n.find(".breadcrumbs__item").each(function(){var e=p(this);0===p(t.target).closest(e).length&&e.removeClass("breadcrumbs__item_show-brothers")})}),null!==i.breadCrumbsData)&&i.breadCrumbsData.show_subcategories_on_hover&&!u.isTabletMax()&&n.find(".breadcrumbs__item:has(.breadcrumbs__brothers-dropdown)").each(function(){let e=null,t=p(this);p(this).on("mouseenter",function(){clearTimeout(e),t.addClass("breadcrumbs__item_show-brothers"),t.siblings().removeClass("breadcrumbs__item_show-brothers")}).on("mouseleave",function(){e=setTimeout(function(){t.removeClass("breadcrumbs__item_show-brothers")},500)})})}}),i.initData(),e.initBrothers(),e.initEventListeners()}),d.UpButton=e.register(function(e){return e.select(".up-button")},function(t,e){function n(){var e=p(".header");t.toggleClass("up-button_show",p(window).scrollTop()>e.outerHeight())}let o=null;p.extend(e,{updateState:function(){cancelAnimationFrame(o),o=requestAnimationFrame(n)}}),p(window).on("scroll",function(){e.updateState()}),t.on("click",function(){a.scrollTo(0)}),e.updateState()}),d.CookiePanel=e.register(function(e){return e.select(".cookie-panel")},function(e){e.find(".cookie-panel__close-button").on("click",function(){var e=p(this).closest(".info-panel-container");m(e).close(),p.cookie("cookie_agree",1,{expires:31,path:s.commons.wa_url})})}),d.HeaderBottomBarLinks=e.register(function(e){return e.select(".header-bottom-bar-links")},function(t){let e=function(){t.on("open@novashop:dropdown",".dropdown",function(){var e=p(this);t.find(".dropdown_open").not(e).each(function(){T(p(this)).close()}),e.children(".button").addClass("button_active")}),t.on("close@novashop:dropdown",".dropdown",function(){p(this).children(".button").removeClass("button_active")})};e()}),d.HeaderBottomBarLinks=e.register(function(e){return e.select(".header-bottom-bar-links__swiper")},function(e){new Swiper(e.get(0),{slidesPerView:"auto",slidesPerGroup:2,navigation:{nextEl:e.find(".header-bottom-bar-links__swiper-button-next").get(0),prevEl:e.find(".header-bottom-bar-links__swiper-button-prev").get(0)}})}),d.ListTabs=e.register(function(e){return e.select(".list-tabs")},function(e){let t={tab_open:"list-tabs__item_opened",initEventListeners:function(){e.on("click",".js-list-tabs__toggle",function(e){e.preventDefault();e=p(this).closest(".list-tabs__item");e.hasClass(t.tab_open)?e.removeClass(t.tab_open):e.addClass(t.tab_open)})}};t.initEventListeners()}),d.YaShare2=e.register(function(e){return e.select(".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))}),d.BannerPanel=e.register(function(e){return e.select(".banner-panel")},function(e){let t={banner_hash:e.data("banner_hash"),initEventListeners:function(){e.on("close@novashop:info-panel",function(){p.cookie("banner_hash",t.banner_hash),e.remove()})}};t.initEventListeners()}),d.MailerDecorator=e.register(function(e){return e.select(".mailer-decorator")}
1,function(t){let e={initFields:function(){let n=p('<span class="inline-field"><span class="inline-field__content"></span><span class="inline-field__policy r-hidden-desktop"></span><span class="inline-field__button"></span></span>');t.find('[name="subscriber[email]"]').each(function(){var e=p(this);e.addClass("mailer-decorator__email-input"),e.addClass("input-text").removeClass("wa-fill"),e.closest(".wa-field").replace(n),n.find(".inline-field__content").append(e)}),t.find(".wa-submit").each(function(){var e=p(this).closest(".wa-field"),t=e.clone();e.addClass("mailer-decorator__r-button-container"),n.find(".inline-field__button").append(t)});var e=t.find(".wa-errormsg");e.addClass("mailer-decorator__error"),e.closest(".form__field").addClass("mailer-decorator__error-field"),d.Update(t)}};window.novashop.IntersectionUtil.watch(t.get(0),function(){t.html(t.data("form")),window.novashop.FormDecorator(t.find(".form-decorator")),e.initFields(),t.addClass("mailer-decorator_js-is-init")})}),d.MailerPostDecorator=e.register(function(e){return e.select(".mailer-post-decorator")},function(e){let t=function(){let n=p('<span class="inline-field"><span class="inline-field__content"></span><span class="inline-field__button"></span></span>');e.find('[name="subscriber[email]"]').each(function(){var e=p(this);e.addClass("input-text").removeClass("wa-fill"),e.closest(".wa-field").replace(n),n.find(".inline-field__content").append(e)}),e.find(".wa-submit").each(function(){var e=p(this).closest(".wa-field"),t=e.clone();e.addClass("mailer-post-decorator__r-button-container"),n.find(".inline-field__button").append(t)}),d.Update(e)};t(),e.addClass("mailer-post-decorator_js-is-init")}),d.SocialBlock=e.register(function(e){return e.select(".social-block")},function(e,t){p.extend(t,{initEventListeners:function(){let n=e.find(".social-block__tab"),o=e.find(".social-block__content");n.on("click",function(){var e=p(this),t=o.eq(e.index());n.removeClass("social-block__tab_active"),o.removeClass("social-block__content_active"),e.addClass("social-block__tab_active"),t.addClass("social-block__content_active")})}}),t.initEventListeners()});d.Tooltip=e.register(function(e){return e.select(".tooltip")},function(e){let t=e.data("tooltip-trigger")??"mouseenter focus";var n=e.data("placement")??"bottom",o="click"===t;d.config.commons.is_mobile&&(t="click"),window.tippy(e.get(0),{content:e.data("tooltip"),theme:"light-border",trigger:t,placement:n,allowHTML:!0,interactive:o,onTrigger(e){e=p(e.popper);h(e)}})}),d.Share=e.register(function(e){return e.select(".share")},function(t){const e=function(){t.find(".share__link_copy").on("click",function(){let e=p(this).find(".share__link-text");navigator.clipboard.writeText(location.href).then(function(){e.text(s.language.link_is_copied),setTimeout(()=>{t.find(".share__link_copy .share__link-text").text(s.language.copy_link)},2e3)}).catch(function(){e.text("Fail")})})};e()}),d.Copy=e.register(function(e){return e.select(".copy")},function(e){e.on("click",function(){const t=e.find(".copy__value");navigator.clipboard.writeText(t.text()).then(function(){const e=window.tippy(t.get(0),{content:"ТекÑÑ ÑкопиÑован в бÑÑÐµÑ Ð¾Ð±Ð¼ÐµÐ½Ð°",theme:"light-border",trigger:"focus",placement:"bottom",arrow:!1,hideOnClick:!1});e.show(),setTimeout(()=>{e.hide()},1e3)},function(e){console.error("ÐÑоизоÑла оÑибка пÑи копиÑовании ÑекÑÑа: ",e)})})});let B=d.CatalogAside=e.register(function(e){return e.select(".header-aside-catalog")},function(t,n){let e={initGlobalEventListeners:function(){p(document).on("click",e.handleDocumentClick)},destroyGlobalEventListeners:function(){p(document).off("click",e.handleDocumentClick)},initEventListeners:function(){t.on("click",".header-aside-catalog__close",function(){n.close()})},handleDocumentClick:function(e){0===p(e.target).closest(t).length&&n.close()}};p.extend(n,{isOpen:function(){return t.hasClass("header-aside-catalog_open")},open:function(){t.addClass("header-aside-catalog_open"),v.lockPage(),setTimeout(()=>{e.initGlobalEventListeners()},200)},close:function(){t.removeClass("header-aside-catalog_open"),v.unlockPage(),setTimeout(()=>{e.destroyGlobalEventListeners()},200)}}),e.initEventListeners()});
1d.CatalogAsideButton=e.register(function(e){return e.select(".catalog-aside-button")},function(e){let t=function(){const t=p(".header__aside-catalog").find(".header-aside-catalog");e.on("click",function(){var e=B(t);e.isOpen()?e.close():e.open()})};t()}),d.CatalogDropdownButton=e.register(function(e){return e.select(".catalog-dropdown-button")},function(t){let n={trigger_type:t.data("trigger_type"),is_in_middle_bar:t.hasClass("header-middle-bar-shop-catalog-button"),initGlobalEventListeners:function(){p(document).on("click",n.handleDocumentClick),p(document).on("open@novashop:catalog-dropdown",n.handleOpenDropdown),p(document).on("close@novashop:catalog-dropdown",n.handleCloseDropdown)},destroyGlobalEventListeners:function(){p(document).off("click",n.handleDocumentClick),p(document).off("open@novashop:catalog-dropdown",n.handleOpenDropdown),p(document).off("close@novashop:catalog-dropdown",n.handleCloseDropdown)},initEventListeners:function(){let e=p(".header__dropdown-bar").find(".catalog-dropdown");"click"===n.trigger_type?t.on("click",function(){e.each(function(){var e=M(p(this));e.isOpen()?e.close(!0):(n.toggleDropdownBarOrder(!0),e.open())})}):"hover"===n.trigger_type&&(t.on("mouseenter",function(){e.each(function(){var e=M(p(this));n.toggleDropdownBarOrder(!0),e.open()})}),t.on("mouseleave",function(){e.each(function(){M(p(this)).leave()})}))},handleDocumentClick:function(e){0===p(e.target).closest(t).length&&p(".header__dropdown-bar").find(".catalog-dropdown").each(function(){M(p(this)).close()})},toggleDropdownBarOrder:function(e){n.is_in_middle_bar&&p(".header__dropdown-bar").toggleClass("header__dropdown-bar_upper",e)},handleOpenDropdown:function(){t.addClass("button_active"),v.lockPage()},handleCloseDropdown:function(){t.removeClass("button_active"),v.unlockPage(),n.toggleDropdownBarOrder(!1)}};return n.initEventListeners(),n.initGlobalEventListeners(),function(){n.destroyGlobalEventListeners()}});var M=d.CatalogDropdown=e.register(function(e){return e.select(".catalog-dropdown")},function(t,n){var o={trigger_type:t.data("trigger_type"),leave_timeout_id:null,force_closing:!1,initEventListeners:function(){t.on("click",function(e){e.stopPropagation()}),"click"!==o.trigger_type&&(t.on("mouseenter",function(){n.open()}),t.on("mouseleave",function(){n.leave()})),t.onAnimationEnd(function(){t.removeClass("catalog-dropdown_animated"),o.force_closing=!1})}};p.extend(n,{isOpen:function(){return t.hasClass("catalog-dropdown_open")},open:function(){clearTimeout(o.leave_timeout_id),n.isOpen()||t.hasClass("catalog-dropdown_animated")&&o.force_closing||(t.addClass("catalog-dropdown_open catalog-dropdown_animated"),t.trigger("open@novashop:catalog-dropdown"))},leave:function(){clearTimeout(o.leave_timeout_id),o.leave_timeout_id=setTimeout(function(){n.close()},s.commons.catalog_onleave_timeout)},close:function(e){void 0===e&&(e=!1),clearTimeout(o.leave_timeout_id),n.isOpen()&&(o.force_closing=e,t.removeClass("catalog-dropdown_open"),t.addClass("catalog-dropdown_animated"),t.trigger("close@novashop:catalog-dropdown"))}}),o.initEventListeners()});let O=d.HorizontalCatalog=e.register(function(e){return e.select(".horizontal-catalog")},function(n,o){let e={enter_timeout_id:null,leave_timeout_id:null,initEventListeners:function(){n.on("mouseenter",function(){clearTimeout(e.leave_timeout_id),n.trigger("enter@novashop:horizontal-catalog")}),n.on("mouseleave",function(){o.leave()})}};p.extend(o,{isOpen:function(){return n.hasClass("horizontal-catalog_open")},openCategory:function(e){var t=n.find(".horizontal-catalog__category").filter(function(){return p(this).data("category_id")===e});0!==t.length&&(n.find(".horizontal-catalog__category_active").each(function(){var e=p(this);e.removeClass("horizontal-catalog__category_active"),n.trigger("close_category@novashop:horizontal-catalog",e.data("category_id"))}),t.addClass("horizontal-catalog__category_active"),o.open(),n.trigger("open_category@novashop:horizontal-catalog",e))},open:function(){clearTimeout(e.leave_timeout_id),clearTimeout(e.enter_timeout_id),o.isOpen()||(e.enter_timeout_id=setTimeout(function(){n.addClass("horizontal-catalog_open")},s.commons.catalog_onenter_timeout))},leave:function(){clearTimeout(e.leave_timeout_id),clearTimeout(e.enter_timeout_id),e.leave_timeout_id=setTimeout(function(){o.close()},s.commons.catalog_onleave_timeout)},close:function(){clearTimeout(e.leave_timeout_id),o.isOpen()&&(n.find(".horizontal-catalog__category_active").each(function(){var e=p(this);n.trigger("close_category@novashop:horizontal-catalog",e.data("category_id"))}),n.removeClass("horizontal-catalog_open"),n.offset(),n.addClass("horizontal-catalog_close"),setTimeout(()=>{n.removeClass("horizontal-catalog_close")},200))}}),e.initEventListeners()});
1d.CatalogCategoryButton=e.register(function(e){return e.select(".catalog-category-button")},function(n){let e={showCatalog:function(e){p(".horizontal-catalog").each(function(){O(p(this)).openCategory(e)})},leaveCatalog:function(){p(".horizontal-catalog").each(function(){O(p(this)).leave()})},handleMouseEnter:function(){this.showCatalog(n.data("category_id"))},handleMouseLeave:function(){this.leaveCatalog()},initEventListeners:function(){n.on("mouseenter",this.handleMouseEnter.bind(this)),n.on("mouseleave",this.handleMouseLeave.bind(this))},initGlobalEventListeners:function(){p(document).on("open_category@novashop:horizontal-catalog",".horizontal-catalog",e.handleOpenCategory),p(document).on("close_category@novashop:horizontal-catalog",".horizontal-catalog",e.handleCloseCategory)},destroyGlobalEventListeners:function(){p(document).off("open_category@novashop:horizontal-catalog",".horizontal-catalog",e.handleOpenCategory),p(document).off("close_category@novashop:horizontal-catalog",".horizontal-catalog",e.handleCloseCategory)},handleOpenCategory:function(e,t){t===n.data("category_id")&&n.addClass("button_active")},handleCloseCategory:function(e,t){t===n.data("category_id")&&n.removeClass("button_active")}};return e.initEventListeners(),e.initGlobalEventListeners(),function(){e.destroyGlobalEventListeners()}});let j=d.CatalogExtend=e.register(function(e){return e.select(".catalog-extend")},function(o,i){let n={initEventListeners:function(){o.on("open_category@novashop:catalog-list",".catalog-list",function(e,t){n.openCategory(t)}),o.on("close@novashop:catalog-list",".catalog-list",function(){i.close()}),o.find(".catalog-extend__columns-container").on("mouseenter",function(){let e=p(this).find(".catalog-extend__columns_active").data("category_id");o.find(".catalog-list").each(function(){P(p(this)).openCategory(e)})}),o.onAnimationEnd(".catalog-extend__columns-container",function(){o.removeClass("catalog-extend_animated")})},openCategory:function(e){var t=o.find(".catalog-extend__columns"),n=o.find(".catalog-extend__columns").filter(function(){return p(this).data("category_id")===e});0!==n.length&&(t.removeClass("catalog-extend__columns_active"),i.open(),n.addClass("catalog-extend__columns_active"))}};p.extend(i,{isOpen:function(){return o.hasClass("catalog-extend_open")},open:function(){i.isOpen()||(o.addClass("catalog-extend_open catalog-extend_animated"),o.trigger("open@novashop:catalog-extend"))},close:function(){i.isOpen()&&(o.removeClass("catalog-extend_open"),o.addClass("catalog-extend_animated"),o.trigger("close@novashop:catalog-extend"))}}),n.initEventListeners()}),D=d.CatalogTree=e.register(function(e){return e.select(".catalog-tree")},function(e,t){let n={request_id:null,timeout_id:null,initEventListeners:function(){e.children(".catalog-list").on("open_category@novashop:catalog-list",function(){cancelAnimationFrame(n.request_id),clearTimeout(n.timeout_id),t.open()}),e.children(".catalog-list").on("close@novashop:catalog-list",function(){n.request_id=requestAnimationFrame(function(){t.close()})}),e.children(".catalog-list").on("close_category@novashop:catalog-list",function(){n.timeout_id=setTimeout(function(){t.close()},500)})}};p.extend(t,{isOpen:function(){return e.hasClass("catalog-tree_open")},open:function(){t.isOpen()||(e.addClass("catalog-tree_open"),e.trigger("open@novashop:catalog-tree"))},close:function(){t.isOpen()&&(e.removeClass("catalog-tree_open"),e.trigger("close@novashop:catalog-tree"))}}),e.hasClass("catalog-tree_accordion")||n.initEventListeners()}),P=d.CatalogList=e.register(function(e){return e.select(".catalog-list")},function(o,t){let i={leave_timeout_id:null,initEventListeners:function(){var e=o.children(".catalog-list__item");e.on("mouseenter",function(){var e=p(this);t.openCategory(e.data("category_id"))}),e.on("open_category@novashop:catalog-list",function(e){e.stopPropagation()}),e.on("close_category@novashop:catalog-list",function(e){e.stopPropagation()}),e.on("close@novashop:catalog-list",function(e){e.stopPropagation()}),e.find("> .catalog-list__children-container").cssAnimation("catalog-list__children-container_animated")}};p.extend(t,{openCategory:function(e){clearTimeout(i.leave_timeout_id);var t=o.children(".catalog-list__item").filter(function(){return p(this).data("category_id")===e}),n=o.find("> .catalog-list__item_active").not(t);n.removeClass("catalog-list__item_active"),n.find("> .catalog-list__children-container").runCssAnimation("catalog-list__children-container_
1close-animation"),n.filter(".catalog-list__item_has-children").each(function(){o.trigger("close_category@novashop:catalog-list",p(this).data("category_id"))}),t.hasClass("catalog-list__item_active")||(t.addClass("catalog-list__item_active"),t.find("> .catalog-list__children-container").runCssAnimation("catalog-list__children-container_open-animation"),o.trigger("open_category@novashop:catalog-list",e))},openCategoryHasChildFirst:function(){var e=o.find(".catalog-list__item_has-children");0<e.length&&t.openCategory(e.data("category_id"))},close:function(){clearTimeout(i.leave_timeout_id);var e=o.children(".catalog-list__item").filter(".catalog-list__item_active");e.removeClass("catalog-list__item_active"),e.find("> .catalog-list__children-container").runCssAnimation("catalog-list__children-container_close-animation"),o.trigger("close@novashop:catalog-list")}}),o.hasClass("catalog-list_accordion")||(i.initEventListeners(),t.openCategoryHasChildFirst())});d.SidebarCatalog=e.register(function(e){return e.select(".sidebar-catalog")},function(e,t){let n={initEventListeners:function(){e.on("open@novashop:catalog-extend",".catalog-extend",function(){t.open()}),e.on("close@novashop:catalog-extend",".catalog-extend",function(){t.close()}),e.on("open@novashop:catalog-tree",".catalog-tree",function(){t.open()}),e.on("close@novashop:catalog-tree",".catalog-tree",function(){t.close()}),e.cssAnimation("sidebar-catalog_animated")},isOpen:function(){return e.hasClass("sidebar-catalog_open")}};p.extend(t,{open:function(){n.isOpen()||(e.addClass("sidebar-catalog_open"),e.offset(),e.trigger("open@novashop:sidebar-catalog"))},close:function(){n.isOpen()&&(e.find(".catalog-extend").each(function(){j(p(this)).close()}),e.find(".catalog-tree").each(function(){D(p(this)).close()}),e.removeClass("sidebar-catalog_open"),e.runCssAnimation("sidebar-catalog_close-animation"),e.trigger("close@novashop:sidebar-catalog"))}}),n.initEventListeners()}),d.HeaderBottomBarAltSearch=e.register(function(e){return e.select(".header-bottom-bar-alt-search")},function(t,e){let n={autocomplete:t.data("autocomplete"),initAutocomplete:function(){n.autocomplete&&t.find(".header-bottom-bar-alt-search__input").searchAutocomplete({source:function(e,t){p.ajax({url:s.shop.search_url,data:{query:e.term,json:"1"},dataType:"json"}).then(function(e){e.products.forEach(function(e){e.label=e.name}),t(e.products.slice(0,5))})},select:function(e,t){e.preventDefault(),window.location=t.item.url}})}};p.extend(e,{initEventListeners:function(){t.find(".header-bottom-bar-alt-search__button").on("click",function(e){t.hasClass("header-bottom-bar-alt-search_open")?t.find(".searchpro__field-button").trigger("click"):(e.preventDefault(),t.addClass("header-bottom-bar-alt-search_open"),t.runCssAnimation("header-bottom-bar-alt-search_open-animation"),setTimeout(function(){t.find(".header-bottom-bar-alt-search__input").trigger("focus")},200))}),t.cssAnimation("header-bottom-bar-alt-search_animated"),t.find(".header-bottom-bar-alt-search__close-button").on("click",function(){t.removeClass("header-bottom-bar-alt-search_open"),t.runCssAnimation("header-bottom-bar-alt-search_close-animation")})}}),n.initAutocomplete(),e.initEventListeners()}),d.SearchProField=e.register(function(e){return e.select(".js-searchpro__field")},function(t,e){p.extend(e,{insertData:function(){s.shop.search_query&&t.find("input.searchpro__field-input").val(s.shop.search_query),0<s.shop.path.length&&s.shop.path.forEach(function(e){e=t.find('li.js-searchpro__field-category[data-id="'+e+'"]');if(e.length)return e.trigger("click"),!1})}}),e.insertData()}),d.HeaderMiddleBarShopCart=e.register(function(e){return e.select(".header-middle-bar-shop-cart")},function(t,n){p.extend(n,{initEventListeners:function(){p(document).on("shop_cart_add@novashop:global",function(e,t){"ok"===t.status&&(n.changeCount(t.data.count),n.changeTotal(t.data.total))}),p(document).on("shop_cart_update@novashop:global",function(e,t){n.changeCount(t.data.count),n.changeTotal(t.data.total)}),p(document).on("shop_cart_delete@novashop:global",function(e,t){n.changeCount(t.data.count),n.changeTotal(t.data.total)}),p(document).on("shop_cart_clear@novashop:global",function(){n.changeCount(0),n.changeTotal(0)})},changeCount:function(e){t.find(".cart-counter").text(e),t.toggleClass("header-middle-bar-shop-cart_empty",0===e)},changeTotal:function(e){t.find(".header-middle-bar-shop-cart__total").html(e)}}),n.initEventListeners()}),d.HeaderFloating=e.register(function(e){return e.select(".header-floating")},function(a){let r={height:a.height(),startY:p(".index__header").height(),$catalog:null,catalogType:null,init:function(){var e,t;a.toggleClass("header-floating_visible",window.scrollY>this.startY),r.$catalog=p(".header-aside-catalog").get(0),null!==r.$catalog&&(r.catalogType="aside"),void 0===r.$catalog&&(r.$catalog=p(".catalog-extend_fixed-width").get(0),r.catalogType="extend"),void 0===r.$catalog&&(r.$catalog=p(".catalog-flat").get(0),r.catalogType="flat"),"extend"!==r.catalogType&&"flat"!==r.catalogType||((e=p(r.$catalog).clone()).css("max-height","calc(90vh - "+this.height+"px)"),(t=a.find(".header-floating__dropdown .catalog-dropdown")).append(e),h(t.children()))},initGlobalEventsListeners:function(){let e=this,t=!1;p(window).on("scroll",function(){t||(t=!0,requestAnimationFrame(function(){t=!1,a.toggleClass("header-floating_visible",window.scrollY>e.startY)}))})},closeDropdownHandler:function(e){let t=a.find(".header-floating__dropdown-btn");a.hasClass("header-floating_visible")&&0===p(e.target).closest(t).length&&a.find(".catalog-dropdown").each(function(){var e=M(p(this));r.unlockPage(),e.close(),t.find(".burger-icon").removeClass("burger-icon_active"),t.removeClass("header-floating__dropdown-btn_open")})},initEventListeners:function(){let t=a.find(".header-floating__dropdown-btn"),e=a.find(".catalog-dropdown"),n=p(".header__aside-catalog").find(".header-aside-catalog");var o=a.find(".header-dropdown-bar"),i=t.data("trigger_type");"aside"===r.catalogType?t.on("click",function(){var e=B(n);e.isOpen()?(r.lockDropdownBar(!1),e.close()):(r.lockDropdownBar(!0),e.o
1pen())}):"click"===i?t.on("click",function(){e.each(function(){var e=M(p(this));e.isOpen()?(e.close(!0),r.unlockPage(),t.find(".burger-icon").removeClass("burger-icon_active")):(r.lockPage(),e.open(),t.find(".burger-icon").addClass("burger-icon_active")),t.toggleClass("header-floating__dropdown-btn_open")})}):"hover"===i&&(t.on("mouseenter",function(){e.each(function(){var e=M(p(this));r.lockPage(),e.open(),t.find(".burger-icon").addClass("burger-icon_active"),t.addClass("header-floating__dropdown-btn_open")})}),"extend"===r.catalogType||"hover"===i&&"flat"===r.catalogType)&&o.on("mouseleave",function(){e.each(function(){M(p(this)).leave(),r.unlockPage(),t.removeClass("header-floating__dropdown-btn_open"),t.find(".burger-icon").removeClass("burger-icon_active")})})},lockPage:function(){r.lockDropdownBar(!0),"extend"!==r.catalogType&&"flat"!==r.catalogType||(v.lockPage(),p(document).on("click",this.closeDropdownHandler))},unlockPage:function(){"extend"!==r.catalogType&&"flat"!==r.catalogType||(p(document).off("click",this.closeDropdownHandler),v.unlockPage()),r.lockDropdownBar(!1)},lockDropdownBar:function(e){let t=0;var n=a.find(".header-dropdown-bar");e&&(t=window.innerWidth-document.documentElement.clientWidth),n.css("paddingRight",t)}};u.isDesktopMin()&&(r.init(),r.initGlobalEventsListeners(),r.initEventListeners())}),d.InputSearch=e.register(function(e){return e.select(".input-search")},function(e){let t={autocomplete:e.data("autocomplete"),initAutocomplete:function(){t.autocomplete&&e.find(".
1input-search__input").searchAutocomplete({source:function(e,t){p.ajax({url:s.shop.search_url,data:{query:e.term,json:"1"},dataType:"json"}).then(function(e){e.products.forEach(function(e){e.label=e.name}),t(e.products.slice(0,5))})},select:function(e,t){e.preventDefault(),window.location=t.item.url},classes:{"ui-autocomplete":"autocomplete autocomplete_search"},appendTo:p(".header, .r-search-form")})}};t.initAutocomplete()}),d.CartPopup=e.register(function(e){return e.select(".cart-popup")},function(t,e){let n=function(){t.find(".cart-popup__items-container")},o=function(){t.on("delete",".cart-popup-item",function(){e.refresh()}),t.find(".cart-popup__clear-button").on("click",function(){f.clear().then(function(){t.trigger("close")})})};p.extend(e,{refresh:function(){p.ajax({url:s.shop.cart_url+"?popup=1"}).then(function(e){e=p(e),e=e.find(".cart-popup").add(e.filter(".cart-popup"));t.replaceWith(e),h(e.parent())})}}),n(),o()}),d.CartPopupItem=e.register(function(e){return e.select(".cart-popup-item")},function(e){let t={item_id:e.data("item_id"),initEventListeners:function(){e.find(".cart-popup-item__delete-button").on("click",function(){f.deleteItem(t.item_id).then(function(){e.trigger("delete")})})}};t.initEventListeners()}),d.CartPopupContainer=e.register(function(e){return e.select(".cart-popup-container")},function(n,o){let i={loaded:!1,isOpen:function(){return n.hasClass("cart-popup-container_open")},initEventListeners:function(){let e=null,t=null;n.on("mouseenter",function(){clearTimeout(e),clearTimeout(t),i.loaded||(t=setTimeout(function(){o.load().then(function(){clearTimeout(e),clearTimeout(t),o.open()})},s.commons.cart_onenter_timeout))}),n.on("mouseleave",function(){clearTimeout(e),clearTimeout(t),e=setTimeout(function(){o.close()},s.commons.cart_onleave_timeout)}),n.on("close",".cart-popup",function(){o.close()}),p(document).on("click",i.handleDocumentClick)},handleDocumentClick:function(e){0===p(e.target).closest(n).length&&o.close()}};p.extend(o,{destruct:function(){p(document).off("click",i.handleDocumentClick)},load:function(){i.loaded=!0;var e=p.ajax({url:s.shop.cart_url+"?popup=1"});return e.then(function(e){e=p(e).select(".cart-popup");n.find(".cart-popup-container__popup").html(e),h(n)}),e},open:function(){n.removeClass("cart-popup-container_close"),n.offset(),n.addClass("cart-popup-container_open")},close:function(){i.loaded=!1,n.removeClass("cart-popup-container_open"),n.offset(),n.addClass("cart-popup-container_close")}}),i.initEventListeners()}),d.BrandAlphabet=e.register(function(e){return e.select(".brand-alphabet")},function(n,e){let o={initEventListeners:function(){let t=o.getLettersButtons();t.on("mouseenter",function(){var e=p(this);t.removeClass("brand-alphabet-list__item_active"),e.addClass("brand-alphabet-list__item_active"),n.addClass("brand-alphabet_opened"),n.trigger("open@novashop:brand-alphabet")}),t.on("mouseleave",function(){e.close(),n.trigger("close@novashop:brand-alphabet")})},getLettersButtons:function(){return n.find(".brand-alphabet-list__item_letter")}};p.extend(e,{close:function(){var e=o.getLettersButtons();n.removeClass("brand-alphabet_opened"),e.removeClass("brand-alphabet-list__item_active")}}),o.initEventListeners()});let F=d.BrandsDropdown=e.register(function(e){return e.select(".brands-dropdown")},function(e,t){let n={enter_timeout_id:null,leave_timeout_id:null,initEventListeners:function(){e.on("mouseenter",function(){clearTimeout(n.leave_timeout_id)}),e.on("mouseleave",function(){t.leave()}),e.onAnimationEnd(function(){e.removeClass("brands-dropdown_animated")})}};p.extend(t,{isOpen:function(){return e.hasClass("brands-dropdown_open")},open:function(){clearTimeout(n.leave_timeout_id),clearTimeout(n.enter_timeout_id),t.isOpen()||(n.enter_timeout_id=setTimeout(function(){e.addClass("brands-dropdown_open brands-dropdown_animated"),e.trigger("open@novashop:brands-dropdown")},s.commons.catalog_onenter_timeout))},leave:function(){clearTimeout(n.leave_timeout_id),clearTimeout(n.enter_timeout_id),n.leave_timeout_id=setTimeout(function(){t.close()},s.commons.catalog_onleave_timeout)},close:function(){clearTimeout(n.leave_timeout_id),t.isOpen()&&(e.removeClass("brands-dropdown_open"),e.addClass("brands-dropdown_animated"),e.trigger("close@novashop:brands-dropdown"))}}),n.initEventListeners()});d.BrandsDropdownButton=e.register(function(e){return e.select(".brands-dropdown-button")},function(e){let t=function(){e.on("mouseenter",function(){p(".brands-dropdown").each(function(){F(p(this)).open()})}),e.on("mouseleave",function(){p(".brands-dropdown").each(function(){F(p(this)).leave()})})};t()});d.HideLinksMenu=e.register(function(e){return e.select(".hide-links-menu")},function(c){let d=[],o=null,t=c.find(".hide-links-menu__more"),n=c.data("more-id"),u=p('.hide-links-menu-more-list[data-more-id="'+n+'"]'),f={isInited:!1,hiddenLinksIndexes:[],initEventListeners:function(){p(window).on("resize",f.toggleItems),c.on("mouseenter",f.addHiddenItems),p(document).on("ajax_success@novashop:hidden_links_block",function(e,t){t=p(t).find('.hide-links-menu-more-list[data-more-id="'+n+'"]');0<t.length&&(o=t),c.off("mouseenter",f.addHiddenItems)})},init:function(){0<u.length&&(c.find(".hide-links-menu__item").each(function(){var e=p(this),t=e.position().left+e.width(),n=e.find(".hide-links-menu__link");d.push({$item:e,pos:t,$itemHtml:e.clone(),linkAttrs:{content:n.html(),href:n.attr("href"),target:n.attr("target")}})}),f.isInited=!0,0<d.length)&&(f.toggleItems(),f.initEventListeners())},getHiddenBlockItems:function(){let t=p.Deferred();if(null===o){if(f.xhr)return t.reject(),t;f.xhr=p.ajax({url:"/search/?get_ajax_blocks=hidden_links_block",method:"GET",success:function(e){p(document).trigger("ajax_success@novashop:hidden_links_block",e),t.resolve()},error:function(){g.showMessage("Error"),t.reject()},finally:function(){f.xhr=null}})}else t.resolve();return t},addHiddenItems:function(){0<f.hiddenLinksIndexes.length&&f.getHiddenBlockItems().then(function(){if(null!==o){let t=
1o.children(),n=p("<div></div>");f.hiddenLinksIndexes.forEach(function(e){e=p(t[e]).clone();e.addClass("hide-links-menu__more-item"),n.append(e)}),u.prepend(n.html()),n.remove()}})},toggleItems:function(){if(f.isInited){c.removeClass("hide-links-menu_inited");let i=c.outerWidth(),a=t.outerWidth(),r=t.closest(".hide-links-menu__more-container"),s=void(u=p('.hide-links-menu-more-list[data-more-id="'+n+'"]')),l=!1;u.find(".hide-links-menu__more-item").remove();var e=0<u.children().length;f.hiddenLinksIndexes=[],d.forEach(function(e,t){var n,o;s=e.pos,!l&&s>i||l?(l||(l=!0,n=t-1,o=d[n],s-e.pos+a>i&&(o.$item.remove(),f.hiddenLinksIndexes.push(n))),e.$item.remove(),f.hiddenLinksIndexes.push(t)):c.find(".hide-links-menu__item")[t]||r.before(e.$itemHtml)}),null!==o&&f.addHiddenItems(),r.toggleClass("hide-links-menu__more-container_hide",0===f.hiddenLinksIndexes.length&&!e),c.addClass("hide-links-menu_inited"),h(c),h(u)}}};f.init()}),d.HeaderTopBarLinks=e.register(function(e){return e.select(".header-top-bar-links")},function(e){let t={container:null,headerContacts:null,headerTopBarContainer:null,linksList:[],moreBtn:null,lastItem:null,lastItemKey:null,lastHiddenItem:null,lastHiddenItemKey:null,dropdownItems:[],countHiddenItems:null,init:function(){t.container=t.getContainer(),t.linksList=t.getLinksList(),t.headerContacts=p(document).find(".header-top-bar__container-contacts"),t.headerTopBarContainer=p(document).find(".header-top-bar__container"),t.moreBtn=p(t.linksList[t.linksList.length-1]),t.dropdownItems=t.moreBtn.find(".dropdown-links"),t.lastItem=t.linksList[t.linksList.length-2],t.lastItemKey=t.countHiddenItems=p(t.lastItem).data().key,t.compareContainer(),t.initEventListeners()},initEventListeners:function(){p(window).on("resize",t.compareContainer)},getContainer:function(){return e.parent()},getLinksList:function(){return e.find(".header-top-bar-links__item")},compareContainer:function(){0<e.width()&&t.headerTopBarContainer.get(0).scrollWidth>t.headerTopBarContainer.width()?t.hideItems():t.showItems()},hideItems:function(){p(t.lastItem).hide(),t.dropdownItems.find(`.dropdown-links__item[data-key=${t.lastItemKey}]`).show(),t.changeLastItem(),t.compareContainer()},showItems:function(){p(t.lastHiddenItem).show(),t.lastItemKey<=t.countHiddenItems&&t.headerTopBarContainer.get(0).scrollWidth<=t.headerTopBarContainer.width()?(t.changeLastItem(!0),t.dropdownItems.find(`.dropdown-links__item[data-key=${t.lastHiddenItemKey}]`).hide(),t.showItems(),t.lastItemKey>t.countHiddenItems&&(t.lastItemKey=t.countHiddenItems,t.dropdownItems.find(".dropdown-links__item").length-1===t.countHiddenItems)&&t.moreBtn.hide()):p(t.lastHiddenItem).hide()},changeLastItem:function(e=!1){0<=t.lastItemKey&&t.lastItemKey<=t.countHiddenItems&&(e?t.increaseLastItemKey():t.decreaseLastItemKey())},increaseLastItemKey:function(){t.lastItemKey++,t.lastItemKey>t.countHiddenItems?t.lastHiddenItem=t.lastHiddenItemKey=null:(t.lastItem=e.find(`.header-top-bar-links__item[data-key=${t.lastItemKey}]`),t.setLastHiddenItem())},decreaseLastItemKey:function(){t.lastItemKey===t.countHiddenItems&&t.moreBtn.show(),t.setLastHiddenItem(),t.lastItemKey--,t.lastItem=e.find(`.header-top-bar-links__item[data-key=${t.lastItemKey}]`)},setLastHiddenItem:function(){t.lastHiddenItem=t.lastItem,t.lastHiddenItemKey=t.lastItemKey}};t.init()}),d.CitySelectDecorator=function(){if("undefined"!=typeof shop_cityselect){let t=function(){void 0!==window.shop_cityselect&&b.openAjax(window.shop_cityselect.url+"shop_cityselect/change_city",function(e){return e.select("#cityselect__change")},{classes:"cityselect-modal",beforeOpen:function(e){var t=e.find("#cityselect__change");0<t.length&&(t.addClass("content-decorator"),d.ContentDecorator(t)),e.find(".i-cityselect__set_city ").on("cityselect__set_city",function(e,t){b.close()})},onOpen:function(){window.shop_cityselect.initChangeInput()}})};function e(){var e,t=p(".b-cityselect__notifier");0<t.length&&(e=p(".r-header"),t.appendTo(e))}function n(e){return e.preventDefault(),e.stopImmediatePropagation(),t(),!1}return p(".i-cityselect__city_change").on("click",n),p(".js-dp-city-select").on("click",n),d.ResponsiveUtil.isTabletMax()&&e(),{openPopup:t,decorateNotifierOnMobile:e}}}(),d.ResponsiveHeaderMenuAdapter=e.register(function(e){return e.select(".js-r-header-menu")},function(t,n){let o=t.find(".js-r-header-menu__dropdown"),i="r-header-menu__dropdown_open",e=t.find(".js-r-header-menu__tiggle"),a=t.find(".js-r-header-menu__dropdown-close");p.extend(n,{initEventListeners:function(){e.on("click",function(e){e.preventDefault();e=t.hasClass("js-r-header-menu_catalog");o.hasClass(i)?n.close():(e&&t.find(".js-r-header-catalog__toggle").trigger("click"),n.open())}),a.on("click",function(){t.find(".js-r-subdropdown__header-close").trigger("click"),n.close()}),p(document).on("click",function(e){d.MatchMedia("only screen and (max-width: 1023px)")&&0<p(e.target).closest(".header-overlay").length&&n.close()})},open:function(){this.isOpen()||(t.trigger("open@novashop:r-header-menu"),o.show(),window.setTimeout(function(){o.addClass(i)},50),v.lockPage())},close:function(){this.isOpen()&&(t.trigger("close@novashop:r-header-menu"),o.removeClass(i),window.setTimeout(function(){o.hide()},50),v.unlockPage())},isOpen:function(){return o.hasClass(i)}}),n.initEventListeners()}),d.ResponsiveHeaderSearchAdapter=e.register(function(e){return e.select(".js-r-header__list-item-link_search-toggle")}
1,function(n,t){let o=n.closest(".js-r-header"),i="r-search-form_open";p.extend(t,{initEventListeners:function(){n.on("click",function(e){e.preventDefault(),t.open()}),o.on("click",".js-r-search-form__close",function(){t.close()}),o.on("click",".r-search-form__button",function(){o.find(".searchpro__field-button").trigger("click")})},getSearchForm:function(){var e=p.Deferred();let t=o.find(".js-r-search-form");return 0===t.length&&(t=p(n.data("search-form-tpl")),o.append(t),n.removeAttr("data-search-form-tpl"),h(t)),e.resolve(t)},open:function(){t.getSearchForm().then(function(e){e.addClass(i),n.trigger("opened@novashop:js-r-header__list-item-link_search-toggle")})},close:function(){t.getSearchForm().then(function(e){e.removeClass(i),n.trigger("closed@novashop:js-r-header__list-item-link_search-toggle")})}}),t.initEventListeners()}),d.ResponsiveHeaderContacts=e.register(function(e){return e.select(".r-header-contacts")},function(e,t){let n=e.closest(".r-header"),o=n.find(".r-header-contacts-btn"),i="r-header-contacts_open",a="r-header_over",r="r-header-contacts-btn_active",s={initEventListeners:function(){o.on("click",function(){s.toggle()}),n.on("open@novashop:r-header-menu",".js-r-header-menu",s.close)},toggle:function(){s.isOpen()?s.close():s.open()},open:function(){s.isOpen()||(e.trigger("open@novashop:r-header-contacts"),e.show(),n.addClass(a),o.addClass(r),window.setTimeout(function(){e.addClass(i)},50),v.lockPage())},close:function(){s.isOpen()&&(e.trigger("close@novashop:r-header-contacts"),e.removeClass(i),window.setTimeout(function(){e.hide(),o.removeClass(r),n.removeClass(a)},50),v.unlockPage())},isOpen:function(){return e.hasClass(i)}};s.initEventListeners()}),d.ResponsiveHeaderCatalogAdapter=e.register(function(e){return e.select(".js-r-header-catalog__toggle")},function(e,c){let t=e.closest(".js-r-header-menu__dropdown"),n="r-subdropdown_open",d=0;p.extend(c,{categories:{0:{name:"ÐаÑалог ÑоваÑов"}},initEventListeners:function(){e.on("click",function(e){e.preventDefault(),c.open()}),p(document).on("click",".js-r-subdropdown__header-close",function(){c.close()}),p(document).on("click",".js-r-header-menu__catalog .list-rows__item",function(e){var t=p(this),n=t.attr("href"),o=t.find(".list-rows__item-name").text(),i=t.parent(),a=c.getParentItem(),r=(void 0===this.novashop_dropdown&&(r=t.closest(".list-rows").data("dropdown"),r=p(r),this.novashop_dropdown=r,t.after(r),window.novashop.Update(r)),t.next("ul")),s=r.data("category-id"),l=t.closest("ul").data("category-id");0<r.length&&(e.preventDefault(),c.setCategoryObject(s,l,o),d=s,c.toggleBackBtn(),t.addClass("list-rows__item_opened"),i.siblings().not(a).hide(),c.getSubdropdown().addClass("r-subdropdown_category"),c.getSubdropdownTitle().text(o),a.find(".list-rows__item").attr("href",n))}),p(document).on("click",".js-r-subdropdown__header-back",function(){var e,t,n;return 0!==d?(t=(e=c.getSubdropdown().find(".list-rows__item[data-category_id="+d+"]")).parent(),n=c.getParentItem(),0===(d=c.categories[d].parent)&&(c.getSubdropdown().removeClass("r-subdropdown_category"),c.toggleBackBtn()),e.removeClass("list-rows__item_opened"),e.next("ul").remove(),delete e.get(0).novashop_dropdown,t.siblings().not(n).show(),c.getSubdropdownTitle().text(c.categories[d].name)):c.close(),!1}),p(".js-r-header-menu").on("close@novashop:r-header-menu",c.close)},setCategoryObject:function(e,t,n){void 0===c.categories[e]&&(c.categories[e]={current:e,parent:t,name:n})},getSubdropdown:function(){return t.find(".js-r-header-menu__catalog")},getSubdropdownTitle:function(){return c.getSubdropdown().find(".r-subdropdown__header-title")},getParentItem:function(){return c.getSubdropdown().find(".r-header-menu__dropdown-list_parent")},catalogIsMain:function(){return c.getSubdropdown().hasClass("r-subdropdown_catalog")},toggleBackBtn:function(e){c.catalogIsMain()&&(0!==d||e?c.getSubdropdown().find(".r-subdropdown__header-back").removeClass("r-subdropdown__header-back_hide"):c.getSubdropdown().find(".r-subdropdown__header-back").addClass("r-subdropdown__header-back_hide"))},open:function(){e.trigger("opened@novashop:js-r-header-menu__catalog"),c.getSubdropdown().addClass(n),i.setColor("#ffffff")},close:function(){e.trigger("closed@novashop:js-r-header-menu__catalog"),c.getSubdropdown().removeClass(n),i.resetColor()}}),c.initEventListeners()}),d.ResponsiveHeaderBrandsAdapter=e.register(function(e){return e.select(".js-r-header-brands__toggle")}
1,function(e,t){let n=e.closest(".js-r-header-menu__dropdown"),o="r-subdropdown_open";p.extend(t,{initEventListeners:function(){e.on("click",function(e){e.preventDefault(),t.open()}),p(document).on("click",".js-r-subdropdown__header-close",function(){t.close()}),p(document).on("click",".js-r-subdropdown__header-back",function(){return t.close(),!1})},getSubdropdown:function(){return n.find(".js-r-header-menu__brands")},open:function(){t.getSubdropdown().addClass(o),i.setColor("#ffffff")},close:function(){t.getSubdropdown().removeClass(o),i.resetColor()}}),t.initEventListeners()}),d.ResponsiveHeaderLinksAdapter=e.register(function(e){return e.select(".js-r-header-links__toggle")},function(e){let t={dataId:e.data("id"),$dropdown:e.closest(".js-r-header-menu__dropdown"),open_class:"r-subdropdown_open",initEventListeners:function(){e.on("click",function(e){e.preventDefault(),t.open()}),p(document).on("click",".js-r-subdropdown__header-close",function(){t.close()}),p(document).on("click",".js-r-subdropdown__header-back",function(){return t.close(),!1})},getSubdropdown:function(){return t.$dropdown.find(`.js-r-header-menu__links[data-id="${t.dataId}"]`)},open:function(){t.getSubdropdown().addClass(t.open_class),i.setColor("#ffffff")},close:function(){t.getSubdropdown().removeClass(t.open_class),i.resetColor()}};t.initEventListeners()}),d.FixedBar=e.register(function(e){return e.select(".fixed-bar")},function(s){let l=p(".r-header"),c={initCatalogBtn:function(){let i=s.find(".fixed-bar__item_catalog");var a=l.find(".js-r-header-menu");if(0<i.length&&0<a.length){let e=a.find(".js-r-header-menu__tiggle");var r=a.find(".js-r-header-catalog__toggle");let t=a.find(".js-r-header-menu__dropdown-close"),n=a.hasClass("js-r-header-menu_catalog"),o=d.ResponsiveHeaderCatalogAdapter(r);i.on("click",function(){i.hasClass("fixed-bar__item_active")?t.trigger("click"):(n||c.decorateResponsiveMenu(!0),e.trigger("click"),o.toggleBackBtn())}),r.on("opened@novashop:js-r-header-menu__catalog",function(){i.addClass("fixed-bar__item_active")}),r.on("closed@novashop:js-r-header-menu__catalog",function(){window.setTimeout(function(){n||(o.toggleBackBtn(!0),c.decorateResponsiveMenu(!1)),i.removeClass("fixed-bar__item_active")},50)})}},decorateResponsiveMenu:function(e){var t=l.find(".js-r-header-menu");t.toggleClass("js-r-header-menu_catalog",e),t.find(".r-header-menu__dropdown").toggleClass("r-header-menu__dropdown_catalog",e),t.find(".r-subdropdown").toggleClass("r-subdropdown_catalog",e)},initSearchBtn:function(){var n=l.find(".js-r-header__list-item-link_search-toggle");if(0<n.length){let t=s.find(".fixed-bar__item_search");var o=n;let e=d.ResponsiveHeaderSearchAdapter(n);t.on("click",function(){p(this).hasClass("fixed-bar__item_active")?e.close():e.open()}),o.on("opened@novashop:js-r-header__list-item-link_search-toggle closed@novashop:js-r-header__list-item-link_search-toggle",function(e){e.type="opened@js-r-header__list-item-link_search-toggle";t.toggleClass("fixed-bar__item_active","opened@js-r-header__list-item-link_search-toggle")})}},initBtns:function(){c.initCatalogBtn(),c.initSearchBtn()}};c.initBtns()}),d.ResponsiveSelectLinksAdapter=e.register(function(e){return e.select("select.js-r-select-links")},function(e,t){p.extend(t,{initEventListeners:function(){e.on("change",function(e){e.preventDefault();e=p(this).val();e&&(window.location.href=e)})}}),t.initEventListeners()}),d.ResponsiveTabs=e.register(function(e){return e.select(".responsive-tabs")},function(i,n){let o={initTabs:function(){i.find(".responsive-tabs__tab-container").each(function(){var e=p(this),t=e.index();if(window.location.hash==="#"+e.data("slug"))return 0!==t&&n.openTab(t),C.isReload()||o.scrollTo(t),!1})},initEventListeners:function(){i.find(".responsive-tabs__tab-header-container").on("click",function(){var e=p(this).closest(".responsive-tabs__tab-container");n.toggleTab(e.index()),o.scrollTo(e.index())})},initGlobalEventListeners:function(){p(document).on("click","a",function(){var e;u.isTabletMax()&&this.toString()===window.location.toString()&&this.hash&&-1!==(e=o.getTabBySlug(this.hash.substr(1)))&&(n.openTab(e),o.scrollTo(e))}),p(window).on("hashchange",function(){var e;u.isTabletMax()&&window.location.hash&&-1!==(e=o.getTabBySlug(window.location.hash.substr(1)))&&(n.openTab(e),o.scrollTo(e))})},getTabBySlug:function(n){var e=i.find(".responsive-tabs__tab-container");let o=-1;return e.each(function(){var e=p(this),t=e.index(),e=e.data("slug")||"";if(n===e)return o=t,!1}),o},scrollTo:function(e){e=i.find(".responsive-tabs__tab-container").eq(e);a.scrollTo(e.offset().top)}};p.extend(n,{isOpen:function(e){return i.find(".responsive-tabs__tab-container").eq(e).hasClass("responsive-tabs__tab-container_selected")},toggleTab:function(e){n.isOpen(e)?n.closeTab(e):n.openTab(e)},openTab:function(e){var t=i.find(".responsive-tabs__tab-container"),n=t.eq(e),t=(t.filter(".responsive-tabs__tab-container_selected").not(n).removeClass("responsive-tabs__tab-container_selected"),n.addClass("responsive-tabs__tab-container_selected"),n.get(0).offsetTop,n.data("slug")||"");t&&(0===e?C.replaceState(null,null,window.location.pathname):C.replaceState(null,null,"#"+t))},closeTab:function(e){return i.find(".responsive-tabs__tab-container").eq(e).removeClass("responsive-tabs__tab-container_selected")}}),o.initTabs(),o.initEventListeners(),o.initGlobalEventListeners()}),d.ResponsiveSocialButton=e.register(function(e){return e.select(".responsive-social-button")},function(e){let n={modal:e.data("modal"),title:e.data("title"),initEventListeners:function(){e.on("click",function(){if(void 0===window.Ya||void 0!==window.Ya&&void 0===window.Ya.share2){let e=p.getScript("https://yastatic.net/es5-shim
1s/0.0.2/es5-shims.min.js"),t=p.getScript("https://yastatic.net/share2/share.js");"yastatic"!==s.commons.ya_share_source&&(e=p.getScript("https://cdn.jsdelivr.net/npm/yandex-share2/share.js"),t=!0),p.when(e,t,p.Deferred(function(e){p(e.resolve)})).done(function(){n.open()})}else n.open()})},open:function(){var e=navigator.userAgent.toLowerCase();/mobile|iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(e)?navigator.share({url:location.href,title:n.title??""}).catch(function(){console.error("ÐеизвеÑÑÐ½Ð°Ñ Ð¾Ñибка, невозможно поделиÑÑÑÑ")}):n.openModal()},openModal:function(){b.openContent(n.modal,{isContentNoHidden:!0})}};n.initEventListeners()}),d.ResponsiveRegionButton=e.register(function(e){return e.select(".r-region-button")},function(e){let t=function(){e.on("click",function(){p(".r-regions-decorator .shop-regions__trigger-show-window:first").trigger("click")})};t()}),p("[data-scroll-to]").on("click",function(e){e.preventDefault();e=p(this).attr("data-scroll-to");let t=p('[data-scroll-target="'+e+'"]');(t=0===t.length?p(e):t).length&&a.scrollToBlock(t)}),p.widget("ui.autocomplete",p.ui.autocomplete,{_create:function(){p(this.element).data("novashop_autocomplete",this),this._superApply(arguments)},_appendTo:function(){let e=this._superApply(arguments);return e=e||p(".page")},classes:{"ui-autocomplete":"autocomplete"},_resizeMenu:function(){this.menu.element.outerWidth(this.element.outerWidth())}}),p.datepicker.dpDiv.addClass("datepicker"),p.datepicker.setDefaults({closeText:"ÐакÑÑÑÑ",prevText:"<ÐÑед",nextText:"След>",currentText:"СегоднÑ",monthNames:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"],monthNamesShort:["Янв","Фев","ÐаÑ","ÐпÑ","Ðай","ÐÑн","ÐÑл","Ðвг","Сен","ÐкÑ","ÐоÑ","Ðек"],dayNames:["воÑкÑеÑенÑе","понеделÑник","вÑоÑник","ÑÑеда","ÑеÑвеÑг","пÑÑниÑа","ÑÑббоÑа"],dayNamesShort:["вÑк","пнд","вÑÑ","ÑÑд","ÑÑв","пÑн","ÑбÑ"],dayNamesMin:["ÐÑ","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],weekHeader:"Ðед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""});let z=p.datepicker.__proto__._updateDatepicker;p.datepicker.__proto__._updateDatepicker=function(){z.apply(this,arguments);var e=p(s.commons.svg.arrow_left),t=(e.addClass("datepicker__arrow-icon"),p(s.commons.svg.arrow_right));t.addClass("datepicker__arrow-icon"),p.datepicker.dpDiv.find(".ui-datepicker-prev").addClass("image-box image-box_fill").html(e),p.datepicker.dpDiv.find(".ui-datepicker-next").addClass("image-box image-box_fill").html(t)},p.extend(p.ui.autocomplete.prototype.options,{position:{my:"left top+5",at:"left bottom",collision:"none"},open:function(){var e=p(this).data("novashop_autocomplete");e.menu.activeMenu.removeClass("autocomplete_close"),e.menu.activeMenu.offset(),e.menu.activeMenu.addClass("autocomplete_open")},close:function(){var e=p(this).data("novashop_autocomplete");e.menu.activeMenu.removeClass("autocomplete_open"),e.menu.activeMenu.offset(),e.menu.activeMenu.addClass("autocomplete_close")}}),p.extend(p.ui.autocomplete.prototype.options.classes,{"ui-autocomplete":"autocomplete"}),p.widget("custom.searchAutocomplete",p.ui.autocomplete,{_renderItem:function(e,t){var n=p('<div class="input-search-item__image-container"></div>'),o=(n.append(t.image),p('<div class="input-search-item__name-container"></div>')),i=(o.append(t.name),p('<div class="input-search-item__price-container"></div>')),t=(i.append(t.price),p('<div class="input-search-item__info-container"></div>')),o=(t.append(o),t.append(i),p('<div class="input-search-item"></div>'));return o.append(n),o.append(t),p("<li>").append(o).appendTo(e)}}),void 0===window.shopRegions||window.shopRegions.current_region_id||p(".r-region-button .list-rows__item-name, .shop-regions__link").text(d.config.language.choose),p(function(){d.requestNextFrame(d.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.