import "../../../chunks/chunk.QU3DSPNU.js";
const numberFormats = {
  decimalsAndThousands: (value, locale, currency, decimals) => {
    const options = {
      maximumFractionDigits: decimals ?? 2,
      minimumFractionDigits: decimals ?? 2
    };
    if (currency) {
      return new Intl.NumberFormat(locale, {
        ...options,
        style: "currency",
        currency
      }).format(Number(value));
    }
    return new Intl.NumberFormat(locale, options).format(Number(value));
  }
};
export {
  numberFormats
};
