import { maxDateTimestamp, minDateTimestamp } from "../consts.js";

//#region src/calendar/hooks/useBoundaries.ts
/**
* Calculates boundaries for max/min dates allowed
* Memoized so it will only recalculate when the boundaries changes
*/
const useBoundaries = ({ boundaries }) => {
	const min = new Date(minDateTimestamp);
	const max = new Date(maxDateTimestamp);
	const minDateTime = boundaries?.startDate || min;
	return {
		maxDateTime: boundaries?.endDate || max,
		minDateTime
	};
};

//#endregion
export { useBoundaries };
globalThis.__vuiVersion__ = "4.0.1"
//# sourceMappingURL=useBoundaries.js.map