import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateNewCustomersSettings } from "./config.js";
const CustomerNewCustomersWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "customers.dashboard.newCustomers",
    title: "New Customers",
    description: "Track the most recently added customers to follow up quickly.",
    features: ["dashboards.view", "customers.widgets.new-customers"],
    defaultSize: "sm",
    defaultEnabled: true,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["customers"],
    category: "customers",
    icon: "user-plus",
    supportsRefresh: true
  },
  Widget: CustomerNewCustomersWidget,
  hydrateSettings: hydrateNewCustomersSettings,
  dehydrateSettings: (settings) => ({
    pageSize: settings.pageSize,
    kind: settings.kind
  })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
