import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateSettings } from "./config.js";
const SalesByRegionWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "dashboards.analytics.salesByRegion",
    title: "Sales by Region",
    description: "Revenue distribution by shipping region",
    features: ["analytics.view", "sales.orders.view"],
    defaultSize: "md",
    defaultEnabled: false,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["analytics", "sales", "geography", "chart"],
    category: "analytics",
    icon: "map-pin",
    supportsRefresh: true
  },
  Widget: SalesByRegionWidget,
  hydrateSettings,
  dehydrateSettings: (s) => ({ dateRange: s.dateRange, limit: s.limit })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
