@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,32 +1,32 @@
|
|
|
1
1
|
import { jsxs as I, jsx as n, Fragment as Sn } from "react/jsx-runtime";
|
|
2
|
-
import { useState as _, useMemo as B, useRef as $, useEffect as
|
|
2
|
+
import { useState as _, useMemo as B, useRef as $, useEffect as V, useCallback as m, Fragment as Vs, useLayoutEffect as Qa } from "react";
|
|
3
3
|
import { useTranslation as gt } from "react-i18next";
|
|
4
4
|
import { u as js } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
5
5
|
import { C as Ys, b as Xs, a as Js } from "./collapsible-DVPM46bq.js";
|
|
6
|
-
import { A as Zs } from "./appointment-timeline-
|
|
6
|
+
import { A as Zs } from "./appointment-timeline-COfoHpoJ.js";
|
|
7
7
|
import { a as Qs } from "./workflow-status-Cg7yjnye.js";
|
|
8
8
|
import { A as qa, g as ei } from "./avatar-Dp5apm1d.js";
|
|
9
9
|
import { B as Br } from "./badge-BUk4RjTS.js";
|
|
10
10
|
import { S as es, C as ti } from "./skeleton-tTWJpvAq.js";
|
|
11
11
|
import { u as Cr, a as ni, C as As, c as ri, E as Ws } from "./calendar-editor-guard-9fShhNIA.js";
|
|
12
|
-
import { ag as ai, ah as si, ai as ii, v as oi, aj as ci, ak as ts, al as ns, S as li, am as rs, an as as, I as vr, W as y, ao as di, u as ra, ap as ss, C as kr, aq as ui, ar as pi, m as Os, as as is, at as mi, au as hi, av as fi, y as os, K as Pr, aw as vi, ax as gi, ay as ki, az as cs, aA as Ci, aB as Ii, aC as bi, aD as ls, aE as yi, aF as Di, aG as Ti, aH as Ni, aI as wi, aJ as Ei, aK as ya, h as Si, aL as Lr, aM as Ls, aN as Ka, aO as $a, aP as xi, M as ds, aQ as us, X as Qr, aR as ga, aS as ea, aT as Ta, aU as Ga, aV as Ai, a7 as ps, aW as Wi, aX as Oi, aY as Li, aZ as Fi, aa as Ra, ab as Bi, b as ms, a_ as Pi, p as Va, O as hs, a$ as _i, R as Fs, b0 as $i, a3 as fs, q as Ri, b1 as Bs, a as ja, c as zi, b2 as Ps, b3 as
|
|
12
|
+
import { ag as ai, ah as si, ai as ii, v as oi, aj as ci, ak as ts, al as ns, S as li, am as rs, an as as, I as vr, W as y, ao as di, u as ra, ap as ss, C as kr, aq as ui, ar as pi, m as Os, as as is, at as mi, au as hi, av as fi, y as os, K as Pr, aw as vi, ax as gi, ay as ki, az as cs, aA as Ci, aB as Ii, aC as bi, aD as ls, aE as yi, aF as Di, aG as Ti, aH as Ni, aI as wi, aJ as Ei, aK as ya, h as Si, aL as Lr, aM as Ls, aN as Ka, aO as $a, aP as xi, M as ds, aQ as us, X as Qr, aR as ga, aS as ea, aT as Ta, aU as Ga, aV as Ai, a7 as ps, aW as Wi, aX as Oi, aY as Li, aZ as Fi, aa as Ra, ab as Bi, b as ms, a_ as Pi, p as Va, O as hs, a$ as _i, R as Fs, b0 as $i, a3 as fs, q as Ri, b1 as Bs, a as ja, c as zi, b2 as Ps, b3 as Ui, b4 as Hi, b5 as Ya, o as Mi, b6 as qi, b7 as Ki, b8 as Gi, b9 as Vi } from "./calendar-workspace.model-BulUpy0I.js";
|
|
13
13
|
import { S as ji } from "./stethoscope-sZXGC43m.js";
|
|
14
14
|
import { C as _s } from "./chevron-down-DWE7GSq9.js";
|
|
15
15
|
import { a as Yi } from "./entity-card-p-LANpYt.js";
|
|
16
|
-
import { T as Xi } from "./task-editor-
|
|
17
|
-
import { C as Ji, u as Na, a as Zi, d as Qi } from "./control-room-rail-
|
|
18
|
-
import { S as $s } from "./scroll-area-
|
|
16
|
+
import { T as Xi } from "./task-editor-aXjGMwYA.js";
|
|
17
|
+
import { C as Ji, u as Na, a as Zi, d as Qi } from "./control-room-rail-BmpTKtL1.js";
|
|
18
|
+
import { S as $s } from "./scroll-area-RQtcKkHf.js";
|
|
19
19
|
import { A as eo, u as to } from "./app-frame-context-CPszhDDb.js";
|
|
20
20
|
import { u as no } from "./use-media-query-CcAx5SMM.js";
|
|
21
21
|
import { c as vs, a as ro, d as hn, b as fn } from "./toast-Cgmh1cvj.js";
|
|
22
22
|
import { T as za, a as Rs } from "./tooltip-uEBdD1-5.js";
|
|
23
|
-
import { d as ao, e as so, f as gs, c as io, r as oo, g as co, u as lo } from "./calendar-editor-discard-host-
|
|
24
|
-
import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-
|
|
25
|
-
import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as
|
|
23
|
+
import { d as ao, e as so, f as gs, c as io, r as oo, g as co, u as lo } from "./calendar-editor-discard-host-BudLsUZO.js";
|
|
24
|
+
import { A as zs, u as uo, D as ka } from "./use-appointment-details-read-BR3TQOHx.js";
|
|
25
|
+
import { c as po, b as mo, u as ho, i as fo, d as ks, A as Xa, e as vo, f as go, B as ko, F as Co, P as Io, S as Us } from "./calendar.sheets-OmTiQdCg.js";
|
|
26
26
|
import { B as Ve } from "./button-Dp4j9ygh.js";
|
|
27
27
|
import { D as te } from "./dialog-239Geb7Z.js";
|
|
28
28
|
import { R as Ja } from "./radio-BZQs6_36.js";
|
|
29
|
-
import { R as
|
|
29
|
+
import { R as Hs } from "./radio-group-ChIKyeSJ.js";
|
|
30
30
|
import { V as Da } from "./visually-hidden-BHxEUGyT.js";
|
|
31
31
|
import { A as xn } from "./alert-C4WKViaS.js";
|
|
32
32
|
import { C as bo } from "./calendar-DDTWUYnw.js";
|
|
@@ -43,12 +43,12 @@ import { D as bs } from "./date-picker-CD-PBzXM.js";
|
|
|
43
43
|
import { D as Qt } from "./dropdown-menu-Bm1KALnk.js";
|
|
44
44
|
import { F as wo } from "./form-field-CyHfOVKF.js";
|
|
45
45
|
import { P as Tt } from "./popover-C9O7my6h.js";
|
|
46
|
-
import { A as Eo } from "./appointment-peek-
|
|
46
|
+
import { A as Eo } from "./appointment-peek-CmQM4wvx.js";
|
|
47
47
|
import { H as na } from "./hover-card-CS8ulBf9.js";
|
|
48
48
|
import { CalendarActionButtonGroups as So, ACCESSIBLE_TARGET_SQUARE_CLASS as rr, ACCESSIBLE_TARGET_CLASS as ys } from "../calendar-action-buttons/index.js";
|
|
49
|
-
import { f as _r, b as gr, I as xo, s as Ao } from "./appointment-details-panel.identity
|
|
49
|
+
import { f as _r, b as gr, I as xo, s as Ao } from "./appointment-details-panel.identity-9hRo85Lx.js";
|
|
50
50
|
import { createPortal as Wo } from "react-dom";
|
|
51
|
-
import { D as Oo } from "./data-table-
|
|
51
|
+
import { D as Oo } from "./data-table-CgpHO6EZ.js";
|
|
52
52
|
import { E as Lo } from "./eye-off-C_4xkbRP.js";
|
|
53
53
|
import { E as Fo } from "./eye-BjhN2nYf.js";
|
|
54
54
|
import { P as Ds } from "./printer-rkK0T1gi.js";
|
|
@@ -58,16 +58,16 @@ import { U as Po } from "./user-cog-BTn98Arm.js";
|
|
|
58
58
|
import { R as _o } from "./rotate-ccw-BBQnIVTr.js";
|
|
59
59
|
import { C as $o } from "./chevron-left-B8cOyH-V.js";
|
|
60
60
|
import { C as Ro } from "./chevron-right-I9AeSxH2.js";
|
|
61
|
-
import { W as zo } from "./calendar-waiting-list-panel-
|
|
62
|
-
import { C as
|
|
63
|
-
import { C as
|
|
64
|
-
import { P as Ia } from "./privacy-mask-
|
|
65
|
-
import { S as
|
|
61
|
+
import { W as zo } from "./calendar-waiting-list-panel-DukgSOPH.js";
|
|
62
|
+
import { C as Uo } from "./calendar-days-BGWklvE-.js";
|
|
63
|
+
import { C as Ua } from "./calendar-clock-hbObjfGY.js";
|
|
64
|
+
import { P as Ia } from "./privacy-mask-CaLBAxzj.js";
|
|
65
|
+
import { S as Ho } from "./square-check-big-dj0o8yA3.js";
|
|
66
66
|
import { C as Mo } from "./calendar-plus-BFrIRE4r.js";
|
|
67
67
|
import { L as qo, C as Ko } from "./list-todo-KWvUhmT_.js";
|
|
68
68
|
import { H as Ts } from "./hourglass-BEAzW1wE.js";
|
|
69
69
|
import { N as Ns } from "./notebook-pen-CO7HoM-W.js";
|
|
70
|
-
import { a as Go } from "./panel-header-
|
|
70
|
+
import { a as Go } from "./panel-header-DTc5OFUg.js";
|
|
71
71
|
import { X as Vo } from "./x-B5YnXwCz.js";
|
|
72
72
|
function ws(r) {
|
|
73
73
|
const s = new Date(r), i = `${s.getMonth() + 1}`.padStart(2, "0"), v = `${s.getDate()}`.padStart(2, "0");
|
|
@@ -77,7 +77,7 @@ function jo(r) {
|
|
|
77
77
|
const s = $({ iso: r, wallMs: Date.now() });
|
|
78
78
|
s.current.iso !== r && (s.current = { iso: r, wallMs: Date.now() });
|
|
79
79
|
const [, i] = _(0);
|
|
80
|
-
|
|
80
|
+
V(() => {
|
|
81
81
|
var k;
|
|
82
82
|
let g;
|
|
83
83
|
const b = () => {
|
|
@@ -121,7 +121,7 @@ function Zo({
|
|
|
121
121
|
stateSinceByEventId: g,
|
|
122
122
|
loading: b = !1
|
|
123
123
|
}) {
|
|
124
|
-
const { t: p } = gt("ui"), N = Cr(), [k, l] = _(ai), le = jo(N.nowIso).getTime(),
|
|
124
|
+
const { t: p } = gt("ui"), N = Cr(), [k, l] = _(ai), le = jo(N.nowIso).getTime(), j = ws(N.nowIso), xe = p(
|
|
125
125
|
"calendarWorkspace.details.patientNotLoaded"
|
|
126
126
|
), se = B(
|
|
127
127
|
() => si(
|
|
@@ -137,15 +137,15 @@ function Zo({
|
|
|
137
137
|
)
|
|
138
138
|
),
|
|
139
139
|
[r, k, i, N, xe, p]
|
|
140
|
-
),
|
|
141
|
-
() => se.filter((x) => ws(x.startIso) ===
|
|
142
|
-
[se,
|
|
140
|
+
), H = B(
|
|
141
|
+
() => se.filter((x) => ws(x.startIso) === j),
|
|
142
|
+
[se, j]
|
|
143
143
|
), Be = B(
|
|
144
|
-
() =>
|
|
144
|
+
() => H.filter((x) => x.state === "waiting" || x.state === "in_care").sort((x, Z) => +new Date(x.startIso) - +new Date(Z.startIso)).map((x) => ({
|
|
145
145
|
item: x,
|
|
146
146
|
sinceIso: g == null ? void 0 : g[x.id]
|
|
147
147
|
})),
|
|
148
|
-
[
|
|
148
|
+
[H, g]
|
|
149
149
|
), Ne = B(
|
|
150
150
|
() => new Set(Be.map((x) => x.item.id)),
|
|
151
151
|
[Be]
|
|
@@ -180,7 +180,7 @@ function Zo({
|
|
|
180
180
|
)
|
|
181
181
|
}) }) : null,
|
|
182
182
|
/* @__PURE__ */ n(Br, { variant: "neutral", size: "sm", children: p("calendarWorkspace.inc1.rail.upcomingSummaryToday", {
|
|
183
|
-
n:
|
|
183
|
+
n: H.length
|
|
184
184
|
}) })
|
|
185
185
|
]
|
|
186
186
|
}
|
|
@@ -231,9 +231,9 @@ function Zo({
|
|
|
231
231
|
{
|
|
232
232
|
role: "list",
|
|
233
233
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-xs)] ds:p-0 ds:pb-[var(--spacing-2xs)]",
|
|
234
|
-
children: Be.map(({ item: x, sinceIso:
|
|
234
|
+
children: Be.map(({ item: x, sinceIso: Z }) => {
|
|
235
235
|
var ue;
|
|
236
|
-
const he = x.state ?? "waiting", Nt = Yi(he),
|
|
236
|
+
const he = x.state ?? "waiting", Nt = Yi(he), Y = Nt.Icon, K = p(`appointmentCard.state.${he}`), re = Z ? Xo(new Date(Z).getTime(), le, s) : void 0;
|
|
237
237
|
return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ I(
|
|
238
238
|
"button",
|
|
239
239
|
{
|
|
@@ -262,14 +262,14 @@ function Zo({
|
|
|
262
262
|
value: he,
|
|
263
263
|
option: {
|
|
264
264
|
value: he,
|
|
265
|
-
label:
|
|
265
|
+
label: re ? p(
|
|
266
266
|
"calendarWorkspace.inc1.rail.upcomingLiveElapsed",
|
|
267
267
|
{
|
|
268
268
|
state: K,
|
|
269
|
-
elapsed:
|
|
269
|
+
elapsed: re
|
|
270
270
|
}
|
|
271
271
|
) : K,
|
|
272
|
-
icon: /* @__PURE__ */ n(
|
|
272
|
+
icon: /* @__PURE__ */ n(Y, { "aria-hidden": "true" }),
|
|
273
273
|
tone: Nt.tone
|
|
274
274
|
}
|
|
275
275
|
}
|
|
@@ -285,7 +285,7 @@ function Zo({
|
|
|
285
285
|
)
|
|
286
286
|
}
|
|
287
287
|
)
|
|
288
|
-
) : null,
|
|
288
|
+
) : null, J = /* @__PURE__ */ n(
|
|
289
289
|
"div",
|
|
290
290
|
{
|
|
291
291
|
"aria-hidden": "true",
|
|
@@ -317,7 +317,7 @@ function Zo({
|
|
|
317
317
|
"data-component": "calendar-upcoming-panel",
|
|
318
318
|
"aria-busy": b ? "true" : void 0,
|
|
319
319
|
className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
|
|
320
|
-
children: b ?
|
|
320
|
+
children: b ? J : /* @__PURE__ */ n(
|
|
321
321
|
Zs,
|
|
322
322
|
{
|
|
323
323
|
items: ve,
|
|
@@ -341,7 +341,7 @@ function Zo({
|
|
|
341
341
|
hasMoreEarlier: k.backDays < ts,
|
|
342
342
|
hasMoreLater: k.forwardDays < ts,
|
|
343
343
|
onJumpToDate: (x) => l(
|
|
344
|
-
(
|
|
344
|
+
(Z) => ci(Z, N.nowIso, x)
|
|
345
345
|
)
|
|
346
346
|
}
|
|
347
347
|
)
|
|
@@ -391,7 +391,7 @@ function ec({
|
|
|
391
391
|
/* @__PURE__ */ n(te.Description, { children: s("calendarWorkspace.details.documentScope.body") })
|
|
392
392
|
] }),
|
|
393
393
|
/* @__PURE__ */ n(te.Body, { children: /* @__PURE__ */ I(
|
|
394
|
-
|
|
394
|
+
Hs,
|
|
395
395
|
{
|
|
396
396
|
label: s("calendarWorkspace.details.documentScope.label"),
|
|
397
397
|
value: i,
|
|
@@ -490,20 +490,20 @@ function sc({
|
|
|
490
490
|
onMove: l,
|
|
491
491
|
onCopy: P,
|
|
492
492
|
onDelete: le,
|
|
493
|
-
deleteConfirm:
|
|
493
|
+
deleteConfirm: j,
|
|
494
494
|
onDeleteInitiated: xe,
|
|
495
495
|
onDocumentCreateClicked: se,
|
|
496
|
-
onDetailsActionUsed:
|
|
496
|
+
onDetailsActionUsed: H,
|
|
497
497
|
onStatusChange: Be,
|
|
498
498
|
onDescriptionChange: Ne,
|
|
499
499
|
mapsLink: O,
|
|
500
500
|
noteUnrecordedEdits: ve,
|
|
501
501
|
privacy: S = !1,
|
|
502
502
|
privacyTitle: ie,
|
|
503
|
-
locale:
|
|
503
|
+
locale: J
|
|
504
504
|
}) {
|
|
505
505
|
var wt;
|
|
506
|
-
const
|
|
506
|
+
const Z = Cr(), { appointment: he } = r, [Nt, Y] = _(!1), [K, re] = _(), ue = $(null), it = (w) => (ce) => {
|
|
507
507
|
const fe = (Vt) => {
|
|
508
508
|
var Et;
|
|
509
509
|
return [
|
|
@@ -511,17 +511,17 @@ function sc({
|
|
|
511
511
|
].find((oe) => !oe.closest("[inert]"));
|
|
512
512
|
}, Ye = fe(`[data-action="${w}"]`) ?? fe('button[aria-haspopup="menu"]:has(svg.lucide-ellipsis)');
|
|
513
513
|
Ye && (ce.preventDefault(), Ye.focus());
|
|
514
|
-
}, Ie = (w) =>
|
|
514
|
+
}, Ie = (w) => H == null ? void 0 : H({ action: w }), je = (w) => {
|
|
515
515
|
const ce = w.target.closest(
|
|
516
516
|
"a[data-action]"
|
|
517
517
|
);
|
|
518
518
|
(ce == null ? void 0 : ce.dataset.action) === "create-task" && Ie("task"), (ce == null ? void 0 : ce.dataset.action) === "open-whatsapp" && Ie("whatsapp");
|
|
519
519
|
const fe = (ce == null ? void 0 : ce.dataset.action) && rc[ce.dataset.action];
|
|
520
520
|
fe && Ie(fe);
|
|
521
|
-
}, Oe =
|
|
521
|
+
}, Oe = Z.operators.find((w) => w.id === he.operatorId), en = Z.chairs.find((w) => w.id === he.chairId), Q = i && s ? s : void 0, Te = Q !== void 0 && !S, _e = $(i);
|
|
522
522
|
_e.current = i;
|
|
523
523
|
const Bt = !!(i != null && i.onLoad);
|
|
524
|
-
return
|
|
524
|
+
return V(() => {
|
|
525
525
|
var ce;
|
|
526
526
|
const w = _e.current;
|
|
527
527
|
Te && w && w.notes.length === 0 && w.status !== "loading" && w.complete !== !0 && ((ce = w.onLoad) == null || ce.call(w, "preview"));
|
|
@@ -544,9 +544,9 @@ function sc({
|
|
|
544
544
|
patientId: s,
|
|
545
545
|
operator: Oe ? { name: Oe.title, avatarSrc: Oe.avatarSrc } : void 0,
|
|
546
546
|
chair: en ? { name: en.title } : void 0,
|
|
547
|
-
currency:
|
|
548
|
-
now:
|
|
549
|
-
locale:
|
|
547
|
+
currency: Z.currency ?? "EUR",
|
|
548
|
+
now: Z.nowIso,
|
|
549
|
+
locale: J,
|
|
550
550
|
privacy: S,
|
|
551
551
|
privacyTitle: ie,
|
|
552
552
|
mapsLink: O,
|
|
@@ -569,7 +569,7 @@ function sc({
|
|
|
569
569
|
P(w), Ie("copy");
|
|
570
570
|
}),
|
|
571
571
|
onDelete: le && (() => {
|
|
572
|
-
xe == null || xe(),
|
|
572
|
+
xe == null || xe(), Y(!0);
|
|
573
573
|
}),
|
|
574
574
|
onJoinTelehealth: r.onJoinTelehealth && (() => {
|
|
575
575
|
var w;
|
|
@@ -604,7 +604,7 @@ function sc({
|
|
|
604
604
|
onCreate: (w) => {
|
|
605
605
|
var ce, fe, Ye;
|
|
606
606
|
if (se == null || se(w), (fe = (ce = r.documents) == null ? void 0 : ce.seriesScope) != null && fe.kinds.includes(w)) {
|
|
607
|
-
|
|
607
|
+
re(w);
|
|
608
608
|
return;
|
|
609
609
|
}
|
|
610
610
|
(Ye = r.documents) == null || Ye.onCreate(w), Ie("document");
|
|
@@ -617,12 +617,12 @@ function sc({
|
|
|
617
617
|
{
|
|
618
618
|
open: K !== void 0,
|
|
619
619
|
onOpenChange: (w) => {
|
|
620
|
-
w ||
|
|
620
|
+
w || re(void 0);
|
|
621
621
|
},
|
|
622
|
-
onCloseAutoFocus:
|
|
622
|
+
onCloseAutoFocus: it("open-create-document"),
|
|
623
623
|
onConfirm: (w) => {
|
|
624
624
|
var ce;
|
|
625
|
-
K && ((ce = r.documents) == null || ce.onCreate(K, { scope: w }), Ie("document")),
|
|
625
|
+
K && ((ce = r.documents) == null || ce.onCreate(K, { scope: w }), Ie("document")), re(void 0);
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
) : null,
|
|
@@ -630,10 +630,10 @@ function sc({
|
|
|
630
630
|
po,
|
|
631
631
|
{
|
|
632
632
|
open: Nt,
|
|
633
|
-
onOpenChange:
|
|
634
|
-
scopes:
|
|
635
|
-
offersCarePlanCleanup:
|
|
636
|
-
onCloseAutoFocus:
|
|
633
|
+
onOpenChange: Y,
|
|
634
|
+
scopes: j == null ? void 0 : j.scopes,
|
|
635
|
+
offersCarePlanCleanup: j == null ? void 0 : j.offersCarePlanCleanup,
|
|
636
|
+
onCloseAutoFocus: it("delete-appointment"),
|
|
637
637
|
onConfirm: async (w) => {
|
|
638
638
|
await le(w), Ie("delete");
|
|
639
639
|
}
|
|
@@ -650,7 +650,7 @@ function ic({
|
|
|
650
650
|
request: v
|
|
651
651
|
}) {
|
|
652
652
|
const [g, b] = _(i), p = $(null);
|
|
653
|
-
return
|
|
653
|
+
return V(() => {
|
|
654
654
|
var N, k;
|
|
655
655
|
i && (b(!0), (N = p.current) != null && N.contains(document.activeElement) || (k = p.current) == null || k.focus());
|
|
656
656
|
}, [i, v]), /* @__PURE__ */ I(Sn, { children: [
|
|
@@ -672,7 +672,7 @@ function oc({
|
|
|
672
672
|
patientId: r,
|
|
673
673
|
onChange: s
|
|
674
674
|
}) {
|
|
675
|
-
return
|
|
675
|
+
return V(() => {
|
|
676
676
|
s(r);
|
|
677
677
|
}, [r, s]), null;
|
|
678
678
|
}
|
|
@@ -778,7 +778,7 @@ const qs = {
|
|
|
778
778
|
done: "--calendar-status-done",
|
|
779
779
|
cancelled: "--calendar-status-cancelled",
|
|
780
780
|
absent: "--calendar-status-absent"
|
|
781
|
-
}, Ks = Object.keys(qs),
|
|
781
|
+
}, Ks = Object.keys(qs), Ha = (r) => Math.round(r).toString(16).padStart(2, "0");
|
|
782
782
|
function uc(r, s) {
|
|
783
783
|
if (!getComputedStyle(r).getPropertyValue(s).trim())
|
|
784
784
|
return;
|
|
@@ -787,7 +787,7 @@ function uc(r, s) {
|
|
|
787
787
|
const v = getComputedStyle(i).color;
|
|
788
788
|
i.remove();
|
|
789
789
|
const g = /^rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/.exec(v);
|
|
790
|
-
return g ? `#${
|
|
790
|
+
return g ? `#${Ha(+g[1])}${Ha(+g[2])}${Ha(+g[3])}` : void 0;
|
|
791
791
|
}
|
|
792
792
|
function pc(r) {
|
|
793
793
|
if (!r || typeof getComputedStyle > "u") return null;
|
|
@@ -806,7 +806,7 @@ const mc = [
|
|
|
806
806
|
], hc = (r, s) => r === s || !!r && !!s && Ks.every((i) => r[i] === s[i]);
|
|
807
807
|
function fc(r, s) {
|
|
808
808
|
const [i, v] = _(null);
|
|
809
|
-
return
|
|
809
|
+
return V(() => {
|
|
810
810
|
const g = s.current;
|
|
811
811
|
if (!r || !g) return;
|
|
812
812
|
const b = () => {
|
|
@@ -941,8 +941,8 @@ function yc({
|
|
|
941
941
|
valueGetter: (ve) => {
|
|
942
942
|
var S;
|
|
943
943
|
return ((S = N.operators.find((ie) => {
|
|
944
|
-
var
|
|
945
|
-
return ie.id === ((
|
|
944
|
+
var J;
|
|
945
|
+
return ie.id === ((J = ve.data) == null ? void 0 : J.operatorId);
|
|
946
946
|
})) == null ? void 0 : S.title) ?? "—";
|
|
947
947
|
}
|
|
948
948
|
}) : i === "operator" ? O.push({
|
|
@@ -952,8 +952,8 @@ function yc({
|
|
|
952
952
|
valueGetter: (ve) => {
|
|
953
953
|
var S;
|
|
954
954
|
return ((S = N.chairs.find((ie) => {
|
|
955
|
-
var
|
|
956
|
-
return ie.id === ((
|
|
955
|
+
var J;
|
|
956
|
+
return ie.id === ((J = ve.data) == null ? void 0 : J.chairId);
|
|
957
957
|
})) == null ? void 0 : S.title) ?? "—";
|
|
958
958
|
}
|
|
959
959
|
}) : O.push({
|
|
@@ -970,13 +970,13 @@ function yc({
|
|
|
970
970
|
return (S = ve.data) != null && S.status ? l(li[ve.data.status]) : "";
|
|
971
971
|
}
|
|
972
972
|
}), O;
|
|
973
|
-
}, [i, p, k, l, N]),
|
|
973
|
+
}, [i, p, k, l, N]), j = i === "none" ? 2 : 1, xe = B(
|
|
974
974
|
() => ({
|
|
975
975
|
domLayout: "print",
|
|
976
976
|
suppressColumnVirtualisation: !0,
|
|
977
977
|
suppressCellFocus: !0,
|
|
978
978
|
getRowId: (O) => O.data.id,
|
|
979
|
-
getRowHeight: (O) => O.data ? as(O.data,
|
|
979
|
+
getRowHeight: (O) => O.data ? as(O.data, j) : null,
|
|
980
980
|
defaultColDef: {
|
|
981
981
|
sortable: !1,
|
|
982
982
|
resizable: !1,
|
|
@@ -988,10 +988,10 @@ function yc({
|
|
|
988
988
|
headerClass: rs
|
|
989
989
|
}
|
|
990
990
|
}),
|
|
991
|
-
[
|
|
991
|
+
[j]
|
|
992
992
|
);
|
|
993
993
|
if (typeof document > "u") return null;
|
|
994
|
-
const se = v.length >= N.chairs.length ? k(P("allChairs")) : N.chairs.filter((O) => v.includes(O.id)).map((O) => O.title).join(", "),
|
|
994
|
+
const se = v.length >= N.chairs.length ? k(P("allChairs")) : N.chairs.filter((O) => v.includes(O.id)).map((O) => O.title).join(", "), H = mo(N), Be = g.length >= H.length ? k(P("allOperators")) : H.filter((O) => g.includes(O.id)).map((O) => O.title).join(", "), Ne = (O) => {
|
|
995
995
|
var ve;
|
|
996
996
|
switch (O.kind) {
|
|
997
997
|
case "closed":
|
|
@@ -1029,7 +1029,7 @@ function yc({
|
|
|
1029
1029
|
] }),
|
|
1030
1030
|
b ? /* @__PURE__ */ n("p", { className: "type-body-sm", children: k(P("privacyNote")) }) : null,
|
|
1031
1031
|
r.map((O, ve) => {
|
|
1032
|
-
const S = vr(O.date), ie = O.groups.some((
|
|
1032
|
+
const S = vr(O.date), ie = O.groups.some((J) => J.rows.length > 0);
|
|
1033
1033
|
return /* @__PURE__ */ I(
|
|
1034
1034
|
"section",
|
|
1035
1035
|
{
|
|
@@ -1037,13 +1037,13 @@ function yc({
|
|
|
1037
1037
|
className: ie && ve > 0 ? "ds:break-before-page" : void 0,
|
|
1038
1038
|
children: [
|
|
1039
1039
|
/* @__PURE__ */ n("h2", { className: "type-title-section ds:mt-[var(--spacing-md)]", children: gr(p, O.date) }),
|
|
1040
|
-
ie ? O.groups.map((
|
|
1040
|
+
ie ? O.groups.map((J) => /* @__PURE__ */ I(
|
|
1041
1041
|
"div",
|
|
1042
1042
|
{
|
|
1043
1043
|
className: "ds:mt-[var(--spacing-sm)] ds:break-inside-avoid",
|
|
1044
1044
|
children: [
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
J.kind === "all" ? null : /* @__PURE__ */ n("h3", { className: "type-title-item", children: J.title ?? k(P("noOperator")) }),
|
|
1046
|
+
J.rows.length === 0 ? /* @__PURE__ */ n("p", { className: "type-body-sm", children: k(P("noAppointments")) }) : (
|
|
1047
1047
|
/* AG Grid asks for a row's height once, when the node
|
|
1048
1048
|
is created — a height signature in the key remounts
|
|
1049
1049
|
the grid when masking or an edit changes a row. */
|
|
@@ -1051,36 +1051,36 @@ function yc({
|
|
|
1051
1051
|
Oo,
|
|
1052
1052
|
{
|
|
1053
1053
|
columnDefs: le,
|
|
1054
|
-
rowData:
|
|
1054
|
+
rowData: J.rows,
|
|
1055
1055
|
printMode: !0,
|
|
1056
1056
|
density: "compact",
|
|
1057
1057
|
bordered: !0,
|
|
1058
|
-
gridId: `print-${S}-${
|
|
1058
|
+
gridId: `print-${S}-${J.id}`,
|
|
1059
1059
|
gridOptions: xe
|
|
1060
1060
|
},
|
|
1061
|
-
|
|
1061
|
+
J.rows.map((x) => as(x, j)).join(".")
|
|
1062
1062
|
)
|
|
1063
1063
|
)
|
|
1064
1064
|
]
|
|
1065
1065
|
},
|
|
1066
|
-
|
|
1066
|
+
J.id
|
|
1067
1067
|
)) : /* @__PURE__ */ n("p", { className: "type-body-sm", children: k(P("noAppointments")) }),
|
|
1068
1068
|
O.tasks.length > 0 ? /* @__PURE__ */ I("div", { className: "type-body-sm ds:mt-[var(--spacing-sm)]", children: [
|
|
1069
1069
|
/* @__PURE__ */ n("p", { children: k(P("tasks"), { n: O.tasks.length }) }),
|
|
1070
|
-
/* @__PURE__ */ n("ul", { className: "ds:m-0 ds:list-none ds:p-0", children: O.tasks.map((
|
|
1071
|
-
|
|
1070
|
+
/* @__PURE__ */ n("ul", { className: "ds:m-0 ds:list-none ds:p-0", children: O.tasks.map((J) => /* @__PURE__ */ I("li", { children: [
|
|
1071
|
+
J.allDay ? l("calendar.allDay") : _r(p, J.start),
|
|
1072
1072
|
" ",
|
|
1073
1073
|
"· ",
|
|
1074
|
-
|
|
1075
|
-
] },
|
|
1074
|
+
J.title
|
|
1075
|
+
] }, J.id)) })
|
|
1076
1076
|
] }) : null,
|
|
1077
|
-
O.notes.map((
|
|
1077
|
+
O.notes.map((J) => /* @__PURE__ */ n(
|
|
1078
1078
|
"p",
|
|
1079
1079
|
{
|
|
1080
1080
|
className: "type-body-sm",
|
|
1081
|
-
children: Ne(
|
|
1081
|
+
children: Ne(J)
|
|
1082
1082
|
},
|
|
1083
|
-
`${
|
|
1083
|
+
`${J.kind}-${J.kind === "absence" ? J.operatorId : ""}`
|
|
1084
1084
|
))
|
|
1085
1085
|
]
|
|
1086
1086
|
},
|
|
@@ -1107,26 +1107,26 @@ function Sc({
|
|
|
1107
1107
|
onOpenWaitingList: l,
|
|
1108
1108
|
onAddWaitingEntry: P,
|
|
1109
1109
|
onOpenOnlineBookings: le,
|
|
1110
|
-
onlineBookingsCount:
|
|
1110
|
+
onlineBookingsCount: j,
|
|
1111
1111
|
waitingBadgeCount: xe,
|
|
1112
1112
|
onVisibleRangeChange: se,
|
|
1113
|
-
onRetryLoad:
|
|
1113
|
+
onRetryLoad: H,
|
|
1114
1114
|
selectedEventId: Be,
|
|
1115
1115
|
gotoRequest: Ne,
|
|
1116
1116
|
onBookSlot: O,
|
|
1117
1117
|
onBookSlotFromFinder: ve,
|
|
1118
1118
|
display: S,
|
|
1119
1119
|
setDisplay: ie,
|
|
1120
|
-
defaultDisplay:
|
|
1120
|
+
defaultDisplay: J,
|
|
1121
1121
|
onHistory: x,
|
|
1122
|
-
readOnly:
|
|
1122
|
+
readOnly: Z = !1,
|
|
1123
1123
|
reviewOnlyEventIds: he,
|
|
1124
1124
|
detailsOnEveryClick: Nt = !1,
|
|
1125
|
-
gridHeld:
|
|
1125
|
+
gridHeld: Y = !1,
|
|
1126
1126
|
placement: K = null,
|
|
1127
|
-
onPlacementEnd:
|
|
1127
|
+
onPlacementEnd: re,
|
|
1128
1128
|
createMode: ue = null,
|
|
1129
|
-
onCreateModeEnd:
|
|
1129
|
+
onCreateModeEnd: it,
|
|
1130
1130
|
focusScroll: Ie = null,
|
|
1131
1131
|
saveNotice: je = null,
|
|
1132
1132
|
privacy: Oe,
|
|
@@ -1147,16 +1147,16 @@ function Sc({
|
|
|
1147
1147
|
initialView: jt,
|
|
1148
1148
|
onNavigate: vn,
|
|
1149
1149
|
onPeekOpen: tn,
|
|
1150
|
-
settingsBridge:
|
|
1150
|
+
settingsBridge: Ue,
|
|
1151
1151
|
settingsOpen: gn = !1,
|
|
1152
1152
|
onToggleSettings: sr,
|
|
1153
|
-
onSettingChanged:
|
|
1153
|
+
onSettingChanged: He,
|
|
1154
1154
|
onHoursOpened: kn,
|
|
1155
1155
|
practiceSettings: St,
|
|
1156
1156
|
onMoveDropped: xt,
|
|
1157
1157
|
onPrintUsed: An,
|
|
1158
1158
|
onJumpToDateUsed: zn,
|
|
1159
|
-
calendarArchive:
|
|
1159
|
+
calendarArchive: Un,
|
|
1160
1160
|
prompts: Cn
|
|
1161
1161
|
}) {
|
|
1162
1162
|
var fa;
|
|
@@ -1167,15 +1167,15 @@ function Sc({
|
|
|
1167
1167
|
)
|
|
1168
1168
|
),
|
|
1169
1169
|
[_e]
|
|
1170
|
-
), f = Cr(), { t:
|
|
1171
|
-
|
|
1170
|
+
), f = Cr(), { t: ot } = gt("ui"), { open: Wn } = ho(), D = (e) => `calendarWorkspace.${e}`, L = (e) => `calendarWorkspace.inc1.${e}`, et = $(null), [ee, ct] = _(null);
|
|
1171
|
+
V(() => {
|
|
1172
1172
|
if (!ee) return;
|
|
1173
1173
|
const e = new MutationObserver(() => {
|
|
1174
|
-
ee.el.isConnected ||
|
|
1174
|
+
ee.el.isConnected || ct(null);
|
|
1175
1175
|
}), c = ee.el.closest('[data-component="calendar"]');
|
|
1176
1176
|
return c && e.observe(c, { childList: !0, subtree: !0 }), () => e.disconnect();
|
|
1177
|
-
}, [ee]),
|
|
1178
|
-
() =>
|
|
1177
|
+
}, [ee]), V(
|
|
1178
|
+
() => ct(null),
|
|
1179
1179
|
[Q, S.resourceKind, S.orientation]
|
|
1180
1180
|
);
|
|
1181
1181
|
const On = B(() => {
|
|
@@ -1196,10 +1196,10 @@ function Sc({
|
|
|
1196
1196
|
(C) => T.delete(h(C)) && C.start.getTime() === e && C.start.getTime() + C.durationMin * 6e4 === c && (!ee.event.resourceId || (S.resourceKind === "operator" ? C.operatorId : C.chairId) === ee.event.resourceId)
|
|
1197
1197
|
);
|
|
1198
1198
|
}, [Q, ee, S.resourceKind]), At = (e) => {
|
|
1199
|
-
if (
|
|
1199
|
+
if (Z || !ee || Q !== ee.source || !ee.el.isConnected)
|
|
1200
1200
|
return;
|
|
1201
1201
|
const c = f.cares.find((h) => h.id === e.careId);
|
|
1202
|
-
|
|
1202
|
+
ct(null), ve({
|
|
1203
1203
|
date: e.start,
|
|
1204
1204
|
time: { hours: e.start.getHours(), minutes: e.start.getMinutes() },
|
|
1205
1205
|
durationMin: e.durationMin,
|
|
@@ -1213,15 +1213,15 @@ function Sc({
|
|
|
1213
1213
|
initialFocus: Te != null && Te.patientId ? "operator" : "patient"
|
|
1214
1214
|
}), Wn("appointment-editor");
|
|
1215
1215
|
}, nn = On.length === 1 ? On[0] : void 0, Wt = $(At);
|
|
1216
|
-
Wt.current = At,
|
|
1217
|
-
nn && !
|
|
1218
|
-
}, [nn,
|
|
1219
|
-
const
|
|
1216
|
+
Wt.current = At, V(() => {
|
|
1217
|
+
nn && !Z && Wt.current(nn);
|
|
1218
|
+
}, [nn, Z]);
|
|
1219
|
+
const lt = $(null), Yt = fc(
|
|
1220
1220
|
S.colorAssociation === "status",
|
|
1221
|
-
|
|
1222
|
-
),
|
|
1221
|
+
lt
|
|
1222
|
+
), dt = $(null);
|
|
1223
1223
|
Qa(() => {
|
|
1224
|
-
const e =
|
|
1224
|
+
const e = dt.current, c = lt.current;
|
|
1225
1225
|
if (!(!e || !c))
|
|
1226
1226
|
return kc(e, c);
|
|
1227
1227
|
}, []);
|
|
@@ -1252,9 +1252,9 @@ function Sc({
|
|
|
1252
1252
|
() => [],
|
|
1253
1253
|
fi(f),
|
|
1254
1254
|
w
|
|
1255
|
-
), Me =
|
|
1255
|
+
), Me = Un !== void 0, [or, cr] = _("week"), [X, Ae] = _(
|
|
1256
1256
|
() => ss(jt)
|
|
1257
|
-
), Pe = Me ? or :
|
|
1257
|
+
), Pe = Me ? or : X ?? Ir, qe = m(
|
|
1258
1258
|
(e) => {
|
|
1259
1259
|
if (Me) {
|
|
1260
1260
|
cr(e);
|
|
@@ -1263,9 +1263,9 @@ function Sc({
|
|
|
1263
1263
|
Ae(void 0), ir(e);
|
|
1264
1264
|
},
|
|
1265
1265
|
[Me, ir]
|
|
1266
|
-
), Ke = Me ? xs : br, Xe = Me ? xs : Fn, It =
|
|
1266
|
+
), Ke = Me ? xs : br, Xe = Me ? xs : Fn, It = Z || Me, rn = (e) => en(e(Oe)), [We, tt] = _(
|
|
1267
1267
|
() => os(f.initialDateIso, f.nowIso)
|
|
1268
|
-
),
|
|
1268
|
+
), nt = $(We), [Hn, an] = _(We), [sn, Bn] = _(!0), [ut, lr] = _(!1), [Mn, qn] = _(!1), [In, bn] = _(!1), [Pn, Zt] = _(!1), [yn, Dn] = _(
|
|
1269
1269
|
() => os(f.initialDateIso, f.nowIso)
|
|
1270
1270
|
), [_t, Tn] = _(!1), [dr, ur] = _(""), [M, Le] = _(null), [A, bt] = _(null), [Ot, on] = _(null), [$t, Lt] = _(!1), [ge, Kn] = _(!1), [pr, yt] = _(""), [ke, Rt] = _("this"), _n = $(0), zt = m(
|
|
1271
1271
|
(e) => {
|
|
@@ -1276,13 +1276,13 @@ function Sc({
|
|
|
1276
1276
|
), Gn = m(
|
|
1277
1277
|
(e, c, h) => fe !== void 0 && Pr(e.patientId, f).assigned && (!c || h === "this"),
|
|
1278
1278
|
[f, fe]
|
|
1279
|
-
), cn = $(null), [
|
|
1279
|
+
), cn = $(null), [Ut, yr] = _(null), Vn = m((e) => {
|
|
1280
1280
|
const c = cn.current;
|
|
1281
1281
|
if (!c) return !1;
|
|
1282
1282
|
const h = e.getTime();
|
|
1283
1283
|
return h >= c.start && h < c.end;
|
|
1284
1284
|
}, []);
|
|
1285
|
-
|
|
1285
|
+
V(() => {
|
|
1286
1286
|
var e;
|
|
1287
1287
|
Ne && !Vn(Ne.date) && ((e = et.current) == null || e.gotoDate(Ne.date));
|
|
1288
1288
|
}, [Ne, Vn]);
|
|
@@ -1296,16 +1296,16 @@ function Sc({
|
|
|
1296
1296
|
var e;
|
|
1297
1297
|
(e = pt.current) == null || e.call(pt, Nn);
|
|
1298
1298
|
}, [Nn]);
|
|
1299
|
-
const
|
|
1299
|
+
const rt = Q !== null && Q.length > 0, ln = B(() => f.chairs.map((e) => e.id), [f]), jn = B(
|
|
1300
1300
|
() => gi(
|
|
1301
1301
|
r,
|
|
1302
1302
|
f.inactiveOperatorIds,
|
|
1303
|
-
|
|
1304
|
-
start:
|
|
1305
|
-
end:
|
|
1303
|
+
Ut ? {
|
|
1304
|
+
start: Ut.start.getTime(),
|
|
1305
|
+
end: Ut.end.getTime()
|
|
1306
1306
|
} : null
|
|
1307
1307
|
),
|
|
1308
|
-
[r,
|
|
1308
|
+
[r, Ut, f]
|
|
1309
1309
|
), mr = B(
|
|
1310
1310
|
() => ki({
|
|
1311
1311
|
operators: f.operators,
|
|
@@ -1314,7 +1314,7 @@ function Sc({
|
|
|
1314
1314
|
keepIds: jn
|
|
1315
1315
|
}),
|
|
1316
1316
|
[ut, jn, f]
|
|
1317
|
-
),
|
|
1317
|
+
), Ht = B(
|
|
1318
1318
|
() => cs(Ke, ln),
|
|
1319
1319
|
[Ke, ln]
|
|
1320
1320
|
), Mt = B(
|
|
@@ -1322,24 +1322,24 @@ function Sc({
|
|
|
1322
1322
|
[Xe, mr]
|
|
1323
1323
|
), { loadingDates: Dr, errorDates: Yn } = B(() => {
|
|
1324
1324
|
const e = f.dayLoadState;
|
|
1325
|
-
if (!e || !
|
|
1325
|
+
if (!e || !Ut)
|
|
1326
1326
|
return { loadingDates: void 0, errorDates: void 0 };
|
|
1327
|
-
const c = [], h = [], T = new Date(
|
|
1328
|
-
for (T.setHours(0, 0, 0, 0); T.getTime() <
|
|
1327
|
+
const c = [], h = [], T = new Date(Ut.start);
|
|
1328
|
+
for (T.setHours(0, 0, 0, 0); T.getTime() < Ut.end.getTime(); ) {
|
|
1329
1329
|
const C = vr(T);
|
|
1330
1330
|
e[C] === "error" ? Ct.includes(T.getDay()) || h.push(C) : e[C] !== "ready" && c.push(C), T.setDate(T.getDate() + 1);
|
|
1331
1331
|
}
|
|
1332
1332
|
return { loadingDates: c, errorDates: h };
|
|
1333
|
-
}, [f.dayLoadState,
|
|
1333
|
+
}, [f.dayLoadState, Ut, Ct]), $e = Ci(S.window, f), mt = B(() => {
|
|
1334
1334
|
const e = new Date(yn);
|
|
1335
1335
|
return e.setHours(0, 0, 0, 0), [e];
|
|
1336
|
-
}, [yn]),
|
|
1336
|
+
}, [yn]), at = B(
|
|
1337
1337
|
() => Ii(
|
|
1338
1338
|
{
|
|
1339
1339
|
rows: r,
|
|
1340
1340
|
days: mt,
|
|
1341
1341
|
axisKind: z,
|
|
1342
|
-
visibleChairIds:
|
|
1342
|
+
visibleChairIds: Ht,
|
|
1343
1343
|
visibleOperatorIds: Mt,
|
|
1344
1344
|
privacy: Oe
|
|
1345
1345
|
},
|
|
@@ -1349,13 +1349,13 @@ function Sc({
|
|
|
1349
1349
|
r,
|
|
1350
1350
|
mt,
|
|
1351
1351
|
z,
|
|
1352
|
-
|
|
1352
|
+
Ht,
|
|
1353
1353
|
Mt,
|
|
1354
1354
|
Oe,
|
|
1355
1355
|
f
|
|
1356
1356
|
]
|
|
1357
1357
|
);
|
|
1358
|
-
|
|
1358
|
+
V(() => {
|
|
1359
1359
|
_t && (Tn(!1), window.print());
|
|
1360
1360
|
}, [_t]);
|
|
1361
1361
|
const Xn = m(
|
|
@@ -1379,7 +1379,7 @@ function Sc({
|
|
|
1379
1379
|
[S.showCardContext, z, f.chairs, f.operators]
|
|
1380
1380
|
), Jn = B(() => {
|
|
1381
1381
|
const e = r.filter(
|
|
1382
|
-
(R) => (!R.chairId ||
|
|
1382
|
+
(R) => (!R.chairId || Ht.includes(R.chairId)) && (!R.operatorId || Mt.includes(R.operatorId))
|
|
1383
1383
|
).filter((R) => S.showCancelled || R.event.status !== "cancelled").map((R) => ({
|
|
1384
1384
|
...R.event,
|
|
1385
1385
|
...ls(R, S.colorAssociation, f, Yt),
|
|
@@ -1409,7 +1409,7 @@ function Sc({
|
|
|
1409
1409
|
axisKind: z,
|
|
1410
1410
|
rangeStart: c,
|
|
1411
1411
|
rangeEnd: h,
|
|
1412
|
-
visibleChairIds:
|
|
1412
|
+
visibleChairIds: Ht,
|
|
1413
1413
|
visibleOperatorIds: Mt,
|
|
1414
1414
|
columnsHiddenWhenAbsent: T,
|
|
1415
1415
|
labels: {
|
|
@@ -1420,7 +1420,7 @@ function Sc({
|
|
|
1420
1420
|
},
|
|
1421
1421
|
f
|
|
1422
1422
|
), W = [];
|
|
1423
|
-
if (
|
|
1423
|
+
if (rt && Q)
|
|
1424
1424
|
for (const R of Di(Q, z))
|
|
1425
1425
|
W.push({
|
|
1426
1426
|
id: `avail-${R.key}`,
|
|
@@ -1429,26 +1429,26 @@ function Sc({
|
|
|
1429
1429
|
end: R.end.toISOString(),
|
|
1430
1430
|
isInternal: !0,
|
|
1431
1431
|
optionCount: R.optionCount,
|
|
1432
|
-
...!
|
|
1432
|
+
...!Z && R.slotCount === 1 ? { bookable: !0 } : {},
|
|
1433
1433
|
...R.resourceId ? { resourceId: R.resourceId } : {}
|
|
1434
1434
|
});
|
|
1435
|
-
const E =
|
|
1435
|
+
const E = rt ? [] : Ti(
|
|
1436
1436
|
{
|
|
1437
1437
|
axisKind: z,
|
|
1438
1438
|
rangeStart: c,
|
|
1439
1439
|
rangeEnd: h,
|
|
1440
|
-
visibleChairIds:
|
|
1440
|
+
visibleChairIds: Ht,
|
|
1441
1441
|
visibleOperatorIds: Mt,
|
|
1442
1442
|
columnsHiddenWhenAbsent: T,
|
|
1443
1443
|
wholeDayOnly: de
|
|
1444
1444
|
},
|
|
1445
1445
|
f
|
|
1446
|
-
),
|
|
1446
|
+
), G = [], ye = z === "operator" ? i == null ? void 0 : i.operatorId : i == null ? void 0 : i.chairId;
|
|
1447
1447
|
if (i && !i.editEventId && (z === "none" || ye)) {
|
|
1448
1448
|
const R = new Date(i.date);
|
|
1449
1449
|
R.setHours(i.time.hours, i.time.minutes, 0, 0);
|
|
1450
1450
|
const De = new Date(R.getTime() + i.durationMin * 6e4), Kt = z === "operator" ? i.operatorId : i.chairId, Dt = i.allDay || de;
|
|
1451
|
-
|
|
1451
|
+
G.push({
|
|
1452
1452
|
id: Ma,
|
|
1453
1453
|
title: o(D("actions.newAppointment")),
|
|
1454
1454
|
start: Dt ? vr(R) : R.toISOString(),
|
|
@@ -1466,7 +1466,7 @@ function Sc({
|
|
|
1466
1466
|
}
|
|
1467
1467
|
return [
|
|
1468
1468
|
...e,
|
|
1469
|
-
...
|
|
1469
|
+
...G,
|
|
1470
1470
|
...W,
|
|
1471
1471
|
...E,
|
|
1472
1472
|
...C
|
|
@@ -1476,8 +1476,8 @@ function Sc({
|
|
|
1476
1476
|
Xn,
|
|
1477
1477
|
z,
|
|
1478
1478
|
Q,
|
|
1479
|
-
|
|
1480
|
-
|
|
1479
|
+
rt,
|
|
1480
|
+
Ht,
|
|
1481
1481
|
Mt,
|
|
1482
1482
|
We,
|
|
1483
1483
|
sn,
|
|
@@ -1489,7 +1489,7 @@ function Sc({
|
|
|
1489
1489
|
de,
|
|
1490
1490
|
It,
|
|
1491
1491
|
he,
|
|
1492
|
-
|
|
1492
|
+
Z,
|
|
1493
1493
|
o,
|
|
1494
1494
|
f,
|
|
1495
1495
|
i,
|
|
@@ -1507,13 +1507,13 @@ function Sc({
|
|
|
1507
1507
|
o(L("filters.disabledOperator"))
|
|
1508
1508
|
),
|
|
1509
1509
|
...sn ? { hiddenDates: f.operatorAbsences[e.id] } : {}
|
|
1510
|
-
})) : f.chairs.filter((e) =>
|
|
1510
|
+
})) : f.chairs.filter((e) => Ht.includes(e.id)).map((e) => ({
|
|
1511
1511
|
...e,
|
|
1512
1512
|
title: wi(e, S.chairNameDisplay)
|
|
1513
1513
|
})), Re = K ? r.find((e) => e.event.id === K.eventId) : void 0;
|
|
1514
|
-
|
|
1515
|
-
K && !Re && (
|
|
1516
|
-
}, [K, Re,
|
|
1514
|
+
V(() => {
|
|
1515
|
+
K && !Re && (re == null || re());
|
|
1516
|
+
}, [K, Re, re]);
|
|
1517
1517
|
const un = K && Re ? K.kind : ue ? "create" : "default", ht = K && Re ? ls(
|
|
1518
1518
|
Re,
|
|
1519
1519
|
S.colorAssociation,
|
|
@@ -1525,12 +1525,12 @@ function Sc({
|
|
|
1525
1525
|
name: ue.patientName
|
|
1526
1526
|
}) : o(L("placement.createBanner")) : void 0, pe = m(() => {
|
|
1527
1527
|
if (K) {
|
|
1528
|
-
|
|
1528
|
+
re == null || re();
|
|
1529
1529
|
return;
|
|
1530
1530
|
}
|
|
1531
|
-
|
|
1532
|
-
}, [K,
|
|
1533
|
-
|
|
1531
|
+
it == null || it();
|
|
1532
|
+
}, [K, re, it]), Qn = $(0);
|
|
1533
|
+
V(() => {
|
|
1534
1534
|
if (!Ie || Ie.tick === Qn.current || !r.some((c) => c.event.id === Ie.eventId)) return;
|
|
1535
1535
|
Qn.current = Ie.tick;
|
|
1536
1536
|
const e = window.setTimeout(
|
|
@@ -1543,7 +1543,7 @@ function Sc({
|
|
|
1543
1543
|
return () => window.clearTimeout(e);
|
|
1544
1544
|
}, [Ie, r]);
|
|
1545
1545
|
const Ge = $(0);
|
|
1546
|
-
|
|
1546
|
+
V(() => {
|
|
1547
1547
|
if (!je || je.tick === Ge.current) return;
|
|
1548
1548
|
Ge.current = je.tick;
|
|
1549
1549
|
const e = Si(je, {
|
|
@@ -1599,7 +1599,7 @@ function Sc({
|
|
|
1599
1599
|
if (!(c != null && c.event.detailsPending)) {
|
|
1600
1600
|
if (Lr(e.patientId) === "") {
|
|
1601
1601
|
if (!c) return;
|
|
1602
|
-
if (
|
|
1602
|
+
if (Y) {
|
|
1603
1603
|
b({ kind: "appointment", eventId: e.id });
|
|
1604
1604
|
return;
|
|
1605
1605
|
}
|
|
@@ -1620,7 +1620,7 @@ function Sc({
|
|
|
1620
1620
|
f,
|
|
1621
1621
|
he,
|
|
1622
1622
|
Nt,
|
|
1623
|
-
|
|
1623
|
+
Y
|
|
1624
1624
|
]
|
|
1625
1625
|
), ze = ni(), u = m(
|
|
1626
1626
|
(e) => {
|
|
@@ -1631,25 +1631,25 @@ function Sc({
|
|
|
1631
1631
|
Le(null), ze.ask(() => er(e));
|
|
1632
1632
|
},
|
|
1633
1633
|
[ze, K, r, er]
|
|
1634
|
-
),
|
|
1634
|
+
), U = m(
|
|
1635
1635
|
(e, c) => {
|
|
1636
1636
|
e.allDay && Lr(e.patientId) === "" && !$a(e) || (Le({ event: e, el: c.el }), !$a(e) && !e.isTask && (tn == null || tn(e.id)));
|
|
1637
1637
|
},
|
|
1638
1638
|
[tn]
|
|
1639
|
-
),
|
|
1639
|
+
), ae = m(() => Le(null), []), ft = $(""), F = $(null), be = $(vn);
|
|
1640
1640
|
be.current = vn;
|
|
1641
1641
|
const Fe = m(
|
|
1642
1642
|
(e) => {
|
|
1643
1643
|
var E;
|
|
1644
|
-
|
|
1644
|
+
nt.current = e.currentDate;
|
|
1645
1645
|
const { view: c, axis: h } = $n.current, T = vr(e.currentDate), C = `${c}|${h ?? ""}|${T}`;
|
|
1646
1646
|
F.current !== null && F.current !== C && ((E = be.current) == null || E.call(be, { view: c, date: T, ...h ? { axis: h } : {} })), F.current = C, cn.current = {
|
|
1647
1647
|
start: e.start.getTime(),
|
|
1648
1648
|
end: e.end.getTime()
|
|
1649
1649
|
}, ur(e.title);
|
|
1650
1650
|
const W = `${e.internalView}:${e.start.getTime()}-${e.end.getTime()}`;
|
|
1651
|
-
W !== ft.current && (ft.current = W,
|
|
1652
|
-
(
|
|
1651
|
+
W !== ft.current && (ft.current = W, ct(null), Le(null), yr({ start: e.start, end: e.end }), se(cn.current)), tt(
|
|
1652
|
+
(G) => G.getTime() === e.currentDate.getTime() ? G : e.currentDate
|
|
1653
1653
|
);
|
|
1654
1654
|
},
|
|
1655
1655
|
[se]
|
|
@@ -1674,12 +1674,12 @@ function Sc({
|
|
|
1674
1674
|
return s(
|
|
1675
1675
|
(C) => C.map((W) => {
|
|
1676
1676
|
if (!T.has(W.event.id)) return W;
|
|
1677
|
-
const E = W.event.id === e.eventId,
|
|
1677
|
+
const E = W.event.id === e.eventId, G = E ? e.newStart : new Date(new Date(W.event.start).getTime() + h), ye = E && e.newEnd ? e.newEnd : W.event.end ? new Date(new Date(W.event.end).getTime() + h) : void 0, R = {
|
|
1678
1678
|
...W,
|
|
1679
1679
|
...e.resourceId ? z === "operator" ? { operatorId: e.resourceId } : { chairId: e.resourceId } : {},
|
|
1680
1680
|
event: {
|
|
1681
1681
|
...W.event,
|
|
1682
|
-
start:
|
|
1682
|
+
start: G,
|
|
1683
1683
|
end: ye
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
@@ -1758,7 +1758,7 @@ function Sc({
|
|
|
1758
1758
|
(e) => {
|
|
1759
1759
|
var T, C, W;
|
|
1760
1760
|
if (e.event.id === Ma) {
|
|
1761
|
-
const E = new Date(e.newStart),
|
|
1761
|
+
const E = new Date(e.newStart), G = e.newResourceId, ye = () => {
|
|
1762
1762
|
var De;
|
|
1763
1763
|
(De = e.revert) == null || De.call(e), v == null || v({
|
|
1764
1764
|
date: new Date(
|
|
@@ -1768,12 +1768,12 @@ function Sc({
|
|
|
1768
1768
|
),
|
|
1769
1769
|
/* A Month drop lands on a day, not a slot: keep the time. */
|
|
1770
1770
|
time: de && i ? i.time : { hours: E.getHours(), minutes: E.getMinutes() },
|
|
1771
|
-
...
|
|
1772
|
-
...
|
|
1771
|
+
...G && z === "operator" ? { operatorId: G } : {},
|
|
1772
|
+
...G && z === "chair" ? { chairId: G } : {}
|
|
1773
1773
|
});
|
|
1774
1774
|
}, R = f.closureOn(
|
|
1775
1775
|
vr(E),
|
|
1776
|
-
z === "operator" ?
|
|
1776
|
+
z === "operator" ? G : i == null ? void 0 : i.operatorId
|
|
1777
1777
|
);
|
|
1778
1778
|
if (R) {
|
|
1779
1779
|
on({
|
|
@@ -1795,7 +1795,7 @@ function Sc({
|
|
|
1795
1795
|
return;
|
|
1796
1796
|
}
|
|
1797
1797
|
if (It) {
|
|
1798
|
-
(C = e.revert) == null || C.call(e),
|
|
1798
|
+
(C = e.revert) == null || C.call(e), Z && hn(o(L("readOnly.changeBlocked")));
|
|
1799
1799
|
return;
|
|
1800
1800
|
}
|
|
1801
1801
|
xt == null || xt(e.event.id);
|
|
@@ -1823,8 +1823,8 @@ function Sc({
|
|
|
1823
1823
|
action: "move",
|
|
1824
1824
|
onConfirm: E,
|
|
1825
1825
|
onCancel: () => {
|
|
1826
|
-
var
|
|
1827
|
-
return (
|
|
1826
|
+
var G;
|
|
1827
|
+
return (G = e.revert) == null ? void 0 : G.call(e);
|
|
1828
1828
|
}
|
|
1829
1829
|
});
|
|
1830
1830
|
return;
|
|
@@ -1852,7 +1852,7 @@ function Sc({
|
|
|
1852
1852
|
o,
|
|
1853
1853
|
p,
|
|
1854
1854
|
f,
|
|
1855
|
-
|
|
1855
|
+
Z,
|
|
1856
1856
|
It,
|
|
1857
1857
|
he,
|
|
1858
1858
|
xt,
|
|
@@ -1862,7 +1862,7 @@ function Sc({
|
|
|
1862
1862
|
]
|
|
1863
1863
|
), Ea = m(
|
|
1864
1864
|
(e) => {
|
|
1865
|
-
var E,
|
|
1865
|
+
var E, G, ye;
|
|
1866
1866
|
if (e.event.id === Ma) {
|
|
1867
1867
|
if ((E = e.revert) == null || E.call(e), de || i != null && i.allDay) return;
|
|
1868
1868
|
g == null || g(
|
|
@@ -1871,11 +1871,11 @@ function Sc({
|
|
|
1871
1871
|
return;
|
|
1872
1872
|
}
|
|
1873
1873
|
if (he != null && he.has(e.event.id)) {
|
|
1874
|
-
(
|
|
1874
|
+
(G = e.revert) == null || G.call(e);
|
|
1875
1875
|
return;
|
|
1876
1876
|
}
|
|
1877
1877
|
if (It) {
|
|
1878
|
-
(ye = e.revert) == null || ye.call(e),
|
|
1878
|
+
(ye = e.revert) == null || ye.call(e), Z && hn(o(L("readOnly.changeBlocked")));
|
|
1879
1879
|
return;
|
|
1880
1880
|
}
|
|
1881
1881
|
const c = e.event.id, h = e.oldEnd, { rollback: T, record: C } = Rn(c, e.newEnd), W = () => {
|
|
@@ -1922,7 +1922,7 @@ function Sc({
|
|
|
1922
1922
|
Oe,
|
|
1923
1923
|
x,
|
|
1924
1924
|
o,
|
|
1925
|
-
|
|
1925
|
+
Z,
|
|
1926
1926
|
It,
|
|
1927
1927
|
he,
|
|
1928
1928
|
g,
|
|
@@ -1960,7 +1960,7 @@ function Sc({
|
|
|
1960
1960
|
);
|
|
1961
1961
|
return;
|
|
1962
1962
|
}
|
|
1963
|
-
const
|
|
1963
|
+
const G = Ga(
|
|
1964
1964
|
r,
|
|
1965
1965
|
A.event.id,
|
|
1966
1966
|
ke
|
|
@@ -1975,7 +1975,7 @@ function Sc({
|
|
|
1975
1975
|
oldStart: A.oldStart,
|
|
1976
1976
|
newStart: A.newStart,
|
|
1977
1977
|
newEnd: A.newEnd,
|
|
1978
|
-
alsoIds:
|
|
1978
|
+
alsoIds: G
|
|
1979
1979
|
},
|
|
1980
1980
|
ke,
|
|
1981
1981
|
ye
|
|
@@ -2011,25 +2011,25 @@ function Sc({
|
|
|
2011
2011
|
(e = A == null ? void 0 : A.revert) == null || e.call(A), yt(o(D("moveConfirm.revertReadout"))), bt(null);
|
|
2012
2012
|
}, [A, o]), hr = m(
|
|
2013
2013
|
(e) => {
|
|
2014
|
-
|
|
2014
|
+
nt.current = e, an(e), qe("day");
|
|
2015
2015
|
},
|
|
2016
2016
|
[qe]
|
|
2017
2017
|
), wr = m(
|
|
2018
2018
|
(e, c, h) => {
|
|
2019
2019
|
var T, C, W;
|
|
2020
|
-
if (
|
|
2020
|
+
if (rt && Q) {
|
|
2021
2021
|
de && hr(e.date), Le(null), b(null);
|
|
2022
2022
|
return;
|
|
2023
2023
|
}
|
|
2024
2024
|
if (K && Re) {
|
|
2025
|
-
if (Le(null),
|
|
2026
|
-
|
|
2025
|
+
if (Le(null), Z) {
|
|
2026
|
+
re == null || re(!1), hn(o(L("readOnly.changeBlocked")));
|
|
2027
2027
|
return;
|
|
2028
2028
|
}
|
|
2029
|
-
const E = Re,
|
|
2029
|
+
const E = Re, G = new Date(E.event.start), ye = new Date(e.date);
|
|
2030
2030
|
if (e.allDay && !E.event.allDay && ye.setHours(
|
|
2031
|
-
|
|
2032
|
-
|
|
2031
|
+
G.getHours(),
|
|
2032
|
+
G.getMinutes(),
|
|
2033
2033
|
0,
|
|
2034
2034
|
0
|
|
2035
2035
|
), K.kind === "copy") {
|
|
@@ -2040,7 +2040,7 @@ function Sc({
|
|
|
2040
2040
|
Kt,
|
|
2041
2041
|
K.withTreatments === !0
|
|
2042
2042
|
);
|
|
2043
|
-
s((
|
|
2043
|
+
s((ne) => [...ne, Dt]);
|
|
2044
2044
|
let Gt = Kt, t = !1;
|
|
2045
2045
|
const a = f.metaById[E.event.id], d = Vt == null ? void 0 : Vt({
|
|
2046
2046
|
sourceId: E.event.id,
|
|
@@ -2049,17 +2049,20 @@ function Sc({
|
|
|
2049
2049
|
...(a == null ? void 0 : a.emailReminder) !== void 0 ? { emailReminder: a.emailReminder } : {},
|
|
2050
2050
|
...(a == null ? void 0 : a.smsReminder) !== void 0 ? { smsReminder: a.smsReminder } : {}
|
|
2051
2051
|
}), q = () => {
|
|
2052
|
-
t || x(Gt, {
|
|
2052
|
+
t || (x(Gt, {
|
|
2053
|
+
kind: "created",
|
|
2054
|
+
copiedFromIso: G.toISOString()
|
|
2055
|
+
}), x(E.event.id, { kind: "copied" }));
|
|
2053
2056
|
};
|
|
2054
2057
|
d ? Ze(
|
|
2055
|
-
d.then((
|
|
2056
|
-
!
|
|
2058
|
+
d.then((ne) => {
|
|
2059
|
+
!ne || ne.id === Kt || (Gt = ne.id, s(
|
|
2057
2060
|
(me) => me.map(
|
|
2058
|
-
(Se) => Se.event.id === Kt ? { ...Se, event: { ...Se.event, id:
|
|
2061
|
+
(Se) => Se.event.id === Kt ? { ...Se, event: { ...Se.event, id: ne.id } } : Se
|
|
2059
2062
|
)
|
|
2060
2063
|
));
|
|
2061
2064
|
}),
|
|
2062
|
-
(
|
|
2065
|
+
(ne) => ne.filter((me) => me.event.id !== Gt),
|
|
2063
2066
|
o(L("placement.copyFailed")),
|
|
2064
2067
|
q
|
|
2065
2068
|
) : q();
|
|
@@ -2076,7 +2079,7 @@ function Sc({
|
|
|
2076
2079
|
fn(o(L("placement.copyUndone")));
|
|
2077
2080
|
return;
|
|
2078
2081
|
}
|
|
2079
|
-
const
|
|
2082
|
+
const ne = (me) => me.some((Se) => Se.event.id === Gt) ? me : [
|
|
2080
2083
|
...me,
|
|
2081
2084
|
{
|
|
2082
2085
|
...Dt,
|
|
@@ -2088,7 +2091,7 @@ function Sc({
|
|
|
2088
2091
|
new Promise(
|
|
2089
2092
|
(me) => me(Et(Gt))
|
|
2090
2093
|
),
|
|
2091
|
-
|
|
2094
|
+
ne,
|
|
2092
2095
|
"",
|
|
2093
2096
|
() => fn(o(L("placement.copyUndone")))
|
|
2094
2097
|
),
|
|
@@ -2098,22 +2101,22 @@ function Sc({
|
|
|
2098
2101
|
}
|
|
2099
2102
|
}
|
|
2100
2103
|
} : void 0
|
|
2101
|
-
),
|
|
2104
|
+
), re == null || re(!0);
|
|
2102
2105
|
return;
|
|
2103
2106
|
}
|
|
2104
|
-
const R = E.event.end ? new Date(E.event.end).getTime() -
|
|
2107
|
+
const R = E.event.end ? new Date(E.event.end).getTime() - G.getTime() : 0, De = E.event.end ? new Date(ye.getTime() + R) : void 0;
|
|
2105
2108
|
if (ga(E.event) && !zt(E.event)) {
|
|
2106
2109
|
pn(
|
|
2107
2110
|
{
|
|
2108
2111
|
eventId: E.event.id,
|
|
2109
2112
|
resourceId: e.resourceId,
|
|
2110
|
-
oldStart:
|
|
2113
|
+
oldStart: G,
|
|
2111
2114
|
newStart: ye,
|
|
2112
2115
|
newEnd: De
|
|
2113
2116
|
},
|
|
2114
2117
|
"this",
|
|
2115
2118
|
ba
|
|
2116
|
-
),
|
|
2119
|
+
), re == null || re(!0);
|
|
2117
2120
|
return;
|
|
2118
2121
|
}
|
|
2119
2122
|
yt(""), Rt("this"), Nr(Lr(E.event.patientId)), bt({
|
|
@@ -2122,23 +2125,23 @@ function Sc({
|
|
|
2122
2125
|
resourceId: z === "operator" ? E.operatorId : E.chairId
|
|
2123
2126
|
},
|
|
2124
2127
|
kind: "drop",
|
|
2125
|
-
oldStart:
|
|
2128
|
+
oldStart: G,
|
|
2126
2129
|
newStart: ye,
|
|
2127
2130
|
newEnd: De,
|
|
2128
2131
|
newResourceId: e.resourceId,
|
|
2129
2132
|
...h ? { closure: h } : {}
|
|
2130
|
-
}),
|
|
2133
|
+
}), re == null || re(!0);
|
|
2131
2134
|
return;
|
|
2132
2135
|
}
|
|
2133
2136
|
if (de) {
|
|
2134
2137
|
Le(null), b(null), hr(e.date);
|
|
2135
2138
|
return;
|
|
2136
2139
|
}
|
|
2137
|
-
if (
|
|
2140
|
+
if (Z) {
|
|
2138
2141
|
Le(null), hn(o(L("readOnly.createBlocked")));
|
|
2139
2142
|
return;
|
|
2140
2143
|
}
|
|
2141
|
-
if (Le(null), b(null),
|
|
2144
|
+
if (Le(null), b(null), Y && !ue) {
|
|
2142
2145
|
c !== void 0 && ((W = (C = (T = et.current) == null ? void 0 : T.getApi()) == null ? void 0 : C.unselect) == null || W.call(C));
|
|
2143
2146
|
return;
|
|
2144
2147
|
}
|
|
@@ -2156,7 +2159,7 @@ function Sc({
|
|
|
2156
2159
|
},
|
|
2157
2160
|
...z === "chair" && e.resourceId ? { chairId: e.resourceId } : {},
|
|
2158
2161
|
...z === "operator" && e.resourceId ? { operatorId: e.resourceId } : {}
|
|
2159
|
-
}), ue && (
|
|
2162
|
+
}), ue && (it == null || it());
|
|
2160
2163
|
},
|
|
2161
2164
|
[
|
|
2162
2165
|
z,
|
|
@@ -2167,19 +2170,19 @@ function Sc({
|
|
|
2167
2170
|
de,
|
|
2168
2171
|
hr,
|
|
2169
2172
|
S.defaultDurationMin,
|
|
2170
|
-
|
|
2173
|
+
Z,
|
|
2171
2174
|
Q,
|
|
2172
|
-
|
|
2175
|
+
rt,
|
|
2173
2176
|
K,
|
|
2174
2177
|
Re,
|
|
2175
2178
|
ue,
|
|
2176
|
-
|
|
2179
|
+
it,
|
|
2177
2180
|
s,
|
|
2178
2181
|
x,
|
|
2179
2182
|
Nr,
|
|
2180
2183
|
zt,
|
|
2181
|
-
|
|
2182
|
-
|
|
2184
|
+
re,
|
|
2185
|
+
Y,
|
|
2183
2186
|
Vt,
|
|
2184
2187
|
f.metaById,
|
|
2185
2188
|
Et,
|
|
@@ -2188,7 +2191,7 @@ function Sc({
|
|
|
2188
2191
|
]
|
|
2189
2192
|
), $r = m(
|
|
2190
2193
|
(e, c) => {
|
|
2191
|
-
const T = (!de || K) && !
|
|
2194
|
+
const T = (!de || K) && !Z && !(rt && Q) && !(Y && !ue && !K) ? f.closureOn(
|
|
2192
2195
|
vr(e.date),
|
|
2193
2196
|
z === "operator" ? e.resourceId : void 0
|
|
2194
2197
|
) : null;
|
|
@@ -2205,8 +2208,8 @@ function Sc({
|
|
|
2205
2208
|
action: (K == null ? void 0 : K.kind) === "move" ? "move" : "book",
|
|
2206
2209
|
onConfirm: () => wr(e, c),
|
|
2207
2210
|
onCancel: () => {
|
|
2208
|
-
var W, E,
|
|
2209
|
-
c !== void 0 && ((
|
|
2211
|
+
var W, E, G;
|
|
2212
|
+
c !== void 0 && ((G = (E = (W = et.current) == null ? void 0 : W.getApi()) == null ? void 0 : E.unselect) == null || G.call(E));
|
|
2210
2213
|
}
|
|
2211
2214
|
});
|
|
2212
2215
|
},
|
|
@@ -2214,10 +2217,10 @@ function Sc({
|
|
|
2214
2217
|
de,
|
|
2215
2218
|
K,
|
|
2216
2219
|
Re,
|
|
2217
|
-
|
|
2218
|
-
|
|
2220
|
+
Z,
|
|
2221
|
+
rt,
|
|
2219
2222
|
Q,
|
|
2220
|
-
|
|
2223
|
+
Y,
|
|
2221
2224
|
ue,
|
|
2222
2225
|
f,
|
|
2223
2226
|
z,
|
|
@@ -2244,11 +2247,11 @@ function Sc({
|
|
|
2244
2247
|
[$r]
|
|
2245
2248
|
), Rr = m(
|
|
2246
2249
|
(e) => {
|
|
2247
|
-
an(
|
|
2250
|
+
an(nt.current), qe(e);
|
|
2248
2251
|
},
|
|
2249
2252
|
[qe]
|
|
2250
2253
|
);
|
|
2251
|
-
|
|
2254
|
+
V(() => {
|
|
2252
2255
|
const e = (c) => {
|
|
2253
2256
|
const h = $i(c);
|
|
2254
2257
|
!h || Me && h === "threeDays" || (c.preventDefault(), Rr(h));
|
|
@@ -2257,7 +2260,7 @@ function Sc({
|
|
|
2257
2260
|
}, [Rr, Me]);
|
|
2258
2261
|
const Aa = m(
|
|
2259
2262
|
(e) => {
|
|
2260
|
-
an(
|
|
2263
|
+
an(nt.current), ie((c) => ({ ...c, resourceKind: e }));
|
|
2261
2264
|
},
|
|
2262
2265
|
[ie]
|
|
2263
2266
|
), fr = B(
|
|
@@ -2289,18 +2292,18 @@ function Sc({
|
|
|
2289
2292
|
lr(e), !e && Jt(
|
|
2290
2293
|
(c) => c.filter((h) => !f.inactiveOperatorIds.includes(h))
|
|
2291
2294
|
);
|
|
2292
|
-
}, qt = ca && S.operatorListMode === "flat",
|
|
2295
|
+
}, qt = ca && S.operatorListMode === "flat", Ur = Li(Ke, Xe), Wa = () => {
|
|
2293
2296
|
var e;
|
|
2294
2297
|
(e = Xt.current) == null || e.focus(), Pt([]), Jt([]), lr(!1), Bn(!0);
|
|
2295
2298
|
}, Er = o(D(`view.${Pe}`)), da = Fi(f), Oa = (e, c) => {
|
|
2296
|
-
e === "orientation" && an(
|
|
2299
|
+
e === "orientation" && an(nt.current), ie((h) => ({ ...h, ...c })), He == null || He({ setting: e, section: "personal" });
|
|
2297
2300
|
}, La = (e) => {
|
|
2298
|
-
Ln(e),
|
|
2301
|
+
Ln(e), He == null || He({ setting: "hiddenDays", section: "personal" });
|
|
2299
2302
|
}, Fa = () => {
|
|
2300
|
-
an(
|
|
2303
|
+
an(nt.current), ie((e) => ({ ...J, resourceKind: e.resourceKind })), Ln([...is]), He == null || He({ setting: "reset", section: "personal" });
|
|
2301
2304
|
};
|
|
2302
|
-
|
|
2303
|
-
|
|
2305
|
+
V(() => {
|
|
2306
|
+
Ue == null || Ue.publish({
|
|
2304
2307
|
display: S,
|
|
2305
2308
|
onChange: Oa,
|
|
2306
2309
|
hiddenDays: Ct,
|
|
@@ -2314,11 +2317,11 @@ function Sc({
|
|
|
2314
2317
|
hasOperatorGroups: ca,
|
|
2315
2318
|
academyHref: Cn == null ? void 0 : Cn.academyHref,
|
|
2316
2319
|
practiceSettings: St,
|
|
2317
|
-
onPracticeSettingChanged: (e) =>
|
|
2320
|
+
onPracticeSettingChanged: (e) => He == null ? void 0 : He({ setting: e, section: "practice" }),
|
|
2318
2321
|
onHoursOpened: kn
|
|
2319
2322
|
});
|
|
2320
|
-
}),
|
|
2321
|
-
const
|
|
2323
|
+
}), V(() => () => Ue == null ? void 0 : Ue.publish(null), [Ue]);
|
|
2324
|
+
const Hr = (e) => /* @__PURE__ */ n(
|
|
2322
2325
|
ta,
|
|
2323
2326
|
{
|
|
2324
2327
|
label: /* @__PURE__ */ I("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
@@ -2363,10 +2366,10 @@ function Sc({
|
|
|
2363
2366
|
/* @__PURE__ */ n(
|
|
2364
2367
|
So,
|
|
2365
2368
|
{
|
|
2366
|
-
readOnly:
|
|
2369
|
+
readOnly: Z,
|
|
2367
2370
|
availableTools: kt,
|
|
2368
2371
|
waitingCount: xe,
|
|
2369
|
-
toCompleteCount:
|
|
2372
|
+
toCompleteCount: j,
|
|
2370
2373
|
onNewAppointment: N,
|
|
2371
2374
|
onOpenFindSlots: () => Wn("find-slots"),
|
|
2372
2375
|
onOpenWaitingList: l,
|
|
@@ -2415,7 +2418,7 @@ function Sc({
|
|
|
2415
2418
|
{
|
|
2416
2419
|
type: "button",
|
|
2417
2420
|
className: rr,
|
|
2418
|
-
ref:
|
|
2421
|
+
ref: Ue == null ? void 0 : Ue.buttonRef,
|
|
2419
2422
|
intent: "outline",
|
|
2420
2423
|
icon: /* @__PURE__ */ n(Ms, {}),
|
|
2421
2424
|
"aria-label": o(D("settings.label")),
|
|
@@ -2516,7 +2519,7 @@ function Sc({
|
|
|
2516
2519
|
/* @__PURE__ */ n(Tt.Heading, { children: o(D("filters.operators")) }),
|
|
2517
2520
|
/* @__PURE__ */ n(Tt.Description, { children: o(L("filters.everyoneOperators")) }),
|
|
2518
2521
|
/* @__PURE__ */ I("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)]", children: [
|
|
2519
|
-
fr.length === 1 || qt ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: (qt ? zr : fr[0].operators).map(
|
|
2522
|
+
fr.length === 1 || qt ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: (qt ? zr : fr[0].operators).map(Hr) }) : fr.map((e) => {
|
|
2520
2523
|
const c = e.operators.map((h) => h.id);
|
|
2521
2524
|
return /* @__PURE__ */ I(
|
|
2522
2525
|
"div",
|
|
@@ -2538,7 +2541,7 @@ function Sc({
|
|
|
2538
2541
|
)
|
|
2539
2542
|
}
|
|
2540
2543
|
),
|
|
2541
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-md)]", children: e.operators.map(
|
|
2544
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-md)]", children: e.operators.map(Hr) })
|
|
2542
2545
|
]
|
|
2543
2546
|
},
|
|
2544
2547
|
e.id
|
|
@@ -2565,7 +2568,7 @@ function Sc({
|
|
|
2565
2568
|
}
|
|
2566
2569
|
)
|
|
2567
2570
|
] }),
|
|
2568
|
-
|
|
2571
|
+
Ur > 0 ? /* @__PURE__ */ n(
|
|
2569
2572
|
Ve,
|
|
2570
2573
|
{
|
|
2571
2574
|
type: "button",
|
|
@@ -2574,10 +2577,10 @@ function Sc({
|
|
|
2574
2577
|
className: `ds:shrink-0 ${ys}`,
|
|
2575
2578
|
startIcon: /* @__PURE__ */ n(_o, {}),
|
|
2576
2579
|
"aria-label": o(L("toolbar.resetFiltersCount"), {
|
|
2577
|
-
count:
|
|
2580
|
+
count: Ur
|
|
2578
2581
|
}),
|
|
2579
2582
|
onClick: Wa,
|
|
2580
|
-
children: `${o(L("toolbar.resetFilters"))} · ${
|
|
2583
|
+
children: `${o(L("toolbar.resetFilters"))} · ${Ur}`
|
|
2581
2584
|
}
|
|
2582
2585
|
) : null,
|
|
2583
2586
|
/* @__PURE__ */ I("span", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:flex-nowrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
@@ -2647,7 +2650,7 @@ function Sc({
|
|
|
2647
2650
|
] })
|
|
2648
2651
|
] })
|
|
2649
2652
|
] }),
|
|
2650
|
-
/* @__PURE__ */ I(Is, { size: "sm", "aria-label":
|
|
2653
|
+
/* @__PURE__ */ I(Is, { size: "sm", "aria-label": ot("calendar.ariaLabel"), children: [
|
|
2651
2654
|
/* @__PURE__ */ n(
|
|
2652
2655
|
Ve,
|
|
2653
2656
|
{
|
|
@@ -2659,7 +2662,7 @@ function Sc({
|
|
|
2659
2662
|
var e;
|
|
2660
2663
|
return (e = et.current) == null ? void 0 : e.today();
|
|
2661
2664
|
},
|
|
2662
|
-
children:
|
|
2665
|
+
children: ot("calendar.today")
|
|
2663
2666
|
}
|
|
2664
2667
|
),
|
|
2665
2668
|
/* @__PURE__ */ n(
|
|
@@ -2671,8 +2674,8 @@ function Sc({
|
|
|
2671
2674
|
background: "surface",
|
|
2672
2675
|
icon: /* @__PURE__ */ n($o, {}),
|
|
2673
2676
|
flipIconInRtl: !0,
|
|
2674
|
-
"aria-label":
|
|
2675
|
-
tooltip:
|
|
2677
|
+
"aria-label": ot("calendar.previousPeriod"),
|
|
2678
|
+
tooltip: ot("calendar.previousPeriod"),
|
|
2676
2679
|
onClick: () => {
|
|
2677
2680
|
var e;
|
|
2678
2681
|
return (e = et.current) == null ? void 0 : e.prev();
|
|
@@ -2688,8 +2691,8 @@ function Sc({
|
|
|
2688
2691
|
background: "surface",
|
|
2689
2692
|
icon: /* @__PURE__ */ n(Ro, {}),
|
|
2690
2693
|
flipIconInRtl: !0,
|
|
2691
|
-
"aria-label":
|
|
2692
|
-
tooltip:
|
|
2694
|
+
"aria-label": ot("calendar.nextPeriod"),
|
|
2695
|
+
tooltip: ot("calendar.nextPeriod"),
|
|
2693
2696
|
onClick: () => {
|
|
2694
2697
|
var e;
|
|
2695
2698
|
return (e = et.current) == null ? void 0 : e.next();
|
|
@@ -2700,10 +2703,10 @@ function Sc({
|
|
|
2700
2703
|
] })
|
|
2701
2704
|
]
|
|
2702
2705
|
}
|
|
2703
|
-
), Ft = M ? f.metaById[M.event.id] : void 0,
|
|
2704
|
-
(e) => e.id === ((
|
|
2706
|
+
), Ft = M ? f.metaById[M.event.id] : void 0, st = M ? r.find((e) => e.event.id === M.event.id) : void 0, Mr = ((fa = st == null ? void 0 : st.careLink) == null ? void 0 : fa.kind) === "plan" ? f.carePlanById(st.careLink.planId) : void 0, qr = Pr(M == null ? void 0 : M.event.patientId, f).record, Kr = f.chairs.find(
|
|
2707
|
+
(e) => e.id === ((st == null ? void 0 : st.chairId) ?? (Ft == null ? void 0 : Ft.chairId))
|
|
2705
2708
|
), Sr = f.operators.find(
|
|
2706
|
-
(e) => e.id === ((
|
|
2709
|
+
(e) => e.id === ((st == null ? void 0 : st.operatorId) ?? (Ft == null ? void 0 : Ft.operatorId) ?? String((M == null ? void 0 : M.event.operatorId) ?? ""))
|
|
2707
2710
|
), Qe = A ? r.find((e) => e.event.id === A.event.id) : void 0, Gr = Pr(A == null ? void 0 : A.event.patientId, f), Ba = A ? zt(A.event) : !1, Vr = Ta(Qe) || Ba, ma = A ? Gn(A.event, Vr, ke) && wn : !1, jr = Gr.assigned ? Oe && A ? (
|
|
2708
2711
|
/* The dialog sits over the grid: the same mask as the card. */
|
|
2709
2712
|
ya((Qe == null ? void 0 : Qe.event) ?? A.event, !0)
|
|
@@ -2722,46 +2725,46 @@ function Sc({
|
|
|
2722
2725
|
if (A) {
|
|
2723
2726
|
const e = Qe == null ? void 0 : Qe.event.end, c = e ? new Date(
|
|
2724
2727
|
new Date(e).getTime() + (A.newStart.getTime() - A.oldStart.getTime())
|
|
2725
|
-
) : void 0, h = z === "operator" ? Qe == null ? void 0 : Qe.operatorId : Qe == null ? void 0 : Qe.chairId, T = A.newResourceId ?? A.event.resourceId, C = !!(z !== "none" && T && T !== h), W = (
|
|
2728
|
+
) : void 0, h = z === "operator" ? Qe == null ? void 0 : Qe.operatorId : Qe == null ? void 0 : Qe.chairId, T = A.newResourceId ?? A.event.resourceId, C = !!(z !== "none" && T && T !== h), W = (G) => {
|
|
2726
2729
|
var ye;
|
|
2727
2730
|
return ((ye = (z === "operator" ? f.operators : f.chairs).find(
|
|
2728
|
-
(R) => R.id ===
|
|
2731
|
+
(R) => R.id === G
|
|
2729
2732
|
)) == null ? void 0 : ye.title) ?? null;
|
|
2730
2733
|
}, E = !!A.event.allDay;
|
|
2731
2734
|
Yr = [
|
|
2732
2735
|
gr(p, A.oldStart),
|
|
2733
2736
|
E ? null : _r(p, A.oldStart, e),
|
|
2734
2737
|
C ? W(h) : null
|
|
2735
|
-
].filter((
|
|
2738
|
+
].filter((G) => !!G).join(" · "), Xr = [
|
|
2736
2739
|
gr(p, A.newStart),
|
|
2737
2740
|
E ? null : _r(p, A.newStart, c),
|
|
2738
2741
|
C ? W(T) : null
|
|
2739
|
-
].filter((
|
|
2742
|
+
].filter((G) => !!G).join(" · ");
|
|
2740
2743
|
}
|
|
2741
2744
|
return /* @__PURE__ */ I(
|
|
2742
2745
|
"div",
|
|
2743
2746
|
{
|
|
2744
|
-
ref:
|
|
2747
|
+
ref: lt,
|
|
2745
2748
|
className: `ds:flex ds:min-h-full ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-lg)] ${Tc}`,
|
|
2746
2749
|
children: [
|
|
2747
|
-
|
|
2750
|
+
Un ? /* @__PURE__ */ n(cc, { archive: Un }) : null,
|
|
2748
2751
|
/* @__PURE__ */ n(
|
|
2749
2752
|
ao,
|
|
2750
2753
|
{
|
|
2751
2754
|
prompts: Cn,
|
|
2752
2755
|
restoreFocus: () => {
|
|
2753
2756
|
var e;
|
|
2754
|
-
return (e =
|
|
2757
|
+
return (e = dt.current) == null ? void 0 : e.focus();
|
|
2755
2758
|
}
|
|
2756
2759
|
}
|
|
2757
2760
|
),
|
|
2758
|
-
ee && On.length > 0 && (
|
|
2761
|
+
ee && On.length > 0 && (Z || !nn) ? /* @__PURE__ */ I(
|
|
2759
2762
|
Tt,
|
|
2760
2763
|
{
|
|
2761
2764
|
modal: !0,
|
|
2762
2765
|
open: !0,
|
|
2763
2766
|
onOpenChange: (e) => {
|
|
2764
|
-
e ||
|
|
2767
|
+
e || ct(null);
|
|
2765
2768
|
},
|
|
2766
2769
|
children: [
|
|
2767
2770
|
/* @__PURE__ */ n(Tt.Anchor, { virtualRef: { current: ee.el } }),
|
|
@@ -2808,7 +2811,7 @@ function Sc({
|
|
|
2808
2811
|
(C) => C.id === e.operatorId
|
|
2809
2812
|
)) == null ? void 0 : T.title
|
|
2810
2813
|
] }),
|
|
2811
|
-
|
|
2814
|
+
Z ? null : /* @__PURE__ */ n(
|
|
2812
2815
|
Ve,
|
|
2813
2816
|
{
|
|
2814
2817
|
intent: "primary",
|
|
@@ -2841,7 +2844,7 @@ function Sc({
|
|
|
2841
2844
|
/* @__PURE__ */ n(
|
|
2842
2845
|
"div",
|
|
2843
2846
|
{
|
|
2844
|
-
ref:
|
|
2847
|
+
ref: dt,
|
|
2845
2848
|
tabIndex: -1,
|
|
2846
2849
|
className: "ds:@container/calendar-nav ds:sticky ds:top-0 ds:z-20 ds:min-w-0 ds:print:hidden",
|
|
2847
2850
|
children: pa
|
|
@@ -2850,9 +2853,9 @@ function Sc({
|
|
|
2850
2853
|
Yn && Yn.length > 0 ? /* @__PURE__ */ n(
|
|
2851
2854
|
dc,
|
|
2852
2855
|
{
|
|
2853
|
-
onRetry:
|
|
2856
|
+
onRetry: H ? () => {
|
|
2854
2857
|
var e;
|
|
2855
|
-
(e =
|
|
2858
|
+
(e = dt.current) == null || e.focus(), H();
|
|
2856
2859
|
} : void 0
|
|
2857
2860
|
}
|
|
2858
2861
|
) : null,
|
|
@@ -2861,8 +2864,8 @@ function Sc({
|
|
|
2861
2864
|
{
|
|
2862
2865
|
id: wt,
|
|
2863
2866
|
ref: et,
|
|
2864
|
-
onBackgroundEventClick:
|
|
2865
|
-
Q && e.id.startsWith("avail-") && (Le(null),
|
|
2867
|
+
onBackgroundEventClick: rt ? (e, c) => {
|
|
2868
|
+
Q && e.id.startsWith("avail-") && (Le(null), ct({
|
|
2866
2869
|
event: e,
|
|
2867
2870
|
el: c.el,
|
|
2868
2871
|
source: Q
|
|
@@ -2880,7 +2883,7 @@ function Sc({
|
|
|
2880
2883
|
verticalResourceLabels: we === "Week" && S.orientation === "vertical",
|
|
2881
2884
|
resourceAreaHeader: z === "operator" ? "operators" : "chairs",
|
|
2882
2885
|
resourceAreaWidth: "14%",
|
|
2883
|
-
initialDate:
|
|
2886
|
+
initialDate: Hn,
|
|
2884
2887
|
locale: p,
|
|
2885
2888
|
editable: !It,
|
|
2886
2889
|
privacyMode: Oe,
|
|
@@ -2909,17 +2912,17 @@ function Sc({
|
|
|
2909
2912
|
stickyHeaderDates: !0,
|
|
2910
2913
|
height: "auto",
|
|
2911
2914
|
onEventClick: u,
|
|
2912
|
-
onEventMouseEnter:
|
|
2913
|
-
onEventMouseLeave:
|
|
2914
|
-
onEventDragStart:
|
|
2915
|
-
onEventResizeStart:
|
|
2915
|
+
onEventMouseEnter: U,
|
|
2916
|
+
onEventMouseLeave: ae,
|
|
2917
|
+
onEventDragStart: ae,
|
|
2918
|
+
onEventResizeStart: ae,
|
|
2916
2919
|
onEventDrop: tr,
|
|
2917
2920
|
onEventResize: Ea,
|
|
2918
2921
|
onDateClick: $r,
|
|
2919
|
-
selectable: !
|
|
2922
|
+
selectable: !Z,
|
|
2920
2923
|
unselectAuto: !1,
|
|
2921
2924
|
onDateSelect: xa,
|
|
2922
|
-
availabilityMode:
|
|
2925
|
+
availabilityMode: rt,
|
|
2923
2926
|
onNavLinkDayClick: de ? hr : void 0,
|
|
2924
2927
|
onDatesSet: Fe
|
|
2925
2928
|
},
|
|
@@ -2931,10 +2934,10 @@ function Sc({
|
|
|
2931
2934
|
/* @__PURE__ */ n(
|
|
2932
2935
|
yc,
|
|
2933
2936
|
{
|
|
2934
|
-
sections:
|
|
2937
|
+
sections: at,
|
|
2935
2938
|
rangeTitle: gr(p, yn),
|
|
2936
2939
|
axisKind: z,
|
|
2937
|
-
visibleChairIds:
|
|
2940
|
+
visibleChairIds: Ht,
|
|
2938
2941
|
visibleOperatorIds: Mt,
|
|
2939
2942
|
privacy: Oe,
|
|
2940
2943
|
locale: p
|
|
@@ -2985,7 +2988,7 @@ function Sc({
|
|
|
2985
2988
|
{
|
|
2986
2989
|
name: M.event.title,
|
|
2987
2990
|
avatarSrc: qr == null ? void 0 : qr.avatarSrc,
|
|
2988
|
-
time: M.event.allDay ?
|
|
2991
|
+
time: M.event.allDay ? ot("calendar.allDay") : _r(
|
|
2989
2992
|
p,
|
|
2990
2993
|
new Date(M.event.start),
|
|
2991
2994
|
new Date(M.event.end ?? M.event.start)
|
|
@@ -3009,13 +3012,13 @@ function Sc({
|
|
|
3009
3012
|
value: Sr.title
|
|
3010
3013
|
}
|
|
3011
3014
|
] : [],
|
|
3012
|
-
...
|
|
3015
|
+
...st != null && st.careLink ? [
|
|
3013
3016
|
{
|
|
3014
3017
|
label: o(D("details.treatments")),
|
|
3015
|
-
value:
|
|
3018
|
+
value: st.careLink.kind === "plan" && Mr ? o(D("details.planLine"), {
|
|
3016
3019
|
number: Mr.number,
|
|
3017
3020
|
name: Mr.name
|
|
3018
|
-
}) : `${o(D("details.priceListLine"))} · ${f.careEntriesFromLink(
|
|
3021
|
+
}) : `${o(D("details.priceListLine"))} · ${f.careEntriesFromLink(st.careLink).map((e) => e.name).join(", ")}`
|
|
3019
3022
|
}
|
|
3020
3023
|
] : []
|
|
3021
3024
|
],
|
|
@@ -3092,7 +3095,7 @@ function Sc({
|
|
|
3092
3095
|
)
|
|
3093
3096
|
] }),
|
|
3094
3097
|
Vr ? /* @__PURE__ */ n(
|
|
3095
|
-
|
|
3098
|
+
Hs,
|
|
3096
3099
|
{
|
|
3097
3100
|
label: o(D("moveConfirm.scope")),
|
|
3098
3101
|
value: ke,
|
|
@@ -3255,7 +3258,7 @@ function sa({
|
|
|
3255
3258
|
}),
|
|
3256
3259
|
[r, s, i, v, N, k, p]
|
|
3257
3260
|
);
|
|
3258
|
-
return /* @__PURE__ */ n(
|
|
3261
|
+
return /* @__PURE__ */ n(Us, { value: l, children: /* @__PURE__ */ n(Ws, { value: g ?? null, children: b }) });
|
|
3259
3262
|
}
|
|
3260
3263
|
function Oc({
|
|
3261
3264
|
details: r,
|
|
@@ -3328,26 +3331,26 @@ function Pc({
|
|
|
3328
3331
|
selectedRow: l,
|
|
3329
3332
|
patientRef: P,
|
|
3330
3333
|
onOpenSheet: le,
|
|
3331
|
-
onAnnounce:
|
|
3334
|
+
onAnnounce: j,
|
|
3332
3335
|
editorMode: xe,
|
|
3333
3336
|
onEditorModeChange: se,
|
|
3334
|
-
editorSeed:
|
|
3337
|
+
editorSeed: H,
|
|
3335
3338
|
slotPatch: Be,
|
|
3336
3339
|
loadAppointmentEditor: Ne,
|
|
3337
3340
|
loadAppointmentDetails: O,
|
|
3338
3341
|
waitingList: ve,
|
|
3339
3342
|
waitingSeedTick: S,
|
|
3340
3343
|
findSlotsSeed: ie,
|
|
3341
|
-
history:
|
|
3344
|
+
history: J,
|
|
3342
3345
|
signRequests: x,
|
|
3343
|
-
mapsLink:
|
|
3346
|
+
mapsLink: Z,
|
|
3344
3347
|
defaultDurationMin: he,
|
|
3345
3348
|
noteUnrecordedEdits: Nt,
|
|
3346
|
-
recurrence:
|
|
3349
|
+
recurrence: Y,
|
|
3347
3350
|
consentsForCares: K,
|
|
3348
|
-
medicalDevicesForCares:
|
|
3351
|
+
medicalDevicesForCares: re,
|
|
3349
3352
|
sameDayReminders: ue,
|
|
3350
|
-
signatureCredits:
|
|
3353
|
+
signatureCredits: it,
|
|
3351
3354
|
createPatientFromBooking: Ie,
|
|
3352
3355
|
createPatient: je,
|
|
3353
3356
|
defaultReminders: Oe,
|
|
@@ -3368,34 +3371,34 @@ function Pc({
|
|
|
3368
3371
|
onStatusChange: jt,
|
|
3369
3372
|
onDescriptionChange: vn,
|
|
3370
3373
|
onBookSlotFromFinder: tn,
|
|
3371
|
-
onRevealAppointment:
|
|
3374
|
+
onRevealAppointment: Ue,
|
|
3372
3375
|
toolSourceRef: gn,
|
|
3373
3376
|
onDetailsDocked: sr,
|
|
3374
|
-
onRequestSignature:
|
|
3377
|
+
onRequestSignature: He,
|
|
3375
3378
|
onRequestSignatureOnDevice: kn,
|
|
3376
3379
|
onOpenPatient: St,
|
|
3377
3380
|
onOpenScheduler: xt,
|
|
3378
3381
|
onSaveAndReturn: An,
|
|
3379
3382
|
onWaitingListFilterUsed: zn,
|
|
3380
|
-
onWaitingListAdvancedFilterToggled:
|
|
3383
|
+
onWaitingListAdvancedFilterToggled: Un,
|
|
3381
3384
|
onRemoveWaiting: Cn,
|
|
3382
3385
|
onOpenEntryForm: o,
|
|
3383
3386
|
entryForm: kt,
|
|
3384
3387
|
onSaveEntry: f,
|
|
3385
|
-
onCancelEntry:
|
|
3388
|
+
onCancelEntry: ot,
|
|
3386
3389
|
onShowAvailability: Wn,
|
|
3387
3390
|
onFinderSearchRange: D,
|
|
3388
3391
|
gridAxis: L,
|
|
3389
3392
|
bookings: et,
|
|
3390
3393
|
bookingQueue: ee,
|
|
3391
|
-
backlogFilters:
|
|
3394
|
+
backlogFilters: ct,
|
|
3392
3395
|
onBacklogFiltersChange: On,
|
|
3393
3396
|
waitingListState: At,
|
|
3394
3397
|
stateSinceByEventId: nn,
|
|
3395
3398
|
reviewOnlyEventIds: Wt,
|
|
3396
|
-
bookingsSeedTick:
|
|
3399
|
+
bookingsSeedTick: lt,
|
|
3397
3400
|
bookingRequest: Yt,
|
|
3398
|
-
onCompleteBooking:
|
|
3401
|
+
onCompleteBooking: dt,
|
|
3399
3402
|
onPlaceWaiting: Xt,
|
|
3400
3403
|
onCreateTask: Ir,
|
|
3401
3404
|
onUpdateTask: ir,
|
|
@@ -3410,40 +3413,40 @@ function Pc({
|
|
|
3410
3413
|
editorGuard: cr
|
|
3411
3414
|
}) {
|
|
3412
3415
|
var Qn, Ge, er, ze;
|
|
3413
|
-
const { t:
|
|
3416
|
+
const { t: X } = gt("ui"), Ae = Cr(), { openTool: Pe } = Na(), qe = Gs(j), Ke = xe === "create" ? `create-${H.tick}` : `${(l == null ? void 0 : l.event.id) ?? ""}:${P.id}`, [Xe, It] = _({}), rn = m(
|
|
3414
3417
|
(u) => {
|
|
3415
3418
|
It(
|
|
3416
|
-
(
|
|
3419
|
+
(U) => U.key === Ke && U.id === u ? U : { key: Ke, id: u }
|
|
3417
3420
|
);
|
|
3418
3421
|
},
|
|
3419
3422
|
[Ke]
|
|
3420
|
-
), We = Xe.key === Ke ? Xe.id : xe === "create" ? (Qn =
|
|
3421
|
-
|
|
3423
|
+
), We = Xe.key === Ke ? Xe.id : xe === "create" ? (Qn = H.prefill) == null ? void 0 : Qn.patientId : P.id || void 0, tt = v.has(y.notes) && !!We, [nt, Hn] = _({ tick: 0 }), an = $(i);
|
|
3424
|
+
V(() => {
|
|
3422
3425
|
const u = an.current === y.notes && i !== y.notes;
|
|
3423
|
-
an.current = i,
|
|
3424
|
-
(
|
|
3426
|
+
an.current = i, Hn(
|
|
3427
|
+
(U) => U.patientId && (u || U.patientId !== We) ? { tick: U.tick } : U
|
|
3425
3428
|
);
|
|
3426
3429
|
}, [i, We]);
|
|
3427
3430
|
const sn = $(0);
|
|
3428
|
-
|
|
3431
|
+
V(() => () => cancelAnimationFrame(sn.current), []);
|
|
3429
3432
|
const Bn = $(0);
|
|
3430
|
-
|
|
3433
|
+
V(() => () => cancelAnimationFrame(Bn.current), []);
|
|
3431
3434
|
const ut = m(() => {
|
|
3432
3435
|
k(), cancelAnimationFrame(Bn.current), Bn.current = requestAnimationFrame(() => {
|
|
3433
|
-
var
|
|
3436
|
+
var U, ae;
|
|
3434
3437
|
const u = document.activeElement;
|
|
3435
|
-
u && u !== document.body && u.isConnected || (
|
|
3438
|
+
u && u !== document.body && u.isConnected || (ae = (U = s.current) == null ? void 0 : U.querySelector("section[data-active-tool]")) == null || ae.focus();
|
|
3436
3439
|
});
|
|
3437
3440
|
}, [k, s]), lr = $(y.appointments), Mn = m(
|
|
3438
|
-
(u,
|
|
3439
|
-
!
|
|
3441
|
+
(u, U) => {
|
|
3442
|
+
!tt || u !== We || (Hn((ae) => ({
|
|
3440
3443
|
patientId: u,
|
|
3441
|
-
noteId:
|
|
3442
|
-
tick:
|
|
3443
|
-
})), gn.current = "appointment_panel", Pe(y.notes), gn.current = null,
|
|
3444
|
+
noteId: U,
|
|
3445
|
+
tick: ae.tick + 1
|
|
3446
|
+
})), gn.current = "appointment_panel", Pe(y.notes), gn.current = null, j(X("calendarWorkspace.rail.notes")));
|
|
3444
3447
|
},
|
|
3445
|
-
[
|
|
3446
|
-
), qn = B(() => Gi(b), [b]), In =
|
|
3448
|
+
[tt, We, Pe, j, X, gn]
|
|
3449
|
+
), qn = B(() => Gi(b), [b]), In = X(
|
|
3447
3450
|
"calendarWorkspace.details.patientNotLoaded"
|
|
3448
3451
|
), bn = P.id, Pn = N && l ? ya(l.event, !0) : Va(
|
|
3449
3452
|
P,
|
|
@@ -3458,21 +3461,21 @@ function Pc({
|
|
|
3458
3461
|
devicesByCare: Zt,
|
|
3459
3462
|
unsignedRequiredDocs: yn,
|
|
3460
3463
|
consentsForCares: K,
|
|
3461
|
-
medicalDevicesForCares:
|
|
3464
|
+
medicalDevicesForCares: re,
|
|
3462
3465
|
sameDayReminders: ue,
|
|
3463
|
-
signatureCredits:
|
|
3466
|
+
signatureCredits: it,
|
|
3464
3467
|
createPatientFromBooking: Ie,
|
|
3465
3468
|
createPatient: je,
|
|
3466
3469
|
rows: b,
|
|
3467
3470
|
submitOnEnter: !0,
|
|
3468
3471
|
reminderChannels: xc,
|
|
3469
|
-
recurrenceExtras: (
|
|
3470
|
-
recurrenceSkipClosedDays: (
|
|
3471
|
-
recurrenceSkipClosedDaysDefault:
|
|
3472
|
+
recurrenceExtras: (Y == null ? void 0 : Y.endDate) !== !1,
|
|
3473
|
+
recurrenceSkipClosedDays: (Y == null ? void 0 : Y.skipClosedDays) !== !1,
|
|
3474
|
+
recurrenceSkipClosedDaysDefault: Y == null ? void 0 : Y.skipClosedDaysDefault,
|
|
3472
3475
|
/* The Custom rule (HTP-4261, PRD 03 rule D1): every N days, weeks,
|
|
3473
3476
|
months or years, chosen weekdays, the Nth or last weekday. On unless
|
|
3474
3477
|
the host cannot save `interval` and `byDay`. */
|
|
3475
|
-
recurrenceCustom: (
|
|
3478
|
+
recurrenceCustom: (Y == null ? void 0 : Y.custom) !== !1,
|
|
3476
3479
|
/* The platform modal's own rules: an away operator warns and saves,
|
|
3477
3480
|
reminders and the first-visit question hang off the patient,
|
|
3478
3481
|
price-list rows carry phases and lock once invoiced, and a
|
|
@@ -3495,9 +3498,9 @@ function Pc({
|
|
|
3495
3498
|
Zt,
|
|
3496
3499
|
yn,
|
|
3497
3500
|
K,
|
|
3498
|
-
|
|
3501
|
+
re,
|
|
3499
3502
|
ue,
|
|
3500
|
-
|
|
3503
|
+
it,
|
|
3501
3504
|
Ie,
|
|
3502
3505
|
je,
|
|
3503
3506
|
b,
|
|
@@ -3516,7 +3519,7 @@ function Pc({
|
|
|
3516
3519
|
/* B5: the active operators plus THIS appointment's disabled one,
|
|
3517
3520
|
never every disabled operator. */
|
|
3518
3521
|
operatorOptions: l != null && l.operatorId && Ae.inactiveOperatorIds.includes(l.operatorId) ? Ae.operators.filter(
|
|
3519
|
-
(
|
|
3522
|
+
(U) => U.id === l.operatorId || !Ae.inactiveOperatorIds.includes(U.id)
|
|
3520
3523
|
) : void 0
|
|
3521
3524
|
};
|
|
3522
3525
|
},
|
|
@@ -3527,11 +3530,11 @@ function Pc({
|
|
|
3527
3530
|
return l ? {
|
|
3528
3531
|
paidOnlineAmount: Ae.paidOnline[l.event.id],
|
|
3529
3532
|
toCollectAmount: (u = P.record) == null ? void 0 : u.unpaidAmount,
|
|
3530
|
-
mapsLink:
|
|
3533
|
+
mapsLink: Z,
|
|
3531
3534
|
bookingPhone: Ae.bookingPhones[l.event.id]
|
|
3532
3535
|
} : void 0;
|
|
3533
3536
|
},
|
|
3534
|
-
[l, P,
|
|
3537
|
+
[l, P, Z, Ae]
|
|
3535
3538
|
), dr = B(
|
|
3536
3539
|
() => ({
|
|
3537
3540
|
devicesByCare: Zt,
|
|
@@ -3554,16 +3557,16 @@ function Pc({
|
|
|
3554
3557
|
Ae.operatorGroups,
|
|
3555
3558
|
_e == null ? void 0 : _e.practice,
|
|
3556
3559
|
_e == null ? void 0 : _e.operators,
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3560
|
+
Y == null ? void 0 : Y.endDate,
|
|
3561
|
+
Y == null ? void 0 : Y.custom,
|
|
3562
|
+
Y == null ? void 0 : Y.skipClosedDays,
|
|
3563
|
+
Y == null ? void 0 : Y.skipClosedDaysDefault
|
|
3561
3564
|
]
|
|
3562
3565
|
), ur = B(
|
|
3563
3566
|
() => ({
|
|
3564
3567
|
id: y.appointments,
|
|
3565
|
-
label:
|
|
3566
|
-
icon: /* @__PURE__ */ n(
|
|
3568
|
+
label: X("calendarWorkspace.inc1.rail.appointments"),
|
|
3569
|
+
icon: /* @__PURE__ */ n(Uo, { "aria-hidden": "true" }),
|
|
3567
3570
|
/* fill: the timeline owns its scroll (day anchoring + edge loads). */
|
|
3568
3571
|
fill: !0,
|
|
3569
3572
|
panel: /* @__PURE__ */ n(
|
|
@@ -3573,59 +3576,59 @@ function Pc({
|
|
|
3573
3576
|
locale: p,
|
|
3574
3577
|
privacy: N,
|
|
3575
3578
|
stateSinceByEventId: nn,
|
|
3576
|
-
onOpenAppointment: (u) =>
|
|
3579
|
+
onOpenAppointment: (u) => Ue(u, "appointments_panel")
|
|
3577
3580
|
}
|
|
3578
3581
|
)
|
|
3579
3582
|
}),
|
|
3580
|
-
[b, p, N, nn,
|
|
3581
|
-
), M = xe !== "create" && l !== null, Le = M && O !== void 0, A = Le && xe === "edit", bt = Q || !!(l && Wt.has(l.event.id)), [Ot, on] = _(!1), $t = M ? !!(l != null && l.event.isTask) : !!((Ge =
|
|
3583
|
+
[b, p, N, nn, Ue, X]
|
|
3584
|
+
), M = xe !== "create" && l !== null, Le = M && O !== void 0, A = Le && xe === "edit", bt = Q || !!(l && Wt.has(l.event.id)), [Ot, on] = _(!1), $t = M ? !!(l != null && l.event.isTask) : !!((Ge = H.prefill) != null && Ge.isTask) || Ot, Lt = M ? l == null ? void 0 : l.event.id : (er = H.prefill) != null && er.isTask ? (ze = H.prefill) == null ? void 0 : ze.editEventId : void 0, ge = H.prefill, Kn = B(
|
|
3582
3585
|
() => ge != null && ge.editEventId ? ge : {
|
|
3583
3586
|
...ge,
|
|
3584
3587
|
durationMin: (ge == null ? void 0 : ge.durationMin) ?? he
|
|
3585
3588
|
},
|
|
3586
3589
|
[ge, he]
|
|
3587
3590
|
), pr = !$t && N && (M ? !Le || A : !!(ge != null && ge.editEventId || ge != null && ge.patientId || ge != null && ge.bookingContact)), yt = $(null), ke = $(null), [Rt, _n] = _(null), zt = l == null ? void 0 : l.event.id;
|
|
3588
|
-
|
|
3591
|
+
V(() => {
|
|
3589
3592
|
_n(null);
|
|
3590
3593
|
}, [zt]);
|
|
3591
|
-
const [Gn, cn] = _(0),
|
|
3592
|
-
async (u,
|
|
3593
|
-
await Bt(u,
|
|
3594
|
+
const [Gn, cn] = _(0), Ut = m(
|
|
3595
|
+
async (u, U) => {
|
|
3596
|
+
await Bt(u, U), yt.current = "saved";
|
|
3594
3597
|
},
|
|
3595
3598
|
[Bt]
|
|
3596
3599
|
), yr = m(
|
|
3597
|
-
(u,
|
|
3598
|
-
yt.current = "deleted", Promise.resolve(wt(u,
|
|
3599
|
-
() => hn(
|
|
3600
|
+
(u, U) => {
|
|
3601
|
+
yt.current = "deleted", Promise.resolve(wt(u, U)).catch(
|
|
3602
|
+
() => hn(X("emptyState.error.title"))
|
|
3600
3603
|
);
|
|
3601
3604
|
},
|
|
3602
|
-
[wt,
|
|
3605
|
+
[wt, X]
|
|
3603
3606
|
), Vn = m(() => {
|
|
3604
3607
|
const u = yt.current;
|
|
3605
3608
|
if (yt.current = null, _n(null), se("details"), u === "deleted") {
|
|
3606
3609
|
qe();
|
|
3607
3610
|
return;
|
|
3608
3611
|
}
|
|
3609
|
-
u === "saved" && cn((
|
|
3610
|
-
|
|
3612
|
+
u === "saved" && cn((U) => U + 1), j(
|
|
3613
|
+
X("calendarWorkspace.details.docked", { name: Pn })
|
|
3611
3614
|
);
|
|
3612
|
-
}, [se, qe,
|
|
3615
|
+
}, [se, qe, j, Pn, X]), we = m(() => {
|
|
3613
3616
|
qe();
|
|
3614
3617
|
}, [qe]), de = m(() => {
|
|
3615
3618
|
if (!l) return;
|
|
3616
3619
|
const { event: u } = l;
|
|
3617
3620
|
if (u.hasUnassignedPatient && u.isBookedOnline)
|
|
3618
|
-
return
|
|
3621
|
+
return dt(l);
|
|
3619
3622
|
_n(null), yt.current = null, ke.current = { id: u.id, action: "edit-appointment" }, se("edit");
|
|
3620
|
-
}, [l,
|
|
3623
|
+
}, [l, dt, se]), z = !Q && (!ee || ee.canComplete === !0 && !!Ne), Nn = m(() => {
|
|
3621
3624
|
if (!l) return;
|
|
3622
3625
|
const { event: u } = l;
|
|
3623
|
-
if (u.isBookedOnline) return
|
|
3626
|
+
if (u.isBookedOnline) return dt(l, "patient");
|
|
3624
3627
|
_n(u.id), yt.current = null, ke.current = { id: u.id, action: "assign-patient" }, se("edit");
|
|
3625
|
-
}, [l,
|
|
3628
|
+
}, [l, dt, se]), $n = m(
|
|
3626
3629
|
(u) => {
|
|
3627
3630
|
var ft;
|
|
3628
|
-
const
|
|
3631
|
+
const U = P.id || ((ft = u.patient) == null ? void 0 : ft.id), ae = u.series ?? (_t.recurringDeleteScope ? {
|
|
3629
3632
|
scopes: Fs,
|
|
3630
3633
|
offersCarePlanCleanup: _t.carePlanCleanup
|
|
3631
3634
|
} : _t.carePlanCleanup ? { offersCarePlanCleanup: !0 } : void 0);
|
|
@@ -3653,26 +3656,26 @@ function Pc({
|
|
|
3653
3656
|
/* @__PURE__ */ n(
|
|
3654
3657
|
oc,
|
|
3655
3658
|
{
|
|
3656
|
-
patientId:
|
|
3659
|
+
patientId: U,
|
|
3657
3660
|
onChange: rn
|
|
3658
3661
|
}
|
|
3659
3662
|
),
|
|
3660
3663
|
/* @__PURE__ */ n(
|
|
3661
3664
|
sc,
|
|
3662
3665
|
{
|
|
3663
|
-
onOpenNotes:
|
|
3666
|
+
onOpenNotes: tt ? Mn : void 0,
|
|
3664
3667
|
details: {
|
|
3665
3668
|
...u,
|
|
3666
3669
|
history: [
|
|
3667
3670
|
...new Map(
|
|
3668
|
-
[...
|
|
3671
|
+
[...J[u.eventId] ?? [], ...u.history].map(
|
|
3669
3672
|
(F) => [F.id, F]
|
|
3670
3673
|
)
|
|
3671
3674
|
).values()
|
|
3672
3675
|
]
|
|
3673
3676
|
},
|
|
3674
|
-
patientId:
|
|
3675
|
-
notesSeam:
|
|
3677
|
+
patientId: U,
|
|
3678
|
+
notesSeam: U ? Te(U) : void 0,
|
|
3676
3679
|
readOnly: bt,
|
|
3677
3680
|
onAssignPatient: l != null && l.event.isBookedOnline && !z ? void 0 : Nn,
|
|
3678
3681
|
onOpenPatient: St,
|
|
@@ -3685,7 +3688,7 @@ function Pc({
|
|
|
3685
3688
|
onMove: () => fe("panel"),
|
|
3686
3689
|
onCopy: (F) => Ye(F, "panel"),
|
|
3687
3690
|
onDelete: async (F) => {
|
|
3688
|
-
await wt(u.eventId, F),
|
|
3691
|
+
await wt(u.eventId, F), ae != null && ae.scopes && w({
|
|
3689
3692
|
action: "delete",
|
|
3690
3693
|
scope: F.scope
|
|
3691
3694
|
}), qe(), ks(
|
|
@@ -3701,11 +3704,11 @@ function Pc({
|
|
|
3701
3704
|
}
|
|
3702
3705
|
);
|
|
3703
3706
|
},
|
|
3704
|
-
deleteConfirm:
|
|
3707
|
+
deleteConfirm: ae,
|
|
3705
3708
|
onDetailsActionUsed: ce,
|
|
3706
3709
|
onStatusChange: jt ? (F) => jt(u.eventId, F) : void 0,
|
|
3707
3710
|
onDescriptionChange: vn ? (F) => vn(u.eventId, F) : void 0,
|
|
3708
|
-
mapsLink:
|
|
3711
|
+
mapsLink: Z,
|
|
3709
3712
|
noteUnrecordedEdits: Nt,
|
|
3710
3713
|
privacy: N,
|
|
3711
3714
|
privacyTitle: l == null ? void 0 : l.event.privacyModeTitle,
|
|
@@ -3721,9 +3724,9 @@ function Pc({
|
|
|
3721
3724
|
l == null ? void 0 : l.event.privacyModeTitle,
|
|
3722
3725
|
P.id,
|
|
3723
3726
|
rn,
|
|
3724
|
-
|
|
3727
|
+
tt,
|
|
3725
3728
|
Mn,
|
|
3726
|
-
|
|
3729
|
+
J,
|
|
3727
3730
|
Te,
|
|
3728
3731
|
bt,
|
|
3729
3732
|
Nn,
|
|
@@ -3741,24 +3744,24 @@ function Pc({
|
|
|
3741
3744
|
ce,
|
|
3742
3745
|
_t,
|
|
3743
3746
|
Pe,
|
|
3744
|
-
|
|
3747
|
+
j,
|
|
3745
3748
|
s,
|
|
3746
|
-
|
|
3749
|
+
X,
|
|
3747
3750
|
jt,
|
|
3748
3751
|
vn,
|
|
3749
|
-
|
|
3752
|
+
Z,
|
|
3750
3753
|
Nt,
|
|
3751
3754
|
p
|
|
3752
3755
|
]
|
|
3753
3756
|
), pt = B(
|
|
3754
3757
|
() => {
|
|
3755
|
-
var u,
|
|
3758
|
+
var u, U, ae, ft;
|
|
3756
3759
|
return {
|
|
3757
3760
|
id: y.editor,
|
|
3758
|
-
label:
|
|
3759
|
-
$t ? Lt ? "calendarWorkspace.taskEditor.editTitle" : "calendarWorkspace.taskEditor.title" : M ? "calendarWorkspace.details.region" : (u =
|
|
3761
|
+
label: X(
|
|
3762
|
+
$t ? Lt ? "calendarWorkspace.taskEditor.editTitle" : "calendarWorkspace.taskEditor.title" : M ? "calendarWorkspace.details.region" : (u = H.prefill) != null && u.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
|
|
3760
3763
|
),
|
|
3761
|
-
icon: $t ? /* @__PURE__ */ n(
|
|
3764
|
+
icon: $t ? /* @__PURE__ */ n(Ho, { "aria-hidden": "true" }) : M ? /* @__PURE__ */ n(Ua, { "aria-hidden": "true" }) : /* @__PURE__ */ n(Mo, { "aria-hidden": "true" }),
|
|
3762
3765
|
/* fill: the panel owns its scroll so its save footer stays pinned. */
|
|
3763
3766
|
fill: !0,
|
|
3764
3767
|
panel: /* @__PURE__ */ n(
|
|
@@ -3767,17 +3770,17 @@ function Pc({
|
|
|
3767
3770
|
withheld: pr ? /* @__PURE__ */ n(
|
|
3768
3771
|
Ia,
|
|
3769
3772
|
{
|
|
3770
|
-
title:
|
|
3773
|
+
title: X(
|
|
3771
3774
|
M && !A ? "calendarWorkspace.details.region" : M || ge != null && ge.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
|
|
3772
3775
|
),
|
|
3773
|
-
icon: /* @__PURE__ */ n(
|
|
3776
|
+
icon: /* @__PURE__ */ n(Ua, { "aria-hidden": "true" }),
|
|
3774
3777
|
onTurnOff: ut
|
|
3775
3778
|
}
|
|
3776
3779
|
) : void 0,
|
|
3777
|
-
openNotes:
|
|
3780
|
+
openNotes: tt ? Mn : void 0,
|
|
3778
3781
|
editorGuard: cr,
|
|
3779
3782
|
onOpenSheet: le,
|
|
3780
|
-
onAnnounce:
|
|
3783
|
+
onAnnounce: j,
|
|
3781
3784
|
onClose: $t ? we : A ? Vn : void 0,
|
|
3782
3785
|
details: !$t && Le && l && O ? {
|
|
3783
3786
|
eventId: l.event.id,
|
|
@@ -3795,7 +3798,7 @@ function Pc({
|
|
|
3795
3798
|
{
|
|
3796
3799
|
mode: Lt ? "edit" : "create",
|
|
3797
3800
|
taskId: Lt,
|
|
3798
|
-
initialDate: !Lt && ((
|
|
3801
|
+
initialDate: !Lt && ((U = H.prefill) != null && U.isTask) ? (ae = H.prefill) == null ? void 0 : ae.date : void 0,
|
|
3799
3802
|
onCancel: we,
|
|
3800
3803
|
onSaved: we,
|
|
3801
3804
|
onDeleted: we,
|
|
@@ -3806,12 +3809,12 @@ function Pc({
|
|
|
3806
3809
|
loadTask: br,
|
|
3807
3810
|
privacy: N
|
|
3808
3811
|
},
|
|
3809
|
-
Lt ? `task-edit-${Lt}` : `task-create-${
|
|
3812
|
+
Lt ? `task-edit-${Lt}` : `task-create-${H.tick}-${Pt}`
|
|
3810
3813
|
)
|
|
3811
3814
|
) : /* @__PURE__ */ n(
|
|
3812
3815
|
io,
|
|
3813
3816
|
{
|
|
3814
|
-
eventId: M ? l == null ? void 0 : l.event.id : (ft =
|
|
3817
|
+
eventId: M ? l == null ? void 0 : l.event.id : (ft = H.prefill) == null ? void 0 : ft.editEventId,
|
|
3815
3818
|
load: Ne,
|
|
3816
3819
|
onCancel: A ? Vn : void 0,
|
|
3817
3820
|
children: (F) => {
|
|
@@ -3839,11 +3842,11 @@ function Pc({
|
|
|
3839
3842
|
capabilities: F == null ? void 0 : F.capabilities,
|
|
3840
3843
|
series: F == null ? void 0 : F.series,
|
|
3841
3844
|
onRecurringScopeChosen: w,
|
|
3842
|
-
panelTitle:
|
|
3845
|
+
panelTitle: X(
|
|
3843
3846
|
A ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.details.region"
|
|
3844
3847
|
),
|
|
3845
3848
|
returnsOnCancel: A,
|
|
3846
|
-
headerIcon: /* @__PURE__ */ n(
|
|
3849
|
+
headerIcon: /* @__PURE__ */ n(Ua, { "aria-hidden": "true" }),
|
|
3847
3850
|
identity: (
|
|
3848
3851
|
/* The platform popover's identity line: the age beside
|
|
3849
3852
|
the name, the name a link to the patient folder, and
|
|
@@ -3866,7 +3869,7 @@ function Pc({
|
|
|
3866
3869
|
patient: Fe,
|
|
3867
3870
|
locale: p,
|
|
3868
3871
|
signRequestedVia: x[Ce.event.id] ?? ((Je = Ae.metaById[Ce.event.id]) == null ? void 0 : Je.signRequestedVia),
|
|
3869
|
-
onRequestSignature:
|
|
3872
|
+
onRequestSignature: He,
|
|
3870
3873
|
onRequestSignatureOnDevice: kn && (() => kn(Ce.event.id)),
|
|
3871
3874
|
readOnly: bt,
|
|
3872
3875
|
platform: F ? {
|
|
@@ -3876,10 +3879,10 @@ function Pc({
|
|
|
3876
3879
|
}
|
|
3877
3880
|
),
|
|
3878
3881
|
history: Ao(
|
|
3879
|
-
|
|
3882
|
+
J[Ce.event.id] ?? []
|
|
3880
3883
|
),
|
|
3881
3884
|
noteUnrecordedEdits: Nt,
|
|
3882
|
-
onSave: A ?
|
|
3885
|
+
onSave: A ? Ut : Bt,
|
|
3883
3886
|
onDelete: A ? yr : wt,
|
|
3884
3887
|
onDeleteInitiated: (En) => Et(En, "editor"),
|
|
3885
3888
|
onMove: () => fe("editor"),
|
|
@@ -3899,11 +3902,11 @@ function Pc({
|
|
|
3899
3902
|
slotPatch: Be,
|
|
3900
3903
|
prefill: F ? {
|
|
3901
3904
|
...F.prefill,
|
|
3902
|
-
callToAction: ((Ze =
|
|
3903
|
-
waitingEntryId: ((pn =
|
|
3904
|
-
simpleSave: ((mn =
|
|
3905
|
-
bookingContact: ((Rn =
|
|
3906
|
-
initialFocus: (vt =
|
|
3905
|
+
callToAction: ((Ze = H.prefill) == null ? void 0 : Ze.callToAction) ?? F.prefill.callToAction,
|
|
3906
|
+
waitingEntryId: ((pn = H.prefill) == null ? void 0 : pn.waitingEntryId) ?? F.prefill.waitingEntryId,
|
|
3907
|
+
simpleSave: ((mn = H.prefill) == null ? void 0 : mn.simpleSave) ?? F.prefill.simpleSave,
|
|
3908
|
+
bookingContact: ((Rn = H.prefill) == null ? void 0 : Rn.bookingContact) ?? F.prefill.bookingContact,
|
|
3909
|
+
initialFocus: (vt = H.prefill) == null ? void 0 : vt.initialFocus
|
|
3907
3910
|
} : Kn,
|
|
3908
3911
|
capabilities: F == null ? void 0 : F.capabilities,
|
|
3909
3912
|
series: F == null ? void 0 : F.series,
|
|
@@ -3911,18 +3914,18 @@ function Pc({
|
|
|
3911
3914
|
onSave: Bt,
|
|
3912
3915
|
onDelete: wt,
|
|
3913
3916
|
onDeleteInitiated: (En) => Et(En, "editor"),
|
|
3914
|
-
readOnly: Q || !!((wn =
|
|
3915
|
-
|
|
3917
|
+
readOnly: Q || !!((wn = H.prefill) != null && wn.editEventId && Wt.has(
|
|
3918
|
+
H.prefill.editEventId
|
|
3916
3919
|
)),
|
|
3917
3920
|
locale: p,
|
|
3918
3921
|
scheduleByEntry: qn,
|
|
3919
3922
|
platform: Dn
|
|
3920
3923
|
},
|
|
3921
|
-
`create-${
|
|
3924
|
+
`create-${H.tick}`
|
|
3922
3925
|
) });
|
|
3923
3926
|
}
|
|
3924
3927
|
},
|
|
3925
|
-
M ? `${A ? "edit" : "details"}-${l == null ? void 0 : l.event.id}` : `create-${
|
|
3928
|
+
M ? `${A ? "edit" : "details"}-${l == null ? void 0 : l.event.id}` : `create-${H.tick}`
|
|
3926
3929
|
)
|
|
3927
3930
|
}
|
|
3928
3931
|
)
|
|
@@ -3937,7 +3940,7 @@ function Pc({
|
|
|
3937
3940
|
ut,
|
|
3938
3941
|
M,
|
|
3939
3942
|
Nt,
|
|
3940
|
-
|
|
3943
|
+
tt,
|
|
3941
3944
|
Mn,
|
|
3942
3945
|
rn,
|
|
3943
3946
|
Le,
|
|
@@ -3945,7 +3948,7 @@ function Pc({
|
|
|
3945
3948
|
Gn,
|
|
3946
3949
|
O,
|
|
3947
3950
|
Vn,
|
|
3948
|
-
|
|
3951
|
+
Ut,
|
|
3949
3952
|
yr,
|
|
3950
3953
|
$n,
|
|
3951
3954
|
bt,
|
|
@@ -3956,26 +3959,26 @@ function Pc({
|
|
|
3956
3959
|
l,
|
|
3957
3960
|
Rt,
|
|
3958
3961
|
P,
|
|
3959
|
-
|
|
3962
|
+
H,
|
|
3960
3963
|
le,
|
|
3961
|
-
|
|
3964
|
+
j,
|
|
3962
3965
|
Bt,
|
|
3963
3966
|
wt,
|
|
3964
3967
|
w,
|
|
3965
3968
|
fe,
|
|
3966
3969
|
Ye,
|
|
3967
|
-
|
|
3970
|
+
He,
|
|
3968
3971
|
kn,
|
|
3969
3972
|
St,
|
|
3970
3973
|
x,
|
|
3971
|
-
|
|
3974
|
+
J,
|
|
3972
3975
|
Q,
|
|
3973
3976
|
Tn,
|
|
3974
3977
|
_t,
|
|
3975
3978
|
Dn,
|
|
3976
3979
|
p,
|
|
3977
3980
|
qn,
|
|
3978
|
-
|
|
3981
|
+
X,
|
|
3979
3982
|
$t,
|
|
3980
3983
|
Lt,
|
|
3981
3984
|
Pt,
|
|
@@ -3988,13 +3991,13 @@ function Pc({
|
|
|
3988
3991
|
N,
|
|
3989
3992
|
cr
|
|
3990
3993
|
]
|
|
3991
|
-
), [
|
|
3992
|
-
|
|
3994
|
+
), [rt, ln] = _({ tick: 0 }), jn = Yt.id !== void 0 && et.some((u) => u.event.id === Yt.id);
|
|
3995
|
+
V(() => {
|
|
3993
3996
|
if (i !== y.bookings) {
|
|
3994
3997
|
ln((u) => u.id ? { tick: u.tick } : u);
|
|
3995
3998
|
return;
|
|
3996
3999
|
}
|
|
3997
|
-
if (!(!jn ||
|
|
4000
|
+
if (!(!jn || rt.tick === Yt.tick))
|
|
3998
4001
|
return ks(
|
|
3999
4002
|
() => {
|
|
4000
4003
|
var u;
|
|
@@ -4008,16 +4011,16 @@ function Pc({
|
|
|
4008
4011
|
i,
|
|
4009
4012
|
jn,
|
|
4010
4013
|
Yt,
|
|
4011
|
-
|
|
4014
|
+
rt.tick,
|
|
4012
4015
|
s
|
|
4013
4016
|
]);
|
|
4014
4017
|
const mr = B(
|
|
4015
4018
|
() => ({
|
|
4016
4019
|
id: y.bookings,
|
|
4017
|
-
label:
|
|
4020
|
+
label: X("calendarWorkspace.inc1.bookings.title"),
|
|
4018
4021
|
icon: /* @__PURE__ */ n(qo, { "aria-hidden": "true" }),
|
|
4019
4022
|
badgeCount: et.length,
|
|
4020
|
-
panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce:
|
|
4023
|
+
panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: j, children: /* @__PURE__ */ n(
|
|
4021
4024
|
ko,
|
|
4022
4025
|
{
|
|
4023
4026
|
bookings: et,
|
|
@@ -4026,38 +4029,38 @@ function Pc({
|
|
|
4026
4029
|
status: ee == null ? void 0 : ee.status,
|
|
4027
4030
|
lastSeenIso: ee == null ? void 0 : ee.lastSeenIso,
|
|
4028
4031
|
createdAtById: ee == null ? void 0 : ee.createdAtById,
|
|
4029
|
-
currentBookingId:
|
|
4030
|
-
currentBookingKey:
|
|
4032
|
+
currentBookingId: rt.id,
|
|
4033
|
+
currentBookingKey: rt.tick,
|
|
4031
4034
|
onRetry: ee == null ? void 0 : ee.onRetry,
|
|
4032
|
-
onShowInCalendar: (u) =>
|
|
4035
|
+
onShowInCalendar: (u) => Ue(u, "bookings_panel"),
|
|
4033
4036
|
resourceKind: L,
|
|
4034
|
-
filters:
|
|
4037
|
+
filters: ct,
|
|
4035
4038
|
onFiltersChange: On,
|
|
4036
|
-
onComplete: z ?
|
|
4039
|
+
onComplete: z ? dt : void 0
|
|
4037
4040
|
}
|
|
4038
4041
|
) })
|
|
4039
4042
|
}),
|
|
4040
4043
|
[
|
|
4041
4044
|
et,
|
|
4042
4045
|
ee,
|
|
4043
|
-
|
|
4046
|
+
rt,
|
|
4044
4047
|
L,
|
|
4045
|
-
|
|
4048
|
+
ct,
|
|
4046
4049
|
On,
|
|
4047
4050
|
Ne,
|
|
4048
4051
|
Q,
|
|
4049
4052
|
p,
|
|
4050
4053
|
N,
|
|
4051
4054
|
le,
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4055
|
+
j,
|
|
4056
|
+
Ue,
|
|
4057
|
+
dt,
|
|
4058
|
+
X
|
|
4056
4059
|
]
|
|
4057
|
-
),
|
|
4060
|
+
), Ht = B(
|
|
4058
4061
|
() => ({
|
|
4059
4062
|
id: y.waitingList,
|
|
4060
|
-
label:
|
|
4063
|
+
label: X("calendarWorkspace.waitingList.tool"),
|
|
4061
4064
|
icon: /* @__PURE__ */ n(Ts, { "aria-hidden": "true" }),
|
|
4062
4065
|
badgeCount: ve.length,
|
|
4063
4066
|
/* fill: the panel owns its scroll (its own internal ScrollArea) so
|
|
@@ -4071,12 +4074,12 @@ function Pc({
|
|
|
4071
4074
|
/* SUB-VIEW, not a dialog: the entry form is a four-field FORM, so
|
|
4072
4075
|
it docks in the rail like every other panel and the header's
|
|
4073
4076
|
back arrow returns to the list (the History / Notes idiom). */
|
|
4074
|
-
panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce:
|
|
4077
|
+
panel: /* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: j, children: kt != null && kt.entry && N ? (
|
|
4075
4078
|
/* Editing an entry opens its patient and free text in fields. */
|
|
4076
4079
|
/* @__PURE__ */ n(
|
|
4077
4080
|
Ia,
|
|
4078
4081
|
{
|
|
4079
|
-
title:
|
|
4082
|
+
title: X("calendarWorkspace.waitingList.tool"),
|
|
4080
4083
|
icon: /* @__PURE__ */ n(Ts, { "aria-hidden": "true" }),
|
|
4081
4084
|
onTurnOff: ut
|
|
4082
4085
|
}
|
|
@@ -4098,12 +4101,12 @@ function Pc({
|
|
|
4098
4101
|
entryForm: kt,
|
|
4099
4102
|
onSaveEntry: f,
|
|
4100
4103
|
onCreatePatient: je,
|
|
4101
|
-
onCancelEntry:
|
|
4104
|
+
onCancelEntry: ot,
|
|
4102
4105
|
onOpenPatient: St,
|
|
4103
4106
|
onFilterUsed: zn,
|
|
4104
4107
|
onWhatsAppClick: (u) => ar(u.id),
|
|
4105
|
-
onAdvancedFilterToggled:
|
|
4106
|
-
onOpenAppointment: (u) =>
|
|
4108
|
+
onAdvancedFilterToggled: Un,
|
|
4109
|
+
onOpenAppointment: (u) => Ue(u, "waiting_list")
|
|
4107
4110
|
}
|
|
4108
4111
|
) })
|
|
4109
4112
|
}),
|
|
@@ -4112,42 +4115,42 @@ function Pc({
|
|
|
4112
4115
|
ut,
|
|
4113
4116
|
kt,
|
|
4114
4117
|
f,
|
|
4115
|
-
|
|
4118
|
+
ot,
|
|
4116
4119
|
je,
|
|
4117
4120
|
ve,
|
|
4118
4121
|
At,
|
|
4119
4122
|
b,
|
|
4120
4123
|
p,
|
|
4121
4124
|
le,
|
|
4122
|
-
|
|
4125
|
+
j,
|
|
4123
4126
|
Xt,
|
|
4124
4127
|
Cn,
|
|
4125
4128
|
o,
|
|
4126
|
-
|
|
4129
|
+
Ue,
|
|
4127
4130
|
St,
|
|
4128
4131
|
zn,
|
|
4129
4132
|
ar,
|
|
4130
|
-
|
|
4133
|
+
Un,
|
|
4131
4134
|
Q,
|
|
4132
|
-
|
|
4135
|
+
X
|
|
4133
4136
|
]
|
|
4134
4137
|
), Mt = B(
|
|
4135
4138
|
() => ({
|
|
4136
4139
|
id: y.settings,
|
|
4137
|
-
label:
|
|
4140
|
+
label: X("calendarWorkspace.settings.title"),
|
|
4138
4141
|
icon: /* @__PURE__ */ n(Ms, { "aria-hidden": "true" }),
|
|
4139
4142
|
panel: /* @__PURE__ */ n(co, { bridge: or })
|
|
4140
4143
|
}),
|
|
4141
|
-
[or,
|
|
4144
|
+
[or, X]
|
|
4142
4145
|
), Dr = B(
|
|
4143
4146
|
() => ({
|
|
4144
4147
|
id: y.findSlots,
|
|
4145
|
-
label:
|
|
4148
|
+
label: X("calendarWorkspace.findSlots.tool"),
|
|
4146
4149
|
icon: /* @__PURE__ */ n(Ko, { "aria-hidden": "true" }),
|
|
4147
4150
|
panel: (
|
|
4148
4151
|
/* Keyed by the seed tick so a waiting-list hand-off re-seeds a
|
|
4149
4152
|
fresh, prefilled, auto-searched panel. */
|
|
4150
|
-
/* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce:
|
|
4153
|
+
/* @__PURE__ */ n(sa, { onOpenSheet: le, onAnnounce: j, children: /* @__PURE__ */ n(
|
|
4151
4154
|
Co,
|
|
4152
4155
|
{
|
|
4153
4156
|
rows: b,
|
|
@@ -4170,28 +4173,28 @@ function Pc({
|
|
|
4170
4173
|
ie,
|
|
4171
4174
|
L,
|
|
4172
4175
|
le,
|
|
4173
|
-
|
|
4176
|
+
j,
|
|
4174
4177
|
tn,
|
|
4175
4178
|
Wn,
|
|
4176
4179
|
D,
|
|
4177
4180
|
dr,
|
|
4178
4181
|
Q,
|
|
4179
|
-
|
|
4182
|
+
X
|
|
4180
4183
|
]
|
|
4181
4184
|
), Yn = B(
|
|
4182
4185
|
() => Fn.map(
|
|
4183
|
-
({ privacy: u, hold:
|
|
4184
|
-
...
|
|
4186
|
+
({ privacy: u, hold: U, ...ae }) => N && u !== "host" ? {
|
|
4187
|
+
...ae,
|
|
4185
4188
|
header: void 0,
|
|
4186
4189
|
panel: /* @__PURE__ */ n(
|
|
4187
4190
|
Ia,
|
|
4188
4191
|
{
|
|
4189
|
-
title:
|
|
4190
|
-
icon:
|
|
4192
|
+
title: ae.label,
|
|
4193
|
+
icon: ae.icon,
|
|
4191
4194
|
onTurnOff: ut
|
|
4192
4195
|
}
|
|
4193
4196
|
)
|
|
4194
|
-
} :
|
|
4197
|
+
} : ae
|
|
4195
4198
|
),
|
|
4196
4199
|
[Fn, N, ut]
|
|
4197
4200
|
), $e = B(() => {
|
|
@@ -4200,13 +4203,13 @@ function Pc({
|
|
|
4200
4203
|
{
|
|
4201
4204
|
editor: pt.panel,
|
|
4202
4205
|
active: i === y.notes,
|
|
4203
|
-
request:
|
|
4206
|
+
request: nt.tick,
|
|
4204
4207
|
notes: We && N ? (
|
|
4205
4208
|
/* Notes are free text under the patient's name: all withheld. */
|
|
4206
4209
|
/* @__PURE__ */ n(
|
|
4207
4210
|
Ia,
|
|
4208
4211
|
{
|
|
4209
|
-
title:
|
|
4212
|
+
title: X("calendarWorkspace.rail.notes"),
|
|
4210
4213
|
icon: /* @__PURE__ */ n(Ns, { "aria-hidden": "true" }),
|
|
4211
4214
|
onTurnOff: ut
|
|
4212
4215
|
}
|
|
@@ -4217,46 +4220,50 @@ function Pc({
|
|
|
4217
4220
|
patientId: We,
|
|
4218
4221
|
editable: !bt,
|
|
4219
4222
|
seam: Te(We),
|
|
4220
|
-
currentNoteId:
|
|
4221
|
-
currentNoteKey:
|
|
4223
|
+
currentNoteId: nt.patientId === We ? nt.noteId : void 0,
|
|
4224
|
+
currentNoteKey: nt.tick
|
|
4222
4225
|
}
|
|
4223
4226
|
) : null
|
|
4224
4227
|
}
|
|
4225
|
-
) : pt.panel,
|
|
4228
|
+
) : pt.panel, U = {
|
|
4226
4229
|
[y.appointments]: ur,
|
|
4227
4230
|
[y.editor]: { ...pt, panel: u },
|
|
4231
|
+
/* Notes keeps its place in the strip with no patient in hand: it is
|
|
4232
|
+
disabled and says why, so the icon never appears on a pick. */
|
|
4228
4233
|
[y.notes]: {
|
|
4229
4234
|
id: y.notes,
|
|
4230
|
-
label:
|
|
4235
|
+
label: X("calendarWorkspace.rail.notes"),
|
|
4231
4236
|
icon: /* @__PURE__ */ n(Ns, { "aria-hidden": "true" }),
|
|
4232
4237
|
fill: !0,
|
|
4238
|
+
disabled: !tt,
|
|
4239
|
+
disabledReason: tt ? void 0 : X("calendarWorkspace.rail.notesNeedsPatient"),
|
|
4233
4240
|
panel: u
|
|
4234
4241
|
},
|
|
4235
|
-
[y.waitingList]:
|
|
4242
|
+
[y.waitingList]: Ht,
|
|
4236
4243
|
[y.bookings]: mr,
|
|
4237
4244
|
[y.findSlots]: Dr,
|
|
4238
4245
|
[y.settings]: Mt
|
|
4239
4246
|
};
|
|
4240
4247
|
return [
|
|
4241
|
-
...Ps.filter(
|
|
4242
|
-
(
|
|
4243
|
-
)
|
|
4248
|
+
...Ps.filter((ae) => v.has(ae)).map(
|
|
4249
|
+
(ae) => U[ae]
|
|
4250
|
+
),
|
|
4244
4251
|
...Yn
|
|
4245
4252
|
];
|
|
4246
4253
|
}, [
|
|
4247
4254
|
N,
|
|
4248
4255
|
ut,
|
|
4249
|
-
|
|
4256
|
+
tt,
|
|
4250
4257
|
bt,
|
|
4251
4258
|
i,
|
|
4252
4259
|
We,
|
|
4253
|
-
|
|
4260
|
+
nt,
|
|
4254
4261
|
Te,
|
|
4255
|
-
|
|
4262
|
+
X,
|
|
4256
4263
|
v,
|
|
4257
4264
|
ur,
|
|
4258
4265
|
pt,
|
|
4259
|
-
|
|
4266
|
+
Ht,
|
|
4260
4267
|
mr,
|
|
4261
4268
|
Dr,
|
|
4262
4269
|
Mt,
|
|
@@ -4264,26 +4271,26 @@ function Pc({
|
|
|
4264
4271
|
]);
|
|
4265
4272
|
Qi($e);
|
|
4266
4273
|
const mt = B(
|
|
4267
|
-
() => new Set($e.map((u) => u.id)),
|
|
4274
|
+
() => new Set($e.filter((u) => !u.disabled).map((u) => u.id)),
|
|
4268
4275
|
[$e]
|
|
4269
4276
|
);
|
|
4270
4277
|
js(() => {
|
|
4271
4278
|
Me.current = mt;
|
|
4272
4279
|
}, [mt, Me]);
|
|
4273
|
-
const
|
|
4280
|
+
const at = m(
|
|
4274
4281
|
(u) => {
|
|
4275
|
-
const
|
|
4276
|
-
Pe(
|
|
4282
|
+
const U = v.has(u) ? u : y.appointments;
|
|
4283
|
+
Pe(U), j(wa(U, X));
|
|
4277
4284
|
},
|
|
4278
|
-
[v, Pe,
|
|
4285
|
+
[v, Pe, j, X]
|
|
4279
4286
|
), Xn = $(!1);
|
|
4280
|
-
|
|
4287
|
+
V(() => {
|
|
4281
4288
|
Xn.current || (Xn.current = !0, qe(!1));
|
|
4282
4289
|
}, [qe]);
|
|
4283
4290
|
const Jn = $(g), dn = $(!1);
|
|
4284
4291
|
dn.current = Fn.some(
|
|
4285
4292
|
(u) => u.hold === !0 && u.id === i
|
|
4286
|
-
),
|
|
4293
|
+
), V(() => {
|
|
4287
4294
|
const u = Jn.current;
|
|
4288
4295
|
if (u !== g && (Jn.current = g, !dn.current)) {
|
|
4289
4296
|
if (!g) {
|
|
@@ -4291,16 +4298,16 @@ function Pc({
|
|
|
4291
4298
|
return;
|
|
4292
4299
|
}
|
|
4293
4300
|
if (Wt.has(g.eventId)) {
|
|
4294
|
-
|
|
4301
|
+
at(y.bookings);
|
|
4295
4302
|
return;
|
|
4296
4303
|
}
|
|
4297
4304
|
if (!(!bn && !O)) {
|
|
4298
4305
|
if (!v.has(y.editor)) {
|
|
4299
|
-
|
|
4306
|
+
at(y.editor);
|
|
4300
4307
|
return;
|
|
4301
4308
|
}
|
|
4302
|
-
se("details"), gn.current = "selection", Pe(y.editor), gn.current = null, sr(g.eventId),
|
|
4303
|
-
|
|
4309
|
+
se("details"), gn.current = "selection", Pe(y.editor), gn.current = null, sr(g.eventId), j(
|
|
4310
|
+
X("calendarWorkspace.details.docked", { name: Pn })
|
|
4304
4311
|
);
|
|
4305
4312
|
}
|
|
4306
4313
|
}
|
|
@@ -4311,56 +4318,56 @@ function Pc({
|
|
|
4311
4318
|
Pn,
|
|
4312
4319
|
O,
|
|
4313
4320
|
v,
|
|
4314
|
-
|
|
4321
|
+
at,
|
|
4315
4322
|
Pe,
|
|
4316
4323
|
se,
|
|
4317
|
-
|
|
4318
|
-
|
|
4324
|
+
j,
|
|
4325
|
+
X,
|
|
4319
4326
|
gn,
|
|
4320
4327
|
sr
|
|
4321
4328
|
]);
|
|
4322
|
-
const Re = $(
|
|
4323
|
-
|
|
4324
|
-
Re.current !==
|
|
4325
|
-
}, [
|
|
4329
|
+
const Re = $(H.tick);
|
|
4330
|
+
V(() => {
|
|
4331
|
+
Re.current !== H.tick && (Re.current = H.tick, on(!1), se("create"), at(y.editor));
|
|
4332
|
+
}, [H.tick, se, at]);
|
|
4326
4333
|
const un = $(Pt);
|
|
4327
|
-
|
|
4328
|
-
un.current !== Pt && (un.current = Pt, on(!0), se("create"),
|
|
4329
|
-
}, [Pt, se,
|
|
4334
|
+
V(() => {
|
|
4335
|
+
un.current !== Pt && (un.current = Pt, on(!0), se("create"), at(y.editor));
|
|
4336
|
+
}, [Pt, se, at]);
|
|
4330
4337
|
const ht = $((ie == null ? void 0 : ie.tick) ?? 0);
|
|
4331
|
-
|
|
4338
|
+
V(() => {
|
|
4332
4339
|
const u = (ie == null ? void 0 : ie.tick) ?? 0;
|
|
4333
|
-
ht.current !== u && (ht.current = u,
|
|
4334
|
-
}, [ie == null ? void 0 : ie.tick,
|
|
4335
|
-
const Zn = $(
|
|
4336
|
-
|
|
4337
|
-
Zn.current !==
|
|
4338
|
-
}, [
|
|
4340
|
+
ht.current !== u && (ht.current = u, at(y.findSlots));
|
|
4341
|
+
}, [ie == null ? void 0 : ie.tick, at]);
|
|
4342
|
+
const Zn = $(lt);
|
|
4343
|
+
V(() => {
|
|
4344
|
+
Zn.current !== lt && (Zn.current = lt, at(y.bookings));
|
|
4345
|
+
}, [lt, at]);
|
|
4339
4346
|
const Tr = $(S);
|
|
4340
|
-
|
|
4341
|
-
Tr.current !== S && (Tr.current = S,
|
|
4342
|
-
}, [S,
|
|
4347
|
+
V(() => {
|
|
4348
|
+
Tr.current !== S && (Tr.current = S, at(y.waitingList));
|
|
4349
|
+
}, [S, at]), V(() => {
|
|
4343
4350
|
if (i !== y.notes) {
|
|
4344
4351
|
i && (lr.current = i);
|
|
4345
4352
|
return;
|
|
4346
4353
|
}
|
|
4347
|
-
if (
|
|
4348
|
-
const u = lr.current,
|
|
4349
|
-
Pe(
|
|
4354
|
+
if (tt) return;
|
|
4355
|
+
const u = lr.current, U = Ya(u) && v.has(u) || Jt.has(u) ? u : y.appointments;
|
|
4356
|
+
Pe(U), cancelAnimationFrame(sn.current), sn.current = requestAnimationFrame(() => {
|
|
4350
4357
|
var ft;
|
|
4351
|
-
const
|
|
4352
|
-
|
|
4358
|
+
const ae = s.current;
|
|
4359
|
+
ae != null && ae.querySelector(`[data-active-tool="${CSS.escape(U)}"]`) && ((ft = ae.querySelector(`[data-tool-id="${CSS.escape(U)}"]`)) == null || ft.focus());
|
|
4353
4360
|
});
|
|
4354
4361
|
}, [
|
|
4355
4362
|
i,
|
|
4356
|
-
|
|
4363
|
+
tt,
|
|
4357
4364
|
v,
|
|
4358
4365
|
Jt,
|
|
4359
4366
|
Pe,
|
|
4360
4367
|
s
|
|
4361
4368
|
]);
|
|
4362
4369
|
const pe = $(null);
|
|
4363
|
-
return
|
|
4370
|
+
return V(() => {
|
|
4364
4371
|
if (!i) {
|
|
4365
4372
|
pe.current = null;
|
|
4366
4373
|
return;
|
|
@@ -4395,26 +4402,26 @@ function _c({
|
|
|
4395
4402
|
practiceSettings: l,
|
|
4396
4403
|
focusAppointmentId: P,
|
|
4397
4404
|
focusBookingId: le,
|
|
4398
|
-
focusBookingKey:
|
|
4405
|
+
focusBookingKey: j,
|
|
4399
4406
|
createParameters: xe,
|
|
4400
4407
|
freeSlot: se,
|
|
4401
|
-
businessHours:
|
|
4408
|
+
businessHours: H,
|
|
4402
4409
|
availableTools: Be,
|
|
4403
4410
|
schedulerLicenseKey: Ne,
|
|
4404
4411
|
noteUnrecordedEdits: O = !1,
|
|
4405
4412
|
recurrence: ve,
|
|
4406
4413
|
consentsForCares: S,
|
|
4407
4414
|
medicalDevicesForCares: ie,
|
|
4408
|
-
sameDayReminders:
|
|
4415
|
+
sameDayReminders: J,
|
|
4409
4416
|
signatureCredits: x,
|
|
4410
|
-
createPatientFromBooking:
|
|
4417
|
+
createPatientFromBooking: Z,
|
|
4411
4418
|
createPatient: he,
|
|
4412
4419
|
proposeFirstVisit: Nt,
|
|
4413
|
-
preferences:
|
|
4420
|
+
preferences: Y,
|
|
4414
4421
|
onFinderSearchRange: K,
|
|
4415
|
-
loadAppointmentEditor:
|
|
4422
|
+
loadAppointmentEditor: re,
|
|
4416
4423
|
loadAppointmentDetails: ue,
|
|
4417
|
-
id:
|
|
4424
|
+
id: it,
|
|
4418
4425
|
backlogFilters: Ie,
|
|
4419
4426
|
onBacklogFiltersChange: je,
|
|
4420
4427
|
persistFavoritesKey: Oe,
|
|
@@ -4431,45 +4438,45 @@ function _c({
|
|
|
4431
4438
|
initialView: Vt,
|
|
4432
4439
|
onViewChange: Et
|
|
4433
4440
|
}) {
|
|
4434
|
-
const { t: oe, i18n: ar } = gt("ui"), jt = l == null ? void 0 : l.value.patientNotices, vn = jt == null ? void 0 : jt.reminderSms, tn = jt == null ? void 0 : jt.reminderEmail,
|
|
4441
|
+
const { t: oe, i18n: ar } = gt("ui"), jt = l == null ? void 0 : l.value.patientNotices, vn = jt == null ? void 0 : jt.reminderSms, tn = jt == null ? void 0 : jt.reminderEmail, Ue = B(
|
|
4435
4442
|
() => vn === void 0 && tn === void 0 ? void 0 : { sms: vn, email: tn },
|
|
4436
4443
|
[vn, tn]
|
|
4437
4444
|
), [gn, sr] = _(
|
|
4438
4445
|
zi
|
|
4439
|
-
),
|
|
4440
|
-
() =>
|
|
4446
|
+
), He = Ie ?? gn, kn = je ?? sr, St = p ?? ar.language ?? "en", [xt, An] = _(null), [zn, Un] = _(null), Cn = $(null), o = (Be ?? Ps).join("|"), kt = B(
|
|
4447
|
+
() => Ui(o.split("|")),
|
|
4441
4448
|
[o]
|
|
4442
|
-
), f = (k == null ? void 0 : k.editAppointment) === !1,
|
|
4443
|
-
() =>
|
|
4449
|
+
), f = (k == null ? void 0 : k.editAppointment) === !1, ot = B(
|
|
4450
|
+
() => Hi(w ?? Wc),
|
|
4444
4451
|
[w]
|
|
4445
|
-
), Wn =
|
|
4452
|
+
), Wn = ot.tools.some(
|
|
4446
4453
|
(t) => t.hold === !0 && t.id === xt
|
|
4447
4454
|
), D = B(
|
|
4448
|
-
() => new Set(
|
|
4449
|
-
[
|
|
4450
|
-
), L = $(/* @__PURE__ */ new Set()), et =
|
|
4451
|
-
|
|
4455
|
+
() => new Set(ot.tools.map((t) => t.id)),
|
|
4456
|
+
[ot]
|
|
4457
|
+
), L = $(/* @__PURE__ */ new Set()), et = ot.rejected.map(({ id: t, reason: a }) => `"${t}" (${a})`).join(", ");
|
|
4458
|
+
V(() => {
|
|
4452
4459
|
}, [et]);
|
|
4453
4460
|
const ee = B(
|
|
4454
4461
|
() => ({ ...ja, ...N }),
|
|
4455
4462
|
[N]
|
|
4456
|
-
), [
|
|
4463
|
+
), [ct, On] = ra(
|
|
4457
4464
|
kr.display,
|
|
4458
4465
|
() => ({ ...ja, ...N }),
|
|
4459
4466
|
(t) => {
|
|
4460
4467
|
const a = Bs(t);
|
|
4461
4468
|
return a ? { ...a, ...N } : void 0;
|
|
4462
4469
|
},
|
|
4463
|
-
|
|
4470
|
+
Y
|
|
4464
4471
|
), At = B(
|
|
4465
|
-
() => fe &&
|
|
4466
|
-
[fe,
|
|
4472
|
+
() => fe && ct.resourceKind !== "none" ? { ...ct, resourceKind: "none" } : ct,
|
|
4473
|
+
[fe, ct]
|
|
4467
4474
|
), {
|
|
4468
4475
|
rows: nn,
|
|
4469
4476
|
setRows: Wt,
|
|
4470
|
-
focus:
|
|
4477
|
+
focus: lt,
|
|
4471
4478
|
setFocus: Yt,
|
|
4472
|
-
waitingList:
|
|
4479
|
+
waitingList: dt,
|
|
4473
4480
|
setWaitingList: Xt,
|
|
4474
4481
|
history: Ir,
|
|
4475
4482
|
signRequests: ir,
|
|
@@ -4482,7 +4489,7 @@ function _c({
|
|
|
4482
4489
|
handleComposeNew: Me,
|
|
4483
4490
|
handleRemoveWaiting: or,
|
|
4484
4491
|
handleUpsertWaiting: cr,
|
|
4485
|
-
handleOpenBacklog:
|
|
4492
|
+
handleOpenBacklog: X,
|
|
4486
4493
|
handleVisibleRangeChange: Ae,
|
|
4487
4494
|
handleDeleteAppointment: Pe,
|
|
4488
4495
|
handleMoveOccurrence: qe,
|
|
@@ -4491,9 +4498,9 @@ function _c({
|
|
|
4491
4498
|
handleCopyAppointment: It,
|
|
4492
4499
|
handleStatusChange: rn,
|
|
4493
4500
|
handleDescriptionChange: We,
|
|
4494
|
-
handleBookSlot:
|
|
4495
|
-
handleRevealAppointment:
|
|
4496
|
-
handleCreateAppointment:
|
|
4501
|
+
handleBookSlot: tt,
|
|
4502
|
+
handleRevealAppointment: nt,
|
|
4503
|
+
handleCreateAppointment: Hn,
|
|
4497
4504
|
handleFindSlotsForWaiting: an,
|
|
4498
4505
|
clearFindSlotsSeed: sn,
|
|
4499
4506
|
handleBookSlotFromFinder: Bn,
|
|
@@ -4576,7 +4583,7 @@ function _c({
|
|
|
4576
4583
|
}) : a ? Pe(t, a) : Pe(t);
|
|
4577
4584
|
},
|
|
4578
4585
|
[Pe, ke]
|
|
4579
|
-
),
|
|
4586
|
+
), Ut = B(
|
|
4580
4587
|
() => Ke ? (t) => {
|
|
4581
4588
|
const a = ke(t.eventId);
|
|
4582
4589
|
return Ke(
|
|
@@ -4601,7 +4608,7 @@ function _c({
|
|
|
4601
4608
|
} : void 0,
|
|
4602
4609
|
[It, ke]
|
|
4603
4610
|
), [we] = _(ri), [de, z] = _(null), Nn = $(null), $n = $(void 0);
|
|
4604
|
-
|
|
4611
|
+
V(() => {
|
|
4605
4612
|
var t;
|
|
4606
4613
|
$n.current = (t = Nn.current) == null ? void 0 : t.id, Nn.current = null;
|
|
4607
4614
|
}, [Ct.tick]);
|
|
@@ -4612,17 +4619,17 @@ function _c({
|
|
|
4612
4619
|
});
|
|
4613
4620
|
},
|
|
4614
4621
|
[fe, we]
|
|
4615
|
-
),
|
|
4622
|
+
), rt = m(
|
|
4616
4623
|
() => pt(Me),
|
|
4617
4624
|
[pt, Me]
|
|
4618
4625
|
), ln = m(
|
|
4619
|
-
(t) => t.editEventId ?
|
|
4620
|
-
[pt,
|
|
4626
|
+
(t) => t.editEventId ? tt(t) : pt(() => tt(t)),
|
|
4627
|
+
[pt, tt]
|
|
4621
4628
|
), jn = m(
|
|
4622
4629
|
(t) => pt(() => Bn(t)),
|
|
4623
4630
|
[pt, Bn]
|
|
4624
|
-
), [mr,
|
|
4625
|
-
we.ask(() =>
|
|
4631
|
+
), [mr, Ht] = _(0), Mt = m(() => {
|
|
4632
|
+
we.ask(() => Ht((t) => t + 1));
|
|
4626
4633
|
}, [we]), Dr = B(
|
|
4627
4634
|
() => rn ? async (t, a) => {
|
|
4628
4635
|
await rn(t, a, ...Rt(t)), Wt(
|
|
@@ -4676,15 +4683,15 @@ function _c({
|
|
|
4676
4683
|
]
|
|
4677
4684
|
), $e = nn, mt = B(
|
|
4678
4685
|
() => new Set(
|
|
4679
|
-
i && (i.canComplete !== !0 || i.status !== "ready" || !
|
|
4686
|
+
i && (i.canComplete !== !0 || i.status !== "ready" || !re) ? [
|
|
4680
4687
|
...i.rows,
|
|
4681
4688
|
...$e.filter(
|
|
4682
4689
|
(t) => t.event.isBookedOnline && (t.event.hasUnassignedPatient || !t.operatorId)
|
|
4683
4690
|
)
|
|
4684
4691
|
].map((t) => t.event.id) : []
|
|
4685
4692
|
),
|
|
4686
|
-
[i, $e,
|
|
4687
|
-
), [
|
|
4693
|
+
[i, $e, re]
|
|
4694
|
+
), [at, Xn] = _(""), Jn = m((t) => {
|
|
4688
4695
|
Xn(
|
|
4689
4696
|
(a) => a === t ? `${t}` : t
|
|
4690
4697
|
);
|
|
@@ -4699,7 +4706,7 @@ function _c({
|
|
|
4699
4706
|
() => Zn(!1),
|
|
4700
4707
|
[Zn]
|
|
4701
4708
|
);
|
|
4702
|
-
|
|
4709
|
+
V(() => {
|
|
4703
4710
|
var t;
|
|
4704
4711
|
return un.current && ((t = ht.current) == null || t.call(ht, !0)), () => {
|
|
4705
4712
|
var a;
|
|
@@ -4712,10 +4719,10 @@ function _c({
|
|
|
4712
4719
|
Qn.current = Bt;
|
|
4713
4720
|
const Ge = $("timeGridWeek"), er = m((t) => {
|
|
4714
4721
|
Ge.current = t;
|
|
4715
|
-
}, []), ze = $(null), u = $(null),
|
|
4722
|
+
}, []), ze = $(null), u = $(null), U = $(null), ae = $(null), ft = $(null), F = m(
|
|
4716
4723
|
(t, a) => {
|
|
4717
|
-
var d, q, Ee,
|
|
4718
|
-
|
|
4724
|
+
var d, q, Ee, ne, me, Se;
|
|
4725
|
+
ae.current = t, t === y.settings ? (q = (d = pe.current) == null ? void 0 : d.onSettingsOpened) == null || q.call(d) : Ya(t) ? (ne = (Ee = pe.current) == null ? void 0 : Ee.onToolOpen) == null || ne.call(Ee, {
|
|
4719
4726
|
toolId: t,
|
|
4720
4727
|
source: a,
|
|
4721
4728
|
view: Ge.current
|
|
@@ -4742,7 +4749,7 @@ function _c({
|
|
|
4742
4749
|
}),
|
|
4743
4750
|
[Je, be]
|
|
4744
4751
|
), [mn, Rn] = _(null), [vt, wn] = _(null);
|
|
4745
|
-
|
|
4752
|
+
V(() => {
|
|
4746
4753
|
we.ask = (t) => {
|
|
4747
4754
|
if (!we.dirty) {
|
|
4748
4755
|
t();
|
|
@@ -4777,8 +4784,8 @@ function _c({
|
|
|
4777
4784
|
});
|
|
4778
4785
|
return;
|
|
4779
4786
|
}
|
|
4780
|
-
const
|
|
4781
|
-
if (
|
|
4787
|
+
const ne = U.current;
|
|
4788
|
+
if (U.current = null, t === null) {
|
|
4782
4789
|
requestAnimationFrame(
|
|
4783
4790
|
() => requestAnimationFrame(
|
|
4784
4791
|
() => {
|
|
@@ -4787,24 +4794,24 @@ function _c({
|
|
|
4787
4794
|
}
|
|
4788
4795
|
)
|
|
4789
4796
|
);
|
|
4790
|
-
const me = Ze.current &&
|
|
4791
|
-
if (
|
|
4792
|
-
ze.current = null, u.current =
|
|
4797
|
+
const me = Ze.current && ne === y.appointments;
|
|
4798
|
+
if (ne && !me && L.current.has(ne)) {
|
|
4799
|
+
ze.current = null, u.current = ne, ae.current = ne, An(ne), Ya(ne) && Jn(wa(ne, oe));
|
|
4793
4800
|
return;
|
|
4794
4801
|
}
|
|
4795
4802
|
}
|
|
4796
|
-
} else t === y.settings && u.current !== y.settings && (
|
|
4803
|
+
} else t === y.settings && u.current !== y.settings && (U.current = u.current);
|
|
4797
4804
|
if (ze.current = null, u.current = t, An(t), ft.current = null, !t) {
|
|
4798
|
-
|
|
4805
|
+
ae.current = null;
|
|
4799
4806
|
return;
|
|
4800
4807
|
}
|
|
4801
|
-
t !==
|
|
4808
|
+
t !== ae.current && (L.current.has(t) ? F(t, a) : ft.current = { id: t, source: a });
|
|
4802
4809
|
},
|
|
4803
4810
|
[F, be, we, Fe, Ce, oe]
|
|
4804
4811
|
), ia = m(() => {
|
|
4805
4812
|
u.current === y.settings ? Ce() : Fe(y.settings);
|
|
4806
4813
|
}, [Fe, Ce]);
|
|
4807
|
-
|
|
4814
|
+
V(() => {
|
|
4808
4815
|
const t = ft.current;
|
|
4809
4816
|
!t || t.id !== xt || (ft.current = null, L.current.has(t.id) && F(t.id, t.source));
|
|
4810
4817
|
}, [xt, F]);
|
|
@@ -4813,9 +4820,9 @@ function _c({
|
|
|
4813
4820
|
ze.current === "rail" && (ze.current = null);
|
|
4814
4821
|
}));
|
|
4815
4822
|
}, []), tr = $(null);
|
|
4816
|
-
|
|
4823
|
+
V(() => {
|
|
4817
4824
|
tr.current = null;
|
|
4818
|
-
}, [
|
|
4825
|
+
}, [lt]);
|
|
4819
4826
|
const Ea = m(
|
|
4820
4827
|
(t) => {
|
|
4821
4828
|
t && (tr.current = { eventId: t.eventId, source: "calendar" }), Yt(t);
|
|
@@ -4823,9 +4830,9 @@ function _c({
|
|
|
4823
4830
|
[Yt]
|
|
4824
4831
|
), Sa = m(
|
|
4825
4832
|
(t, a) => {
|
|
4826
|
-
tr.current = { eventId: t, source: a },
|
|
4833
|
+
tr.current = { eventId: t, source: a }, nt(t);
|
|
4827
4834
|
},
|
|
4828
|
-
[
|
|
4835
|
+
[nt]
|
|
4829
4836
|
), oa = m((t) => {
|
|
4830
4837
|
var d, q;
|
|
4831
4838
|
const a = tr.current;
|
|
@@ -4876,18 +4883,18 @@ function _c({
|
|
|
4876
4883
|
toolId: t
|
|
4877
4884
|
});
|
|
4878
4885
|
}, [en]);
|
|
4879
|
-
|
|
4886
|
+
V(() => {
|
|
4880
4887
|
dn && Xn("");
|
|
4881
4888
|
}, [dn]);
|
|
4882
4889
|
const [ca, zr] = _("create"), la = m(
|
|
4883
4890
|
(t) => t === "patient-care-plan" ? null : t === "appointment-details" ? kt.has(y.editor) ? (zr("details"), y.editor) : y.appointments : t === "appointment-editor" ? kt.has(y.editor) ? (zr("create"), y.editor) : y.appointments : t === "backlog" ? kt.has(y.waitingList) ? y.waitingList : y.appointments : kt.has(y.findSlots) ? (sn(), y.findSlots) : y.appointments,
|
|
4884
4891
|
[sn, kt]
|
|
4885
|
-
), qt =
|
|
4892
|
+
), qt = lt ? $e.find((t) => t.event.id === lt.eventId) ?? null : null, Ur = B(
|
|
4886
4893
|
() => Pr(qt == null ? void 0 : qt.event.patientId, s),
|
|
4887
4894
|
[qt, s]
|
|
4888
|
-
), Wa =
|
|
4889
|
-
() => Mi($e, s, i,
|
|
4890
|
-
[$e, s, i,
|
|
4895
|
+
), Wa = dt.length, Er = B(
|
|
4896
|
+
() => Mi($e, s, i, He),
|
|
4897
|
+
[$e, s, i, He]
|
|
4891
4898
|
), [da, Oa] = _(null), La = m(
|
|
4892
4899
|
async (t, a) => {
|
|
4893
4900
|
var Se, Jr;
|
|
@@ -4895,8 +4902,8 @@ function _c({
|
|
|
4895
4902
|
throw new Error(oe("calendarWorkspace.inc1.readOnly.changeBlocked"));
|
|
4896
4903
|
if (f)
|
|
4897
4904
|
throw new Error(oe("calendarWorkspace.inc1.readOnly.changeBlocked"));
|
|
4898
|
-
const d = t.editEventId ? $e.find((nr) => nr.event.id === t.editEventId) : void 0, q = Ta(d), Ee = d ? d.archiveId : $n.current,
|
|
4899
|
-
await (q ?
|
|
4905
|
+
const d = t.editEventId ? $e.find((nr) => nr.event.id === t.editEventId) : void 0, q = Ta(d), Ee = d ? d.archiveId : $n.current, ne = Ee ? { ...t, archiveId: Ee } : t;
|
|
4906
|
+
await (q ? Hn(ne) : Hn(ne, a)), $n.current = void 0;
|
|
4900
4907
|
try {
|
|
4901
4908
|
!t.editEventId && t.recurrence && ((Jr = (Se = pe.current) == null ? void 0 : Se.onRecurringCreated) == null || Jr.call(Se, {
|
|
4902
4909
|
rule: fo(t.recurrence) ? "custom" : "preset",
|
|
@@ -4951,7 +4958,7 @@ function _c({
|
|
|
4951
4958
|
},
|
|
4952
4959
|
[
|
|
4953
4960
|
$e,
|
|
4954
|
-
|
|
4961
|
+
Hn,
|
|
4955
4962
|
Wt,
|
|
4956
4963
|
Fn,
|
|
4957
4964
|
s,
|
|
@@ -4961,13 +4968,13 @@ function _c({
|
|
|
4961
4968
|
]
|
|
4962
4969
|
), Fa = m(
|
|
4963
4970
|
(t, a) => {
|
|
4964
|
-
var
|
|
4971
|
+
var ne;
|
|
4965
4972
|
if (mt.has(t)) return;
|
|
4966
4973
|
if (f) {
|
|
4967
4974
|
hn(oe("calendarWorkspace.inc1.readOnly.changeBlocked"));
|
|
4968
4975
|
return;
|
|
4969
4976
|
}
|
|
4970
|
-
const d = (
|
|
4977
|
+
const d = (ne = $e.find((me) => me.event.id === t)) != null && ne.series ? Ga($e, t, (a == null ? void 0 : a.scope) ?? "this") : null, q = d ? d.map((me) => cn(me)) : [cn(t, a)], Ee = () => {
|
|
4971
4978
|
d && d.length > 1 && fn(
|
|
4972
4979
|
oe("calendarWorkspace.inc1.save.seriesDeleted", {
|
|
4973
4980
|
count: d.length
|
|
@@ -4977,15 +4984,15 @@ function _c({
|
|
|
4977
4984
|
return q.every((me) => !me) ? Ee() : Promise.all(q).then(Ee);
|
|
4978
4985
|
},
|
|
4979
4986
|
[$e, cn, oe, f, mt]
|
|
4980
|
-
), [
|
|
4981
|
-
pa.current =
|
|
4987
|
+
), [Hr, ua] = _(null), pa = $(null);
|
|
4988
|
+
pa.current = Hr;
|
|
4982
4989
|
const Ft = m(
|
|
4983
4990
|
(t, a, d) => {
|
|
4984
|
-
var
|
|
4991
|
+
var ne, me, Se, Jr;
|
|
4985
4992
|
if (!qt || mt.has(qt.event.id)) return;
|
|
4986
4993
|
ua({ kind: t, eventId: qt.event.id, withTreatments: d });
|
|
4987
4994
|
const q = qt.event.id, Ee = Ge.current;
|
|
4988
|
-
t === "move" ? (me = (
|
|
4995
|
+
t === "move" ? (me = (ne = pe.current) == null ? void 0 : ne.onAppointmentMoveInitiated) == null || me.call(ne, {
|
|
4989
4996
|
eventId: q,
|
|
4990
4997
|
surface: a,
|
|
4991
4998
|
view: Ee
|
|
@@ -4997,7 +5004,7 @@ function _c({
|
|
|
4997
5004
|
});
|
|
4998
5005
|
},
|
|
4999
5006
|
[qt, mt]
|
|
5000
|
-
),
|
|
5007
|
+
), st = m(
|
|
5001
5008
|
(t) => Ft("move", t),
|
|
5002
5009
|
[Ft]
|
|
5003
5010
|
), Mr = m(
|
|
@@ -5084,17 +5091,17 @@ function _c({
|
|
|
5084
5091
|
), [fa, e] = _(0), c = m(() => {
|
|
5085
5092
|
e((t) => t + 1);
|
|
5086
5093
|
}, []), [h, T] = _({ tick: 0 });
|
|
5087
|
-
|
|
5094
|
+
V(() => {
|
|
5088
5095
|
le && (T((t) => ({ tick: t.tick + 1, id: le })), e((t) => t + 1));
|
|
5089
|
-
}, [le,
|
|
5090
|
-
const [C, W] = _(null), E = $(null),
|
|
5096
|
+
}, [le, j]);
|
|
5097
|
+
const [C, W] = _(null), E = $(null), G = m(
|
|
5091
5098
|
(t) => {
|
|
5092
|
-
E.current = t ? t.id : "add", W({ entry: t }),
|
|
5099
|
+
E.current = t ? t.id : "add", W({ entry: t }), X("waiting");
|
|
5093
5100
|
},
|
|
5094
|
-
[
|
|
5101
|
+
[X]
|
|
5095
5102
|
), ye = m(() => W(null), []), R = $(C);
|
|
5096
|
-
|
|
5097
|
-
var
|
|
5103
|
+
V(() => {
|
|
5104
|
+
var ne;
|
|
5098
5105
|
const t = R.current !== null;
|
|
5099
5106
|
if (R.current = C, !t || C !== null) return;
|
|
5100
5107
|
const a = E.current;
|
|
@@ -5103,7 +5110,7 @@ function _c({
|
|
|
5103
5110
|
`[data-active-tool="${y.waitingList}"]`
|
|
5104
5111
|
), q = document.activeElement;
|
|
5105
5112
|
if (q && q !== document.body && (d != null && d.contains(q))) return;
|
|
5106
|
-
(
|
|
5113
|
+
(ne = (a && a !== "add" ? d == null ? void 0 : d.querySelector(`[data-entry-edit="${a}"]`) : d == null ? void 0 : d.querySelector("[data-entry-add]")) ?? (d == null ? void 0 : d.querySelector('h2, [tabindex="-1"]'))) == null || ne.focus();
|
|
5107
5114
|
}, [C]);
|
|
5108
5115
|
const De = m(
|
|
5109
5116
|
(t) => {
|
|
@@ -5120,7 +5127,7 @@ function _c({
|
|
|
5120
5127
|
hn(oe("calendarWorkspace.inc1.readOnly.waitingBlocked"));
|
|
5121
5128
|
return;
|
|
5122
5129
|
}
|
|
5123
|
-
const a =
|
|
5130
|
+
const a = dt.findIndex((d) => d.id === t.id);
|
|
5124
5131
|
or(t), fn(oe("calendarWorkspace.inc1.waitingList.removed"), {
|
|
5125
5132
|
action: {
|
|
5126
5133
|
label: oe("calendarWorkspace.inc1.waitingList.undo"),
|
|
@@ -5134,20 +5141,20 @@ function _c({
|
|
|
5134
5141
|
}
|
|
5135
5142
|
});
|
|
5136
5143
|
},
|
|
5137
|
-
[
|
|
5144
|
+
[dt, or, Xt, f, oe]
|
|
5138
5145
|
), Dt = m(
|
|
5139
5146
|
(t) => {
|
|
5140
5147
|
an(t);
|
|
5141
5148
|
},
|
|
5142
5149
|
[an]
|
|
5143
5150
|
), Gt = $(!1);
|
|
5144
|
-
return
|
|
5151
|
+
return V(() => {
|
|
5145
5152
|
if (!Gt.current) {
|
|
5146
5153
|
if (Gt.current = !0, P) {
|
|
5147
5154
|
tr.current = {
|
|
5148
5155
|
eventId: P,
|
|
5149
5156
|
source: "deep_link"
|
|
5150
|
-
},
|
|
5157
|
+
}, nt(P), Yr({ tick: 1, eventId: P });
|
|
5151
5158
|
return;
|
|
5152
5159
|
}
|
|
5153
5160
|
if (xe) {
|
|
@@ -5164,7 +5171,7 @@ function _c({
|
|
|
5164
5171
|
P,
|
|
5165
5172
|
xe,
|
|
5166
5173
|
se,
|
|
5167
|
-
|
|
5174
|
+
nt,
|
|
5168
5175
|
ln
|
|
5169
5176
|
]), /* @__PURE__ */ n(eo.Provider, { value: pn, children: /* @__PURE__ */ I(
|
|
5170
5177
|
"div",
|
|
@@ -5173,54 +5180,54 @@ function _c({
|
|
|
5173
5180
|
ref: Cn,
|
|
5174
5181
|
className: "ds:flex ds:h-full ds:min-h-0 ds:w-full ds:items-stretch",
|
|
5175
5182
|
children: [
|
|
5176
|
-
/* @__PURE__ */ n(Da, { "aria-live": "polite", children:
|
|
5183
|
+
/* @__PURE__ */ n(Da, { "aria-live": "polite", children: at }),
|
|
5177
5184
|
/* @__PURE__ */ n(
|
|
5178
5185
|
Pc,
|
|
5179
5186
|
{
|
|
5180
|
-
onDraftChange:
|
|
5187
|
+
onDraftChange: Un,
|
|
5181
5188
|
workspaceRef: Cn,
|
|
5182
5189
|
activeToolId: xt,
|
|
5183
5190
|
availableTools: kt,
|
|
5184
|
-
focus:
|
|
5191
|
+
focus: lt,
|
|
5185
5192
|
rows: $e,
|
|
5186
5193
|
locale: St,
|
|
5187
5194
|
privacy: dn,
|
|
5188
5195
|
onPrivacyOff: Tr,
|
|
5189
5196
|
selectedRow: qt,
|
|
5190
|
-
patientRef:
|
|
5197
|
+
patientRef: Ur,
|
|
5191
5198
|
onOpenSheet: la,
|
|
5192
5199
|
onAnnounce: Jn,
|
|
5193
5200
|
editorMode: ca,
|
|
5194
5201
|
onEditorModeChange: zr,
|
|
5195
5202
|
editorSeed: Ct,
|
|
5196
5203
|
slotPatch: yt,
|
|
5197
|
-
loadAppointmentEditor:
|
|
5204
|
+
loadAppointmentEditor: re,
|
|
5198
5205
|
loadAppointmentDetails: ue,
|
|
5199
|
-
waitingList:
|
|
5206
|
+
waitingList: dt,
|
|
5200
5207
|
waitingSeedTick: Ln.tick,
|
|
5201
5208
|
findSlotsSeed: Pt,
|
|
5202
5209
|
history: Ir,
|
|
5203
5210
|
signRequests: ir,
|
|
5204
|
-
mapsLink:
|
|
5205
|
-
defaultDurationMin:
|
|
5211
|
+
mapsLink: ct.mapsLink,
|
|
5212
|
+
defaultDurationMin: ct.defaultDurationMin,
|
|
5206
5213
|
noteUnrecordedEdits: O,
|
|
5207
5214
|
recurrence: ve,
|
|
5208
5215
|
consentsForCares: S,
|
|
5209
5216
|
medicalDevicesForCares: ie,
|
|
5210
|
-
sameDayReminders:
|
|
5217
|
+
sameDayReminders: J,
|
|
5211
5218
|
signatureCredits: x,
|
|
5212
|
-
createPatientFromBooking:
|
|
5219
|
+
createPatientFromBooking: Z,
|
|
5213
5220
|
createPatient: he,
|
|
5214
|
-
defaultReminders:
|
|
5221
|
+
defaultReminders: Ue,
|
|
5215
5222
|
proposeFirstVisit: Nt,
|
|
5216
5223
|
readOnly: f,
|
|
5217
5224
|
notesSeamFor: Yn,
|
|
5218
|
-
businessHours:
|
|
5225
|
+
businessHours: H,
|
|
5219
5226
|
onSave: La,
|
|
5220
5227
|
onDelete: Fa,
|
|
5221
5228
|
onRecurringScopeChosen: hr,
|
|
5222
5229
|
onDetailsActionUsed: wr,
|
|
5223
|
-
onMove:
|
|
5230
|
+
onMove: st,
|
|
5224
5231
|
onCopy: Mr,
|
|
5225
5232
|
onEditOpened: qr,
|
|
5226
5233
|
onDeleteInitiated: Kr,
|
|
@@ -5239,7 +5246,7 @@ function _c({
|
|
|
5239
5246
|
onWaitingListFilterUsed: ma,
|
|
5240
5247
|
onWaitingListAdvancedFilterToggled: jr,
|
|
5241
5248
|
onRemoveWaiting: Kt,
|
|
5242
|
-
onOpenEntryForm:
|
|
5249
|
+
onOpenEntryForm: G,
|
|
5243
5250
|
entryForm: C,
|
|
5244
5251
|
onSaveEntry: De,
|
|
5245
5252
|
onCancelEntry: ye,
|
|
@@ -5249,7 +5256,7 @@ function _c({
|
|
|
5249
5256
|
gridAxis: At.resourceKind,
|
|
5250
5257
|
bookings: Er,
|
|
5251
5258
|
bookingQueue: i,
|
|
5252
|
-
backlogFilters:
|
|
5259
|
+
backlogFilters: He,
|
|
5253
5260
|
onBacklogFiltersChange: kn,
|
|
5254
5261
|
waitingListState: v,
|
|
5255
5262
|
stateSinceByEventId: b,
|
|
@@ -5264,7 +5271,7 @@ function _c({
|
|
|
5264
5271
|
onSetTaskDone: on,
|
|
5265
5272
|
loadTask: $t,
|
|
5266
5273
|
taskComposeTick: mr,
|
|
5267
|
-
extraTools:
|
|
5274
|
+
extraTools: ot.tools,
|
|
5268
5275
|
extraToolIds: D,
|
|
5269
5276
|
registeredToolIdsRef: L,
|
|
5270
5277
|
settingsBridge: be,
|
|
@@ -5326,10 +5333,10 @@ function _c({
|
|
|
5326
5333
|
draftSlot: zn,
|
|
5327
5334
|
onDraftMoved: (t) => pr(t),
|
|
5328
5335
|
onDraftResized: (t) => pr({ durationMin: t }),
|
|
5329
|
-
id:
|
|
5336
|
+
id: it,
|
|
5330
5337
|
availableTools: kt,
|
|
5331
5338
|
schedulerLicenseKey: Ne,
|
|
5332
|
-
preferences:
|
|
5339
|
+
preferences: Y,
|
|
5333
5340
|
rows: $e,
|
|
5334
5341
|
setRows: Wt,
|
|
5335
5342
|
display: At,
|
|
@@ -5341,7 +5348,7 @@ function _c({
|
|
|
5341
5348
|
detailsOnEveryClick: ue !== void 0,
|
|
5342
5349
|
locale: St,
|
|
5343
5350
|
readOnly: f,
|
|
5344
|
-
placement:
|
|
5351
|
+
placement: Hr,
|
|
5345
5352
|
onPlacementEnd: xr,
|
|
5346
5353
|
createMode: Pa,
|
|
5347
5354
|
onCreateModeEnd: Ar,
|
|
@@ -5353,20 +5360,20 @@ function _c({
|
|
|
5353
5360
|
availabilityContext: lr,
|
|
5354
5361
|
onComposeNew: f ? () => hn(
|
|
5355
5362
|
oe("calendarWorkspace.inc1.readOnly.createBlocked")
|
|
5356
|
-
) :
|
|
5363
|
+
) : rt,
|
|
5357
5364
|
onComposeTask: A === void 0 ? void 0 : Mt,
|
|
5358
5365
|
onOpenWaitingList: () => {
|
|
5359
|
-
ye(),
|
|
5366
|
+
ye(), X("waiting");
|
|
5360
5367
|
},
|
|
5361
5368
|
onAddWaitingEntry: f ? () => hn(
|
|
5362
5369
|
oe("calendarWorkspace.inc1.readOnly.waitingBlocked")
|
|
5363
|
-
) : () =>
|
|
5370
|
+
) : () => G(),
|
|
5364
5371
|
waitingBadgeCount: Wa,
|
|
5365
5372
|
onOpenOnlineBookings: c,
|
|
5366
5373
|
onlineBookingsCount: Er.length,
|
|
5367
5374
|
onVisibleRangeChange: Ae,
|
|
5368
5375
|
onRetryLoad: g,
|
|
5369
|
-
selectedEventId: (
|
|
5376
|
+
selectedEventId: (lt == null ? void 0 : lt.eventId) ?? null,
|
|
5370
5377
|
gotoRequest: br,
|
|
5371
5378
|
onBookSlot: ln,
|
|
5372
5379
|
gridHeld: Wn,
|
|
@@ -5374,7 +5381,7 @@ function _c({
|
|
|
5374
5381
|
reviewOnlyEventIds: mt,
|
|
5375
5382
|
onHistory: Fn,
|
|
5376
5383
|
onMoveOccurrence: Gn,
|
|
5377
|
-
onMoveAppointment:
|
|
5384
|
+
onMoveAppointment: Ut,
|
|
5378
5385
|
onResizeAppointment: yr,
|
|
5379
5386
|
onCopyAppointment: Vn,
|
|
5380
5387
|
onDeleteAppointment: (
|
|
@@ -5456,7 +5463,7 @@ function id({
|
|
|
5456
5463
|
guard: l,
|
|
5457
5464
|
requestClose: P,
|
|
5458
5465
|
discardDialog: le
|
|
5459
|
-
} = lo(),
|
|
5466
|
+
} = lo(), j = m(
|
|
5460
5467
|
() => P(k),
|
|
5461
5468
|
[P, k]
|
|
5462
5469
|
), xe = B(
|
|
@@ -5466,7 +5473,7 @@ function id({
|
|
|
5466
5473
|
), se = B(
|
|
5467
5474
|
() => ({ ...zc(i), ...g }),
|
|
5468
5475
|
[i, g]
|
|
5469
|
-
),
|
|
5476
|
+
), H = b ?? N(
|
|
5470
5477
|
(Ne = p.prefill) != null && Ne.editEventId ? "calendarWorkspace.editor.editTitle" : "calendarWorkspace.editor.title"
|
|
5471
5478
|
), Be = /* @__PURE__ */ n(
|
|
5472
5479
|
Fr,
|
|
@@ -5475,7 +5482,7 @@ function id({
|
|
|
5475
5482
|
intent: "ghost",
|
|
5476
5483
|
size: "sm",
|
|
5477
5484
|
"aria-label": N("common.close", "Close"),
|
|
5478
|
-
onClick:
|
|
5485
|
+
onClick: j
|
|
5479
5486
|
}
|
|
5480
5487
|
);
|
|
5481
5488
|
return /* @__PURE__ */ I(Sn, { children: [
|
|
@@ -5483,16 +5490,16 @@ function id({
|
|
|
5483
5490
|
te,
|
|
5484
5491
|
{
|
|
5485
5492
|
open: r,
|
|
5486
|
-
onOpenChange: (O) => O ? s(!0) :
|
|
5493
|
+
onOpenChange: (O) => O ? s(!0) : j(),
|
|
5487
5494
|
id: v,
|
|
5488
5495
|
children: /* @__PURE__ */ I(te.Content, { flush: !0, hideCloseButton: !0, "aria-describedby": void 0, children: [
|
|
5489
|
-
/* @__PURE__ */ n(te.Title, { asChild: !0, children: /* @__PURE__ */ n("span", { className: "ds:sr-only", children:
|
|
5496
|
+
/* @__PURE__ */ n(te.Title, { asChild: !0, children: /* @__PURE__ */ n("span", { className: "ds:sr-only", children: H }) }),
|
|
5490
5497
|
/* @__PURE__ */ n(
|
|
5491
5498
|
"div",
|
|
5492
5499
|
{
|
|
5493
5500
|
"data-component": "appointment-editor-dialog",
|
|
5494
5501
|
className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
|
|
5495
|
-
children: /* @__PURE__ */ n(Rs, { children: /* @__PURE__ */ n(As, { value: i, children: /* @__PURE__ */ n(
|
|
5502
|
+
children: /* @__PURE__ */ n(Rs, { children: /* @__PURE__ */ n(As, { value: i, children: /* @__PURE__ */ n(Us, { value: xe, children: /* @__PURE__ */ n(Ws, { value: l, children: /* @__PURE__ */ n(Go, { actions: Be, children: /* @__PURE__ */ n(
|
|
5496
5503
|
Xa,
|
|
5497
5504
|
{
|
|
5498
5505
|
...p,
|
|
@@ -5516,4 +5523,4 @@ export {
|
|
|
5516
5523
|
sd as C,
|
|
5517
5524
|
ad as i
|
|
5518
5525
|
};
|
|
5519
|
-
//# sourceMappingURL=calendar-appointment-editor-dialog-
|
|
5526
|
+
//# sourceMappingURL=calendar-appointment-editor-dialog-BPAfWtm9.js.map
|