const DEFAULT_SETTINGS = {
  pageSize: 5
};
function hydrateCustomerTodoSettings(raw) {
  if (!raw || typeof raw !== "object") return { ...DEFAULT_SETTINGS };
  const input = raw;
  const parsedPageSize = Number(input.pageSize);
  const pageSize = Number.isFinite(parsedPageSize) && parsedPageSize >= 1 && parsedPageSize <= 20 ? Math.floor(parsedPageSize) : DEFAULT_SETTINGS.pageSize;
  return {
    pageSize
  };
}
export {
  DEFAULT_SETTINGS,
  hydrateCustomerTodoSettings
};
//# sourceMappingURL=config.js.map
