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