@burdenoff/microfe-healthybowl 2026.902.2 → 2026.902.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.
@@ -4,10 +4,10 @@ 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 c } from "./offline/OfflineSyncProvider.js";
8
- import { useCallback as te, useEffect as l } from "react";
9
- import { useI18n as ne } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { Award as re, Banknote as ie, BarChart3 as ae, Bug as oe, Cloud as u, CloudUpload as d, DollarSign as f, Factory as p, Fence as m, FlaskConical as h, Globe 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 se, ShoppingCart as A, Sprout as j, Stethoscope as M, Tractor as N, UserCheck as P, Users as F, Users2 as I, Wheat as L } from "lucide-react";
7
+ import { OfflineSyncProvider as te } from "./offline/OfflineSyncProvider.js";
8
+ import { useCallback as ne, useEffect as c } from "react";
9
+ import { useI18n as re } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
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
11
  import { jsx as R, jsxs as z } from "react/jsx-runtime";
12
12
  import { FeatureFlagProvider as B, useFeatureFlags as V } from "@burdenoff/fe-libs/shared/feature-flags";
13
13
  //#region src/healthybowl/HealthyBowlRoot.tsx
@@ -31,20 +31,20 @@ function G(e, t) {
31
31
  return t ? e : e.filter((e) => !W.has(e.id));
32
32
  }
33
33
  var K = (n) => {
34
- let { registerNavItems: B, registerFooterItems: W, basePath: K = "/" } = n, { error: q, getEvaluation: ce, isLoading: le } = V(), J = ee(ce(t), le || q !== null), { t: Y, locale: X } = ne();
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();
35
35
  i(X);
36
36
  let Z = H.has(X) ? "rtl" : "ltr";
37
- l(() => {
37
+ c(() => {
38
38
  let e = document.documentElement, t = e.getAttribute("dir");
39
39
  return e.setAttribute("dir", Z), () => {
40
40
  t === null ? e.removeAttribute("dir") : e.setAttribute("dir", t);
41
41
  };
42
42
  }, [Z]);
43
- let Q = te((e, t) => {
43
+ let Q = ne((e, t) => {
44
44
  let n = Y(e);
45
45
  return n === e ? t : n;
46
46
  }, [Y]), $ = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
47
- return l(() => {
47
+ return c(() => {
48
48
  if (B) return B(G([
49
49
  {
50
50
  id: "healthybowl-dashboard",
@@ -98,7 +98,7 @@ var K = (n) => {
98
98
  id: "healthybowl-grazing",
99
99
  label: Q("healthybowl.nav.grazing", "Grazing"),
100
100
  path: $(K, "livestock/grazing"),
101
- icon: /* @__PURE__ */ R(m, { size: 20 }),
101
+ icon: /* @__PURE__ */ R(p, { size: 20 }),
102
102
  order: 11.4,
103
103
  group: "farming"
104
104
  },
@@ -114,7 +114,7 @@ var K = (n) => {
114
114
  id: "healthybowl-weather",
115
115
  label: Q("healthybowl.nav.weather", "Weather"),
116
116
  path: $(K, "weather"),
117
- icon: /* @__PURE__ */ R(u, { size: 20 }),
117
+ icon: /* @__PURE__ */ R(l, { size: 20 }),
118
118
  order: 12,
119
119
  group: "farming"
120
120
  },
@@ -130,7 +130,7 @@ var K = (n) => {
130
130
  id: "healthybowl-field-capture",
131
131
  label: Q("healthybowl.nav.fieldCapture", "Field Capture"),
132
132
  path: $(K, "field-capture"),
133
- icon: /* @__PURE__ */ R(d, { size: 20 }),
133
+ icon: /* @__PURE__ */ R(u, { size: 20 }),
134
134
  order: 12.6,
135
135
  group: "farming"
136
136
  },
@@ -154,7 +154,7 @@ var K = (n) => {
154
154
  id: "healthybowl-soil",
155
155
  label: Q("healthybowl.nav.soilHealth", "Soil Health"),
156
156
  path: $(K, "soil"),
157
- icon: /* @__PURE__ */ R(h, { size: 20 }),
157
+ icon: /* @__PURE__ */ R(m, { size: 20 }),
158
158
  order: 13,
159
159
  group: "farming"
160
160
  },
@@ -162,7 +162,7 @@ var K = (n) => {
162
162
  id: "healthybowl-pest",
163
163
  label: Q("healthybowl.nav.pestManagement", "Pest Management"),
164
164
  path: $(K, "pest-management"),
165
- icon: /* @__PURE__ */ R(oe, { size: 20 }),
165
+ icon: /* @__PURE__ */ R(se, { size: 20 }),
166
166
  order: 14,
167
167
  group: "farming"
168
168
  },
@@ -178,7 +178,7 @@ var K = (n) => {
178
178
  id: "healthybowl-production",
179
179
  label: Q("healthybowl.nav.production", "Production"),
180
180
  path: $(K, "production"),
181
- icon: /* @__PURE__ */ R(p, { size: 20 }),
181
+ icon: /* @__PURE__ */ R(f, { size: 20 }),
182
182
  order: 20,
183
183
  group: "business"
184
184
  },
@@ -194,10 +194,18 @@ var K = (n) => {
194
194
  id: "healthybowl-marketplace",
195
195
  label: Q("healthybowl.nav.marketplace", "Marketplace"),
196
196
  path: $(K, "marketplace"),
197
- icon: /* @__PURE__ */ R(A, { size: 20 }),
197
+ icon: /* @__PURE__ */ R(j, { size: 20 }),
198
198
  order: 22,
199
199
  group: "business"
200
200
  },
201
+ {
202
+ id: "healthybowl-labour",
203
+ label: Q("healthybowl.nav.labour", "Labour"),
204
+ path: $(K, "labour"),
205
+ icon: /* @__PURE__ */ R(g, { size: 20 }),
206
+ order: 22.5,
207
+ group: "business"
208
+ },
201
209
  {
202
210
  id: "healthybowl-coop",
203
211
  label: Q("healthybowl.nav.coop", "Co-operative"),
@@ -210,7 +218,7 @@ var K = (n) => {
210
218
  id: "healthybowl-financial",
211
219
  label: Q("healthybowl.nav.financial", "Financial"),
212
220
  path: $(K, "financial"),
213
- icon: /* @__PURE__ */ R(f, { size: 20 }),
221
+ icon: /* @__PURE__ */ R(d, { size: 20 }),
214
222
  order: 23,
215
223
  group: "business"
216
224
  },
@@ -218,7 +226,7 @@ var K = (n) => {
218
226
  id: "healthybowl-financier",
219
227
  label: Q("healthybowl.nav.financier", "Financier"),
220
228
  path: $(K, "financier"),
221
- icon: /* @__PURE__ */ R(ie, { size: 20 }),
229
+ icon: /* @__PURE__ */ R(ae, { size: 20 }),
222
230
  order: 24,
223
231
  group: "business"
224
232
  },
@@ -226,7 +234,7 @@ var K = (n) => {
226
234
  id: "healthybowl-compliance",
227
235
  label: Q("healthybowl.nav.compliance", "Compliance"),
228
236
  path: $(K, "compliance"),
229
- icon: /* @__PURE__ */ R(se, { size: 20 }),
237
+ icon: /* @__PURE__ */ R(A, { size: 20 }),
230
238
  order: 30,
231
239
  group: "compliance"
232
240
  },
@@ -250,7 +258,7 @@ var K = (n) => {
250
258
  id: "healthybowl-sustainability-carbon",
251
259
  label: Q("healthybowl.nav.sustainabilityCarbon", "Carbon & GHG"),
252
260
  path: $(K, "sustainability/carbon"),
253
- icon: /* @__PURE__ */ R(p, { size: 20 }),
261
+ icon: /* @__PURE__ */ R(f, { size: 20 }),
254
262
  order: 32.1,
255
263
  group: "compliance"
256
264
  },
@@ -258,7 +266,7 @@ var K = (n) => {
258
266
  id: "healthybowl-sustainability-soil",
259
267
  label: Q("healthybowl.nav.sustainabilitySoil", "Soil Carbon"),
260
268
  path: $(K, "sustainability/soil-carbon"),
261
- icon: /* @__PURE__ */ R(j, { size: 20 }),
269
+ icon: /* @__PURE__ */ R(M, { size: 20 }),
262
270
  order: 32.2,
263
271
  group: "compliance"
264
272
  },
@@ -266,7 +274,7 @@ var K = (n) => {
266
274
  id: "healthybowl-sustainability-credits",
267
275
  label: Q("healthybowl.nav.sustainabilityCredits", "Carbon Credits"),
268
276
  path: $(K, "sustainability/credits"),
269
- icon: /* @__PURE__ */ R(re, { size: 20 }),
277
+ icon: /* @__PURE__ */ R(ie, { size: 20 }),
270
278
  order: 32.3,
271
279
  group: "compliance"
272
280
  },
@@ -274,7 +282,7 @@ var K = (n) => {
274
282
  id: "healthybowl-sustainability-eudr",
275
283
  label: Q("healthybowl.nav.sustainabilityEudr", "EUDR Due-Diligence"),
276
284
  path: $(K, "sustainability/eudr"),
277
- icon: /* @__PURE__ */ R(g, { size: 20 }),
285
+ icon: /* @__PURE__ */ R(h, { size: 20 }),
278
286
  order: 32.4,
279
287
  group: "compliance"
280
288
  },
@@ -298,7 +306,7 @@ var K = (n) => {
298
306
  id: "healthybowl-analytics",
299
307
  label: Q("healthybowl.nav.analytics", "Analytics"),
300
308
  path: $(K, "analytics"),
301
- icon: /* @__PURE__ */ R(ae, { size: 20 }),
309
+ icon: /* @__PURE__ */ R(oe, { size: 20 }),
302
310
  order: 42,
303
311
  group: "support"
304
312
  },
@@ -314,7 +322,7 @@ var K = (n) => {
314
322
  id: "healthybowl-consultant",
315
323
  label: Q("healthybowl.nav.consultant", "Consultant"),
316
324
  path: $(K, "consultant"),
317
- icon: /* @__PURE__ */ R(M, { size: 20 }),
325
+ icon: /* @__PURE__ */ R(ce, { size: 20 }),
318
326
  order: 44,
319
327
  group: "support"
320
328
  }
@@ -324,7 +332,7 @@ var K = (n) => {
324
332
  K,
325
333
  J,
326
334
  Q
327
- ]), l(() => {
335
+ ]), c(() => {
328
336
  if (W) return W([{
329
337
  id: "healthybowl-status",
330
338
  label: Q("healthybowl.footer.ready", "HealthyBowl Ready"),
@@ -334,7 +342,7 @@ var K = (n) => {
334
342
  }]);
335
343
  }, [W, Q]), /* @__PURE__ */ z(e, {
336
344
  ...n,
337
- children: [/* @__PURE__ */ R("style", { children: U }), /* @__PURE__ */ R(a, { children: /* @__PURE__ */ R(o, { children: /* @__PURE__ */ R(c, { children: /* @__PURE__ */ R(s, {}) }) }) })]
345
+ children: [/* @__PURE__ */ R("style", { children: U }), /* @__PURE__ */ R(a, { children: /* @__PURE__ */ R(o, { children: /* @__PURE__ */ R(te, { children: /* @__PURE__ */ R(s, {}) }) }) })]
338
346
  });
339
347
  }, q = (e) => /* @__PURE__ */ R(B, {
340
348
  workspaceId: e.workspaceId ?? null,
@@ -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 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 // 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":";;;;;;;;;;;;;AA0EA,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,IAC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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,UACE,kBAAC,GAAD,CAAoB,CAAA,EACD,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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