@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
@@ -4,7 +4,7 @@ import { useTranslation as G } from "react-i18next";
4
4
  import { A as R } from "./alert-C4WKViaS.js";
5
5
  import { B as $ } from "./button-Dp4j9ygh.js";
6
6
  import { S as oe } from "./skeleton-tTWJpvAq.js";
7
- import { R as Le, l as de, n as ee } from "./calendar-workspace.model-X3aXbDTo.js";
7
+ import { R as Le, l as de, n as ee } from "./calendar-workspace.model-BulUpy0I.js";
8
8
  import { c as $e } from "./calendar-editor-guard-9fShhNIA.js";
9
9
  import { D as A } from "./dialog-239Geb7Z.js";
10
10
  import { P as Ie } from "./panel-header-DTc5OFUg.js";
@@ -13,7 +13,7 @@ import { F as Me } from "./form-field-CyHfOVKF.js";
13
13
  import { S as U } from "./section-card-CYfeQ6EQ.js";
14
14
  import { L as me } from "./link-CeV7FoI6.js";
15
15
  import { S as Fe } from "./select-Bw5FvGJ7.js";
16
- import { S as q } from "./sheet-CZDjW9Q-.js";
16
+ import { S as q } from "./sheet-1LXzej6Q.js";
17
17
  import { S as ne } from "./switch-DO6uC4HJ.js";
18
18
  import { S as Re, a as We, E as ze } from "./calendar-event-card-BJifpYZQ.js";
19
19
  import { T as _e } from "./text-area-DbxGkpzE.js";
@@ -1333,4 +1333,4 @@ export {
1333
1333
  wt as r,
1334
1334
  At as u
1335
1335
  };
1336
- //# sourceMappingURL=calendar-editor-discard-host-DO506cJu.js.map
1336
+ //# sourceMappingURL=calendar-editor-discard-host-BudLsUZO.js.map
@@ -11,20 +11,20 @@ import { B as Ee } from "./button-group-CHQD8GJ0.js";
11
11
  import { C as pe } from "./card-n6W6LW-N.js";
12
12
  import { D as de } from "./date-picker-CD-PBzXM.js";
13
13
  import { D as Y } from "./dropdown-menu-Bm1KALnk.js";
14
- import { E as Ve } from "./empty-state-5REM7oDM.js";
14
+ import { E as Ve } from "./empty-state-qHtpcasr.js";
15
15
  import { F as A } from "./form-field-CyHfOVKF.js";
16
16
  import { P as Be } from "./panel-header-DTc5OFUg.js";
17
- import { P as Oe } from "./panel-subview-Om_yZvFG.js";
18
- import { S as Me } from "./scroll-area-CY5SLYNw.js";
17
+ import { P as Oe } from "./panel-subview-B5hnQwfQ.js";
18
+ import { S as Me } from "./scroll-area-RQtcKkHf.js";
19
19
  import { S as ge } from "./select-Bw5FvGJ7.js";
20
20
  import { C as Ge, S as W } from "./skeleton-tTWJpvAq.js";
21
21
  import { T as Ke } from "./text-area-DbxGkpzE.js";
22
22
  import { T as be } from "./tooltip-uEBdD1-5.js";
23
23
  import { V as xe } from "./visually-hidden-BHxEUGyT.js";
24
24
  import { a as ke } from "./whatsapp-button-XbozeDl_.js";
25
- import { a as $e, b as Fe, W as Ye, w as je } from "./calendar.sheets-C8x8kPb4.js";
25
+ import { a as $e, b as Fe, W as Ye, w as je } from "./calendar.sheets-OmTiQdCg.js";
26
26
  import { u as Re } from "./calendar-editor-guard-9fShhNIA.js";
27
- import { E as le, f as He, g as Qe, w as qe, d as Je, N as Ue, e as Xe, i as Ze, j as ea, p as aa, k as sa } from "./calendar-workspace.model-X3aXbDTo.js";
27
+ import { E as le, f as He, g as Qe, w as qe, d as Je, N as Ue, e as Xe, i as Ze, j as ea, p as aa, k as sa } from "./calendar-workspace.model-BulUpy0I.js";
28
28
  import { F as ta } from "./funnel-DpPV3Qkd.js";
29
29
  import { P as ia } from "./plus-DzMQ_c6b.js";
30
30
  import { H as Ne } from "./hourglass-BEAzW1wE.js";
@@ -32,7 +32,7 @@ import { L as na } from "./lock-ClAFG1gy.js";
32
32
  import { p as ra } from "./privacy-mask-text-B8YfzB7L.js";
33
33
  import { E as ye } from "./eye-off-C_4xkbRP.js";
34
34
  import { C as Ce } from "./calendar-days-BGWklvE-.js";
35
- import { f as oa, a as Ae } from "./appointment-details-panel.identity-C9kWtC6m.js";
35
+ import { f as oa, a as Ae } from "./appointment-details-panel.identity-9hRo85Lx.js";
36
36
  import { C as da } from "./chevron-right-I9AeSxH2.js";
37
37
  import { P as la } from "./phone-FceYcIFQ.js";
38
38
  import { S as Se } from "./stethoscope-sZXGC43m.js";
@@ -978,4 +978,4 @@ function Ta({
978
978
  export {
979
979
  za as W
980
980
  };
981
- //# sourceMappingURL=calendar-waiting-list-panel-CyMTv2y3.js.map
981
+ //# sourceMappingURL=calendar-waiting-list-panel-DukgSOPH.js.map
@@ -2,7 +2,7 @@ import { useState as ne, useCallback as oe } from "react";
2
2
  import { G, b as P, c as ie, A as se } from "./palettes-CKVXYTzo.js";
3
3
  import { s as ae } from "./signature-status-chip-DS9hHwIt.js";
4
4
  import { b as re } from "./appointment-workflow-status-S-lx81Yz.js";
5
- import { b as ce, a as w, c as de, d as ue, A as le } from "./appointment-details-panel.identity-C9kWtC6m.js";
5
+ import { b as ce, a as w, c as de, d as ue, A as le } from "./appointment-details-panel.identity-9hRo85Lx.js";
6
6
  import { A as W } from "./entity-card-p-LANpYt.js";
7
7
  const pe = "grp-none";
8
8
  function pt(e) {
@@ -1554,4 +1554,4 @@ export {
1554
1554
  on as y,
1555
1555
  xt as z
1556
1556
  };
1557
- //# sourceMappingURL=calendar-workspace.model-X3aXbDTo.js.map
1557
+ //# sourceMappingURL=calendar-workspace.model-BulUpy0I.js.map
@@ -4,21 +4,21 @@ import { useTranslation as le } from "react-i18next";
4
4
  import { P as yr } from "./patient-picker-Dm74jHIk.js";
5
5
  import { u as Ye, a as kr } from "./calendar-editor-guard-9fShhNIA.js";
6
6
  import { u as fr } from "./form-field-context-DtiROUJV.js";
7
- import { A as Nr, M as xr, C as Gt } from "./appointment-details-panel.history-BO31ZFQp.js";
8
- import { R as As, b as Rn, D as li, f as Cr, e as Ir, g as Sr, i as wr, j as Rr } from "./appointment-details-panel.identity-C9kWtC6m.js";
7
+ import { A as Nr, M as xr, C as Gt } from "./appointment-details-panel.history-FSsTXj1t.js";
8
+ import { R as As, b as Rn, D as li, f as Cr, e as Ir, g as Sr, h as wr, i as Rr } from "./appointment-details-panel.identity-9hRo85Lx.js";
9
9
  import { d as xa } from "./toast-Cgmh1cvj.js";
10
- import { i as ui } from "./treatment-receipt-B6m47Jie.js";
10
+ import { i as ui } from "./treatment-receipt-CZQV1NkJ.js";
11
11
  import { A as L } from "./alert-C4WKViaS.js";
12
12
  import { B as te } from "./button-Dp4j9ygh.js";
13
13
  import { R as Ae } from "./radio-BZQs6_36.js";
14
14
  import { R as Sn } from "./radio-group-ChIKyeSJ.js";
15
- import { q as Os, s as Hs, t as hi, v as Dr, x as Er, y as Tr, N as q, z as Lr, A as Kt, B as Ar, F as Or, G as qt, H as jt, I as Pr, J as Mr, K as mi, p as Ta, L as Yt, M as Br, O as Xt, P as Wr, Q as $r, S as Qt, T as Fr, U as zr, X as _r, Y as Vr, Z as Hr, R as Jt, _ as Zt, $ as we, a0 as Ur, a1 as Gr, a2 as Kr, a3 as ei, a4 as qr, a5 as Ca, a6 as jr, a7 as Yr, a8 as Xr, a9 as ni, aa as Ia, ab as si, c as Qr, ac as Jr, ad as Zr, ae as ed, af as nd } from "./calendar-workspace.model-X3aXbDTo.js";
15
+ import { q as Os, s as Hs, t as hi, v as Dr, x as Er, y as Tr, N as q, z as Lr, A as Kt, B as Ar, F as Or, G as qt, H as jt, I as Pr, J as Mr, K as mi, p as Ta, L as Yt, M as Br, O as Xt, P as Wr, Q as $r, S as Qt, T as Fr, U as zr, X as _r, Y as Vr, Z as Hr, R as Jt, _ as Zt, $ as we, a0 as Ur, a1 as Gr, a2 as Kr, a3 as ei, a4 as qr, a5 as Ca, a6 as jr, a7 as Yr, a8 as Xr, a9 as ni, aa as Ia, ab as si, c as Qr, ac as Jr, ad as Zr, ae as ed, af as nd } from "./calendar-workspace.model-BulUpy0I.js";
16
16
  import { V as Ps } from "./visually-hidden-BHxEUGyT.js";
17
- import { N as sd } from "./notes-panel-BguRX8VC.js";
17
+ import { N as sd } from "./notes-panel-d0I3hOEY.js";
18
18
  import { A as gi } from "./avatar-Dp5apm1d.js";
19
- import { E as vi } from "./empty-state-5REM7oDM.js";
19
+ import { E as vi } from "./empty-state-qHtpcasr.js";
20
20
  import { P as Ms } from "./panel-header-DTc5OFUg.js";
21
- import { P as ad } from "./panel-subview-Om_yZvFG.js";
21
+ import { P as ad } from "./panel-subview-B5hnQwfQ.js";
22
22
  import { F as z } from "./form-field-CyHfOVKF.js";
23
23
  import { C as La } from "./combobox-BYl6mY4c.js";
24
24
  import { S as td } from "./state-backed-text-input-DVETOhSS.js";
@@ -4583,4 +4583,4 @@ export {
4583
4583
  Si as u,
4584
4584
  bl as w
4585
4585
  };
4586
- //# sourceMappingURL=calendar.sheets-C8x8kPb4.js.map
4586
+ //# sourceMappingURL=calendar.sheets-OmTiQdCg.js.map
@@ -14,11 +14,11 @@ import { C as ut } from "./call-status-chip-pajxN5eZ.js";
14
14
  import { D as on } from "./date-range-picker-Z-hI5Vb7.js";
15
15
  import { D as sn } from "./date-time-picker-DHza1SEH.js";
16
16
  import { D as Y } from "./dialog-239Geb7Z.js";
17
- import { E as Oe } from "./empty-state-5REM7oDM.js";
17
+ import { E as Oe } from "./empty-state-qHtpcasr.js";
18
18
  import { F as Le } from "./form-field-CyHfOVKF.js";
19
19
  import { L as or } from "./link-CeV7FoI6.js";
20
20
  import { P as sr } from "./panel-header-DTc5OFUg.js";
21
- import { P as lr } from "./panel-subview-Om_yZvFG.js";
21
+ import { P as lr } from "./panel-subview-B5hnQwfQ.js";
22
22
  import { S as me } from "./select-Bw5FvGJ7.js";
23
23
  import { S as pt } from "./skeleton-tTWJpvAq.js";
24
24
  import { T as ar } from "./text-area-DbxGkpzE.js";
@@ -1445,4 +1445,4 @@ export {
1445
1445
  wn as C,
1446
1446
  cn as c
1447
1447
  };
1448
- //# sourceMappingURL=calls-panel-Bpemmnpd.js.map
1448
+ //# sourceMappingURL=calls-panel-eohONLia.js.map
@@ -0,0 +1,15 @@
1
+ import { c as o } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const e = [
9
+ ["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
10
+ ["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
11
+ ], t = o("code", e);
12
+ export {
13
+ t as C
14
+ };
15
+ //# sourceMappingURL=code-BfU9G1ZM.js.map
@@ -11,9 +11,9 @@ import { B as Oe } from "./button-Dp4j9ygh.js";
11
11
  import { C as In } from "./chat-container-CoOT7dzB.js";
12
12
  import { C as En } from "./chat-input-kduOKc5Q.js";
13
13
  import { C as An } from "./chat-message-Db7cWCgO.js";
14
- import { E as fe } from "./empty-state-5REM7oDM.js";
14
+ import { E as fe } from "./empty-state-qHtpcasr.js";
15
15
  import { a as Dn } from "./file-upload-DQc0LsBM.js";
16
- import { I as Rn } from "./info-tip-cCppV1fD.js";
16
+ import { I as Rn } from "./info-tip-DkVISvo-.js";
17
17
  import { P as qe } from "./panel-header-DTc5OFUg.js";
18
18
  import { S as zn } from "./select-Bw5FvGJ7.js";
19
19
  import { S as Ze } from "./skeleton-tTWJpvAq.js";
@@ -1076,4 +1076,4 @@ export {
1076
1076
  Zn as c,
1077
1077
  ge as s
1078
1078
  };
1079
- //# sourceMappingURL=communications-panel-Cd0TBEhL.js.map
1079
+ //# sourceMappingURL=communications-panel-CqiFs8BH.js.map
@@ -4,7 +4,7 @@ import { useTranslation as A } from "react-i18next";
4
4
  import { C as a } from "./card-n6W6LW-N.js";
5
5
  import { B as C } from "./badge-BUk4RjTS.js";
6
6
  import { B as u } from "./button-Dp4j9ygh.js";
7
- import { D as d } from "./description-list-DA4TgL_I.js";
7
+ import { D as d } from "./description-list-DaldSpGy.js";
8
8
  import { u as N } from "./registry-DvAUVLHh.js";
9
9
  const w = {
10
10
  id: "connection-status",
@@ -105,4 +105,4 @@ export {
105
105
  K as C,
106
106
  w as c
107
107
  };
108
- //# sourceMappingURL=connection-status-Bi6KPTlh.js.map
108
+ //# sourceMappingURL=connection-status-C13KmOPL.js.map
@@ -0,0 +1,456 @@
1
+ import { jsx as k, jsxs as ro, Fragment as jo } from "react/jsx-runtime";
2
+ import { useState as P, useCallback as g, useMemo as M, useRef as N, useEffect as lo, useContext as B, useId as Eo, createContext as Ho, forwardRef as No } from "react";
3
+ import { useTranslation as Oo } from "react-i18next";
4
+ import { I as J } from "./icon-button-u9VMQn3x.js";
5
+ import { a as qo } from "./panel-header-DTc5OFUg.js";
6
+ import { T as zo } from "./tool-rail-C_Ay0Gxi.js";
7
+ import { u as K } from "./use-persistent-state-nZwZAnE9.js";
8
+ import { S as Lo } from "./star-Bf9L2Uot.js";
9
+ import { P as Uo } from "./panel-right-CnMHSvLU.js";
10
+ import { c as Bo } from "./createLucideIcon-DhHxpK9K.js";
11
+ import { X as Do } from "./x-B5YnXwCz.js";
12
+ /**
13
+ * @license lucide-react v1.22.0 - ISC
14
+ *
15
+ * This source code is licensed under the ISC license.
16
+ * See the LICENSE file in the root directory of this source tree.
17
+ */
18
+ const Qo = [
19
+ ["path", { d: "M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4", key: "daa4of" }],
20
+ ["rect", { width: "10", height: "7", x: "12", y: "13", rx: "2", key: "1nb8gs" }]
21
+ ], Xo = Bo("picture-in-picture-2", Qo), $o = {
22
+ id: "control-room-rail",
23
+ capabilities: ["open", "close", "select_single"],
24
+ state: {
25
+ activeToolId: {
26
+ type: "string | null",
27
+ descriptionKey: "ui.toolRail.agent.state.activeToolId",
28
+ description: "Id of the tool whose panel is currently open, or null when the rail is collapsed to its strip. No panel content is ever exposed.",
29
+ read: (t) => t.getActiveToolId()
30
+ },
31
+ panelMode: {
32
+ type: "'docked' | 'overlay' | 'full-screen'",
33
+ descriptionKey: "ui.agent.controlRoomRail.state.panelMode",
34
+ description: "How an open panel shows: docked beside the content, over it because the frame keeps a minimum width for main, or full screen on a phone.",
35
+ read: (t) => t.getPanelMode()
36
+ }
37
+ },
38
+ actions: {
39
+ open: {
40
+ // Pure ephemeral panel state (open) — no data loss, no external effect.
41
+ safety: "read",
42
+ argsType: "{ id: string }",
43
+ argsSchema: {
44
+ type: "object",
45
+ properties: { id: { type: "string" } },
46
+ required: ["id"]
47
+ },
48
+ idempotent: !0,
49
+ descriptionKey: "ui.toolRail.agent.actions.open",
50
+ description: "Open the given tool's panel.",
51
+ examples: [{ args: { id: "inbox" }, note: "Open the inbox tool panel." }],
52
+ invoke: (t, r) => {
53
+ t.open(r.id);
54
+ }
55
+ },
56
+ close: {
57
+ safety: "read",
58
+ idempotent: !0,
59
+ descriptionKey: "ui.toolRail.agent.actions.close",
60
+ description: "Collapse the rail to its strip (no active tool).",
61
+ invoke: (t) => {
62
+ t.close();
63
+ }
64
+ },
65
+ select_tool: {
66
+ safety: "read",
67
+ argsType: "{ id: string | null }",
68
+ argsSchema: {
69
+ type: "object",
70
+ properties: { id: { type: ["string", "null"] } },
71
+ required: ["id"]
72
+ },
73
+ idempotent: !0,
74
+ descriptionKey: "ui.toolRail.agent.actions.selectTool",
75
+ description: "Set the active tool by id (opens its panel), or pass null to collapse.",
76
+ invoke: (t, r) => {
77
+ t.setActiveTool(r.id);
78
+ }
79
+ }
80
+ },
81
+ domHooks: {
82
+ root: {
83
+ attr: "data-component",
84
+ value: "control-room-rail",
85
+ description: "Marks the ControlRoomRail wrapper."
86
+ },
87
+ instanceId: {
88
+ attr: "data-component-id",
89
+ sourceProp: "id",
90
+ description: "Sourced from the id prop. Required to address a specific rail from the agent."
91
+ },
92
+ item: {
93
+ attr: "data-tool-id",
94
+ description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
95
+ }
96
+ }
97
+ }, Go = 1e3, O = Ho(null);
98
+ function it({
99
+ globalTools: t = [],
100
+ children: r
101
+ }) {
102
+ const [u, n] = P(
103
+ () => /* @__PURE__ */ new Map()
104
+ ), d = g(
105
+ (l, f) => {
106
+ n((h) => {
107
+ const q = new Map(h);
108
+ return q.set(l, f), q;
109
+ });
110
+ },
111
+ []
112
+ ), R = g((l) => {
113
+ n((f) => {
114
+ if (!f.has(l)) return f;
115
+ const h = new Map(f);
116
+ return h.delete(l), h;
117
+ });
118
+ }, []), c = M(
119
+ () => Array.from(u.values()).flat(),
120
+ [u]
121
+ ), p = N(null), i = N(null), a = g(() => {
122
+ i.current && clearTimeout(i.current.timer), i.current = null;
123
+ }, []), b = g(
124
+ (l, f = () => !0) => {
125
+ if (l) {
126
+ p.current = { handle: l, hasTool: f };
127
+ const h = i.current;
128
+ h && f(h.id) && (a(), l.setActiveTool(h.id));
129
+ return;
130
+ }
131
+ p.current = null, queueMicrotask(() => {
132
+ p.current || a();
133
+ });
134
+ },
135
+ [a]
136
+ );
137
+ lo(() => a, [a]);
138
+ const v = g(
139
+ (l) => {
140
+ a();
141
+ const f = p.current;
142
+ if (f && f.hasTool(l)) {
143
+ f.handle.setActiveTool(l);
144
+ return;
145
+ }
146
+ i.current = {
147
+ id: l,
148
+ timer: setTimeout(a, Go)
149
+ };
150
+ },
151
+ [a]
152
+ ), _ = g(() => {
153
+ var l;
154
+ a(), (l = p.current) == null || l.handle.setActiveTool(null);
155
+ }, [a]), A = M(
156
+ () => ({
157
+ globalTools: t,
158
+ contextualTools: c,
159
+ registerContextualTools: d,
160
+ unregisterContextualTools: R,
161
+ registerRail: b,
162
+ openTool: v,
163
+ closeTool: _
164
+ }),
165
+ [
166
+ t,
167
+ c,
168
+ d,
169
+ R,
170
+ b,
171
+ v,
172
+ _
173
+ ]
174
+ );
175
+ return /* @__PURE__ */ k(O.Provider, { value: A, children: r });
176
+ }
177
+ function ct(t) {
178
+ const r = B(O), u = r == null ? void 0 : r.registerContextualTools, n = r == null ? void 0 : r.unregisterContextualTools, d = Eo();
179
+ lo(() => {
180
+ if (!(!u || !n))
181
+ return u(d, t), () => n(d);
182
+ }, [u, n, d, t]);
183
+ }
184
+ function Jo() {
185
+ const t = B(O);
186
+ return M(() => {
187
+ if (!t) return [];
188
+ const r = t.contextualTools.map((n) => ({
189
+ ...n,
190
+ scope: "contextual"
191
+ })), u = t.globalTools.map((n) => ({
192
+ ...n,
193
+ scope: "global"
194
+ }));
195
+ return [...r, ...u];
196
+ }, [t]);
197
+ }
198
+ function at() {
199
+ const t = B(O), r = g(() => {
200
+ }, []);
201
+ return {
202
+ openTool: (t == null ? void 0 : t.openTool) ?? r,
203
+ closeTool: (t == null ? void 0 : t.closeTool) ?? r
204
+ };
205
+ }
206
+ function Ko() {
207
+ const t = B(O), r = g(() => {
208
+ }, []);
209
+ return (t == null ? void 0 : t.registerRail) ?? r;
210
+ }
211
+ function Po(t, r, u, n) {
212
+ const d = r.includes(t), R = u.includes(t);
213
+ if (!d && R) return { toolId: t, action: "pin" };
214
+ if (d && !R)
215
+ return n != null && n.includes(t) ? void 0 : { toolId: t, action: "unpin" };
216
+ const c = (b) => n != null && n.length ? [...n, ...b.filter((v) => !n.includes(v))] : b, p = c(r), i = c(u);
217
+ return p.length !== i.length || p.some((b, v) => i[v] !== b) ? { toolId: t, action: "reorder" } : void 0;
218
+ }
219
+ function so(t, r, u) {
220
+ const n = new Set(u), d = [], R = /* @__PURE__ */ new Map();
221
+ let c = null;
222
+ for (const i of t)
223
+ r(i) ? n.has(i) && (c = i) : c === null ? d.push(i) : R.set(c, [...R.get(c) ?? [], i]);
224
+ const p = [
225
+ ...d,
226
+ ...u.flatMap((i) => [i, ...R.get(i) ?? []])
227
+ ];
228
+ return Array.from(new Set(p));
229
+ }
230
+ const ut = No(function({
231
+ tools: r,
232
+ railLabel: u,
233
+ reorderable: n = !0,
234
+ favoriteIds: d,
235
+ defaultFavoriteIds: R,
236
+ pinnedFavoriteIds: c,
237
+ onFavoriteIdsChange: p,
238
+ persistFavoritesKey: i = "ui.controlRoom.favorites",
239
+ activeToolId: a,
240
+ defaultActiveToolId: b = null,
241
+ onActiveToolChange: v,
242
+ panelWidth: _,
243
+ onPanelWidthChange: A,
244
+ persistPanelWidthKey: l,
245
+ floatablePanel: f = !1,
246
+ panelFloating: h,
247
+ defaultPanelFloating: q = !1,
248
+ onPanelFloatingChange: D,
249
+ persistPanelFloatingKey: Y,
250
+ panelPlacement: io,
251
+ ...co
252
+ }, j) {
253
+ const { t: y } = Oo("ui"), [ao, uo] = P(
254
+ a ?? b ?? null
255
+ ), Z = a !== void 0 ? a : ao, fo = g(
256
+ (o) => {
257
+ a === void 0 && uo(o), v == null || v(o);
258
+ },
259
+ [a, v]
260
+ ), po = Jo(), S = r ?? po, Q = d !== void 0, [mo, go] = K(
261
+ i,
262
+ () => R ?? S.filter((o) => o.scope === "global").map((o) => o.id),
263
+ { disabled: Q }
264
+ ), X = Q ? d : mo, V = M(() => c != null && c.length ? [
265
+ ...c,
266
+ ...X.filter((o) => !c.includes(o))
267
+ ] : X, [c, X]), z = _ !== void 0, [Ro, W] = K(l ?? "ui.controlRoom.panelWidth.unused", null, {
268
+ disabled: z || !l
269
+ }), vo = z ? _ : l ? Ro : void 0, ho = g(
270
+ (o) => {
271
+ !z && l && W(o), A == null || A(o);
272
+ },
273
+ [
274
+ z,
275
+ l,
276
+ W,
277
+ A
278
+ ]
279
+ ), $ = h !== void 0, [To, bo] = K(
280
+ Y ?? "ui.controlRoom.panelFloating.unused",
281
+ q,
282
+ { disabled: $ || !Y }
283
+ ), E = f && ($ ? h : To === !0), yo = (o) => {
284
+ const s = !E;
285
+ $ || bo(s), D == null || D(s, o);
286
+ }, T = M(() => {
287
+ const o = /* @__PURE__ */ new Map();
288
+ for (const s of S) o.set(s.id, s);
289
+ return o;
290
+ }, [S]), H = M(
291
+ () => new Set(V.filter((o) => T.has(o))),
292
+ [V, T]
293
+ ), F = (o, s) => {
294
+ const e = (x) => T.has(x), m = V.filter(e), w = s(m);
295
+ Q || go(
296
+ (x) => so(x, e, s(x.filter(e)))
297
+ ), p == null || p(
298
+ so(V, e, w),
299
+ Po(o, m, w, c)
300
+ );
301
+ }, I = M(() => {
302
+ if (!n) return S;
303
+ const o = V.filter((e) => T.has(e)).map((e) => ({
304
+ ...T.get(e),
305
+ scope: "global",
306
+ reorderable: !0
307
+ })), s = S.filter((e) => !H.has(e.id)).map((e) => ({
308
+ ...e,
309
+ scope: "contextual",
310
+ reorderable: !0
311
+ }));
312
+ return [...o, ...s];
313
+ }, [n, S, V, T, H]), [ko, wo] = P(""), G = N(!1), xo = (o, s) => {
314
+ const e = s ? y("controlRoom.pinnedAnnounce", {
315
+ tool: o,
316
+ defaultValue: "Pinned {{tool}} to favourites"
317
+ }) : y("controlRoom.unpinnedAnnounce", {
318
+ tool: o,
319
+ defaultValue: "Removed {{tool}} from favourites"
320
+ });
321
+ G.current = !G.current, wo(G.current ? e : `${e}​`);
322
+ }, Co = (o) => {
323
+ var s;
324
+ xo(((s = T.get(o)) == null ? void 0 : s.label) ?? o, !H.has(o)), F(
325
+ o,
326
+ (e) => e.includes(o) ? e.filter((m) => m !== o) : [...e, o]
327
+ );
328
+ }, Mo = (o, s) => {
329
+ var m;
330
+ const e = (m = I[o]) == null ? void 0 : m.id;
331
+ e !== void 0 && F(e, (w) => {
332
+ const x = w.filter((C) => T.has(C)), U = x.length;
333
+ if (o < U) {
334
+ if (s >= U) return x.filter((_o) => _o !== e);
335
+ const C = x.slice();
336
+ return C.splice(o, 1), C.splice(s, 0, e), C;
337
+ }
338
+ if (s <= U) {
339
+ const C = x.slice();
340
+ return C.splice(Math.min(s, U), 0, e), C;
341
+ }
342
+ return w;
343
+ });
344
+ }, Ao = ({
345
+ tool: o,
346
+ from: s,
347
+ to: e
348
+ }) => {
349
+ const m = H.size, w = s < m;
350
+ return w && e >= m ? y("controlRoom.unpinnedAnnounce", {
351
+ tool: o.label,
352
+ defaultValue: "Removed {{tool}} from favourites"
353
+ }) : !w && e <= m ? y("controlRoom.pinnedAnnounce", {
354
+ tool: o.label,
355
+ defaultValue: "Pinned {{tool}} to favourites"
356
+ }) : w && e < m ? y("controlRoom.reorderAnnounce", {
357
+ tool: o.label,
358
+ to: e + 1,
359
+ total: m,
360
+ defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
361
+ }) : "";
362
+ }, oo = N(null), to = Ko(), eo = N(T);
363
+ eo.current = T;
364
+ const no = g((o) => {
365
+ const s = eo.current.get(o);
366
+ return s !== void 0 && !s.disabled;
367
+ }, []), So = g(
368
+ (o) => {
369
+ oo.current = o, to(o, no), typeof j == "function" ? j(o) : j && (j.current = o);
370
+ },
371
+ [to, no, j]
372
+ ), L = Z != null ? T.get(Z) ?? null : null, Vo = L ? /* @__PURE__ */ ro(jo, { children: [
373
+ n ? (() => {
374
+ const o = H.has(L.id);
375
+ return /* @__PURE__ */ k(
376
+ J,
377
+ {
378
+ icon: /* @__PURE__ */ k(
379
+ Lo,
380
+ {
381
+ "aria-hidden": "true",
382
+ fill: o ? "currentColor" : "none",
383
+ className: o ? "ds:text-[color:var(--accent)]" : void 0
384
+ }
385
+ ),
386
+ intent: "ghost",
387
+ size: "sm",
388
+ "aria-pressed": o,
389
+ "aria-label": y("controlRoom.favorite", {
390
+ defaultValue: "Favourite"
391
+ }),
392
+ onClick: () => Co(L.id)
393
+ }
394
+ );
395
+ })() : null,
396
+ f ? (() => {
397
+ const o = y(E ? "controlRoom.dockPanel" : "controlRoom.floatPanel");
398
+ return /* @__PURE__ */ k(
399
+ J,
400
+ {
401
+ icon: E ? /* @__PURE__ */ k(Uo, { "aria-hidden": "true" }) : /* @__PURE__ */ k(Xo, { "aria-hidden": "true" }),
402
+ intent: "ghost",
403
+ size: "sm",
404
+ "data-action": E ? "dock-panel" : "float-panel",
405
+ "aria-label": o,
406
+ tooltip: o,
407
+ onClick: () => yo(L.id)
408
+ }
409
+ );
410
+ })() : null,
411
+ /* @__PURE__ */ k(
412
+ J,
413
+ {
414
+ icon: /* @__PURE__ */ k(Do, { "aria-hidden": "true" }),
415
+ intent: "ghost",
416
+ size: "sm",
417
+ "aria-label": y("controlRoom.close", { defaultValue: "Close" }),
418
+ onClick: () => {
419
+ var o;
420
+ return (o = oo.current) == null ? void 0 : o.close();
421
+ }
422
+ }
423
+ )
424
+ ] }) : null;
425
+ return /* @__PURE__ */ ro(qo, { actions: Vo, children: [
426
+ /* @__PURE__ */ k(
427
+ zo,
428
+ {
429
+ ref: So,
430
+ dataComponent: "control-room-rail",
431
+ agentAdapter: $o,
432
+ tools: I,
433
+ activeToolId: a,
434
+ defaultActiveToolId: b,
435
+ onActiveToolChange: fo,
436
+ panelWidth: vo,
437
+ onPanelWidthChange: ho,
438
+ panelPlacement: E ? "overlay" : io,
439
+ railLabel: u ?? y("controlRoom.railLabel", { defaultValue: "Control room" }),
440
+ onReorder: n ? Mo : void 0,
441
+ formatReorderAnnouncement: n ? Ao : void 0,
442
+ ...co
443
+ }
444
+ ),
445
+ n ? /* @__PURE__ */ k("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: ko }) : null
446
+ ] });
447
+ });
448
+ export {
449
+ it as C,
450
+ ut as a,
451
+ Jo as b,
452
+ $o as c,
453
+ ct as d,
454
+ at as u
455
+ };
456
+ //# sourceMappingURL=control-room-rail-C-3o1e0e.js.map
@@ -5,7 +5,7 @@ import { useTranslation as fe } from "react-i18next";
5
5
  import { u as fa } from "./registry-DvAUVLHh.js";
6
6
  import { c as ui } from "./compose-refs-C0k0tdqF.js";
7
7
  import { i as Fe } from "./is-development-CLUAnsU7.js";
8
- import { S as di } from "./scroll-area-CY5SLYNw.js";
8
+ import { S as di } from "./scroll-area-RQtcKkHf.js";
9
9
  import { S as ro } from "./spinner-CoflYlEx.js";
10
10
  import { a as Ct } from "./format-number-DdzqwMs1.js";
11
11
  import { p as ls } from "./privacy-mask-text-B8YfzB7L.js";
@@ -32,7 +32,7 @@ import { F as Da } from "./funnel-DpPV3Qkd.js";
32
32
  import { A as ka, a as Aa } from "./arrow-up-BYvcvTkB.js";
33
33
  import { C as za } from "./chevrons-up-down-CgiVAHb7.js";
34
34
  import { P as Va } from "./pagination-BpXG5jVk.js";
35
- import { E as Ko } from "./empty-state-5REM7oDM.js";
35
+ import { E as Ko } from "./empty-state-qHtpcasr.js";
36
36
  import { S as Ta } from "./skeleton-tTWJpvAq.js";
37
37
  import { d as Ga, u as La } from "./index-Bze5jCG_.js";
38
38
  import { u as Na } from "./use-direction-Dp8h70PP.js";
@@ -9877,4 +9877,4 @@ export {
9877
9877
  _m as f,
9878
9878
  Ih as g
9879
9879
  };
9880
- //# sourceMappingURL=data-grid-CkzbCZSo.js.map
9880
+ //# sourceMappingURL=data-grid-DTAwrOiq.js.map