"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get RENDERER_TYPE () {
        return RENDERER_TYPE;
    },
    get timeRenderer () {
        return timeRenderer;
    }
});
const _textRenderer = require("../textRenderer");
const _console = require("../../helpers/console");
const RENDERER_TYPE = 'time';
const deprecatedMessageShown = new WeakSet();
function timeRenderer(hotInstance, TD, row, col, prop, value, cellProperties) {
    if (!deprecatedMessageShown.has(cellProperties.instance) && typeof cellProperties.timeFormat === 'string') {
        deprecatedMessageShown.add(cellProperties.instance);
        (0, _console.deprecatedWarn)('The `time` cell type with string-based `timeFormat` (moment.js) is deprecated. ' + 'In the next major release, `time` will accept only Intl.DateTimeFormat options (object). ' + 'To start migrating, use the `intl-time` cell type now; it will become the `time` cell type ' + 'after the next major release (the `intl-time` will become an alias for `time`).\n\n' + 'Migration guide: https://handsontable.com/docs/migration-from-16.2-to-17.0/\n' + '`time` cell type: https://handsontable.com/docs/time-cell-type/');
    }
    _textRenderer.textRenderer.apply(this, [
        hotInstance,
        TD,
        row,
        col,
        prop,
        value,
        cellProperties
    ]);
    TD.dir = 'ltr';
}
timeRenderer.RENDERER_TYPE = RENDERER_TYPE;
