@alfadocs/ui-kit 1.151.2 → 1.151.3
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/accessible-target-B6jk-HLB.js +9 -0
- package/dist/_chunks/{anamnesis-summary-rows-CFpaA1GP.js → anamnesis-summary-rows-D8_aTDvP.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-OghXENKK.js → balance-badge-cell-BVcRd-3Y.js} +2 -2
- package/dist/_chunks/{bill-line-table-DxV5_Dmq.js → bill-line-table-BW4ZgF3K.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-B9MtcBvx.js → calendar-appointment-editor-dialog-cbZooOgN.js} +7 -7
- package/dist/_chunks/{calendar-editor-discard-host-BudLsUZO.js → calendar-editor-discard-host-B0ssYoCI.js} +2 -2
- package/dist/_chunks/{calendar-waiting-list-panel-DukgSOPH.js → calendar-waiting-list-panel-41b7gXfF.js} +2 -2
- package/dist/_chunks/{calendar.sheets-OmTiQdCg.js → calendar.sheets-4mHB1Og9.js} +3 -3
- package/dist/_chunks/{calls-panel-eohONLia.js → calls-panel-DDtKm9Q_.js} +2 -2
- package/dist/_chunks/{care-plan-card-DJXNWjKB.js → care-plan-card-DjaWS2dl.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-W5QvNv8m.js → care-plan-entry-card-BiPbwQVq.js} +2 -2
- package/dist/_chunks/{clinical-note-card-D-9xmRpf.js → clinical-note-card-Dj4W96Fe.js} +144 -123
- package/dist/_chunks/{data-grid-DTAwrOiq.js → data-grid-R96eWG3V.js} +3 -3
- package/dist/_chunks/{date-range-panel-B86RANxB.js → date-range-panel-DAOG8tbm.js} +3 -3
- package/dist/_chunks/{date-range-picker-Z-hI5Vb7.js → date-range-picker-BEHiWujK.js} +2 -2
- package/dist/_chunks/{default-tabs-CZaDDf1G.js → default-tabs-BPZHfvNh.js} +5 -5
- package/dist/_chunks/{face-scheme-DRYGaszs.js → face-scheme-CWG3T1xx.js} +2 -2
- package/dist/_chunks/{feature-preview-switch-B_8JTya_.js → feature-preview-switch-i68faVMe.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DrVw8arH.js → gestational-age-calculator--wzG4gKI.js} +2 -2
- package/dist/_chunks/{header-settings-BIiYXX9_.js → header-settings-BzpbPgZ-.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-DutydbjC.js → invoice-upload-list-BxwgY0um.js} +4 -4
- package/dist/_chunks/{kit-extensions-CSPGIdcn.js → kit-extensions-CvBNCrm-.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-DTunki79.js → link-cell-renderer-Ci-p1fjn.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CclaaAvb.js → marketplace-app-shell-CUNBV_h9.js} +2 -2
- package/dist/_chunks/{notes-panel-d0I3hOEY.js → notes-panel-D7GCZIp5.js} +4 -4
- package/dist/_chunks/{patient-details-wFIzTz7N.js → patient-details-D5YzuSDh.js} +2 -2
- package/dist/_chunks/{patient-field-row-BDgfYLgz.js → patient-field-row-DJxgYlCL.js} +2 -2
- package/dist/_chunks/{patient-summary-card-ZunOre3Q.js → patient-summary-card-BbNfrKx0.js} +55 -54
- package/dist/_chunks/{pregnancy-dating-BEVI6zvu.js → pregnancy-dating-0AG2sB0B.js} +2 -2
- package/dist/_chunks/{prescription-history-CxBM3gnm.js → prescription-history-YtPd9cH-.js} +4 -4
- package/dist/_chunks/{radiograph-panel.agent-kgCmmgZk.js → radiograph-panel.agent-Dc3mlsUZ.js} +2 -2
- package/dist/_chunks/{row-actions-CA938TAd.js → row-actions-Cgs-Yrpp.js} +2 -2
- package/dist/_chunks/{signature-request-CfHfAEQt.js → signature-request-mwqwxVF-.js} +2 -2
- package/dist/_chunks/{switch-DO6uC4HJ.js → switch-D69iEUUt.js} +33 -29
- package/dist/_chunks/{task-editor-aXjGMwYA.js → task-editor-Bfw8Z9wO.js} +2 -2
- package/dist/_chunks/{tasks-panel-BdxHb-fX.js → tasks-panel-CGSL8QJJ.js} +2 -2
- package/dist/_chunks/{theme-toggle-DAqT_Yxy.js → theme-toggle-PyHaxWRC.js} +2 -2
- package/dist/_chunks/{toolbar-B2JJ_XDT.js → toolbar-nP46JFWM.js} +2 -2
- package/dist/_chunks/{tooth-scheme-C7xJEzaK.js → tooth-scheme-CwxRL1wg.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BR3TQOHx.js → use-appointment-details-read-DOPHCTxO.js} +173 -164
- package/dist/_chunks/{weekly-hours-editor-pTLyK8tt.js → weekly-hours-editor-Wo4dV_gE.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/appointment-editor-panel/index.js +2 -2
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/accessible-target.d.ts +19 -0
- package/dist/components/appointment-details-panel/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/calls-panel/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/feature-preview-switch/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/row-actions/index.js +1 -1
- package/dist/components/switch/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/theme-toggle/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/weekly-hours-editor/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/index.js +36 -36
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +3 -3
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/prescription/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 +2 -2
- package/package.json +1 -1
- package/dist/_chunks/accessible-target-D3j6F-AG.js +0 -7
|
@@ -8,7 +8,7 @@ import { c as cn } from "./compose-refs-C0k0tdqF.js";
|
|
|
8
8
|
import { g as ot } from "./get-error-message-DbFUzuja.js";
|
|
9
9
|
import { useSaveOutcomeUnknownMessage as un, isSaveOutcomeUnknownError as Nt, SaveOutcomeUnknownError as pn } from "../save-outcome/index.js";
|
|
10
10
|
import { h as nt } from "./handled-rejection-C-6Dq0As.js";
|
|
11
|
-
import { c as mn, a as
|
|
11
|
+
import { c as mn, a as Ct } from "./privacy-mask-CaLBAxzj.js";
|
|
12
12
|
import { A as ee } from "./alert-C4WKViaS.js";
|
|
13
13
|
import { B as T } from "./button-Dp4j9ygh.js";
|
|
14
14
|
import { I as Ve } from "./icon-button-u9VMQn3x.js";
|
|
@@ -18,7 +18,7 @@ import { E as Wt } from "./editable-description-B2F54K4T.js";
|
|
|
18
18
|
import { N as rt } from "./note-timeline-CS5j2OKD.js";
|
|
19
19
|
import { P as $t } from "./panel-header-DTc5OFUg.js";
|
|
20
20
|
import { P as at } from "./panel-subview-B5hnQwfQ.js";
|
|
21
|
-
import { P as qt } from "./patient-summary-card-
|
|
21
|
+
import { P as qt } from "./patient-summary-card-BbNfrKx0.js";
|
|
22
22
|
import { S as me } from "./section-card-CYfeQ6EQ.js";
|
|
23
23
|
import { C as fn, S as ke } from "./skeleton-tTWJpvAq.js";
|
|
24
24
|
import { F as gn } from "./form-field-CyHfOVKF.js";
|
|
@@ -27,9 +27,9 @@ import { T as yn } from "./tooltip-uEBdD1-5.js";
|
|
|
27
27
|
import { T as zt } from "./treatment-receipt-CZQV1NkJ.js";
|
|
28
28
|
import { a as it } from "./whatsapp-button-XbozeDl_.js";
|
|
29
29
|
import { W as bn, a as kn } from "./workflow-status-Cg7yjnye.js";
|
|
30
|
-
import { a as
|
|
30
|
+
import { a as xt, u as wn, i as Sn } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
31
31
|
import { M as An, C as Tt, A as Nn } from "./appointment-details-panel.history-FSsTXj1t.js";
|
|
32
|
-
import { R as
|
|
32
|
+
import { R as Cn, a as Et, b as Kt, e as xn, g as Tn, j as En, c as In, d as Dn, h as Rn, D as It, f as Pn, i as Ln, p as On } from "./appointment-details-panel.identity-9hRo85Lx.js";
|
|
33
33
|
import { A as Dt } from "./avatar-Dp5apm1d.js";
|
|
34
34
|
import { B as jt } from "./badge-BUk4RjTS.js";
|
|
35
35
|
import { C as Fn } from "./counter-WsvRuum1.js";
|
|
@@ -37,49 +37,50 @@ import { D as Ke } from "./description-list-DaldSpGy.js";
|
|
|
37
37
|
import { T as Rt } from "./timestamp-UMF1llBs.js";
|
|
38
38
|
import { T as _n } from "./transaction-chip-6jToArJn.js";
|
|
39
39
|
import { H as Se } from "./hover-card-CS8ulBf9.js";
|
|
40
|
+
import { d as Hn } from "./accessible-target-B6jk-HLB.js";
|
|
40
41
|
import { c as Yt } from "./createLucideIcon-DhHxpK9K.js";
|
|
41
|
-
import { U as
|
|
42
|
+
import { U as Mn } from "./user-round-DZxRG9zq.js";
|
|
42
43
|
import { S as Pt } from "./smartphone-C0rFF2if.js";
|
|
43
|
-
import { P as
|
|
44
|
-
import { M as
|
|
45
|
-
import { M as
|
|
46
|
-
import { F as
|
|
47
|
-
import { P as
|
|
48
|
-
import { C as
|
|
49
|
-
import { H as
|
|
50
|
-
import { R as
|
|
51
|
-
import { a as Gt, F as
|
|
44
|
+
import { P as Un } from "./phone-FceYcIFQ.js";
|
|
45
|
+
import { M as Bn } from "./mail-BqXVF2zH.js";
|
|
46
|
+
import { M as Wn } from "./map-pin-BaY37-Km.js";
|
|
47
|
+
import { F as $n } from "./file-pen-line-k4uMBM3h.js";
|
|
48
|
+
import { P as qn } from "./pen-line-D0De5zdl.js";
|
|
49
|
+
import { C as zn } from "./credit-card-D9XZsHGA.js";
|
|
50
|
+
import { H as Kn } from "./heart-pulse-BCppJyN2.js";
|
|
51
|
+
import { R as jn } from "./refresh-cw-DnI0cLFC.js";
|
|
52
|
+
import { a as Gt, F as Yn } from "./folder-DvNxod7_.js";
|
|
52
53
|
import { N as Vt } from "./notebook-text-spVSekMN.js";
|
|
53
|
-
import { C as
|
|
54
|
-
import { C as
|
|
55
|
-
import { H as
|
|
54
|
+
import { C as Gn } from "./calendar-days-BGWklvE-.js";
|
|
55
|
+
import { C as Vn } from "./clock-Drd4Wtis.js";
|
|
56
|
+
import { H as Xn } from "./hourglass-BEAzW1wE.js";
|
|
56
57
|
import { V as Xt } from "./video-BheNGvsu.js";
|
|
57
58
|
import { A as Lt } from "./armchair-BaLDW6Hz.js";
|
|
58
|
-
import { B as
|
|
59
|
-
import { R as
|
|
60
|
-
import { G as
|
|
61
|
-
import { N as
|
|
59
|
+
import { B as Jn } from "./building-2-D33bLCWL.js";
|
|
60
|
+
import { R as Qn } from "./repeat-CvQa5rZt.js";
|
|
61
|
+
import { G as Zn } from "./globe-sHBW1JN5.js";
|
|
62
|
+
import { N as ea } from "./notebook-pen-CO7HoM-W.js";
|
|
62
63
|
import { C as Jt } from "./clipboard-list-rSzfIYZB.js";
|
|
63
|
-
import { U as
|
|
64
|
+
import { U as ta } from "./user-plus-BtcOLgNU.js";
|
|
64
65
|
import { P as Ot } from "./pencil-B1sKKyuT.js";
|
|
65
|
-
import { C as
|
|
66
|
-
import { P as
|
|
67
|
-
import { S as
|
|
68
|
-
import { T as
|
|
66
|
+
import { C as na } from "./copy-vRpqqHtY.js";
|
|
67
|
+
import { P as aa } from "./plus-DzMQ_c6b.js";
|
|
68
|
+
import { S as ia } from "./square-check-big-dj0o8yA3.js";
|
|
69
|
+
import { T as sa } from "./trash-2-uumy3fy1.js";
|
|
69
70
|
import { H as Ft } from "./history-CK2JaU2g.js";
|
|
70
71
|
import { C as Qt } from "./calendar-clock-hbObjfGY.js";
|
|
71
|
-
import { C as
|
|
72
|
-
import { C as
|
|
73
|
-
import { F as
|
|
74
|
-
import { F as
|
|
75
|
-
import { R as
|
|
72
|
+
import { C as oa } from "./chevron-down-DWE7GSq9.js";
|
|
73
|
+
import { C as ra } from "./camera-VSklPDCv.js";
|
|
74
|
+
import { F as la } from "./file-BuG1VMAy.js";
|
|
75
|
+
import { F as da } from "./file-text-5yv6r2ls.js";
|
|
76
|
+
import { R as ca } from "./receipt-euro-B1cLM_TN.js";
|
|
76
77
|
/**
|
|
77
78
|
* @license lucide-react v1.22.0 - ISC
|
|
78
79
|
*
|
|
79
80
|
* This source code is licensed under the ISC license.
|
|
80
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
82
|
*/
|
|
82
|
-
const
|
|
83
|
+
const ua = [
|
|
83
84
|
["path", { d: "M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8", key: "1w3rig" }],
|
|
84
85
|
["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" }],
|
|
85
86
|
["path", { d: "M2 21h20", key: "1nyx9w" }],
|
|
@@ -89,28 +90,28 @@ const ca = [
|
|
|
89
90
|
["path", { d: "M7 4h.01", key: "1bh4kh" }],
|
|
90
91
|
["path", { d: "M12 4h.01", key: "1ujb9j" }],
|
|
91
92
|
["path", { d: "M17 4h.01", key: "1upcoc" }]
|
|
92
|
-
],
|
|
93
|
+
], pa = Yt("cake", ua);
|
|
93
94
|
/**
|
|
94
95
|
* @license lucide-react v1.22.0 - ISC
|
|
95
96
|
*
|
|
96
97
|
* This source code is licensed under the ISC license.
|
|
97
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
98
99
|
*/
|
|
99
|
-
const
|
|
100
|
+
const ma = [
|
|
100
101
|
["path", { d: "M16 10h2", key: "8sgtl7" }],
|
|
101
102
|
["path", { d: "M16 14h2", key: "epxaof" }],
|
|
102
103
|
["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
|
|
103
104
|
["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
|
|
104
105
|
["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
|
|
105
|
-
],
|
|
106
|
-
function
|
|
106
|
+
], ha = Yt("id-card", ma);
|
|
107
|
+
function fa(t) {
|
|
107
108
|
const n = t.trim();
|
|
108
109
|
let i = 0;
|
|
109
110
|
for (let r = 0; r < n.length; r += 1)
|
|
110
111
|
i += n.charCodeAt(r) >= 256 ? 6 : 1;
|
|
111
112
|
return i;
|
|
112
113
|
}
|
|
113
|
-
const
|
|
114
|
+
const ga = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', va = {
|
|
114
115
|
id: "appointment-details-panel",
|
|
115
116
|
// open and close back open_history and close_history; set_value backs
|
|
116
117
|
// set_status.
|
|
@@ -226,7 +227,7 @@ const fa = '[data-component="button-group"] [data-component="icon-button"][aria-
|
|
|
226
227
|
root: {
|
|
227
228
|
attr: "data-component",
|
|
228
229
|
value: "appointment-details-panel",
|
|
229
|
-
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 ${
|
|
230
|
+
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 ${ga}, and its menu item carries the same data-action.`
|
|
230
231
|
},
|
|
231
232
|
instanceId: {
|
|
232
233
|
attr: "data-component-id",
|
|
@@ -261,7 +262,7 @@ function Ye(t) {
|
|
|
261
262
|
return;
|
|
262
263
|
}
|
|
263
264
|
}
|
|
264
|
-
const
|
|
265
|
+
const ya = {
|
|
265
266
|
SU: 0,
|
|
266
267
|
MO: 1,
|
|
267
268
|
TU: 2,
|
|
@@ -269,22 +270,22 @@ const va = {
|
|
|
269
270
|
TH: 4,
|
|
270
271
|
FR: 5,
|
|
271
272
|
SA: 6
|
|
272
|
-
},
|
|
273
|
+
}, ba = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], ka = {
|
|
273
274
|
daily: "recurrenceEveryDay",
|
|
274
275
|
weekly: "recurrenceEveryWeek",
|
|
275
276
|
monthly: "recurrenceEveryMonth",
|
|
276
277
|
yearly: "recurrenceEveryYear"
|
|
277
|
-
},
|
|
278
|
+
}, wa = {
|
|
278
279
|
1: "recurrenceOrdinal1",
|
|
279
280
|
2: "recurrenceOrdinal2",
|
|
280
281
|
3: "recurrenceOrdinal3",
|
|
281
282
|
4: "recurrenceOrdinal4"
|
|
282
|
-
},
|
|
283
|
+
}, Sa = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
|
|
283
284
|
function _t(t, n) {
|
|
284
|
-
const i = new Date(2026, 0, 4 +
|
|
285
|
+
const i = new Date(2026, 0, 4 + ya[t]);
|
|
285
286
|
return new Intl.DateTimeFormat(n, { weekday: "long" }).format(i);
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
+
function Aa(t, n, i) {
|
|
288
289
|
const r = Et(n);
|
|
289
290
|
if (!Number.isFinite(r.getTime())) return;
|
|
290
291
|
const c = i ? Et(i) : void 0, o = c && c.getFullYear() === r.getFullYear();
|
|
@@ -298,11 +299,11 @@ function Sa(t, n, i) {
|
|
|
298
299
|
return;
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
|
-
function
|
|
302
|
-
const c =
|
|
302
|
+
function Na(t, n, i, r) {
|
|
303
|
+
const c = Cn[i.frequency];
|
|
303
304
|
if (!c) return;
|
|
304
|
-
const o = (y) => `calendarWorkspace.editor.${y}`, p = (y) => `calendarWorkspace.details.${y}`, f =
|
|
305
|
-
(y) => a.some(([, g,
|
|
305
|
+
const o = (y) => `calendarWorkspace.editor.${y}`, p = (y) => `calendarWorkspace.details.${y}`, f = ka[i.frequency], m = f && (i.interval ?? 1) > 1 ? t(o(f), { count: i.interval }) : t(o(c)), a = (i.byDay ?? []).map((y) => Sa.exec(y)).filter((y) => y !== null), l = i.frequency === "weekly" ? ba.filter(
|
|
306
|
+
(y) => a.some(([, g, C]) => !g && C === y)
|
|
306
307
|
) : [], d = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, y]) => y) : void 0;
|
|
307
308
|
let A = m;
|
|
308
309
|
if (l.length > 0)
|
|
@@ -313,11 +314,11 @@ function Aa(t, n, i, r) {
|
|
|
313
314
|
)
|
|
314
315
|
});
|
|
315
316
|
else if (d) {
|
|
316
|
-
const [, y, g] = d,
|
|
317
|
-
A = y === "-1" ? t(p("seriesOnLast"), { every: m, weekday:
|
|
317
|
+
const [, y, g] = d, C = _t(g, n);
|
|
318
|
+
A = y === "-1" ? t(p("seriesOnLast"), { every: m, weekday: C }) : t(p("seriesOnNth"), {
|
|
318
319
|
every: m,
|
|
319
|
-
weekday:
|
|
320
|
-
ordinal: t(o(
|
|
320
|
+
weekday: C,
|
|
321
|
+
ordinal: t(o(wa[y]))
|
|
321
322
|
});
|
|
322
323
|
}
|
|
323
324
|
if (i.count !== void 0)
|
|
@@ -325,7 +326,7 @@ function Aa(t, n, i, r) {
|
|
|
325
326
|
frequency: A,
|
|
326
327
|
count: i.count
|
|
327
328
|
});
|
|
328
|
-
const v = i.untilIso ?
|
|
329
|
+
const v = i.untilIso ? Aa(n, i.untilIso, r) : void 0;
|
|
329
330
|
return v ? t(p("seriesUntil"), { rule: A, date: v }) : A;
|
|
330
331
|
}
|
|
331
332
|
function dt({
|
|
@@ -346,7 +347,7 @@ function dt({
|
|
|
346
347
|
)) }) }) : null
|
|
347
348
|
] });
|
|
348
349
|
}
|
|
349
|
-
const
|
|
350
|
+
const Ca = "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)]";
|
|
350
351
|
function Ht({
|
|
351
352
|
id: t,
|
|
352
353
|
eyebrow: n,
|
|
@@ -355,7 +356,15 @@ function Ht({
|
|
|
355
356
|
children: c
|
|
356
357
|
}) {
|
|
357
358
|
return /* @__PURE__ */ b(Se, { children: [
|
|
358
|
-
/* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
359
|
+
/* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
360
|
+
"button",
|
|
361
|
+
{
|
|
362
|
+
type: "button",
|
|
363
|
+
"data-chip-hover": t,
|
|
364
|
+
className: `${Ca} ${Hn}`,
|
|
365
|
+
children: c
|
|
366
|
+
}
|
|
367
|
+
) }),
|
|
359
368
|
/* @__PURE__ */ e(Se.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(dt, { eyebrow: n, heading: i, facts: r }) })
|
|
360
369
|
] });
|
|
361
370
|
}
|
|
@@ -385,7 +394,7 @@ function Ge({
|
|
|
385
394
|
}
|
|
386
395
|
) : null;
|
|
387
396
|
}
|
|
388
|
-
const
|
|
397
|
+
const Ta = "ds:[--description-list-icon-color:var(--accent)] ds:[--description-list-icon-gap:var(--spacing-md)]";
|
|
389
398
|
function je({
|
|
390
399
|
rows: t,
|
|
391
400
|
stacked: n = !1
|
|
@@ -396,7 +405,7 @@ function je({
|
|
|
396
405
|
{
|
|
397
406
|
layout: n ? "stacked" : "inline",
|
|
398
407
|
density: "compact",
|
|
399
|
-
className:
|
|
408
|
+
className: Ta,
|
|
400
409
|
children: i.map((r) => /* @__PURE__ */ b(
|
|
401
410
|
Ke.Row,
|
|
402
411
|
{
|
|
@@ -412,7 +421,7 @@ function je({
|
|
|
412
421
|
}
|
|
413
422
|
);
|
|
414
423
|
}
|
|
415
|
-
function
|
|
424
|
+
function Ea({
|
|
416
425
|
details: t,
|
|
417
426
|
locale: n,
|
|
418
427
|
currency: i,
|
|
@@ -425,19 +434,19 @@ function Ta({
|
|
|
425
434
|
}) {
|
|
426
435
|
const { t: a } = te("ui"), { patient: l, signing: d, money: A, booking: v } = t;
|
|
427
436
|
if (!l) return null;
|
|
428
|
-
const y = (d == null ? void 0 : d.consents) ?? [], g = d && (d.required > 0 || y.length > 0) ? d : void 0,
|
|
437
|
+
const y = (d == null ? void 0 : d.consents) ?? [], g = d && (d.required > 0 || y.length > 0) ? d : void 0, C = ((g == null ? void 0 : g.toComplete) ?? 0) > 0, L = g ? [
|
|
429
438
|
{
|
|
430
|
-
text:
|
|
439
|
+
text: C ? g.requestedVia === "sms" ? a(s("signingRequestedSms")) : g.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
|
|
431
440
|
},
|
|
432
441
|
...g.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
|
|
433
|
-
] : [], P = ((d == null ? void 0 : d.required) ?? 0) > 0 &&
|
|
442
|
+
] : [], P = ((d == null ? void 0 : d.required) ?? 0) > 0 && C, x = !!(o != null && o.advancedSignatureUrl) && ((d == null ? void 0 : d.required) ?? 0) > 0 && !(d != null && d.aesSetUp), M = !!p && P, D = !!f && P, _ = l.highlightedAnamnesisCount ?? 0, E = l.expiredAnamnesisCount ?? 0, q = (l.highlightedAnamnesisAnswers ?? []).map((N) => ({
|
|
434
443
|
text: [
|
|
435
444
|
N.question,
|
|
436
445
|
a(s(N.yes ? "anamnesisYes" : "anamnesisNo")),
|
|
437
446
|
N.answer,
|
|
438
447
|
Kt(n, N.interviewIso)
|
|
439
448
|
].filter(Boolean).join(" · ")
|
|
440
|
-
})), z =
|
|
449
|
+
})), z = xn(l), re = Tn(l) || z, K = y.map((N) => ({
|
|
441
450
|
id: `consent-${N.id}`,
|
|
442
451
|
label: N.name,
|
|
443
452
|
value: a(s(xa[N.state]))
|
|
@@ -446,7 +455,7 @@ function Ta({
|
|
|
446
455
|
{
|
|
447
456
|
id: "dob",
|
|
448
457
|
label: a(s("dob")),
|
|
449
|
-
icon: /* @__PURE__ */ e(
|
|
458
|
+
icon: /* @__PURE__ */ e(pa, {}),
|
|
450
459
|
value: En(n, l.dobIso)
|
|
451
460
|
},
|
|
452
461
|
/* The age is a fact of its own, not a bracket after the date: its
|
|
@@ -456,7 +465,7 @@ function Ta({
|
|
|
456
465
|
{
|
|
457
466
|
id: "age",
|
|
458
467
|
label: a("patientTable.column.age"),
|
|
459
|
-
icon: /* @__PURE__ */ e(
|
|
468
|
+
icon: /* @__PURE__ */ e(Mn, {}),
|
|
460
469
|
value: a("patientField.age", {
|
|
461
470
|
count: In(l.dobIso, r)
|
|
462
471
|
})
|
|
@@ -467,7 +476,7 @@ function Ta({
|
|
|
467
476
|
return {
|
|
468
477
|
id: `phone-${G}`,
|
|
469
478
|
label: a(V ? `calendarWorkspace.print.phoneLabels.${N.label}` : s("phone")),
|
|
470
|
-
icon: N.label === "mobile" ? /* @__PURE__ */ e(Pt, {}) : /* @__PURE__ */ e(
|
|
479
|
+
icon: N.label === "mobile" ? /* @__PURE__ */ e(Pt, {}) : /* @__PURE__ */ e(Un, {}),
|
|
471
480
|
value: Zt(N.number)
|
|
472
481
|
};
|
|
473
482
|
}),
|
|
@@ -475,7 +484,7 @@ function Ta({
|
|
|
475
484
|
{
|
|
476
485
|
id: "email",
|
|
477
486
|
label: a(s("email")),
|
|
478
|
-
icon: /* @__PURE__ */ e(
|
|
487
|
+
icon: /* @__PURE__ */ e(Bn, {}),
|
|
479
488
|
value: en(l.email)
|
|
480
489
|
}
|
|
481
490
|
] : [],
|
|
@@ -485,7 +494,7 @@ function Ta({
|
|
|
485
494
|
{
|
|
486
495
|
id: "address",
|
|
487
496
|
label: a(s("address")),
|
|
488
|
-
icon: /* @__PURE__ */ e(
|
|
497
|
+
icon: /* @__PURE__ */ e(Wn, {}),
|
|
489
498
|
value: /* @__PURE__ */ e(
|
|
490
499
|
"a",
|
|
491
500
|
{
|
|
@@ -498,7 +507,7 @@ function Ta({
|
|
|
498
507
|
)
|
|
499
508
|
}
|
|
500
509
|
] : []
|
|
501
|
-
], Y = (A == null ? void 0 : A.unpaidAmount) ?? 0, B = (A == null ? void 0 : A.billableAmount) ?? 0, ne = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, ae = (N, G, V, Ae, Ne,
|
|
510
|
+
], Y = (A == null ? void 0 : A.unpaidAmount) ?? 0, B = (A == null ? void 0 : A.billableAmount) ?? 0, ne = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, ae = (N, G, V, Ae, Ne, Ce) => /* @__PURE__ */ e(
|
|
502
511
|
Ht,
|
|
503
512
|
{
|
|
504
513
|
id: V,
|
|
@@ -517,7 +526,7 @@ function Ta({
|
|
|
517
526
|
locale: n,
|
|
518
527
|
size: "md",
|
|
519
528
|
showLabel: !0,
|
|
520
|
-
label:
|
|
529
|
+
label: Ce,
|
|
521
530
|
showIcon: !1,
|
|
522
531
|
tone: N === "to-invoice" ? "neutral" : "state"
|
|
523
532
|
}
|
|
@@ -574,7 +583,7 @@ function Ta({
|
|
|
574
583
|
onClick: () => m(t.eventId)
|
|
575
584
|
}
|
|
576
585
|
) : void 0,
|
|
577
|
-
extraChips: Y > 0 || B > 0 || ne > 0 || E > 0 ||
|
|
586
|
+
extraChips: Y > 0 || B > 0 || ne > 0 || E > 0 || x || M || D ? /* @__PURE__ */ b(oe, { children: [
|
|
578
587
|
/* @__PURE__ */ b("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
579
588
|
Y > 0 ? ae(
|
|
580
589
|
"debt",
|
|
@@ -607,7 +616,7 @@ function Ta({
|
|
|
607
616
|
size: "sm",
|
|
608
617
|
intent: "outline",
|
|
609
618
|
"data-action": ue.requestSignature,
|
|
610
|
-
startIcon: /* @__PURE__ */ e(
|
|
619
|
+
startIcon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
|
|
611
620
|
onClick: () => p(t.eventId),
|
|
612
621
|
children: a(s("signingRequest"))
|
|
613
622
|
}
|
|
@@ -624,12 +633,12 @@ function Ta({
|
|
|
624
633
|
children: a(s("signingOnDevice"))
|
|
625
634
|
}
|
|
626
635
|
) : null,
|
|
627
|
-
|
|
636
|
+
x && (o != null && o.advancedSignatureUrl) ? /* @__PURE__ */ e(
|
|
628
637
|
Ge,
|
|
629
638
|
{
|
|
630
639
|
href: o.advancedSignatureUrl,
|
|
631
640
|
action: ue.advancedSignature,
|
|
632
|
-
icon: /* @__PURE__ */ e(
|
|
641
|
+
icon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
|
|
633
642
|
children: a(s("aesSetUp"))
|
|
634
643
|
}
|
|
635
644
|
) : null,
|
|
@@ -638,7 +647,7 @@ function Ta({
|
|
|
638
647
|
{
|
|
639
648
|
href: o.unlockPaymentsUrl,
|
|
640
649
|
action: ue.unlockPayments,
|
|
641
|
-
icon: /* @__PURE__ */ e(
|
|
650
|
+
icon: /* @__PURE__ */ e(zn, { "aria-hidden": "true" }),
|
|
642
651
|
children: a(s("unlockPayments"))
|
|
643
652
|
}
|
|
644
653
|
) : null,
|
|
@@ -655,7 +664,7 @@ function Ta({
|
|
|
655
664
|
"data-chip": "anamnesisExpired",
|
|
656
665
|
variant: "warning",
|
|
657
666
|
size: "md",
|
|
658
|
-
leading: /* @__PURE__ */ e(
|
|
667
|
+
leading: /* @__PURE__ */ e(Kn, {}),
|
|
659
668
|
children: a(s("anamnesisExpired"), { n: E })
|
|
660
669
|
}
|
|
661
670
|
)
|
|
@@ -666,7 +675,7 @@ function Ta({
|
|
|
666
675
|
{
|
|
667
676
|
href: o.renewAnamnesisUrl,
|
|
668
677
|
action: ue.renewAnamnesis,
|
|
669
|
-
icon: /* @__PURE__ */ e(
|
|
678
|
+
icon: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
|
|
670
679
|
children: a(s("anamnesisRenew"))
|
|
671
680
|
}
|
|
672
681
|
) : null
|
|
@@ -685,7 +694,7 @@ function Ta({
|
|
|
685
694
|
}
|
|
686
695
|
);
|
|
687
696
|
}
|
|
688
|
-
function
|
|
697
|
+
function Ia({
|
|
689
698
|
details: t,
|
|
690
699
|
locale: n,
|
|
691
700
|
currency: i,
|
|
@@ -696,7 +705,7 @@ function Ea({
|
|
|
696
705
|
privacy: f = !1,
|
|
697
706
|
history: m
|
|
698
707
|
}) {
|
|
699
|
-
const { t: a } = te("ui"), { appointment: l, booking: d, patient: A } = t, v = (E) => a(`calendarWorkspace.editor.${E}`), y = new Date(l.startIso), g = new Date(y.getTime() + l.durationMin * 6e4),
|
|
708
|
+
const { t: a } = te("ui"), { appointment: l, booking: d, patient: A } = t, v = (E) => a(`calendarWorkspace.editor.${E}`), y = new Date(l.startIso), g = new Date(y.getTime() + l.durationMin * 6e4), C = Number.isFinite(y.getTime()), { recurrence: L } = l, P = L && Na(a, n, L, l.startIso), x = d ? [
|
|
700
709
|
d.bookedAtIso && {
|
|
701
710
|
id: "bookedAt",
|
|
702
711
|
label: a(s("bookedAt")),
|
|
@@ -737,7 +746,7 @@ function Ea({
|
|
|
737
746
|
label: a(s("paidOnline")),
|
|
738
747
|
value: tn(n, d.paidOnlineAmount, i)
|
|
739
748
|
}
|
|
740
|
-
] : [], M = f ?
|
|
749
|
+
] : [], M = f ? x.filter((E) => E && E.id === "bookedAt") : x, D = M.some(Boolean), _ = d || l.bookedOnline || m == null ? void 0 : m.filter(
|
|
741
750
|
(E) => E.kind === "created" && E.actor.trim() !== ""
|
|
742
751
|
).sort((E, q) => Date.parse(E.atIso) - Date.parse(q.atIso))[0];
|
|
743
752
|
return /* @__PURE__ */ b(
|
|
@@ -766,22 +775,22 @@ function Ea({
|
|
|
766
775
|
je,
|
|
767
776
|
{
|
|
768
777
|
rows: [
|
|
769
|
-
|
|
778
|
+
C && {
|
|
770
779
|
id: "date",
|
|
771
780
|
label: v("date"),
|
|
772
|
-
icon: /* @__PURE__ */ e(
|
|
781
|
+
icon: /* @__PURE__ */ e(Gn, {}),
|
|
773
782
|
value: Kt(n, y)
|
|
774
783
|
},
|
|
775
|
-
|
|
784
|
+
C && {
|
|
776
785
|
id: "time",
|
|
777
786
|
label: a(s("time")),
|
|
778
|
-
icon: /* @__PURE__ */ e(
|
|
787
|
+
icon: /* @__PURE__ */ e(Vn, {}),
|
|
779
788
|
value: l.allDay ? v("allDay") : Pn(n, y, g)
|
|
780
789
|
},
|
|
781
790
|
!l.allDay && {
|
|
782
791
|
id: "duration",
|
|
783
792
|
label: v("duration"),
|
|
784
|
-
icon: /* @__PURE__ */ e(
|
|
793
|
+
icon: /* @__PURE__ */ e(Xn, {}),
|
|
785
794
|
value: `${l.durationMin} ${v("durationUnit")}`
|
|
786
795
|
},
|
|
787
796
|
l.isTelehealth && {
|
|
@@ -806,7 +815,7 @@ function Ea({
|
|
|
806
815
|
l.branchLabel && {
|
|
807
816
|
id: "branch",
|
|
808
817
|
label: v("branch"),
|
|
809
|
-
icon: /* @__PURE__ */ e(
|
|
818
|
+
icon: /* @__PURE__ */ e(Jn, {}),
|
|
810
819
|
value: l.branchLabel
|
|
811
820
|
},
|
|
812
821
|
_ && {
|
|
@@ -831,7 +840,7 @@ function Ea({
|
|
|
831
840
|
P && {
|
|
832
841
|
id: "series",
|
|
833
842
|
label: a(s("seriesLabel")),
|
|
834
|
-
icon: /* @__PURE__ */ e(
|
|
843
|
+
icon: /* @__PURE__ */ e(Qn, {}),
|
|
835
844
|
value: P
|
|
836
845
|
}
|
|
837
846
|
]
|
|
@@ -845,7 +854,7 @@ function Ea({
|
|
|
845
854
|
(d == null ? void 0 : d.reason) && {
|
|
846
855
|
id: "bookingReason",
|
|
847
856
|
label: a(s("bookingReason")),
|
|
848
|
-
icon: /* @__PURE__ */ e(
|
|
857
|
+
icon: /* @__PURE__ */ e(Zn, {}),
|
|
849
858
|
value: /* @__PURE__ */ e("span", { className: "ds:font-medium", children: d.reason })
|
|
850
859
|
}
|
|
851
860
|
]
|
|
@@ -866,7 +875,7 @@ function Ea({
|
|
|
866
875
|
}
|
|
867
876
|
);
|
|
868
877
|
}
|
|
869
|
-
function
|
|
878
|
+
function Da({
|
|
870
879
|
details: t,
|
|
871
880
|
locale: n,
|
|
872
881
|
currency: i,
|
|
@@ -917,7 +926,7 @@ function Ia({
|
|
|
917
926
|
);
|
|
918
927
|
}
|
|
919
928
|
const Mt = 3;
|
|
920
|
-
function
|
|
929
|
+
function Ra({
|
|
921
930
|
preview: t,
|
|
922
931
|
onOpenNotes: n,
|
|
923
932
|
locale: i
|
|
@@ -938,7 +947,7 @@ function Da({
|
|
|
938
947
|
/* @__PURE__ */ e(
|
|
939
948
|
Ve,
|
|
940
949
|
{
|
|
941
|
-
icon: /* @__PURE__ */ e(
|
|
950
|
+
icon: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
|
|
942
951
|
intent: "outline",
|
|
943
952
|
size: "sm",
|
|
944
953
|
"data-action": "open-patient-notes",
|
|
@@ -1001,7 +1010,7 @@ function Da({
|
|
|
1001
1010
|
}
|
|
1002
1011
|
);
|
|
1003
1012
|
}
|
|
1004
|
-
const
|
|
1013
|
+
const Pa = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), La = ct(
|
|
1005
1014
|
[
|
|
1006
1015
|
"ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end",
|
|
1007
1016
|
"ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]",
|
|
@@ -1010,12 +1019,12 @@ const Ra = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Pa = ct(
|
|
|
1010
1019
|
"ds:[&>[data-component=workflow-status]>[role=alert]]:order-1",
|
|
1011
1020
|
"ds:[&>[data-component=workflow-status]>[role=alert]]:basis-full"
|
|
1012
1021
|
].join(" ")
|
|
1013
|
-
),
|
|
1022
|
+
), Oa = ct(
|
|
1014
1023
|
"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)]"
|
|
1015
|
-
), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]",
|
|
1024
|
+
), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", Fa = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", _a = [
|
|
1016
1025
|
"ds:sm:[&_button:has(svg.lucide-ellipsis)]:[min-block-size:var(--accessible-target-floor,0px)]",
|
|
1017
1026
|
"ds:[&_button:has(svg.lucide-ellipsis)]:[min-inline-size:var(--accessible-target-floor,auto)]"
|
|
1018
|
-
].join(" "), nn = ["40%", "33%", "50%", "25%"],
|
|
1027
|
+
].join(" "), nn = ["40%", "33%", "50%", "25%"], Ha = [
|
|
1019
1028
|
"bill",
|
|
1020
1029
|
"folder",
|
|
1021
1030
|
"template",
|
|
@@ -1023,12 +1032,12 @@ const Ra = ct("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), Pa = ct(
|
|
|
1023
1032
|
"identification",
|
|
1024
1033
|
"webcam"
|
|
1025
1034
|
], Ut = {
|
|
1026
|
-
bill: /* @__PURE__ */ e(
|
|
1027
|
-
folder: /* @__PURE__ */ e(
|
|
1028
|
-
template: /* @__PURE__ */ e(
|
|
1029
|
-
empty: /* @__PURE__ */ e(
|
|
1030
|
-
identification: /* @__PURE__ */ e(
|
|
1031
|
-
webcam: /* @__PURE__ */ e(
|
|
1035
|
+
bill: /* @__PURE__ */ e(ca, { "aria-hidden": "true" }),
|
|
1036
|
+
folder: /* @__PURE__ */ e(Yn, { "aria-hidden": "true" }),
|
|
1037
|
+
template: /* @__PURE__ */ e(da, { "aria-hidden": "true" }),
|
|
1038
|
+
empty: /* @__PURE__ */ e(la, { "aria-hidden": "true" }),
|
|
1039
|
+
identification: /* @__PURE__ */ e(ha, { "aria-hidden": "true" }),
|
|
1040
|
+
webcam: /* @__PURE__ */ e(ra, { "aria-hidden": "true" })
|
|
1032
1041
|
}, k = (t) => `calendarWorkspace.details.${t}`;
|
|
1033
1042
|
function Bt({
|
|
1034
1043
|
children: t,
|
|
@@ -1051,7 +1060,7 @@ function Bt({
|
|
|
1051
1060
|
className: U,
|
|
1052
1061
|
startIcon: n,
|
|
1053
1062
|
"aria-haspopup": "menu",
|
|
1054
|
-
endIcon: /* @__PURE__ */ e(
|
|
1063
|
+
endIcon: /* @__PURE__ */ e(oa, { "aria-hidden": "true" }),
|
|
1055
1064
|
children: f ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
|
|
1056
1065
|
}
|
|
1057
1066
|
) }) }),
|
|
@@ -1067,7 +1076,7 @@ function Bt({
|
|
|
1067
1076
|
)) })
|
|
1068
1077
|
] });
|
|
1069
1078
|
}
|
|
1070
|
-
function
|
|
1079
|
+
function Ma() {
|
|
1071
1080
|
const { t } = te("ui");
|
|
1072
1081
|
return /* @__PURE__ */ b(oe, { children: [
|
|
1073
1082
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
|
|
@@ -1143,7 +1152,7 @@ function Ha() {
|
|
|
1143
1152
|
)
|
|
1144
1153
|
] });
|
|
1145
1154
|
}
|
|
1146
|
-
function
|
|
1155
|
+
function Ua({
|
|
1147
1156
|
history: t,
|
|
1148
1157
|
locale: n,
|
|
1149
1158
|
onRetry: i,
|
|
@@ -1214,7 +1223,7 @@ function Ma({
|
|
|
1214
1223
|
A
|
|
1215
1224
|
] });
|
|
1216
1225
|
}
|
|
1217
|
-
function
|
|
1226
|
+
function Ba({
|
|
1218
1227
|
read: t,
|
|
1219
1228
|
refreshing: n,
|
|
1220
1229
|
currency: i,
|
|
@@ -1231,17 +1240,17 @@ function Ua({
|
|
|
1231
1240
|
privacy: v = !1,
|
|
1232
1241
|
privacyTitle: y,
|
|
1233
1242
|
mapsLink: g,
|
|
1234
|
-
notesPreview:
|
|
1243
|
+
notesPreview: C,
|
|
1235
1244
|
onOpenNotes: L,
|
|
1236
1245
|
history: P,
|
|
1237
|
-
onOpenHistory:
|
|
1246
|
+
onOpenHistory: x,
|
|
1238
1247
|
noteUnrecordedEdits: M = !1,
|
|
1239
1248
|
readOnly: D = !1,
|
|
1240
1249
|
onStatusChange: _,
|
|
1241
|
-
allowedStatuses: E =
|
|
1250
|
+
allowedStatuses: E = xt,
|
|
1242
1251
|
onDescriptionChange: q,
|
|
1243
1252
|
descriptionMaxLength: z,
|
|
1244
|
-
descriptionMeasureLength: re =
|
|
1253
|
+
descriptionMeasureLength: re = fa,
|
|
1245
1254
|
onAssignPatient: K,
|
|
1246
1255
|
onEdit: j,
|
|
1247
1256
|
onMove: Y,
|
|
@@ -1253,14 +1262,14 @@ function Ua({
|
|
|
1253
1262
|
onBuyWhatsApp: V,
|
|
1254
1263
|
createTaskUrl: Ae,
|
|
1255
1264
|
onRequestSignature: Ne,
|
|
1256
|
-
onSignOnDevice:
|
|
1265
|
+
onSignOnDevice: Ce,
|
|
1257
1266
|
onOpenPatient: He,
|
|
1258
1267
|
shortcuts: he,
|
|
1259
1268
|
documents: X
|
|
1260
1269
|
}) {
|
|
1261
1270
|
var kt, wt;
|
|
1262
|
-
const { t: h } = te("ui"), { eventId: I } = t, [Xe] = H(f), fe = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== I ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Ue = (
|
|
1263
|
-
le || !w || (ie(!0),
|
|
1271
|
+
const { t: h } = te("ui"), { eventId: I } = t, [Xe] = H(f), fe = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== I ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Ue = (C == null ? void 0 : C.patientId) === void 0 || C.patientId === l, ge = C ? Ue ? C : l ? { notes: [], status: "loading", total: null } : void 0 : void 0, J = !!q && !D && !v, [xe, ie] = H(!1), [Te, Q] = H(!1), le = xe && w !== void 0, Be = Te && J, Ee = () => {
|
|
1272
|
+
le || !w || (ie(!0), x == null || x(I));
|
|
1264
1273
|
}, We = R({ history: !1, editor: !1 });
|
|
1265
1274
|
pe(() => {
|
|
1266
1275
|
const u = We.current;
|
|
@@ -1302,7 +1311,7 @@ function Ua({
|
|
|
1302
1311
|
const u = mt.current && !n;
|
|
1303
1312
|
mt.current = n, u && (Je(t.appointment.status), De(t.appointment.name ?? ""));
|
|
1304
1313
|
}, [n]);
|
|
1305
|
-
const $e =
|
|
1314
|
+
const $e = xt.filter(
|
|
1306
1315
|
(u) => E.includes(u)
|
|
1307
1316
|
), Oe = wn(se, {
|
|
1308
1317
|
statuses: $e,
|
|
@@ -1317,7 +1326,7 @@ function Ua({
|
|
|
1317
1326
|
}
|
|
1318
1327
|
Je(u);
|
|
1319
1328
|
}
|
|
1320
|
-
}, ht = v ? void 0 : G, qe =
|
|
1329
|
+
}, ht = v ? void 0 : G, qe = Ha.filter(
|
|
1321
1330
|
(u) => X == null ? void 0 : X.kinds.includes(u)
|
|
1322
1331
|
), on = (((kt = t.care) == null ? void 0 : kt.lines.length) ?? 0) > 0, Qe = l !== void 0 && l !== "", Ze = h(k("status")), ft = `${Ze}: ${Oe.option.label}`, et = R(null), gt = R(Fe);
|
|
1323
1332
|
pe(() => {
|
|
@@ -1332,7 +1341,7 @@ function Ua({
|
|
|
1332
1341
|
options: Oe.options,
|
|
1333
1342
|
size: "sm",
|
|
1334
1343
|
workflowLabel: Ze,
|
|
1335
|
-
className: `ds:[&>button]:bg-[color:var(--background)] ${
|
|
1344
|
+
className: `ds:[&>button]:bg-[color:var(--background)] ${Fa}`,
|
|
1336
1345
|
"aria-label": ft,
|
|
1337
1346
|
onValueChange: sn
|
|
1338
1347
|
}
|
|
@@ -1347,7 +1356,7 @@ function Ua({
|
|
|
1347
1356
|
"aria-label": ft,
|
|
1348
1357
|
tabIndex: -1,
|
|
1349
1358
|
"data-status-display": "",
|
|
1350
|
-
className:
|
|
1359
|
+
className: Oa(),
|
|
1351
1360
|
children: /* @__PURE__ */ e(
|
|
1352
1361
|
kn,
|
|
1353
1362
|
{
|
|
@@ -1368,7 +1377,7 @@ function Ua({
|
|
|
1368
1377
|
intent: "primary",
|
|
1369
1378
|
"data-action": "assign-patient",
|
|
1370
1379
|
className: U,
|
|
1371
|
-
startIcon: /* @__PURE__ */ e(
|
|
1380
|
+
startIcon: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
|
|
1372
1381
|
onClick: () => K(I),
|
|
1373
1382
|
children: h("calendarWorkspace.inc1.bookings.assignPatient")
|
|
1374
1383
|
},
|
|
@@ -1425,7 +1434,7 @@ function Ua({
|
|
|
1425
1434
|
overflowItems: [
|
|
1426
1435
|
{
|
|
1427
1436
|
label: h("calendarWorkspace.editor.duplicateAppointmentOnly"),
|
|
1428
|
-
icon: /* @__PURE__ */ e(
|
|
1437
|
+
icon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
|
|
1429
1438
|
action: "copy-appointment-only",
|
|
1430
1439
|
onSelect: () => B(!1, I)
|
|
1431
1440
|
},
|
|
@@ -1473,7 +1482,7 @@ function Ua({
|
|
|
1473
1482
|
{
|
|
1474
1483
|
"data-action": "open-create-document",
|
|
1475
1484
|
"data-overflow-tip": !1,
|
|
1476
|
-
startIcon: /* @__PURE__ */ e(
|
|
1485
|
+
startIcon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
|
|
1477
1486
|
overflowItems: qe.map((u) => ({
|
|
1478
1487
|
label: h(k(`documents.${u}`)),
|
|
1479
1488
|
icon: Ut[u],
|
|
@@ -1542,7 +1551,7 @@ function Ua({
|
|
|
1542
1551
|
asChild: !0,
|
|
1543
1552
|
"data-action": "create-task",
|
|
1544
1553
|
className: U,
|
|
1545
|
-
startIcon: /* @__PURE__ */ e(
|
|
1554
|
+
startIcon: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
|
|
1546
1555
|
children: /* @__PURE__ */ e("a", { href: yt, children: h(k("createTask")) })
|
|
1547
1556
|
},
|
|
1548
1557
|
"task"
|
|
@@ -1555,7 +1564,7 @@ function Ua({
|
|
|
1555
1564
|
intent: "destructiveOutline",
|
|
1556
1565
|
"data-action": "delete-appointment",
|
|
1557
1566
|
className: U,
|
|
1558
|
-
startIcon: /* @__PURE__ */ e(
|
|
1567
|
+
startIcon: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
|
|
1559
1568
|
onClick: () => ne(I),
|
|
1560
1569
|
children: h("calendarWorkspace.editor.delete")
|
|
1561
1570
|
},
|
|
@@ -1608,14 +1617,14 @@ function Ua({
|
|
|
1608
1617
|
className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
|
|
1609
1618
|
children: /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1610
1619
|
v ? /* @__PURE__ */ e(mn, { mask: y }) : t.patient ? /* @__PURE__ */ e(
|
|
1611
|
-
|
|
1620
|
+
Ea,
|
|
1612
1621
|
{
|
|
1613
1622
|
...fe,
|
|
1614
1623
|
now: r,
|
|
1615
1624
|
mapsLink: g,
|
|
1616
1625
|
shortcuts: he,
|
|
1617
1626
|
onRequestSignature: Ne,
|
|
1618
|
-
onSignOnDevice:
|
|
1627
|
+
onSignOnDevice: Ce,
|
|
1619
1628
|
onOpenPatient: He
|
|
1620
1629
|
}
|
|
1621
1630
|
) : (
|
|
@@ -1640,7 +1649,7 @@ function Ua({
|
|
|
1640
1649
|
)
|
|
1641
1650
|
),
|
|
1642
1651
|
/* @__PURE__ */ e(
|
|
1643
|
-
|
|
1652
|
+
Ia,
|
|
1644
1653
|
{
|
|
1645
1654
|
...fe,
|
|
1646
1655
|
operator: d,
|
|
@@ -1661,7 +1670,7 @@ function Ua({
|
|
|
1661
1670
|
) : void 0,
|
|
1662
1671
|
description: (
|
|
1663
1672
|
/* An empty read-only description prints nothing. */
|
|
1664
|
-
v ? $ ? /* @__PURE__ */ e(
|
|
1673
|
+
v ? $ ? /* @__PURE__ */ e(Ct, { block: "description" }) : void 0 : $ || J ? /* @__PURE__ */ e(
|
|
1665
1674
|
Wt,
|
|
1666
1675
|
{
|
|
1667
1676
|
"data-block": "description",
|
|
@@ -1677,10 +1686,10 @@ function Ua({
|
|
|
1677
1686
|
"data-card": "notes",
|
|
1678
1687
|
title: h("notesPanel.title"),
|
|
1679
1688
|
headingLevel: 3,
|
|
1680
|
-
children: /* @__PURE__ */ e(
|
|
1689
|
+
children: /* @__PURE__ */ e(Ct, {})
|
|
1681
1690
|
}
|
|
1682
1691
|
) : ge ? /* @__PURE__ */ e(
|
|
1683
|
-
|
|
1692
|
+
Ra,
|
|
1684
1693
|
{
|
|
1685
1694
|
preview: ge,
|
|
1686
1695
|
onOpenNotes: Ue ? L : void 0,
|
|
@@ -1688,7 +1697,7 @@ function Ua({
|
|
|
1688
1697
|
}
|
|
1689
1698
|
) : null,
|
|
1690
1699
|
/* @__PURE__ */ e(
|
|
1691
|
-
|
|
1700
|
+
Da,
|
|
1692
1701
|
{
|
|
1693
1702
|
...fe,
|
|
1694
1703
|
privacy: v,
|
|
@@ -1703,7 +1712,7 @@ function Ua({
|
|
|
1703
1712
|
status keeps its own segment and never folds. The actions fold
|
|
1704
1713
|
to icons, then into More, never onto a second line. Only a
|
|
1705
1714
|
refused status change adds a line, for its message. */
|
|
1706
|
-
/* @__PURE__ */ b("div", { className:
|
|
1715
|
+
/* @__PURE__ */ b("div", { className: La(), children: [
|
|
1707
1716
|
vt,
|
|
1708
1717
|
tt.length > 0 ? /* @__PURE__ */ e(
|
|
1709
1718
|
hn,
|
|
@@ -1713,7 +1722,7 @@ function Ua({
|
|
|
1713
1722
|
collapseToIcons: !0,
|
|
1714
1723
|
background: "surface",
|
|
1715
1724
|
size: "sm",
|
|
1716
|
-
className: `ds:min-w-0 ds:flex-1 ds:text-end ${
|
|
1725
|
+
className: `ds:min-w-0 ds:flex-1 ds:text-end ${_a}`,
|
|
1717
1726
|
children: tt
|
|
1718
1727
|
}
|
|
1719
1728
|
) : null
|
|
@@ -1731,7 +1740,7 @@ function Ua({
|
|
|
1731
1740
|
onBack: () => ie(!1),
|
|
1732
1741
|
"data-details-subview": "history",
|
|
1733
1742
|
children: /* @__PURE__ */ e("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
|
|
1734
|
-
|
|
1743
|
+
Ua,
|
|
1735
1744
|
{
|
|
1736
1745
|
history: w,
|
|
1737
1746
|
locale: c,
|
|
@@ -1820,7 +1829,7 @@ function Ua({
|
|
|
1820
1829
|
}
|
|
1821
1830
|
);
|
|
1822
1831
|
}
|
|
1823
|
-
const
|
|
1832
|
+
const Wa = rn(function({
|
|
1824
1833
|
state: n,
|
|
1825
1834
|
onRetry: i,
|
|
1826
1835
|
patientId: r,
|
|
@@ -1836,10 +1845,10 @@ const Ba = rn(function({
|
|
|
1836
1845
|
notesPreview: v,
|
|
1837
1846
|
onOpenNotes: y,
|
|
1838
1847
|
history: g,
|
|
1839
|
-
onOpenHistory:
|
|
1848
|
+
onOpenHistory: C,
|
|
1840
1849
|
noteUnrecordedEdits: L,
|
|
1841
1850
|
readOnly: P = !1,
|
|
1842
|
-
onStatusChange:
|
|
1851
|
+
onStatusChange: x,
|
|
1843
1852
|
allowedStatuses: M,
|
|
1844
1853
|
onDescriptionChange: D,
|
|
1845
1854
|
descriptionMaxLength: _,
|
|
@@ -1858,13 +1867,13 @@ const Ba = rn(function({
|
|
|
1858
1867
|
onSignOnDevice: V,
|
|
1859
1868
|
onOpenPatient: Ae,
|
|
1860
1869
|
shortcuts: Ne,
|
|
1861
|
-
documents:
|
|
1870
|
+
documents: Ce,
|
|
1862
1871
|
id: He,
|
|
1863
1872
|
className: he,
|
|
1864
1873
|
...X
|
|
1865
1874
|
}, Me) {
|
|
1866
1875
|
var be, Re;
|
|
1867
|
-
const { t: h, i18n: I } = te("ui"), Xe = st(), fe = He ?? Xe, w = st(), Ue = m ?? I.language, ge = !l && (a != null && a.trim()) ? a : h(k("region")), J = n.status === "ready" ? n.read : void 0,
|
|
1876
|
+
const { t: h, i18n: I } = te("ui"), Xe = st(), fe = He ?? Xe, w = st(), Ue = m ?? I.language, ge = !l && (a != null && a.trim()) ? a : h(k("region")), J = n.status === "ready" ? n.read : void 0, xe = n.status === "ready" ? n.read.eventId : n.eventId, ie = R(
|
|
1868
1877
|
void 0
|
|
1869
1878
|
), Te = ie.current !== void 0 && ie.current !== "ready";
|
|
1870
1879
|
we(() => {
|
|
@@ -1878,8 +1887,8 @@ const Ba = rn(function({
|
|
|
1878
1887
|
}, [We, w]);
|
|
1879
1888
|
const O = R(null);
|
|
1880
1889
|
J || (O.current = null);
|
|
1881
|
-
const Ie = R(null), $ = R({ state: n, eventId:
|
|
1882
|
-
$.current = { state: n, eventId:
|
|
1890
|
+
const Ie = R(null), $ = R({ state: n, eventId: xe, privacy: l, retryOffered: Q, onRetry: i });
|
|
1891
|
+
$.current = { state: n, eventId: xe, privacy: l, retryOffered: Q, onRetry: i };
|
|
1883
1892
|
const De = At(
|
|
1884
1893
|
() => ({
|
|
1885
1894
|
getEventId: () => $.current.eventId ?? null,
|
|
@@ -1938,7 +1947,7 @@ const Ba = rn(function({
|
|
|
1938
1947
|
}),
|
|
1939
1948
|
[]
|
|
1940
1949
|
);
|
|
1941
|
-
dn(
|
|
1950
|
+
dn(va, De, fe);
|
|
1942
1951
|
const ye = /* @__PURE__ */ e(
|
|
1943
1952
|
$t,
|
|
1944
1953
|
{
|
|
@@ -1951,7 +1960,7 @@ const Ba = rn(function({
|
|
|
1951
1960
|
);
|
|
1952
1961
|
let de;
|
|
1953
1962
|
return n.status === "ready" ? de = /* @__PURE__ */ e(
|
|
1954
|
-
|
|
1963
|
+
Ba,
|
|
1955
1964
|
{
|
|
1956
1965
|
read: n.read,
|
|
1957
1966
|
refreshing: n.refreshing === !0,
|
|
@@ -1972,10 +1981,10 @@ const Ba = rn(function({
|
|
|
1972
1981
|
notesPreview: v,
|
|
1973
1982
|
onOpenNotes: y,
|
|
1974
1983
|
history: g,
|
|
1975
|
-
onOpenHistory:
|
|
1984
|
+
onOpenHistory: C,
|
|
1976
1985
|
noteUnrecordedEdits: L,
|
|
1977
1986
|
readOnly: P,
|
|
1978
|
-
onStatusChange:
|
|
1987
|
+
onStatusChange: x,
|
|
1979
1988
|
allowedStatuses: M,
|
|
1980
1989
|
onDescriptionChange: D,
|
|
1981
1990
|
descriptionMaxLength: _,
|
|
@@ -1994,12 +2003,12 @@ const Ba = rn(function({
|
|
|
1994
2003
|
onSignOnDevice: V,
|
|
1995
2004
|
onOpenPatient: Ae,
|
|
1996
2005
|
shortcuts: Ne,
|
|
1997
|
-
documents:
|
|
2006
|
+
documents: Ce
|
|
1998
2007
|
},
|
|
1999
2008
|
n.read.eventId
|
|
2000
2009
|
) : n.status === "loading" ? de = /* @__PURE__ */ b(oe, { children: [
|
|
2001
2010
|
ye,
|
|
2002
|
-
/* @__PURE__ */ e(
|
|
2011
|
+
/* @__PURE__ */ e(Ma, {})
|
|
2003
2012
|
] }) : de = /* @__PURE__ */ b(oe, { children: [
|
|
2004
2013
|
ye,
|
|
2005
2014
|
/* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
@@ -2023,17 +2032,17 @@ const Ba = rn(function({
|
|
|
2023
2032
|
id: He,
|
|
2024
2033
|
"data-component": "appointment-details-panel",
|
|
2025
2034
|
"data-component-id": fe,
|
|
2026
|
-
"data-event-id":
|
|
2035
|
+
"data-event-id": xe,
|
|
2027
2036
|
"data-status": n.status,
|
|
2028
2037
|
"aria-busy": n.status === "loading" || void 0,
|
|
2029
|
-
className:
|
|
2038
|
+
className: Pa({ className: he }),
|
|
2030
2039
|
...X,
|
|
2031
2040
|
children: de
|
|
2032
2041
|
}
|
|
2033
2042
|
);
|
|
2034
2043
|
});
|
|
2035
|
-
|
|
2036
|
-
function
|
|
2044
|
+
Wa.displayName = "AppointmentDetailsPanel";
|
|
2045
|
+
function cs({
|
|
2037
2046
|
eventId: t,
|
|
2038
2047
|
load: n,
|
|
2039
2048
|
reloadKey: i
|
|
@@ -2050,42 +2059,42 @@ function ls({
|
|
|
2050
2059
|
a(void 0);
|
|
2051
2060
|
return;
|
|
2052
2061
|
}
|
|
2053
|
-
const L = new AbortController(), P = (
|
|
2054
|
-
L.signal.aborted || a({ eventId: t, selection: v, request: l, value:
|
|
2062
|
+
const L = new AbortController(), P = (x) => {
|
|
2063
|
+
L.signal.aborted || a({ eventId: t, selection: v, request: l, value: x });
|
|
2055
2064
|
};
|
|
2056
|
-
return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((
|
|
2065
|
+
return Promise.resolve().then(() => o.current(t, { signal: L.signal })).then((x) => {
|
|
2057
2066
|
var M, D;
|
|
2058
|
-
if (
|
|
2067
|
+
if (x.status !== "ready") {
|
|
2059
2068
|
P({
|
|
2060
2069
|
status: "refused",
|
|
2061
2070
|
eventId: t,
|
|
2062
|
-
reason:
|
|
2063
|
-
retryable:
|
|
2071
|
+
reason: x.reason,
|
|
2072
|
+
retryable: x.retryable
|
|
2064
2073
|
});
|
|
2065
2074
|
return;
|
|
2066
2075
|
}
|
|
2067
|
-
if (((M =
|
|
2076
|
+
if (((M = x.details) == null ? void 0 : M.eventId) !== t || !On((D = x.details.appointment) == null ? void 0 : D.startIso))
|
|
2068
2077
|
throw new Error(c.current);
|
|
2069
|
-
P({ status: "ready", read:
|
|
2070
|
-
}).catch((
|
|
2078
|
+
P({ status: "ready", read: x.details });
|
|
2079
|
+
}).catch((x) => {
|
|
2071
2080
|
P({
|
|
2072
2081
|
status: "error",
|
|
2073
2082
|
eventId: t,
|
|
2074
|
-
message: ot(
|
|
2083
|
+
message: ot(x, c.current)
|
|
2075
2084
|
});
|
|
2076
2085
|
}), () => L.abort();
|
|
2077
2086
|
}, [t, v, l]);
|
|
2078
2087
|
const y = ln(() => f((L) => L + 1), []);
|
|
2079
2088
|
if (t === null) return { state: null, retry: y };
|
|
2080
2089
|
const g = (m == null ? void 0 : m.eventId) === t && m.selection === v ? m : void 0;
|
|
2081
|
-
let
|
|
2082
|
-
return (g == null ? void 0 : g.request) === l ?
|
|
2090
|
+
let C = { status: "loading", eventId: t };
|
|
2091
|
+
return (g == null ? void 0 : g.request) === l ? C = g.value : (g == null ? void 0 : g.value.status) === "ready" && (C = { status: "ready", read: g.value.read, refreshing: !0 }), { state: C, retry: y };
|
|
2083
2092
|
}
|
|
2084
2093
|
export {
|
|
2085
|
-
|
|
2094
|
+
Wa as A,
|
|
2086
2095
|
ue as D,
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2096
|
+
va as a,
|
|
2097
|
+
fa as s,
|
|
2098
|
+
cs as u
|
|
2090
2099
|
};
|
|
2091
|
-
//# sourceMappingURL=use-appointment-details-read-
|
|
2100
|
+
//# sourceMappingURL=use-appointment-details-read-DOPHCTxO.js.map
|