{"version":3,"file":"index.8d55ab5f.js","sources":["../../../frontend/features/common/enums/DiscussableTypes.js","../../../node_modules/date-fns/esm/isBefore/index.js"],"sourcesContent":["export const DiscussionTopic = 'DiscussionTopic';\nexport const Idea = 'Idea';\n\nexport default Object.freeze({\n DiscussionTopic,\n Idea,\n});\n","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\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 * @param {Date|Number} date - the date that should be before the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is before the second date\n * @throws {TypeError} 2 arguments required\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 */\n\nexport default function isBefore(dirtyDate, dirtyDateToCompare) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dateToCompare = toDate(dirtyDateToCompare);\n return date.getTime() < dateToCompare.getTime();\n}"],"names":["DiscussionTopic","Idea","DiscussableTypes","isBefore","dirtyDate","dirtyDateToCompare","requiredArgs","date","toDate","dateToCompare"],"mappings":"4bAAO,MAAMA,EAAkB,kBAClBC,EAAO,OAELC,EAAA,OAAO,OAAO,CAC3B,gBAAAF,EACA,KAAAC,CACF,CAAC,ECec,SAASE,EAASC,EAAWC,EAAoB,CAC9DC,EAAa,EAAG,SAAS,EACzB,IAAIC,EAAOC,EAAOJ,CAAS,EACvBK,EAAgBD,EAAOH,CAAkB,EAC7C,OAAOE,EAAK,QAAO,EAAKE,EAAc,QAAO,CAC/C"}