@burdenoff/microfe-healthybowl 2026.1017.2 → 2026.1017.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,15 +3,16 @@ import { useBasePath as t } from "../../hooks/useBasePath.js";
3
3
  import { EmptyState as n } from "../../components/EmptyState.js";
4
4
  import "../../components/index.js";
5
5
  import { useHealthyBowlData as r } from "../../hooks/useHealthyBowlData.js";
6
- import { useMemo as i } from "react";
7
- import { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
- import { ArrowLeft as o, Download as s, FileText as c } from "lucide-react";
9
- import { useNavigate as l } from "react-router";
10
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
11
- import { Button as f } from "@burdenoff/fe-libs/ui";
6
+ import { csvRows as i } from "../../utils/csv.js";
7
+ import { useMemo as a } from "react";
8
+ import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
+ import { ArrowLeft as s, Download as c, FileText as l } from "lucide-react";
10
+ import { useNavigate as u } from "react-router";
11
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
12
+ import { Button as p } from "@burdenoff/fe-libs/ui";
12
13
  //#region src/healthybowl/pages/crops/PlantingPlanReportPage.tsx
13
- var p = () => {
14
- let p = l(), { buildPath: m } = t(), { t: h } = a(), { plantingPlans: g } = r(), _ = i(() => g.reduce((e, t) => ({
14
+ var m = () => {
15
+ let m = u(), { buildPath: h } = t(), { t: g } = o(), { plantingPlans: _ } = r(), v = a(() => _.reduce((e, t) => ({
15
16
  plans: e.plans + 1,
16
17
  expectedYield: e.expectedYield + (t.expectedYield || 0),
17
18
  seedRequired: e.seedRequired + (t.seedRequired || 0)
@@ -19,17 +20,17 @@ var p = () => {
19
20
  plans: 0,
20
21
  expectedYield: 0,
21
22
  seedRequired: 0
22
- }), [g]);
23
- return /* @__PURE__ */ u(e, {
24
- title: h("healthybowl.crops.planning.report.title", "Planting plan report"),
25
- description: h("healthybowl.crops.planning.report.description", "A real-time summary of saved planting plans and expected output."),
26
- actions: /* @__PURE__ */ d("div", {
23
+ }), [_]);
24
+ return /* @__PURE__ */ d(e, {
25
+ title: g("healthybowl.crops.planning.report.title", "Planting plan report"),
26
+ description: g("healthybowl.crops.planning.report.description", "A real-time summary of saved planting plans and expected output."),
27
+ actions: /* @__PURE__ */ f("div", {
27
28
  className: "flex gap-2",
28
- children: [/* @__PURE__ */ d(f, {
29
+ children: [/* @__PURE__ */ f(p, {
29
30
  variant: "outline",
30
- onClick: () => p(m("crops/planning")),
31
- children: [/* @__PURE__ */ u(o, { className: "h-4 w-4" }), h("healthybowl.common.back", "Back")]
32
- }), /* @__PURE__ */ d(f, {
31
+ onClick: () => m(h("crops/planning")),
32
+ children: [/* @__PURE__ */ d(s, { className: "h-4 w-4" }), g("healthybowl.common.back", "Back")]
33
+ }), /* @__PURE__ */ f(p, {
33
34
  onClick: () => {
34
35
  let e = [[
35
36
  "Crop",
@@ -39,7 +40,7 @@ var p = () => {
39
40
  "Status",
40
41
  "Expected yield",
41
42
  "Seed required"
42
- ], ...g.map((e) => [
43
+ ], ..._.map((e) => [
43
44
  e.cropName,
44
45
  e.fieldName,
45
46
  e.startDate,
@@ -47,74 +48,74 @@ var p = () => {
47
48
  e.status,
48
49
  String(e.expectedYield),
49
50
  String(e.seedRequired)
50
- ])], t = new Blob([e.map((e) => e.map((e) => JSON.stringify(e)).join(",")).join("\n")], { type: "text/csv;charset=utf-8" }), n = URL.createObjectURL(t), r = document.createElement("a");
51
+ ])], t = new Blob([i(e)], { type: "text/csv;charset=utf-8" }), n = URL.createObjectURL(t), r = document.createElement("a");
51
52
  r.href = n, r.download = "healthy-bowl-planting-plan-report.csv", r.click(), URL.revokeObjectURL(n);
52
53
  },
53
- disabled: g.length === 0,
54
- children: [/* @__PURE__ */ u(s, { className: "h-4 w-4" }), h("healthybowl.common.download", "Download CSV")]
54
+ disabled: _.length === 0,
55
+ children: [/* @__PURE__ */ d(c, { className: "h-4 w-4" }), g("healthybowl.common.download", "Download CSV")]
55
56
  })]
56
57
  }),
57
- children: g.length === 0 ? /* @__PURE__ */ u(n, {
58
- title: h("healthybowl.crops.planning.report.empty.title", "No plans to report"),
59
- description: h("healthybowl.crops.planning.report.empty.description", "Create a planting plan first.")
60
- }) : /* @__PURE__ */ d("div", {
58
+ children: _.length === 0 ? /* @__PURE__ */ d(n, {
59
+ title: g("healthybowl.crops.planning.report.empty.title", "No plans to report"),
60
+ description: g("healthybowl.crops.planning.report.empty.description", "Create a planting plan first.")
61
+ }) : /* @__PURE__ */ f("div", {
61
62
  className: "space-y-6",
62
- children: [/* @__PURE__ */ u("div", {
63
+ children: [/* @__PURE__ */ d("div", {
63
64
  className: "grid gap-3 sm:grid-cols-3",
64
65
  children: [
65
- ["Plans", _.plans],
66
- ["Expected yield", _.expectedYield],
67
- ["Seed required", _.seedRequired]
68
- ].map(([e, t]) => /* @__PURE__ */ d("div", {
66
+ ["Plans", v.plans],
67
+ ["Expected yield", v.expectedYield],
68
+ ["Seed required", v.seedRequired]
69
+ ].map(([e, t]) => /* @__PURE__ */ f("div", {
69
70
  className: "rounded-xl border border-border-seam bg-bg-surface p-4",
70
71
  children: [
71
- /* @__PURE__ */ u(c, { className: "h-5 w-5 text-action-primary-bg" }),
72
- /* @__PURE__ */ u("p", {
72
+ /* @__PURE__ */ d(l, { className: "h-5 w-5 text-action-primary-bg" }),
73
+ /* @__PURE__ */ d("p", {
73
74
  className: "mt-3 text-sm text-text-secondary",
74
75
  children: e
75
76
  }),
76
- /* @__PURE__ */ u("p", {
77
+ /* @__PURE__ */ d("p", {
77
78
  className: "text-2xl font-semibold text-text-primary",
78
79
  children: t
79
80
  })
80
81
  ]
81
82
  }, String(e)))
82
- }), /* @__PURE__ */ u("div", {
83
+ }), /* @__PURE__ */ d("div", {
83
84
  className: "overflow-x-auto rounded-xl border border-border-seam",
84
- children: /* @__PURE__ */ d("table", {
85
+ children: /* @__PURE__ */ f("table", {
85
86
  className: "w-full text-left text-sm",
86
- children: [/* @__PURE__ */ u("thead", {
87
+ children: [/* @__PURE__ */ d("thead", {
87
88
  className: "bg-bg-sunken text-text-secondary",
88
- children: /* @__PURE__ */ d("tr", { children: [
89
- /* @__PURE__ */ u("th", {
89
+ children: /* @__PURE__ */ f("tr", { children: [
90
+ /* @__PURE__ */ d("th", {
90
91
  className: "p-3",
91
92
  children: "Crop"
92
93
  }),
93
- /* @__PURE__ */ u("th", {
94
+ /* @__PURE__ */ d("th", {
94
95
  className: "p-3",
95
96
  children: "Field"
96
97
  }),
97
- /* @__PURE__ */ u("th", {
98
+ /* @__PURE__ */ d("th", {
98
99
  className: "p-3",
99
100
  children: "Dates"
100
101
  }),
101
- /* @__PURE__ */ u("th", {
102
+ /* @__PURE__ */ d("th", {
102
103
  className: "p-3",
103
104
  children: "Status"
104
105
  })
105
106
  ] })
106
- }), /* @__PURE__ */ u("tbody", { children: g.map((e) => /* @__PURE__ */ d("tr", {
107
+ }), /* @__PURE__ */ d("tbody", { children: _.map((e) => /* @__PURE__ */ f("tr", {
107
108
  className: "border-t border-border-seam",
108
109
  children: [
109
- /* @__PURE__ */ u("td", {
110
+ /* @__PURE__ */ d("td", {
110
111
  className: "p-3 font-medium text-text-primary",
111
112
  children: e.cropName
112
113
  }),
113
- /* @__PURE__ */ u("td", {
114
+ /* @__PURE__ */ d("td", {
114
115
  className: "p-3 text-text-secondary",
115
116
  children: e.fieldName
116
117
  }),
117
- /* @__PURE__ */ d("td", {
118
+ /* @__PURE__ */ f("td", {
118
119
  className: "p-3 text-text-secondary",
119
120
  children: [
120
121
  e.startDate,
@@ -122,7 +123,7 @@ var p = () => {
122
123
  e.endDate
123
124
  ]
124
125
  }),
125
- /* @__PURE__ */ u("td", {
126
+ /* @__PURE__ */ d("td", {
126
127
  className: "p-3 capitalize text-text-secondary",
127
128
  children: e.status
128
129
  })
@@ -134,4 +135,4 @@ var p = () => {
134
135
  });
135
136
  };
136
137
  //#endregion
137
- export { p as PlantingPlanReportPage };
138
+ export { m as PlantingPlanReportPage };
@@ -10,76 +10,77 @@ import "../../components/index.js";
10
10
  import { useHealthyBowlData as c } from "../../hooks/useHealthyBowlData.js";
11
11
  import { Legend as l } from "../../../node_modules/recharts/es6/component/Legend.js";
12
12
  import { Tooltip as u } from "../../../node_modules/recharts/es6/component/Tooltip.js";
13
- import { ResponsiveContainer as d } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
14
- import { CartesianGrid as f } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
15
- import { Line as p } from "../../../node_modules/recharts/es6/cartesian/Line.js";
16
- import { XAxis as m } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
17
- import { YAxis as te } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
13
+ import { ResponsiveContainer as te } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
14
+ import { CartesianGrid as d } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
15
+ import { Line as f } from "../../../node_modules/recharts/es6/cartesian/Line.js";
16
+ import { XAxis as p } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
17
+ import { YAxis as m } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
18
18
  import { LineChart as h } from "../../../node_modules/recharts/es6/chart/LineChart.js";
19
19
  import { reportPeriodOptions as g, useAnalyticsReports as _ } from "../../hooks/useAnalyticsReports.js";
20
- import { useState as v } from "react";
21
- import { useI18n as y } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
22
- import { BarChart3 as b, Clock as x, FileDown as S, FileText as C, PieChart as w, TrendingUp as T, Wallet as E } from "lucide-react";
20
+ import { csvRows as v } from "../../utils/csv.js";
21
+ import { useState as y } from "react";
22
+ import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
23
+ import { BarChart3 as x, Clock as S, FileDown as C, FileText as w, PieChart as ne, TrendingUp as T, Wallet as E } from "lucide-react";
23
24
  import { jsx as D, jsxs as O } from "react/jsx-runtime";
24
25
  import { Button as k, Select as A, SelectContent as j, SelectItem as M, SelectTrigger as N, SelectValue as P } from "@burdenoff/fe-libs/ui";
25
26
  //#region src/healthybowl/pages/financial/FinancialReportsPage.tsx
26
27
  var F = {
27
28
  pl: T,
28
- cashflow: b,
29
+ cashflow: x,
29
30
  budget: E,
30
- tax: C
31
+ tax: w
31
32
  }, I = () => {
32
- let { t: b } = y(), { transactions: C, invoices: T, revenueChartData: E, loading: I, errors: L, refetch: R } = c(), { generate: z } = _(), [B, V] = v(!1), H = g(/* @__PURE__ */ new Date()), U = [
33
+ let { t: x } = b(), { transactions: w, invoices: T, revenueChartData: E, loading: I, errors: L, refetch: R } = c(), { generate: z } = _(), [B, V] = y(!1), H = g(/* @__PURE__ */ new Date()), U = [
33
34
  {
34
35
  id: "rpt-pl",
35
- title: b("healthybowl.financial.reports.types.pl.title", "Profit & Loss Statement"),
36
- description: b("healthybowl.financial.reports.types.pl.description", "Revenue, expenses, and net income summary"),
36
+ title: x("healthybowl.financial.reports.types.pl.title", "Profit & Loss Statement"),
37
+ description: x("healthybowl.financial.reports.types.pl.description", "Revenue, expenses, and net income summary"),
37
38
  category: "pl"
38
39
  },
39
40
  {
40
41
  id: "rpt-cf",
41
- title: b("healthybowl.financial.reports.types.cashflow.title", "Cash Flow Report"),
42
- description: b("healthybowl.financial.reports.types.cashflow.description", "Cash inflows, outflows, and closing balance"),
42
+ title: x("healthybowl.financial.reports.types.cashflow.title", "Cash Flow Report"),
43
+ description: x("healthybowl.financial.reports.types.cashflow.description", "Cash inflows, outflows, and closing balance"),
43
44
  category: "cashflow"
44
45
  },
45
46
  {
46
47
  id: "rpt-ba",
47
- title: b("healthybowl.financial.reports.types.budget.title", "Budget vs Actual"),
48
- description: b("healthybowl.financial.reports.types.budget.description", "Budget allocation vs actual spending by category"),
48
+ title: x("healthybowl.financial.reports.types.budget.title", "Budget vs Actual"),
49
+ description: x("healthybowl.financial.reports.types.budget.description", "Budget allocation vs actual spending by category"),
49
50
  category: "budget"
50
51
  },
51
52
  {
52
53
  id: "rpt-tax",
53
- title: b("healthybowl.financial.reports.types.tax.title", "Tax Summary"),
54
- description: b("healthybowl.financial.reports.types.tax.description", "Tax collected, paid, and outstanding for the period"),
54
+ title: x("healthybowl.financial.reports.types.tax.title", "Tax Summary"),
55
+ description: x("healthybowl.financial.reports.types.tax.description", "Tax collected, paid, and outstanding for the period"),
55
56
  category: "tax"
56
57
  },
57
58
  {
58
59
  id: "rpt-ar",
59
- title: b("healthybowl.financial.reports.types.receivableAging.title", "Accounts Receivable Aging"),
60
- description: b("healthybowl.financial.reports.types.receivableAging.description", "Outstanding invoices grouped by aging buckets"),
60
+ title: x("healthybowl.financial.reports.types.receivableAging.title", "Accounts Receivable Aging"),
61
+ description: x("healthybowl.financial.reports.types.receivableAging.description", "Outstanding invoices grouped by aging buckets"),
61
62
  category: "cashflow"
62
63
  }
63
- ], { toasts: W, toast: G, dismiss: K } = s(), [q, J] = v("ytd"), Y = C.filter((e) => e.type === "income").reduce((e, t) => e + t.amount, 0), X = C.filter((e) => e.type === "expense").reduce((e, t) => e + t.amount, 0), Z = Y - X, ne = T.filter((e) => e.status === "sent" || e.status === "overdue").reduce((e, t) => e + t.total, 0), Q = [
64
+ ], { toasts: W, toast: G, dismiss: K } = s(), [q, J] = y("ytd"), Y = w.filter((e) => e.type === "income").reduce((e, t) => e + t.amount, 0), X = w.filter((e) => e.type === "expense").reduce((e, t) => e + t.amount, 0), Z = Y - X, re = T.filter((e) => e.status === "sent" || e.status === "overdue").reduce((e, t) => e + t.total, 0), Q = [
64
65
  {
65
66
  id: "grossRevenue",
66
- label: b("healthybowl.financial.reports.metrics.grossRevenue", "Gross Revenue"),
67
+ label: x("healthybowl.financial.reports.metrics.grossRevenue", "Gross Revenue"),
67
68
  value: Y
68
69
  },
69
70
  {
70
71
  id: "operatingExpenses",
71
- label: b("healthybowl.financial.reports.metrics.operatingExpenses", "Operating Expenses"),
72
+ label: x("healthybowl.financial.reports.metrics.operatingExpenses", "Operating Expenses"),
72
73
  value: X
73
74
  },
74
75
  {
75
76
  id: "netIncome",
76
- label: b("healthybowl.financial.reports.metrics.netIncome", "Net Income"),
77
+ label: x("healthybowl.financial.reports.metrics.netIncome", "Net Income"),
77
78
  value: Z
78
79
  },
79
80
  {
80
81
  id: "accountsReceivable",
81
- label: b("healthybowl.financial.reports.metrics.accountsReceivable", "Accounts Receivable"),
82
- value: ne
82
+ label: x("healthybowl.financial.reports.metrics.accountsReceivable", "Accounts Receivable"),
83
+ value: re
83
84
  }
84
85
  ], $ = async (e) => {
85
86
  if (B) return;
@@ -98,45 +99,45 @@ var F = {
98
99
  }
99
100
  if (!i.ok) {
100
101
  G({
101
- title: b("healthybowl.financial.reports.toast.generateFailed.title", "Could not generate the report"),
102
+ title: x("healthybowl.financial.reports.toast.generateFailed.title", "Could not generate the report"),
102
103
  description: i.message,
103
104
  variant: "error"
104
105
  });
105
106
  return;
106
107
  }
107
108
  await R().catch(() => void 0), G({
108
- title: b("healthybowl.financial.reports.toast.generated.title", "Report ready"),
109
- description: b("healthybowl.financial.reports.toast.generated.description", "\"{{title}}\" ({{period}}) is ready under Analytics → Reports.", {
109
+ title: x("healthybowl.financial.reports.toast.generated.title", "Report ready"),
110
+ description: x("healthybowl.financial.reports.toast.generated.description", "\"{{title}}\" ({{period}}) is ready under Analytics → Reports.", {
110
111
  title: e,
111
- period: b(r?.labelKey ?? "", r?.labelFallback ?? "")
112
+ period: x(r?.labelKey ?? "", r?.labelFallback ?? "")
112
113
  }),
113
114
  variant: "success"
114
115
  });
115
116
  } finally {
116
117
  t && V(!1);
117
118
  }
118
- }, re = async (e) => {
119
- await $(U.find((t) => t.id === e)?.title ?? b("healthybowl.financial.reports.toast.fallbackReport", "Financial report"));
120
- }, ie = (e) => {
121
- let t = [["Metric", "Value"], ...Q.map((e) => [e.label, String((e.value ?? 0).toFixed(2))])].map((e) => e.map((e) => `"${e}"`).join(",")).join("\n"), n = new Blob([t], { type: "text/csv" }), r = URL.createObjectURL(n), i = document.createElement("a");
119
+ }, ie = async (e) => {
120
+ await $(U.find((t) => t.id === e)?.title ?? x("healthybowl.financial.reports.toast.fallbackReport", "Financial report"));
121
+ }, ae = (e) => {
122
+ let t = v([["Metric", "Value"], ...Q.map((e) => [e.label, String((e.value ?? 0).toFixed(2))])]), n = new Blob([t], { type: "text/csv" }), r = URL.createObjectURL(n), i = document.createElement("a");
122
123
  i.href = r, i.download = `${(e.title ?? "").replace(/\s+/g, "_")}.csv`, i.click(), URL.revokeObjectURL(r), G({
123
- title: b("healthybowl.financial.reports.toast.downloaded.title", "Downloaded as CSV"),
124
+ title: x("healthybowl.financial.reports.toast.downloaded.title", "Downloaded as CSV"),
124
125
  description: e.title,
125
126
  variant: "success"
126
127
  });
127
- }, ae = async () => {
128
- await $(b("healthybowl.financial.reports.customTitle", "Custom financial report"));
128
+ }, oe = async () => {
129
+ await $(x("healthybowl.financial.reports.customTitle", "Custom financial report"));
129
130
  };
130
- return I && C.length === 0 && T.length === 0 && E.length === 0 ? /* @__PURE__ */ D(n, {
131
- title: b("healthybowl.financial.reports.title", "Financial Reports"),
132
- description: b("healthybowl.financial.reports.description", "Generate, download, and schedule financial reports"),
131
+ return I && w.length === 0 && T.length === 0 && E.length === 0 ? /* @__PURE__ */ D(n, {
132
+ title: x("healthybowl.financial.reports.title", "Financial Reports"),
133
+ description: x("healthybowl.financial.reports.description", "Generate, download, and schedule financial reports"),
133
134
  children: /* @__PURE__ */ D(ee, {
134
135
  variant: "card",
135
136
  count: 4
136
137
  })
137
138
  }) : /* @__PURE__ */ O(n, {
138
- title: b("healthybowl.financial.reports.title", "Financial Reports"),
139
- description: b("healthybowl.financial.reports.description", "Generate, download, and schedule financial reports"),
139
+ title: x("healthybowl.financial.reports.title", "Financial Reports"),
140
+ description: x("healthybowl.financial.reports.description", "Generate, download, and schedule financial reports"),
140
141
  purpose: "Produce the financial statements you need for tax, loans or your own books — and schedule them to arrive automatically. Hand these to your accountant or lender as proof of how the farm is doing.",
141
142
  children: [
142
143
  /* @__PURE__ */ O("div", {
@@ -144,25 +145,25 @@ var F = {
144
145
  children: [
145
146
  /* @__PURE__ */ D("h3", {
146
147
  className: "text-sm font-semibold text-text-primary",
147
- children: b("healthybowl.financial.reports.generate.heading", "Generate Report")
148
+ children: x("healthybowl.financial.reports.generate.heading", "Generate Report")
148
149
  }),
149
150
  /* @__PURE__ */ D("p", {
150
151
  className: "mt-0.5 text-xs text-text-secondary",
151
- children: b("healthybowl.financial.reports.generate.subtitle", "Generate a financial PDF for the selected period")
152
+ children: x("healthybowl.financial.reports.generate.subtitle", "Generate a financial PDF for the selected period")
152
153
  }),
153
154
  /* @__PURE__ */ O("div", {
154
155
  className: "mt-4 flex flex-wrap items-end gap-3",
155
156
  children: [
156
157
  /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("span", {
157
158
  className: "mb-1 block text-xs font-medium text-text-secondary",
158
- children: b("healthybowl.financial.reports.generate.fields.reportType.label", "Report Type")
159
+ children: x("healthybowl.financial.reports.generate.fields.reportType.label", "Report Type")
159
160
  }), /* @__PURE__ */ D("p", {
160
161
  className: "h-9 rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary",
161
- children: b("healthybowl.financial.reports.generate.types.financial", "Financial")
162
+ children: x("healthybowl.financial.reports.generate.types.financial", "Financial")
162
163
  })] }),
163
164
  /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
164
165
  className: "mb-1 block text-xs font-medium text-text-secondary",
165
- children: b("healthybowl.financial.reports.generate.fields.period.label", "Period")
166
+ children: x("healthybowl.financial.reports.generate.fields.period.label", "Period")
166
167
  }), /* @__PURE__ */ O(A, {
167
168
  value: q,
168
169
  onValueChange: J,
@@ -171,44 +172,44 @@ var F = {
171
172
  children: /* @__PURE__ */ D(P, {})
172
173
  }), /* @__PURE__ */ D(j, { children: H.map((e) => /* @__PURE__ */ D(M, {
173
174
  value: e.value,
174
- children: b(e.labelKey, e.labelFallback)
175
+ children: x(e.labelKey, e.labelFallback)
175
176
  }, e.value)) })]
176
177
  })] }),
177
178
  /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("span", {
178
179
  className: "mb-1 block text-xs font-medium text-text-secondary",
179
- children: b("healthybowl.financial.reports.generate.fields.format.label", "Format")
180
+ children: x("healthybowl.financial.reports.generate.fields.format.label", "Format")
180
181
  }), /* @__PURE__ */ D("p", {
181
182
  className: "h-9 rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-primary",
182
- children: b("healthybowl.financial.reports.generate.formats.pdf", "PDF")
183
+ children: x("healthybowl.financial.reports.generate.formats.pdf", "PDF")
183
184
  })] }),
184
185
  /* @__PURE__ */ O(k, {
185
- onClick: () => void ae(),
186
+ onClick: () => void oe(),
186
187
  disabled: B,
187
- children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), b("healthybowl.financial.reports.generate.actions.generate", "Generate")]
188
+ children: [/* @__PURE__ */ D(C, { className: "h-4 w-4" }), x("healthybowl.financial.reports.generate.actions.generate", "Generate")]
188
189
  }),
189
190
  /* @__PURE__ */ O(k, {
190
191
  variant: "outline",
191
192
  onClick: () => {
192
193
  G({
193
- title: b("healthybowl.financial.reports.toast.scheduleUnavailable.title", "Report scheduling is not available yet"),
194
- description: b("healthybowl.financial.reports.toast.scheduleUnavailable.description", "Scheduled reports have no backend yet — nothing was scheduled. You can generate a report now instead."),
194
+ title: x("healthybowl.financial.reports.toast.scheduleUnavailable.title", "Report scheduling is not available yet"),
195
+ description: x("healthybowl.financial.reports.toast.scheduleUnavailable.description", "Scheduled reports have no backend yet — nothing was scheduled. You can generate a report now instead."),
195
196
  variant: "warning"
196
197
  });
197
198
  },
198
- children: [/* @__PURE__ */ D(x, { className: "h-4 w-4" }), b("healthybowl.financial.reports.generate.actions.schedule", "Schedule")]
199
+ children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), x("healthybowl.financial.reports.generate.actions.schedule", "Schedule")]
199
200
  })
200
201
  ]
201
202
  })
202
203
  ]
203
204
  }),
204
205
  /* @__PURE__ */ D(a, {
205
- title: b("healthybowl.financial.reports.revenueTrend.title", "Revenue Trend"),
206
- description: b("healthybowl.financial.reports.revenueTrend.description", "Monthly revenue over last 6 months"),
206
+ title: x("healthybowl.financial.reports.revenueTrend.title", "Revenue Trend"),
207
+ description: x("healthybowl.financial.reports.revenueTrend.description", "Monthly revenue over last 6 months"),
207
208
  children: E.length === 0 ? L.financial ? /* @__PURE__ */ D(i, {}) : /* @__PURE__ */ D(r, {
208
209
  illustration: "empty-data",
209
- title: b("healthybowl.financial.reports.revenueTrend.empty.title", "No revenue data yet"),
210
- description: b("healthybowl.financial.reports.revenueTrend.empty.description", "Revenue and expense trends will appear here once financial activity is recorded.")
211
- }) : /* @__PURE__ */ D(d, {
210
+ title: x("healthybowl.financial.reports.revenueTrend.empty.title", "No revenue data yet"),
211
+ description: x("healthybowl.financial.reports.revenueTrend.empty.description", "Revenue and expense trends will appear here once financial activity is recorded.")
212
+ }) : /* @__PURE__ */ D(te, {
212
213
  width: "100%",
213
214
  height: 260,
214
215
  children: /* @__PURE__ */ O(h, {
@@ -220,16 +221,16 @@ var F = {
220
221
  bottom: 5
221
222
  },
222
223
  children: [
223
- /* @__PURE__ */ D(f, {
224
+ /* @__PURE__ */ D(d, {
224
225
  strokeDasharray: "3 3",
225
226
  className: "stroke-border"
226
227
  }),
227
- /* @__PURE__ */ D(m, {
228
+ /* @__PURE__ */ D(p, {
228
229
  dataKey: "month",
229
230
  className: "text-xs",
230
231
  tick: { fill: "currentColor" }
231
232
  }),
232
- /* @__PURE__ */ D(te, {
233
+ /* @__PURE__ */ D(m, {
233
234
  className: "text-xs",
234
235
  tick: { fill: "currentColor" },
235
236
  tickFormatter: (t) => e(t, "INR")
@@ -244,10 +245,10 @@ var F = {
244
245
  labelStyle: { color: "var(--color-foreground)" }
245
246
  }),
246
247
  /* @__PURE__ */ D(l, {}),
247
- /* @__PURE__ */ D(p, {
248
+ /* @__PURE__ */ D(f, {
248
249
  type: "monotone",
249
250
  dataKey: "revenue",
250
- name: b("healthybowl.financial.reports.revenueTrend.series.revenue", "Revenue"),
251
+ name: x("healthybowl.financial.reports.revenueTrend.series.revenue", "Revenue"),
251
252
  stroke: "var(--color-success)",
252
253
  strokeWidth: 2,
253
254
  dot: {
@@ -256,10 +257,10 @@ var F = {
256
257
  },
257
258
  activeDot: { r: 6 }
258
259
  }),
259
- /* @__PURE__ */ D(p, {
260
+ /* @__PURE__ */ D(f, {
260
261
  type: "monotone",
261
262
  dataKey: "expenses",
262
- name: b("healthybowl.financial.reports.revenueTrend.series.expenses", "Expenses"),
263
+ name: x("healthybowl.financial.reports.revenueTrend.series.expenses", "Expenses"),
263
264
  stroke: "var(--color-destructive)",
264
265
  strokeWidth: 2,
265
266
  dot: {
@@ -276,14 +277,14 @@ var F = {
276
277
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
277
278
  children: [/* @__PURE__ */ O("div", {
278
279
  className: "flex items-center gap-2",
279
- children: [/* @__PURE__ */ D(w, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ D("h3", {
280
+ children: [/* @__PURE__ */ D(ne, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ D("h3", {
280
281
  className: "text-sm font-semibold text-text-primary",
281
- children: b("healthybowl.financial.reports.metrics.heading", "Key Financial Metrics")
282
+ children: x("healthybowl.financial.reports.metrics.heading", "Key Financial Metrics")
282
283
  })]
283
- }), C.length === 0 && T.length === 0 ? L.financial ? /* @__PURE__ */ D(i, {}) : /* @__PURE__ */ D(r, {
284
+ }), w.length === 0 && T.length === 0 ? L.financial ? /* @__PURE__ */ D(i, {}) : /* @__PURE__ */ D(r, {
284
285
  illustration: "empty-data",
285
- title: b("healthybowl.financial.reports.metrics.empty.title", "No financial data yet"),
286
- description: b("healthybowl.financial.reports.metrics.empty.description", "Key metrics will appear here once transactions and invoices are recorded.")
286
+ title: x("healthybowl.financial.reports.metrics.empty.title", "No financial data yet"),
287
+ description: x("healthybowl.financial.reports.metrics.empty.description", "Key metrics will appear here once transactions and invoices are recorded.")
287
288
  }) : /* @__PURE__ */ D("div", {
288
289
  className: "mt-4 grid grid-cols-2 gap-4 sm:grid-cols-4",
289
290
  children: Q.map((e) => /* @__PURE__ */ O("div", {
@@ -300,7 +301,7 @@ var F = {
300
301
  }),
301
302
  /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h3", {
302
303
  className: "mb-3 text-sm font-semibold text-text-primary",
303
- children: b("healthybowl.financial.reports.available.heading", "Available Reports")
304
+ children: x("healthybowl.financial.reports.available.heading", "Available Reports")
304
305
  }), /* @__PURE__ */ D("div", {
305
306
  className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-3",
306
307
  children: U.map((e) => {
@@ -327,13 +328,13 @@ var F = {
327
328
  children: [/* @__PURE__ */ O(k, {
328
329
  variant: "outline",
329
330
  size: "sm",
330
- onClick: () => ie(e),
331
- children: [/* @__PURE__ */ D(S, { className: "h-3.5 w-3.5" }), b("healthybowl.financial.reports.available.actions.downloadCsv", "Download CSV")]
331
+ onClick: () => ae(e),
332
+ children: [/* @__PURE__ */ D(C, { className: "h-3.5 w-3.5" }), x("healthybowl.financial.reports.available.actions.downloadCsv", "Download CSV")]
332
333
  }), /* @__PURE__ */ D(k, {
333
334
  size: "sm",
334
- onClick: () => void re(e.id),
335
+ onClick: () => void ie(e.id),
335
336
  disabled: B,
336
- children: b("healthybowl.financial.reports.available.actions.generate", "Generate")
337
+ children: x("healthybowl.financial.reports.available.actions.generate", "Generate")
337
338
  })]
338
339
  })]
339
340
  }, e.id);