@alfadocs/ui-kit-debug 1.34.0 → 1.35.0
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/appointment-card-Bh_CIlc6.js +431 -0
- package/dist/_chunks/appointment-card-Bh_CIlc6.js.map +1 -0
- package/dist/_chunks/appointment-timeline-De-Wqdkw.js +449 -0
- package/dist/_chunks/appointment-timeline-De-Wqdkw.js.map +1 -0
- package/dist/_chunks/{appointment-tray-6rg071CL.js → appointment-tray-4I9wTAi4.js} +2 -2
- package/dist/_chunks/{appointment-tray-6rg071CL.js.map → appointment-tray-4I9wTAi4.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-4NH1Z47_.js → calendar-workspace-UywR5gUl.js} +3 -3
- package/dist/_chunks/{calendar-workspace-4NH1Z47_.js.map → calendar-workspace-UywR5gUl.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-CZW476Kg.js → care-plan-card-DHVhBcvs.js} +3 -3
- package/dist/_chunks/{care-plan-card-CZW476Kg.js.map → care-plan-card-DHVhBcvs.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-BMUYagEw.js → care-plan-entry-card-Dx6IdTcR.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-BMUYagEw.js.map → care-plan-entry-card-Dx6IdTcR.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-B5CBE0zu.js → care-plan-header-UTX5ZD74.js} +2 -2
- package/dist/_chunks/{care-plan-header-B5CBE0zu.js.map → care-plan-header-UTX5ZD74.js.map} +1 -1
- package/dist/_chunks/{entity-card-DmrgYSEX.js → entity-card-9_62gY7l.js} +4 -4
- package/dist/_chunks/{entity-card-DmrgYSEX.js.map → entity-card-9_62gY7l.js.map} +1 -1
- package/dist/_chunks/{operator-hero-D7-iiFQ9.js → operator-hero-aG_qyn6g.js} +2 -2
- package/dist/_chunks/{operator-hero-D7-iiFQ9.js.map → operator-hero-aG_qyn6g.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-lmKLwsDs.js → payment-request-card-DvEsWEkC.js} +2 -2
- package/dist/_chunks/{payment-request-card-lmKLwsDs.js.map → payment-request-card-DvEsWEkC.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +36 -1
- package/dist/components/appointment-card/appointment-card.d.ts.map +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
- package/dist/components/appointment-timeline/appointment-timeline.d.ts.map +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +5 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +6 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +6 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +5 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +6 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +6 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +6 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +6 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +5 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +6 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +8 -3
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +8 -3
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +5 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +6 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +5 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +6 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +5 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +6 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +5 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +6 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +5 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +6 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +6 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +5 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +6 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +5 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +6 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +5 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +6 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +5 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +6 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/locales/ar.json +6 -1
- package/dist/locales/de.json +6 -1
- package/dist/locales/el.json +6 -1
- package/dist/locales/en.json +6 -1
- package/dist/locales/es.json +6 -1
- package/dist/locales/fr.json +6 -1
- package/dist/locales/hi.json +6 -1
- package/dist/locales/it.json +8 -3
- package/dist/locales/ja.json +6 -1
- package/dist/locales/nl.json +6 -1
- package/dist/locales/pl.json +6 -1
- package/dist/locales/pt.json +6 -1
- package/dist/locales/ro.json +6 -1
- package/dist/locales/ru.json +6 -1
- package/dist/locales/sq.json +6 -1
- package/dist/locales/sv.json +6 -1
- package/dist/locales/tr.json +6 -1
- package/dist/locales/zh.json +6 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/appointment-card-D6mk39NB.js +0 -296
- package/dist/_chunks/appointment-card-D6mk39NB.js.map +0 -1
- package/dist/_chunks/appointment-timeline-D-V97Bhc.js +0 -403
- package/dist/_chunks/appointment-timeline-D-V97Bhc.js.map +0 -1
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as oa } from "react";
|
|
3
|
+
import { c as ta } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as da } from "react-i18next";
|
|
5
|
+
import { A as K } from "./avatar-CkDeQOSI.js";
|
|
6
|
+
import { B as t } from "./badge-sTusUqZD.js";
|
|
7
|
+
import { T as ia } from "./tag-3wgkwwDB.js";
|
|
8
|
+
import { T as la } from "./timestamp-BV2lC-wV.js";
|
|
9
|
+
import { T as Y } from "./transaction-chip-DJCstquX.js";
|
|
10
|
+
import { i as ca } from "./is-safe-url-DkETxeHz.js";
|
|
11
|
+
import { V as pa } from "./video-BheNGvsu.js";
|
|
12
|
+
import { M as ua } from "./map-pin-BaY37-Km.js";
|
|
13
|
+
import { a as ma, b as ga, c as fa } from "./entity-card-9_62gY7l.js";
|
|
14
|
+
import { c as f } from "./createLucideIcon-DhHxpK9K.js";
|
|
15
|
+
import { S as W } from "./star-Bf9L2Uot.js";
|
|
16
|
+
import { A as ha } from "./armchair-BaLDW6Hz.js";
|
|
17
|
+
import { G as va } from "./globe-sHBW1JN5.js";
|
|
18
|
+
import { R as ba } from "./repeat-CvQa5rZt.js";
|
|
19
|
+
import { C as ya } from "./chevron-right-I9AeSxH2.js";
|
|
20
|
+
/**
|
|
21
|
+
* @license lucide-react v1.22.0 - ISC
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the ISC license.
|
|
24
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/
|
|
26
|
+
const xa = [
|
|
27
|
+
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
28
|
+
[
|
|
29
|
+
"path",
|
|
30
|
+
{
|
|
31
|
+
d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
|
|
32
|
+
key: "116196"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
["path", { d: "M9 14h6", key: "159ibu" }],
|
|
36
|
+
["path", { d: "M12 17v-6", key: "1y8rbf" }]
|
|
37
|
+
], ka = f("clipboard-plus", xa);
|
|
38
|
+
/**
|
|
39
|
+
* @license lucide-react v1.22.0 - ISC
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the ISC license.
|
|
42
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
const Na = [
|
|
45
|
+
[
|
|
46
|
+
"path",
|
|
47
|
+
{
|
|
48
|
+
d: "M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",
|
|
49
|
+
key: "ukzhwg"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
["path", { d: "M14.487 7.858A1 1 0 0 1 14 7V2", key: "1klhew" }],
|
|
53
|
+
[
|
|
54
|
+
"path",
|
|
55
|
+
{
|
|
56
|
+
d: "M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",
|
|
57
|
+
key: "rxaxab"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
["path", { d: "M8 18h1", key: "13wk12" }]
|
|
61
|
+
], Ca = f("file-pen-line", Na);
|
|
62
|
+
/**
|
|
63
|
+
* @license lucide-react v1.22.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/
|
|
68
|
+
const wa = [
|
|
69
|
+
[
|
|
70
|
+
"path",
|
|
71
|
+
{
|
|
72
|
+
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
|
73
|
+
key: "18887p"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
["path", { d: "M7 11h10", key: "1twpyw" }],
|
|
77
|
+
["path", { d: "M7 15h6", key: "d9of3u" }],
|
|
78
|
+
["path", { d: "M7 7h8", key: "af5zfr" }]
|
|
79
|
+
], za = f("message-square-text", wa);
|
|
80
|
+
/**
|
|
81
|
+
* @license lucide-react v1.22.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/
|
|
86
|
+
const Ta = [
|
|
87
|
+
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
88
|
+
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
89
|
+
["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
|
|
90
|
+
["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
|
|
91
|
+
], Ma = f("user-x", Ta), Va = {
|
|
92
|
+
"var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
|
|
93
|
+
"var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
|
|
94
|
+
"var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
|
|
95
|
+
"var(--color-blue-500)": "ds:bg-[var(--color-blue-500)]",
|
|
96
|
+
"var(--color-green-500)": "ds:bg-[var(--color-green-500)]",
|
|
97
|
+
"var(--color-red-500)": "ds:bg-[var(--color-red-500)]",
|
|
98
|
+
"var(--color-yellow-500)": "ds:bg-[var(--color-yellow-500)]",
|
|
99
|
+
"var(--color-indigo-500)": "ds:bg-[var(--color-indigo-500)]",
|
|
100
|
+
"var(--color-orange-500)": "ds:bg-[var(--color-orange-500)]",
|
|
101
|
+
"var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
|
|
102
|
+
"var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
|
|
103
|
+
};
|
|
104
|
+
function Ra(a) {
|
|
105
|
+
return Va[fa(a)] ?? "ds:bg-[var(--color-grey-700)]";
|
|
106
|
+
}
|
|
107
|
+
function _a(a) {
|
|
108
|
+
if (!a) return;
|
|
109
|
+
const d = new Date(a);
|
|
110
|
+
if (Number.isNaN(d.getTime())) return;
|
|
111
|
+
const p = /* @__PURE__ */ new Date();
|
|
112
|
+
let o = p.getFullYear() - d.getFullYear();
|
|
113
|
+
const u = p.getMonth() - d.getMonth();
|
|
114
|
+
return (u < 0 || u === 0 && p.getDate() < d.getDate()) && o--, o < 0 || o > 130 ? void 0 : o;
|
|
115
|
+
}
|
|
116
|
+
const Da = ta(
|
|
117
|
+
[
|
|
118
|
+
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
119
|
+
"ds:rounded-[var(--radius-md)]",
|
|
120
|
+
"ds:text-start ds:group",
|
|
121
|
+
"ds:bg-[var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
122
|
+
"ds:transition-[colors,border-color,box-shadow] ds:duration-[var(--animation-duration)]",
|
|
123
|
+
"ds:motion-reduce:transition-none",
|
|
124
|
+
"ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
|
|
125
|
+
].join(" "),
|
|
126
|
+
{
|
|
127
|
+
variants: {
|
|
128
|
+
size: {
|
|
129
|
+
sm: "ds:p-[var(--spacing-sm)]",
|
|
130
|
+
md: "ds:p-[var(--spacing-md)]"
|
|
131
|
+
},
|
|
132
|
+
interactive: {
|
|
133
|
+
true: "ds:hover:bg-[color:var(--muted)]/40 ds:cursor-pointer",
|
|
134
|
+
false: ""
|
|
135
|
+
},
|
|
136
|
+
surface: {
|
|
137
|
+
// `flat` (default) is the chrome-less row used inside a bordered
|
|
138
|
+
// AppointmentTray. `elevated` gives each row its own card chrome
|
|
139
|
+
// (border + shadow) for use directly on a rail, e.g. AppointmentTimeline.
|
|
140
|
+
// Uses `--shadow-sm` (a row lift), not `--shadow-card`/`--shadow-lg`:
|
|
141
|
+
// the rail's `overflow-y:auto` scroll region clips `overflow-x` at a
|
|
142
|
+
// narrow gutter, so a wide 30px-blur shadow gets a hard-edged clip.
|
|
143
|
+
flat: "",
|
|
144
|
+
elevated: "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:shadow-[var(--shadow-sm)]"
|
|
145
|
+
},
|
|
146
|
+
selected: {
|
|
147
|
+
// The row the host has marked as the active/selected appointment —
|
|
148
|
+
// matches the `current` note's info-tinted accent: a solid
|
|
149
|
+
// inline-start bar plus a soft info wash, so the eye keeps its
|
|
150
|
+
// place in the list after a click.
|
|
151
|
+
true: "ds:border-s-2 ds:border-s-[color:var(--info)] ds:bg-[color:var(--info)]/10",
|
|
152
|
+
false: ""
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
defaultVariants: {
|
|
156
|
+
size: "sm",
|
|
157
|
+
interactive: !1,
|
|
158
|
+
surface: "flat",
|
|
159
|
+
selected: !1
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
), X = [
|
|
163
|
+
// Interactive elements need a box to remain keyboard-focusable in browsers.
|
|
164
|
+
"ds:inline-flex ds:min-w-0",
|
|
165
|
+
"ds:focus-visible:outline-none",
|
|
166
|
+
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-md)]",
|
|
167
|
+
"ds:after:pointer-events-auto",
|
|
168
|
+
"ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
|
|
169
|
+
"ds:focus-visible:after:outline-solid",
|
|
170
|
+
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
171
|
+
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
172
|
+
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
173
|
+
].join(" "), Sa = {
|
|
174
|
+
inPractice: ua,
|
|
175
|
+
telehealth: pa
|
|
176
|
+
}, Aa = oa(
|
|
177
|
+
({
|
|
178
|
+
item: a,
|
|
179
|
+
size: d = "sm",
|
|
180
|
+
surface: p = "flat",
|
|
181
|
+
locale: o,
|
|
182
|
+
currency: u = "EUR",
|
|
183
|
+
showPatient: i = !0,
|
|
184
|
+
onActivate: l,
|
|
185
|
+
selected: N = !1,
|
|
186
|
+
className: J,
|
|
187
|
+
...Q
|
|
188
|
+
}, Z) => {
|
|
189
|
+
var R, _, D, S, A, L, I, P, U, $, O, j, q, B, E, F, H, G;
|
|
190
|
+
const { t: s } = da(), m = !!l, aa = !!a.url && ca(a.url), h = ((R = a.patient) == null ? void 0 : R.name) ?? s("appointmentCard.noPatient"), c = (_ = a.operator) == null ? void 0 : _.name, v = s(`appointmentCard.state.${a.state}`), C = _a((D = a.patient) == null ? void 0 : D.dobIso), ea = ((S = a.flags) == null ? void 0 : S.noPatientAssigned) || !a.patient, b = d === "md" ? "md" : "sm", sa = Sa[a.type], w = i ? h : c ?? s("appointmentCard.appointment"), z = i ? s("appointmentCard.itemLabel", {
|
|
191
|
+
patient: h,
|
|
192
|
+
state: v
|
|
193
|
+
}) : s("appointmentCard.itemLabelGeneric", { title: w, state: v }), y = /* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]", children: [
|
|
194
|
+
w,
|
|
195
|
+
i && C !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
|
|
196
|
+
"· ",
|
|
197
|
+
C
|
|
198
|
+
] }) : null
|
|
199
|
+
] });
|
|
200
|
+
let g;
|
|
201
|
+
m && aa ? g = /* @__PURE__ */ e(
|
|
202
|
+
"a",
|
|
203
|
+
{
|
|
204
|
+
href: a.url,
|
|
205
|
+
"aria-label": z,
|
|
206
|
+
className: X,
|
|
207
|
+
onClick: (n) => {
|
|
208
|
+
n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || l == null || l(a);
|
|
209
|
+
},
|
|
210
|
+
children: y
|
|
211
|
+
}
|
|
212
|
+
) : m ? g = /* @__PURE__ */ e(
|
|
213
|
+
"button",
|
|
214
|
+
{
|
|
215
|
+
type: "button",
|
|
216
|
+
"aria-label": z,
|
|
217
|
+
className: X + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
|
|
218
|
+
onClick: () => l == null ? void 0 : l(a),
|
|
219
|
+
children: y
|
|
220
|
+
}
|
|
221
|
+
) : g = y;
|
|
222
|
+
const T = (a.treatments ?? []).map((n, ra) => {
|
|
223
|
+
const na = n.elements && n.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
|
|
224
|
+
care: n.careName,
|
|
225
|
+
elements: n.elements.join(", ")
|
|
226
|
+
}) : n.careName;
|
|
227
|
+
return /* @__PURE__ */ e(
|
|
228
|
+
ia,
|
|
229
|
+
{
|
|
230
|
+
label: na,
|
|
231
|
+
variant: "neutral",
|
|
232
|
+
fill: "outline",
|
|
233
|
+
size: "sm",
|
|
234
|
+
maxInlineSize: "12rem"
|
|
235
|
+
},
|
|
236
|
+
`${n.careName}-${ra}`
|
|
237
|
+
);
|
|
238
|
+
}), x = (A = a.bookingReason) == null ? void 0 : A.advanceAmountCents, M = typeof x == "number" && x > 0, k = (L = a.money) == null ? void 0 : L.unpaidAmountCents, V = typeof k == "number" && k > 0;
|
|
239
|
+
return /* @__PURE__ */ r(
|
|
240
|
+
"div",
|
|
241
|
+
{
|
|
242
|
+
ref: Z,
|
|
243
|
+
role: "listitem",
|
|
244
|
+
"data-component": "appointment-card",
|
|
245
|
+
"data-component-id": a.id,
|
|
246
|
+
"data-state": a.state,
|
|
247
|
+
"data-type": a.type,
|
|
248
|
+
"aria-current": N ? "true" : void 0,
|
|
249
|
+
className: Da({
|
|
250
|
+
size: d,
|
|
251
|
+
interactive: m,
|
|
252
|
+
surface: p,
|
|
253
|
+
selected: N,
|
|
254
|
+
className: J
|
|
255
|
+
}),
|
|
256
|
+
...Q,
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ r("span", { className: "ds:flex ds:min-w-20 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
|
|
259
|
+
/* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap ds:text-[color:var(--muted-foreground)]", children: [
|
|
260
|
+
/* @__PURE__ */ e(sa, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
261
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: s(`appointmentCard.type.${a.type}`) }),
|
|
262
|
+
/* @__PURE__ */ e(
|
|
263
|
+
la,
|
|
264
|
+
{
|
|
265
|
+
value: a.startIso,
|
|
266
|
+
format: "absolute",
|
|
267
|
+
shape: "bare",
|
|
268
|
+
locale: o,
|
|
269
|
+
absoluteFormat: { hour: "numeric", minute: "2-digit" },
|
|
270
|
+
className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
] }),
|
|
274
|
+
/* @__PURE__ */ e("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: s("appointmentCard.duration", { count: a.durationMin }) })
|
|
275
|
+
] }),
|
|
276
|
+
c ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
|
|
277
|
+
/* @__PURE__ */ e(
|
|
278
|
+
K,
|
|
279
|
+
{
|
|
280
|
+
name: c,
|
|
281
|
+
color: ma((I = a.operator) == null ? void 0 : I.colorId),
|
|
282
|
+
size: b,
|
|
283
|
+
"aria-hidden": "true",
|
|
284
|
+
role: "presentation",
|
|
285
|
+
"aria-label": void 0
|
|
286
|
+
}
|
|
287
|
+
),
|
|
288
|
+
/* @__PURE__ */ e(
|
|
289
|
+
"span",
|
|
290
|
+
{
|
|
291
|
+
"aria-hidden": "true",
|
|
292
|
+
className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " + Ra((P = a.operator) == null ? void 0 : P.colorId)
|
|
293
|
+
}
|
|
294
|
+
)
|
|
295
|
+
] }) : null,
|
|
296
|
+
/* @__PURE__ */ r("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
297
|
+
/* @__PURE__ */ r("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
298
|
+
/* @__PURE__ */ r("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
299
|
+
i && ((U = a.patient) != null && U.avatarUrl) ? /* @__PURE__ */ e(
|
|
300
|
+
K,
|
|
301
|
+
{
|
|
302
|
+
name: h,
|
|
303
|
+
src: a.patient.avatarUrl,
|
|
304
|
+
size: b,
|
|
305
|
+
className: "ds:shrink-0",
|
|
306
|
+
"aria-hidden": "true",
|
|
307
|
+
role: "presentation",
|
|
308
|
+
"aria-label": void 0
|
|
309
|
+
}
|
|
310
|
+
) : null,
|
|
311
|
+
i && ea ? /* @__PURE__ */ e(
|
|
312
|
+
"span",
|
|
313
|
+
{
|
|
314
|
+
className: `ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ${b === "md" ? "ds:size-10" : "ds:size-8"}`,
|
|
315
|
+
children: /* @__PURE__ */ e(Ma, { "aria-hidden": "true", className: "ds:size-4" })
|
|
316
|
+
}
|
|
317
|
+
) : null,
|
|
318
|
+
g
|
|
319
|
+
] }),
|
|
320
|
+
/* @__PURE__ */ e(
|
|
321
|
+
t,
|
|
322
|
+
{
|
|
323
|
+
variant: ga(a.state),
|
|
324
|
+
size: "sm",
|
|
325
|
+
withDot: !0,
|
|
326
|
+
className: "ds:shrink-0",
|
|
327
|
+
children: v
|
|
328
|
+
}
|
|
329
|
+
)
|
|
330
|
+
] }),
|
|
331
|
+
i && c || ($ = a.bookingReason) != null && $.specialty || a.firstVisit === "yes" || a.firstVisit === "unknown" || a.bookingNote ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]", children: [
|
|
332
|
+
i && c ? /* @__PURE__ */ e("span", { children: c }) : null,
|
|
333
|
+
(O = a.bookingReason) != null && O.specialty ? /* @__PURE__ */ e("span", { children: a.bookingReason.specialty }) : null,
|
|
334
|
+
a.firstVisit === "yes" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
335
|
+
/* @__PURE__ */ e(W, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
336
|
+
s("appointmentCard.firstVisit")
|
|
337
|
+
] }) : null,
|
|
338
|
+
a.firstVisit === "unknown" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
339
|
+
/* @__PURE__ */ e(W, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
340
|
+
s("appointmentCard.firstVisitUnknown")
|
|
341
|
+
] }) : null,
|
|
342
|
+
a.bookingNote ? /* @__PURE__ */ r(
|
|
343
|
+
"span",
|
|
344
|
+
{
|
|
345
|
+
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
346
|
+
title: s("appointmentCard.hasBookingNote"),
|
|
347
|
+
children: [
|
|
348
|
+
/* @__PURE__ */ e(
|
|
349
|
+
za,
|
|
350
|
+
{
|
|
351
|
+
"aria-hidden": "true",
|
|
352
|
+
className: "ds:size-3 ds:shrink-0"
|
|
353
|
+
}
|
|
354
|
+
),
|
|
355
|
+
s("appointmentCard.hasBookingNote")
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
) : null
|
|
359
|
+
] }) : null,
|
|
360
|
+
(j = a.bookingReason) != null && j.description ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
|
|
361
|
+
T.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: T }) : null,
|
|
362
|
+
a.carePlan || a.chair || (q = a.flags) != null && q.bookedOnline || (B = a.flags) != null && B.highlightedAnamnesis || (E = a.flags) != null && E.billable || a.recurring || a.signing || M || V ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
363
|
+
a.carePlan ? /* @__PURE__ */ e(
|
|
364
|
+
t,
|
|
365
|
+
{
|
|
366
|
+
variant: "accentSoft",
|
|
367
|
+
size: "sm",
|
|
368
|
+
leading: /* @__PURE__ */ e(ka, {}),
|
|
369
|
+
children: s("appointmentCard.carePlan", {
|
|
370
|
+
number: a.carePlan.number
|
|
371
|
+
})
|
|
372
|
+
}
|
|
373
|
+
) : null,
|
|
374
|
+
a.chair ? /* @__PURE__ */ e(t, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ha, {}), children: s("appointmentCard.chair", { chair: a.chair }) }) : null,
|
|
375
|
+
(F = a.flags) != null && F.bookedOnline ? /* @__PURE__ */ e(t, { variant: "info", size: "sm", leading: /* @__PURE__ */ e(va, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
|
|
376
|
+
(H = a.flags) != null && H.highlightedAnamnesis ? /* @__PURE__ */ e(t, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
|
|
377
|
+
a.recurring ? /* @__PURE__ */ e(t, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ba, {}), children: s("appointmentCard.recurring") }) : null,
|
|
378
|
+
a.signing ? /* @__PURE__ */ e(
|
|
379
|
+
t,
|
|
380
|
+
{
|
|
381
|
+
variant: a.signing.toComplete >= a.signing.required ? "success" : "warning",
|
|
382
|
+
size: "sm",
|
|
383
|
+
leading: /* @__PURE__ */ e(Ca, {}),
|
|
384
|
+
children: s("appointmentCard.signing", {
|
|
385
|
+
complete: a.signing.toComplete,
|
|
386
|
+
required: a.signing.required
|
|
387
|
+
})
|
|
388
|
+
}
|
|
389
|
+
) : null,
|
|
390
|
+
(G = a.flags) != null && G.billable ? /* @__PURE__ */ e(t, { variant: "success", size: "sm", withDot: !0, children: s("appointmentCard.flag.billable") }) : null,
|
|
391
|
+
M ? /* @__PURE__ */ e(
|
|
392
|
+
Y,
|
|
393
|
+
{
|
|
394
|
+
state: "to-invoice",
|
|
395
|
+
amount: x / 100,
|
|
396
|
+
currency: u,
|
|
397
|
+
locale: o,
|
|
398
|
+
size: "sm",
|
|
399
|
+
showLabel: !0
|
|
400
|
+
}
|
|
401
|
+
) : null,
|
|
402
|
+
V ? /* @__PURE__ */ e(
|
|
403
|
+
Y,
|
|
404
|
+
{
|
|
405
|
+
state: "debt",
|
|
406
|
+
amount: k / 100,
|
|
407
|
+
currency: u,
|
|
408
|
+
locale: o,
|
|
409
|
+
size: "sm",
|
|
410
|
+
showLabel: !0
|
|
411
|
+
}
|
|
412
|
+
) : null
|
|
413
|
+
] }) : null
|
|
414
|
+
] }),
|
|
415
|
+
m ? /* @__PURE__ */ e(
|
|
416
|
+
ya,
|
|
417
|
+
{
|
|
418
|
+
"aria-hidden": "true",
|
|
419
|
+
className: "ds:size-4 ds:shrink-0 ds:self-center ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180"
|
|
420
|
+
}
|
|
421
|
+
) : null
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
);
|
|
427
|
+
Aa.displayName = "AppointmentCard";
|
|
428
|
+
export {
|
|
429
|
+
Aa as A
|
|
430
|
+
};
|
|
431
|
+
//# sourceMappingURL=appointment-card-Bh_CIlc6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment-card-Bh_CIlc6.js","sources":["../../node_modules/lucide-react/dist/esm/icons/clipboard-plus.mjs","../../node_modules/lucide-react/dist/esm/icons/file-pen-line.mjs","../../node_modules/lucide-react/dist/esm/icons/message-square-text.mjs","../../node_modules/lucide-react/dist/esm/icons/user-x.mjs","../../src/components/appointment-card/appointment-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 [\"rect\", { width: \"8\", height: \"4\", x: \"8\", y: \"2\", rx: \"1\", ry: \"1\", key: \"tgr4d6\" }],\n [\n \"path\",\n {\n d: \"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\",\n key: \"116196\"\n }\n ],\n [\"path\", { d: \"M9 14h6\", key: \"159ibu\" }],\n [\"path\", { d: \"M12 17v-6\", key: \"1y8rbf\" }]\n];\nconst ClipboardPlus = createLucideIcon(\"clipboard-plus\", __iconNode);\n\nexport { __iconNode, ClipboardPlus as default };\n//# sourceMappingURL=clipboard-plus.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: \"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z\",\n key: \"ukzhwg\"\n }\n ],\n [\"path\", { d: \"M14.487 7.858A1 1 0 0 1 14 7V2\", key: \"1klhew\" }],\n [\n \"path\",\n {\n d: \"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516\",\n key: \"rxaxab\"\n }\n ],\n [\"path\", { d: \"M8 18h1\", key: \"13wk12\" }]\n];\nconst FilePenLine = createLucideIcon(\"file-pen-line\", __iconNode);\n\nexport { __iconNode, FilePenLine as default };\n//# sourceMappingURL=file-pen-line.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: \"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z\",\n key: \"18887p\"\n }\n ],\n [\"path\", { d: \"M7 11h10\", key: \"1twpyw\" }],\n [\"path\", { d: \"M7 15h6\", key: \"d9of3u\" }],\n [\"path\", { d: \"M7 7h8\", key: \"af5zfr\" }]\n];\nconst MessageSquareText = createLucideIcon(\"message-square-text\", __iconNode);\n\nexport { __iconNode, MessageSquareText as default };\n//# sourceMappingURL=message-square-text.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 [\"path\", { d: \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\", key: \"1yyitq\" }],\n [\"circle\", { cx: \"9\", cy: \"7\", r: \"4\", key: \"nufk8\" }],\n [\"line\", { x1: \"17\", x2: \"22\", y1: \"8\", y2: \"13\", key: \"3nzzx3\" }],\n [\"line\", { x1: \"22\", x2: \"17\", y1: \"8\", y2: \"13\", key: \"1swrse\" }]\n];\nconst UserX = createLucideIcon(\"user-x\", __iconNode);\n\nexport { __iconNode, UserX as default };\n//# sourceMappingURL=user-x.mjs.map\n","import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport {\n Armchair,\n ChevronRight,\n ClipboardPlus,\n FileSignature,\n Globe,\n MapPin,\n MessageSquareText,\n Repeat,\n Star,\n UserX,\n Video,\n} from 'lucide-react';\nimport { Avatar } from '../avatar/avatar';\nimport { Badge } from '../badge/badge';\nimport { Tag } from '../tag/tag';\nimport { Timestamp } from '../timestamp/timestamp';\nimport { TransactionChip } from '../transaction-chip/transaction-chip';\nimport {\n appointmentStateBadge,\n colorIdToToken,\n colorIdToAvatarToken,\n isSafeEntityUrl,\n} from '../_shared/entity-card';\nimport type { AppointmentState } from '../_shared/entity-card';\n\n/*\n * Closed colour-dot class map. `colorIdToToken` resolves the operator's\n * numeric colour id to one of a fixed set of palette tokens; the operator\n * dot needs a *static* Tailwind class for each so the compiler can emit it\n * (dynamic `ds:bg-[…]` strings are not seen by the JIT). The keys mirror the\n * exact token strings the shared helper returns.\n */\nconst OPERATOR_DOT_CLASS: Record<string, string> = {\n 'var(--color-violet-500)': 'ds:bg-[var(--color-violet-500)]',\n 'var(--color-purple-500)': 'ds:bg-[var(--color-purple-500)]',\n 'var(--color-magenta-500)': 'ds:bg-[var(--color-magenta-500)]',\n 'var(--color-blue-500)': 'ds:bg-[var(--color-blue-500)]',\n 'var(--color-green-500)': 'ds:bg-[var(--color-green-500)]',\n 'var(--color-red-500)': 'ds:bg-[var(--color-red-500)]',\n 'var(--color-yellow-500)': 'ds:bg-[var(--color-yellow-500)]',\n 'var(--color-indigo-500)': 'ds:bg-[var(--color-indigo-500)]',\n 'var(--color-orange-500)': 'ds:bg-[var(--color-orange-500)]',\n 'var(--color-fuchsia-500)': 'ds:bg-[var(--color-fuchsia-500)]',\n 'var(--color-grey-700)': 'ds:bg-[var(--color-grey-700)]',\n};\n\nfunction operatorDotClass(colorId: number | string | undefined): string {\n return (\n OPERATOR_DOT_CLASS[colorIdToToken(colorId)] ??\n 'ds:bg-[var(--color-grey-700)]'\n );\n}\n\n/** Age in whole years from a DOB string, or undefined if unparseable. */\nfunction ageFromDob(dobIso: string | undefined): number | undefined {\n if (!dobIso) return undefined;\n const dob = new Date(dobIso);\n if (Number.isNaN(dob.getTime())) return undefined;\n const now = new Date();\n let age = now.getFullYear() - dob.getFullYear();\n const monthDiff = now.getMonth() - dob.getMonth();\n if (monthDiff < 0 || (monthDiff === 0 && now.getDate() < dob.getDate())) {\n age--;\n }\n return age < 0 || age > 130 ? undefined : age;\n}\n\n/* -------------------------------------------------------------------- */\n/* AppointmentCard */\n/* */\n/* Single-row appointment surface — sibling of AgendaCard, but richer: */\n/* leading timestamp, operator + patient avatars with the operator */\n/* colour dot, a lifecycle-state Badge (announced by label, never colour */\n/* alone), treatment / tooth Tags, and an optional advance-deposit */\n/* TransactionChip. State→Badge-variant + colour-id→token + URL-safety */\n/* come from the shared `_shared/entity-card` helpers. */\n/* */\n/* All visible text flows through useTranslation('ui') against the */\n/* `appointmentCard.*` namespace (plus shared `financial.*` for money). */\n/* -------------------------------------------------------------------- */\n\n// Back-compat / one-stop import — the URL guard lives in the shared helper.\nexport { isSafeEntityUrl as isSafeAppointmentUrl } from '../_shared/is-safe-url';\n\n/* -------------------------------------------------------------------- */\n/* Types */\n/* -------------------------------------------------------------------- */\n\n/** Appointment delivery channel. */\nexport type AppointmentType = 'inPractice' | 'telehealth';\n\n/** First-visit tri-state flag. */\nexport type AppointmentFirstVisit = 'yes' | 'no' | 'unknown';\n\n/** Operator (clinician) summary — name + optional palette colour id. */\nexport interface AppointmentOperator {\n /** Operator display name — drives the avatar initials + accessible name. */\n name: string;\n /** Numeric palette colour id, resolved to a kit token for the colour dot. */\n colorId?: number | string;\n}\n\n/** Patient summary — identity + optional age driver. */\nexport interface AppointmentPatient {\n /** Patient display name. */\n name: string;\n /** Optional avatar image URL. */\n avatarUrl?: string;\n /** ISO-8601 date of birth — when present, the card renders the age as a\n * suffix on the name (e.g. \"Carol Danvers · 45\"). */\n dobIso?: string;\n}\n\n/** One treatment line within the appointment. */\nexport interface AppointmentTreatment {\n /** Localised care / treatment name. */\n careName: string;\n /** Optional tooth elements (e.g. FDI ids) the treatment targets. */\n elements?: string[];\n}\n\n/** Booking-reason metadata captured at online-booking time. */\nexport interface AppointmentBookingReason {\n /** Localised booking-reason description. */\n description: string;\n /** Expected duration in minutes. */\n durationMin?: number;\n /** Advance / deposit amount in cents (non-negative). */\n advanceAmountCents?: number;\n /** Localised specialty label. */\n specialty?: string;\n}\n\n/** Money summary for the appointment. */\nexport interface AppointmentMoney {\n /** Total billable amount in cents. When present, rendered as a\n * TransactionChip. */\n billableAmountCents?: number;\n /** Outstanding unpaid amount in cents. When > 0, rendered as a warning\n * TransactionChip so the front desk can flag it at a glance. */\n unpaidAmountCents?: number;\n}\n\n/** Signing status for documents attached to the appointment. */\nexport interface AppointmentSigning {\n /** How many documents require a signature. */\n required: number;\n /** How many have been completed so far. */\n toComplete: number;\n}\n\n/** Boolean appointment flags surfaced as chips / indicators. */\nexport interface AppointmentFlags {\n bookedOnline?: boolean;\n noPatientAssigned?: boolean;\n highlightedAnamnesis?: boolean;\n billable?: boolean;\n}\n\nexport interface AppointmentItem {\n /** Stable appointment identifier. */\n id: string;\n /** ISO-8601 start instant. */\n startIso: string;\n /** Duration in minutes. */\n durationMin: number;\n /** Lifecycle state — drives the Badge variant + label. */\n state: AppointmentState;\n /** Delivery channel — drives the leading type glyph. */\n type: AppointmentType;\n /** First-visit flag. */\n firstVisit?: AppointmentFirstVisit;\n /** Assigned operator. */\n operator?: AppointmentOperator;\n /** Chair / room label — surfaced as a chip. */\n chair?: string;\n /**\n * The care plan this appointment belongs to, when any — surfaced as a chip\n * (`Care plan {number}`). `url` is the deep link the consumer may use for\n * navigation; the chip itself is non-interactive so it never nests an anchor\n * inside the row's own stretched link.\n */\n carePlan?: { number: string; url?: string };\n /** Patient identity. */\n patient?: AppointmentPatient;\n /** Treatment lines. */\n treatments?: AppointmentTreatment[];\n /** Online booking-reason metadata. */\n bookingReason?: AppointmentBookingReason;\n /** Boolean flags. */\n flags?: AppointmentFlags;\n /** Money summary — billable + unpaid amounts. */\n money?: AppointmentMoney;\n /** Whether this appointment is part of a recurring series. */\n recurring?: boolean;\n /** Signing status for attached documents. */\n signing?: AppointmentSigning;\n /** A note left by the patient at booking time. When present, a small\n * message icon signals it. */\n bookingNote?: string;\n /** Optional deep link — when present (and safe) the row renders as an anchor. */\n url?: string;\n}\n\n/* -------------------------------------------------------------------- */\n/* CVA — row */\n/* -------------------------------------------------------------------- */\n\nconst appointmentCardVariants = cva(\n [\n 'ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]',\n 'ds:rounded-[var(--radius-md)]',\n 'ds:text-start ds:group',\n 'ds:bg-[var(--card)] ds:text-[color:var(--card-foreground)]',\n 'ds:transition-[colors,border-color,box-shadow] ds:duration-[var(--animation-duration)]',\n 'ds:motion-reduce:transition-none',\n 'ds:forced-colors:border ds:forced-colors:border-[CanvasText]',\n ].join(' '),\n {\n variants: {\n size: {\n sm: 'ds:p-[var(--spacing-sm)]',\n md: 'ds:p-[var(--spacing-md)]',\n },\n interactive: {\n true: 'ds:hover:bg-[color:var(--muted)]/40 ds:cursor-pointer',\n false: '',\n },\n surface: {\n // `flat` (default) is the chrome-less row used inside a bordered\n // AppointmentTray. `elevated` gives each row its own card chrome\n // (border + shadow) for use directly on a rail, e.g. AppointmentTimeline.\n // Uses `--shadow-sm` (a row lift), not `--shadow-card`/`--shadow-lg`:\n // the rail's `overflow-y:auto` scroll region clips `overflow-x` at a\n // narrow gutter, so a wide 30px-blur shadow gets a hard-edged clip.\n flat: '',\n elevated:\n 'ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:shadow-[var(--shadow-sm)]',\n },\n selected: {\n // The row the host has marked as the active/selected appointment —\n // matches the `current` note's info-tinted accent: a solid\n // inline-start bar plus a soft info wash, so the eye keeps its\n // place in the list after a click.\n true: 'ds:border-s-2 ds:border-s-[color:var(--info)] ds:bg-[color:var(--info)]/10',\n false: '',\n },\n },\n defaultVariants: {\n size: 'sm',\n interactive: false,\n surface: 'flat',\n selected: false,\n },\n },\n);\n\nconst stretchedLinkClass = [\n // Interactive elements need a box to remain keyboard-focusable in browsers.\n 'ds:inline-flex ds:min-w-0',\n 'ds:focus-visible:outline-none',\n \"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-md)]\",\n 'ds:after:pointer-events-auto',\n 'ds:focus-visible:after:outline-[length:var(--focus-ring-width)]',\n 'ds:focus-visible:after:outline-solid',\n 'ds:focus-visible:after:outline-[color:var(--ring)]',\n 'ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]',\n 'ds:forced-colors:focus-visible:after:outline-[CanvasText]',\n].join(' ');\n\nconst TYPE_ICON: Record<AppointmentType, typeof MapPin> = {\n inPractice: MapPin,\n telehealth: Video,\n};\n\n/* -------------------------------------------------------------------- */\n/* Props */\n/* -------------------------------------------------------------------- */\n\nexport interface AppointmentCardProps\n extends\n Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'title'>,\n VariantProps<typeof appointmentCardVariants> {\n /** The appointment to render. */\n item: AppointmentItem;\n /** Visual density. */\n size?: 'sm' | 'md';\n /**\n * `'flat'` (default) — chrome-less row for use inside a bordered\n * `AppointmentTray`. `'elevated'` — each row carries its own card chrome\n * (border + shadow), for placing rows directly on a rail (AppointmentTimeline).\n */\n surface?: 'flat' | 'elevated';\n /** BCP-47 locale override for the timestamp + currency. */\n locale?: string;\n /** ISO-4217 currency code for the advance-deposit chip. Defaults to `EUR`. */\n currency?: string;\n /**\n * Show the patient identity (avatar + name as the row title). Default `true`.\n * Set `false` in single-patient surfaces (e.g. a patient's own\n * `AppointmentTimeline`) where repeating the name is redundant — the row then\n * leads with the operator as its title, falling back to a generic label.\n */\n showPatient?: boolean;\n /** Fires when the row is activated. */\n onActivate?: (item: AppointmentItem) => void;\n /**\n * Mark this row as the active/selected appointment — an info-tinted\n * inline-start bar plus a soft wash, so the eye keeps its place in the\n * list after a click. Renders `aria-current=\"true\"` for assistive tech.\n */\n selected?: boolean;\n}\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nexport const AppointmentCard = forwardRef<HTMLDivElement, AppointmentCardProps>(\n (\n {\n item,\n size = 'sm',\n surface = 'flat',\n locale,\n currency = 'EUR',\n showPatient = true,\n onActivate,\n selected = false,\n className,\n ...rest\n },\n ref,\n ) => {\n const { t } = useTranslation();\n const interactive = !!onActivate;\n const hasSafeUrl = !!item.url && isSafeEntityUrl(item.url);\n\n const patientName = item.patient?.name ?? t('appointmentCard.noPatient');\n const operatorName = item.operator?.name;\n const stateLabel = t(`appointmentCard.state.${item.state}`);\n const patientAge = ageFromDob(item.patient?.dobIso);\n const noPatient = item.flags?.noPatientAssigned || !item.patient;\n\n const avatarSize = size === 'md' ? 'md' : 'sm';\n const TypeIcon = TYPE_ICON[item.type];\n\n // In single-patient context the patient name is redundant, so the row leads\n // with the operator (the \"who am I seeing\") and falls back to a generic\n // label when no operator is set.\n const title = showPatient\n ? patientName\n : (operatorName ?? t('appointmentCard.appointment'));\n\n const ariaLabel = showPatient\n ? t('appointmentCard.itemLabel', {\n patient: patientName,\n state: stateLabel,\n })\n : t('appointmentCard.itemLabelGeneric', { title, state: stateLabel });\n\n const titleNode = (\n <span className=\"ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]\">\n {title}\n {showPatient && patientAge !== undefined ? (\n <span className=\"ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]\">\n · {patientAge}\n </span>\n ) : null}\n </span>\n );\n\n let activator: ReactNode;\n if (interactive && hasSafeUrl) {\n activator = (\n <a\n href={item.url}\n aria-label={ariaLabel}\n className={stretchedLinkClass}\n onClick={(e) => {\n if (e.defaultPrevented || e.metaKey || e.ctrlKey || e.shiftKey)\n return;\n onActivate?.(item);\n }}\n >\n {titleNode}\n </a>\n );\n } else if (interactive) {\n activator = (\n <button\n type=\"button\"\n aria-label={ariaLabel}\n className={\n stretchedLinkClass +\n ' ds:bg-transparent ds:border-0 ds:p-0 ds:text-start'\n }\n onClick={() => onActivate?.(item)}\n >\n {titleNode}\n </button>\n );\n } else {\n activator = titleNode;\n }\n\n // Treatment / tooth-element Tags. Each treatment becomes one Tag; the\n // tooth elements (when present) are appended to the visible label.\n const treatmentTags = (item.treatments ?? []).map((tx, index) => {\n const label =\n tx.elements && tx.elements.length > 0\n ? t('appointmentCard.treatmentWithElements', {\n care: tx.careName,\n elements: tx.elements.join(', '),\n })\n : tx.careName;\n return (\n <Tag\n key={`${tx.careName}-${index}`}\n label={label}\n variant=\"neutral\"\n fill=\"outline\"\n size=\"sm\"\n maxInlineSize=\"12rem\"\n />\n );\n });\n\n const advanceCents = item.bookingReason?.advanceAmountCents;\n const hasAdvance = typeof advanceCents === 'number' && advanceCents > 0;\n const unpaidCents = item.money?.unpaidAmountCents;\n const hasUnpaid = typeof unpaidCents === 'number' && unpaidCents > 0;\n\n return (\n <div\n ref={ref}\n /* `listitem` by default — the card is normally a list child. A\n consumer composing a richer row (card plus its own action row)\n owns the semantics instead and passes `role=\"presentation\"`,\n so the two do not nest. `rest` is spread after this. */\n role=\"listitem\"\n data-component=\"appointment-card\"\n data-component-id={item.id}\n data-state={item.state}\n data-type={item.type}\n aria-current={selected ? 'true' : undefined}\n className={appointmentCardVariants({\n size,\n interactive,\n surface,\n selected,\n className,\n })}\n {...rest}\n >\n {/* Leading rail: type glyph + start time + duration */}\n {/* min-w, not a fixed w: a 12-hour time (\"10:30 AM\") plus the type\n glyph is wider than 4rem, and must never wrap AM/PM onto a\n second line. */}\n <span className=\"ds:flex ds:min-w-20 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]\">\n <span className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:whitespace-nowrap ds:text-[color:var(--muted-foreground)]\">\n <TypeIcon aria-hidden=\"true\" className=\"ds:size-3.5 ds:shrink-0\" />\n <span className=\"ds:sr-only\">\n {t(`appointmentCard.type.${item.type}`)}\n </span>\n <Timestamp\n value={item.startIso}\n format=\"absolute\"\n shape=\"bare\"\n locale={locale}\n absoluteFormat={{ hour: 'numeric', minute: '2-digit' }}\n className=\"type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums\"\n />\n </span>\n <span className=\"type-eyebrow ds:text-[color:var(--muted-foreground)]\">\n {t('appointmentCard.duration', { count: item.durationMin })}\n </span>\n </span>\n\n {/* Operator avatar with colour dot */}\n {operatorName ? (\n <span className=\"ds:relative ds:shrink-0\">\n <Avatar\n name={operatorName}\n color={colorIdToAvatarToken(item.operator?.colorId)}\n size={avatarSize}\n aria-hidden=\"true\"\n role=\"presentation\"\n aria-label={undefined}\n />\n <span\n aria-hidden=\"true\"\n className={\n 'ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] ' +\n operatorDotClass(item.operator?.colorId)\n }\n />\n </span>\n ) : null}\n\n {/* Main content column */}\n <div className=\"ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]\">\n <div className=\"ds:flex ds:items-start ds:gap-[var(--spacing-sm)]\">\n <div className=\"ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]\">\n {showPatient && item.patient?.avatarUrl ? (\n <Avatar\n name={patientName}\n src={item.patient.avatarUrl}\n size={avatarSize}\n className=\"ds:shrink-0\"\n aria-hidden=\"true\"\n role=\"presentation\"\n aria-label={undefined}\n />\n ) : null}\n {showPatient && noPatient ? (\n <span\n className={`ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ${\n avatarSize === 'md' ? 'ds:size-10' : 'ds:size-8'\n }`}\n >\n <UserX aria-hidden=\"true\" className=\"ds:size-4\" />\n </span>\n ) : null}\n {activator}\n </div>\n <Badge\n variant={appointmentStateBadge(item.state)}\n size=\"sm\"\n withDot\n className=\"ds:shrink-0\"\n >\n {stateLabel}\n </Badge>\n </div>\n\n {/* Meta line: operator name · specialty · first visit · booking note\n (chair moved to a chip below). When the patient is hidden the\n operator is promoted to the title, so it drops out of the meta. */}\n {(showPatient && operatorName) ||\n item.bookingReason?.specialty ||\n item.firstVisit === 'yes' ||\n item.firstVisit === 'unknown' ||\n item.bookingNote ? (\n <div className=\"ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]\">\n {showPatient && operatorName ? <span>{operatorName}</span> : null}\n {item.bookingReason?.specialty ? (\n <span>{item.bookingReason.specialty}</span>\n ) : null}\n {item.firstVisit === 'yes' ? (\n <span className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]\">\n <Star aria-hidden=\"true\" className=\"ds:size-3 ds:shrink-0\" />\n {t('appointmentCard.firstVisit')}\n </span>\n ) : null}\n {item.firstVisit === 'unknown' ? (\n <span className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]\">\n <Star aria-hidden=\"true\" className=\"ds:size-3 ds:shrink-0\" />\n {t('appointmentCard.firstVisitUnknown')}\n </span>\n ) : null}\n {item.bookingNote ? (\n <span\n className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]\"\n title={t('appointmentCard.hasBookingNote')}\n >\n <MessageSquareText\n aria-hidden=\"true\"\n className=\"ds:size-3 ds:shrink-0\"\n />\n {t('appointmentCard.hasBookingNote')}\n </span>\n ) : null}\n </div>\n ) : null}\n\n {/* Booking reason */}\n {item.bookingReason?.description ? (\n <span className=\"type-body-sm ds:text-[color:var(--foreground)] ds:truncate\">\n {item.bookingReason.description}\n </span>\n ) : null}\n\n {/* Treatment / tooth Tags */}\n {treatmentTags.length > 0 ? (\n <div className=\"ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]\">\n {treatmentTags}\n </div>\n ) : null}\n\n {/* Chips: care plan · chair · flags · recurring · signing ·\n advance-deposit · unpaid balance · billable */}\n {item.carePlan ||\n item.chair ||\n item.flags?.bookedOnline ||\n item.flags?.highlightedAnamnesis ||\n item.flags?.billable ||\n item.recurring ||\n item.signing ||\n hasAdvance ||\n hasUnpaid ? (\n <div className=\"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]\">\n {item.carePlan ? (\n <Badge\n variant=\"accentSoft\"\n size=\"sm\"\n leading={<ClipboardPlus />}\n >\n {t('appointmentCard.carePlan', {\n number: item.carePlan.number,\n })}\n </Badge>\n ) : null}\n {item.chair ? (\n <Badge variant=\"neutral\" size=\"sm\" leading={<Armchair />}>\n {t('appointmentCard.chair', { chair: item.chair })}\n </Badge>\n ) : null}\n {item.flags?.bookedOnline ? (\n <Badge variant=\"info\" size=\"sm\" leading={<Globe />}>\n {t('appointmentCard.flag.bookedOnline')}\n </Badge>\n ) : null}\n {item.flags?.highlightedAnamnesis ? (\n <Badge variant=\"warning\" size=\"sm\" withDot>\n {t('appointmentCard.flag.highlightedAnamnesis')}\n </Badge>\n ) : null}\n {item.recurring ? (\n <Badge variant=\"neutral\" size=\"sm\" leading={<Repeat />}>\n {t('appointmentCard.recurring')}\n </Badge>\n ) : null}\n {item.signing ? (\n <Badge\n variant={\n item.signing.toComplete >= item.signing.required\n ? 'success'\n : 'warning'\n }\n size=\"sm\"\n leading={<FileSignature />}\n >\n {t('appointmentCard.signing', {\n complete: item.signing.toComplete,\n required: item.signing.required,\n })}\n </Badge>\n ) : null}\n {item.flags?.billable ? (\n <Badge variant=\"success\" size=\"sm\" withDot>\n {t('appointmentCard.flag.billable')}\n </Badge>\n ) : null}\n {hasAdvance ? (\n <TransactionChip\n state=\"to-invoice\"\n amount={(advanceCents as number) / 100}\n currency={currency}\n locale={locale}\n size=\"sm\"\n showLabel\n />\n ) : null}\n {hasUnpaid ? (\n <TransactionChip\n state=\"debt\"\n amount={unpaidCents / 100}\n currency={currency}\n locale={locale}\n size=\"sm\"\n showLabel\n />\n ) : null}\n </div>\n ) : null}\n </div>\n\n {interactive ? (\n <ChevronRight\n aria-hidden=\"true\"\n className=\"ds:size-4 ds:shrink-0 ds:self-center ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180\"\n />\n ) : null}\n </div>\n );\n },\n);\n\nAppointmentCard.displayName = 'AppointmentCard';\n"],"names":["__iconNode","ClipboardPlus","createLucideIcon","FilePenLine","MessageSquareText","UserX","OPERATOR_DOT_CLASS","operatorDotClass","colorId","colorIdToToken","ageFromDob","dobIso","dob","now","age","monthDiff","appointmentCardVariants","cva","stretchedLinkClass","TYPE_ICON","MapPin","Video","AppointmentCard","forwardRef","item","size","surface","locale","currency","showPatient","onActivate","selected","className","rest","ref","t","useTranslation","interactive","hasSafeUrl","isSafeEntityUrl","patientName","_a","operatorName","_b","stateLabel","patientAge","_c","noPatient","_d","avatarSize","TypeIcon","title","ariaLabel","titleNode","jsxs","activator","jsx","e","treatmentTags","tx","index","label","Tag","advanceCents","_e","hasAdvance","unpaidCents","_f","hasUnpaid","Timestamp","Avatar","colorIdToAvatarToken","_g","_h","_i","Badge","appointmentStateBadge","_j","_k","Star","_l","_m","_n","_o","Armchair","_p","Globe","_q","Repeat","FileSignature","_r","TransactionChip","ChevronRight"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,OAAO,KAAK,QAAQ,KAAK,GAAG,KAAK,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,KAAK,UAAU;AAAA,EACrF;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AAAA,EACE,CAAC,QAAQ,EAAE,GAAG,WAAW,KAAK,SAAQ,CAAE;AAAA,EACxC,CAAC,QAAQ,EAAE,GAAG,aAAa,KAAK,SAAQ,CAAE;AAC5C,GACMC,KAAgBC,EAAiB,kBAAkBF,EAAU;ACrBnE;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB;AAAA,IACE;AAAA,IAC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