import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import {
  DEFAULT_SETTINGS,
  hydrateNextInteractionsSettings
} from "./config.js";
const CustomerNextInteractionsWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "customers.dashboard.nextInteractions",
    title: "Next Customer Interactions",
    description: "See the customers with the next interactions scheduled to stay proactive.",
    features: ["dashboards.view", "customers.widgets.next-interactions"],
    defaultSize: "md",
    defaultEnabled: true,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["customers", "activities"],
    category: "customers",
    icon: "calendar",
    supportsRefresh: true
  },
  Widget: CustomerNextInteractionsWidget,
  hydrateSettings: hydrateNextInteractionsSettings,
  dehydrateSettings: (settings) => ({
    pageSize: settings.pageSize,
    includePast: settings.includePast
  })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
