/**
 * Форматирование числа в цену.
 */ "use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "formatCurrency", {
    enumerable: true,
    get: function() {
        return formatCurrency;
    }
});
var formatCurrency = function formatCurrency(param) {
    var value = param.value, locale = param.locale, currency = param.currency, minimumFractionDigits = param.minimumFractionDigits;
    var formatter = new Intl.NumberFormat(locale, {
        style: 'currency',
        currency: currency,
        minimumFractionDigits: minimumFractionDigits
    });
    return formatter.format(value);
};
