import { getText } from "../../locales/index.js";
import dayjs from "dayjs";
//#region src/components/date-picker/constants.ts
const presetDetailMap = {
	today: {
		getValue: () => dayjs().startOf("day"),
		label: () => getText("date-picker-today")
	},
	yesterday: {
		getValue: () => dayjs().add(-1, "d").startOf("day"),
		label: () => getText("date-picker-yesterday")
	},
	tomorrow: {
		getValue: () => dayjs().add(1, "d").startOf("day"),
		label: () => getText("date-picker-tomorrow")
	},
	next_monday: {
		getValue: () => dayjs().startOf("week").add(8, "day").startOf("day"),
		label: () => getText("date-picker-next_monday")
	},
	last_friday: {
		getValue: () => dayjs().subtract(1, "week").startOf("week").add(5, "day").startOf("day"),
		label: () => getText("date-picker-last_friday")
	},
	first_day_of_this_month: {
		getValue: () => dayjs().startOf("month").startOf("day"),
		label: () => getText("date-picker-first_day_of_this_month")
	},
	last_day_of_this_month: {
		getValue: () => dayjs().endOf("month").startOf("day"),
		label: () => getText("date-picker-last_day_of_this_month")
	},
	first_day_of_next_month: {
		getValue: () => dayjs().endOf("month").add(1, "day").startOf("day"),
		label: () => getText("date-picker-first_day_of_next_month")
	},
	last_day_of_last_month: {
		getValue: () => dayjs().startOf("month").subtract(1, "day").startOf("day"),
		label: () => getText("date-picker-last_day_of_last_month")
	}
};
//#endregion
export { presetDetailMap };
