@burdenoff/microfe-healthybowl 2026.1130.1 → 2026.1201.1

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.
Files changed (158) hide show
  1. package/dist/healthybowl/HealthyBowlRoot.js +113 -110
  2. package/dist/healthybowl/components/CreateFarmTaskButton.js +1 -0
  3. package/dist/healthybowl/components/PageLayout.js +83 -44
  4. package/dist/healthybowl/components/ProductionBatchCreateModal.js +184 -148
  5. package/dist/healthybowl/pageIdentity.d.ts +12 -0
  6. package/dist/healthybowl/pageIdentity.js +11 -0
  7. package/dist/healthybowl/pageIdentityTable.d.ts +12 -0
  8. package/dist/healthybowl/pageIdentityTable.js +527 -0
  9. package/dist/healthybowl/pages/HomePage.js +8 -8
  10. package/dist/healthybowl/pages/analytics/ReportsPage.js +135 -111
  11. package/dist/healthybowl/pages/catalog/PlantEntryDialog.js +255 -137
  12. package/dist/healthybowl/pages/compliance/CertificatesOfOriginPage.js +383 -292
  13. package/dist/healthybowl/pages/compliance/CertificationStandardDetailPage.js +152 -141
  14. package/dist/healthybowl/pages/compliance/ComplianceAlertsPage.js +173 -162
  15. package/dist/healthybowl/pages/compliance/ComplianceAuditsPage.js +448 -331
  16. package/dist/healthybowl/pages/compliance/ComplianceDocumentsPage.js +290 -216
  17. package/dist/healthybowl/pages/compliance/IcsGroupsPage.js +242 -186
  18. package/dist/healthybowl/pages/compliance/OrganicCertificationPage.js +346 -263
  19. package/dist/healthybowl/pages/compliance/ResidueTestsPage.js +220 -167
  20. package/dist/healthybowl/pages/compliance/SubstanceRulesPage.js +273 -186
  21. package/dist/healthybowl/pages/consultant/ConsultantDiagnosisPage.js +335 -265
  22. package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js +201 -159
  23. package/dist/healthybowl/pages/contacts/ContactFormModal.js +185 -110
  24. package/dist/healthybowl/pages/contacts/CsvImportModal.js +132 -116
  25. package/dist/healthybowl/pages/contacts/RecordOrderModal.js +139 -96
  26. package/dist/healthybowl/pages/contacts/RecordPurchaseModal.js +153 -102
  27. package/dist/healthybowl/pages/contracts/contract-forms/CreateContractModal.js +251 -166
  28. package/dist/healthybowl/pages/contracts/contract-forms/DeliveryActionModal.js +198 -166
  29. package/dist/healthybowl/pages/contracts/contract-forms/InviteFarmModal.js +100 -76
  30. package/dist/healthybowl/pages/contracts/contract-forms/RecordDeliveryModal.js +133 -94
  31. package/dist/healthybowl/pages/coop/coop-forms/CreateLotModal.js +128 -85
  32. package/dist/healthybowl/pages/coop/coop-forms/InviteMemberModal.js +74 -57
  33. package/dist/healthybowl/pages/coop/coop-forms/MarkSoldModal.js +72 -53
  34. package/dist/healthybowl/pages/coop/coop-forms/SettleLotModal.js +181 -165
  35. package/dist/healthybowl/pages/crops/CropDetailsPage.js +5 -5
  36. package/dist/healthybowl/pages/crops/CropFieldsPage.js +499 -393
  37. package/dist/healthybowl/pages/crops/CropHarvestPage.js +452 -364
  38. package/dist/healthybowl/pages/crops/CropPlanningPage.js +563 -479
  39. package/dist/healthybowl/pages/crops/CropsPage.js +5 -5
  40. package/dist/healthybowl/pages/crops/FieldDetailsPage.js +889 -812
  41. package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +569 -510
  42. package/dist/healthybowl/pages/crops/PlanningDetailsPage.js +481 -404
  43. package/dist/healthybowl/pages/crops/cropDetail/CropEditModal.d.ts +4 -1
  44. package/dist/healthybowl/pages/crops/cropDetail/CropEditModal.js +155 -106
  45. package/dist/healthybowl/pages/crops/v3/CropsListV3.js +84 -181
  46. package/dist/healthybowl/pages/crops/v3/cropsV3Parts.d.ts +5 -5
  47. package/dist/healthybowl/pages/crops/v3/cropsV3Parts.js +4 -4
  48. package/dist/healthybowl/pages/dashboard/v3/DashboardV3.js +67 -88
  49. package/dist/healthybowl/pages/dashboard/v3/dashboardV3Parts.d.ts +6 -10
  50. package/dist/healthybowl/pages/dashboard/v3/dashboardV3Parts.js +58 -117
  51. package/dist/healthybowl/pages/dashboard/v3/dashboardV3Setup.d.ts +0 -9
  52. package/dist/healthybowl/pages/dashboard/v3/dashboardV3Setup.js +76 -226
  53. package/dist/healthybowl/pages/distribution/CsaPlanFormModal.js +295 -199
  54. package/dist/healthybowl/pages/distribution/EnrollMemberModal.js +209 -134
  55. package/dist/healthybowl/pages/distribution/PickupLocationFormModal.js +316 -219
  56. package/dist/healthybowl/pages/distribution/WholesaleOrderFormModal.js +235 -165
  57. package/dist/healthybowl/pages/distribution/WholesalePriceTiersModal.js +154 -131
  58. package/dist/healthybowl/pages/farm/FarmProfilePage.js +445 -356
  59. package/dist/healthybowl/pages/fields/FieldMapPage.js +1023 -920
  60. package/dist/healthybowl/pages/financial/AccountingIntegrationsPage.js +166 -143
  61. package/dist/healthybowl/pages/financial/BankReconciliationPage.js +115 -104
  62. package/dist/healthybowl/pages/financial/BudgetManagementPage.js +230 -203
  63. package/dist/healthybowl/pages/financial/ChartOfAccountsPage.js +156 -139
  64. package/dist/healthybowl/pages/financial/CostByCropPage.js +234 -179
  65. package/dist/healthybowl/pages/financial/FinancialDashboardPage.js +10 -10
  66. package/dist/healthybowl/pages/financial/FinancierAccessPage.js +200 -176
  67. package/dist/healthybowl/pages/financial/InvoiceManagementPage.js +389 -360
  68. package/dist/healthybowl/pages/financial/JournalEntryModal.js +232 -198
  69. package/dist/healthybowl/pages/financial/TransactionsPage.js +832 -730
  70. package/dist/healthybowl/pages/financial/v2/InvoicesV2.js +141 -140
  71. package/dist/healthybowl/pages/financial/v3/FinancialOverviewV3.js +170 -173
  72. package/dist/healthybowl/pages/financial/v3/FinancialV3Empty.d.ts +0 -5
  73. package/dist/healthybowl/pages/financial/v3/FinancialV3Empty.js +84 -197
  74. package/dist/healthybowl/pages/financial/v3/FinancialV3Panels.d.ts +2 -3
  75. package/dist/healthybowl/pages/financial/v3/FinancialV3Panels.js +28 -28
  76. package/dist/healthybowl/pages/financier/v2/FinancierV2.js +127 -120
  77. package/dist/healthybowl/pages/government-schemes/CommunicationPage.js +250 -233
  78. package/dist/healthybowl/pages/government-schemes/SchemeAdminPage.js +473 -384
  79. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +456 -402
  80. package/dist/healthybowl/pages/inputs-insurance/InputPlanFormModal.js +254 -180
  81. package/dist/healthybowl/pages/inputs-insurance/LoanAccountingDetailPage.js +406 -348
  82. package/dist/healthybowl/pages/irrigation/IrrigationPage.js +803 -631
  83. package/dist/healthybowl/pages/labour/LabourRosterPage.js +523 -404
  84. package/dist/healthybowl/pages/livestock/AnimalDepthFormModal.js +217 -136
  85. package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +697 -576
  86. package/dist/healthybowl/pages/livestock/AnimalGroupModal.js +217 -157
  87. package/dist/healthybowl/pages/livestock/BreedingManagementPage.js +716 -515
  88. package/dist/healthybowl/pages/livestock/FeedManagementPage.js +437 -352
  89. package/dist/healthybowl/pages/livestock/HealthRecordsPage.js +625 -492
  90. package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js +43 -43
  91. package/dist/healthybowl/pages/livestock/LivestockImportModal.js +142 -127
  92. package/dist/healthybowl/pages/livestock/MedicationLibraryPage.js +260 -196
  93. package/dist/healthybowl/pages/livestock/ProductionTrackingPage.js +425 -323
  94. package/dist/healthybowl/pages/livestock/RecordWeightModal.js +131 -73
  95. package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js +459 -373
  96. package/dist/healthybowl/pages/livestock/animals/AnimalFormDialogs.js +495 -308
  97. package/dist/healthybowl/pages/livestock/grazing/EndGrazingMoveModal.js +92 -73
  98. package/dist/healthybowl/pages/livestock/grazing/RecordGrazingMoveModal.js +292 -210
  99. package/dist/healthybowl/pages/livestock/grazing/SetPaddockRestModal.js +94 -80
  100. package/dist/healthybowl/pages/livestock/v3/LivestockOverviewV3.js +317 -462
  101. package/dist/healthybowl/pages/livestock/withdrawal/LogTreatmentModal.js +283 -199
  102. package/dist/healthybowl/pages/market/market-prices/AddWatchModal.js +128 -95
  103. package/dist/healthybowl/pages/market/market-prices/PriceAlertRuleModal.js +189 -136
  104. package/dist/healthybowl/pages/market/v2/MarketPricesV2.js +1 -0
  105. package/dist/healthybowl/pages/marketplace/AuctionsView.js +379 -307
  106. package/dist/healthybowl/pages/marketplace/CartPage.js +336 -318
  107. package/dist/healthybowl/pages/marketplace/MarketplacePage.js +603 -521
  108. package/dist/healthybowl/pages/marketplace/OrdersPage.js +1 -0
  109. package/dist/healthybowl/pages/marketplace/WishlistPage.js +4 -3
  110. package/dist/healthybowl/pages/network/CohortsPage.js +218 -198
  111. package/dist/healthybowl/pages/network/CommunityPage.js +284 -254
  112. package/dist/healthybowl/pages/network/EventsPage.js +487 -395
  113. package/dist/healthybowl/pages/network/ExpertsPage.js +660 -526
  114. package/dist/healthybowl/pages/network/MentorsPage.js +818 -648
  115. package/dist/healthybowl/pages/nursery/NurseryProvenancePage.js +753 -577
  116. package/dist/healthybowl/pages/pest-management/AiPestDetectionPage.d.ts +45 -0
  117. package/dist/healthybowl/pages/pest-management/AiPestDetectionPage.js +625 -436
  118. package/dist/healthybowl/pages/pest-management/PestIssuesPage.js +334 -222
  119. package/dist/healthybowl/pages/pest-management/TreatmentLibraryPage.js +353 -243
  120. package/dist/healthybowl/pages/production/RecipeManagementPage.js +408 -347
  121. package/dist/healthybowl/pages/products/InventoryPage.js +342 -299
  122. package/dist/healthybowl/pages/products/ProductFormFields.js +259 -181
  123. package/dist/healthybowl/pages/products/ProductsOverviewPage.js +472 -442
  124. package/dist/healthybowl/pages/reports-api/ReportsApiPage.js +148 -120
  125. package/dist/healthybowl/pages/soil/SoilTestsPage.js +288 -215
  126. package/dist/healthybowl/pages/soil/field-sensors/RegisterProbeModal.js +355 -217
  127. package/dist/healthybowl/pages/soil/field-sensors/ThresholdsModal.js +159 -129
  128. package/dist/healthybowl/pages/storage/PlaceLotModal.js +173 -122
  129. package/dist/healthybowl/pages/storage/RecordMovementModal.js +161 -105
  130. package/dist/healthybowl/pages/storage/StorageLocationFormModal.js +154 -97
  131. package/dist/healthybowl/pages/suppliers/SuppliersPage.js +448 -371
  132. package/dist/healthybowl/pages/sustainability/CarbonCreditLedgerPage.js +223 -206
  133. package/dist/healthybowl/pages/sustainability/CarbonGhgPage.js +296 -228
  134. package/dist/healthybowl/pages/sustainability/EudrDueDiligencePage.js +212 -170
  135. package/dist/healthybowl/pages/sustainability/SoilCarbonPage.js +375 -282
  136. package/dist/healthybowl/pages/terrace/CompostBatchModal.js +241 -140
  137. package/dist/healthybowl/pages/terrace/CompostInputsPage.js +273 -264
  138. package/dist/healthybowl/pages/terrace/GardenFormModal.js +301 -177
  139. package/dist/healthybowl/pages/terrace/GardenInputModal.js +273 -170
  140. package/dist/healthybowl/pages/terrace/GrowSpaceFormModal.js +340 -219
  141. package/dist/healthybowl/pages/terrace/JournalEntryModal.js +343 -260
  142. package/dist/healthybowl/pages/terrace/LogHarvestModal.js +231 -150
  143. package/dist/healthybowl/pages/terrace/PlantingFormModal.js +401 -262
  144. package/dist/healthybowl/pages/traceability/BatchTrackingPage.js +364 -289
  145. package/dist/healthybowl/pages/traceability/PrintLabelDialog.js +256 -178
  146. package/dist/healthybowl/pages/traceability/TraceLedgerPage.js +360 -290
  147. package/dist/healthybowl/pages/wallet/v2/WalletV2.js +128 -115
  148. package/dist/healthybowl/pages/weather/WeatherAlertRulesPage.js +532 -412
  149. package/dist/healthybowl/pages/weather/WeatherOverviewPage.js +294 -284
  150. package/dist/healthybowl/pages/weather/overview/PlanWorkDialog.js +56 -43
  151. package/dist/healthybowl/pages/weather/v3/WeatherOverviewV3.js +138 -177
  152. package/dist/healthybowl/pages/weather/v3/WeatherWeekV3.d.ts +3 -11
  153. package/dist/healthybowl/pages/weather/v3/WeatherWeekV3.js +8 -11
  154. package/dist/healthybowl/pages/weather/v3/weatherV3Model.d.ts +1 -9
  155. package/dist/healthybowl/pages/weather/v3/weatherV3Model.js +1 -73
  156. package/dist/healthybowl/pagesV3.d.ts +8 -0
  157. package/dist/healthybowl/pagesV3.js +18 -8
  158. package/package.json +2 -2
@@ -1,20 +1,20 @@
1
1
  import { HealthyBowlProvider as e } from "./context/HealthyBowlContext.js";
2
2
  import { HEALTHYBOWL_CARBON_FEATURE_FLAG as t, HEALTHYBOWL_CARBON_FEATURE_FLAG_KEYS as n, isHealthyBowlCarbonEnabled as ee } from "./carbonFeatureFlag.js";
3
3
  import { HealthyBowlRoutes as r } from "./HealthyBowlRoutes.js";
4
- import { HbPagesV3Provider as i } from "./pagesV3.js";
5
- import { ErrorBoundary as a } from "./components/ErrorBoundary.js";
6
- import { ConfirmProvider as o } from "./components/ConfirmDialog.js";
7
- import { OfflineSyncProvider as s } from "./offline/OfflineSyncProvider.js";
8
- import { HeaderOfflinePill as te } from "./offline/HeaderOfflinePill.js";
9
- import { normalizeBasePath as ne, setHbFormatLocale as re } from "./utils/helpers.js";
10
- import { useCallback as ie, useEffect as c } from "react";
11
- import { useI18n as ae } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
- import { Award as oe, Banknote as se, BarChart3 as ce, Bug as le, 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 ue, Tractor as N, UserCheck as P, Users as F, Users2 as I, Wheat as L } from "lucide-react";
13
- import { jsx as R, jsxs as z } from "react/jsx-runtime";
14
- import { FeatureFlagProvider as B, useFeatureFlags as V } from "@burdenoff/fe-libs/shared/feature-flags";
15
- import { WorkspacePagesV2Provider as H } from "@burdenoff/fe-libs/ui";
4
+ import { HbPagesV3Provider as i, RouteDepthArea as a } from "./pagesV3.js";
5
+ import { ErrorBoundary as o } from "./components/ErrorBoundary.js";
6
+ import { ConfirmProvider as s } from "./components/ConfirmDialog.js";
7
+ import { OfflineSyncProvider as te } from "./offline/OfflineSyncProvider.js";
8
+ import { HeaderOfflinePill as ne } from "./offline/HeaderOfflinePill.js";
9
+ import { normalizeBasePath as re, setHbFormatLocale as ie } from "./utils/helpers.js";
10
+ import { useCallback as ae, useEffect as c } from "react";
11
+ import { useI18n as oe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
+ import { Award as se, Banknote as ce, BarChart3 as le, Bug as ue, Cloud as de, CloudUpload as l, DollarSign as u, Factory as d, Fence as f, FlaskConical as p, Globe as m, HardHat as h, Home as g, Landmark as _, Leaf as v, LineChart as y, ListChecks as b, Map as x, Package as S, PawPrint as C, Radio as w, RefreshCw as T, ScanLine as E, ScanSearch as D, ShieldAlert as O, ShieldCheck as k, ShoppingCart as A, Sprout as j, Stethoscope as M, Tractor as fe, UserCheck as N, Users as P, Users2 as F, Wheat as I } from "lucide-react";
13
+ import { jsx as L, jsxs as R } from "react/jsx-runtime";
14
+ import { FeatureFlagProvider as z, useFeatureFlags as B } from "@burdenoff/fe-libs/shared/feature-flags";
15
+ import { DepthPagesProvider as V, WorkspacePagesV2Provider as pe } from "@burdenoff/fe-libs/ui";
16
16
  // src/healthybowl/HealthyBowlRoot.tsx
17
- var U = /* @__PURE__ */ new Set([]), de = [
17
+ var me = /* @__PURE__ */ new Set([]), he = [
18
18
  ".lucide-arrow-right",
19
19
  ".lucide-arrow-left",
20
20
  ".lucide-chevron-right",
@@ -23,322 +23,322 @@ var U = /* @__PURE__ */ new Set([]), de = [
23
23
  ".lucide-chevrons-left",
24
24
  ".lucide-move-right",
25
25
  ".lucide-move-left"
26
- ].map((e) => `[dir="rtl"] ${e}`).join(",").concat("{transform:scaleX(-1)}"), W = /* @__PURE__ */ new Set([
26
+ ].map((e) => `[dir="rtl"] ${e}`).join(",").concat("{transform:scaleX(-1)}"), H = /* @__PURE__ */ new Set([
27
27
  "healthybowl-sustainability",
28
28
  "healthybowl-sustainability-carbon",
29
29
  "healthybowl-sustainability-soil",
30
30
  "healthybowl-sustainability-credits",
31
31
  "healthybowl-sustainability-eudr"
32
32
  ]);
33
- function G(e, t) {
34
- return t ? e : e.filter((e) => !W.has(e.id));
33
+ function U(e, t) {
34
+ return t ? e : e.filter((e) => !H.has(e.id));
35
35
  }
36
- var K = (n) => {
37
- let { registerNavItems: B, registerFooterItems: W, basePath: K = "/" } = n, { error: q, getEvaluation: fe, isLoading: pe } = V(), J = ee(fe(t), pe || q !== null), { t: Y, locale: X } = ae();
38
- re(X);
39
- let Z = U.has(X) ? "rtl" : "ltr";
36
+ var W = (n) => {
37
+ let { registerNavItems: z, registerFooterItems: H, basePath: W = "/" } = n, { error: G, getEvaluation: ge, isLoading: K } = B(), q = ee(ge(t), K || G !== null), { t: J, locale: Y } = oe(), X = n.pagesV2 === !0 && n.pagesV3 === !0;
38
+ ie(Y);
39
+ let Z = me.has(Y) ? "rtl" : "ltr";
40
40
  c(() => {
41
41
  let e = document.documentElement, t = e.getAttribute("dir");
42
42
  return e.setAttribute("dir", Z), () => {
43
43
  t === null ? e.removeAttribute("dir") : e.setAttribute("dir", t);
44
44
  };
45
45
  }, [Z]);
46
- let Q = ie((e, t) => {
47
- let n = Y(e);
46
+ let Q = ae((e, t) => {
47
+ let n = J(e);
48
48
  return n === e ? t : n;
49
- }, [Y]), $ = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
49
+ }, [J]), $ = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
50
50
  return c(() => {
51
- if (!B) return;
52
- let e = G([
51
+ if (!z) return;
52
+ let e = U([
53
53
  {
54
54
  id: "healthybowl-dashboard",
55
55
  label: Q("healthybowl.nav.dashboard", "Dashboard"),
56
- path: ne(K),
57
- icon: /* @__PURE__ */ R(_, { size: 20 }),
56
+ path: re(W),
57
+ icon: /* @__PURE__ */ L(g, { size: 20 }),
58
58
  order: 1,
59
59
  group: "main"
60
60
  },
61
61
  {
62
62
  id: "healthybowl-farm",
63
63
  label: Q("healthybowl.nav.farm", "My Farm"),
64
- path: $(K, "farm"),
65
- icon: /* @__PURE__ */ R(N, { size: 20 }),
64
+ path: $(W, "farm"),
65
+ icon: /* @__PURE__ */ L(fe, { size: 20 }),
66
66
  order: 2,
67
67
  group: "main"
68
68
  },
69
69
  {
70
70
  id: "healthybowl-tasks",
71
71
  label: Q("healthybowl.nav.tasks", "Tasks"),
72
- path: $(K, "tasks"),
73
- icon: /* @__PURE__ */ R(x, { size: 20 }),
72
+ path: $(W, "tasks"),
73
+ icon: /* @__PURE__ */ L(b, { size: 20 }),
74
74
  order: 3,
75
75
  group: "main"
76
76
  },
77
77
  {
78
78
  id: "healthybowl-crops",
79
79
  label: Q("healthybowl.nav.crops", "Crops"),
80
- path: $(K, "crops"),
81
- icon: /* @__PURE__ */ R(L, { size: 20 }),
80
+ path: $(W, "crops"),
81
+ icon: /* @__PURE__ */ L(I, { size: 20 }),
82
82
  order: 10,
83
83
  group: "farming"
84
84
  },
85
85
  {
86
86
  id: "healthybowl-livestock",
87
87
  label: Q("healthybowl.nav.livestock", "Livestock"),
88
- path: $(K, "livestock"),
89
- icon: /* @__PURE__ */ R(w, { size: 20 }),
88
+ path: $(W, "livestock"),
89
+ icon: /* @__PURE__ */ L(C, { size: 20 }),
90
90
  order: 11,
91
91
  group: "farming"
92
92
  },
93
93
  {
94
94
  id: "healthybowl-livestock-analytics",
95
95
  label: Q("healthybowl.nav.livestockAnalytics", "Livestock Analytics"),
96
- path: $(K, "livestock/analytics"),
97
- icon: /* @__PURE__ */ R(b, { size: 20 }),
96
+ path: $(W, "livestock/analytics"),
97
+ icon: /* @__PURE__ */ L(y, { size: 20 }),
98
98
  order: 11.3,
99
99
  group: "farming"
100
100
  },
101
101
  {
102
102
  id: "healthybowl-grazing",
103
103
  label: Q("healthybowl.nav.grazing", "Grazing"),
104
- path: $(K, "livestock/grazing"),
105
- icon: /* @__PURE__ */ R(p, { size: 20 }),
104
+ path: $(W, "livestock/grazing"),
105
+ icon: /* @__PURE__ */ L(f, { size: 20 }),
106
106
  order: 11.4,
107
107
  group: "farming"
108
108
  },
109
109
  {
110
110
  id: "healthybowl-withdrawal-alerts",
111
111
  label: Q("healthybowl.nav.withdrawalAlerts", "Withdrawal Alerts"),
112
- path: $(K, "livestock/withdrawal-alerts"),
113
- icon: /* @__PURE__ */ R(k, { size: 20 }),
112
+ path: $(W, "livestock/withdrawal-alerts"),
113
+ icon: /* @__PURE__ */ L(O, { size: 20 }),
114
114
  order: 11.5,
115
115
  group: "farming"
116
116
  },
117
117
  {
118
118
  id: "healthybowl-weather",
119
119
  label: Q("healthybowl.nav.weather", "Weather"),
120
- path: $(K, "weather"),
121
- icon: /* @__PURE__ */ R(l, { size: 20 }),
120
+ path: $(W, "weather"),
121
+ icon: /* @__PURE__ */ L(de, { size: 20 }),
122
122
  order: 12,
123
123
  group: "farming"
124
124
  },
125
125
  {
126
126
  id: "healthybowl-field-map",
127
127
  label: Q("healthybowl.nav.fieldMap", "Field Map"),
128
- path: $(K, "field-map"),
129
- icon: /* @__PURE__ */ R(S, { size: 20 }),
128
+ path: $(W, "field-map"),
129
+ icon: /* @__PURE__ */ L(x, { size: 20 }),
130
130
  order: 12.5,
131
131
  group: "farming"
132
132
  },
133
133
  {
134
134
  id: "healthybowl-field-capture",
135
135
  label: Q("healthybowl.nav.fieldCapture", "Field Capture"),
136
- path: $(K, "field-capture"),
137
- icon: /* @__PURE__ */ R(u, { size: 20 }),
136
+ path: $(W, "field-capture"),
137
+ icon: /* @__PURE__ */ L(l, { size: 20 }),
138
138
  order: 12.6,
139
139
  group: "farming"
140
140
  },
141
141
  {
142
142
  id: "healthybowl-pending-sync",
143
143
  label: Q("healthybowl.nav.pendingSync", "Pending Sync"),
144
- path: $(K, "field-capture/pending"),
145
- icon: /* @__PURE__ */ R(E, { size: 20 }),
144
+ path: $(W, "field-capture/pending"),
145
+ icon: /* @__PURE__ */ L(T, { size: 20 }),
146
146
  order: 12.7,
147
147
  group: "farming"
148
148
  },
149
149
  {
150
150
  id: "healthybowl-field-sensors",
151
151
  label: Q("healthybowl.nav.fieldSensors", "Field Sensors"),
152
- path: $(K, "field-sensors"),
153
- icon: /* @__PURE__ */ R(T, { size: 20 }),
152
+ path: $(W, "field-sensors"),
153
+ icon: /* @__PURE__ */ L(w, { size: 20 }),
154
154
  order: 12.75,
155
155
  group: "farming"
156
156
  },
157
157
  {
158
158
  id: "healthybowl-soil",
159
159
  label: Q("healthybowl.nav.soilHealth", "Soil Health"),
160
- path: $(K, "soil"),
161
- icon: /* @__PURE__ */ R(m, { size: 20 }),
160
+ path: $(W, "soil"),
161
+ icon: /* @__PURE__ */ L(p, { size: 20 }),
162
162
  order: 13,
163
163
  group: "farming"
164
164
  },
165
165
  {
166
166
  id: "healthybowl-pest",
167
167
  label: Q("healthybowl.nav.pestManagement", "Pest Management"),
168
- path: $(K, "pest-management"),
169
- icon: /* @__PURE__ */ R(le, { size: 20 }),
168
+ path: $(W, "pest-management"),
169
+ icon: /* @__PURE__ */ L(ue, { size: 20 }),
170
170
  order: 14,
171
171
  group: "farming"
172
172
  },
173
173
  {
174
174
  id: "healthybowl-pest-ai",
175
175
  label: Q("healthybowl.nav.aiPestDetection", "AI Pest Detection"),
176
- path: $(K, "pest-management/ai-detection"),
177
- icon: /* @__PURE__ */ R(O, { size: 20 }),
176
+ path: $(W, "pest-management/ai-detection"),
177
+ icon: /* @__PURE__ */ L(D, { size: 20 }),
178
178
  order: 14.5,
179
179
  group: "farming"
180
180
  },
181
181
  {
182
182
  id: "healthybowl-production",
183
183
  label: Q("healthybowl.nav.production", "Production"),
184
- path: $(K, "production"),
185
- icon: /* @__PURE__ */ R(f, { size: 20 }),
184
+ path: $(W, "production"),
185
+ icon: /* @__PURE__ */ L(d, { size: 20 }),
186
186
  order: 20,
187
187
  group: "business"
188
188
  },
189
189
  {
190
190
  id: "healthybowl-products",
191
191
  label: Q("healthybowl.nav.products", "Products"),
192
- path: $(K, "products"),
193
- icon: /* @__PURE__ */ R(C, { size: 20 }),
192
+ path: $(W, "products"),
193
+ icon: /* @__PURE__ */ L(S, { size: 20 }),
194
194
  order: 21,
195
195
  group: "business"
196
196
  },
197
197
  {
198
198
  id: "healthybowl-marketplace",
199
199
  label: Q("healthybowl.nav.marketplace", "Marketplace"),
200
- path: $(K, "marketplace"),
201
- icon: /* @__PURE__ */ R(j, { size: 20 }),
200
+ path: $(W, "marketplace"),
201
+ icon: /* @__PURE__ */ L(A, { size: 20 }),
202
202
  order: 22,
203
203
  group: "business"
204
204
  },
205
205
  {
206
206
  id: "healthybowl-labour",
207
207
  label: Q("healthybowl.nav.labour", "Labour"),
208
- path: $(K, "labour"),
209
- icon: /* @__PURE__ */ R(g, { size: 20 }),
208
+ path: $(W, "labour"),
209
+ icon: /* @__PURE__ */ L(h, { size: 20 }),
210
210
  order: 22.5,
211
211
  group: "business"
212
212
  },
213
213
  {
214
214
  id: "healthybowl-coop",
215
215
  label: Q("healthybowl.nav.coop", "Co-operative"),
216
- path: $(K, "coop"),
217
- icon: /* @__PURE__ */ R(I, { size: 20 }),
216
+ path: $(W, "coop"),
217
+ icon: /* @__PURE__ */ L(F, { size: 20 }),
218
218
  order: 22.5,
219
219
  group: "business"
220
220
  },
221
221
  {
222
222
  id: "healthybowl-financial",
223
223
  label: Q("healthybowl.nav.financial", "Financial"),
224
- path: $(K, "financial"),
225
- icon: /* @__PURE__ */ R(d, { size: 20 }),
224
+ path: $(W, "financial"),
225
+ icon: /* @__PURE__ */ L(u, { size: 20 }),
226
226
  order: 23,
227
227
  group: "business"
228
228
  },
229
229
  {
230
230
  id: "healthybowl-financier",
231
231
  label: Q("healthybowl.nav.financier", "Financier"),
232
- path: $(K, "financier"),
233
- icon: /* @__PURE__ */ R(se, { size: 20 }),
232
+ path: $(W, "financier"),
233
+ icon: /* @__PURE__ */ L(ce, { size: 20 }),
234
234
  order: 24,
235
235
  group: "business"
236
236
  },
237
237
  {
238
238
  id: "healthybowl-compliance",
239
239
  label: Q("healthybowl.nav.compliance", "Compliance"),
240
- path: $(K, "compliance"),
241
- icon: /* @__PURE__ */ R(A, { size: 20 }),
240
+ path: $(W, "compliance"),
241
+ icon: /* @__PURE__ */ L(k, { size: 20 }),
242
242
  order: 30,
243
243
  group: "compliance"
244
244
  },
245
245
  {
246
246
  id: "healthybowl-traceability",
247
247
  label: Q("healthybowl.nav.traceability", "Traceability"),
248
- path: $(K, "traceability"),
249
- icon: /* @__PURE__ */ R(D, { size: 20 }),
248
+ path: $(W, "traceability"),
249
+ icon: /* @__PURE__ */ L(E, { size: 20 }),
250
250
  order: 31,
251
251
  group: "compliance"
252
252
  },
253
253
  {
254
254
  id: "healthybowl-sustainability",
255
255
  label: Q("healthybowl.nav.sustainability", "Sustainability"),
256
- path: $(K, "sustainability"),
257
- icon: /* @__PURE__ */ R(y, { size: 20 }),
256
+ path: $(W, "sustainability"),
257
+ icon: /* @__PURE__ */ L(v, { size: 20 }),
258
258
  order: 32,
259
259
  group: "compliance"
260
260
  },
261
261
  {
262
262
  id: "healthybowl-sustainability-carbon",
263
263
  label: Q("healthybowl.nav.sustainabilityCarbon", "Carbon & GHG"),
264
- path: $(K, "sustainability/carbon"),
265
- icon: /* @__PURE__ */ R(f, { size: 20 }),
264
+ path: $(W, "sustainability/carbon"),
265
+ icon: /* @__PURE__ */ L(d, { size: 20 }),
266
266
  order: 32.1,
267
267
  group: "compliance"
268
268
  },
269
269
  {
270
270
  id: "healthybowl-sustainability-soil",
271
271
  label: Q("healthybowl.nav.sustainabilitySoil", "Soil Carbon"),
272
- path: $(K, "sustainability/soil-carbon"),
273
- icon: /* @__PURE__ */ R(M, { size: 20 }),
272
+ path: $(W, "sustainability/soil-carbon"),
273
+ icon: /* @__PURE__ */ L(j, { size: 20 }),
274
274
  order: 32.2,
275
275
  group: "compliance"
276
276
  },
277
277
  {
278
278
  id: "healthybowl-sustainability-credits",
279
279
  label: Q("healthybowl.nav.sustainabilityCredits", "Carbon Credits"),
280
- path: $(K, "sustainability/credits"),
281
- icon: /* @__PURE__ */ R(oe, { size: 20 }),
280
+ path: $(W, "sustainability/credits"),
281
+ icon: /* @__PURE__ */ L(se, { size: 20 }),
282
282
  order: 32.3,
283
283
  group: "compliance"
284
284
  },
285
285
  {
286
286
  id: "healthybowl-sustainability-eudr",
287
287
  label: Q("healthybowl.nav.sustainabilityEudr", "EUDR Due-Diligence"),
288
- path: $(K, "sustainability/eudr"),
289
- icon: /* @__PURE__ */ R(h, { size: 20 }),
288
+ path: $(W, "sustainability/eudr"),
289
+ icon: /* @__PURE__ */ L(m, { size: 20 }),
290
290
  order: 32.4,
291
291
  group: "compliance"
292
292
  },
293
293
  {
294
294
  id: "healthybowl-schemes",
295
295
  label: Q("healthybowl.nav.governmentSchemes", "Gov. Schemes"),
296
- path: $(K, "government-schemes"),
297
- icon: /* @__PURE__ */ R(v, { size: 20 }),
296
+ path: $(W, "government-schemes"),
297
+ icon: /* @__PURE__ */ L(_, { size: 20 }),
298
298
  order: 40,
299
299
  group: "support"
300
300
  },
301
301
  {
302
302
  id: "healthybowl-network",
303
303
  label: Q("healthybowl.nav.network", "Network"),
304
- path: $(K, "network"),
305
- icon: /* @__PURE__ */ R(F, { size: 20 }),
304
+ path: $(W, "network"),
305
+ icon: /* @__PURE__ */ L(P, { size: 20 }),
306
306
  order: 41,
307
307
  group: "support"
308
308
  },
309
309
  {
310
310
  id: "healthybowl-analytics",
311
311
  label: Q("healthybowl.nav.analytics", "Analytics"),
312
- path: $(K, "analytics"),
313
- icon: /* @__PURE__ */ R(ce, { size: 20 }),
312
+ path: $(W, "analytics"),
313
+ icon: /* @__PURE__ */ L(le, { size: 20 }),
314
314
  order: 42,
315
315
  group: "support"
316
316
  },
317
317
  {
318
318
  id: "healthybowl-advisors",
319
319
  label: Q("healthybowl.nav.advisors", "My Advisors"),
320
- path: $(K, "advisors"),
321
- icon: /* @__PURE__ */ R(P, { size: 20 }),
320
+ path: $(W, "advisors"),
321
+ icon: /* @__PURE__ */ L(N, { size: 20 }),
322
322
  order: 43,
323
323
  group: "support"
324
324
  },
325
325
  {
326
326
  id: "healthybowl-consultant",
327
327
  label: Q("healthybowl.nav.consultant", "Consultant"),
328
- path: $(K, "consultant"),
329
- icon: /* @__PURE__ */ R(ue, { size: 20 }),
328
+ path: $(W, "consultant"),
329
+ icon: /* @__PURE__ */ L(M, { size: 20 }),
330
330
  order: 44,
331
331
  group: "support"
332
332
  }
333
- ], J);
334
- return B(e);
333
+ ], q);
334
+ return z(e);
335
335
  }, [
336
- B,
337
- K,
338
- J,
336
+ z,
337
+ W,
338
+ q,
339
339
  Q
340
340
  ]), c(() => {
341
- if (!W) return;
341
+ if (!H) return;
342
342
  let e = [{
343
343
  id: "healthybowl-status",
344
344
  label: Q("healthybowl.footer.ready", "HealthyBowl Ready"),
@@ -346,22 +346,25 @@ var K = (n) => {
346
346
  order: 10,
347
347
  section: "left"
348
348
  }];
349
- return W(e);
350
- }, [W, Q]), /* @__PURE__ */ z(e, {
349
+ return H(e);
350
+ }, [H, Q]), /* @__PURE__ */ R(e, {
351
351
  ...n,
352
- children: [/* @__PURE__ */ R("style", { children: de }), /* @__PURE__ */ R(a, { children: /* @__PURE__ */ R(o, { children: /* @__PURE__ */ z(s, { children: [/* @__PURE__ */ R(te, {}), /* @__PURE__ */ R(H, {
352
+ children: [/* @__PURE__ */ L("style", { children: he }), /* @__PURE__ */ L(o, { children: /* @__PURE__ */ L(s, { children: /* @__PURE__ */ R(te, { children: [/* @__PURE__ */ L(ne, {}), /* @__PURE__ */ L(pe, {
353
353
  enabled: n.pagesV2 === !0,
354
- children: /* @__PURE__ */ R(i, {
355
- enabled: n.pagesV2 === !0 && n.pagesV3 === !0,
356
- children: /* @__PURE__ */ R(r, {})
354
+ children: /* @__PURE__ */ L(i, {
355
+ enabled: X,
356
+ children: X ? /* @__PURE__ */ L(V, {
357
+ enabled: !0,
358
+ children: /* @__PURE__ */ L(a, { children: /* @__PURE__ */ L(r, {}) })
359
+ }) : /* @__PURE__ */ L(r, {})
357
360
  })
358
361
  })] }) }) })]
359
362
  });
360
- }, q = (e) => /* @__PURE__ */ R(B, {
363
+ }, G = (e) => /* @__PURE__ */ L(z, {
361
364
  workspaceId: e.workspaceId ?? null,
362
365
  gateway: "global",
363
366
  flagKeys: n,
364
367
  defaultEnabled: !0,
365
- children: /* @__PURE__ */ R(K, { ...e })
368
+ children: /* @__PURE__ */ L(W, { ...e })
366
369
  }, e.workspaceId ?? "no-workspace");
367
- export { q as HealthyBowlRoot, G as filterHealthyBowlNavItemsForCarbon };
370
+ export { G as HealthyBowlRoot, U as filterHealthyBowlNavItemsForCarbon };
@@ -30,6 +30,7 @@ var b = ({ entityType: e, entityId: n, entityLabel: r, open: i, onOpenChange: a
30
30
  onClose: () => a(!1),
31
31
  title: "Create Farm Task",
32
32
  description: `Create a task linked to ${r}.`,
33
+ icon: l,
33
34
  children: /* @__PURE__ */ d(h, {
34
35
  client: o,
35
36
  children: /* @__PURE__ */ d(S, {
@@ -1,73 +1,112 @@
1
1
  import { useOpenAssistantHelp as e } from "../../hooks/useOpenAssistantHelp.js";
2
2
  import { useTr as t } from "../../shared/hooks/useTr.js";
3
- import { cn as n } from "../utils/helpers.js";
4
- import { GetHelpButton as r } from "./GetHelpButton.js";
5
- import { useSidebarTitle as i } from "./sidebarTitle.js";
6
- import { HelpCircle as a } from "lucide-react";
7
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
- import { AuroraBackground as l, GradientText as u, NextSteps as d, PageContainer as f, PagePurpose as p, WorkspacePage as m, useWorkspacePagesV2 as h } from "@burdenoff/fe-libs/ui";
9
- import { PageHeader as g } from "@burdenoff/fe-libs/chrome";
3
+ import { useHbPagesV3 as n } from "../pagesV3.js";
4
+ import { cn as r } from "../utils/helpers.js";
5
+ import { GetHelpButton as i } from "./GetHelpButton.js";
6
+ import { useSidebarTitle as a } from "./sidebarTitle.js";
7
+ import { HelpCircle as o } from "lucide-react";
8
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { ActionMenu as u, AuroraBackground as d, DepthHero as f, DepthPage as p, GradientText as m, NextSteps as h, PageContainer as g, PagePurpose as _, WorkspacePage as v, useWorkspacePagesV2 as y } from "@burdenoff/fe-libs/ui";
10
+ import { PageHeader as b } from "@burdenoff/fe-libs/chrome";
10
11
  // src/healthybowl/components/PageLayout.tsx
11
- var _ = (e, t) => {
12
+ var x = (e, t) => {
12
13
  if (!t) return e;
13
14
  let n = e.indexOf(t);
14
- return n === -1 ? e : /* @__PURE__ */ c(o, { children: [
15
+ return n === -1 ? e : /* @__PURE__ */ l(s, { children: [
15
16
  e.slice(0, n),
16
- /* @__PURE__ */ s(u, { children: t }),
17
+ /* @__PURE__ */ c(m, { children: t }),
17
18
  e.slice(n + t.length)
18
19
  ] });
19
- }, v = ({ title: n, description: r, actions: o, children: l, helpPrompt: u, hideHelp: d = !1, testId: f, className: p, badge: h, more: _ = [] }) => {
20
- let v = t(), y = e(), b = i(n), x = d ? _ : [..._, {
21
- id: "help",
22
- label: v("healthybowl.shared.getHelpButton.label", "Get Help"),
23
- icon: a,
24
- onSelect: () => y(u ?? `What is the ${b} page for, and how do I use it?`),
25
- separatorBefore: _.length > 0
26
- }];
27
- return /* @__PURE__ */ s("div", {
20
+ }, S = ({ title: n, helpPrompt: r, hideHelp: i = !1, more: s = [] }) => {
21
+ let c = t(), l = e(), u = a(n);
22
+ return {
23
+ shown: u,
24
+ more: i ? s : [...s, {
25
+ id: "help",
26
+ label: c("healthybowl.shared.getHelpButton.label", "Get Help"),
27
+ icon: o,
28
+ onSelect: () => l(r ?? `What is the ${u} page for, and how do I use it?`),
29
+ separatorBefore: s.length > 0
30
+ }]
31
+ };
32
+ }, C = ({ title: e, description: t, actions: n, children: r, helpPrompt: i, hideHelp: a, testId: o, className: s, badge: u, more: d }) => {
33
+ let { shown: f, more: p } = S({
34
+ title: e,
35
+ helpPrompt: i,
36
+ hideHelp: a,
37
+ more: d
38
+ });
39
+ return /* @__PURE__ */ c("div", {
28
40
  className: "contents",
29
- "data-testid": f,
30
- children: /* @__PURE__ */ c(m, {
31
- className: p,
32
- children: [/* @__PURE__ */ s(g, {
41
+ "data-testid": o,
42
+ children: /* @__PURE__ */ l(v, {
43
+ className: s,
44
+ children: [/* @__PURE__ */ c(b, {
33
45
  variant: "compact",
34
- title: b,
35
- description: r,
36
- actions: o,
37
- more: x,
38
- badge: h
39
- }), l]
46
+ title: f,
47
+ description: t,
48
+ actions: n,
49
+ more: p,
50
+ badge: u
51
+ }), r]
52
+ })
53
+ });
54
+ }, w = ({ title: e, description: t, purpose: n, actions: r, children: i, helpPrompt: a, hideHelp: o, testId: d, className: m, badge: h, more: g }) => {
55
+ let { shown: _, more: y } = S({
56
+ title: e,
57
+ helpPrompt: a,
58
+ hideHelp: o,
59
+ more: g
60
+ }), b = t || n || void 0, x = h || void 0, C = y.length > 0 ? /* @__PURE__ */ c(u, {
61
+ items: y,
62
+ placement: "header"
63
+ }) : null;
64
+ return /* @__PURE__ */ c("div", {
65
+ className: "contents",
66
+ "data-testid": d,
67
+ children: /* @__PURE__ */ c(v, {
68
+ className: m,
69
+ children: /* @__PURE__ */ l(p, { children: [/* @__PURE__ */ c(f, {
70
+ compact: !0,
71
+ title: _,
72
+ summary: b,
73
+ actions: r || C ? /* @__PURE__ */ l(s, { children: [r, C] }) : void 0,
74
+ children: x
75
+ }), i] })
40
76
  })
41
77
  });
42
- }, y = (e) => h() ? /* @__PURE__ */ s(v, { ...e }) : /* @__PURE__ */ s(b, { ...e }), b = ({ title: e, description: t, actions: i, children: a, hero: u = !1, titleAccent: m, purpose: h, purposeIcon: v, testId: y, nextSteps: b, nextStepsKey: x, nextStepsTitle: S, helpPrompt: C, hideHelp: w = !1, className: T }) => {
43
- let E = w ? null : /* @__PURE__ */ s(r, { prompt: C ?? `What is the ${e} page for, and how do I use it?` }), D = E || i ? /* @__PURE__ */ c(o, { children: [E, i] }) : void 0, O = /* @__PURE__ */ s(g, {
44
- title: _(e, m),
78
+ }, T = (e) => {
79
+ let t = y();
80
+ return n() ? /* @__PURE__ */ c(w, { ...e }) : c(t ? C : E, { ...e });
81
+ }, E = ({ title: e, description: t, actions: n, children: a, hero: o = !1, titleAccent: u, purpose: f, purposeIcon: p, testId: m, nextSteps: v, nextStepsKey: y, nextStepsTitle: S, helpPrompt: C, hideHelp: w = !1, className: T }) => {
82
+ let E = w ? null : /* @__PURE__ */ c(i, { prompt: C ?? `What is the ${e} page for, and how do I use it?` }), D = E || n ? /* @__PURE__ */ l(s, { children: [E, n] }) : void 0, O = /* @__PURE__ */ c(b, {
83
+ title: x(e, u),
45
84
  description: t,
46
85
  actions: D
47
86
  });
48
- return /* @__PURE__ */ c(f, {
87
+ return /* @__PURE__ */ l(g, {
49
88
  variant: "canvas",
50
- className: n("space-y-6", T),
51
- "data-testid": y,
89
+ className: r("space-y-6", T),
90
+ "data-testid": m,
52
91
  children: [
53
- u ? /* @__PURE__ */ c("div", {
92
+ o ? /* @__PURE__ */ l("div", {
54
93
  className: "relative overflow-hidden rounded-2xl border border-border-seam bg-hero-mesh px-6 py-5 shadow-pop",
55
- children: [/* @__PURE__ */ s(l, { intensity: "subtle" }), /* @__PURE__ */ s("div", {
94
+ children: [/* @__PURE__ */ c(d, { intensity: "subtle" }), /* @__PURE__ */ c("div", {
56
95
  className: "relative z-10",
57
96
  children: O
58
97
  })]
59
98
  }) : O,
60
- h && /* @__PURE__ */ s(p, {
61
- icon: v,
62
- children: h
99
+ f && /* @__PURE__ */ c(_, {
100
+ icon: p,
101
+ children: f
63
102
  }),
64
- b && b.length > 0 && x && /* @__PURE__ */ s(d, {
65
- steps: b,
66
- storageKey: x,
103
+ v && v.length > 0 && y && /* @__PURE__ */ c(h, {
104
+ steps: v,
105
+ storageKey: y,
67
106
  title: S
68
107
  }),
69
108
  a
70
109
  ]
71
110
  });
72
111
  };
73
- export { y as PageLayout };
112
+ export { T as PageLayout };