
; /* Start:"a:4:{s:4:"full";s:111:"/bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/mustache.min.js?17268534985460";s:6:"source";s:92:"/bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/mustache.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
!function(e,t){"object"==typeof exports&&exports&&"string"!=typeof exports.nodeName?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e.Mustache={},t(e.Mustache))}(this,function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(e){return"function"==typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}var s=RegExp.prototype.test;var a=/\S/;function u(e){return!function(e,t){return s.call(e,t)}(a,e)}var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};var p=/\s*/,l=/\s+/,h=/\s*=/,f=/\s*\}/,d=/#|\^|\/|>|\{|&|=|!/;function g(e){this.string=e,this.tail=e,this.pos=0}function v(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function w(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},g.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var i,s,a=this,u=!1;a;){if(e.indexOf(".")>0)for(t=a.view,i=e.split("."),s=0;null!=t&&s<i.length;)s===i.length-1&&(u=o(t,i[s])),t=t[i[s++]];else t=a.view[e],u=o(a.view,e);if(u)break;a=a.parent}n[e]=t}return r(t)&&(t=t.call(this.view)),t},w.prototype.clearCache=function(){this.cache={}},w.prototype.parse=function(t,r){var o=this.cache,s=o[t];return null==s&&(s=o[t+":"+(r||e.tags).join(":")]=function(t,r){if(!t)return[];var o,s,a,c=[],v=[],w=[],y=!1,x=!1;function k(){if(y&&!x)for(;w.length;)delete v[w.pop()];else w=[];y=!1,x=!1}function b(e){if("string"==typeof e&&(e=e.split(l,2)),!n(e)||2!==e.length)throw new Error("Invalid tags: "+e);o=new RegExp(i(e[0])+"\\s*"),s=new RegExp("\\s*"+i(e[1])),a=new RegExp("\\s*"+i("}"+e[1]))}b(r||e.tags);for(var m,E,U,T,j,S,V=new g(t);!V.eos();){if(m=V.pos,U=V.scanUntil(o))for(var C=0,A=U.length;C<A;++C)u(T=U.charAt(C))?w.push(v.length):x=!0,v.push(["text",T,m,m+1]),m+=1,"\n"===T&&k();if(!V.scan(o))break;if(y=!0,E=V.scan(d)||"name",V.scan(p),"="===E?(U=V.scanUntil(h),V.scan(h),V.scanUntil(s)):"{"===E?(U=V.scanUntil(a),V.scan(f),V.scanUntil(s),E="&"):U=V.scanUntil(s),!V.scan(s))throw new Error("Unclosed tag at "+V.pos);if(j=[E,U,m,V.pos],v.push(j),"#"===E||"^"===E)c.push(j);else if("/"===E){if(!(S=c.pop()))throw new Error('Unopened section "'+U+'" at '+m);if(S[1]!==U)throw new Error('Unclosed section "'+S[1]+'" at '+m)}else"name"===E||"{"===E||"&"===E?x=!0:"="===E&&b(U)}if(S=c.pop())throw new Error('Unclosed section "'+S[1]+'" at '+V.pos);return function(e){for(var t,n=[],r=n,i=[],o=0,s=e.length;o<s;++o)switch((t=e[o])[0]){case"#":case"^":r.push(t),i.push(t),r=t[4]=[];break;case"/":i.pop()[5]=t[2],r=i.length>0?i[i.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i)(t=e[i])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}(v))}(t,r)),s},w.prototype.render=function(e,t,n){var r=this.parse(e),i=t instanceof v?t:new v(t);return this.renderTokens(r,i,n,e)},w.prototype.renderTokens=function(e,t,n,r){for(var i,o,s,a="",u=0,c=e.length;u<c;++u)s=void 0,"#"===(o=(i=e[u])[0])?s=this.renderSection(i,t,n,r):"^"===o?s=this.renderInverted(i,t,n,r):">"===o?s=this.renderPartial(i,t,n,r):"&"===o?s=this.unescapedValue(i,t):"name"===o?s=this.escapedValue(i,t):"text"===o&&(s=this.rawValue(i)),void 0!==s&&(a+=s);return a},w.prototype.renderSection=function(e,t,i,o){var s=this,a="",u=t.lookup(e[1]);if(u){if(n(u))for(var c=0,p=u.length;c<p;++c)a+=this.renderTokens(e[4],t.push(u[c]),i,o);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)a+=this.renderTokens(e[4],t.push(u),i,o);else if(r(u)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(u=u.call(t.view,o.slice(e[3],e[5]),function(e){return s.render(e,t,i)}))&&(a+=u)}else a+=this.renderTokens(e[4],t,i,o);return a}},w.prototype.renderInverted=function(e,t,r,i){var o=t.lookup(e[1]);if(!o||n(o)&&0===o.length)return this.renderTokens(e[4],t,r,i)},w.prototype.renderPartial=function(e,t,n){if(n){var i=r(n)?n(e[1]):n[e[1]];return null!=i?this.renderTokens(this.parse(i),t,n,i):void 0}},w.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},w.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);if(null!=r)return e.escape(r)},w.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.3.0",e.tags=["{{","}}"];var y=new w;return e.clearCache=function(){return y.clearCache()},e.parse=function(e,t){return y.parse(e,t)},e.render=function(e,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(n(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)');var i;return y.render(e,t,r)},e.to_html=function(t,n,i,o){var s=e.render(t,n,i);if(!r(o))return s;o(s)},e.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return c[e]})},e.Scanner=g,e.Context=v,e.Writer=w,e});
/* End */
;
; /* Start:"a:4:{s:4:"full";s:114:"/bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/action-pool.min.js?17268534984227";s:6:"source";s:95:"/bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/action-pool.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
!function(){"use strict";BX.namespace("BX.Sale.BasketActionPool"),BX.Sale.BasketActionPool=function(t){this.component=t,this.requestProcessing=!1,this.updateTimer=null,this.isBasketRefreshed="Y"!==this.component.params.DEFERRED_REFRESH,this.needFullRecalculation="Y"===this.component.params.DEFERRED_REFRESH,this.pool={},this.lastActualPool={},this.approvedAction=["QUANTITY","DELETE","RESTORE","DELAY","OFFER","MERGE_OFFER"],this.switchTimer()},BX.Sale.BasketActionPool.prototype.setRefreshStatus=function(t){this.isBasketRefreshed=!!t},BX.Sale.BasketActionPool.prototype.getRefreshStatus=function(){return this.isBasketRefreshed},BX.Sale.BasketActionPool.prototype.isItemInPool=function(t){return!!this.pool[t]},BX.Sale.BasketActionPool.prototype.clearLastActualQuantityPool=function(t){this.lastActualPool[t]&&delete this.lastActualPool[t].QUANTITY},BX.Sale.BasketActionPool.prototype.checkItemPoolBefore=function(t){t&&(this.pool[t]=this.pool[t]||{})},BX.Sale.BasketActionPool.prototype.checkItemPoolAfter=function(t){t&&this.pool[t]&&0===Object.keys(this.pool[t]).length&&delete this.pool[t]},BX.Sale.BasketActionPool.prototype.addCoupon=function(t){this.pool.COUPON=t,this.switchTimer()},BX.Sale.BasketActionPool.prototype.removeCoupon=function(t){this.checkItemPoolBefore("REMOVE_COUPON"),this.pool.REMOVE_COUPON[t]=t,this.switchTimer()},BX.Sale.BasketActionPool.prototype.changeQuantity=function(t,o,e){this.checkItemPoolBefore(t),this.lastActualPool[t]&&this.lastActualPool[t].QUANTITY!==o||!this.lastActualPool[t]&&o!==e?this.pool[t].QUANTITY=o:this.pool[t]&&delete this.pool[t].QUANTITY,this.checkItemPoolAfter(t),this.switchTimer()},BX.Sale.BasketActionPool.prototype.deleteItem=function(t){this.checkItemPoolBefore(t),this.pool[t].RESTORE?delete this.pool[t].RESTORE:this.pool[t].DELETE="Y",this.checkItemPoolAfter(t),this.switchTimer()},BX.Sale.BasketActionPool.prototype.restoreItem=function(t,o){this.checkItemPoolBefore(t),"Y"===this.pool[t].DELETE?delete this.pool[t].DELETE:this.pool[t].RESTORE=o,this.checkItemPoolAfter(t),this.switchTimer()},BX.Sale.BasketActionPool.prototype.addDelayed=function(t){this.checkItemPoolBefore(t),this.pool[t].DELAY="Y",this.checkItemPoolAfter(t),this.switchTimer()},BX.Sale.BasketActionPool.prototype.removeDelayed=function(t){this.checkItemPoolBefore(t),this.pool[t].DELAY="N",this.checkItemPoolAfter(t),this.switchTimer()},BX.Sale.BasketActionPool.prototype.changeSku=function(t,o,e){JSON.stringify(o)!==JSON.stringify(e)?(this.checkItemPoolBefore(t),this.pool[t].OFFER=o):(this.pool[t]&&delete this.pool[t].OFFER,this.checkItemPoolAfter(t)),this.switchTimer()},BX.Sale.BasketActionPool.prototype.mergeSku=function(t){this.checkItemPoolBefore(t),this.pool[t].MERGE_OFFER="Y",this.switchTimer()},BX.Sale.BasketActionPool.prototype.switchTimer=function(){clearTimeout(this.updateTimer),this.isProcessing()||(this.isPoolEmpty()&&(this.component.editPostponedBasketItems(),this.component.fireCustomEvents()),this.isPoolEmpty()?this.getRefreshStatus()||this.trySendPool():this.updateTimer=setTimeout(BX.proxy(this.trySendPool,this),300))},BX.Sale.BasketActionPool.prototype.trySendPool=function(){this.isPoolEmpty()&&this.getRefreshStatus()||(this.doProcessing(!0),this.isPoolEmpty()?this.getRefreshStatus()||(this.component.sendRequest("refreshAjax",{fullRecalculation:this.needFullRecalculation?"Y":"N"}),this.needFullRecalculation=!1):(this.component.sendRequest("recalculateAjax",{basket:this.getPoolData()}),this.lastActualPool=this.pool,this.pool={}))},BX.Sale.BasketActionPool.prototype.getPoolData=function(){var t={},o=this.pool;for(var e in o.COUPON&&(t.coupon=o.COUPON,delete o.COUPON),o.REMOVE_COUPON&&(t.delete_coupon=o.REMOVE_COUPON,delete o.REMOVE_COUPON),o)if(o.hasOwnProperty(e))for(var s in o[e])o[e].hasOwnProperty(s)&&BX.util.in_array(s,this.approvedAction)&&(t[s+"_"+e]=o[e][s]);return t},BX.Sale.BasketActionPool.prototype.isPoolEmpty=function(){return 0===Object.keys(this.pool).length},BX.Sale.BasketActionPool.prototype.doProcessing=function(t){this.requestProcessing=!0===t,this.requestProcessing?this.component.startLoader():this.component.endLoader()},BX.Sale.BasketActionPool.prototype.isProcessing=function(){return!0===this.requestProcessing}}();
/* End */
;
; /* Start:"a:4:{s:4:"full";s:110:"/bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/filter.min.js?172685349810198";s:6:"source";s:90:"/bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/filter.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
!function(){"use strict";BX.namespace("BX.Sale.BasketFilter"),BX.Sale.BasketFilter=function(t){this.component=t,this.activeFilterMode=!1,this.filterTimer=null,this.mouseOverClearFilter=!1,this.realShownItems=[],this.realSortedItems=[],this.realScrollTop=0,this.lastShownItemsHash="",this.currentFilter={query:"",similarHash:"",warning:!1,notAvailable:!1,delayed:!1},this.component.useItemsFilter&&this.bindEvents()},BX.Sale.BasketFilter.prototype.bindEvents=function(){var t,e=this.component.getEntity(this.component.getCacheNode(this.component.ids.itemListWrapper),"basket-filter");t=this.component.getEntity(e,"basket-filter-input"),BX.type.isDomNode(t)&&(BX.bind(t,"focus",function(){e.style.flex=3}),BX.bind(t,"blur",BX.delegate(function(){this.mouseOverClearFilter||(e.style.flex="")},this)),BX.bind(t,"keyup",BX.proxy(this.onFilterInput,this)),BX.bind(t,"cut",BX.proxy(this.onFilterInput,this)),BX.bind(t,"paste",BX.proxy(this.onFilterInput,this))),t=this.component.getEntity(e,"basket-filter-clear-btn"),BX.type.isDomNode(t)&&(BX.bind(t,"mouseenter",BX.delegate(function(){this.mouseOverClearFilter=!0},this)),BX.bind(t,"mouseout",BX.delegate(function(){this.mouseOverClearFilter=!1},this)),BX.bind(t,"click",BX.delegate(function(){this.filterInputEmpty()||(this.clearFilterInput(),this.onFilterChange()),e.style.flex=""},this)))},BX.Sale.BasketFilter.prototype.isActive=function(){return this.activeFilterMode},BX.Sale.BasketFilter.prototype.showFilterByName=function(t){if(t)switch(t){case"not-available":this.showNotAvailableItemsFilter();break;case"delayed":this.showDelayItemsFilter();break;case"warning":this.showWarningItemsFilter();break;case"similar":this.showSimilarItemsFilter();break;case"all":default:this.clearAllFiltersExcept([]),this.onFilterChange()}},BX.Sale.BasketFilter.prototype.onFilterInput=function(){var t=BX.type.isDomNode(BX.proxy_context)?BX.util.trim(BX.proxy_context.value).toLowerCase():"";this.currentFilter.query!==t&&(this.currentFilter.query=t,this.onFilterChange())},BX.Sale.BasketFilter.prototype.clearAllFiltersExcept=function(t){t&&BX.type.isArray(t)&&(!BX.util.in_array("input",t)&&this.clearFilterInput(),!BX.util.in_array("warning",t)&&this.clearWarningItemsFilter(),!BX.util.in_array("delayed",t)&&this.clearDelayItemsFilter(),!BX.util.in_array("not-available",t)&&this.clearNotAvailableItemsFilter(),BX.util.in_array("similar",t)||(this.clearSimilarItemsFilter(),this.component.showSimilarCount(!1)))},BX.Sale.BasketFilter.prototype.filterInputEmpty=function(){return 0===this.currentFilter.query.length},BX.Sale.BasketFilter.prototype.clearFilterInput=function(){this.currentFilter.query="";var t=this.component.getEntity(this.component.getCacheNode(this.component.ids.itemListWrapper),"basket-filter-input");BX.type.isDomNode(t)&&(t.value="")},BX.Sale.BasketFilter.prototype.addWarningItemsFilter=function(){this.currentFilter.warning=!0},BX.Sale.BasketFilter.prototype.clearWarningItemsFilter=function(){this.currentFilter.warning=!1},BX.Sale.BasketFilter.prototype.showWarningItemsFilter=function(){this.currentFilter.warning||(this.clearAllFiltersExcept(["warning"]),this.addWarningItemsFilter(),this.onFilterChange())},BX.Sale.BasketFilter.prototype.addDelayItemsFilter=function(){this.currentFilter.delayed=!0},BX.Sale.BasketFilter.prototype.clearDelayItemsFilter=function(){this.currentFilter.delayed=!1},BX.Sale.BasketFilter.prototype.showDelayItemsFilter=function(){this.currentFilter.delayed||(this.clearAllFiltersExcept(["delayed"]),this.addDelayItemsFilter(),this.onFilterChange())},BX.Sale.BasketFilter.prototype.addNotAvailableItemsFilter=function(){this.currentFilter.notAvailable=!0},BX.Sale.BasketFilter.prototype.clearNotAvailableItemsFilter=function(){this.currentFilter.notAvailable=!1},BX.Sale.BasketFilter.prototype.showNotAvailableItemsFilter=function(){this.currentFilter.notAvailable||(this.clearAllFiltersExcept(["not-available"]),this.addNotAvailableItemsFilter(),this.onFilterChange())},BX.Sale.BasketFilter.prototype.addSimilarItemsFilter=function(t){this.currentFilter.similarHash=t.HASH},BX.Sale.BasketFilter.prototype.clearSimilarItemsFilter=function(){this.currentFilter.similarHash=""},BX.Sale.BasketFilter.prototype.showSimilarItemsFilter=function(){var t=this.component.getItemDataByTarget(BX.proxy_context);this.currentFilter.similarHash!==t.HASH&&(this.clearAllFiltersExcept(["similar"]),this.addSimilarItemsFilter(t),this.onFilterChange())},BX.Sale.BasketFilter.prototype.getTimeoutDuration=function(){return this.component.duration.filterTimer},BX.Sale.BasketFilter.prototype.onFilterChange=function(){this.component.showItemsOverlay(),this.currentFilter.query.length||this.currentFilter.similarHash.length||this.currentFilter.warning||this.currentFilter.notAvailable||this.currentFilter.delayed?(clearTimeout(this.filterTimer),this.filterTimer=setTimeout(BX.proxy(this.enableFilterMode,this),this.getTimeoutDuration())):this.disableFilterMode()},BX.Sale.BasketFilter.prototype.enableFilterMode=function(){var t;this.activeFilterMode||(this.activeFilterMode=!0,this.realShownItems=BX.util.array_values(this.component.shownItems),this.realSortedItems=BX.util.array_values(this.component.sortedItems),this.realScrollTop=this.component.getDocumentScrollTop()),this.component.scrollToFirstItem(),this.component.sortedItems=this.searchItems(),t=JSON.stringify(this.component.sortedItems),this.lastShownItemsHash!==t?(this.lastShownItemsHash=t,this.component.deleteBasketItems(BX.util.array_values(this.component.shownItems),!1),this.component.sortedItems.length?(this.component.initializeBasketItems(),this.hideEmptyFilterResult()):this.showEmptyFilterResult(),this.currentFilter.similarHash.length&&this.component.showSimilarCount(!0)):this.highlightFoundItems(),this.component.hideItemsOverlay()},BX.Sale.BasketFilter.prototype.disableFilterMode=function(){clearTimeout(this.filterTimer),this.lastShownItemsHash="",this.activeFilterMode&&(this.activeFilterMode=!1,this.component.sortedItems=BX.util.array_values(this.realSortedItems),this.component.deleteBasketItems(BX.util.array_values(this.component.shownItems),!1),this.hideEmptyFilterResult(),this.component.editBasketItems(BX.util.array_values(this.realShownItems)),window.scrollTo(0,this.realScrollTop)),this.component.hideItemsOverlay()},BX.Sale.BasketFilter.prototype.searchItems=function(){for(var t=[],e=0;e<this.realSortedItems.length;e++){var i=this.component.items[this.realSortedItems[e]];i&&this.searchItemMatch(i)&&t.push(i.ID)}return t},BX.Sale.BasketFilter.prototype.highlightFoundItems=function(){if(this.activeFilterMode)for(var t in this.component.shownItems)this.component.shownItems.hasOwnProperty(t)&&this.highlightSearchMatch(this.component.items[this.component.shownItems[t]])},BX.Sale.BasketFilter.prototype.searchItemMatch=function(t){var e=!1,i=!1;if(this.currentFilter.notAvailable){if(!(i=!!t.NOT_AVAILABLE))return e}else if(this.currentFilter.delayed){if(!(i=!!t.DELAYED))return e}else if(this.currentFilter.warning){if(!(i=BX.util.in_array(t.ID,this.component.warningItems)))return e}else if(BX.type.isNotEmptyString(this.currentFilter.similarHash)&&!(i=this.currentFilter.similarHash===t.HASH))return e;if(BX.type.isNotEmptyString(this.currentFilter.query)){if(-1!==t.NAME.toLowerCase().indexOf(this.currentFilter.query)&&(e="NAME"),!e){var r=parseFloat(this.currentFilter.query);isNaN(r)||(parseFloat(t.PRICE)===r?e="PRICE":parseFloat(t.SUM_PRICE)===r&&(e="SUM_PRICE"))}var s,l;if(!e&&this.currentFilter.query.length>=3&&(-1!==t.PRICE_FORMATED.toLowerCase().indexOf(this.currentFilter.query)?e="PRICE":-1!==t.SUM_PRICE_FORMATED.toLowerCase().indexOf(this.currentFilter.query)&&(e="SUM_PRICE")),!e&&t.PROPS.length)for(s in t.PROPS)if(t.PROPS.hasOwnProperty(s)&&((l=t.PROPS[s].VALUE.toLowerCase())===this.currentFilter.query||this.currentFilter.query.length>=3&&-1!==l.indexOf(this.currentFilter.query))){e="PROPS";break}if(!e&&t.COLUMN_LIST.length)for(s in t.COLUMN_LIST)if(t.COLUMN_LIST.hasOwnProperty(s)&&BX.type.isString(t.COLUMN_LIST[s].VALUE)&&((l=t.COLUMN_LIST[s].VALUE.toLowerCase())===this.currentFilter.query||this.currentFilter.query.length>=3&&-1!==l.indexOf(this.currentFilter.query))){e="COLUMNS";break}}else i&&(e=!0);return e},BX.Sale.BasketFilter.prototype.highlightSearchMatch=function(t){var e,i,r,s,l=this.searchItemMatch(t);if(l)switch(l){case"NAME":e=this.component.getEntity(BX(this.component.ids.item+t.ID),"basket-item-name"),BX.type.isDomNode(e)&&(e.innerHTML=t.NAME.replace(new RegExp("(.*)("+this.currentFilter.query.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")(.*)","gi"),function(t,e,i,r){return BX.util.htmlspecialchars(e)+'<span class="basket-item-highlighted">'+BX.util.htmlspecialchars(i)+"</span>"+BX.util.htmlspecialchars(r)}));break;case"PRICE":e=BX(this.component.ids.price+t.ID),BX.addClass(e,"basket-item-highlighted");break;case"SUM_PRICE":e=BX(this.component.ids.sumPrice+t.ID),BX.addClass(e,"basket-item-highlighted");break;case"PROPS":for(e=this.component.getEntities(BX(this.component.ids.item+t.ID),"basket-item-property-value"),i=0;i<e.length;i++)for(r in s=e[i].getAttribute("data-property-code"),t.PROPS)t.PROPS.hasOwnProperty(r)&&t.PROPS[r].CODE===s&&(e[i].innerHTML=t.PROPS[r].VALUE.replace(new RegExp("("+this.currentFilter.query+")","gi"),'<span class="basket-item-highlighted">$1</span>'));break;case"COLUMNS":for(e=this.component.getEntities(BX(this.component.ids.item+t.ID),"basket-item-property-column-value"),i=0;i<e.length;i++)for(r in s=e[i].getAttribute("data-column-property-code"),t.COLUMN_LIST)t.COLUMN_LIST.hasOwnProperty(r)&&t.COLUMN_LIST[r].CODE===s&&(e[i].innerHTML=t.COLUMN_LIST[r].VALUE.replace(new RegExp("("+this.currentFilter.query+")","gi"),'<span class="basket-item-highlighted">$1</span>'))}},BX.Sale.BasketFilter.prototype.showEmptyFilterResult=function(){var t=this.component.getCacheNode(this.component.ids.itemList);if(BX.type.isDomNode(t)){var e=this.component.getCacheNode(this.component.ids.itemListEmptyResult);BX.type.isDomNode(e)&&(e.style.display="")}},BX.Sale.BasketFilter.prototype.hideEmptyFilterResult=function(){var t=this.component.getCacheNode(this.component.ids.itemListEmptyResult);BX.type.isDomNode(t)&&(t.style.display="none")}}();
/* End */
;
; /* Start:"a:4:{s:4:"full";s:113:"/bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/component.min.js?172685349836302";s:6:"source";s:93:"/bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/component.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
!function(){"use strict";BX.namespace("BX.Sale.BasketComponent"),BX.Sale.BasketComponent={maxItemsShowCount:30,precisionFactor:Math.pow(10,6),stickyHeaderOffset:0,duration:{priceAnimation:300,filterTimer:300},ids:{item:"basket-item-",quantity:"basket-item-quantity-",price:"basket-item-price-",sumPrice:"basket-item-sum-price-",sumPriceOld:"basket-item-sum-price-old-",sumPriceDiff:"basket-item-sum-price-difference-",itemHeightAligner:"basket-item-height-aligner-",total:"basket-total-price",basketRoot:"basket-root",itemListWrapper:"basket-items-list-wrapper",itemListContainer:"basket-items-list-container",itemList:"basket-item-list",itemListTable:"basket-item-table",itemListEmptyResult:"basket-item-list-empty-result",itemListOverlay:"basket-items-list-overlay",warning:"basket-warning"},initializePrimaryFields:function(){this.templates={},this.nodes={},this.items={},this.sortedItems=[],this.shownItems=[],this.changedItems=[],this.postponedItems=[],this.warningItems=[],this.isMobile=BX.browser.IsMobile(),this.isTouch=BX.hasClass(document.documentElement,"bx-touch"),this.lastAction="initialLoad",this.coupons=null,this.imagePopup=null,this.loadingScreen=null,this.quantityDelay=null,this.quantityTimer=null},init:function(t){this.initializePrimaryFields(),this.params=t.params||{},this.template=t.template||"",this.signedParamsString=t.signedParamsString||"",this.siteId=t.siteId||"",this.siteTemplateId=t.siteTemplateId||"",this.ajaxUrl=this.params.AJAX_PATH||"",this.templateFolder=t.templateFolder||"",this.useDynamicScroll="Y"===this.params.USE_DYNAMIC_SCROLL,this.useItemsFilter="Y"===this.params.SHOW_FILTER,this.initializeFilter(),this.applyBasketResult(t.result),this.initializeActionPool(),this.useItemsFilter&&(this.checkHeaderDisplay(),this.bindHeaderEvents()),this.initializeBasketItems(),this.editTotal(),this.editWarnings(),this.getCacheNode(this.ids.basketRoot).style.opacity=1,this.bindInitialEvents()},getTemplate:function(t){var e;return this.templates.hasOwnProperty(t)||(e=BX(t),this.templates[t]=BX.type.isDomNode(e)?e.innerHTML:""),this.templates[t]},getCacheNode:function(t){return this.nodes.hasOwnProperty(t)||(this.nodes[t]=BX(t)),this.nodes[t]},getEntity:function(t,e,i){return t&&e?(i=i||"",t.querySelector(i+'[data-entity="'+e+'"]')):null},getEntities:function(t,e,i){return t&&e?(i=i||"",t.querySelectorAll(i+'[data-entity="'+e+'"]')):{length:0}},bindInitialEvents:function(){this.bindWarningEvents(),BX.bind(window,"scroll",BX.proxy(this.lazyLoad,this))},bindWarningEvents:function(){var t=this.getEntity(BX(this.ids.warning),"basket-items-warning-count");BX.type.isDomNode(t)&&(t.style.display="",BX.bind(t,"click",BX.delegate(function(){this.toggleFilter("warning")},this))),BX.bind(this.getEntity(BX(this.ids.warning),"basket-items-warning-notification-close"),"click",BX.proxy(this.removeAllWarnings,this))},toggleFilter:function(t){t=BX.type.isNotEmptyString(t)?this.getEntity(this.getCacheNode(this.ids.itemListWrapper),"basket-items-count",'[data-filter="'+t+'"]'):BX.getEventTarget(t);if(BX.type.isDomNode(t)&&!BX.hasClass(t,"active")){for(var e=t.getAttribute("data-filter"),i=t.parentNode.querySelectorAll("[data-filter]"),s=0;s<i.length;s++)i[s].getAttribute("data-filter")===e?BX.addClass(i[s],"intec-cl-border active"):BX.hasClass(i[s],"active")&&BX.removeClass(i[s],"intec-cl-border active");this.filter.showFilterByName(e)}},scrollToFirstItem:function(){var t,e=this.getEntity(this.getCacheNode(this.ids.itemListWrapper),"basket-items-list-header");!BX.type.isDomNode(e)||(t=BX.pos(this.getCacheNode(this.ids.itemListContainer)).top)<BX.pos(e).bottom&&window.scrollTo(0,t-this.stickyHeaderOffset)},showItemsOverlay:function(){var t=this.getCacheNode(this.ids.itemListOverlay);BX.type.isDomNode(t)&&(t.style.display="")},hideItemsOverlay:function(){var t=this.getCacheNode(this.ids.itemListOverlay);BX.type.isDomNode(t)&&(t.style.display="none")},checkHeaderDisplay:function(){var t=this.getCacheNode(this.ids.itemListWrapper);BX.type.isDomNode(t)&&BX.removeClass(t,"basket-items-list-wrapper-light")},bindHeaderEvents:function(){for(var t=this.getEntities(this.getCacheNode(this.ids.itemListWrapper),"basket-items-count"),e=0;e<t.length;e++)BX.bind(t[e],"click",BX.proxy(this.toggleFilter,this))},getDocumentScrollTop:function(){return window.scrollY||window.pageYOffset||document.body.scrollTop+(document.documentElement&&document.documentElement.scrollTop||0)},lazyLoad:function(){var t=BX.pos(this.getCacheNode(this.ids.itemListContainer));this.getDocumentScrollTop()+window.innerHeight>=t.bottom-400&&((t=this.getItemsAfter()).length&&this.editBasketItems(t))},fireCustomEvents:function(){"Y"===this.result.EVENT_ONCHANGE_ON_START&&BX.onCustomEvent("OnBasketChange"),"Y"!==this.params.HIDE_COUPON&&(null!==this.coupons&&this.coupons!==this.result.COUPON_LIST&&BX.onCustomEvent("OnCouponApply"),this.coupons=this.result.COUPON_LIST)},editTotal:function(){this.fillTotalBlocks(),this.showItemsCount(),this.showWarningItemsCount(),this.showNotAvailableItemsCount(),this.showDelayedItemsCount()},fillTotalBlocks:function(){var t=this.getEntities(this.getCacheNode(this.ids.basketRoot),"basket-total-block");if(t&&t.length){var e=this.getTemplate("basket-total-template");if(e){var i,s=this.render(e,this.result.TOTAL_RENDER_DATA);for(i in t)t.hasOwnProperty(i)&&BX.type.isDomNode(t[i])&&(t[i].innerHTML=s,this.bindTotalEvents(t[i]))}}},showItemsCount:function(){var t=this.getEntity(this.getCacheNode(this.ids.itemListWrapper),"basket-items-count",'[data-filter="all"]');BX.type.isDomNode(t)&&(t.innerHTML=BX.message("SBB_IN_BASKET")+" "+this.result.BASKET_ITEMS_COUNT+" "+this.getGoodsMessage(this.result.BASKET_ITEMS_COUNT),t.style.display="")},showSimilarCount:function(t){var e=this.getEntity(this.getCacheNode(this.ids.itemListWrapper),"basket-items-count",'[data-filter="similar"]');BX.type.isDomNode(e)&&(t?(e.innerHTML=this.sortedItems.length+" "+this.getGoodsMessage(this.result.BASKET_ITEMS_COUNT,"SBB_SIMILAR_ITEM"),e.style.display=""):e.style.display="none")},showWarningItemsCount:function(){var t=this.getEntity(this.getCacheNode(this.ids.itemListWrapper),"basket-items-count",'[data-filter="warning"]');BX.type.isDomNode(t)&&(this.warningItems.length?(t.innerHTML=this.warningItems.length+" "+BX.message("SBB_BASKET_ITEMS_WARNING"),t.style.display=""):t.style.display="none")},showNotAvailableItemsCount:function(){var t=this.getEntity(this.getCacheNode(this.ids.itemListWrapper),"basket-items-count",'[data-filter="not-available"]');BX.type.isDomNode(t)&&(parseInt(this.result.NOT_AVAILABLE_BASKET_ITEMS_COUNT)?(t.innerHTML=this.result.NOT_AVAILABLE_BASKET_ITEMS_COUNT+" "+this.getGoodsMessage(this.result.NOT_AVAILABLE_BASKET_ITEMS_COUNT,"SBB_NOT_AVAILABLE_ITEM"),t.style.display=""):t.style.display="none")},showDelayedItemsCount:function(){var t=this.getEntity(this.getCacheNode(this.ids.itemListWrapper),"basket-items-count",'[data-filter="delayed"]');BX.type.isDomNode(t)&&(parseInt(this.result.DELAYED_BASKET_ITEMS_COUNT)?(t.innerHTML=this.result.DELAYED_BASKET_ITEMS_COUNT+" "+this.getGoodsMessage(this.result.DELAYED_BASKET_ITEMS_COUNT,"SBB_DELAYED_ITEM"),t.style.display=""):t.style.display="none")},getGoodsMessage:function(t,e){t=10<t&&t<20?0:t%10,e=1==t?e||"SBB_GOOD":2<=t&&t<=4?e?e+"_2":"SBB_GOOD_2":e?e+"S":"SBB_GOODS";return BX.message(e)},bindTotalEvents:function(t){this.result.TOTAL_RENDER_DATA.DISABLE_CHECKOUT||BX.bind(this.getEntity(t,"basket-checkout-button"),"click",BX.proxy(this.checkOutAction,this)),BX.bind(this.getEntity(t,"basket-coupon-input"),"change",BX.proxy(this.addCouponAction,this)),BX.bind(this.getEntity(t,"basket-coupon-input"),"paste",BX.proxy(this.pasteCouponAction,this));for(var e=this.getEntities(t,"basket-coupon-delete"),i=0,s=e.length;i<s;i++)BX.bind(e[i],"click",BX.proxy(this.removeCouponAction,this))},checkOutAction:function(){document.location.href=this.params.PATH_TO_ORDER},addCouponAction:function(t){t=BX.getEventTarget(t);t&&t.value&&(this.actionPool.addCoupon(t.value),t.disabled=!0)},pasteCouponAction:function(t){setTimeout(BX.delegate(function(){this.addCouponAction(t)},this),10)},removeCouponAction:function(){var t=BX.proxy_context&&BX.util.trim(BX.proxy_context.getAttribute("data-coupon"));t&&this.actionPool.removeCoupon(t)},initializeActionPool:function(){this.actionPool=new BX.Sale.BasketActionPool(this)},initializeFilter:function(){this.filter=new BX.Sale.BasketFilter(this)},sendRequest:function(t,e){this.lastAction=t,"recalculateAjax"===this.lastAction&&(e.lastAppliedDiscounts=BX.util.array_keys(this.result.FULL_DISCOUNT_LIST).join(","),"Y"===this.params.USE_ENHANCED_ECOMMERCE&&this.checkAnalytics(e)),BX.ajax({method:"POST",dataType:"json",url:this.ajaxUrl,data:this.getData(e),onsuccess:BX.delegate(function(t){this.actionPool.doProcessing(!1),BX.type.isPlainObject(t)&&(this.actionPool.setRefreshStatus(t.BASKET_REFRESHED),t.RESTORED_BASKET_ITEMS&&this.restoreBasketItems(t.RESTORED_BASKET_ITEMS),t.DELETED_BASKET_ITEMS&&this.deleteBasketItems(t.DELETED_BASKET_ITEMS,"Y"===this.params.SHOW_RESTORE),t.MERGED_BASKET_ITEMS&&this.deleteBasketItems(t.MERGED_BASKET_ITEMS,!1,!0),this.applyBasketResult(t.BASKET_DATA),this.editBasketItems(this.getItemsToEdit()),this.editTotal(),this.applyPriceAnimation(),this.editWarnings(),this.actionPool.switchTimer(),this.isBasketIntegrated()&&this.isBasketChanged()&&BX.Sale.OrderAjaxComponent.sendRequest())},this),onfailure:BX.delegate(function(){this.actionPool.doProcessing(!1)},this)})},isBasketIntegrated:function(){return"Y"===this.params.BASKET_WITH_ORDER_INTEGRATION},isBasketChanged:function(){return this.changedItems.length},addPriceAnimationData:function(t,e,i,s){BX.type.isPlainObject(this.priceAnimationData)||this.clearPriceAnimationData(),this.priceAnimationData.start[t]=parseFloat(e),this.priceAnimationData.finish[t]=parseFloat(i),this.priceAnimationData.currency[t]=s,this.priceAnimationData.int[t]=parseFloat(e)===parseInt(e)&&parseFloat(i)===parseInt(i)},clearPriceAnimationData:function(){this.priceAnimationData={start:{},finish:{},currency:{},int:{}}},applyBasketResult:function(t){if(this.changedItems=[],this.clearPriceAnimationData(),BX.type.isPlainObject(t)){if(t.BASKET_ITEM_RENDER_DATA){var e,i;for(e in t.BASKET_ITEM_RENDER_DATA)if(t.BASKET_ITEM_RENDER_DATA.hasOwnProperty(e)){if((i=t.BASKET_ITEM_RENDER_DATA[e]).WARNINGS=this.checkBasketItemWarnings(i,t.WARNING_MESSAGE_WITH_CODE),this.items[i.ID]){if(JSON.stringify(this.items[i.ID])===JSON.stringify(i))continue}else this.addSortedItem(i.ID,!0);this.changedItems.push(i.ID),i=this.checkBasketItemsAnimation(i),this.items[i.ID]=i}this.changedItems=BX.util.array_unique(this.changedItems.concat(this.getChangedSimilarOffers())),this.isBasketChanged()&&this.sortSortedItems(!0)}t.TOTAL_RENDER_DATA&&(t.TOTAL_RENDER_DATA=this.checkTotalAnimation(t.TOTAL_RENDER_DATA)),this.result=t}},itemSortFunction:function(t,e){return this.items.hasOwnProperty(t)&&this.items.hasOwnProperty(e)?parseFloat(this.items[t].SORT)-parseFloat(this.items[e].SORT):0},getChangedSimilarOffers:function(){var t,e,i,s=[],a=this.getHashMap();for(i in a)if(a.hasOwnProperty(i))if(1<a[i].length)for(var n=0;n<a[i].length;n++){for(var r=e=t=0;r<a[i].length;r++)a[i][r]!=a[i][n]&&(t+=parseFloat(this.items[a[i][r]].QUANTITY)),e+=parseFloat(this.items[a[i][r]].QUANTITY);this.items[a[i][n]].HAS_SIMILAR_ITEMS&&this.items[a[i][n]].SIMILAR_ITEMS_QUANTITY==t&&this.items[a[i][n]].TOTAL_SIMILAR_ITEMS_QUANTITY==e||(s.push(a[i][n]),this.items[a[i][n]].HAS_SIMILAR_ITEMS=!0,this.items[a[i][n]].SIMILAR_ITEMS_QUANTITY=t,this.items[a[i][n]].TOTAL_SIMILAR_ITEMS_QUANTITY=e,this.items[a[i][n]].ALL_AVAILABLE_QUANTITY=this.items[a[i][n]].AVAILABLE_QUANTITY,this.items[a[i][n]].AVAILABLE_QUANTITY=this.items[a[i][n]].ALL_AVAILABLE_QUANTITY-t)}else a[i][0]&&this.items[a[i][0]].HAS_SIMILAR_ITEMS&&(s.push(a[i][0]),delete this.items[a[i][0]].HAS_SIMILAR_ITEMS,delete this.items[a[i][0]].SIMILAR_ITEMS_QUANTITY,delete this.items[a[i][0]].TOTAL_SIMILAR_ITEMS_QUANTITY,this.items[a[i][0]].AVAILABLE_QUANTITY=this.items[a[i][0]].ALL_AVAILABLE_QUANTITY,delete this.items[a[i][0]].ALL_AVAILABLE_QUANTITY);return s},getHashMap:function(){var t,e={};for(t in this.items)this.items.hasOwnProperty(t)&&this.isItemAvailable(t)&&(e.hasOwnProperty(this.items[t].HASH)||(e[this.items[t].HASH]=[]),e[this.items[t].HASH].push(t));return e},isItemAvailable:function(t){var e=this.filter.isActive()?this.filter.realSortedItems:this.sortedItems;return!this.items[t].NOT_AVAILABLE&&!this.items[t].SHOW_RESTORE&&BX.util.in_array(t,e)},checkTotalAnimation:function(t){return this.result&&this.result.TOTAL_RENDER_DATA&&parseFloat(this.result.TOTAL_RENDER_DATA.PRICE)>parseFloat(t.PRICE)&&(t.PRICE_NEW=t.PRICE,t.PRICE=this.result.TOTAL_RENDER_DATA.PRICE,t.PRICE_FORMATED_NEW=t.PRICE_FORMATED,t.PRICE_FORMATED=this.result.TOTAL_RENDER_DATA.PRICE_FORMATED,this.addPriceAnimationData(this.ids.total,t.PRICE,t.PRICE_NEW,t.CURRENCY)),t},checkBasketItemsAnimation:function(t){var e,i=t.ID;return this.items[i]&&(e=BX(this.ids.quantity+i),BX.type.isDomNode(e)&&!this.actionPool.isItemInPool(i)&&parseFloat(e.value)!==parseFloat(t.QUANTITY)&&(t.QUANTITY_ANIMATION=!0,this.actionPool.clearLastActualQuantityPool(i)),parseFloat(this.items[i].PRICE)>parseFloat(t.PRICE)&&(t.PRICE_NEW=t.PRICE,t.PRICE=this.items[i].PRICE,t.PRICE_FORMATED_NEW=t.PRICE_FORMATED,t.PRICE_FORMATED=this.items[i].PRICE_FORMATED,this.addPriceAnimationData(this.ids.price+i,t.PRICE,t.PRICE_NEW,t.CURRENCY)),BX.util.in_array("SUM",this.params.COLUMNS_LIST)&&parseFloat(this.items[i].SUM_PRICE)>parseFloat(t.SUM_PRICE)&&parseFloat(this.items[i].QUANTITY)===parseFloat(t.QUANTITY)&&(t.SUM_PRICE_NEW=t.SUM_PRICE,t.SUM_PRICE=this.items[i].SUM_PRICE,t.SUM_PRICE_FORMATED_NEW=t.SUM_PRICE_FORMATED,t.SUM_PRICE_FORMATED=this.items[i].SUM_PRICE_FORMATED,this.addPriceAnimationData(this.ids.sumPrice+i,t.SUM_PRICE,t.SUM_PRICE_NEW,t.CURRENCY))),t},getData:function(t){return(t=t||{})[this.params.ACTION_VARIABLE]=this.lastAction,t.via_ajax="Y",t.site_id=this.siteId,t.site_template_id=this.siteTemplateId,t.sessid=BX.bitrix_sessid(),t.template=this.template,t.signedParamsString=this.signedParamsString,t},startLoader:function(){},endLoader:function(){},editWarnings:function(){this.editGeneralWarnings(),this.editBasketItemWarnings(),this.toggleWarningBlock(),this.showWarningItemsCount()},editGeneralWarnings:function(){var t=this.getEntity(this.getCacheNode(this.ids.warning),"basket-general-warnings");if(BX.type.isDomNode(t)){var e=t.innerHTML;if(this.result.WARNING_MESSAGE_WITH_CODE)for(var i in this.result.WARNING_MESSAGE_WITH_CODE)this.result.WARNING_MESSAGE_WITH_CODE.hasOwnProperty(i)&&(this.items[i]||-1!==e.indexOf(this.result.WARNING_MESSAGE_WITH_CODE[i])||(e+=this.result.WARNING_MESSAGE_WITH_CODE[i]+"<br/>"));e?(t.innerHTML=e,t.style.display=""):(t.style.display="none",t.innerHTML="")}},editBasketItemWarnings:function(){var t,e=this.getEntity(this.getCacheNode(this.ids.warning),"basket-item-warnings");BX.type.isDomNode(e)&&(this.warningItems.length?(t=this.getEntity(e,"basket-items-warning-count"),BX.type.isDomNode(t)&&(t.innerHTML=this.warningItems.length+" "+this.getGoodsMessage(this.warningItems.length)),e.style.display=""):"none"!==e.style.display&&(e.style.display="none",this.filter.isActive()&&this.toggleFilter("all")))},toggleWarningBlock:function(){var t,e,i=this.getCacheNode(this.ids.warning);BX.type.isDomNode(i)&&(t=this.getEntity(i,"basket-general-warnings"),e=this.getEntity(i,"basket-item-warnings"),BX.type.isDomNode(t)&&"none"!==t.style.display||BX.type.isDomNode(e)&&"none"!==e.style.display?i.style.display="":i.style.display="none")},checkBasketItemWarnings:function(t,e){if(t){var i=this.items[t.ID]&&"refreshAjax"===this.lastAction?this.items[t.ID].WARNINGS:[];if(BX.type.isArray(e[t.ID])&&e[t.ID].length)for(var s in e[t.ID])e[t.ID].hasOwnProperty(s)&&!BX.util.in_array(e[t.ID][s],i)&&i.push(e[t.ID][s]);return i.length?BX.util.in_array(t.ID,this.warningItems)||this.warningItems.push(t.ID):BX.util.in_array(t.ID,this.warningItems)&&this.warningItems.splice(BX.util.array_search(t.ID,this.warningItems),1),i}},removeAllWarnings:function(t){this.clearGeneralWarnings(),this.clearBasketItemsWarnings(),this.editWarnings(),t&&t.preventDefault()},clearGeneralWarnings:function(){this.result.WARNING_MESSAGE_WITH_CODE={};var t=this.getEntity(this.getCacheNode(this.ids.warning),"basket-general-warnings");BX.type.isDomNode(t)&&(t.innerHTML="")},clearBasketItemsWarnings:function(){var t,e=[];for(t in this.warningItems)this.warningItems.hasOwnProperty(t)&&(this.items[this.warningItems[t]].WARNINGS=[],this.isItemShown(this.warningItems[t])&&e.push(this.warningItems[t]));this.warningItems=[],this.editBasketItems(e)},isItemShown:function(t){return BX.util.in_array(t,this.shownItems)},initializeBasketItems:function(){if(0!==Object.keys(this.items).length)for(var t=0;t<this.sortedItems.length&&!(this.useDynamicScroll&&this.shownItems.length>=this.maxItemsShowCount);t++)this.createBasketItem(this.sortedItems[t])},createBasketItem:function(t){var e,i;!this.items[t]||(i=this.getTemplate("basket-item-template"))&&(e=this.renderBasketItem(i,this.items[t]),i=BX.util.array_search(t,this.sortedItems),this.shownItems.length&&0<=i?i<BX.util.array_search(this.shownItems[0],this.sortedItems)?(BX(this.ids.item+this.shownItems[0]).insertAdjacentHTML("beforebegin",e),this.shownItems.unshift(t)):i>BX.util.array_search(this.shownItems[this.shownItems.length-1],this.sortedItems)?(BX(this.ids.item+this.shownItems[this.shownItems.length-1]).insertAdjacentHTML("afterend",e),this.shownItems.push(t)):(BX(this.ids.item+this.sortedItems[i+1]).insertAdjacentHTML("beforebegin",e),this.shownItems.splice(i+1,0,t)):(this.getCacheNode(this.ids.itemListTable).insertAdjacentHTML("beforeend",e),this.shownItems.push(t)),this.bindBasketItemEvents(this.items[t]),this.filter.isActive()&&this.filter.highlightSearchMatch(this.items[t]))},getItemsToEdit:function(){var t=[];if(this.isBasketChanged())for(var e in this.changedItems)this.changedItems.hasOwnProperty(e)&&this.isItemShown(this.changedItems[e])&&t.push(this.changedItems[e]);return t},getItemsAfter:function(){var t=[];if(this.useDynamicScroll){var e=this.shownItems[this.shownItems.length-1]||!1;if(e)for(var i=0,s=BX.util.array_search(e,this.sortedItems);this.sortedItems[++s]&&i++<this.maxItemsShowCount;)t.push(this.sortedItems[s])}return t},editBasketItems:function(t){var e,i;if(t&&0!==t.length)for(e in t)t.hasOwnProperty(e)&&BX.type.isPlainObject(this.items[t[e]])&&(i=this.items[t[e]],this.actionPool.isItemInPool(i.ID)?BX.util.in_array(i.ID,this.postponedItems)||this.postponedItems.push(i.ID):BX.type.isDomNode(BX(this.ids.item+i.ID))?(this.redrawBasketItemNode(i.ID),this.applyQuantityAnimation(i.ID)):this.createBasketItem(i.ID))},editPostponedBasketItems:function(){if(this.postponedItems.length){var t,e=[];for(t in this.postponedItems)this.postponedItems.hasOwnProperty(t)&&this.isItemShown(this.postponedItems[t])&&e.push(this.postponedItems[t]);this.postponedItems=[],this.editBasketItems(e)}},applyQuantityAnimation:function(t){var e=BX(this.ids.item+t);BX.type.isDomNode(e)&&this.items[t]&&this.items[t].QUANTITY_ANIMATION&&BX.addClass(BX(this.ids.quantity+t),"basket-updated")},applyPriceAnimation:function(){var n,r;this.priceAnimationData&&0!==Object.keys(this.priceAnimationData.start).length&&(n=this.priceAnimationData,r={},new BX.easing({duration:"Y"===this.params.USE_PRICE_ANIMATION?this.duration.priceAnimation:1,start:n.start,finish:n.finish,transition:BX.easing.makeEaseOut(BX.easing.transitions.quad),step:BX.delegate(function(t){for(var e in n.start)if(n.start.hasOwnProperty(e)){var i;r[e]||(e===this.ids.total?r[e]=this.getEntities(this.getCacheNode(this.ids.basketRoot),this.ids.total):(i=BX(e),r[e]=i?[i]:[])),n.int[e]||(t[e]=(t[e]+t[e]%1e3/1e3).toFixed(5));for(var s=0;s<r[e].length;s++)r[e][s].innerHTML=this.getFormatPrice(t[e],n.currency[e])}},this),complete:BX.delegate(function(){var t,e,i,s;for(t in n.start)if(n.start.hasOwnProperty(t)){e=this.getFormatPrice(n.finish[t],n.currency[t]);for(var a=0;a<r[t].length;a++)r[t][a].innerHTML=e;-1!==t.indexOf(this.ids.sumPrice)?(s="SUM_PRICE",i=t.substr(this.ids.sumPrice.length)):-1!==t.indexOf(this.ids.price)?(s="PRICE",i=t.substr(this.ids.price.length)):-1!==t.indexOf(this.ids.total)?(s="TOTAL",i=""):s=i="",BX.type.isNotEmptyString(s)&&(i?(this.items[i][s]=n.finish[t],delete this.items[i][s+"_NEW"],this.items[i][s+"_FORMATED"]=e,delete this.items[i][s+"_FORMATED_NEW"]):"TOTAL"===s&&(this.result.TOTAL_RENDER_DATA.PRICE=n.finish[t],delete this.result.TOTAL_RENDER_DATA.PRICE_NEW,this.result.TOTAL_RENDER_DATA.PRICE_FORMATED=e,delete this.result.TOTAL_RENDER_DATA.PRICE_FORMATED_NEW))}this.filter.highlightFoundItems()},this)}).animate())},getFormatPrice:function(t,e){return BX.Currency.currencyFormat(t,e,!0)},deleteBasketItems:function(t,e,i){if(t&&t.length)for(var s in t)t.hasOwnProperty(s)&&this.deleteBasketItem(t[s],e,i)},deleteBasketItem:function(t,e,i){this.items[t].NOT_AVAILABLE&&e&&(i=!(e=!1)),e?(this.items[t].SHOW_RESTORE=!0,this.items[t].SHOW_LOADING=!1,this.redrawBasketItemNode(t)):(this.changeShownItem(t),BX.remove(BX(this.ids.item+t))),i&&(this.changeSortedItem(t,!1,!0),this.changeShownItem(t,!1,!0))},addSortedItem:function(t,e){this.sortedItems.push(t.toString()),e&&this.filter.isActive()&&this.filter.realSortedItems.push(t.toString())},changeSortedItem:function(t,e,i){var s=BX.util.array_search(t,this.sortedItems);0<=s&&(e?this.sortedItems.splice(s,1,e.toString()):this.sortedItems.splice(s,1)),i&&this.filter.isActive()&&0<=(s=BX.util.array_search(t,this.filter.realSortedItems))&&(e?this.filter.realSortedItems.splice(s,1,e.toString()):this.filter.realSortedItems.splice(s,1))},sortSortedItems:function(t){this.sortedItems.sort(BX.proxy(this.itemSortFunction,this)),t&&this.filter.isActive()&&this.filter.realSortedItems.sort(BX.proxy(this.itemSortFunction,this))},changeShownItem:function(t,e,i){var s=BX.util.array_search(t,this.shownItems);0<=s&&(e?this.shownItems.splice(s,1,e.toString()):this.shownItems.splice(s,1)),i&&this.filter.isActive()&&0<=(s=BX.util.array_search(t,this.filter.realShownItems))&&(e?this.filter.realShownItems.splice(s,1,e.toString()):this.filter.realShownItems.splice(s,1))},redrawBasketItemNode:function(t){var e,i,s,a=BX(this.ids.item+t);this.items[t]&&BX.type.isDomNode(a)&&((s=this.getTemplate("basket-item-template"))&&(e=BX(this.ids.itemHeightAligner+t),BX.type.isDomNode(e)&&(i=e.clientHeight),s=this.renderBasketItem(s,this.items[t]),a.insertAdjacentHTML("beforebegin",s),BX.remove(a),i&&(e=BX(this.ids.itemHeightAligner+t),BX.type.isDomNode(e)&&e.clientHeight<i&&(e.style.minHeight=i+"px",setTimeout(function(){e.style.minHeight="0px"},1))),this.bindBasketItemEvents(this.items[t]),this.filter.isActive()&&this.filter.highlightSearchMatch(this.items[t])))},restoreBasketItems:function(t){var e,i,s;if(t&&0!==Object.keys(t).length)for(e in t)t.hasOwnProperty(e)&&(i=t[e],this.isItemShown(e)&&(this.changeShownItem(e,i,!0),s=BX(this.ids.item+e),BX.type.isDomNode(s)&&(s.id=this.ids.item+i,s.setAttribute("data-id",i))),this.changeSortedItem(e,!1,!0))},bindBasketItemEvents:function(t){var e;t&&(e=BX(this.ids.item+t.ID),BX.type.isDomNode(e)&&(this.bindQuantityEvents(e,t),this.bindSkuEvents(e,t),this.bindImageEvents(e,t),this.bindActionEvents(e,t),this.bindRestoreAction(e,t),this.bindItemWarningEvents(e,t)))},bindQuantityEvents:function(t,e){var i,s;t&&e&&this.isItemAvailable(e.ID)&&((i=this.getEntity(t,"basket-item-quantity-block"))&&(s=this.isTouch?"touchstart":"mousedown",e=this.isTouch?"touchend":"mouseup",t=this.getEntity(i,"basket-item-quantity-minus"),BX.bind(t,s,BX.proxy(this.startQuantityInterval,this)),BX.bind(t,e,BX.proxy(this.clearQuantityInterval,this)),BX.bind(t,"mouseout",BX.proxy(this.clearQuantityInterval,this)),BX.bind(t,"click",BX.proxy(this.quantityMinus,this)),t=this.getEntity(i,"basket-item-quantity-plus"),BX.bind(t,s,BX.proxy(this.startQuantityInterval,this)),BX.bind(t,e,BX.proxy(this.clearQuantityInterval,this)),BX.bind(t,"mouseout",BX.proxy(this.clearQuantityInterval,this)),BX.bind(t,"click",BX.proxy(this.quantityPlus,this)),t=this.getEntity(i,"basket-item-quantity-field"),BX.bind(t,"change",BX.proxy(this.quantityChange,this))))},startQuantityInterval:function(){var t=BX.proxy_context,e="basket-item-quantity-minus"===t.getAttribute("data-entity")?BX.proxy(this.quantityMinus,this):BX.proxy(this.quantityPlus,this);this.quantityDelay=setTimeout(BX.delegate(function(){this.quantityTimer=setInterval(function(){e(t)},150)},this),300)},clearQuantityInterval:function(){clearTimeout(this.quantityDelay),clearInterval(this.quantityTimer)},quantityPlus:function(t){BX.type.isDomNode(t)||(t=BX.proxy_context,this.clearQuantityInterval());var e,i=this.getItemDataByTarget(t);i&&(e=BX(this.ids.quantity+i.ID),e=(t=this.isQuantityFloat(i))?parseFloat(e.value):Math.round(e.value),t=(t?parseFloat:parseInt)(i.MEASURE_RATIO),t=parseFloat((e+t).toFixed(5)),t=this.getCorrectQuantity(i,t),this.setQuantity(i,t))},quantityMinus:function(t){t=BX.type.isDomNode(t)?t:BX.proxy_context;var e,i=this.getItemDataByTarget(t);i&&(e=BX(this.ids.quantity+i.ID),e=(t=this.isQuantityFloat(i))?parseFloat(e.value):Math.round(e.value),t=(t?parseFloat:parseInt)(i.MEASURE_RATIO),t=parseFloat((e-t).toFixed(5)),t=this.getCorrectQuantity(i,t),this.setQuantity(i,t))},quantityChange:function(){var t,e=this.getItemDataByTarget(BX.proxy_context);e&&(t=BX(this.ids.quantity+e.ID),t=this.getCorrectQuantity(e,t.value),this.setQuantity(e,t))},isQuantityFloat:function(t){return"Y"===this.params.QUANTITY_FLOAT||parseInt(t.MEASURE_RATIO)!==parseFloat(t.MEASURE_RATIO)},getCorrectQuantity:function(t,e){var i=this.isQuantityFloat(t),s=(i?parseFloat:parseInt)(t.MEASURE_RATIO),a=0;(e=(i?parseFloat(e):parseInt(e,10))||0)<0&&(e=0),0<s&&e<s&&(e=s),"Y"===t.CHECK_MAX_QUANTITY&&0<(a=(i?parseFloat:parseInt)(t.AVAILABLE_QUANTITY))&&a<e&&(e=a);t=(e/s-(e/s).toFixed(0)).toFixed(5);return 0===parseFloat(t)?e:(0!==s&&1!==s&&(t=e*this.precisionFactor%(s*this.precisionFactor)/this.precisionFactor,0<s&&0<t&&(s/2<=t&&(0===a||e+s-t<=a)?e+=s-t:e-=t)),e=i?parseFloat(e):parseInt(e,10))},setQuantity:function(t,e){var i,s=BX(this.ids.quantity+t.ID);s&&(e=parseFloat(e),i=parseFloat(s.getAttribute("data-value")),s.value=e,parseFloat(t.QUANTITY)!==parseFloat(e)&&(this.animatePriceByQuantity(t,e),this.actionPool.changeQuantity(t.ID,e,i)))},animatePriceByQuantity:function(i,t){var s,e,a,n,r=BX(this.ids.sumPrice+i.ID);BX.type.isDomNode(r)&&(s=t/parseFloat(i.MEASURE_RATIO),e=parseFloat(i.SUM_PRICE),a=parseFloat(i.PRICE)*s,n=parseInt(e)===parseFloat(e)&&parseInt(a)===parseFloat(a),e!==a&&(this.items[i.ID].QUANTITY=t,this.items[i.ID].SUM_PRICE=a,new BX.easing({duration:"Y"===this.params.USE_PRICE_ANIMATION?this.duration.priceAnimation:1,start:{price:e},finish:{price:a},transition:BX.easing.makeEaseOut(BX.easing.transitions.quad),step:BX.delegate(function(t){n||(t.price=(t.price+t.price%1e3/1e3).toFixed(5)),r.innerHTML=this.getFormatPrice(t.price,i.CURRENCY)},this),complete:BX.delegate(function(){var t,e;r.innerHTML=this.getFormatPrice(a,i.CURRENCY),t=BX(this.ids.sumPriceOld+i.ID),BX.type.isDomNode(t)&&(e=parseFloat(i.FULL_PRICE)*s,t.innerHTML=this.getFormatPrice(e,i.CURRENCY)),t=BX(this.ids.sumPriceDiff+i.ID),BX.type.isDomNode(t)&&(e=parseFloat(i.DISCOUNT_PRICE)*s,t.innerHTML=this.getFormatPrice(e,i.CURRENCY))},this)}).animate()))},getItemDataByTarget:function(t){var e=!1,t=BX.findParent(t,{attrs:{"data-entity":"basket-item"}});return t&&(t=t.getAttribute("data-id"),e=this.items[t]),e},bindSkuEvents:function(t,e){if(t&&e)for(var i,s,a,n=this.getEntities(t,"basket-item-sku-block"),r=0,o=n.length;r<o;r++)for(s=0,a=(i=this.getEntities(n[r],"basket-item-sku-field")).length;s<a;s++)BX.bind(i[s],"click",BX.proxy(this.changeSku,this))},changeSku:function(){var t=BX.proxy_context;if(!BX.hasClass(t,"selected")){var e=this.getItemDataByTarget(t);if(e){var i=BX(this.ids.item+e.ID);if(i){for(var s=this.getEntities(t.parentNode,"basket-item-sku-field"),a=0,n=s.length;a<n;a++)s[a].isEqualNode(t)?BX.addClass(s[a],"selected"):BX.removeClass(s[a],"selected");this.actionPool.changeSku(e.ID,this.getSkuPropertyValues(i),this.getInitialSkuPropertyValues(i))}}}},getSkuPropertyValues:function(t){for(var e={},i=this.getEntities(t,"basket-item-sku-field",".selected"),s=0,a=i.length;s<a;s++)e[i[s].getAttribute("data-property")]=BX.util.htmlspecialcharsback(i[s].getAttribute("data-value-id"));return e},getInitialSkuPropertyValues:function(t){for(var e={},i=this.getEntities(t,"basket-item-sku-field",'[data-initial="true"]'),s=0,a=i.length;s<a;s++)e[i[s].getAttribute("data-property")]=BX.util.htmlspecialcharsback(i[s].getAttribute("data-value-id"));return e},bindImageEvents:function(t,e){if(t&&e)for(var i=t.querySelectorAll('[data-product-property-role="image"]'),s=0,a=i.length;s<a;s++)BX.bind(i[s],"click",BX.proxy(this.showPropertyImagePopup,this))},showPropertyImagePopup:function(){var t,e,n,r,i=BX.proxy_context,s=this.getItemDataByTarget(i),a=i.getAttribute("data-column-property-code"),o=i.getAttribute("data-image-index");if(s&&s.COLUMN_LIST)for(e in s.COLUMN_LIST)if(s.COLUMN_LIST.hasOwnProperty(e)&&s.COLUMN_LIST[e].CODE===a&&s.COLUMN_LIST[e].VALUE[o]){t=s.COLUMN_LIST[e].VALUE[o].IMAGE_SRC_ORIGINAL;break}t&&(this.imagePopup&&this.imagePopup.destroy(),n="bx-soa-image-popup-content",(r=this).imagePopup=new BX.PopupWindow("bx-soa-image-popup",null,{lightShadow:!0,offsetTop:0,offsetLeft:0,closeIcon:{top:"3px",right:"10px"},autoHide:!0,bindOptions:{position:"bottom"},closeByEsc:!0,zIndex:100,events:{onPopupShow:function(){BX.create("IMG",{props:{src:t},events:{load:function(){var t,e,i,s,a=BX(n);a&&(t=BX.GetWindowInnerSize(),e=r.isMobile?.5:.9,BX.cleanNode(a),a.appendChild(this),i=a.offsetHeight,s=a.offsetWidth,i>t.innerHeight*e&&(a.style.height=t.innerHeight*e+"px",a.style.width=s*(t.innerHeight*e/i)+"px",i=a.offsetHeight,s=a.offsetWidth),s>t.innerWidth*e&&(a.style.width=t.innerWidth*e+"px",a.style.height=i*(t.innerWidth*e/s)+"px"),a.style.height=a.offsetHeight+"px",a.style.width=a.offsetWidth+"px",r.imagePopup.adjustPosition())}}})},onPopupClose:function(){this.destroy()}},content:BX.create("DIV",{props:{id:n}})}),this.imagePopup.show())},bindActionEvents:function(t,e){if(t&&e){var i;if(BX.util.in_array("DELETE",this.params.COLUMNS_LIST))for(var s=0,a=(i=this.getEntities(t,"basket-item-delete")).length;s<a;s++)"Y"===this.params.CONFIRM_REMOVE_PRODUCT_USE?BX.bind(i[s],"click",BX.proxy(function(){this.showConfirmRemoveProductContainer(this.confirmRemoveProductAgree)},this)):BX.bind(i[s],"click",BX.proxy(this.deleteAction,this));if(BX.util.in_array("DELAY",this.params.COLUMNS_LIST))for(s=0,a=(i=this.getEntities(t,"basket-item-add-delayed")).length;s<a;s++)BX.bind(i[s],"click",BX.proxy(this.addDelayedAction,this));for(s=0,a=(i=this.getEntities(t,"basket-item-remove-delayed")).length;s<a;s++)BX.bind(i[s],"click",BX.proxy(this.removeDelayedAction,this));i=this.getEntity(t,"basket-item-merge-sku-link"),BX.bind(i,"click",BX.proxy(this.mergeAction,this)),i=this.getEntity(t,"basket-item-show-similar-link"),BX.bind(i,"click",BX.delegate(function(){this.toggleFilter("similar")},this)),i=this.getEntity(t,"quick-view"),BX.bind(i,"click",BX.proxy(this.quickViewAction,this));for(s=0,a=(i=this.getEntities(t,"basket-item-show-form")).length;s<a;s++)BX.bind(i[s],"click",BX.proxy(this.showAlertFormAction,this))}},deleteAction:function(){var t=this.getItemDataByTarget(BX.proxy_context);t&&(this.actionPool.deleteItem(t.ID),this.items[t.ID].SHOW_LOADING=!0,"Y"===this.params.SHOW_RESTORE&&this.isItemAvailable(t.ID)&&(this.items[t.ID].SHOW_RESTORE=!0),this.redrawBasketItemNode(t.ID))},quickViewAction:function(){var t=this.getItemDataByTarget(BX.proxy_context);!t||(t=JSON.parse(t.QUICK_VIEW_DATA).quickView).show&&this.quickViewShow(t,this.quickItemsId)},showConfirmRemoveProductContainer:function(t){var e=this,i=e.getItemDataByTarget(BX.proxy_context),s=e.nodes["basket-root"].querySelector('[data-role="confirm.remove.product"]'),a=e.getEntities(s,"confirm.remove.product.cancel"),n=e.getEntities(s,"confirm.remove.product.agree"),r=e.getEntities(s,"confirm.remove.product.delay");n[0].onclick=function(){t(i.ID,e)},a.forEach(function(t){t.onclick=function(){s.dataset.state="hidden"}}),i.DELAYED?r[0].dataset.state="hidden":r[0].onclick=function(){e.confirmRemoveProductAddDelay(i.ID,e)},s.dataset.state="visible"},confirmRemoveProductAgree:function(t,e){var i;t&&e&&(i=e.nodes["basket-root"].querySelector('[data-role="confirm.remove.product"]'),e.actionPool.deleteItem(t),e.items[t].SHOW_LOADING=!0,"Y"===e.params.SHOW_RESTORE&&e.isItemAvailable(t)&&(e.items[t].SHOW_RESTORE=!0),e.redrawBasketItemNode(t),i.dataset.state="hidden")},confirmRemoveProductAddDelay:function(t,e){var i;t&&e&&(i=e.nodes["basket-root"].querySelector('[data-role="confirm.remove.product"]'),e.actionPool.addDelayed(t),e.items[t].SHOW_LOADING=!0,e.redrawBasketItemNode(t),e.app.api.basket.update(),i.dataset.state="hidden")},addDelayedAction:function(){var t=this.getItemDataByTarget(BX.proxy_context);t&&(this.actionPool.addDelayed(t.ID),this.items[t.ID].SHOW_LOADING=!0,this.redrawBasketItemNode(t.ID),this.app.api.basket.update())},removeDelayedAction:function(){var t=this.getItemDataByTarget(BX.proxy_context);t&&(this.actionPool.removeDelayed(t.ID),this.items[t.ID].SHOW_LOADING=!0,this.redrawBasketItemNode(t.ID),this.app.api.basket.update())},mergeAction:function(){var t=this.getItemDataByTarget(BX.proxy_context);t&&this.actionPool.mergeSku(t.ID)},bindRestoreAction:function(t,e){t&&e&&"Y"===this.params.SHOW_RESTORE&&(BX.bind(this.getEntity(t,"basket-item-restore-button"),"click",BX.delegate(function(){this.actionPool.restoreItem(e.ID,{PRODUCT_ID:e.PRODUCT_ID,QUANTITY:e.QUANTITY,PROPS:e.PROPS_ALL,SORT:e.SORT,MODULE:e.MODULE,PRODUCT_PROVIDER_CLASS:e.PRODUCT_PROVIDER_CLASS}),this.items[e.ID].SHOW_RESTORE=!1,this.items[e.ID].SHOW_LOADING=!0,this.redrawBasketItemNode(e.ID)},this)),BX.bind(this.getEntity(t,"basket-item-close-restore-button"),"click",BX.delegate(function(){this.deleteBasketItem(e.ID,!1,!0)},this)))},bindItemWarningEvents:function(t,e){t&&e&&BX.bind(this.getEntity(BX(this.ids.item+e.ID),"basket-item-warning-close"),"click",BX.proxy(this.closeItemWarnings,this))},closeItemWarnings:function(){var t=BX.proxy_context;BX.type.isDomNode(t)&&(t=this.getItemDataByTarget(t),this.items[t.ID].WARNINGS=[],this.warningItems.splice(BX.util.array_search(t.ID,this.warningItems),1),this.redrawBasketItemNode(t.ID),this.editWarnings())},renderBasketItem:function(t,e){e=BX.clone(e);return BX.type.isPlainObject(e)&&(e.USE_FILTER=this.useItemsFilter&&!this.filter.currentFilter.similarHash.length),Mustache.render(t,e)},render:function(t,e){return Mustache.render(t,e)},checkAnalytics:function(t){if(t&&t.basket){var e,i,s={};for(i in t.basket)t.basket.hasOwnProperty(i)&&(0<=i.indexOf("QUANTITY_")?(e=i.substr(9),this.items[e]&&(s[e]=parseFloat(t.basket[i])-parseFloat(BX(this.ids.quantity+e).getAttribute("data-value")))):0<=i.indexOf("DELETE_")?(e=i.substr(7),this.items[e]&&(s[e]=-parseFloat(this.items[e].QUANTITY))):0<=i.indexOf("RESTORE_")&&(e=i.substr(8),this.items[e]&&(s[e]=parseFloat(this.items[e].QUANTITY))));this.setAnalyticsDataLayer(s)}},setAnalyticsDataLayer:function(t){if(t&&0!==Object.keys(t).length){window[this.params.DATA_LAYER_NAME]=window[this.params.DATA_LAYER_NAME]||[];var e,i=[],s=[];for(e in t)t.hasOwnProperty(e)&&(0<t[e]?i.push(this.getItemAnalyticsInfo(e,t[e])):t[e]<0&&s.push(this.getItemAnalyticsInfo(e,t[e])));i.length&&window[this.params.DATA_LAYER_NAME].push({event:"addToCart",ecommerce:{currencyCode:this.items[e].CURRENCY||"",add:{products:i}}}),s.length&&window[this.params.DATA_LAYER_NAME].push({event:"removeFromCart",ecommerce:{currencyCode:this.items[e].CURRENCY||"",remove:{products:s}}})}},getItemAnalyticsInfo:function(t,e){if(!this.items[t])return{};for(var i=(this.items[t].BRAND||"").split(",  ").join("/"),s=[],a=this.getEntities(BX(this.ids.item+t),"basket-item-sku-field",".selected"),n=0,r=a.length;n<r;n++)s.push(a[n].getAttribute("data-sku-name"));return{name:this.items[t].NAME||"",id:this.items[t].PRODUCT_ID||"",price:this.items[t].PRICE||0,brand:i,variant:s.join("/"),quantity:Math.abs(e)}}}}();
/* End */
;; /* /bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/mustache.min.js?17268534985460*/
; /* /bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/action-pool.min.js?17268534984227*/
; /* /bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/filter.min.js?172685349810198*/
; /* /bitrix/templates/universe_s3/components/bitrix/sale.basket.basket/template.1/js/component.min.js?172685349836302*/
