1this.BX=this.BX||{},this.BX.Citrus=this.BX.Citrus||{},this.BX.Citrus.Vue=this.BX.Citrus.Vue||{},this.BX.Citrus.Vue.Component=this.BX.Citrus.Vue.Component||{},function(a,b){'use strict';let c={name:"BasketLine",store:BX.Citrus.Vuex.store,data:function(){return{params:{SHOW_PRODUCTS:"N",SHOW_IMAGE:"N",SHOW_PRICE:"N",SHOW_TOTAL_PRICE:"Y",PATH_TO_BASKET:"/personal/cart/",SHOW_NUM_PRODUCTS:"Y",SHOW_EMPTY_VALUES:"N"},result:{items:{},num_products:0,total_price:"",disable_use_basket:!1},siteId:"",ajaxPath:"",templateName:"",loading:!1}},created:function(){BX.addCustomEvent("OnBasketChange",this.refresh)},mounted:function(){headerDynamics()},computed:{loc(){return b.Vue.getFilteredPhrases("TSB1_")},count(){return 99<this.result.num_products?"99+":this.result.num_products}},methods:{setResult:function(a){this.result=a;let c=[];for(let d in this.result.items){let a=this.result.items[d];c.push(a.product_id),b.Vue.event.$emit("Citrus.Vue.Product:addedToBasket:"+a.product_id,{basketItem:a.id,name:"sale-basket-line"})}this.$store.dispatch("basket/load",c)},removeFromCart:function(a){a.id&&a.product_id&&!this.loading&&(this.loading=!0,a.loading=!0,BX.rest.callMethod("citrus.product.removeFromBasket",{id:a.id},c=>(this.loading=!1,!c.answer.hasOwnProperty("error")&&c.answer.hasOwnProperty("result")&&c.answer.result?void(a.product_id&&(this.$store.dispatch("basket/remove",a.product_id),b.Vue.event.$emit("Citrus.Vue.Product:removedFromBasket:"+a.product_id,{basketItem:0,name:"sale-basket-line"}),this.refresh()),a.loading=!1):void console.info(c.answer))))},refresh:function(){this.loading||(this.loading=!0,BX.ajax({url:this.ajaxPath,method:"POST",dataType:"json",timeout:30,data:BX.ajax.prepareData({sessid:BX.bitrix_sessid(),siteId:this.siteId,templateName:this.templateName,arParams:this.params}),onsuccess:a=>{this.loading=!1,this.result=a,BX.onCustomEvent("OnBasketChangeLine")},onfailure:a=>{this.loading=!1,console.error(a)}}))}}};a.BasketLine=c,a.default={BasketLine:c}}(this.BX.Citrus.Vue.Component.Sale=this.BX.Citrus.Vue.Component.Sale||{},BX); 2//# sourceMappingURL=script.js.map
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.