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