import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateSalesNewOrdersSettings } from "./config.js";
const SalesNewOrdersWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "sales.dashboard.newOrders",
    title: "New Orders",
    description: "Displays recently created sales orders.",
    features: ["dashboards.view", "sales.widgets.new-orders"],
    defaultSize: "md",
    defaultEnabled: true,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["sales", "orders"],
    category: "sales",
    icon: "shopping-cart",
    supportsRefresh: true
  },
  Widget: SalesNewOrdersWidget,
  hydrateSettings: hydrateSalesNewOrdersSettings,
  dehydrateSettings: (settings) => ({
    pageSize: settings.pageSize,
    datePeriod: settings.datePeriod,
    customFrom: settings.customFrom,
    customTo: settings.customTo
  })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
