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