import { lazyDashboardWidget } from "@open-mercato/shared/modules/dashboard/widgets";
import { DEFAULT_SETTINGS, hydrateSettings } from "./config.js";
const TimeReportingWidget = lazyDashboardWidget(() => import("./widget.client.js"));
const widget = {
  metadata: {
    id: "staff.timesheets.timeReporting",
    title: "Time Reporting",
    description: "Quick start/stop timer for the current work item",
    features: ["dashboards.view", "staff.timesheets.manage_own"],
    defaultSize: "sm",
    defaultEnabled: false,
    defaultSettings: DEFAULT_SETTINGS,
    tags: ["staff", "timesheets", "timer"],
    category: "productivity",
    icon: "timer",
    supportsRefresh: true
  },
  Widget: TimeReportingWidget,
  hydrateSettings,
  dehydrateSettings: (s) => ({ lastProjectId: s.lastProjectId })
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
