@burdenoff/microfe-healthybowl 2026.811.13 → 2026.811.15

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 (269) hide show
  1. package/dist/healthybowl/HealthyBowlRoot.js +134 -118
  2. package/dist/healthybowl/HealthyBowlRoot.js.map +1 -1
  3. package/dist/healthybowl/components/ChartCard.js.map +1 -1
  4. package/dist/healthybowl/components/FieldMap.js +3 -3
  5. package/dist/healthybowl/components/FieldMap.js.map +1 -1
  6. package/dist/healthybowl/components/FilterBar.js +3 -3
  7. package/dist/healthybowl/components/FilterBar.js.map +1 -1
  8. package/dist/healthybowl/components/HBEntityImages.js +1 -1
  9. package/dist/healthybowl/components/HBEntityImages.js.map +1 -1
  10. package/dist/healthybowl/components/PlanExecutionPanel.js +1 -1
  11. package/dist/healthybowl/components/PlanExecutionPanel.js.map +1 -1
  12. package/dist/healthybowl/components/WeatherMap.js +2 -2
  13. package/dist/healthybowl/components/WeatherMap.js.map +1 -1
  14. package/dist/healthybowl/hooks/useSharedMarket.js +7 -6
  15. package/dist/healthybowl/hooks/useSharedMarket.js.map +1 -1
  16. package/dist/healthybowl/pages/HomePage.js +4 -4
  17. package/dist/healthybowl/pages/HomePage.js.map +1 -1
  18. package/dist/healthybowl/pages/agri-inputs/AgriInputsStorePage.js +2 -2
  19. package/dist/healthybowl/pages/agri-inputs/AgriInputsStorePage.js.map +1 -1
  20. package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js +2 -2
  21. package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js.map +1 -1
  22. package/dist/healthybowl/pages/catalog/PlantCatalogPage.js +1 -1
  23. package/dist/healthybowl/pages/catalog/PlantCatalogPage.js.map +1 -1
  24. package/dist/healthybowl/pages/compliance/CertificatesOfOriginPage.js +2 -2
  25. package/dist/healthybowl/pages/compliance/CertificatesOfOriginPage.js.map +1 -1
  26. package/dist/healthybowl/pages/compliance/ComplianceAlertsPage.js +4 -4
  27. package/dist/healthybowl/pages/compliance/ComplianceAlertsPage.js.map +1 -1
  28. package/dist/healthybowl/pages/compliance/ComplianceDocumentsPage.js +1 -1
  29. package/dist/healthybowl/pages/compliance/ComplianceDocumentsPage.js.map +1 -1
  30. package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js +9 -9
  31. package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js.map +1 -1
  32. package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js +11 -11
  33. package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js.map +1 -1
  34. package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js +3 -3
  35. package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js.map +1 -1
  36. package/dist/healthybowl/pages/compliance/IcsGrowerWizardPage.js +1 -1
  37. package/dist/healthybowl/pages/compliance/IcsGrowerWizardPage.js.map +1 -1
  38. package/dist/healthybowl/pages/compliance/InspectionCalendarPage.js +2 -2
  39. package/dist/healthybowl/pages/compliance/InspectionCalendarPage.js.map +1 -1
  40. package/dist/healthybowl/pages/compliance/OrganicCertificationPage.js +2 -2
  41. package/dist/healthybowl/pages/compliance/OrganicCertificationPage.js.map +1 -1
  42. package/dist/healthybowl/pages/consultant/ConsultantClientsPage.js +1 -1
  43. package/dist/healthybowl/pages/consultant/ConsultantClientsPage.js.map +1 -1
  44. package/dist/healthybowl/pages/consultant/ConsultantDiagnosisPage.js +1 -1
  45. package/dist/healthybowl/pages/consultant/ConsultantDiagnosisPage.js.map +1 -1
  46. package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js +2 -2
  47. package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js.map +1 -1
  48. package/dist/healthybowl/pages/contacts/ContactsPage.js +2 -2
  49. package/dist/healthybowl/pages/contacts/ContactsPage.js.map +1 -1
  50. package/dist/healthybowl/pages/contacts/CsvImportModal.js +1 -1
  51. package/dist/healthybowl/pages/contacts/CsvImportModal.js.map +1 -1
  52. package/dist/healthybowl/pages/contracts/ContractsPage.js +8 -8
  53. package/dist/healthybowl/pages/contracts/ContractsPage.js.map +1 -1
  54. package/dist/healthybowl/pages/coop/AggregationLotBuilderPage.js +1 -1
  55. package/dist/healthybowl/pages/coop/AggregationLotBuilderPage.js.map +1 -1
  56. package/dist/healthybowl/pages/coop/CoopMemberDetailPage.js +1 -1
  57. package/dist/healthybowl/pages/coop/CoopMemberDetailPage.js.map +1 -1
  58. package/dist/healthybowl/pages/coop/CoopOverviewPage.js +1 -1
  59. package/dist/healthybowl/pages/coop/CoopOverviewPage.js.map +1 -1
  60. package/dist/healthybowl/pages/coop/coop-forms/SettleLotModal.js +1 -1
  61. package/dist/healthybowl/pages/coop/coop-forms/SettleLotModal.js.map +1 -1
  62. package/dist/healthybowl/pages/crops/CropFieldsPage.js +2 -2
  63. package/dist/healthybowl/pages/crops/CropFieldsPage.js.map +1 -1
  64. package/dist/healthybowl/pages/crops/CropHarvestPage.js +3 -3
  65. package/dist/healthybowl/pages/crops/CropHarvestPage.js.map +1 -1
  66. package/dist/healthybowl/pages/crops/CropPlanningPage.js +6 -6
  67. package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
  68. package/dist/healthybowl/pages/crops/CropsPage.js +4 -4
  69. package/dist/healthybowl/pages/crops/CropsPage.js.map +1 -1
  70. package/dist/healthybowl/pages/crops/FieldDetailsPage.js +14 -14
  71. package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
  72. package/dist/healthybowl/pages/distribution/PickupLocationsPage.js +2 -2
  73. package/dist/healthybowl/pages/distribution/PickupLocationsPage.js.map +1 -1
  74. package/dist/healthybowl/pages/distribution/PickupManifestPage.js +12 -12
  75. package/dist/healthybowl/pages/distribution/PickupManifestPage.js.map +1 -1
  76. package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js +2 -2
  77. package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js.map +1 -1
  78. package/dist/healthybowl/pages/field-capture/ConflictReviewPage.js +4 -4
  79. package/dist/healthybowl/pages/field-capture/ConflictReviewPage.js.map +1 -1
  80. package/dist/healthybowl/pages/field-capture/ObservationLogPage.js +2 -2
  81. package/dist/healthybowl/pages/field-capture/ObservationLogPage.js.map +1 -1
  82. package/dist/healthybowl/pages/field-capture/PendingSyncPage.js +1 -1
  83. package/dist/healthybowl/pages/field-capture/PendingSyncPage.js.map +1 -1
  84. package/dist/healthybowl/pages/field-capture/SyncHistoryPage.js +2 -2
  85. package/dist/healthybowl/pages/field-capture/SyncHistoryPage.js.map +1 -1
  86. package/dist/healthybowl/pages/field-capture/SyncQueuePanel.js +1 -1
  87. package/dist/healthybowl/pages/field-capture/SyncQueuePanel.js.map +1 -1
  88. package/dist/healthybowl/pages/fields/FieldMapPage.js +13 -13
  89. package/dist/healthybowl/pages/fields/FieldMapPage.js.map +1 -1
  90. package/dist/healthybowl/pages/financial/AccountingIntegrationsPage.js +1 -1
  91. package/dist/healthybowl/pages/financial/AccountingIntegrationsPage.js.map +1 -1
  92. package/dist/healthybowl/pages/financial/BankReconciliationPage.js +15 -15
  93. package/dist/healthybowl/pages/financial/BankReconciliationPage.js.map +1 -1
  94. package/dist/healthybowl/pages/financial/ChartOfAccountsPage.js +1 -1
  95. package/dist/healthybowl/pages/financial/ChartOfAccountsPage.js.map +1 -1
  96. package/dist/healthybowl/pages/financial/CostByCropPage.js +6 -6
  97. package/dist/healthybowl/pages/financial/CostByCropPage.js.map +1 -1
  98. package/dist/healthybowl/pages/financial/FarmAccountingPage.js +7 -7
  99. package/dist/healthybowl/pages/financial/FarmAccountingPage.js.map +1 -1
  100. package/dist/healthybowl/pages/financial/FinancialDashboardPage.js +4 -4
  101. package/dist/healthybowl/pages/financial/FinancialDashboardPage.js.map +1 -1
  102. package/dist/healthybowl/pages/financial/FinancialStatementsPage.js +13 -13
  103. package/dist/healthybowl/pages/financial/FinancialStatementsPage.js.map +1 -1
  104. package/dist/healthybowl/pages/financial/FinancierAccessPage.js +2 -2
  105. package/dist/healthybowl/pages/financial/FinancierAccessPage.js.map +1 -1
  106. package/dist/healthybowl/pages/financial/GeneralLedgerPage.js +3 -3
  107. package/dist/healthybowl/pages/financial/GeneralLedgerPage.js.map +1 -1
  108. package/dist/healthybowl/pages/financial/InvoiceManagementPage.js +16 -16
  109. package/dist/healthybowl/pages/financial/InvoiceManagementPage.js.map +1 -1
  110. package/dist/healthybowl/pages/financial/JournalEntryModal.js +6 -6
  111. package/dist/healthybowl/pages/financial/JournalEntryModal.js.map +1 -1
  112. package/dist/healthybowl/pages/financial/ProfitLossPage.js +1 -1
  113. package/dist/healthybowl/pages/financial/ProfitLossPage.js.map +1 -1
  114. package/dist/healthybowl/pages/financial/TransactionsPage.js +2 -2
  115. package/dist/healthybowl/pages/financial/TransactionsPage.js.map +1 -1
  116. package/dist/healthybowl/pages/financier/FinancierPage.js +1 -1
  117. package/dist/healthybowl/pages/financier/FinancierPage.js.map +1 -1
  118. package/dist/healthybowl/pages/government-schemes/AccessibilitySettingsPage.js +2 -2
  119. package/dist/healthybowl/pages/government-schemes/AccessibilitySettingsPage.js.map +1 -1
  120. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +1 -1
  121. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
  122. package/dist/healthybowl/pages/government-schemes/CommunicationPage.js +2 -2
  123. package/dist/healthybowl/pages/government-schemes/CommunicationPage.js.map +1 -1
  124. package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js +4 -4
  125. package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js.map +1 -1
  126. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +2 -2
  127. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
  128. package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js +8 -8
  129. package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js.map +1 -1
  130. package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js +2 -2
  131. package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js.map +1 -1
  132. package/dist/healthybowl/pages/inputs-insurance/ClaimDetailPage.js +3 -3
  133. package/dist/healthybowl/pages/inputs-insurance/ClaimDetailPage.js.map +1 -1
  134. package/dist/healthybowl/pages/inputs-insurance/PmfbyApplyPage.js +1 -1
  135. package/dist/healthybowl/pages/inputs-insurance/PmfbyApplyPage.js.map +1 -1
  136. package/dist/healthybowl/pages/inputs-insurance/PolicyClaimsPage.js +1 -1
  137. package/dist/healthybowl/pages/inputs-insurance/PolicyClaimsPage.js.map +1 -1
  138. package/dist/healthybowl/pages/irrigation/IrrigationPage.js +2 -2
  139. package/dist/healthybowl/pages/irrigation/IrrigationPage.js.map +1 -1
  140. package/dist/healthybowl/pages/livestock/AnimalDepthPage.js +2 -2
  141. package/dist/healthybowl/pages/livestock/AnimalDepthPage.js.map +1 -1
  142. package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +6 -6
  143. package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js.map +1 -1
  144. package/dist/healthybowl/pages/livestock/GrazingPage.js +1 -1
  145. package/dist/healthybowl/pages/livestock/GrazingPage.js.map +1 -1
  146. package/dist/healthybowl/pages/livestock/HerdDepthPage.js +1 -1
  147. package/dist/healthybowl/pages/livestock/HerdDepthPage.js.map +1 -1
  148. package/dist/healthybowl/pages/livestock/HerdStatsCard.js +9 -9
  149. package/dist/healthybowl/pages/livestock/HerdStatsCard.js.map +1 -1
  150. package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js +3 -3
  151. package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js.map +1 -1
  152. package/dist/healthybowl/pages/livestock/LivestockImportModal.js +1 -1
  153. package/dist/healthybowl/pages/livestock/LivestockImportModal.js.map +1 -1
  154. package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js +1 -1
  155. package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js.map +1 -1
  156. package/dist/healthybowl/pages/livestock/WithdrawalCalendarPage.js +1 -1
  157. package/dist/healthybowl/pages/livestock/WithdrawalCalendarPage.js.map +1 -1
  158. package/dist/healthybowl/pages/livestock/withdrawal/AnimalWithdrawalCard.js +10 -10
  159. package/dist/healthybowl/pages/livestock/withdrawal/AnimalWithdrawalCard.js.map +1 -1
  160. package/dist/healthybowl/pages/livestock/withdrawal/status.js +4 -4
  161. package/dist/healthybowl/pages/livestock/withdrawal/status.js.map +1 -1
  162. package/dist/healthybowl/pages/market/MarketPricesPage.js +1 -1
  163. package/dist/healthybowl/pages/market/MarketPricesPage.js.map +1 -1
  164. package/dist/healthybowl/pages/marketplace/CartPage.js +3 -3
  165. package/dist/healthybowl/pages/marketplace/CartPage.js.map +1 -1
  166. package/dist/healthybowl/pages/marketplace/MarketplacePage.js +9 -9
  167. package/dist/healthybowl/pages/marketplace/MarketplacePage.js.map +1 -1
  168. package/dist/healthybowl/pages/marketplace/OrdersPage.js +226 -226
  169. package/dist/healthybowl/pages/marketplace/OrdersPage.js.map +1 -1
  170. package/dist/healthybowl/pages/marketplace/ProductDetailPage.js +2 -2
  171. package/dist/healthybowl/pages/marketplace/ProductDetailPage.js.map +1 -1
  172. package/dist/healthybowl/pages/marketplace/SharedMarketView.js +4 -4
  173. package/dist/healthybowl/pages/marketplace/SharedMarketView.js.map +1 -1
  174. package/dist/healthybowl/pages/marketplace/ShipmentTrackingPanel.js +1 -1
  175. package/dist/healthybowl/pages/marketplace/ShipmentTrackingPanel.js.map +1 -1
  176. package/dist/healthybowl/pages/marketplace/StoreProduceStrip.js +1 -1
  177. package/dist/healthybowl/pages/marketplace/StoreProduceStrip.js.map +1 -1
  178. package/dist/healthybowl/pages/marketplace/WishlistPage.js +4 -4
  179. package/dist/healthybowl/pages/marketplace/WishlistPage.js.map +1 -1
  180. package/dist/healthybowl/pages/network/CohortsPage.js +2 -2
  181. package/dist/healthybowl/pages/network/CohortsPage.js.map +1 -1
  182. package/dist/healthybowl/pages/network/CommunityPage.js +6 -6
  183. package/dist/healthybowl/pages/network/CommunityPage.js.map +1 -1
  184. package/dist/healthybowl/pages/network/EventsPage.js +1 -1
  185. package/dist/healthybowl/pages/network/EventsPage.js.map +1 -1
  186. package/dist/healthybowl/pages/network/ExpertsPage.js +2 -2
  187. package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
  188. package/dist/healthybowl/pages/network/MentorsPage.js +12 -12
  189. package/dist/healthybowl/pages/network/MentorsPage.js.map +1 -1
  190. package/dist/healthybowl/pages/network/NetworkOverviewPage.js +2 -2
  191. package/dist/healthybowl/pages/network/NetworkOverviewPage.js.map +1 -1
  192. package/dist/healthybowl/pages/nursery/NurseryProvenancePage.js +2 -2
  193. package/dist/healthybowl/pages/nursery/NurseryProvenancePage.js.map +1 -1
  194. package/dist/healthybowl/pages/pest-management/AiPestDetectionPage.js +2 -2
  195. package/dist/healthybowl/pages/pest-management/AiPestDetectionPage.js.map +1 -1
  196. package/dist/healthybowl/pages/pest-management/PestOverviewPage.js +2 -2
  197. package/dist/healthybowl/pages/pest-management/PestOverviewPage.js.map +1 -1
  198. package/dist/healthybowl/pages/production/ProductionPlanningPage.js +2 -2
  199. package/dist/healthybowl/pages/production/ProductionPlanningPage.js.map +1 -1
  200. package/dist/healthybowl/pages/production/ProductionSchedulePage.js +3 -3
  201. package/dist/healthybowl/pages/production/ProductionSchedulePage.js.map +1 -1
  202. package/dist/healthybowl/pages/products/BatchesPage.js +2 -2
  203. package/dist/healthybowl/pages/products/BatchesPage.js.map +1 -1
  204. package/dist/healthybowl/pages/products/InventoryPage.js +2 -2
  205. package/dist/healthybowl/pages/products/InventoryPage.js.map +1 -1
  206. package/dist/healthybowl/pages/products/ProductsOverviewPage.js +7 -7
  207. package/dist/healthybowl/pages/products/ProductsOverviewPage.js.map +1 -1
  208. package/dist/healthybowl/pages/reports-api/ReportsApiPage.js +3 -3
  209. package/dist/healthybowl/pages/reports-api/ReportsApiPage.js.map +1 -1
  210. package/dist/healthybowl/pages/satellite/CropHealthAlertsPage.js +6 -6
  211. package/dist/healthybowl/pages/satellite/CropHealthAlertsPage.js.map +1 -1
  212. package/dist/healthybowl/pages/satellite/SatelliteCropHealthPage.js +6 -6
  213. package/dist/healthybowl/pages/satellite/SatelliteCropHealthPage.js.map +1 -1
  214. package/dist/healthybowl/pages/satellite/SatelliteFieldDetailPage.js +6 -6
  215. package/dist/healthybowl/pages/satellite/SatelliteFieldDetailPage.js.map +1 -1
  216. package/dist/healthybowl/pages/satellite/SatelliteSettingsPage.js +2 -2
  217. package/dist/healthybowl/pages/satellite/SatelliteSettingsPage.js.map +1 -1
  218. package/dist/healthybowl/pages/satellite/YieldReportPanel.js +3 -3
  219. package/dist/healthybowl/pages/satellite/YieldReportPanel.js.map +1 -1
  220. package/dist/healthybowl/pages/satellite/YieldSimulationPanel.js +10 -10
  221. package/dist/healthybowl/pages/satellite/YieldSimulationPanel.js.map +1 -1
  222. package/dist/healthybowl/pages/soil/FieldSensorsPage.js +1 -1
  223. package/dist/healthybowl/pages/soil/FieldSensorsPage.js.map +1 -1
  224. package/dist/healthybowl/pages/soil/SoilDashboardPage.js +2 -2
  225. package/dist/healthybowl/pages/soil/SoilDashboardPage.js.map +1 -1
  226. package/dist/healthybowl/pages/soil/SoilRecommendationsPage.js +2 -2
  227. package/dist/healthybowl/pages/soil/SoilRecommendationsPage.js.map +1 -1
  228. package/dist/healthybowl/pages/storage/StorageLotDetailPage.js +2 -2
  229. package/dist/healthybowl/pages/storage/StorageLotDetailPage.js.map +1 -1
  230. package/dist/healthybowl/pages/storage/StoragePage.js +6 -6
  231. package/dist/healthybowl/pages/storage/StoragePage.js.map +1 -1
  232. package/dist/healthybowl/pages/suppliers/SuppliersPage.js +4 -4
  233. package/dist/healthybowl/pages/suppliers/SuppliersPage.js.map +1 -1
  234. package/dist/healthybowl/pages/sustainability/SustainabilityOverviewPage.js +11 -11
  235. package/dist/healthybowl/pages/sustainability/SustainabilityOverviewPage.js.map +1 -1
  236. package/dist/healthybowl/pages/terrace/CareSchedulePage.js +1 -1
  237. package/dist/healthybowl/pages/terrace/CareSchedulePage.js.map +1 -1
  238. package/dist/healthybowl/pages/terrace/GardenDashboardPage.js +1 -1
  239. package/dist/healthybowl/pages/terrace/GardenDashboardPage.js.map +1 -1
  240. package/dist/healthybowl/pages/terrace/MyGardensPage.js +1 -1
  241. package/dist/healthybowl/pages/terrace/MyGardensPage.js.map +1 -1
  242. package/dist/healthybowl/pages/terrace/PlantingDetailPage.js +3 -3
  243. package/dist/healthybowl/pages/terrace/PlantingDetailPage.js.map +1 -1
  244. package/dist/healthybowl/pages/terrace/PlantingsPage.js +1 -1
  245. package/dist/healthybowl/pages/terrace/PlantingsPage.js.map +1 -1
  246. package/dist/healthybowl/pages/terrace/WhatToGrowPage.js +1 -1
  247. package/dist/healthybowl/pages/terrace/WhatToGrowPage.js.map +1 -1
  248. package/dist/healthybowl/pages/traceability/BatchTrackingPage.js +2 -2
  249. package/dist/healthybowl/pages/traceability/BatchTrackingPage.js.map +1 -1
  250. package/dist/healthybowl/pages/traceability/QRCodesPage.js +4 -4
  251. package/dist/healthybowl/pages/traceability/QRCodesPage.js.map +1 -1
  252. package/dist/healthybowl/pages/traceability/SupplyChainPage.js +1 -1
  253. package/dist/healthybowl/pages/traceability/SupplyChainPage.js.map +1 -1
  254. package/dist/healthybowl/pages/traceability/TraceLedgerPage.js +3 -3
  255. package/dist/healthybowl/pages/traceability/TraceLedgerPage.js.map +1 -1
  256. package/dist/healthybowl/pages/traceability/TraceTrackingPage.js +3 -3
  257. package/dist/healthybowl/pages/traceability/TraceTrackingPage.js.map +1 -1
  258. package/dist/healthybowl/pages/weather/FrostRiskCalendarPage.js +1 -1
  259. package/dist/healthybowl/pages/weather/FrostRiskCalendarPage.js.map +1 -1
  260. package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js +3 -3
  261. package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js.map +1 -1
  262. package/dist/healthybowl/pages/weather/WeatherAlertsPage.js +10 -10
  263. package/dist/healthybowl/pages/weather/WeatherAlertsPage.js.map +1 -1
  264. package/dist/healthybowl/pages/weather/WeatherForecastPage.js +6 -6
  265. package/dist/healthybowl/pages/weather/WeatherForecastPage.js.map +1 -1
  266. package/dist/healthybowl/pages/weather/WeatherOverviewPage.js +6 -6
  267. package/dist/healthybowl/pages/weather/WeatherOverviewPage.js.map +1 -1
  268. package/dist/healthybowl/utils/gs1.js.map +1 -1
  269. package/package.json +1 -1
@@ -2,311 +2,327 @@ import { HealthyBowlProvider as e } from "./context/HealthyBowlContext.js";
2
2
  import { normalizeBasePath as t, setHbFormatLocale as n } from "./utils/helpers.js";
3
3
  import { ErrorBoundary as r } from "./components/ErrorBoundary.js";
4
4
  import { ConfirmProvider as i } from "./components/ConfirmDialog.js";
5
- import { HealthyBowlRoutes as a } from "./HealthyBowlRoutes.js";
6
- import { OfflineSyncProvider as o } from "./offline/OfflineSyncProvider.js";
7
- import { useCallback as s, useEffect as c } from "react";
8
- import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
- import { Award as u, Banknote as d, BarChart3 as f, Bug as p, Cloud as m, CloudUpload as h, DollarSign as g, Factory as _, Fence as v, FlaskConical as y, Globe as b, Home as x, Landmark as S, Leaf as C, LineChart as w, ListChecks as T, Map as E, Package as D, PawPrint as O, Radio as k, RefreshCw as A, ScanLine as j, ScanSearch as M, ShieldAlert as N, ShieldCheck as P, ShoppingCart as F, Sprout as I, Stethoscope as L, Tractor as R, UserCheck as z, Users as B, Users2 as V, Wheat as H } from "lucide-react";
10
- import { jsx as U } from "react/jsx-runtime";
11
- import { FeatureFlagProvider as W } from "@burdenoff/fe-libs/shared/feature-flags";
5
+ import { HealthyBowlRoutes as ee } from "./HealthyBowlRoutes.js";
6
+ import { OfflineSyncProvider as te } from "./offline/OfflineSyncProvider.js";
7
+ import { useCallback as a, useEffect as o } from "react";
8
+ import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
+ import { Award as c, Banknote as l, BarChart3 as u, Bug as d, Cloud as f, CloudUpload as p, DollarSign as m, Factory as h, Fence as g, FlaskConical as _, Globe as v, Home as y, Landmark as b, Leaf as x, LineChart as S, ListChecks as C, Map as w, Package as T, PawPrint as E, Radio as D, RefreshCw as O, ScanLine as k, ScanSearch as A, ShieldAlert as j, ShieldCheck as M, ShoppingCart as N, Sprout as ne, Stethoscope as P, Tractor as F, UserCheck as I, Users as L, Users2 as R, Wheat as z } from "lucide-react";
10
+ import { jsx as B, jsxs as V } from "react/jsx-runtime";
11
+ import { FeatureFlagProvider as H } from "@burdenoff/fe-libs/shared/feature-flags";
12
12
  //#region src/healthybowl/HealthyBowlRoot.tsx
13
- var G = (G) => {
14
- let { registerNavItems: K, registerFooterItems: q, basePath: J = "/" } = G, { t: Y, locale: X } = l();
13
+ var U = new Set(["ar"]), W = [
14
+ ".lucide-arrow-right",
15
+ ".lucide-arrow-left",
16
+ ".lucide-chevron-right",
17
+ ".lucide-chevron-left",
18
+ ".lucide-chevrons-right",
19
+ ".lucide-chevrons-left",
20
+ ".lucide-move-right",
21
+ ".lucide-move-left"
22
+ ].map((e) => `[dir="rtl"] ${e}`).join(",").concat("{transform:scaleX(-1)}"), G = (G) => {
23
+ let { registerNavItems: K, registerFooterItems: q, basePath: J = "/" } = G, { t: Y, locale: X } = s();
15
24
  n(X);
16
- let Z = s((e, t) => {
25
+ let Z = U.has(X) ? "rtl" : "ltr";
26
+ o(() => {
27
+ let e = document.documentElement, t = e.getAttribute("dir");
28
+ return e.setAttribute("dir", Z), () => {
29
+ t === null ? e.removeAttribute("dir") : e.setAttribute("dir", t);
30
+ };
31
+ }, [Z]);
32
+ let Q = a((e, t) => {
17
33
  let n = Y(e);
18
34
  return n === e ? t : n;
19
- }, [Y]), Q = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
20
- return c(() => {
35
+ }, [Y]), $ = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
36
+ return o(() => {
21
37
  if (K) return K([
22
38
  {
23
39
  id: "healthybowl-dashboard",
24
- label: Z("healthybowl.nav.dashboard", "Dashboard"),
40
+ label: Q("healthybowl.nav.dashboard", "Dashboard"),
25
41
  path: t(J),
26
- icon: /* @__PURE__ */ U(x, { size: 20 }),
42
+ icon: /* @__PURE__ */ B(y, { size: 20 }),
27
43
  order: 1,
28
44
  group: "main"
29
45
  },
30
46
  {
31
47
  id: "healthybowl-farm",
32
- label: Z("healthybowl.nav.farm", "My Farm"),
33
- path: Q(J, "farm"),
34
- icon: /* @__PURE__ */ U(R, { size: 20 }),
48
+ label: Q("healthybowl.nav.farm", "My Farm"),
49
+ path: $(J, "farm"),
50
+ icon: /* @__PURE__ */ B(F, { size: 20 }),
35
51
  order: 2,
36
52
  group: "main"
37
53
  },
38
54
  {
39
55
  id: "healthybowl-tasks",
40
- label: Z("healthybowl.nav.tasks", "Tasks"),
41
- path: Q(J, "tasks"),
42
- icon: /* @__PURE__ */ U(T, { size: 20 }),
56
+ label: Q("healthybowl.nav.tasks", "Tasks"),
57
+ path: $(J, "tasks"),
58
+ icon: /* @__PURE__ */ B(C, { size: 20 }),
43
59
  order: 3,
44
60
  group: "main"
45
61
  },
46
62
  {
47
63
  id: "healthybowl-crops",
48
- label: Z("healthybowl.nav.crops", "Crops"),
49
- path: Q(J, "crops"),
50
- icon: /* @__PURE__ */ U(H, { size: 20 }),
64
+ label: Q("healthybowl.nav.crops", "Crops"),
65
+ path: $(J, "crops"),
66
+ icon: /* @__PURE__ */ B(z, { size: 20 }),
51
67
  order: 10,
52
68
  group: "farming"
53
69
  },
54
70
  {
55
71
  id: "healthybowl-livestock",
56
- label: Z("healthybowl.nav.livestock", "Livestock"),
57
- path: Q(J, "livestock"),
58
- icon: /* @__PURE__ */ U(O, { size: 20 }),
72
+ label: Q("healthybowl.nav.livestock", "Livestock"),
73
+ path: $(J, "livestock"),
74
+ icon: /* @__PURE__ */ B(E, { size: 20 }),
59
75
  order: 11,
60
76
  group: "farming"
61
77
  },
62
78
  {
63
79
  id: "healthybowl-livestock-analytics",
64
- label: Z("healthybowl.nav.livestockAnalytics", "Livestock Analytics"),
65
- path: Q(J, "livestock/analytics"),
66
- icon: /* @__PURE__ */ U(w, { size: 20 }),
80
+ label: Q("healthybowl.nav.livestockAnalytics", "Livestock Analytics"),
81
+ path: $(J, "livestock/analytics"),
82
+ icon: /* @__PURE__ */ B(S, { size: 20 }),
67
83
  order: 11.3,
68
84
  group: "farming"
69
85
  },
70
86
  {
71
87
  id: "healthybowl-grazing",
72
- label: Z("healthybowl.nav.grazing", "Grazing"),
73
- path: Q(J, "livestock/grazing"),
74
- icon: /* @__PURE__ */ U(v, { size: 20 }),
88
+ label: Q("healthybowl.nav.grazing", "Grazing"),
89
+ path: $(J, "livestock/grazing"),
90
+ icon: /* @__PURE__ */ B(g, { size: 20 }),
75
91
  order: 11.4,
76
92
  group: "farming"
77
93
  },
78
94
  {
79
95
  id: "healthybowl-withdrawal-alerts",
80
- label: Z("healthybowl.nav.withdrawalAlerts", "Withdrawal Alerts"),
81
- path: Q(J, "livestock/withdrawal-alerts"),
82
- icon: /* @__PURE__ */ U(N, { size: 20 }),
96
+ label: Q("healthybowl.nav.withdrawalAlerts", "Withdrawal Alerts"),
97
+ path: $(J, "livestock/withdrawal-alerts"),
98
+ icon: /* @__PURE__ */ B(j, { size: 20 }),
83
99
  order: 11.5,
84
100
  group: "farming"
85
101
  },
86
102
  {
87
103
  id: "healthybowl-weather",
88
- label: Z("healthybowl.nav.weather", "Weather"),
89
- path: Q(J, "weather"),
90
- icon: /* @__PURE__ */ U(m, { size: 20 }),
104
+ label: Q("healthybowl.nav.weather", "Weather"),
105
+ path: $(J, "weather"),
106
+ icon: /* @__PURE__ */ B(f, { size: 20 }),
91
107
  order: 12,
92
108
  group: "farming"
93
109
  },
94
110
  {
95
111
  id: "healthybowl-field-map",
96
- label: Z("healthybowl.nav.fieldMap", "Field Map"),
97
- path: Q(J, "field-map"),
98
- icon: /* @__PURE__ */ U(E, { size: 20 }),
112
+ label: Q("healthybowl.nav.fieldMap", "Field Map"),
113
+ path: $(J, "field-map"),
114
+ icon: /* @__PURE__ */ B(w, { size: 20 }),
99
115
  order: 12.5,
100
116
  group: "farming"
101
117
  },
102
118
  {
103
119
  id: "healthybowl-field-capture",
104
- label: Z("healthybowl.nav.fieldCapture", "Field Capture"),
105
- path: Q(J, "field-capture"),
106
- icon: /* @__PURE__ */ U(h, { size: 20 }),
120
+ label: Q("healthybowl.nav.fieldCapture", "Field Capture"),
121
+ path: $(J, "field-capture"),
122
+ icon: /* @__PURE__ */ B(p, { size: 20 }),
107
123
  order: 12.6,
108
124
  group: "farming"
109
125
  },
110
126
  {
111
127
  id: "healthybowl-pending-sync",
112
- label: Z("healthybowl.nav.pendingSync", "Pending Sync"),
113
- path: Q(J, "field-capture/pending"),
114
- icon: /* @__PURE__ */ U(A, { size: 20 }),
128
+ label: Q("healthybowl.nav.pendingSync", "Pending Sync"),
129
+ path: $(J, "field-capture/pending"),
130
+ icon: /* @__PURE__ */ B(O, { size: 20 }),
115
131
  order: 12.7,
116
132
  group: "farming"
117
133
  },
118
134
  {
119
135
  id: "healthybowl-field-sensors",
120
- label: Z("healthybowl.nav.fieldSensors", "Field Sensors"),
121
- path: Q(J, "field-sensors"),
122
- icon: /* @__PURE__ */ U(k, { size: 20 }),
136
+ label: Q("healthybowl.nav.fieldSensors", "Field Sensors"),
137
+ path: $(J, "field-sensors"),
138
+ icon: /* @__PURE__ */ B(D, { size: 20 }),
123
139
  order: 12.75,
124
140
  group: "farming"
125
141
  },
126
142
  {
127
143
  id: "healthybowl-soil",
128
- label: Z("healthybowl.nav.soilHealth", "Soil Health"),
129
- path: Q(J, "soil"),
130
- icon: /* @__PURE__ */ U(y, { size: 20 }),
144
+ label: Q("healthybowl.nav.soilHealth", "Soil Health"),
145
+ path: $(J, "soil"),
146
+ icon: /* @__PURE__ */ B(_, { size: 20 }),
131
147
  order: 13,
132
148
  group: "farming"
133
149
  },
134
150
  {
135
151
  id: "healthybowl-pest",
136
- label: Z("healthybowl.nav.pestManagement", "Pest Management"),
137
- path: Q(J, "pest-management"),
138
- icon: /* @__PURE__ */ U(p, { size: 20 }),
152
+ label: Q("healthybowl.nav.pestManagement", "Pest Management"),
153
+ path: $(J, "pest-management"),
154
+ icon: /* @__PURE__ */ B(d, { size: 20 }),
139
155
  order: 14,
140
156
  group: "farming"
141
157
  },
142
158
  {
143
159
  id: "healthybowl-pest-ai",
144
- label: Z("healthybowl.nav.aiPestDetection", "AI Pest Detection"),
145
- path: Q(J, "pest-management/ai-detection"),
146
- icon: /* @__PURE__ */ U(M, { size: 20 }),
160
+ label: Q("healthybowl.nav.aiPestDetection", "AI Pest Detection"),
161
+ path: $(J, "pest-management/ai-detection"),
162
+ icon: /* @__PURE__ */ B(A, { size: 20 }),
147
163
  order: 14.5,
148
164
  group: "farming"
149
165
  },
150
166
  {
151
167
  id: "healthybowl-production",
152
- label: Z("healthybowl.nav.production", "Production"),
153
- path: Q(J, "production"),
154
- icon: /* @__PURE__ */ U(_, { size: 20 }),
168
+ label: Q("healthybowl.nav.production", "Production"),
169
+ path: $(J, "production"),
170
+ icon: /* @__PURE__ */ B(h, { size: 20 }),
155
171
  order: 20,
156
172
  group: "business"
157
173
  },
158
174
  {
159
175
  id: "healthybowl-products",
160
- label: Z("healthybowl.nav.products", "Products"),
161
- path: Q(J, "products"),
162
- icon: /* @__PURE__ */ U(D, { size: 20 }),
176
+ label: Q("healthybowl.nav.products", "Products"),
177
+ path: $(J, "products"),
178
+ icon: /* @__PURE__ */ B(T, { size: 20 }),
163
179
  order: 21,
164
180
  group: "business"
165
181
  },
166
182
  {
167
183
  id: "healthybowl-marketplace",
168
- label: Z("healthybowl.nav.marketplace", "Marketplace"),
169
- path: Q(J, "marketplace"),
170
- icon: /* @__PURE__ */ U(F, { size: 20 }),
184
+ label: Q("healthybowl.nav.marketplace", "Marketplace"),
185
+ path: $(J, "marketplace"),
186
+ icon: /* @__PURE__ */ B(N, { size: 20 }),
171
187
  order: 22,
172
188
  group: "business"
173
189
  },
174
190
  {
175
191
  id: "healthybowl-coop",
176
- label: Z("healthybowl.nav.coop", "Co-operative"),
177
- path: Q(J, "coop"),
178
- icon: /* @__PURE__ */ U(V, { size: 20 }),
192
+ label: Q("healthybowl.nav.coop", "Co-operative"),
193
+ path: $(J, "coop"),
194
+ icon: /* @__PURE__ */ B(R, { size: 20 }),
179
195
  order: 22.5,
180
196
  group: "business"
181
197
  },
182
198
  {
183
199
  id: "healthybowl-financial",
184
- label: Z("healthybowl.nav.financial", "Financial"),
185
- path: Q(J, "financial"),
186
- icon: /* @__PURE__ */ U(g, { size: 20 }),
200
+ label: Q("healthybowl.nav.financial", "Financial"),
201
+ path: $(J, "financial"),
202
+ icon: /* @__PURE__ */ B(m, { size: 20 }),
187
203
  order: 23,
188
204
  group: "business"
189
205
  },
190
206
  {
191
207
  id: "healthybowl-financier",
192
- label: Z("healthybowl.nav.financier", "Financier"),
193
- path: Q(J, "financier"),
194
- icon: /* @__PURE__ */ U(d, { size: 20 }),
208
+ label: Q("healthybowl.nav.financier", "Financier"),
209
+ path: $(J, "financier"),
210
+ icon: /* @__PURE__ */ B(l, { size: 20 }),
195
211
  order: 24,
196
212
  group: "business"
197
213
  },
198
214
  {
199
215
  id: "healthybowl-compliance",
200
- label: Z("healthybowl.nav.compliance", "Compliance"),
201
- path: Q(J, "compliance"),
202
- icon: /* @__PURE__ */ U(P, { size: 20 }),
216
+ label: Q("healthybowl.nav.compliance", "Compliance"),
217
+ path: $(J, "compliance"),
218
+ icon: /* @__PURE__ */ B(M, { size: 20 }),
203
219
  order: 30,
204
220
  group: "compliance"
205
221
  },
206
222
  {
207
223
  id: "healthybowl-traceability",
208
- label: Z("healthybowl.nav.traceability", "Traceability"),
209
- path: Q(J, "traceability"),
210
- icon: /* @__PURE__ */ U(j, { size: 20 }),
224
+ label: Q("healthybowl.nav.traceability", "Traceability"),
225
+ path: $(J, "traceability"),
226
+ icon: /* @__PURE__ */ B(k, { size: 20 }),
211
227
  order: 31,
212
228
  group: "compliance"
213
229
  },
214
230
  {
215
231
  id: "healthybowl-sustainability",
216
- label: Z("healthybowl.nav.sustainability", "Sustainability"),
217
- path: Q(J, "sustainability"),
218
- icon: /* @__PURE__ */ U(C, { size: 20 }),
232
+ label: Q("healthybowl.nav.sustainability", "Sustainability"),
233
+ path: $(J, "sustainability"),
234
+ icon: /* @__PURE__ */ B(x, { size: 20 }),
219
235
  order: 32,
220
236
  group: "compliance"
221
237
  },
222
238
  {
223
239
  id: "healthybowl-sustainability-carbon",
224
- label: Z("healthybowl.nav.sustainabilityCarbon", "Carbon & GHG"),
225
- path: Q(J, "sustainability/carbon"),
226
- icon: /* @__PURE__ */ U(_, { size: 20 }),
240
+ label: Q("healthybowl.nav.sustainabilityCarbon", "Carbon & GHG"),
241
+ path: $(J, "sustainability/carbon"),
242
+ icon: /* @__PURE__ */ B(h, { size: 20 }),
227
243
  order: 32.1,
228
244
  group: "compliance"
229
245
  },
230
246
  {
231
247
  id: "healthybowl-sustainability-soil",
232
- label: Z("healthybowl.nav.sustainabilitySoil", "Soil Carbon"),
233
- path: Q(J, "sustainability/soil-carbon"),
234
- icon: /* @__PURE__ */ U(I, { size: 20 }),
248
+ label: Q("healthybowl.nav.sustainabilitySoil", "Soil Carbon"),
249
+ path: $(J, "sustainability/soil-carbon"),
250
+ icon: /* @__PURE__ */ B(ne, { size: 20 }),
235
251
  order: 32.2,
236
252
  group: "compliance"
237
253
  },
238
254
  {
239
255
  id: "healthybowl-sustainability-credits",
240
- label: Z("healthybowl.nav.sustainabilityCredits", "Carbon Credits"),
241
- path: Q(J, "sustainability/credits"),
242
- icon: /* @__PURE__ */ U(u, { size: 20 }),
256
+ label: Q("healthybowl.nav.sustainabilityCredits", "Carbon Credits"),
257
+ path: $(J, "sustainability/credits"),
258
+ icon: /* @__PURE__ */ B(c, { size: 20 }),
243
259
  order: 32.3,
244
260
  group: "compliance"
245
261
  },
246
262
  {
247
263
  id: "healthybowl-sustainability-eudr",
248
- label: Z("healthybowl.nav.sustainabilityEudr", "EUDR Due-Diligence"),
249
- path: Q(J, "sustainability/eudr"),
250
- icon: /* @__PURE__ */ U(b, { size: 20 }),
264
+ label: Q("healthybowl.nav.sustainabilityEudr", "EUDR Due-Diligence"),
265
+ path: $(J, "sustainability/eudr"),
266
+ icon: /* @__PURE__ */ B(v, { size: 20 }),
251
267
  order: 32.4,
252
268
  group: "compliance"
253
269
  },
254
270
  {
255
271
  id: "healthybowl-schemes",
256
- label: Z("healthybowl.nav.governmentSchemes", "Gov. Schemes"),
257
- path: Q(J, "government-schemes"),
258
- icon: /* @__PURE__ */ U(S, { size: 20 }),
272
+ label: Q("healthybowl.nav.governmentSchemes", "Gov. Schemes"),
273
+ path: $(J, "government-schemes"),
274
+ icon: /* @__PURE__ */ B(b, { size: 20 }),
259
275
  order: 40,
260
276
  group: "support"
261
277
  },
262
278
  {
263
279
  id: "healthybowl-network",
264
- label: Z("healthybowl.nav.network", "Network"),
265
- path: Q(J, "network"),
266
- icon: /* @__PURE__ */ U(B, { size: 20 }),
280
+ label: Q("healthybowl.nav.network", "Network"),
281
+ path: $(J, "network"),
282
+ icon: /* @__PURE__ */ B(L, { size: 20 }),
267
283
  order: 41,
268
284
  group: "support"
269
285
  },
270
286
  {
271
287
  id: "healthybowl-analytics",
272
- label: Z("healthybowl.nav.analytics", "Analytics"),
273
- path: Q(J, "analytics"),
274
- icon: /* @__PURE__ */ U(f, { size: 20 }),
288
+ label: Q("healthybowl.nav.analytics", "Analytics"),
289
+ path: $(J, "analytics"),
290
+ icon: /* @__PURE__ */ B(u, { size: 20 }),
275
291
  order: 42,
276
292
  group: "support"
277
293
  },
278
294
  {
279
295
  id: "healthybowl-advisors",
280
- label: Z("healthybowl.nav.advisors", "My Advisors"),
281
- path: Q(J, "advisors"),
282
- icon: /* @__PURE__ */ U(z, { size: 20 }),
296
+ label: Q("healthybowl.nav.advisors", "My Advisors"),
297
+ path: $(J, "advisors"),
298
+ icon: /* @__PURE__ */ B(I, { size: 20 }),
283
299
  order: 43,
284
300
  group: "support"
285
301
  },
286
302
  {
287
303
  id: "healthybowl-consultant",
288
- label: Z("healthybowl.nav.consultant", "Consultant"),
289
- path: Q(J, "consultant"),
290
- icon: /* @__PURE__ */ U(L, { size: 20 }),
304
+ label: Q("healthybowl.nav.consultant", "Consultant"),
305
+ path: $(J, "consultant"),
306
+ icon: /* @__PURE__ */ B(P, { size: 20 }),
291
307
  order: 44,
292
308
  group: "support"
293
309
  }
294
310
  ]);
295
- }, [K, J]), c(() => {
311
+ }, [K, J]), o(() => {
296
312
  if (q) return q([{
297
313
  id: "healthybowl-status",
298
- label: Z("healthybowl.footer.ready", "HealthyBowl Ready"),
314
+ label: Q("healthybowl.footer.ready", "HealthyBowl Ready"),
299
315
  type: "status",
300
316
  order: 10,
301
317
  section: "left"
302
318
  }]);
303
- }, [q]), /* @__PURE__ */ U(W, {
319
+ }, [q]), /* @__PURE__ */ B(H, {
304
320
  workspaceId: null,
305
321
  gateway: "global",
306
322
  defaultEnabled: !0,
307
- children: /* @__PURE__ */ U(e, {
323
+ children: /* @__PURE__ */ V(e, {
308
324
  ...G,
309
- children: /* @__PURE__ */ U(r, { children: /* @__PURE__ */ U(i, { children: /* @__PURE__ */ U(o, { children: /* @__PURE__ */ U(a, {}) }) }) })
325
+ children: [/* @__PURE__ */ B("style", { children: W }), /* @__PURE__ */ B(r, { children: /* @__PURE__ */ B(i, { children: /* @__PURE__ */ B(te, { children: /* @__PURE__ */ B(ee, {}) }) }) })]
310
326
  })
311
327
  });
312
328
  };
@@ -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 } from '@burdenoff/fe-libs/shared/feature-flags';\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\nexport const HealthyBowlRoot: FC<HealthyBowlRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\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 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 navItems: 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 const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath]);\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]);\n\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <HealthyBowlProvider {...props}>\n <ErrorBoundary>\n <ConfirmProvider>\n <OfflineSyncProvider>\n <HealthyBowlRoutes />\n </OfflineSyncProvider>\n </ConfirmProvider>\n </ErrorBoundary>\n </HealthyBowlProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAoDA,IAAa,KAA6C,MAAU;CAClE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,GAAW,cAAW,GAAS;AAS1C,GAAkB,EAAO;CACzB,IAAM,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAA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GD;IACE,IAAI;IACJ,OAAO,EAAE,2BAA2B,UAAU;IAC9C,MAAM,EAAS,GAAU,UAAU;IACnC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;IACzB,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,6BAA6B,YAAY;IAClD,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,4BAA4B,cAAc;IACnD,MAAM,EAAS,GAAU,WAAW;IACpC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,aAAa;IACpD,MAAM,EAAS,GAAU,aAAa;IACtC,MAAM,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA;IAC/B,OAAO;IACP,OAAO;IACR;GACF,CAOyC;IAEzC,CAAC,GAAkB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAE,4BAA4B,oBAAoB;GACzD,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EAAqB,aAAa;EAAM,SAAQ;EAAS,gBAAgB;YACvE,kBAAC,GAAD;GAAqB,GAAI;aACvB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAqB,CAAA,EACD,CAAA,EACN,CAAA,EACJ,CAAA;GACI,CAAA;EACF,CAAA"}
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 } from '@burdenoff/fe-libs/shared/feature-flags';\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. Arabic is the only RTL language in the shell's supported set\n// today; kept as a set so adding Hebrew/Farsi/Urdu later is a one-line change (BOFF-6119).\nconst RTL_LOCALES = new Set<string>(['ar']);\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\nexport const HealthyBowlRoot: FC<HealthyBowlRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\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 — Arabic (and any future RTL locale) must render right-to-left. HealthyBowl's own\n // components are migrated to logical CSS utilities (physical ml-/pr-/left-/text-left/… → logical\n // ms-/pe-/start-/text-start/…), so setting `dir` makes the whole HB surface mirror correctly.\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 navItems: 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 const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath]);\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]);\n\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\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 </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAsDA,IAAM,IAAc,IAAI,IAAY,CAAC,KAAK,CAAC,EAKrC,IAAsB;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,CACE,KAAK,MAAM,eAAe,IAAI,CA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kB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAE,4BAA4B,oBAAoB;GACzD,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EAAqB,aAAa;EAAM,SAAQ;EAAS,gBAAgB;YACvE,kBAAC,GAAD;GAAqB,GAAI;aAAzB,CAKE,kBAAC,SAAD,EAAA,UAAQ,GAA4B,CAAA,EACpC,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UACE,kBAAC,IAAD,EAAA,UACE,kBAAC,IAAD,EAAqB,CAAA,EACD,CAAA,EACN,CAAA,EACJ,CAAA,CACI;;EACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartCard.js","names":[],"sources":["../../../src/healthybowl/components/ChartCard.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { GlassCard, CardContent, CardDescription, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/helpers';\n\ninterface ChartCardProps {\n title: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Insight-treatment card for charts and dashboard widgets. Wraps the Boff UI 2.0\n * `GlassCard` primitive (glass surface, seam border, soft pop; hover only deepens\n * the shadow — no movement) and lays out a\n * compact header (title / optional description / optional right-aligned actions)\n * above a body slot. Class overrides keep the original compact density\n * (`p-4`, `text-sm` title, `text-xs` description) rather than the primitive's\n * larger defaults, so existing dashboards render unchanged. `className` is\n * forwarded to the outer card so per-call-site grid spans (e.g. `lg:col-span-2`)\n * keep working.\n */\nexport const ChartCard: FC<ChartCardProps> = ({ title, description, actions, children, className }) => {\n return (\n <GlassCard className={cn('border-border-seam p-0', className)}>\n <CardHeader className=\"flex-row items-center justify-between space-y-0 p-4 pb-4\">\n <div className=\"space-y-0.5\">\n <CardTitle className=\"text-sm font-medium text-text-primary\">{title}</CardTitle>\n {description && <CardDescription className=\"text-xs text-text-secondary\">{description}</CardDescription>}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </CardHeader>\n <CardContent className=\"p-4 pt-0\">{children}</CardContent>\n </GlassCard>\n );\n};\n"],"mappings":";;;;AAuBA,IAAa,KAAiC,EAAE,UAAO,gBAAa,YAAS,aAAU,mBAEnF,kBAAC,GAAD;CAAW,WAAW,EAAG,0BAA0B,EAAU;WAA7D,CACE,kBAAC,GAAD;EAAY,WAAU;YAAtB,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,GAAD;IAAW,WAAU;cAAyC;IAAkB,CAAA,EAC/E,KAAe,kBAAC,GAAD;IAAiB,WAAU;cAA+B;IAA8B,CAAA,CACpG;MACL,KAAW,kBAAC,OAAD;GAAK,WAAU;aAA2B;GAAc,CAAA,CACzD;KACb,kBAAC,GAAD;EAAa,WAAU;EAAY;EAAuB,CAAA,CAChD"}
1
+ {"version":3,"file":"ChartCard.js","names":[],"sources":["../../../src/healthybowl/components/ChartCard.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { GlassCard, CardContent, CardDescription, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/helpers';\n\ninterface ChartCardProps {\n title: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Insight-treatment card for charts and dashboard widgets. Wraps the Boff UI 2.0\n * `GlassCard` primitive (glass surface, seam border, soft pop; hover only deepens\n * the shadow — no movement) and lays out a\n * compact header (title / optional description / optional end-aligned actions)\n * above a body slot. Class overrides keep the original compact density\n * (`p-4`, `text-sm` title, `text-xs` description) rather than the primitive's\n * larger defaults, so existing dashboards render unchanged. `className` is\n * forwarded to the outer card so per-call-site grid spans (e.g. `lg:col-span-2`)\n * keep working.\n */\nexport const ChartCard: FC<ChartCardProps> = ({ title, description, actions, children, className }) => {\n return (\n <GlassCard className={cn('border-border-seam p-0', className)}>\n <CardHeader className=\"flex-row items-center justify-between space-y-0 p-4 pb-4\">\n <div className=\"space-y-0.5\">\n <CardTitle className=\"text-sm font-medium text-text-primary\">{title}</CardTitle>\n {description && <CardDescription className=\"text-xs text-text-secondary\">{description}</CardDescription>}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </CardHeader>\n <CardContent className=\"p-4 pt-0\">{children}</CardContent>\n </GlassCard>\n );\n};\n"],"mappings":";;;;AAuBA,IAAa,KAAiC,EAAE,UAAO,gBAAa,YAAS,aAAU,mBAEnF,kBAAC,GAAD;CAAW,WAAW,EAAG,0BAA0B,EAAU;WAA7D,CACE,kBAAC,GAAD;EAAY,WAAU;YAAtB,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,GAAD;IAAW,WAAU;cAAyC;IAAkB,CAAA,EAC/E,KAAe,kBAAC,GAAD;IAAiB,WAAU;cAA+B;IAA8B,CAAA,CACpG;MACL,KAAW,kBAAC,OAAD;GAAK,WAAU;aAA2B;GAAc,CAAA,CACzD;KACb,kBAAC,GAAD;EAAa,WAAU;EAAY;EAAuB,CAAA,CAChD"}
@@ -455,7 +455,7 @@ var y = /* @__PURE__ */ e(s(), 1), me = v`
455
455
  children: C("healthybowl.fieldMap.draftHint", "Click the map to add corners ({{count}} placed) — click the first point or Finish to close.", { count: String(Me) })
456
456
  })
457
457
  ] }), /* @__PURE__ */ g("div", {
458
- className: "ml-auto flex items-center gap-3",
458
+ className: "ms-auto flex items-center gap-3",
459
459
  children: [V != null && /* @__PURE__ */ h("span", {
460
460
  className: "text-xs text-text-secondary",
461
461
  children: C("healthybowl.fieldMap.computedArea", "Area: {{area}} {{unit}}", {
@@ -483,14 +483,14 @@ var y = /* @__PURE__ */ e(s(), 1), me = v`
483
483
  children: [
484
484
  /* @__PURE__ */ g("div", {
485
485
  className: "relative min-w-0 flex-1",
486
- children: [/* @__PURE__ */ h(f, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ h("input", {
486
+ children: [/* @__PURE__ */ h(f, { className: "pointer-events-none absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ h("input", {
487
487
  type: "search",
488
488
  value: G,
489
489
  onChange: (e) => ze(e.target.value),
490
490
  disabled: I !== "ready" || K,
491
491
  placeholder: C("healthybowl.fieldMap.search.placeholder", "Search village, city, region, or lat,lng..."),
492
492
  "aria-label": C("healthybowl.fieldMap.search.label", "Search field map by place or coordinates"),
493
- className: "h-9 w-full rounded-md border border-border-subtle bg-bg-surface py-2 pl-9 pr-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
493
+ className: "h-9 w-full rounded-md border border-border-subtle bg-bg-surface py-2 ps-9 pe-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
494
494
  })]
495
495
  }),
496
496
  /* @__PURE__ */ g(_, {