{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-markus/src/external/event-drops/isBefore.js"],"names":["isBefore","date","dateBounds","startingDate","Math","min","Date"],"mappings":";;;;;;;;AAAO,kBAAMA,WAAW,CAACC,IAAD,EAAOC,UAAP,KAAsB;AAC1C,sBAAMC,eAAeC,KAAKC,GAAL,CAAS,GAAGH,UAAZ,CAArB;;AAEA;AACA,uBAAOD,OAAQ,IAAIK,IAAJ,CAASH,YAAT,CAAf;AACH,aALM;;;;;;;;;;wCAAMH,yC","file":"isBefore.js","sourcesContent":["export const isBefore = (date, dateBounds) => {\n    const startingDate = Math.min(...dateBounds);\n\n    // @TODO: remove the `new Date()` constructor in the next major version: we need to force it at configuration level.\n    return date <  new Date(startingDate);\n};\n"]}