@alfadocs/ui-kit 1.140.0 → 1.141.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-CaxFXtSn.js → appointment-card-r0OZm77v.js} +170 -168
- package/dist/_chunks/appointment-timeline-Bs-rTMzi.js +689 -0
- package/dist/_chunks/{appointment-tray-DPpeR9JT.js → appointment-tray-t_ltp-Yi.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BBrJlmyd.js → calendar-appointment-editor-dialog-CuXpgLCw.js} +4 -4
- package/dist/_chunks/{calendar-waiting-list-panel-Cdg9YssA.js → calendar-waiting-list-panel-BNQrUndD.js} +2 -2
- package/dist/_chunks/{calendar.sheets-DbMOO7YV.js → calendar.sheets-DcW8A3DI.js} +2 -2
- package/dist/_chunks/calls-panel-CJNQm7r8.js +1446 -0
- package/dist/_chunks/{notes-panel-CnmQqhwq.js → notes-panel-C4HSUudf.js} +2 -2
- package/dist/_chunks/{patient-account-settings-DfEPHmCh.js → patient-account-settings-nSvNKKOL.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-TWs8CPQr.js → patient-check-in-resume-Cj2wg_NQ.js} +4 -4
- package/dist/_chunks/{portal-details-VfeOI4PB.js → portal-details-Cnyqf9kY.js} +2 -2
- package/dist/_chunks/{portal-documents-hGHlwmbv.js → portal-documents-g109Dl0O.js} +2 -2
- package/dist/_chunks/{portal-parts-C99CreYO.js → portal-parts-DgDFuED8.js} +2 -2
- package/dist/_chunks/{rich-text-editor-DFsH5RAj.js → rich-text-editor-orJ-hPgm.js} +1323 -1308
- package/dist/agent-catalog.json +134 -3
- package/dist/agent-i18n/en.json +8 -2
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +4 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +51 -0
- package/dist/components/appointment-timeline/index.d.ts +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/calls-panel/calls-panel.d.ts +91 -0
- package/dist/components/calls-panel/index.d.ts +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/i18n/locales/ar.d.ts +45 -0
- package/dist/i18n/locales/ar.js +44 -2
- package/dist/i18n/locales/de.d.ts +45 -0
- package/dist/i18n/locales/de.js +44 -2
- package/dist/i18n/locales/el.d.ts +45 -0
- package/dist/i18n/locales/el.js +47 -2
- package/dist/i18n/locales/en.d.ts +37 -0
- package/dist/i18n/locales/en.js +39 -2
- package/dist/i18n/locales/es.d.ts +45 -0
- package/dist/i18n/locales/es.js +44 -2
- package/dist/i18n/locales/fr.d.ts +45 -0
- package/dist/i18n/locales/fr.js +44 -2
- package/dist/i18n/locales/hi.d.ts +45 -0
- package/dist/i18n/locales/hi.js +47 -2
- package/dist/i18n/locales/it.d.ts +45 -0
- package/dist/i18n/locales/it.js +44 -2
- package/dist/i18n/locales/ja.d.ts +45 -0
- package/dist/i18n/locales/ja.js +47 -2
- package/dist/i18n/locales/nl.d.ts +45 -0
- package/dist/i18n/locales/nl.js +44 -2
- package/dist/i18n/locales/pl.d.ts +45 -0
- package/dist/i18n/locales/pl.js +47 -2
- package/dist/i18n/locales/pt.d.ts +45 -0
- package/dist/i18n/locales/pt.js +44 -2
- package/dist/i18n/locales/ro.d.ts +45 -0
- package/dist/i18n/locales/ro.js +44 -2
- package/dist/i18n/locales/ru.d.ts +45 -0
- package/dist/i18n/locales/ru.js +44 -2
- package/dist/i18n/locales/sq.d.ts +45 -0
- package/dist/i18n/locales/sq.js +47 -2
- package/dist/i18n/locales/sv.d.ts +45 -0
- package/dist/i18n/locales/sv.js +44 -2
- package/dist/i18n/locales/tr.d.ts +45 -0
- package/dist/i18n/locales/tr.js +44 -2
- package/dist/i18n/locales/zh.d.ts +45 -0
- package/dist/i18n/locales/zh.js +44 -2
- package/dist/index.js +12 -12
- package/dist/locales/ar.json +47 -2
- package/dist/locales/de.json +47 -2
- package/dist/locales/el.json +47 -2
- package/dist/locales/en.json +39 -2
- package/dist/locales/es.json +47 -2
- package/dist/locales/fr.json +47 -2
- package/dist/locales/hi.json +47 -2
- package/dist/locales/it.json +47 -2
- package/dist/locales/ja.json +47 -2
- package/dist/locales/nl.json +47 -2
- package/dist/locales/pl.json +47 -2
- package/dist/locales/pt.json +47 -2
- package/dist/locales/ro.json +47 -2
- package/dist/locales/ru.json +47 -2
- package/dist/locales/sq.json +47 -2
- package/dist/locales/sv.json +47 -2
- package/dist/locales/tr.json +47 -2
- package/dist/locales/zh.json +47 -2
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/appointment-timeline-BEwgbYyG.js +0 -455
- package/dist/_chunks/calls-panel-CtxJAzkJ.js +0 -1094
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { jsxs as r, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { A as
|
|
6
|
-
import { B as
|
|
7
|
-
import { T as
|
|
8
|
-
import { T as
|
|
9
|
-
import { T as
|
|
10
|
-
import { i as
|
|
11
|
-
import { V as
|
|
12
|
-
import { p as
|
|
13
|
-
import { a as
|
|
14
|
-
import { i as
|
|
15
|
-
import { V as
|
|
16
|
-
import { M as
|
|
17
|
-
import { E as
|
|
18
|
-
import { b as
|
|
19
|
-
import { U as
|
|
20
|
-
import { B as
|
|
21
|
-
import { S as
|
|
22
|
-
import { c as
|
|
23
|
-
import { A as
|
|
24
|
-
import { G as
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
1
|
+
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Ca, useMemo as na, useEffect as za } from "react";
|
|
3
|
+
import { c as Ta } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Sa } from "react-i18next";
|
|
5
|
+
import { A as ta } from "./avatar-Dp5apm1d.js";
|
|
6
|
+
import { B as o } from "./badge-BUk4RjTS.js";
|
|
7
|
+
import { T as Ma } from "./tag-BNlcEJfE.js";
|
|
8
|
+
import { T as Ra } from "./timestamp-DPLDWdxA.js";
|
|
9
|
+
import { T as oa } from "./transaction-chip-CkYd-3ky.js";
|
|
10
|
+
import { i as Aa } from "./is-development-CLUAnsU7.js";
|
|
11
|
+
import { V as ia } from "./visually-hidden-BHxEUGyT.js";
|
|
12
|
+
import { p as La } from "./privacy-mask-text-B8YfzB7L.js";
|
|
13
|
+
import { a as Da } from "./workflow-status-CO0mxXs2.js";
|
|
14
|
+
import { i as Va } from "./is-safe-url-CEy9CEml.js";
|
|
15
|
+
import { V as _a } from "./video-BheNGvsu.js";
|
|
16
|
+
import { M as Ia } from "./map-pin-BaY37-Km.js";
|
|
17
|
+
import { E as Pa } from "./eye-off-C_4xkbRP.js";
|
|
18
|
+
import { b as Ea, a as Oa, c as Ua } from "./entity-card-p-LANpYt.js";
|
|
19
|
+
import { U as Fa } from "./user-x-BJZg4kaP.js";
|
|
20
|
+
import { B as $a } from "./building-2-D33bLCWL.js";
|
|
21
|
+
import { S as da } from "./star-Bf9L2Uot.js";
|
|
22
|
+
import { c as pa } from "./createLucideIcon-DhHxpK9K.js";
|
|
23
|
+
import { A as ja } from "./armchair-BaLDW6Hz.js";
|
|
24
|
+
import { G as Ba } from "./globe-sHBW1JN5.js";
|
|
25
|
+
import { H as Ha } from "./hourglass-BEAzW1wE.js";
|
|
26
|
+
import { R as Wa } from "./repeat-CvQa5rZt.js";
|
|
27
|
+
import { F as qa } from "./file-pen-line-k4uMBM3h.js";
|
|
28
|
+
import { C as Ga } from "./chevron-right-I9AeSxH2.js";
|
|
28
29
|
/**
|
|
29
30
|
* @license lucide-react v1.22.0 - ISC
|
|
30
31
|
*
|
|
31
32
|
* This source code is licensed under the ISC license.
|
|
32
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
33
34
|
*/
|
|
34
|
-
const
|
|
35
|
+
const Ka = [
|
|
35
36
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
36
37
|
[
|
|
37
38
|
"path",
|
|
@@ -42,14 +43,14 @@ const qa = [
|
|
|
42
43
|
],
|
|
43
44
|
["path", { d: "M9 14h6", key: "159ibu" }],
|
|
44
45
|
["path", { d: "M12 17v-6", key: "1y8rbf" }]
|
|
45
|
-
],
|
|
46
|
+
], Ya = pa("clipboard-plus", Ka);
|
|
46
47
|
/**
|
|
47
48
|
* @license lucide-react v1.22.0 - ISC
|
|
48
49
|
*
|
|
49
50
|
* This source code is licensed under the ISC license.
|
|
50
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
52
|
*/
|
|
52
|
-
const
|
|
53
|
+
const Xa = [
|
|
53
54
|
[
|
|
54
55
|
"path",
|
|
55
56
|
{
|
|
@@ -60,7 +61,7 @@ const Ha = [
|
|
|
60
61
|
["path", { d: "M7 11h10", key: "1twpyw" }],
|
|
61
62
|
["path", { d: "M7 15h6", key: "d9of3u" }],
|
|
62
63
|
["path", { d: "M7 7h8", key: "af5zfr" }]
|
|
63
|
-
],
|
|
64
|
+
], Ja = pa("message-square-text", Xa), Qa = {
|
|
64
65
|
"var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
|
|
65
66
|
"var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
|
|
66
67
|
"var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
|
|
@@ -73,23 +74,23 @@ const Ha = [
|
|
|
73
74
|
"var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
|
|
74
75
|
"var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
|
|
75
76
|
};
|
|
76
|
-
function
|
|
77
|
-
return
|
|
77
|
+
function Za(a) {
|
|
78
|
+
return Qa[Ua(a)] ?? "ds:bg-[var(--color-grey-700)]";
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function as(a) {
|
|
80
81
|
if (!a) return;
|
|
81
|
-
const
|
|
82
|
-
if (Number.isNaN(
|
|
82
|
+
const i = new Date(a);
|
|
83
|
+
if (Number.isNaN(i.getTime())) return;
|
|
83
84
|
const f = /* @__PURE__ */ new Date();
|
|
84
|
-
let d = f.getFullYear() -
|
|
85
|
-
const
|
|
86
|
-
return (
|
|
85
|
+
let d = f.getFullYear() - i.getFullYear();
|
|
86
|
+
const l = f.getMonth() - i.getMonth();
|
|
87
|
+
return (l < 0 || l === 0 && f.getDate() < i.getDate()) && d--, d < 0 || d > 130 ? void 0 : d;
|
|
87
88
|
}
|
|
88
|
-
const
|
|
89
|
+
const la = {
|
|
89
90
|
hour: "numeric",
|
|
90
91
|
minute: "2-digit"
|
|
91
92
|
};
|
|
92
|
-
function
|
|
93
|
+
function ss(a) {
|
|
93
94
|
if (a)
|
|
94
95
|
try {
|
|
95
96
|
return new Intl.DateTimeFormat("en", { timeZone: a }).resolvedOptions().timeZone;
|
|
@@ -97,7 +98,7 @@ function Qa(a) {
|
|
|
97
98
|
return;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
|
-
const
|
|
101
|
+
const es = Ta(
|
|
101
102
|
[
|
|
102
103
|
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
103
104
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -161,13 +162,13 @@ const Za = Ca(
|
|
|
161
162
|
next: !1
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
),
|
|
165
|
-
"ds:
|
|
165
|
+
), rs = [
|
|
166
|
+
"ds:max-w-full ds:shrink-0",
|
|
166
167
|
"ds:[&>div]:h-auto ds:[&>div]:min-h-8 ds:[&>div]:py-[var(--spacing-2xs)]",
|
|
167
168
|
"ds:[&_[data-workflow-status-value]]:overflow-visible",
|
|
168
169
|
"ds:[&_[data-workflow-status-value]]:whitespace-normal",
|
|
169
|
-
"ds:[&_[data-workflow-status-value]]:
|
|
170
|
-
].join(" "),
|
|
170
|
+
"ds:[&_[data-workflow-status-value]]:[overflow-wrap:normal]"
|
|
171
|
+
].join(" "), ca = [
|
|
171
172
|
// Interactive elements need a box to remain keyboard-focusable in browsers.
|
|
172
173
|
"ds:inline-flex ds:min-w-0",
|
|
173
174
|
"ds:focus-visible:outline-none",
|
|
@@ -178,54 +179,54 @@ const Za = Ca(
|
|
|
178
179
|
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
179
180
|
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
180
181
|
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
181
|
-
].join(" "),
|
|
182
|
-
inPractice:
|
|
183
|
-
telehealth:
|
|
184
|
-
},
|
|
182
|
+
].join(" "), ns = {
|
|
183
|
+
inPractice: Ia,
|
|
184
|
+
telehealth: _a
|
|
185
|
+
}, ts = Ca(
|
|
185
186
|
({
|
|
186
187
|
item: a,
|
|
187
|
-
size:
|
|
188
|
+
size: i = "sm",
|
|
188
189
|
surface: f = "flat",
|
|
189
190
|
locale: d,
|
|
190
|
-
timeZone:
|
|
191
|
+
timeZone: l,
|
|
191
192
|
currency: z = "EUR",
|
|
192
|
-
showPatient:
|
|
193
|
+
showPatient: c = !0,
|
|
193
194
|
onActivate: m,
|
|
194
195
|
selected: T = !1,
|
|
195
|
-
hideDefaultStatus:
|
|
196
|
-
privacy:
|
|
197
|
-
privacyTitle:
|
|
196
|
+
hideDefaultStatus: ma = !1,
|
|
197
|
+
privacy: p = !1,
|
|
198
|
+
privacyTitle: ua,
|
|
198
199
|
wrapText: g = !1,
|
|
199
200
|
className: S,
|
|
200
|
-
...
|
|
201
|
-
},
|
|
202
|
-
var O, U, F, $, j, B, W, q, G,
|
|
203
|
-
const { t:
|
|
204
|
-
() => h ? { ...
|
|
201
|
+
...fa
|
|
202
|
+
}, ga) => {
|
|
203
|
+
var O, U, F, $, j, B, H, W, q, G, K, Y, X, J, Q, Z, aa, sa, ea, ra;
|
|
204
|
+
const { t: e } = Sa("ui"), h = na(() => ss(l), [l]), ha = na(
|
|
205
|
+
() => h ? { ...la, timeZone: h } : la,
|
|
205
206
|
[h]
|
|
206
207
|
);
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
`AppointmentCard: "${
|
|
208
|
+
za(() => {
|
|
209
|
+
l && !h && Aa() && console.warn(
|
|
210
|
+
`AppointmentCard: "${l}" is not a time zone this browser knows, so the start time shows in the browser's own zone.`
|
|
210
211
|
);
|
|
211
|
-
}, [
|
|
212
|
-
const v = !!m,
|
|
213
|
-
title:
|
|
212
|
+
}, [l, h]);
|
|
213
|
+
const v = !!m, va = !!a.url && Va(a.url), t = a.state ?? void 0, ba = t !== void 0 && !(ma && t === "confirmed"), w = ((O = a.patient) == null ? void 0 : O.name) ?? e("appointmentCard.noPatient"), u = (U = a.operator) == null ? void 0 : U.name, b = e(t ? `appointmentCard.state.${t}` : "workflowStatus.noStatus"), M = Oa(t ?? ""), xa = M.Icon, wa = ((F = a.flags) == null ? void 0 : F.noPatientAssigned) || !a.patient, R = p && c && a.patient !== void 0, A = p ? void 0 : as(($ = a.patient) == null ? void 0 : $.dobIso), L = ((j = a.practiceName) == null ? void 0 : j.trim()) || void 0, N = i === "md" ? "md" : "sm", Na = ns[a.type], D = c ? w : u ?? e("appointmentCard.appointment"), V = t ? R ? e("appointmentCard.itemLabelGeneric", {
|
|
214
|
+
title: e("appointmentPeek.hiddenName"),
|
|
214
215
|
state: b
|
|
215
|
-
}) :
|
|
216
|
-
patient:
|
|
216
|
+
}) : c ? e("appointmentCard.itemLabel", {
|
|
217
|
+
patient: w,
|
|
217
218
|
state: b
|
|
218
|
-
}) :
|
|
219
|
+
}) : e("appointmentCard.itemLabelGeneric", { title: D, state: b }) : void 0, k = /* @__PURE__ */ r(
|
|
219
220
|
"span",
|
|
220
221
|
{
|
|
221
222
|
className: (g ? "ds:min-w-0 ds:break-words" : "ds:min-w-0 ds:truncate") + " type-title-item ds:text-[color:var(--foreground)]",
|
|
222
223
|
children: [
|
|
223
224
|
R ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
] }) :
|
|
228
|
-
|
|
225
|
+
/* @__PURE__ */ s(Pa, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
226
|
+
/* @__PURE__ */ s(ia, { children: e("appointmentPeek.hiddenName") }),
|
|
227
|
+
/* @__PURE__ */ s("span", { "aria-hidden": "true", children: La(ua) })
|
|
228
|
+
] }) : D,
|
|
229
|
+
c && A !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
|
|
229
230
|
"· ",
|
|
230
231
|
A
|
|
231
232
|
] }) : null
|
|
@@ -233,59 +234,59 @@ const Za = Ca(
|
|
|
233
234
|
}
|
|
234
235
|
);
|
|
235
236
|
let x;
|
|
236
|
-
v &&
|
|
237
|
+
v && va ? x = /* @__PURE__ */ s(
|
|
237
238
|
"a",
|
|
238
239
|
{
|
|
239
240
|
href: a.url,
|
|
240
|
-
"aria-label":
|
|
241
|
+
"aria-label": V,
|
|
241
242
|
"data-action": "open-appointment",
|
|
242
|
-
className:
|
|
243
|
+
className: ca,
|
|
243
244
|
onClick: (n) => {
|
|
244
245
|
n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || m == null || m(a);
|
|
245
246
|
},
|
|
246
|
-
children:
|
|
247
|
+
children: k
|
|
247
248
|
}
|
|
248
|
-
) : v ? x = /* @__PURE__ */
|
|
249
|
+
) : v ? x = /* @__PURE__ */ s(
|
|
249
250
|
"button",
|
|
250
251
|
{
|
|
251
252
|
type: "button",
|
|
252
|
-
"aria-label":
|
|
253
|
+
"aria-label": V,
|
|
253
254
|
"data-action": "open-appointment",
|
|
254
|
-
className:
|
|
255
|
+
className: ca + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
|
|
255
256
|
onClick: () => m == null ? void 0 : m(a),
|
|
256
|
-
children:
|
|
257
|
+
children: k
|
|
257
258
|
}
|
|
258
|
-
) : x =
|
|
259
|
-
const
|
|
260
|
-
const
|
|
259
|
+
) : x = k;
|
|
260
|
+
const _ = (a.treatments ?? []).map((n, ka) => {
|
|
261
|
+
const ya = n.elements && n.elements.length > 0 ? e("appointmentCard.treatmentWithElements", {
|
|
261
262
|
care: n.careName,
|
|
262
263
|
elements: n.elements.join(", ")
|
|
263
264
|
}) : n.careName;
|
|
264
|
-
return /* @__PURE__ */
|
|
265
|
-
|
|
265
|
+
return /* @__PURE__ */ s(
|
|
266
|
+
Ma,
|
|
266
267
|
{
|
|
267
|
-
label:
|
|
268
|
+
label: ya,
|
|
268
269
|
variant: "neutral",
|
|
269
270
|
fill: "outline",
|
|
270
271
|
size: "sm",
|
|
271
272
|
maxInlineSize: "12rem"
|
|
272
273
|
},
|
|
273
|
-
`${n.careName}-${
|
|
274
|
+
`${n.careName}-${ka}`
|
|
274
275
|
);
|
|
275
|
-
}), y = (B = a.bookingReason) == null ? void 0 : B.advanceAmountCents,
|
|
276
|
+
}), y = (B = a.bookingReason) == null ? void 0 : B.advanceAmountCents, I = !p && typeof y == "number" && y > 0, C = (H = a.money) == null ? void 0 : H.unpaidAmountCents, P = !p && typeof C == "number" && C > 0, E = !p && ((W = a.flags) == null ? void 0 : W.highlightedAnamnesis);
|
|
276
277
|
return /* @__PURE__ */ r(
|
|
277
278
|
"div",
|
|
278
279
|
{
|
|
279
|
-
ref:
|
|
280
|
+
ref: ga,
|
|
280
281
|
role: "listitem",
|
|
281
282
|
"data-component": "appointment-card",
|
|
282
283
|
"data-component-id": a.id,
|
|
283
|
-
"data-state":
|
|
284
|
+
"data-state": t,
|
|
284
285
|
"data-type": a.type,
|
|
285
|
-
"data-privacy":
|
|
286
|
+
"data-privacy": p ? "masked" : void 0,
|
|
286
287
|
"aria-current": T ? "true" : void 0,
|
|
287
|
-
className:
|
|
288
|
-
size:
|
|
288
|
+
className: es({
|
|
289
|
+
size: i,
|
|
289
290
|
interactive: v,
|
|
290
291
|
surface: f,
|
|
291
292
|
selected: T,
|
|
@@ -293,43 +294,43 @@ const Za = Ca(
|
|
|
293
294
|
next: a.next,
|
|
294
295
|
className: g ? `ds:@container/apptcard ${S ?? ""}`.trim() : S
|
|
295
296
|
}),
|
|
296
|
-
...
|
|
297
|
+
...fa,
|
|
297
298
|
children: [
|
|
298
299
|
/* @__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: [
|
|
299
300
|
/* @__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: [
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
|
|
301
|
+
/* @__PURE__ */ s(Na, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
302
|
+
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: e(`appointmentCard.type.${a.type}`) }),
|
|
303
|
+
/* @__PURE__ */ s(
|
|
304
|
+
Ra,
|
|
304
305
|
{
|
|
305
306
|
value: a.startIso,
|
|
306
307
|
format: "absolute",
|
|
307
308
|
shape: "bare",
|
|
308
309
|
locale: d,
|
|
309
|
-
absoluteFormat:
|
|
310
|
+
absoluteFormat: ha,
|
|
310
311
|
className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
|
|
311
312
|
}
|
|
312
313
|
)
|
|
313
314
|
] }),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ s("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: e("appointmentCard.duration", { count: a.durationMin }) })
|
|
315
316
|
] }),
|
|
316
317
|
u ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
|
|
318
|
+
/* @__PURE__ */ s(
|
|
319
|
+
ta,
|
|
319
320
|
{
|
|
320
321
|
name: u,
|
|
321
|
-
color:
|
|
322
|
-
size:
|
|
322
|
+
color: Ea((q = a.operator) == null ? void 0 : q.colorId),
|
|
323
|
+
size: N,
|
|
323
324
|
"aria-hidden": "true",
|
|
324
325
|
role: "presentation",
|
|
325
326
|
"aria-label": void 0
|
|
326
327
|
}
|
|
327
328
|
),
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ s(
|
|
329
330
|
"span",
|
|
330
331
|
{
|
|
331
332
|
"aria-hidden": "true",
|
|
332
|
-
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)] " +
|
|
333
|
+
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)] " + Za((G = a.operator) == null ? void 0 : G.colorId)
|
|
333
334
|
}
|
|
334
335
|
)
|
|
335
336
|
] }) : null,
|
|
@@ -344,137 +345,138 @@ const Za = Ca(
|
|
|
344
345
|
{
|
|
345
346
|
className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]" + (g ? " ds:@max-[400px]/apptcard:basis-full" : ""),
|
|
346
347
|
children: [
|
|
347
|
-
|
|
348
|
-
|
|
348
|
+
c && !p && ((K = a.patient) != null && K.avatarUrl) ? /* @__PURE__ */ s(
|
|
349
|
+
ta,
|
|
349
350
|
{
|
|
350
|
-
name:
|
|
351
|
+
name: w,
|
|
351
352
|
src: a.patient.avatarUrl,
|
|
352
|
-
size:
|
|
353
|
+
size: N,
|
|
353
354
|
className: "ds:shrink-0",
|
|
354
355
|
"aria-hidden": "true",
|
|
355
356
|
role: "presentation",
|
|
356
357
|
"aria-label": void 0
|
|
357
358
|
}
|
|
358
359
|
) : null,
|
|
359
|
-
|
|
360
|
+
c && wa ? /* @__PURE__ */ s(
|
|
360
361
|
"span",
|
|
361
362
|
{
|
|
362
|
-
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)] ${
|
|
363
|
-
children: /* @__PURE__ */
|
|
363
|
+
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 === "md" ? "ds:size-10" : "ds:size-8"}`,
|
|
364
|
+
children: /* @__PURE__ */ s(Fa, { "aria-hidden": "true", className: "ds:size-4" })
|
|
364
365
|
}
|
|
365
366
|
) : null,
|
|
366
367
|
x
|
|
367
368
|
]
|
|
368
369
|
}
|
|
369
370
|
),
|
|
370
|
-
a.next ? /* @__PURE__ */
|
|
371
|
-
|
|
371
|
+
a.next ? /* @__PURE__ */ s(
|
|
372
|
+
o,
|
|
372
373
|
{
|
|
373
374
|
variant: "accentSoft",
|
|
374
375
|
size: "sm",
|
|
375
376
|
className: "ds:shrink-0",
|
|
376
377
|
"aria-hidden": "true",
|
|
377
|
-
children:
|
|
378
|
+
children: e("appointmentCard.next")
|
|
378
379
|
}
|
|
379
380
|
) : null,
|
|
380
|
-
|
|
381
|
-
|
|
381
|
+
ba && t ? /* @__PURE__ */ s(
|
|
382
|
+
Da,
|
|
382
383
|
{
|
|
383
384
|
size: "sm",
|
|
384
|
-
value:
|
|
385
|
+
value: t,
|
|
385
386
|
option: {
|
|
386
|
-
value:
|
|
387
|
+
value: t,
|
|
387
388
|
label: b,
|
|
388
|
-
icon: /* @__PURE__ */
|
|
389
|
+
icon: /* @__PURE__ */ s(xa, { "aria-hidden": "true" }),
|
|
389
390
|
tone: M.tone
|
|
390
391
|
},
|
|
391
|
-
className: g ?
|
|
392
|
+
className: g ? rs : "ds:shrink-0"
|
|
392
393
|
}
|
|
393
394
|
) : null
|
|
394
395
|
]
|
|
395
396
|
}
|
|
396
397
|
),
|
|
397
|
-
a.next ? /* @__PURE__ */
|
|
398
|
-
|
|
398
|
+
a.next ? /* @__PURE__ */ s("span", { className: "ds:sr-only", children: e("appointmentCard.nextSr") }) : null,
|
|
399
|
+
L ? /* @__PURE__ */ r(
|
|
399
400
|
"span",
|
|
400
401
|
{
|
|
401
402
|
"data-slot": "practice",
|
|
402
403
|
className: "type-meta ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]",
|
|
403
404
|
children: [
|
|
404
|
-
/* @__PURE__ */
|
|
405
|
-
/* @__PURE__ */
|
|
406
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ s("span", { className: "ds:flex ds:h-[1lh] ds:shrink-0 ds:items-center", children: /* @__PURE__ */ s($a, { "aria-hidden": "true", className: "ds:size-3" }) }),
|
|
406
|
+
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: e("appointmentCard.practice") }),
|
|
407
|
+
/* @__PURE__ */ s("span", { dir: "auto", className: "ds:min-w-0 ds:break-words", children: L })
|
|
407
408
|
]
|
|
408
409
|
}
|
|
409
410
|
) : null,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
(X = a.bookingReason) != null && X.specialty ? /* @__PURE__ */
|
|
411
|
+
c && u || (Y = a.bookingReason) != null && Y.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: [
|
|
412
|
+
c && u ? /* @__PURE__ */ s("span", { children: u }) : null,
|
|
413
|
+
(X = a.bookingReason) != null && X.specialty ? /* @__PURE__ */ s("span", { children: a.bookingReason.specialty }) : null,
|
|
413
414
|
a.firstVisit === "yes" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
|
|
415
|
+
/* @__PURE__ */ s(da, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
416
|
+
e("appointmentCard.firstVisit")
|
|
416
417
|
] }) : null,
|
|
417
418
|
a.firstVisit === "unknown" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
418
|
-
/* @__PURE__ */
|
|
419
|
-
|
|
419
|
+
/* @__PURE__ */ s(da, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
420
|
+
e("appointmentCard.firstVisitUnknown")
|
|
420
421
|
] }) : null,
|
|
421
422
|
a.bookingNote ? /* @__PURE__ */ r(
|
|
422
423
|
"span",
|
|
423
424
|
{
|
|
424
425
|
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
425
|
-
title:
|
|
426
|
+
title: e("appointmentCard.hasBookingNote"),
|
|
426
427
|
children: [
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
|
|
428
|
+
/* @__PURE__ */ s(
|
|
429
|
+
Ja,
|
|
429
430
|
{
|
|
430
431
|
"aria-hidden": "true",
|
|
431
432
|
className: "ds:size-3 ds:shrink-0"
|
|
432
433
|
}
|
|
433
434
|
),
|
|
434
|
-
|
|
435
|
+
e("appointmentCard.hasBookingNote")
|
|
435
436
|
]
|
|
436
437
|
}
|
|
437
438
|
) : null
|
|
438
439
|
] }) : null,
|
|
439
|
-
(J = a.bookingReason) != null && J.description && !
|
|
440
|
-
|
|
441
|
-
a.carePlan || a.chair || (Q = a.flags) != null && Q.bookedOnline || E || (
|
|
442
|
-
a.carePlan ? /* @__PURE__ */
|
|
443
|
-
|
|
440
|
+
(J = a.bookingReason) != null && J.description && !p ? /* @__PURE__ */ s("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
|
|
441
|
+
_.length > 0 ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: _ }) : null,
|
|
442
|
+
a.carePlan || a.chair || (Q = a.flags) != null && Q.bookedOnline || (Z = a.flags) != null && Z.waitingList || E || (aa = a.flags) != null && aa.billable || a.recurring || a.signing || I || P ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
443
|
+
a.carePlan ? /* @__PURE__ */ s(
|
|
444
|
+
o,
|
|
444
445
|
{
|
|
445
446
|
variant: "accentSoft",
|
|
446
447
|
size: "sm",
|
|
447
|
-
leading: /* @__PURE__ */
|
|
448
|
-
children:
|
|
448
|
+
leading: /* @__PURE__ */ s(Ya, {}),
|
|
449
|
+
children: e("appointmentCard.carePlan", {
|
|
449
450
|
number: a.carePlan.number
|
|
450
451
|
})
|
|
451
452
|
}
|
|
452
453
|
) : null,
|
|
453
|
-
a.chair ? /* @__PURE__ */ r(
|
|
454
|
-
/* @__PURE__ */ r(
|
|
455
|
-
|
|
454
|
+
a.chair ? /* @__PURE__ */ r(o, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ s(ja, {}), children: [
|
|
455
|
+
/* @__PURE__ */ r(ia, { children: [
|
|
456
|
+
e("calendarWorkspace.details.chair"),
|
|
456
457
|
" "
|
|
457
458
|
] }),
|
|
458
459
|
a.chair
|
|
459
460
|
] }) : null,
|
|
460
|
-
(
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
a.
|
|
464
|
-
|
|
461
|
+
(sa = a.flags) != null && sa.bookedOnline ? /* @__PURE__ */ s(o, { variant: "info", size: "sm", leading: /* @__PURE__ */ s(Ba, {}), children: e("appointmentCard.flag.bookedOnline") }) : null,
|
|
462
|
+
(ea = a.flags) != null && ea.waitingList ? /* @__PURE__ */ s(o, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ s(Ha, {}), children: e("appointmentCard.flag.waitingList") }) : null,
|
|
463
|
+
E ? /* @__PURE__ */ s(o, { variant: "warning", size: "sm", withDot: !0, children: e("appointmentCard.flag.highlightedAnamnesis") }) : null,
|
|
464
|
+
a.recurring ? /* @__PURE__ */ s(o, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ s(Wa, {}), children: e("appointmentCard.recurring") }) : null,
|
|
465
|
+
a.signing ? /* @__PURE__ */ s(
|
|
466
|
+
o,
|
|
465
467
|
{
|
|
466
468
|
variant: a.signing.toComplete >= a.signing.required ? "success" : "warning",
|
|
467
469
|
size: "sm",
|
|
468
|
-
leading: /* @__PURE__ */
|
|
469
|
-
children:
|
|
470
|
+
leading: /* @__PURE__ */ s(qa, {}),
|
|
471
|
+
children: e("appointmentCard.signing", {
|
|
470
472
|
complete: a.signing.toComplete,
|
|
471
473
|
required: a.signing.required
|
|
472
474
|
})
|
|
473
475
|
}
|
|
474
476
|
) : null,
|
|
475
|
-
(
|
|
476
|
-
|
|
477
|
-
|
|
477
|
+
(ra = a.flags) != null && ra.billable ? /* @__PURE__ */ s(o, { variant: "success", size: "sm", withDot: !0, children: e("appointmentCard.flag.billable") }) : null,
|
|
478
|
+
I ? /* @__PURE__ */ s(
|
|
479
|
+
oa,
|
|
478
480
|
{
|
|
479
481
|
state: "to-invoice",
|
|
480
482
|
amount: y / 100,
|
|
@@ -484,8 +486,8 @@ const Za = Ca(
|
|
|
484
486
|
showLabel: !0
|
|
485
487
|
}
|
|
486
488
|
) : null,
|
|
487
|
-
P ? /* @__PURE__ */
|
|
488
|
-
|
|
489
|
+
P ? /* @__PURE__ */ s(
|
|
490
|
+
oa,
|
|
489
491
|
{
|
|
490
492
|
state: "debt",
|
|
491
493
|
amount: C / 100,
|
|
@@ -497,8 +499,8 @@ const Za = Ca(
|
|
|
497
499
|
) : null
|
|
498
500
|
] }) : null
|
|
499
501
|
] }),
|
|
500
|
-
v ? /* @__PURE__ */
|
|
501
|
-
|
|
502
|
+
v ? /* @__PURE__ */ s(
|
|
503
|
+
Ga,
|
|
502
504
|
{
|
|
503
505
|
"aria-hidden": "true",
|
|
504
506
|
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"
|
|
@@ -509,8 +511,8 @@ const Za = Ca(
|
|
|
509
511
|
);
|
|
510
512
|
}
|
|
511
513
|
);
|
|
512
|
-
|
|
514
|
+
ts.displayName = "AppointmentCard";
|
|
513
515
|
export {
|
|
514
|
-
|
|
516
|
+
ts as A
|
|
515
517
|
};
|
|
516
|
-
//# sourceMappingURL=appointment-card-
|
|
518
|
+
//# sourceMappingURL=appointment-card-r0OZm77v.js.map
|