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