@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
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, useRef as v, useImperativeHandle as E, useMemo as H } from "react";
|
|
3
|
+
import { c as M } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as q } from "react-i18next";
|
|
5
|
+
import { I as K } from "./icon-button-S8_weU3g.js";
|
|
6
|
+
import { S as V } from "./skeleton-tTWJpvAq.js";
|
|
7
|
+
import { E as W } from "./empty-state-DwJ5YNzz.js";
|
|
8
|
+
import { A as B } from "./appointment-card-BT1cMZIX.js";
|
|
9
|
+
import { u as D } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { C as L } from "./calendar-days-BGWklvE-.js";
|
|
11
|
+
import { P as _ } from "./plus-DzMQ_c6b.js";
|
|
12
|
+
const it = {
|
|
13
|
+
id: "appointment-card",
|
|
14
|
+
// 'pick' (non-persisting activation) is host-delegated: the card exposes no
|
|
15
|
+
// handle of its own — its enclosing AppointmentTray performs the pick via
|
|
16
|
+
// `appointment-tray.select_item`, addressing this card by its data-component-id.
|
|
17
|
+
capabilities: ["pick"],
|
|
18
|
+
state: {},
|
|
19
|
+
actions: {},
|
|
20
|
+
domHooks: {
|
|
21
|
+
root: {
|
|
22
|
+
attr: "data-component",
|
|
23
|
+
value: "appointment-card",
|
|
24
|
+
description: 'Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle, and data-type with the delivery channel. When the card is interactive its activator (link or button) carries data-action="open-appointment".'
|
|
25
|
+
},
|
|
26
|
+
instanceId: {
|
|
27
|
+
attr: "data-component-id",
|
|
28
|
+
sourceProp: "item.id",
|
|
29
|
+
description: "Sourced from item.id — the stable appointment identifier."
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}, F = {
|
|
33
|
+
id: "appointment-tray",
|
|
34
|
+
// 'pick' (non-persisting activation): select_item routes an activation
|
|
35
|
+
// through onActivate — it does not persist a "selected appointment" value,
|
|
36
|
+
// so this is a focus/pick, not a select_single.
|
|
37
|
+
capabilities: ["pick"],
|
|
38
|
+
state: {
|
|
39
|
+
items: {
|
|
40
|
+
type: "Array<{ id: string; state: string }>",
|
|
41
|
+
descriptionKey: "ui.agent.appointmentTray.state.items",
|
|
42
|
+
description: "Currently-displayed appointments. Ids + lifecycle state only — never patient identity.",
|
|
43
|
+
read: (a) => a.getItems()
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
actions: {
|
|
47
|
+
select_item: {
|
|
48
|
+
safety: "read",
|
|
49
|
+
argsType: "{ id: string }",
|
|
50
|
+
argsSchema: {
|
|
51
|
+
type: "object",
|
|
52
|
+
properties: { id: { type: "string" } },
|
|
53
|
+
required: ["id"]
|
|
54
|
+
},
|
|
55
|
+
idempotent: !0,
|
|
56
|
+
descriptionKey: "ui.agent.appointmentTray.actions.selectItem",
|
|
57
|
+
description: "Activate the appointment with the given id.",
|
|
58
|
+
invoke: (a, s) => {
|
|
59
|
+
a.selectItem(s.id);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
domHooks: {
|
|
64
|
+
root: {
|
|
65
|
+
attr: "data-component",
|
|
66
|
+
value: "appointment-tray",
|
|
67
|
+
description: `Marks the AppointmentTray wrapper. When the host passes onAddAppointment, the header button carries data-action="add-appointment". It only calls the host, so it has a hook but no agent action: creating an appointment writes patient data and belongs to the host's own flow.`
|
|
68
|
+
},
|
|
69
|
+
instanceId: {
|
|
70
|
+
attr: "data-component-id",
|
|
71
|
+
sourceProp: "id",
|
|
72
|
+
description: "Sourced from the id prop. Required to address a specific tray from the agent."
|
|
73
|
+
},
|
|
74
|
+
item: {
|
|
75
|
+
attr: "data-appointment-id",
|
|
76
|
+
description: "Stable appointment id emitted on each rendered AppointmentCard inside the tray."
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}, G = M(
|
|
80
|
+
[
|
|
81
|
+
"ds:flex ds:flex-col",
|
|
82
|
+
"ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
|
|
83
|
+
"ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)]",
|
|
84
|
+
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
85
|
+
"ds:overflow-hidden"
|
|
86
|
+
].join(" "),
|
|
87
|
+
{
|
|
88
|
+
variants: {
|
|
89
|
+
size: {
|
|
90
|
+
sm: "",
|
|
91
|
+
md: ""
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
defaultVariants: {
|
|
95
|
+
size: "sm"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
), J = P(
|
|
99
|
+
({
|
|
100
|
+
id: a,
|
|
101
|
+
items: s,
|
|
102
|
+
title: b,
|
|
103
|
+
caption: c,
|
|
104
|
+
size: m = "sm",
|
|
105
|
+
locale: x,
|
|
106
|
+
currency: w,
|
|
107
|
+
privacy: l = !1,
|
|
108
|
+
privacyTitle: d,
|
|
109
|
+
onOpenAppointment: i,
|
|
110
|
+
onAddAppointment: h,
|
|
111
|
+
addLabel: k,
|
|
112
|
+
loading: f = !1,
|
|
113
|
+
emptyTitle: I,
|
|
114
|
+
emptyDescription: T,
|
|
115
|
+
className: N,
|
|
116
|
+
...A
|
|
117
|
+
}, C) => {
|
|
118
|
+
const { t: r } = q("ui"), u = b ?? r("appointmentTray.title"), S = k ?? r("appointmentTray.add"), R = !f && s.length === 0;
|
|
119
|
+
let n;
|
|
120
|
+
f ? n = /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((t) => /* @__PURE__ */ e(V, { variant: "rectangular", height: "3.5rem" }, t)) }) : R ? n = /* @__PURE__ */ e("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
|
|
121
|
+
W,
|
|
122
|
+
{
|
|
123
|
+
variant: "first-use",
|
|
124
|
+
size: "sm",
|
|
125
|
+
title: I ?? r("appointmentTray.empty.title"),
|
|
126
|
+
description: T ?? r("appointmentTray.empty.description")
|
|
127
|
+
}
|
|
128
|
+
) }) : n = // Padding at least as wide as the focus ring (offset plus width), so
|
|
129
|
+
// the tray's `overflow-hidden` never clips a focused card's ring.
|
|
130
|
+
/* @__PURE__ */ e("ul", { className: "ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-sm)]", children: s.map((t) => /* @__PURE__ */ e(
|
|
131
|
+
B,
|
|
132
|
+
{
|
|
133
|
+
item: t,
|
|
134
|
+
size: m,
|
|
135
|
+
locale: x,
|
|
136
|
+
currency: w,
|
|
137
|
+
privacy: l,
|
|
138
|
+
privacyTitle: l ? d == null ? void 0 : d(t) : void 0,
|
|
139
|
+
onActivate: i,
|
|
140
|
+
"data-appointment-id": t.id
|
|
141
|
+
},
|
|
142
|
+
t.id
|
|
143
|
+
)) });
|
|
144
|
+
const p = v(s);
|
|
145
|
+
p.current = s;
|
|
146
|
+
const g = v(null);
|
|
147
|
+
E(C, () => g.current, []);
|
|
148
|
+
const j = H(
|
|
149
|
+
() => ({
|
|
150
|
+
getItems: () => p.current.map((t) => ({ id: t.id, state: t.state })),
|
|
151
|
+
selectItem: (t) => {
|
|
152
|
+
const y = p.current.find((z) => z.id === t);
|
|
153
|
+
y && (i == null || i(y));
|
|
154
|
+
}
|
|
155
|
+
}),
|
|
156
|
+
[i]
|
|
157
|
+
);
|
|
158
|
+
return D(F, j, a), /* @__PURE__ */ o(
|
|
159
|
+
"section",
|
|
160
|
+
{
|
|
161
|
+
ref: g,
|
|
162
|
+
"aria-label": u,
|
|
163
|
+
"data-component": "appointment-tray",
|
|
164
|
+
"data-component-id": a,
|
|
165
|
+
className: G({ size: m, className: N }),
|
|
166
|
+
...A,
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ o("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
|
|
169
|
+
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
|
|
170
|
+
/* @__PURE__ */ o("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
|
|
171
|
+
/* @__PURE__ */ e(L, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
172
|
+
u
|
|
173
|
+
] }),
|
|
174
|
+
c ? /* @__PURE__ */ e("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: c }) : null
|
|
175
|
+
] }),
|
|
176
|
+
h ? /* @__PURE__ */ e(
|
|
177
|
+
K,
|
|
178
|
+
{
|
|
179
|
+
icon: /* @__PURE__ */ e(_, {}),
|
|
180
|
+
intent: "outline",
|
|
181
|
+
size: "sm",
|
|
182
|
+
"aria-label": S,
|
|
183
|
+
"data-action": "add-appointment",
|
|
184
|
+
onClick: h
|
|
185
|
+
}
|
|
186
|
+
) : null
|
|
187
|
+
] }),
|
|
188
|
+
n
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
J.displayName = "AppointmentTray";
|
|
195
|
+
export {
|
|
196
|
+
J as A,
|
|
197
|
+
it as a,
|
|
198
|
+
F as b
|
|
199
|
+
};
|
|
200
|
+
//# sourceMappingURL=appointment-tray-B3gSHL1j.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as O } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as P } from "react";
|
|
3
3
|
import { useTranslation as h } from "react-i18next";
|
|
4
|
-
import { A as K } from "./entity-card-
|
|
4
|
+
import { A as K } from "./entity-card-p-LANpYt.js";
|
|
5
5
|
import { C as g } from "./circle-dashed-CUj6o2cA.js";
|
|
6
6
|
const d = Object.freeze([
|
|
7
7
|
"confirmed",
|
|
@@ -63,4 +63,4 @@ export {
|
|
|
63
63
|
s as i,
|
|
64
64
|
C as u
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=appointment-workflow-status-
|
|
66
|
+
//# sourceMappingURL=appointment-workflow-status-S-lx81Yz.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.22.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [
|
|
9
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
10
|
+
["path", { d: "M4.929 4.929 19.07 19.071", key: "196cmz" }]
|
|
11
|
+
], a = c("ban", e);
|
|
12
|
+
export {
|
|
13
|
+
a as B
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=ban-CiSCCcOE.js.map
|
|
@@ -14,7 +14,7 @@ import Ar from "@fullcalendar/timeline";
|
|
|
14
14
|
import Sr from "@fullcalendar/interaction";
|
|
15
15
|
import { u as Ir } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
16
16
|
import { u as Nr } from "./registry-DvAUVLHh.js";
|
|
17
|
-
import { w as Rr, C as Lr } from "./calendar-event-card-
|
|
17
|
+
import { w as Rr, C as Lr } from "./calendar-event-card-BJifpYZQ.js";
|
|
18
18
|
import { A as Er } from "./avatar-Dp5apm1d.js";
|
|
19
19
|
import { B as Pr } from "./button-DohK_Ak_.js";
|
|
20
20
|
import { a as $e, R as Gr } from "./resource-chip-DB5jDwUO.js";
|
|
@@ -1520,4 +1520,4 @@ export {
|
|
|
1520
1520
|
Or as c,
|
|
1521
1521
|
be as r
|
|
1522
1522
|
};
|
|
1523
|
-
//# sourceMappingURL=calendar-
|
|
1523
|
+
//# sourceMappingURL=calendar-CyLtLBNP.js.map
|
|
@@ -3,15 +3,15 @@ import { createElement as bd, useContext as Hi, createContext as Vi, useState as
|
|
|
3
3
|
import { useTranslation as Me } from "react-i18next";
|
|
4
4
|
import { u as Id } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
5
5
|
import { C as Zo, b as Qo, a as ec } from "./collapsible-DVPM46bq.js";
|
|
6
|
-
import { A as Cd } from "./appointment-timeline-
|
|
7
|
-
import { a as tc } from "./workflow-status-
|
|
6
|
+
import { A as Cd } from "./appointment-timeline-Dy4YQJ17.js";
|
|
7
|
+
import { a as tc } from "./workflow-status-CO0mxXs2.js";
|
|
8
8
|
import { A as qa, g as Nd } from "./avatar-Dp5apm1d.js";
|
|
9
9
|
import { B as wn } from "./badge-BUk4RjTS.js";
|
|
10
10
|
import { S as xn, C as nc } from "./skeleton-tTWJpvAq.js";
|
|
11
11
|
import { S as zr } from "./stethoscope-sZXGC43m.js";
|
|
12
12
|
import { C as sc } from "./chevron-down-DWE7GSq9.js";
|
|
13
|
-
import { A as po, a as ac } from "./entity-card-
|
|
14
|
-
import { T as Dd, P as xd, S as wd } from "./task-editor-
|
|
13
|
+
import { A as po, a as ac } from "./entity-card-p-LANpYt.js";
|
|
14
|
+
import { T as Dd, P as xd, S as wd } from "./task-editor-DvwqPfFR.js";
|
|
15
15
|
import { C as Sd, u as ii, a as Td, d as Ed } from "./control-room-rail-DcJpHbp4.js";
|
|
16
16
|
import { S as Ki } from "./scroll-area-CY5SLYNw.js";
|
|
17
17
|
import { A as Ad, u as Ld } from "./app-frame-context-CPszhDDb.js";
|
|
@@ -20,12 +20,12 @@ import { d as fs, c as go, a as Rd, b as Us } from "./toast-DQ1Zu1kk.js";
|
|
|
20
20
|
import { T as cr, a as rc } from "./tooltip-uEBdD1-5.js";
|
|
21
21
|
import { A as ne } from "./alert-C4WKViaS.js";
|
|
22
22
|
import { B as ue } from "./button-DohK_Ak_.js";
|
|
23
|
-
import { f as rs, b as ur, c as Md, d as Wd, e as Pd, A as ic, u as _d, D as Rr, R as Hr, g as $d, h as oc, M as Fd, C as vo, i as Bd, j as zd, k as Hd, l as Vd, m as Ta, I as Kd, s as Ud } from "./use-appointment-details-read-
|
|
23
|
+
import { f as rs, b as ur, c as Md, d as Wd, e as Pd, A as ic, u as _d, D as Rr, R as Hr, g as $d, h as oc, M as Fd, C as vo, i as Bd, j as zd, k as Hd, l as Vd, m as Ta, I as Kd, s as Ud } from "./use-appointment-details-read-6_OmOwUs.js";
|
|
24
24
|
import { D as fe } from "./dialog-CVTxyR0v.js";
|
|
25
25
|
import { R as qn } from "./radio-BZQs6_36.js";
|
|
26
26
|
import { R as ba } from "./radio-group-ChIKyeSJ.js";
|
|
27
27
|
import { V as ia } from "./visually-hidden-BHxEUGyT.js";
|
|
28
|
-
import { C as qd } from "./calendar-
|
|
28
|
+
import { C as qd } from "./calendar-CyLtLBNP.js";
|
|
29
29
|
import { C as xr } from "./card-n6W6LW-N.js";
|
|
30
30
|
import { C as gn } from "./checkbox-DV4sNDeB.js";
|
|
31
31
|
import { a as or } from "./key-value-pair-DOTl68_U.js";
|
|
@@ -39,7 +39,7 @@ import { D as ra } from "./date-picker-BmVBVpVu.js";
|
|
|
39
39
|
import { D as $e } from "./dropdown-menu-DBWaW4pq.js";
|
|
40
40
|
import { F as Pe } from "./form-field-CyHfOVKF.js";
|
|
41
41
|
import { P as on } from "./popover-CN5IsOeS.js";
|
|
42
|
-
import { A as Yd } from "./appointment-peek-
|
|
42
|
+
import { A as Yd } from "./appointment-peek-BP_ACFz5.js";
|
|
43
43
|
import { H as br } from "./hover-card-CuRIA4wN.js";
|
|
44
44
|
import { C as Ui } from "./calendar-plus-BFrIRE4r.js";
|
|
45
45
|
import { S as cc } from "./square-check-big-dj0o8yA3.js";
|
|
@@ -72,23 +72,23 @@ import { C as Cr } from "./calendar-clock-hbObjfGY.js";
|
|
|
72
72
|
import { E as el } from "./ellipsis-dRo9ouSU.js";
|
|
73
73
|
import { P as vc } from "./pencil-B1sKKyuT.js";
|
|
74
74
|
import { T as Tr } from "./trash-2-uumy3fy1.js";
|
|
75
|
-
import { c as Mr } from "./privacy-mask-
|
|
75
|
+
import { c as Mr } from "./privacy-mask-C19dJFMk.js";
|
|
76
76
|
import { N as bo } from "./notebook-pen-CO7HoM-W.js";
|
|
77
77
|
import { C as tl } from "./checkbox-group-EfinQS1h.js";
|
|
78
78
|
import { S as Ea } from "./section-card-CYfeQ6EQ.js";
|
|
79
79
|
import { L as Yi } from "./link-CeV7FoI6.js";
|
|
80
80
|
import { S as nr } from "./sheet-BdhYeQQT.js";
|
|
81
|
-
import { S as nl, a as sl, E as al } from "./calendar-event-card-
|
|
81
|
+
import { S as nl, a as sl, E as al } from "./calendar-event-card-BJifpYZQ.js";
|
|
82
82
|
import { G as pr, h as yo, c as rl, A as il, C as fc } from "./color-picker-AcaWuKah.js";
|
|
83
|
-
import { s as ol, S as cl } from "./signature-status-chip-
|
|
84
|
-
import { b as dl } from "./appointment-workflow-status-
|
|
83
|
+
import { s as ol, S as cl } from "./signature-status-chip-DS9hHwIt.js";
|
|
84
|
+
import { b as dl } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
85
85
|
import { T as ll } from "./token-insert-menu-BLtfMTJd.js";
|
|
86
|
-
import { g as bc } from "./
|
|
86
|
+
import { g as bc } from "./get-error-message-DbFUzuja.js";
|
|
87
87
|
import { C as ul } from "./copy-field-BaYEDJ9f.js";
|
|
88
88
|
import { createPortal as ml } from "react-dom";
|
|
89
89
|
import { u as hl } from "./form-field-context-DtiROUJV.js";
|
|
90
90
|
import { i as yc } from "./treatment-receipt-BZzwvsnY.js";
|
|
91
|
-
import { N as pl } from "./notes-panel-
|
|
91
|
+
import { N as pl } from "./notes-panel-BvjAo4RQ.js";
|
|
92
92
|
import { C as Xi } from "./combobox-BBCVQS-S.js";
|
|
93
93
|
import { S as gl } from "./state-backed-text-input-DVETOhSS.js";
|
|
94
94
|
import { N as Di } from "./number-input-DUSvP7Dq.js";
|
|
@@ -103,7 +103,7 @@ import { a as kc } from "./compact-editor-fields-cP6yh7xv.js";
|
|
|
103
103
|
import { T as Il } from "./transaction-chip-CkYd-3ky.js";
|
|
104
104
|
import { V as Cl } from "./video-BheNGvsu.js";
|
|
105
105
|
import { M as Ic } from "./map-pin-BaY37-Km.js";
|
|
106
|
-
import { U as Nl } from "./user-x-
|
|
106
|
+
import { U as Nl } from "./user-x-BJZg4kaP.js";
|
|
107
107
|
import { G as Cc } from "./globe-sHBW1JN5.js";
|
|
108
108
|
import { A as Io } from "./arrow-left-BfaGqVam.js";
|
|
109
109
|
import { H as Co } from "./history-CK2JaU2g.js";
|
|
@@ -13770,4 +13770,4 @@ export {
|
|
|
13770
13770
|
Uv as r,
|
|
13771
13771
|
vn as u
|
|
13772
13772
|
};
|
|
13773
|
-
//# sourceMappingURL=calendar-appointment-editor-dialog-
|
|
13773
|
+
//# sourceMappingURL=calendar-appointment-editor-dialog-I5PfWudy.js.map
|
|
@@ -2,7 +2,8 @@ import { jsx as a, jsxs as f, Fragment as K } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as re } from "react";
|
|
3
3
|
import { useTranslation as de } from "react-i18next";
|
|
4
4
|
import { c as s } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { U as se,
|
|
5
|
+
import { U as se, T as te } from "./user-x-BJZg4kaP.js";
|
|
6
|
+
import { B as ie } from "./ban-CiSCCcOE.js";
|
|
6
7
|
import { C as le } from "./check-DrFSN__t.js";
|
|
7
8
|
import { S as ce } from "./stethoscope-sZXGC43m.js";
|
|
8
9
|
import { C as oe } from "./clock-Drd4Wtis.js";
|
|
@@ -34,18 +35,18 @@ function xe([t, d, n]) {
|
|
|
34
35
|
const e = (i) => i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
35
36
|
return 0.2126 * e(t) + 0.7152 * e(d) + 0.0722 * e(n);
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function ln(t, d, n) {
|
|
38
39
|
}
|
|
39
40
|
function ye(t) {
|
|
40
41
|
const d = be(t);
|
|
41
42
|
return d ? xe(d) > 0.1791 ? "on-light" : "on-dark" : null;
|
|
42
43
|
}
|
|
43
44
|
const ke = {
|
|
44
|
-
confirmed:
|
|
45
|
+
confirmed: te,
|
|
45
46
|
waiting: oe,
|
|
46
47
|
in_care: ce,
|
|
47
48
|
done: le,
|
|
48
|
-
cancelled:
|
|
49
|
+
cancelled: ie,
|
|
49
50
|
absent: se
|
|
50
51
|
}, _e = "ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--card)] ds:border ds:border-[color:var(--border)] ds:shadow-[var(--shadow-sm)]", Se = "ds:inline-block ds:h-3 ds:w-[6ch] ds:align-middle ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)] ds:animate-[skeleton-pulse_calc(var(--animation-duration)*8)_ease-in-out_infinite] ds:motion-reduce:animate-none ds:forced-colors:bg-[GrayText] ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText] ds:forced-colors:animate-none", Ne = {
|
|
51
52
|
success: "ds:text-[color:var(--success-foreground)]",
|
|
@@ -608,6 +609,6 @@ export {
|
|
|
608
609
|
ze as E,
|
|
609
610
|
ke as S,
|
|
610
611
|
O as a,
|
|
611
|
-
|
|
612
|
+
ln as w
|
|
612
613
|
};
|
|
613
|
-
//# sourceMappingURL=calendar-event-card-
|
|
614
|
+
//# sourceMappingURL=calendar-event-card-BJifpYZQ.js.map
|
|
@@ -7,10 +7,10 @@ import { P as A } from "./progress-D_g_Sl2g.js";
|
|
|
7
7
|
import { T as C } from "./timestamp-DPLDWdxA.js";
|
|
8
8
|
import { T as L } from "./transaction-chip-CkYd-3ky.js";
|
|
9
9
|
import { A as O, b as G, c as Y, a as $ } from "./accordion-Ch3xp0mX.js";
|
|
10
|
-
import { C as q } from "./care-plan-entry-card-
|
|
10
|
+
import { C as q } from "./care-plan-entry-card-DY1toF6E.js";
|
|
11
11
|
import { u as J } from "./registry-DvAUVLHh.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { i as Q } from "./is-safe-url-CEy9CEml.js";
|
|
13
|
+
import { C as W, e as X } from "./entity-card-p-LANpYt.js";
|
|
14
14
|
const Z = {
|
|
15
15
|
id: "care-plan-card",
|
|
16
16
|
// `expand` is host-delegated: the treatment-line list is an in-component
|
|
@@ -85,7 +85,7 @@ const Z = {
|
|
|
85
85
|
);
|
|
86
86
|
const K = d(`carePlanCard.state.${o}`, {
|
|
87
87
|
defaultValue: ae[o]
|
|
88
|
-
}), R =
|
|
88
|
+
}), R = W[o], U = !!u && Q(u), k = !!m && m.length > 0, i = s == null ? void 0 : s.dueCents, p = s == null ? void 0 : s.billedAmountCents, h = s == null ? void 0 : s.overdueDays, z = typeof h == "number" && h > 0 && typeof i == "number" && i > 0, y = /* @__PURE__ */ e(
|
|
89
89
|
"h3",
|
|
90
90
|
{
|
|
91
91
|
id: x,
|
|
@@ -104,7 +104,7 @@ const Z = {
|
|
|
104
104
|
"data-component-id": l,
|
|
105
105
|
"data-state": o,
|
|
106
106
|
id: l,
|
|
107
|
-
className:
|
|
107
|
+
className: X({ surface: I, className: D }),
|
|
108
108
|
...S,
|
|
109
109
|
children: /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
110
110
|
/* @__PURE__ */ t("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -253,4 +253,4 @@ export {
|
|
|
253
253
|
de as C,
|
|
254
254
|
Z as c
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=care-plan-card-
|
|
256
|
+
//# sourceMappingURL=care-plan-card-CjHq6PLo.js.map
|
|
@@ -10,7 +10,7 @@ import { T as J } from "./tooth-scheme-BtnFgugP.js";
|
|
|
10
10
|
import { C as Q, b as X, a as Z } from "./collapsible-DVPM46bq.js";
|
|
11
11
|
import { u as ee } from "./registry-DvAUVLHh.js";
|
|
12
12
|
import { C as ae } from "./chevron-down-DWE7GSq9.js";
|
|
13
|
-
import { e as te } from "./entity-card-
|
|
13
|
+
import { e as te } from "./entity-card-p-LANpYt.js";
|
|
14
14
|
const re = {
|
|
15
15
|
id: "care-plan-entry-card",
|
|
16
16
|
// `expand` is host-delegated: the per-phase breakdown is an in-component
|
|
@@ -319,4 +319,4 @@ export {
|
|
|
319
319
|
le as C,
|
|
320
320
|
re as c
|
|
321
321
|
};
|
|
322
|
-
//# sourceMappingURL=care-plan-entry-card-
|
|
322
|
+
//# sourceMappingURL=care-plan-entry-card-DY1toF6E.js.map
|
|
@@ -7,8 +7,8 @@ import { L as O } from "./link-CeV7FoI6.js";
|
|
|
7
7
|
import { S as $ } from "./separator-Bdc9bqoJ.js";
|
|
8
8
|
import { T as A } from "./timestamp-DPLDWdxA.js";
|
|
9
9
|
import { u as q } from "./registry-DvAUVLHh.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { i as J } from "./is-safe-url-CEy9CEml.js";
|
|
11
|
+
import { C as Q, e as W } from "./entity-card-p-LANpYt.js";
|
|
12
12
|
const X = {
|
|
13
13
|
id: "care-plan-header",
|
|
14
14
|
capabilities: [],
|
|
@@ -83,7 +83,7 @@ const X = {
|
|
|
83
83
|
defaultValue: "Care plan {{number}}"
|
|
84
84
|
}), B = l(`carePlanCard.state.${s}`, {
|
|
85
85
|
defaultValue: Y[s]
|
|
86
|
-
}), R = t != null && t !== "", V = !!p &&
|
|
86
|
+
}), R = t != null && t !== "", V = !!p && J(p), z = !!d && d.length > 0, x = !!m && m.length > 0, y = s === "accepted" ? e == null ? void 0 : e.acceptedIso : s === "closed" ? e == null ? void 0 : e.closedIso : s === "discarded" ? e == null ? void 0 : e.discardedIso : void 0, i = [];
|
|
87
87
|
e != null && e.acceptedIso && s !== "accepted" && i.push({
|
|
88
88
|
key: "accepted",
|
|
89
89
|
label: l("carePlanCard.date.accepted", "Accepted on"),
|
|
@@ -125,7 +125,7 @@ const X = {
|
|
|
125
125
|
"data-component-id": c,
|
|
126
126
|
"data-state": s,
|
|
127
127
|
id: c,
|
|
128
|
-
className:
|
|
128
|
+
className: W({ surface: L, density: T, className: S }),
|
|
129
129
|
...k,
|
|
130
130
|
children: /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
131
131
|
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -143,7 +143,7 @@ const X = {
|
|
|
143
143
|
f ? /* @__PURE__ */ r("div", { className: "ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
|
|
144
144
|
] }),
|
|
145
145
|
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
146
|
-
/* @__PURE__ */ n(P, { variant:
|
|
146
|
+
/* @__PURE__ */ n(P, { variant: Q[s], size: "md", withDot: !0, children: [
|
|
147
147
|
B,
|
|
148
148
|
y ? /* @__PURE__ */ n(N, { children: [
|
|
149
149
|
" · ",
|
|
@@ -195,4 +195,4 @@ export {
|
|
|
195
195
|
ee as C,
|
|
196
196
|
X as c
|
|
197
197
|
};
|
|
198
|
-
//# sourceMappingURL=care-plan-header-
|
|
198
|
+
//# sourceMappingURL=care-plan-header-CeFXUDnL.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as M, useRef as i, useState as H, useCallback as L, useImperativeHandle as S, useMemo as j, useEffect as E } from "react";
|
|
3
3
|
import { c as C } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { F } from "./floating-action-button-BesoUmO_.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { C as
|
|
11
|
-
const
|
|
4
|
+
import { useTranslation as K } from "react-i18next";
|
|
5
|
+
import { u as O } from "./registry-DvAUVLHh.js";
|
|
6
|
+
import { u as F } from "./index-Bze5jCG_.js";
|
|
7
|
+
import { F as P } from "./floating-action-button-BesoUmO_.js";
|
|
8
|
+
import { u as $ } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
9
|
+
import { u as D } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
10
|
+
import { C as U } from "./chevron-down-DWE7GSq9.js";
|
|
11
|
+
const X = {
|
|
12
12
|
id: "chat-container",
|
|
13
13
|
// Scrolling the log viewport is pure ephemeral view state — `scroll`,
|
|
14
14
|
// not `navigate` (nothing routes; the conversation stays in place).
|
|
@@ -61,7 +61,7 @@ const U = {
|
|
|
61
61
|
description: "Sourced from the id prop."
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, Y = C(
|
|
65
65
|
"ds:relative ds:flex ds:w-full ds:flex-col ds:overflow-hidden ds:bg-background",
|
|
66
66
|
{
|
|
67
67
|
variants: {
|
|
@@ -72,7 +72,7 @@ const U = {
|
|
|
72
72
|
},
|
|
73
73
|
defaultVariants: { density: "default" }
|
|
74
74
|
}
|
|
75
|
-
),
|
|
75
|
+
), Z = C(
|
|
76
76
|
[
|
|
77
77
|
"ds:flex-1 ds:min-h-0 ds:overflow-y-auto ds:overflow-x-hidden",
|
|
78
78
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -91,7 +91,7 @@ const U = {
|
|
|
91
91
|
"ds:motion-reduce:[mask-image:none]",
|
|
92
92
|
"ds:forced-colors:[mask-image:none]"
|
|
93
93
|
].join(" ")
|
|
94
|
-
),
|
|
94
|
+
), q = 100, G = 48, J = M(
|
|
95
95
|
({
|
|
96
96
|
messages: t,
|
|
97
97
|
composer: d,
|
|
@@ -100,9 +100,10 @@ const U = {
|
|
|
100
100
|
id: p,
|
|
101
101
|
onAutoScrollChange: c,
|
|
102
102
|
showScrollToLatest: N = !1,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
logLabel: B,
|
|
104
|
+
...I
|
|
105
|
+
}, R) => {
|
|
106
|
+
const { t: f } = K("ui"), n = i(null), h = i(null), [a, _] = H(!0), v = $(), r = L(
|
|
106
107
|
(e) => {
|
|
107
108
|
const s = n.current;
|
|
108
109
|
if (!s) return;
|
|
@@ -114,12 +115,12 @@ const U = {
|
|
|
114
115
|
},
|
|
115
116
|
[v]
|
|
116
117
|
), g = i(null);
|
|
117
|
-
|
|
118
|
+
S(R, () => g.current, []);
|
|
118
119
|
const b = i(a);
|
|
119
120
|
b.current = a;
|
|
120
121
|
const x = i(t.length);
|
|
121
122
|
x.current = t.length;
|
|
122
|
-
const
|
|
123
|
+
const A = j(
|
|
123
124
|
() => ({
|
|
124
125
|
scrollToBottom: r,
|
|
125
126
|
getScrollViewport: () => n.current,
|
|
@@ -128,28 +129,28 @@ const U = {
|
|
|
128
129
|
}),
|
|
129
130
|
[r]
|
|
130
131
|
);
|
|
131
|
-
|
|
132
|
+
O(X, A, p), E(() => {
|
|
132
133
|
const e = n.current, s = h.current;
|
|
133
134
|
if (!e || !s) return;
|
|
134
135
|
const l = new IntersectionObserver(
|
|
135
|
-
(
|
|
136
|
-
const w =
|
|
137
|
-
|
|
136
|
+
(V) => {
|
|
137
|
+
const w = V[0];
|
|
138
|
+
_(w.isIntersecting), c == null || c(w.isIntersecting);
|
|
138
139
|
},
|
|
139
140
|
{
|
|
140
141
|
root: e,
|
|
141
142
|
// Fire when the sentinel is within BOTTOM_SLACK_PX of being visible.
|
|
142
|
-
rootMargin: `0px 0px ${
|
|
143
|
+
rootMargin: `0px 0px ${G}px 0px`,
|
|
143
144
|
threshold: 0
|
|
144
145
|
}
|
|
145
146
|
);
|
|
146
147
|
return l.observe(s), () => l.disconnect();
|
|
147
148
|
}, [c]);
|
|
148
|
-
const
|
|
149
|
-
|
|
149
|
+
const z = t.length;
|
|
150
|
+
D(() => {
|
|
150
151
|
a && r({ smooth: !1 });
|
|
151
|
-
}, [
|
|
152
|
-
const y = t.length >
|
|
152
|
+
}, [z, a, r]);
|
|
153
|
+
const y = t.length > q, m = F({
|
|
153
154
|
count: y ? t.length : 0,
|
|
154
155
|
getScrollElement: () => n.current,
|
|
155
156
|
estimateSize: () => 80,
|
|
@@ -163,10 +164,10 @@ const U = {
|
|
|
163
164
|
"div",
|
|
164
165
|
{
|
|
165
166
|
ref: g,
|
|
166
|
-
className:
|
|
167
|
+
className: Y({ density: T, className: k }),
|
|
167
168
|
"data-component": "chat-container",
|
|
168
169
|
"data-component-id": p,
|
|
169
|
-
...
|
|
170
|
+
...I,
|
|
170
171
|
children: [
|
|
171
172
|
/* @__PURE__ */ u("div", { className: "ds:relative ds:flex-1 ds:min-h-0 ds:flex ds:flex-col", children: [
|
|
172
173
|
/* @__PURE__ */ u(
|
|
@@ -176,9 +177,9 @@ const U = {
|
|
|
176
177
|
role: "log",
|
|
177
178
|
"aria-live": "polite",
|
|
178
179
|
"aria-relevant": "additions",
|
|
179
|
-
"aria-label": f("chat.container"),
|
|
180
|
+
"aria-label": B ?? f("chat.container"),
|
|
180
181
|
tabIndex: 0,
|
|
181
|
-
className:
|
|
182
|
+
className: Z(),
|
|
182
183
|
children: [
|
|
183
184
|
y ? /* @__PURE__ */ o(
|
|
184
185
|
"ol",
|
|
@@ -232,9 +233,9 @@ const U = {
|
|
|
232
233
|
"ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]"
|
|
233
234
|
].join(" "),
|
|
234
235
|
children: /* @__PURE__ */ o("div", { className: "ds:pointer-events-auto", children: /* @__PURE__ */ o(
|
|
235
|
-
|
|
236
|
+
P,
|
|
236
237
|
{
|
|
237
|
-
icon: /* @__PURE__ */ o(
|
|
238
|
+
icon: /* @__PURE__ */ o(U, {}),
|
|
238
239
|
"aria-label": f("chat.scrollToLatest"),
|
|
239
240
|
size: "sm",
|
|
240
241
|
variant: "secondary",
|
|
@@ -251,9 +252,9 @@ const U = {
|
|
|
251
252
|
);
|
|
252
253
|
}
|
|
253
254
|
);
|
|
254
|
-
|
|
255
|
+
J.displayName = "ChatContainer";
|
|
255
256
|
export {
|
|
256
|
-
|
|
257
|
-
|
|
257
|
+
J as C,
|
|
258
|
+
X as c
|
|
258
259
|
};
|
|
259
|
-
//# sourceMappingURL=chat-container-
|
|
260
|
+
//# sourceMappingURL=chat-container-CoOT7dzB.js.map
|