import { Vine, VineDate } from '@vinejs/vine';
import _ from 'lodash';
Vine.macro('dateIso', (options) => {
    const iso = 'iso8601';
    if (!options)
        options = {};
    if (!options.formats)
        options.formats = [];
    if (Array.isArray(options.formats) && !_.includes(options.formats, iso))
        options.formats = _.concat(options.formats, iso);
    return new VineDate(options);
});
//# sourceMappingURL=vine_dateiso.js.map