@alfadocs/ui-kit-debug 1.4.9 → 1.4.11
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/_chunks/anamnesis-summary-card-CpQViN5l.js +392 -0
- package/dist/_chunks/anamnesis-summary-card-CpQViN5l.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-6tOCXdoz.js → anamnesis-summary-rows-Dw3l6nOD.js} +2724 -2559
- package/dist/_chunks/anamnesis-summary-rows-Dw3l6nOD.js.map +1 -0
- package/dist/_chunks/{booking-BHziT711.js → booking-DuSkvE5x.js} +2 -2
- package/dist/_chunks/{booking-BHziT711.js.map → booking-DuSkvE5x.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-DIKlJhEq.js → link-cell-renderer-C8npOgmM.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-DIKlJhEq.js.map → link-cell-renderer-C8npOgmM.js.map} +1 -1
- package/dist/_chunks/{multi-select-CC52Qws6.js → multi-select-DqL4o0qV.js} +2 -1
- package/dist/_chunks/{multi-select-CC52Qws6.js.map → multi-select-DqL4o0qV.js.map} +1 -1
- package/dist/_chunks/{patient-table-DQKcWowi.js → patient-table-zifAcsjV.js} +2 -2
- package/dist/_chunks/{patient-table-DQKcWowi.js.map → patient-table-zifAcsjV.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts +6 -0
- package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts.map +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.d.ts.map +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/index.js +6 -6
- package/dist/patterns/anamnesis/anamnesis-baseline.d.ts +29 -0
- package/dist/patterns/anamnesis/anamnesis-baseline.d.ts.map +1 -0
- package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts +4 -1
- package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts +8 -1
- package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-evolution.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-format.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-i18n.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-matrix.d.ts +6 -2
- package/dist/patterns/anamnesis/anamnesis-matrix.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-window.d.ts +3 -0
- package/dist/patterns/anamnesis/anamnesis-window.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/anamnesis-summary-card-FNSkuUMB.js +0 -346
- package/dist/_chunks/anamnesis-summary-card-FNSkuUMB.js.map +0 -1
- package/dist/_chunks/anamnesis-summary-rows-6tOCXdoz.js.map +0 -1
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as de, useId as ne, useMemo as H, useImperativeHandle as ie } from "react";
|
|
3
|
+
import { c as g } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as oe } from "react-i18next";
|
|
5
|
+
import { B as M } from "./badge-DCOqV9mI.js";
|
|
6
|
+
import { C as y } from "./card-DPmk26CL.js";
|
|
7
|
+
import { S as P } from "./skeleton-CZbwyJAA.js";
|
|
8
|
+
import { a as le, T as ce } from "./tooltip-DvmfrNvB.js";
|
|
9
|
+
import { u as me } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { H as E } from "./heart-pulse-BCppJyN2.js";
|
|
11
|
+
import { c as R } from "./createLucideIcon-DhHxpK9K.js";
|
|
12
|
+
/**
|
|
13
|
+
* @license lucide-react v1.22.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
const ue = [
|
|
19
|
+
[
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
23
|
+
key: "1sd12s"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
27
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
28
|
+
], pe = R("message-circle-question-mark", ue);
|
|
29
|
+
/**
|
|
30
|
+
* @license lucide-react v1.22.0 - ISC
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the ISC license.
|
|
33
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
35
|
+
const ge = [
|
|
36
|
+
[
|
|
37
|
+
"path",
|
|
38
|
+
{
|
|
39
|
+
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
40
|
+
key: "1sd12s"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
["path", { d: "m10 15-3-3 3-3", key: "1pgupc" }],
|
|
44
|
+
["path", { d: "M7 12h8a2 2 0 0 1 2 2v1", key: "89sh1g" }]
|
|
45
|
+
], he = R("message-circle-reply", ge), fe = {
|
|
46
|
+
id: "anamnesis-summary-card",
|
|
47
|
+
// The card is read-only: the only handle method is a getSummary
|
|
48
|
+
// projection, so there is no capability to declare.
|
|
49
|
+
capabilities: [],
|
|
50
|
+
state: {
|
|
51
|
+
summary: {
|
|
52
|
+
type: "{ id?: string; sectionCount: number; answerCount: number; highlightedCount: number; unansweredCount: number }",
|
|
53
|
+
descriptionKey: "ui.agent.anamnesisSummaryCard.state.summary",
|
|
54
|
+
description: "Structural summary of the anamnesis card — section, answer, highlighted and unanswered counts plus the consumer id. Never question labels or answer values.",
|
|
55
|
+
read: (d) => d.getSummary()
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
actions: {},
|
|
59
|
+
domHooks: {
|
|
60
|
+
root: {
|
|
61
|
+
attr: "data-component",
|
|
62
|
+
value: "anamnesis-summary-card",
|
|
63
|
+
description: "Marks the AnamnesisSummaryCard root region."
|
|
64
|
+
},
|
|
65
|
+
instanceId: {
|
|
66
|
+
attr: "data-component-id",
|
|
67
|
+
sourceProp: "id",
|
|
68
|
+
description: "Sourced from the id prop."
|
|
69
|
+
},
|
|
70
|
+
item: {
|
|
71
|
+
attr: "data-answer-id",
|
|
72
|
+
description: "One per answer row (KeyValuePair); the value is the intake field key. Highlighted rows also carry data-highlighted."
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}, ve = g("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
76
|
+
variants: {
|
|
77
|
+
// Same `surface` vocabulary as PatientSummaryCard / ContactProfileCard.
|
|
78
|
+
// Both surfaces keep the Card chrome — `flat` only drops the shadow.
|
|
79
|
+
surface: {
|
|
80
|
+
flat: "",
|
|
81
|
+
elevated: ""
|
|
82
|
+
},
|
|
83
|
+
density: {
|
|
84
|
+
comfortable: "",
|
|
85
|
+
compact: ""
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
defaultVariants: {
|
|
89
|
+
surface: "elevated",
|
|
90
|
+
density: "comfortable"
|
|
91
|
+
}
|
|
92
|
+
}), ye = g("ds:flex ds:flex-col", {
|
|
93
|
+
variants: {
|
|
94
|
+
density: {
|
|
95
|
+
comfortable: "ds:gap-[var(--spacing-lg)]",
|
|
96
|
+
compact: "ds:gap-[var(--spacing-md)]"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
defaultVariants: { density: "comfortable" }
|
|
100
|
+
}), be = g("", {
|
|
101
|
+
variants: {
|
|
102
|
+
density: {
|
|
103
|
+
comfortable: "",
|
|
104
|
+
compact: "ds:p-[var(--spacing-sm)] ds:pb-0"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
defaultVariants: { density: "comfortable" }
|
|
108
|
+
}), xe = g("", {
|
|
109
|
+
variants: {
|
|
110
|
+
density: {
|
|
111
|
+
comfortable: "",
|
|
112
|
+
compact: "ds:p-[var(--spacing-sm)]"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
defaultVariants: { density: "comfortable" }
|
|
116
|
+
}), Ne = g("", {
|
|
117
|
+
variants: {
|
|
118
|
+
density: {
|
|
119
|
+
comfortable: "",
|
|
120
|
+
compact: "ds:p-[var(--spacing-sm)] ds:pt-0"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
defaultVariants: { density: "comfortable" }
|
|
124
|
+
}), Ce = /^(\d{4})-(\d{2})-(\d{2})$/, Se = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/, we = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/;
|
|
125
|
+
function Ae(d) {
|
|
126
|
+
const l = Ce.exec(d);
|
|
127
|
+
if (l)
|
|
128
|
+
return {
|
|
129
|
+
date: new Date(Number(l[1]), Number(l[2]) - 1, Number(l[3])),
|
|
130
|
+
hasTime: !1
|
|
131
|
+
};
|
|
132
|
+
const t = Se.exec(d);
|
|
133
|
+
if (t)
|
|
134
|
+
return {
|
|
135
|
+
date: new Date(
|
|
136
|
+
Number(t[1]),
|
|
137
|
+
Number(t[2]) - 1,
|
|
138
|
+
Number(t[3]),
|
|
139
|
+
Number(t[4]),
|
|
140
|
+
Number(t[5]),
|
|
141
|
+
t[6] ? Number(t[6]) : 0
|
|
142
|
+
),
|
|
143
|
+
hasTime: !0
|
|
144
|
+
};
|
|
145
|
+
const i = new Date(d);
|
|
146
|
+
return Number.isNaN(i.getTime()) ? null : { date: i, hasTime: we.test(d) };
|
|
147
|
+
}
|
|
148
|
+
function B(d, l) {
|
|
149
|
+
const t = Ae(d);
|
|
150
|
+
if (!t) return null;
|
|
151
|
+
const i = t.hasTime ? { dateStyle: "medium", timeStyle: "short" } : { dateStyle: "medium" };
|
|
152
|
+
try {
|
|
153
|
+
return new Intl.DateTimeFormat(l, i).format(t.date);
|
|
154
|
+
} catch {
|
|
155
|
+
return new Intl.DateTimeFormat(void 0, i).format(t.date);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const Te = "ds:rounded-[var(--radius-md)] ds:bg-[color:color-mix(in_srgb,var(--accent)_6%,transparent)] ds:px-[var(--spacing-xs)] ds:-mx-[var(--spacing-xs)]", Le = 'ds:relative ds:inline-flex ds:appearance-none ds:border-0 ds:bg-transparent ds:p-0 ds:m-0 ds:cursor-default ds:rounded-[var(--radius-full)] ds:before:absolute ds:before:content-[""] ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:sm:before:inset-x-[calc((var(--spacing-lg)-100%)/-2)] ds:sm:before:inset-y-[calc((var(--spacing-lg)-100%)/-2)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]', D = "ds:mt-[var(--spacing-2xs)] ds:size-4 ds:shrink-0 ds:text-[color:var(--accent)]", b = "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", ke = de(
|
|
159
|
+
({
|
|
160
|
+
sections: d,
|
|
161
|
+
title: l,
|
|
162
|
+
subtitle: t,
|
|
163
|
+
unansweredCount: i = 0,
|
|
164
|
+
locale: $,
|
|
165
|
+
highlightedFirst: C = !0,
|
|
166
|
+
highlightedGroup: j = !0,
|
|
167
|
+
highlightedOnly: m = !1,
|
|
168
|
+
surface: S = "elevated",
|
|
169
|
+
density: c = "comfortable",
|
|
170
|
+
loading: h = !1,
|
|
171
|
+
actionSlot: w,
|
|
172
|
+
id: p,
|
|
173
|
+
className: z,
|
|
174
|
+
"aria-label": G,
|
|
175
|
+
...O
|
|
176
|
+
}, q) => {
|
|
177
|
+
const { t: o, i18n: F } = oe(), K = ne(), A = $ ?? F.language ?? "en", u = H(
|
|
178
|
+
() => d.filter((e) => e.answers.length > 0).map((e) => ({
|
|
179
|
+
...e,
|
|
180
|
+
answers: C ? [...e.answers].sort(
|
|
181
|
+
(s, n) => +!!n.highlighted - +!!s.highlighted
|
|
182
|
+
) : e.answers
|
|
183
|
+
})),
|
|
184
|
+
[d, C]
|
|
185
|
+
), T = u.reduce(
|
|
186
|
+
(e, s) => e + s.answers.length,
|
|
187
|
+
0
|
|
188
|
+
), f = u.reduce(
|
|
189
|
+
(e, s) => e + s.answers.filter((n) => n.highlighted).length,
|
|
190
|
+
0
|
|
191
|
+
), L = u.length, x = u.flatMap(
|
|
192
|
+
(e) => e.answers.filter((s) => s.highlighted)
|
|
193
|
+
), Q = m ? [] : u, U = (e) => {
|
|
194
|
+
const s = e.reportedAtIso ? B(e.reportedAtIso, A) : null, n = [e.sourceLabel, s].filter(
|
|
195
|
+
(v) => !!v
|
|
196
|
+
);
|
|
197
|
+
return n.length > 0 ? n.join(" · ") : null;
|
|
198
|
+
}, N = H(
|
|
199
|
+
() => ({
|
|
200
|
+
getSummary: () => ({
|
|
201
|
+
id: p,
|
|
202
|
+
sectionCount: L,
|
|
203
|
+
answerCount: T,
|
|
204
|
+
highlightedCount: f,
|
|
205
|
+
unansweredCount: i
|
|
206
|
+
})
|
|
207
|
+
}),
|
|
208
|
+
[p, L, T, f, i]
|
|
209
|
+
);
|
|
210
|
+
ie(q, () => N, [N]), me(fe, N, p);
|
|
211
|
+
const W = o("anamnesisSummaryCard.regionLabel", {
|
|
212
|
+
defaultValue: "Anamnesis summary"
|
|
213
|
+
}), k = l ?? W, Y = G ?? k, V = o("anamnesisSummaryCard.highlighted", {
|
|
214
|
+
defaultValue: "Highlighted"
|
|
215
|
+
}), J = c === "comfortable" ? "type-title-card" : "type-title-item", X = c === "comfortable" ? "md" : "sm", Z = (e) => {
|
|
216
|
+
const s = e.reportedAtIso ? B(e.reportedAtIso, A) : null, n = s && e.sourceLabel ? o("anamnesisSummaryCard.reportedOnFrom", {
|
|
217
|
+
date: s,
|
|
218
|
+
source: e.sourceLabel,
|
|
219
|
+
defaultValue: "Highlighted on {{date}} · {{source}}"
|
|
220
|
+
}) : s ? o("anamnesisSummaryCard.reportedOn", {
|
|
221
|
+
date: s,
|
|
222
|
+
defaultValue: "Highlighted on {{date}}"
|
|
223
|
+
}) : V;
|
|
224
|
+
return /* @__PURE__ */ a(ce, { label: n, side: "top", children: /* @__PURE__ */ a(
|
|
225
|
+
"button",
|
|
226
|
+
{
|
|
227
|
+
type: "button",
|
|
228
|
+
className: Le,
|
|
229
|
+
"data-highlighted-chip": "",
|
|
230
|
+
children: /* @__PURE__ */ a(
|
|
231
|
+
M,
|
|
232
|
+
{
|
|
233
|
+
variant: "accentSoft",
|
|
234
|
+
size: "sm",
|
|
235
|
+
leading: /* @__PURE__ */ a(E, { "aria-hidden": "true" }),
|
|
236
|
+
children: V
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
}
|
|
240
|
+
) });
|
|
241
|
+
}, ee = /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
242
|
+
/* @__PURE__ */ r("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
243
|
+
/* @__PURE__ */ a(
|
|
244
|
+
"h3",
|
|
245
|
+
{
|
|
246
|
+
id: K,
|
|
247
|
+
className: `ds:m-0 ${J} ds:text-[color:var(--foreground)]`,
|
|
248
|
+
children: k
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
t ? /* @__PURE__ */ a("p", { className: b, children: t }) : null
|
|
252
|
+
] }),
|
|
253
|
+
!h && f > 0 ? /* @__PURE__ */ a(
|
|
254
|
+
M,
|
|
255
|
+
{
|
|
256
|
+
variant: "accentSoft",
|
|
257
|
+
size: "sm",
|
|
258
|
+
leading: /* @__PURE__ */ a(E, { "aria-hidden": "true" }),
|
|
259
|
+
className: "ds:shrink-0",
|
|
260
|
+
children: o("anamnesisSummaryCard.highlightedCount", {
|
|
261
|
+
count: f,
|
|
262
|
+
defaultValue: "{{count}} highlighted"
|
|
263
|
+
})
|
|
264
|
+
}
|
|
265
|
+
) : null,
|
|
266
|
+
w ? /* @__PURE__ */ a("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: w }) : null
|
|
267
|
+
] }), ae = /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
268
|
+
/* @__PURE__ */ a(P, { variant: "text", width: "40%" }),
|
|
269
|
+
/* @__PURE__ */ a(P, { variant: "text", lines: 4 })
|
|
270
|
+
] }), se = /* @__PURE__ */ a("p", { className: b, children: o("anamnesisSummaryCard.empty", {
|
|
271
|
+
defaultValue: "No answers recorded yet"
|
|
272
|
+
}) }), _ = [
|
|
273
|
+
"ds:m-0 ds:grid ds:grid-cols-1 ds:@[672px]/afields:grid-cols-2",
|
|
274
|
+
"ds:gap-x-[var(--spacing-lg)]",
|
|
275
|
+
X === "md" ? "ds:gap-y-[var(--spacing-md)]" : "ds:gap-y-[var(--spacing-sm)]"
|
|
276
|
+
].join(" "), I = (e, s) => {
|
|
277
|
+
const n = s.chip && e.highlighted, v = s.recorded ? U(e) : null;
|
|
278
|
+
return /* @__PURE__ */ r(
|
|
279
|
+
"div",
|
|
280
|
+
{
|
|
281
|
+
"data-answer-id": e.id,
|
|
282
|
+
"data-highlighted": e.highlighted ? "" : void 0,
|
|
283
|
+
className: [
|
|
284
|
+
"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
285
|
+
n ? Te : ""
|
|
286
|
+
].filter(Boolean).join(" "),
|
|
287
|
+
children: [
|
|
288
|
+
/* @__PURE__ */ r("dt", { className: "type-label ds:m-0 ds:flex ds:items-start ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
289
|
+
/* @__PURE__ */ a(
|
|
290
|
+
pe,
|
|
291
|
+
{
|
|
292
|
+
"aria-hidden": "true",
|
|
293
|
+
className: D
|
|
294
|
+
}
|
|
295
|
+
),
|
|
296
|
+
/* @__PURE__ */ a("span", { children: e.label })
|
|
297
|
+
] }),
|
|
298
|
+
/* @__PURE__ */ r("dd", { className: "type-body ds:m-0 ds:flex ds:items-start ds:gap-[var(--spacing-xs)] ds:text-[color:var(--foreground)]", children: [
|
|
299
|
+
/* @__PURE__ */ a(he, { "aria-hidden": "true", className: D }),
|
|
300
|
+
/* @__PURE__ */ r("span", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
301
|
+
/* @__PURE__ */ r("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]", children: [
|
|
302
|
+
/* @__PURE__ */ a("span", { children: e.value }),
|
|
303
|
+
e.unit ? /* @__PURE__ */ a("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: e.unit }) : null,
|
|
304
|
+
n ? Z(e) : null
|
|
305
|
+
] }),
|
|
306
|
+
v ? /* @__PURE__ */ a("span", { className: b, children: v }) : null
|
|
307
|
+
] })
|
|
308
|
+
] })
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
`${s.keyPrefix}${e.id}`
|
|
312
|
+
);
|
|
313
|
+
}, te = /* @__PURE__ */ r(
|
|
314
|
+
"div",
|
|
315
|
+
{
|
|
316
|
+
role: "group",
|
|
317
|
+
"aria-label": o("anamnesisSummaryCard.sectionsLabel", {
|
|
318
|
+
defaultValue: "Anamnesis sections"
|
|
319
|
+
}),
|
|
320
|
+
className: ye({ density: c }),
|
|
321
|
+
children: [
|
|
322
|
+
(j || m) && x.length > 0 ? /* @__PURE__ */ r(
|
|
323
|
+
"div",
|
|
324
|
+
{
|
|
325
|
+
"data-highlighted-group": "",
|
|
326
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
327
|
+
children: [
|
|
328
|
+
m ? null : /* @__PURE__ */ a("h4", { className: "ds:m-0 type-eyebrow ds:text-[color:var(--muted-foreground)]", children: o("anamnesisSummaryCard.highlightedGroup", {
|
|
329
|
+
defaultValue: "Highlighted answers"
|
|
330
|
+
}) }),
|
|
331
|
+
/* @__PURE__ */ a("div", { className: "ds:@container/afields", children: /* @__PURE__ */ a("dl", { className: _, children: x.map(
|
|
332
|
+
(e) => I(e, {
|
|
333
|
+
recorded: !0,
|
|
334
|
+
chip: !1,
|
|
335
|
+
keyPrefix: "highlighted-"
|
|
336
|
+
})
|
|
337
|
+
) }) })
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
) : null,
|
|
341
|
+
Q.map((e) => /* @__PURE__ */ r(
|
|
342
|
+
"div",
|
|
343
|
+
{
|
|
344
|
+
"data-section-id": e.id,
|
|
345
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
346
|
+
children: [
|
|
347
|
+
/* @__PURE__ */ a("h4", { className: "ds:m-0 type-eyebrow ds:text-[color:var(--muted-foreground)]", children: e.heading }),
|
|
348
|
+
/* @__PURE__ */ a("div", { className: "ds:@container/afields", children: /* @__PURE__ */ a("dl", { className: _, children: e.answers.map(
|
|
349
|
+
(s) => I(s, {
|
|
350
|
+
recorded: !1,
|
|
351
|
+
chip: !0,
|
|
352
|
+
keyPrefix: ""
|
|
353
|
+
})
|
|
354
|
+
) }) })
|
|
355
|
+
]
|
|
356
|
+
},
|
|
357
|
+
e.id
|
|
358
|
+
))
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
), re = h ? ae : u.length === 0 || m && x.length === 0 ? se : te;
|
|
362
|
+
return /* @__PURE__ */ a(
|
|
363
|
+
"div",
|
|
364
|
+
{
|
|
365
|
+
role: "region",
|
|
366
|
+
"aria-label": Y,
|
|
367
|
+
"aria-busy": h || void 0,
|
|
368
|
+
"data-component": "anamnesis-summary-card",
|
|
369
|
+
"data-component-id": p,
|
|
370
|
+
"data-density": c,
|
|
371
|
+
"data-highlighted-only": m ? "" : void 0,
|
|
372
|
+
id: p,
|
|
373
|
+
className: ve({ surface: S, density: c, className: z }),
|
|
374
|
+
...O,
|
|
375
|
+
children: /* @__PURE__ */ r(y, { variant: S === "flat" ? "outlined" : "elevated", children: [
|
|
376
|
+
/* @__PURE__ */ a(y.Header, { className: be({ density: c }), children: ee }),
|
|
377
|
+
/* @__PURE__ */ a(le, { children: /* @__PURE__ */ a(y.Body, { className: xe({ density: c }), children: re }) }),
|
|
378
|
+
!h && !m && i > 0 ? /* @__PURE__ */ a(y.Footer, { className: Ne({ density: c }), children: /* @__PURE__ */ a("p", { className: b, children: o("anamnesisSummaryCard.unanswered", {
|
|
379
|
+
count: i,
|
|
380
|
+
defaultValue: "{{count}} questions not answered"
|
|
381
|
+
}) }) }) : null
|
|
382
|
+
] })
|
|
383
|
+
}
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
);
|
|
387
|
+
ke.displayName = "AnamnesisSummaryCard";
|
|
388
|
+
export {
|
|
389
|
+
ke as A,
|
|
390
|
+
fe as a
|
|
391
|
+
};
|
|
392
|
+
//# sourceMappingURL=anamnesis-summary-card-CpQViN5l.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anamnesis-summary-card-CpQViN5l.js","sources":["../../node_modules/lucide-react/dist/esm/icons/message-circle-question-mark.mjs","../../node_modules/lucide-react/dist/esm/icons/message-circle-reply.mjs","../../src/components/anamnesis-summary-card/anamnesis-summary-card.agent.ts","../../src/components/anamnesis-summary-card/anamnesis-summary-card.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\",\n key: \"1sd12s\"\n }\n ],\n [\"path\", { d: \"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\", key: \"1u773s\" }],\n [\"path\", { d: \"M12 17h.01\", key: \"p32p05\" }]\n];\nconst MessageCircleQuestionMark = createLucideIcon(\"message-circle-question-mark\", __iconNode);\n\nexport { __iconNode, MessageCircleQuestionMark as default };\n//# sourceMappingURL=message-circle-question-mark.mjs.map\n","/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\",\n key: \"1sd12s\"\n }\n ],\n [\"path\", { d: \"m10 15-3-3 3-3\", key: \"1pgupc\" }],\n [\"path\", { d: \"M7 12h8a2 2 0 0 1 2 2v1\", key: \"89sh1g\" }]\n];\nconst MessageCircleReply = createLucideIcon(\"message-circle-reply\", __iconNode);\n\nexport { __iconNode, MessageCircleReply as default };\n//# sourceMappingURL=message-circle-reply.mjs.map\n","import type { AgentAdapter } from '../../agent/types';\nimport type { AnamnesisSummaryCardHandle } from './anamnesis-summary-card';\n\n/* -------------------------------------------------------------------- */\n/* Agent adapter — AnamnesisSummaryCard */\n/* */\n/* Read-only adapter. Surfaces a STRUCTURAL snapshot of the anamnesis */\n/* summary — section / answer / highlighted / unanswered counts and the */\n/* consumer id only. Never a question label or an answer value, so an */\n/* agent can answer \"does this patient have highlighted answers?\" without */\n/* re-parsing the DOM and without leaking PHI (PRS §Security). */\n/* -------------------------------------------------------------------- */\n\nexport const anamnesisSummaryCardAgent: AgentAdapter<AnamnesisSummaryCardHandle> =\n {\n id: 'anamnesis-summary-card',\n // The card is read-only: the only handle method is a getSummary\n // projection, so there is no capability to declare.\n capabilities: [],\n state: {\n summary: {\n type: '{ id?: string; sectionCount: number; answerCount: number; highlightedCount: number; unansweredCount: number }',\n descriptionKey: 'ui.agent.anamnesisSummaryCard.state.summary',\n description:\n 'Structural summary of the anamnesis card — section, answer, highlighted and unanswered counts plus the consumer id. Never question labels or answer values.',\n read: (handle) => handle.getSummary(),\n },\n },\n actions: {},\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'anamnesis-summary-card',\n description: 'Marks the AnamnesisSummaryCard root region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop.',\n },\n item: {\n attr: 'data-answer-id',\n description:\n 'One per answer row (KeyValuePair); the value is the intake field key. Highlighted rows also carry data-highlighted.',\n },\n },\n };\n","import {\n forwardRef,\n useId,\n useImperativeHandle,\n useMemo,\n type HTMLAttributes,\n type ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport {\n HeartPulse,\n MessageCircleQuestion,\n MessageCircleReply,\n} from 'lucide-react';\nimport { Badge } from '../badge/badge';\nimport { Card } from '../card/card';\nimport { Skeleton } from '../skeleton/skeleton';\nimport { Tooltip, TooltipProvider } from '../tooltip/tooltip';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { anamnesisSummaryCardAgent } from './anamnesis-summary-card.agent';\n\n/* -------------------------------------------------------------------- */\n/* AnamnesisSummaryCard */\n/* */\n/* A read-only summary of a patient's anamnesis answers: every answered */\n/* question as a label/value row, grouped by section, two columns when */\n/* the card is wide. Practice-flagged (\"highlighted\") answers carry an */\n/* accent rail plus a HeartPulse chip whose tooltip says WHEN the answer */\n/* was recorded (and from which module when the card combines several). */\n/* */\n/* Templated on PatientSummaryCard: the consumer passes rows, the kit */\n/* owns layout, icons, i18n, and a11y. Used by the platform both for the */\n/* Overview tab (one card combining each module's latest interview) and */\n/* under the archive table (one card per interview). */\n/* -------------------------------------------------------------------- */\n\n/* -------------------------------------------------------------------- */\n/* CVA */\n/* -------------------------------------------------------------------- */\n\nconst rootVariants = cva('ds:w-full ds:text-[color:var(--foreground)]', {\n variants: {\n // Same `surface` vocabulary as PatientSummaryCard / ContactProfileCard.\n // Both surfaces keep the Card chrome — `flat` only drops the shadow.\n surface: {\n flat: '',\n elevated: '',\n },\n density: {\n comfortable: '',\n compact: '',\n },\n },\n defaultVariants: {\n surface: 'elevated',\n density: 'comfortable',\n },\n});\n\n/** Stack of sections inside the body — the density tunes the section gap. */\nconst sectionsVariants = cva('ds:flex ds:flex-col', {\n variants: {\n density: {\n comfortable: 'ds:gap-[var(--spacing-lg)]',\n compact: 'ds:gap-[var(--spacing-md)]',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\n/** Card padding per density — overrides Card.Header / Body / Footer defaults. */\nconst headerPaddingVariants = cva('', {\n variants: {\n density: {\n comfortable: '',\n compact: 'ds:p-[var(--spacing-sm)] ds:pb-0',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\nconst bodyPaddingVariants = cva('', {\n variants: {\n density: {\n comfortable: '',\n compact: 'ds:p-[var(--spacing-sm)]',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\nconst footerPaddingVariants = cva('', {\n variants: {\n density: {\n comfortable: '',\n compact: 'ds:p-[var(--spacing-sm)] ds:pt-0',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\n/* -------------------------------------------------------------------- */\n/* Public types */\n/* -------------------------------------------------------------------- */\n\nexport interface AnamnesisSummaryAnswer {\n /** Stable key (the intake field key). */\n id: string;\n /** Question label, already translated by the consumer. */\n label: string;\n /** Formatted answer. Strings preferred; ReactNode allowed. */\n value: ReactNode;\n /** Unit symbol rendered muted after the value (e.g. \"kg\"). */\n unit?: string;\n /** The practice's highlight rule fired for this answer. */\n highlighted?: boolean;\n /**\n * When the answer was recorded — `YYYY-MM-DD`, `YYYY-MM-DDTHH:mm` (LOCAL\n * wall time, no zone) or full ISO-8601. A bare date is never read as UTC.\n */\n reportedAtIso?: string;\n /** Where the answer came from when the card combines modules (module name). */\n sourceLabel?: string;\n}\n\nexport interface AnamnesisSummarySection {\n id: string;\n heading: string;\n answers: AnamnesisSummaryAnswer[];\n}\n\nexport interface AnamnesisSummaryCardHandle {\n /** Structural snapshot only — counts, never labels or values. */\n getSummary: () => {\n id?: string;\n sectionCount: number;\n answerCount: number;\n highlightedCount: number;\n unansweredCount: number;\n };\n}\n\nexport interface AnamnesisSummaryCardProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'title'\n> {\n sections: AnamnesisSummarySection[];\n /** Card title (e.g. the module name). Falls back to the \"Anamnesis summary\" region label. */\n title?: string;\n /** Muted line under the title (e.g. the interview date-time, already formatted). */\n subtitle?: string;\n /** Questions the consumer omitted because they were unanswered — one muted footer line when > 0. */\n unansweredCount?: number;\n /** BCP-47 tag for the tooltip date; defaults to the active i18next language. */\n locale?: string;\n /** Highlighted answers sort to the top of their section. Default `true`. */\n highlightedFirst?: boolean;\n /**\n * Open the card with a \"Highlighted answers\" group collecting every\n * flagged answer, each with where and when it was recorded, before the\n * sections. Default `true`; absent when nothing is flagged.\n */\n highlightedGroup?: boolean;\n /**\n * Render ONLY the highlighted-answers group — no sections, no unanswered\n * footer — for a card whose sole job is the flagged answers. Empty copy\n * when nothing is flagged. Default `false`.\n */\n highlightedOnly?: boolean;\n /** `'elevated'` (default) — Card with shadow; `'flat'` — outlined Card. */\n surface?: 'flat' | 'elevated';\n /** `'comfortable'` (default) or `'compact'` (tighter row gap + paddings). */\n density?: 'comfortable' | 'compact';\n /** Render the skeleton loading placeholder. */\n loading?: boolean;\n /** Rendered at the inline-end of the heading row (e.g. an action menu). */\n actionSlot?: ReactNode;\n /** Agent-readiness consumer id, surfaced as `data-component-id`. */\n id?: string;\n}\n\n/* -------------------------------------------------------------------- */\n/* Date helpers */\n/* -------------------------------------------------------------------- */\n\nconst DATE_ONLY_RE = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\nconst LOCAL_DATETIME_RE =\n /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2})(?::(\\d{2}))?$/;\nconst CLOCK_TIME_RE = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}/;\n\n/**\n * Parse a stored stamp by fields when it carries no zone, so `2026-03-01`\n * stays 1 March in every viewer zone (`new Date('2026-03-01')` would read\n * it as UTC midnight and print 29 February west of Greenwich).\n */\nfunction parseReportedAt(iso: string): { date: Date; hasTime: boolean } | null {\n const day = DATE_ONLY_RE.exec(iso);\n if (day) {\n return {\n date: new Date(Number(day[1]), Number(day[2]) - 1, Number(day[3])),\n hasTime: false,\n };\n }\n const local = LOCAL_DATETIME_RE.exec(iso);\n if (local) {\n return {\n date: new Date(\n Number(local[1]),\n Number(local[2]) - 1,\n Number(local[3]),\n Number(local[4]),\n Number(local[5]),\n local[6] ? Number(local[6]) : 0,\n ),\n hasTime: true,\n };\n }\n const date = new Date(iso);\n if (Number.isNaN(date.getTime())) return null;\n return { date, hasTime: CLOCK_TIME_RE.test(iso) };\n}\n\nfunction formatReportedAt(iso: string, locale: string): string | null {\n const parsed = parseReportedAt(iso);\n if (!parsed) return null;\n const options: Intl.DateTimeFormatOptions = parsed.hasTime\n ? { dateStyle: 'medium', timeStyle: 'short' }\n : { dateStyle: 'medium' };\n try {\n return new Intl.DateTimeFormat(locale, options).format(parsed.date);\n } catch {\n // An unknown BCP-47 tag throws — fall back to the runtime default locale.\n return new Intl.DateTimeFormat(undefined, options).format(parsed.date);\n }\n}\n\n/* -------------------------------------------------------------------- */\n/* Styling fragments */\n/* -------------------------------------------------------------------- */\n\n/** Soft accent wash on rounded corners — no rail: a bar on one side read\n * as an edge, not a mark. The padding is paid back with a negative margin\n * so the row's label and value stay on the grid's tracks. */\nconst HIGHLIGHTED_ROW_CLASS =\n 'ds:rounded-[var(--radius-md)] ds:bg-[color:color-mix(in_srgb,var(--accent)_6%,transparent)] ds:px-[var(--spacing-xs)] ds:-mx-[var(--spacing-xs)]';\n\n/** Bare button carrying the chip — it exists only to give the tooltip a\n * keyboard-focusable trigger, so it inherits the chip's pill outline.\n * The 16px chip sits below `--min-target-size`, so the same `::before`\n * hit-area recipe as InfoTip `size=\"sm\"` expands the target: the full\n * 44/48px on touch, relaxing to the `--spacing-lg` 24px floor from `sm:` up. */\nconst CHIP_BUTTON_CLASS =\n 'ds:relative ds:inline-flex ds:appearance-none ds:border-0 ds:bg-transparent ds:p-0 ds:m-0 ds:cursor-default ds:rounded-[var(--radius-full)] ds:before:absolute ds:before:content-[\"\"] ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:sm:before:inset-x-[calc((var(--spacing-lg)-100%)/-2)] ds:sm:before:inset-y-[calc((var(--spacing-lg)-100%)/-2)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]';\n\n/** The question / answer glyphs: accent, sized to the label, nudged onto\n * the first text line. */\nconst QA_ICON_CLASS =\n 'ds:mt-[var(--spacing-2xs)] ds:size-4 ds:shrink-0 ds:text-[color:var(--accent)]';\n\nconst MUTED_LINE_CLASS =\n 'type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]';\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nexport const AnamnesisSummaryCard = forwardRef<\n AnamnesisSummaryCardHandle,\n AnamnesisSummaryCardProps\n>(\n (\n {\n sections,\n title,\n subtitle,\n unansweredCount = 0,\n locale,\n highlightedFirst = true,\n highlightedGroup = true,\n highlightedOnly = false,\n surface = 'elevated',\n density = 'comfortable',\n loading = false,\n actionSlot,\n id,\n className,\n 'aria-label': ariaLabel,\n ...rest\n },\n ref,\n ) => {\n const { t, i18n } = useTranslation();\n const headingId = useId();\n const activeLocale = locale ?? i18n.language ?? 'en';\n\n // Drop empty sections and apply the highlighted-first order once per\n // input change; `sort` is stable so unhighlighted rows keep their order.\n const visibleSections = useMemo(\n () =>\n sections\n .filter((section) => section.answers.length > 0)\n .map((section) => ({\n ...section,\n answers: highlightedFirst\n ? [...section.answers].sort(\n (a, b) => Number(!!b.highlighted) - Number(!!a.highlighted),\n )\n : section.answers,\n })),\n [sections, highlightedFirst],\n );\n\n const answerCount = visibleSections.reduce(\n (sum, section) => sum + section.answers.length,\n 0,\n );\n const highlightedCount = visibleSections.reduce(\n (sum, section) =>\n sum + section.answers.filter((answer) => answer.highlighted).length,\n 0,\n );\n const sectionCount = visibleSections.length;\n // Every flagged answer in section order, for the opening group.\n const highlightedAnswers = visibleSections.flatMap((section) =>\n section.answers.filter((answer) => answer.highlighted),\n );\n // A flagged-answers-only card lists no sections at all.\n const listedSections = highlightedOnly ? [] : visibleSections;\n const recordedLine = (answer: AnamnesisSummaryAnswer): string | null => {\n const date = answer.reportedAtIso\n ? formatReportedAt(answer.reportedAtIso, activeLocale)\n : null;\n const parts = [answer.sourceLabel, date].filter((part): part is string =>\n Boolean(part),\n );\n return parts.length > 0 ? parts.join(' · ') : null;\n };\n\n // Imperative handle — structural snapshot only (counts + consumer id),\n // never a question label or an answer value.\n const handle = useMemo<AnamnesisSummaryCardHandle>(\n () => ({\n getSummary: () => ({\n id,\n sectionCount,\n answerCount,\n highlightedCount,\n unansweredCount,\n }),\n }),\n [id, sectionCount, answerCount, highlightedCount, unansweredCount],\n );\n useImperativeHandle(ref, () => handle, [handle]);\n useAgentRegistration(anamnesisSummaryCardAgent, handle, id);\n\n const regionLabel = t('anamnesisSummaryCard.regionLabel', {\n defaultValue: 'Anamnesis summary',\n });\n const resolvedTitle = title ?? regionLabel;\n const resolvedAriaLabel = ariaLabel ?? resolvedTitle;\n const highlightedText = t('anamnesisSummaryCard.highlighted', {\n defaultValue: 'Highlighted',\n });\n\n const titleClass =\n density === 'comfortable' ? 'type-title-card' : 'type-title-item';\n const rowGap = density === 'comfortable' ? 'md' : 'sm';\n\n /* ---------------------------------------------------------------- */\n /* Highlight chip */\n /* ---------------------------------------------------------------- */\n\n const renderChip = (answer: AnamnesisSummaryAnswer) => {\n const date = answer.reportedAtIso\n ? formatReportedAt(answer.reportedAtIso, activeLocale)\n : null;\n const tooltipLabel =\n date && answer.sourceLabel\n ? t('anamnesisSummaryCard.reportedOnFrom', {\n date,\n source: answer.sourceLabel,\n defaultValue: 'Highlighted on {{date}} · {{source}}',\n })\n : date\n ? t('anamnesisSummaryCard.reportedOn', {\n date,\n defaultValue: 'Highlighted on {{date}}',\n })\n : highlightedText;\n return (\n <Tooltip label={tooltipLabel} side=\"top\">\n <button\n type=\"button\"\n className={CHIP_BUTTON_CLASS}\n data-highlighted-chip=\"\"\n >\n <Badge\n variant=\"accentSoft\"\n size=\"sm\"\n leading={<HeartPulse aria-hidden=\"true\" />}\n >\n {highlightedText}\n </Badge>\n </button>\n </Tooltip>\n );\n };\n\n /* ---------------------------------------------------------------- */\n /* Header */\n /* ---------------------------------------------------------------- */\n\n const header = (\n <div className=\"ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-sm)]\">\n <div className=\"ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n <h3\n id={headingId}\n className={`ds:m-0 ${titleClass} ds:text-[color:var(--foreground)]`}\n >\n {resolvedTitle}\n </h3>\n {subtitle ? <p className={MUTED_LINE_CLASS}>{subtitle}</p> : null}\n </div>\n {!loading && highlightedCount > 0 ? (\n <Badge\n variant=\"accentSoft\"\n size=\"sm\"\n leading={<HeartPulse aria-hidden=\"true\" />}\n className=\"ds:shrink-0\"\n >\n {t('anamnesisSummaryCard.highlightedCount', {\n count: highlightedCount,\n defaultValue: '{{count}} highlighted',\n })}\n </Badge>\n ) : null}\n {actionSlot ? (\n <div className=\"ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]\">\n {actionSlot}\n </div>\n ) : null}\n </div>\n );\n\n /* ---------------------------------------------------------------- */\n /* Body */\n /* ---------------------------------------------------------------- */\n\n const skeletonBody = (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\">\n <Skeleton variant=\"text\" width=\"40%\" />\n <Skeleton variant=\"text\" lines={4} />\n </div>\n );\n\n const emptyBody = (\n <p className={MUTED_LINE_CLASS}>\n {t('anamnesisSummaryCard.empty', {\n defaultValue: 'No answers recorded yet',\n })}\n </p>\n );\n\n /* ---------------------------------------------------------------- */\n /* Q&A cells */\n /* ---------------------------------------------------------------- */\n\n // Question above answer, one accent glyph each, two cells across when\n // the card is wide: a reader scans questions the way they were asked,\n // and a label|value pair doubled up made four ragged columns.\n const gridClass = [\n 'ds:m-0 ds:grid ds:grid-cols-1 ds:@[672px]/afields:grid-cols-2',\n 'ds:gap-x-[var(--spacing-lg)]',\n rowGap === 'md'\n ? 'ds:gap-y-[var(--spacing-md)]'\n : 'ds:gap-y-[var(--spacing-sm)]',\n ].join(' ');\n\n const renderAnswer = (\n answer: AnamnesisSummaryAnswer,\n opts: { recorded: boolean; chip: boolean; keyPrefix: string },\n ) => {\n const flagged = opts.chip && answer.highlighted;\n const recorded = opts.recorded ? recordedLine(answer) : null;\n return (\n <div\n key={`${opts.keyPrefix}${answer.id}`}\n data-answer-id={answer.id}\n data-highlighted={answer.highlighted ? '' : undefined}\n className={[\n 'ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]',\n flagged ? HIGHLIGHTED_ROW_CLASS : '',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n <dt className=\"type-label ds:m-0 ds:flex ds:items-start ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]\">\n <MessageCircleQuestion\n aria-hidden=\"true\"\n className={QA_ICON_CLASS}\n />\n <span>{answer.label}</span>\n </dt>\n <dd className=\"type-body ds:m-0 ds:flex ds:items-start ds:gap-[var(--spacing-xs)] ds:text-[color:var(--foreground)]\">\n <MessageCircleReply aria-hidden=\"true\" className={QA_ICON_CLASS} />\n <span className=\"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n <span className=\"ds:inline-flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]\">\n <span>{answer.value}</span>\n {answer.unit ? (\n <span className=\"type-body-sm ds:text-[color:var(--muted-foreground)]\">\n {answer.unit}\n </span>\n ) : null}\n {flagged ? renderChip(answer) : null}\n </span>\n {recorded ? (\n <span className={MUTED_LINE_CLASS}>{recorded}</span>\n ) : null}\n </span>\n </dd>\n </div>\n );\n };\n\n const sectionsBody = (\n <div\n role=\"group\"\n aria-label={t('anamnesisSummaryCard.sectionsLabel', {\n defaultValue: 'Anamnesis sections',\n })}\n className={sectionsVariants({ density })}\n >\n {/* Plain <div>, deliberately not a named <section>: a named\n <section> is a `region` landmark, and one per anamnesis section\n per card would drown the page-level landmarks. The <h4> already\n gives heading navigation into each section. */}\n {(highlightedGroup || highlightedOnly) &&\n highlightedAnswers.length > 0 ? (\n <div\n data-highlighted-group=\"\"\n className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\"\n >\n {/* The card's own title already says it when this is all it shows. */}\n {highlightedOnly ? null : (\n <h4 className=\"ds:m-0 type-eyebrow ds:text-[color:var(--muted-foreground)]\">\n {t('anamnesisSummaryCard.highlightedGroup', {\n defaultValue: 'Highlighted answers',\n })}\n </h4>\n )}\n {/* Container-queried so the cells flow into two columns when the\n card is wide enough and stay single-column in a narrow rail —\n the same 672px PatientSummaryCard breaks at (px, not rem:\n container-query rem follows the host root font-size). */}\n <div className=\"ds:@container/afields\">\n <dl className={gridClass}>\n {highlightedAnswers.map((answer) =>\n renderAnswer(answer, {\n recorded: true,\n chip: false,\n keyPrefix: 'highlighted-',\n }),\n )}\n </dl>\n </div>\n </div>\n ) : null}\n {listedSections.map((section) => (\n <div\n key={section.id}\n data-section-id={section.id}\n className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\"\n >\n <h4 className=\"ds:m-0 type-eyebrow ds:text-[color:var(--muted-foreground)]\">\n {section.heading}\n </h4>\n <div className=\"ds:@container/afields\">\n <dl className={gridClass}>\n {section.answers.map((answer) =>\n renderAnswer(answer, {\n recorded: false,\n chip: true,\n keyPrefix: '',\n }),\n )}\n </dl>\n </div>\n </div>\n ))}\n </div>\n );\n\n const body = loading\n ? skeletonBody\n : visibleSections.length === 0 ||\n (highlightedOnly && highlightedAnswers.length === 0)\n ? emptyBody\n : sectionsBody;\n\n return (\n <div\n role=\"region\"\n aria-label={resolvedAriaLabel}\n aria-busy={loading || undefined}\n data-component=\"anamnesis-summary-card\"\n data-component-id={id}\n data-density={density}\n data-highlighted-only={highlightedOnly ? '' : undefined}\n id={id}\n className={rootVariants({ surface, density, className })}\n {...rest}\n >\n <Card variant={surface === 'flat' ? 'outlined' : 'elevated'}>\n <Card.Header className={headerPaddingVariants({ density })}>\n {header}\n </Card.Header>\n {/* Own TooltipProvider so a host without one still gets the chip\n tooltips; Radix providers compose, so a host-level one also works. */}\n <TooltipProvider>\n <Card.Body className={bodyPaddingVariants({ density })}>\n {body}\n </Card.Body>\n </TooltipProvider>\n {!loading && !highlightedOnly && unansweredCount > 0 ? (\n <Card.Footer className={footerPaddingVariants({ density })}>\n <p className={MUTED_LINE_CLASS}>\n {t('anamnesisSummaryCard.unanswered', {\n count: unansweredCount,\n defaultValue: '{{count}} questions not answered',\n })}\n </p>\n </Card.Footer>\n ) : null}\n </Card>\n </div>\n );\n },\n);\n\nAnamnesisSummaryCard.displayName = 'AnamnesisSummaryCard';\n\n/** Variant unions re-exported for downstream typing. */\nexport type AnamnesisSummaryCardSurface = NonNullable<\n VariantProps<typeof rootVariants>['surface']\n>;\nexport type AnamnesisSummaryCardDensity = NonNullable<\n VariantProps<typeof rootVariants>['density']\n>;\n"],"names":["__iconNode","MessageCircleQuestionMark","createLucideIcon","MessageCircleReply","anamnesisSummaryCardAgent","handle","rootVariants","cva","sectionsVariants","headerPaddingVariants","bodyPaddingVariants","footerPaddingVariants","DATE_ONLY_RE","LOCAL_DATETIME_RE","CLOCK_TIME_RE","parseReportedAt","iso","day","local","date","formatReportedAt","locale","parsed","options","HIGHLIGHTED_ROW_CLASS","CHIP_BUTTON_CLASS","QA_ICON_CLASS","MUTED_LINE_CLASS","AnamnesisSummaryCard","forwardRef","sections","title","subtitle","unansweredCount","highlightedFirst","highlightedGroup","highlightedOnly","surface","density","loading","actionSlot","id","className","ariaLabel","rest","ref","t","i18n","useTranslation","headingId","useId","activeLocale","visibleSections","useMemo","section","a","b","answerCount","sum","highlightedCount","answer","sectionCount","highlightedAnswers","listedSections","recordedLine","parts","part","useImperativeHandle","useAgentRegistration","regionLabel","resolvedTitle","resolvedAriaLabel","highlightedText","titleClass","rowGap","renderChip","tooltipLabel","jsx","Tooltip","Badge","HeartPulse","header","jsxs","skeletonBody","Skeleton","emptyBody","gridClass","renderAnswer","opts","flagged","recorded","MessageCircleQuestion","sectionsBody","body","Card","TooltipProvider"],"mappings":";;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AAAA,EACE,CAAC,QAAQ,EAAE,GAAG,wCAAwC,KAAK,SAAQ,CAAE;AAAA,EACrE,CAAC,QAAQ,EAA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