const TIMINGFUNC_MAP = {
    linear: (t) => t,
    "ease-in": (t) => t * t,
    "ease-out": (t) => t * (2 - t),
    "ease-in-out": (t) => (t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t),
};
const BUFFER_OFFSET = 10;

const MONTHS_OF_YEAR = [
    "January",
    "February",
    "March",
    "April",
    "May",
    "June",
    "July",
    "August",
    "September",
    "October",
    "November",
    "December",
];

const DAYS_OF_WEEK = [
    // Monday, Friday, Saturday are the pricing by day premium days
    {
        label: "Sunday",
        cssClass: "sunday",
        isPricingByDayUpchargeDay: true,
    },
    {
        label: "Monday",
        cssClass: "monday",
        isPricingByDayUpchargeDay: true,
    },
    {
        label: "Tuesday",
        cssClass: "tuesday",
        isPricingByDayUpchargeDay: false,
    },
    {
        label: "Wednesday",
        cssClass: "wednesday",
        isPricingByDayUpchargeDay: false,
    },
    {
        label: "Thursday",
        cssClass: "thursday",
        isPricingByDayUpchargeDay: false,
    },
    {
        label: "Friday",
        cssClass: "friday",
        isPricingByDayUpchargeDay: true,
    },
    {
        label: "Saturday",
        cssClass: "saturday",
        isPricingByDayUpchargeDay: true,
    },
];

export { TIMINGFUNC_MAP, BUFFER_OFFSET, MONTHS_OF_YEAR, DAYS_OF_WEEK };
