@alfadocs/ui-kit-debug 1.132.0 → 1.134.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-card-B8hV3dZV.js.map → agenda-card-B9wgX_Ed.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js.map → agenda-tray-CGcS_qoM.js.map} +1 -1
- package/dist/_chunks/appointment-card-DG3m9yN-.js +504 -0
- package/dist/_chunks/appointment-card-DG3m9yN-.js.map +1 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BK0tDs4C.js} +2 -2
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js.map → appointment-peek-BK0tDs4C.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-BiI2riRZ.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js.map → appointment-timeline-BiI2riRZ.js.map} +1 -1
- package/dist/_chunks/appointment-tray-ClJCtYQj.js +200 -0
- package/dist/_chunks/appointment-tray-ClJCtYQj.js.map +1 -0
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js.map → appointment-workflow-status-S-lx81Yz.js.map} +1 -1
- package/dist/_chunks/ban-CiSCCcOE.js +15 -0
- package/dist/_chunks/ban-CiSCCcOE.js.map +1 -0
- package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
- package/dist/_chunks/{calendar-BIoOeBTT.js.map → calendar-CyLtLBNP.js.map} +1 -1
- package/dist/_chunks/calendar-appointment-editor-dialog-BSkIYGlW.js +13773 -0
- package/dist/_chunks/calendar-appointment-editor-dialog-BSkIYGlW.js.map +1 -0
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js.map → calendar-event-card-BJifpYZQ.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js.map → care-plan-card-CjHq6PLo.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js.map → care-plan-entry-card-DY1toF6E.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js.map → care-plan-header-CeFXUDnL.js.map} +1 -1
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js.map +1 -0
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js.map → clinical-note-card-D--IwbZa.js.map} +1 -1
- package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
- package/dist/_chunks/document-preview-DLVIrOYV.js.map +1 -0
- package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
- package/dist/_chunks/{entity-card-fpm-KUKc.js.map → entity-card-p-LANpYt.js.map} +1 -1
- package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
- package/dist/_chunks/error-page-WLhmWUTq.js.map +1 -0
- package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
- package/dist/_chunks/finished-terminal-unDnXT4j.js.map +1 -0
- package/dist/_chunks/house-DGCypGTo.js +21 -0
- package/dist/_chunks/house-DGCypGTo.js.map +1 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js.map +1 -0
- package/dist/_chunks/keypad-DBH_keVs.js +152 -0
- package/dist/_chunks/keypad-DBH_keVs.js.map +1 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js.map +1 -0
- package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
- package/dist/_chunks/{message-card-BG3_3nN1.js.map → message-card-Bw_q1qKx.js.map} +1 -1
- package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
- package/dist/_chunks/{message-tray-BjZv0Fsk.js.map → message-tray-pLGgLmoG.js.map} +1 -1
- package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
- package/dist/_chunks/{note-attachment-MNTIqdSz.js.map → note-attachment-JTIy9iXN.js.map} +1 -1
- package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
- package/dist/_chunks/{note-timeline-BQeW0VZY.js.map → note-timeline-BbjHMhkL.js.map} +1 -1
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BAyPOr8N.js} +2 -2
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js.map → notes-panel-BAyPOr8N.js.map} +1 -1
- package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
- package/dist/_chunks/{operator-hero-CnfWckNQ.js.map → operator-hero-D4wfVu2l.js.map} +1 -1
- package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
- package/dist/_chunks/otp-input-BNOTlxq3.js.map +1 -0
- package/dist/_chunks/patient-account-settings-BkAtIxJW.js +546 -0
- package/dist/_chunks/patient-account-settings-BkAtIxJW.js.map +1 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js.map +1 -0
- package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js +742 -0
- package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js.map +1 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js.map +1 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js.map +1 -0
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js.map → patient-summary-card-Bl2NknPe.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js.map → payment-request-card-CNW00DCx.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
- package/dist/_chunks/pdf-viewer-TRC5jEm5.js.map +1 -0
- package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
- package/dist/_chunks/pin-entry-BugWQMOS.js.map +1 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js.map +1 -0
- package/dist/_chunks/portal-details-CTEsm705.js +478 -0
- package/dist/_chunks/portal-details-CTEsm705.js.map +1 -0
- package/dist/_chunks/portal-documents-D8skew0h.js +902 -0
- package/dist/_chunks/portal-documents-D8skew0h.js.map +1 -0
- package/dist/_chunks/portal-parts-BdR29P7z.js +285 -0
- package/dist/_chunks/portal-parts-BdR29P7z.js.map +1 -0
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js.map → privacy-mask-C19dJFMk.js.map} +1 -1
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js.map → product-hub-panel-K4QbULG7.js.map} +1 -1
- package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
- package/dist/_chunks/{registration-form-CwbhtKcy.js.map → registration-form-DS3RuKHu.js.map} +1 -1
- package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
- package/dist/_chunks/{reserved.agent-W8mR179D.js.map → reserved.agent-DOzOBUW7.js.map} +1 -1
- package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
- package/dist/_chunks/session-countdown-DOx1IBUB.js.map +1 -0
- package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
- package/dist/_chunks/{sign-document-CQZVzfpk.js.map → sign-document-DDZbmYHu.js.map} +1 -1
- package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
- package/dist/_chunks/signature-field-BjlY_yXH.js.map +1 -0
- package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
- package/dist/_chunks/{signature-request-4pGq3YBe.js.map → signature-request-CHsM_iWi.js.map} +1 -1
- package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
- package/dist/_chunks/signature-status-chip-DS9hHwIt.js.map +1 -0
- package/dist/_chunks/signing-end-screen-an9P8DOT.js +1041 -0
- package/dist/_chunks/signing-end-screen-an9P8DOT.js.map +1 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js.map +1 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js.map +1 -0
- package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-g1AGfxhr.js} +38 -38
- package/dist/_chunks/{task-editor-BL2hHxNz.js.map → task-editor-g1AGfxhr.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-Dzc6fEzG.js} +6 -6
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js.map → use-appointment-details-read-Dzc6fEzG.js.map} +1 -1
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js.map +1 -0
- package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
- package/dist/_chunks/user-x-BJZg4kaP.js.map +1 -0
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js.map → verify-identity-types-C6Bam8v6.js.map} +1 -1
- package/dist/agent-catalog.json +723 -364
- package/dist/agent-i18n/en.json +75 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/_shared/is-safe-url.d.ts.map +1 -1
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +45 -0
- package/dist/components/appointment-card/appointment-card.d.ts.map +1 -1
- package/dist/components/appointment-card/appointment-tray.agent.d.ts.map +1 -1
- package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
- package/dist/components/appointment-card/appointment-tray.d.ts.map +1 -1
- 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/clinical-note-card/index.js +1 -1
- package/dist/components/document-preview/document-preview.agent.d.ts.map +1 -1
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/document-preview.d.ts.map +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
- package/dist/components/finished-terminal/finished-terminal.d.ts.map +1 -1
- package/dist/components/finished-terminal/index.d.ts +1 -1
- package/dist/components/finished-terminal/index.d.ts.map +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/keypad/index.d.ts +3 -0
- package/dist/components/keypad/index.d.ts.map +1 -0
- package/dist/components/keypad/index.js +6 -0
- package/dist/components/keypad/index.js.map +1 -0
- package/dist/components/keypad/keypad.d.ts +54 -0
- package/dist/components/keypad/keypad.d.ts.map +1 -0
- package/dist/components/keypad-button/index.d.ts +3 -0
- package/dist/components/keypad-button/index.d.ts.map +1 -0
- package/dist/components/keypad-button/index.js +6 -0
- package/dist/components/keypad-button/index.js.map +1 -0
- package/dist/components/keypad-button/keypad-button.d.ts +33 -0
- package/dist/components/keypad-button/keypad-button.d.ts.map +1 -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/otp-input/otp-input.d.ts.map +1 -1
- 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.agent.d.ts.map +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/pin-entry/index.d.ts +3 -0
- package/dist/components/pin-entry/index.d.ts.map +1 -0
- package/dist/components/pin-entry/index.js +5 -0
- package/dist/components/pin-entry/index.js.map +1 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts.map +1 -0
- package/dist/components/pin-entry/pin-entry.d.ts +64 -0
- package/dist/components/pin-entry/pin-entry.d.ts.map +1 -0
- package/dist/components/pin-indicator/index.d.ts +3 -0
- package/dist/components/pin-indicator/index.d.ts.map +1 -0
- package/dist/components/pin-indicator/index.js +9 -0
- package/dist/components/pin-indicator/index.js.map +1 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts.map +1 -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/session-countdown/session-countdown.d.ts.map +1 -1
- 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-field/signature-field.d.ts.map +1 -1
- 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/signature-status-chip/signature-status-chip.d.ts.map +1 -1
- package/dist/components/sms-code-entry/index.d.ts +3 -0
- package/dist/components/sms-code-entry/index.d.ts.map +1 -0
- package/dist/components/sms-code-entry/index.js +5 -0
- package/dist/components/sms-code-entry/index.js.map +1 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts.map +1 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts.map +1 -0
- package/dist/components/step-up-dialog/index.d.ts +3 -0
- package/dist/components/step-up-dialog/index.d.ts.map +1 -0
- package/dist/components/step-up-dialog/index.js +5 -0
- package/dist/components/step-up-dialog/index.js.map +1 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts.map +1 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- 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/hooks/use-signing-session.d.ts.map +1 -1
- package/dist/host-compat.css +10 -1
- package/dist/i18n/locales/ar.d.ts +514 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +512 -4
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +514 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +520 -5
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +514 -1
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +515 -5
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +516 -1
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +522 -4
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +514 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +513 -5
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +514 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +513 -5
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +514 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +513 -5
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +514 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +520 -5
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +514 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +513 -5
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +514 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +520 -5
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +514 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +520 -5
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +514 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +520 -5
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +514 -1
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +520 -5
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +514 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +512 -4
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +514 -1
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +513 -5
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +514 -1
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +513 -5
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +514 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +515 -5
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +514 -1
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +513 -5
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +1271 -1204
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +516 -3
- package/dist/locales/de.json +517 -4
- package/dist/locales/el.json +517 -4
- package/dist/locales/en.json +516 -3
- package/dist/locales/es.json +517 -4
- package/dist/locales/fr.json +517 -4
- package/dist/locales/hi.json +517 -4
- package/dist/locales/it.json +517 -4
- package/dist/locales/ja.json +517 -4
- package/dist/locales/nl.json +517 -4
- package/dist/locales/pl.json +517 -4
- package/dist/locales/pt.json +517 -4
- package/dist/locales/ro.json +517 -4
- package/dist/locales/ru.json +516 -3
- package/dist/locales/sq.json +517 -4
- package/dist/locales/sv.json +517 -4
- package/dist/locales/tr.json +517 -4
- package/dist/locales/zh.json +517 -4
- package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
- package/dist/patterns/calendar/calendar.journey.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
- package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.types.d.ts +4 -0
- package/dist/patterns/calendar/calendar.types.d.ts.map +1 -1
- 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-documents.d.ts.map +1 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts.map +1 -0
- package/dist/patterns/check-in-documents/index.d.ts +4 -0
- package/dist/patterns/check-in-documents/index.d.ts.map +1 -0
- package/dist/patterns/check-in-documents/index.js +5 -0
- package/dist/patterns/check-in-documents/index.js.map +1 -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.d.ts.map +1 -0
- package/dist/patterns/patient-account-settings/index.js +5 -0
- package/dist/patterns/patient-account-settings/index.js.map +1 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts.map +1 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts.map +1 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/index.d.ts +20 -0
- package/dist/patterns/patient-check-in/index.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/index.js +13 -0
- package/dist/patterns/patient-check-in/index.js.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts.map +1 -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-connection-notice.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts.map +1 -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-empty.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts.map +1 -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-personal-data.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts.map +1 -0
- package/dist/patterns/patient-portal/index.d.ts +12 -0
- package/dist/patterns/patient-portal/index.d.ts.map +1 -0
- package/dist/patterns/patient-portal/index.js +13 -0
- package/dist/patterns/patient-portal/index.js.map +1 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
- package/dist/patterns/patient-portal/portal-details.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
- package/dist/patterns/patient-portal/portal-format.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
- package/dist/patterns/patient-portal/portal-home.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
- package/dist/patterns/patient-portal/portal-types.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/index.d.ts +7 -0
- package/dist/patterns/patient-sign-in/index.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/index.js +15 -0
- package/dist/patterns/patient-sign-in/index.js.map +1 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts.map +1 -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 +25 -0
- package/dist/patterns/signing/index.d.ts.map +1 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/index.js.map +1 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
- package/dist/patterns/signing/multi-field-signer.d.ts.map +1 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-chrome.d.ts.map +1 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +87 -0
- package/dist/patterns/signing/signing-document-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
- package/dist/patterns/signing/signing-end-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-footer.d.ts +56 -0
- package/dist/patterns/signing/signing-footer.d.ts.map +1 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts.map +1 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts.map +1 -0
- package/dist/patterns/signing/signing-roster.d.ts +44 -0
- package/dist/patterns/signing/signing-roster.d.ts.map +1 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts.map +1 -0
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +49 -1
- package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
- package/dist/_chunks/appointment-card-OAOur8lH.js.map +0 -1
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js.map +0 -1
- package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
- package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js.map +0 -1
- package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
- package/dist/_chunks/document-preview-_kQ9QvZV.js.map +0 -1
- package/dist/_chunks/error-page-B0fGNTRB.js.map +0 -1
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js.map +0 -1
- package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
- package/dist/_chunks/is-safe-url-DkETxeHz.js.map +0 -1
- package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
- package/dist/_chunks/otp-input-gV1446Dw.js.map +0 -1
- package/dist/_chunks/pdf-viewer-BnBKdx0y.js.map +0 -1
- package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
- package/dist/_chunks/session-countdown-C4tzbJVc.js.map +0 -1
- package/dist/_chunks/signature-field-DjabvRZm.js.map +0 -1
- package/dist/_chunks/signature-status-chip-pIoQjvH8.js.map +0 -1
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js.map +0 -1
- package/dist/_chunks/user-x-DYszNtIg.js.map +0 -1
|
@@ -0,0 +1,902 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as T, useEffect as M, useId as te, useState as ie } from "react";
|
|
3
|
+
import { useTranslation as q, Trans as j } from "react-i18next";
|
|
4
|
+
import { B as C } from "./button-DohK_Ak_.js";
|
|
5
|
+
import { T as se } from "./tab-bar-CeC2QOwB.js";
|
|
6
|
+
import { p as ae } from "./privacy-mask-text-B8YfzB7L.js";
|
|
7
|
+
import { c as D, b as de } from "./patient-sign-in-steps-C2JSqlok.js";
|
|
8
|
+
import { g as ce, a as W, S as pe, b as F, u as G, P as J, e as $, h as V, i as R, j as me, t as Z, c as E, d as ne, k as _ } from "./portal-parts-BdR29P7z.js";
|
|
9
|
+
import { H as ue } from "./house-DGCypGTo.js";
|
|
10
|
+
import { C as he } from "./calendar-days-BGWklvE-.js";
|
|
11
|
+
import { F as re } from "./file-text-5yv6r2ls.js";
|
|
12
|
+
import { U as fe } from "./user-B12p7bVF.js";
|
|
13
|
+
import { L as Pe } from "./log-out-oDS6zO5d.js";
|
|
14
|
+
import { W as ge } from "./whatsapp-button-XbozeDl_.js";
|
|
15
|
+
import { P as oe } from "./phone-FceYcIFQ.js";
|
|
16
|
+
import { i as be } from "./is-safe-url-CEy9CEml.js";
|
|
17
|
+
import { D as H } from "./dialog-CVTxyR0v.js";
|
|
18
|
+
import { V as ye } from "./visually-hidden-BHxEUGyT.js";
|
|
19
|
+
import { u as ve } from "./use-controllable-state-BiY4xTzM.js";
|
|
20
|
+
import { A as ee } from "./alert-C4WKViaS.js";
|
|
21
|
+
import { D as xe } from "./document-preview-DLVIrOYV.js";
|
|
22
|
+
import { D as ke } from "./download-CfYKJO_j.js";
|
|
23
|
+
function _e({
|
|
24
|
+
activeTab: p,
|
|
25
|
+
onTabChange: y,
|
|
26
|
+
tabs: k,
|
|
27
|
+
renderLink: f,
|
|
28
|
+
patientName: g,
|
|
29
|
+
onSignOut: o,
|
|
30
|
+
remainingMs: N,
|
|
31
|
+
totalMs: n,
|
|
32
|
+
sessionWarnAtMs: S,
|
|
33
|
+
onSessionExpire: c,
|
|
34
|
+
sessionEnded: v = null,
|
|
35
|
+
idleMinutes: i,
|
|
36
|
+
onSignInAgain: P,
|
|
37
|
+
status: a = "ready",
|
|
38
|
+
onRetry: r,
|
|
39
|
+
children: m,
|
|
40
|
+
focusOnMount: w = !1,
|
|
41
|
+
privacy: x = !1,
|
|
42
|
+
className: u
|
|
43
|
+
}) {
|
|
44
|
+
const { t: b } = q("ui"), A = T(null), B = v !== null;
|
|
45
|
+
M(() => {
|
|
46
|
+
var z;
|
|
47
|
+
if (!w || B) return;
|
|
48
|
+
const d = ((z = A.current) == null ? void 0 : z.querySelector("h1, h2")) ?? A.current;
|
|
49
|
+
d == null || d.focus({ preventScroll: !0 });
|
|
50
|
+
}, []);
|
|
51
|
+
const s = [
|
|
52
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
53
|
+
u
|
|
54
|
+
].filter(Boolean).join(" ");
|
|
55
|
+
if (v !== null)
|
|
56
|
+
return /* @__PURE__ */ e(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
"data-component": "portal-shell",
|
|
60
|
+
"data-state": "ended",
|
|
61
|
+
"data-privacy": x ? "masked" : void 0,
|
|
62
|
+
className: s,
|
|
63
|
+
children: v === "timed-out" && i !== void 0 ? /* @__PURE__ */ e(
|
|
64
|
+
D,
|
|
65
|
+
{
|
|
66
|
+
reason: "timed-out",
|
|
67
|
+
idleMinutes: i,
|
|
68
|
+
onSignIn: P,
|
|
69
|
+
focusOnMount: w
|
|
70
|
+
}
|
|
71
|
+
) : /* @__PURE__ */ e(
|
|
72
|
+
D,
|
|
73
|
+
{
|
|
74
|
+
reason: "signed-out",
|
|
75
|
+
onSignIn: P,
|
|
76
|
+
focusOnMount: w
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
const O = k ?? [
|
|
82
|
+
{
|
|
83
|
+
id: "home",
|
|
84
|
+
label: b("patientPortal.nav.home"),
|
|
85
|
+
icon: /* @__PURE__ */ e(ue, { "aria-hidden": "true" })
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: "appointments",
|
|
89
|
+
label: b("patientPortal.nav.appointments"),
|
|
90
|
+
icon: /* @__PURE__ */ e(he, { "aria-hidden": "true" })
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "documents",
|
|
94
|
+
label: b("patientPortal.nav.documents"),
|
|
95
|
+
icon: /* @__PURE__ */ e(re, { "aria-hidden": "true" })
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: "details",
|
|
99
|
+
label: b("patientPortal.nav.details"),
|
|
100
|
+
icon: /* @__PURE__ */ e(fe, { "aria-hidden": "true" })
|
|
101
|
+
}
|
|
102
|
+
], I = g == null ? void 0 : g.trim();
|
|
103
|
+
return /* @__PURE__ */ l(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
"data-component": "portal-shell",
|
|
107
|
+
"data-privacy": x ? "masked" : void 0,
|
|
108
|
+
className: s,
|
|
109
|
+
children: [
|
|
110
|
+
I ? /* @__PURE__ */ e(
|
|
111
|
+
"p",
|
|
112
|
+
{
|
|
113
|
+
dir: "auto",
|
|
114
|
+
className: "type-body-sm ds:m-0 ds:break-words ds:text-[color:var(--muted-foreground)]",
|
|
115
|
+
children: x ? ae() : I
|
|
116
|
+
}
|
|
117
|
+
) : null,
|
|
118
|
+
N !== void 0 ? /* @__PURE__ */ e(
|
|
119
|
+
de,
|
|
120
|
+
{
|
|
121
|
+
remainingMs: N,
|
|
122
|
+
totalMs: n,
|
|
123
|
+
warnAtMs: S,
|
|
124
|
+
onSignOut: o,
|
|
125
|
+
onExpire: c
|
|
126
|
+
}
|
|
127
|
+
) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
128
|
+
C,
|
|
129
|
+
{
|
|
130
|
+
type: "button",
|
|
131
|
+
intent: "outline",
|
|
132
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
133
|
+
startIcon: /* @__PURE__ */ e(Pe, { "aria-hidden": "true" }),
|
|
134
|
+
"data-action": "sign-out",
|
|
135
|
+
onClick: o,
|
|
136
|
+
children: b("patientSignIn.session.signOut")
|
|
137
|
+
}
|
|
138
|
+
) }),
|
|
139
|
+
/* @__PURE__ */ e(
|
|
140
|
+
se,
|
|
141
|
+
{
|
|
142
|
+
fill: !0,
|
|
143
|
+
collapseToMenu: !0,
|
|
144
|
+
ariaLabel: b("patientPortal.nav.label"),
|
|
145
|
+
items: O.map((d) => ({
|
|
146
|
+
id: d.id,
|
|
147
|
+
label: d.label,
|
|
148
|
+
icon: d.icon,
|
|
149
|
+
href: d.href,
|
|
150
|
+
isActive: d.id === p
|
|
151
|
+
})),
|
|
152
|
+
renderLink: f,
|
|
153
|
+
onSelect: y
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ l(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
ref: A,
|
|
160
|
+
tabIndex: -1,
|
|
161
|
+
"data-state": a,
|
|
162
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:outline-none",
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ e(
|
|
165
|
+
ce,
|
|
166
|
+
{
|
|
167
|
+
message: a === "loading" ? b("patientPortal.shell.loading") : a === "error" ? b("patientPortal.shell.errorTitle") : ""
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
a === "loading" ? /* @__PURE__ */ e(W, {}) : a === "error" ? /* @__PURE__ */ e(
|
|
171
|
+
pe.Provider,
|
|
172
|
+
{
|
|
173
|
+
value: () => {
|
|
174
|
+
var d;
|
|
175
|
+
return (d = A.current) == null ? void 0 : d.focus({ preventScroll: !0 });
|
|
176
|
+
},
|
|
177
|
+
children: /* @__PURE__ */ e(
|
|
178
|
+
F,
|
|
179
|
+
{
|
|
180
|
+
kind: "error",
|
|
181
|
+
title: b("patientPortal.shell.errorTitle"),
|
|
182
|
+
body: b("patientPortal.shell.errorBody"),
|
|
183
|
+
headingLevel: 1,
|
|
184
|
+
onRetry: r
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
}
|
|
188
|
+
) : m
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
function we({
|
|
197
|
+
practices: p,
|
|
198
|
+
headingLevel: y = 2,
|
|
199
|
+
className: k
|
|
200
|
+
}) {
|
|
201
|
+
const { t: f } = q("ui"), g = te(), o = p.filter(
|
|
202
|
+
(n) => n.whatsAppNumber || Z(n.phone)
|
|
203
|
+
);
|
|
204
|
+
if (o.length === 0) return null;
|
|
205
|
+
const N = y === 2 ? "h2" : "h3";
|
|
206
|
+
return /* @__PURE__ */ l(
|
|
207
|
+
"section",
|
|
208
|
+
{
|
|
209
|
+
"data-component": "portal-practice-contact",
|
|
210
|
+
"aria-labelledby": g,
|
|
211
|
+
className: ["ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", k].filter(Boolean).join(" "),
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ e(N, { id: g, className: "type-title-card ds:m-0", children: f("patientPortal.contact.title") }),
|
|
214
|
+
/* @__PURE__ */ e("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0", children: o.map((n) => {
|
|
215
|
+
const S = Z(n.phone), c = n.name;
|
|
216
|
+
return /* @__PURE__ */ e(
|
|
217
|
+
"li",
|
|
218
|
+
{
|
|
219
|
+
"data-practice-id": n.id,
|
|
220
|
+
className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]",
|
|
221
|
+
children: n.whatsAppNumber ? /* @__PURE__ */ l(L, { children: [
|
|
222
|
+
/* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:break-words ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
|
|
223
|
+
j,
|
|
224
|
+
{
|
|
225
|
+
t: f,
|
|
226
|
+
ns: "ui",
|
|
227
|
+
i18nKey: "patientPortal.contact.whatsAppBody",
|
|
228
|
+
values: { practice: c },
|
|
229
|
+
components: { practice: /* @__PURE__ */ e("bdi", {}) }
|
|
230
|
+
}
|
|
231
|
+
) }),
|
|
232
|
+
/* @__PURE__ */ e(
|
|
233
|
+
ge,
|
|
234
|
+
{
|
|
235
|
+
size: "lg",
|
|
236
|
+
phoneNumber: n.whatsAppNumber,
|
|
237
|
+
message: n.whatsAppMessage ?? f("patientPortal.contact.whatsAppMessage"),
|
|
238
|
+
label: f("patientPortal.contact.whatsAppLabel", {
|
|
239
|
+
practice: c
|
|
240
|
+
}),
|
|
241
|
+
"data-action": "whatsapp"
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
] }) : S ? /* @__PURE__ */ l(L, { children: [
|
|
245
|
+
/* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:break-words ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
|
|
246
|
+
j,
|
|
247
|
+
{
|
|
248
|
+
t: f,
|
|
249
|
+
ns: "ui",
|
|
250
|
+
i18nKey: "patientPortal.contact.phoneBody",
|
|
251
|
+
values: { practice: c },
|
|
252
|
+
components: { practice: /* @__PURE__ */ e("bdi", {}) }
|
|
253
|
+
}
|
|
254
|
+
) }),
|
|
255
|
+
/* @__PURE__ */ e(
|
|
256
|
+
C,
|
|
257
|
+
{
|
|
258
|
+
asChild: !0,
|
|
259
|
+
intent: "secondary",
|
|
260
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
261
|
+
startIcon: /* @__PURE__ */ e(oe, { "aria-hidden": "true" }),
|
|
262
|
+
children: /* @__PURE__ */ e("a", { href: S, "data-action": "call-practice", children: /* @__PURE__ */ e(
|
|
263
|
+
j,
|
|
264
|
+
{
|
|
265
|
+
t: f,
|
|
266
|
+
ns: "ui",
|
|
267
|
+
i18nKey: "patientPortal.contact.call",
|
|
268
|
+
values: {
|
|
269
|
+
phone: n.phoneDisplay ?? n.phone ?? ""
|
|
270
|
+
},
|
|
271
|
+
components: { phone: /* @__PURE__ */ e("bdi", { dir: "ltr" }) }
|
|
272
|
+
}
|
|
273
|
+
) })
|
|
274
|
+
}
|
|
275
|
+
)
|
|
276
|
+
] }) : null
|
|
277
|
+
},
|
|
278
|
+
n.id
|
|
279
|
+
);
|
|
280
|
+
}) })
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
function Ge({
|
|
286
|
+
appointments: p = [],
|
|
287
|
+
practices: y = [],
|
|
288
|
+
patientName: k,
|
|
289
|
+
status: f = "ready",
|
|
290
|
+
onRetry: g,
|
|
291
|
+
onCheckIn: o,
|
|
292
|
+
locale: N,
|
|
293
|
+
headingLevel: n = 1,
|
|
294
|
+
focusOnMount: S = !1,
|
|
295
|
+
privacy: c = !1,
|
|
296
|
+
className: v
|
|
297
|
+
}) {
|
|
298
|
+
const { t: i } = q("ui"), P = G(N), a = k == null ? void 0 : k.trim(), r = p.filter(
|
|
299
|
+
(m) => m.status !== "past"
|
|
300
|
+
);
|
|
301
|
+
return /* @__PURE__ */ e(
|
|
302
|
+
J,
|
|
303
|
+
{
|
|
304
|
+
component: "portal-home",
|
|
305
|
+
title: a && !c ? /* @__PURE__ */ e(
|
|
306
|
+
j,
|
|
307
|
+
{
|
|
308
|
+
t: i,
|
|
309
|
+
ns: "ui",
|
|
310
|
+
i18nKey: "patientPortal.home.title",
|
|
311
|
+
values: { name: a },
|
|
312
|
+
components: { name: /* @__PURE__ */ e("bdi", {}) }
|
|
313
|
+
}
|
|
314
|
+
) : i("patientPortal.home.titleNoName"),
|
|
315
|
+
headingLevel: n,
|
|
316
|
+
focusOnMount: S,
|
|
317
|
+
privacy: c,
|
|
318
|
+
className: v,
|
|
319
|
+
status: f,
|
|
320
|
+
loadingLabel: i("patientPortal.home.loading"),
|
|
321
|
+
errorLabel: i("patientPortal.home.error.title"),
|
|
322
|
+
children: f === "loading" ? /* @__PURE__ */ e(W, {}) : f === "error" ? /* @__PURE__ */ e(
|
|
323
|
+
F,
|
|
324
|
+
{
|
|
325
|
+
kind: "error",
|
|
326
|
+
title: i("patientPortal.home.error.title"),
|
|
327
|
+
body: i("patientPortal.home.error.body"),
|
|
328
|
+
headingLevel: n,
|
|
329
|
+
onRetry: g
|
|
330
|
+
}
|
|
331
|
+
) : /* @__PURE__ */ l(L, { children: [
|
|
332
|
+
r.length === 0 ? /* @__PURE__ */ e(
|
|
333
|
+
F,
|
|
334
|
+
{
|
|
335
|
+
kind: "empty",
|
|
336
|
+
title: i("patientPortal.home.empty.title"),
|
|
337
|
+
body: i("patientPortal.home.empty.body"),
|
|
338
|
+
headingLevel: n
|
|
339
|
+
}
|
|
340
|
+
) : /* @__PURE__ */ e(
|
|
341
|
+
$,
|
|
342
|
+
{
|
|
343
|
+
title: i("patientPortal.home.upcoming"),
|
|
344
|
+
headingLevel: n,
|
|
345
|
+
section: "upcoming",
|
|
346
|
+
children: /* @__PURE__ */ e(V, { children: r.map((m) => /* @__PURE__ */ e(
|
|
347
|
+
R,
|
|
348
|
+
{
|
|
349
|
+
appointment: m,
|
|
350
|
+
locale: P,
|
|
351
|
+
privacy: c,
|
|
352
|
+
children: m.checkInDue && m.status === "upcoming" ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-md)] ds:bg-[var(--primary-soft)] ds:p-[var(--spacing-md)]", children: [
|
|
353
|
+
/* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--primary-soft-foreground)]", children: i("patientPortal.home.checkInDue") }),
|
|
354
|
+
o ? /* @__PURE__ */ e(
|
|
355
|
+
C,
|
|
356
|
+
{
|
|
357
|
+
type: "button",
|
|
358
|
+
intent: "primary",
|
|
359
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
360
|
+
"data-action": "check-in",
|
|
361
|
+
"aria-label": `${i("patientPortal.home.checkIn")}. ${i(
|
|
362
|
+
"patientPortal.appointments.confirmWhen",
|
|
363
|
+
{
|
|
364
|
+
when: me(
|
|
365
|
+
m.startIso,
|
|
366
|
+
P,
|
|
367
|
+
m.practice.timeZone
|
|
368
|
+
),
|
|
369
|
+
practice: m.practice.name
|
|
370
|
+
}
|
|
371
|
+
)}`,
|
|
372
|
+
onClick: () => o(m.id),
|
|
373
|
+
children: i("patientPortal.home.checkIn")
|
|
374
|
+
}
|
|
375
|
+
) : null
|
|
376
|
+
] }) : null
|
|
377
|
+
},
|
|
378
|
+
m.id
|
|
379
|
+
)) })
|
|
380
|
+
}
|
|
381
|
+
),
|
|
382
|
+
/* @__PURE__ */ e(
|
|
383
|
+
we,
|
|
384
|
+
{
|
|
385
|
+
practices: y,
|
|
386
|
+
headingLevel: n === 1 ? 2 : 3
|
|
387
|
+
}
|
|
388
|
+
)
|
|
389
|
+
] })
|
|
390
|
+
}
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
function Je({
|
|
394
|
+
appointments: p = [],
|
|
395
|
+
status: y = "ready",
|
|
396
|
+
onRetry: k,
|
|
397
|
+
confirmingId: f,
|
|
398
|
+
defaultConfirmingId: g = null,
|
|
399
|
+
onConfirmingChange: o,
|
|
400
|
+
onCancelAppointment: N,
|
|
401
|
+
stepUp: n = null,
|
|
402
|
+
locale: S,
|
|
403
|
+
headingLevel: c = 1,
|
|
404
|
+
focusOnMount: v = !1,
|
|
405
|
+
privacy: i = !1,
|
|
406
|
+
className: P
|
|
407
|
+
}) {
|
|
408
|
+
const { t: a } = q("ui"), r = G(S), [m, w] = ve({
|
|
409
|
+
value: f,
|
|
410
|
+
defaultValue: g,
|
|
411
|
+
onChange: o
|
|
412
|
+
}), x = m ?? null, u = x === null ? void 0 : p.find(
|
|
413
|
+
(t) => t.id === x && t.status === "upcoming"
|
|
414
|
+
), b = u !== void 0 && !n, A = p.filter((t) => t.status === "upcoming"), B = p.filter((t) => t.status === "cancelled"), s = p.filter((t) => t.status === "past"), O = T(null), I = T(null);
|
|
415
|
+
x !== null && (I.current = x);
|
|
416
|
+
const d = (t) => {
|
|
417
|
+
var Y;
|
|
418
|
+
if (t === null) return;
|
|
419
|
+
const h = Array.from(
|
|
420
|
+
((Y = O.current) == null ? void 0 : Y.querySelectorAll("[data-appointment-id]")) ?? []
|
|
421
|
+
).find((le) => le.dataset.appointmentId === t);
|
|
422
|
+
if (!h) return;
|
|
423
|
+
(h.querySelector(
|
|
424
|
+
'[data-action="cancel-appointment"]'
|
|
425
|
+
) ?? h).focus({ preventScroll: !0 });
|
|
426
|
+
}, z = T(/* @__PURE__ */ new Map()), [K, U] = ie("");
|
|
427
|
+
M(() => {
|
|
428
|
+
let t = null;
|
|
429
|
+
for (const h of p)
|
|
430
|
+
h.status === "cancelled" && z.current.get(h.id) === "upcoming" && (t = h.id);
|
|
431
|
+
z.current = new Map(p.map((h) => [h.id, h.status])), t !== null && (U(a("patientPortal.appointments.cancelledStatus")), d(t));
|
|
432
|
+
}, [p]);
|
|
433
|
+
const Q = T(!1);
|
|
434
|
+
M(() => {
|
|
435
|
+
const t = Q.current && !n;
|
|
436
|
+
Q.current = !!n, t && d(I.current);
|
|
437
|
+
}, [n]);
|
|
438
|
+
const X = (t) => _(
|
|
439
|
+
t.startIso,
|
|
440
|
+
r,
|
|
441
|
+
t.practice.timeZone
|
|
442
|
+
);
|
|
443
|
+
return /* @__PURE__ */ l(
|
|
444
|
+
J,
|
|
445
|
+
{
|
|
446
|
+
component: "portal-appointments",
|
|
447
|
+
title: a("patientPortal.appointments.title"),
|
|
448
|
+
headingLevel: c,
|
|
449
|
+
focusOnMount: v,
|
|
450
|
+
privacy: i,
|
|
451
|
+
className: P,
|
|
452
|
+
rootRef: O,
|
|
453
|
+
status: y,
|
|
454
|
+
loadingLabel: a("patientPortal.appointments.loading"),
|
|
455
|
+
errorLabel: a("patientPortal.appointments.error.title"),
|
|
456
|
+
message: K,
|
|
457
|
+
children: [
|
|
458
|
+
y === "loading" ? /* @__PURE__ */ e(W, {}) : y === "error" ? /* @__PURE__ */ e(
|
|
459
|
+
F,
|
|
460
|
+
{
|
|
461
|
+
kind: "error",
|
|
462
|
+
title: a("patientPortal.appointments.error.title"),
|
|
463
|
+
body: a("patientPortal.home.error.body"),
|
|
464
|
+
headingLevel: c,
|
|
465
|
+
onRetry: k
|
|
466
|
+
}
|
|
467
|
+
) : p.length === 0 ? /* @__PURE__ */ e(
|
|
468
|
+
F,
|
|
469
|
+
{
|
|
470
|
+
kind: "empty",
|
|
471
|
+
title: a("patientPortal.appointments.empty.title"),
|
|
472
|
+
body: a("patientPortal.appointments.empty.body"),
|
|
473
|
+
headingLevel: c
|
|
474
|
+
}
|
|
475
|
+
) : /* @__PURE__ */ l(L, { children: [
|
|
476
|
+
A.length > 0 ? /* @__PURE__ */ e(
|
|
477
|
+
$,
|
|
478
|
+
{
|
|
479
|
+
title: a("patientPortal.appointments.upcoming"),
|
|
480
|
+
headingLevel: c,
|
|
481
|
+
section: "upcoming",
|
|
482
|
+
children: /* @__PURE__ */ e(V, { children: A.map((t) => {
|
|
483
|
+
const h = Z(t.practice.phone);
|
|
484
|
+
return /* @__PURE__ */ e(
|
|
485
|
+
R,
|
|
486
|
+
{
|
|
487
|
+
appointment: t,
|
|
488
|
+
locale: r,
|
|
489
|
+
privacy: i,
|
|
490
|
+
children: t.insideCutOff ? /* @__PURE__ */ l(L, { children: [
|
|
491
|
+
/* @__PURE__ */ e(E, { children: t.cutOffHours !== void 0 ? a("patientPortal.appointments.cutOff", {
|
|
492
|
+
count: t.cutOffHours
|
|
493
|
+
}) : a("patientPortal.appointments.cutOffNoHours") }),
|
|
494
|
+
h ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
495
|
+
C,
|
|
496
|
+
{
|
|
497
|
+
asChild: !0,
|
|
498
|
+
intent: "secondary",
|
|
499
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
500
|
+
startIcon: /* @__PURE__ */ e(oe, { "aria-hidden": "true" }),
|
|
501
|
+
children: /* @__PURE__ */ e("a", { href: h, "data-action": "call-practice", children: /* @__PURE__ */ e(
|
|
502
|
+
j,
|
|
503
|
+
{
|
|
504
|
+
t: a,
|
|
505
|
+
ns: "ui",
|
|
506
|
+
i18nKey: "patientPortal.appointments.call",
|
|
507
|
+
values: {
|
|
508
|
+
phone: t.practice.phoneDisplay ?? t.practice.phone ?? ""
|
|
509
|
+
},
|
|
510
|
+
components: { phone: /* @__PURE__ */ e("bdi", { dir: "ltr" }) }
|
|
511
|
+
}
|
|
512
|
+
) })
|
|
513
|
+
}
|
|
514
|
+
) }) : null
|
|
515
|
+
] }) : /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
516
|
+
C,
|
|
517
|
+
{
|
|
518
|
+
type: "button",
|
|
519
|
+
intent: "destructiveOutline",
|
|
520
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
521
|
+
"data-action": "cancel-appointment",
|
|
522
|
+
"aria-label": a(
|
|
523
|
+
"patientPortal.appointments.cancelFor",
|
|
524
|
+
{
|
|
525
|
+
when: X(t),
|
|
526
|
+
practice: t.practice.name
|
|
527
|
+
}
|
|
528
|
+
),
|
|
529
|
+
onClick: () => w(t.id),
|
|
530
|
+
children: a("patientPortal.appointments.cancel")
|
|
531
|
+
}
|
|
532
|
+
) })
|
|
533
|
+
},
|
|
534
|
+
t.id
|
|
535
|
+
);
|
|
536
|
+
}) })
|
|
537
|
+
}
|
|
538
|
+
) : null,
|
|
539
|
+
B.length > 0 ? /* @__PURE__ */ e(
|
|
540
|
+
$,
|
|
541
|
+
{
|
|
542
|
+
title: a("patientPortal.appointments.cancelledHeading"),
|
|
543
|
+
headingLevel: c,
|
|
544
|
+
section: "cancelled",
|
|
545
|
+
children: /* @__PURE__ */ e(V, { children: B.map((t) => {
|
|
546
|
+
const h = t.practice.bookingUrl;
|
|
547
|
+
return /* @__PURE__ */ l(
|
|
548
|
+
R,
|
|
549
|
+
{
|
|
550
|
+
appointment: t,
|
|
551
|
+
locale: r,
|
|
552
|
+
privacy: i,
|
|
553
|
+
children: [
|
|
554
|
+
/* @__PURE__ */ e(E, { children: a("patientPortal.appointments.cancelled") }),
|
|
555
|
+
h && be(h) ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
556
|
+
C,
|
|
557
|
+
{
|
|
558
|
+
asChild: !0,
|
|
559
|
+
intent: "primary",
|
|
560
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
561
|
+
children: /* @__PURE__ */ l(
|
|
562
|
+
"a",
|
|
563
|
+
{
|
|
564
|
+
href: h,
|
|
565
|
+
target: "_blank",
|
|
566
|
+
rel: "noopener noreferrer",
|
|
567
|
+
"data-action": "rebook",
|
|
568
|
+
children: [
|
|
569
|
+
a("patientPortal.appointments.rebook"),
|
|
570
|
+
/* @__PURE__ */ l(ye, { children: [
|
|
571
|
+
" ",
|
|
572
|
+
a("patientPortal.appointments.rebookAt", {
|
|
573
|
+
practice: t.practice.name
|
|
574
|
+
}),
|
|
575
|
+
" ",
|
|
576
|
+
a("link.opensInNewTab")
|
|
577
|
+
] })
|
|
578
|
+
]
|
|
579
|
+
}
|
|
580
|
+
)
|
|
581
|
+
}
|
|
582
|
+
) }) : null
|
|
583
|
+
]
|
|
584
|
+
},
|
|
585
|
+
t.id
|
|
586
|
+
);
|
|
587
|
+
}) })
|
|
588
|
+
}
|
|
589
|
+
) : null,
|
|
590
|
+
s.length > 0 ? /* @__PURE__ */ e(
|
|
591
|
+
$,
|
|
592
|
+
{
|
|
593
|
+
title: a("patientPortal.appointments.past"),
|
|
594
|
+
headingLevel: c,
|
|
595
|
+
section: "past",
|
|
596
|
+
children: /* @__PURE__ */ e(V, { children: s.map((t) => /* @__PURE__ */ e(
|
|
597
|
+
R,
|
|
598
|
+
{
|
|
599
|
+
appointment: t,
|
|
600
|
+
locale: r,
|
|
601
|
+
privacy: i
|
|
602
|
+
},
|
|
603
|
+
t.id
|
|
604
|
+
)) })
|
|
605
|
+
}
|
|
606
|
+
) : null
|
|
607
|
+
] }),
|
|
608
|
+
/* @__PURE__ */ e(
|
|
609
|
+
H.Root,
|
|
610
|
+
{
|
|
611
|
+
open: b,
|
|
612
|
+
onOpenChange: (t) => {
|
|
613
|
+
t || w(null);
|
|
614
|
+
},
|
|
615
|
+
children: /* @__PURE__ */ l(
|
|
616
|
+
H.Content,
|
|
617
|
+
{
|
|
618
|
+
size: "sm",
|
|
619
|
+
variant: "alert",
|
|
620
|
+
onCloseAutoFocus: (t) => {
|
|
621
|
+
n || (t.preventDefault(), d(I.current));
|
|
622
|
+
},
|
|
623
|
+
children: [
|
|
624
|
+
/* @__PURE__ */ l(H.Header, { children: [
|
|
625
|
+
/* @__PURE__ */ e(H.Title, { children: a("patientPortal.appointments.confirmTitle") }),
|
|
626
|
+
/* @__PURE__ */ l(H.Description, { children: [
|
|
627
|
+
a("patientPortal.appointments.confirmBody"),
|
|
628
|
+
u ? /* @__PURE__ */ l(L, { children: [
|
|
629
|
+
" ",
|
|
630
|
+
/* @__PURE__ */ e(
|
|
631
|
+
j,
|
|
632
|
+
{
|
|
633
|
+
t: a,
|
|
634
|
+
ns: "ui",
|
|
635
|
+
i18nKey: "patientPortal.appointments.confirmWhenRich",
|
|
636
|
+
values: {
|
|
637
|
+
when: X(u),
|
|
638
|
+
practice: u.practice.name
|
|
639
|
+
},
|
|
640
|
+
components: { practice: /* @__PURE__ */ e("bdi", {}) }
|
|
641
|
+
}
|
|
642
|
+
)
|
|
643
|
+
] }) : null
|
|
644
|
+
] })
|
|
645
|
+
] }),
|
|
646
|
+
/* @__PURE__ */ e(H.Body, { children: /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: u ? /* @__PURE__ */ e(
|
|
647
|
+
R,
|
|
648
|
+
{
|
|
649
|
+
standalone: !0,
|
|
650
|
+
appointment: u,
|
|
651
|
+
locale: r,
|
|
652
|
+
privacy: i
|
|
653
|
+
}
|
|
654
|
+
) : null }) }),
|
|
655
|
+
/* @__PURE__ */ l(H.Footer, { children: [
|
|
656
|
+
/* @__PURE__ */ e(
|
|
657
|
+
C,
|
|
658
|
+
{
|
|
659
|
+
type: "button",
|
|
660
|
+
intent: "ghost",
|
|
661
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
662
|
+
"data-action": "keep-appointment",
|
|
663
|
+
onClick: () => w(null),
|
|
664
|
+
children: a("patientPortal.appointments.keep")
|
|
665
|
+
}
|
|
666
|
+
),
|
|
667
|
+
/* @__PURE__ */ e(
|
|
668
|
+
C,
|
|
669
|
+
{
|
|
670
|
+
type: "button",
|
|
671
|
+
intent: "destructive",
|
|
672
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
673
|
+
"data-action": "confirm-cancel",
|
|
674
|
+
onClick: () => {
|
|
675
|
+
u && N(u.id);
|
|
676
|
+
},
|
|
677
|
+
children: a("patientPortal.appointments.confirm")
|
|
678
|
+
}
|
|
679
|
+
)
|
|
680
|
+
] })
|
|
681
|
+
]
|
|
682
|
+
}
|
|
683
|
+
)
|
|
684
|
+
}
|
|
685
|
+
),
|
|
686
|
+
/* @__PURE__ */ e(
|
|
687
|
+
ne,
|
|
688
|
+
{
|
|
689
|
+
config: n,
|
|
690
|
+
privacy: i,
|
|
691
|
+
defaultSubject: u ? a("patientPortal.appointments.stepUp.cancelSubject", {
|
|
692
|
+
date: _(
|
|
693
|
+
u.startIso,
|
|
694
|
+
r,
|
|
695
|
+
u.practice.timeZone
|
|
696
|
+
)
|
|
697
|
+
}) : void 0
|
|
698
|
+
}
|
|
699
|
+
)
|
|
700
|
+
]
|
|
701
|
+
}
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
function Qe({
|
|
705
|
+
documents: p = [],
|
|
706
|
+
status: y = "ready",
|
|
707
|
+
onRetry: k,
|
|
708
|
+
onOpenDocument: f,
|
|
709
|
+
onDownloadDocument: g,
|
|
710
|
+
openDocument: o = null,
|
|
711
|
+
onCloseDocument: N,
|
|
712
|
+
stepUp: n = null,
|
|
713
|
+
locale: S,
|
|
714
|
+
timeZone: c,
|
|
715
|
+
headingLevel: v = 1,
|
|
716
|
+
focusOnMount: i = !1,
|
|
717
|
+
privacy: P = !1,
|
|
718
|
+
className: a
|
|
719
|
+
}) {
|
|
720
|
+
const { t: r } = q("ui"), m = G(S), w = te(), x = (s) => P ? ae() : s, u = T(null), b = T((o == null ? void 0 : o.id) ?? null), A = T(o !== null), B = (o == null ? void 0 : o.id) ?? null;
|
|
721
|
+
return M(() => {
|
|
722
|
+
var O, I, d, z;
|
|
723
|
+
const s = B !== null;
|
|
724
|
+
if (s !== A.current)
|
|
725
|
+
if (A.current = s, s)
|
|
726
|
+
b.current = B, (I = (O = u.current) == null ? void 0 : O.querySelector('[data-section="opened"] > :first-child')) == null || I.focus({ preventScroll: !0 });
|
|
727
|
+
else {
|
|
728
|
+
const K = Array.from(
|
|
729
|
+
((d = u.current) == null ? void 0 : d.querySelectorAll("[data-document-id]")) ?? []
|
|
730
|
+
).find((U) => U.dataset.documentId === b.current);
|
|
731
|
+
(z = K == null ? void 0 : K.querySelector('[data-action="open-document"]')) == null || z.focus({ preventScroll: !0 });
|
|
732
|
+
}
|
|
733
|
+
}, [B]), /* @__PURE__ */ l(
|
|
734
|
+
J,
|
|
735
|
+
{
|
|
736
|
+
component: "portal-documents",
|
|
737
|
+
title: r("patientPortal.documents.title"),
|
|
738
|
+
headingLevel: v,
|
|
739
|
+
focusOnMount: i,
|
|
740
|
+
privacy: P,
|
|
741
|
+
className: a,
|
|
742
|
+
rootRef: u,
|
|
743
|
+
message: o ? r("patientPortal.documents.opened", {
|
|
744
|
+
name: x(o.name),
|
|
745
|
+
interpolation: { escapeValue: !1 }
|
|
746
|
+
}).replace(/<\/?name>/g, "") : void 0,
|
|
747
|
+
status: y,
|
|
748
|
+
loadingLabel: r("patientPortal.documents.loading"),
|
|
749
|
+
errorLabel: r("patientPortal.documents.error.title"),
|
|
750
|
+
children: [
|
|
751
|
+
y === "loading" ? /* @__PURE__ */ e(W, {}) : y === "error" ? /* @__PURE__ */ e(
|
|
752
|
+
F,
|
|
753
|
+
{
|
|
754
|
+
kind: "error",
|
|
755
|
+
title: r("patientPortal.documents.error.title"),
|
|
756
|
+
body: r("patientPortal.home.error.body"),
|
|
757
|
+
headingLevel: v,
|
|
758
|
+
onRetry: k
|
|
759
|
+
}
|
|
760
|
+
) : o ? /* @__PURE__ */ l(
|
|
761
|
+
$,
|
|
762
|
+
{
|
|
763
|
+
title: r("patientPortal.documents.section"),
|
|
764
|
+
headingLevel: v,
|
|
765
|
+
section: "opened",
|
|
766
|
+
children: [
|
|
767
|
+
/* @__PURE__ */ e(ee, { variant: "success", announce: "off", children: /* @__PURE__ */ e(ee.Description, { children: /* @__PURE__ */ e(
|
|
768
|
+
j,
|
|
769
|
+
{
|
|
770
|
+
t: r,
|
|
771
|
+
ns: "ui",
|
|
772
|
+
i18nKey: "patientPortal.documents.opened",
|
|
773
|
+
values: { name: x(o.name) },
|
|
774
|
+
components: { name: /* @__PURE__ */ e("bdi", {}) }
|
|
775
|
+
}
|
|
776
|
+
) }) }),
|
|
777
|
+
/* @__PURE__ */ e(
|
|
778
|
+
xe,
|
|
779
|
+
{
|
|
780
|
+
name: o.name,
|
|
781
|
+
mimeType: o.mimeType,
|
|
782
|
+
src: o.src,
|
|
783
|
+
metadata: { createdBy: o.practiceName },
|
|
784
|
+
onClose: N,
|
|
785
|
+
onDownload: g ? () => g(o.id) : void 0,
|
|
786
|
+
privacy: P,
|
|
787
|
+
locale: m
|
|
788
|
+
}
|
|
789
|
+
)
|
|
790
|
+
]
|
|
791
|
+
}
|
|
792
|
+
) : p.length === 0 ? /* @__PURE__ */ e(
|
|
793
|
+
F,
|
|
794
|
+
{
|
|
795
|
+
kind: "empty",
|
|
796
|
+
title: r("patientPortal.documents.empty.title"),
|
|
797
|
+
body: r("patientPortal.documents.empty.body"),
|
|
798
|
+
headingLevel: v
|
|
799
|
+
}
|
|
800
|
+
) : /* @__PURE__ */ l(
|
|
801
|
+
$,
|
|
802
|
+
{
|
|
803
|
+
title: r("patientPortal.documents.section"),
|
|
804
|
+
headingLevel: v,
|
|
805
|
+
section: "shared",
|
|
806
|
+
children: [
|
|
807
|
+
/* @__PURE__ */ e(E, { children: r("patientPortal.documents.intro") }),
|
|
808
|
+
/* @__PURE__ */ e("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: p.map((s) => /* @__PURE__ */ l(
|
|
809
|
+
"li",
|
|
810
|
+
{
|
|
811
|
+
"data-document-id": s.id,
|
|
812
|
+
className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)] ds:p-[var(--spacing-md)]",
|
|
813
|
+
children: [
|
|
814
|
+
/* @__PURE__ */ l("span", { className: "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
815
|
+
/* @__PURE__ */ e(
|
|
816
|
+
re,
|
|
817
|
+
{
|
|
818
|
+
"aria-hidden": "true",
|
|
819
|
+
className: "ds:size-5 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
|
|
820
|
+
}
|
|
821
|
+
),
|
|
822
|
+
/* @__PURE__ */ l("span", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
823
|
+
/* @__PURE__ */ e(
|
|
824
|
+
"span",
|
|
825
|
+
{
|
|
826
|
+
dir: "auto",
|
|
827
|
+
className: "type-title-item ds:min-w-0 ds:break-words",
|
|
828
|
+
children: x(s.name)
|
|
829
|
+
}
|
|
830
|
+
),
|
|
831
|
+
/* @__PURE__ */ l(
|
|
832
|
+
"span",
|
|
833
|
+
{
|
|
834
|
+
id: `${w}-${s.id}-meta`,
|
|
835
|
+
className: "type-meta ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]",
|
|
836
|
+
children: [
|
|
837
|
+
/* @__PURE__ */ e("span", { dir: "auto", children: s.practiceName }),
|
|
838
|
+
/* @__PURE__ */ e("span", { children: r("patientPortal.documents.sharedOn", {
|
|
839
|
+
date: _(
|
|
840
|
+
s.sharedAt,
|
|
841
|
+
m,
|
|
842
|
+
c
|
|
843
|
+
)
|
|
844
|
+
}) })
|
|
845
|
+
]
|
|
846
|
+
}
|
|
847
|
+
)
|
|
848
|
+
] })
|
|
849
|
+
] }),
|
|
850
|
+
/* @__PURE__ */ l("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)]", children: [
|
|
851
|
+
/* @__PURE__ */ e(
|
|
852
|
+
C,
|
|
853
|
+
{
|
|
854
|
+
type: "button",
|
|
855
|
+
intent: "secondary",
|
|
856
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
857
|
+
"data-action": "open-document",
|
|
858
|
+
"aria-describedby": P ? `${w}-${s.id}-meta` : void 0,
|
|
859
|
+
"aria-label": P ? void 0 : r("patientPortal.documents.openLabel", {
|
|
860
|
+
name: s.name
|
|
861
|
+
}),
|
|
862
|
+
onClick: () => f(s.id),
|
|
863
|
+
children: r("patientPortal.documents.open")
|
|
864
|
+
}
|
|
865
|
+
),
|
|
866
|
+
g ? /* @__PURE__ */ e(
|
|
867
|
+
C,
|
|
868
|
+
{
|
|
869
|
+
type: "button",
|
|
870
|
+
intent: "outline",
|
|
871
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
872
|
+
startIcon: /* @__PURE__ */ e(ke, { "aria-hidden": "true" }),
|
|
873
|
+
"data-action": "download-document",
|
|
874
|
+
"aria-describedby": P ? `${w}-${s.id}-meta` : void 0,
|
|
875
|
+
"aria-label": P ? void 0 : r("patientPortal.documents.downloadLabel", {
|
|
876
|
+
name: s.name
|
|
877
|
+
}),
|
|
878
|
+
onClick: () => g(s.id),
|
|
879
|
+
children: r("patientPortal.documents.download")
|
|
880
|
+
}
|
|
881
|
+
) : null
|
|
882
|
+
] })
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
s.id
|
|
886
|
+
)) })
|
|
887
|
+
]
|
|
888
|
+
}
|
|
889
|
+
),
|
|
890
|
+
/* @__PURE__ */ e(ne, { config: n, privacy: P })
|
|
891
|
+
]
|
|
892
|
+
}
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
export {
|
|
896
|
+
Je as P,
|
|
897
|
+
Qe as a,
|
|
898
|
+
Ge as b,
|
|
899
|
+
we as c,
|
|
900
|
+
_e as d
|
|
901
|
+
};
|
|
902
|
+
//# sourceMappingURL=portal-documents-D8skew0h.js.map
|