@alfadocs/ui-kit 1.133.0 → 1.135.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/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
- package/dist/_chunks/ai-summary-panel-B70S2lgC.js +455 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
- package/dist/_chunks/appointment-card-BT1cMZIX.js +504 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BP_ACFz5.js} +3 -3
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/appointment-tray-B3gSHL1j.js +200 -0
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
- package/dist/_chunks/ban-CiSCCcOE.js +15 -0
- package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BHx6kUhX.js → calendar-appointment-editor-dialog-I5PfWudy.js} +15 -15
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
- package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
- package/dist/_chunks/communications-panel-BKPHCiMB.js +973 -0
- package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
- package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
- package/dist/_chunks/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
- package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
- package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
- package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
- package/dist/_chunks/house-DGCypGTo.js +21 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
- package/dist/_chunks/keypad-DBH_keVs.js +152 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
- package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
- package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
- package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
- package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
- package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BvjAo4RQ.js} +6 -5
- package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
- package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
- package/dist/_chunks/patient-account-settings-B2XbN_Fe.js +546 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-check-in-resume-B7NY-6KI.js +742 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
- package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
- package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
- package/dist/_chunks/portal-details-DCIiGkHA.js +478 -0
- package/dist/_chunks/portal-documents-DJOH8pZx.js +902 -0
- package/dist/_chunks/portal-parts-Br8wuala.js +285 -0
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
- package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
- package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
- package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
- package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
- package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
- package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
- package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
- package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
- package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-DvwqPfFR.js} +40 -39
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-6_OmOwUs.js} +115 -114
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
- package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
- package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +933 -324
- package/dist/agent-i18n/en.json +103 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- package/dist/components/appointment-card/appointment-card.d.ts +45 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
- package/dist/components/appointment-card/index.js +3 -3
- package/dist/components/appointment-details-panel/index.js +1 -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/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/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/care-plan-header/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +3 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +136 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +8 -0
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
- package/dist/components/finished-terminal/index.d.ts +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/index.d.ts +14 -0
- package/dist/components/keypad/index.d.ts +3 -0
- package/dist/components/keypad/index.js +6 -0
- package/dist/components/keypad/keypad.d.ts +54 -0
- package/dist/components/keypad-button/index.d.ts +3 -0
- package/dist/components/keypad-button/index.js +6 -0
- package/dist/components/keypad-button/keypad-button.d.ts +33 -0
- package/dist/components/message-card/index.js +2 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +11 -0
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
- package/dist/components/pin-entry/index.d.ts +3 -0
- package/dist/components/pin-entry/index.js +5 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
- package/dist/components/pin-entry/pin-entry.d.ts +64 -0
- package/dist/components/pin-indicator/index.d.ts +3 -0
- package/dist/components/pin-indicator/index.js +9 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
- package/dist/components/product-hub-tray/index.js +2 -2
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/session-countdown/session-countdown.d.ts +19 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +17 -6
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
- package/dist/components/sms-code-entry/index.d.ts +3 -0
- package/dist/components/sms-code-entry/index.js +5 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
- package/dist/components/step-up-dialog/index.d.ts +3 -0
- package/dist/components/step-up-dialog/index.js +5 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +2 -2
- package/dist/core.css +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-signing-session.d.ts +7 -2
- package/dist/host-compat.css +18 -3
- package/dist/i18n/locales/ar.d.ts +605 -1
- package/dist/i18n/locales/ar.js +603 -3
- package/dist/i18n/locales/de.d.ts +605 -1
- package/dist/i18n/locales/de.js +611 -4
- package/dist/i18n/locales/el.d.ts +605 -1
- package/dist/i18n/locales/el.js +606 -4
- package/dist/i18n/locales/en.d.ts +607 -1
- package/dist/i18n/locales/en.js +614 -4
- package/dist/i18n/locales/es.d.ts +605 -1
- package/dist/i18n/locales/es.js +604 -4
- package/dist/i18n/locales/fr.d.ts +605 -1
- package/dist/i18n/locales/fr.js +604 -4
- package/dist/i18n/locales/hi.d.ts +605 -1
- package/dist/i18n/locales/hi.js +604 -4
- package/dist/i18n/locales/it.d.ts +605 -1
- package/dist/i18n/locales/it.js +611 -4
- package/dist/i18n/locales/ja.d.ts +605 -1
- package/dist/i18n/locales/ja.js +604 -4
- package/dist/i18n/locales/nl.d.ts +605 -1
- package/dist/i18n/locales/nl.js +611 -4
- package/dist/i18n/locales/pl.d.ts +605 -1
- package/dist/i18n/locales/pl.js +611 -4
- package/dist/i18n/locales/pt.d.ts +605 -1
- package/dist/i18n/locales/pt.js +611 -4
- package/dist/i18n/locales/ro.d.ts +605 -1
- package/dist/i18n/locales/ro.js +611 -4
- package/dist/i18n/locales/ru.d.ts +605 -1
- package/dist/i18n/locales/ru.js +603 -3
- package/dist/i18n/locales/sq.d.ts +605 -1
- package/dist/i18n/locales/sq.js +604 -4
- package/dist/i18n/locales/sv.d.ts +605 -1
- package/dist/i18n/locales/sv.js +604 -4
- package/dist/i18n/locales/tr.d.ts +605 -1
- package/dist/i18n/locales/tr.js +606 -4
- package/dist/i18n/locales/zh.d.ts +605 -1
- package/dist/i18n/locales/zh.js +604 -4
- package/dist/index.js +1305 -1231
- package/dist/locales/ar.json +606 -2
- package/dist/locales/de.json +607 -3
- package/dist/locales/el.json +607 -3
- package/dist/locales/en.json +607 -3
- package/dist/locales/es.json +607 -3
- package/dist/locales/fr.json +607 -3
- package/dist/locales/hi.json +607 -3
- package/dist/locales/it.json +607 -3
- package/dist/locales/ja.json +607 -3
- package/dist/locales/nl.json +607 -3
- package/dist/locales/pl.json +607 -3
- package/dist/locales/pt.json +607 -3
- package/dist/locales/ro.json +607 -3
- package/dist/locales/ru.json +606 -2
- package/dist/locales/sq.json +607 -3
- package/dist/locales/sv.json +607 -3
- package/dist/locales/tr.json +607 -3
- package/dist/locales/zh.json +607 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
- package/dist/patterns/check-in-documents/index.d.ts +4 -0
- package/dist/patterns/check-in-documents/index.js +5 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.d.ts +4 -0
- package/dist/patterns/patient-account-settings/index.js +5 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
- package/dist/patterns/patient-check-in/index.d.ts +20 -0
- package/dist/patterns/patient-check-in/index.js +13 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
- package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
- package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
- package/dist/patterns/patient-portal/index.d.ts +12 -0
- package/dist/patterns/patient-portal/index.js +13 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
- package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
- package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
- package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
- package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
- package/dist/patterns/patient-sign-in/index.d.ts +7 -0
- package/dist/patterns/patient-sign-in/index.js +15 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +26 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +138 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +104 -0
- package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
- package/dist/patterns/signing/signing-footer.d.ts +56 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
- package/dist/patterns/signing/signing-roster.d.ts +44 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +57 -1
- package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
- package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
- package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
- package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
- package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as h, Fragment as ie } from "react/jsx-runtime";
|
|
2
2
|
import { c as vt } from "./index-D2ZczOXr.js";
|
|
3
3
|
import { useId as ot, useRef as _, forwardRef as ln, useEffect as xe, useMemo as Mt, useState as H, useCallback as cn } from "react";
|
|
4
4
|
import { useTranslation as B } from "react-i18next";
|
|
5
5
|
import { u as un } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { u as me } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
7
|
import { c as mn } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { g as dt } from "./get-error-message-DbFUzuja.js";
|
|
9
|
+
import { h as at } from "./handled-rejection-C-6Dq0As.js";
|
|
10
|
+
import { b as pn, P as Lt } from "./privacy-mask-C19dJFMk.js";
|
|
10
11
|
import { A as $ } from "./alert-C4WKViaS.js";
|
|
11
12
|
import { B as L } from "./button-DohK_Ak_.js";
|
|
12
13
|
import { I as Yt } from "./icon-button-S8_weU3g.js";
|
|
13
|
-
import { B as
|
|
14
|
+
import { B as fn } from "./button-group-DuQuuulC.js";
|
|
14
15
|
import { D as qe } from "./dropdown-menu-DBWaW4pq.js";
|
|
15
16
|
import { E as Gt } from "./editable-description-KU56SP4P.js";
|
|
16
|
-
import { N as lt } from "./note-timeline-
|
|
17
|
+
import { N as lt } from "./note-timeline-BbjHMhkL.js";
|
|
17
18
|
import { P as Vt } from "./panel-header-CbtlTe85.js";
|
|
18
19
|
import { P as it } from "./panel-subview-DCyvn-49.js";
|
|
19
|
-
import { P as Xt } from "./patient-summary-card-
|
|
20
|
+
import { P as Xt } from "./patient-summary-card-Bl2NknPe.js";
|
|
20
21
|
import { S as pe } from "./section-card-CYfeQ6EQ.js";
|
|
21
|
-
import { C as
|
|
22
|
+
import { C as hn, S as we } from "./skeleton-tTWJpvAq.js";
|
|
22
23
|
import { T as gn } from "./text-area-COMVJ1yE.js";
|
|
23
24
|
import { T as vn } from "./tooltip-uEBdD1-5.js";
|
|
24
25
|
import { T as Qt } from "./treatment-receipt-BZzwvsnY.js";
|
|
25
26
|
import { a as st } from "./whatsapp-button-XbozeDl_.js";
|
|
26
|
-
import { a as Jt, W as yn } from "./workflow-status-
|
|
27
|
-
import { u as yt, a as Ot, i as bn } from "./appointment-workflow-status-
|
|
27
|
+
import { a as Jt, W as yn } from "./workflow-status-CO0mxXs2.js";
|
|
28
|
+
import { u as yt, a as Ot, i as bn } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
28
29
|
import { E as kn } from "./empty-state-DwJ5YNzz.js";
|
|
29
30
|
import { T as Oe } from "./timeline-DXko0M1t.js";
|
|
30
31
|
import { C as bt } from "./calendar-clock-hbObjfGY.js";
|
|
31
32
|
import { T as Zt } from "./trash-2-uumy3fy1.js";
|
|
32
|
-
import { A as rt } from "./entity-card-
|
|
33
|
+
import { A as rt } from "./entity-card-p-LANpYt.js";
|
|
33
34
|
import { C as wn } from "./calendar-plus-BFrIRE4r.js";
|
|
34
35
|
import { P as Ne } from "./pencil-B1sKKyuT.js";
|
|
35
36
|
import { C as ct } from "./clock-Drd4Wtis.js";
|
|
@@ -255,13 +256,13 @@ const ta = [
|
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
258
|
};
|
|
258
|
-
function
|
|
259
|
+
function ft(t) {
|
|
259
260
|
const n = document.activeElement;
|
|
260
261
|
n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
|
|
261
262
|
}
|
|
262
263
|
function _e(t) {
|
|
263
264
|
const n = document.getElementById(t);
|
|
264
|
-
n && !n.hasAttribute("tabindex") && (n.tabIndex = -1),
|
|
265
|
+
n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), ft(n);
|
|
265
266
|
}
|
|
266
267
|
const ue = {
|
|
267
268
|
advancedSignature: "setup-advanced-signature",
|
|
@@ -309,7 +310,7 @@ function ia(t, n, i) {
|
|
|
309
310
|
return "";
|
|
310
311
|
}
|
|
311
312
|
}
|
|
312
|
-
const
|
|
313
|
+
const ht = {
|
|
313
314
|
weekday: "short",
|
|
314
315
|
day: "numeric",
|
|
315
316
|
month: "short",
|
|
@@ -326,11 +327,11 @@ const ra = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})$/;
|
|
|
326
327
|
function oa(t) {
|
|
327
328
|
const n = typeof t == "string" ? ra.exec(t) : null;
|
|
328
329
|
if (!n) return;
|
|
329
|
-
const [i, o, s, d, p,
|
|
330
|
-
if (c.setFullYear(i, o, 0), o < 1 || o > 12 || s < 1 || s > c.getDate() || d > 23 || p > 59 ||
|
|
330
|
+
const [i, o, s, d, p, f] = n.slice(1).map(Number), c = /* @__PURE__ */ new Date(0);
|
|
331
|
+
if (c.setFullYear(i, o, 0), o < 1 || o > 12 || s < 1 || s > c.getDate() || d > 23 || p > 59 || f > 59)
|
|
331
332
|
return;
|
|
332
333
|
const r = /* @__PURE__ */ new Date(0);
|
|
333
|
-
return r.setFullYear(i, o - 1, s), r.setHours(d, p,
|
|
334
|
+
return r.setFullYear(i, o - 1, s), r.setHours(d, p, f, 0), r;
|
|
334
335
|
}
|
|
335
336
|
function da(t) {
|
|
336
337
|
return t.map((n) => {
|
|
@@ -359,7 +360,7 @@ function ma(t) {
|
|
|
359
360
|
const n = tn(t);
|
|
360
361
|
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(n)}`;
|
|
361
362
|
}
|
|
362
|
-
const P = (t) => `calendarWorkspace.details.${t}`, pa = /* @__PURE__ */ new Set(["patient", "care"]), Bt = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i,
|
|
363
|
+
const P = (t) => `calendarWorkspace.details.${t}`, pa = /* @__PURE__ */ new Set(["patient", "care"]), Bt = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i, fa = (t) => {
|
|
363
364
|
switch (t.field) {
|
|
364
365
|
case "time":
|
|
365
366
|
return !!(t.fromIso || t.toIso);
|
|
@@ -369,9 +370,9 @@ const P = (t) => `calendarWorkspace.details.${t}`, pa = /* @__PURE__ */ new Set(
|
|
|
369
370
|
return !!(t.from || t.to);
|
|
370
371
|
}
|
|
371
372
|
};
|
|
372
|
-
function
|
|
373
|
+
function ha(t) {
|
|
373
374
|
const n = t.kind === "moved" ? [{ field: "time", fromIso: t.fromIso, toIso: t.toIso }] : t.kind === "resized" ? [{ field: "duration", fromMin: t.fromMin, toMin: t.toMin }] : t.kind === "status" ? [{ field: "status", from: t.from, to: t.to }] : [], i = ("changes" in t ? t.changes ?? [] : []).filter(
|
|
374
|
-
|
|
375
|
+
fa
|
|
375
376
|
), o = new Set(n.map((s) => s.field));
|
|
376
377
|
return [
|
|
377
378
|
...n,
|
|
@@ -385,15 +386,15 @@ function va({
|
|
|
385
386
|
noteUnrecordedEdits: i = !1,
|
|
386
387
|
privacy: o = !1
|
|
387
388
|
}) {
|
|
388
|
-
const { t: s, i18n: d } = B("ui"), { optionFor: p } = yt(null),
|
|
389
|
+
const { t: s, i18n: d } = B("ui"), { optionFor: p } = yt(null), f = n ?? d.language, c = (a, m) => {
|
|
389
390
|
try {
|
|
390
|
-
return new Intl.DateTimeFormat(
|
|
391
|
+
return new Intl.DateTimeFormat(f, m).format(
|
|
391
392
|
new Date(a)
|
|
392
393
|
);
|
|
393
394
|
} catch {
|
|
394
395
|
return a;
|
|
395
396
|
}
|
|
396
|
-
}, r = (a) => c(a,
|
|
397
|
+
}, r = (a) => c(a, ht), l = s(P("history.notSet")), g = (a) => {
|
|
397
398
|
switch (a.field) {
|
|
398
399
|
case "status":
|
|
399
400
|
return {
|
|
@@ -448,9 +449,9 @@ function va({
|
|
|
448
449
|
size: "sm"
|
|
449
450
|
}
|
|
450
451
|
) : m(void 0, !1), { from: b, to: A } = g(a);
|
|
451
|
-
return /* @__PURE__ */
|
|
452
|
+
return /* @__PURE__ */ h("div", { className: "ds:min-w-0", "data-history-change": a.field, children: [
|
|
452
453
|
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: w(a) }),
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ h(
|
|
454
455
|
"div",
|
|
455
456
|
{
|
|
456
457
|
"aria-hidden": "true",
|
|
@@ -492,7 +493,7 @@ function va({
|
|
|
492
493
|
icon: /* @__PURE__ */ e(Zt, { size: 16, "aria-hidden": "true" })
|
|
493
494
|
};
|
|
494
495
|
}
|
|
495
|
-
const m =
|
|
496
|
+
const m = ha(a), k = o ? m.filter((y) => !pa.has(y.field)) : m, b = new Set(k.map((y) => y.field)), A = [
|
|
496
497
|
...a.kind === "edited" ? a.fields : [],
|
|
497
498
|
...m.filter((y) => !b.has(y.field)).map((y) => y.field)
|
|
498
499
|
].filter(
|
|
@@ -554,13 +555,13 @@ function va({
|
|
|
554
555
|
title: s(P(y.title)),
|
|
555
556
|
type: a.kind === "moved" || a.kind === "resized" ? "info" : a.kind === "status" && (a.to === "cancelled" || a.to === "absent") ? "warning" : "neutral",
|
|
556
557
|
icon: y.icon,
|
|
557
|
-
detail: /* @__PURE__ */
|
|
558
|
+
detail: /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
558
559
|
/* @__PURE__ */ e(
|
|
559
560
|
"dl",
|
|
560
561
|
{
|
|
561
562
|
"aria-label": s(P("history.changesLabel")),
|
|
562
563
|
className: "ds:m-0 ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:items-baseline ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-xs)]",
|
|
563
|
-
children: k.map((M) => /* @__PURE__ */
|
|
564
|
+
children: k.map((M) => /* @__PURE__ */ h("div", { className: "ds:contents", children: [
|
|
564
565
|
/* @__PURE__ */ e("dt", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: s(P(`history.fields.${M.field}`)) }),
|
|
565
566
|
/* @__PURE__ */ e("dd", { className: "ds:m-0 ds:min-w-0", children: v(M) })
|
|
566
567
|
] }, M.field))
|
|
@@ -586,7 +587,7 @@ function va({
|
|
|
586
587
|
}
|
|
587
588
|
) : /* @__PURE__ */ e(Oe, { order: "newest-first", "aria-label": s(P("historyTitle")), children: da(t).map((a) => {
|
|
588
589
|
const m = N(a);
|
|
589
|
-
return /* @__PURE__ */
|
|
590
|
+
return /* @__PURE__ */ h(
|
|
590
591
|
Oe.Event,
|
|
591
592
|
{
|
|
592
593
|
eventId: a.id,
|
|
@@ -601,7 +602,7 @@ function va({
|
|
|
601
602
|
description: m.detail,
|
|
602
603
|
className: "ds:[padding-block-end:0] ds:[&>[data-component=card]]:border-[color:var(--card-border)] ds:[&>[data-component=card]]:shadow-[var(--shadow-card)]",
|
|
603
604
|
actor: a.actor.trim() ? { name: a.actor } : void 0,
|
|
604
|
-
children: /* @__PURE__ */
|
|
605
|
+
children: /* @__PURE__ */ h("span", { className: "ds:mt-[var(--spacing-sm)] ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
605
606
|
/* @__PURE__ */ e(
|
|
606
607
|
bt,
|
|
607
608
|
{
|
|
@@ -614,7 +615,7 @@ function va({
|
|
|
614
615
|
{
|
|
615
616
|
date: a.atIso,
|
|
616
617
|
relative: !1,
|
|
617
|
-
locale:
|
|
618
|
+
locale: f
|
|
618
619
|
}
|
|
619
620
|
)
|
|
620
621
|
] })
|
|
@@ -685,17 +686,17 @@ function ka({
|
|
|
685
686
|
flags: s,
|
|
686
687
|
age: d,
|
|
687
688
|
onOpenPatient: p,
|
|
688
|
-
highlightedAnamnesisCount:
|
|
689
|
+
highlightedAnamnesisCount: f = 0,
|
|
689
690
|
expiredAnamnesisCount: c = 0,
|
|
690
691
|
anamnesisAnswers: r = [],
|
|
691
692
|
locale: l
|
|
692
693
|
}) {
|
|
693
|
-
const { t: g, i18n: w } = B("ui"), v = (b) => `calendarWorkspace.details.${b}`, { optionFor: N } = yt(o), a = o ? N(o) : void 0, m =
|
|
694
|
-
return /* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
694
|
+
const { t: g, i18n: w } = B("ui"), v = (b) => `calendarWorkspace.details.${b}`, { optionFor: N } = yt(o), a = o ? N(o) : void 0, m = f, k = c;
|
|
695
|
+
return /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)] ds:pb-0", children: [
|
|
696
|
+
/* @__PURE__ */ h("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
696
697
|
/* @__PURE__ */ e(ut, { name: t, src: n }),
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
/* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[min-inline-size:0]", children: [
|
|
699
|
+
/* @__PURE__ */ h("span", { className: "ds:flex ds:flex-wrap ds:items-baseline ds:gap-[var(--spacing-2xs)] ds:text-start", children: [
|
|
699
700
|
p ? /* @__PURE__ */ e(L, { size: "sm", intent: "link", onClick: () => p(), children: t }) : /* @__PURE__ */ e("span", { className: "ds:font-[var(--font-weight-semibold)] ds:truncate", children: t }),
|
|
700
701
|
d !== void 0 ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: g(v("patientAge"), { n: d }) }) : null
|
|
701
702
|
] }),
|
|
@@ -712,7 +713,7 @@ function ka({
|
|
|
712
713
|
/* @__PURE__ */ e(ba, { event: s })
|
|
713
714
|
] })
|
|
714
715
|
] }),
|
|
715
|
-
m + k > 0 ? /* @__PURE__ */
|
|
716
|
+
m + k > 0 ? /* @__PURE__ */ h(
|
|
716
717
|
$,
|
|
717
718
|
{
|
|
718
719
|
variant: "warning",
|
|
@@ -728,7 +729,7 @@ function ka({
|
|
|
728
729
|
/* Question · yes or no · answer · interview date, as the
|
|
729
730
|
platform's details dialog lists them. A list, not a
|
|
730
731
|
Description, which renders a <p>. */
|
|
731
|
-
/* @__PURE__ */ e("ul", { className: "type-body-sm ds:m-0 ds:mt-[var(--spacing-xs)] ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0", children: r.map((b) => /* @__PURE__ */
|
|
732
|
+
/* @__PURE__ */ e("ul", { className: "type-body-sm ds:m-0 ds:mt-[var(--spacing-xs)] ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0", children: r.map((b) => /* @__PURE__ */ h("li", { className: "ds:text-start", children: [
|
|
732
733
|
/* @__PURE__ */ e("span", { className: "ds:font-[var(--font-weight-semibold)]", children: b.question }),
|
|
733
734
|
` · ${g(v(b.yes ? "anamnesisYes" : "anamnesisNo"))}`,
|
|
734
735
|
b.answer ? ` · ${b.answer}` : "",
|
|
@@ -780,7 +781,7 @@ function Aa(t, n, i) {
|
|
|
780
781
|
function Ta(t, n, i, o) {
|
|
781
782
|
const s = la[i.frequency];
|
|
782
783
|
if (!s) return;
|
|
783
|
-
const d = (N) => `calendarWorkspace.editor.${N}`, p = (N) => `calendarWorkspace.details.${N}`,
|
|
784
|
+
const d = (N) => `calendarWorkspace.editor.${N}`, p = (N) => `calendarWorkspace.details.${N}`, f = xa[i.frequency], c = f && (i.interval ?? 1) > 1 ? t(d(f), { count: i.interval }) : t(d(s)), r = (i.byDay ?? []).map((N) => Ia.exec(N)).filter((N) => N !== null), l = i.frequency === "weekly" ? Na.filter(
|
|
784
785
|
(N) => r.some(([, a, m]) => !a && m === N)
|
|
785
786
|
) : [], g = i.frequency === "monthly" || i.frequency === "yearly" ? r.find(([, N]) => N) : void 0;
|
|
786
787
|
let w = c;
|
|
@@ -812,7 +813,7 @@ function gt({
|
|
|
812
813
|
heading: n,
|
|
813
814
|
facts: i
|
|
814
815
|
}) {
|
|
815
|
-
return /* @__PURE__ */
|
|
816
|
+
return /* @__PURE__ */ h(ie, { children: [
|
|
816
817
|
/* @__PURE__ */ e(Se.Eyebrow, { children: t }),
|
|
817
818
|
/* @__PURE__ */ e(Se.Heading, { children: n }),
|
|
818
819
|
i && i.length > 0 ? /* @__PURE__ */ e(Se.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((o, s) => /* @__PURE__ */ e(
|
|
@@ -833,7 +834,7 @@ function Ut({
|
|
|
833
834
|
facts: o,
|
|
834
835
|
children: s
|
|
835
836
|
}) {
|
|
836
|
-
return /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ h(Se, { children: [
|
|
837
838
|
/* @__PURE__ */ e(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: Ea, children: s }) }),
|
|
838
839
|
/* @__PURE__ */ e(Se.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(gt, { eyebrow: n, heading: i, facts: o }) })
|
|
839
840
|
] });
|
|
@@ -864,7 +865,7 @@ function Ye({
|
|
|
864
865
|
}
|
|
865
866
|
function qt({ rows: t }) {
|
|
866
867
|
const n = t.filter((i) => !!i);
|
|
867
|
-
return n.length === 0 ? null : /* @__PURE__ */ e(je, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */
|
|
868
|
+
return n.length === 0 ? null : /* @__PURE__ */ e(je, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */ h(
|
|
868
869
|
je.Row,
|
|
869
870
|
{
|
|
870
871
|
"data-row": i.id,
|
|
@@ -885,7 +886,7 @@ function Ca({
|
|
|
885
886
|
mapsLink: s = !1,
|
|
886
887
|
shortcuts: d,
|
|
887
888
|
onRequestSignature: p,
|
|
888
|
-
onSignOnDevice:
|
|
889
|
+
onSignOnDevice: f,
|
|
889
890
|
onOpenPatient: c
|
|
890
891
|
}) {
|
|
891
892
|
const { t: r } = B("ui"), { patient: l, signing: g, money: w, booking: v } = t;
|
|
@@ -895,7 +896,7 @@ function Ca({
|
|
|
895
896
|
text: m ? a.requestedVia === "sms" ? r(u("signingRequestedSms")) : a.requestedVia === "email" ? r(u("signingRequestedEmail")) : r(u("signingNotRequested")) : r(u("signingAllSigned"))
|
|
896
897
|
},
|
|
897
898
|
...a.aesSetUp ? [] : [{ text: r(u("aesMissing")), muted: !0 }]
|
|
898
|
-
] : [], b = ((g == null ? void 0 : g.required) ?? 0) > 0 && m, A = !!(d != null && d.advancedSignatureUrl) && ((g == null ? void 0 : g.required) ?? 0) > 0 && !(g != null && g.aesSetUp), T = !!p && b, S = !!
|
|
899
|
+
] : [], b = ((g == null ? void 0 : g.required) ?? 0) > 0 && m, A = !!(d != null && d.advancedSignatureUrl) && ((g == null ? void 0 : g.required) ?? 0) > 0 && !(g != null && g.aesSetUp), T = !!p && b, S = !!f && b, y = l.highlightedAnamnesisCount ?? 0, M = l.expiredAnamnesisCount ?? 0, W = (l.highlightedAnamnesisAnswers ?? []).map((R) => ({
|
|
899
900
|
text: [
|
|
900
901
|
R.question,
|
|
901
902
|
r(u(R.yes ? "anamnesisYes" : "anamnesisNo")),
|
|
@@ -956,7 +957,7 @@ function Ca({
|
|
|
956
957
|
)
|
|
957
958
|
}
|
|
958
959
|
] : []
|
|
959
|
-
], V = (w == null ? void 0 : w.unpaidAmount) ?? 0, X = (w == null ? void 0 : w.billableAmount) ?? 0, J = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, Z = (R, ee, te, Ie,
|
|
960
|
+
], V = (w == null ? void 0 : w.unpaidAmount) ?? 0, X = (w == null ? void 0 : w.billableAmount) ?? 0, J = (v == null ? void 0 : v.paidOnlineAmount) ?? 0, Z = (R, ee, te, Ie, fe, ne) => /* @__PURE__ */ e(
|
|
960
961
|
Ut,
|
|
961
962
|
{
|
|
962
963
|
id: te,
|
|
@@ -964,7 +965,7 @@ function Ca({
|
|
|
964
965
|
heading: r(u(Ie), {
|
|
965
966
|
amount: sn(n, ee, i)
|
|
966
967
|
}),
|
|
967
|
-
facts: [{ text: r(u(
|
|
968
|
+
facts: [{ text: r(u(fe)) }],
|
|
968
969
|
children: /* @__PURE__ */ e(
|
|
969
970
|
Tn,
|
|
970
971
|
{
|
|
@@ -1016,8 +1017,8 @@ function Ca({
|
|
|
1016
1017
|
}
|
|
1017
1018
|
)
|
|
1018
1019
|
},
|
|
1019
|
-
extraChips: V > 0 || X > 0 || J > 0 || M > 0 || A || T || S || c ? /* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */
|
|
1020
|
+
extraChips: V > 0 || X > 0 || J > 0 || M > 0 || A || T || S || c ? /* @__PURE__ */ h(ie, { children: [
|
|
1021
|
+
/* @__PURE__ */ h("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1021
1022
|
V > 0 ? Z(
|
|
1022
1023
|
"debt",
|
|
1023
1024
|
V,
|
|
@@ -1062,7 +1063,7 @@ function Ca({
|
|
|
1062
1063
|
"data-action": ue.signOnDevice,
|
|
1063
1064
|
"aria-label": `${r(u("signingRequest"))}: ${r(u("signingOnDevice"))}`,
|
|
1064
1065
|
startIcon: /* @__PURE__ */ e(Ft, { "aria-hidden": "true" }),
|
|
1065
|
-
onClick: () =>
|
|
1066
|
+
onClick: () => f(t.eventId),
|
|
1066
1067
|
children: r(u("signingOnDevice"))
|
|
1067
1068
|
}
|
|
1068
1069
|
) : null,
|
|
@@ -1146,7 +1147,7 @@ function Ra({
|
|
|
1146
1147
|
chair: s,
|
|
1147
1148
|
description: d,
|
|
1148
1149
|
privacy: p = !1,
|
|
1149
|
-
history:
|
|
1150
|
+
history: f
|
|
1150
1151
|
}) {
|
|
1151
1152
|
const { t: c } = B("ui"), { appointment: r, booking: l, patient: g } = t, w = (y) => c(`calendarWorkspace.editor.${y}`), v = new Date(r.startIso), N = new Date(v.getTime() + r.durationMin * 6e4), a = Number.isFinite(v.getTime()), { recurrence: m } = r, k = m && Ta(c, n, m, r.startIso), b = l ? [
|
|
1152
1153
|
l.bookedAtIso && {
|
|
@@ -1159,7 +1160,7 @@ function Ra({
|
|
|
1159
1160
|
format: "absolute",
|
|
1160
1161
|
shape: "bare",
|
|
1161
1162
|
locale: n,
|
|
1162
|
-
absoluteFormat:
|
|
1163
|
+
absoluteFormat: ht
|
|
1163
1164
|
}
|
|
1164
1165
|
)
|
|
1165
1166
|
},
|
|
@@ -1189,10 +1190,10 @@ function Ra({
|
|
|
1189
1190
|
label: c(u("paidOnline")),
|
|
1190
1191
|
value: sn(n, l.paidOnlineAmount, i)
|
|
1191
1192
|
}
|
|
1192
|
-
] : [], A = p ? b.filter((y) => y && y.id === "bookedAt") : b, T = A.some(Boolean), S = l || r.bookedOnline ||
|
|
1193
|
+
] : [], A = p ? b.filter((y) => y && y.id === "bookedAt") : b, T = A.some(Boolean), S = l || r.bookedOnline || f == null ? void 0 : f.filter(
|
|
1193
1194
|
(y) => y.kind === "created" && y.actor.trim() !== ""
|
|
1194
1195
|
).sort((y, M) => Date.parse(y.atIso) - Date.parse(M.atIso))[0];
|
|
1195
|
-
return /* @__PURE__ */
|
|
1196
|
+
return /* @__PURE__ */ h(
|
|
1196
1197
|
pe,
|
|
1197
1198
|
{
|
|
1198
1199
|
"data-card": "appointment",
|
|
@@ -1251,7 +1252,7 @@ function Ra({
|
|
|
1251
1252
|
id: "createdBy",
|
|
1252
1253
|
label: c(u("createdBy")),
|
|
1253
1254
|
icon: /* @__PURE__ */ e(ut, { name: S.actor, size: "xs" }),
|
|
1254
|
-
value: /* @__PURE__ */
|
|
1255
|
+
value: /* @__PURE__ */ h("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
|
|
1255
1256
|
/* @__PURE__ */ e("span", { children: S.actor }),
|
|
1256
1257
|
" ",
|
|
1257
1258
|
/* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
|
|
@@ -1261,7 +1262,7 @@ function Ra({
|
|
|
1261
1262
|
format: "absolute",
|
|
1262
1263
|
shape: "bare",
|
|
1263
1264
|
locale: n,
|
|
1264
|
-
absoluteFormat:
|
|
1265
|
+
absoluteFormat: ht
|
|
1265
1266
|
}
|
|
1266
1267
|
) })
|
|
1267
1268
|
] })
|
|
@@ -1275,7 +1276,7 @@ function Ra({
|
|
|
1275
1276
|
]
|
|
1276
1277
|
}
|
|
1277
1278
|
),
|
|
1278
|
-
T ? /* @__PURE__ */
|
|
1279
|
+
T ? /* @__PURE__ */ h(
|
|
1279
1280
|
"div",
|
|
1280
1281
|
{
|
|
1281
1282
|
"data-block": "booking",
|
|
@@ -1297,16 +1298,16 @@ function Pa({
|
|
|
1297
1298
|
privacy: o = !1,
|
|
1298
1299
|
carePlanUrl: s
|
|
1299
1300
|
}) {
|
|
1300
|
-
const { t: d } = B("ui"), { care: p } = t,
|
|
1301
|
-
return !p || !
|
|
1301
|
+
const { t: d } = B("ui"), { care: p } = t, f = o || p == null ? void 0 : p.plan;
|
|
1302
|
+
return !p || !f && p.lines.length === 0 ? null : /* @__PURE__ */ h(
|
|
1302
1303
|
pe,
|
|
1303
1304
|
{
|
|
1304
1305
|
"data-card": "treatments",
|
|
1305
1306
|
title: d(u("sectionTreatments")),
|
|
1306
1307
|
headingLevel: 3,
|
|
1307
1308
|
children: [
|
|
1308
|
-
|
|
1309
|
-
/* @__PURE__ */
|
|
1309
|
+
f ? /* @__PURE__ */ h("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: [
|
|
1310
|
+
/* @__PURE__ */ h("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
|
|
1310
1311
|
/* @__PURE__ */ e(
|
|
1311
1312
|
mt,
|
|
1312
1313
|
{
|
|
@@ -1314,7 +1315,7 @@ function Pa({
|
|
|
1314
1315
|
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
|
|
1315
1316
|
}
|
|
1316
1317
|
),
|
|
1317
|
-
|
|
1318
|
+
f.number ? d(u("planLine"), { number: f.number, name: f.name }) : f.name
|
|
1318
1319
|
] }),
|
|
1319
1320
|
s ? /* @__PURE__ */ e(
|
|
1320
1321
|
Ye,
|
|
@@ -1351,15 +1352,15 @@ function Ma({
|
|
|
1351
1352
|
me(() => {
|
|
1352
1353
|
p.current && (d !== "loading" && (p.current = !1), _e(s));
|
|
1353
1354
|
}, [d, s]);
|
|
1354
|
-
const
|
|
1355
|
-
return /* @__PURE__ */
|
|
1355
|
+
const f = t.total ?? (d === "ready" ? t.notes.length : null), c = Math.max(0, (f ?? 0) - jt), r = c > 0 ? o(u("notesMore"), { n: c }) : o(u("notesPreviewOpen"));
|
|
1356
|
+
return /* @__PURE__ */ h(
|
|
1356
1357
|
pe,
|
|
1357
1358
|
{
|
|
1358
1359
|
"data-card": "notes",
|
|
1359
1360
|
headingId: s,
|
|
1360
1361
|
headingLevel: 3,
|
|
1361
|
-
title:
|
|
1362
|
-
headerAction: n && (
|
|
1362
|
+
title: f === null ? o("notesPanel.title") : o(u("notesPreviewTitle"), { count: f }),
|
|
1363
|
+
headerAction: n && (f ?? 0) > 0 ? /* @__PURE__ */ h("span", { className: "ds:relative ds:inline-flex", children: [
|
|
1363
1364
|
/* @__PURE__ */ e(
|
|
1364
1365
|
Yt,
|
|
1365
1366
|
{
|
|
@@ -1388,7 +1389,7 @@ function Ma({
|
|
|
1388
1389
|
) : null
|
|
1389
1390
|
] }) : void 0,
|
|
1390
1391
|
children: [
|
|
1391
|
-
d === "error" ? /* @__PURE__ */
|
|
1392
|
+
d === "error" ? /* @__PURE__ */ h($, { variant: "error", children: [
|
|
1392
1393
|
/* @__PURE__ */ e($.Description, { children: o("notesPanel.loadError") }),
|
|
1393
1394
|
t.onRetry ? /* @__PURE__ */ e($.Action, { children: /* @__PURE__ */ e(
|
|
1394
1395
|
L,
|
|
@@ -1403,7 +1404,7 @@ function Ma({
|
|
|
1403
1404
|
}
|
|
1404
1405
|
) }) : null
|
|
1405
1406
|
] }) : null,
|
|
1406
|
-
t.notes.length === 0 && d === "loading" ? /* @__PURE__ */
|
|
1407
|
+
t.notes.length === 0 && d === "loading" ? /* @__PURE__ */ h(ie, { children: [
|
|
1407
1408
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: o("notesPanel.loading") }),
|
|
1408
1409
|
/* @__PURE__ */ e(lt, { notes: [], loading: !0, loadingRows: 2 })
|
|
1409
1410
|
] }) : d !== "error" || t.notes.length > 0 ? (
|
|
@@ -1455,9 +1456,9 @@ function Kt({
|
|
|
1455
1456
|
intent: s,
|
|
1456
1457
|
background: d,
|
|
1457
1458
|
size: p,
|
|
1458
|
-
hideLabel:
|
|
1459
|
+
hideLabel: f
|
|
1459
1460
|
}) {
|
|
1460
|
-
return /* @__PURE__ */
|
|
1461
|
+
return /* @__PURE__ */ h(qe.Root, { children: [
|
|
1461
1462
|
/* @__PURE__ */ e(vn, { label: t, side: "top", children: /* @__PURE__ */ e(qe.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1462
1463
|
L,
|
|
1463
1464
|
{
|
|
@@ -1469,7 +1470,7 @@ function Kt({
|
|
|
1469
1470
|
startIcon: n,
|
|
1470
1471
|
"aria-haspopup": "menu",
|
|
1471
1472
|
endIcon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
|
|
1472
|
-
children:
|
|
1473
|
+
children: f ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
|
|
1473
1474
|
}
|
|
1474
1475
|
) }) }),
|
|
1475
1476
|
/* @__PURE__ */ e(qe.Content, { align: "end", children: i.map((c) => /* @__PURE__ */ e(
|
|
@@ -1486,9 +1487,9 @@ function Kt({
|
|
|
1486
1487
|
}
|
|
1487
1488
|
function Ba() {
|
|
1488
1489
|
const { t } = B("ui");
|
|
1489
|
-
return /* @__PURE__ */
|
|
1490
|
+
return /* @__PURE__ */ h(ie, { children: [
|
|
1490
1491
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
|
|
1491
|
-
/* @__PURE__ */
|
|
1492
|
+
/* @__PURE__ */ h(
|
|
1492
1493
|
"div",
|
|
1493
1494
|
{
|
|
1494
1495
|
"aria-hidden": "true",
|
|
@@ -1503,9 +1504,9 @@ function Ba() {
|
|
|
1503
1504
|
density: "compact"
|
|
1504
1505
|
}
|
|
1505
1506
|
),
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
+
/* @__PURE__ */ h(pe, { title: t(D("sectionAppointment")), headingLevel: 3, children: [
|
|
1507
1508
|
/* @__PURE__ */ e(Gt, { loading: !0, maxLines: 2 }),
|
|
1508
|
-
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: rn.map((n, i) => /* @__PURE__ */
|
|
1509
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: rn.map((n, i) => /* @__PURE__ */ h(
|
|
1509
1510
|
"div",
|
|
1510
1511
|
{
|
|
1511
1512
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
@@ -1539,7 +1540,7 @@ function Ba() {
|
|
|
1539
1540
|
]
|
|
1540
1541
|
}
|
|
1541
1542
|
),
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
+
/* @__PURE__ */ h(
|
|
1543
1544
|
"div",
|
|
1544
1545
|
{
|
|
1545
1546
|
"aria-hidden": "true",
|
|
@@ -1568,12 +1569,12 @@ function Wa({
|
|
|
1568
1569
|
privacy: s
|
|
1569
1570
|
}) {
|
|
1570
1571
|
var v;
|
|
1571
|
-
const { t: d } = B("ui"), p = t.status ?? (t.entries ? "ready" : "loading"),
|
|
1572
|
+
const { t: d } = B("ui"), p = t.status ?? (t.entries ? "ready" : "loading"), f = p === "error" ? void 0 : t.entries, c = p === "loading" || p !== "error" && !f, [r, l] = H(!1);
|
|
1572
1573
|
xe(() => l(!0), []);
|
|
1573
1574
|
let g = "";
|
|
1574
|
-
c ? g = d("common.loading") :
|
|
1575
|
+
c ? g = d("common.loading") : f && (g = f.length === 0 ? d(D("historyEmpty")) : d(D("historyLoaded"), { n: f.length }));
|
|
1575
1576
|
let w;
|
|
1576
|
-
return p === "error" ? w = /* @__PURE__ */
|
|
1577
|
+
return p === "error" ? w = /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1577
1578
|
/* @__PURE__ */ e($, { variant: "error", children: /* @__PURE__ */ e($.Description, { children: ((v = t.message) == null ? void 0 : v.trim()) || d("emptyState.error.description") }) }),
|
|
1578
1579
|
i ? /* @__PURE__ */ e(
|
|
1579
1580
|
L,
|
|
@@ -1584,12 +1585,12 @@ function Wa({
|
|
|
1584
1585
|
children: d("emptyState.error.cta")
|
|
1585
1586
|
}
|
|
1586
1587
|
) : null
|
|
1587
|
-
] }) : c || !
|
|
1588
|
+
] }) : c || !f ? w = /* @__PURE__ */ e(
|
|
1588
1589
|
"div",
|
|
1589
1590
|
{
|
|
1590
1591
|
"aria-hidden": "true",
|
|
1591
1592
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1592
|
-
children: rn.slice(0, 3).map((N, a) => /* @__PURE__ */
|
|
1593
|
+
children: rn.slice(0, 3).map((N, a) => /* @__PURE__ */ h(
|
|
1593
1594
|
"div",
|
|
1594
1595
|
{
|
|
1595
1596
|
className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
@@ -1621,12 +1622,12 @@ function Wa({
|
|
|
1621
1622
|
) : w = /* @__PURE__ */ e(
|
|
1622
1623
|
va,
|
|
1623
1624
|
{
|
|
1624
|
-
history:
|
|
1625
|
+
history: f,
|
|
1625
1626
|
locale: n,
|
|
1626
1627
|
noteUnrecordedEdits: o,
|
|
1627
1628
|
privacy: s
|
|
1628
1629
|
}
|
|
1629
|
-
), /* @__PURE__ */
|
|
1630
|
+
), /* @__PURE__ */ h(ie, { children: [
|
|
1630
1631
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: r ? g : "" }),
|
|
1631
1632
|
w
|
|
1632
1633
|
] });
|
|
@@ -1639,7 +1640,7 @@ function Ua({
|
|
|
1639
1640
|
locale: s,
|
|
1640
1641
|
shownTitle: d,
|
|
1641
1642
|
headingId: p,
|
|
1642
|
-
enter:
|
|
1643
|
+
enter: f,
|
|
1643
1644
|
live: c,
|
|
1644
1645
|
statusControl: r,
|
|
1645
1646
|
patientId: l = ((ze) => (ze = t.patient) == null ? void 0 : ze.id)(),
|
|
@@ -1669,12 +1670,12 @@ function Ua({
|
|
|
1669
1670
|
createTaskUrl: ee,
|
|
1670
1671
|
onRequestSignature: te,
|
|
1671
1672
|
onSignOnDevice: Ie,
|
|
1672
|
-
onOpenPatient:
|
|
1673
|
+
onOpenPatient: fe,
|
|
1673
1674
|
shortcuts: ne,
|
|
1674
1675
|
documents: oe
|
|
1675
1676
|
}) {
|
|
1676
1677
|
var Ct, Rt;
|
|
1677
|
-
const { t: x } = B("ui"), { eventId: O } = t, [Qe] = H(
|
|
1678
|
+
const { t: x } = B("ui"), { eventId: O } = t, [Qe] = H(f), he = { details: t, locale: s, currency: i }, E = b ? b.eventId !== void 0 && b.eventId !== O ? { status: "loading" } : b : t.history ? { entries: t.history } : void 0, He = (m == null ? void 0 : m.patientId) === void 0 || m.patientId === l, ge = m ? He ? m : l ? { notes: [], status: "loading", total: null } : void 0 : void 0, de = !!W && !S && !v, [Ae, ae] = H(!1), [Te, Q] = H(!1), le = Ae && E !== void 0, $e = Te && de, Ee = () => {
|
|
1678
1679
|
le || !E || (ae(!0), A == null || A(O));
|
|
1679
1680
|
}, Be = _({ history: !1, editor: !1 });
|
|
1680
1681
|
me(() => {
|
|
@@ -1685,7 +1686,7 @@ function Ua({
|
|
|
1685
1686
|
});
|
|
1686
1687
|
const ve = _(null), F = _(!1), De = (E == null ? void 0 : E.status) ?? (E != null && E.entries ? "ready" : "loading");
|
|
1687
1688
|
me(() => {
|
|
1688
|
-
F.current && (De !== "loading" && (F.current = !1),
|
|
1689
|
+
F.current && (De !== "loading" && (F.current = !1), ft(ve.current));
|
|
1689
1690
|
}, [De]);
|
|
1690
1691
|
const [Y, Ce] = H(t.appointment.name ?? "");
|
|
1691
1692
|
xe(() => {
|
|
@@ -1737,7 +1738,7 @@ function Ua({
|
|
|
1737
1738
|
), dn = (((Ct = t.care) == null ? void 0 : Ct.lines.length) ?? 0) > 0, Ze = l !== void 0 && l !== "", et = x(D("status")), It = `${et}: ${Me.option.label}`, tt = _(null), At = _(Le);
|
|
1738
1739
|
me(() => {
|
|
1739
1740
|
const I = At.current && !Le;
|
|
1740
|
-
At.current = Le, I && (tt.current ?
|
|
1741
|
+
At.current = Le, I && (tt.current ? ft(tt.current) : _e(p));
|
|
1741
1742
|
});
|
|
1742
1743
|
const Tt = Le ? /* @__PURE__ */ e(
|
|
1743
1744
|
yn,
|
|
@@ -1974,8 +1975,8 @@ function Ua({
|
|
|
1974
1975
|
return /* @__PURE__ */ e(
|
|
1975
1976
|
"div",
|
|
1976
1977
|
{
|
|
1977
|
-
className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Qe ?
|
|
1978
|
-
children: /* @__PURE__ */
|
|
1978
|
+
className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Qe ? hn : ""}`,
|
|
1979
|
+
children: /* @__PURE__ */ h(it.Host, { children: [
|
|
1979
1980
|
/* @__PURE__ */ e(
|
|
1980
1981
|
Vt,
|
|
1981
1982
|
{
|
|
@@ -2004,17 +2005,17 @@ function Ua({
|
|
|
2004
2005
|
tabIndex: 0,
|
|
2005
2006
|
"aria-busy": n || void 0,
|
|
2006
2007
|
className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
|
|
2007
|
-
children: /* @__PURE__ */
|
|
2008
|
+
children: /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
2008
2009
|
v ? /* @__PURE__ */ e(pn, { mask: N }) : t.patient ? /* @__PURE__ */ e(
|
|
2009
2010
|
Ca,
|
|
2010
2011
|
{
|
|
2011
|
-
...
|
|
2012
|
+
...he,
|
|
2012
2013
|
now: o,
|
|
2013
2014
|
mapsLink: a,
|
|
2014
2015
|
shortcuts: ne,
|
|
2015
2016
|
onRequestSignature: te,
|
|
2016
2017
|
onSignOnDevice: Ie,
|
|
2017
|
-
onOpenPatient:
|
|
2018
|
+
onOpenPatient: fe
|
|
2018
2019
|
}
|
|
2019
2020
|
) : (
|
|
2020
2021
|
/* No patient card to carry the identity: a patient-less, an
|
|
@@ -2040,7 +2041,7 @@ function Ua({
|
|
|
2040
2041
|
/* @__PURE__ */ e(
|
|
2041
2042
|
Ra,
|
|
2042
2043
|
{
|
|
2043
|
-
...
|
|
2044
|
+
...he,
|
|
2044
2045
|
operator: g,
|
|
2045
2046
|
chair: w,
|
|
2046
2047
|
privacy: v,
|
|
@@ -2083,7 +2084,7 @@ function Ua({
|
|
|
2083
2084
|
/* @__PURE__ */ e(
|
|
2084
2085
|
Pa,
|
|
2085
2086
|
{
|
|
2086
|
-
...
|
|
2087
|
+
...he,
|
|
2087
2088
|
privacy: v,
|
|
2088
2089
|
carePlanUrl: ne == null ? void 0 : ne.carePlanUrl
|
|
2089
2090
|
}
|
|
@@ -2095,10 +2096,10 @@ function Ua({
|
|
|
2095
2096
|
/* The body scrolls; the status and the actions stay put. The
|
|
2096
2097
|
status keeps its own segment and never folds. The actions fold
|
|
2097
2098
|
to icons, then into More, never onto a second line. */
|
|
2098
|
-
/* @__PURE__ */
|
|
2099
|
+
/* @__PURE__ */ h("div", { className: Oa(), children: [
|
|
2099
2100
|
Tt,
|
|
2100
2101
|
nt.length > 0 ? /* @__PURE__ */ e(
|
|
2101
|
-
|
|
2102
|
+
fn,
|
|
2102
2103
|
{
|
|
2103
2104
|
label: x(D("actionsLabel")),
|
|
2104
2105
|
overflow: "menu",
|
|
@@ -2150,7 +2151,7 @@ function Ua({
|
|
|
2150
2151
|
ye || Q(!1);
|
|
2151
2152
|
},
|
|
2152
2153
|
"data-details-subview": "description",
|
|
2153
|
-
footer: /* @__PURE__ */
|
|
2154
|
+
footer: /* @__PURE__ */ h(ie, { children: [
|
|
2154
2155
|
/* @__PURE__ */ e(
|
|
2155
2156
|
L,
|
|
2156
2157
|
{
|
|
@@ -2171,7 +2172,7 @@ function Ua({
|
|
|
2171
2172
|
}
|
|
2172
2173
|
)
|
|
2173
2174
|
] }),
|
|
2174
|
-
children: /* @__PURE__ */
|
|
2175
|
+
children: /* @__PURE__ */ h("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
2175
2176
|
C ? /* @__PURE__ */ e($, { variant: "error", children: /* @__PURE__ */ e($.Description, { children: C }) }) : null,
|
|
2176
2177
|
/* @__PURE__ */ e(
|
|
2177
2178
|
gn,
|
|
@@ -2198,7 +2199,7 @@ const qa = ln(function({
|
|
|
2198
2199
|
operator: s,
|
|
2199
2200
|
chair: d,
|
|
2200
2201
|
currency: p = "EUR",
|
|
2201
|
-
now:
|
|
2202
|
+
now: f,
|
|
2202
2203
|
locale: c,
|
|
2203
2204
|
title: r,
|
|
2204
2205
|
privacy: l = !1,
|
|
@@ -2228,12 +2229,12 @@ const qa = ln(function({
|
|
|
2228
2229
|
onOpenPatient: ee,
|
|
2229
2230
|
shortcuts: te,
|
|
2230
2231
|
documents: Ie,
|
|
2231
|
-
id:
|
|
2232
|
+
id: fe,
|
|
2232
2233
|
className: ne,
|
|
2233
2234
|
...oe
|
|
2234
2235
|
}, ze) {
|
|
2235
2236
|
var ye, Pe;
|
|
2236
|
-
const { t: x, i18n: O } = B("ui"), Qe = ot(),
|
|
2237
|
+
const { t: x, i18n: O } = B("ui"), Qe = ot(), he = fe ?? Qe, E = ot(), He = c ?? O.language, ge = !l && (r != null && r.trim()) ? r : x(D("region")), de = n.status === "ready" ? n.read : void 0, Ae = n.status === "ready" ? n.read.eventId : n.eventId, ae = _(
|
|
2237
2238
|
void 0
|
|
2238
2239
|
), Te = ae.current !== void 0 && ae.current !== "ready";
|
|
2239
2240
|
xe(() => {
|
|
@@ -2307,7 +2308,7 @@ const qa = ln(function({
|
|
|
2307
2308
|
}),
|
|
2308
2309
|
[]
|
|
2309
2310
|
);
|
|
2310
|
-
un(aa, Ce,
|
|
2311
|
+
un(aa, Ce, he);
|
|
2311
2312
|
const Re = /* @__PURE__ */ e(
|
|
2312
2313
|
Vt,
|
|
2313
2314
|
{
|
|
@@ -2325,7 +2326,7 @@ const qa = ln(function({
|
|
|
2325
2326
|
read: n.read,
|
|
2326
2327
|
refreshing: n.refreshing === !0,
|
|
2327
2328
|
currency: p,
|
|
2328
|
-
now:
|
|
2329
|
+
now: f ?? /* @__PURE__ */ new Date(),
|
|
2329
2330
|
locale: He,
|
|
2330
2331
|
shownTitle: ge,
|
|
2331
2332
|
headingId: E,
|
|
@@ -2364,12 +2365,12 @@ const qa = ln(function({
|
|
|
2364
2365
|
documents: Ie
|
|
2365
2366
|
},
|
|
2366
2367
|
n.read.eventId
|
|
2367
|
-
) : n.status === "loading" ? ce = /* @__PURE__ */
|
|
2368
|
+
) : n.status === "loading" ? ce = /* @__PURE__ */ h(ie, { children: [
|
|
2368
2369
|
Re,
|
|
2369
2370
|
/* @__PURE__ */ e(Ba, {})
|
|
2370
|
-
] }) : ce = /* @__PURE__ */
|
|
2371
|
+
] }) : ce = /* @__PURE__ */ h(ie, { children: [
|
|
2371
2372
|
Re,
|
|
2372
|
-
/* @__PURE__ */
|
|
2373
|
+
/* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
2373
2374
|
/* @__PURE__ */ e($, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e($.Description, { children: n.status === "error" ? ((Pe = n.message) == null ? void 0 : Pe.trim()) || x("emptyState.error.description") : n.reason }) }),
|
|
2374
2375
|
Q ? /* @__PURE__ */ e(
|
|
2375
2376
|
L,
|
|
@@ -2387,9 +2388,9 @@ const qa = ln(function({
|
|
|
2387
2388
|
"div",
|
|
2388
2389
|
{
|
|
2389
2390
|
ref: $e,
|
|
2390
|
-
id:
|
|
2391
|
+
id: fe,
|
|
2391
2392
|
"data-component": "appointment-details-panel",
|
|
2392
|
-
"data-component-id":
|
|
2393
|
+
"data-component-id": he,
|
|
2393
2394
|
"data-event-id": Ae,
|
|
2394
2395
|
"data-status": n.status,
|
|
2395
2396
|
"aria-busy": n.status === "loading" || void 0,
|
|
@@ -2400,7 +2401,7 @@ const qa = ln(function({
|
|
|
2400
2401
|
);
|
|
2401
2402
|
});
|
|
2402
2403
|
qa.displayName = "AppointmentDetailsPanel";
|
|
2403
|
-
function
|
|
2404
|
+
function fs({
|
|
2404
2405
|
eventId: t,
|
|
2405
2406
|
load: n,
|
|
2406
2407
|
reloadKey: i
|
|
@@ -2411,7 +2412,7 @@ function ps({
|
|
|
2411
2412
|
me(() => {
|
|
2412
2413
|
d.current = n;
|
|
2413
2414
|
});
|
|
2414
|
-
const [p,
|
|
2415
|
+
const [p, f] = H(0), [c, r] = H(), l = JSON.stringify([i ?? null, p]), [g, w] = H({ eventId: t, count: 0 }), v = g.eventId === t ? g.count : g.count + 1;
|
|
2415
2416
|
g.eventId !== t && w({ eventId: t, count: v }), xe(() => {
|
|
2416
2417
|
if (t === null) {
|
|
2417
2418
|
r(void 0);
|
|
@@ -2442,7 +2443,7 @@ function ps({
|
|
|
2442
2443
|
});
|
|
2443
2444
|
}), () => k.abort();
|
|
2444
2445
|
}, [t, v, l]);
|
|
2445
|
-
const N = cn(() =>
|
|
2446
|
+
const N = cn(() => f((k) => k + 1), []);
|
|
2446
2447
|
if (t === null) return { state: null, retry: N };
|
|
2447
2448
|
const a = (c == null ? void 0 : c.eventId) === t && c.selection === v ? c : void 0;
|
|
2448
2449
|
let m = { status: "loading", eventId: t };
|
|
@@ -2462,7 +2463,7 @@ export {
|
|
|
2462
2463
|
ya as e,
|
|
2463
2464
|
Ge as f,
|
|
2464
2465
|
va as g,
|
|
2465
|
-
|
|
2466
|
+
ht as h,
|
|
2466
2467
|
tn as i,
|
|
2467
2468
|
ua as j,
|
|
2468
2469
|
ma as k,
|
|
@@ -2470,6 +2471,6 @@ export {
|
|
|
2470
2471
|
ia as m,
|
|
2471
2472
|
oa as p,
|
|
2472
2473
|
da as s,
|
|
2473
|
-
|
|
2474
|
+
fs as u
|
|
2474
2475
|
};
|
|
2475
|
-
//# sourceMappingURL=use-appointment-details-read-
|
|
2476
|
+
//# sourceMappingURL=use-appointment-details-read-6_OmOwUs.js.map
|