@burdenoff/microfe-healthybowl 2026.805.9 → 2026.809.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,16 +13,16 @@ import "../../components/index.js";
|
|
|
13
13
|
import { useHealthyBowlData as ae } from "../../hooks/useHealthyBowlData.js";
|
|
14
14
|
import { useEffect as oe, useRef as se, useState as u } from "react";
|
|
15
15
|
import { useI18n as ce } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
16
|
-
import { ArrowUpDown as le, Award as ue, ChevronDown as de, Clock as fe, Eye as pe, GitCompare as me, Globe as he, Heart as d, MapPin as ge, Pencil as _e, Plus as
|
|
17
|
-
import { Fragment as
|
|
18
|
-
import { Button as
|
|
16
|
+
import { ArrowUpDown as le, Award as ue, ChevronDown as de, Clock as fe, Eye as pe, GitCompare as me, Globe as he, Heart as d, MapPin as ge, Pencil as _e, Plus as ve, Star as f, Target as ye, Trash2 as be, UserPlus as p, Users as xe, Zap as Se } from "lucide-react";
|
|
17
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
18
|
+
import { Button as _, Select as v, SelectContent as y, SelectItem as b, SelectTrigger as x, SelectValue as S } from "@burdenoff/fe-libs/ui";
|
|
19
19
|
//#region src/healthybowl/pages/network/MentorsPage.tsx
|
|
20
|
-
var
|
|
20
|
+
var C = {
|
|
21
21
|
topic: "",
|
|
22
22
|
requestedDate: "",
|
|
23
|
-
mode: "
|
|
23
|
+
mode: "phone",
|
|
24
24
|
notes: ""
|
|
25
|
-
},
|
|
25
|
+
}, w = {
|
|
26
26
|
name: "",
|
|
27
27
|
specialization: "",
|
|
28
28
|
experience: "",
|
|
@@ -34,14 +34,14 @@ var S = {
|
|
|
34
34
|
mentoringSince: "",
|
|
35
35
|
mentees: "",
|
|
36
36
|
focusAreas: ""
|
|
37
|
-
},
|
|
37
|
+
}, Ce = (e) => {
|
|
38
38
|
switch (e) {
|
|
39
39
|
case "CONFIRMED": return "success";
|
|
40
40
|
case "COMPLETED": return "info";
|
|
41
41
|
case "CANCELLED": return "muted";
|
|
42
42
|
default: return "warning";
|
|
43
43
|
}
|
|
44
|
-
},
|
|
44
|
+
}, we = [
|
|
45
45
|
"All",
|
|
46
46
|
"Cover Cropping",
|
|
47
47
|
"No-Till Farming",
|
|
@@ -55,11 +55,11 @@ var S = {
|
|
|
55
55
|
"Animal Welfare",
|
|
56
56
|
"Drip Irrigation",
|
|
57
57
|
"Water Conservation"
|
|
58
|
-
],
|
|
58
|
+
], Te = [
|
|
59
59
|
"All",
|
|
60
60
|
"Available",
|
|
61
61
|
"Busy"
|
|
62
|
-
],
|
|
62
|
+
], T = (e) => {
|
|
63
63
|
switch (e) {
|
|
64
64
|
case "available": return "success";
|
|
65
65
|
case "busy": return "warning";
|
|
@@ -67,73 +67,70 @@ var S = {
|
|
|
67
67
|
default: return "default";
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
function
|
|
71
|
-
return Array.from({ length: 5 }, (n, r) => /* @__PURE__ */
|
|
70
|
+
function Ee(t) {
|
|
71
|
+
return Array.from({ length: 5 }, (n, r) => /* @__PURE__ */ h(f, { className: e("h-3.5 w-3.5", r < Math.round(t) ? "fill-warning text-warning" : "text-muted") }, r));
|
|
72
72
|
}
|
|
73
|
-
var
|
|
74
|
-
let { t:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
73
|
+
var E = () => {
|
|
74
|
+
let { t: f } = ce(), { mentors: E, consultations: De, createConsultation: Oe, createMentor: ke, updateMentor: Ae, deleteMentor: je, errors: Me, loadings: Ne, refetch: Pe } = ae(), Fe = [{
|
|
75
|
+
value: "phone",
|
|
76
|
+
label: f("healthybowl.network.mentors.modes.phone", "Phone call")
|
|
77
|
+
}, {
|
|
78
|
+
value: "in_person",
|
|
79
|
+
label: f("healthybowl.network.mentors.modes.inPerson", "In person")
|
|
80
|
+
}], Ie = {
|
|
81
|
+
video: f("healthybowl.network.mentors.modes.video", "Video call (coming soon)"),
|
|
82
|
+
phone: f("healthybowl.network.mentors.modes.phone", "Phone call"),
|
|
83
|
+
in_person: f("healthybowl.network.mentors.modes.inPerson", "In person")
|
|
84
|
+
}, D = {
|
|
85
|
+
rating: f("healthybowl.network.mentors.sort.rating", "Rating"),
|
|
86
|
+
experience: f("healthybowl.network.mentors.sort.experience", "Experience"),
|
|
87
|
+
mentees: f("healthybowl.network.mentors.sort.mentees", "Most Mentees"),
|
|
88
|
+
"price-asc": f("healthybowl.network.mentors.sort.priceAsc", "Price: Low → High")
|
|
89
|
+
}, Le = {
|
|
90
|
+
All: f("healthybowl.common.all", "All"),
|
|
91
|
+
"Cover Cropping": f("healthybowl.network.mentors.focusAreas.coverCropping", "Cover Cropping"),
|
|
92
|
+
"No-Till Farming": f("healthybowl.network.mentors.focusAreas.noTillFarming", "No-Till Farming"),
|
|
93
|
+
"Soil Regeneration": f("healthybowl.network.mentors.focusAreas.soilRegeneration", "Soil Regeneration"),
|
|
94
|
+
"Farm Business Plans": f("healthybowl.network.mentors.focusAreas.farmBusinessPlans", "Farm Business Plans"),
|
|
95
|
+
"Direct-to-Consumer Sales": f("healthybowl.network.mentors.focusAreas.directToConsumerSales", "Direct-to-Consumer Sales"),
|
|
96
|
+
"CSA Programs": f("healthybowl.network.mentors.focusAreas.csaPrograms", "CSA Programs"),
|
|
97
|
+
"Organic Certification": f("healthybowl.network.mentors.focusAreas.organicCertification", "Organic Certification"),
|
|
98
|
+
"Transition Planning": f("healthybowl.network.mentors.focusAreas.transitionPlanning", "Transition Planning"),
|
|
99
|
+
"Rotational Grazing": f("healthybowl.network.mentors.focusAreas.rotationalGrazing", "Rotational Grazing"),
|
|
100
|
+
"Animal Welfare": f("healthybowl.network.mentors.focusAreas.animalWelfare", "Animal Welfare"),
|
|
101
|
+
"Drip Irrigation": f("healthybowl.network.mentors.focusAreas.dripIrrigation", "Drip Irrigation"),
|
|
102
|
+
"Water Conservation": f("healthybowl.network.mentors.focusAreas.waterConservation", "Water Conservation")
|
|
92
103
|
}, Re = {
|
|
93
|
-
All:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"Farm Business Plans": p("healthybowl.network.mentors.focusAreas.farmBusinessPlans", "Farm Business Plans"),
|
|
98
|
-
"Direct-to-Consumer Sales": p("healthybowl.network.mentors.focusAreas.directToConsumerSales", "Direct-to-Consumer Sales"),
|
|
99
|
-
"CSA Programs": p("healthybowl.network.mentors.focusAreas.csaPrograms", "CSA Programs"),
|
|
100
|
-
"Organic Certification": p("healthybowl.network.mentors.focusAreas.organicCertification", "Organic Certification"),
|
|
101
|
-
"Transition Planning": p("healthybowl.network.mentors.focusAreas.transitionPlanning", "Transition Planning"),
|
|
102
|
-
"Rotational Grazing": p("healthybowl.network.mentors.focusAreas.rotationalGrazing", "Rotational Grazing"),
|
|
103
|
-
"Animal Welfare": p("healthybowl.network.mentors.focusAreas.animalWelfare", "Animal Welfare"),
|
|
104
|
-
"Drip Irrigation": p("healthybowl.network.mentors.focusAreas.dripIrrigation", "Drip Irrigation"),
|
|
105
|
-
"Water Conservation": p("healthybowl.network.mentors.focusAreas.waterConservation", "Water Conservation")
|
|
106
|
-
}, ze = {
|
|
107
|
-
All: p("healthybowl.common.all", "All"),
|
|
108
|
-
Available: p("healthybowl.network.mentors.availability.available", "Available"),
|
|
109
|
-
Busy: p("healthybowl.network.mentors.availability.busy", "Busy")
|
|
110
|
-
}, [E, Be] = u(""), [D, Ve] = u("All"), [O, k] = u("All"), [A, He] = u("rating"), [Ue, j] = u(!1), [We, Ge] = u(null), [M, Ke] = u(/* @__PURE__ */ new Set()), [qe, N] = u(!1), [P, F] = u(null), [I, L] = u(S), [R, Je] = u(!1), [Ye, z] = u(!1), [B, V] = u(null), [H, U] = u(C), [W, G] = u(!1), [Xe, K] = u(null), Ze = [
|
|
104
|
+
All: f("healthybowl.common.all", "All"),
|
|
105
|
+
Available: f("healthybowl.network.mentors.availability.available", "Available"),
|
|
106
|
+
Busy: f("healthybowl.network.mentors.availability.busy", "Busy")
|
|
107
|
+
}, [O, k] = u(""), [A, j] = u("All"), [M, N] = u("All"), [P, ze] = u("rating"), [Be, F] = u(!1), [Ve, He] = u(null), [I, Ue] = u(/* @__PURE__ */ new Set()), [We, L] = u(!1), [R, Ge] = u(null), [z, B] = u(C), [Ke, qe] = u(!1), [Je, V] = u(!1), [H, U] = u(null), [W, G] = u(w), [Ye, Xe] = u(!1), [Ze, Qe] = u(null), $e = [
|
|
111
108
|
{
|
|
112
109
|
value: "available",
|
|
113
|
-
label:
|
|
110
|
+
label: f("healthybowl.network.mentors.availability.available", "Available")
|
|
114
111
|
},
|
|
115
112
|
{
|
|
116
113
|
value: "busy",
|
|
117
|
-
label:
|
|
114
|
+
label: f("healthybowl.network.mentors.availability.busy", "Busy")
|
|
118
115
|
},
|
|
119
116
|
{
|
|
120
117
|
value: "offline",
|
|
121
|
-
label:
|
|
118
|
+
label: f("healthybowl.network.mentors.availability.offline", "Offline")
|
|
122
119
|
}
|
|
123
|
-
],
|
|
120
|
+
], K = se(null), { toasts: et, toast: q, dismiss: tt } = ie(), nt = De.filter((e) => e.consultantType === "MENTOR"), J = (e, t) => B((n) => ({
|
|
124
121
|
...n,
|
|
125
122
|
[e]: t
|
|
126
|
-
})),
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
},
|
|
123
|
+
})), rt = (e) => {
|
|
124
|
+
B(C), Ge(e);
|
|
125
|
+
}, Y = () => {
|
|
126
|
+
Ge(null), B(C);
|
|
127
|
+
}, X = (e, t) => G((n) => ({
|
|
131
128
|
...n,
|
|
132
129
|
[e]: t
|
|
133
|
-
})),
|
|
134
|
-
|
|
135
|
-
},
|
|
136
|
-
|
|
130
|
+
})), it = () => {
|
|
131
|
+
U(null), G(w), V(!0);
|
|
132
|
+
}, at = (e) => {
|
|
133
|
+
U(e), G({
|
|
137
134
|
name: e.name,
|
|
138
135
|
specialization: e.specialization,
|
|
139
136
|
experience: String(e.experience),
|
|
@@ -145,458 +142,458 @@ var w = () => {
|
|
|
145
142
|
mentoringSince: (e.mentoringSince ?? "").slice(0, 10),
|
|
146
143
|
mentees: String(e.mentees),
|
|
147
144
|
focusAreas: (e.focusAreas ?? []).join(", ")
|
|
148
|
-
}),
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
},
|
|
152
|
-
if (!
|
|
153
|
-
|
|
154
|
-
title:
|
|
155
|
-
description:
|
|
145
|
+
}), V(!0);
|
|
146
|
+
}, Z = () => {
|
|
147
|
+
V(!1), U(null), G(w);
|
|
148
|
+
}, ot = async () => {
|
|
149
|
+
if (!W.name.trim() || !W.specialization.trim() || !W.location.trim()) {
|
|
150
|
+
q({
|
|
151
|
+
title: f("healthybowl.network.mentors.form.toast.missingFields.title", "Missing required fields"),
|
|
152
|
+
description: f("healthybowl.network.mentors.form.toast.missingFields.description", "Name, specialization, and location are required."),
|
|
156
153
|
variant: "warning"
|
|
157
154
|
});
|
|
158
155
|
return;
|
|
159
156
|
}
|
|
160
|
-
let e =
|
|
161
|
-
|
|
157
|
+
let e = W.languages.split(",").map((e) => e.trim()).filter((e) => e.length > 0), t = W.focusAreas.split(",").map((e) => e.trim()).filter((e) => e.length > 0);
|
|
158
|
+
Xe(!0);
|
|
162
159
|
try {
|
|
163
|
-
|
|
164
|
-
id:
|
|
165
|
-
name:
|
|
166
|
-
specialization:
|
|
167
|
-
experience: Number(
|
|
168
|
-
rating: Number(
|
|
169
|
-
location:
|
|
170
|
-
availability:
|
|
171
|
-
hourlyRate: Number(
|
|
160
|
+
H ? (await Ae({
|
|
161
|
+
id: H.id,
|
|
162
|
+
name: W.name.trim(),
|
|
163
|
+
specialization: W.specialization.trim(),
|
|
164
|
+
experience: Number(W.experience) || 0,
|
|
165
|
+
rating: Number(W.rating) || 0,
|
|
166
|
+
location: W.location.trim(),
|
|
167
|
+
availability: W.availability,
|
|
168
|
+
hourlyRate: Number(W.hourlyRate) || 0,
|
|
172
169
|
languages: e,
|
|
173
|
-
mentoringSince:
|
|
174
|
-
mentees: Number(
|
|
170
|
+
mentoringSince: W.mentoringSince || void 0,
|
|
171
|
+
mentees: Number(W.mentees) || 0,
|
|
175
172
|
focusAreas: t
|
|
176
|
-
}),
|
|
177
|
-
title:
|
|
178
|
-
description:
|
|
173
|
+
}), q({
|
|
174
|
+
title: f("healthybowl.network.mentors.form.toast.updated.title", "Mentor updated"),
|
|
175
|
+
description: f("healthybowl.network.mentors.form.toast.updated.description", "{{name}} has been updated.", { name: W.name.trim() }),
|
|
179
176
|
variant: "success"
|
|
180
|
-
})) : (await
|
|
181
|
-
name:
|
|
182
|
-
specialization:
|
|
183
|
-
experience: Number(
|
|
184
|
-
rating: Number(
|
|
185
|
-
location:
|
|
186
|
-
availability:
|
|
187
|
-
hourlyRate: Number(
|
|
177
|
+
})) : (await ke({
|
|
178
|
+
name: W.name.trim(),
|
|
179
|
+
specialization: W.specialization.trim(),
|
|
180
|
+
experience: Number(W.experience) || 0,
|
|
181
|
+
rating: Number(W.rating) || 0,
|
|
182
|
+
location: W.location.trim(),
|
|
183
|
+
availability: W.availability,
|
|
184
|
+
hourlyRate: Number(W.hourlyRate) || 0,
|
|
188
185
|
languages: e,
|
|
189
|
-
mentoringSince:
|
|
190
|
-
mentees: Number(
|
|
186
|
+
mentoringSince: W.mentoringSince || void 0,
|
|
187
|
+
mentees: Number(W.mentees) || 0,
|
|
191
188
|
focusAreas: t
|
|
192
|
-
}),
|
|
193
|
-
title:
|
|
194
|
-
description:
|
|
189
|
+
}), q({
|
|
190
|
+
title: f("healthybowl.network.mentors.form.toast.created.title", "Mentor added"),
|
|
191
|
+
description: f("healthybowl.network.mentors.form.toast.created.description", "{{name}} has been added.", { name: W.name.trim() }),
|
|
195
192
|
variant: "success"
|
|
196
|
-
})),
|
|
193
|
+
})), Z();
|
|
197
194
|
} catch (e) {
|
|
198
|
-
|
|
199
|
-
title:
|
|
200
|
-
description: e instanceof Error ? e.message :
|
|
195
|
+
q({
|
|
196
|
+
title: f("healthybowl.network.mentors.form.toast.saveError.title", "Could not save mentor"),
|
|
197
|
+
description: e instanceof Error ? e.message : f("healthybowl.network.mentors.form.toast.saveError.description", "Failed to save mentor"),
|
|
201
198
|
variant: "error"
|
|
202
199
|
});
|
|
203
200
|
} finally {
|
|
204
|
-
|
|
201
|
+
Xe(!1);
|
|
205
202
|
}
|
|
206
|
-
},
|
|
207
|
-
|
|
203
|
+
}, st = async (e) => {
|
|
204
|
+
Qe(e.id);
|
|
208
205
|
try {
|
|
209
|
-
await
|
|
210
|
-
title:
|
|
211
|
-
description:
|
|
206
|
+
await je(e.id), q({
|
|
207
|
+
title: f("healthybowl.network.mentors.form.toast.deleted.title", "Mentor removed"),
|
|
208
|
+
description: f("healthybowl.network.mentors.form.toast.deleted.description", "{{name}} has been removed.", { name: e.name }),
|
|
212
209
|
variant: "success"
|
|
213
210
|
});
|
|
214
211
|
} catch (e) {
|
|
215
|
-
|
|
216
|
-
title:
|
|
217
|
-
description: e instanceof Error ? e.message :
|
|
212
|
+
q({
|
|
213
|
+
title: f("healthybowl.network.mentors.form.toast.deleteError.title", "Could not remove mentor"),
|
|
214
|
+
description: e instanceof Error ? e.message : f("healthybowl.network.mentors.form.toast.deleteError.description", "Failed to remove mentor"),
|
|
218
215
|
variant: "error"
|
|
219
216
|
});
|
|
220
217
|
} finally {
|
|
221
|
-
|
|
218
|
+
Qe(null);
|
|
222
219
|
}
|
|
223
220
|
};
|
|
224
221
|
oe(() => {
|
|
225
222
|
let e = (e) => {
|
|
226
|
-
|
|
223
|
+
K.current && !K.current.contains(e.target) && F(!1);
|
|
227
224
|
};
|
|
228
225
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
229
226
|
}, []);
|
|
230
|
-
let
|
|
231
|
-
let t = (e.name ?? "").toLowerCase().includes(
|
|
227
|
+
let Q = E.filter((e) => {
|
|
228
|
+
let t = (e.name ?? "").toLowerCase().includes(O.toLowerCase()) || (e.specialization ?? "").toLowerCase().includes(O.toLowerCase()) || (e.focusAreas ?? []).some((e) => e.toLowerCase().includes(O.toLowerCase())), n = A === "All" || (e.focusAreas ?? []).some((e) => e === A), r = M === "All" || e.availability === M.toLowerCase();
|
|
232
229
|
return t && n && r;
|
|
233
230
|
}).sort((e, t) => {
|
|
234
|
-
switch (
|
|
231
|
+
switch (P) {
|
|
235
232
|
case "rating": return t.rating - e.rating;
|
|
236
233
|
case "experience": return t.experience - e.experience;
|
|
237
234
|
case "mentees": return t.mentees - e.mentees;
|
|
238
235
|
case "price-asc": return e.hourlyRate - t.hourlyRate;
|
|
239
236
|
default: return 0;
|
|
240
237
|
}
|
|
241
|
-
}),
|
|
242
|
-
if (
|
|
243
|
-
if (!
|
|
244
|
-
|
|
245
|
-
title:
|
|
246
|
-
description:
|
|
238
|
+
}), ct = E.filter((e) => e.availability === "available").length, lt = E.length > 0 ? Math.round(E.reduce((e, t) => e + t.experience, 0) / E.length) : 0, ut = async () => {
|
|
239
|
+
if (R) {
|
|
240
|
+
if (!z.topic.trim() || !z.requestedDate) {
|
|
241
|
+
q({
|
|
242
|
+
title: f("healthybowl.network.mentors.toast.missingFields.title", "Missing required fields"),
|
|
243
|
+
description: f("healthybowl.network.mentors.toast.missingFields.description", "Topic and preferred date are required."),
|
|
247
244
|
variant: "warning"
|
|
248
245
|
});
|
|
249
246
|
return;
|
|
250
247
|
}
|
|
251
|
-
|
|
248
|
+
qe(!0);
|
|
252
249
|
try {
|
|
253
|
-
await
|
|
250
|
+
await Oe({
|
|
254
251
|
consultantType: "MENTOR",
|
|
255
|
-
consultantId:
|
|
256
|
-
consultantName:
|
|
257
|
-
topic:
|
|
258
|
-
requestedDate:
|
|
259
|
-
mode:
|
|
260
|
-
notes:
|
|
261
|
-
fee:
|
|
262
|
-
}),
|
|
263
|
-
title:
|
|
264
|
-
description:
|
|
252
|
+
consultantId: R.id,
|
|
253
|
+
consultantName: R.name,
|
|
254
|
+
topic: z.topic.trim(),
|
|
255
|
+
requestedDate: z.requestedDate,
|
|
256
|
+
mode: z.mode,
|
|
257
|
+
notes: z.notes.trim() || void 0,
|
|
258
|
+
fee: R.hourlyRate
|
|
259
|
+
}), q({
|
|
260
|
+
title: f("healthybowl.network.mentors.toast.requested.title", "Mentorship requested"),
|
|
261
|
+
description: f("healthybowl.network.mentors.toast.requested.description", "Your request to {{name}} has been sent.", { name: R.name }),
|
|
265
262
|
variant: "success"
|
|
266
|
-
}),
|
|
263
|
+
}), Y();
|
|
267
264
|
} catch (e) {
|
|
268
|
-
|
|
269
|
-
title:
|
|
270
|
-
description: e instanceof Error ? e.message :
|
|
265
|
+
q({
|
|
266
|
+
title: f("healthybowl.network.mentors.toast.requestError.title", "Could not request mentorship"),
|
|
267
|
+
description: e instanceof Error ? e.message : f("healthybowl.network.mentors.toast.requestError.description", "Failed to request mentorship"),
|
|
271
268
|
variant: "error"
|
|
272
269
|
});
|
|
273
270
|
} finally {
|
|
274
|
-
|
|
271
|
+
qe(!1);
|
|
275
272
|
}
|
|
276
273
|
}
|
|
277
|
-
},
|
|
278
|
-
|
|
274
|
+
}, dt = (e) => {
|
|
275
|
+
Ue((t) => {
|
|
279
276
|
let n = new Set(t);
|
|
280
277
|
if (n.has(e)) n.delete(e);
|
|
281
278
|
else {
|
|
282
|
-
if (n.size >= 3) return
|
|
283
|
-
title:
|
|
284
|
-
description:
|
|
279
|
+
if (n.size >= 3) return q({
|
|
280
|
+
title: f("healthybowl.network.mentors.toast.limitReached.title", "Limit Reached"),
|
|
281
|
+
description: f("healthybowl.network.mentors.toast.limitReached.description", "You can compare up to 3 mentors at a time"),
|
|
285
282
|
variant: "warning"
|
|
286
283
|
}), t;
|
|
287
284
|
n.add(e);
|
|
288
285
|
}
|
|
289
286
|
return n;
|
|
290
287
|
});
|
|
291
|
-
},
|
|
292
|
-
if (
|
|
293
|
-
|
|
294
|
-
title:
|
|
295
|
-
description:
|
|
288
|
+
}, ft = () => {
|
|
289
|
+
if (I.size < 2) {
|
|
290
|
+
q({
|
|
291
|
+
title: f("healthybowl.network.mentors.toast.selectMentors.title", "Select Mentors"),
|
|
292
|
+
description: f("healthybowl.network.mentors.toast.selectMentors.description", "Select at least 2 mentors to compare"),
|
|
296
293
|
variant: "warning"
|
|
297
294
|
});
|
|
298
295
|
return;
|
|
299
296
|
}
|
|
300
|
-
|
|
301
|
-
}, $ =
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
-
title:
|
|
304
|
-
description:
|
|
297
|
+
L(!0);
|
|
298
|
+
}, $ = E.filter((e) => I.has(e.id));
|
|
299
|
+
return /* @__PURE__ */ g(a, {
|
|
300
|
+
title: f("healthybowl.network.mentors.title", "Find a Mentor"),
|
|
301
|
+
description: f("healthybowl.network.mentors.description", "Connect with experienced mentors for long-term guidance"),
|
|
305
302
|
purpose: "Pair up with an experienced farmer for ongoing guidance, not just a one-off answer. A good mentor helps you avoid costly mistakes and grow your skills season after season — find and connect with one here.",
|
|
306
|
-
actions: /* @__PURE__ */
|
|
307
|
-
onClick:
|
|
303
|
+
actions: /* @__PURE__ */ g(_, {
|
|
304
|
+
onClick: it,
|
|
308
305
|
children: [
|
|
309
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ h(ve, { className: "h-3.5 w-3.5" }),
|
|
310
307
|
" ",
|
|
311
|
-
|
|
308
|
+
f("healthybowl.network.mentors.actions.addMentor", "Add Mentor")
|
|
312
309
|
]
|
|
313
310
|
}),
|
|
314
311
|
children: [
|
|
315
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ g("div", {
|
|
316
313
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
317
314
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ h(o, {
|
|
319
316
|
hero: !0,
|
|
320
|
-
label:
|
|
321
|
-
value:
|
|
322
|
-
icon: /* @__PURE__ */
|
|
317
|
+
label: f("healthybowl.network.mentors.stats.total", "Total Mentors"),
|
|
318
|
+
value: E.length,
|
|
319
|
+
icon: /* @__PURE__ */ h(p, { className: "h-4 w-4" })
|
|
323
320
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
label:
|
|
326
|
-
value:
|
|
327
|
-
icon: /* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ h(o, {
|
|
322
|
+
label: f("healthybowl.network.mentors.stats.available", "Available"),
|
|
323
|
+
value: ct,
|
|
324
|
+
icon: /* @__PURE__ */ h(Se, { className: "h-4 w-4" })
|
|
328
325
|
}),
|
|
329
|
-
/* @__PURE__ */
|
|
330
|
-
label:
|
|
331
|
-
value:
|
|
332
|
-
icon: /* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ h(o, {
|
|
327
|
+
label: f("healthybowl.network.mentors.stats.yourMentor", "Your Mentor"),
|
|
328
|
+
value: f("healthybowl.network.mentors.stats.none", "None"),
|
|
329
|
+
icon: /* @__PURE__ */ h(d, { className: "h-4 w-4" })
|
|
333
330
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
-
label:
|
|
336
|
-
value:
|
|
337
|
-
icon: /* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ h(o, {
|
|
332
|
+
label: f("healthybowl.network.mentors.stats.avgExperience", "Avg Experience"),
|
|
333
|
+
value: f("healthybowl.network.mentors.stats.years", "{{count}} yrs", { count: lt }),
|
|
334
|
+
icon: /* @__PURE__ */ h(fe, { className: "h-4 w-4" })
|
|
338
335
|
})
|
|
339
336
|
]
|
|
340
337
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
searchValue:
|
|
343
|
-
onSearchChange:
|
|
344
|
-
searchPlaceholder:
|
|
345
|
-
filters: /* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ h(te, {
|
|
339
|
+
searchValue: O,
|
|
340
|
+
onSearchChange: k,
|
|
341
|
+
searchPlaceholder: f("healthybowl.network.mentors.searchPlaceholder", "Search mentors by name, specialty, or focus area..."),
|
|
342
|
+
filters: /* @__PURE__ */ g("div", {
|
|
346
343
|
className: "flex flex-wrap items-center gap-2",
|
|
347
344
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
value:
|
|
350
|
-
onValueChange:
|
|
351
|
-
children: [/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ g(v, {
|
|
346
|
+
value: A,
|
|
347
|
+
onValueChange: j,
|
|
348
|
+
children: [/* @__PURE__ */ h(x, {
|
|
352
349
|
className: "h-8 w-auto",
|
|
353
|
-
children: /* @__PURE__ */
|
|
354
|
-
}), /* @__PURE__ */
|
|
350
|
+
children: /* @__PURE__ */ h(S, {})
|
|
351
|
+
}), /* @__PURE__ */ h(y, { children: we.map((e) => /* @__PURE__ */ h(b, {
|
|
355
352
|
value: e,
|
|
356
|
-
children:
|
|
353
|
+
children: Le[e] ?? e
|
|
357
354
|
}, e)) })]
|
|
358
355
|
}),
|
|
359
|
-
/* @__PURE__ */
|
|
360
|
-
value:
|
|
361
|
-
onValueChange:
|
|
362
|
-
children: [/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ g(v, {
|
|
357
|
+
value: M,
|
|
358
|
+
onValueChange: N,
|
|
359
|
+
children: [/* @__PURE__ */ h(x, {
|
|
363
360
|
className: "h-8 w-auto",
|
|
364
|
-
children: /* @__PURE__ */
|
|
365
|
-
}), /* @__PURE__ */
|
|
361
|
+
children: /* @__PURE__ */ h(S, {})
|
|
362
|
+
}), /* @__PURE__ */ h(y, { children: Te.map((e) => /* @__PURE__ */ h(b, {
|
|
366
363
|
value: e,
|
|
367
|
-
children:
|
|
364
|
+
children: Re[e] ?? e
|
|
368
365
|
}, e)) })]
|
|
369
366
|
}),
|
|
370
|
-
/* @__PURE__ */
|
|
371
|
-
ref:
|
|
367
|
+
/* @__PURE__ */ g("div", {
|
|
368
|
+
ref: K,
|
|
372
369
|
className: "relative",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
370
|
+
children: [/* @__PURE__ */ g(_, {
|
|
374
371
|
variant: "outline",
|
|
375
372
|
size: "sm",
|
|
376
|
-
onClick: () =>
|
|
373
|
+
onClick: () => F((e) => !e),
|
|
377
374
|
children: [
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
|
|
380
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ h(le, { className: "h-3.5 w-3.5" }),
|
|
376
|
+
D[P],
|
|
377
|
+
/* @__PURE__ */ h(de, { className: "h-3 w-3" })
|
|
381
378
|
]
|
|
382
|
-
}),
|
|
379
|
+
}), Be && /* @__PURE__ */ h("div", {
|
|
383
380
|
className: "absolute right-0 z-10 mt-1 w-44 rounded-md border border-border-subtle bg-bg-surface py-1 shadow-lg",
|
|
384
|
-
children: Object.keys(
|
|
381
|
+
children: Object.keys(D).map((t) => /* @__PURE__ */ h(_, {
|
|
385
382
|
variant: "ghost",
|
|
386
383
|
size: "sm",
|
|
387
384
|
onClick: () => {
|
|
388
|
-
|
|
385
|
+
ze(t), F(!1);
|
|
389
386
|
},
|
|
390
|
-
className: e("w-full justify-start rounded-none",
|
|
391
|
-
children:
|
|
387
|
+
className: e("w-full justify-start rounded-none", P === t ? "font-semibold text-primary" : "text-text-primary"),
|
|
388
|
+
children: D[t]
|
|
392
389
|
}, t))
|
|
393
390
|
})]
|
|
394
391
|
})
|
|
395
392
|
]
|
|
396
393
|
}),
|
|
397
|
-
actions: /* @__PURE__ */
|
|
394
|
+
actions: /* @__PURE__ */ g(_, {
|
|
398
395
|
variant: "outline",
|
|
399
396
|
size: "sm",
|
|
400
|
-
onClick:
|
|
397
|
+
onClick: ft,
|
|
401
398
|
children: [
|
|
402
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ h(me, { className: "h-3.5 w-3.5" }),
|
|
403
400
|
" ",
|
|
404
|
-
|
|
401
|
+
f("healthybowl.network.mentors.actions.compare", "Compare Mentors")
|
|
405
402
|
]
|
|
406
403
|
})
|
|
407
404
|
}),
|
|
408
|
-
|
|
405
|
+
Q.length > 0 ? /* @__PURE__ */ h("div", {
|
|
409
406
|
className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
410
|
-
children:
|
|
411
|
-
let i =
|
|
412
|
-
return /* @__PURE__ */
|
|
407
|
+
children: Q.map((r) => {
|
|
408
|
+
let i = Ve === r.id, a = r.rating >= 4.8;
|
|
409
|
+
return /* @__PURE__ */ g("div", {
|
|
413
410
|
className: e("rounded-lg border bg-bg-surface p-5 transition-colors hover:border-primary/20", a ? "border-warning" : "border-border-subtle"),
|
|
414
411
|
children: [
|
|
415
|
-
a && /* @__PURE__ */
|
|
412
|
+
a && /* @__PURE__ */ g("div", {
|
|
416
413
|
className: "mb-2 flex items-center gap-1",
|
|
417
|
-
children: [/* @__PURE__ */
|
|
414
|
+
children: [/* @__PURE__ */ h(ue, { className: "h-3.5 w-3.5 text-warning" }), /* @__PURE__ */ h("span", {
|
|
418
415
|
className: "text-xs font-semibold text-warning",
|
|
419
|
-
children:
|
|
416
|
+
children: f("healthybowl.network.mentors.card.topRated", "Top Rated")
|
|
420
417
|
})]
|
|
421
418
|
}),
|
|
422
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ g("div", {
|
|
423
420
|
className: "flex items-start gap-3",
|
|
424
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ h("div", {
|
|
425
422
|
className: "flex h-12 w-12 items-center justify-center rounded-full bg-action-primary-bg/10 text-sm font-bold text-primary",
|
|
426
423
|
children: (r.name ?? "").split(" ").map((e) => e[0]).join("")
|
|
427
|
-
}), /* @__PURE__ */
|
|
424
|
+
}), /* @__PURE__ */ g("div", {
|
|
428
425
|
className: "flex-1 min-w-0",
|
|
429
426
|
children: [
|
|
430
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ h("h3", {
|
|
431
428
|
className: "text-sm font-semibold text-text-primary",
|
|
432
429
|
children: r.name
|
|
433
430
|
}),
|
|
434
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ h("p", {
|
|
435
432
|
className: "text-xs text-text-secondary",
|
|
436
433
|
children: r.specialization
|
|
437
434
|
}),
|
|
438
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ h(s, {
|
|
439
436
|
label: r.availability,
|
|
440
|
-
variant:
|
|
437
|
+
variant: T(r.availability),
|
|
441
438
|
dot: !0,
|
|
442
439
|
className: "mt-1"
|
|
443
440
|
})
|
|
444
441
|
]
|
|
445
442
|
})]
|
|
446
443
|
}),
|
|
447
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ g("div", {
|
|
448
445
|
className: "mt-3 space-y-1.5 text-xs text-text-secondary",
|
|
449
446
|
children: [
|
|
450
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ g("p", {
|
|
451
448
|
className: "flex items-center gap-1.5",
|
|
452
449
|
children: [
|
|
453
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ h(fe, { className: "h-3 w-3" }),
|
|
454
451
|
" ",
|
|
455
|
-
|
|
452
|
+
f("healthybowl.network.mentors.card.experience", "{{count}} years exp", { count: r.experience }),
|
|
456
453
|
" ",
|
|
457
454
|
"·",
|
|
458
455
|
" ",
|
|
459
|
-
|
|
456
|
+
f("healthybowl.network.mentors.card.mentoringSince", "Mentoring since {{date}}", { date: n(r.mentoringSince) })
|
|
460
457
|
]
|
|
461
458
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ g("p", {
|
|
463
460
|
className: "flex items-center gap-1.5",
|
|
464
461
|
children: [
|
|
465
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ h(xe, { className: "h-3 w-3" }),
|
|
466
463
|
" ",
|
|
467
|
-
|
|
464
|
+
f("healthybowl.network.mentors.card.activeMentees", "{{count}} active mentees", { count: r.mentees })
|
|
468
465
|
]
|
|
469
466
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ g("p", {
|
|
471
468
|
className: "flex items-center gap-1.5",
|
|
472
469
|
children: [
|
|
473
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ h(ge, { className: "h-3 w-3" }),
|
|
474
471
|
" ",
|
|
475
472
|
r.location
|
|
476
473
|
]
|
|
477
474
|
}),
|
|
478
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ g("p", {
|
|
479
476
|
className: "flex items-center gap-1.5",
|
|
480
477
|
children: [
|
|
481
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ h(he, { className: "h-3 w-3" }),
|
|
482
479
|
" ",
|
|
483
480
|
(r.languages ?? []).join(", ")
|
|
484
481
|
]
|
|
485
482
|
})
|
|
486
483
|
]
|
|
487
484
|
}),
|
|
488
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ g("div", {
|
|
489
486
|
className: "mt-3 flex items-center gap-1",
|
|
490
487
|
children: [
|
|
491
|
-
|
|
492
|
-
/* @__PURE__ */
|
|
488
|
+
Ee(r.rating),
|
|
489
|
+
/* @__PURE__ */ h("span", {
|
|
493
490
|
className: "ml-1 text-xs font-medium text-text-primary",
|
|
494
491
|
children: r.rating
|
|
495
492
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ h("span", {
|
|
497
494
|
className: "text-xs text-text-secondary",
|
|
498
|
-
children:
|
|
495
|
+
children: f("healthybowl.network.mentors.card.reviews", "({{count}} reviews)", { count: r.reviews })
|
|
499
496
|
})
|
|
500
497
|
]
|
|
501
498
|
}),
|
|
502
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ h("div", {
|
|
503
500
|
className: "mt-3 flex flex-wrap gap-1",
|
|
504
|
-
children: (r.focusAreas ?? []).map((e) => /* @__PURE__ */
|
|
501
|
+
children: (r.focusAreas ?? []).map((e) => /* @__PURE__ */ g("span", {
|
|
505
502
|
className: "flex items-center gap-1 rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
|
|
506
503
|
children: [
|
|
507
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ h(ye, { className: "h-2.5 w-2.5" }),
|
|
508
505
|
" ",
|
|
509
506
|
e
|
|
510
507
|
]
|
|
511
508
|
}, e))
|
|
512
509
|
}),
|
|
513
|
-
i && /* @__PURE__ */
|
|
510
|
+
i && /* @__PURE__ */ g("div", {
|
|
514
511
|
className: "mt-3 rounded-md border border-border-subtle bg-bg-sunken/50 p-3",
|
|
515
512
|
children: [
|
|
516
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ h("h4", {
|
|
517
514
|
className: "text-xs font-semibold text-text-primary",
|
|
518
|
-
children:
|
|
515
|
+
children: f("healthybowl.network.mentors.detail.philosophy.heading", "Mentoring Philosophy")
|
|
519
516
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ h("p", {
|
|
521
518
|
className: "mt-1 text-xs text-text-secondary",
|
|
522
|
-
children:
|
|
519
|
+
children: f("healthybowl.network.mentors.detail.philosophy.body", "{{name}} believes in hands-on, practical mentoring that empowers farmers to make confident decisions. With a focus on {{focusArea}}, {{firstName}} combines field experience with modern techniques to guide mentees toward sustainable success.", {
|
|
523
520
|
name: r.name,
|
|
524
521
|
focusArea: r.focusAreas[0]?.toLowerCase(),
|
|
525
522
|
firstName: (r.name ?? "").split(" ")[0]
|
|
526
523
|
})
|
|
527
524
|
}),
|
|
528
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ g("div", {
|
|
529
526
|
className: "mt-2 grid grid-cols-2 gap-2 text-xs",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ g("div", {
|
|
531
528
|
className: "rounded bg-bg-surface p-2",
|
|
532
|
-
children: [/* @__PURE__ */
|
|
529
|
+
children: [/* @__PURE__ */ h("p", {
|
|
533
530
|
className: "font-medium text-text-primary",
|
|
534
|
-
children:
|
|
535
|
-
}), /* @__PURE__ */
|
|
531
|
+
children: f("healthybowl.network.mentors.detail.successStories", "Success Stories")
|
|
532
|
+
}), /* @__PURE__ */ g("p", {
|
|
536
533
|
className: "text-text-secondary",
|
|
537
534
|
children: [Math.floor(r.mentees * 1.5), "+"]
|
|
538
535
|
})]
|
|
539
|
-
}), /* @__PURE__ */
|
|
536
|
+
}), /* @__PURE__ */ g("div", {
|
|
540
537
|
className: "rounded bg-bg-surface p-2",
|
|
541
|
-
children: [/* @__PURE__ */
|
|
538
|
+
children: [/* @__PURE__ */ h("p", {
|
|
542
539
|
className: "font-medium text-text-primary",
|
|
543
|
-
children:
|
|
544
|
-
}), /* @__PURE__ */
|
|
540
|
+
children: f("healthybowl.network.mentors.detail.allFocusAreas", "All Focus Areas")
|
|
541
|
+
}), /* @__PURE__ */ h("p", {
|
|
545
542
|
className: "text-text-secondary",
|
|
546
|
-
children:
|
|
543
|
+
children: f("healthybowl.network.mentors.detail.areasCount", "{{count}} areas", { count: (r.focusAreas ?? []).length })
|
|
547
544
|
})]
|
|
548
545
|
})]
|
|
549
546
|
})
|
|
550
547
|
]
|
|
551
548
|
}),
|
|
552
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ g("div", {
|
|
553
550
|
className: "mt-3 flex items-center justify-between border-t border-border-subtle pt-3",
|
|
554
|
-
children: [/* @__PURE__ */
|
|
551
|
+
children: [/* @__PURE__ */ g("div", {
|
|
555
552
|
className: "flex items-center gap-2",
|
|
556
|
-
children: [/* @__PURE__ */
|
|
553
|
+
children: [/* @__PURE__ */ h("span", {
|
|
557
554
|
className: "text-sm font-medium text-text-primary",
|
|
558
|
-
children:
|
|
559
|
-
}), /* @__PURE__ */
|
|
555
|
+
children: f("healthybowl.network.mentors.card.perHour", "{{amount}}/hr", { amount: t(r.hourlyRate, "INR") })
|
|
556
|
+
}), /* @__PURE__ */ g("label", {
|
|
560
557
|
className: "flex items-center gap-1 text-xs text-text-secondary cursor-pointer",
|
|
561
|
-
children: [/* @__PURE__ */
|
|
558
|
+
children: [/* @__PURE__ */ h("input", {
|
|
562
559
|
type: "checkbox",
|
|
563
|
-
checked:
|
|
564
|
-
onChange: () =>
|
|
560
|
+
checked: I.has(r.id),
|
|
561
|
+
onChange: () => dt(r.id),
|
|
565
562
|
className: "h-3.5 w-3.5 rounded border-border-subtle"
|
|
566
|
-
}),
|
|
563
|
+
}), f("healthybowl.network.mentors.card.compareLabel", "Compare")]
|
|
567
564
|
})]
|
|
568
|
-
}), /* @__PURE__ */
|
|
565
|
+
}), /* @__PURE__ */ g("div", {
|
|
569
566
|
className: "flex items-center gap-2",
|
|
570
567
|
children: [
|
|
571
|
-
/* @__PURE__ */
|
|
568
|
+
/* @__PURE__ */ h(_, {
|
|
572
569
|
variant: "outline",
|
|
573
570
|
size: "icon-sm",
|
|
574
|
-
onClick: () =>
|
|
575
|
-
"aria-label":
|
|
576
|
-
children: /* @__PURE__ */
|
|
571
|
+
onClick: () => He(i ? null : r.id),
|
|
572
|
+
"aria-label": f("healthybowl.network.mentors.actions.viewProfile", "View profile"),
|
|
573
|
+
children: /* @__PURE__ */ h(pe, { className: "h-3.5 w-3.5" })
|
|
577
574
|
}),
|
|
578
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ h(_, {
|
|
579
576
|
variant: "outline",
|
|
580
577
|
size: "icon-sm",
|
|
581
|
-
onClick: () =>
|
|
582
|
-
"aria-label":
|
|
583
|
-
children: /* @__PURE__ */
|
|
578
|
+
onClick: () => at(r),
|
|
579
|
+
"aria-label": f("healthybowl.network.mentors.actions.editMentor", "Edit mentor"),
|
|
580
|
+
children: /* @__PURE__ */ h(_e, { className: "h-3.5 w-3.5" })
|
|
584
581
|
}),
|
|
585
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ h(_, {
|
|
586
583
|
variant: "ghost",
|
|
587
584
|
size: "icon-sm",
|
|
588
|
-
onClick: () =>
|
|
589
|
-
disabled:
|
|
590
|
-
"aria-label":
|
|
585
|
+
onClick: () => st(r),
|
|
586
|
+
disabled: Ze === r.id,
|
|
587
|
+
"aria-label": f("healthybowl.network.mentors.actions.deleteMentor", "Delete mentor"),
|
|
591
588
|
className: "text-status-error-text hover:bg-status-error-bg/10 hover:text-status-error-text",
|
|
592
|
-
children: /* @__PURE__ */
|
|
589
|
+
children: /* @__PURE__ */ h(be, { className: "h-3.5 w-3.5" })
|
|
593
590
|
}),
|
|
594
|
-
/* @__PURE__ */
|
|
595
|
-
onClick: () =>
|
|
591
|
+
/* @__PURE__ */ g(_, {
|
|
592
|
+
onClick: () => rt(r),
|
|
596
593
|
children: [
|
|
597
|
-
/* @__PURE__ */
|
|
594
|
+
/* @__PURE__ */ h(p, { className: "h-3.5 w-3.5" }),
|
|
598
595
|
" ",
|
|
599
|
-
|
|
596
|
+
f("healthybowl.network.mentors.card.request", "Request")
|
|
600
597
|
]
|
|
601
598
|
})
|
|
602
599
|
]
|
|
@@ -605,239 +602,240 @@ var w = () => {
|
|
|
605
602
|
]
|
|
606
603
|
}, r.id);
|
|
607
604
|
})
|
|
608
|
-
}) :
|
|
605
|
+
}) : E.length === 0 ? Ne.network ? /* @__PURE__ */ h(re, {}) : Me.network ? /* @__PURE__ */ h(ee, { onRetry: Pe }) : /* @__PURE__ */ h(c, {
|
|
609
606
|
illustration: "empty-people",
|
|
610
|
-
title:
|
|
611
|
-
description:
|
|
612
|
-
action: /* @__PURE__ */
|
|
613
|
-
onClick:
|
|
607
|
+
title: f("healthybowl.network.mentors.emptyState.noMentors.title", "No mentors available yet"),
|
|
608
|
+
description: f("healthybowl.network.mentors.emptyState.noMentors.description", "There are no mentors in your network yet. Add one to get started."),
|
|
609
|
+
action: /* @__PURE__ */ g(_, {
|
|
610
|
+
onClick: it,
|
|
614
611
|
children: [
|
|
615
|
-
/* @__PURE__ */
|
|
612
|
+
/* @__PURE__ */ h(ve, { className: "h-3.5 w-3.5" }),
|
|
616
613
|
" ",
|
|
617
|
-
|
|
614
|
+
f("healthybowl.network.mentors.actions.addMentor", "Add Mentor")
|
|
618
615
|
]
|
|
619
616
|
})
|
|
620
|
-
}) : /* @__PURE__ */
|
|
617
|
+
}) : /* @__PURE__ */ h(c, {
|
|
621
618
|
illustration: "empty-search",
|
|
622
|
-
title:
|
|
623
|
-
description:
|
|
624
|
-
action: /* @__PURE__ */
|
|
619
|
+
title: f("healthybowl.network.mentors.emptyState.noResults.title", "No mentors found"),
|
|
620
|
+
description: f("healthybowl.network.mentors.emptyState.noResults.description", "No mentors match your current filters. Try adjusting your search criteria."),
|
|
621
|
+
action: /* @__PURE__ */ h(_, {
|
|
625
622
|
onClick: () => {
|
|
626
|
-
|
|
623
|
+
k(""), j("All"), N("All");
|
|
627
624
|
},
|
|
628
|
-
children:
|
|
625
|
+
children: f("healthybowl.network.mentors.emptyState.noResults.clearFilters", "Clear Filters")
|
|
629
626
|
})
|
|
630
627
|
}),
|
|
631
|
-
|
|
628
|
+
nt.length > 0 && /* @__PURE__ */ g("div", {
|
|
632
629
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
633
|
-
children: [/* @__PURE__ */
|
|
630
|
+
children: [/* @__PURE__ */ g("h3", {
|
|
634
631
|
className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
|
|
635
632
|
children: [
|
|
636
|
-
/* @__PURE__ */
|
|
633
|
+
/* @__PURE__ */ h(d, { className: "h-4 w-4" }),
|
|
637
634
|
" ",
|
|
638
|
-
|
|
635
|
+
f("healthybowl.network.mentors.requests.heading", "My Mentorship Requests")
|
|
639
636
|
]
|
|
640
|
-
}), /* @__PURE__ */
|
|
637
|
+
}), /* @__PURE__ */ h("ul", {
|
|
641
638
|
className: "mt-3 divide-y divide-border",
|
|
642
|
-
children:
|
|
639
|
+
children: nt.map((e) => /* @__PURE__ */ g("li", {
|
|
643
640
|
className: "flex items-center justify-between gap-3 py-2.5",
|
|
644
|
-
children: [/* @__PURE__ */
|
|
641
|
+
children: [/* @__PURE__ */ g("div", {
|
|
645
642
|
className: "min-w-0",
|
|
646
|
-
children: [/* @__PURE__ */
|
|
643
|
+
children: [/* @__PURE__ */ h("p", {
|
|
647
644
|
className: "truncate text-sm font-medium text-text-primary",
|
|
648
645
|
children: e.topic
|
|
649
|
-
}), /* @__PURE__ */
|
|
646
|
+
}), /* @__PURE__ */ g("p", {
|
|
650
647
|
className: "text-xs text-text-secondary",
|
|
651
648
|
children: [
|
|
652
649
|
e.consultantName,
|
|
653
650
|
" · ",
|
|
654
651
|
r(e.requestedDate),
|
|
655
|
-
" ·
|
|
656
|
-
|
|
652
|
+
" ·",
|
|
653
|
+
" ",
|
|
654
|
+
Ie[e.mode] ?? e.mode
|
|
657
655
|
]
|
|
658
656
|
})]
|
|
659
|
-
}), /* @__PURE__ */
|
|
657
|
+
}), /* @__PURE__ */ h(s, {
|
|
660
658
|
label: e.status,
|
|
661
|
-
variant:
|
|
659
|
+
variant: Ce(e.status),
|
|
662
660
|
dot: !0
|
|
663
661
|
})]
|
|
664
662
|
}, e.id))
|
|
665
663
|
})]
|
|
666
664
|
}),
|
|
667
|
-
/* @__PURE__ */
|
|
668
|
-
open:
|
|
669
|
-
onClose:
|
|
670
|
-
title:
|
|
671
|
-
description:
|
|
672
|
-
footer: /* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ h(l, {
|
|
666
|
+
open: R !== null,
|
|
667
|
+
onClose: Y,
|
|
668
|
+
title: f("healthybowl.network.mentors.booking.title", "Request Mentorship"),
|
|
669
|
+
description: R ? f("healthybowl.network.mentors.booking.description", "Request guidance from {{name}}", { name: R.name }) : void 0,
|
|
670
|
+
footer: /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(_, {
|
|
673
671
|
variant: "outline",
|
|
674
|
-
onClick:
|
|
675
|
-
children:
|
|
676
|
-
}), /* @__PURE__ */
|
|
677
|
-
onClick:
|
|
678
|
-
disabled:
|
|
679
|
-
children:
|
|
672
|
+
onClick: Y,
|
|
673
|
+
children: f("healthybowl.common.cancel", "Cancel")
|
|
674
|
+
}), /* @__PURE__ */ h(_, {
|
|
675
|
+
onClick: ut,
|
|
676
|
+
disabled: Ke,
|
|
677
|
+
children: Ke ? f("healthybowl.network.mentors.booking.sending", "Sending…") : f("healthybowl.network.mentors.booking.send", "Send Request")
|
|
680
678
|
})] }),
|
|
681
|
-
children: /* @__PURE__ */
|
|
679
|
+
children: /* @__PURE__ */ g("div", {
|
|
682
680
|
className: "space-y-4",
|
|
683
681
|
children: [
|
|
684
|
-
/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
685
683
|
htmlFor: "mentor-booking-topic",
|
|
686
684
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
687
|
-
children:
|
|
688
|
-
}), /* @__PURE__ */
|
|
685
|
+
children: f("healthybowl.network.mentors.booking.fields.topic.label", "Topic")
|
|
686
|
+
}), /* @__PURE__ */ h("input", {
|
|
689
687
|
id: "mentor-booking-topic",
|
|
690
688
|
type: "text",
|
|
691
|
-
value:
|
|
692
|
-
onChange: (e) =>
|
|
689
|
+
value: z.topic,
|
|
690
|
+
onChange: (e) => J("topic", e.target.value),
|
|
693
691
|
maxLength: 200,
|
|
694
|
-
placeholder:
|
|
692
|
+
placeholder: f("healthybowl.network.mentors.booking.fields.topic.placeholder", "What would you like guidance on?"),
|
|
695
693
|
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)]"
|
|
696
694
|
})] }),
|
|
697
|
-
/* @__PURE__ */
|
|
695
|
+
/* @__PURE__ */ g("div", {
|
|
698
696
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
699
|
-
children: [/* @__PURE__ */
|
|
697
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
700
698
|
htmlFor: "mentor-booking-date",
|
|
701
699
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
702
|
-
children:
|
|
703
|
-
}), /* @__PURE__ */
|
|
700
|
+
children: f("healthybowl.network.mentors.booking.fields.date.label", "Preferred date")
|
|
701
|
+
}), /* @__PURE__ */ h("input", {
|
|
704
702
|
id: "mentor-booking-date",
|
|
705
703
|
type: "date",
|
|
706
|
-
value:
|
|
707
|
-
onChange: (e) =>
|
|
704
|
+
value: z.requestedDate,
|
|
705
|
+
onChange: (e) => J("requestedDate", e.target.value),
|
|
708
706
|
min: i(),
|
|
709
707
|
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)]"
|
|
710
|
-
})] }), /* @__PURE__ */
|
|
708
|
+
})] }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
711
709
|
htmlFor: "mentor-booking-mode",
|
|
712
710
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
713
|
-
children:
|
|
714
|
-
}), /* @__PURE__ */
|
|
715
|
-
value:
|
|
716
|
-
onValueChange: (e) =>
|
|
717
|
-
children: [/* @__PURE__ */
|
|
711
|
+
children: f("healthybowl.network.mentors.booking.fields.mode.label", "Mode")
|
|
712
|
+
}), /* @__PURE__ */ g(v, {
|
|
713
|
+
value: z.mode,
|
|
714
|
+
onValueChange: (e) => J("mode", e),
|
|
715
|
+
children: [/* @__PURE__ */ h(x, {
|
|
718
716
|
id: "mentor-booking-mode",
|
|
719
717
|
className: "w-full",
|
|
720
|
-
children: /* @__PURE__ */
|
|
721
|
-
}), /* @__PURE__ */
|
|
718
|
+
children: /* @__PURE__ */ h(S, {})
|
|
719
|
+
}), /* @__PURE__ */ h(y, { children: Fe.map((e) => /* @__PURE__ */ h(b, {
|
|
722
720
|
value: e.value,
|
|
723
721
|
children: e.label
|
|
724
722
|
}, e.value)) })]
|
|
725
723
|
})] })]
|
|
726
724
|
}),
|
|
727
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
728
726
|
htmlFor: "mentor-booking-notes",
|
|
729
727
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
730
|
-
children:
|
|
731
|
-
}), /* @__PURE__ */
|
|
728
|
+
children: f("healthybowl.network.mentors.booking.fields.notes.label", "Notes (optional)")
|
|
729
|
+
}), /* @__PURE__ */ h("textarea", {
|
|
732
730
|
id: "mentor-booking-notes",
|
|
733
|
-
value:
|
|
734
|
-
onChange: (e) =>
|
|
731
|
+
value: z.notes,
|
|
732
|
+
onChange: (e) => J("notes", e.target.value),
|
|
735
733
|
rows: 3,
|
|
736
734
|
maxLength: 1e3,
|
|
737
|
-
placeholder:
|
|
735
|
+
placeholder: f("healthybowl.network.mentors.booking.fields.notes.placeholder", "Any additional context for the mentor"),
|
|
738
736
|
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)]"
|
|
739
737
|
})] }),
|
|
740
|
-
|
|
738
|
+
R && /* @__PURE__ */ g("p", {
|
|
741
739
|
className: "text-xs text-text-secondary",
|
|
742
740
|
children: [
|
|
743
|
-
|
|
741
|
+
f("healthybowl.network.mentors.booking.estimatedFee", "Estimated fee:"),
|
|
744
742
|
" ",
|
|
745
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ h("span", {
|
|
746
744
|
className: "font-medium text-text-primary",
|
|
747
|
-
children:
|
|
745
|
+
children: f("healthybowl.network.mentors.card.perHour", "{{amount}}/hr", { amount: t(R.hourlyRate, "INR") })
|
|
748
746
|
})
|
|
749
747
|
]
|
|
750
748
|
})
|
|
751
749
|
]
|
|
752
750
|
})
|
|
753
751
|
}),
|
|
754
|
-
/* @__PURE__ */
|
|
755
|
-
open:
|
|
756
|
-
onClose: () =>
|
|
757
|
-
title:
|
|
758
|
-
description:
|
|
752
|
+
/* @__PURE__ */ h(l, {
|
|
753
|
+
open: We,
|
|
754
|
+
onClose: () => L(!1),
|
|
755
|
+
title: f("healthybowl.network.mentors.compare.title", "Compare Mentors"),
|
|
756
|
+
description: f("healthybowl.network.mentors.compare.description", "Comparing {{count}} mentors", { count: $.length }),
|
|
759
757
|
size: "lg",
|
|
760
|
-
footer: /* @__PURE__ */
|
|
758
|
+
footer: /* @__PURE__ */ h(_, {
|
|
761
759
|
variant: "outline",
|
|
762
|
-
onClick: () =>
|
|
763
|
-
children:
|
|
760
|
+
onClick: () => L(!1),
|
|
761
|
+
children: f("healthybowl.common.close", "Close")
|
|
764
762
|
}),
|
|
765
|
-
children: $.length > 0 && /* @__PURE__ */
|
|
763
|
+
children: $.length > 0 && /* @__PURE__ */ h("div", {
|
|
766
764
|
className: "overflow-x-auto",
|
|
767
|
-
children: /* @__PURE__ */
|
|
765
|
+
children: /* @__PURE__ */ g("table", {
|
|
768
766
|
className: "w-full text-xs",
|
|
769
|
-
children: [/* @__PURE__ */
|
|
767
|
+
children: [/* @__PURE__ */ h("thead", { children: /* @__PURE__ */ g("tr", {
|
|
770
768
|
className: "border-b border-border-subtle",
|
|
771
|
-
children: [/* @__PURE__ */
|
|
769
|
+
children: [/* @__PURE__ */ h("th", {
|
|
772
770
|
className: "py-2 pr-3 text-left font-medium text-text-secondary",
|
|
773
|
-
children:
|
|
774
|
-
}), $.map((e) => /* @__PURE__ */
|
|
771
|
+
children: f("healthybowl.network.mentors.compare.table.attribute", "Attribute")
|
|
772
|
+
}), $.map((e) => /* @__PURE__ */ h("th", {
|
|
775
773
|
className: "py-2 px-3 text-left font-medium text-text-primary",
|
|
776
774
|
children: e.name
|
|
777
775
|
}, e.id))]
|
|
778
|
-
}) }), /* @__PURE__ */
|
|
776
|
+
}) }), /* @__PURE__ */ g("tbody", {
|
|
779
777
|
className: "divide-y divide-border",
|
|
780
778
|
children: [
|
|
781
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ g("tr", { children: [/* @__PURE__ */ h("td", {
|
|
782
780
|
className: "py-2 pr-3 text-text-secondary",
|
|
783
|
-
children:
|
|
784
|
-
}), $.map((e) => /* @__PURE__ */
|
|
781
|
+
children: f("healthybowl.network.mentors.compare.rows.specialization", "Specialization")
|
|
782
|
+
}), $.map((e) => /* @__PURE__ */ h("td", {
|
|
785
783
|
className: "py-2 px-3 text-text-primary",
|
|
786
784
|
children: e.specialization
|
|
787
785
|
}, e.id))] }),
|
|
788
|
-
/* @__PURE__ */
|
|
786
|
+
/* @__PURE__ */ g("tr", { children: [/* @__PURE__ */ h("td", {
|
|
789
787
|
className: "py-2 pr-3 text-text-secondary",
|
|
790
|
-
children:
|
|
791
|
-
}), $.map((e) => /* @__PURE__ */
|
|
788
|
+
children: f("healthybowl.network.mentors.compare.rows.experience", "Experience")
|
|
789
|
+
}), $.map((e) => /* @__PURE__ */ h("td", {
|
|
792
790
|
className: "py-2 px-3 text-text-primary",
|
|
793
|
-
children:
|
|
791
|
+
children: f("healthybowl.network.mentors.compare.values.years", "{{count}} years", { count: e.experience })
|
|
794
792
|
}, e.id))] }),
|
|
795
|
-
/* @__PURE__ */
|
|
793
|
+
/* @__PURE__ */ g("tr", { children: [/* @__PURE__ */ h("td", {
|
|
796
794
|
className: "py-2 pr-3 text-text-secondary",
|
|
797
|
-
children:
|
|
798
|
-
}), $.map((e) => /* @__PURE__ */
|
|
795
|
+
children: f("healthybowl.network.mentors.compare.rows.rating", "Rating")
|
|
796
|
+
}), $.map((e) => /* @__PURE__ */ h("td", {
|
|
799
797
|
className: "py-2 px-3 text-text-primary",
|
|
800
|
-
children:
|
|
798
|
+
children: f("healthybowl.network.mentors.compare.values.rating", "{{rating}} ({{count}} reviews)", {
|
|
801
799
|
rating: e.rating,
|
|
802
800
|
count: e.reviews
|
|
803
801
|
})
|
|
804
802
|
}, e.id))] }),
|
|
805
|
-
/* @__PURE__ */
|
|
803
|
+
/* @__PURE__ */ g("tr", { children: [/* @__PURE__ */ h("td", {
|
|
806
804
|
className: "py-2 pr-3 text-text-secondary",
|
|
807
|
-
children:
|
|
808
|
-
}), $.map((e) => /* @__PURE__ */
|
|
805
|
+
children: f("healthybowl.network.mentors.compare.rows.hourlyRate", "Hourly Rate")
|
|
806
|
+
}), $.map((e) => /* @__PURE__ */ h("td", {
|
|
809
807
|
className: "py-2 px-3 text-text-primary",
|
|
810
|
-
children:
|
|
808
|
+
children: f("healthybowl.network.mentors.card.perHour", "{{amount}}/hr", { amount: t(e.hourlyRate, "INR") })
|
|
811
809
|
}, e.id))] }),
|
|
812
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ g("tr", { children: [/* @__PURE__ */ h("td", {
|
|
813
811
|
className: "py-2 pr-3 text-text-secondary",
|
|
814
|
-
children:
|
|
815
|
-
}), $.map((e) => /* @__PURE__ */
|
|
812
|
+
children: f("healthybowl.network.mentors.compare.rows.mentees", "Mentees")
|
|
813
|
+
}), $.map((e) => /* @__PURE__ */ h("td", {
|
|
816
814
|
className: "py-2 px-3 text-text-primary",
|
|
817
|
-
children:
|
|
815
|
+
children: f("healthybowl.network.mentors.compare.values.active", "{{count}} active", { count: e.mentees })
|
|
818
816
|
}, e.id))] }),
|
|
819
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ g("tr", { children: [/* @__PURE__ */ h("td", {
|
|
820
818
|
className: "py-2 pr-3 text-text-secondary",
|
|
821
|
-
children:
|
|
822
|
-
}), $.map((e) => /* @__PURE__ */
|
|
819
|
+
children: f("healthybowl.network.mentors.compare.rows.availability", "Availability")
|
|
820
|
+
}), $.map((e) => /* @__PURE__ */ h("td", {
|
|
823
821
|
className: "py-2 px-3",
|
|
824
|
-
children: /* @__PURE__ */
|
|
822
|
+
children: /* @__PURE__ */ h(s, {
|
|
825
823
|
label: e.availability,
|
|
826
|
-
variant:
|
|
824
|
+
variant: T(e.availability),
|
|
827
825
|
dot: !0
|
|
828
826
|
})
|
|
829
827
|
}, e.id))] }),
|
|
830
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ g("tr", { children: [/* @__PURE__ */ h("td", {
|
|
831
829
|
className: "py-2 pr-3 text-text-secondary",
|
|
832
|
-
children:
|
|
833
|
-
}), $.map((e) => /* @__PURE__ */
|
|
830
|
+
children: f("healthybowl.network.mentors.compare.rows.focusAreas", "Focus Areas")
|
|
831
|
+
}), $.map((e) => /* @__PURE__ */ h("td", {
|
|
834
832
|
className: "py-2 px-3 text-text-primary",
|
|
835
833
|
children: (e.focusAreas ?? []).join(", ")
|
|
836
834
|
}, e.id))] }),
|
|
837
|
-
/* @__PURE__ */
|
|
835
|
+
/* @__PURE__ */ g("tr", { children: [/* @__PURE__ */ h("td", {
|
|
838
836
|
className: "py-2 pr-3 text-text-secondary",
|
|
839
|
-
children:
|
|
840
|
-
}), $.map((e) => /* @__PURE__ */
|
|
837
|
+
children: f("healthybowl.network.mentors.compare.rows.location", "Location")
|
|
838
|
+
}), $.map((e) => /* @__PURE__ */ h("td", {
|
|
841
839
|
className: "py-2 px-3 text-text-primary",
|
|
842
840
|
children: e.location
|
|
843
841
|
}, e.id))] })
|
|
@@ -846,205 +844,205 @@ var w = () => {
|
|
|
846
844
|
})
|
|
847
845
|
})
|
|
848
846
|
}),
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
open:
|
|
851
|
-
onClose:
|
|
852
|
-
title:
|
|
853
|
-
description:
|
|
847
|
+
/* @__PURE__ */ h(l, {
|
|
848
|
+
open: Je,
|
|
849
|
+
onClose: Z,
|
|
850
|
+
title: H ? f("healthybowl.network.mentors.form.editTitle", "Edit Mentor") : f("healthybowl.network.mentors.form.addTitle", "Add Mentor"),
|
|
851
|
+
description: f("healthybowl.network.mentors.form.description", "Manage a mentor in your network directory"),
|
|
854
852
|
size: "lg",
|
|
855
|
-
footer: /* @__PURE__ */
|
|
853
|
+
footer: /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(_, {
|
|
856
854
|
variant: "outline",
|
|
857
|
-
onClick:
|
|
858
|
-
children:
|
|
859
|
-
}), /* @__PURE__ */
|
|
860
|
-
onClick:
|
|
861
|
-
disabled:
|
|
862
|
-
children:
|
|
855
|
+
onClick: Z,
|
|
856
|
+
children: f("healthybowl.common.cancel", "Cancel")
|
|
857
|
+
}), /* @__PURE__ */ h(_, {
|
|
858
|
+
onClick: ot,
|
|
859
|
+
disabled: Ye,
|
|
860
|
+
children: Ye ? f("healthybowl.network.mentors.form.saving", "Saving…") : f("healthybowl.network.mentors.form.save", "Save Mentor")
|
|
863
861
|
})] }),
|
|
864
|
-
children: /* @__PURE__ */
|
|
862
|
+
children: /* @__PURE__ */ g("div", {
|
|
865
863
|
className: "space-y-4",
|
|
866
864
|
children: [
|
|
867
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ g("div", {
|
|
868
866
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
869
|
-
children: [/* @__PURE__ */
|
|
867
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
870
868
|
htmlFor: "mentor-form-name",
|
|
871
869
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
872
|
-
children:
|
|
873
|
-
}), /* @__PURE__ */
|
|
870
|
+
children: f("healthybowl.network.mentors.form.fields.name.label", "Name")
|
|
871
|
+
}), /* @__PURE__ */ h("input", {
|
|
874
872
|
id: "mentor-form-name",
|
|
875
873
|
type: "text",
|
|
876
|
-
value:
|
|
877
|
-
onChange: (e) =>
|
|
874
|
+
value: W.name,
|
|
875
|
+
onChange: (e) => X("name", e.target.value),
|
|
878
876
|
maxLength: 120,
|
|
879
|
-
placeholder:
|
|
877
|
+
placeholder: f("healthybowl.network.mentors.form.fields.name.placeholder", "Full name"),
|
|
880
878
|
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)]"
|
|
881
|
-
})] }), /* @__PURE__ */
|
|
879
|
+
})] }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
882
880
|
htmlFor: "mentor-form-specialization",
|
|
883
881
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
884
|
-
children:
|
|
885
|
-
}), /* @__PURE__ */
|
|
882
|
+
children: f("healthybowl.network.mentors.form.fields.specialization.label", "Specialization")
|
|
883
|
+
}), /* @__PURE__ */ h("input", {
|
|
886
884
|
id: "mentor-form-specialization",
|
|
887
885
|
type: "text",
|
|
888
|
-
value:
|
|
889
|
-
onChange: (e) =>
|
|
886
|
+
value: W.specialization,
|
|
887
|
+
onChange: (e) => X("specialization", e.target.value),
|
|
890
888
|
maxLength: 120,
|
|
891
|
-
placeholder:
|
|
889
|
+
placeholder: f("healthybowl.network.mentors.form.fields.specialization.placeholder", "e.g. Regenerative Agriculture"),
|
|
892
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)]"
|
|
893
891
|
})] })]
|
|
894
892
|
}),
|
|
895
|
-
/* @__PURE__ */
|
|
893
|
+
/* @__PURE__ */ g("div", {
|
|
896
894
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
897
895
|
children: [
|
|
898
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
899
897
|
htmlFor: "mentor-form-experience",
|
|
900
898
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
901
|
-
children:
|
|
902
|
-
}), /* @__PURE__ */
|
|
899
|
+
children: f("healthybowl.network.mentors.form.fields.experience.label", "Experience (years)")
|
|
900
|
+
}), /* @__PURE__ */ h("input", {
|
|
903
901
|
id: "mentor-form-experience",
|
|
904
902
|
type: "number",
|
|
905
903
|
min: 0,
|
|
906
|
-
value:
|
|
907
|
-
onChange: (e) =>
|
|
904
|
+
value: W.experience,
|
|
905
|
+
onChange: (e) => X("experience", e.target.value),
|
|
908
906
|
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)]"
|
|
909
907
|
})] }),
|
|
910
|
-
/* @__PURE__ */
|
|
908
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
911
909
|
htmlFor: "mentor-form-rating",
|
|
912
910
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
913
|
-
children:
|
|
914
|
-
}), /* @__PURE__ */
|
|
911
|
+
children: f("healthybowl.network.mentors.form.fields.rating.label", "Rating")
|
|
912
|
+
}), /* @__PURE__ */ h("input", {
|
|
915
913
|
id: "mentor-form-rating",
|
|
916
914
|
type: "number",
|
|
917
915
|
min: 0,
|
|
918
916
|
max: 5,
|
|
919
917
|
step: .1,
|
|
920
|
-
value:
|
|
921
|
-
onChange: (e) =>
|
|
918
|
+
value: W.rating,
|
|
919
|
+
onChange: (e) => X("rating", e.target.value),
|
|
922
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)]"
|
|
923
921
|
})] }),
|
|
924
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
925
923
|
htmlFor: "mentor-form-rate",
|
|
926
924
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
927
|
-
children:
|
|
928
|
-
}), /* @__PURE__ */
|
|
925
|
+
children: f("healthybowl.network.mentors.form.fields.hourlyRate.label", "Hourly rate")
|
|
926
|
+
}), /* @__PURE__ */ h("input", {
|
|
929
927
|
id: "mentor-form-rate",
|
|
930
928
|
type: "number",
|
|
931
929
|
min: 0,
|
|
932
930
|
step: .01,
|
|
933
|
-
value:
|
|
934
|
-
onChange: (e) =>
|
|
931
|
+
value: W.hourlyRate,
|
|
932
|
+
onChange: (e) => X("hourlyRate", e.target.value),
|
|
935
933
|
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)]"
|
|
936
934
|
})] })
|
|
937
935
|
]
|
|
938
936
|
}),
|
|
939
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ g("div", {
|
|
940
938
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
941
939
|
children: [
|
|
942
|
-
/* @__PURE__ */
|
|
940
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
943
941
|
htmlFor: "mentor-form-location",
|
|
944
942
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
945
|
-
children:
|
|
946
|
-
}), /* @__PURE__ */
|
|
943
|
+
children: f("healthybowl.network.mentors.form.fields.location.label", "Location")
|
|
944
|
+
}), /* @__PURE__ */ h("input", {
|
|
947
945
|
id: "mentor-form-location",
|
|
948
946
|
type: "text",
|
|
949
|
-
value:
|
|
950
|
-
onChange: (e) =>
|
|
947
|
+
value: W.location,
|
|
948
|
+
onChange: (e) => X("location", e.target.value),
|
|
951
949
|
maxLength: 120,
|
|
952
|
-
placeholder:
|
|
950
|
+
placeholder: f("healthybowl.network.mentors.form.fields.location.placeholder", "City, Region"),
|
|
953
951
|
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)]"
|
|
954
952
|
})] }),
|
|
955
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
956
954
|
htmlFor: "mentor-form-availability",
|
|
957
955
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
958
|
-
children:
|
|
959
|
-
}), /* @__PURE__ */
|
|
960
|
-
value:
|
|
961
|
-
onValueChange: (e) =>
|
|
962
|
-
children: [/* @__PURE__ */
|
|
956
|
+
children: f("healthybowl.network.mentors.form.fields.availability.label", "Availability")
|
|
957
|
+
}), /* @__PURE__ */ g(v, {
|
|
958
|
+
value: W.availability,
|
|
959
|
+
onValueChange: (e) => X("availability", e),
|
|
960
|
+
children: [/* @__PURE__ */ h(x, {
|
|
963
961
|
id: "mentor-form-availability",
|
|
964
962
|
className: "w-full",
|
|
965
|
-
children: /* @__PURE__ */
|
|
966
|
-
}), /* @__PURE__ */
|
|
963
|
+
children: /* @__PURE__ */ h(S, {})
|
|
964
|
+
}), /* @__PURE__ */ h(y, { children: $e.map((e) => /* @__PURE__ */ h(b, {
|
|
967
965
|
value: e.value,
|
|
968
966
|
children: e.label
|
|
969
967
|
}, e.value)) })]
|
|
970
968
|
})] }),
|
|
971
|
-
/* @__PURE__ */
|
|
969
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
972
970
|
htmlFor: "mentor-form-mentees",
|
|
973
971
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
974
|
-
children:
|
|
975
|
-
}), /* @__PURE__ */
|
|
972
|
+
children: f("healthybowl.network.mentors.form.fields.mentees.label", "Active mentees")
|
|
973
|
+
}), /* @__PURE__ */ h("input", {
|
|
976
974
|
id: "mentor-form-mentees",
|
|
977
975
|
type: "number",
|
|
978
976
|
min: 0,
|
|
979
|
-
value:
|
|
980
|
-
onChange: (e) =>
|
|
977
|
+
value: W.mentees,
|
|
978
|
+
onChange: (e) => X("mentees", e.target.value),
|
|
981
979
|
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)]"
|
|
982
980
|
})] })
|
|
983
981
|
]
|
|
984
982
|
}),
|
|
985
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ g("div", {
|
|
986
984
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
987
|
-
children: [/* @__PURE__ */
|
|
985
|
+
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
988
986
|
htmlFor: "mentor-form-since",
|
|
989
987
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
990
|
-
children:
|
|
991
|
-
}), /* @__PURE__ */
|
|
988
|
+
children: f("healthybowl.network.mentors.form.fields.mentoringSince.label", "Mentoring since")
|
|
989
|
+
}), /* @__PURE__ */ h("input", {
|
|
992
990
|
id: "mentor-form-since",
|
|
993
991
|
type: "date",
|
|
994
|
-
value:
|
|
995
|
-
onChange: (e) =>
|
|
992
|
+
value: W.mentoringSince,
|
|
993
|
+
onChange: (e) => X("mentoringSince", e.target.value),
|
|
996
994
|
max: i(),
|
|
997
995
|
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)]"
|
|
998
|
-
})] }), /* @__PURE__ */
|
|
999
|
-
/* @__PURE__ */
|
|
996
|
+
})] }), /* @__PURE__ */ g("div", { children: [
|
|
997
|
+
/* @__PURE__ */ h("label", {
|
|
1000
998
|
htmlFor: "mentor-form-languages",
|
|
1001
999
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
1002
|
-
children:
|
|
1000
|
+
children: f("healthybowl.network.mentors.form.fields.languages.label", "Languages")
|
|
1003
1001
|
}),
|
|
1004
|
-
/* @__PURE__ */
|
|
1002
|
+
/* @__PURE__ */ h("input", {
|
|
1005
1003
|
id: "mentor-form-languages",
|
|
1006
1004
|
type: "text",
|
|
1007
|
-
value:
|
|
1008
|
-
onChange: (e) =>
|
|
1009
|
-
placeholder:
|
|
1005
|
+
value: W.languages,
|
|
1006
|
+
onChange: (e) => X("languages", e.target.value),
|
|
1007
|
+
placeholder: f("healthybowl.network.mentors.form.fields.languages.placeholder", "English, Hindi, Tamil"),
|
|
1010
1008
|
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)]"
|
|
1011
1009
|
}),
|
|
1012
|
-
/* @__PURE__ */
|
|
1010
|
+
/* @__PURE__ */ h("p", {
|
|
1013
1011
|
className: "mt-1 text-xs text-text-secondary",
|
|
1014
|
-
children:
|
|
1012
|
+
children: f("healthybowl.network.mentors.form.fields.languages.hint", "Separate multiple languages with commas")
|
|
1015
1013
|
})
|
|
1016
1014
|
] })]
|
|
1017
1015
|
}),
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1016
|
+
/* @__PURE__ */ g("div", { children: [
|
|
1017
|
+
/* @__PURE__ */ h("label", {
|
|
1020
1018
|
htmlFor: "mentor-form-focus",
|
|
1021
1019
|
className: "mb-1 block text-xs font-medium text-text-primary",
|
|
1022
|
-
children:
|
|
1020
|
+
children: f("healthybowl.network.mentors.form.fields.focusAreas.label", "Focus areas")
|
|
1023
1021
|
}),
|
|
1024
|
-
/* @__PURE__ */
|
|
1022
|
+
/* @__PURE__ */ h("input", {
|
|
1025
1023
|
id: "mentor-form-focus",
|
|
1026
1024
|
type: "text",
|
|
1027
|
-
value:
|
|
1028
|
-
onChange: (e) =>
|
|
1029
|
-
placeholder:
|
|
1025
|
+
value: W.focusAreas,
|
|
1026
|
+
onChange: (e) => X("focusAreas", e.target.value),
|
|
1027
|
+
placeholder: f("healthybowl.network.mentors.form.fields.focusAreas.placeholder", "Cover Cropping, No-Till Farming"),
|
|
1030
1028
|
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)]"
|
|
1031
1029
|
}),
|
|
1032
|
-
/* @__PURE__ */
|
|
1030
|
+
/* @__PURE__ */ h("p", {
|
|
1033
1031
|
className: "mt-1 text-xs text-text-secondary",
|
|
1034
|
-
children:
|
|
1032
|
+
children: f("healthybowl.network.mentors.form.fields.focusAreas.hint", "Separate multiple focus areas with commas")
|
|
1035
1033
|
})
|
|
1036
1034
|
] })
|
|
1037
1035
|
]
|
|
1038
1036
|
})
|
|
1039
1037
|
}),
|
|
1040
|
-
/* @__PURE__ */
|
|
1041
|
-
toasts:
|
|
1042
|
-
onDismiss:
|
|
1038
|
+
/* @__PURE__ */ h(ne, {
|
|
1039
|
+
toasts: et,
|
|
1040
|
+
onDismiss: tt
|
|
1043
1041
|
})
|
|
1044
1042
|
]
|
|
1045
1043
|
});
|
|
1046
1044
|
};
|
|
1047
1045
|
//#endregion
|
|
1048
|
-
export {
|
|
1046
|
+
export { E as MentorsPage };
|
|
1049
1047
|
|
|
1050
1048
|
//# sourceMappingURL=MentorsPage.js.map
|