@alfadocs/ui-kit 1.37.0 → 1.39.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 (318) hide show
  1. package/dist/_chunks/{actions-cell-renderer-CUn1pqEq.js → actions-cell-renderer-BXBy9c0f.js} +3 -3
  2. package/dist/_chunks/{agenda-tray-DYGCTIWB.js → agenda-tray-CBaJASb5.js} +4 -4
  3. package/dist/_chunks/{ai-consent-banner-De4gzSBZ.js → ai-consent-banner-DvtaM3yg.js} +2 -2
  4. package/dist/_chunks/{ai-prompt-input-DdxlaI7q.js → ai-prompt-input-DXknpQCB.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-B6bXlZZk.js → alia-sidebar-CUqaJNPQ.js} +7 -7
  6. package/dist/_chunks/{anamnesis-card-DGwINeNn.js → anamnesis-card-xtEhyojD.js} +2 -2
  7. package/dist/_chunks/{anamnesis-summary-card-GYHa7VGp.js → anamnesis-summary-card-CclBbiXg.js} +2 -2
  8. package/dist/_chunks/{anamnesis-summary-rows-Cxtgo2ok.js → anamnesis-summary-rows-DQUqwWc1.js} +7 -7
  9. package/dist/_chunks/{appointment-card-WsDGBBut.js → appointment-card-TgR_2GKS.js} +134 -102
  10. package/dist/_chunks/{appointment-peek-5S4O1VQP.js → appointment-peek-abiR0T9e.js} +3 -3
  11. package/dist/_chunks/{appointment-timeline-ByfovxqR.js → appointment-timeline-CCnyUYKz.js} +67 -63
  12. package/dist/_chunks/{appointment-tray-D6UyJHej.js → appointment-tray-N0yEI8UF.js} +5 -5
  13. package/dist/_chunks/{audio-recorder-BlQBC7N_.js → audio-recorder-B7dT-Y3v.js} +3 -3
  14. package/dist/_chunks/{balance-badge-cell-B0Z8Dwn8.js → balance-badge-cell-o6LldMUA.js} +5 -5
  15. package/dist/_chunks/{bishop-score-D5b8tktp.js → bishop-score-Cu70iv9C.js} +2 -2
  16. package/dist/_chunks/{bmi-calculator-dOKP-vW4.js → bmi-calculator-C9N19aLX.js} +2 -2
  17. package/dist/_chunks/{booking-Dp-9qR6F.js → booking-Dn3jvv3K.js} +6 -6
  18. package/dist/_chunks/{button-nJaPh_HC.js → button-CaUe1uyd.js} +11 -7
  19. package/dist/_chunks/{button-group-QmN1VdUW.js → button-group-R32U7SyV.js} +2 -2
  20. package/dist/_chunks/{calendar-7GAUlsNO.js → calendar-ChJQzRw-.js} +2 -2
  21. package/dist/_chunks/calendar-workspace-B-fUbm62.js +11372 -0
  22. package/dist/_chunks/{care-plan-card-COFOI-fI.js → care-plan-card-BOv0NRle.js} +3 -3
  23. package/dist/_chunks/{care-plan-entry-card-BOKn0KW-.js → care-plan-entry-card-d-rZD4li.js} +3 -3
  24. package/dist/_chunks/{care-plan-header-CbuOuVBw.js → care-plan-header-CEmBXn6-.js} +2 -2
  25. package/dist/_chunks/{carousel.agent-Dv4a4M8L.js → carousel.agent-z1yLBpyC.js} +2 -2
  26. package/dist/_chunks/{chart-iWl76PXv.js → chart-PF2krCZC.js} +3 -3
  27. package/dist/_chunks/{chat-input-qM5QpUSq.js → chat-input-Cj7ZYQr5.js} +2 -2
  28. package/dist/_chunks/{chat-message-RniXtrCH.js → chat-message-BMVxiUIX.js} +3 -3
  29. package/dist/_chunks/{code-block-uVjNSI9g.js → code-block-BB-viuTn.js} +2 -2
  30. package/dist/_chunks/{connection-status-OEsWjmRk.js → connection-status-BmA9T0UO.js} +3 -3
  31. package/dist/_chunks/{contact-profile-card--My1H2UD.js → contact-profile-card-Zt6WNg1u.js} +2 -2
  32. package/dist/_chunks/{control-room-rail-DQoHdE1U.js → control-room-rail-CnNZusR5.js} +3 -3
  33. package/dist/_chunks/{copy-field-fYKpl6aN.js → copy-field-B8XRVmQv.js} +2 -2
  34. package/dist/_chunks/credit-card-D9XZsHGA.js +15 -0
  35. package/dist/_chunks/{cycle-calculator-BJeaXiZv.js → cycle-calculator-BH2StWoT.js} +2 -2
  36. package/dist/_chunks/{dashboard-grid-B23BFzRl.js → dashboard-grid-BcXWL5S9.js} +2 -2
  37. package/dist/_chunks/{data-table-BYGK-gUJ.js → data-table-CcAx_I1w.js} +7 -7
  38. package/dist/_chunks/{data-table-tabs-BMR0zsVQ.js → data-table-tabs-B9SXA5VP.js} +3 -3
  39. package/dist/_chunks/{description-list-C1RXMDZ_.js → description-list-BsJ_6CQE.js} +2 -2
  40. package/dist/_chunks/{document-preview-DsEyRcNd.js → document-preview-COV0BC6n.js} +2 -2
  41. package/dist/_chunks/{document-scanner-CbWVtm7u.js → document-scanner-B1abl-A4.js} +2 -2
  42. package/dist/_chunks/{due-date-calculator-Dhc9Ljkb.js → due-date-calculator-Buh_mVHq.js} +2 -2
  43. package/dist/_chunks/{editable-currency-cell-renderer-D7blbDFY.js → editable-currency-cell-renderer-Psb6XKHR.js} +3 -3
  44. package/dist/_chunks/editable-description-ADMVFPUz.js +142 -0
  45. package/dist/_chunks/{editor-overlay-8fKAcRsm.js → editor-overlay-9tcPXNWt.js} +2 -2
  46. package/dist/_chunks/{empty-state-X0sVPfVo.js → empty-state-BUN_UAWf.js} +2 -2
  47. package/dist/_chunks/{entity-summary-BbW0mIzU.js → entity-summary-DXejuQ8i.js} +3 -3
  48. package/dist/_chunks/{error-boundary-ayXFCcq4.js → error-boundary-BNT2iQ1w.js} +2 -2
  49. package/dist/_chunks/{face-scheme-uFvhqz6h.js → face-scheme-Dg6ZyLKb.js} +5 -5
  50. package/dist/_chunks/{fetal-weight-C6SxchOv.js → fetal-weight-wx4ycKc6.js} +2 -2
  51. package/dist/_chunks/{field-array-C9dmRaIM.js → field-array-BW9KeeXG.js} +3 -3
  52. package/dist/_chunks/{file-manager-DvkFgj7d.js → file-manager-BfLQxF5t.js} +137 -151
  53. package/dist/_chunks/{finished-terminal-Br61Ip4e.js → finished-terminal-DJd7Z_po.js} +2 -2
  54. package/dist/_chunks/{fiscal-code-input-CkwIdB1y.js → fiscal-code-input-ODQRd_Sw.js} +2 -2
  55. package/dist/_chunks/folder-BghC8_S2.js +20 -0
  56. package/dist/_chunks/{freemium-paywall-BqGk_SBU.js → freemium-paywall-Cz-O9lQD.js} +2 -2
  57. package/dist/_chunks/{gestational-age-calculator-DDOGaPvg.js → gestational-age-calculator-CwbecTul.js} +2 -2
  58. package/dist/_chunks/{hcg-doubling-Bb_n6tEa.js → hcg-doubling-BcXriXJe.js} +2 -2
  59. package/dist/_chunks/{header-BZ4pZlJV.js → header-3o9o9v_T.js} +2 -2
  60. package/dist/_chunks/{header-settings-B8mLc03Q.js → header-settings-CTe45iDy.js} +4 -4
  61. package/dist/_chunks/{hover-card-Bcku1GQu.js → hover-card-BMJBVqIf.js} +2 -2
  62. package/dist/_chunks/{icon-button-8xqRnkdG.js → icon-button-CehAeZoP.js} +2 -2
  63. package/dist/_chunks/{icon-button-group-Dj6CRoYR.js → icon-button-group-DkkdIygu.js} +2 -2
  64. package/dist/_chunks/{icon-picker-CTWzlHJr.js → icon-picker-DMEelg9v.js} +3 -3
  65. package/dist/_chunks/{image-cropper-C84NDTB7.js → image-cropper-BjPjT7wU.js} +2 -2
  66. package/dist/_chunks/{info-tip-ey_Pon2y.js → info-tip-iP2Pm9dh.js} +2 -2
  67. package/dist/_chunks/{insert-result-LCNTskNJ.js → insert-result-DPnOBD85.js} +2 -2
  68. package/dist/_chunks/{key-value-pair-DczGb4yz.js → key-value-pair-DaQI_LZB.js} +2 -2
  69. package/dist/_chunks/{link-cell-renderer-BNa8x6oJ.js → link-cell-renderer-s3oHzOwi.js} +2 -2
  70. package/dist/_chunks/{locale-picker-BLeHbFSc.js → locale-picker-CH3kfrIG.js} +3 -3
  71. package/dist/_chunks/{map-view-CCAlC9IL.js → map-view-CHw4RL6w.js} +2 -2
  72. package/dist/_chunks/{marketplace-app-shell-BwH6Aruw.js → marketplace-app-shell-d2EtcUbe.js} +4 -4
  73. package/dist/_chunks/{message-card-Dm5Xshup.js → message-card-V3sFPiQI.js} +3 -3
  74. package/dist/_chunks/{message-tray-BcLyaO-G.js → message-tray-CrRIHfiQ.js} +5 -5
  75. package/dist/_chunks/note-timeline-Dn_XTo1s.js +333 -0
  76. package/dist/_chunks/notes-panel-CAD1Ytcj.js +647 -0
  77. package/dist/_chunks/{notification-card-ChcK9Wat.js → notification-card-B2gLO6dK.js} +3 -3
  78. package/dist/_chunks/{notification-tray-CJ8jOe-U.js → notification-tray-BOEKegVV.js} +5 -5
  79. package/dist/_chunks/{optical-prescription-cphK41eP.js → optical-prescription-LGgmtcST.js} +2 -2
  80. package/dist/_chunks/{panel-subview-BNXN8OEL.js → panel-subview-Cc2Wtt7D.js} +52 -52
  81. package/dist/_chunks/{patient-details-2cIaL-Zb.js → patient-details-C8ImUrVg.js} +3 -3
  82. package/dist/_chunks/{patient-field-row-IHb2VFc2.js → patient-field-row-BRSOKvme.js} +7 -7
  83. package/dist/_chunks/{patient-search-D08b6jgj.js → patient-search-5QcmQKJD.js} +2 -2
  84. package/dist/_chunks/{patient-summary-card-BzmJH9a-.js → patient-summary-card-BhmKB2KR.js} +8 -8
  85. package/dist/_chunks/{payment-automation-upsell-BLTdE2em.js → payment-automation-upsell-BKmBXU4i.js} +17 -16
  86. package/dist/_chunks/{payment-request-card-BxcdvxKR.js → payment-request-card-Cer6XXCn.js} +6 -5
  87. package/dist/_chunks/{periodontal-chart-BF_e3wZp.js → periodontal-chart-DJoZS_o7.js} +2 -2
  88. package/dist/_chunks/{periodontal-chart-card-BJEuJuzh.js → periodontal-chart-card-Nd1ZoYWb.js} +2 -2
  89. package/dist/_chunks/{popover-DzR5QYxp.js → popover-DO-pssF3.js} +2 -2
  90. package/dist/_chunks/{practice-results-DOcORTkP.js → practice-results-D_jjzwgf.js} +6 -6
  91. package/dist/_chunks/{pregnancy-dating-nV1_S6w0.js → pregnancy-dating-DcyV9ZRD.js} +2 -2
  92. package/dist/_chunks/{pregnancy-weight-gain-tRecShAD.js → pregnancy-weight-gain-Bfq4Kwt5.js} +2 -2
  93. package/dist/_chunks/{privacy-lock-Be39vQUN.js → privacy-lock-CbFCAMM3.js} +3 -3
  94. package/dist/_chunks/{product-hub-panel-C0TO69P7.js → product-hub-panel-w40-_-1s.js} +4 -4
  95. package/dist/_chunks/{public-header.agent-Bl1KFwSE.js → public-header.agent-D-EBVskf.js} +3 -3
  96. package/dist/_chunks/{radiograph-panel.agent-k0G7JuoM.js → radiograph-panel.agent-LrILY2lN.js} +4 -4
  97. package/dist/_chunks/{receipt-euro-C6k4Gzhr.js → receipt-euro-B1cLM_TN.js} +3 -14
  98. package/dist/_chunks/{reviews-panel-BaHZb_ai.js → reviews-panel-2GVuxGeT.js} +5 -5
  99. package/dist/_chunks/{rich-text-editor-BTXlorm5.js → rich-text-editor-C6fE-uP4.js} +5 -5
  100. package/dist/_chunks/{session-countdown-QMsnRa1x.js → session-countdown-BqppPrw6.js} +2 -2
  101. package/dist/_chunks/{sheet-hm04DGFd.js → sheet-C8WIDFS8.js} +2 -2
  102. package/dist/_chunks/{sign-in-with-alfadocs-button-BLe_quy5.js → sign-in-with-alfadocs-button-DWwBJtyE.js} +2 -2
  103. package/dist/_chunks/{signature-request-Dej2g86d.js → signature-request-D_j2aQu1.js} +360 -371
  104. package/dist/_chunks/{skeleton-CZbwyJAA.js → skeleton-B1KTdJ4N.js} +46 -33
  105. package/dist/_chunks/{slot-grid-8Ko6thzz.js → slot-grid-B3eOPkKD.js} +5 -5
  106. package/dist/_chunks/{streaming-text-DjFqLSt_.js → streaming-text-CE1u_oGa.js} +2 -2
  107. package/dist/_chunks/{task-tray-CQ8UAR2j.js → task-tray-DIwjAIes.js} +4 -4
  108. package/dist/_chunks/{tasks-panel-CBGMtQ_f.js → tasks-panel-CpcikOeY.js} +6 -6
  109. package/dist/_chunks/{theme-toggle-CMz8YfC1.js → theme-toggle-bI0pgDDv.js} +3 -3
  110. package/dist/_chunks/{toast-8jqtbfAB.js → toast-ZZfhA5u0.js} +2 -2
  111. package/dist/_chunks/{token-insert-menu-9Um0JinI.js → token-insert-menu-A9B5AJw6.js} +2 -2
  112. package/dist/_chunks/tool-rail-D89USYE6.js +799 -0
  113. package/dist/_chunks/{tooth-scheme-BWkYxxjR.js → tooth-scheme-DPAq0vQK.js} +3 -3
  114. package/dist/_chunks/{transaction-chip-Dth1nThY.js → transaction-chip-CwgcJiqF.js} +47 -46
  115. package/dist/_chunks/treatment-receipt-dUm99mdn.js +160 -0
  116. package/dist/_chunks/{unit-converter-BTgU50gk.js → unit-converter-C-LpGzrN.js} +2 -2
  117. package/dist/_chunks/user-plus-BtcOLgNU.js +17 -0
  118. package/dist/_chunks/{warning-stack-BW5Dwb3z.js → warning-stack-C0glSB7p.js} +3 -3
  119. package/dist/_chunks/{workflow-map-CXdsxvUj.js → workflow-map-DhR_h5yw.js} +5 -5
  120. package/dist/agent-catalog.json +3 -418
  121. package/dist/agent-i18n/en.json +2 -18
  122. package/dist/components/agenda-tray/index.js +1 -1
  123. package/dist/components/ai-consent-banner/index.js +1 -1
  124. package/dist/components/ai-prompt-input/index.js +1 -1
  125. package/dist/components/anamnesis-card/index.js +1 -1
  126. package/dist/components/anamnesis-summary-card/index.js +1 -1
  127. package/dist/components/appointment-card/appointment-card.d.ts +24 -0
  128. package/dist/components/appointment-card/index.js +2 -2
  129. package/dist/components/appointment-peek/index.js +1 -1
  130. package/dist/components/appointment-timeline/appointment-timeline.d.ts +15 -1
  131. package/dist/components/appointment-timeline/index.js +1 -1
  132. package/dist/components/audio-recorder/index.js +1 -1
  133. package/dist/components/bishop-score/index.js +1 -1
  134. package/dist/components/bmi-calculator/index.js +1 -1
  135. package/dist/components/booking/index.js +1 -1
  136. package/dist/components/button/button.d.ts +1 -1
  137. package/dist/components/button/index.js +2 -2
  138. package/dist/components/button-group/index.js +1 -1
  139. package/dist/components/calendar/index.js +1 -1
  140. package/dist/components/care-plan-card/index.js +1 -1
  141. package/dist/components/care-plan-entry-card/index.js +1 -1
  142. package/dist/components/care-plan-header/index.js +1 -1
  143. package/dist/components/carousel/index.js +1 -1
  144. package/dist/components/chart/index.js +1 -1
  145. package/dist/components/chat-input/index.js +1 -1
  146. package/dist/components/chat-message/index.js +1 -1
  147. package/dist/components/connection-status/index.js +1 -1
  148. package/dist/components/contact-profile-card/index.js +1 -1
  149. package/dist/components/control-room-rail/index.js +1 -1
  150. package/dist/components/copy-field/index.js +1 -1
  151. package/dist/components/cycle-calculator/index.js +1 -1
  152. package/dist/components/dashboard-grid/index.js +1 -1
  153. package/dist/components/data-table/index.js +4 -4
  154. package/dist/components/data-table-tabs/index.js +1 -1
  155. package/dist/components/description-list/index.js +1 -1
  156. package/dist/components/document-preview/index.js +1 -1
  157. package/dist/components/document-scanner/index.js +1 -1
  158. package/dist/components/due-date-calculator/index.js +1 -1
  159. package/dist/components/editable-description/editable-description.d.ts +6 -0
  160. package/dist/components/editable-description/index.js +1 -1
  161. package/dist/components/editor-overlay/index.js +1 -1
  162. package/dist/components/empty-state/index.js +1 -1
  163. package/dist/components/entity-summary/index.js +1 -1
  164. package/dist/components/error-boundary/index.js +1 -1
  165. package/dist/components/face-scheme/index.js +1 -1
  166. package/dist/components/fetal-weight/index.js +1 -1
  167. package/dist/components/field-array/index.js +1 -1
  168. package/dist/components/file-manager/index.js +1 -1
  169. package/dist/components/finished-terminal/index.js +1 -1
  170. package/dist/components/fiscal-code-input/index.js +1 -1
  171. package/dist/components/freemium-paywall/index.js +1 -1
  172. package/dist/components/gestational-age-calculator/index.js +1 -1
  173. package/dist/components/hcg-doubling/index.js +1 -1
  174. package/dist/components/header/index.js +1 -1
  175. package/dist/components/header-settings/index.js +1 -1
  176. package/dist/components/hover-card/index.js +1 -1
  177. package/dist/components/icon-button/index.js +1 -1
  178. package/dist/components/icon-button-group/index.js +1 -1
  179. package/dist/components/icon-picker/index.js +1 -1
  180. package/dist/components/image-cropper/index.js +1 -1
  181. package/dist/components/info-tip/index.js +1 -1
  182. package/dist/components/key-value-pair/index.js +1 -1
  183. package/dist/components/locale-picker/index.js +1 -1
  184. package/dist/components/map-view/index.js +1 -1
  185. package/dist/components/message-card/index.js +1 -1
  186. package/dist/components/message-tray/index.js +1 -1
  187. package/dist/components/note-timeline/index.js +1 -1
  188. package/dist/components/note-timeline/note-timeline.d.ts +17 -0
  189. package/dist/components/notes-panel/index.js +1 -1
  190. package/dist/components/notes-panel/notes-panel.d.ts +5 -4
  191. package/dist/components/notification-card/index.js +1 -1
  192. package/dist/components/notification-tray/index.js +1 -1
  193. package/dist/components/optical-prescription/index.js +1 -1
  194. package/dist/components/panel-subview/index.js +1 -1
  195. package/dist/components/patient-details/index.js +1 -1
  196. package/dist/components/patient-search/index.js +1 -1
  197. package/dist/components/patient-summary-card/index.js +1 -1
  198. package/dist/components/patient-table/index.js +1 -1
  199. package/dist/components/payment-card/index.js +1 -1
  200. package/dist/components/periodontal-chart/index.js +1 -1
  201. package/dist/components/periodontal-chart-card/index.js +1 -1
  202. package/dist/components/popover/index.js +1 -1
  203. package/dist/components/practice-results/index.js +1 -1
  204. package/dist/components/pregnancy-dating/index.js +1 -1
  205. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  206. package/dist/components/privacy-lock/index.js +1 -1
  207. package/dist/components/product-hub-tray/index.js +1 -1
  208. package/dist/components/public-header/index.js +1 -1
  209. package/dist/components/radiograph-panel/index.js +1 -1
  210. package/dist/components/reviews-panel/index.js +1 -1
  211. package/dist/components/rich-text-editor/index.js +1 -1
  212. package/dist/components/session-countdown/index.js +1 -1
  213. package/dist/components/sheet/index.js +1 -1
  214. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  215. package/dist/components/skeleton/index.d.ts +1 -1
  216. package/dist/components/skeleton/index.js +3 -2
  217. package/dist/components/skeleton/skeleton.d.ts +12 -0
  218. package/dist/components/slot-grid/index.js +1 -1
  219. package/dist/components/streaming-text/index.js +1 -1
  220. package/dist/components/task-tray/index.js +1 -1
  221. package/dist/components/tasks-panel/index.js +1 -1
  222. package/dist/components/theme-toggle/index.js +1 -1
  223. package/dist/components/toast/index.js +1 -1
  224. package/dist/components/token-insert-menu/index.js +1 -1
  225. package/dist/components/tool-rail/index.js +1 -1
  226. package/dist/components/tooth-scheme/index.js +1 -1
  227. package/dist/components/transaction-chip/index.js +1 -1
  228. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  229. package/dist/components/treatment-receipt/index.js +1 -1
  230. package/dist/components/treatment-receipt/treatment-receipt.d.ts +8 -0
  231. package/dist/components/unit-converter/index.js +1 -1
  232. package/dist/components/warning-stack/index.js +1 -1
  233. package/dist/components/workflow/index.js +1 -1
  234. package/dist/host-compat.css +13 -4
  235. package/dist/i18n/locales/ar.d.ts +235 -183
  236. package/dist/i18n/locales/ar.js +239 -187
  237. package/dist/i18n/locales/de.d.ts +219 -167
  238. package/dist/i18n/locales/de.js +223 -171
  239. package/dist/i18n/locales/el.d.ts +234 -182
  240. package/dist/i18n/locales/el.js +238 -186
  241. package/dist/i18n/locales/en.d.ts +52 -0
  242. package/dist/i18n/locales/en.js +56 -4
  243. package/dist/i18n/locales/es.d.ts +227 -175
  244. package/dist/i18n/locales/es.js +231 -179
  245. package/dist/i18n/locales/fr.d.ts +221 -169
  246. package/dist/i18n/locales/fr.js +225 -173
  247. package/dist/i18n/locales/hi.d.ts +235 -183
  248. package/dist/i18n/locales/hi.js +243 -187
  249. package/dist/i18n/locales/it.d.ts +179 -127
  250. package/dist/i18n/locales/it.js +183 -131
  251. package/dist/i18n/locales/ja.d.ts +233 -181
  252. package/dist/i18n/locales/ja.js +237 -185
  253. package/dist/i18n/locales/nl.d.ts +224 -172
  254. package/dist/i18n/locales/nl.js +228 -176
  255. package/dist/i18n/locales/pl.d.ts +229 -177
  256. package/dist/i18n/locales/pl.js +233 -181
  257. package/dist/i18n/locales/pt.d.ts +229 -177
  258. package/dist/i18n/locales/pt.js +233 -181
  259. package/dist/i18n/locales/ro.d.ts +228 -176
  260. package/dist/i18n/locales/ro.js +232 -180
  261. package/dist/i18n/locales/ru.d.ts +234 -182
  262. package/dist/i18n/locales/ru.js +238 -186
  263. package/dist/i18n/locales/sq.d.ts +228 -176
  264. package/dist/i18n/locales/sq.js +232 -180
  265. package/dist/i18n/locales/sv.d.ts +229 -177
  266. package/dist/i18n/locales/sv.js +233 -181
  267. package/dist/i18n/locales/tr.d.ts +235 -183
  268. package/dist/i18n/locales/tr.js +239 -187
  269. package/dist/i18n/locales/zh.d.ts +228 -176
  270. package/dist/i18n/locales/zh.js +232 -180
  271. package/dist/index.js +785 -784
  272. package/dist/locales/ar.json +239 -187
  273. package/dist/locales/de.json +223 -171
  274. package/dist/locales/el.json +238 -186
  275. package/dist/locales/en.json +56 -4
  276. package/dist/locales/es.json +231 -179
  277. package/dist/locales/fr.json +225 -173
  278. package/dist/locales/hi.json +239 -187
  279. package/dist/locales/it.json +183 -131
  280. package/dist/locales/ja.json +237 -185
  281. package/dist/locales/nl.json +228 -176
  282. package/dist/locales/pl.json +233 -181
  283. package/dist/locales/pt.json +233 -181
  284. package/dist/locales/ro.json +232 -180
  285. package/dist/locales/ru.json +238 -186
  286. package/dist/locales/sq.json +232 -180
  287. package/dist/locales/sv.json +233 -181
  288. package/dist/locales/tr.json +239 -187
  289. package/dist/locales/zh.json +232 -180
  290. package/dist/patterns/alia-assistant/index.js +1 -1
  291. package/dist/patterns/anamnesis/index.js +1 -1
  292. package/dist/patterns/calendar/calendar-appointment-details.d.ts +8 -1
  293. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +10 -5
  294. package/dist/patterns/calendar/calendar-bookings-panel.d.ts +31 -0
  295. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -2
  296. package/dist/patterns/calendar/calendar-info-hover.d.ts +15 -1
  297. package/dist/patterns/calendar/calendar-privacy.d.ts +23 -0
  298. package/dist/patterns/calendar/calendar-rail-settle.d.ts +14 -0
  299. package/dist/patterns/calendar/calendar-upcoming-panel.d.ts +32 -0
  300. package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +62 -0
  301. package/dist/patterns/calendar/calendar-workspace.d.ts +14 -1
  302. package/dist/patterns/calendar/calendar-workspace.model.d.ts +37 -1
  303. package/dist/patterns/calendar/calendar.model.d.ts +8 -2
  304. package/dist/patterns/calendar/calendar.sheets.d.ts +43 -27
  305. package/dist/patterns/calendar/calendar.types.d.ts +6 -0
  306. package/dist/patterns/calendar/index.d.ts +2 -2
  307. package/dist/patterns/calendar/index.js +1 -1
  308. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  309. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  310. package/dist/patterns/signature-request/index.js +1 -1
  311. package/dist/tokens.css +1 -1
  312. package/package.json +3 -1
  313. package/dist/_chunks/calendar-workspace-BqKBj26r.js +0 -9715
  314. package/dist/_chunks/editable-description-BOfAeY3T.js +0 -112
  315. package/dist/_chunks/note-timeline-CXfSV3yX.js +0 -231
  316. package/dist/_chunks/notes-panel-4y5JioWN.js +0 -556
  317. package/dist/_chunks/tool-rail-BP8sjxCw.js +0 -667
  318. package/dist/_chunks/treatment-receipt-D4kOLXOk.js +0 -94
@@ -0,0 +1,647 @@
1
+ import { jsxs as o, jsx as n, Fragment as Qe } from "react/jsx-runtime";
2
+ import { forwardRef as Ue, useRef as f, useState as w, useId as Xe, useCallback as T, useEffect as me, useImperativeHandle as Ze, useMemo as et } from "react";
3
+ import { c as Ce } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as tt } from "react-i18next";
5
+ import { u as nt } from "./registry-DvAUVLHh.js";
6
+ import { C as at } from "./clinical-note-card-DdsGYMmI.js";
7
+ import { R as it } from "./rich-text-editor-C6fE-uP4.js";
8
+ import { T as st } from "./text-area-Bt3p7Pt0.js";
9
+ import { A as I } from "./alert-CiQ5Pa3Q.js";
10
+ import { B as z } from "./button-CaUe1uyd.js";
11
+ import { I as ge } from "./icon-button-CehAeZoP.js";
12
+ import { C as lt } from "./checkbox-CZkipDn7.js";
13
+ import { C as he } from "./card-DPmk26CL.js";
14
+ import { C as rt, S as M } from "./skeleton-B1KTdJ4N.js";
15
+ import { D as v } from "./dialog-BJiLqhx6.js";
16
+ import { P as ot } from "./panel-header-D_mTdhUp.js";
17
+ import { a as dt, u as ct, R as ut } from "./use-list-reflow-Cw43nxw5.js";
18
+ import { u as ft } from "./use-theme-CAuo6EYT.js";
19
+ import { N as pt } from "./notebook-pen-CO7HoM-W.js";
20
+ import { P as mt } from "./pencil-B1sKKyuT.js";
21
+ import { T as gt } from "./trash-2-uumy3fy1.js";
22
+ function ve(i, c) {
23
+ return typeof i == "object" && i !== null && "message" in i && typeof i.message == "string" && i.message.trim() ? i.message : c;
24
+ }
25
+ const ht = {
26
+ id: "notes-panel",
27
+ // 'submit' backs add_note (compose + commit a note). pin / flag are toggles
28
+ // with no dedicated capability in the closed vocabulary.
29
+ capabilities: ["submit"],
30
+ state: {
31
+ notes: {
32
+ type: "Array<{ id?: string; pinned: boolean; flagged: boolean; clinical: boolean }>",
33
+ descriptionKey: "ui.agent.notesPanel.state.notes",
34
+ description: "Timeline note ids + pinned / flagged / clinical flags. Never the note body or author (both PHI).",
35
+ read: (i) => i.getNotes()
36
+ },
37
+ canAddClinical: {
38
+ type: "boolean",
39
+ descriptionKey: "ui.agent.notesPanel.state.canAddClinical",
40
+ description: "Whether the current user may write clinical notes (the practice_add_clinical_note permission gate).",
41
+ read: (i) => i.canAddClinical()
42
+ },
43
+ currentNoteId: {
44
+ type: "string | null",
45
+ descriptionKey: "ui.agent.notesPanel.state.currentNoteId",
46
+ description: "Id of the note the host has addressed — the one marked, scrolled to and focused. Null when none is. An id only, never note content.",
47
+ read: (i) => i.getCurrentNoteId()
48
+ }
49
+ },
50
+ actions: {
51
+ add_note: {
52
+ // Writes a clinical/admin note body — patient-identifiable content. PHI.
53
+ safety: "phi",
54
+ argsType: "{ content: string; clinical: boolean }",
55
+ argsSchema: {
56
+ type: "object",
57
+ properties: {
58
+ content: {
59
+ type: "string",
60
+ description: "Note body. Rich HTML for the rich composer, else plain text."
61
+ },
62
+ clinical: {
63
+ type: "boolean",
64
+ description: "Whether the note is clinical. Requires the clinical-note permission; the submission is dropped when the gate is closed."
65
+ }
66
+ },
67
+ required: ["content", "clinical"]
68
+ },
69
+ openWorld: !0,
70
+ descriptionKey: "ui.agent.notesPanel.actions.addNote",
71
+ description: "Compose and commit a new note. A clinical note requires the clinical-note permission (read canAddClinical first).",
72
+ examples: [
73
+ {
74
+ args: { content: "Patient reported improvement.", clinical: !0 },
75
+ note: "Add a clinical note."
76
+ }
77
+ ],
78
+ invoke: (i, c) => i.addNote(c)
79
+ },
80
+ toggle_pin: {
81
+ // Re-orders the timeline (pinned notes lead) — reversible view write.
82
+ safety: "write",
83
+ argsType: "{ id: string }",
84
+ argsSchema: {
85
+ type: "object",
86
+ properties: { id: { type: "string" } },
87
+ required: ["id"]
88
+ },
89
+ idempotent: !1,
90
+ descriptionKey: "ui.agent.notesPanel.actions.togglePin",
91
+ description: "Toggle the pinned state of the note with the given id. Refused for a deleted note or one whose actions.pin is false.",
92
+ invoke: (i, c) => {
93
+ i.togglePin(c.id);
94
+ }
95
+ },
96
+ toggle_flag: {
97
+ safety: "write",
98
+ argsType: "{ id: string }",
99
+ argsSchema: {
100
+ type: "object",
101
+ properties: { id: { type: "string" } },
102
+ required: ["id"]
103
+ },
104
+ idempotent: !1,
105
+ descriptionKey: "ui.agent.notesPanel.actions.toggleFlag",
106
+ description: "Toggle the flagged state of the note with the given id.",
107
+ invoke: (i, c) => {
108
+ i.toggleFlag(c.id);
109
+ }
110
+ }
111
+ },
112
+ domHooks: {
113
+ root: {
114
+ attr: "data-component",
115
+ value: "notes-panel",
116
+ description: "Marks the NotesPanel region."
117
+ },
118
+ instanceId: {
119
+ attr: "data-component-id",
120
+ sourceProp: "id",
121
+ description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
122
+ }
123
+ }
124
+ }, vt = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", yt = Ce(
125
+ "ds:relative ds:flex ds:flex-col ds:rounded-[var(--radius-lg)]",
126
+ {
127
+ variants: {
128
+ current: {
129
+ true: "ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)] ds:focus:outline-offset-[length:var(--focus-ring-offset)]",
130
+ false: ""
131
+ },
132
+ washed: { true: vt, false: "" }
133
+ },
134
+ defaultVariants: { current: !1, washed: !1 }
135
+ }
136
+ ), ye = Ce(
137
+ "ds:pointer-events-none ds:absolute ds:inset-0 ds:rounded-[var(--radius-lg)] ds:bg-[color:var(--accent)]",
138
+ {
139
+ variants: {
140
+ state: {
141
+ addressed: [
142
+ "ds:opacity-0",
143
+ "ds:animate-[note-addressed_calc(var(--animation-duration)*9)_var(--ease-in-out)]",
144
+ "ds:motion-reduce:animate-none ds:motion-reduce:opacity-[var(--opacity-12)]",
145
+ "ds:[.theme-accessible_&]:animate-none ds:[.theme-accessible_&]:opacity-[var(--opacity-12)]"
146
+ ].join(" "),
147
+ editing: "ds:opacity-[var(--opacity-12)]"
148
+ }
149
+ }
150
+ }
151
+ ), bt = "ds:opacity-0", Ct = [
152
+ "ds:transition-opacity ds:duration-[var(--animation-duration)]",
153
+ "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
154
+ ].join(" "), Pt = [3, 2, 3];
155
+ function be(i) {
156
+ return i ? /<img\b/i.test(i) ? !0 : i.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").trim().length > 0 : !1;
157
+ }
158
+ const Ft = Ue(
159
+ function({
160
+ id: c,
161
+ notes: j,
162
+ onAddNote: m,
163
+ status: C = "ready",
164
+ onRetry: X,
165
+ currentNoteId: y,
166
+ currentNoteKey: Z,
167
+ composer: g = "rich",
168
+ editorToolbar: Pe = "standard",
169
+ redactor: xe,
170
+ imageUploadUrl: we,
171
+ showClinicalToggle: Te = !0,
172
+ canAddClinicalNote: A = !0,
173
+ clinicalGatedReason: Ee,
174
+ defaultClinical: E = !1,
175
+ onRequestAiDraft: Ne,
176
+ aiDraftFormat: Ve,
177
+ aiPrivacyNotice: Re,
178
+ onDictate: ke,
179
+ onProofread: _e,
180
+ onAutoFormat: Se,
181
+ onTogglePin: L,
182
+ onToggleFlag: O,
183
+ noteActions: ee,
184
+ onEditNote: N,
185
+ editClinical: Ie = !1,
186
+ onDeleteNote: h,
187
+ confirmDelete: $ = !0,
188
+ title: ze,
189
+ composerPlaceholder: je,
190
+ addNoteLabel: Ae,
191
+ emptyState: Le,
192
+ className: Oe,
193
+ "aria-label": G,
194
+ ...He
195
+ }, Be) {
196
+ const { t: a, i18n: te } = tt(), b = f(null), [P, V] = w(""), [H, B] = w(E), [u, ne] = w(!1), [ae, R] = w(null), [r, Y] = w(null), ie = f(!1);
197
+ C === "loading" && (ie.current = !0);
198
+ const We = ie.current ? rt : "", De = ze ?? a("notesPanel.title", { defaultValue: "Notes" }), se = Xe(), le = je ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), re = r !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), qe = g === "rich" ? be(P) : P.trim().length > 0, Fe = T(() => {
199
+ var x;
200
+ if (!(r !== null ? N : m) || u) return;
201
+ const t = g === "rich", d = t ? ((x = b.current) == null ? void 0 : x.getHTML()) ?? P : P.trim();
202
+ if (t ? !be(d) : !d) return;
203
+ const l = () => {
204
+ var p;
205
+ t && ((p = b.current) == null || p.clear()), V(""), B(E), Y(null);
206
+ };
207
+ R(null);
208
+ let s;
209
+ try {
210
+ s = r !== null && N ? N(r, { content: d, clinical: H }) : m == null ? void 0 : m({ content: d, clinical: H });
211
+ } catch (p) {
212
+ R(ve(p, a("notesPanel.addFailed")));
213
+ return;
214
+ }
215
+ if (!s || typeof s.then != "function") return l();
216
+ ne(!0), Promise.resolve(s).then(
217
+ l,
218
+ (p) => R(ve(p, a("notesPanel.addFailed")))
219
+ ).finally(() => ne(!1));
220
+ }, [
221
+ g,
222
+ P,
223
+ H,
224
+ E,
225
+ r,
226
+ m,
227
+ N,
228
+ u,
229
+ a
230
+ ]), oe = Te && (r === null || Ie), de = T(
231
+ (e) => {
232
+ try {
233
+ return new Intl.DateTimeFormat(te.language, {
234
+ day: "numeric",
235
+ month: "long",
236
+ year: "numeric",
237
+ hour: "2-digit",
238
+ minute: "2-digit"
239
+ }).format(new Date(e.dateIso));
240
+ } catch {
241
+ return e.dateIso;
242
+ }
243
+ },
244
+ [te.language]
245
+ ), Ke = T(
246
+ (e) => {
247
+ var d, l, s;
248
+ if (!e.id || u) return;
249
+ const t = e.content ?? "";
250
+ R(null), Y(e.id), B(e.clinical ?? !1), V(t), g === "rich" && ((d = b.current) == null || d.clear(), (l = b.current) == null || l.insertAtCursor(t, { asHtml: !0 })), (s = b.current) == null || s.focus();
251
+ },
252
+ [g, u]
253
+ ), W = T(() => {
254
+ var e;
255
+ g === "rich" && ((e = b.current) == null || e.clear()), V(""), B(E), R(null), Y(null);
256
+ }, [g, E]), ce = r === null || j.some((e) => e.id === r && !e.deleted);
257
+ me(() => {
258
+ ce || W();
259
+ }, [ce, W]);
260
+ const k = [...j].sort(
261
+ (e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
262
+ ), { resolvedTheme: Me } = ft(), ue = Me.endsWith("-accessible") || void 0, { containerRef: $e } = dt({
263
+ key: k.map((e) => e.id).join(),
264
+ reduceMotion: ue
265
+ }), _ = ct({ reduceMotion: ue }), [D, q] = w(null), Ge = T(
266
+ (e) => {
267
+ h && ($ ? q(e) : _.leave(e, () => h(e)));
268
+ },
269
+ [$, _, h]
270
+ ), Ye = T(() => {
271
+ if (!D || !h) return;
272
+ const e = D;
273
+ q(null), _.leave(e, () => h(e));
274
+ }, [D, h, _]), J = f(null);
275
+ me(() => {
276
+ var e, t;
277
+ y && ((e = J.current) == null || e.scrollIntoView({ block: "center" }), (t = J.current) == null || t.focus());
278
+ }, [y, Z]);
279
+ const Q = f(j);
280
+ Q.current = j;
281
+ const S = f(m);
282
+ S.current = m;
283
+ const F = f(L);
284
+ F.current = L;
285
+ const K = f(O);
286
+ K.current = O;
287
+ const U = f(A);
288
+ U.current = A;
289
+ const fe = f(y);
290
+ fe.current = y;
291
+ const pe = f(null);
292
+ Ze(Be, () => pe.current, []);
293
+ const Je = et(
294
+ () => ({
295
+ // Ids + flags only — never the note body or author (both PHI).
296
+ getNotes: () => Q.current.map((e) => ({
297
+ id: e.id,
298
+ pinned: !!e.pinned,
299
+ flagged: !!e.flagged,
300
+ clinical: !!e.clinical
301
+ })),
302
+ canAddNote: () => !!S.current,
303
+ canAddClinical: () => U.current,
304
+ getCurrentNoteId: () => fe.current ?? null,
305
+ addNote: (e) => {
306
+ var t;
307
+ if (!(e.clinical && !U.current))
308
+ return (t = S.current) == null ? void 0 : t.call(S, e);
309
+ },
310
+ togglePin: (e) => {
311
+ var d, l;
312
+ const t = Q.current.find((s) => s.id === e);
313
+ t && (t.deleted || ((d = t.actions) == null ? void 0 : d.pin) === !1) || (l = F.current) == null || l.call(F, e);
314
+ },
315
+ toggleFlag: (e) => {
316
+ var t;
317
+ return (t = K.current) == null ? void 0 : t.call(K, e);
318
+ }
319
+ }),
320
+ []
321
+ );
322
+ return nt(ht, Je, c), /* @__PURE__ */ o(
323
+ "section",
324
+ {
325
+ ref: pe,
326
+ "data-component": "notes-panel",
327
+ "data-component-id": c,
328
+ "aria-labelledby": G ? void 0 : se,
329
+ "aria-label": G,
330
+ className: ["ds:flex ds:flex-col", Oe].filter(Boolean).join(" "),
331
+ ...He,
332
+ children: [
333
+ /* @__PURE__ */ n(
334
+ ot,
335
+ {
336
+ title: De,
337
+ icon: /* @__PURE__ */ n(pt, { "aria-hidden": "true" }),
338
+ headingId: G ? void 0 : se,
339
+ sticky: !0,
340
+ divider: !0
341
+ }
342
+ ),
343
+ /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
344
+ m || r !== null ? /* @__PURE__ */ o(
345
+ "div",
346
+ {
347
+ "data-notes-panel-composer": r !== null ? "edit" : "add",
348
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
349
+ children: [
350
+ g === "rich" ? /* @__PURE__ */ n(
351
+ it,
352
+ {
353
+ ref: b,
354
+ ariaLabel: re,
355
+ placeholder: le,
356
+ toolbar: Pe,
357
+ minHeight: "fill",
358
+ redactor: xe,
359
+ imageUploadUrl: we,
360
+ readOnly: u,
361
+ onChange: ({ html: e }) => V(e),
362
+ onRequestAiDraft: Ne,
363
+ aiDraftFormat: Ve,
364
+ aiPrivacyNotice: Re,
365
+ onDictate: ke,
366
+ onProofread: _e,
367
+ onAutoFormat: Se
368
+ }
369
+ ) : /* @__PURE__ */ n(
370
+ st,
371
+ {
372
+ value: P,
373
+ readOnly: u,
374
+ onChange: (e) => V(e.target.value),
375
+ placeholder: le,
376
+ autoResize: !0,
377
+ minRows: 2,
378
+ maxRows: 6,
379
+ "aria-label": re
380
+ }
381
+ ),
382
+ /* @__PURE__ */ o(
383
+ "div",
384
+ {
385
+ className: [
386
+ "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
387
+ oe ? "ds:justify-between" : "ds:justify-end"
388
+ ].join(" "),
389
+ children: [
390
+ oe ? /* @__PURE__ */ n(
391
+ lt,
392
+ {
393
+ size: "sm",
394
+ label: a("notesPanel.clinicalToggle", {
395
+ defaultValue: "Clinical note"
396
+ }),
397
+ checked: H,
398
+ onCheckedChange: (e) => B(e === !0),
399
+ disabled: u || !A,
400
+ disabledReason: A ? void 0 : Ee ?? a("notesPanel.clinicalGated", {
401
+ defaultValue: "You do not have permission to write clinical notes."
402
+ })
403
+ }
404
+ ) : null,
405
+ /* @__PURE__ */ o("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
406
+ r !== null ? /* @__PURE__ */ n(
407
+ z,
408
+ {
409
+ type: "button",
410
+ size: "sm",
411
+ intent: "ghost",
412
+ onClick: W,
413
+ disabled: u,
414
+ children: a("notesPanel.cancelEdit", { defaultValue: "Cancel" })
415
+ }
416
+ ) : null,
417
+ /* @__PURE__ */ n(
418
+ z,
419
+ {
420
+ type: "button",
421
+ size: "sm",
422
+ onClick: Fe,
423
+ disabled: !qe,
424
+ loading: u,
425
+ children: r !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : Ae ?? a("notesPanel.add", { defaultValue: "Add note" })
426
+ }
427
+ )
428
+ ] })
429
+ ]
430
+ }
431
+ ),
432
+ ae ? /* @__PURE__ */ n(I, { variant: "error", children: /* @__PURE__ */ n(I.Description, { children: ae }) }) : null
433
+ ]
434
+ }
435
+ ) : null,
436
+ C === "loading" && k.length === 0 ? (
437
+ /* Note-shaped placeholders, not a spinner: the reader sees where
438
+ the notes will land and how many to expect. The status text is
439
+ for assistive tech only; sighted readers get the motion. */
440
+ /* @__PURE__ */ o(
441
+ "div",
442
+ {
443
+ "data-notes-panel-loading": "",
444
+ "aria-busy": "true",
445
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
446
+ children: [
447
+ /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }),
448
+ Pt.map((e, t) => /* @__PURE__ */ n(he, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ n(he.Body, { children: /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
449
+ /* @__PURE__ */ o("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
450
+ /* @__PURE__ */ n(
451
+ M,
452
+ {
453
+ variant: "circular",
454
+ size: "sm",
455
+ stagger: t * 2
456
+ }
457
+ ),
458
+ /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
459
+ /* @__PURE__ */ n(
460
+ M,
461
+ {
462
+ variant: "text",
463
+ size: "sm",
464
+ stagger: t * 2,
465
+ width: "40%"
466
+ }
467
+ ),
468
+ /* @__PURE__ */ n(
469
+ M,
470
+ {
471
+ variant: "text",
472
+ size: "sm",
473
+ stagger: t * 2,
474
+ width: "25%"
475
+ }
476
+ )
477
+ ] })
478
+ ] }),
479
+ /* @__PURE__ */ n(
480
+ M,
481
+ {
482
+ variant: "text",
483
+ size: "sm",
484
+ lines: e,
485
+ stagger: t * 2 + 1
486
+ }
487
+ )
488
+ ] }) }) }, t))
489
+ ]
490
+ }
491
+ )
492
+ ) : C === "error" ? /* @__PURE__ */ o(I, { variant: "error", children: [
493
+ /* @__PURE__ */ n(I.Description, { children: a("notesPanel.loadError") }),
494
+ X ? /* @__PURE__ */ n(I.Action, { children: /* @__PURE__ */ n(z, { intent: "secondary", size: "sm", onClick: X, children: a("notesPanel.retry") }) }) : null
495
+ ] }) : null,
496
+ C === "loading" && k.length > 0 ? /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }) : null,
497
+ k.length > 0 ? /* @__PURE__ */ n(
498
+ "ul",
499
+ {
500
+ ref: $e,
501
+ "aria-busy": C === "loading" || void 0,
502
+ className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${We}`.trim(),
503
+ children: k.map(({ actions: e, ...t }, d) => {
504
+ const l = y != null && t.id === y, s = t.id, x = s != null && r === s, p = s != null && _.isLeaving(s);
505
+ return /* @__PURE__ */ o(
506
+ "li",
507
+ {
508
+ ref: l ? J : void 0,
509
+ tabIndex: l ? -1 : void 0,
510
+ "aria-current": l ? "true" : void 0,
511
+ "data-reflow-id": s,
512
+ "data-leaving": p ? "" : void 0,
513
+ "data-editing": x ? "" : void 0,
514
+ className: [
515
+ yt({
516
+ current: l,
517
+ washed: l || x
518
+ }),
519
+ Ct,
520
+ ut,
521
+ p ? bt : ""
522
+ ].filter(Boolean).join(" "),
523
+ children: [
524
+ l ? /* @__PURE__ */ n("span", { className: "ds:sr-only", children: a("notesPanel.current", {
525
+ defaultValue: "Current note"
526
+ }) }) : null,
527
+ x ? /* @__PURE__ */ n(
528
+ "span",
529
+ {
530
+ "aria-hidden": "true",
531
+ "data-notes-panel-wash": "editing",
532
+ className: ye({ state: "editing" })
533
+ }
534
+ ) : l ? /* @__PURE__ */ n(
535
+ "span",
536
+ {
537
+ "aria-hidden": "true",
538
+ "data-notes-panel-wash": "addressed",
539
+ className: ye({ state: "addressed" })
540
+ },
541
+ `${y}:${Z ?? ""}`
542
+ ) : null,
543
+ /* @__PURE__ */ n(
544
+ at,
545
+ {
546
+ surface: "elevated",
547
+ truncate: !l,
548
+ headerActions: /* @__PURE__ */ o(Qe, { children: [
549
+ ee ? ee({ ...t, actions: e }) : null,
550
+ N && s && !t.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ n(
551
+ ge,
552
+ {
553
+ icon: /* @__PURE__ */ n(mt, {}),
554
+ intent: "ghost",
555
+ size: "sm",
556
+ "aria-label": a("notesPanel.editNamed", {
557
+ date: de(t),
558
+ defaultValue: "Edit note · {{date}}"
559
+ }),
560
+ tooltip: a("notesPanel.edit", {
561
+ defaultValue: "Edit note"
562
+ }),
563
+ "aria-pressed": r === s,
564
+ disabled: u,
565
+ "data-notes-panel-edit": "",
566
+ onClick: () => r === s ? W() : Ke(t)
567
+ }
568
+ ) : null,
569
+ h && s && !t.deleted ? /* @__PURE__ */ n(
570
+ ge,
571
+ {
572
+ icon: /* @__PURE__ */ n(gt, {}),
573
+ intent: "ghost",
574
+ size: "sm",
575
+ "aria-label": a("notesPanel.deleteNamed", {
576
+ date: de(t),
577
+ defaultValue: "Delete note · {{date}}"
578
+ }),
579
+ tooltip: a("notesPanel.delete", {
580
+ defaultValue: "Delete note"
581
+ }),
582
+ onClick: () => Ge(s)
583
+ }
584
+ ) : null
585
+ ] }),
586
+ ...t,
587
+ onTogglePin: L && t.id && (e == null ? void 0 : e.pin) !== !1 && !t.deleted ? () => L(t.id) : void 0,
588
+ onToggleFlag: O && t.id ? () => O(t.id) : void 0
589
+ }
590
+ )
591
+ ]
592
+ },
593
+ t.id ?? d
594
+ );
595
+ })
596
+ }
597
+ ) : C !== "ready" ? null : Le ?? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: a("notesPanel.empty", { defaultValue: "No notes yet." }) })
598
+ ] }),
599
+ h && $ ? /* @__PURE__ */ n(
600
+ v,
601
+ {
602
+ open: D !== null,
603
+ onOpenChange: (e) => !e && q(null),
604
+ children: /* @__PURE__ */ o(v.Content, { variant: "alert", size: "sm", children: [
605
+ /* @__PURE__ */ n(v.Header, { children: /* @__PURE__ */ n(v.Title, { children: a("notesPanel.deleteConfirmTitle", {
606
+ defaultValue: "Delete this note?"
607
+ }) }) }),
608
+ /* @__PURE__ */ n(v.Body, { children: /* @__PURE__ */ n(v.Description, { children: a("notesPanel.deleteConfirmBody", {
609
+ defaultValue: "The note will be removed from the record."
610
+ }) }) }),
611
+ /* @__PURE__ */ o(v.Footer, { children: [
612
+ /* @__PURE__ */ n(v.Close, { asChild: !0, children: /* @__PURE__ */ n(
613
+ z,
614
+ {
615
+ intent: "secondary",
616
+ size: "sm",
617
+ onClick: () => q(null),
618
+ children: a("notesPanel.deleteConfirmCancel", {
619
+ defaultValue: "Cancel"
620
+ })
621
+ }
622
+ ) }),
623
+ /* @__PURE__ */ n(
624
+ z,
625
+ {
626
+ intent: "destructive",
627
+ size: "sm",
628
+ onClick: Ye,
629
+ children: a("notesPanel.deleteConfirmAction", {
630
+ defaultValue: "Delete"
631
+ })
632
+ }
633
+ )
634
+ ] })
635
+ ] })
636
+ }
637
+ ) : null
638
+ ]
639
+ }
640
+ );
641
+ }
642
+ );
643
+ export {
644
+ Ft as N,
645
+ ve as g
646
+ };
647
+ //# sourceMappingURL=notes-panel-CAD1Ytcj.js.map
@@ -2,8 +2,8 @@ import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
2
  import { forwardRef as W, useMemo as E, useState as H, useRef as X, useCallback as q } from "react";
3
3
  import { c as G } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as J } from "react-i18next";
5
- import { I as O } from "./icon-button-8xqRnkdG.js";
6
- import { B as K } from "./button-nJaPh_HC.js";
5
+ import { I as O } from "./icon-button-CehAeZoP.js";
6
+ import { B as K } from "./button-CaUe1uyd.js";
7
7
  import { T as Q } from "./timestamp-BV2lC-wV.js";
8
8
  import { X as Y } from "./x-B5YnXwCz.js";
9
9
  const Z = G(
@@ -287,4 +287,4 @@ export {
287
287
  ss as N,
288
288
  A as i
289
289
  };
290
- //# sourceMappingURL=notification-card-ChcK9Wat.js.map
290
+ //# sourceMappingURL=notification-card-B2gLO6dK.js.map
@@ -5,13 +5,13 @@ import { c as A } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as U } from "react-i18next";
6
6
  import { u as ce } from "./use-controllable-state-BiY4xTzM.js";
7
7
  import { u as le } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
- import { I as pe } from "./icon-button-8xqRnkdG.js";
9
- import { B as F } from "./button-nJaPh_HC.js";
8
+ import { I as pe } from "./icon-button-CehAeZoP.js";
9
+ import { B as F } from "./button-CaUe1uyd.js";
10
10
  import { S as H } from "./separator-CYU_bGFn.js";
11
- import { S as b } from "./skeleton-CZbwyJAA.js";
11
+ import { S as b } from "./skeleton-B1KTdJ4N.js";
12
12
  import { C as fe } from "./counter-WsvRuum1.js";
13
13
  import { S as me } from "./scroll-area-BZOvUhwQ.js";
14
- import { N as ue } from "./notification-card-ChcK9Wat.js";
14
+ import { N as ue } from "./notification-card-B2gLO6dK.js";
15
15
  import { u as ge } from "./registry-DvAUVLHh.js";
16
16
  import { c as ve } from "./createLucideIcon-DhHxpK9K.js";
17
17
  /**
@@ -496,4 +496,4 @@ export {
496
496
  ze as N,
497
497
  ye as n
498
498
  };
499
- //# sourceMappingURL=notification-tray-CJ8jOe-U.js.map
499
+ //# sourceMappingURL=notification-tray-BOEKegVV.js.map