@burdenoff/microfe-healthybowl 2026.703.2 → 2026.704.2
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/components/CreateFarmTaskButton.js +105 -0
- package/dist/healthybowl/components/CreateFarmTaskButton.js.map +1 -0
- package/dist/healthybowl/components/index.js +1 -0
- package/dist/healthybowl/pages/GettingStartedPage.js +3 -3
- package/dist/healthybowl/pages/analytics/ExportPage.js +1 -1
- package/dist/healthybowl/pages/analytics/ReportsPage.js +3 -3
- package/dist/healthybowl/pages/compliance/ComplianceAuditsPage.js +4 -4
- package/dist/healthybowl/pages/compliance/ComplianceDocumentsPage.js +3 -3
- package/dist/healthybowl/pages/compliance/OrganicCertificationPage.js +3 -3
- package/dist/healthybowl/pages/consultant/ConsultantDiagnosisPage.js +1 -1
- package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js +1 -1
- package/dist/healthybowl/pages/crops/CropDetailsPage.js +137 -131
- package/dist/healthybowl/pages/crops/CropDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropFieldsPage.js +3 -3
- package/dist/healthybowl/pages/crops/CropHarvestPage.js +3 -3
- package/dist/healthybowl/pages/crops/CropPlanningPage.js +3 -3
- package/dist/healthybowl/pages/crops/CropsPage.js +3 -3
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js +275 -269
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +3 -3
- package/dist/healthybowl/pages/crops/PlanningDetailsPage.js +3 -3
- package/dist/healthybowl/pages/farm/FarmProfilePage.js +3 -3
- package/dist/healthybowl/pages/financial/BudgetManagementPage.js +3 -3
- package/dist/healthybowl/pages/financial/FinancialDashboardPage.js +3 -3
- package/dist/healthybowl/pages/financial/FinancialReportsPage.js +4 -4
- package/dist/healthybowl/pages/financial/FinancierAccessPage.js +1 -1
- package/dist/healthybowl/pages/financial/InvoiceManagementPage.js +3 -3
- package/dist/healthybowl/pages/financial/TransactionsPage.js +3 -3
- package/dist/healthybowl/pages/government-schemes/AccessibilitySettingsPage.js +1 -1
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +4 -4
- package/dist/healthybowl/pages/government-schemes/CommunicationPage.js +3 -3
- package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js +3 -3
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +3 -3
- package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js +4 -4
- package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js +3 -3
- package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js +3 -3
- package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +64 -58
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalRegistryPage.js +3 -3
- package/dist/healthybowl/pages/livestock/BreedingManagementPage.js +3 -3
- package/dist/healthybowl/pages/livestock/FeedManagementPage.js +3 -3
- package/dist/healthybowl/pages/livestock/HealthRecordsPage.js +3 -3
- package/dist/healthybowl/pages/livestock/ProductionTrackingPage.js +3 -3
- package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js +4 -4
- package/dist/healthybowl/pages/marketplace/CartPage.js +4 -4
- package/dist/healthybowl/pages/marketplace/MarketplacePage.js +5 -5
- package/dist/healthybowl/pages/marketplace/OrdersPage.js +5 -5
- package/dist/healthybowl/pages/marketplace/ProductDetailPage.js +4 -4
- package/dist/healthybowl/pages/marketplace/ProductDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/WishlistPage.js +4 -4
- package/dist/healthybowl/pages/network/CohortsPage.js +1 -1
- package/dist/healthybowl/pages/network/CommunityPage.js +1 -1
- package/dist/healthybowl/pages/network/EventsPage.js +4 -4
- package/dist/healthybowl/pages/network/ExpertsPage.js +4 -4
- package/dist/healthybowl/pages/network/MentorsPage.js +4 -4
- package/dist/healthybowl/pages/network/NetworkOverviewPage.js +3 -3
- package/dist/healthybowl/pages/pest-management/PestIssuesPage.js +207 -193
- package/dist/healthybowl/pages/pest-management/PestIssuesPage.js.map +1 -1
- package/dist/healthybowl/pages/pest-management/TreatmentLibraryPage.js +3 -3
- package/dist/healthybowl/pages/production/RecipeManagementPage.js +3 -3
- package/dist/healthybowl/pages/products/BatchesPage.js +3 -3
- package/dist/healthybowl/pages/products/InventoryPage.js +3 -3
- package/dist/healthybowl/pages/products/ProductsOverviewPage.js +3 -3
- package/dist/healthybowl/pages/soil/SoilTestsPage.js +3 -3
- package/dist/healthybowl/pages/tasks/TasksPage.js +67 -22
- package/dist/healthybowl/pages/tasks/TasksPage.js.map +1 -1
- package/dist/healthybowl/pages/tasks/useCanManageTasks.js +44 -0
- package/dist/healthybowl/pages/tasks/useCanManageTasks.js.map +1 -0
- package/dist/healthybowl/pages/tasks/useFarmTaskLabels.js +100 -0
- package/dist/healthybowl/pages/tasks/useFarmTaskLabels.js.map +1 -0
- package/dist/healthybowl/pages/traceability/BatchTrackingPage.js +3 -3
- package/dist/healthybowl/pages/traceability/QRCodesPage.js +3 -3
- package/dist/healthybowl/pages/weather/WeatherAlertsPage.js +3 -3
- package/dist/healthybowl/pages/weather/WeatherHistoryPage.js +3 -3
- package/dist/healthybowl/pages/weather/WeatherOverviewPage.js +4 -4
- package/dist/node_modules/@burdenoff/planmagnet-fe-sdk/dist/index.js +1414 -919
- package/dist/node_modules/@burdenoff/planmagnet-fe-sdk/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,16 +11,17 @@ import { PageLoader as ae } from "../../components/PageLoader.js";
|
|
|
11
11
|
import { Modal as oe } from "../../components/Modal.js";
|
|
12
12
|
import { HBEntityTags as se } from "../../components/HBEntityTags.js";
|
|
13
13
|
import { HBEntityImages as i } from "../../components/HBEntityImages.js";
|
|
14
|
+
import { useToast as ce } from "../../hooks/useToast.js";
|
|
15
|
+
import { CreateFarmTaskButton as le } from "../../components/CreateFarmTaskButton.js";
|
|
14
16
|
import "../../components/index.js";
|
|
15
|
-
import { useHealthyBowlData as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { Button as g, GlassCard as xe, Select as Se, SelectContent as Ce, SelectItem as _, SelectTrigger as we, SelectValue as Te } from "@burdenoff/fe-libs/ui";
|
|
17
|
+
import { useHealthyBowlData as a } from "../../hooks/useHealthyBowlData.js";
|
|
18
|
+
import { isNative as o, nativeNotify as s, nativeToast as c } from "../../../utils/nativeBridge.js";
|
|
19
|
+
import { useEffect as ue, useState as l } from "react";
|
|
20
|
+
import { useI18n as de } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
21
|
+
import { AlertTriangle as fe, ArrowLeft as pe, Calendar as u, Droplets as me, Edit as he, Leaf as ge, MapPin as d, Sprout as f, Sun as _e, Trash2 as ve, TrendingUp as p } from "lucide-react";
|
|
22
|
+
import { useNavigate as ye, useParams as be } from "react-router-dom";
|
|
23
|
+
import { Fragment as xe, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
24
|
+
import { Button as g, GlassCard as Se, Select as Ce, SelectContent as we, SelectItem as _, SelectTrigger as Te, SelectValue as Ee } from "@burdenoff/fe-libs/ui";
|
|
24
25
|
//#region src/healthybowl/pages/crops/CropDetailsPage.tsx
|
|
25
26
|
var v = (e) => {
|
|
26
27
|
switch (e) {
|
|
@@ -29,7 +30,7 @@ var v = (e) => {
|
|
|
29
30
|
case "fair": return "warning";
|
|
30
31
|
default: return "error";
|
|
31
32
|
}
|
|
32
|
-
},
|
|
33
|
+
}, y = (e) => {
|
|
33
34
|
switch (e) {
|
|
34
35
|
case "harvest_ready": return "success";
|
|
35
36
|
case "growing":
|
|
@@ -37,76 +38,81 @@ var v = (e) => {
|
|
|
37
38
|
case "planted": return "muted";
|
|
38
39
|
default: return "default";
|
|
39
40
|
}
|
|
40
|
-
},
|
|
41
|
+
}, b = [
|
|
41
42
|
"Seedling",
|
|
42
43
|
"Vegetative",
|
|
43
44
|
"Flowering",
|
|
44
45
|
"Fruiting",
|
|
45
46
|
"Mature"
|
|
46
|
-
],
|
|
47
|
-
let { t:
|
|
48
|
-
Seedling:
|
|
49
|
-
Vegetative:
|
|
50
|
-
Flowering:
|
|
51
|
-
Fruiting:
|
|
52
|
-
Mature:
|
|
53
|
-
}, { cropId: O } =
|
|
54
|
-
|
|
55
|
-
let e =
|
|
56
|
-
e &&
|
|
57
|
-
}, [
|
|
47
|
+
], x = () => {
|
|
48
|
+
let { t: x } = de(), S = re(), { crops: C, fields: w, errors: T, loadings: E, updateCrop: D, deleteCrop: De, refetch: Oe } = a(), ke = {
|
|
49
|
+
Seedling: x("healthybowl.crops.detail.stages.seedling", "Seedling"),
|
|
50
|
+
Vegetative: x("healthybowl.crops.detail.stages.vegetative", "Vegetative"),
|
|
51
|
+
Flowering: x("healthybowl.crops.detail.stages.flowering", "Flowering"),
|
|
52
|
+
Fruiting: x("healthybowl.crops.detail.stages.fruiting", "Fruiting"),
|
|
53
|
+
Mature: x("healthybowl.crops.detail.stages.mature", "Mature")
|
|
54
|
+
}, { cropId: O } = be(), k = ye(), { buildPath: A } = t(), { toasts: Ae, toast: j, dismiss: je } = ce(), [Me, M] = l(!1), [N, P] = l(!1), [F, Ne] = l(() => C.find((e) => e.id === O));
|
|
55
|
+
ue(() => {
|
|
56
|
+
let e = C.find((e) => e.id === O);
|
|
57
|
+
e && Ne(e);
|
|
58
|
+
}, [C, O]);
|
|
58
59
|
let [I, L] = l(""), [R, z] = l(""), [B, V] = l(""), [H, U] = l(""), [W, G] = l(""), [K, q] = l("good"), [J, Y] = l([]), X = () => {
|
|
59
60
|
F && (L(F.name), z(F.variety), V(F.category), U(String(F.yieldEstimate)), G(F.expectedHarvestDate), q(F.healthStatus), Y(F.imageIds ?? []), M(!0));
|
|
60
61
|
};
|
|
61
62
|
if (!F) return /* @__PURE__ */ m(n, {
|
|
62
|
-
title:
|
|
63
|
-
children:
|
|
64
|
-
title:
|
|
65
|
-
description:
|
|
63
|
+
title: x("healthybowl.crops.detail.notFound.pageTitle", "Crop Not Found"),
|
|
64
|
+
children: E.crops ? /* @__PURE__ */ m(ae, {}) : T.crops ? /* @__PURE__ */ m(te, { onRetry: Oe }) : /* @__PURE__ */ m(ee, {
|
|
65
|
+
title: x("healthybowl.crops.detail.notFound.title", "Crop not found"),
|
|
66
|
+
description: x("healthybowl.crops.detail.notFound.description", "The crop you are looking for does not exist."),
|
|
66
67
|
action: /* @__PURE__ */ m(g, {
|
|
67
68
|
onClick: () => k(A("crops")),
|
|
68
|
-
children:
|
|
69
|
+
children: x("healthybowl.crops.detail.actions.backToCrops", "Back to Crops")
|
|
69
70
|
})
|
|
70
71
|
})
|
|
71
72
|
});
|
|
72
|
-
let Z =
|
|
73
|
+
let Z = w.find((e) => e.id === F.field || e.name === F.fieldName), Q = b.indexOf(F.growthStage), $ = F.daysToHarvest, Pe = Z ? Math.round(F.yieldEstimate / Z.area) : F.yieldEstimate;
|
|
73
74
|
return F ? /* @__PURE__ */ h(n, {
|
|
74
75
|
title: F.name,
|
|
75
|
-
description:
|
|
76
|
+
description: x("healthybowl.crops.detail.headerSubtitle", "{{variety}} - {{category}}", {
|
|
76
77
|
variety: F.variety,
|
|
77
78
|
category: F.category
|
|
78
79
|
}),
|
|
79
80
|
actions: /* @__PURE__ */ h("div", {
|
|
80
81
|
className: "flex items-center gap-2",
|
|
81
82
|
children: [
|
|
83
|
+
/* @__PURE__ */ m(le, {
|
|
84
|
+
entityType: "CROP",
|
|
85
|
+
entityId: F.id,
|
|
86
|
+
entityLabel: F.name
|
|
87
|
+
}),
|
|
82
88
|
/* @__PURE__ */ h(g, {
|
|
83
89
|
variant: "outline",
|
|
84
90
|
onClick: X,
|
|
85
91
|
children: [
|
|
86
|
-
/* @__PURE__ */ m(
|
|
92
|
+
/* @__PURE__ */ m(he, { className: "h-4 w-4" }),
|
|
87
93
|
" ",
|
|
88
|
-
|
|
94
|
+
x("healthybowl.common.edit", "Edit")
|
|
89
95
|
]
|
|
90
96
|
}),
|
|
91
97
|
/* @__PURE__ */ h(g, {
|
|
92
98
|
variant: "destructive",
|
|
93
99
|
onClick: async () => {
|
|
94
|
-
if (F && await
|
|
95
|
-
title:
|
|
96
|
-
message:
|
|
97
|
-
okButtonTitle:
|
|
98
|
-
cancelButtonTitle:
|
|
100
|
+
if (F && await S({
|
|
101
|
+
title: x("healthybowl.crops.detail.delete.confirmTitle", "Delete crop?"),
|
|
102
|
+
message: x("healthybowl.crops.detail.delete.confirmMessage", "{{name}} will be permanently removed.", { name: F.name }),
|
|
103
|
+
okButtonTitle: x("healthybowl.common.delete", "Delete"),
|
|
104
|
+
cancelButtonTitle: x("healthybowl.common.cancel", "Cancel")
|
|
99
105
|
}) !== !1) {
|
|
100
106
|
P(!0);
|
|
101
107
|
try {
|
|
102
|
-
await
|
|
103
|
-
title:
|
|
104
|
-
description:
|
|
108
|
+
await De(F.id), j({
|
|
109
|
+
title: x("healthybowl.crops.detail.toast.deleted.title", "Crop deleted"),
|
|
110
|
+
description: x("healthybowl.crops.detail.toast.deleted.description", "{{name}} has been removed.", { name: F.name }),
|
|
105
111
|
variant: "success"
|
|
106
|
-
}),
|
|
112
|
+
}), o() && (c(x("healthybowl.crops.detail.toast.deleted.title", "Crop deleted")), s("success")), k(A("crops"));
|
|
107
113
|
} catch (e) {
|
|
108
114
|
j({
|
|
109
|
-
title:
|
|
115
|
+
title: x("healthybowl.crops.detail.toast.deleteFailed.title", "Delete failed"),
|
|
110
116
|
description: String(e),
|
|
111
117
|
variant: "error"
|
|
112
118
|
}), P(!1);
|
|
@@ -115,18 +121,18 @@ var v = (e) => {
|
|
|
115
121
|
},
|
|
116
122
|
disabled: N,
|
|
117
123
|
children: [
|
|
118
|
-
/* @__PURE__ */ m(
|
|
124
|
+
/* @__PURE__ */ m(ve, { className: "h-4 w-4" }),
|
|
119
125
|
" ",
|
|
120
|
-
|
|
126
|
+
x("healthybowl.common.delete", "Delete")
|
|
121
127
|
]
|
|
122
128
|
}),
|
|
123
129
|
/* @__PURE__ */ h(g, {
|
|
124
130
|
variant: "outline",
|
|
125
131
|
onClick: () => k(A("crops")),
|
|
126
132
|
children: [
|
|
127
|
-
/* @__PURE__ */ m(
|
|
133
|
+
/* @__PURE__ */ m(pe, { className: "h-4 w-4" }),
|
|
128
134
|
" ",
|
|
129
|
-
|
|
135
|
+
x("healthybowl.common.back", "Back")
|
|
130
136
|
]
|
|
131
137
|
})
|
|
132
138
|
]
|
|
@@ -135,27 +141,27 @@ var v = (e) => {
|
|
|
135
141
|
nextSteps: [
|
|
136
142
|
{
|
|
137
143
|
id: "edit",
|
|
138
|
-
label:
|
|
139
|
-
description:
|
|
144
|
+
label: x("healthybowl.crops.detail.nextSteps.edit.label", "Update this crop"),
|
|
145
|
+
description: x("healthybowl.crops.detail.nextSteps.edit.desc", "Keep its status, health and details accurate as it grows."),
|
|
140
146
|
onClick: X
|
|
141
147
|
},
|
|
142
148
|
{
|
|
143
149
|
id: "fields",
|
|
144
|
-
label:
|
|
145
|
-
description:
|
|
150
|
+
label: x("healthybowl.crops.detail.nextSteps.fields.label", "Check the field it grows in"),
|
|
151
|
+
description: x("healthybowl.crops.detail.nextSteps.fields.desc", "Review soil, irrigation and conditions for this crop’s field."),
|
|
146
152
|
href: A("crops/fields")
|
|
147
153
|
},
|
|
148
154
|
{
|
|
149
155
|
id: "harvest",
|
|
150
|
-
label:
|
|
151
|
-
description:
|
|
156
|
+
label: x("healthybowl.crops.detail.nextSteps.harvest.label", "Record a harvest"),
|
|
157
|
+
description: x("healthybowl.crops.detail.nextSteps.harvest.desc", "Log yield and quality once this crop is ready to pick."),
|
|
152
158
|
href: A("crops/harvest")
|
|
153
159
|
}
|
|
154
160
|
],
|
|
155
161
|
nextStepsKey: "healthybowl-crop-detail",
|
|
156
162
|
children: [
|
|
157
163
|
/* @__PURE__ */ m(ie, { items: [{
|
|
158
|
-
label:
|
|
164
|
+
label: x("healthybowl.crops.detail.breadcrumb.crops", "Crops"),
|
|
159
165
|
href: A("crops")
|
|
160
166
|
}, { label: F.name }] }),
|
|
161
167
|
/* @__PURE__ */ h("div", {
|
|
@@ -163,7 +169,7 @@ var v = (e) => {
|
|
|
163
169
|
children: [
|
|
164
170
|
/* @__PURE__ */ m(r, {
|
|
165
171
|
label: (F.status ?? "unknown").replace("_", " "),
|
|
166
|
-
variant:
|
|
172
|
+
variant: y(F.status ?? "unknown"),
|
|
167
173
|
dot: !0
|
|
168
174
|
}),
|
|
169
175
|
/* @__PURE__ */ m(r, {
|
|
@@ -172,7 +178,7 @@ var v = (e) => {
|
|
|
172
178
|
dot: !0
|
|
173
179
|
}),
|
|
174
180
|
F.organicCertified && /* @__PURE__ */ m(r, {
|
|
175
|
-
label:
|
|
181
|
+
label: x("healthybowl.crops.detail.badge.organicCertified", "Organic Certified"),
|
|
176
182
|
variant: "success"
|
|
177
183
|
}),
|
|
178
184
|
/* @__PURE__ */ m(r, {
|
|
@@ -199,16 +205,16 @@ var v = (e) => {
|
|
|
199
205
|
children: [/* @__PURE__ */ h("div", {
|
|
200
206
|
className: "space-y-6 lg:col-span-2",
|
|
201
207
|
children: [
|
|
202
|
-
/* @__PURE__ */ h(
|
|
208
|
+
/* @__PURE__ */ h(Se, {
|
|
203
209
|
treatment: "glass",
|
|
204
210
|
glow: !0,
|
|
205
211
|
className: "border-border-seam p-6",
|
|
206
212
|
children: [/* @__PURE__ */ h("h3", {
|
|
207
213
|
className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
208
214
|
children: [
|
|
209
|
-
/* @__PURE__ */ m(
|
|
215
|
+
/* @__PURE__ */ m(_e, { className: "h-4 w-4 text-warning" }),
|
|
210
216
|
" ",
|
|
211
|
-
|
|
217
|
+
x("healthybowl.crops.detail.overview.title", "Crop Overview")
|
|
212
218
|
]
|
|
213
219
|
}), /* @__PURE__ */ m("div", {
|
|
214
220
|
className: "grid grid-cols-2 gap-4 md:grid-cols-4",
|
|
@@ -216,25 +222,25 @@ var v = (e) => {
|
|
|
216
222
|
{
|
|
217
223
|
key: "category",
|
|
218
224
|
icon: f,
|
|
219
|
-
label:
|
|
225
|
+
label: x("healthybowl.crops.detail.overview.category", "Category"),
|
|
220
226
|
value: F.category
|
|
221
227
|
},
|
|
222
228
|
{
|
|
223
229
|
key: "season",
|
|
224
230
|
icon: u,
|
|
225
|
-
label:
|
|
231
|
+
label: x("healthybowl.crops.detail.overview.season", "Season"),
|
|
226
232
|
value: F.season
|
|
227
233
|
},
|
|
228
234
|
{
|
|
229
235
|
key: "growthStage",
|
|
230
|
-
icon:
|
|
231
|
-
label:
|
|
236
|
+
icon: ge,
|
|
237
|
+
label: x("healthybowl.crops.detail.overview.growthStage", "Growth Stage"),
|
|
232
238
|
value: F.growthStage
|
|
233
239
|
},
|
|
234
240
|
{
|
|
235
241
|
key: "field",
|
|
236
242
|
icon: d,
|
|
237
|
-
label:
|
|
243
|
+
label: x("healthybowl.crops.detail.overview.field", "Field"),
|
|
238
244
|
value: F.fieldName
|
|
239
245
|
}
|
|
240
246
|
].map(({ key: e, icon: t, label: n, value: r }) => /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("div", {
|
|
@@ -256,21 +262,21 @@ var v = (e) => {
|
|
|
256
262
|
children: [
|
|
257
263
|
/* @__PURE__ */ m(d, { className: "h-4 w-4 text-success" }),
|
|
258
264
|
" ",
|
|
259
|
-
|
|
265
|
+
x("healthybowl.crops.detail.fieldDetails.title", "Field Details")
|
|
260
266
|
]
|
|
261
267
|
}), /* @__PURE__ */ h("div", {
|
|
262
268
|
className: "grid grid-cols-2 gap-4 md:grid-cols-4",
|
|
263
269
|
children: [
|
|
264
270
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("span", {
|
|
265
271
|
className: "text-xs text-text-secondary",
|
|
266
|
-
children:
|
|
272
|
+
children: x("healthybowl.crops.detail.fieldDetails.field", "Field")
|
|
267
273
|
}), /* @__PURE__ */ m("p", {
|
|
268
274
|
className: "text-sm font-semibold text-text-primary",
|
|
269
275
|
children: Z.name
|
|
270
276
|
})] }),
|
|
271
277
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("span", {
|
|
272
278
|
className: "text-xs text-text-secondary",
|
|
273
|
-
children:
|
|
279
|
+
children: x("healthybowl.crops.detail.fieldDetails.area", "Area")
|
|
274
280
|
}), /* @__PURE__ */ h("p", {
|
|
275
281
|
className: "text-sm font-semibold text-text-primary",
|
|
276
282
|
children: [
|
|
@@ -281,14 +287,14 @@ var v = (e) => {
|
|
|
281
287
|
})] }),
|
|
282
288
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("span", {
|
|
283
289
|
className: "text-xs text-text-secondary",
|
|
284
|
-
children:
|
|
290
|
+
children: x("healthybowl.crops.detail.fieldDetails.soilType", "Soil Type")
|
|
285
291
|
}), /* @__PURE__ */ m("p", {
|
|
286
292
|
className: "text-sm font-semibold text-text-primary",
|
|
287
293
|
children: Z.soilType
|
|
288
294
|
})] }),
|
|
289
295
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("span", {
|
|
290
296
|
className: "text-xs text-text-secondary",
|
|
291
|
-
children:
|
|
297
|
+
children: x("healthybowl.crops.detail.fieldDetails.irrigation", "Irrigation")
|
|
292
298
|
}), /* @__PURE__ */ m("p", {
|
|
293
299
|
className: "text-sm font-semibold text-text-primary",
|
|
294
300
|
children: Z.irrigationType
|
|
@@ -304,20 +310,20 @@ var v = (e) => {
|
|
|
304
310
|
children: [
|
|
305
311
|
/* @__PURE__ */ m(u, { className: "h-4 w-4 text-info" }),
|
|
306
312
|
" ",
|
|
307
|
-
|
|
313
|
+
x("healthybowl.crops.detail.timeline.title", "Timeline")
|
|
308
314
|
]
|
|
309
315
|
}),
|
|
310
316
|
/* @__PURE__ */ h("div", {
|
|
311
317
|
className: "grid grid-cols-1 gap-4 md:grid-cols-2",
|
|
312
318
|
children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("span", {
|
|
313
319
|
className: "text-xs text-text-secondary",
|
|
314
|
-
children:
|
|
320
|
+
children: x("healthybowl.crops.detail.timeline.plantedOn", "Planted On")
|
|
315
321
|
}), /* @__PURE__ */ m("p", {
|
|
316
322
|
className: "text-sm font-semibold text-text-primary",
|
|
317
323
|
children: e(F.plantingDate)
|
|
318
324
|
})] }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("span", {
|
|
319
325
|
className: "text-xs text-text-secondary",
|
|
320
|
-
children:
|
|
326
|
+
children: x("healthybowl.crops.detail.timeline.expectedHarvest", "Expected Harvest")
|
|
321
327
|
}), /* @__PURE__ */ m("p", {
|
|
322
328
|
className: "text-sm font-semibold text-text-primary",
|
|
323
329
|
children: e(F.expectedHarvestDate)
|
|
@@ -332,17 +338,17 @@ var v = (e) => {
|
|
|
332
338
|
children: [
|
|
333
339
|
/* @__PURE__ */ m("span", {
|
|
334
340
|
className: "font-bold",
|
|
335
|
-
children:
|
|
341
|
+
children: x("healthybowl.crops.detail.timeline.daysCount", "{{count}} days", { count: $ })
|
|
336
342
|
}),
|
|
337
343
|
" ",
|
|
338
|
-
|
|
344
|
+
x("healthybowl.crops.detail.timeline.untilHarvest", "until expected harvest")
|
|
339
345
|
]
|
|
340
346
|
})
|
|
341
347
|
}) : /* @__PURE__ */ m("div", {
|
|
342
348
|
className: "rounded-lg bg-success-subtle p-3",
|
|
343
349
|
children: /* @__PURE__ */ m("p", {
|
|
344
350
|
className: "text-sm font-bold text-success",
|
|
345
|
-
children:
|
|
351
|
+
children: x("healthybowl.crops.detail.timeline.readyForHarvest", "Ready for harvest!")
|
|
346
352
|
})
|
|
347
353
|
})
|
|
348
354
|
})
|
|
@@ -355,7 +361,7 @@ var v = (e) => {
|
|
|
355
361
|
className: "flex items-center justify-between",
|
|
356
362
|
children: [/* @__PURE__ */ m("h3", {
|
|
357
363
|
className: "text-sm font-semibold text-text-primary",
|
|
358
|
-
children:
|
|
364
|
+
children: x("healthybowl.crops.detail.growthProgress.title", "Growth Progress")
|
|
359
365
|
}), /* @__PURE__ */ h("span", {
|
|
360
366
|
className: "text-lg font-bold text-text-primary",
|
|
361
367
|
children: [F.progress, "%"]
|
|
@@ -372,10 +378,10 @@ var v = (e) => {
|
|
|
372
378
|
className: "mt-6",
|
|
373
379
|
children: [/* @__PURE__ */ m("h4", {
|
|
374
380
|
className: "mb-3 text-xs font-medium text-text-secondary",
|
|
375
|
-
children:
|
|
381
|
+
children: x("healthybowl.crops.detail.growthProgress.stageLabel", "Growth Stage")
|
|
376
382
|
}), /* @__PURE__ */ m("div", {
|
|
377
383
|
className: "flex items-center",
|
|
378
|
-
children:
|
|
384
|
+
children: b.map((e, t) => /* @__PURE__ */ h("div", {
|
|
379
385
|
className: "flex flex-1 flex-col items-center gap-1.5",
|
|
380
386
|
children: [/* @__PURE__ */ h("div", {
|
|
381
387
|
className: "flex w-full items-center",
|
|
@@ -388,11 +394,11 @@ var v = (e) => {
|
|
|
388
394
|
children: /* @__PURE__ */ m("div", { className: "h-1.5 w-1.5 rounded-full bg-primary-foreground" })
|
|
389
395
|
})
|
|
390
396
|
}),
|
|
391
|
-
/* @__PURE__ */ m("div", { className: `h-0.5 flex-1 ${t ===
|
|
397
|
+
/* @__PURE__ */ m("div", { className: `h-0.5 flex-1 ${t === b.length - 1 ? "bg-transparent" : t < Q ? "bg-action-primary-bg" : "bg-bg-sunken"}` })
|
|
392
398
|
]
|
|
393
399
|
}), /* @__PURE__ */ m("span", {
|
|
394
400
|
className: `text-center text-xs ${t <= Q ? "font-medium text-text-primary" : "text-text-secondary"}`,
|
|
395
|
-
children:
|
|
401
|
+
children: ke[e] ?? e
|
|
396
402
|
})]
|
|
397
403
|
}, e))
|
|
398
404
|
})]
|
|
@@ -408,7 +414,7 @@ var v = (e) => {
|
|
|
408
414
|
children: [
|
|
409
415
|
/* @__PURE__ */ m("h3", {
|
|
410
416
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
411
|
-
children:
|
|
417
|
+
children: x("healthybowl.crops.detail.currentStatus.title", "Current Status")
|
|
412
418
|
}),
|
|
413
419
|
/* @__PURE__ */ h("div", {
|
|
414
420
|
className: "space-y-3",
|
|
@@ -417,7 +423,7 @@ var v = (e) => {
|
|
|
417
423
|
className: "flex items-center justify-between",
|
|
418
424
|
children: [/* @__PURE__ */ m("span", {
|
|
419
425
|
className: "text-xs text-text-secondary",
|
|
420
|
-
children:
|
|
426
|
+
children: x("healthybowl.crops.detail.currentStatus.health", "Health")
|
|
421
427
|
}), /* @__PURE__ */ m(r, {
|
|
422
428
|
label: F.healthStatus,
|
|
423
429
|
variant: v(F.healthStatus)
|
|
@@ -427,7 +433,7 @@ var v = (e) => {
|
|
|
427
433
|
className: "flex items-center justify-between",
|
|
428
434
|
children: [/* @__PURE__ */ m("span", {
|
|
429
435
|
className: "text-xs text-text-secondary",
|
|
430
|
-
children:
|
|
436
|
+
children: x("healthybowl.crops.detail.currentStatus.growthStage", "Growth Stage")
|
|
431
437
|
}), /* @__PURE__ */ m("span", {
|
|
432
438
|
className: "text-xs font-medium text-text-primary",
|
|
433
439
|
children: F.growthStage
|
|
@@ -437,10 +443,10 @@ var v = (e) => {
|
|
|
437
443
|
className: "flex items-center justify-between",
|
|
438
444
|
children: [/* @__PURE__ */ m("span", {
|
|
439
445
|
className: "text-xs text-text-secondary",
|
|
440
|
-
children:
|
|
446
|
+
children: x("healthybowl.crops.detail.currentStatus.organic", "Organic")
|
|
441
447
|
}), /* @__PURE__ */ m("span", {
|
|
442
448
|
className: "text-xs font-medium text-text-primary",
|
|
443
|
-
children: F.organicCertified ?
|
|
449
|
+
children: F.organicCertified ? x("healthybowl.common.yes", "Yes") : x("healthybowl.common.no", "No")
|
|
444
450
|
})]
|
|
445
451
|
})
|
|
446
452
|
]
|
|
@@ -449,9 +455,9 @@ var v = (e) => {
|
|
|
449
455
|
className: "mt-3 rounded-lg bg-warning/10 p-3",
|
|
450
456
|
children: /* @__PURE__ */ h("div", {
|
|
451
457
|
className: "flex items-start gap-2",
|
|
452
|
-
children: [/* @__PURE__ */ m(
|
|
458
|
+
children: [/* @__PURE__ */ m(fe, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-warning" }), /* @__PURE__ */ m("p", {
|
|
453
459
|
className: "text-xs text-warning",
|
|
454
|
-
children:
|
|
460
|
+
children: x("healthybowl.crops.detail.currentStatus.attentionWarning", "This crop needs attention. Check for potential issues.")
|
|
455
461
|
})]
|
|
456
462
|
})
|
|
457
463
|
})
|
|
@@ -464,7 +470,7 @@ var v = (e) => {
|
|
|
464
470
|
children: [
|
|
465
471
|
/* @__PURE__ */ m(p, { className: "h-4 w-4 text-success" }),
|
|
466
472
|
" ",
|
|
467
|
-
|
|
473
|
+
x("healthybowl.crops.detail.yield.title", "Yield Estimation")
|
|
468
474
|
]
|
|
469
475
|
}), /* @__PURE__ */ h("div", {
|
|
470
476
|
className: "text-center",
|
|
@@ -475,12 +481,12 @@ var v = (e) => {
|
|
|
475
481
|
}),
|
|
476
482
|
/* @__PURE__ */ m("p", {
|
|
477
483
|
className: "text-xs text-text-secondary",
|
|
478
|
-
children:
|
|
484
|
+
children: x("healthybowl.crops.detail.yield.expected", "{{unit}} expected", { unit: F.yieldUnit ?? x("healthybowl.crops.detail.yield.unitsFallback", "units") })
|
|
479
485
|
}),
|
|
480
486
|
Z && /* @__PURE__ */ m("p", {
|
|
481
487
|
className: "mt-2 text-xs text-text-secondary",
|
|
482
|
-
children:
|
|
483
|
-
amount:
|
|
488
|
+
children: x("healthybowl.crops.detail.yield.perUnit", "~{{amount}} {{unit}} per {{denominator}}", {
|
|
489
|
+
amount: Pe,
|
|
484
490
|
unit: F.yieldUnit,
|
|
485
491
|
denominator: (Z.unit ?? "").replace(/s$/, "")
|
|
486
492
|
})
|
|
@@ -492,7 +498,7 @@ var v = (e) => {
|
|
|
492
498
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
493
499
|
children: [/* @__PURE__ */ m("h3", {
|
|
494
500
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
495
|
-
children:
|
|
501
|
+
children: x("healthybowl.crops.detail.quickActions.title", "Quick Actions")
|
|
496
502
|
}), /* @__PURE__ */ h("div", {
|
|
497
503
|
className: "space-y-2",
|
|
498
504
|
children: [
|
|
@@ -503,7 +509,7 @@ var v = (e) => {
|
|
|
503
509
|
children: [
|
|
504
510
|
/* @__PURE__ */ m(p, { className: "h-4 w-4 text-text-secondary" }),
|
|
505
511
|
" ",
|
|
506
|
-
|
|
512
|
+
x("healthybowl.crops.detail.quickActions.viewAnalytics", "View Analytics")
|
|
507
513
|
]
|
|
508
514
|
}),
|
|
509
515
|
/* @__PURE__ */ h(g, {
|
|
@@ -511,9 +517,9 @@ var v = (e) => {
|
|
|
511
517
|
onClick: () => k(A("weather")),
|
|
512
518
|
className: "w-full justify-start",
|
|
513
519
|
children: [
|
|
514
|
-
/* @__PURE__ */ m(
|
|
520
|
+
/* @__PURE__ */ m(me, { className: "h-4 w-4 text-text-secondary" }),
|
|
515
521
|
" ",
|
|
516
|
-
|
|
522
|
+
x("healthybowl.crops.detail.quickActions.checkWeather", "Check Weather")
|
|
517
523
|
]
|
|
518
524
|
}),
|
|
519
525
|
Z && /* @__PURE__ */ h(g, {
|
|
@@ -523,7 +529,7 @@ var v = (e) => {
|
|
|
523
529
|
children: [
|
|
524
530
|
/* @__PURE__ */ m(d, { className: "h-4 w-4 text-text-secondary" }),
|
|
525
531
|
" ",
|
|
526
|
-
|
|
532
|
+
x("healthybowl.crops.detail.quickActions.viewField", "View Field")
|
|
527
533
|
]
|
|
528
534
|
}),
|
|
529
535
|
/* @__PURE__ */ h(g, {
|
|
@@ -533,7 +539,7 @@ var v = (e) => {
|
|
|
533
539
|
children: [
|
|
534
540
|
/* @__PURE__ */ m(f, { className: "h-4 w-4 text-text-secondary" }),
|
|
535
541
|
" ",
|
|
536
|
-
|
|
542
|
+
x("healthybowl.crops.detail.quickActions.allCrops", "All Crops")
|
|
537
543
|
]
|
|
538
544
|
})
|
|
539
545
|
]
|
|
@@ -543,29 +549,29 @@ var v = (e) => {
|
|
|
543
549
|
})]
|
|
544
550
|
}),
|
|
545
551
|
/* @__PURE__ */ m(oe, {
|
|
546
|
-
open:
|
|
552
|
+
open: Me,
|
|
547
553
|
onClose: () => M(!1),
|
|
548
|
-
title:
|
|
549
|
-
description:
|
|
554
|
+
title: x("healthybowl.crops.detail.editModal.title", "Edit {{name}}", { name: F.name }),
|
|
555
|
+
description: x("healthybowl.crops.detail.editModal.description", "Update crop details"),
|
|
550
556
|
size: "lg",
|
|
551
|
-
footer: /* @__PURE__ */ h(
|
|
557
|
+
footer: /* @__PURE__ */ h(xe, { children: [/* @__PURE__ */ m(g, {
|
|
552
558
|
variant: "outline",
|
|
553
559
|
onClick: () => M(!1),
|
|
554
|
-
children:
|
|
560
|
+
children: x("healthybowl.common.cancel", "Cancel")
|
|
555
561
|
}), /* @__PURE__ */ m(g, {
|
|
556
562
|
onClick: async () => {
|
|
557
563
|
if (F) {
|
|
558
564
|
if (!I.trim()) {
|
|
559
565
|
j({
|
|
560
|
-
title:
|
|
561
|
-
description:
|
|
566
|
+
title: x("healthybowl.crops.detail.toast.missingFields.title", "Missing required fields"),
|
|
567
|
+
description: x("healthybowl.crops.detail.toast.missingFields.description", "Crop name is required."),
|
|
562
568
|
variant: "warning"
|
|
563
569
|
});
|
|
564
570
|
return;
|
|
565
571
|
}
|
|
566
572
|
P(!0);
|
|
567
573
|
try {
|
|
568
|
-
await
|
|
574
|
+
await D({
|
|
569
575
|
id: F.id,
|
|
570
576
|
name: I.trim(),
|
|
571
577
|
variety: R,
|
|
@@ -575,13 +581,13 @@ var v = (e) => {
|
|
|
575
581
|
healthStatus: K,
|
|
576
582
|
imageIds: J
|
|
577
583
|
}), j({
|
|
578
|
-
title:
|
|
579
|
-
description:
|
|
584
|
+
title: x("healthybowl.crops.detail.toast.updated.title", "Crop updated"),
|
|
585
|
+
description: x("healthybowl.crops.detail.toast.updated.description", "{{name}} details have been saved.", { name: I.trim() }),
|
|
580
586
|
variant: "success"
|
|
581
587
|
}), M(!1);
|
|
582
588
|
} catch (e) {
|
|
583
589
|
j({
|
|
584
|
-
title:
|
|
590
|
+
title: x("healthybowl.crops.detail.toast.updateFailed.title", "Update failed"),
|
|
585
591
|
description: String(e),
|
|
586
592
|
variant: "error"
|
|
587
593
|
});
|
|
@@ -591,14 +597,14 @@ var v = (e) => {
|
|
|
591
597
|
}
|
|
592
598
|
},
|
|
593
599
|
disabled: N,
|
|
594
|
-
children: N ?
|
|
600
|
+
children: N ? x("healthybowl.crops.detail.editModal.saving", "Saving...") : x("healthybowl.crops.detail.editModal.saveChanges", "Save Changes")
|
|
595
601
|
})] }),
|
|
596
602
|
children: /* @__PURE__ */ h("div", {
|
|
597
603
|
className: "grid gap-4 sm:grid-cols-2",
|
|
598
604
|
children: [
|
|
599
605
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
600
606
|
className: "text-sm font-medium text-text-primary",
|
|
601
|
-
children:
|
|
607
|
+
children: x("healthybowl.crops.detail.form.cropName", "Crop Name")
|
|
602
608
|
}), /* @__PURE__ */ m("input", {
|
|
603
609
|
value: I,
|
|
604
610
|
onChange: (e) => L(e.target.value),
|
|
@@ -606,7 +612,7 @@ var v = (e) => {
|
|
|
606
612
|
})] }),
|
|
607
613
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
608
614
|
className: "text-sm font-medium text-text-primary",
|
|
609
|
-
children:
|
|
615
|
+
children: x("healthybowl.crops.detail.form.variety", "Variety")
|
|
610
616
|
}), /* @__PURE__ */ m("input", {
|
|
611
617
|
value: R,
|
|
612
618
|
onChange: (e) => z(e.target.value),
|
|
@@ -614,7 +620,7 @@ var v = (e) => {
|
|
|
614
620
|
})] }),
|
|
615
621
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
616
622
|
className: "text-sm font-medium text-text-primary",
|
|
617
|
-
children:
|
|
623
|
+
children: x("healthybowl.crops.detail.form.category", "Category")
|
|
618
624
|
}), /* @__PURE__ */ m("input", {
|
|
619
625
|
value: B,
|
|
620
626
|
onChange: (e) => V(e.target.value),
|
|
@@ -622,7 +628,7 @@ var v = (e) => {
|
|
|
622
628
|
})] }),
|
|
623
629
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
624
630
|
className: "text-sm font-medium text-text-primary",
|
|
625
|
-
children:
|
|
631
|
+
children: x("healthybowl.crops.detail.form.yieldEstimate", "Yield Estimate ({{unit}})", { unit: F.yieldUnit })
|
|
626
632
|
}), /* @__PURE__ */ m("input", {
|
|
627
633
|
type: "number",
|
|
628
634
|
value: H,
|
|
@@ -631,7 +637,7 @@ var v = (e) => {
|
|
|
631
637
|
})] }),
|
|
632
638
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
633
639
|
className: "text-sm font-medium text-text-primary",
|
|
634
|
-
children:
|
|
640
|
+
children: x("healthybowl.crops.detail.form.expectedHarvest", "Expected Harvest")
|
|
635
641
|
}), /* @__PURE__ */ m("input", {
|
|
636
642
|
type: "date",
|
|
637
643
|
value: W,
|
|
@@ -640,33 +646,33 @@ var v = (e) => {
|
|
|
640
646
|
})] }),
|
|
641
647
|
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
|
|
642
648
|
className: "text-sm font-medium text-text-primary",
|
|
643
|
-
children:
|
|
644
|
-
}), /* @__PURE__ */ h(
|
|
649
|
+
children: x("healthybowl.crops.detail.form.healthStatus", "Health Status")
|
|
650
|
+
}), /* @__PURE__ */ h(Ce, {
|
|
645
651
|
value: K,
|
|
646
652
|
onValueChange: (e) => q(e),
|
|
647
|
-
children: [/* @__PURE__ */ m(
|
|
653
|
+
children: [/* @__PURE__ */ m(Te, {
|
|
648
654
|
className: "mt-1 w-full",
|
|
649
|
-
children: /* @__PURE__ */ m(
|
|
650
|
-
}), /* @__PURE__ */ h(
|
|
655
|
+
children: /* @__PURE__ */ m(Ee, {})
|
|
656
|
+
}), /* @__PURE__ */ h(we, { children: [
|
|
651
657
|
/* @__PURE__ */ m(_, {
|
|
652
658
|
value: "excellent",
|
|
653
|
-
children:
|
|
659
|
+
children: x("healthybowl.crops.detail.form.healthOptions.excellent", "Excellent")
|
|
654
660
|
}),
|
|
655
661
|
/* @__PURE__ */ m(_, {
|
|
656
662
|
value: "good",
|
|
657
|
-
children:
|
|
663
|
+
children: x("healthybowl.crops.detail.form.healthOptions.good", "Good")
|
|
658
664
|
}),
|
|
659
665
|
/* @__PURE__ */ m(_, {
|
|
660
666
|
value: "fair",
|
|
661
|
-
children:
|
|
667
|
+
children: x("healthybowl.crops.detail.form.healthOptions.fair", "Fair")
|
|
662
668
|
}),
|
|
663
669
|
/* @__PURE__ */ m(_, {
|
|
664
670
|
value: "poor",
|
|
665
|
-
children:
|
|
671
|
+
children: x("healthybowl.crops.detail.form.healthOptions.poor", "Poor")
|
|
666
672
|
}),
|
|
667
673
|
/* @__PURE__ */ m(_, {
|
|
668
674
|
value: "critical",
|
|
669
|
-
children:
|
|
675
|
+
children: x("healthybowl.crops.detail.form.healthOptions.critical", "Critical")
|
|
670
676
|
})
|
|
671
677
|
] })]
|
|
672
678
|
})] }),
|
|
@@ -674,7 +680,7 @@ var v = (e) => {
|
|
|
674
680
|
className: "sm:col-span-2",
|
|
675
681
|
children: [/* @__PURE__ */ m("label", {
|
|
676
682
|
className: "text-sm font-medium text-text-primary",
|
|
677
|
-
children:
|
|
683
|
+
children: x("healthybowl.crops.detail.form.photos", "Photos")
|
|
678
684
|
}), /* @__PURE__ */ m("div", {
|
|
679
685
|
className: "mt-1",
|
|
680
686
|
children: /* @__PURE__ */ m(i, {
|
|
@@ -688,27 +694,27 @@ var v = (e) => {
|
|
|
688
694
|
})
|
|
689
695
|
}),
|
|
690
696
|
/* @__PURE__ */ m(ne, {
|
|
691
|
-
toasts:
|
|
692
|
-
onDismiss:
|
|
697
|
+
toasts: Ae,
|
|
698
|
+
onDismiss: je
|
|
693
699
|
})
|
|
694
700
|
]
|
|
695
701
|
}) : /* @__PURE__ */ m(n, {
|
|
696
|
-
title:
|
|
697
|
-
description:
|
|
702
|
+
title: x("healthybowl.crops.detail.notFound.pageTitle", "Crop Not Found"),
|
|
703
|
+
description: x("healthybowl.crops.detail.notFound.altDescription", "The requested crop could not be found."),
|
|
698
704
|
children: /* @__PURE__ */ h("div", {
|
|
699
705
|
className: "flex flex-col items-center justify-center py-12 text-center",
|
|
700
706
|
children: [/* @__PURE__ */ m("p", {
|
|
701
707
|
className: "text-text-secondary",
|
|
702
|
-
children:
|
|
708
|
+
children: x("healthybowl.crops.detail.notFound.altHint", "This crop may have been removed or the ID is invalid.")
|
|
703
709
|
}), /* @__PURE__ */ m(g, {
|
|
704
710
|
onClick: () => k(A("crops")),
|
|
705
711
|
className: "mt-4",
|
|
706
|
-
children:
|
|
712
|
+
children: x("healthybowl.crops.detail.actions.backToCrops", "Back to Crops")
|
|
707
713
|
})]
|
|
708
714
|
})
|
|
709
715
|
});
|
|
710
716
|
};
|
|
711
717
|
//#endregion
|
|
712
|
-
export {
|
|
718
|
+
export { x as CropDetailsPage };
|
|
713
719
|
|
|
714
720
|
//# sourceMappingURL=CropDetailsPage.js.map
|