@burdenoff/microfe-healthybowl 2026.902.21 → 2026.902.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 (21) hide show
  1. package/dist/healthybowl/hooks/useHealthyBowlData.js +0 -15
  2. package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
  3. package/dist/healthybowl/offline/graphql.js.map +1 -1
  4. package/dist/healthybowl/offline/syncEngine.js +1 -2
  5. package/dist/healthybowl/offline/syncEngine.js.map +1 -1
  6. package/dist/healthybowl/offline/types.js.map +1 -1
  7. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +188 -228
  8. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
  9. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +191 -261
  10. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
  11. package/dist/healthybowl/pages/network/ExpertsPage.js +419 -520
  12. package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
  13. package/package.json +1 -1
  14. package/dist/healthybowl/hooks/useConsultationPayments.js +0 -59
  15. package/dist/healthybowl/hooks/useConsultationPayments.js.map +0 -1
  16. package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js +0 -49
  17. package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js.map +0 -1
  18. package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js +0 -48
  19. package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js.map +0 -1
  20. package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js +0 -54
  21. package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js.map +0 -1
@@ -1,30 +1,25 @@
1
- import { useHealthyBowl as e } from "../../context/HealthyBowlContext.js";
2
- import { cn as t, formatCurrency as n, formatDate as r } from "../../utils/helpers.js";
3
- import { PageLayout as i } from "../../components/PageLayout.js";
4
- import { useBasePath as a } from "../../hooks/useBasePath.js";
5
- import { StatCard as o } from "../../components/StatCard.js";
6
- import { StatusBadge as s } from "../../components/StatusBadge.js";
7
- import { EmptyState as c } from "../../components/EmptyState.js";
8
- import { ErrorState as l } from "../../components/ErrorState.js";
9
- import { FilterBar as u } from "../../components/FilterBar.js";
10
- import { ToastContainer as d } from "../../components/Toast.js";
11
- import { useConfirm as f } from "../../components/ConfirmDialog.js";
12
- import { PageLoader as p } from "../../components/PageLoader.js";
13
- import { useToast as m } from "../../hooks/useToast.js";
1
+ import { cn as e, formatCurrency as t, formatDate as n } from "../../utils/helpers.js";
2
+ import { PageLayout as r } from "../../components/PageLayout.js";
3
+ import { useBasePath as i } from "../../hooks/useBasePath.js";
4
+ import { StatCard as a } from "../../components/StatCard.js";
5
+ import { StatusBadge as o } from "../../components/StatusBadge.js";
6
+ import { EmptyState as s } from "../../components/EmptyState.js";
7
+ import { ErrorState as c } from "../../components/ErrorState.js";
8
+ import { FilterBar as l } from "../../components/FilterBar.js";
9
+ import { ToastContainer as u } from "../../components/Toast.js";
10
+ import { PageLoader as d } from "../../components/PageLoader.js";
11
+ import { useToast as f } from "../../hooks/useToast.js";
14
12
  import "../../components/index.js";
15
- import { useHealthyBowlData as h } from "../../hooks/useHealthyBowlData.js";
16
- import { useOfflineSync as g } from "../../offline/OfflineSyncProvider.js";
17
- import { useCanManageGovernmentSchemes as ee } from "./useCanManageGovernmentSchemes.js";
18
- import { useSchemeApplicationTransition as te } from "./useSchemeApplicationTransition.js";
19
- import { isTerminalSchemeApplicationStatus as _, transitionActionsFor as v } from "./schemeApplicationTransitions.js";
20
- import { useMemo as ne, useState as y } from "react";
21
- import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
22
- import { CheckCircle as x, ChevronDown as S, ChevronUp as C, Clock as re, CloudOff as ie, FileText as ae, Landmark as w, Plus as T, XCircle as E } from "lucide-react";
23
- import { useNavigate as D } from "react-router";
24
- import { jsx as O, jsxs as k } from "react/jsx-runtime";
25
- import { Button as A } from "@burdenoff/fe-libs/ui";
13
+ import { useHealthyBowlData as ee } from "../../hooks/useHealthyBowlData.js";
14
+ import { useOfflineSync as p } from "../../offline/OfflineSyncProvider.js";
15
+ import { useMemo as m, useState as h } from "react";
16
+ import { useI18n as g } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
+ import { CheckCircle as _, ChevronDown as v, ChevronUp as y, Clock as b, CloudOff as x, FileText as S, Landmark as C, Plus as w, XCircle as T } from "lucide-react";
18
+ import { useNavigate as E } from "react-router";
19
+ import { jsx as D, jsxs as O } from "react/jsx-runtime";
20
+ import { Button as k } from "@burdenoff/fe-libs/ui";
26
21
  //#region src/healthybowl/pages/government-schemes/ApplicationTrackingPage.tsx
27
- var j = (e) => {
22
+ var A = (e) => {
28
23
  switch (e) {
29
24
  case "approved":
30
25
  case "disbursed": return "success";
@@ -33,299 +28,264 @@ var j = (e) => {
33
28
  case "rejected": return "error";
34
29
  default: return "default";
35
30
  }
36
- }, M = [
31
+ }, j = [
37
32
  "submitted",
38
33
  "under_review",
39
34
  "approved",
40
35
  "disbursed"
41
- ], N = (e) => {
36
+ ], M = (e) => {
42
37
  if (e === "rejected") return 1;
43
- let t = M.indexOf(e);
38
+ let t = j.indexOf(e);
44
39
  return t >= 0 ? t : 0;
45
40
  };
46
- function P(e, t) {
47
- return t ? n(e, t) : new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }).format(e);
41
+ function N(e, n) {
42
+ return n ? t(e, n) : new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }).format(e);
48
43
  }
49
- var F = () => {
50
- let { t: n } = b(), { schemeApplications: F, governmentSchemes: I, errors: L, loadings: R, refetch: z } = h(), { pendingMutations: B } = g(), V = B.filter((e) => e.status !== "SYNCED"), H = [
44
+ var P = () => {
45
+ let { t } = g(), { schemeApplications: P, governmentSchemes: F, errors: I, loadings: L, refetch: R } = ee(), { pendingMutations: z } = p(), B = z.filter((e) => e.status !== "SYNCED"), te = [
51
46
  {
52
47
  value: "all",
53
- label: n("healthybowl.common.all", "All")
48
+ label: t("healthybowl.common.all", "All")
54
49
  },
55
50
  {
56
51
  value: "submitted",
57
- label: n("healthybowl.governmentSchemes.applicationTracking.filters.submitted", "Submitted")
52
+ label: t("healthybowl.governmentSchemes.applicationTracking.filters.submitted", "Submitted")
58
53
  },
59
54
  {
60
55
  value: "under_review",
61
- label: n("healthybowl.governmentSchemes.applicationTracking.filters.underReview", "Under Review")
56
+ label: t("healthybowl.governmentSchemes.applicationTracking.filters.underReview", "Under Review")
62
57
  },
63
58
  {
64
59
  value: "approved",
65
- label: n("healthybowl.governmentSchemes.applicationTracking.filters.approved", "Approved")
60
+ label: t("healthybowl.governmentSchemes.applicationTracking.filters.approved", "Approved")
66
61
  },
67
62
  {
68
63
  value: "rejected",
69
- label: n("healthybowl.governmentSchemes.applicationTracking.filters.rejected", "Rejected")
64
+ label: t("healthybowl.governmentSchemes.applicationTracking.filters.rejected", "Rejected")
70
65
  },
71
66
  {
72
67
  value: "disbursed",
73
- label: n("healthybowl.governmentSchemes.applicationTracking.filters.disbursed", "Disbursed")
68
+ label: t("healthybowl.governmentSchemes.applicationTracking.filters.disbursed", "Disbursed")
74
69
  }
75
- ], U = D(), { buildPath: W } = a(), { toast: G, toasts: K, dismiss: q } = m(), { workspaceId: J } = e(), { canManage: Y } = ee(J), { transition: oe, pendingId: X } = te(), se = f(), ce = async (e, t) => {
76
- _(t.status) && !await se({
77
- title: n("healthybowl.governmentSchemes.tracking.confirm.title", "This cannot be undone"),
78
- message: n("healthybowl.governmentSchemes.tracking.confirm.message", "Moving this application to {{status}} is final — nothing can move it out of that state afterwards. The applicant is notified straight away.", { status: n(t.labelKey, t.labelFallback).toLowerCase() }),
79
- okButtonTitle: n(t.labelKey, t.labelFallback),
80
- destructive: t.destructive
81
- }) || await oe(e.id, t.status, {
82
- onSuccess: () => G({
83
- title: n("healthybowl.governmentSchemes.tracking.toast.moved", "Application updated"),
84
- variant: "success"
85
- }),
86
- onError: (e) => G({
87
- title: n("healthybowl.governmentSchemes.tracking.toast.moveFailed", "Could not update the application"),
88
- description: e,
89
- variant: "error"
90
- })
91
- });
92
- }, [Z, le] = y("all"), [Q, ue] = y(""), [de, fe] = y(null), pe = ne(() => new Map(I.map((e) => [e.id, e.currency])), [I]), me = F.length, he = F.filter((e) => e.status === "approved" || e.status === "disbursed").length, ge = F.filter((e) => e.status === "under_review").length, _e = F.filter((e) => e.status === "rejected").length, $ = F.filter((e) => {
93
- let t = Z === "all" || e.status === Z, n = Q === "" || (e.schemeName ?? "").toLowerCase().includes(Q.toLowerCase());
70
+ ], V = E(), { buildPath: H } = i(), { toasts: U, dismiss: W } = f(), [G, K] = h("all"), [q, J] = h(""), [Y, X] = h(null), Z = m(() => new Map(F.map((e) => [e.id, e.currency])), [F]), Q = P.length, ne = P.filter((e) => e.status === "approved" || e.status === "disbursed").length, re = P.filter((e) => e.status === "under_review").length, ie = P.filter((e) => e.status === "rejected").length, $ = P.filter((e) => {
71
+ let t = G === "all" || e.status === G, n = q === "" || (e.schemeName ?? "").toLowerCase().includes(q.toLowerCase());
94
72
  return t && n;
95
73
  });
96
- return /* @__PURE__ */ k(i, {
97
- title: n("healthybowl.governmentSchemes.applicationTracking.title", "Application Tracking"),
98
- description: n("healthybowl.governmentSchemes.applicationTracking.description", "Track your scheme applications"),
74
+ return /* @__PURE__ */ O(r, {
75
+ title: t("healthybowl.governmentSchemes.applicationTracking.title", "Application Tracking"),
76
+ description: t("healthybowl.governmentSchemes.applicationTracking.description", "Track your scheme applications"),
99
77
  purpose: "Follow every scheme application from submitted to approved. See what's pending, what needs more documents, and what's been granted — so nothing stalls and you can chase up anything that's stuck.",
100
78
  children: [
101
- /* @__PURE__ */ k("div", {
79
+ /* @__PURE__ */ O("div", {
102
80
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
103
81
  children: [
104
- /* @__PURE__ */ O(o, {
82
+ /* @__PURE__ */ D(a, {
105
83
  hero: !0,
106
- label: n("healthybowl.governmentSchemes.applicationTracking.stats.total.label", "Total Applications"),
107
- value: me,
108
- icon: /* @__PURE__ */ O(ae, { className: "h-4 w-4" })
84
+ label: t("healthybowl.governmentSchemes.applicationTracking.stats.total.label", "Total Applications"),
85
+ value: Q,
86
+ icon: /* @__PURE__ */ D(S, { className: "h-4 w-4" })
109
87
  }),
110
- /* @__PURE__ */ O(o, {
111
- label: n("healthybowl.governmentSchemes.applicationTracking.stats.approved.label", "Approved"),
112
- value: he,
113
- icon: /* @__PURE__ */ O(x, { className: "h-4 w-4" })
88
+ /* @__PURE__ */ D(a, {
89
+ label: t("healthybowl.governmentSchemes.applicationTracking.stats.approved.label", "Approved"),
90
+ value: ne,
91
+ icon: /* @__PURE__ */ D(_, { className: "h-4 w-4" })
114
92
  }),
115
- /* @__PURE__ */ O(o, {
116
- label: n("healthybowl.governmentSchemes.applicationTracking.stats.underReview.label", "Under Review"),
117
- value: ge,
118
- icon: /* @__PURE__ */ O(re, { className: "h-4 w-4" })
93
+ /* @__PURE__ */ D(a, {
94
+ label: t("healthybowl.governmentSchemes.applicationTracking.stats.underReview.label", "Under Review"),
95
+ value: re,
96
+ icon: /* @__PURE__ */ D(b, { className: "h-4 w-4" })
119
97
  }),
120
- /* @__PURE__ */ O(o, {
121
- label: n("healthybowl.governmentSchemes.applicationTracking.stats.rejected.label", "Rejected"),
122
- value: _e,
123
- icon: /* @__PURE__ */ O(E, { className: "h-4 w-4" })
98
+ /* @__PURE__ */ D(a, {
99
+ label: t("healthybowl.governmentSchemes.applicationTracking.stats.rejected.label", "Rejected"),
100
+ value: ie,
101
+ icon: /* @__PURE__ */ D(T, { className: "h-4 w-4" })
124
102
  })
125
103
  ]
126
104
  }),
127
- /* @__PURE__ */ O(u, {
128
- searchValue: Q,
129
- onSearchChange: ue,
130
- searchPlaceholder: n("healthybowl.governmentSchemes.applicationTracking.searchPlaceholder", "Search by scheme name..."),
131
- filters: /* @__PURE__ */ O("div", {
105
+ /* @__PURE__ */ D(l, {
106
+ searchValue: q,
107
+ onSearchChange: J,
108
+ searchPlaceholder: t("healthybowl.governmentSchemes.applicationTracking.searchPlaceholder", "Search by scheme name..."),
109
+ filters: /* @__PURE__ */ D("div", {
132
110
  className: "flex flex-wrap items-center gap-1.5",
133
- children: H.map((e) => /* @__PURE__ */ O("button", {
111
+ children: te.map((t) => /* @__PURE__ */ D("button", {
134
112
  type: "button",
135
- onClick: () => le(e.value),
136
- className: t("rounded-full px-3 py-1 text-xs font-medium transition-colors", Z === e.value ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:bg-bg-sunken/80"),
137
- children: e.label
138
- }, e.value))
113
+ onClick: () => K(t.value),
114
+ className: e("rounded-full px-3 py-1 text-xs font-medium transition-colors", G === t.value ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:bg-bg-sunken/80"),
115
+ children: t.label
116
+ }, t.value))
139
117
  }),
140
- actions: /* @__PURE__ */ k(A, {
118
+ actions: /* @__PURE__ */ O(k, {
141
119
  variant: "default",
142
120
  size: "sm",
143
- onClick: () => U(W("government-schemes/discover")),
121
+ onClick: () => V(H("government-schemes/discover")),
144
122
  children: [
145
- /* @__PURE__ */ O(T, { className: "h-3.5 w-3.5" }),
123
+ /* @__PURE__ */ D(w, { className: "h-3.5 w-3.5" }),
146
124
  " ",
147
- n("healthybowl.governmentSchemes.applicationTracking.actions.newApplication", "New Application")
125
+ t("healthybowl.governmentSchemes.applicationTracking.actions.newApplication", "New Application")
148
126
  ]
149
127
  })
150
128
  }),
151
- V.length > 0 && /* @__PURE__ */ O("div", {
129
+ B.length > 0 && /* @__PURE__ */ D("div", {
152
130
  className: "space-y-3",
153
- children: V.map((e) => {
154
- let n = e.status === "FAILED";
155
- return /* @__PURE__ */ k("div", {
156
- className: t("flex items-center gap-3 rounded-lg border border-dashed p-4", n ? "border-status-error-border bg-status-error-bgSubtle" : "border-border-subtle bg-bg-sunken"),
131
+ children: B.map((t) => {
132
+ let n = t.status === "FAILED";
133
+ return /* @__PURE__ */ O("div", {
134
+ className: e("flex items-center gap-3 rounded-lg border border-dashed p-4", n ? "border-status-error-border bg-status-error-bgSubtle" : "border-border-subtle bg-bg-sunken"),
157
135
  children: [
158
- /* @__PURE__ */ O("div", {
136
+ /* @__PURE__ */ D("div", {
159
137
  className: "rounded-md bg-bg-surface p-2",
160
- children: n ? /* @__PURE__ */ O(E, { className: "h-5 w-5 text-status-error-text" }) : /* @__PURE__ */ O(ie, { className: "h-5 w-5 text-text-secondary" })
138
+ children: n ? /* @__PURE__ */ D(T, { className: "h-5 w-5 text-status-error-text" }) : /* @__PURE__ */ D(x, { className: "h-5 w-5 text-text-secondary" })
161
139
  }),
162
- /* @__PURE__ */ k("div", {
140
+ /* @__PURE__ */ O("div", {
163
141
  className: "min-w-0 flex-1",
164
- children: [/* @__PURE__ */ O("p", {
142
+ children: [/* @__PURE__ */ D("p", {
165
143
  className: "truncate text-sm font-semibold text-text-primary",
166
- children: e.label
167
- }), /* @__PURE__ */ O("p", {
144
+ children: t.label
145
+ }), /* @__PURE__ */ D("p", {
168
146
  className: "mt-0.5 text-xs text-text-secondary",
169
- children: n ? e.message ?? "This application was refused and has not been submitted." : "Saved on this device — it will be submitted automatically when you have a connection."
147
+ children: n ? t.message ?? "This application was refused and has not been submitted." : "Saved on this device — it will be submitted automatically when you have a connection."
170
148
  })]
171
149
  }),
172
- /* @__PURE__ */ O("span", {
173
- className: t("shrink-0 rounded-full px-2.5 py-0.5 text-xs font-semibold", n ? "bg-status-error-bgSubtle text-status-error-text" : "bg-status-warning-bgSubtle text-status-warning-text"),
150
+ /* @__PURE__ */ D("span", {
151
+ className: e("shrink-0 rounded-full px-2.5 py-0.5 text-xs font-semibold", n ? "bg-status-error-bgSubtle text-status-error-text" : "bg-status-warning-bgSubtle text-status-warning-text"),
174
152
  children: n ? "Not submitted" : "Queued"
175
153
  })
176
154
  ]
177
- }, e.clientId);
155
+ }, t.clientId);
178
156
  })
179
157
  }),
180
- $.length === 0 ? R.government ? /* @__PURE__ */ O(p, {}) : L.government ? /* @__PURE__ */ O(l, { onRetry: z }) : /* @__PURE__ */ O(c, {
158
+ $.length === 0 ? L.government ? /* @__PURE__ */ D(d, {}) : I.government ? /* @__PURE__ */ D(c, { onRetry: R }) : /* @__PURE__ */ D(s, {
181
159
  illustration: "empty-files",
182
- title: n("healthybowl.governmentSchemes.applicationTracking.emptyState.title", "No Applications Found"),
183
- description: Z === "all" ? n("healthybowl.governmentSchemes.applicationTracking.emptyState.message", "You have not submitted any applications yet.") : n("healthybowl.governmentSchemes.applicationTracking.emptyState.filteredMessage", "No applications match the selected filter."),
184
- action: /* @__PURE__ */ O(A, {
160
+ title: t("healthybowl.governmentSchemes.applicationTracking.emptyState.title", "No Applications Found"),
161
+ description: G === "all" ? t("healthybowl.governmentSchemes.applicationTracking.emptyState.message", "You have not submitted any applications yet.") : t("healthybowl.governmentSchemes.applicationTracking.emptyState.filteredMessage", "No applications match the selected filter."),
162
+ action: /* @__PURE__ */ D(k, {
185
163
  variant: "default",
186
- onClick: () => U(W("government-schemes/discover")),
187
- children: n("healthybowl.governmentSchemes.applicationTracking.actions.browseSchemes", "Browse Schemes")
164
+ onClick: () => V(H("government-schemes/discover")),
165
+ children: t("healthybowl.governmentSchemes.applicationTracking.actions.browseSchemes", "Browse Schemes")
188
166
  })
189
- }) : /* @__PURE__ */ O("div", {
167
+ }) : /* @__PURE__ */ D("div", {
190
168
  className: "space-y-4",
191
- children: $.map((e) => {
192
- let i = de === e.id, a = Y ? v(e.status) : [], o = e.status === "rejected", c = N(e.status), l = pe.get(e.schemeId);
193
- return /* @__PURE__ */ k("div", {
169
+ children: $.map((r) => {
170
+ let i = Y === r.id, a = r.status === "rejected", s = M(r.status), c = Z.get(r.schemeId);
171
+ return /* @__PURE__ */ O("div", {
194
172
  className: "rounded-lg border border-border-subtle bg-bg-surface",
195
- children: [/* @__PURE__ */ k("button", {
173
+ children: [/* @__PURE__ */ O("button", {
196
174
  type: "button",
197
- onClick: () => fe(i ? null : e.id),
175
+ onClick: () => X(i ? null : r.id),
198
176
  className: "flex w-full items-center justify-between p-5 text-start",
199
- children: [/* @__PURE__ */ k("div", {
177
+ children: [/* @__PURE__ */ O("div", {
200
178
  className: "flex items-center gap-3",
201
- children: [/* @__PURE__ */ O("div", {
179
+ children: [/* @__PURE__ */ D("div", {
202
180
  className: "rounded-md bg-bg-sunken p-2",
203
- children: /* @__PURE__ */ O(w, { className: "h-5 w-5 text-text-secondary" })
204
- }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
181
+ children: /* @__PURE__ */ D(C, { className: "h-5 w-5 text-text-secondary" })
182
+ }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
205
183
  className: "text-sm font-semibold text-text-primary",
206
- children: e.schemeName
207
- }), /* @__PURE__ */ O("p", {
184
+ children: r.schemeName
185
+ }), /* @__PURE__ */ D("p", {
208
186
  className: "mt-0.5 text-xs text-text-secondary",
209
- children: n("healthybowl.governmentSchemes.applicationTracking.card.applied", "Applied: {{date}}", { date: r(e.appliedDate) })
187
+ children: t("healthybowl.governmentSchemes.applicationTracking.card.applied", "Applied: {{date}}", { date: n(r.appliedDate) })
210
188
  })] })]
211
- }), /* @__PURE__ */ k("div", {
189
+ }), /* @__PURE__ */ O("div", {
212
190
  className: "flex items-center gap-3",
213
191
  children: [
214
- e.amount != null && /* @__PURE__ */ O("span", {
192
+ r.amount != null && /* @__PURE__ */ D("span", {
215
193
  className: "text-sm font-medium text-text-primary",
216
- children: P(e.amount, l)
194
+ children: N(r.amount, c)
217
195
  }),
218
- /* @__PURE__ */ O(s, {
219
- label: (e.status ?? "unknown").replace(/_/g, " "),
220
- variant: j(e.status ?? "unknown")
196
+ /* @__PURE__ */ D(o, {
197
+ label: (r.status ?? "unknown").replace(/_/g, " "),
198
+ variant: A(r.status ?? "unknown")
221
199
  }),
222
- O(i ? C : S, { className: "h-4 w-4 text-text-secondary" })
200
+ D(i ? y : v, { className: "h-4 w-4 text-text-secondary" })
223
201
  ]
224
202
  })]
225
- }), i && /* @__PURE__ */ k("div", {
203
+ }), i && /* @__PURE__ */ O("div", {
226
204
  className: "border-t border-border-subtle px-5 pb-5 pt-4",
227
- children: [
228
- /* @__PURE__ */ k("div", {
229
- className: "mb-4",
230
- children: [/* @__PURE__ */ O("p", {
231
- className: "mb-3 text-xs font-medium text-text-primary",
232
- children: n("healthybowl.governmentSchemes.applicationTracking.progress.heading", "Application Progress")
233
- }), /* @__PURE__ */ O("div", {
234
- className: "flex items-center",
235
- children: M.map((e, n) => {
236
- let r = !o && n <= c, i = !o && n === c, a = o && n === 1;
237
- return /* @__PURE__ */ k("div", {
238
- className: "flex flex-1 items-center",
239
- children: [/* @__PURE__ */ k("div", {
240
- className: "flex flex-col items-center",
241
- children: [/* @__PURE__ */ O("div", {
242
- className: t("flex h-8 w-8 items-center justify-center rounded-full border-2", a ? "border-status-error-border bg-status-error-bg/10" : r ? "border-primary bg-action-primary-bg" : "border-border-subtle bg-bg-surface"),
243
- children: a ? /* @__PURE__ */ O(E, { className: "h-4 w-4 text-status-error-text" }) : r ? /* @__PURE__ */ O(x, { className: "h-4 w-4 text-action-primary-text" }) : /* @__PURE__ */ O("span", {
244
- className: "text-xs text-text-secondary",
245
- children: n + 1
246
- })
247
- }), /* @__PURE__ */ O("span", {
248
- className: t("mt-1 text-[10px] capitalize", i || a ? "font-semibold text-text-primary" : "text-text-secondary"),
249
- children: e.replace(/_/g, " ")
250
- })]
251
- }), n < M.length - 1 && /* @__PURE__ */ O("div", { className: t("mx-1 h-0.5 flex-1", !o && n < c ? "bg-action-primary-bg" : "bg-border") })]
252
- }, e);
253
- })
254
- })]
255
- }),
256
- /* @__PURE__ */ k("div", {
257
- className: "grid gap-3 sm:grid-cols-2",
258
- children: [
259
- /* @__PURE__ */ k("div", {
260
- className: "rounded-md bg-bg-sunken p-3",
261
- children: [/* @__PURE__ */ O("p", {
262
- className: "text-xs text-text-secondary",
263
- children: n("healthybowl.governmentSchemes.applicationTracking.details.scheme.label", "Scheme")
264
- }), /* @__PURE__ */ O("p", {
265
- className: "text-sm font-medium text-text-primary",
266
- children: e.schemeName
267
- })]
268
- }),
269
- /* @__PURE__ */ k("div", {
270
- className: "rounded-md bg-bg-sunken p-3",
271
- children: [/* @__PURE__ */ O("p", {
272
- className: "text-xs text-text-secondary",
273
- children: n("healthybowl.governmentSchemes.applicationTracking.details.appliedDate.label", "Applied Date")
274
- }), /* @__PURE__ */ O("p", {
275
- className: "text-sm font-medium text-text-primary",
276
- children: r(e.appliedDate)
277
- })]
278
- }),
279
- e.amount != null && /* @__PURE__ */ k("div", {
280
- className: "rounded-md bg-bg-sunken p-3",
281
- children: [/* @__PURE__ */ O("p", {
282
- className: "text-xs text-text-secondary",
283
- children: n("healthybowl.governmentSchemes.applicationTracking.details.amount.label", "Amount")
284
- }), /* @__PURE__ */ O("p", {
285
- className: "text-sm font-medium text-text-primary",
286
- children: P(e.amount, l)
287
- })]
288
- }),
289
- e.remarks && /* @__PURE__ */ k("div", {
290
- className: "rounded-md bg-bg-sunken p-3 sm:col-span-2",
291
- children: [/* @__PURE__ */ O("p", {
292
- className: "text-xs text-text-secondary",
293
- children: n("healthybowl.governmentSchemes.applicationTracking.details.remarks.label", "Remarks")
294
- }), /* @__PURE__ */ O("p", {
295
- className: "text-sm text-text-primary",
296
- children: e.remarks
297
- })]
298
- })
299
- ]
300
- }),
301
- Y && a.length > 0 ? /* @__PURE__ */ k("div", {
302
- className: "mt-3 flex flex-wrap items-center gap-2 border-t border-border-subtle pt-3",
303
- children: [/* @__PURE__ */ O("span", {
304
- className: "text-xs text-text-secondary",
305
- children: n("healthybowl.governmentSchemes.tracking.moveTo", "Move this application to:")
306
- }), a.map((t) => /* @__PURE__ */ O(A, {
307
- size: "sm",
308
- variant: t.destructive ? "outline" : "default",
309
- disabled: X !== null,
310
- onClick: () => {
311
- ce(e, t);
312
- },
313
- children: X === e.id ? n("common.saving", "Saving…") : n(t.labelKey, t.labelFallback)
314
- }, t.status))]
315
- }) : null
316
- ]
205
+ children: [/* @__PURE__ */ O("div", {
206
+ className: "mb-4",
207
+ children: [/* @__PURE__ */ D("p", {
208
+ className: "mb-3 text-xs font-medium text-text-primary",
209
+ children: t("healthybowl.governmentSchemes.applicationTracking.progress.heading", "Application Progress")
210
+ }), /* @__PURE__ */ D("div", {
211
+ className: "flex items-center",
212
+ children: j.map((t, n) => {
213
+ let r = !a && n <= s, i = !a && n === s, o = a && n === 1;
214
+ return /* @__PURE__ */ O("div", {
215
+ className: "flex flex-1 items-center",
216
+ children: [/* @__PURE__ */ O("div", {
217
+ className: "flex flex-col items-center",
218
+ children: [/* @__PURE__ */ D("div", {
219
+ className: e("flex h-8 w-8 items-center justify-center rounded-full border-2", o ? "border-status-error-border bg-status-error-bg/10" : r ? "border-primary bg-action-primary-bg" : "border-border-subtle bg-bg-surface"),
220
+ children: o ? /* @__PURE__ */ D(T, { className: "h-4 w-4 text-status-error-text" }) : r ? /* @__PURE__ */ D(_, { className: "h-4 w-4 text-action-primary-text" }) : /* @__PURE__ */ D("span", {
221
+ className: "text-xs text-text-secondary",
222
+ children: n + 1
223
+ })
224
+ }), /* @__PURE__ */ D("span", {
225
+ className: e("mt-1 text-[10px] capitalize", i || o ? "font-semibold text-text-primary" : "text-text-secondary"),
226
+ children: t.replace(/_/g, " ")
227
+ })]
228
+ }), n < j.length - 1 && /* @__PURE__ */ D("div", { className: e("mx-1 h-0.5 flex-1", !a && n < s ? "bg-action-primary-bg" : "bg-border") })]
229
+ }, t);
230
+ })
231
+ })]
232
+ }), /* @__PURE__ */ O("div", {
233
+ className: "grid gap-3 sm:grid-cols-2",
234
+ children: [
235
+ /* @__PURE__ */ O("div", {
236
+ className: "rounded-md bg-bg-sunken p-3",
237
+ children: [/* @__PURE__ */ D("p", {
238
+ className: "text-xs text-text-secondary",
239
+ children: t("healthybowl.governmentSchemes.applicationTracking.details.scheme.label", "Scheme")
240
+ }), /* @__PURE__ */ D("p", {
241
+ className: "text-sm font-medium text-text-primary",
242
+ children: r.schemeName
243
+ })]
244
+ }),
245
+ /* @__PURE__ */ O("div", {
246
+ className: "rounded-md bg-bg-sunken p-3",
247
+ children: [/* @__PURE__ */ D("p", {
248
+ className: "text-xs text-text-secondary",
249
+ children: t("healthybowl.governmentSchemes.applicationTracking.details.appliedDate.label", "Applied Date")
250
+ }), /* @__PURE__ */ D("p", {
251
+ className: "text-sm font-medium text-text-primary",
252
+ children: n(r.appliedDate)
253
+ })]
254
+ }),
255
+ r.amount != null && /* @__PURE__ */ O("div", {
256
+ className: "rounded-md bg-bg-sunken p-3",
257
+ children: [/* @__PURE__ */ D("p", {
258
+ className: "text-xs text-text-secondary",
259
+ children: t("healthybowl.governmentSchemes.applicationTracking.details.amount.label", "Amount")
260
+ }), /* @__PURE__ */ D("p", {
261
+ className: "text-sm font-medium text-text-primary",
262
+ children: N(r.amount, c)
263
+ })]
264
+ }),
265
+ r.remarks && /* @__PURE__ */ O("div", {
266
+ className: "rounded-md bg-bg-sunken p-3 sm:col-span-2",
267
+ children: [/* @__PURE__ */ D("p", {
268
+ className: "text-xs text-text-secondary",
269
+ children: t("healthybowl.governmentSchemes.applicationTracking.details.remarks.label", "Remarks")
270
+ }), /* @__PURE__ */ D("p", {
271
+ className: "text-sm text-text-primary",
272
+ children: r.remarks
273
+ })]
274
+ })
275
+ ]
276
+ })]
317
277
  })]
318
- }, e.id);
278
+ }, r.id);
319
279
  })
320
280
  }),
321
- /* @__PURE__ */ O(d, {
322
- toasts: K,
323
- onDismiss: q
281
+ /* @__PURE__ */ D(u, {
282
+ toasts: U,
283
+ onDismiss: W
324
284
  })
325
285
  ]
326
286
  });
327
287
  };
328
288
  //#endregion
329
- export { F as ApplicationTrackingPage };
289
+ export { P as ApplicationTrackingPage };
330
290
 
331
291
  //# sourceMappingURL=ApplicationTrackingPage.js.map