@alfadocs/ui-kit 1.128.0 → 1.130.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-0PebvrOS.js → appointment-card-vbUsDh70.js} +49 -72
- package/dist/_chunks/{appointment-timeline-Czd4PBkF.js → appointment-timeline-B5pfBl-b.js} +2 -2
- package/dist/_chunks/{appointment-tray-B04zKY7g.js → appointment-tray-BhiXetjs.js} +2 -2
- package/dist/_chunks/{calendar-_sgjuH3L.js → calendar-DzR-vdJ5.js} +614 -563
- package/dist/_chunks/calendar-appointment-editor-dialog-CXch4Pmu.js +13663 -0
- package/dist/_chunks/{calendar-event-card-DXAYWH6k.js → calendar-event-card-BNEzkjm-.js} +142 -132
- package/dist/_chunks/{care-plan-card-bGTIliXc.js → care-plan-card-CwgkImOD.js} +2 -2
- package/dist/_chunks/{care-plan-header-k8FslxsU.js → care-plan-header-Dx5OMkc9.js} +2 -2
- package/dist/_chunks/{clinical-note-card-DHn5W_bv.js → clinical-note-card-pPaeWWnu.js} +2 -2
- package/dist/_chunks/{contact-card-CGpbYuxl.js → contact-card-BSY2YpLZ.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CCgf0Ntt.js → contact-profile-card-CsZNMlws.js} +2 -2
- package/dist/_chunks/contact-round-DiSvB3LP.js +18 -0
- package/dist/_chunks/{default-tabs-DOuHEKI5.js → default-tabs-BnB6FUEW.js} +2 -2
- package/dist/_chunks/{entity-summary-BanguTa6.js → entity-summary-KHM0PnSI.js} +56 -68
- package/dist/_chunks/file-pen-line-k4uMBM3h.js +29 -0
- package/dist/_chunks/{header-settings-DsvheAOt.js → header-settings-ZGvYAuKF.js} +101 -97
- package/dist/_chunks/{info-tip-C-MPkShR.js → info-tip-B3cn3fY2.js} +2 -2
- package/dist/_chunks/{link-DtCfnLnF.js → link-CeV7FoI6.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BOBWmzoT.js → marketplace-app-shell-D_HA8CKx.js} +2 -2
- package/dist/_chunks/{nav-grid-D2xVcHTO.js → nav-grid-dEgDAri3.js} +2 -2
- package/dist/_chunks/{note-attachment-cnj2JRrg.js → note-attachment-MNTIqdSz.js} +2 -2
- package/dist/_chunks/{note-timeline-BrjHBQfx.js → note-timeline-BQeW0VZY.js} +2 -2
- package/dist/_chunks/{notes-panel-n1JFNQ5u.js → notes-panel-DIY7eNsq.js} +2 -2
- package/dist/_chunks/{patient-details-Cba9HQj_.js → patient-details-DBtEITfE.js} +2 -2
- package/dist/_chunks/{patient-field-row-CtDihADs.js → patient-field-row-a5d4QijH.js} +2 -2
- package/dist/_chunks/{patient-search-D_S7joff.js → patient-search-OAwFgOW3.js} +2 -2
- package/dist/_chunks/{patient-summary-card-DnLdbtsw.js → patient-summary-card-BUcZ-gaL.js} +3 -3
- package/dist/_chunks/{payment-request-card-CEIalOtr.js → payment-request-card-Dv4WbRBe.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CqRJlmb7.js → product-hub-panel-a8wdVOUt.js} +2 -2
- package/dist/_chunks/{public-footer-C8UIzqLJ.js → public-footer-D0cqScpz.js} +2 -2
- package/dist/_chunks/{signature-request-Dzs0jZsd.js → signature-request-DW2PSp66.js} +3 -3
- package/dist/_chunks/{signed-out-frame-fUf7tqs3.js → signed-out-frame-Oa2e1yps.js} +2 -2
- package/dist/_chunks/task-editor-CVRrDqpe.js +1256 -0
- package/dist/_chunks/{toast-BNoN8Qjh.js → toast-DQ1Zu1kk.js} +264 -251
- package/dist/_chunks/{treatment-receipt-1VnuinhY.js → treatment-receipt-BZzwvsnY.js} +73 -56
- package/dist/_chunks/use-appointment-details-read-BrykoTOR.js +2475 -0
- package/dist/_chunks/{whatsapp-button-DV9JFmtq.js → whatsapp-button-XbozeDl_.js} +32 -25
- package/dist/agent-catalog.json +49 -16
- package/dist/agent-i18n/en.json +5 -5
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/patient-picker.d.ts +10 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +30 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.links.d.ts +15 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.recurrence.d.ts +9 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +12 -3
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +63 -1
- package/dist/components/appointment-details-panel/index.d.ts +2 -1
- package/dist/components/appointment-details-panel/index.js +5 -4
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +22 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +8 -0
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/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-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/treatment-receipt/index.d.ts +2 -2
- package/dist/components/treatment-receipt/index.js +2 -1
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +11 -1
- package/dist/components/whatsapp-button/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/fullcalendar.css +5 -1
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +119 -4
- package/dist/i18n/locales/ar.js +130 -15
- package/dist/i18n/locales/de.d.ts +119 -4
- package/dist/i18n/locales/de.js +130 -15
- package/dist/i18n/locales/el.d.ts +119 -4
- package/dist/i18n/locales/el.js +130 -15
- package/dist/i18n/locales/en.d.ts +119 -4
- package/dist/i18n/locales/en.js +122 -10
- package/dist/i18n/locales/es.d.ts +119 -4
- package/dist/i18n/locales/es.js +130 -15
- package/dist/i18n/locales/fr.d.ts +119 -4
- package/dist/i18n/locales/fr.js +130 -15
- package/dist/i18n/locales/hi.d.ts +119 -4
- package/dist/i18n/locales/hi.js +130 -15
- package/dist/i18n/locales/it.d.ts +119 -4
- package/dist/i18n/locales/it.js +130 -15
- package/dist/i18n/locales/ja.d.ts +119 -4
- package/dist/i18n/locales/ja.js +130 -15
- package/dist/i18n/locales/nl.d.ts +119 -4
- package/dist/i18n/locales/nl.js +130 -15
- package/dist/i18n/locales/pl.d.ts +119 -4
- package/dist/i18n/locales/pl.js +130 -15
- package/dist/i18n/locales/pt.d.ts +119 -4
- package/dist/i18n/locales/pt.js +130 -15
- package/dist/i18n/locales/ro.d.ts +119 -4
- package/dist/i18n/locales/ro.js +130 -15
- package/dist/i18n/locales/ru.d.ts +119 -4
- package/dist/i18n/locales/ru.js +130 -15
- package/dist/i18n/locales/sq.d.ts +119 -4
- package/dist/i18n/locales/sq.js +130 -15
- package/dist/i18n/locales/sv.d.ts +119 -4
- package/dist/i18n/locales/sv.js +130 -15
- package/dist/i18n/locales/tr.d.ts +119 -4
- package/dist/i18n/locales/tr.js +130 -15
- package/dist/i18n/locales/zh.d.ts +119 -4
- package/dist/i18n/locales/zh.js +130 -15
- package/dist/index.js +1112 -1107
- package/dist/locales/ar.json +130 -15
- package/dist/locales/de.json +130 -15
- package/dist/locales/el.json +130 -15
- package/dist/locales/en.json +122 -7
- package/dist/locales/es.json +130 -15
- package/dist/locales/fr.json +130 -15
- package/dist/locales/hi.json +130 -15
- package/dist/locales/it.json +130 -15
- package/dist/locales/ja.json +130 -15
- package/dist/locales/nl.json +130 -15
- package/dist/locales/pl.json +130 -15
- package/dist/locales/pt.json +130 -15
- package/dist/locales/ro.json +130 -15
- package/dist/locales/ru.json +130 -15
- package/dist/locales/sq.json +130 -15
- package/dist/locales/sv.json +130 -15
- package/dist/locales/tr.json +130 -15
- package/dist/locales/zh.json +130 -15
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +83 -2
- package/dist/patterns/calendar/calendar-archive.d.ts +12 -0
- package/dist/patterns/calendar/calendar-care-rules.d.ts +19 -23
- package/dist/patterns/calendar/calendar-delete-confirm.d.ts +18 -0
- package/dist/patterns/calendar/calendar-document-scope-confirm.d.ts +12 -0
- package/dist/patterns/calendar/calendar-editor-guard.d.ts +12 -0
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +13 -2
- package/dist/patterns/calendar/calendar-load-error.d.ts +11 -0
- package/dist/patterns/calendar/calendar-patient-locked.d.ts +13 -0
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +6 -1
- package/dist/patterns/calendar/calendar-prompts.d.ts +11 -0
- package/dist/patterns/calendar/calendar-settings-ical.d.ts +11 -0
- package/dist/patterns/calendar/calendar-settings-overlay.d.ts +73 -0
- package/dist/patterns/calendar/calendar-settings-panel.d.ts +62 -0
- package/dist/patterns/calendar/calendar-settings-practice.d.ts +20 -0
- package/dist/patterns/calendar/calendar-status-colours.d.ts +18 -0
- package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +17 -2
- package/dist/patterns/calendar/calendar-workspace.d.ts +285 -6
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +103 -17
- package/dist/patterns/calendar/calendar.data.d.ts +9 -3
- package/dist/patterns/calendar/calendar.journey.d.ts +69 -5
- package/dist/patterns/calendar/calendar.model.d.ts +129 -22
- package/dist/patterns/calendar/calendar.preferences.d.ts +4 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +129 -18
- package/dist/patterns/calendar/calendar.surface.d.ts +64 -6
- package/dist/patterns/calendar/calendar.types.d.ts +231 -6
- package/dist/patterns/calendar/index.d.ts +9 -6
- package/dist/patterns/calendar/index.js +18 -15
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +5 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-appointment-editor-dialog-CGDDGMdo.js +0 -10974
- package/dist/_chunks/task-editor-C05yx7JJ.js +0 -1218
- package/dist/_chunks/use-appointment-details-read-Bm408XzX.js +0 -2198
|
@@ -2,30 +2,31 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as la } from "react";
|
|
3
3
|
import { c as ca } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as pa } from "react-i18next";
|
|
5
|
-
import { A as
|
|
5
|
+
import { A as H } from "./avatar-Dp5apm1d.js";
|
|
6
6
|
import { B as t } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { T as ua } from "./tag-BNlcEJfE.js";
|
|
8
8
|
import { T as ma } from "./timestamp-DPLDWdxA.js";
|
|
9
|
-
import { T as
|
|
9
|
+
import { T as K } from "./transaction-chip-CkYd-3ky.js";
|
|
10
10
|
import { a as fa } from "./workflow-status-D0avpoeS.js";
|
|
11
11
|
import { i as ga } from "./is-safe-url-DkETxeHz.js";
|
|
12
12
|
import { a as ha, b as va, c as ba } from "./entity-card-fpm-KUKc.js";
|
|
13
13
|
import { V as xa } from "./video-BheNGvsu.js";
|
|
14
14
|
import { M as ya } from "./map-pin-BaY37-Km.js";
|
|
15
15
|
import { U as Na } from "./user-x-DYszNtIg.js";
|
|
16
|
-
import { S as
|
|
17
|
-
import { c as
|
|
16
|
+
import { S as Y } from "./star-Bf9L2Uot.js";
|
|
17
|
+
import { c as J } from "./createLucideIcon-DhHxpK9K.js";
|
|
18
18
|
import { A as ka } from "./armchair-BaLDW6Hz.js";
|
|
19
19
|
import { G as Ca } from "./globe-sHBW1JN5.js";
|
|
20
20
|
import { R as wa } from "./repeat-CvQa5rZt.js";
|
|
21
|
-
import {
|
|
21
|
+
import { F as za } from "./file-pen-line-k4uMBM3h.js";
|
|
22
|
+
import { C as Ta } from "./chevron-right-I9AeSxH2.js";
|
|
22
23
|
/**
|
|
23
24
|
* @license lucide-react v1.22.0 - ISC
|
|
24
25
|
*
|
|
25
26
|
* This source code is licensed under the ISC license.
|
|
26
27
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
28
|
*/
|
|
28
|
-
const
|
|
29
|
+
const Sa = [
|
|
29
30
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
30
31
|
[
|
|
31
32
|
"path",
|
|
@@ -36,31 +37,7 @@ const Ta = [
|
|
|
36
37
|
],
|
|
37
38
|
["path", { d: "M9 14h6", key: "159ibu" }],
|
|
38
39
|
["path", { d: "M12 17v-6", key: "1y8rbf" }]
|
|
39
|
-
], Ma =
|
|
40
|
-
/**
|
|
41
|
-
* @license lucide-react v1.22.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/
|
|
46
|
-
const Sa = [
|
|
47
|
-
[
|
|
48
|
-
"path",
|
|
49
|
-
{
|
|
50
|
-
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",
|
|
51
|
-
key: "ukzhwg"
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
["path", { d: "M14.487 7.858A1 1 0 0 1 14 7V2", key: "1klhew" }],
|
|
55
|
-
[
|
|
56
|
-
"path",
|
|
57
|
-
{
|
|
58
|
-
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",
|
|
59
|
-
key: "rxaxab"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
["path", { d: "M8 18h1", key: "13wk12" }]
|
|
63
|
-
], Va = N("file-pen-line", Sa);
|
|
40
|
+
], Ma = J("clipboard-plus", Sa);
|
|
64
41
|
/**
|
|
65
42
|
* @license lucide-react v1.22.0 - ISC
|
|
66
43
|
*
|
|
@@ -78,7 +55,7 @@ const Ra = [
|
|
|
78
55
|
["path", { d: "M7 11h10", key: "1twpyw" }],
|
|
79
56
|
["path", { d: "M7 15h6", key: "d9of3u" }],
|
|
80
57
|
["path", { d: "M7 7h8", key: "af5zfr" }]
|
|
81
|
-
],
|
|
58
|
+
], Va = J("message-square-text", Ra), Da = {
|
|
82
59
|
"var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
|
|
83
60
|
"var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
|
|
84
61
|
"var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
|
|
@@ -91,8 +68,8 @@ const Ra = [
|
|
|
91
68
|
"var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
|
|
92
69
|
"var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
|
|
93
70
|
};
|
|
94
|
-
function
|
|
95
|
-
return
|
|
71
|
+
function Ia(a) {
|
|
72
|
+
return Da[ba(a)] ?? "ds:bg-[var(--color-grey-700)]";
|
|
96
73
|
}
|
|
97
74
|
function La(a) {
|
|
98
75
|
if (!a) return;
|
|
@@ -103,7 +80,7 @@ function La(a) {
|
|
|
103
80
|
const u = p.getMonth() - d.getMonth();
|
|
104
81
|
return (u < 0 || u === 0 && p.getDate() < d.getDate()) && o--, o < 0 || o > 130 ? void 0 : o;
|
|
105
82
|
}
|
|
106
|
-
const
|
|
83
|
+
const Aa = ca(
|
|
107
84
|
[
|
|
108
85
|
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
109
86
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -167,7 +144,7 @@ const Ua = ca(
|
|
|
167
144
|
next: !1
|
|
168
145
|
}
|
|
169
146
|
}
|
|
170
|
-
),
|
|
147
|
+
), X = [
|
|
171
148
|
// Interactive elements need a box to remain keyboard-focusable in browsers.
|
|
172
149
|
"ds:inline-flex ds:min-w-0",
|
|
173
150
|
"ds:focus-visible:outline-none",
|
|
@@ -178,7 +155,7 @@ const Ua = ca(
|
|
|
178
155
|
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
179
156
|
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
180
157
|
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
181
|
-
].join(" "),
|
|
158
|
+
].join(" "), Ua = {
|
|
182
159
|
inPractice: ya,
|
|
183
160
|
telehealth: xa
|
|
184
161
|
}, Pa = la(
|
|
@@ -190,20 +167,20 @@ const Ua = ca(
|
|
|
190
167
|
currency: u = "EUR",
|
|
191
168
|
showPatient: i = !0,
|
|
192
169
|
onActivate: l,
|
|
193
|
-
selected:
|
|
170
|
+
selected: N = !1,
|
|
194
171
|
hideDefaultStatus: Q = !1,
|
|
195
172
|
className: Z,
|
|
196
173
|
...aa
|
|
197
174
|
}, ea) => {
|
|
198
|
-
var R, D, I,
|
|
199
|
-
const { t: s } = pa("ui"), m = !!l, sa = !!a.url && ga(a.url), ra = !(Q && a.state === "confirmed"), g = ((R = a.patient) == null ? void 0 : R.name) ?? s("appointmentCard.noPatient"), c = (
|
|
175
|
+
var R, V, D, I, L, A, U, P, O, _, j, F, $, q, E, B, W, G;
|
|
176
|
+
const { t: s } = pa("ui"), m = !!l, sa = !!a.url && ga(a.url), ra = !(Q && a.state === "confirmed"), g = ((R = a.patient) == null ? void 0 : R.name) ?? s("appointmentCard.noPatient"), c = (V = a.operator) == null ? void 0 : V.name, h = s(`appointmentCard.state.${a.state}`), k = ha(a.state), na = k.Icon, C = La((D = a.patient) == null ? void 0 : D.dobIso), oa = ((I = a.flags) == null ? void 0 : I.noPatientAssigned) || !a.patient, v = d === "md" ? "md" : "sm", ta = Ua[a.type], w = i ? g : c ?? s("appointmentCard.appointment"), z = i ? s("appointmentCard.itemLabel", {
|
|
200
177
|
patient: g,
|
|
201
178
|
state: h
|
|
202
|
-
}) : s("appointmentCard.itemLabelGeneric", { title:
|
|
203
|
-
|
|
204
|
-
i &&
|
|
179
|
+
}) : s("appointmentCard.itemLabelGeneric", { title: w, state: h }), b = /* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]", children: [
|
|
180
|
+
w,
|
|
181
|
+
i && C !== void 0 ? /* @__PURE__ */ r("span", { className: "ds:ms-[var(--spacing-2xs)] ds:font-normal ds:text-[color:var(--muted-foreground)]", children: [
|
|
205
182
|
"· ",
|
|
206
|
-
|
|
183
|
+
C
|
|
207
184
|
] }) : null
|
|
208
185
|
] });
|
|
209
186
|
let f;
|
|
@@ -211,8 +188,8 @@ const Ua = ca(
|
|
|
211
188
|
"a",
|
|
212
189
|
{
|
|
213
190
|
href: a.url,
|
|
214
|
-
"aria-label":
|
|
215
|
-
className:
|
|
191
|
+
"aria-label": z,
|
|
192
|
+
className: X,
|
|
216
193
|
onClick: (n) => {
|
|
217
194
|
n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || l == null || l(a);
|
|
218
195
|
},
|
|
@@ -222,13 +199,13 @@ const Ua = ca(
|
|
|
222
199
|
"button",
|
|
223
200
|
{
|
|
224
201
|
type: "button",
|
|
225
|
-
"aria-label":
|
|
226
|
-
className:
|
|
202
|
+
"aria-label": z,
|
|
203
|
+
className: X + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
|
|
227
204
|
onClick: () => l == null ? void 0 : l(a),
|
|
228
205
|
children: b
|
|
229
206
|
}
|
|
230
207
|
) : f = b;
|
|
231
|
-
const
|
|
208
|
+
const T = (a.treatments ?? []).map((n, da) => {
|
|
232
209
|
const ia = n.elements && n.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
|
|
233
210
|
care: n.careName,
|
|
234
211
|
elements: n.elements.join(", ")
|
|
@@ -244,7 +221,7 @@ const Ua = ca(
|
|
|
244
221
|
},
|
|
245
222
|
`${n.careName}-${da}`
|
|
246
223
|
);
|
|
247
|
-
}), x = (L = a.bookingReason) == null ? void 0 : L.advanceAmountCents, S = typeof x == "number" && x > 0, y = (
|
|
224
|
+
}), x = (L = a.bookingReason) == null ? void 0 : L.advanceAmountCents, S = typeof x == "number" && x > 0, y = (A = a.money) == null ? void 0 : A.unpaidAmountCents, M = typeof y == "number" && y > 0;
|
|
248
225
|
return /* @__PURE__ */ r(
|
|
249
226
|
"div",
|
|
250
227
|
{
|
|
@@ -254,12 +231,12 @@ const Ua = ca(
|
|
|
254
231
|
"data-component-id": a.id,
|
|
255
232
|
"data-state": a.state,
|
|
256
233
|
"data-type": a.type,
|
|
257
|
-
"aria-current":
|
|
258
|
-
className:
|
|
234
|
+
"aria-current": N ? "true" : void 0,
|
|
235
|
+
className: Aa({
|
|
259
236
|
size: d,
|
|
260
237
|
interactive: m,
|
|
261
238
|
surface: p,
|
|
262
|
-
selected:
|
|
239
|
+
selected: N,
|
|
263
240
|
dimmed: a.dimmed,
|
|
264
241
|
next: a.next,
|
|
265
242
|
className: Z
|
|
@@ -286,10 +263,10 @@ const Ua = ca(
|
|
|
286
263
|
] }),
|
|
287
264
|
c ? /* @__PURE__ */ r("span", { className: "ds:relative ds:shrink-0", children: [
|
|
288
265
|
/* @__PURE__ */ e(
|
|
289
|
-
|
|
266
|
+
H,
|
|
290
267
|
{
|
|
291
268
|
name: c,
|
|
292
|
-
color: va((
|
|
269
|
+
color: va((U = a.operator) == null ? void 0 : U.colorId),
|
|
293
270
|
size: v,
|
|
294
271
|
"aria-hidden": "true",
|
|
295
272
|
role: "presentation",
|
|
@@ -300,7 +277,7 @@ const Ua = ca(
|
|
|
300
277
|
"span",
|
|
301
278
|
{
|
|
302
279
|
"aria-hidden": "true",
|
|
303
|
-
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)] " +
|
|
280
|
+
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)] " + Ia((P = a.operator) == null ? void 0 : P.colorId)
|
|
304
281
|
}
|
|
305
282
|
)
|
|
306
283
|
] }) : null,
|
|
@@ -308,7 +285,7 @@ const Ua = ca(
|
|
|
308
285
|
/* @__PURE__ */ r("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
309
286
|
/* @__PURE__ */ r("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
310
287
|
i && ((O = a.patient) != null && O.avatarUrl) ? /* @__PURE__ */ e(
|
|
311
|
-
|
|
288
|
+
H,
|
|
312
289
|
{
|
|
313
290
|
name: g,
|
|
314
291
|
src: a.patient.avatarUrl,
|
|
@@ -347,22 +324,22 @@ const Ua = ca(
|
|
|
347
324
|
value: a.state,
|
|
348
325
|
label: h,
|
|
349
326
|
icon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
|
|
350
|
-
tone:
|
|
327
|
+
tone: k.tone
|
|
351
328
|
},
|
|
352
329
|
className: "ds:shrink-0"
|
|
353
330
|
}
|
|
354
331
|
) : null
|
|
355
332
|
] }),
|
|
356
333
|
a.next ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: s("appointmentCard.nextSr") }) : null,
|
|
357
|
-
i && c || (
|
|
334
|
+
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: [
|
|
358
335
|
i && c ? /* @__PURE__ */ e("span", { children: c }) : null,
|
|
359
336
|
(j = a.bookingReason) != null && j.specialty ? /* @__PURE__ */ e("span", { children: a.bookingReason.specialty }) : null,
|
|
360
337
|
a.firstVisit === "yes" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
361
|
-
/* @__PURE__ */ e(
|
|
338
|
+
/* @__PURE__ */ e(Y, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
362
339
|
s("appointmentCard.firstVisit")
|
|
363
340
|
] }) : null,
|
|
364
341
|
a.firstVisit === "unknown" ? /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
365
|
-
/* @__PURE__ */ e(
|
|
342
|
+
/* @__PURE__ */ e(Y, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
366
343
|
s("appointmentCard.firstVisitUnknown")
|
|
367
344
|
] }) : null,
|
|
368
345
|
a.bookingNote ? /* @__PURE__ */ r(
|
|
@@ -372,7 +349,7 @@ const Ua = ca(
|
|
|
372
349
|
title: s("appointmentCard.hasBookingNote"),
|
|
373
350
|
children: [
|
|
374
351
|
/* @__PURE__ */ e(
|
|
375
|
-
|
|
352
|
+
Va,
|
|
376
353
|
{
|
|
377
354
|
"aria-hidden": "true",
|
|
378
355
|
className: "ds:size-3 ds:shrink-0"
|
|
@@ -383,9 +360,9 @@ const Ua = ca(
|
|
|
383
360
|
}
|
|
384
361
|
) : null
|
|
385
362
|
] }) : null,
|
|
386
|
-
(
|
|
387
|
-
|
|
388
|
-
a.carePlan || a.chair || (
|
|
363
|
+
(F = a.bookingReason) != null && F.description ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
|
|
364
|
+
T.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: T }) : null,
|
|
365
|
+
a.carePlan || a.chair || ($ = a.flags) != null && $.bookedOnline || (q = a.flags) != null && q.highlightedAnamnesis || (E = a.flags) != null && E.billable || a.recurring || a.signing || S || M ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
389
366
|
a.carePlan ? /* @__PURE__ */ e(
|
|
390
367
|
t,
|
|
391
368
|
{
|
|
@@ -398,7 +375,7 @@ const Ua = ca(
|
|
|
398
375
|
}
|
|
399
376
|
) : null,
|
|
400
377
|
a.chair ? /* @__PURE__ */ e(t, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(ka, {}), children: s("appointmentCard.chair", { chair: a.chair }) }) : null,
|
|
401
|
-
(
|
|
378
|
+
(B = a.flags) != null && B.bookedOnline ? /* @__PURE__ */ e(t, { variant: "info", size: "sm", leading: /* @__PURE__ */ e(Ca, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
|
|
402
379
|
(W = a.flags) != null && W.highlightedAnamnesis ? /* @__PURE__ */ e(t, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
|
|
403
380
|
a.recurring ? /* @__PURE__ */ e(t, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(wa, {}), children: s("appointmentCard.recurring") }) : null,
|
|
404
381
|
a.signing ? /* @__PURE__ */ e(
|
|
@@ -406,7 +383,7 @@ const Ua = ca(
|
|
|
406
383
|
{
|
|
407
384
|
variant: a.signing.toComplete >= a.signing.required ? "success" : "warning",
|
|
408
385
|
size: "sm",
|
|
409
|
-
leading: /* @__PURE__ */ e(
|
|
386
|
+
leading: /* @__PURE__ */ e(za, {}),
|
|
410
387
|
children: s("appointmentCard.signing", {
|
|
411
388
|
complete: a.signing.toComplete,
|
|
412
389
|
required: a.signing.required
|
|
@@ -415,7 +392,7 @@ const Ua = ca(
|
|
|
415
392
|
) : null,
|
|
416
393
|
(G = a.flags) != null && G.billable ? /* @__PURE__ */ e(t, { variant: "success", size: "sm", withDot: !0, children: s("appointmentCard.flag.billable") }) : null,
|
|
417
394
|
S ? /* @__PURE__ */ e(
|
|
418
|
-
|
|
395
|
+
K,
|
|
419
396
|
{
|
|
420
397
|
state: "to-invoice",
|
|
421
398
|
amount: x / 100,
|
|
@@ -425,8 +402,8 @@ const Ua = ca(
|
|
|
425
402
|
showLabel: !0
|
|
426
403
|
}
|
|
427
404
|
) : null,
|
|
428
|
-
|
|
429
|
-
|
|
405
|
+
M ? /* @__PURE__ */ e(
|
|
406
|
+
K,
|
|
430
407
|
{
|
|
431
408
|
state: "debt",
|
|
432
409
|
amount: y / 100,
|
|
@@ -439,7 +416,7 @@ const Ua = ca(
|
|
|
439
416
|
] }) : null
|
|
440
417
|
] }),
|
|
441
418
|
m ? /* @__PURE__ */ e(
|
|
442
|
-
|
|
419
|
+
Ta,
|
|
443
420
|
{
|
|
444
421
|
"aria-hidden": "true",
|
|
445
422
|
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"
|
|
@@ -454,4 +431,4 @@ Pa.displayName = "AppointmentCard";
|
|
|
454
431
|
export {
|
|
455
432
|
Pa as A
|
|
456
433
|
};
|
|
457
|
-
//# sourceMappingURL=appointment-card-
|
|
434
|
+
//# sourceMappingURL=appointment-card-vbUsDh70.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as x, jsx as o, Fragment as He } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as Me, useId as Ne, useMemo as j, useRef as y, useState as $, useEffect as Fe, useCallback as b, useImperativeHandle as _e } from "react";
|
|
3
3
|
import { c as ze } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as Ae } from "react-i18next";
|
|
5
|
-
import { A as ne } from "./appointment-card-
|
|
5
|
+
import { A as ne } from "./appointment-card-vbUsDh70.js";
|
|
6
6
|
import { B as P } from "./button-DohK_Ak_.js";
|
|
7
7
|
import { B as Be } from "./button-group-B2MJo0Se.js";
|
|
8
8
|
import { D as Ke } from "./date-picker-BmVBVpVu.js";
|
|
@@ -449,4 +449,4 @@ export {
|
|
|
449
449
|
Ze as A,
|
|
450
450
|
Oe as a
|
|
451
451
|
};
|
|
452
|
-
//# sourceMappingURL=appointment-timeline-
|
|
452
|
+
//# sourceMappingURL=appointment-timeline-B5pfBl-b.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as H } from "react-i18next";
|
|
|
5
5
|
import { I as M } from "./icon-button-S8_weU3g.js";
|
|
6
6
|
import { S as q } from "./skeleton-tTWJpvAq.js";
|
|
7
7
|
import { E as K } from "./empty-state-DwJ5YNzz.js";
|
|
8
|
-
import { A as V } from "./appointment-card-
|
|
8
|
+
import { A as V } from "./appointment-card-vbUsDh70.js";
|
|
9
9
|
import { u as B } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { C as D } from "./calendar-days-BGWklvE-.js";
|
|
11
11
|
import { P as L } from "./plus-DzMQ_c6b.js";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
ae as a,
|
|
191
191
|
_ as b
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=appointment-tray-
|
|
193
|
+
//# sourceMappingURL=appointment-tray-BhiXetjs.js.map
|