@alfadocs/ui-kit 1.147.2 → 1.149.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-timeline-D5qbZ7in.js → appointment-timeline-CuZW-CGT.js} +2 -2
- package/dist/_chunks/{bill-line-table-DnkFqMnM.js → bill-line-table-B8Cc2pTH.js} +2 -2
- package/dist/_chunks/button-group-CHQD8GJ0.js +449 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-CoIFwj9g.js → calendar-appointment-editor-dialog-Dx9_KIWA.js} +7 -7
- package/dist/_chunks/{calendar-waiting-list-panel-DuALuqLD.js → calendar-waiting-list-panel-BKBHfBpn.js} +3 -3
- package/dist/_chunks/{calendar.sheets-CueyPkTT.js → calendar.sheets-lgAqJB34.js} +3 -3
- package/dist/_chunks/{data-grid-CujX-2tF.js → data-grid-CkzbCZSo.js} +486 -476
- package/dist/_chunks/{default-tabs-CqP1uWdx.js → default-tabs-C45FVzsG.js} +3 -3
- package/dist/_chunks/{face-scheme-ByYeboH9.js → face-scheme-BC2whb1S.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-srvWy5_d.js → invoice-upload-list-BReimsvV.js} +3 -3
- package/dist/_chunks/notes-panel-Cw06dLDm.js +1135 -0
- package/dist/_chunks/prescription-history-CQuJmd4H.js +1846 -0
- package/dist/_chunks/rich-text-editor-eGdYDPK2.js +4405 -0
- package/dist/_chunks/task-editor-4zFL10oM.js +1153 -0
- package/dist/_chunks/{tasks-panel-DsjfS_k5.js → tasks-panel-BDPQPOP6.js} +475 -461
- package/dist/_chunks/{toolbar-z_6tE7zG.js → toolbar-B9oh9XY9.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-CC74Y-r5.js → use-appointment-details-read-Bl1DHXQ2.js} +568 -554
- package/dist/agent-catalog.json +9 -7
- package/dist/agent-i18n/en.json +4 -4
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/aws-transcribe/index.js +287 -181
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/save-outcome.d.ts +23 -0
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/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/button-group/button-group.d.ts +2 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/data-grid/data-grid.variants.d.ts +7 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +12 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +5 -3
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-editor/use-task-editor-form.d.ts +7 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +1 -0
- package/dist/i18n/locales/ar.js +2 -1
- package/dist/i18n/locales/de.d.ts +1 -0
- package/dist/i18n/locales/de.js +2 -1
- package/dist/i18n/locales/el.d.ts +1 -0
- package/dist/i18n/locales/el.js +2 -1
- package/dist/i18n/locales/en.d.ts +1 -0
- package/dist/i18n/locales/en.js +2 -1
- package/dist/i18n/locales/es.d.ts +1 -0
- package/dist/i18n/locales/es.js +2 -1
- package/dist/i18n/locales/fr.d.ts +1 -0
- package/dist/i18n/locales/fr.js +2 -1
- package/dist/i18n/locales/hi.d.ts +1 -0
- package/dist/i18n/locales/hi.js +2 -1
- package/dist/i18n/locales/it.d.ts +1 -0
- package/dist/i18n/locales/it.js +2 -1
- package/dist/i18n/locales/ja.d.ts +1 -0
- package/dist/i18n/locales/ja.js +2 -1
- package/dist/i18n/locales/nl.d.ts +1 -0
- package/dist/i18n/locales/nl.js +2 -1
- package/dist/i18n/locales/pl.d.ts +1 -0
- package/dist/i18n/locales/pl.js +2 -1
- package/dist/i18n/locales/pt.d.ts +1 -0
- package/dist/i18n/locales/pt.js +2 -1
- package/dist/i18n/locales/ro.d.ts +1 -0
- package/dist/i18n/locales/ro.js +2 -1
- package/dist/i18n/locales/ru.d.ts +1 -0
- package/dist/i18n/locales/ru.js +2 -1
- package/dist/i18n/locales/sq.d.ts +1 -0
- package/dist/i18n/locales/sq.js +2 -1
- package/dist/i18n/locales/sv.d.ts +1 -0
- package/dist/i18n/locales/sv.js +2 -1
- package/dist/i18n/locales/tr.d.ts +1 -0
- package/dist/i18n/locales/tr.js +2 -1
- package/dist/i18n/locales/zh.d.ts +1 -0
- package/dist/i18n/locales/zh.js +2 -1
- package/dist/index.js +1408 -1404
- package/dist/locales/ar.json +2 -1
- package/dist/locales/de.json +2 -1
- package/dist/locales/el.json +2 -1
- package/dist/locales/en.json +2 -1
- package/dist/locales/es.json +2 -1
- package/dist/locales/fr.json +2 -1
- package/dist/locales/hi.json +2 -1
- package/dist/locales/it.json +2 -1
- package/dist/locales/ja.json +2 -1
- package/dist/locales/nl.json +2 -1
- package/dist/locales/pl.json +2 -1
- package/dist/locales/pt.json +2 -1
- package/dist/locales/ro.json +2 -1
- package/dist/locales/ru.json +2 -1
- package/dist/locales/sq.json +2 -1
- package/dist/locales/sv.json +2 -1
- package/dist/locales/tr.json +2 -1
- package/dist/locales/zh.json +2 -1
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/patterns/prescription/index.d.ts +1 -1
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/prescription/prescription-history.d.ts +28 -0
- package/dist/save-outcome/index.js +20 -0
- package/dist/speech/aws-transcribe.d.ts +30 -6
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +5 -1
- package/dist/_chunks/button-group-N60L3HMa.js +0 -408
- package/dist/_chunks/notes-panel-BHMnLbEH.js +0 -1116
- package/dist/_chunks/prescription-history-CFs3JMIE.js +0 -1773
- package/dist/_chunks/rich-text-editor-BAcJq1PO.js +0 -4359
- package/dist/_chunks/task-editor-B9YpfwcW.js +0 -1095
|
@@ -1,82 +1,83 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as v, jsx as e, Fragment as ie } from "react/jsx-runtime";
|
|
2
2
|
import { c as lt } from "./index-D2ZczOXr.js";
|
|
3
|
-
import { useId as tt, useRef as R, forwardRef as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { c as
|
|
3
|
+
import { useId as tt, useRef as R, forwardRef as nn, useEffect as Se, useMemo as St, useState as F, useCallback as an } from "react";
|
|
4
|
+
import { useTranslation as J } from "react-i18next";
|
|
5
|
+
import { u as sn } from "./registry-DvAUVLHh.js";
|
|
6
|
+
import { u as pe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
|
+
import { c as on } from "./compose-refs-C0k0tdqF.js";
|
|
8
8
|
import { g as nt } from "./get-error-message-DbFUzuja.js";
|
|
9
|
+
import { useSaveOutcomeUnknownMessage as rn, isSaveOutcomeUnknownError as At, SaveOutcomeUnknownError as ln } from "../save-outcome/index.js";
|
|
9
10
|
import { h as Qe } from "./handled-rejection-C-6Dq0As.js";
|
|
10
|
-
import { c as
|
|
11
|
-
import { A as
|
|
11
|
+
import { c as dn, a as xt } from "./privacy-mask-zVh0ntm0.js";
|
|
12
|
+
import { A as X } from "./alert-C4WKViaS.js";
|
|
12
13
|
import { B as C } from "./button-Dp4j9ygh.js";
|
|
13
|
-
import { I as
|
|
14
|
-
import { B as
|
|
14
|
+
import { I as Wt } from "./icon-button-u9VMQn3x.js";
|
|
15
|
+
import { B as cn } from "./button-group-CHQD8GJ0.js";
|
|
15
16
|
import { D as $e } from "./dropdown-menu-Bm1KALnk.js";
|
|
16
|
-
import { E as
|
|
17
|
+
import { E as Bt } from "./editable-description-BsSjLnSx.js";
|
|
17
18
|
import { N as at } from "./note-timeline-BbjHMhkL.js";
|
|
18
|
-
import { P as
|
|
19
|
+
import { P as $t } from "./panel-header-CbtlTe85.js";
|
|
19
20
|
import { P as Ze } from "./panel-subview-DjBwNV16.js";
|
|
20
|
-
import { P as
|
|
21
|
-
import { S as
|
|
22
|
-
import { C as
|
|
23
|
-
import { F as
|
|
24
|
-
import { T as
|
|
25
|
-
import { T as
|
|
26
|
-
import { T as
|
|
21
|
+
import { P as qt } from "./patient-summary-card-roM9Esfb.js";
|
|
22
|
+
import { S as me } from "./section-card-CYfeQ6EQ.js";
|
|
23
|
+
import { C as un, S as we } from "./skeleton-tTWJpvAq.js";
|
|
24
|
+
import { F as pn } from "./form-field-CyHfOVKF.js";
|
|
25
|
+
import { T as mn } from "./text-area-COMVJ1yE.js";
|
|
26
|
+
import { T as hn } from "./tooltip-uEBdD1-5.js";
|
|
27
|
+
import { T as zt } from "./treatment-receipt-BZzwvsnY.js";
|
|
27
28
|
import { a as et } from "./whatsapp-button-XbozeDl_.js";
|
|
28
|
-
import { W as
|
|
29
|
-
import { a as
|
|
30
|
-
import { M as
|
|
31
|
-
import { R as
|
|
32
|
-
import { A as
|
|
33
|
-
import { B as
|
|
34
|
-
import { C as
|
|
29
|
+
import { W as fn, a as gn } from "./workflow-status-Cg7yjnye.js";
|
|
30
|
+
import { a as Et, u as vn, i as yn } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
31
|
+
import { M as bn, C as Nt, A as kn } from "./appointment-details-panel.history-BxNqcA-r.js";
|
|
32
|
+
import { R as wn, a as Tt, b as it, e as Sn, g as An, c as xn, d as En, h as Nn, D as Ct, f as Tn, i as Cn, p as In } from "./appointment-details-panel.identity--_j07UG1.js";
|
|
33
|
+
import { A as It } from "./avatar-Dp5apm1d.js";
|
|
34
|
+
import { B as Kt } from "./badge-BUk4RjTS.js";
|
|
35
|
+
import { C as Dn } from "./counter-WsvRuum1.js";
|
|
35
36
|
import { D as qe } from "./description-list-DA4TgL_I.js";
|
|
36
|
-
import { T as
|
|
37
|
-
import { T as
|
|
37
|
+
import { T as Dt } from "./timestamp-UMF1llBs.js";
|
|
38
|
+
import { T as Rn } from "./transaction-chip-CkYd-3ky.js";
|
|
38
39
|
import { H as Ae } from "./hover-card-CS8ulBf9.js";
|
|
39
|
-
import { c as
|
|
40
|
-
import { S as
|
|
41
|
-
import { P as
|
|
42
|
-
import { M as
|
|
43
|
-
import { M as
|
|
44
|
-
import { F as
|
|
45
|
-
import { C as
|
|
46
|
-
import { P as
|
|
47
|
-
import { C as
|
|
48
|
-
import { H as
|
|
49
|
-
import { R as
|
|
50
|
-
import { C as
|
|
51
|
-
import { C as
|
|
52
|
-
import { H as
|
|
53
|
-
import { V as
|
|
54
|
-
import { A as
|
|
55
|
-
import { B as
|
|
56
|
-
import { R as
|
|
57
|
-
import { N as
|
|
40
|
+
import { c as jt } from "./createLucideIcon-DhHxpK9K.js";
|
|
41
|
+
import { S as Rt } from "./smartphone-C0rFF2if.js";
|
|
42
|
+
import { P as Pn } from "./phone-FceYcIFQ.js";
|
|
43
|
+
import { M as Ln } from "./mail-BqXVF2zH.js";
|
|
44
|
+
import { M as On } from "./map-pin-BaY37-Km.js";
|
|
45
|
+
import { F as _n } from "./file-pen-line-k4uMBM3h.js";
|
|
46
|
+
import { C as Fn } from "./contact-round-DiSvB3LP.js";
|
|
47
|
+
import { P as Hn } from "./pen-line-D0De5zdl.js";
|
|
48
|
+
import { C as Mn } from "./credit-card-D9XZsHGA.js";
|
|
49
|
+
import { H as Un } from "./heart-pulse-BCppJyN2.js";
|
|
50
|
+
import { R as Wn } from "./refresh-cw-DnI0cLFC.js";
|
|
51
|
+
import { C as Bn } from "./calendar-days-BGWklvE-.js";
|
|
52
|
+
import { C as $n } from "./clock-Drd4Wtis.js";
|
|
53
|
+
import { H as qn } from "./hourglass-BEAzW1wE.js";
|
|
54
|
+
import { V as Yt } from "./video-BheNGvsu.js";
|
|
55
|
+
import { A as Pt } from "./armchair-BaLDW6Hz.js";
|
|
56
|
+
import { B as zn } from "./building-2-D33bLCWL.js";
|
|
57
|
+
import { R as Kn } from "./repeat-CvQa5rZt.js";
|
|
58
|
+
import { N as jn } from "./notebook-pen-CO7HoM-W.js";
|
|
58
59
|
import { C as st } from "./clipboard-list-rSzfIYZB.js";
|
|
59
|
-
import { U as
|
|
60
|
-
import { P as
|
|
61
|
-
import { C as
|
|
62
|
-
import { P as
|
|
63
|
-
import { S as
|
|
64
|
-
import { T as
|
|
65
|
-
import { H as
|
|
66
|
-
import { C as
|
|
67
|
-
import { C as
|
|
68
|
-
import { C as
|
|
69
|
-
import { F as
|
|
70
|
-
import { F as
|
|
71
|
-
import { F as
|
|
72
|
-
import { R as
|
|
60
|
+
import { U as Yn } from "./user-plus-BtcOLgNU.js";
|
|
61
|
+
import { P as Lt } from "./pencil-B1sKKyuT.js";
|
|
62
|
+
import { C as Vn } from "./copy-vRpqqHtY.js";
|
|
63
|
+
import { P as Gn } from "./plus-DzMQ_c6b.js";
|
|
64
|
+
import { S as Xn } from "./square-check-big-dj0o8yA3.js";
|
|
65
|
+
import { T as Jn } from "./trash-2-uumy3fy1.js";
|
|
66
|
+
import { H as Ot } from "./history-CK2JaU2g.js";
|
|
67
|
+
import { C as Vt } from "./calendar-clock-hbObjfGY.js";
|
|
68
|
+
import { C as Qn } from "./chevron-down-DWE7GSq9.js";
|
|
69
|
+
import { C as Zn } from "./camera-VSklPDCv.js";
|
|
70
|
+
import { F as ea } from "./file-BuG1VMAy.js";
|
|
71
|
+
import { F as ta } from "./file-text-5yv6r2ls.js";
|
|
72
|
+
import { F as na } from "./folder-BghC8_S2.js";
|
|
73
|
+
import { R as aa } from "./receipt-euro-B1cLM_TN.js";
|
|
73
74
|
/**
|
|
74
75
|
* @license lucide-react v1.22.0 - ISC
|
|
75
76
|
*
|
|
76
77
|
* This source code is licensed under the ISC license.
|
|
77
78
|
* See the LICENSE file in the root directory of this source tree.
|
|
78
79
|
*/
|
|
79
|
-
const
|
|
80
|
+
const ia = [
|
|
80
81
|
["path", { d: "M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8", key: "1w3rig" }],
|
|
81
82
|
["path", { d: "M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1", key: "n2jgmb" }],
|
|
82
83
|
["path", { d: "M2 21h20", key: "1nyx9w" }],
|
|
@@ -86,20 +87,20 @@ const Qn = [
|
|
|
86
87
|
["path", { d: "M7 4h.01", key: "1bh4kh" }],
|
|
87
88
|
["path", { d: "M12 4h.01", key: "1ujb9j" }],
|
|
88
89
|
["path", { d: "M17 4h.01", key: "1upcoc" }]
|
|
89
|
-
],
|
|
90
|
+
], sa = jt("cake", ia);
|
|
90
91
|
/**
|
|
91
92
|
* @license lucide-react v1.22.0 - ISC
|
|
92
93
|
*
|
|
93
94
|
* This source code is licensed under the ISC license.
|
|
94
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
95
96
|
*/
|
|
96
|
-
const
|
|
97
|
+
const oa = [
|
|
97
98
|
["path", { d: "M16 10h2", key: "8sgtl7" }],
|
|
98
99
|
["path", { d: "M16 14h2", key: "epxaof" }],
|
|
99
100
|
["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
|
|
100
101
|
["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
|
|
101
102
|
["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
|
|
102
|
-
],
|
|
103
|
+
], ra = jt("id-card", oa), la = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', da = {
|
|
103
104
|
id: "appointment-details-panel",
|
|
104
105
|
// open and close back open_history and close_history; set_value backs
|
|
105
106
|
// set_status.
|
|
@@ -215,7 +216,7 @@ const ea = [
|
|
|
215
216
|
root: {
|
|
216
217
|
attr: "data-component",
|
|
217
218
|
value: "appointment-details-panel",
|
|
218
|
-
description: `Marks the panel. It also carries data-event-id and data-status. Inside, cards carry data-card (patient, appointment, notes, treatments), footer actions data-action, and the History and description sub-views data-details-subview. An action in offeredActions with no data-action in the footer strip is folded into More: click the panel's ${
|
|
219
|
+
description: `Marks the panel. It also carries data-event-id and data-status. Inside, cards carry data-card (patient, appointment, notes, treatments), footer actions data-action, and the History and description sub-views data-details-subview. An action in offeredActions with no data-action in the footer strip is folded into More: click the panel's ${la}, and its menu item carries the same data-action.`
|
|
219
220
|
},
|
|
220
221
|
instanceId: {
|
|
221
222
|
attr: "data-component-id",
|
|
@@ -228,11 +229,11 @@ function ot(t) {
|
|
|
228
229
|
const n = document.activeElement;
|
|
229
230
|
n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
|
|
230
231
|
}
|
|
231
|
-
function
|
|
232
|
+
function Fe(t) {
|
|
232
233
|
const n = document.getElementById(t);
|
|
233
234
|
n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), ot(n);
|
|
234
235
|
}
|
|
235
|
-
const
|
|
236
|
+
const ue = {
|
|
236
237
|
advancedSignature: "setup-advanced-signature",
|
|
237
238
|
requestSignature: "request-signature",
|
|
238
239
|
signOnDevice: "sign-on-device",
|
|
@@ -250,7 +251,7 @@ function ze(t) {
|
|
|
250
251
|
return;
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
|
-
const
|
|
254
|
+
const ca = {
|
|
254
255
|
SU: 0,
|
|
255
256
|
MO: 1,
|
|
256
257
|
TU: 2,
|
|
@@ -258,25 +259,25 @@ const ia = {
|
|
|
258
259
|
TH: 4,
|
|
259
260
|
FR: 5,
|
|
260
261
|
SA: 6
|
|
261
|
-
},
|
|
262
|
+
}, ua = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], pa = {
|
|
262
263
|
daily: "recurrenceEveryDay",
|
|
263
264
|
weekly: "recurrenceEveryWeek",
|
|
264
265
|
monthly: "recurrenceEveryMonth",
|
|
265
266
|
yearly: "recurrenceEveryYear"
|
|
266
|
-
},
|
|
267
|
+
}, ma = {
|
|
267
268
|
1: "recurrenceOrdinal1",
|
|
268
269
|
2: "recurrenceOrdinal2",
|
|
269
270
|
3: "recurrenceOrdinal3",
|
|
270
271
|
4: "recurrenceOrdinal4"
|
|
271
|
-
},
|
|
272
|
-
function
|
|
273
|
-
const i = new Date(2026, 0, 4 +
|
|
272
|
+
}, ha = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
|
|
273
|
+
function _t(t, n) {
|
|
274
|
+
const i = new Date(2026, 0, 4 + ca[t]);
|
|
274
275
|
return new Intl.DateTimeFormat(n, { weekday: "long" }).format(i);
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
-
const d =
|
|
277
|
+
function fa(t, n, i) {
|
|
278
|
+
const d = Tt(n);
|
|
278
279
|
if (!Number.isFinite(d.getTime())) return;
|
|
279
|
-
const c = i ?
|
|
280
|
+
const c = i ? Tt(i) : void 0, l = c && c.getFullYear() === d.getFullYear();
|
|
280
281
|
try {
|
|
281
282
|
return new Intl.DateTimeFormat(t, {
|
|
282
283
|
day: "numeric",
|
|
@@ -287,42 +288,42 @@ function da(t, n, i) {
|
|
|
287
288
|
return;
|
|
288
289
|
}
|
|
289
290
|
}
|
|
290
|
-
function
|
|
291
|
-
const c =
|
|
291
|
+
function ga(t, n, i, d) {
|
|
292
|
+
const c = wn[i.frequency];
|
|
292
293
|
if (!c) return;
|
|
293
|
-
const l = (
|
|
294
|
-
(
|
|
295
|
-
) : [], f = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([,
|
|
296
|
-
let
|
|
294
|
+
const l = (b) => `calendarWorkspace.editor.${b}`, u = (b) => `calendarWorkspace.details.${b}`, p = pa[i.frequency], r = p && (i.interval ?? 1) > 1 ? t(l(p), { count: i.interval }) : t(l(c)), a = (i.byDay ?? []).map((b) => ha.exec(b)).filter((b) => b !== null), o = i.frequency === "weekly" ? ua.filter(
|
|
295
|
+
(b) => a.some(([, m, E]) => !m && E === b)
|
|
296
|
+
) : [], f = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, b]) => b) : void 0;
|
|
297
|
+
let y = r;
|
|
297
298
|
if (o.length > 0)
|
|
298
|
-
|
|
299
|
+
y = t(u("seriesOnDays"), {
|
|
299
300
|
every: r,
|
|
300
301
|
days: new Intl.ListFormat(n, { type: "conjunction" }).format(
|
|
301
|
-
o.map((
|
|
302
|
+
o.map((b) => _t(b, n))
|
|
302
303
|
)
|
|
303
304
|
});
|
|
304
305
|
else if (f) {
|
|
305
|
-
const [,
|
|
306
|
-
|
|
306
|
+
const [, b, m] = f, E = _t(m, n);
|
|
307
|
+
y = b === "-1" ? t(u("seriesOnLast"), { every: r, weekday: E }) : t(u("seriesOnNth"), {
|
|
307
308
|
every: r,
|
|
308
|
-
weekday:
|
|
309
|
-
ordinal: t(l(
|
|
309
|
+
weekday: E,
|
|
310
|
+
ordinal: t(l(ma[b]))
|
|
310
311
|
});
|
|
311
312
|
}
|
|
312
313
|
if (i.count !== void 0)
|
|
313
314
|
return t(u("seriesRule"), {
|
|
314
|
-
frequency:
|
|
315
|
+
frequency: y,
|
|
315
316
|
count: i.count
|
|
316
317
|
});
|
|
317
|
-
const k = i.untilIso ?
|
|
318
|
-
return k ? t(u("seriesUntil"), { rule:
|
|
318
|
+
const k = i.untilIso ? fa(n, i.untilIso, d) : void 0;
|
|
319
|
+
return k ? t(u("seriesUntil"), { rule: y, date: k }) : y;
|
|
319
320
|
}
|
|
320
321
|
function rt({
|
|
321
322
|
eyebrow: t,
|
|
322
323
|
heading: n,
|
|
323
324
|
facts: i
|
|
324
325
|
}) {
|
|
325
|
-
return /* @__PURE__ */
|
|
326
|
+
return /* @__PURE__ */ v(ie, { children: [
|
|
326
327
|
/* @__PURE__ */ e(Ae.Eyebrow, { children: t }),
|
|
327
328
|
/* @__PURE__ */ e(Ae.Heading, { children: n }),
|
|
328
329
|
i && i.length > 0 ? /* @__PURE__ */ e(Ae.Body, { children: /* @__PURE__ */ e("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0 type-body-sm", children: i.map((d, c) => /* @__PURE__ */ e(
|
|
@@ -335,24 +336,24 @@ function rt({
|
|
|
335
336
|
)) }) }) : null
|
|
336
337
|
] });
|
|
337
338
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
339
|
+
const va = "ds:inline-flex ds:cursor-pointer ds:rounded-[var(--radius-full)] ds:p-0 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
|
|
340
|
+
function Ft({
|
|
340
341
|
id: t,
|
|
341
342
|
eyebrow: n,
|
|
342
343
|
heading: i,
|
|
343
344
|
facts: d,
|
|
344
345
|
children: c
|
|
345
346
|
}) {
|
|
346
|
-
return /* @__PURE__ */
|
|
347
|
-
/* @__PURE__ */ e(Ae.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className:
|
|
347
|
+
return /* @__PURE__ */ v(Ae, { children: [
|
|
348
|
+
/* @__PURE__ */ e(Ae.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: va, children: c }) }),
|
|
348
349
|
/* @__PURE__ */ e(Ae.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(rt, { eyebrow: n, heading: i, facts: d }) })
|
|
349
350
|
] });
|
|
350
351
|
}
|
|
351
|
-
const s = (t) => `calendarWorkspace.details.${t}`,
|
|
352
|
+
const s = (t) => `calendarWorkspace.details.${t}`, ya = {
|
|
352
353
|
missing: "consentMissing",
|
|
353
354
|
requested: "consentRequested",
|
|
354
355
|
signed: "consentSigned"
|
|
355
|
-
},
|
|
356
|
+
}, Gt = (t) => /* @__PURE__ */ e("a", { href: `tel:${t.replace(/\s/g, "")}`, dir: "ltr", children: t }), Xt = (t) => /* @__PURE__ */ e("a", { href: `mailto:${t}`, dir: "ltr", children: t }), Jt = (t, n, i) => new Intl.NumberFormat(t, { style: "currency", currency: i }).format(n);
|
|
356
357
|
function Ke({
|
|
357
358
|
href: t,
|
|
358
359
|
action: n,
|
|
@@ -372,9 +373,9 @@ function Ke({
|
|
|
372
373
|
}
|
|
373
374
|
) : null;
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function Ht({ rows: t }) {
|
|
376
377
|
const n = t.filter((i) => !!i);
|
|
377
|
-
return n.length === 0 ? null : /* @__PURE__ */ e(qe, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */
|
|
378
|
+
return n.length === 0 ? null : /* @__PURE__ */ e(qe, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */ v(
|
|
378
379
|
qe.Row,
|
|
379
380
|
{
|
|
380
381
|
"data-row": i.id,
|
|
@@ -387,7 +388,7 @@ function Ot({ rows: t }) {
|
|
|
387
388
|
i.id
|
|
388
389
|
)) });
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
+
function ba({
|
|
391
392
|
details: t,
|
|
392
393
|
locale: n,
|
|
393
394
|
currency: i,
|
|
@@ -398,101 +399,101 @@ function ma({
|
|
|
398
399
|
onSignOnDevice: p,
|
|
399
400
|
onOpenPatient: r
|
|
400
401
|
}) {
|
|
401
|
-
const { t: a } =
|
|
402
|
+
const { t: a } = J("ui"), { patient: o, signing: f, money: y, booking: k } = t;
|
|
402
403
|
if (!o) return null;
|
|
403
|
-
const
|
|
404
|
+
const b = (f == null ? void 0 : f.consents) ?? [], m = f && (f.required > 0 || b.length > 0) ? f : void 0, E = ((m == null ? void 0 : m.toComplete) ?? 0) > 0, L = m ? [
|
|
404
405
|
{
|
|
405
|
-
text:
|
|
406
|
+
text: E ? m.requestedVia === "sms" ? a(s("signingRequestedSms")) : m.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
|
|
406
407
|
},
|
|
407
408
|
...m.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
|
|
408
|
-
] : [], P = ((f == null ? void 0 : f.required) ?? 0) > 0 &&
|
|
409
|
+
] : [], P = ((f == null ? void 0 : f.required) ?? 0) > 0 && E, N = !!(l != null && l.advancedSignatureUrl) && ((f == null ? void 0 : f.required) ?? 0) > 0 && !(f != null && f.aesSetUp), H = !!u && P, T = !!p && P, I = o.highlightedAnamnesisCount ?? 0, M = o.expiredAnamnesisCount ?? 0, q = (o.highlightedAnamnesisAnswers ?? []).map((x) => ({
|
|
409
410
|
text: [
|
|
410
411
|
x.question,
|
|
411
412
|
a(s(x.yes ? "anamnesisYes" : "anamnesisNo")),
|
|
412
413
|
x.answer,
|
|
413
414
|
it(n, x.interviewIso)
|
|
414
415
|
].filter(Boolean).join(" · ")
|
|
415
|
-
})),
|
|
416
|
+
})), Q = Sn(o), se = An(o) || Q, z = b.map((x) => ({
|
|
416
417
|
id: `consent-${x.id}`,
|
|
417
418
|
label: x.name,
|
|
418
|
-
value: a(s(
|
|
419
|
+
value: a(s(ya[x.state]))
|
|
419
420
|
})), K = [
|
|
420
421
|
...o.dobIso ? [
|
|
421
422
|
{
|
|
422
423
|
id: "dob",
|
|
423
424
|
label: a(s("dob")),
|
|
424
|
-
icon: /* @__PURE__ */ e(
|
|
425
|
+
icon: /* @__PURE__ */ e(sa, {}),
|
|
425
426
|
value: `${it(n, o.dobIso)} ${a(
|
|
426
427
|
s("patientAge"),
|
|
427
428
|
{
|
|
428
|
-
n:
|
|
429
|
+
n: xn(o.dobIso, d)
|
|
429
430
|
}
|
|
430
431
|
)}`
|
|
431
432
|
}
|
|
432
433
|
] : [],
|
|
433
|
-
...
|
|
434
|
-
const
|
|
434
|
+
...En(o).map((x, Y) => {
|
|
435
|
+
const te = x.label === "mobile" || x.label === "home" || x.label === "work";
|
|
435
436
|
return {
|
|
436
437
|
id: `phone-${Y}`,
|
|
437
|
-
label: a(
|
|
438
|
-
icon: x.label === "mobile" ? /* @__PURE__ */ e(
|
|
439
|
-
value:
|
|
438
|
+
label: a(te ? `calendarWorkspace.print.phoneLabels.${x.label}` : s("phone")),
|
|
439
|
+
icon: x.label === "mobile" ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(Pn, {}),
|
|
440
|
+
value: Gt(x.number)
|
|
440
441
|
};
|
|
441
442
|
}),
|
|
442
443
|
...o.email ? [
|
|
443
444
|
{
|
|
444
445
|
id: "email",
|
|
445
446
|
label: a(s("email")),
|
|
446
|
-
icon: /* @__PURE__ */ e(
|
|
447
|
-
value:
|
|
447
|
+
icon: /* @__PURE__ */ e(Ln, {}),
|
|
448
|
+
value: Xt(o.email)
|
|
448
449
|
}
|
|
449
450
|
] : [],
|
|
450
451
|
/* P27: hidden patient details leave the address out, and with it the
|
|
451
452
|
row: no map link and no empty "address" line. */
|
|
452
|
-
...c &&
|
|
453
|
+
...c && Q ? [
|
|
453
454
|
{
|
|
454
455
|
id: "address",
|
|
455
456
|
label: a(s("address")),
|
|
456
|
-
icon: /* @__PURE__ */ e(
|
|
457
|
+
icon: /* @__PURE__ */ e(On, {}),
|
|
457
458
|
value: /* @__PURE__ */ e(
|
|
458
459
|
"a",
|
|
459
460
|
{
|
|
460
|
-
href:
|
|
461
|
+
href: Nn(o),
|
|
461
462
|
target: "_blank",
|
|
462
463
|
rel: "noopener noreferrer",
|
|
463
|
-
"aria-label": `${a(s("mapsLink"))}: ${
|
|
464
|
-
children:
|
|
464
|
+
"aria-label": `${a(s("mapsLink"))}: ${se}`,
|
|
465
|
+
children: se
|
|
465
466
|
}
|
|
466
467
|
)
|
|
467
468
|
}
|
|
468
469
|
] : []
|
|
469
|
-
],
|
|
470
|
-
|
|
470
|
+
], U = (y == null ? void 0 : y.unpaidAmount) ?? 0, j = (y == null ? void 0 : y.billableAmount) ?? 0, Z = (k == null ? void 0 : k.paidOnlineAmount) ?? 0, ee = (x, Y, te, xe, Ee, he) => /* @__PURE__ */ e(
|
|
471
|
+
Ft,
|
|
471
472
|
{
|
|
472
|
-
id:
|
|
473
|
+
id: te,
|
|
473
474
|
eyebrow: a(s("hoverBilling")),
|
|
474
475
|
heading: a(s(xe), {
|
|
475
|
-
amount:
|
|
476
|
+
amount: Jt(n, Y, i)
|
|
476
477
|
}),
|
|
477
|
-
facts: [{ text: a(s(
|
|
478
|
+
facts: [{ text: a(s(Ee)) }],
|
|
478
479
|
children: /* @__PURE__ */ e(
|
|
479
|
-
|
|
480
|
+
Rn,
|
|
480
481
|
{
|
|
481
|
-
"data-chip":
|
|
482
|
+
"data-chip": te,
|
|
482
483
|
state: x,
|
|
483
484
|
amount: Y,
|
|
484
485
|
currency: i,
|
|
485
486
|
locale: n,
|
|
486
487
|
size: "md",
|
|
487
488
|
showLabel: !0,
|
|
488
|
-
label:
|
|
489
|
+
label: he,
|
|
489
490
|
showIcon: !1
|
|
490
491
|
}
|
|
491
492
|
)
|
|
492
493
|
}
|
|
493
494
|
);
|
|
494
495
|
return /* @__PURE__ */ e(
|
|
495
|
-
|
|
496
|
+
qt,
|
|
496
497
|
{
|
|
497
498
|
"data-card": "patient",
|
|
498
499
|
name: o.name,
|
|
@@ -526,25 +527,25 @@ function ma({
|
|
|
526
527
|
}
|
|
527
528
|
)
|
|
528
529
|
},
|
|
529
|
-
extraChips:
|
|
530
|
-
/* @__PURE__ */
|
|
531
|
-
|
|
530
|
+
extraChips: U > 0 || j > 0 || Z > 0 || M > 0 || N || H || T || r ? /* @__PURE__ */ v(ie, { children: [
|
|
531
|
+
/* @__PURE__ */ v("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
532
|
+
U > 0 ? ee(
|
|
532
533
|
"debt",
|
|
533
|
-
|
|
534
|
+
U,
|
|
534
535
|
"unpaid",
|
|
535
536
|
"hoverUnpaidHeading",
|
|
536
537
|
"hoverUnpaidFact"
|
|
537
538
|
) : null,
|
|
538
|
-
j > 0 ?
|
|
539
|
+
j > 0 ? ee(
|
|
539
540
|
"to-invoice",
|
|
540
541
|
j,
|
|
541
542
|
"billable",
|
|
542
543
|
"hoverBillableHeading",
|
|
543
544
|
"hoverBillableFact"
|
|
544
545
|
) : null,
|
|
545
|
-
|
|
546
|
+
Z > 0 ? ee(
|
|
546
547
|
"settled",
|
|
547
|
-
|
|
548
|
+
Z,
|
|
548
549
|
"paidOnline",
|
|
549
550
|
"hoverPaidOnlineHeading",
|
|
550
551
|
"hoverPaidOnlineFact",
|
|
@@ -558,20 +559,20 @@ function ma({
|
|
|
558
559
|
{
|
|
559
560
|
size: "sm",
|
|
560
561
|
intent: "outline",
|
|
561
|
-
"data-action":
|
|
562
|
-
startIcon: /* @__PURE__ */ e(
|
|
562
|
+
"data-action": ue.requestSignature,
|
|
563
|
+
startIcon: /* @__PURE__ */ e(_n, { "aria-hidden": "true" }),
|
|
563
564
|
onClick: () => u(t.eventId),
|
|
564
565
|
children: a(s("signingRequest"))
|
|
565
566
|
}
|
|
566
567
|
) : null,
|
|
567
|
-
|
|
568
|
+
T ? /* @__PURE__ */ e(
|
|
568
569
|
C,
|
|
569
570
|
{
|
|
570
571
|
size: "sm",
|
|
571
572
|
intent: "outline",
|
|
572
|
-
"data-action":
|
|
573
|
+
"data-action": ue.signOnDevice,
|
|
573
574
|
"aria-label": `${a(s("signingRequest"))}: ${a(s("signingOnDevice"))}`,
|
|
574
|
-
startIcon: /* @__PURE__ */ e(
|
|
575
|
+
startIcon: /* @__PURE__ */ e(Rt, { "aria-hidden": "true" }),
|
|
575
576
|
onClick: () => p(t.eventId),
|
|
576
577
|
children: a(s("signingOnDevice"))
|
|
577
578
|
}
|
|
@@ -581,44 +582,44 @@ function ma({
|
|
|
581
582
|
{
|
|
582
583
|
size: "sm",
|
|
583
584
|
intent: "outline",
|
|
584
|
-
"data-action":
|
|
585
|
-
startIcon: /* @__PURE__ */ e(
|
|
585
|
+
"data-action": ue.openPatient,
|
|
586
|
+
startIcon: /* @__PURE__ */ e(Fn, { "aria-hidden": "true" }),
|
|
586
587
|
onClick: () => r(t.eventId),
|
|
587
588
|
children: a(s("openPatient"))
|
|
588
589
|
}
|
|
589
590
|
) : null,
|
|
590
|
-
|
|
591
|
+
N && (l != null && l.advancedSignatureUrl) ? /* @__PURE__ */ e(
|
|
591
592
|
Ke,
|
|
592
593
|
{
|
|
593
594
|
href: l.advancedSignatureUrl,
|
|
594
|
-
action:
|
|
595
|
-
icon: /* @__PURE__ */ e(
|
|
595
|
+
action: ue.advancedSignature,
|
|
596
|
+
icon: /* @__PURE__ */ e(Hn, { "aria-hidden": "true" }),
|
|
596
597
|
children: a(s("aesSetUp"))
|
|
597
598
|
}
|
|
598
599
|
) : null,
|
|
599
|
-
l != null && l.unlockPaymentsUrl && (
|
|
600
|
+
l != null && l.unlockPaymentsUrl && (U > 0 || j > 0) ? /* @__PURE__ */ e(
|
|
600
601
|
Ke,
|
|
601
602
|
{
|
|
602
603
|
href: l.unlockPaymentsUrl,
|
|
603
|
-
action:
|
|
604
|
-
icon: /* @__PURE__ */ e(
|
|
604
|
+
action: ue.unlockPayments,
|
|
605
|
+
icon: /* @__PURE__ */ e(Mn, { "aria-hidden": "true" }),
|
|
605
606
|
children: a(s("unlockPayments"))
|
|
606
607
|
}
|
|
607
608
|
) : null,
|
|
608
609
|
M > 0 ? /* @__PURE__ */ e(
|
|
609
|
-
|
|
610
|
+
Ft,
|
|
610
611
|
{
|
|
611
612
|
id: "anamnesisExpired",
|
|
612
613
|
eyebrow: a(s("anamnesisTitle")),
|
|
613
614
|
heading: a(s("anamnesisExpired"), { n: M }),
|
|
614
615
|
facts: [{ text: a(s("hoverAnamnesisExpiredFact")) }],
|
|
615
616
|
children: /* @__PURE__ */ e(
|
|
616
|
-
|
|
617
|
+
Kt,
|
|
617
618
|
{
|
|
618
619
|
"data-chip": "anamnesisExpired",
|
|
619
620
|
variant: "warning",
|
|
620
621
|
size: "md",
|
|
621
|
-
leading: /* @__PURE__ */ e(
|
|
622
|
+
leading: /* @__PURE__ */ e(Un, {}),
|
|
622
623
|
children: a(s("anamnesisExpired"), { n: M })
|
|
623
624
|
}
|
|
624
625
|
)
|
|
@@ -628,8 +629,8 @@ function ma({
|
|
|
628
629
|
Ke,
|
|
629
630
|
{
|
|
630
631
|
href: l.renewAnamnesisUrl,
|
|
631
|
-
action:
|
|
632
|
-
icon: /* @__PURE__ */ e(
|
|
632
|
+
action: ue.renewAnamnesis,
|
|
633
|
+
icon: /* @__PURE__ */ e(Wn, { "aria-hidden": "true" }),
|
|
633
634
|
children: a(s("anamnesisRenew"))
|
|
634
635
|
}
|
|
635
636
|
) : null
|
|
@@ -648,7 +649,7 @@ function ma({
|
|
|
648
649
|
}
|
|
649
650
|
);
|
|
650
651
|
}
|
|
651
|
-
function
|
|
652
|
+
function ka({
|
|
652
653
|
details: t,
|
|
653
654
|
locale: n,
|
|
654
655
|
currency: i,
|
|
@@ -658,18 +659,18 @@ function ha({
|
|
|
658
659
|
privacy: u = !1,
|
|
659
660
|
history: p
|
|
660
661
|
}) {
|
|
661
|
-
const { t: r } =
|
|
662
|
+
const { t: r } = J("ui"), { appointment: a, booking: o, patient: f } = t, y = (I) => r(`calendarWorkspace.editor.${I}`), k = new Date(a.startIso), b = new Date(k.getTime() + a.durationMin * 6e4), m = Number.isFinite(k.getTime()), { recurrence: E } = a, L = E && ga(r, n, E, a.startIso), P = o ? [
|
|
662
663
|
o.bookedAtIso && {
|
|
663
664
|
id: "bookedAt",
|
|
664
665
|
label: r(s("bookedAt")),
|
|
665
666
|
value: /* @__PURE__ */ e(
|
|
666
|
-
|
|
667
|
+
Dt,
|
|
667
668
|
{
|
|
668
669
|
value: o.bookedAtIso,
|
|
669
670
|
format: "absolute",
|
|
670
671
|
shape: "bare",
|
|
671
672
|
locale: n,
|
|
672
|
-
absoluteFormat:
|
|
673
|
+
absoluteFormat: Ct
|
|
673
674
|
}
|
|
674
675
|
)
|
|
675
676
|
},
|
|
@@ -681,12 +682,12 @@ function ha({
|
|
|
681
682
|
o.phone && {
|
|
682
683
|
id: "bookingPhone",
|
|
683
684
|
label: r(s("bookingPhone")),
|
|
684
|
-
value:
|
|
685
|
+
value: Gt(o.phone)
|
|
685
686
|
},
|
|
686
687
|
o.email && {
|
|
687
688
|
id: "bookingEmail",
|
|
688
689
|
label: r(s("bookingEmail")),
|
|
689
|
-
value:
|
|
690
|
+
value: Xt(o.email)
|
|
690
691
|
},
|
|
691
692
|
o.note && {
|
|
692
693
|
id: "bookingNote",
|
|
@@ -697,13 +698,13 @@ function ha({
|
|
|
697
698
|
!f && o.paidOnlineAmount !== void 0 && {
|
|
698
699
|
id: "paidOnline",
|
|
699
700
|
label: r(s("paidOnline")),
|
|
700
|
-
value:
|
|
701
|
+
value: Jt(n, o.paidOnlineAmount, i)
|
|
701
702
|
}
|
|
702
|
-
] : [],
|
|
703
|
+
] : [], N = u ? P.filter((I) => I && I.id === "bookedAt") : P, H = N.some(Boolean), T = o || a.bookedOnline || p == null ? void 0 : p.filter(
|
|
703
704
|
(I) => (I.kind === "created" || I.kind === "copied") && I.actor.trim() !== ""
|
|
704
705
|
).sort((I, M) => Date.parse(I.atIso) - Date.parse(M.atIso))[0];
|
|
705
|
-
return /* @__PURE__ */
|
|
706
|
-
|
|
706
|
+
return /* @__PURE__ */ v(
|
|
707
|
+
me,
|
|
707
708
|
{
|
|
708
709
|
"data-card": "appointment",
|
|
709
710
|
title: r(s("sectionAppointment")),
|
|
@@ -711,67 +712,67 @@ function ha({
|
|
|
711
712
|
children: [
|
|
712
713
|
l,
|
|
713
714
|
/* @__PURE__ */ e(
|
|
714
|
-
|
|
715
|
+
Ht,
|
|
715
716
|
{
|
|
716
717
|
rows: [
|
|
717
718
|
m && {
|
|
718
719
|
id: "date",
|
|
719
|
-
label:
|
|
720
|
-
icon: /* @__PURE__ */ e(
|
|
720
|
+
label: y("date"),
|
|
721
|
+
icon: /* @__PURE__ */ e(Bn, {}),
|
|
721
722
|
value: it(n, k)
|
|
722
723
|
},
|
|
723
724
|
m && {
|
|
724
725
|
id: "time",
|
|
725
726
|
label: r(s("time")),
|
|
726
|
-
icon: /* @__PURE__ */ e(
|
|
727
|
-
value: a.allDay ?
|
|
727
|
+
icon: /* @__PURE__ */ e($n, {}),
|
|
728
|
+
value: a.allDay ? y("allDay") : Tn(n, k, b)
|
|
728
729
|
},
|
|
729
730
|
!a.allDay && {
|
|
730
731
|
id: "duration",
|
|
731
|
-
label:
|
|
732
|
-
icon: /* @__PURE__ */ e(
|
|
733
|
-
value: `${a.durationMin} ${
|
|
732
|
+
label: y("duration"),
|
|
733
|
+
icon: /* @__PURE__ */ e(qn, {}),
|
|
734
|
+
value: `${a.durationMin} ${y("durationUnit")}`
|
|
734
735
|
},
|
|
735
736
|
a.isTelehealth && {
|
|
736
737
|
id: "type",
|
|
737
|
-
label:
|
|
738
|
-
icon: /* @__PURE__ */ e(
|
|
739
|
-
value:
|
|
738
|
+
label: y("type"),
|
|
739
|
+
icon: /* @__PURE__ */ e(Yt, {}),
|
|
740
|
+
value: y("typeTelehealth")
|
|
740
741
|
},
|
|
741
742
|
d && {
|
|
742
743
|
id: "operator",
|
|
743
744
|
label: r(s("operator")),
|
|
744
745
|
/* A person, as on the grid: the avatar fills the icon slot. */
|
|
745
|
-
icon: /* @__PURE__ */ e(
|
|
746
|
+
icon: /* @__PURE__ */ e(It, { name: d.name, src: d.avatarSrc, size: "xs" }),
|
|
746
747
|
value: d.name
|
|
747
748
|
},
|
|
748
749
|
c && {
|
|
749
750
|
id: "chair",
|
|
750
751
|
label: r(s("chair")),
|
|
751
|
-
icon: /* @__PURE__ */ e(
|
|
752
|
-
value: /* @__PURE__ */ e(
|
|
752
|
+
icon: /* @__PURE__ */ e(Pt, {}),
|
|
753
|
+
value: /* @__PURE__ */ e(Kt, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(Pt, {}), children: c.name })
|
|
753
754
|
},
|
|
754
755
|
a.branchLabel && {
|
|
755
756
|
id: "branch",
|
|
756
|
-
label:
|
|
757
|
-
icon: /* @__PURE__ */ e(
|
|
757
|
+
label: y("branch"),
|
|
758
|
+
icon: /* @__PURE__ */ e(zn, {}),
|
|
758
759
|
value: a.branchLabel
|
|
759
760
|
},
|
|
760
|
-
|
|
761
|
+
T && {
|
|
761
762
|
id: "createdBy",
|
|
762
763
|
label: r(s("createdBy")),
|
|
763
|
-
icon: /* @__PURE__ */ e(
|
|
764
|
-
value: /* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */ e("span", { children:
|
|
764
|
+
icon: /* @__PURE__ */ e(It, { name: T.actor, size: "xs" }),
|
|
765
|
+
value: /* @__PURE__ */ v("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
|
|
766
|
+
/* @__PURE__ */ e("span", { children: T.actor }),
|
|
766
767
|
" ",
|
|
767
768
|
/* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
|
|
768
|
-
|
|
769
|
+
Dt,
|
|
769
770
|
{
|
|
770
|
-
value:
|
|
771
|
+
value: T.atIso,
|
|
771
772
|
format: "absolute",
|
|
772
773
|
shape: "bare",
|
|
773
774
|
locale: n,
|
|
774
|
-
absoluteFormat:
|
|
775
|
+
absoluteFormat: Ct
|
|
775
776
|
}
|
|
776
777
|
) })
|
|
777
778
|
] })
|
|
@@ -779,20 +780,20 @@ function ha({
|
|
|
779
780
|
L && {
|
|
780
781
|
id: "series",
|
|
781
782
|
label: r(s("seriesLabel")),
|
|
782
|
-
icon: /* @__PURE__ */ e(
|
|
783
|
+
icon: /* @__PURE__ */ e(Kn, {}),
|
|
783
784
|
value: L
|
|
784
785
|
}
|
|
785
786
|
]
|
|
786
787
|
}
|
|
787
788
|
),
|
|
788
|
-
H ? /* @__PURE__ */
|
|
789
|
+
H ? /* @__PURE__ */ v(
|
|
789
790
|
"div",
|
|
790
791
|
{
|
|
791
792
|
"data-block": "booking",
|
|
792
793
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
793
794
|
children: [
|
|
794
795
|
/* @__PURE__ */ e("h4", { className: "ds:m-0 type-label ds:text-[color:var(--muted-foreground)]", children: r(s("sectionBooking")) }),
|
|
795
|
-
/* @__PURE__ */ e(
|
|
796
|
+
/* @__PURE__ */ e(Ht, { rows: N })
|
|
796
797
|
]
|
|
797
798
|
}
|
|
798
799
|
) : null
|
|
@@ -800,23 +801,23 @@ function ha({
|
|
|
800
801
|
}
|
|
801
802
|
);
|
|
802
803
|
}
|
|
803
|
-
function
|
|
804
|
+
function wa({
|
|
804
805
|
details: t,
|
|
805
806
|
locale: n,
|
|
806
807
|
currency: i,
|
|
807
808
|
privacy: d = !1,
|
|
808
809
|
carePlanUrl: c
|
|
809
810
|
}) {
|
|
810
|
-
const { t: l } =
|
|
811
|
-
return !u || !p && u.lines.length === 0 ? null : /* @__PURE__ */
|
|
812
|
-
|
|
811
|
+
const { t: l } = J("ui"), { care: u } = t, p = d || u == null ? void 0 : u.plan;
|
|
812
|
+
return !u || !p && u.lines.length === 0 ? null : /* @__PURE__ */ v(
|
|
813
|
+
me,
|
|
813
814
|
{
|
|
814
815
|
"data-card": "treatments",
|
|
815
816
|
title: l(s("sectionTreatments")),
|
|
816
817
|
headingLevel: 3,
|
|
817
818
|
children: [
|
|
818
|
-
p ? /* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */
|
|
819
|
+
p ? /* @__PURE__ */ v("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: [
|
|
820
|
+
/* @__PURE__ */ v("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
|
|
820
821
|
/* @__PURE__ */ e(
|
|
821
822
|
st,
|
|
822
823
|
{
|
|
@@ -830,14 +831,14 @@ function fa({
|
|
|
830
831
|
Ke,
|
|
831
832
|
{
|
|
832
833
|
href: c,
|
|
833
|
-
action:
|
|
834
|
+
action: ue.carePlan,
|
|
834
835
|
icon: /* @__PURE__ */ e(st, { "aria-hidden": "true" }),
|
|
835
836
|
children: l(s("openCarePlan"))
|
|
836
837
|
}
|
|
837
838
|
) : null
|
|
838
839
|
] }) : null,
|
|
839
840
|
u.lines.length > 0 ? /* @__PURE__ */ e(
|
|
840
|
-
|
|
841
|
+
zt,
|
|
841
842
|
{
|
|
842
843
|
lines: u.lines.map(({ entryId: r, careId: a, ...o }) => ({
|
|
843
844
|
id: r,
|
|
@@ -851,29 +852,29 @@ function fa({
|
|
|
851
852
|
}
|
|
852
853
|
);
|
|
853
854
|
}
|
|
854
|
-
const
|
|
855
|
-
function
|
|
855
|
+
const Mt = 3;
|
|
856
|
+
function Sa({
|
|
856
857
|
preview: t,
|
|
857
858
|
onOpenNotes: n,
|
|
858
859
|
locale: i
|
|
859
860
|
}) {
|
|
860
|
-
const { t: d } =
|
|
861
|
-
|
|
862
|
-
u.current && (l !== "loading" && (u.current = !1),
|
|
861
|
+
const { t: d } = J("ui"), c = tt(), l = t.status ?? "ready", u = R(!1);
|
|
862
|
+
pe(() => {
|
|
863
|
+
u.current && (l !== "loading" && (u.current = !1), Fe(c));
|
|
863
864
|
}, [l, c]);
|
|
864
|
-
const p = t.total ?? (l === "ready" ? t.notes.length : null), r = Math.max(0, (p ?? 0) -
|
|
865
|
-
return /* @__PURE__ */
|
|
866
|
-
|
|
865
|
+
const p = t.total ?? (l === "ready" ? t.notes.length : null), r = Math.max(0, (p ?? 0) - Mt), a = r > 0 ? d(s("notesMore"), { n: r }) : d(s("notesPreviewOpen"));
|
|
866
|
+
return /* @__PURE__ */ v(
|
|
867
|
+
me,
|
|
867
868
|
{
|
|
868
869
|
"data-card": "notes",
|
|
869
870
|
headingId: c,
|
|
870
871
|
headingLevel: 3,
|
|
871
872
|
title: p === null ? d("notesPanel.title") : d(s("notesPreviewTitle"), { count: p }),
|
|
872
|
-
headerAction: n && (p ?? 0) > 0 ? /* @__PURE__ */
|
|
873
|
+
headerAction: n && (p ?? 0) > 0 ? /* @__PURE__ */ v("span", { className: "ds:relative ds:inline-flex", children: [
|
|
873
874
|
/* @__PURE__ */ e(
|
|
874
|
-
|
|
875
|
+
Wt,
|
|
875
876
|
{
|
|
876
|
-
icon: /* @__PURE__ */ e(
|
|
877
|
+
icon: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
|
|
877
878
|
intent: "outline",
|
|
878
879
|
size: "sm",
|
|
879
880
|
"data-action": "open-patient-notes",
|
|
@@ -885,7 +886,7 @@ function ga({
|
|
|
885
886
|
r > 0 ? (
|
|
886
887
|
/* Decorative: the button's name already says the count. */
|
|
887
888
|
/* @__PURE__ */ e(
|
|
888
|
-
|
|
889
|
+
Dn,
|
|
889
890
|
{
|
|
890
891
|
variant: "outline",
|
|
891
892
|
size: "sm",
|
|
@@ -898,9 +899,9 @@ function ga({
|
|
|
898
899
|
) : null
|
|
899
900
|
] }) : void 0,
|
|
900
901
|
children: [
|
|
901
|
-
l === "error" ? /* @__PURE__ */
|
|
902
|
-
/* @__PURE__ */ e(
|
|
903
|
-
t.onRetry ? /* @__PURE__ */ e(
|
|
902
|
+
l === "error" ? /* @__PURE__ */ v(X, { variant: "error", children: [
|
|
903
|
+
/* @__PURE__ */ e(X.Description, { children: d("notesPanel.loadError") }),
|
|
904
|
+
t.onRetry ? /* @__PURE__ */ e(X.Action, { children: /* @__PURE__ */ e(
|
|
904
905
|
C,
|
|
905
906
|
{
|
|
906
907
|
intent: "secondary",
|
|
@@ -913,7 +914,7 @@ function ga({
|
|
|
913
914
|
}
|
|
914
915
|
) }) : null
|
|
915
916
|
] }) : null,
|
|
916
|
-
t.notes.length === 0 && l === "loading" ? /* @__PURE__ */
|
|
917
|
+
t.notes.length === 0 && l === "loading" ? /* @__PURE__ */ v(ie, { children: [
|
|
917
918
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: d("notesPanel.loading") }),
|
|
918
919
|
/* @__PURE__ */ e(at, { notes: [], loading: !0, loadingRows: 2 })
|
|
919
920
|
] }) : l !== "error" || t.notes.length > 0 ? (
|
|
@@ -923,7 +924,7 @@ function ga({
|
|
|
923
924
|
at,
|
|
924
925
|
{
|
|
925
926
|
notes: t.notes,
|
|
926
|
-
maxItems:
|
|
927
|
+
maxItems: Mt,
|
|
927
928
|
locale: i,
|
|
928
929
|
"aria-labelledby": c,
|
|
929
930
|
onNoteActivate: n,
|
|
@@ -935,7 +936,7 @@ function ga({
|
|
|
935
936
|
}
|
|
936
937
|
);
|
|
937
938
|
}
|
|
938
|
-
const
|
|
939
|
+
const Aa = lt("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), xa = lt(
|
|
939
940
|
[
|
|
940
941
|
"ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end",
|
|
941
942
|
"ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]",
|
|
@@ -944,27 +945,27 @@ const va = lt("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), ya = lt(
|
|
|
944
945
|
"ds:[&>[data-component=workflow-status]>[role=alert]]:order-1",
|
|
945
946
|
"ds:[&>[data-component=workflow-status]>[role=alert]]:basis-full"
|
|
946
947
|
].join(" ")
|
|
947
|
-
),
|
|
948
|
+
), Ea = lt(
|
|
948
949
|
"ds:shrink-0 ds:rounded-[var(--radius-md)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
949
|
-
),
|
|
950
|
+
), B = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", Na = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", Ta = [
|
|
950
951
|
"ds:sm:[&_button:has(svg.lucide-ellipsis)]:[min-block-size:var(--accessible-target-floor,0px)]",
|
|
951
952
|
"ds:[&_button:has(svg.lucide-ellipsis)]:[min-inline-size:var(--accessible-target-floor,auto)]"
|
|
952
|
-
].join(" "),
|
|
953
|
+
].join(" "), Qt = ["40%", "33%", "50%", "25%"], Ca = [
|
|
953
954
|
"bill",
|
|
954
955
|
"folder",
|
|
955
956
|
"template",
|
|
956
957
|
"empty",
|
|
957
958
|
"identification",
|
|
958
959
|
"webcam"
|
|
959
|
-
],
|
|
960
|
-
bill: /* @__PURE__ */ e(
|
|
961
|
-
folder: /* @__PURE__ */ e(
|
|
962
|
-
template: /* @__PURE__ */ e(
|
|
963
|
-
empty: /* @__PURE__ */ e(
|
|
964
|
-
identification: /* @__PURE__ */ e(
|
|
965
|
-
webcam: /* @__PURE__ */ e(
|
|
960
|
+
], Ia = {
|
|
961
|
+
bill: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
|
|
962
|
+
folder: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
|
|
963
|
+
template: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
|
|
964
|
+
empty: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
|
|
965
|
+
identification: /* @__PURE__ */ e(ra, { "aria-hidden": "true" }),
|
|
966
|
+
webcam: /* @__PURE__ */ e(Zn, { "aria-hidden": "true" })
|
|
966
967
|
}, S = (t) => `calendarWorkspace.details.${t}`;
|
|
967
|
-
function
|
|
968
|
+
function Ut({
|
|
968
969
|
children: t,
|
|
969
970
|
startIcon: n,
|
|
970
971
|
overflowItems: i,
|
|
@@ -974,18 +975,18 @@ function Ft({
|
|
|
974
975
|
size: u,
|
|
975
976
|
hideLabel: p
|
|
976
977
|
}) {
|
|
977
|
-
return /* @__PURE__ */
|
|
978
|
-
/* @__PURE__ */ e(
|
|
978
|
+
return /* @__PURE__ */ v($e.Root, { children: [
|
|
979
|
+
/* @__PURE__ */ e(hn, { label: t, side: "top", children: /* @__PURE__ */ e($e.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
979
980
|
C,
|
|
980
981
|
{
|
|
981
982
|
intent: c,
|
|
982
983
|
background: l,
|
|
983
984
|
size: u,
|
|
984
985
|
"data-action": d,
|
|
985
|
-
className:
|
|
986
|
+
className: B,
|
|
986
987
|
startIcon: n,
|
|
987
988
|
"aria-haspopup": "menu",
|
|
988
|
-
endIcon: /* @__PURE__ */ e(
|
|
989
|
+
endIcon: /* @__PURE__ */ e(Qn, { "aria-hidden": "true" }),
|
|
989
990
|
children: p ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
|
|
990
991
|
}
|
|
991
992
|
) }) }),
|
|
@@ -1001,18 +1002,18 @@ function Ft({
|
|
|
1001
1002
|
)) })
|
|
1002
1003
|
] });
|
|
1003
1004
|
}
|
|
1004
|
-
function
|
|
1005
|
-
const { t } =
|
|
1006
|
-
return /* @__PURE__ */
|
|
1005
|
+
function Da() {
|
|
1006
|
+
const { t } = J("ui");
|
|
1007
|
+
return /* @__PURE__ */ v(ie, { children: [
|
|
1007
1008
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
|
|
1008
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ v(
|
|
1009
1010
|
"div",
|
|
1010
1011
|
{
|
|
1011
1012
|
"aria-hidden": "true",
|
|
1012
1013
|
className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)] ds:overflow-hidden ds:p-[var(--spacing-md)] ds:[&>*]:shrink-0",
|
|
1013
1014
|
children: [
|
|
1014
1015
|
/* @__PURE__ */ e(
|
|
1015
|
-
|
|
1016
|
+
qt,
|
|
1016
1017
|
{
|
|
1017
1018
|
name: "",
|
|
1018
1019
|
loading: !0,
|
|
@@ -1020,9 +1021,9 @@ function xa() {
|
|
|
1020
1021
|
density: "compact"
|
|
1021
1022
|
}
|
|
1022
1023
|
),
|
|
1023
|
-
/* @__PURE__ */
|
|
1024
|
-
/* @__PURE__ */ e(
|
|
1025
|
-
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children:
|
|
1024
|
+
/* @__PURE__ */ v(me, { title: t(S("sectionAppointment")), headingLevel: 3, children: [
|
|
1025
|
+
/* @__PURE__ */ e(Bt, { loading: !0, maxLines: 2 }),
|
|
1026
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: Qt.map((n, i) => /* @__PURE__ */ v(
|
|
1026
1027
|
"div",
|
|
1027
1028
|
{
|
|
1028
1029
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
@@ -1051,12 +1052,12 @@ function xa() {
|
|
|
1051
1052
|
n
|
|
1052
1053
|
)) })
|
|
1053
1054
|
] }),
|
|
1054
|
-
/* @__PURE__ */ e(
|
|
1055
|
-
/* @__PURE__ */ e(
|
|
1055
|
+
/* @__PURE__ */ e(me, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(at, { notes: [], loading: !0, loadingRows: 2 }) }),
|
|
1056
|
+
/* @__PURE__ */ e(me, { title: t(S("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(zt, { lines: [], loading: !0 }) })
|
|
1056
1057
|
]
|
|
1057
1058
|
}
|
|
1058
1059
|
),
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
+
/* @__PURE__ */ v(
|
|
1060
1061
|
"div",
|
|
1061
1062
|
{
|
|
1062
1063
|
"aria-hidden": "true",
|
|
@@ -1077,7 +1078,7 @@ function xa() {
|
|
|
1077
1078
|
)
|
|
1078
1079
|
] });
|
|
1079
1080
|
}
|
|
1080
|
-
function
|
|
1081
|
+
function Ra({
|
|
1081
1082
|
history: t,
|
|
1082
1083
|
locale: n,
|
|
1083
1084
|
onRetry: i,
|
|
@@ -1085,13 +1086,13 @@ function Na({
|
|
|
1085
1086
|
privacy: c
|
|
1086
1087
|
}) {
|
|
1087
1088
|
var k;
|
|
1088
|
-
const { t: l } =
|
|
1089
|
+
const { t: l } = J("ui"), u = t.status ?? (t.entries ? "ready" : "loading"), p = u === "error" ? void 0 : t.entries, r = u === "loading" || u !== "error" && !p, [a, o] = F(!1);
|
|
1089
1090
|
Se(() => o(!0), []);
|
|
1090
1091
|
let f = "";
|
|
1091
1092
|
r ? f = l("common.loading") : p && (f = p.length === 0 ? l(S("historyEmpty")) : l(S("historyLoaded"), { n: p.length }));
|
|
1092
|
-
let
|
|
1093
|
-
return u === "error" ?
|
|
1094
|
-
/* @__PURE__ */ e(
|
|
1093
|
+
let y;
|
|
1094
|
+
return u === "error" ? y = /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1095
|
+
/* @__PURE__ */ e(X, { variant: "error", children: /* @__PURE__ */ e(X.Description, { children: ((k = t.message) == null ? void 0 : k.trim()) || l("emptyState.error.description") }) }),
|
|
1095
1096
|
i ? /* @__PURE__ */ e(
|
|
1096
1097
|
C,
|
|
1097
1098
|
{
|
|
@@ -1101,12 +1102,12 @@ function Na({
|
|
|
1101
1102
|
children: l("emptyState.error.cta")
|
|
1102
1103
|
}
|
|
1103
1104
|
) : null
|
|
1104
|
-
] }) : r || !p ?
|
|
1105
|
+
] }) : r || !p ? y = /* @__PURE__ */ e(
|
|
1105
1106
|
"div",
|
|
1106
1107
|
{
|
|
1107
1108
|
"aria-hidden": "true",
|
|
1108
1109
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1109
|
-
children:
|
|
1110
|
+
children: Qt.slice(0, 3).map((b, m) => /* @__PURE__ */ v(
|
|
1110
1111
|
"div",
|
|
1111
1112
|
{
|
|
1112
1113
|
className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
@@ -1126,29 +1127,29 @@ function Na({
|
|
|
1126
1127
|
{
|
|
1127
1128
|
variant: "rounded",
|
|
1128
1129
|
stagger: m,
|
|
1129
|
-
width:
|
|
1130
|
+
width: b,
|
|
1130
1131
|
height: "var(--spacing-2xl)"
|
|
1131
1132
|
}
|
|
1132
1133
|
)
|
|
1133
1134
|
]
|
|
1134
1135
|
},
|
|
1135
|
-
|
|
1136
|
+
b
|
|
1136
1137
|
))
|
|
1137
1138
|
}
|
|
1138
|
-
) :
|
|
1139
|
-
|
|
1139
|
+
) : y = /* @__PURE__ */ e(
|
|
1140
|
+
kn,
|
|
1140
1141
|
{
|
|
1141
1142
|
history: p,
|
|
1142
1143
|
locale: n,
|
|
1143
1144
|
noteUnrecordedEdits: d,
|
|
1144
1145
|
privacy: c
|
|
1145
1146
|
}
|
|
1146
|
-
), /* @__PURE__ */
|
|
1147
|
+
), /* @__PURE__ */ v(ie, { children: [
|
|
1147
1148
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: a ? f : "" }),
|
|
1148
|
-
|
|
1149
|
+
y
|
|
1149
1150
|
] });
|
|
1150
1151
|
}
|
|
1151
|
-
function
|
|
1152
|
+
function Pa({
|
|
1152
1153
|
read: t,
|
|
1153
1154
|
refreshing: n,
|
|
1154
1155
|
currency: i,
|
|
@@ -1159,117 +1160,117 @@ function Ta({
|
|
|
1159
1160
|
enter: p,
|
|
1160
1161
|
live: r,
|
|
1161
1162
|
statusControl: a,
|
|
1162
|
-
patientId: o = ((
|
|
1163
|
+
patientId: o = ((He) => (He = t.patient) == null ? void 0 : He.id)(),
|
|
1163
1164
|
operator: f,
|
|
1164
|
-
chair:
|
|
1165
|
+
chair: y,
|
|
1165
1166
|
privacy: k = !1,
|
|
1166
|
-
privacyTitle:
|
|
1167
|
+
privacyTitle: b,
|
|
1167
1168
|
mapsLink: m,
|
|
1168
|
-
notesPreview:
|
|
1169
|
+
notesPreview: E,
|
|
1169
1170
|
onOpenNotes: L,
|
|
1170
1171
|
history: P,
|
|
1171
|
-
onOpenHistory:
|
|
1172
|
+
onOpenHistory: N,
|
|
1172
1173
|
noteUnrecordedEdits: H = !1,
|
|
1173
|
-
readOnly:
|
|
1174
|
+
readOnly: T = !1,
|
|
1174
1175
|
onStatusChange: I,
|
|
1175
|
-
allowedStatuses: M =
|
|
1176
|
+
allowedStatuses: M = Et,
|
|
1176
1177
|
onDescriptionChange: q,
|
|
1177
|
-
descriptionMaxLength:
|
|
1178
|
-
onAssignPatient:
|
|
1178
|
+
descriptionMaxLength: Q,
|
|
1179
|
+
onAssignPatient: se,
|
|
1179
1180
|
onEdit: z,
|
|
1180
1181
|
onMove: K,
|
|
1181
|
-
onCopy:
|
|
1182
|
+
onCopy: U,
|
|
1182
1183
|
onDelete: j,
|
|
1183
|
-
onJoinTelehealth:
|
|
1184
|
-
onWhatsApp:
|
|
1184
|
+
onJoinTelehealth: Z,
|
|
1185
|
+
onWhatsApp: ee,
|
|
1185
1186
|
whatsappUrl: x,
|
|
1186
1187
|
onBuyWhatsApp: Y,
|
|
1187
|
-
createTaskUrl:
|
|
1188
|
+
createTaskUrl: te,
|
|
1188
1189
|
onRequestSignature: xe,
|
|
1189
|
-
onSignOnDevice:
|
|
1190
|
-
onOpenPatient:
|
|
1191
|
-
shortcuts:
|
|
1192
|
-
documents:
|
|
1190
|
+
onSignOnDevice: Ee,
|
|
1191
|
+
onOpenPatient: he,
|
|
1192
|
+
shortcuts: fe,
|
|
1193
|
+
documents: oe
|
|
1193
1194
|
}) {
|
|
1194
|
-
var
|
|
1195
|
-
const { t: h } =
|
|
1196
|
-
|
|
1195
|
+
var bt, kt;
|
|
1196
|
+
const { t: h } = J("ui"), { eventId: D } = t, [je] = F(p), ge = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== D ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Me = (E == null ? void 0 : E.patientId) === void 0 || E.patientId === o, ve = E ? Me ? E : o ? { notes: [], status: "loading", total: null } : void 0 : void 0, re = !!q && !T && !k, [Ne, ne] = F(!1), [Te, V] = F(!1), le = Ne && w !== void 0, Ue = Te && re, Ce = () => {
|
|
1197
|
+
le || !w || (ne(!0), N == null || N(D));
|
|
1197
1198
|
}, We = R({ history: !1, editor: !1 });
|
|
1198
|
-
|
|
1199
|
+
pe(() => {
|
|
1199
1200
|
const g = We.current;
|
|
1200
|
-
We.current = { history:
|
|
1201
|
-
const
|
|
1202
|
-
|
|
1201
|
+
We.current = { history: le, editor: Ue };
|
|
1202
|
+
const G = g.history && w === void 0, wt = g.editor && !re;
|
|
1203
|
+
G && ne(!1), wt && V(!1), (G || wt) && Fe(u);
|
|
1203
1204
|
});
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1206
|
-
O.current && (Ie !== "loading" && (O.current = !1), ot(
|
|
1205
|
+
const ye = R(null), O = R(!1), Ie = (w == null ? void 0 : w.status) ?? (w != null && w.entries ? "ready" : "loading");
|
|
1206
|
+
pe(() => {
|
|
1207
|
+
O.current && (Ie !== "loading" && (O.current = !1), ot(ye.current));
|
|
1207
1208
|
}, [Ie]);
|
|
1208
1209
|
const [$, De] = F(t.appointment.name ?? "");
|
|
1209
1210
|
Se(() => {
|
|
1210
1211
|
De(t.appointment.name ?? "");
|
|
1211
1212
|
}, [t.appointment.name]);
|
|
1212
|
-
const [
|
|
1213
|
+
const [be, de] = F(""), [ke, Re] = F(!1), [A, W] = F(), [Pe, ce] = F(!1), Le = rn(), dt = R(null), ct = Q !== void 0 && be.trim().length > Q;
|
|
1213
1214
|
Se(() => {
|
|
1214
|
-
|
|
1215
|
-
}, [
|
|
1216
|
-
const
|
|
1215
|
+
Te && (de($), W(void 0), ce(!1));
|
|
1216
|
+
}, [Te]);
|
|
1217
|
+
const Zt = async () => {
|
|
1217
1218
|
if (!q) return;
|
|
1218
|
-
const g =
|
|
1219
|
-
Re(!0),
|
|
1219
|
+
const g = be.trim();
|
|
1220
|
+
Re(!0), W(void 0), ce(!1);
|
|
1220
1221
|
try {
|
|
1221
1222
|
await q(g, D), De(g), V(!1);
|
|
1222
|
-
} catch (
|
|
1223
|
-
|
|
1224
|
-
nt(
|
|
1223
|
+
} catch (G) {
|
|
1224
|
+
At(G) ? ce(!0) : W(
|
|
1225
|
+
nt(G, h(S("descriptionSaveFailed")))
|
|
1225
1226
|
);
|
|
1226
1227
|
} finally {
|
|
1227
1228
|
Re(!1);
|
|
1228
1229
|
}
|
|
1229
|
-
}, [
|
|
1230
|
+
}, [ae, Ye] = F(t.appointment.status);
|
|
1230
1231
|
Se(() => {
|
|
1231
1232
|
Ye(t.appointment.status);
|
|
1232
1233
|
}, [t.appointment.status]);
|
|
1233
|
-
const
|
|
1234
|
-
|
|
1235
|
-
const g =
|
|
1236
|
-
|
|
1234
|
+
const ut = R(n);
|
|
1235
|
+
pe(() => {
|
|
1236
|
+
const g = ut.current && !n;
|
|
1237
|
+
ut.current = n, g && (Ye(t.appointment.status), De(t.appointment.name ?? ""));
|
|
1237
1238
|
}, [n]);
|
|
1238
|
-
const
|
|
1239
|
+
const Be = Et.filter(
|
|
1239
1240
|
(g) => M.includes(g)
|
|
1240
|
-
),
|
|
1241
|
-
statuses:
|
|
1241
|
+
), Oe = vn(ae, {
|
|
1242
|
+
statuses: Be,
|
|
1242
1243
|
/* Shown so the control can say it, but not a choice. */
|
|
1243
|
-
disabledStatuses:
|
|
1244
|
-
}),
|
|
1245
|
-
if (!(!I || !
|
|
1244
|
+
disabledStatuses: ae && !Be.includes(ae) ? [ae] : []
|
|
1245
|
+
}), _e = !!I && !T && Be.some((g) => g !== ae), en = async (g) => {
|
|
1246
|
+
if (!(!I || !yn(g))) {
|
|
1246
1247
|
try {
|
|
1247
1248
|
await I(g, D);
|
|
1248
|
-
} catch (
|
|
1249
|
-
throw new Error(nt(
|
|
1249
|
+
} catch (G) {
|
|
1250
|
+
throw At(G) ? new ln(Le, { cause: G }) : new Error(nt(G, h(S("statusSaveFailed"))));
|
|
1250
1251
|
}
|
|
1251
1252
|
Ye(g);
|
|
1252
1253
|
}
|
|
1253
|
-
},
|
|
1254
|
-
(g) =>
|
|
1255
|
-
),
|
|
1256
|
-
|
|
1257
|
-
const g =
|
|
1258
|
-
|
|
1254
|
+
}, pt = k ? void 0 : x, mt = Ca.filter(
|
|
1255
|
+
(g) => oe == null ? void 0 : oe.kinds.includes(g)
|
|
1256
|
+
), tn = (((bt = t.care) == null ? void 0 : bt.lines.length) ?? 0) > 0, Ve = o !== void 0 && o !== "", Ge = h(S("status")), ht = `${Ge}: ${Oe.option.label}`, Xe = R(null), ft = R(_e);
|
|
1257
|
+
pe(() => {
|
|
1258
|
+
const g = ft.current && !_e;
|
|
1259
|
+
ft.current = _e, g && (Xe.current ? ot(Xe.current) : Fe(u));
|
|
1259
1260
|
});
|
|
1260
|
-
const
|
|
1261
|
-
|
|
1261
|
+
const gt = _e ? /* @__PURE__ */ e(
|
|
1262
|
+
fn,
|
|
1262
1263
|
{
|
|
1263
1264
|
ref: a,
|
|
1264
|
-
value:
|
|
1265
|
-
options:
|
|
1265
|
+
value: Oe.value,
|
|
1266
|
+
options: Oe.options,
|
|
1266
1267
|
size: "sm",
|
|
1267
1268
|
workflowLabel: Ge,
|
|
1268
|
-
className: `ds:[&>button]:bg-[color:var(--background)] ${
|
|
1269
|
-
"aria-label":
|
|
1270
|
-
onValueChange:
|
|
1269
|
+
className: `ds:[&>button]:bg-[color:var(--background)] ${Na}`,
|
|
1270
|
+
"aria-label": ht,
|
|
1271
|
+
onValueChange: en
|
|
1271
1272
|
}
|
|
1272
|
-
) :
|
|
1273
|
+
) : ae ? (
|
|
1273
1274
|
/* Named as the control is, "Status: Confirmed": the small display
|
|
1274
1275
|
prints the value alone. */
|
|
1275
1276
|
/* @__PURE__ */ e(
|
|
@@ -1277,96 +1278,96 @@ function Ta({
|
|
|
1277
1278
|
{
|
|
1278
1279
|
ref: Xe,
|
|
1279
1280
|
role: "group",
|
|
1280
|
-
"aria-label":
|
|
1281
|
+
"aria-label": ht,
|
|
1281
1282
|
tabIndex: -1,
|
|
1282
1283
|
"data-status-display": "",
|
|
1283
|
-
className:
|
|
1284
|
+
className: Ea(),
|
|
1284
1285
|
children: /* @__PURE__ */ e(
|
|
1285
|
-
|
|
1286
|
+
gn,
|
|
1286
1287
|
{
|
|
1287
|
-
value:
|
|
1288
|
+
value: Oe.value,
|
|
1288
1289
|
size: "sm",
|
|
1289
1290
|
workflowLabel: Ge,
|
|
1290
|
-
option:
|
|
1291
|
+
option: Oe.option
|
|
1291
1292
|
}
|
|
1292
1293
|
)
|
|
1293
1294
|
}
|
|
1294
1295
|
)
|
|
1295
1296
|
) : null, _ = [];
|
|
1296
|
-
!
|
|
1297
|
+
!T && se && !Ve && _.push([
|
|
1297
1298
|
"assign-patient",
|
|
1298
1299
|
/* @__PURE__ */ e(
|
|
1299
1300
|
C,
|
|
1300
1301
|
{
|
|
1301
1302
|
intent: "primary",
|
|
1302
1303
|
"data-action": "assign-patient",
|
|
1303
|
-
className:
|
|
1304
|
-
startIcon: /* @__PURE__ */ e(
|
|
1305
|
-
onClick: () =>
|
|
1304
|
+
className: B,
|
|
1305
|
+
startIcon: /* @__PURE__ */ e(Yn, { "aria-hidden": "true" }),
|
|
1306
|
+
onClick: () => se(D),
|
|
1306
1307
|
children: h("calendarWorkspace.inc1.bookings.assignPatient")
|
|
1307
1308
|
},
|
|
1308
1309
|
"assign"
|
|
1309
1310
|
)
|
|
1310
|
-
]),
|
|
1311
|
+
]), Z && _.push([
|
|
1311
1312
|
"join-telehealth",
|
|
1312
1313
|
/* @__PURE__ */ e(
|
|
1313
1314
|
C,
|
|
1314
1315
|
{
|
|
1315
1316
|
intent: "primary",
|
|
1316
1317
|
"data-action": "join-telehealth",
|
|
1317
|
-
className:
|
|
1318
|
-
startIcon: /* @__PURE__ */ e(
|
|
1319
|
-
onClick: () =>
|
|
1318
|
+
className: B,
|
|
1319
|
+
startIcon: /* @__PURE__ */ e(Yt, { "aria-hidden": "true" }),
|
|
1320
|
+
onClick: () => Z(D),
|
|
1320
1321
|
children: h(S("joinTelehealth"))
|
|
1321
1322
|
},
|
|
1322
1323
|
"join"
|
|
1323
1324
|
)
|
|
1324
|
-
]), !
|
|
1325
|
+
]), !T && z && _.push([
|
|
1325
1326
|
"edit-appointment",
|
|
1326
1327
|
/* @__PURE__ */ e(
|
|
1327
1328
|
C,
|
|
1328
1329
|
{
|
|
1329
1330
|
"data-action": "edit-appointment",
|
|
1330
|
-
className:
|
|
1331
|
-
startIcon: /* @__PURE__ */ e(
|
|
1331
|
+
className: B,
|
|
1332
|
+
startIcon: /* @__PURE__ */ e(Lt, { "aria-hidden": "true" }),
|
|
1332
1333
|
onClick: () => z(D),
|
|
1333
1334
|
children: h("calendarWorkspace.editor.editTitle")
|
|
1334
1335
|
},
|
|
1335
1336
|
"edit"
|
|
1336
1337
|
)
|
|
1337
|
-
]), !
|
|
1338
|
+
]), !T && K && _.push([
|
|
1338
1339
|
"move-appointment",
|
|
1339
1340
|
/* @__PURE__ */ e(
|
|
1340
1341
|
C,
|
|
1341
1342
|
{
|
|
1342
1343
|
"data-action": "move-appointment",
|
|
1343
|
-
className:
|
|
1344
|
-
startIcon: /* @__PURE__ */ e(
|
|
1344
|
+
className: B,
|
|
1345
|
+
startIcon: /* @__PURE__ */ e(bn, { "aria-hidden": "true" }),
|
|
1345
1346
|
onClick: () => K(D),
|
|
1346
1347
|
children: h(S("move"))
|
|
1347
1348
|
},
|
|
1348
1349
|
"move"
|
|
1349
1350
|
)
|
|
1350
|
-
]), !
|
|
1351
|
+
]), !T && U && _.push([
|
|
1351
1352
|
"copy-appointment",
|
|
1352
|
-
|
|
1353
|
-
|
|
1353
|
+
tn ? /* @__PURE__ */ e(
|
|
1354
|
+
Ut,
|
|
1354
1355
|
{
|
|
1355
1356
|
"data-action": "copy-appointment",
|
|
1356
1357
|
"data-overflow-tip": !1,
|
|
1357
|
-
startIcon: /* @__PURE__ */ e(
|
|
1358
|
+
startIcon: /* @__PURE__ */ e(Nt, { "aria-hidden": "true" }),
|
|
1358
1359
|
overflowItems: [
|
|
1359
1360
|
{
|
|
1360
1361
|
label: h("calendarWorkspace.editor.duplicateAppointmentOnly"),
|
|
1361
|
-
icon: /* @__PURE__ */ e(
|
|
1362
|
+
icon: /* @__PURE__ */ e(Vn, { "aria-hidden": "true" }),
|
|
1362
1363
|
action: "copy-appointment-only",
|
|
1363
|
-
onSelect: () =>
|
|
1364
|
+
onSelect: () => U(!1, D)
|
|
1364
1365
|
},
|
|
1365
1366
|
{
|
|
1366
1367
|
label: h("calendarWorkspace.editor.duplicateWithTreatments"),
|
|
1367
1368
|
icon: /* @__PURE__ */ e(st, { "aria-hidden": "true" }),
|
|
1368
1369
|
action: "copy-appointment-with-treatments",
|
|
1369
|
-
onSelect: () =>
|
|
1370
|
+
onSelect: () => U(!0, D)
|
|
1370
1371
|
}
|
|
1371
1372
|
],
|
|
1372
1373
|
children: h(S("copy"))
|
|
@@ -1376,57 +1377,57 @@ function Ta({
|
|
|
1376
1377
|
C,
|
|
1377
1378
|
{
|
|
1378
1379
|
"data-action": "copy-appointment",
|
|
1379
|
-
className:
|
|
1380
|
-
startIcon: /* @__PURE__ */ e(
|
|
1381
|
-
onClick: () =>
|
|
1380
|
+
className: B,
|
|
1381
|
+
startIcon: /* @__PURE__ */ e(Nt, { "aria-hidden": "true" }),
|
|
1382
|
+
onClick: () => U(!1, D),
|
|
1382
1383
|
children: h(S("copy"))
|
|
1383
1384
|
},
|
|
1384
1385
|
"copy"
|
|
1385
1386
|
)
|
|
1386
|
-
]),
|
|
1387
|
+
]), oe && mt.length > 0 && _.push([
|
|
1387
1388
|
"open-create-document",
|
|
1388
1389
|
/* @__PURE__ */ e(
|
|
1389
|
-
|
|
1390
|
+
Ut,
|
|
1390
1391
|
{
|
|
1391
1392
|
"data-action": "open-create-document",
|
|
1392
1393
|
"data-overflow-tip": !1,
|
|
1393
|
-
startIcon: /* @__PURE__ */ e(
|
|
1394
|
-
overflowItems:
|
|
1394
|
+
startIcon: /* @__PURE__ */ e(Gn, { "aria-hidden": "true" }),
|
|
1395
|
+
overflowItems: mt.map((g) => ({
|
|
1395
1396
|
label: h(S(`documents.${g}`)),
|
|
1396
|
-
icon:
|
|
1397
|
+
icon: Ia[g],
|
|
1397
1398
|
action: `create-document-${g}`,
|
|
1398
|
-
onSelect: () =>
|
|
1399
|
+
onSelect: () => oe.onCreate(g, D)
|
|
1399
1400
|
})),
|
|
1400
1401
|
children: h(S("documents.label"))
|
|
1401
1402
|
},
|
|
1402
1403
|
"documents"
|
|
1403
1404
|
)
|
|
1404
|
-
]),
|
|
1405
|
+
]), ee ? _.push([
|
|
1405
1406
|
"open-whatsapp",
|
|
1406
1407
|
/* @__PURE__ */ e(
|
|
1407
1408
|
C,
|
|
1408
1409
|
{
|
|
1409
1410
|
"data-action": "open-whatsapp",
|
|
1410
|
-
className:
|
|
1411
|
+
className: B,
|
|
1411
1412
|
startIcon: /* @__PURE__ */ e(et, { "aria-hidden": "true" }),
|
|
1412
|
-
onClick: () =>
|
|
1413
|
+
onClick: () => ee(D),
|
|
1413
1414
|
children: h(S("remindWhatsApp"))
|
|
1414
1415
|
},
|
|
1415
1416
|
"whatsapp"
|
|
1416
1417
|
)
|
|
1417
|
-
]) : ze(
|
|
1418
|
+
]) : ze(pt) ? _.push([
|
|
1418
1419
|
"open-whatsapp",
|
|
1419
1420
|
/* @__PURE__ */ e(
|
|
1420
1421
|
C,
|
|
1421
1422
|
{
|
|
1422
1423
|
asChild: !0,
|
|
1423
1424
|
"data-action": "open-whatsapp",
|
|
1424
|
-
className:
|
|
1425
|
+
className: B,
|
|
1425
1426
|
startIcon: /* @__PURE__ */ e(et, { "aria-hidden": "true" }),
|
|
1426
1427
|
children: /* @__PURE__ */ e(
|
|
1427
1428
|
"a",
|
|
1428
1429
|
{
|
|
1429
|
-
href: ze(
|
|
1430
|
+
href: ze(pt),
|
|
1430
1431
|
target: "_blank",
|
|
1431
1432
|
rel: "noopener noreferrer",
|
|
1432
1433
|
children: h(S("remindWhatsApp"))
|
|
@@ -1441,7 +1442,7 @@ function Ta({
|
|
|
1441
1442
|
C,
|
|
1442
1443
|
{
|
|
1443
1444
|
"data-action": "buy-whatsapp",
|
|
1444
|
-
className:
|
|
1445
|
+
className: B,
|
|
1445
1446
|
startIcon: /* @__PURE__ */ e(et, { "aria-hidden": "true" }),
|
|
1446
1447
|
onClick: () => Y(D),
|
|
1447
1448
|
children: h(S("buyWhatsApp"))
|
|
@@ -1449,29 +1450,29 @@ function Ta({
|
|
|
1449
1450
|
"buy-whatsapp"
|
|
1450
1451
|
)
|
|
1451
1452
|
]);
|
|
1452
|
-
const
|
|
1453
|
-
|
|
1453
|
+
const vt = ze(te);
|
|
1454
|
+
vt && _.push([
|
|
1454
1455
|
"create-task",
|
|
1455
1456
|
/* @__PURE__ */ e(
|
|
1456
1457
|
C,
|
|
1457
1458
|
{
|
|
1458
1459
|
asChild: !0,
|
|
1459
1460
|
"data-action": "create-task",
|
|
1460
|
-
className:
|
|
1461
|
-
startIcon: /* @__PURE__ */ e(
|
|
1462
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
1461
|
+
className: B,
|
|
1462
|
+
startIcon: /* @__PURE__ */ e(Xn, { "aria-hidden": "true" }),
|
|
1463
|
+
children: /* @__PURE__ */ e("a", { href: vt, children: h(S("createTask")) })
|
|
1463
1464
|
},
|
|
1464
1465
|
"task"
|
|
1465
1466
|
)
|
|
1466
|
-
]), !
|
|
1467
|
+
]), !T && j && _.push([
|
|
1467
1468
|
"delete-appointment",
|
|
1468
1469
|
/* @__PURE__ */ e(
|
|
1469
1470
|
C,
|
|
1470
1471
|
{
|
|
1471
1472
|
intent: "destructiveOutline",
|
|
1472
1473
|
"data-action": "delete-appointment",
|
|
1473
|
-
className:
|
|
1474
|
-
startIcon: /* @__PURE__ */ e(
|
|
1474
|
+
className: B,
|
|
1475
|
+
startIcon: /* @__PURE__ */ e(Jn, { "aria-hidden": "true" }),
|
|
1475
1476
|
onClick: () => j(D),
|
|
1476
1477
|
children: h("calendarWorkspace.editor.delete")
|
|
1477
1478
|
},
|
|
@@ -1480,34 +1481,34 @@ function Ta({
|
|
|
1480
1481
|
]);
|
|
1481
1482
|
const Je = _.map(([, g]) => g);
|
|
1482
1483
|
r.current = {
|
|
1483
|
-
status:
|
|
1484
|
-
allowed:
|
|
1484
|
+
status: ae ?? null,
|
|
1485
|
+
allowed: _e ? Be : [],
|
|
1485
1486
|
offered: _.map(([g]) => g),
|
|
1486
1487
|
historyAvailable: w !== void 0,
|
|
1487
|
-
historyOpen:
|
|
1488
|
+
historyOpen: le,
|
|
1488
1489
|
openHistory: Ce,
|
|
1489
|
-
closeHistory: () =>
|
|
1490
|
+
closeHistory: () => ne(!1)
|
|
1490
1491
|
};
|
|
1491
|
-
const
|
|
1492
|
+
const yt = h(S("historyBack"));
|
|
1492
1493
|
return /* @__PURE__ */ e(
|
|
1493
1494
|
"div",
|
|
1494
1495
|
{
|
|
1495
|
-
className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${je ?
|
|
1496
|
-
children: /* @__PURE__ */
|
|
1496
|
+
className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${je ? un : ""}`,
|
|
1497
|
+
children: /* @__PURE__ */ v(Ze.Host, { children: [
|
|
1497
1498
|
/* @__PURE__ */ e(
|
|
1498
|
-
|
|
1499
|
+
$t,
|
|
1499
1500
|
{
|
|
1500
1501
|
title: l,
|
|
1501
1502
|
headingId: u,
|
|
1502
|
-
icon: /* @__PURE__ */ e(
|
|
1503
|
+
icon: /* @__PURE__ */ e(Vt, { "aria-hidden": "true" }),
|
|
1503
1504
|
sticky: !0,
|
|
1504
1505
|
divider: !0,
|
|
1505
1506
|
actions: w ? /* @__PURE__ */ e(
|
|
1506
|
-
|
|
1507
|
+
Wt,
|
|
1507
1508
|
{
|
|
1508
1509
|
size: "sm",
|
|
1509
1510
|
intent: "ghost",
|
|
1510
|
-
icon: /* @__PURE__ */ e(
|
|
1511
|
+
icon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
|
|
1511
1512
|
"aria-label": h(S("historyAction")),
|
|
1512
1513
|
tooltip: h(S("historyAction")),
|
|
1513
1514
|
"data-action": "open-history",
|
|
@@ -1522,45 +1523,45 @@ function Ta({
|
|
|
1522
1523
|
tabIndex: 0,
|
|
1523
1524
|
"aria-busy": n || void 0,
|
|
1524
1525
|
className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
|
|
1525
|
-
children: /* @__PURE__ */
|
|
1526
|
-
k ? /* @__PURE__ */ e(
|
|
1527
|
-
|
|
1526
|
+
children: /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1527
|
+
k ? /* @__PURE__ */ e(dn, { mask: b }) : t.patient ? /* @__PURE__ */ e(
|
|
1528
|
+
ba,
|
|
1528
1529
|
{
|
|
1529
|
-
...
|
|
1530
|
+
...ge,
|
|
1530
1531
|
now: d,
|
|
1531
1532
|
mapsLink: m,
|
|
1532
|
-
shortcuts:
|
|
1533
|
+
shortcuts: fe,
|
|
1533
1534
|
onRequestSignature: xe,
|
|
1534
|
-
onSignOnDevice:
|
|
1535
|
-
onOpenPatient:
|
|
1535
|
+
onSignOnDevice: Ee,
|
|
1536
|
+
onOpenPatient: he
|
|
1536
1537
|
}
|
|
1537
1538
|
) : (
|
|
1538
1539
|
/* No patient card to carry the identity: a patient-less, an
|
|
1539
1540
|
unassigned or an unresolved booking keeps the strip. */
|
|
1540
1541
|
/* @__PURE__ */ e(
|
|
1541
|
-
|
|
1542
|
+
Cn,
|
|
1542
1543
|
{
|
|
1543
1544
|
name: t.appointment.title.trim() ? t.appointment.title : h(S("patientNotLoaded")),
|
|
1544
1545
|
unresolved: Ve,
|
|
1545
|
-
status:
|
|
1546
|
+
status: ae,
|
|
1546
1547
|
flags: {
|
|
1547
1548
|
isTelehealth: t.appointment.isTelehealth,
|
|
1548
1549
|
isBookedOnline: t.appointment.bookedOnline,
|
|
1549
1550
|
isRecurring: t.appointment.recurrence !== void 0,
|
|
1550
1551
|
hasUnassignedPatient: t.appointment.bookedOnline && !Ve,
|
|
1551
1552
|
hasHighlightedAnamnesis: !1,
|
|
1552
|
-
hasBillableAmount: (((
|
|
1553
|
+
hasBillableAmount: (((kt = t.money) == null ? void 0 : kt.billableAmount) ?? 0) > 0
|
|
1553
1554
|
},
|
|
1554
1555
|
locale: c
|
|
1555
1556
|
}
|
|
1556
1557
|
)
|
|
1557
1558
|
),
|
|
1558
1559
|
/* @__PURE__ */ e(
|
|
1559
|
-
|
|
1560
|
+
ka,
|
|
1560
1561
|
{
|
|
1561
|
-
...
|
|
1562
|
+
...ge,
|
|
1562
1563
|
operator: f,
|
|
1563
|
-
chair:
|
|
1564
|
+
chair: y,
|
|
1564
1565
|
privacy: k,
|
|
1565
1566
|
history: (w == null ? void 0 : w.status) === "error" || w == null ? void 0 : w.entries,
|
|
1566
1567
|
description: (
|
|
@@ -1568,63 +1569,63 @@ function Ta({
|
|
|
1568
1569
|
so the sub-view can hand focus back to it. An empty
|
|
1569
1570
|
read-only description prints nothing. Privacy hides the
|
|
1570
1571
|
text and the pencil. */
|
|
1571
|
-
k ? $ ? /* @__PURE__ */ e(
|
|
1572
|
-
|
|
1572
|
+
k ? $ ? /* @__PURE__ */ e(xt, { block: "description" }) : void 0 : $ || q && !T ? /* @__PURE__ */ e(
|
|
1573
|
+
Bt,
|
|
1573
1574
|
{
|
|
1574
1575
|
"data-block": "description",
|
|
1575
1576
|
role: "group",
|
|
1576
1577
|
"aria-label": h("calendarWorkspace.editor.description"),
|
|
1577
1578
|
value: $,
|
|
1578
1579
|
editLabel: h(S("editDescription")),
|
|
1579
|
-
onEdit: q && !
|
|
1580
|
+
onEdit: q && !T ? () => V(!0) : void 0
|
|
1580
1581
|
}
|
|
1581
1582
|
) : void 0
|
|
1582
1583
|
)
|
|
1583
1584
|
}
|
|
1584
1585
|
),
|
|
1585
|
-
|
|
1586
|
-
|
|
1586
|
+
ve && k ? /* @__PURE__ */ e(
|
|
1587
|
+
me,
|
|
1587
1588
|
{
|
|
1588
1589
|
"data-card": "notes",
|
|
1589
1590
|
title: h("notesPanel.title"),
|
|
1590
1591
|
headingLevel: 3,
|
|
1591
|
-
children: /* @__PURE__ */ e(
|
|
1592
|
+
children: /* @__PURE__ */ e(xt, {})
|
|
1592
1593
|
}
|
|
1593
|
-
) :
|
|
1594
|
-
|
|
1594
|
+
) : ve ? /* @__PURE__ */ e(
|
|
1595
|
+
Sa,
|
|
1595
1596
|
{
|
|
1596
|
-
preview:
|
|
1597
|
-
onOpenNotes:
|
|
1597
|
+
preview: ve,
|
|
1598
|
+
onOpenNotes: Me ? L : void 0,
|
|
1598
1599
|
locale: c
|
|
1599
1600
|
}
|
|
1600
1601
|
) : null,
|
|
1601
1602
|
/* @__PURE__ */ e(
|
|
1602
|
-
|
|
1603
|
+
wa,
|
|
1603
1604
|
{
|
|
1604
|
-
...
|
|
1605
|
+
...ge,
|
|
1605
1606
|
privacy: k,
|
|
1606
|
-
carePlanUrl:
|
|
1607
|
+
carePlanUrl: fe == null ? void 0 : fe.carePlanUrl
|
|
1607
1608
|
}
|
|
1608
1609
|
)
|
|
1609
1610
|
] })
|
|
1610
1611
|
}
|
|
1611
1612
|
),
|
|
1612
|
-
|
|
1613
|
+
gt || Je.length > 0 ? (
|
|
1613
1614
|
/* The body scrolls; the status and the actions stay put. The
|
|
1614
1615
|
status keeps its own segment and never folds. The actions fold
|
|
1615
1616
|
to icons, then into More, never onto a second line. Only a
|
|
1616
1617
|
refused status change adds a line, for its message. */
|
|
1617
|
-
/* @__PURE__ */
|
|
1618
|
-
|
|
1618
|
+
/* @__PURE__ */ v("div", { className: xa(), children: [
|
|
1619
|
+
gt,
|
|
1619
1620
|
Je.length > 0 ? /* @__PURE__ */ e(
|
|
1620
|
-
|
|
1621
|
+
cn,
|
|
1621
1622
|
{
|
|
1622
1623
|
label: h(S("actionsLabel")),
|
|
1623
1624
|
overflow: "menu",
|
|
1624
1625
|
collapseToIcons: !0,
|
|
1625
1626
|
background: "surface",
|
|
1626
1627
|
size: "sm",
|
|
1627
|
-
className: `ds:min-w-0 ds:flex-1 ds:text-end ${
|
|
1628
|
+
className: `ds:min-w-0 ds:flex-1 ds:text-end ${Ta}`,
|
|
1628
1629
|
children: Je
|
|
1629
1630
|
}
|
|
1630
1631
|
) : null
|
|
@@ -1633,16 +1634,16 @@ function Ta({
|
|
|
1633
1634
|
w ? /* @__PURE__ */ e(
|
|
1634
1635
|
Ze,
|
|
1635
1636
|
{
|
|
1636
|
-
ref:
|
|
1637
|
-
open:
|
|
1638
|
-
icon: /* @__PURE__ */ e(
|
|
1637
|
+
ref: ye,
|
|
1638
|
+
open: le,
|
|
1639
|
+
icon: /* @__PURE__ */ e(Ot, { "aria-hidden": "true" }),
|
|
1639
1640
|
title: h(S("historyTitle")),
|
|
1640
|
-
backLabel:
|
|
1641
|
+
backLabel: yt,
|
|
1641
1642
|
headingLevel: 3,
|
|
1642
|
-
onBack: () =>
|
|
1643
|
+
onBack: () => ne(!1),
|
|
1643
1644
|
"data-details-subview": "history",
|
|
1644
1645
|
children: /* @__PURE__ */ e("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
|
|
1645
|
-
|
|
1646
|
+
Ra,
|
|
1646
1647
|
{
|
|
1647
1648
|
history: w,
|
|
1648
1649
|
locale: c,
|
|
@@ -1656,25 +1657,25 @@ function Ta({
|
|
|
1656
1657
|
) })
|
|
1657
1658
|
}
|
|
1658
1659
|
) : null,
|
|
1659
|
-
|
|
1660
|
+
re ? /* @__PURE__ */ e(
|
|
1660
1661
|
Ze,
|
|
1661
1662
|
{
|
|
1662
|
-
open:
|
|
1663
|
-
icon: /* @__PURE__ */ e(
|
|
1663
|
+
open: Ue,
|
|
1664
|
+
icon: /* @__PURE__ */ e(Lt, { "aria-hidden": "true" }),
|
|
1664
1665
|
title: h(S("editDescription")),
|
|
1665
|
-
backLabel:
|
|
1666
|
+
backLabel: yt,
|
|
1666
1667
|
headingLevel: 3,
|
|
1667
|
-
initialFocusRef:
|
|
1668
|
+
initialFocusRef: dt,
|
|
1668
1669
|
onBack: () => {
|
|
1669
|
-
|
|
1670
|
+
ke || V(!1);
|
|
1670
1671
|
},
|
|
1671
1672
|
"data-details-subview": "description",
|
|
1672
|
-
footer: /* @__PURE__ */
|
|
1673
|
+
footer: /* @__PURE__ */ v(ie, { children: [
|
|
1673
1674
|
/* @__PURE__ */ e(
|
|
1674
1675
|
C,
|
|
1675
1676
|
{
|
|
1676
1677
|
intent: "secondary",
|
|
1677
|
-
disabled:
|
|
1678
|
+
disabled: ke,
|
|
1678
1679
|
onClick: () => V(!1),
|
|
1679
1680
|
children: h(S("noteCancel"))
|
|
1680
1681
|
}
|
|
@@ -1684,39 +1685,52 @@ function Ta({
|
|
|
1684
1685
|
{
|
|
1685
1686
|
intent: "primary",
|
|
1686
1687
|
"data-action": "save-description",
|
|
1687
|
-
loading:
|
|
1688
|
-
disabled:
|
|
1689
|
-
onClick: () => void
|
|
1688
|
+
loading: ke,
|
|
1689
|
+
disabled: ct,
|
|
1690
|
+
onClick: () => void Zt(),
|
|
1690
1691
|
children: h(S("descriptionSave"))
|
|
1691
1692
|
}
|
|
1692
1693
|
)
|
|
1693
1694
|
] }),
|
|
1694
|
-
children: /* @__PURE__ */
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1695
|
+
children: /* @__PURE__ */ v("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1696
|
+
/* @__PURE__ */ e(
|
|
1697
|
+
pn,
|
|
1698
|
+
{
|
|
1699
|
+
label: h("calendarWorkspace.editor.description"),
|
|
1700
|
+
error: ct ? h("calendarWorkspace.editor.descriptionTooLong", {
|
|
1701
|
+
max: Q
|
|
1702
|
+
}) : A,
|
|
1703
|
+
children: /* @__PURE__ */ e(
|
|
1704
|
+
mn,
|
|
1705
|
+
{
|
|
1706
|
+
ref: dt,
|
|
1707
|
+
value: be,
|
|
1708
|
+
minRows: 6,
|
|
1709
|
+
autoResize: !0,
|
|
1710
|
+
onChange: (g) => {
|
|
1711
|
+
de(g.target.value), ce(!1);
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
)
|
|
1715
|
+
}
|
|
1716
|
+
),
|
|
1717
|
+
Pe ? /* @__PURE__ */ e(
|
|
1718
|
+
X,
|
|
1719
|
+
{
|
|
1720
|
+
variant: "warning",
|
|
1721
|
+
announce: "assertive",
|
|
1722
|
+
"data-outcome": "unknown",
|
|
1723
|
+
children: /* @__PURE__ */ e(X.Description, { children: Le })
|
|
1724
|
+
}
|
|
1725
|
+
) : null
|
|
1726
|
+
] })
|
|
1713
1727
|
}
|
|
1714
1728
|
) : null
|
|
1715
1729
|
] })
|
|
1716
1730
|
}
|
|
1717
1731
|
);
|
|
1718
1732
|
}
|
|
1719
|
-
const
|
|
1733
|
+
const La = nn(function({
|
|
1720
1734
|
state: n,
|
|
1721
1735
|
onRetry: i,
|
|
1722
1736
|
patientId: d,
|
|
@@ -1728,54 +1742,54 @@ const Ea = Qt(function({
|
|
|
1728
1742
|
title: a,
|
|
1729
1743
|
privacy: o = !1,
|
|
1730
1744
|
privacyTitle: f,
|
|
1731
|
-
mapsLink:
|
|
1745
|
+
mapsLink: y,
|
|
1732
1746
|
notesPreview: k,
|
|
1733
|
-
onOpenNotes:
|
|
1747
|
+
onOpenNotes: b,
|
|
1734
1748
|
history: m,
|
|
1735
|
-
onOpenHistory:
|
|
1749
|
+
onOpenHistory: E,
|
|
1736
1750
|
noteUnrecordedEdits: L,
|
|
1737
1751
|
readOnly: P = !1,
|
|
1738
|
-
onStatusChange:
|
|
1752
|
+
onStatusChange: N,
|
|
1739
1753
|
allowedStatuses: H,
|
|
1740
|
-
onDescriptionChange:
|
|
1754
|
+
onDescriptionChange: T,
|
|
1741
1755
|
descriptionMaxLength: I,
|
|
1742
1756
|
onAssignPatient: M,
|
|
1743
1757
|
onEdit: q,
|
|
1744
|
-
onMove:
|
|
1745
|
-
onCopy:
|
|
1758
|
+
onMove: Q,
|
|
1759
|
+
onCopy: se,
|
|
1746
1760
|
onDelete: z,
|
|
1747
1761
|
onJoinTelehealth: K,
|
|
1748
|
-
onWhatsApp:
|
|
1762
|
+
onWhatsApp: U,
|
|
1749
1763
|
whatsappUrl: j,
|
|
1750
|
-
onBuyWhatsApp:
|
|
1751
|
-
createTaskUrl:
|
|
1764
|
+
onBuyWhatsApp: Z,
|
|
1765
|
+
createTaskUrl: ee,
|
|
1752
1766
|
onRequestSignature: x,
|
|
1753
1767
|
onSignOnDevice: Y,
|
|
1754
|
-
onOpenPatient:
|
|
1768
|
+
onOpenPatient: te,
|
|
1755
1769
|
shortcuts: xe,
|
|
1756
|
-
documents:
|
|
1757
|
-
id:
|
|
1758
|
-
className:
|
|
1759
|
-
...
|
|
1760
|
-
},
|
|
1761
|
-
var
|
|
1762
|
-
const { t: h, i18n: D } =
|
|
1770
|
+
documents: Ee,
|
|
1771
|
+
id: he,
|
|
1772
|
+
className: fe,
|
|
1773
|
+
...oe
|
|
1774
|
+
}, He) {
|
|
1775
|
+
var ke, Re;
|
|
1776
|
+
const { t: h, i18n: D } = J("ui"), je = tt(), ge = he ?? je, w = tt(), Me = r ?? D.language, ve = !o && (a != null && a.trim()) ? a : h(S("region")), re = n.status === "ready" ? n.read : void 0, Ne = n.status === "ready" ? n.read.eventId : n.eventId, ne = R(
|
|
1763
1777
|
void 0
|
|
1764
|
-
),
|
|
1778
|
+
), Te = ne.current !== void 0 && ne.current !== "ready";
|
|
1765
1779
|
Se(() => {
|
|
1766
|
-
|
|
1780
|
+
ne.current = n.status;
|
|
1767
1781
|
}, [n.status]);
|
|
1768
|
-
const V = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0),
|
|
1769
|
-
typeof document < "u" && (Ce.current = ((
|
|
1770
|
-
const We =
|
|
1771
|
-
|
|
1772
|
-
|
|
1782
|
+
const V = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), Ue = St(() => on(He, le), [He]), Ce = R(!1);
|
|
1783
|
+
typeof document < "u" && (Ce.current = ((ke = le.current) == null ? void 0 : ke.contains(document.activeElement)) ?? !1);
|
|
1784
|
+
const We = re ? `ready:${re.eventId}` : n.status, ye = R(!1);
|
|
1785
|
+
pe(() => {
|
|
1786
|
+
ye.current ? (n.status !== "loading" && (ye.current = !1), Fe(w)) : Ce.current && Fe(w);
|
|
1773
1787
|
}, [We, w]);
|
|
1774
1788
|
const O = R(null);
|
|
1775
|
-
|
|
1776
|
-
const Ie = R(null), $ = R({ state: n, eventId:
|
|
1777
|
-
$.current = { state: n, eventId:
|
|
1778
|
-
const De =
|
|
1789
|
+
re || (O.current = null);
|
|
1790
|
+
const Ie = R(null), $ = R({ state: n, eventId: Ne, privacy: o, retryOffered: V, onRetry: i });
|
|
1791
|
+
$.current = { state: n, eventId: Ne, privacy: o, retryOffered: V, onRetry: i };
|
|
1792
|
+
const De = St(
|
|
1779
1793
|
() => ({
|
|
1780
1794
|
getEventId: () => $.current.eventId ?? null,
|
|
1781
1795
|
getLoadStatus: () => $.current.state.status,
|
|
@@ -1807,55 +1821,55 @@ const Ea = Qt(function({
|
|
|
1807
1821
|
(A = O.current) == null || A.closeHistory();
|
|
1808
1822
|
},
|
|
1809
1823
|
setAppointmentStatus: (A) => {
|
|
1810
|
-
const
|
|
1811
|
-
if (!
|
|
1824
|
+
const W = O.current, Pe = Ie.current;
|
|
1825
|
+
if (!W || !Pe || W.allowed.length === 0)
|
|
1812
1826
|
return Qe(
|
|
1813
1827
|
new Error("AppointmentDetailsPanel: the status is read-only.")
|
|
1814
1828
|
);
|
|
1815
|
-
if (A ===
|
|
1816
|
-
if (!
|
|
1829
|
+
if (A === W.status) return Promise.resolve();
|
|
1830
|
+
if (!W.allowed.includes(A))
|
|
1817
1831
|
return Qe(
|
|
1818
1832
|
new Error(`AppointmentDetailsPanel: "${A}" is not allowed.`)
|
|
1819
1833
|
);
|
|
1820
|
-
const
|
|
1834
|
+
const ce = () => Qe(
|
|
1821
1835
|
new Error("AppointmentDetailsPanel: a status save is in flight.")
|
|
1822
1836
|
);
|
|
1823
|
-
if (
|
|
1824
|
-
const
|
|
1825
|
-
return
|
|
1837
|
+
if (Pe.getIsSaving()) return ce();
|
|
1838
|
+
const Le = Pe.setValue(A);
|
|
1839
|
+
return Le === void 0 ? ce() : Le;
|
|
1826
1840
|
},
|
|
1827
1841
|
retry: () => {
|
|
1828
|
-
const { retryOffered: A, onRetry:
|
|
1829
|
-
if (!A || !
|
|
1842
|
+
const { retryOffered: A, onRetry: W } = $.current;
|
|
1843
|
+
if (!A || !W)
|
|
1830
1844
|
throw new Error("AppointmentDetailsPanel: Retry is not offered.");
|
|
1831
|
-
|
|
1845
|
+
W();
|
|
1832
1846
|
}
|
|
1833
1847
|
}),
|
|
1834
1848
|
[]
|
|
1835
1849
|
);
|
|
1836
|
-
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1850
|
+
sn(da, De, ge);
|
|
1851
|
+
const be = /* @__PURE__ */ e(
|
|
1852
|
+
$t,
|
|
1839
1853
|
{
|
|
1840
|
-
title:
|
|
1854
|
+
title: ve,
|
|
1841
1855
|
headingId: w,
|
|
1842
|
-
icon: /* @__PURE__ */ e(
|
|
1856
|
+
icon: /* @__PURE__ */ e(Vt, { "aria-hidden": "true" }),
|
|
1843
1857
|
sticky: !0,
|
|
1844
1858
|
divider: !0
|
|
1845
1859
|
}
|
|
1846
1860
|
);
|
|
1847
|
-
let
|
|
1848
|
-
return n.status === "ready" ?
|
|
1849
|
-
|
|
1861
|
+
let de;
|
|
1862
|
+
return n.status === "ready" ? de = /* @__PURE__ */ e(
|
|
1863
|
+
Pa,
|
|
1850
1864
|
{
|
|
1851
1865
|
read: n.read,
|
|
1852
1866
|
refreshing: n.refreshing === !0,
|
|
1853
1867
|
currency: u,
|
|
1854
1868
|
now: p ?? /* @__PURE__ */ new Date(),
|
|
1855
|
-
locale:
|
|
1856
|
-
shownTitle:
|
|
1869
|
+
locale: Me,
|
|
1870
|
+
shownTitle: ve,
|
|
1857
1871
|
headingId: w,
|
|
1858
|
-
enter:
|
|
1872
|
+
enter: Te,
|
|
1859
1873
|
live: O,
|
|
1860
1874
|
statusControl: Ie,
|
|
1861
1875
|
patientId: d,
|
|
@@ -1863,48 +1877,48 @@ const Ea = Qt(function({
|
|
|
1863
1877
|
chair: l,
|
|
1864
1878
|
privacy: o,
|
|
1865
1879
|
privacyTitle: f,
|
|
1866
|
-
mapsLink:
|
|
1880
|
+
mapsLink: y,
|
|
1867
1881
|
notesPreview: k,
|
|
1868
|
-
onOpenNotes:
|
|
1882
|
+
onOpenNotes: b,
|
|
1869
1883
|
history: m,
|
|
1870
|
-
onOpenHistory:
|
|
1884
|
+
onOpenHistory: E,
|
|
1871
1885
|
noteUnrecordedEdits: L,
|
|
1872
1886
|
readOnly: P,
|
|
1873
|
-
onStatusChange:
|
|
1887
|
+
onStatusChange: N,
|
|
1874
1888
|
allowedStatuses: H,
|
|
1875
|
-
onDescriptionChange:
|
|
1889
|
+
onDescriptionChange: T,
|
|
1876
1890
|
descriptionMaxLength: I,
|
|
1877
1891
|
onAssignPatient: M,
|
|
1878
1892
|
onEdit: q,
|
|
1879
|
-
onMove:
|
|
1880
|
-
onCopy:
|
|
1893
|
+
onMove: Q,
|
|
1894
|
+
onCopy: se,
|
|
1881
1895
|
onDelete: z,
|
|
1882
1896
|
onJoinTelehealth: K,
|
|
1883
|
-
onWhatsApp:
|
|
1897
|
+
onWhatsApp: U,
|
|
1884
1898
|
whatsappUrl: j,
|
|
1885
|
-
onBuyWhatsApp:
|
|
1886
|
-
createTaskUrl:
|
|
1899
|
+
onBuyWhatsApp: Z,
|
|
1900
|
+
createTaskUrl: ee,
|
|
1887
1901
|
onRequestSignature: x,
|
|
1888
1902
|
onSignOnDevice: Y,
|
|
1889
|
-
onOpenPatient:
|
|
1903
|
+
onOpenPatient: te,
|
|
1890
1904
|
shortcuts: xe,
|
|
1891
|
-
documents:
|
|
1905
|
+
documents: Ee
|
|
1892
1906
|
},
|
|
1893
1907
|
n.read.eventId
|
|
1894
|
-
) : n.status === "loading" ?
|
|
1895
|
-
|
|
1896
|
-
/* @__PURE__ */ e(
|
|
1897
|
-
] }) :
|
|
1898
|
-
|
|
1899
|
-
/* @__PURE__ */
|
|
1900
|
-
/* @__PURE__ */ e(
|
|
1908
|
+
) : n.status === "loading" ? de = /* @__PURE__ */ v(ie, { children: [
|
|
1909
|
+
be,
|
|
1910
|
+
/* @__PURE__ */ e(Da, {})
|
|
1911
|
+
] }) : de = /* @__PURE__ */ v(ie, { children: [
|
|
1912
|
+
be,
|
|
1913
|
+
/* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1914
|
+
/* @__PURE__ */ e(X, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e(X.Description, { children: n.status === "error" ? ((Re = n.message) == null ? void 0 : Re.trim()) || h("emptyState.error.description") : n.reason }) }),
|
|
1901
1915
|
V ? /* @__PURE__ */ e(
|
|
1902
1916
|
C,
|
|
1903
1917
|
{
|
|
1904
1918
|
intent: "outline",
|
|
1905
1919
|
"data-action": "retry-load",
|
|
1906
1920
|
onClick: () => {
|
|
1907
|
-
|
|
1921
|
+
ye.current = !0, i == null || i();
|
|
1908
1922
|
},
|
|
1909
1923
|
children: h("emptyState.error.cta")
|
|
1910
1924
|
}
|
|
@@ -1913,72 +1927,72 @@ const Ea = Qt(function({
|
|
|
1913
1927
|
] }), /* @__PURE__ */ e(
|
|
1914
1928
|
"div",
|
|
1915
1929
|
{
|
|
1916
|
-
ref:
|
|
1917
|
-
id:
|
|
1930
|
+
ref: Ue,
|
|
1931
|
+
id: he,
|
|
1918
1932
|
"data-component": "appointment-details-panel",
|
|
1919
|
-
"data-component-id":
|
|
1920
|
-
"data-event-id":
|
|
1933
|
+
"data-component-id": ge,
|
|
1934
|
+
"data-event-id": Ne,
|
|
1921
1935
|
"data-status": n.status,
|
|
1922
1936
|
"aria-busy": n.status === "loading" || void 0,
|
|
1923
|
-
className:
|
|
1924
|
-
...
|
|
1925
|
-
children:
|
|
1937
|
+
className: Aa({ className: fe }),
|
|
1938
|
+
...oe,
|
|
1939
|
+
children: de
|
|
1926
1940
|
}
|
|
1927
1941
|
);
|
|
1928
1942
|
});
|
|
1929
|
-
|
|
1930
|
-
function
|
|
1943
|
+
La.displayName = "AppointmentDetailsPanel";
|
|
1944
|
+
function Zi({
|
|
1931
1945
|
eventId: t,
|
|
1932
1946
|
load: n,
|
|
1933
1947
|
reloadKey: i
|
|
1934
1948
|
}) {
|
|
1935
|
-
const { t: d } =
|
|
1949
|
+
const { t: d } = J("ui"), c = R("");
|
|
1936
1950
|
c.current = d("emptyState.error.description");
|
|
1937
1951
|
const l = R(n);
|
|
1938
|
-
|
|
1952
|
+
pe(() => {
|
|
1939
1953
|
l.current = n;
|
|
1940
1954
|
});
|
|
1941
|
-
const [u, p] = F(0), [r, a] = F(), o = JSON.stringify([i ?? null, u]), [f,
|
|
1942
|
-
f.eventId !== t &&
|
|
1955
|
+
const [u, p] = F(0), [r, a] = F(), o = JSON.stringify([i ?? null, u]), [f, y] = F({ eventId: t, count: 0 }), k = f.eventId === t ? f.count : f.count + 1;
|
|
1956
|
+
f.eventId !== t && y({ eventId: t, count: k }), Se(() => {
|
|
1943
1957
|
if (t === null) {
|
|
1944
1958
|
a(void 0);
|
|
1945
1959
|
return;
|
|
1946
1960
|
}
|
|
1947
|
-
const L = new AbortController(), P = (
|
|
1948
|
-
L.signal.aborted || a({ eventId: t, selection: k, request: o, value:
|
|
1961
|
+
const L = new AbortController(), P = (N) => {
|
|
1962
|
+
L.signal.aborted || a({ eventId: t, selection: k, request: o, value: N });
|
|
1949
1963
|
};
|
|
1950
|
-
return Promise.resolve().then(() => l.current(t, { signal: L.signal })).then((
|
|
1951
|
-
var H,
|
|
1952
|
-
if (
|
|
1964
|
+
return Promise.resolve().then(() => l.current(t, { signal: L.signal })).then((N) => {
|
|
1965
|
+
var H, T;
|
|
1966
|
+
if (N.status !== "ready") {
|
|
1953
1967
|
P({
|
|
1954
1968
|
status: "refused",
|
|
1955
1969
|
eventId: t,
|
|
1956
|
-
reason:
|
|
1957
|
-
retryable:
|
|
1970
|
+
reason: N.reason,
|
|
1971
|
+
retryable: N.retryable
|
|
1958
1972
|
});
|
|
1959
1973
|
return;
|
|
1960
1974
|
}
|
|
1961
|
-
if (((H =
|
|
1975
|
+
if (((H = N.details) == null ? void 0 : H.eventId) !== t || !In((T = N.details.appointment) == null ? void 0 : T.startIso))
|
|
1962
1976
|
throw new Error(c.current);
|
|
1963
|
-
P({ status: "ready", read:
|
|
1964
|
-
}).catch((
|
|
1977
|
+
P({ status: "ready", read: N.details });
|
|
1978
|
+
}).catch((N) => {
|
|
1965
1979
|
P({
|
|
1966
1980
|
status: "error",
|
|
1967
1981
|
eventId: t,
|
|
1968
|
-
message: nt(
|
|
1982
|
+
message: nt(N, c.current)
|
|
1969
1983
|
});
|
|
1970
1984
|
}), () => L.abort();
|
|
1971
1985
|
}, [t, k, o]);
|
|
1972
|
-
const
|
|
1973
|
-
if (t === null) return { state: null, retry:
|
|
1986
|
+
const b = an(() => p((L) => L + 1), []);
|
|
1987
|
+
if (t === null) return { state: null, retry: b };
|
|
1974
1988
|
const m = (r == null ? void 0 : r.eventId) === t && r.selection === k ? r : void 0;
|
|
1975
|
-
let
|
|
1976
|
-
return (m == null ? void 0 : m.request) === o ?
|
|
1989
|
+
let E = { status: "loading", eventId: t };
|
|
1990
|
+
return (m == null ? void 0 : m.request) === o ? E = m.value : (m == null ? void 0 : m.value.status) === "ready" && (E = { status: "ready", read: m.value.read, refreshing: !0 }), { state: E, retry: b };
|
|
1977
1991
|
}
|
|
1978
1992
|
export {
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1993
|
+
La as A,
|
|
1994
|
+
ue as D,
|
|
1995
|
+
da as a,
|
|
1996
|
+
Zi as u
|
|
1983
1997
|
};
|
|
1984
|
-
//# sourceMappingURL=use-appointment-details-read-
|
|
1998
|
+
//# sourceMappingURL=use-appointment-details-read-Bl1DHXQ2.js.map
|