import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateCustomerTodoSettings } from "./config.js";
const CustomerTodosWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "customers.dashboard.todos",
    title: "Customer Todos",
    description: "Review the latest tasks linked to customers and jump directly to their records.",
    features: ["dashboards.view", "customers.widgets.todos"],
    defaultSize: "md",
    defaultEnabled: true,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["customers", "activities"],
    category: "customers",
    icon: "check-square",
    supportsRefresh: true
  },
  Widget: CustomerTodosWidget,
  hydrateSettings: hydrateCustomerTodoSettings,
  dehydrateSettings: (settings) => ({
    pageSize: settings.pageSize
  })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
