const n = (e) => {
  const t = /* @__PURE__ */ new Date(), a = new Date(t);
  return a.setDate(t.getDate() - e), { from: a, to: t };
}, l = () => {
  const e = /* @__PURE__ */ new Date(), t = e.getDay(), a = t === 0 ? 6 : t - 1, s = new Date(e);
  s.setDate(e.getDate() - a), s.setHours(0, 0, 0, 0);
  const o = new Date(e);
  return o.setDate(e.getDate() + (6 - a)), o.setHours(23, 59, 59, 999), { from: s, to: o };
}, r = () => {
  const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth(), 1), a = new Date(e.getFullYear(), e.getMonth() + 1, 0);
  return { from: t, to: a };
}, D = () => {
  const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), 0, 1), a = new Date(e.getFullYear(), 11, 31);
  return { from: t, to: a };
}, g = [
  {
    label: "Letzte 30 Tage",
    getValue: () => n(30)
  },
  {
    label: "Letzte 60 Tage",
    getValue: () => n(60)
  },
  {
    label: "Letzte 90 Tage",
    getValue: () => n(90)
  },
  {
    label: "Diese Woche",
    getValue: l
  },
  {
    label: "Dieser Monat",
    getValue: r
  },
  {
    label: "Dieses Jahr",
    getValue: D
  },
  {
    label: "Individuelle"
  }
], c = {
  getLastNDays: n,
  getThisWeek: l,
  getThisMonth: r,
  getThisYear: D
};
export {
  g as DATE_RANGE_PRESETS,
  c as default
};
//# sourceMappingURL=dateRangePresetHelpers.js.map
