1function ajaxCartFunction(content,place){AjaxSetup();var InputArray={};if(place=="loadUserCart"){InputArray["do"]="loadusercart";InputArray.gid=content.gid;$.ajax({url:"/QSTool/Plugins/QSWebshop/Admin/plugin_ajax_cartfunctions.php",data:JSON.stringify(InputArray),success:function(data){var obj=JSON.parse(data);$("#QSWebShopCart").html(obj.HTML)}})}else if(place=='editCartAmounts'){InputArray["do"]="editcartamounts";InputArray.productid=content.productid;InputArray.action=content.action;const raw=$('#product-amount-input-'+content.productid).val();const cleaned=raw.replace(/\D+/g,'');const amount=parseInt(cleaned,10)||0;InputArray.amount=amount;InputArray.id=content.id;if(amount==1&&content.action=='remove'){}else{$.ajax({url:"/QSTool/Plugins/QSWebshop/Admin/plugin_ajax_cartfunctions.php",data:JSON.stringify(InputArray),success:function(data){var obj=JSON.parse(data);ajaxCartFunction({gid:obj.gid},'loadUserCart');ajaxCartFunction({},'getCartContentCount')}})}}else if(place=='removeProductFromCart'){InputArray["do"]="removeproductfromcart";InputArray.productid=content.productid;InputArray.id=content.id;showWebshopOverlay("on","");$.ajax({url:"/QSTool/Plugins/QSWebshop/Admin/plugin_ajax_cartfunctions.php",data:JSON.stringify(InputArray),success:function(data){var obj=JSON.parse(data);$("#innerwrapper").html(obj.HTML);ajaxCartFunction({},'getCartContentCount')}})}else if(place=='removeProduct'){InputArray["do"]="removeproduct";InputArray.productid=content.productid;InputArray.gid=content.gid;InputArray.id=content.id;$.ajax({url:"/QSTool/Plugins/QSWebshop/Admin/plugin_ajax_cartfunctions.php",data:JSON.stringify(InputArray),success:function(data){var obj=JSON.parse(data);showWebshopOverlay("off","");ajaxCartFunction({gid:content.gid},'loadUserCart');ajaxCartFunction({},'getCartContentCount');if(typeof gtag=='function'&&$.isFunction(gtag)){gtag('event','remove_from_cart',{"currency":obj.currency,"items":[obj.items[0]],"value":obj.value})}}})}else if(place=='getCartContentCount'){InputArray["do"]="getcartcontentcount";$.ajax({url:"/QSTool/Plugins/QSWebshop/Admin/plugin_ajax_cartfunctions.php",data:JSON.stringify(InputArray),success:function(data){var obj=JSON.parse(data);$("span[id^='webshopCountSpan']").html(obj.HTML);if(typeof qswsUpdatePlaceOrderButtonState==="function"){qswsUpdatePlaceOrderButtonState(obj.cartItemCount)}}})}else if(place=='getShortCartContents'){InputArray["do"]="getshortcartcontents";InputArray.generalid=$("#gid").val();var BadForm="";if($("input[name='shipping_type']:checked").val()!=null){InputArray.selected_shipping=$("input[name='shipping_type']:checked").val()}else{BadForm="y"} 2if($("input[name='webshop_payment']:checked").val()!=null){InputArray.selected_payment=$("input[name='webshop_payment']:checked").val()}else{BadForm="y"} 3if($("input[name='customer_type']:checked").val()=="customerTypeBusiness"){InputArray["customer-vatnumber"]=$("#customer-vatnumber").val();InputArray["customer-country"]=$("#customer-country option:selected").val()}else{InputArray["customer-vatnumber"]="";InputArray["customer-country"]=""} 4if(BadForm==""){$.ajax({url:"/QSTool/Plugins/QSWebshop/Admin/plugin_ajax_cartfunctions.php",data:JSON.stringify(InputArray),success:function(data){var obj=JSON.parse(data);$('#webshopCartContents').html(obj.HTML);if(typeof qswsUpdatePlaceOrderButtonState==="function"){qswsUpdatePlaceOrderButtonState(obj.cartItemCount,obj.cartEmptyText)} 5if(obj.NoPaymentNeeded=="y"){ajaxOrderFunction({nopaymentneeded:obj.NoPaymentNeeded},'getPaymentOptions')} 6if(content.createdInvoice=="y"){ajaxCreatInvoiceFunction({},'changeShortCartContents')}}})}}} 7$(function(){if(window.QSWebshopCartCountBooted){return} 8if(typeof ajaxCartFunction!=="function"){return} 9if($("span[id^='webshopCountSpan']").length===0){return} 10window.QSWebshopCartCountBooted=!0;ajaxCartFunction({},"getCartContentCount")})
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.