@alfadocs/ui-kit 1.136.0 → 1.137.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-details-panel.history-DrIMDQYf.js +314 -0
- package/dist/_chunks/appointment-details-panel.identity-C20Y9xNC.js +223 -0
- package/dist/_chunks/calendar-appointment-editor-dialog-D0n_bVsT.js +5518 -0
- package/dist/_chunks/calendar-editor-discard-host-1UfmMOEb.js +1336 -0
- package/dist/_chunks/calendar-editor-guard-9fShhNIA.js +31 -0
- package/dist/_chunks/calendar-waiting-list-panel-Ckd6tSeu.js +981 -0
- package/dist/_chunks/calendar-workspace.model-DrOoxY1b.js +1557 -0
- package/dist/_chunks/calendar.sheets-Datc0-IT.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-COybehKx.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-CYZ-SvsF.js → patient-check-in-resume-DZnyYDKH.js} +3 -3
- 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-DdzvroYP.js} +2 -2
- package/dist/_chunks/{portal-documents-DVKj6Sco.js → portal-documents-CNmoYWFc.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 +1 -1
- 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-details-panel/index.js +6 -5
- 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/find-free-slots-panel/index.js +58 -0
- package/dist/index.js +1328 -1322
- 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/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
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
function i(e) {
|
|
2
|
+
let t = e.startsWith("#") ? e.slice(1) : e;
|
|
3
|
+
(t.length === 3 || t.length === 4) && (t = t.split("").map((r) => r + r).join(""));
|
|
4
|
+
const f = parseInt(t.slice(0, 2), 16) / 255, n = parseInt(t.slice(2, 4), 16) / 255, a = parseInt(t.slice(4, 6), 16) / 255, o = t.length === 8 ? parseInt(t.slice(6, 8), 16) / 255 : 1;
|
|
5
|
+
return m(f, n, a, o);
|
|
6
|
+
}
|
|
7
|
+
function m(e, t, f, n) {
|
|
8
|
+
const a = Math.max(e, t, f), o = Math.min(e, t, f), r = (a + o) / 2;
|
|
9
|
+
let s = 0, c = 0;
|
|
10
|
+
if (a !== o) {
|
|
11
|
+
const h = a - o;
|
|
12
|
+
c = r > 0.5 ? h / (2 - a - o) : h / (a + o), a === e ? s = ((t - f) / h + (t < f ? 6 : 0)) / 6 : a === t ? s = ((f - e) / h + 2) / 6 : s = ((e - t) / h + 4) / 6;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
// Preserve byte identity through RGB -> HSL -> RGB. Palette colours
|
|
16
|
+
// can be server identifiers, so even one changed channel is a different
|
|
17
|
+
// selection. Round human-facing labels only, never this stored value.
|
|
18
|
+
h: s * 360,
|
|
19
|
+
s: c * 100,
|
|
20
|
+
l: r * 100,
|
|
21
|
+
a: n
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function d(e) {
|
|
25
|
+
const { r: t, g: f, b: n } = x(e), a = (r) => Math.round(r * 255).toString(16).padStart(2, "0"), o = `#${a(t)}${a(f)}${a(n)}`;
|
|
26
|
+
return e.a < 1 ? `${o}${a(e.a)}` : o;
|
|
27
|
+
}
|
|
28
|
+
function b(e) {
|
|
29
|
+
const { r: t, g: f, b: n } = x(e), a = Math.round(t * 255), o = Math.round(f * 255), r = Math.round(n * 255);
|
|
30
|
+
return e.a < 1 ? `rgba(${a}, ${o}, ${r}, ${e.a})` : `rgba(${a}, ${o}, ${r}, 1)`;
|
|
31
|
+
}
|
|
32
|
+
function x(e) {
|
|
33
|
+
const t = e.h / 360, f = e.s / 100, n = e.l / 100;
|
|
34
|
+
if (f === 0)
|
|
35
|
+
return { r: n, g: n, b: n };
|
|
36
|
+
const a = n < 0.5 ? n * (1 + f) : n + f - n * f, o = 2 * n - a;
|
|
37
|
+
return {
|
|
38
|
+
r: l(o, a, t + 1 / 3),
|
|
39
|
+
g: l(o, a, t),
|
|
40
|
+
b: l(o, a, t - 1 / 3)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function l(e, t, f) {
|
|
44
|
+
let n = f;
|
|
45
|
+
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
46
|
+
}
|
|
47
|
+
function C(e, t) {
|
|
48
|
+
switch (t) {
|
|
49
|
+
case "hex":
|
|
50
|
+
return d(e);
|
|
51
|
+
case "hsl":
|
|
52
|
+
return e.a < 1 ? `hsla(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.l)}%, ${e.a})` : `hsl(${Math.round(e.h)}, ${Math.round(e.s)}%, ${Math.round(e.l)}%)`;
|
|
53
|
+
case "rgba":
|
|
54
|
+
return b(e);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function g(e) {
|
|
58
|
+
const t = e.trim();
|
|
59
|
+
if (!t) return null;
|
|
60
|
+
if (t.startsWith("#")) {
|
|
61
|
+
const a = t.slice(1);
|
|
62
|
+
return !/^[0-9a-fA-F]{3,8}$/.test(a) || ![3, 4, 6, 8].includes(a.length) ? null : i(t);
|
|
63
|
+
}
|
|
64
|
+
const f = t.match(
|
|
65
|
+
/^hsla?\(\s*([\d.]+)\s*[,/]\s*([\d.]+)%?\s*[,/]\s*([\d.]+)%?\s*(?:[,/]\s*([\d.]+))?\s*\)$/
|
|
66
|
+
);
|
|
67
|
+
if (f)
|
|
68
|
+
return {
|
|
69
|
+
h: Math.round(parseFloat(f[1])) % 360,
|
|
70
|
+
s: Math.round(parseFloat(f[2])),
|
|
71
|
+
l: Math.round(parseFloat(f[3])),
|
|
72
|
+
a: f[4] !== void 0 ? parseFloat(f[4]) : 1
|
|
73
|
+
};
|
|
74
|
+
const n = t.match(
|
|
75
|
+
/^rgba?\(\s*([\d.]+)\s*[,/]\s*([\d.]+)\s*[,/]\s*([\d.]+)\s*(?:[,/]\s*([\d.]+))?\s*\)$/
|
|
76
|
+
);
|
|
77
|
+
if (n) {
|
|
78
|
+
const a = parseFloat(n[1]) / 255, o = parseFloat(n[2]) / 255, r = parseFloat(n[3]) / 255, s = n[4] !== void 0 ? parseFloat(n[4]) : 1;
|
|
79
|
+
return m(a, o, r, s);
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
function u(e) {
|
|
84
|
+
const { r: t, g: f, b: n } = x(e), a = (o) => o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
|
|
85
|
+
return 0.2126 * a(t) + 0.7152 * a(f) + 0.0722 * a(n);
|
|
86
|
+
}
|
|
87
|
+
function p(e, t) {
|
|
88
|
+
const f = u(e), n = u(t), a = Math.max(f, n), o = Math.min(f, n);
|
|
89
|
+
return Math.round((a + 0.05) / (o + 0.05) * 100) / 100;
|
|
90
|
+
}
|
|
91
|
+
function M(e) {
|
|
92
|
+
return e >= 4.5;
|
|
93
|
+
}
|
|
94
|
+
function $(e) {
|
|
95
|
+
return e >= 7;
|
|
96
|
+
}
|
|
97
|
+
const T = [
|
|
98
|
+
{ name: "Pink 500", hex: "#e91e63", textColor: "#ffffff" },
|
|
99
|
+
{ name: "Black", hex: "#000000", textColor: "#ffffff" },
|
|
100
|
+
{ name: "Blue 500", hex: "#2196f3", textColor: "#ffffff" },
|
|
101
|
+
{ name: "Blue 900", hex: "#0d47a1", textColor: "#ffffff" },
|
|
102
|
+
{ name: "Blue Grey 500", hex: "#607d8b", textColor: "#ffffff" },
|
|
103
|
+
{ name: "Blue Grey 800", hex: "#37474f", textColor: "#ffffff" },
|
|
104
|
+
{ name: "Brown 500", hex: "#795548", textColor: "#ffffff" },
|
|
105
|
+
{ name: "Deep Orange 500", hex: "#ff5722", textColor: "#ffffff" },
|
|
106
|
+
{ name: "Deep Purple 500", hex: "#673ab7", textColor: "#ffffff" },
|
|
107
|
+
{ name: "Green 500", hex: "#4caf50", textColor: "#ffffff" },
|
|
108
|
+
{ name: "Green 900", hex: "#1b5e20", textColor: "#ffffff" },
|
|
109
|
+
{ name: "Indigo 500", hex: "#3f51b5", textColor: "#ffffff" },
|
|
110
|
+
{ name: "Indigo 900", hex: "#1a237e", textColor: "#ffffff" },
|
|
111
|
+
{ name: "Pink 900", hex: "#880e4f", textColor: "#ffffff" },
|
|
112
|
+
{ name: "Purple 500", hex: "#9c27b0", textColor: "#ffffff" },
|
|
113
|
+
{ name: "Purple 900", hex: "#4a148c", textColor: "#ffffff" },
|
|
114
|
+
{ name: "Red 500", hex: "#f44336", textColor: "#ffffff" },
|
|
115
|
+
{ name: "Red 900", hex: "#b71c1c", textColor: "#ffffff" },
|
|
116
|
+
{ name: "Teal 500", hex: "#009688", textColor: "#ffffff" },
|
|
117
|
+
{ name: "Teal 900", hex: "#004d40", textColor: "#ffffff" },
|
|
118
|
+
{ name: "Amber 500", hex: "#ffc107", textColor: "#000000" },
|
|
119
|
+
{ name: "Cyan 500", hex: "#00bcd4", textColor: "#000000" },
|
|
120
|
+
{ name: "Grey 500", hex: "#9e9e9e", textColor: "#000000" },
|
|
121
|
+
{ name: "Light Blue 500", hex: "#03a9f4", textColor: "#000000" },
|
|
122
|
+
{ name: "Light Green 500", hex: "#8bc34a", textColor: "#000000" },
|
|
123
|
+
{ name: "Lime 500", hex: "#cddc39", textColor: "#000000" },
|
|
124
|
+
{ name: "Orange 500", hex: "#ff9800", textColor: "#000000" },
|
|
125
|
+
{ name: "Orange 900", hex: "#e65100", textColor: "#000000" },
|
|
126
|
+
{ name: "White", hex: "#ffffff", textColor: "#000000" },
|
|
127
|
+
{ name: "Yellow 500", hex: "#ffeb3b", textColor: "#000000" }
|
|
128
|
+
], A = [
|
|
129
|
+
{ name: "Blue 300", hex: "#70738c" },
|
|
130
|
+
{ name: "Blue 500", hex: "#292e53" },
|
|
131
|
+
{ name: "Blue 700", hex: "#1d213b" },
|
|
132
|
+
{ name: "Violet 300", hex: "#9995ee" },
|
|
133
|
+
{ name: "Violet 500", hex: "#6761e5" },
|
|
134
|
+
{ name: "Violet 700", hex: "#4945a3" },
|
|
135
|
+
{ name: "Purple 300", hex: "#ccaafa" },
|
|
136
|
+
{ name: "Purple 500", hex: "#b380f8" },
|
|
137
|
+
{ name: "Purple 700", hex: "#7f5bb0" },
|
|
138
|
+
{ name: "Magenta 300", hex: "#ea7ffc" },
|
|
139
|
+
{ name: "Magenta 500", hex: "#e040fb" },
|
|
140
|
+
{ name: "Magenta 700", hex: "#9f2db2" },
|
|
141
|
+
{ name: "Fuchsia 300", hex: "#fa76fc" },
|
|
142
|
+
{ name: "Fuchsia 500", hex: "#f732fb" },
|
|
143
|
+
{ name: "Fuchsia 700", hex: "#af24b2" },
|
|
144
|
+
{ name: "Grey 300", hex: "#f9f6f3" },
|
|
145
|
+
{ name: "Grey 500", hex: "#f6f1ed" },
|
|
146
|
+
{ name: "Grey 700", hex: "#afaba8" }
|
|
147
|
+
], B = [
|
|
148
|
+
{ name: "Tomato", hex: "#d50000" },
|
|
149
|
+
{ name: "Flamingo", hex: "#e67c73" },
|
|
150
|
+
{ name: "Tangerine", hex: "#f4511e" },
|
|
151
|
+
{ name: "Banana", hex: "#f6bf26" },
|
|
152
|
+
{ name: "Sage", hex: "#33b679" },
|
|
153
|
+
{ name: "Basil", hex: "#0b8043" },
|
|
154
|
+
{ name: "Peacock", hex: "#039be5" },
|
|
155
|
+
{ name: "Blueberry", hex: "#3f51b5" },
|
|
156
|
+
{ name: "Lavender", hex: "#7986cb" },
|
|
157
|
+
{ name: "Grape", hex: "#8e24aa" },
|
|
158
|
+
{ name: "Graphite", hex: "#616161" }
|
|
159
|
+
];
|
|
160
|
+
export {
|
|
161
|
+
T as A,
|
|
162
|
+
A as B,
|
|
163
|
+
B as G,
|
|
164
|
+
M as a,
|
|
165
|
+
i as b,
|
|
166
|
+
p as c,
|
|
167
|
+
C as f,
|
|
168
|
+
d as h,
|
|
169
|
+
$ as m,
|
|
170
|
+
g as p
|
|
171
|
+
};
|
|
172
|
+
//# sourceMappingURL=palettes-CKVXYTzo.js.map
|
package/dist/_chunks/{patient-account-settings-Bmfeclpd.js → patient-account-settings-COybehKx.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { useTranslation as T } from "react-i18next";
|
|
|
4
4
|
import { A as z } from "./alert-C4WKViaS.js";
|
|
5
5
|
import { B as D } from "./button-DohK_Ak_.js";
|
|
6
6
|
import { r as at } from "./pin-indicator-Cb-n40UI.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as st } from "./privacy-mask-C2ZLKrMh.js";
|
|
8
8
|
import { u as ct } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
9
|
import { P as lt, a as ot, b as W, e as dt, c as rt, d as ut } from "./portal-parts-Br8wuala.js";
|
|
10
10
|
import { E as pt } from "./email-input-DxwbREpx.js";
|
|
@@ -543,4 +543,4 @@ function wt({
|
|
|
543
543
|
export {
|
|
544
544
|
wt as P
|
|
545
545
|
};
|
|
546
|
-
//# sourceMappingURL=patient-account-settings-
|
|
546
|
+
//# sourceMappingURL=patient-account-settings-COybehKx.js.map
|
package/dist/_chunks/{patient-check-in-resume-CYZ-SvsF.js → patient-check-in-resume-DZnyYDKH.js}
RENAMED
|
@@ -13,9 +13,9 @@ import { E as le } from "./error-summary-DxNhwf_G.js";
|
|
|
13
13
|
import { F as oe } from "./form-field-CyHfOVKF.js";
|
|
14
14
|
import { S as re } from "./select-CIXKyUMw.js";
|
|
15
15
|
import { V as ce } from "./visually-hidden-BHxEUGyT.js";
|
|
16
|
-
import {
|
|
16
|
+
import { a as de } from "./privacy-mask-C2ZLKrMh.js";
|
|
17
17
|
import { u as pe } from "./use-controllable-state-BiY4xTzM.js";
|
|
18
|
-
import { p as me, b as he, a as ue } from "./portal-details-
|
|
18
|
+
import { p as me, b as he, a as ue } from "./portal-details-DdzvroYP.js";
|
|
19
19
|
import { p as fe } from "./privacy-mask-text-B8YfzB7L.js";
|
|
20
20
|
function Re({
|
|
21
21
|
session: t,
|
|
@@ -739,4 +739,4 @@ export {
|
|
|
739
739
|
Ge as g,
|
|
740
740
|
Re as h
|
|
741
741
|
};
|
|
742
|
-
//# sourceMappingURL=patient-check-in-resume-
|
|
742
|
+
//# sourceMappingURL=patient-check-in-resume-DZnyYDKH.js.map
|
|
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-DVPM46bq.js";
|
|
|
8
8
|
import { D as ae } from "./description-list-BxzDN9o2.js";
|
|
9
9
|
import { P as de } from "./panel-header-CbtlTe85.js";
|
|
10
10
|
import { u as re } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-
|
|
11
|
+
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-DuHWGlLz.js";
|
|
12
12
|
import { C as pe } from "./clipboard-list-rSzfIYZB.js";
|
|
13
13
|
const me = {
|
|
14
14
|
id: "patient-details",
|
|
@@ -368,4 +368,4 @@ export {
|
|
|
368
368
|
ue as P,
|
|
369
369
|
me as p
|
|
370
370
|
};
|
|
371
|
-
//# sourceMappingURL=patient-details-
|
|
371
|
+
//# sourceMappingURL=patient-details-Dv7EiTCo.js.map
|
|
@@ -22,7 +22,7 @@ import { C as de } from "./city-input-DXipzTfZ.js";
|
|
|
22
22
|
import { C as ue } from "./country-select-C2GdvRtS.js";
|
|
23
23
|
import { D as me } from "./date-picker-BmVBVpVu.js";
|
|
24
24
|
import { E as pe } from "./email-input-DxwbREpx.js";
|
|
25
|
-
import { F as fe } from "./fiscal-code-input-
|
|
25
|
+
import { F as fe } from "./fiscal-code-input-DZlpaMGg.js";
|
|
26
26
|
import { N as ge } from "./number-input-DUSvP7Dq.js";
|
|
27
27
|
import { P as he } from "./phone-input-BL8Sj6OG.js";
|
|
28
28
|
import { P as ye } from "./postal-code-input-dJdSAVkP.js";
|
|
@@ -805,4 +805,4 @@ export {
|
|
|
805
805
|
Dt as r,
|
|
806
806
|
St as u
|
|
807
807
|
};
|
|
808
|
-
//# sourceMappingURL=patient-field-row-
|
|
808
|
+
//# sourceMappingURL=patient-field-row-DuHWGlLz.js.map
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { c as w } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
+
import { jsx as r, jsxs as M } from "react/jsx-runtime";
|
|
3
|
+
import { useState as h, useRef as S, useEffect as D } from "react";
|
|
4
|
+
import { useTranslation as E } from "react-i18next";
|
|
5
|
+
import { C as Q } from "./combobox-BBCVQS-S.js";
|
|
6
|
+
import { B as q } from "./button-DohK_Ak_.js";
|
|
7
|
+
import { n as I } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
8
|
+
/**
|
|
9
|
+
* @license lucide-react v1.22.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
const O = [
|
|
15
|
+
[
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
|
|
19
|
+
key: "1c8476"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
23
|
+
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
24
|
+
], Z = w("save", O);
|
|
25
|
+
function T({
|
|
26
|
+
action: e,
|
|
27
|
+
typedRef: s
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ r(
|
|
30
|
+
q,
|
|
31
|
+
{
|
|
32
|
+
type: "button",
|
|
33
|
+
size: "sm",
|
|
34
|
+
intent: "outline",
|
|
35
|
+
className: "ds:self-start",
|
|
36
|
+
loading: e.loading,
|
|
37
|
+
"data-action": "create-patient",
|
|
38
|
+
onClick: () => e.onCreate(s.current),
|
|
39
|
+
children: e.label
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
function $({
|
|
44
|
+
patients: e = [],
|
|
45
|
+
searchPatients: s,
|
|
46
|
+
...a
|
|
47
|
+
}) {
|
|
48
|
+
return s ? /* @__PURE__ */ r(F, { ...a, searchPatients: s }) : /* @__PURE__ */ r(v, { ...a, patients: e });
|
|
49
|
+
}
|
|
50
|
+
function v({
|
|
51
|
+
value: e,
|
|
52
|
+
onValueChange: s,
|
|
53
|
+
patients: a,
|
|
54
|
+
selectedLabel: p,
|
|
55
|
+
placeholder: C,
|
|
56
|
+
size: y,
|
|
57
|
+
disabled: i,
|
|
58
|
+
createAction: d
|
|
59
|
+
}) {
|
|
60
|
+
const c = S(""), g = /* @__PURE__ */ r(
|
|
61
|
+
Q,
|
|
62
|
+
{
|
|
63
|
+
value: e,
|
|
64
|
+
onValueChange: s,
|
|
65
|
+
onQueryChange: (n) => {
|
|
66
|
+
c.current = n;
|
|
67
|
+
},
|
|
68
|
+
options: [
|
|
69
|
+
...e && !a.some((n) => n.id === e) ? [{ value: e, label: p ?? "" }] : [],
|
|
70
|
+
...a.map((n) => ({ value: n.id, label: n.name }))
|
|
71
|
+
],
|
|
72
|
+
placeholder: C,
|
|
73
|
+
size: y,
|
|
74
|
+
disabled: i,
|
|
75
|
+
clearable: !0
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
return d ? /* @__PURE__ */ M("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
79
|
+
g,
|
|
80
|
+
e || i ? null : /* @__PURE__ */ r(T, { action: d, typedRef: c })
|
|
81
|
+
] }) : g;
|
|
82
|
+
}
|
|
83
|
+
function F({
|
|
84
|
+
value: e,
|
|
85
|
+
onValueChange: s,
|
|
86
|
+
selectedLabel: a,
|
|
87
|
+
placeholder: p,
|
|
88
|
+
size: C,
|
|
89
|
+
disabled: y,
|
|
90
|
+
searchPatients: i,
|
|
91
|
+
createAction: d
|
|
92
|
+
}) {
|
|
93
|
+
const { t: c } = E("ui"), [g, n] = h(""), [V, j] = h(0), [b, H] = h(), [m, x] = h(), N = S(null), P = S(""), l = g.trim();
|
|
94
|
+
D(() => {
|
|
95
|
+
if (!l) return;
|
|
96
|
+
const t = new AbortController(), o = { query: l, source: i };
|
|
97
|
+
x({ ...o, status: "loading", patients: [] });
|
|
98
|
+
const k = setTimeout(() => {
|
|
99
|
+
Promise.resolve().then(() => i(l, { signal: t.signal })).then(
|
|
100
|
+
(_) => {
|
|
101
|
+
t.signal.aborted || x({ ...o, status: "ready", patients: _ });
|
|
102
|
+
},
|
|
103
|
+
() => {
|
|
104
|
+
t.signal.aborted || x({ ...o, status: "error", patients: [] });
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
}, 250);
|
|
108
|
+
return () => {
|
|
109
|
+
clearTimeout(k), t.abort();
|
|
110
|
+
};
|
|
111
|
+
}, [l, i, V]);
|
|
112
|
+
const R = (m == null ? void 0 : m.query) === l && m.source === i, u = l ? R ? m.status : "loading" : "idle", f = R && u === "ready" ? m.patients : [], z = u === "loading" ? c("inputs.search.loading") : u === "error" ? c("emptyState.error.description") : u === "idle" ? p : f.length === 0 ? c("inputs.combobox.empty") : "", L = !!d && !e && !y, B = f.map((t) => ({
|
|
113
|
+
value: t.id,
|
|
114
|
+
label: t.name
|
|
115
|
+
}));
|
|
116
|
+
return e && !f.some((t) => t.id === e) && B.push({
|
|
117
|
+
value: e,
|
|
118
|
+
label: (b == null ? void 0 : b.id) === e ? b.name : a ?? ""
|
|
119
|
+
}), /* @__PURE__ */ M(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
123
|
+
"data-component": "patient-picker",
|
|
124
|
+
"data-status": u,
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ r(
|
|
127
|
+
Q,
|
|
128
|
+
{
|
|
129
|
+
ref: N,
|
|
130
|
+
options: B,
|
|
131
|
+
value: e,
|
|
132
|
+
onValueChange: (t) => {
|
|
133
|
+
H(
|
|
134
|
+
(o) => f.find((k) => k.id === t) ?? ((o == null ? void 0 : o.id) === t ? o : void 0)
|
|
135
|
+
), s(t);
|
|
136
|
+
},
|
|
137
|
+
onQueryChange: (t) => {
|
|
138
|
+
P.current = t, n(t);
|
|
139
|
+
},
|
|
140
|
+
onOpenChange: (t) => {
|
|
141
|
+
!t && u !== "error" && n("");
|
|
142
|
+
},
|
|
143
|
+
filter: (t) => !l || f.some((o) => I(o.id) === t) ? 1 : 0,
|
|
144
|
+
size: C,
|
|
145
|
+
disabled: y,
|
|
146
|
+
placeholder: p,
|
|
147
|
+
emptyMessage: z || void 0,
|
|
148
|
+
clearable: !0
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
/* @__PURE__ */ r("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: z }),
|
|
152
|
+
L && d ? /* @__PURE__ */ r(T, { action: d, typedRef: P }) : null,
|
|
153
|
+
u === "error" ? /* @__PURE__ */ r(
|
|
154
|
+
q,
|
|
155
|
+
{
|
|
156
|
+
size: "sm",
|
|
157
|
+
intent: "ghost",
|
|
158
|
+
onClick: () => {
|
|
159
|
+
var t;
|
|
160
|
+
j((o) => o + 1), (t = N.current) == null || t.focus();
|
|
161
|
+
},
|
|
162
|
+
children: c("emptyState.error.cta")
|
|
163
|
+
}
|
|
164
|
+
) : null
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
export {
|
|
170
|
+
$ as P,
|
|
171
|
+
Z as S
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=patient-picker-BZJuOgMw.js.map
|
|
@@ -14,7 +14,7 @@ import { T as Ke } from "./transaction-chip-CkYd-3ky.js";
|
|
|
14
14
|
import { T as je } from "./tooltip-uEBdD1-5.js";
|
|
15
15
|
import { H as G } from "./hover-card-CuRIA4wN.js";
|
|
16
16
|
import { i as de } from "./is-safe-url-CEy9CEml.js";
|
|
17
|
-
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-
|
|
17
|
+
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-DuHWGlLz.js";
|
|
18
18
|
import { u as Oe } from "./registry-DvAUVLHh.js";
|
|
19
19
|
import { M as ea } from "./mail-BqXVF2zH.js";
|
|
20
20
|
import { P as aa } from "./phone-FceYcIFQ.js";
|
|
@@ -548,4 +548,4 @@ export {
|
|
|
548
548
|
Ca as P,
|
|
549
549
|
ma as p
|
|
550
550
|
};
|
|
551
|
-
//# sourceMappingURL=patient-summary-card-
|
|
551
|
+
//# sourceMappingURL=patient-summary-card-D-cDzOim.js.map
|
|
@@ -11,7 +11,7 @@ import { E as ct } from "./email-input-DxwbREpx.js";
|
|
|
11
11
|
import { F as v } from "./form-field-CyHfOVKF.js";
|
|
12
12
|
import { T as S } from "./text-input-B6iAgCr3.js";
|
|
13
13
|
import { V as mt } from "./visually-hidden-BHxEUGyT.js";
|
|
14
|
-
import {
|
|
14
|
+
import { a as pt } from "./privacy-mask-C2ZLKrMh.js";
|
|
15
15
|
import { u as W } from "./use-controllable-state-BiY4xTzM.js";
|
|
16
16
|
import { u as Y, P as dt, a as ut, b as ht, c as gt, d as Pt, f as bt } from "./portal-parts-Br8wuala.js";
|
|
17
17
|
import { p as V } from "./privacy-mask-text-B8YfzB7L.js";
|
|
@@ -475,4 +475,4 @@ export {
|
|
|
475
475
|
Ct as b,
|
|
476
476
|
Z as p
|
|
477
477
|
};
|
|
478
|
-
//# sourceMappingURL=portal-details-
|
|
478
|
+
//# sourceMappingURL=portal-details-DdzvroYP.js.map
|
|
@@ -18,7 +18,7 @@ import { D as H } from "./dialog-CVTxyR0v.js";
|
|
|
18
18
|
import { V as ye } from "./visually-hidden-BHxEUGyT.js";
|
|
19
19
|
import { u as ve } from "./use-controllable-state-BiY4xTzM.js";
|
|
20
20
|
import { A as ee } from "./alert-C4WKViaS.js";
|
|
21
|
-
import { D as xe } from "./document-preview-
|
|
21
|
+
import { D as xe } from "./document-preview-CirR3C_m.js";
|
|
22
22
|
import { D as ke } from "./download-CfYKJO_j.js";
|
|
23
23
|
function _e({
|
|
24
24
|
activeTab: p,
|
|
@@ -899,4 +899,4 @@ export {
|
|
|
899
899
|
we as c,
|
|
900
900
|
_e as d
|
|
901
901
|
};
|
|
902
|
-
//# sourceMappingURL=portal-documents-
|
|
902
|
+
//# sourceMappingURL=portal-documents-CNmoYWFc.js.map
|
|
@@ -26,7 +26,7 @@ import { V as Qr } from "./variables-menu-DQl8H4Gh.js";
|
|
|
26
26
|
import { a as jn } from "./tooltip-uEBdD1-5.js";
|
|
27
27
|
import { P as oe } from "./popover-CN5IsOeS.js";
|
|
28
28
|
import { D as ae } from "./dialog-CVTxyR0v.js";
|
|
29
|
-
import { C as Gn } from "./color-picker-
|
|
29
|
+
import { C as Gn } from "./color-picker-CC8ZfntU.js";
|
|
30
30
|
import { S as rn } from "./state-backed-text-input-DVETOhSS.js";
|
|
31
31
|
import { C as bi } from "./checkbox-DV4sNDeB.js";
|
|
32
32
|
import { F as vi } from "./file-upload-DQc0LsBM.js";
|
|
@@ -4246,4 +4246,4 @@ export {
|
|
|
4246
4246
|
qa as r,
|
|
4247
4247
|
Ls as w
|
|
4248
4248
|
};
|
|
4249
|
-
//# sourceMappingURL=rich-text-editor-
|
|
4249
|
+
//# sourceMappingURL=rich-text-editor-C48omVjq.js.map
|