@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,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as b, jsx as i, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { g as
|
|
6
|
-
import { h as
|
|
7
|
-
import { u as
|
|
8
|
-
import { C as
|
|
9
|
-
import { R as
|
|
10
|
-
import { T as
|
|
11
|
-
import { A as
|
|
12
|
-
import { B as
|
|
13
|
-
import { I as
|
|
14
|
-
import { S as
|
|
15
|
-
import { T as
|
|
16
|
-
import { C as
|
|
17
|
-
import { C as
|
|
18
|
-
import { D as
|
|
19
|
-
import { P as
|
|
20
|
-
import { a as
|
|
21
|
-
import { u as
|
|
22
|
-
import { u as
|
|
23
|
-
import { N as
|
|
24
|
-
import { P as
|
|
25
|
-
import { T as
|
|
26
|
-
const
|
|
1
|
+
import { jsxs as b, jsx as i, Fragment as qn } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as _n, useRef as u, useState as x, useId as Dn, useEffect as C, useCallback as W, useMemo as mt, useImperativeHandle as kn } from "react";
|
|
3
|
+
import { c as Rt } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as zn } from "react-i18next";
|
|
5
|
+
import { g as vt } from "./get-error-message-DbFUzuja.js";
|
|
6
|
+
import { h as Nt } from "./handled-rejection-C-6Dq0As.js";
|
|
7
|
+
import { u as Hn } from "./registry-DvAUVLHh.js";
|
|
8
|
+
import { C as Mn } from "./clinical-note-card-D-9xmRpf.js";
|
|
9
|
+
import { R as Wn } from "./rich-text-editor-Cx9cA4pd.js";
|
|
10
|
+
import { T as $n } from "./text-area-COMVJ1yE.js";
|
|
11
|
+
import { A as L } from "./alert-C4WKViaS.js";
|
|
12
|
+
import { B as ne } from "./button-Dp4j9ygh.js";
|
|
13
|
+
import { I as yt } from "./icon-button-u9VMQn3x.js";
|
|
14
|
+
import { S as Bn } from "./switch-DO6uC4HJ.js";
|
|
15
|
+
import { T as Kn } from "./tooltip-uEBdD1-5.js";
|
|
16
|
+
import { C as bt } from "./card-n6W6LW-N.js";
|
|
17
|
+
import { C as In, S as ye } from "./skeleton-tTWJpvAq.js";
|
|
18
|
+
import { D as q } from "./dialog-239Geb7Z.js";
|
|
19
|
+
import { P as Yn } from "./panel-header-CbtlTe85.js";
|
|
20
|
+
import { a as Gn, u as Jn, R as Qn } from "./use-list-reflow-C7O4Uqnl.js";
|
|
21
|
+
import { u as Un } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
22
|
+
import { u as Xn } from "./use-resolved-theme-B0f1_oyq.js";
|
|
23
|
+
import { N as Zn } from "./notebook-pen-CO7HoM-W.js";
|
|
24
|
+
import { P as er } from "./pencil-B1sKKyuT.js";
|
|
25
|
+
import { T as tr } from "./trash-2-uumy3fy1.js";
|
|
26
|
+
const nr = {
|
|
27
27
|
id: "notes-panel",
|
|
28
28
|
// 'submit' backs add_note (compose + commit a note). pin / flag are toggles
|
|
29
29
|
// with no dedicated capability in the closed vocabulary.
|
|
@@ -111,12 +111,12 @@ const tr = {
|
|
|
111
111
|
// Reaches the host's data source; the result is the host's promise.
|
|
112
112
|
openWorld: !0,
|
|
113
113
|
errors: [
|
|
114
|
-
"The panel offers no flag here: no onToggleFlag, no note with this id,
|
|
114
|
+
"The panel offers no flag here: no onToggleFlag, no note with this id, a deleted note, or actions.flag is false.",
|
|
115
115
|
"A flag or delete for this note is still pending. Read notes again once it has settled.",
|
|
116
116
|
"The host refused the change. The flag is restored and the panel shows the host's message."
|
|
117
117
|
],
|
|
118
118
|
descriptionKey: "ui.agent.notesPanel.actions.toggleFlag",
|
|
119
|
-
description: "Toggle the flagged state of the note with the given id. Returns the host's promise; a refusal restores the flag and the panel shows the host's message. Rejects without reaching the host when the panel refuses: a deleted note, or a write for the note still pending.",
|
|
119
|
+
description: "Toggle the flagged state of the note with the given id. Returns the host's promise; a refusal restores the flag and the panel shows the host's message. Rejects without reaching the host when the panel refuses: a deleted note, actions.flag false, or a write for the note still pending.",
|
|
120
120
|
invoke: (o, f) => o.toggleFlag(f.id)
|
|
121
121
|
}
|
|
122
122
|
},
|
|
@@ -136,7 +136,7 @@ const tr = {
|
|
|
136
136
|
description: "Stable note id on each rendered note row. Row controls carry data-note-action: edit, delete, pin or flag."
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
},
|
|
139
|
+
}, rr = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", sr = Rt(
|
|
140
140
|
"ds:relative ds:flex ds:flex-col ds:rounded-[var(--radius-lg)]",
|
|
141
141
|
{
|
|
142
142
|
variants: {
|
|
@@ -144,11 +144,11 @@ const tr = {
|
|
|
144
144
|
true: "ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)] ds:focus:outline-offset-[length:var(--focus-ring-offset)]",
|
|
145
145
|
false: ""
|
|
146
146
|
},
|
|
147
|
-
washed: { true:
|
|
147
|
+
washed: { true: rr, false: "" }
|
|
148
148
|
},
|
|
149
149
|
defaultVariants: { current: !1, washed: !1 }
|
|
150
150
|
}
|
|
151
|
-
),
|
|
151
|
+
), wt = Rt(
|
|
152
152
|
"ds:pointer-events-none ds:absolute ds:inset-0 ds:rounded-[var(--radius-lg)] ds:bg-[color:var(--accent)]",
|
|
153
153
|
{
|
|
154
154
|
variants: {
|
|
@@ -164,39 +164,39 @@ const tr = {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
),
|
|
167
|
+
), At = [
|
|
168
168
|
"ds:rounded-[var(--radius-lg)] ds:outline-none",
|
|
169
169
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
170
170
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
171
|
-
].join(" "),
|
|
171
|
+
].join(" "), ir = ["ds:flex ds:flex-col", At].join(" "), lr = "ds:opacity-0", ar = [
|
|
172
172
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
173
173
|
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
174
|
-
].join(" "),
|
|
175
|
-
function
|
|
174
|
+
].join(" "), or = [3, 2, 3];
|
|
175
|
+
function Pt(o) {
|
|
176
176
|
return o ? /<img\b/i.test(o) ? !0 : o.replace(/<[^>]*>/g, "").replace(/ /gi, " ").trim().length > 0 : !1;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Tt(o, f, y) {
|
|
179
179
|
const p = o == null ? void 0 : o.toggle(f, y), m = p ? p.refusal : "the panel is not mounted";
|
|
180
|
-
return m === void 0 ? p == null ? void 0 : p.result :
|
|
180
|
+
return m === void 0 ? p == null ? void 0 : p.result : Nt(new Error(`NotesPanel: ${y} refused (${m}).`));
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
function
|
|
182
|
+
const xt = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ new Set();
|
|
183
|
+
function be(o) {
|
|
184
184
|
return o.map(
|
|
185
185
|
(f) => `${f.id ?? ""}:${f.pinned ? 1 : 0}${f.flagged ? 1 : 0}${f.deleted ? 1 : 0}`
|
|
186
186
|
).join("|");
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function St(o) {
|
|
189
189
|
return typeof (o == null ? void 0 : o.then) == "function";
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Et(o, f, y) {
|
|
192
192
|
const p = o.indexOf(y);
|
|
193
193
|
if (p >= 0) return p;
|
|
194
194
|
const m = f.indexOf(y);
|
|
195
195
|
if (m < 0) return -1;
|
|
196
|
-
const
|
|
197
|
-
return f.slice(0, m).filter((
|
|
196
|
+
const re = new Set(o);
|
|
197
|
+
return f.slice(0, m).filter((S) => re.has(S)).length;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function dr(o) {
|
|
200
200
|
if (o.hasAttribute("tabindex")) {
|
|
201
201
|
o.focus();
|
|
202
202
|
return;
|
|
@@ -204,154 +204,154 @@ function or(o) {
|
|
|
204
204
|
const f = () => o.removeAttribute("tabindex");
|
|
205
205
|
o.setAttribute("tabindex", "-1"), o.focus(), document.activeElement === o ? o.addEventListener("blur", f, { once: !0 }) : f();
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const qr = _n(
|
|
208
208
|
function({
|
|
209
209
|
id: f,
|
|
210
210
|
notes: y,
|
|
211
211
|
onAddNote: p,
|
|
212
212
|
status: m = "ready",
|
|
213
|
-
onRetry:
|
|
214
|
-
currentNoteId:
|
|
215
|
-
currentNoteKey:
|
|
216
|
-
composer:
|
|
217
|
-
editorToolbar:
|
|
218
|
-
redactor:
|
|
219
|
-
imageUploadUrl:
|
|
220
|
-
showClinicalToggle:
|
|
221
|
-
canAddClinicalNote:
|
|
222
|
-
clinicalGatedReason:
|
|
213
|
+
onRetry: re,
|
|
214
|
+
currentNoteId: S,
|
|
215
|
+
currentNoteKey: _e,
|
|
216
|
+
composer: A = "rich",
|
|
217
|
+
editorToolbar: Ft = "standard",
|
|
218
|
+
redactor: Vt,
|
|
219
|
+
imageUploadUrl: Ot,
|
|
220
|
+
showClinicalToggle: jt = !0,
|
|
221
|
+
canAddClinicalNote: se = !0,
|
|
222
|
+
clinicalGatedReason: Lt,
|
|
223
223
|
defaultClinical: $ = !1,
|
|
224
|
-
onRequestAiDraft:
|
|
225
|
-
aiDraftFormat:
|
|
226
|
-
aiPrivacyNotice:
|
|
227
|
-
onDictate:
|
|
228
|
-
onProofread:
|
|
229
|
-
onAutoFormat:
|
|
230
|
-
aiConsent:
|
|
231
|
-
variables:
|
|
232
|
-
validateVariable:
|
|
233
|
-
onVariableValidityChange:
|
|
234
|
-
renderHelpMeWrite:
|
|
235
|
-
aiTemplates:
|
|
236
|
-
onAiApplied:
|
|
237
|
-
onUploadImage:
|
|
238
|
-
onAiCreditsExhausted:
|
|
239
|
-
showExtensions:
|
|
240
|
-
aiCreditsNotice:
|
|
241
|
-
extensions:
|
|
242
|
-
extensionContext:
|
|
243
|
-
onExtensionRun:
|
|
244
|
-
composerBefore:
|
|
245
|
-
composerAfter:
|
|
246
|
-
onTogglePin:
|
|
247
|
-
onToggleFlag:
|
|
248
|
-
noteActions:
|
|
224
|
+
onRequestAiDraft: qt,
|
|
225
|
+
aiDraftFormat: _t,
|
|
226
|
+
aiPrivacyNotice: Dt,
|
|
227
|
+
onDictate: kt,
|
|
228
|
+
onProofread: zt,
|
|
229
|
+
onAutoFormat: Ht,
|
|
230
|
+
aiConsent: Mt,
|
|
231
|
+
variables: Wt,
|
|
232
|
+
validateVariable: $t,
|
|
233
|
+
onVariableValidityChange: Bt,
|
|
234
|
+
renderHelpMeWrite: Kt,
|
|
235
|
+
aiTemplates: It,
|
|
236
|
+
onAiApplied: Yt,
|
|
237
|
+
onUploadImage: Gt,
|
|
238
|
+
onAiCreditsExhausted: Jt,
|
|
239
|
+
showExtensions: Qt,
|
|
240
|
+
aiCreditsNotice: Ut,
|
|
241
|
+
extensions: Xt,
|
|
242
|
+
extensionContext: Zt,
|
|
243
|
+
onExtensionRun: en,
|
|
244
|
+
composerBefore: tn,
|
|
245
|
+
composerAfter: nn,
|
|
246
|
+
onTogglePin: De,
|
|
247
|
+
onToggleFlag: ke,
|
|
248
|
+
noteActions: ze,
|
|
249
249
|
onEditNote: B,
|
|
250
|
-
editClinical:
|
|
250
|
+
editClinical: rn = !1,
|
|
251
251
|
onDeleteNote: K,
|
|
252
|
-
onWriteError:
|
|
253
|
-
confirmDelete:
|
|
254
|
-
title:
|
|
255
|
-
composerPlaceholder:
|
|
256
|
-
addNoteLabel:
|
|
257
|
-
emptyState:
|
|
258
|
-
className:
|
|
259
|
-
"aria-label":
|
|
260
|
-
...
|
|
261
|
-
},
|
|
262
|
-
var
|
|
263
|
-
const { t: a, i18n:
|
|
264
|
-
|
|
265
|
-
const
|
|
266
|
-
m === "loading" && (
|
|
267
|
-
const
|
|
268
|
-
|
|
269
|
-
const [Y,
|
|
270
|
-
|
|
271
|
-
|
|
252
|
+
onWriteError: He,
|
|
253
|
+
confirmDelete: Me = !0,
|
|
254
|
+
title: sn,
|
|
255
|
+
composerPlaceholder: ln,
|
|
256
|
+
addNoteLabel: an,
|
|
257
|
+
emptyState: on,
|
|
258
|
+
className: dn,
|
|
259
|
+
"aria-label": we,
|
|
260
|
+
...cn
|
|
261
|
+
}, un) {
|
|
262
|
+
var pt;
|
|
263
|
+
const { t: a, i18n: We } = zn("ui"), _ = u(null), [k, I] = x(""), [ie, le] = x($), [P, $e] = x(!1), [Be, ae] = x(null), [g, Pe] = x(null), Ke = u(g);
|
|
264
|
+
Ke.current = g;
|
|
265
|
+
const Ie = u(!1);
|
|
266
|
+
m === "loading" && (Ie.current = !0);
|
|
267
|
+
const fn = Ie.current ? In : "", gn = sn ?? a("notesPanel.title", { defaultValue: "Notes" }), Ye = Dn(), Ge = ln ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), Je = g !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), hn = A === "rich" ? Pt(k) : k.trim().length > 0, E = u(y);
|
|
268
|
+
E.current = y;
|
|
269
|
+
const [Y, pn] = x(xt), R = u(xt), [mn, vn] = x(Ct), G = u(Ct), F = u(!0);
|
|
270
|
+
C(() => (F.current = !0, () => {
|
|
271
|
+
F.current = !1;
|
|
272
272
|
}), []);
|
|
273
|
-
const
|
|
274
|
-
D.current =
|
|
275
|
-
const
|
|
276
|
-
const e =
|
|
277
|
-
return !
|
|
278
|
-
}, []), J = u([]), [
|
|
279
|
-
if (!
|
|
273
|
+
const V = u(null), D = u(He);
|
|
274
|
+
D.current = He;
|
|
275
|
+
const Te = W(() => {
|
|
276
|
+
const e = V.current;
|
|
277
|
+
return !F.current || !e || e.closest('[hidden],[inert],[aria-hidden="true"]') ? !1 : typeof e.checkVisibility == "function" ? e.checkVisibility() : !0;
|
|
278
|
+
}, []), J = u([]), [yn, bn] = x(0), xe = W((e) => {
|
|
279
|
+
if (!F.current) {
|
|
280
280
|
e(!1);
|
|
281
281
|
return;
|
|
282
282
|
}
|
|
283
|
-
J.current.push(e),
|
|
283
|
+
J.current.push(e), bn((t) => t + 1);
|
|
284
284
|
}, []);
|
|
285
|
-
|
|
285
|
+
C(() => {
|
|
286
286
|
const e = J.current;
|
|
287
287
|
J.current = [], e.forEach((t) => t(!0));
|
|
288
|
-
}, [
|
|
288
|
+
}, [yn]), C(
|
|
289
289
|
() => () => {
|
|
290
290
|
const e = J.current;
|
|
291
291
|
J.current = [], e.forEach((t) => t(!1));
|
|
292
292
|
},
|
|
293
293
|
[]
|
|
294
294
|
);
|
|
295
|
-
const
|
|
296
|
-
const t = new Map(
|
|
297
|
-
e(t),
|
|
298
|
-
},
|
|
295
|
+
const Qe = (e) => {
|
|
296
|
+
const t = new Map(R.current);
|
|
297
|
+
e(t), R.current = t, pn(t);
|
|
298
|
+
}, Ce = (e) => {
|
|
299
299
|
const t = new Set(G.current);
|
|
300
|
-
e(t), G.current = t,
|
|
301
|
-
},
|
|
300
|
+
e(t), G.current = t, vn(t);
|
|
301
|
+
}, oe = (e, t) => {
|
|
302
302
|
var n;
|
|
303
|
-
return (n =
|
|
304
|
-
}, Q = (e, t, n) =>
|
|
303
|
+
return (n = R.current.get(e)) == null ? void 0 : n[t];
|
|
304
|
+
}, Q = (e, t, n) => Qe((l) => {
|
|
305
305
|
const s = { ...l.get(e) };
|
|
306
306
|
n ? s[t] = n : delete s[t], Object.keys(s).length > 0 ? l.set(e, s) : l.delete(e);
|
|
307
|
-
}),
|
|
307
|
+
}), Ue = (e) => {
|
|
308
308
|
var t;
|
|
309
|
-
return e != null && !!((t =
|
|
310
|
-
},
|
|
309
|
+
return e != null && !!((t = R.current.get(e)) != null && t.delete);
|
|
310
|
+
}, wn = W(() => {
|
|
311
311
|
var h;
|
|
312
312
|
if (!(g !== null ? B : p) || P) return;
|
|
313
|
-
const t =
|
|
314
|
-
if (t ? !
|
|
313
|
+
const t = A === "rich", n = t ? ((h = _.current) == null ? void 0 : h.getHTML()) ?? k : k.trim();
|
|
314
|
+
if (t ? !Pt(n) : !n) return;
|
|
315
315
|
const l = () => {
|
|
316
316
|
var c;
|
|
317
|
-
t && ((c =
|
|
317
|
+
t && ((c = _.current) == null || c.clear()), I(""), le($), Pe(null);
|
|
318
318
|
};
|
|
319
|
-
|
|
320
|
-
const s = g, r = (c) =>
|
|
321
|
-
var
|
|
322
|
-
const T = v && (s === null ||
|
|
323
|
-
T &&
|
|
319
|
+
ae(null);
|
|
320
|
+
const s = g, r = (c) => xe((v) => {
|
|
321
|
+
var N;
|
|
322
|
+
const T = v && (s === null || Ke.current === s && E.current.some((te) => te.id === s && !te.deleted));
|
|
323
|
+
T && ae(vt(c, a("notesPanel.addFailed"))), (N = D.current) == null || N.call(D, {
|
|
324
324
|
kind: s !== null ? "edit" : "add",
|
|
325
325
|
noteId: s ?? void 0,
|
|
326
326
|
error: c,
|
|
327
|
-
shown: T &&
|
|
327
|
+
shown: T && Te()
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
330
|
let d;
|
|
331
331
|
try {
|
|
332
|
-
d = g !== null && B ? B(g, { content: n, clinical:
|
|
332
|
+
d = g !== null && B ? B(g, { content: n, clinical: ie }) : p == null ? void 0 : p({ content: n, clinical: ie });
|
|
333
333
|
} catch (c) {
|
|
334
334
|
r(c);
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
if (!d || typeof d.then != "function") return l();
|
|
338
|
-
|
|
338
|
+
$e(!0), Promise.resolve(d).then(l, r).finally(() => $e(!1));
|
|
339
339
|
}, [
|
|
340
|
-
|
|
340
|
+
A,
|
|
341
341
|
k,
|
|
342
|
-
|
|
342
|
+
ie,
|
|
343
343
|
$,
|
|
344
344
|
g,
|
|
345
|
-
|
|
345
|
+
xe,
|
|
346
346
|
p,
|
|
347
347
|
B,
|
|
348
|
-
|
|
348
|
+
Te,
|
|
349
349
|
P,
|
|
350
350
|
a
|
|
351
|
-
]),
|
|
351
|
+
]), Xe = jt && (g === null || rn), Pn = g !== null && !!((pt = Y.get(g)) != null && pt.delete), de = W(
|
|
352
352
|
(e) => {
|
|
353
353
|
try {
|
|
354
|
-
return new Intl.DateTimeFormat(
|
|
354
|
+
return new Intl.DateTimeFormat(We.language, {
|
|
355
355
|
day: "numeric",
|
|
356
356
|
month: "long",
|
|
357
357
|
year: "numeric",
|
|
@@ -362,56 +362,56 @@ const Lr = qn(
|
|
|
362
362
|
return e.dateIso;
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
|
-
[
|
|
366
|
-
),
|
|
365
|
+
[We.language]
|
|
366
|
+
), Tn = W(
|
|
367
367
|
(e) => {
|
|
368
368
|
var n, l, s, r;
|
|
369
|
-
if (!e.id || P || (n =
|
|
369
|
+
if (!e.id || P || (n = R.current.get(e.id)) != null && n.delete) return;
|
|
370
370
|
const t = e.content ?? "";
|
|
371
|
-
|
|
371
|
+
ae(null), Pe(e.id), le(e.clinical ?? !1), I(t), A === "rich" && ((l = _.current) == null || l.clear(), (s = _.current) == null || s.insertAtCursor(t, { asHtml: !0 })), (r = _.current) == null || r.focus();
|
|
372
372
|
},
|
|
373
|
-
[
|
|
374
|
-
),
|
|
373
|
+
[A, P]
|
|
374
|
+
), ce = W(() => {
|
|
375
375
|
var e;
|
|
376
|
-
|
|
377
|
-
}, [
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}, [
|
|
381
|
-
const
|
|
376
|
+
A === "rich" && ((e = _.current) == null || e.clear()), I(""), le($), ae(null), Pe(null);
|
|
377
|
+
}, [A, $]), Ze = g === null || y.some((e) => e.id === g && !e.deleted);
|
|
378
|
+
C(() => {
|
|
379
|
+
Ze || ce();
|
|
380
|
+
}, [Ze, ce]);
|
|
381
|
+
const Se = (e) => {
|
|
382
382
|
var t, n;
|
|
383
383
|
return (e.id ? (n = (t = Y.get(e.id)) == null ? void 0 : t.pin) == null ? void 0 : n.next : void 0) ?? !!e.pinned;
|
|
384
|
-
},
|
|
384
|
+
}, xn = (e) => {
|
|
385
385
|
var t, n;
|
|
386
386
|
return (e.id ? (n = (t = Y.get(e.id)) == null ? void 0 : t.flag) == null ? void 0 : n.next : void 0) ?? !!e.flagged;
|
|
387
|
-
}, z = y.filter((e) => !e.id || !
|
|
388
|
-
H.current =
|
|
387
|
+
}, z = y.filter((e) => !e.id || !mn.has(e.id)).sort((e, t) => Number(Se(t)) - Number(Se(e))), et = z.flatMap((e) => e.id ? [e.id] : []), H = u([]);
|
|
388
|
+
H.current = et.filter(
|
|
389
389
|
(e) => {
|
|
390
390
|
var t;
|
|
391
391
|
return !((t = Y.get(e)) != null && t.delete);
|
|
392
392
|
}
|
|
393
393
|
);
|
|
394
|
-
const
|
|
395
|
-
|
|
396
|
-
const {
|
|
394
|
+
const Ee = u([]);
|
|
395
|
+
Ee.current = et;
|
|
396
|
+
const { isAccessible: Cn } = Xn(V), tt = Cn || void 0, { containerRef: Sn } = Gn({
|
|
397
397
|
key: z.map((e) => e.id).join(),
|
|
398
|
-
reduceMotion:
|
|
399
|
-
}),
|
|
400
|
-
|
|
401
|
-
},
|
|
402
|
-
const s =
|
|
403
|
-
|
|
398
|
+
reduceMotion: tt
|
|
399
|
+
}), ue = Jn({ reduceMotion: tt }), [w, fe] = x(null), nt = u(0), Re = u(0), rt = () => {
|
|
400
|
+
Re.current += 1, fe(null);
|
|
401
|
+
}, ge = (e, t, n, l = !0) => {
|
|
402
|
+
const s = Re.current;
|
|
403
|
+
xe((r) => {
|
|
404
404
|
var h;
|
|
405
|
-
const d = r && l && s ===
|
|
406
|
-
d && (
|
|
405
|
+
const d = r && l && s === Re.current && Te() && E.current.some((c) => c.id === t) && (e === "delete" || !Ue(t) && !G.current.has(t));
|
|
406
|
+
d && (nt.current += 1, fe({
|
|
407
407
|
kind: e,
|
|
408
408
|
noteId: t,
|
|
409
|
-
message:
|
|
410
|
-
seq:
|
|
409
|
+
message: vt(n, ""),
|
|
410
|
+
seq: nt.current
|
|
411
411
|
})), (h = D.current) == null || h.call(D, { kind: e, noteId: t, error: n, shown: d });
|
|
412
412
|
});
|
|
413
|
-
},
|
|
414
|
-
const t = y.find((l) => l.id === e.noteId), n = t != null && t.dateIso ?
|
|
413
|
+
}, En = (e) => {
|
|
414
|
+
const t = y.find((l) => l.id === e.noteId), n = t != null && t.dateIso ? de(t) : "";
|
|
415
415
|
if (n)
|
|
416
416
|
switch (e.kind) {
|
|
417
417
|
case "delete":
|
|
@@ -437,24 +437,24 @@ const Lr = qn(
|
|
|
437
437
|
default:
|
|
438
438
|
return a("notesPanel.unflagFailed");
|
|
439
439
|
}
|
|
440
|
-
},
|
|
441
|
-
w &&
|
|
442
|
-
w && !
|
|
443
|
-
}, [w,
|
|
444
|
-
const [
|
|
445
|
-
|
|
446
|
-
() =>
|
|
440
|
+
}, he = w !== null && y.some((e) => e.id === w.noteId), st = u(null);
|
|
441
|
+
w && he && (st.current = w), C(() => {
|
|
442
|
+
w && !he && fe(null);
|
|
443
|
+
}, [w, he]);
|
|
444
|
+
const [Ne, it] = x({ text: "", seq: 0 }), Ae = u(void 0), lt = (e) => {
|
|
445
|
+
it((t) => ({ text: e, seq: t.seq + 1 })), window.clearTimeout(Ae.current), Ae.current = window.setTimeout(
|
|
446
|
+
() => it((t) => ({ ...t, text: "" })),
|
|
447
447
|
1e3
|
|
448
448
|
);
|
|
449
449
|
};
|
|
450
|
-
|
|
451
|
-
const
|
|
452
|
-
|
|
453
|
-
|
|
450
|
+
C(() => () => window.clearTimeout(Ae.current), []);
|
|
451
|
+
const at = () => lt(a("notesPanel.deleted")), pe = u(0), ot = u(m);
|
|
452
|
+
C(() => {
|
|
453
|
+
ot.current === "loading" && m === "ready" && (pe.current += 1), ot.current = m;
|
|
454
454
|
}, [m]);
|
|
455
|
-
const
|
|
456
|
-
const e =
|
|
457
|
-
if (
|
|
455
|
+
const dt = () => {
|
|
456
|
+
const e = E.current, t = be(e), n = new Map(e.map((r) => [r.id, r])), l = [];
|
|
457
|
+
if (R.current.forEach((r, d) => {
|
|
458
458
|
const h = n.get(d);
|
|
459
459
|
Object.keys(r).forEach((c) => {
|
|
460
460
|
const v = r[c];
|
|
@@ -464,55 +464,57 @@ const Lr = qn(
|
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
466
|
if (!v.settled) return;
|
|
467
|
-
const T = c === "delete" ? h.deleted === !0 : (c === "pin" ? !!h.pinned : !!h.flagged) === v.next,
|
|
468
|
-
(T ||
|
|
467
|
+
const T = c === "delete" ? h.deleted === !0 : (c === "pin" ? !!h.pinned : !!h.flagged) === v.next, N = pe.current > v.edgeAtSettle || c !== "delete" && t !== v.sigAtSettle;
|
|
468
|
+
(T || N) && l.push([d, c]);
|
|
469
469
|
});
|
|
470
470
|
}), l.length === 0) return;
|
|
471
|
-
|
|
471
|
+
Qe(
|
|
472
472
|
(r) => l.forEach(([d, h]) => {
|
|
473
473
|
const c = { ...r.get(d) };
|
|
474
474
|
delete c[h], Object.keys(c).length > 0 ? r.set(d, c) : r.delete(d);
|
|
475
475
|
})
|
|
476
476
|
);
|
|
477
477
|
const s = l.filter(([, r]) => r === "delete").map(([r]) => r);
|
|
478
|
-
s.some((r) => G.current.has(r)) &&
|
|
479
|
-
},
|
|
480
|
-
|
|
478
|
+
s.some((r) => G.current.has(r)) && Ce((r) => s.forEach((d) => r.delete(d))), s.forEach((r) => ue.cancel(r));
|
|
479
|
+
}, ct = (e, t, n) => {
|
|
480
|
+
oe(e, t) === n && (Q(e, t, {
|
|
481
481
|
...n,
|
|
482
482
|
settled: !0,
|
|
483
|
-
edgeAtSettle:
|
|
484
|
-
sigAtSettle:
|
|
485
|
-
}),
|
|
486
|
-
},
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}, [
|
|
490
|
-
const
|
|
491
|
-
var
|
|
492
|
-
const n = t === "pin" ?
|
|
483
|
+
edgeAtSettle: pe.current,
|
|
484
|
+
sigAtSettle: be(E.current)
|
|
485
|
+
}), dt());
|
|
486
|
+
}, ut = (e, t, n) => oe(e, t) !== n ? !1 : (Q(e, t, void 0), t !== "delete" || (G.current.has(e) && Ce((l) => l.delete(e)), ue.cancel(e)), !0), Rn = mt(() => be(y), [y]);
|
|
487
|
+
C(() => {
|
|
488
|
+
dt();
|
|
489
|
+
}, [Rn, m]);
|
|
490
|
+
const Fe = (e, t) => {
|
|
491
|
+
var N, te;
|
|
492
|
+
const n = t === "pin" ? De : ke, l = (j) => ({
|
|
493
493
|
started: !1,
|
|
494
|
-
refusal:
|
|
494
|
+
refusal: j
|
|
495
495
|
});
|
|
496
496
|
if (!n)
|
|
497
497
|
return l(t === "pin" ? "no onTogglePin" : "no onToggleFlag");
|
|
498
|
-
const s =
|
|
498
|
+
const s = E.current.find((j) => j.id === e);
|
|
499
499
|
if (!s) return l("no note has this id");
|
|
500
500
|
if (s.deleted) return l("the note is deleted");
|
|
501
|
-
if (t === "pin" && ((
|
|
501
|
+
if (t === "pin" && ((N = s.actions) == null ? void 0 : N.pin) === !1)
|
|
502
502
|
return l("actions.pin is false for this note");
|
|
503
|
-
|
|
503
|
+
if (t === "flag" && ((te = s.actions) == null ? void 0 : te.flag) === !1)
|
|
504
|
+
return l("actions.flag is false for this note");
|
|
505
|
+
const r = R.current.get(e);
|
|
504
506
|
if (r != null && r.delete) return l("the note is being deleted");
|
|
505
507
|
if (r != null && r[t])
|
|
506
508
|
return l(`a ${t} write for this note is still pending`);
|
|
507
509
|
const d = !(t === "pin" ? s.pinned : s.flagged), h = t === "pin" ? d ? "pin" : "unpin" : d ? "flag" : "unflag";
|
|
508
|
-
|
|
510
|
+
rt();
|
|
509
511
|
let c;
|
|
510
512
|
try {
|
|
511
513
|
c = n(e, d);
|
|
512
|
-
} catch (
|
|
513
|
-
return
|
|
514
|
+
} catch (j) {
|
|
515
|
+
return ge(h, e, j), { started: !1, result: Nt(j) };
|
|
514
516
|
}
|
|
515
|
-
if (!
|
|
517
|
+
if (!St(c)) return { started: !0, result: c };
|
|
516
518
|
const v = {
|
|
517
519
|
next: d,
|
|
518
520
|
settled: !1,
|
|
@@ -523,98 +525,98 @@ const Lr = qn(
|
|
|
523
525
|
const T = Promise.resolve(c);
|
|
524
526
|
return T.then(
|
|
525
527
|
() => {
|
|
526
|
-
|
|
528
|
+
F.current && ct(e, t, v);
|
|
527
529
|
},
|
|
528
|
-
(
|
|
529
|
-
const
|
|
530
|
-
|
|
530
|
+
(j) => {
|
|
531
|
+
const Ln = F.current && ut(e, t, v);
|
|
532
|
+
ge(h, e, j, Ln);
|
|
531
533
|
}
|
|
532
534
|
), { started: !0, result: T };
|
|
533
|
-
},
|
|
535
|
+
}, ft = (e) => {
|
|
534
536
|
var l;
|
|
535
537
|
if (!K) return !1;
|
|
536
|
-
const t =
|
|
537
|
-
if (!t || t.deleted || ((l = t.actions) == null ? void 0 : l.delete) === !1 ||
|
|
538
|
-
|
|
538
|
+
const t = E.current.find((s) => s.id === e);
|
|
539
|
+
if (!t || t.deleted || ((l = t.actions) == null ? void 0 : l.delete) === !1 || oe(e, "delete")) return !1;
|
|
540
|
+
rt();
|
|
539
541
|
let n;
|
|
540
542
|
try {
|
|
541
543
|
n = K(e);
|
|
542
544
|
} catch (s) {
|
|
543
|
-
return
|
|
545
|
+
return ge("delete", e, s), !1;
|
|
544
546
|
}
|
|
545
|
-
if (
|
|
547
|
+
if (St(n)) {
|
|
546
548
|
const s = {
|
|
547
549
|
settled: !1,
|
|
548
550
|
edgeAtSettle: 0,
|
|
549
551
|
sigAtSettle: ""
|
|
550
552
|
};
|
|
551
|
-
Q(e, "delete", s), t.keptOnDelete &&
|
|
552
|
-
t.dateIso ? a("notesPanel.deletingNamed", { date:
|
|
553
|
+
Q(e, "delete", s), t.keptOnDelete && lt(
|
|
554
|
+
t.dateIso ? a("notesPanel.deletingNamed", { date: de(t) }) : a("notesPanel.deleting")
|
|
553
555
|
), Promise.resolve(n).then(
|
|
554
556
|
() => {
|
|
555
|
-
|
|
557
|
+
F.current && (at(), ct(e, "delete", s));
|
|
556
558
|
},
|
|
557
559
|
(r) => {
|
|
558
|
-
const d =
|
|
559
|
-
|
|
560
|
+
const d = F.current && ut(e, "delete", s);
|
|
561
|
+
ge("delete", e, r, d);
|
|
560
562
|
}
|
|
561
563
|
);
|
|
562
564
|
} else
|
|
563
565
|
Q(e, "delete", {
|
|
564
566
|
settled: !0,
|
|
565
|
-
edgeAtSettle:
|
|
566
|
-
sigAtSettle:
|
|
567
|
-
}),
|
|
568
|
-
return t.keptOnDelete ||
|
|
569
|
-
|
|
567
|
+
edgeAtSettle: pe.current,
|
|
568
|
+
sigAtSettle: be(E.current)
|
|
569
|
+
}), at();
|
|
570
|
+
return t.keptOnDelete || ue.leave(e, () => {
|
|
571
|
+
oe(e, "delete") && Ce((s) => s.add(e));
|
|
570
572
|
}), !0;
|
|
571
|
-
}, [U, X] =
|
|
572
|
-
if (!(!K ||
|
|
573
|
-
if (!
|
|
574
|
-
|
|
573
|
+
}, [U, X] = x(null), me = u(null), Nn = (e) => {
|
|
574
|
+
if (!(!K || Ue(e)) && !(P && g === e)) {
|
|
575
|
+
if (!Me) {
|
|
576
|
+
ft(e);
|
|
575
577
|
return;
|
|
576
578
|
}
|
|
577
|
-
|
|
579
|
+
me.current = { noteId: e, index: -1, started: !1 }, X(e);
|
|
578
580
|
}
|
|
579
|
-
},
|
|
581
|
+
}, An = () => {
|
|
580
582
|
const e = U;
|
|
581
583
|
if (!e) return;
|
|
582
584
|
const t = H.current.indexOf(e);
|
|
583
|
-
|
|
584
|
-
},
|
|
585
|
-
|
|
586
|
-
U !== null && !
|
|
587
|
-
}, [U,
|
|
585
|
+
ft(e) && (me.current = { noteId: e, index: t, started: !0 }), X(null);
|
|
586
|
+
}, Ve = U !== null && y.some((e) => e.id === U && !e.deleted);
|
|
587
|
+
C(() => {
|
|
588
|
+
U !== null && !Ve && X(null);
|
|
589
|
+
}, [U, Ve]), kn(un, () => V.current, []);
|
|
588
590
|
const O = (e, t) => {
|
|
589
591
|
var n;
|
|
590
|
-
return e ? ((n =
|
|
592
|
+
return e ? ((n = V.current) == null ? void 0 : n.querySelector(
|
|
591
593
|
`[data-note-id="${CSS.escape(e)}"] ${t ? `[data-note-action="${CSS.escape(t)}"]` : "[data-note-action]"}`
|
|
592
594
|
)) ?? null : null;
|
|
593
|
-
},
|
|
595
|
+
}, ve = (e, t) => {
|
|
594
596
|
const n = H.current;
|
|
595
597
|
return O(n[e], t) ?? O(n[e - 1], t) ?? O(n[e], null) ?? O(n[e - 1], null);
|
|
596
|
-
},
|
|
597
|
-
const e =
|
|
598
|
-
t &&
|
|
598
|
+
}, Fn = () => {
|
|
599
|
+
const e = V.current, t = (e == null ? void 0 : e.querySelector("[data-notes-panel-empty]")) ?? e;
|
|
600
|
+
t && dr(t);
|
|
599
601
|
}, Z = (e) => {
|
|
600
|
-
e ? e.focus() :
|
|
601
|
-
},
|
|
602
|
-
const t =
|
|
603
|
-
if (
|
|
602
|
+
e ? e.focus() : Fn();
|
|
603
|
+
}, Vn = (e) => {
|
|
604
|
+
const t = me.current;
|
|
605
|
+
if (me.current = null, !t || e.defaultPrevented) return;
|
|
604
606
|
e.preventDefault();
|
|
605
607
|
const n = O(t.noteId, "delete");
|
|
606
608
|
Z(
|
|
607
|
-
t.started ?
|
|
609
|
+
t.started ? ve(t.index, "delete") ?? n : n
|
|
608
610
|
);
|
|
609
|
-
},
|
|
611
|
+
}, Oe = u(null), gt = (e) => {
|
|
610
612
|
const t = e.kind === "delete" ? "delete" : e.kind.endsWith("pin") ? "pin" : "flag", n = H.current.indexOf(e.noteId);
|
|
611
|
-
return O(e.noteId, t) ?? O(e.noteId, null) ?? (n >= 0 ?
|
|
612
|
-
},
|
|
613
|
+
return O(e.noteId, t) ?? O(e.noteId, null) ?? (n >= 0 ? ve(n, t) : null);
|
|
614
|
+
}, On = (e) => {
|
|
613
615
|
var t;
|
|
614
|
-
(t =
|
|
616
|
+
(t = Oe.current) != null && t.contains(document.activeElement) && Z(gt(e)), fe(null);
|
|
615
617
|
}, M = u(null);
|
|
616
|
-
|
|
617
|
-
const e =
|
|
618
|
+
C(() => {
|
|
619
|
+
const e = V.current;
|
|
618
620
|
if (!e) return;
|
|
619
621
|
const t = (l) => {
|
|
620
622
|
var d, h;
|
|
@@ -625,7 +627,7 @@ const Lr = qn(
|
|
|
625
627
|
el: s,
|
|
626
628
|
noteId: r,
|
|
627
629
|
action: ((h = s.closest("[data-note-action]")) == null ? void 0 : h.dataset.noteAction) ?? null,
|
|
628
|
-
index: r ?
|
|
630
|
+
index: r ? Et(H.current, Ee.current, r) : -1,
|
|
629
631
|
inWriteError: !!s.closest("[data-notes-panel-write-error]")
|
|
630
632
|
};
|
|
631
633
|
}, n = (l) => {
|
|
@@ -643,14 +645,14 @@ const Lr = qn(
|
|
|
643
645
|
return e.addEventListener("focusin", t), e.addEventListener("focusout", n), () => {
|
|
644
646
|
e.removeEventListener("focusin", t), e.removeEventListener("focusout", n);
|
|
645
647
|
};
|
|
646
|
-
}, []),
|
|
648
|
+
}, []), Un(() => {
|
|
647
649
|
var l;
|
|
648
650
|
const e = M.current;
|
|
649
|
-
if (!e || !
|
|
651
|
+
if (!e || !V.current) return;
|
|
650
652
|
if (e.el.isConnected) {
|
|
651
|
-
const s = e.noteId ?
|
|
653
|
+
const s = e.noteId ? Et(
|
|
652
654
|
H.current,
|
|
653
|
-
|
|
655
|
+
Ee.current,
|
|
654
656
|
e.noteId
|
|
655
657
|
) : -1;
|
|
656
658
|
s >= 0 && (e.index = s);
|
|
@@ -662,38 +664,38 @@ const Lr = qn(
|
|
|
662
664
|
const n = e.action ? O(e.noteId, e.action) : null;
|
|
663
665
|
if (n) n.focus();
|
|
664
666
|
else if (e.noteId)
|
|
665
|
-
Z(
|
|
667
|
+
Z(ve(e.index, e.action));
|
|
666
668
|
else if (e.el.hasAttribute("data-notes-panel-empty"))
|
|
667
|
-
Z(
|
|
669
|
+
Z(ve(0, "delete"));
|
|
668
670
|
else if (e.inWriteError) {
|
|
669
|
-
const s = (l =
|
|
671
|
+
const s = (l = Oe.current) == null ? void 0 : l.querySelector(
|
|
670
672
|
"[data-alert-dismiss]"
|
|
671
|
-
), r =
|
|
672
|
-
s ? s.focus() : Z(r ?
|
|
673
|
+
), r = st.current;
|
|
674
|
+
s ? s.focus() : Z(r ? gt(r) : null);
|
|
673
675
|
}
|
|
674
676
|
});
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
+
const je = u(null);
|
|
678
|
+
C(() => {
|
|
677
679
|
var e, t;
|
|
678
|
-
|
|
679
|
-
}, [
|
|
680
|
+
S && ((e = je.current) == null || e.scrollIntoView({ block: "center" }), (t = je.current) == null || t.focus());
|
|
681
|
+
}, [S, _e]);
|
|
680
682
|
const ee = u(p);
|
|
681
683
|
ee.current = p;
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
const
|
|
685
|
-
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
const
|
|
684
|
+
const Le = u(se);
|
|
685
|
+
Le.current = se;
|
|
686
|
+
const ht = u(S);
|
|
687
|
+
ht.current = S;
|
|
688
|
+
const qe = u(null);
|
|
689
|
+
qe.current = { toggle: Fe };
|
|
690
|
+
const jn = mt(
|
|
689
691
|
() => ({
|
|
690
692
|
// Ids + flags only — never the note body or author (both PHI).
|
|
691
|
-
getNotes: () =>
|
|
693
|
+
getNotes: () => E.current.filter((e) => {
|
|
692
694
|
var t;
|
|
693
|
-
return !(e.id && ((t =
|
|
695
|
+
return !(e.id && ((t = R.current.get(e.id)) != null && t.delete));
|
|
694
696
|
}).map((e) => {
|
|
695
697
|
var n, l;
|
|
696
|
-
const t = e.id ?
|
|
698
|
+
const t = e.id ? R.current.get(e.id) : void 0;
|
|
697
699
|
return {
|
|
698
700
|
id: e.id,
|
|
699
701
|
pinned: ((n = t == null ? void 0 : t.pin) == null ? void 0 : n.next) ?? !!e.pinned,
|
|
@@ -703,35 +705,35 @@ const Lr = qn(
|
|
|
703
705
|
};
|
|
704
706
|
}),
|
|
705
707
|
canAddNote: () => !!ee.current,
|
|
706
|
-
canAddClinical: () =>
|
|
707
|
-
getCurrentNoteId: () =>
|
|
708
|
+
canAddClinical: () => Le.current,
|
|
709
|
+
getCurrentNoteId: () => ht.current ?? null,
|
|
708
710
|
addNote: (e) => {
|
|
709
711
|
var t;
|
|
710
|
-
if (!(e.clinical && !
|
|
712
|
+
if (!(e.clinical && !Le.current))
|
|
711
713
|
return (t = ee.current) == null ? void 0 : t.call(ee, e);
|
|
712
714
|
},
|
|
713
|
-
togglePin: (e) =>
|
|
714
|
-
toggleFlag: (e) =>
|
|
715
|
+
togglePin: (e) => Tt(qe.current, e, "pin"),
|
|
716
|
+
toggleFlag: (e) => Tt(qe.current, e, "flag")
|
|
715
717
|
}),
|
|
716
718
|
[]
|
|
717
719
|
);
|
|
718
|
-
return
|
|
720
|
+
return Hn(nr, jn, f), /* @__PURE__ */ b(
|
|
719
721
|
"section",
|
|
720
722
|
{
|
|
721
|
-
ref:
|
|
723
|
+
ref: V,
|
|
722
724
|
"data-component": "notes-panel",
|
|
723
725
|
"data-component-id": f,
|
|
724
|
-
"aria-labelledby":
|
|
725
|
-
"aria-label":
|
|
726
|
-
className: [
|
|
727
|
-
...
|
|
726
|
+
"aria-labelledby": we ? void 0 : Ye,
|
|
727
|
+
"aria-label": we,
|
|
728
|
+
className: [ir, dn].filter(Boolean).join(" "),
|
|
729
|
+
...cn,
|
|
728
730
|
children: [
|
|
729
731
|
/* @__PURE__ */ i(
|
|
730
|
-
|
|
732
|
+
Yn,
|
|
731
733
|
{
|
|
732
|
-
title:
|
|
733
|
-
icon: /* @__PURE__ */ i(
|
|
734
|
-
headingId:
|
|
734
|
+
title: gn,
|
|
735
|
+
icon: /* @__PURE__ */ i(Zn, { "aria-hidden": "true" }),
|
|
736
|
+
headingId: we ? void 0 : Ye,
|
|
735
737
|
sticky: !0,
|
|
736
738
|
divider: !0
|
|
737
739
|
}
|
|
@@ -743,52 +745,52 @@ const Lr = qn(
|
|
|
743
745
|
"data-notes-panel-composer": g !== null ? "edit" : "add",
|
|
744
746
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
745
747
|
children: [
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
748
|
+
tn,
|
|
749
|
+
A === "rich" ? /* @__PURE__ */ i(
|
|
750
|
+
Wn,
|
|
749
751
|
{
|
|
750
|
-
ref:
|
|
751
|
-
ariaLabel:
|
|
752
|
-
placeholder:
|
|
753
|
-
toolbar:
|
|
752
|
+
ref: _,
|
|
753
|
+
ariaLabel: Je,
|
|
754
|
+
placeholder: Ge,
|
|
755
|
+
toolbar: Ft,
|
|
754
756
|
minHeight: "fill",
|
|
755
|
-
redactor:
|
|
756
|
-
imageUploadUrl:
|
|
757
|
+
redactor: Vt,
|
|
758
|
+
imageUploadUrl: Ot,
|
|
757
759
|
readOnly: P,
|
|
758
760
|
onChange: ({ html: e }) => I(e),
|
|
759
|
-
onRequestAiDraft:
|
|
760
|
-
aiDraftFormat:
|
|
761
|
-
aiPrivacyNotice:
|
|
762
|
-
onDictate:
|
|
763
|
-
onProofread:
|
|
764
|
-
onAutoFormat:
|
|
765
|
-
aiConsent:
|
|
766
|
-
variables:
|
|
767
|
-
validateVariable:
|
|
768
|
-
onVariableValidityChange:
|
|
769
|
-
renderHelpMeWrite:
|
|
770
|
-
aiTemplates:
|
|
771
|
-
onAiApplied:
|
|
772
|
-
onUploadImage:
|
|
773
|
-
onAiCreditsExhausted:
|
|
774
|
-
showExtensions:
|
|
775
|
-
aiCreditsNotice:
|
|
776
|
-
extensions:
|
|
777
|
-
extensionContext:
|
|
778
|
-
onExtensionRun:
|
|
761
|
+
onRequestAiDraft: qt,
|
|
762
|
+
aiDraftFormat: _t,
|
|
763
|
+
aiPrivacyNotice: Dt,
|
|
764
|
+
onDictate: kt,
|
|
765
|
+
onProofread: zt,
|
|
766
|
+
onAutoFormat: Ht,
|
|
767
|
+
aiConsent: Mt,
|
|
768
|
+
variables: Wt,
|
|
769
|
+
validateVariable: $t,
|
|
770
|
+
onVariableValidityChange: Bt,
|
|
771
|
+
renderHelpMeWrite: Kt,
|
|
772
|
+
aiTemplates: It,
|
|
773
|
+
onAiApplied: Yt,
|
|
774
|
+
onUploadImage: Gt,
|
|
775
|
+
onAiCreditsExhausted: Jt,
|
|
776
|
+
showExtensions: Qt,
|
|
777
|
+
aiCreditsNotice: Ut,
|
|
778
|
+
extensions: Xt,
|
|
779
|
+
extensionContext: Zt,
|
|
780
|
+
onExtensionRun: en,
|
|
779
781
|
aiConsentHeadingLevel: 3
|
|
780
782
|
}
|
|
781
783
|
) : /* @__PURE__ */ i(
|
|
782
|
-
|
|
784
|
+
$n,
|
|
783
785
|
{
|
|
784
786
|
value: k,
|
|
785
787
|
readOnly: P,
|
|
786
788
|
onChange: (e) => I(e.target.value),
|
|
787
|
-
placeholder:
|
|
789
|
+
placeholder: Ge,
|
|
788
790
|
autoResize: !0,
|
|
789
791
|
minRows: 2,
|
|
790
792
|
maxRows: 6,
|
|
791
|
-
"aria-label":
|
|
793
|
+
"aria-label": Je
|
|
792
794
|
}
|
|
793
795
|
),
|
|
794
796
|
/* @__PURE__ */ b(
|
|
@@ -796,55 +798,55 @@ const Lr = qn(
|
|
|
796
798
|
{
|
|
797
799
|
className: [
|
|
798
800
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
799
|
-
|
|
801
|
+
Xe ? "ds:justify-between" : "ds:justify-end"
|
|
800
802
|
].join(" "),
|
|
801
803
|
children: [
|
|
802
|
-
|
|
803
|
-
const e = P || !
|
|
804
|
+
Xe ? (() => {
|
|
805
|
+
const e = P || !se, t = se ? void 0 : Lt ?? a("notesPanel.clinicalGated", {
|
|
804
806
|
defaultValue: "You do not have permission to write clinical notes."
|
|
805
807
|
}), n = /* @__PURE__ */ i(
|
|
806
|
-
|
|
808
|
+
Bn,
|
|
807
809
|
{
|
|
808
810
|
size: "sm",
|
|
809
811
|
label: a("notesPanel.clinicalToggle", {
|
|
810
812
|
defaultValue: "Clinical note"
|
|
811
813
|
}),
|
|
812
|
-
checked:
|
|
813
|
-
onCheckedChange:
|
|
814
|
+
checked: ie,
|
|
815
|
+
onCheckedChange: le,
|
|
814
816
|
disabled: e
|
|
815
817
|
}
|
|
816
818
|
);
|
|
817
|
-
return e && t ? /* @__PURE__ */ i(
|
|
819
|
+
return e && t ? /* @__PURE__ */ i(Kn, { label: t, children: /* @__PURE__ */ i("span", { tabIndex: 0, children: n }) }) : n;
|
|
818
820
|
})() : null,
|
|
819
821
|
/* @__PURE__ */ b("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
820
822
|
g !== null ? /* @__PURE__ */ i(
|
|
821
|
-
|
|
823
|
+
ne,
|
|
822
824
|
{
|
|
823
825
|
type: "button",
|
|
824
826
|
size: "sm",
|
|
825
827
|
intent: "ghost",
|
|
826
|
-
onClick:
|
|
828
|
+
onClick: ce,
|
|
827
829
|
disabled: P,
|
|
828
830
|
children: a("notesPanel.cancelEdit", { defaultValue: "Cancel" })
|
|
829
831
|
}
|
|
830
832
|
) : null,
|
|
831
833
|
/* @__PURE__ */ i(
|
|
832
|
-
|
|
834
|
+
ne,
|
|
833
835
|
{
|
|
834
836
|
type: "button",
|
|
835
837
|
size: "sm",
|
|
836
|
-
onClick:
|
|
837
|
-
disabled: !
|
|
838
|
+
onClick: wn,
|
|
839
|
+
disabled: !hn || Pn,
|
|
838
840
|
loading: P,
|
|
839
|
-
children: g !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) :
|
|
841
|
+
children: g !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : an ?? a("notesPanel.add", { defaultValue: "Add note" })
|
|
840
842
|
}
|
|
841
843
|
)
|
|
842
844
|
] })
|
|
843
845
|
]
|
|
844
846
|
}
|
|
845
847
|
),
|
|
846
|
-
|
|
847
|
-
|
|
848
|
+
Be ? /* @__PURE__ */ i(L, { variant: "error", children: /* @__PURE__ */ i(L.Description, { children: Be }) }) : null,
|
|
849
|
+
nn
|
|
848
850
|
]
|
|
849
851
|
}
|
|
850
852
|
) : null,
|
|
@@ -860,10 +862,10 @@ const Lr = qn(
|
|
|
860
862
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
861
863
|
children: [
|
|
862
864
|
/* @__PURE__ */ i("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }),
|
|
863
|
-
|
|
865
|
+
or.map((e, t) => /* @__PURE__ */ i(bt, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ i(bt.Body, { children: /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
864
866
|
/* @__PURE__ */ b("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
865
867
|
/* @__PURE__ */ i(
|
|
866
|
-
|
|
868
|
+
ye,
|
|
867
869
|
{
|
|
868
870
|
variant: "circular",
|
|
869
871
|
size: "sm",
|
|
@@ -872,7 +874,7 @@ const Lr = qn(
|
|
|
872
874
|
),
|
|
873
875
|
/* @__PURE__ */ b("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
874
876
|
/* @__PURE__ */ i(
|
|
875
|
-
|
|
877
|
+
ye,
|
|
876
878
|
{
|
|
877
879
|
variant: "text",
|
|
878
880
|
size: "sm",
|
|
@@ -881,7 +883,7 @@ const Lr = qn(
|
|
|
881
883
|
}
|
|
882
884
|
),
|
|
883
885
|
/* @__PURE__ */ i(
|
|
884
|
-
|
|
886
|
+
ye,
|
|
885
887
|
{
|
|
886
888
|
variant: "text",
|
|
887
889
|
size: "sm",
|
|
@@ -892,7 +894,7 @@ const Lr = qn(
|
|
|
892
894
|
] })
|
|
893
895
|
] }),
|
|
894
896
|
/* @__PURE__ */ i(
|
|
895
|
-
|
|
897
|
+
ye,
|
|
896
898
|
{
|
|
897
899
|
variant: "text",
|
|
898
900
|
size: "sm",
|
|
@@ -904,23 +906,23 @@ const Lr = qn(
|
|
|
904
906
|
]
|
|
905
907
|
}
|
|
906
908
|
)
|
|
907
|
-
) : m === "error" ? /* @__PURE__ */ b(
|
|
908
|
-
/* @__PURE__ */ i(
|
|
909
|
-
|
|
909
|
+
) : m === "error" ? /* @__PURE__ */ b(L, { variant: "error", children: [
|
|
910
|
+
/* @__PURE__ */ i(L.Description, { children: a("notesPanel.loadError") }),
|
|
911
|
+
re ? /* @__PURE__ */ i(L.Action, { children: /* @__PURE__ */ i(ne, { intent: "secondary", size: "sm", onClick: re, children: a("notesPanel.retry") }) }) : null
|
|
910
912
|
] }) : null,
|
|
911
|
-
w &&
|
|
912
|
-
|
|
913
|
+
w && he ? /* @__PURE__ */ b(
|
|
914
|
+
L,
|
|
913
915
|
{
|
|
914
|
-
ref:
|
|
916
|
+
ref: Oe,
|
|
915
917
|
variant: "error",
|
|
916
918
|
dismissible: !0,
|
|
917
919
|
onOpenChange: (e) => {
|
|
918
|
-
e ||
|
|
920
|
+
e || On(w);
|
|
919
921
|
},
|
|
920
922
|
"data-notes-panel-write-error": w.kind,
|
|
921
923
|
children: [
|
|
922
|
-
/* @__PURE__ */ i(
|
|
923
|
-
w.message ? /* @__PURE__ */ i(
|
|
924
|
+
/* @__PURE__ */ i(L.Title, { as: "p", children: En(w) }),
|
|
925
|
+
w.message ? /* @__PURE__ */ i(L.Description, { children: w.message }) : null
|
|
924
926
|
]
|
|
925
927
|
},
|
|
926
928
|
w.seq
|
|
@@ -932,22 +934,22 @@ const Lr = qn(
|
|
|
932
934
|
"aria-atomic": "true",
|
|
933
935
|
"data-notes-panel-announcer": "",
|
|
934
936
|
className: "ds:sr-only",
|
|
935
|
-
children:
|
|
937
|
+
children: Ne.text ? /* @__PURE__ */ i("span", { children: Ne.text }, Ne.seq) : null
|
|
936
938
|
}
|
|
937
939
|
),
|
|
938
940
|
m === "loading" && z.length > 0 ? /* @__PURE__ */ i("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }) : null,
|
|
939
941
|
z.length > 0 ? /* @__PURE__ */ i(
|
|
940
942
|
"ul",
|
|
941
943
|
{
|
|
942
|
-
ref:
|
|
944
|
+
ref: Sn,
|
|
943
945
|
"aria-busy": m === "loading" || void 0,
|
|
944
|
-
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${
|
|
946
|
+
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${fn}`.trim(),
|
|
945
947
|
children: z.map(({ actions: e, keptOnDelete: t, ...n }, l) => {
|
|
946
|
-
const s =
|
|
948
|
+
const s = S != null && n.id === S, r = n.id, d = r != null && g === r, h = r != null && ue.isLeaving(r), c = r ? Y.get(r) : void 0, v = !!(c != null && c.delete), T = v && !!t, N = P && d;
|
|
947
949
|
return /* @__PURE__ */ b(
|
|
948
950
|
"li",
|
|
949
951
|
{
|
|
950
|
-
ref: s ?
|
|
952
|
+
ref: s ? je : void 0,
|
|
951
953
|
"data-note-id": r,
|
|
952
954
|
tabIndex: s ? -1 : void 0,
|
|
953
955
|
"aria-current": s ? "true" : void 0,
|
|
@@ -956,13 +958,13 @@ const Lr = qn(
|
|
|
956
958
|
"data-editing": d ? "" : void 0,
|
|
957
959
|
"aria-busy": T || void 0,
|
|
958
960
|
className: [
|
|
959
|
-
|
|
961
|
+
sr({
|
|
960
962
|
current: s,
|
|
961
963
|
washed: s || d
|
|
962
964
|
}),
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
h ?
|
|
965
|
+
ar,
|
|
966
|
+
Qn,
|
|
967
|
+
h ? lr : ""
|
|
966
968
|
].filter(Boolean).join(" "),
|
|
967
969
|
children: [
|
|
968
970
|
s ? /* @__PURE__ */ i("span", { className: "ds:sr-only", children: a("notesPanel.current", {
|
|
@@ -974,35 +976,35 @@ const Lr = qn(
|
|
|
974
976
|
{
|
|
975
977
|
"aria-hidden": "true",
|
|
976
978
|
"data-notes-panel-wash": "editing",
|
|
977
|
-
className:
|
|
979
|
+
className: wt({ state: "editing" })
|
|
978
980
|
}
|
|
979
981
|
) : s ? /* @__PURE__ */ i(
|
|
980
982
|
"span",
|
|
981
983
|
{
|
|
982
984
|
"aria-hidden": "true",
|
|
983
985
|
"data-notes-panel-wash": "addressed",
|
|
984
|
-
className:
|
|
986
|
+
className: wt({ state: "addressed" })
|
|
985
987
|
},
|
|
986
|
-
`${
|
|
988
|
+
`${S}:${_e ?? ""}`
|
|
987
989
|
) : null,
|
|
988
990
|
/* @__PURE__ */ i(
|
|
989
|
-
|
|
991
|
+
Mn,
|
|
990
992
|
{
|
|
991
993
|
surface: "elevated",
|
|
992
994
|
truncate: !s,
|
|
993
|
-
headerActions: /* @__PURE__ */ b(
|
|
994
|
-
|
|
995
|
+
headerActions: /* @__PURE__ */ b(qn, { children: [
|
|
996
|
+
ze ? ze(
|
|
995
997
|
{ ...n, actions: e, keptOnDelete: t },
|
|
996
998
|
{ deleting: v }
|
|
997
999
|
) : null,
|
|
998
1000
|
B && r && !n.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ i(
|
|
999
|
-
|
|
1001
|
+
yt,
|
|
1000
1002
|
{
|
|
1001
|
-
icon: /* @__PURE__ */ i(
|
|
1003
|
+
icon: /* @__PURE__ */ i(er, {}),
|
|
1002
1004
|
intent: "ghost",
|
|
1003
1005
|
size: "sm",
|
|
1004
1006
|
"aria-label": a("notesPanel.editNamed", {
|
|
1005
|
-
date:
|
|
1007
|
+
date: de(n),
|
|
1006
1008
|
defaultValue: "Edit note · {{date}}"
|
|
1007
1009
|
}),
|
|
1008
1010
|
tooltip: a("notesPanel.edit", {
|
|
@@ -1012,36 +1014,36 @@ const Lr = qn(
|
|
|
1012
1014
|
disabled: P || v,
|
|
1013
1015
|
"data-notes-panel-edit": "",
|
|
1014
1016
|
"data-note-action": "edit",
|
|
1015
|
-
onClick: () => g === r ?
|
|
1017
|
+
onClick: () => g === r ? ce() : Tn(n)
|
|
1016
1018
|
}
|
|
1017
1019
|
) : null,
|
|
1018
1020
|
K && r && !n.deleted && (e == null ? void 0 : e.delete) !== !1 ? /* @__PURE__ */ i(
|
|
1019
|
-
|
|
1021
|
+
yt,
|
|
1020
1022
|
{
|
|
1021
|
-
icon: /* @__PURE__ */ i(
|
|
1023
|
+
icon: /* @__PURE__ */ i(tr, {}),
|
|
1022
1024
|
intent: "ghost",
|
|
1023
1025
|
size: "sm",
|
|
1024
1026
|
"aria-label": a("notesPanel.deleteNamed", {
|
|
1025
|
-
date:
|
|
1027
|
+
date: de(n),
|
|
1026
1028
|
defaultValue: "Delete note · {{date}}"
|
|
1027
1029
|
}),
|
|
1028
1030
|
tooltip: a("notesPanel.delete", {
|
|
1029
1031
|
defaultValue: "Delete note"
|
|
1030
1032
|
}),
|
|
1031
1033
|
"data-note-action": "delete",
|
|
1032
|
-
"aria-disabled": T ||
|
|
1034
|
+
"aria-disabled": T || N || void 0,
|
|
1033
1035
|
"aria-busy": T || void 0,
|
|
1034
|
-
onClick: () =>
|
|
1036
|
+
onClick: () => Nn(r)
|
|
1035
1037
|
}
|
|
1036
1038
|
) : null
|
|
1037
1039
|
] }),
|
|
1038
1040
|
...n,
|
|
1039
|
-
pinned:
|
|
1040
|
-
flagged:
|
|
1041
|
+
pinned: Se(n),
|
|
1042
|
+
flagged: xn(n),
|
|
1041
1043
|
pinPending: !!(c != null && c.pin) || v,
|
|
1042
1044
|
flagPending: !!(c != null && c.flag) || v,
|
|
1043
|
-
onTogglePin:
|
|
1044
|
-
onToggleFlag:
|
|
1045
|
+
onTogglePin: De && r && (e == null ? void 0 : e.pin) !== !1 && !n.deleted ? () => Fe(r, "pin") : void 0,
|
|
1046
|
+
onToggleFlag: ke && r && (e == null ? void 0 : e.flag) !== !1 && !n.deleted ? () => Fe(r, "flag") : void 0
|
|
1045
1047
|
}
|
|
1046
1048
|
)
|
|
1047
1049
|
]
|
|
@@ -1052,31 +1054,31 @@ const Lr = qn(
|
|
|
1052
1054
|
}
|
|
1053
1055
|
) : m !== "ready" ? null : (
|
|
1054
1056
|
/* Where focus lands, from script, when the last note leaves. */
|
|
1055
|
-
/* @__PURE__ */ i("div", { "data-notes-panel-empty": "", className:
|
|
1057
|
+
/* @__PURE__ */ i("div", { "data-notes-panel-empty": "", className: At, children: on ?? /* @__PURE__ */ i("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: a("notesPanel.empty", { defaultValue: "No notes yet." }) }) })
|
|
1056
1058
|
)
|
|
1057
1059
|
] }),
|
|
1058
|
-
K &&
|
|
1059
|
-
|
|
1060
|
+
K && Me ? /* @__PURE__ */ i(
|
|
1061
|
+
q,
|
|
1060
1062
|
{
|
|
1061
1063
|
scope: "container",
|
|
1062
|
-
open:
|
|
1064
|
+
open: Ve,
|
|
1063
1065
|
onOpenChange: (e) => !e && X(null),
|
|
1064
1066
|
children: /* @__PURE__ */ b(
|
|
1065
|
-
|
|
1067
|
+
q.Content,
|
|
1066
1068
|
{
|
|
1067
1069
|
variant: "alert",
|
|
1068
1070
|
size: "sm",
|
|
1069
|
-
onCloseAutoFocus:
|
|
1071
|
+
onCloseAutoFocus: Vn,
|
|
1070
1072
|
children: [
|
|
1071
|
-
/* @__PURE__ */ i(
|
|
1073
|
+
/* @__PURE__ */ i(q.Header, { children: /* @__PURE__ */ i(q.Title, { children: a("notesPanel.deleteConfirmTitle", {
|
|
1072
1074
|
defaultValue: "Delete this note?"
|
|
1073
1075
|
}) }) }),
|
|
1074
|
-
/* @__PURE__ */ i(
|
|
1076
|
+
/* @__PURE__ */ i(q.Body, { children: /* @__PURE__ */ i(q.Description, { children: a("notesPanel.deleteConfirmBody", {
|
|
1075
1077
|
defaultValue: "The note will be removed from the record."
|
|
1076
1078
|
}) }) }),
|
|
1077
|
-
/* @__PURE__ */ b(
|
|
1078
|
-
/* @__PURE__ */ i(
|
|
1079
|
-
|
|
1079
|
+
/* @__PURE__ */ b(q.Footer, { children: [
|
|
1080
|
+
/* @__PURE__ */ i(q.Close, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1081
|
+
ne,
|
|
1080
1082
|
{
|
|
1081
1083
|
intent: "secondary",
|
|
1082
1084
|
size: "sm",
|
|
@@ -1087,11 +1089,11 @@ const Lr = qn(
|
|
|
1087
1089
|
}
|
|
1088
1090
|
) }),
|
|
1089
1091
|
/* @__PURE__ */ i(
|
|
1090
|
-
|
|
1092
|
+
ne,
|
|
1091
1093
|
{
|
|
1092
1094
|
intent: "destructive",
|
|
1093
1095
|
size: "sm",
|
|
1094
|
-
onClick:
|
|
1096
|
+
onClick: An,
|
|
1095
1097
|
children: a("notesPanel.deleteConfirmAction", {
|
|
1096
1098
|
defaultValue: "Delete"
|
|
1097
1099
|
})
|
|
@@ -1109,6 +1111,6 @@ const Lr = qn(
|
|
|
1109
1111
|
}
|
|
1110
1112
|
);
|
|
1111
1113
|
export {
|
|
1112
|
-
|
|
1114
|
+
qr as N
|
|
1113
1115
|
};
|
|
1114
|
-
//# sourceMappingURL=notes-panel-
|
|
1116
|
+
//# sourceMappingURL=notes-panel-DnBmONPb.js.map
|