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", index: 0, isPricingByDayUpchargeDay: false, }, { label: "Monday", cssClass: "monday", index: 1, isPricingByDayUpchargeDay: true, }, { label: "Tuesday", cssClass: "tuesday", index: 2, isPricingByDayUpchargeDay: false, }, { label: "Wednesday", cssClass: "wednesday", index: 3, isPricingByDayUpchargeDay: false, }, { label: "Thursday", cssClass: "thursday", index: 4, isPricingByDayUpchargeDay: false, }, { label: "Friday", cssClass: "friday", index: 5, isPricingByDayUpchargeDay: true, }, { label: "Saturday", cssClass: "saturday", index: 6, isPricingByDayUpchargeDay: true, }, ]; export { TIMINGFUNC_MAP, BUFFER_OFFSET, MONTHS_OF_YEAR, DAYS_OF_WEEK };