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