function getDecimalSeparator(){var n,t,r=(t=(n=document===null||document===void 0?void 0:document.body)===null||n===void 0?void 0:n.getAttribute("data-culture"))!==null&&t!==void 0?t:"",u,i;if(String.isNullOrWhiteSpace(r))throw new Error("No Culture code defined in body");return u=1.1,i=new Intl.NumberFormat(r).format(u),i.charAt(1)==="1"?".":i.charAt(1)}function getCurrencySymbol(){var n,t,i,r,f=(t=(n=document===null||document===void 0?void 0:document.body)===null||n===void 0?void 0:n.getAttribute("data-culture"))!==null&&t!==void 0?t:"",u;if(String.isNullOrWhiteSpace(f))throw new Error("No Culture code defined in body");if(u=(r=(i=document===null||document===void 0?void 0:document.body)===null||i===void 0?void 0:i.getAttribute("data-currency-code"))!==null&&r!==void 0?r:"",String.isNullOrWhiteSpace(u))throw new Error("No Currency code defined in body");var e=new Intl.NumberFormat(f,{style:"currency",currency:u,currencyDisplay:"narrowSymbol"}),o=e.format(0);return o.replace(/[\d.,\s]/g,"").trim()}function debounce(n,t){var i;return function(){for(var u=[],r=0;r-1);$("#brand-content").find("ul li:not([data-no-results-found]):visible").length>0?$("#brand-content").find("ul li#NoRecordFound").hide():$("#brand-content").find("ul li#NoRecordFound").show()})},t.prototype.GetDefaultBrandLogoOnSearch=function(n){var t=[];$.each($(n+" li.brand-items"),function(n,i){var r=$(i).find("img").attr("data-clipartId");r||(r="blank");t.push(r)});t&&CustomEndpoint.prototype.GetArtifiLogoUrl(function(t){t!=undefined&&t!=null&&t.artifiLogoUrl!=""?$.each($(n+" li.brand-items"),function(n,i){var r=$(i).find("img").attr("value"),u;console.log("clipartId:"+r);r?(u=t.artifiLogoUrl+"&clipartcode="+r+"&width="+$("#imageWidth").val()+"&height="+$("#imageHeight").val(),$(i).find("img").attr("src",u)):$(i).find("img").attr("src","/Content/Images/no-image.png")}):$(n+" li.brand-items").find("img").each(function(){$(this).attr("src","/Content/Images/no-image.png")})})},t.prototype.GetClipartCode=function(n,t,i){$.each(n.Data.Cliparts,function(n,r){t={ClipartCode:r.Code,ClipartThumbnailURL:r.ClipartThumbnailURL};i.push(t)})},t.prototype.GetBrandLogoByArtifi=function(n,t){CustomEndpoint.prototype.GetArtifiLogoUrl(function(i){var r=i.artifiLogoUrl;r=="undefined"&&r==""&&(r=$("#artifiLogoUrl").val());r&&n&&$.ajax({url:r+"&ClipartCode="+n,type:"GET",contentType:"application/x-www-form-urlencoded",success:t,error:function(){}})})},t}(ZnodeBase),__extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i",n.model.Address2!=""&&typeof n.model.Address2!="undefined"&&n.model.Address2!=null&&(r+="