import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateSettings } from "./config.js";
const RevenueKpiWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "dashboards.analytics.revenueKpi",
    title: "Revenue",
    description: "Total revenue with period comparison",
    features: ["analytics.view", "sales.orders.view"],
    defaultSize: "sm",
    defaultEnabled: false,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["analytics", "sales", "kpi"],
    category: "analytics",
    icon: "dollar-sign",
    supportsRefresh: true
  },
  Widget: RevenueKpiWidget,
  hydrateSettings,
  dehydrateSettings: (s) => ({ dateRange: s.dateRange, showComparison: s.showComparison })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
