@burdenoff/microfe-healthybowl 2026.1005.2 → 2026.1007.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/BedLayoutGrid.js +128 -115
- package/dist/healthybowl/components/BedLayoutGrid.js.map +1 -1
- package/dist/healthybowl/components/CropPicker.js +37 -0
- package/dist/healthybowl/components/CropPicker.js.map +1 -0
- package/dist/healthybowl/components/DataTable.js +125 -108
- package/dist/healthybowl/components/DataTable.js.map +1 -1
- package/dist/healthybowl/components/FilterBar.js +9 -6
- package/dist/healthybowl/components/FilterBar.js.map +1 -1
- package/dist/healthybowl/components/PlantCatalogPicker.js +32 -0
- package/dist/healthybowl/components/PlantCatalogPicker.js.map +1 -0
- package/dist/healthybowl/components/WorkspaceRecordPicker.js +164 -0
- package/dist/healthybowl/components/WorkspaceRecordPicker.js.map +1 -0
- package/dist/healthybowl/components/index.js +3 -1
- package/dist/healthybowl/hooks/useCropPage.js +71 -0
- package/dist/healthybowl/hooks/useCropPage.js.map +1 -0
- package/dist/healthybowl/hooks/usePlantCatalog.js +133 -44
- package/dist/healthybowl/hooks/usePlantCatalog.js.map +1 -1
- package/dist/healthybowl/hooks/usePlantingEstimate.js +6 -6
- package/dist/healthybowl/hooks/usePlantingEstimate.js.map +1 -1
- package/dist/healthybowl/hooks/useWorkspaceRead.js +46 -0
- package/dist/healthybowl/hooks/useWorkspaceRead.js.map +1 -0
- package/dist/healthybowl/pages/HomePage.js +143 -142
- package/dist/healthybowl/pages/HomePage.js.map +1 -1
- package/dist/healthybowl/pages/analytics/ReportsPage.js +8 -8
- package/dist/healthybowl/pages/catalog/PlantCatalogPage.js +266 -192
- package/dist/healthybowl/pages/catalog/PlantCatalogPage.js.map +1 -1
- package/dist/healthybowl/pages/catalog/WorkspaceBrowseFilters.js +58 -0
- package/dist/healthybowl/pages/catalog/WorkspaceBrowseFilters.js.map +1 -0
- package/dist/healthybowl/pages/catalog/browsePagination.js +24 -0
- package/dist/healthybowl/pages/catalog/browsePagination.js.map +1 -0
- package/dist/healthybowl/pages/compliance/ComplianceDocumentsPage.js +6 -6
- package/dist/healthybowl/pages/crops/CropDetailsPage.js +340 -348
- package/dist/healthybowl/pages/crops/CropDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropPlanningPage.js +468 -434
- package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropsPage.js +633 -542
- package/dist/healthybowl/pages/crops/CropsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js +875 -800
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/PlanningDetailsPage.js +459 -448
- package/dist/healthybowl/pages/crops/PlanningDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/SuccessionCropLabel.js +21 -0
- package/dist/healthybowl/pages/crops/SuccessionCropLabel.js.map +1 -0
- package/dist/healthybowl/pages/crops/planningEdit.js +30 -0
- package/dist/healthybowl/pages/crops/planningEdit.js.map +1 -0
- package/dist/healthybowl/pages/fields/FieldMapPage.js +989 -941
- package/dist/healthybowl/pages/fields/FieldMapPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/GeneralLedgerPage.js +6 -6
- package/dist/healthybowl/pages/financial/InvoiceManagementPage.js +7 -7
- package/dist/healthybowl/pages/financial/InvoiceManagementPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/TransactionsPage.js +541 -541
- package/dist/healthybowl/pages/financial/TransactionsPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +10 -10
- package/dist/healthybowl/pages/government-schemes/CommunicationPage.js +207 -207
- package/dist/healthybowl/pages/government-schemes/CommunicationPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemeAdminPage.js +38 -38
- package/dist/healthybowl/pages/government-schemes/SchemeAdminPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js +15 -15
- package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalRegistryPage.js +4 -4
- package/dist/healthybowl/pages/livestock/BreedingManagementPage.js +4 -4
- package/dist/healthybowl/pages/livestock/FeedManagementPage.js +4 -4
- package/dist/healthybowl/pages/livestock/HealthRecordsPage.js +16 -16
- package/dist/healthybowl/pages/livestock/HealthRecordsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/ProductionTrackingPage.js +4 -4
- package/dist/healthybowl/pages/livestock/VaccinationSchedulePage.js +4 -4
- package/dist/healthybowl/pages/market/MarketPricesPage.js +305 -305
- package/dist/healthybowl/pages/market/MarketPricesPage.js.map +1 -1
- package/dist/healthybowl/pages/network/CohortsPage.js +107 -107
- package/dist/healthybowl/pages/network/CohortsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/CommunityPage.js +247 -247
- package/dist/healthybowl/pages/network/CommunityPage.js.map +1 -1
- package/dist/healthybowl/pages/network/EventsPage.js +16 -16
- package/dist/healthybowl/pages/network/EventsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/ExpertsPage.js +470 -470
- package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/MentorsPage.js +6 -6
- package/dist/healthybowl/pages/pest-management/PestIssuesPage.js +8 -8
- package/dist/healthybowl/pages/pest-management/TreatmentLibraryPage.js +7 -7
- package/dist/healthybowl/pages/pest-management/TreatmentLibraryPage.js.map +1 -1
- package/dist/healthybowl/pages/production/ProductionBatchesPage.js +7 -7
- package/dist/healthybowl/pages/production/RecipeManagementPage.js +5 -5
- package/dist/healthybowl/pages/production/ValueAddedProductsPage.js +7 -7
- package/dist/healthybowl/pages/soil/SoilTestsPage.js +6 -6
- package/dist/healthybowl/pages/soil/SoilTestsPage.js.map +1 -1
- package/dist/healthybowl/pages/suppliers/SuppliersPage.js +10 -10
- package/dist/healthybowl/pages/sustainability/CarbonCreditLedgerPage.js +6 -6
- package/dist/healthybowl/pages/terrace/PlantingFormModal.js +151 -131
- package/dist/healthybowl/pages/terrace/PlantingFormModal.js.map +1 -1
- package/dist/healthybowl/pages/traceability/BatchTrackingPage.js +6 -6
- package/dist/healthybowl/utils/cropComparison.js +1 -1
- package/dist/healthybowl/utils/cropComparison.js.map +1 -1
- package/dist/healthybowl/utils/cropPicker.js +35 -0
- package/dist/healthybowl/utils/cropPicker.js.map +1 -0
- package/dist/healthybowl/utils/plantingCapacity.js +2 -2
- package/dist/healthybowl/utils/plantingCapacity.js.map +1 -1
- package/dist/healthybowl/utils/quotaLabels.js +8 -0
- package/dist/healthybowl/utils/quotaLabels.js.map +1 -0
- package/dist/healthybowl/utils/seedRate.js +1 -8
- package/dist/healthybowl/utils/seedRate.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,143 +1,143 @@
|
|
|
1
1
|
import { cn as e, formatDate as t } from "../../utils/helpers.js";
|
|
2
2
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ToastContainer as
|
|
7
|
-
import { PageLoader as
|
|
3
|
+
import { FilterBar as r } from "../../components/FilterBar.js";
|
|
4
|
+
import { ErrorState as i } from "../../components/ErrorState.js";
|
|
5
|
+
import { ChartCard as a } from "../../components/ChartCard.js";
|
|
6
|
+
import { ToastContainer as o } from "../../components/Toast.js";
|
|
7
|
+
import { PageLoader as ee } from "../../components/PageLoader.js";
|
|
8
8
|
import { Modal as te } from "../../components/Modal.js";
|
|
9
9
|
import { useToast as ne } from "../../hooks/useToast.js";
|
|
10
10
|
import "../../components/index.js";
|
|
11
11
|
import { useHealthyBowlData as re } from "../../hooks/useHealthyBowlData.js";
|
|
12
12
|
import { useEffect as s, useState as c } from "react";
|
|
13
13
|
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
14
|
-
import { AlertTriangle as u, CalendarDays as d, ChevronDown as f, ChevronUp as p, Circle as m, HelpCircle as h, Info as g, Landmark as
|
|
15
|
-
import { useNavigate as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { Button as
|
|
14
|
+
import { AlertTriangle as u, CalendarDays as d, ChevronDown as f, ChevronUp as p, Circle as m, HelpCircle as h, Info as g, Landmark as _, Mail as v, MapPin as ie, Megaphone as y, MessageSquare as ae, Phone as oe, Plus as b, Send as se } from "lucide-react";
|
|
15
|
+
import { useNavigate as ce } from "react-router";
|
|
16
|
+
import { Fragment as le, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
17
|
+
import { Button as C, Select as w, SelectContent as T, SelectItem as E, SelectTrigger as D, SelectValue as O } from "@burdenoff/fe-libs/ui";
|
|
18
18
|
//#region src/healthybowl/pages/government-schemes/CommunicationPage.tsx
|
|
19
|
-
var
|
|
20
|
-
let { t:
|
|
19
|
+
var k = () => {
|
|
20
|
+
let { t: k } = l(), A = ce(), { messages: j, announcements: M, loadings: N, errors: P, refetch: F } = re(), { toasts: I, toast: L, dismiss: R } = ne(), z = [
|
|
21
21
|
{
|
|
22
|
-
q:
|
|
23
|
-
a:
|
|
22
|
+
q: k("healthybowl.governmentSchemes.communication.faqs.apply.q", "How do I apply for a government scheme?"),
|
|
23
|
+
a: k("healthybowl.governmentSchemes.communication.faqs.apply.a", "Navigate to Discover Schemes, review eligibility criteria, and click the Apply button on any open scheme.")
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
q:
|
|
27
|
-
a:
|
|
26
|
+
q: k("healthybowl.governmentSchemes.communication.faqs.reviewTime.q", "How long does application review take?"),
|
|
27
|
+
a: k("healthybowl.governmentSchemes.communication.faqs.reviewTime.a", "Typically 2-4 weeks. You can track progress on the Application Tracking page.")
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
q:
|
|
31
|
-
a:
|
|
30
|
+
q: k("healthybowl.governmentSchemes.communication.faqs.multiple.q", "Can I apply for multiple schemes?"),
|
|
31
|
+
a: k("healthybowl.governmentSchemes.communication.faqs.multiple.a", "Yes, you can apply for multiple schemes as long as you meet each scheme's eligibility criteria.")
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
q:
|
|
35
|
-
a:
|
|
34
|
+
q: k("healthybowl.governmentSchemes.communication.faqs.documents.q", "What documents are required?"),
|
|
35
|
+
a: k("healthybowl.governmentSchemes.communication.faqs.documents.a", "Requirements vary by scheme. Generally: farm ownership proof, organic certification, ID, and bank details.")
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
q:
|
|
39
|
-
a:
|
|
38
|
+
q: k("healthybowl.governmentSchemes.communication.faqs.disbursed.q", "How are benefits disbursed?"),
|
|
39
|
+
a: k("healthybowl.governmentSchemes.communication.faqs.disbursed.a", "Approved benefits are typically transferred directly to your registered bank account within 30 days of approval.")
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
q:
|
|
43
|
-
a:
|
|
42
|
+
q: k("healthybowl.governmentSchemes.communication.faqs.bankDetails.q", "How do I update my bank details?"),
|
|
43
|
+
a: k("healthybowl.governmentSchemes.communication.faqs.bankDetails.a", "Go to your profile settings and update the bank account information under the Payment Details section. Changes take 2-3 business days to reflect.")
|
|
44
44
|
}
|
|
45
|
-
],
|
|
45
|
+
], B = [
|
|
46
46
|
{
|
|
47
47
|
value: "Dept of Agriculture",
|
|
48
|
-
label:
|
|
48
|
+
label: k("healthybowl.governmentSchemes.communication.departments.deptOfAgriculture", "Dept of Agriculture")
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
value: "Federal Crop Insurance Corp",
|
|
52
|
-
label:
|
|
52
|
+
label: k("healthybowl.governmentSchemes.communication.departments.federalCropInsuranceCorp", "Federal Crop Insurance Corp")
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
value: "USDA Rural Development",
|
|
56
|
-
label:
|
|
56
|
+
label: k("healthybowl.governmentSchemes.communication.departments.usdaRuralDevelopment", "USDA Rural Development")
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
value: "Extension Services",
|
|
60
|
-
label:
|
|
60
|
+
label: k("healthybowl.governmentSchemes.communication.departments.extensionServices", "Extension Services")
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
value: "Water Resources Board",
|
|
64
|
-
label:
|
|
64
|
+
label: k("healthybowl.governmentSchemes.communication.departments.waterResourcesBoard", "Water Resources Board")
|
|
65
65
|
}
|
|
66
|
-
], [
|
|
66
|
+
], [V, H] = c("messages"), [U, W] = c([]), [G, K] = c(null), [q, ue] = c(""), [J, de] = c(null), [fe, Y] = c(!1), [X, Z] = c({
|
|
67
67
|
department: "",
|
|
68
68
|
subject: "",
|
|
69
69
|
body: ""
|
|
70
70
|
});
|
|
71
71
|
s(() => {
|
|
72
|
-
|
|
73
|
-
}, [
|
|
74
|
-
let
|
|
75
|
-
|
|
72
|
+
W(j);
|
|
73
|
+
}, [j]);
|
|
74
|
+
let Q = U.filter((e) => e.unread).length, $ = U.filter((e) => q === "" || (e.subject ?? "").toLowerCase().includes(q.toLowerCase()) || (e.from ?? "").toLowerCase().includes(q.toLowerCase())), pe = (e) => {
|
|
75
|
+
W((t) => t.map((t) => t.id === e ? {
|
|
76
76
|
...t,
|
|
77
77
|
unread: !1
|
|
78
78
|
} : t));
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
if (!
|
|
83
|
-
|
|
84
|
-
title:
|
|
79
|
+
}, me = (e) => {
|
|
80
|
+
pe(e.id), K(e);
|
|
81
|
+
}, he = () => {
|
|
82
|
+
if (!X.department || !X.subject || !X.body) {
|
|
83
|
+
L({
|
|
84
|
+
title: k("healthybowl.governmentSchemes.communication.toast.allFieldsRequired", "All fields are required"),
|
|
85
85
|
variant: "error"
|
|
86
86
|
});
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
title:
|
|
91
|
-
description:
|
|
89
|
+
Y(!1), L({
|
|
90
|
+
title: k("healthybowl.governmentSchemes.communication.toast.messagingUnavailable.title", "Messaging is not available yet"),
|
|
91
|
+
description: k("healthybowl.governmentSchemes.communication.toast.messagingUnavailable.description", "Sending messages to departments is not available yet. Your message was not sent."),
|
|
92
92
|
variant: "warning"
|
|
93
|
-
}),
|
|
93
|
+
}), Z({
|
|
94
94
|
department: "",
|
|
95
95
|
subject: "",
|
|
96
96
|
body: ""
|
|
97
97
|
});
|
|
98
|
-
},
|
|
98
|
+
}, ge = [
|
|
99
99
|
{
|
|
100
100
|
id: "messages",
|
|
101
|
-
label:
|
|
102
|
-
icon:
|
|
103
|
-
badge:
|
|
101
|
+
label: k("healthybowl.governmentSchemes.communication.tabs.messages", "Messages"),
|
|
102
|
+
icon: ae,
|
|
103
|
+
badge: Q > 0 ? Q : void 0
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
id: "announcements",
|
|
107
|
-
label:
|
|
108
|
-
icon:
|
|
107
|
+
label: k("healthybowl.governmentSchemes.communication.tabs.announcements", "Announcements"),
|
|
108
|
+
icon: y
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
id: "helpdesk",
|
|
112
|
-
label:
|
|
112
|
+
label: k("healthybowl.governmentSchemes.communication.tabs.helpdesk", "Helpdesk"),
|
|
113
113
|
icon: h
|
|
114
114
|
}
|
|
115
115
|
], _e = (e) => {
|
|
116
116
|
switch (e) {
|
|
117
|
-
case "New Scheme": return /* @__PURE__ */
|
|
118
|
-
case "Deadline Update": return /* @__PURE__ */
|
|
119
|
-
case "System": return /* @__PURE__ */
|
|
120
|
-
case "Training": return /* @__PURE__ */
|
|
121
|
-
default: return /* @__PURE__ */
|
|
117
|
+
case "New Scheme": return /* @__PURE__ */ x(_, { className: "h-4 w-4" });
|
|
118
|
+
case "Deadline Update": return /* @__PURE__ */ x(u, { className: "h-4 w-4" });
|
|
119
|
+
case "System": return /* @__PURE__ */ x(g, { className: "h-4 w-4" });
|
|
120
|
+
case "Training": return /* @__PURE__ */ x(h, { className: "h-4 w-4" });
|
|
121
|
+
default: return /* @__PURE__ */ x(y, { className: "h-4 w-4" });
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
title:
|
|
126
|
-
description:
|
|
124
|
+
return /* @__PURE__ */ S(n, {
|
|
125
|
+
title: k("healthybowl.governmentSchemes.communication.title", "Communication"),
|
|
126
|
+
description: k("healthybowl.governmentSchemes.communication.description", "Messages, announcements, and helpdesk support"),
|
|
127
127
|
purpose: "Your inbox for anything scheme-related — messages from officials, announcements about new programs, and a helpdesk when you're stuck. Check in here so you never miss a deadline or update.",
|
|
128
128
|
children: [
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ x("div", {
|
|
130
130
|
className: "flex items-center gap-1 rounded-lg border border-border-subtle bg-bg-sunken/50 p-1",
|
|
131
|
-
children:
|
|
131
|
+
children: ge.map((t) => {
|
|
132
132
|
let n = t.icon;
|
|
133
|
-
return /* @__PURE__ */
|
|
133
|
+
return /* @__PURE__ */ S("button", {
|
|
134
134
|
type: "button",
|
|
135
|
-
onClick: () =>
|
|
136
|
-
className: e("flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors",
|
|
135
|
+
onClick: () => H(t.id),
|
|
136
|
+
className: e("flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", V === t.id ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"),
|
|
137
137
|
children: [
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ x(n, { className: "h-4 w-4" }),
|
|
139
139
|
t.label,
|
|
140
|
-
t.badge && /* @__PURE__ */
|
|
140
|
+
t.badge && /* @__PURE__ */ x("span", {
|
|
141
141
|
className: "flex h-5 w-5 items-center justify-center rounded-full bg-action-primary-bg text-[10px] font-bold text-action-primary-text",
|
|
142
142
|
children: t.badge
|
|
143
143
|
})
|
|
@@ -145,112 +145,112 @@ var O = () => {
|
|
|
145
145
|
}, t.id);
|
|
146
146
|
})
|
|
147
147
|
}),
|
|
148
|
-
|
|
148
|
+
V === "messages" && /* @__PURE__ */ S("div", {
|
|
149
149
|
className: "space-y-4",
|
|
150
|
-
children: [/* @__PURE__ */
|
|
151
|
-
searchValue:
|
|
152
|
-
onSearchChange:
|
|
153
|
-
searchPlaceholder:
|
|
154
|
-
actions: /* @__PURE__ */
|
|
155
|
-
onClick: () =>
|
|
150
|
+
children: [/* @__PURE__ */ x(r, {
|
|
151
|
+
searchValue: q,
|
|
152
|
+
onSearchChange: ue,
|
|
153
|
+
searchPlaceholder: k("healthybowl.governmentSchemes.communication.messages.searchPlaceholder", "Search messages..."),
|
|
154
|
+
actions: /* @__PURE__ */ S(C, {
|
|
155
|
+
onClick: () => Y(!0),
|
|
156
156
|
size: "sm",
|
|
157
157
|
children: [
|
|
158
|
-
/* @__PURE__ */ b
|
|
158
|
+
/* @__PURE__ */ x(b, { className: "h-3.5 w-3.5" }),
|
|
159
159
|
" ",
|
|
160
|
-
|
|
160
|
+
k("healthybowl.governmentSchemes.communication.actions.compose", "Compose")
|
|
161
161
|
]
|
|
162
162
|
})
|
|
163
|
-
}),
|
|
163
|
+
}), G ? /* @__PURE__ */ S("div", {
|
|
164
164
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
165
165
|
children: [
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
onClick: () =>
|
|
166
|
+
/* @__PURE__ */ S(C, {
|
|
167
|
+
onClick: () => K(null),
|
|
168
168
|
variant: "ghost",
|
|
169
169
|
size: "sm",
|
|
170
170
|
className: "mb-4 text-primary",
|
|
171
|
-
children: ["← ",
|
|
171
|
+
children: ["← ", k("healthybowl.governmentSchemes.communication.messages.backToInbox", "Back to inbox")]
|
|
172
172
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ x("div", {
|
|
174
174
|
className: "flex items-start justify-between",
|
|
175
|
-
children: /* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
175
|
+
children: /* @__PURE__ */ S("div", { children: [
|
|
176
|
+
/* @__PURE__ */ x("h3", {
|
|
177
177
|
className: "text-base font-semibold text-text-primary",
|
|
178
|
-
children:
|
|
178
|
+
children: G.subject
|
|
179
179
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ x("p", {
|
|
181
181
|
className: "mt-1 text-xs text-text-secondary",
|
|
182
|
-
children:
|
|
183
|
-
from:
|
|
184
|
-
department:
|
|
182
|
+
children: k("healthybowl.governmentSchemes.communication.messages.fromLine", "From: {{from}} ({{department}})", {
|
|
183
|
+
from: G.from,
|
|
184
|
+
department: G.department
|
|
185
185
|
})
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ x("p", {
|
|
188
188
|
className: "text-xs text-text-secondary",
|
|
189
|
-
children: t(
|
|
189
|
+
children: t(G.date)
|
|
190
190
|
})
|
|
191
191
|
] })
|
|
192
192
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ x("div", {
|
|
194
194
|
className: "mt-4 rounded-md bg-bg-sunken/50 p-4",
|
|
195
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ x("p", {
|
|
196
196
|
className: "text-sm leading-relaxed text-text-primary",
|
|
197
|
-
children:
|
|
197
|
+
children: G.body
|
|
198
198
|
})
|
|
199
199
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ x("div", {
|
|
201
201
|
className: "mt-4 flex gap-2",
|
|
202
|
-
children: /* @__PURE__ */
|
|
202
|
+
children: /* @__PURE__ */ x(C, {
|
|
203
203
|
onClick: () => {
|
|
204
|
-
|
|
205
|
-
department:
|
|
206
|
-
subject: `Re: ${
|
|
204
|
+
Z({
|
|
205
|
+
department: G.department,
|
|
206
|
+
subject: `Re: ${G.subject}`,
|
|
207
207
|
body: ""
|
|
208
|
-
}),
|
|
208
|
+
}), Y(!0), K(null);
|
|
209
209
|
},
|
|
210
|
-
children:
|
|
210
|
+
children: k("healthybowl.governmentSchemes.communication.messages.reply", "Reply")
|
|
211
211
|
})
|
|
212
212
|
})
|
|
213
213
|
]
|
|
214
|
-
}) : /* @__PURE__ */
|
|
214
|
+
}) : /* @__PURE__ */ x("div", {
|
|
215
215
|
className: "space-y-2",
|
|
216
|
-
children:
|
|
216
|
+
children: N.government ? /* @__PURE__ */ x(ee, {}) : P.government ? /* @__PURE__ */ x(i, { onRetry: F }) : $.length === 0 ? /* @__PURE__ */ S("div", {
|
|
217
217
|
className: "rounded-lg border border-dashed border-border-subtle bg-bg-surface/50 p-8 text-center",
|
|
218
218
|
children: [
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ x(v, { className: "mx-auto h-10 w-10 text-text-secondary" }),
|
|
220
|
+
/* @__PURE__ */ x("p", {
|
|
221
221
|
className: "mt-2 text-sm font-medium text-text-primary",
|
|
222
|
-
children:
|
|
222
|
+
children: k("healthybowl.governmentSchemes.communication.messages.emptyState.title", "No messages found")
|
|
223
223
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ x("p", {
|
|
225
225
|
className: "mt-1 text-xs text-text-secondary",
|
|
226
|
-
children:
|
|
226
|
+
children: k("healthybowl.governmentSchemes.communication.messages.emptyState.hint", "Try adjusting your search")
|
|
227
227
|
})
|
|
228
228
|
]
|
|
229
|
-
}) :
|
|
229
|
+
}) : $.map((n) => /* @__PURE__ */ S("button", {
|
|
230
230
|
type: "button",
|
|
231
|
-
onClick: () =>
|
|
231
|
+
onClick: () => me(n),
|
|
232
232
|
className: e("flex w-full items-start gap-3 rounded-lg border border-border-subtle p-4 text-start transition-colors hover:bg-bg-sunken/50", n.unread && "border-primary/30 bg-action-primary-bg/5"),
|
|
233
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ x("div", {
|
|
234
234
|
className: "mt-1 shrink-0",
|
|
235
|
-
children: n.unread ? /* @__PURE__ */
|
|
236
|
-
}), /* @__PURE__ */
|
|
235
|
+
children: n.unread ? /* @__PURE__ */ x(m, { className: "h-2.5 w-2.5 fill-primary text-primary" }) : /* @__PURE__ */ x(m, { className: "h-2.5 w-2.5 text-text-secondary/30" })
|
|
236
|
+
}), /* @__PURE__ */ S("div", {
|
|
237
237
|
className: "flex-1 min-w-0",
|
|
238
238
|
children: [
|
|
239
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ S("div", {
|
|
240
240
|
className: "flex items-center justify-between gap-2",
|
|
241
|
-
children: [/* @__PURE__ */
|
|
241
|
+
children: [/* @__PURE__ */ x("p", {
|
|
242
242
|
className: e("text-sm", n.unread ? "font-semibold text-text-primary" : "font-medium text-text-primary"),
|
|
243
243
|
children: n.from
|
|
244
|
-
}), /* @__PURE__ */
|
|
244
|
+
}), /* @__PURE__ */ x("span", {
|
|
245
245
|
className: "shrink-0 text-xs text-text-secondary",
|
|
246
246
|
children: t(n.date)
|
|
247
247
|
})]
|
|
248
248
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ x("p", {
|
|
250
250
|
className: e("mt-0.5 text-sm", n.unread ? "font-medium text-text-primary" : "text-text-primary"),
|
|
251
251
|
children: n.subject
|
|
252
252
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ x("p", {
|
|
254
254
|
className: "mt-0.5 truncate text-xs text-text-secondary",
|
|
255
255
|
children: n.preview
|
|
256
256
|
})
|
|
@@ -259,33 +259,33 @@ var O = () => {
|
|
|
259
259
|
}, n.id))
|
|
260
260
|
})]
|
|
261
261
|
}),
|
|
262
|
-
|
|
262
|
+
V === "announcements" && /* @__PURE__ */ x("div", {
|
|
263
263
|
className: "space-y-4",
|
|
264
|
-
children:
|
|
264
|
+
children: M.map((e) => /* @__PURE__ */ x("div", {
|
|
265
265
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
266
|
-
children: /* @__PURE__ */
|
|
266
|
+
children: /* @__PURE__ */ S("div", {
|
|
267
267
|
className: "flex items-start gap-3",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ x("div", {
|
|
269
269
|
className: "mt-0.5 shrink-0 rounded-md bg-bg-sunken p-2 text-text-secondary",
|
|
270
270
|
children: _e(e.category)
|
|
271
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), /* @__PURE__ */ S("div", {
|
|
272
272
|
className: "flex-1",
|
|
273
|
-
children: [/* @__PURE__ */
|
|
273
|
+
children: [/* @__PURE__ */ x("div", {
|
|
274
274
|
className: "flex items-start justify-between gap-3",
|
|
275
|
-
children: /* @__PURE__ */
|
|
275
|
+
children: /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h3", {
|
|
276
276
|
className: "text-sm font-semibold text-text-primary",
|
|
277
277
|
children: e.title
|
|
278
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ S("div", {
|
|
279
279
|
className: "mt-1 flex items-center gap-2",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ x("span", {
|
|
281
281
|
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary",
|
|
282
282
|
children: e.category
|
|
283
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ S("span", {
|
|
284
284
|
className: "flex items-center gap-1 text-xs text-text-secondary",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ x(d, { className: "h-3 w-3" }), t(e.date)]
|
|
286
286
|
})]
|
|
287
287
|
})] })
|
|
288
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ x("p", {
|
|
289
289
|
className: "mt-3 text-sm leading-relaxed text-text-secondary",
|
|
290
290
|
children: e.content
|
|
291
291
|
})]
|
|
@@ -293,168 +293,168 @@ var O = () => {
|
|
|
293
293
|
})
|
|
294
294
|
}, e.id))
|
|
295
295
|
}),
|
|
296
|
-
|
|
296
|
+
V === "helpdesk" && /* @__PURE__ */ S("div", {
|
|
297
297
|
className: "space-y-6",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
299
|
-
title:
|
|
300
|
-
description:
|
|
301
|
-
children: /* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ x(a, {
|
|
299
|
+
title: k("healthybowl.governmentSchemes.communication.helpdesk.faqTitle", "Frequently Asked Questions"),
|
|
300
|
+
description: k("healthybowl.governmentSchemes.communication.helpdesk.faqDescription", "Common questions about government schemes"),
|
|
301
|
+
children: /* @__PURE__ */ x("div", {
|
|
302
302
|
className: "space-y-2",
|
|
303
|
-
children:
|
|
303
|
+
children: z.map((e, t) => /* @__PURE__ */ S("div", {
|
|
304
304
|
className: "rounded-md border border-border-subtle",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ S("button", {
|
|
306
306
|
type: "button",
|
|
307
|
-
onClick: () =>
|
|
307
|
+
onClick: () => de(J === t ? null : t),
|
|
308
308
|
className: "flex w-full items-center justify-between px-4 py-3 text-start text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
|
|
309
|
-
children: [e.q,
|
|
310
|
-
}),
|
|
309
|
+
children: [e.q, x(J === t ? p : f, { className: "h-4 w-4 shrink-0 text-text-secondary" })]
|
|
310
|
+
}), J === t && /* @__PURE__ */ x("div", {
|
|
311
311
|
className: "border-t border-border-subtle px-4 py-3 text-sm leading-relaxed text-text-secondary",
|
|
312
312
|
children: e.a
|
|
313
313
|
})]
|
|
314
314
|
}, t))
|
|
315
315
|
})
|
|
316
|
-
}), /* @__PURE__ */
|
|
316
|
+
}), /* @__PURE__ */ S("div", {
|
|
317
317
|
className: "grid gap-6 lg:grid-cols-2",
|
|
318
|
-
children: [/* @__PURE__ */
|
|
319
|
-
title:
|
|
320
|
-
children: /* @__PURE__ */
|
|
318
|
+
children: [/* @__PURE__ */ x(a, {
|
|
319
|
+
title: k("healthybowl.governmentSchemes.communication.helpdesk.contactTitle", "Contact Information"),
|
|
320
|
+
children: /* @__PURE__ */ x("div", {
|
|
321
321
|
className: "space-y-3",
|
|
322
322
|
children: [
|
|
323
323
|
{
|
|
324
324
|
id: "helpline",
|
|
325
|
-
icon:
|
|
326
|
-
label:
|
|
327
|
-
value:
|
|
325
|
+
icon: oe,
|
|
326
|
+
label: k("healthybowl.governmentSchemes.communication.contact.helpline.label", "Helpline"),
|
|
327
|
+
value: k("healthybowl.governmentSchemes.communication.contact.helpline.value", "1800-XXX-XXXX (Toll Free)")
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
330
|
id: "email",
|
|
331
|
-
icon:
|
|
332
|
-
label:
|
|
331
|
+
icon: v,
|
|
332
|
+
label: k("healthybowl.governmentSchemes.communication.contact.email.label", "Email"),
|
|
333
333
|
value: "support@agriculture.gov"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
id: "office",
|
|
337
|
-
icon:
|
|
338
|
-
label:
|
|
339
|
-
value:
|
|
337
|
+
icon: ie,
|
|
338
|
+
label: k("healthybowl.governmentSchemes.communication.contact.office.label", "Office"),
|
|
339
|
+
value: k("healthybowl.governmentSchemes.communication.contact.office.value", "District Agriculture Office, County HQ")
|
|
340
340
|
}
|
|
341
|
-
].map(({ id: e, icon: t, label: n, value: r }) => /* @__PURE__ */
|
|
341
|
+
].map(({ id: e, icon: t, label: n, value: r }) => /* @__PURE__ */ S("div", {
|
|
342
342
|
className: "flex items-center gap-3 rounded-md bg-bg-sunken p-3",
|
|
343
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ x(t, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
344
344
|
className: "text-xs text-text-secondary",
|
|
345
345
|
children: n
|
|
346
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ x("p", {
|
|
347
347
|
className: "text-sm text-text-primary",
|
|
348
348
|
children: r
|
|
349
349
|
})] })]
|
|
350
350
|
}, e))
|
|
351
351
|
})
|
|
352
|
-
}), /* @__PURE__ */
|
|
353
|
-
title:
|
|
354
|
-
description:
|
|
355
|
-
actions: /* @__PURE__ */
|
|
356
|
-
onClick: () =>
|
|
352
|
+
}), /* @__PURE__ */ x(a, {
|
|
353
|
+
title: k("healthybowl.governmentSchemes.communication.helpdesk.submitQueryTitle", "Submit a Query"),
|
|
354
|
+
description: k("healthybowl.governmentSchemes.communication.helpdesk.submitQueryDescription", "Can't find your answer? Open a support ticket and track its status."),
|
|
355
|
+
actions: /* @__PURE__ */ S(C, {
|
|
356
|
+
onClick: () => A("/support"),
|
|
357
357
|
size: "sm",
|
|
358
358
|
children: [
|
|
359
|
-
/* @__PURE__ */ b
|
|
359
|
+
/* @__PURE__ */ x(b, { className: "h-3.5 w-3.5" }),
|
|
360
360
|
" ",
|
|
361
|
-
|
|
361
|
+
k("healthybowl.governmentSchemes.communication.actions.newQuery", "New Query")
|
|
362
362
|
]
|
|
363
363
|
}),
|
|
364
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ S("div", {
|
|
365
365
|
className: "flex flex-col items-center justify-center py-6 text-center",
|
|
366
366
|
children: [
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ x(h, { className: "h-10 w-10 text-text-secondary" }),
|
|
368
|
+
/* @__PURE__ */ x("p", {
|
|
369
369
|
className: "mt-3 text-sm text-text-secondary",
|
|
370
|
-
children:
|
|
370
|
+
children: k("healthybowl.governmentSchemes.communication.helpdesk.responseTime", "Raise a ticket in the Support Center — our team will follow up and you can track its status there.")
|
|
371
371
|
}),
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
onClick: () =>
|
|
372
|
+
/* @__PURE__ */ x(C, {
|
|
373
|
+
onClick: () => A("/support"),
|
|
374
374
|
variant: "outline",
|
|
375
375
|
size: "sm",
|
|
376
376
|
className: "mt-4",
|
|
377
|
-
children:
|
|
377
|
+
children: k("healthybowl.governmentSchemes.communication.helpdesk.goToSupport", "Go to Support Center")
|
|
378
378
|
})
|
|
379
379
|
]
|
|
380
380
|
})
|
|
381
381
|
})]
|
|
382
382
|
})]
|
|
383
383
|
}),
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
-
open:
|
|
386
|
-
onClose: () =>
|
|
387
|
-
title:
|
|
388
|
-
description:
|
|
389
|
-
footer: /* @__PURE__ */
|
|
390
|
-
onClick: () =>
|
|
384
|
+
/* @__PURE__ */ x(te, {
|
|
385
|
+
open: fe,
|
|
386
|
+
onClose: () => Y(!1),
|
|
387
|
+
title: k("healthybowl.governmentSchemes.communication.compose.title", "Compose Message"),
|
|
388
|
+
description: k("healthybowl.governmentSchemes.communication.compose.description", "Send a message to a government department"),
|
|
389
|
+
footer: /* @__PURE__ */ S(le, { children: [/* @__PURE__ */ x(C, {
|
|
390
|
+
onClick: () => Y(!1),
|
|
391
391
|
variant: "outline",
|
|
392
|
-
children:
|
|
393
|
-
}), /* @__PURE__ */
|
|
394
|
-
onClick:
|
|
392
|
+
children: k("healthybowl.common.cancel", "Cancel")
|
|
393
|
+
}), /* @__PURE__ */ S(C, {
|
|
394
|
+
onClick: he,
|
|
395
395
|
children: [
|
|
396
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ x(se, { className: "h-4 w-4" }),
|
|
397
397
|
" ",
|
|
398
|
-
|
|
398
|
+
k("healthybowl.governmentSchemes.communication.compose.send", "Send")
|
|
399
399
|
]
|
|
400
400
|
})] }),
|
|
401
|
-
children: /* @__PURE__ */
|
|
401
|
+
children: /* @__PURE__ */ S("div", {
|
|
402
402
|
className: "space-y-3",
|
|
403
403
|
children: [
|
|
404
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
405
405
|
className: "block text-xs font-medium text-text-secondary",
|
|
406
|
-
children:
|
|
407
|
-
}), /* @__PURE__ */
|
|
408
|
-
value:
|
|
409
|
-
onValueChange: (e) =>
|
|
410
|
-
...
|
|
406
|
+
children: k("healthybowl.governmentSchemes.communication.compose.fields.department.label", "To (Department) *")
|
|
407
|
+
}), /* @__PURE__ */ S(w, {
|
|
408
|
+
value: X.department,
|
|
409
|
+
onValueChange: (e) => Z({
|
|
410
|
+
...X,
|
|
411
411
|
department: e
|
|
412
412
|
}),
|
|
413
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ x(D, {
|
|
414
414
|
className: "mt-1 w-full",
|
|
415
|
-
children: /* @__PURE__ */
|
|
416
|
-
}), /* @__PURE__ */
|
|
415
|
+
children: /* @__PURE__ */ x(O, { placeholder: k("healthybowl.governmentSchemes.communication.compose.fields.department.placeholder", "Select department...") })
|
|
416
|
+
}), /* @__PURE__ */ x(T, { children: B.map((e) => /* @__PURE__ */ x(E, {
|
|
417
417
|
value: e.value,
|
|
418
418
|
children: e.label
|
|
419
419
|
}, e.value)) })]
|
|
420
420
|
})] }),
|
|
421
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
422
422
|
className: "block text-xs font-medium text-text-secondary",
|
|
423
|
-
children:
|
|
424
|
-
}), /* @__PURE__ */
|
|
423
|
+
children: k("healthybowl.governmentSchemes.communication.compose.fields.subject.label", "Subject *")
|
|
424
|
+
}), /* @__PURE__ */ x("input", {
|
|
425
425
|
type: "text",
|
|
426
|
-
value:
|
|
427
|
-
onChange: (e) =>
|
|
428
|
-
...
|
|
426
|
+
value: X.subject,
|
|
427
|
+
onChange: (e) => Z({
|
|
428
|
+
...X,
|
|
429
429
|
subject: e.target.value
|
|
430
430
|
}),
|
|
431
|
-
placeholder:
|
|
431
|
+
placeholder: k("healthybowl.governmentSchemes.communication.compose.fields.subject.placeholder", "Message subject"),
|
|
432
432
|
className: "mt-1 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary"
|
|
433
433
|
})] }),
|
|
434
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
435
435
|
className: "block text-xs font-medium text-text-secondary",
|
|
436
|
-
children:
|
|
437
|
-
}), /* @__PURE__ */
|
|
438
|
-
value:
|
|
439
|
-
onChange: (e) =>
|
|
440
|
-
...
|
|
436
|
+
children: k("healthybowl.governmentSchemes.communication.compose.fields.message.label", "Message *")
|
|
437
|
+
}), /* @__PURE__ */ x("textarea", {
|
|
438
|
+
value: X.body,
|
|
439
|
+
onChange: (e) => Z({
|
|
440
|
+
...X,
|
|
441
441
|
body: e.target.value
|
|
442
442
|
}),
|
|
443
|
-
placeholder:
|
|
443
|
+
placeholder: k("healthybowl.governmentSchemes.communication.compose.fields.message.placeholder", "Type your message..."),
|
|
444
444
|
rows: 5,
|
|
445
445
|
className: "mt-1 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary"
|
|
446
446
|
})] })
|
|
447
447
|
]
|
|
448
448
|
})
|
|
449
449
|
}),
|
|
450
|
-
/* @__PURE__ */
|
|
451
|
-
toasts:
|
|
452
|
-
onDismiss:
|
|
450
|
+
/* @__PURE__ */ x(o, {
|
|
451
|
+
toasts: I,
|
|
452
|
+
onDismiss: R
|
|
453
453
|
})
|
|
454
454
|
]
|
|
455
455
|
});
|
|
456
456
|
};
|
|
457
457
|
//#endregion
|
|
458
|
-
export {
|
|
458
|
+
export { k as CommunicationPage };
|
|
459
459
|
|
|
460
460
|
//# sourceMappingURL=CommunicationPage.js.map
|