import '../../../utils/index2.mjs';
import '../../../constants/index2.mjs';
import { isArray, isDate } from '@vue/shared';
import { buildProps, definePropType } from '../../../utils/vue/props/runtime2.mjs';
import { UPDATE_MODEL_EVENT, INPUT_EVENT } from '../../../constants/event2.mjs';

const isValidRange = (range) => isArray(range) && range.length === 2 && range.every((item) => isDate(item));
const calendarProps = buildProps({
  modelValue: {
    type: Date
  },
  range: {
    type: definePropType(Array),
    validator: isValidRange
  }
});
const calendarEmits = {
  [UPDATE_MODEL_EVENT]: (value) => isDate(value),
  [INPUT_EVENT]: (value) => isDate(value)
};

export { calendarEmits, calendarProps };
//# sourceMappingURL=calendar3.mjs.map
