@alfadocs/ui-kit 1.135.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/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
- package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
- package/dist/_chunks/{alia-sidebar-CtwhdASP.js → alia-sidebar-CVBlKur9.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
- 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/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
- package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
- package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
- 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/call-status-chip-pajxN5eZ.js +180 -0
- package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
- package/dist/_chunks/{chat-input-CX4dxBq7.js → chat-input-BmvnuZqj.js} +114 -109
- package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
- package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
- package/dist/_chunks/color-picker-CC8ZfntU.js +582 -0
- package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
- package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
- package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
- package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
- package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-CirR3C_m.js} +3 -3
- package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
- package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BBvU7sAo.js → fiscal-code-input-DZlpaMGg.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
- package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
- package/dist/_chunks/{iban-input-DuTwKok5.js → iban-input-CdSLRzQN.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
- package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
- package/dist/_chunks/list-todo-KWvUhmT_.js +33 -0
- package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
- package/dist/_chunks/{notes-panel-BvjAo4RQ.js → notes-panel-DsEKNtsw.js} +2 -2
- package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
- package/dist/_chunks/palettes-CKVXYTzo.js +172 -0
- package/dist/_chunks/{patient-account-settings-B2XbN_Fe.js → patient-account-settings-COybehKx.js} +3 -3
- package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
- package/dist/_chunks/{patient-check-in-resume-B7NY-6KI.js → patient-check-in-resume-DZnyYDKH.js} +40 -40
- package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-Dv7EiTCo.js} +2 -2
- package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-DuHWGlLz.js} +3 -3
- package/dist/_chunks/patient-picker-BZJuOgMw.js +173 -0
- package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
- package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
- package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-D-cDzOim.js} +2 -2
- package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
- package/dist/_chunks/{portal-details-DCIiGkHA.js → portal-details-DdzvroYP.js} +2 -2
- package/dist/_chunks/{portal-documents-DJOH8pZx.js → portal-documents-CNmoYWFc.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
- package/dist/_chunks/{privacy-mask-C19dJFMk.js → privacy-mask-C2ZLKrMh.js} +5 -5
- package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
- package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
- package/dist/_chunks/{rich-text-editor-DjHL1b3E.js → rich-text-editor-C48omVjq.js} +2 -2
- package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
- package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
- package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
- package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
- package/dist/_chunks/task-editor-wKbFbGqW.js +1093 -0
- package/dist/_chunks/{tasks-panel-6EzdnwT8.js → tasks-panel-DbtJS4QI.js} +2 -2
- package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
- package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
- package/dist/_chunks/use-appointment-details-read-jGkJalX8.js +1966 -0
- package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
- package/dist/agent-catalog.json +282 -6
- package/dist/agent-i18n/en.json +26 -4
- 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/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +68 -5
- package/dist/components/ai-summary-panel/index.d.ts +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
- package/dist/components/appointment-details-panel/index.js +6 -5
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
- package/dist/components/call-status-chip/index.d.ts +3 -0
- package/dist/components/call-status-chip/index.js +5 -0
- package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
- package/dist/components/calls-panel/calls-panel.d.ts +153 -0
- package/dist/components/calls-panel/index.d.ts +4 -0
- package/dist/components/calls-panel/index.js +6 -0
- package/dist/components/chat-input/chat-input.d.ts +17 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/color-picker/index.js +5 -4
- package/dist/components/communications-panel/communications-panel.d.ts +15 -3
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +29 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/iban-input/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/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/patient-table/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +58 -0
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +72 -3
- package/dist/i18n/locales/ar.js +74 -5
- package/dist/i18n/locales/de.d.ts +72 -3
- package/dist/i18n/locales/de.js +74 -5
- package/dist/i18n/locales/el.d.ts +72 -3
- package/dist/i18n/locales/el.js +74 -5
- package/dist/i18n/locales/en.d.ts +72 -3
- package/dist/i18n/locales/en.js +73 -4
- package/dist/i18n/locales/es.d.ts +72 -3
- package/dist/i18n/locales/es.js +74 -5
- package/dist/i18n/locales/fr.d.ts +72 -3
- package/dist/i18n/locales/fr.js +74 -5
- package/dist/i18n/locales/hi.d.ts +72 -3
- package/dist/i18n/locales/hi.js +74 -5
- package/dist/i18n/locales/it.d.ts +83 -14
- package/dist/i18n/locales/it.js +84 -15
- package/dist/i18n/locales/ja.d.ts +72 -3
- package/dist/i18n/locales/ja.js +74 -5
- package/dist/i18n/locales/nl.d.ts +72 -3
- package/dist/i18n/locales/nl.js +74 -5
- package/dist/i18n/locales/pl.d.ts +72 -3
- package/dist/i18n/locales/pl.js +74 -5
- package/dist/i18n/locales/pt.d.ts +72 -3
- package/dist/i18n/locales/pt.js +74 -5
- package/dist/i18n/locales/ro.d.ts +72 -3
- package/dist/i18n/locales/ro.js +74 -5
- package/dist/i18n/locales/ru.d.ts +72 -3
- package/dist/i18n/locales/ru.js +74 -5
- package/dist/i18n/locales/sq.d.ts +72 -3
- package/dist/i18n/locales/sq.js +74 -5
- package/dist/i18n/locales/sv.d.ts +72 -3
- package/dist/i18n/locales/sv.js +74 -5
- package/dist/i18n/locales/tr.d.ts +72 -3
- package/dist/i18n/locales/tr.js +74 -5
- package/dist/i18n/locales/zh.d.ts +72 -3
- package/dist/i18n/locales/zh.js +74 -5
- package/dist/index.js +1329 -1318
- package/dist/locales/ar.json +74 -5
- package/dist/locales/de.json +74 -5
- package/dist/locales/el.json +74 -5
- package/dist/locales/en.json +73 -4
- package/dist/locales/es.json +74 -5
- package/dist/locales/fr.json +74 -5
- package/dist/locales/hi.json +74 -5
- package/dist/locales/it.json +84 -15
- package/dist/locales/ja.json +74 -5
- package/dist/locales/nl.json +74 -5
- package/dist/locales/pl.json +74 -5
- package/dist/locales/pt.json +74 -5
- package/dist/locales/ro.json +74 -5
- package/dist/locales/ru.json +74 -5
- package/dist/locales/sq.json +74 -5
- package/dist/locales/sv.json +74 -5
- package/dist/locales/tr.json +74 -5
- package/dist/locales/zh.json +74 -5
- package/dist/online-bookings-panel/index.js +69 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- 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/patterns/patient-sign-in/index.js +2 -2
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +158 -0
- package/package.json +35 -2
- package/dist/_chunks/ai-summary-panel-B70S2lgC.js +0 -455
- package/dist/_chunks/calendar-appointment-editor-dialog-I5PfWudy.js +0 -13773
- package/dist/_chunks/color-picker-AcaWuKah.js +0 -745
- package/dist/_chunks/communications-panel-BKPHCiMB.js +0 -973
- package/dist/_chunks/entity-summary-CpNk6ybN.js +0 -266
- package/dist/_chunks/task-editor-DvwqPfFR.js +0 -1257
- package/dist/_chunks/use-appointment-details-read-6_OmOwUs.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-B2XbN_Fe.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";
|
|
@@ -12,7 +12,7 @@ import { F as Z } from "./form-field-CyHfOVKF.js";
|
|
|
12
12
|
import { P as mt } from "./phone-input-BL8Sj6OG.js";
|
|
13
13
|
import { P as tt } from "./pin-entry-BugWQMOS.js";
|
|
14
14
|
import { a as X } from "./format-number-DdzqwMs1.js";
|
|
15
|
-
import { u as _ } from "./patient-card-
|
|
15
|
+
import { u as _ } from "./patient-card-Cpr8iD19.js";
|
|
16
16
|
import { p as ft } from "./privacy-mask-text-B8YfzB7L.js";
|
|
17
17
|
function q(t) {
|
|
18
18
|
return t ? `${t.rowId}|${t.code}|${t.text ?? ""}` : null;
|
|
@@ -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
|
|
@@ -116,10 +116,10 @@ function B(e, t, d) {
|
|
|
116
116
|
}, [e, t, d]);
|
|
117
117
|
}
|
|
118
118
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
E as P,
|
|
120
|
+
w as a,
|
|
121
|
+
P as b,
|
|
122
122
|
F as c,
|
|
123
123
|
B as u
|
|
124
124
|
};
|
|
125
|
-
//# sourceMappingURL=patient-card-
|
|
125
|
+
//# sourceMappingURL=patient-card-Cpr8iD19.js.map
|
package/dist/_chunks/{patient-check-in-resume-B7NY-6KI.js → patient-check-in-resume-DZnyYDKH.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as O } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as I } from "react-i18next";
|
|
3
|
-
import { c as Z, b as ee } from "./patient-sign-in-steps-
|
|
4
|
-
import { B as
|
|
5
|
-
import {
|
|
3
|
+
import { c as Z, b as ee } from "./patient-sign-in-steps-BKcxNkdY.js";
|
|
4
|
+
import { B as C } from "./button-DohK_Ak_.js";
|
|
5
|
+
import { a as N, P as te, c as ae } from "./patient-card-Cpr8iD19.js";
|
|
6
6
|
import { useId as P, useRef as ne, useEffect as se } from "react";
|
|
7
|
-
import { A as
|
|
7
|
+
import { A as k } from "./alert-C4WKViaS.js";
|
|
8
8
|
import { A as _ } from "./appointment-card-BT1cMZIX.js";
|
|
9
9
|
import { B as E } from "./badge-BUk4RjTS.js";
|
|
10
10
|
import { u as B, j as G, d as ie } from "./portal-parts-Br8wuala.js";
|
|
11
11
|
import { D as M } from "./description-list-BxzDN9o2.js";
|
|
12
12
|
import { E as le } from "./error-summary-DxNhwf_G.js";
|
|
13
13
|
import { F as oe } from "./form-field-CyHfOVKF.js";
|
|
14
|
-
import { S as re } from "./select-
|
|
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,
|
|
@@ -88,7 +88,7 @@ function Fe({
|
|
|
88
88
|
headingLevel: d,
|
|
89
89
|
focusOnMount: a,
|
|
90
90
|
children: /* @__PURE__ */ e(
|
|
91
|
-
|
|
91
|
+
C,
|
|
92
92
|
{
|
|
93
93
|
type: "button",
|
|
94
94
|
intent: "primary",
|
|
@@ -126,7 +126,7 @@ function He({
|
|
|
126
126
|
submitting: c = !1,
|
|
127
127
|
onContinue: r,
|
|
128
128
|
onNotMe: u,
|
|
129
|
-
onDocuments:
|
|
129
|
+
onDocuments: b,
|
|
130
130
|
onCancel: f,
|
|
131
131
|
privacy: v = !1,
|
|
132
132
|
headingLevel: g = 1,
|
|
@@ -162,9 +162,9 @@ function He({
|
|
|
162
162
|
}
|
|
163
163
|
)
|
|
164
164
|
] }),
|
|
165
|
-
w ? null : /* @__PURE__ */ o(
|
|
166
|
-
/* @__PURE__ */ e(
|
|
167
|
-
/* @__PURE__ */ e(
|
|
165
|
+
w ? null : /* @__PURE__ */ o(k, { variant: "warning", announce: "off", children: [
|
|
166
|
+
/* @__PURE__ */ e(k.Title, { as: g === 1 ? "h2" : "h3", children: h("patientCheckIn.hub.offTitle") }),
|
|
167
|
+
/* @__PURE__ */ e(k.Description, { children: (a == null ? void 0 : a.reason) ?? h("patientCheckIn.hub.offReason") })
|
|
168
168
|
] }),
|
|
169
169
|
d.length > 0 ? /* @__PURE__ */ o(
|
|
170
170
|
"section",
|
|
@@ -211,11 +211,11 @@ function He({
|
|
|
211
211
|
]
|
|
212
212
|
}
|
|
213
213
|
) : null,
|
|
214
|
-
s ? /* @__PURE__ */ o(
|
|
215
|
-
/* @__PURE__ */ e(
|
|
216
|
-
/* @__PURE__ */ e(
|
|
214
|
+
s ? /* @__PURE__ */ o(k, { variant: "success", announce: "off", children: [
|
|
215
|
+
/* @__PURE__ */ e(k.Title, { as: g === 1 ? "h2" : "h3", children: h("patientCheckIn.hub.allDoneTitle") }),
|
|
216
|
+
/* @__PURE__ */ e(k.Description, { children: h("patientCheckIn.hub.allDoneBody") })
|
|
217
217
|
] }) : /* @__PURE__ */ e(
|
|
218
|
-
|
|
218
|
+
C,
|
|
219
219
|
{
|
|
220
220
|
type: "button",
|
|
221
221
|
intent: "primary",
|
|
@@ -230,19 +230,19 @@ function He({
|
|
|
230
230
|
}
|
|
231
231
|
),
|
|
232
232
|
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-sm)]", children: [
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
b ? /* @__PURE__ */ e(
|
|
234
|
+
C,
|
|
235
235
|
{
|
|
236
236
|
type: "button",
|
|
237
237
|
intent: "secondary",
|
|
238
238
|
className: "ds:min-h-[var(--min-target-size)]",
|
|
239
239
|
"data-action": "documents",
|
|
240
|
-
onClick:
|
|
240
|
+
onClick: b,
|
|
241
241
|
children: h("patientCheckIn.hub.documents")
|
|
242
242
|
}
|
|
243
243
|
) : null,
|
|
244
244
|
/* @__PURE__ */ e(
|
|
245
|
-
|
|
245
|
+
C,
|
|
246
246
|
{
|
|
247
247
|
type: "button",
|
|
248
248
|
intent: "ghost",
|
|
@@ -253,7 +253,7 @@ function He({
|
|
|
253
253
|
}
|
|
254
254
|
),
|
|
255
255
|
f ? /* @__PURE__ */ e(
|
|
256
|
-
|
|
256
|
+
C,
|
|
257
257
|
{
|
|
258
258
|
type: "button",
|
|
259
259
|
intent: "ghost",
|
|
@@ -286,7 +286,7 @@ function Ve({
|
|
|
286
286
|
headingLevel: p,
|
|
287
287
|
focusOnMount: d,
|
|
288
288
|
children: n ? /* @__PURE__ */ e(
|
|
289
|
-
|
|
289
|
+
C,
|
|
290
290
|
{
|
|
291
291
|
type: "button",
|
|
292
292
|
intent: "secondary",
|
|
@@ -337,7 +337,7 @@ function Oe({
|
|
|
337
337
|
fromRecord: c = !0,
|
|
338
338
|
onSubmit: r,
|
|
339
339
|
submitting: u = !1,
|
|
340
|
-
noMobile:
|
|
340
|
+
noMobile: b = !1,
|
|
341
341
|
stepUp: f = null,
|
|
342
342
|
locale: v,
|
|
343
343
|
privacy: g = !1,
|
|
@@ -375,7 +375,7 @@ function Oe({
|
|
|
375
375
|
message: s.error,
|
|
376
376
|
targetId: w
|
|
377
377
|
});
|
|
378
|
-
const J = A.map((i) => `${i.field}:${i.message}`).join("|"), L = !g && !
|
|
378
|
+
const J = A.map((i) => `${i.field}:${i.message}`).join("|"), L = !g && !b && A.length > 0;
|
|
379
379
|
se(() => {
|
|
380
380
|
var i;
|
|
381
381
|
L && ((i = V.current) == null || i.focus({ preventScroll: !1 }));
|
|
@@ -411,8 +411,8 @@ function Oe({
|
|
|
411
411
|
privacy: g
|
|
412
412
|
}
|
|
413
413
|
),
|
|
414
|
-
|
|
415
|
-
/* @__PURE__ */ e(
|
|
414
|
+
b ? /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
415
|
+
/* @__PURE__ */ e(k, { variant: "warning", announce: "off", children: /* @__PURE__ */ e(k.Description, { children: l("patientCheckIn.details.noMobile") }) }),
|
|
416
416
|
/* @__PURE__ */ e(M, { layout: "responsive", divider: "between", children: X.map(([i, T]) => /* @__PURE__ */ o(M.Row, { children: [
|
|
417
417
|
/* @__PURE__ */ e(M.Term, { children: i }),
|
|
418
418
|
/* @__PURE__ */ e(M.Detail, { children: T ? /* @__PURE__ */ e(
|
|
@@ -480,7 +480,7 @@ function Oe({
|
|
|
480
480
|
) : null
|
|
481
481
|
] }),
|
|
482
482
|
/* @__PURE__ */ e(
|
|
483
|
-
|
|
483
|
+
C,
|
|
484
484
|
{
|
|
485
485
|
type: "submit",
|
|
486
486
|
intent: "primary",
|
|
@@ -574,7 +574,7 @@ function $e({
|
|
|
574
574
|
focusOnMount: c = !1,
|
|
575
575
|
className: r
|
|
576
576
|
}) {
|
|
577
|
-
const { t: u } = I("ui"),
|
|
577
|
+
const { t: u } = I("ui"), b = B(p), v = {
|
|
578
578
|
...a ? K(t) : t,
|
|
579
579
|
state: "cancelled"
|
|
580
580
|
};
|
|
@@ -590,7 +590,7 @@ function $e({
|
|
|
590
590
|
privacy: a,
|
|
591
591
|
children: [
|
|
592
592
|
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
593
|
-
/* @__PURE__ */ e("p", { className: "type-label ds:m-0 ds:text-[color:var(--muted-foreground)]", children: G(t.startIso,
|
|
593
|
+
/* @__PURE__ */ e("p", { className: "type-label ds:m-0 ds:text-[color:var(--muted-foreground)]", children: G(t.startIso, b, n) }),
|
|
594
594
|
/* @__PURE__ */ e(
|
|
595
595
|
_,
|
|
596
596
|
{
|
|
@@ -599,14 +599,14 @@ function $e({
|
|
|
599
599
|
showPatient: !1,
|
|
600
600
|
wrapText: !0,
|
|
601
601
|
surface: "elevated",
|
|
602
|
-
locale:
|
|
602
|
+
locale: b,
|
|
603
603
|
timeZone: n,
|
|
604
604
|
privacy: a
|
|
605
605
|
}
|
|
606
606
|
)
|
|
607
607
|
] }),
|
|
608
608
|
d ? /* @__PURE__ */ e(
|
|
609
|
-
|
|
609
|
+
C,
|
|
610
610
|
{
|
|
611
611
|
type: "button",
|
|
612
612
|
intent: "secondary",
|
|
@@ -627,11 +627,11 @@ function _e({
|
|
|
627
627
|
className: d
|
|
628
628
|
}) {
|
|
629
629
|
const { t: a } = I("ui");
|
|
630
|
-
return /* @__PURE__ */ e("div", { "data-component": "check-in-connection-notice", className: d, children: /* @__PURE__ */ o(
|
|
631
|
-
/* @__PURE__ */ e(
|
|
632
|
-
/* @__PURE__ */ e(
|
|
630
|
+
return /* @__PURE__ */ e("div", { "data-component": "check-in-connection-notice", className: d, children: /* @__PURE__ */ o(k, { variant: "warning", announce: "polite", children: [
|
|
631
|
+
/* @__PURE__ */ e(k.Title, { as: p ? `h${p}` : "p", children: a("patientCheckIn.offline.title") }),
|
|
632
|
+
/* @__PURE__ */ e(k.Description, { children: a("patientCheckIn.offline.body") }),
|
|
633
633
|
/* @__PURE__ */ e("div", { className: "ds:mt-[var(--spacing-sm)]", children: /* @__PURE__ */ e(
|
|
634
|
-
|
|
634
|
+
C,
|
|
635
635
|
{
|
|
636
636
|
type: "button",
|
|
637
637
|
intent: "secondary",
|
|
@@ -655,7 +655,7 @@ function Ge({
|
|
|
655
655
|
focusOnMount: s = !1,
|
|
656
656
|
className: c
|
|
657
657
|
}) {
|
|
658
|
-
const { t: r } = I("ui"), u = P(),
|
|
658
|
+
const { t: r } = I("ui"), u = P(), b = a === 1 ? "h2" : "h3";
|
|
659
659
|
return /* @__PURE__ */ o(
|
|
660
660
|
N,
|
|
661
661
|
{
|
|
@@ -672,7 +672,7 @@ function Ge({
|
|
|
672
672
|
"aria-labelledby": u,
|
|
673
673
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
674
674
|
children: [
|
|
675
|
-
/* @__PURE__ */ e(
|
|
675
|
+
/* @__PURE__ */ e(b, { id: u, className: "type-title-card ds:m-0", children: r("patientCheckIn.resume.stepsTitle") }),
|
|
676
676
|
/* @__PURE__ */ e(
|
|
677
677
|
"ul",
|
|
678
678
|
{
|
|
@@ -697,7 +697,7 @@ function Ge({
|
|
|
697
697
|
) : null,
|
|
698
698
|
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
699
699
|
/* @__PURE__ */ e(
|
|
700
|
-
|
|
700
|
+
C,
|
|
701
701
|
{
|
|
702
702
|
type: "button",
|
|
703
703
|
intent: "primary",
|
|
@@ -711,7 +711,7 @@ function Ge({
|
|
|
711
711
|
}
|
|
712
712
|
),
|
|
713
713
|
/* @__PURE__ */ e(
|
|
714
|
-
|
|
714
|
+
C,
|
|
715
715
|
{
|
|
716
716
|
type: "button",
|
|
717
717
|
intent: "ghost",
|
|
@@ -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,12 +22,12 @@ 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";
|
|
29
29
|
import { P as be } from "./province-select-CTM8A9SM.js";
|
|
30
|
-
import { S as ve } from "./select-
|
|
30
|
+
import { S as ve } from "./select-CIXKyUMw.js";
|
|
31
31
|
import { S as xe } from "./switch-DO6uC4HJ.js";
|
|
32
32
|
import { T as Ce } from "./text-area-COMVJ1yE.js";
|
|
33
33
|
import { T as ke } from "./text-input-B6iAgCr3.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
|