import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateSettings } from "./config.js";
const HoursByProjectWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "staff.timesheets.hoursByProject",
    title: "Hours by Project",
    description: "Tracked hours grouped by project for a selected period",
    features: ["dashboards.view", "analytics.view", "staff.timesheets.view"],
    defaultSize: "md",
    defaultEnabled: false,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["analytics", "staff", "timesheets"],
    category: "analytics",
    icon: "clock",
    supportsRefresh: true
  },
  Widget: HoursByProjectWidget,
  hydrateSettings,
  dehydrateSettings: (s) => ({ dateRange: s.dateRange })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
