@alfadocs/ui-kit 1.71.1 → 1.72.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-BXCpK2_0.js → actions-cell-renderer-B1yaOfQM.js} +3 -3
- package/dist/_chunks/{agenda-tray-CfwylhWf.js → agenda-tray-D-jvptdo.js} +3 -3
- package/dist/_chunks/{ai-credits-exhausted-notice-Bg8NpW2K.js → ai-credits-exhausted-notice-CwZnSACy.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-DQ-r3iQU.js → ai-credits-notice-BNFcQoXo.js} +3 -3
- package/dist/_chunks/{ai-permission-notice-C00i6VhY.js → ai-permission-notice-CoW22jx1.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DzgyoKyk.js → ai-prompt-input-M6u29f87.js} +2 -2
- package/dist/_chunks/{alia-sidebar-DEMMoefU.js → alia-sidebar-DZoyUFW8.js} +292 -286
- package/dist/_chunks/{anamnesis-card-Bey9qQu4.js → anamnesis-card-BcadMmEM.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-rNwSrNWZ.js → anamnesis-summary-rows-BedVmSAB.js} +8 -8
- package/dist/_chunks/{appointment-peek-CpcqB8oO.js → appointment-peek-39BwVMUf.js} +3 -3
- package/dist/_chunks/{appointment-timeline-VFP6HoXT.js → appointment-timeline-CKwMXUid.js} +4 -4
- package/dist/_chunks/{appointment-tray-B3PDER3I.js → appointment-tray-Dwc8MSIQ.js} +3 -3
- package/dist/_chunks/{audio-recorder-4Ll0pwYK.js → audio-recorder-m7Jqvvcl.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-BG3DMly4.js → balance-badge-cell-DG5JWB2p.js} +4 -4
- package/dist/_chunks/{bishop-score-Df8nF1qg.js → bishop-score-CdbU9Nl4.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DjmQ04Ch.js → bmi-calculator-DnfiDh4Q.js} +2 -2
- package/dist/_chunks/{booking-B1pDbERi.js → booking-DNJO0tnU.js} +5 -5
- package/dist/_chunks/{button-D-MQxsA_.js → button-DohK_Ak_.js} +40 -27
- package/dist/_chunks/{button-group-DCOJhvm3.js → button-group-ZVb1Q-w4.js} +2 -2
- package/dist/_chunks/{calculator-dialog-BUfaWqvu.js → calculator-dialog-BsVVb8cT.js} +2 -2
- package/dist/_chunks/{calendar-BvOM8rG3.js → calendar-ClB-jWH1.js} +2 -2
- package/dist/_chunks/calendar-appointment-editor-dialog-Lji2y0qJ.js +10986 -0
- package/dist/_chunks/{care-plan-card-DJzbwJLl.js → care-plan-card-BYCPNDvA.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DPJcP34v.js → care-plan-entry-card-4VaY2c96.js} +2 -2
- package/dist/_chunks/{care-plan-header-1HzbkYcR.js → care-plan-header-BzsAg6oY.js} +2 -2
- package/dist/_chunks/{carousel.agent-BaRsN-8H.js → carousel.agent-CkDXR3-8.js} +2 -2
- package/dist/_chunks/{chart-CwmyCuWe.js → chart-D4huJSru.js} +3 -3
- package/dist/_chunks/{chat-input-HtTbUUD6.js → chat-input-DwQ4_WXK.js} +31 -31
- package/dist/_chunks/{chat-message-C2VXQMoB.js → chat-message-CmFJdEre.js} +3 -3
- package/dist/_chunks/{code-block-RSKdF3E-.js → code-block-BTsCXVGI.js} +2 -2
- package/dist/_chunks/{connection-status-BOZC5QU5.js → connection-status-CVyCqxiY.js} +3 -3
- package/dist/_chunks/{contact-profile-card-CAwwOqHl.js → contact-profile-card-DKk94l-d.js} +2 -2
- package/dist/_chunks/{control-room-rail-BB6rCDWI.js → control-room-rail-CKZ2nemY.js} +3 -3
- package/dist/_chunks/{copy-field-BCT7APRE.js → copy-field-hgVSc51W.js} +2 -2
- package/dist/_chunks/{cycle-calculator-D2Y4LvgC.js → cycle-calculator-Ycp3li61.js} +2 -2
- package/dist/_chunks/{dashboard-grid-7JzaiKnk.js → dashboard-grid-DwJ_HV3d.js} +2 -2
- package/dist/_chunks/{data-table-Cty4-Jht.js → data-table-DTKGWUQm.js} +6 -6
- package/dist/_chunks/{data-table-tabs-BfrnefV5.js → data-table-tabs-DlTPtqoI.js} +3 -3
- package/dist/_chunks/{description-list-DQQ2OA_t.js → description-list-BxzDN9o2.js} +2 -2
- package/dist/_chunks/{dev-bypass-button--CPzzRSj.js → dev-bypass-button-B7ePcJcg.js} +2 -2
- package/dist/_chunks/{dialog-D6fkpRc4.js → dialog-C7RWaH08.js} +63 -56
- package/dist/_chunks/{document-preview-513f3iPn.js → document-preview-QEbr7jp1.js} +2 -2
- package/dist/_chunks/{document-scanner-Bd3wbzpI.js → document-scanner-BQP0Rqrt.js} +2 -2
- package/dist/_chunks/{due-date-calculator-41uZDkVR.js → due-date-calculator-B0gyOijA.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-1ijmzNWh.js → editable-currency-cell-renderer-rWYiF4EI.js} +3 -3
- package/dist/_chunks/{editable-description-DnAFi360.js → editable-description-KU56SP4P.js} +3 -3
- package/dist/_chunks/{editor-overlay-CpVO1-Kk.js → editor-overlay-Dc8uVxEp.js} +2 -2
- package/dist/_chunks/{empty-state-pL1qum99.js → empty-state-DwJ5YNzz.js} +2 -2
- package/dist/_chunks/{entity-summary-C2B8yNmc.js → entity-summary-BLxzSSXK.js} +3 -3
- package/dist/_chunks/{error-boundary-Dzgu3O6W.js → error-boundary-tAn_GuCu.js} +2 -2
- package/dist/_chunks/{error-page-DirZKDz2.js → error-page-Bhai-spN.js} +2 -2
- package/dist/_chunks/{face-scheme-CSJdRNad.js → face-scheme-BIPJqw9f.js} +5 -5
- package/dist/_chunks/{fetal-weight-DycD_Vqr.js → fetal-weight-CrtBFJl-.js} +2 -2
- package/dist/_chunks/{field-array-BJYc1xSu.js → field-array-CA-gn526.js} +3 -3
- package/dist/_chunks/{file-manager-D4cPnRhL.js → file-manager-Ct5QpZZI.js} +8 -8
- package/dist/_chunks/{finished-terminal-DuF3xrUv.js → finished-terminal-D8ohcFVS.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-DwHb2nVW.js → fiscal-code-input-BzWmNDnl.js} +2 -2
- package/dist/_chunks/{forgot-password-form-BGPc8TGr.js → forgot-password-form-D6kB72OD.js} +2 -2
- package/dist/_chunks/{freemium-paywall-C73C8Rgd.js → freemium-paywall-CM0zQSDE.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-Du53p8MH.js → gestational-age-calculator-Bu_a-K9z.js} +2 -2
- package/dist/_chunks/{hcg-doubling-DwTcjfke.js → hcg-doubling-BnopYgd-.js} +2 -2
- package/dist/_chunks/{header-_TppWBpK.js → header-l_B8MV0g.js} +2 -2
- package/dist/_chunks/{header-settings-CAC0Yl0t.js → header-settings-DBlTL6Qj.js} +4 -4
- package/dist/_chunks/{heatmap-DbZIQg14.js → heatmap-Ba9cgfSY.js} +6 -6
- package/dist/_chunks/{help-me-write-templates-5WkUfvc_.js → help-me-write-templates-Ds1FY-WY.js} +7 -7
- package/dist/_chunks/{hover-card-CTNhQXWS.js → hover-card-CuRIA4wN.js} +2 -2
- package/dist/_chunks/{icon-button-C_1TgRiK.js → icon-button-S8_weU3g.js} +2 -2
- package/dist/_chunks/{icon-button-group-NIHji7_y.js → icon-button-group-CRKFR48b.js} +4 -8
- package/dist/_chunks/{icon-picker-Dq4O32K8.js → icon-picker-Bkm9m7ju.js} +3 -3
- package/dist/_chunks/{image-cropper-s8ej8cxa.js → image-cropper-Ch80rFdt.js} +2 -2
- package/dist/_chunks/{info-tip-cYszyg6h.js → info-tip-Cfd5SKbY.js} +2 -2
- package/dist/_chunks/{insert-result-h3WL-gMo.js → insert-result-CDMMt7q8.js} +2 -2
- package/dist/_chunks/{key-value-pair-BscGwZsJ.js → key-value-pair-BoXOtBL1.js} +2 -2
- package/dist/_chunks/{kit-extensions-CYvLL4ee.js → kit-extensions-DgBi3tsK.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-DtIsQWDO.js → link-cell-renderer-BDxxpfJM.js} +2 -2
- package/dist/_chunks/loading-guard-C1gbJBA4.js +17 -0
- package/dist/_chunks/{locale-picker-CeveTnDK.js → locale-picker-KT-Vz3bx.js} +3 -3
- package/dist/_chunks/{login-dev-card-CWpoTuVY.js → login-dev-card-pnJbVaoQ.js} +2 -2
- package/dist/_chunks/{map-view-CtohteZD.js → map-view-C6MIVaqn.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BeWm-Efp.js → marketplace-app-shell-B0ix9yNI.js} +4 -4
- package/dist/_chunks/{message-card-C_ksqIYM.js → message-card-CvCnCssc.js} +3 -3
- package/dist/_chunks/{message-tray-DCoQ4GQb.js → message-tray-IJYvy6Cf.js} +4 -4
- package/dist/_chunks/{notes-panel-BXN46XkF.js → notes-panel-C_QshXyI.js} +5 -5
- package/dist/_chunks/{notification-card-c2oX8j3F.js → notification-card-CPW4poUr.js} +3 -3
- package/dist/_chunks/{notification-tray-Cp18MW5b.js → notification-tray-0OkA2duS.js} +4 -4
- package/dist/_chunks/{optical-prescription-D5c7FBlT.js → optical-prescription-CMM1Y6Xg.js} +2 -2
- package/dist/_chunks/{panel-subview-BPU7220K.js → panel-subview-DCyvn-49.js} +2 -2
- package/dist/_chunks/{patient-details-qWOsn1MX.js → patient-details-Cd_dCqkg.js} +3 -3
- package/dist/_chunks/{patient-field-row-CAl5ydtX.js → patient-field-row-D6Ftm46u.js} +6 -6
- package/dist/_chunks/{patient-search-BADdx3M1.js → patient-search-DuBdxv1w.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BhuRh9AE.js → patient-summary-card-BSOHR4Ol.js} +5 -5
- package/dist/_chunks/{payment-automation-upsell-CiwF5UrC.js → payment-automation-upsell-AQpHOS1X.js} +2 -2
- package/dist/_chunks/{payment-request-card-bysjRZrP.js → payment-request-card-MndSlVoK.js} +3 -3
- package/dist/_chunks/{periodontal-chart-DCcOEYC6.js → periodontal-chart-_y4Ck7_P.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CxdjXFb3.js → periodontal-chart-card-Bx6PeS3b.js} +2 -2
- package/dist/_chunks/{popover-4ZVtH_At.js → popover-Da1ekjV1.js} +2 -2
- package/dist/_chunks/{practice-results-BzThnpnm.js → practice-results-B4Z5q46r.js} +5 -5
- package/dist/_chunks/{pregnancy-dating-EFcFUJkQ.js → pregnancy-dating-CvNFirHt.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-BVvyL-j1.js → pregnancy-weight-gain--Bqv6AWu.js} +2 -2
- package/dist/_chunks/{privacy-lock-CEYJ8ehu.js → privacy-lock-CcrjIbBv.js} +3 -3
- package/dist/_chunks/{privacy-mask-CCz9zuIh.js → privacy-mask-BDVkikTm.js} +2 -2
- package/dist/_chunks/{product-hub-panel-YuFbNPlT.js → product-hub-panel-Blag8t8f.js} +3 -3
- package/dist/_chunks/{public-header.agent-DXRA7ebK.js → public-header.agent-DPPdCBi_.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-4UllIoTQ.js → radiograph-panel.agent-ESnkuDfH.js} +5 -5
- package/dist/_chunks/{registration-form-1B0PTDal.js → registration-form-BGSVMAga.js} +3 -3
- package/dist/_chunks/{reviews-panel-sbsVmmCA.js → reviews-panel-UzQQLb-z.js} +4 -4
- package/dist/_chunks/{rich-text-editor-56dSsyZI.js → rich-text-editor-BXFgcvBW.js} +8 -8
- package/dist/_chunks/{session-countdown-DWY61IcV.js → session-countdown-C4tzbJVc.js} +22 -23
- package/dist/_chunks/{sheet-D2PfJl8n.js → sheet-uZZXaO_S.js} +2 -2
- package/dist/_chunks/sign-in-with-alfadocs-button-DzrNgbWv.js +62 -0
- package/dist/_chunks/{signature-request-DAmNj_uq.js → signature-request-ldmXj2X6.js} +5 -5
- package/dist/_chunks/{signed-out-frame-Rg_GVDnl.js → signed-out-frame-G-3ATOdu.js} +3 -3
- package/dist/_chunks/{slot-grid-D_gix9mJ.js → slot-grid-uA9j7Nik.js} +4 -4
- package/dist/_chunks/{social-sign-in-button-yUqwhnPZ.js → social-sign-in-button-BqYZxbXI.js} +50 -34
- package/dist/_chunks/{streaming-text-DbqKTsmj.js → streaming-text-Nb3Q7L94.js} +2 -2
- package/dist/_chunks/{task-card-Ci2XbLmq.js → task-card-C4HJUKVw.js} +2 -2
- package/dist/_chunks/{task-editor-BomyxGoZ.js → task-editor-BTeUFGUX.js} +201 -201
- package/dist/_chunks/{task-tray-Dnc72nl-.js → task-tray-DZQGhDdc.js} +4 -4
- package/dist/_chunks/{tasks-panel-ATz9JDy8.js → tasks-panel-Cmr0oMvc.js} +6 -6
- package/dist/_chunks/{theme-toggle-DT_Jn4DC.js → theme-toggle-DTrUzIBG.js} +3 -3
- package/dist/_chunks/{toast-6T519aLz.js → toast-BNoN8Qjh.js} +2 -2
- package/dist/_chunks/{token-insert-menu-CQvV4u1m.js → token-insert-menu-DtAnBd0x.js} +2 -2
- package/dist/_chunks/{tool-rail-C-M3eVdY.js → tool-rail-C_9lm0TC.js} +2 -2
- package/dist/_chunks/{tooth-scheme-Dkh4JwzT.js → tooth-scheme-COJJkdsi.js} +2 -2
- package/dist/_chunks/{unit-converter-CIoTmCmP.js → unit-converter-D59L-gkf.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-1gjZuup4.js → use-appointment-details-read-BWbOiLVw.js} +11 -11
- package/dist/_chunks/{voice-control-panel-B8Lrk0C4.js → voice-control-panel-DQJwe6_Q.js} +6 -6
- package/dist/_chunks/{wallet-pay-button-DFP5FW0D.js → wallet-pay-button-DajFzhHK.js} +62 -46
- package/dist/_chunks/{warning-stack-BhHUmRiD.js → warning-stack-3S7e2q07.js} +3 -3
- package/dist/_chunks/{widget-picker-DlNPGcnu.js → widget-picker-B9HpT2Tb.js} +2 -2
- package/dist/_chunks/{workflow-map-ln4_OG8A.js → workflow-map-BcfOwsSB.js} +5 -5
- package/dist/_chunks/{workflow-webhook-action-D6K7Jgc2.js → workflow-webhook-action-BvVPZVpG.js} +182 -187
- package/dist/agent-catalog.json +2 -2
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/compact-editor-fields.d.ts +2 -1
- package/dist/components/_shared/loading-guard.d.ts +20 -0
- 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/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/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/button.d.ts +7 -0
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/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/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-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/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/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/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/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- 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/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- 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/social-sign-in-button/index.js +1 -1
- package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +4 -2
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-card/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/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/wallet-pay-button/index.js +1 -1
- package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +4 -2
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +67 -0
- package/dist/i18n/locales/ar.js +67 -0
- package/dist/i18n/locales/de.d.ts +40 -0
- package/dist/i18n/locales/de.js +40 -0
- package/dist/i18n/locales/el.d.ts +40 -0
- package/dist/i18n/locales/el.js +40 -0
- package/dist/i18n/locales/en.d.ts +40 -0
- package/dist/i18n/locales/en.js +43 -0
- package/dist/i18n/locales/es.d.ts +40 -0
- package/dist/i18n/locales/es.js +40 -0
- package/dist/i18n/locales/fr.d.ts +40 -0
- package/dist/i18n/locales/fr.js +40 -0
- package/dist/i18n/locales/hi.d.ts +40 -0
- package/dist/i18n/locales/hi.js +40 -0
- package/dist/i18n/locales/it.d.ts +40 -0
- package/dist/i18n/locales/it.js +40 -0
- package/dist/i18n/locales/ja.d.ts +40 -0
- package/dist/i18n/locales/ja.js +40 -0
- package/dist/i18n/locales/nl.d.ts +40 -0
- package/dist/i18n/locales/nl.js +40 -0
- package/dist/i18n/locales/pl.d.ts +49 -0
- package/dist/i18n/locales/pl.js +49 -0
- package/dist/i18n/locales/pt.d.ts +40 -0
- package/dist/i18n/locales/pt.js +40 -0
- package/dist/i18n/locales/ro.d.ts +49 -0
- package/dist/i18n/locales/ro.js +49 -0
- package/dist/i18n/locales/ru.d.ts +49 -0
- package/dist/i18n/locales/ru.js +49 -0
- package/dist/i18n/locales/sq.d.ts +40 -0
- package/dist/i18n/locales/sq.js +40 -0
- package/dist/i18n/locales/sv.d.ts +40 -0
- package/dist/i18n/locales/sv.js +40 -0
- package/dist/i18n/locales/tr.d.ts +40 -0
- package/dist/i18n/locales/tr.js +40 -0
- package/dist/i18n/locales/zh.d.ts +40 -0
- package/dist/i18n/locales/zh.js +40 -0
- package/dist/index.js +214 -213
- package/dist/locales/ar.json +67 -0
- package/dist/locales/de.json +40 -0
- package/dist/locales/el.json +40 -0
- package/dist/locales/en.json +40 -0
- package/dist/locales/es.json +40 -0
- package/dist/locales/fr.json +40 -0
- package/dist/locales/hi.json +40 -0
- package/dist/locales/it.json +40 -0
- package/dist/locales/ja.json +40 -0
- package/dist/locales/nl.json +40 -0
- package/dist/locales/pl.json +49 -0
- package/dist/locales/pt.json +40 -0
- package/dist/locales/ro.json +49 -0
- package/dist/locales/ru.json +49 -0
- package/dist/locales/sq.json +40 -0
- package/dist/locales/sv.json +40 -0
- package/dist/locales/tr.json +40 -0
- package/dist/locales/zh.json +40 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-appointment-editor-dialog.d.ts +19 -0
- package/dist/patterns/calendar/calendar-custom-recurrence.d.ts +54 -0
- package/dist/patterns/calendar/calendar.model.d.ts +35 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +11 -0
- package/dist/patterns/calendar/index.d.ts +3 -1
- package/dist/patterns/calendar/index.js +18 -17
- 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/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-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/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-workspace-Ct8_454k.js +0 -10593
- package/dist/_chunks/sign-in-with-alfadocs-button-CIv0GgeA.js +0 -49
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as k, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import { useState as $, useRef as x, useEffect as $e, forwardRef as At, useId as _t, useMemo as Fe } from "react";
|
|
3
3
|
import { c as ht } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as gt } from "react-i18next";
|
|
5
5
|
import { A as M } from "./alert-9kEwDza3.js";
|
|
6
|
-
import { B as Me } from "./button-
|
|
7
|
-
import { I as We } from "./icon-button-
|
|
6
|
+
import { B as Me } from "./button-DohK_Ak_.js";
|
|
7
|
+
import { I as We } from "./icon-button-S8_weU3g.js";
|
|
8
8
|
import { C as Qe } from "./combobox-vF9O-QoG.js";
|
|
9
|
-
import { D as ce } from "./dialog-
|
|
9
|
+
import { D as ce } from "./dialog-C7RWaH08.js";
|
|
10
10
|
import { D as Bt } from "./date-picker-KcoNNsM0.js";
|
|
11
11
|
import { F as H } from "./form-field-Ani72sVY.js";
|
|
12
|
-
import { I as Ft } from "./icon-button-group-
|
|
12
|
+
import { I as Ft } from "./icon-button-group-CRKFR48b.js";
|
|
13
13
|
import { P as Pt } from "./panel-header-CbtlTe85.js";
|
|
14
|
-
import { P as Ot } from "./panel-subview-
|
|
14
|
+
import { P as Ot } from "./panel-subview-DCyvn-49.js";
|
|
15
15
|
import { R as Pe } from "./radio-BZQs6_36.js";
|
|
16
16
|
import { R as jt } from "./radio-group-ChIKyeSJ.js";
|
|
17
17
|
import { S as Mt } from "./scroll-area-CY5SLYNw.js";
|
|
@@ -25,7 +25,7 @@ import { u as Vt } from "./registry-DvAUVLHh.js";
|
|
|
25
25
|
import { u as Lt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
26
26
|
import { c as Ut } from "./compose-refs-C0k0tdqF.js";
|
|
27
27
|
import { n as Wt } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
28
|
-
import { p as Kt, P as Ht } from "./privacy-mask-
|
|
28
|
+
import { p as Kt, P as Ht } from "./privacy-mask-BDVkikTm.js";
|
|
29
29
|
import { g as je, h as Gt } from "./handled-rejection-6gqCf5vt.js";
|
|
30
30
|
import { L as Qt } from "./lock-ClAFG1gy.js";
|
|
31
31
|
import { X as Yt } from "./x-B5YnXwCz.js";
|
|
@@ -35,25 +35,25 @@ import { B as Jt } from "./building-2-D33bLCWL.js";
|
|
|
35
35
|
import { S as Zt } from "./stethoscope-sZXGC43m.js";
|
|
36
36
|
import { T as dt } from "./trash-2-uumy3fy1.js";
|
|
37
37
|
import { S as ct } from "./square-check-big-dj0o8yA3.js";
|
|
38
|
-
import { L as
|
|
38
|
+
import { L as en } from "./loader-circle-BECIU_8N.js";
|
|
39
39
|
/**
|
|
40
40
|
* @license lucide-react v1.22.0 - ISC
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
const
|
|
45
|
+
const tn = [
|
|
46
46
|
["path", { d: "m2 2 20 20", key: "1ooewy" }],
|
|
47
47
|
["path", { d: "M8.35 2.69A10 10 0 0 1 21.3 15.65", key: "1pfsoa" }],
|
|
48
48
|
["path", { d: "M19.08 19.08A10 10 0 1 1 4.92 4.92", key: "1ablyi" }]
|
|
49
|
-
],
|
|
49
|
+
], nn = vt("circle-off", tn);
|
|
50
50
|
/**
|
|
51
51
|
* @license lucide-react v1.22.0 - ISC
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
55
|
*/
|
|
56
|
-
const
|
|
56
|
+
const on = [
|
|
57
57
|
[
|
|
58
58
|
"path",
|
|
59
59
|
{
|
|
@@ -63,11 +63,11 @@ const no = [
|
|
|
63
63
|
],
|
|
64
64
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
65
65
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
66
|
-
],
|
|
67
|
-
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker])]:h-8",
|
|
68
|
-
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker])]:rounded-[var(--radius-md)]",
|
|
69
|
-
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker])]:[min-block-size:var(--accessible-target-floor,auto)]",
|
|
70
|
-
"ds:max-sm:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker])]:[min-block-size:var(--min-target-size)]",
|
|
66
|
+
], an = vt("save", on), rn = [
|
|
67
|
+
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:h-8",
|
|
68
|
+
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:rounded-[var(--radius-md)]",
|
|
69
|
+
"ds:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:[min-block-size:var(--accessible-target-floor,auto)]",
|
|
70
|
+
"ds:max-sm:[&_:is([data-component=select][role=combobox],[data-component=text-input],[data-component=text-input]_input,[data-component=date-picker]_input,[data-component=combobox],[data-component=time-picker],[data-component=number-input])]:[min-block-size:var(--min-target-size)]",
|
|
71
71
|
/* Multi-line notes keep their height but share the corners. */
|
|
72
72
|
"ds:[&_[data-component=text-area]_textarea]:rounded-[var(--radius-md)]",
|
|
73
73
|
/* The time field's hour and minute segments are 32px at the kit default;
|
|
@@ -75,26 +75,26 @@ const no = [
|
|
|
75
75
|
and get the default back wherever the field is raised. */
|
|
76
76
|
"ds:[&_[data-component=time-picker]_[role=spinbutton]]:h-[calc(var(--ds-spacing)*(6+2*var(--accessible-on,0)))]",
|
|
77
77
|
"ds:max-sm:[&_[data-component=time-picker]_[role=spinbutton]]:h-8"
|
|
78
|
-
].join(" "),
|
|
78
|
+
].join(" "), sn = [
|
|
79
79
|
"ds:h-[var(--accessible-auto,calc(var(--ds-spacing)*8))] ds:[&_[role=radio]]:[min-block-size:var(--accessible-target-floor,0px)]",
|
|
80
80
|
"ds:max-sm:h-auto ds:max-sm:[&_[role=radio]]:min-h-[var(--min-target-size)]"
|
|
81
81
|
].join(" ");
|
|
82
|
-
function
|
|
83
|
-
patients:
|
|
82
|
+
function dn({
|
|
83
|
+
patients: o = [],
|
|
84
84
|
searchPatients: c,
|
|
85
85
|
...I
|
|
86
86
|
}) {
|
|
87
87
|
if (c)
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
const { value:
|
|
90
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ n(cn, { ...I, searchPatients: c });
|
|
89
|
+
const { value: b, onValueChange: B, selectedLabel: A, placeholder: Y, size: C, disabled: X } = I;
|
|
90
|
+
return /* @__PURE__ */ n(
|
|
91
91
|
Qe,
|
|
92
92
|
{
|
|
93
|
-
value:
|
|
93
|
+
value: b,
|
|
94
94
|
onValueChange: B,
|
|
95
95
|
options: [
|
|
96
|
-
...
|
|
97
|
-
...
|
|
96
|
+
...b && !o.some((D) => D.id === b) ? [{ value: b, label: A ?? "" }] : [],
|
|
97
|
+
...o.map((D) => ({ value: D.id, label: D.name }))
|
|
98
98
|
],
|
|
99
99
|
placeholder: Y,
|
|
100
100
|
size: C,
|
|
@@ -103,11 +103,11 @@ function so({
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
value:
|
|
106
|
+
function cn({
|
|
107
|
+
value: o,
|
|
108
108
|
onValueChange: c,
|
|
109
109
|
selectedLabel: I,
|
|
110
|
-
placeholder:
|
|
110
|
+
placeholder: b,
|
|
111
111
|
size: B,
|
|
112
112
|
disabled: A,
|
|
113
113
|
searchPatients: Y
|
|
@@ -119,8 +119,8 @@ function co({
|
|
|
119
119
|
ee({ ...S, status: "loading", patients: [] });
|
|
120
120
|
const le = setTimeout(() => {
|
|
121
121
|
Promise.resolve().then(() => Y(P, { signal: m.signal })).then(
|
|
122
|
-
(
|
|
123
|
-
m.signal.aborted || ee({ ...S, status: "ready", patients:
|
|
122
|
+
(oe) => {
|
|
123
|
+
m.signal.aborted || ee({ ...S, status: "ready", patients: oe });
|
|
124
124
|
},
|
|
125
125
|
() => {
|
|
126
126
|
m.signal.aborted || ee({ ...S, status: "error", patients: [] });
|
|
@@ -131,13 +131,13 @@ function co({
|
|
|
131
131
|
clearTimeout(le), m.abort();
|
|
132
132
|
};
|
|
133
133
|
}, [P, Y, J]);
|
|
134
|
-
const V = (N == null ? void 0 : N.query) === P && N.source === Y, L = P ? V ? N.status : "loading" : "idle", te = V && L === "ready" ? N.patients : [],
|
|
134
|
+
const V = (N == null ? void 0 : N.query) === P && N.source === Y, L = P ? V ? N.status : "loading" : "idle", te = V && L === "ready" ? N.patients : [], ne = L === "loading" ? C("inputs.search.loading") : L === "error" ? C("emptyState.error.description") : L === "idle" ? b : te.length === 0 ? C("inputs.combobox.empty") : "", O = te.map((m) => ({
|
|
135
135
|
value: m.id,
|
|
136
136
|
label: m.name
|
|
137
137
|
}));
|
|
138
|
-
return
|
|
139
|
-
value:
|
|
140
|
-
label: (F == null ? void 0 : F.id) ===
|
|
138
|
+
return o && !te.some((m) => m.id === o) && O.push({
|
|
139
|
+
value: o,
|
|
140
|
+
label: (F == null ? void 0 : F.id) === o ? F.name : I ?? ""
|
|
141
141
|
}), /* @__PURE__ */ k(
|
|
142
142
|
"div",
|
|
143
143
|
{
|
|
@@ -145,12 +145,12 @@ function co({
|
|
|
145
145
|
"data-component": "patient-picker",
|
|
146
146
|
"data-status": L,
|
|
147
147
|
children: [
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ n(
|
|
149
149
|
Qe,
|
|
150
150
|
{
|
|
151
151
|
ref: q,
|
|
152
152
|
options: O,
|
|
153
|
-
value:
|
|
153
|
+
value: o,
|
|
154
154
|
onValueChange: (m) => {
|
|
155
155
|
se(
|
|
156
156
|
(S) => te.find((le) => le.id === m) ?? ((S == null ? void 0 : S.id) === m ? S : void 0)
|
|
@@ -163,13 +163,13 @@ function co({
|
|
|
163
163
|
filter: (m) => !P || te.some((S) => Wt(S.id) === m) ? 1 : 0,
|
|
164
164
|
size: B,
|
|
165
165
|
disabled: A,
|
|
166
|
-
placeholder:
|
|
167
|
-
emptyMessage:
|
|
166
|
+
placeholder: b,
|
|
167
|
+
emptyMessage: ne || void 0,
|
|
168
168
|
clearable: !0
|
|
169
169
|
}
|
|
170
170
|
),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
L === "error" ? /* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ n("p", { role: "status", className: "type-body-sm ds:text-muted-foreground", children: ne }),
|
|
172
|
+
L === "error" ? /* @__PURE__ */ n(
|
|
173
173
|
Me,
|
|
174
174
|
{
|
|
175
175
|
size: "sm",
|
|
@@ -185,7 +185,7 @@ function co({
|
|
|
185
185
|
}
|
|
186
186
|
);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const ln = {
|
|
189
189
|
id: "task-editor",
|
|
190
190
|
// set_value backs set_fields and set_done; submit backs save; dismiss
|
|
191
191
|
// backs cancel.
|
|
@@ -195,19 +195,19 @@ const lo = {
|
|
|
195
195
|
type: "'loading' | 'ready' | 'error' | 'locked' | 'withheld'",
|
|
196
196
|
descriptionKey: "ui.agent.taskEditor.state.status",
|
|
197
197
|
description: "Where the form is: loading the task, ready, failed to load, locked (edit mode with nothing to load) or withheld behind the privacy notice. Writes need 'ready'.",
|
|
198
|
-
read: (
|
|
198
|
+
read: (o) => o.getStatus()
|
|
199
199
|
},
|
|
200
200
|
draft: {
|
|
201
201
|
type: "{ mode: string; dateIso: string | null; about: string; patientId: string | null; companyId: string | null; operatorId: string | null; typeId: string | null; assigneeId: string | null; done: boolean; hasNote: boolean; noteLength: number }",
|
|
202
202
|
descriptionKey: "ui.agent.taskEditor.state.draft",
|
|
203
203
|
description: "The draft as Save would send it: ids and structure only, never the note body. done is the last value the host confirmed.",
|
|
204
|
-
read: (
|
|
204
|
+
read: (o) => o.getDraft()
|
|
205
205
|
},
|
|
206
206
|
canSave: {
|
|
207
207
|
type: "boolean",
|
|
208
208
|
descriptionKey: "ui.agent.taskEditor.state.canSave",
|
|
209
209
|
description: "Whether save would reach the host now: the form is ready, the note is filled, a chosen counterpart has an id and no write is pending.",
|
|
210
|
-
read: (
|
|
210
|
+
read: (o) => o.canSave()
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
actions: {
|
|
@@ -238,8 +238,8 @@ const lo = {
|
|
|
238
238
|
],
|
|
239
239
|
descriptionKey: "ui.agent.taskEditor.actions.setFields",
|
|
240
240
|
description: "Set draft fields. Ids must come from the host lists, a patient the host search returned, or equal the stored one. At most one counterpart per call, and it selects its branch; assigneeId null is nobody. Nothing is saved.",
|
|
241
|
-
invoke: (
|
|
242
|
-
|
|
241
|
+
invoke: (o, c) => {
|
|
242
|
+
o.setFields(c);
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
save: {
|
|
@@ -248,7 +248,7 @@ const lo = {
|
|
|
248
248
|
openWorld: !0,
|
|
249
249
|
descriptionKey: "ui.agent.taskEditor.actions.save",
|
|
250
250
|
description: "Save the task through the host. Resolves once the write lands and rejects with the host error, which the form also shows.",
|
|
251
|
-
invoke: (
|
|
251
|
+
invoke: (o) => o.save()
|
|
252
252
|
},
|
|
253
253
|
set_done: {
|
|
254
254
|
safety: "write",
|
|
@@ -266,7 +266,7 @@ const lo = {
|
|
|
266
266
|
],
|
|
267
267
|
descriptionKey: "ui.agent.taskEditor.actions.setDone",
|
|
268
268
|
description: "Mark an existing task done or not done through the host. A rejection rolls the switch back.",
|
|
269
|
-
invoke: (
|
|
269
|
+
invoke: (o, c) => o.setDone(c.done)
|
|
270
270
|
},
|
|
271
271
|
delete: {
|
|
272
272
|
safety: "destructive",
|
|
@@ -274,15 +274,15 @@ const lo = {
|
|
|
274
274
|
openWorld: !0,
|
|
275
275
|
descriptionKey: "ui.agent.taskEditor.actions.delete",
|
|
276
276
|
description: "Delete the task through the host, without the confirmation dialog. Resolves once the delete lands.",
|
|
277
|
-
invoke: (
|
|
277
|
+
invoke: (o) => o.deleteTask()
|
|
278
278
|
},
|
|
279
279
|
cancel: {
|
|
280
280
|
safety: "destructive",
|
|
281
281
|
errors: ["A save or delete is in flight: wait for it to settle."],
|
|
282
282
|
descriptionKey: "ui.agent.taskEditor.actions.cancel",
|
|
283
283
|
description: "Close the editor without saving. Anything typed since the last save is lost. Refused while a save or delete is in flight.",
|
|
284
|
-
invoke: (
|
|
285
|
-
|
|
284
|
+
invoke: (o) => {
|
|
285
|
+
o.cancel();
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
},
|
|
@@ -311,14 +311,14 @@ const lo = {
|
|
|
311
311
|
confirmDeleteOpen: !1,
|
|
312
312
|
accepted: !1
|
|
313
313
|
};
|
|
314
|
-
function
|
|
315
|
-
return
|
|
314
|
+
function un(o) {
|
|
315
|
+
return o.patientId ? "patient" : o.companyId ? "company" : o.operatorId ? "operator" : "nobody";
|
|
316
316
|
}
|
|
317
|
-
function Ye(
|
|
318
|
-
return { hours:
|
|
317
|
+
function Ye(o) {
|
|
318
|
+
return { hours: o.getHours(), minutes: o.getMinutes() };
|
|
319
319
|
}
|
|
320
|
-
function ut(
|
|
321
|
-
const c =
|
|
320
|
+
function ut(o) {
|
|
321
|
+
const c = o ?? /* @__PURE__ */ new Date();
|
|
322
322
|
return {
|
|
323
323
|
date: c,
|
|
324
324
|
time: Ye(c),
|
|
@@ -331,33 +331,33 @@ function ut(n) {
|
|
|
331
331
|
companyId: ""
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
const c = new Date(
|
|
334
|
+
function pn(o) {
|
|
335
|
+
const c = new Date(o.dateIso);
|
|
336
336
|
return {
|
|
337
337
|
date: c,
|
|
338
338
|
time: Ye(c),
|
|
339
|
-
note:
|
|
339
|
+
note: o.note,
|
|
340
340
|
/* `||`, not `??`: a host's '' is unset, like patient and company. */
|
|
341
|
-
operatorId:
|
|
341
|
+
operatorId: o.operatorId || z,
|
|
342
342
|
/* A stored type wins. With none, '' falls through to the first entry. */
|
|
343
|
-
typeId:
|
|
343
|
+
typeId: o.typeId ?? "",
|
|
344
344
|
/* `||` too: '' would become a Select option with an empty value. */
|
|
345
|
-
assigneeId:
|
|
346
|
-
about:
|
|
347
|
-
patientId:
|
|
348
|
-
companyId:
|
|
345
|
+
assigneeId: o.assigneeId || z,
|
|
346
|
+
about: un(o),
|
|
347
|
+
patientId: o.patientId ?? "",
|
|
348
|
+
companyId: o.companyId ?? ""
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
const
|
|
351
|
+
const mn = [
|
|
352
352
|
["patientId", "patient"],
|
|
353
353
|
["companyId", "company"],
|
|
354
354
|
["operatorId", "operator"]
|
|
355
355
|
];
|
|
356
|
-
function
|
|
357
|
-
mode:
|
|
356
|
+
function fn({
|
|
357
|
+
mode: o,
|
|
358
358
|
taskId: c,
|
|
359
359
|
initialDate: I,
|
|
360
|
-
active:
|
|
360
|
+
active: b,
|
|
361
361
|
taskTypes: B,
|
|
362
362
|
assignees: A,
|
|
363
363
|
companies: Y,
|
|
@@ -375,14 +375,14 @@ function fo({
|
|
|
375
375
|
readOnly: V,
|
|
376
376
|
withheld: L,
|
|
377
377
|
maskPatient: te,
|
|
378
|
-
fallbackError:
|
|
378
|
+
fallbackError: ne
|
|
379
379
|
}) {
|
|
380
380
|
var xe;
|
|
381
|
-
const O =
|
|
382
|
-
le !==
|
|
383
|
-
const U = `${
|
|
381
|
+
const O = o === "edit", [m, S] = $(0), [le, oe] = $(b);
|
|
382
|
+
le !== b && (oe(b), b && S((e) => e + 1));
|
|
383
|
+
const U = `${o}|${c ?? ""}|${m}`, [p, fe] = $(
|
|
384
384
|
() => ut(I)
|
|
385
|
-
), [G, Ee] = $(lt), [
|
|
385
|
+
), [G, Ee] = $(lt), [y, a] = $(), w = (e) => Ee((i) => ({ ...i, ...e })), he = (e) => fe((i) => ({ ...i, ...e })), [ge, ae] = $(U);
|
|
386
386
|
ge !== U && (ae(U), fe(ut(I)), Ee(lt), a(void 0));
|
|
387
387
|
const _ = x({
|
|
388
388
|
subject: U,
|
|
@@ -406,10 +406,10 @@ function fo({
|
|
|
406
406
|
ue.current = Z;
|
|
407
407
|
const d = !!Z, [R, l] = $(0), [s, f] = $(null), ke = x(s);
|
|
408
408
|
ke.current = s;
|
|
409
|
-
const
|
|
409
|
+
const be = b && O && !!c && d && !L;
|
|
410
410
|
$e(() => {
|
|
411
411
|
const e = ue.current;
|
|
412
|
-
if (!
|
|
412
|
+
if (!be || !c || !e) return;
|
|
413
413
|
const i = _.current, h = ke.current;
|
|
414
414
|
if ((h == null ? void 0 : h.subject) === i.subject && h.status === "ready")
|
|
415
415
|
return;
|
|
@@ -422,21 +422,21 @@ function fo({
|
|
|
422
422
|
)
|
|
423
423
|
).then(
|
|
424
424
|
(g) => {
|
|
425
|
-
u.signal.aborted || !T(i) || (fe(
|
|
425
|
+
u.signal.aborted || !T(i) || (fe(pn(g)), w({ done: g.done, confirmedDone: g.done }), a(g), f({ subject: i.subject, status: "ready" }));
|
|
426
426
|
},
|
|
427
427
|
(g) => {
|
|
428
428
|
u.signal.aborted || !T(i) || f({
|
|
429
429
|
subject: i.subject,
|
|
430
430
|
status: "error",
|
|
431
|
-
message: je(g,
|
|
431
|
+
message: je(g, ne)
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
), () => u.abort();
|
|
435
|
-
}, [
|
|
435
|
+
}, [be, U, R]);
|
|
436
436
|
const j = O ? !c || !d ? "locked" : L ? "withheld" : (s == null ? void 0 : s.subject) === U ? s.status : "loading" : "ready", Q = () => {
|
|
437
437
|
j === "error" && (f(null), l((e) => e + 1));
|
|
438
438
|
}, pe = p.typeId || (((xe = B[0]) == null ? void 0 : xe.id) ?? ""), ze = p.about === "nobody" || p.about === "patient" && p.patientId !== "" || p.about === "company" && p.companyId !== "" || p.about === "operator" && p.operatorId !== z, me = !V && p.note.trim() !== "" && p.date !== void 0 && ze && /* Required whenever the host offers a list. */
|
|
439
|
-
(B.length === 0 || pe !== "") && !G.saving && !G.donePending,
|
|
439
|
+
(B.length === 0 || pe !== "") && !G.saving && !G.donePending, ye = O ? se : F, Se = () => {
|
|
440
440
|
const { date: e, time: i } = p;
|
|
441
441
|
return e ? {
|
|
442
442
|
dateIso: new Date(
|
|
@@ -467,7 +467,7 @@ function fo({
|
|
|
467
467
|
}, E = (e) => Gt(new Error(`TaskEditor: ${e}`)), Te = () => {
|
|
468
468
|
const e = _.current;
|
|
469
469
|
if (j !== "ready") return E(`cannot save while ${j}.`);
|
|
470
|
-
if (!
|
|
470
|
+
if (!ye) return E("the host gave no save seam.");
|
|
471
471
|
if (e.accepted) return E("this task was already saved.");
|
|
472
472
|
if (e.deleting) return E("a delete is in flight.");
|
|
473
473
|
if (e.saving || !me) return E("the task cannot be saved.");
|
|
@@ -489,7 +489,7 @@ function fo({
|
|
|
489
489
|
e.accepted = !0, T(e) && (w({ accepted: !0 }), g && (q == null || q(g)));
|
|
490
490
|
}
|
|
491
491
|
} catch (g) {
|
|
492
|
-
throw T(e) && w({ saveError: je(g,
|
|
492
|
+
throw T(e) && w({ saveError: je(g, ne) }), g;
|
|
493
493
|
} finally {
|
|
494
494
|
e.saving = !1, T(e) && w({ saving: !1 });
|
|
495
495
|
}
|
|
@@ -516,7 +516,7 @@ function fo({
|
|
|
516
516
|
} catch (W) {
|
|
517
517
|
throw T(i) && w({
|
|
518
518
|
done: h,
|
|
519
|
-
doneError: je(W,
|
|
519
|
+
doneError: je(W, ne)
|
|
520
520
|
}), W;
|
|
521
521
|
} finally {
|
|
522
522
|
i.donePending = !1, T(i) && w({ donePending: !1 });
|
|
@@ -537,7 +537,7 @@ function fo({
|
|
|
537
537
|
try {
|
|
538
538
|
await N(i), e.accepted = !0, T(e) && (w({ accepted: !0, confirmDeleteOpen: !1 }), P == null || P(i));
|
|
539
539
|
} catch (u) {
|
|
540
|
-
throw T(e) && w({ deleteError: je(u,
|
|
540
|
+
throw T(e) && w({ deleteError: je(u, ne) }), u;
|
|
541
541
|
} finally {
|
|
542
542
|
e.deleting = !1, T(e) && w({ deleting: !1 });
|
|
543
543
|
}
|
|
@@ -552,7 +552,7 @@ function fo({
|
|
|
552
552
|
if (j !== "ready")
|
|
553
553
|
throw new Error(`TaskEditor: cannot set fields while ${j}.`);
|
|
554
554
|
if (V) throw new Error("TaskEditor: the task is read-only.");
|
|
555
|
-
const i =
|
|
555
|
+
const i = mn.filter(([W]) => e[W] !== void 0);
|
|
556
556
|
if (i.length > 1)
|
|
557
557
|
throw new Error(
|
|
558
558
|
"TaskEditor: set at most one of patientId, companyId and operatorId."
|
|
@@ -562,18 +562,18 @@ function fo({
|
|
|
562
562
|
throw new Error(
|
|
563
563
|
`TaskEditor: about "${e.about}" does not match the ${h} id.`
|
|
564
564
|
);
|
|
565
|
-
if (e.typeId !== void 0 && !de(B, e.typeId,
|
|
565
|
+
if (e.typeId !== void 0 && !de(B, e.typeId, y == null ? void 0 : y.typeId))
|
|
566
566
|
throw new Error(`TaskEditor: unknown typeId "${e.typeId}".`);
|
|
567
|
-
if (e.assigneeId !== void 0 && e.assigneeId !== null && !de(A, e.assigneeId,
|
|
567
|
+
if (e.assigneeId !== void 0 && e.assigneeId !== null && !de(A, e.assigneeId, y == null ? void 0 : y.assigneeId))
|
|
568
568
|
throw new Error(`TaskEditor: unknown assigneeId "${e.assigneeId}".`);
|
|
569
|
-
if (e.companyId !== void 0 && !de(Y, e.companyId,
|
|
569
|
+
if (e.companyId !== void 0 && !de(Y, e.companyId, y == null ? void 0 : y.companyId))
|
|
570
570
|
throw new Error(`TaskEditor: unknown companyId "${e.companyId}".`);
|
|
571
|
-
if (e.operatorId !== void 0 && !de(C, e.operatorId,
|
|
571
|
+
if (e.operatorId !== void 0 && !de(C, e.operatorId, y == null ? void 0 : y.operatorId))
|
|
572
572
|
throw new Error(`TaskEditor: unknown operatorId "${e.operatorId}".`);
|
|
573
573
|
if (e.patientId !== void 0) {
|
|
574
574
|
if (te)
|
|
575
575
|
throw new Error("TaskEditor: no patient can be set in privacy mode.");
|
|
576
|
-
if (!(de(X, e.patientId,
|
|
576
|
+
if (!(de(X, e.patientId, y == null ? void 0 : y.patientId) || D.has(e.patientId) || (J == null ? void 0 : J(e.patientId)) !== void 0))
|
|
577
577
|
throw new Error(`TaskEditor: unknown patientId "${e.patientId}".`);
|
|
578
578
|
}
|
|
579
579
|
const u = {};
|
|
@@ -587,7 +587,7 @@ function fo({
|
|
|
587
587
|
}, _e = () => {
|
|
588
588
|
const e = Se();
|
|
589
589
|
return {
|
|
590
|
-
mode:
|
|
590
|
+
mode: o,
|
|
591
591
|
dateIso: (e == null ? void 0 : e.dateIso) ?? null,
|
|
592
592
|
about: p.about,
|
|
593
593
|
patientId: (e == null ? void 0 : e.patientId) ?? null,
|
|
@@ -606,13 +606,13 @@ function fo({
|
|
|
606
606
|
retry: Q,
|
|
607
607
|
fields: p,
|
|
608
608
|
patchFields: he,
|
|
609
|
-
stored:
|
|
609
|
+
stored: y,
|
|
610
610
|
chosenTypeId: pe,
|
|
611
611
|
canSave: me,
|
|
612
612
|
/** What the agent's `canSave` reports: the button's rule plus the
|
|
613
613
|
* status, the seam and a save that has not landed yet. */
|
|
614
|
-
agentCanSave: j === "ready" && !!
|
|
615
|
-
showSave: !V && !!
|
|
614
|
+
agentCanSave: j === "ready" && !!ye && me && !G.accepted,
|
|
615
|
+
showSave: !V && !!ye,
|
|
616
616
|
showDelete: O && !V && !!N && !!c,
|
|
617
617
|
showDone: O && !V && !!ee,
|
|
618
618
|
ui: G,
|
|
@@ -641,7 +641,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
641
641
|
},
|
|
642
642
|
defaultVariants: { variant: "panel" }
|
|
643
643
|
}), mt = ht(
|
|
644
|
-
`ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${
|
|
644
|
+
`ds:m-0 ds:min-w-0 ds:border-0 ds:p-[var(--spacing-md)] ${rn}`,
|
|
645
645
|
{
|
|
646
646
|
variants: {
|
|
647
647
|
/** 'form': the fields in a column. 'notice': the locked notice. */
|
|
@@ -652,24 +652,24 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
652
652
|
},
|
|
653
653
|
defaultVariants: { layout: "form" }
|
|
654
654
|
}
|
|
655
|
-
), r = (
|
|
655
|
+
), r = (o) => `calendarWorkspace.taskEditor.${o}`, hn = (o, c, I) => I.includes(c) ? 1 : 0, Ne = [], Ge = (o, c) => Array.from(o.querySelectorAll("[data-task-id]")).filter(
|
|
656
656
|
(I) => !c.contains(I)
|
|
657
|
-
),
|
|
658
|
-
if (!
|
|
657
|
+
), gn = 'button:not([disabled]), a[href], input:not([disabled]), [tabindex]:not([tabindex="-1"])', ft = (o, c) => {
|
|
658
|
+
if (!o) return [];
|
|
659
659
|
const I = Array.from(
|
|
660
|
-
|
|
660
|
+
o.querySelectorAll("[data-action]")
|
|
661
661
|
);
|
|
662
662
|
return [
|
|
663
|
-
...I.filter((
|
|
664
|
-
...I.filter((
|
|
665
|
-
...Array.from(
|
|
663
|
+
...I.filter((b) => c && b.dataset.action === c),
|
|
664
|
+
...I.filter((b) => b.dataset.action === "open-task"),
|
|
665
|
+
...Array.from(o.querySelectorAll(gn))
|
|
666
666
|
];
|
|
667
|
-
},
|
|
667
|
+
}, vn = At(
|
|
668
668
|
({
|
|
669
|
-
id:
|
|
669
|
+
id: o,
|
|
670
670
|
mode: c,
|
|
671
671
|
taskId: I,
|
|
672
|
-
initialDate:
|
|
672
|
+
initialDate: b,
|
|
673
673
|
variant: B = "panel",
|
|
674
674
|
open: A = !0,
|
|
675
675
|
onExited: Y,
|
|
@@ -687,22 +687,22 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
687
687
|
loadTask: V,
|
|
688
688
|
onCreateTask: L,
|
|
689
689
|
onUpdateTask: te,
|
|
690
|
-
onDeleteTask:
|
|
690
|
+
onDeleteTask: ne,
|
|
691
691
|
onSetTaskDone: O,
|
|
692
692
|
onCancel: m,
|
|
693
693
|
onSaved: S,
|
|
694
694
|
onDeleted: le,
|
|
695
|
-
readOnly:
|
|
695
|
+
readOnly: oe = !1,
|
|
696
696
|
privacy: U = !1,
|
|
697
697
|
privacyMode: p = "notice",
|
|
698
698
|
onPrivacyOff: fe,
|
|
699
699
|
className: G,
|
|
700
700
|
...Ee
|
|
701
|
-
},
|
|
702
|
-
const { t: a } = gt("ui"), w = _t(), he =
|
|
701
|
+
}, y) => {
|
|
702
|
+
const { t: a } = gt("ui"), w = _t(), he = o ?? w, ge = c === "edit", ae = B === "subview", _ = !ae || A, ve = U && ge && p === "notice", T = U && !ve, [ue] = $(() => /* @__PURE__ */ new Map()), d = fn({
|
|
703
703
|
mode: c,
|
|
704
704
|
taskId: I,
|
|
705
|
-
initialDate:
|
|
705
|
+
initialDate: b,
|
|
706
706
|
active: _,
|
|
707
707
|
taskTypes: C,
|
|
708
708
|
assignees: X,
|
|
@@ -714,24 +714,24 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
714
714
|
loadTask: V,
|
|
715
715
|
onCreateTask: L,
|
|
716
716
|
onUpdateTask: te,
|
|
717
|
-
onDeleteTask:
|
|
717
|
+
onDeleteTask: ne,
|
|
718
718
|
onSetTaskDone: O,
|
|
719
719
|
onSaved: S,
|
|
720
720
|
onDeleted: le,
|
|
721
|
-
readOnly:
|
|
721
|
+
readOnly: oe,
|
|
722
722
|
withheld: ve,
|
|
723
723
|
maskPatient: T,
|
|
724
724
|
fallbackError: a("emptyState.error.title")
|
|
725
725
|
}), { status: R, fields: l, ui: s, stored: f } = d, ke = x(F);
|
|
726
726
|
ke.current = F;
|
|
727
|
-
const
|
|
728
|
-
() =>
|
|
727
|
+
const be = !!F, j = Fe(
|
|
728
|
+
() => be ? async (t, v) => {
|
|
729
729
|
const K = await ke.current(t, v);
|
|
730
730
|
for (const ie of K)
|
|
731
731
|
ue.set(ie.id, ie.name);
|
|
732
732
|
return K;
|
|
733
733
|
} : void 0,
|
|
734
|
-
[
|
|
734
|
+
[be, ue]
|
|
735
735
|
), Q = x(d);
|
|
736
736
|
Q.current = d;
|
|
737
737
|
const pe = x(m);
|
|
@@ -753,10 +753,10 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
753
753
|
}),
|
|
754
754
|
[]
|
|
755
755
|
);
|
|
756
|
-
Vt(
|
|
757
|
-
const me = x(null),
|
|
758
|
-
() => Ut(
|
|
759
|
-
[
|
|
756
|
+
Vt(ln, _ ? ze : null, he);
|
|
757
|
+
const me = x(null), ye = Fe(
|
|
758
|
+
() => Ut(y, me),
|
|
759
|
+
[y]
|
|
760
760
|
), Se = x(null), E = x(null), Te = x(!1);
|
|
761
761
|
ae && A && !Te.current && (E.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null), Te.current = ae && A;
|
|
762
762
|
const Re = x(A);
|
|
@@ -801,13 +801,13 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
801
801
|
preventScroll: !0
|
|
802
802
|
});
|
|
803
803
|
}, [R]);
|
|
804
|
-
const xe = a(r(ge ? "editTitle" : "title")), e = D.length > 0, i = J.length > 0, h =
|
|
804
|
+
const xe = a(r(ge ? "editTitle" : "title")), e = D.length > 0, i = J.length > 0, h = be || Z.length > 0, u = Fe(
|
|
805
805
|
() => D.map((t) => ({ value: t.id, label: t.label })),
|
|
806
806
|
[D]
|
|
807
807
|
), g = (t) => {
|
|
808
808
|
var v;
|
|
809
809
|
return (N == null ? void 0 : N(t)) ?? ((v = Z.find((K) => K.id === t)) == null ? void 0 : v.name) ?? ue.get(t) ?? (t === (f == null ? void 0 : f.patientId) ? se : void 0) ?? a("calendarWorkspace.details.patientNotLoaded");
|
|
810
|
-
}, W = (t) => t === (f == null ? void 0 : f.operatorId) && q ? q : a(r("operatorUnresolved"), { id: t }),
|
|
810
|
+
}, W = (t) => t === (f == null ? void 0 : f.operatorId) && q ? q : a(r("operatorUnresolved"), { id: t }), bt = [
|
|
811
811
|
{ value: z, label: a(r("operatorNone")) },
|
|
812
812
|
...J.map((t) => ({ value: t.id, label: t.label })),
|
|
813
813
|
/* An operator the roster no longer lists is still a real link, so it
|
|
@@ -818,11 +818,11 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
818
818
|
label: W(l.operatorId)
|
|
819
819
|
}
|
|
820
820
|
] : []
|
|
821
|
-
],
|
|
821
|
+
], yt = C.some((t) => t.custom) && C.some((t) => !t.custom), It = [
|
|
822
822
|
...C.map((t) => ({
|
|
823
823
|
value: t.id,
|
|
824
824
|
label: t.label,
|
|
825
|
-
group:
|
|
825
|
+
group: yt ? a(r(t.custom ? "typeGroupCustom" : "typeGroupStandard")) : void 0
|
|
826
826
|
})),
|
|
827
827
|
/* An id the list no longer resolves is still a real link: offered as
|
|
828
828
|
its own option so Save re-sends it. */
|
|
@@ -841,17 +841,17 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
841
841
|
label: a(r("assigneeUnresolved"), { id: l.assigneeId })
|
|
842
842
|
}
|
|
843
843
|
] : []
|
|
844
|
-
], re = l.about === "company" && l.companyId && !D.some((t) => t.id === l.companyId) ? l.companyId : void 0, Et = re && re === (f == null ? void 0 : f.companyId) && ee ? ee : a(r("companyUnresolved"), { id: re }), Xe = /* @__PURE__ */ k(M, { variant: "info", announce: "off", icon: /* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
/* @__PURE__ */
|
|
844
|
+
], re = l.about === "company" && l.companyId && !D.some((t) => t.id === l.companyId) ? l.companyId : void 0, Et = re && re === (f == null ? void 0 : f.companyId) && ee ? ee : a(r("companyUnresolved"), { id: re }), Xe = /* @__PURE__ */ k(M, { variant: "info", announce: "off", icon: /* @__PURE__ */ n(Qt, { "aria-hidden": "true" }), children: [
|
|
845
|
+
/* @__PURE__ */ n(M.Title, { as: "p", children: a("calendarWorkspace.details.readOnlyTitle") }),
|
|
846
|
+
/* @__PURE__ */ n(M.Description, { children: a(r("readOnlyBody")) })
|
|
847
847
|
] }), qe = s.saving || s.deleting, Je = () => {
|
|
848
848
|
d.isBusy() || m();
|
|
849
|
-
}, kt = /* @__PURE__ */
|
|
849
|
+
}, kt = /* @__PURE__ */ n(
|
|
850
850
|
We,
|
|
851
851
|
{
|
|
852
852
|
size: "sm",
|
|
853
853
|
intent: "outline",
|
|
854
|
-
icon: /* @__PURE__ */
|
|
854
|
+
icon: /* @__PURE__ */ n(Yt, { "aria-hidden": "true" }),
|
|
855
855
|
"aria-label": a(r("cancel")),
|
|
856
856
|
tooltip: a(r("cancel")),
|
|
857
857
|
"data-action": "cancel-task",
|
|
@@ -859,13 +859,13 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
859
859
|
onClick: Je
|
|
860
860
|
}
|
|
861
861
|
), Ve = s.saving || s.accepted, Ze = (t) => /* @__PURE__ */ k(De, { children: [
|
|
862
|
-
t && d.showDelete ? /* @__PURE__ */
|
|
862
|
+
t && d.showDelete ? /* @__PURE__ */ n(
|
|
863
863
|
We,
|
|
864
864
|
{
|
|
865
865
|
ref: Se,
|
|
866
866
|
size: "sm",
|
|
867
867
|
intent: "destructiveOutline",
|
|
868
|
-
icon: /* @__PURE__ */
|
|
868
|
+
icon: /* @__PURE__ */ n(dt, { "aria-hidden": "true" }),
|
|
869
869
|
"aria-label": a(r("delete")),
|
|
870
870
|
tooltip: a(r("delete")),
|
|
871
871
|
"data-action": "delete-task",
|
|
@@ -881,18 +881,18 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
881
881
|
className: "ds:ms-auto",
|
|
882
882
|
children: [
|
|
883
883
|
kt,
|
|
884
|
-
t && d.showSave ? /* @__PURE__ */
|
|
884
|
+
t && d.showSave ? /* @__PURE__ */ n(
|
|
885
885
|
We,
|
|
886
886
|
{
|
|
887
887
|
size: "sm",
|
|
888
888
|
intent: "primary",
|
|
889
|
-
icon: s.saving ? /* @__PURE__ */
|
|
890
|
-
|
|
889
|
+
icon: s.saving ? /* @__PURE__ */ n(
|
|
890
|
+
en,
|
|
891
891
|
{
|
|
892
892
|
"aria-hidden": "true",
|
|
893
893
|
className: "ds:animate-spin ds:motion-reduce:animate-none"
|
|
894
894
|
}
|
|
895
|
-
) : /* @__PURE__ */
|
|
895
|
+
) : /* @__PURE__ */ n(an, { "aria-hidden": "true" }),
|
|
896
896
|
"aria-label": a(r("save")),
|
|
897
897
|
tooltip: a(r("save")),
|
|
898
898
|
disabled: !Ve && !d.canSave,
|
|
@@ -909,24 +909,24 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
909
909
|
),
|
|
910
910
|
t && d.showSave ? (
|
|
911
911
|
/* Out of flow, so it never moves the footer's two ends. */
|
|
912
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: s.saving ? a(r("saving")) : "" })
|
|
913
913
|
) : null
|
|
914
914
|
] }), St = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
|
|
915
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("common.loading") }),
|
|
916
916
|
/* @__PURE__ */ k(
|
|
917
917
|
"div",
|
|
918
918
|
{
|
|
919
919
|
"aria-hidden": "true",
|
|
920
920
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
921
921
|
children: [
|
|
922
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ n(
|
|
923
923
|
He,
|
|
924
924
|
{
|
|
925
925
|
variant: "rounded",
|
|
926
926
|
height: "calc(var(--spacing-xl) + var(--spacing-sm))"
|
|
927
927
|
}
|
|
928
928
|
),
|
|
929
|
-
/* @__PURE__ */
|
|
929
|
+
/* @__PURE__ */ n(
|
|
930
930
|
He,
|
|
931
931
|
{
|
|
932
932
|
variant: "rounded",
|
|
@@ -934,7 +934,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
934
934
|
stagger: 1
|
|
935
935
|
}
|
|
936
936
|
),
|
|
937
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ n(
|
|
938
938
|
He,
|
|
939
939
|
{
|
|
940
940
|
variant: "rounded",
|
|
@@ -946,8 +946,8 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
946
946
|
}
|
|
947
947
|
)
|
|
948
948
|
] }), xt = /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: d.loadError }) }),
|
|
950
|
+
/* @__PURE__ */ n(
|
|
951
951
|
Me,
|
|
952
952
|
{
|
|
953
953
|
ref: de,
|
|
@@ -957,8 +957,8 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
957
957
|
children: a("emptyState.error.cta")
|
|
958
958
|
}
|
|
959
959
|
)
|
|
960
|
-
] }), Ct = /* @__PURE__ */
|
|
961
|
-
|
|
960
|
+
] }), Ct = /* @__PURE__ */ n("fieldset", { disabled: !0, className: mt({ layout: "notice" }), children: Xe }), Dt = () => l.about !== "patient" ? null : T ? /* @__PURE__ */ n(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ n(Oe, { value: Kt(), disabled: !0, readOnly: !0 }) }) : h ? /* @__PURE__ */ n(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ n(
|
|
961
|
+
dn,
|
|
962
962
|
{
|
|
963
963
|
value: l.patientId,
|
|
964
964
|
onValueChange: (t) => d.patchFields({ patientId: t }),
|
|
@@ -966,31 +966,31 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
966
966
|
searchPatients: j,
|
|
967
967
|
selectedLabel: l.patientId ? g(l.patientId) : void 0,
|
|
968
968
|
placeholder: a("calendarWorkspace.editor.patientSearch"),
|
|
969
|
-
disabled:
|
|
969
|
+
disabled: oe
|
|
970
970
|
}
|
|
971
|
-
) }) : l.patientId ? /* @__PURE__ */
|
|
972
|
-
|
|
973
|
-
/* @__PURE__ */
|
|
971
|
+
) }) : l.patientId ? /* @__PURE__ */ n(H, { label: a(r("aboutPatient")), children: /* @__PURE__ */ n(Oe, { value: g(l.patientId), disabled: !0, readOnly: !0 }) }) : null, et = /* @__PURE__ */ k("fieldset", { disabled: oe, className: mt(), children: [
|
|
972
|
+
oe ? Xe : null,
|
|
973
|
+
/* @__PURE__ */ n(H, { label: a(r("date")), children: /* @__PURE__ */ n(
|
|
974
974
|
Bt,
|
|
975
975
|
{
|
|
976
976
|
value: l.date,
|
|
977
977
|
onChange: (t) => d.patchFields({ date: t })
|
|
978
978
|
}
|
|
979
979
|
) }),
|
|
980
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ n(H, { label: a(r("time")), children: /* @__PURE__ */ n(
|
|
981
981
|
qt,
|
|
982
982
|
{
|
|
983
983
|
value: l.time,
|
|
984
984
|
onChange: (t) => d.patchFields({ time: t })
|
|
985
985
|
}
|
|
986
986
|
) }),
|
|
987
|
-
/* @__PURE__ */
|
|
987
|
+
/* @__PURE__ */ n(
|
|
988
988
|
H,
|
|
989
989
|
{
|
|
990
990
|
label: a(r("note")),
|
|
991
991
|
required: !0,
|
|
992
992
|
error: s.showError && l.note.trim() === "" ? a(r("noteRequired")) : void 0,
|
|
993
|
-
children: /* @__PURE__ */
|
|
993
|
+
children: /* @__PURE__ */ n(
|
|
994
994
|
zt,
|
|
995
995
|
{
|
|
996
996
|
value: l.note,
|
|
@@ -1003,7 +1003,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1003
1003
|
)
|
|
1004
1004
|
}
|
|
1005
1005
|
),
|
|
1006
|
-
C.length > 0 ? /* @__PURE__ */
|
|
1006
|
+
C.length > 0 ? /* @__PURE__ */ n(H, { label: a(r("type")), required: !0, children: /* @__PURE__ */ n(
|
|
1007
1007
|
Ke,
|
|
1008
1008
|
{
|
|
1009
1009
|
options: It,
|
|
@@ -1011,7 +1011,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1011
1011
|
onValueChange: (t) => t && d.patchFields({ typeId: t })
|
|
1012
1012
|
}
|
|
1013
1013
|
) }) : null,
|
|
1014
|
-
X.length > 0 ? /* @__PURE__ */
|
|
1014
|
+
X.length > 0 ? /* @__PURE__ */ n(H, { label: a(r("assignee")), children: /* @__PURE__ */ n(
|
|
1015
1015
|
Ke,
|
|
1016
1016
|
{
|
|
1017
1017
|
options: wt,
|
|
@@ -1024,40 +1024,40 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1024
1024
|
{
|
|
1025
1025
|
label: a(r("about")),
|
|
1026
1026
|
variant: "segmented",
|
|
1027
|
-
className:
|
|
1027
|
+
className: sn,
|
|
1028
1028
|
value: l.about,
|
|
1029
1029
|
onValueChange: (t) => d.patchFields({ about: t }),
|
|
1030
1030
|
children: [
|
|
1031
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ n(
|
|
1032
1032
|
Pe,
|
|
1033
1033
|
{
|
|
1034
1034
|
value: "nobody",
|
|
1035
1035
|
label: a(r("aboutNobody")),
|
|
1036
|
-
icon: /* @__PURE__ */
|
|
1036
|
+
icon: /* @__PURE__ */ n(nn, { "aria-hidden": "true" })
|
|
1037
1037
|
}
|
|
1038
1038
|
),
|
|
1039
|
-
h || l.about === "patient" || f != null && f.patientId ? /* @__PURE__ */
|
|
1039
|
+
h || l.about === "patient" || f != null && f.patientId ? /* @__PURE__ */ n(
|
|
1040
1040
|
Pe,
|
|
1041
1041
|
{
|
|
1042
1042
|
value: "patient",
|
|
1043
1043
|
label: a(r("aboutPatient")),
|
|
1044
|
-
icon: /* @__PURE__ */
|
|
1044
|
+
icon: /* @__PURE__ */ n(Xt, { "aria-hidden": "true" })
|
|
1045
1045
|
}
|
|
1046
1046
|
) : null,
|
|
1047
|
-
e || l.about === "company" || f != null && f.companyId ? /* @__PURE__ */
|
|
1047
|
+
e || l.about === "company" || f != null && f.companyId ? /* @__PURE__ */ n(
|
|
1048
1048
|
Pe,
|
|
1049
1049
|
{
|
|
1050
1050
|
value: "company",
|
|
1051
1051
|
label: a(r("aboutCompany")),
|
|
1052
|
-
icon: /* @__PURE__ */
|
|
1052
|
+
icon: /* @__PURE__ */ n(Jt, { "aria-hidden": "true" })
|
|
1053
1053
|
}
|
|
1054
1054
|
) : null,
|
|
1055
|
-
i || l.about === "operator" || f != null && f.operatorId ? /* @__PURE__ */
|
|
1055
|
+
i || l.about === "operator" || f != null && f.operatorId ? /* @__PURE__ */ n(
|
|
1056
1056
|
Pe,
|
|
1057
1057
|
{
|
|
1058
1058
|
value: "operator",
|
|
1059
1059
|
label: a(r("aboutOperator")),
|
|
1060
|
-
icon: /* @__PURE__ */
|
|
1060
|
+
icon: /* @__PURE__ */ n(Zt, { "aria-hidden": "true" })
|
|
1061
1061
|
}
|
|
1062
1062
|
) : null
|
|
1063
1063
|
]
|
|
@@ -1065,21 +1065,21 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1065
1065
|
),
|
|
1066
1066
|
Dt(),
|
|
1067
1067
|
l.about === "company" ? /* @__PURE__ */ k(De, { children: [
|
|
1068
|
-
re ? /* @__PURE__ */
|
|
1069
|
-
e ? /* @__PURE__ */
|
|
1068
|
+
re ? /* @__PURE__ */ n(H, { label: a(r("companyName")), children: /* @__PURE__ */ n(Oe, { value: Et, disabled: !0, readOnly: !0 }) }) : null,
|
|
1069
|
+
e ? /* @__PURE__ */ n(
|
|
1070
1070
|
H,
|
|
1071
1071
|
{
|
|
1072
1072
|
label: a(
|
|
1073
1073
|
r(re ? "companyReplace" : "companyName")
|
|
1074
1074
|
),
|
|
1075
|
-
children: /* @__PURE__ */
|
|
1075
|
+
children: /* @__PURE__ */ n(
|
|
1076
1076
|
Qe,
|
|
1077
1077
|
{
|
|
1078
1078
|
options: u,
|
|
1079
1079
|
value: re ? "" : l.companyId,
|
|
1080
1080
|
onValueChange: (t) => re ? t && d.patchFields({ companyId: t }) : d.patchFields({ companyId: t }),
|
|
1081
|
-
clearable: !re && !
|
|
1082
|
-
filter:
|
|
1081
|
+
clearable: !re && !oe,
|
|
1082
|
+
filter: hn,
|
|
1083
1083
|
placeholder: a(r("companySearch")),
|
|
1084
1084
|
"aria-label": a(
|
|
1085
1085
|
r(re ? "companyReplace" : "companyName")
|
|
@@ -1089,16 +1089,16 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
) : null
|
|
1091
1091
|
] }) : null,
|
|
1092
|
-
l.about === "operator" ? i ? /* @__PURE__ */
|
|
1092
|
+
l.about === "operator" ? i ? /* @__PURE__ */ n(H, { label: a(r("operator")), children: /* @__PURE__ */ n(
|
|
1093
1093
|
Ke,
|
|
1094
1094
|
{
|
|
1095
|
-
options:
|
|
1095
|
+
options: bt,
|
|
1096
1096
|
value: l.operatorId,
|
|
1097
1097
|
onValueChange: (t) => t && d.patchFields({ operatorId: t })
|
|
1098
1098
|
}
|
|
1099
1099
|
) }) : l.operatorId !== z ? (
|
|
1100
1100
|
/* No roster to pick from: name the link read-only. */
|
|
1101
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ n(H, { label: a(r("operator")), children: /* @__PURE__ */ n(
|
|
1102
1102
|
Oe,
|
|
1103
1103
|
{
|
|
1104
1104
|
value: W(l.operatorId),
|
|
@@ -1108,7 +1108,7 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1108
1108
|
) })
|
|
1109
1109
|
) : null : null,
|
|
1110
1110
|
d.showDone ? /* @__PURE__ */ k(De, { children: [
|
|
1111
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ n(
|
|
1112
1112
|
$t,
|
|
1113
1113
|
{
|
|
1114
1114
|
label: a(r("done")),
|
|
@@ -1122,16 +1122,16 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
),
|
|
1125
|
-
s.doneError ? /* @__PURE__ */
|
|
1125
|
+
s.doneError ? /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.doneError }) }) : null
|
|
1126
1126
|
] }) : null,
|
|
1127
|
-
s.saveError ? /* @__PURE__ */
|
|
1128
|
-
s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */
|
|
1129
|
-
] }), tt = R === "loading" ? St : R === "error" ? xt : R === "locked" ? Ct : R === "withheld" ? /* @__PURE__ */
|
|
1127
|
+
s.saveError ? /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.saveError }) }) : null,
|
|
1128
|
+
s.deleteError && !s.confirmDeleteOpen ? /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.deleteError }) }) : null
|
|
1129
|
+
] }), tt = R === "loading" ? St : R === "error" ? xt : R === "locked" ? Ct : R === "withheld" ? /* @__PURE__ */ n(
|
|
1130
1130
|
Ht,
|
|
1131
1131
|
{
|
|
1132
1132
|
onTurnOff: fe ? _e(fe) : void 0
|
|
1133
1133
|
}
|
|
1134
|
-
) : ae ? et : /* @__PURE__ */
|
|
1134
|
+
) : ae ? et : /* @__PURE__ */ n(Mt, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: et }), Le = R === "ready" ? Ze(!0) : R === "locked" || R === "withheld" ? Ze(!1) : null, Nt = R === "ready" && d.showDelete, nt = ge ? /* @__PURE__ */ n(
|
|
1135
1135
|
ce,
|
|
1136
1136
|
{
|
|
1137
1137
|
open: s.confirmDeleteOpen && _,
|
|
@@ -1151,17 +1151,17 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1151
1151
|
},
|
|
1152
1152
|
children: [
|
|
1153
1153
|
/* @__PURE__ */ k(ce.Header, { children: [
|
|
1154
|
-
/* @__PURE__ */
|
|
1155
|
-
/* @__PURE__ */
|
|
1154
|
+
/* @__PURE__ */ n(ce.Title, { children: a(r("deleteConfirmTitle")) }),
|
|
1155
|
+
/* @__PURE__ */ n(ce.Description, { children: a(r("deleteConfirmBody")) })
|
|
1156
1156
|
] }),
|
|
1157
|
-
s.deleteError ? /* @__PURE__ */
|
|
1157
|
+
s.deleteError ? /* @__PURE__ */ n(ce.Body, { children: /* @__PURE__ */ n(M, { variant: "error", children: /* @__PURE__ */ n(M.Description, { children: s.deleteError }) }) }) : null,
|
|
1158
1158
|
/* @__PURE__ */ k(ce.Footer, { divider: !0, children: [
|
|
1159
|
-
/* @__PURE__ */
|
|
1160
|
-
/* @__PURE__ */
|
|
1159
|
+
/* @__PURE__ */ n(ce.Close, { asChild: !0, children: /* @__PURE__ */ n(Me, { intent: "outline", "aria-disabled": s.deleting || void 0, children: a(r("deleteCancel")) }) }),
|
|
1160
|
+
/* @__PURE__ */ n(
|
|
1161
1161
|
Me,
|
|
1162
1162
|
{
|
|
1163
1163
|
intent: "destructive",
|
|
1164
|
-
startIcon: /* @__PURE__ */
|
|
1164
|
+
startIcon: /* @__PURE__ */ n(dt, { "aria-hidden": "true" }),
|
|
1165
1165
|
"aria-disabled": s.deleting || void 0,
|
|
1166
1166
|
"aria-busy": s.deleting || void 0,
|
|
1167
1167
|
onClick: () => {
|
|
@@ -1175,68 +1175,68 @@ const pt = ht("ds:flex ds:min-h-0 ds:flex-col", {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
)
|
|
1177
1177
|
}
|
|
1178
|
-
) : null,
|
|
1178
|
+
) : null, ot = {
|
|
1179
1179
|
"data-component": "task-editor",
|
|
1180
1180
|
"data-component-id": he,
|
|
1181
1181
|
"data-variant": B,
|
|
1182
1182
|
"data-status": R
|
|
1183
1183
|
};
|
|
1184
1184
|
return ae ? /* @__PURE__ */ k(De, { children: [
|
|
1185
|
-
/* @__PURE__ */
|
|
1185
|
+
/* @__PURE__ */ n(
|
|
1186
1186
|
Ot,
|
|
1187
1187
|
{
|
|
1188
1188
|
...Ee,
|
|
1189
1189
|
"data-component-id": he,
|
|
1190
1190
|
"data-variant": B,
|
|
1191
1191
|
"data-status": R,
|
|
1192
|
-
ref:
|
|
1192
|
+
ref: ye,
|
|
1193
1193
|
open: A,
|
|
1194
1194
|
onBack: Je,
|
|
1195
1195
|
onExited: Y,
|
|
1196
1196
|
title: xe,
|
|
1197
|
-
icon: /* @__PURE__ */
|
|
1197
|
+
icon: /* @__PURE__ */ n(ct, { "aria-hidden": "true" }),
|
|
1198
1198
|
backLabel: P ?? a(r("back")),
|
|
1199
1199
|
footer: Le,
|
|
1200
1200
|
footerAlign: Nt ? "between" : "end",
|
|
1201
1201
|
className: G,
|
|
1202
|
-
children: /* @__PURE__ */
|
|
1202
|
+
children: /* @__PURE__ */ n("div", { ...ot, className: pt({ variant: B }), children: tt })
|
|
1203
1203
|
}
|
|
1204
1204
|
),
|
|
1205
|
-
|
|
1205
|
+
nt
|
|
1206
1206
|
] }) : /* @__PURE__ */ k(De, { children: [
|
|
1207
1207
|
/* @__PURE__ */ k(
|
|
1208
1208
|
"div",
|
|
1209
1209
|
{
|
|
1210
1210
|
tabIndex: -1,
|
|
1211
1211
|
...Ee,
|
|
1212
|
-
...
|
|
1213
|
-
ref:
|
|
1212
|
+
...ot,
|
|
1213
|
+
ref: ye,
|
|
1214
1214
|
className: pt({ variant: B, className: G }),
|
|
1215
1215
|
children: [
|
|
1216
|
-
/* @__PURE__ */
|
|
1216
|
+
/* @__PURE__ */ n(
|
|
1217
1217
|
Pt,
|
|
1218
1218
|
{
|
|
1219
1219
|
title: xe,
|
|
1220
|
-
icon: /* @__PURE__ */
|
|
1220
|
+
icon: /* @__PURE__ */ n(ct, { "aria-hidden": "true" }),
|
|
1221
1221
|
sticky: !0,
|
|
1222
1222
|
divider: !0
|
|
1223
1223
|
}
|
|
1224
1224
|
),
|
|
1225
1225
|
tt,
|
|
1226
|
-
Le ? /* @__PURE__ */
|
|
1226
|
+
Le ? /* @__PURE__ */ n("div", { className: "ds:relative ds:z-[var(--z-sticky)] ds:shrink-0 ds:border-t ds:border-[color:var(--border)] ds:bg-[var(--background)]", children: /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: Le }) }) : null
|
|
1227
1227
|
]
|
|
1228
1228
|
}
|
|
1229
1229
|
),
|
|
1230
|
-
|
|
1230
|
+
nt
|
|
1231
1231
|
] });
|
|
1232
1232
|
}
|
|
1233
1233
|
);
|
|
1234
|
-
|
|
1234
|
+
vn.displayName = "TaskEditor";
|
|
1235
1235
|
export {
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1236
|
+
rn as E,
|
|
1237
|
+
dn as P,
|
|
1238
|
+
an as S,
|
|
1239
|
+
vn as T,
|
|
1240
|
+
ln as t
|
|
1241
1241
|
};
|
|
1242
|
-
//# sourceMappingURL=task-editor-
|
|
1242
|
+
//# sourceMappingURL=task-editor-BTeUFGUX.js.map
|