{"version":3,"sources":["node_modules/date-fns/isBefore.mjs"],"sourcesContent":["import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date that should be before the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is before the second date\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport function isBefore(date, dateToCompare) {\n const _date = toDate(date);\n const _dateToCompare = toDate(dateToCompare);\n return +_date < +_dateToCompare;\n}\n\n// Fallback for modularized imports:\nexport default isBefore;"],"mappings":"wCAsBO,SAASA,EAASC,EAAMC,EAAe,CAC5C,IAAMC,EAAQC,EAAOH,CAAI,EACnBI,EAAiBD,EAAOF,CAAa,EAC3C,MAAO,CAACC,EAAQ,CAACE,CACnB","names":["isBefore","date","dateToCompare","_date","toDate","_dateToCompare"],"x_google_ignoreList":[0]}