"+t.IsProductAvail+" <\/span> <\/span>"),$("#addtocart_"+n+"_EnteredPackQuantity").val("0"),$("#addtocart_"+n+"_EnteredQuantity").val("0"),$("#addtocart_"+n+"_EnteredPackQuantity").change(),$("#SearchSku").val("")):(r=$("#addtocart_"+n+"_EnteredPackQuantity").val(),r=parseInt(r)+1,$("#addtocart_"+n+"_EnteredPackQuantity").val(r),$("#addtocart_"+n+"_EnteredPackQuantity").change(),$("#SearchSku").blur(),$("#SearchSku").val(""),$("#add-to-cart-button-2027").removeAttr("style"),$("#add-to-cart-button-2027").attr("style","background-color:#d92231;"),$("#add-to-cart-button-2027").removeAttr("disabled",!1),$("#addtocart_"+n+"_EnteredPackQuantity").removeAttr("disabled"),$("#addtocart_"+n+"_EnteredQuantity").removeAttr("disabled"),$("#itemDescription"+n).html(""+t.Description+"<\/span> - "+t.PackSize+" <\/span>"),$("#SearchSku").val(""),customWheel())}else displayBarNotification("Try again with different SKU.","error",0)}});else if(t=="ST"){var c=window.location.origin,o=$("#JDEItemSkus").val(),s=$("#JDEEquipment").val(),h=$("#JDESerialNo").val(),l=$("#PriceShown").html();$.ajax({url:"/Product/ServiceTypeProductGetPrice",data:{productSKU:o,Equipement:s,JDESerialNo:h,productType:"ST"},success:function(n){if(n==""||n==undefined||n==null)displayBarNotification("Product SKU does not match with product. Try again with differnt SKU.","error",0);else{var t="₹ "+n;$(".price-value-2027").html(t)}},"async":!1,cache:!1})}}$(function(){var n="false";$("#SearchSku").autocomplete({source:function(n,t){$.ajax({url:"/Product/BindSkuAutoComplete",data:{query:n.term,pId:2027},dataType:"json",type:"GET",success:function(n){t($.map(n,function(n){return n}))},error:function(n){alert(n.statusText)},failure:function(n){alert("failure "+n.responseText)}})},minLength:0,autoFocus:!0,close:function(){if(n=="false"){var t=$(this).val();t=t.split(" ");GetDataAccordingToQuery(t[0],"NST");console.log("close");this.blur()}n="false"},select:function(t,i){var r,u;displayAjaxLoadingTimer(!0,0);r=i.item.value;r=r.split(" ");n="true";u=parseInt(r[25]);GetDataAccordingToQuery(r[0],"NST","","","","",u);console.log("select");displayAjaxLoadingTimer(!1,3500)}}).focus(function(){if($(this).val()==""){var n=$(this).val();n=n.split(" ");$(this).autocomplete("search",n[0])}else console.log(11)})});$(function(){$("#JDEItemSkus").on("change",function(){$(".price-value-2027").html()});$("#JDEEquipment").on("change",function(){$(".price-value-2027").html();$("#JDEEquipmentName").val($(this).find("option:selected").text());var n=$("#Service").find("option:selected").text();if($("#ServiceTypeJson").val($(this).val()),n=="Select Service Type")return alert("Please select serivce first..!!"),!1;n=$("#Service").val();serice=n.split(",")[0].split(":")[1];$("#SelectedServiceType").val(serice);$(this).val()!=""&&GetEquipmentData($(this).val(),$(this).find("option:selected").text(),serice)});$("#NumberOfCalls").on("change",function(){var r;$(".price-value-2027").html();var t=$(this).val(),i=$("#JDEEquipment").val(),n=$("#JDEEquipment").find("option:selected").text();$("#JDEEquipmentName").val(n);service=$("#Service").val();producttype=service.split(",")[0].split(":")[1];$("#SelectedServiceType").val(producttype);r=$("#PriceShown").html();$.ajax({url:"/Product/GetEquiplmentData",data:{equipmentId:i,equipment:n,type:producttype},success:function(n){n==""||n==undefined||n==null||$.each(n.PriceBand,function(i){if(n.PriceBand[i].Quantity==t){var r=n.PriceBand[i].UnitPrice+"(INR)";$(".price-value-2027").html(r);$("#ProductUnitPrice").val(n.PriceBand[i].UnitPrice);return}})},"async":!1,cache:!1})})});$(function(){$("#JDESerialNo").on("change",function(){})});$(function(){$("#btnRequestPrice").on("click",function(){$.ajax({cache:!1,url:"/Product/SendRequestForPrice",data:{productId:2027},dataType:"json",type:"POST",success:function(n){n=="Success"?displayBarNotification("Request sent! We value your interest in our product/services. please check your email registered with us for further communication.","success",3500):displayBarNotification("Try Again Later !!","error",3500)},error:function(n,t,i){alert(i)},failure:function(n){alert("failure "+n.responseText)}})})})