@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.
Files changed (140) hide show
  1. package/dist/components/assistant/AssistantChatArea.js +7 -9
  2. package/dist/components/assistant/AssistantChatArea.js.map +1 -1
  3. package/dist/healthybowl/HealthyBowlRoot.js +56 -57
  4. package/dist/healthybowl/HealthyBowlRoot.js.map +1 -1
  5. package/dist/healthybowl/HealthyBowlRoutes.js +36 -48
  6. package/dist/healthybowl/HealthyBowlRoutes.js.map +1 -1
  7. package/dist/healthybowl/components/CreateFarmTaskButton.js.map +1 -1
  8. package/dist/healthybowl/components/PageLayout.js +10 -11
  9. package/dist/healthybowl/components/PageLayout.js.map +1 -1
  10. package/dist/healthybowl/context/HealthyBowlContext.js +7 -7
  11. package/dist/healthybowl/context/HealthyBowlContext.js.map +1 -1
  12. package/dist/healthybowl/hooks/useHealthyBowlCompliance.js +141 -157
  13. package/dist/healthybowl/hooks/useHealthyBowlCompliance.js.map +1 -1
  14. package/dist/healthybowl/hooks/useHealthyBowlData.js +0 -18
  15. package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
  16. package/dist/healthybowl/hooks/useHealthyBowlDistribution.js +37 -52
  17. package/dist/healthybowl/hooks/useHealthyBowlDistribution.js.map +1 -1
  18. package/dist/healthybowl/hooks/useHealthyBowlLivestockDepth.js +78 -135
  19. package/dist/healthybowl/hooks/useHealthyBowlLivestockDepth.js.map +1 -1
  20. package/dist/healthybowl/hooks/useIrrigationAutomation.js +1 -1
  21. package/dist/healthybowl/hooks/useIrrigationAutomation.js.map +1 -1
  22. package/dist/healthybowl/hooks/useSuccessionPlanning.js +1 -1
  23. package/dist/healthybowl/hooks/useSuccessionPlanning.js.map +1 -1
  24. package/dist/healthybowl/hooks/useWeatherIntelligence.js +1 -1
  25. package/dist/healthybowl/hooks/useWeatherIntelligence.js.map +1 -1
  26. package/dist/healthybowl/offline/OfflineStatusPill.js +21 -40
  27. package/dist/healthybowl/offline/OfflineStatusPill.js.map +1 -1
  28. package/dist/healthybowl/offline/OfflineSyncProvider.js +130 -153
  29. package/dist/healthybowl/offline/OfflineSyncProvider.js.map +1 -1
  30. package/dist/healthybowl/offline/graphql.js.map +1 -1
  31. package/dist/healthybowl/offline/store.js +1 -1
  32. package/dist/healthybowl/offline/syncEngine.js +1 -2
  33. package/dist/healthybowl/offline/syncEngine.js.map +1 -1
  34. package/dist/healthybowl/offline/types.js.map +1 -1
  35. package/dist/healthybowl/pages/GettingStartedPage.js +0 -1
  36. package/dist/healthybowl/pages/GettingStartedPage.js.map +1 -1
  37. package/dist/healthybowl/pages/analytics/InsightsPage.js +2 -2
  38. package/dist/healthybowl/pages/analytics/InsightsPage.js.map +1 -1
  39. package/dist/healthybowl/pages/analytics/ReportsPage.js +99 -136
  40. package/dist/healthybowl/pages/analytics/ReportsPage.js.map +1 -1
  41. package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js +162 -204
  42. package/dist/healthybowl/pages/compliance/ComplianceOverviewPage.js.map +1 -1
  43. package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js +178 -196
  44. package/dist/healthybowl/pages/compliance/IcsGroupDetailPage.js.map +1 -1
  45. package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js +141 -142
  46. package/dist/healthybowl/pages/compliance/IcsGrowerDetailPage.js.map +1 -1
  47. package/dist/healthybowl/pages/crops/CropFieldsPage.js +0 -2
  48. package/dist/healthybowl/pages/crops/CropFieldsPage.js.map +1 -1
  49. package/dist/healthybowl/pages/crops/CropHarvestPage.js +272 -316
  50. package/dist/healthybowl/pages/crops/CropHarvestPage.js.map +1 -1
  51. package/dist/healthybowl/pages/crops/CropPlanningPage.js +0 -6
  52. package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
  53. package/dist/healthybowl/pages/crops/FieldDetailsPage.js +846 -871
  54. package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
  55. package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +334 -376
  56. package/dist/healthybowl/pages/crops/HarvestDetailsPage.js.map +1 -1
  57. package/dist/healthybowl/pages/distribution/CsaPlanDetailPage.js +188 -415
  58. package/dist/healthybowl/pages/distribution/CsaPlanDetailPage.js.map +1 -1
  59. package/dist/healthybowl/pages/distribution/labels.js +2 -10
  60. package/dist/healthybowl/pages/distribution/labels.js.map +1 -1
  61. package/dist/healthybowl/pages/farm/FarmProfilePage.js +0 -1
  62. package/dist/healthybowl/pages/farm/FarmProfilePage.js.map +1 -1
  63. package/dist/healthybowl/pages/field-capture/CaptureObservationForm.js +8 -8
  64. package/dist/healthybowl/pages/fields/FieldMapPage.js +0 -2
  65. package/dist/healthybowl/pages/fields/FieldMapPage.js.map +1 -1
  66. package/dist/healthybowl/pages/financial/FinancialReportsPage.js +107 -92
  67. package/dist/healthybowl/pages/financial/FinancialReportsPage.js.map +1 -1
  68. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +188 -228
  69. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
  70. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +191 -261
  71. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
  72. package/dist/healthybowl/pages/inputs-insurance/InputsInsuranceOverviewPage.js +14 -14
  73. package/dist/healthybowl/pages/inputs-insurance/InputsInsuranceOverviewPage.js.map +1 -1
  74. package/dist/healthybowl/pages/irrigation/IrrigationPage.js +307 -338
  75. package/dist/healthybowl/pages/irrigation/IrrigationPage.js.map +1 -1
  76. package/dist/healthybowl/pages/livestock/AnimalDepthFormModal.js +102 -126
  77. package/dist/healthybowl/pages/livestock/AnimalDepthFormModal.js.map +1 -1
  78. package/dist/healthybowl/pages/livestock/AnimalDepthPage.js +215 -257
  79. package/dist/healthybowl/pages/livestock/AnimalDepthPage.js.map +1 -1
  80. package/dist/healthybowl/pages/livestock/GrazingPage.js +0 -1
  81. package/dist/healthybowl/pages/livestock/GrazingPage.js.map +1 -1
  82. package/dist/healthybowl/pages/livestock/HerdDepthPage.js +0 -4
  83. package/dist/healthybowl/pages/livestock/HerdDepthPage.js.map +1 -1
  84. package/dist/healthybowl/pages/livestock/grazing/RecordGrazingMoveModal.js +9 -8
  85. package/dist/healthybowl/pages/livestock/grazing/RecordGrazingMoveModal.js.map +1 -1
  86. package/dist/healthybowl/pages/network/ExpertsPage.js +419 -520
  87. package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
  88. package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js +130 -129
  89. package/dist/healthybowl/pages/weather/WeatherAlertHistoryPage.js.map +1 -1
  90. package/dist/healthybowl/pages/weather/WeatherSettingsPage.js +237 -285
  91. package/dist/healthybowl/pages/weather/WeatherSettingsPage.js.map +1 -1
  92. package/dist/healthybowl/utils/plantingCapacity.js +10 -10
  93. package/dist/healthybowl/utils/plantingCapacity.js.map +1 -1
  94. package/dist/node_modules/fast-equals/dist/es/index.js +86 -74
  95. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  96. package/dist/services/assistantApi.js +30 -59
  97. package/dist/services/assistantApi.js.map +1 -1
  98. package/dist/utils/pageContext.js +1 -15
  99. package/dist/utils/pageContext.js.map +1 -1
  100. package/package.json +1 -1
  101. package/dist/healthybowl/hooks/useAgronomyDecisions.js +0 -79
  102. package/dist/healthybowl/hooks/useAgronomyDecisions.js.map +0 -1
  103. package/dist/healthybowl/hooks/useAnalyticsReports.js +0 -173
  104. package/dist/healthybowl/hooks/useAnalyticsReports.js.map +0 -1
  105. package/dist/healthybowl/hooks/useComplianceExports.js +0 -74
  106. package/dist/healthybowl/hooks/useComplianceExports.js.map +0 -1
  107. package/dist/healthybowl/hooks/useConsultationPayments.js +0 -59
  108. package/dist/healthybowl/hooks/useConsultationPayments.js.map +0 -1
  109. package/dist/healthybowl/hooks/usePlantingEstimate.js +0 -88
  110. package/dist/healthybowl/hooks/usePlantingEstimate.js.map +0 -1
  111. package/dist/healthybowl/offline/HeaderOfflinePill.js +0 -28
  112. package/dist/healthybowl/offline/HeaderOfflinePill.js.map +0 -1
  113. package/dist/healthybowl/offline/captureCache.js +0 -30
  114. package/dist/healthybowl/offline/captureCache.js.map +0 -1
  115. package/dist/healthybowl/offline/headerSlot.js +0 -24
  116. package/dist/healthybowl/offline/headerSlot.js.map +0 -1
  117. package/dist/healthybowl/pages/ai/AiDecisionsPage.js +0 -287
  118. package/dist/healthybowl/pages/ai/AiDecisionsPage.js.map +0 -1
  119. package/dist/healthybowl/pages/compliance/ResidueTestsPage.js +0 -291
  120. package/dist/healthybowl/pages/compliance/ResidueTestsPage.js.map +0 -1
  121. package/dist/healthybowl/pages/compliance/SubstanceRulesPage.js +0 -300
  122. package/dist/healthybowl/pages/compliance/SubstanceRulesPage.js.map +0 -1
  123. package/dist/healthybowl/pages/compliance/substanceRuleForm.js +0 -135
  124. package/dist/healthybowl/pages/compliance/substanceRuleForm.js.map +0 -1
  125. package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js +0 -49
  126. package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js.map +0 -1
  127. package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js +0 -48
  128. package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js.map +0 -1
  129. package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js +0 -54
  130. package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js.map +0 -1
  131. package/dist/healthybowl/pages/livestock/PedigreeTree.js +0 -154
  132. package/dist/healthybowl/pages/livestock/PedigreeTree.js.map +0 -1
  133. package/dist/healthybowl/pages/livestock/eidTagInput.js +0 -39
  134. package/dist/healthybowl/pages/livestock/eidTagInput.js.map +0 -1
  135. package/dist/healthybowl/pages/livestock/pedigreeLayout.js +0 -68
  136. package/dist/healthybowl/pages/livestock/pedigreeLayout.js.map +0 -1
  137. package/dist/healthybowl/pages/weather/alertDelivery.js +0 -105
  138. package/dist/healthybowl/pages/weather/alertDelivery.js.map +0 -1
  139. package/dist/healthybowl/utils/icsInspection.js +0 -18
  140. 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 i } from "../../components/PageLayout.js";
3
- import { StatCard as a } from "../../components/StatCard.js";
4
- import { StatusBadge as o } from "../../components/StatusBadge.js";
5
- import { EmptyState as s } from "../../components/EmptyState.js";
6
- import { ErrorState as ee } from "../../components/ErrorState.js";
7
- import { FilterBar as te } from "../../components/FilterBar.js";
8
- import { ToastContainer as ne } from "../../components/Toast.js";
9
- import { PageLoader as re } from "../../components/PageLoader.js";
10
- import { Modal as ie } from "../../components/Modal.js";
11
- import { useToast as ae } from "../../hooks/useToast.js";
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 oe } from "../../hooks/useHealthyBowlData.js";
14
- import { useConsultationPayments as se } from "../../hooks/useConsultationPayments.js";
15
- import { useEffect as ce, useRef as le, useState as c } from "react";
16
- import { useI18n as ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
- import { ArrowUpDown as de, Award as fe, CalendarCheck as l, ChevronDown as pe, Clock as me, Eye as he, Globe as ge, MapPin as _e, Pencil as ve, Plus as u, Star as ye, Trash2 as be, User as xe, Wallet as Se, Zap as Ce } from "lucide-react";
18
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
19
- import { Button as m, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y } from "@burdenoff/fe-libs/ui";
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 b = {
20
+ var y = {
22
21
  topic: "",
23
22
  requestedDate: "",
24
23
  mode: "phone",
25
24
  notes: ""
26
- }, x = {
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
- }, we = (e) => {
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
- }, Te = (e) => {
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
- ], De = [
48
+ ], Te = [
56
49
  "All",
57
50
  "Available",
58
51
  "Busy"
59
- ], Oe = [
52
+ ], Ee = [
60
53
  "rating",
61
54
  "experience",
62
55
  "price-asc",
63
56
  "price-desc"
64
- ], ke = (e) => {
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 Ae(t) {
73
- return Array.from({ length: 5 }, (n, r) => /* @__PURE__ */ f(ye, { className: e("h-3.5 w-3.5", r < Math.round(t) ? "fill-warning text-warning" : "text-muted") }, r));
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 S = () => {
76
- let { t: S } = ue(), { experts: C, consultations: je, createConsultation: Me, updateConsultationStatus: Ne, createExpert: Pe, updateExpert: Fe, deleteExpert: Ie, errors: Le, loadings: Re, refetch: w } = oe(), { checkoutConsultation: ze, syncConsultationPayment: Be, loadRazorpay: Ve } = se(), He = [{
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: S("healthybowl.network.experts.modes.phone", "Phone call")
71
+ label: x("healthybowl.network.experts.modes.phone", "Phone call")
79
72
  }, {
80
73
  value: "in_person",
81
- label: S("healthybowl.network.experts.modes.inPerson", "In person")
82
- }], T = {
83
- rating: S("healthybowl.network.experts.sort.rating", "Rating"),
84
- experience: S("healthybowl.network.experts.sort.experience", "Experience"),
85
- "price-asc": S("healthybowl.network.experts.sort.priceAsc", "Price: Low → High"),
86
- "price-desc": S("healthybowl.network.experts.sort.priceDesc", "Price: High → Low")
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
- All: S("healthybowl.common.all", "All"),
89
- "Organic Crop Science": S("healthybowl.network.experts.specializations.organicCropScience", "Organic Crop Science"),
90
- "Integrated Pest Management": S("healthybowl.network.experts.specializations.integratedPestManagement", "Integrated Pest Management"),
91
- "Soil Science & Fertility": S("healthybowl.network.experts.specializations.soilScienceFertility", "Soil Science & Fertility"),
92
- "Livestock & Veterinary": S("healthybowl.network.experts.specializations.livestockVeterinary", "Livestock & Veterinary"),
93
- "Organic Certification": S("healthybowl.network.experts.specializations.organicCertification", "Organic Certification")
94
- }, We = {
95
- All: S("healthybowl.common.all", "All"),
96
- Available: S("healthybowl.network.experts.availabilityFilter.available", "Available"),
97
- Busy: S("healthybowl.network.experts.availabilityFilter.busy", "Busy")
98
- }, Ge = {
99
- available: S("healthybowl.network.experts.availability.available", "available"),
100
- busy: S("healthybowl.network.experts.availability.busy", "busy"),
101
- offline: S("healthybowl.network.experts.availability.offline", "offline")
102
- }, E = {
103
- REQUESTED: S("healthybowl.network.experts.consultationStatus.requested", "REQUESTED"),
104
- CONFIRMED: S("healthybowl.network.experts.consultationStatus.confirmed", "CONFIRMED"),
105
- COMPLETED: S("healthybowl.network.experts.consultationStatus.completed", "COMPLETED"),
106
- CANCELLED: S("healthybowl.network.experts.consultationStatus.cancelled", "CANCELLED")
107
- }, Ke = {
108
- PENDING: S("healthybowl.network.experts.paymentStatus.pending", "Payment pending"),
109
- PAID: S("healthybowl.network.experts.paymentStatus.paid", "Paid"),
110
- REFUNDED: S("healthybowl.network.experts.paymentStatus.refunded", "Refunded")
111
- }, qe = {
112
- video: S("healthybowl.network.experts.modes.video", "Video call (coming soon)"),
113
- phone: S("healthybowl.network.experts.modes.phone", "Phone call"),
114
- in_person: S("healthybowl.network.experts.modes.inPerson", "In person")
115
- }, [D, O] = c(""), [k, A] = c("All"), [j, M] = c("All"), [N, Je] = c("rating"), [Ye, P] = c(!1), [Xe, Ze] = c(null), [F, I] = c(null), [L, R] = c(b), [z, Qe] = c(!1), [$e, B] = c(!1), [V, H] = c(null), [U, W] = c(x), [et, tt] = c(!1), [nt, rt] = c(null), [G, it] = c(null), [at, ot] = c(() => /* @__PURE__ */ new Set()), K = le(/* @__PURE__ */ new Set()), st = (e) => K.current.has(e) ? !1 : (K.current.add(e), ot(new Set(K.current)), !0), ct = (e) => {
116
- K.current.delete(e), ot(new Set(K.current));
117
- }, lt = [
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: S("healthybowl.network.experts.availability.available", "available")
107
+ label: x("healthybowl.network.experts.availability.available", "available")
121
108
  },
122
109
  {
123
110
  value: "busy",
124
- label: S("healthybowl.network.experts.availability.busy", "busy")
111
+ label: x("healthybowl.network.experts.availability.busy", "busy")
125
112
  },
126
113
  {
127
114
  value: "offline",
128
- label: S("healthybowl.network.experts.availability.offline", "offline")
115
+ label: x("healthybowl.network.experts.availability.offline", "offline")
129
116
  }
130
- ], q = le(null), { toasts: ut, toast: J, dismiss: dt } = ae(), ft = je.filter((e) => e.consultantType === "EXPERT"), Y = (e, t) => R((n) => ({
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
- })), pt = (e) => {
134
- R(b), I(e);
120
+ })), tt = (e) => {
121
+ N(y), Ye(e);
135
122
  }, X = () => {
136
- I(null), R(b);
137
- }, Z = (e, t) => W((n) => ({
123
+ Ye(null), N(y);
124
+ }, Z = (e, t) => B((n) => ({
138
125
  ...n,
139
126
  [e]: t
140
- })), mt = () => {
141
- H(null), W(x), B(!0);
142
- }, ht = (e) => {
143
- H(e), W({
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
- }), B(!0);
139
+ }), I(!0);
153
140
  }, Q = () => {
154
- B(!1), H(null), W(x);
155
- }, gt = async () => {
156
- if (!U.name.trim() || !U.specialization.trim() || !U.location.trim()) {
157
- J({
158
- title: S("healthybowl.network.experts.form.toast.missingFields.title", "Missing required fields"),
159
- description: S("healthybowl.network.experts.form.toast.missingFields.description", "Name, specialization, and location are required."),
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 = U.languages.split(",").map((e) => e.trim()).filter((e) => e.length > 0);
165
- tt(!0);
151
+ let e = z.languages.split(",").map((e) => e.trim()).filter((e) => e.length > 0);
152
+ H(!0);
166
153
  try {
167
- V ? (await Fe({
168
- id: V.id,
169
- name: U.name.trim(),
170
- specialization: U.specialization.trim(),
171
- experience: Number(U.experience) || 0,
172
- rating: Number(U.rating) || 0,
173
- location: U.location.trim(),
174
- availability: U.availability,
175
- hourlyRate: Number(U.hourlyRate) || 0,
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
- }), J({
178
- title: S("healthybowl.network.experts.form.toast.updated.title", "Expert updated"),
179
- description: S("healthybowl.network.experts.form.toast.updated.description", "{{name}} has been updated.", { name: U.name.trim() }),
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 Pe({
182
- name: U.name.trim(),
183
- specialization: U.specialization.trim(),
184
- experience: Number(U.experience) || 0,
185
- rating: Number(U.rating) || 0,
186
- location: U.location.trim(),
187
- availability: U.availability,
188
- hourlyRate: Number(U.hourlyRate) || 0,
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
- }), J({
191
- title: S("healthybowl.network.experts.form.toast.created.title", "Expert added"),
192
- description: S("healthybowl.network.experts.form.toast.created.description", "{{name}} has been added.", { name: U.name.trim() }),
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
- J({
197
- title: S("healthybowl.network.experts.form.toast.saveError.title", "Could not save expert"),
198
- description: e instanceof Error ? e.message : S("healthybowl.network.experts.form.toast.saveError.description", "Failed to save expert"),
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
- tt(!1);
189
+ H(!1);
203
190
  }
204
- }, _t = async (e) => {
205
- rt(e.id);
191
+ }, at = async (e) => {
192
+ U(e.id);
206
193
  try {
207
- await Ie(e.id), J({
208
- title: S("healthybowl.network.experts.form.toast.deleted.title", "Expert removed"),
209
- description: S("healthybowl.network.experts.form.toast.deleted.description", "{{name}} has been removed.", { name: e.name }),
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
- J({
214
- title: S("healthybowl.network.experts.form.toast.deleteError.title", "Could not remove expert"),
215
- description: e instanceof Error ? e.message : S("healthybowl.network.experts.form.toast.deleteError.description", "Failed to remove expert"),
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
- rt(null);
206
+ U(null);
220
207
  }
221
- }, vt = async () => {
222
- if (F) {
223
- if (!L.topic.trim() || !L.requestedDate) {
224
- J({
225
- title: S("healthybowl.network.experts.toast.missingFields.title", "Missing required fields"),
226
- description: S("healthybowl.network.experts.toast.missingFields.description", "Topic and preferred date are required."),
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
- Qe(!0);
218
+ F(!0);
232
219
  try {
233
- await Me({
220
+ await Ae({
234
221
  consultantType: "EXPERT",
235
- consultantId: F.id,
236
- consultantName: F.name,
237
- topic: L.topic.trim(),
238
- requestedDate: L.requestedDate,
239
- mode: L.mode,
240
- notes: L.notes.trim() || void 0,
241
- fee: F.hourlyRate
242
- }), J({
243
- title: S("healthybowl.network.experts.toast.requested.title", "Consultation requested"),
244
- description: S("healthybowl.network.experts.toast.requested.description", "Your request to {{name}} has been sent.", { name: F.name }),
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
- J({
249
- title: S("healthybowl.network.experts.toast.bookFailed.title", "Could not book consultation"),
250
- description: e instanceof Error ? e.message : S("healthybowl.network.experts.toast.bookFailed.description", "Failed to book consultation"),
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
- Qe(!1);
241
+ F(!1);
255
242
  }
256
243
  }
257
244
  }, $ = async (e, t) => {
258
- it(e);
245
+ G(e);
259
246
  try {
260
- await Ne({
247
+ await je({
261
248
  id: e,
262
249
  status: t
263
- }), J({
264
- title: S("healthybowl.network.experts.toast.statusUpdated.title", "Status updated"),
265
- description: S("healthybowl.network.experts.toast.statusUpdated.description", "The consultation has been moved to {{status}}.", { status: E[t] ?? t }),
266
- variant: "success"
267
- });
268
- } catch (e) {
269
- J({
270
- title: S("healthybowl.network.experts.toast.statusUpdateError.title", "Could not update status"),
271
- description: e instanceof Error ? e.message : S("healthybowl.network.experts.toast.statusUpdateError.description", "Failed to update status"),
272
- variant: "error"
273
- });
274
- } finally {
275
- it(null);
276
- }
277
- }, yt = async (e) => {
278
- try {
279
- let t = await Be(e.id);
280
- await w().catch(() => void 0), t.paymentStatus === "PAID" ? J({
281
- title: S("healthybowl.network.experts.payment.toast.paid.title", "Payment confirmed"),
282
- description: t.paymentReference ? S("healthybowl.network.experts.payment.toast.paid.withReference", "Your consultation payment is confirmed — reference {{reference}}.", { reference: t.paymentReference }) : S("healthybowl.network.experts.payment.toast.paid.description", "Your consultation payment is confirmed."),
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
- J({
334
- title: S("healthybowl.network.experts.payment.toast.checkoutError.title", "Could not start the payment"),
335
- description: e instanceof Error ? e.message : S("healthybowl.common.error", "Unknown error"),
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
- t || ct(e.id);
262
+ G(null);
340
263
  }
341
264
  };
342
- ce(() => {
265
+ le(() => {
343
266
  let e = (e) => {
344
- q.current && !q.current.contains(e.target) && P(!1);
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 xt = C.filter((e) => {
349
- let t = (e.name ?? "").toLowerCase().includes(D.toLowerCase()) || e.specialization.toLowerCase().includes(D.toLowerCase()) || e.location.toLowerCase().includes(D.toLowerCase()), n = k === "All" || e.specialization === k, r = j === "All" || e.availability === j.toLowerCase();
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 (N) {
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
- }), St = C.filter((e) => e.availability === "available").length, Ct = C.length > 0 ? (C.reduce((e, t) => e + t.rating, 0) / C.length).toFixed(1) : "0.0", wt = new Set(C.map((e) => e.specialization)).size;
360
- return /* @__PURE__ */ p(i, {
361
- title: S("healthybowl.network.experts.title", "Expert Directory"),
362
- description: S("healthybowl.network.experts.description", "Find and connect with agricultural experts"),
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(m, {
365
- onClick: mt,
287
+ actions: /* @__PURE__ */ f(p, {
288
+ onClick: nt,
366
289
  size: "sm",
367
290
  children: [
368
- /* @__PURE__ */ f(u, { className: "h-3.5 w-3.5" }),
291
+ /* @__PURE__ */ d(c, { className: "h-3.5 w-3.5" }),
369
292
  " ",
370
- S("healthybowl.network.experts.actions.addExpert", "Add Expert")
293
+ x("healthybowl.network.experts.actions.addExpert", "Add Expert")
371
294
  ]
372
295
  }),
373
296
  children: [
374
- /* @__PURE__ */ p("div", {
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__ */ f(a, {
300
+ /* @__PURE__ */ d(i, {
378
301
  hero: !0,
379
- label: S("healthybowl.network.experts.stats.totalExperts", "Total Experts"),
380
- value: C.length,
381
- icon: /* @__PURE__ */ f(fe, { className: "h-4 w-4" })
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__ */ f(a, {
384
- label: S("healthybowl.network.experts.stats.availableNow", "Available Now"),
385
- value: St,
386
- icon: /* @__PURE__ */ f(Ce, { className: "h-4 w-4" })
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__ */ f(a, {
389
- label: S("healthybowl.network.experts.stats.avgRating", "Avg Rating"),
390
- value: Ct,
391
- icon: /* @__PURE__ */ f(ye, { className: "h-4 w-4" })
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__ */ f(a, {
394
- label: S("healthybowl.network.experts.stats.specializations", "Specializations"),
395
- value: wt,
396
- icon: /* @__PURE__ */ f(xe, { className: "h-4 w-4" })
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__ */ f(te, {
401
- searchValue: D,
402
- onSearchChange: O,
403
- searchPlaceholder: S("healthybowl.network.experts.searchPlaceholder", "Search experts by name, specialty, or location..."),
404
- filters: /* @__PURE__ */ p("div", {
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__ */ p(h, {
408
- value: k,
409
- onValueChange: A,
410
- children: [/* @__PURE__ */ f(v, {
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__ */ f(y, {})
413
- }), /* @__PURE__ */ f(g, { children: Ee.map((e) => /* @__PURE__ */ f(_, {
335
+ children: /* @__PURE__ */ d(v, {})
336
+ }), /* @__PURE__ */ d(h, { children: we.map((e) => /* @__PURE__ */ d(g, {
414
337
  value: e,
415
- children: Ue[e] ?? e
338
+ children: ze[e] ?? e
416
339
  }, e)) })]
417
340
  }),
418
- /* @__PURE__ */ p(h, {
419
- value: j,
420
- onValueChange: M,
421
- children: [/* @__PURE__ */ f(v, {
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__ */ f(y, {})
424
- }), /* @__PURE__ */ f(g, { children: De.map((e) => /* @__PURE__ */ f(_, {
346
+ children: /* @__PURE__ */ d(v, {})
347
+ }), /* @__PURE__ */ d(h, { children: Te.map((e) => /* @__PURE__ */ d(g, {
425
348
  value: e,
426
- children: We[e] ?? e
349
+ children: Be[e] ?? e
427
350
  }, e)) })]
428
351
  }),
429
- /* @__PURE__ */ p("div", {
430
- ref: q,
352
+ /* @__PURE__ */ f("div", {
353
+ ref: K,
431
354
  className: "relative",
432
- children: [/* @__PURE__ */ p(m, {
433
- onClick: () => P((e) => !e),
355
+ children: [/* @__PURE__ */ f(p, {
356
+ onClick: () => A((e) => !e),
434
357
  variant: "outline",
435
358
  size: "sm",
436
359
  children: [
437
- /* @__PURE__ */ f(de, { className: "h-3.5 w-3.5" }),
438
- T[N],
439
- /* @__PURE__ */ f(pe, { className: "h-3 w-3" })
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
- }), Ye && /* @__PURE__ */ f("div", {
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: Oe.map((t) => /* @__PURE__ */ f("button", {
366
+ children: Ee.map((t) => /* @__PURE__ */ d("button", {
444
367
  type: "button",
445
368
  onClick: () => {
446
- Je(t), P(!1);
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", N === t ? "font-semibold text-primary" : "text-text-primary"),
449
- children: T[t]
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
- xt.length > 0 ? /* @__PURE__ */ f("div", {
379
+ st.length > 0 ? /* @__PURE__ */ d("div", {
457
380
  className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-3",
458
- children: xt.map((e) => {
459
- let n = Xe === e.id;
460
- return /* @__PURE__ */ p("div", {
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__ */ p("div", {
386
+ /* @__PURE__ */ f("div", {
464
387
  className: "flex items-start gap-3",
465
388
  children: [
466
- /* @__PURE__ */ f("div", {
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__ */ p("div", {
393
+ /* @__PURE__ */ f("div", {
471
394
  className: "flex-1 min-w-0",
472
- children: [/* @__PURE__ */ f("h3", {
395
+ children: [/* @__PURE__ */ d("h3", {
473
396
  className: "text-sm font-semibold text-text-primary",
474
397
  children: e.name
475
- }), /* @__PURE__ */ f("p", {
398
+ }), /* @__PURE__ */ d("p", {
476
399
  className: "text-xs text-text-secondary",
477
400
  children: e.specialization
478
401
  })]
479
402
  }),
480
- /* @__PURE__ */ f(o, {
481
- label: Ge[e.availability] ?? e.availability,
482
- variant: ke(e.availability),
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__ */ p("div", {
410
+ /* @__PURE__ */ f("div", {
488
411
  className: "mt-3 space-y-1.5 text-xs text-text-secondary",
489
412
  children: [
490
- /* @__PURE__ */ p("p", {
413
+ /* @__PURE__ */ f("p", {
491
414
  className: "flex items-center gap-1.5",
492
415
  children: [
493
- /* @__PURE__ */ f(me, { className: "h-3 w-3" }),
416
+ /* @__PURE__ */ d(he, { className: "h-3 w-3" }),
494
417
  " ",
495
- S("healthybowl.network.experts.card.yearsExperience", "{{count}} years experience", { count: e.experience })
418
+ x("healthybowl.network.experts.card.yearsExperience", "{{count}} years experience", { count: e.experience })
496
419
  ]
497
420
  }),
498
- /* @__PURE__ */ p("p", {
421
+ /* @__PURE__ */ f("p", {
499
422
  className: "flex items-center gap-1.5",
500
423
  children: [
501
- /* @__PURE__ */ f(_e, { className: "h-3 w-3" }),
424
+ /* @__PURE__ */ d(ve, { className: "h-3 w-3" }),
502
425
  " ",
503
426
  e.location
504
427
  ]
505
428
  }),
506
- /* @__PURE__ */ p("p", {
429
+ /* @__PURE__ */ f("p", {
507
430
  className: "flex items-center gap-1.5",
508
431
  children: [
509
- /* @__PURE__ */ f(ge, { className: "h-3 w-3" }),
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__ */ p("div", {
439
+ /* @__PURE__ */ f("div", {
517
440
  className: "mt-3 flex items-center gap-1",
518
441
  children: [
519
- Ae(e.rating),
520
- /* @__PURE__ */ f("span", {
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__ */ f("span", {
447
+ /* @__PURE__ */ d("span", {
525
448
  className: "text-xs text-text-secondary",
526
- children: S("healthybowl.network.experts.card.reviews", "({{count}} reviews)", { count: e.reviews })
449
+ children: x("healthybowl.network.experts.card.reviews", "({{count}} reviews)", { count: e.reviews })
527
450
  })
528
451
  ]
529
452
  }),
530
- n && /* @__PURE__ */ p("div", {
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__ */ f("h4", {
456
+ /* @__PURE__ */ d("h4", {
534
457
  className: "text-xs font-semibold text-text-primary",
535
- children: S("healthybowl.network.experts.card.about", "About")
458
+ children: x("healthybowl.network.experts.card.about", "About")
536
459
  }),
537
- /* @__PURE__ */ f("p", {
460
+ /* @__PURE__ */ d("p", {
538
461
  className: "mt-1 text-xs text-text-secondary",
539
- children: S("healthybowl.network.experts.card.aboutText", "{{name}} is a seasoned agricultural expert specializing in {{specialization}} with {{count}} years of field and research experience. Known for practical, evidence-based consulting that delivers measurable results.", {
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__ */ p("div", {
468
+ /* @__PURE__ */ f("div", {
546
469
  className: "mt-2 grid grid-cols-2 gap-2 text-xs",
547
- children: [/* @__PURE__ */ p("div", {
470
+ children: [/* @__PURE__ */ f("div", {
548
471
  className: "rounded bg-bg-surface p-2",
549
- children: [/* @__PURE__ */ f("p", {
472
+ children: [/* @__PURE__ */ d("p", {
550
473
  className: "font-medium text-text-primary",
551
- children: S("healthybowl.network.experts.card.pastConsultations", "Past Consultations")
552
- }), /* @__PURE__ */ p("p", {
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__ */ p("div", {
479
+ }), /* @__PURE__ */ f("div", {
557
480
  className: "rounded bg-bg-surface p-2",
558
- children: [/* @__PURE__ */ f("p", {
481
+ children: [/* @__PURE__ */ d("p", {
559
482
  className: "font-medium text-text-primary",
560
- children: S("healthybowl.network.experts.card.avgResponse", "Avg Response")
561
- }), /* @__PURE__ */ f("p", {
483
+ children: x("healthybowl.network.experts.card.avgResponse", "Avg Response")
484
+ }), /* @__PURE__ */ d("p", {
562
485
  className: "text-text-secondary",
563
- children: S("healthybowl.network.experts.card.avgResponseValue", "< 2 hours")
486
+ children: x("healthybowl.network.experts.card.avgResponseValue", "< 2 hours")
564
487
  })]
565
488
  })]
566
489
  })
567
490
  ]
568
491
  }),
569
- /* @__PURE__ */ p("div", {
492
+ /* @__PURE__ */ f("div", {
570
493
  className: "mt-3 flex items-center justify-between border-t border-border-subtle pt-3",
571
- children: [/* @__PURE__ */ f("span", {
494
+ children: [/* @__PURE__ */ d("span", {
572
495
  className: "text-sm font-medium text-text-primary",
573
- children: S("healthybowl.network.experts.card.pricePerHour", "{{price}}/hr", { price: t(e.hourlyRate, "INR") })
574
- }), /* @__PURE__ */ p("div", {
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__ */ f(m, {
578
- onClick: () => Ze(n ? null : e.id),
579
- "aria-label": S("healthybowl.network.experts.actions.viewProfile", "View profile"),
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__ */ f(he, { className: "h-3.5 w-3.5" })
505
+ children: /* @__PURE__ */ d(ge, { className: "h-3.5 w-3.5" })
583
506
  }),
584
- /* @__PURE__ */ f(m, {
585
- onClick: () => ht(e),
586
- "aria-label": S("healthybowl.network.experts.actions.editExpert", "Edit expert"),
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__ */ f(ve, { className: "h-3.5 w-3.5" })
512
+ children: /* @__PURE__ */ d(ye, { className: "h-3.5 w-3.5" })
590
513
  }),
591
- /* @__PURE__ */ f(m, {
592
- onClick: () => _t(e),
593
- disabled: nt === e.id,
594
- "aria-label": S("healthybowl.network.experts.actions.deleteExpert", "Delete expert"),
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__ */ f(be, { className: "h-3.5 w-3.5" })
521
+ children: /* @__PURE__ */ d(be, { className: "h-3.5 w-3.5" })
599
522
  }),
600
- /* @__PURE__ */ p(m, {
601
- onClick: () => pt(e),
523
+ /* @__PURE__ */ f(p, {
524
+ onClick: () => tt(e),
602
525
  size: "sm",
603
526
  children: [
604
- /* @__PURE__ */ f(l, { className: "h-3.5 w-3.5" }),
527
+ /* @__PURE__ */ d(s, { className: "h-3.5 w-3.5" }),
605
528
  " ",
606
- S("healthybowl.network.experts.actions.bookConsultation", "Book Consultation")
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
- }) : C.length === 0 ? Re.network ? /* @__PURE__ */ f(re, {}) : Le.network ? /* @__PURE__ */ f(ee, { onRetry: w }) : /* @__PURE__ */ f(s, {
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: S("healthybowl.network.experts.emptyState.none.title", "No experts available yet"),
618
- description: S("healthybowl.network.experts.emptyState.none.description", "There are no agricultural experts in your network yet. Add one to get started."),
619
- action: /* @__PURE__ */ p(m, {
620
- onClick: mt,
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__ */ f(u, { className: "h-3.5 w-3.5" }),
545
+ /* @__PURE__ */ d(c, { className: "h-3.5 w-3.5" }),
623
546
  " ",
624
- S("healthybowl.network.experts.actions.addExpert", "Add Expert")
547
+ x("healthybowl.network.experts.actions.addExpert", "Add Expert")
625
548
  ]
626
549
  })
627
- }) : /* @__PURE__ */ f(s, {
550
+ }) : /* @__PURE__ */ d(te, {
628
551
  illustration: "empty-search",
629
- title: S("healthybowl.network.experts.emptyState.noMatch.title", "No experts found"),
630
- description: S("healthybowl.network.experts.emptyState.noMatch.description", "No experts match your current filters. Try broadening your search."),
631
- action: /* @__PURE__ */ f(m, {
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
- O(""), A("All"), M("All");
556
+ We(""), E("All"), O("All");
634
557
  },
635
- children: S("healthybowl.network.experts.actions.clearFilters", "Clear Filters")
558
+ children: x("healthybowl.network.experts.actions.clearFilters", "Clear Filters")
636
559
  })
637
560
  }),
638
- ft.length > 0 && /* @__PURE__ */ p("div", {
561
+ J.length > 0 && /* @__PURE__ */ f("div", {
639
562
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
640
- children: [/* @__PURE__ */ p("h3", {
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__ */ f(l, { className: "h-4 w-4" }),
566
+ /* @__PURE__ */ d(s, { className: "h-4 w-4" }),
644
567
  " ",
645
- S("healthybowl.network.experts.myConsultations.heading", "My Expert Consultations")
568
+ x("healthybowl.network.experts.myConsultations.heading", "My Expert Consultations")
646
569
  ]
647
- }), /* @__PURE__ */ f("ul", {
570
+ }), /* @__PURE__ */ d("ul", {
648
571
  className: "mt-3 divide-y divide-border",
649
- children: ft.map((e) => /* @__PURE__ */ p("li", {
572
+ children: J.map((e) => /* @__PURE__ */ f("li", {
650
573
  className: "flex items-center justify-between gap-3 py-2.5",
651
- children: [/* @__PURE__ */ p("div", {
574
+ children: [/* @__PURE__ */ f("div", {
652
575
  className: "min-w-0",
653
- children: [
654
- /* @__PURE__ */ f("p", {
655
- className: "truncate text-sm font-medium text-text-primary",
656
- children: e.topic
657
- }),
658
- /* @__PURE__ */ p("p", {
659
- className: "text-xs text-text-secondary",
660
- children: [
661
- e.consultantName,
662
- " · ",
663
- n(e.requestedDate),
664
- " ·",
665
- " ",
666
- qe[e.mode] ?? e.mode
667
- ]
668
- }),
669
- e.fee > 0 && e.paymentStatus === "PAID" && e.paymentReference && /* @__PURE__ */ f("p", {
670
- className: "truncate text-xs text-text-secondary",
671
- children: S("healthybowl.network.experts.payment.reference", "Payment reference: {{reference}}", { reference: e.paymentReference })
672
- })
673
- ]
674
- }), /* @__PURE__ */ p("div", {
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.fee > 0 && e.paymentStatus === "PENDING" && (e.status === "REQUESTED" || e.status === "CONFIRMED") && /* @__PURE__ */ p(m, {
678
- size: "sm",
679
- onClick: () => void bt(e),
680
- disabled: at.has(e.id) || G === e.id,
681
- children: [
682
- /* @__PURE__ */ f(Se, { className: "h-3.5 w-3.5" }),
683
- " ",
684
- at.has(e.id) ? S("healthybowl.network.experts.actions.paying", "Opening checkout…") : S("healthybowl.network.experts.actions.payNow", "Pay Now")
685
- ]
686
- }),
687
- e.status === "REQUESTED" && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(m, {
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: G === e.id,
692
- children: S("healthybowl.network.experts.actions.accept", "Accept")
693
- }), /* @__PURE__ */ f(m, {
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: G === e.id,
698
- children: S("healthybowl.network.experts.actions.decline", "Decline")
603
+ disabled: W === e.id,
604
+ children: x("healthybowl.network.experts.actions.decline", "Decline")
699
605
  })] }),
700
- e.status === "CONFIRMED" && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(m, {
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: G === e.id,
705
- children: S("healthybowl.network.experts.actions.complete", "Complete")
706
- }), /* @__PURE__ */ f(m, {
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: G === e.id,
711
- children: S("healthybowl.network.experts.actions.cancel", "Cancel")
616
+ disabled: W === e.id,
617
+ children: x("healthybowl.network.experts.actions.cancel", "Cancel")
712
618
  })] }),
713
- /* @__PURE__ */ f(o, {
714
- label: E[e.status] ?? e.status,
715
- variant: we(e.status),
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__ */ f(ie, {
728
- open: F !== null,
629
+ /* @__PURE__ */ d(oe, {
630
+ open: j !== null,
729
631
  onClose: X,
730
- title: S("healthybowl.network.experts.bookingModal.title", "Book Consultation"),
731
- description: F ? S("healthybowl.network.experts.bookingModal.description", "Request a session with {{name}}", { name: F.name }) : void 0,
732
- footer: /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(m, {
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: S("healthybowl.common.cancel", "Cancel")
736
- }), /* @__PURE__ */ f(m, {
737
- onClick: vt,
738
- disabled: z,
739
- children: z ? S("healthybowl.network.experts.bookingModal.booking", "Booking…") : S("healthybowl.network.experts.bookingModal.confirm", "Confirm Booking")
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__ */ p("div", {
643
+ children: /* @__PURE__ */ f("div", {
742
644
  className: "space-y-4",
743
645
  children: [
744
- /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.bookingModal.fields.topic.label", "Topic")
748
- }), /* @__PURE__ */ f("input", {
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: L.topic,
653
+ value: M.topic,
752
654
  onChange: (e) => Y("topic", e.target.value),
753
655
  maxLength: 200,
754
- placeholder: S("healthybowl.network.experts.bookingModal.fields.topic.placeholder", "What would you like help with?"),
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__ */ p("div", {
659
+ /* @__PURE__ */ f("div", {
758
660
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
759
- children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.bookingModal.fields.preferredDate.label", "Preferred date")
763
- }), /* @__PURE__ */ f("input", {
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: L.requestedDate,
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.bookingModal.fields.mode.label", "Mode")
774
- }), /* @__PURE__ */ p(h, {
775
- value: L.mode,
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__ */ f(v, {
679
+ children: [/* @__PURE__ */ d(_, {
778
680
  id: "expert-booking-mode",
779
681
  className: "w-full",
780
- children: /* @__PURE__ */ f(y, {})
781
- }), /* @__PURE__ */ f(g, { children: He.map((e) => /* @__PURE__ */ f(_, {
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.bookingModal.fields.notes.label", "Notes (optional)")
791
- }), /* @__PURE__ */ f("textarea", {
692
+ children: x("healthybowl.network.experts.bookingModal.fields.notes.label", "Notes (optional)")
693
+ }), /* @__PURE__ */ d("textarea", {
792
694
  id: "expert-booking-notes",
793
- value: L.notes,
695
+ value: M.notes,
794
696
  onChange: (e) => Y("notes", e.target.value),
795
697
  rows: 3,
796
698
  maxLength: 1e3,
797
- placeholder: S("healthybowl.network.experts.bookingModal.fields.notes.placeholder", "Any additional context for the expert"),
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
- F && (F.hourlyRate > 0 ? /* @__PURE__ */ p("div", {
801
- className: "space-y-1 text-xs text-text-secondary",
802
- children: [/* @__PURE__ */ p("p", { children: [
803
- S("healthybowl.network.experts.bookingModal.fee", "One-hour consultation fee, payable on booking:"),
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__ */ f("span", {
707
+ /* @__PURE__ */ d("span", {
806
708
  className: "font-medium text-text-primary",
807
- children: t(F.hourlyRate, "INR")
709
+ children: x("healthybowl.network.experts.card.pricePerHour", "{{price}}/hr", { price: t(j.hourlyRate, "INR") })
808
710
  })
809
- ] }), /* @__PURE__ */ f("p", { children: S("healthybowl.network.experts.bookingModal.payoutNote", "Your payment is collected by the farm. Settlement with the expert is arranged separately.") })]
810
- }) : /* @__PURE__ */ f("p", {
811
- className: "text-xs text-text-secondary",
812
- children: S("healthybowl.network.experts.bookingModal.noFee", "No fee for this consultation.")
813
- }))
711
+ ]
712
+ })
814
713
  ]
815
714
  })
816
715
  }),
817
- /* @__PURE__ */ f(ie, {
818
- open: $e,
716
+ /* @__PURE__ */ d(oe, {
717
+ open: Xe,
819
718
  onClose: Q,
820
- title: V ? S("healthybowl.network.experts.form.editTitle", "Edit Expert") : S("healthybowl.network.experts.form.addTitle", "Add Expert"),
821
- description: S("healthybowl.network.experts.form.description", "Manage an expert in your network directory"),
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__ */ p(d, { children: [/* @__PURE__ */ f(m, {
722
+ footer: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(p, {
824
723
  onClick: Q,
825
724
  variant: "outline",
826
- children: S("healthybowl.common.cancel", "Cancel")
827
- }), /* @__PURE__ */ f(m, {
828
- onClick: gt,
829
- disabled: et,
830
- children: et ? S("healthybowl.network.experts.form.saving", "Saving…") : S("healthybowl.network.experts.form.save", "Save Expert")
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__ */ p("div", {
731
+ children: /* @__PURE__ */ f("div", {
833
732
  className: "space-y-4",
834
733
  children: [
835
- /* @__PURE__ */ p("div", {
734
+ /* @__PURE__ */ f("div", {
836
735
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
837
- children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.form.fields.name.label", "Name")
841
- }), /* @__PURE__ */ f("input", {
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: U.name,
743
+ value: z.name,
845
744
  onChange: (e) => Z("name", e.target.value),
846
745
  maxLength: 120,
847
- placeholder: S("healthybowl.network.experts.form.fields.name.placeholder", "Full name"),
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.form.fields.specialization.label", "Specialization")
853
- }), /* @__PURE__ */ f("input", {
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: U.specialization,
755
+ value: z.specialization,
857
756
  onChange: (e) => Z("specialization", e.target.value),
858
757
  maxLength: 120,
859
- placeholder: S("healthybowl.network.experts.form.fields.specialization.placeholder", "e.g. Soil Science & Fertility"),
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__ */ p("div", {
762
+ /* @__PURE__ */ f("div", {
864
763
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
865
764
  children: [
866
- /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.form.fields.experience.label", "Experience (years)")
870
- }), /* @__PURE__ */ f("input", {
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: U.experience,
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.form.fields.rating.label", "Rating")
882
- }), /* @__PURE__ */ f("input", {
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: U.rating,
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.form.fields.hourlyRate.label", "Hourly rate")
896
- }), /* @__PURE__ */ f("input", {
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: U.hourlyRate,
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__ */ p("div", {
806
+ /* @__PURE__ */ f("div", {
908
807
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
909
- children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.form.fields.location.label", "Location")
913
- }), /* @__PURE__ */ f("input", {
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: U.location,
815
+ value: z.location,
917
816
  onChange: (e) => Z("location", e.target.value),
918
817
  maxLength: 120,
919
- placeholder: S("healthybowl.network.experts.form.fields.location.placeholder", "City, Region"),
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__ */ p("div", { children: [/* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.form.fields.availability.label", "Availability")
925
- }), /* @__PURE__ */ p(h, {
926
- value: U.availability,
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__ */ f(v, {
827
+ children: [/* @__PURE__ */ d(_, {
929
828
  id: "expert-form-availability",
930
829
  className: "w-full",
931
- children: /* @__PURE__ */ f(y, {})
932
- }), /* @__PURE__ */ f(g, { children: lt.map((e) => /* @__PURE__ */ f(_, {
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__ */ p("div", { children: [
939
- /* @__PURE__ */ f("label", {
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: S("healthybowl.network.experts.form.fields.languages.label", "Languages")
841
+ children: x("healthybowl.network.experts.form.fields.languages.label", "Languages")
943
842
  }),
944
- /* @__PURE__ */ f("input", {
843
+ /* @__PURE__ */ d("input", {
945
844
  id: "expert-form-languages",
946
845
  type: "text",
947
- value: U.languages,
846
+ value: z.languages,
948
847
  onChange: (e) => Z("languages", e.target.value),
949
- placeholder: S("healthybowl.network.experts.form.fields.languages.placeholder", "English, Hindi, Tamil"),
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__ */ f("p", {
851
+ /* @__PURE__ */ d("p", {
953
852
  className: "mt-1 text-xs text-text-secondary",
954
- children: S("healthybowl.network.experts.form.fields.languages.hint", "Separate multiple languages with commas")
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__ */ f(ne, {
961
- toasts: ut,
962
- onDismiss: dt
859
+ /* @__PURE__ */ d(ie, {
860
+ toasts: $e,
861
+ onDismiss: et
963
862
  })
964
863
  ]
965
864
  });
966
865
  };
967
866
  //#endregion
968
- export { S as ExpertsPage };
867
+ export { x as ExpertsPage };
969
868
 
970
869
  //# sourceMappingURL=ExpertsPage.js.map