@burdenoff/microfe-healthybowl 2026.712.1 → 2026.713.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.
|
@@ -18,21 +18,21 @@ import { usePlantCatalog as de } from "../../hooks/usePlantCatalog.js";
|
|
|
18
18
|
import { DEFAULT_BED_WIDTH_M as fe, DEFAULT_CROP_SPACING_PRESET as pe, DEFAULT_PATH_WIDTH_M as me, estimatePlantingCapacity as he, getCropSpacingPreset as a } from "../../utils/plantingCapacity.js";
|
|
19
19
|
import { useSuccessionPlanning as ge } from "../../hooks/useSuccessionPlanning.js";
|
|
20
20
|
import { computeSeedRate as _e } from "../../utils/seedRate.js";
|
|
21
|
-
import {
|
|
22
|
-
import { useI18n as
|
|
23
|
-
import { Activity as
|
|
24
|
-
import { useNavigate as
|
|
25
|
-
import { Fragment as
|
|
26
|
-
import { Button as u, GlassCard as
|
|
21
|
+
import { useCallback as ve, useEffect as ye, useMemo as o, useState as s } from "react";
|
|
22
|
+
import { useI18n as be } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
23
|
+
import { Activity as xe, ArrowLeft as Se, BarChart3 as Ce, Calendar as we, CloudRain as Te, Droplets as Ee, Edit as De, Eye as Oe, Leaf as ke, Map as Ae, Plus as je, Sprout as Me, Sun as Ne, Thermometer as Pe, Trash2 as Fe, TrendingUp as Ie, Wind as Le } from "lucide-react";
|
|
24
|
+
import { useNavigate as Re, useParams as ze } from "react-router-dom";
|
|
25
|
+
import { Fragment as Be, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
26
|
+
import { Button as u, GlassCard as Ve, Select as d, SelectContent as f, SelectItem as p, SelectTrigger as m, SelectValue as h } from "@burdenoff/fe-libs/ui";
|
|
27
27
|
//#region src/healthybowl/pages/crops/FieldDetailsPage.tsx
|
|
28
|
-
var
|
|
28
|
+
var He = (e) => {
|
|
29
29
|
switch (e) {
|
|
30
30
|
case "active": return "success";
|
|
31
31
|
case "fallow": return "muted";
|
|
32
32
|
case "preparation": return "warning";
|
|
33
33
|
default: return "default";
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, Ue = (e) => {
|
|
36
36
|
switch (e) {
|
|
37
37
|
case "optimal": return "success";
|
|
38
38
|
case "acceptable": return "info";
|
|
@@ -42,13 +42,13 @@ var Ve = (e) => {
|
|
|
42
42
|
}, g = (e, t) => {
|
|
43
43
|
let n = Number(e);
|
|
44
44
|
return Number.isFinite(n) && n > 0 ? n : t;
|
|
45
|
-
},
|
|
45
|
+
}, We = (e, t) => {
|
|
46
46
|
let n = Number(e);
|
|
47
47
|
return Number.isFinite(n) && n >= 0 ? n : t;
|
|
48
48
|
}, _ = (e, t = 1) => new Intl.NumberFormat("en-US", { maximumFractionDigits: t }).format(e), v = () => {
|
|
49
|
-
let { t: v } =
|
|
50
|
-
k && (
|
|
51
|
-
},
|
|
49
|
+
let { t: v } = be(), Ge = re(), { fields: Ke, crops: x, soilTests: qe, weatherData: S, errors: Je, loadings: Ye, updateField: Xe, deleteField: Ze, refetch: Qe } = ue(), { fieldId: $e } = ze(), C = Re(), { buildPath: w } = n(), { toasts: et, toast: T, dismiss: tt } = se(), [nt, E] = s(!1), [D, O] = s(!1), k = Ke.find((e) => e.id === $e), [A, rt] = s(""), [j, it] = s(""), [at, ot] = s("acres"), [st, M] = s(""), [ct, lt] = s(""), [ut, dt] = s("active"), [ft, pt] = s(!1), [N, mt] = s(""), { entries: P } = de(), [F, I] = s(""), [L, R] = s(String(pe.plantSpacingCm)), [z, B] = s(String(pe.rowSpacingCm)), [V, ht] = s(String(fe)), [H, gt] = s(String(me)), [U, _t] = s(null), vt = () => {
|
|
50
|
+
k && (rt(k.name), it(String(k.area)), ot(k.unit ?? "acres"), M(k.soilType), lt(k.irrigationType), dt(k.status), pt(k.organicCertified), E(!0));
|
|
51
|
+
}, yt = async () => {
|
|
52
52
|
if (k) {
|
|
53
53
|
if (!A.trim() || !j) {
|
|
54
54
|
T({
|
|
@@ -60,15 +60,15 @@ var Ve = (e) => {
|
|
|
60
60
|
}
|
|
61
61
|
O(!0);
|
|
62
62
|
try {
|
|
63
|
-
await
|
|
63
|
+
await Xe({
|
|
64
64
|
id: k.id,
|
|
65
65
|
name: A.trim(),
|
|
66
66
|
area: Number(j),
|
|
67
|
-
unit:
|
|
68
|
-
soilType:
|
|
67
|
+
unit: at,
|
|
68
|
+
soilType: st.trim() || "Unknown",
|
|
69
69
|
irrigationType: ct.trim() || "None",
|
|
70
|
-
status:
|
|
71
|
-
organicCertified:
|
|
70
|
+
status: ut,
|
|
71
|
+
organicCertified: ft
|
|
72
72
|
}), T({
|
|
73
73
|
title: v("healthybowl.crops.fieldDetail.toast.updated.title", "Field updated"),
|
|
74
74
|
description: v("healthybowl.crops.fieldDetail.toast.updated.description", "{{name}} has been saved.", { name: A.trim() }),
|
|
@@ -84,8 +84,8 @@ var Ve = (e) => {
|
|
|
84
84
|
O(!1);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
},
|
|
88
|
-
if (k && await
|
|
87
|
+
}, bt = async () => {
|
|
88
|
+
if (k && await Ge({
|
|
89
89
|
title: v("healthybowl.crops.fieldDetail.deleteConfirm.title", "Delete field?"),
|
|
90
90
|
message: v("healthybowl.crops.fieldDetail.deleteConfirm.message", "{{name}} will be permanently removed.", { name: k.name }),
|
|
91
91
|
okButtonTitle: v("healthybowl.common.delete", "Delete"),
|
|
@@ -93,7 +93,7 @@ var Ve = (e) => {
|
|
|
93
93
|
}) !== !1) {
|
|
94
94
|
O(!0);
|
|
95
95
|
try {
|
|
96
|
-
await
|
|
96
|
+
await Ze(k.id), T({
|
|
97
97
|
title: v("healthybowl.crops.fieldDetail.toast.deleted.title", "Field deleted"),
|
|
98
98
|
description: v("healthybowl.crops.fieldDetail.toast.deleted.description", "{{name}} has been removed.", { name: k.name }),
|
|
99
99
|
variant: "success"
|
|
@@ -109,37 +109,37 @@ var Ve = (e) => {
|
|
|
109
109
|
}, W = o(() => k ? x.filter((e) => e.field === k.id || e.fieldName === k.name) : [], [x, k]), G = o(() => {
|
|
110
110
|
let e = /* @__PURE__ */ new Set();
|
|
111
111
|
return [...W, ...x].filter((t) => !e.has(t.id) && !!e.add(t.id));
|
|
112
|
-
}, [x, W]),
|
|
112
|
+
}, [x, W]), xt = o(() => W[0] ?? G[0] ?? null, [G, W]), K = o(() => G.find((e) => e.id === N) ?? xt, [
|
|
113
113
|
N,
|
|
114
114
|
G,
|
|
115
|
-
|
|
116
|
-
]), q = o(() => a(K), [K]),
|
|
117
|
-
fieldArea:
|
|
115
|
+
xt
|
|
116
|
+
]), q = o(() => a(K), [K]), St = U != null && U > 0 ? U : k?.area ?? 0, Ct = U != null && U > 0, J = o(() => k ? he({
|
|
117
|
+
fieldArea: St,
|
|
118
118
|
fieldUnit: k.unit,
|
|
119
119
|
bedWidthM: g(V, fe),
|
|
120
|
-
pathWidthM:
|
|
120
|
+
pathWidthM: We(H, me),
|
|
121
121
|
plantSpacingCm: g(L, q.plantSpacingCm),
|
|
122
122
|
rowSpacingCm: g(z, q.rowSpacingCm)
|
|
123
123
|
}) : null, [
|
|
124
124
|
V,
|
|
125
|
-
|
|
125
|
+
St,
|
|
126
126
|
k,
|
|
127
127
|
H,
|
|
128
128
|
L,
|
|
129
129
|
z,
|
|
130
130
|
q
|
|
131
131
|
]);
|
|
132
|
-
|
|
132
|
+
ye(() => {
|
|
133
133
|
if (!K || N === K.id) return;
|
|
134
134
|
let e = a(K);
|
|
135
|
-
|
|
135
|
+
mt(K.id), R(String(e.plantSpacingCm)), B(String(e.rowSpacingCm));
|
|
136
136
|
}, [N, K]);
|
|
137
|
-
let
|
|
137
|
+
let wt = (e) => {
|
|
138
138
|
let t = G.find((t) => t.id === e);
|
|
139
|
-
|
|
139
|
+
mt(e), I("");
|
|
140
140
|
let n = a(t);
|
|
141
141
|
R(String(n.plantSpacingCm)), B(String(n.rowSpacingCm));
|
|
142
|
-
},
|
|
142
|
+
}, Tt = (e) => {
|
|
143
143
|
if (I(e), e === "none") {
|
|
144
144
|
I("");
|
|
145
145
|
return;
|
|
@@ -163,16 +163,29 @@ var Ve = (e) => {
|
|
|
163
163
|
seedsPerGram: Y?.seedsPerGram,
|
|
164
164
|
germinationRate: Y?.germinationRate,
|
|
165
165
|
seedsPerCell: Y?.seedsPerCell
|
|
166
|
-
}) : null, [J, Y]), { successionPlans:
|
|
166
|
+
}) : null, [J, Y]), { successionPlans: Et, beds: Dt, createSuccession: Ot, deletePlan: kt } = ge(k?.id), [Z, At] = s(() => (/* @__PURE__ */ new Date()).toISOString().split("T")[0]), [jt, Mt] = s("14"), [Nt, Pt] = s("4"), [Ft, It] = s(""), [Lt, Rt] = s(!1), zt = o(() => {
|
|
167
167
|
let e = /* @__PURE__ */ new Map();
|
|
168
|
-
for (let t of
|
|
168
|
+
for (let t of Et) {
|
|
169
169
|
let n = String(t.successionGroupId), r = e.get(n);
|
|
170
170
|
r ? r.push(t) : e.set(n, [t]);
|
|
171
171
|
}
|
|
172
172
|
return Array.from(e.entries());
|
|
173
|
-
}, [
|
|
173
|
+
}, [Et]), Bt = ve((e) => {
|
|
174
|
+
let t = e.cropId ? x.find((t) => t.id === e.cropId) : void 0;
|
|
175
|
+
if (t) return t.variety ? `${t.name} - ${t.variety}` : t.name;
|
|
176
|
+
let n = e.plantCatalogId ? P.find((t) => t.id === e.plantCatalogId) : void 0;
|
|
177
|
+
if (n?.name?.trim()) return n.variety ? `${n.name} - ${n.variety}` : n.name;
|
|
178
|
+
let r = e.cropName?.trim();
|
|
179
|
+
if (r && !/^unknown(\s+crop)?$/i.test(r)) return r;
|
|
180
|
+
let i = W[0];
|
|
181
|
+
return i ? i.variety ? `${i.name} - ${i.variety}` : i.name : "—";
|
|
182
|
+
}, [
|
|
183
|
+
x,
|
|
184
|
+
P,
|
|
185
|
+
W
|
|
186
|
+
]), Vt = async () => {
|
|
174
187
|
if (!k) return;
|
|
175
|
-
let e = Number(
|
|
188
|
+
let e = Number(jt), t = Number(Nt);
|
|
176
189
|
if (!Z || !Number.isFinite(e) || e < 1 || !Number.isFinite(t) || t < 1) {
|
|
177
190
|
T({
|
|
178
191
|
title: v("healthybowl.crops.fieldDetail.succession.toast.invalid.title", "Check the schedule inputs"),
|
|
@@ -181,11 +194,11 @@ var Ve = (e) => {
|
|
|
181
194
|
});
|
|
182
195
|
return;
|
|
183
196
|
}
|
|
184
|
-
|
|
197
|
+
Rt(!0);
|
|
185
198
|
try {
|
|
186
|
-
let n = await
|
|
199
|
+
let n = await Ot({
|
|
187
200
|
fieldId: k.id,
|
|
188
|
-
bedId:
|
|
201
|
+
bedId: Ft || void 0,
|
|
189
202
|
cropId: K?.id ?? void 0,
|
|
190
203
|
plantCatalogId: F || void 0,
|
|
191
204
|
season: K?.season ? K.season.toUpperCase() : void 0,
|
|
@@ -210,16 +223,16 @@ var Ve = (e) => {
|
|
|
210
223
|
variant: "error"
|
|
211
224
|
});
|
|
212
225
|
} finally {
|
|
213
|
-
|
|
226
|
+
Rt(!1);
|
|
214
227
|
}
|
|
215
|
-
},
|
|
216
|
-
if (await
|
|
228
|
+
}, Ht = async (e) => {
|
|
229
|
+
if (await Ge({
|
|
217
230
|
title: v("healthybowl.crops.fieldDetail.succession.deleteConfirm.title", "Delete this sowing?"),
|
|
218
231
|
message: v("healthybowl.crops.fieldDetail.succession.deleteConfirm.message", "This sowing will be permanently removed from the schedule."),
|
|
219
232
|
okButtonTitle: v("healthybowl.common.delete", "Delete"),
|
|
220
233
|
cancelButtonTitle: v("healthybowl.common.cancel", "Cancel")
|
|
221
234
|
}) !== !1) try {
|
|
222
|
-
await
|
|
235
|
+
await kt(e.id), T({
|
|
223
236
|
title: v("healthybowl.crops.fieldDetail.succession.toast.deleted.title", "Sowing removed"),
|
|
224
237
|
description: v("healthybowl.crops.fieldDetail.succession.toast.deleted.description", "The sowing was deleted."),
|
|
225
238
|
variant: "success"
|
|
@@ -231,7 +244,7 @@ var Ve = (e) => {
|
|
|
231
244
|
variant: "error"
|
|
232
245
|
});
|
|
233
246
|
}
|
|
234
|
-
}, Q = k ?
|
|
247
|
+
}, Q = k ? qe.find((e) => e.fieldName === k.name) : void 0, $ = {
|
|
235
248
|
location: S?.location ?? "",
|
|
236
249
|
current: S?.current ?? {
|
|
237
250
|
temperature: 0,
|
|
@@ -244,7 +257,7 @@ var Ve = (e) => {
|
|
|
244
257
|
visibility: 0
|
|
245
258
|
},
|
|
246
259
|
forecast: S?.forecast ?? []
|
|
247
|
-
},
|
|
260
|
+
}, Ut = o(() => {
|
|
248
261
|
let e = [];
|
|
249
262
|
return W.forEach((t) => {
|
|
250
263
|
t.plantingDate && e.push({
|
|
@@ -272,7 +285,7 @@ var Ve = (e) => {
|
|
|
272
285
|
W,
|
|
273
286
|
Q,
|
|
274
287
|
v
|
|
275
|
-
]),
|
|
288
|
+
]), Wt = o(() => W.length === 0 ? [{
|
|
276
289
|
season: v("healthybowl.crops.fieldDetail.cropHistory.currentSeason", "Current"),
|
|
277
290
|
crop: v("healthybowl.crops.fieldDetail.cropHistory.noCropsPlanted", "No crops planted"),
|
|
278
291
|
status: "fallow"
|
|
@@ -300,26 +313,26 @@ var Ve = (e) => {
|
|
|
300
313
|
variant: "outline",
|
|
301
314
|
onClick: () => C(w("crops/fields")),
|
|
302
315
|
children: [
|
|
303
|
-
/* @__PURE__ */ c(
|
|
316
|
+
/* @__PURE__ */ c(Se, { className: "h-4 w-4" }),
|
|
304
317
|
" ",
|
|
305
318
|
v("healthybowl.crops.fieldDetail.actions.backToFields", "Back to Fields")
|
|
306
319
|
]
|
|
307
320
|
}),
|
|
308
321
|
/* @__PURE__ */ l(u, {
|
|
309
322
|
variant: "outline",
|
|
310
|
-
onClick:
|
|
323
|
+
onClick: vt,
|
|
311
324
|
children: [
|
|
312
|
-
/* @__PURE__ */ c(
|
|
325
|
+
/* @__PURE__ */ c(De, { className: "h-4 w-4" }),
|
|
313
326
|
" ",
|
|
314
327
|
v("healthybowl.crops.fieldDetail.actions.editField", "Edit Field")
|
|
315
328
|
]
|
|
316
329
|
}),
|
|
317
330
|
/* @__PURE__ */ l(u, {
|
|
318
331
|
variant: "destructive",
|
|
319
|
-
onClick:
|
|
332
|
+
onClick: bt,
|
|
320
333
|
disabled: D,
|
|
321
334
|
children: [
|
|
322
|
-
/* @__PURE__ */ c(
|
|
335
|
+
/* @__PURE__ */ c(Fe, { className: "h-4 w-4" }),
|
|
323
336
|
" ",
|
|
324
337
|
v("healthybowl.common.delete", "Delete")
|
|
325
338
|
]
|
|
@@ -332,7 +345,7 @@ var Ve = (e) => {
|
|
|
332
345
|
id: "edit",
|
|
333
346
|
label: v("healthybowl.crops.fieldDetail.nextSteps.edit.label", "Update field details"),
|
|
334
347
|
description: v("healthybowl.crops.fieldDetail.nextSteps.edit.desc", "Keep area, soil type and irrigation info current."),
|
|
335
|
-
onClick:
|
|
348
|
+
onClick: vt
|
|
336
349
|
},
|
|
337
350
|
{
|
|
338
351
|
id: "soil",
|
|
@@ -364,7 +377,7 @@ var Ve = (e) => {
|
|
|
364
377
|
className: "flex flex-wrap items-center gap-3",
|
|
365
378
|
children: [/* @__PURE__ */ c(i, {
|
|
366
379
|
label: k.status,
|
|
367
|
-
variant:
|
|
380
|
+
variant: He(k.status),
|
|
368
381
|
dot: !0
|
|
369
382
|
}), k.organicCertified ? /* @__PURE__ */ c(i, {
|
|
370
383
|
label: v("healthybowl.crops.fieldDetail.badges.organicCertified", "Organic Certified"),
|
|
@@ -379,7 +392,7 @@ var Ve = (e) => {
|
|
|
379
392
|
children: [/* @__PURE__ */ l("div", {
|
|
380
393
|
className: "space-y-6 lg:col-span-2",
|
|
381
394
|
children: [
|
|
382
|
-
/* @__PURE__ */ l(
|
|
395
|
+
/* @__PURE__ */ l(Ve, {
|
|
383
396
|
treatment: "glass",
|
|
384
397
|
glow: !0,
|
|
385
398
|
className: "border-border-seam p-6",
|
|
@@ -418,7 +431,7 @@ var Ve = (e) => {
|
|
|
418
431
|
className: "mt-1",
|
|
419
432
|
children: /* @__PURE__ */ c(i, {
|
|
420
433
|
label: k.status,
|
|
421
|
-
variant:
|
|
434
|
+
variant: He(k.status)
|
|
422
435
|
})
|
|
423
436
|
})] })
|
|
424
437
|
]
|
|
@@ -489,7 +502,7 @@ var Ve = (e) => {
|
|
|
489
502
|
children: [/* @__PURE__ */ l("h3", {
|
|
490
503
|
className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
491
504
|
children: [
|
|
492
|
-
/* @__PURE__ */ c(
|
|
505
|
+
/* @__PURE__ */ c(Ae, { className: "h-4 w-4 text-success" }),
|
|
493
506
|
" ",
|
|
494
507
|
v("healthybowl.crops.fieldDetail.boundary.heading", "Field Boundary")
|
|
495
508
|
]
|
|
@@ -503,8 +516,8 @@ var Ve = (e) => {
|
|
|
503
516
|
unit: k.unit ?? "acres",
|
|
504
517
|
center: k.location,
|
|
505
518
|
initialBoundary: k.boundary,
|
|
506
|
-
onSaved:
|
|
507
|
-
onAreaChange:
|
|
519
|
+
onSaved: Qe,
|
|
520
|
+
onAreaChange: _t
|
|
508
521
|
}),
|
|
509
522
|
/* @__PURE__ */ l("div", {
|
|
510
523
|
className: "mt-5 border-t border-border-subtle pt-5",
|
|
@@ -513,7 +526,7 @@ var Ve = (e) => {
|
|
|
513
526
|
className: "flex flex-wrap items-center justify-between gap-3",
|
|
514
527
|
children: [/* @__PURE__ */ l("h4", {
|
|
515
528
|
className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
516
|
-
children: [v("healthybowl.crops.fieldDetail.capacity.heading", "Planting capacity"),
|
|
529
|
+
children: [v("healthybowl.crops.fieldDetail.capacity.heading", "Planting capacity"), Ct && /* @__PURE__ */ c("span", {
|
|
517
530
|
className: "rounded-full bg-success/10 px-2 py-0.5 text-[11px] font-medium text-success",
|
|
518
531
|
children: v("healthybowl.crops.fieldDetail.capacity.fromBoundary", "from drawn boundary")
|
|
519
532
|
})]
|
|
@@ -532,7 +545,7 @@ var Ve = (e) => {
|
|
|
532
545
|
children: v("healthybowl.crops.fieldDetail.capacity.crop", "Crop")
|
|
533
546
|
}), /* @__PURE__ */ l(d, {
|
|
534
547
|
value: N,
|
|
535
|
-
onValueChange:
|
|
548
|
+
onValueChange: wt,
|
|
536
549
|
children: [/* @__PURE__ */ c(m, {
|
|
537
550
|
className: "mt-1 w-full",
|
|
538
551
|
children: /* @__PURE__ */ c(h, { placeholder: v("healthybowl.crops.fieldDetail.capacity.cropPlaceholder", "Select crop") })
|
|
@@ -549,7 +562,7 @@ var Ve = (e) => {
|
|
|
549
562
|
children: v("healthybowl.crops.fieldDetail.capacity.catalog", "Master Plant List")
|
|
550
563
|
}), /* @__PURE__ */ l(d, {
|
|
551
564
|
value: F || "none",
|
|
552
|
-
onValueChange:
|
|
565
|
+
onValueChange: Tt,
|
|
553
566
|
children: [/* @__PURE__ */ c(m, {
|
|
554
567
|
className: "mt-1 w-full",
|
|
555
568
|
children: /* @__PURE__ */ c(h, { placeholder: v("healthybowl.crops.fieldDetail.capacity.catalogPlaceholder", "Fill spacing from catalog") })
|
|
@@ -584,7 +597,7 @@ var Ve = (e) => {
|
|
|
584
597
|
value: V,
|
|
585
598
|
min: "0.1",
|
|
586
599
|
step: "0.1",
|
|
587
|
-
onChange:
|
|
600
|
+
onChange: ht
|
|
588
601
|
}),
|
|
589
602
|
/* @__PURE__ */ c(y, {
|
|
590
603
|
label: v("healthybowl.crops.fieldDetail.capacity.pathWidth", "Path width"),
|
|
@@ -592,11 +605,11 @@ var Ve = (e) => {
|
|
|
592
605
|
value: H,
|
|
593
606
|
min: "0",
|
|
594
607
|
step: "0.05",
|
|
595
|
-
onChange:
|
|
608
|
+
onChange: gt
|
|
596
609
|
})
|
|
597
610
|
]
|
|
598
611
|
}),
|
|
599
|
-
J ? /* @__PURE__ */ l(
|
|
612
|
+
J ? /* @__PURE__ */ l(Be, { children: [/* @__PURE__ */ l("div", {
|
|
600
613
|
className: "mt-4 grid grid-cols-2 gap-3 md:grid-cols-3 xl:grid-cols-6",
|
|
601
614
|
children: [
|
|
602
615
|
/* @__PURE__ */ c(b, {
|
|
@@ -636,7 +649,7 @@ var Ve = (e) => {
|
|
|
636
649
|
/* @__PURE__ */ l("h5", {
|
|
637
650
|
className: "mb-3 flex items-center gap-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",
|
|
638
651
|
children: [
|
|
639
|
-
/* @__PURE__ */ c(
|
|
652
|
+
/* @__PURE__ */ c(Me, { className: "h-3.5 w-3.5 text-success" }),
|
|
640
653
|
v("healthybowl.crops.fieldDetail.seedRate.heading", "Seed rate"),
|
|
641
654
|
Y && /* @__PURE__ */ c("span", {
|
|
642
655
|
className: "rounded-full bg-success/10 px-2 py-0.5 text-[11px] font-medium normal-case text-success",
|
|
@@ -683,7 +696,7 @@ var Ve = (e) => {
|
|
|
683
696
|
children: [/* @__PURE__ */ l("h3", {
|
|
684
697
|
className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
685
698
|
children: [
|
|
686
|
-
/* @__PURE__ */ c(
|
|
699
|
+
/* @__PURE__ */ c(Me, { className: "h-4 w-4 text-success" }),
|
|
687
700
|
" ",
|
|
688
701
|
v("healthybowl.crops.fieldDetail.succession.heading", "Succession planting")
|
|
689
702
|
]
|
|
@@ -701,38 +714,38 @@ var Ve = (e) => {
|
|
|
701
714
|
}), /* @__PURE__ */ c("input", {
|
|
702
715
|
type: "date",
|
|
703
716
|
value: Z,
|
|
704
|
-
onChange: (e) =>
|
|
717
|
+
onChange: (e) => At(e.target.value),
|
|
705
718
|
className: "mt-1 h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
706
719
|
})] }),
|
|
707
720
|
/* @__PURE__ */ c(y, {
|
|
708
721
|
label: v("healthybowl.crops.fieldDetail.succession.interval", "Interval"),
|
|
709
722
|
unit: v("healthybowl.crops.fieldDetail.succession.days", "days"),
|
|
710
|
-
value:
|
|
723
|
+
value: jt,
|
|
711
724
|
min: "1",
|
|
712
725
|
step: "1",
|
|
713
|
-
onChange:
|
|
726
|
+
onChange: Mt
|
|
714
727
|
}),
|
|
715
728
|
/* @__PURE__ */ c(y, {
|
|
716
729
|
label: v("healthybowl.crops.fieldDetail.succession.count", "Number of sowings"),
|
|
717
730
|
unit: v("healthybowl.crops.fieldDetail.succession.sowings", "sowings"),
|
|
718
|
-
value:
|
|
731
|
+
value: Nt,
|
|
719
732
|
min: "1",
|
|
720
733
|
step: "1",
|
|
721
|
-
onChange:
|
|
734
|
+
onChange: Pt
|
|
722
735
|
}),
|
|
723
|
-
|
|
736
|
+
Dt.length > 0 && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
724
737
|
className: "text-xs font-medium text-text-secondary",
|
|
725
738
|
children: v("healthybowl.crops.fieldDetail.succession.bed", "Bed (optional)")
|
|
726
739
|
}), /* @__PURE__ */ l(d, {
|
|
727
|
-
value:
|
|
728
|
-
onValueChange: (e) =>
|
|
740
|
+
value: Ft || "none",
|
|
741
|
+
onValueChange: (e) => It(e === "none" ? "" : e),
|
|
729
742
|
children: [/* @__PURE__ */ c(m, {
|
|
730
743
|
className: "mt-1 w-full",
|
|
731
744
|
children: /* @__PURE__ */ c(h, { placeholder: v("healthybowl.crops.fieldDetail.succession.bedPlaceholder", "No specific bed") })
|
|
732
745
|
}), /* @__PURE__ */ l(f, { children: [/* @__PURE__ */ c(p, {
|
|
733
746
|
value: "none",
|
|
734
747
|
children: v("healthybowl.crops.fieldDetail.succession.bedNone", "No specific bed")
|
|
735
|
-
}),
|
|
748
|
+
}), Dt.map((e) => /* @__PURE__ */ c(p, {
|
|
736
749
|
value: e.id,
|
|
737
750
|
children: e.name
|
|
738
751
|
}, e.id))] })]
|
|
@@ -745,18 +758,18 @@ var Ve = (e) => {
|
|
|
745
758
|
className: "text-xs text-text-secondary",
|
|
746
759
|
children: K ? v("healthybowl.crops.fieldDetail.succession.forCrop", "For: {{crop}}", { crop: K.variety ? `${K.name} - ${K.variety}` : K.name }) : v("healthybowl.crops.fieldDetail.succession.noCrop", "Select a crop in the capacity planner above.")
|
|
747
760
|
}), /* @__PURE__ */ l(u, {
|
|
748
|
-
onClick:
|
|
749
|
-
disabled:
|
|
750
|
-
children: [/* @__PURE__ */ c(
|
|
761
|
+
onClick: Vt,
|
|
762
|
+
disabled: Lt,
|
|
763
|
+
children: [/* @__PURE__ */ c(je, { className: "h-4 w-4" }), Lt ? v("healthybowl.crops.fieldDetail.succession.generating", "Generating...") : v("healthybowl.crops.fieldDetail.succession.generate", "Generate schedule")]
|
|
751
764
|
})]
|
|
752
765
|
}),
|
|
753
|
-
|
|
766
|
+
zt.length > 0 ? /* @__PURE__ */ c("div", {
|
|
754
767
|
className: "mt-5 space-y-5 border-t border-border-subtle pt-5",
|
|
755
|
-
children:
|
|
768
|
+
children: zt.map(([n, r]) => /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("div", {
|
|
756
769
|
className: "mb-2 flex items-center justify-between",
|
|
757
770
|
children: [/* @__PURE__ */ c("h4", {
|
|
758
771
|
className: "text-sm font-semibold text-text-primary",
|
|
759
|
-
children: r[0]
|
|
772
|
+
children: r[0] ? Bt(r[0]) : v("healthybowl.crops.fieldDetail.succession.series", "Succession series")
|
|
760
773
|
}), /* @__PURE__ */ c("span", {
|
|
761
774
|
className: "text-xs text-text-secondary",
|
|
762
775
|
children: v("healthybowl.crops.fieldDetail.succession.sowingCount", "{{count}} sowings", { count: r.length })
|
|
@@ -788,10 +801,10 @@ var Ve = (e) => {
|
|
|
788
801
|
}), /* @__PURE__ */ c(u, {
|
|
789
802
|
variant: "ghost",
|
|
790
803
|
size: "icon-sm",
|
|
791
|
-
onClick: () => void
|
|
804
|
+
onClick: () => void Ht(n),
|
|
792
805
|
"aria-label": v("healthybowl.common.delete", "Delete"),
|
|
793
806
|
className: "text-status-error-text hover:bg-status-error-bg/10 hover:text-status-error-text",
|
|
794
|
-
children: /* @__PURE__ */ c(
|
|
807
|
+
children: /* @__PURE__ */ c(Fe, { className: "h-4 w-4" })
|
|
795
808
|
})]
|
|
796
809
|
}, n.id))
|
|
797
810
|
})] }, n))
|
|
@@ -806,7 +819,7 @@ var Ve = (e) => {
|
|
|
806
819
|
children: [/* @__PURE__ */ l("h3", {
|
|
807
820
|
className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
808
821
|
children: [
|
|
809
|
-
/* @__PURE__ */ c(
|
|
822
|
+
/* @__PURE__ */ c(ke, { className: "h-4 w-4 text-success" }),
|
|
810
823
|
" ",
|
|
811
824
|
v("healthybowl.crops.fieldDetail.currentCrops.heading", "Current Crops")
|
|
812
825
|
]
|
|
@@ -861,13 +874,13 @@ var Ve = (e) => {
|
|
|
861
874
|
children: [/* @__PURE__ */ l("h3", {
|
|
862
875
|
className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
863
876
|
children: [
|
|
864
|
-
/* @__PURE__ */ c(
|
|
877
|
+
/* @__PURE__ */ c(xe, { className: "h-4 w-4 text-warning" }),
|
|
865
878
|
" ",
|
|
866
879
|
v("healthybowl.crops.fieldDetail.soilHealth.heading", "Soil Health")
|
|
867
880
|
]
|
|
868
881
|
}), /* @__PURE__ */ c(i, {
|
|
869
882
|
label: (Q.status ?? "unknown").replace("_", " "),
|
|
870
|
-
variant:
|
|
883
|
+
variant: Ue(Q.status ?? "unknown")
|
|
871
884
|
})]
|
|
872
885
|
}),
|
|
873
886
|
/* @__PURE__ */ c("div", {
|
|
@@ -940,13 +953,13 @@ var Ve = (e) => {
|
|
|
940
953
|
children: [/* @__PURE__ */ l("h3", {
|
|
941
954
|
className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
942
955
|
children: [
|
|
943
|
-
/* @__PURE__ */ c(
|
|
956
|
+
/* @__PURE__ */ c(we, { className: "h-4 w-4 text-info" }),
|
|
944
957
|
" ",
|
|
945
958
|
v("healthybowl.crops.fieldDetail.cropHistory.heading", "Crop History")
|
|
946
959
|
]
|
|
947
960
|
}), /* @__PURE__ */ c("div", {
|
|
948
961
|
className: "space-y-3",
|
|
949
|
-
children:
|
|
962
|
+
children: Wt.map((e, t) => /* @__PURE__ */ l("div", {
|
|
950
963
|
className: "flex items-center justify-between rounded-md border border-border-subtle p-3",
|
|
951
964
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("span", {
|
|
952
965
|
className: "text-sm font-medium text-text-primary",
|
|
@@ -970,7 +983,7 @@ var Ve = (e) => {
|
|
|
970
983
|
children: [/* @__PURE__ */ l("h3", {
|
|
971
984
|
className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
972
985
|
children: [
|
|
973
|
-
/* @__PURE__ */ c(
|
|
986
|
+
/* @__PURE__ */ c(Te, { className: "h-4 w-4 text-info" }),
|
|
974
987
|
" ",
|
|
975
988
|
v("healthybowl.crops.fieldDetail.weather.heading", "Current Conditions")
|
|
976
989
|
]
|
|
@@ -982,7 +995,7 @@ var Ve = (e) => {
|
|
|
982
995
|
children: [/* @__PURE__ */ l("span", {
|
|
983
996
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
984
997
|
children: [
|
|
985
|
-
/* @__PURE__ */ c(
|
|
998
|
+
/* @__PURE__ */ c(Pe, { className: "h-3.5 w-3.5" }),
|
|
986
999
|
" ",
|
|
987
1000
|
v("healthybowl.crops.fieldDetail.weather.temperature", "Temperature")
|
|
988
1001
|
]
|
|
@@ -996,7 +1009,7 @@ var Ve = (e) => {
|
|
|
996
1009
|
children: [/* @__PURE__ */ l("span", {
|
|
997
1010
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
998
1011
|
children: [
|
|
999
|
-
/* @__PURE__ */ c(
|
|
1012
|
+
/* @__PURE__ */ c(Ee, { className: "h-3.5 w-3.5" }),
|
|
1000
1013
|
" ",
|
|
1001
1014
|
v("healthybowl.crops.fieldDetail.weather.humidity", "Humidity")
|
|
1002
1015
|
]
|
|
@@ -1010,7 +1023,7 @@ var Ve = (e) => {
|
|
|
1010
1023
|
children: [/* @__PURE__ */ l("span", {
|
|
1011
1024
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
1012
1025
|
children: [
|
|
1013
|
-
/* @__PURE__ */ c(
|
|
1026
|
+
/* @__PURE__ */ c(Le, { className: "h-3.5 w-3.5" }),
|
|
1014
1027
|
" ",
|
|
1015
1028
|
v("healthybowl.crops.fieldDetail.weather.wind", "Wind")
|
|
1016
1029
|
]
|
|
@@ -1024,7 +1037,7 @@ var Ve = (e) => {
|
|
|
1024
1037
|
children: [/* @__PURE__ */ l("span", {
|
|
1025
1038
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
1026
1039
|
children: [
|
|
1027
|
-
/* @__PURE__ */ c(
|
|
1040
|
+
/* @__PURE__ */ c(Ne, { className: "h-3.5 w-3.5" }),
|
|
1028
1041
|
" ",
|
|
1029
1042
|
v("healthybowl.crops.fieldDetail.weather.uvIndex", "UV Index")
|
|
1030
1043
|
]
|
|
@@ -1038,7 +1051,7 @@ var Ve = (e) => {
|
|
|
1038
1051
|
children: [/* @__PURE__ */ l("span", {
|
|
1039
1052
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
1040
1053
|
children: [
|
|
1041
|
-
/* @__PURE__ */ c(
|
|
1054
|
+
/* @__PURE__ */ c(Oe, { className: "h-3.5 w-3.5" }),
|
|
1042
1055
|
" ",
|
|
1043
1056
|
v("healthybowl.crops.fieldDetail.weather.visibility", "Visibility")
|
|
1044
1057
|
]
|
|
@@ -1063,7 +1076,7 @@ var Ve = (e) => {
|
|
|
1063
1076
|
onClick: () => C(w("weather")),
|
|
1064
1077
|
className: "w-full justify-start",
|
|
1065
1078
|
children: [
|
|
1066
|
-
/* @__PURE__ */ c(
|
|
1079
|
+
/* @__PURE__ */ c(Ne, { className: "h-4 w-4 text-text-secondary" }),
|
|
1067
1080
|
" ",
|
|
1068
1081
|
v("healthybowl.crops.fieldDetail.quickActions.weatherData", "Weather Data")
|
|
1069
1082
|
]
|
|
@@ -1073,7 +1086,7 @@ var Ve = (e) => {
|
|
|
1073
1086
|
onClick: () => C(w("soil-health")),
|
|
1074
1087
|
className: "w-full justify-start",
|
|
1075
1088
|
children: [
|
|
1076
|
-
/* @__PURE__ */ c(
|
|
1089
|
+
/* @__PURE__ */ c(Ce, { className: "h-4 w-4 text-text-secondary" }),
|
|
1077
1090
|
" ",
|
|
1078
1091
|
v("healthybowl.crops.fieldDetail.quickActions.soilAnalysis", "Soil Analysis")
|
|
1079
1092
|
]
|
|
@@ -1083,7 +1096,7 @@ var Ve = (e) => {
|
|
|
1083
1096
|
onClick: () => C(w("crops")),
|
|
1084
1097
|
className: "w-full justify-start",
|
|
1085
1098
|
children: [
|
|
1086
|
-
/* @__PURE__ */ c(
|
|
1099
|
+
/* @__PURE__ */ c(Ie, { className: "h-4 w-4 text-text-secondary" }),
|
|
1087
1100
|
" ",
|
|
1088
1101
|
v("healthybowl.crops.fieldDetail.quickActions.cropHistory", "Crop History")
|
|
1089
1102
|
]
|
|
@@ -1093,7 +1106,7 @@ var Ve = (e) => {
|
|
|
1093
1106
|
onClick: () => C(w("analytics")),
|
|
1094
1107
|
className: "w-full justify-start",
|
|
1095
1108
|
children: [
|
|
1096
|
-
/* @__PURE__ */ c(
|
|
1109
|
+
/* @__PURE__ */ c(xe, { className: "h-4 w-4 text-text-secondary" }),
|
|
1097
1110
|
" ",
|
|
1098
1111
|
v("healthybowl.crops.fieldDetail.quickActions.generateReport", "Generate Report")
|
|
1099
1112
|
]
|
|
@@ -1108,11 +1121,11 @@ var Ve = (e) => {
|
|
|
1108
1121
|
children: v("healthybowl.crops.fieldDetail.recentActivity.heading", "Recent Activity")
|
|
1109
1122
|
}), /* @__PURE__ */ c("div", {
|
|
1110
1123
|
className: "space-y-4",
|
|
1111
|
-
children:
|
|
1124
|
+
children: Ut.map((t, n) => /* @__PURE__ */ l("div", {
|
|
1112
1125
|
className: "flex gap-3",
|
|
1113
1126
|
children: [/* @__PURE__ */ l("div", {
|
|
1114
1127
|
className: "relative flex flex-col items-center",
|
|
1115
|
-
children: [/* @__PURE__ */ c("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), n <
|
|
1128
|
+
children: [/* @__PURE__ */ c("div", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }), n < Ut.length - 1 && /* @__PURE__ */ c("div", { className: "w-0.5 flex-1 bg-border" })]
|
|
1116
1129
|
}), /* @__PURE__ */ l("div", {
|
|
1117
1130
|
className: "pb-4",
|
|
1118
1131
|
children: [/* @__PURE__ */ c("p", {
|
|
@@ -1130,17 +1143,17 @@ var Ve = (e) => {
|
|
|
1130
1143
|
})]
|
|
1131
1144
|
}),
|
|
1132
1145
|
/* @__PURE__ */ c(oe, {
|
|
1133
|
-
open:
|
|
1146
|
+
open: nt,
|
|
1134
1147
|
onClose: () => E(!1),
|
|
1135
1148
|
title: v("healthybowl.crops.fieldDetail.editModal.title", "Edit Field"),
|
|
1136
1149
|
description: v("healthybowl.crops.fieldDetail.editModal.description", "Update details for {{name}}", { name: k.name }),
|
|
1137
1150
|
size: "lg",
|
|
1138
|
-
footer: /* @__PURE__ */ l(
|
|
1151
|
+
footer: /* @__PURE__ */ l(Be, { children: [/* @__PURE__ */ c(u, {
|
|
1139
1152
|
variant: "outline",
|
|
1140
1153
|
onClick: () => E(!1),
|
|
1141
1154
|
children: v("healthybowl.common.cancel", "Cancel")
|
|
1142
1155
|
}), /* @__PURE__ */ c(u, {
|
|
1143
|
-
onClick:
|
|
1156
|
+
onClick: yt,
|
|
1144
1157
|
disabled: D,
|
|
1145
1158
|
children: D ? v("healthybowl.crops.fieldDetail.editModal.saving", "Saving...") : v("healthybowl.crops.fieldDetail.editModal.saveChanges", "Save Changes")
|
|
1146
1159
|
})] }),
|
|
@@ -1153,7 +1166,7 @@ var Ve = (e) => {
|
|
|
1153
1166
|
}), /* @__PURE__ */ c("input", {
|
|
1154
1167
|
type: "text",
|
|
1155
1168
|
value: A,
|
|
1156
|
-
onChange: (e) =>
|
|
1169
|
+
onChange: (e) => rt(e.target.value),
|
|
1157
1170
|
className: "mt-1 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
1158
1171
|
})] }),
|
|
1159
1172
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
@@ -1163,15 +1176,15 @@ var Ve = (e) => {
|
|
|
1163
1176
|
type: "number",
|
|
1164
1177
|
min: 0,
|
|
1165
1178
|
value: j,
|
|
1166
|
-
onChange: (e) =>
|
|
1179
|
+
onChange: (e) => it(e.target.value),
|
|
1167
1180
|
className: "mt-1 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
1168
1181
|
})] }),
|
|
1169
1182
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
1170
1183
|
className: "text-sm font-medium text-text-primary",
|
|
1171
1184
|
children: v("healthybowl.crops.fieldDetail.form.unit.label", "Unit")
|
|
1172
1185
|
}), /* @__PURE__ */ l(d, {
|
|
1173
|
-
value:
|
|
1174
|
-
onValueChange: (e) =>
|
|
1186
|
+
value: at,
|
|
1187
|
+
onValueChange: (e) => ot(e),
|
|
1175
1188
|
children: [/* @__PURE__ */ c(m, {
|
|
1176
1189
|
className: "mt-1 w-full",
|
|
1177
1190
|
children: /* @__PURE__ */ c(h, {})
|
|
@@ -1187,8 +1200,8 @@ var Ve = (e) => {
|
|
|
1187
1200
|
className: "text-sm font-medium text-text-primary",
|
|
1188
1201
|
children: v("healthybowl.crops.fieldDetail.form.status.label", "Status")
|
|
1189
1202
|
}), /* @__PURE__ */ l(d, {
|
|
1190
|
-
value:
|
|
1191
|
-
onValueChange:
|
|
1203
|
+
value: ut,
|
|
1204
|
+
onValueChange: dt,
|
|
1192
1205
|
children: [/* @__PURE__ */ c(m, {
|
|
1193
1206
|
className: "mt-1 w-full",
|
|
1194
1207
|
children: /* @__PURE__ */ c(h, {})
|
|
@@ -1212,8 +1225,8 @@ var Ve = (e) => {
|
|
|
1212
1225
|
children: v("healthybowl.crops.fieldDetail.form.soilType.label", "Soil Type")
|
|
1213
1226
|
}), /* @__PURE__ */ c("input", {
|
|
1214
1227
|
type: "text",
|
|
1215
|
-
value:
|
|
1216
|
-
onChange: (e) =>
|
|
1228
|
+
value: st,
|
|
1229
|
+
onChange: (e) => M(e.target.value),
|
|
1217
1230
|
className: "mt-1 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
1218
1231
|
})] }),
|
|
1219
1232
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
@@ -1222,7 +1235,7 @@ var Ve = (e) => {
|
|
|
1222
1235
|
}), /* @__PURE__ */ c("input", {
|
|
1223
1236
|
type: "text",
|
|
1224
1237
|
value: ct,
|
|
1225
|
-
onChange: (e) =>
|
|
1238
|
+
onChange: (e) => lt(e.target.value),
|
|
1226
1239
|
className: "mt-1 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
1227
1240
|
})] }),
|
|
1228
1241
|
/* @__PURE__ */ c("div", {
|
|
@@ -1231,8 +1244,8 @@ var Ve = (e) => {
|
|
|
1231
1244
|
className: "flex cursor-pointer items-center gap-2 text-sm font-medium text-text-primary",
|
|
1232
1245
|
children: [/* @__PURE__ */ c("input", {
|
|
1233
1246
|
type: "checkbox",
|
|
1234
|
-
checked:
|
|
1235
|
-
onChange: (e) =>
|
|
1247
|
+
checked: ft,
|
|
1248
|
+
onChange: (e) => pt(e.target.checked),
|
|
1236
1249
|
className: "h-4 w-4 rounded border-border-subtle text-primary focus:ring-[var(--color-focus-ring)]"
|
|
1237
1250
|
}), v("healthybowl.crops.fieldDetail.form.organicCertified.label", "Organic Certified")]
|
|
1238
1251
|
})
|
|
@@ -1241,13 +1254,13 @@ var Ve = (e) => {
|
|
|
1241
1254
|
})
|
|
1242
1255
|
}),
|
|
1243
1256
|
/* @__PURE__ */ c(ne, {
|
|
1244
|
-
toasts:
|
|
1245
|
-
onDismiss:
|
|
1257
|
+
toasts: et,
|
|
1258
|
+
onDismiss: tt
|
|
1246
1259
|
})
|
|
1247
1260
|
]
|
|
1248
1261
|
}) : /* @__PURE__ */ c(r, {
|
|
1249
1262
|
title: v("healthybowl.crops.fieldDetail.notFound.pageTitle", "Field Not Found"),
|
|
1250
|
-
children:
|
|
1263
|
+
children: Ye.crops ? /* @__PURE__ */ c(ae, {}) : Je.crops ? /* @__PURE__ */ c(te, { onRetry: Qe }) : /* @__PURE__ */ c(ee, {
|
|
1251
1264
|
title: v("healthybowl.crops.fieldDetail.notFound.title", "Field not found"),
|
|
1252
1265
|
description: v("healthybowl.crops.fieldDetail.notFound.description", "The field you are looking for does not exist."),
|
|
1253
1266
|
action: /* @__PURE__ */ c(u, {
|