PageSourceSearch

https://wed-style.com.ua/wp-content/cache/min/1/wp-content/plugins…/assets/wooajaxcart.js?ver=1782147634

js wed-style.com.ua collected 2026-10-04 12:39:46 UTC 3,304 bytes, 16 lines download raw bytes

1jQuery(document).ready(function($){var wacUpdateTimeout=null;wacChange=function(qtyInput){if((wooajaxcart.confirm_zero_qty=='yes')&&!wacZeroQuantityCheck(qtyInput)){return!1}
2if(qtyInput.val()==0){var removeLink=qtyInput.closest('.cart_item').find('.product-remove a');removeLink.trigger('click');return!1}
3if(wacUpdateTimeout!==null){clearTimeout(wacUpdateTimeout)}
4wacUpdateTimeout=setTimeout(function(){wacRefreshCart(qtyInput)},wooajaxcart.ajax_timeout);return!0};wacRefreshCart=function(qtyInput){if(qtyInput.closest('.woocommerce-cart-form').length){var mainSelector=qtyInput.closest('.woocommerce-cart-form')}else{var mainSelector=$(document)}
5var updateButton=mainSelector.find("button[name='update_cart']:not(.dgfw-add-gift-button),input[name='update_cart']:not(.dgfw-add-gift-button)");updateButton.removeAttr('disabled').trigger('click').val(wooajaxcart.updating_text).prop('disabled',!0);$("a.checkout-button.wc-forward").addClass('disabled').html(wooajaxcart.updating_text)};var wacZeroQuantityCheck=function(qtyInput){if(parseInt(qtyInput.val())==0&&!confirm(wooajaxcart.warn_remove_text)){qtyInput.val(1);return!1}
6if(qtyInput.val().length===0&&!confirm(wooajaxcart.warn_remove_text)){qtyInput.val(1).trigger('change');return!1}
7return!0};var wacListenQtyChange=function(){$(document).on('change','.qty',function(e){if($('.bundle_add_to_cart_button').length){return!0}
8if($(this).is('select')&&($(this).attr('max')>0)&&(parseInt($(this).val())>parseInt($(this).attr('max')))){$(this).val($(this).attr('max'));e.preventDefault();return!1}
9return wacChange($(this))})};var wacFindInputQty=function(btn){var inputQty=btn.parent().parent().parent().find('.qty');if(!inputQty.length){inputQty=btn.closest('.cart').find('.qty')}
10if(!inputQty.length){inputQty=btn.closest('.product-quantity').find('.qty')}
11return inputQty};wacListenQtyButtons=function(){var fnIncrement=function(e){if($(this).hasClass('disabled')){e.preventDefault();return!1}
12var inputQty=wacFindInputQty($(this));inputQty.val(function(i,oldval){return++oldval});inputQty.trigger('change');return!1};var fnDecrement=function(e){if($(this).hasClass('disabled')){e.preventDefault();return!1}
13var inputQty=wacFindInputQty($(this));var oldVal=inputQty.val();if(inputQty.attr('min')!='undefined'&&parseInt(inputQty.attr('min'))>=oldVal){return!1}
14inputQty.val(--oldVal);inputQty.trigger('change');return!1};if($('.wac-btn-inc').length){if(!$('#wac-style-prod-qty').length){$("<style type='text/css' id='wac-style-prod-qty'>.product .quantity { display: inline; float: none !important; margin-right: 0 !important; }</style>").appendTo('head')}
15$('.wac-btn-inc').off('click.wac2910').on('click.wac2910',fnIncrement);$('.wac-btn-sub').off('click.wac2911').on('click.wac2911',fnDecrement);if($('.grid').length){setTimeout(wacListenQtyButtons,500)}}
16$(document).off('click.wac3000').on('click.wac3000','.wac-btn-inc',fnIncrement);$(document).off('click.wac3001').on('click.wac3001','.wac-btn-sub',fnDecrement)};wacListenQtyChange();wacListenQtyButtons();$(document.body).on('wc_fragments_refreshed',function(){wacListenQtyButtons()});$(document.body).on('added_to_cart',function(event,fragments,cart_hash){if($('.woocommerce-cart-form').length==0){$('body').append('<div class="woocommerce-cart-form" style="display: none;"></div>')}})})

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.