@alfadocs/ui-kit 1.150.0 → 1.151.1

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 (263) hide show
  1. package/dist/_chunks/{address-autocomplete-_LeOFdM7.js → address-autocomplete-Bt1nwxyn.js} +2 -2
  2. package/dist/_chunks/{address-fields-C4khof4C.js → address-fields-COumFRSX.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-NgxPuAAz.js → agenda-tray-CmfcYQhc.js} +2 -2
  4. package/dist/_chunks/{ai-summary-panel-D-RNe-_n.js → ai-summary-panel-DyAHCqaj.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-Bjuxk8mU.js → alia-sidebar-BqZjnVoF.js} +2 -2
  6. package/dist/_chunks/{anamnesis-card-G0qzw0Oi.js → anamnesis-card-CoiG7vDj.js} +2 -2
  7. package/dist/_chunks/{anamnesis-summary-rows-CE-i9j-s.js → anamnesis-summary-rows-CFpaA1GP.js} +3 -3
  8. package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
  9. package/dist/_chunks/{appointment-card-BPZggqck.js → appointment-card-CCKjbU5y.js} +105 -104
  10. package/dist/_chunks/{appointment-details-panel.history-BO31ZFQp.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
  11. package/dist/_chunks/{appointment-details-panel.identity-C9kWtC6m.js → appointment-details-panel.identity-9hRo85Lx.js} +4 -4
  12. package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
  13. package/dist/_chunks/{appointment-timeline-ynFqcw0S.js → appointment-timeline-B9KRurfc.js} +3 -3
  14. package/dist/_chunks/{appointment-tray-Dx5VDREk.js → appointment-tray-Be3HuEyO.js} +3 -3
  15. package/dist/_chunks/{balance-badge-cell-DiyJQcmA.js → balance-badge-cell-OghXENKK.js} +3 -3
  16. package/dist/_chunks/{bill-line-table-B8Cc2pTH.js → bill-line-table-DxV5_Dmq.js} +2 -2
  17. package/dist/_chunks/{calendar-appointment-editor-dialog-BfoEpFVx.js → calendar-appointment-editor-dialog-B9MtcBvx.js} +337 -334
  18. package/dist/_chunks/{calendar-editor-discard-host-DO506cJu.js → calendar-editor-discard-host-BudLsUZO.js} +3 -3
  19. package/dist/_chunks/{calendar-waiting-list-panel-CyMTv2y3.js → calendar-waiting-list-panel-DukgSOPH.js} +7 -7
  20. package/dist/_chunks/{calendar-workspace.model-X3aXbDTo.js → calendar-workspace.model-BulUpy0I.js} +2 -2
  21. package/dist/_chunks/{calendar.sheets-C8x8kPb4.js → calendar.sheets-OmTiQdCg.js} +8 -8
  22. package/dist/_chunks/{calls-panel-Bpemmnpd.js → calls-panel-eohONLia.js} +3 -3
  23. package/dist/_chunks/code-BfU9G1ZM.js +15 -0
  24. package/dist/_chunks/{communications-panel-Cd0TBEhL.js → communications-panel-CqiFs8BH.js} +3 -3
  25. package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
  26. package/dist/_chunks/control-room-rail-C-3o1e0e.js +456 -0
  27. package/dist/_chunks/{data-grid-CkzbCZSo.js → data-grid-DTAwrOiq.js} +3 -3
  28. package/dist/_chunks/{data-table-DFAYYsSc.js → data-table-CgpHO6EZ.js} +2 -2
  29. package/dist/_chunks/{default-tabs-C45FVzsG.js → default-tabs-CZaDDf1G.js} +4 -4
  30. package/dist/_chunks/{description-list-DA4TgL_I.js → description-list-DaldSpGy.js} +29 -26
  31. package/dist/_chunks/dev-bypass-button-DFcNpCQj.js +24 -0
  32. package/dist/_chunks/{document-preview-Zws6CHhK.js → document-preview-TbwhY_eK.js} +3 -3
  33. package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
  34. package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
  35. package/dist/_chunks/{error-boundary-BQ5mRqEd.js → error-boundary-BDS1XStO.js} +2 -2
  36. package/dist/_chunks/{error-page-CdNGIezW.js → error-page-3gWV-Vmj.js} +2 -2
  37. package/dist/_chunks/{error-page-illustration-BdJLuMdV.js → error-page-illustration-CJCjLk_-.js} +125 -149
  38. package/dist/_chunks/{face-scheme-BC2whb1S.js → face-scheme-DRYGaszs.js} +255 -264
  39. package/dist/_chunks/{feature-preview-switch-PKeLaFry.js → feature-preview-switch-B_8JTya_.js} +2 -2
  40. package/dist/_chunks/{file-manager-DzOCQBAO.js → file-manager-DMvYx-Gq.js} +4 -4
  41. package/dist/_chunks/{folder-CH9PJHou.js → folder-DvNxod7_.js} +3 -3
  42. package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
  43. package/dist/_chunks/{help-me-write-templates-B_wMJ82X.js → help-me-write-templates-VnvlK87x.js} +2 -2
  44. package/dist/_chunks/{info-tip-cCppV1fD.js → info-tip-DkVISvo-.js} +2 -2
  45. package/dist/_chunks/{invoice-upload-list-BReimsvV.js → invoice-upload-list-DutydbjC.js} +3 -3
  46. package/dist/_chunks/{link-cell-renderer-CWLArl5e.js → link-cell-renderer-DTunki79.js} +3 -3
  47. package/dist/_chunks/{login-dev-card-DqUNJcd7.js → login-dev-card-CQz9yhrU.js} +2 -2
  48. package/dist/_chunks/{map-view-n6GiDRWM.js → map-view-B67HXWPR.js} +2 -2
  49. package/dist/_chunks/mark-adrift-LBqHvZwv.js +42 -0
  50. package/dist/_chunks/{marketplace-app-shell-CGA-R-zt.js → marketplace-app-shell-CclaaAvb.js} +3 -3
  51. package/dist/_chunks/{message-tray-Dx2HPcKB.js → message-tray-DysT-DPS.js} +2 -2
  52. package/dist/_chunks/{note-timeline-BbjHMhkL.js → note-timeline-CS5j2OKD.js} +86 -77
  53. package/dist/_chunks/notebook-text-spVSekMN.js +21 -0
  54. package/dist/_chunks/{notes-panel-BguRX8VC.js → notes-panel-d0I3hOEY.js} +162 -173
  55. package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
  56. package/dist/_chunks/{optical-prescription-BzGnlIjq.js → optical-prescription-CAnXavjq.js} +2 -2
  57. package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
  58. package/dist/_chunks/{panel-subview-Om_yZvFG.js → panel-subview-B5hnQwfQ.js} +2 -2
  59. package/dist/_chunks/{patient-account-settings-YKnBzmwE.js → patient-account-settings-DmB_h5fq.js} +3 -3
  60. package/dist/_chunks/{patient-check-in-resume-DERfQbp5.js → patient-check-in-resume-CI54cY8Z.js} +6 -6
  61. package/dist/_chunks/{patient-details-BUD0UbmT.js → patient-details-wFIzTz7N.js} +3 -3
  62. package/dist/_chunks/{patient-field-row-DytaHdGw.js → patient-field-row-BDgfYLgz.js} +2 -2
  63. package/dist/_chunks/{patient-summary-card-7Werxl48.js → patient-summary-card-ZunOre3Q.js} +162 -155
  64. package/dist/_chunks/{payment-request-card-BF3rakTQ.js → payment-request-card-BSSfKrcc.js} +2 -2
  65. package/dist/_chunks/{portal-details-C1QQGPQf.js → portal-details-BZm8UNMx.js} +4 -4
  66. package/dist/_chunks/{portal-documents-CzEuCaqv.js → portal-documents-CBVSCKAB.js} +3 -3
  67. package/dist/_chunks/{portal-parts-BMW4t57s.js → portal-parts-DRfyhL5P.js} +3 -3
  68. package/dist/_chunks/{practice-results-D0TAgL8v.js → practice-results-CqoB5YAv.js} +5 -5
  69. package/dist/_chunks/{prescription-history-CQuJmd4H.js → prescription-history-CxBM3gnm.js} +4 -4
  70. package/dist/_chunks/{privacy-mask-CrjD5PYW.js → privacy-mask-CaLBAxzj.js} +2 -2
  71. package/dist/_chunks/{product-hub-panel-NVpRuJeW.js → product-hub-panel-RJzrDcGp.js} +3 -3
  72. package/dist/_chunks/{public-header.agent-Dzo6ujrE.js → public-header.agent-B2CqVq4s.js} +2 -2
  73. package/dist/_chunks/{radiograph-panel.agent-Kl1M0dtT.js → radiograph-panel.agent-kgCmmgZk.js} +2 -2
  74. package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
  75. package/dist/_chunks/{registry-connection-panel-kdKbGQE6.js → registry-connection-panel-BkPPA3Fj.js} +3 -3
  76. package/dist/_chunks/{reserved.agent-CW0frsMv.js → reserved.agent-C-sMq0pb.js} +4 -4
  77. package/dist/_chunks/{reviews-panel-54AFY6uy.js → reviews-panel-jIz5aP2X.js} +3 -3
  78. package/dist/_chunks/rich-text-editor-DTadvKa7.js +4716 -0
  79. package/dist/_chunks/{scroll-area-CY5SLYNw.js → scroll-area-RQtcKkHf.js} +84 -79
  80. package/dist/_chunks/{sheet-CZDjW9Q-.js → sheet-1LXzej6Q.js} +2 -2
  81. package/dist/_chunks/{sidebar-D5DFYN5K.js → sidebar-BV9JCgS4.js} +2 -2
  82. package/dist/_chunks/{signed-out-frame-CC25CgKo.js → signed-out-frame-CKA8SSbU.js} +2 -2
  83. package/dist/_chunks/{signing-end-screen-Bq6tkFE6.js → signing-end-screen-HXkalppf.js} +2 -2
  84. package/dist/_chunks/{slot-grid-khIpy8Gx.js → slot-grid-DdqeF6PW.js} +2 -2
  85. package/dist/_chunks/{sync-tray-BQD-HuA4.js → sync-tray-CSVGzuur.js} +2 -2
  86. package/dist/_chunks/{task-editor-CIHQQRtP.js → task-editor-aXjGMwYA.js} +4 -4
  87. package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
  88. package/dist/_chunks/{tasks-panel-Bc_odkQN.js → tasks-panel-BdxHb-fX.js} +2 -2
  89. package/dist/_chunks/{tool-rail-CJBtqzMs.js → tool-rail-C_Ay0Gxi.js} +260 -256
  90. package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
  91. package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
  92. package/dist/_chunks/{treatment-receipt-B6m47Jie.js → treatment-receipt-CZQV1NkJ.js} +45 -46
  93. package/dist/_chunks/{use-appointment-details-read-HVHbR0Zl.js → use-appointment-details-read-BR3TQOHx.js} +878 -809
  94. package/dist/_chunks/user-round-DZxRG9zq.js +15 -0
  95. package/dist/_chunks/{week-availability-D0tTll4q.js → week-availability-D00rMjsX.js} +2 -2
  96. package/dist/_chunks/{workflow-map-F7OThorL.js → workflow-map-DLUTUZ27.js} +2 -2
  97. package/dist/agent-catalog.json +1 -1
  98. package/dist/appointment-editor-panel/index.js +3 -3
  99. package/dist/booking-tools-data/index.js +1 -1
  100. package/dist/browser-support.js +1 -1
  101. package/dist/calendar-action-buttons/index.js +1 -1
  102. package/dist/components/_shared/mark-adrift.d.ts +12 -0
  103. package/dist/components/_shared/safe-html.d.ts +6 -0
  104. package/dist/components/_shared/tooth-chip.d.ts +21 -0
  105. package/dist/components/address-autocomplete/index.js +1 -1
  106. package/dist/components/address-fields/index.js +1 -1
  107. package/dist/components/agenda-tray/index.js +1 -1
  108. package/dist/components/ai-summary-panel/index.js +1 -1
  109. package/dist/components/anamnesis-card/index.js +1 -1
  110. package/dist/components/app-frame/index.js +1 -1
  111. package/dist/components/appointment-card/appointment-card.d.ts +5 -1
  112. package/dist/components/appointment-card/index.js +2 -2
  113. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +9 -2
  114. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +9 -2
  115. package/dist/components/appointment-details-panel/description-length.d.ts +18 -0
  116. package/dist/components/appointment-details-panel/index.d.ts +1 -0
  117. package/dist/components/appointment-details-panel/index.js +7 -6
  118. package/dist/components/appointment-peek/index.js +1 -1
  119. package/dist/components/appointment-timeline/index.js +1 -1
  120. package/dist/components/bill-line-table/index.js +1 -1
  121. package/dist/components/bill-table/index.js +1 -1
  122. package/dist/components/booking/index.js +1 -1
  123. package/dist/components/calls-panel/index.js +1 -1
  124. package/dist/components/communications-panel/index.js +1 -1
  125. package/dist/components/connection-status/index.js +1 -1
  126. package/dist/components/control-room-rail/control-room-rail.d.ts +24 -0
  127. package/dist/components/control-room-rail/index.js +1 -1
  128. package/dist/components/data-grid/index.js +2 -2
  129. package/dist/components/data-table/index.js +3 -3
  130. package/dist/components/description-list/index.js +1 -1
  131. package/dist/components/dev-bypass-button/index.js +1 -1
  132. package/dist/components/document-preview/index.js +1 -1
  133. package/dist/components/empty-state/index.js +1 -1
  134. package/dist/components/error-boundary/index.js +1 -1
  135. package/dist/components/face-scheme/index.js +1 -1
  136. package/dist/components/feature-preview-switch/index.js +1 -1
  137. package/dist/components/file-manager/index.js +1 -1
  138. package/dist/components/heatmap/index.js +1 -1
  139. package/dist/components/info-tip/index.js +1 -1
  140. package/dist/components/invoice-upload-list/index.js +1 -1
  141. package/dist/components/map-view/index.js +1 -1
  142. package/dist/components/message-tray/index.js +1 -1
  143. package/dist/components/note-timeline/index.js +1 -1
  144. package/dist/components/note-timeline/note-timeline.d.ts +8 -0
  145. package/dist/components/notes-panel/index.js +1 -1
  146. package/dist/components/notes-panel/notes-panel.d.ts +18 -7
  147. package/dist/components/notification-tray/index.js +1 -1
  148. package/dist/components/optical-prescription/index.js +1 -1
  149. package/dist/components/panel-subview/index.js +1 -1
  150. package/dist/components/patient-details/index.js +1 -1
  151. package/dist/components/patient-summary-card/index.js +1 -1
  152. package/dist/components/patient-table/index.js +1 -1
  153. package/dist/components/payment-card/index.js +1 -1
  154. package/dist/components/practice-results/index.js +1 -1
  155. package/dist/components/product-hub-tray/index.js +1 -1
  156. package/dist/components/public-header/index.js +1 -1
  157. package/dist/components/radiograph-panel/index.js +1 -1
  158. package/dist/components/registry-connection-panel/index.js +1 -1
  159. package/dist/components/reviews-panel/index.js +1 -1
  160. package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -6
  161. package/dist/components/rich-text-editor/index.d.ts +1 -1
  162. package/dist/components/rich-text-editor/index.js +1 -1
  163. package/dist/components/rich-text-editor/link-bar.d.ts +8 -0
  164. package/dist/components/rich-text-editor/rich-text-editor.d.ts +25 -3
  165. package/dist/components/scroll-area/index.js +1 -1
  166. package/dist/components/scroll-area/scroll-area.d.ts +6 -0
  167. package/dist/components/sheet/index.js +1 -1
  168. package/dist/components/sidebar/index.js +1 -1
  169. package/dist/components/slot-grid/index.js +1 -1
  170. package/dist/components/sync-tray/index.js +1 -1
  171. package/dist/components/task-editor/index.js +1 -1
  172. package/dist/components/task-tray/index.js +1 -1
  173. package/dist/components/tasks-panel/index.js +1 -1
  174. package/dist/components/tool-rail/index.js +1 -1
  175. package/dist/components/tool-rail/tool-rail.d.ts +14 -0
  176. package/dist/components/treatment-receipt/index.js +1 -1
  177. package/dist/components/treatment-receipt/treatment-receipt.d.ts +6 -1
  178. package/dist/components/week-availability/index.js +1 -1
  179. package/dist/components/workflow/index.js +1 -1
  180. package/dist/core.css +1 -1
  181. package/dist/find-free-slots-panel/index.js +1 -1
  182. package/dist/host-compat.css +4 -1
  183. package/dist/host-legacy.css +13 -1
  184. package/dist/i18n/locales/ar.d.ts +9 -0
  185. package/dist/i18n/locales/ar.js +11 -2
  186. package/dist/i18n/locales/de.d.ts +9 -0
  187. package/dist/i18n/locales/de.js +11 -2
  188. package/dist/i18n/locales/el.d.ts +9 -0
  189. package/dist/i18n/locales/el.js +11 -2
  190. package/dist/i18n/locales/en.d.ts +9 -0
  191. package/dist/i18n/locales/en.js +10 -1
  192. package/dist/i18n/locales/es.d.ts +9 -0
  193. package/dist/i18n/locales/es.js +11 -2
  194. package/dist/i18n/locales/fr.d.ts +9 -0
  195. package/dist/i18n/locales/fr.js +11 -2
  196. package/dist/i18n/locales/hi.d.ts +9 -0
  197. package/dist/i18n/locales/hi.js +11 -2
  198. package/dist/i18n/locales/it.d.ts +9 -0
  199. package/dist/i18n/locales/it.js +11 -2
  200. package/dist/i18n/locales/ja.d.ts +9 -0
  201. package/dist/i18n/locales/ja.js +11 -2
  202. package/dist/i18n/locales/nl.d.ts +9 -0
  203. package/dist/i18n/locales/nl.js +11 -2
  204. package/dist/i18n/locales/pl.d.ts +9 -0
  205. package/dist/i18n/locales/pl.js +11 -2
  206. package/dist/i18n/locales/pt.d.ts +9 -0
  207. package/dist/i18n/locales/pt.js +11 -2
  208. package/dist/i18n/locales/ro.d.ts +9 -0
  209. package/dist/i18n/locales/ro.js +11 -2
  210. package/dist/i18n/locales/ru.d.ts +9 -0
  211. package/dist/i18n/locales/ru.js +11 -2
  212. package/dist/i18n/locales/sq.d.ts +9 -0
  213. package/dist/i18n/locales/sq.js +11 -2
  214. package/dist/i18n/locales/sv.d.ts +9 -0
  215. package/dist/i18n/locales/sv.js +11 -2
  216. package/dist/i18n/locales/tr.d.ts +9 -0
  217. package/dist/i18n/locales/tr.js +11 -2
  218. package/dist/i18n/locales/zh.d.ts +9 -0
  219. package/dist/i18n/locales/zh.js +11 -2
  220. package/dist/index.js +818 -817
  221. package/dist/locales/ar.json +11 -2
  222. package/dist/locales/de.json +11 -2
  223. package/dist/locales/el.json +11 -2
  224. package/dist/locales/en.json +10 -1
  225. package/dist/locales/es.json +11 -2
  226. package/dist/locales/fr.json +11 -2
  227. package/dist/locales/hi.json +11 -2
  228. package/dist/locales/it.json +11 -2
  229. package/dist/locales/ja.json +11 -2
  230. package/dist/locales/nl.json +11 -2
  231. package/dist/locales/pl.json +11 -2
  232. package/dist/locales/pt.json +11 -2
  233. package/dist/locales/ro.json +11 -2
  234. package/dist/locales/ru.json +11 -2
  235. package/dist/locales/sq.json +11 -2
  236. package/dist/locales/sv.json +11 -2
  237. package/dist/locales/tr.json +11 -2
  238. package/dist/locales/zh.json +11 -2
  239. package/dist/online-bookings-panel/index.js +2 -2
  240. package/dist/patterns/alia-assistant/index.js +1 -1
  241. package/dist/patterns/anamnesis/index.js +1 -1
  242. package/dist/patterns/calendar/index.js +4 -4
  243. package/dist/patterns/error-page/index.js +2 -2
  244. package/dist/patterns/help-me-write-templates/index.js +1 -1
  245. package/dist/patterns/login-form/index.js +1 -1
  246. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  247. package/dist/patterns/patient-account-settings/index.js +1 -1
  248. package/dist/patterns/patient-check-in/index.js +1 -1
  249. package/dist/patterns/patient-portal/index.js +2 -2
  250. package/dist/patterns/prescription/index.js +1 -1
  251. package/dist/patterns/registration-form/index.js +1 -1
  252. package/dist/patterns/signed-out-frame/index.js +1 -1
  253. package/dist/patterns/signing/index.js +1 -1
  254. package/dist/redactor.css +9 -0
  255. package/dist/safe-html/index.js +33 -19
  256. package/dist/tokens.css +61 -52
  257. package/dist/waiting-list-panel/index.js +3 -3
  258. package/package.json +1 -1
  259. package/dist/_chunks/appointment-peek-CGJ6kUvM.js +0 -213
  260. package/dist/_chunks/control-room-rail-4W1MFY-g.js +0 -416
  261. package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
  262. package/dist/_chunks/rich-text-editor-DCQEpaIv.js +0 -4523
  263. /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
@@ -1,31 +1,31 @@
1
- import { jsxs as y, jsx as a, Fragment as $n } from "react/jsx-runtime";
2
- import { forwardRef as Bn, useRef as u, useState as T, useId as Pt, useEffect as S, useCallback as W, useMemo as xt, useImperativeHandle as Kn } from "react";
1
+ import { jsxs as y, jsx as a, Fragment as Kn } from "react/jsx-runtime";
2
+ import { forwardRef as Un, useRef as u, useState as T, useId as Pt, useEffect as S, useCallback as W, useMemo as xt, useImperativeHandle as In } from "react";
3
3
  import { c as jt } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Un } from "react-i18next";
4
+ import { useTranslation as Yn } from "react-i18next";
5
5
  import { g as Tt } from "./get-error-message-DbFUzuja.js";
6
- import { useSaveOutcomeUnknownMessage as In, isSaveOutcomeUnknownError as He } from "../save-outcome/index.js";
6
+ import { useSaveOutcomeUnknownMessage as Gn, isSaveOutcomeUnknownError as He } from "../save-outcome/index.js";
7
7
  import { h as Vt } from "./handled-rejection-C-6Dq0As.js";
8
- import { u as Yn } from "./registry-DvAUVLHh.js";
9
- import { A as Gn } from "./avatar-Dp5apm1d.js";
10
- import { C as Jn } from "./clinical-note-card-D-9xmRpf.js";
11
- import { R as Qn } from "./rich-text-editor-DCQEpaIv.js";
12
- import { T as Xn } from "./text-area-DbxGkpzE.js";
8
+ import { u as Jn } from "./registry-DvAUVLHh.js";
9
+ import { C as Qn } from "./clinical-note-card-D-9xmRpf.js";
10
+ import { R as Xn } from "./rich-text-editor-DTadvKa7.js";
11
+ import { T as Zn } from "./text-area-DbxGkpzE.js";
13
12
  import { A } from "./alert-C4WKViaS.js";
14
13
  import { B as re } from "./button-Dp4j9ygh.js";
15
14
  import { I as St } from "./icon-button-u9VMQn3x.js";
16
- import { S as Zn } from "./switch-DO6uC4HJ.js";
17
- import { T as er } from "./tooltip-uEBdD1-5.js";
15
+ import { S as er } from "./switch-DO6uC4HJ.js";
16
+ import { T as tr } from "./tooltip-uEBdD1-5.js";
18
17
  import { C as Ct } from "./card-n6W6LW-N.js";
19
- import { C as tr, S as be } from "./skeleton-tTWJpvAq.js";
18
+ import { C as nr, S as be } from "./skeleton-tTWJpvAq.js";
20
19
  import { D as L } from "./dialog-239Geb7Z.js";
21
- import { P as nr } from "./panel-header-DTc5OFUg.js";
22
- import { a as rr, u as sr, R as ar } from "./use-list-reflow-C7O4Uqnl.js";
23
- import { u as ir } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
24
- import { u as lr } from "./use-resolved-theme-B0f1_oyq.js";
25
- import { N as or } from "./notebook-pen-CO7HoM-W.js";
26
- import { P as dr } from "./pencil-B1sKKyuT.js";
27
- import { T as cr } from "./trash-2-uumy3fy1.js";
28
- const ur = {
20
+ import { P as rr } from "./panel-header-DTc5OFUg.js";
21
+ import { P as sr } from "./patient-summary-card-ZunOre3Q.js";
22
+ import { a as ar, u as ir, R as lr } from "./use-list-reflow-C7O4Uqnl.js";
23
+ import { u as or } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
24
+ import { u as dr } from "./use-resolved-theme-B0f1_oyq.js";
25
+ import { N as cr } from "./notebook-pen-CO7HoM-W.js";
26
+ import { P as ur } from "./pencil-B1sKKyuT.js";
27
+ import { T as fr } from "./trash-2-uumy3fy1.js";
28
+ const gr = {
29
29
  id: "notes-panel",
30
30
  // 'submit' backs add_note (compose + commit a note). pin / flag are toggles
31
31
  // with no dedicated capability in the closed vocabulary.
@@ -140,7 +140,7 @@ const ur = {
140
140
  description: "Stable note id on each rendered note row. Row controls carry data-note-action: edit, delete, pin or flag."
141
141
  }
142
142
  }
143
- }, fr = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", gr = jt(
143
+ }, hr = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", pr = jt(
144
144
  "ds:relative ds:flex ds:flex-col ds:rounded-[var(--radius-lg)]",
145
145
  {
146
146
  variants: {
@@ -148,7 +148,7 @@ const ur = {
148
148
  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)]",
149
149
  false: ""
150
150
  },
151
- washed: { true: fr, false: "" }
151
+ washed: { true: hr, false: "" }
152
152
  },
153
153
  defaultVariants: { current: !1, washed: !1 }
154
154
  }
@@ -172,10 +172,10 @@ const ur = {
172
172
  "ds:rounded-[var(--radius-lg)] ds:outline-none",
173
173
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
174
174
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
175
- ].join(" "), hr = ["ds:flex ds:flex-col", Lt].join(" "), pr = "ds:opacity-0", mr = [
175
+ ].join(" "), mr = ["ds:flex ds:flex-col", Lt].join(" "), vr = "ds:opacity-0", wr = [
176
176
  "ds:transition-opacity ds:duration-[var(--animation-duration)]",
177
177
  "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
178
- ].join(" "), vr = [3, 2, 3];
178
+ ].join(" "), yr = [3, 2, 3];
179
179
  function Rt(o) {
180
180
  return o ? /<img\b/i.test(o) ? !0 : o.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").trim().length > 0 : !1;
181
181
  }
@@ -200,7 +200,7 @@ function Ot(o, f, b) {
200
200
  const se = new Set(o);
201
201
  return f.slice(0, w).filter((C) => se.has(C)).length;
202
202
  }
203
- function wr(o) {
203
+ function br(o) {
204
204
  if (o.hasAttribute("tabindex")) {
205
205
  o.focus();
206
206
  return;
@@ -208,7 +208,7 @@ function wr(o) {
208
208
  const f = () => o.removeAttribute("tabindex");
209
209
  o.setAttribute("tabindex", "-1"), o.focus(), document.activeElement === o ? o.addEventListener("blur", f, { once: !0 }) : f();
210
210
  }
211
- const Ur = Bn(
211
+ const Yr = Un(
212
212
  function({
213
213
  id: f,
214
214
  notes: b,
@@ -222,58 +222,60 @@ const Ur = Bn(
222
222
  redactor: Dt,
223
223
  imageUploadUrl: _t,
224
224
  editorPlugins: Mt,
225
- showClinicalToggle: zt = !0,
225
+ editorTools: zt,
226
+ showClinicalToggle: Ht = !0,
226
227
  canAddClinicalNote: ae = !0,
227
- clinicalGatedReason: Ht,
228
+ clinicalGatedReason: Wt,
228
229
  defaultClinical: $ = !1,
229
- onRequestAiDraft: Wt,
230
- aiDraftFormat: $t,
231
- aiPrivacyNotice: Bt,
232
- onDictate: Kt,
233
- onProofread: Ut,
234
- onAutoFormat: It,
235
- aiConsent: Yt,
236
- variables: Gt,
237
- validateVariable: Jt,
238
- onVariableValidityChange: Qt,
239
- renderHelpMeWrite: Xt,
240
- aiTemplates: Zt,
241
- onAiApplied: en,
242
- onUploadImage: tn,
243
- onAiCreditsExhausted: nn,
244
- showExtensions: rn,
245
- aiCreditsNotice: sn,
246
- extensions: an,
247
- extensionContext: ln,
248
- onExtensionRun: on,
249
- composerBefore: dn,
250
- composerAfter: cn,
230
+ onRequestAiDraft: $t,
231
+ aiDraftFormat: Bt,
232
+ aiPrivacyNotice: Kt,
233
+ onDictate: Ut,
234
+ onProofread: It,
235
+ onAutoFormat: Yt,
236
+ aiConsent: Gt,
237
+ variables: Jt,
238
+ validateVariable: Qt,
239
+ onVariableValidityChange: Xt,
240
+ renderHelpMeWrite: Zt,
241
+ aiTemplates: en,
242
+ onAiApplied: tn,
243
+ onUploadImage: nn,
244
+ onAiCreditsExhausted: rn,
245
+ showExtensions: sn,
246
+ aiCreditsNotice: an,
247
+ extensions: ln,
248
+ extensionContext: on,
249
+ onExtensionRun: dn,
250
+ composerBefore: cn,
251
+ composerAfter: un,
251
252
  onTogglePin: $e,
252
253
  onToggleFlag: Be,
253
254
  noteActions: Ke,
254
255
  onEditNote: B,
255
- editClinical: un = !1,
256
+ editClinical: fn = !1,
256
257
  onDeleteNote: K,
257
258
  onWriteError: Ue,
258
259
  confirmDelete: Ie = !0,
259
- title: fn,
260
+ title: gn,
260
261
  patientName: xe,
261
- patientAvatarSrc: gn,
262
- composerPlaceholder: hn,
263
- addNoteLabel: pn,
264
- emptyState: mn,
265
- className: vn,
262
+ patientAvatarSrc: hn,
263
+ patientAction: pn,
264
+ composerPlaceholder: mn,
265
+ addNoteLabel: vn,
266
+ emptyState: wn,
267
+ className: yn,
266
268
  "aria-label": Te,
267
- ...wn
268
- }, yn) {
269
+ ...bn
270
+ }, Pn) {
269
271
  var bt;
270
- const { t: l, i18n: Ye } = Un("ui"), Se = In(), q = u(null), [_, U] = T(""), [ie, le] = T($), [P, Ge] = T(!1), [I, oe] = T(null), [g, Ce] = T(null), Je = u(g);
272
+ const { t: l, i18n: Ye } = Yn("ui"), Se = Gn(), q = u(null), [_, U] = T(""), [ie, le] = T($), [P, Ge] = T(!1), [I, oe] = T(null), [g, Ce] = T(null), Je = u(g);
271
273
  Je.current = g;
272
274
  const Qe = u(!1);
273
275
  w === "loading" && (Qe.current = !0);
274
- const bn = Qe.current ? tr : "", Pn = fn ?? l("notesPanel.title", { defaultValue: "Notes" }), Xe = Pt(), Ze = Pt(), de = (xe == null ? void 0 : xe.trim()) || void 0, et = hn ?? l("notesPanel.placeholder", { defaultValue: "Add a note…" }), tt = g !== null ? l("notesPanel.edit", { defaultValue: "Edit note" }) : l("notesPanel.composerLabel", { defaultValue: "New note" }), xn = F === "rich" ? Rt(_) : _.trim().length > 0, E = u(b);
276
+ const xn = Qe.current ? nr : "", Tn = gn ?? l("notesPanel.title", { defaultValue: "Notes" }), Xe = Pt(), Ze = Pt(), de = (xe == null ? void 0 : xe.trim()) || void 0, et = mn ?? l("notesPanel.placeholder", { defaultValue: "Add a note…" }), tt = g !== null ? l("notesPanel.edit", { defaultValue: "Edit note" }) : l("notesPanel.composerLabel", { defaultValue: "New note" }), Sn = F === "rich" ? Rt(_) : _.trim().length > 0, E = u(b);
275
277
  E.current = b;
276
- const [Y, Tn] = T(Nt), R = u(Nt), [Sn, Cn] = T(At), G = u(At), O = u(!0);
278
+ const [Y, Cn] = T(Nt), R = u(Nt), [En, Rn] = T(At), G = u(At), O = u(!0);
277
279
  S(() => (O.current = !0, () => {
278
280
  O.current = !1;
279
281
  }), []);
@@ -282,17 +284,17 @@ const Ur = Bn(
282
284
  const Ee = W(() => {
283
285
  const e = j.current;
284
286
  return !O.current || !e || e.closest('[hidden],[inert],[aria-hidden="true"]') ? !1 : typeof e.checkVisibility == "function" ? e.checkVisibility() : !0;
285
- }, []), J = u([]), [En, Rn] = T(0), Re = W((e) => {
287
+ }, []), J = u([]), [kn, Nn] = T(0), Re = W((e) => {
286
288
  if (!O.current) {
287
289
  e(!1);
288
290
  return;
289
291
  }
290
- J.current.push(e), Rn((t) => t + 1);
292
+ J.current.push(e), Nn((t) => t + 1);
291
293
  }, []);
292
294
  S(() => {
293
295
  const e = J.current;
294
296
  J.current = [], e.forEach((t) => t(!0));
295
- }, [En]), S(
297
+ }, [kn]), S(
296
298
  () => () => {
297
299
  const e = J.current;
298
300
  J.current = [], e.forEach((t) => t(!1));
@@ -301,10 +303,10 @@ const Ur = Bn(
301
303
  );
302
304
  const nt = (e) => {
303
305
  const t = new Map(R.current);
304
- e(t), R.current = t, Tn(t);
306
+ e(t), R.current = t, Cn(t);
305
307
  }, ke = (e) => {
306
308
  const t = new Set(G.current);
307
- e(t), G.current = t, Cn(t);
309
+ e(t), G.current = t, Rn(t);
308
310
  }, ce = (e, t) => {
309
311
  var n;
310
312
  return (n = R.current.get(e)) == null ? void 0 : n[t];
@@ -314,7 +316,7 @@ const Ur = Bn(
314
316
  }), rt = (e) => {
315
317
  var t;
316
318
  return e != null && !!((t = R.current.get(e)) != null && t.delete);
317
- }, kn = W(() => {
319
+ }, An = W(() => {
318
320
  var h;
319
321
  if (!(g !== null ? B : v) || P) return;
320
322
  const t = F === "rich", n = t ? ((h = q.current) == null ? void 0 : h.getHTML()) ?? _ : _.trim();
@@ -361,7 +363,7 @@ const Ur = Bn(
361
363
  P,
362
364
  Se,
363
365
  l
364
- ]), st = zt && (g === null || un), Nn = g !== null && !!((bt = Y.get(g)) != null && bt.delete), ue = W(
366
+ ]), st = Ht && (g === null || fn), Fn = g !== null && !!((bt = Y.get(g)) != null && bt.delete), ue = W(
365
367
  (e) => {
366
368
  try {
367
369
  return new Intl.DateTimeFormat(Ye.language, {
@@ -376,7 +378,7 @@ const Ur = Bn(
376
378
  }
377
379
  },
378
380
  [Ye.language]
379
- ), An = W(
381
+ ), On = W(
380
382
  (e) => {
381
383
  var n, i, s, r;
382
384
  if (!e.id || P || (n = R.current.get(e.id)) != null && n.delete) return;
@@ -394,10 +396,10 @@ const Ur = Bn(
394
396
  const Ne = (e) => {
395
397
  var t, n;
396
398
  return (e.id ? (n = (t = Y.get(e.id)) == null ? void 0 : t.pin) == null ? void 0 : n.next : void 0) ?? !!e.pinned;
397
- }, Fn = (e) => {
399
+ }, jn = (e) => {
398
400
  var t, n;
399
401
  return (e.id ? (n = (t = Y.get(e.id)) == null ? void 0 : t.flag) == null ? void 0 : n.next : void 0) ?? !!e.flagged;
400
- }, M = b.filter((e) => !e.id || !Sn.has(e.id)).sort((e, t) => Number(Ne(t)) - Number(Ne(e))), it = M.flatMap((e) => e.id ? [e.id] : []), z = u([]);
402
+ }, M = b.filter((e) => !e.id || !En.has(e.id)).sort((e, t) => Number(Ne(t)) - Number(Ne(e))), it = M.flatMap((e) => e.id ? [e.id] : []), z = u([]);
401
403
  z.current = it.filter(
402
404
  (e) => {
403
405
  var t;
@@ -406,10 +408,10 @@ const Ur = Bn(
406
408
  );
407
409
  const Ae = u([]);
408
410
  Ae.current = it;
409
- const { isAccessible: On } = lr(j), lt = On || void 0, { containerRef: jn } = rr({
411
+ const { isAccessible: Vn } = dr(j), lt = Vn || void 0, { containerRef: Ln } = ar({
410
412
  key: M.map((e) => e.id).join(),
411
413
  reduceMotion: lt
412
- }), ge = sr({ reduceMotion: lt }), [p, he] = T(null), ot = u(0), Fe = u(0), dt = () => {
414
+ }), ge = ir({ reduceMotion: lt }), [p, he] = T(null), ot = u(0), Fe = u(0), dt = () => {
413
415
  Fe.current += 1, he(null);
414
416
  }, pe = (e, t, n, i = !0) => {
415
417
  const s = Fe.current;
@@ -424,7 +426,7 @@ const Ur = Bn(
424
426
  seq: ot.current
425
427
  })), (h = D.current) == null || h.call(D, { kind: e, noteId: t, error: n, shown: d });
426
428
  });
427
- }, Vn = (e) => {
429
+ }, qn = (e) => {
428
430
  const t = b.find((i) => i.id === e.noteId), n = t != null && t.dateIso ? ue(t) : "";
429
431
  if (n)
430
432
  switch (e.kind) {
@@ -495,10 +497,10 @@ const Ur = Bn(
495
497
  settled: !0,
496
498
  edgeAtSettle: ve.current,
497
499
  sigAtSettle: Pe(E.current)
498
- }), pt(), !0), mt = (e, t, n) => ce(e, t) !== n ? !1 : (Q(e, t, void 0), t !== "delete" || (G.current.has(e) && ke((i) => i.delete(e)), ge.cancel(e)), !0), Ln = xt(() => Pe(b), [b]);
500
+ }), pt(), !0), mt = (e, t, n) => ce(e, t) !== n ? !1 : (Q(e, t, void 0), t !== "delete" || (G.current.has(e) && ke((i) => i.delete(e)), ge.cancel(e)), !0), Dn = xt(() => Pe(b), [b]);
499
501
  S(() => {
500
502
  pt();
501
- }, [Ln, w]);
503
+ }, [Dn, w]);
502
504
  const Le = (e, t) => {
503
505
  var k, ne;
504
506
  const n = t === "pin" ? $e : Be, i = (N) => ({
@@ -540,8 +542,8 @@ const Ur = Bn(
540
542
  O.current && Ve(e, t, m);
541
543
  },
542
544
  (N) => {
543
- const Wn = O.current && (He(N) ? Ve(e, t, m) : mt(e, t, m));
544
- pe(h, e, N, Wn);
545
+ const Bn = O.current && (He(N) ? Ve(e, t, m) : mt(e, t, m));
546
+ pe(h, e, N, Bn);
545
547
  }
546
548
  ), { started: !0, result: x };
547
549
  }, vt = (e) => {
@@ -582,7 +584,7 @@ const Ur = Bn(
582
584
  return t.keptOnDelete || ge.leave(e, () => {
583
585
  ce(e, "delete") && ke((s) => s.add(e));
584
586
  }), !0;
585
- }, [X, Z] = T(null), we = u(null), qn = (e) => {
587
+ }, [X, Z] = T(null), we = u(null), _n = (e) => {
586
588
  if (!(!K || rt(e)) && !(P && g === e)) {
587
589
  if (!Ie) {
588
590
  vt(e);
@@ -590,7 +592,7 @@ const Ur = Bn(
590
592
  }
591
593
  we.current = { noteId: e, index: -1, started: !1 }, Z(e);
592
594
  }
593
- }, Dn = () => {
595
+ }, Mn = () => {
594
596
  const e = X;
595
597
  if (!e) return;
596
598
  const t = z.current.indexOf(e);
@@ -598,7 +600,7 @@ const Ur = Bn(
598
600
  }, qe = X !== null && b.some((e) => e.id === X && !e.deleted);
599
601
  S(() => {
600
602
  X !== null && !qe && Z(null);
601
- }, [X, qe]), Kn(yn, () => j.current, []);
603
+ }, [X, qe]), In(Pn, () => j.current, []);
602
604
  const V = (e, t) => {
603
605
  var n;
604
606
  return e ? ((n = j.current) == null ? void 0 : n.querySelector(
@@ -607,12 +609,12 @@ const Ur = Bn(
607
609
  }, ye = (e, t) => {
608
610
  const n = z.current;
609
611
  return V(n[e], t) ?? V(n[e - 1], t) ?? V(n[e], null) ?? V(n[e - 1], null);
610
- }, _n = () => {
612
+ }, zn = () => {
611
613
  const e = j.current, t = (e == null ? void 0 : e.querySelector("[data-notes-panel-empty]")) ?? e;
612
- t && wr(t);
614
+ t && br(t);
613
615
  }, ee = (e) => {
614
- e ? e.focus() : _n();
615
- }, Mn = (e) => {
616
+ e ? e.focus() : zn();
617
+ }, Hn = (e) => {
616
618
  const t = we.current;
617
619
  if (we.current = null, !t || e.defaultPrevented) return;
618
620
  e.preventDefault();
@@ -623,7 +625,7 @@ const Ur = Bn(
623
625
  }, De = u(null), wt = (e) => {
624
626
  const t = e.kind === "delete" ? "delete" : e.kind.endsWith("pin") ? "pin" : "flag", n = z.current.indexOf(e.noteId);
625
627
  return V(e.noteId, t) ?? V(e.noteId, null) ?? (n >= 0 ? ye(n, t) : null);
626
- }, zn = (e) => {
628
+ }, Wn = (e) => {
627
629
  var t;
628
630
  (t = De.current) != null && t.contains(document.activeElement) && ee(wt(e)), he(null);
629
631
  }, H = u(null);
@@ -657,7 +659,7 @@ const Ur = Bn(
657
659
  return e.addEventListener("focusin", t), e.addEventListener("focusout", n), () => {
658
660
  e.removeEventListener("focusin", t), e.removeEventListener("focusout", n);
659
661
  };
660
- }, []), ir(() => {
662
+ }, []), or(() => {
661
663
  var i;
662
664
  const e = H.current;
663
665
  if (!e || !j.current) return;
@@ -699,7 +701,7 @@ const Ur = Bn(
699
701
  yt.current = C;
700
702
  const ze = u(null);
701
703
  ze.current = { toggle: Le };
702
- const Hn = xt(
704
+ const $n = xt(
703
705
  () => ({
704
706
  // Ids + flags only — never the note body or author (both PHI).
705
707
  getNotes: () => E.current.filter((e) => {
@@ -729,7 +731,7 @@ const Ur = Bn(
729
731
  }),
730
732
  []
731
733
  );
732
- return Yn(ur, Hn, f), /* @__PURE__ */ y(
734
+ return Jn(gr, $n, f), /* @__PURE__ */ y(
733
735
  "section",
734
736
  {
735
737
  ref: j,
@@ -738,56 +740,42 @@ const Ur = Bn(
738
740
  "aria-labelledby": Te ? void 0 : Xe,
739
741
  "aria-label": Te,
740
742
  "aria-describedby": de ? Ze : void 0,
741
- className: [hr, vn].filter(Boolean).join(" "),
742
- ...wn,
743
+ className: [mr, yn].filter(Boolean).join(" "),
744
+ ...bn,
743
745
  children: [
744
746
  /* @__PURE__ */ a(
745
- nr,
747
+ rr,
746
748
  {
747
- title: Pn,
748
- icon: /* @__PURE__ */ a(or, { "aria-hidden": "true" }),
749
+ title: Tn,
750
+ icon: /* @__PURE__ */ a(cr, { "aria-hidden": "true" }),
749
751
  headingId: Te ? void 0 : Xe,
750
- subtitle: de ? (
751
- /* The kit's one way to show a person: avatar, then name. The
752
- name is the text; the avatar repeats it, so it is hidden
753
- from assistive technology. */
754
- /* @__PURE__ */ y("span", { className: "ds:inline-flex ds:max-w-full ds:items-center ds:gap-[var(--spacing-xs)]", children: [
755
- /* @__PURE__ */ a(
756
- Gn,
757
- {
758
- size: "xs",
759
- name: de,
760
- src: gn,
761
- "aria-hidden": "true",
762
- className: "ds:shrink-0"
763
- }
764
- ),
765
- /* @__PURE__ */ a(
766
- "span",
767
- {
768
- "data-slot": "patient-name",
769
- dir: "auto",
770
- className: "ds:min-w-0 ds:[overflow-wrap:anywhere]",
771
- children: de
772
- }
773
- )
774
- ] })
775
- ) : void 0,
776
- subtitleId: Ze,
777
752
  sticky: !0,
778
753
  divider: !0
779
754
  }
780
755
  ),
781
756
  /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
757
+ de ? /* @__PURE__ */ y("div", { "data-slot": "patient", children: [
758
+ /* @__PURE__ */ a("span", { id: Ze, hidden: !0, children: de }),
759
+ /* @__PURE__ */ a(
760
+ sr,
761
+ {
762
+ name: de,
763
+ avatarUrl: hn,
764
+ actionSlot: pn,
765
+ surface: "elevated",
766
+ density: "compact"
767
+ }
768
+ )
769
+ ] }) : null,
782
770
  v || g !== null ? /* @__PURE__ */ y(
783
771
  "div",
784
772
  {
785
773
  "data-notes-panel-composer": g !== null ? "edit" : "add",
786
774
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
787
775
  children: [
788
- dn,
776
+ cn,
789
777
  F === "rich" ? /* @__PURE__ */ a(
790
- Qn,
778
+ Xn,
791
779
  {
792
780
  ref: q,
793
781
  ariaLabel: tt,
@@ -797,32 +785,33 @@ const Ur = Bn(
797
785
  redactor: Dt,
798
786
  imageUploadUrl: _t,
799
787
  plugins: Mt,
788
+ tools: zt,
800
789
  readOnly: P,
801
790
  onChange: ({ html: e }) => U(e),
802
- onRequestAiDraft: Wt,
803
- aiDraftFormat: $t,
804
- aiPrivacyNotice: Bt,
805
- onDictate: Kt,
806
- onProofread: Ut,
807
- onAutoFormat: It,
808
- aiConsent: Yt,
809
- variables: Gt,
810
- validateVariable: Jt,
811
- onVariableValidityChange: Qt,
812
- renderHelpMeWrite: Xt,
813
- aiTemplates: Zt,
814
- onAiApplied: en,
815
- onUploadImage: tn,
816
- onAiCreditsExhausted: nn,
817
- showExtensions: rn,
818
- aiCreditsNotice: sn,
819
- extensions: an,
820
- extensionContext: ln,
821
- onExtensionRun: on,
791
+ onRequestAiDraft: $t,
792
+ aiDraftFormat: Bt,
793
+ aiPrivacyNotice: Kt,
794
+ onDictate: Ut,
795
+ onProofread: It,
796
+ onAutoFormat: Yt,
797
+ aiConsent: Gt,
798
+ variables: Jt,
799
+ validateVariable: Qt,
800
+ onVariableValidityChange: Xt,
801
+ renderHelpMeWrite: Zt,
802
+ aiTemplates: en,
803
+ onAiApplied: tn,
804
+ onUploadImage: nn,
805
+ onAiCreditsExhausted: rn,
806
+ showExtensions: sn,
807
+ aiCreditsNotice: an,
808
+ extensions: ln,
809
+ extensionContext: on,
810
+ onExtensionRun: dn,
822
811
  aiConsentHeadingLevel: 3
823
812
  }
824
813
  ) : /* @__PURE__ */ a(
825
- Xn,
814
+ Zn,
826
815
  {
827
816
  value: _,
828
817
  readOnly: P,
@@ -843,10 +832,10 @@ const Ur = Bn(
843
832
  ].join(" "),
844
833
  children: [
845
834
  st ? (() => {
846
- const e = P || !ae, t = ae ? void 0 : Ht ?? l("notesPanel.clinicalGated", {
835
+ const e = P || !ae, t = ae ? void 0 : Wt ?? l("notesPanel.clinicalGated", {
847
836
  defaultValue: "You do not have permission to write clinical notes."
848
837
  }), n = /* @__PURE__ */ a(
849
- Zn,
838
+ er,
850
839
  {
851
840
  size: "sm",
852
841
  label: l("notesPanel.clinicalToggle", {
@@ -857,7 +846,7 @@ const Ur = Bn(
857
846
  disabled: e
858
847
  }
859
848
  );
860
- return e && t ? /* @__PURE__ */ a(er, { label: t, children: /* @__PURE__ */ a("span", { tabIndex: 0, children: n }) }) : n;
849
+ return e && t ? /* @__PURE__ */ a(tr, { label: t, children: /* @__PURE__ */ a("span", { tabIndex: 0, children: n }) }) : n;
861
850
  })() : null,
862
851
  /* @__PURE__ */ y("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
863
852
  g !== null ? /* @__PURE__ */ a(
@@ -876,10 +865,10 @@ const Ur = Bn(
876
865
  {
877
866
  type: "button",
878
867
  size: "sm",
879
- onClick: kn,
880
- disabled: !xn || Nn,
868
+ onClick: An,
869
+ disabled: !Sn || Fn,
881
870
  loading: P,
882
- children: g !== null ? l("notesPanel.saveEdit", { defaultValue: "Save note" }) : pn ?? l("notesPanel.add", { defaultValue: "Add note" })
871
+ children: g !== null ? l("notesPanel.saveEdit", { defaultValue: "Save note" }) : vn ?? l("notesPanel.add", { defaultValue: "Add note" })
883
872
  }
884
873
  )
885
874
  ] })
@@ -896,7 +885,7 @@ const Ur = Bn(
896
885
  children: /* @__PURE__ */ a(A.Description, { children: I.text })
897
886
  }
898
887
  ) : null,
899
- cn
888
+ un
900
889
  ]
901
890
  }
902
891
  ) : null,
@@ -912,7 +901,7 @@ const Ur = Bn(
912
901
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
913
902
  children: [
914
903
  /* @__PURE__ */ a("span", { role: "status", className: "ds:sr-only", children: l("notesPanel.loading") }),
915
- vr.map((e, t) => /* @__PURE__ */ a(Ct, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ a(Ct.Body, { children: /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
904
+ yr.map((e, t) => /* @__PURE__ */ a(Ct, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ a(Ct.Body, { children: /* @__PURE__ */ y("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
916
905
  /* @__PURE__ */ y("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
917
906
  /* @__PURE__ */ a(
918
907
  be,
@@ -968,12 +957,12 @@ const Ur = Bn(
968
957
  announce: p.unknown ? "assertive" : void 0,
969
958
  dismissible: !0,
970
959
  onOpenChange: (e) => {
971
- e || zn(p);
960
+ e || Wn(p);
972
961
  },
973
962
  "data-notes-panel-write-error": p.kind,
974
963
  "data-outcome": p.unknown ? "unknown" : void 0,
975
964
  children: [
976
- p.unknown ? /* @__PURE__ */ a(A.Description, { children: Se }) : /* @__PURE__ */ a(A.Title, { as: "p", children: Vn(p) }),
965
+ p.unknown ? /* @__PURE__ */ a(A.Description, { children: Se }) : /* @__PURE__ */ a(A.Title, { as: "p", children: qn(p) }),
977
966
  !p.unknown && p.message ? /* @__PURE__ */ a(A.Description, { children: p.message }) : null
978
967
  ]
979
968
  },
@@ -993,9 +982,9 @@ const Ur = Bn(
993
982
  M.length > 0 ? /* @__PURE__ */ a(
994
983
  "ul",
995
984
  {
996
- ref: jn,
985
+ ref: Ln,
997
986
  "aria-busy": w === "loading" || void 0,
998
- className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${bn}`.trim(),
987
+ className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${xn}`.trim(),
999
988
  children: M.map(({ actions: e, keptOnDelete: t, ...n }, i) => {
1000
989
  const s = C != null && n.id === C, r = n.id, d = r != null && g === r, h = r != null && ge.isLeaving(r), c = r ? Y.get(r) : void 0, m = !!(c != null && c.delete), x = m && !!t, k = P && d;
1001
990
  return /* @__PURE__ */ y(
@@ -1010,13 +999,13 @@ const Ur = Bn(
1010
999
  "data-editing": d ? "" : void 0,
1011
1000
  "aria-busy": x || void 0,
1012
1001
  className: [
1013
- gr({
1002
+ pr({
1014
1003
  current: s,
1015
1004
  washed: s || d
1016
1005
  }),
1017
- mr,
1018
- ar,
1019
- h ? pr : ""
1006
+ wr,
1007
+ lr,
1008
+ h ? vr : ""
1020
1009
  ].filter(Boolean).join(" "),
1021
1010
  children: [
1022
1011
  s ? /* @__PURE__ */ a("span", { className: "ds:sr-only", children: l("notesPanel.current", {
@@ -1040,11 +1029,11 @@ const Ur = Bn(
1040
1029
  `${C}:${We ?? ""}`
1041
1030
  ) : null,
1042
1031
  /* @__PURE__ */ a(
1043
- Jn,
1032
+ Qn,
1044
1033
  {
1045
1034
  surface: "elevated",
1046
1035
  truncate: !s,
1047
- headerActions: /* @__PURE__ */ y($n, { children: [
1036
+ headerActions: /* @__PURE__ */ y(Kn, { children: [
1048
1037
  Ke ? Ke(
1049
1038
  { ...n, actions: e, keptOnDelete: t },
1050
1039
  { deleting: m }
@@ -1052,7 +1041,7 @@ const Ur = Bn(
1052
1041
  B && r && !n.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ a(
1053
1042
  St,
1054
1043
  {
1055
- icon: /* @__PURE__ */ a(dr, {}),
1044
+ icon: /* @__PURE__ */ a(ur, {}),
1056
1045
  intent: "ghost",
1057
1046
  size: "sm",
1058
1047
  "aria-label": l("notesPanel.editNamed", {
@@ -1066,13 +1055,13 @@ const Ur = Bn(
1066
1055
  disabled: P || m,
1067
1056
  "data-notes-panel-edit": "",
1068
1057
  "data-note-action": "edit",
1069
- onClick: () => g === r ? fe() : An(n)
1058
+ onClick: () => g === r ? fe() : On(n)
1070
1059
  }
1071
1060
  ) : null,
1072
1061
  K && r && !n.deleted && (e == null ? void 0 : e.delete) !== !1 ? /* @__PURE__ */ a(
1073
1062
  St,
1074
1063
  {
1075
- icon: /* @__PURE__ */ a(cr, {}),
1064
+ icon: /* @__PURE__ */ a(fr, {}),
1076
1065
  intent: "ghost",
1077
1066
  size: "sm",
1078
1067
  "aria-label": l("notesPanel.deleteNamed", {
@@ -1085,13 +1074,13 @@ const Ur = Bn(
1085
1074
  "data-note-action": "delete",
1086
1075
  "aria-disabled": x || k || void 0,
1087
1076
  "aria-busy": x || void 0,
1088
- onClick: () => qn(r)
1077
+ onClick: () => _n(r)
1089
1078
  }
1090
1079
  ) : null
1091
1080
  ] }),
1092
1081
  ...n,
1093
1082
  pinned: Ne(n),
1094
- flagged: Fn(n),
1083
+ flagged: jn(n),
1095
1084
  pinPending: !!(c != null && c.pin) || m,
1096
1085
  flagPending: !!(c != null && c.flag) || m,
1097
1086
  onTogglePin: $e && r && (e == null ? void 0 : e.pin) !== !1 && !n.deleted ? () => Le(r, "pin") : void 0,
@@ -1106,7 +1095,7 @@ const Ur = Bn(
1106
1095
  }
1107
1096
  ) : w !== "ready" ? null : (
1108
1097
  /* Where focus lands, from script, when the last note leaves. */
1109
- /* @__PURE__ */ a("div", { "data-notes-panel-empty": "", className: Lt, children: mn ?? /* @__PURE__ */ a("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: l("notesPanel.empty", { defaultValue: "No notes yet." }) }) })
1098
+ /* @__PURE__ */ a("div", { "data-notes-panel-empty": "", className: Lt, children: wn ?? /* @__PURE__ */ a("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: l("notesPanel.empty", { defaultValue: "No notes yet." }) }) })
1110
1099
  )
1111
1100
  ] }),
1112
1101
  K && Ie ? /* @__PURE__ */ a(
@@ -1120,7 +1109,7 @@ const Ur = Bn(
1120
1109
  {
1121
1110
  variant: "alert",
1122
1111
  size: "sm",
1123
- onCloseAutoFocus: Mn,
1112
+ onCloseAutoFocus: Hn,
1124
1113
  children: [
1125
1114
  /* @__PURE__ */ a(L.Header, { children: /* @__PURE__ */ a(L.Title, { children: l("notesPanel.deleteConfirmTitle", {
1126
1115
  defaultValue: "Delete this note?"
@@ -1145,7 +1134,7 @@ const Ur = Bn(
1145
1134
  {
1146
1135
  intent: "destructive",
1147
1136
  size: "sm",
1148
- onClick: Dn,
1137
+ onClick: Mn,
1149
1138
  children: l("notesPanel.deleteConfirmAction", {
1150
1139
  defaultValue: "Delete"
1151
1140
  })
@@ -1163,6 +1152,6 @@ const Ur = Bn(
1163
1152
  }
1164
1153
  );
1165
1154
  export {
1166
- Ur as N
1155
+ Yr as N
1167
1156
  };
1168
- //# sourceMappingURL=notes-panel-BguRX8VC.js.map
1157
+ //# sourceMappingURL=notes-panel-d0I3hOEY.js.map