import Vue from 'vue';
import { FormatMode } from '../../../utils/i18n/i18n';
import { dateFilter } from '../date/date';
import { timeFilter } from '../time/time';
export var dateTimeFilter = function (date, short) {
    var params = {
        date: dateFilter(date, { shortMode: short }),
        time: timeFilter(date)
    };
    return Vue.prototype.$i18n.translate(short ? 'f-m-date-time:short' : 'f-m-date-time:long', params, 0, '', true, FormatMode.Vsprintf);
};
var DateTimeFilter = /** @class */ (function () {
    function DateTimeFilter() {
    }
    DateTimeFilter.formatDateTime = function (date, filterParams) {
        var params = {
            date: dateFilter(date, filterParams),
            time: timeFilter(date)
        };
        var shortMode = !!(filterParams && filterParams.shortMode);
        return Vue.prototype.$i18n.translate(shortMode ? 'f-m-date-time:short' : 'f-m-date-time:long', params, 0, '', true, FormatMode.Vsprintf);
    };
    return DateTimeFilter;
}());
export { DateTimeFilter };
//# sourceMappingURL=date-time.js.map