@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.
- package/dist/healthybowl/HealthyBowlRoot.js +134 -118
- package/dist/healthybowl/HealthyBowlRoot.js.map +1 -1
- package/dist/healthybowl/components/ChartCard.js.map +1 -1
- package/dist/healthybowl/components/FieldMap.js +3 -3
- package/dist/healthybowl/components/FieldMap.js.map +1 -1
- package/dist/healthybowl/components/FilterBar.js +3 -3
- package/dist/healthybowl/components/FilterBar.js.map +1 -1
- package/dist/healthybowl/components/HBEntityImages.js +1 -1
- package/dist/healthybowl/components/HBEntityImages.js.map +1 -1
- package/dist/healthybowl/components/PlanExecutionPanel.js +1 -1
- package/dist/healthybowl/components/PlanExecutionPanel.js.map +1 -1
- package/dist/healthybowl/components/WeatherMap.js +2 -2
- package/dist/healthybowl/components/WeatherMap.js.map +1 -1
- package/dist/healthybowl/hooks/useSharedMarket.js +7 -6
- package/dist/healthybowl/hooks/useSharedMarket.js.map +1 -1
- package/dist/healthybowl/pages/HomePage.js +4 -4
- package/dist/healthybowl/pages/HomePage.js.map +1 -1
- package/dist/healthybowl/pages/agri-inputs/AgriInputsStorePage.js +2 -2
- package/dist/healthybowl/pages/agri-inputs/AgriInputsStorePage.js.map +1 -1
- package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js +2 -2
- package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/catalog/PlantCatalogPage.js +1 -1
- package/dist/healthybowl/pages/catalog/PlantCatalogPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/CertificatesOfOriginPage.js +2 -2
- package/dist/healthybowl/pages/compliance/CertificatesOfOriginPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/ComplianceAlertsPage.js +4 -4
- package/dist/healthybowl/pages/compliance/ComplianceAlertsPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/ComplianceDocumentsPage.js +1 -1
- package/dist/healthybowl/pages/compliance/ComplianceDocumentsPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js +9 -9
- package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js +11 -11
- package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js +3 -3
- package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/IcsGrowerWizardPage.js +1 -1
- package/dist/healthybowl/pages/compliance/IcsGrowerWizardPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/InspectionCalendarPage.js +2 -2
- package/dist/healthybowl/pages/compliance/InspectionCalendarPage.js.map +1 -1
- package/dist/healthybowl/pages/compliance/OrganicCertificationPage.js +2 -2
- package/dist/healthybowl/pages/compliance/OrganicCertificationPage.js.map +1 -1
- package/dist/healthybowl/pages/consultant/ConsultantClientsPage.js +1 -1
- package/dist/healthybowl/pages/consultant/ConsultantClientsPage.js.map +1 -1
- package/dist/healthybowl/pages/consultant/ConsultantDiagnosisPage.js +1 -1
- package/dist/healthybowl/pages/consultant/ConsultantDiagnosisPage.js.map +1 -1
- package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js +2 -2
- package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js.map +1 -1
- package/dist/healthybowl/pages/contacts/ContactsPage.js +2 -2
- package/dist/healthybowl/pages/contacts/ContactsPage.js.map +1 -1
- package/dist/healthybowl/pages/contacts/CsvImportModal.js +1 -1
- package/dist/healthybowl/pages/contacts/CsvImportModal.js.map +1 -1
- package/dist/healthybowl/pages/contracts/ContractsPage.js +8 -8
- package/dist/healthybowl/pages/contracts/ContractsPage.js.map +1 -1
- package/dist/healthybowl/pages/coop/AggregationLotBuilderPage.js +1 -1
- package/dist/healthybowl/pages/coop/AggregationLotBuilderPage.js.map +1 -1
- package/dist/healthybowl/pages/coop/CoopMemberDetailPage.js +1 -1
- package/dist/healthybowl/pages/coop/CoopMemberDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/coop/CoopOverviewPage.js +1 -1
- package/dist/healthybowl/pages/coop/CoopOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/coop/coop-forms/SettleLotModal.js +1 -1
- package/dist/healthybowl/pages/coop/coop-forms/SettleLotModal.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropFieldsPage.js +2 -2
- package/dist/healthybowl/pages/crops/CropFieldsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropHarvestPage.js +3 -3
- package/dist/healthybowl/pages/crops/CropHarvestPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropPlanningPage.js +6 -6
- package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropsPage.js +4 -4
- package/dist/healthybowl/pages/crops/CropsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js +14 -14
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/distribution/PickupLocationsPage.js +2 -2
- package/dist/healthybowl/pages/distribution/PickupLocationsPage.js.map +1 -1
- package/dist/healthybowl/pages/distribution/PickupManifestPage.js +12 -12
- package/dist/healthybowl/pages/distribution/PickupManifestPage.js.map +1 -1
- package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js +2 -2
- package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js.map +1 -1
- package/dist/healthybowl/pages/field-capture/ConflictReviewPage.js +4 -4
- package/dist/healthybowl/pages/field-capture/ConflictReviewPage.js.map +1 -1
- package/dist/healthybowl/pages/field-capture/ObservationLogPage.js +2 -2
- package/dist/healthybowl/pages/field-capture/ObservationLogPage.js.map +1 -1
- package/dist/healthybowl/pages/field-capture/PendingSyncPage.js +1 -1
- package/dist/healthybowl/pages/field-capture/PendingSyncPage.js.map +1 -1
- package/dist/healthybowl/pages/field-capture/SyncHistoryPage.js +2 -2
- package/dist/healthybowl/pages/field-capture/SyncHistoryPage.js.map +1 -1
- package/dist/healthybowl/pages/field-capture/SyncQueuePanel.js +1 -1
- package/dist/healthybowl/pages/field-capture/SyncQueuePanel.js.map +1 -1
- package/dist/healthybowl/pages/fields/FieldMapPage.js +13 -13
- package/dist/healthybowl/pages/fields/FieldMapPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/AccountingIntegrationsPage.js +1 -1
- package/dist/healthybowl/pages/financial/AccountingIntegrationsPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/BankReconciliationPage.js +15 -15
- package/dist/healthybowl/pages/financial/BankReconciliationPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/ChartOfAccountsPage.js +1 -1
- package/dist/healthybowl/pages/financial/ChartOfAccountsPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/CostByCropPage.js +6 -6
- package/dist/healthybowl/pages/financial/CostByCropPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/FarmAccountingPage.js +7 -7
- package/dist/healthybowl/pages/financial/FarmAccountingPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/FinancialDashboardPage.js +4 -4
- package/dist/healthybowl/pages/financial/FinancialDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/FinancialStatementsPage.js +13 -13
- package/dist/healthybowl/pages/financial/FinancialStatementsPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/FinancierAccessPage.js +2 -2
- package/dist/healthybowl/pages/financial/FinancierAccessPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/GeneralLedgerPage.js +3 -3
- package/dist/healthybowl/pages/financial/GeneralLedgerPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/InvoiceManagementPage.js +16 -16
- package/dist/healthybowl/pages/financial/InvoiceManagementPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/JournalEntryModal.js +6 -6
- package/dist/healthybowl/pages/financial/JournalEntryModal.js.map +1 -1
- package/dist/healthybowl/pages/financial/ProfitLossPage.js +1 -1
- package/dist/healthybowl/pages/financial/ProfitLossPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/TransactionsPage.js +2 -2
- package/dist/healthybowl/pages/financial/TransactionsPage.js.map +1 -1
- package/dist/healthybowl/pages/financier/FinancierPage.js +1 -1
- package/dist/healthybowl/pages/financier/FinancierPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/AccessibilitySettingsPage.js +2 -2
- package/dist/healthybowl/pages/government-schemes/AccessibilitySettingsPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +1 -1
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/CommunicationPage.js +2 -2
- package/dist/healthybowl/pages/government-schemes/CommunicationPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js +4 -4
- package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +2 -2
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js +8 -8
- package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js +2 -2
- package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/inputs-insurance/ClaimDetailPage.js +3 -3
- package/dist/healthybowl/pages/inputs-insurance/ClaimDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/inputs-insurance/PmfbyApplyPage.js +1 -1
- package/dist/healthybowl/pages/inputs-insurance/PmfbyApplyPage.js.map +1 -1
- package/dist/healthybowl/pages/inputs-insurance/PolicyClaimsPage.js +1 -1
- package/dist/healthybowl/pages/inputs-insurance/PolicyClaimsPage.js.map +1 -1
- package/dist/healthybowl/pages/irrigation/IrrigationPage.js +2 -2
- package/dist/healthybowl/pages/irrigation/IrrigationPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalDepthPage.js +2 -2
- package/dist/healthybowl/pages/livestock/AnimalDepthPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +6 -6
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/GrazingPage.js +1 -1
- package/dist/healthybowl/pages/livestock/GrazingPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/HerdDepthPage.js +1 -1
- package/dist/healthybowl/pages/livestock/HerdDepthPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/HerdStatsCard.js +9 -9
- package/dist/healthybowl/pages/livestock/HerdStatsCard.js.map +1 -1
- package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js +3 -3
- package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/LivestockImportModal.js +1 -1
- package/dist/healthybowl/pages/livestock/LivestockImportModal.js.map +1 -1
- package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js +1 -1
- package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/WithdrawalCalendarPage.js +1 -1
- package/dist/healthybowl/pages/livestock/WithdrawalCalendarPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/withdrawal/AnimalWithdrawalCard.js +10 -10
- package/dist/healthybowl/pages/livestock/withdrawal/AnimalWithdrawalCard.js.map +1 -1
- package/dist/healthybowl/pages/livestock/withdrawal/status.js +4 -4
- package/dist/healthybowl/pages/livestock/withdrawal/status.js.map +1 -1
- package/dist/healthybowl/pages/market/MarketPricesPage.js +1 -1
- package/dist/healthybowl/pages/market/MarketPricesPage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/CartPage.js +3 -3
- package/dist/healthybowl/pages/marketplace/CartPage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/MarketplacePage.js +9 -9
- package/dist/healthybowl/pages/marketplace/MarketplacePage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/OrdersPage.js +226 -226
- package/dist/healthybowl/pages/marketplace/OrdersPage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/ProductDetailPage.js +2 -2
- package/dist/healthybowl/pages/marketplace/ProductDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/SharedMarketView.js +4 -4
- package/dist/healthybowl/pages/marketplace/SharedMarketView.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/ShipmentTrackingPanel.js +1 -1
- package/dist/healthybowl/pages/marketplace/ShipmentTrackingPanel.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/StoreProduceStrip.js +1 -1
- package/dist/healthybowl/pages/marketplace/StoreProduceStrip.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/WishlistPage.js +4 -4
- package/dist/healthybowl/pages/marketplace/WishlistPage.js.map +1 -1
- package/dist/healthybowl/pages/network/CohortsPage.js +2 -2
- package/dist/healthybowl/pages/network/CohortsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/CommunityPage.js +6 -6
- package/dist/healthybowl/pages/network/CommunityPage.js.map +1 -1
- package/dist/healthybowl/pages/network/EventsPage.js +1 -1
- package/dist/healthybowl/pages/network/EventsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/ExpertsPage.js +2 -2
- package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/MentorsPage.js +12 -12
- package/dist/healthybowl/pages/network/MentorsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/NetworkOverviewPage.js +2 -2
- package/dist/healthybowl/pages/network/NetworkOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/nursery/NurseryProvenancePage.js +2 -2
- package/dist/healthybowl/pages/nursery/NurseryProvenancePage.js.map +1 -1
- package/dist/healthybowl/pages/pest-management/AiPestDetectionPage.js +2 -2
- package/dist/healthybowl/pages/pest-management/AiPestDetectionPage.js.map +1 -1
- package/dist/healthybowl/pages/pest-management/PestOverviewPage.js +2 -2
- package/dist/healthybowl/pages/pest-management/PestOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/production/ProductionPlanningPage.js +2 -2
- package/dist/healthybowl/pages/production/ProductionPlanningPage.js.map +1 -1
- package/dist/healthybowl/pages/production/ProductionSchedulePage.js +3 -3
- package/dist/healthybowl/pages/production/ProductionSchedulePage.js.map +1 -1
- package/dist/healthybowl/pages/products/BatchesPage.js +2 -2
- package/dist/healthybowl/pages/products/BatchesPage.js.map +1 -1
- package/dist/healthybowl/pages/products/InventoryPage.js +2 -2
- package/dist/healthybowl/pages/products/InventoryPage.js.map +1 -1
- package/dist/healthybowl/pages/products/ProductsOverviewPage.js +7 -7
- package/dist/healthybowl/pages/products/ProductsOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/reports-api/ReportsApiPage.js +3 -3
- package/dist/healthybowl/pages/reports-api/ReportsApiPage.js.map +1 -1
- package/dist/healthybowl/pages/satellite/CropHealthAlertsPage.js +6 -6
- package/dist/healthybowl/pages/satellite/CropHealthAlertsPage.js.map +1 -1
- package/dist/healthybowl/pages/satellite/SatelliteCropHealthPage.js +6 -6
- package/dist/healthybowl/pages/satellite/SatelliteCropHealthPage.js.map +1 -1
- package/dist/healthybowl/pages/satellite/SatelliteFieldDetailPage.js +6 -6
- package/dist/healthybowl/pages/satellite/SatelliteFieldDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/satellite/SatelliteSettingsPage.js +2 -2
- package/dist/healthybowl/pages/satellite/SatelliteSettingsPage.js.map +1 -1
- package/dist/healthybowl/pages/satellite/YieldReportPanel.js +3 -3
- package/dist/healthybowl/pages/satellite/YieldReportPanel.js.map +1 -1
- package/dist/healthybowl/pages/satellite/YieldSimulationPanel.js +10 -10
- package/dist/healthybowl/pages/satellite/YieldSimulationPanel.js.map +1 -1
- package/dist/healthybowl/pages/soil/FieldSensorsPage.js +1 -1
- package/dist/healthybowl/pages/soil/FieldSensorsPage.js.map +1 -1
- package/dist/healthybowl/pages/soil/SoilDashboardPage.js +2 -2
- package/dist/healthybowl/pages/soil/SoilDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/soil/SoilRecommendationsPage.js +2 -2
- package/dist/healthybowl/pages/soil/SoilRecommendationsPage.js.map +1 -1
- package/dist/healthybowl/pages/storage/StorageLotDetailPage.js +2 -2
- package/dist/healthybowl/pages/storage/StorageLotDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/storage/StoragePage.js +6 -6
- package/dist/healthybowl/pages/storage/StoragePage.js.map +1 -1
- package/dist/healthybowl/pages/suppliers/SuppliersPage.js +4 -4
- package/dist/healthybowl/pages/suppliers/SuppliersPage.js.map +1 -1
- package/dist/healthybowl/pages/sustainability/SustainabilityOverviewPage.js +11 -11
- package/dist/healthybowl/pages/sustainability/SustainabilityOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/terrace/CareSchedulePage.js +1 -1
- package/dist/healthybowl/pages/terrace/CareSchedulePage.js.map +1 -1
- package/dist/healthybowl/pages/terrace/GardenDashboardPage.js +1 -1
- package/dist/healthybowl/pages/terrace/GardenDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/terrace/MyGardensPage.js +1 -1
- package/dist/healthybowl/pages/terrace/MyGardensPage.js.map +1 -1
- package/dist/healthybowl/pages/terrace/PlantingDetailPage.js +3 -3
- package/dist/healthybowl/pages/terrace/PlantingDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/terrace/PlantingsPage.js +1 -1
- package/dist/healthybowl/pages/terrace/PlantingsPage.js.map +1 -1
- package/dist/healthybowl/pages/terrace/WhatToGrowPage.js +1 -1
- package/dist/healthybowl/pages/terrace/WhatToGrowPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/BatchTrackingPage.js +2 -2
- package/dist/healthybowl/pages/traceability/BatchTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/QRCodesPage.js +4 -4
- package/dist/healthybowl/pages/traceability/QRCodesPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/SupplyChainPage.js +1 -1
- package/dist/healthybowl/pages/traceability/SupplyChainPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/TraceLedgerPage.js +3 -3
- package/dist/healthybowl/pages/traceability/TraceLedgerPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/TraceTrackingPage.js +3 -3
- package/dist/healthybowl/pages/traceability/TraceTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/weather/FrostRiskCalendarPage.js +1 -1
- package/dist/healthybowl/pages/weather/FrostRiskCalendarPage.js.map +1 -1
- package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js +3 -3
- package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js.map +1 -1
- package/dist/healthybowl/pages/weather/WeatherAlertsPage.js +10 -10
- package/dist/healthybowl/pages/weather/WeatherAlertsPage.js.map +1 -1
- package/dist/healthybowl/pages/weather/WeatherForecastPage.js +6 -6
- package/dist/healthybowl/pages/weather/WeatherForecastPage.js.map +1 -1
- package/dist/healthybowl/pages/weather/WeatherOverviewPage.js +6 -6
- package/dist/healthybowl/pages/weather/WeatherOverviewPage.js.map +1 -1
- package/dist/healthybowl/utils/gs1.js.map +1 -1
- 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
|
|
6
|
-
import { OfflineSyncProvider as
|
|
7
|
-
import { useCallback as
|
|
8
|
-
import { useI18n as
|
|
9
|
-
import { Award as
|
|
10
|
-
import { jsx as
|
|
11
|
-
import { FeatureFlagProvider as
|
|
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
|
|
14
|
-
|
|
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 =
|
|
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]),
|
|
20
|
-
return
|
|
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:
|
|
40
|
+
label: Q("healthybowl.nav.dashboard", "Dashboard"),
|
|
25
41
|
path: t(J),
|
|
26
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
33
|
-
path:
|
|
34
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
41
|
-
path:
|
|
42
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
49
|
-
path:
|
|
50
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
57
|
-
path:
|
|
58
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
65
|
-
path:
|
|
66
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
73
|
-
path:
|
|
74
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
81
|
-
path:
|
|
82
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
89
|
-
path:
|
|
90
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
97
|
-
path:
|
|
98
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
105
|
-
path:
|
|
106
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
113
|
-
path:
|
|
114
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
121
|
-
path:
|
|
122
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
129
|
-
path:
|
|
130
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
137
|
-
path:
|
|
138
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
145
|
-
path:
|
|
146
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
153
|
-
path:
|
|
154
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
161
|
-
path:
|
|
162
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
169
|
-
path:
|
|
170
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
177
|
-
path:
|
|
178
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
185
|
-
path:
|
|
186
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
193
|
-
path:
|
|
194
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
201
|
-
path:
|
|
202
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
209
|
-
path:
|
|
210
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
217
|
-
path:
|
|
218
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
225
|
-
path:
|
|
226
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
233
|
-
path:
|
|
234
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
241
|
-
path:
|
|
242
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
249
|
-
path:
|
|
250
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
257
|
-
path:
|
|
258
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
265
|
-
path:
|
|
266
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
273
|
-
path:
|
|
274
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
281
|
-
path:
|
|
282
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
289
|
-
path:
|
|
290
|
-
icon: /* @__PURE__ */
|
|
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]),
|
|
311
|
+
}, [K, J]), o(() => {
|
|
296
312
|
if (q) return q([{
|
|
297
313
|
id: "healthybowl-status",
|
|
298
|
-
label:
|
|
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__ */
|
|
319
|
+
}, [q]), /* @__PURE__ */ B(H, {
|
|
304
320
|
workspaceId: null,
|
|
305
321
|
gateway: "global",
|
|
306
322
|
defaultEnabled: !0,
|
|
307
|
-
children: /* @__PURE__ */
|
|
323
|
+
children: /* @__PURE__ */ V(e, {
|
|
308
324
|
...G,
|
|
309
|
-
children: /* @__PURE__ */
|
|
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,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AAoXtD,QA/WA,QAAgB;AACT,QAyVL,QADgB,EAtVY;GAE1B;IACE,IAAI;IACJ,OAAO,EAAE,6BAA6B,YAAY;IAIlD,MAAM,EAAkB,EAAS;IACjC,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;IACxB,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,wBA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,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,CAC9B,KAAK,IAAI,CACT,OAAO,yBAAyB,EAEtB,KAA6C,MAAU;CAClE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,GAAW,cAAW,GAAS;AAS1C,GAAkB,EAAO;CAKzB,IAAM,IAAqB,EAAY,IAAI,EAAO,GAAG,QAAQ;AAQ7D,SAAgB;EACd,IAAM,IAAK,SAAS,iBACd,IAAW,EAAG,aAAa,MAAM;AAEvC,SADA,EAAG,aAAa,OAAO,EAAI,QACd;AAC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A,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
|
|
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: "
|
|
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
|
|
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
|
|
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(_, {
|