@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.
- package/dist/components/assistant/AssistantChatArea.js +234 -220
- package/dist/components/assistant/AssistantChatArea.js.map +1 -1
- package/dist/components/assistant/AssistantSpokenTurnsNotice.js +33 -0
- package/dist/components/assistant/AssistantSpokenTurnsNotice.js.map +1 -0
- package/dist/components/assistant/voice/AssistantVoiceSession.js +16 -16
- package/dist/components/assistant/voice/VoiceTranscriptDrawer.js.map +1 -1
- package/dist/healthybowl/hooks/useConsultationPayments.js +59 -0
- package/dist/healthybowl/hooks/useConsultationPayments.js.map +1 -0
- package/dist/healthybowl/hooks/useHealthyBowlData.js +15 -0
- package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
- package/dist/healthybowl/offline/graphql.js.map +1 -1
- package/dist/healthybowl/offline/syncEngine.js +2 -1
- package/dist/healthybowl/offline/syncEngine.js.map +1 -1
- package/dist/healthybowl/offline/types.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +228 -188
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +261 -191
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js +49 -0
- package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js.map +1 -0
- package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js +48 -0
- package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js.map +1 -0
- package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js +54 -0
- package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js.map +1 -0
- package/dist/healthybowl/pages/network/ExpertsPage.js +520 -419
- package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
- package/dist/hooks/useConversationTurns.js +19 -0
- package/dist/hooks/useConversationTurns.js.map +1 -0
- package/dist/types/assistant.js.map +1 -1
- 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
|
|
3
|
-
import { StatCard as
|
|
4
|
-
import { StatusBadge as
|
|
5
|
-
import { EmptyState as
|
|
6
|
-
import { ErrorState as
|
|
7
|
-
import { FilterBar as
|
|
8
|
-
import { ToastContainer as
|
|
9
|
-
import { PageLoader as
|
|
10
|
-
import { Modal as
|
|
11
|
-
import { useToast as
|
|
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
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
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
|
|
21
|
+
var b = {
|
|
21
22
|
topic: "",
|
|
22
23
|
requestedDate: "",
|
|
23
24
|
mode: "phone",
|
|
24
25
|
notes: ""
|
|
25
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
],
|
|
55
|
+
], De = [
|
|
49
56
|
"All",
|
|
50
57
|
"Available",
|
|
51
58
|
"Busy"
|
|
52
|
-
],
|
|
59
|
+
], Oe = [
|
|
53
60
|
"rating",
|
|
54
61
|
"experience",
|
|
55
62
|
"price-asc",
|
|
56
63
|
"price-desc"
|
|
57
|
-
],
|
|
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
|
|
66
|
-
return Array.from({ length: 5 }, (n, r) => /* @__PURE__ */
|
|
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
|
|
69
|
-
let { t:
|
|
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:
|
|
78
|
+
label: S("healthybowl.network.experts.modes.phone", "Phone call")
|
|
72
79
|
}, {
|
|
73
80
|
value: "in_person",
|
|
74
|
-
label:
|
|
75
|
-
}],
|
|
76
|
-
rating:
|
|
77
|
-
experience:
|
|
78
|
-
"price-asc":
|
|
79
|
-
"price-desc":
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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:
|
|
120
|
+
label: S("healthybowl.network.experts.availability.available", "available")
|
|
108
121
|
},
|
|
109
122
|
{
|
|
110
123
|
value: "busy",
|
|
111
|
-
label:
|
|
124
|
+
label: S("healthybowl.network.experts.availability.busy", "busy")
|
|
112
125
|
},
|
|
113
126
|
{
|
|
114
127
|
value: "offline",
|
|
115
|
-
label:
|
|
128
|
+
label: S("healthybowl.network.experts.availability.offline", "offline")
|
|
116
129
|
}
|
|
117
|
-
],
|
|
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
|
-
})),
|
|
121
|
-
|
|
133
|
+
})), pt = (e) => {
|
|
134
|
+
R(b), I(e);
|
|
122
135
|
}, X = () => {
|
|
123
|
-
|
|
124
|
-
}, Z = (e, t) =>
|
|
136
|
+
I(null), R(b);
|
|
137
|
+
}, Z = (e, t) => W((n) => ({
|
|
125
138
|
...n,
|
|
126
139
|
[e]: t
|
|
127
|
-
})),
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
|
|
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
|
-
}),
|
|
152
|
+
}), B(!0);
|
|
140
153
|
}, Q = () => {
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
if (!
|
|
144
|
-
|
|
145
|
-
title:
|
|
146
|
-
description:
|
|
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 =
|
|
152
|
-
|
|
164
|
+
let e = U.languages.split(",").map((e) => e.trim()).filter((e) => e.length > 0);
|
|
165
|
+
tt(!0);
|
|
153
166
|
try {
|
|
154
|
-
|
|
155
|
-
id:
|
|
156
|
-
name:
|
|
157
|
-
specialization:
|
|
158
|
-
experience: Number(
|
|
159
|
-
rating: Number(
|
|
160
|
-
location:
|
|
161
|
-
availability:
|
|
162
|
-
hourlyRate: Number(
|
|
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
|
-
}),
|
|
165
|
-
title:
|
|
166
|
-
description:
|
|
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
|
|
169
|
-
name:
|
|
170
|
-
specialization:
|
|
171
|
-
experience: Number(
|
|
172
|
-
rating: Number(
|
|
173
|
-
location:
|
|
174
|
-
availability:
|
|
175
|
-
hourlyRate: Number(
|
|
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
|
-
}),
|
|
178
|
-
title:
|
|
179
|
-
description:
|
|
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
|
-
|
|
184
|
-
title:
|
|
185
|
-
description: e instanceof Error ? e.message :
|
|
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
|
-
|
|
202
|
+
tt(!1);
|
|
190
203
|
}
|
|
191
|
-
},
|
|
192
|
-
|
|
204
|
+
}, _t = async (e) => {
|
|
205
|
+
rt(e.id);
|
|
193
206
|
try {
|
|
194
|
-
await
|
|
195
|
-
title:
|
|
196
|
-
description:
|
|
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
|
-
|
|
201
|
-
title:
|
|
202
|
-
description: e instanceof Error ? e.message :
|
|
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
|
-
|
|
219
|
+
rt(null);
|
|
207
220
|
}
|
|
208
|
-
},
|
|
209
|
-
if (
|
|
210
|
-
if (!
|
|
211
|
-
|
|
212
|
-
title:
|
|
213
|
-
description:
|
|
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
|
-
|
|
231
|
+
Qe(!0);
|
|
219
232
|
try {
|
|
220
|
-
await
|
|
233
|
+
await Me({
|
|
221
234
|
consultantType: "EXPERT",
|
|
222
|
-
consultantId:
|
|
223
|
-
consultantName:
|
|
224
|
-
topic:
|
|
225
|
-
requestedDate:
|
|
226
|
-
mode:
|
|
227
|
-
notes:
|
|
228
|
-
fee:
|
|
229
|
-
}),
|
|
230
|
-
title:
|
|
231
|
-
description:
|
|
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
|
-
|
|
236
|
-
title:
|
|
237
|
-
description: e instanceof Error ? e.message :
|
|
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
|
-
|
|
254
|
+
Qe(!1);
|
|
242
255
|
}
|
|
243
256
|
}
|
|
244
257
|
}, $ = async (e, t) => {
|
|
245
|
-
|
|
258
|
+
it(e);
|
|
246
259
|
try {
|
|
247
|
-
await
|
|
260
|
+
await Ne({
|
|
248
261
|
id: e,
|
|
249
262
|
status: t
|
|
250
|
-
}),
|
|
251
|
-
title:
|
|
252
|
-
description:
|
|
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
|
-
|
|
257
|
-
title:
|
|
258
|
-
description: e instanceof Error ? e.message :
|
|
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
|
-
|
|
339
|
+
t || ct(e.id);
|
|
263
340
|
}
|
|
264
341
|
};
|
|
265
|
-
|
|
342
|
+
ce(() => {
|
|
266
343
|
let e = (e) => {
|
|
267
|
-
|
|
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
|
|
272
|
-
let t = (e.name ?? "").toLowerCase().includes(
|
|
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 (
|
|
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
|
-
}),
|
|
283
|
-
return /* @__PURE__ */
|
|
284
|
-
title:
|
|
285
|
-
description:
|
|
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__ */
|
|
288
|
-
onClick:
|
|
364
|
+
actions: /* @__PURE__ */ p(m, {
|
|
365
|
+
onClick: mt,
|
|
289
366
|
size: "sm",
|
|
290
367
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ f(u, { className: "h-3.5 w-3.5" }),
|
|
292
369
|
" ",
|
|
293
|
-
|
|
370
|
+
S("healthybowl.network.experts.actions.addExpert", "Add Expert")
|
|
294
371
|
]
|
|
295
372
|
}),
|
|
296
373
|
children: [
|
|
297
|
-
/* @__PURE__ */
|
|
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__ */
|
|
377
|
+
/* @__PURE__ */ f(a, {
|
|
301
378
|
hero: !0,
|
|
302
|
-
label:
|
|
303
|
-
value:
|
|
304
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
307
|
-
label:
|
|
308
|
-
value:
|
|
309
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
312
|
-
label:
|
|
313
|
-
value:
|
|
314
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
317
|
-
label:
|
|
318
|
-
value:
|
|
319
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
324
|
-
searchValue:
|
|
325
|
-
onSearchChange:
|
|
326
|
-
searchPlaceholder:
|
|
327
|
-
filters: /* @__PURE__ */
|
|
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__ */
|
|
331
|
-
value:
|
|
332
|
-
onValueChange:
|
|
333
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
336
|
-
}), /* @__PURE__ */
|
|
412
|
+
children: /* @__PURE__ */ f(y, {})
|
|
413
|
+
}), /* @__PURE__ */ f(g, { children: Ee.map((e) => /* @__PURE__ */ f(_, {
|
|
337
414
|
value: e,
|
|
338
|
-
children:
|
|
415
|
+
children: Ue[e] ?? e
|
|
339
416
|
}, e)) })]
|
|
340
417
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
value:
|
|
343
|
-
onValueChange:
|
|
344
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
347
|
-
}), /* @__PURE__ */
|
|
423
|
+
children: /* @__PURE__ */ f(y, {})
|
|
424
|
+
}), /* @__PURE__ */ f(g, { children: De.map((e) => /* @__PURE__ */ f(_, {
|
|
348
425
|
value: e,
|
|
349
|
-
children:
|
|
426
|
+
children: We[e] ?? e
|
|
350
427
|
}, e)) })]
|
|
351
428
|
}),
|
|
352
|
-
/* @__PURE__ */
|
|
353
|
-
ref:
|
|
429
|
+
/* @__PURE__ */ p("div", {
|
|
430
|
+
ref: q,
|
|
354
431
|
className: "relative",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
356
|
-
onClick: () =>
|
|
432
|
+
children: [/* @__PURE__ */ p(m, {
|
|
433
|
+
onClick: () => P((e) => !e),
|
|
357
434
|
variant: "outline",
|
|
358
435
|
size: "sm",
|
|
359
436
|
children: [
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
|
|
362
|
-
/* @__PURE__ */
|
|
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
|
-
}),
|
|
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:
|
|
443
|
+
children: Oe.map((t) => /* @__PURE__ */ f("button", {
|
|
367
444
|
type: "button",
|
|
368
445
|
onClick: () => {
|
|
369
|
-
|
|
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",
|
|
372
|
-
children:
|
|
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
|
-
|
|
456
|
+
xt.length > 0 ? /* @__PURE__ */ f("div", {
|
|
380
457
|
className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
381
|
-
children:
|
|
382
|
-
let n =
|
|
383
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
463
|
+
/* @__PURE__ */ p("div", {
|
|
387
464
|
className: "flex items-start gap-3",
|
|
388
465
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
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__ */
|
|
470
|
+
/* @__PURE__ */ p("div", {
|
|
394
471
|
className: "flex-1 min-w-0",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
472
|
+
children: [/* @__PURE__ */ f("h3", {
|
|
396
473
|
className: "text-sm font-semibold text-text-primary",
|
|
397
474
|
children: e.name
|
|
398
|
-
}), /* @__PURE__ */
|
|
475
|
+
}), /* @__PURE__ */ f("p", {
|
|
399
476
|
className: "text-xs text-text-secondary",
|
|
400
477
|
children: e.specialization
|
|
401
478
|
})]
|
|
402
479
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
label:
|
|
405
|
-
variant:
|
|
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__ */
|
|
487
|
+
/* @__PURE__ */ p("div", {
|
|
411
488
|
className: "mt-3 space-y-1.5 text-xs text-text-secondary",
|
|
412
489
|
children: [
|
|
413
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ p("p", {
|
|
414
491
|
className: "flex items-center gap-1.5",
|
|
415
492
|
children: [
|
|
416
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ f(me, { className: "h-3 w-3" }),
|
|
417
494
|
" ",
|
|
418
|
-
|
|
495
|
+
S("healthybowl.network.experts.card.yearsExperience", "{{count}} years experience", { count: e.experience })
|
|
419
496
|
]
|
|
420
497
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
498
|
+
/* @__PURE__ */ p("p", {
|
|
422
499
|
className: "flex items-center gap-1.5",
|
|
423
500
|
children: [
|
|
424
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ f(_e, { className: "h-3 w-3" }),
|
|
425
502
|
" ",
|
|
426
503
|
e.location
|
|
427
504
|
]
|
|
428
505
|
}),
|
|
429
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ p("p", {
|
|
430
507
|
className: "flex items-center gap-1.5",
|
|
431
508
|
children: [
|
|
432
|
-
/* @__PURE__ */
|
|
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__ */
|
|
516
|
+
/* @__PURE__ */ p("div", {
|
|
440
517
|
className: "mt-3 flex items-center gap-1",
|
|
441
518
|
children: [
|
|
442
|
-
|
|
443
|
-
/* @__PURE__ */
|
|
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__ */
|
|
524
|
+
/* @__PURE__ */ f("span", {
|
|
448
525
|
className: "text-xs text-text-secondary",
|
|
449
|
-
children:
|
|
526
|
+
children: S("healthybowl.network.experts.card.reviews", "({{count}} reviews)", { count: e.reviews })
|
|
450
527
|
})
|
|
451
528
|
]
|
|
452
529
|
}),
|
|
453
|
-
n && /* @__PURE__ */
|
|
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__ */
|
|
533
|
+
/* @__PURE__ */ f("h4", {
|
|
457
534
|
className: "text-xs font-semibold text-text-primary",
|
|
458
|
-
children:
|
|
535
|
+
children: S("healthybowl.network.experts.card.about", "About")
|
|
459
536
|
}),
|
|
460
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ f("p", {
|
|
461
538
|
className: "mt-1 text-xs text-text-secondary",
|
|
462
|
-
children:
|
|
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__ */
|
|
545
|
+
/* @__PURE__ */ p("div", {
|
|
469
546
|
className: "mt-2 grid grid-cols-2 gap-2 text-xs",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
547
|
+
children: [/* @__PURE__ */ p("div", {
|
|
471
548
|
className: "rounded bg-bg-surface p-2",
|
|
472
|
-
children: [/* @__PURE__ */
|
|
549
|
+
children: [/* @__PURE__ */ f("p", {
|
|
473
550
|
className: "font-medium text-text-primary",
|
|
474
|
-
children:
|
|
475
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
556
|
+
}), /* @__PURE__ */ p("div", {
|
|
480
557
|
className: "rounded bg-bg-surface p-2",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
558
|
+
children: [/* @__PURE__ */ f("p", {
|
|
482
559
|
className: "font-medium text-text-primary",
|
|
483
|
-
children:
|
|
484
|
-
}), /* @__PURE__ */
|
|
560
|
+
children: S("healthybowl.network.experts.card.avgResponse", "Avg Response")
|
|
561
|
+
}), /* @__PURE__ */ f("p", {
|
|
485
562
|
className: "text-text-secondary",
|
|
486
|
-
children:
|
|
563
|
+
children: S("healthybowl.network.experts.card.avgResponseValue", "< 2 hours")
|
|
487
564
|
})]
|
|
488
565
|
})]
|
|
489
566
|
})
|
|
490
567
|
]
|
|
491
568
|
}),
|
|
492
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ p("div", {
|
|
493
570
|
className: "mt-3 flex items-center justify-between border-t border-border-subtle pt-3",
|
|
494
|
-
children: [/* @__PURE__ */
|
|
571
|
+
children: [/* @__PURE__ */ f("span", {
|
|
495
572
|
className: "text-sm font-medium text-text-primary",
|
|
496
|
-
children:
|
|
497
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
501
|
-
onClick: () =>
|
|
502
|
-
"aria-label":
|
|
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__ */
|
|
582
|
+
children: /* @__PURE__ */ f(he, { className: "h-3.5 w-3.5" })
|
|
506
583
|
}),
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
onClick: () =>
|
|
509
|
-
"aria-label":
|
|
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__ */
|
|
589
|
+
children: /* @__PURE__ */ f(ve, { className: "h-3.5 w-3.5" })
|
|
513
590
|
}),
|
|
514
|
-
/* @__PURE__ */
|
|
515
|
-
onClick: () =>
|
|
516
|
-
disabled:
|
|
517
|
-
"aria-label":
|
|
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__ */
|
|
598
|
+
children: /* @__PURE__ */ f(be, { className: "h-3.5 w-3.5" })
|
|
522
599
|
}),
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
onClick: () =>
|
|
600
|
+
/* @__PURE__ */ p(m, {
|
|
601
|
+
onClick: () => pt(e),
|
|
525
602
|
size: "sm",
|
|
526
603
|
children: [
|
|
527
|
-
/* @__PURE__ */
|
|
604
|
+
/* @__PURE__ */ f(l, { className: "h-3.5 w-3.5" }),
|
|
528
605
|
" ",
|
|
529
|
-
|
|
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
|
-
}) :
|
|
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:
|
|
541
|
-
description:
|
|
542
|
-
action: /* @__PURE__ */
|
|
543
|
-
onClick:
|
|
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__ */
|
|
622
|
+
/* @__PURE__ */ f(u, { className: "h-3.5 w-3.5" }),
|
|
546
623
|
" ",
|
|
547
|
-
|
|
624
|
+
S("healthybowl.network.experts.actions.addExpert", "Add Expert")
|
|
548
625
|
]
|
|
549
626
|
})
|
|
550
|
-
}) : /* @__PURE__ */
|
|
627
|
+
}) : /* @__PURE__ */ f(s, {
|
|
551
628
|
illustration: "empty-search",
|
|
552
|
-
title:
|
|
553
|
-
description:
|
|
554
|
-
action: /* @__PURE__ */
|
|
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
|
-
|
|
633
|
+
O(""), A("All"), M("All");
|
|
557
634
|
},
|
|
558
|
-
children:
|
|
635
|
+
children: S("healthybowl.network.experts.actions.clearFilters", "Clear Filters")
|
|
559
636
|
})
|
|
560
637
|
}),
|
|
561
|
-
|
|
638
|
+
ft.length > 0 && /* @__PURE__ */ p("div", {
|
|
562
639
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
563
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
643
|
+
/* @__PURE__ */ f(l, { className: "h-4 w-4" }),
|
|
567
644
|
" ",
|
|
568
|
-
|
|
645
|
+
S("healthybowl.network.experts.myConsultations.heading", "My Expert Consultations")
|
|
569
646
|
]
|
|
570
|
-
}), /* @__PURE__ */
|
|
647
|
+
}), /* @__PURE__ */ f("ul", {
|
|
571
648
|
className: "mt-3 divide-y divide-border",
|
|
572
|
-
children:
|
|
649
|
+
children: ft.map((e) => /* @__PURE__ */ p("li", {
|
|
573
650
|
className: "flex items-center justify-between gap-3 py-2.5",
|
|
574
|
-
children: [/* @__PURE__ */
|
|
651
|
+
children: [/* @__PURE__ */ p("div", {
|
|
575
652
|
className: "min-w-0",
|
|
576
|
-
children: [
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
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.
|
|
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:
|
|
598
|
-
children:
|
|
599
|
-
}), /* @__PURE__ */
|
|
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:
|
|
604
|
-
children:
|
|
697
|
+
disabled: G === e.id,
|
|
698
|
+
children: S("healthybowl.network.experts.actions.decline", "Decline")
|
|
605
699
|
})] }),
|
|
606
|
-
e.status === "CONFIRMED" && /* @__PURE__ */
|
|
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:
|
|
611
|
-
children:
|
|
612
|
-
}), /* @__PURE__ */
|
|
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:
|
|
617
|
-
children:
|
|
710
|
+
disabled: G === e.id,
|
|
711
|
+
children: S("healthybowl.network.experts.actions.cancel", "Cancel")
|
|
618
712
|
})] }),
|
|
619
|
-
/* @__PURE__ */
|
|
620
|
-
label:
|
|
621
|
-
variant:
|
|
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__ */
|
|
630
|
-
open:
|
|
727
|
+
/* @__PURE__ */ f(ie, {
|
|
728
|
+
open: F !== null,
|
|
631
729
|
onClose: X,
|
|
632
|
-
title:
|
|
633
|
-
description:
|
|
634
|
-
footer: /* @__PURE__ */
|
|
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:
|
|
638
|
-
}), /* @__PURE__ */
|
|
639
|
-
onClick:
|
|
640
|
-
disabled:
|
|
641
|
-
children:
|
|
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__ */
|
|
741
|
+
children: /* @__PURE__ */ p("div", {
|
|
644
742
|
className: "space-y-4",
|
|
645
743
|
children: [
|
|
646
|
-
/* @__PURE__ */
|
|
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:
|
|
650
|
-
}), /* @__PURE__ */
|
|
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:
|
|
751
|
+
value: L.topic,
|
|
654
752
|
onChange: (e) => Y("topic", e.target.value),
|
|
655
753
|
maxLength: 200,
|
|
656
|
-
placeholder:
|
|
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__ */
|
|
757
|
+
/* @__PURE__ */ p("div", {
|
|
660
758
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
661
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
665
|
-
}), /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
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:
|
|
676
|
-
}), /* @__PURE__ */
|
|
677
|
-
value:
|
|
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__ */
|
|
777
|
+
children: [/* @__PURE__ */ f(v, {
|
|
680
778
|
id: "expert-booking-mode",
|
|
681
779
|
className: "w-full",
|
|
682
|
-
children: /* @__PURE__ */
|
|
683
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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:
|
|
693
|
-
}), /* @__PURE__ */
|
|
790
|
+
children: S("healthybowl.network.experts.bookingModal.fields.notes.label", "Notes (optional)")
|
|
791
|
+
}), /* @__PURE__ */ f("textarea", {
|
|
694
792
|
id: "expert-booking-notes",
|
|
695
|
-
value:
|
|
793
|
+
value: L.notes,
|
|
696
794
|
onChange: (e) => Y("notes", e.target.value),
|
|
697
795
|
rows: 3,
|
|
698
796
|
maxLength: 1e3,
|
|
699
|
-
placeholder:
|
|
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
|
-
|
|
703
|
-
className: "text-xs text-text-secondary",
|
|
704
|
-
children: [
|
|
705
|
-
|
|
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__ */
|
|
805
|
+
/* @__PURE__ */ f("span", {
|
|
708
806
|
className: "font-medium text-text-primary",
|
|
709
|
-
children:
|
|
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__ */
|
|
717
|
-
open:
|
|
817
|
+
/* @__PURE__ */ f(ie, {
|
|
818
|
+
open: $e,
|
|
718
819
|
onClose: Q,
|
|
719
|
-
title:
|
|
720
|
-
description:
|
|
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__ */
|
|
823
|
+
footer: /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(m, {
|
|
723
824
|
onClick: Q,
|
|
724
825
|
variant: "outline",
|
|
725
|
-
children:
|
|
726
|
-
}), /* @__PURE__ */
|
|
727
|
-
onClick:
|
|
728
|
-
disabled:
|
|
729
|
-
children:
|
|
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__ */
|
|
832
|
+
children: /* @__PURE__ */ p("div", {
|
|
732
833
|
className: "space-y-4",
|
|
733
834
|
children: [
|
|
734
|
-
/* @__PURE__ */
|
|
835
|
+
/* @__PURE__ */ p("div", {
|
|
735
836
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
736
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
740
|
-
}), /* @__PURE__ */
|
|
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:
|
|
844
|
+
value: U.name,
|
|
744
845
|
onChange: (e) => Z("name", e.target.value),
|
|
745
846
|
maxLength: 120,
|
|
746
|
-
placeholder:
|
|
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__ */
|
|
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:
|
|
752
|
-
}), /* @__PURE__ */
|
|
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:
|
|
856
|
+
value: U.specialization,
|
|
756
857
|
onChange: (e) => Z("specialization", e.target.value),
|
|
757
858
|
maxLength: 120,
|
|
758
|
-
placeholder:
|
|
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__ */
|
|
863
|
+
/* @__PURE__ */ p("div", {
|
|
763
864
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
764
865
|
children: [
|
|
765
|
-
/* @__PURE__ */
|
|
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:
|
|
769
|
-
}), /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
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:
|
|
781
|
-
}), /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
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:
|
|
795
|
-
}), /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
907
|
+
/* @__PURE__ */ p("div", {
|
|
807
908
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
808
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
812
|
-
}), /* @__PURE__ */
|
|
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:
|
|
916
|
+
value: U.location,
|
|
816
917
|
onChange: (e) => Z("location", e.target.value),
|
|
817
918
|
maxLength: 120,
|
|
818
|
-
placeholder:
|
|
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__ */
|
|
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:
|
|
824
|
-
}), /* @__PURE__ */
|
|
825
|
-
value:
|
|
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__ */
|
|
928
|
+
children: [/* @__PURE__ */ f(v, {
|
|
828
929
|
id: "expert-form-availability",
|
|
829
930
|
className: "w-full",
|
|
830
|
-
children: /* @__PURE__ */
|
|
831
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
838
|
-
/* @__PURE__ */
|
|
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:
|
|
942
|
+
children: S("healthybowl.network.experts.form.fields.languages.label", "Languages")
|
|
842
943
|
}),
|
|
843
|
-
/* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ f("input", {
|
|
844
945
|
id: "expert-form-languages",
|
|
845
946
|
type: "text",
|
|
846
|
-
value:
|
|
947
|
+
value: U.languages,
|
|
847
948
|
onChange: (e) => Z("languages", e.target.value),
|
|
848
|
-
placeholder:
|
|
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__ */
|
|
952
|
+
/* @__PURE__ */ f("p", {
|
|
852
953
|
className: "mt-1 text-xs text-text-secondary",
|
|
853
|
-
children:
|
|
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__ */
|
|
860
|
-
toasts:
|
|
861
|
-
onDismiss:
|
|
960
|
+
/* @__PURE__ */ f(ne, {
|
|
961
|
+
toasts: ut,
|
|
962
|
+
onDismiss: dt
|
|
862
963
|
})
|
|
863
964
|
]
|
|
864
965
|
});
|
|
865
966
|
};
|
|
866
967
|
//#endregion
|
|
867
|
-
export {
|
|
968
|
+
export { S as ExpertsPage };
|
|
868
969
|
|
|
869
970
|
//# sourceMappingURL=ExpertsPage.js.map
|