import{Cc as p,Ka as s,Ua as m,oc as l}from"./chunk-2GYONVCW.js";import{i as c}from"./chunk-6PUAHDUH.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:7c691147a9ded88b46d9cd2285c6afa220006ce26eb0d02eb4522192723b6cd8*/
//# sourceMappingURL=chunk-YXMAJXC2.js.map
