import moment from 'moment';
import * as C from '../../../../i18n/constants.mjs';
import { registerCondition } from '../../conditionRegisterer.mjs';
export const CONDITION_NAME = 'date_tomorrow';
/**
 * @param {object} dataRow The object which holds and describes the single cell value.
 * @returns {boolean}
 */ export function condition(dataRow) {
    const date = moment(dataRow.value, dataRow.meta.dateFormat);
    if (!date.isValid()) {
        return false;
    }
    return date.isSame(moment().subtract(-1, 'days').startOf('day'), 'd');
}
registerCondition(CONDITION_NAME, condition, {
    name: C.FILTERS_CONDITIONS_TOMORROW,
    inputsCount: 0
});
