import{Ka as s,Ua as m,lc as l,zc as p}from"./chunk-A3ION7ZA.js";import{i as c}from"./chunk-AI7IVZV2.js";var x=(()=>{let r=class r{localeId;static getDecimalForNumber(e,t=1){let i=e.toString().split(".")[1]||"";return i.length>t?+i.substring(0,t):+i}dictionary=[{max:1e3,type:""},{max:1e6,type:"K"},{max:1e9,type:"M"}];constructor(e){this.localeId=e}transform(e){let t=this.dictionary.find(f=>e<f.max)||this.dictionary[this.dictionary.length-1],a=e/(t.max/1e3),i=Math.floor(a),n=r.getDecimalForNumber(a);return i<10&&n>0?p(parseFloat(`${i}.${n}`),this.localeId)+t.type:`${i}${t.type}`}};c(r,"\u0275fac",function(t){return new(t||r)(s(l,16))}),c(r,"\u0275pipe",m({name:"myNumberFormatter",type:r,pure:!0}));let o=r;return o})();export{x as a};
/**i18n:1cf7c077143c4c267fdafbe5508f191afcef21bad6aba22a3a8dc180e1003753*/
//# sourceMappingURL=chunk-XC756HNT.js.map
