\/div>'+t.Name+'<\/span><\/span><\/div>')});t=document.location.href;t.includes("&bid=")?(r=new URL(t),r.searchParams.set("bid",i),t=r.href):t=t+"&bid="+i;t.includes("&mid=")&&n==!1&&(r=new URL(t),r.searchParams.set("mid",0),t=r.href);history.pushState(null,null,t);n?displayAjaxLoading(!1):displayAjaxLoading(!1)});$("#spare-parts-model").on("click",".spare-model-item",function(){var t,u;let r=$(this).data("value"),f=categoryId,e={CategoryId:f,ModelId:r};t=document.location.href;t.includes("&mid=")?(u=new URL(t),u.searchParams.set("mid",r),t=u.href):t=t+"&mid="+r;history.pushState(null,null,t);displayAjaxLoading(!0);i("get-spare-products",e).success(function(t){$("#result-info").html(t);$("html, body").animate({scrollTop:$("#result-info").offset().top},1);displayAjaxLoading(!1);n=!1})});$(".spare-parts-finder .tabs .tab").on("click",function(){$(".master-wrapper-content").addClass("tab-clicked")})});$("#InsideDiameterId").on("change",function(){var t=$(this).val(),n=document.location.href,i,r,u;n.includes("did=")?(i=new URL(n),i.searchParams.set("did",t),n=i.href):n=n+"?did="+t+"&dod=0&dw=0";history.pushState(null,null,n);r="