import { isValidDateRangePreset } from "@open-mercato/ui/backend/date-range";
const DEFAULT_SETTINGS = {
  dateRange: "this_month"
};
function hydrateSettings(raw) {
  if (!raw || typeof raw !== "object") return { ...DEFAULT_SETTINGS };
  const obj = raw;
  return {
    dateRange: isValidDateRangePreset(obj.dateRange) ? obj.dateRange : DEFAULT_SETTINGS.dateRange
  };
}
export {
  DEFAULT_SETTINGS,
  hydrateSettings
};
//# sourceMappingURL=config.js.map
