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