@burdenoff/microfe-healthybowl 2026.904.21 → 2026.904.22
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.
- package/dist/components/assistant/AssistantChatArea.js +7 -9
- package/dist/components/assistant/AssistantChatArea.js.map +1 -1
- package/dist/healthybowl/HealthyBowlRoot.js +56 -57
- package/dist/healthybowl/HealthyBowlRoot.js.map +1 -1
- package/dist/healthybowl/HealthyBowlRoutes.js +36 -48
- package/dist/healthybowl/HealthyBowlRoutes.js.map +1 -1
- package/dist/healthybowl/components/CreateFarmTaskButton.js.map +1 -1
- package/dist/healthybowl/components/PageLayout.js +10 -11
- package/dist/healthybowl/components/PageLayout.js.map +1 -1
- package/dist/healthybowl/context/HealthyBowlContext.js +7 -7
- package/dist/healthybowl/context/HealthyBowlContext.js.map +1 -1
- package/dist/healthybowl/hooks/useHealthyBowlCompliance.js +141 -157
- package/dist/healthybowl/hooks/useHealthyBowlCompliance.js.map +1 -1
- package/dist/healthybowl/hooks/useHealthyBowlData.js +0 -18
- package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
- package/dist/healthybowl/hooks/useHealthyBowlDistribution.js +37 -52
- package/dist/healthybowl/hooks/useHealthyBowlDistribution.js.map +1 -1
- package/dist/healthybowl/hooks/useHealthyBowlLivestockDepth.js +78 -135
- package/dist/healthybowl/hooks/useHealthyBowlLivestockDepth.js.map +1 -1
- package/dist/healthybowl/hooks/useIrrigationAutomation.js +1 -1
- package/dist/healthybowl/hooks/useIrrigationAutomation.js.map +1 -1
- package/dist/healthybowl/hooks/useSuccessionPlanning.js +1 -1
- package/dist/healthybowl/hooks/useSuccessionPlanning.js.map +1 -1
- package/dist/healthybowl/hooks/useWeatherIntelligence.js +1 -1
- package/dist/healthybowl/hooks/useWeatherIntelligence.js.map +1 -1
- package/dist/healthybowl/offline/OfflineStatusPill.js +21 -40
- package/dist/healthybowl/offline/OfflineStatusPill.js.map +1 -1
- package/dist/healthybowl/offline/OfflineSyncProvider.js +130 -153
- package/dist/healthybowl/offline/OfflineSyncProvider.js.map +1 -1
- package/dist/healthybowl/offline/graphql.js.map +1 -1
- package/dist/healthybowl/offline/store.js +1 -1
- package/dist/healthybowl/offline/syncEngine.js +1 -2
- package/dist/healthybowl/offline/syncEngine.js.map +1 -1
- package/dist/healthybowl/offline/types.js.map +1 -1
- package/dist/healthybowl/pages/GettingStartedPage.js +0 -1
- package/dist/healthybowl/pages/GettingStartedPage.js.map +1 -1
- package/dist/healthybowl/pages/analytics/InsightsPage.js +2 -2
- package/dist/healthybowl/pages/analytics/InsightsPage.js.map +1 -1
- package/dist/healthybowl/pages/analytics/ReportsPage.js +99 -136
- package/dist/healthybowl/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js +162 -204
- package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js +178 -196
- package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js +141 -142
- package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropFieldsPage.js +0 -2
- package/dist/healthybowl/pages/crops/CropFieldsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropHarvestPage.js +272 -316
- package/dist/healthybowl/pages/crops/CropHarvestPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropPlanningPage.js +0 -6
- package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js +846 -871
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +334 -376
- package/dist/healthybowl/pages/crops/HarvestDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/distribution/CsaPlanDetailPage.js +188 -415
- package/dist/healthybowl/pages/distribution/CsaPlanDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/distribution/labels.js +2 -10
- package/dist/healthybowl/pages/distribution/labels.js.map +1 -1
- package/dist/healthybowl/pages/farm/FarmProfilePage.js +0 -1
- package/dist/healthybowl/pages/farm/FarmProfilePage.js.map +1 -1
- package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js +8 -8
- package/dist/healthybowl/pages/fields/FieldMapPage.js +0 -2
- package/dist/healthybowl/pages/fields/FieldMapPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/FinancialReportsPage.js +107 -92
- package/dist/healthybowl/pages/financial/FinancialReportsPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +188 -228
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +191 -261
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/inputs-insurance/InputsInsuranceOverviewPage.js +14 -14
- package/dist/healthybowl/pages/inputs-insurance/InputsInsuranceOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/irrigation/IrrigationPage.js +307 -338
- package/dist/healthybowl/pages/irrigation/IrrigationPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalDepthFormModal.js +102 -126
- package/dist/healthybowl/pages/livestock/AnimalDepthFormModal.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalDepthPage.js +215 -257
- package/dist/healthybowl/pages/livestock/AnimalDepthPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/GrazingPage.js +0 -1
- package/dist/healthybowl/pages/livestock/GrazingPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/HerdDepthPage.js +0 -4
- package/dist/healthybowl/pages/livestock/HerdDepthPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/grazing/RecordGrazingMoveModal.js +9 -8
- package/dist/healthybowl/pages/livestock/grazing/RecordGrazingMoveModal.js.map +1 -1
- package/dist/healthybowl/pages/network/ExpertsPage.js +419 -520
- package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
- package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js +130 -129
- package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js.map +1 -1
- package/dist/healthybowl/pages/weather/WeatherSettingsPage.js +237 -285
- package/dist/healthybowl/pages/weather/WeatherSettingsPage.js.map +1 -1
- package/dist/healthybowl/utils/plantingCapacity.js +10 -10
- package/dist/healthybowl/utils/plantingCapacity.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +86 -74
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/services/assistantApi.js +30 -59
- package/dist/services/assistantApi.js.map +1 -1
- package/dist/utils/pageContext.js +1 -15
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
- package/dist/healthybowl/hooks/useAgronomyDecisions.js +0 -79
- package/dist/healthybowl/hooks/useAgronomyDecisions.js.map +0 -1
- package/dist/healthybowl/hooks/useAnalyticsReports.js +0 -173
- package/dist/healthybowl/hooks/useAnalyticsReports.js.map +0 -1
- package/dist/healthybowl/hooks/useComplianceExports.js +0 -74
- package/dist/healthybowl/hooks/useComplianceExports.js.map +0 -1
- package/dist/healthybowl/hooks/useConsultationPayments.js +0 -59
- package/dist/healthybowl/hooks/useConsultationPayments.js.map +0 -1
- package/dist/healthybowl/hooks/usePlantingEstimate.js +0 -88
- package/dist/healthybowl/hooks/usePlantingEstimate.js.map +0 -1
- package/dist/healthybowl/offline/HeaderOfflinePill.js +0 -28
- package/dist/healthybowl/offline/HeaderOfflinePill.js.map +0 -1
- package/dist/healthybowl/offline/captureCache.js +0 -30
- package/dist/healthybowl/offline/captureCache.js.map +0 -1
- package/dist/healthybowl/offline/headerSlot.js +0 -24
- package/dist/healthybowl/offline/headerSlot.js.map +0 -1
- package/dist/healthybowl/pages/ai/AiDecisionsPage.js +0 -287
- package/dist/healthybowl/pages/ai/AiDecisionsPage.js.map +0 -1
- package/dist/healthybowl/pages/compliance/ResidueTestsPage.js +0 -291
- package/dist/healthybowl/pages/compliance/ResidueTestsPage.js.map +0 -1
- package/dist/healthybowl/pages/compliance/SubstanceRulesPage.js +0 -300
- package/dist/healthybowl/pages/compliance/SubstanceRulesPage.js.map +0 -1
- package/dist/healthybowl/pages/compliance/substanceRuleForm.js +0 -135
- package/dist/healthybowl/pages/compliance/substanceRuleForm.js.map +0 -1
- package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js +0 -49
- package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js.map +0 -1
- package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js +0 -48
- package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js.map +0 -1
- package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js +0 -54
- package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js.map +0 -1
- package/dist/healthybowl/pages/livestock/PedigreeTree.js +0 -154
- package/dist/healthybowl/pages/livestock/PedigreeTree.js.map +0 -1
- package/dist/healthybowl/pages/livestock/eidTagInput.js +0 -39
- package/dist/healthybowl/pages/livestock/eidTagInput.js.map +0 -1
- package/dist/healthybowl/pages/livestock/pedigreeLayout.js +0 -68
- package/dist/healthybowl/pages/livestock/pedigreeLayout.js.map +0 -1
- package/dist/healthybowl/pages/weather/alertDelivery.js +0 -105
- package/dist/healthybowl/pages/weather/alertDelivery.js.map +0 -1
- package/dist/healthybowl/utils/icsInspection.js +0 -18
- package/dist/healthybowl/utils/icsInspection.js.map +0 -1
|
@@ -4,15 +4,14 @@ import { normalizeBasePath as r, setHbFormatLocale as i } from "./utils/helpers.
|
|
|
4
4
|
import { ErrorBoundary as a } from "./components/ErrorBoundary.js";
|
|
5
5
|
import { ConfirmProvider as o } from "./components/ConfirmDialog.js";
|
|
6
6
|
import { HealthyBowlRoutes as s } from "./HealthyBowlRoutes.js";
|
|
7
|
-
import { OfflineSyncProvider as
|
|
8
|
-
import {
|
|
9
|
-
import { useCallback as ne, useEffect as l } from "react";
|
|
7
|
+
import { OfflineSyncProvider as te } from "./offline/OfflineSyncProvider.js";
|
|
8
|
+
import { useCallback as ne, useEffect as c } from "react";
|
|
10
9
|
import { useI18n as re } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
|
-
import { Award as ie, Banknote as ae, BarChart3 as oe, Bug as se, Cloud as
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { FeatureFlagProvider as
|
|
10
|
+
import { Award as ie, Banknote as ae, BarChart3 as oe, Bug as se, Cloud as l, CloudUpload as u, DollarSign as d, Factory as f, Fence as p, FlaskConical as m, Globe as h, HardHat as g, Home as _, Landmark as v, Leaf as y, LineChart as b, ListChecks as x, Map as S, Package as C, PawPrint as w, Radio as T, RefreshCw as E, ScanLine as D, ScanSearch as O, ShieldAlert as k, ShieldCheck as A, ShoppingCart as j, Sprout as M, Stethoscope as ce, Tractor as N, UserCheck as P, Users as F, Users2 as I, Wheat as L } from "lucide-react";
|
|
11
|
+
import { jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
12
|
+
import { FeatureFlagProvider as B, useFeatureFlags as V } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
14
13
|
//#region src/healthybowl/HealthyBowlRoot.tsx
|
|
15
|
-
var
|
|
14
|
+
var H = /* @__PURE__ */ new Set([]), U = [
|
|
16
15
|
".lucide-arrow-right",
|
|
17
16
|
".lucide-arrow-left",
|
|
18
17
|
".lucide-chevron-right",
|
|
@@ -21,21 +20,21 @@ var U = /* @__PURE__ */ new Set([]), W = [
|
|
|
21
20
|
".lucide-chevrons-left",
|
|
22
21
|
".lucide-move-right",
|
|
23
22
|
".lucide-move-left"
|
|
24
|
-
].map((e) => `[dir="rtl"] ${e}`).join(",").concat("{transform:scaleX(-1)}"),
|
|
23
|
+
].map((e) => `[dir="rtl"] ${e}`).join(",").concat("{transform:scaleX(-1)}"), W = new Set([
|
|
25
24
|
"healthybowl-sustainability",
|
|
26
25
|
"healthybowl-sustainability-carbon",
|
|
27
26
|
"healthybowl-sustainability-soil",
|
|
28
27
|
"healthybowl-sustainability-credits",
|
|
29
28
|
"healthybowl-sustainability-eudr"
|
|
30
29
|
]);
|
|
31
|
-
function
|
|
32
|
-
return t ? e : e.filter((e) => !
|
|
30
|
+
function G(e, t) {
|
|
31
|
+
return t ? e : e.filter((e) => !W.has(e.id));
|
|
33
32
|
}
|
|
34
33
|
var K = (n) => {
|
|
35
|
-
let { registerNavItems:
|
|
34
|
+
let { registerNavItems: B, registerFooterItems: W, basePath: K = "/" } = n, { error: q, getEvaluation: le, isLoading: ue } = V(), J = ee(le(t), ue || q !== null), { t: Y, locale: X } = re();
|
|
36
35
|
i(X);
|
|
37
|
-
let Z =
|
|
38
|
-
|
|
36
|
+
let Z = H.has(X) ? "rtl" : "ltr";
|
|
37
|
+
c(() => {
|
|
39
38
|
let e = document.documentElement, t = e.getAttribute("dir");
|
|
40
39
|
return e.setAttribute("dir", Z), () => {
|
|
41
40
|
t === null ? e.removeAttribute("dir") : e.setAttribute("dir", t);
|
|
@@ -45,13 +44,13 @@ var K = (n) => {
|
|
|
45
44
|
let n = Y(e);
|
|
46
45
|
return n === e ? t : n;
|
|
47
46
|
}, [Y]), $ = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
48
|
-
return
|
|
49
|
-
if (
|
|
47
|
+
return c(() => {
|
|
48
|
+
if (B) return B(G([
|
|
50
49
|
{
|
|
51
50
|
id: "healthybowl-dashboard",
|
|
52
51
|
label: Q("healthybowl.nav.dashboard", "Dashboard"),
|
|
53
52
|
path: r(K),
|
|
54
|
-
icon: /* @__PURE__ */
|
|
53
|
+
icon: /* @__PURE__ */ R(_, { size: 20 }),
|
|
55
54
|
order: 1,
|
|
56
55
|
group: "main"
|
|
57
56
|
},
|
|
@@ -59,7 +58,7 @@ var K = (n) => {
|
|
|
59
58
|
id: "healthybowl-farm",
|
|
60
59
|
label: Q("healthybowl.nav.farm", "My Farm"),
|
|
61
60
|
path: $(K, "farm"),
|
|
62
|
-
icon: /* @__PURE__ */
|
|
61
|
+
icon: /* @__PURE__ */ R(N, { size: 20 }),
|
|
63
62
|
order: 2,
|
|
64
63
|
group: "main"
|
|
65
64
|
},
|
|
@@ -67,7 +66,7 @@ var K = (n) => {
|
|
|
67
66
|
id: "healthybowl-tasks",
|
|
68
67
|
label: Q("healthybowl.nav.tasks", "Tasks"),
|
|
69
68
|
path: $(K, "tasks"),
|
|
70
|
-
icon: /* @__PURE__ */
|
|
69
|
+
icon: /* @__PURE__ */ R(x, { size: 20 }),
|
|
71
70
|
order: 3,
|
|
72
71
|
group: "main"
|
|
73
72
|
},
|
|
@@ -75,7 +74,7 @@ var K = (n) => {
|
|
|
75
74
|
id: "healthybowl-crops",
|
|
76
75
|
label: Q("healthybowl.nav.crops", "Crops"),
|
|
77
76
|
path: $(K, "crops"),
|
|
78
|
-
icon: /* @__PURE__ */
|
|
77
|
+
icon: /* @__PURE__ */ R(L, { size: 20 }),
|
|
79
78
|
order: 10,
|
|
80
79
|
group: "farming"
|
|
81
80
|
},
|
|
@@ -83,7 +82,7 @@ var K = (n) => {
|
|
|
83
82
|
id: "healthybowl-livestock",
|
|
84
83
|
label: Q("healthybowl.nav.livestock", "Livestock"),
|
|
85
84
|
path: $(K, "livestock"),
|
|
86
|
-
icon: /* @__PURE__ */
|
|
85
|
+
icon: /* @__PURE__ */ R(w, { size: 20 }),
|
|
87
86
|
order: 11,
|
|
88
87
|
group: "farming"
|
|
89
88
|
},
|
|
@@ -91,7 +90,7 @@ var K = (n) => {
|
|
|
91
90
|
id: "healthybowl-livestock-analytics",
|
|
92
91
|
label: Q("healthybowl.nav.livestockAnalytics", "Livestock Analytics"),
|
|
93
92
|
path: $(K, "livestock/analytics"),
|
|
94
|
-
icon: /* @__PURE__ */
|
|
93
|
+
icon: /* @__PURE__ */ R(b, { size: 20 }),
|
|
95
94
|
order: 11.3,
|
|
96
95
|
group: "farming"
|
|
97
96
|
},
|
|
@@ -99,7 +98,7 @@ var K = (n) => {
|
|
|
99
98
|
id: "healthybowl-grazing",
|
|
100
99
|
label: Q("healthybowl.nav.grazing", "Grazing"),
|
|
101
100
|
path: $(K, "livestock/grazing"),
|
|
102
|
-
icon: /* @__PURE__ */
|
|
101
|
+
icon: /* @__PURE__ */ R(p, { size: 20 }),
|
|
103
102
|
order: 11.4,
|
|
104
103
|
group: "farming"
|
|
105
104
|
},
|
|
@@ -107,7 +106,7 @@ var K = (n) => {
|
|
|
107
106
|
id: "healthybowl-withdrawal-alerts",
|
|
108
107
|
label: Q("healthybowl.nav.withdrawalAlerts", "Withdrawal Alerts"),
|
|
109
108
|
path: $(K, "livestock/withdrawal-alerts"),
|
|
110
|
-
icon: /* @__PURE__ */
|
|
109
|
+
icon: /* @__PURE__ */ R(k, { size: 20 }),
|
|
111
110
|
order: 11.5,
|
|
112
111
|
group: "farming"
|
|
113
112
|
},
|
|
@@ -115,7 +114,7 @@ var K = (n) => {
|
|
|
115
114
|
id: "healthybowl-weather",
|
|
116
115
|
label: Q("healthybowl.nav.weather", "Weather"),
|
|
117
116
|
path: $(K, "weather"),
|
|
118
|
-
icon: /* @__PURE__ */
|
|
117
|
+
icon: /* @__PURE__ */ R(l, { size: 20 }),
|
|
119
118
|
order: 12,
|
|
120
119
|
group: "farming"
|
|
121
120
|
},
|
|
@@ -123,7 +122,7 @@ var K = (n) => {
|
|
|
123
122
|
id: "healthybowl-field-map",
|
|
124
123
|
label: Q("healthybowl.nav.fieldMap", "Field Map"),
|
|
125
124
|
path: $(K, "field-map"),
|
|
126
|
-
icon: /* @__PURE__ */
|
|
125
|
+
icon: /* @__PURE__ */ R(S, { size: 20 }),
|
|
127
126
|
order: 12.5,
|
|
128
127
|
group: "farming"
|
|
129
128
|
},
|
|
@@ -131,7 +130,7 @@ var K = (n) => {
|
|
|
131
130
|
id: "healthybowl-field-capture",
|
|
132
131
|
label: Q("healthybowl.nav.fieldCapture", "Field Capture"),
|
|
133
132
|
path: $(K, "field-capture"),
|
|
134
|
-
icon: /* @__PURE__ */
|
|
133
|
+
icon: /* @__PURE__ */ R(u, { size: 20 }),
|
|
135
134
|
order: 12.6,
|
|
136
135
|
group: "farming"
|
|
137
136
|
},
|
|
@@ -139,7 +138,7 @@ var K = (n) => {
|
|
|
139
138
|
id: "healthybowl-pending-sync",
|
|
140
139
|
label: Q("healthybowl.nav.pendingSync", "Pending Sync"),
|
|
141
140
|
path: $(K, "field-capture/pending"),
|
|
142
|
-
icon: /* @__PURE__ */
|
|
141
|
+
icon: /* @__PURE__ */ R(E, { size: 20 }),
|
|
143
142
|
order: 12.7,
|
|
144
143
|
group: "farming"
|
|
145
144
|
},
|
|
@@ -147,7 +146,7 @@ var K = (n) => {
|
|
|
147
146
|
id: "healthybowl-field-sensors",
|
|
148
147
|
label: Q("healthybowl.nav.fieldSensors", "Field Sensors"),
|
|
149
148
|
path: $(K, "field-sensors"),
|
|
150
|
-
icon: /* @__PURE__ */
|
|
149
|
+
icon: /* @__PURE__ */ R(T, { size: 20 }),
|
|
151
150
|
order: 12.75,
|
|
152
151
|
group: "farming"
|
|
153
152
|
},
|
|
@@ -155,7 +154,7 @@ var K = (n) => {
|
|
|
155
154
|
id: "healthybowl-soil",
|
|
156
155
|
label: Q("healthybowl.nav.soilHealth", "Soil Health"),
|
|
157
156
|
path: $(K, "soil"),
|
|
158
|
-
icon: /* @__PURE__ */
|
|
157
|
+
icon: /* @__PURE__ */ R(m, { size: 20 }),
|
|
159
158
|
order: 13,
|
|
160
159
|
group: "farming"
|
|
161
160
|
},
|
|
@@ -163,7 +162,7 @@ var K = (n) => {
|
|
|
163
162
|
id: "healthybowl-pest",
|
|
164
163
|
label: Q("healthybowl.nav.pestManagement", "Pest Management"),
|
|
165
164
|
path: $(K, "pest-management"),
|
|
166
|
-
icon: /* @__PURE__ */
|
|
165
|
+
icon: /* @__PURE__ */ R(se, { size: 20 }),
|
|
167
166
|
order: 14,
|
|
168
167
|
group: "farming"
|
|
169
168
|
},
|
|
@@ -171,7 +170,7 @@ var K = (n) => {
|
|
|
171
170
|
id: "healthybowl-pest-ai",
|
|
172
171
|
label: Q("healthybowl.nav.aiPestDetection", "AI Pest Detection"),
|
|
173
172
|
path: $(K, "pest-management/ai-detection"),
|
|
174
|
-
icon: /* @__PURE__ */
|
|
173
|
+
icon: /* @__PURE__ */ R(O, { size: 20 }),
|
|
175
174
|
order: 14.5,
|
|
176
175
|
group: "farming"
|
|
177
176
|
},
|
|
@@ -179,7 +178,7 @@ var K = (n) => {
|
|
|
179
178
|
id: "healthybowl-production",
|
|
180
179
|
label: Q("healthybowl.nav.production", "Production"),
|
|
181
180
|
path: $(K, "production"),
|
|
182
|
-
icon: /* @__PURE__ */
|
|
181
|
+
icon: /* @__PURE__ */ R(f, { size: 20 }),
|
|
183
182
|
order: 20,
|
|
184
183
|
group: "business"
|
|
185
184
|
},
|
|
@@ -187,7 +186,7 @@ var K = (n) => {
|
|
|
187
186
|
id: "healthybowl-products",
|
|
188
187
|
label: Q("healthybowl.nav.products", "Products"),
|
|
189
188
|
path: $(K, "products"),
|
|
190
|
-
icon: /* @__PURE__ */
|
|
189
|
+
icon: /* @__PURE__ */ R(C, { size: 20 }),
|
|
191
190
|
order: 21,
|
|
192
191
|
group: "business"
|
|
193
192
|
},
|
|
@@ -195,7 +194,7 @@ var K = (n) => {
|
|
|
195
194
|
id: "healthybowl-marketplace",
|
|
196
195
|
label: Q("healthybowl.nav.marketplace", "Marketplace"),
|
|
197
196
|
path: $(K, "marketplace"),
|
|
198
|
-
icon: /* @__PURE__ */
|
|
197
|
+
icon: /* @__PURE__ */ R(j, { size: 20 }),
|
|
199
198
|
order: 22,
|
|
200
199
|
group: "business"
|
|
201
200
|
},
|
|
@@ -203,7 +202,7 @@ var K = (n) => {
|
|
|
203
202
|
id: "healthybowl-labour",
|
|
204
203
|
label: Q("healthybowl.nav.labour", "Labour"),
|
|
205
204
|
path: $(K, "labour"),
|
|
206
|
-
icon: /* @__PURE__ */
|
|
205
|
+
icon: /* @__PURE__ */ R(g, { size: 20 }),
|
|
207
206
|
order: 22.5,
|
|
208
207
|
group: "business"
|
|
209
208
|
},
|
|
@@ -211,7 +210,7 @@ var K = (n) => {
|
|
|
211
210
|
id: "healthybowl-coop",
|
|
212
211
|
label: Q("healthybowl.nav.coop", "Co-operative"),
|
|
213
212
|
path: $(K, "coop"),
|
|
214
|
-
icon: /* @__PURE__ */
|
|
213
|
+
icon: /* @__PURE__ */ R(I, { size: 20 }),
|
|
215
214
|
order: 22.5,
|
|
216
215
|
group: "business"
|
|
217
216
|
},
|
|
@@ -219,7 +218,7 @@ var K = (n) => {
|
|
|
219
218
|
id: "healthybowl-financial",
|
|
220
219
|
label: Q("healthybowl.nav.financial", "Financial"),
|
|
221
220
|
path: $(K, "financial"),
|
|
222
|
-
icon: /* @__PURE__ */
|
|
221
|
+
icon: /* @__PURE__ */ R(d, { size: 20 }),
|
|
223
222
|
order: 23,
|
|
224
223
|
group: "business"
|
|
225
224
|
},
|
|
@@ -227,7 +226,7 @@ var K = (n) => {
|
|
|
227
226
|
id: "healthybowl-financier",
|
|
228
227
|
label: Q("healthybowl.nav.financier", "Financier"),
|
|
229
228
|
path: $(K, "financier"),
|
|
230
|
-
icon: /* @__PURE__ */
|
|
229
|
+
icon: /* @__PURE__ */ R(ae, { size: 20 }),
|
|
231
230
|
order: 24,
|
|
232
231
|
group: "business"
|
|
233
232
|
},
|
|
@@ -235,7 +234,7 @@ var K = (n) => {
|
|
|
235
234
|
id: "healthybowl-compliance",
|
|
236
235
|
label: Q("healthybowl.nav.compliance", "Compliance"),
|
|
237
236
|
path: $(K, "compliance"),
|
|
238
|
-
icon: /* @__PURE__ */
|
|
237
|
+
icon: /* @__PURE__ */ R(A, { size: 20 }),
|
|
239
238
|
order: 30,
|
|
240
239
|
group: "compliance"
|
|
241
240
|
},
|
|
@@ -243,7 +242,7 @@ var K = (n) => {
|
|
|
243
242
|
id: "healthybowl-traceability",
|
|
244
243
|
label: Q("healthybowl.nav.traceability", "Traceability"),
|
|
245
244
|
path: $(K, "traceability"),
|
|
246
|
-
icon: /* @__PURE__ */
|
|
245
|
+
icon: /* @__PURE__ */ R(D, { size: 20 }),
|
|
247
246
|
order: 31,
|
|
248
247
|
group: "compliance"
|
|
249
248
|
},
|
|
@@ -251,7 +250,7 @@ var K = (n) => {
|
|
|
251
250
|
id: "healthybowl-sustainability",
|
|
252
251
|
label: Q("healthybowl.nav.sustainability", "Sustainability"),
|
|
253
252
|
path: $(K, "sustainability"),
|
|
254
|
-
icon: /* @__PURE__ */
|
|
253
|
+
icon: /* @__PURE__ */ R(y, { size: 20 }),
|
|
255
254
|
order: 32,
|
|
256
255
|
group: "compliance"
|
|
257
256
|
},
|
|
@@ -259,7 +258,7 @@ var K = (n) => {
|
|
|
259
258
|
id: "healthybowl-sustainability-carbon",
|
|
260
259
|
label: Q("healthybowl.nav.sustainabilityCarbon", "Carbon & GHG"),
|
|
261
260
|
path: $(K, "sustainability/carbon"),
|
|
262
|
-
icon: /* @__PURE__ */
|
|
261
|
+
icon: /* @__PURE__ */ R(f, { size: 20 }),
|
|
263
262
|
order: 32.1,
|
|
264
263
|
group: "compliance"
|
|
265
264
|
},
|
|
@@ -267,7 +266,7 @@ var K = (n) => {
|
|
|
267
266
|
id: "healthybowl-sustainability-soil",
|
|
268
267
|
label: Q("healthybowl.nav.sustainabilitySoil", "Soil Carbon"),
|
|
269
268
|
path: $(K, "sustainability/soil-carbon"),
|
|
270
|
-
icon: /* @__PURE__ */
|
|
269
|
+
icon: /* @__PURE__ */ R(M, { size: 20 }),
|
|
271
270
|
order: 32.2,
|
|
272
271
|
group: "compliance"
|
|
273
272
|
},
|
|
@@ -275,7 +274,7 @@ var K = (n) => {
|
|
|
275
274
|
id: "healthybowl-sustainability-credits",
|
|
276
275
|
label: Q("healthybowl.nav.sustainabilityCredits", "Carbon Credits"),
|
|
277
276
|
path: $(K, "sustainability/credits"),
|
|
278
|
-
icon: /* @__PURE__ */
|
|
277
|
+
icon: /* @__PURE__ */ R(ie, { size: 20 }),
|
|
279
278
|
order: 32.3,
|
|
280
279
|
group: "compliance"
|
|
281
280
|
},
|
|
@@ -283,7 +282,7 @@ var K = (n) => {
|
|
|
283
282
|
id: "healthybowl-sustainability-eudr",
|
|
284
283
|
label: Q("healthybowl.nav.sustainabilityEudr", "EUDR Due-Diligence"),
|
|
285
284
|
path: $(K, "sustainability/eudr"),
|
|
286
|
-
icon: /* @__PURE__ */
|
|
285
|
+
icon: /* @__PURE__ */ R(h, { size: 20 }),
|
|
287
286
|
order: 32.4,
|
|
288
287
|
group: "compliance"
|
|
289
288
|
},
|
|
@@ -291,7 +290,7 @@ var K = (n) => {
|
|
|
291
290
|
id: "healthybowl-schemes",
|
|
292
291
|
label: Q("healthybowl.nav.governmentSchemes", "Gov. Schemes"),
|
|
293
292
|
path: $(K, "government-schemes"),
|
|
294
|
-
icon: /* @__PURE__ */
|
|
293
|
+
icon: /* @__PURE__ */ R(v, { size: 20 }),
|
|
295
294
|
order: 40,
|
|
296
295
|
group: "support"
|
|
297
296
|
},
|
|
@@ -299,7 +298,7 @@ var K = (n) => {
|
|
|
299
298
|
id: "healthybowl-network",
|
|
300
299
|
label: Q("healthybowl.nav.network", "Network"),
|
|
301
300
|
path: $(K, "network"),
|
|
302
|
-
icon: /* @__PURE__ */
|
|
301
|
+
icon: /* @__PURE__ */ R(F, { size: 20 }),
|
|
303
302
|
order: 41,
|
|
304
303
|
group: "support"
|
|
305
304
|
},
|
|
@@ -307,7 +306,7 @@ var K = (n) => {
|
|
|
307
306
|
id: "healthybowl-analytics",
|
|
308
307
|
label: Q("healthybowl.nav.analytics", "Analytics"),
|
|
309
308
|
path: $(K, "analytics"),
|
|
310
|
-
icon: /* @__PURE__ */
|
|
309
|
+
icon: /* @__PURE__ */ R(oe, { size: 20 }),
|
|
311
310
|
order: 42,
|
|
312
311
|
group: "support"
|
|
313
312
|
},
|
|
@@ -315,7 +314,7 @@ var K = (n) => {
|
|
|
315
314
|
id: "healthybowl-advisors",
|
|
316
315
|
label: Q("healthybowl.nav.advisors", "My Advisors"),
|
|
317
316
|
path: $(K, "advisors"),
|
|
318
|
-
icon: /* @__PURE__ */
|
|
317
|
+
icon: /* @__PURE__ */ R(P, { size: 20 }),
|
|
319
318
|
order: 43,
|
|
320
319
|
group: "support"
|
|
321
320
|
},
|
|
@@ -323,34 +322,34 @@ var K = (n) => {
|
|
|
323
322
|
id: "healthybowl-consultant",
|
|
324
323
|
label: Q("healthybowl.nav.consultant", "Consultant"),
|
|
325
324
|
path: $(K, "consultant"),
|
|
326
|
-
icon: /* @__PURE__ */
|
|
325
|
+
icon: /* @__PURE__ */ R(ce, { size: 20 }),
|
|
327
326
|
order: 44,
|
|
328
327
|
group: "support"
|
|
329
328
|
}
|
|
330
329
|
], J));
|
|
331
330
|
}, [
|
|
332
|
-
|
|
331
|
+
B,
|
|
333
332
|
K,
|
|
334
333
|
J,
|
|
335
334
|
Q
|
|
336
|
-
]),
|
|
337
|
-
if (
|
|
335
|
+
]), c(() => {
|
|
336
|
+
if (W) return W([{
|
|
338
337
|
id: "healthybowl-status",
|
|
339
338
|
label: Q("healthybowl.footer.ready", "HealthyBowl Ready"),
|
|
340
339
|
type: "status",
|
|
341
340
|
order: 10,
|
|
342
341
|
section: "left"
|
|
343
342
|
}]);
|
|
344
|
-
}, [
|
|
343
|
+
}, [W, Q]), /* @__PURE__ */ z(e, {
|
|
345
344
|
...n,
|
|
346
|
-
children: [/* @__PURE__ */
|
|
345
|
+
children: [/* @__PURE__ */ R("style", { children: U }), /* @__PURE__ */ R(a, { children: /* @__PURE__ */ R(o, { children: /* @__PURE__ */ R(te, { children: /* @__PURE__ */ R(s, {}) }) }) })]
|
|
347
346
|
});
|
|
348
|
-
}, q = (e) => /* @__PURE__ */
|
|
347
|
+
}, q = (e) => /* @__PURE__ */ R(B, {
|
|
349
348
|
workspaceId: e.workspaceId ?? null,
|
|
350
349
|
gateway: "global",
|
|
351
350
|
flagKeys: n,
|
|
352
351
|
defaultEnabled: !0,
|
|
353
|
-
children: /* @__PURE__ */
|
|
352
|
+
children: /* @__PURE__ */ R(K, { ...e })
|
|
354
353
|
}, e.workspaceId ?? "no-workspace");
|
|
355
354
|
//#endregion
|
|
356
355
|
export { q as HealthyBowlRoot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HealthyBowlRoot.js","names":[],"sources":["../../src/healthybowl/HealthyBowlRoot.tsx"],"sourcesContent":["/**\n * HealthyBowl Root Component\n * @module healthybowl\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Home,\n Tractor,\n ListChecks,\n Wheat,\n PawPrint,\n Cloud,\n Map as MapIcon,\n HardHat,\n ShoppingCart,\n DollarSign,\n BarChart3,\n FlaskConical,\n Bug,\n ScanSearch,\n Factory,\n Package,\n ScanLine,\n ShieldCheck,\n Landmark,\n Banknote,\n Stethoscope,\n UserCheck,\n Users,\n CloudUpload,\n RefreshCw,\n ShieldAlert,\n LineChart,\n Fence,\n Radio,\n Leaf,\n Sprout,\n Award,\n Globe,\n Users2,\n} from 'lucide-react';\nimport { HealthyBowlProvider } from './context/HealthyBowlContext';\nimport { FeatureFlagProvider, useFeatureFlags } from '@burdenoff/fe-libs/shared/feature-flags';\nimport {\n HEALTHYBOWL_CARBON_FEATURE_FLAG,\n HEALTHYBOWL_CARBON_FEATURE_FLAG_KEYS,\n isHealthyBowlCarbonEnabled,\n} from './carbonFeatureFlag';\nimport { HealthyBowlRoutes } from './HealthyBowlRoutes';\nimport { ErrorBoundary } from './components/ErrorBoundary';\nimport { ConfirmProvider } from './components/ConfirmDialog';\nimport { OfflineSyncProvider } from './offline/OfflineSyncProvider';\nimport { HeaderOfflinePill } from './offline/HeaderOfflinePill';\nimport { normalizeBasePath, setHbFormatLocale } from './utils/helpers';\nimport type { HealthyBowlRootProps, NavItem } from './types';\n\n// Locales that render right-to-left.\n//\n// DELIBERATELY EMPTY — Arabic was removed here, reverting BOFF-6119's rendering decision.\n//\n// BOFF-6119 migrated *this package* to logical CSS utilities (461 logical vs 54 physical) and then\n// set `dir` on `document.documentElement`. But the document root is not this package's to mirror:\n// the surrounding shell is `fe-libs` (177 physical utilities, 0 logical) and `healthybowl-app`\n// (7 physical, 0 logical). Neither is migrated, so `dir=\"rtl\"` mirrored them incorrectly and the\n// sidebar jumped to the right — which is what the layout complaint was about.\n//\n// fe-libs documents this exact failure mode and refuses to set `dir` for ANY locale until the\n// fleet-wide migration lands (see its I18nProvider note + BOFF-5998: \"sidebars on the wrong side,\n// icons mirrored, chevrons reversed\"). HealthyBowl was the only surface on the fleet setting it,\n// so Arabic rendered differently here than in every other product.\n//\n// Keeping the Set (rather than deleting the mechanism) so BOFF-6119 can be restored as a one-line\n// change once BOFF-5998 migrates the shell. Re-adding 'ar' before then reintroduces the bug.\nconst RTL_LOCALES = new Set<string>([]);\n\n// Horizontal directional lucide icons whose glyph must point the other way under RTL. lucide-react\n// tags every icon with a `lucide-<name>` class; scaleX(-1) mirrors the horizontal ones (vertical\n// chevrons up/down are unchanged by a horizontal flip). Kept off the LTR path via the [dir=rtl] scope.\nconst RTL_ICON_MIRROR_CSS = [\n '.lucide-arrow-right',\n '.lucide-arrow-left',\n '.lucide-chevron-right',\n '.lucide-chevron-left',\n '.lucide-chevrons-right',\n '.lucide-chevrons-left',\n '.lucide-move-right',\n '.lucide-move-left',\n]\n .map((c) => `[dir=\"rtl\"] ${c}`)\n .join(',')\n .concat('{transform:scaleX(-1)}');\n\nconst SUSTAINABILITY_NAV_ITEM_IDS = new Set([\n 'healthybowl-sustainability',\n 'healthybowl-sustainability-carbon',\n 'healthybowl-sustainability-soil',\n 'healthybowl-sustainability-credits',\n 'healthybowl-sustainability-eudr',\n]);\n\nexport function filterHealthyBowlNavItemsForCarbon(navItems: NavItem[], carbonEnabled: boolean): NavItem[] {\n return carbonEnabled ? navItems : navItems.filter((item) => !SUSTAINABILITY_NAV_ITEM_IDS.has(item.id));\n}\n\nconst HealthyBowlRootContent: FC<HealthyBowlRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { error, getEvaluation, isLoading } = useFeatureFlags();\n const carbonEnabled = isHealthyBowlCarbonEnabled(\n getEvaluation(HEALTHYBOWL_CARBON_FEATURE_FLAG),\n isLoading || error !== null\n );\n const { t: translate, locale } = useI18n();\n\n // HealthyBowl's Intl.* formatters (utils/helpers.ts) are plain functions used\n // across ~490 call sites, so they can't call useI18n() themselves. Sync the\n // shell's active language into their ambient locale here — the product's\n // single I18n consumer that wraps every page — so number / currency / date\n // grouping tracks the chosen language (BOFF-6202). Done during render, not in\n // an effect, so children rendered in this same pass already format with the\n // current locale (no one-frame western-grouping flash on a language switch).\n setHbFormatLocale(locale);\n\n // BOFF-6119 wired RTL rendering here. `RTL_LOCALES` is now empty, so this resolves to 'ltr' for\n // every locale and the effect below writes dir=\"ltr\" — matching fe-libs and every other product.\n //\n // The original claim on this line was that \"HealthyBowl's own components are migrated to logical\n // CSS utilities, so setting `dir` makes the whole HB surface mirror correctly.\" Only the first\n // half held: this package is ~90% logical, but `dir` is set on the DOCUMENT ROOT (see below), so\n // it also mirrors fe-libs (177 physical / 0 logical) and healthybowl-app (7 / 0). \"The whole HB\n // surface\" is bigger than this package, and the rest of it was never migrated.\n const dir: 'rtl' | 'ltr' = RTL_LOCALES.has(locale) ? 'rtl' : 'ltr';\n\n // Set the direction on the document root, not just an in-flow wrapper: HB's overlays\n // (confirm/alert dialogs, dropdowns, tooltips) render through Radix portals attached to\n // document.body, so a subtree wrapper would leave them LTR. The shared fe-libs I18nProvider\n // deliberately leaves document.dir unset (the app shell and other products aren't migrated to\n // logical CSS yet — fleet ticket BOFF-5998), so HB owns it here and restores the previous value\n // on unmount, keeping the effect self-contained to when a HealthyBowl surface is mounted.\n useEffect(() => {\n const el = document.documentElement;\n const previous = el.getAttribute('dir');\n el.setAttribute('dir', dir);\n return () => {\n if (previous === null) el.removeAttribute('dir');\n else el.setAttribute('dir', previous);\n };\n }, [dir]);\n\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const allNavItems: NavItem[] = [\n // Dashboard\n {\n id: 'healthybowl-dashboard',\n label: t('healthybowl.nav.dashboard', 'Dashboard'),\n // The product index IS the dashboard. Normalize a trailing slash like\n // every sibling item (joinPath) so active-state highlighting matches if\n // the host ever passes '/healthybowl/'.\n path: normalizeBasePath(basePath),\n icon: <Home size={20} />,\n order: 1,\n group: 'main',\n },\n\n // My Farm\n {\n id: 'healthybowl-farm',\n label: t('healthybowl.nav.farm', 'My Farm'),\n path: joinPath(basePath, 'farm'),\n icon: <Tractor size={20} />,\n order: 2,\n group: 'main',\n },\n\n // Farm Tasks (PlanMagnet embed) — shared work-item board across the farm.\n {\n id: 'healthybowl-tasks',\n label: t('healthybowl.nav.tasks', 'Tasks'),\n path: joinPath(basePath, 'tasks'),\n icon: <ListChecks size={20} />,\n order: 3,\n group: 'main',\n },\n\n // Crops\n {\n id: 'healthybowl-crops',\n label: t('healthybowl.nav.crops', 'Crops'),\n path: joinPath(basePath, 'crops'),\n icon: <Wheat size={20} />,\n order: 10,\n group: 'farming',\n },\n\n // Livestock\n {\n id: 'healthybowl-livestock',\n label: t('healthybowl.nav.livestock', 'Livestock'),\n path: joinPath(basePath, 'livestock'),\n icon: <PawPrint size={20} />,\n order: 11,\n group: 'farming',\n },\n\n // Livestock — Analytics (BOFF-6126). The growth, feed and herd-stats charts (BOFF-5971) also\n // render inline on the livestock dashboard; this gives them a dedicated URL and full-width home.\n {\n id: 'healthybowl-livestock-analytics',\n label: t('healthybowl.nav.livestockAnalytics', 'Livestock Analytics'),\n path: joinPath(basePath, 'livestock/analytics'),\n icon: <LineChart size={20} />,\n order: 11.3,\n group: 'farming',\n },\n\n // Livestock — Grazing management (BOFF-5970). Sits next to Livestock rather than inside it\n // because rotational grazing is a daily decision about FIELDS, not a herd-record lookup.\n {\n id: 'healthybowl-grazing',\n label: t('healthybowl.nav.grazing', 'Grazing'),\n path: joinPath(basePath, 'livestock/grazing'),\n icon: <Fence size={20} />,\n order: 11.4,\n group: 'farming',\n },\n\n // Livestock — Medication Withdrawal Alerts (BOFF-2885)\n {\n id: 'healthybowl-withdrawal-alerts',\n label: t('healthybowl.nav.withdrawalAlerts', 'Withdrawal Alerts'),\n path: joinPath(basePath, 'livestock/withdrawal-alerts'),\n icon: <ShieldAlert size={20} />,\n order: 11.5,\n group: 'farming',\n },\n\n // Weather\n {\n id: 'healthybowl-weather',\n label: t('healthybowl.nav.weather', 'Weather'),\n path: joinPath(basePath, 'weather'),\n icon: <Cloud size={20} />,\n order: 12,\n group: 'farming',\n },\n\n // Field Map — draw & manage field boundaries on satellite imagery\n {\n id: 'healthybowl-field-map',\n label: t('healthybowl.nav.fieldMap', 'Field Map'),\n path: joinPath(basePath, 'field-map'),\n icon: <MapIcon size={20} />,\n order: 12.5,\n group: 'farming',\n },\n\n // Field Capture — offline-first observation capture (BOFF-2883)\n {\n id: 'healthybowl-field-capture',\n label: t('healthybowl.nav.fieldCapture', 'Field Capture'),\n path: joinPath(basePath, 'field-capture'),\n icon: <CloudUpload size={20} />,\n order: 12.6,\n group: 'farming',\n },\n\n // Pending Sync — the offline outbox / sync queue (BOFF-2883)\n {\n id: 'healthybowl-pending-sync',\n label: t('healthybowl.nav.pendingSync', 'Pending Sync'),\n path: joinPath(basePath, 'field-capture/pending'),\n icon: <RefreshCw size={20} />,\n order: 12.7,\n group: 'farming',\n },\n\n // Field Sensors — live probe monitoring (BOFF-2894)\n {\n id: 'healthybowl-field-sensors',\n label: t('healthybowl.nav.fieldSensors', 'Field Sensors'),\n path: joinPath(basePath, 'field-sensors'),\n icon: <Radio size={20} />,\n order: 12.75,\n group: 'farming',\n },\n\n // Soil Health\n {\n id: 'healthybowl-soil',\n label: t('healthybowl.nav.soilHealth', 'Soil Health'),\n path: joinPath(basePath, 'soil'),\n icon: <FlaskConical size={20} />,\n order: 13,\n group: 'farming',\n },\n\n // Pest Management\n {\n id: 'healthybowl-pest',\n label: t('healthybowl.nav.pestManagement', 'Pest Management'),\n path: joinPath(basePath, 'pest-management'),\n icon: <Bug size={20} />,\n order: 14,\n group: 'farming',\n },\n {\n id: 'healthybowl-pest-ai',\n label: t('healthybowl.nav.aiPestDetection', 'AI Pest Detection'),\n path: joinPath(basePath, 'pest-management/ai-detection'),\n icon: <ScanSearch size={20} />,\n order: 14.5,\n group: 'farming',\n },\n\n // Production\n {\n id: 'healthybowl-production',\n label: t('healthybowl.nav.production', 'Production'),\n path: joinPath(basePath, 'production'),\n icon: <Factory size={20} />,\n order: 20,\n group: 'business',\n },\n\n // Products\n {\n id: 'healthybowl-products',\n label: t('healthybowl.nav.products', 'Products'),\n path: joinPath(basePath, 'products'),\n icon: <Package size={20} />,\n order: 21,\n group: 'business',\n },\n\n // Marketplace\n {\n id: 'healthybowl-marketplace',\n label: t('healthybowl.nav.marketplace', 'Marketplace'),\n path: joinPath(basePath, 'marketplace'),\n icon: <ShoppingCart size={20} />,\n order: 22,\n group: 'business',\n },\n\n // Labour, crews and timesheets (BOFF-6024). Sits between Marketplace (22) and Co-operative,\n // in the business group, because its output lands on the financial pages next to it.\n {\n id: 'healthybowl-labour',\n label: t('healthybowl.nav.labour', 'Labour'),\n path: joinPath(basePath, 'labour'),\n icon: <HardHat size={20} />,\n order: 22.5,\n group: 'business',\n },\n\n // Co-operative / FPO aggregation (BOFF-6023)\n {\n id: 'healthybowl-coop',\n label: t('healthybowl.nav.coop', 'Co-operative'),\n path: joinPath(basePath, 'coop'),\n icon: <Users2 size={20} />,\n order: 22.5,\n group: 'business',\n },\n\n // Financial\n {\n id: 'healthybowl-financial',\n label: t('healthybowl.nav.financial', 'Financial'),\n path: joinPath(basePath, 'financial'),\n icon: <DollarSign size={20} />,\n order: 23,\n group: 'business',\n },\n\n // Financier portfolio (B2B2C bridge)\n {\n id: 'healthybowl-financier',\n label: t('healthybowl.nav.financier', 'Financier'),\n path: joinPath(basePath, 'financier'),\n icon: <Banknote size={20} />,\n order: 24,\n group: 'business',\n },\n\n // Compliance\n {\n id: 'healthybowl-compliance',\n label: t('healthybowl.nav.compliance', 'Compliance'),\n path: joinPath(basePath, 'compliance'),\n icon: <ShieldCheck size={20} />,\n order: 30,\n group: 'compliance',\n },\n\n // Traceability\n {\n id: 'healthybowl-traceability',\n label: t('healthybowl.nav.traceability', 'Traceability'),\n path: joinPath(basePath, 'traceability'),\n icon: <ScanLine size={20} />,\n order: 31,\n group: 'compliance',\n },\n\n // Sustainability — Carbon & Climate (BOFF-2896)\n {\n id: 'healthybowl-sustainability',\n label: t('healthybowl.nav.sustainability', 'Sustainability'),\n path: joinPath(basePath, 'sustainability'),\n icon: <Leaf size={20} />,\n order: 32,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-carbon',\n label: t('healthybowl.nav.sustainabilityCarbon', 'Carbon & GHG'),\n path: joinPath(basePath, 'sustainability/carbon'),\n icon: <Factory size={20} />,\n order: 32.1,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-soil',\n label: t('healthybowl.nav.sustainabilitySoil', 'Soil Carbon'),\n path: joinPath(basePath, 'sustainability/soil-carbon'),\n icon: <Sprout size={20} />,\n order: 32.2,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-credits',\n label: t('healthybowl.nav.sustainabilityCredits', 'Carbon Credits'),\n path: joinPath(basePath, 'sustainability/credits'),\n icon: <Award size={20} />,\n order: 32.3,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-eudr',\n label: t('healthybowl.nav.sustainabilityEudr', 'EUDR Due-Diligence'),\n path: joinPath(basePath, 'sustainability/eudr'),\n icon: <Globe size={20} />,\n order: 32.4,\n group: 'compliance',\n },\n\n // Government Schemes\n {\n id: 'healthybowl-schemes',\n label: t('healthybowl.nav.governmentSchemes', 'Gov. Schemes'),\n path: joinPath(basePath, 'government-schemes'),\n icon: <Landmark size={20} />,\n order: 40,\n group: 'support',\n },\n\n // Network\n {\n id: 'healthybowl-network',\n label: t('healthybowl.nav.network', 'Network'),\n path: joinPath(basePath, 'network'),\n icon: <Users size={20} />,\n order: 41,\n group: 'support',\n },\n\n // Analytics\n {\n id: 'healthybowl-analytics',\n label: t('healthybowl.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <BarChart3 size={20} />,\n order: 42,\n group: 'support',\n },\n\n // My Advisors (UC-16 — farmer side)\n {\n id: 'healthybowl-advisors',\n label: t('healthybowl.nav.advisors', 'My Advisors'),\n path: joinPath(basePath, 'advisors'),\n icon: <UserCheck size={20} />,\n order: 43,\n group: 'support',\n },\n\n // Consultant portfolio (UC-16 — consultant side)\n {\n id: 'healthybowl-consultant',\n label: t('healthybowl.nav.consultant', 'Consultant'),\n path: joinPath(basePath, 'consultant'),\n icon: <Stethoscope size={20} />,\n order: 44,\n group: 'support',\n },\n ];\n\n // All sections are reachable. Marketplace (UC-08), Network (UC-12) and\n // Traceability (UC-11) render real read data + their real create flows\n // (createMarketplaceProduct / createCommunityPost / createTraceBatch); the\n // few genuinely-unbacked actions (checkout, booking, QR resolution) show\n // honest \"not available yet\" states in-page rather than hiding the section.\n // The operational carbon kill switch hides only Sustainability items;\n // Compliance and Traceability remain available.\n const navItems = filterHealthyBowlNavItemsForCarbon(allNavItems, carbonEnabled);\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, carbonEnabled, t]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'healthybowl-status',\n label: t('healthybowl.footer.ready', 'HealthyBowl Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, t]);\n\n return (\n <HealthyBowlProvider {...props}>\n {/* Logical CSS utilities flip an icon's *position* under RTL, but not its glyph. Navigational\n arrows/chevrons must also point the other way, so mirror the horizontal ones. Vertical\n chevrons (up/down, e.g. accordions) are unaffected by scaleX. Scoped to [dir=rtl] so it is\n inert in LTR. See BOFF-6119. */}\n <style>{RTL_ICON_MIRROR_CSS}</style>\n <ErrorBoundary>\n <ConfirmProvider>\n <OfflineSyncProvider>\n {/* Portals the connectivity pill into the shell's top bar. Must sit INSIDE the provider:\n the portal relocates the DOM node, not the React tree, so this is what keeps\n `useOfflineSync()` resolvable from a node rendered in the header. See BOFF-6185. */}\n <HeaderOfflinePill />\n <HealthyBowlRoutes />\n </OfflineSyncProvider>\n </ConfirmProvider>\n </ErrorBoundary>\n </HealthyBowlProvider>\n );\n};\n\nexport const HealthyBowlRoot: FC<HealthyBowlRootProps> = (props) => (\n <FeatureFlagProvider\n key={props.workspaceId ?? 'no-workspace'}\n workspaceId={props.workspaceId ?? null}\n gateway=\"global\"\n flagKeys={HEALTHYBOWL_CARBON_FEATURE_FLAG_KEYS}\n defaultEnabled={true}\n >\n <HealthyBowlRootContent {...props} />\n </FeatureFlagProvider>\n);\n"],"mappings":";;;;;;;;;;;;;;AA4EA,IAAM,oBAAc,IAAI,IAAY,CAAC,CAAC,GAKhC,IAAsB;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,EACG,KAAK,MAAM,eAAe,GAAG,EAC7B,KAAK,GAAG,EACR,OAAO,wBAAwB,GAE5B,IAA8B,IAAI,IAAI;CAC1C;CACA;CACA;CACA;CACA;AACF,CAAC;AAED,SAAgB,GAAmC,GAAqB,GAAmC;CACzG,OAAO,IAAgB,IAAW,EAAS,QAAQ,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MAAM,EAAS,GAAU,UAAU;IACnC,MAAM,kBAAC,GAAD,EAAW,MAAM,GAAK,CAAA;IAC5B,OAAO;IACP,OAAO;GACT;GAGA;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,YAAY;IACnD,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,IAAD,EAAa,MAAM,GAAK,CAAA;IAC9B,OAAO;IACP,OAAO;GACT;EAUkD,GAAa,CAChC,CAC1B;CACT,GAAG;EAAC;EAAkB;EAAU;EAAe;CAAC,CAAC,GAGjD,QAAgB;EACT,OAaL,OADgB,EAAoB,CATlC;GACE,IAAI;GACJ,OAAO,EAAE,4BAA4B,mBAAmB;GACxD,MAAM;GACN,OAAO;GACP,SAAS;EACX,CAGkC,CAC7B;CACT,GAAG,CAAC,GAAqB,CAAC,CAAC,GAGzB,kBAAC,GAAD;EAAqB,GAAI;YAAzB,CAKE,kBAAC,SAAD,EAAA,UAAQ,EAA2B,CAAA,GACnC,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UAAA,CAIE,kBAAC,IAAD,CAAoB,CAAA,GACpB,kBAAC,GAAD,CAAoB,CAAA,CACD,EAAA,CAAA,EACN,CAAA,EACJ,CAAA,CACI;;AAEzB,GAEa,KAA6C,MACxD,kBAAC,GAAD;CAEE,aAAa,EAAM,eAAe;CAClC,SAAQ;CACR,UAAU;CACV,gBAAgB;WAEhB,kBAAC,GAAD,EAAwB,GAAI,EAAQ,CAAA;AACjB,GAPd,EAAM,eAAe,cAOP"}
|
|
1
|
+
{"version":3,"file":"HealthyBowlRoot.js","names":[],"sources":["../../src/healthybowl/HealthyBowlRoot.tsx"],"sourcesContent":["/**\n * HealthyBowl Root Component\n * @module healthybowl\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Home,\n Tractor,\n ListChecks,\n Wheat,\n PawPrint,\n Cloud,\n Map as MapIcon,\n HardHat,\n ShoppingCart,\n DollarSign,\n BarChart3,\n FlaskConical,\n Bug,\n ScanSearch,\n Factory,\n Package,\n ScanLine,\n ShieldCheck,\n Landmark,\n Banknote,\n Stethoscope,\n UserCheck,\n Users,\n CloudUpload,\n RefreshCw,\n ShieldAlert,\n LineChart,\n Fence,\n Radio,\n Leaf,\n Sprout,\n Award,\n Globe,\n Users2,\n} from 'lucide-react';\nimport { HealthyBowlProvider } from './context/HealthyBowlContext';\nimport { FeatureFlagProvider, useFeatureFlags } from '@burdenoff/fe-libs/shared/feature-flags';\nimport {\n HEALTHYBOWL_CARBON_FEATURE_FLAG,\n HEALTHYBOWL_CARBON_FEATURE_FLAG_KEYS,\n isHealthyBowlCarbonEnabled,\n} from './carbonFeatureFlag';\nimport { HealthyBowlRoutes } from './HealthyBowlRoutes';\nimport { ErrorBoundary } from './components/ErrorBoundary';\nimport { ConfirmProvider } from './components/ConfirmDialog';\nimport { OfflineSyncProvider } from './offline/OfflineSyncProvider';\nimport { normalizeBasePath, setHbFormatLocale } from './utils/helpers';\nimport type { HealthyBowlRootProps, NavItem } from './types';\n\n// Locales that render right-to-left.\n//\n// DELIBERATELY EMPTY — Arabic was removed here, reverting BOFF-6119's rendering decision.\n//\n// BOFF-6119 migrated *this package* to logical CSS utilities (461 logical vs 54 physical) and then\n// set `dir` on `document.documentElement`. But the document root is not this package's to mirror:\n// the surrounding shell is `fe-libs` (177 physical utilities, 0 logical) and `healthybowl-app`\n// (7 physical, 0 logical). Neither is migrated, so `dir=\"rtl\"` mirrored them incorrectly and the\n// sidebar jumped to the right — which is what the layout complaint was about.\n//\n// fe-libs documents this exact failure mode and refuses to set `dir` for ANY locale until the\n// fleet-wide migration lands (see its I18nProvider note + BOFF-5998: \"sidebars on the wrong side,\n// icons mirrored, chevrons reversed\"). HealthyBowl was the only surface on the fleet setting it,\n// so Arabic rendered differently here than in every other product.\n//\n// Keeping the Set (rather than deleting the mechanism) so BOFF-6119 can be restored as a one-line\n// change once BOFF-5998 migrates the shell. Re-adding 'ar' before then reintroduces the bug.\nconst RTL_LOCALES = new Set<string>([]);\n\n// Horizontal directional lucide icons whose glyph must point the other way under RTL. lucide-react\n// tags every icon with a `lucide-<name>` class; scaleX(-1) mirrors the horizontal ones (vertical\n// chevrons up/down are unchanged by a horizontal flip). Kept off the LTR path via the [dir=rtl] scope.\nconst RTL_ICON_MIRROR_CSS = [\n '.lucide-arrow-right',\n '.lucide-arrow-left',\n '.lucide-chevron-right',\n '.lucide-chevron-left',\n '.lucide-chevrons-right',\n '.lucide-chevrons-left',\n '.lucide-move-right',\n '.lucide-move-left',\n]\n .map((c) => `[dir=\"rtl\"] ${c}`)\n .join(',')\n .concat('{transform:scaleX(-1)}');\n\nconst SUSTAINABILITY_NAV_ITEM_IDS = new Set([\n 'healthybowl-sustainability',\n 'healthybowl-sustainability-carbon',\n 'healthybowl-sustainability-soil',\n 'healthybowl-sustainability-credits',\n 'healthybowl-sustainability-eudr',\n]);\n\nexport function filterHealthyBowlNavItemsForCarbon(navItems: NavItem[], carbonEnabled: boolean): NavItem[] {\n return carbonEnabled ? navItems : navItems.filter((item) => !SUSTAINABILITY_NAV_ITEM_IDS.has(item.id));\n}\n\nconst HealthyBowlRootContent: FC<HealthyBowlRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { error, getEvaluation, isLoading } = useFeatureFlags();\n const carbonEnabled = isHealthyBowlCarbonEnabled(\n getEvaluation(HEALTHYBOWL_CARBON_FEATURE_FLAG),\n isLoading || error !== null\n );\n const { t: translate, locale } = useI18n();\n\n // HealthyBowl's Intl.* formatters (utils/helpers.ts) are plain functions used\n // across ~490 call sites, so they can't call useI18n() themselves. Sync the\n // shell's active language into their ambient locale here — the product's\n // single I18n consumer that wraps every page — so number / currency / date\n // grouping tracks the chosen language (BOFF-6202). Done during render, not in\n // an effect, so children rendered in this same pass already format with the\n // current locale (no one-frame western-grouping flash on a language switch).\n setHbFormatLocale(locale);\n\n // BOFF-6119 wired RTL rendering here. `RTL_LOCALES` is now empty, so this resolves to 'ltr' for\n // every locale and the effect below writes dir=\"ltr\" — matching fe-libs and every other product.\n //\n // The original claim on this line was that \"HealthyBowl's own components are migrated to logical\n // CSS utilities, so setting `dir` makes the whole HB surface mirror correctly.\" Only the first\n // half held: this package is ~90% logical, but `dir` is set on the DOCUMENT ROOT (see below), so\n // it also mirrors fe-libs (177 physical / 0 logical) and healthybowl-app (7 / 0). \"The whole HB\n // surface\" is bigger than this package, and the rest of it was never migrated.\n const dir: 'rtl' | 'ltr' = RTL_LOCALES.has(locale) ? 'rtl' : 'ltr';\n\n // Set the direction on the document root, not just an in-flow wrapper: HB's overlays\n // (confirm/alert dialogs, dropdowns, tooltips) render through Radix portals attached to\n // document.body, so a subtree wrapper would leave them LTR. The shared fe-libs I18nProvider\n // deliberately leaves document.dir unset (the app shell and other products aren't migrated to\n // logical CSS yet — fleet ticket BOFF-5998), so HB owns it here and restores the previous value\n // on unmount, keeping the effect self-contained to when a HealthyBowl surface is mounted.\n useEffect(() => {\n const el = document.documentElement;\n const previous = el.getAttribute('dir');\n el.setAttribute('dir', dir);\n return () => {\n if (previous === null) el.removeAttribute('dir');\n else el.setAttribute('dir', previous);\n };\n }, [dir]);\n\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const allNavItems: NavItem[] = [\n // Dashboard\n {\n id: 'healthybowl-dashboard',\n label: t('healthybowl.nav.dashboard', 'Dashboard'),\n // The product index IS the dashboard. Normalize a trailing slash like\n // every sibling item (joinPath) so active-state highlighting matches if\n // the host ever passes '/healthybowl/'.\n path: normalizeBasePath(basePath),\n icon: <Home size={20} />,\n order: 1,\n group: 'main',\n },\n\n // My Farm\n {\n id: 'healthybowl-farm',\n label: t('healthybowl.nav.farm', 'My Farm'),\n path: joinPath(basePath, 'farm'),\n icon: <Tractor size={20} />,\n order: 2,\n group: 'main',\n },\n\n // Farm Tasks (PlanMagnet embed) — shared work-item board across the farm.\n {\n id: 'healthybowl-tasks',\n label: t('healthybowl.nav.tasks', 'Tasks'),\n path: joinPath(basePath, 'tasks'),\n icon: <ListChecks size={20} />,\n order: 3,\n group: 'main',\n },\n\n // Crops\n {\n id: 'healthybowl-crops',\n label: t('healthybowl.nav.crops', 'Crops'),\n path: joinPath(basePath, 'crops'),\n icon: <Wheat size={20} />,\n order: 10,\n group: 'farming',\n },\n\n // Livestock\n {\n id: 'healthybowl-livestock',\n label: t('healthybowl.nav.livestock', 'Livestock'),\n path: joinPath(basePath, 'livestock'),\n icon: <PawPrint size={20} />,\n order: 11,\n group: 'farming',\n },\n\n // Livestock — Analytics (BOFF-6126). The growth, feed and herd-stats charts (BOFF-5971) also\n // render inline on the livestock dashboard; this gives them a dedicated URL and full-width home.\n {\n id: 'healthybowl-livestock-analytics',\n label: t('healthybowl.nav.livestockAnalytics', 'Livestock Analytics'),\n path: joinPath(basePath, 'livestock/analytics'),\n icon: <LineChart size={20} />,\n order: 11.3,\n group: 'farming',\n },\n\n // Livestock — Grazing management (BOFF-5970). Sits next to Livestock rather than inside it\n // because rotational grazing is a daily decision about FIELDS, not a herd-record lookup.\n {\n id: 'healthybowl-grazing',\n label: t('healthybowl.nav.grazing', 'Grazing'),\n path: joinPath(basePath, 'livestock/grazing'),\n icon: <Fence size={20} />,\n order: 11.4,\n group: 'farming',\n },\n\n // Livestock — Medication Withdrawal Alerts (BOFF-2885)\n {\n id: 'healthybowl-withdrawal-alerts',\n label: t('healthybowl.nav.withdrawalAlerts', 'Withdrawal Alerts'),\n path: joinPath(basePath, 'livestock/withdrawal-alerts'),\n icon: <ShieldAlert size={20} />,\n order: 11.5,\n group: 'farming',\n },\n\n // Weather\n {\n id: 'healthybowl-weather',\n label: t('healthybowl.nav.weather', 'Weather'),\n path: joinPath(basePath, 'weather'),\n icon: <Cloud size={20} />,\n order: 12,\n group: 'farming',\n },\n\n // Field Map — draw & manage field boundaries on satellite imagery\n {\n id: 'healthybowl-field-map',\n label: t('healthybowl.nav.fieldMap', 'Field Map'),\n path: joinPath(basePath, 'field-map'),\n icon: <MapIcon size={20} />,\n order: 12.5,\n group: 'farming',\n },\n\n // Field Capture — offline-first observation capture (BOFF-2883)\n {\n id: 'healthybowl-field-capture',\n label: t('healthybowl.nav.fieldCapture', 'Field Capture'),\n path: joinPath(basePath, 'field-capture'),\n icon: <CloudUpload size={20} />,\n order: 12.6,\n group: 'farming',\n },\n\n // Pending Sync — the offline outbox / sync queue (BOFF-2883)\n {\n id: 'healthybowl-pending-sync',\n label: t('healthybowl.nav.pendingSync', 'Pending Sync'),\n path: joinPath(basePath, 'field-capture/pending'),\n icon: <RefreshCw size={20} />,\n order: 12.7,\n group: 'farming',\n },\n\n // Field Sensors — live probe monitoring (BOFF-2894)\n {\n id: 'healthybowl-field-sensors',\n label: t('healthybowl.nav.fieldSensors', 'Field Sensors'),\n path: joinPath(basePath, 'field-sensors'),\n icon: <Radio size={20} />,\n order: 12.75,\n group: 'farming',\n },\n\n // Soil Health\n {\n id: 'healthybowl-soil',\n label: t('healthybowl.nav.soilHealth', 'Soil Health'),\n path: joinPath(basePath, 'soil'),\n icon: <FlaskConical size={20} />,\n order: 13,\n group: 'farming',\n },\n\n // Pest Management\n {\n id: 'healthybowl-pest',\n label: t('healthybowl.nav.pestManagement', 'Pest Management'),\n path: joinPath(basePath, 'pest-management'),\n icon: <Bug size={20} />,\n order: 14,\n group: 'farming',\n },\n {\n id: 'healthybowl-pest-ai',\n label: t('healthybowl.nav.aiPestDetection', 'AI Pest Detection'),\n path: joinPath(basePath, 'pest-management/ai-detection'),\n icon: <ScanSearch size={20} />,\n order: 14.5,\n group: 'farming',\n },\n\n // Production\n {\n id: 'healthybowl-production',\n label: t('healthybowl.nav.production', 'Production'),\n path: joinPath(basePath, 'production'),\n icon: <Factory size={20} />,\n order: 20,\n group: 'business',\n },\n\n // Products\n {\n id: 'healthybowl-products',\n label: t('healthybowl.nav.products', 'Products'),\n path: joinPath(basePath, 'products'),\n icon: <Package size={20} />,\n order: 21,\n group: 'business',\n },\n\n // Marketplace\n {\n id: 'healthybowl-marketplace',\n label: t('healthybowl.nav.marketplace', 'Marketplace'),\n path: joinPath(basePath, 'marketplace'),\n icon: <ShoppingCart size={20} />,\n order: 22,\n group: 'business',\n },\n\n // Labour, crews and timesheets (BOFF-6024). Sits between Marketplace (22) and Co-operative,\n // in the business group, because its output lands on the financial pages next to it.\n {\n id: 'healthybowl-labour',\n label: t('healthybowl.nav.labour', 'Labour'),\n path: joinPath(basePath, 'labour'),\n icon: <HardHat size={20} />,\n order: 22.5,\n group: 'business',\n },\n\n // Co-operative / FPO aggregation (BOFF-6023)\n {\n id: 'healthybowl-coop',\n label: t('healthybowl.nav.coop', 'Co-operative'),\n path: joinPath(basePath, 'coop'),\n icon: <Users2 size={20} />,\n order: 22.5,\n group: 'business',\n },\n\n // Financial\n {\n id: 'healthybowl-financial',\n label: t('healthybowl.nav.financial', 'Financial'),\n path: joinPath(basePath, 'financial'),\n icon: <DollarSign size={20} />,\n order: 23,\n group: 'business',\n },\n\n // Financier portfolio (B2B2C bridge)\n {\n id: 'healthybowl-financier',\n label: t('healthybowl.nav.financier', 'Financier'),\n path: joinPath(basePath, 'financier'),\n icon: <Banknote size={20} />,\n order: 24,\n group: 'business',\n },\n\n // Compliance\n {\n id: 'healthybowl-compliance',\n label: t('healthybowl.nav.compliance', 'Compliance'),\n path: joinPath(basePath, 'compliance'),\n icon: <ShieldCheck size={20} />,\n order: 30,\n group: 'compliance',\n },\n\n // Traceability\n {\n id: 'healthybowl-traceability',\n label: t('healthybowl.nav.traceability', 'Traceability'),\n path: joinPath(basePath, 'traceability'),\n icon: <ScanLine size={20} />,\n order: 31,\n group: 'compliance',\n },\n\n // Sustainability — Carbon & Climate (BOFF-2896)\n {\n id: 'healthybowl-sustainability',\n label: t('healthybowl.nav.sustainability', 'Sustainability'),\n path: joinPath(basePath, 'sustainability'),\n icon: <Leaf size={20} />,\n order: 32,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-carbon',\n label: t('healthybowl.nav.sustainabilityCarbon', 'Carbon & GHG'),\n path: joinPath(basePath, 'sustainability/carbon'),\n icon: <Factory size={20} />,\n order: 32.1,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-soil',\n label: t('healthybowl.nav.sustainabilitySoil', 'Soil Carbon'),\n path: joinPath(basePath, 'sustainability/soil-carbon'),\n icon: <Sprout size={20} />,\n order: 32.2,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-credits',\n label: t('healthybowl.nav.sustainabilityCredits', 'Carbon Credits'),\n path: joinPath(basePath, 'sustainability/credits'),\n icon: <Award size={20} />,\n order: 32.3,\n group: 'compliance',\n },\n {\n id: 'healthybowl-sustainability-eudr',\n label: t('healthybowl.nav.sustainabilityEudr', 'EUDR Due-Diligence'),\n path: joinPath(basePath, 'sustainability/eudr'),\n icon: <Globe size={20} />,\n order: 32.4,\n group: 'compliance',\n },\n\n // Government Schemes\n {\n id: 'healthybowl-schemes',\n label: t('healthybowl.nav.governmentSchemes', 'Gov. Schemes'),\n path: joinPath(basePath, 'government-schemes'),\n icon: <Landmark size={20} />,\n order: 40,\n group: 'support',\n },\n\n // Network\n {\n id: 'healthybowl-network',\n label: t('healthybowl.nav.network', 'Network'),\n path: joinPath(basePath, 'network'),\n icon: <Users size={20} />,\n order: 41,\n group: 'support',\n },\n\n // Analytics\n {\n id: 'healthybowl-analytics',\n label: t('healthybowl.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <BarChart3 size={20} />,\n order: 42,\n group: 'support',\n },\n\n // My Advisors (UC-16 — farmer side)\n {\n id: 'healthybowl-advisors',\n label: t('healthybowl.nav.advisors', 'My Advisors'),\n path: joinPath(basePath, 'advisors'),\n icon: <UserCheck size={20} />,\n order: 43,\n group: 'support',\n },\n\n // Consultant portfolio (UC-16 — consultant side)\n {\n id: 'healthybowl-consultant',\n label: t('healthybowl.nav.consultant', 'Consultant'),\n path: joinPath(basePath, 'consultant'),\n icon: <Stethoscope size={20} />,\n order: 44,\n group: 'support',\n },\n ];\n\n // All sections are reachable. Marketplace (UC-08), Network (UC-12) and\n // Traceability (UC-11) render real read data + their real create flows\n // (createMarketplaceProduct / createCommunityPost / createTraceBatch); the\n // few genuinely-unbacked actions (checkout, booking, QR resolution) show\n // honest \"not available yet\" states in-page rather than hiding the section.\n // The operational carbon kill switch hides only Sustainability items;\n // Compliance and Traceability remain available.\n const navItems = filterHealthyBowlNavItemsForCarbon(allNavItems, carbonEnabled);\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, carbonEnabled, t]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'healthybowl-status',\n label: t('healthybowl.footer.ready', 'HealthyBowl Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, t]);\n\n return (\n <HealthyBowlProvider {...props}>\n {/* Logical CSS utilities flip an icon's *position* under RTL, but not its glyph. Navigational\n arrows/chevrons must also point the other way, so mirror the horizontal ones. Vertical\n chevrons (up/down, e.g. accordions) are unaffected by scaleX. Scoped to [dir=rtl] so it is\n inert in LTR. See BOFF-6119. */}\n <style>{RTL_ICON_MIRROR_CSS}</style>\n <ErrorBoundary>\n <ConfirmProvider>\n <OfflineSyncProvider>\n <HealthyBowlRoutes />\n </OfflineSyncProvider>\n </ConfirmProvider>\n </ErrorBoundary>\n </HealthyBowlProvider>\n );\n};\n\nexport const HealthyBowlRoot: FC<HealthyBowlRootProps> = (props) => (\n <FeatureFlagProvider\n key={props.workspaceId ?? 'no-workspace'}\n workspaceId={props.workspaceId ?? null}\n gateway=\"global\"\n flagKeys={HEALTHYBOWL_CARBON_FEATURE_FLAG_KEYS}\n defaultEnabled={true}\n >\n <HealthyBowlRootContent {...props} />\n </FeatureFlagProvider>\n);\n"],"mappings":";;;;;;;;;;;;;AA2EA,IAAM,oBAAc,IAAI,IAAY,CAAC,CAAC,GAKhC,IAAsB;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,EACG,KAAK,MAAM,eAAe,GAAG,EAC7B,KAAK,GAAG,EACR,OAAO,wBAAwB,GAE5B,IAA8B,IAAI,IAAI;CAC1C;CACA;CACA;CACA;CACA;AACF,CAAC;AAED,SAAgB,EAAmC,GAAqB,GAAmC;CACzG,OAAO,IAAgB,IAAW,EAAS,QAAQ,MAAS,CAAC,EAA4B,IAAI,EAAK,EAAE,CAAC;AACvG;AAEA,IAAM,KAAoD,MAAU;CAClE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,UAAO,mBAAe,kBAAc,EAAgB,GACtD,IAAgB,GACpB,GAAc,CAA+B,GAC7C,MAAa,MAAU,IACzB,GACM,EAAE,GAAG,GAAW,cAAW,GAAQ;CASzC,EAAkB,CAAM;CAUxB,IAAM,IAAqB,EAAY,IAAI,CAAM,IAAI,QAAQ;CAQ7D,QAAgB;EACd,IAAM,IAAK,SAAS,iBACd,IAAW,EAAG,aAAa,KAAK;EAEtC,OADA,EAAG,aAAa,OAAO,CAAG,SACb;GACX,AAAI,MAAa,OAAM,EAAG,gBAAgB,KAAK,IAC1C,EAAG,aAAa,OAAO,CAAQ;EACtC;CACF,GAAG,CAAC,CAAG,CAAC;CAER,IAAM,IAAI,IACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,CAAG;EAC3B,OAAO,MAAU,IAAM,IAAW;CACpC,GACA,CAAC,CAAS,CACZ,GAGM,KAAY,GAAc,OACZ,EA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