@burdenoff/microfe-healthybowl 2026.810.1 → 2026.810.3
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.
|
@@ -2,164 +2,142 @@ import { cn as e, formatDate as t } from "../../utils/helpers.js";
|
|
|
2
2
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
3
3
|
import { ErrorState as r } from "../../components/ErrorState.js";
|
|
4
4
|
import { ChartCard as i } from "../../components/ChartCard.js";
|
|
5
|
-
import { FilterBar as
|
|
6
|
-
import { ToastContainer as
|
|
5
|
+
import { FilterBar as a } from "../../components/FilterBar.js";
|
|
6
|
+
import { ToastContainer as ee } from "../../components/Toast.js";
|
|
7
7
|
import { PageLoader as o } from "../../components/PageLoader.js";
|
|
8
|
-
import { Modal as
|
|
9
|
-
import { useToast as
|
|
8
|
+
import { Modal as te } from "../../components/Modal.js";
|
|
9
|
+
import { useToast as ne } from "../../hooks/useToast.js";
|
|
10
10
|
import "../../components/index.js";
|
|
11
|
-
import { useHealthyBowlData as
|
|
12
|
-
import { useEffect as
|
|
13
|
-
import { useI18n as
|
|
14
|
-
import { AlertTriangle as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { useHealthyBowlData as re } from "../../hooks/useHealthyBowlData.js";
|
|
12
|
+
import { useEffect as s, useState as c } from "react";
|
|
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 ie, Mail as _, MapPin as ae, Megaphone as v, MessageSquare as oe, Phone as se, Plus as y, Send as ce } from "lucide-react";
|
|
15
|
+
import { useNavigate as le } from "react-router";
|
|
16
|
+
import { Fragment as ue, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
17
|
+
import { Button as S, Select as C, SelectContent as w, SelectItem as T, SelectTrigger as E, SelectValue as D } from "@burdenoff/fe-libs/ui";
|
|
17
18
|
//#region src/healthybowl/pages/government-schemes/CommunicationPage.tsx
|
|
18
|
-
var
|
|
19
|
-
let { t:
|
|
19
|
+
var O = () => {
|
|
20
|
+
let { t: O } = l(), k = le(), { messages: A, announcements: j, loadings: M, errors: N, refetch: P } = re(), { toasts: F, toast: I, dismiss: L } = ne(), R = [
|
|
20
21
|
{
|
|
21
|
-
q:
|
|
22
|
-
a:
|
|
22
|
+
q: O("healthybowl.governmentSchemes.communication.faqs.apply.q", "How do I apply for a government scheme?"),
|
|
23
|
+
a: O("healthybowl.governmentSchemes.communication.faqs.apply.a", "Navigate to Discover Schemes, review eligibility criteria, and click the Apply button on any open scheme.")
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
|
-
q:
|
|
26
|
-
a:
|
|
26
|
+
q: O("healthybowl.governmentSchemes.communication.faqs.reviewTime.q", "How long does application review take?"),
|
|
27
|
+
a: O("healthybowl.governmentSchemes.communication.faqs.reviewTime.a", "Typically 2-4 weeks. You can track progress on the Application Tracking page.")
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
|
-
q:
|
|
30
|
-
a:
|
|
30
|
+
q: O("healthybowl.governmentSchemes.communication.faqs.multiple.q", "Can I apply for multiple schemes?"),
|
|
31
|
+
a: O("healthybowl.governmentSchemes.communication.faqs.multiple.a", "Yes, you can apply for multiple schemes as long as you meet each scheme's eligibility criteria.")
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
|
-
q:
|
|
34
|
-
a:
|
|
34
|
+
q: O("healthybowl.governmentSchemes.communication.faqs.documents.q", "What documents are required?"),
|
|
35
|
+
a: O("healthybowl.governmentSchemes.communication.faqs.documents.a", "Requirements vary by scheme. Generally: farm ownership proof, organic certification, ID, and bank details.")
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
|
-
q:
|
|
38
|
-
a:
|
|
38
|
+
q: O("healthybowl.governmentSchemes.communication.faqs.disbursed.q", "How are benefits disbursed?"),
|
|
39
|
+
a: O("healthybowl.governmentSchemes.communication.faqs.disbursed.a", "Approved benefits are typically transferred directly to your registered bank account within 30 days of approval.")
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
|
-
q:
|
|
42
|
-
a:
|
|
42
|
+
q: O("healthybowl.governmentSchemes.communication.faqs.bankDetails.q", "How do I update my bank details?"),
|
|
43
|
+
a: O("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.")
|
|
43
44
|
}
|
|
44
|
-
],
|
|
45
|
+
], z = [
|
|
45
46
|
{
|
|
46
47
|
value: "Dept of Agriculture",
|
|
47
|
-
label:
|
|
48
|
+
label: O("healthybowl.governmentSchemes.communication.departments.deptOfAgriculture", "Dept of Agriculture")
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
51
|
value: "Federal Crop Insurance Corp",
|
|
51
|
-
label:
|
|
52
|
+
label: O("healthybowl.governmentSchemes.communication.departments.federalCropInsuranceCorp", "Federal Crop Insurance Corp")
|
|
52
53
|
},
|
|
53
54
|
{
|
|
54
55
|
value: "USDA Rural Development",
|
|
55
|
-
label:
|
|
56
|
+
label: O("healthybowl.governmentSchemes.communication.departments.usdaRuralDevelopment", "USDA Rural Development")
|
|
56
57
|
},
|
|
57
58
|
{
|
|
58
59
|
value: "Extension Services",
|
|
59
|
-
label:
|
|
60
|
+
label: O("healthybowl.governmentSchemes.communication.departments.extensionServices", "Extension Services")
|
|
60
61
|
},
|
|
61
62
|
{
|
|
62
63
|
value: "Water Resources Board",
|
|
63
|
-
label:
|
|
64
|
+
label: O("healthybowl.governmentSchemes.communication.departments.waterResourcesBoard", "Water Resources Board")
|
|
64
65
|
}
|
|
65
|
-
], [
|
|
66
|
+
], [B, V] = c("messages"), [H, U] = c([]), [W, G] = c(null), [K, de] = c(""), [q, fe] = c(null), [pe, J] = c(!1), [Y, X] = c({
|
|
66
67
|
department: "",
|
|
67
68
|
subject: "",
|
|
68
69
|
body: ""
|
|
69
|
-
}), [X, Z] = d({
|
|
70
|
-
name: "",
|
|
71
|
-
email: "",
|
|
72
|
-
subject: "",
|
|
73
|
-
message: ""
|
|
74
70
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}, [
|
|
78
|
-
let
|
|
79
|
-
|
|
71
|
+
s(() => {
|
|
72
|
+
U(A);
|
|
73
|
+
}, [A]);
|
|
74
|
+
let Z = H.filter((e) => e.unread).length, Q = H.filter((e) => K === "" || (e.subject ?? "").toLowerCase().includes(K.toLowerCase()) || (e.from ?? "").toLowerCase().includes(K.toLowerCase())), me = (e) => {
|
|
75
|
+
U((t) => t.map((t) => t.id === e ? {
|
|
80
76
|
...t,
|
|
81
77
|
unread: !1
|
|
82
78
|
} : t));
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
if (!
|
|
87
|
-
|
|
88
|
-
title:
|
|
79
|
+
}, he = (e) => {
|
|
80
|
+
me(e.id), G(e);
|
|
81
|
+
}, ge = () => {
|
|
82
|
+
if (!Y.department || !Y.subject || !Y.body) {
|
|
83
|
+
I({
|
|
84
|
+
title: O("healthybowl.governmentSchemes.communication.toast.allFieldsRequired", "All fields are required"),
|
|
89
85
|
variant: "error"
|
|
90
86
|
});
|
|
91
87
|
return;
|
|
92
88
|
}
|
|
93
|
-
|
|
94
|
-
title:
|
|
95
|
-
description:
|
|
89
|
+
J(!1), I({
|
|
90
|
+
title: O("healthybowl.governmentSchemes.communication.toast.messagingUnavailable.title", "Messaging is not available yet"),
|
|
91
|
+
description: O("healthybowl.governmentSchemes.communication.toast.messagingUnavailable.description", "Sending messages to departments is not available yet. Your message was not sent."),
|
|
96
92
|
variant: "warning"
|
|
97
|
-
}),
|
|
93
|
+
}), X({
|
|
98
94
|
department: "",
|
|
99
95
|
subject: "",
|
|
100
96
|
body: ""
|
|
101
97
|
});
|
|
102
|
-
},
|
|
103
|
-
if (!X.name || !X.email || !X.message) {
|
|
104
|
-
P({
|
|
105
|
-
title: D("healthybowl.governmentSchemes.communication.toast.fillRequiredFields", "Please fill in all required fields"),
|
|
106
|
-
variant: "error"
|
|
107
|
-
});
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
q(!1), P({
|
|
111
|
-
title: D("healthybowl.governmentSchemes.communication.toast.messagingUnavailable.title", "Messaging is not available yet"),
|
|
112
|
-
description: D("healthybowl.governmentSchemes.communication.toast.queryUnavailable.description", "Submitting helpdesk queries is not available yet. Your query was not submitted."),
|
|
113
|
-
variant: "warning"
|
|
114
|
-
}), Z({
|
|
115
|
-
name: "",
|
|
116
|
-
email: "",
|
|
117
|
-
subject: "",
|
|
118
|
-
message: ""
|
|
119
|
-
});
|
|
120
|
-
}, ye = [
|
|
98
|
+
}, $ = [
|
|
121
99
|
{
|
|
122
100
|
id: "messages",
|
|
123
|
-
label:
|
|
124
|
-
icon:
|
|
125
|
-
badge:
|
|
101
|
+
label: O("healthybowl.governmentSchemes.communication.tabs.messages", "Messages"),
|
|
102
|
+
icon: oe,
|
|
103
|
+
badge: Z > 0 ? Z : void 0
|
|
126
104
|
},
|
|
127
105
|
{
|
|
128
106
|
id: "announcements",
|
|
129
|
-
label:
|
|
130
|
-
icon:
|
|
107
|
+
label: O("healthybowl.governmentSchemes.communication.tabs.announcements", "Announcements"),
|
|
108
|
+
icon: v
|
|
131
109
|
},
|
|
132
110
|
{
|
|
133
111
|
id: "helpdesk",
|
|
134
|
-
label:
|
|
135
|
-
icon:
|
|
112
|
+
label: O("healthybowl.governmentSchemes.communication.tabs.helpdesk", "Helpdesk"),
|
|
113
|
+
icon: h
|
|
136
114
|
}
|
|
137
|
-
],
|
|
115
|
+
], _e = (e) => {
|
|
138
116
|
switch (e) {
|
|
139
|
-
case "New Scheme": return /* @__PURE__ */
|
|
140
|
-
case "Deadline Update": return /* @__PURE__ */
|
|
141
|
-
case "System": return /* @__PURE__ */
|
|
142
|
-
case "Training": return /* @__PURE__ */
|
|
143
|
-
default: return /* @__PURE__ */
|
|
117
|
+
case "New Scheme": return /* @__PURE__ */ b(ie, { className: "h-4 w-4" });
|
|
118
|
+
case "Deadline Update": return /* @__PURE__ */ b(u, { className: "h-4 w-4" });
|
|
119
|
+
case "System": return /* @__PURE__ */ b(g, { className: "h-4 w-4" });
|
|
120
|
+
case "Training": return /* @__PURE__ */ b(h, { className: "h-4 w-4" });
|
|
121
|
+
default: return /* @__PURE__ */ b(v, { className: "h-4 w-4" });
|
|
144
122
|
}
|
|
145
123
|
};
|
|
146
|
-
return /* @__PURE__ */
|
|
147
|
-
title:
|
|
148
|
-
description:
|
|
124
|
+
return /* @__PURE__ */ x(n, {
|
|
125
|
+
title: O("healthybowl.governmentSchemes.communication.title", "Communication"),
|
|
126
|
+
description: O("healthybowl.governmentSchemes.communication.description", "Messages, announcements, and helpdesk support"),
|
|
149
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.",
|
|
150
128
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ b("div", {
|
|
152
130
|
className: "flex items-center gap-1 rounded-lg border border-border-subtle bg-bg-sunken/50 p-1",
|
|
153
|
-
children:
|
|
131
|
+
children: $.map((t) => {
|
|
154
132
|
let n = t.icon;
|
|
155
|
-
return /* @__PURE__ */
|
|
133
|
+
return /* @__PURE__ */ x("button", {
|
|
156
134
|
type: "button",
|
|
157
|
-
onClick: () =>
|
|
158
|
-
className: e("flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors",
|
|
135
|
+
onClick: () => V(t.id),
|
|
136
|
+
className: e("flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors", B === t.id ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"),
|
|
159
137
|
children: [
|
|
160
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ b(n, { className: "h-4 w-4" }),
|
|
161
139
|
t.label,
|
|
162
|
-
t.badge && /* @__PURE__ */
|
|
140
|
+
t.badge && /* @__PURE__ */ b("span", {
|
|
163
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",
|
|
164
142
|
children: t.badge
|
|
165
143
|
})
|
|
@@ -167,112 +145,112 @@ var D = () => {
|
|
|
167
145
|
}, t.id);
|
|
168
146
|
})
|
|
169
147
|
}),
|
|
170
|
-
|
|
148
|
+
B === "messages" && /* @__PURE__ */ x("div", {
|
|
171
149
|
className: "space-y-4",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
173
|
-
searchValue:
|
|
150
|
+
children: [/* @__PURE__ */ b(a, {
|
|
151
|
+
searchValue: K,
|
|
174
152
|
onSearchChange: de,
|
|
175
|
-
searchPlaceholder:
|
|
176
|
-
actions: /* @__PURE__ */
|
|
177
|
-
onClick: () =>
|
|
153
|
+
searchPlaceholder: O("healthybowl.governmentSchemes.communication.messages.searchPlaceholder", "Search messages..."),
|
|
154
|
+
actions: /* @__PURE__ */ x(S, {
|
|
155
|
+
onClick: () => J(!0),
|
|
178
156
|
size: "sm",
|
|
179
157
|
children: [
|
|
180
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ b(y, { className: "h-3.5 w-3.5" }),
|
|
181
159
|
" ",
|
|
182
|
-
|
|
160
|
+
O("healthybowl.governmentSchemes.communication.actions.compose", "Compose")
|
|
183
161
|
]
|
|
184
162
|
})
|
|
185
|
-
}),
|
|
163
|
+
}), W ? /* @__PURE__ */ x("div", {
|
|
186
164
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
187
165
|
children: [
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
onClick: () =>
|
|
166
|
+
/* @__PURE__ */ x(S, {
|
|
167
|
+
onClick: () => G(null),
|
|
190
168
|
variant: "ghost",
|
|
191
169
|
size: "sm",
|
|
192
170
|
className: "mb-4 text-primary",
|
|
193
|
-
children: ["← ",
|
|
171
|
+
children: ["← ", O("healthybowl.governmentSchemes.communication.messages.backToInbox", "Back to inbox")]
|
|
194
172
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ b("div", {
|
|
196
174
|
className: "flex items-start justify-between",
|
|
197
|
-
children: /* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
175
|
+
children: /* @__PURE__ */ x("div", { children: [
|
|
176
|
+
/* @__PURE__ */ b("h3", {
|
|
199
177
|
className: "text-base font-semibold text-text-primary",
|
|
200
|
-
children:
|
|
178
|
+
children: W.subject
|
|
201
179
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ b("p", {
|
|
203
181
|
className: "mt-1 text-xs text-text-secondary",
|
|
204
|
-
children:
|
|
205
|
-
from:
|
|
206
|
-
department:
|
|
182
|
+
children: O("healthybowl.governmentSchemes.communication.messages.fromLine", "From: {{from}} ({{department}})", {
|
|
183
|
+
from: W.from,
|
|
184
|
+
department: W.department
|
|
207
185
|
})
|
|
208
186
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ b("p", {
|
|
210
188
|
className: "text-xs text-text-secondary",
|
|
211
|
-
children: t(
|
|
189
|
+
children: t(W.date)
|
|
212
190
|
})
|
|
213
191
|
] })
|
|
214
192
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ b("div", {
|
|
216
194
|
className: "mt-4 rounded-md bg-bg-sunken/50 p-4",
|
|
217
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ b("p", {
|
|
218
196
|
className: "text-sm leading-relaxed text-text-primary",
|
|
219
|
-
children:
|
|
197
|
+
children: W.body
|
|
220
198
|
})
|
|
221
199
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ b("div", {
|
|
223
201
|
className: "mt-4 flex gap-2",
|
|
224
|
-
children: /* @__PURE__ */ S
|
|
202
|
+
children: /* @__PURE__ */ b(S, {
|
|
225
203
|
onClick: () => {
|
|
226
|
-
|
|
227
|
-
department:
|
|
228
|
-
subject: `Re: ${
|
|
204
|
+
X({
|
|
205
|
+
department: W.department,
|
|
206
|
+
subject: `Re: ${W.subject}`,
|
|
229
207
|
body: ""
|
|
230
|
-
}),
|
|
208
|
+
}), J(!0), G(null);
|
|
231
209
|
},
|
|
232
|
-
children:
|
|
210
|
+
children: O("healthybowl.governmentSchemes.communication.messages.reply", "Reply")
|
|
233
211
|
})
|
|
234
212
|
})
|
|
235
213
|
]
|
|
236
|
-
}) : /* @__PURE__ */
|
|
214
|
+
}) : /* @__PURE__ */ b("div", {
|
|
237
215
|
className: "space-y-2",
|
|
238
|
-
children:
|
|
216
|
+
children: M.government ? /* @__PURE__ */ b(o, {}) : N.government ? /* @__PURE__ */ b(r, { onRetry: P }) : Q.length === 0 ? /* @__PURE__ */ x("div", {
|
|
239
217
|
className: "rounded-lg border border-dashed border-border-subtle bg-bg-surface/50 p-8 text-center",
|
|
240
218
|
children: [
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ b(_, { className: "mx-auto h-10 w-10 text-text-secondary" }),
|
|
220
|
+
/* @__PURE__ */ b("p", {
|
|
243
221
|
className: "mt-2 text-sm font-medium text-text-primary",
|
|
244
|
-
children:
|
|
222
|
+
children: O("healthybowl.governmentSchemes.communication.messages.emptyState.title", "No messages found")
|
|
245
223
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ b("p", {
|
|
247
225
|
className: "mt-1 text-xs text-text-secondary",
|
|
248
|
-
children:
|
|
226
|
+
children: O("healthybowl.governmentSchemes.communication.messages.emptyState.hint", "Try adjusting your search")
|
|
249
227
|
})
|
|
250
228
|
]
|
|
251
|
-
}) :
|
|
229
|
+
}) : Q.map((n) => /* @__PURE__ */ x("button", {
|
|
252
230
|
type: "button",
|
|
253
|
-
onClick: () =>
|
|
231
|
+
onClick: () => he(n),
|
|
254
232
|
className: e("flex w-full items-start gap-3 rounded-lg border border-border-subtle p-4 text-left transition-colors hover:bg-bg-sunken/50", n.unread && "border-primary/30 bg-action-primary-bg/5"),
|
|
255
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ b("div", {
|
|
256
234
|
className: "mt-1 shrink-0",
|
|
257
|
-
children: n.unread ? /* @__PURE__ */
|
|
258
|
-
}), /* @__PURE__ */
|
|
235
|
+
children: n.unread ? /* @__PURE__ */ b(m, { className: "h-2.5 w-2.5 fill-primary text-primary" }) : /* @__PURE__ */ b(m, { className: "h-2.5 w-2.5 text-text-secondary/30" })
|
|
236
|
+
}), /* @__PURE__ */ x("div", {
|
|
259
237
|
className: "flex-1 min-w-0",
|
|
260
238
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ x("div", {
|
|
262
240
|
className: "flex items-center justify-between gap-2",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
241
|
+
children: [/* @__PURE__ */ b("p", {
|
|
264
242
|
className: e("text-sm", n.unread ? "font-semibold text-text-primary" : "font-medium text-text-primary"),
|
|
265
243
|
children: n.from
|
|
266
|
-
}), /* @__PURE__ */
|
|
244
|
+
}), /* @__PURE__ */ b("span", {
|
|
267
245
|
className: "shrink-0 text-xs text-text-secondary",
|
|
268
246
|
children: t(n.date)
|
|
269
247
|
})]
|
|
270
248
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ b("p", {
|
|
272
250
|
className: e("mt-0.5 text-sm", n.unread ? "font-medium text-text-primary" : "text-text-primary"),
|
|
273
251
|
children: n.subject
|
|
274
252
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ b("p", {
|
|
276
254
|
className: "mt-0.5 truncate text-xs text-text-secondary",
|
|
277
255
|
children: n.preview
|
|
278
256
|
})
|
|
@@ -281,33 +259,33 @@ var D = () => {
|
|
|
281
259
|
}, n.id))
|
|
282
260
|
})]
|
|
283
261
|
}),
|
|
284
|
-
|
|
262
|
+
B === "announcements" && /* @__PURE__ */ b("div", {
|
|
285
263
|
className: "space-y-4",
|
|
286
|
-
children:
|
|
264
|
+
children: j.map((e) => /* @__PURE__ */ b("div", {
|
|
287
265
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
288
|
-
children: /* @__PURE__ */
|
|
266
|
+
children: /* @__PURE__ */ x("div", {
|
|
289
267
|
className: "flex items-start gap-3",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ b("div", {
|
|
291
269
|
className: "mt-0.5 shrink-0 rounded-md bg-bg-sunken p-2 text-text-secondary",
|
|
292
|
-
children:
|
|
293
|
-
}), /* @__PURE__ */
|
|
270
|
+
children: _e(e.category)
|
|
271
|
+
}), /* @__PURE__ */ x("div", {
|
|
294
272
|
className: "flex-1",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
273
|
+
children: [/* @__PURE__ */ b("div", {
|
|
296
274
|
className: "flex items-start justify-between gap-3",
|
|
297
|
-
children: /* @__PURE__ */
|
|
275
|
+
children: /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h3", {
|
|
298
276
|
className: "text-sm font-semibold text-text-primary",
|
|
299
277
|
children: e.title
|
|
300
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ x("div", {
|
|
301
279
|
className: "mt-1 flex items-center gap-2",
|
|
302
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ b("span", {
|
|
303
281
|
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary",
|
|
304
282
|
children: e.category
|
|
305
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ x("span", {
|
|
306
284
|
className: "flex items-center gap-1 text-xs text-text-secondary",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ b(d, { className: "h-3 w-3" }), t(e.date)]
|
|
308
286
|
})]
|
|
309
287
|
})] })
|
|
310
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ b("p", {
|
|
311
289
|
className: "mt-3 text-sm leading-relaxed text-text-secondary",
|
|
312
290
|
children: e.content
|
|
313
291
|
})]
|
|
@@ -315,229 +293,168 @@ var D = () => {
|
|
|
315
293
|
})
|
|
316
294
|
}, e.id))
|
|
317
295
|
}),
|
|
318
|
-
|
|
296
|
+
B === "helpdesk" && /* @__PURE__ */ x("div", {
|
|
319
297
|
className: "space-y-6",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
321
|
-
title:
|
|
322
|
-
description:
|
|
323
|
-
children: /* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ b(i, {
|
|
299
|
+
title: O("healthybowl.governmentSchemes.communication.helpdesk.faqTitle", "Frequently Asked Questions"),
|
|
300
|
+
description: O("healthybowl.governmentSchemes.communication.helpdesk.faqDescription", "Common questions about government schemes"),
|
|
301
|
+
children: /* @__PURE__ */ b("div", {
|
|
324
302
|
className: "space-y-2",
|
|
325
|
-
children:
|
|
303
|
+
children: R.map((e, t) => /* @__PURE__ */ x("div", {
|
|
326
304
|
className: "rounded-md border border-border-subtle",
|
|
327
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ x("button", {
|
|
328
306
|
type: "button",
|
|
329
|
-
onClick: () => fe(
|
|
307
|
+
onClick: () => fe(q === t ? null : t),
|
|
330
308
|
className: "flex w-full items-center justify-between px-4 py-3 text-left text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
|
|
331
|
-
children: [e.q,
|
|
332
|
-
}),
|
|
309
|
+
children: [e.q, b(q === t ? p : f, { className: "h-4 w-4 shrink-0 text-text-secondary" })]
|
|
310
|
+
}), q === t && /* @__PURE__ */ b("div", {
|
|
333
311
|
className: "border-t border-border-subtle px-4 py-3 text-sm leading-relaxed text-text-secondary",
|
|
334
312
|
children: e.a
|
|
335
313
|
})]
|
|
336
314
|
}, t))
|
|
337
315
|
})
|
|
338
|
-
}), /* @__PURE__ */
|
|
316
|
+
}), /* @__PURE__ */ x("div", {
|
|
339
317
|
className: "grid gap-6 lg:grid-cols-2",
|
|
340
|
-
children: [/* @__PURE__ */
|
|
341
|
-
title:
|
|
342
|
-
children: /* @__PURE__ */
|
|
318
|
+
children: [/* @__PURE__ */ b(i, {
|
|
319
|
+
title: O("healthybowl.governmentSchemes.communication.helpdesk.contactTitle", "Contact Information"),
|
|
320
|
+
children: /* @__PURE__ */ b("div", {
|
|
343
321
|
className: "space-y-3",
|
|
344
322
|
children: [
|
|
345
323
|
{
|
|
346
324
|
id: "helpline",
|
|
347
|
-
icon:
|
|
348
|
-
label:
|
|
349
|
-
value:
|
|
325
|
+
icon: se,
|
|
326
|
+
label: O("healthybowl.governmentSchemes.communication.contact.helpline.label", "Helpline"),
|
|
327
|
+
value: O("healthybowl.governmentSchemes.communication.contact.helpline.value", "1800-XXX-XXXX (Toll Free)")
|
|
350
328
|
},
|
|
351
329
|
{
|
|
352
330
|
id: "email",
|
|
353
|
-
icon:
|
|
354
|
-
label:
|
|
331
|
+
icon: _,
|
|
332
|
+
label: O("healthybowl.governmentSchemes.communication.contact.email.label", "Email"),
|
|
355
333
|
value: "support@agriculture.gov"
|
|
356
334
|
},
|
|
357
335
|
{
|
|
358
336
|
id: "office",
|
|
359
|
-
icon:
|
|
360
|
-
label:
|
|
361
|
-
value:
|
|
337
|
+
icon: ae,
|
|
338
|
+
label: O("healthybowl.governmentSchemes.communication.contact.office.label", "Office"),
|
|
339
|
+
value: O("healthybowl.governmentSchemes.communication.contact.office.value", "District Agriculture Office, County HQ")
|
|
362
340
|
}
|
|
363
|
-
].map(({ id: e, icon: t, label: n, value: r }) => /* @__PURE__ */
|
|
341
|
+
].map(({ id: e, icon: t, label: n, value: r }) => /* @__PURE__ */ x("div", {
|
|
364
342
|
className: "flex items-center gap-3 rounded-md bg-bg-sunken p-3",
|
|
365
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ b(t, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
366
344
|
className: "text-xs text-text-secondary",
|
|
367
345
|
children: n
|
|
368
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ b("p", {
|
|
369
347
|
className: "text-sm text-text-primary",
|
|
370
348
|
children: r
|
|
371
349
|
})] })]
|
|
372
350
|
}, e))
|
|
373
351
|
})
|
|
374
|
-
}), /* @__PURE__ */
|
|
375
|
-
title:
|
|
376
|
-
description:
|
|
377
|
-
actions: /* @__PURE__ */
|
|
378
|
-
onClick: () =>
|
|
352
|
+
}), /* @__PURE__ */ b(i, {
|
|
353
|
+
title: O("healthybowl.governmentSchemes.communication.helpdesk.submitQueryTitle", "Submit a Query"),
|
|
354
|
+
description: O("healthybowl.governmentSchemes.communication.helpdesk.submitQueryDescription", "Can't find your answer? Open a support ticket and track its status."),
|
|
355
|
+
actions: /* @__PURE__ */ x(S, {
|
|
356
|
+
onClick: () => k("/support"),
|
|
379
357
|
size: "sm",
|
|
380
358
|
children: [
|
|
381
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ b(y, { className: "h-3.5 w-3.5" }),
|
|
382
360
|
" ",
|
|
383
|
-
|
|
361
|
+
O("healthybowl.governmentSchemes.communication.actions.newQuery", "New Query")
|
|
384
362
|
]
|
|
385
363
|
}),
|
|
386
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ x("div", {
|
|
387
365
|
className: "flex flex-col items-center justify-center py-6 text-center",
|
|
388
|
-
children: [
|
|
389
|
-
className: "
|
|
390
|
-
|
|
391
|
-
|
|
366
|
+
children: [
|
|
367
|
+
/* @__PURE__ */ b(h, { className: "h-10 w-10 text-text-secondary" }),
|
|
368
|
+
/* @__PURE__ */ b("p", {
|
|
369
|
+
className: "mt-3 text-sm text-text-secondary",
|
|
370
|
+
children: O("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
|
+
}),
|
|
372
|
+
/* @__PURE__ */ b(S, {
|
|
373
|
+
onClick: () => k("/support"),
|
|
374
|
+
variant: "outline",
|
|
375
|
+
size: "sm",
|
|
376
|
+
className: "mt-4",
|
|
377
|
+
children: O("healthybowl.governmentSchemes.communication.helpdesk.goToSupport", "Go to Support Center")
|
|
378
|
+
})
|
|
379
|
+
]
|
|
392
380
|
})
|
|
393
381
|
})]
|
|
394
382
|
})]
|
|
395
383
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ b(te, {
|
|
397
385
|
open: pe,
|
|
398
|
-
onClose: () =>
|
|
399
|
-
title:
|
|
400
|
-
description:
|
|
401
|
-
footer: /* @__PURE__ */
|
|
402
|
-
onClick: () =>
|
|
386
|
+
onClose: () => J(!1),
|
|
387
|
+
title: O("healthybowl.governmentSchemes.communication.compose.title", "Compose Message"),
|
|
388
|
+
description: O("healthybowl.governmentSchemes.communication.compose.description", "Send a message to a government department"),
|
|
389
|
+
footer: /* @__PURE__ */ x(ue, { children: [/* @__PURE__ */ b(S, {
|
|
390
|
+
onClick: () => J(!1),
|
|
403
391
|
variant: "outline",
|
|
404
|
-
children:
|
|
405
|
-
}), /* @__PURE__ */
|
|
406
|
-
onClick:
|
|
392
|
+
children: O("healthybowl.common.cancel", "Cancel")
|
|
393
|
+
}), /* @__PURE__ */ x(S, {
|
|
394
|
+
onClick: ge,
|
|
407
395
|
children: [
|
|
408
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ b(ce, { className: "h-4 w-4" }),
|
|
409
397
|
" ",
|
|
410
|
-
|
|
398
|
+
O("healthybowl.governmentSchemes.communication.compose.send", "Send")
|
|
411
399
|
]
|
|
412
400
|
})] }),
|
|
413
|
-
children: /* @__PURE__ */
|
|
401
|
+
children: /* @__PURE__ */ x("div", {
|
|
414
402
|
className: "space-y-3",
|
|
415
403
|
children: [
|
|
416
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
417
405
|
className: "block text-xs font-medium text-text-secondary",
|
|
418
|
-
children:
|
|
419
|
-
}), /* @__PURE__ */ C
|
|
420
|
-
value:
|
|
421
|
-
onValueChange: (e) =>
|
|
422
|
-
...
|
|
406
|
+
children: O("healthybowl.governmentSchemes.communication.compose.fields.department.label", "To (Department) *")
|
|
407
|
+
}), /* @__PURE__ */ x(C, {
|
|
408
|
+
value: Y.department,
|
|
409
|
+
onValueChange: (e) => X({
|
|
410
|
+
...Y,
|
|
423
411
|
department: e
|
|
424
412
|
}),
|
|
425
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ b(E, {
|
|
426
414
|
className: "mt-1 w-full",
|
|
427
|
-
children: /* @__PURE__ */
|
|
428
|
-
}), /* @__PURE__ */
|
|
415
|
+
children: /* @__PURE__ */ b(D, { placeholder: O("healthybowl.governmentSchemes.communication.compose.fields.department.placeholder", "Select department...") })
|
|
416
|
+
}), /* @__PURE__ */ b(w, { children: z.map((e) => /* @__PURE__ */ b(T, {
|
|
429
417
|
value: e.value,
|
|
430
418
|
children: e.label
|
|
431
419
|
}, e.value)) })]
|
|
432
420
|
})] }),
|
|
433
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
434
422
|
className: "block text-xs font-medium text-text-secondary",
|
|
435
|
-
children:
|
|
436
|
-
}), /* @__PURE__ */
|
|
423
|
+
children: O("healthybowl.governmentSchemes.communication.compose.fields.subject.label", "Subject *")
|
|
424
|
+
}), /* @__PURE__ */ b("input", {
|
|
437
425
|
type: "text",
|
|
438
|
-
value:
|
|
439
|
-
onChange: (e) =>
|
|
440
|
-
...
|
|
426
|
+
value: Y.subject,
|
|
427
|
+
onChange: (e) => X({
|
|
428
|
+
...Y,
|
|
441
429
|
subject: e.target.value
|
|
442
430
|
}),
|
|
443
|
-
placeholder:
|
|
431
|
+
placeholder: O("healthybowl.governmentSchemes.communication.compose.fields.subject.placeholder", "Message subject"),
|
|
444
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"
|
|
445
433
|
})] }),
|
|
446
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
447
435
|
className: "block text-xs font-medium text-text-secondary",
|
|
448
|
-
children:
|
|
449
|
-
}), /* @__PURE__ */
|
|
450
|
-
value:
|
|
451
|
-
onChange: (e) =>
|
|
452
|
-
...
|
|
436
|
+
children: O("healthybowl.governmentSchemes.communication.compose.fields.message.label", "Message *")
|
|
437
|
+
}), /* @__PURE__ */ b("textarea", {
|
|
438
|
+
value: Y.body,
|
|
439
|
+
onChange: (e) => X({
|
|
440
|
+
...Y,
|
|
453
441
|
body: e.target.value
|
|
454
442
|
}),
|
|
455
|
-
placeholder:
|
|
443
|
+
placeholder: O("healthybowl.governmentSchemes.communication.compose.fields.message.placeholder", "Type your message..."),
|
|
456
444
|
rows: 5,
|
|
457
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"
|
|
458
446
|
})] })
|
|
459
447
|
]
|
|
460
448
|
})
|
|
461
449
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
title: D("healthybowl.governmentSchemes.communication.query.title", "Submit Query"),
|
|
466
|
-
description: D("healthybowl.governmentSchemes.communication.query.description", "Our support team will respond within 2-3 business days"),
|
|
467
|
-
footer: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(w, {
|
|
468
|
-
onClick: () => q(!1),
|
|
469
|
-
variant: "outline",
|
|
470
|
-
children: D("healthybowl.common.cancel", "Cancel")
|
|
471
|
-
}), /* @__PURE__ */ S(w, {
|
|
472
|
-
onClick: ve,
|
|
473
|
-
children: D("healthybowl.governmentSchemes.communication.query.submit", "Submit Query")
|
|
474
|
-
})] }),
|
|
475
|
-
children: /* @__PURE__ */ C("div", {
|
|
476
|
-
className: "space-y-3",
|
|
477
|
-
children: [
|
|
478
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
479
|
-
className: "block text-xs font-medium text-text-secondary",
|
|
480
|
-
children: D("healthybowl.governmentSchemes.communication.query.fields.name.label", "Your Name *")
|
|
481
|
-
}), /* @__PURE__ */ S("input", {
|
|
482
|
-
type: "text",
|
|
483
|
-
value: X.name,
|
|
484
|
-
onChange: (e) => Z({
|
|
485
|
-
...X,
|
|
486
|
-
name: e.target.value
|
|
487
|
-
}),
|
|
488
|
-
placeholder: D("healthybowl.governmentSchemes.communication.query.fields.name.placeholder", "Full name"),
|
|
489
|
-
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"
|
|
490
|
-
})] }),
|
|
491
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
492
|
-
className: "block text-xs font-medium text-text-secondary",
|
|
493
|
-
children: D("healthybowl.governmentSchemes.communication.query.fields.email.label", "Email *")
|
|
494
|
-
}), /* @__PURE__ */ S("input", {
|
|
495
|
-
type: "email",
|
|
496
|
-
value: X.email,
|
|
497
|
-
onChange: (e) => Z({
|
|
498
|
-
...X,
|
|
499
|
-
email: e.target.value
|
|
500
|
-
}),
|
|
501
|
-
placeholder: D("healthybowl.governmentSchemes.communication.query.fields.email.placeholder", "your@email.com"),
|
|
502
|
-
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"
|
|
503
|
-
})] }),
|
|
504
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
505
|
-
className: "block text-xs font-medium text-text-secondary",
|
|
506
|
-
children: D("healthybowl.governmentSchemes.communication.query.fields.subject.label", "Subject")
|
|
507
|
-
}), /* @__PURE__ */ S("input", {
|
|
508
|
-
type: "text",
|
|
509
|
-
value: X.subject,
|
|
510
|
-
onChange: (e) => Z({
|
|
511
|
-
...X,
|
|
512
|
-
subject: e.target.value
|
|
513
|
-
}),
|
|
514
|
-
placeholder: D("healthybowl.governmentSchemes.communication.query.fields.subject.placeholder", "Brief subject"),
|
|
515
|
-
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"
|
|
516
|
-
})] }),
|
|
517
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
518
|
-
className: "block text-xs font-medium text-text-secondary",
|
|
519
|
-
children: D("healthybowl.governmentSchemes.communication.query.fields.question.label", "Your Question *")
|
|
520
|
-
}), /* @__PURE__ */ S("textarea", {
|
|
521
|
-
value: X.message,
|
|
522
|
-
onChange: (e) => Z({
|
|
523
|
-
...X,
|
|
524
|
-
message: e.target.value
|
|
525
|
-
}),
|
|
526
|
-
placeholder: D("healthybowl.governmentSchemes.communication.query.fields.question.placeholder", "Describe your question or issue..."),
|
|
527
|
-
rows: 4,
|
|
528
|
-
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"
|
|
529
|
-
})] })
|
|
530
|
-
]
|
|
531
|
-
})
|
|
532
|
-
}),
|
|
533
|
-
/* @__PURE__ */ S(a, {
|
|
534
|
-
toasts: N,
|
|
535
|
-
onDismiss: F
|
|
450
|
+
/* @__PURE__ */ b(ee, {
|
|
451
|
+
toasts: F,
|
|
452
|
+
onDismiss: L
|
|
536
453
|
})
|
|
537
454
|
]
|
|
538
455
|
});
|
|
539
456
|
};
|
|
540
457
|
//#endregion
|
|
541
|
-
export {
|
|
458
|
+
export { O as CommunicationPage };
|
|
542
459
|
|
|
543
460
|
//# sourceMappingURL=CommunicationPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunicationPage.js","names":[],"sources":["../../../../src/healthybowl/pages/government-schemes/CommunicationPage.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport {\n Mail,\n Phone,\n MapPin,\n ChevronDown,\n ChevronUp,\n Send,\n MessageSquare,\n Megaphone,\n HelpCircle,\n Circle,\n CalendarDays,\n Landmark,\n AlertTriangle,\n Info,\n Plus,\n} from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Button, Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '@burdenoff/fe-libs/ui';\nimport { PageLayout, ChartCard, FilterBar, Modal, ErrorState, PageLoader } from '../../components';\nimport { ToastContainer } from '../../components/Toast';\nimport { useHealthyBowlData } from '../../hooks/useHealthyBowlData';\nimport { useToast } from '../../hooks/useToast';\nimport { cn, formatDate } from '../../utils/helpers';\n\ntype TabId = 'messages' | 'announcements' | 'helpdesk';\n\ninterface Message {\n id: string;\n from: string;\n department: string;\n subject: string;\n preview: string;\n body: string;\n date: string;\n unread: boolean;\n}\n\nexport const CommunicationPage = () => {\n const { t } = useI18n();\n const { messages: initialMessages, announcements, loadings, errors, refetch } = useHealthyBowlData();\n\n const { toasts, toast, dismiss } = useToast();\n\n const faqs = [\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.apply.q', 'How do I apply for a government scheme?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.apply.a',\n 'Navigate to Discover Schemes, review eligibility criteria, and click the Apply button on any open scheme.'\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.reviewTime.q', 'How long does application review take?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.reviewTime.a',\n 'Typically 2-4 weeks. You can track progress on the Application Tracking page.'\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.multiple.q', 'Can I apply for multiple schemes?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.multiple.a',\n \"Yes, you can apply for multiple schemes as long as you meet each scheme's eligibility criteria.\"\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.documents.q', 'What documents are required?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.documents.a',\n 'Requirements vary by scheme. Generally: farm ownership proof, organic certification, ID, and bank details.'\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.disbursed.q', 'How are benefits disbursed?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.disbursed.a',\n 'Approved benefits are typically transferred directly to your registered bank account within 30 days of approval.'\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.bankDetails.q', 'How do I update my bank details?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.bankDetails.a',\n 'Go to your profile settings and update the bank account information under the Payment Details section. Changes take 2-3 business days to reflect.'\n ),\n },\n ];\n\n const departments: { value: string; label: string }[] = [\n {\n value: 'Dept of Agriculture',\n label: t('healthybowl.governmentSchemes.communication.departments.deptOfAgriculture', 'Dept of Agriculture'),\n },\n {\n value: 'Federal Crop Insurance Corp',\n label: t(\n 'healthybowl.governmentSchemes.communication.departments.federalCropInsuranceCorp',\n 'Federal Crop Insurance Corp'\n ),\n },\n {\n value: 'USDA Rural Development',\n label: t(\n 'healthybowl.governmentSchemes.communication.departments.usdaRuralDevelopment',\n 'USDA Rural Development'\n ),\n },\n {\n value: 'Extension Services',\n label: t('healthybowl.governmentSchemes.communication.departments.extensionServices', 'Extension Services'),\n },\n {\n value: 'Water Resources Board',\n label: t('healthybowl.governmentSchemes.communication.departments.waterResourcesBoard', 'Water Resources Board'),\n },\n ];\n const [activeTab, setActiveTab] = useState<TabId>('messages');\n const [messages, setMessages] = useState<Message[]>([]);\n const [selectedMessage, setSelectedMessage] = useState<Message | null>(null);\n const [messageSearch, setMessageSearch] = useState('');\n const [expandedFaq, setExpandedFaq] = useState<number | null>(null);\n const [showComposeModal, setShowComposeModal] = useState(false);\n const [showQueryModal, setShowQueryModal] = useState(false);\n const [composeForm, setComposeForm] = useState({ department: '', subject: '', body: '' });\n const [queryForm, setQueryForm] = useState({ name: '', email: '', subject: '', message: '' });\n\n useEffect(() => {\n setMessages(initialMessages);\n }, [initialMessages]);\n\n const unreadCount = messages.filter((m) => m.unread).length;\n\n const filteredMessages = messages.filter(\n (m) =>\n messageSearch === '' ||\n (m.subject ?? '').toLowerCase().includes(messageSearch.toLowerCase()) ||\n (m.from ?? '').toLowerCase().includes(messageSearch.toLowerCase())\n );\n\n const markAsRead = (id: string) => {\n setMessages((prev) => prev.map((m) => (m.id === id ? { ...m, unread: false } : m)));\n };\n\n const handleOpenMessage = (msg: Message) => {\n markAsRead(msg.id);\n setSelectedMessage(msg);\n };\n\n const handleSendMessage = () => {\n if (!composeForm.department || !composeForm.subject || !composeForm.body) {\n toast({\n title: t('healthybowl.governmentSchemes.communication.toast.allFieldsRequired', 'All fields are required'),\n variant: 'error',\n });\n return;\n }\n setShowComposeModal(false);\n toast({\n title: t(\n 'healthybowl.governmentSchemes.communication.toast.messagingUnavailable.title',\n 'Messaging is not available yet'\n ),\n description: t(\n 'healthybowl.governmentSchemes.communication.toast.messagingUnavailable.description',\n 'Sending messages to departments is not available yet. Your message was not sent.'\n ),\n variant: 'warning',\n });\n setComposeForm({ department: '', subject: '', body: '' });\n };\n\n const handleSubmitQuery = () => {\n if (!queryForm.name || !queryForm.email || !queryForm.message) {\n toast({\n title: t(\n 'healthybowl.governmentSchemes.communication.toast.fillRequiredFields',\n 'Please fill in all required fields'\n ),\n variant: 'error',\n });\n return;\n }\n setShowQueryModal(false);\n toast({\n title: t(\n 'healthybowl.governmentSchemes.communication.toast.messagingUnavailable.title',\n 'Messaging is not available yet'\n ),\n description: t(\n 'healthybowl.governmentSchemes.communication.toast.queryUnavailable.description',\n 'Submitting helpdesk queries is not available yet. Your query was not submitted.'\n ),\n variant: 'warning',\n });\n setQueryForm({ name: '', email: '', subject: '', message: '' });\n };\n\n const tabs: { id: TabId; label: string; icon: typeof MessageSquare; badge?: number }[] = [\n {\n id: 'messages',\n label: t('healthybowl.governmentSchemes.communication.tabs.messages', 'Messages'),\n icon: MessageSquare,\n badge: unreadCount > 0 ? unreadCount : undefined,\n },\n {\n id: 'announcements',\n label: t('healthybowl.governmentSchemes.communication.tabs.announcements', 'Announcements'),\n icon: Megaphone,\n },\n {\n id: 'helpdesk',\n label: t('healthybowl.governmentSchemes.communication.tabs.helpdesk', 'Helpdesk'),\n icon: HelpCircle,\n },\n ];\n\n const getAnnouncementIcon = (category: string) => {\n switch (category) {\n case 'New Scheme':\n return <Landmark className=\"h-4 w-4\" />;\n case 'Deadline Update':\n return <AlertTriangle className=\"h-4 w-4\" />;\n case 'System':\n return <Info className=\"h-4 w-4\" />;\n case 'Training':\n return <HelpCircle className=\"h-4 w-4\" />;\n default:\n return <Megaphone className=\"h-4 w-4\" />;\n }\n };\n\n return (\n <PageLayout\n title={t('healthybowl.governmentSchemes.communication.title', 'Communication')}\n description={t(\n 'healthybowl.governmentSchemes.communication.description',\n 'Messages, announcements, and helpdesk support'\n )}\n 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.\"\n >\n {/* Tab Navigation */}\n <div className=\"flex items-center gap-1 rounded-lg border border-border-subtle bg-bg-sunken/50 p-1\">\n {tabs.map((tab) => {\n const Icon = tab.icon;\n return (\n <button\n key={tab.id}\n type=\"button\"\n onClick={() => setActiveTab(tab.id)}\n className={cn(\n 'flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors',\n activeTab === tab.id\n ? 'bg-bg-surface text-text-primary shadow-sm'\n : 'text-text-secondary hover:text-text-primary'\n )}\n >\n <Icon className=\"h-4 w-4\" />\n {tab.label}\n {tab.badge && (\n <span className=\"flex h-5 w-5 items-center justify-center rounded-full bg-action-primary-bg text-[10px] font-bold text-action-primary-text\">\n {tab.badge}\n </span>\n )}\n </button>\n );\n })}\n </div>\n\n {/* Messages Tab */}\n {activeTab === 'messages' && (\n <div className=\"space-y-4\">\n <FilterBar\n searchValue={messageSearch}\n onSearchChange={setMessageSearch}\n searchPlaceholder={t(\n 'healthybowl.governmentSchemes.communication.messages.searchPlaceholder',\n 'Search messages...'\n )}\n actions={\n <Button onClick={() => setShowComposeModal(true)} size=\"sm\">\n <Plus className=\"h-3.5 w-3.5\" />{' '}\n {t('healthybowl.governmentSchemes.communication.actions.compose', 'Compose')}\n </Button>\n }\n />\n\n {selectedMessage ? (\n <div className=\"rounded-lg border border-border-subtle bg-bg-surface p-6\">\n <Button onClick={() => setSelectedMessage(null)} variant=\"ghost\" size=\"sm\" className=\"mb-4 text-primary\">\n ← {t('healthybowl.governmentSchemes.communication.messages.backToInbox', 'Back to inbox')}\n </Button>\n <div className=\"flex items-start justify-between\">\n <div>\n <h3 className=\"text-base font-semibold text-text-primary\">{selectedMessage.subject}</h3>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {t(\n 'healthybowl.governmentSchemes.communication.messages.fromLine',\n 'From: {{from}} ({{department}})',\n {\n from: selectedMessage.from,\n department: selectedMessage.department,\n }\n )}\n </p>\n <p className=\"text-xs text-text-secondary\">{formatDate(selectedMessage.date)}</p>\n </div>\n </div>\n <div className=\"mt-4 rounded-md bg-bg-sunken/50 p-4\">\n <p className=\"text-sm leading-relaxed text-text-primary\">{selectedMessage.body}</p>\n </div>\n <div className=\"mt-4 flex gap-2\">\n <Button\n onClick={() => {\n setComposeForm({\n department: selectedMessage.department,\n subject: `Re: ${selectedMessage.subject}`,\n body: '',\n });\n setShowComposeModal(true);\n setSelectedMessage(null);\n }}\n >\n {t('healthybowl.governmentSchemes.communication.messages.reply', 'Reply')}\n </Button>\n </div>\n </div>\n ) : (\n <div className=\"space-y-2\">\n {loadings.government ? (\n <PageLoader />\n ) : errors.government ? (\n <ErrorState onRetry={refetch} />\n ) : filteredMessages.length === 0 ? (\n <div className=\"rounded-lg border border-dashed border-border-subtle bg-bg-surface/50 p-8 text-center\">\n <Mail className=\"mx-auto h-10 w-10 text-text-secondary\" />\n <p className=\"mt-2 text-sm font-medium text-text-primary\">\n {t('healthybowl.governmentSchemes.communication.messages.emptyState.title', 'No messages found')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {t(\n 'healthybowl.governmentSchemes.communication.messages.emptyState.hint',\n 'Try adjusting your search'\n )}\n </p>\n </div>\n ) : (\n filteredMessages.map((msg) => (\n <button\n key={msg.id}\n type=\"button\"\n onClick={() => handleOpenMessage(msg)}\n className={cn(\n 'flex w-full items-start gap-3 rounded-lg border border-border-subtle p-4 text-left transition-colors hover:bg-bg-sunken/50',\n msg.unread && 'border-primary/30 bg-action-primary-bg/5'\n )}\n >\n <div className=\"mt-1 shrink-0\">\n {msg.unread ? (\n <Circle className=\"h-2.5 w-2.5 fill-primary text-primary\" />\n ) : (\n <Circle className=\"h-2.5 w-2.5 text-text-secondary/30\" />\n )}\n </div>\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center justify-between gap-2\">\n <p\n className={cn(\n 'text-sm',\n msg.unread ? 'font-semibold text-text-primary' : 'font-medium text-text-primary'\n )}\n >\n {msg.from}\n </p>\n <span className=\"shrink-0 text-xs text-text-secondary\">{formatDate(msg.date)}</span>\n </div>\n <p\n className={cn(\n 'mt-0.5 text-sm',\n msg.unread ? 'font-medium text-text-primary' : 'text-text-primary'\n )}\n >\n {msg.subject}\n </p>\n <p className=\"mt-0.5 truncate text-xs text-text-secondary\">{msg.preview}</p>\n </div>\n </button>\n ))\n )}\n </div>\n )}\n </div>\n )}\n\n {/* Announcements Tab */}\n {activeTab === 'announcements' && (\n <div className=\"space-y-4\">\n {announcements.map((ann) => (\n <div key={ann.id} className=\"rounded-lg border border-border-subtle bg-bg-surface p-5\">\n <div className=\"flex items-start gap-3\">\n <div className=\"mt-0.5 shrink-0 rounded-md bg-bg-sunken p-2 text-text-secondary\">\n {getAnnouncementIcon(ann.category)}\n </div>\n <div className=\"flex-1\">\n <div className=\"flex items-start justify-between gap-3\">\n <div>\n <h3 className=\"text-sm font-semibold text-text-primary\">{ann.title}</h3>\n <div className=\"mt-1 flex items-center gap-2\">\n <span className=\"rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary\">\n {ann.category}\n </span>\n <span className=\"flex items-center gap-1 text-xs text-text-secondary\">\n <CalendarDays className=\"h-3 w-3\" />\n {formatDate(ann.date)}\n </span>\n </div>\n </div>\n </div>\n <p className=\"mt-3 text-sm leading-relaxed text-text-secondary\">{ann.content}</p>\n </div>\n </div>\n </div>\n ))}\n </div>\n )}\n\n {/* Helpdesk Tab */}\n {activeTab === 'helpdesk' && (\n <div className=\"space-y-6\">\n {/* FAQ Section */}\n <ChartCard\n title={t('healthybowl.governmentSchemes.communication.helpdesk.faqTitle', 'Frequently Asked Questions')}\n description={t(\n 'healthybowl.governmentSchemes.communication.helpdesk.faqDescription',\n 'Common questions about government schemes'\n )}\n >\n <div className=\"space-y-2\">\n {faqs.map((faq, i) => (\n <div key={i} className=\"rounded-md border border-border-subtle\">\n <button\n type=\"button\"\n onClick={() => setExpandedFaq(expandedFaq === i ? null : i)}\n className=\"flex w-full items-center justify-between px-4 py-3 text-left text-sm font-medium text-text-primary hover:bg-bg-sunken/50\"\n >\n {faq.q}\n {expandedFaq === i ? (\n <ChevronUp className=\"h-4 w-4 shrink-0 text-text-secondary\" />\n ) : (\n <ChevronDown className=\"h-4 w-4 shrink-0 text-text-secondary\" />\n )}\n </button>\n {expandedFaq === i && (\n <div className=\"border-t border-border-subtle px-4 py-3 text-sm leading-relaxed text-text-secondary\">\n {faq.a}\n </div>\n )}\n </div>\n ))}\n </div>\n </ChartCard>\n\n {/* Contact Info + Submit Query */}\n <div className=\"grid gap-6 lg:grid-cols-2\">\n <ChartCard\n title={t('healthybowl.governmentSchemes.communication.helpdesk.contactTitle', 'Contact Information')}\n >\n <div className=\"space-y-3\">\n {[\n {\n id: 'helpline',\n icon: Phone,\n label: t('healthybowl.governmentSchemes.communication.contact.helpline.label', 'Helpline'),\n value: t(\n 'healthybowl.governmentSchemes.communication.contact.helpline.value',\n '1800-XXX-XXXX (Toll Free)'\n ),\n },\n {\n id: 'email',\n icon: Mail,\n label: t('healthybowl.governmentSchemes.communication.contact.email.label', 'Email'),\n value: 'support@agriculture.gov',\n },\n {\n id: 'office',\n icon: MapPin,\n label: t('healthybowl.governmentSchemes.communication.contact.office.label', 'Office'),\n value: t(\n 'healthybowl.governmentSchemes.communication.contact.office.value',\n 'District Agriculture Office, County HQ'\n ),\n },\n ].map(({ id, icon: Icon, label, value }) => (\n <div key={id} className=\"flex items-center gap-3 rounded-md bg-bg-sunken p-3\">\n <Icon className=\"h-4 w-4 text-text-secondary\" />\n <div>\n <p className=\"text-xs text-text-secondary\">{label}</p>\n <p className=\"text-sm text-text-primary\">{value}</p>\n </div>\n </div>\n ))}\n </div>\n </ChartCard>\n\n <ChartCard\n title={t('healthybowl.governmentSchemes.communication.helpdesk.submitQueryTitle', 'Submit a Query')}\n description={t(\n 'healthybowl.governmentSchemes.communication.helpdesk.submitQueryDescription',\n \"Can't find your answer? Send us your question.\"\n )}\n actions={\n <Button onClick={() => setShowQueryModal(true)} size=\"sm\">\n <Plus className=\"h-3.5 w-3.5\" />{' '}\n {t('healthybowl.governmentSchemes.communication.actions.newQuery', 'New Query')}\n </Button>\n }\n >\n <div className=\"flex flex-col items-center justify-center py-6 text-center\">\n <HelpCircle className=\"h-10 w-10 text-text-secondary\" />\n <p className=\"mt-3 text-sm text-text-secondary\">\n {t(\n 'healthybowl.governmentSchemes.communication.helpdesk.responseTime',\n 'Our support team typically responds within 2-3 business days'\n )}\n </p>\n </div>\n </ChartCard>\n </div>\n </div>\n )}\n\n {/* Compose Message Modal */}\n <Modal\n open={showComposeModal}\n onClose={() => setShowComposeModal(false)}\n title={t('healthybowl.governmentSchemes.communication.compose.title', 'Compose Message')}\n description={t(\n 'healthybowl.governmentSchemes.communication.compose.description',\n 'Send a message to a government department'\n )}\n footer={\n <>\n <Button onClick={() => setShowComposeModal(false)} variant=\"outline\">\n {t('healthybowl.common.cancel', 'Cancel')}\n </Button>\n <Button onClick={handleSendMessage}>\n <Send className=\"h-4 w-4\" /> {t('healthybowl.governmentSchemes.communication.compose.send', 'Send')}\n </Button>\n </>\n }\n >\n <div className=\"space-y-3\">\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.compose.fields.department.label', 'To (Department) *')}\n </label>\n <Select\n value={composeForm.department}\n onValueChange={(value) => setComposeForm({ ...composeForm, department: value })}\n >\n <SelectTrigger className=\"mt-1 w-full\">\n <SelectValue\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.compose.fields.department.placeholder',\n 'Select department...'\n )}\n />\n </SelectTrigger>\n <SelectContent>\n {departments.map((dept) => (\n <SelectItem key={dept.value} value={dept.value}>\n {dept.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.compose.fields.subject.label', 'Subject *')}\n </label>\n <input\n type=\"text\"\n value={composeForm.subject}\n onChange={(e) => setComposeForm({ ...composeForm, subject: e.target.value })}\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.compose.fields.subject.placeholder',\n 'Message subject'\n )}\n 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\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.compose.fields.message.label', 'Message *')}\n </label>\n <textarea\n value={composeForm.body}\n onChange={(e) => setComposeForm({ ...composeForm, body: e.target.value })}\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.compose.fields.message.placeholder',\n 'Type your message...'\n )}\n rows={5}\n 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\"\n />\n </div>\n </div>\n </Modal>\n\n {/* Submit Query Modal */}\n <Modal\n open={showQueryModal}\n onClose={() => setShowQueryModal(false)}\n title={t('healthybowl.governmentSchemes.communication.query.title', 'Submit Query')}\n description={t(\n 'healthybowl.governmentSchemes.communication.query.description',\n 'Our support team will respond within 2-3 business days'\n )}\n footer={\n <>\n <Button onClick={() => setShowQueryModal(false)} variant=\"outline\">\n {t('healthybowl.common.cancel', 'Cancel')}\n </Button>\n <Button onClick={handleSubmitQuery}>\n {t('healthybowl.governmentSchemes.communication.query.submit', 'Submit Query')}\n </Button>\n </>\n }\n >\n <div className=\"space-y-3\">\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.query.fields.name.label', 'Your Name *')}\n </label>\n <input\n type=\"text\"\n value={queryForm.name}\n onChange={(e) => setQueryForm({ ...queryForm, name: e.target.value })}\n placeholder={t('healthybowl.governmentSchemes.communication.query.fields.name.placeholder', 'Full name')}\n 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\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.query.fields.email.label', 'Email *')}\n </label>\n <input\n type=\"email\"\n value={queryForm.email}\n onChange={(e) => setQueryForm({ ...queryForm, email: e.target.value })}\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.query.fields.email.placeholder',\n 'your@email.com'\n )}\n 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\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.query.fields.subject.label', 'Subject')}\n </label>\n <input\n type=\"text\"\n value={queryForm.subject}\n onChange={(e) => setQueryForm({ ...queryForm, subject: e.target.value })}\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.query.fields.subject.placeholder',\n 'Brief subject'\n )}\n 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\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.query.fields.question.label', 'Your Question *')}\n </label>\n <textarea\n value={queryForm.message}\n onChange={(e) => setQueryForm({ ...queryForm, message: e.target.value })}\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.query.fields.question.placeholder',\n 'Describe your question or issue...'\n )}\n rows={4}\n 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\"\n />\n </div>\n </div>\n </Modal>\n\n <ToastContainer toasts={toasts} onDismiss={dismiss} />\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAuCA,IAAa,UAA0B;CACrC,IAAM,EAAE,SAAM,GAAS,EACjB,EAAE,UAAU,GAAiB,kBAAe,aAAU,WAAQ,eAAY,GAAoB,EAE9F,EAAE,WAAQ,UAAO,eAAY,GAAU,EAEvC,IAAO;EACX;GACE,GAAG,EAAE,4DAA4D,0CAA0C;GAC3G,GAAG,EACD,4DACA,4GACD;GACF;EACD;GACE,GAAG,EAAE,iEAAiE,yCAAyC;GAC/G,GAAG,EACD,iEACA,gFACD;GACF;EACD;GACE,GAAG,EAAE,+DAA+D,oCAAoC;GACxG,GAAG,EACD,+DACA,kGACD;GACF;EACD;GACE,GAAG,EAAE,gEAAgE,+BAA+B;GACpG,GAAG,EACD,gEACA,6GACD;GACF;EACD;GACE,GAAG,EAAE,gEAAgE,8BAA8B;GACnG,GAAG,EACD,gEACA,mHACD;GACF;EACD;GACE,GAAG,EAAE,kEAAkE,mCAAmC;GAC1G,GAAG,EACD,kEACA,oJACD;GACF;EACF,EAEK,IAAkD;EACtD;GACE,OAAO;GACP,OAAO,EAAE,6EAA6E,sBAAsB;GAC7G;EACD;GACE,OAAO;GACP,OAAO,EACL,oFACA,8BACD;GACF;EACD;GACE,OAAO;GACP,OAAO,EACL,gFACA,y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EAA0E,UAAU;OACjF,CAAA,EACR,kBAAC,SAAD;OACE,MAAK;OACL,OAAO,EAAU;OACjB,WAAW,MAAM,EAAa;QAAE,GAAG;QAAW,SAAS,EAAE,OAAO;QAAO,CAAC;OACxE,aAAa,EACX,gFACA,gBACD;OACD,WAAU;OACV,CAAA,CACE,EAAA,CAAA;MACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,SAAD;OAAO,WAAU;iBACd,EAAE,2EAA2E,kBAAkB;OAC1F,CAAA,EACR,kBAAC,YAAD;OACE,OAAO,EAAU;OACjB,WAAW,MAAM,EAAa;QAAE,GAAG;QAAW,SAAS,EAAE,OAAO;QAAO,CAAC;OACxE,aAAa,EACX,iFACA,qCACD;OACD,MAAM;OACN,WAAU;OACV,CAAA,CACE,EAAA,CAAA;MACF;;IACA,CAAA;GAER,kBAAC,GAAD;IAAwB;IAAQ,WAAW;IAAW,CAAA;GAC3C"}
|
|
1
|
+
{"version":3,"file":"CommunicationPage.js","names":[],"sources":["../../../../src/healthybowl/pages/government-schemes/CommunicationPage.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\nimport { useNavigate } from 'react-router';\nimport {\n Mail,\n Phone,\n MapPin,\n ChevronDown,\n ChevronUp,\n Send,\n MessageSquare,\n Megaphone,\n HelpCircle,\n Circle,\n CalendarDays,\n Landmark,\n AlertTriangle,\n Info,\n Plus,\n} from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Button, Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '@burdenoff/fe-libs/ui';\nimport { PageLayout, ChartCard, FilterBar, Modal, ErrorState, PageLoader } from '../../components';\nimport { ToastContainer } from '../../components/Toast';\nimport { useHealthyBowlData } from '../../hooks/useHealthyBowlData';\nimport { useToast } from '../../hooks/useToast';\nimport { cn, formatDate } from '../../utils/helpers';\n\ntype TabId = 'messages' | 'announcements' | 'helpdesk';\n\ninterface Message {\n id: string;\n from: string;\n department: string;\n subject: string;\n preview: string;\n body: string;\n date: string;\n unread: boolean;\n}\n\nexport const CommunicationPage = () => {\n const { t } = useI18n();\n const navigate = useNavigate();\n const { messages: initialMessages, announcements, loadings, errors, refetch } = useHealthyBowlData();\n\n const { toasts, toast, dismiss } = useToast();\n\n const faqs = [\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.apply.q', 'How do I apply for a government scheme?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.apply.a',\n 'Navigate to Discover Schemes, review eligibility criteria, and click the Apply button on any open scheme.'\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.reviewTime.q', 'How long does application review take?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.reviewTime.a',\n 'Typically 2-4 weeks. You can track progress on the Application Tracking page.'\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.multiple.q', 'Can I apply for multiple schemes?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.multiple.a',\n \"Yes, you can apply for multiple schemes as long as you meet each scheme's eligibility criteria.\"\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.documents.q', 'What documents are required?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.documents.a',\n 'Requirements vary by scheme. Generally: farm ownership proof, organic certification, ID, and bank details.'\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.disbursed.q', 'How are benefits disbursed?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.disbursed.a',\n 'Approved benefits are typically transferred directly to your registered bank account within 30 days of approval.'\n ),\n },\n {\n q: t('healthybowl.governmentSchemes.communication.faqs.bankDetails.q', 'How do I update my bank details?'),\n a: t(\n 'healthybowl.governmentSchemes.communication.faqs.bankDetails.a',\n 'Go to your profile settings and update the bank account information under the Payment Details section. Changes take 2-3 business days to reflect.'\n ),\n },\n ];\n\n const departments: { value: string; label: string }[] = [\n {\n value: 'Dept of Agriculture',\n label: t('healthybowl.governmentSchemes.communication.departments.deptOfAgriculture', 'Dept of Agriculture'),\n },\n {\n value: 'Federal Crop Insurance Corp',\n label: t(\n 'healthybowl.governmentSchemes.communication.departments.federalCropInsuranceCorp',\n 'Federal Crop Insurance Corp'\n ),\n },\n {\n value: 'USDA Rural Development',\n label: t(\n 'healthybowl.governmentSchemes.communication.departments.usdaRuralDevelopment',\n 'USDA Rural Development'\n ),\n },\n {\n value: 'Extension Services',\n label: t('healthybowl.governmentSchemes.communication.departments.extensionServices', 'Extension Services'),\n },\n {\n value: 'Water Resources Board',\n label: t('healthybowl.governmentSchemes.communication.departments.waterResourcesBoard', 'Water Resources Board'),\n },\n ];\n const [activeTab, setActiveTab] = useState<TabId>('messages');\n const [messages, setMessages] = useState<Message[]>([]);\n const [selectedMessage, setSelectedMessage] = useState<Message | null>(null);\n const [messageSearch, setMessageSearch] = useState('');\n const [expandedFaq, setExpandedFaq] = useState<number | null>(null);\n const [showComposeModal, setShowComposeModal] = useState(false);\n const [composeForm, setComposeForm] = useState({ department: '', subject: '', body: '' });\n\n useEffect(() => {\n setMessages(initialMessages);\n }, [initialMessages]);\n\n const unreadCount = messages.filter((m) => m.unread).length;\n\n const filteredMessages = messages.filter(\n (m) =>\n messageSearch === '' ||\n (m.subject ?? '').toLowerCase().includes(messageSearch.toLowerCase()) ||\n (m.from ?? '').toLowerCase().includes(messageSearch.toLowerCase())\n );\n\n const markAsRead = (id: string) => {\n setMessages((prev) => prev.map((m) => (m.id === id ? { ...m, unread: false } : m)));\n };\n\n const handleOpenMessage = (msg: Message) => {\n markAsRead(msg.id);\n setSelectedMessage(msg);\n };\n\n const handleSendMessage = () => {\n if (!composeForm.department || !composeForm.subject || !composeForm.body) {\n toast({\n title: t('healthybowl.governmentSchemes.communication.toast.allFieldsRequired', 'All fields are required'),\n variant: 'error',\n });\n return;\n }\n setShowComposeModal(false);\n toast({\n title: t(\n 'healthybowl.governmentSchemes.communication.toast.messagingUnavailable.title',\n 'Messaging is not available yet'\n ),\n description: t(\n 'healthybowl.governmentSchemes.communication.toast.messagingUnavailable.description',\n 'Sending messages to departments is not available yet. Your message was not sent.'\n ),\n variant: 'warning',\n });\n setComposeForm({ department: '', subject: '', body: '' });\n };\n\n const tabs: { id: TabId; label: string; icon: typeof MessageSquare; badge?: number }[] = [\n {\n id: 'messages',\n label: t('healthybowl.governmentSchemes.communication.tabs.messages', 'Messages'),\n icon: MessageSquare,\n badge: unreadCount > 0 ? unreadCount : undefined,\n },\n {\n id: 'announcements',\n label: t('healthybowl.governmentSchemes.communication.tabs.announcements', 'Announcements'),\n icon: Megaphone,\n },\n {\n id: 'helpdesk',\n label: t('healthybowl.governmentSchemes.communication.tabs.helpdesk', 'Helpdesk'),\n icon: HelpCircle,\n },\n ];\n\n const getAnnouncementIcon = (category: string) => {\n switch (category) {\n case 'New Scheme':\n return <Landmark className=\"h-4 w-4\" />;\n case 'Deadline Update':\n return <AlertTriangle className=\"h-4 w-4\" />;\n case 'System':\n return <Info className=\"h-4 w-4\" />;\n case 'Training':\n return <HelpCircle className=\"h-4 w-4\" />;\n default:\n return <Megaphone className=\"h-4 w-4\" />;\n }\n };\n\n return (\n <PageLayout\n title={t('healthybowl.governmentSchemes.communication.title', 'Communication')}\n description={t(\n 'healthybowl.governmentSchemes.communication.description',\n 'Messages, announcements, and helpdesk support'\n )}\n 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.\"\n >\n {/* Tab Navigation */}\n <div className=\"flex items-center gap-1 rounded-lg border border-border-subtle bg-bg-sunken/50 p-1\">\n {tabs.map((tab) => {\n const Icon = tab.icon;\n return (\n <button\n key={tab.id}\n type=\"button\"\n onClick={() => setActiveTab(tab.id)}\n className={cn(\n 'flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors',\n activeTab === tab.id\n ? 'bg-bg-surface text-text-primary shadow-sm'\n : 'text-text-secondary hover:text-text-primary'\n )}\n >\n <Icon className=\"h-4 w-4\" />\n {tab.label}\n {tab.badge && (\n <span className=\"flex h-5 w-5 items-center justify-center rounded-full bg-action-primary-bg text-[10px] font-bold text-action-primary-text\">\n {tab.badge}\n </span>\n )}\n </button>\n );\n })}\n </div>\n\n {/* Messages Tab */}\n {activeTab === 'messages' && (\n <div className=\"space-y-4\">\n <FilterBar\n searchValue={messageSearch}\n onSearchChange={setMessageSearch}\n searchPlaceholder={t(\n 'healthybowl.governmentSchemes.communication.messages.searchPlaceholder',\n 'Search messages...'\n )}\n actions={\n <Button onClick={() => setShowComposeModal(true)} size=\"sm\">\n <Plus className=\"h-3.5 w-3.5\" />{' '}\n {t('healthybowl.governmentSchemes.communication.actions.compose', 'Compose')}\n </Button>\n }\n />\n\n {selectedMessage ? (\n <div className=\"rounded-lg border border-border-subtle bg-bg-surface p-6\">\n <Button onClick={() => setSelectedMessage(null)} variant=\"ghost\" size=\"sm\" className=\"mb-4 text-primary\">\n ← {t('healthybowl.governmentSchemes.communication.messages.backToInbox', 'Back to inbox')}\n </Button>\n <div className=\"flex items-start justify-between\">\n <div>\n <h3 className=\"text-base font-semibold text-text-primary\">{selectedMessage.subject}</h3>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {t(\n 'healthybowl.governmentSchemes.communication.messages.fromLine',\n 'From: {{from}} ({{department}})',\n {\n from: selectedMessage.from,\n department: selectedMessage.department,\n }\n )}\n </p>\n <p className=\"text-xs text-text-secondary\">{formatDate(selectedMessage.date)}</p>\n </div>\n </div>\n <div className=\"mt-4 rounded-md bg-bg-sunken/50 p-4\">\n <p className=\"text-sm leading-relaxed text-text-primary\">{selectedMessage.body}</p>\n </div>\n <div className=\"mt-4 flex gap-2\">\n <Button\n onClick={() => {\n setComposeForm({\n department: selectedMessage.department,\n subject: `Re: ${selectedMessage.subject}`,\n body: '',\n });\n setShowComposeModal(true);\n setSelectedMessage(null);\n }}\n >\n {t('healthybowl.governmentSchemes.communication.messages.reply', 'Reply')}\n </Button>\n </div>\n </div>\n ) : (\n <div className=\"space-y-2\">\n {loadings.government ? (\n <PageLoader />\n ) : errors.government ? (\n <ErrorState onRetry={refetch} />\n ) : filteredMessages.length === 0 ? (\n <div className=\"rounded-lg border border-dashed border-border-subtle bg-bg-surface/50 p-8 text-center\">\n <Mail className=\"mx-auto h-10 w-10 text-text-secondary\" />\n <p className=\"mt-2 text-sm font-medium text-text-primary\">\n {t('healthybowl.governmentSchemes.communication.messages.emptyState.title', 'No messages found')}\n </p>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {t(\n 'healthybowl.governmentSchemes.communication.messages.emptyState.hint',\n 'Try adjusting your search'\n )}\n </p>\n </div>\n ) : (\n filteredMessages.map((msg) => (\n <button\n key={msg.id}\n type=\"button\"\n onClick={() => handleOpenMessage(msg)}\n className={cn(\n 'flex w-full items-start gap-3 rounded-lg border border-border-subtle p-4 text-left transition-colors hover:bg-bg-sunken/50',\n msg.unread && 'border-primary/30 bg-action-primary-bg/5'\n )}\n >\n <div className=\"mt-1 shrink-0\">\n {msg.unread ? (\n <Circle className=\"h-2.5 w-2.5 fill-primary text-primary\" />\n ) : (\n <Circle className=\"h-2.5 w-2.5 text-text-secondary/30\" />\n )}\n </div>\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center justify-between gap-2\">\n <p\n className={cn(\n 'text-sm',\n msg.unread ? 'font-semibold text-text-primary' : 'font-medium text-text-primary'\n )}\n >\n {msg.from}\n </p>\n <span className=\"shrink-0 text-xs text-text-secondary\">{formatDate(msg.date)}</span>\n </div>\n <p\n className={cn(\n 'mt-0.5 text-sm',\n msg.unread ? 'font-medium text-text-primary' : 'text-text-primary'\n )}\n >\n {msg.subject}\n </p>\n <p className=\"mt-0.5 truncate text-xs text-text-secondary\">{msg.preview}</p>\n </div>\n </button>\n ))\n )}\n </div>\n )}\n </div>\n )}\n\n {/* Announcements Tab */}\n {activeTab === 'announcements' && (\n <div className=\"space-y-4\">\n {announcements.map((ann) => (\n <div key={ann.id} className=\"rounded-lg border border-border-subtle bg-bg-surface p-5\">\n <div className=\"flex items-start gap-3\">\n <div className=\"mt-0.5 shrink-0 rounded-md bg-bg-sunken p-2 text-text-secondary\">\n {getAnnouncementIcon(ann.category)}\n </div>\n <div className=\"flex-1\">\n <div className=\"flex items-start justify-between gap-3\">\n <div>\n <h3 className=\"text-sm font-semibold text-text-primary\">{ann.title}</h3>\n <div className=\"mt-1 flex items-center gap-2\">\n <span className=\"rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] font-medium text-text-secondary\">\n {ann.category}\n </span>\n <span className=\"flex items-center gap-1 text-xs text-text-secondary\">\n <CalendarDays className=\"h-3 w-3\" />\n {formatDate(ann.date)}\n </span>\n </div>\n </div>\n </div>\n <p className=\"mt-3 text-sm leading-relaxed text-text-secondary\">{ann.content}</p>\n </div>\n </div>\n </div>\n ))}\n </div>\n )}\n\n {/* Helpdesk Tab */}\n {activeTab === 'helpdesk' && (\n <div className=\"space-y-6\">\n {/* FAQ Section */}\n <ChartCard\n title={t('healthybowl.governmentSchemes.communication.helpdesk.faqTitle', 'Frequently Asked Questions')}\n description={t(\n 'healthybowl.governmentSchemes.communication.helpdesk.faqDescription',\n 'Common questions about government schemes'\n )}\n >\n <div className=\"space-y-2\">\n {faqs.map((faq, i) => (\n <div key={i} className=\"rounded-md border border-border-subtle\">\n <button\n type=\"button\"\n onClick={() => setExpandedFaq(expandedFaq === i ? null : i)}\n className=\"flex w-full items-center justify-between px-4 py-3 text-left text-sm font-medium text-text-primary hover:bg-bg-sunken/50\"\n >\n {faq.q}\n {expandedFaq === i ? (\n <ChevronUp className=\"h-4 w-4 shrink-0 text-text-secondary\" />\n ) : (\n <ChevronDown className=\"h-4 w-4 shrink-0 text-text-secondary\" />\n )}\n </button>\n {expandedFaq === i && (\n <div className=\"border-t border-border-subtle px-4 py-3 text-sm leading-relaxed text-text-secondary\">\n {faq.a}\n </div>\n )}\n </div>\n ))}\n </div>\n </ChartCard>\n\n {/* Contact Info + Submit Query */}\n <div className=\"grid gap-6 lg:grid-cols-2\">\n <ChartCard\n title={t('healthybowl.governmentSchemes.communication.helpdesk.contactTitle', 'Contact Information')}\n >\n <div className=\"space-y-3\">\n {[\n {\n id: 'helpline',\n icon: Phone,\n label: t('healthybowl.governmentSchemes.communication.contact.helpline.label', 'Helpline'),\n value: t(\n 'healthybowl.governmentSchemes.communication.contact.helpline.value',\n '1800-XXX-XXXX (Toll Free)'\n ),\n },\n {\n id: 'email',\n icon: Mail,\n label: t('healthybowl.governmentSchemes.communication.contact.email.label', 'Email'),\n value: 'support@agriculture.gov',\n },\n {\n id: 'office',\n icon: MapPin,\n label: t('healthybowl.governmentSchemes.communication.contact.office.label', 'Office'),\n value: t(\n 'healthybowl.governmentSchemes.communication.contact.office.value',\n 'District Agriculture Office, County HQ'\n ),\n },\n ].map(({ id, icon: Icon, label, value }) => (\n <div key={id} className=\"flex items-center gap-3 rounded-md bg-bg-sunken p-3\">\n <Icon className=\"h-4 w-4 text-text-secondary\" />\n <div>\n <p className=\"text-xs text-text-secondary\">{label}</p>\n <p className=\"text-sm text-text-primary\">{value}</p>\n </div>\n </div>\n ))}\n </div>\n </ChartCard>\n\n <ChartCard\n title={t('healthybowl.governmentSchemes.communication.helpdesk.submitQueryTitle', 'Submit a Query')}\n description={t(\n 'healthybowl.governmentSchemes.communication.helpdesk.submitQueryDescription',\n \"Can't find your answer? Open a support ticket and track its status.\"\n )}\n actions={\n <Button onClick={() => navigate('/support')} size=\"sm\">\n <Plus className=\"h-3.5 w-3.5\" />{' '}\n {t('healthybowl.governmentSchemes.communication.actions.newQuery', 'New Query')}\n </Button>\n }\n >\n <div className=\"flex flex-col items-center justify-center py-6 text-center\">\n <HelpCircle className=\"h-10 w-10 text-text-secondary\" />\n <p className=\"mt-3 text-sm text-text-secondary\">\n {t(\n 'healthybowl.governmentSchemes.communication.helpdesk.responseTime',\n 'Raise a ticket in the Support Center — our team will follow up and you can track its status there.'\n )}\n </p>\n <Button onClick={() => navigate('/support')} variant=\"outline\" size=\"sm\" className=\"mt-4\">\n {t('healthybowl.governmentSchemes.communication.helpdesk.goToSupport', 'Go to Support Center')}\n </Button>\n </div>\n </ChartCard>\n </div>\n </div>\n )}\n\n {/* Compose Message Modal */}\n <Modal\n open={showComposeModal}\n onClose={() => setShowComposeModal(false)}\n title={t('healthybowl.governmentSchemes.communication.compose.title', 'Compose Message')}\n description={t(\n 'healthybowl.governmentSchemes.communication.compose.description',\n 'Send a message to a government department'\n )}\n footer={\n <>\n <Button onClick={() => setShowComposeModal(false)} variant=\"outline\">\n {t('healthybowl.common.cancel', 'Cancel')}\n </Button>\n <Button onClick={handleSendMessage}>\n <Send className=\"h-4 w-4\" /> {t('healthybowl.governmentSchemes.communication.compose.send', 'Send')}\n </Button>\n </>\n }\n >\n <div className=\"space-y-3\">\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.compose.fields.department.label', 'To (Department) *')}\n </label>\n <Select\n value={composeForm.department}\n onValueChange={(value) => setComposeForm({ ...composeForm, department: value })}\n >\n <SelectTrigger className=\"mt-1 w-full\">\n <SelectValue\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.compose.fields.department.placeholder',\n 'Select department...'\n )}\n />\n </SelectTrigger>\n <SelectContent>\n {departments.map((dept) => (\n <SelectItem key={dept.value} value={dept.value}>\n {dept.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.compose.fields.subject.label', 'Subject *')}\n </label>\n <input\n type=\"text\"\n value={composeForm.subject}\n onChange={(e) => setComposeForm({ ...composeForm, subject: e.target.value })}\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.compose.fields.subject.placeholder',\n 'Message subject'\n )}\n 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\"\n />\n </div>\n <div>\n <label className=\"block text-xs font-medium text-text-secondary\">\n {t('healthybowl.governmentSchemes.communication.compose.fields.message.label', 'Message *')}\n </label>\n <textarea\n value={composeForm.body}\n onChange={(e) => setComposeForm({ ...composeForm, body: e.target.value })}\n placeholder={t(\n 'healthybowl.governmentSchemes.communication.compose.fields.message.placeholder',\n 'Type your message...'\n )}\n rows={5}\n 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\"\n />\n </div>\n </div>\n </Modal>\n\n <ToastContainer toasts={toasts} onDismiss={dismiss} />\n </PageLayout>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAwCA,IAAa,UAA0B;CACrC,IAAM,EAAE,SAAM,GAAS,EACjB,IAAW,IAAa,EACxB,EAAE,UAAU,GAAiB,kBAAe,aAAU,WAAQ,eAAY,IAAoB,EAE9F,EAAE,WAAQ,UAAO,eAAY,IAAU,EAEvC,IAAO;EACX;GACE,GAAG,EAAE,4DAA4D,0CAA0C;GAC3G,GAAG,EACD,4DACA,4GACD;GACF;EACD;GACE,GAAG,EAAE,iEAAiE,yCAAyC;GAC/G,GAAG,EACD,iEACA,gFACD;GACF;EACD;GACE,GAAG,EAAE,+DAA+D,oCAAoC;GACxG,GAAG,EACD,+DACA,kGACD;GACF;EACD;GACE,GAAG,EAAE,gEAAgE,+BAA+B;GACpG,GAAG,EACD,gEACA,6GACD;GACF;EACD;GACE,GAAG,EAAE,gEAAgE,8BAA8B;GACnG,GAAG,EACD,gEACA,mHACD;GACF;EACD;GACE,GAAG,EAAE,kEAAkE,mCAAmC;GAC1G,GAAG,EACD,kEACA,oJACD;GACF;EACF,EAEK,IAAkD;EACtD;GACE,OAAO;GACP,OAAO,EAAE,6EAA6E,sBAAsB;GAC7G;EACD;GACE,OAAO;GACP,OAAO,EACL,oFACA,8BACD;GACF;EACD;GACE,OAAO;GACP,OAAO,EACL,gFACA,yBACD;GACF;EACD;GACE,OAAO;GACP,OAAO,EAAE,6EAA6E,qBAAqB;GAC5G;EACD;GACE,OAAO;GACP,OAAO,EAAE,+EAA+E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AO,WAAU;iBACd,EAAE,+EAA+E,oBAAoB;OAChG,CAAA,EACR,kBAAC,GAAD;OACE,OAAO,EAAY;OACnB,gBAAgB,MAAU,EAAe;QAAE,GAAG;QAAa,YAAY;QAAO,CAAC;iBAFjF,CAIE,kBAAC,GAAD;QAAe,WAAU;kBACvB,kBAAC,GAAD,EACE,aAAa,EACX,qFACA,uBACD,EACD,CAAA;QACY,CAAA,EAChB,kBAAC,GAAD,EAAA,UACG,EAAY,KAAK,MAChB,kBAAC,GAAD;QAA6B,OAAO,EAAK;kBACtC,EAAK;QACK,EAFI,EAAK,MAET,CACb,EACY,CAAA,CACT;SACL,EAAA,CAAA;MACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,SAAD;OAAO,WAAU;iBACd,EAAE,4EAA4E,YAAY;OACrF,CAAA,EACR,kBAAC,SAAD;OACE,MAAK;OACL,OAAO,EAAY;OACnB,WAAW,MAAM,EAAe;QAAE,GAAG;QAAa,SAAS,EAAE,OAAO;QAAO,CAAC;OAC5E,aAAa,EACX,kFACA,kBACD;OACD,WAAU;OACV,CAAA,CACE,EAAA,CAAA;MACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,SAAD;OAAO,WAAU;iBACd,EAAE,4EAA4E,YAAY;OACrF,CAAA,EACR,kBAAC,YAAD;OACE,OAAO,EAAY;OACnB,WAAW,MAAM,EAAe;QAAE,GAAG;QAAa,MAAM,EAAE,OAAO;QAAO,CAAC;OACzE,aAAa,EACX,kFACA,uBACD;OACD,MAAM;OACN,WAAU;OACV,CAAA,CACE,EAAA,CAAA;MACF;;IACA,CAAA;GAER,kBAAC,IAAD;IAAwB;IAAQ,WAAW;IAAW,CAAA;GAC3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-healthybowl",
|
|
3
|
-
"version": "2026.810.
|
|
3
|
+
"version": "2026.810.3",
|
|
4
4
|
"description": "Burdenoff HealthyBowl Microfrontend - Comprehensive organic farming and agro-foods management platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@apollo/client": "^4.0.11",
|
|
49
|
-
"@burdenoff/fe-libs": "2026.
|
|
49
|
+
"@burdenoff/fe-libs": "2026.810.1",
|
|
50
50
|
"@burdenoff/planmagnet-fe-sdk": "2026.708.1",
|
|
51
51
|
"@tanstack/react-query": "^5.90.16",
|
|
52
52
|
"clsx": "^2.1.1",
|