import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateSettings } from "./config.js";
const TopCustomersWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "dashboards.analytics.topCustomers",
    title: "Top Customers",
    description: "Top customers by revenue",
    features: ["analytics.view", "sales.orders.view", "customers.people.view"],
    defaultSize: "md",
    defaultEnabled: false,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["analytics", "sales", "customers", "table"],
    category: "analytics",
    icon: "users",
    supportsRefresh: true
  },
  Widget: TopCustomersWidget,
  hydrateSettings,
  dehydrateSettings: (s) => ({ dateRange: s.dateRange, limit: s.limit })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
