(self.webpackChunkHoroshop=self.webpackChunkHoroshop||[]).push([[817],{2325:function(){!function(t,e){t.currency={ceil_to:function(t,e){var n=t,i=0;return e>0&&(n*=i=10*e),n=Math.ceil(n),0!==i&&(n/=i),n},str:function(n,i,r,o){i=i!=e?i:0,r=r!=e?r:"",o=o!=e?o:" ";var a=t.GLOBAL.currency,s=1==a.position?a.abbr:"",c=2==a.position?a.abbr:"";return s+this.number_format(n,i,r,o)+c},wrap_html:function(e,n){n=n||"";var i=t.GLOBAL.currency,r=1==i.position?i.abbr:"",o=2==i.position?i.abbr:"";if(""!==n){var a=n.split(" ").pop();r=""!==r?"<"+n+">"+r+"</"+a+">":"",o=""!==o?"<"+n+">"+o+"</"+a+">":""}return r+e+o},number_format:function(t,n,i,r){var o,a;return isNaN(n=Math.abs(n))&&(n=2),i==e&&(i=","),r==e&&(r="."),(a=(o=parseInt(t=(+t||0).toFixed(n))+"").length)>3?a%=3:a=0,(a?o.substr(0,a)+r:"")+o.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(n?i+Math.abs(t-o).toFixed(n).replace(/-/,0).slice(2):"")}}}(window)},5504:function(t,e,n){var i,r=n(9580);(i=window).showPopup=r.showPopup,i.sendAjax=r.sendAjax,i.parseHashParams=r.parseHashParams,i.ajax_link_click=r.ajax_link_click,i.checkEmailValidity=r.checkEmailValidity,i.l10n=r.l10n,i.reloadLangWidget=r.reloadLangWidget,i.number_format=r.number_format,i.priceFormat=r.priceFormat,i.str_replace=r.str_replace,i.triggerMarketingEvent=r.triggerMarketingEvent,i.openSignInModal=r.openSignInModal,i.getCountText=r.getCountText,i.initCheckoutCartEvents=r.initCheckoutCartEvents,i.zteel_set_message=r.zteel_set_message,i.reloadPage=r.reloadPage,i.generateUUID=r.generateUUID,i.setInnerHTML=r.setInnerHTML},6702:function(t,e,n){function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(){r=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,i,r){var a=new RegExp(t,i);return e.set(a,r||e.get(t)),o(a,n.prototype)}function a(t,n){var i=e.get(n);return Object.keys(i).reduce((function(e,n){var r=i[n];if("number"==typeof r)e[n]=t[r];else{for(var o=0;void 0===t[r[o]]&&o+1<r.length;)o++;e[n]=t[r[o]]}return e}),Object.create(null))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);if(n){n.groups=a(n,this);var i=n.indices;i&&(i.groups=a(i,this))}return n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var o=e.get(this);return t[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(t,e){var n=o[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var s=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=i(t[t.length-1])&&(t=[].slice.call(t)).push(a(t,s)),r.apply(this,t)}))}return t[Symbol.replace].call(this,n,r)},r.apply(this,arguments)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:String(e)}function c(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function u(t,e){return function(t,e){return e.get?e.get.call(t):e.value}(t,d(t,e,"get"))}function l(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,d(t,e,"set"),n),n}function d(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var h,f,p,g;h=window,f=new WeakMap,p=new WeakMap,g=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,f,{writable:!0,value:void 0}),c(this,p,{writable:!0,value:void 0}),l(this,p,n(7301)),u(this,p).init()}var e,i;return e=t,(i=[{key:"getClientId",value:function(){var t;return u(this,f)?u(this,f):(document.cookie.split(";").some(function(t){var e=t.trim().match(r(/^(_ga=){1}(.*)$/,{clientId:2}));if(e)return l(this,f,e.groups.clientId)}.bind(this)),null!==(t=u(this,f))&&void 0!==t?t:"")}},{key:"getCurrentUTM",value:function(){return u(this,p).get.current}},{key:"getDataInJson",value:function(){return{utm_source:this.getCurrentUTM().src,utm_medium:this.getCurrentUTM().mdm,utm_campaign:this.getCurrentUTM().cmp,utm_term:this.getCurrentUTM().trm,utm_content:this.getCurrentUTM().cnt,google_client_id:this.getClientId()}}}])&&a(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h.AnalyticsHelper=new g},5858:function(){var t={DATA_ATTR_NAME:"data-fake-href",FAKE_LINK_LIFE_TIME:25e3,links:[],init:function(){var t=this;this.setLinks(),this.setListeners(),setTimeout((function(){return t.modifyAllLinks()}),this.FAKE_LINK_LIFE_TIME)},setLinks:function(){this.links=document.querySelectorAll("[".concat(this.DATA_ATTR_NAME,"]"))},setListeners:function(){var t=this;this.links.forEach((function(e){var n=!1;e.addEventListener("pointermove",(function(){n=!0})),e.addEventListener("touchend",(function(i){!n&&e.getAttribute(t.DATA_ATTR_NAME)&&(t.modifyFakeToVeritableLink(e),e.click()),n=!1})),e.addEventListener("mouseover",(function(){return t.modifyFakeToVeritableLink(e)}))}))},modifyFakeToVeritableLink:function(t){var e=t.getAttribute(this.DATA_ATTR_NAME);e&&(t.setAttribute("href",e),t.removeAttribute(this.DATA_ATTR_NAME))},modifyAllLinks:function(){var t=this;this.links.forEach((function(e){return t.modifyFakeToVeritableLink(e)}))}};window.FakeHrefDirector=t},5542:function(){var t,e;t=window,(e=function(t){this.setSettings(t),this.init()}).prototype={originalSendHitTask:null,payloadRefLimit:2048,preparedToSendProducts:[],remainingProducts:[],offset:0,isValidOffset:!1,partsWasSent:0,errors:[],setSettings:function(t){this.products=t.products?t.products:this.addError("products"),this.hit=t.hit?t.hit:this.addError("hit"),this.eventCategory=t.eventCategory?t.eventCategory:this.addError("eventCategory"),this.eventAction=t.eventAction?t.eventAction:this.addError("eventAction"),this.fieldSetter=t.fieldSetter?t.fieldSetter:this.addError("fieldSetter")},init:function(){if(this.errors.length)return this.showErrors(),!1;this.remainingProducts=this.products,this.attachEvents(),this.performDefaultEvent()},addError:function(t){return this.errors.push(t),null},showErrors:function(){this.errors.forEach((function(t){console.log("В конструктор не передано обязательное свойство "+t)}))},performDefaultEvent:function(){this.fieldSetter(this.hit,this.products)},attachEvents:function(){var t=this;ga((function(e){t.originalSendHitTask=e.get("sendHitTask"),e.set("sendHitTask",(function(n){t.isValidPayloadSize(n.get("hitPayload"))?(t.originalSendHitTask(n),e.set("sendHitTask",t.originalSendHitTask),t.isDefaultEventSentOut=!1===t.isDefaultEventSentOut):setTimeout((function(){t.initSender()}),100)}))}))},isValidPayloadSize:function(t){return this.payloadRefLimit>encodeURI(t).split(/%..|./).length-1},initSender:function(){this.attachSenderEvents(),this.runSender()},attachSenderEvents:function(){var t=this;ga((function(e){e.set("sendHitTask",(function(e){t.isValidPayloadSize(e.get("hitPayload"))?(t.originalSendHitTask(e),t.preparedToSendProducts=[],t.remainingProducts=t.remainingProducts.slice(t.offset),t.isValidOffset=!0,++t.partsWasSent):t.isValidOffset=!1,t.isValidOffset||1!==t.offset?setTimeout((function(){t.runSender()}),100):(t.setDefaultSendHitTask(),t.send())}))}))},runSender:function(){this.updateProducts(),this.preparedToSendProducts.length||this.remainingProducts.length?(this.performEvent(this.hit,this.preparedToSendProducts),this.send()):this.setDefaultSendHitTask()},updateProducts:function(){var t=this.preparedToSendProducts.length?this.preparedToSendProducts:this.remainingProducts;this.offset=this.isValidOffset?this.offset:Math.ceil(t.length/2),this.preparedToSendProducts=t.slice(0,this.offset)},performEvent:function(t,e){this.fieldSetter(t,e)},send:function(){this.isFirstPart()?ga("send","pageview"):(ga("ec:setAction",this.eventAction),ga("send","event",this.eventCategory,this.eventAction))},isFirstPart:function(){return 0===this.partsWasSent},setDefaultSendHitTask:function(){var t=this;ga((function(e){e.set("sendHitTask",t.originalSendHitTask)}))}},t.GAHelper=e},9580:function(t,e,n){var i,r,o=n(3053),a=n(3053);function s(t,e,n,i){var r=0,o="",a="",s=0,c=[].concat(t),u=[].concat(e),l=n,d="[object Array]"===Object.prototype.toString.call(u),h="[object Array]"===Object.prototype.toString.call(l);l=[].concat(l),i&&(this.window[i]=0);for(var f=0,p=l.length;f<p;f++)if(""!==l[f])for(r=0,s=c.length;r<s;r++)o=l[f]+"",a=d?void 0!==u[r]?u[r]:"":u[0],l[f]=o.split(c[r]).join(a),i&&l[f]!==o&&(this.window[i]+=(o.length-l[f].length)/c[r].length);return h?l:l[0]}function c(t,e){var n=[],i=[];for(var r in n.push("{BR}"),i.push("<br>"),n.push("{BREAK_LINE}"),i.push("<br>"),e)e.hasOwnProperty(r)&&(n.push(r),i.push(e[r]));return GLOBAL.l10n&&GLOBAL.l10n[t]?s(n,i,GLOBAL.l10n[t]):(u(GLOBAL.URI_PREFIX+"_widget/l10n/set/",{value:t}),GLOBAL.l10n[t]=t,s(n,i,t))}function u(t,e,n,i){return i=i||"POST","function"==typeof e&&(n=e,e={}),null===e&&(e={}),0===t.indexOf("/js/")&&(t="/themes/"+GLOBAL.theme+"/layout"+t),a.ajax({beforeSend:function(t){t.setRequestHeader("X-CSRF-Token",GLOBAL.GLOBAL_CSRF_TOKEN)},dataType:"json",type:i,url:t,async:!0,data:e,error:function(t){var e="ERROR",i={};"abort"===t.statusText&&(e="CANCELED"),t.responseJSON&&t.responseJSON.status&&(e=t.responseJSON.status,i=t.responseJSON.response),"function"==typeof n&&n(e,i),a(document).trigger("afterSendAjax"),"HTTP_ERROR"===e&&a(document).trigger("ajaxHttpError",e,i)},success:function(t){var e=t&&t.status||"NOT_LOADED",i=t&&t.response||{};"function"==typeof n&&n(e,i),a(document).trigger("afterSendAjax")}})}function l(t,e,n,i){void 0!==e&&""!=e||(e="success");var r="session-message s-ok";switch(e){case"warning":r="session-message s-warn";break;case"error":r="session-message s-error";break;default:r="session-message s-ok"}var o='<div class="'+r+'">'+t+'<a href="#" onclick="$(this).parent().remove(); return false;"></a></div>',s=void 0===n||""===n?"#j-sm":n;!0===i&&a(s).empty(),a(s).show().append(o)}function d(t,e){if(GLOBAL&&GLOBAL.marketingEvents){var n=GLOBAL.marketingEvents;if(n[t])for(var i=0,r=n[t].length;i<r;++i){var o=n[t][i];e=Array.isArray(e)?e:[e];try{o.apply(null,e)}catch(t){console.log(t)}}}}function h(t,e,n,i){var r,o;return isNaN(e=Math.abs(e))&&(e=2),null==n&&(n=","),null==i&&(i="."),(o=(r=parseInt(t=(+t||0).toFixed(e))+"").length)>3?o%=3:o=0,(o?r.substr(0,o)+i:"")+r.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+i)+(e?n+Math.abs(t-r).toFixed(e).replace(/-/,0).slice(2):"")}function f(){window.location.reload()}!function(t){t.fn.reset=function(){return this.each((function(){t(this).is("form")&&this.reset()}))},t.fn.selectRange=function(t,e){return this.each((function(){if(this.setSelectionRange)this.focus(),this.setSelectionRange(t,e);else if(this.createTextRange){var n=this.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",t),n.select()}}))}}(o),function(t){t.fn.preload=function(){return this.each((function(){var e=t(this);if(e.is("img")){var n=t('<div class="tm-preload"></div>').insertBefore(e).show();e.hide(),e.load((function(){n.hide(),e.show()}))}}))}}(o),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){return o.inArray(t,this,e)}),function(t,e,i){t.Widgets=t.Widgets||{};var r={};t.Widgets.Hint={cache:{},writeCache:function(t,e){this.cache[t]=e},readCache:function(t){return null!=this.cache[t]&&this.cache[t]},loadHintContent:function(t,n,i,r){var o=this,a=function(t,e){e=e||{},""==(t=t instanceof Array?t.join("/"):t)[0]&&(t=t.substr(1,t.length-1));var n=e?"?"+function(t){var e=[];for(var n in t)e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}(e):"";return GLOBAL.URI_PREFIX+t+GLOBAL.URI_SUFFIX+n}(["_widget","hint","loadHintContent"]);if(this.readCache(t)){var s=this.readCache(t);s.title&&e(n).show().html(s.title),e(i).show().html(s.text),r&&r("OK",s)}else u(a,{hintId:t},(function(a,s){"OK"===a&&(s.title&&e(n).show().html(s.title),e(i).show().html(s.text),o.writeCache(t,s)),r&&r(a,s)}))},initHintContentLoader:function(t,e,n,i,r){var o=this.getHintLoader(t,e);o&&o(n,i,r)},getHintLoader:function(t,e){var n=t+"_"+(e?"inModal":"inPopup");return r.hasOwnProperty(n)?r[n]:r.hasOwnProperty(t)?r[t]:null},registerHintLoader:function(t,e,n){var i=t;void 0!==n&&(i+="_"+(n?"inModal":"inPopup")),r[i]=e}};var o=function(e,n,i,r,o){t.Widgets.Hint.loadHintContent(e,r.find(".j-hint-title"),r.find(".j-hint-text"),(function(t,e){"OK"!==t?r.find(".j-hint-text").show().html(c("Ошибка загрузки подсказки")):(i.off("click.widget-hint"),o&&o())}))};t.Widgets.Hint.registerHintLoader("default",(function(t,n,i){var r=e("#widget-hint-default-"+t+"-"+i),a=e("#hint-popup-"+t+"-"+i);r.find(".product-hint-btn").on("click.widget-hint",(function(){return o(t,0,e(this),a),!1}))}),!0),t.Widgets.Hint.registerHintLoader("default",(function(t,n,i){var r=e("#widget-hint-default-"+t+"-"+i);r.find(".product-hint-btn").on("click.widget-hint",(function(){return o(t,0,e(this),r),!1}))}),!1),t.Widgets.Hint.registerHintLoader("filter",(function(t,n,i){var r=e("#widget-hint-filter-"+t+"-"+i),a=e("#filter-hint-popup-"+t+"-"+i);r.on("click.widget-hint",(function(){return o(t,0,e(this),a),!1}))}),!0),t.Widgets.Hint.registerHintLoader("filter",(function(n,i,r){e("#widget-hint-filter-"+n+"-"+r).on("click.widget-hint",(function(){var a=e(this),s=!1!==t.Widgets.Hint.readCache(i);o(n,0,a,e('[data-id="filter-tooltip-'+n+"-"+r+'"]'),(function(){s||setTimeout((function(){a.data("hsTooltip").popperInstance.update()}),1)}))}))}),!1),t.Widgets.Hint.registerHintLoader("mobile-icon",(function(t,i,r){var a=e(".widget-hint-mobile-icon-"+t+"-"+r),s=e("#features-hint-"+t+"-"+r);a.on("click.widget-hint",(function(){o(t,0,e(this),s,(function(){s.find("img").length?Promise.resolve().then(n.t.bind(n,853,23)).then((function(e){(0,e.default)(s[0],(function(){App.mmenu.getAPI("features-hint-"+t+"-"+r).updateHeight()}))})):App.mmenu.getAPI("features-hint-"+t+"-"+r).updateHeight(),App.setTableWrap(s)}))}))})),t.Widgets.Hint.registerHintLoader("mobile-link",(function(t,i,r){var a=e(".widget-hint-mobile-link-"+t+"-"+r),s=e("#features-hint-"+t+"-"+r);a.on("click.widget-hint",(function(){o(t,0,e(this),s,(function(){s.find("img").length?Promise.resolve().then(n.t.bind(n,853,23)).then((function(e){(0,e.default)(s[0],(function(){App.mmenu.getAPI("features-hint-"+t+"-"+r).updateHeight()}))})):App.mmenu.getAPI("features-hint-"+t+"-"+r).updateHeight(),App.setTableWrap(s)}))}))}))}(window.Horoshop=window.Horoshop||{},o),(r=window).horoshopReCaptcha={googleRecaptchaSrc:"https://www.google.com/recaptcha/api.js?onload=onHoroshopReCaptchaLoaded&render=explicit",googleRecaptchaTagAdded:!1,googleRecaptchaLoaded:!1,siteKey:null,forms:[],rendered:[],addGoogleRecaptchaTag:function(){var t=document.querySelector("head"),e=document.createElement("script");e.src=this.googleRecaptchaSrc,t.append(e),this.googleRecaptchaTagAdded=!0},attach:function(t,e){var n=this,i=document.querySelector(t);this.forms.push(i),this.siteKey=e;var r=i.querySelectorAll('textarea, select, input:not([type="submit"]):not([type="button"])'),o=function t(){n.googleRecaptchaTagAdded?n.googleRecaptchaLoaded&&!n.rendered.includes(i)&&n.render(i):n.addGoogleRecaptchaTag(),r.forEach((function(e){return e.removeEventListener("focus",t)}))};r.forEach((function(t){return t.addEventListener("focus",o)}))},render:function(t){var e=t.querySelector('[type="submit"]'),n=grecaptcha.render(e,{sitekey:this.siteKey,callback:function(){t.dispatchEvent(new Event("submit",{cancelable:!0})),grecaptcha.reset(n)},"error-callback":function(){alert(c("Возникла ошибка при сохранении формы. Обновите страницу и попробуйте еще раз."))},"expired-callback":function(){alert(c("Возникла ошибка при сохранении формы. Обновите страницу и попробуйте еще раз."))}});this.rendered.push(t)},renderAttached:function(){var t=this;this.forms.forEach((function(e){return t.render(e)})),this.googleRecaptchaLoaded=!0}},r.onHoroshopReCaptchaLoaded=function(){r.horoshopReCaptcha.renderAttached()},a((function(){ModificationChange.getInstance()&&ModificationChange.getInstance().attachEventHandlers({onAfterSubmit:function(t,e){setTimeout((function(){d("ajax_page_view",window.location.href)}),300)}}),CatalogBuilder&&CatalogBuilder.attachEventHandlers({onFilterLinkClick:function(t){d("ajax_page_view",t.attr("href"))}})})),e.showPopup=function(t,e,n){null==i||i.closed||i.close(),null==e&&(e=656),null==n&&(n=296);var r=Math.round(screen.availHeight/2-n/2)-18,o=Math.round(screen.availWidth/2-e/2)-9;i=window.open(t,"","top="+r+",left="+o+",directories=0,location=0,menubar=0,status=0,toolbar=0,scrollbars=2,resizable=0,width="+e+",height="+n)},e.sendAjax=u,e.parseHashParams=function(){for(var t={},e=window.location.hash.substring(1).split("&"),n=0;n<e.length;n++){var i=e[n].split("=");t[i[0]]=void 0===i[1]?"":i[1]}return t},e.ajax_link_click=function t(){var e=a(this),n=e.data("rel"),i=e.data("href")||e.attr("href");return null==n&&(n="replace"),u(i,null,(function(i,r){var o;"OK"===i?r.html?"replace"===n?(a(r.html).off("click").on("click",t).insertAfter(e),e.remove()):a(n).html(r.html):r.hasOwnProperty("redirect")?location.href=r.redirect:f():"UNAUTHORIZED"===i&&(o=r.message,Modal.open("#sign-in"),(o=o||c("Для добавления товара в список желаний Вам необходимо авторизироваться"))&&l(o,"error",".j-signup-info-message, .j-login-info-message",!0))})),!1},e.checkEmailValidity=function(t){return/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},e.l10n=c,e.reloadLangWidget=function(){var t=a('[data-widget="lang_menu"]'),e=[],n=[{name:"requestedUrl",value:window.location.href}];t.length&&(t.each((function(){var t=a(this).attr("data-skin")||"default",i=a(this).attr("data-show-icon");-1===a.inArray(t,e)&&(e.push(t),n.push({name:"skins[]",value:t},{name:"showIcon",value:i}))})),u(GLOBAL.URI_PREFIX+"_widget/lang_menu/renderMultiple",n,(function(e,n){if("OK"===e){for(var i=0,r=n.data.length;i<r;++i){var o=n.data[i].skin,s=a(n.data[i].html);t.filter('[data-skin="'+o+'"]').replaceWith(s)}a(document.body).trigger("onLangWidgetReload",t)}})))},e.number_format=h,e.priceFormat=function(t){return currency.wrap_html(h(t,GLOBAL.round_to,"."," "))},e.str_replace=s,e.triggerMarketingEvent=d,e.openSignInModal=function(t){if(Modal.open("#sign-in"),a('a[href="#j-popup-tab-auth"]').trigger("click"),t){var e=a('#j-popup-tab-auth, [data-content-id="j-popup-tab-auth"]');e.find(':input[name="user[email]"]').val(t),setTimeout((function(){e.find(':input[name="user[pass]"]').focus()}),100)}},e.getCountText=function(t,e,n,i){var r="";if(e=e||c("товар"),n=n||c("товара"),i=i||c("товаров"),t>10&&t<20)r=i||c("товаров");else switch(t.toString().substr(-1)){case"1":r=e;break;case"2":case"3":case"4":r=n;break;default:r=i}return r},e.initCheckoutCartEvents=function(){var t=CheckoutModule.getInstance(),e=t.getComponentByName("Delivery"),n=t.getComponentByName("Payment"),i=t.getComponentByName("Recipient"),r=AjaxCart.getInstance();r.attachEventHandlers({onQuantityChanged:function(){t.reload()},onProductRemoved:function(){0===this.products.length?(t.container.find(".j-loader").show(),window.location.href=window.GLOBAL.URI_PREFIX):t.reload()},onCouponChange:function(){t.reload()}}),e.attachEventHandlers({changeDeliveryType:function(){r.reloadHtml()},beforeAjax:function(){this.owner.container.find(".j-loader").show()},afterAjax:function(){this.owner.container.find(".j-loader").hide()}}),n.attachEventHandlers({changePaymentType:function(){r.reloadHtml()},beforeAjax:function(){this.owner.container.find(".j-loader").show()},afterAjax:function(){this.owner.container.find(".j-loader").hide()}}),i.attachEventHandlers({changeCity:function(){r.reloadHtml()},changeCountry:function(){r.reloadHtml()},onBeforeChangeCity:function(){this.owner.getComponentByName("Delivery").disableComponent(),this.owner.getComponentByName("Payment").disableComponent()},onBeforeChangeCountry:function(){this.owner.getComponentByName("Delivery").disableComponent(),this.owner.getComponentByName("Payment").disableComponent()}}),t.attachEventHandlers({onSubmitPending:function(){this.disableSubmitButton()}})},e.zteel_set_message=l,e.reloadPage=f,e.generateUUID=function(){var t=(new Date).getTime(),e=performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var i=16*Math.random();return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),("x"===n?i:3&i|8).toString(16)}))},e.setInnerHTML=function(t,e){t.innerHTML=e,Array.from(t.querySelectorAll("script")).forEach((function(t){var e=document.createElement("script");Array.from(t.attributes).forEach((function(t){e.setAttribute(t.name,t.value)})),e.appendChild(document.createTextNode(t.innerHTML)),t.parentNode.replaceChild(e,t)}))}}}]);