@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.
- package/dist/healthybowl/hooks/useHealthyBowlData.js +0 -15
- package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
- package/dist/healthybowl/offline/graphql.js.map +1 -1
- package/dist/healthybowl/offline/syncEngine.js +1 -2
- package/dist/healthybowl/offline/syncEngine.js.map +1 -1
- package/dist/healthybowl/offline/types.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +188 -228
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +191 -261
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/ExpertsPage.js +419 -520
- package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
- package/package.json +1 -1
- package/dist/healthybowl/hooks/useConsultationPayments.js +0 -59
- package/dist/healthybowl/hooks/useConsultationPayments.js.map +0 -1
- package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js +0 -49
- package/dist/healthybowl/pages/government-schemes/schemeApplicationTransitions.js.map +0 -1
- package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js +0 -48
- package/dist/healthybowl/pages/government-schemes/schemeDocumentSlots.js.map +0 -1
- package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js +0 -54
- package/dist/healthybowl/pages/government-schemes/useSchemeApplicationTransition.js.map +0 -1
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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
|
|
16
|
-
import { useOfflineSync as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
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
|
|
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
|
-
},
|
|
31
|
+
}, j = [
|
|
37
32
|
"submitted",
|
|
38
33
|
"under_review",
|
|
39
34
|
"approved",
|
|
40
35
|
"disbursed"
|
|
41
|
-
],
|
|
36
|
+
], M = (e) => {
|
|
42
37
|
if (e === "rejected") return 1;
|
|
43
|
-
let t =
|
|
38
|
+
let t = j.indexOf(e);
|
|
44
39
|
return t >= 0 ? t : 0;
|
|
45
40
|
};
|
|
46
|
-
function
|
|
47
|
-
return
|
|
41
|
+
function N(e, n) {
|
|
42
|
+
return n ? t(e, n) : new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }).format(e);
|
|
48
43
|
}
|
|
49
|
-
var
|
|
50
|
-
let { t
|
|
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:
|
|
48
|
+
label: t("healthybowl.common.all", "All")
|
|
54
49
|
},
|
|
55
50
|
{
|
|
56
51
|
value: "submitted",
|
|
57
|
-
label:
|
|
52
|
+
label: t("healthybowl.governmentSchemes.applicationTracking.filters.submitted", "Submitted")
|
|
58
53
|
},
|
|
59
54
|
{
|
|
60
55
|
value: "under_review",
|
|
61
|
-
label:
|
|
56
|
+
label: t("healthybowl.governmentSchemes.applicationTracking.filters.underReview", "Under Review")
|
|
62
57
|
},
|
|
63
58
|
{
|
|
64
59
|
value: "approved",
|
|
65
|
-
label:
|
|
60
|
+
label: t("healthybowl.governmentSchemes.applicationTracking.filters.approved", "Approved")
|
|
66
61
|
},
|
|
67
62
|
{
|
|
68
63
|
value: "rejected",
|
|
69
|
-
label:
|
|
64
|
+
label: t("healthybowl.governmentSchemes.applicationTracking.filters.rejected", "Rejected")
|
|
70
65
|
},
|
|
71
66
|
{
|
|
72
67
|
value: "disbursed",
|
|
73
|
-
label:
|
|
68
|
+
label: t("healthybowl.governmentSchemes.applicationTracking.filters.disbursed", "Disbursed")
|
|
74
69
|
}
|
|
75
|
-
],
|
|
76
|
-
|
|
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__ */
|
|
97
|
-
title:
|
|
98
|
-
description:
|
|
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__ */
|
|
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__ */
|
|
82
|
+
/* @__PURE__ */ D(a, {
|
|
105
83
|
hero: !0,
|
|
106
|
-
label:
|
|
107
|
-
value:
|
|
108
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
111
|
-
label:
|
|
112
|
-
value:
|
|
113
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
116
|
-
label:
|
|
117
|
-
value:
|
|
118
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
121
|
-
label:
|
|
122
|
-
value:
|
|
123
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
128
|
-
searchValue:
|
|
129
|
-
onSearchChange:
|
|
130
|
-
searchPlaceholder:
|
|
131
|
-
filters: /* @__PURE__ */
|
|
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:
|
|
111
|
+
children: te.map((t) => /* @__PURE__ */ D("button", {
|
|
134
112
|
type: "button",
|
|
135
|
-
onClick: () =>
|
|
136
|
-
className:
|
|
137
|
-
children:
|
|
138
|
-
},
|
|
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
|
|
118
|
+
actions: /* @__PURE__ */ O(k, {
|
|
141
119
|
variant: "default",
|
|
142
120
|
size: "sm",
|
|
143
|
-
onClick: () =>
|
|
121
|
+
onClick: () => V(H("government-schemes/discover")),
|
|
144
122
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ D(w, { className: "h-3.5 w-3.5" }),
|
|
146
124
|
" ",
|
|
147
|
-
|
|
125
|
+
t("healthybowl.governmentSchemes.applicationTracking.actions.newApplication", "New Application")
|
|
148
126
|
]
|
|
149
127
|
})
|
|
150
128
|
}),
|
|
151
|
-
|
|
129
|
+
B.length > 0 && /* @__PURE__ */ D("div", {
|
|
152
130
|
className: "space-y-3",
|
|
153
|
-
children:
|
|
154
|
-
let n =
|
|
155
|
-
return /* @__PURE__ */
|
|
156
|
-
className:
|
|
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__ */
|
|
136
|
+
/* @__PURE__ */ D("div", {
|
|
159
137
|
className: "rounded-md bg-bg-surface p-2",
|
|
160
|
-
children: n ? /* @__PURE__ */
|
|
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__ */
|
|
140
|
+
/* @__PURE__ */ O("div", {
|
|
163
141
|
className: "min-w-0 flex-1",
|
|
164
|
-
children: [/* @__PURE__ */
|
|
142
|
+
children: [/* @__PURE__ */ D("p", {
|
|
165
143
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
166
|
-
children:
|
|
167
|
-
}), /* @__PURE__ */
|
|
144
|
+
children: t.label
|
|
145
|
+
}), /* @__PURE__ */ D("p", {
|
|
168
146
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
169
|
-
children: n ?
|
|
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__ */
|
|
173
|
-
className:
|
|
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
|
-
},
|
|
155
|
+
}, t.clientId);
|
|
178
156
|
})
|
|
179
157
|
}),
|
|
180
|
-
$.length === 0 ?
|
|
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:
|
|
183
|
-
description:
|
|
184
|
-
action: /* @__PURE__ */
|
|
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: () =>
|
|
187
|
-
children:
|
|
164
|
+
onClick: () => V(H("government-schemes/discover")),
|
|
165
|
+
children: t("healthybowl.governmentSchemes.applicationTracking.actions.browseSchemes", "Browse Schemes")
|
|
188
166
|
})
|
|
189
|
-
}) : /* @__PURE__ */
|
|
167
|
+
}) : /* @__PURE__ */ D("div", {
|
|
190
168
|
className: "space-y-4",
|
|
191
|
-
children: $.map((
|
|
192
|
-
let i =
|
|
193
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
173
|
+
children: [/* @__PURE__ */ O("button", {
|
|
196
174
|
type: "button",
|
|
197
|
-
onClick: () =>
|
|
175
|
+
onClick: () => X(i ? null : r.id),
|
|
198
176
|
className: "flex w-full items-center justify-between p-5 text-start",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ O("div", {
|
|
200
178
|
className: "flex items-center gap-3",
|
|
201
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ D("div", {
|
|
202
180
|
className: "rounded-md bg-bg-sunken p-2",
|
|
203
|
-
children: /* @__PURE__ */
|
|
204
|
-
}), /* @__PURE__ */
|
|
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:
|
|
207
|
-
}), /* @__PURE__ */
|
|
184
|
+
children: r.schemeName
|
|
185
|
+
}), /* @__PURE__ */ D("p", {
|
|
208
186
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
209
|
-
children:
|
|
187
|
+
children: t("healthybowl.governmentSchemes.applicationTracking.card.applied", "Applied: {{date}}", { date: n(r.appliedDate) })
|
|
210
188
|
})] })]
|
|
211
|
-
}), /* @__PURE__ */
|
|
189
|
+
}), /* @__PURE__ */ O("div", {
|
|
212
190
|
className: "flex items-center gap-3",
|
|
213
191
|
children: [
|
|
214
|
-
|
|
192
|
+
r.amount != null && /* @__PURE__ */ D("span", {
|
|
215
193
|
className: "text-sm font-medium text-text-primary",
|
|
216
|
-
children:
|
|
194
|
+
children: N(r.amount, c)
|
|
217
195
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
label: (
|
|
220
|
-
variant:
|
|
196
|
+
/* @__PURE__ */ D(o, {
|
|
197
|
+
label: (r.status ?? "unknown").replace(/_/g, " "),
|
|
198
|
+
variant: A(r.status ?? "unknown")
|
|
221
199
|
}),
|
|
222
|
-
|
|
200
|
+
D(i ? y : v, { className: "h-4 w-4 text-text-secondary" })
|
|
223
201
|
]
|
|
224
202
|
})]
|
|
225
|
-
}), i && /* @__PURE__ */
|
|
203
|
+
}), i && /* @__PURE__ */ O("div", {
|
|
226
204
|
className: "border-t border-border-subtle px-5 pb-5 pt-4",
|
|
227
|
-
children: [
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
className: "
|
|
261
|
-
children:
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
className: "
|
|
271
|
-
children:
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
className: "
|
|
281
|
-
children:
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
className: "
|
|
291
|
-
children:
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
},
|
|
278
|
+
}, r.id);
|
|
319
279
|
})
|
|
320
280
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
toasts:
|
|
323
|
-
onDismiss:
|
|
281
|
+
/* @__PURE__ */ D(u, {
|
|
282
|
+
toasts: U,
|
|
283
|
+
onDismiss: W
|
|
324
284
|
})
|
|
325
285
|
]
|
|
326
286
|
});
|
|
327
287
|
};
|
|
328
288
|
//#endregion
|
|
329
|
-
export {
|
|
289
|
+
export { P as ApplicationTrackingPage };
|
|
330
290
|
|
|
331
291
|
//# sourceMappingURL=ApplicationTrackingPage.js.map
|