1function FilterSelectOptions(n){let i=$(n)[1],r=$(i).val(),t,u=!0,o=$(i).children();t=o[0].attributes[1].nodeValue;let f,e;$("select.optionClass-"+t).each(function(){$(this).find(":selected").text()==="---"&&(u=!1,$("#add-to-cart-button_category_"+t).addClass("disabled"));let n=$(this).children();n.each(function(){this.selected===!0&&(f=this.value,e=this.innerText.replace(",","."))})});$.ajax({cache:!1,url:`/PriceAndStock/FilterSelectedProductOptions?selectedOption=${r}&optionValueName=${e}&productId=${t}`,type:"POST",success:function(n){$("#add-to-cart-button_category_"+t).attr("onclick","");n===0?(resetOptions(t),$("#add-to-cart-button_category_"+t).attr("onclick","AjaxCart.addproducttocart_catalog('/addproducttocart/catalog/"+t+"/1/1');return false;")):($("#add-to-cart-button_category_"+t).attr("onclick","AjaxCart.addproducttocart_catalog('/addproducttocart/catalog/"+n+"/1/1');return false;"),setOptions("product_attribute_",i,r,[n],t),u===!0&&ChangePrice([f],t,n))}})}function ChangePrice(n,t,i){let r="/PriceAndStock/GetUpdatedPricesOfOptionValue?underlyingProduct="+i;$.ajax({cache:!1,url:r,type:"POST",success:function(n){if(n){let r=n[1],u=n[0];r!=null&&($("#product-details-form-"+t+" .without-vat").text(u),$(".with-vat").text(r));let f=n[2];console.log("Updated SKU: "+f);let e="/DimerceUnitSelector/GetUnitSelector?productId="+i;$.ajax({cache:!1,url:e,type:"POST",success:function(n){if(n!=null&&n.success!==""){$("#add-to-cart-button_category_"+t).removeClass("disabled");let r=parseFloat($("#hiddenCurrentProductId-"+t).attr("name")),u=document.getElementById("productUnitSelector-"+t),f=document.getElementById("UnitSelectorForProduct_"+r);$(u).empty();$(f).remove();let e=n.CanOrderSingleUnit.toString(),o=n.BasePriceUnit!=null?n.BasePriceUnit.Name:"",s=n.BasePriceBaseUnit!=null?n.BasePriceBaseUnit.Name:"",h=n.PackageName!=null?n.PackageName:"",c=n.PackageAmount;if(CreateInputAndQuantitiesHTML(i,n.PackageAmount,r,t),AddEventListenersToUnitSelector(i,n.PackageName,n.PackageAmount,r),n.PackageAmount!==0){let n=loadUnitSelector(i,e,o,s,h,c);$("#unitSelector-"+t).after(n)}$("#UnitSelectorForProduct_"+t).css("margin-left","10px");$("#add-to-cart-button_category_"+t).attr("onclick","");$("#add-to-cart-button_category_"+t).attr("onclick","AjaxCart.addproducttocart_catalog('/addproducttocart/catalog/"+i+"/1/1');return false;");$("#hiddenCurrentProductId-"+t).attr("name",i);let l="/PriceAndStock/LoadPriceInfo?productId="+i;$.ajax({cache:!1,url:l,type:"POST",success:function(n){$(".css-tooltip").empty();$(".css-tooltip").append(n)}})}}})}else console.log("No price data available.")}})}function resetOptions(n){$("select.optionClass-"+n).each(function(){let n="#"+this.id+" > option";$("#"+this.id+" > option").each(function(){let t=$(n).find('option:not([value=""])');$(this).removeAttr("selected");$(this).removeAttr("style");$(n+"[value="+this.value+"]").show();this.value==="---"&&(t.prevObject[0].selected=!0)})})}function setOptions(n,t,i,r,u){$("select.optionClass-"+u).each(function(){let n="#"+this.id+" > option";this.id!==$(t).attr("id")&&$("#"+this.id+" > option").each(function(){$(n+"[value='"+this.value+"']").removeAttr("style");let t=CheckIfHideOrShow(this.value,r);t!==!0&&($(n+"[value='"+this.value+"']").removeAttr("selected"),$(n+"[value='"+this.value+"']").hide())})})}function CheckIfHideOrShow(n,t){let i=!1;return $.each(t,function(t,r){r===n&&(i=!0)}),i}
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.