@alfadocs/ui-kit-debug 1.50.0 → 1.51.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.
Files changed (518) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DMittsR3.js → actions-cell-renderer-DBI33cMp.js} +4 -4
  2. package/dist/_chunks/{actions-cell-renderer-DMittsR3.js.map → actions-cell-renderer-DBI33cMp.js.map} +1 -1
  3. package/dist/_chunks/{agenda-tray-BhZASyJm.js → agenda-tray-CGhEEnFE.js} +3 -3
  4. package/dist/_chunks/{agenda-tray-BhZASyJm.js.map → agenda-tray-CGhEEnFE.js.map} +1 -1
  5. package/dist/_chunks/{ai-credits-notice-C-kz_RrY.js → ai-credits-notice-C9K_ley1.js} +3 -3
  6. package/dist/_chunks/{ai-credits-notice-C-kz_RrY.js.map → ai-credits-notice-C9K_ley1.js.map} +1 -1
  7. package/dist/_chunks/{ai-permission-notice-BRZeS3mT.js → ai-permission-notice-DMG1o4Qa.js} +2 -2
  8. package/dist/_chunks/{ai-permission-notice-BRZeS3mT.js.map → ai-permission-notice-DMG1o4Qa.js.map} +1 -1
  9. package/dist/_chunks/{ai-prompt-input-CxvnXsAs.js → ai-prompt-input-ucwO-z8g.js} +2 -2
  10. package/dist/_chunks/{ai-prompt-input-CxvnXsAs.js.map → ai-prompt-input-ucwO-z8g.js.map} +1 -1
  11. package/dist/_chunks/{alia-sidebar-Dx-oeOV2.js → alia-sidebar-K3gaNH94.js} +7 -7
  12. package/dist/_chunks/{alia-sidebar-Dx-oeOV2.js.map → alia-sidebar-K3gaNH94.js.map} +1 -1
  13. package/dist/_chunks/{anamnesis-card-D8Si-2GV.js → anamnesis-card-CPjry4ur.js} +2 -2
  14. package/dist/_chunks/{anamnesis-card-D8Si-2GV.js.map → anamnesis-card-CPjry4ur.js.map} +1 -1
  15. package/dist/_chunks/{anamnesis-summary-rows-CZirLRuv.js → anamnesis-summary-rows-D9LZZHLw.js} +9 -9
  16. package/dist/_chunks/{anamnesis-summary-rows-CZirLRuv.js.map → anamnesis-summary-rows-D9LZZHLw.js.map} +1 -1
  17. package/dist/_chunks/{appointment-card-BgLpE6T5.js → appointment-card-DETaIfBb.js} +2 -2
  18. package/dist/_chunks/{appointment-card-BgLpE6T5.js.map → appointment-card-DETaIfBb.js.map} +1 -1
  19. package/dist/_chunks/{appointment-peek-Dk11UOVW.js → appointment-peek-B79v56Zc.js} +4 -4
  20. package/dist/_chunks/{appointment-peek-Dk11UOVW.js.map → appointment-peek-B79v56Zc.js.map} +1 -1
  21. package/dist/_chunks/{appointment-timeline-wQ-PdkFV.js → appointment-timeline-tyJJPgVU.js} +5 -5
  22. package/dist/_chunks/{appointment-timeline-wQ-PdkFV.js.map → appointment-timeline-tyJJPgVU.js.map} +1 -1
  23. package/dist/_chunks/{appointment-tray-D7Gt6m8x.js → appointment-tray-Dq4zto_L.js} +4 -4
  24. package/dist/_chunks/{appointment-tray-D7Gt6m8x.js.map → appointment-tray-Dq4zto_L.js.map} +1 -1
  25. package/dist/_chunks/{audio-recorder-DZBtAvLH.js → audio-recorder-Ddlp5rVg.js} +3 -3
  26. package/dist/_chunks/{audio-recorder-DZBtAvLH.js.map → audio-recorder-Ddlp5rVg.js.map} +1 -1
  27. package/dist/_chunks/{balance-badge-cell-klaxFNL_.js → balance-badge-cell-BCEsdEOe.js} +4 -4
  28. package/dist/_chunks/{balance-badge-cell-klaxFNL_.js.map → balance-badge-cell-BCEsdEOe.js.map} +1 -1
  29. package/dist/_chunks/{bishop-score-BMLRvXYF.js → bishop-score-1NAiZh0K.js} +2 -2
  30. package/dist/_chunks/{bishop-score-BMLRvXYF.js.map → bishop-score-1NAiZh0K.js.map} +1 -1
  31. package/dist/_chunks/{bmi-calculator-DUhRyyrA.js → bmi-calculator-ZzzPZhhI.js} +2 -2
  32. package/dist/_chunks/{bmi-calculator-DUhRyyrA.js.map → bmi-calculator-ZzzPZhhI.js.map} +1 -1
  33. package/dist/_chunks/{booking-Cdzd8kyY.js → booking-DmyX24Ls.js} +5 -5
  34. package/dist/_chunks/{booking-Cdzd8kyY.js.map → booking-DmyX24Ls.js.map} +1 -1
  35. package/dist/_chunks/{button-18oBsI3n.js → button-CYPx2xFq.js} +38 -36
  36. package/dist/_chunks/button-CYPx2xFq.js.map +1 -0
  37. package/dist/_chunks/{button-group-BSDqso_C.js → button-group-t9RrsCS6.js} +3 -3
  38. package/dist/_chunks/{button-group-BSDqso_C.js.map → button-group-t9RrsCS6.js.map} +1 -1
  39. package/dist/_chunks/{calendar-zpE9qTM4.js → calendar-aqzmITxw.js} +543 -508
  40. package/dist/_chunks/calendar-aqzmITxw.js.map +1 -0
  41. package/dist/_chunks/{calendar-event-card-DplPh1wv.js → calendar-event-card-DyFSIehr.js} +148 -145
  42. package/dist/_chunks/{calendar-event-card-DplPh1wv.js.map → calendar-event-card-DyFSIehr.js.map} +1 -1
  43. package/dist/_chunks/calendar-workspace-BqoPkCUp.js +10597 -0
  44. package/dist/_chunks/calendar-workspace-BqoPkCUp.js.map +1 -0
  45. package/dist/_chunks/{care-plan-card-ciBaaguw.js → care-plan-card-amX33mMF.js} +2 -2
  46. package/dist/_chunks/{care-plan-card-ciBaaguw.js.map → care-plan-card-amX33mMF.js.map} +1 -1
  47. package/dist/_chunks/{care-plan-entry-card-D7A0whiZ.js → care-plan-entry-card-DNkEucjN.js} +2 -2
  48. package/dist/_chunks/{care-plan-entry-card-D7A0whiZ.js.map → care-plan-entry-card-DNkEucjN.js.map} +1 -1
  49. package/dist/_chunks/{care-plan-header-DKV1gLqv.js → care-plan-header-CJi853Rf.js} +2 -2
  50. package/dist/_chunks/{care-plan-header-DKV1gLqv.js.map → care-plan-header-CJi853Rf.js.map} +1 -1
  51. package/dist/_chunks/{carousel.agent-DqDGR2yH.js → carousel.agent-2EhJsAtl.js} +2 -2
  52. package/dist/_chunks/{carousel.agent-DqDGR2yH.js.map → carousel.agent-2EhJsAtl.js.map} +1 -1
  53. package/dist/_chunks/{chart-VjuXDXOZ.js → chart-B2HnwMP5.js} +3 -3
  54. package/dist/_chunks/{chart-VjuXDXOZ.js.map → chart-B2HnwMP5.js.map} +1 -1
  55. package/dist/_chunks/{chat-input-BVho_SqP.js → chat-input-CHUsUFOD.js} +2 -2
  56. package/dist/_chunks/{chat-input-BVho_SqP.js.map → chat-input-CHUsUFOD.js.map} +1 -1
  57. package/dist/_chunks/{chat-message-B4ihjNy3.js → chat-message-DTcRGhNo.js} +3 -3
  58. package/dist/_chunks/{chat-message-B4ihjNy3.js.map → chat-message-DTcRGhNo.js.map} +1 -1
  59. package/dist/_chunks/{code-block-C_eNHWaa.js → code-block-BrwcZNPq.js} +2 -2
  60. package/dist/_chunks/{code-block-C_eNHWaa.js.map → code-block-BrwcZNPq.js.map} +1 -1
  61. package/dist/_chunks/{connection-status-Cfux3TvH.js → connection-status-DMheLE65.js} +3 -3
  62. package/dist/_chunks/{connection-status-Cfux3TvH.js.map → connection-status-DMheLE65.js.map} +1 -1
  63. package/dist/_chunks/{contact-profile-card-Dj4NgBL-.js → contact-profile-card-zQLGGFKG.js} +2 -2
  64. package/dist/_chunks/{contact-profile-card-Dj4NgBL-.js.map → contact-profile-card-zQLGGFKG.js.map} +1 -1
  65. package/dist/_chunks/{control-room-rail-DAO0qfOI.js → control-room-rail-5iuM3jcm.js} +3 -3
  66. package/dist/_chunks/{control-room-rail-DAO0qfOI.js.map → control-room-rail-5iuM3jcm.js.map} +1 -1
  67. package/dist/_chunks/{copy-field-Cm4y5Bff.js → copy-field-C-KvrgOG.js} +2 -2
  68. package/dist/_chunks/{copy-field-Cm4y5Bff.js.map → copy-field-C-KvrgOG.js.map} +1 -1
  69. package/dist/_chunks/{cycle-calculator-B9lBRNiZ.js → cycle-calculator-DQMCeEzn.js} +2 -2
  70. package/dist/_chunks/{cycle-calculator-B9lBRNiZ.js.map → cycle-calculator-DQMCeEzn.js.map} +1 -1
  71. package/dist/_chunks/{dashboard-grid-uX7x1ePj.js → dashboard-grid-H7uph3HO.js} +2 -2
  72. package/dist/_chunks/{dashboard-grid-uX7x1ePj.js.map → dashboard-grid-H7uph3HO.js.map} +1 -1
  73. package/dist/_chunks/{data-table-CrI3_bjH.js → data-table-C4yPR89K.js} +7 -7
  74. package/dist/_chunks/{data-table-CrI3_bjH.js.map → data-table-C4yPR89K.js.map} +1 -1
  75. package/dist/_chunks/{data-table-tabs-CzYYKp2_.js → data-table-tabs-Dd_O1nPY.js} +3 -3
  76. package/dist/_chunks/{data-table-tabs-CzYYKp2_.js.map → data-table-tabs-Dd_O1nPY.js.map} +1 -1
  77. package/dist/_chunks/{description-list-1A2DEbE6.js → description-list-DOPu69Jg.js} +2 -2
  78. package/dist/_chunks/{description-list-1A2DEbE6.js.map → description-list-DOPu69Jg.js.map} +1 -1
  79. package/dist/_chunks/{document-preview-Od2Hz4z5.js → document-preview-Dzh1YAz8.js} +3 -3
  80. package/dist/_chunks/{document-preview-Od2Hz4z5.js.map → document-preview-Dzh1YAz8.js.map} +1 -1
  81. package/dist/_chunks/{document-scanner-p0aGlzCy.js → document-scanner-BSVwMR4V.js} +2 -2
  82. package/dist/_chunks/{document-scanner-p0aGlzCy.js.map → document-scanner-BSVwMR4V.js.map} +1 -1
  83. package/dist/_chunks/dropdown-menu-DIzxr_lp.js +594 -0
  84. package/dist/_chunks/dropdown-menu-DIzxr_lp.js.map +1 -0
  85. package/dist/_chunks/{due-date-calculator-BVqJaxzd.js → due-date-calculator-DUjw4w5O.js} +2 -2
  86. package/dist/_chunks/{due-date-calculator-BVqJaxzd.js.map → due-date-calculator-DUjw4w5O.js.map} +1 -1
  87. package/dist/_chunks/{editable-currency-cell-renderer-D_G2Ap61.js → editable-currency-cell-renderer-Cch3RIJL.js} +3 -3
  88. package/dist/_chunks/{editable-currency-cell-renderer-D_G2Ap61.js.map → editable-currency-cell-renderer-Cch3RIJL.js.map} +1 -1
  89. package/dist/_chunks/{editable-description-B4NVdjvd.js → editable-description-CRQib91p.js} +3 -3
  90. package/dist/_chunks/{editable-description-B4NVdjvd.js.map → editable-description-CRQib91p.js.map} +1 -1
  91. package/dist/_chunks/{editor-overlay-BDiBvQmL.js → editor-overlay-DsA7vR5C.js} +2 -2
  92. package/dist/_chunks/{editor-overlay-BDiBvQmL.js.map → editor-overlay-DsA7vR5C.js.map} +1 -1
  93. package/dist/_chunks/{empty-state-DTBZ1ENT.js → empty-state-Ck1wVWdN.js} +2 -2
  94. package/dist/_chunks/{empty-state-DTBZ1ENT.js.map → empty-state-Ck1wVWdN.js.map} +1 -1
  95. package/dist/_chunks/{entity-summary-CFJfBdVP.js → entity-summary-Cvs21xPr.js} +3 -3
  96. package/dist/_chunks/{entity-summary-CFJfBdVP.js.map → entity-summary-Cvs21xPr.js.map} +1 -1
  97. package/dist/_chunks/{error-boundary-BxTqEXqj.js → error-boundary-C_HAzVLO.js} +2 -2
  98. package/dist/_chunks/{error-boundary-BxTqEXqj.js.map → error-boundary-C_HAzVLO.js.map} +1 -1
  99. package/dist/_chunks/{face-scheme-fku-RShg.js → face-scheme-DVZZTuXT.js} +5 -5
  100. package/dist/_chunks/{face-scheme-fku-RShg.js.map → face-scheme-DVZZTuXT.js.map} +1 -1
  101. package/dist/_chunks/{fetal-weight-B69yOS9W.js → fetal-weight-B-lO-948.js} +2 -2
  102. package/dist/_chunks/{fetal-weight-B69yOS9W.js.map → fetal-weight-B-lO-948.js.map} +1 -1
  103. package/dist/_chunks/{field-array-lIXrFWS0.js → field-array-B3IDOct8.js} +3 -3
  104. package/dist/_chunks/{field-array-lIXrFWS0.js.map → field-array-B3IDOct8.js.map} +1 -1
  105. package/dist/_chunks/{file-manager-C6QQPQV5.js → file-manager-COUb-w8j.js} +7 -7
  106. package/dist/_chunks/{file-manager-C6QQPQV5.js.map → file-manager-COUb-w8j.js.map} +1 -1
  107. package/dist/_chunks/{finished-terminal-B2oqXO0Y.js → finished-terminal-BrAWwfOw.js} +2 -2
  108. package/dist/_chunks/{finished-terminal-B2oqXO0Y.js.map → finished-terminal-BrAWwfOw.js.map} +1 -1
  109. package/dist/_chunks/{fiscal-code-input-BEF8eKIG.js → fiscal-code-input-CwUwhUZy.js} +2 -2
  110. package/dist/_chunks/{fiscal-code-input-BEF8eKIG.js.map → fiscal-code-input-CwUwhUZy.js.map} +1 -1
  111. package/dist/_chunks/floating-action-button-pojvb9gG.js.map +1 -1
  112. package/dist/_chunks/{freemium-paywall-B6JITu4l.js → freemium-paywall-DiPJrL18.js} +2 -2
  113. package/dist/_chunks/{freemium-paywall-B6JITu4l.js.map → freemium-paywall-DiPJrL18.js.map} +1 -1
  114. package/dist/_chunks/{gestational-age-calculator-DsGN6_HS.js → gestational-age-calculator-BVPtrWKf.js} +2 -2
  115. package/dist/_chunks/{gestational-age-calculator-DsGN6_HS.js.map → gestational-age-calculator-BVPtrWKf.js.map} +1 -1
  116. package/dist/_chunks/{hcg-doubling-D2SH-e7t.js → hcg-doubling-CPktiA3H.js} +2 -2
  117. package/dist/_chunks/{hcg-doubling-D2SH-e7t.js.map → hcg-doubling-CPktiA3H.js.map} +1 -1
  118. package/dist/_chunks/{header-CCjp5GvE.js → header-C8NbLgVq.js} +2 -2
  119. package/dist/_chunks/{header-CCjp5GvE.js.map → header-C8NbLgVq.js.map} +1 -1
  120. package/dist/_chunks/header-settings-D0M3WNTS.js +305 -0
  121. package/dist/_chunks/header-settings-D0M3WNTS.js.map +1 -0
  122. package/dist/_chunks/{help-me-write-templates-DQtT1qs_.js → help-me-write-templates-CYAKuXZ3.js} +5 -5
  123. package/dist/_chunks/{help-me-write-templates-DQtT1qs_.js.map → help-me-write-templates-CYAKuXZ3.js.map} +1 -1
  124. package/dist/_chunks/{hover-card-BplP5SzQ.js → hover-card-BM0vNmq4.js} +2 -2
  125. package/dist/_chunks/{hover-card-BplP5SzQ.js.map → hover-card-BM0vNmq4.js.map} +1 -1
  126. package/dist/_chunks/{icon-button-CY7GU_Se.js → icon-button-JAXAkqWC.js} +2 -2
  127. package/dist/_chunks/icon-button-JAXAkqWC.js.map +1 -0
  128. package/dist/_chunks/{icon-button-group-B_426QN_.js → icon-button-group-ud2BLmxe.js} +3 -3
  129. package/dist/_chunks/{icon-button-group-B_426QN_.js.map → icon-button-group-ud2BLmxe.js.map} +1 -1
  130. package/dist/_chunks/{icon-picker-ZLebyB0U.js → icon-picker-B1PwkUHy.js} +3 -3
  131. package/dist/_chunks/{icon-picker-ZLebyB0U.js.map → icon-picker-B1PwkUHy.js.map} +1 -1
  132. package/dist/_chunks/{image-cropper-_HiNN79d.js → image-cropper-DM6hpXUw.js} +2 -2
  133. package/dist/_chunks/{image-cropper-_HiNN79d.js.map → image-cropper-DM6hpXUw.js.map} +1 -1
  134. package/dist/_chunks/{info-tip-laBxZhKu.js → info-tip-CywkQ1NX.js} +2 -2
  135. package/dist/_chunks/{info-tip-laBxZhKu.js.map → info-tip-CywkQ1NX.js.map} +1 -1
  136. package/dist/_chunks/{insert-result-CSuPQyKL.js → insert-result-Fu9AHxR6.js} +2 -2
  137. package/dist/_chunks/{insert-result-CSuPQyKL.js.map → insert-result-Fu9AHxR6.js.map} +1 -1
  138. package/dist/_chunks/{key-value-pair-Dcdl3Gni.js → key-value-pair-BL1J3_Km.js} +2 -2
  139. package/dist/_chunks/{key-value-pair-Dcdl3Gni.js.map → key-value-pair-BL1J3_Km.js.map} +1 -1
  140. package/dist/_chunks/{kit-extensions-BTJSnM_H.js → kit-extensions-B9Qn6VIc.js} +6 -6
  141. package/dist/_chunks/{kit-extensions-BTJSnM_H.js.map → kit-extensions-B9Qn6VIc.js.map} +1 -1
  142. package/dist/_chunks/{link-cell-renderer-CkNbUsBM.js → link-cell-renderer-BcW3F1j9.js} +2 -2
  143. package/dist/_chunks/{link-cell-renderer-CkNbUsBM.js.map → link-cell-renderer-BcW3F1j9.js.map} +1 -1
  144. package/dist/_chunks/{locale-picker-DGkQmhV9.js → locale-picker-Z42P8T-i.js} +218 -213
  145. package/dist/_chunks/locale-picker-Z42P8T-i.js.map +1 -0
  146. package/dist/_chunks/{map-view-Bb7ClKSF.js → map-view-DxYPJjM9.js} +2 -2
  147. package/dist/_chunks/{map-view-Bb7ClKSF.js.map → map-view-DxYPJjM9.js.map} +1 -1
  148. package/dist/_chunks/{marketplace-app-shell-1uKqs4gD.js → marketplace-app-shell-rTTvWRrE.js} +6 -6
  149. package/dist/_chunks/{marketplace-app-shell-1uKqs4gD.js.map → marketplace-app-shell-rTTvWRrE.js.map} +1 -1
  150. package/dist/_chunks/{message-card-C2zsvyj0.js → message-card-CUBPPn4Z.js} +3 -3
  151. package/dist/_chunks/{message-card-C2zsvyj0.js.map → message-card-CUBPPn4Z.js.map} +1 -1
  152. package/dist/_chunks/{message-tray-CMlmxdH2.js → message-tray-uy3DAIbn.js} +4 -4
  153. package/dist/_chunks/{message-tray-CMlmxdH2.js.map → message-tray-uy3DAIbn.js.map} +1 -1
  154. package/dist/_chunks/{muscle-scheme-Co0NIgbU.js → muscle-scheme-CH-vQ7Ch.js} +2 -2
  155. package/dist/_chunks/{muscle-scheme-Co0NIgbU.js.map → muscle-scheme-CH-vQ7Ch.js.map} +1 -1
  156. package/dist/_chunks/{notes-panel-xxpFt-I1.js → notes-panel-Dka4Z2M7.js} +4 -4
  157. package/dist/_chunks/{notes-panel-xxpFt-I1.js.map → notes-panel-Dka4Z2M7.js.map} +1 -1
  158. package/dist/_chunks/{notification-card-DDzBCi8l.js → notification-card-Hy8w3UWx.js} +3 -3
  159. package/dist/_chunks/{notification-card-DDzBCi8l.js.map → notification-card-Hy8w3UWx.js.map} +1 -1
  160. package/dist/_chunks/{notification-tray-PnH2PBlZ.js → notification-tray-VuV3XXB8.js} +4 -4
  161. package/dist/_chunks/{notification-tray-PnH2PBlZ.js.map → notification-tray-VuV3XXB8.js.map} +1 -1
  162. package/dist/_chunks/{optical-prescription-DUufWXfZ.js → optical-prescription-C2n6d0HO.js} +2 -2
  163. package/dist/_chunks/{optical-prescription-DUufWXfZ.js.map → optical-prescription-C2n6d0HO.js.map} +1 -1
  164. package/dist/_chunks/{panel-subview-CzHutkA8.js → panel-subview-DAY-ToM3.js} +2 -2
  165. package/dist/_chunks/{panel-subview-CzHutkA8.js.map → panel-subview-DAY-ToM3.js.map} +1 -1
  166. package/dist/_chunks/{patient-details-tTlvrJSU.js → patient-details-D9sAM3qh.js} +3 -3
  167. package/dist/_chunks/{patient-details-tTlvrJSU.js.map → patient-details-D9sAM3qh.js.map} +1 -1
  168. package/dist/_chunks/{patient-field-row-DElFbpKc.js → patient-field-row-CT04C_lZ.js} +277 -257
  169. package/dist/_chunks/patient-field-row-CT04C_lZ.js.map +1 -0
  170. package/dist/_chunks/{patient-search-DgXdGkhK.js → patient-search-DkIukAMQ.js} +3 -3
  171. package/dist/_chunks/{patient-search-DgXdGkhK.js.map → patient-search-DkIukAMQ.js.map} +1 -1
  172. package/dist/_chunks/{patient-summary-card-DQ__6DR-.js → patient-summary-card-DI0BH-Fe.js} +5 -5
  173. package/dist/_chunks/{patient-summary-card-DQ__6DR-.js.map → patient-summary-card-DI0BH-Fe.js.map} +1 -1
  174. package/dist/_chunks/{payment-automation-upsell-ugi4np1l.js → payment-automation-upsell-vQBIyUky.js} +2 -2
  175. package/dist/_chunks/{payment-automation-upsell-ugi4np1l.js.map → payment-automation-upsell-vQBIyUky.js.map} +1 -1
  176. package/dist/_chunks/{payment-request-card-DMJB57Tv.js → payment-request-card-BSaJzhxz.js} +3 -3
  177. package/dist/_chunks/{payment-request-card-DMJB57Tv.js.map → payment-request-card-BSaJzhxz.js.map} +1 -1
  178. package/dist/_chunks/{periodontal-chart-DbGzKDj7.js → periodontal-chart-BcTcOc79.js} +2 -2
  179. package/dist/_chunks/{periodontal-chart-DbGzKDj7.js.map → periodontal-chart-BcTcOc79.js.map} +1 -1
  180. package/dist/_chunks/{periodontal-chart-card-DvHyP47v.js → periodontal-chart-card-NS_nToBf.js} +2 -2
  181. package/dist/_chunks/{periodontal-chart-card-DvHyP47v.js.map → periodontal-chart-card-NS_nToBf.js.map} +1 -1
  182. package/dist/_chunks/{popover-Dvb40vPH.js → popover-SASSeAdY.js} +2 -2
  183. package/dist/_chunks/{popover-Dvb40vPH.js.map → popover-SASSeAdY.js.map} +1 -1
  184. package/dist/_chunks/{practice-results-EKRiqWtQ.js → practice-results-C3ifcObw.js} +6 -6
  185. package/dist/_chunks/{practice-results-EKRiqWtQ.js.map → practice-results-C3ifcObw.js.map} +1 -1
  186. package/dist/_chunks/{pregnancy-dating-lfjjZVZH.js → pregnancy-dating-CpJ3iYvD.js} +2 -2
  187. package/dist/_chunks/{pregnancy-dating-lfjjZVZH.js.map → pregnancy-dating-CpJ3iYvD.js.map} +1 -1
  188. package/dist/_chunks/{pregnancy-weight-gain-WpNt-S0q.js → pregnancy-weight-gain-kDOhA2vZ.js} +2 -2
  189. package/dist/_chunks/{pregnancy-weight-gain-WpNt-S0q.js.map → pregnancy-weight-gain-kDOhA2vZ.js.map} +1 -1
  190. package/dist/_chunks/{privacy-lock-D6gq0GDg.js → privacy-lock-CEyvNpC8.js} +3 -3
  191. package/dist/_chunks/{privacy-lock-D6gq0GDg.js.map → privacy-lock-CEyvNpC8.js.map} +1 -1
  192. package/dist/_chunks/{privacy-mask-BC5lw2zB.js → privacy-mask-TzMlEu3Q.js} +2 -2
  193. package/dist/_chunks/{privacy-mask-BC5lw2zB.js.map → privacy-mask-TzMlEu3Q.js.map} +1 -1
  194. package/dist/_chunks/{product-hub-panel-CKeSCSeE.js → product-hub-panel-b70i9Hi1.js} +3 -3
  195. package/dist/_chunks/{product-hub-panel-CKeSCSeE.js.map → product-hub-panel-b70i9Hi1.js.map} +1 -1
  196. package/dist/_chunks/{public-header.agent-B9wDmUeB.js → public-header.agent-D0ApOrmx.js} +3 -3
  197. package/dist/_chunks/{public-header.agent-B9wDmUeB.js.map → public-header.agent-D0ApOrmx.js.map} +1 -1
  198. package/dist/_chunks/{radiograph-panel.agent-TmyIvTOa.js → radiograph-panel.agent-jhwaIW8U.js} +4 -4
  199. package/dist/_chunks/{radiograph-panel.agent-TmyIvTOa.js.map → radiograph-panel.agent-jhwaIW8U.js.map} +1 -1
  200. package/dist/_chunks/resource-chip-DQeCJzJf.js +143 -0
  201. package/dist/_chunks/resource-chip-DQeCJzJf.js.map +1 -0
  202. package/dist/_chunks/{reviews-panel-BdwFp_0c.js → reviews-panel-B5QC4FIp.js} +4 -4
  203. package/dist/_chunks/{reviews-panel-BdwFp_0c.js.map → reviews-panel-B5QC4FIp.js.map} +1 -1
  204. package/dist/_chunks/{rich-text-editor-y6ML0KeV.js → rich-text-editor-DoBXdwmx.js} +930 -943
  205. package/dist/_chunks/rich-text-editor-DoBXdwmx.js.map +1 -0
  206. package/dist/_chunks/{session-countdown-ACJyTXH2.js → session-countdown-26XB5u38.js} +2 -2
  207. package/dist/_chunks/{session-countdown-ACJyTXH2.js.map → session-countdown-26XB5u38.js.map} +1 -1
  208. package/dist/_chunks/{sheet-D0Lh0KR2.js → sheet-CwhNzxbr.js} +2 -2
  209. package/dist/_chunks/{sheet-D0Lh0KR2.js.map → sheet-CwhNzxbr.js.map} +1 -1
  210. package/dist/_chunks/{sign-in-with-alfadocs-button-CDyJAIzW.js → sign-in-with-alfadocs-button-jxbze77L.js} +2 -2
  211. package/dist/_chunks/{sign-in-with-alfadocs-button-CDyJAIzW.js.map → sign-in-with-alfadocs-button-jxbze77L.js.map} +1 -1
  212. package/dist/_chunks/{signature-request-BUGeG8oD.js → signature-request-BorHf3CY.js} +4 -4
  213. package/dist/_chunks/{signature-request-BUGeG8oD.js.map → signature-request-BorHf3CY.js.map} +1 -1
  214. package/dist/_chunks/{slot-grid-4fWH3Euk.js → slot-grid-xgf2UKLS.js} +4 -4
  215. package/dist/_chunks/{slot-grid-4fWH3Euk.js.map → slot-grid-xgf2UKLS.js.map} +1 -1
  216. package/dist/_chunks/social-sign-in-button-dlpPI5l7.js.map +1 -1
  217. package/dist/_chunks/{streaming-text-eRiizArc.js → streaming-text-Cos2fVTw.js} +2 -2
  218. package/dist/_chunks/{streaming-text-eRiizArc.js.map → streaming-text-Cos2fVTw.js.map} +1 -1
  219. package/dist/_chunks/{tab-bar-BHFf6knq.js → tab-bar-BrkMUW0c.js} +2 -2
  220. package/dist/_chunks/{tab-bar-BHFf6knq.js.map → tab-bar-BrkMUW0c.js.map} +1 -1
  221. package/dist/_chunks/tabs-tK22Mz7r.js +413 -0
  222. package/dist/_chunks/tabs-tK22Mz7r.js.map +1 -0
  223. package/dist/_chunks/{task-card-jaOhnj_q.js → task-card-CLpHmqEY.js} +2 -2
  224. package/dist/_chunks/{task-card-jaOhnj_q.js.map → task-card-CLpHmqEY.js.map} +1 -1
  225. package/dist/_chunks/{task-editor-DlvTwAfv.js → task-editor-B4UGsU7l.js} +6 -6
  226. package/dist/_chunks/{task-editor-DlvTwAfv.js.map → task-editor-B4UGsU7l.js.map} +1 -1
  227. package/dist/_chunks/{task-tray-HHyxi9ga.js → task-tray-dsmYgjVb.js} +4 -4
  228. package/dist/_chunks/{task-tray-HHyxi9ga.js.map → task-tray-dsmYgjVb.js.map} +1 -1
  229. package/dist/_chunks/{tasks-panel-DbSjq_mz.js → tasks-panel-CwwVw491.js} +6 -6
  230. package/dist/_chunks/{tasks-panel-DbSjq_mz.js.map → tasks-panel-CwwVw491.js.map} +1 -1
  231. package/dist/_chunks/{theme-toggle-LUBxlNDm.js → theme-toggle-jyoyhbJL.js} +4 -4
  232. package/dist/_chunks/{theme-toggle-LUBxlNDm.js.map → theme-toggle-jyoyhbJL.js.map} +1 -1
  233. package/dist/_chunks/{toast-CT8hjr9r.js → toast-FijDyPnv.js} +2 -2
  234. package/dist/_chunks/{toast-CT8hjr9r.js.map → toast-FijDyPnv.js.map} +1 -1
  235. package/dist/_chunks/{token-insert-menu-klwbxVKh.js → token-insert-menu-Cjf99IdN.js} +3 -3
  236. package/dist/_chunks/{token-insert-menu-klwbxVKh.js.map → token-insert-menu-Cjf99IdN.js.map} +1 -1
  237. package/dist/_chunks/{tool-rail-DEeX4PdN.js → tool-rail-DphMl1hX.js} +2 -2
  238. package/dist/_chunks/{tool-rail-DEeX4PdN.js.map → tool-rail-DphMl1hX.js.map} +1 -1
  239. package/dist/_chunks/{tooth-scheme-BkjhkI8g.js → tooth-scheme-BaCJnyg9.js} +663 -718
  240. package/dist/_chunks/tooth-scheme-BaCJnyg9.js.map +1 -0
  241. package/dist/_chunks/{unit-converter-Dp_KDxE6.js → unit-converter-CGpOgarU.js} +2 -2
  242. package/dist/_chunks/{unit-converter-Dp_KDxE6.js.map → unit-converter-CGpOgarU.js.map} +1 -1
  243. package/dist/_chunks/{use-appointment-details-read-5-hV-2xA.js → use-appointment-details-read-uEnJLVfA.js} +14 -14
  244. package/dist/_chunks/{use-appointment-details-read-5-hV-2xA.js.map → use-appointment-details-read-uEnJLVfA.js.map} +1 -1
  245. package/dist/_chunks/wallet-pay-button--dnR6NfJ.js.map +1 -1
  246. package/dist/_chunks/{warning-stack-CEgYkI1z.js → warning-stack-7Hffm7K1.js} +3 -3
  247. package/dist/_chunks/{warning-stack-CEgYkI1z.js.map → warning-stack-7Hffm7K1.js.map} +1 -1
  248. package/dist/_chunks/{workflow-map-qGkQTNvS.js → workflow-map-Jfe9L9Wt.js} +6 -6
  249. package/dist/_chunks/{workflow-map-qGkQTNvS.js.map → workflow-map-Jfe9L9Wt.js.map} +1 -1
  250. package/dist/_chunks/{workflow-status-ClHfz4Kr.js → workflow-status-jHfsIDzi.js} +2 -2
  251. package/dist/_chunks/{workflow-status-ClHfz4Kr.js.map → workflow-status-jHfsIDzi.js.map} +1 -1
  252. package/dist/agent-catalog.json +103 -38
  253. package/dist/agent-i18n/en.json +7 -4
  254. package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
  255. package/dist/components/_shared/field-visibility-cog.d.ts.map +1 -1
  256. package/dist/components/agenda-tray/index.js +1 -1
  257. package/dist/components/ai-credits-notice/index.js +1 -1
  258. package/dist/components/ai-permission-notice/index.js +1 -1
  259. package/dist/components/ai-prompt-input/index.js +1 -1
  260. package/dist/components/anamnesis-card/index.js +1 -1
  261. package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts +1 -1
  262. package/dist/components/appointment-card/index.js +2 -2
  263. package/dist/components/appointment-details-panel/index.js +1 -1
  264. package/dist/components/appointment-peek/index.js +1 -1
  265. package/dist/components/appointment-timeline/index.js +1 -1
  266. package/dist/components/audio-recorder/index.js +1 -1
  267. package/dist/components/bishop-score/index.js +1 -1
  268. package/dist/components/bmi-calculator/index.js +1 -1
  269. package/dist/components/booking/index.js +1 -1
  270. package/dist/components/button/button.d.ts +11 -0
  271. package/dist/components/button/button.d.ts.map +1 -1
  272. package/dist/components/button/icon-button.d.ts +4 -0
  273. package/dist/components/button/icon-button.d.ts.map +1 -1
  274. package/dist/components/button/index.js +2 -2
  275. package/dist/components/button-group/index.js +1 -1
  276. package/dist/components/calendar/calendar.d.ts +11 -3
  277. package/dist/components/calendar/calendar.d.ts.map +1 -1
  278. package/dist/components/calendar/index.js +1 -1
  279. package/dist/components/calendar-event-card/calendar-event-card.d.ts +6 -0
  280. package/dist/components/calendar-event-card/calendar-event-card.d.ts.map +1 -1
  281. package/dist/components/calendar-event-card/index.js +1 -1
  282. package/dist/components/care-plan-card/index.js +1 -1
  283. package/dist/components/care-plan-entry-card/index.js +1 -1
  284. package/dist/components/care-plan-header/index.js +1 -1
  285. package/dist/components/carousel/index.js +1 -1
  286. package/dist/components/chart/chart.d.ts +1 -1
  287. package/dist/components/chart/index.js +1 -1
  288. package/dist/components/chat-input/index.js +1 -1
  289. package/dist/components/chat-message/index.js +1 -1
  290. package/dist/components/connection-status/index.js +1 -1
  291. package/dist/components/contact-profile-card/index.js +1 -1
  292. package/dist/components/control-room-rail/index.js +1 -1
  293. package/dist/components/copy-field/index.js +1 -1
  294. package/dist/components/cycle-calculator/index.js +1 -1
  295. package/dist/components/dashboard-grid/index.js +1 -1
  296. package/dist/components/data-table/index.js +4 -4
  297. package/dist/components/data-table-tabs/index.js +1 -1
  298. package/dist/components/description-list/index.js +1 -1
  299. package/dist/components/document-preview/index.js +1 -1
  300. package/dist/components/document-scanner/index.js +1 -1
  301. package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts.map +1 -1
  302. package/dist/components/dropdown-menu/dropdown-menu.d.ts +52 -2
  303. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  304. package/dist/components/dropdown-menu/index.d.ts +1 -1
  305. package/dist/components/dropdown-menu/index.d.ts.map +1 -1
  306. package/dist/components/dropdown-menu/index.js +1 -1
  307. package/dist/components/due-date-calculator/index.js +1 -1
  308. package/dist/components/editable-description/index.js +1 -1
  309. package/dist/components/editor-overlay/index.js +1 -1
  310. package/dist/components/empty-state/index.js +1 -1
  311. package/dist/components/entity-summary/index.js +1 -1
  312. package/dist/components/error-boundary/index.js +1 -1
  313. package/dist/components/face-scheme/index.js +1 -1
  314. package/dist/components/fetal-weight/index.js +1 -1
  315. package/dist/components/field-array/index.js +1 -1
  316. package/dist/components/file-manager/index.js +1 -1
  317. package/dist/components/finished-terminal/index.js +1 -1
  318. package/dist/components/fiscal-code-input/index.js +1 -1
  319. package/dist/components/floating-action-button/floating-action-button.d.ts.map +1 -1
  320. package/dist/components/freemium-paywall/index.js +1 -1
  321. package/dist/components/gestational-age-calculator/index.js +1 -1
  322. package/dist/components/hcg-doubling/index.js +1 -1
  323. package/dist/components/header/index.js +1 -1
  324. package/dist/components/header-settings/header-settings.d.ts +3 -3
  325. package/dist/components/header-settings/header-settings.d.ts.map +1 -1
  326. package/dist/components/header-settings/index.js +1 -1
  327. package/dist/components/hover-card/index.js +1 -1
  328. package/dist/components/icon-button/index.js +1 -1
  329. package/dist/components/icon-button-group/index.js +1 -1
  330. package/dist/components/icon-picker/index.js +1 -1
  331. package/dist/components/image-cropper/index.js +1 -1
  332. package/dist/components/info-tip/index.js +1 -1
  333. package/dist/components/key-value-pair/index.js +1 -1
  334. package/dist/components/locale-picker/index.js +1 -1
  335. package/dist/components/locale-picker/locale-picker.d.ts +7 -0
  336. package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
  337. package/dist/components/map-view/index.js +1 -1
  338. package/dist/components/message-card/index.js +1 -1
  339. package/dist/components/message-tray/index.js +1 -1
  340. package/dist/components/muscle-scheme/index.js +1 -1
  341. package/dist/components/notes-panel/index.js +1 -1
  342. package/dist/components/notification-card/index.js +1 -1
  343. package/dist/components/notification-tray/index.js +1 -1
  344. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  345. package/dist/components/optical-prescription/index.js +1 -1
  346. package/dist/components/panel-subview/index.js +1 -1
  347. package/dist/components/patient-details/index.js +1 -1
  348. package/dist/components/patient-details/patient-details.d.ts +1 -1
  349. package/dist/components/patient-search/index.js +1 -1
  350. package/dist/components/patient-summary-card/index.js +1 -1
  351. package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
  352. package/dist/components/patient-table/index.js +1 -1
  353. package/dist/components/payment-card/index.js +1 -1
  354. package/dist/components/periodontal-chart/index.js +1 -1
  355. package/dist/components/periodontal-chart-card/index.js +1 -1
  356. package/dist/components/popover/index.js +1 -1
  357. package/dist/components/practice-results/index.js +1 -1
  358. package/dist/components/pregnancy-dating/index.js +1 -1
  359. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  360. package/dist/components/privacy-lock/index.js +1 -1
  361. package/dist/components/product-hub-tray/index.js +1 -1
  362. package/dist/components/public-header/index.js +1 -1
  363. package/dist/components/radiograph-panel/index.js +1 -1
  364. package/dist/components/resource-chip/index.d.ts +1 -1
  365. package/dist/components/resource-chip/index.d.ts.map +1 -1
  366. package/dist/components/resource-chip/index.js +3 -2
  367. package/dist/components/resource-chip/resource-chip.d.ts +20 -0
  368. package/dist/components/resource-chip/resource-chip.d.ts.map +1 -1
  369. package/dist/components/reviews-panel/index.js +1 -1
  370. package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
  371. package/dist/components/rich-text-editor/index.js +2 -2
  372. package/dist/components/session-countdown/index.js +1 -1
  373. package/dist/components/sheet/index.js +1 -1
  374. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  375. package/dist/components/skeleton-scheme/index.js +1 -1
  376. package/dist/components/slot-grid/index.js +1 -1
  377. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts.map +1 -1
  378. package/dist/components/streaming-text/index.js +1 -1
  379. package/dist/components/tab-bar/index.js +1 -1
  380. package/dist/components/tabs/index.js +1 -1
  381. package/dist/components/tabs/tabs.d.ts.map +1 -1
  382. package/dist/components/task-card/index.js +1 -1
  383. package/dist/components/task-editor/index.js +1 -1
  384. package/dist/components/task-tray/index.js +1 -1
  385. package/dist/components/tasks-panel/index.js +1 -1
  386. package/dist/components/theme-toggle/index.js +1 -1
  387. package/dist/components/toast/index.js +1 -1
  388. package/dist/components/token-insert-menu/index.js +1 -1
  389. package/dist/components/tool-rail/index.js +1 -1
  390. package/dist/components/tooth-scheme/index.js +1 -1
  391. package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -2
  392. package/dist/components/tooth-scheme/tooth-scheme.d.ts.map +1 -1
  393. package/dist/components/unit-converter/index.js +1 -1
  394. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts.map +1 -1
  395. package/dist/components/warning-stack/index.js +1 -1
  396. package/dist/components/workflow/index.js +1 -1
  397. package/dist/components/workflow/workflow-card.d.ts +1 -1
  398. package/dist/components/workflow-status/index.js +1 -1
  399. package/dist/i18n/locales/ar.d.ts +5 -0
  400. package/dist/i18n/locales/ar.d.ts.map +1 -1
  401. package/dist/i18n/locales/ar.js +5 -0
  402. package/dist/i18n/locales/ar.js.map +1 -1
  403. package/dist/i18n/locales/de.d.ts +5 -0
  404. package/dist/i18n/locales/de.d.ts.map +1 -1
  405. package/dist/i18n/locales/de.js +5 -0
  406. package/dist/i18n/locales/de.js.map +1 -1
  407. package/dist/i18n/locales/el.d.ts +5 -0
  408. package/dist/i18n/locales/el.d.ts.map +1 -1
  409. package/dist/i18n/locales/el.js +5 -0
  410. package/dist/i18n/locales/el.js.map +1 -1
  411. package/dist/i18n/locales/en.d.ts +5 -0
  412. package/dist/i18n/locales/en.d.ts.map +1 -1
  413. package/dist/i18n/locales/en.js +5 -0
  414. package/dist/i18n/locales/en.js.map +1 -1
  415. package/dist/i18n/locales/es.d.ts +5 -0
  416. package/dist/i18n/locales/es.d.ts.map +1 -1
  417. package/dist/i18n/locales/es.js +5 -0
  418. package/dist/i18n/locales/es.js.map +1 -1
  419. package/dist/i18n/locales/fr.d.ts +5 -0
  420. package/dist/i18n/locales/fr.d.ts.map +1 -1
  421. package/dist/i18n/locales/fr.js +5 -0
  422. package/dist/i18n/locales/fr.js.map +1 -1
  423. package/dist/i18n/locales/hi.d.ts +5 -0
  424. package/dist/i18n/locales/hi.d.ts.map +1 -1
  425. package/dist/i18n/locales/hi.js +5 -0
  426. package/dist/i18n/locales/hi.js.map +1 -1
  427. package/dist/i18n/locales/it.d.ts +5 -0
  428. package/dist/i18n/locales/it.d.ts.map +1 -1
  429. package/dist/i18n/locales/it.js +5 -0
  430. package/dist/i18n/locales/it.js.map +1 -1
  431. package/dist/i18n/locales/ja.d.ts +5 -0
  432. package/dist/i18n/locales/ja.d.ts.map +1 -1
  433. package/dist/i18n/locales/ja.js +5 -0
  434. package/dist/i18n/locales/ja.js.map +1 -1
  435. package/dist/i18n/locales/nl.d.ts +5 -0
  436. package/dist/i18n/locales/nl.d.ts.map +1 -1
  437. package/dist/i18n/locales/nl.js +5 -0
  438. package/dist/i18n/locales/nl.js.map +1 -1
  439. package/dist/i18n/locales/pl.d.ts +5 -0
  440. package/dist/i18n/locales/pl.d.ts.map +1 -1
  441. package/dist/i18n/locales/pl.js +5 -0
  442. package/dist/i18n/locales/pl.js.map +1 -1
  443. package/dist/i18n/locales/pt.d.ts +5 -0
  444. package/dist/i18n/locales/pt.d.ts.map +1 -1
  445. package/dist/i18n/locales/pt.js +5 -0
  446. package/dist/i18n/locales/pt.js.map +1 -1
  447. package/dist/i18n/locales/ro.d.ts +5 -0
  448. package/dist/i18n/locales/ro.d.ts.map +1 -1
  449. package/dist/i18n/locales/ro.js +5 -0
  450. package/dist/i18n/locales/ro.js.map +1 -1
  451. package/dist/i18n/locales/ru.d.ts +5 -0
  452. package/dist/i18n/locales/ru.d.ts.map +1 -1
  453. package/dist/i18n/locales/ru.js +5 -0
  454. package/dist/i18n/locales/ru.js.map +1 -1
  455. package/dist/i18n/locales/sq.d.ts +5 -0
  456. package/dist/i18n/locales/sq.d.ts.map +1 -1
  457. package/dist/i18n/locales/sq.js +5 -0
  458. package/dist/i18n/locales/sq.js.map +1 -1
  459. package/dist/i18n/locales/sv.d.ts +5 -0
  460. package/dist/i18n/locales/sv.d.ts.map +1 -1
  461. package/dist/i18n/locales/sv.js +5 -0
  462. package/dist/i18n/locales/sv.js.map +1 -1
  463. package/dist/i18n/locales/tr.d.ts +5 -0
  464. package/dist/i18n/locales/tr.d.ts.map +1 -1
  465. package/dist/i18n/locales/tr.js +5 -0
  466. package/dist/i18n/locales/tr.js.map +1 -1
  467. package/dist/i18n/locales/zh.d.ts +5 -0
  468. package/dist/i18n/locales/zh.d.ts.map +1 -1
  469. package/dist/i18n/locales/zh.js +5 -0
  470. package/dist/i18n/locales/zh.js.map +1 -1
  471. package/dist/index.js +478 -477
  472. package/dist/locales/ar.json +5 -0
  473. package/dist/locales/de.json +5 -0
  474. package/dist/locales/el.json +5 -0
  475. package/dist/locales/en.json +5 -0
  476. package/dist/locales/es.json +5 -0
  477. package/dist/locales/fr.json +5 -0
  478. package/dist/locales/hi.json +5 -0
  479. package/dist/locales/it.json +5 -0
  480. package/dist/locales/ja.json +5 -0
  481. package/dist/locales/nl.json +5 -0
  482. package/dist/locales/pl.json +5 -0
  483. package/dist/locales/pt.json +5 -0
  484. package/dist/locales/ro.json +5 -0
  485. package/dist/locales/ru.json +5 -0
  486. package/dist/locales/sq.json +5 -0
  487. package/dist/locales/sv.json +5 -0
  488. package/dist/locales/tr.json +5 -0
  489. package/dist/locales/zh.json +5 -0
  490. package/dist/patterns/alia-assistant/index.js +1 -1
  491. package/dist/patterns/anamnesis/index.js +1 -1
  492. package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
  493. package/dist/patterns/calendar/calendar.surface.d.ts +4 -1
  494. package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
  495. package/dist/patterns/calendar/index.js +1 -1
  496. package/dist/patterns/help-me-write-templates/index.js +1 -1
  497. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  498. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  499. package/dist/patterns/signature-request/index.js +1 -1
  500. package/dist/tokens.css +2 -1
  501. package/package.json +1 -1
  502. package/dist/_chunks/button-18oBsI3n.js.map +0 -1
  503. package/dist/_chunks/calendar-workspace-CWRH4x15.js +0 -10577
  504. package/dist/_chunks/calendar-workspace-CWRH4x15.js.map +0 -1
  505. package/dist/_chunks/calendar-zpE9qTM4.js.map +0 -1
  506. package/dist/_chunks/dropdown-menu-C8PaW3lR.js +0 -369
  507. package/dist/_chunks/dropdown-menu-C8PaW3lR.js.map +0 -1
  508. package/dist/_chunks/header-settings-ZXa6hXuu.js +0 -335
  509. package/dist/_chunks/header-settings-ZXa6hXuu.js.map +0 -1
  510. package/dist/_chunks/icon-button-CY7GU_Se.js.map +0 -1
  511. package/dist/_chunks/locale-picker-DGkQmhV9.js.map +0 -1
  512. package/dist/_chunks/patient-field-row-DElFbpKc.js.map +0 -1
  513. package/dist/_chunks/resource-chip-DYTG0IQQ.js +0 -83
  514. package/dist/_chunks/resource-chip-DYTG0IQQ.js.map +0 -1
  515. package/dist/_chunks/rich-text-editor-y6ML0KeV.js.map +0 -1
  516. package/dist/_chunks/tabs-CFsuMQ5H.js +0 -409
  517. package/dist/_chunks/tabs-CFsuMQ5H.js.map +0 -1
  518. package/dist/_chunks/tooth-scheme-BkjhkI8g.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"entity-summary-CFJfBdVP.js","sources":["../../node_modules/lucide-react/dist/esm/icons/contact-round.mjs","../../src/components/entity-summary/entity-summary.agent.ts","../../src/components/entity-summary/entity-summary.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M16 2v2\", key: \"scm5qe\" }],\n [\"path\", { d: \"M17.915 22a6 6 0 0 0-12 0\", key: \"suqz9p\" }],\n [\"path\", { d: \"M8 2v2\", key: \"pbkmx\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"4\", key: \"4exip2\" }],\n [\"rect\", { x: \"3\", y: \"4\", width: \"18\", height: \"18\", rx: \"2\", key: \"12vinp\" }]\n];\nconst ContactRound = createLucideIcon(\"contact-round\", __iconNode);\n\nexport { __iconNode, ContactRound as default };\n//# sourceMappingURL=contact-round.mjs.map\n","/* -------------------------------------------------------------------- */\n/* Agent adapter — EntitySummary. */\n/* */\n/* The AI narrative brief (\"Sintesi IA\") for an entity. The agent can */\n/* read the brief's STRUCTURE (generated-at + section ids / headings / */\n/* tone / item counts — fixed category labels, never the entity name or */\n/* the bullet items, both PHI) and drive the two affordances: regenerate */\n/* the brief and dismiss the panel. Generation itself is gated upstream */\n/* by AiConsentBanner; this adapter only re-requests an already-consented */\n/* brief. */\n/* -------------------------------------------------------------------- */\n\nimport type { AgentAdapter } from '../../agent/types';\nimport type { EntitySummaryHandle } from './entity-summary';\n\nexport const entitySummaryAgent: AgentAdapter<EntitySummaryHandle> = {\n id: 'entity-summary',\n // 'close' backs close; regenerate is a host-driven refresh with no\n // dedicated capability in the closed vocabulary.\n capabilities: ['close'],\n state: {\n sections: {\n type: 'Array<{ id: string; heading: string; tone: \"default\" | \"attention\"; itemCount: number }>',\n descriptionKey: 'ui.agent.entitySummary.state.sections',\n description:\n 'Structural section list — ids, fixed category headings, tone and item counts. Never the entity name or the bullet items (both PHI).',\n read: (handle) => handle.getState().sections,\n },\n generatedAtIso: {\n type: 'string | undefined',\n descriptionKey: 'ui.agent.entitySummary.state.generatedAtIso',\n description: 'ISO-8601 instant the brief was generated, when known.',\n read: (handle) => handle.getState().generatedAtIso,\n },\n },\n actions: {\n regenerate: {\n // Re-requests a fresh brief from the model — reaches an external system.\n safety: 'write',\n openWorld: true,\n descriptionKey: 'ui.agent.entitySummary.actions.regenerate',\n description:\n 'Request the host to regenerate the AI brief. No-op when the regenerate affordance is not available.',\n invoke: (handle) => {\n if (handle.canRegenerate()) handle.regenerate();\n },\n },\n close: {\n // Ephemeral panel-visibility change — read.\n safety: 'read',\n idempotent: true,\n descriptionKey: 'ui.agent.entitySummary.actions.close',\n description:\n 'Dismiss the summary panel. No-op when the close affordance is not available (e.g. docked in the rail).',\n invoke: (handle) => {\n if (handle.canClose()) handle.close();\n },\n },\n },\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'entity-summary',\n description: 'Marks the EntitySummary panel region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description:\n 'Sourced from the id prop. Required to address a specific summary panel from the agent.',\n },\n },\n};\n","import {\n forwardRef,\n useId,\n useImperativeHandle,\n useMemo,\n useRef,\n type HTMLAttributes,\n type ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { ContactRound, Clock, RefreshCw, X } from 'lucide-react';\nimport { Alert } from '../alert';\nimport { Avatar } from '../avatar';\nimport { Button } from '../button';\nimport { Card } from '../card';\nimport { IconButton } from '../button/icon-button';\nimport { Link } from '../link';\nimport { PanelHeader } from '../panel-header';\nimport { Timestamp } from '../timestamp';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { entitySummaryAgent } from './entity-summary.agent';\n\n/* ------------------------------------------------------------------ */\n/* EntitySummary — the AI narrative brief for an entity. */\n/* */\n/* The kit form of platform's \"Sintesi IA\": a generated, sectioned */\n/* brief of a patient / care plan — header (entity · generated-at · */\n/* regenerate · corpus stats), N labelled sections of bullet items */\n/* (with inline entity links), and a BETA disclaimer. The `attention` */\n/* section tone carries the clinically valuable risk flags. */\n/* */\n/* The kit owns the layout, i18n and theming; the consumer passes */\n/* structured `sections` (data-in) so the brief re-themes and */\n/* localises rather than rendering a model HTML blob. Gate generation */\n/* behind `AiConsentBanner` upstream. */\n/* ------------------------------------------------------------------ */\n\n/** A corpus stat shown in the header (e.g. `{ value: 5, label: 'care plans' }`). */\nexport interface EntitySummaryStat {\n value: string | number;\n label: string;\n}\n\n/** One narrative section — a heading over a list of bullet items. */\nexport interface EntitySummarySection {\n id: string;\n heading: string;\n /**\n * Leading glyph for the section. On default sections it's the scannability\n * anchor shown in a `--primary`-tinted medallion beside the heading (e.g. a\n * calendar for \"Scheduled\", a wallet for \"Financial\"); omit it to render no\n * medallion. On `attention` sections it overrides the warning Alert's icon\n * (which defaults to an alert triangle).\n */\n icon?: ReactNode;\n /**\n * `attention` renders the section as the kit's warning `Alert` — the\n * standard risk-flag treatment (border, warning surface, alert glyph,\n * `--warning-foreground` text) — for clinically important callouts.\n */\n tone?: 'default' | 'attention';\n /** Bullet items — `ReactNode` so consumers compose inline entity links. */\n items: ReactNode[];\n}\n\n/**\n * Curated agent handle for EntitySummary. Exposes structural state only —\n * never the entity name or the section items (both PHI). See\n * `entity-summary.agent.ts`.\n */\nexport interface EntitySummaryHandle {\n /** Structural snapshot — generated-at + section ids/headings/tone/count. No PHI. */\n getState: () => {\n generatedAtIso?: string;\n sections: Array<{\n id: string;\n heading: string;\n tone: 'default' | 'attention';\n itemCount: number;\n }>;\n };\n /** Whether the regenerate affordance is available. */\n canRegenerate: () => boolean;\n /** Request the host to regenerate the brief (mirrors onRegenerate). */\n regenerate: () => void;\n /** Whether the close affordance is available. */\n canClose: () => boolean;\n /** Dismiss the panel (mirrors onClose). */\n close: () => void;\n}\n\nexport interface EntitySummaryProps extends Omit<\n HTMLAttributes<HTMLElement>,\n 'title' | 'children'\n> {\n /**\n * Stable instance id. Surfaced on the root as `data-component-id` so an\n * agent / MCP UI bridge can address this specific summary panel.\n */\n id?: string;\n /** Panel title. Defaults to the localised \"AI summary\". */\n title?: string;\n /** Entity name shown beside its avatar in the header (links when `entityHref` is set). */\n entityName?: string;\n /** Entity href for the name link. */\n entityHref?: string;\n /** Avatar image URL for the entity. Falls back to initials derived from `entityName`. */\n entityAvatarSrc?: string;\n /** ISO-8601 instant the brief was generated. */\n generatedAtIso?: string;\n /** Corpus the brief was built from, shown as a compact KPI card. */\n stats?: EntitySummaryStat[];\n /** The narrative sections, in order. */\n sections: EntitySummarySection[];\n /** Regenerate the brief. Omit to hide the affordance. */\n onRegenerate?: () => void;\n /** Regenerate-button label. */\n regenerateLabel?: string;\n /**\n * Dismiss the panel. Renders a close button in the panel header for\n * STANDALONE use (outside the rail). When docked in `ControlRoomRail`, omit\n * this — the rail injects its own close via `PanelHeaderActionsProvider`\n * (passing it while docked would render a duplicate close control).\n */\n onClose?: () => void;\n /** Footer disclaimer. Defaults to the BETA clinical-judgement note. */\n disclaimer?: ReactNode;\n /** BCP-47 locale for the generated-at timestamp. */\n locale?: string;\n /** Accessible name for the panel region (defaults to `title`). */\n 'aria-label'?: string;\n}\n\n/* ------------------------------------------------------------------ */\n/* Section presentation. The `attention` tone renders a different */\n/* element tree (the kit's warning Alert) rather than a class variant, */\n/* so the branch lives in `Section`; these constants carry the shared */\n/* class sets for the default (prose) sections. */\n/* ------------------------------------------------------------------ */\n\n// The default section's leading icon chip — a --primary-tinted medallion\n// that anchors the heading. No tone variants: the attention tone is owned\n// by the Alert primitive, so this stays a plain class set.\nconst MEDALLION_CLASSES =\n 'ds:flex ds:size-7 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-md)] ds:[&_svg]:size-4 ds:bg-primary/10 ds:text-[color:var(--primary)]';\n\n// The bullet list shared by every section — indented disc items.\nconst ITEMS_CLASSES =\n 'ds:m-0 ds:flex ds:list-disc ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-md)] type-body-sm';\n\nexport const EntitySummary = forwardRef<HTMLElement, EntitySummaryProps>(\n function EntitySummary(\n {\n id,\n title,\n entityName,\n entityHref,\n entityAvatarSrc,\n generatedAtIso,\n stats,\n sections,\n onRegenerate,\n regenerateLabel,\n onClose,\n disclaimer,\n locale,\n className,\n 'aria-label': ariaLabel,\n ...rest\n },\n ref,\n ) {\n const { t } = useTranslation();\n const headingId = useId();\n const heading =\n title ?? t('entitySummary.title', { defaultValue: 'AI summary' });\n\n /* ----- Agent handle (structural state + regenerate / close) ----- */\n const sectionsRef = useRef(sections);\n sectionsRef.current = sections;\n const generatedAtRef = useRef(generatedAtIso);\n generatedAtRef.current = generatedAtIso;\n const onRegenerateRef = useRef(onRegenerate);\n onRegenerateRef.current = onRegenerate;\n const onCloseRef = useRef(onClose);\n onCloseRef.current = onClose;\n\n const rootRef = useRef<HTMLElement>(null);\n useImperativeHandle(ref, () => rootRef.current as HTMLElement, []);\n\n const handle = useMemo<EntitySummaryHandle>(\n () => ({\n // Structural only — section headings are fixed category labels, never\n // the entity name or the bullet items (both PHI).\n getState: () => ({\n generatedAtIso: generatedAtRef.current,\n sections: sectionsRef.current.map((s) => ({\n id: s.id,\n heading: s.heading,\n tone: s.tone ?? 'default',\n itemCount: s.items.length,\n })),\n }),\n canRegenerate: () => !!onRegenerateRef.current,\n regenerate: () => onRegenerateRef.current?.(),\n canClose: () => !!onCloseRef.current,\n close: () => onCloseRef.current?.(),\n }),\n [],\n );\n useAgentRegistration(entitySummaryAgent, handle, id);\n\n // The generated-at line — the brief's \"subtitle\" under the entity name,\n // or a standalone line when there's no entity. A clock glyph leads it.\n const generatedLine = generatedAtIso ? (\n <span className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]\">\n <Clock aria-hidden=\"true\" className=\"ds:size-3.5 ds:shrink-0\" />\n <span>\n {t('entitySummary.generatedAt', { defaultValue: 'Generated' })}\n </span>\n <Timestamp value={generatedAtIso} format=\"absolute\" locale={locale} />\n </span>\n ) : null;\n\n return (\n <section\n ref={rootRef}\n data-component=\"entity-summary\"\n data-component-id={id}\n aria-labelledby={ariaLabel ? undefined : headingId}\n aria-label={ariaLabel}\n className={['ds:flex ds:flex-col', className].filter(Boolean).join(' ')}\n {...rest}\n >\n {/* Header — the shared rail-panel pattern. Title + Regenerate;\n the close affordance is injected by the rail, not the panel. */}\n <PanelHeader\n title={heading}\n icon={<ContactRound aria-hidden=\"true\" />}\n headingId={ariaLabel ? undefined : headingId}\n sticky\n divider\n actions={\n onRegenerate || onClose ? (\n <>\n {onRegenerate ? (\n <Button\n type=\"button\"\n size=\"sm\"\n intent=\"ghost\"\n startIcon={<RefreshCw aria-hidden=\"true\" />}\n onClick={onRegenerate}\n >\n {regenerateLabel ??\n t('entitySummary.regenerate', {\n defaultValue: 'Regenerate',\n })}\n </Button>\n ) : null}\n {onClose ? (\n <IconButton\n icon={<X aria-hidden=\"true\" />}\n size=\"sm\"\n intent=\"ghost\"\n aria-label={t('common.close', { defaultValue: 'Close' })}\n onClick={onClose}\n />\n ) : null}\n </>\n ) : undefined\n }\n />\n\n {/* Body */}\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]\">\n {entityName || generatedAtIso || (stats && stats.length > 0) ? (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {/* Identity — the entity's avatar + name, generated-at as the\n subtitle beneath. Without a name, the generated line stands\n alone. */}\n {entityName ? (\n <div className=\"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]\">\n <Avatar\n name={entityName}\n src={entityAvatarSrc}\n size=\"sm\"\n className=\"ds:shrink-0\"\n />\n <div className=\"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n {entityHref ? (\n <Link\n href={entityHref}\n className=\"type-body-sm ds:font-semibold\"\n >\n {entityName}\n </Link>\n ) : (\n <span className=\"type-body-sm ds:font-semibold ds:text-[color:var(--foreground)]\">\n {entityName}\n </span>\n )}\n {generatedLine}\n </div>\n </div>\n ) : (\n generatedLine\n )}\n\n {/* Corpus stats — a compact KPI card: value over label, with a\n hairline divider between cells. */}\n {stats && stats.length > 0 ? (\n <Card variant=\"elevated\">\n {/* eslint-disable-next-line jsx-a11y/no-redundant-roles -- role=\"list\" restores list semantics that ds:list-none strips in Safari/VoiceOver */}\n <ul\n role=\"list\"\n className=\"ds:m-0 ds:flex ds:list-none ds:items-stretch\"\n >\n {stats.map((stat, index) => (\n <li\n key={`${stat.label}-${index}`}\n className={[\n 'ds:flex ds:flex-1 ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-sm)] ds:text-center',\n index > 0\n ? 'ds:border-s ds:border-[color:var(--card-border)]'\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n <span className=\"type-metric ds:[--type-metric-size:var(--font-size-lg)] ds:text-[color:var(--foreground)]\">\n {stat.value}\n </span>\n <span className=\"type-meta ds:text-[color:var(--muted-foreground)]\">\n {stat.label}\n </span>\n </li>\n ))}\n </ul>\n </Card>\n ) : null}\n </div>\n ) : null}\n\n {/* Sections */}\n {sections.map((section) => (\n <Section key={section.id} section={section} />\n ))}\n\n {/* Disclaimer */}\n <p className=\"ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]\">\n {disclaimer ??\n t('entitySummary.disclaimer', {\n defaultValue:\n 'Does not replace clinical judgement · verify accuracy before clinical use · BETA',\n })}\n </p>\n </div>\n </section>\n );\n },\n);\n\nfunction Section({ section }: { section: EntitySummarySection }): ReactNode {\n const headingId = useId();\n\n // The risk-flag section composes the kit's warning `Alert` primitive rather\n // than re-painting the warning tokens by hand — same border, surface, alert\n // glyph, and `--warning-foreground` treatment as every other warning in the\n // app. `live=\"off\"`: the brief is static content, not a just-occurred event,\n // so the items read in normal flow instead of being announced assertively.\n // A per-section `icon` overrides Alert's default alert triangle.\n if (section.tone === 'attention') {\n // The shared `--shadow-card` lifts the warning callout to the same\n // elevation as the surrounding section cards, so the stack reads as one\n // set of raised panels rather than a flat warning band among cards.\n return (\n <Alert\n variant=\"warning\"\n live=\"off\"\n icon={section.icon}\n className=\"ds:shadow-[var(--shadow-card)]\"\n >\n <Alert.Title as=\"h3\">{section.heading}</Alert.Title>\n <ul className={ITEMS_CLASSES}>\n {section.items.map((item, index) => (\n <li key={index}>{item}</li>\n ))}\n </ul>\n </Alert>\n );\n }\n\n // Default sections are raised cards — the scannable \"panel per topic\" stack,\n // matching platform's Sintesi IA. The card owns its own padding (so we drive\n // it from a single content div rather than Card.Header/Body) and is named by\n // its heading for assistive tech.\n return (\n <Card variant=\"elevated\" aria-labelledby={headingId}>\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]\">\n <div className=\"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]\">\n {section.icon ? (\n <span aria-hidden=\"true\" className={MEDALLION_CLASSES}>\n {section.icon}\n </span>\n ) : null}\n <h3\n id={headingId}\n className=\"ds:m-0 type-eyebrow ds:text-[color:var(--foreground)]\"\n >\n {section.heading}\n </h3>\n </div>\n <ul className={`${ITEMS_CLASSES} ds:text-[color:var(--foreground)]`}>\n {section.items.map((item, index) => (\n <li key={index}>{item}</li>\n ))}\n </ul>\n </div>\n </Card>\n );\n}\n"],"names":["__iconNode","ContactRound","createLucideIcon","entitySummaryAgent","handle","MEDALLION_CLASSES","ITEMS_CLASSES","EntitySummary","forwardRef","id","title","entityName","entityHref","entityAvatarSrc","generatedAtIso","stats","sections","onRegenerate","regenerateLabel","onClose","disclaimer","locale","className","ariaLabel","rest","ref","t","useTranslation","headingId","useId","heading","sectionsRef","useRef","generatedAtRef","onRegenerateRef","onCloseRef","rootRef","useImperativeHandle","useMemo","s","_a","useAgentRegistration","generatedLine","jsxs","jsx","Clock","Timestamp","PanelHeader","Fragment","Button","RefreshCw","IconButton","X","Avatar","Link","Card","stat","index","section","Section","Alert","item"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,GAAG,WAAW,KAA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K;AAAA,MACL,MAAMF,EAAQ;AAAA,MACd,WAAU;AAAA,MAEV,UAAA;AAAA,QAAA,gBAAAd,EAACgB,EAAM,OAAN,EAAY,IAAG,MAAM,YAAQ,SAAQ;AAAA,QACtC,gBAAAhB,EAAC,MAAA,EAAG,WAAWtC,GACZ,YAAQ,MAAM,IAAI,CAACuD,GAAMJ,MACxB,gBAAAb,EAAC,MAAA,EAAgB,UAAAiB,EAAA,GAARJ,CAAa,CACvB,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IAUJ,gBAAAb,EAACW,KAAK,SAAQ,YAAW,mBAAiB3B,GACxC,UAAA,gBAAAe,EAAC,OAAA,EAAI,WAAU,2EACb,UAAA;AAAA,IAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,sDACZ,UAAA;AAAA,MAAAe,EAAQ,yBACN,QAAA,EAAK,eAAY,QAAO,WAAWrD,IACjC,UAAAqD,EAAQ,KAAA,CACX,IACE;AAAA,MACJ,gBAAAd;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,IAAIhB;AAAA,UACJ,WAAU;AAAA,UAET,UAAA8B,EAAQ;AAAA,QAAA;AAAA,MAAA;AAAA,IACX,GACF;AAAA,sBACC,MAAA,EAAG,WAAW,GAAGpD,CAAa,sCAC5B,UAAAoD,EAAQ,MAAM,IAAI,CAACG,GAAMJ,MACxB,gBAAAb,EAAC,QAAgB,UAAAiB,EAAA,GAARJ,CAAa,CACvB,EAAA,CACH;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"entity-summary-Cvs21xPr.js","sources":["../../node_modules/lucide-react/dist/esm/icons/contact-round.mjs","../../src/components/entity-summary/entity-summary.agent.ts","../../src/components/entity-summary/entity-summary.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M16 2v2\", key: \"scm5qe\" }],\n [\"path\", { d: \"M17.915 22a6 6 0 0 0-12 0\", key: \"suqz9p\" }],\n [\"path\", { d: \"M8 2v2\", key: \"pbkmx\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"4\", key: \"4exip2\" }],\n [\"rect\", { x: \"3\", y: \"4\", width: \"18\", height: \"18\", rx: \"2\", key: \"12vinp\" }]\n];\nconst ContactRound = createLucideIcon(\"contact-round\", __iconNode);\n\nexport { __iconNode, ContactRound as default };\n//# sourceMappingURL=contact-round.mjs.map\n","/* -------------------------------------------------------------------- */\n/* Agent adapter — EntitySummary. */\n/* */\n/* The AI narrative brief (\"Sintesi IA\") for an entity. The agent can */\n/* read the brief's STRUCTURE (generated-at + section ids / headings / */\n/* tone / item counts — fixed category labels, never the entity name or */\n/* the bullet items, both PHI) and drive the two affordances: regenerate */\n/* the brief and dismiss the panel. Generation itself is gated upstream */\n/* by AiConsentBanner; this adapter only re-requests an already-consented */\n/* brief. */\n/* -------------------------------------------------------------------- */\n\nimport type { AgentAdapter } from '../../agent/types';\nimport type { EntitySummaryHandle } from './entity-summary';\n\nexport const entitySummaryAgent: AgentAdapter<EntitySummaryHandle> = {\n id: 'entity-summary',\n // 'close' backs close; regenerate is a host-driven refresh with no\n // dedicated capability in the closed vocabulary.\n capabilities: ['close'],\n state: {\n sections: {\n type: 'Array<{ id: string; heading: string; tone: \"default\" | \"attention\"; itemCount: number }>',\n descriptionKey: 'ui.agent.entitySummary.state.sections',\n description:\n 'Structural section list — ids, fixed category headings, tone and item counts. Never the entity name or the bullet items (both PHI).',\n read: (handle) => handle.getState().sections,\n },\n generatedAtIso: {\n type: 'string | undefined',\n descriptionKey: 'ui.agent.entitySummary.state.generatedAtIso',\n description: 'ISO-8601 instant the brief was generated, when known.',\n read: (handle) => handle.getState().generatedAtIso,\n },\n },\n actions: {\n regenerate: {\n // Re-requests a fresh brief from the model — reaches an external system.\n safety: 'write',\n openWorld: true,\n descriptionKey: 'ui.agent.entitySummary.actions.regenerate',\n description:\n 'Request the host to regenerate the AI brief. No-op when the regenerate affordance is not available.',\n invoke: (handle) => {\n if (handle.canRegenerate()) handle.regenerate();\n },\n },\n close: {\n // Ephemeral panel-visibility change — read.\n safety: 'read',\n idempotent: true,\n descriptionKey: 'ui.agent.entitySummary.actions.close',\n description:\n 'Dismiss the summary panel. No-op when the close affordance is not available (e.g. docked in the rail).',\n invoke: (handle) => {\n if (handle.canClose()) handle.close();\n },\n },\n },\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'entity-summary',\n description: 'Marks the EntitySummary panel region.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description:\n 'Sourced from the id prop. Required to address a specific summary panel from the agent.',\n },\n },\n};\n","import {\n forwardRef,\n useId,\n useImperativeHandle,\n useMemo,\n useRef,\n type HTMLAttributes,\n type ReactNode,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { ContactRound, Clock, RefreshCw, X } from 'lucide-react';\nimport { Alert } from '../alert';\nimport { Avatar } from '../avatar';\nimport { Button } from '../button';\nimport { Card } from '../card';\nimport { IconButton } from '../button/icon-button';\nimport { Link } from '../link';\nimport { PanelHeader } from '../panel-header';\nimport { Timestamp } from '../timestamp';\nimport { useAgentRegistration } from '../../agent/registry';\nimport { entitySummaryAgent } from './entity-summary.agent';\n\n/* ------------------------------------------------------------------ */\n/* EntitySummary — the AI narrative brief for an entity. */\n/* */\n/* The kit form of platform's \"Sintesi IA\": a generated, sectioned */\n/* brief of a patient / care plan — header (entity · generated-at · */\n/* regenerate · corpus stats), N labelled sections of bullet items */\n/* (with inline entity links), and a BETA disclaimer. The `attention` */\n/* section tone carries the clinically valuable risk flags. */\n/* */\n/* The kit owns the layout, i18n and theming; the consumer passes */\n/* structured `sections` (data-in) so the brief re-themes and */\n/* localises rather than rendering a model HTML blob. Gate generation */\n/* behind `AiConsentBanner` upstream. */\n/* ------------------------------------------------------------------ */\n\n/** A corpus stat shown in the header (e.g. `{ value: 5, label: 'care plans' }`). */\nexport interface EntitySummaryStat {\n value: string | number;\n label: string;\n}\n\n/** One narrative section — a heading over a list of bullet items. */\nexport interface EntitySummarySection {\n id: string;\n heading: string;\n /**\n * Leading glyph for the section. On default sections it's the scannability\n * anchor shown in a `--primary`-tinted medallion beside the heading (e.g. a\n * calendar for \"Scheduled\", a wallet for \"Financial\"); omit it to render no\n * medallion. On `attention` sections it overrides the warning Alert's icon\n * (which defaults to an alert triangle).\n */\n icon?: ReactNode;\n /**\n * `attention` renders the section as the kit's warning `Alert` — the\n * standard risk-flag treatment (border, warning surface, alert glyph,\n * `--warning-foreground` text) — for clinically important callouts.\n */\n tone?: 'default' | 'attention';\n /** Bullet items — `ReactNode` so consumers compose inline entity links. */\n items: ReactNode[];\n}\n\n/**\n * Curated agent handle for EntitySummary. Exposes structural state only —\n * never the entity name or the section items (both PHI). See\n * `entity-summary.agent.ts`.\n */\nexport interface EntitySummaryHandle {\n /** Structural snapshot — generated-at + section ids/headings/tone/count. No PHI. */\n getState: () => {\n generatedAtIso?: string;\n sections: Array<{\n id: string;\n heading: string;\n tone: 'default' | 'attention';\n itemCount: number;\n }>;\n };\n /** Whether the regenerate affordance is available. */\n canRegenerate: () => boolean;\n /** Request the host to regenerate the brief (mirrors onRegenerate). */\n regenerate: () => void;\n /** Whether the close affordance is available. */\n canClose: () => boolean;\n /** Dismiss the panel (mirrors onClose). */\n close: () => void;\n}\n\nexport interface EntitySummaryProps extends Omit<\n HTMLAttributes<HTMLElement>,\n 'title' | 'children'\n> {\n /**\n * Stable instance id. Surfaced on the root as `data-component-id` so an\n * agent / MCP UI bridge can address this specific summary panel.\n */\n id?: string;\n /** Panel title. Defaults to the localised \"AI summary\". */\n title?: string;\n /** Entity name shown beside its avatar in the header (links when `entityHref` is set). */\n entityName?: string;\n /** Entity href for the name link. */\n entityHref?: string;\n /** Avatar image URL for the entity. Falls back to initials derived from `entityName`. */\n entityAvatarSrc?: string;\n /** ISO-8601 instant the brief was generated. */\n generatedAtIso?: string;\n /** Corpus the brief was built from, shown as a compact KPI card. */\n stats?: EntitySummaryStat[];\n /** The narrative sections, in order. */\n sections: EntitySummarySection[];\n /** Regenerate the brief. Omit to hide the affordance. */\n onRegenerate?: () => void;\n /** Regenerate-button label. */\n regenerateLabel?: string;\n /**\n * Dismiss the panel. Renders a close button in the panel header for\n * STANDALONE use (outside the rail). When docked in `ControlRoomRail`, omit\n * this — the rail injects its own close via `PanelHeaderActionsProvider`\n * (passing it while docked would render a duplicate close control).\n */\n onClose?: () => void;\n /** Footer disclaimer. Defaults to the BETA clinical-judgement note. */\n disclaimer?: ReactNode;\n /** BCP-47 locale for the generated-at timestamp. */\n locale?: string;\n /** Accessible name for the panel region (defaults to `title`). */\n 'aria-label'?: string;\n}\n\n/* ------------------------------------------------------------------ */\n/* Section presentation. The `attention` tone renders a different */\n/* element tree (the kit's warning Alert) rather than a class variant, */\n/* so the branch lives in `Section`; these constants carry the shared */\n/* class sets for the default (prose) sections. */\n/* ------------------------------------------------------------------ */\n\n// The default section's leading icon chip — a --primary-tinted medallion\n// that anchors the heading. No tone variants: the attention tone is owned\n// by the Alert primitive, so this stays a plain class set.\nconst MEDALLION_CLASSES =\n 'ds:flex ds:size-7 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-md)] ds:[&_svg]:size-4 ds:bg-primary/10 ds:text-[color:var(--primary)]';\n\n// The bullet list shared by every section — indented disc items.\nconst ITEMS_CLASSES =\n 'ds:m-0 ds:flex ds:list-disc ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-md)] type-body-sm';\n\nexport const EntitySummary = forwardRef<HTMLElement, EntitySummaryProps>(\n function EntitySummary(\n {\n id,\n title,\n entityName,\n entityHref,\n entityAvatarSrc,\n generatedAtIso,\n stats,\n sections,\n onRegenerate,\n regenerateLabel,\n onClose,\n disclaimer,\n locale,\n className,\n 'aria-label': ariaLabel,\n ...rest\n },\n ref,\n ) {\n const { t } = useTranslation();\n const headingId = useId();\n const heading =\n title ?? t('entitySummary.title', { defaultValue: 'AI summary' });\n\n /* ----- Agent handle (structural state + regenerate / close) ----- */\n const sectionsRef = useRef(sections);\n sectionsRef.current = sections;\n const generatedAtRef = useRef(generatedAtIso);\n generatedAtRef.current = generatedAtIso;\n const onRegenerateRef = useRef(onRegenerate);\n onRegenerateRef.current = onRegenerate;\n const onCloseRef = useRef(onClose);\n onCloseRef.current = onClose;\n\n const rootRef = useRef<HTMLElement>(null);\n useImperativeHandle(ref, () => rootRef.current as HTMLElement, []);\n\n const handle = useMemo<EntitySummaryHandle>(\n () => ({\n // Structural only — section headings are fixed category labels, never\n // the entity name or the bullet items (both PHI).\n getState: () => ({\n generatedAtIso: generatedAtRef.current,\n sections: sectionsRef.current.map((s) => ({\n id: s.id,\n heading: s.heading,\n tone: s.tone ?? 'default',\n itemCount: s.items.length,\n })),\n }),\n canRegenerate: () => !!onRegenerateRef.current,\n regenerate: () => onRegenerateRef.current?.(),\n canClose: () => !!onCloseRef.current,\n close: () => onCloseRef.current?.(),\n }),\n [],\n );\n useAgentRegistration(entitySummaryAgent, handle, id);\n\n // The generated-at line — the brief's \"subtitle\" under the entity name,\n // or a standalone line when there's no entity. A clock glyph leads it.\n const generatedLine = generatedAtIso ? (\n <span className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]\">\n <Clock aria-hidden=\"true\" className=\"ds:size-3.5 ds:shrink-0\" />\n <span>\n {t('entitySummary.generatedAt', { defaultValue: 'Generated' })}\n </span>\n <Timestamp value={generatedAtIso} format=\"absolute\" locale={locale} />\n </span>\n ) : null;\n\n return (\n <section\n ref={rootRef}\n data-component=\"entity-summary\"\n data-component-id={id}\n aria-labelledby={ariaLabel ? undefined : headingId}\n aria-label={ariaLabel}\n className={['ds:flex ds:flex-col', className].filter(Boolean).join(' ')}\n {...rest}\n >\n {/* Header — the shared rail-panel pattern. Title + Regenerate;\n the close affordance is injected by the rail, not the panel. */}\n <PanelHeader\n title={heading}\n icon={<ContactRound aria-hidden=\"true\" />}\n headingId={ariaLabel ? undefined : headingId}\n sticky\n divider\n actions={\n onRegenerate || onClose ? (\n <>\n {onRegenerate ? (\n <Button\n type=\"button\"\n size=\"sm\"\n intent=\"ghost\"\n startIcon={<RefreshCw aria-hidden=\"true\" />}\n onClick={onRegenerate}\n >\n {regenerateLabel ??\n t('entitySummary.regenerate', {\n defaultValue: 'Regenerate',\n })}\n </Button>\n ) : null}\n {onClose ? (\n <IconButton\n icon={<X aria-hidden=\"true\" />}\n size=\"sm\"\n intent=\"ghost\"\n aria-label={t('common.close', { defaultValue: 'Close' })}\n onClick={onClose}\n />\n ) : null}\n </>\n ) : undefined\n }\n />\n\n {/* Body */}\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]\">\n {entityName || generatedAtIso || (stats && stats.length > 0) ? (\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n {/* Identity — the entity's avatar + name, generated-at as the\n subtitle beneath. Without a name, the generated line stands\n alone. */}\n {entityName ? (\n <div className=\"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]\">\n <Avatar\n name={entityName}\n src={entityAvatarSrc}\n size=\"sm\"\n className=\"ds:shrink-0\"\n />\n <div className=\"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]\">\n {entityHref ? (\n <Link\n href={entityHref}\n className=\"type-body-sm ds:font-semibold\"\n >\n {entityName}\n </Link>\n ) : (\n <span className=\"type-body-sm ds:font-semibold ds:text-[color:var(--foreground)]\">\n {entityName}\n </span>\n )}\n {generatedLine}\n </div>\n </div>\n ) : (\n generatedLine\n )}\n\n {/* Corpus stats — a compact KPI card: value over label, with a\n hairline divider between cells. */}\n {stats && stats.length > 0 ? (\n <Card variant=\"elevated\">\n {/* eslint-disable-next-line jsx-a11y/no-redundant-roles -- role=\"list\" restores list semantics that ds:list-none strips in Safari/VoiceOver */}\n <ul\n role=\"list\"\n className=\"ds:m-0 ds:flex ds:list-none ds:items-stretch\"\n >\n {stats.map((stat, index) => (\n <li\n key={`${stat.label}-${index}`}\n className={[\n 'ds:flex ds:flex-1 ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-sm)] ds:text-center',\n index > 0\n ? 'ds:border-s ds:border-[color:var(--card-border)]'\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n <span className=\"type-metric ds:[--type-metric-size:var(--font-size-lg)] ds:text-[color:var(--foreground)]\">\n {stat.value}\n </span>\n <span className=\"type-meta ds:text-[color:var(--muted-foreground)]\">\n {stat.label}\n </span>\n </li>\n ))}\n </ul>\n </Card>\n ) : null}\n </div>\n ) : null}\n\n {/* Sections */}\n {sections.map((section) => (\n <Section key={section.id} section={section} />\n ))}\n\n {/* Disclaimer */}\n <p className=\"ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]\">\n {disclaimer ??\n t('entitySummary.disclaimer', {\n defaultValue:\n 'Does not replace clinical judgement · verify accuracy before clinical use · BETA',\n })}\n </p>\n </div>\n </section>\n );\n },\n);\n\nfunction Section({ section }: { section: EntitySummarySection }): ReactNode {\n const headingId = useId();\n\n // The risk-flag section composes the kit's warning `Alert` primitive rather\n // than re-painting the warning tokens by hand — same border, surface, alert\n // glyph, and `--warning-foreground` treatment as every other warning in the\n // app. `live=\"off\"`: the brief is static content, not a just-occurred event,\n // so the items read in normal flow instead of being announced assertively.\n // A per-section `icon` overrides Alert's default alert triangle.\n if (section.tone === 'attention') {\n // The shared `--shadow-card` lifts the warning callout to the same\n // elevation as the surrounding section cards, so the stack reads as one\n // set of raised panels rather than a flat warning band among cards.\n return (\n <Alert\n variant=\"warning\"\n live=\"off\"\n icon={section.icon}\n className=\"ds:shadow-[var(--shadow-card)]\"\n >\n <Alert.Title as=\"h3\">{section.heading}</Alert.Title>\n <ul className={ITEMS_CLASSES}>\n {section.items.map((item, index) => (\n <li key={index}>{item}</li>\n ))}\n </ul>\n </Alert>\n );\n }\n\n // Default sections are raised cards — the scannable \"panel per topic\" stack,\n // matching platform's Sintesi IA. The card owns its own padding (so we drive\n // it from a single content div rather than Card.Header/Body) and is named by\n // its heading for assistive tech.\n return (\n <Card variant=\"elevated\" aria-labelledby={headingId}>\n <div className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]\">\n <div className=\"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]\">\n {section.icon ? (\n <span aria-hidden=\"true\" className={MEDALLION_CLASSES}>\n {section.icon}\n </span>\n ) : null}\n <h3\n id={headingId}\n className=\"ds:m-0 type-eyebrow ds:text-[color:var(--foreground)]\"\n >\n {section.heading}\n </h3>\n </div>\n <ul className={`${ITEMS_CLASSES} ds:text-[color:var(--foreground)]`}>\n {section.items.map((item, index) => (\n <li key={index}>{item}</li>\n ))}\n </ul>\n </div>\n </Card>\n );\n}\n"],"names":["__iconNode","ContactRound","createLucideIcon","entitySummaryAgent","handle","MEDALLION_CLASSES","ITEMS_CLASSES","EntitySummary","forwardRef","id","title","entityName","entityHref","entityAvatarSrc","generatedAtIso","stats","sections","onRegenerate","regenerateLabel","onClose","disclaimer","locale","className","ariaLabel","rest","ref","t","useTranslation","headingId","useId","heading","sectionsRef","useRef","generatedAtRef","onRegenerateRef","onCloseRef","rootRef","useImperativeHandle","useMemo","s","_a","useAgentRegistration","generatedLine","jsxs","jsx","Clock","Timestamp","PanelHeader","Fragment","Button","RefreshCw","IconButton","X","Avatar","Link","Card","stat","index","section","Section","Alert","item"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,GAAG,WAAW,KAAK,SAAQ,CAAE;AAAA,EACxC,CAAC,QAAQ,EAAE,GAAG,6BAA6B,KAAK,SAAQ,CAAE;AAAA,EAC1D,CAAC,QAAQ,E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IAAG,MAAM,YAAQ,SAAQ;AAAA,QACtC,gBAAAhB,EAAC,MAAA,EAAG,WAAWtC,GACZ,YAAQ,MAAM,IAAI,CAACuD,GAAMJ,MACxB,gBAAAb,EAAC,MAAA,EAAgB,UAAAiB,EAAA,GAARJ,CAAa,CACvB,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IAUJ,gBAAAb,EAACW,KAAK,SAAQ,YAAW,mBAAiB3B,GACxC,UAAA,gBAAAe,EAAC,OAAA,EAAI,WAAU,2EACb,UAAA;AAAA,IAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,sDACZ,UAAA;AAAA,MAAAe,EAAQ,yBACN,QAAA,EAAK,eAAY,QAAO,WAAWrD,IACjC,UAAAqD,EAAQ,KAAA,CACX,IACE;AAAA,MACJ,gBAAAd;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,IAAIhB;AAAA,UACJ,WAAU;AAAA,UAET,UAAA8B,EAAQ;AAAA,QAAA;AAAA,MAAA;AAAA,IACX,GACF;AAAA,sBACC,MAAA,EAAG,WAAW,GAAGpD,CAAa,sCAC5B,UAAAoD,EAAQ,MAAM,IAAI,CAACG,GAAMJ,MACxB,gBAAAb,EAAC,QAAgB,UAAAiB,EAAA,GAARJ,CAAa,CACvB,EAAA,CACH;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;","x_google_ignoreList":[0]}
@@ -4,7 +4,7 @@ var i = (n, e, r) => u(n, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { jsx as a, Fragment as y } from "react/jsx-runtime";
5
5
  import { Component as f } from "react";
6
6
  import { useTranslation as v } from "react-i18next";
7
- import { E } from "./empty-state-DTBZ1ENT.js";
7
+ import { E } from "./empty-state-Ck1wVWdN.js";
8
8
  function p({
9
9
  size: n,
10
10
  title: e,
@@ -87,4 +87,4 @@ i(b, "displayName", "ErrorBoundary");
87
87
  export {
88
88
  b as E
89
89
  };
90
- //# sourceMappingURL=error-boundary-BxTqEXqj.js.map
90
+ //# sourceMappingURL=error-boundary-C_HAzVLO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-boundary-BxTqEXqj.js","sources":["../../src/components/error-boundary/error-boundary.tsx"],"sourcesContent":["import { Component, type ErrorInfo, type ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { EmptyState } from '../empty-state/empty-state';\n\n/* ------------------------------------------------------------------ */\n/* Types */\n/* ------------------------------------------------------------------ */\n\n/** What the boundary caught, handed to a render-prop fallback. */\nexport interface ErrorBoundaryState {\n error: Error;\n /**\n * Runs `onRetry` if the host gave one, then clears the error and re-renders\n * the children — the same call the default face's action makes, so a host\n * that replaces the face does not silently lose its own recovery.\n */\n reset: () => void;\n}\n\nexport interface ErrorBoundaryProps {\n children?: ReactNode;\n /**\n * Replaces the default face. A function receives the error and a `reset`,\n * so a host can offer its own recovery instead of a reload.\n */\n fallback?: ReactNode | ((state: ErrorBoundaryState) => ReactNode);\n /** Report the crash — logging, telemetry, a support channel. */\n onError?: (error: Error, info: ErrorInfo) => void;\n /**\n * Clear the error when any of these change, so a route change or a new\n * record recovers without the user pressing anything.\n */\n resetKeys?: readonly unknown[];\n /** Overrides for the default face; each falls back to the kit's own copy. */\n title?: string;\n description?: string;\n /**\n * Shown as the face's action, and run by a render-prop's `reset` too.\n *\n * Called BEFORE the boundary clears. That is enough for a synchronous\n * recovery — a state flip, a cache clear. It is NOT enough on its own for an\n * async one: the boundary clears on the next line, so a refetch that has not\n * resolved re-renders into the same failure. Pair an async recovery with\n * `resetKeys`, so the settled data is what clears the error.\n */\n onRetry?: () => void;\n size?: 'sm' | 'md' | 'lg';\n}\n\n/* ------------------------------------------------------------------ */\n/* Default face */\n/* ------------------------------------------------------------------ */\n\n/**\n * A function component so the copy can come from `useTranslation` — the class\n * below cannot call a hook. It adds no strings of its own: an unset title or\n * description falls through to `EmptyState`'s own error copy, which already\n * ships in every locale.\n */\nfunction ErrorBoundaryFallback({\n size,\n title,\n description,\n onRetry,\n}: Pick<ErrorBoundaryProps, 'size' | 'title' | 'description' | 'onRetry'>) {\n const { t } = useTranslation();\n\n return (\n <EmptyState\n variant=\"error\"\n size={size}\n {...(title === undefined ? {} : { title })}\n {...(description === undefined ? {} : { description })}\n {...(onRetry === undefined\n ? {}\n : {\n primaryAction: {\n label: t('emptyState.error.cta'),\n onClick: onRetry,\n },\n })}\n />\n );\n}\n\nErrorBoundaryFallback.displayName = 'ErrorBoundaryFallback';\n\n/* ------------------------------------------------------------------ */\n/* Boundary */\n/* ------------------------------------------------------------------ */\n\n/**\n * Catches a render error below it and shows the kit's error face instead of\n * unmounting the tree to a blank page.\n *\n * A CLASS COMPONENT, by sanctioned exception — see\n * `src/docs/23-constraints.mdx` §9. React 18 exposes `getDerivedStateFromError`\n * and `componentDidCatch` on classes only; there is no hook form, and no\n * function component can catch a descendant's render error. The exception is\n * this file, and it is the reason the kit had no boundary at all.\n *\n * It catches RENDER errors. An event handler, a timeout or a rejected promise\n * never reaches it — React does not route those through a boundary — so a host\n * still handles its own async failures.\n */\nclass ErrorBoundary extends Component<\n ErrorBoundaryProps,\n { error: Error | null }\n> {\n static displayName = 'ErrorBoundary';\n\n state: { error: Error | null } = { error: null };\n\n static getDerivedStateFromError(error: Error) {\n return { error };\n }\n\n componentDidCatch(error: Error, info: ErrorInfo) {\n this.props.onError?.(error, info);\n }\n\n /**\n * A changed key clears the error. Compared by identity and in order, so a\n * host passing a fresh array of the same values does not re-render into the\n * same failure forever.\n *\n * `previousState` is load-bearing. React commits the caught error as an\n * ordinary update, so the first `componentDidUpdate` after a catch still sees\n * the props from the last HEALTHY commit. When the prop change is itself what\n * crashed the child — `resetKeys={[patientId]}` around something that throws\n * on the new patient, which is the documented use — the keys have moved, and\n * without this guard the boundary would clear on the very commit that caught\n * and render straight back into the failure. It settles on the second catch,\n * but the subtree renders twice and `onError` fires twice for one crash.\n */\n componentDidUpdate(\n previous: ErrorBoundaryProps,\n previousState: { error: Error | null },\n ) {\n if (this.state.error === null || previousState.error === null) return;\n\n const before = previous.resetKeys;\n const after = this.props.resetKeys;\n\n if (before === undefined || after === undefined) return;\n\n const moved =\n before.length !== after.length ||\n after.some((key, index) => !Object.is(key, before[index]));\n\n if (moved) this.reset();\n }\n\n reset = () => {\n this.setState({ error: null });\n };\n\n handleRetry = () => {\n /* The host's own recovery runs FIRST — a refetch, a cache clear — so the\n re-render it enables happens after it, not into the same failure. */\n this.props.onRetry?.();\n this.reset();\n };\n\n render() {\n const { error } = this.state;\n const { children, fallback, title, description, onRetry, size } =\n this.props;\n\n if (error === null) return <>{children}</>;\n\n const face =\n typeof fallback === 'function' ? (\n fallback({ error, reset: this.handleRetry })\n ) : fallback !== undefined ? (\n fallback\n ) : (\n <ErrorBoundaryFallback\n size={size}\n title={title}\n description={description}\n {...(onRetry === undefined ? {} : { onRetry: this.handleRetry })}\n />\n );\n\n /* The marker wraps EVERY caught branch, the host's own fallback included.\n Scoping it to the default face would make the contract below a lie: a\n host that supplies a fallback would render no marker while having very\n much caught, and anything reading its absence would call the surface\n healthy. */\n return <div data-component=\"error-boundary\">{face}</div>;\n }\n}\n\nexport { ErrorBoundary };\n"],"names":["ErrorBoundaryFallback","size","title","description","onRetry","useTranslation","jsx","EmptyState","ErrorBoundary","Component","__publicField","_b","_a","error","info","previous","previousState","before","after","key","index","children","fallback","Fragment","face"],"mappings":";;;;;;;AA2DA,SAASA,EAAsB;AAAA,EAC7B,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AACF,GAA2E;AACzE,QAAM,EAAE,EAAA,IAAMC,EAAA;AAEd,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAAN;AAAA,MACC,GAAIC,MAAU,SAAY,CAAA,IAAK,EAAE,OAAAA,EAAA;AAAA,MACjC,GAAIC,MAAgB,SAAY,CAAA,IAAK,EAAE,aAAAA,EAAA;AAAA,MACvC,GAAIC,MAAY,SACb,KACA;AAAA,QACE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Y,MAAU,KAAM,QAAO,gBAAAP,EAAAiB,GAAA,EAAG,UAAAF,GAAS;AAEvC,UAAMG,IACJ,OAAOF,KAAa,aAClBA,EAAS,EAAE,OAAAT,GAAO,OAAO,KAAK,YAAA,CAAa,IACzCS,MAAa,SACfA,IAEA,gBAAAhB;AAAA,MAACN;AAAA,MAAA;AAAA,QACC,MAAAC;AAAA,QACA,OAAAC;AAAA,QACA,aAAAC;AAAA,QACC,GAAIC,MAAY,SAAY,CAAA,IAAK,EAAE,SAAS,KAAK,YAAA;AAAA,MAAY;AAAA,IAAA;AASpE,WAAO,gBAAAE,EAAC,OAAA,EAAI,kBAAe,kBAAkB,UAAAkB,GAAK;AAAA,EACpD;AACF;AAnFEd,EAJIF,GAIG,eAAc;"}
1
+ {"version":3,"file":"error-boundary-C_HAzVLO.js","sources":["../../src/components/error-boundary/error-boundary.tsx"],"sourcesContent":["import { Component, type ErrorInfo, type ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { EmptyState } from '../empty-state/empty-state';\n\n/* ------------------------------------------------------------------ */\n/* Types */\n/* ------------------------------------------------------------------ */\n\n/** What the boundary caught, handed to a render-prop fallback. */\nexport interface ErrorBoundaryState {\n error: Error;\n /**\n * Runs `onRetry` if the host gave one, then clears the error and re-renders\n * the children — the same call the default face's action makes, so a host\n * that replaces the face does not silently lose its own recovery.\n */\n reset: () => void;\n}\n\nexport interface ErrorBoundaryProps {\n children?: ReactNode;\n /**\n * Replaces the default face. A function receives the error and a `reset`,\n * so a host can offer its own recovery instead of a reload.\n */\n fallback?: ReactNode | ((state: ErrorBoundaryState) => ReactNode);\n /** Report the crash — logging, telemetry, a support channel. */\n onError?: (error: Error, info: ErrorInfo) => void;\n /**\n * Clear the error when any of these change, so a route change or a new\n * record recovers without the user pressing anything.\n */\n resetKeys?: readonly unknown[];\n /** Overrides for the default face; each falls back to the kit's own copy. */\n title?: string;\n description?: string;\n /**\n * Shown as the face's action, and run by a render-prop's `reset` too.\n *\n * Called BEFORE the boundary clears. That is enough for a synchronous\n * recovery — a state flip, a cache clear. It is NOT enough on its own for an\n * async one: the boundary clears on the next line, so a refetch that has not\n * resolved re-renders into the same failure. Pair an async recovery with\n * `resetKeys`, so the settled data is what clears the error.\n */\n onRetry?: () => void;\n size?: 'sm' | 'md' | 'lg';\n}\n\n/* ------------------------------------------------------------------ */\n/* Default face */\n/* ------------------------------------------------------------------ */\n\n/**\n * A function component so the copy can come from `useTranslation` — the class\n * below cannot call a hook. It adds no strings of its own: an unset title or\n * description falls through to `EmptyState`'s own error copy, which already\n * ships in every locale.\n */\nfunction ErrorBoundaryFallback({\n size,\n title,\n description,\n onRetry,\n}: Pick<ErrorBoundaryProps, 'size' | 'title' | 'description' | 'onRetry'>) {\n const { t } = useTranslation();\n\n return (\n <EmptyState\n variant=\"error\"\n size={size}\n {...(title === undefined ? {} : { title })}\n {...(description === undefined ? {} : { description })}\n {...(onRetry === undefined\n ? {}\n : {\n primaryAction: {\n label: t('emptyState.error.cta'),\n onClick: onRetry,\n },\n })}\n />\n );\n}\n\nErrorBoundaryFallback.displayName = 'ErrorBoundaryFallback';\n\n/* ------------------------------------------------------------------ */\n/* Boundary */\n/* ------------------------------------------------------------------ */\n\n/**\n * Catches a render error below it and shows the kit's error face instead of\n * unmounting the tree to a blank page.\n *\n * A CLASS COMPONENT, by sanctioned exception — see\n * `src/docs/23-constraints.mdx` §9. React 18 exposes `getDerivedStateFromError`\n * and `componentDidCatch` on classes only; there is no hook form, and no\n * function component can catch a descendant's render error. The exception is\n * this file, and it is the reason the kit had no boundary at all.\n *\n * It catches RENDER errors. An event handler, a timeout or a rejected promise\n * never reaches it — React does not route those through a boundary — so a host\n * still handles its own async failures.\n */\nclass ErrorBoundary extends Component<\n ErrorBoundaryProps,\n { error: Error | null }\n> {\n static displayName = 'ErrorBoundary';\n\n state: { error: Error | null } = { error: null };\n\n static getDerivedStateFromError(error: Error) {\n return { error };\n }\n\n componentDidCatch(error: Error, info: ErrorInfo) {\n this.props.onError?.(error, info);\n }\n\n /**\n * A changed key clears the error. Compared by identity and in order, so a\n * host passing a fresh array of the same values does not re-render into the\n * same failure forever.\n *\n * `previousState` is load-bearing. React commits the caught error as an\n * ordinary update, so the first `componentDidUpdate` after a catch still sees\n * the props from the last HEALTHY commit. When the prop change is itself what\n * crashed the child — `resetKeys={[patientId]}` around something that throws\n * on the new patient, which is the documented use — the keys have moved, and\n * without this guard the boundary would clear on the very commit that caught\n * and render straight back into the failure. It settles on the second catch,\n * but the subtree renders twice and `onError` fires twice for one crash.\n */\n componentDidUpdate(\n previous: ErrorBoundaryProps,\n previousState: { error: Error | null },\n ) {\n if (this.state.error === null || previousState.error === null) return;\n\n const before = previous.resetKeys;\n const after = this.props.resetKeys;\n\n if (before === undefined || after === undefined) return;\n\n const moved =\n before.length !== after.length ||\n after.some((key, index) => !Object.is(key, before[index]));\n\n if (moved) this.reset();\n }\n\n reset = () => {\n this.setState({ error: null });\n };\n\n handleRetry = () => {\n /* The host's own recovery runs FIRST — a refetch, a cache clear — so the\n re-render it enables happens after it, not into the same failure. */\n this.props.onRetry?.();\n this.reset();\n };\n\n render() {\n const { error } = this.state;\n const { children, fallback, title, description, onRetry, size } =\n this.props;\n\n if (error === null) return <>{children}</>;\n\n const face =\n typeof fallback === 'function' ? (\n fallback({ error, reset: this.handleRetry })\n ) : fallback !== undefined ? (\n fallback\n ) : (\n <ErrorBoundaryFallback\n size={size}\n title={title}\n description={description}\n {...(onRetry === undefined ? {} : { onRetry: this.handleRetry })}\n />\n );\n\n /* The marker wraps EVERY caught branch, the host's own fallback included.\n Scoping it to the default face would make the contract below a lie: a\n host that supplies a fallback would render no marker while having very\n much caught, and anything reading its absence would call the surface\n healthy. */\n return <div data-component=\"error-boundary\">{face}</div>;\n }\n}\n\nexport { ErrorBoundary };\n"],"names":["ErrorBoundaryFallback","size","title","description","onRetry","useTranslation","jsx","EmptyState","ErrorBoundary","Component","__publicField","_b","_a","error","info","previous","previousState","before","after","key","index","children","fallback","F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UAAU,KAAM;AAE/D,UAAMC,IAASF,EAAS,WAClBG,IAAQ,KAAK,MAAM;AAEzB,QAAID,MAAW,UAAaC,MAAU,OAAW;AAMjD,KAHED,EAAO,WAAWC,EAAM,UACxBA,EAAM,KAAK,CAACC,GAAKC,MAAU,CAAC,OAAO,GAAGD,GAAKF,EAAOG,CAAK,CAAC,CAAC,WAE3C,MAAA;AAAA,EAClB;AAAA,EAaA,SAAS;AACP,UAAM,EAAE,OAAAP,MAAU,KAAK,OACjB,EAAE,UAAAQ,GAAU,UAAAC,GAAU,OAAApB,GAAO,aAAAC,GAAa,SAAAC,GAAS,MAAAH,MACvD,KAAK;AAEP,QAAIY,MAAU,KAAM,QAAO,gBAAAP,EAAAiB,GAAA,EAAG,UAAAF,GAAS;AAEvC,UAAMG,IACJ,OAAOF,KAAa,aAClBA,EAAS,EAAE,OAAAT,GAAO,OAAO,KAAK,YAAA,CAAa,IACzCS,MAAa,SACfA,IAEA,gBAAAhB;AAAA,MAACN;AAAA,MAAA;AAAA,QACC,MAAAC;AAAA,QACA,OAAAC;AAAA,QACA,aAAAC;AAAA,QACC,GAAIC,MAAY,SAAY,CAAA,IAAK,EAAE,SAAS,KAAK,YAAA;AAAA,MAAY;AAAA,IAAA;AASpE,WAAO,gBAAAE,EAAC,OAAA,EAAI,kBAAe,kBAAkB,UAAAkB,GAAK;AAAA,EACpD;AACF;AAnFEd,EAJIF,GAIG,eAAc;"}
@@ -5,11 +5,11 @@ import { c as Xi } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as qi } from "react-i18next";
6
6
  import { u as Gi } from "./registry-DvAUVLHh.js";
7
7
  import { m as tt, M as Ji, A as Qi } from "./annotation-marker-CsUJGZjQ.js";
8
- import { B as P } from "./button-18oBsI3n.js";
9
- import { I as Ke } from "./icon-button-CY7GU_Se.js";
10
- import { B as es } from "./button-group-BSDqso_C.js";
8
+ import { B as P } from "./button-CYPx2xFq.js";
9
+ import { I as Ke } from "./icon-button-JAXAkqWC.js";
10
+ import { B as es } from "./button-group-t9RrsCS6.js";
11
11
  import { C as ts } from "./combobox-B_rLwmSv.js";
12
- import { I as vn } from "./icon-button-group-B_426QN_.js";
12
+ import { I as vn } from "./icon-button-group-ud2BLmxe.js";
13
13
  import { T as Ar } from "./text-input-CUvCb6ST.js";
14
14
  import { C as Ze } from "./card-DPmk26CL.js";
15
15
  import { S as Tt } from "./separator-CYU_bGFn.js";
@@ -3127,4 +3127,4 @@ export {
3127
3127
  Nn as t,
3128
3128
  Kr as u
3129
3129
  };
3130
- //# sourceMappingURL=face-scheme-fku-RShg.js.map
3130
+ //# sourceMappingURL=face-scheme-DVZZTuXT.js.map