@alfadocs/ui-kit-debug 1.4.5 → 1.4.7
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-Ceah0ywE.js → actions-cell-renderer-C67oj7mR.js} +6 -6
- package/dist/_chunks/{actions-cell-renderer-Ceah0ywE.js.map → actions-cell-renderer-C67oj7mR.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-CVf-jfWU.js → agenda-tray-CG6FuccE.js} +3 -3
- package/dist/_chunks/{agenda-tray-CVf-jfWU.js.map → agenda-tray-CG6FuccE.js.map} +1 -1
- package/dist/_chunks/{ai-consent-banner-BUKKPDTg.js → ai-consent-banner-CpF_rbG9.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-BUKKPDTg.js.map → ai-consent-banner-CpF_rbG9.js.map} +1 -1
- package/dist/_chunks/{ai-prompt-input-DziJCGLe.js → ai-prompt-input-BgAubYKd.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DziJCGLe.js.map → ai-prompt-input-BgAubYKd.js.map} +1 -1
- package/dist/_chunks/{alia-sidebar-DSBZMick.js → alia-sidebar-Bg53-ZOT.js} +7 -7
- package/dist/_chunks/{alia-sidebar-DSBZMick.js.map → alia-sidebar-Bg53-ZOT.js.map} +1 -1
- package/dist/_chunks/{anamnesis-card-CJ5MNbkc.js → anamnesis-card-C4FVp9wO.js} +2 -2
- package/dist/_chunks/{anamnesis-card-CJ5MNbkc.js.map → anamnesis-card-C4FVp9wO.js.map} +1 -1
- package/dist/_chunks/anamnesis-summary-card-BvaSnAbI.js +302 -0
- package/dist/_chunks/anamnesis-summary-card-BvaSnAbI.js.map +1 -0
- package/dist/_chunks/{anamnesis-i18n-BiZeub0o.js → anamnesis-summary-rows-D7v_JyGo.js} +2477 -2352
- package/dist/_chunks/anamnesis-summary-rows-D7v_JyGo.js.map +1 -0
- package/dist/_chunks/{appointment-timeline-Bqf1sTU5.js → appointment-timeline-CUijZCxZ.js} +4 -4
- package/dist/_chunks/{appointment-timeline-Bqf1sTU5.js.map → appointment-timeline-CUijZCxZ.js.map} +1 -1
- package/dist/_chunks/{appointment-tray-ezyCZN8v.js → appointment-tray-B1aUk46V.js} +3 -3
- package/dist/_chunks/{appointment-tray-ezyCZN8v.js.map → appointment-tray-B1aUk46V.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-BSuKNrmd.js → audio-recorder-nVRN4PSK.js} +3 -3
- package/dist/_chunks/{audio-recorder-BSuKNrmd.js.map → audio-recorder-nVRN4PSK.js.map} +1 -1
- package/dist/_chunks/{bishop-score-DDW5-gb9.js → bishop-score-Bpe20Ctl.js} +2 -2
- package/dist/_chunks/{bishop-score-DDW5-gb9.js.map → bishop-score-Bpe20Ctl.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-CpyY13MV.js → bmi-calculator-DF5bNsDD.js} +2 -2
- package/dist/_chunks/{bmi-calculator-CpyY13MV.js.map → bmi-calculator-DF5bNsDD.js.map} +1 -1
- package/dist/_chunks/{booking-BjsA7j1-.js → booking-BHziT711.js} +5 -5
- package/dist/_chunks/{booking-BjsA7j1-.js.map → booking-BHziT711.js.map} +1 -1
- package/dist/_chunks/{button-CPGiR_bH.js → button-BvNtqHAS.js} +6 -2
- package/dist/_chunks/button-BvNtqHAS.js.map +1 -0
- package/dist/_chunks/{button-group-DzV5wgnx.js → button-group-Be_In68J.js} +2 -2
- package/dist/_chunks/{button-group-DzV5wgnx.js.map → button-group-Be_In68J.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-BvQy366X.js → care-plan-card-DiyK3Eys.js} +2 -2
- package/dist/_chunks/{care-plan-card-BvQy366X.js.map → care-plan-card-DiyK3Eys.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-apk_5B3O.js → care-plan-entry-card-6du8PYVk.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-apk_5B3O.js.map → care-plan-entry-card-6du8PYVk.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-BXvRpGG8.js → care-plan-header-BWvDvly-.js} +2 -2
- package/dist/_chunks/{care-plan-header-BXvRpGG8.js.map → care-plan-header-BWvDvly-.js.map} +1 -1
- package/dist/_chunks/{carousel.agent-CtAAdsAd.js → carousel.agent-pjORsMS8.js} +2 -2
- package/dist/_chunks/{carousel.agent-CtAAdsAd.js.map → carousel.agent-pjORsMS8.js.map} +1 -1
- package/dist/_chunks/{chart-DR68TJD5.js → chart-Y-gso_Uz.js} +3 -3
- package/dist/_chunks/{chart-DR68TJD5.js.map → chart-Y-gso_Uz.js.map} +1 -1
- package/dist/_chunks/{chat-input-QpHxBEnN.js → chat-input-BqI9GXQh.js} +2 -2
- package/dist/_chunks/{chat-input-QpHxBEnN.js.map → chat-input-BqI9GXQh.js.map} +1 -1
- package/dist/_chunks/{chat-message-CdjWqZjo.js → chat-message-DHNUbjXA.js} +3 -3
- package/dist/_chunks/{chat-message-CdjWqZjo.js.map → chat-message-DHNUbjXA.js.map} +1 -1
- package/dist/_chunks/{code-block-BwanBjRh.js → code-block-BONe9fJi.js} +2 -2
- package/dist/_chunks/{code-block-BwanBjRh.js.map → code-block-BONe9fJi.js.map} +1 -1
- package/dist/_chunks/{connection-status-oEUyrvev.js → connection-status-Bi4Hwpd1.js} +3 -3
- package/dist/_chunks/{connection-status-oEUyrvev.js.map → connection-status-Bi4Hwpd1.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-veMV3W4J.js → contact-profile-card-CGS_NABR.js} +2 -2
- package/dist/_chunks/{contact-profile-card-veMV3W4J.js.map → contact-profile-card-CGS_NABR.js.map} +1 -1
- package/dist/_chunks/{control-room-rail-CdfrZ6Vr.js → control-room-rail-DDyPDBji.js} +3 -3
- package/dist/_chunks/{control-room-rail-CdfrZ6Vr.js.map → control-room-rail-DDyPDBji.js.map} +1 -1
- package/dist/_chunks/{copy-field-DBc9QquW.js → copy-field-B-DoMBH_.js} +2 -2
- package/dist/_chunks/{copy-field-DBc9QquW.js.map → copy-field-B-DoMBH_.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-B7fyH-h4.js → cycle-calculator-Bd4_fJhq.js} +2 -2
- package/dist/_chunks/{cycle-calculator-B7fyH-h4.js.map → cycle-calculator-Bd4_fJhq.js.map} +1 -1
- package/dist/_chunks/{dashboard-grid-D2dm0IRN.js → dashboard-grid-bd0QW2a8.js} +2 -2
- package/dist/_chunks/{dashboard-grid-D2dm0IRN.js.map → dashboard-grid-bd0QW2a8.js.map} +1 -1
- package/dist/_chunks/{data-table-tabs-BEUXiRlu.js → data-table-tabs-C8uDThT3.js} +3 -3
- package/dist/_chunks/{data-table-tabs-BEUXiRlu.js.map → data-table-tabs-C8uDThT3.js.map} +1 -1
- package/dist/_chunks/{description-list-ClNLdRMy.js → description-list-Ck7fKdt5.js} +2 -2
- package/dist/_chunks/{description-list-ClNLdRMy.js.map → description-list-Ck7fKdt5.js.map} +1 -1
- package/dist/_chunks/{document-preview-DOrsqiN1.js → document-preview-DuMzmupZ.js} +2 -2
- package/dist/_chunks/{document-preview-DOrsqiN1.js.map → document-preview-DuMzmupZ.js.map} +1 -1
- package/dist/_chunks/{document-scanner-D8ASqxif.js → document-scanner-qNZLhH_r.js} +2 -2
- package/dist/_chunks/{document-scanner-D8ASqxif.js.map → document-scanner-qNZLhH_r.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-CnkbbAej.js → due-date-calculator-Do67C-Z-.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CnkbbAej.js.map → due-date-calculator-Do67C-Z-.js.map} +1 -1
- package/dist/_chunks/{editable-currency-cell-renderer-Uhzkd0ZP.js → editable-currency-cell-renderer-DyMbSyDK.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-Uhzkd0ZP.js.map → editable-currency-cell-renderer-DyMbSyDK.js.map} +1 -1
- package/dist/_chunks/{editor-overlay-B1tr2i7B.js → editor-overlay-DE-gxj9L.js} +2 -2
- package/dist/_chunks/{editor-overlay-B1tr2i7B.js.map → editor-overlay-DE-gxj9L.js.map} +1 -1
- package/dist/_chunks/{empty-state-CrLsi0XI.js → empty-state-Df0tM6Kn.js} +2 -2
- package/dist/_chunks/{empty-state-CrLsi0XI.js.map → empty-state-Df0tM6Kn.js.map} +1 -1
- package/dist/_chunks/{entity-summary-C6lL3seQ.js → entity-summary-DBOI5di6.js} +3 -3
- package/dist/_chunks/{entity-summary-C6lL3seQ.js.map → entity-summary-DBOI5di6.js.map} +1 -1
- package/dist/_chunks/{face-scheme-C00IvkUA.js → face-scheme-D7Pub04e.js} +5 -5
- package/dist/_chunks/{face-scheme-C00IvkUA.js.map → face-scheme-D7Pub04e.js.map} +1 -1
- package/dist/_chunks/{fetal-weight-avlj-l-S.js → fetal-weight-DHxXx7Uz.js} +2 -2
- package/dist/_chunks/{fetal-weight-avlj-l-S.js.map → fetal-weight-DHxXx7Uz.js.map} +1 -1
- package/dist/_chunks/{field-array-DH3Mb1i8.js → field-array-BQFX5OYi.js} +3 -3
- package/dist/_chunks/{field-array-DH3Mb1i8.js.map → field-array-BQFX5OYi.js.map} +1 -1
- package/dist/_chunks/{field-value-BRVbZJej.js → field-value-C5A4t4OE.js} +4 -4
- package/dist/_chunks/{field-value-BRVbZJej.js.map → field-value-C5A4t4OE.js.map} +1 -1
- package/dist/_chunks/{file-manager-lNjcSXoD.js → file-manager-BY6FdHAt.js} +6 -6
- package/dist/_chunks/{file-manager-lNjcSXoD.js.map → file-manager-BY6FdHAt.js.map} +1 -1
- package/dist/_chunks/{finished-terminal-C0_mefrf.js → finished-terminal-BWNVh7Y8.js} +2 -2
- package/dist/_chunks/{finished-terminal-C0_mefrf.js.map → finished-terminal-BWNVh7Y8.js.map} +1 -1
- package/dist/_chunks/{fiscal-code-input-QP9gkyDE.js → fiscal-code-input-Nx1N9r72.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-QP9gkyDE.js.map → fiscal-code-input-Nx1N9r72.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-DRDdWuOg.js → freemium-paywall-HG3pFvMp.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DRDdWuOg.js.map → freemium-paywall-HG3pFvMp.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-BljY_DVJ.js → gestational-age-calculator-CMhOtFE_.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BljY_DVJ.js.map → gestational-age-calculator-CMhOtFE_.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-Cv_vH61p.js → hcg-doubling-DNG9Q2go.js} +2 -2
- package/dist/_chunks/{hcg-doubling-Cv_vH61p.js.map → hcg-doubling-DNG9Q2go.js.map} +1 -1
- package/dist/_chunks/{header-CjwasYnn.js → header-CimZS-J9.js} +2 -2
- package/dist/_chunks/{header-CjwasYnn.js.map → header-CimZS-J9.js.map} +1 -1
- package/dist/_chunks/{header-settings-Cn5fPXCE.js → header-settings-C0zHLXJE.js} +4 -4
- package/dist/_chunks/{header-settings-Cn5fPXCE.js.map → header-settings-C0zHLXJE.js.map} +1 -1
- package/dist/_chunks/{icon-button-C_kbcd7I.js → icon-button-9c9Gp41m.js} +2 -2
- package/dist/_chunks/{icon-button-C_kbcd7I.js.map → icon-button-9c9Gp41m.js.map} +1 -1
- package/dist/_chunks/{icon-button-group-BLHPN6jg.js → icon-button-group-DrvuWPGJ.js} +2 -2
- package/dist/_chunks/{icon-button-group-BLHPN6jg.js.map → icon-button-group-DrvuWPGJ.js.map} +1 -1
- package/dist/_chunks/{icon-picker-CM9ubkew.js → icon-picker-DXV3sDp1.js} +3 -3
- package/dist/_chunks/{icon-picker-CM9ubkew.js.map → icon-picker-DXV3sDp1.js.map} +1 -1
- package/dist/_chunks/{image-cropper-DKe4AORY.js → image-cropper-DWSnyLwW.js} +2 -2
- package/dist/_chunks/{image-cropper-DKe4AORY.js.map → image-cropper-DWSnyLwW.js.map} +1 -1
- package/dist/_chunks/{info-tip-Bxk3w6UM.js → info-tip-C4mPSJbS.js} +2 -2
- package/dist/_chunks/{info-tip-Bxk3w6UM.js.map → info-tip-C4mPSJbS.js.map} +1 -1
- package/dist/_chunks/{insert-result-D074GtHX.js → insert-result-98J1QEp7.js} +2 -2
- package/dist/_chunks/{insert-result-D074GtHX.js.map → insert-result-98J1QEp7.js.map} +1 -1
- package/dist/_chunks/{key-value-pair-LHKfDT_9.js → key-value-pair-DGkGlgCF.js} +2 -2
- package/dist/_chunks/{key-value-pair-LHKfDT_9.js.map → key-value-pair-DGkGlgCF.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-CJ_gk7gl.js → link-cell-renderer-DIKlJhEq.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-CJ_gk7gl.js.map → link-cell-renderer-DIKlJhEq.js.map} +1 -1
- package/dist/_chunks/{locale-picker-D9Kv2zrK.js → locale-picker-sI0HWgZy.js} +3 -3
- package/dist/_chunks/{locale-picker-D9Kv2zrK.js.map → locale-picker-sI0HWgZy.js.map} +1 -1
- package/dist/_chunks/{map-view-2yZCQW2l.js → map-view-iwSDRW3t.js} +2 -2
- package/dist/_chunks/{map-view-2yZCQW2l.js.map → map-view-iwSDRW3t.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-BLRvg-M0.js → marketplace-app-shell-BxOiy25s.js} +4 -4
- package/dist/_chunks/{marketplace-app-shell-BLRvg-M0.js.map → marketplace-app-shell-BxOiy25s.js.map} +1 -1
- package/dist/_chunks/{message-card-ievotOFa.js → message-card-BCJ-Jgs6.js} +3 -3
- package/dist/_chunks/{message-card-ievotOFa.js.map → message-card-BCJ-Jgs6.js.map} +1 -1
- package/dist/_chunks/{message-tray-BFlu8clI.js → message-tray-DHtm_WaF.js} +4 -4
- package/dist/_chunks/{message-tray-BFlu8clI.js.map → message-tray-DHtm_WaF.js.map} +1 -1
- package/dist/_chunks/{notes-panel-CiFN3sLW.js → notes-panel-BoyzMHI_.js} +3 -3
- package/dist/_chunks/{notes-panel-CiFN3sLW.js.map → notes-panel-BoyzMHI_.js.map} +1 -1
- package/dist/_chunks/{notification-card-D29_sVA1.js → notification-card-CcMQn2RX.js} +3 -3
- package/dist/_chunks/{notification-card-D29_sVA1.js.map → notification-card-CcMQn2RX.js.map} +1 -1
- package/dist/_chunks/{notification-tray-CzIzz3bX.js → notification-tray-nr7dv-Q8.js} +4 -4
- package/dist/_chunks/{notification-tray-CzIzz3bX.js.map → notification-tray-nr7dv-Q8.js.map} +1 -1
- package/dist/_chunks/{optical-prescription-CRemE8fL.js → optical-prescription-Brs0CeP3.js} +2 -2
- package/dist/_chunks/{optical-prescription-CRemE8fL.js.map → optical-prescription-Brs0CeP3.js.map} +1 -1
- package/dist/_chunks/{patient-details-CpunD0qx.js → patient-details-Bf4iTAPp.js} +5 -5
- package/dist/_chunks/{patient-details-CpunD0qx.js.map → patient-details-Bf4iTAPp.js.map} +1 -1
- package/dist/_chunks/{patient-search-yG0UaCpQ.js → patient-search-NQemeJlL.js} +2 -2
- package/dist/_chunks/{patient-search-yG0UaCpQ.js.map → patient-search-NQemeJlL.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-C-iVDo53.js → patient-summary-card-dkV6a53T.js} +3 -3
- package/dist/_chunks/{patient-summary-card-C-iVDo53.js.map → patient-summary-card-dkV6a53T.js.map} +1 -1
- package/dist/_chunks/{patient-table-2eWx-Rrk.js → patient-table-DQKcWowi.js} +3 -3
- package/dist/_chunks/{patient-table-2eWx-Rrk.js.map → patient-table-DQKcWowi.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-D_x880pr.js → payment-automation-upsell-CZZPGfs0.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-D_x880pr.js.map → payment-automation-upsell-CZZPGfs0.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-CN30J6yM.js → payment-request-card-Dy7_DA-2.js} +3 -3
- package/dist/_chunks/{payment-request-card-CN30J6yM.js.map → payment-request-card-Dy7_DA-2.js.map} +1 -1
- package/dist/_chunks/{periodontal-chart-CYBhr9vc.js → periodontal-chart-CfFgKXWa.js} +2 -2
- package/dist/_chunks/{periodontal-chart-CYBhr9vc.js.map → periodontal-chart-CfFgKXWa.js.map} +1 -1
- package/dist/_chunks/{periodontal-chart-card-WVjJAheq.js → periodontal-chart-card--6yTUsrQ.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-WVjJAheq.js.map → periodontal-chart-card--6yTUsrQ.js.map} +1 -1
- package/dist/_chunks/{popover-Cc0a69sw.js → popover-Btj6N25H.js} +2 -2
- package/dist/_chunks/{popover-Cc0a69sw.js.map → popover-Btj6N25H.js.map} +1 -1
- package/dist/_chunks/{practice-results-SjCniMd2.js → practice-results-Mys11x9p.js} +5 -5
- package/dist/_chunks/{practice-results-SjCniMd2.js.map → practice-results-Mys11x9p.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-BmpHScZ0.js → pregnancy-dating-t3oM4ZzC.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BmpHScZ0.js.map → pregnancy-dating-t3oM4ZzC.js.map} +1 -1
- package/dist/_chunks/{pregnancy-weight-gain-B5KSJzdc.js → pregnancy-weight-gain-Bfz7SbIw.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-B5KSJzdc.js.map → pregnancy-weight-gain-Bfz7SbIw.js.map} +1 -1
- package/dist/_chunks/{privacy-lock-YYBiI_bY.js → privacy-lock-SQYFRSuH.js} +3 -3
- package/dist/_chunks/{privacy-lock-YYBiI_bY.js.map → privacy-lock-SQYFRSuH.js.map} +1 -1
- package/dist/_chunks/{product-hub-panel-CTld1r5V.js → product-hub-panel-BjnD9pdl.js} +3 -3
- package/dist/_chunks/{product-hub-panel-CTld1r5V.js.map → product-hub-panel-BjnD9pdl.js.map} +1 -1
- package/dist/_chunks/{public-header.agent-_8W9biCO.js → public-header.agent-DseNK2NQ.js} +3 -3
- package/dist/_chunks/{public-header.agent-_8W9biCO.js.map → public-header.agent-DseNK2NQ.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-CtFtNMzk.js → radiograph-panel.agent-DyA4wsZA.js} +4 -4
- package/dist/_chunks/{radiograph-panel.agent-CtFtNMzk.js.map → radiograph-panel.agent-DyA4wsZA.js.map} +1 -1
- package/dist/_chunks/{reviews-panel-tZlWiUBl.js → reviews-panel-Cd3SxJdW.js} +4 -4
- package/dist/_chunks/{reviews-panel-tZlWiUBl.js.map → reviews-panel-Cd3SxJdW.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-BedTpWzL.js → rich-text-editor-DGtn_4sb.js} +5 -5
- package/dist/_chunks/{rich-text-editor-BedTpWzL.js.map → rich-text-editor-DGtn_4sb.js.map} +1 -1
- package/dist/_chunks/{session-countdown-BL-Psg8u.js → session-countdown-q4r5TlCo.js} +2 -2
- package/dist/_chunks/{session-countdown-BL-Psg8u.js.map → session-countdown-q4r5TlCo.js.map} +1 -1
- package/dist/_chunks/{sheet-D5K0LB3q.js → sheet-CD99CdXr.js} +2 -2
- package/dist/_chunks/{sheet-D5K0LB3q.js.map → sheet-CD99CdXr.js.map} +1 -1
- package/dist/_chunks/{sign-in-with-alfadocs-button-UlYefZpI.js → sign-in-with-alfadocs-button-_JxVRO5d.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-UlYefZpI.js.map → sign-in-with-alfadocs-button-_JxVRO5d.js.map} +1 -1
- package/dist/_chunks/{signature-request-CrRj64Nz.js → signature-request-C4UBfVRZ.js} +33 -33
- package/dist/_chunks/{signature-request-CrRj64Nz.js.map → signature-request-C4UBfVRZ.js.map} +1 -1
- package/dist/_chunks/{slot-grid-DNiUcXy2.js → slot-grid-P_e9p5t5.js} +4 -4
- package/dist/_chunks/{slot-grid-DNiUcXy2.js.map → slot-grid-P_e9p5t5.js.map} +1 -1
- package/dist/_chunks/{streaming-text-C5bYz7LL.js → streaming-text-BuW7I0Zu.js} +2 -2
- package/dist/_chunks/{streaming-text-C5bYz7LL.js.map → streaming-text-BuW7I0Zu.js.map} +1 -1
- package/dist/_chunks/{task-tray-CLIqIXUZ.js → task-tray-BT288xoM.js} +3 -3
- package/dist/_chunks/{task-tray-CLIqIXUZ.js.map → task-tray-BT288xoM.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-CjGAhIN8.js → tasks-panel-CoESdfZI.js} +5 -5
- package/dist/_chunks/{tasks-panel-CjGAhIN8.js.map → tasks-panel-CoESdfZI.js.map} +1 -1
- package/dist/_chunks/{theme-toggle-B4mOrQX1.js → theme-toggle-Bi-CmV6M.js} +3 -3
- package/dist/_chunks/{theme-toggle-B4mOrQX1.js.map → theme-toggle-Bi-CmV6M.js.map} +1 -1
- package/dist/_chunks/{toast.agent-Iw2jWdce.js → toast.agent-C44mtGrW.js} +2 -2
- package/dist/_chunks/{toast.agent-Iw2jWdce.js.map → toast.agent-C44mtGrW.js.map} +1 -1
- package/dist/_chunks/{token-insert-menu-BYv6yoZI.js → token-insert-menu-D8FgXl33.js} +2 -2
- package/dist/_chunks/{token-insert-menu-BYv6yoZI.js.map → token-insert-menu-D8FgXl33.js.map} +1 -1
- package/dist/_chunks/{tool-rail-AaTqxkIM.js → tool-rail-BF3F2Ihq.js} +2 -2
- package/dist/_chunks/{tool-rail-AaTqxkIM.js.map → tool-rail-BF3F2Ihq.js.map} +1 -1
- package/dist/_chunks/{tooth-scheme-BzJ6rcte.js → tooth-scheme-s0ipC0-Z.js} +3 -3
- package/dist/_chunks/{tooth-scheme-BzJ6rcte.js.map → tooth-scheme-s0ipC0-Z.js.map} +1 -1
- package/dist/_chunks/{unit-converter-CHPDuV7W.js → unit-converter-lUW9Q888.js} +2 -2
- package/dist/_chunks/{unit-converter-CHPDuV7W.js.map → unit-converter-lUW9Q888.js.map} +1 -1
- package/dist/_chunks/{warning-stack-B7t_8jRE.js → warning-stack-nczJf52p.js} +3 -3
- package/dist/_chunks/{warning-stack-B7t_8jRE.js.map → warning-stack-nczJf52p.js.map} +1 -1
- package/dist/_chunks/{workflow-map-BVMeVHkV.js → workflow-map-C5PGP6cD.js} +5 -5
- package/dist/_chunks/{workflow-map-BVMeVHkV.js.map → workflow-map-C5PGP6cD.js.map} +1 -1
- package/dist/agent-catalog.json +31 -1
- package/dist/agent-i18n/en.json +5 -0
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/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/anamnesis-summary-card/anamnesis-summary-card.agent.d.ts +4 -0
- package/dist/components/anamnesis-summary-card/anamnesis-summary-card.agent.d.ts.map +1 -0
- package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts +69 -0
- package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts.map +1 -0
- package/dist/components/anamnesis-summary-card/index.d.ts +4 -0
- package/dist/components/anamnesis-summary-card/index.d.ts.map +1 -0
- package/dist/components/anamnesis-summary-card/index.js +6 -0
- package/dist/components/anamnesis-summary-card/index.js.map +1 -0
- package/dist/components/appointment-card/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.map +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/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 +3 -3
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/description-list/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/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/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/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/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +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/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 +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/streaming-text/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/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +20 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +20 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +20 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +20 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +20 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +20 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +20 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +20 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +20 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +20 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +20 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +20 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +20 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +20 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +20 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +20 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +20 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +20 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +20 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +20 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +20 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +20 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +20 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +20 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +20 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +20 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +20 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +20 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +20 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +20 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +20 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +20 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +20 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +20 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +20 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +20 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +339 -335
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +20 -0
- package/dist/locales/de.json +20 -0
- package/dist/locales/el.json +20 -0
- package/dist/locales/en.json +20 -0
- package/dist/locales/es.json +20 -0
- package/dist/locales/fr.json +20 -0
- package/dist/locales/hi.json +20 -0
- package/dist/locales/it.json +20 -0
- package/dist/locales/ja.json +20 -0
- package/dist/locales/nl.json +20 -0
- package/dist/locales/pl.json +20 -0
- package/dist/locales/pt.json +20 -0
- package/dist/locales/ro.json +20 -0
- package/dist/locales/ru.json +20 -0
- package/dist/locales/sq.json +20 -0
- package/dist/locales/sv.json +20 -0
- package/dist/locales/tr.json +20 -0
- package/dist/locales/zh.json +20 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-i18n.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +6 -1
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-summary-rows.d.ts +32 -0
- package/dist/patterns/anamnesis/anamnesis-summary-rows.d.ts.map +1 -0
- package/dist/patterns/anamnesis/anamnesis.d.ts +20 -1
- package/dist/patterns/anamnesis/anamnesis.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.d.ts +2 -1
- package/dist/patterns/anamnesis/index.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.js +15 -14
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signature-request/signature-request.d.ts.map +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/anamnesis-i18n-BiZeub0o.js.map +0 -1
- package/dist/_chunks/button-CPGiR_bH.js.map +0 -1
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as W, useId as Y, useMemo as L, useImperativeHandle as J } from "react";
|
|
3
|
+
import { c as h } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Q } from "react-i18next";
|
|
5
|
+
import { B as A } from "./badge-DCOqV9mI.js";
|
|
6
|
+
import { C as f } from "./card-DPmk26CL.js";
|
|
7
|
+
import { K as X, a as Z } from "./key-value-pair-DGkGlgCF.js";
|
|
8
|
+
import { S as w } from "./skeleton-CZbwyJAA.js";
|
|
9
|
+
import { a as ee, T as ae } from "./tooltip-DvmfrNvB.js";
|
|
10
|
+
import { u as se } from "./registry-DvAUVLHh.js";
|
|
11
|
+
import { H as _ } from "./heart-pulse-BCppJyN2.js";
|
|
12
|
+
const te = {
|
|
13
|
+
id: "anamnesis-summary-card",
|
|
14
|
+
// The card is read-only: the only handle method is a getSummary
|
|
15
|
+
// projection, so there is no capability to declare.
|
|
16
|
+
capabilities: [],
|
|
17
|
+
state: {
|
|
18
|
+
summary: {
|
|
19
|
+
type: "{ id?: string; sectionCount: number; answerCount: number; highlightedCount: number; unansweredCount: number }",
|
|
20
|
+
descriptionKey: "ui.agent.anamnesisSummaryCard.state.summary",
|
|
21
|
+
description: "Structural summary of the anamnesis card — section, answer, highlighted and unanswered counts plus the consumer id. Never question labels or answer values.",
|
|
22
|
+
read: (r) => r.getSummary()
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
actions: {},
|
|
26
|
+
domHooks: {
|
|
27
|
+
root: {
|
|
28
|
+
attr: "data-component",
|
|
29
|
+
value: "anamnesis-summary-card",
|
|
30
|
+
description: "Marks the AnamnesisSummaryCard root region."
|
|
31
|
+
},
|
|
32
|
+
instanceId: {
|
|
33
|
+
attr: "data-component-id",
|
|
34
|
+
sourceProp: "id",
|
|
35
|
+
description: "Sourced from the id prop."
|
|
36
|
+
},
|
|
37
|
+
item: {
|
|
38
|
+
attr: "data-answer-id",
|
|
39
|
+
description: "One per answer row (KeyValuePair); the value is the intake field key. Highlighted rows also carry data-highlighted."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, re = h("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
43
|
+
variants: {
|
|
44
|
+
// Same `surface` vocabulary as PatientSummaryCard / ContactProfileCard.
|
|
45
|
+
// Both surfaces keep the Card chrome — `flat` only drops the shadow.
|
|
46
|
+
surface: {
|
|
47
|
+
flat: "",
|
|
48
|
+
elevated: ""
|
|
49
|
+
},
|
|
50
|
+
density: {
|
|
51
|
+
comfortable: "",
|
|
52
|
+
compact: ""
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
surface: "elevated",
|
|
57
|
+
density: "comfortable"
|
|
58
|
+
}
|
|
59
|
+
}), ne = h("ds:flex ds:flex-col", {
|
|
60
|
+
variants: {
|
|
61
|
+
density: {
|
|
62
|
+
comfortable: "ds:gap-[var(--spacing-lg)]",
|
|
63
|
+
compact: "ds:gap-[var(--spacing-md)]"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
defaultVariants: { density: "comfortable" }
|
|
67
|
+
}), de = h("", {
|
|
68
|
+
variants: {
|
|
69
|
+
density: {
|
|
70
|
+
comfortable: "",
|
|
71
|
+
compact: "ds:p-[var(--spacing-sm)] ds:pb-0"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
defaultVariants: { density: "comfortable" }
|
|
75
|
+
}), ie = h("", {
|
|
76
|
+
variants: {
|
|
77
|
+
density: {
|
|
78
|
+
comfortable: "",
|
|
79
|
+
compact: "ds:p-[var(--spacing-sm)]"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
defaultVariants: { density: "comfortable" }
|
|
83
|
+
}), oe = h("", {
|
|
84
|
+
variants: {
|
|
85
|
+
density: {
|
|
86
|
+
comfortable: "",
|
|
87
|
+
compact: "ds:p-[var(--spacing-sm)] ds:pt-0"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
defaultVariants: { density: "comfortable" }
|
|
91
|
+
}), le = /^(\d{4})-(\d{2})-(\d{2})$/, ce = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/, me = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/;
|
|
92
|
+
function ue(r) {
|
|
93
|
+
const d = le.exec(r);
|
|
94
|
+
if (d)
|
|
95
|
+
return {
|
|
96
|
+
date: new Date(Number(d[1]), Number(d[2]) - 1, Number(d[3])),
|
|
97
|
+
hasTime: !1
|
|
98
|
+
};
|
|
99
|
+
const t = ce.exec(r);
|
|
100
|
+
if (t)
|
|
101
|
+
return {
|
|
102
|
+
date: new Date(
|
|
103
|
+
Number(t[1]),
|
|
104
|
+
Number(t[2]) - 1,
|
|
105
|
+
Number(t[3]),
|
|
106
|
+
Number(t[4]),
|
|
107
|
+
Number(t[5]),
|
|
108
|
+
t[6] ? Number(t[6]) : 0
|
|
109
|
+
),
|
|
110
|
+
hasTime: !0
|
|
111
|
+
};
|
|
112
|
+
const n = new Date(r);
|
|
113
|
+
return Number.isNaN(n.getTime()) ? null : { date: n, hasTime: me.test(r) };
|
|
114
|
+
}
|
|
115
|
+
function he(r, d) {
|
|
116
|
+
const t = ue(r);
|
|
117
|
+
if (!t) return null;
|
|
118
|
+
const n = t.hasTime ? { dateStyle: "medium", timeStyle: "short" } : { dateStyle: "medium" };
|
|
119
|
+
try {
|
|
120
|
+
return new Intl.DateTimeFormat(d, n).format(t.date);
|
|
121
|
+
} catch {
|
|
122
|
+
return new Intl.DateTimeFormat(void 0, n).format(t.date);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
const pe = "ds:border-s-2 ds:border-[color:var(--accent)] ds:ps-[var(--spacing-sm)] ds:bg-[color:color-mix(in_srgb,var(--accent)_6%,transparent)]", ge = 'ds:relative ds:inline-flex ds:appearance-none ds:border-0 ds:bg-transparent ds:p-0 ds:m-0 ds:cursor-default ds:rounded-[var(--radius-full)] ds:before:absolute ds:before:content-[""] ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:sm:before:inset-x-[calc((var(--spacing-lg)-100%)/-2)] ds:sm:before:inset-y-[calc((var(--spacing-lg)-100%)/-2)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]', v = "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", fe = W(
|
|
126
|
+
({
|
|
127
|
+
sections: r,
|
|
128
|
+
title: d,
|
|
129
|
+
subtitle: t,
|
|
130
|
+
unansweredCount: n = 0,
|
|
131
|
+
locale: I,
|
|
132
|
+
highlightedFirst: y = !0,
|
|
133
|
+
surface: N = "elevated",
|
|
134
|
+
density: i = "comfortable",
|
|
135
|
+
loading: p = !1,
|
|
136
|
+
actionSlot: x,
|
|
137
|
+
id: c,
|
|
138
|
+
className: H,
|
|
139
|
+
"aria-label": E,
|
|
140
|
+
...D
|
|
141
|
+
}, P) => {
|
|
142
|
+
const { t: o, i18n: k } = Q(), O = Y(), R = I ?? k.language ?? "en", m = L(
|
|
143
|
+
() => r.filter((s) => s.answers.length > 0).map((s) => ({
|
|
144
|
+
...s,
|
|
145
|
+
answers: y ? [...s.answers].sort(
|
|
146
|
+
(a, u) => +!!u.highlighted - +!!a.highlighted
|
|
147
|
+
) : s.answers
|
|
148
|
+
})),
|
|
149
|
+
[r, y]
|
|
150
|
+
), C = m.reduce(
|
|
151
|
+
(s, a) => s + a.answers.length,
|
|
152
|
+
0
|
|
153
|
+
), g = m.reduce(
|
|
154
|
+
(s, a) => s + a.answers.filter((u) => u.highlighted).length,
|
|
155
|
+
0
|
|
156
|
+
), S = m.length, b = L(
|
|
157
|
+
() => ({
|
|
158
|
+
getSummary: () => ({
|
|
159
|
+
id: c,
|
|
160
|
+
sectionCount: S,
|
|
161
|
+
answerCount: C,
|
|
162
|
+
highlightedCount: g,
|
|
163
|
+
unansweredCount: n
|
|
164
|
+
})
|
|
165
|
+
}),
|
|
166
|
+
[c, S, C, g, n]
|
|
167
|
+
);
|
|
168
|
+
J(P, () => b, [b]), se(te, b, c);
|
|
169
|
+
const B = o("anamnesisSummaryCard.regionLabel", {
|
|
170
|
+
defaultValue: "Anamnesis summary"
|
|
171
|
+
}), T = d ?? B, K = E ?? T, V = o("anamnesisSummaryCard.highlighted", {
|
|
172
|
+
defaultValue: "Highlighted"
|
|
173
|
+
}), M = i === "comfortable" ? "type-title-card" : "type-title-item", $ = i === "comfortable" ? "md" : "sm", z = (s) => {
|
|
174
|
+
const a = s.reportedAtIso ? he(s.reportedAtIso, R) : null, u = a && s.sourceLabel ? o("anamnesisSummaryCard.reportedOnFrom", {
|
|
175
|
+
date: a,
|
|
176
|
+
source: s.sourceLabel,
|
|
177
|
+
defaultValue: "Highlighted on {{date}} · {{source}}"
|
|
178
|
+
}) : a ? o("anamnesisSummaryCard.reportedOn", {
|
|
179
|
+
date: a,
|
|
180
|
+
defaultValue: "Highlighted on {{date}}"
|
|
181
|
+
}) : V;
|
|
182
|
+
return /* @__PURE__ */ e(ae, { label: u, side: "top", children: /* @__PURE__ */ e(
|
|
183
|
+
"button",
|
|
184
|
+
{
|
|
185
|
+
type: "button",
|
|
186
|
+
className: ge,
|
|
187
|
+
"data-highlighted-chip": "",
|
|
188
|
+
children: /* @__PURE__ */ e(
|
|
189
|
+
A,
|
|
190
|
+
{
|
|
191
|
+
variant: "accentSoft",
|
|
192
|
+
size: "sm",
|
|
193
|
+
leading: /* @__PURE__ */ e(_, { "aria-hidden": "true" }),
|
|
194
|
+
children: V
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
}
|
|
198
|
+
) });
|
|
199
|
+
}, F = /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
200
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
201
|
+
/* @__PURE__ */ e(
|
|
202
|
+
"h3",
|
|
203
|
+
{
|
|
204
|
+
id: O,
|
|
205
|
+
className: `ds:m-0 ${M} ds:text-[color:var(--foreground)]`,
|
|
206
|
+
children: T
|
|
207
|
+
}
|
|
208
|
+
),
|
|
209
|
+
t ? /* @__PURE__ */ e("p", { className: v, children: t }) : null
|
|
210
|
+
] }),
|
|
211
|
+
!p && g > 0 ? /* @__PURE__ */ e(
|
|
212
|
+
A,
|
|
213
|
+
{
|
|
214
|
+
variant: "accentSoft",
|
|
215
|
+
size: "sm",
|
|
216
|
+
leading: /* @__PURE__ */ e(_, { "aria-hidden": "true" }),
|
|
217
|
+
className: "ds:shrink-0",
|
|
218
|
+
children: o("anamnesisSummaryCard.highlightedCount", {
|
|
219
|
+
count: g,
|
|
220
|
+
defaultValue: "{{count}} highlighted"
|
|
221
|
+
})
|
|
222
|
+
}
|
|
223
|
+
) : null,
|
|
224
|
+
x ? /* @__PURE__ */ e("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: x }) : null
|
|
225
|
+
] }), G = /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
226
|
+
/* @__PURE__ */ e(w, { variant: "text", width: "40%" }),
|
|
227
|
+
/* @__PURE__ */ e(w, { variant: "text", lines: 4 })
|
|
228
|
+
] }), j = /* @__PURE__ */ e("p", { className: v, children: o("anamnesisSummaryCard.empty", {
|
|
229
|
+
defaultValue: "No answers recorded yet"
|
|
230
|
+
}) }), q = /* @__PURE__ */ e(
|
|
231
|
+
"div",
|
|
232
|
+
{
|
|
233
|
+
role: "group",
|
|
234
|
+
"aria-label": o("anamnesisSummaryCard.sectionsLabel", {
|
|
235
|
+
defaultValue: "Anamnesis sections"
|
|
236
|
+
}),
|
|
237
|
+
className: ne({ density: i }),
|
|
238
|
+
children: m.map((s) => /* @__PURE__ */ l(
|
|
239
|
+
"div",
|
|
240
|
+
{
|
|
241
|
+
"data-section-id": s.id,
|
|
242
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
243
|
+
children: [
|
|
244
|
+
/* @__PURE__ */ e("h4", { className: "ds:m-0 type-eyebrow ds:text-[color:var(--muted-foreground)]", children: s.heading }),
|
|
245
|
+
/* @__PURE__ */ e("div", { className: "ds:@container/afields", children: /* @__PURE__ */ e(
|
|
246
|
+
X,
|
|
247
|
+
{
|
|
248
|
+
rowGap: $,
|
|
249
|
+
className: "ds:@[672px]/afields:grid-cols-[repeat(2,auto_auto_minmax(0,1fr))]",
|
|
250
|
+
children: s.answers.map((a) => /* @__PURE__ */ e(
|
|
251
|
+
Z,
|
|
252
|
+
{
|
|
253
|
+
"data-answer-id": a.id,
|
|
254
|
+
"data-highlighted": a.highlighted ? "" : void 0,
|
|
255
|
+
label: a.sourceLabel ? `${a.label} (${a.sourceLabel})` : a.label,
|
|
256
|
+
className: a.highlighted ? pe : void 0,
|
|
257
|
+
value: /* @__PURE__ */ l("span", { className: "ds:inline-flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]", children: [
|
|
258
|
+
/* @__PURE__ */ e("span", { children: a.value }),
|
|
259
|
+
a.unit ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: a.unit }) : null,
|
|
260
|
+
a.highlighted ? z(a) : null
|
|
261
|
+
] })
|
|
262
|
+
},
|
|
263
|
+
a.id
|
|
264
|
+
))
|
|
265
|
+
}
|
|
266
|
+
) })
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
s.id
|
|
270
|
+
))
|
|
271
|
+
}
|
|
272
|
+
), U = p ? G : m.length === 0 ? j : q;
|
|
273
|
+
return /* @__PURE__ */ e(
|
|
274
|
+
"div",
|
|
275
|
+
{
|
|
276
|
+
role: "region",
|
|
277
|
+
"aria-label": K,
|
|
278
|
+
"aria-busy": p || void 0,
|
|
279
|
+
"data-component": "anamnesis-summary-card",
|
|
280
|
+
"data-component-id": c,
|
|
281
|
+
"data-density": i,
|
|
282
|
+
id: c,
|
|
283
|
+
className: re({ surface: N, density: i, className: H }),
|
|
284
|
+
...D,
|
|
285
|
+
children: /* @__PURE__ */ l(f, { variant: N === "flat" ? "outlined" : "elevated", children: [
|
|
286
|
+
/* @__PURE__ */ e(f.Header, { className: de({ density: i }), children: F }),
|
|
287
|
+
/* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(f.Body, { className: ie({ density: i }), children: U }) }),
|
|
288
|
+
!p && n > 0 ? /* @__PURE__ */ e(f.Footer, { className: oe({ density: i }), children: /* @__PURE__ */ e("p", { className: v, children: o("anamnesisSummaryCard.unanswered", {
|
|
289
|
+
count: n,
|
|
290
|
+
defaultValue: "{{count}} questions not answered"
|
|
291
|
+
}) }) }) : null
|
|
292
|
+
] })
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
);
|
|
297
|
+
fe.displayName = "AnamnesisSummaryCard";
|
|
298
|
+
export {
|
|
299
|
+
fe as A,
|
|
300
|
+
te as a
|
|
301
|
+
};
|
|
302
|
+
//# sourceMappingURL=anamnesis-summary-card-BvaSnAbI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anamnesis-summary-card-BvaSnAbI.js","sources":["../../src/components/anamnesis-summary-card/anamnesis-summary-card.agent.ts","../../src/components/anamnesis-summary-card/anamnesis-summary-card.tsx"],"sourcesContent":["import type { AgentAdapter } from '../../agent/types';\nimport type { AnamnesisSummaryCardHandle } from './anamnesis-summary-card';\n\n/* -------------------------------------------------------------------- */\n/* Agent adapter — AnamnesisSummaryCard */\n/* */\n/* Read-only adapter. Surfaces a STRUCTURAL snapshot of the anamnesis */\n/* summary — section / answer / highlighted / unanswered counts and the */\n/* consumer id only. Never a question label or an answer value, so an */\n/* agent can answer \"does this patient have highlighted answers?\" without */\n/* re-parsing the DOM and without leaking PHI (PRS §Security). */\n/* -------------------------------------------------------------------- */\n\nexport const anamnesisSummaryCardAgent: AgentAdapter<AnamnesisSummaryCardHandle> =\n {\n id: 'anamnesis-summary-card',\n // The card is read-only: the only handle method is a getSummary\n // projection, so there is no capability to declare.\n capabilities: [],\n state: {\n summary: {\n type: '{ id?: string; sectionCount: number; answerCount: number; highlightedCount: number; unansweredCount: number }',\n descriptionKey: 'ui.agent.anamnesisSummaryCard.state.summary',\n description:\n 'Structural summary of the anamnesis card — section, answer, highlighted and unanswered counts plus the consumer id. Never question labels or answer values.',\n read: (handle) => handle.getSummary(),\n },\n },\n actions: {},\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'anamnesis-summary-card',\n description: 'Marks the AnamnesisSummaryCard root region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop.',\n },\n item: {\n attr: 'data-answer-id',\n description:\n 'One per answer row (KeyValuePair); the value is the intake field key. Highlighted rows also carry data-highlighted.',\n },\n },\n };\n","import {\n forwardRef,\n useId,\n useImperativeHandle,\n useMemo,\n type HTMLAttributes,\n type ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { HeartPulse } from 'lucide-react';\nimport { Badge } from '../badge/badge';\nimport { Card } from '../card/card';\nimport { KeyValueList, KeyValuePair } from '../key-value-pair/key-value-pair';\nimport { Skeleton } from '../skeleton/skeleton';\nimport { Tooltip, TooltipProvider } from '../tooltip/tooltip';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { anamnesisSummaryCardAgent } from './anamnesis-summary-card.agent';\n\n/* -------------------------------------------------------------------- */\n/* AnamnesisSummaryCard */\n/* */\n/* A read-only summary of a patient's anamnesis answers: every answered */\n/* question as a label/value row, grouped by section, two columns when */\n/* the card is wide. Practice-flagged (\"highlighted\") answers carry an */\n/* accent rail plus a HeartPulse chip whose tooltip says WHEN the answer */\n/* was recorded (and from which module when the card combines several). */\n/* */\n/* Templated on PatientSummaryCard: the consumer passes rows, the kit */\n/* owns layout, icons, i18n, and a11y. Used by the platform both for the */\n/* Overview tab (one card combining each module's latest interview) and */\n/* under the archive table (one card per interview). */\n/* -------------------------------------------------------------------- */\n\n/* -------------------------------------------------------------------- */\n/* CVA */\n/* -------------------------------------------------------------------- */\n\nconst rootVariants = cva('ds:w-full ds:text-[color:var(--foreground)]', {\n variants: {\n // Same `surface` vocabulary as PatientSummaryCard / ContactProfileCard.\n // Both surfaces keep the Card chrome — `flat` only drops the shadow.\n surface: {\n flat: '',\n elevated: '',\n },\n density: {\n comfortable: '',\n compact: '',\n },\n },\n defaultVariants: {\n surface: 'elevated',\n density: 'comfortable',\n },\n});\n\n/** Stack of sections inside the body — the density tunes the section gap. */\nconst sectionsVariants = cva('ds:flex ds:flex-col', {\n variants: {\n density: {\n comfortable: 'ds:gap-[var(--spacing-lg)]',\n compact: 'ds:gap-[var(--spacing-md)]',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\n/** Card padding per density — overrides Card.Header / Body / Footer defaults. */\nconst headerPaddingVariants = cva('', {\n variants: {\n density: {\n comfortable: '',\n compact: 'ds:p-[var(--spacing-sm)] ds:pb-0',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\nconst bodyPaddingVariants = cva('', {\n variants: {\n density: {\n comfortable: '',\n compact: 'ds:p-[var(--spacing-sm)]',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\nconst footerPaddingVariants = cva('', {\n variants: {\n density: {\n comfortable: '',\n compact: 'ds:p-[var(--spacing-sm)] ds:pt-0',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\n/* -------------------------------------------------------------------- */\n/* Public types */\n/* -------------------------------------------------------------------- */\n\nexport interface AnamnesisSummaryAnswer {\n /** Stable key (the intake field key). */\n id: string;\n /** Question label, already translated by the consumer. */\n label: string;\n /** Formatted answer. Strings preferred; ReactNode allowed. */\n value: ReactNode;\n /** Unit symbol rendered muted after the value (e.g. \"kg\"). */\n unit?: string;\n /** The practice's highlight rule fired for this answer. */\n highlighted?: boolean;\n /**\n * When the answer was recorded — `YYYY-MM-DD`, `YYYY-MM-DDTHH:mm` (LOCAL\n * wall time, no zone) or full ISO-8601. A bare date is never read as UTC.\n */\n reportedAtIso?: string;\n /** Where the answer came from when the card combines modules (module name). */\n sourceLabel?: string;\n}\n\nexport interface AnamnesisSummarySection {\n id: string;\n heading: string;\n answers: AnamnesisSummaryAnswer[];\n}\n\nexport interface AnamnesisSummaryCardHandle {\n /** Structural snapshot only — counts, never labels or values. */\n getSummary: () => {\n id?: string;\n sectionCount: number;\n answerCount: number;\n highlightedCount: number;\n unansweredCount: number;\n };\n}\n\nexport interface AnamnesisSummaryCardProps extends Omit<\n HTMLAttributes<HTMLDivElement>,\n 'title'\n> {\n sections: AnamnesisSummarySection[];\n /** Card title (e.g. the module name). Falls back to the \"Anamnesis summary\" region label. */\n title?: string;\n /** Muted line under the title (e.g. the interview date-time, already formatted). */\n subtitle?: string;\n /** Questions the consumer omitted because they were unanswered — one muted footer line when > 0. */\n unansweredCount?: number;\n /** BCP-47 tag for the tooltip date; defaults to the active i18next language. */\n locale?: string;\n /** Highlighted answers sort to the top of their section. Default `true`. */\n highlightedFirst?: boolean;\n /** `'elevated'` (default) — Card with shadow; `'flat'` — outlined Card. */\n surface?: 'flat' | 'elevated';\n /** `'comfortable'` (default) or `'compact'` (tighter row gap + paddings). */\n density?: 'comfortable' | 'compact';\n /** Render the skeleton loading placeholder. */\n loading?: boolean;\n /** Rendered at the inline-end of the heading row (e.g. an action menu). */\n actionSlot?: ReactNode;\n /** Agent-readiness consumer id, surfaced as `data-component-id`. */\n id?: string;\n}\n\n/* -------------------------------------------------------------------- */\n/* Date helpers */\n/* -------------------------------------------------------------------- */\n\nconst DATE_ONLY_RE = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\nconst LOCAL_DATETIME_RE =\n /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2})(?::(\\d{2}))?$/;\nconst CLOCK_TIME_RE = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}/;\n\n/**\n * Parse a stored stamp by fields when it carries no zone, so `2026-03-01`\n * stays 1 March in every viewer zone (`new Date('2026-03-01')` would read\n * it as UTC midnight and print 29 February west of Greenwich).\n */\nfunction parseReportedAt(iso: string): { date: Date; hasTime: boolean } | null {\n const day = DATE_ONLY_RE.exec(iso);\n if (day) {\n return {\n date: new Date(Number(day[1]), Number(day[2]) - 1, Number(day[3])),\n hasTime: false,\n };\n }\n const local = LOCAL_DATETIME_RE.exec(iso);\n if (local) {\n return {\n date: new Date(\n Number(local[1]),\n Number(local[2]) - 1,\n Number(local[3]),\n Number(local[4]),\n Number(local[5]),\n local[6] ? Number(local[6]) : 0,\n ),\n hasTime: true,\n };\n }\n const date = new Date(iso);\n if (Number.isNaN(date.getTime())) return null;\n return { date, hasTime: CLOCK_TIME_RE.test(iso) };\n}\n\nfunction formatReportedAt(iso: string, locale: string): string | null {\n const parsed = parseReportedAt(iso);\n if (!parsed) return null;\n const options: Intl.DateTimeFormatOptions = parsed.hasTime\n ? { dateStyle: 'medium', timeStyle: 'short' }\n : { dateStyle: 'medium' };\n try {\n return new Intl.DateTimeFormat(locale, options).format(parsed.date);\n } catch {\n // An unknown BCP-47 tag throws — fall back to the runtime default locale.\n return new Intl.DateTimeFormat(undefined, options).format(parsed.date);\n }\n}\n\n/* -------------------------------------------------------------------- */\n/* Styling fragments */\n/* -------------------------------------------------------------------- */\n\n/** Accent rail + soft wash — the same vocabulary the anamnesis pattern uses\n * for a highlighted intake field, so the two surfaces read as one. */\nconst HIGHLIGHTED_ROW_CLASS =\n 'ds:border-s-2 ds:border-[color:var(--accent)] ds:ps-[var(--spacing-sm)] ds:bg-[color:color-mix(in_srgb,var(--accent)_6%,transparent)]';\n\n/** Bare button carrying the chip — it exists only to give the tooltip a\n * keyboard-focusable trigger, so it inherits the chip's pill outline.\n * The 16px chip sits below `--min-target-size`, so the same `::before`\n * hit-area recipe as InfoTip `size=\"sm\"` expands the target: the full\n * 44/48px on touch, relaxing to the `--spacing-lg` 24px floor from `sm:` up. */\nconst CHIP_BUTTON_CLASS =\n 'ds:relative ds:inline-flex ds:appearance-none ds:border-0 ds:bg-transparent ds:p-0 ds:m-0 ds:cursor-default ds:rounded-[var(--radius-full)] ds:before:absolute ds:before:content-[\"\"] ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:sm:before:inset-x-[calc((var(--spacing-lg)-100%)/-2)] ds:sm:before:inset-y-[calc((var(--spacing-lg)-100%)/-2)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]';\n\nconst MUTED_LINE_CLASS =\n 'type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]';\n\n/* -------------------------------------------------------------------- */\n/* Component */\n/* -------------------------------------------------------------------- */\n\nexport const AnamnesisSummaryCard = forwardRef<\n AnamnesisSummaryCardHandle,\n AnamnesisSummaryCardProps\n>(\n (\n {\n sections,\n title,\n subtitle,\n unansweredCount = 0,\n locale,\n highlightedFirst = true,\n surface = 'elevated',\n density = 'comfortable',\n loading = false,\n actionSlot,\n id,\n className,\n 'aria-label': ariaLabel,\n ...rest\n },\n ref,\n ) => {\n const { t, i18n } = useTranslation();\n const headingId = useId();\n const activeLocale = locale ?? i18n.language ?? 'en';\n\n // Drop empty sections and apply the highlighted-first order once per\n // input change; `sort` is stable so unhighlighted rows keep their order.\n const visibleSections = useMemo(\n () =>\n sections\n .filter((section) => section.answers.length > 0)\n .map((section) => ({\n ...section,\n answers: highlightedFirst\n ? [...section.answers].sort(\n (a, b) => Number(!!b.highlighted) - Number(!!a.highlighted),\n )\n : section.answers,\n })),\n [sections, highlightedFirst],\n );\n\n const answerCount = visibleSections.reduce(\n (sum, section) => sum + section.answers.length,\n 0,\n );\n const highlightedCount = visibleSections.reduce(\n (sum, section) =>\n sum + section.answers.filter((answer) => answer.highlighted).length,\n 0,\n );\n const sectionCount = visibleSections.length;\n\n // Imperative handle — structural snapshot only (counts + consumer id),\n // never a question label or an answer value.\n const handle = useMemo<AnamnesisSummaryCardHandle>(\n () => ({\n getSummary: () => ({\n id,\n sectionCount,\n answerCount,\n highlightedCount,\n unansweredCount,\n }),\n }),\n [id, sectionCount, answerCount, highlightedCount, unansweredCount],\n );\n useImperativeHandle(ref, () => handle, [handle]);\n useAgentRegistration(anamnesisSummaryCardAgent, handle, id);\n\n const regionLabel = t('anamnesisSummaryCard.regionLabel', {\n defaultValue: 'Anamnesis summary',\n });\n const resolvedTitle = title ?? regionLabel;\n const resolvedAriaLabel = ariaLabel ?? resolvedTitle;\n const highlightedText = t('anamnesisSummaryCard.highlighted', {\n defaultValue: 'Highlighted',\n });\n\n const titleClass =\n density === 'comfortable' ? 'type-title-card' : 'type-title-item';\n const rowGap = density === 'comfortable' ? 'md' : 'sm';\n\n /* ---------------------------------------------------------------- */\n /* Highlight chip */\n /* ---------------------------------------------------------------- */\n\n const renderChip = (answer: AnamnesisSummaryAnswer) => {\n const date = answer.reportedAtIso\n ? formatReportedAt(answer.reportedAtIso, activeLocale)\n : null;\n const tooltipLabel =\n date && answer.sourceLabel\n ? t('anamnesisSummaryCard.reportedOnFrom', {\n date,\n source: answer.sourceLabel,\n defaultValue: 'Highlighted on {{date}} · {{source}}',\n })\n : date\n ? t('anamnesisSummaryCard.reportedOn', {\n date,\n defaultValue: 'Highlighted on {{date}}',\n })\n : highlightedText;\n return (\n <Tooltip label={tooltipLabel} side=\"top\">\n <button\n type=\"button\"\n className={CHIP_BUTTON_CLASS}\n data-highlighted-chip=\"\"\n >\n <Badge\n variant=\"accentSoft\"\n size=\"sm\"\n leading={<HeartPulse aria-hidden=\"true\" />}\n >\n {highlightedText}\n </Badge>\n </button>\n </Tooltip>\n );\n };\n\n /* ---------------------------------------------------------------- */\n /* Header */\n /* ---------------------------------------------------------------- */\n\n const header = (\n <div className=\"ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-sm)]\">\n <div className=\"ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n <h3\n id={headingId}\n className={`ds:m-0 ${titleClass} ds:text-[color:var(--foreground)]`}\n >\n {resolvedTitle}\n </h3>\n {subtitle ? <p className={MUTED_LINE_CLASS}>{subtitle}</p> : null}\n </div>\n {!loading && highlightedCount > 0 ? (\n <Badge\n variant=\"accentSoft\"\n size=\"sm\"\n leading={<HeartPulse aria-hidden=\"true\" />}\n className=\"ds:shrink-0\"\n >\n {t('anamnesisSummaryCard.highlightedCount', {\n count: highlightedCount,\n defaultValue: '{{count}} highlighted',\n })}\n </Badge>\n ) : null}\n {actionSlot ? (\n <div className=\"ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]\">\n {actionSlot}\n </div>\n ) : null}\n </div>\n );\n\n /* ---------------------------------------------------------------- */\n /* Body */\n /* ---------------------------------------------------------------- */\n\n const skeletonBody = (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\">\n <Skeleton variant=\"text\" width=\"40%\" />\n <Skeleton variant=\"text\" lines={4} />\n </div>\n );\n\n const emptyBody = (\n <p className={MUTED_LINE_CLASS}>\n {t('anamnesisSummaryCard.empty', {\n defaultValue: 'No answers recorded yet',\n })}\n </p>\n );\n\n const sectionsBody = (\n <div\n role=\"group\"\n aria-label={t('anamnesisSummaryCard.sectionsLabel', {\n defaultValue: 'Anamnesis sections',\n })}\n className={sectionsVariants({ density })}\n >\n {/* Plain <div>, deliberately not a named <section>: a named\n <section> is a `region` landmark, and one per anamnesis section\n per card would drown the page-level landmarks. The <h4> already\n gives heading navigation into each section. */}\n {visibleSections.map((section) => (\n <div\n key={section.id}\n data-section-id={section.id}\n className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\"\n >\n <h4 className=\"ds:m-0 type-eyebrow ds:text-[color:var(--muted-foreground)]\">\n {section.heading}\n </h4>\n {/* Container-queried so the rows flow into two columns when the\n card is wide enough and stay single-column in a narrow rail —\n the same six-track grid PatientSummaryCard uses, so both cards\n break at the same 672px (px, not rem: container-query rem\n follows the host root font-size). */}\n <div className=\"ds:@container/afields\">\n <KeyValueList\n rowGap={rowGap}\n className=\"ds:@[672px]/afields:grid-cols-[repeat(2,auto_auto_minmax(0,1fr))]\"\n >\n {section.answers.map((answer) => (\n <KeyValuePair\n key={answer.id}\n data-answer-id={answer.id}\n data-highlighted={answer.highlighted ? '' : undefined}\n label={\n answer.sourceLabel\n ? `${answer.label} (${answer.sourceLabel})`\n : answer.label\n }\n className={\n answer.highlighted ? HIGHLIGHTED_ROW_CLASS : undefined\n }\n value={\n <span className=\"ds:inline-flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-xs)] ds:gap-y-[var(--spacing-2xs)]\">\n <span>{answer.value}</span>\n {answer.unit ? (\n <span className=\"type-body-sm ds:text-[color:var(--muted-foreground)]\">\n {answer.unit}\n </span>\n ) : null}\n {answer.highlighted ? renderChip(answer) : null}\n </span>\n }\n />\n ))}\n </KeyValueList>\n </div>\n </div>\n ))}\n </div>\n );\n\n const body = loading\n ? skeletonBody\n : visibleSections.length === 0\n ? emptyBody\n : sectionsBody;\n\n return (\n <div\n role=\"region\"\n aria-label={resolvedAriaLabel}\n aria-busy={loading || undefined}\n data-component=\"anamnesis-summary-card\"\n data-component-id={id}\n data-density={density}\n id={id}\n className={rootVariants({ surface, density, className })}\n {...rest}\n >\n <Card variant={surface === 'flat' ? 'outlined' : 'elevated'}>\n <Card.Header className={headerPaddingVariants({ density })}>\n {header}\n </Card.Header>\n {/* Own TooltipProvider so a host without one still gets the chip\n tooltips; Radix providers compose, so a host-level one also works. */}\n <TooltipProvider>\n <Card.Body className={bodyPaddingVariants({ density })}>\n {body}\n </Card.Body>\n </TooltipProvider>\n {!loading && unansweredCount > 0 ? (\n <Card.Footer className={footerPaddingVariants({ density })}>\n <p className={MUTED_LINE_CLASS}>\n {t('anamnesisSummaryCard.unanswered', {\n count: unansweredCount,\n defaultValue: '{{count}} questions not answered',\n })}\n </p>\n </Card.Footer>\n ) : null}\n </Card>\n </div>\n );\n },\n);\n\nAnamnesisSummaryCard.displayName = 'AnamnesisSummaryCard';\n\n/** Variant unions re-exported for downstream typing. */\nexport type AnamnesisSummaryCardSurface = NonNullable<\n VariantProps<typeof rootVariants>['surface']\n>;\nexport type AnamnesisSummaryCardDensity = NonNullable<\n VariantProps<typeof rootVariants>['density']\n>;\n"],"names":["anamnesisSummaryCardAgent","handle","rootVariants","cva","sectionsVariants","headerPaddingVariants","bodyPaddingVariants","footerPaddingVariants","DATE_ONLY_RE","LOCAL_DATETIME_RE","CLOCK_TIME_RE","parseReportedAt","iso","day","local","date","formatReportedAt","locale","parsed","options","HIGHLIGHTED_ROW_CLASS","CHIP_BUTTON_CLASS","MUTED_LINE_CLASS","AnamnesisSummaryCard","forwardRef","sections","title","subtitle","unansweredCount","highlightedFirst","surface","density","loading","actionSlot","id","className","ariaLabel","rest","ref","t","i18n","useTranslation","headingId","useId","activeLocale","visibleSections","useMemo","section","b","answerCount","sum","highlightedCount","answer","sectionCount","useImperativeHandle","useAgentRegistration","regionLabel","resolvedTitle","resolvedAriaLabel","highlightedText","titleClass","rowGap","renderChip","tooltipLabel","jsx","Tooltip","Badge","HeartPulse","header","jsxs","skeletonBody","Skeleton","emptyBody","sectionsBody","KeyValueList","KeyValuePair","body","Card","TooltipProvider"],"mappings":";;;;;;;;;;;AAaO,MAAMA,KACX;AAAA,EACE,IAAI;AAAA;AAAA;AAAA,EAGJ,cAAc,CAAA;AAAA,EACd,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aACE;AAAA,MACF,MAAM,CAACC,MAAWA,EAAO,WAAA;AAAA,IAAW;AAAA,EACtC;AAAA,EAEF,SAAS,CAAA;AAAA,EACT,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,IAAA;AAAA,IAEf,YAAY;AAAA,MACV,MAAM;AAAA,MACN,YAAY;AAAA,MACZ,aAAa;AAAA,IAAA;AAAA,IAEf,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aACE;AAAA,IAAA;AAAA,EACJ;AAEJ,GCRIC,KAAeC,EAAI,+CAA+C;AAAA,EACtE,UAAU;AAAA;AAAA;AAAA,IAGR,SAAS;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,IAAA;AAAA,IAEZ,SAAS;AAAA,MACP,aAAa;AAAA,MACb,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,SAAS;AAAA,EAAA;AAEb,CAAC,GAGKC,KAAmBD,EAAI,uBAAuB;AAAA,EAClD,UAAU;AAAA,IACR,SAAS;AAAA,MACP,aAAa;AAAA,MACb,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,iBAAiB,EAAE,SAAS,cAAA;AAC9B,CAAC,GAGKE,KAAwBF,EAAI,IAAI;AAAA,EACpC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,aAAa;AAAA,MACb,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,iBAAiB,EAAE,SAAS,cAAA;A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