@alfadocs/ui-kit 1.142.0 → 1.144.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/{actions-cell-renderer-CPNyF6ye.js → actions-cell-renderer-BA1FB6cT.js} +3 -3
- package/dist/_chunks/{address-autocomplete-yDLqg43e.js → address-autocomplete-_LeOFdM7.js} +2 -2
- package/dist/_chunks/{address-fields-Bh9JZJHZ.js → address-fields-C4khof4C.js} +2 -2
- package/dist/_chunks/{agenda-tray-CGcS_qoM.js → agenda-tray-NgxPuAAz.js} +3 -3
- package/dist/_chunks/{ai-credits-exhausted-notice-Lws3113e.js → ai-credits-exhausted-notice-DCq27xy2.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-D_Zm_N2A.js → ai-credits-notice-B6buIgmV.js} +3 -3
- package/dist/_chunks/{ai-permission-notice-C-xR2_iS.js → ai-permission-notice-C_YB3MBA.js} +20 -12
- package/dist/_chunks/{ai-prompt-input-y4-dtQIT.js → ai-prompt-input-Bwoa8gNc.js} +2 -2
- package/dist/_chunks/{ai-summary-panel-BhCo2vZF.js → ai-summary-panel-Cdsve-XN.js} +7 -7
- package/dist/_chunks/{alia-sidebar-uxTsUbIt.js → alia-sidebar-Bjuxk8mU.js} +7 -7
- package/dist/_chunks/{anamnesis-card-sUFT0dpF.js → anamnesis-card-G0qzw0Oi.js} +16 -15
- package/dist/_chunks/{anamnesis-summary-rows-C2Ca9_Qj.js → anamnesis-summary-rows-QCv6zW-J.js} +8 -8
- package/dist/_chunks/{appointment-card-C0UFYFLZ.js → appointment-card-HOZrABrQ.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BUXwhill.js → appointment-details-panel.history-eqPMKmW0.js} +38 -31
- package/dist/_chunks/{appointment-details-panel.identity-C20Y9xNC.js → appointment-details-panel.identity--_j07UG1.js} +2 -2
- package/dist/_chunks/{appointment-peek-BCzekfWh.js → appointment-peek-B3raO90X.js} +3 -3
- package/dist/_chunks/appointment-timeline-D5qbZ7in.js +776 -0
- package/dist/_chunks/{appointment-tray-dfgScPcC.js → appointment-tray-CFCxukwq.js} +4 -4
- package/dist/_chunks/{audio-recorder-DxhCiLqG.js → audio-recorder-DcUIVMWj.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-CXi6moSa.js → balance-badge-cell-BPz9bQAB.js} +5 -5
- package/dist/_chunks/{bill-line-table-qAdmV19W.js → bill-line-table-DnkFqMnM.js} +2 -2
- package/dist/_chunks/{bishop-score-DbvfBlBM.js → bishop-score-fJRN0MtR.js} +2 -2
- package/dist/_chunks/{bmi-calculator-rq3ZsKp0.js → bmi-calculator-FmXBHbot.js} +2 -2
- package/dist/_chunks/{button-DohK_Ak_.js → button-Dp4j9ygh.js} +6 -6
- package/dist/_chunks/{button-group-DoKG16Fy.js → button-group-N60L3HMa.js} +2 -2
- package/dist/_chunks/{calendar-CyLtLBNP.js → calendar-DDTWUYnw.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BDc8Q4Ji.js → calendar-appointment-editor-dialog-CA69bdbI.js} +22 -22
- package/dist/_chunks/{calendar-editor-discard-host-BblBxMqT.js → calendar-editor-discard-host-DWS_kM-a.js} +6 -6
- package/dist/_chunks/{calendar-waiting-list-panel-js-0KEh8.js → calendar-waiting-list-panel-Du_jtVbl.js} +9 -9
- package/dist/_chunks/{calendar-workspace.model-B8yPwuBv.js → calendar-workspace.model-4zmA3BFE.js} +2 -2
- package/dist/_chunks/{calendar.sheets-sBWH7Jxn.js → calendar.sheets-CGwr4t2p.js} +16 -16
- package/dist/_chunks/{calls-panel-CnjAKFgA.js → calls-panel-BTTfHnPD.js} +5 -5
- package/dist/_chunks/{care-plan-card-TZH6C60K.js → care-plan-card-2U2LuIJD.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CufvXAWa.js → care-plan-entry-card-CUAlQv1c.js} +3 -3
- package/dist/_chunks/{care-plan-header-CeFXUDnL.js → care-plan-header-Dm9KZ41y.js} +3 -3
- package/dist/_chunks/{carousel.agent-CkDXR3-8.js → carousel.agent-CN78qTiR.js} +2 -2
- package/dist/_chunks/{chart-ChNsJf9_.js → chart-EUdS8caO.js} +3 -3
- package/dist/_chunks/{chat-input-BmvnuZqj.js → chat-input-kduOKc5Q.js} +2 -2
- package/dist/_chunks/{chat-message-B4TMeZ2m.js → chat-message-Db7cWCgO.js} +4 -4
- package/dist/_chunks/{check-in-documents-CEVcgcYZ.js → check-in-documents-v1jFfDE1.js} +2 -2
- package/dist/_chunks/{clinical-note-card-D--IwbZa.js → clinical-note-card-D-9xmRpf.js} +68 -52
- package/dist/_chunks/{code-block-BTsCXVGI.js → code-block-BpmhaXp_.js} +2 -2
- package/dist/_chunks/{communications-panel-EP27FN7e.js → communications-panel-DDzUyoHi.js} +7 -7
- package/dist/_chunks/{connection-status-DWClakYw.js → connection-status-Bi6KPTlh.js} +3 -3
- package/dist/_chunks/{contact-profile-card-CsZNMlws.js → contact-profile-card-BxnBI1z1.js} +3 -3
- package/dist/_chunks/{control-room-rail-7SidoPJH.js → control-room-rail-BQvaYowi.js} +3 -3
- package/dist/_chunks/{copy-field-BaYEDJ9f.js → copy-field-Bp0rH_YO.js} +2 -2
- package/dist/_chunks/{cycle-calculator-BUCGfEcy.js → cycle-calculator-Dd-dNPyR.js} +2 -2
- package/dist/_chunks/{dashboard-grid-D2egA1Zu.js → dashboard-grid-C_cby1Cf.js} +2 -2
- package/dist/_chunks/{data-grid-tyE2kGfx.js → data-grid-CujX-2tF.js} +6 -6
- package/dist/_chunks/{data-grid-tabs-Mbj6bSK2.js → data-grid-tabs-3NIWrciW.js} +2 -2
- package/dist/_chunks/{data-table-Bq1FRBGB.js → data-table-DFAYYsSc.js} +118 -118
- package/dist/_chunks/{data-table-tabs-D5ujdK56.js → data-table-tabs-BKdmGcyD.js} +2 -2
- package/dist/_chunks/{date-range-panel-BOgfP_V3.js → date-range-panel-B86RANxB.js} +2 -2
- package/dist/_chunks/{default-tabs-ChkVzOL8.js → default-tabs-CqP1uWdx.js} +9 -9
- package/dist/_chunks/{description-list-BxzDN9o2.js → description-list-DA4TgL_I.js} +2 -2
- package/dist/_chunks/{dev-bypass-button-B7ePcJcg.js → dev-bypass-button-BzfYGPuf.js} +2 -2
- package/dist/_chunks/{document-preview-x_S8V7VC.js → document-preview-oSuJsJ3k.js} +4 -4
- package/dist/_chunks/{document-scanner-CETscDea.js → document-scanner-C_9P-ysi.js} +2 -2
- package/dist/_chunks/{due-date-calculator-DpN0Z9p4.js → due-date-calculator-CcYdmiCI.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-C6z6ABN_.js → editable-currency-cell-renderer-DXJI0fnU.js} +3 -3
- package/dist/_chunks/{editable-description-KU56SP4P.js → editable-description-BQauSuCG.js} +3 -3
- package/dist/_chunks/{editor-overlay-Dc8uVxEp.js → editor-overlay-Cl6IhKNG.js} +2 -2
- package/dist/_chunks/{empty-state-DwJ5YNzz.js → empty-state-5REM7oDM.js} +2 -2
- package/dist/_chunks/{entity-summary-CPUHzyil.js → entity-summary-CZmGcWi2.js} +4 -4
- package/dist/_chunks/{error-boundary-tAn_GuCu.js → error-boundary-BQ5mRqEd.js} +2 -2
- package/dist/_chunks/{error-page-WLhmWUTq.js → error-page-CdNGIezW.js} +2 -2
- package/dist/_chunks/{face-scheme-S88jbOzl.js → face-scheme-ByYeboH9.js} +5 -5
- package/dist/_chunks/{fetal-weight-DWj-_ME8.js → fetal-weight-BZql9VkN.js} +2 -2
- package/dist/_chunks/{field-array-CA-gn526.js → field-array-kwUgFOIr.js} +3 -3
- package/dist/_chunks/{file-manager-ChQSjfU8.js → file-manager-Cp3Z4VvM.js} +7 -7
- package/dist/_chunks/{finished-terminal-unDnXT4j.js → finished-terminal-YrhOLYbx.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-DZlpaMGg.js → fiscal-code-input-BsQS8gaD.js} +2 -2
- package/dist/_chunks/{forgot-password-form-B4ufmBFn.js → forgot-password-form-BUC_hDCJ.js} +2 -2
- package/dist/_chunks/{freemium-paywall-BDeq9QWR.js → freemium-paywall-DafloSRi.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CCDIhSMV.js → gestational-age-calculator-DrVw8arH.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BekuksBv.js → hcg-doubling-XWQ6IhEg.js} +2 -2
- package/dist/_chunks/{header-l_B8MV0g.js → header-lzhNZEij.js} +2 -2
- package/dist/_chunks/{header-settings-CvZ7Qii6.js → header-settings-BIiYXX9_.js} +4 -4
- package/dist/_chunks/{heatmap-D0OGx-70.js → heatmap-DvsZ-mcL.js} +6 -6
- package/dist/_chunks/{help-me-write-templates-C84_4iwX.js → help-me-write-templates-BdCQ-kFO.js} +6 -6
- package/dist/_chunks/{hover-card-CIiPOlyM.js → hover-card-CS8ulBf9.js} +2 -2
- package/dist/_chunks/{icon-button-group-CLhC7wjU.js → icon-button-group-DEAx9M5v.js} +2 -2
- package/dist/_chunks/{icon-button-S8_weU3g.js → icon-button-u9VMQn3x.js} +2 -2
- package/dist/_chunks/{icon-picker-Ct6n8GTa.js → icon-picker-CF4nDCzC.js} +3 -3
- package/dist/_chunks/{image-cropper-Ch80rFdt.js → image-cropper-CfaSPVt3.js} +2 -2
- package/dist/_chunks/{info-tip-CkH2En-i.js → info-tip-cCppV1fD.js} +2 -2
- package/dist/_chunks/{insert-result-CDMMt7q8.js → insert-result-UUow9IIY.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-CZ1B9yWh.js → invoice-upload-list-srvWy5_d.js} +5 -5
- package/dist/_chunks/{key-value-pair-DOTl68_U.js → key-value-pair-BykhMTcP.js} +2 -2
- package/dist/_chunks/{kit-extensions-C_oZ7WOq.js → kit-extensions-CSPGIdcn.js} +7 -7
- package/dist/_chunks/{link-cell-renderer-ByOAy2Sb.js → link-cell-renderer-CWLArl5e.js} +4 -4
- package/dist/_chunks/{locale-picker-OrojXX6E.js → locale-picker-BEJjNGCO.js} +3 -3
- package/dist/_chunks/{login-dev-card-oRh9h7N2.js → login-dev-card-DqUNJcd7.js} +2 -2
- package/dist/_chunks/{map-view-Cm69dCnY.js → map-view-n6GiDRWM.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-DnL187-U.js → marketplace-app-shell-CGA-R-zt.js} +4 -4
- package/dist/_chunks/{medication-line-BohqbCYD.js → medication-line-DFa5oFhf.js} +2 -2
- package/dist/_chunks/{medication-search-DoEDakoM.js → medication-search-CTUtXuPT.js} +2 -2
- package/dist/_chunks/{message-card-Bw_q1qKx.js → message-card-DQML_W8I.js} +12 -11
- package/dist/_chunks/{message-tray-g6dp_AAt.js → message-tray-Dx2HPcKB.js} +4 -4
- package/dist/_chunks/{muscle-scheme-vNd8wU7V.js → muscle-scheme-BMFuuKGh.js} +2 -2
- package/dist/_chunks/{notes-panel-CtMLUJOe.js → notes-panel-DnBmONPb.js} +399 -397
- package/dist/_chunks/{notification-card-DRMv2_pW.js → notification-card-BPGZhE5t.js} +12 -11
- package/dist/_chunks/{notification-tray-DqCYs9Bw.js → notification-tray-BnC5OItw.js} +4 -4
- package/dist/_chunks/{optical-prescription-CWwrW4YQ.js → optical-prescription-DZvauMiM.js} +2 -2
- package/dist/_chunks/{panel-subview-DCyvn-49.js → panel-subview-DjBwNV16.js} +2 -2
- package/dist/_chunks/{parts-IFiXO68Y.js → parts-DyCxaRF0.js} +4 -4
- package/dist/_chunks/{patient-account-settings-e8Wp2g-F.js → patient-account-settings-Do0QbDJe.js} +5 -5
- package/dist/_chunks/{patient-card-Cpr8iD19.js → patient-card-D1DrK4BT.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-_nwf9gpx.js → patient-check-in-resume-Bxy1_Pfo.js} +9 -9
- package/dist/_chunks/{patient-details-6uJZ27ZL.js → patient-details-Cj3dp9GB.js} +3 -3
- package/dist/_chunks/{patient-field-row-D8Cu_MQp.js → patient-field-row-DDjsUsc_.js} +6 -6
- package/dist/_chunks/{patient-picker-CQNsqYn2.js → patient-picker-Dm74jHIk.js} +2 -2
- package/dist/_chunks/{patient-search-C6-INPjs.js → patient-search-5nLD0jpg.js} +3 -3
- package/dist/_chunks/{patient-sign-in-pin-DmMBwWet.js → patient-sign-in-pin-da7C8DOd.js} +3 -3
- package/dist/_chunks/{patient-sign-in-steps-BKcxNkdY.js → patient-sign-in-steps-kS2ktytw.js} +5 -5
- package/dist/_chunks/{patient-summary-card-NYjO0IfN.js → patient-summary-card-roM9Esfb.js} +5 -5
- package/dist/_chunks/{payment-automation-upsell-CGdG2Mwk.js → payment-automation-upsell-N1A_IIw0.js} +2 -2
- package/dist/_chunks/{payment-request-card-CNW00DCx.js → payment-request-card-C9VglWsV.js} +3 -3
- package/dist/_chunks/{periodontal-chart-DqHrQY4e.js → periodontal-chart-C5JFeQS7.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-q9WSHRC2.js → periodontal-chart-card-DiZYn_60.js} +2 -2
- package/dist/_chunks/{popover-CkvP3rHZ.js → popover-C9O7my6h.js} +2 -2
- package/dist/_chunks/{portal-details-D9oF6FUV.js → portal-details-CKF4yFHs.js} +5 -5
- package/dist/_chunks/{portal-documents-DSiLSave.js → portal-documents-DvpAwmSI.js} +5 -5
- package/dist/_chunks/{portal-parts-8qrUM-uK.js → portal-parts-Cvu4PfIY.js} +5 -5
- package/dist/_chunks/{practice-results-BUEsl2Pj.js → practice-results-D0TAgL8v.js} +6 -6
- package/dist/_chunks/{pregnancy-dating-wc9iCN0f.js → pregnancy-dating-BEVI6zvu.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-DmrVHk9y.js → pregnancy-weight-gain-CDkFYcWW.js} +2 -2
- package/dist/_chunks/{prescription-history-DFcPXYdF.js → prescription-history-CD3e3U3I.js} +15 -15
- package/dist/_chunks/{privacy-lock-CcrjIbBv.js → privacy-lock-C25IybCx.js} +3 -3
- package/dist/_chunks/{privacy-mask-C2ZLKrMh.js → privacy-mask-zVh0ntm0.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BPpmVDm5.js → product-hub-panel-NVpRuJeW.js} +4 -4
- package/dist/_chunks/{public-header.agent-Dsl9zhA2.js → public-header.agent-Dzo6ujrE.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-CSpr2paU.js → radiograph-panel.agent-BUZPsuSP.js} +4 -4
- package/dist/_chunks/{recaptcha-widget-iglUBIF3.js → recaptcha-widget-D6RwGg8B.js} +35 -35
- package/dist/_chunks/{registration-form-DRGMzq9V.js → registration-form-AtRCt8n5.js} +4 -4
- package/dist/_chunks/{reserved.agent-C_pr0bHy.js → reserved.agent-DjvapRF1.js} +6 -6
- package/dist/_chunks/{reset-password-form-DwtSNhnA.js → reset-password-form-AMUxqdAS.js} +2 -2
- package/dist/_chunks/{reviews-panel-CdHUSndF.js → reviews-panel-Cw5ygAxs.js} +4 -4
- package/dist/_chunks/{rich-text-editor-CQ54ybTB.js → rich-text-editor-Cx9cA4pd.js} +1346 -1305
- package/dist/_chunks/{row-actions-C6d6vy5z.js → row-actions-CA938TAd.js} +3 -3
- package/dist/_chunks/{saved-view-tabs-CVUM3Nqz.js → saved-view-tabs-COU4bT59.js} +3 -3
- package/dist/_chunks/{send-registration-link-form-D-NkS__p.js → send-registration-link-form-D1lPdOPC.js} +2 -2
- package/dist/_chunks/{session-countdown-StcyUU5O.js → session-countdown-CGsIG01-.js} +2 -2
- package/dist/_chunks/{sheet-BIAhwdyS.js → sheet-CZDjW9Q-.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-DzrNgbWv.js → sign-in-with-alfadocs-button-D7JQVzZK.js} +2 -2
- package/dist/_chunks/{signature-request-BfKo3vOz.js → signature-request-CfHfAEQt.js} +3 -3
- package/dist/_chunks/{signed-out-frame-Oa2e1yps.js → signed-out-frame-CC25CgKo.js} +3 -3
- package/dist/_chunks/{signing-end-screen-Pmda6tCH.js → signing-end-screen-Bq6tkFE6.js} +5 -5
- package/dist/_chunks/{slot-grid-CfA5zeMv.js → slot-grid-khIpy8Gx.js} +4 -4
- package/dist/_chunks/{sms-code-entry-Dgp4GwlM.js → sms-code-entry-C70L3m6-.js} +2 -2
- package/dist/_chunks/{specialty-list-BzalHR8_.js → specialty-list-1tltjGRG.js} +2 -2
- package/dist/_chunks/{step-up-dialog-C1O8ctoh.js → step-up-dialog-NkVLEV9z.js} +3 -3
- package/dist/_chunks/{streaming-text-Nb3Q7L94.js → streaming-text-BXoHgx0l.js} +2 -2
- package/dist/_chunks/{sync-tray-BTmveFGE.js → sync-tray-BQD-HuA4.js} +56 -54
- package/dist/_chunks/{task-editor-DNkrLbgK.js → task-editor-B9YpfwcW.js} +7 -7
- package/dist/_chunks/{task-tray-Bmi9wCHq.js → task-tray-CxxcGGgx.js} +3 -3
- package/dist/_chunks/{tasks-panel-Dmp49cBo.js → tasks-panel-DsjfS_k5.js} +140 -140
- package/dist/_chunks/{theme-toggle-C2LPw3xr.js → theme-toggle-DAqT_Yxy.js} +3 -3
- package/dist/_chunks/{timeline-DXko0M1t.js → timeline-BzGi_3GQ.js} +2 -2
- package/dist/_chunks/timestamp-UMF1llBs.js +113 -0
- package/dist/_chunks/{toast-DQ1Zu1kk.js → toast-Cgmh1cvj.js} +2 -2
- package/dist/_chunks/{token-insert-menu-sGtftx4Y.js → token-insert-menu-BxqGMrZN.js} +2 -2
- package/dist/_chunks/{tool-rail-CKOuVHUQ.js → tool-rail-DjPEiBa2.js} +57 -57
- package/dist/_chunks/{toolbar-JTR20W-U.js → toolbar-z_6tE7zG.js} +3 -3
- package/dist/_chunks/{tooth-scheme-DpgciFU8.js → tooth-scheme-C7xJEzaK.js} +2 -2
- package/dist/_chunks/{types-BrJRsnSG.js → types-DjQeiZXC.js} +2 -2
- package/dist/_chunks/{unit-converter-D1e1wZRE.js → unit-converter-CdrdnDlr.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DIRHedaM.js → use-appointment-details-read-Dod21IxM.js} +588 -565
- package/dist/_chunks/use-resolved-theme-B0f1_oyq.js +32 -0
- package/dist/_chunks/{verify-identity-types-CpeJIc9F.js → verify-identity-types-D0-sw1Qk.js} +2 -2
- package/dist/_chunks/{voice-control-panel-CfBUrzhJ.js → voice-control-panel-DeWo646r.js} +6 -6
- package/dist/_chunks/{warning-stack-Dx7cpj10.js → warning-stack-BvfxZNfR.js} +3 -3
- package/dist/_chunks/{week-availability-CsTiwtYj.js → week-availability-D0tTll4q.js} +2 -2
- package/dist/_chunks/{weekly-hours-editor-BsVsgeOc.js → weekly-hours-editor-pTLyK8tt.js} +2 -2
- package/dist/_chunks/{workflow-map-CsfRHhlz.js → workflow-map-F7OThorL.js} +6 -6
- package/dist/_chunks/{workflow-webhook-action-BUWc2txJ.js → workflow-webhook-action-FImC6mwH.js} +6 -6
- package/dist/agent-catalog.json +10 -7
- package/dist/agent-i18n/en.json +3 -3
- 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 +4 -4
- 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-credits-notice/index.js +2 -2
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/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/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +5 -0
- package/dist/components/appointment-details-panel/index.js +2 -2
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +27 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/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/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/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/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -1
- package/dist/components/clinical-note-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/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-grid-tabs/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- 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/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/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/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/invoice-upload/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/medication-line/index.js +1 -1
- package/dist/components/medication-search/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +5 -4
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/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/recaptcha-widget/index.js +1 -1
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +2 -0
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/row-actions/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sms-code-entry/index.js +1 -1
- package/dist/components/specialty-list/index.js +1 -1
- package/dist/components/step-up-dialog/index.js +1 -1
- package/dist/components/streaming-text/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/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/timestamp/timestamp.d.ts +6 -0
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/week-availability/index.js +1 -1
- package/dist/components/weekly-hours-editor/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/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +58 -56
- package/dist/hooks/use-resolved-theme.d.ts +20 -0
- package/dist/host-calendar-selection.css +89 -0
- package/dist/i18n/locales/ar.d.ts +5 -0
- package/dist/i18n/locales/ar.js +5 -0
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/de.js +5 -0
- package/dist/i18n/locales/el.d.ts +5 -0
- package/dist/i18n/locales/el.js +5 -0
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.js +5 -0
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/es.js +5 -0
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/fr.js +5 -0
- package/dist/i18n/locales/hi.d.ts +5 -0
- package/dist/i18n/locales/hi.js +5 -0
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/it.js +5 -0
- package/dist/i18n/locales/ja.d.ts +5 -0
- package/dist/i18n/locales/ja.js +5 -0
- package/dist/i18n/locales/nl.d.ts +5 -0
- package/dist/i18n/locales/nl.js +5 -0
- package/dist/i18n/locales/pl.d.ts +5 -0
- package/dist/i18n/locales/pl.js +5 -0
- package/dist/i18n/locales/pt.d.ts +5 -0
- package/dist/i18n/locales/pt.js +5 -0
- package/dist/i18n/locales/ro.d.ts +5 -0
- package/dist/i18n/locales/ro.js +5 -0
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/locales/ru.js +5 -0
- package/dist/i18n/locales/sq.d.ts +5 -0
- package/dist/i18n/locales/sq.js +5 -0
- package/dist/i18n/locales/sv.d.ts +5 -0
- package/dist/i18n/locales/sv.js +5 -0
- package/dist/i18n/locales/tr.d.ts +5 -0
- package/dist/i18n/locales/tr.js +5 -0
- package/dist/i18n/locales/zh.d.ts +5 -0
- package/dist/i18n/locales/zh.js +5 -0
- package/dist/index.js +162 -162
- package/dist/locales/ar.json +5 -0
- package/dist/locales/de.json +5 -0
- package/dist/locales/el.json +5 -0
- package/dist/locales/en.json +5 -0
- package/dist/locales/es.json +5 -0
- package/dist/locales/fr.json +5 -0
- package/dist/locales/hi.json +5 -0
- package/dist/locales/it.json +5 -0
- package/dist/locales/ja.json +5 -0
- package/dist/locales/nl.json +5 -0
- package/dist/locales/pl.json +5 -0
- package/dist/locales/pt.json +5 -0
- package/dist/locales/ro.json +5 -0
- package/dist/locales/ru.json +5 -0
- package/dist/locales/sq.json +5 -0
- package/dist/locales/sv.json +5 -0
- package/dist/locales/tr.json +5 -0
- package/dist/locales/zh.json +5 -0
- 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/check-in-documents/index.js +1 -1
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +2 -2
- 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/patient-sign-in/index.js +2 -2
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/signing/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +4 -4
- package/package.json +7 -2
- package/dist/_chunks/appointment-timeline-BK68CCBl.js +0 -689
- package/dist/_chunks/timestamp-DPLDWdxA.js +0 -109
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { jsxs as v, jsx as e, Fragment as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
1
|
+
import { jsxs as v, jsx as e, Fragment as ie } from "react/jsx-runtime";
|
|
2
|
+
import { c as lt } from "./index-D2ZczOXr.js";
|
|
3
|
+
import { useId as je, useRef as R, forwardRef as Zt, useEffect as Ae, useMemo as kt, useState as H, useCallback as en } from "react";
|
|
4
|
+
import { useTranslation as J } from "react-i18next";
|
|
5
|
+
import { u as tn } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { u as ue } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { g as
|
|
9
|
-
import { h as
|
|
10
|
-
import { c as
|
|
11
|
-
import { A as
|
|
12
|
-
import { B as C } from "./button-
|
|
13
|
-
import { I as
|
|
14
|
-
import { B as
|
|
15
|
-
import { D as
|
|
16
|
-
import { E as
|
|
17
|
-
import { N as
|
|
18
|
-
import { P as
|
|
19
|
-
import { P as
|
|
20
|
-
import { P as
|
|
7
|
+
import { c as nn } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
+
import { g as nt } from "./get-error-message-DbFUzuja.js";
|
|
9
|
+
import { h as Ze } from "./handled-rejection-C-6Dq0As.js";
|
|
10
|
+
import { c as an, a as wt } from "./privacy-mask-zVh0ntm0.js";
|
|
11
|
+
import { A as X } from "./alert-C4WKViaS.js";
|
|
12
|
+
import { B as C } from "./button-Dp4j9ygh.js";
|
|
13
|
+
import { I as Mt } from "./icon-button-u9VMQn3x.js";
|
|
14
|
+
import { B as sn } from "./button-group-N60L3HMa.js";
|
|
15
|
+
import { D as $e } from "./dropdown-menu-Bm1KALnk.js";
|
|
16
|
+
import { E as Ft } from "./editable-description-BQauSuCG.js";
|
|
17
|
+
import { N as at } from "./note-timeline-BbjHMhkL.js";
|
|
18
|
+
import { P as Wt } from "./panel-header-CbtlTe85.js";
|
|
19
|
+
import { P as et } from "./panel-subview-DjBwNV16.js";
|
|
20
|
+
import { P as Bt } from "./patient-summary-card-roM9Esfb.js";
|
|
21
21
|
import { S as pe } from "./section-card-CYfeQ6EQ.js";
|
|
22
|
-
import { C as
|
|
23
|
-
import { T as
|
|
24
|
-
import { T as
|
|
25
|
-
import { T as
|
|
26
|
-
import { a as
|
|
27
|
-
import { W as
|
|
28
|
-
import { a as
|
|
29
|
-
import { M as
|
|
30
|
-
import { R as
|
|
31
|
-
import { A as
|
|
32
|
-
import { B as
|
|
33
|
-
import { C as
|
|
34
|
-
import { D as
|
|
35
|
-
import { T as
|
|
36
|
-
import { T as
|
|
37
|
-
import { H as
|
|
38
|
-
import { c as
|
|
39
|
-
import { S as
|
|
40
|
-
import { P as
|
|
41
|
-
import { M as
|
|
42
|
-
import { M as
|
|
43
|
-
import { F as
|
|
44
|
-
import { C as
|
|
45
|
-
import { P as
|
|
46
|
-
import { C as
|
|
47
|
-
import { H as
|
|
48
|
-
import { R as
|
|
49
|
-
import { C as
|
|
50
|
-
import { C as
|
|
51
|
-
import { H as
|
|
52
|
-
import { V as
|
|
53
|
-
import { A as
|
|
54
|
-
import { B as
|
|
55
|
-
import { R as
|
|
56
|
-
import { N as
|
|
57
|
-
import { C as
|
|
58
|
-
import { U as
|
|
59
|
-
import { P as
|
|
60
|
-
import { C as
|
|
61
|
-
import { P as
|
|
62
|
-
import { S as
|
|
63
|
-
import { T as
|
|
64
|
-
import { H as
|
|
65
|
-
import { C as
|
|
66
|
-
import { C as
|
|
67
|
-
import { C as
|
|
68
|
-
import { F as
|
|
69
|
-
import { F as
|
|
70
|
-
import { F as
|
|
71
|
-
import { R as
|
|
22
|
+
import { C as on, S as Se } from "./skeleton-tTWJpvAq.js";
|
|
23
|
+
import { T as rn } from "./text-area-COMVJ1yE.js";
|
|
24
|
+
import { T as ln } from "./tooltip-uEBdD1-5.js";
|
|
25
|
+
import { T as Ut } from "./treatment-receipt-BZzwvsnY.js";
|
|
26
|
+
import { a as tt } from "./whatsapp-button-XbozeDl_.js";
|
|
27
|
+
import { W as dn, a as cn } from "./workflow-status-Cg7yjnye.js";
|
|
28
|
+
import { a as St, u as un, i as pn } from "./appointment-workflow-status-S-lx81Yz.js";
|
|
29
|
+
import { M as mn, C as At, A as hn } from "./appointment-details-panel.history-eqPMKmW0.js";
|
|
30
|
+
import { R as fn, a as xt, b as it, e as gn, g as vn, c as yn, d as bn, h as kn, D as Nt, f as wn, i as Sn, p as An } from "./appointment-details-panel.identity--_j07UG1.js";
|
|
31
|
+
import { A as Tt } from "./avatar-Dp5apm1d.js";
|
|
32
|
+
import { B as $t } from "./badge-BUk4RjTS.js";
|
|
33
|
+
import { C as xn } from "./counter-WsvRuum1.js";
|
|
34
|
+
import { D as qe } from "./description-list-DA4TgL_I.js";
|
|
35
|
+
import { T as Et } from "./timestamp-UMF1llBs.js";
|
|
36
|
+
import { T as Nn } from "./transaction-chip-CkYd-3ky.js";
|
|
37
|
+
import { H as xe } from "./hover-card-CS8ulBf9.js";
|
|
38
|
+
import { c as qt } from "./createLucideIcon-DhHxpK9K.js";
|
|
39
|
+
import { S as Ct } from "./smartphone-C0rFF2if.js";
|
|
40
|
+
import { P as Tn } from "./phone-FceYcIFQ.js";
|
|
41
|
+
import { M as En } from "./mail-BqXVF2zH.js";
|
|
42
|
+
import { M as Cn } from "./map-pin-BaY37-Km.js";
|
|
43
|
+
import { F as In } from "./file-pen-line-k4uMBM3h.js";
|
|
44
|
+
import { C as Dn } from "./contact-round-DiSvB3LP.js";
|
|
45
|
+
import { P as Rn } from "./pen-line-D0De5zdl.js";
|
|
46
|
+
import { C as Pn } from "./credit-card-D9XZsHGA.js";
|
|
47
|
+
import { H as Ln } from "./heart-pulse-BCppJyN2.js";
|
|
48
|
+
import { R as On } from "./refresh-cw-DnI0cLFC.js";
|
|
49
|
+
import { C as _n } from "./calendar-days-BGWklvE-.js";
|
|
50
|
+
import { C as Hn } from "./clock-Drd4Wtis.js";
|
|
51
|
+
import { H as Mn } from "./hourglass-BEAzW1wE.js";
|
|
52
|
+
import { V as zt } from "./video-BheNGvsu.js";
|
|
53
|
+
import { A as It } from "./armchair-BaLDW6Hz.js";
|
|
54
|
+
import { B as Fn } from "./building-2-D33bLCWL.js";
|
|
55
|
+
import { R as Wn } from "./repeat-CvQa5rZt.js";
|
|
56
|
+
import { N as Bn } from "./notebook-pen-CO7HoM-W.js";
|
|
57
|
+
import { C as st } from "./clipboard-list-rSzfIYZB.js";
|
|
58
|
+
import { U as Un } from "./user-plus-BtcOLgNU.js";
|
|
59
|
+
import { P as Dt } from "./pencil-B1sKKyuT.js";
|
|
60
|
+
import { C as $n } from "./copy-vRpqqHtY.js";
|
|
61
|
+
import { P as qn } from "./plus-DzMQ_c6b.js";
|
|
62
|
+
import { S as zn } from "./square-check-big-dj0o8yA3.js";
|
|
63
|
+
import { T as Kn } from "./trash-2-uumy3fy1.js";
|
|
64
|
+
import { H as Rt } from "./history-CK2JaU2g.js";
|
|
65
|
+
import { C as Kt } from "./calendar-clock-hbObjfGY.js";
|
|
66
|
+
import { C as jn } from "./chevron-down-DWE7GSq9.js";
|
|
67
|
+
import { C as Yn } from "./camera-VSklPDCv.js";
|
|
68
|
+
import { F as Vn } from "./file-BuG1VMAy.js";
|
|
69
|
+
import { F as Gn } from "./file-text-5yv6r2ls.js";
|
|
70
|
+
import { F as Xn } from "./folder-BghC8_S2.js";
|
|
71
|
+
import { R as Jn } from "./receipt-euro-B1cLM_TN.js";
|
|
72
72
|
/**
|
|
73
73
|
* @license lucide-react v1.22.0 - ISC
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
77
|
*/
|
|
78
|
-
const
|
|
78
|
+
const Qn = [
|
|
79
79
|
["path", { d: "M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8", key: "1w3rig" }],
|
|
80
80
|
["path", { d: "M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1", key: "n2jgmb" }],
|
|
81
81
|
["path", { d: "M2 21h20", key: "1nyx9w" }],
|
|
@@ -85,20 +85,20 @@ const Gn = [
|
|
|
85
85
|
["path", { d: "M7 4h.01", key: "1bh4kh" }],
|
|
86
86
|
["path", { d: "M12 4h.01", key: "1ujb9j" }],
|
|
87
87
|
["path", { d: "M17 4h.01", key: "1upcoc" }]
|
|
88
|
-
],
|
|
88
|
+
], Zn = qt("cake", Qn);
|
|
89
89
|
/**
|
|
90
90
|
* @license lucide-react v1.22.0 - ISC
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the ISC license.
|
|
93
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
94
|
*/
|
|
95
|
-
const
|
|
95
|
+
const ea = [
|
|
96
96
|
["path", { d: "M16 10h2", key: "8sgtl7" }],
|
|
97
97
|
["path", { d: "M16 14h2", key: "epxaof" }],
|
|
98
98
|
["path", { d: "M6.17 15a3 3 0 0 1 5.66 0", key: "n6f512" }],
|
|
99
99
|
["circle", { cx: "9", cy: "11", r: "2", key: "yxgjnd" }],
|
|
100
100
|
["rect", { x: "2", y: "5", width: "20", height: "14", rx: "2", key: "qneu4z" }]
|
|
101
|
-
],
|
|
101
|
+
], ta = qt("id-card", ea), na = '[data-component="button-group"] [data-component="icon-button"][aria-haspopup="menu"]', aa = {
|
|
102
102
|
id: "appointment-details-panel",
|
|
103
103
|
// open and close back open_history and close_history; set_value backs
|
|
104
104
|
// set_status.
|
|
@@ -214,7 +214,7 @@ const Jn = [
|
|
|
214
214
|
root: {
|
|
215
215
|
attr: "data-component",
|
|
216
216
|
value: "appointment-details-panel",
|
|
217
|
-
description: `Marks the panel. It also carries data-event-id and data-status. Inside, cards carry data-card (patient, appointment, notes, treatments), footer actions data-action, and the History and description sub-views data-details-subview. An action in offeredActions with no data-action in the footer strip is folded into More: click the panel's ${
|
|
217
|
+
description: `Marks the panel. It also carries data-event-id and data-status. Inside, cards carry data-card (patient, appointment, notes, treatments), footer actions data-action, and the History and description sub-views data-details-subview. An action in offeredActions with no data-action in the footer strip is folded into More: click the panel's ${na}, and its menu item carries the same data-action.`
|
|
218
218
|
},
|
|
219
219
|
instanceId: {
|
|
220
220
|
attr: "data-component-id",
|
|
@@ -223,13 +223,13 @@ const Jn = [
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
|
-
function
|
|
226
|
+
function ot(t) {
|
|
227
227
|
const n = document.activeElement;
|
|
228
228
|
n && n !== document.body || t == null || t.focus({ preventScroll: !0 });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function He(t) {
|
|
231
231
|
const n = document.getElementById(t);
|
|
232
|
-
n && !n.hasAttribute("tabindex") && (n.tabIndex = -1),
|
|
232
|
+
n && !n.hasAttribute("tabindex") && (n.tabIndex = -1), ot(n);
|
|
233
233
|
}
|
|
234
234
|
const ce = {
|
|
235
235
|
advancedSignature: "setup-advanced-signature",
|
|
@@ -240,7 +240,7 @@ const ce = {
|
|
|
240
240
|
unlockPayments: "unlock-payments",
|
|
241
241
|
carePlan: "open-care-plan"
|
|
242
242
|
};
|
|
243
|
-
function
|
|
243
|
+
function ze(t) {
|
|
244
244
|
if (t)
|
|
245
245
|
try {
|
|
246
246
|
const { protocol: n } = new URL(t, "https://host.invalid");
|
|
@@ -249,7 +249,7 @@ function $e(t) {
|
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
const
|
|
252
|
+
const ia = {
|
|
253
253
|
SU: 0,
|
|
254
254
|
MO: 1,
|
|
255
255
|
TU: 2,
|
|
@@ -257,25 +257,25 @@ const ta = {
|
|
|
257
257
|
TH: 4,
|
|
258
258
|
FR: 5,
|
|
259
259
|
SA: 6
|
|
260
|
-
},
|
|
260
|
+
}, sa = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"], oa = {
|
|
261
261
|
daily: "recurrenceEveryDay",
|
|
262
262
|
weekly: "recurrenceEveryWeek",
|
|
263
263
|
monthly: "recurrenceEveryMonth",
|
|
264
264
|
yearly: "recurrenceEveryYear"
|
|
265
|
-
},
|
|
265
|
+
}, ra = {
|
|
266
266
|
1: "recurrenceOrdinal1",
|
|
267
267
|
2: "recurrenceOrdinal2",
|
|
268
268
|
3: "recurrenceOrdinal3",
|
|
269
269
|
4: "recurrenceOrdinal4"
|
|
270
|
-
},
|
|
271
|
-
function
|
|
272
|
-
const i = new Date(2026, 0, 4 +
|
|
270
|
+
}, la = /^(-1|[1-4])?(MO|TU|WE|TH|FR|SA|SU)$/;
|
|
271
|
+
function Pt(t, n) {
|
|
272
|
+
const i = new Date(2026, 0, 4 + ia[t]);
|
|
273
273
|
return new Intl.DateTimeFormat(n, { weekday: "long" }).format(i);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
const d =
|
|
275
|
+
function da(t, n, i) {
|
|
276
|
+
const d = xt(n);
|
|
277
277
|
if (!Number.isFinite(d.getTime())) return;
|
|
278
|
-
const c = i ?
|
|
278
|
+
const c = i ? xt(i) : void 0, l = c && c.getFullYear() === d.getFullYear();
|
|
279
279
|
try {
|
|
280
280
|
return new Intl.DateTimeFormat(t, {
|
|
281
281
|
day: "numeric",
|
|
@@ -286,10 +286,10 @@ function oa(t, n, i) {
|
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
const c =
|
|
289
|
+
function ca(t, n, i, d) {
|
|
290
|
+
const c = fn[i.frequency];
|
|
291
291
|
if (!c) return;
|
|
292
|
-
const l = (b) => `calendarWorkspace.editor.${b}`, u = (b) => `calendarWorkspace.details.${b}`, p =
|
|
292
|
+
const l = (b) => `calendarWorkspace.editor.${b}`, u = (b) => `calendarWorkspace.details.${b}`, p = oa[i.frequency], r = p && (i.interval ?? 1) > 1 ? t(l(p), { count: i.interval }) : t(l(c)), a = (i.byDay ?? []).map((b) => la.exec(b)).filter((b) => b !== null), o = i.frequency === "weekly" ? sa.filter(
|
|
293
293
|
(b) => a.some(([, m, N]) => !m && N === b)
|
|
294
294
|
) : [], f = i.frequency === "monthly" || i.frequency === "yearly" ? a.find(([, b]) => b) : void 0;
|
|
295
295
|
let y = r;
|
|
@@ -297,15 +297,15 @@ function ra(t, n, i, d) {
|
|
|
297
297
|
y = t(u("seriesOnDays"), {
|
|
298
298
|
every: r,
|
|
299
299
|
days: new Intl.ListFormat(n, { type: "conjunction" }).format(
|
|
300
|
-
o.map((b) =>
|
|
300
|
+
o.map((b) => Pt(b, n))
|
|
301
301
|
)
|
|
302
302
|
});
|
|
303
303
|
else if (f) {
|
|
304
|
-
const [, b, m] = f, N =
|
|
304
|
+
const [, b, m] = f, N = Pt(m, n);
|
|
305
305
|
y = b === "-1" ? t(u("seriesOnLast"), { every: r, weekday: N }) : t(u("seriesOnNth"), {
|
|
306
306
|
every: r,
|
|
307
307
|
weekday: N,
|
|
308
|
-
ordinal: t(l(
|
|
308
|
+
ordinal: t(l(ra[b]))
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
if (i.count !== void 0)
|
|
@@ -313,18 +313,18 @@ function ra(t, n, i, d) {
|
|
|
313
313
|
frequency: y,
|
|
314
314
|
count: i.count
|
|
315
315
|
});
|
|
316
|
-
const k = i.untilIso ?
|
|
316
|
+
const k = i.untilIso ? da(n, i.untilIso, d) : void 0;
|
|
317
317
|
return k ? t(u("seriesUntil"), { rule: y, date: k }) : y;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function rt({
|
|
320
320
|
eyebrow: t,
|
|
321
321
|
heading: n,
|
|
322
322
|
facts: i
|
|
323
323
|
}) {
|
|
324
|
-
return /* @__PURE__ */ v(
|
|
325
|
-
/* @__PURE__ */ e(
|
|
326
|
-
/* @__PURE__ */ e(
|
|
327
|
-
i && i.length > 0 ? /* @__PURE__ */ e(
|
|
324
|
+
return /* @__PURE__ */ v(ie, { children: [
|
|
325
|
+
/* @__PURE__ */ e(xe.Eyebrow, { children: t }),
|
|
326
|
+
/* @__PURE__ */ e(xe.Heading, { children: n }),
|
|
327
|
+
i && i.length > 0 ? /* @__PURE__ */ e(xe.Body, { children: /* @__PURE__ */ e("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-0 type-body-sm", children: i.map((d, c) => /* @__PURE__ */ e(
|
|
328
328
|
"li",
|
|
329
329
|
{
|
|
330
330
|
className: d.muted ? "ds:text-[color:var(--muted-foreground)]" : void 0,
|
|
@@ -334,31 +334,31 @@ function st({
|
|
|
334
334
|
)) }) }) : null
|
|
335
335
|
] });
|
|
336
336
|
}
|
|
337
|
-
const
|
|
338
|
-
function
|
|
337
|
+
const ua = "ds:inline-flex ds:cursor-pointer ds:rounded-[var(--radius-full)] ds:p-0 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
|
|
338
|
+
function Lt({
|
|
339
339
|
id: t,
|
|
340
340
|
eyebrow: n,
|
|
341
341
|
heading: i,
|
|
342
342
|
facts: d,
|
|
343
343
|
children: c
|
|
344
344
|
}) {
|
|
345
|
-
return /* @__PURE__ */ v(
|
|
346
|
-
/* @__PURE__ */ e(
|
|
347
|
-
/* @__PURE__ */ e(
|
|
345
|
+
return /* @__PURE__ */ v(xe, { children: [
|
|
346
|
+
/* @__PURE__ */ e(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ e("button", { type: "button", "data-chip-hover": t, className: ua, children: c }) }),
|
|
347
|
+
/* @__PURE__ */ e(xe.Content, { side: "bottom", align: "start", size: "sm", children: /* @__PURE__ */ e(rt, { eyebrow: n, heading: i, facts: d }) })
|
|
348
348
|
] });
|
|
349
349
|
}
|
|
350
|
-
const s = (t) => `calendarWorkspace.details.${t}`,
|
|
350
|
+
const s = (t) => `calendarWorkspace.details.${t}`, pa = {
|
|
351
351
|
missing: "consentMissing",
|
|
352
352
|
requested: "consentRequested",
|
|
353
353
|
signed: "consentSigned"
|
|
354
|
-
},
|
|
355
|
-
function
|
|
354
|
+
}, jt = (t) => /* @__PURE__ */ e("a", { href: `tel:${t.replace(/\s/g, "")}`, dir: "ltr", children: t }), Yt = (t) => /* @__PURE__ */ e("a", { href: `mailto:${t}`, dir: "ltr", children: t }), Vt = (t, n, i) => new Intl.NumberFormat(t, { style: "currency", currency: i }).format(n);
|
|
355
|
+
function Ke({
|
|
356
356
|
href: t,
|
|
357
357
|
action: n,
|
|
358
358
|
icon: i,
|
|
359
359
|
children: d
|
|
360
360
|
}) {
|
|
361
|
-
const c =
|
|
361
|
+
const c = ze(t);
|
|
362
362
|
return c ? /* @__PURE__ */ e(
|
|
363
363
|
C,
|
|
364
364
|
{
|
|
@@ -371,22 +371,22 @@ function qe({
|
|
|
371
371
|
}
|
|
372
372
|
) : null;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ot({ rows: t }) {
|
|
375
375
|
const n = t.filter((i) => !!i);
|
|
376
|
-
return n.length === 0 ? null : /* @__PURE__ */ e(
|
|
377
|
-
|
|
376
|
+
return n.length === 0 ? null : /* @__PURE__ */ e(qe, { layout: "inline", density: "compact", children: n.map((i) => /* @__PURE__ */ v(
|
|
377
|
+
qe.Row,
|
|
378
378
|
{
|
|
379
379
|
"data-row": i.id,
|
|
380
380
|
icon: i.icon,
|
|
381
381
|
children: [
|
|
382
|
-
/* @__PURE__ */ e(
|
|
383
|
-
/* @__PURE__ */ e(
|
|
382
|
+
/* @__PURE__ */ e(qe.Term, { children: i.label }),
|
|
383
|
+
/* @__PURE__ */ e(qe.Detail, { children: i.value })
|
|
384
384
|
]
|
|
385
385
|
},
|
|
386
386
|
i.id
|
|
387
387
|
)) });
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function ma({
|
|
390
390
|
details: t,
|
|
391
391
|
locale: n,
|
|
392
392
|
currency: i,
|
|
@@ -397,66 +397,66 @@ function ca({
|
|
|
397
397
|
onSignOnDevice: p,
|
|
398
398
|
onOpenPatient: r
|
|
399
399
|
}) {
|
|
400
|
-
const { t: a } =
|
|
400
|
+
const { t: a } = J("ui"), { patient: o, signing: f, money: y, booking: k } = t;
|
|
401
401
|
if (!o) return null;
|
|
402
402
|
const b = (f == null ? void 0 : f.consents) ?? [], m = f && (f.required > 0 || b.length > 0) ? f : void 0, N = ((m == null ? void 0 : m.toComplete) ?? 0) > 0, L = m ? [
|
|
403
403
|
{
|
|
404
404
|
text: N ? m.requestedVia === "sms" ? a(s("signingRequestedSms")) : m.requestedVia === "email" ? a(s("signingRequestedEmail")) : a(s("signingNotRequested")) : a(s("signingAllSigned"))
|
|
405
405
|
},
|
|
406
406
|
...m.aesSetUp ? [] : [{ text: a(s("aesMissing")), muted: !0 }]
|
|
407
|
-
] : [], P = ((f == null ? void 0 : f.required) ?? 0) > 0 && N,
|
|
407
|
+
] : [], P = ((f == null ? void 0 : f.required) ?? 0) > 0 && N, T = !!(l != null && l.advancedSignatureUrl) && ((f == null ? void 0 : f.required) ?? 0) > 0 && !(f != null && f.aesSetUp), M = !!u && P, E = !!p && P, I = o.highlightedAnamnesisCount ?? 0, F = o.expiredAnamnesisCount ?? 0, z = (o.highlightedAnamnesisAnswers ?? []).map((x) => ({
|
|
408
408
|
text: [
|
|
409
409
|
x.question,
|
|
410
410
|
a(s(x.yes ? "anamnesisYes" : "anamnesisNo")),
|
|
411
411
|
x.answer,
|
|
412
|
-
|
|
412
|
+
it(n, x.interviewIso)
|
|
413
413
|
].filter(Boolean).join(" · ")
|
|
414
|
-
})),
|
|
414
|
+
})), Q = gn(o), se = vn(o) || Q, K = b.map((x) => ({
|
|
415
415
|
id: `consent-${x.id}`,
|
|
416
416
|
label: x.name,
|
|
417
|
-
value: a(s(
|
|
418
|
-
})),
|
|
417
|
+
value: a(s(pa[x.state]))
|
|
418
|
+
})), j = [
|
|
419
419
|
...o.dobIso ? [
|
|
420
420
|
{
|
|
421
421
|
id: "dob",
|
|
422
422
|
label: a(s("dob")),
|
|
423
|
-
icon: /* @__PURE__ */ e(
|
|
424
|
-
value: `${
|
|
423
|
+
icon: /* @__PURE__ */ e(Zn, {}),
|
|
424
|
+
value: `${it(n, o.dobIso)} ${a(
|
|
425
425
|
s("patientAge"),
|
|
426
426
|
{
|
|
427
|
-
n:
|
|
427
|
+
n: yn(o.dobIso, d)
|
|
428
428
|
}
|
|
429
429
|
)}`
|
|
430
430
|
}
|
|
431
431
|
] : [],
|
|
432
|
-
...
|
|
433
|
-
const
|
|
432
|
+
...bn(o).map((x, V) => {
|
|
433
|
+
const te = x.label === "mobile" || x.label === "home" || x.label === "work";
|
|
434
434
|
return {
|
|
435
|
-
id: `phone-${
|
|
436
|
-
label: a(
|
|
437
|
-
icon: x.label === "mobile" ? /* @__PURE__ */ e(
|
|
438
|
-
value:
|
|
435
|
+
id: `phone-${V}`,
|
|
436
|
+
label: a(te ? `calendarWorkspace.print.phoneLabels.${x.label}` : s("phone")),
|
|
437
|
+
icon: x.label === "mobile" ? /* @__PURE__ */ e(Ct, {}) : /* @__PURE__ */ e(Tn, {}),
|
|
438
|
+
value: jt(x.number)
|
|
439
439
|
};
|
|
440
440
|
}),
|
|
441
441
|
...o.email ? [
|
|
442
442
|
{
|
|
443
443
|
id: "email",
|
|
444
444
|
label: a(s("email")),
|
|
445
|
-
icon: /* @__PURE__ */ e(
|
|
446
|
-
value:
|
|
445
|
+
icon: /* @__PURE__ */ e(En, {}),
|
|
446
|
+
value: Yt(o.email)
|
|
447
447
|
}
|
|
448
448
|
] : [],
|
|
449
449
|
/* P27: hidden patient details leave the address out, and with it the
|
|
450
450
|
row: no map link and no empty "address" line. */
|
|
451
|
-
...c &&
|
|
451
|
+
...c && Q ? [
|
|
452
452
|
{
|
|
453
453
|
id: "address",
|
|
454
454
|
label: a(s("address")),
|
|
455
|
-
icon: /* @__PURE__ */ e(
|
|
455
|
+
icon: /* @__PURE__ */ e(Cn, {}),
|
|
456
456
|
value: /* @__PURE__ */ e(
|
|
457
457
|
"a",
|
|
458
458
|
{
|
|
459
|
-
href:
|
|
459
|
+
href: kn(o),
|
|
460
460
|
target: "_blank",
|
|
461
461
|
rel: "noopener noreferrer",
|
|
462
462
|
"aria-label": `${a(s("mapsLink"))}: ${se}`,
|
|
@@ -465,33 +465,33 @@ function ca({
|
|
|
465
465
|
)
|
|
466
466
|
}
|
|
467
467
|
] : []
|
|
468
|
-
],
|
|
469
|
-
|
|
468
|
+
], W = (y == null ? void 0 : y.unpaidAmount) ?? 0, Y = (y == null ? void 0 : y.billableAmount) ?? 0, Z = (k == null ? void 0 : k.paidOnlineAmount) ?? 0, ee = (x, V, te, Ne, Te, me) => /* @__PURE__ */ e(
|
|
469
|
+
Lt,
|
|
470
470
|
{
|
|
471
|
-
id:
|
|
471
|
+
id: te,
|
|
472
472
|
eyebrow: a(s("hoverBilling")),
|
|
473
|
-
heading: a(s(
|
|
474
|
-
amount:
|
|
473
|
+
heading: a(s(Ne), {
|
|
474
|
+
amount: Vt(n, V, i)
|
|
475
475
|
}),
|
|
476
|
-
facts: [{ text: a(s(
|
|
476
|
+
facts: [{ text: a(s(Te)) }],
|
|
477
477
|
children: /* @__PURE__ */ e(
|
|
478
|
-
|
|
478
|
+
Nn,
|
|
479
479
|
{
|
|
480
|
-
"data-chip":
|
|
480
|
+
"data-chip": te,
|
|
481
481
|
state: x,
|
|
482
|
-
amount:
|
|
482
|
+
amount: V,
|
|
483
483
|
currency: i,
|
|
484
484
|
locale: n,
|
|
485
485
|
size: "md",
|
|
486
486
|
showLabel: !0,
|
|
487
|
-
label:
|
|
487
|
+
label: me,
|
|
488
488
|
showIcon: !1
|
|
489
489
|
}
|
|
490
490
|
)
|
|
491
491
|
}
|
|
492
492
|
);
|
|
493
493
|
return /* @__PURE__ */ e(
|
|
494
|
-
|
|
494
|
+
Bt,
|
|
495
495
|
{
|
|
496
496
|
"data-card": "patient",
|
|
497
497
|
name: o.name,
|
|
@@ -506,7 +506,7 @@ function ca({
|
|
|
506
506
|
flagHover: {
|
|
507
507
|
...m ? {
|
|
508
508
|
unsignedDocuments: /* @__PURE__ */ e(
|
|
509
|
-
|
|
509
|
+
rt,
|
|
510
510
|
{
|
|
511
511
|
eyebrow: a(s("sectionSigning")),
|
|
512
512
|
heading: m.toComplete === 1 ? a(s("signingToSignOne")) : a(s("signingToSignMany"), {
|
|
@@ -517,7 +517,7 @@ function ca({
|
|
|
517
517
|
)
|
|
518
518
|
} : {},
|
|
519
519
|
highlightedAnamnesis: /* @__PURE__ */ e(
|
|
520
|
-
|
|
520
|
+
rt,
|
|
521
521
|
{
|
|
522
522
|
eyebrow: a(s("anamnesisTitle")),
|
|
523
523
|
heading: a(s("anamnesisHighlighted"), { n: I }),
|
|
@@ -525,25 +525,25 @@ function ca({
|
|
|
525
525
|
}
|
|
526
526
|
)
|
|
527
527
|
},
|
|
528
|
-
extraChips:
|
|
528
|
+
extraChips: W > 0 || Y > 0 || Z > 0 || F > 0 || T || M || E || r ? /* @__PURE__ */ v(ie, { children: [
|
|
529
529
|
/* @__PURE__ */ v("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
530
|
-
|
|
530
|
+
W > 0 ? ee(
|
|
531
531
|
"debt",
|
|
532
|
-
|
|
532
|
+
W,
|
|
533
533
|
"unpaid",
|
|
534
534
|
"hoverUnpaidHeading",
|
|
535
535
|
"hoverUnpaidFact"
|
|
536
536
|
) : null,
|
|
537
|
-
Y > 0 ?
|
|
537
|
+
Y > 0 ? ee(
|
|
538
538
|
"to-invoice",
|
|
539
539
|
Y,
|
|
540
540
|
"billable",
|
|
541
541
|
"hoverBillableHeading",
|
|
542
542
|
"hoverBillableFact"
|
|
543
543
|
) : null,
|
|
544
|
-
|
|
544
|
+
Z > 0 ? ee(
|
|
545
545
|
"settled",
|
|
546
|
-
|
|
546
|
+
Z,
|
|
547
547
|
"paidOnline",
|
|
548
548
|
"hoverPaidOnlineHeading",
|
|
549
549
|
"hoverPaidOnlineFact",
|
|
@@ -558,19 +558,19 @@ function ca({
|
|
|
558
558
|
size: "sm",
|
|
559
559
|
intent: "outline",
|
|
560
560
|
"data-action": ce.requestSignature,
|
|
561
|
-
startIcon: /* @__PURE__ */ e(
|
|
561
|
+
startIcon: /* @__PURE__ */ e(In, { "aria-hidden": "true" }),
|
|
562
562
|
onClick: () => u(t.eventId),
|
|
563
563
|
children: a(s("signingRequest"))
|
|
564
564
|
}
|
|
565
565
|
) : null,
|
|
566
|
-
|
|
566
|
+
E ? /* @__PURE__ */ e(
|
|
567
567
|
C,
|
|
568
568
|
{
|
|
569
569
|
size: "sm",
|
|
570
570
|
intent: "outline",
|
|
571
571
|
"data-action": ce.signOnDevice,
|
|
572
572
|
"aria-label": `${a(s("signingRequest"))}: ${a(s("signingOnDevice"))}`,
|
|
573
|
-
startIcon: /* @__PURE__ */ e(
|
|
573
|
+
startIcon: /* @__PURE__ */ e(Ct, { "aria-hidden": "true" }),
|
|
574
574
|
onClick: () => p(t.eventId),
|
|
575
575
|
children: a(s("signingOnDevice"))
|
|
576
576
|
}
|
|
@@ -581,61 +581,61 @@ function ca({
|
|
|
581
581
|
size: "sm",
|
|
582
582
|
intent: "outline",
|
|
583
583
|
"data-action": ce.openPatient,
|
|
584
|
-
startIcon: /* @__PURE__ */ e(
|
|
584
|
+
startIcon: /* @__PURE__ */ e(Dn, { "aria-hidden": "true" }),
|
|
585
585
|
onClick: () => r(t.eventId),
|
|
586
586
|
children: a(s("openPatient"))
|
|
587
587
|
}
|
|
588
588
|
) : null,
|
|
589
|
-
|
|
590
|
-
|
|
589
|
+
T && (l != null && l.advancedSignatureUrl) ? /* @__PURE__ */ e(
|
|
590
|
+
Ke,
|
|
591
591
|
{
|
|
592
592
|
href: l.advancedSignatureUrl,
|
|
593
593
|
action: ce.advancedSignature,
|
|
594
|
-
icon: /* @__PURE__ */ e(
|
|
594
|
+
icon: /* @__PURE__ */ e(Rn, { "aria-hidden": "true" }),
|
|
595
595
|
children: a(s("aesSetUp"))
|
|
596
596
|
}
|
|
597
597
|
) : null,
|
|
598
|
-
l != null && l.unlockPaymentsUrl && (
|
|
599
|
-
|
|
598
|
+
l != null && l.unlockPaymentsUrl && (W > 0 || Y > 0) ? /* @__PURE__ */ e(
|
|
599
|
+
Ke,
|
|
600
600
|
{
|
|
601
601
|
href: l.unlockPaymentsUrl,
|
|
602
602
|
action: ce.unlockPayments,
|
|
603
|
-
icon: /* @__PURE__ */ e(
|
|
603
|
+
icon: /* @__PURE__ */ e(Pn, { "aria-hidden": "true" }),
|
|
604
604
|
children: a(s("unlockPayments"))
|
|
605
605
|
}
|
|
606
606
|
) : null,
|
|
607
607
|
F > 0 ? /* @__PURE__ */ e(
|
|
608
|
-
|
|
608
|
+
Lt,
|
|
609
609
|
{
|
|
610
610
|
id: "anamnesisExpired",
|
|
611
611
|
eyebrow: a(s("anamnesisTitle")),
|
|
612
612
|
heading: a(s("anamnesisExpired"), { n: F }),
|
|
613
613
|
facts: [{ text: a(s("hoverAnamnesisExpiredFact")) }],
|
|
614
614
|
children: /* @__PURE__ */ e(
|
|
615
|
-
|
|
615
|
+
$t,
|
|
616
616
|
{
|
|
617
617
|
"data-chip": "anamnesisExpired",
|
|
618
618
|
variant: "warning",
|
|
619
619
|
size: "md",
|
|
620
|
-
leading: /* @__PURE__ */ e(
|
|
620
|
+
leading: /* @__PURE__ */ e(Ln, {}),
|
|
621
621
|
children: a(s("anamnesisExpired"), { n: F })
|
|
622
622
|
}
|
|
623
623
|
)
|
|
624
624
|
}
|
|
625
625
|
) : null,
|
|
626
626
|
F > 0 && (l != null && l.renewAnamnesisUrl) ? /* @__PURE__ */ e(
|
|
627
|
-
|
|
627
|
+
Ke,
|
|
628
628
|
{
|
|
629
629
|
href: l.renewAnamnesisUrl,
|
|
630
630
|
action: ce.renewAnamnesis,
|
|
631
|
-
icon: /* @__PURE__ */ e(
|
|
631
|
+
icon: /* @__PURE__ */ e(On, { "aria-hidden": "true" }),
|
|
632
632
|
children: a(s("anamnesisRenew"))
|
|
633
633
|
}
|
|
634
634
|
) : null
|
|
635
635
|
] }) : void 0,
|
|
636
|
-
visibleFieldOrder: [...
|
|
637
|
-
sections:
|
|
638
|
-
...
|
|
636
|
+
visibleFieldOrder: [...j, ...K].map((x) => x.id),
|
|
637
|
+
sections: j.length > 0 || K.length > 0 ? [
|
|
638
|
+
...j.length > 0 ? [{ id: "contact", heading: a(s("sectionPatient")), fields: j }] : [],
|
|
639
639
|
...K.length > 0 ? [
|
|
640
640
|
{
|
|
641
641
|
id: "consents",
|
|
@@ -647,7 +647,7 @@ function ca({
|
|
|
647
647
|
}
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function ha({
|
|
651
651
|
details: t,
|
|
652
652
|
locale: n,
|
|
653
653
|
currency: i,
|
|
@@ -657,18 +657,18 @@ function ua({
|
|
|
657
657
|
privacy: u = !1,
|
|
658
658
|
history: p
|
|
659
659
|
}) {
|
|
660
|
-
const { t: r } =
|
|
660
|
+
const { t: r } = J("ui"), { appointment: a, booking: o, patient: f } = t, y = (I) => r(`calendarWorkspace.editor.${I}`), k = new Date(a.startIso), b = new Date(k.getTime() + a.durationMin * 6e4), m = Number.isFinite(k.getTime()), { recurrence: N } = a, L = N && ca(r, n, N, a.startIso), P = o ? [
|
|
661
661
|
o.bookedAtIso && {
|
|
662
662
|
id: "bookedAt",
|
|
663
663
|
label: r(s("bookedAt")),
|
|
664
664
|
value: /* @__PURE__ */ e(
|
|
665
|
-
|
|
665
|
+
Et,
|
|
666
666
|
{
|
|
667
667
|
value: o.bookedAtIso,
|
|
668
668
|
format: "absolute",
|
|
669
669
|
shape: "bare",
|
|
670
670
|
locale: n,
|
|
671
|
-
absoluteFormat:
|
|
671
|
+
absoluteFormat: Nt
|
|
672
672
|
}
|
|
673
673
|
)
|
|
674
674
|
},
|
|
@@ -680,12 +680,12 @@ function ua({
|
|
|
680
680
|
o.phone && {
|
|
681
681
|
id: "bookingPhone",
|
|
682
682
|
label: r(s("bookingPhone")),
|
|
683
|
-
value:
|
|
683
|
+
value: jt(o.phone)
|
|
684
684
|
},
|
|
685
685
|
o.email && {
|
|
686
686
|
id: "bookingEmail",
|
|
687
687
|
label: r(s("bookingEmail")),
|
|
688
|
-
value:
|
|
688
|
+
value: Yt(o.email)
|
|
689
689
|
},
|
|
690
690
|
o.note && {
|
|
691
691
|
id: "bookingNote",
|
|
@@ -696,10 +696,10 @@ function ua({
|
|
|
696
696
|
!f && o.paidOnlineAmount !== void 0 && {
|
|
697
697
|
id: "paidOnline",
|
|
698
698
|
label: r(s("paidOnline")),
|
|
699
|
-
value:
|
|
699
|
+
value: Vt(n, o.paidOnlineAmount, i)
|
|
700
700
|
}
|
|
701
|
-
] : [],
|
|
702
|
-
(I) => I.kind === "created" && I.actor.trim() !== ""
|
|
701
|
+
] : [], T = u ? P.filter((I) => I && I.id === "bookedAt") : P, M = T.some(Boolean), E = o || a.bookedOnline || p == null ? void 0 : p.filter(
|
|
702
|
+
(I) => (I.kind === "created" || I.kind === "copied") && I.actor.trim() !== ""
|
|
703
703
|
).sort((I, F) => Date.parse(I.atIso) - Date.parse(F.atIso))[0];
|
|
704
704
|
return /* @__PURE__ */ v(
|
|
705
705
|
pe,
|
|
@@ -710,67 +710,67 @@ function ua({
|
|
|
710
710
|
children: [
|
|
711
711
|
l,
|
|
712
712
|
/* @__PURE__ */ e(
|
|
713
|
-
|
|
713
|
+
Ot,
|
|
714
714
|
{
|
|
715
715
|
rows: [
|
|
716
716
|
m && {
|
|
717
717
|
id: "date",
|
|
718
718
|
label: y("date"),
|
|
719
|
-
icon: /* @__PURE__ */ e(
|
|
720
|
-
value:
|
|
719
|
+
icon: /* @__PURE__ */ e(_n, {}),
|
|
720
|
+
value: it(n, k)
|
|
721
721
|
},
|
|
722
722
|
m && {
|
|
723
723
|
id: "time",
|
|
724
724
|
label: r(s("time")),
|
|
725
|
-
icon: /* @__PURE__ */ e(
|
|
726
|
-
value: a.allDay ? y("allDay") :
|
|
725
|
+
icon: /* @__PURE__ */ e(Hn, {}),
|
|
726
|
+
value: a.allDay ? y("allDay") : wn(n, k, b)
|
|
727
727
|
},
|
|
728
728
|
!a.allDay && {
|
|
729
729
|
id: "duration",
|
|
730
730
|
label: y("duration"),
|
|
731
|
-
icon: /* @__PURE__ */ e(
|
|
731
|
+
icon: /* @__PURE__ */ e(Mn, {}),
|
|
732
732
|
value: `${a.durationMin} ${y("durationUnit")}`
|
|
733
733
|
},
|
|
734
734
|
a.isTelehealth && {
|
|
735
735
|
id: "type",
|
|
736
736
|
label: y("type"),
|
|
737
|
-
icon: /* @__PURE__ */ e(
|
|
737
|
+
icon: /* @__PURE__ */ e(zt, {}),
|
|
738
738
|
value: y("typeTelehealth")
|
|
739
739
|
},
|
|
740
740
|
d && {
|
|
741
741
|
id: "operator",
|
|
742
742
|
label: r(s("operator")),
|
|
743
743
|
/* A person, as on the grid: the avatar fills the icon slot. */
|
|
744
|
-
icon: /* @__PURE__ */ e(
|
|
744
|
+
icon: /* @__PURE__ */ e(Tt, { name: d.name, src: d.avatarSrc, size: "xs" }),
|
|
745
745
|
value: d.name
|
|
746
746
|
},
|
|
747
747
|
c && {
|
|
748
748
|
id: "chair",
|
|
749
749
|
label: r(s("chair")),
|
|
750
|
-
icon: /* @__PURE__ */ e(
|
|
751
|
-
value: /* @__PURE__ */ e(
|
|
750
|
+
icon: /* @__PURE__ */ e(It, {}),
|
|
751
|
+
value: /* @__PURE__ */ e($t, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ e(It, {}), children: c.name })
|
|
752
752
|
},
|
|
753
753
|
a.branchLabel && {
|
|
754
754
|
id: "branch",
|
|
755
755
|
label: y("branch"),
|
|
756
|
-
icon: /* @__PURE__ */ e(
|
|
756
|
+
icon: /* @__PURE__ */ e(Fn, {}),
|
|
757
757
|
value: a.branchLabel
|
|
758
758
|
},
|
|
759
|
-
|
|
759
|
+
E && {
|
|
760
760
|
id: "createdBy",
|
|
761
761
|
label: r(s("createdBy")),
|
|
762
|
-
icon: /* @__PURE__ */ e(
|
|
762
|
+
icon: /* @__PURE__ */ e(Tt, { name: E.actor, size: "xs" }),
|
|
763
763
|
value: /* @__PURE__ */ v("span", { className: "ds:inline-flex ds:flex-wrap ds:items-baseline ds:gap-x-[var(--spacing-xs)]", children: [
|
|
764
|
-
/* @__PURE__ */ e("span", { children:
|
|
764
|
+
/* @__PURE__ */ e("span", { children: E.actor }),
|
|
765
765
|
" ",
|
|
766
766
|
/* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ e(
|
|
767
|
-
|
|
767
|
+
Et,
|
|
768
768
|
{
|
|
769
|
-
value:
|
|
769
|
+
value: E.atIso,
|
|
770
770
|
format: "absolute",
|
|
771
771
|
shape: "bare",
|
|
772
772
|
locale: n,
|
|
773
|
-
absoluteFormat:
|
|
773
|
+
absoluteFormat: Nt
|
|
774
774
|
}
|
|
775
775
|
) })
|
|
776
776
|
] })
|
|
@@ -778,7 +778,7 @@ function ua({
|
|
|
778
778
|
L && {
|
|
779
779
|
id: "series",
|
|
780
780
|
label: r(s("seriesLabel")),
|
|
781
|
-
icon: /* @__PURE__ */ e(
|
|
781
|
+
icon: /* @__PURE__ */ e(Wn, {}),
|
|
782
782
|
value: L
|
|
783
783
|
}
|
|
784
784
|
]
|
|
@@ -791,7 +791,7 @@ function ua({
|
|
|
791
791
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
792
792
|
children: [
|
|
793
793
|
/* @__PURE__ */ e("h4", { className: "ds:m-0 type-label ds:text-[color:var(--muted-foreground)]", children: r(s("sectionBooking")) }),
|
|
794
|
-
/* @__PURE__ */ e(
|
|
794
|
+
/* @__PURE__ */ e(Ot, { rows: T })
|
|
795
795
|
]
|
|
796
796
|
}
|
|
797
797
|
) : null
|
|
@@ -799,14 +799,14 @@ function ua({
|
|
|
799
799
|
}
|
|
800
800
|
);
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function fa({
|
|
803
803
|
details: t,
|
|
804
804
|
locale: n,
|
|
805
805
|
currency: i,
|
|
806
806
|
privacy: d = !1,
|
|
807
807
|
carePlanUrl: c
|
|
808
808
|
}) {
|
|
809
|
-
const { t: l } =
|
|
809
|
+
const { t: l } = J("ui"), { care: u } = t, p = d || u == null ? void 0 : u.plan;
|
|
810
810
|
return !u || !p && u.lines.length === 0 ? null : /* @__PURE__ */ v(
|
|
811
811
|
pe,
|
|
812
812
|
{
|
|
@@ -817,7 +817,7 @@ function pa({
|
|
|
817
817
|
p ? /* @__PURE__ */ v("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]", children: [
|
|
818
818
|
/* @__PURE__ */ v("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item", children: [
|
|
819
819
|
/* @__PURE__ */ e(
|
|
820
|
-
|
|
820
|
+
st,
|
|
821
821
|
{
|
|
822
822
|
"aria-hidden": "true",
|
|
823
823
|
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
|
|
@@ -826,17 +826,17 @@ function pa({
|
|
|
826
826
|
p.number ? l(s("planLine"), { number: p.number, name: p.name }) : p.name
|
|
827
827
|
] }),
|
|
828
828
|
c ? /* @__PURE__ */ e(
|
|
829
|
-
|
|
829
|
+
Ke,
|
|
830
830
|
{
|
|
831
831
|
href: c,
|
|
832
832
|
action: ce.carePlan,
|
|
833
|
-
icon: /* @__PURE__ */ e(
|
|
833
|
+
icon: /* @__PURE__ */ e(st, { "aria-hidden": "true" }),
|
|
834
834
|
children: l(s("openCarePlan"))
|
|
835
835
|
}
|
|
836
836
|
) : null
|
|
837
837
|
] }) : null,
|
|
838
838
|
u.lines.length > 0 ? /* @__PURE__ */ e(
|
|
839
|
-
|
|
839
|
+
Ut,
|
|
840
840
|
{
|
|
841
841
|
lines: u.lines.map(({ entryId: r, careId: a, ...o }) => ({
|
|
842
842
|
id: r,
|
|
@@ -850,17 +850,17 @@ function pa({
|
|
|
850
850
|
}
|
|
851
851
|
);
|
|
852
852
|
}
|
|
853
|
-
const
|
|
854
|
-
function
|
|
853
|
+
const _t = 3;
|
|
854
|
+
function ga({
|
|
855
855
|
preview: t,
|
|
856
856
|
onOpenNotes: n,
|
|
857
857
|
locale: i
|
|
858
858
|
}) {
|
|
859
|
-
const { t: d } =
|
|
859
|
+
const { t: d } = J("ui"), c = je(), l = t.status ?? "ready", u = R(!1);
|
|
860
860
|
ue(() => {
|
|
861
|
-
u.current && (l !== "loading" && (u.current = !1),
|
|
861
|
+
u.current && (l !== "loading" && (u.current = !1), He(c));
|
|
862
862
|
}, [l, c]);
|
|
863
|
-
const p = t.total ?? (l === "ready" ? t.notes.length : null), r = Math.max(0, (p ?? 0) -
|
|
863
|
+
const p = t.total ?? (l === "ready" ? t.notes.length : null), r = Math.max(0, (p ?? 0) - _t), a = r > 0 ? d(s("notesMore"), { n: r }) : d(s("notesPreviewOpen"));
|
|
864
864
|
return /* @__PURE__ */ v(
|
|
865
865
|
pe,
|
|
866
866
|
{
|
|
@@ -870,9 +870,9 @@ function ma({
|
|
|
870
870
|
title: p === null ? d("notesPanel.title") : d(s("notesPreviewTitle"), { count: p }),
|
|
871
871
|
headerAction: n && (p ?? 0) > 0 ? /* @__PURE__ */ v("span", { className: "ds:relative ds:inline-flex", children: [
|
|
872
872
|
/* @__PURE__ */ e(
|
|
873
|
-
|
|
873
|
+
Mt,
|
|
874
874
|
{
|
|
875
|
-
icon: /* @__PURE__ */ e(
|
|
875
|
+
icon: /* @__PURE__ */ e(Bn, { "aria-hidden": "true" }),
|
|
876
876
|
intent: "outline",
|
|
877
877
|
size: "sm",
|
|
878
878
|
"data-action": "open-patient-notes",
|
|
@@ -884,7 +884,7 @@ function ma({
|
|
|
884
884
|
r > 0 ? (
|
|
885
885
|
/* Decorative: the button's name already says the count. */
|
|
886
886
|
/* @__PURE__ */ e(
|
|
887
|
-
|
|
887
|
+
xn,
|
|
888
888
|
{
|
|
889
889
|
variant: "outline",
|
|
890
890
|
size: "sm",
|
|
@@ -897,9 +897,9 @@ function ma({
|
|
|
897
897
|
) : null
|
|
898
898
|
] }) : void 0,
|
|
899
899
|
children: [
|
|
900
|
-
l === "error" ? /* @__PURE__ */ v(
|
|
901
|
-
/* @__PURE__ */ e(
|
|
902
|
-
t.onRetry ? /* @__PURE__ */ e(
|
|
900
|
+
l === "error" ? /* @__PURE__ */ v(X, { variant: "error", children: [
|
|
901
|
+
/* @__PURE__ */ e(X.Description, { children: d("notesPanel.loadError") }),
|
|
902
|
+
t.onRetry ? /* @__PURE__ */ e(X.Action, { children: /* @__PURE__ */ e(
|
|
903
903
|
C,
|
|
904
904
|
{
|
|
905
905
|
intent: "secondary",
|
|
@@ -912,17 +912,17 @@ function ma({
|
|
|
912
912
|
}
|
|
913
913
|
) }) : null
|
|
914
914
|
] }) : null,
|
|
915
|
-
t.notes.length === 0 && l === "loading" ? /* @__PURE__ */ v(
|
|
915
|
+
t.notes.length === 0 && l === "loading" ? /* @__PURE__ */ v(ie, { children: [
|
|
916
916
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: d("notesPanel.loading") }),
|
|
917
|
-
/* @__PURE__ */ e(
|
|
917
|
+
/* @__PURE__ */ e(at, { notes: [], loading: !0, loadingRows: 2 })
|
|
918
918
|
] }) : l !== "error" || t.notes.length > 0 ? (
|
|
919
919
|
/* A note click, or Enter or Space on it, goes straight to that note
|
|
920
920
|
in the Notes tool; the header button opens the tool at the top. */
|
|
921
921
|
/* @__PURE__ */ e(
|
|
922
|
-
|
|
922
|
+
at,
|
|
923
923
|
{
|
|
924
924
|
notes: t.notes,
|
|
925
|
-
maxItems:
|
|
925
|
+
maxItems: _t,
|
|
926
926
|
locale: i,
|
|
927
927
|
"aria-labelledby": c,
|
|
928
928
|
onNoteActivate: n,
|
|
@@ -934,29 +934,36 @@ function ma({
|
|
|
934
934
|
}
|
|
935
935
|
);
|
|
936
936
|
}
|
|
937
|
-
const
|
|
938
|
-
|
|
939
|
-
|
|
937
|
+
const va = lt("ds:flex ds:h-full ds:min-h-0 ds:flex-col"), ya = lt(
|
|
938
|
+
[
|
|
939
|
+
"ds:flex ds:shrink-0 ds:flex-wrap ds:items-center ds:justify-end",
|
|
940
|
+
"ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]",
|
|
941
|
+
"ds:border-t ds:border-[color:var(--border)] ds:p-[var(--spacing-sm)]",
|
|
942
|
+
"ds:[&>[data-component=workflow-status]]:contents",
|
|
943
|
+
"ds:[&>[data-component=workflow-status]>[role=alert]]:order-1",
|
|
944
|
+
"ds:[&>[data-component=workflow-status]>[role=alert]]:basis-full"
|
|
945
|
+
].join(" ")
|
|
946
|
+
), ba = lt(
|
|
940
947
|
"ds:shrink-0 ds:rounded-[var(--radius-md)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
941
|
-
),
|
|
948
|
+
), U = "ds:sm:[min-block-size:var(--accessible-target-floor,0px)]", ka = "ds:sm:[&>button]:[min-block-size:var(--accessible-target-floor,0px)]", wa = [
|
|
942
949
|
"ds:sm:[&_button:has(svg.lucide-ellipsis)]:[min-block-size:var(--accessible-target-floor,0px)]",
|
|
943
950
|
"ds:[&_button:has(svg.lucide-ellipsis)]:[min-inline-size:var(--accessible-target-floor,auto)]"
|
|
944
|
-
].join(" "),
|
|
951
|
+
].join(" "), Gt = ["40%", "33%", "50%", "25%"], Sa = [
|
|
945
952
|
"bill",
|
|
946
953
|
"folder",
|
|
947
954
|
"template",
|
|
948
955
|
"empty",
|
|
949
956
|
"identification",
|
|
950
957
|
"webcam"
|
|
951
|
-
],
|
|
952
|
-
bill: /* @__PURE__ */ e(
|
|
953
|
-
folder: /* @__PURE__ */ e(
|
|
954
|
-
template: /* @__PURE__ */ e(
|
|
955
|
-
empty: /* @__PURE__ */ e(
|
|
956
|
-
identification: /* @__PURE__ */ e(
|
|
957
|
-
webcam: /* @__PURE__ */ e(
|
|
958
|
+
], Aa = {
|
|
959
|
+
bill: /* @__PURE__ */ e(Jn, { "aria-hidden": "true" }),
|
|
960
|
+
folder: /* @__PURE__ */ e(Xn, { "aria-hidden": "true" }),
|
|
961
|
+
template: /* @__PURE__ */ e(Gn, { "aria-hidden": "true" }),
|
|
962
|
+
empty: /* @__PURE__ */ e(Vn, { "aria-hidden": "true" }),
|
|
963
|
+
identification: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
|
|
964
|
+
webcam: /* @__PURE__ */ e(Yn, { "aria-hidden": "true" })
|
|
958
965
|
}, S = (t) => `calendarWorkspace.details.${t}`;
|
|
959
|
-
function
|
|
966
|
+
function Ht({
|
|
960
967
|
children: t,
|
|
961
968
|
startIcon: n,
|
|
962
969
|
overflowItems: i,
|
|
@@ -966,23 +973,23 @@ function Ot({
|
|
|
966
973
|
size: u,
|
|
967
974
|
hideLabel: p
|
|
968
975
|
}) {
|
|
969
|
-
return /* @__PURE__ */ v(
|
|
970
|
-
/* @__PURE__ */ e(
|
|
976
|
+
return /* @__PURE__ */ v($e.Root, { children: [
|
|
977
|
+
/* @__PURE__ */ e(ln, { label: t, side: "top", children: /* @__PURE__ */ e($e.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
971
978
|
C,
|
|
972
979
|
{
|
|
973
980
|
intent: c,
|
|
974
981
|
background: l,
|
|
975
982
|
size: u,
|
|
976
983
|
"data-action": d,
|
|
977
|
-
className:
|
|
984
|
+
className: U,
|
|
978
985
|
startIcon: n,
|
|
979
986
|
"aria-haspopup": "menu",
|
|
980
|
-
endIcon: /* @__PURE__ */ e(
|
|
987
|
+
endIcon: /* @__PURE__ */ e(jn, { "aria-hidden": "true" }),
|
|
981
988
|
children: p ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: t }) : t
|
|
982
989
|
}
|
|
983
990
|
) }) }),
|
|
984
|
-
/* @__PURE__ */ e(
|
|
985
|
-
|
|
991
|
+
/* @__PURE__ */ e($e.Content, { align: "end", children: i.map((r) => /* @__PURE__ */ e(
|
|
992
|
+
$e.Item,
|
|
986
993
|
{
|
|
987
994
|
"data-action": r.action,
|
|
988
995
|
startIcon: r.icon,
|
|
@@ -993,9 +1000,9 @@ function Ot({
|
|
|
993
1000
|
)) })
|
|
994
1001
|
] });
|
|
995
1002
|
}
|
|
996
|
-
function
|
|
997
|
-
const { t } =
|
|
998
|
-
return /* @__PURE__ */ v(
|
|
1003
|
+
function xa() {
|
|
1004
|
+
const { t } = J("ui");
|
|
1005
|
+
return /* @__PURE__ */ v(ie, { children: [
|
|
999
1006
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: t("common.loading") }),
|
|
1000
1007
|
/* @__PURE__ */ v(
|
|
1001
1008
|
"div",
|
|
@@ -1004,7 +1011,7 @@ function wa() {
|
|
|
1004
1011
|
className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)] ds:overflow-hidden ds:p-[var(--spacing-md)] ds:[&>*]:shrink-0",
|
|
1005
1012
|
children: [
|
|
1006
1013
|
/* @__PURE__ */ e(
|
|
1007
|
-
|
|
1014
|
+
Bt,
|
|
1008
1015
|
{
|
|
1009
1016
|
name: "",
|
|
1010
1017
|
loading: !0,
|
|
@@ -1013,14 +1020,14 @@ function wa() {
|
|
|
1013
1020
|
}
|
|
1014
1021
|
),
|
|
1015
1022
|
/* @__PURE__ */ v(pe, { title: t(S("sectionAppointment")), headingLevel: 3, children: [
|
|
1016
|
-
/* @__PURE__ */ e(
|
|
1017
|
-
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children:
|
|
1023
|
+
/* @__PURE__ */ e(Ft, { loading: !0, maxLines: 2 }),
|
|
1024
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: Gt.map((n, i) => /* @__PURE__ */ v(
|
|
1018
1025
|
"div",
|
|
1019
1026
|
{
|
|
1020
1027
|
className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1021
1028
|
children: [
|
|
1022
1029
|
/* @__PURE__ */ e(
|
|
1023
|
-
|
|
1030
|
+
Se,
|
|
1024
1031
|
{
|
|
1025
1032
|
variant: "rounded",
|
|
1026
1033
|
stagger: i + 2,
|
|
@@ -1030,7 +1037,7 @@ function wa() {
|
|
|
1030
1037
|
}
|
|
1031
1038
|
),
|
|
1032
1039
|
/* @__PURE__ */ e(
|
|
1033
|
-
|
|
1040
|
+
Se,
|
|
1034
1041
|
{
|
|
1035
1042
|
variant: "text",
|
|
1036
1043
|
size: "sm",
|
|
@@ -1043,8 +1050,8 @@ function wa() {
|
|
|
1043
1050
|
n
|
|
1044
1051
|
)) })
|
|
1045
1052
|
] }),
|
|
1046
|
-
/* @__PURE__ */ e(pe, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(
|
|
1047
|
-
/* @__PURE__ */ e(pe, { title: t(S("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(
|
|
1053
|
+
/* @__PURE__ */ e(pe, { title: t("notesPanel.title"), headingLevel: 3, children: /* @__PURE__ */ e(at, { notes: [], loading: !0, loadingRows: 2 }) }),
|
|
1054
|
+
/* @__PURE__ */ e(pe, { title: t(S("sectionTreatments")), headingLevel: 3, children: /* @__PURE__ */ e(Ut, { lines: [], loading: !0 }) })
|
|
1048
1055
|
]
|
|
1049
1056
|
}
|
|
1050
1057
|
),
|
|
@@ -1054,9 +1061,9 @@ function wa() {
|
|
|
1054
1061
|
"aria-hidden": "true",
|
|
1055
1062
|
className: "ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--border)] ds:p-[var(--spacing-md)]",
|
|
1056
1063
|
children: [
|
|
1057
|
-
/* @__PURE__ */ e(
|
|
1064
|
+
/* @__PURE__ */ e(Se, { variant: "rounded", width: "33%", height: "var(--spacing-xl)" }),
|
|
1058
1065
|
/* @__PURE__ */ e(
|
|
1059
|
-
|
|
1066
|
+
Se,
|
|
1060
1067
|
{
|
|
1061
1068
|
variant: "rounded",
|
|
1062
1069
|
stagger: 1,
|
|
@@ -1069,7 +1076,7 @@ function wa() {
|
|
|
1069
1076
|
)
|
|
1070
1077
|
] });
|
|
1071
1078
|
}
|
|
1072
|
-
function
|
|
1079
|
+
function Na({
|
|
1073
1080
|
history: t,
|
|
1074
1081
|
locale: n,
|
|
1075
1082
|
onRetry: i,
|
|
@@ -1077,13 +1084,13 @@ function Sa({
|
|
|
1077
1084
|
privacy: c
|
|
1078
1085
|
}) {
|
|
1079
1086
|
var k;
|
|
1080
|
-
const { t: l } =
|
|
1081
|
-
|
|
1087
|
+
const { t: l } = J("ui"), u = t.status ?? (t.entries ? "ready" : "loading"), p = u === "error" ? void 0 : t.entries, r = u === "loading" || u !== "error" && !p, [a, o] = H(!1);
|
|
1088
|
+
Ae(() => o(!0), []);
|
|
1082
1089
|
let f = "";
|
|
1083
1090
|
r ? f = l("common.loading") : p && (f = p.length === 0 ? l(S("historyEmpty")) : l(S("historyLoaded"), { n: p.length }));
|
|
1084
1091
|
let y;
|
|
1085
1092
|
return u === "error" ? y = /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1086
|
-
/* @__PURE__ */ e(
|
|
1093
|
+
/* @__PURE__ */ e(X, { variant: "error", children: /* @__PURE__ */ e(X.Description, { children: ((k = t.message) == null ? void 0 : k.trim()) || l("emptyState.error.description") }) }),
|
|
1087
1094
|
i ? /* @__PURE__ */ e(
|
|
1088
1095
|
C,
|
|
1089
1096
|
{
|
|
@@ -1098,13 +1105,13 @@ function Sa({
|
|
|
1098
1105
|
{
|
|
1099
1106
|
"aria-hidden": "true",
|
|
1100
1107
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
1101
|
-
children:
|
|
1108
|
+
children: Gt.slice(0, 3).map((b, m) => /* @__PURE__ */ v(
|
|
1102
1109
|
"div",
|
|
1103
1110
|
{
|
|
1104
1111
|
className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
1105
1112
|
children: [
|
|
1106
1113
|
/* @__PURE__ */ e(
|
|
1107
|
-
|
|
1114
|
+
Se,
|
|
1108
1115
|
{
|
|
1109
1116
|
variant: "circular",
|
|
1110
1117
|
stagger: m,
|
|
@@ -1114,7 +1121,7 @@ function Sa({
|
|
|
1114
1121
|
}
|
|
1115
1122
|
),
|
|
1116
1123
|
/* @__PURE__ */ e(
|
|
1117
|
-
|
|
1124
|
+
Se,
|
|
1118
1125
|
{
|
|
1119
1126
|
variant: "rounded",
|
|
1120
1127
|
stagger: m,
|
|
@@ -1128,19 +1135,19 @@ function Sa({
|
|
|
1128
1135
|
))
|
|
1129
1136
|
}
|
|
1130
1137
|
) : y = /* @__PURE__ */ e(
|
|
1131
|
-
|
|
1138
|
+
hn,
|
|
1132
1139
|
{
|
|
1133
1140
|
history: p,
|
|
1134
1141
|
locale: n,
|
|
1135
1142
|
noteUnrecordedEdits: d,
|
|
1136
1143
|
privacy: c
|
|
1137
1144
|
}
|
|
1138
|
-
), /* @__PURE__ */ v(
|
|
1145
|
+
), /* @__PURE__ */ v(ie, { children: [
|
|
1139
1146
|
/* @__PURE__ */ e("span", { role: "status", className: "ds:sr-only", children: a ? f : "" }),
|
|
1140
1147
|
y
|
|
1141
1148
|
] });
|
|
1142
1149
|
}
|
|
1143
|
-
function
|
|
1150
|
+
function Ta({
|
|
1144
1151
|
read: t,
|
|
1145
1152
|
refreshing: n,
|
|
1146
1153
|
currency: i,
|
|
@@ -1151,7 +1158,7 @@ function Aa({
|
|
|
1151
1158
|
enter: p,
|
|
1152
1159
|
live: r,
|
|
1153
1160
|
statusControl: a,
|
|
1154
|
-
patientId: o = ((
|
|
1161
|
+
patientId: o = ((Me) => (Me = t.patient) == null ? void 0 : Me.id)(),
|
|
1155
1162
|
operator: f,
|
|
1156
1163
|
chair: y,
|
|
1157
1164
|
privacy: k = !1,
|
|
@@ -1160,204 +1167,205 @@ function Aa({
|
|
|
1160
1167
|
notesPreview: N,
|
|
1161
1168
|
onOpenNotes: L,
|
|
1162
1169
|
history: P,
|
|
1163
|
-
onOpenHistory:
|
|
1170
|
+
onOpenHistory: T,
|
|
1164
1171
|
noteUnrecordedEdits: M = !1,
|
|
1165
|
-
readOnly:
|
|
1172
|
+
readOnly: E = !1,
|
|
1166
1173
|
onStatusChange: I,
|
|
1167
|
-
allowedStatuses: F =
|
|
1174
|
+
allowedStatuses: F = St,
|
|
1168
1175
|
onDescriptionChange: z,
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1176
|
+
descriptionMaxLength: Q,
|
|
1177
|
+
onAssignPatient: se,
|
|
1178
|
+
onEdit: K,
|
|
1179
|
+
onMove: j,
|
|
1180
|
+
onCopy: W,
|
|
1181
|
+
onDelete: Y,
|
|
1182
|
+
onJoinTelehealth: Z,
|
|
1183
|
+
onWhatsApp: ee,
|
|
1184
|
+
whatsappUrl: x,
|
|
1185
|
+
onBuyWhatsApp: V,
|
|
1186
|
+
createTaskUrl: te,
|
|
1187
|
+
onRequestSignature: Ne,
|
|
1188
|
+
onSignOnDevice: Te,
|
|
1181
1189
|
onOpenPatient: me,
|
|
1182
|
-
shortcuts:
|
|
1190
|
+
shortcuts: he,
|
|
1183
1191
|
documents: oe
|
|
1184
1192
|
}) {
|
|
1185
|
-
var
|
|
1186
|
-
const { t: h } =
|
|
1187
|
-
le || !w || (ne(!0),
|
|
1188
|
-
},
|
|
1193
|
+
var vt, yt;
|
|
1194
|
+
const { t: h } = J("ui"), { eventId: D } = t, [Ye] = H(p), fe = { details: t, locale: c, currency: i }, w = P ? P.eventId !== void 0 && P.eventId !== D ? { status: "loading" } : P : t.history ? { entries: t.history } : void 0, Fe = (N == null ? void 0 : N.patientId) === void 0 || N.patientId === o, ge = N ? Fe ? N : o ? { notes: [], status: "loading", total: null } : void 0 : void 0, re = !!z && !E && !k, [Ee, ne] = H(!1), [Ce, G] = H(!1), le = Ee && w !== void 0, We = Ce && re, Ie = () => {
|
|
1195
|
+
le || !w || (ne(!0), T == null || T(D));
|
|
1196
|
+
}, Be = R({ history: !1, editor: !1 });
|
|
1189
1197
|
ue(() => {
|
|
1190
|
-
const g =
|
|
1191
|
-
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1198
|
+
const g = Be.current;
|
|
1199
|
+
Be.current = { history: le, editor: We };
|
|
1200
|
+
const we = g.history && w === void 0, bt = g.editor && !re;
|
|
1201
|
+
we && ne(!1), bt && G(!1), (we || bt) && He(u);
|
|
1194
1202
|
});
|
|
1195
|
-
const
|
|
1203
|
+
const ve = R(null), O = R(!1), De = (w == null ? void 0 : w.status) ?? (w != null && w.entries ? "ready" : "loading");
|
|
1196
1204
|
ue(() => {
|
|
1197
|
-
O.current && (
|
|
1198
|
-
}, [
|
|
1199
|
-
const [
|
|
1200
|
-
|
|
1201
|
-
|
|
1205
|
+
O.current && (De !== "loading" && (O.current = !1), ot(ve.current));
|
|
1206
|
+
}, [De]);
|
|
1207
|
+
const [$, Re] = H(t.appointment.name ?? "");
|
|
1208
|
+
Ae(() => {
|
|
1209
|
+
Re(t.appointment.name ?? "");
|
|
1202
1210
|
}, [t.appointment.name]);
|
|
1203
|
-
const [
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
}, [
|
|
1207
|
-
const
|
|
1211
|
+
const [ye, de] = H(""), [be, Pe] = H(!1), [A, B] = H(), ke = R(null), Le = je(), q = Q !== void 0 && ye.trim().length > Q;
|
|
1212
|
+
Ae(() => {
|
|
1213
|
+
Ce && (de($), B(void 0));
|
|
1214
|
+
}, [Ce]);
|
|
1215
|
+
const Xt = async () => {
|
|
1208
1216
|
if (!z) return;
|
|
1209
|
-
const g =
|
|
1210
|
-
|
|
1217
|
+
const g = ye.trim();
|
|
1218
|
+
Pe(!0), B(void 0);
|
|
1211
1219
|
try {
|
|
1212
|
-
await z(g, D),
|
|
1213
|
-
} catch (
|
|
1214
|
-
|
|
1215
|
-
|
|
1220
|
+
await z(g, D), Re(g), G(!1);
|
|
1221
|
+
} catch (we) {
|
|
1222
|
+
B(
|
|
1223
|
+
nt(we, h(S("descriptionSaveFailed")))
|
|
1216
1224
|
);
|
|
1217
1225
|
} finally {
|
|
1218
|
-
|
|
1226
|
+
Pe(!1);
|
|
1219
1227
|
}
|
|
1220
|
-
}, [
|
|
1221
|
-
|
|
1222
|
-
|
|
1228
|
+
}, [ae, Ve] = H(t.appointment.status);
|
|
1229
|
+
Ae(() => {
|
|
1230
|
+
Ve(t.appointment.status);
|
|
1223
1231
|
}, [t.appointment.status]);
|
|
1224
|
-
const
|
|
1232
|
+
const dt = R(n);
|
|
1225
1233
|
ue(() => {
|
|
1226
|
-
const g =
|
|
1227
|
-
|
|
1234
|
+
const g = dt.current && !n;
|
|
1235
|
+
dt.current = n, g && (Ve(t.appointment.status), Re(t.appointment.name ?? ""));
|
|
1228
1236
|
}, [n]);
|
|
1229
|
-
const
|
|
1237
|
+
const Ue = St.filter(
|
|
1230
1238
|
(g) => F.includes(g)
|
|
1231
|
-
),
|
|
1232
|
-
statuses:
|
|
1239
|
+
), Oe = un(ae, {
|
|
1240
|
+
statuses: Ue,
|
|
1233
1241
|
/* Shown so the control can say it, but not a choice. */
|
|
1234
|
-
disabledStatuses:
|
|
1235
|
-
}),
|
|
1236
|
-
if (!(!I || !
|
|
1242
|
+
disabledStatuses: ae && !Ue.includes(ae) ? [ae] : []
|
|
1243
|
+
}), _e = !!I && !E && Ue.some((g) => g !== ae), Jt = async (g) => {
|
|
1244
|
+
if (!(!I || !pn(g))) {
|
|
1237
1245
|
try {
|
|
1238
1246
|
await I(g, D);
|
|
1239
|
-
} catch (
|
|
1240
|
-
throw new Error(
|
|
1247
|
+
} catch (we) {
|
|
1248
|
+
throw new Error(nt(we, h(S("statusSaveFailed"))));
|
|
1241
1249
|
}
|
|
1242
|
-
|
|
1250
|
+
Ve(g);
|
|
1243
1251
|
}
|
|
1244
|
-
},
|
|
1252
|
+
}, ct = k ? void 0 : x, ut = Sa.filter(
|
|
1245
1253
|
(g) => oe == null ? void 0 : oe.kinds.includes(g)
|
|
1246
|
-
),
|
|
1254
|
+
), Qt = (((vt = t.care) == null ? void 0 : vt.lines.length) ?? 0) > 0, Ge = o !== void 0 && o !== "", Xe = h(S("status")), pt = `${Xe}: ${Oe.option.label}`, Je = R(null), mt = R(_e);
|
|
1247
1255
|
ue(() => {
|
|
1248
|
-
const g =
|
|
1249
|
-
|
|
1256
|
+
const g = mt.current && !_e;
|
|
1257
|
+
mt.current = _e, g && (Je.current ? ot(Je.current) : He(u));
|
|
1250
1258
|
});
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1259
|
+
const ht = _e ? /* @__PURE__ */ e(
|
|
1260
|
+
dn,
|
|
1253
1261
|
{
|
|
1254
1262
|
ref: a,
|
|
1255
|
-
value:
|
|
1256
|
-
options:
|
|
1263
|
+
value: Oe.value,
|
|
1264
|
+
options: Oe.options,
|
|
1257
1265
|
size: "sm",
|
|
1258
|
-
workflowLabel:
|
|
1259
|
-
className: `ds:[&>button]:bg-[color:var(--background)] ${
|
|
1260
|
-
"aria-label":
|
|
1261
|
-
onValueChange:
|
|
1266
|
+
workflowLabel: Xe,
|
|
1267
|
+
className: `ds:[&>button]:bg-[color:var(--background)] ${ka}`,
|
|
1268
|
+
"aria-label": pt,
|
|
1269
|
+
onValueChange: Jt
|
|
1262
1270
|
}
|
|
1263
|
-
) :
|
|
1271
|
+
) : ae ? (
|
|
1264
1272
|
/* Named as the control is, "Status: Confirmed": the small display
|
|
1265
1273
|
prints the value alone. */
|
|
1266
1274
|
/* @__PURE__ */ e(
|
|
1267
1275
|
"div",
|
|
1268
1276
|
{
|
|
1269
|
-
ref:
|
|
1277
|
+
ref: Je,
|
|
1270
1278
|
role: "group",
|
|
1271
|
-
"aria-label":
|
|
1279
|
+
"aria-label": pt,
|
|
1272
1280
|
tabIndex: -1,
|
|
1273
1281
|
"data-status-display": "",
|
|
1274
|
-
className:
|
|
1282
|
+
className: ba(),
|
|
1275
1283
|
children: /* @__PURE__ */ e(
|
|
1276
|
-
|
|
1284
|
+
cn,
|
|
1277
1285
|
{
|
|
1278
|
-
value:
|
|
1286
|
+
value: Oe.value,
|
|
1279
1287
|
size: "sm",
|
|
1280
|
-
workflowLabel:
|
|
1281
|
-
option:
|
|
1288
|
+
workflowLabel: Xe,
|
|
1289
|
+
option: Oe.option
|
|
1282
1290
|
}
|
|
1283
1291
|
)
|
|
1284
1292
|
}
|
|
1285
1293
|
)
|
|
1286
1294
|
) : null, _ = [];
|
|
1287
|
-
!
|
|
1295
|
+
!E && se && !Ge && _.push([
|
|
1288
1296
|
"assign-patient",
|
|
1289
1297
|
/* @__PURE__ */ e(
|
|
1290
1298
|
C,
|
|
1291
1299
|
{
|
|
1292
1300
|
intent: "primary",
|
|
1293
1301
|
"data-action": "assign-patient",
|
|
1294
|
-
className:
|
|
1295
|
-
startIcon: /* @__PURE__ */ e(
|
|
1296
|
-
onClick: () =>
|
|
1302
|
+
className: U,
|
|
1303
|
+
startIcon: /* @__PURE__ */ e(Un, { "aria-hidden": "true" }),
|
|
1304
|
+
onClick: () => se(D),
|
|
1297
1305
|
children: h("calendarWorkspace.inc1.bookings.assignPatient")
|
|
1298
1306
|
},
|
|
1299
1307
|
"assign"
|
|
1300
1308
|
)
|
|
1301
|
-
]),
|
|
1309
|
+
]), Z && _.push([
|
|
1302
1310
|
"join-telehealth",
|
|
1303
1311
|
/* @__PURE__ */ e(
|
|
1304
1312
|
C,
|
|
1305
1313
|
{
|
|
1306
1314
|
intent: "primary",
|
|
1307
1315
|
"data-action": "join-telehealth",
|
|
1308
|
-
className:
|
|
1309
|
-
startIcon: /* @__PURE__ */ e(
|
|
1310
|
-
onClick: () =>
|
|
1316
|
+
className: U,
|
|
1317
|
+
startIcon: /* @__PURE__ */ e(zt, { "aria-hidden": "true" }),
|
|
1318
|
+
onClick: () => Z(D),
|
|
1311
1319
|
children: h(S("joinTelehealth"))
|
|
1312
1320
|
},
|
|
1313
1321
|
"join"
|
|
1314
1322
|
)
|
|
1315
|
-
]), !
|
|
1323
|
+
]), !E && K && _.push([
|
|
1316
1324
|
"edit-appointment",
|
|
1317
1325
|
/* @__PURE__ */ e(
|
|
1318
1326
|
C,
|
|
1319
1327
|
{
|
|
1320
1328
|
"data-action": "edit-appointment",
|
|
1321
|
-
className:
|
|
1322
|
-
startIcon: /* @__PURE__ */ e(
|
|
1323
|
-
onClick: () =>
|
|
1329
|
+
className: U,
|
|
1330
|
+
startIcon: /* @__PURE__ */ e(Dt, { "aria-hidden": "true" }),
|
|
1331
|
+
onClick: () => K(D),
|
|
1324
1332
|
children: h("calendarWorkspace.editor.editTitle")
|
|
1325
1333
|
},
|
|
1326
1334
|
"edit"
|
|
1327
1335
|
)
|
|
1328
|
-
]), !
|
|
1336
|
+
]), !E && j && _.push([
|
|
1329
1337
|
"move-appointment",
|
|
1330
1338
|
/* @__PURE__ */ e(
|
|
1331
1339
|
C,
|
|
1332
1340
|
{
|
|
1333
1341
|
"data-action": "move-appointment",
|
|
1334
|
-
className:
|
|
1335
|
-
startIcon: /* @__PURE__ */ e(
|
|
1336
|
-
onClick: () =>
|
|
1342
|
+
className: U,
|
|
1343
|
+
startIcon: /* @__PURE__ */ e(mn, { "aria-hidden": "true" }),
|
|
1344
|
+
onClick: () => j(D),
|
|
1337
1345
|
children: h(S("move"))
|
|
1338
1346
|
},
|
|
1339
1347
|
"move"
|
|
1340
1348
|
)
|
|
1341
|
-
]), !
|
|
1349
|
+
]), !E && W && _.push([
|
|
1342
1350
|
"copy-appointment",
|
|
1343
|
-
|
|
1344
|
-
|
|
1351
|
+
Qt ? /* @__PURE__ */ e(
|
|
1352
|
+
Ht,
|
|
1345
1353
|
{
|
|
1346
1354
|
"data-action": "copy-appointment",
|
|
1347
1355
|
"data-overflow-tip": !1,
|
|
1348
|
-
startIcon: /* @__PURE__ */ e(
|
|
1356
|
+
startIcon: /* @__PURE__ */ e(At, { "aria-hidden": "true" }),
|
|
1349
1357
|
overflowItems: [
|
|
1350
1358
|
{
|
|
1351
1359
|
label: h("calendarWorkspace.editor.duplicateAppointmentOnly"),
|
|
1352
|
-
icon: /* @__PURE__ */ e(
|
|
1360
|
+
icon: /* @__PURE__ */ e($n, { "aria-hidden": "true" }),
|
|
1353
1361
|
action: "copy-appointment-only",
|
|
1354
|
-
onSelect: () =>
|
|
1362
|
+
onSelect: () => W(!1, D)
|
|
1355
1363
|
},
|
|
1356
1364
|
{
|
|
1357
1365
|
label: h("calendarWorkspace.editor.duplicateWithTreatments"),
|
|
1358
|
-
icon: /* @__PURE__ */ e(
|
|
1366
|
+
icon: /* @__PURE__ */ e(st, { "aria-hidden": "true" }),
|
|
1359
1367
|
action: "copy-appointment-with-treatments",
|
|
1360
|
-
onSelect: () =>
|
|
1368
|
+
onSelect: () => W(!0, D)
|
|
1361
1369
|
}
|
|
1362
1370
|
],
|
|
1363
1371
|
children: h(S("copy"))
|
|
@@ -1367,24 +1375,24 @@ function Aa({
|
|
|
1367
1375
|
C,
|
|
1368
1376
|
{
|
|
1369
1377
|
"data-action": "copy-appointment",
|
|
1370
|
-
className:
|
|
1371
|
-
startIcon: /* @__PURE__ */ e(
|
|
1372
|
-
onClick: () =>
|
|
1378
|
+
className: U,
|
|
1379
|
+
startIcon: /* @__PURE__ */ e(At, { "aria-hidden": "true" }),
|
|
1380
|
+
onClick: () => W(!1, D),
|
|
1373
1381
|
children: h(S("copy"))
|
|
1374
1382
|
},
|
|
1375
1383
|
"copy"
|
|
1376
1384
|
)
|
|
1377
|
-
]), oe &&
|
|
1385
|
+
]), oe && ut.length > 0 && _.push([
|
|
1378
1386
|
"open-create-document",
|
|
1379
1387
|
/* @__PURE__ */ e(
|
|
1380
|
-
|
|
1388
|
+
Ht,
|
|
1381
1389
|
{
|
|
1382
1390
|
"data-action": "open-create-document",
|
|
1383
1391
|
"data-overflow-tip": !1,
|
|
1384
|
-
startIcon: /* @__PURE__ */ e(
|
|
1385
|
-
overflowItems:
|
|
1392
|
+
startIcon: /* @__PURE__ */ e(qn, { "aria-hidden": "true" }),
|
|
1393
|
+
overflowItems: ut.map((g) => ({
|
|
1386
1394
|
label: h(S(`documents.${g}`)),
|
|
1387
|
-
icon:
|
|
1395
|
+
icon: Aa[g],
|
|
1388
1396
|
action: `create-document-${g}`,
|
|
1389
1397
|
onSelect: () => oe.onCreate(g, D)
|
|
1390
1398
|
})),
|
|
@@ -1392,32 +1400,32 @@ function Aa({
|
|
|
1392
1400
|
},
|
|
1393
1401
|
"documents"
|
|
1394
1402
|
)
|
|
1395
|
-
]),
|
|
1403
|
+
]), ee ? _.push([
|
|
1396
1404
|
"open-whatsapp",
|
|
1397
1405
|
/* @__PURE__ */ e(
|
|
1398
1406
|
C,
|
|
1399
1407
|
{
|
|
1400
1408
|
"data-action": "open-whatsapp",
|
|
1401
|
-
className:
|
|
1402
|
-
startIcon: /* @__PURE__ */ e(
|
|
1403
|
-
onClick: () =>
|
|
1409
|
+
className: U,
|
|
1410
|
+
startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
|
|
1411
|
+
onClick: () => ee(D),
|
|
1404
1412
|
children: h(S("remindWhatsApp"))
|
|
1405
1413
|
},
|
|
1406
1414
|
"whatsapp"
|
|
1407
1415
|
)
|
|
1408
|
-
]) :
|
|
1416
|
+
]) : ze(ct) ? _.push([
|
|
1409
1417
|
"open-whatsapp",
|
|
1410
1418
|
/* @__PURE__ */ e(
|
|
1411
1419
|
C,
|
|
1412
1420
|
{
|
|
1413
1421
|
asChild: !0,
|
|
1414
1422
|
"data-action": "open-whatsapp",
|
|
1415
|
-
className:
|
|
1416
|
-
startIcon: /* @__PURE__ */ e(
|
|
1423
|
+
className: U,
|
|
1424
|
+
startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
|
|
1417
1425
|
children: /* @__PURE__ */ e(
|
|
1418
1426
|
"a",
|
|
1419
1427
|
{
|
|
1420
|
-
href:
|
|
1428
|
+
href: ze(ct),
|
|
1421
1429
|
target: "_blank",
|
|
1422
1430
|
rel: "noopener noreferrer",
|
|
1423
1431
|
children: h(S("remindWhatsApp"))
|
|
@@ -1426,83 +1434,83 @@ function Aa({
|
|
|
1426
1434
|
},
|
|
1427
1435
|
"whatsapp"
|
|
1428
1436
|
)
|
|
1429
|
-
]) :
|
|
1437
|
+
]) : V && !x && _.push([
|
|
1430
1438
|
"buy-whatsapp",
|
|
1431
1439
|
/* @__PURE__ */ e(
|
|
1432
1440
|
C,
|
|
1433
1441
|
{
|
|
1434
1442
|
"data-action": "buy-whatsapp",
|
|
1435
|
-
className:
|
|
1436
|
-
startIcon: /* @__PURE__ */ e(
|
|
1437
|
-
onClick: () =>
|
|
1443
|
+
className: U,
|
|
1444
|
+
startIcon: /* @__PURE__ */ e(tt, { "aria-hidden": "true" }),
|
|
1445
|
+
onClick: () => V(D),
|
|
1438
1446
|
children: h(S("buyWhatsApp"))
|
|
1439
1447
|
},
|
|
1440
1448
|
"buy-whatsapp"
|
|
1441
1449
|
)
|
|
1442
1450
|
]);
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1451
|
+
const ft = ze(te);
|
|
1452
|
+
ft && _.push([
|
|
1445
1453
|
"create-task",
|
|
1446
1454
|
/* @__PURE__ */ e(
|
|
1447
1455
|
C,
|
|
1448
1456
|
{
|
|
1449
1457
|
asChild: !0,
|
|
1450
1458
|
"data-action": "create-task",
|
|
1451
|
-
className:
|
|
1452
|
-
startIcon: /* @__PURE__ */ e(
|
|
1453
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
1459
|
+
className: U,
|
|
1460
|
+
startIcon: /* @__PURE__ */ e(zn, { "aria-hidden": "true" }),
|
|
1461
|
+
children: /* @__PURE__ */ e("a", { href: ft, children: h(S("createTask")) })
|
|
1454
1462
|
},
|
|
1455
1463
|
"task"
|
|
1456
1464
|
)
|
|
1457
|
-
]), !
|
|
1465
|
+
]), !E && Y && _.push([
|
|
1458
1466
|
"delete-appointment",
|
|
1459
1467
|
/* @__PURE__ */ e(
|
|
1460
1468
|
C,
|
|
1461
1469
|
{
|
|
1462
1470
|
intent: "destructiveOutline",
|
|
1463
1471
|
"data-action": "delete-appointment",
|
|
1464
|
-
className:
|
|
1465
|
-
startIcon: /* @__PURE__ */ e(
|
|
1466
|
-
onClick: () =>
|
|
1472
|
+
className: U,
|
|
1473
|
+
startIcon: /* @__PURE__ */ e(Kn, { "aria-hidden": "true" }),
|
|
1474
|
+
onClick: () => Y(D),
|
|
1467
1475
|
children: h("calendarWorkspace.editor.delete")
|
|
1468
1476
|
},
|
|
1469
1477
|
"delete"
|
|
1470
1478
|
)
|
|
1471
1479
|
]);
|
|
1472
|
-
const
|
|
1480
|
+
const Qe = _.map(([, g]) => g);
|
|
1473
1481
|
r.current = {
|
|
1474
|
-
status:
|
|
1475
|
-
allowed:
|
|
1482
|
+
status: ae ?? null,
|
|
1483
|
+
allowed: _e ? Ue : [],
|
|
1476
1484
|
offered: _.map(([g]) => g),
|
|
1477
1485
|
historyAvailable: w !== void 0,
|
|
1478
1486
|
historyOpen: le,
|
|
1479
|
-
openHistory:
|
|
1487
|
+
openHistory: Ie,
|
|
1480
1488
|
closeHistory: () => ne(!1)
|
|
1481
1489
|
};
|
|
1482
|
-
const
|
|
1490
|
+
const gt = h(S("historyBack"));
|
|
1483
1491
|
return /* @__PURE__ */ e(
|
|
1484
1492
|
"div",
|
|
1485
1493
|
{
|
|
1486
|
-
className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${
|
|
1487
|
-
children: /* @__PURE__ */ v(
|
|
1494
|
+
className: `ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ${Ye ? on : ""}`,
|
|
1495
|
+
children: /* @__PURE__ */ v(et.Host, { children: [
|
|
1488
1496
|
/* @__PURE__ */ e(
|
|
1489
|
-
|
|
1497
|
+
Wt,
|
|
1490
1498
|
{
|
|
1491
1499
|
title: l,
|
|
1492
1500
|
headingId: u,
|
|
1493
|
-
icon: /* @__PURE__ */ e(
|
|
1501
|
+
icon: /* @__PURE__ */ e(Kt, { "aria-hidden": "true" }),
|
|
1494
1502
|
sticky: !0,
|
|
1495
1503
|
divider: !0,
|
|
1496
1504
|
actions: w ? /* @__PURE__ */ e(
|
|
1497
|
-
|
|
1505
|
+
Mt,
|
|
1498
1506
|
{
|
|
1499
1507
|
size: "sm",
|
|
1500
1508
|
intent: "ghost",
|
|
1501
|
-
icon: /* @__PURE__ */ e(
|
|
1509
|
+
icon: /* @__PURE__ */ e(Rt, { "aria-hidden": "true" }),
|
|
1502
1510
|
"aria-label": h(S("historyAction")),
|
|
1503
1511
|
tooltip: h(S("historyAction")),
|
|
1504
1512
|
"data-action": "open-history",
|
|
1505
|
-
onClick:
|
|
1513
|
+
onClick: Ie
|
|
1506
1514
|
}
|
|
1507
1515
|
) : void 0
|
|
1508
1516
|
}
|
|
@@ -1514,42 +1522,42 @@ function Aa({
|
|
|
1514
1522
|
"aria-busy": n || void 0,
|
|
1515
1523
|
className: "ds:[min-block-size:0] ds:flex-1 ds:overflow-y-auto",
|
|
1516
1524
|
children: /* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1517
|
-
k ? /* @__PURE__ */ e(
|
|
1518
|
-
|
|
1525
|
+
k ? /* @__PURE__ */ e(an, { mask: b }) : t.patient ? /* @__PURE__ */ e(
|
|
1526
|
+
ma,
|
|
1519
1527
|
{
|
|
1520
|
-
...
|
|
1528
|
+
...fe,
|
|
1521
1529
|
now: d,
|
|
1522
1530
|
mapsLink: m,
|
|
1523
|
-
shortcuts:
|
|
1524
|
-
onRequestSignature:
|
|
1525
|
-
onSignOnDevice:
|
|
1531
|
+
shortcuts: he,
|
|
1532
|
+
onRequestSignature: Ne,
|
|
1533
|
+
onSignOnDevice: Te,
|
|
1526
1534
|
onOpenPatient: me
|
|
1527
1535
|
}
|
|
1528
1536
|
) : (
|
|
1529
1537
|
/* No patient card to carry the identity: a patient-less, an
|
|
1530
1538
|
unassigned or an unresolved booking keeps the strip. */
|
|
1531
1539
|
/* @__PURE__ */ e(
|
|
1532
|
-
|
|
1540
|
+
Sn,
|
|
1533
1541
|
{
|
|
1534
1542
|
name: t.appointment.title.trim() ? t.appointment.title : h(S("patientNotLoaded")),
|
|
1535
|
-
unresolved:
|
|
1536
|
-
status:
|
|
1543
|
+
unresolved: Ge,
|
|
1544
|
+
status: ae,
|
|
1537
1545
|
flags: {
|
|
1538
1546
|
isTelehealth: t.appointment.isTelehealth,
|
|
1539
1547
|
isBookedOnline: t.appointment.bookedOnline,
|
|
1540
1548
|
isRecurring: t.appointment.recurrence !== void 0,
|
|
1541
|
-
hasUnassignedPatient: t.appointment.bookedOnline && !
|
|
1549
|
+
hasUnassignedPatient: t.appointment.bookedOnline && !Ge,
|
|
1542
1550
|
hasHighlightedAnamnesis: !1,
|
|
1543
|
-
hasBillableAmount: (((
|
|
1551
|
+
hasBillableAmount: (((yt = t.money) == null ? void 0 : yt.billableAmount) ?? 0) > 0
|
|
1544
1552
|
},
|
|
1545
1553
|
locale: c
|
|
1546
1554
|
}
|
|
1547
1555
|
)
|
|
1548
1556
|
),
|
|
1549
1557
|
/* @__PURE__ */ e(
|
|
1550
|
-
|
|
1558
|
+
ha,
|
|
1551
1559
|
{
|
|
1552
|
-
...
|
|
1560
|
+
...fe,
|
|
1553
1561
|
operator: f,
|
|
1554
1562
|
chair: y,
|
|
1555
1563
|
privacy: k,
|
|
@@ -1559,80 +1567,81 @@ function Aa({
|
|
|
1559
1567
|
so the sub-view can hand focus back to it. An empty
|
|
1560
1568
|
read-only description prints nothing. Privacy hides the
|
|
1561
1569
|
text and the pencil. */
|
|
1562
|
-
k ?
|
|
1563
|
-
|
|
1570
|
+
k ? $ ? /* @__PURE__ */ e(wt, { block: "description" }) : void 0 : $ || z && !E ? /* @__PURE__ */ e(
|
|
1571
|
+
Ft,
|
|
1564
1572
|
{
|
|
1565
1573
|
"data-block": "description",
|
|
1566
1574
|
role: "group",
|
|
1567
1575
|
"aria-label": h("calendarWorkspace.editor.description"),
|
|
1568
|
-
value:
|
|
1576
|
+
value: $,
|
|
1569
1577
|
editLabel: h(S("editDescription")),
|
|
1570
|
-
onEdit: z && !
|
|
1578
|
+
onEdit: z && !E ? () => G(!0) : void 0
|
|
1571
1579
|
}
|
|
1572
1580
|
) : void 0
|
|
1573
1581
|
)
|
|
1574
1582
|
}
|
|
1575
1583
|
),
|
|
1576
|
-
|
|
1584
|
+
ge && k ? /* @__PURE__ */ e(
|
|
1577
1585
|
pe,
|
|
1578
1586
|
{
|
|
1579
1587
|
"data-card": "notes",
|
|
1580
1588
|
title: h("notesPanel.title"),
|
|
1581
1589
|
headingLevel: 3,
|
|
1582
|
-
children: /* @__PURE__ */ e(
|
|
1590
|
+
children: /* @__PURE__ */ e(wt, {})
|
|
1583
1591
|
}
|
|
1584
|
-
) :
|
|
1585
|
-
|
|
1592
|
+
) : ge ? /* @__PURE__ */ e(
|
|
1593
|
+
ga,
|
|
1586
1594
|
{
|
|
1587
|
-
preview:
|
|
1588
|
-
onOpenNotes:
|
|
1595
|
+
preview: ge,
|
|
1596
|
+
onOpenNotes: Fe ? L : void 0,
|
|
1589
1597
|
locale: c
|
|
1590
1598
|
}
|
|
1591
1599
|
) : null,
|
|
1592
1600
|
/* @__PURE__ */ e(
|
|
1593
|
-
|
|
1601
|
+
fa,
|
|
1594
1602
|
{
|
|
1595
|
-
...
|
|
1603
|
+
...fe,
|
|
1596
1604
|
privacy: k,
|
|
1597
|
-
carePlanUrl:
|
|
1605
|
+
carePlanUrl: he == null ? void 0 : he.carePlanUrl
|
|
1598
1606
|
}
|
|
1599
1607
|
)
|
|
1600
1608
|
] })
|
|
1601
1609
|
}
|
|
1602
1610
|
),
|
|
1603
|
-
|
|
1611
|
+
ht || Qe.length > 0 ? (
|
|
1604
1612
|
/* The body scrolls; the status and the actions stay put. The
|
|
1605
1613
|
status keeps its own segment and never folds. The actions fold
|
|
1606
|
-
to icons, then into More, never onto a second line.
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1614
|
+
to icons, then into More, never onto a second line. Only a
|
|
1615
|
+
refused status change adds a line, for its message. */
|
|
1616
|
+
/* @__PURE__ */ v("div", { className: ya(), children: [
|
|
1617
|
+
ht,
|
|
1618
|
+
Qe.length > 0 ? /* @__PURE__ */ e(
|
|
1619
|
+
sn,
|
|
1611
1620
|
{
|
|
1612
1621
|
label: h(S("actionsLabel")),
|
|
1613
1622
|
overflow: "menu",
|
|
1614
1623
|
collapseToIcons: !0,
|
|
1615
1624
|
background: "surface",
|
|
1616
1625
|
size: "sm",
|
|
1617
|
-
className: `ds:min-w-0 ds:flex-1 ds:text-end ${
|
|
1618
|
-
children:
|
|
1626
|
+
className: `ds:min-w-0 ds:flex-1 ds:text-end ${wa}`,
|
|
1627
|
+
children: Qe
|
|
1619
1628
|
}
|
|
1620
1629
|
) : null
|
|
1621
1630
|
] })
|
|
1622
1631
|
) : null,
|
|
1623
1632
|
w ? /* @__PURE__ */ e(
|
|
1624
|
-
|
|
1633
|
+
et,
|
|
1625
1634
|
{
|
|
1626
|
-
ref:
|
|
1635
|
+
ref: ve,
|
|
1627
1636
|
open: le,
|
|
1628
|
-
icon: /* @__PURE__ */ e(
|
|
1637
|
+
icon: /* @__PURE__ */ e(Rt, { "aria-hidden": "true" }),
|
|
1629
1638
|
title: h(S("historyTitle")),
|
|
1630
|
-
backLabel:
|
|
1639
|
+
backLabel: gt,
|
|
1631
1640
|
headingLevel: 3,
|
|
1632
1641
|
onBack: () => ne(!1),
|
|
1633
1642
|
"data-details-subview": "history",
|
|
1634
1643
|
children: /* @__PURE__ */ e("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
|
|
1635
|
-
|
|
1644
|
+
Na,
|
|
1636
1645
|
{
|
|
1637
1646
|
history: w,
|
|
1638
1647
|
locale: c,
|
|
@@ -1647,25 +1656,25 @@ function Aa({
|
|
|
1647
1656
|
}
|
|
1648
1657
|
) : null,
|
|
1649
1658
|
re ? /* @__PURE__ */ e(
|
|
1650
|
-
|
|
1659
|
+
et,
|
|
1651
1660
|
{
|
|
1652
|
-
open:
|
|
1653
|
-
icon: /* @__PURE__ */ e(
|
|
1661
|
+
open: We,
|
|
1662
|
+
icon: /* @__PURE__ */ e(Dt, { "aria-hidden": "true" }),
|
|
1654
1663
|
title: h(S("editDescription")),
|
|
1655
|
-
backLabel:
|
|
1664
|
+
backLabel: gt,
|
|
1656
1665
|
headingLevel: 3,
|
|
1657
|
-
initialFocusRef:
|
|
1666
|
+
initialFocusRef: ke,
|
|
1658
1667
|
onBack: () => {
|
|
1659
|
-
|
|
1668
|
+
be || G(!1);
|
|
1660
1669
|
},
|
|
1661
1670
|
"data-details-subview": "description",
|
|
1662
|
-
footer: /* @__PURE__ */ v(
|
|
1671
|
+
footer: /* @__PURE__ */ v(ie, { children: [
|
|
1663
1672
|
/* @__PURE__ */ e(
|
|
1664
1673
|
C,
|
|
1665
1674
|
{
|
|
1666
1675
|
intent: "secondary",
|
|
1667
|
-
disabled:
|
|
1668
|
-
onClick: () =>
|
|
1676
|
+
disabled: be,
|
|
1677
|
+
onClick: () => G(!1),
|
|
1669
1678
|
children: h(S("noteCancel"))
|
|
1670
1679
|
}
|
|
1671
1680
|
),
|
|
@@ -1674,22 +1683,34 @@ function Aa({
|
|
|
1674
1683
|
{
|
|
1675
1684
|
intent: "primary",
|
|
1676
1685
|
"data-action": "save-description",
|
|
1677
|
-
loading:
|
|
1678
|
-
|
|
1686
|
+
loading: be,
|
|
1687
|
+
disabled: q,
|
|
1688
|
+
onClick: () => void Xt(),
|
|
1679
1689
|
children: h(S("descriptionSave"))
|
|
1680
1690
|
}
|
|
1681
1691
|
)
|
|
1682
1692
|
] }),
|
|
1683
1693
|
children: /* @__PURE__ */ v("div", { className: "ds:-m-[var(--panel-subview-inset)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1684
|
-
A ? /* @__PURE__ */ e(
|
|
1694
|
+
A || q ? /* @__PURE__ */ e(X, { variant: "error", children: /* @__PURE__ */ e(
|
|
1695
|
+
X.Description,
|
|
1696
|
+
{
|
|
1697
|
+
id: q ? Le : void 0,
|
|
1698
|
+
children: q ? h("calendarWorkspace.editor.descriptionTooLong", {
|
|
1699
|
+
max: Q
|
|
1700
|
+
}) : A
|
|
1701
|
+
}
|
|
1702
|
+
) }) : null,
|
|
1685
1703
|
/* @__PURE__ */ e(
|
|
1686
|
-
|
|
1704
|
+
rn,
|
|
1687
1705
|
{
|
|
1688
|
-
ref:
|
|
1689
|
-
value:
|
|
1706
|
+
ref: ke,
|
|
1707
|
+
value: ye,
|
|
1708
|
+
tone: q ? "error" : "default",
|
|
1690
1709
|
minRows: 6,
|
|
1691
1710
|
autoResize: !0,
|
|
1692
1711
|
"aria-label": h("calendarWorkspace.editor.description"),
|
|
1712
|
+
"aria-invalid": q || void 0,
|
|
1713
|
+
"aria-describedby": q ? Le : void 0,
|
|
1693
1714
|
onChange: (g) => de(g.target.value)
|
|
1694
1715
|
}
|
|
1695
1716
|
)
|
|
@@ -1700,7 +1721,7 @@ function Aa({
|
|
|
1700
1721
|
}
|
|
1701
1722
|
);
|
|
1702
1723
|
}
|
|
1703
|
-
const
|
|
1724
|
+
const Ea = Zt(function({
|
|
1704
1725
|
state: n,
|
|
1705
1726
|
onRetry: i,
|
|
1706
1727
|
patientId: d,
|
|
@@ -1719,49 +1740,50 @@ const xa = Xt(function({
|
|
|
1719
1740
|
onOpenHistory: N,
|
|
1720
1741
|
noteUnrecordedEdits: L,
|
|
1721
1742
|
readOnly: P = !1,
|
|
1722
|
-
onStatusChange:
|
|
1743
|
+
onStatusChange: T,
|
|
1723
1744
|
allowedStatuses: M,
|
|
1724
|
-
onDescriptionChange:
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1745
|
+
onDescriptionChange: E,
|
|
1746
|
+
descriptionMaxLength: I,
|
|
1747
|
+
onAssignPatient: F,
|
|
1748
|
+
onEdit: z,
|
|
1749
|
+
onMove: Q,
|
|
1750
|
+
onCopy: se,
|
|
1751
|
+
onDelete: K,
|
|
1752
|
+
onJoinTelehealth: j,
|
|
1753
|
+
onWhatsApp: W,
|
|
1754
|
+
whatsappUrl: Y,
|
|
1755
|
+
onBuyWhatsApp: Z,
|
|
1756
|
+
createTaskUrl: ee,
|
|
1757
|
+
onRequestSignature: x,
|
|
1758
|
+
onSignOnDevice: V,
|
|
1759
|
+
onOpenPatient: te,
|
|
1760
|
+
shortcuts: Ne,
|
|
1761
|
+
documents: Te,
|
|
1740
1762
|
id: me,
|
|
1741
|
-
className:
|
|
1763
|
+
className: he,
|
|
1742
1764
|
...oe
|
|
1743
|
-
},
|
|
1744
|
-
var
|
|
1745
|
-
const { t: h, i18n: D } =
|
|
1765
|
+
}, Me) {
|
|
1766
|
+
var be, Pe;
|
|
1767
|
+
const { t: h, i18n: D } = J("ui"), Ye = je(), fe = me ?? Ye, w = je(), Fe = r ?? D.language, ge = !o && (a != null && a.trim()) ? a : h(S("region")), re = n.status === "ready" ? n.read : void 0, Ee = n.status === "ready" ? n.read.eventId : n.eventId, ne = R(
|
|
1746
1768
|
void 0
|
|
1747
|
-
),
|
|
1748
|
-
|
|
1769
|
+
), Ce = ne.current !== void 0 && ne.current !== "ready";
|
|
1770
|
+
Ae(() => {
|
|
1749
1771
|
ne.current = n.status;
|
|
1750
1772
|
}, [n.status]);
|
|
1751
|
-
const
|
|
1752
|
-
typeof document < "u" && (
|
|
1753
|
-
const
|
|
1773
|
+
const G = !!i && (n.status === "error" || n.status === "refused" && n.retryable === !0), le = R(null), We = kt(() => nn(Me, le), [Me]), Ie = R(!1);
|
|
1774
|
+
typeof document < "u" && (Ie.current = ((be = le.current) == null ? void 0 : be.contains(document.activeElement)) ?? !1);
|
|
1775
|
+
const Be = re ? `ready:${re.eventId}` : n.status, ve = R(!1);
|
|
1754
1776
|
ue(() => {
|
|
1755
|
-
|
|
1756
|
-
}, [
|
|
1777
|
+
ve.current ? (n.status !== "loading" && (ve.current = !1), He(w)) : Ie.current && He(w);
|
|
1778
|
+
}, [Be, w]);
|
|
1757
1779
|
const O = R(null);
|
|
1758
1780
|
re || (O.current = null);
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1761
|
-
const
|
|
1781
|
+
const De = R(null), $ = R({ state: n, eventId: Ee, privacy: o, retryOffered: G, onRetry: i });
|
|
1782
|
+
$.current = { state: n, eventId: Ee, privacy: o, retryOffered: G, onRetry: i };
|
|
1783
|
+
const Re = kt(
|
|
1762
1784
|
() => ({
|
|
1763
|
-
getEventId: () =>
|
|
1764
|
-
getLoadStatus: () =>
|
|
1785
|
+
getEventId: () => $.current.eventId ?? null,
|
|
1786
|
+
getLoadStatus: () => $.current.state.status,
|
|
1765
1787
|
getAppointmentStatus: () => {
|
|
1766
1788
|
var A;
|
|
1767
1789
|
return ((A = O.current) == null ? void 0 : A.status) ?? null;
|
|
@@ -1778,7 +1800,7 @@ const xa = Xt(function({
|
|
|
1778
1800
|
var A;
|
|
1779
1801
|
return ((A = O.current) == null ? void 0 : A.historyOpen) ?? !1;
|
|
1780
1802
|
},
|
|
1781
|
-
isPrivacy: () =>
|
|
1803
|
+
isPrivacy: () => $.current.privacy,
|
|
1782
1804
|
openHistory: () => {
|
|
1783
1805
|
var A;
|
|
1784
1806
|
if (!((A = O.current) != null && A.historyAvailable))
|
|
@@ -1790,57 +1812,57 @@ const xa = Xt(function({
|
|
|
1790
1812
|
(A = O.current) == null || A.closeHistory();
|
|
1791
1813
|
},
|
|
1792
1814
|
setAppointmentStatus: (A) => {
|
|
1793
|
-
const
|
|
1794
|
-
if (!
|
|
1795
|
-
return
|
|
1815
|
+
const B = O.current, ke = De.current;
|
|
1816
|
+
if (!B || !ke || B.allowed.length === 0)
|
|
1817
|
+
return Ze(
|
|
1796
1818
|
new Error("AppointmentDetailsPanel: the status is read-only.")
|
|
1797
1819
|
);
|
|
1798
|
-
if (A ===
|
|
1799
|
-
if (!
|
|
1800
|
-
return
|
|
1820
|
+
if (A === B.status) return Promise.resolve();
|
|
1821
|
+
if (!B.allowed.includes(A))
|
|
1822
|
+
return Ze(
|
|
1801
1823
|
new Error(`AppointmentDetailsPanel: "${A}" is not allowed.`)
|
|
1802
1824
|
);
|
|
1803
|
-
const
|
|
1825
|
+
const Le = () => Ze(
|
|
1804
1826
|
new Error("AppointmentDetailsPanel: a status save is in flight.")
|
|
1805
1827
|
);
|
|
1806
|
-
if (
|
|
1807
|
-
const
|
|
1808
|
-
return
|
|
1828
|
+
if (ke.getIsSaving()) return Le();
|
|
1829
|
+
const q = ke.setValue(A);
|
|
1830
|
+
return q === void 0 ? Le() : q;
|
|
1809
1831
|
},
|
|
1810
1832
|
retry: () => {
|
|
1811
|
-
const { retryOffered: A, onRetry:
|
|
1812
|
-
if (!A || !
|
|
1833
|
+
const { retryOffered: A, onRetry: B } = $.current;
|
|
1834
|
+
if (!A || !B)
|
|
1813
1835
|
throw new Error("AppointmentDetailsPanel: Retry is not offered.");
|
|
1814
|
-
|
|
1836
|
+
B();
|
|
1815
1837
|
}
|
|
1816
1838
|
}),
|
|
1817
1839
|
[]
|
|
1818
1840
|
);
|
|
1819
|
-
|
|
1820
|
-
const
|
|
1821
|
-
|
|
1841
|
+
tn(aa, Re, fe);
|
|
1842
|
+
const ye = /* @__PURE__ */ e(
|
|
1843
|
+
Wt,
|
|
1822
1844
|
{
|
|
1823
|
-
title:
|
|
1845
|
+
title: ge,
|
|
1824
1846
|
headingId: w,
|
|
1825
|
-
icon: /* @__PURE__ */ e(
|
|
1847
|
+
icon: /* @__PURE__ */ e(Kt, { "aria-hidden": "true" }),
|
|
1826
1848
|
sticky: !0,
|
|
1827
1849
|
divider: !0
|
|
1828
1850
|
}
|
|
1829
1851
|
);
|
|
1830
1852
|
let de;
|
|
1831
1853
|
return n.status === "ready" ? de = /* @__PURE__ */ e(
|
|
1832
|
-
|
|
1854
|
+
Ta,
|
|
1833
1855
|
{
|
|
1834
1856
|
read: n.read,
|
|
1835
1857
|
refreshing: n.refreshing === !0,
|
|
1836
1858
|
currency: u,
|
|
1837
1859
|
now: p ?? /* @__PURE__ */ new Date(),
|
|
1838
|
-
locale:
|
|
1839
|
-
shownTitle:
|
|
1860
|
+
locale: Fe,
|
|
1861
|
+
shownTitle: ge,
|
|
1840
1862
|
headingId: w,
|
|
1841
|
-
enter:
|
|
1863
|
+
enter: Ce,
|
|
1842
1864
|
live: O,
|
|
1843
|
-
statusControl:
|
|
1865
|
+
statusControl: De,
|
|
1844
1866
|
patientId: d,
|
|
1845
1867
|
operator: c,
|
|
1846
1868
|
chair: l,
|
|
@@ -1853,40 +1875,41 @@ const xa = Xt(function({
|
|
|
1853
1875
|
onOpenHistory: N,
|
|
1854
1876
|
noteUnrecordedEdits: L,
|
|
1855
1877
|
readOnly: P,
|
|
1856
|
-
onStatusChange:
|
|
1878
|
+
onStatusChange: T,
|
|
1857
1879
|
allowedStatuses: M,
|
|
1858
|
-
onDescriptionChange:
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1880
|
+
onDescriptionChange: E,
|
|
1881
|
+
descriptionMaxLength: I,
|
|
1882
|
+
onAssignPatient: F,
|
|
1883
|
+
onEdit: z,
|
|
1884
|
+
onMove: Q,
|
|
1885
|
+
onCopy: se,
|
|
1886
|
+
onDelete: K,
|
|
1887
|
+
onJoinTelehealth: j,
|
|
1888
|
+
onWhatsApp: W,
|
|
1889
|
+
whatsappUrl: Y,
|
|
1890
|
+
onBuyWhatsApp: Z,
|
|
1891
|
+
createTaskUrl: ee,
|
|
1892
|
+
onRequestSignature: x,
|
|
1893
|
+
onSignOnDevice: V,
|
|
1894
|
+
onOpenPatient: te,
|
|
1895
|
+
shortcuts: Ne,
|
|
1896
|
+
documents: Te
|
|
1874
1897
|
},
|
|
1875
1898
|
n.read.eventId
|
|
1876
|
-
) : n.status === "loading" ? de = /* @__PURE__ */ v(
|
|
1877
|
-
|
|
1878
|
-
/* @__PURE__ */ e(
|
|
1879
|
-
] }) : de = /* @__PURE__ */ v(
|
|
1880
|
-
|
|
1899
|
+
) : n.status === "loading" ? de = /* @__PURE__ */ v(ie, { children: [
|
|
1900
|
+
ye,
|
|
1901
|
+
/* @__PURE__ */ e(xa, {})
|
|
1902
|
+
] }) : de = /* @__PURE__ */ v(ie, { children: [
|
|
1903
|
+
ye,
|
|
1881
1904
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
1882
|
-
/* @__PURE__ */ e(
|
|
1883
|
-
|
|
1905
|
+
/* @__PURE__ */ e(X, { variant: n.status === "error" ? "error" : "warning", children: /* @__PURE__ */ e(X.Description, { children: n.status === "error" ? ((Pe = n.message) == null ? void 0 : Pe.trim()) || h("emptyState.error.description") : n.reason }) }),
|
|
1906
|
+
G ? /* @__PURE__ */ e(
|
|
1884
1907
|
C,
|
|
1885
1908
|
{
|
|
1886
1909
|
intent: "outline",
|
|
1887
1910
|
"data-action": "retry-load",
|
|
1888
1911
|
onClick: () => {
|
|
1889
|
-
|
|
1912
|
+
ve.current = !0, i == null || i();
|
|
1890
1913
|
},
|
|
1891
1914
|
children: h("emptyState.error.cta")
|
|
1892
1915
|
}
|
|
@@ -1895,72 +1918,72 @@ const xa = Xt(function({
|
|
|
1895
1918
|
] }), /* @__PURE__ */ e(
|
|
1896
1919
|
"div",
|
|
1897
1920
|
{
|
|
1898
|
-
ref:
|
|
1921
|
+
ref: We,
|
|
1899
1922
|
id: me,
|
|
1900
1923
|
"data-component": "appointment-details-panel",
|
|
1901
|
-
"data-component-id":
|
|
1902
|
-
"data-event-id":
|
|
1924
|
+
"data-component-id": fe,
|
|
1925
|
+
"data-event-id": Ee,
|
|
1903
1926
|
"data-status": n.status,
|
|
1904
1927
|
"aria-busy": n.status === "loading" || void 0,
|
|
1905
|
-
className:
|
|
1928
|
+
className: va({ className: he }),
|
|
1906
1929
|
...oe,
|
|
1907
1930
|
children: de
|
|
1908
1931
|
}
|
|
1909
1932
|
);
|
|
1910
1933
|
});
|
|
1911
|
-
|
|
1912
|
-
function
|
|
1934
|
+
Ea.displayName = "AppointmentDetailsPanel";
|
|
1935
|
+
function Ki({
|
|
1913
1936
|
eventId: t,
|
|
1914
1937
|
load: n,
|
|
1915
1938
|
reloadKey: i
|
|
1916
1939
|
}) {
|
|
1917
|
-
const { t: d } =
|
|
1940
|
+
const { t: d } = J("ui"), c = R("");
|
|
1918
1941
|
c.current = d("emptyState.error.description");
|
|
1919
1942
|
const l = R(n);
|
|
1920
1943
|
ue(() => {
|
|
1921
1944
|
l.current = n;
|
|
1922
1945
|
});
|
|
1923
1946
|
const [u, p] = H(0), [r, a] = H(), o = JSON.stringify([i ?? null, u]), [f, y] = H({ eventId: t, count: 0 }), k = f.eventId === t ? f.count : f.count + 1;
|
|
1924
|
-
f.eventId !== t && y({ eventId: t, count: k }),
|
|
1947
|
+
f.eventId !== t && y({ eventId: t, count: k }), Ae(() => {
|
|
1925
1948
|
if (t === null) {
|
|
1926
1949
|
a(void 0);
|
|
1927
1950
|
return;
|
|
1928
1951
|
}
|
|
1929
|
-
const L = new AbortController(), P = (
|
|
1930
|
-
L.signal.aborted || a({ eventId: t, selection: k, request: o, value:
|
|
1952
|
+
const L = new AbortController(), P = (T) => {
|
|
1953
|
+
L.signal.aborted || a({ eventId: t, selection: k, request: o, value: T });
|
|
1931
1954
|
};
|
|
1932
|
-
return Promise.resolve().then(() => l.current(t, { signal: L.signal })).then((
|
|
1933
|
-
var M,
|
|
1934
|
-
if (
|
|
1955
|
+
return Promise.resolve().then(() => l.current(t, { signal: L.signal })).then((T) => {
|
|
1956
|
+
var M, E;
|
|
1957
|
+
if (T.status !== "ready") {
|
|
1935
1958
|
P({
|
|
1936
1959
|
status: "refused",
|
|
1937
1960
|
eventId: t,
|
|
1938
|
-
reason:
|
|
1939
|
-
retryable:
|
|
1961
|
+
reason: T.reason,
|
|
1962
|
+
retryable: T.retryable
|
|
1940
1963
|
});
|
|
1941
1964
|
return;
|
|
1942
1965
|
}
|
|
1943
|
-
if (((M =
|
|
1966
|
+
if (((M = T.details) == null ? void 0 : M.eventId) !== t || !An((E = T.details.appointment) == null ? void 0 : E.startIso))
|
|
1944
1967
|
throw new Error(c.current);
|
|
1945
|
-
P({ status: "ready", read:
|
|
1946
|
-
}).catch((
|
|
1968
|
+
P({ status: "ready", read: T.details });
|
|
1969
|
+
}).catch((T) => {
|
|
1947
1970
|
P({
|
|
1948
1971
|
status: "error",
|
|
1949
1972
|
eventId: t,
|
|
1950
|
-
message:
|
|
1973
|
+
message: nt(T, c.current)
|
|
1951
1974
|
});
|
|
1952
1975
|
}), () => L.abort();
|
|
1953
1976
|
}, [t, k, o]);
|
|
1954
|
-
const b =
|
|
1977
|
+
const b = en(() => p((L) => L + 1), []);
|
|
1955
1978
|
if (t === null) return { state: null, retry: b };
|
|
1956
1979
|
const m = (r == null ? void 0 : r.eventId) === t && r.selection === k ? r : void 0;
|
|
1957
1980
|
let N = { status: "loading", eventId: t };
|
|
1958
1981
|
return (m == null ? void 0 : m.request) === o ? N = m.value : (m == null ? void 0 : m.value.status) === "ready" && (N = { status: "ready", read: m.value.read, refreshing: !0 }), { state: N, retry: b };
|
|
1959
1982
|
}
|
|
1960
1983
|
export {
|
|
1961
|
-
|
|
1984
|
+
Ea as A,
|
|
1962
1985
|
ce as D,
|
|
1963
|
-
|
|
1964
|
-
|
|
1986
|
+
aa as a,
|
|
1987
|
+
Ki as u
|
|
1965
1988
|
};
|
|
1966
|
-
//# sourceMappingURL=use-appointment-details-read-
|
|
1989
|
+
//# sourceMappingURL=use-appointment-details-read-Dod21IxM.js.map
|