"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "invokeOnCommitDate", {
    enumerable: true,
    get: function() {
        return invokeOnCommitDate;
    }
});
const invokeOnCommitDate = ({ callback, value, formattedValues })=>{
    const { error, success, dateInfo, originalDate, isoDate } = formattedValues;
    if (typeof formattedValues === 'object' && formattedValues !== null) {
        // Новая сигнатура: (value, formattedValues) => void
        callback(value, formattedValues);
    } else {
        // Deprecated сигнатура: (value, error, success, dateInfo, originalDate, isoDate) => void
        callback(value, error, success, dateInfo, originalDate, isoDate);
    }
};
