{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-markus/src/external/event-drops/withinRange.js"],"names":["withinRange","date","dateBounds","startingDate","Math","min","endingDate","max","Date"],"mappings":";;;;;;;;AAAA;;AAEO,kBAAMA,cAAc,CAACC,IAAD,EAAOC,UAAP,KAAsB;AAC7C,sBAAMC,eAAeC,KAAKC,GAAL,CAAS,GAAGH,UAAZ,CAArB;AACA,sBAAMI,aAAaF,KAAKG,GAAL,CAAS,GAAGL,UAAZ,CAAnB;;AAEA;AACA,uBAAO,IAAIM,IAAJ,CAASL,YAAT,KAA0BF,IAA1B,IAAkCA,QAAQ,IAAIO,IAAJ,CAASF,UAAT,CAAjD;AACA;AACH,aAPM;;;;;;;;;;2CAAMN,4C","file":"withinRange.js","sourcesContent":["//import isWithinRange from 'date-fns/is_within_range.js';\n\nexport const withinRange = (date, dateBounds) => {\n    const startingDate = Math.min(...dateBounds);\n    const endingDate = Math.max(...dateBounds);\n\n    // @TODO: remove the `new Date()` constructor in the next major version: we need to force it at configuration level.\n    return new Date(startingDate) <= date && date <= new Date(endingDate);\n    //return isWithinRange(new Date(date), startingDate, endingDate);\n};\n"]}