import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateSettings } from "./config.js";
const OrdersByStatusWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "dashboards.analytics.ordersByStatus",
    title: "Orders by Status",
    description: "Distribution of orders by status",
    features: ["analytics.view", "sales.orders.view"],
    defaultSize: "sm",
    defaultEnabled: false,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["analytics", "sales", "chart"],
    category: "analytics",
    icon: "pie-chart",
    supportsRefresh: true
  },
  Widget: OrdersByStatusWidget,
  hydrateSettings,
  dehydrateSettings: (s) => ({ dateRange: s.dateRange, variant: s.variant })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
