@burdenoff/microfe-healthybowl 2026.902.19 → 2026.902.21

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.
Files changed (30) hide show
  1. package/dist/components/assistant/AssistantChatArea.js +234 -220
  2. package/dist/components/assistant/AssistantChatArea.js.map +1 -1
  3. package/dist/components/assistant/AssistantSpokenTurnsNotice.js +33 -0
  4. package/dist/components/assistant/AssistantSpokenTurnsNotice.js.map +1 -0
  5. package/dist/components/assistant/voice/AssistantVoiceSession.js +16 -16
  6. package/dist/components/assistant/voice/VoiceTranscriptDrawer.js.map +1 -1
  7. package/dist/healthybowl/hooks/useConsultationPayments.js +59 -0
  8. package/dist/healthybowl/hooks/useConsultationPayments.js.map +1 -0
  9. package/dist/healthybowl/hooks/useHealthyBowlData.js +15 -0
  10. package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
  11. package/dist/healthybowl/offline/graphql.js.map +1 -1
  12. package/dist/healthybowl/offline/syncEngine.js +2 -1
  13. package/dist/healthybowl/offline/syncEngine.js.map +1 -1
  14. package/dist/healthybowl/offline/types.js.map +1 -1
  15. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +228 -188
  16. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
  17. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +261 -191
  18. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
  19. package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js +49 -0
  20. package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js.map +1 -0
  21. package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js +48 -0
  22. package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js.map +1 -0
  23. package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js +54 -0
  24. package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js.map +1 -0
  25. package/dist/healthybowl/pages/network/ExpertsPage.js +520 -419
  26. package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
  27. package/dist/hooks/useConversationTurns.js +19 -0
  28. package/dist/hooks/useConversationTurns.js.map +1 -0
  29. package/dist/types/assistant.js.map +1 -1
  30. package/package.json +1 -1
@@ -1,28 +1,29 @@
1
1
  import { cn as e, formatCurrency as t, formatDateOnly as n, todayLocalDate as r } from "../../utils/helpers.js";
2
- import { PageLayout as ee } from "../../components/PageLayout.js";
3
- import { StatCard as i } from "../../components/StatCard.js";
4
- import { StatusBadge as a } from "../../components/StatusBadge.js";
5
- import { EmptyState as te } from "../../components/EmptyState.js";
6
- import { ErrorState as ne } from "../../components/ErrorState.js";
7
- import { FilterBar as re } from "../../components/FilterBar.js";
8
- import { ToastContainer as ie } from "../../components/Toast.js";
9
- import { PageLoader as ae } from "../../components/PageLoader.js";
10
- import { Modal as oe } from "../../components/Modal.js";
11
- import { useToast as se } from "../../hooks/useToast.js";
2
+ import { PageLayout as i } from "../../components/PageLayout.js";
3
+ import { StatCard as a } from "../../components/StatCard.js";
4
+ import { StatusBadge as o } from "../../components/StatusBadge.js";
5
+ import { EmptyState as s } from "../../components/EmptyState.js";
6
+ import { ErrorState as ee } from "../../components/ErrorState.js";
7
+ import { FilterBar as te } from "../../components/FilterBar.js";
8
+ import { ToastContainer as ne } from "../../components/Toast.js";
9
+ import { PageLoader as re } from "../../components/PageLoader.js";
10
+ import { Modal as ie } from "../../components/Modal.js";
11
+ import { useToast as ae } from "../../hooks/useToast.js";
12
12
  import "../../components/index.js";
13
- import { useHealthyBowlData as ce } from "../../hooks/useHealthyBowlData.js";
14
- import { useEffect as le, useRef as ue, useState as o } from "react";
15
- import { useI18n as de } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
16
- import { ArrowUpDown as fe, Award as pe, CalendarCheck as s, ChevronDown as me, Clock as he, Eye as ge, Globe as _e, MapPin as ve, Pencil as ye, Plus as c, Star as l, Trash2 as be, User as xe, Zap as Se } from "lucide-react";
17
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
18
- import { Button as p, Select as m, SelectContent as h, SelectItem as g, SelectTrigger as _, SelectValue as v } from "@burdenoff/fe-libs/ui";
13
+ import { useHealthyBowlData as oe } from "../../hooks/useHealthyBowlData.js";
14
+ import { useConsultationPayments as se } from "../../hooks/useConsultationPayments.js";
15
+ import { useEffect as ce, useRef as le, useState as c } from "react";
16
+ import { useI18n as ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
+ import { ArrowUpDown as de, Award as fe, CalendarCheck as l, ChevronDown as pe, Clock as me, Eye as he, Globe as ge, MapPin as _e, Pencil as ve, Plus as u, Star as ye, Trash2 as be, User as xe, Wallet as Se, Zap as Ce } from "lucide-react";
18
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
19
+ import { Button as m, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y } from "@burdenoff/fe-libs/ui";
19
20
  //#region src/healthybowl/pages/network/ExpertsPage.tsx
20
- var y = {
21
+ var b = {
21
22
  topic: "",
22
23
  requestedDate: "",
23
24
  mode: "phone",
24
25
  notes: ""
25
- }, b = {
26
+ }, x = {
26
27
  name: "",
27
28
  specialization: "",
28
29
  experience: "",
@@ -31,30 +32,36 @@ var y = {
31
32
  availability: "available",
32
33
  hourlyRate: "",
33
34
  languages: ""
34
- }, Ce = (e) => {
35
+ }, we = (e) => {
35
36
  switch (e) {
36
37
  case "CONFIRMED": return "success";
37
38
  case "COMPLETED": return "info";
38
39
  case "CANCELLED": return "muted";
39
40
  default: return "warning";
40
41
  }
41
- }, we = [
42
+ }, Te = (e) => {
43
+ switch (e) {
44
+ case "PAID": return "success";
45
+ case "REFUNDED": return "error";
46
+ default: return "warning";
47
+ }
48
+ }, Ee = [
42
49
  "All",
43
50
  "Organic Crop Science",
44
51
  "Integrated Pest Management",
45
52
  "Soil Science & Fertility",
46
53
  "Livestock & Veterinary",
47
54
  "Organic Certification"
48
- ], Te = [
55
+ ], De = [
49
56
  "All",
50
57
  "Available",
51
58
  "Busy"
52
- ], Ee = [
59
+ ], Oe = [
53
60
  "rating",
54
61
  "experience",
55
62
  "price-asc",
56
63
  "price-desc"
57
- ], De = (e) => {
64
+ ], ke = (e) => {
58
65
  switch (e) {
59
66
  case "available": return "success";
60
67
  case "busy": return "warning";
@@ -62,72 +69,78 @@ var y = {
62
69
  default: return "default";
63
70
  }
64
71
  };
65
- function Oe(t) {
66
- return Array.from({ length: 5 }, (n, r) => /* @__PURE__ */ d(l, { className: e("h-3.5 w-3.5", r < Math.round(t) ? "fill-warning text-warning" : "text-muted") }, r));
72
+ function Ae(t) {
73
+ return Array.from({ length: 5 }, (n, r) => /* @__PURE__ */ f(ye, { className: e("h-3.5 w-3.5", r < Math.round(t) ? "fill-warning text-warning" : "text-muted") }, r));
67
74
  }
68
- var x = () => {
69
- let { t: x } = de(), { experts: S, consultations: ke, createConsultation: Ae, updateConsultationStatus: je, createExpert: Me, updateExpert: Ne, deleteExpert: Pe, errors: Fe, loadings: Ie, refetch: Le } = ce(), Re = [{
75
+ var S = () => {
76
+ let { t: S } = ue(), { experts: C, consultations: je, createConsultation: Me, updateConsultationStatus: Ne, createExpert: Pe, updateExpert: Fe, deleteExpert: Ie, errors: Le, loadings: Re, refetch: w } = oe(), { checkoutConsultation: ze, syncConsultationPayment: Be, loadRazorpay: Ve } = se(), He = [{
70
77
  value: "phone",
71
- label: x("healthybowl.network.experts.modes.phone", "Phone call")
78
+ label: S("healthybowl.network.experts.modes.phone", "Phone call")
72
79
  }, {
73
80
  value: "in_person",
74
- label: x("healthybowl.network.experts.modes.inPerson", "In person")
75
- }], C = {
76
- rating: x("healthybowl.network.experts.sort.rating", "Rating"),
77
- experience: x("healthybowl.network.experts.sort.experience", "Experience"),
78
- "price-asc": x("healthybowl.network.experts.sort.priceAsc", "Price: Low → High"),
79
- "price-desc": x("healthybowl.network.experts.sort.priceDesc", "Price: High → Low")
80
- }, ze = {
81
- All: x("healthybowl.common.all", "All"),
82
- "Organic Crop Science": x("healthybowl.network.experts.specializations.organicCropScience", "Organic Crop Science"),
83
- "Integrated Pest Management": x("healthybowl.network.experts.specializations.integratedPestManagement", "Integrated Pest Management"),
84
- "Soil Science & Fertility": x("healthybowl.network.experts.specializations.soilScienceFertility", "Soil Science & Fertility"),
85
- "Livestock & Veterinary": x("healthybowl.network.experts.specializations.livestockVeterinary", "Livestock & Veterinary"),
86
- "Organic Certification": x("healthybowl.network.experts.specializations.organicCertification", "Organic Certification")
87
- }, Be = {
88
- All: x("healthybowl.common.all", "All"),
89
- Available: x("healthybowl.network.experts.availabilityFilter.available", "Available"),
90
- Busy: x("healthybowl.network.experts.availabilityFilter.busy", "Busy")
91
- }, Ve = {
92
- available: x("healthybowl.network.experts.availability.available", "available"),
93
- busy: x("healthybowl.network.experts.availability.busy", "busy"),
94
- offline: x("healthybowl.network.experts.availability.offline", "offline")
95
- }, He = {
96
- REQUESTED: x("healthybowl.network.experts.consultationStatus.requested", "REQUESTED"),
97
- CONFIRMED: x("healthybowl.network.experts.consultationStatus.confirmed", "CONFIRMED"),
98
- COMPLETED: x("healthybowl.network.experts.consultationStatus.completed", "COMPLETED"),
99
- CANCELLED: x("healthybowl.network.experts.consultationStatus.cancelled", "CANCELLED")
81
+ label: S("healthybowl.network.experts.modes.inPerson", "In person")
82
+ }], T = {
83
+ rating: S("healthybowl.network.experts.sort.rating", "Rating"),
84
+ experience: S("healthybowl.network.experts.sort.experience", "Experience"),
85
+ "price-asc": S("healthybowl.network.experts.sort.priceAsc", "Price: Low → High"),
86
+ "price-desc": S("healthybowl.network.experts.sort.priceDesc", "Price: High → Low")
100
87
  }, Ue = {
101
- video: x("healthybowl.network.experts.modes.video", "Video call (coming soon)"),
102
- phone: x("healthybowl.network.experts.modes.phone", "Phone call"),
103
- in_person: x("healthybowl.network.experts.modes.inPerson", "In person")
104
- }, [w, We] = o(""), [T, E] = o("All"), [D, O] = o("All"), [k, Ge] = o("rating"), [Ke, A] = o(!1), [qe, Je] = o(null), [j, Ye] = o(null), [M, N] = o(y), [P, F] = o(!1), [Xe, I] = o(!1), [L, R] = o(null), [z, B] = o(b), [V, H] = o(!1), [Ze, U] = o(null), [W, G] = o(null), Qe = [
88
+ All: S("healthybowl.common.all", "All"),
89
+ "Organic Crop Science": S("healthybowl.network.experts.specializations.organicCropScience", "Organic Crop Science"),
90
+ "Integrated Pest Management": S("healthybowl.network.experts.specializations.integratedPestManagement", "Integrated Pest Management"),
91
+ "Soil Science & Fertility": S("healthybowl.network.experts.specializations.soilScienceFertility", "Soil Science & Fertility"),
92
+ "Livestock & Veterinary": S("healthybowl.network.experts.specializations.livestockVeterinary", "Livestock & Veterinary"),
93
+ "Organic Certification": S("healthybowl.network.experts.specializations.organicCertification", "Organic Certification")
94
+ }, We = {
95
+ All: S("healthybowl.common.all", "All"),
96
+ Available: S("healthybowl.network.experts.availabilityFilter.available", "Available"),
97
+ Busy: S("healthybowl.network.experts.availabilityFilter.busy", "Busy")
98
+ }, Ge = {
99
+ available: S("healthybowl.network.experts.availability.available", "available"),
100
+ busy: S("healthybowl.network.experts.availability.busy", "busy"),
101
+ offline: S("healthybowl.network.experts.availability.offline", "offline")
102
+ }, E = {
103
+ REQUESTED: S("healthybowl.network.experts.consultationStatus.requested", "REQUESTED"),
104
+ CONFIRMED: S("healthybowl.network.experts.consultationStatus.confirmed", "CONFIRMED"),
105
+ COMPLETED: S("healthybowl.network.experts.consultationStatus.completed", "COMPLETED"),
106
+ CANCELLED: S("healthybowl.network.experts.consultationStatus.cancelled", "CANCELLED")
107
+ }, Ke = {
108
+ PENDING: S("healthybowl.network.experts.paymentStatus.pending", "Payment pending"),
109
+ PAID: S("healthybowl.network.experts.paymentStatus.paid", "Paid"),
110
+ REFUNDED: S("healthybowl.network.experts.paymentStatus.refunded", "Refunded")
111
+ }, qe = {
112
+ video: S("healthybowl.network.experts.modes.video", "Video call (coming soon)"),
113
+ phone: S("healthybowl.network.experts.modes.phone", "Phone call"),
114
+ in_person: S("healthybowl.network.experts.modes.inPerson", "In person")
115
+ }, [D, O] = c(""), [k, A] = c("All"), [j, M] = c("All"), [N, Je] = c("rating"), [Ye, P] = c(!1), [Xe, Ze] = c(null), [F, I] = c(null), [L, R] = c(b), [z, Qe] = c(!1), [$e, B] = c(!1), [V, H] = c(null), [U, W] = c(x), [et, tt] = c(!1), [nt, rt] = c(null), [G, it] = c(null), [at, ot] = c(() => /* @__PURE__ */ new Set()), K = le(/* @__PURE__ */ new Set()), st = (e) => K.current.has(e) ? !1 : (K.current.add(e), ot(new Set(K.current)), !0), ct = (e) => {
116
+ K.current.delete(e), ot(new Set(K.current));
117
+ }, lt = [
105
118
  {
106
119
  value: "available",
107
- label: x("healthybowl.network.experts.availability.available", "available")
120
+ label: S("healthybowl.network.experts.availability.available", "available")
108
121
  },
109
122
  {
110
123
  value: "busy",
111
- label: x("healthybowl.network.experts.availability.busy", "busy")
124
+ label: S("healthybowl.network.experts.availability.busy", "busy")
112
125
  },
113
126
  {
114
127
  value: "offline",
115
- label: x("healthybowl.network.experts.availability.offline", "offline")
128
+ label: S("healthybowl.network.experts.availability.offline", "offline")
116
129
  }
117
- ], K = ue(null), { toasts: $e, toast: q, dismiss: et } = se(), J = ke.filter((e) => e.consultantType === "EXPERT"), Y = (e, t) => N((n) => ({
130
+ ], q = le(null), { toasts: ut, toast: J, dismiss: dt } = ae(), ft = je.filter((e) => e.consultantType === "EXPERT"), Y = (e, t) => R((n) => ({
118
131
  ...n,
119
132
  [e]: t
120
- })), tt = (e) => {
121
- N(y), Ye(e);
133
+ })), pt = (e) => {
134
+ R(b), I(e);
122
135
  }, X = () => {
123
- Ye(null), N(y);
124
- }, Z = (e, t) => B((n) => ({
136
+ I(null), R(b);
137
+ }, Z = (e, t) => W((n) => ({
125
138
  ...n,
126
139
  [e]: t
127
- })), nt = () => {
128
- R(null), B(b), I(!0);
129
- }, rt = (e) => {
130
- R(e), B({
140
+ })), mt = () => {
141
+ H(null), W(x), B(!0);
142
+ }, ht = (e) => {
143
+ H(e), W({
131
144
  name: e.name,
132
145
  specialization: e.specialization,
133
146
  experience: String(e.experience),
@@ -136,397 +149,461 @@ var x = () => {
136
149
  availability: e.availability,
137
150
  hourlyRate: String(e.hourlyRate),
138
151
  languages: (e.languages ?? []).join(", ")
139
- }), I(!0);
152
+ }), B(!0);
140
153
  }, Q = () => {
141
- I(!1), R(null), B(b);
142
- }, it = async () => {
143
- if (!z.name.trim() || !z.specialization.trim() || !z.location.trim()) {
144
- q({
145
- title: x("healthybowl.network.experts.form.toast.missingFields.title", "Missing required fields"),
146
- description: x("healthybowl.network.experts.form.toast.missingFields.description", "Name, specialization, and location are required."),
154
+ B(!1), H(null), W(x);
155
+ }, gt = async () => {
156
+ if (!U.name.trim() || !U.specialization.trim() || !U.location.trim()) {
157
+ J({
158
+ title: S("healthybowl.network.experts.form.toast.missingFields.title", "Missing required fields"),
159
+ description: S("healthybowl.network.experts.form.toast.missingFields.description", "Name, specialization, and location are required."),
147
160
  variant: "warning"
148
161
  });
149
162
  return;
150
163
  }
151
- let e = z.languages.split(",").map((e) => e.trim()).filter((e) => e.length > 0);
152
- H(!0);
164
+ let e = U.languages.split(",").map((e) => e.trim()).filter((e) => e.length > 0);
165
+ tt(!0);
153
166
  try {
154
- L ? (await Ne({
155
- id: L.id,
156
- name: z.name.trim(),
157
- specialization: z.specialization.trim(),
158
- experience: Number(z.experience) || 0,
159
- rating: Number(z.rating) || 0,
160
- location: z.location.trim(),
161
- availability: z.availability,
162
- hourlyRate: Number(z.hourlyRate) || 0,
167
+ V ? (await Fe({
168
+ id: V.id,
169
+ name: U.name.trim(),
170
+ specialization: U.specialization.trim(),
171
+ experience: Number(U.experience) || 0,
172
+ rating: Number(U.rating) || 0,
173
+ location: U.location.trim(),
174
+ availability: U.availability,
175
+ hourlyRate: Number(U.hourlyRate) || 0,
163
176
  languages: e
164
- }), q({
165
- title: x("healthybowl.network.experts.form.toast.updated.title", "Expert updated"),
166
- description: x("healthybowl.network.experts.form.toast.updated.description", "{{name}} has been updated.", { name: z.name.trim() }),
177
+ }), J({
178
+ title: S("healthybowl.network.experts.form.toast.updated.title", "Expert updated"),
179
+ description: S("healthybowl.network.experts.form.toast.updated.description", "{{name}} has been updated.", { name: U.name.trim() }),
167
180
  variant: "success"
168
- })) : (await Me({
169
- name: z.name.trim(),
170
- specialization: z.specialization.trim(),
171
- experience: Number(z.experience) || 0,
172
- rating: Number(z.rating) || 0,
173
- location: z.location.trim(),
174
- availability: z.availability,
175
- hourlyRate: Number(z.hourlyRate) || 0,
181
+ })) : (await Pe({
182
+ name: U.name.trim(),
183
+ specialization: U.specialization.trim(),
184
+ experience: Number(U.experience) || 0,
185
+ rating: Number(U.rating) || 0,
186
+ location: U.location.trim(),
187
+ availability: U.availability,
188
+ hourlyRate: Number(U.hourlyRate) || 0,
176
189
  languages: e
177
- }), q({
178
- title: x("healthybowl.network.experts.form.toast.created.title", "Expert added"),
179
- description: x("healthybowl.network.experts.form.toast.created.description", "{{name}} has been added.", { name: z.name.trim() }),
190
+ }), J({
191
+ title: S("healthybowl.network.experts.form.toast.created.title", "Expert added"),
192
+ description: S("healthybowl.network.experts.form.toast.created.description", "{{name}} has been added.", { name: U.name.trim() }),
180
193
  variant: "success"
181
194
  })), Q();
182
195
  } catch (e) {
183
- q({
184
- title: x("healthybowl.network.experts.form.toast.saveError.title", "Could not save expert"),
185
- description: e instanceof Error ? e.message : x("healthybowl.network.experts.form.toast.saveError.description", "Failed to save expert"),
196
+ J({
197
+ title: S("healthybowl.network.experts.form.toast.saveError.title", "Could not save expert"),
198
+ description: e instanceof Error ? e.message : S("healthybowl.network.experts.form.toast.saveError.description", "Failed to save expert"),
186
199
  variant: "error"
187
200
  });
188
201
  } finally {
189
- H(!1);
202
+ tt(!1);
190
203
  }
191
- }, at = async (e) => {
192
- U(e.id);
204
+ }, _t = async (e) => {
205
+ rt(e.id);
193
206
  try {
194
- await Pe(e.id), q({
195
- title: x("healthybowl.network.experts.form.toast.deleted.title", "Expert removed"),
196
- description: x("healthybowl.network.experts.form.toast.deleted.description", "{{name}} has been removed.", { name: e.name }),
207
+ await Ie(e.id), J({
208
+ title: S("healthybowl.network.experts.form.toast.deleted.title", "Expert removed"),
209
+ description: S("healthybowl.network.experts.form.toast.deleted.description", "{{name}} has been removed.", { name: e.name }),
197
210
  variant: "success"
198
211
  });
199
212
  } catch (e) {
200
- q({
201
- title: x("healthybowl.network.experts.form.toast.deleteError.title", "Could not remove expert"),
202
- description: e instanceof Error ? e.message : x("healthybowl.network.experts.form.toast.deleteError.description", "Failed to remove expert"),
213
+ J({
214
+ title: S("healthybowl.network.experts.form.toast.deleteError.title", "Could not remove expert"),
215
+ description: e instanceof Error ? e.message : S("healthybowl.network.experts.form.toast.deleteError.description", "Failed to remove expert"),
203
216
  variant: "error"
204
217
  });
205
218
  } finally {
206
- U(null);
219
+ rt(null);
207
220
  }
208
- }, ot = async () => {
209
- if (j) {
210
- if (!M.topic.trim() || !M.requestedDate) {
211
- q({
212
- title: x("healthybowl.network.experts.toast.missingFields.title", "Missing required fields"),
213
- description: x("healthybowl.network.experts.toast.missingFields.description", "Topic and preferred date are required."),
221
+ }, vt = async () => {
222
+ if (F) {
223
+ if (!L.topic.trim() || !L.requestedDate) {
224
+ J({
225
+ title: S("healthybowl.network.experts.toast.missingFields.title", "Missing required fields"),
226
+ description: S("healthybowl.network.experts.toast.missingFields.description", "Topic and preferred date are required."),
214
227
  variant: "warning"
215
228
  });
216
229
  return;
217
230
  }
218
- F(!0);
231
+ Qe(!0);
219
232
  try {
220
- await Ae({
233
+ await Me({
221
234
  consultantType: "EXPERT",
222
- consultantId: j.id,
223
- consultantName: j.name,
224
- topic: M.topic.trim(),
225
- requestedDate: M.requestedDate,
226
- mode: M.mode,
227
- notes: M.notes.trim() || void 0,
228
- fee: j.hourlyRate
229
- }), q({
230
- title: x("healthybowl.network.experts.toast.requested.title", "Consultation requested"),
231
- description: x("healthybowl.network.experts.toast.requested.description", "Your request to {{name}} has been sent.", { name: j.name }),
235
+ consultantId: F.id,
236
+ consultantName: F.name,
237
+ topic: L.topic.trim(),
238
+ requestedDate: L.requestedDate,
239
+ mode: L.mode,
240
+ notes: L.notes.trim() || void 0,
241
+ fee: F.hourlyRate
242
+ }), J({
243
+ title: S("healthybowl.network.experts.toast.requested.title", "Consultation requested"),
244
+ description: S("healthybowl.network.experts.toast.requested.description", "Your request to {{name}} has been sent.", { name: F.name }),
232
245
  variant: "success"
233
246
  }), X();
234
247
  } catch (e) {
235
- q({
236
- title: x("healthybowl.network.experts.toast.bookFailed.title", "Could not book consultation"),
237
- description: e instanceof Error ? e.message : x("healthybowl.network.experts.toast.bookFailed.description", "Failed to book consultation"),
248
+ J({
249
+ title: S("healthybowl.network.experts.toast.bookFailed.title", "Could not book consultation"),
250
+ description: e instanceof Error ? e.message : S("healthybowl.network.experts.toast.bookFailed.description", "Failed to book consultation"),
238
251
  variant: "error"
239
252
  });
240
253
  } finally {
241
- F(!1);
254
+ Qe(!1);
242
255
  }
243
256
  }
244
257
  }, $ = async (e, t) => {
245
- G(e);
258
+ it(e);
246
259
  try {
247
- await je({
260
+ await Ne({
248
261
  id: e,
249
262
  status: t
250
- }), q({
251
- title: x("healthybowl.network.experts.toast.statusUpdated.title", "Status updated"),
252
- description: x("healthybowl.network.experts.toast.statusUpdated.description", "The consultation has been moved to {{status}}.", { status: He[t] ?? t }),
263
+ }), J({
264
+ title: S("healthybowl.network.experts.toast.statusUpdated.title", "Status updated"),
265
+ description: S("healthybowl.network.experts.toast.statusUpdated.description", "The consultation has been moved to {{status}}.", { status: E[t] ?? t }),
266
+ variant: "success"
267
+ });
268
+ } catch (e) {
269
+ J({
270
+ title: S("healthybowl.network.experts.toast.statusUpdateError.title", "Could not update status"),
271
+ description: e instanceof Error ? e.message : S("healthybowl.network.experts.toast.statusUpdateError.description", "Failed to update status"),
272
+ variant: "error"
273
+ });
274
+ } finally {
275
+ it(null);
276
+ }
277
+ }, yt = async (e) => {
278
+ try {
279
+ let t = await Be(e.id);
280
+ await w().catch(() => void 0), t.paymentStatus === "PAID" ? J({
281
+ title: S("healthybowl.network.experts.payment.toast.paid.title", "Payment confirmed"),
282
+ description: t.paymentReference ? S("healthybowl.network.experts.payment.toast.paid.withReference", "Your consultation payment is confirmed — reference {{reference}}.", { reference: t.paymentReference }) : S("healthybowl.network.experts.payment.toast.paid.description", "Your consultation payment is confirmed."),
253
283
  variant: "success"
284
+ }) : J({
285
+ title: S("healthybowl.network.experts.payment.toast.pending.title", "Payment not completed"),
286
+ description: S("healthybowl.network.experts.payment.toast.pending.description", "This consultation is still awaiting payment. Nothing was charged — you can pay again any time."),
287
+ variant: "info"
254
288
  });
289
+ } finally {
290
+ ct(e.id);
291
+ }
292
+ }, bt = async (e) => {
293
+ if (!st(e.id)) return;
294
+ let t = !1;
295
+ try {
296
+ let n = await ze(e.id);
297
+ if (n.provider !== "RAZORPAY") {
298
+ J({
299
+ title: S("healthybowl.network.experts.payment.toast.unsupportedProvider.title", "Unsupported payment provider"),
300
+ description: S("healthybowl.network.experts.payment.toast.unsupportedProvider.description", "Billing routed this consultation to {{provider}}, which this checkout cannot open yet. Contact support for help.", { provider: n.provider }),
301
+ variant: "warning"
302
+ });
303
+ return;
304
+ }
305
+ if (!n.providerOrderId || !n.razorpayKeyId) {
306
+ J({
307
+ title: S("healthybowl.network.experts.payment.toast.checkoutIncomplete.title", "Payment session incomplete"),
308
+ description: S("healthybowl.network.experts.payment.toast.checkoutIncomplete.description", "Billing did not return the details needed to open checkout. Please try again."),
309
+ variant: "error"
310
+ });
311
+ return;
312
+ }
313
+ let r = await Ve(), i = !1, a = () => {
314
+ i || (i = !0, yt(e).catch((e) => {
315
+ J({
316
+ title: S("healthybowl.network.experts.payment.toast.syncError.title", "Could not confirm the payment"),
317
+ description: e instanceof Error ? e.message : S("healthybowl.common.error", "Unknown error"),
318
+ variant: "error"
319
+ });
320
+ }));
321
+ };
322
+ new r({
323
+ key: n.razorpayKeyId,
324
+ order_id: n.providerOrderId,
325
+ amount: Math.round(n.total * 100),
326
+ currency: n.currency,
327
+ name: "HealthyBowl",
328
+ description: S("healthybowl.network.experts.payment.checkoutDescription", "Consultation: {{topic}}", { topic: e.topic }),
329
+ handler: a,
330
+ modal: { ondismiss: a }
331
+ }).open(), t = !0;
255
332
  } catch (e) {
256
- q({
257
- title: x("healthybowl.network.experts.toast.statusUpdateError.title", "Could not update status"),
258
- description: e instanceof Error ? e.message : x("healthybowl.network.experts.toast.statusUpdateError.description", "Failed to update status"),
333
+ J({
334
+ title: S("healthybowl.network.experts.payment.toast.checkoutError.title", "Could not start the payment"),
335
+ description: e instanceof Error ? e.message : S("healthybowl.common.error", "Unknown error"),
259
336
  variant: "error"
260
337
  });
261
338
  } finally {
262
- G(null);
339
+ t || ct(e.id);
263
340
  }
264
341
  };
265
- le(() => {
342
+ ce(() => {
266
343
  let e = (e) => {
267
- K.current && !K.current.contains(e.target) && A(!1);
344
+ q.current && !q.current.contains(e.target) && P(!1);
268
345
  };
269
346
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
270
347
  }, []);
271
- let st = S.filter((e) => {
272
- let t = (e.name ?? "").toLowerCase().includes(w.toLowerCase()) || e.specialization.toLowerCase().includes(w.toLowerCase()) || e.location.toLowerCase().includes(w.toLowerCase()), n = T === "All" || e.specialization === T, r = D === "All" || e.availability === D.toLowerCase();
348
+ let xt = C.filter((e) => {
349
+ let t = (e.name ?? "").toLowerCase().includes(D.toLowerCase()) || e.specialization.toLowerCase().includes(D.toLowerCase()) || e.location.toLowerCase().includes(D.toLowerCase()), n = k === "All" || e.specialization === k, r = j === "All" || e.availability === j.toLowerCase();
273
350
  return t && n && r;
274
351
  }).sort((e, t) => {
275
- switch (k) {
352
+ switch (N) {
276
353
  case "rating": return t.rating - e.rating;
277
354
  case "experience": return t.experience - e.experience;
278
355
  case "price-asc": return e.hourlyRate - t.hourlyRate;
279
356
  case "price-desc": return t.hourlyRate - e.hourlyRate;
280
357
  default: return 0;
281
358
  }
282
- }), ct = S.filter((e) => e.availability === "available").length, lt = S.length > 0 ? (S.reduce((e, t) => e + t.rating, 0) / S.length).toFixed(1) : "0.0", ut = new Set(S.map((e) => e.specialization)).size;
283
- return /* @__PURE__ */ f(ee, {
284
- title: x("healthybowl.network.experts.title", "Expert Directory"),
285
- description: x("healthybowl.network.experts.description", "Find and connect with agricultural experts"),
359
+ }), St = C.filter((e) => e.availability === "available").length, Ct = C.length > 0 ? (C.reduce((e, t) => e + t.rating, 0) / C.length).toFixed(1) : "0.0", wt = new Set(C.map((e) => e.specialization)).size;
360
+ return /* @__PURE__ */ p(i, {
361
+ title: S("healthybowl.network.experts.title", "Expert Directory"),
362
+ description: S("healthybowl.network.experts.description", "Find and connect with agricultural experts"),
286
363
  purpose: "Find agricultural specialists — agronomists, vets, soil scientists — and reach out for help. When you hit a problem outside your experience, this directory connects you with someone who knows the answer.",
287
- actions: /* @__PURE__ */ f(p, {
288
- onClick: nt,
364
+ actions: /* @__PURE__ */ p(m, {
365
+ onClick: mt,
289
366
  size: "sm",
290
367
  children: [
291
- /* @__PURE__ */ d(c, { className: "h-3.5 w-3.5" }),
368
+ /* @__PURE__ */ f(u, { className: "h-3.5 w-3.5" }),
292
369
  " ",
293
- x("healthybowl.network.experts.actions.addExpert", "Add Expert")
370
+ S("healthybowl.network.experts.actions.addExpert", "Add Expert")
294
371
  ]
295
372
  }),
296
373
  children: [
297
- /* @__PURE__ */ f("div", {
374
+ /* @__PURE__ */ p("div", {
298
375
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
299
376
  children: [
300
- /* @__PURE__ */ d(i, {
377
+ /* @__PURE__ */ f(a, {
301
378
  hero: !0,
302
- label: x("healthybowl.network.experts.stats.totalExperts", "Total Experts"),
303
- value: S.length,
304
- icon: /* @__PURE__ */ d(pe, { className: "h-4 w-4" })
379
+ label: S("healthybowl.network.experts.stats.totalExperts", "Total Experts"),
380
+ value: C.length,
381
+ icon: /* @__PURE__ */ f(fe, { className: "h-4 w-4" })
305
382
  }),
306
- /* @__PURE__ */ d(i, {
307
- label: x("healthybowl.network.experts.stats.availableNow", "Available Now"),
308
- value: ct,
309
- icon: /* @__PURE__ */ d(Se, { className: "h-4 w-4" })
383
+ /* @__PURE__ */ f(a, {
384
+ label: S("healthybowl.network.experts.stats.availableNow", "Available Now"),
385
+ value: St,
386
+ icon: /* @__PURE__ */ f(Ce, { className: "h-4 w-4" })
310
387
  }),
311
- /* @__PURE__ */ d(i, {
312
- label: x("healthybowl.network.experts.stats.avgRating", "Avg Rating"),
313
- value: lt,
314
- icon: /* @__PURE__ */ d(l, { className: "h-4 w-4" })
388
+ /* @__PURE__ */ f(a, {
389
+ label: S("healthybowl.network.experts.stats.avgRating", "Avg Rating"),
390
+ value: Ct,
391
+ icon: /* @__PURE__ */ f(ye, { className: "h-4 w-4" })
315
392
  }),
316
- /* @__PURE__ */ d(i, {
317
- label: x("healthybowl.network.experts.stats.specializations", "Specializations"),
318
- value: ut,
319
- icon: /* @__PURE__ */ d(xe, { className: "h-4 w-4" })
393
+ /* @__PURE__ */ f(a, {
394
+ label: S("healthybowl.network.experts.stats.specializations", "Specializations"),
395
+ value: wt,
396
+ icon: /* @__PURE__ */ f(xe, { className: "h-4 w-4" })
320
397
  })
321
398
  ]
322
399
  }),
323
- /* @__PURE__ */ d(re, {
324
- searchValue: w,
325
- onSearchChange: We,
326
- searchPlaceholder: x("healthybowl.network.experts.searchPlaceholder", "Search experts by name, specialty, or location..."),
327
- filters: /* @__PURE__ */ f("div", {
400
+ /* @__PURE__ */ f(te, {
401
+ searchValue: D,
402
+ onSearchChange: O,
403
+ searchPlaceholder: S("healthybowl.network.experts.searchPlaceholder", "Search experts by name, specialty, or location..."),
404
+ filters: /* @__PURE__ */ p("div", {
328
405
  className: "flex flex-wrap items-center gap-2",
329
406
  children: [
330
- /* @__PURE__ */ f(m, {
331
- value: T,
332
- onValueChange: E,
333
- children: [/* @__PURE__ */ d(_, {
407
+ /* @__PURE__ */ p(h, {
408
+ value: k,
409
+ onValueChange: A,
410
+ children: [/* @__PURE__ */ f(v, {
334
411
  className: "h-8 w-auto text-xs",
335
- children: /* @__PURE__ */ d(v, {})
336
- }), /* @__PURE__ */ d(h, { children: we.map((e) => /* @__PURE__ */ d(g, {
412
+ children: /* @__PURE__ */ f(y, {})
413
+ }), /* @__PURE__ */ f(g, { children: Ee.map((e) => /* @__PURE__ */ f(_, {
337
414
  value: e,
338
- children: ze[e] ?? e
415
+ children: Ue[e] ?? e
339
416
  }, e)) })]
340
417
  }),
341
- /* @__PURE__ */ f(m, {
342
- value: D,
343
- onValueChange: O,
344
- children: [/* @__PURE__ */ d(_, {
418
+ /* @__PURE__ */ p(h, {
419
+ value: j,
420
+ onValueChange: M,
421
+ children: [/* @__PURE__ */ f(v, {
345
422
  className: "h-8 w-auto text-xs",
346
- children: /* @__PURE__ */ d(v, {})
347
- }), /* @__PURE__ */ d(h, { children: Te.map((e) => /* @__PURE__ */ d(g, {
423
+ children: /* @__PURE__ */ f(y, {})
424
+ }), /* @__PURE__ */ f(g, { children: De.map((e) => /* @__PURE__ */ f(_, {
348
425
  value: e,
349
- children: Be[e] ?? e
426
+ children: We[e] ?? e
350
427
  }, e)) })]
351
428
  }),
352
- /* @__PURE__ */ f("div", {
353
- ref: K,
429
+ /* @__PURE__ */ p("div", {
430
+ ref: q,
354
431
  className: "relative",
355
- children: [/* @__PURE__ */ f(p, {
356
- onClick: () => A((e) => !e),
432
+ children: [/* @__PURE__ */ p(m, {
433
+ onClick: () => P((e) => !e),
357
434
  variant: "outline",
358
435
  size: "sm",
359
436
  children: [
360
- /* @__PURE__ */ d(fe, { className: "h-3.5 w-3.5" }),
361
- C[k],
362
- /* @__PURE__ */ d(me, { className: "h-3 w-3" })
437
+ /* @__PURE__ */ f(de, { className: "h-3.5 w-3.5" }),
438
+ T[N],
439
+ /* @__PURE__ */ f(pe, { className: "h-3 w-3" })
363
440
  ]
364
- }), Ke && /* @__PURE__ */ d("div", {
441
+ }), Ye && /* @__PURE__ */ f("div", {
365
442
  className: "absolute end-0 z-10 mt-1 w-44 rounded-md border border-border-subtle bg-bg-surface py-1 shadow-lg",
366
- children: Ee.map((t) => /* @__PURE__ */ d("button", {
443
+ children: Oe.map((t) => /* @__PURE__ */ f("button", {
367
444
  type: "button",
368
445
  onClick: () => {
369
- Ge(t), A(!1);
446
+ Je(t), P(!1);
370
447
  },
371
- className: e("flex w-full items-center px-3 py-1.5 text-xs hover:bg-bg-sunken", k === t ? "font-semibold text-primary" : "text-text-primary"),
372
- children: C[t]
448
+ className: e("flex w-full items-center px-3 py-1.5 text-xs hover:bg-bg-sunken", N === t ? "font-semibold text-primary" : "text-text-primary"),
449
+ children: T[t]
373
450
  }, t))
374
451
  })]
375
452
  })
376
453
  ]
377
454
  })
378
455
  }),
379
- st.length > 0 ? /* @__PURE__ */ d("div", {
456
+ xt.length > 0 ? /* @__PURE__ */ f("div", {
380
457
  className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-3",
381
- children: st.map((e) => {
382
- let n = qe === e.id;
383
- return /* @__PURE__ */ f("div", {
458
+ children: xt.map((e) => {
459
+ let n = Xe === e.id;
460
+ return /* @__PURE__ */ p("div", {
384
461
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5 transition-colors hover:border-primary/20",
385
462
  children: [
386
- /* @__PURE__ */ f("div", {
463
+ /* @__PURE__ */ p("div", {
387
464
  className: "flex items-start gap-3",
388
465
  children: [
389
- /* @__PURE__ */ d("div", {
466
+ /* @__PURE__ */ f("div", {
390
467
  className: "flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-sm font-bold text-text-primary",
391
468
  children: (e.name ?? "").split(" ").map((e) => e[0]).join("")
392
469
  }),
393
- /* @__PURE__ */ f("div", {
470
+ /* @__PURE__ */ p("div", {
394
471
  className: "flex-1 min-w-0",
395
- children: [/* @__PURE__ */ d("h3", {
472
+ children: [/* @__PURE__ */ f("h3", {
396
473
  className: "text-sm font-semibold text-text-primary",
397
474
  children: e.name
398
- }), /* @__PURE__ */ d("p", {
475
+ }), /* @__PURE__ */ f("p", {
399
476
  className: "text-xs text-text-secondary",
400
477
  children: e.specialization
401
478
  })]
402
479
  }),
403
- /* @__PURE__ */ d(a, {
404
- label: Ve[e.availability] ?? e.availability,
405
- variant: De(e.availability),
480
+ /* @__PURE__ */ f(o, {
481
+ label: Ge[e.availability] ?? e.availability,
482
+ variant: ke(e.availability),
406
483
  dot: !0
407
484
  })
408
485
  ]
409
486
  }),
410
- /* @__PURE__ */ f("div", {
487
+ /* @__PURE__ */ p("div", {
411
488
  className: "mt-3 space-y-1.5 text-xs text-text-secondary",
412
489
  children: [
413
- /* @__PURE__ */ f("p", {
490
+ /* @__PURE__ */ p("p", {
414
491
  className: "flex items-center gap-1.5",
415
492
  children: [
416
- /* @__PURE__ */ d(he, { className: "h-3 w-3" }),
493
+ /* @__PURE__ */ f(me, { className: "h-3 w-3" }),
417
494
  " ",
418
- x("healthybowl.network.experts.card.yearsExperience", "{{count}} years experience", { count: e.experience })
495
+ S("healthybowl.network.experts.card.yearsExperience", "{{count}} years experience", { count: e.experience })
419
496
  ]
420
497
  }),
421
- /* @__PURE__ */ f("p", {
498
+ /* @__PURE__ */ p("p", {
422
499
  className: "flex items-center gap-1.5",
423
500
  children: [
424
- /* @__PURE__ */ d(ve, { className: "h-3 w-3" }),
501
+ /* @__PURE__ */ f(_e, { className: "h-3 w-3" }),
425
502
  " ",
426
503
  e.location
427
504
  ]
428
505
  }),
429
- /* @__PURE__ */ f("p", {
506
+ /* @__PURE__ */ p("p", {
430
507
  className: "flex items-center gap-1.5",
431
508
  children: [
432
- /* @__PURE__ */ d(_e, { className: "h-3 w-3" }),
509
+ /* @__PURE__ */ f(ge, { className: "h-3 w-3" }),
433
510
  " ",
434
511
  (e.languages ?? []).join(", ")
435
512
  ]
436
513
  })
437
514
  ]
438
515
  }),
439
- /* @__PURE__ */ f("div", {
516
+ /* @__PURE__ */ p("div", {
440
517
  className: "mt-3 flex items-center gap-1",
441
518
  children: [
442
- Oe(e.rating),
443
- /* @__PURE__ */ d("span", {
519
+ Ae(e.rating),
520
+ /* @__PURE__ */ f("span", {
444
521
  className: "ms-1 text-xs font-medium text-text-primary",
445
522
  children: e.rating
446
523
  }),
447
- /* @__PURE__ */ d("span", {
524
+ /* @__PURE__ */ f("span", {
448
525
  className: "text-xs text-text-secondary",
449
- children: x("healthybowl.network.experts.card.reviews", "({{count}} reviews)", { count: e.reviews })
526
+ children: S("healthybowl.network.experts.card.reviews", "({{count}} reviews)", { count: e.reviews })
450
527
  })
451
528
  ]
452
529
  }),
453
- n && /* @__PURE__ */ f("div", {
530
+ n && /* @__PURE__ */ p("div", {
454
531
  className: "mt-3 rounded-md border border-border-subtle bg-bg-sunken/50 p-3",
455
532
  children: [
456
- /* @__PURE__ */ d("h4", {
533
+ /* @__PURE__ */ f("h4", {
457
534
  className: "text-xs font-semibold text-text-primary",
458
- children: x("healthybowl.network.experts.card.about", "About")
535
+ children: S("healthybowl.network.experts.card.about", "About")
459
536
  }),
460
- /* @__PURE__ */ d("p", {
537
+ /* @__PURE__ */ f("p", {
461
538
  className: "mt-1 text-xs text-text-secondary",
462
- children: x("healthybowl.network.experts.card.aboutText", "{{name}} is a seasoned agricultural expert specializing in {{specialization}} with {{count}} years of field and research experience. Known for practical, evidence-based consulting that delivers measurable results.", {
539
+ children: S("healthybowl.network.experts.card.aboutText", "{{name}} is a seasoned agricultural expert specializing in {{specialization}} with {{count}} years of field and research experience. Known for practical, evidence-based consulting that delivers measurable results.", {
463
540
  name: e.name,
464
541
  specialization: (e.specialization ?? "").toLowerCase(),
465
542
  count: e.experience
466
543
  })
467
544
  }),
468
- /* @__PURE__ */ f("div", {
545
+ /* @__PURE__ */ p("div", {
469
546
  className: "mt-2 grid grid-cols-2 gap-2 text-xs",
470
- children: [/* @__PURE__ */ f("div", {
547
+ children: [/* @__PURE__ */ p("div", {
471
548
  className: "rounded bg-bg-surface p-2",
472
- children: [/* @__PURE__ */ d("p", {
549
+ children: [/* @__PURE__ */ f("p", {
473
550
  className: "font-medium text-text-primary",
474
- children: x("healthybowl.network.experts.card.pastConsultations", "Past Consultations")
475
- }), /* @__PURE__ */ f("p", {
551
+ children: S("healthybowl.network.experts.card.pastConsultations", "Past Consultations")
552
+ }), /* @__PURE__ */ p("p", {
476
553
  className: "text-text-secondary",
477
554
  children: [e.reviews * 3, "+"]
478
555
  })]
479
- }), /* @__PURE__ */ f("div", {
556
+ }), /* @__PURE__ */ p("div", {
480
557
  className: "rounded bg-bg-surface p-2",
481
- children: [/* @__PURE__ */ d("p", {
558
+ children: [/* @__PURE__ */ f("p", {
482
559
  className: "font-medium text-text-primary",
483
- children: x("healthybowl.network.experts.card.avgResponse", "Avg Response")
484
- }), /* @__PURE__ */ d("p", {
560
+ children: S("healthybowl.network.experts.card.avgResponse", "Avg Response")
561
+ }), /* @__PURE__ */ f("p", {
485
562
  className: "text-text-secondary",
486
- children: x("healthybowl.network.experts.card.avgResponseValue", "< 2 hours")
563
+ children: S("healthybowl.network.experts.card.avgResponseValue", "< 2 hours")
487
564
  })]
488
565
  })]
489
566
  })
490
567
  ]
491
568
  }),
492
- /* @__PURE__ */ f("div", {
569
+ /* @__PURE__ */ p("div", {
493
570
  className: "mt-3 flex items-center justify-between border-t border-border-subtle pt-3",
494
- children: [/* @__PURE__ */ d("span", {
571
+ children: [/* @__PURE__ */ f("span", {
495
572
  className: "text-sm font-medium text-text-primary",
496
- children: x("healthybowl.network.experts.card.pricePerHour", "{{price}}/hr", { price: t(e.hourlyRate, "INR") })
497
- }), /* @__PURE__ */ f("div", {
573
+ children: S("healthybowl.network.experts.card.pricePerHour", "{{price}}/hr", { price: t(e.hourlyRate, "INR") })
574
+ }), /* @__PURE__ */ p("div", {
498
575
  className: "flex items-center gap-2",
499
576
  children: [
500
- /* @__PURE__ */ d(p, {
501
- onClick: () => Je(n ? null : e.id),
502
- "aria-label": x("healthybowl.network.experts.actions.viewProfile", "View profile"),
577
+ /* @__PURE__ */ f(m, {
578
+ onClick: () => Ze(n ? null : e.id),
579
+ "aria-label": S("healthybowl.network.experts.actions.viewProfile", "View profile"),
503
580
  variant: "outline",
504
581
  size: "icon-sm",
505
- children: /* @__PURE__ */ d(ge, { className: "h-3.5 w-3.5" })
582
+ children: /* @__PURE__ */ f(he, { className: "h-3.5 w-3.5" })
506
583
  }),
507
- /* @__PURE__ */ d(p, {
508
- onClick: () => rt(e),
509
- "aria-label": x("healthybowl.network.experts.actions.editExpert", "Edit expert"),
584
+ /* @__PURE__ */ f(m, {
585
+ onClick: () => ht(e),
586
+ "aria-label": S("healthybowl.network.experts.actions.editExpert", "Edit expert"),
510
587
  variant: "outline",
511
588
  size: "icon-sm",
512
- children: /* @__PURE__ */ d(ye, { className: "h-3.5 w-3.5" })
589
+ children: /* @__PURE__ */ f(ve, { className: "h-3.5 w-3.5" })
513
590
  }),
514
- /* @__PURE__ */ d(p, {
515
- onClick: () => at(e),
516
- disabled: Ze === e.id,
517
- "aria-label": x("healthybowl.network.experts.actions.deleteExpert", "Delete expert"),
591
+ /* @__PURE__ */ f(m, {
592
+ onClick: () => _t(e),
593
+ disabled: nt === e.id,
594
+ "aria-label": S("healthybowl.network.experts.actions.deleteExpert", "Delete expert"),
518
595
  variant: "ghost",
519
596
  size: "icon-sm",
520
597
  className: "text-status-error-text hover:bg-status-error-bg/10 hover:text-status-error-text",
521
- children: /* @__PURE__ */ d(be, { className: "h-3.5 w-3.5" })
598
+ children: /* @__PURE__ */ f(be, { className: "h-3.5 w-3.5" })
522
599
  }),
523
- /* @__PURE__ */ f(p, {
524
- onClick: () => tt(e),
600
+ /* @__PURE__ */ p(m, {
601
+ onClick: () => pt(e),
525
602
  size: "sm",
526
603
  children: [
527
- /* @__PURE__ */ d(s, { className: "h-3.5 w-3.5" }),
604
+ /* @__PURE__ */ f(l, { className: "h-3.5 w-3.5" }),
528
605
  " ",
529
- x("healthybowl.network.experts.actions.bookConsultation", "Book Consultation")
606
+ S("healthybowl.network.experts.actions.bookConsultation", "Book Consultation")
530
607
  ]
531
608
  })
532
609
  ]
@@ -535,335 +612,359 @@ var x = () => {
535
612
  ]
536
613
  }, e.id);
537
614
  })
538
- }) : S.length === 0 ? Ie.network ? /* @__PURE__ */ d(ae, {}) : Fe.network ? /* @__PURE__ */ d(ne, { onRetry: Le }) : /* @__PURE__ */ d(te, {
615
+ }) : C.length === 0 ? Re.network ? /* @__PURE__ */ f(re, {}) : Le.network ? /* @__PURE__ */ f(ee, { onRetry: w }) : /* @__PURE__ */ f(s, {
539
616
  illustration: "empty-people",
540
- title: x("healthybowl.network.experts.emptyState.none.title", "No experts available yet"),
541
- description: x("healthybowl.network.experts.emptyState.none.description", "There are no agricultural experts in your network yet. Add one to get started."),
542
- action: /* @__PURE__ */ f(p, {
543
- onClick: nt,
617
+ title: S("healthybowl.network.experts.emptyState.none.title", "No experts available yet"),
618
+ description: S("healthybowl.network.experts.emptyState.none.description", "There are no agricultural experts in your network yet. Add one to get started."),
619
+ action: /* @__PURE__ */ p(m, {
620
+ onClick: mt,
544
621
  children: [
545
- /* @__PURE__ */ d(c, { className: "h-3.5 w-3.5" }),
622
+ /* @__PURE__ */ f(u, { className: "h-3.5 w-3.5" }),
546
623
  " ",
547
- x("healthybowl.network.experts.actions.addExpert", "Add Expert")
624
+ S("healthybowl.network.experts.actions.addExpert", "Add Expert")
548
625
  ]
549
626
  })
550
- }) : /* @__PURE__ */ d(te, {
627
+ }) : /* @__PURE__ */ f(s, {
551
628
  illustration: "empty-search",
552
- title: x("healthybowl.network.experts.emptyState.noMatch.title", "No experts found"),
553
- description: x("healthybowl.network.experts.emptyState.noMatch.description", "No experts match your current filters. Try broadening your search."),
554
- action: /* @__PURE__ */ d(p, {
629
+ title: S("healthybowl.network.experts.emptyState.noMatch.title", "No experts found"),
630
+ description: S("healthybowl.network.experts.emptyState.noMatch.description", "No experts match your current filters. Try broadening your search."),
631
+ action: /* @__PURE__ */ f(m, {
555
632
  onClick: () => {
556
- We(""), E("All"), O("All");
633
+ O(""), A("All"), M("All");
557
634
  },
558
- children: x("healthybowl.network.experts.actions.clearFilters", "Clear Filters")
635
+ children: S("healthybowl.network.experts.actions.clearFilters", "Clear Filters")
559
636
  })
560
637
  }),
561
- J.length > 0 && /* @__PURE__ */ f("div", {
638
+ ft.length > 0 && /* @__PURE__ */ p("div", {
562
639
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
563
- children: [/* @__PURE__ */ f("h3", {
640
+ children: [/* @__PURE__ */ p("h3", {
564
641
  className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
565
642
  children: [
566
- /* @__PURE__ */ d(s, { className: "h-4 w-4" }),
643
+ /* @__PURE__ */ f(l, { className: "h-4 w-4" }),
567
644
  " ",
568
- x("healthybowl.network.experts.myConsultations.heading", "My Expert Consultations")
645
+ S("healthybowl.network.experts.myConsultations.heading", "My Expert Consultations")
569
646
  ]
570
- }), /* @__PURE__ */ d("ul", {
647
+ }), /* @__PURE__ */ f("ul", {
571
648
  className: "mt-3 divide-y divide-border",
572
- children: J.map((e) => /* @__PURE__ */ f("li", {
649
+ children: ft.map((e) => /* @__PURE__ */ p("li", {
573
650
  className: "flex items-center justify-between gap-3 py-2.5",
574
- children: [/* @__PURE__ */ f("div", {
651
+ children: [/* @__PURE__ */ p("div", {
575
652
  className: "min-w-0",
576
- children: [/* @__PURE__ */ d("p", {
577
- className: "truncate text-sm font-medium text-text-primary",
578
- children: e.topic
579
- }), /* @__PURE__ */ f("p", {
580
- className: "text-xs text-text-secondary",
581
- children: [
582
- e.consultantName,
583
- " · ",
584
- n(e.requestedDate),
585
- " ·",
586
- " ",
587
- Ue[e.mode] ?? e.mode
588
- ]
589
- })]
590
- }), /* @__PURE__ */ f("div", {
653
+ children: [
654
+ /* @__PURE__ */ f("p", {
655
+ className: "truncate text-sm font-medium text-text-primary",
656
+ children: e.topic
657
+ }),
658
+ /* @__PURE__ */ p("p", {
659
+ className: "text-xs text-text-secondary",
660
+ children: [
661
+ e.consultantName,
662
+ " · ",
663
+ n(e.requestedDate),
664
+ " ·",
665
+ " ",
666
+ qe[e.mode] ?? e.mode
667
+ ]
668
+ }),
669
+ e.fee > 0 && e.paymentStatus === "PAID" && e.paymentReference && /* @__PURE__ */ f("p", {
670
+ className: "truncate text-xs text-text-secondary",
671
+ children: S("healthybowl.network.experts.payment.reference", "Payment reference: {{reference}}", { reference: e.paymentReference })
672
+ })
673
+ ]
674
+ }), /* @__PURE__ */ p("div", {
591
675
  className: "flex flex-shrink-0 items-center gap-2",
592
676
  children: [
593
- e.status === "REQUESTED" && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(p, {
677
+ e.fee > 0 && e.paymentStatus === "PENDING" && (e.status === "REQUESTED" || e.status === "CONFIRMED") && /* @__PURE__ */ p(m, {
678
+ size: "sm",
679
+ onClick: () => void bt(e),
680
+ disabled: at.has(e.id) || G === e.id,
681
+ children: [
682
+ /* @__PURE__ */ f(Se, { className: "h-3.5 w-3.5" }),
683
+ " ",
684
+ at.has(e.id) ? S("healthybowl.network.experts.actions.paying", "Opening checkout…") : S("healthybowl.network.experts.actions.payNow", "Pay Now")
685
+ ]
686
+ }),
687
+ e.status === "REQUESTED" && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(m, {
594
688
  size: "sm",
595
689
  variant: "outline",
596
690
  onClick: () => $(e.id, "CONFIRMED"),
597
- disabled: W === e.id,
598
- children: x("healthybowl.network.experts.actions.accept", "Accept")
599
- }), /* @__PURE__ */ d(p, {
691
+ disabled: G === e.id,
692
+ children: S("healthybowl.network.experts.actions.accept", "Accept")
693
+ }), /* @__PURE__ */ f(m, {
600
694
  size: "sm",
601
695
  variant: "ghost",
602
696
  onClick: () => $(e.id, "CANCELLED"),
603
- disabled: W === e.id,
604
- children: x("healthybowl.network.experts.actions.decline", "Decline")
697
+ disabled: G === e.id,
698
+ children: S("healthybowl.network.experts.actions.decline", "Decline")
605
699
  })] }),
606
- e.status === "CONFIRMED" && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(p, {
700
+ e.status === "CONFIRMED" && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(m, {
607
701
  size: "sm",
608
702
  variant: "outline",
609
703
  onClick: () => $(e.id, "COMPLETED"),
610
- disabled: W === e.id,
611
- children: x("healthybowl.network.experts.actions.complete", "Complete")
612
- }), /* @__PURE__ */ d(p, {
704
+ disabled: G === e.id,
705
+ children: S("healthybowl.network.experts.actions.complete", "Complete")
706
+ }), /* @__PURE__ */ f(m, {
613
707
  size: "sm",
614
708
  variant: "ghost",
615
709
  onClick: () => $(e.id, "CANCELLED"),
616
- disabled: W === e.id,
617
- children: x("healthybowl.network.experts.actions.cancel", "Cancel")
710
+ disabled: G === e.id,
711
+ children: S("healthybowl.network.experts.actions.cancel", "Cancel")
618
712
  })] }),
619
- /* @__PURE__ */ d(a, {
620
- label: He[e.status] ?? e.status,
621
- variant: Ce(e.status),
713
+ /* @__PURE__ */ f(o, {
714
+ label: E[e.status] ?? e.status,
715
+ variant: we(e.status),
622
716
  dot: !0
717
+ }),
718
+ e.fee > 0 && e.status !== "CANCELLED" && /* @__PURE__ */ f(o, {
719
+ label: Ke[e.paymentStatus] ?? e.paymentStatus,
720
+ variant: Te(e.paymentStatus)
623
721
  })
624
722
  ]
625
723
  })]
626
724
  }, e.id))
627
725
  })]
628
726
  }),
629
- /* @__PURE__ */ d(oe, {
630
- open: j !== null,
727
+ /* @__PURE__ */ f(ie, {
728
+ open: F !== null,
631
729
  onClose: X,
632
- title: x("healthybowl.network.experts.bookingModal.title", "Book Consultation"),
633
- description: j ? x("healthybowl.network.experts.bookingModal.description", "Request a session with {{name}}", { name: j.name }) : void 0,
634
- footer: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(p, {
730
+ title: S("healthybowl.network.experts.bookingModal.title", "Book Consultation"),
731
+ description: F ? S("healthybowl.network.experts.bookingModal.description", "Request a session with {{name}}", { name: F.name }) : void 0,
732
+ footer: /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(m, {
635
733
  onClick: X,
636
734
  variant: "outline",
637
- children: x("healthybowl.common.cancel", "Cancel")
638
- }), /* @__PURE__ */ d(p, {
639
- onClick: ot,
640
- disabled: P,
641
- children: P ? x("healthybowl.network.experts.bookingModal.booking", "Booking…") : x("healthybowl.network.experts.bookingModal.confirm", "Confirm Booking")
735
+ children: S("healthybowl.common.cancel", "Cancel")
736
+ }), /* @__PURE__ */ f(m, {
737
+ onClick: vt,
738
+ disabled: z,
739
+ children: z ? S("healthybowl.network.experts.bookingModal.booking", "Booking…") : S("healthybowl.network.experts.bookingModal.confirm", "Confirm Booking")
642
740
  })] }),
643
- children: /* @__PURE__ */ f("div", {
741
+ children: /* @__PURE__ */ p("div", {
644
742
  className: "space-y-4",
645
743
  children: [
646
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
744
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
647
745
  htmlFor: "expert-booking-topic",
648
746
  className: "mb-1 block text-xs font-medium text-text-primary",
649
- children: x("healthybowl.network.experts.bookingModal.fields.topic.label", "Topic")
650
- }), /* @__PURE__ */ d("input", {
747
+ children: S("healthybowl.network.experts.bookingModal.fields.topic.label", "Topic")
748
+ }), /* @__PURE__ */ f("input", {
651
749
  id: "expert-booking-topic",
652
750
  type: "text",
653
- value: M.topic,
751
+ value: L.topic,
654
752
  onChange: (e) => Y("topic", e.target.value),
655
753
  maxLength: 200,
656
- placeholder: x("healthybowl.network.experts.bookingModal.fields.topic.placeholder", "What would you like help with?"),
754
+ placeholder: S("healthybowl.network.experts.bookingModal.fields.topic.placeholder", "What would you like help with?"),
657
755
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
658
756
  })] }),
659
- /* @__PURE__ */ f("div", {
757
+ /* @__PURE__ */ p("div", {
660
758
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
661
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
759
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
662
760
  htmlFor: "expert-booking-date",
663
761
  className: "mb-1 block text-xs font-medium text-text-primary",
664
- children: x("healthybowl.network.experts.bookingModal.fields.preferredDate.label", "Preferred date")
665
- }), /* @__PURE__ */ d("input", {
762
+ children: S("healthybowl.network.experts.bookingModal.fields.preferredDate.label", "Preferred date")
763
+ }), /* @__PURE__ */ f("input", {
666
764
  id: "expert-booking-date",
667
765
  type: "date",
668
- value: M.requestedDate,
766
+ value: L.requestedDate,
669
767
  onChange: (e) => Y("requestedDate", e.target.value),
670
768
  min: r(),
671
769
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
672
- })] }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
770
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
673
771
  htmlFor: "expert-booking-mode",
674
772
  className: "mb-1 block text-xs font-medium text-text-primary",
675
- children: x("healthybowl.network.experts.bookingModal.fields.mode.label", "Mode")
676
- }), /* @__PURE__ */ f(m, {
677
- value: M.mode,
773
+ children: S("healthybowl.network.experts.bookingModal.fields.mode.label", "Mode")
774
+ }), /* @__PURE__ */ p(h, {
775
+ value: L.mode,
678
776
  onValueChange: (e) => Y("mode", e),
679
- children: [/* @__PURE__ */ d(_, {
777
+ children: [/* @__PURE__ */ f(v, {
680
778
  id: "expert-booking-mode",
681
779
  className: "w-full",
682
- children: /* @__PURE__ */ d(v, {})
683
- }), /* @__PURE__ */ d(h, { children: Re.map((e) => /* @__PURE__ */ d(g, {
780
+ children: /* @__PURE__ */ f(y, {})
781
+ }), /* @__PURE__ */ f(g, { children: He.map((e) => /* @__PURE__ */ f(_, {
684
782
  value: e.value,
685
783
  children: e.label
686
784
  }, e.value)) })]
687
785
  })] })]
688
786
  }),
689
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
787
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
690
788
  htmlFor: "expert-booking-notes",
691
789
  className: "mb-1 block text-xs font-medium text-text-primary",
692
- children: x("healthybowl.network.experts.bookingModal.fields.notes.label", "Notes (optional)")
693
- }), /* @__PURE__ */ d("textarea", {
790
+ children: S("healthybowl.network.experts.bookingModal.fields.notes.label", "Notes (optional)")
791
+ }), /* @__PURE__ */ f("textarea", {
694
792
  id: "expert-booking-notes",
695
- value: M.notes,
793
+ value: L.notes,
696
794
  onChange: (e) => Y("notes", e.target.value),
697
795
  rows: 3,
698
796
  maxLength: 1e3,
699
- placeholder: x("healthybowl.network.experts.bookingModal.fields.notes.placeholder", "Any additional context for the expert"),
797
+ placeholder: S("healthybowl.network.experts.bookingModal.fields.notes.placeholder", "Any additional context for the expert"),
700
798
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
701
799
  })] }),
702
- j && /* @__PURE__ */ f("p", {
703
- className: "text-xs text-text-secondary",
704
- children: [
705
- x("healthybowl.network.experts.bookingModal.estimatedFee", "Estimated fee:"),
800
+ F && (F.hourlyRate > 0 ? /* @__PURE__ */ p("div", {
801
+ className: "space-y-1 text-xs text-text-secondary",
802
+ children: [/* @__PURE__ */ p("p", { children: [
803
+ S("healthybowl.network.experts.bookingModal.fee", "One-hour consultation fee, payable on booking:"),
706
804
  " ",
707
- /* @__PURE__ */ d("span", {
805
+ /* @__PURE__ */ f("span", {
708
806
  className: "font-medium text-text-primary",
709
- children: x("healthybowl.network.experts.card.pricePerHour", "{{price}}/hr", { price: t(j.hourlyRate, "INR") })
807
+ children: t(F.hourlyRate, "INR")
710
808
  })
711
- ]
712
- })
809
+ ] }), /* @__PURE__ */ f("p", { children: S("healthybowl.network.experts.bookingModal.payoutNote", "Your payment is collected by the farm. Settlement with the expert is arranged separately.") })]
810
+ }) : /* @__PURE__ */ f("p", {
811
+ className: "text-xs text-text-secondary",
812
+ children: S("healthybowl.network.experts.bookingModal.noFee", "No fee for this consultation.")
813
+ }))
713
814
  ]
714
815
  })
715
816
  }),
716
- /* @__PURE__ */ d(oe, {
717
- open: Xe,
817
+ /* @__PURE__ */ f(ie, {
818
+ open: $e,
718
819
  onClose: Q,
719
- title: L ? x("healthybowl.network.experts.form.editTitle", "Edit Expert") : x("healthybowl.network.experts.form.addTitle", "Add Expert"),
720
- description: x("healthybowl.network.experts.form.description", "Manage an expert in your network directory"),
820
+ title: V ? S("healthybowl.network.experts.form.editTitle", "Edit Expert") : S("healthybowl.network.experts.form.addTitle", "Add Expert"),
821
+ description: S("healthybowl.network.experts.form.description", "Manage an expert in your network directory"),
721
822
  size: "lg",
722
- footer: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(p, {
823
+ footer: /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(m, {
723
824
  onClick: Q,
724
825
  variant: "outline",
725
- children: x("healthybowl.common.cancel", "Cancel")
726
- }), /* @__PURE__ */ d(p, {
727
- onClick: it,
728
- disabled: V,
729
- children: V ? x("healthybowl.network.experts.form.saving", "Saving…") : x("healthybowl.network.experts.form.save", "Save Expert")
826
+ children: S("healthybowl.common.cancel", "Cancel")
827
+ }), /* @__PURE__ */ f(m, {
828
+ onClick: gt,
829
+ disabled: et,
830
+ children: et ? S("healthybowl.network.experts.form.saving", "Saving…") : S("healthybowl.network.experts.form.save", "Save Expert")
730
831
  })] }),
731
- children: /* @__PURE__ */ f("div", {
832
+ children: /* @__PURE__ */ p("div", {
732
833
  className: "space-y-4",
733
834
  children: [
734
- /* @__PURE__ */ f("div", {
835
+ /* @__PURE__ */ p("div", {
735
836
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
736
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
837
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
737
838
  htmlFor: "expert-form-name",
738
839
  className: "mb-1 block text-xs font-medium text-text-primary",
739
- children: x("healthybowl.network.experts.form.fields.name.label", "Name")
740
- }), /* @__PURE__ */ d("input", {
840
+ children: S("healthybowl.network.experts.form.fields.name.label", "Name")
841
+ }), /* @__PURE__ */ f("input", {
741
842
  id: "expert-form-name",
742
843
  type: "text",
743
- value: z.name,
844
+ value: U.name,
744
845
  onChange: (e) => Z("name", e.target.value),
745
846
  maxLength: 120,
746
- placeholder: x("healthybowl.network.experts.form.fields.name.placeholder", "Full name"),
847
+ placeholder: S("healthybowl.network.experts.form.fields.name.placeholder", "Full name"),
747
848
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
748
- })] }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
849
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
749
850
  htmlFor: "expert-form-specialization",
750
851
  className: "mb-1 block text-xs font-medium text-text-primary",
751
- children: x("healthybowl.network.experts.form.fields.specialization.label", "Specialization")
752
- }), /* @__PURE__ */ d("input", {
852
+ children: S("healthybowl.network.experts.form.fields.specialization.label", "Specialization")
853
+ }), /* @__PURE__ */ f("input", {
753
854
  id: "expert-form-specialization",
754
855
  type: "text",
755
- value: z.specialization,
856
+ value: U.specialization,
756
857
  onChange: (e) => Z("specialization", e.target.value),
757
858
  maxLength: 120,
758
- placeholder: x("healthybowl.network.experts.form.fields.specialization.placeholder", "e.g. Soil Science & Fertility"),
859
+ placeholder: S("healthybowl.network.experts.form.fields.specialization.placeholder", "e.g. Soil Science & Fertility"),
759
860
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
760
861
  })] })]
761
862
  }),
762
- /* @__PURE__ */ f("div", {
863
+ /* @__PURE__ */ p("div", {
763
864
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
764
865
  children: [
765
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
866
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
766
867
  htmlFor: "expert-form-experience",
767
868
  className: "mb-1 block text-xs font-medium text-text-primary",
768
- children: x("healthybowl.network.experts.form.fields.experience.label", "Experience (years)")
769
- }), /* @__PURE__ */ d("input", {
869
+ children: S("healthybowl.network.experts.form.fields.experience.label", "Experience (years)")
870
+ }), /* @__PURE__ */ f("input", {
770
871
  id: "expert-form-experience",
771
872
  type: "number",
772
873
  min: 0,
773
- value: z.experience,
874
+ value: U.experience,
774
875
  onChange: (e) => Z("experience", e.target.value),
775
876
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
776
877
  })] }),
777
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
878
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
778
879
  htmlFor: "expert-form-rating",
779
880
  className: "mb-1 block text-xs font-medium text-text-primary",
780
- children: x("healthybowl.network.experts.form.fields.rating.label", "Rating")
781
- }), /* @__PURE__ */ d("input", {
881
+ children: S("healthybowl.network.experts.form.fields.rating.label", "Rating")
882
+ }), /* @__PURE__ */ f("input", {
782
883
  id: "expert-form-rating",
783
884
  type: "number",
784
885
  min: 0,
785
886
  max: 5,
786
887
  step: .1,
787
- value: z.rating,
888
+ value: U.rating,
788
889
  onChange: (e) => Z("rating", e.target.value),
789
890
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
790
891
  })] }),
791
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
892
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
792
893
  htmlFor: "expert-form-rate",
793
894
  className: "mb-1 block text-xs font-medium text-text-primary",
794
- children: x("healthybowl.network.experts.form.fields.hourlyRate.label", "Hourly rate")
795
- }), /* @__PURE__ */ d("input", {
895
+ children: S("healthybowl.network.experts.form.fields.hourlyRate.label", "Hourly rate")
896
+ }), /* @__PURE__ */ f("input", {
796
897
  id: "expert-form-rate",
797
898
  type: "number",
798
899
  min: 0,
799
900
  step: .01,
800
- value: z.hourlyRate,
901
+ value: U.hourlyRate,
801
902
  onChange: (e) => Z("hourlyRate", e.target.value),
802
903
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
803
904
  })] })
804
905
  ]
805
906
  }),
806
- /* @__PURE__ */ f("div", {
907
+ /* @__PURE__ */ p("div", {
807
908
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
808
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
909
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
809
910
  htmlFor: "expert-form-location",
810
911
  className: "mb-1 block text-xs font-medium text-text-primary",
811
- children: x("healthybowl.network.experts.form.fields.location.label", "Location")
812
- }), /* @__PURE__ */ d("input", {
912
+ children: S("healthybowl.network.experts.form.fields.location.label", "Location")
913
+ }), /* @__PURE__ */ f("input", {
813
914
  id: "expert-form-location",
814
915
  type: "text",
815
- value: z.location,
916
+ value: U.location,
816
917
  onChange: (e) => Z("location", e.target.value),
817
918
  maxLength: 120,
818
- placeholder: x("healthybowl.network.experts.form.fields.location.placeholder", "City, Region"),
919
+ placeholder: S("healthybowl.network.experts.form.fields.location.placeholder", "City, Region"),
819
920
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
820
- })] }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
921
+ })] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
821
922
  htmlFor: "expert-form-availability",
822
923
  className: "mb-1 block text-xs font-medium text-text-primary",
823
- children: x("healthybowl.network.experts.form.fields.availability.label", "Availability")
824
- }), /* @__PURE__ */ f(m, {
825
- value: z.availability,
924
+ children: S("healthybowl.network.experts.form.fields.availability.label", "Availability")
925
+ }), /* @__PURE__ */ p(h, {
926
+ value: U.availability,
826
927
  onValueChange: (e) => Z("availability", e),
827
- children: [/* @__PURE__ */ d(_, {
928
+ children: [/* @__PURE__ */ f(v, {
828
929
  id: "expert-form-availability",
829
930
  className: "w-full",
830
- children: /* @__PURE__ */ d(v, {})
831
- }), /* @__PURE__ */ d(h, { children: Qe.map((e) => /* @__PURE__ */ d(g, {
931
+ children: /* @__PURE__ */ f(y, {})
932
+ }), /* @__PURE__ */ f(g, { children: lt.map((e) => /* @__PURE__ */ f(_, {
832
933
  value: e.value,
833
934
  children: e.label
834
935
  }, e.value)) })]
835
936
  })] })]
836
937
  }),
837
- /* @__PURE__ */ f("div", { children: [
838
- /* @__PURE__ */ d("label", {
938
+ /* @__PURE__ */ p("div", { children: [
939
+ /* @__PURE__ */ f("label", {
839
940
  htmlFor: "expert-form-languages",
840
941
  className: "mb-1 block text-xs font-medium text-text-primary",
841
- children: x("healthybowl.network.experts.form.fields.languages.label", "Languages")
942
+ children: S("healthybowl.network.experts.form.fields.languages.label", "Languages")
842
943
  }),
843
- /* @__PURE__ */ d("input", {
944
+ /* @__PURE__ */ f("input", {
844
945
  id: "expert-form-languages",
845
946
  type: "text",
846
- value: z.languages,
947
+ value: U.languages,
847
948
  onChange: (e) => Z("languages", e.target.value),
848
- placeholder: x("healthybowl.network.experts.form.fields.languages.placeholder", "English, Hindi, Tamil"),
949
+ placeholder: S("healthybowl.network.experts.form.fields.languages.placeholder", "English, Hindi, Tamil"),
849
950
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
850
951
  }),
851
- /* @__PURE__ */ d("p", {
952
+ /* @__PURE__ */ f("p", {
852
953
  className: "mt-1 text-xs text-text-secondary",
853
- children: x("healthybowl.network.experts.form.fields.languages.hint", "Separate multiple languages with commas")
954
+ children: S("healthybowl.network.experts.form.fields.languages.hint", "Separate multiple languages with commas")
854
955
  })
855
956
  ] })
856
957
  ]
857
958
  })
858
959
  }),
859
- /* @__PURE__ */ d(ie, {
860
- toasts: $e,
861
- onDismiss: et
960
+ /* @__PURE__ */ f(ne, {
961
+ toasts: ut,
962
+ onDismiss: dt
862
963
  })
863
964
  ]
864
965
  });
865
966
  };
866
967
  //#endregion
867
- export { x as ExpertsPage };
968
+ export { S as ExpertsPage };
868
969
 
869
970
  //# sourceMappingURL=ExpertsPage.js.map