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