1function updateBasketInfoServices(refreshBasket){var basketFly;void 0===refreshBasket&&(refreshBasket=!0),$("#basket_line .basket_fly").length?$.ajax({url:arAsproOptions.SITE_DIR+"ajax/basket_fly.php",type:"post",success:function(html){$("#basket_line .basket_fly").addClass("loaded").html(html),window.matchMedia("(min-width: 769px)").matches&&($(".opener .basket_count").removeClass("small"),$('.tabs_content.basket li[item-section="AnDelCanBuy"]').addClass("cur"),$('#basket_line ul.tabs li[item-section="AnDelCanBuy"]').addClass("cur"),$("#basket_line .basket_fly .opener > div:eq(0)").addClass("cur"))}}):$("#ajax_basket").length&&(reloadTopBasket("add",$("#ajax_basket"),200,5e3,"Y"),basketTop("",$(".basket_hover_block"))),$(".wrapper1.basket_page").length&&refreshBasket&&BX.Sale.BasketComponent.sendRequest("refreshAjax",{fullRecalculation:"Y",otherParams:{param:"N"}})}$(document).on("click",".services_in_product .switch_block label",(function(){var $this=$(this),servItem=$this.closest(".services-item"),servBuyButton=servItem.find(".services-item__buy .button_block .to-cart"),switcherState=servItem.find("#"+$this.attr("for")).prop("checked"),parentProduct=$this.closest(".buy_services_wrap").attr("data-parent_product");if(servBuyButton.length)if(switcherState){var basketItem=arBasketAspro.SERVICES[servItem.attr("data-item_id")+"_"+parentProduct],currentWrapClasses=servItem.closest(".buy_services_wrap").attr("class");void 0!==basketItem&&basketItem.basket_id&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/item.php?delete_basket_id="+basketItem.basket_id,type:"post",success:function(html){updateBasketInfoServices(),getActualBasket()}}),$(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+"]").removeClass("services_on"),$(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+'] input[name="buy_switch_services"]').each((function(){var _th=$(this);_th.closest(".buy_services_wrap").attr("class")!==currentWrapClasses&&_th.prop("checked",!1)}))}else{var parentProductId=arBasketAspro.BASKET[parentProduct],currentWrapClasses=servItem.closest(".buy_services_wrap").attr("class"),isBasketPage=servItem.closest(".buy_services_wrap").hasClass("services_in_basket_page");(parentProductId||isBasketPage)&&servBuyButton[0].click(),$(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+"]").addClass("services_on"),$(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+'] input[name="buy_switch_services"]').each((function(){var _th=$(this);_th.closest(".buy_services_wrap").attr("class")!==currentWrapClasses&&_th.prop("checked",!0)}))}})),$(document).on("change",".services_in_product .counter_block input[type=text]",(function(e){var $this=$(this),servItem=$this.closest(".services-item"),servBuyButton=servItem.find(".services-item__buy .button_block .to-cart"),parentProduct=$this.closest(".buy_services_wrap").attr("data-parent_product"),servCount=servItem.find(".counter_block input.text").val();if($(".product-container .buy_services_wrap[data-parent_product="+parentProduct+"] .services-item[data-item_id="+servItem.attr("data-item_id")+"] .counter_block input.text").val(servCount),servBuyButton.length){var basketItem=arBasketAspro.SERVICES[servItem.attr("data-item_id")+"_"+parentProduct],quantity=$this.val();void 0!==basketItem&&basketItem.basket_id&&$.ajax({url:arAsproOptions.SITE_DIR+"ajax/item.php?update_basket_id="+basketItem.basket_id+"&quantity="+quantity,type:"post",success:function(html){updateBasketInfoServices(),getActualBasket()}})}})),$(document).on("click",".services_in_product .more-services-slide",(function(){var _this=$(this),servWrap=_this.closest(".buy_services_wrap");servWrap.toggleClass("show_all"),servWrap.hasClass("show_all")?_this.find(">span").text(_this.attr("data-close")):_this.find(">span").text(_this.attr("data-open"))})); 2//# sourceMappingURL=buy_services.min.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.